Class: Google::Apis::DatacatalogV1beta1::GoogleCloudDatacatalogV1beta1BigQueryDateShardedSpec
- Inherits:
-
Object
- Object
- Google::Apis::DatacatalogV1beta1::GoogleCloudDatacatalogV1beta1BigQueryDateShardedSpec
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- generated/google/apis/datacatalog_v1beta1/classes.rb,
generated/google/apis/datacatalog_v1beta1/representations.rb,
generated/google/apis/datacatalog_v1beta1/representations.rb
Overview
Spec for a group of BigQuery tables with name pattern [prefix]YYYYMMDD
.
Context:
https://cloud.google.com/bigquery/docs/partitioned-tables#
partitioning_versus_sharding
Instance Attribute Summary collapse
-
#dataset ⇒ String
Output only.
-
#shard_count ⇒ Fixnum
Output only.
-
#table_prefix ⇒ String
Output only.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleCloudDatacatalogV1beta1BigQueryDateShardedSpec
constructor
A new instance of GoogleCloudDatacatalogV1beta1BigQueryDateShardedSpec.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ GoogleCloudDatacatalogV1beta1BigQueryDateShardedSpec
Returns a new instance of GoogleCloudDatacatalogV1beta1BigQueryDateShardedSpec.
262 263 264 |
# File 'generated/google/apis/datacatalog_v1beta1/classes.rb', line 262 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 property
dataset`
247 248 249 |
# File 'generated/google/apis/datacatalog_v1beta1/classes.rb', line 247 def dataset @dataset end |
#shard_count ⇒ Fixnum
Output only. Total number of shards.
Corresponds to the JSON property shardCount
252 253 254 |
# File 'generated/google/apis/datacatalog_v1beta1/classes.rb', line 252 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 shard MyTable20180101
, the
table_prefix
is MyTable
.
Corresponds to the JSON property tablePrefix
260 261 262 |
# File 'generated/google/apis/datacatalog_v1beta1/classes.rb', line 260 def table_prefix @table_prefix end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
267 268 269 270 271 |
# File 'generated/google/apis/datacatalog_v1beta1/classes.rb', line 267 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 |