Class: Google::Apis::AlloydbV1alpha::SqlExportOptions

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ SqlExportOptions

Returns a new instance of SqlExportOptions.



2697
2698
2699
# File 'lib/google/apis/alloydb_v1alpha/classes.rb', line 2697

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

Instance Attribute Details

#clean_target_objectsBoolean 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

Returns:

  • (Boolean)


2676
2677
2678
# File 'lib/google/apis/alloydb_v1alpha/classes.rb', line 2676

def clean_target_objects
  @clean_target_objects
end

#if_exist_target_objectsBoolean 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

Returns:

  • (Boolean)


2683
2684
2685
# File 'lib/google/apis/alloydb_v1alpha/classes.rb', line 2683

def if_exist_target_objects
  @if_exist_target_objects
end

#schema_onlyBoolean Also known as: schema_only?

Optional. If true, only export the schema. Corresponds to the JSON property schemaOnly

Returns:

  • (Boolean)


2689
2690
2691
# File 'lib/google/apis/alloydb_v1alpha/classes.rb', line 2689

def schema_only
  @schema_only
end

#tablesArray<String>

Optional. Tables to export from. Corresponds to the JSON property tables

Returns:

  • (Array<String>)


2695
2696
2697
# File 'lib/google/apis/alloydb_v1alpha/classes.rb', line 2695

def tables
  @tables
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2702
2703
2704
2705
2706
2707
# File 'lib/google/apis/alloydb_v1alpha/classes.rb', line 2702

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