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

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

The newest version!






Compute.InstantSnapshots (Compute Engine API v1-rev20250320-2.0.0)












com.google.api.services.compute

Class Compute.InstantSnapshots

  • Enclosing class:
    Compute


    public class Compute.InstantSnapshots
    extends Object
    The "instantSnapshots" collection of methods.
    • Constructor Detail

      • InstantSnapshots

        public InstantSnapshots()
    • Method Detail

      • aggregatedList

        public Compute.InstantSnapshots.AggregatedList aggregatedList(String project)
                                                               throws IOException
        Retrieves an aggregated list of instantSnapshots. To prevent failure, Google recommends that you set the `returnPartialSuccess` parameter to `true`. Create a request for the method "instantSnapshots.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 - Project ID for this request.
        Returns:
        the request
        Throws:
        IOException
      • delete

        public Compute.InstantSnapshots.Delete delete(String project,
                                                      String zone,
                                                      String instantSnapshot)
                                               throws IOException
        Deletes the specified InstantSnapshot resource. Keep in mind that deleting a single instantSnapshot might not necessarily delete all the data on that instantSnapshot. If any data on the instantSnapshot that is marked for deletion is needed for subsequent instantSnapshots, the data will be moved to the next corresponding instantSnapshot. For more information, see Deleting instantSnapshots. Create a request for the method "instantSnapshots.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.
        zone - The name of the zone for this request.
        instantSnapshot - Name of the InstantSnapshot resource to delete.
        Returns:
        the request
        Throws:
        IOException
      • get

        public Compute.InstantSnapshots.Get get(String project,
                                                String zone,
                                                String instantSnapshot)
                                         throws IOException
        Returns the specified InstantSnapshot resource in the specified zone. Create a request for the method "instantSnapshots.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.
        zone - The name of the zone for this request.
        instantSnapshot - Name of the InstantSnapshot resource to return.
        Returns:
        the request
        Throws:
        IOException
      • getIamPolicy

        public Compute.InstantSnapshots.GetIamPolicy getIamPolicy(String project,
                                                                  String zone,
                                                                  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 "instantSnapshots.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.
        zone - The name of the zone for this request.
        resource - Name or id of the resource for this request.
        Returns:
        the request
        Throws:
        IOException
      • insert

        public Compute.InstantSnapshots.Insert insert(String project,
                                                      String zone,
                                                      InstantSnapshot content)
                                               throws IOException
        Creates an instant snapshot in the specified zone. Create a request for the method "instantSnapshots.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.
        zone - Name of the zone for this request.
        content - the InstantSnapshot
        Returns:
        the request
        Throws:
        IOException
      • list

        public Compute.InstantSnapshots.List list(String project,
                                                  String zone)
                                           throws IOException
        Retrieves the list of InstantSnapshot resources contained within the specified zone. Create a request for the method "instantSnapshots.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.
        zone - The name of the zone for this request.
        Returns:
        the request
        Throws:
        IOException
      • setIamPolicy

        public Compute.InstantSnapshots.SetIamPolicy setIamPolicy(String project,
                                                                  String zone,
                                                                  String resource,
                                                                  ZoneSetPolicyRequest content)
                                                           throws IOException
        Sets the access control policy on the specified resource. Replaces any existing policy. Create a request for the method "instantSnapshots.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.
        zone - The name of the zone for this request.
        resource - Name or id of the resource for this request.
        content - the ZoneSetPolicyRequest
        Returns:
        the request
        Throws:
        IOException
      • setLabels

        public Compute.InstantSnapshots.SetLabels setLabels(String project,
                                                            String zone,
                                                            String resource,
                                                            ZoneSetLabelsRequest content)
                                                     throws IOException
        Sets the labels on a instantSnapshot in the given zone. To learn more about labels, read the Labeling Resources documentation. Create a request for the method "instantSnapshots.setLabels". 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.
        zone - The name of the zone for this request.
        resource - Name or id of the resource for this request.
        content - the ZoneSetLabelsRequest
        Returns:
        the request
        Throws:
        IOException
      • testIamPermissions

        public Compute.InstantSnapshots.TestIamPermissions testIamPermissions(String project,
                                                                              String zone,
                                                                              String resource,
                                                                              TestPermissionsRequest content)
                                                                       throws IOException
        Returns permissions that a caller has on the specified resource. Create a request for the method "instantSnapshots.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.
        zone - The name of the zone 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