target.apidocs.com.google.api.services.compute.Compute.StoragePools.html Maven / Gradle / Ivy
The newest version!
Compute.StoragePools (Compute Engine API v1-rev20250320-2.0.0)
com.google.api.services.compute
Class Compute.StoragePools
- java.lang.Object
-
- com.google.api.services.compute.Compute.StoragePools
-
-
Nested Class Summary
Nested Classes
Modifier and Type
Class and Description
class
Compute.StoragePools.AggregatedList
class
Compute.StoragePools.Delete
class
Compute.StoragePools.Get
class
Compute.StoragePools.GetIamPolicy
class
Compute.StoragePools.Insert
class
Compute.StoragePools.List
class
Compute.StoragePools.ListDisks
class
Compute.StoragePools.SetIamPolicy
class
Compute.StoragePools.TestIamPermissions
class
Compute.StoragePools.Update
-
Constructor Summary
Constructors
Constructor and Description
StoragePools()
-
Method Summary
All Methods Instance Methods Concrete Methods
Modifier and Type
Method and Description
Compute.StoragePools.AggregatedList
aggregatedList(String project)
Retrieves an aggregated list of storage pools.
Compute.StoragePools.Delete
delete(String project,
String zone,
String storagePool)
Deletes the specified storage pool.
Compute.StoragePools.Get
get(String project,
String zone,
String storagePool)
Returns a specified storage pool.
Compute.StoragePools.GetIamPolicy
getIamPolicy(String project,
String zone,
String resource)
Gets the access control policy for a resource.
Compute.StoragePools.Insert
insert(String project,
String zone,
StoragePool content)
Creates a storage pool in the specified project using the data in the request.
Compute.StoragePools.List
list(String project,
String zone)
Retrieves a list of storage pools contained within the specified zone.
Compute.StoragePools.ListDisks
listDisks(String project,
String zone,
String storagePool)
Lists the disks in a specified storage pool.
Compute.StoragePools.SetIamPolicy
setIamPolicy(String project,
String zone,
String resource,
ZoneSetPolicyRequest content)
Sets the access control policy on the specified resource.
Compute.StoragePools.TestIamPermissions
testIamPermissions(String project,
String zone,
String resource,
TestPermissionsRequest content)
Returns permissions that a caller has on the specified resource.
Compute.StoragePools.Update
update(String project,
String zone,
String storagePool,
StoragePool content)
Updates the specified storagePool with the data included in the request.
-
-
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