Google Cloud Artifact Registry V1 Client - Class CreateAttachmentRequest (1.1.1)

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

The request to create a new attachment.

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

Namespace

Google \ Cloud \ ArtifactRegistry \ V1

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 attachment will be created.

↳ attachment_id string

Required. The attachment id to use for this attachment.

↳ attachment Google\Cloud\ArtifactRegistry\V1\Attachment

Required. The attachment to be created.

getParent

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

Returns
Type Description
string

setParent

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

Parameter
Name Description
var string
Returns
Type Description
$this

getAttachmentId

Required. The attachment id to use for this attachment.

Returns
Type Description
string

setAttachmentId

Required. The attachment id to use for this attachment.

Parameter
Name Description
var string
Returns
Type Description
$this

getAttachment

Required. The attachment to be created.

Returns
Type Description
Google\Cloud\ArtifactRegistry\V1\Attachment|null

hasAttachment

clearAttachment

setAttachment

Required. The attachment to be created.

Parameter
Name Description
var Google\Cloud\ArtifactRegistry\V1\Attachment
Returns
Type Description
$this

static::build

Parameters
Name Description
parent string

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

attachment Google\Cloud\ArtifactRegistry\V1\Attachment

Required. The attachment to be created.

attachmentId string

Required. The attachment id to use for this attachment.

Returns
Type Description
Google\Cloud\ArtifactRegistry\V1\CreateAttachmentRequest