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

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

Request message for CreateRestore.

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

Methods

build

Parameters
NameDescription
parent string

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

restore Google\Cloud\GkeBackup\V1\Restore

Required. The restore resource to create.

restoreId string

Required. The client-provided short name for the Restore 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 Restores in this RestorePlan.
Returns
TypeDescription
Google\Cloud\GkeBackup\V1\CreateRestoreRequest

__construct

Constructor.

Parameters
NameDescription
data array

Optional. Data for populating the Message object.

↳ parent string

Required. The RestorePlan within which to create the Restore. Format: projects//locations//restorePlans/*

↳ restore Google\Cloud\GkeBackup\V1\Restore

Required. The restore resource to create.

↳ restore_id string

Required. The client-provided short name for the Restore 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 Restores in this RestorePlan.

getParent

Required. The RestorePlan within which to create the Restore.

Format: projects//locations//restorePlans/*

Returns
TypeDescription
string

setParent

Required. The RestorePlan within which to create the Restore.

Format: projects//locations//restorePlans/*

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getRestore

Required. The restore resource to create.

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

hasRestore

clearRestore

setRestore

Required. The restore resource to create.

Parameter
NameDescription
var Google\Cloud\GkeBackup\V1\Restore
Returns
TypeDescription
$this

getRestoreId

Required. The client-provided short name for the Restore 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 Restores in this RestorePlan.
Returns
TypeDescription
string

setRestoreId

Required. The client-provided short name for the Restore 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 Restores in this RestorePlan.
Parameter
NameDescription
var string
Returns
TypeDescription
$this