Class: Google::Apis::DataplexV1::GoogleCloudDataplexV1ZoneDiscoverySpecCsvOptions

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

Describe CSV and similar semi-structured data formats.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudDataplexV1ZoneDiscoverySpecCsvOptions

Returns a new instance of GoogleCloudDataplexV1ZoneDiscoverySpecCsvOptions.



3205
3206
3207
# File 'lib/google/apis/dataplex_v1/classes.rb', line 3205

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

Instance Attribute Details

#delimiterString

Optional. The delimiter being used to separate values. This defaults to ','. Corresponds to the JSON property delimiter

Returns:

  • (String)


3185
3186
3187
# File 'lib/google/apis/dataplex_v1/classes.rb', line 3185

def delimiter
  @delimiter
end

#disable_type_inferenceBoolean Also known as: disable_type_inference?

Optional. Whether to disable the inference of data type for CSV data. If true, all columns will be registered as strings. Corresponds to the JSON property disableTypeInference

Returns:

  • (Boolean)


3191
3192
3193
# File 'lib/google/apis/dataplex_v1/classes.rb', line 3191

def disable_type_inference
  @disable_type_inference
end

#encodingString

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

Returns:

  • (String)


3197
3198
3199
# File 'lib/google/apis/dataplex_v1/classes.rb', line 3197

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)


3203
3204
3205
# File 'lib/google/apis/dataplex_v1/classes.rb', line 3203

def header_rows
  @header_rows
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



3210
3211
3212
3213
3214
3215
# File 'lib/google/apis/dataplex_v1/classes.rb', line 3210

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