Class: Google::Apis::DataplexV1::GoogleCloudDataplexV1StorageFormat

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/dataplex_v1/classes.rb,
lib/google/apis/dataplex_v1/representations.rb,
lib/google/apis/dataplex_v1/representations.rb

Overview

Describes the format of the data within its storage location.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudDataplexV1StorageFormat

Returns a new instance of GoogleCloudDataplexV1StorageFormat.



4744
4745
4746
# File 'lib/google/apis/dataplex_v1/classes.rb', line 4744

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

Instance Attribute Details

#compression_formatString

Optional. The compression type associated with the stored data. If unspecified, the data is uncompressed. Corresponds to the JSON property compressionFormat

Returns:

  • (String)


4711
4712
4713
# File 'lib/google/apis/dataplex_v1/classes.rb', line 4711

def compression_format
  @compression_format
end

#csvGoogle::Apis::DataplexV1::GoogleCloudDataplexV1StorageFormatCsvOptions

Describes CSV and similar semi-structured data formats. Corresponds to the JSON property csv



4716
4717
4718
# File 'lib/google/apis/dataplex_v1/classes.rb', line 4716

def csv
  @csv
end

#formatString

Output only. The data format associated with the stored data, which represents content type values. The value is inferred from mime type. Corresponds to the JSON property format

Returns:

  • (String)


4722
4723
4724
# File 'lib/google/apis/dataplex_v1/classes.rb', line 4722

def format
  @format
end

#icebergGoogle::Apis::DataplexV1::GoogleCloudDataplexV1StorageFormatIcebergOptions

Describes Iceberg data format. Corresponds to the JSON property iceberg



4727
4728
4729
# File 'lib/google/apis/dataplex_v1/classes.rb', line 4727

def iceberg
  @iceberg
end

#jsonGoogle::Apis::DataplexV1::GoogleCloudDataplexV1StorageFormatJsonOptions

Describes JSON data format. Corresponds to the JSON property json



4732
4733
4734
# File 'lib/google/apis/dataplex_v1/classes.rb', line 4732

def json
  @json
end

#mime_typeString

Required. The mime type descriptor for the data. Must match the pattern type/ subtype. Supported values: application/x-parquet application/x-avro application/x-orc application/x-tfrecord application/x-parquet+iceberg application/x-avro+iceberg application/x-orc+iceberg application/json application/subtypes text/csv text/ image/image subtype video/video subtype audio/audio subtype Corresponds to the JSON property mimeType

Returns:

  • (String)


4742
4743
4744
# File 'lib/google/apis/dataplex_v1/classes.rb', line 4742

def mime_type
  @mime_type
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



4749
4750
4751
4752
4753
4754
4755
4756
# File 'lib/google/apis/dataplex_v1/classes.rb', line 4749

def update!(**args)
  @compression_format = args[:compression_format] if args.key?(:compression_format)
  @csv = args[:csv] if args.key?(:csv)
  @format = args[:format] if args.key?(:format)
  @iceberg = args[:iceberg] if args.key?(:iceberg)
  @json = args[:json] if args.key?(:json)
  @mime_type = args[:mime_type] if args.key?(:mime_type)
end