Google Cloud OsConfig V1 Client - Class ZypperSettings (1.2.2)

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

Zypper patching is performed by running zypper patch.

See also https://en.opensuse.org/SDB:Zypper_manual.

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

Namespace

Google \ Cloud \ OsConfig \ V1

Methods

__construct

Constructor.

Parameters
NameDescription
data array

Optional. Data for populating the Message object.

↳ with_optional bool

Adds the --with-optional flag to zypper patch.

↳ with_update bool

Adds the --with-update flag, to zypper patch.

↳ categories array

Install only patches with these categories. Common categories include security, recommended, and feature.

↳ severities array

Install only patches with these severities. Common severities include critical, important, moderate, and low.

↳ excludes array

List of patches to exclude from update.

↳ exclusive_patches array

An exclusive list of patches to be updated. These are the only patches that will be installed using 'zypper patch patch:<patch_name>' command. This field must not be used with any other patch configuration fields.

getWithOptional

Adds the --with-optional flag to zypper patch.

Returns
TypeDescription
bool

setWithOptional

Adds the --with-optional flag to zypper patch.

Parameter
NameDescription
var bool
Returns
TypeDescription
$this

getWithUpdate

Adds the --with-update flag, to zypper patch.

Returns
TypeDescription
bool

setWithUpdate

Adds the --with-update flag, to zypper patch.

Parameter
NameDescription
var bool
Returns
TypeDescription
$this

getCategories

Install only patches with these categories.

Common categories include security, recommended, and feature.

Returns
TypeDescription
Google\Protobuf\Internal\RepeatedField

setCategories

Install only patches with these categories.

Common categories include security, recommended, and feature.

Parameter
NameDescription
var string[]
Returns
TypeDescription
$this

getSeverities

Install only patches with these severities.

Common severities include critical, important, moderate, and low.

Returns
TypeDescription
Google\Protobuf\Internal\RepeatedField

setSeverities

Install only patches with these severities.

Common severities include critical, important, moderate, and low.

Parameter
NameDescription
var string[]
Returns
TypeDescription
$this

getExcludes

List of patches to exclude from update.

Returns
TypeDescription
Google\Protobuf\Internal\RepeatedField

setExcludes

List of patches to exclude from update.

Parameter
NameDescription
var string[]
Returns
TypeDescription
$this

getExclusivePatches

An exclusive list of patches to be updated. These are the only patches that will be installed using 'zypper patch patch:<patch_name>' command.

This field must not be used with any other patch configuration fields.

Returns
TypeDescription
Google\Protobuf\Internal\RepeatedField

setExclusivePatches

An exclusive list of patches to be updated. These are the only patches that will be installed using 'zypper patch patch:<patch_name>' command.

This field must not be used with any other patch configuration fields.

Parameter
NameDescription
var string[]
Returns
TypeDescription
$this