Google Cloud OsConfig V1 Client - Class YumSettings (1.1.1)

Reference documentation and code samples for the Google Cloud OsConfig V1 Client class YumSettings.

Yum patching is performed by executing yum update. Additional options can be set to control how this is executed.

Note that not all settings are supported on all platforms.

Generated from protobuf message google.cloud.osconfig.v1.YumSettings

Namespace

Google \ Cloud \ OsConfig \ V1

Methods

__construct

Constructor.

Parameters
NameDescription
data array

Optional. Data for populating the Message object.

↳ security bool

Adds the --security flag to yum update. Not supported on all platforms.

↳ minimal bool

Will cause patch to run yum update-minimal instead.

↳ excludes array

List of packages to exclude from update. These packages are excluded by using the yum --exclude flag.

↳ exclusive_packages array

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 must not be specified with any other patch configuration fields.

getSecurity

Adds the --security flag to yum update. Not supported on all platforms.

Returns
TypeDescription
bool

setSecurity

Adds the --security flag to yum update. Not supported on all platforms.

Parameter
NameDescription
var bool
Returns
TypeDescription
$this

getMinimal

Will cause patch to run yum update-minimal instead.

Returns
TypeDescription
bool

setMinimal

Will cause patch to run yum update-minimal instead.

Parameter
NameDescription
var bool
Returns
TypeDescription
$this

getExcludes

List of packages to exclude from update. These packages are excluded by using the yum --exclude flag.

Returns
TypeDescription
Google\Protobuf\Internal\RepeatedField

setExcludes

List of packages to exclude from update. These packages are excluded by using the yum --exclude flag.

Parameter
NameDescription
var string[]
Returns
TypeDescription
$this

getExclusivePackages

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 must not be specified with any other patch configuration fields.

Returns
TypeDescription
Google\Protobuf\Internal\RepeatedField

setExclusivePackages

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 must not be specified with any other patch configuration fields.

Parameter
NameDescription
var string[]
Returns
TypeDescription
$this