Class: Google::Apis::AlloydbV1::ExportClusterRequest
- Inherits:
-
Object
- Object
- Google::Apis::AlloydbV1::ExportClusterRequest
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/alloydb_v1/classes.rb,
lib/google/apis/alloydb_v1/representations.rb,
lib/google/apis/alloydb_v1/representations.rb
Overview
Export cluster request.
Instance Attribute Summary collapse
-
#csv_export_options ⇒ Google::Apis::AlloydbV1::CsvExportOptions
Options for exporting data in CSV format.
-
#database ⇒ String
Required.
-
#gcs_destination ⇒ Google::Apis::AlloydbV1::GcsDestination
Destination for Export.
Instance Method Summary collapse
-
#initialize(**args) ⇒ ExportClusterRequest
constructor
A new instance of ExportClusterRequest.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ ExportClusterRequest
Returns a new instance of ExportClusterRequest.
946 947 948 |
# File 'lib/google/apis/alloydb_v1/classes.rb', line 946 def initialize(**args) update!(**args) end |
Instance Attribute Details
#csv_export_options ⇒ Google::Apis::AlloydbV1::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
932 933 934 |
# File 'lib/google/apis/alloydb_v1/classes.rb', line 932 def @csv_export_options end |
#database ⇒ String
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
939 940 941 |
# File 'lib/google/apis/alloydb_v1/classes.rb', line 939 def database @database end |
#gcs_destination ⇒ Google::Apis::AlloydbV1::GcsDestination
Destination for Export. Export will be done to cloud storage.
Corresponds to the JSON property gcsDestination
944 945 946 |
# File 'lib/google/apis/alloydb_v1/classes.rb', line 944 def gcs_destination @gcs_destination end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
951 952 953 954 955 |
# File 'lib/google/apis/alloydb_v1/classes.rb', line 951 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) end |