Class: Google::Apis::DatacatalogV1beta1::GoogleCloudDatacatalogV1BigQueryDateShardedSpec

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

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

#datasetString

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`

Returns:

  • (String)


288
289
290
# File 'lib/google/apis/datacatalog_v1beta1/classes.rb', line 288

def dataset
  @dataset
end

#latest_shard_resourceString

Output only. BigQuery resource name of the latest shard. Corresponds to the JSON property latestShardResource

Returns:

  • (String)


293
294
295
# File 'lib/google/apis/datacatalog_v1beta1/classes.rb', line 293

def latest_shard_resource
  @latest_shard_resource
end

#shard_countFixnum

Output only. Total number of shards. Corresponds to the JSON property shardCount

Returns:

  • (Fixnum)


298
299
300
# File 'lib/google/apis/datacatalog_v1beta1/classes.rb', line 298

def shard_count
  @shard_count
end

#table_prefixString

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

Returns:

  • (String)


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