Google Cloud OsConfig V1 Client - Class RPM (1.0.5)

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

Methods

__construct

Constructor.

Parameters
NameDescription
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
TypeDescription
Google\Cloud\OsConfig\V1\OSPolicy\Resource\File|null

hasSource

clearSource

setSource

Required. An rpm package.

Parameter
NameDescription
var Google\Cloud\OsConfig\V1\OSPolicy\Resource\File
Returns
TypeDescription
$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
TypeDescription
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
NameDescription
var bool
Returns
TypeDescription
$this