Google Cloud Filestore V1 Client - Class CreateBackupRequest (1.0.3)

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

CreateBackupRequest creates a backup.

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

Methods

__construct

Constructor.

Parameters
NameDescription
data array

Optional. Data for populating the Message object.

↳ parent string

Required. The backup's project and location, in the format projects/{project_number}/locations/{location}. In Cloud Filestore, backup locations map to GCP regions, for example us-west1.

↳ backup Google\Cloud\Filestore\V1\Backup

Required. A backup resource

↳ backup_id string

Required. The ID to use for the backup. The ID must be unique within the specified project and location. This value must start with a lowercase letter followed by up to 62 lowercase letters, numbers, or hyphens, and cannot end with a hyphen. Values that do not match this pattern will trigger an INVALID_ARGUMENT error.

getParent

Required. The backup's project and location, in the format projects/{project_number}/locations/{location}. In Cloud Filestore, backup locations map to GCP regions, for example us-west1.

Returns
TypeDescription
string

setParent

Required. The backup's project and location, in the format projects/{project_number}/locations/{location}. In Cloud Filestore, backup locations map to GCP regions, for example us-west1.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getBackup

Required. A backup resource

Returns
TypeDescription
Google\Cloud\Filestore\V1\Backup|null

hasBackup

clearBackup

setBackup

Required. A backup resource

Parameter
NameDescription
var Google\Cloud\Filestore\V1\Backup
Returns
TypeDescription
$this

getBackupId

Required. The ID to use for the backup.

The ID must be unique within the specified project and location. This value must start with a lowercase letter followed by up to 62 lowercase letters, numbers, or hyphens, and cannot end with a hyphen. Values that do not match this pattern will trigger an INVALID_ARGUMENT error.

Returns
TypeDescription
string

setBackupId

Required. The ID to use for the backup.

The ID must be unique within the specified project and location. This value must start with a lowercase letter followed by up to 62 lowercase letters, numbers, or hyphens, and cannot end with a hyphen. Values that do not match this pattern will trigger an INVALID_ARGUMENT error.

Parameter
NameDescription
var string
Returns
TypeDescription
$this