Class: Google::Apis::AlloydbV1alpha::SqlExportOptions
- Inherits:
-
Object
- Object
- Google::Apis::AlloydbV1alpha::SqlExportOptions
- 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 SQL format.
Instance Attribute Summary collapse
-
#clean_target_objects ⇒ Boolean
(also: #clean_target_objects?)
Optional.
-
#if_exist_target_objects ⇒ Boolean
(also: #if_exist_target_objects?)
Optional.
-
#schema_only ⇒ Boolean
(also: #schema_only?)
Optional.
-
#tables ⇒ Array<String>
Optional.
Instance Method Summary collapse
-
#initialize(**args) ⇒ SqlExportOptions
constructor
A new instance of SqlExportOptions.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ SqlExportOptions
Returns a new instance of SqlExportOptions.
3825 3826 3827 |
# File 'lib/google/apis/alloydb_v1alpha/classes.rb', line 3825 def initialize(**args) update!(**args) end |
Instance Attribute Details
#clean_target_objects ⇒ Boolean Also known as: clean_target_objects?
Optional. If true, output commands to DROP all the dumped database objects
prior to outputting the commands for creating them.
Corresponds to the JSON property cleanTargetObjects
3804 3805 3806 |
# File 'lib/google/apis/alloydb_v1alpha/classes.rb', line 3804 def clean_target_objects @clean_target_objects end |
#if_exist_target_objects ⇒ Boolean Also known as: if_exist_target_objects?
Optional. If true, use DROP ... IF EXISTS commands to check for the object's
existence before dropping it in clean_target_objects mode.
Corresponds to the JSON property ifExistTargetObjects
3811 3812 3813 |
# File 'lib/google/apis/alloydb_v1alpha/classes.rb', line 3811 def if_exist_target_objects @if_exist_target_objects end |
#schema_only ⇒ Boolean Also known as: schema_only?
Optional. If true, only export the schema.
Corresponds to the JSON property schemaOnly
3817 3818 3819 |
# File 'lib/google/apis/alloydb_v1alpha/classes.rb', line 3817 def schema_only @schema_only end |
#tables ⇒ Array<String>
Optional. Tables to export from.
Corresponds to the JSON property tables
3823 3824 3825 |
# File 'lib/google/apis/alloydb_v1alpha/classes.rb', line 3823 def tables @tables end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
3830 3831 3832 3833 3834 3835 |
# File 'lib/google/apis/alloydb_v1alpha/classes.rb', line 3830 def update!(**args) @clean_target_objects = args[:clean_target_objects] if args.key?(:clean_target_objects) @if_exist_target_objects = args[:if_exist_target_objects] if args.key?(:if_exist_target_objects) @schema_only = args[:schema_only] if args.key?(:schema_only) @tables = args[:tables] if args.key?(:tables) end |