google-apis-alloydb_v1 0.25.0 → 0.27.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 5a12ff010d52dd71a5a588c97c470c82b34bea6c0daf29b9451bef56a2243e5d
4
- data.tar.gz: 9b493d6f18f4f8dbc2d9e4e1c4055270c4ad562fe5a639fd6771ed2d88e7999e
3
+ metadata.gz: 7694b502f4a4d1e7641bbb2f3a2556bff297279fd0def4e4dbb8054e8d069306
4
+ data.tar.gz: fc021ee07daaccd630363616e41ae212c4b23fa970dcce2ede9c533b4cd5bbe5
5
5
  SHA512:
6
- metadata.gz: 830a3c7828e18b0aeea6bfc3fa4f731f544b7ab22a2ce25b2765b9c6a5aad3e6ab1fd252090f85e82f7d5ecba26128c897011b60f2b946ec387e7f369d334d7e
7
- data.tar.gz: 2b1e896700480af58e5c2446367ae19bcd4b3e93e7b0e3bfe71d51367d70b274b57f432b10ef49fe49e2c9b86c7b0e028c28a37bfc71c09326a6acaad2039230
6
+ metadata.gz: 289f2a783f1ac1e582ba6566fdfb4089ba8d846b6831a115241634d216f95cbecc7047e12bfcbf42b17fe93fcf31e14c7a39a745a946a639d1374563ed761c08
7
+ data.tar.gz: faf3567a307089ac460d1dfcd0adeb62ed34a6699f119dddc233f2fed4ab1db7a9275bc5f7ae0974b7b0c9f6f1967447a7bf1d815712ab4b2384cbaf038a9bfd
data/CHANGELOG.md CHANGED
@@ -1,5 +1,13 @@
1
1
  # Release history for google-apis-alloydb_v1
2
2
 
3
+ ### v0.27.0 (2024-11-24)
4
+
5
+ * Regenerated from discovery document revision 20241106
6
+
7
+ ### v0.26.0 (2024-11-03)
8
+
9
+ * Regenerated from discovery document revision 20241023
10
+
3
11
  ### v0.25.0 (2024-10-27)
4
12
 
5
13
  * Regenerated from discovery document revision 20241015
@@ -837,6 +837,26 @@ module Google
837
837
  end
838
838
  end
839
839
 
840
+ # Options for exporting data in CSV format. For now, we only support a query to
841
+ # get the data that needs to be exported.
842
+ class CsvExportOptions
843
+ include Google::Apis::Core::Hashable
844
+
845
+ # Required. The select_query used to extract the data.
846
+ # Corresponds to the JSON property `selectQuery`
847
+ # @return [String]
848
+ attr_accessor :select_query
849
+
850
+ def initialize(**args)
851
+ update!(**args)
852
+ end
853
+
854
+ # Update properties of this object
855
+ def update!(**args)
856
+ @select_query = args[:select_query] if args.key?(:select_query)
857
+ end
858
+ end
859
+
840
860
  # A generic empty message that you can re-use to avoid defining duplicated empty
841
861
  # messages in your APIs. A typical example is to use it as the request or the
842
862
  # response type of an API method. For instance: service Foo ` rpc Bar(google.
@@ -901,6 +921,59 @@ module Google
901
921
  end
902
922
  end
903
923
 
924
+ # Export cluster request.
925
+ class ExportClusterRequest
926
+ include Google::Apis::Core::Hashable
927
+
928
+ # Options for exporting data in CSV format. For now, we only support a query to
929
+ # get the data that needs to be exported.
930
+ # Corresponds to the JSON property `csvExportOptions`
931
+ # @return [Google::Apis::AlloydbV1::CsvExportOptions]
932
+ attr_accessor :csv_export_options
933
+
934
+ # Required. Name of the database where the query will be executed. Note - Value
935
+ # provided should be the same as expected from `SELECT current_database();` and
936
+ # NOT as a resource reference.
937
+ # Corresponds to the JSON property `database`
938
+ # @return [String]
939
+ attr_accessor :database
940
+
941
+ # Destination for Export. Export will be done to cloud storage.
942
+ # Corresponds to the JSON property `gcsDestination`
943
+ # @return [Google::Apis::AlloydbV1::GcsDestination]
944
+ attr_accessor :gcs_destination
945
+
946
+ def initialize(**args)
947
+ update!(**args)
948
+ end
949
+
950
+ # Update properties of this object
951
+ def update!(**args)
952
+ @csv_export_options = args[:csv_export_options] if args.key?(:csv_export_options)
953
+ @database = args[:database] if args.key?(:database)
954
+ @gcs_destination = args[:gcs_destination] if args.key?(:gcs_destination)
955
+ end
956
+ end
957
+
958
+ # Response of export cluster rpc.
959
+ class ExportClusterResponse
960
+ include Google::Apis::Core::Hashable
961
+
962
+ # Destination for Export. Export will be done to cloud storage.
963
+ # Corresponds to the JSON property `gcsDestination`
964
+ # @return [Google::Apis::AlloydbV1::GcsDestination]
965
+ attr_accessor :gcs_destination
966
+
967
+ def initialize(**args)
968
+ update!(**args)
969
+ end
970
+
971
+ # Update properties of this object
972
+ def update!(**args)
973
+ @gcs_destination = args[:gcs_destination] if args.key?(:gcs_destination)
974
+ end
975
+ end
976
+
904
977
  # Message for triggering failover on an Instance
905
978
  class FailoverInstanceRequest
906
979
  include Google::Apis::Core::Hashable
@@ -938,6 +1011,27 @@ module Google
938
1011
  end
939
1012
  end
940
1013
 
1014
+ # Destination for Export. Export will be done to cloud storage.
1015
+ class GcsDestination
1016
+ include Google::Apis::Core::Hashable
1017
+
1018
+ # Required. The path to the file in Google Cloud Storage where the export will
1019
+ # be stored. The URI is in the form `gs://bucketName/fileName`. If the file
1020
+ # already exists, the request succeeds, but the operation fails.
1021
+ # Corresponds to the JSON property `uri`
1022
+ # @return [String]
1023
+ attr_accessor :uri
1024
+
1025
+ def initialize(**args)
1026
+ update!(**args)
1027
+ end
1028
+
1029
+ # Update properties of this object
1030
+ def update!(**args)
1031
+ @uri = args[:uri] if args.key?(:uri)
1032
+ end
1033
+ end
1034
+
941
1035
  # The response message for Locations.ListLocations.
942
1036
  class GoogleCloudLocationListLocationsResponse
943
1037
  include Google::Apis::Core::Hashable
@@ -1128,16 +1222,17 @@ module Google
1128
1222
  # @return [String]
1129
1223
  attr_accessor :create_time
1130
1224
 
1131
- # Database flags. Set at instance level. * They are copied from primary instance
1132
- # on read instance creation. * Read instances can set new or override existing
1133
- # flags that are relevant for reads, e.g. for enabling columnar cache on a read
1134
- # instance. Flags set on read instance may or may not be present on primary.
1135
- # This is a list of "key": "value" pairs. "key": The name of the flag. These
1136
- # flags are passed at instance setup time, so include both server options and
1137
- # system variables for Postgres. Flags are specified with underscores, not
1138
- # hyphens. "value": The value of the flag. Booleans are set to **on** for true
1139
- # and **off** for false. This field must be omitted if the flag doesn't take a
1140
- # value.
1225
+ # Database flags. Set at the instance level. They are copied from the primary
1226
+ # instance on secondary instance creation. Flags that have restrictions default
1227
+ # to the value at primary instance on read instances during creation. Read
1228
+ # instances can set new flags or override existing flags that are relevant for
1229
+ # reads, for example, for enabling columnar cache on a read instance. Flags set
1230
+ # on read instance might or might not be present on the primary instance. This
1231
+ # is a list of "key": "value" pairs. "key": The name of the flag. These flags
1232
+ # are passed at instance setup time, so include both server options and system
1233
+ # variables for Postgres. Flags are specified with underscores, not hyphens. "
1234
+ # value": The value of the flag. Booleans are set to **on** for true and **off**
1235
+ # for false. This field must be omitted if the flag doesn't take a value.
1141
1236
  # Corresponds to the JSON property `databaseFlags`
1142
1237
  # @return [Hash<String,String>]
1143
1238
  attr_accessor :database_flags
@@ -16,13 +16,13 @@ module Google
16
16
  module Apis
17
17
  module AlloydbV1
18
18
  # Version of the google-apis-alloydb_v1 gem
19
- GEM_VERSION = "0.25.0"
19
+ GEM_VERSION = "0.27.0"
20
20
 
21
21
  # Version of the code generator used to generate this client
22
22
  GENERATOR_VERSION = "0.15.1"
23
23
 
24
24
  # Revision of the discovery document this client was generated from
25
- REVISION = "20241015"
25
+ REVISION = "20241106"
26
26
  end
27
27
  end
28
28
  end
@@ -100,6 +100,12 @@ module Google
100
100
  include Google::Apis::Core::JsonObjectSupport
101
101
  end
102
102
 
103
+ class CsvExportOptions
104
+ class Representation < Google::Apis::Core::JsonRepresentation; end
105
+
106
+ include Google::Apis::Core::JsonObjectSupport
107
+ end
108
+
103
109
  class Empty
104
110
  class Representation < Google::Apis::Core::JsonRepresentation; end
105
111
 
@@ -118,12 +124,30 @@ module Google
118
124
  include Google::Apis::Core::JsonObjectSupport
119
125
  end
120
126
 
127
+ class ExportClusterRequest
128
+ class Representation < Google::Apis::Core::JsonRepresentation; end
129
+
130
+ include Google::Apis::Core::JsonObjectSupport
131
+ end
132
+
133
+ class ExportClusterResponse
134
+ class Representation < Google::Apis::Core::JsonRepresentation; end
135
+
136
+ include Google::Apis::Core::JsonObjectSupport
137
+ end
138
+
121
139
  class FailoverInstanceRequest
122
140
  class Representation < Google::Apis::Core::JsonRepresentation; end
123
141
 
124
142
  include Google::Apis::Core::JsonObjectSupport
125
143
  end
126
144
 
145
+ class GcsDestination
146
+ class Representation < Google::Apis::Core::JsonRepresentation; end
147
+
148
+ include Google::Apis::Core::JsonObjectSupport
149
+ end
150
+
127
151
  class GoogleCloudLocationListLocationsResponse
128
152
  class Representation < Google::Apis::Core::JsonRepresentation; end
129
153
 
@@ -722,6 +746,13 @@ module Google
722
746
  end
723
747
  end
724
748
 
749
+ class CsvExportOptions
750
+ # @private
751
+ class Representation < Google::Apis::Core::JsonRepresentation
752
+ property :select_query, as: 'selectQuery'
753
+ end
754
+ end
755
+
725
756
  class Empty
726
757
  # @private
727
758
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -743,6 +774,25 @@ module Google
743
774
  end
744
775
  end
745
776
 
777
+ class ExportClusterRequest
778
+ # @private
779
+ class Representation < Google::Apis::Core::JsonRepresentation
780
+ property :csv_export_options, as: 'csvExportOptions', class: Google::Apis::AlloydbV1::CsvExportOptions, decorator: Google::Apis::AlloydbV1::CsvExportOptions::Representation
781
+
782
+ property :database, as: 'database'
783
+ property :gcs_destination, as: 'gcsDestination', class: Google::Apis::AlloydbV1::GcsDestination, decorator: Google::Apis::AlloydbV1::GcsDestination::Representation
784
+
785
+ end
786
+ end
787
+
788
+ class ExportClusterResponse
789
+ # @private
790
+ class Representation < Google::Apis::Core::JsonRepresentation
791
+ property :gcs_destination, as: 'gcsDestination', class: Google::Apis::AlloydbV1::GcsDestination, decorator: Google::Apis::AlloydbV1::GcsDestination::Representation
792
+
793
+ end
794
+ end
795
+
746
796
  class FailoverInstanceRequest
747
797
  # @private
748
798
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -751,6 +801,13 @@ module Google
751
801
  end
752
802
  end
753
803
 
804
+ class GcsDestination
805
+ # @private
806
+ class Representation < Google::Apis::Core::JsonRepresentation
807
+ property :uri, as: 'uri'
808
+ end
809
+ end
810
+
754
811
  class GoogleCloudLocationListLocationsResponse
755
812
  # @private
756
813
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -542,6 +542,39 @@ module Google
542
542
  execute_or_queue_command(command, &block)
543
543
  end
544
544
 
545
+ # Exports data from the cluster. Imperative only.
546
+ # @param [String] name
547
+ # Required. The resource name of the cluster.
548
+ # @param [Google::Apis::AlloydbV1::ExportClusterRequest] export_cluster_request_object
549
+ # @param [String] fields
550
+ # Selector specifying which fields to include in a partial response.
551
+ # @param [String] quota_user
552
+ # Available to use for quota purposes for server-side applications. Can be any
553
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
554
+ # @param [Google::Apis::RequestOptions] options
555
+ # Request-specific options
556
+ #
557
+ # @yield [result, err] Result & error if block supplied
558
+ # @yieldparam result [Google::Apis::AlloydbV1::Operation] parsed result object
559
+ # @yieldparam err [StandardError] error object if request failed
560
+ #
561
+ # @return [Google::Apis::AlloydbV1::Operation]
562
+ #
563
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
564
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
565
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
566
+ def export_cluster(name, export_cluster_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
567
+ command = make_simple_command(:post, 'v1/{+name}:export', options)
568
+ command.request_representation = Google::Apis::AlloydbV1::ExportClusterRequest::Representation
569
+ command.request_object = export_cluster_request_object
570
+ command.response_representation = Google::Apis::AlloydbV1::Operation::Representation
571
+ command.response_class = Google::Apis::AlloydbV1::Operation
572
+ command.params['name'] = name unless name.nil?
573
+ command.query['fields'] = fields unless fields.nil?
574
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
575
+ execute_or_queue_command(command, &block)
576
+ end
577
+
545
578
  # Gets details of a single Cluster.
546
579
  # @param [String] name
547
580
  # Required. The name of the resource. For the required format, see the comment
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-apis-alloydb_v1
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.25.0
4
+ version: 0.27.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Google LLC
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-10-27 00:00:00.000000000 Z
11
+ date: 2024-12-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: google-apis-core
@@ -58,7 +58,7 @@ licenses:
58
58
  metadata:
59
59
  bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
60
60
  changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-alloydb_v1/CHANGELOG.md
61
- documentation_uri: https://googleapis.dev/ruby/google-apis-alloydb_v1/v0.25.0
61
+ documentation_uri: https://googleapis.dev/ruby/google-apis-alloydb_v1/v0.27.0
62
62
  source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-alloydb_v1
63
63
  post_install_message:
64
64
  rdoc_options: []
@@ -75,7 +75,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
75
75
  - !ruby/object:Gem::Version
76
76
  version: '0'
77
77
  requirements: []
78
- rubygems_version: 3.5.21
78
+ rubygems_version: 3.5.22
79
79
  signing_key:
80
80
  specification_version: 4
81
81
  summary: Simple REST client for AlloyDB API V1