(::String) — Required. The ID to use for the backup.
The ID must be unique within the specified project and location.
This value must start with a lowercase letter followed by up to 62
lowercase letters, numbers, or hyphens, and cannot end with a hyphen.
Values that do not match this pattern will trigger an INVALID_ARGUMENT
error.
#backup_id=
defbackup_id=(value)->::String
Parameter
value (::String) — Required. The ID to use for the backup.
The ID must be unique within the specified project and location.
This value must start with a lowercase letter followed by up to 62
lowercase letters, numbers, or hyphens, and cannot end with a hyphen.
Values that do not match this pattern will trigger an INVALID_ARGUMENT
error.
Returns
(::String) — Required. The ID to use for the backup.
The ID must be unique within the specified project and location.
This value must start with a lowercase letter followed by up to 62
lowercase letters, numbers, or hyphens, and cannot end with a hyphen.
Values that do not match this pattern will trigger an INVALID_ARGUMENT
error.
#parent
defparent()->::String
Returns
(::String) — Required. The backup's project and location, in the format
projects/{project_number}/locations/{location}. In Filestore,
backup locations map to Google Cloud regions, for example us-west1.
#parent=
defparent=(value)->::String
Parameter
value (::String) — Required. The backup's project and location, in the format
projects/{project_number}/locations/{location}. In Filestore,
backup locations map to Google Cloud regions, for example us-west1.
Returns
(::String) — Required. The backup's project and location, in the format
projects/{project_number}/locations/{location}. In Filestore,
backup locations map to Google Cloud regions, for example us-west1.
[[["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-09 UTC."],[],[],null,["# Filestore V1 API - Class Google::Cloud::Filestore::V1::CreateBackupRequest (v2.2.0)\n\nVersion latestkeyboard_arrow_down\n\n- [2.2.0 (latest)](/ruby/docs/reference/google-cloud-filestore-v1/latest/Google-Cloud-Filestore-V1-CreateBackupRequest)\n- [2.1.1](/ruby/docs/reference/google-cloud-filestore-v1/2.1.1/Google-Cloud-Filestore-V1-CreateBackupRequest)\n- [2.0.0](/ruby/docs/reference/google-cloud-filestore-v1/2.0.0/Google-Cloud-Filestore-V1-CreateBackupRequest)\n- [1.2.0](/ruby/docs/reference/google-cloud-filestore-v1/1.2.0/Google-Cloud-Filestore-V1-CreateBackupRequest)\n- [1.1.0](/ruby/docs/reference/google-cloud-filestore-v1/1.1.0/Google-Cloud-Filestore-V1-CreateBackupRequest)\n- [1.0.1](/ruby/docs/reference/google-cloud-filestore-v1/1.0.1/Google-Cloud-Filestore-V1-CreateBackupRequest)\n- [0.9.0](/ruby/docs/reference/google-cloud-filestore-v1/0.9.0/Google-Cloud-Filestore-V1-CreateBackupRequest)\n- [0.8.2](/ruby/docs/reference/google-cloud-filestore-v1/0.8.2/Google-Cloud-Filestore-V1-CreateBackupRequest)\n- [0.7.0](/ruby/docs/reference/google-cloud-filestore-v1/0.7.0/Google-Cloud-Filestore-V1-CreateBackupRequest)\n- [0.6.0](/ruby/docs/reference/google-cloud-filestore-v1/0.6.0/Google-Cloud-Filestore-V1-CreateBackupRequest)\n- [0.5.0](/ruby/docs/reference/google-cloud-filestore-v1/0.5.0/Google-Cloud-Filestore-V1-CreateBackupRequest)\n- [0.4.1](/ruby/docs/reference/google-cloud-filestore-v1/0.4.1/Google-Cloud-Filestore-V1-CreateBackupRequest)\n- [0.3.0](/ruby/docs/reference/google-cloud-filestore-v1/0.3.0/Google-Cloud-Filestore-V1-CreateBackupRequest)\n- [0.2.0](/ruby/docs/reference/google-cloud-filestore-v1/0.2.0/Google-Cloud-Filestore-V1-CreateBackupRequest)\n- [0.1.3](/ruby/docs/reference/google-cloud-filestore-v1/0.1.3/Google-Cloud-Filestore-V1-CreateBackupRequest) \nReference documentation and code samples for the Filestore V1 API class Google::Cloud::Filestore::V1::CreateBackupRequest.\n\nCreateBackupRequest creates a backup. \n\nInherits\n--------\n\n- Object \n\nExtended By\n-----------\n\n- Google::Protobuf::MessageExts::ClassMethods \n\nIncludes\n--------\n\n- Google::Protobuf::MessageExts\n\nMethods\n-------\n\n### #backup\n\n def backup() -\u003e ::Google::Cloud::Filestore::V1::Backup\n\n**Returns**\n\n- ([::Google::Cloud::Filestore::V1::Backup](./Google-Cloud-Filestore-V1-Backup)) --- Required. A [backup resource](/ruby/docs/reference/google-cloud-filestore-v1/latest/Google-Cloud-Filestore-V1-Backup \"Google::Cloud::Filestore::V1::Backup (class)\")\n\n### #backup=\n\n def backup=(value) -\u003e ::Google::Cloud::Filestore::V1::Backup\n\n**Parameter**\n\n- **value** ([::Google::Cloud::Filestore::V1::Backup](./Google-Cloud-Filestore-V1-Backup)) --- Required. A [backup resource](/ruby/docs/reference/google-cloud-filestore-v1/latest/Google-Cloud-Filestore-V1-Backup \"Google::Cloud::Filestore::V1::Backup (class)\") \n**Returns**\n\n- ([::Google::Cloud::Filestore::V1::Backup](./Google-Cloud-Filestore-V1-Backup)) --- Required. A [backup resource](/ruby/docs/reference/google-cloud-filestore-v1/latest/Google-Cloud-Filestore-V1-Backup \"Google::Cloud::Filestore::V1::Backup (class)\")\n\n### #backup_id\n\n def backup_id() -\u003e ::String\n\n**Returns**\n\n- (::String) --- Required. The ID to use for the backup. The ID must be unique within the specified project and location.\n\n This value must start with a lowercase letter followed by up to 62\n lowercase letters, numbers, or hyphens, and cannot end with a hyphen.\n Values that do not match this pattern will trigger an INVALID_ARGUMENT\n error.\n\n### #backup_id=\n\n def backup_id=(value) -\u003e ::String\n\n**Parameter**\n\n- **value** (::String) --- Required. The ID to use for the backup. The ID must be unique within the specified project and location.\n\n\n This value must start with a lowercase letter followed by up to 62\n lowercase letters, numbers, or hyphens, and cannot end with a hyphen.\n Values that do not match this pattern will trigger an INVALID_ARGUMENT\nerror. \n**Returns**\n\n- (::String) --- Required. The ID to use for the backup. The ID must be unique within the specified project and location.\n\n This value must start with a lowercase letter followed by up to 62\n lowercase letters, numbers, or hyphens, and cannot end with a hyphen.\n Values that do not match this pattern will trigger an INVALID_ARGUMENT\n error.\n\n### #parent\n\n def parent() -\u003e ::String\n\n**Returns**\n\n- (::String) --- Required. The backup's project and location, in the format `projects/{project_number}/locations/{location}`. In Filestore, backup locations map to Google Cloud regions, for example **us-west1**.\n\n### #parent=\n\n def parent=(value) -\u003e ::String\n\n**Parameter**\n\n- **value** (::String) --- Required. The backup's project and location, in the format `projects/{project_number}/locations/{location}`. In Filestore, backup locations map to Google Cloud regions, for example **us-west1**. \n**Returns**\n\n- (::String) --- Required. The backup's project and location, in the format `projects/{project_number}/locations/{location}`. In Filestore, backup locations map to Google Cloud regions, for example **us-west1**."]]