Class OperationsResource
The "operations" collection of methods.
Inherited Members
Namespace: Google.Apis.Storage.v1
Assembly: Google.Apis.Storage.v1.dll
Syntax
public class OperationsResource
Constructors
OperationsResource(IClientService)
Constructs a new resource.
Declaration
public OperationsResource(IClientService service)
Parameters
Type | Name | Description |
---|---|---|
IClientService | service |
Methods
AdvanceRelocateBucket(AdvanceRelocateBucketOperationRequest, string, string)
Starts asynchronous advancement of the relocate bucket operation in the case of required write downtime, to allow it to lock the bucket at the source location, and proceed with the bucket location swap. The server makes a best effort to advance the relocate bucket operation, but success is not guaranteed.
Declaration
public virtual OperationsResource.AdvanceRelocateBucketRequest AdvanceRelocateBucket(AdvanceRelocateBucketOperationRequest body, string bucket, string operationId)
Parameters
Type | Name | Description |
---|---|---|
AdvanceRelocateBucketOperationRequest | body | The body of the request. |
string | bucket | Name of the bucket to advance the relocate for. |
string | operationId | ID of the operation resource. |
Returns
Type | Description |
---|---|
OperationsResource.AdvanceRelocateBucketRequest |
Cancel(string, string)
Starts asynchronous cancellation on a long-running operation. The server makes a best effort to cancel the operation, but success is not guaranteed.
Declaration
public virtual OperationsResource.CancelRequest Cancel(string bucket, string operationId)
Parameters
Type | Name | Description |
---|---|---|
string | bucket | The parent bucket of the operation resource. |
string | operationId | The ID of the operation resource. |
Returns
Type | Description |
---|---|
OperationsResource.CancelRequest |
Get(string, string)
Gets the latest state of a long-running operation.
Declaration
public virtual OperationsResource.GetRequest Get(string bucket, string operationId)
Parameters
Type | Name | Description |
---|---|---|
string | bucket | The parent bucket of the operation resource. |
string | operationId | The ID of the operation resource. |
Returns
Type | Description |
---|---|
OperationsResource.GetRequest |
List(string)
Lists operations that match the specified filter in the request.
Declaration
public virtual OperationsResource.ListRequest List(string bucket)
Parameters
Type | Name | Description |
---|---|---|
string | bucket | Name of the bucket in which to look for operations. |
Returns
Type | Description |
---|---|
OperationsResource.ListRequest |