Class: Google::Apis::AlloydbV1alpha::ExportClusterRequest

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

Export cluster request.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ ExportClusterRequest

Returns a new instance of ExportClusterRequest.



1047
1048
1049
# File 'lib/google/apis/alloydb_v1alpha/classes.rb', line 1047

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

Instance Attribute Details

#csv_export_optionsGoogle::Apis::AlloydbV1alpha::CsvExportOptions

Options for exporting data in CSV format. For now, we only support a query to get the data that needs to be exported. Corresponds to the JSON property csvExportOptions



1028
1029
1030
# File 'lib/google/apis/alloydb_v1alpha/classes.rb', line 1028

def csv_export_options
  @csv_export_options
end

#databaseString

Required. Name of the database where the query will be executed. Note - Value provided should be the same as expected from SELECT current_database(); and NOT as a resource reference. Corresponds to the JSON property database

Returns:

  • (String)


1035
1036
1037
# File 'lib/google/apis/alloydb_v1alpha/classes.rb', line 1035

def database
  @database
end

#gcs_destinationGoogle::Apis::AlloydbV1alpha::GcsDestination

Destination for Export. Export will be done to cloud storage. Corresponds to the JSON property gcsDestination



1040
1041
1042
# File 'lib/google/apis/alloydb_v1alpha/classes.rb', line 1040

def gcs_destination
  @gcs_destination
end

#sql_export_optionsGoogle::Apis::AlloydbV1alpha::SqlExportOptions

Options for exporting data in SQL format. Corresponds to the JSON property sqlExportOptions



1045
1046
1047
# File 'lib/google/apis/alloydb_v1alpha/classes.rb', line 1045

def sql_export_options
  @sql_export_options
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1052
1053
1054
1055
1056
1057
# File 'lib/google/apis/alloydb_v1alpha/classes.rb', line 1052

def update!(**args)
  @csv_export_options = args[:csv_export_options] if args.key?(:csv_export_options)
  @database = args[:database] if args.key?(:database)
  @gcs_destination = args[:gcs_destination] if args.key?(:gcs_destination)
  @sql_export_options = args[:sql_export_options] if args.key?(:sql_export_options)
end