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.
2233 2234 2235 |
# File 'lib/google/apis/osconfig_v1/classes.rb', line 2233 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
2225 2226 2227 |
# File 'lib/google/apis/osconfig_v1/classes.rb', line 2225 def pull_deps @pull_deps end |
#source ⇒ Google::Apis::OsconfigV1::OsPolicyResourceFile
A remote or local file.
Corresponds to the JSON property source
2231 2232 2233 |
# File 'lib/google/apis/osconfig_v1/classes.rb', line 2231 def source @source end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
2238 2239 2240 2241 |
# File 'lib/google/apis/osconfig_v1/classes.rb', line 2238 def update!(**args) @pull_deps = args[:pull_deps] if args.key?(:pull_deps) @source = args[:source] if args.key?(:source) end |