google-apis-alloydb_v1alpha 0.19.0 → 0.21.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: d3b015913c3fadf6e01831cd5bae33fa52db75e78779d0f5ed8ab12427fecf3d
4
+ data.tar.gz: a519754f8e8702b42662ee4756b5285a2382e05df2d6efc4cea26a85056ea978
5
5
  SHA512:
6
- metadata.gz: d81d3aace389529a6b6a30f5feb2d0a3590a66c281054643889694fd6394beaa9d46ad7db3015b51e8c7ee4098cdad40ffcbf2b417b2d04d820d625c67b85e80
7
- data.tar.gz: 9466a8f5ca9de428f23fc236022d562b1f7f20f94a5dc6fc3822012fcbddeae144654d437ee322a0c627552393fddace91e193e6984da9c360f7cf47ffd1c0f3
6
+ metadata.gz: 2bc4a527889c410919bf51d3874fe5b20f911c423f759a7b32e85d4c52f34fb9d1c6a951f895dff366066e3da05497c935b7fff9489b68dca2b53b71ca9b6b2d
7
+ data.tar.gz: cad5ccbb8c65b7e981f48c12d6eabf398f27edfa0b0c77a50ea90c07b3f1a53fcc1691b5761b5f0d778f9a93c995609b950c8a69dbe2db1bd2dcbc06fd0fe395
data/CHANGELOG.md CHANGED
@@ -1,5 +1,14 @@
1
1
  # Release history for google-apis-alloydb_v1alpha
2
2
 
3
+ ### v0.21.0 (2025-01-12)
4
+
5
+ * Regenerated from discovery document revision 20241228
6
+ * Regenerated using generator version 0.16.0
7
+
8
+ ### v0.20.0 (2024-12-15)
9
+
10
+ * Regenerated from discovery document revision 20241204
11
+
3
12
  ### v0.19.0 (2024-12-02)
4
13
 
5
14
  * 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
@@ -1989,25 +1986,25 @@ module Google
1989
1986
  class Node
1990
1987
  include Google::Apis::Core::Hashable
1991
1988
 
1992
- # The identifier of the VM e.g. "test-read-0601-407e52be-ms3l".
1989
+ # Output only. The identifier of the VM e.g. "test-read-0601-407e52be-ms3l".
1993
1990
  # Corresponds to the JSON property `id`
1994
1991
  # @return [String]
1995
1992
  attr_accessor :id
1996
1993
 
1997
- # The private IP address of the VM e.g. "10.57.0.34".
1994
+ # Output only. The private IP address of the VM e.g. "10.57.0.34".
1998
1995
  # Corresponds to the JSON property `ip`
1999
1996
  # @return [String]
2000
1997
  attr_accessor :ip
2001
1998
 
2002
- # Determined by state of the compute VM and postgres-service health. Compute VM
2003
- # state can have values listed in https://cloud.google.com/compute/docs/
2004
- # instances/instance-life-cycle and postgres-service health can have values:
1999
+ # Output only. Determined by state of the compute VM and postgres-service health.
2000
+ # Compute VM state can have values listed in https://cloud.google.com/compute/
2001
+ # docs/instances/instance-life-cycle and postgres-service health can have values:
2005
2002
  # HEALTHY and UNHEALTHY.
2006
2003
  # Corresponds to the JSON property `state`
2007
2004
  # @return [String]
2008
2005
  attr_accessor :state
2009
2006
 
2010
- # The Compute Engine zone of the VM e.g. "us-central1-b".
2007
+ # Output only. The Compute Engine zone of the VM e.g. "us-central1-b".
2011
2008
  # Corresponds to the JSON property `zoneId`
2012
2009
  # @return [String]
2013
2010
  attr_accessor :zone_id
@@ -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
@@ -3466,8 +3496,8 @@ module Google
3466
3496
  class StorageDatabasecenterPartnerapiV1mainMachineConfiguration
3467
3497
  include Google::Apis::Core::Hashable
3468
3498
 
3469
- # The number of CPUs. TODO(b/342344482, b/342346271) add proto validations again
3470
- # after bug fix.
3499
+ # The number of CPUs. Deprecated. Use vcpu_count instead. TODO(b/342344482, b/
3500
+ # 342346271) add proto validations again after bug fix.
3471
3501
  # Corresponds to the JSON property `cpuCount`
3472
3502
  # @return [Fixnum]
3473
3503
  attr_accessor :cpu_count
@@ -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.21.0"
20
20
 
21
21
  # Version of the code generator used to generate this client
22
- GENERATOR_VERSION = "0.15.1"
22
+ GENERATOR_VERSION = "0.16.0"
23
23
 
24
24
  # Revision of the discovery document this client was generated from
25
- REVISION = "20241106"
25
+ REVISION = "20241228"
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,13 @@
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.21.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Google LLC
8
- autorequire:
9
8
  bindir: bin
10
9
  cert_chain: []
11
- date: 2024-12-04 00:00:00.000000000 Z
10
+ date: 2025-01-12 00:00:00.000000000 Z
12
11
  dependencies:
13
12
  - !ruby/object:Gem::Dependency
14
13
  name: google-apis-core
@@ -58,9 +57,8 @@ licenses:
58
57
  metadata:
59
58
  bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
60
59
  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
60
+ documentation_uri: https://googleapis.dev/ruby/google-apis-alloydb_v1alpha/v0.21.0
62
61
  source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-alloydb_v1alpha
63
- post_install_message:
64
62
  rdoc_options: []
65
63
  require_paths:
66
64
  - lib
@@ -75,8 +73,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
75
73
  - !ruby/object:Gem::Version
76
74
  version: '0'
77
75
  requirements: []
78
- rubygems_version: 3.5.22
79
- signing_key:
76
+ rubygems_version: 3.6.2
80
77
  specification_version: 4
81
78
  summary: Simple REST client for AlloyDB API V1alpha
82
79
  test_files: []