ProjectsRegionsAutoscalingPolicies
class ProjectsRegionsAutoscalingPolicies extends Resource (View source)
The "autoscalingPolicies" collection of methods.
Typical usage is:
$dataprocService = new Google\Service\Dataproc(...);
$autoscalingPolicies = $dataprocService->projects_regions_autoscalingPolicies;
Methods
Creates new autoscaling policy. (autoscalingPolicies.create)
Deletes an autoscaling policy. It is an error to delete an autoscaling policy that is in use by one or more clusters. (autoscalingPolicies.delete)
Retrieves autoscaling policy. (autoscalingPolicies.get)
Gets the access control policy for a resource. Returns an empty policy if the resource exists and does not have a policy set.
Lists autoscaling policies in the project.
Sets the access control policy on the specified resource. Replaces any existing policy.Can return NOT_FOUND, INVALID_ARGUMENT, and PERMISSION_DENIED errors. (autoscalingPolicies.setIamPolicy)
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.
Updates (replaces) autoscaling policy.Disabled check for update_mask, because all updates will be full replacements. (autoscalingPolicies.update)
Details
AutoscalingPolicy
create(string $parent, AutoscalingPolicy $postBody, array $optParams = [])
Creates new autoscaling policy. (autoscalingPolicies.create)
DataprocEmpty
delete(string $name, array $optParams = [])
Deletes an autoscaling policy. It is an error to delete an autoscaling policy that is in use by one or more clusters. (autoscalingPolicies.delete)
AutoscalingPolicy
get(string $name, array $optParams = [])
Retrieves autoscaling policy. (autoscalingPolicies.get)
Policy
getIamPolicy(string $resource, GetIamPolicyRequest $postBody, array $optParams = [])
Gets the access control policy for a resource. Returns an empty policy if the resource exists and does not have a policy set.
(autoscalingPolicies.getIamPolicy)
ListAutoscalingPoliciesResponse
listProjectsRegionsAutoscalingPolicies(string $parent, array $optParams = [])
Lists autoscaling policies in the project.
(autoscalingPolicies.listProjectsRegionsAutoscalingPolicies)
Policy
setIamPolicy(string $resource, SetIamPolicyRequest $postBody, array $optParams = [])
Sets the access control policy on the specified resource. Replaces any existing policy.Can return NOT_FOUND, INVALID_ARGUMENT, and PERMISSION_DENIED errors. (autoscalingPolicies.setIamPolicy)
TestIamPermissionsResponse
testIamPermissions(string $resource, TestIamPermissionsRequest $postBody, array $optParams = [])
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. (autoscalingPolicies.testIamPermissions)
AutoscalingPolicy
update(string $name, AutoscalingPolicy $postBody, array $optParams = [])
Updates (replaces) autoscaling policy.Disabled check for update_mask, because all updates will be full replacements. (autoscalingPolicies.update)