Cloud Spanner V1 Client - Class CreateBackupScheduleRequest (1.89.0)

Reference documentation and code samples for the Cloud Spanner V1 Client class CreateBackupScheduleRequest.

The request for CreateBackupSchedule.

Generated from protobuf message google.spanner.admin.database.v1.CreateBackupScheduleRequest

Namespace

Google \ Cloud \ Spanner \ Admin \ Database \ V1

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ parent string

Required. The name of the database that this backup schedule applies to.

↳ backup_schedule_id string

Required. The Id to use for the backup schedule. The backup_schedule_id appended to parent forms the full backup schedule name of the form projects/<project>/instances/<instance>/databases/<database>/backupSchedules/<backup_schedule_id>.

↳ backup_schedule BackupSchedule

Required. The backup schedule to create.

getParent

Required. The name of the database that this backup schedule applies to.

Returns
Type Description
string

setParent

Required. The name of the database that this backup schedule applies to.

Parameter
Name Description
var string
Returns
Type Description
$this

getBackupScheduleId

Required. The Id to use for the backup schedule. The backup_schedule_id appended to parent forms the full backup schedule name of the form projects/<project>/instances/<instance>/databases/<database>/backupSchedules/<backup_schedule_id>.

Returns
Type Description
string

setBackupScheduleId

Required. The Id to use for the backup schedule. The backup_schedule_id appended to parent forms the full backup schedule name of the form projects/<project>/instances/<instance>/databases/<database>/backupSchedules/<backup_schedule_id>.

Parameter
Name Description
var string
Returns
Type Description
$this

getBackupSchedule

Required. The backup schedule to create.

Returns
Type Description
BackupSchedule|null

hasBackupSchedule

clearBackupSchedule

setBackupSchedule

Required. The backup schedule to create.

Parameter
Name Description
var BackupSchedule
Returns
Type Description
$this

static::build

Parameters
Name Description
parent string

Required. The name of the database that this backup schedule applies to. Please see DatabaseAdminClient::databaseName() for help formatting this field.

backupSchedule BackupSchedule

Required. The backup schedule to create.

backupScheduleId string

Required. The Id to use for the backup schedule. The backup_schedule_id appended to parent forms the full backup schedule name of the form projects/<project>/instances/<instance>/databases/<database>/backupSchedules/<backup_schedule_id>.

Returns
Type Description
CreateBackupScheduleRequest