Class StoragePoolsResource
The "storagePools" collection of methods.
Inherited Members
Namespace: Google.Apis.Compute.beta
Assembly: Google.Apis.Compute.beta.dll
Syntax
public class StoragePoolsResource
Constructors
StoragePoolsResource(IClientService)
Constructs a new resource.
Declaration
public StoragePoolsResource(IClientService service)
Parameters
Type | Name | Description |
---|---|---|
IClientService | service |
Methods
AggregatedList(string)
Retrieves an aggregated list of storage pools. To prevent failure, Google recommends that you set the
returnPartialSuccess
parameter to true
.
Declaration
public virtual StoragePoolsResource.AggregatedListRequest AggregatedList(string project)
Parameters
Type | Name | Description |
---|---|---|
string | project | Project ID for this request. |
Returns
Type | Description |
---|---|
StoragePoolsResource.AggregatedListRequest |
Delete(string, string, string)
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.
Declaration
public virtual StoragePoolsResource.DeleteRequest Delete(string project, string zone, string storagePool)
Parameters
Type | Name | Description |
---|---|---|
string | project | Project ID for this request. |
string | zone | The name of the zone for this request. |
string | storagePool | Name of the storage pool to delete. |
Returns
Type | Description |
---|---|
StoragePoolsResource.DeleteRequest |
Get(string, string, string)
Returns a specified storage pool. Gets a list of available storage pools by making a list() request.
Declaration
public virtual StoragePoolsResource.GetRequest Get(string project, string zone, string storagePool)
Parameters
Type | Name | Description |
---|---|---|
string | project | Project ID for this request. |
string | zone | The name of the zone for this request. |
string | storagePool | Name of the storage pool to return. |
Returns
Type | Description |
---|---|
StoragePoolsResource.GetRequest |
GetIamPolicy(string, string, string)
Gets the access control policy for a resource. May be empty if no such policy or resource exists.
Declaration
public virtual StoragePoolsResource.GetIamPolicyRequest GetIamPolicy(string project, string zone, string resource)
Parameters
Type | Name | Description |
---|---|---|
string | project | Project ID for this request. |
string | zone | The name of the zone for this request. |
string | resource | Name or id of the resource for this request. |
Returns
Type | Description |
---|---|
StoragePoolsResource.GetIamPolicyRequest |
Insert(StoragePool, string, string)
Creates a storage pool in the specified project using the data in the request.
Declaration
public virtual StoragePoolsResource.InsertRequest Insert(StoragePool body, string project, string zone)
Parameters
Type | Name | Description |
---|---|---|
StoragePool | body | The body of the request. |
string | project | Project ID for this request. |
string | zone | The name of the zone for this request. |
Returns
Type | Description |
---|---|
StoragePoolsResource.InsertRequest |
List(string, string)
Retrieves a list of storage pools contained within the specified zone.
Declaration
public virtual StoragePoolsResource.ListRequest List(string project, string zone)
Parameters
Type | Name | Description |
---|---|---|
string | project | Project ID for this request. |
string | zone | The name of the zone for this request. |
Returns
Type | Description |
---|---|
StoragePoolsResource.ListRequest |
ListDisks(string, string, string)
Lists the disks in a specified storage pool.
Declaration
public virtual StoragePoolsResource.ListDisksRequest ListDisks(string project, string zone, string storagePool)
Parameters
Type | Name | Description |
---|---|---|
string | project | Project ID for this request. |
string | zone | The name of the zone for this request. |
string | storagePool | Name of the storage pool to list disks of. |
Returns
Type | Description |
---|---|
StoragePoolsResource.ListDisksRequest |
SetIamPolicy(ZoneSetPolicyRequest, string, string, string)
Sets the access control policy on the specified resource. Replaces any existing policy.
Declaration
public virtual StoragePoolsResource.SetIamPolicyRequest SetIamPolicy(ZoneSetPolicyRequest body, string project, string zone, string resource)
Parameters
Type | Name | Description |
---|---|---|
ZoneSetPolicyRequest | body | The body of the request. |
string | project | Project ID for this request. |
string | zone | The name of the zone for this request. |
string | resource | Name or id of the resource for this request. |
Returns
Type | Description |
---|---|
StoragePoolsResource.SetIamPolicyRequest |
TestIamPermissions(TestPermissionsRequest, string, string, string)
Returns permissions that a caller has on the specified resource.
Declaration
public virtual StoragePoolsResource.TestIamPermissionsRequest TestIamPermissions(TestPermissionsRequest body, string project, string zone, string resource)
Parameters
Type | Name | Description |
---|---|---|
TestPermissionsRequest | body | The body of the request. |
string | project | Project ID for this request. |
string | zone | The name of the zone for this request. |
string | resource | Name or id of the resource for this request. |
Returns
Type | Description |
---|---|
StoragePoolsResource.TestIamPermissionsRequest |
Update(StoragePool, string, string, string)
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.
Declaration
public virtual StoragePoolsResource.UpdateRequest Update(StoragePool body, string project, string zone, string storagePool)
Parameters
Type | Name | Description |
---|---|---|
StoragePool | body | The body of the request. |
string | project | Project ID for this request. |
string | zone | The name of the zone for this request. |
string | storagePool | The storagePool name for this request. |
Returns
Type | Description |
---|---|
StoragePoolsResource.UpdateRequest |