All Downloads are FREE. Search and download functionalities are using the official Maven repository.

target.apidocs.com.google.api.services.dataproc.Dataproc.Projects.Locations.AutoscalingPolicies.html Maven / Gradle / Ivy

There is a newer version: v1-rev20250111-2.0.0
Show newest version






Dataproc.Projects.Locations.AutoscalingPolicies (Cloud Dataproc API v1-rev20241025-2.0.0)












com.google.api.services.dataproc

Class Dataproc.Projects.Locations.AutoscalingPolicies

  • java.lang.Object
    • com.google.api.services.dataproc.Dataproc.Projects.Locations.AutoscalingPolicies
  • Enclosing class:
    Dataproc.Projects.Locations


    public class Dataproc.Projects.Locations.AutoscalingPolicies
    extends Object
    The "autoscalingPolicies" collection of methods.
    • Constructor Detail

      • AutoscalingPolicies

        public AutoscalingPolicies()
    • Method Detail

      • create

        public Dataproc.Projects.Locations.AutoscalingPolicies.Create create(String parent,
                                                                             AutoscalingPolicy content)
                                                                      throws IOException
        Creates new autoscaling policy. Create a request for the method "autoscalingPolicies.create". This request holds the parameters needed by the dataproc server. After setting any optional parameters, call the AbstractGoogleClientRequest.execute() method to invoke the remote operation.
        Parameters:
        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}
        content - the AutoscalingPolicy
        Returns:
        the request
        Throws:
        IOException
      • delete

        public Dataproc.Projects.Locations.AutoscalingPolicies.Delete delete(String name)
                                                                      throws IOException
        Deletes an autoscaling policy. It is an error to delete an autoscaling policy that is in use by one or more clusters. Create a request for the method "autoscalingPolicies.delete". This request holds the parameters needed by the dataproc server. After setting any optional parameters, call the AbstractGoogleClientRequest.execute() method to invoke the remote operation.
        Parameters:
        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:
        the request
        Throws:
        IOException
      • get

        public Dataproc.Projects.Locations.AutoscalingPolicies.Get get(String name)
                                                                throws IOException
        Retrieves autoscaling policy. Create a request for the method "autoscalingPolicies.get". This request holds the parameters needed by the dataproc server. After setting any optional parameters, call the AbstractGoogleClientRequest.execute() method to invoke the remote operation.
        Parameters:
        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:
        the request
        Throws:
        IOException
      • getIamPolicy

        public Dataproc.Projects.Locations.AutoscalingPolicies.GetIamPolicy getIamPolicy(String resource,
                                                                                         GetIamPolicyRequest content)
                                                                                  throws IOException
        Gets the access control policy for a resource. Returns an empty policy if the resource exists and does not have a policy set. Create a request for the method "autoscalingPolicies.getIamPolicy". This request holds the parameters needed by the dataproc server. After setting any optional parameters, call the AbstractGoogleClientRequest.execute() method to invoke the remote operation.
        Parameters:
        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.
        content - the GetIamPolicyRequest
        Returns:
        the request
        Throws:
        IOException
      • list

        public Dataproc.Projects.Locations.AutoscalingPolicies.List list(String parent)
                                                                  throws IOException
        Lists autoscaling policies in the project. Create a request for the method "autoscalingPolicies.list". This request holds the parameters needed by the dataproc server. After setting any optional parameters, call the AbstractGoogleClientRequest.execute() method to invoke the remote operation.
        Parameters:
        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:
        the request
        Throws:
        IOException
      • setIamPolicy

        public Dataproc.Projects.Locations.AutoscalingPolicies.SetIamPolicy setIamPolicy(String resource,
                                                                                         SetIamPolicyRequest content)
                                                                                  throws IOException
        Sets the access control policy on the specified resource. Replaces any existing policy.Can return NOT_FOUND, INVALID_ARGUMENT, and PERMISSION_DENIED errors. Create a request for the method "autoscalingPolicies.setIamPolicy". This request holds the parameters needed by the dataproc server. After setting any optional parameters, call the AbstractGoogleClientRequest.execute() method to invoke the remote operation.
        Parameters:
        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.
        content - the SetIamPolicyRequest
        Returns:
        the request
        Throws:
        IOException
      • testIamPermissions

        public Dataproc.Projects.Locations.AutoscalingPolicies.TestIamPermissions testIamPermissions(String resource,
                                                                                                     TestIamPermissionsRequest content)
                                                                                              throws IOException
        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. Create a request for the method "autoscalingPolicies.testIamPermissions". This request holds the parameters needed by the dataproc server. After setting any optional parameters, call the AbstractGoogleClientRequest.execute() method to invoke the remote operation.
        Parameters:
        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.
        content - the TestIamPermissionsRequest
        Returns:
        the request
        Throws:
        IOException
      • update

        public Dataproc.Projects.Locations.AutoscalingPolicies.Update update(String name,
                                                                             AutoscalingPolicy content)
                                                                      throws IOException
        Updates (replaces) autoscaling policy.Disabled check for update_mask, because all updates will be full replacements. Create a request for the method "autoscalingPolicies.update". This request holds the parameters needed by the dataproc server. After setting any optional parameters, call the AbstractGoogleClientRequest.execute() method to invoke the remote operation.
        Parameters:
        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}
        content - the AutoscalingPolicy
        Returns:
        the request
        Throws:
        IOException

Copyright © 2011–2024 Google. All rights reserved.





© 2015 - 2025 Weber Informatics LLC | Privacy Policy