Class: Google::Apis::DatacatalogV1beta1::GoogleCloudDatacatalogV1BigQueryDateShardedSpec
- Inherits:
-
Object
- Object
- Google::Apis::DatacatalogV1beta1::GoogleCloudDatacatalogV1BigQueryDateShardedSpec
- 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
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.
-
#latest_shard_resource ⇒ 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.
307 308 309 |
# File 'lib/google/apis/datacatalog_v1beta1/classes.rb', line 307 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`
288 289 290 |
# File 'lib/google/apis/datacatalog_v1beta1/classes.rb', line 288 def dataset @dataset end |
#latest_shard_resource ⇒ String
Output only. BigQuery resource name of the latest shard.
Corresponds to the JSON property latestShardResource
293 294 295 |
# File 'lib/google/apis/datacatalog_v1beta1/classes.rb', line 293 def latest_shard_resource @latest_shard_resource end |
#shard_count ⇒ Fixnum
Output only. Total number of shards.
Corresponds to the JSON property shardCount
298 299 300 |
# File 'lib/google/apis/datacatalog_v1beta1/classes.rb', line 298 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
305 306 307 |
# File 'lib/google/apis/datacatalog_v1beta1/classes.rb', line 305 def table_prefix @table_prefix end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
312 313 314 315 316 317 |
# File 'lib/google/apis/datacatalog_v1beta1/classes.rb', line 312 def update!(**args) @dataset = args[:dataset] if args.key?(:dataset) @latest_shard_resource = args[:latest_shard_resource] if args.key?(:latest_shard_resource) @shard_count = args[:shard_count] if args.key?(:shard_count) @table_prefix = args[:table_prefix] if args.key?(:table_prefix) end |