Class: Google::Apis::OsconfigV1::OsPolicyResourcePackageResourceRpm
- Inherits:
-
Object
- Object
- Google::Apis::OsconfigV1::OsPolicyResourcePackageResourceRpm
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/osconfig_v1/classes.rb,
lib/google/apis/osconfig_v1/representations.rb,
lib/google/apis/osconfig_v1/representations.rb
Overview
An RPM package file. RPM packages only support INSTALLED state.
Instance Attribute Summary collapse
-
#pull_deps ⇒ Boolean
(also: #pull_deps?)
Whether dependencies should also be installed.
-
#source ⇒ Google::Apis::OsconfigV1::OsPolicyResourceFile
A remote or local file.
Instance Method Summary collapse
-
#initialize(**args) ⇒ OsPolicyResourcePackageResourceRpm
constructor
A new instance of OsPolicyResourcePackageResourceRpm.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ OsPolicyResourcePackageResourceRpm
Returns a new instance of OsPolicyResourcePackageResourceRpm.
2308 2309 2310 |
# File 'lib/google/apis/osconfig_v1/classes.rb', line 2308 def initialize(**args) update!(**args) end |
Instance Attribute Details
#pull_deps ⇒ Boolean Also known as: pull_deps?
Whether dependencies should also be installed. - install when false: rpm --
upgrade --replacepkgs package.rpm
- install when true: yum -y install
package.rpm
or zypper -y install package.rpm
Corresponds to the JSON property pullDeps
2300 2301 2302 |
# File 'lib/google/apis/osconfig_v1/classes.rb', line 2300 def pull_deps @pull_deps end |
#source ⇒ Google::Apis::OsconfigV1::OsPolicyResourceFile
A remote or local file.
Corresponds to the JSON property source
2306 2307 2308 |
# File 'lib/google/apis/osconfig_v1/classes.rb', line 2306 def source @source end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
2313 2314 2315 2316 |
# File 'lib/google/apis/osconfig_v1/classes.rb', line 2313 def update!(**args) @pull_deps = args[:pull_deps] if args.key?(:pull_deps) @source = args[:source] if args.key?(:source) end |