Class: Google::Apis::DatacatalogV1::GoogleCloudDatacatalogV1BigQueryDateShardedSpec

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/datacatalog_v1/classes.rb,
lib/google/apis/datacatalog_v1/representations.rb,
lib/google/apis/datacatalog_v1/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.



237
238
239
# File 'lib/google/apis/datacatalog_v1/classes.rb', line 237

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)


223
224
225
# File 'lib/google/apis/datacatalog_v1/classes.rb', line 223

def dataset
  @dataset
end

#shard_countFixnum

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

Returns:

  • (Fixnum)


228
229
230
# File 'lib/google/apis/datacatalog_v1/classes.rb', line 228

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)


235
236
237
# File 'lib/google/apis/datacatalog_v1/classes.rb', line 235

def table_prefix
  @table_prefix
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



242
243
244
245
246
# File 'lib/google/apis/datacatalog_v1/classes.rb', line 242

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