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.
282 283 284 |
# File 'lib/google/apis/datacatalog_v1beta1/classes.rb', line 282 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`
263 264 265 |
# File 'lib/google/apis/datacatalog_v1beta1/classes.rb', line 263 def dataset @dataset end |
#latest_shard_resource ⇒ String
Output only. BigQuery resource name of the latest shard.
Corresponds to the JSON property latestShardResource
268 269 270 |
# File 'lib/google/apis/datacatalog_v1beta1/classes.rb', line 268 def latest_shard_resource @latest_shard_resource end |
#shard_count ⇒ Fixnum
Output only. Total number of shards.
Corresponds to the JSON property shardCount
273 274 275 |
# File 'lib/google/apis/datacatalog_v1beta1/classes.rb', line 273 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
280 281 282 |
# File 'lib/google/apis/datacatalog_v1beta1/classes.rb', line 280 def table_prefix @table_prefix end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
287 288 289 290 291 292 |
# File 'lib/google/apis/datacatalog_v1beta1/classes.rb', line 287 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 |