Class: Google::Apis::DataplexV1::GoogleCloudDataplexV1StorageFormatCsvOptions
- Inherits:
-
Object
- Object
- Google::Apis::DataplexV1::GoogleCloudDataplexV1StorageFormatCsvOptions
- 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
-
#delimiter ⇒ String
Optional.
-
#encoding ⇒ String
Optional.
-
#header_rows ⇒ Fixnum
Optional.
-
#quote ⇒ String
Optional.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleCloudDataplexV1StorageFormatCsvOptions
constructor
A new instance of GoogleCloudDataplexV1StorageFormatCsvOptions.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleCloudDataplexV1StorageFormatCsvOptions
Returns a new instance of GoogleCloudDataplexV1StorageFormatCsvOptions.
6784 6785 6786 |
# File 'lib/google/apis/dataplex_v1/classes.rb', line 6784 def initialize(**args) update!(**args) end |
Instance Attribute Details
#delimiter ⇒ String
Optional. The delimiter used to separate values. Defaults to ','.
Corresponds to the JSON property delimiter
6763 6764 6765 |
# File 'lib/google/apis/dataplex_v1/classes.rb', line 6763 def delimiter @delimiter end |
#encoding ⇒ String
Optional. The character encoding of the data. Accepts "US-ASCII", "UTF-8", and
"ISO-8859-1". Defaults to UTF-8 if unspecified.
Corresponds to the JSON property encoding
6769 6770 6771 |
# File 'lib/google/apis/dataplex_v1/classes.rb', line 6769 def encoding @encoding end |
#header_rows ⇒ Fixnum
Optional. The number of rows to interpret as header rows that should be
skipped when reading data rows. Defaults to 0.
Corresponds to the JSON property headerRows
6775 6776 6777 |
# File 'lib/google/apis/dataplex_v1/classes.rb', line 6775 def header_rows @header_rows end |
#quote ⇒ String
Optional. The character used to quote column values. Accepts '"' (double
quotation mark) or ''' (single quotation mark). Defaults to '"' (double
quotation mark) if unspecified.
Corresponds to the JSON property quote
6782 6783 6784 |
# File 'lib/google/apis/dataplex_v1/classes.rb', line 6782 def quote @quote end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
6789 6790 6791 6792 6793 6794 |
# File 'lib/google/apis/dataplex_v1/classes.rb', line 6789 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) end |