Class ProjectsResource.RegionsResource.ClustersResource
The "clusters" collection of methods.
Inheritance
Inherited Members
Namespace: Google.Apis.Dataproc.v1
Assembly: Google.Apis.Dataproc.v1.dll
Syntax
public class ClustersResource
Constructors
ClustersResource(IClientService)
Constructs a new resource.
Declaration
public ClustersResource(IClientService service)
Parameters
| Type | Name | Description |
|---|---|---|
| IClientService | service |
Methods
Create(Cluster, String, String)
Creates a cluster in a project. The returned Operation.metadata will be ClusterOperationMetadata (https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc .v1#clusteroperationmetadata).
Declaration
public virtual ProjectsResource.RegionsResource.ClustersResource.CreateRequest Create(Cluster body, string projectId, string region)
Parameters
| Type | Name | Description |
|---|---|---|
| Cluster | body | The body of the request. |
| System.String | projectId | Required. The ID of the Google Cloud Platform project that the cluster belongs to. |
| System.String | region | Required. The Dataproc region in which to handle the request. |
Returns
| Type | Description |
|---|---|
| ProjectsResource.RegionsResource.ClustersResource.CreateRequest |
Delete(String, String, String)
Deletes a cluster in a project. The returned Operation.metadata will be ClusterOperationMetadata (https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc .v1#clusteroperationmetadata).
Declaration
public virtual ProjectsResource.RegionsResource.ClustersResource.DeleteRequest Delete(string projectId, string region, string clusterName)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | projectId | Required. The ID of the Google Cloud Platform project that the cluster belongs to. |
| System.String | region | Required. The Dataproc region in which to handle the request. |
| System.String | clusterName | Required. The cluster name. |
Returns
| Type | Description |
|---|---|
| ProjectsResource.RegionsResource.ClustersResource.DeleteRequest |
Diagnose(DiagnoseClusterRequest, String, String, String)
Gets cluster diagnostic information. The returned Operation.metadata will be ClusterOperationMetadata (https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc .v1#clusteroperationmetadata). After the operation completes, Operation.response contains DiagnoseClusterResults (https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v 1#diagnoseclusterresults).
Declaration
public virtual ProjectsResource.RegionsResource.ClustersResource.DiagnoseRequest Diagnose(DiagnoseClusterRequest body, string projectId, string region, string clusterName)
Parameters
| Type | Name | Description |
|---|---|---|
| DiagnoseClusterRequest | body | The body of the request. |
| System.String | projectId | Required. The ID of the Google Cloud Platform project that the cluster belongs to. |
| System.String | region | Required. The Dataproc region in which to handle the request. |
| System.String | clusterName | Required. The cluster name. |
Returns
| Type | Description |
|---|---|
| ProjectsResource.RegionsResource.ClustersResource.DiagnoseRequest |
Get(String, String, String)
Gets the resource representation for a cluster in a project.
Declaration
public virtual ProjectsResource.RegionsResource.ClustersResource.GetRequest Get(string projectId, string region, string clusterName)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | projectId | Required. The ID of the Google Cloud Platform project that the cluster belongs to. |
| System.String | region | Required. The Dataproc region in which to handle the request. |
| System.String | clusterName | Required. The cluster name. |
Returns
| Type | Description |
|---|---|
| ProjectsResource.RegionsResource.ClustersResource.GetRequest |
GetIamPolicy(GetIamPolicyRequest, 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.ClustersResource.GetIamPolicyRequest GetIamPolicy(GetIamPolicyRequest body, string resource)
Parameters
| Type | Name | Description |
|---|---|---|
| GetIamPolicyRequest | body | The body of the request. |
| 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.ClustersResource.GetIamPolicyRequest |
List(String, String)
Lists all regions/{region}/clusters in a project alphabetically.
Declaration
public virtual ProjectsResource.RegionsResource.ClustersResource.ListRequest List(string projectId, string region)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | projectId | Required. The ID of the Google Cloud Platform project that the cluster belongs to. |
| System.String | region | Required. The Dataproc region in which to handle the request. |
Returns
| Type | Description |
|---|---|
| ProjectsResource.RegionsResource.ClustersResource.ListRequest |
Patch(Cluster, String, String, String)
Updates a cluster in a project. The returned Operation.metadata will be ClusterOperationMetadata (https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc .v1#clusteroperationmetadata).
Declaration
public virtual ProjectsResource.RegionsResource.ClustersResource.PatchRequest Patch(Cluster body, string projectId, string region, string clusterName)
Parameters
| Type | Name | Description |
|---|---|---|
| Cluster | body | The body of the request. |
| System.String | projectId | Required. The ID of the Google Cloud Platform project the cluster belongs to. |
| System.String | region | Required. The Dataproc region in which to handle the request. |
| System.String | clusterName | Required. The cluster name. |
Returns
| Type | Description |
|---|---|
| ProjectsResource.RegionsResource.ClustersResource.PatchRequest |
SetIamPolicy(SetIamPolicyRequest, String)
Sets the access control policy on the specified resource. Replaces any existing policy.Can return Public Errors: NOT_FOUND, INVALID_ARGUMENT and PERMISSION_DENIED
Declaration
public virtual ProjectsResource.RegionsResource.ClustersResource.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.ClustersResource.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.ClustersResource.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.ClustersResource.TestIamPermissionsRequest |