Class: Google::Cloud::OsConfig::V1alpha::OSPolicy::Resource::PackageResource

Inherits:
Object
  • Object
show all
Extended by:
Protobuf::MessageExts::ClassMethods
Includes:
Protobuf::MessageExts
Defined in:
proto_docs/google/cloud/osconfig/v1alpha/os_policy.rb

Overview

A resource that manages a system package.

Defined Under Namespace

Modules: DesiredState Classes: APT, Deb, GooGet, MSI, RPM, YUM, Zypper

Instance Attribute Summary collapse

Instance Attribute Details

#apt::Google::Cloud::OsConfig::V1alpha::OSPolicy::Resource::PackageResource::APT

Returns A package managed by Apt.

Note: The following fields are mutually exclusive: apt, deb, yum, zypper, rpm, googet, msi. If a field in that set is populated, all other fields in the set will automatically be cleared.

Returns:



230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
# File 'proto_docs/google/cloud/osconfig/v1alpha/os_policy.rb', line 230

class PackageResource
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods

  # A deb package file. dpkg packages only support INSTALLED state.
  # @!attribute [rw] source
  #   @return [::Google::Cloud::OsConfig::V1alpha::OSPolicy::Resource::File]
  #     Required. A deb package.
  # @!attribute [rw] pull_deps
  #   @return [::Boolean]
  #     Whether dependencies should also be installed.
  #     - install when false: `dpkg -i package`
  #     - install when true: `apt-get update && apt-get -y install
  #     package.deb`
  class Deb
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods
  end

  # A package managed by APT.
  # - install: `apt-get update && apt-get -y install [name]`
  # - remove: `apt-get -y remove [name]`
  # @!attribute [rw] name
  #   @return [::String]
  #     Required. Package name.
  class APT
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods
  end

  # An RPM package file. RPM packages only support INSTALLED state.
  # @!attribute [rw] source
  #   @return [::Google::Cloud::OsConfig::V1alpha::OSPolicy::Resource::File]
  #     Required. An rpm package.
  # @!attribute [rw] pull_deps
  #   @return [::Boolean]
  #     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`
  class RPM
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods
  end

  # A package managed by YUM.
  # - install: `yum -y install package`
  # - remove: `yum -y remove package`
  # @!attribute [rw] name
  #   @return [::String]
  #     Required. Package name.
  class YUM
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods
  end

  # A package managed by Zypper.
  # - install: `zypper -y install package`
  # - remove: `zypper -y rm package`
  # @!attribute [rw] name
  #   @return [::String]
  #     Required. Package name.
  class Zypper
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods
  end

  # A package managed by GooGet.
  # - install: `googet -noconfirm install package`
  # - remove: `googet -noconfirm remove package`
  # @!attribute [rw] name
  #   @return [::String]
  #     Required. Package name.
  class GooGet
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods
  end

  # An MSI package. MSI packages only support INSTALLED state.
  # @!attribute [rw] source
  #   @return [::Google::Cloud::OsConfig::V1alpha::OSPolicy::Resource::File]
  #     Required. The MSI package.
  # @!attribute [rw] properties
  #   @return [::Array<::String>]
  #     Additional properties to use during installation.
  #     This should be in the format of Property=Setting.
  #     Appended to the defaults of `ACTION=INSTALL
  #     REBOOT=ReallySuppress`.
  class MSI
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods
  end

  # The desired state that the OS Config agent maintains on the VM.
  module DesiredState
    # Unspecified is invalid.
    DESIRED_STATE_UNSPECIFIED = 0

    # Ensure that the package is installed.
    INSTALLED = 1

    # The agent ensures that the package is not installed and
    # uninstalls it if detected.
    REMOVED = 2
  end
end

#deb::Google::Cloud::OsConfig::V1alpha::OSPolicy::Resource::PackageResource::Deb

Returns A deb package file.

Note: The following fields are mutually exclusive: deb, apt, yum, zypper, rpm, googet, msi. If a field in that set is populated, all other fields in the set will automatically be cleared.

Returns:



230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
# File 'proto_docs/google/cloud/osconfig/v1alpha/os_policy.rb', line 230

class PackageResource
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods

  # A deb package file. dpkg packages only support INSTALLED state.
  # @!attribute [rw] source
  #   @return [::Google::Cloud::OsConfig::V1alpha::OSPolicy::Resource::File]
  #     Required. A deb package.
  # @!attribute [rw] pull_deps
  #   @return [::Boolean]
  #     Whether dependencies should also be installed.
  #     - install when false: `dpkg -i package`
  #     - install when true: `apt-get update && apt-get -y install
  #     package.deb`
  class Deb
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods
  end

  # A package managed by APT.
  # - install: `apt-get update && apt-get -y install [name]`
  # - remove: `apt-get -y remove [name]`
  # @!attribute [rw] name
  #   @return [::String]
  #     Required. Package name.
  class APT
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods
  end

  # An RPM package file. RPM packages only support INSTALLED state.
  # @!attribute [rw] source
  #   @return [::Google::Cloud::OsConfig::V1alpha::OSPolicy::Resource::File]
  #     Required. An rpm package.
  # @!attribute [rw] pull_deps
  #   @return [::Boolean]
  #     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`
  class RPM
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods
  end

  # A package managed by YUM.
  # - install: `yum -y install package`
  # - remove: `yum -y remove package`
  # @!attribute [rw] name
  #   @return [::String]
  #     Required. Package name.
  class YUM
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods
  end

  # A package managed by Zypper.
  # - install: `zypper -y install package`
  # - remove: `zypper -y rm package`
  # @!attribute [rw] name
  #   @return [::String]
  #     Required. Package name.
  class Zypper
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods
  end

  # A package managed by GooGet.
  # - install: `googet -noconfirm install package`
  # - remove: `googet -noconfirm remove package`
  # @!attribute [rw] name
  #   @return [::String]
  #     Required. Package name.
  class GooGet
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods
  end

  # An MSI package. MSI packages only support INSTALLED state.
  # @!attribute [rw] source
  #   @return [::Google::Cloud::OsConfig::V1alpha::OSPolicy::Resource::File]
  #     Required. The MSI package.
  # @!attribute [rw] properties
  #   @return [::Array<::String>]
  #     Additional properties to use during installation.
  #     This should be in the format of Property=Setting.
  #     Appended to the defaults of `ACTION=INSTALL
  #     REBOOT=ReallySuppress`.
  class MSI
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods
  end

  # The desired state that the OS Config agent maintains on the VM.
  module DesiredState
    # Unspecified is invalid.
    DESIRED_STATE_UNSPECIFIED = 0

    # Ensure that the package is installed.
    INSTALLED = 1

    # The agent ensures that the package is not installed and
    # uninstalls it if detected.
    REMOVED = 2
  end
end

#desired_state::Google::Cloud::OsConfig::V1alpha::OSPolicy::Resource::PackageResource::DesiredState

Returns Required. The desired state the agent should maintain for this package.

Returns:



230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
# File 'proto_docs/google/cloud/osconfig/v1alpha/os_policy.rb', line 230

class PackageResource
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods

  # A deb package file. dpkg packages only support INSTALLED state.
  # @!attribute [rw] source
  #   @return [::Google::Cloud::OsConfig::V1alpha::OSPolicy::Resource::File]
  #     Required. A deb package.
  # @!attribute [rw] pull_deps
  #   @return [::Boolean]
  #     Whether dependencies should also be installed.
  #     - install when false: `dpkg -i package`
  #     - install when true: `apt-get update && apt-get -y install
  #     package.deb`
  class Deb
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods
  end

  # A package managed by APT.
  # - install: `apt-get update && apt-get -y install [name]`
  # - remove: `apt-get -y remove [name]`
  # @!attribute [rw] name
  #   @return [::String]
  #     Required. Package name.
  class APT
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods
  end

  # An RPM package file. RPM packages only support INSTALLED state.
  # @!attribute [rw] source
  #   @return [::Google::Cloud::OsConfig::V1alpha::OSPolicy::Resource::File]
  #     Required. An rpm package.
  # @!attribute [rw] pull_deps
  #   @return [::Boolean]
  #     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`
  class RPM
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods
  end

  # A package managed by YUM.
  # - install: `yum -y install package`
  # - remove: `yum -y remove package`
  # @!attribute [rw] name
  #   @return [::String]
  #     Required. Package name.
  class YUM
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods
  end

  # A package managed by Zypper.
  # - install: `zypper -y install package`
  # - remove: `zypper -y rm package`
  # @!attribute [rw] name
  #   @return [::String]
  #     Required. Package name.
  class Zypper
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods
  end

  # A package managed by GooGet.
  # - install: `googet -noconfirm install package`
  # - remove: `googet -noconfirm remove package`
  # @!attribute [rw] name
  #   @return [::String]
  #     Required. Package name.
  class GooGet
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods
  end

  # An MSI package. MSI packages only support INSTALLED state.
  # @!attribute [rw] source
  #   @return [::Google::Cloud::OsConfig::V1alpha::OSPolicy::Resource::File]
  #     Required. The MSI package.
  # @!attribute [rw] properties
  #   @return [::Array<::String>]
  #     Additional properties to use during installation.
  #     This should be in the format of Property=Setting.
  #     Appended to the defaults of `ACTION=INSTALL
  #     REBOOT=ReallySuppress`.
  class MSI
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods
  end

  # The desired state that the OS Config agent maintains on the VM.
  module DesiredState
    # Unspecified is invalid.
    DESIRED_STATE_UNSPECIFIED = 0

    # Ensure that the package is installed.
    INSTALLED = 1

    # The agent ensures that the package is not installed and
    # uninstalls it if detected.
    REMOVED = 2
  end
end

#googet::Google::Cloud::OsConfig::V1alpha::OSPolicy::Resource::PackageResource::GooGet

Returns A package managed by GooGet.

Note: The following fields are mutually exclusive: googet, apt, deb, yum, zypper, rpm, msi. If a field in that set is populated, all other fields in the set will automatically be cleared.

Returns:



230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
# File 'proto_docs/google/cloud/osconfig/v1alpha/os_policy.rb', line 230

class PackageResource
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods

  # A deb package file. dpkg packages only support INSTALLED state.
  # @!attribute [rw] source
  #   @return [::Google::Cloud::OsConfig::V1alpha::OSPolicy::Resource::File]
  #     Required. A deb package.
  # @!attribute [rw] pull_deps
  #   @return [::Boolean]
  #     Whether dependencies should also be installed.
  #     - install when false: `dpkg -i package`
  #     - install when true: `apt-get update && apt-get -y install
  #     package.deb`
  class Deb
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods
  end

  # A package managed by APT.
  # - install: `apt-get update && apt-get -y install [name]`
  # - remove: `apt-get -y remove [name]`
  # @!attribute [rw] name
  #   @return [::String]
  #     Required. Package name.
  class APT
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods
  end

  # An RPM package file. RPM packages only support INSTALLED state.
  # @!attribute [rw] source
  #   @return [::Google::Cloud::OsConfig::V1alpha::OSPolicy::Resource::File]
  #     Required. An rpm package.
  # @!attribute [rw] pull_deps
  #   @return [::Boolean]
  #     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`
  class RPM
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods
  end

  # A package managed by YUM.
  # - install: `yum -y install package`
  # - remove: `yum -y remove package`
  # @!attribute [rw] name
  #   @return [::String]
  #     Required. Package name.
  class YUM
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods
  end

  # A package managed by Zypper.
  # - install: `zypper -y install package`
  # - remove: `zypper -y rm package`
  # @!attribute [rw] name
  #   @return [::String]
  #     Required. Package name.
  class Zypper
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods
  end

  # A package managed by GooGet.
  # - install: `googet -noconfirm install package`
  # - remove: `googet -noconfirm remove package`
  # @!attribute [rw] name
  #   @return [::String]
  #     Required. Package name.
  class GooGet
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods
  end

  # An MSI package. MSI packages only support INSTALLED state.
  # @!attribute [rw] source
  #   @return [::Google::Cloud::OsConfig::V1alpha::OSPolicy::Resource::File]
  #     Required. The MSI package.
  # @!attribute [rw] properties
  #   @return [::Array<::String>]
  #     Additional properties to use during installation.
  #     This should be in the format of Property=Setting.
  #     Appended to the defaults of `ACTION=INSTALL
  #     REBOOT=ReallySuppress`.
  class MSI
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods
  end

  # The desired state that the OS Config agent maintains on the VM.
  module DesiredState
    # Unspecified is invalid.
    DESIRED_STATE_UNSPECIFIED = 0

    # Ensure that the package is installed.
    INSTALLED = 1

    # The agent ensures that the package is not installed and
    # uninstalls it if detected.
    REMOVED = 2
  end
end

#msi::Google::Cloud::OsConfig::V1alpha::OSPolicy::Resource::PackageResource::MSI

Returns An MSI package.

Note: The following fields are mutually exclusive: msi, apt, deb, yum, zypper, rpm, googet. If a field in that set is populated, all other fields in the set will automatically be cleared.

Returns:



230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
# File 'proto_docs/google/cloud/osconfig/v1alpha/os_policy.rb', line 230

class PackageResource
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods

  # A deb package file. dpkg packages only support INSTALLED state.
  # @!attribute [rw] source
  #   @return [::Google::Cloud::OsConfig::V1alpha::OSPolicy::Resource::File]
  #     Required. A deb package.
  # @!attribute [rw] pull_deps
  #   @return [::Boolean]
  #     Whether dependencies should also be installed.
  #     - install when false: `dpkg -i package`
  #     - install when true: `apt-get update && apt-get -y install
  #     package.deb`
  class Deb
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods
  end

  # A package managed by APT.
  # - install: `apt-get update && apt-get -y install [name]`
  # - remove: `apt-get -y remove [name]`
  # @!attribute [rw] name
  #   @return [::String]
  #     Required. Package name.
  class APT
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods
  end

  # An RPM package file. RPM packages only support INSTALLED state.
  # @!attribute [rw] source
  #   @return [::Google::Cloud::OsConfig::V1alpha::OSPolicy::Resource::File]
  #     Required. An rpm package.
  # @!attribute [rw] pull_deps
  #   @return [::Boolean]
  #     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`
  class RPM
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods
  end

  # A package managed by YUM.
  # - install: `yum -y install package`
  # - remove: `yum -y remove package`
  # @!attribute [rw] name
  #   @return [::String]
  #     Required. Package name.
  class YUM
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods
  end

  # A package managed by Zypper.
  # - install: `zypper -y install package`
  # - remove: `zypper -y rm package`
  # @!attribute [rw] name
  #   @return [::String]
  #     Required. Package name.
  class Zypper
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods
  end

  # A package managed by GooGet.
  # - install: `googet -noconfirm install package`
  # - remove: `googet -noconfirm remove package`
  # @!attribute [rw] name
  #   @return [::String]
  #     Required. Package name.
  class GooGet
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods
  end

  # An MSI package. MSI packages only support INSTALLED state.
  # @!attribute [rw] source
  #   @return [::Google::Cloud::OsConfig::V1alpha::OSPolicy::Resource::File]
  #     Required. The MSI package.
  # @!attribute [rw] properties
  #   @return [::Array<::String>]
  #     Additional properties to use during installation.
  #     This should be in the format of Property=Setting.
  #     Appended to the defaults of `ACTION=INSTALL
  #     REBOOT=ReallySuppress`.
  class MSI
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods
  end

  # The desired state that the OS Config agent maintains on the VM.
  module DesiredState
    # Unspecified is invalid.
    DESIRED_STATE_UNSPECIFIED = 0

    # Ensure that the package is installed.
    INSTALLED = 1

    # The agent ensures that the package is not installed and
    # uninstalls it if detected.
    REMOVED = 2
  end
end

#rpm::Google::Cloud::OsConfig::V1alpha::OSPolicy::Resource::PackageResource::RPM

Returns An rpm package file.

Note: The following fields are mutually exclusive: rpm, apt, deb, yum, zypper, googet, msi. If a field in that set is populated, all other fields in the set will automatically be cleared.

Returns:



230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
# File 'proto_docs/google/cloud/osconfig/v1alpha/os_policy.rb', line 230

class PackageResource
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods

  # A deb package file. dpkg packages only support INSTALLED state.
  # @!attribute [rw] source
  #   @return [::Google::Cloud::OsConfig::V1alpha::OSPolicy::Resource::File]
  #     Required. A deb package.
  # @!attribute [rw] pull_deps
  #   @return [::Boolean]
  #     Whether dependencies should also be installed.
  #     - install when false: `dpkg -i package`
  #     - install when true: `apt-get update && apt-get -y install
  #     package.deb`
  class Deb
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods
  end

  # A package managed by APT.
  # - install: `apt-get update && apt-get -y install [name]`
  # - remove: `apt-get -y remove [name]`
  # @!attribute [rw] name
  #   @return [::String]
  #     Required. Package name.
  class APT
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods
  end

  # An RPM package file. RPM packages only support INSTALLED state.
  # @!attribute [rw] source
  #   @return [::Google::Cloud::OsConfig::V1alpha::OSPolicy::Resource::File]
  #     Required. An rpm package.
  # @!attribute [rw] pull_deps
  #   @return [::Boolean]
  #     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`
  class RPM
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods
  end

  # A package managed by YUM.
  # - install: `yum -y install package`
  # - remove: `yum -y remove package`
  # @!attribute [rw] name
  #   @return [::String]
  #     Required. Package name.
  class YUM
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods
  end

  # A package managed by Zypper.
  # - install: `zypper -y install package`
  # - remove: `zypper -y rm package`
  # @!attribute [rw] name
  #   @return [::String]
  #     Required. Package name.
  class Zypper
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods
  end

  # A package managed by GooGet.
  # - install: `googet -noconfirm install package`
  # - remove: `googet -noconfirm remove package`
  # @!attribute [rw] name
  #   @return [::String]
  #     Required. Package name.
  class GooGet
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods
  end

  # An MSI package. MSI packages only support INSTALLED state.
  # @!attribute [rw] source
  #   @return [::Google::Cloud::OsConfig::V1alpha::OSPolicy::Resource::File]
  #     Required. The MSI package.
  # @!attribute [rw] properties
  #   @return [::Array<::String>]
  #     Additional properties to use during installation.
  #     This should be in the format of Property=Setting.
  #     Appended to the defaults of `ACTION=INSTALL
  #     REBOOT=ReallySuppress`.
  class MSI
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods
  end

  # The desired state that the OS Config agent maintains on the VM.
  module DesiredState
    # Unspecified is invalid.
    DESIRED_STATE_UNSPECIFIED = 0

    # Ensure that the package is installed.
    INSTALLED = 1

    # The agent ensures that the package is not installed and
    # uninstalls it if detected.
    REMOVED = 2
  end
end

#yum::Google::Cloud::OsConfig::V1alpha::OSPolicy::Resource::PackageResource::YUM

Returns A package managed by YUM.

Note: The following fields are mutually exclusive: yum, apt, deb, zypper, rpm, googet, msi. If a field in that set is populated, all other fields in the set will automatically be cleared.

Returns:



230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
# File 'proto_docs/google/cloud/osconfig/v1alpha/os_policy.rb', line 230

class PackageResource
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods

  # A deb package file. dpkg packages only support INSTALLED state.
  # @!attribute [rw] source
  #   @return [::Google::Cloud::OsConfig::V1alpha::OSPolicy::Resource::File]
  #     Required. A deb package.
  # @!attribute [rw] pull_deps
  #   @return [::Boolean]
  #     Whether dependencies should also be installed.
  #     - install when false: `dpkg -i package`
  #     - install when true: `apt-get update && apt-get -y install
  #     package.deb`
  class Deb
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods
  end

  # A package managed by APT.
  # - install: `apt-get update && apt-get -y install [name]`
  # - remove: `apt-get -y remove [name]`
  # @!attribute [rw] name
  #   @return [::String]
  #     Required. Package name.
  class APT
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods
  end

  # An RPM package file. RPM packages only support INSTALLED state.
  # @!attribute [rw] source
  #   @return [::Google::Cloud::OsConfig::V1alpha::OSPolicy::Resource::File]
  #     Required. An rpm package.
  # @!attribute [rw] pull_deps
  #   @return [::Boolean]
  #     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`
  class RPM
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods
  end

  # A package managed by YUM.
  # - install: `yum -y install package`
  # - remove: `yum -y remove package`
  # @!attribute [rw] name
  #   @return [::String]
  #     Required. Package name.
  class YUM
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods
  end

  # A package managed by Zypper.
  # - install: `zypper -y install package`
  # - remove: `zypper -y rm package`
  # @!attribute [rw] name
  #   @return [::String]
  #     Required. Package name.
  class Zypper
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods
  end

  # A package managed by GooGet.
  # - install: `googet -noconfirm install package`
  # - remove: `googet -noconfirm remove package`
  # @!attribute [rw] name
  #   @return [::String]
  #     Required. Package name.
  class GooGet
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods
  end

  # An MSI package. MSI packages only support INSTALLED state.
  # @!attribute [rw] source
  #   @return [::Google::Cloud::OsConfig::V1alpha::OSPolicy::Resource::File]
  #     Required. The MSI package.
  # @!attribute [rw] properties
  #   @return [::Array<::String>]
  #     Additional properties to use during installation.
  #     This should be in the format of Property=Setting.
  #     Appended to the defaults of `ACTION=INSTALL
  #     REBOOT=ReallySuppress`.
  class MSI
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods
  end

  # The desired state that the OS Config agent maintains on the VM.
  module DesiredState
    # Unspecified is invalid.
    DESIRED_STATE_UNSPECIFIED = 0

    # Ensure that the package is installed.
    INSTALLED = 1

    # The agent ensures that the package is not installed and
    # uninstalls it if detected.
    REMOVED = 2
  end
end

#zypper::Google::Cloud::OsConfig::V1alpha::OSPolicy::Resource::PackageResource::Zypper

Returns A package managed by Zypper.

Note: The following fields are mutually exclusive: zypper, apt, deb, yum, rpm, googet, msi. If a field in that set is populated, all other fields in the set will automatically be cleared.

Returns:



230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
# File 'proto_docs/google/cloud/osconfig/v1alpha/os_policy.rb', line 230

class PackageResource
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods

  # A deb package file. dpkg packages only support INSTALLED state.
  # @!attribute [rw] source
  #   @return [::Google::Cloud::OsConfig::V1alpha::OSPolicy::Resource::File]
  #     Required. A deb package.
  # @!attribute [rw] pull_deps
  #   @return [::Boolean]
  #     Whether dependencies should also be installed.
  #     - install when false: `dpkg -i package`
  #     - install when true: `apt-get update && apt-get -y install
  #     package.deb`
  class Deb
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods
  end

  # A package managed by APT.
  # - install: `apt-get update && apt-get -y install [name]`
  # - remove: `apt-get -y remove [name]`
  # @!attribute [rw] name
  #   @return [::String]
  #     Required. Package name.
  class APT
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods
  end

  # An RPM package file. RPM packages only support INSTALLED state.
  # @!attribute [rw] source
  #   @return [::Google::Cloud::OsConfig::V1alpha::OSPolicy::Resource::File]
  #     Required. An rpm package.
  # @!attribute [rw] pull_deps
  #   @return [::Boolean]
  #     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`
  class RPM
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods
  end

  # A package managed by YUM.
  # - install: `yum -y install package`
  # - remove: `yum -y remove package`
  # @!attribute [rw] name
  #   @return [::String]
  #     Required. Package name.
  class YUM
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods
  end

  # A package managed by Zypper.
  # - install: `zypper -y install package`
  # - remove: `zypper -y rm package`
  # @!attribute [rw] name
  #   @return [::String]
  #     Required. Package name.
  class Zypper
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods
  end

  # A package managed by GooGet.
  # - install: `googet -noconfirm install package`
  # - remove: `googet -noconfirm remove package`
  # @!attribute [rw] name
  #   @return [::String]
  #     Required. Package name.
  class GooGet
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods
  end

  # An MSI package. MSI packages only support INSTALLED state.
  # @!attribute [rw] source
  #   @return [::Google::Cloud::OsConfig::V1alpha::OSPolicy::Resource::File]
  #     Required. The MSI package.
  # @!attribute [rw] properties
  #   @return [::Array<::String>]
  #     Additional properties to use during installation.
  #     This should be in the format of Property=Setting.
  #     Appended to the defaults of `ACTION=INSTALL
  #     REBOOT=ReallySuppress`.
  class MSI
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods
  end

  # The desired state that the OS Config agent maintains on the VM.
  module DesiredState
    # Unspecified is invalid.
    DESIRED_STATE_UNSPECIFIED = 0

    # Ensure that the package is installed.
    INSTALLED = 1

    # The agent ensures that the package is not installed and
    # uninstalls it if detected.
    REMOVED = 2
  end
end