Reference documentation and code samples for the Google Cloud Data Catalog V1BETA1 API class Google::Cloud::DataCatalog::V1beta1::GcsFilesetSpec.
Describes a Cloud Storage fileset entry.
Inherits
Object
Extended By
Google::Protobuf::MessageExts::ClassMethods
Includes
Google::Protobuf::MessageExts
Methods
#file_patterns
deffile_patterns()->::Array<::String>
Returns
(::Array<::String>) —
Required. Patterns to identify a set of files in Google Cloud Storage.
See Cloud Storage
documentation
for more information. Note that bucket wildcards are currently not
supported.
Examples of valid file_patterns:
gs://bucket_name/dir/*: matches all files within bucket_name/dir
directory.
gs://bucket_name/dir/**: matches all files in bucket_name/dir
spanning all subdirectories.
gs://bucket_name/file*: matches files prefixed by file in
bucket_name
gs://bucket_name/??.txt: matches files with two characters followed by
.txt in bucket_name
gs://bucket_name/[aeiou].txt: matches files that contain a single
vowel character followed by .txt in
bucket_name
gs://bucket_name/[a-m].txt: matches files that contain a, b, ...
or m followed by .txt in bucket_name
gs://bucket_name/a/*/b: matches all files in bucket_name that match
a/*/b pattern, such as a/c/b, a/d/b
You can combine wildcards to provide more powerful matches, for example:
gs://bucket_name/[a-m]??.j*g
#file_patterns=
deffile_patterns=(value)->::Array<::String>
Parameter
value (::Array<::String>) —
Required. Patterns to identify a set of files in Google Cloud Storage.
See Cloud Storage
documentation
for more information. Note that bucket wildcards are currently not
supported.
Examples of valid file_patterns:
gs://bucket_name/dir/*: matches all files within bucket_name/dir
directory.
gs://bucket_name/dir/**: matches all files in bucket_name/dir
spanning all subdirectories.
gs://bucket_name/file*: matches files prefixed by file in
bucket_name
gs://bucket_name/??.txt: matches files with two characters followed by
.txt in bucket_name
gs://bucket_name/[aeiou].txt: matches files that contain a single
vowel character followed by .txt in
bucket_name
gs://bucket_name/[a-m].txt: matches files that contain a, b, ...
or m followed by .txt in bucket_name
gs://bucket_name/a/*/b: matches all files in bucket_name that match
a/*/b pattern, such as a/c/b, a/d/b
You can combine wildcards to provide more powerful matches, for example:
gs://bucket_name/[a-m]??.j*g
Returns
(::Array<::String>) —
Required. Patterns to identify a set of files in Google Cloud Storage.
See Cloud Storage
documentation
for more information. Note that bucket wildcards are currently not
supported.
Examples of valid file_patterns:
gs://bucket_name/dir/*: matches all files within bucket_name/dir
directory.
gs://bucket_name/dir/**: matches all files in bucket_name/dir
spanning all subdirectories.
gs://bucket_name/file*: matches files prefixed by file in
bucket_name
gs://bucket_name/??.txt: matches files with two characters followed by
.txt in bucket_name
gs://bucket_name/[aeiou].txt: matches files that contain a single
vowel character followed by .txt in
bucket_name
gs://bucket_name/[a-m].txt: matches files that contain a, b, ...
or m followed by .txt in bucket_name
gs://bucket_name/a/*/b: matches all files in bucket_name that match
a/*/b pattern, such as a/c/b, a/d/b
[[["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,["# Google Cloud Data Catalog V1BETA1 API - Class Google::Cloud::DataCatalog::V1beta1::GcsFilesetSpec (v0.9.1)\n\nVersion latestkeyboard_arrow_down\n\n- [0.9.1 (latest)](/ruby/docs/reference/google-cloud-data_catalog-v1beta1/latest/Google-Cloud-DataCatalog-V1beta1-GcsFilesetSpec)\n- [0.9.0](/ruby/docs/reference/google-cloud-data_catalog-v1beta1/0.9.0/Google-Cloud-DataCatalog-V1beta1-GcsFilesetSpec)\n- [0.8.4](/ruby/docs/reference/google-cloud-data_catalog-v1beta1/0.8.4/Google-Cloud-DataCatalog-V1beta1-GcsFilesetSpec)\n- [0.7.0](/ruby/docs/reference/google-cloud-data_catalog-v1beta1/0.7.0/Google-Cloud-DataCatalog-V1beta1-GcsFilesetSpec)\n- [0.6.0](/ruby/docs/reference/google-cloud-data_catalog-v1beta1/0.6.0/Google-Cloud-DataCatalog-V1beta1-GcsFilesetSpec)\n- [0.5.2](/ruby/docs/reference/google-cloud-data_catalog-v1beta1/0.5.2/Google-Cloud-DataCatalog-V1beta1-GcsFilesetSpec)\n- [0.4.0](/ruby/docs/reference/google-cloud-data_catalog-v1beta1/0.4.0/Google-Cloud-DataCatalog-V1beta1-GcsFilesetSpec)\n- [0.3.2](/ruby/docs/reference/google-cloud-data_catalog-v1beta1/0.3.2/Google-Cloud-DataCatalog-V1beta1-GcsFilesetSpec)\n- [0.2.1](/ruby/docs/reference/google-cloud-data_catalog-v1beta1/0.2.1/Google-Cloud-DataCatalog-V1beta1-GcsFilesetSpec)\n- [0.1.1](/ruby/docs/reference/google-cloud-data_catalog-v1beta1/0.1.1/Google-Cloud-DataCatalog-V1beta1-GcsFilesetSpec) \nReference documentation and code samples for the Google Cloud Data Catalog V1BETA1 API class Google::Cloud::DataCatalog::V1beta1::GcsFilesetSpec.\n\nDescribes a Cloud Storage fileset entry. \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### #file_patterns\n\n def file_patterns() -\u003e ::Array\u003c::String\u003e\n\n**Returns**\n\n- (::Array\\\u003c::String\\\u003e) --- Required. Patterns to identify a set of files in Google Cloud Storage.\n See [Cloud Storage\n documentation](https://cloud.google.com/storage/docs/wildcards)\n for more information. Note that bucket wildcards are currently not\n supported.\n\n Examples of valid file_patterns:\n - `gs://bucket_name/dir/*`: matches all files within `bucket_name/dir` directory.\n - `gs://bucket_name/dir/**`: matches all files in `bucket_name/dir` spanning all subdirectories.\n - `gs://bucket_name/file*`: matches files prefixed by `file` in `bucket_name`\n - `gs://bucket_name/??.txt`: matches files with two characters followed by `.txt` in `bucket_name`\n - `gs://bucket_name/[aeiou].txt`: matches files that contain a single vowel character followed by `.txt` in `bucket_name`\n - `gs://bucket_name/[a-m].txt`: matches files that contain `a`, `b`, ... or `m` followed by `.txt` in `bucket_name`\n - `gs://bucket_name/a/*/b`: matches all files in `bucket_name` that match `a/*/b` pattern, such as `a/c/b`, `a/d/b`\n - `gs://another_bucket/a.txt`: matches `gs://another_bucket/a.txt`\n\n You can combine wildcards to provide more powerful matches, for example:\n - `gs://bucket_name/[a-m]??.j*g`\n\n### #file_patterns=\n\n def file_patterns=(value) -\u003e ::Array\u003c::String\u003e\n\n**Parameter**\n\n- **value** (::Array\\\u003c::String\\\u003e) ---\n\n Required. Patterns to identify a set of files in Google Cloud Storage.\n See [Cloud Storage\n documentation](https://cloud.google.com/storage/docs/wildcards)\n for more information. Note that bucket wildcards are currently not\n supported.\n\n Examples of valid file_patterns:\n - `gs://bucket_name/dir/*`: matches all files within `bucket_name/dir` directory.\n - `gs://bucket_name/dir/**`: matches all files in `bucket_name/dir` spanning all subdirectories.\n - `gs://bucket_name/file*`: matches files prefixed by `file` in `bucket_name`\n - `gs://bucket_name/??.txt`: matches files with two characters followed by `.txt` in `bucket_name`\n - `gs://bucket_name/[aeiou].txt`: matches files that contain a single vowel character followed by `.txt` in `bucket_name`\n - `gs://bucket_name/[a-m].txt`: matches files that contain `a`, `b`, ... or `m` followed by `.txt` in `bucket_name`\n - `gs://bucket_name/a/*/b`: matches all files in `bucket_name` that match `a/*/b` pattern, such as `a/c/b`, `a/d/b`\n - `gs://another_bucket/a.txt`: matches `gs://another_bucket/a.txt`\n\n You can combine wildcards to provide more powerful matches, for example:\n- `gs://bucket_name/[a-m]??.j*g` \n**Returns**\n\n- (::Array\\\u003c::String\\\u003e) --- Required. Patterns to identify a set of files in Google Cloud Storage.\n See [Cloud Storage\n documentation](https://cloud.google.com/storage/docs/wildcards)\n for more information. Note that bucket wildcards are currently not\n supported.\n\n Examples of valid file_patterns:\n - `gs://bucket_name/dir/*`: matches all files within `bucket_name/dir` directory.\n - `gs://bucket_name/dir/**`: matches all files in `bucket_name/dir` spanning all subdirectories.\n - `gs://bucket_name/file*`: matches files prefixed by `file` in `bucket_name`\n - `gs://bucket_name/??.txt`: matches files with two characters followed by `.txt` in `bucket_name`\n - `gs://bucket_name/[aeiou].txt`: matches files that contain a single vowel character followed by `.txt` in `bucket_name`\n - `gs://bucket_name/[a-m].txt`: matches files that contain `a`, `b`, ... or `m` followed by `.txt` in `bucket_name`\n - `gs://bucket_name/a/*/b`: matches all files in `bucket_name` that match `a/*/b` pattern, such as `a/c/b`, `a/d/b`\n - `gs://another_bucket/a.txt`: matches `gs://another_bucket/a.txt`\n\n You can combine wildcards to provide more powerful matches, for example:\n - `gs://bucket_name/[a-m]??.j*g`\n\n### #sample_gcs_file_specs\n\n def sample_gcs_file_specs() -\u003e ::Array\u003c::Google::Cloud::DataCatalog::V1beta1::GcsFileSpec\u003e\n\n**Returns**\n\n- (::Array\\\u003c[::Google::Cloud::DataCatalog::V1beta1::GcsFileSpec](./Google-Cloud-DataCatalog-V1beta1-GcsFileSpec)\\\u003e) --- Output only. Sample files contained in this fileset, not all files contained in this fileset are represented here."]]