Reference documentation and code samples for the Google Cloud OsConfig V1 Client class YumSettings.
Yum patching is performed by executingyum 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 messagegoogle.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--securityflag toyum update. Not supported on all platforms.
↳ minimal
bool
Will cause patch to runyum update-minimalinstead.
↳ excludes
array
List of packages to exclude from update. These packages are excluded by using the yum--excludeflag.
↳ 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--securityflag toyum update. Not supported on
all platforms.
Returns
Type
Description
bool
setSecurity
Adds the--securityflag toyum update. Not supported on
all platforms.
Parameter
Name
Description
var
bool
Returns
Type
Description
$this
getMinimal
Will cause patch to runyum update-minimalinstead.
Returns
Type
Description
bool
setMinimal
Will cause patch to runyum update-minimalinstead.
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--excludeflag.
List of packages to exclude from update. These packages are excluded by
using the yum--excludeflag.
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.
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.
[[["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 YumSettings (2.1.0)\n\nVersion latestkeyboard_arrow_down\n\n- [2.1.0 (latest)](/php/docs/reference/cloud-osconfig/latest/V1.YumSettings)\n- [2.0.5](/php/docs/reference/cloud-osconfig/2.0.5/V1.YumSettings)\n- [1.3.5](/php/docs/reference/cloud-osconfig/1.3.5/V1.YumSettings)\n- [1.2.2](/php/docs/reference/cloud-osconfig/1.2.2/V1.YumSettings)\n- [1.1.1](/php/docs/reference/cloud-osconfig/1.1.1/V1.YumSettings)\n- [1.0.5](/php/docs/reference/cloud-osconfig/1.0.5/V1.YumSettings) \nReference documentation and code samples for the Google Cloud OsConfig V1 Client class YumSettings.\n\nYum patching is performed by executing `yum update`. Additional options\ncan be set to control how this is executed.\n\nNote that not all settings are supported on all platforms.\n\nGenerated from protobuf message `google.cloud.osconfig.v1.YumSettings`\n\nNamespace\n---------\n\nGoogle \\\\ Cloud \\\\ OsConfig \\\\ V1\n\nMethods\n-------\n\n### __construct\n\nConstructor.\n\n### getSecurity\n\nAdds the `--security` flag to `yum update`. Not supported on\nall platforms.\n\n### setSecurity\n\nAdds the `--security` flag to `yum update`. Not supported on\nall platforms.\n\n### getMinimal\n\nWill cause patch to run `yum update-minimal` instead.\n\n### setMinimal\n\nWill cause patch to run `yum update-minimal` instead.\n\n### getExcludes\n\nList of packages to exclude from update. These packages are excluded by\nusing the yum `--exclude` flag.\n\n### setExcludes\n\nList of packages to exclude from update. These packages are excluded by\nusing the yum `--exclude` flag.\n\n### getExclusivePackages\n\nAn exclusive list of packages to be updated. These are the only packages\nthat will be updated. If these packages are not installed, they will be\nignored. This field must not be specified with any other patch\nconfiguration fields.\n\n### setExclusivePackages\n\nAn exclusive list of packages to be updated. These are the only packages\nthat will be updated. If these packages are not installed, they will be\nignored. This field must not be specified with any other patch\nconfiguration fields."]]