Class ProjectsResource.LocationsResource.VolumesResource
The "volumes" collection of methods.
Inherited Members
Namespace: Google.Apis.NetAppFiles.v1beta1
Assembly: Google.Apis.NetAppFiles.v1beta1.dll
Syntax
public class ProjectsResource.LocationsResource.VolumesResource
Constructors
VolumesResource(IClientService)
Constructs a new resource.
Declaration
public VolumesResource(IClientService service)
Parameters
Type | Name | Description |
---|---|---|
IClientService | service |
Properties
Replications
Gets the Replications resource.
Declaration
public virtual ProjectsResource.LocationsResource.VolumesResource.ReplicationsResource Replications { get; }
Property Value
Type | Description |
---|---|
ProjectsResource.LocationsResource.VolumesResource.ReplicationsResource |
Snapshots
Gets the Snapshots resource.
Declaration
public virtual ProjectsResource.LocationsResource.VolumesResource.SnapshotsResource Snapshots { get; }
Property Value
Type | Description |
---|---|
ProjectsResource.LocationsResource.VolumesResource.SnapshotsResource |
Methods
Create(Volume, string)
Creates a new Volume in a given project and location.
Declaration
public virtual ProjectsResource.LocationsResource.VolumesResource.CreateRequest Create(Volume body, string parent)
Parameters
Type | Name | Description |
---|---|---|
Volume | body | The body of the request. |
string | parent | Required. Value for parent. |
Returns
Type | Description |
---|---|
ProjectsResource.LocationsResource.VolumesResource.CreateRequest |
Delete(string)
Deletes a single Volume.
Declaration
public virtual ProjectsResource.LocationsResource.VolumesResource.DeleteRequest Delete(string name)
Parameters
Type | Name | Description |
---|---|---|
string | name | Required. Name of the volume |
Returns
Type | Description |
---|---|
ProjectsResource.LocationsResource.VolumesResource.DeleteRequest |
Get(string)
Gets details of a single Volume.
Declaration
public virtual ProjectsResource.LocationsResource.VolumesResource.GetRequest Get(string name)
Parameters
Type | Name | Description |
---|---|---|
string | name | Required. Name of the volume |
Returns
Type | Description |
---|---|
ProjectsResource.LocationsResource.VolumesResource.GetRequest |
List(string)
Lists Volumes in a given project.
Declaration
public virtual ProjectsResource.LocationsResource.VolumesResource.ListRequest List(string parent)
Parameters
Type | Name | Description |
---|---|---|
string | parent | Required. Parent value for ListVolumesRequest |
Returns
Type | Description |
---|---|
ProjectsResource.LocationsResource.VolumesResource.ListRequest |
Patch(Volume, string)
Updates the parameters of a single Volume.
Declaration
public virtual ProjectsResource.LocationsResource.VolumesResource.PatchRequest Patch(Volume body, string name)
Parameters
Type | Name | Description |
---|---|---|
Volume | body | The body of the request. |
string | name | Identifier. Name of the volume |
Returns
Type | Description |
---|---|
ProjectsResource.LocationsResource.VolumesResource.PatchRequest |
Revert(RevertVolumeRequest, string)
Revert an existing volume to a specified snapshot. Warning! This operation will permanently revert all changes made after the snapshot was created.
Declaration
public virtual ProjectsResource.LocationsResource.VolumesResource.RevertRequest Revert(RevertVolumeRequest body, string name)
Parameters
Type | Name | Description |
---|---|---|
RevertVolumeRequest | body | The body of the request. |
string | name | Required. The resource name of the volume, in the format of projects/{project_id}/locations/{location}/volumes/{volume_id}. |
Returns
Type | Description |
---|---|
ProjectsResource.LocationsResource.VolumesResource.RevertRequest |