Reference documentation and code samples for the Cloud Asset V1 API class Google::Cloud::Asset::V1::GcsDestination.
A Cloud Storage location.
Inherits
Object
Extended By
Google::Protobuf::MessageExts::ClassMethods
Includes
Google::Protobuf::MessageExts
Methods
#uri
defuri()->::String
Returns
(::String) — The URI of the Cloud Storage object. It's the same URI that is used by
gsutil. Example: "gs://bucket_name/object_name". See Viewing and
Editing Object
Metadata
for more information.
If the specified Cloud Storage object already exists and there is no
hold, it will be
overwritten with the exported result.
Note: The following fields are mutually exclusive: uri, uri_prefix. If a field in that set is populated, all other fields in the set will automatically be cleared.
#uri=
defuri=(value)->::String
Parameter
value (::String) — The URI of the Cloud Storage object. It's the same URI that is used by
gsutil. Example: "gs://bucket_name/object_name". See Viewing and
Editing Object
Metadata
for more information.
If the specified Cloud Storage object already exists and there is no
hold, it will be
overwritten with the exported result.
Note: The following fields are mutually exclusive: uri, uri_prefix. If a field in that set is populated, all other fields in the set will automatically be cleared.
Returns
(::String) — The URI of the Cloud Storage object. It's the same URI that is used by
gsutil. Example: "gs://bucket_name/object_name". See Viewing and
Editing Object
Metadata
for more information.
If the specified Cloud Storage object already exists and there is no
hold, it will be
overwritten with the exported result.
Note: The following fields are mutually exclusive: uri, uri_prefix. If a field in that set is populated, all other fields in the set will automatically be cleared.
#uri_prefix
defuri_prefix()->::String
Returns
(::String) — The URI prefix of all generated Cloud Storage objects. Example:
"gs://bucket_name/object_name_prefix". Each object URI is in format:
"gs://bucket_name/object_name_prefix/
#uri_prefix=
defuri_prefix=(value)->::String
Parameter
value (::String) — The URI prefix of all generated Cloud Storage objects. Example:
"gs://bucket_name/object_name_prefix". Each object URI is in format:
"gs://bucket_name/object_name_prefix/
Returns
(::String) — The URI prefix of all generated Cloud Storage objects. Example:
"gs://bucket_name/object_name_prefix". Each object URI is in format:
"gs://bucket_name/object_name_prefix/
[[["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,["# Cloud Asset V1 API - Class Google::Cloud::Asset::V1::GcsDestination (v1.4.1)\n\nVersion latestkeyboard_arrow_down\n\n- [1.4.1 (latest)](/ruby/docs/reference/google-cloud-asset-v1/latest/Google-Cloud-Asset-V1-GcsDestination)\n- [1.4.0](/ruby/docs/reference/google-cloud-asset-v1/1.4.0/Google-Cloud-Asset-V1-GcsDestination)\n- [1.3.1](/ruby/docs/reference/google-cloud-asset-v1/1.3.1/Google-Cloud-Asset-V1-GcsDestination)\n- [1.2.0](/ruby/docs/reference/google-cloud-asset-v1/1.2.0/Google-Cloud-Asset-V1-GcsDestination)\n- [1.1.0](/ruby/docs/reference/google-cloud-asset-v1/1.1.0/Google-Cloud-Asset-V1-GcsDestination)\n- [1.0.2](/ruby/docs/reference/google-cloud-asset-v1/1.0.2/Google-Cloud-Asset-V1-GcsDestination)\n- [0.32.0](/ruby/docs/reference/google-cloud-asset-v1/0.32.0/Google-Cloud-Asset-V1-GcsDestination)\n- [0.31.0](/ruby/docs/reference/google-cloud-asset-v1/0.31.0/Google-Cloud-Asset-V1-GcsDestination)\n- [0.30.0](/ruby/docs/reference/google-cloud-asset-v1/0.30.0/Google-Cloud-Asset-V1-GcsDestination)\n- [0.29.3](/ruby/docs/reference/google-cloud-asset-v1/0.29.3/Google-Cloud-Asset-V1-GcsDestination)\n- [0.28.1](/ruby/docs/reference/google-cloud-asset-v1/0.28.1/Google-Cloud-Asset-V1-GcsDestination)\n- [0.27.0](/ruby/docs/reference/google-cloud-asset-v1/0.27.0/Google-Cloud-Asset-V1-GcsDestination)\n- [0.26.1](/ruby/docs/reference/google-cloud-asset-v1/0.26.1/Google-Cloud-Asset-V1-GcsDestination)\n- [0.25.0](/ruby/docs/reference/google-cloud-asset-v1/0.25.0/Google-Cloud-Asset-V1-GcsDestination)\n- [0.24.0](/ruby/docs/reference/google-cloud-asset-v1/0.24.0/Google-Cloud-Asset-V1-GcsDestination)\n- [0.23.0](/ruby/docs/reference/google-cloud-asset-v1/0.23.0/Google-Cloud-Asset-V1-GcsDestination)\n- [0.22.0](/ruby/docs/reference/google-cloud-asset-v1/0.22.0/Google-Cloud-Asset-V1-GcsDestination)\n- [0.21.1](/ruby/docs/reference/google-cloud-asset-v1/0.21.1/Google-Cloud-Asset-V1-GcsDestination)\n- [0.20.1](/ruby/docs/reference/google-cloud-asset-v1/0.20.1/Google-Cloud-Asset-V1-GcsDestination)\n- [0.19.0](/ruby/docs/reference/google-cloud-asset-v1/0.19.0/Google-Cloud-Asset-V1-GcsDestination)\n- [0.18.0](/ruby/docs/reference/google-cloud-asset-v1/0.18.0/Google-Cloud-Asset-V1-GcsDestination)\n- [0.17.3](/ruby/docs/reference/google-cloud-asset-v1/0.17.3/Google-Cloud-Asset-V1-GcsDestination) \nReference documentation and code samples for the Cloud Asset V1 API class Google::Cloud::Asset::V1::GcsDestination.\n\nA Cloud Storage location. \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### #uri\n\n def uri() -\u003e ::String\n\n**Returns**\n\n- (::String) --- The URI of the Cloud Storage object. It's the same URI that is used by gsutil. Example: \"gs://bucket_name/object_name\". See [Viewing and\n Editing Object\n Metadata](https://cloud.google.com/storage/docs/viewing-editing-metadata) for more information.\n\n\n If the specified Cloud Storage object already exists and there is no\n [hold](https://cloud.google.com/storage/docs/object-holds), it will be\n overwritten with the exported result.\n\n Note: The following fields are mutually exclusive: `uri`, `uri_prefix`. If a field in that set is populated, all other fields in the set will automatically be cleared.\n\n### #uri=\n\n def uri=(value) -\u003e ::String\n\n**Parameter**\n\n- **value** (::String) --- The URI of the Cloud Storage object. It's the same URI that is used by gsutil. Example: \"gs://bucket_name/object_name\". See [Viewing and\n Editing Object\n Metadata](https://cloud.google.com/storage/docs/viewing-editing-metadata) for more information.\n\n\n If the specified Cloud Storage object already exists and there is no\n [hold](https://cloud.google.com/storage/docs/object-holds), it will be\n overwritten with the exported result.\n\nNote: The following fields are mutually exclusive: `uri`, `uri_prefix`. If a field in that set is populated, all other fields in the set will automatically be cleared. \n**Returns**\n\n- (::String) --- The URI of the Cloud Storage object. It's the same URI that is used by gsutil. Example: \"gs://bucket_name/object_name\". See [Viewing and\n Editing Object\n Metadata](https://cloud.google.com/storage/docs/viewing-editing-metadata) for more information.\n\n\n If the specified Cloud Storage object already exists and there is no\n [hold](https://cloud.google.com/storage/docs/object-holds), it will be\n overwritten with the exported result.\n\n Note: The following fields are mutually exclusive: `uri`, `uri_prefix`. If a field in that set is populated, all other fields in the set will automatically be cleared.\n\n### #uri_prefix\n\n def uri_prefix() -\u003e ::String\n\n**Returns**\n\n- (::String) --- The URI prefix of all generated Cloud Storage objects. Example: \"gs://bucket_name/object_name_prefix\". Each object URI is in format: \"gs://bucket_name/object_name_prefix/\n\n### #uri_prefix=\n\n def uri_prefix=(value) -\u003e ::String\n\n**Parameter**\n\n- **value** (::String) --- The URI prefix of all generated Cloud Storage objects. Example: \"gs://bucket_name/object_name_prefix\". Each object URI is in format: \"gs://bucket_name/object_name_prefix/ \n**Returns**\n\n- (::String) --- The URI prefix of all generated Cloud Storage objects. Example: \"gs://bucket_name/object_name_prefix\". Each object URI is in format: \"gs://bucket_name/object_name_prefix/"]]