Google Cloud Artifact Registry V1beta2 Client - Class DeleteVersionRequest (0.5.1)

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

The request to delete a version.

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

Namespace

Google \ Cloud \ ArtifactRegistry \ V1beta2

Methods

__construct

Constructor.

Parameters
NameDescription
data array

Optional. Data for populating the Message object.

↳ name string

The name of the version to delete.

↳ force bool

By default, a version that is tagged may not be deleted. If force=true, the version and any tags pointing to the version are deleted.

getName

The name of the version to delete.

Returns
TypeDescription
string

setName

The name of the version to delete.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getForce

By default, a version that is tagged may not be deleted. If force=true, the version and any tags pointing to the version are deleted.

Returns
TypeDescription
bool

setForce

By default, a version that is tagged may not be deleted. If force=true, the version and any tags pointing to the version are deleted.

Parameter
NameDescription
var bool
Returns
TypeDescription
$this