Generated from protobuf messagegoogle.cloud.osconfig.v1.ZypperSettings
Namespace
Google \ Cloud \ OsConfig \ V1
Methods
__construct
Constructor.
Parameters
Name
Description
data
array
Optional. Data for populating the Message object.
↳ with_optional
bool
Adds the--with-optionalflag tozypper patch.
↳ with_update
bool
Adds the--with-updateflag, tozypper 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-optionalflag tozypper patch.
Returns
Type
Description
bool
setWithOptional
Adds the--with-optionalflag tozypper patch.
Parameter
Name
Description
var
bool
Returns
Type
Description
$this
getWithUpdate
Adds the--with-updateflag, tozypper patch.
Returns
Type
Description
bool
setWithUpdate
Adds the--with-updateflag, tozypper patch.
Parameter
Name
Description
var
bool
Returns
Type
Description
$this
getCategories
Install only patches with these categories.
Common categories include security, recommended, and feature.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-09-04 UTC."],[],[],null,["# Google Cloud OsConfig V1 Client - Class ZypperSettings (2.1.0)\n\nVersion latestkeyboard_arrow_down\n\n- [2.1.0 (latest)](/php/docs/reference/cloud-osconfig/latest/V1.ZypperSettings)\n- [2.0.5](/php/docs/reference/cloud-osconfig/2.0.5/V1.ZypperSettings)\n- [1.3.5](/php/docs/reference/cloud-osconfig/1.3.5/V1.ZypperSettings)\n- [1.2.2](/php/docs/reference/cloud-osconfig/1.2.2/V1.ZypperSettings)\n- [1.1.1](/php/docs/reference/cloud-osconfig/1.1.1/V1.ZypperSettings)\n- [1.0.5](/php/docs/reference/cloud-osconfig/1.0.5/V1.ZypperSettings) \nReference documentation and code samples for the Google Cloud OsConfig V1 Client class ZypperSettings.\n\nZypper patching is performed by running `zypper patch`.\n\nSee also \u003chttps://en.opensuse.org/SDB:Zypper_manual\u003e.\n\nGenerated from protobuf message `google.cloud.osconfig.v1.ZypperSettings`\n\nNamespace\n---------\n\nGoogle \\\\ Cloud \\\\ OsConfig \\\\ V1\n\nMethods\n-------\n\n### __construct\n\nConstructor.\n\n### getWithOptional\n\nAdds the `--with-optional` flag to `zypper patch`.\n\n### setWithOptional\n\nAdds the `--with-optional` flag to `zypper patch`.\n\n### getWithUpdate\n\nAdds the `--with-update` flag, to `zypper patch`.\n\n### setWithUpdate\n\nAdds the `--with-update` flag, to `zypper patch`.\n\n### getCategories\n\nInstall only patches with these categories.\n\nCommon categories include security, recommended, and feature.\n\n### setCategories\n\nInstall only patches with these categories.\n\nCommon categories include security, recommended, and feature.\n\n### getSeverities\n\nInstall only patches with these severities.\n\nCommon severities include critical, important, moderate, and low.\n\n### setSeverities\n\nInstall only patches with these severities.\n\nCommon severities include critical, important, moderate, and low.\n\n### getExcludes\n\nList of patches to exclude from update.\n\n### setExcludes\n\nList of patches to exclude from update.\n\n### getExclusivePatches\n\nAn exclusive list of patches to be updated. These are the only patches\nthat will be installed using 'zypper patch patch:\\\u003cpatch_name\\\u003e' command.\n\nThis field must not be used with any other patch configuration fields.\n\n### setExclusivePatches\n\nAn exclusive list of patches to be updated. These are the only patches\nthat will be installed using 'zypper patch patch:\\\u003cpatch_name\\\u003e' command.\n\nThis field must not be used with any other patch configuration fields."]]