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.
2367 2368 2369 |
# File 'lib/google/apis/osconfig_v1/classes.rb', line 2367 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
2359 2360 2361 |
# File 'lib/google/apis/osconfig_v1/classes.rb', line 2359 def pull_deps @pull_deps end |
#source ⇒ Google::Apis::OsconfigV1::OsPolicyResourceFile
A remote or local file.
Corresponds to the JSON property source
2365 2366 2367 |
# File 'lib/google/apis/osconfig_v1/classes.rb', line 2365 def source @source end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
2372 2373 2374 2375 |
# File 'lib/google/apis/osconfig_v1/classes.rb', line 2372 def update!(**args) @pull_deps = args[:pull_deps] if args.key?(:pull_deps) @source = args[:source] if args.key?(:source) end |