Google Cloud OsConfig V1 Client - Class Deb (1.1.1)

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

A deb package file. dpkg packages only support INSTALLED state.

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

Namespace

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

Methods

__construct

Constructor.

Parameters
NameDescription
data array

Optional. Data for populating the Message object.

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

Required. A deb package.

↳ pull_deps bool

Whether dependencies should also be installed. - install when false: dpkg -i package - install when true: apt-get update && apt-get -y install package.deb

getSource

Required. A deb package.

Returns
TypeDescription
Google\Cloud\OsConfig\V1\OSPolicy\Resource\File|null

hasSource

clearSource

setSource

Required. A deb package.

Parameter
NameDescription
var Google\Cloud\OsConfig\V1\OSPolicy\Resource\File
Returns
TypeDescription
$this

getPullDeps

Whether dependencies should also be installed.

  • install when false: dpkg -i package
  • install when true: apt-get update && apt-get -y install package.deb
Returns
TypeDescription
bool

setPullDeps

Whether dependencies should also be installed.

  • install when false: dpkg -i package
  • install when true: apt-get update && apt-get -y install package.deb
Parameter
NameDescription
var bool
Returns
TypeDescription
$this