Class: Google::Apis::FileV1::RevertInstanceRequest
- Inherits:
-
Object
- Object
- Google::Apis::FileV1::RevertInstanceRequest
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/file_v1/classes.rb,
lib/google/apis/file_v1/representations.rb,
lib/google/apis/file_v1/representations.rb
Overview
RevertInstanceRequest reverts the given instance's file share to the specified snapshot.
Instance Attribute Summary collapse
-
#target_snapshot_id ⇒ String
Required.
Instance Method Summary collapse
-
#initialize(**args) ⇒ RevertInstanceRequest
constructor
A new instance of RevertInstanceRequest.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ RevertInstanceRequest
Returns a new instance of RevertInstanceRequest.
1418 1419 1420 |
# File 'lib/google/apis/file_v1/classes.rb', line 1418 def initialize(**args) update!(**args) end |
Instance Attribute Details
#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`
Corresponds to the JSON property
targetSnapshotId`
1416 1417 1418 |
# File 'lib/google/apis/file_v1/classes.rb', line 1416 def target_snapshot_id @target_snapshot_id end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1423 1424 1425 |
# File 'lib/google/apis/file_v1/classes.rb', line 1423 def update!(**args) @target_snapshot_id = args[:target_snapshot_id] if args.key?(:target_snapshot_id) end |