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

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

Request message for CreateRestorePlan.

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

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 RestorePlan. Format: projects/*/locations/*

↳ restore_plan RestorePlan

Required. The RestorePlan resource object to create.

↳ restore_plan_id string

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

getParent

Required. The location within which to create the RestorePlan.

Format: projects/*/locations/*

Returns
Type Description
string

setParent

Required. The location within which to create the RestorePlan.

Format: projects/*/locations/*

Parameter
Name Description
var string
Returns
Type Description
$this

getRestorePlan

Required. The RestorePlan resource object to create.

Returns
Type Description
RestorePlan|null

hasRestorePlan

clearRestorePlan

setRestorePlan

Required. The RestorePlan resource object to create.

Parameter
Name Description
var RestorePlan
Returns
Type Description
$this

getRestorePlanId

Required. The client-provided short name for the RestorePlan 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 RestorePlans in this location
Returns
Type Description
string

setRestorePlanId

Required. The client-provided short name for the RestorePlan 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 RestorePlans in this location
Parameter
Name Description
var string
Returns
Type Description
$this

static::build

Parameters
Name Description
parent string

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

restorePlan RestorePlan

Required. The RestorePlan resource object to create.

restorePlanId string

Required. The client-provided short name for the RestorePlan 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 RestorePlans in this location
Returns
Type Description
CreateRestorePlanRequest