Google Cloud OsConfig V1 Client - Class YumRepository (1.3.5)

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

Represents a single yum package repository. These are added to a repo file that is managed at /etc/yum.repos.d/google_osconfig.repo.

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

Namespace

Google \ Cloud \ OsConfig \ V1 \ OSPolicy \ Resource \ RepositoryResource

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ id string

Required. A one word, unique name for this repository. This is the repo id in the yum config file and also the display_name if display_name is omitted. This id is also used as the unique identifier when checking for resource conflicts.

↳ display_name string

The display name of the repository.

↳ base_url string

Required. The location of the repository directory.

↳ gpg_keys array

URIs of GPG keys.

getId

Required. A one word, unique name for this repository. This is the repo id in the yum config file and also the display_name if display_name is omitted. This id is also used as the unique identifier when checking for resource conflicts.

Returns
Type Description
string

setId

Required. A one word, unique name for this repository. This is the repo id in the yum config file and also the display_name if display_name is omitted. This id is also used as the unique identifier when checking for resource conflicts.

Parameter
Name Description
var string
Returns
Type Description
$this

getDisplayName

The display name of the repository.

Returns
Type Description
string

setDisplayName

The display name of the repository.

Parameter
Name Description
var string
Returns
Type Description
$this

getBaseUrl

Required. The location of the repository directory.

Returns
Type Description
string

setBaseUrl

Required. The location of the repository directory.

Parameter
Name Description
var string
Returns
Type Description
$this

getGpgKeys

URIs of GPG keys.

Returns
Type Description
Google\Protobuf\Internal\RepeatedField

setGpgKeys

URIs of GPG keys.

Parameter
Name Description
var string[]
Returns
Type Description
$this