Class: Google::Cloud::OsConfig::V1::AptSettings

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

Overview

Apt patching is completed by executing apt-get update && apt-get upgrade. Additional options can be set to control how this is executed.

Defined Under Namespace

Modules: Type

Instance Attribute Summary collapse

Instance Attribute Details

#excludes::Array<::String>

Returns List of packages to exclude from update. These packages will be excluded.

Returns:

  • (::Array<::String>)

    List of packages to exclude from update. These packages will be excluded



449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
# File 'proto_docs/google/cloud/osconfig/v1/patch_jobs.rb', line 449

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

  # Apt patch type.
  module Type
    # By default, upgrade will be performed.
    TYPE_UNSPECIFIED = 0

    # Runs `apt-get dist-upgrade`.
    DIST = 1

    # Runs `apt-get upgrade`.
    UPGRADE = 2
  end
end

#exclusive_packages::Array<::String>

Returns An exclusive list of packages to be updated. These are the only packages that will be updated. If these packages are not installed, they will be ignored. This field cannot be specified with any other patch configuration fields.

Returns:

  • (::Array<::String>)

    An exclusive list of packages to be updated. These are the only packages that will be updated. If these packages are not installed, they will be ignored. This field cannot be specified with any other patch configuration fields.



449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
# File 'proto_docs/google/cloud/osconfig/v1/patch_jobs.rb', line 449

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

  # Apt patch type.
  module Type
    # By default, upgrade will be performed.
    TYPE_UNSPECIFIED = 0

    # Runs `apt-get dist-upgrade`.
    DIST = 1

    # Runs `apt-get upgrade`.
    UPGRADE = 2
  end
end

#type::Google::Cloud::OsConfig::V1::AptSettings::Type

Returns By changing the type to DIST, the patching is performed using apt-get dist-upgrade instead.

Returns:



449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
# File 'proto_docs/google/cloud/osconfig/v1/patch_jobs.rb', line 449

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

  # Apt patch type.
  module Type
    # By default, upgrade will be performed.
    TYPE_UNSPECIFIED = 0

    # Runs `apt-get dist-upgrade`.
    DIST = 1

    # Runs `apt-get upgrade`.
    UPGRADE = 2
  end
end