google-apis-alloydb_v1 0.26.0 → 0.28.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: 84355936c244b5b1b3855caf7da54a4f9e73119e70b205d72c8981afa5c0be47
4
- data.tar.gz: e59aa0897bff6ecfb9c662a70b3d4b17ee3cb176970058018c724654b3453bde
3
+ metadata.gz: f13423a0a7dcb498a037d1524f2e9551b922f5b41f82644fc36d167e8e713f67
4
+ data.tar.gz: ac642aa9b03d8b115aaa82f218b1568e3ba620a4ac6eda28577196f7f777e18e
5
5
  SHA512:
6
- metadata.gz: 7e1403b003f06f1a749f861b053ac62779cbbf932225f91e60d7952b271d74ded45dbcf2729981fb63551cf4436c32e6d6e7b43930744269f0bef892b2fd5544
7
- data.tar.gz: 9999152da0d421dd0e350d5b15c84dffc1ca7262a59fee229d75f8b1a0df63d442f27d2059f640142c29118e2998b1fae5b7be136b87222688c7d9b75f428f9e
6
+ metadata.gz: b7593cc450c77fdf47258f96e25861751e1bd9b4e94cb126683f247759fb990ac4b8f76dca0d87dd391efdc78a2b140afd40789ba042b0e675e2a3e467dc67af
7
+ data.tar.gz: a5d7f331b1fce156bd2b652435f8bd01d136085580f6e6fba3bafed3b67514e000e201ea33045afd874ebe3df7ec217c33f16511a27938f6e487ff7dd1a21f7f
data/CHANGELOG.md CHANGED
@@ -1,5 +1,13 @@
1
1
  # Release history for google-apis-alloydb_v1
2
2
 
3
+ ### v0.28.0 (2024-12-15)
4
+
5
+ * Regenerated from discovery document revision 20241204
6
+
7
+ ### v0.27.0 (2024-11-24)
8
+
9
+ * Regenerated from discovery document revision 20241106
10
+
3
11
  ### v0.26.0 (2024-11-03)
4
12
 
5
13
  * Regenerated from discovery document revision 20241023
@@ -837,6 +837,49 @@ module Google
837
837
  end
838
838
  end
839
839
 
840
+ # Options for exporting data in CSV format.
841
+ class CsvExportOptions
842
+ include Google::Apis::Core::Hashable
843
+
844
+ # Optional. Specifies the character that should appear before a data character
845
+ # that needs to be escaped. The default is the same as quote character. The
846
+ # value of this argument has to be a character in Hex ASCII Code.
847
+ # Corresponds to the JSON property `escapeCharacter`
848
+ # @return [String]
849
+ attr_accessor :escape_character
850
+
851
+ # Optional. Specifies the character that separates columns within each row (line)
852
+ # of the file. The default is comma. The value of this argument has to be a
853
+ # character in Hex ASCII Code.
854
+ # Corresponds to the JSON property `fieldDelimiter`
855
+ # @return [String]
856
+ attr_accessor :field_delimiter
857
+
858
+ # Optional. Specifies the quoting character to be used when a data value is
859
+ # quoted. The default is double-quote. The value of this argument has to be a
860
+ # character in Hex ASCII Code.
861
+ # Corresponds to the JSON property `quoteCharacter`
862
+ # @return [String]
863
+ attr_accessor :quote_character
864
+
865
+ # Required. The SELECT query used to extract the data.
866
+ # Corresponds to the JSON property `selectQuery`
867
+ # @return [String]
868
+ attr_accessor :select_query
869
+
870
+ def initialize(**args)
871
+ update!(**args)
872
+ end
873
+
874
+ # Update properties of this object
875
+ def update!(**args)
876
+ @escape_character = args[:escape_character] if args.key?(:escape_character)
877
+ @field_delimiter = args[:field_delimiter] if args.key?(:field_delimiter)
878
+ @quote_character = args[:quote_character] if args.key?(:quote_character)
879
+ @select_query = args[:select_query] if args.key?(:select_query)
880
+ end
881
+ end
882
+
840
883
  # A generic empty message that you can re-use to avoid defining duplicated empty
841
884
  # messages in your APIs. A typical example is to use it as the request or the
842
885
  # response type of an API method. For instance: service Foo ` rpc Bar(google.
@@ -901,6 +944,64 @@ module Google
901
944
  end
902
945
  end
903
946
 
947
+ # Export cluster request.
948
+ class ExportClusterRequest
949
+ include Google::Apis::Core::Hashable
950
+
951
+ # Options for exporting data in CSV format.
952
+ # Corresponds to the JSON property `csvExportOptions`
953
+ # @return [Google::Apis::AlloydbV1::CsvExportOptions]
954
+ attr_accessor :csv_export_options
955
+
956
+ # Required. Name of the database where the export command will be executed. Note
957
+ # - Value provided should be the same as expected from `SELECT current_database()
958
+ # ;` and NOT as a resource reference.
959
+ # Corresponds to the JSON property `database`
960
+ # @return [String]
961
+ attr_accessor :database
962
+
963
+ # Destination for Export. Export will be done to cloud storage.
964
+ # Corresponds to the JSON property `gcsDestination`
965
+ # @return [Google::Apis::AlloydbV1::GcsDestination]
966
+ attr_accessor :gcs_destination
967
+
968
+ # Options for exporting data in SQL format.
969
+ # Corresponds to the JSON property `sqlExportOptions`
970
+ # @return [Google::Apis::AlloydbV1::SqlExportOptions]
971
+ attr_accessor :sql_export_options
972
+
973
+ def initialize(**args)
974
+ update!(**args)
975
+ end
976
+
977
+ # Update properties of this object
978
+ def update!(**args)
979
+ @csv_export_options = args[:csv_export_options] if args.key?(:csv_export_options)
980
+ @database = args[:database] if args.key?(:database)
981
+ @gcs_destination = args[:gcs_destination] if args.key?(:gcs_destination)
982
+ @sql_export_options = args[:sql_export_options] if args.key?(:sql_export_options)
983
+ end
984
+ end
985
+
986
+ # Response of export cluster rpc.
987
+ class ExportClusterResponse
988
+ include Google::Apis::Core::Hashable
989
+
990
+ # Destination for Export. Export will be done to cloud storage.
991
+ # Corresponds to the JSON property `gcsDestination`
992
+ # @return [Google::Apis::AlloydbV1::GcsDestination]
993
+ attr_accessor :gcs_destination
994
+
995
+ def initialize(**args)
996
+ update!(**args)
997
+ end
998
+
999
+ # Update properties of this object
1000
+ def update!(**args)
1001
+ @gcs_destination = args[:gcs_destination] if args.key?(:gcs_destination)
1002
+ end
1003
+ end
1004
+
904
1005
  # Message for triggering failover on an Instance
905
1006
  class FailoverInstanceRequest
906
1007
  include Google::Apis::Core::Hashable
@@ -938,6 +1039,26 @@ module Google
938
1039
  end
939
1040
  end
940
1041
 
1042
+ # Destination for Export. Export will be done to cloud storage.
1043
+ class GcsDestination
1044
+ include Google::Apis::Core::Hashable
1045
+
1046
+ # Required. The path to the file in Google Cloud Storage where the export will
1047
+ # be stored. The URI is in the form `gs://bucketName/fileName`.
1048
+ # Corresponds to the JSON property `uri`
1049
+ # @return [String]
1050
+ attr_accessor :uri
1051
+
1052
+ def initialize(**args)
1053
+ update!(**args)
1054
+ end
1055
+
1056
+ # Update properties of this object
1057
+ def update!(**args)
1058
+ @uri = args[:uri] if args.key?(:uri)
1059
+ end
1060
+ end
1061
+
941
1062
  # The response message for Locations.ListLocations.
942
1063
  class GoogleCloudLocationListLocationsResponse
943
1064
  include Google::Apis::Core::Hashable
@@ -1856,9 +1977,9 @@ module Google
1856
1977
  attr_accessor :end_time
1857
1978
 
1858
1979
  # Output only. Identifies whether the user has requested cancellation of the
1859
- # operation. Operations that have successfully been cancelled have Operation.
1860
- # error value with a google.rpc.Status.code of 1, corresponding to `Code.
1861
- # CANCELLED`.
1980
+ # operation. Operations that have successfully been cancelled have google.
1981
+ # longrunning.Operation.error value with a google.rpc.Status.code of 1,
1982
+ # corresponding to `Code.CANCELLED`.
1862
1983
  # Corresponds to the JSON property `requestedCancellation`
1863
1984
  # @return [Boolean]
1864
1985
  attr_accessor :requested_cancellation
@@ -2262,6 +2383,48 @@ module Google
2262
2383
  end
2263
2384
  end
2264
2385
 
2386
+ # Options for exporting data in SQL format.
2387
+ class SqlExportOptions
2388
+ include Google::Apis::Core::Hashable
2389
+
2390
+ # Optional. If true, output commands to DROP all the dumped database objects
2391
+ # prior to outputting the commands for creating them.
2392
+ # Corresponds to the JSON property `cleanTargetObjects`
2393
+ # @return [Boolean]
2394
+ attr_accessor :clean_target_objects
2395
+ alias_method :clean_target_objects?, :clean_target_objects
2396
+
2397
+ # Optional. If true, use DROP ... IF EXISTS commands to check for the object's
2398
+ # existence before dropping it in clean_target_objects mode.
2399
+ # Corresponds to the JSON property `ifExistTargetObjects`
2400
+ # @return [Boolean]
2401
+ attr_accessor :if_exist_target_objects
2402
+ alias_method :if_exist_target_objects?, :if_exist_target_objects
2403
+
2404
+ # Optional. If true, only export the schema.
2405
+ # Corresponds to the JSON property `schemaOnly`
2406
+ # @return [Boolean]
2407
+ attr_accessor :schema_only
2408
+ alias_method :schema_only?, :schema_only
2409
+
2410
+ # Optional. Tables to export from.
2411
+ # Corresponds to the JSON property `tables`
2412
+ # @return [Array<String>]
2413
+ attr_accessor :tables
2414
+
2415
+ def initialize(**args)
2416
+ update!(**args)
2417
+ end
2418
+
2419
+ # Update properties of this object
2420
+ def update!(**args)
2421
+ @clean_target_objects = args[:clean_target_objects] if args.key?(:clean_target_objects)
2422
+ @if_exist_target_objects = args[:if_exist_target_objects] if args.key?(:if_exist_target_objects)
2423
+ @schema_only = args[:schema_only] if args.key?(:schema_only)
2424
+ @tables = args[:tables] if args.key?(:tables)
2425
+ end
2426
+ end
2427
+
2265
2428
  # SSL configuration.
2266
2429
  class SslConfig
2267
2430
  include Google::Apis::Core::Hashable
@@ -3068,6 +3231,12 @@ module Google
3068
3231
  # @return [Fixnum]
3069
3232
  attr_accessor :shard_count
3070
3233
 
3234
+ # Optional. The number of vCPUs. TODO(b/342344482, b/342346271) add proto
3235
+ # validations again after bug fix.
3236
+ # Corresponds to the JSON property `vcpuCount`
3237
+ # @return [Float]
3238
+ attr_accessor :vcpu_count
3239
+
3071
3240
  def initialize(**args)
3072
3241
  update!(**args)
3073
3242
  end
@@ -3077,6 +3246,7 @@ module Google
3077
3246
  @cpu_count = args[:cpu_count] if args.key?(:cpu_count)
3078
3247
  @memory_size_in_bytes = args[:memory_size_in_bytes] if args.key?(:memory_size_in_bytes)
3079
3248
  @shard_count = args[:shard_count] if args.key?(:shard_count)
3249
+ @vcpu_count = args[:vcpu_count] if args.key?(:vcpu_count)
3080
3250
  end
3081
3251
  end
3082
3252
 
@@ -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.26.0"
19
+ GEM_VERSION = "0.28.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 = "20241023"
25
+ REVISION = "20241204"
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
 
@@ -328,6 +352,12 @@ module Google
328
352
  include Google::Apis::Core::JsonObjectSupport
329
353
  end
330
354
 
355
+ class SqlExportOptions
356
+ class Representation < Google::Apis::Core::JsonRepresentation; end
357
+
358
+ include Google::Apis::Core::JsonObjectSupport
359
+ end
360
+
331
361
  class SslConfig
332
362
  class Representation < Google::Apis::Core::JsonRepresentation; end
333
363
 
@@ -722,6 +752,16 @@ module Google
722
752
  end
723
753
  end
724
754
 
755
+ class CsvExportOptions
756
+ # @private
757
+ class Representation < Google::Apis::Core::JsonRepresentation
758
+ property :escape_character, as: 'escapeCharacter'
759
+ property :field_delimiter, as: 'fieldDelimiter'
760
+ property :quote_character, as: 'quoteCharacter'
761
+ property :select_query, as: 'selectQuery'
762
+ end
763
+ end
764
+
725
765
  class Empty
726
766
  # @private
727
767
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -743,6 +783,27 @@ module Google
743
783
  end
744
784
  end
745
785
 
786
+ class ExportClusterRequest
787
+ # @private
788
+ class Representation < Google::Apis::Core::JsonRepresentation
789
+ property :csv_export_options, as: 'csvExportOptions', class: Google::Apis::AlloydbV1::CsvExportOptions, decorator: Google::Apis::AlloydbV1::CsvExportOptions::Representation
790
+
791
+ property :database, as: 'database'
792
+ property :gcs_destination, as: 'gcsDestination', class: Google::Apis::AlloydbV1::GcsDestination, decorator: Google::Apis::AlloydbV1::GcsDestination::Representation
793
+
794
+ property :sql_export_options, as: 'sqlExportOptions', class: Google::Apis::AlloydbV1::SqlExportOptions, decorator: Google::Apis::AlloydbV1::SqlExportOptions::Representation
795
+
796
+ end
797
+ end
798
+
799
+ class ExportClusterResponse
800
+ # @private
801
+ class Representation < Google::Apis::Core::JsonRepresentation
802
+ property :gcs_destination, as: 'gcsDestination', class: Google::Apis::AlloydbV1::GcsDestination, decorator: Google::Apis::AlloydbV1::GcsDestination::Representation
803
+
804
+ end
805
+ end
806
+
746
807
  class FailoverInstanceRequest
747
808
  # @private
748
809
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -751,6 +812,13 @@ module Google
751
812
  end
752
813
  end
753
814
 
815
+ class GcsDestination
816
+ # @private
817
+ class Representation < Google::Apis::Core::JsonRepresentation
818
+ property :uri, as: 'uri'
819
+ end
820
+ end
821
+
754
822
  class GoogleCloudLocationListLocationsResponse
755
823
  # @private
756
824
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -1094,6 +1162,16 @@ module Google
1094
1162
  end
1095
1163
  end
1096
1164
 
1165
+ class SqlExportOptions
1166
+ # @private
1167
+ class Representation < Google::Apis::Core::JsonRepresentation
1168
+ property :clean_target_objects, as: 'cleanTargetObjects'
1169
+ property :if_exist_target_objects, as: 'ifExistTargetObjects'
1170
+ property :schema_only, as: 'schemaOnly'
1171
+ collection :tables, as: 'tables'
1172
+ end
1173
+ end
1174
+
1097
1175
  class SslConfig
1098
1176
  # @private
1099
1177
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -1298,6 +1376,7 @@ module Google
1298
1376
  property :cpu_count, as: 'cpuCount'
1299
1377
  property :memory_size_in_bytes, :numeric_string => true, as: 'memorySizeInBytes'
1300
1378
  property :shard_count, as: 'shardCount'
1379
+ property :vcpu_count, as: 'vcpuCount'
1301
1380
  end
1302
1381
  end
1303
1382
 
@@ -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
@@ -1524,8 +1557,8 @@ module Google
1524
1557
  # Clients can use Operations.GetOperation or other methods to check whether the
1525
1558
  # cancellation succeeded or whether the operation completed despite cancellation.
1526
1559
  # On successful cancellation, the operation is not deleted; instead, it becomes
1527
- # an operation with an Operation.error value with a google.rpc.Status.code of 1,
1528
- # corresponding to `Code.CANCELLED`.
1560
+ # an operation with an Operation.error value with a google.rpc.Status.code of `1`
1561
+ # , corresponding to `Code.CANCELLED`.
1529
1562
  # @param [String] name
1530
1563
  # The name of the operation resource to be cancelled.
1531
1564
  # @param [Google::Apis::AlloydbV1::CancelOperationRequest] cancel_operation_request_object
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.26.0
4
+ version: 0.28.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-11-03 00:00:00.000000000 Z
11
+ date: 2024-12-15 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.26.0
61
+ documentation_uri: https://googleapis.dev/ruby/google-apis-alloydb_v1/v0.28.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.23
79
79
  signing_key:
80
80
  specification_version: 4
81
81
  summary: Simple REST client for AlloyDB API V1