Google Cloud Artifact Registry V1beta2 Client - Class CreateRepositoryRequest (0.6.3)

Reference documentation and code samples for the Google Cloud Artifact Registry V1beta2 Client class CreateRepositoryRequest.

The request to create a new repository.

Generated from protobuf message google.devtools.artifactregistry.v1beta2.CreateRepositoryRequest

Namespace

Google \ Cloud \ ArtifactRegistry \ V1beta2

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ parent string

Required. The name of the parent resource where the repository will be created.

↳ repository_id string

The repository id to use for this repository.

↳ repository Google\Cloud\ArtifactRegistry\V1beta2\Repository

The repository to be created.

getParent

Required. The name of the parent resource where the repository will be created.

Returns
Type Description
string

setParent

Required. The name of the parent resource where the repository will be created.

Parameter
Name Description
var string
Returns
Type Description
$this

getRepositoryId

The repository id to use for this repository.

Returns
Type Description
string

setRepositoryId

The repository id to use for this repository.

Parameter
Name Description
var string
Returns
Type Description
$this

getRepository

The repository to be created.

Returns
Type Description
Google\Cloud\ArtifactRegistry\V1beta2\Repository|null

hasRepository

clearRepository

setRepository

The repository to be created.

Parameter
Name Description
var Google\Cloud\ArtifactRegistry\V1beta2\Repository
Returns
Type Description
$this