google-apis-alloydb_v1 0.15.0 → 0.17.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 83b211a4c0d0049baef6ddd15933e40095cb6b7a3b16fa93fe44f202a2de1aa3
|
4
|
+
data.tar.gz: e1f9cb9b9a11f508d4acc81a12925cb13539e9395c210cd58f5195e3c7df57d8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1b252c098910207d5853abb1e1f2d4c2c0899feca964f4757545e591e7835763eb11484bbceb05a59a1c0475f7ea1b3013aa5df8b8e10252566b9242255d8ad2
|
7
|
+
data.tar.gz: 7da4ae39d3efc278824ff1ce875b7cc3d200983abea0801d613d87f9ddca0caf078f1b2cdd935cede717e342c5b3a56d6de106c034f294a1b10a0bac5cec499a
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,13 @@
|
|
1
1
|
# Release history for google-apis-alloydb_v1
|
2
2
|
|
3
|
+
### v0.17.0 (2024-06-23)
|
4
|
+
|
5
|
+
* Regenerated from discovery document revision 20240612
|
6
|
+
|
7
|
+
### v0.16.0 (2024-06-09)
|
8
|
+
|
9
|
+
* Regenerated from discovery document revision 20240529
|
10
|
+
|
3
11
|
### v0.15.0 (2024-05-26)
|
4
12
|
|
5
13
|
* Regenerated from discovery document revision 20240517
|
@@ -2704,12 +2704,6 @@ module Google
|
|
2704
2704
|
# @return [Google::Apis::AlloydbV1::StorageDatabasecenterPartnerapiV1mainUserLabels]
|
2705
2705
|
attr_accessor :user_label_set
|
2706
2706
|
|
2707
|
-
# User-provided labels, represented as a dictionary where each label is a single
|
2708
|
-
# key value pair.
|
2709
|
-
# Corresponds to the JSON property `userLabels`
|
2710
|
-
# @return [Hash<String,String>]
|
2711
|
-
attr_accessor :user_labels
|
2712
|
-
|
2713
2707
|
def initialize(**args)
|
2714
2708
|
update!(**args)
|
2715
2709
|
end
|
@@ -2734,7 +2728,6 @@ module Google
|
|
2734
2728
|
@resource_name = args[:resource_name] if args.key?(:resource_name)
|
2735
2729
|
@updation_time = args[:updation_time] if args.key?(:updation_time)
|
2736
2730
|
@user_label_set = args[:user_label_set] if args.key?(:user_label_set)
|
2737
|
-
@user_labels = args[:user_labels] if args.key?(:user_labels)
|
2738
2731
|
end
|
2739
2732
|
end
|
2740
2733
|
|
@@ -2842,12 +2835,14 @@ module Google
|
|
2842
2835
|
class StorageDatabasecenterPartnerapiV1mainMachineConfiguration
|
2843
2836
|
include Google::Apis::Core::Hashable
|
2844
2837
|
|
2845
|
-
# The number of CPUs.
|
2838
|
+
# The number of CPUs. TODO(b/342344482, b/342346271) add proto validations again
|
2839
|
+
# after bug fix.
|
2846
2840
|
# Corresponds to the JSON property `cpuCount`
|
2847
2841
|
# @return [Fixnum]
|
2848
2842
|
attr_accessor :cpu_count
|
2849
2843
|
|
2850
|
-
# Memory size in bytes.
|
2844
|
+
# Memory size in bytes. TODO(b/342344482, b/342346271) add proto validations
|
2845
|
+
# again after bug fix.
|
2851
2846
|
# Corresponds to the JSON property `memorySizeInBytes`
|
2852
2847
|
# @return [Fixnum]
|
2853
2848
|
attr_accessor :memory_size_in_bytes
|
@@ -2867,25 +2862,31 @@ module Google
|
|
2867
2862
|
class StorageDatabasecenterPartnerapiV1mainObservabilityMetricData
|
2868
2863
|
include Google::Apis::Core::Hashable
|
2869
2864
|
|
2870
|
-
# Required.
|
2871
|
-
# Corresponds to the JSON property `
|
2865
|
+
# Required. Type of aggregation performed on the metric.
|
2866
|
+
# Corresponds to the JSON property `aggregationType`
|
2872
2867
|
# @return [String]
|
2873
|
-
attr_accessor :
|
2868
|
+
attr_accessor :aggregation_type
|
2874
2869
|
|
2875
2870
|
# Required. Type of metric like CPU, Memory, etc.
|
2876
2871
|
# Corresponds to the JSON property `metricType`
|
2877
2872
|
# @return [String]
|
2878
2873
|
attr_accessor :metric_type
|
2879
2874
|
|
2875
|
+
# Required. The time the metric value was observed.
|
2876
|
+
# Corresponds to the JSON property `observationTime`
|
2877
|
+
# @return [String]
|
2878
|
+
attr_accessor :observation_time
|
2879
|
+
|
2880
2880
|
# Required. Database resource name associated with the signal. Resource name to
|
2881
2881
|
# follow CAIS resource_name format as noted here go/condor-common-datamodel
|
2882
2882
|
# Corresponds to the JSON property `resourceName`
|
2883
2883
|
# @return [String]
|
2884
2884
|
attr_accessor :resource_name
|
2885
2885
|
|
2886
|
-
#
|
2886
|
+
# TypedValue represents the value of a metric type. It can either be a double,
|
2887
|
+
# an int64, a string or a bool.
|
2887
2888
|
# Corresponds to the JSON property `value`
|
2888
|
-
# @return [
|
2889
|
+
# @return [Google::Apis::AlloydbV1::StorageDatabasecenterProtoCommonTypedValue]
|
2889
2890
|
attr_accessor :value
|
2890
2891
|
|
2891
2892
|
def initialize(**args)
|
@@ -2894,8 +2895,9 @@ module Google
|
|
2894
2895
|
|
2895
2896
|
# Update properties of this object
|
2896
2897
|
def update!(**args)
|
2897
|
-
@
|
2898
|
+
@aggregation_type = args[:aggregation_type] if args.key?(:aggregation_type)
|
2898
2899
|
@metric_type = args[:metric_type] if args.key?(:metric_type)
|
2900
|
+
@observation_time = args[:observation_time] if args.key?(:observation_time)
|
2899
2901
|
@resource_name = args[:resource_name] if args.key?(:resource_name)
|
2900
2902
|
@value = args[:value] if args.key?(:value)
|
2901
2903
|
end
|
@@ -3016,6 +3018,45 @@ module Google
|
|
3016
3018
|
end
|
3017
3019
|
end
|
3018
3020
|
|
3021
|
+
# TypedValue represents the value of a metric type. It can either be a double,
|
3022
|
+
# an int64, a string or a bool.
|
3023
|
+
class StorageDatabasecenterProtoCommonTypedValue
|
3024
|
+
include Google::Apis::Core::Hashable
|
3025
|
+
|
3026
|
+
# For boolean value
|
3027
|
+
# Corresponds to the JSON property `boolValue`
|
3028
|
+
# @return [Boolean]
|
3029
|
+
attr_accessor :bool_value
|
3030
|
+
alias_method :bool_value?, :bool_value
|
3031
|
+
|
3032
|
+
# For double value
|
3033
|
+
# Corresponds to the JSON property `doubleValue`
|
3034
|
+
# @return [Float]
|
3035
|
+
attr_accessor :double_value
|
3036
|
+
|
3037
|
+
# For integer value
|
3038
|
+
# Corresponds to the JSON property `int64Value`
|
3039
|
+
# @return [Fixnum]
|
3040
|
+
attr_accessor :int64_value
|
3041
|
+
|
3042
|
+
# For string value
|
3043
|
+
# Corresponds to the JSON property `stringValue`
|
3044
|
+
# @return [String]
|
3045
|
+
attr_accessor :string_value
|
3046
|
+
|
3047
|
+
def initialize(**args)
|
3048
|
+
update!(**args)
|
3049
|
+
end
|
3050
|
+
|
3051
|
+
# Update properties of this object
|
3052
|
+
def update!(**args)
|
3053
|
+
@bool_value = args[:bool_value] if args.key?(:bool_value)
|
3054
|
+
@double_value = args[:double_value] if args.key?(:double_value)
|
3055
|
+
@int64_value = args[:int64_value] if args.key?(:int64_value)
|
3056
|
+
@string_value = args[:string_value] if args.key?(:string_value)
|
3057
|
+
end
|
3058
|
+
end
|
3059
|
+
|
3019
3060
|
# Restrictions on STRING type values
|
3020
3061
|
class StringRestrictions
|
3021
3062
|
include Google::Apis::Core::Hashable
|
@@ -3109,6 +3150,42 @@ module Google
|
|
3109
3150
|
end
|
3110
3151
|
end
|
3111
3152
|
|
3153
|
+
# Message for switching over to a cluster
|
3154
|
+
class SwitchoverClusterRequest
|
3155
|
+
include Google::Apis::Core::Hashable
|
3156
|
+
|
3157
|
+
# Optional. An optional request ID to identify requests. Specify a unique
|
3158
|
+
# request ID so that if you must retry your request, the server will know to
|
3159
|
+
# ignore the request if it has already been completed. The server will guarantee
|
3160
|
+
# that for at least 60 minutes after the first request. For example, consider a
|
3161
|
+
# situation where you make an initial request and the request times out. If you
|
3162
|
+
# make the request again with the same request ID, the server can check if
|
3163
|
+
# original operation with the same request ID was received, and if so, will
|
3164
|
+
# ignore the second request. This prevents clients from accidentally creating
|
3165
|
+
# duplicate commitments. The request ID must be a valid UUID with the exception
|
3166
|
+
# that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
|
3167
|
+
# Corresponds to the JSON property `requestId`
|
3168
|
+
# @return [String]
|
3169
|
+
attr_accessor :request_id
|
3170
|
+
|
3171
|
+
# Optional. If set, performs request validation (e.g. permission checks and any
|
3172
|
+
# other type of validation), but do not actually execute the delete.
|
3173
|
+
# Corresponds to the JSON property `validateOnly`
|
3174
|
+
# @return [Boolean]
|
3175
|
+
attr_accessor :validate_only
|
3176
|
+
alias_method :validate_only?, :validate_only
|
3177
|
+
|
3178
|
+
def initialize(**args)
|
3179
|
+
update!(**args)
|
3180
|
+
end
|
3181
|
+
|
3182
|
+
# Update properties of this object
|
3183
|
+
def update!(**args)
|
3184
|
+
@request_id = args[:request_id] if args.key?(:request_id)
|
3185
|
+
@validate_only = args[:validate_only] if args.key?(:validate_only)
|
3186
|
+
end
|
3187
|
+
end
|
3188
|
+
|
3112
3189
|
# A time based retention policy specifies that all backups within a certain time
|
3113
3190
|
# period should be retained.
|
3114
3191
|
class TimeBasedRetention
|
@@ -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.
|
19
|
+
GEM_VERSION = "0.17.0"
|
20
20
|
|
21
21
|
# Version of the code generator used to generate this client
|
22
22
|
GENERATOR_VERSION = "0.15.0"
|
23
23
|
|
24
24
|
# Revision of the discovery document this client was generated from
|
25
|
-
REVISION = "
|
25
|
+
REVISION = "20240612"
|
26
26
|
end
|
27
27
|
end
|
28
28
|
end
|
@@ -436,6 +436,12 @@ module Google
|
|
436
436
|
include Google::Apis::Core::JsonObjectSupport
|
437
437
|
end
|
438
438
|
|
439
|
+
class StorageDatabasecenterProtoCommonTypedValue
|
440
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
441
|
+
|
442
|
+
include Google::Apis::Core::JsonObjectSupport
|
443
|
+
end
|
444
|
+
|
439
445
|
class StringRestrictions
|
440
446
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
441
447
|
|
@@ -448,6 +454,12 @@ module Google
|
|
448
454
|
include Google::Apis::Core::JsonObjectSupport
|
449
455
|
end
|
450
456
|
|
457
|
+
class SwitchoverClusterRequest
|
458
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
459
|
+
|
460
|
+
include Google::Apis::Core::JsonObjectSupport
|
461
|
+
end
|
462
|
+
|
451
463
|
class TimeBasedRetention
|
452
464
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
453
465
|
|
@@ -1167,7 +1179,6 @@ module Google
|
|
1167
1179
|
property :updation_time, as: 'updationTime'
|
1168
1180
|
property :user_label_set, as: 'userLabelSet', class: Google::Apis::AlloydbV1::StorageDatabasecenterPartnerapiV1mainUserLabels, decorator: Google::Apis::AlloydbV1::StorageDatabasecenterPartnerapiV1mainUserLabels::Representation
|
1169
1181
|
|
1170
|
-
hash :user_labels, as: 'userLabels'
|
1171
1182
|
end
|
1172
1183
|
end
|
1173
1184
|
|
@@ -1204,10 +1215,12 @@ module Google
|
|
1204
1215
|
class StorageDatabasecenterPartnerapiV1mainObservabilityMetricData
|
1205
1216
|
# @private
|
1206
1217
|
class Representation < Google::Apis::Core::JsonRepresentation
|
1207
|
-
property :
|
1218
|
+
property :aggregation_type, as: 'aggregationType'
|
1208
1219
|
property :metric_type, as: 'metricType'
|
1220
|
+
property :observation_time, as: 'observationTime'
|
1209
1221
|
property :resource_name, as: 'resourceName'
|
1210
|
-
property :value, as: 'value'
|
1222
|
+
property :value, as: 'value', class: Google::Apis::AlloydbV1::StorageDatabasecenterProtoCommonTypedValue, decorator: Google::Apis::AlloydbV1::StorageDatabasecenterProtoCommonTypedValue::Representation
|
1223
|
+
|
1211
1224
|
end
|
1212
1225
|
end
|
1213
1226
|
|
@@ -1245,6 +1258,16 @@ module Google
|
|
1245
1258
|
end
|
1246
1259
|
end
|
1247
1260
|
|
1261
|
+
class StorageDatabasecenterProtoCommonTypedValue
|
1262
|
+
# @private
|
1263
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
1264
|
+
property :bool_value, as: 'boolValue'
|
1265
|
+
property :double_value, as: 'doubleValue'
|
1266
|
+
property :int64_value, :numeric_string => true, as: 'int64Value'
|
1267
|
+
property :string_value, as: 'stringValue'
|
1268
|
+
end
|
1269
|
+
end
|
1270
|
+
|
1248
1271
|
class StringRestrictions
|
1249
1272
|
# @private
|
1250
1273
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -1268,6 +1291,14 @@ module Google
|
|
1268
1291
|
end
|
1269
1292
|
end
|
1270
1293
|
|
1294
|
+
class SwitchoverClusterRequest
|
1295
|
+
# @private
|
1296
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
1297
|
+
property :request_id, as: 'requestId'
|
1298
|
+
property :validate_only, as: 'validateOnly'
|
1299
|
+
end
|
1300
|
+
end
|
1301
|
+
|
1271
1302
|
class TimeBasedRetention
|
1272
1303
|
# @private
|
1273
1304
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -756,6 +756,42 @@ module Google
|
|
756
756
|
execute_or_queue_command(command, &block)
|
757
757
|
end
|
758
758
|
|
759
|
+
# Switches the role of PRIMARY and SECONDARY cluster without any data loss. This
|
760
|
+
# promotes the SECONDARY cluster to PRIMARY and sets up original PRIMARY cluster
|
761
|
+
# to replicate from this newly promoted cluster.
|
762
|
+
# @param [String] name
|
763
|
+
# Required. The name of the resource. For the required format, see the comment
|
764
|
+
# on the Cluster.name field
|
765
|
+
# @param [Google::Apis::AlloydbV1::SwitchoverClusterRequest] switchover_cluster_request_object
|
766
|
+
# @param [String] fields
|
767
|
+
# Selector specifying which fields to include in a partial response.
|
768
|
+
# @param [String] quota_user
|
769
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
770
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
771
|
+
# @param [Google::Apis::RequestOptions] options
|
772
|
+
# Request-specific options
|
773
|
+
#
|
774
|
+
# @yield [result, err] Result & error if block supplied
|
775
|
+
# @yieldparam result [Google::Apis::AlloydbV1::Operation] parsed result object
|
776
|
+
# @yieldparam err [StandardError] error object if request failed
|
777
|
+
#
|
778
|
+
# @return [Google::Apis::AlloydbV1::Operation]
|
779
|
+
#
|
780
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
781
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
782
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
783
|
+
def switchover_cluster(name, switchover_cluster_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
784
|
+
command = make_simple_command(:post, 'v1/{+name}:switchover', options)
|
785
|
+
command.request_representation = Google::Apis::AlloydbV1::SwitchoverClusterRequest::Representation
|
786
|
+
command.request_object = switchover_cluster_request_object
|
787
|
+
command.response_representation = Google::Apis::AlloydbV1::Operation::Representation
|
788
|
+
command.response_class = Google::Apis::AlloydbV1::Operation
|
789
|
+
command.params['name'] = name unless name.nil?
|
790
|
+
command.query['fields'] = fields unless fields.nil?
|
791
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
792
|
+
execute_or_queue_command(command, &block)
|
793
|
+
end
|
794
|
+
|
759
795
|
# Creates a new Instance in a given project and location.
|
760
796
|
# @param [String] parent
|
761
797
|
# Required. The name of the parent resource. For the required format, see the
|
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.
|
4
|
+
version: 0.17.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
|
+
date: 2024-06-23 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.
|
61
|
+
documentation_uri: https://googleapis.dev/ruby/google-apis-alloydb_v1/v0.17.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: []
|