value (::Google::Protobuf::Map{::String => ::String}) — Resource labels to represent user provided metadata.
Returns
(::Google::Protobuf::Map{::String => ::String}) — Resource labels to represent user provided metadata.
#name
defname()->::String
Returns
(::String) — Output only. The resource name of the snapshot, in the format
projects/{project_id}/locations/{location_id}/instances/{instance_id}/snapshots/{snapshot_id}.
Optional. Input only. Immutable. Tag key-value pairs bound to this
resource. Each key must be a namespaced name and each value a short name.
Example:
"123456789012/environment" : "production",
"123456789013/costCenter" : "marketing"
See the documentation for more information:
value (::Google::Protobuf::Map{::String => ::String}) —
Optional. Input only. Immutable. Tag key-value pairs bound to this
resource. Each key must be a namespaced name and each value a short name.
Example:
"123456789012/environment" : "production",
"123456789013/costCenter" : "marketing"
See the documentation for more information:
Short name:
https://cloud.google.com/resource-manager/docs/tags/tags-creating-and-managing#retrieving_tag_value
Returns
(::Google::Protobuf::Map{::String => ::String}) —
Optional. Input only. Immutable. Tag key-value pairs bound to this
resource. Each key must be a namespaced name and each value a short name.
Example:
"123456789012/environment" : "production",
"123456789013/costCenter" : "marketing"
See the documentation for more information:
[[["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::Snapshot (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-Snapshot)\n- [2.1.1](/ruby/docs/reference/google-cloud-filestore-v1/2.1.1/Google-Cloud-Filestore-V1-Snapshot)\n- [2.0.0](/ruby/docs/reference/google-cloud-filestore-v1/2.0.0/Google-Cloud-Filestore-V1-Snapshot)\n- [1.2.0](/ruby/docs/reference/google-cloud-filestore-v1/1.2.0/Google-Cloud-Filestore-V1-Snapshot)\n- [1.1.0](/ruby/docs/reference/google-cloud-filestore-v1/1.1.0/Google-Cloud-Filestore-V1-Snapshot)\n- [1.0.1](/ruby/docs/reference/google-cloud-filestore-v1/1.0.1/Google-Cloud-Filestore-V1-Snapshot)\n- [0.9.0](/ruby/docs/reference/google-cloud-filestore-v1/0.9.0/Google-Cloud-Filestore-V1-Snapshot)\n- [0.8.2](/ruby/docs/reference/google-cloud-filestore-v1/0.8.2/Google-Cloud-Filestore-V1-Snapshot)\n- [0.7.0](/ruby/docs/reference/google-cloud-filestore-v1/0.7.0/Google-Cloud-Filestore-V1-Snapshot)\n- [0.6.0](/ruby/docs/reference/google-cloud-filestore-v1/0.6.0/Google-Cloud-Filestore-V1-Snapshot)\n- [0.5.0](/ruby/docs/reference/google-cloud-filestore-v1/0.5.0/Google-Cloud-Filestore-V1-Snapshot)\n- [0.4.1](/ruby/docs/reference/google-cloud-filestore-v1/0.4.1/Google-Cloud-Filestore-V1-Snapshot)\n- [0.3.0](/ruby/docs/reference/google-cloud-filestore-v1/0.3.0/Google-Cloud-Filestore-V1-Snapshot)\n- [0.2.0](/ruby/docs/reference/google-cloud-filestore-v1/0.2.0/Google-Cloud-Filestore-V1-Snapshot)\n- [0.1.3](/ruby/docs/reference/google-cloud-filestore-v1/0.1.3/Google-Cloud-Filestore-V1-Snapshot) \nReference documentation and code samples for the Filestore V1 API class Google::Cloud::Filestore::V1::Snapshot.\n\nA Filestore snapshot. \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### #create_time\n\n def create_time() -\u003e ::Google::Protobuf::Timestamp\n\n**Returns**\n\n- ([::Google::Protobuf::Timestamp](./Google-Protobuf-Timestamp)) --- Output only. The time when the snapshot was created.\n\n### #description\n\n def description() -\u003e ::String\n\n**Returns**\n\n- (::String) --- A description of the snapshot with 2048 characters or less. Requests with longer descriptions will be rejected.\n\n### #description=\n\n def description=(value) -\u003e ::String\n\n**Parameter**\n\n- **value** (::String) --- A description of the snapshot with 2048 characters or less. Requests with longer descriptions will be rejected. \n**Returns**\n\n- (::String) --- A description of the snapshot with 2048 characters or less. Requests with longer descriptions will be rejected.\n\n### #filesystem_used_bytes\n\n def filesystem_used_bytes() -\u003e ::Integer\n\n**Returns**\n\n- (::Integer) --- Output only. The amount of bytes needed to allocate a full copy of the snapshot content\n\n### #labels\n\n def labels() -\u003e ::Google::Protobuf::Map{::String =\u003e ::String}\n\n**Returns**\n\n- (::Google::Protobuf::Map{::String =\\\u003e ::String}) --- Resource labels to represent user provided metadata.\n\n### #labels=\n\n def labels=(value) -\u003e ::Google::Protobuf::Map{::String =\u003e ::String}\n\n**Parameter**\n\n- **value** (::Google::Protobuf::Map{::String =\\\u003e ::String}) --- Resource labels to represent user provided metadata. \n**Returns**\n\n- (::Google::Protobuf::Map{::String =\\\u003e ::String}) --- Resource labels to represent user provided metadata.\n\n### #name\n\n def name() -\u003e ::String\n\n**Returns**\n\n- (::String) --- Output only. The resource name of the snapshot, in the format `projects/{project_id}/locations/{location_id}/instances/{instance_id}/snapshots/{snapshot_id}`.\n\n### #state\n\n def state() -\u003e ::Google::Cloud::Filestore::V1::Snapshot::State\n\n**Returns**\n\n- ([::Google::Cloud::Filestore::V1::Snapshot::State](./Google-Cloud-Filestore-V1-Snapshot-State)) --- Output only. The snapshot state.\n\n### #tags\n\n def tags() -\u003e ::Google::Protobuf::Map{::String =\u003e ::String}\n\n**Returns**\n\n- (::Google::Protobuf::Map{::String =\\\u003e ::String}) --- Optional. Input only. Immutable. Tag key-value pairs bound to this\n resource. Each key must be a namespaced name and each value a short name.\n Example:\n \"123456789012/environment\" : \"production\",\n \"123456789013/costCenter\" : \"marketing\"\n See the documentation for more information:\n\n - Namespaced name: https://cloud.google.com/resource-manager/docs/tags/tags-creating-and-managing#retrieving_tag_key\n - Short name: https://cloud.google.com/resource-manager/docs/tags/tags-creating-and-managing#retrieving_tag_value\n\n### #tags=\n\n def tags=(value) -\u003e ::Google::Protobuf::Map{::String =\u003e ::String}\n\n**Parameter**\n\n- **value** (::Google::Protobuf::Map{::String =\\\u003e ::String}) ---\n\n Optional. Input only. Immutable. Tag key-value pairs bound to this\n resource. Each key must be a namespaced name and each value a short name.\n Example:\n \"123456789012/environment\" : \"production\",\n \"123456789013/costCenter\" : \"marketing\"\n See the documentation for more information:\n - Namespaced name: https://cloud.google.com/resource-manager/docs/tags/tags-creating-and-managing#retrieving_tag_key\n- Short name: https://cloud.google.com/resource-manager/docs/tags/tags-creating-and-managing#retrieving_tag_value \n**Returns**\n\n- (::Google::Protobuf::Map{::String =\\\u003e ::String}) --- Optional. Input only. Immutable. Tag key-value pairs bound to this\n resource. Each key must be a namespaced name and each value a short name.\n Example:\n \"123456789012/environment\" : \"production\",\n \"123456789013/costCenter\" : \"marketing\"\n See the documentation for more information:\n\n - Namespaced name: https://cloud.google.com/resource-manager/docs/tags/tags-creating-and-managing#retrieving_tag_key\n - Short name: https://cloud.google.com/resource-manager/docs/tags/tags-creating-and-managing#retrieving_tag_value"]]