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.
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.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-09-04 UTC."],[],[],null,["# Google Cloud Gke Backup V1 Client - Class CreateBackupRequest (1.2.1)\n\nVersion latestkeyboard_arrow_down\n\n- [1.2.1 (latest)](/php/docs/reference/cloud-gke-backup/latest/V1.CreateBackupRequest)\n- [1.2.0](/php/docs/reference/cloud-gke-backup/1.2.0/V1.CreateBackupRequest)\n- [1.0.3](/php/docs/reference/cloud-gke-backup/1.0.3/V1.CreateBackupRequest)\n- [0.8.1](/php/docs/reference/cloud-gke-backup/0.8.1/V1.CreateBackupRequest)\n- [0.7.2](/php/docs/reference/cloud-gke-backup/0.7.2/V1.CreateBackupRequest)\n- [0.6.0](/php/docs/reference/cloud-gke-backup/0.6.0/V1.CreateBackupRequest)\n- [0.5.3](/php/docs/reference/cloud-gke-backup/0.5.3/V1.CreateBackupRequest)\n- [0.4.0](/php/docs/reference/cloud-gke-backup/0.4.0/V1.CreateBackupRequest)\n- [0.3.1](/php/docs/reference/cloud-gke-backup/0.3.1/V1.CreateBackupRequest)\n- [0.2.0](/php/docs/reference/cloud-gke-backup/0.2.0/V1.CreateBackupRequest)\n- [0.1.7](/php/docs/reference/cloud-gke-backup/0.1.7/V1.CreateBackupRequest) \nReference documentation and code samples for the Google Cloud Gke Backup V1 Client class CreateBackupRequest.\n\nRequest message for CreateBackup.\n\nGenerated from protobuf message `google.cloud.gkebackup.v1.CreateBackupRequest`\n\nNamespace\n---------\n\nGoogle \\\\ Cloud \\\\ GkeBackup \\\\ V1\n\nMethods\n-------\n\n### __construct\n\nConstructor.\n\n### getParent\n\nRequired. The BackupPlan within which to create the Backup.\n\nFormat: `projects/*/locations/*/backupPlans/*`\n\n### setParent\n\nRequired. The BackupPlan within which to create the Backup.\n\nFormat: `projects/*/locations/*/backupPlans/*`\n\n### getBackup\n\nOptional. The Backup resource to create.\n\n### hasBackup\n\n### clearBackup\n\n### setBackup\n\nOptional. The Backup resource to create.\n\n### getBackupId\n\nOptional. The client-provided short name for the Backup resource.\n\nThis name must:\n\n- be between 1 and 63 characters long (inclusive)\n- consist of only lower-case ASCII letters, numbers, and dashes\n- start with a lower-case letter\n- end with a lower-case letter or number\n- be unique within the set of Backups in this BackupPlan\n\n### setBackupId\n\nOptional. The client-provided short name for the Backup resource.\n\nThis name must:\n\n- be between 1 and 63 characters long (inclusive)\n- consist of only lower-case ASCII letters, numbers, and dashes\n- start with a lower-case letter\n- end with a lower-case letter or number\n- be unique within the set of Backups in this BackupPlan\n\n### static::build"]]