Class GlobalOperationsResource
The "globalOperations" collection of methods.
Inherited Members
Namespace: Google.Apis.Compute.beta
Assembly: Google.Apis.Compute.beta.dll
Syntax
public class GlobalOperationsResource
Constructors
GlobalOperationsResource(IClientService)
Constructs a new resource.
Declaration
public GlobalOperationsResource(IClientService service)
Parameters
| Type | Name | Description |
|---|---|---|
| IClientService | service |
Methods
AggregatedList(string)
Retrieves an aggregated list of all operations. To prevent failure, Google recommends that you set the
returnPartialSuccess parameter to true.
Declaration
public virtual GlobalOperationsResource.AggregatedListRequest AggregatedList(string project)
Parameters
| Type | Name | Description |
|---|---|---|
| string | project | Project ID for this request. |
Returns
| Type | Description |
|---|---|
| GlobalOperationsResource.AggregatedListRequest |
Delete(string, string)
Deletes the specified Operations resource.
Declaration
public virtual GlobalOperationsResource.DeleteRequest Delete(string project, string operation)
Parameters
| Type | Name | Description |
|---|---|---|
| string | project | Project ID for this request. |
| string | operation | Name of the Operations resource to delete, or its unique numeric identifier. |
Returns
| Type | Description |
|---|---|
| GlobalOperationsResource.DeleteRequest |
Get(string, string)
Retrieves the specified Operations resource.
Declaration
public virtual GlobalOperationsResource.GetRequest Get(string project, string operation)
Parameters
| Type | Name | Description |
|---|---|---|
| string | project | Project ID for this request. |
| string | operation | Name of the Operations resource to return, or its unique numeric identifier. |
Returns
| Type | Description |
|---|---|
| GlobalOperationsResource.GetRequest |
List(string)
Retrieves a list of Operation resources contained within the specified project.
Declaration
public virtual GlobalOperationsResource.ListRequest List(string project)
Parameters
| Type | Name | Description |
|---|---|---|
| string | project | Project ID for this request. |
Returns
| Type | Description |
|---|---|
| GlobalOperationsResource.ListRequest |
Wait(string, string)
Waits for the specified Operation resource to return as DONE or for the request to approach the 2 minute
deadline, and retrieves the specified Operation resource. This method differs from the GET method in that
it waits for no more than the default deadline (2 minutes) and then returns the current state of the
operation, which might be DONE or still in progress. This method is called on a best-effort basis.
Specifically: - In uncommon cases, when the server is overloaded, the request might return before the
default deadline is reached, or might return after zero seconds. - If the default deadline is reached, there
is no guarantee that the operation is actually done when the method returns. Be prepared to retry if the
operation is not DONE.
Declaration
public virtual GlobalOperationsResource.WaitRequest Wait(string project, string operation)
Parameters
| Type | Name | Description |
|---|---|---|
| string | project | Project ID for this request. |
| string | operation | Name of the Operations resource to return, or its unique numeric identifier. |
Returns
| Type | Description |
|---|---|
| GlobalOperationsResource.WaitRequest |