Google Cloud OsConfig V1 Client - Class RepositoryResource (2.0.2)

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 RepositoryResource\AptRepository

An Apt Repository.

↳ yum RepositoryResource\YumRepository

A Yum Repository.

↳ zypper RepositoryResource\ZypperRepository

A Zypper Repository.

↳ goo RepositoryResource\GooRepository

A Goo Repository.

getApt

An Apt Repository.

Returns
Type Description
RepositoryResource\AptRepository|null

hasApt

setApt

An Apt Repository.

Parameter
Name Description
var RepositoryResource\AptRepository
Returns
Type Description
$this

getYum

A Yum Repository.

Returns
Type Description
RepositoryResource\YumRepository|null

hasYum

setYum

A Yum Repository.

Parameter
Name Description
var RepositoryResource\YumRepository
Returns
Type Description
$this

getZypper

A Zypper Repository.

Returns
Type Description
RepositoryResource\ZypperRepository|null

hasZypper

setZypper

A Zypper Repository.

Parameter
Name Description
var RepositoryResource\ZypperRepository
Returns
Type Description
$this

getGoo

A Goo Repository.

Returns
Type Description
RepositoryResource\GooRepository|null

hasGoo

setGoo

A Goo Repository.

Parameter
Name Description
var RepositoryResource\GooRepository
Returns
Type Description
$this

getRepository

Returns
Type Description
string