Class ProjectsResource.RegionsResource.ClustersResource
The "clusters" collection of methods.
Inherited Members
Namespace: Google.Apis.Dataproc.v1
Assembly: Google.Apis.Dataproc.v1.dll
Syntax
public class ProjectsResource.RegionsResource.ClustersResource
Constructors
ClustersResource(IClientService)
Constructs a new resource.
Declaration
public ClustersResource(IClientService service)
Parameters
Type | Name | Description |
---|---|---|
IClientService | service |
Properties
NodeGroups
Gets the NodeGroups resource.
Declaration
public virtual ProjectsResource.RegionsResource.ClustersResource.NodeGroupsResource NodeGroups { get; }
Property Value
Type | Description |
---|---|
ProjectsResource.RegionsResource.ClustersResource.NodeGroupsResource |
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. |
string | projectId | Required. The ID of the Google Cloud Platform project that the cluster belongs to. |
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 |
---|---|---|
string | projectId | Required. The ID of the Google Cloud Platform project that the cluster belongs to. |
string | region | Required. The Dataproc region in which to handle the request. |
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.v1#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. |
string | projectId | Required. The ID of the Google Cloud Platform project that the cluster belongs to. |
string | region | Required. The Dataproc region in which to handle the request. |
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 |
---|---|---|
string | projectId | Required. The ID of the Google Cloud Platform project that the cluster belongs to. |
string | region | Required. The Dataproc region in which to handle the request. |
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. |
string | resource | REQUIRED: The resource for which the policy is being requested. See Resource names (https://cloud.google.com/apis/design/resource_names) for the appropriate value for this field. |
Returns
Type | Description |
---|---|
ProjectsResource.RegionsResource.ClustersResource.GetIamPolicyRequest |
InjectCredentials(InjectCredentialsRequest, string, string, string)
Inject encrypted credentials into all of the VMs in a cluster.The target cluster must be a personal auth cluster assigned to the user who is issuing the RPC.
Declaration
public virtual ProjectsResource.RegionsResource.ClustersResource.InjectCredentialsRequest InjectCredentials(InjectCredentialsRequest body, string project, string region, string cluster)
Parameters
Type | Name | Description |
---|---|---|
InjectCredentialsRequest | body | The body of the request. |
string | project | Required. The ID of the Google Cloud Platform project the cluster belongs to, of the form projects/. |
string | region | Required. The region containing the cluster, of the form regions/. |
string | cluster | Required. The cluster, in the form clusters/. |
Returns
Type | Description |
---|---|
ProjectsResource.RegionsResource.ClustersResource.InjectCredentialsRequest |
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 |
---|---|---|
string | projectId | Required. The ID of the Google Cloud Platform project that the cluster belongs to. |
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). The cluster must be in a RUNNING state or an error is returned.
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. |
string | projectId | Required. The ID of the Google Cloud Platform project the cluster belongs to. |
string | region | Required. The Dataproc region in which to handle the request. |
string | clusterName | Required. The cluster name. |
Returns
Type | Description |
---|---|
ProjectsResource.RegionsResource.ClustersResource.PatchRequest |
Repair(RepairClusterRequest, string, string, string)
Repairs a cluster.
Declaration
public virtual ProjectsResource.RegionsResource.ClustersResource.RepairRequest Repair(RepairClusterRequest body, string projectId, string region, string clusterName)
Parameters
Type | Name | Description |
---|---|---|
RepairClusterRequest | body | The body of the request. |
string | projectId | Required. The ID of the Google Cloud Platform project the cluster belongs to. |
string | region | Required. The Dataproc region in which to handle the request. |
string | clusterName | Required. The cluster name. |
Returns
Type | Description |
---|---|
ProjectsResource.RegionsResource.ClustersResource.RepairRequest |
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.ClustersResource.SetIamPolicyRequest SetIamPolicy(SetIamPolicyRequest body, string resource)
Parameters
Type | Name | Description |
---|---|---|
SetIamPolicyRequest | body | The body of the request. |
string | resource | REQUIRED: The resource for which the policy is being specified. See Resource names (https://cloud.google.com/apis/design/resource_names) for the appropriate value for this field. |
Returns
Type | Description |
---|---|
ProjectsResource.RegionsResource.ClustersResource.SetIamPolicyRequest |
Start(StartClusterRequest, string, string, string)
Starts a cluster in a project.
Declaration
public virtual ProjectsResource.RegionsResource.ClustersResource.StartRequest Start(StartClusterRequest body, string projectId, string region, string clusterName)
Parameters
Type | Name | Description |
---|---|---|
StartClusterRequest | body | The body of the request. |
string | projectId | Required. The ID of the Google Cloud Platform project the cluster belongs to. |
string | region | Required. The Dataproc region in which to handle the request. |
string | clusterName | Required. The cluster name. |
Returns
Type | Description |
---|---|
ProjectsResource.RegionsResource.ClustersResource.StartRequest |
Stop(StopClusterRequest, string, string, string)
Stops a cluster in a project.
Declaration
public virtual ProjectsResource.RegionsResource.ClustersResource.StopRequest Stop(StopClusterRequest body, string projectId, string region, string clusterName)
Parameters
Type | Name | Description |
---|---|---|
StopClusterRequest | body | The body of the request. |
string | projectId | Required. The ID of the Google Cloud Platform project the cluster belongs to. |
string | region | Required. The Dataproc region in which to handle the request. |
string | clusterName | Required. The cluster name. |
Returns
Type | Description |
---|---|
ProjectsResource.RegionsResource.ClustersResource.StopRequest |
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. |
string | resource | REQUIRED: The resource for which the policy detail is being requested. See Resource names (https://cloud.google.com/apis/design/resource_names) for the appropriate value for this field. |
Returns
Type | Description |
---|---|
ProjectsResource.RegionsResource.ClustersResource.TestIamPermissionsRequest |