Class: Google::Apis::FileV1beta1::RestoreInstanceRequest
- Inherits:
-
Object
- Object
- Google::Apis::FileV1beta1::RestoreInstanceRequest
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- generated/google/apis/file_v1beta1/classes.rb,
generated/google/apis/file_v1beta1/representations.rb,
generated/google/apis/file_v1beta1/representations.rb
Overview
RestoreInstanceRequest restores an existing instances's file share from a snapshot or backup.
Instance Attribute Summary collapse
-
#file_share ⇒ String
Required.
-
#source_backup ⇒ String
The resource name of the backup, in the format projects/
project_id
/locations/location_id
/backups/backup_id
. -
#source_snapshot ⇒ String
The resource name of the snapshot, in the format projects/
project_id
/ locations/location_id
/snapshots/snapshot_id
.
Instance Method Summary collapse
-
#initialize(**args) ⇒ RestoreInstanceRequest
constructor
A new instance of RestoreInstanceRequest.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ RestoreInstanceRequest
Returns a new instance of RestoreInstanceRequest.
1271 1272 1273 |
# File 'generated/google/apis/file_v1beta1/classes.rb', line 1271 def initialize(**args) update!(**args) end |
Instance Attribute Details
#file_share ⇒ String
Required. Name of the file share in the Cloud Filestore instance that the
snapshot is being restored to.
Corresponds to the JSON property fileShare
1257 1258 1259 |
# File 'generated/google/apis/file_v1beta1/classes.rb', line 1257 def file_share @file_share end |
#source_backup ⇒ String
The resource name of the backup, in the format projects/project_id
/locations/
location_id
/backups/backup_id
.
Corresponds to the JSON property sourceBackup
1263 1264 1265 |
# File 'generated/google/apis/file_v1beta1/classes.rb', line 1263 def source_backup @source_backup end |
#source_snapshot ⇒ String
The resource name of the snapshot, in the format projects/project_id
/
locations/location_id
/snapshots/snapshot_id
.
Corresponds to the JSON property sourceSnapshot
1269 1270 1271 |
# File 'generated/google/apis/file_v1beta1/classes.rb', line 1269 def source_snapshot @source_snapshot end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1276 1277 1278 1279 1280 |
# File 'generated/google/apis/file_v1beta1/classes.rb', line 1276 def update!(**args) @file_share = args[:file_share] if args.key?(:file_share) @source_backup = args[:source_backup] if args.key?(:source_backup) @source_snapshot = args[:source_snapshot] if args.key?(:source_snapshot) end |