Google Cloud OsConfig V1 Client - Class YumSettings (2.0.0)

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
Name Description
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
Type Description
bool

setSecurity

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

Parameter
Name Description
var bool
Returns
Type Description
$this

getMinimal

Will cause patch to run yum update-minimal instead.

Returns
Type Description
bool

setMinimal

Will cause patch to run yum update-minimal instead.

Parameter
Name Description
var bool
Returns
Type Description
$this

getExcludes

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

Returns
Type Description
Google\Protobuf\Internal\RepeatedField

setExcludes

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

Parameter
Name Description
var string[]
Returns
Type Description
$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
Type Description
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
Name Description
var string[]
Returns
Type Description
$this