Class: Google::Apis::DatacatalogV1::GoogleCloudDatacatalogV1BigQueryDateShardedSpec
- Inherits:
-
Object
- Object
- Google::Apis::DatacatalogV1::GoogleCloudDatacatalogV1BigQueryDateShardedSpec
- 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
Specification for a group of BigQuery tables with the [prefix]YYYYMMDD name
pattern. For more information, see Introduction to partitioned tables.
Instance Attribute Summary collapse
-
#dataset ⇒ String
Output only.
-
#shard_count ⇒ Fixnum
Output only.
-
#table_prefix ⇒ String
Output only.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleCloudDatacatalogV1BigQueryDateShardedSpec
constructor
A new instance of GoogleCloudDatacatalogV1BigQueryDateShardedSpec.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleCloudDatacatalogV1BigQueryDateShardedSpec
Returns a new instance of GoogleCloudDatacatalogV1BigQueryDateShardedSpec.
237 238 239 |
# File 'lib/google/apis/datacatalog_v1/classes.rb', line 237 def initialize(**args) update!(**args) end |
Instance Attribute Details
#dataset ⇒ String
Output only. The Data Catalog resource name of the dataset entry the current
table belongs to. For example: projects/PROJECT_ID/locations/LOCATION/
entrygroups/ENTRY_GROUP_ID/entries/ENTRY_ID`.
Corresponds to the JSON propertydataset`
223 224 225 |
# File 'lib/google/apis/datacatalog_v1/classes.rb', line 223 def dataset @dataset end |
#shard_count ⇒ Fixnum
Output only. Total number of shards.
Corresponds to the JSON property shardCount
228 229 230 |
# File 'lib/google/apis/datacatalog_v1/classes.rb', line 228 def shard_count @shard_count end |
#table_prefix ⇒ String
Output only. The table name prefix of the shards. The name of any given shard
is [table_prefix]YYYYMMDD. For example, for the MyTable20180101 shard, the
table_prefix is MyTable.
Corresponds to the JSON property tablePrefix
235 236 237 |
# File 'lib/google/apis/datacatalog_v1/classes.rb', line 235 def table_prefix @table_prefix end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
242 243 244 245 246 |
# File 'lib/google/apis/datacatalog_v1/classes.rb', line 242 def update!(**args) @dataset = args[:dataset] if args.key?(:dataset) @shard_count = args[:shard_count] if args.key?(:shard_count) @table_prefix = args[:table_prefix] if args.key?(:table_prefix) end |