Class: Google::Apis::OsconfigV1::OsPolicyResourcePackageResourceDeb

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

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_depsBoolean 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

Returns:

  • (Boolean)


2225
2226
2227
# File 'lib/google/apis/osconfig_v1/classes.rb', line 2225

def pull_deps
  @pull_deps
end

#sourceGoogle::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