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

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
Name Description
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
Type Description
Google\Cloud\OsConfig\V1\OSPolicy\Resource\File|null

hasSource

clearSource

setSource

Required. A deb 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: dpkg -i package
  • install when true: apt-get update && apt-get -y install package.deb
Returns
Type Description
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
Name Description
var bool
Returns
Type Description
$this