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

target.apidocs.com.google.api.services.compute.Compute.ServiceAttachments.html Maven / Gradle / Ivy

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






Compute.ServiceAttachments (Compute Engine API v1-rev20250107-2.0.0)












com.google.api.services.compute

Class Compute.ServiceAttachments

  • Enclosing class:
    Compute


    public class Compute.ServiceAttachments
    extends Object
    The "serviceAttachments" collection of methods.
    • Constructor Detail

      • ServiceAttachments

        public ServiceAttachments()
    • Method Detail

      • aggregatedList

        public Compute.ServiceAttachments.AggregatedList aggregatedList(String project)
                                                                 throws IOException
        Retrieves the list of all ServiceAttachment resources, regional and global, available to the specified project. To prevent failure, Google recommends that you set the `returnPartialSuccess` parameter to `true`. Create a request for the method "serviceAttachments.aggregatedList". This request holds the parameters needed by the compute server. After setting any optional parameters, call the AbstractGoogleClientRequest.execute() method to invoke the remote operation.
        Parameters:
        project - Name of the project scoping this request.
        Returns:
        the request
        Throws:
        IOException
      • delete

        public Compute.ServiceAttachments.Delete delete(String project,
                                                        String region,
                                                        String serviceAttachment)
                                                 throws IOException
        Deletes the specified ServiceAttachment in the given scope Create a request for the method "serviceAttachments.delete". This request holds the parameters needed by the compute server. After setting any optional parameters, call the AbstractGoogleClientRequest.execute() method to invoke the remote operation.
        Parameters:
        project - Project ID for this request.
        region - Name of the region of this request.
        serviceAttachment - Name of the ServiceAttachment resource to delete.
        Returns:
        the request
        Throws:
        IOException
      • get

        public Compute.ServiceAttachments.Get get(String project,
                                                  String region,
                                                  String serviceAttachment)
                                           throws IOException
        Returns the specified ServiceAttachment resource in the given scope. Create a request for the method "serviceAttachments.get". This request holds the parameters needed by the compute server. After setting any optional parameters, call the AbstractGoogleClientRequest.execute() method to invoke the remote operation.
        Parameters:
        project - Project ID for this request.
        region - Name of the region of this request.
        serviceAttachment - Name of the ServiceAttachment resource to return.
        Returns:
        the request
        Throws:
        IOException
      • getIamPolicy

        public Compute.ServiceAttachments.GetIamPolicy getIamPolicy(String project,
                                                                    String region,
                                                                    String resource)
                                                             throws IOException
        Gets the access control policy for a resource. May be empty if no such policy or resource exists. Create a request for the method "serviceAttachments.getIamPolicy". This request holds the parameters needed by the compute server. After setting any optional parameters, call the AbstractGoogleClientRequest.execute() method to invoke the remote operation.
        Parameters:
        project - Project ID for this request.
        region - The name of the region for this request.
        resource - Name or id of the resource for this request.
        Returns:
        the request
        Throws:
        IOException
      • insert

        public Compute.ServiceAttachments.Insert insert(String project,
                                                        String region,
                                                        ServiceAttachment content)
                                                 throws IOException
        Creates a ServiceAttachment in the specified project in the given scope using the parameters that are included in the request. Create a request for the method "serviceAttachments.insert". This request holds the parameters needed by the compute server. After setting any optional parameters, call the AbstractGoogleClientRequest.execute() method to invoke the remote operation.
        Parameters:
        project - Project ID for this request.
        region - Name of the region of this request.
        content - the ServiceAttachment
        Returns:
        the request
        Throws:
        IOException
      • list

        public Compute.ServiceAttachments.List list(String project,
                                                    String region)
                                             throws IOException
        Lists the ServiceAttachments for a project in the given scope. Create a request for the method "serviceAttachments.list". This request holds the parameters needed by the compute server. After setting any optional parameters, call the AbstractGoogleClientRequest.execute() method to invoke the remote operation.
        Parameters:
        project - Project ID for this request.
        region - Name of the region of this request.
        Returns:
        the request
        Throws:
        IOException
      • patch

        public Compute.ServiceAttachments.Patch patch(String project,
                                                      String region,
                                                      String serviceAttachment,
                                                      ServiceAttachment content)
                                               throws IOException
        Patches the specified ServiceAttachment resource with the data included in the request. This method supports PATCH semantics and uses JSON merge patch format and processing rules. Create a request for the method "serviceAttachments.patch". This request holds the parameters needed by the compute server. After setting any optional parameters, call the AbstractGoogleClientRequest.execute() method to invoke the remote operation.
        Parameters:
        project - Project ID for this request.
        region - The region scoping this request and should conform to RFC1035.
        serviceAttachment - The resource id of the ServiceAttachment to patch. It should conform to RFC1035 resource name or be a string form on an unsigned long number.
        content - the ServiceAttachment
        Returns:
        the request
        Throws:
        IOException
      • setIamPolicy

        public Compute.ServiceAttachments.SetIamPolicy setIamPolicy(String project,
                                                                    String region,
                                                                    String resource,
                                                                    RegionSetPolicyRequest content)
                                                             throws IOException
        Sets the access control policy on the specified resource. Replaces any existing policy. Create a request for the method "serviceAttachments.setIamPolicy". This request holds the parameters needed by the compute server. After setting any optional parameters, call the AbstractGoogleClientRequest.execute() method to invoke the remote operation.
        Parameters:
        project - Project ID for this request.
        region - The name of the region for this request.
        resource - Name or id of the resource for this request.
        content - the RegionSetPolicyRequest
        Returns:
        the request
        Throws:
        IOException
      • testIamPermissions

        public Compute.ServiceAttachments.TestIamPermissions testIamPermissions(String project,
                                                                                String region,
                                                                                String resource,
                                                                                TestPermissionsRequest content)
                                                                         throws IOException
        Returns permissions that a caller has on the specified resource. Create a request for the method "serviceAttachments.testIamPermissions". This request holds the parameters needed by the compute server. After setting any optional parameters, call the AbstractGoogleClientRequest.execute() method to invoke the remote operation.
        Parameters:
        project - Project ID for this request.
        region - The name of the region for this request.
        resource - Name or id of the resource for this request.
        content - the TestPermissionsRequest
        Returns:
        the request
        Throws:
        IOException

Copyright © 2011–2025 Google. All rights reserved.





© 2015 - 2025 Weber Informatics LLC | Privacy Policy