Class: Google::Apis::DataplexV1::GoogleCloudDataplexV1DataDiscoverySpecStorageConfigCsvOptions

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 CSV and similar semi-structured data formats.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudDataplexV1DataDiscoverySpecStorageConfigCsvOptions

Returns a new instance of GoogleCloudDataplexV1DataDiscoverySpecStorageConfigCsvOptions.



1737
1738
1739
# File 'lib/google/apis/dataplex_v1/classes.rb', line 1737

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

Instance Attribute Details

#delimiterString

Optional. The delimiter that is used to separate values. The default is , ( comma). Corresponds to the JSON property delimiter

Returns:

  • (String)


1710
1711
1712
# File 'lib/google/apis/dataplex_v1/classes.rb', line 1710

def delimiter
  @delimiter
end

#encodingString

Optional. The character encoding of the data. The default is UTF-8. Corresponds to the JSON property encoding

Returns:

  • (String)


1715
1716
1717
# File 'lib/google/apis/dataplex_v1/classes.rb', line 1715

def encoding
  @encoding
end

#header_rowsFixnum

Optional. The number of rows to interpret as header rows that should be skipped when reading data rows. Corresponds to the JSON property headerRows

Returns:

  • (Fixnum)


1721
1722
1723
# File 'lib/google/apis/dataplex_v1/classes.rb', line 1721

def header_rows
  @header_rows
end

#quoteString

Optional. The character used to quote column values. Accepts " (double quotation mark) or ' (single quotation mark). If unspecified, defaults to " ( double quotation mark). Corresponds to the JSON property quote

Returns:

  • (String)


1728
1729
1730
# File 'lib/google/apis/dataplex_v1/classes.rb', line 1728

def quote
  @quote
end

#type_inference_disabledBoolean Also known as: type_inference_disabled?

Optional. Whether to disable the inference of data types for CSV data. If true, all columns are registered as strings. Corresponds to the JSON property typeInferenceDisabled

Returns:

  • (Boolean)


1734
1735
1736
# File 'lib/google/apis/dataplex_v1/classes.rb', line 1734

def type_inference_disabled
  @type_inference_disabled
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1742
1743
1744
1745
1746
1747
1748
# File 'lib/google/apis/dataplex_v1/classes.rb', line 1742

def update!(**args)
  @delimiter = args[:delimiter] if args.key?(:delimiter)
  @encoding = args[:encoding] if args.key?(:encoding)
  @header_rows = args[:header_rows] if args.key?(:header_rows)
  @quote = args[:quote] if args.key?(:quote)
  @type_inference_disabled = args[:type_inference_disabled] if args.key?(:type_inference_disabled)
end