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

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

The request to create a new tag.

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

Namespace

Google \ Cloud \ ArtifactRegistry \ V1

Methods

__construct

Constructor.

Parameters
NameDescription
data array

Optional. Data for populating the Message object.

↳ parent string

The name of the parent resource where the tag will be created.

↳ tag_id string

The tag id to use for this repository.

↳ tag Google\Cloud\ArtifactRegistry\V1\Tag

The tag to be created.

getParent

The name of the parent resource where the tag will be created.

Returns
TypeDescription
string

setParent

The name of the parent resource where the tag will be created.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getTagId

The tag id to use for this repository.

Returns
TypeDescription
string

setTagId

The tag id to use for this repository.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getTag

The tag to be created.

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

hasTag

clearTag

setTag

The tag to be created.

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

static::build

Parameters
NameDescription
parent string

The name of the parent resource where the tag will be created.

tag Google\Cloud\ArtifactRegistry\V1\Tag

The tag to be created.

tagId string

The tag id to use for this repository.

Returns
TypeDescription
Google\Cloud\ArtifactRegistry\V1\CreateTagRequest