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.



2494
2495
2496
# File 'lib/google/apis/dataplex_v1/classes.rb', line 2494

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)


2467
2468
2469
# File 'lib/google/apis/dataplex_v1/classes.rb', line 2467

def compression_format
  @compression_format
end

#csvGoogle::Apis::DataplexV1::GoogleCloudDataplexV1StorageFormatCsvOptions

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



2472
2473
2474
# File 'lib/google/apis/dataplex_v1/classes.rb', line 2472

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)


2478
2479
2480
# File 'lib/google/apis/dataplex_v1/classes.rb', line 2478

def format
  @format
end

#jsonGoogle::Apis::DataplexV1::GoogleCloudDataplexV1StorageFormatJsonOptions

Describes JSON data format. Corresponds to the JSON property json



2483
2484
2485
# File 'lib/google/apis/dataplex_v1/classes.rb', line 2483

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/json application/ subtypes text/csv text/ image/image subtype video/video subtype audio/ audio subtype Corresponds to the JSON property mimeType

Returns:

  • (String)


2492
2493
2494
# File 'lib/google/apis/dataplex_v1/classes.rb', line 2492

def mime_type
  @mime_type
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2499
2500
2501
2502
2503
2504
2505
# File 'lib/google/apis/dataplex_v1/classes.rb', line 2499

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)
  @json = args[:json] if args.key?(:json)
  @mime_type = args[:mime_type] if args.key?(:mime_type)
end