google-apis-alloydb_v1alpha 0.19.0 → 0.20.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: dd3b7ad439cdc291b5ddee4aa54added097733bd7b018e71942002272b6e6df4
4
- data.tar.gz: a418f8c2bde2396cc499cc217320db8167e03f30fa650162f8dac1d7f623cc57
3
+ metadata.gz: 23077f4a74add414c5f348d491a73900c6a4264d1a09f616806674a8f1967fba
4
+ data.tar.gz: a754a745d49b529538ccb4f46431e455eef28ff498e4a0b372cc2852085c5934
5
5
  SHA512:
6
- metadata.gz: d81d3aace389529a6b6a30f5feb2d0a3590a66c281054643889694fd6394beaa9d46ad7db3015b51e8c7ee4098cdad40ffcbf2b417b2d04d820d625c67b85e80
7
- data.tar.gz: 9466a8f5ca9de428f23fc236022d562b1f7f20f94a5dc6fc3822012fcbddeae144654d437ee322a0c627552393fddace91e193e6984da9c360f7cf47ffd1c0f3
6
+ metadata.gz: ea273d134a0077f97eb6c2a9d46e19ae3d994c57dba4a9fda71c94a3d1835c7144071180c11c0caa58d58988a8b65f1dc992d620a9a5743dd5d2c8d99ed1014f
7
+ data.tar.gz: 5c9ba1605ff31196e66eb68c8f7123aa915b1f460d2d76614392fca490cdf52663526cbeb7da9608a526924f416305f8a20de7a7050e936e1f40cb907a7563e0
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # Release history for google-apis-alloydb_v1alpha
2
2
 
3
+ ### v0.20.0 (2024-12-15)
4
+
5
+ * Regenerated from discovery document revision 20241204
6
+
3
7
  ### v0.19.0 (2024-12-02)
4
8
 
5
9
  * Regenerated from discovery document revision 20241106
@@ -909,8 +909,7 @@ module Google
909
909
  end
910
910
  end
911
911
 
912
- # Options for exporting data in CSV format. For now, we only support a query to
913
- # get the data that needs to be exported.
912
+ # Options for exporting data in CSV format.
914
913
  class CsvExportOptions
915
914
  include Google::Apis::Core::Hashable
916
915
 
@@ -935,7 +934,7 @@ module Google
935
934
  # @return [String]
936
935
  attr_accessor :quote_character
937
936
 
938
- # Required. The select_query used to extract the data.
937
+ # Required. The SELECT query used to extract the data.
939
938
  # Corresponds to the JSON property `selectQuery`
940
939
  # @return [String]
941
940
  attr_accessor :select_query
@@ -1021,15 +1020,14 @@ module Google
1021
1020
  class ExportClusterRequest
1022
1021
  include Google::Apis::Core::Hashable
1023
1022
 
1024
- # Options for exporting data in CSV format. For now, we only support a query to
1025
- # get the data that needs to be exported.
1023
+ # Options for exporting data in CSV format.
1026
1024
  # Corresponds to the JSON property `csvExportOptions`
1027
1025
  # @return [Google::Apis::AlloydbV1alpha::CsvExportOptions]
1028
1026
  attr_accessor :csv_export_options
1029
1027
 
1030
- # Required. Name of the database where the query will be executed. Note - Value
1031
- # provided should be the same as expected from `SELECT current_database();` and
1032
- # NOT as a resource reference.
1028
+ # Required. Name of the database where the export command will be executed. Note
1029
+ # - Value provided should be the same as expected from `SELECT current_database()
1030
+ # ;` and NOT as a resource reference.
1033
1031
  # Corresponds to the JSON property `database`
1034
1032
  # @return [String]
1035
1033
  attr_accessor :database
@@ -1099,8 +1097,7 @@ module Google
1099
1097
  include Google::Apis::Core::Hashable
1100
1098
 
1101
1099
  # Required. The path to the file in Google Cloud Storage where the export will
1102
- # be stored. The URI is in the form `gs://bucketName/fileName`. If the file
1103
- # already exists, the request succeeds, but the operation fails.
1100
+ # be stored. The URI is in the form `gs://bucketName/fileName`.
1104
1101
  # Corresponds to the JSON property `uri`
1105
1102
  # @return [String]
1106
1103
  attr_accessor :uri
@@ -2191,9 +2188,9 @@ module Google
2191
2188
  attr_accessor :end_time
2192
2189
 
2193
2190
  # Output only. Identifies whether the user has requested cancellation of the
2194
- # operation. Operations that have successfully been cancelled have Operation.
2195
- # error value with a google.rpc.Status.code of 1, corresponding to `Code.
2196
- # CANCELLED`.
2191
+ # operation. Operations that have successfully been cancelled have google.
2192
+ # longrunning.Operation.error value with a google.rpc.Status.code of 1,
2193
+ # corresponding to `Code.CANCELLED`.
2197
2194
  # Corresponds to the JSON property `requestedCancellation`
2198
2195
  # @return [Boolean]
2199
2196
  attr_accessor :requested_cancellation
@@ -2614,6 +2611,39 @@ module Google
2614
2611
  end
2615
2612
  end
2616
2613
 
2614
+ # Message for registering Restoring from CloudSQL resource.
2615
+ class RestoreFromCloudSqlRequest
2616
+ include Google::Apis::Core::Hashable
2617
+
2618
+ # The source CloudSQL backup resource.
2619
+ # Corresponds to the JSON property `cloudsqlBackupRunSource`
2620
+ # @return [Google::Apis::AlloydbV1alpha::CloudSqlBackupRunSource]
2621
+ attr_accessor :cloudsql_backup_run_source
2622
+
2623
+ # A cluster is a collection of regional AlloyDB resources. It can include a
2624
+ # primary instance and one or more read pool instances. All cluster resources
2625
+ # share a storage layer, which scales as needed.
2626
+ # Corresponds to the JSON property `cluster`
2627
+ # @return [Google::Apis::AlloydbV1alpha::Cluster]
2628
+ attr_accessor :cluster
2629
+
2630
+ # Required. ID of the requesting object.
2631
+ # Corresponds to the JSON property `clusterId`
2632
+ # @return [String]
2633
+ attr_accessor :cluster_id
2634
+
2635
+ def initialize(**args)
2636
+ update!(**args)
2637
+ end
2638
+
2639
+ # Update properties of this object
2640
+ def update!(**args)
2641
+ @cloudsql_backup_run_source = args[:cloudsql_backup_run_source] if args.key?(:cloudsql_backup_run_source)
2642
+ @cluster = args[:cluster] if args.key?(:cluster)
2643
+ @cluster_id = args[:cluster_id] if args.key?(:cluster_id)
2644
+ end
2645
+ end
2646
+
2617
2647
  # Configuration information for the secondary cluster. This should be set if and
2618
2648
  # only if the cluster is of type SECONDARY.
2619
2649
  class SecondaryConfig
@@ -3483,6 +3513,12 @@ module Google
3483
3513
  # @return [Fixnum]
3484
3514
  attr_accessor :shard_count
3485
3515
 
3516
+ # Optional. The number of vCPUs. TODO(b/342344482, b/342346271) add proto
3517
+ # validations again after bug fix.
3518
+ # Corresponds to the JSON property `vcpuCount`
3519
+ # @return [Float]
3520
+ attr_accessor :vcpu_count
3521
+
3486
3522
  def initialize(**args)
3487
3523
  update!(**args)
3488
3524
  end
@@ -3492,6 +3528,7 @@ module Google
3492
3528
  @cpu_count = args[:cpu_count] if args.key?(:cpu_count)
3493
3529
  @memory_size_in_bytes = args[:memory_size_in_bytes] if args.key?(:memory_size_in_bytes)
3494
3530
  @shard_count = args[:shard_count] if args.key?(:shard_count)
3531
+ @vcpu_count = args[:vcpu_count] if args.key?(:vcpu_count)
3495
3532
  end
3496
3533
  end
3497
3534
 
@@ -16,13 +16,13 @@ module Google
16
16
  module Apis
17
17
  module AlloydbV1alpha
18
18
  # Version of the google-apis-alloydb_v1alpha gem
19
- GEM_VERSION = "0.19.0"
19
+ GEM_VERSION = "0.20.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 = "20241106"
25
+ REVISION = "20241204"
26
26
  end
27
27
  end
28
28
  end
@@ -370,6 +370,12 @@ module Google
370
370
  include Google::Apis::Core::JsonObjectSupport
371
371
  end
372
372
 
373
+ class RestoreFromCloudSqlRequest
374
+ class Representation < Google::Apis::Core::JsonRepresentation; end
375
+
376
+ include Google::Apis::Core::JsonObjectSupport
377
+ end
378
+
373
379
  class SecondaryConfig
374
380
  class Representation < Google::Apis::Core::JsonRepresentation; end
375
381
 
@@ -1240,6 +1246,17 @@ module Google
1240
1246
  end
1241
1247
  end
1242
1248
 
1249
+ class RestoreFromCloudSqlRequest
1250
+ # @private
1251
+ class Representation < Google::Apis::Core::JsonRepresentation
1252
+ property :cloudsql_backup_run_source, as: 'cloudsqlBackupRunSource', class: Google::Apis::AlloydbV1alpha::CloudSqlBackupRunSource, decorator: Google::Apis::AlloydbV1alpha::CloudSqlBackupRunSource::Representation
1253
+
1254
+ property :cluster, as: 'cluster', class: Google::Apis::AlloydbV1alpha::Cluster, decorator: Google::Apis::AlloydbV1alpha::Cluster::Representation
1255
+
1256
+ property :cluster_id, as: 'clusterId'
1257
+ end
1258
+ end
1259
+
1243
1260
  class SecondaryConfig
1244
1261
  # @private
1245
1262
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -1461,6 +1478,7 @@ module Google
1461
1478
  property :cpu_count, as: 'cpuCount'
1462
1479
  property :memory_size_in_bytes, :numeric_string => true, as: 'memorySizeInBytes'
1463
1480
  property :shard_count, as: 'shardCount'
1481
+ property :vcpu_count, as: 'vcpuCount'
1464
1482
  end
1465
1483
  end
1466
1484
 
@@ -793,6 +793,40 @@ module Google
793
793
  execute_or_queue_command(command, &block)
794
794
  end
795
795
 
796
+ # Restores an AlloyDB cluster from a CloudSQL resource.
797
+ # @param [String] parent
798
+ # Required. The location of the new cluster. For the required format, see the
799
+ # comment on Cluster.name field.
800
+ # @param [Google::Apis::AlloydbV1alpha::RestoreFromCloudSqlRequest] restore_from_cloud_sql_request_object
801
+ # @param [String] fields
802
+ # Selector specifying which fields to include in a partial response.
803
+ # @param [String] quota_user
804
+ # Available to use for quota purposes for server-side applications. Can be any
805
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
806
+ # @param [Google::Apis::RequestOptions] options
807
+ # Request-specific options
808
+ #
809
+ # @yield [result, err] Result & error if block supplied
810
+ # @yieldparam result [Google::Apis::AlloydbV1alpha::Operation] parsed result object
811
+ # @yieldparam err [StandardError] error object if request failed
812
+ #
813
+ # @return [Google::Apis::AlloydbV1alpha::Operation]
814
+ #
815
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
816
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
817
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
818
+ def restore_cluster_from_cloud_sql(parent, restore_from_cloud_sql_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
819
+ command = make_simple_command(:post, 'v1alpha/{+parent}/clusters:restoreFromCloudSQL', options)
820
+ command.request_representation = Google::Apis::AlloydbV1alpha::RestoreFromCloudSqlRequest::Representation
821
+ command.request_object = restore_from_cloud_sql_request_object
822
+ command.response_representation = Google::Apis::AlloydbV1alpha::Operation::Representation
823
+ command.response_class = Google::Apis::AlloydbV1alpha::Operation
824
+ command.params['parent'] = parent unless parent.nil?
825
+ command.query['fields'] = fields unless fields.nil?
826
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
827
+ execute_or_queue_command(command, &block)
828
+ end
829
+
796
830
  # Switches the roles of PRIMARY and SECONDARY clusters without any data loss.
797
831
  # This promotes the SECONDARY cluster to PRIMARY and sets up the original
798
832
  # PRIMARY cluster to replicate from this newly promoted cluster.
@@ -1557,8 +1591,8 @@ module Google
1557
1591
  # Clients can use Operations.GetOperation or other methods to check whether the
1558
1592
  # cancellation succeeded or whether the operation completed despite cancellation.
1559
1593
  # On successful cancellation, the operation is not deleted; instead, it becomes
1560
- # an operation with an Operation.error value with a google.rpc.Status.code of 1,
1561
- # corresponding to `Code.CANCELLED`.
1594
+ # an operation with an Operation.error value with a google.rpc.Status.code of `1`
1595
+ # , corresponding to `Code.CANCELLED`.
1562
1596
  # @param [String] name
1563
1597
  # The name of the operation resource to be cancelled.
1564
1598
  # @param [Google::Apis::AlloydbV1alpha::CancelOperationRequest] cancel_operation_request_object
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-apis-alloydb_v1alpha
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.19.0
4
+ version: 0.20.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-12-04 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_v1alpha/CHANGELOG.md
61
- documentation_uri: https://googleapis.dev/ruby/google-apis-alloydb_v1alpha/v0.19.0
61
+ documentation_uri: https://googleapis.dev/ruby/google-apis-alloydb_v1alpha/v0.20.0
62
62
  source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-alloydb_v1alpha
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.22
78
+ rubygems_version: 3.5.23
79
79
  signing_key:
80
80
  specification_version: 4
81
81
  summary: Simple REST client for AlloyDB API V1alpha