Google Cloud OsConfig V1 Client - Class RPM (2.0.0-RC1)

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

An RPM package file. RPM packages only support INSTALLED state.

Generated from protobuf message google.cloud.osconfig.v1.OSPolicy.Resource.PackageResource.RPM

Namespace

Google \ Cloud \ OsConfig \ V1 \ OSPolicy \ Resource \ PackageResource

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ source Google\Cloud\OsConfig\V1\OSPolicy\Resource\File

Required. An rpm package.

↳ pull_deps bool

Whether dependencies should also be installed. - install when false: rpm --upgrade --replacepkgs package.rpm - install when true: yum -y install package.rpm or zypper -y install package.rpm

getSource

Required. An rpm package.

Returns
Type Description
Google\Cloud\OsConfig\V1\OSPolicy\Resource\File|null

hasSource

clearSource

setSource

Required. An rpm package.

Parameter
Name Description
var Google\Cloud\OsConfig\V1\OSPolicy\Resource\File
Returns
Type Description
$this

getPullDeps

Whether dependencies should also be installed.

  • install when false: rpm --upgrade --replacepkgs package.rpm
  • install when true: yum -y install package.rpm or zypper -y install package.rpm
Returns
Type Description
bool

setPullDeps

Whether dependencies should also be installed.

  • install when false: rpm --upgrade --replacepkgs package.rpm
  • install when true: yum -y install package.rpm or zypper -y install package.rpm
Parameter
Name Description
var bool
Returns
Type Description
$this