Reference documentation and code samples for the Google Cloud Filestore V1 Client class CreateSnapshotRequest.
CreateSnapshotRequest creates a snapshot.
Generated from protobuf messagegoogle.cloud.filestore.v1.CreateSnapshotRequest
Namespace
Google \ Cloud \ Filestore \ V1
Methods
__construct
Constructor.
Parameters
Name
Description
data
array
Optional. Data for populating the Message object.
↳ parent
string
Required. The Filestore Instance to create the snapshots of, in the formatprojects/{project_id}/locations/{location}/instances/{instance_id}
↳ snapshot_id
string
Required. The ID to use for the snapshot. The ID must be unique within the specified instance. This value must start with a lowercase letter followed by up to 62 lowercase letters, numbers, or hyphens, and cannot end with a hyphen.
Required. The Filestore Instance to create the snapshots of, in the formatprojects/{project_id}/locations/{location}/instances/{instance_id}
Returns
Type
Description
string
setParent
Required. The Filestore Instance to create the snapshots of, in the formatprojects/{project_id}/locations/{location}/instances/{instance_id}
Parameter
Name
Description
var
string
Returns
Type
Description
$this
getSnapshotId
Required. The ID to use for the snapshot.
The ID must be unique within the specified instance.
This value must start with a lowercase letter followed by up to 62
lowercase letters, numbers, or hyphens, and cannot end with a hyphen.
Returns
Type
Description
string
setSnapshotId
Required. The ID to use for the snapshot.
The ID must be unique within the specified instance.
This value must start with a lowercase letter followed by up to 62
lowercase letters, numbers, or hyphens, and cannot end with a hyphen.
Required. The Filestore Instance to create the snapshots of, in the formatprojects/{project_id}/locations/{location}/instances/{instance_id}Please seeCloudFilestoreManagerClient::instanceName()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 Filestore V1 Client - Class CreateSnapshotRequest (2.1.1)\n\nVersion latestkeyboard_arrow_down\n\n- [2.1.1 (latest)](/php/docs/reference/cloud-filestore/latest/V1.CreateSnapshotRequest)\n- [2.1.0](/php/docs/reference/cloud-filestore/2.1.0/V1.CreateSnapshotRequest)\n- [2.0.4](/php/docs/reference/cloud-filestore/2.0.4/V1.CreateSnapshotRequest)\n- [1.5.7](/php/docs/reference/cloud-filestore/1.5.7/V1.CreateSnapshotRequest)\n- [1.4.0](/php/docs/reference/cloud-filestore/1.4.0/V1.CreateSnapshotRequest)\n- [1.3.2](/php/docs/reference/cloud-filestore/1.3.2/V1.CreateSnapshotRequest)\n- [1.2.1](/php/docs/reference/cloud-filestore/1.2.1/V1.CreateSnapshotRequest)\n- [1.1.2](/php/docs/reference/cloud-filestore/1.1.2/V1.CreateSnapshotRequest)\n- [1.0.3](/php/docs/reference/cloud-filestore/1.0.3/V1.CreateSnapshotRequest) \nReference documentation and code samples for the Google Cloud Filestore V1 Client class CreateSnapshotRequest.\n\nCreateSnapshotRequest creates a snapshot.\n\nGenerated from protobuf message `google.cloud.filestore.v1.CreateSnapshotRequest`\n\nNamespace\n---------\n\nGoogle \\\\ Cloud \\\\ Filestore \\\\ V1\n\nMethods\n-------\n\n### __construct\n\nConstructor.\n\n### getParent\n\nRequired. The Filestore Instance to create the snapshots of, in the format\n`projects/{project_id}/locations/{location}/instances/{instance_id}`\n\n### setParent\n\nRequired. The Filestore Instance to create the snapshots of, in the format\n`projects/{project_id}/locations/{location}/instances/{instance_id}`\n\n### getSnapshotId\n\nRequired. The ID to use for the snapshot.\n\nThe ID must be unique within the specified instance.\nThis value must start with a lowercase letter followed by up to 62\nlowercase letters, numbers, or hyphens, and cannot end with a hyphen.\n\n### setSnapshotId\n\nRequired. The ID to use for the snapshot.\n\nThe ID must be unique within the specified instance.\nThis value must start with a lowercase letter followed by up to 62\nlowercase letters, numbers, or hyphens, and cannot end with a hyphen.\n\n### getSnapshot\n\nRequired. A snapshot resource.\n\n### hasSnapshot\n\n### clearSnapshot\n\n### setSnapshot\n\nRequired. A snapshot resource.\n\n### static::build"]]