Class ProjectsResource.LocationsResource.AutoscalingPoliciesResource
The "autoscalingPolicies" collection of methods.
Inheritance
Inherited Members
Namespace: Google.Apis.Dataproc.v1beta2
Assembly: Google.Apis.Dataproc.v1beta2.dll
Syntax
public class AutoscalingPoliciesResource
Constructors
AutoscalingPoliciesResource(IClientService)
Constructs a new resource.
Declaration
public AutoscalingPoliciesResource(IClientService service)
Parameters
Type | Name | Description |
---|---|---|
Google.Apis.Services.IClientService | service |
Methods
Create(AutoscalingPolicy, String)
Creates new autoscaling policy.
Declaration
public virtual ProjectsResource.LocationsResource.AutoscalingPoliciesResource.CreateRequest Create(AutoscalingPolicy body, string parent)
Parameters
Type | Name | Description |
---|---|---|
AutoscalingPolicy | body | The body of the request. |
System.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 has the following format: projects/{project_id}/regions/{region} For projects.locations.autoscalingPolicies.create, the resource name has the following format: projects/{project_id}/locations/{location} |
Returns
Type | Description |
---|---|
ProjectsResource.LocationsResource.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.LocationsResource.AutoscalingPoliciesResource.DeleteRequest Delete(string name)
Parameters
Type | Name | Description |
---|---|---|
System.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.LocationsResource.AutoscalingPoliciesResource.DeleteRequest |
Get(String)
Retrieves autoscaling policy.
Declaration
public virtual ProjectsResource.LocationsResource.AutoscalingPoliciesResource.GetRequest Get(string name)
Parameters
Type | Name | Description |
---|---|---|
System.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.LocationsResource.AutoscalingPoliciesResource.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.LocationsResource.AutoscalingPoliciesResource.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.LocationsResource.AutoscalingPoliciesResource.GetIamPolicyRequest |
List(String)
Lists autoscaling policies in the project.
Declaration
public virtual ProjectsResource.LocationsResource.AutoscalingPoliciesResource.ListRequest List(string parent)
Parameters
Type | Name | Description |
---|---|---|
System.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.LocationsResource.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.LocationsResource.AutoscalingPoliciesResource.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.LocationsResource.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.LocationsResource.AutoscalingPoliciesResource.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.LocationsResource.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.LocationsResource.AutoscalingPoliciesResource.UpdateRequest Update(AutoscalingPolicy body, string name)
Parameters
Type | Name | Description |
---|---|---|
AutoscalingPolicy | body | The body of the request. |
System.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.LocationsResource.AutoscalingPoliciesResource.UpdateRequest |