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
NameDescription
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
TypeDescription
Google\Cloud\GkeBackup\V1\CreateBackupRequest

__construct

Constructor.

Parameters
NameDescription
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
TypeDescription
string

setParent

Required. The BackupPlan within which to create the Backup.

Format: projects//locations//backupPlans/*

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getBackup

The Backup resource to create.

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

hasBackup

clearBackup

setBackup

The Backup resource to create.

Parameter
NameDescription
var Google\Cloud\GkeBackup\V1\Backup
Returns
TypeDescription
$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
TypeDescription
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
NameDescription
var string
Returns
TypeDescription
$this