Reference documentation and code samples for the Google Cloud Build V2 Client class DeleteRepositoryRequest.
Message for deleting a Repository.
Generated from protobuf message google.devtools.cloudbuild.v2.DeleteRepositoryRequest
Namespace
Google \ Cloud \ Build \ V2Methods
__construct
Constructor.
Parameters | |
---|---|
Name | Description |
data |
array
Optional. Data for populating the Message object. |
↳ name |
string
Required. The name of the Repository to delete. Format: |
↳ etag |
string
The current etag of the repository. If an etag is provided and does not match the current etag of the repository, deletion will be blocked and an ABORTED error will be returned. |
↳ validate_only |
bool
If set, validate the request, but do not actually post it. |
getName
Required. The name of the Repository to delete.
Format: projects/*/locations/*/connections/*/repositories/*
.
Returns | |
---|---|
Type | Description |
string |
setName
Required. The name of the Repository to delete.
Format: projects/*/locations/*/connections/*/repositories/*
.
Parameter | |
---|---|
Name | Description |
var |
string
|
Returns | |
---|---|
Type | Description |
$this |
getEtag
The current etag of the repository.
If an etag is provided and does not match the current etag of the repository, deletion will be blocked and an ABORTED error will be returned.
Returns | |
---|---|
Type | Description |
string |
setEtag
The current etag of the repository.
If an etag is provided and does not match the current etag of the repository, deletion will be blocked and an ABORTED error will be returned.
Parameter | |
---|---|
Name | Description |
var |
string
|
Returns | |
---|---|
Type | Description |
$this |
getValidateOnly
If set, validate the request, but do not actually post it.
Returns | |
---|---|
Type | Description |
bool |
setValidateOnly
If set, validate the request, but do not actually post it.
Parameter | |
---|---|
Name | Description |
var |
bool
|
Returns | |
---|---|
Type | Description |
$this |
static::build
Parameter | |
---|---|
Name | Description |
name |
string
Required. The name of the Repository to delete.
Format: |
Returns | |
---|---|
Type | Description |
DeleteRepositoryRequest |