Reference documentation and code samples for the Google Cloud Filestore V1 Client class RevertInstanceRequest.
RevertInstanceRequest reverts the given instance's file share to the
specified snapshot.
Generated from protobuf message google.cloud.filestore.v1.RevertInstanceRequest
Namespace
Google \ Cloud \ Filestore \ V1
Methods
__construct
Constructor.
Parameters
Name
Description
data
array
Optional. Data for populating the Message object.
↳ name
string
Required. The resource name of the instance, in the format projects/{project_id}/locations/{location_id}/instances/{instance_id}.
↳ target_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}/instances/{instance_id}/snapshots/{snapshot_id}
getName
Required. The resource name of the instance, in the format
projects/{project_id}/locations/{location_id}/instances/{instance_id}.
Returns
Type
Description
string
setName
Required. The resource name of the instance, in the format
projects/{project_id}/locations/{location_id}/instances/{instance_id}.
Parameter
Name
Description
var
string
Returns
Type
Description
$this
getTargetSnapshotId
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}/instances/{instance_id}/snapshots/{snapshot_id}
Returns
Type
Description
string
setTargetSnapshotId
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}/instances/{instance_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 Filestore V1 Client - Class RevertInstanceRequest (2.1.1)\n\nVersion latestkeyboard_arrow_down\n\n- [2.1.1 (latest)](/php/docs/reference/cloud-filestore/latest/V1.RevertInstanceRequest)\n- [2.1.0](/php/docs/reference/cloud-filestore/2.1.0/V1.RevertInstanceRequest)\n- [2.0.4](/php/docs/reference/cloud-filestore/2.0.4/V1.RevertInstanceRequest)\n- [1.5.7](/php/docs/reference/cloud-filestore/1.5.7/V1.RevertInstanceRequest)\n- [1.4.0](/php/docs/reference/cloud-filestore/1.4.0/V1.RevertInstanceRequest)\n- [1.3.2](/php/docs/reference/cloud-filestore/1.3.2/V1.RevertInstanceRequest)\n- [1.2.1](/php/docs/reference/cloud-filestore/1.2.1/V1.RevertInstanceRequest)\n- [1.1.2](/php/docs/reference/cloud-filestore/1.1.2/V1.RevertInstanceRequest)\n- [1.0.3](/php/docs/reference/cloud-filestore/1.0.3/V1.RevertInstanceRequest) \nReference documentation and code samples for the Google Cloud Filestore V1 Client class RevertInstanceRequest.\n\nRevertInstanceRequest reverts the given instance's file share to the\nspecified snapshot.\n\nGenerated from protobuf message `google.cloud.filestore.v1.RevertInstanceRequest`\n\nNamespace\n---------\n\nGoogle \\\\ Cloud \\\\ Filestore \\\\ V1\n\nMethods\n-------\n\n### __construct\n\nConstructor.\n\n### getName\n\nRequired. The resource name of the instance, in the format\n`projects/{project_id}/locations/{location_id}/instances/{instance_id}`.\n\n### setName\n\nRequired. The resource name of the instance, in the format\n`projects/{project_id}/locations/{location_id}/instances/{instance_id}`.\n\n### getTargetSnapshotId\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\n`projects/{project_id}/locations/{location_id}/instances/{instance_id}/snapshots/{snapshot_id}`\n\n### setTargetSnapshotId\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\n`projects/{project_id}/locations/{location_id}/instances/{instance_id}/snapshots/{snapshot_id}`"]]