Google Cloud Artifact Registry V1 Client - Class CreateRepositoryRequest (0.5.1)

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

The request to create a new repository.

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

Namespace

Google \ Cloud \ ArtifactRegistry \ V1

Methods

__construct

Constructor.

Parameters
NameDescription
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

Required. The repository id to use for this repository.

↳ repository Google\Cloud\ArtifactRegistry\V1\Repository

Required. The repository to be created.

getParent

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

Returns
TypeDescription
string

setParent

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

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getRepositoryId

Required. The repository id to use for this repository.

Returns
TypeDescription
string

setRepositoryId

Required. The repository id to use for this repository.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getRepository

Required. The repository to be created.

Returns
TypeDescription
Google\Cloud\ArtifactRegistry\V1\Repository|null

hasRepository

clearRepository

setRepository

Required. The repository to be created.

Parameter
NameDescription
var Google\Cloud\ArtifactRegistry\V1\Repository
Returns
TypeDescription
$this

static::build

Parameters
NameDescription
parent string

Required. The name of the parent resource where the repository will be created. Please see Google\Cloud\ArtifactRegistry\V1\ArtifactRegistryClient::locationName() for help formatting this field.

repository Google\Cloud\ArtifactRegistry\V1\Repository

Required. The repository to be created.

repositoryId string

Required. The repository id to use for this repository.

Returns
TypeDescription
Google\Cloud\ArtifactRegistry\V1\CreateRepositoryRequest