Google Cloud OsConfig V1 Client - Class RepositoryResource (1.0.5)

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

A resource that manages a package repository.

Generated from protobuf message google.cloud.osconfig.v1.OSPolicy.Resource.RepositoryResource

Methods

__construct

Constructor.

Parameters
NameDescription
data array

Optional. Data for populating the Message object.

↳ apt Google\Cloud\OsConfig\V1\OSPolicy\Resource\RepositoryResource\AptRepository

An Apt Repository.

↳ yum Google\Cloud\OsConfig\V1\OSPolicy\Resource\RepositoryResource\YumRepository

A Yum Repository.

↳ zypper Google\Cloud\OsConfig\V1\OSPolicy\Resource\RepositoryResource\ZypperRepository

A Zypper Repository.

↳ goo Google\Cloud\OsConfig\V1\OSPolicy\Resource\RepositoryResource\GooRepository

A Goo Repository.

getApt

An Apt Repository.

Returns
TypeDescription
Google\Cloud\OsConfig\V1\OSPolicy\Resource\RepositoryResource\AptRepository|null

hasApt

setApt

An Apt Repository.

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

getYum

A Yum Repository.

Returns
TypeDescription
Google\Cloud\OsConfig\V1\OSPolicy\Resource\RepositoryResource\YumRepository|null

hasYum

setYum

A Yum Repository.

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

getZypper

A Zypper Repository.

Returns
TypeDescription
Google\Cloud\OsConfig\V1\OSPolicy\Resource\RepositoryResource\ZypperRepository|null

hasZypper

setZypper

A Zypper Repository.

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

getGoo

A Goo Repository.

Returns
TypeDescription
Google\Cloud\OsConfig\V1\OSPolicy\Resource\RepositoryResource\GooRepository|null

hasGoo

setGoo

A Goo Repository.

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

getRepository

Returns
TypeDescription
string