Class: Google::Apis::AlloydbV1alpha::CsvExportOptions
- Inherits:
-
Object
- Object
- Google::Apis::AlloydbV1alpha::CsvExportOptions
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/alloydb_v1alpha/classes.rb,
lib/google/apis/alloydb_v1alpha/representations.rb,
lib/google/apis/alloydb_v1alpha/representations.rb
Overview
Options for exporting data in CSV format. For now, we only support a query to get the data that needs to be exported.
Instance Attribute Summary collapse
-
#escape_character ⇒ String
Optional.
-
#field_delimiter ⇒ String
Optional.
-
#quote_character ⇒ String
Optional.
-
#select_query ⇒ String
Required.
Instance Method Summary collapse
-
#initialize(**args) ⇒ CsvExportOptions
constructor
A new instance of CsvExportOptions.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ CsvExportOptions
Returns a new instance of CsvExportOptions.
943 944 945 |
# File 'lib/google/apis/alloydb_v1alpha/classes.rb', line 943 def initialize(**args) update!(**args) end |
Instance Attribute Details
#escape_character ⇒ String
Optional. Specifies the character that should appear before a data character
that needs to be escaped. The default is the same as quote character. The
value of this argument has to be a character in Hex ASCII Code.
Corresponds to the JSON property escapeCharacter
922 923 924 |
# File 'lib/google/apis/alloydb_v1alpha/classes.rb', line 922 def escape_character @escape_character end |
#field_delimiter ⇒ String
Optional. Specifies the character that separates columns within each row (line)
of the file. The default is comma. The value of this argument has to be a
character in Hex ASCII Code.
Corresponds to the JSON property fieldDelimiter
929 930 931 |
# File 'lib/google/apis/alloydb_v1alpha/classes.rb', line 929 def field_delimiter @field_delimiter end |
#quote_character ⇒ String
Optional. Specifies the quoting character to be used when a data value is
quoted. The default is double-quote. The value of this argument has to be a
character in Hex ASCII Code.
Corresponds to the JSON property quoteCharacter
936 937 938 |
# File 'lib/google/apis/alloydb_v1alpha/classes.rb', line 936 def quote_character @quote_character end |
#select_query ⇒ String
Required. The select_query used to extract the data.
Corresponds to the JSON property selectQuery
941 942 943 |
# File 'lib/google/apis/alloydb_v1alpha/classes.rb', line 941 def select_query @select_query end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
948 949 950 951 952 953 |
# File 'lib/google/apis/alloydb_v1alpha/classes.rb', line 948 def update!(**args) @escape_character = args[:escape_character] if args.key?(:escape_character) @field_delimiter = args[:field_delimiter] if args.key?(:field_delimiter) @quote_character = args[:quote_character] if args.key?(:quote_character) @select_query = args[:select_query] if args.key?(:select_query) end |