Reference documentation and code samples for the Google Cloud Net App V1 Client class RevertVolumeRequest.
RevertVolumeRequest reverts the given volume to the specified snapshot.
Generated from protobuf message google.cloud.netapp.v1.RevertVolumeRequest
Namespace
Google \ Cloud \ NetApp \ V1
Methods
__construct
Constructor.
Parameters
Name
Description
data
array
Optional. Data for populating the Message object.
↳ name
string
Required. The resource name of the volume, in the format of projects/{project_id}/locations/{location}/volumes/{volume_id}.
↳ snapshot_id
string
Required. The snapshot resource ID, in the format 'my-snapshot', where the specified ID is the {snapshot_id} of the fully qualified name like projects/{project_id}/locations/{location_id}/volumes/{volume_id}/snapshots/{snapshot_id}
getName
Required. The resource name of the volume, in the format of
projects/{project_id}/locations/{location}/volumes/{volume_id}.
Returns
Type
Description
string
setName
Required. The resource name of the volume, in the format of
projects/{project_id}/locations/{location}/volumes/{volume_id}.
Parameter
Name
Description
var
string
Returns
Type
Description
$this
getSnapshotId
Required. The snapshot resource ID, in the format 'my-snapshot', where the
specified ID is the {snapshot_id} of the fully qualified name like
projects/{project_id}/locations/{location_id}/volumes/{volume_id}/snapshots/{snapshot_id}
Returns
Type
Description
string
setSnapshotId
Required. The snapshot resource ID, in the format 'my-snapshot', where the
specified ID is the {snapshot_id} of the fully qualified name like
projects/{project_id}/locations/{location_id}/volumes/{volume_id}/snapshots/{snapshot_id}
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-09-04 UTC."],[],[],null,["# Google Cloud Net App V1 Client - Class RevertVolumeRequest (1.6.1)\n\nVersion latestkeyboard_arrow_down\n\n- [1.6.1 (latest)](/php/docs/reference/cloud-netapp/latest/V1.RevertVolumeRequest)\n- [1.6.0](/php/docs/reference/cloud-netapp/1.6.0/V1.RevertVolumeRequest)\n- [1.4.0](/php/docs/reference/cloud-netapp/1.4.0/V1.RevertVolumeRequest)\n- [1.3.1](/php/docs/reference/cloud-netapp/1.3.1/V1.RevertVolumeRequest)\n- [1.2.1](/php/docs/reference/cloud-netapp/1.2.1/V1.RevertVolumeRequest)\n- [1.1.1](/php/docs/reference/cloud-netapp/1.1.1/V1.RevertVolumeRequest)\n- [1.0.1](/php/docs/reference/cloud-netapp/1.0.1/V1.RevertVolumeRequest)\n- [0.3.1](/php/docs/reference/cloud-netapp/0.3.1/V1.RevertVolumeRequest)\n- [0.2.6](/php/docs/reference/cloud-netapp/0.2.6/V1.RevertVolumeRequest)\n- [0.1.1](/php/docs/reference/cloud-netapp/0.1.1/V1.RevertVolumeRequest) \nReference documentation and code samples for the Google Cloud Net App V1 Client class RevertVolumeRequest.\n\nRevertVolumeRequest reverts the given volume to the specified snapshot.\n\nGenerated from protobuf message `google.cloud.netapp.v1.RevertVolumeRequest`\n\nNamespace\n---------\n\nGoogle \\\\ Cloud \\\\ NetApp \\\\ V1\n\nMethods\n-------\n\n### __construct\n\nConstructor.\n\n### getName\n\nRequired. The resource name of the volume, in the format of\nprojects/{project_id}/locations/{location}/volumes/{volume_id}.\n\n### setName\n\nRequired. The resource name of the volume, in the format of\nprojects/{project_id}/locations/{location}/volumes/{volume_id}.\n\n### getSnapshotId\n\nRequired. The snapshot resource ID, in the format 'my-snapshot', where the\nspecified ID is the {snapshot_id} of the fully qualified name like\nprojects/{project_id}/locations/{location_id}/volumes/{volume_id}/snapshots/{snapshot_id}\n\n### setSnapshotId\n\nRequired. The snapshot resource ID, in the format 'my-snapshot', where the\nspecified ID is the {snapshot_id} of the fully qualified name like\nprojects/{project_id}/locations/{location_id}/volumes/{volume_id}/snapshots/{snapshot_id}"]]