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

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

Namespace

Google \ Cloud \ GkeBackup \ V1

Methods

__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 Backup

Optional. The Backup resource to create.

↳ backup_id string

Optional. 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

Optional. The Backup resource to create.

Returns
Type Description
Backup|null

hasBackup

clearBackup

setBackup

Optional. The Backup resource to create.

Parameter
Name Description
var Backup
Returns
Type Description
$this

getBackupId

Optional. 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

Optional. 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

static::build

Parameters
Name Description
parent string

Required. The BackupPlan within which to create the Backup. Format: projects/*/locations/*/backupPlans/* Please see BackupForGKEClient::backupPlanName() for help formatting this field.

backup Backup

Optional. The Backup resource to create.

backupId string

Optional. 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
CreateBackupRequest