Google Cloud Gke Backup V1 Client - Class CreateRestoreChannelRequest (1.2.0)

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

Request message for CreateRestoreChannel.

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

Namespace

Google \ Cloud \ GkeBackup \ V1

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ parent string

Required. The location within which to create the RestoreChannel. Format: projects/*/locations/*

↳ restore_channel RestoreChannel

Required. The RestoreChannel resource object to create.

↳ restore_channel_id string

Optional. The client-provided short name for the RestoreChannel 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 RestoreChannels in this location If the user does not provide a name, a uuid will be used as the name.

getParent

Required. The location within which to create the RestoreChannel.

Format: projects/*/locations/*

Returns
Type Description
string

setParent

Required. The location within which to create the RestoreChannel.

Format: projects/*/locations/*

Parameter
Name Description
var string
Returns
Type Description
$this

getRestoreChannel

Required. The RestoreChannel resource object to create.

Returns
Type Description
RestoreChannel|null

hasRestoreChannel

clearRestoreChannel

setRestoreChannel

Required. The RestoreChannel resource object to create.

Parameter
Name Description
var RestoreChannel
Returns
Type Description
$this

getRestoreChannelId

Optional. The client-provided short name for the RestoreChannel 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 RestoreChannels in this location If the user does not provide a name, a uuid will be used as the name.
Returns
Type Description
string

setRestoreChannelId

Optional. The client-provided short name for the RestoreChannel 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 RestoreChannels in this location If the user does not provide a name, a uuid will be used as the name.
Parameter
Name Description
var string
Returns
Type Description
$this

static::build

Parameters
Name Description
parent string

Required. The location within which to create the RestoreChannel. Format: projects/*/locations/* Please see BackupForGKEClient::locationName() for help formatting this field.

restoreChannel RestoreChannel

Required. The RestoreChannel resource object to create.

restoreChannelId string

Optional. The client-provided short name for the RestoreChannel 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 RestoreChannels in this location If the user does not provide a name, a uuid will be used as the name.
Returns
Type Description
CreateRestoreChannelRequest