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

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

The request to delete multiple versions across a repository.

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

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 repository holding all requested versions.

↳ names array

Required. The names of the versions to delete. A maximum of 10000 versions can be deleted in a batch.

↳ validate_only bool

If true, the request is performed without deleting data, following AIP-163.

getParent

The name of the repository holding all requested versions.

Returns
TypeDescription
string

setParent

The name of the repository holding all requested versions.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getNames

Required. The names of the versions to delete.

A maximum of 10000 versions can be deleted in a batch.

Returns
TypeDescription
Google\Protobuf\Internal\RepeatedField

setNames

Required. The names of the versions to delete.

A maximum of 10000 versions can be deleted in a batch.

Parameter
NameDescription
var string[]
Returns
TypeDescription
$this

getValidateOnly

If true, the request is performed without deleting data, following AIP-163.

Returns
TypeDescription
bool

setValidateOnly

If true, the request is performed without deleting data, following AIP-163.

Parameter
NameDescription
var bool
Returns
TypeDescription
$this

static::build

Parameters
NameDescription
parent string

The name of the repository holding all requested versions.

names string[]

Required. The names of the versions to delete. A maximum of 10000 versions can be deleted in a batch. Please see Google\Cloud\ArtifactRegistry\V1\ArtifactRegistryClient::versionName() for help formatting this field.

Returns
TypeDescription
Google\Cloud\ArtifactRegistry\V1\BatchDeleteVersionsRequest