Show / Hide Table of Contents

Class ProjectsResource.RegionsResource.OperationsResource

The "operations" collection of methods.

Inheritance
System.Object
ProjectsResource.RegionsResource.OperationsResource
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Google.Apis.Dataproc.v1beta2
Assembly: Google.Apis.Dataproc.v1beta2.dll
Syntax
public class OperationsResource

Constructors

OperationsResource(IClientService)

Constructs a new resource.

Declaration
public OperationsResource(IClientService service)
Parameters
Type Name Description
Google.Apis.Services.IClientService service

Methods

Cancel(String)

Starts asynchronous cancellation on a long-running operation. The server makes a best effort to cancel the operation, but success is not guaranteed. If the server doesn't support this method, it returns google.rpc.Code.UNIMPLEMENTED. Clients can use Operations.GetOperation or other methods to check whether the cancellation succeeded or whether the operation completed despite cancellation. On successful cancellation, the operation is not deleted; instead, it becomes an operation with an Operation.error value with a google.rpc.Status.code of 1, corresponding to Code.CANCELLED.

Declaration
public virtual ProjectsResource.RegionsResource.OperationsResource.CancelRequest Cancel(string name)
Parameters
Type Name Description
System.String name

The name of the operation resource to be cancelled.

Returns
Type Description
ProjectsResource.RegionsResource.OperationsResource.CancelRequest

Delete(String)

Deletes a long-running operation. This method indicates that the client is no longer interested in the operation result. It does not cancel the operation. If the server doesn't support this method, it returns google.rpc.Code.UNIMPLEMENTED.

Declaration
public virtual ProjectsResource.RegionsResource.OperationsResource.DeleteRequest Delete(string name)
Parameters
Type Name Description
System.String name

The name of the operation resource to be deleted.

Returns
Type Description
ProjectsResource.RegionsResource.OperationsResource.DeleteRequest

Get(String)

Gets the latest state of a long-running operation. Clients can use this method to poll the operation result at intervals as recommended by the API service.

Declaration
public virtual ProjectsResource.RegionsResource.OperationsResource.GetRequest Get(string name)
Parameters
Type Name Description
System.String name

The name of the operation resource.

Returns
Type Description
ProjectsResource.RegionsResource.OperationsResource.GetRequest

GetIamPolicy(String)

Gets the access control policy for a resource. Returns an empty policy if the resource exists and does not have a policy set.

Declaration
public virtual ProjectsResource.RegionsResource.OperationsResource.GetIamPolicyRequest GetIamPolicy(string resource)
Parameters
Type Name Description
System.String resource

REQUIRED: The resource for which the policy is being requested. See the operation documentation for the appropriate value for this field.

Returns
Type Description
ProjectsResource.RegionsResource.OperationsResource.GetIamPolicyRequest

List(String)

Lists operations that match the specified filter in the request. If the server doesn't support this method, it returns UNIMPLEMENTED.NOTE: the name binding allows API services to override the binding to use different resource name schemes, such as users//operations. To override the binding, API services can add a binding such as "/v1/{name=users/}/operations" to their service configuration. For backwards compatibility, the default name includes the operations collection id, however overriding users must ensure the name binding is the parent resource, without the operations collection id.

Declaration
public virtual ProjectsResource.RegionsResource.OperationsResource.ListRequest List(string name)
Parameters
Type Name Description
System.String name

The name of the operation's parent resource.

Returns
Type Description
ProjectsResource.RegionsResource.OperationsResource.ListRequest

SetIamPolicy(SetIamPolicyRequest, String)

Sets the access control policy on the specified resource. Replaces any existing policy.Can return NOT_FOUND, INVALID_ARGUMENT, and PERMISSION_DENIED errors.

Declaration
public virtual ProjectsResource.RegionsResource.OperationsResource.SetIamPolicyRequest SetIamPolicy(SetIamPolicyRequest body, string resource)
Parameters
Type Name Description
SetIamPolicyRequest body

The body of the request.

System.String resource

REQUIRED: The resource for which the policy is being specified. See the operation documentation for the appropriate value for this field.

Returns
Type Description
ProjectsResource.RegionsResource.OperationsResource.SetIamPolicyRequest

TestIamPermissions(TestIamPermissionsRequest, String)

Returns permissions that a caller has on the specified resource. If the resource does not exist, this will return an empty set of permissions, not a NOT_FOUND error.Note: This operation is designed to be used for building permission-aware UIs and command-line tools, not for authorization checking. This operation may "fail open" without warning.

Declaration
public virtual ProjectsResource.RegionsResource.OperationsResource.TestIamPermissionsRequest TestIamPermissions(TestIamPermissionsRequest body, string resource)
Parameters
Type Name Description
TestIamPermissionsRequest body

The body of the request.

System.String resource

REQUIRED: The resource for which the policy detail is being requested. See the operation documentation for the appropriate value for this field.

Returns
Type Description
ProjectsResource.RegionsResource.OperationsResource.TestIamPermissionsRequest
In This Article
Back to top