Google Cloud Gke Backup V1 Client - Class CreateBackupRequest (0.2.0)

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

Request message for CreateBackup.

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

Methods

build

Parameters
Name Description
parent string

Required. The BackupPlan within which to create the Backup. Format: projects//locations//backupPlans/* Please see {@see \Google\Cloud\GkeBackup\V1\BackupForGKEClient::backupPlanName()} for help formatting this field.

backup Google\Cloud\GkeBackup\V1\Backup

The Backup resource to create.

backupId string

The client-provided short name for the Backup resource. This name must:

  • be between 1 and 63 characters long (inclusive)
  • consist of only lower-case ASCII letters, numbers, and dashes
  • start with a lower-case letter
  • end with a lower-case letter or number
  • be unique within the set of Backups in this BackupPlan
Returns
Type Description
Google\Cloud\GkeBackup\V1\CreateBackupRequest

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ parent string

Required. The BackupPlan within which to create the Backup. Format: projects//locations//backupPlans/*

↳ backup Google\Cloud\GkeBackup\V1\Backup

The Backup resource to create.

↳ backup_id string

The client-provided short name for the Backup resource. This name must: - be between 1 and 63 characters long (inclusive) - consist of only lower-case ASCII letters, numbers, and dashes - start with a lower-case letter - end with a lower-case letter or number - be unique within the set of Backups in this BackupPlan

getParent

Required. The BackupPlan within which to create the Backup.

Format: projects//locations//backupPlans/*

Returns
Type Description
string

setParent

Required. The BackupPlan within which to create the Backup.

Format: projects//locations//backupPlans/*

Parameter
Name Description
var string
Returns
Type Description
$this

getBackup

The Backup resource to create.

Returns
Type Description
Google\Cloud\GkeBackup\V1\Backup|null

hasBackup

clearBackup

setBackup

The Backup resource to create.

Parameter
Name Description
var Google\Cloud\GkeBackup\V1\Backup
Returns
Type Description
$this

getBackupId

The client-provided short name for the Backup resource.

This name must:

  • be between 1 and 63 characters long (inclusive)
  • consist of only lower-case ASCII letters, numbers, and dashes
  • start with a lower-case letter
  • end with a lower-case letter or number
  • be unique within the set of Backups in this BackupPlan
Returns
Type Description
string

setBackupId

The client-provided short name for the Backup resource.

This name must:

  • be between 1 and 63 characters long (inclusive)
  • consist of only lower-case ASCII letters, numbers, and dashes
  • start with a lower-case letter
  • end with a lower-case letter or number
  • be unique within the set of Backups in this BackupPlan
Parameter
Name Description
var string
Returns
Type Description
$this