Class: Google::Apis::DatacatalogV1beta1::GoogleCloudDatacatalogV1PhysicalSchema

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

Native schema used by a resource represented as an entry. Used by query engines for deserializing and parsing source data.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudDatacatalogV1PhysicalSchema

Returns a new instance of GoogleCloudDatacatalogV1PhysicalSchema.



1554
1555
1556
# File 'lib/google/apis/datacatalog_v1beta1/classes.rb', line 1554

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#avroGoogle::Apis::DatacatalogV1beta1::GoogleCloudDatacatalogV1PhysicalSchemaAvroSchema

Schema in Avro JSON format. Corresponds to the JSON property avro



1527
1528
1529
# File 'lib/google/apis/datacatalog_v1beta1/classes.rb', line 1527

def avro
  @avro
end

#csvGoogle::Apis::DatacatalogV1beta1::GoogleCloudDatacatalogV1PhysicalSchemaCsvSchema

Marks a CSV-encoded data source. Corresponds to the JSON property csv



1532
1533
1534
# File 'lib/google/apis/datacatalog_v1beta1/classes.rb', line 1532

def csv
  @csv
end

#orcGoogle::Apis::DatacatalogV1beta1::GoogleCloudDatacatalogV1PhysicalSchemaOrcSchema

Marks an ORC-encoded data source. Corresponds to the JSON property orc



1537
1538
1539
# File 'lib/google/apis/datacatalog_v1beta1/classes.rb', line 1537

def orc
  @orc
end

#parquetGoogle::Apis::DatacatalogV1beta1::GoogleCloudDatacatalogV1PhysicalSchemaParquetSchema

Marks a Parquet-encoded data source. Corresponds to the JSON property parquet



1542
1543
1544
# File 'lib/google/apis/datacatalog_v1beta1/classes.rb', line 1542

def parquet
  @parquet
end

#protobufGoogle::Apis::DatacatalogV1beta1::GoogleCloudDatacatalogV1PhysicalSchemaProtobufSchema

Schema in protocol buffer format. Corresponds to the JSON property protobuf



1547
1548
1549
# File 'lib/google/apis/datacatalog_v1beta1/classes.rb', line 1547

def protobuf
  @protobuf
end

#thriftGoogle::Apis::DatacatalogV1beta1::GoogleCloudDatacatalogV1PhysicalSchemaThriftSchema

Schema in Thrift format. Corresponds to the JSON property thrift



1552
1553
1554
# File 'lib/google/apis/datacatalog_v1beta1/classes.rb', line 1552

def thrift
  @thrift
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1559
1560
1561
1562
1563
1564
1565
1566
# File 'lib/google/apis/datacatalog_v1beta1/classes.rb', line 1559

def update!(**args)
  @avro = args[:avro] if args.key?(:avro)
  @csv = args[:csv] if args.key?(:csv)
  @orc = args[:orc] if args.key?(:orc)
  @parquet = args[:parquet] if args.key?(:parquet)
  @protobuf = args[:protobuf] if args.key?(:protobuf)
  @thrift = args[:thrift] if args.key?(:thrift)
end