Class ProjectsResource.RegionsResource.AutoscalingPoliciesResource
The "autoscalingPolicies" collection of methods.
Inherited Members
Namespace: Google.Apis.Dataproc.v1
Assembly: Google.Apis.Dataproc.v1.dll
Syntax
public class ProjectsResource.RegionsResource.AutoscalingPoliciesResource
Constructors
AutoscalingPoliciesResource(IClientService)
Constructs a new resource.
Declaration
public AutoscalingPoliciesResource(IClientService service)
Parameters
Type | Name | Description |
---|---|---|
IClientService | service |
Methods
Create(AutoscalingPolicy, string)
Creates new autoscaling policy.
Declaration
public virtual ProjectsResource.RegionsResource.AutoscalingPoliciesResource.CreateRequest Create(AutoscalingPolicy body, string parent)
Parameters
Type | Name | Description |
---|---|---|
AutoscalingPolicy | body | The body of the request. |
string | parent | Required. The "resource name" of the region or location, as described in https://cloud.google.com/apis/design/resource_names. For projects.regions.autoscalingPolicies.create, the resource name of the region has the following format: projects/{project_id}/regions/{region} For projects.locations.autoscalingPolicies.create, the resource name of the location has the following format: projects/{project_id}/locations/{location} |
Returns
Type | Description |
---|---|
ProjectsResource.RegionsResource.AutoscalingPoliciesResource.CreateRequest |
Delete(string)
Deletes an autoscaling policy. It is an error to delete an autoscaling policy that is in use by one or more clusters.
Declaration
public virtual ProjectsResource.RegionsResource.AutoscalingPoliciesResource.DeleteRequest Delete(string name)
Parameters
Type | Name | Description |
---|---|---|
string | name | Required. The "resource name" of the autoscaling policy, as described in https://cloud.google.com/apis/design/resource_names. For projects.regions.autoscalingPolicies.delete, the resource name of the policy has the following format: projects/{project_id}/regions/{region}/autoscalingPolicies/{policy_id} For projects.locations.autoscalingPolicies.delete, the resource name of the policy has the following format: projects/{project_id}/locations/{location}/autoscalingPolicies/{policy_id} |
Returns
Type | Description |
---|---|
ProjectsResource.RegionsResource.AutoscalingPoliciesResource.DeleteRequest |
Get(string)
Retrieves autoscaling policy.
Declaration
public virtual ProjectsResource.RegionsResource.AutoscalingPoliciesResource.GetRequest Get(string name)
Parameters
Type | Name | Description |
---|---|---|
string | name | Required. The "resource name" of the autoscaling policy, as described in https://cloud.google.com/apis/design/resource_names. For projects.regions.autoscalingPolicies.get, the resource name of the policy has the following format: projects/{project_id}/regions/{region}/autoscalingPolicies/{policy_id} For projects.locations.autoscalingPolicies.get, the resource name of the policy has the following format: projects/{project_id}/locations/{location}/autoscalingPolicies/{policy_id} |
Returns
Type | Description |
---|---|
ProjectsResource.RegionsResource.AutoscalingPoliciesResource.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.AutoscalingPoliciesResource.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.AutoscalingPoliciesResource.GetIamPolicyRequest |
List(string)
Lists autoscaling policies in the project.
Declaration
public virtual ProjectsResource.RegionsResource.AutoscalingPoliciesResource.ListRequest List(string parent)
Parameters
Type | Name | Description |
---|---|---|
string | parent | Required. The "resource name" of the region or location, as described in https://cloud.google.com/apis/design/resource_names. For projects.regions.autoscalingPolicies.list, the resource name of the region has the following format: projects/{project_id}/regions/{region} For projects.locations.autoscalingPolicies.list, the resource name of the location has the following format: projects/{project_id}/locations/{location} |
Returns
Type | Description |
---|---|
ProjectsResource.RegionsResource.AutoscalingPoliciesResource.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.AutoscalingPoliciesResource.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.AutoscalingPoliciesResource.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.AutoscalingPoliciesResource.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.AutoscalingPoliciesResource.TestIamPermissionsRequest |
Update(AutoscalingPolicy, string)
Updates (replaces) autoscaling policy.Disabled check for update_mask, because all updates will be full replacements.
Declaration
public virtual ProjectsResource.RegionsResource.AutoscalingPoliciesResource.UpdateRequest Update(AutoscalingPolicy body, string name)
Parameters
Type | Name | Description |
---|---|---|
AutoscalingPolicy | body | The body of the request. |
string | name | Output only. The "resource name" of the autoscaling policy, as described in https://cloud.google.com/apis/design/resource_names. For projects.regions.autoscalingPolicies, the resource name of the policy has the following format: projects/{project_id}/regions/{region}/autoscalingPolicies/{policy_id} For projects.locations.autoscalingPolicies, the resource name of the policy has the following format: projects/{project_id}/locations/{location}/autoscalingPolicies/{policy_id} |
Returns
Type | Description |
---|---|
ProjectsResource.RegionsResource.AutoscalingPoliciesResource.UpdateRequest |