class Google::Apis::DatacatalogV1::GoogleCloudDatacatalogV1BigQueryDateShardedSpec

Specification for a group of BigQuery tables with the `[prefix]YYYYMMDD` name pattern. For more information, see [Introduction to partitioned tables] (https: //cloud.google.com/bigquery/docs/partitioned-tables# partitioning_versus_sharding).

Attributes

dataset[RW]

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` @return [String]

shard_count[RW]

Output only. Total number of shards. Corresponds to the JSON property `shardCount` @return [Fixnum]

table_prefix[RW]

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` @return [String]

Public Class Methods

new(**args) click to toggle source
# File lib/google/apis/datacatalog_v1/classes.rb, line 270
def initialize(**args)
   update!(**args)
end

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

# File lib/google/apis/datacatalog_v1/classes.rb, line 275
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