Google Cloud OsConfig V1 Client - Class YumRepository (1.1.1)

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
NameDescription
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
TypeDescription
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
NameDescription
var string
Returns
TypeDescription
$this

getDisplayName

The display name of the repository.

Returns
TypeDescription
string

setDisplayName

The display name of the repository.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getBaseUrl

Required. The location of the repository directory.

Returns
TypeDescription
string

setBaseUrl

Required. The location of the repository directory.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getGpgKeys

URIs of GPG keys.

Returns
TypeDescription
Google\Protobuf\Internal\RepeatedField

setGpgKeys

URIs of GPG keys.

Parameter
NameDescription
var string[]
Returns
TypeDescription
$this