You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/dyn/file_v1.projects.locations.instances.html
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -458,7 +458,7 @@ <h3>Method Details</h3>
458
458
body: object, The request body.
459
459
The object takes the form of:
460
460
461
-
{ # RestoreInstanceRequest restores an existing instances's file share from a backup.
461
+
{ # RestoreInstanceRequest restores an existing instance's file share from a backup.
462
462
"fileShare": "A String", # Required. Name of the file share in the Cloud Filestore instance that the backup is being restored to.
463
463
"sourceBackup": "A String", # The resource name of the backup, in the format `projects/{project_number}/locations/{location_id}/backups/{backup_id}`.
<pclass="firstline">Restores an existing instance's file share from a backup. The capacity of the instance needs to be equal to or larger than the capacity of the backup (and also equal to or larger than the minimum capacity of the tier).</p>
<pclass="firstline">Revert an existing instance's file system to a specified snapshot.</p>
106
109
<h3>Method Details</h3>
107
110
<divclass="method">
108
111
<codeclass="details" id="close">close()</code>
@@ -484,7 +487,7 @@ <h3>Method Details</h3>
484
487
body: object, The request body.
485
488
The object takes the form of:
486
489
487
-
{ # RestoreInstanceRequest restores an existing instances's file share from a snapshot or backup.
490
+
{ # RestoreInstanceRequest restores an existing instance's file share from a snapshot or backup.
488
491
"fileShare": "A String", # Required. Name of the file share in the Cloud Filestore instance that the snapshot is being restored to.
489
492
"sourceBackup": "A String", # The resource name of the backup, in the format `projects/{project_id}/locations/{location_id}/backups/{backup_id}`.
490
493
"sourceSnapshot": "A String", # The resource name of the snapshot, in the format `projects/{project_id}/locations/{location_id}/snapshots/{snapshot_id}`.
<pre>Revert an existing instance's file system to a specified snapshot.
528
+
529
+
Args:
530
+
name: string, Required. projects/{project_id}/locations/{location_id}/instances/{instance_id}. The resource name of the instance, in the format (required)
531
+
body: object, The request body.
532
+
The object takes the form of:
533
+
534
+
{ # RevertInstanceRequest reverts the given instance's file share to the specified snapshot.
535
+
"targetSnapshotId": "A 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}
536
+
}
537
+
538
+
x__xgafv: string, V1 error format.
539
+
Allowed values
540
+
1 - v1 error format
541
+
2 - v2 error format
542
+
543
+
Returns:
544
+
An object of the form:
545
+
546
+
{ # This resource represents a long-running operation that is the result of a network API call.
547
+
"done": True or False, # If the value is `false`, it means the operation is still in progress. If `true`, the operation is completed, and either `error` or `response` is available.
548
+
"error": { # The `Status` type defines a logical error model that is suitable for different programming environments, including REST APIs and RPC APIs. It is used by [gRPC](https://github.com/grpc). Each `Status` message contains three pieces of data: error code, error message, and error details. You can find out more about this error model and how to work with it in the [API Design Guide](https://cloud.google.com/apis/design/errors). # The error result of the operation in case of failure or cancellation.
549
+
"code": 42, # The status code, which should be an enum value of google.rpc.Code.
550
+
"details": [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
551
+
{
552
+
"a_key": "", # Properties of the object. Contains field @type with type URL.
553
+
},
554
+
],
555
+
"message": "A String", # A developer-facing error message, which should be in English. Any user-facing error message should be localized and sent in the google.rpc.Status.details field, or localized by the client.
556
+
},
557
+
"metadata": { # Service-specific metadata associated with the operation. It typically contains progress information and common metadata such as create time. Some services might not provide such metadata. Any method that returns a long-running operation should document the metadata type, if any.
558
+
"a_key": "", # Properties of the object. Contains field @type with type URL.
559
+
},
560
+
"name": "A String", # The server-assigned name, which is only unique within the same service that originally returns it. If you use the default HTTP mapping, the `name` should be a resource name ending with `operations/{unique_id}`.
561
+
"response": { # The normal response of the operation in case of success. If the original method returns no data on success, such as `Delete`, the response is `google.protobuf.Empty`. If the original method is standard `Get`/`Create`/`Update`, the response should be the resource. For other methods, the response should have the type `XxxResponse`, where `Xxx` is the original method name. For example, if the original method name is `TakeSnapshot()`, the inferred response type is `TakeSnapshotResponse`.
562
+
"a_key": "", # Properties of the object. Contains field @type with type URL.
"The instance is experiencing an issue and might be unusable. You can get further details from the `statusMessage` field of the `Instance` resource.",
1370
1399
"The instance is restoring a snapshot or backup to an existing file share and may be unusable during this time.",
1371
-
"The instance is suspended. You can get further details from the `suspension_reasons` field of the `Instance` resource."
1400
+
"The instance is suspended. You can get further details from the `suspension_reasons` field of the `Instance` resource.",
1401
+
"The instance is reverting to a snapshot."
1372
1402
],
1373
1403
"readOnly": true,
1374
1404
"type": "string"
@@ -1806,7 +1836,7 @@
1806
1836
"type": "object"
1807
1837
},
1808
1838
"RestoreInstanceRequest": {
1809
-
"description": "RestoreInstanceRequest restores an existing instances's file share from a snapshot or backup.",
1839
+
"description": "RestoreInstanceRequest restores an existing instance's file share from a snapshot or backup.",
1810
1840
"id": "RestoreInstanceRequest",
1811
1841
"properties": {
1812
1842
"fileShare": {
@@ -1824,6 +1854,17 @@
1824
1854
},
1825
1855
"type": "object"
1826
1856
},
1857
+
"RevertInstanceRequest": {
1858
+
"description": "RevertInstanceRequest reverts the given instance's file share to the specified snapshot.",
1859
+
"id": "RevertInstanceRequest",
1860
+
"properties": {
1861
+
"targetSnapshotId": {
1862
+
"description": "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}",
0 commit comments