Google Cloud OsConfig V1 Client - Class RepositoryResource (2.0.1)

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

Namespace

Google \ Cloud \ OsConfig \ V1 \ OSPolicy \ Resource

Methods

__construct

Constructor.

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

hasApt

setApt

An Apt Repository.

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

getYum

A Yum Repository.

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

hasYum

setYum

A Yum Repository.

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

getZypper

A Zypper Repository.

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

hasZypper

setZypper

A Zypper Repository.

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

getGoo

A Goo Repository.

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

hasGoo

setGoo

A Goo Repository.

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

getRepository

Returns
Type Description
string