Google Cloud OsConfig V1 Client - Class ZypperRepository (1.2.2)

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

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

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

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 zypper config file and also the display_name if display_name is omitted. This id is also used as the unique identifier when checking for GuestPolicy 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 zypper config file and also the display_name if display_name is omitted. This id is also used as the unique identifier when checking for GuestPolicy conflicts.

Returns
TypeDescription
string

setId

Required. A one word, unique name for this repository. This is the repo id in the zypper config file and also the display_name if display_name is omitted. This id is also used as the unique identifier when checking for GuestPolicy 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