Class: Google::Apis::FileV1::RestoreInstanceRequest

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
generated/google/apis/file_v1/classes.rb,
generated/google/apis/file_v1/representations.rb,
generated/google/apis/file_v1/representations.rb

Overview

RestoreInstanceRequest restores an existing instances's file share from a backup.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ RestoreInstanceRequest

Returns a new instance of RestoreInstanceRequest.



1267
1268
1269
# File 'generated/google/apis/file_v1/classes.rb', line 1267

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#file_shareString

Required. Name of the file share in the Cloud Filestore instance that the backup is being restored to. Corresponds to the JSON property fileShare

Returns:

  • (String)


1259
1260
1261
# File 'generated/google/apis/file_v1/classes.rb', line 1259

def file_share
  @file_share
end

#source_backupString

The resource name of the backup, in the format projects/project_number/ locations/location_id/backups/backup_id. Corresponds to the JSON property sourceBackup

Returns:

  • (String)


1265
1266
1267
# File 'generated/google/apis/file_v1/classes.rb', line 1265

def source_backup
  @source_backup
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1272
1273
1274
1275
# File 'generated/google/apis/file_v1/classes.rb', line 1272

def update!(**args)
  @file_share = args[:file_share] if args.key?(:file_share)
  @source_backup = args[:source_backup] if args.key?(:source_backup)
end