google-apis-alloydb_v1beta 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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a2469e89922f84dd8babfdab69aed5852ec5aecb8b710332534cdda629a3514d
|
4
|
+
data.tar.gz: 9569cace2d875cb163a96f5338cdb92725d446ac3e9b4a691569b9f24e8768a7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3a65c6f952a09203ce369af59cc92c9e2c41cb43337800dcfa07717cb9be3f8b18d3c574e5a072fda5727036ee0203b8f8d34bedef8f72d49d4355621fa4cb14
|
7
|
+
data.tar.gz: 8a8c196146c4222c3796758e30c32781650bde9262f4748a4876bcb870a62941b7a3d6cd838d896b9fe1b22d9892e5b413908f96f3965d5217de5d48ee22a516
|
data/CHANGELOG.md
CHANGED
@@ -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
|
@@ -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
|
@@ -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.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 = "
|
25
|
+
REVISION = "20241204"
|
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,14 @@
|
|
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.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-
|
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_v1beta/CHANGELOG.md
|
61
|
-
documentation_uri: https://googleapis.dev/ruby/google-apis-alloydb_v1beta/v0.
|
61
|
+
documentation_uri: https://googleapis.dev/ruby/google-apis-alloydb_v1beta/v0.20.0
|
62
62
|
source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-alloydb_v1beta
|
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.
|
78
|
+
rubygems_version: 3.5.23
|
79
79
|
signing_key:
|
80
80
|
specification_version: 4
|
81
81
|
summary: Simple REST client for AlloyDB API V1beta
|