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

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

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






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












com.google.api.services.compute

Class Compute.StoragePools

  • Enclosing class:
    Compute


    public class Compute.StoragePools
    extends Object
    The "storagePools" collection of methods.
    • Constructor Detail

      • StoragePools

        public StoragePools()
    • Method Detail

      • aggregatedList

        public Compute.StoragePools.AggregatedList aggregatedList(String project)
                                                           throws IOException
        Retrieves an aggregated list of storage pools. To prevent failure, Google recommends that you set the `returnPartialSuccess` parameter to `true`. Create a request for the method "storagePools.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.StoragePools.Delete delete(String project,
                                                  String zone,
                                                  String storagePool)
                                           throws IOException
        Deletes the specified storage pool. Deleting a storagePool removes its data permanently and is irreversible. However, deleting a storagePool does not delete any snapshots previously made from the storagePool. You must separately delete snapshots. Create a request for the method "storagePools.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.
        storagePool - Name of the storage pool to delete.
        Returns:
        the request
        Throws:
        IOException
      • get

        public Compute.StoragePools.Get get(String project,
                                            String zone,
                                            String storagePool)
                                     throws IOException
        Returns a specified storage pool. Gets a list of available storage pools by making a list() request. Create a request for the method "storagePools.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.
        storagePool - Name of the storage pool to return.
        Returns:
        the request
        Throws:
        IOException
      • getIamPolicy

        public Compute.StoragePools.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 "storagePools.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.StoragePools.Insert insert(String project,
                                                  String zone,
                                                  StoragePool content)
                                           throws IOException
        Creates a storage pool in the specified project using the data in the request. Create a request for the method "storagePools.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 - The name of the zone for this request.
        content - the StoragePool
        Returns:
        the request
        Throws:
        IOException
      • list

        public Compute.StoragePools.List list(String project,
                                              String zone)
                                       throws IOException
        Retrieves a list of storage pools contained within the specified zone. Create a request for the method "storagePools.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
      • listDisks

        public Compute.StoragePools.ListDisks listDisks(String project,
                                                        String zone,
                                                        String storagePool)
                                                 throws IOException
        Lists the disks in a specified storage pool. Create a request for the method "storagePools.listDisks". 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.
        storagePool - Name of the storage pool to list disks of.
        Returns:
        the request
        Throws:
        IOException
      • setIamPolicy

        public Compute.StoragePools.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 "storagePools.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
      • testIamPermissions

        public Compute.StoragePools.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 "storagePools.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
      • update

        public Compute.StoragePools.Update update(String project,
                                                  String zone,
                                                  String storagePool,
                                                  StoragePool content)
                                           throws IOException
        Updates the specified storagePool with the data included in the request. The update is performed only on selected fields included as part of update-mask. Only the following fields can be modified: pool_provisioned_capacity_gb, pool_provisioned_iops and pool_provisioned_throughput. Create a request for the method "storagePools.update". 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.
        storagePool - The storagePool name for this request.
        content - the StoragePool
        Returns:
        the request
        Throws:
        IOException

Copyright © 2011–2025 Google. All rights reserved.





© 2015 - 2025 Weber Informatics LLC | Privacy Policy