Google Cloud OsConfig V1 Client - Class PatchConfig (1.0.5)

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

Patch configuration specifications. Contains details on how to apply the patch(es) to a VM instance.

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

Methods

__construct

Constructor.

Parameters
NameDescription
data array

Optional. Data for populating the Message object.

↳ reboot_config int

Post-patch reboot settings.

↳ apt Google\Cloud\OsConfig\V1\AptSettings

Apt update settings. Use this setting to override the default apt patch rules.

↳ yum Google\Cloud\OsConfig\V1\YumSettings

Yum update settings. Use this setting to override the default yum patch rules.

↳ goo Google\Cloud\OsConfig\V1\GooSettings

Goo update settings. Use this setting to override the default goo patch rules.

↳ zypper Google\Cloud\OsConfig\V1\ZypperSettings

Zypper update settings. Use this setting to override the default zypper patch rules.

↳ windows_update Google\Cloud\OsConfig\V1\WindowsUpdateSettings

Windows update settings. Use this override the default windows patch rules.

↳ pre_step Google\Cloud\OsConfig\V1\ExecStep

The ExecStep to run before the patch update.

↳ post_step Google\Cloud\OsConfig\V1\ExecStep

The ExecStep to run after the patch update.

↳ mig_instances_allowed bool

Allows the patch job to run on Managed instance groups (MIGs).

getRebootConfig

Post-patch reboot settings.

Returns
TypeDescription
int

setRebootConfig

Post-patch reboot settings.

Parameter
NameDescription
var int
Returns
TypeDescription
$this

getApt

Apt update settings. Use this setting to override the default apt patch rules.

Returns
TypeDescription
Google\Cloud\OsConfig\V1\AptSettings|null

hasApt

clearApt

setApt

Apt update settings. Use this setting to override the default apt patch rules.

Parameter
NameDescription
var Google\Cloud\OsConfig\V1\AptSettings
Returns
TypeDescription
$this

getYum

Yum update settings. Use this setting to override the default yum patch rules.

Returns
TypeDescription
Google\Cloud\OsConfig\V1\YumSettings|null

hasYum

clearYum

setYum

Yum update settings. Use this setting to override the default yum patch rules.

Parameter
NameDescription
var Google\Cloud\OsConfig\V1\YumSettings
Returns
TypeDescription
$this

getGoo

Goo update settings. Use this setting to override the default goo patch rules.

Returns
TypeDescription
Google\Cloud\OsConfig\V1\GooSettings|null

hasGoo

clearGoo

setGoo

Goo update settings. Use this setting to override the default goo patch rules.

Parameter
NameDescription
var Google\Cloud\OsConfig\V1\GooSettings
Returns
TypeDescription
$this

getZypper

Zypper update settings. Use this setting to override the default zypper patch rules.

Returns
TypeDescription
Google\Cloud\OsConfig\V1\ZypperSettings|null

hasZypper

clearZypper

setZypper

Zypper update settings. Use this setting to override the default zypper patch rules.

Parameter
NameDescription
var Google\Cloud\OsConfig\V1\ZypperSettings
Returns
TypeDescription
$this

getWindowsUpdate

Windows update settings. Use this override the default windows patch rules.

Returns
TypeDescription
Google\Cloud\OsConfig\V1\WindowsUpdateSettings|null

hasWindowsUpdate

clearWindowsUpdate

setWindowsUpdate

Windows update settings. Use this override the default windows patch rules.

Parameter
NameDescription
var Google\Cloud\OsConfig\V1\WindowsUpdateSettings
Returns
TypeDescription
$this

getPreStep

The ExecStep to run before the patch update.

Returns
TypeDescription
Google\Cloud\OsConfig\V1\ExecStep|null

hasPreStep

clearPreStep

setPreStep

The ExecStep to run before the patch update.

Parameter
NameDescription
var Google\Cloud\OsConfig\V1\ExecStep
Returns
TypeDescription
$this

getPostStep

The ExecStep to run after the patch update.

Returns
TypeDescription
Google\Cloud\OsConfig\V1\ExecStep|null

hasPostStep

clearPostStep

setPostStep

The ExecStep to run after the patch update.

Parameter
NameDescription
var Google\Cloud\OsConfig\V1\ExecStep
Returns
TypeDescription
$this

getMigInstancesAllowed

Allows the patch job to run on Managed instance groups (MIGs).

Returns
TypeDescription
bool

setMigInstancesAllowed

Allows the patch job to run on Managed instance groups (MIGs).

Parameter
NameDescription
var bool
Returns
TypeDescription
$this