Google Cloud Filestore V1 Client - Class RestoreInstanceRequest (1.1.2)

Reference documentation and code samples for the Google Cloud Filestore V1 Client class RestoreInstanceRequest.

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

Generated from protobuf message google.cloud.filestore.v1.RestoreInstanceRequest

Methods

__construct

Constructor.

Parameters
NameDescription
data array

Optional. Data for populating the Message object.

↳ name string

Required. The resource name of the instance, in the format projects/{project_number}/locations/{location_id}/instances/{instance_id}.

↳ file_share string

Required. Name of the file share in the Filestore instance that the backup is being restored to.

↳ source_backup string

The resource name of the backup, in the format projects/{project_number}/locations/{location_id}/backups/{backup_id}.

getName

Required. The resource name of the instance, in the format projects/{project_number}/locations/{location_id}/instances/{instance_id}.

Returns
TypeDescription
string

setName

Required. The resource name of the instance, in the format projects/{project_number}/locations/{location_id}/instances/{instance_id}.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getFileShare

Required. Name of the file share in the Filestore instance that the backup is being restored to.

Returns
TypeDescription
string

setFileShare

Required. Name of the file share in the Filestore instance that the backup is being restored to.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getSourceBackup

The resource name of the backup, in the format projects/{project_number}/locations/{location_id}/backups/{backup_id}.

Returns
TypeDescription
string

hasSourceBackup

setSourceBackup

The resource name of the backup, in the format projects/{project_number}/locations/{location_id}/backups/{backup_id}.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getSource

Returns
TypeDescription
string