Class: Google::Apis::FileV1::RestoreInstanceRequest
- Inherits:
-
Object
- Object
- Google::Apis::FileV1::RestoreInstanceRequest
- 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
RestoreInstanceRequest restores an existing instance's file share from a backup.
Instance Attribute Summary collapse
-
#file_share ⇒ String
Required.
-
#source_backup ⇒ String
The resource name of the backup, in the format
projects/
project_number/ locations/
location_id/backups/
backup_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.
1394 1395 1396 |
# File 'lib/google/apis/file_v1/classes.rb', line 1394 def initialize(**args) update!(**args) end |
Instance Attribute Details
#file_share ⇒ String
Required. Name of the file share in the Filestore instance that the backup is
being restored to.
Corresponds to the JSON property fileShare
1386 1387 1388 |
# File 'lib/google/apis/file_v1/classes.rb', line 1386 def file_share @file_share end |
#source_backup ⇒ String
The resource name of the backup, in the format projects/
project_number/
locations/
location_id/backups/
backup_id`.
Corresponds to the JSON property
sourceBackup`
1392 1393 1394 |
# File 'lib/google/apis/file_v1/classes.rb', line 1392 def source_backup @source_backup end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1399 1400 1401 1402 |
# File 'lib/google/apis/file_v1/classes.rb', line 1399 def update!(**args) @file_share = args[:file_share] if args.key?(:file_share) @source_backup = args[:source_backup] if args.key?(:source_backup) end |