Class: Google::Apis::DatacatalogV1::GoogleCloudDatacatalogV1StorageProperties
- Inherits:
-
Object
- Object
- Google::Apis::DatacatalogV1::GoogleCloudDatacatalogV1StorageProperties
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/datacatalog_v1/classes.rb,
lib/google/apis/datacatalog_v1/representations.rb,
lib/google/apis/datacatalog_v1/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.
2926 2927 2928 |
# File 'lib/google/apis/datacatalog_v1/classes.rb', line 2926 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
2919 2920 2921 |
# File 'lib/google/apis/datacatalog_v1/classes.rb', line 2919 def file_pattern @file_pattern end |
#file_type ⇒ String
File type in MIME format, for example, text/plain
.
Corresponds to the JSON property fileType
2924 2925 2926 |
# File 'lib/google/apis/datacatalog_v1/classes.rb', line 2924 def file_type @file_type end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
2931 2932 2933 2934 |
# File 'lib/google/apis/datacatalog_v1/classes.rb', line 2931 def update!(**args) @file_pattern = args[:file_pattern] if args.key?(:file_pattern) @file_type = args[:file_type] if args.key?(:file_type) end |