Class: Google::Apis::OsconfigV1::OsPolicyResourcePackageResourceDeb
- Inherits:
-
Object
- Object
- Google::Apis::OsconfigV1::OsPolicyResourcePackageResourceDeb
- 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
A deb package file. dpkg 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) ⇒ OsPolicyResourcePackageResourceDeb
constructor
A new instance of OsPolicyResourcePackageResourceDeb.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ OsPolicyResourcePackageResourceDeb
Returns a new instance of OsPolicyResourcePackageResourceDeb.
2292 2293 2294 |
# File 'lib/google/apis/osconfig_v1/classes.rb', line 2292 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: dpkg -i
package
- install when true: apt-get update && apt-get -y install package.
deb
Corresponds to the JSON property pullDeps
2284 2285 2286 |
# File 'lib/google/apis/osconfig_v1/classes.rb', line 2284 def pull_deps @pull_deps end |
#source ⇒ Google::Apis::OsconfigV1::OsPolicyResourceFile
A remote or local file.
Corresponds to the JSON property source
2290 2291 2292 |
# File 'lib/google/apis/osconfig_v1/classes.rb', line 2290 def source @source end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
2297 2298 2299 2300 |
# File 'lib/google/apis/osconfig_v1/classes.rb', line 2297 def update!(**args) @pull_deps = args[:pull_deps] if args.key?(:pull_deps) @source = args[:source] if args.key?(:source) end |