Class ProjectsResource.LocationsResource.PrivateCloudsResource.DeleteRequest
Schedules a PrivateCloud
resource for deletion. A PrivateCloud
resource scheduled for deletion
has PrivateCloud.state
set to DELETED
and expireTime
set to the time when deletion is final
and can no longer be reversed. The delete operation is marked as done as soon as the PrivateCloud
is successfully scheduled for deletion (this also applies when delayHours
is set to zero), and the
operation is not kept in pending state until PrivateCloud
is purged. PrivateCloud
can be
restored using UndeletePrivateCloud
method before the expireTime
elapses. When expireTime
is
reached, deletion is final and all private cloud resources are irreversibly removed and billing
stops. During the final removal process, PrivateCloud.state
is set to PURGING
. PrivateCloud
can be polled using standard GET
method for the whole period of deletion and purging. It will not
be returned only when it is completely purged.
Inheritance
Inherited Members
Namespace: Google.Apis.VMwareEngine.v1
Assembly: Google.Apis.VMwareEngine.v1.dll
Syntax
public class ProjectsResource.LocationsResource.PrivateCloudsResource.DeleteRequest : VMwareEngineBaseServiceRequest<Operation>, IClientServiceRequest<Operation>, IClientServiceRequest
Constructors
DeleteRequest(IClientService, string)
Constructs a new Delete request.
Declaration
public DeleteRequest(IClientService service, string name)
Parameters
Type | Name | Description |
---|---|---|
IClientService | service | |
string | name |
Properties
DelayHours
Optional. Time delay of the deletion specified in hours. The default value is 3
. Specifying a
non-zero value for this field changes the value of PrivateCloud.state
to DELETED
and sets
expire_time
to the planned deletion time. Deletion can be cancelled before expire_time
elapses using VmwareEngine.UndeletePrivateCloud. Specifying a value of 0
for this field
instead begins the deletion process and ceases billing immediately. During the final deletion
process, the value of PrivateCloud.state
becomes PURGING
.
Declaration
[RequestParameter("delayHours", RequestParameterType.Query)]
public virtual int? DelayHours { get; set; }
Property Value
Type | Description |
---|---|
int? |
Force
Optional. If set to true, cascade delete is enabled and all children of this private cloud resource are also deleted. When this flag is set to false, the private cloud will not be deleted if there are any children other than the management cluster. The management cluster is always deleted.
Declaration
[RequestParameter("force", RequestParameterType.Query)]
public virtual bool? Force { get; set; }
Property Value
Type | Description |
---|---|
bool? |
HttpMethod
Gets the HTTP method.
Declaration
public override string HttpMethod { get; }
Property Value
Type | Description |
---|---|
string |
Overrides
MethodName
Gets the method name.
Declaration
public override string MethodName { get; }
Property Value
Type | Description |
---|---|
string |
Overrides
Name
Required. The resource name of the private cloud to delete. Resource names are schemeless URIs
that follow the conventions in https://cloud.google.com/apis/design/resource_names. For example:
projects/my-project/locations/us-central1-a/privateClouds/my-cloud
Declaration
[RequestParameter("name", RequestParameterType.Path)]
public virtual string Name { get; }
Property Value
Type | Description |
---|---|
string |
RequestId
Optional. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
Declaration
[RequestParameter("requestId", RequestParameterType.Query)]
public virtual string RequestId { get; set; }
Property Value
Type | Description |
---|---|
string |
RestPath
Gets the REST path.
Declaration
public override string RestPath { get; }
Property Value
Type | Description |
---|---|
string |
Overrides
Methods
InitParameters()
Initializes Delete parameter list.
Declaration
protected override void InitParameters()