Class: Google::Apis::DatacatalogV1beta1::GoogleCloudDatacatalogV1StorageProperties
- Inherits:
-
Object
- Object
- Google::Apis::DatacatalogV1beta1::GoogleCloudDatacatalogV1StorageProperties
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/datacatalog_v1beta1/classes.rb,
lib/google/apis/datacatalog_v1beta1/representations.rb,
lib/google/apis/datacatalog_v1beta1/representations.rb
Overview
Details the properties of the underlying storage.
Instance Attribute Summary collapse
-
#file_pattern ⇒ Array<String>
Patterns to identify a set of files for this fileset.
-
#file_type ⇒ String
File type in MIME format, for example,
text/plain
.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleCloudDatacatalogV1StorageProperties
constructor
A new instance of GoogleCloudDatacatalogV1StorageProperties.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleCloudDatacatalogV1StorageProperties
Returns a new instance of GoogleCloudDatacatalogV1StorageProperties.
1908 1909 1910 |
# File 'lib/google/apis/datacatalog_v1beta1/classes.rb', line 1908 def initialize(**args) update!(**args) end |
Instance Attribute Details
#file_pattern ⇒ Array<String>
Patterns to identify a set of files for this fileset. Examples of a valid
file_pattern
: * gs://bucket_name/dir/*
: matches all files in the
bucket_name/dir
directory * gs://bucket_name/dir/**
: matches all files in
the bucket_name/dir
and all subdirectories recursively * 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 the a/*/b
pattern, such as a/c/b
, a/d/b
* gs://
another_bucket/a.txt
: matches gs://another_bucket/a.txt
Corresponds to the JSON property filePattern
1901 1902 1903 |
# File 'lib/google/apis/datacatalog_v1beta1/classes.rb', line 1901 def file_pattern @file_pattern end |
#file_type ⇒ String
File type in MIME format, for example, text/plain
.
Corresponds to the JSON property fileType
1906 1907 1908 |
# File 'lib/google/apis/datacatalog_v1beta1/classes.rb', line 1906 def file_type @file_type end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1913 1914 1915 1916 |
# File 'lib/google/apis/datacatalog_v1beta1/classes.rb', line 1913 def update!(**args) @file_pattern = args[:file_pattern] if args.key?(:file_pattern) @file_type = args[:file_type] if args.key?(:file_type) end |