google-apis-alloydb_v1beta 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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8d3310fb543c98d91a0614727218701c7f29406eeabd7b3e8ad9372745fb974c
|
4
|
+
data.tar.gz: 91c2e412812f5cced2a2b7e888f9704cde4f9363ca4eeb536bca73aaca4c5782
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1870e416273f84c6b8fce1fd9b3120227782e75fabf2bc11e502f3c8e799f5e83b5a605a69d0489d62b928be648292dabb13afe500a6c267a9b364917f9fde4f
|
7
|
+
data.tar.gz: 2f241fe3755b2f6f4063733f7f7b20c9ecdc68851218479db752a3a15abc58190cb06702937ef26c5f5435a9c1c5d279379839a72a4fc3b1c85880fe557086b7
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,14 @@
|
|
1
1
|
# Release history for google-apis-alloydb_v1beta
|
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
|
@@ -882,8 +882,7 @@ module Google
|
|
882
882
|
end
|
883
883
|
end
|
884
884
|
|
885
|
-
# Options for exporting data in CSV format.
|
886
|
-
# get the data that needs to be exported.
|
885
|
+
# Options for exporting data in CSV format.
|
887
886
|
class CsvExportOptions
|
888
887
|
include Google::Apis::Core::Hashable
|
889
888
|
|
@@ -908,7 +907,7 @@ module Google
|
|
908
907
|
# @return [String]
|
909
908
|
attr_accessor :quote_character
|
910
909
|
|
911
|
-
# Required. The
|
910
|
+
# Required. The SELECT query used to extract the data.
|
912
911
|
# Corresponds to the JSON property `selectQuery`
|
913
912
|
# @return [String]
|
914
913
|
attr_accessor :select_query
|
@@ -994,15 +993,14 @@ module Google
|
|
994
993
|
class ExportClusterRequest
|
995
994
|
include Google::Apis::Core::Hashable
|
996
995
|
|
997
|
-
# Options for exporting data in CSV format.
|
998
|
-
# get the data that needs to be exported.
|
996
|
+
# Options for exporting data in CSV format.
|
999
997
|
# Corresponds to the JSON property `csvExportOptions`
|
1000
998
|
# @return [Google::Apis::AlloydbV1beta::CsvExportOptions]
|
1001
999
|
attr_accessor :csv_export_options
|
1002
1000
|
|
1003
|
-
# Required. Name of the database where the
|
1004
|
-
# provided should be the same as expected from `SELECT current_database()
|
1005
|
-
# NOT as a resource reference.
|
1001
|
+
# Required. Name of the database where the export command will be executed. Note
|
1002
|
+
# - Value provided should be the same as expected from `SELECT current_database()
|
1003
|
+
# ;` and NOT as a resource reference.
|
1006
1004
|
# Corresponds to the JSON property `database`
|
1007
1005
|
# @return [String]
|
1008
1006
|
attr_accessor :database
|
@@ -1072,8 +1070,7 @@ module Google
|
|
1072
1070
|
include Google::Apis::Core::Hashable
|
1073
1071
|
|
1074
1072
|
# Required. The path to the file in Google Cloud Storage where the export will
|
1075
|
-
# be stored. The URI is in the form `gs://bucketName/fileName`.
|
1076
|
-
# already exists, the request succeeds, but the operation fails.
|
1073
|
+
# be stored. The URI is in the form `gs://bucketName/fileName`.
|
1077
1074
|
# Corresponds to the JSON property `uri`
|
1078
1075
|
# @return [String]
|
1079
1076
|
attr_accessor :uri
|
@@ -1955,25 +1952,25 @@ module Google
|
|
1955
1952
|
class Node
|
1956
1953
|
include Google::Apis::Core::Hashable
|
1957
1954
|
|
1958
|
-
# The identifier of the VM e.g. "test-read-0601-407e52be-ms3l".
|
1955
|
+
# Output only. The identifier of the VM e.g. "test-read-0601-407e52be-ms3l".
|
1959
1956
|
# Corresponds to the JSON property `id`
|
1960
1957
|
# @return [String]
|
1961
1958
|
attr_accessor :id
|
1962
1959
|
|
1963
|
-
# The private IP address of the VM e.g. "10.57.0.34".
|
1960
|
+
# Output only. The private IP address of the VM e.g. "10.57.0.34".
|
1964
1961
|
# Corresponds to the JSON property `ip`
|
1965
1962
|
# @return [String]
|
1966
1963
|
attr_accessor :ip
|
1967
1964
|
|
1968
|
-
# Determined by state of the compute VM and postgres-service health.
|
1969
|
-
# state can have values listed in https://cloud.google.com/compute/
|
1970
|
-
# instances/instance-life-cycle and postgres-service health can have values:
|
1965
|
+
# Output only. Determined by state of the compute VM and postgres-service health.
|
1966
|
+
# Compute VM state can have values listed in https://cloud.google.com/compute/
|
1967
|
+
# docs/instances/instance-life-cycle and postgres-service health can have values:
|
1971
1968
|
# HEALTHY and UNHEALTHY.
|
1972
1969
|
# Corresponds to the JSON property `state`
|
1973
1970
|
# @return [String]
|
1974
1971
|
attr_accessor :state
|
1975
1972
|
|
1976
|
-
# The Compute Engine zone of the VM e.g. "us-central1-b".
|
1973
|
+
# Output only. The Compute Engine zone of the VM e.g. "us-central1-b".
|
1977
1974
|
# Corresponds to the JSON property `zoneId`
|
1978
1975
|
# @return [String]
|
1979
1976
|
attr_accessor :zone_id
|
@@ -2157,9 +2154,9 @@ module Google
|
|
2157
2154
|
attr_accessor :end_time
|
2158
2155
|
|
2159
2156
|
# Output only. Identifies whether the user has requested cancellation of the
|
2160
|
-
# operation. Operations that have successfully been cancelled have
|
2161
|
-
# error value with a google.rpc.Status.code of 1,
|
2162
|
-
# CANCELLED`.
|
2157
|
+
# operation. Operations that have successfully been cancelled have google.
|
2158
|
+
# longrunning.Operation.error value with a google.rpc.Status.code of 1,
|
2159
|
+
# corresponding to `Code.CANCELLED`.
|
2163
2160
|
# Corresponds to the JSON property `requestedCancellation`
|
2164
2161
|
# @return [Boolean]
|
2165
2162
|
attr_accessor :requested_cancellation
|
@@ -2542,6 +2539,39 @@ module Google
|
|
2542
2539
|
end
|
2543
2540
|
end
|
2544
2541
|
|
2542
|
+
# Message for registering Restoring from CloudSQL resource.
|
2543
|
+
class RestoreFromCloudSqlRequest
|
2544
|
+
include Google::Apis::Core::Hashable
|
2545
|
+
|
2546
|
+
# The source CloudSQL backup resource.
|
2547
|
+
# Corresponds to the JSON property `cloudsqlBackupRunSource`
|
2548
|
+
# @return [Google::Apis::AlloydbV1beta::CloudSqlBackupRunSource]
|
2549
|
+
attr_accessor :cloudsql_backup_run_source
|
2550
|
+
|
2551
|
+
# A cluster is a collection of regional AlloyDB resources. It can include a
|
2552
|
+
# primary instance and one or more read pool instances. All cluster resources
|
2553
|
+
# share a storage layer, which scales as needed.
|
2554
|
+
# Corresponds to the JSON property `cluster`
|
2555
|
+
# @return [Google::Apis::AlloydbV1beta::Cluster]
|
2556
|
+
attr_accessor :cluster
|
2557
|
+
|
2558
|
+
# Required. ID of the requesting object.
|
2559
|
+
# Corresponds to the JSON property `clusterId`
|
2560
|
+
# @return [String]
|
2561
|
+
attr_accessor :cluster_id
|
2562
|
+
|
2563
|
+
def initialize(**args)
|
2564
|
+
update!(**args)
|
2565
|
+
end
|
2566
|
+
|
2567
|
+
# Update properties of this object
|
2568
|
+
def update!(**args)
|
2569
|
+
@cloudsql_backup_run_source = args[:cloudsql_backup_run_source] if args.key?(:cloudsql_backup_run_source)
|
2570
|
+
@cluster = args[:cluster] if args.key?(:cluster)
|
2571
|
+
@cluster_id = args[:cluster_id] if args.key?(:cluster_id)
|
2572
|
+
end
|
2573
|
+
end
|
2574
|
+
|
2545
2575
|
# Configuration information for the secondary cluster. This should be set if and
|
2546
2576
|
# only if the cluster is of type SECONDARY.
|
2547
2577
|
class SecondaryConfig
|
@@ -3394,8 +3424,8 @@ module Google
|
|
3394
3424
|
class StorageDatabasecenterPartnerapiV1mainMachineConfiguration
|
3395
3425
|
include Google::Apis::Core::Hashable
|
3396
3426
|
|
3397
|
-
# The number of CPUs. TODO(b/342344482, b/
|
3398
|
-
# after bug fix.
|
3427
|
+
# The number of CPUs. Deprecated. Use vcpu_count instead. TODO(b/342344482, b/
|
3428
|
+
# 342346271) add proto validations again after bug fix.
|
3399
3429
|
# Corresponds to the JSON property `cpuCount`
|
3400
3430
|
# @return [Fixnum]
|
3401
3431
|
attr_accessor :cpu_count
|
@@ -3411,6 +3441,12 @@ module Google
|
|
3411
3441
|
# @return [Fixnum]
|
3412
3442
|
attr_accessor :shard_count
|
3413
3443
|
|
3444
|
+
# Optional. The number of vCPUs. TODO(b/342344482, b/342346271) add proto
|
3445
|
+
# validations again after bug fix.
|
3446
|
+
# Corresponds to the JSON property `vcpuCount`
|
3447
|
+
# @return [Float]
|
3448
|
+
attr_accessor :vcpu_count
|
3449
|
+
|
3414
3450
|
def initialize(**args)
|
3415
3451
|
update!(**args)
|
3416
3452
|
end
|
@@ -3420,6 +3456,7 @@ module Google
|
|
3420
3456
|
@cpu_count = args[:cpu_count] if args.key?(:cpu_count)
|
3421
3457
|
@memory_size_in_bytes = args[:memory_size_in_bytes] if args.key?(:memory_size_in_bytes)
|
3422
3458
|
@shard_count = args[:shard_count] if args.key?(:shard_count)
|
3459
|
+
@vcpu_count = args[:vcpu_count] if args.key?(:vcpu_count)
|
3423
3460
|
end
|
3424
3461
|
end
|
3425
3462
|
|
@@ -16,13 +16,13 @@ module Google
|
|
16
16
|
module Apis
|
17
17
|
module AlloydbV1beta
|
18
18
|
# Version of the google-apis-alloydb_v1beta gem
|
19
|
-
GEM_VERSION = "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.
|
22
|
+
GENERATOR_VERSION = "0.16.0"
|
23
23
|
|
24
24
|
# Revision of the discovery document this client was generated from
|
25
|
-
REVISION = "
|
25
|
+
REVISION = "20241228"
|
26
26
|
end
|
27
27
|
end
|
28
28
|
end
|
@@ -358,6 +358,12 @@ module Google
|
|
358
358
|
include Google::Apis::Core::JsonObjectSupport
|
359
359
|
end
|
360
360
|
|
361
|
+
class RestoreFromCloudSqlRequest
|
362
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
363
|
+
|
364
|
+
include Google::Apis::Core::JsonObjectSupport
|
365
|
+
end
|
366
|
+
|
361
367
|
class SecondaryConfig
|
362
368
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
363
369
|
|
@@ -1209,6 +1215,17 @@ module Google
|
|
1209
1215
|
end
|
1210
1216
|
end
|
1211
1217
|
|
1218
|
+
class RestoreFromCloudSqlRequest
|
1219
|
+
# @private
|
1220
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
1221
|
+
property :cloudsql_backup_run_source, as: 'cloudsqlBackupRunSource', class: Google::Apis::AlloydbV1beta::CloudSqlBackupRunSource, decorator: Google::Apis::AlloydbV1beta::CloudSqlBackupRunSource::Representation
|
1222
|
+
|
1223
|
+
property :cluster, as: 'cluster', class: Google::Apis::AlloydbV1beta::Cluster, decorator: Google::Apis::AlloydbV1beta::Cluster::Representation
|
1224
|
+
|
1225
|
+
property :cluster_id, as: 'clusterId'
|
1226
|
+
end
|
1227
|
+
end
|
1228
|
+
|
1212
1229
|
class SecondaryConfig
|
1213
1230
|
# @private
|
1214
1231
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -1430,6 +1447,7 @@ module Google
|
|
1430
1447
|
property :cpu_count, as: 'cpuCount'
|
1431
1448
|
property :memory_size_in_bytes, :numeric_string => true, as: 'memorySizeInBytes'
|
1432
1449
|
property :shard_count, as: 'shardCount'
|
1450
|
+
property :vcpu_count, as: 'vcpuCount'
|
1433
1451
|
end
|
1434
1452
|
end
|
1435
1453
|
|
@@ -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::AlloydbV1beta::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::AlloydbV1beta::Operation] parsed result object
|
811
|
+
# @yieldparam err [StandardError] error object if request failed
|
812
|
+
#
|
813
|
+
# @return [Google::Apis::AlloydbV1beta::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, 'v1beta/{+parent}/clusters:restoreFromCloudSQL', options)
|
820
|
+
command.request_representation = Google::Apis::AlloydbV1beta::RestoreFromCloudSqlRequest::Representation
|
821
|
+
command.request_object = restore_from_cloud_sql_request_object
|
822
|
+
command.response_representation = Google::Apis::AlloydbV1beta::Operation::Representation
|
823
|
+
command.response_class = Google::Apis::AlloydbV1beta::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 [String] fields
|
metadata
CHANGED
@@ -1,14 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: google-apis-alloydb_v1beta
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 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:
|
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_v1beta/CHANGELOG.md
|
61
|
-
documentation_uri: https://googleapis.dev/ruby/google-apis-alloydb_v1beta/v0.
|
60
|
+
documentation_uri: https://googleapis.dev/ruby/google-apis-alloydb_v1beta/v0.21.0
|
62
61
|
source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-alloydb_v1beta
|
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.
|
79
|
-
signing_key:
|
76
|
+
rubygems_version: 3.6.2
|
80
77
|
specification_version: 4
|
81
78
|
summary: Simple REST client for AlloyDB API V1beta
|
82
79
|
test_files: []
|