google-apis-redis_v1beta1 0.35.0 → 0.37.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: cae928c0e287bb721359ca78c0506635c7ca18533c5efe0ebb73e31764d04977
|
4
|
+
data.tar.gz: 3e32af3fa0148d0160dc9a4056e365771b65635bf1b56c0d9b9936440943e424
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: fc43941c16a86e9644f8633b9ef20d7e8fb2768d0272ee2a15c633b2b30b58b7ead1bd44c7a2f72a01a499cab8deba20d91d2b6ec2fd36d8be7e8b58beaa019e
|
7
|
+
data.tar.gz: 94e6bbc73331c09bcb4332e8882f0fd7af7b1a3fba6d4b33113ef624c8d401000fed10263af03e5931e3eb83e9079c720b7baf9d7945423546e11c9df5352d49
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,13 @@
|
|
1
1
|
# Release history for google-apis-redis_v1beta1
|
2
2
|
|
3
|
+
### v0.37.0 (2023-09-17)
|
4
|
+
|
5
|
+
* Regenerated from discovery document revision 20230905
|
6
|
+
|
7
|
+
### v0.36.0 (2023-08-13)
|
8
|
+
|
9
|
+
* Regenerated from discovery document revision 20230804
|
10
|
+
|
3
11
|
### v0.35.0 (2023-05-07)
|
4
12
|
|
5
13
|
* Regenerated from discovery document revision 20230428
|
@@ -22,6 +22,177 @@ module Google
|
|
22
22
|
module Apis
|
23
23
|
module RedisV1beta1
|
24
24
|
|
25
|
+
#
|
26
|
+
class CertChain
|
27
|
+
include Google::Apis::Core::Hashable
|
28
|
+
|
29
|
+
# The certificates that form the CA chain, from leaf to root order.
|
30
|
+
# Corresponds to the JSON property `certificates`
|
31
|
+
# @return [Array<String>]
|
32
|
+
attr_accessor :certificates
|
33
|
+
|
34
|
+
def initialize(**args)
|
35
|
+
update!(**args)
|
36
|
+
end
|
37
|
+
|
38
|
+
# Update properties of this object
|
39
|
+
def update!(**args)
|
40
|
+
@certificates = args[:certificates] if args.key?(:certificates)
|
41
|
+
end
|
42
|
+
end
|
43
|
+
|
44
|
+
# Redis cluster certificate authority
|
45
|
+
class CertificateAuthority
|
46
|
+
include Google::Apis::Core::Hashable
|
47
|
+
|
48
|
+
#
|
49
|
+
# Corresponds to the JSON property `managedServerCa`
|
50
|
+
# @return [Google::Apis::RedisV1beta1::ManagedCertificateAuthority]
|
51
|
+
attr_accessor :managed_server_ca
|
52
|
+
|
53
|
+
def initialize(**args)
|
54
|
+
update!(**args)
|
55
|
+
end
|
56
|
+
|
57
|
+
# Update properties of this object
|
58
|
+
def update!(**args)
|
59
|
+
@managed_server_ca = args[:managed_server_ca] if args.key?(:managed_server_ca)
|
60
|
+
end
|
61
|
+
end
|
62
|
+
|
63
|
+
# A cluster instance.
|
64
|
+
class Cluster
|
65
|
+
include Google::Apis::Core::Hashable
|
66
|
+
|
67
|
+
# Optional. The authorization mode of the Redis cluster. If not provided, auth
|
68
|
+
# feature is disabled for the cluster.
|
69
|
+
# Corresponds to the JSON property `authorizationMode`
|
70
|
+
# @return [String]
|
71
|
+
attr_accessor :authorization_mode
|
72
|
+
|
73
|
+
# Output only. The timestamp associated with the cluster creation request.
|
74
|
+
# Corresponds to the JSON property `createTime`
|
75
|
+
# @return [String]
|
76
|
+
attr_accessor :create_time
|
77
|
+
|
78
|
+
# Output only. Endpoints created on each given network, for Redis clients to
|
79
|
+
# connect to the cluster. Currently only one discovery endpoint is supported.
|
80
|
+
# Corresponds to the JSON property `discoveryEndpoints`
|
81
|
+
# @return [Array<Google::Apis::RedisV1beta1::DiscoveryEndpoint>]
|
82
|
+
attr_accessor :discovery_endpoints
|
83
|
+
|
84
|
+
# Required. Unique name of the resource in this scope including project and
|
85
|
+
# location using the form: `projects/`project_id`/locations/`location_id`/
|
86
|
+
# clusters/`cluster_id``
|
87
|
+
# Corresponds to the JSON property `name`
|
88
|
+
# @return [String]
|
89
|
+
attr_accessor :name
|
90
|
+
|
91
|
+
# Required. Each PscConfig configures the consumer network where IPs will be
|
92
|
+
# designated to the cluster for client access through Private Service Connect
|
93
|
+
# Automation. Currently, only one PscConfig is supported.
|
94
|
+
# Corresponds to the JSON property `pscConfigs`
|
95
|
+
# @return [Array<Google::Apis::RedisV1beta1::PscConfig>]
|
96
|
+
attr_accessor :psc_configs
|
97
|
+
|
98
|
+
# Output only. PSC connections for discovery of the cluster topology and
|
99
|
+
# accessing the cluster.
|
100
|
+
# Corresponds to the JSON property `pscConnections`
|
101
|
+
# @return [Array<Google::Apis::RedisV1beta1::PscConnection>]
|
102
|
+
attr_accessor :psc_connections
|
103
|
+
|
104
|
+
# Optional. The number of replica nodes per shard.
|
105
|
+
# Corresponds to the JSON property `replicaCount`
|
106
|
+
# @return [Fixnum]
|
107
|
+
attr_accessor :replica_count
|
108
|
+
|
109
|
+
# Required. Number of shards for the Redis cluster.
|
110
|
+
# Corresponds to the JSON property `shardCount`
|
111
|
+
# @return [Fixnum]
|
112
|
+
attr_accessor :shard_count
|
113
|
+
|
114
|
+
# Output only. Redis memory size in GB for the entire cluster.
|
115
|
+
# Corresponds to the JSON property `sizeGb`
|
116
|
+
# @return [Fixnum]
|
117
|
+
attr_accessor :size_gb
|
118
|
+
|
119
|
+
# Output only. The current state of this cluster. Can be CREATING, READY,
|
120
|
+
# UPDATING, DELETING and SUSPENDED
|
121
|
+
# Corresponds to the JSON property `state`
|
122
|
+
# @return [String]
|
123
|
+
attr_accessor :state
|
124
|
+
|
125
|
+
# Represents additional information about the state of the cluster.
|
126
|
+
# Corresponds to the JSON property `stateInfo`
|
127
|
+
# @return [Google::Apis::RedisV1beta1::StateInfo]
|
128
|
+
attr_accessor :state_info
|
129
|
+
|
130
|
+
# Optional. The in-transit encryption for the Redis cluster. If not provided,
|
131
|
+
# encryption is disabled for the cluster.
|
132
|
+
# Corresponds to the JSON property `transitEncryptionMode`
|
133
|
+
# @return [String]
|
134
|
+
attr_accessor :transit_encryption_mode
|
135
|
+
|
136
|
+
# Output only. System assigned, unique identifier for the cluster.
|
137
|
+
# Corresponds to the JSON property `uid`
|
138
|
+
# @return [String]
|
139
|
+
attr_accessor :uid
|
140
|
+
|
141
|
+
def initialize(**args)
|
142
|
+
update!(**args)
|
143
|
+
end
|
144
|
+
|
145
|
+
# Update properties of this object
|
146
|
+
def update!(**args)
|
147
|
+
@authorization_mode = args[:authorization_mode] if args.key?(:authorization_mode)
|
148
|
+
@create_time = args[:create_time] if args.key?(:create_time)
|
149
|
+
@discovery_endpoints = args[:discovery_endpoints] if args.key?(:discovery_endpoints)
|
150
|
+
@name = args[:name] if args.key?(:name)
|
151
|
+
@psc_configs = args[:psc_configs] if args.key?(:psc_configs)
|
152
|
+
@psc_connections = args[:psc_connections] if args.key?(:psc_connections)
|
153
|
+
@replica_count = args[:replica_count] if args.key?(:replica_count)
|
154
|
+
@shard_count = args[:shard_count] if args.key?(:shard_count)
|
155
|
+
@size_gb = args[:size_gb] if args.key?(:size_gb)
|
156
|
+
@state = args[:state] if args.key?(:state)
|
157
|
+
@state_info = args[:state_info] if args.key?(:state_info)
|
158
|
+
@transit_encryption_mode = args[:transit_encryption_mode] if args.key?(:transit_encryption_mode)
|
159
|
+
@uid = args[:uid] if args.key?(:uid)
|
160
|
+
end
|
161
|
+
end
|
162
|
+
|
163
|
+
# Endpoints on each network, for Redis clients to connect to the cluster.
|
164
|
+
class DiscoveryEndpoint
|
165
|
+
include Google::Apis::Core::Hashable
|
166
|
+
|
167
|
+
# Output only. Address of the exposed Redis endpoint used by clients to connect
|
168
|
+
# to the service. The address could be either IP or hostname.
|
169
|
+
# Corresponds to the JSON property `address`
|
170
|
+
# @return [String]
|
171
|
+
attr_accessor :address
|
172
|
+
|
173
|
+
# Output only. The port number of the exposed Redis endpoint.
|
174
|
+
# Corresponds to the JSON property `port`
|
175
|
+
# @return [Fixnum]
|
176
|
+
attr_accessor :port
|
177
|
+
|
178
|
+
# Output only. Customer configuration for where the endpoint is created and
|
179
|
+
# accessed from.
|
180
|
+
# Corresponds to the JSON property `pscConfig`
|
181
|
+
# @return [Google::Apis::RedisV1beta1::PscConfig]
|
182
|
+
attr_accessor :psc_config
|
183
|
+
|
184
|
+
def initialize(**args)
|
185
|
+
update!(**args)
|
186
|
+
end
|
187
|
+
|
188
|
+
# Update properties of this object
|
189
|
+
def update!(**args)
|
190
|
+
@address = args[:address] if args.key?(:address)
|
191
|
+
@port = args[:port] if args.key?(:port)
|
192
|
+
@psc_config = args[:psc_config] if args.key?(:psc_config)
|
193
|
+
end
|
194
|
+
end
|
195
|
+
|
25
196
|
# A generic empty message that you can re-use to avoid defining duplicated empty
|
26
197
|
# messages in your APIs. A typical example is to use it as the request or the
|
27
198
|
# response type of an API method. For instance: service Foo ` rpc Bar(google.
|
@@ -550,6 +721,45 @@ module Google
|
|
550
721
|
end
|
551
722
|
end
|
552
723
|
|
724
|
+
# Response for ListClusters.
|
725
|
+
class ListClustersResponse
|
726
|
+
include Google::Apis::Core::Hashable
|
727
|
+
|
728
|
+
# A list of Redis clusters in the project in the specified location, or across
|
729
|
+
# all locations. If the `location_id` in the parent field of the request is "-",
|
730
|
+
# all regions available to the project are queried, and the results aggregated.
|
731
|
+
# If in such an aggregated query a location is unavailable, a placeholder Redis
|
732
|
+
# entry is included in the response with the `name` field set to a value of the
|
733
|
+
# form `projects/`project_id`/locations/`location_id`/clusters/`- and the `
|
734
|
+
# status` field set to ERROR and `status_message` field set to "location not
|
735
|
+
# available for ListClusters".
|
736
|
+
# Corresponds to the JSON property `clusters`
|
737
|
+
# @return [Array<Google::Apis::RedisV1beta1::Cluster>]
|
738
|
+
attr_accessor :clusters
|
739
|
+
|
740
|
+
# Token to retrieve the next page of results, or empty if there are no more
|
741
|
+
# results in the list.
|
742
|
+
# Corresponds to the JSON property `nextPageToken`
|
743
|
+
# @return [String]
|
744
|
+
attr_accessor :next_page_token
|
745
|
+
|
746
|
+
# Locations that could not be reached.
|
747
|
+
# Corresponds to the JSON property `unreachable`
|
748
|
+
# @return [Array<String>]
|
749
|
+
attr_accessor :unreachable
|
750
|
+
|
751
|
+
def initialize(**args)
|
752
|
+
update!(**args)
|
753
|
+
end
|
754
|
+
|
755
|
+
# Update properties of this object
|
756
|
+
def update!(**args)
|
757
|
+
@clusters = args[:clusters] if args.key?(:clusters)
|
758
|
+
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
|
759
|
+
@unreachable = args[:unreachable] if args.key?(:unreachable)
|
760
|
+
end
|
761
|
+
end
|
762
|
+
|
553
763
|
# Response for ListInstances.
|
554
764
|
class ListInstancesResponse
|
555
765
|
include Google::Apis::Core::Hashable
|
@@ -770,6 +980,25 @@ module Google
|
|
770
980
|
end
|
771
981
|
end
|
772
982
|
|
983
|
+
#
|
984
|
+
class ManagedCertificateAuthority
|
985
|
+
include Google::Apis::Core::Hashable
|
986
|
+
|
987
|
+
# The PEM encoded CA certificate chains for redis managed server authentication
|
988
|
+
# Corresponds to the JSON property `caCerts`
|
989
|
+
# @return [Array<Google::Apis::RedisV1beta1::CertChain>]
|
990
|
+
attr_accessor :ca_certs
|
991
|
+
|
992
|
+
def initialize(**args)
|
993
|
+
update!(**args)
|
994
|
+
end
|
995
|
+
|
996
|
+
# Update properties of this object
|
997
|
+
def update!(**args)
|
998
|
+
@ca_certs = args[:ca_certs] if args.key?(:ca_certs)
|
999
|
+
end
|
1000
|
+
end
|
1001
|
+
|
773
1002
|
# Node specific properties.
|
774
1003
|
class NodeInfo
|
775
1004
|
include Google::Apis::Core::Hashable
|
@@ -836,13 +1065,13 @@ module Google
|
|
836
1065
|
# @return [String]
|
837
1066
|
attr_accessor :name
|
838
1067
|
|
839
|
-
# The normal response of the operation
|
840
|
-
#
|
841
|
-
#
|
842
|
-
#
|
843
|
-
#
|
844
|
-
#
|
845
|
-
#
|
1068
|
+
# The normal, successful response of the operation. If the original method
|
1069
|
+
# returns no data on success, such as `Delete`, the response is `google.protobuf.
|
1070
|
+
# Empty`. If the original method is standard `Get`/`Create`/`Update`, the
|
1071
|
+
# response should be the resource. For other methods, the response should have
|
1072
|
+
# the type `XxxResponse`, where `Xxx` is the original method name. For example,
|
1073
|
+
# if the original method name is `TakeSnapshot()`, the inferred response type is
|
1074
|
+
# `TakeSnapshotResponse`.
|
846
1075
|
# Corresponds to the JSON property `response`
|
847
1076
|
# @return [Hash<String,Object>]
|
848
1077
|
attr_accessor :response
|
@@ -861,6 +1090,65 @@ module Google
|
|
861
1090
|
end
|
862
1091
|
end
|
863
1092
|
|
1093
|
+
# Pre-defined metadata fields.
|
1094
|
+
class OperationMetadata
|
1095
|
+
include Google::Apis::Core::Hashable
|
1096
|
+
|
1097
|
+
# Output only. API version used to start the operation.
|
1098
|
+
# Corresponds to the JSON property `apiVersion`
|
1099
|
+
# @return [String]
|
1100
|
+
attr_accessor :api_version
|
1101
|
+
|
1102
|
+
# Output only. The time the operation was created.
|
1103
|
+
# Corresponds to the JSON property `createTime`
|
1104
|
+
# @return [String]
|
1105
|
+
attr_accessor :create_time
|
1106
|
+
|
1107
|
+
# Output only. The time the operation finished running.
|
1108
|
+
# Corresponds to the JSON property `endTime`
|
1109
|
+
# @return [String]
|
1110
|
+
attr_accessor :end_time
|
1111
|
+
|
1112
|
+
# Output only. Identifies whether the user has requested cancellation of the
|
1113
|
+
# operation. Operations that have successfully been cancelled have Operation.
|
1114
|
+
# error value with a google.rpc.Status.code of 1, corresponding to `Code.
|
1115
|
+
# CANCELLED`.
|
1116
|
+
# Corresponds to the JSON property `requestedCancellation`
|
1117
|
+
# @return [Boolean]
|
1118
|
+
attr_accessor :requested_cancellation
|
1119
|
+
alias_method :requested_cancellation?, :requested_cancellation
|
1120
|
+
|
1121
|
+
# Output only. Human-readable status of the operation, if any.
|
1122
|
+
# Corresponds to the JSON property `statusMessage`
|
1123
|
+
# @return [String]
|
1124
|
+
attr_accessor :status_message
|
1125
|
+
|
1126
|
+
# Output only. Server-defined resource path for the target of the operation.
|
1127
|
+
# Corresponds to the JSON property `target`
|
1128
|
+
# @return [String]
|
1129
|
+
attr_accessor :target
|
1130
|
+
|
1131
|
+
# Output only. Name of the verb executed by the operation.
|
1132
|
+
# Corresponds to the JSON property `verb`
|
1133
|
+
# @return [String]
|
1134
|
+
attr_accessor :verb
|
1135
|
+
|
1136
|
+
def initialize(**args)
|
1137
|
+
update!(**args)
|
1138
|
+
end
|
1139
|
+
|
1140
|
+
# Update properties of this object
|
1141
|
+
def update!(**args)
|
1142
|
+
@api_version = args[:api_version] if args.key?(:api_version)
|
1143
|
+
@create_time = args[:create_time] if args.key?(:create_time)
|
1144
|
+
@end_time = args[:end_time] if args.key?(:end_time)
|
1145
|
+
@requested_cancellation = args[:requested_cancellation] if args.key?(:requested_cancellation)
|
1146
|
+
@status_message = args[:status_message] if args.key?(:status_message)
|
1147
|
+
@target = args[:target] if args.key?(:target)
|
1148
|
+
@verb = args[:verb] if args.key?(:verb)
|
1149
|
+
end
|
1150
|
+
end
|
1151
|
+
|
864
1152
|
# The output content
|
865
1153
|
class OutputConfig
|
866
1154
|
include Google::Apis::Core::Hashable
|
@@ -925,6 +1213,74 @@ module Google
|
|
925
1213
|
end
|
926
1214
|
end
|
927
1215
|
|
1216
|
+
#
|
1217
|
+
class PscConfig
|
1218
|
+
include Google::Apis::Core::Hashable
|
1219
|
+
|
1220
|
+
# Required. The network where the IP address of the discovery endpoint will be
|
1221
|
+
# reserved, in the form of projects/`network_project`/global/networks/`
|
1222
|
+
# network_id`.
|
1223
|
+
# Corresponds to the JSON property `network`
|
1224
|
+
# @return [String]
|
1225
|
+
attr_accessor :network
|
1226
|
+
|
1227
|
+
def initialize(**args)
|
1228
|
+
update!(**args)
|
1229
|
+
end
|
1230
|
+
|
1231
|
+
# Update properties of this object
|
1232
|
+
def update!(**args)
|
1233
|
+
@network = args[:network] if args.key?(:network)
|
1234
|
+
end
|
1235
|
+
end
|
1236
|
+
|
1237
|
+
# Details of consumer resources in a PSC connection.
|
1238
|
+
class PscConnection
|
1239
|
+
include Google::Apis::Core::Hashable
|
1240
|
+
|
1241
|
+
# Output only. The IP allocated on the consumer network for the PSC forwarding
|
1242
|
+
# rule.
|
1243
|
+
# Corresponds to the JSON property `address`
|
1244
|
+
# @return [String]
|
1245
|
+
attr_accessor :address
|
1246
|
+
|
1247
|
+
# Output only. The URI of the consumer side forwarding rule. Example: projects/`
|
1248
|
+
# projectNumOrId`/regions/us-east1/forwardingRules/`resourceId`.
|
1249
|
+
# Corresponds to the JSON property `forwardingRule`
|
1250
|
+
# @return [String]
|
1251
|
+
attr_accessor :forwarding_rule
|
1252
|
+
|
1253
|
+
# The consumer network where the IP address resides, in the form of projects/`
|
1254
|
+
# project_id`/global/networks/`network_id`.
|
1255
|
+
# Corresponds to the JSON property `network`
|
1256
|
+
# @return [String]
|
1257
|
+
attr_accessor :network
|
1258
|
+
|
1259
|
+
# Output only. The consumer project_id where the forwarding rule is created from.
|
1260
|
+
# Corresponds to the JSON property `projectId`
|
1261
|
+
# @return [String]
|
1262
|
+
attr_accessor :project_id
|
1263
|
+
|
1264
|
+
# Output only. The PSC connection id of the forwarding rule connected to the
|
1265
|
+
# service attachment.
|
1266
|
+
# Corresponds to the JSON property `pscConnectionId`
|
1267
|
+
# @return [String]
|
1268
|
+
attr_accessor :psc_connection_id
|
1269
|
+
|
1270
|
+
def initialize(**args)
|
1271
|
+
update!(**args)
|
1272
|
+
end
|
1273
|
+
|
1274
|
+
# Update properties of this object
|
1275
|
+
def update!(**args)
|
1276
|
+
@address = args[:address] if args.key?(:address)
|
1277
|
+
@forwarding_rule = args[:forwarding_rule] if args.key?(:forwarding_rule)
|
1278
|
+
@network = args[:network] if args.key?(:network)
|
1279
|
+
@project_id = args[:project_id] if args.key?(:project_id)
|
1280
|
+
@psc_connection_id = args[:psc_connection_id] if args.key?(:psc_connection_id)
|
1281
|
+
end
|
1282
|
+
end
|
1283
|
+
|
928
1284
|
# Operation metadata returned by the CLH during resource state reconciliation.
|
929
1285
|
class ReconciliationOperationMetadata
|
930
1286
|
include Google::Apis::Core::Hashable
|
@@ -979,6 +1335,25 @@ module Google
|
|
979
1335
|
end
|
980
1336
|
end
|
981
1337
|
|
1338
|
+
# Represents additional information about the state of the cluster.
|
1339
|
+
class StateInfo
|
1340
|
+
include Google::Apis::Core::Hashable
|
1341
|
+
|
1342
|
+
# Represents information about an updating cluster.
|
1343
|
+
# Corresponds to the JSON property `updateInfo`
|
1344
|
+
# @return [Google::Apis::RedisV1beta1::UpdateInfo]
|
1345
|
+
attr_accessor :update_info
|
1346
|
+
|
1347
|
+
def initialize(**args)
|
1348
|
+
update!(**args)
|
1349
|
+
end
|
1350
|
+
|
1351
|
+
# Update properties of this object
|
1352
|
+
def update!(**args)
|
1353
|
+
@update_info = args[:update_info] if args.key?(:update_info)
|
1354
|
+
end
|
1355
|
+
end
|
1356
|
+
|
982
1357
|
# The `Status` type defines a logical error model that is suitable for different
|
983
1358
|
# programming environments, including REST APIs and RPC APIs. It is used by [
|
984
1359
|
# gRPC](https://github.com/grpc). Each `Status` message contains three pieces of
|
@@ -1104,6 +1479,31 @@ module Google
|
|
1104
1479
|
end
|
1105
1480
|
end
|
1106
1481
|
|
1482
|
+
# Represents information about an updating cluster.
|
1483
|
+
class UpdateInfo
|
1484
|
+
include Google::Apis::Core::Hashable
|
1485
|
+
|
1486
|
+
# Target number of replica nodes per shard.
|
1487
|
+
# Corresponds to the JSON property `targetReplicaCount`
|
1488
|
+
# @return [Fixnum]
|
1489
|
+
attr_accessor :target_replica_count
|
1490
|
+
|
1491
|
+
# Target number of shards for redis cluster
|
1492
|
+
# Corresponds to the JSON property `targetShardCount`
|
1493
|
+
# @return [Fixnum]
|
1494
|
+
attr_accessor :target_shard_count
|
1495
|
+
|
1496
|
+
def initialize(**args)
|
1497
|
+
update!(**args)
|
1498
|
+
end
|
1499
|
+
|
1500
|
+
# Update properties of this object
|
1501
|
+
def update!(**args)
|
1502
|
+
@target_replica_count = args[:target_replica_count] if args.key?(:target_replica_count)
|
1503
|
+
@target_shard_count = args[:target_shard_count] if args.key?(:target_shard_count)
|
1504
|
+
end
|
1505
|
+
end
|
1506
|
+
|
1107
1507
|
# Request for UpgradeInstance.
|
1108
1508
|
class UpgradeInstanceRequest
|
1109
1509
|
include Google::Apis::Core::Hashable
|
@@ -16,13 +16,13 @@ module Google
|
|
16
16
|
module Apis
|
17
17
|
module RedisV1beta1
|
18
18
|
# Version of the google-apis-redis_v1beta1 gem
|
19
|
-
GEM_VERSION = "0.
|
19
|
+
GEM_VERSION = "0.37.0"
|
20
20
|
|
21
21
|
# Version of the code generator used to generate this client
|
22
22
|
GENERATOR_VERSION = "0.12.0"
|
23
23
|
|
24
24
|
# Revision of the discovery document this client was generated from
|
25
|
-
REVISION = "
|
25
|
+
REVISION = "20230905"
|
26
26
|
end
|
27
27
|
end
|
28
28
|
end
|
@@ -22,6 +22,30 @@ module Google
|
|
22
22
|
module Apis
|
23
23
|
module RedisV1beta1
|
24
24
|
|
25
|
+
class CertChain
|
26
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
27
|
+
|
28
|
+
include Google::Apis::Core::JsonObjectSupport
|
29
|
+
end
|
30
|
+
|
31
|
+
class CertificateAuthority
|
32
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
33
|
+
|
34
|
+
include Google::Apis::Core::JsonObjectSupport
|
35
|
+
end
|
36
|
+
|
37
|
+
class Cluster
|
38
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
39
|
+
|
40
|
+
include Google::Apis::Core::JsonObjectSupport
|
41
|
+
end
|
42
|
+
|
43
|
+
class DiscoveryEndpoint
|
44
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
45
|
+
|
46
|
+
include Google::Apis::Core::JsonObjectSupport
|
47
|
+
end
|
48
|
+
|
25
49
|
class Empty
|
26
50
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
27
51
|
|
@@ -94,6 +118,12 @@ module Google
|
|
94
118
|
include Google::Apis::Core::JsonObjectSupport
|
95
119
|
end
|
96
120
|
|
121
|
+
class ListClustersResponse
|
122
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
123
|
+
|
124
|
+
include Google::Apis::Core::JsonObjectSupport
|
125
|
+
end
|
126
|
+
|
97
127
|
class ListInstancesResponse
|
98
128
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
99
129
|
|
@@ -130,6 +160,12 @@ module Google
|
|
130
160
|
include Google::Apis::Core::JsonObjectSupport
|
131
161
|
end
|
132
162
|
|
163
|
+
class ManagedCertificateAuthority
|
164
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
165
|
+
|
166
|
+
include Google::Apis::Core::JsonObjectSupport
|
167
|
+
end
|
168
|
+
|
133
169
|
class NodeInfo
|
134
170
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
135
171
|
|
@@ -142,6 +178,12 @@ module Google
|
|
142
178
|
include Google::Apis::Core::JsonObjectSupport
|
143
179
|
end
|
144
180
|
|
181
|
+
class OperationMetadata
|
182
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
183
|
+
|
184
|
+
include Google::Apis::Core::JsonObjectSupport
|
185
|
+
end
|
186
|
+
|
145
187
|
class OutputConfig
|
146
188
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
147
189
|
|
@@ -154,6 +196,18 @@ module Google
|
|
154
196
|
include Google::Apis::Core::JsonObjectSupport
|
155
197
|
end
|
156
198
|
|
199
|
+
class PscConfig
|
200
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
201
|
+
|
202
|
+
include Google::Apis::Core::JsonObjectSupport
|
203
|
+
end
|
204
|
+
|
205
|
+
class PscConnection
|
206
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
207
|
+
|
208
|
+
include Google::Apis::Core::JsonObjectSupport
|
209
|
+
end
|
210
|
+
|
157
211
|
class ReconciliationOperationMetadata
|
158
212
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
159
213
|
|
@@ -166,6 +220,12 @@ module Google
|
|
166
220
|
include Google::Apis::Core::JsonObjectSupport
|
167
221
|
end
|
168
222
|
|
223
|
+
class StateInfo
|
224
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
225
|
+
|
226
|
+
include Google::Apis::Core::JsonObjectSupport
|
227
|
+
end
|
228
|
+
|
169
229
|
class Status
|
170
230
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
171
231
|
|
@@ -184,6 +244,12 @@ module Google
|
|
184
244
|
include Google::Apis::Core::JsonObjectSupport
|
185
245
|
end
|
186
246
|
|
247
|
+
class UpdateInfo
|
248
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
249
|
+
|
250
|
+
include Google::Apis::Core::JsonObjectSupport
|
251
|
+
end
|
252
|
+
|
187
253
|
class UpgradeInstanceRequest
|
188
254
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
189
255
|
|
@@ -196,6 +262,54 @@ module Google
|
|
196
262
|
include Google::Apis::Core::JsonObjectSupport
|
197
263
|
end
|
198
264
|
|
265
|
+
class CertChain
|
266
|
+
# @private
|
267
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
268
|
+
collection :certificates, as: 'certificates'
|
269
|
+
end
|
270
|
+
end
|
271
|
+
|
272
|
+
class CertificateAuthority
|
273
|
+
# @private
|
274
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
275
|
+
property :managed_server_ca, as: 'managedServerCa', class: Google::Apis::RedisV1beta1::ManagedCertificateAuthority, decorator: Google::Apis::RedisV1beta1::ManagedCertificateAuthority::Representation
|
276
|
+
|
277
|
+
end
|
278
|
+
end
|
279
|
+
|
280
|
+
class Cluster
|
281
|
+
# @private
|
282
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
283
|
+
property :authorization_mode, as: 'authorizationMode'
|
284
|
+
property :create_time, as: 'createTime'
|
285
|
+
collection :discovery_endpoints, as: 'discoveryEndpoints', class: Google::Apis::RedisV1beta1::DiscoveryEndpoint, decorator: Google::Apis::RedisV1beta1::DiscoveryEndpoint::Representation
|
286
|
+
|
287
|
+
property :name, as: 'name'
|
288
|
+
collection :psc_configs, as: 'pscConfigs', class: Google::Apis::RedisV1beta1::PscConfig, decorator: Google::Apis::RedisV1beta1::PscConfig::Representation
|
289
|
+
|
290
|
+
collection :psc_connections, as: 'pscConnections', class: Google::Apis::RedisV1beta1::PscConnection, decorator: Google::Apis::RedisV1beta1::PscConnection::Representation
|
291
|
+
|
292
|
+
property :replica_count, as: 'replicaCount'
|
293
|
+
property :shard_count, as: 'shardCount'
|
294
|
+
property :size_gb, as: 'sizeGb'
|
295
|
+
property :state, as: 'state'
|
296
|
+
property :state_info, as: 'stateInfo', class: Google::Apis::RedisV1beta1::StateInfo, decorator: Google::Apis::RedisV1beta1::StateInfo::Representation
|
297
|
+
|
298
|
+
property :transit_encryption_mode, as: 'transitEncryptionMode'
|
299
|
+
property :uid, as: 'uid'
|
300
|
+
end
|
301
|
+
end
|
302
|
+
|
303
|
+
class DiscoveryEndpoint
|
304
|
+
# @private
|
305
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
306
|
+
property :address, as: 'address'
|
307
|
+
property :port, as: 'port'
|
308
|
+
property :psc_config, as: 'pscConfig', class: Google::Apis::RedisV1beta1::PscConfig, decorator: Google::Apis::RedisV1beta1::PscConfig::Representation
|
309
|
+
|
310
|
+
end
|
311
|
+
end
|
312
|
+
|
199
313
|
class Empty
|
200
314
|
# @private
|
201
315
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -327,6 +441,16 @@ module Google
|
|
327
441
|
end
|
328
442
|
end
|
329
443
|
|
444
|
+
class ListClustersResponse
|
445
|
+
# @private
|
446
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
447
|
+
collection :clusters, as: 'clusters', class: Google::Apis::RedisV1beta1::Cluster, decorator: Google::Apis::RedisV1beta1::Cluster::Representation
|
448
|
+
|
449
|
+
property :next_page_token, as: 'nextPageToken'
|
450
|
+
collection :unreachable, as: 'unreachable'
|
451
|
+
end
|
452
|
+
end
|
453
|
+
|
330
454
|
class ListInstancesResponse
|
331
455
|
# @private
|
332
456
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -387,6 +511,14 @@ module Google
|
|
387
511
|
end
|
388
512
|
end
|
389
513
|
|
514
|
+
class ManagedCertificateAuthority
|
515
|
+
# @private
|
516
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
517
|
+
collection :ca_certs, as: 'caCerts', class: Google::Apis::RedisV1beta1::CertChain, decorator: Google::Apis::RedisV1beta1::CertChain::Representation
|
518
|
+
|
519
|
+
end
|
520
|
+
end
|
521
|
+
|
390
522
|
class NodeInfo
|
391
523
|
# @private
|
392
524
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -407,6 +539,19 @@ module Google
|
|
407
539
|
end
|
408
540
|
end
|
409
541
|
|
542
|
+
class OperationMetadata
|
543
|
+
# @private
|
544
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
545
|
+
property :api_version, as: 'apiVersion'
|
546
|
+
property :create_time, as: 'createTime'
|
547
|
+
property :end_time, as: 'endTime'
|
548
|
+
property :requested_cancellation, as: 'requestedCancellation'
|
549
|
+
property :status_message, as: 'statusMessage'
|
550
|
+
property :target, as: 'target'
|
551
|
+
property :verb, as: 'verb'
|
552
|
+
end
|
553
|
+
end
|
554
|
+
|
410
555
|
class OutputConfig
|
411
556
|
# @private
|
412
557
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -425,6 +570,24 @@ module Google
|
|
425
570
|
end
|
426
571
|
end
|
427
572
|
|
573
|
+
class PscConfig
|
574
|
+
# @private
|
575
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
576
|
+
property :network, as: 'network'
|
577
|
+
end
|
578
|
+
end
|
579
|
+
|
580
|
+
class PscConnection
|
581
|
+
# @private
|
582
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
583
|
+
property :address, as: 'address'
|
584
|
+
property :forwarding_rule, as: 'forwardingRule'
|
585
|
+
property :network, as: 'network'
|
586
|
+
property :project_id, as: 'projectId'
|
587
|
+
property :psc_connection_id, as: 'pscConnectionId'
|
588
|
+
end
|
589
|
+
end
|
590
|
+
|
428
591
|
class ReconciliationOperationMetadata
|
429
592
|
# @private
|
430
593
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -441,6 +604,14 @@ module Google
|
|
441
604
|
end
|
442
605
|
end
|
443
606
|
|
607
|
+
class StateInfo
|
608
|
+
# @private
|
609
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
610
|
+
property :update_info, as: 'updateInfo', class: Google::Apis::RedisV1beta1::UpdateInfo, decorator: Google::Apis::RedisV1beta1::UpdateInfo::Representation
|
611
|
+
|
612
|
+
end
|
613
|
+
end
|
614
|
+
|
444
615
|
class Status
|
445
616
|
# @private
|
446
617
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -471,6 +642,14 @@ module Google
|
|
471
642
|
end
|
472
643
|
end
|
473
644
|
|
645
|
+
class UpdateInfo
|
646
|
+
# @private
|
647
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
648
|
+
property :target_replica_count, as: 'targetReplicaCount'
|
649
|
+
property :target_shard_count, as: 'targetShardCount'
|
650
|
+
end
|
651
|
+
end
|
652
|
+
|
474
653
|
class UpgradeInstanceRequest
|
475
654
|
# @private
|
476
655
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -122,6 +122,247 @@ module Google
|
|
122
122
|
execute_or_queue_command(command, &block)
|
123
123
|
end
|
124
124
|
|
125
|
+
# Creates a Redis cluster based on the specified properties. The creation is
|
126
|
+
# executed asynchronously and callers may check the returned operation to track
|
127
|
+
# its progress. Once the operation is completed the Redis cluster will be fully
|
128
|
+
# functional. The completed longrunning.Operation will contain the new cluster
|
129
|
+
# object in the response field. The returned operation is automatically deleted
|
130
|
+
# after a few hours, so there is no need to call DeleteOperation.
|
131
|
+
# @param [String] parent
|
132
|
+
# Required. The resource name of the cluster location using the form: `projects/`
|
133
|
+
# project_id`/locations/`location_id`` where `location_id` refers to a GCP
|
134
|
+
# region.
|
135
|
+
# @param [Google::Apis::RedisV1beta1::Cluster] cluster_object
|
136
|
+
# @param [String] cluster_id
|
137
|
+
# Required. The logical name of the Redis cluster in the customer project with
|
138
|
+
# the following restrictions: * Must contain only lowercase letters, numbers,
|
139
|
+
# and hyphens. * Must start with a letter. * Must be between 1-63 characters. *
|
140
|
+
# Must end with a number or a letter. * Must be unique within the customer
|
141
|
+
# project / location
|
142
|
+
# @param [String] request_id
|
143
|
+
# Idempotent request UUID.
|
144
|
+
# @param [String] fields
|
145
|
+
# Selector specifying which fields to include in a partial response.
|
146
|
+
# @param [String] quota_user
|
147
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
148
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
149
|
+
# @param [Google::Apis::RequestOptions] options
|
150
|
+
# Request-specific options
|
151
|
+
#
|
152
|
+
# @yield [result, err] Result & error if block supplied
|
153
|
+
# @yieldparam result [Google::Apis::RedisV1beta1::Operation] parsed result object
|
154
|
+
# @yieldparam err [StandardError] error object if request failed
|
155
|
+
#
|
156
|
+
# @return [Google::Apis::RedisV1beta1::Operation]
|
157
|
+
#
|
158
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
159
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
160
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
161
|
+
def create_project_location_cluster(parent, cluster_object = nil, cluster_id: nil, request_id: nil, fields: nil, quota_user: nil, options: nil, &block)
|
162
|
+
command = make_simple_command(:post, 'v1beta1/{+parent}/clusters', options)
|
163
|
+
command.request_representation = Google::Apis::RedisV1beta1::Cluster::Representation
|
164
|
+
command.request_object = cluster_object
|
165
|
+
command.response_representation = Google::Apis::RedisV1beta1::Operation::Representation
|
166
|
+
command.response_class = Google::Apis::RedisV1beta1::Operation
|
167
|
+
command.params['parent'] = parent unless parent.nil?
|
168
|
+
command.query['clusterId'] = cluster_id unless cluster_id.nil?
|
169
|
+
command.query['requestId'] = request_id unless request_id.nil?
|
170
|
+
command.query['fields'] = fields unless fields.nil?
|
171
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
172
|
+
execute_or_queue_command(command, &block)
|
173
|
+
end
|
174
|
+
|
175
|
+
# Deletes a specific Redis cluster. Cluster stops serving and data is deleted.
|
176
|
+
# @param [String] name
|
177
|
+
# Required. Redis cluster resource name using the form: `projects/`project_id`/
|
178
|
+
# locations/`location_id`/clusters/`cluster_id`` where `location_id` refers to a
|
179
|
+
# GCP region.
|
180
|
+
# @param [String] request_id
|
181
|
+
# Idempotent request UUID.
|
182
|
+
# @param [String] fields
|
183
|
+
# Selector specifying which fields to include in a partial response.
|
184
|
+
# @param [String] quota_user
|
185
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
186
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
187
|
+
# @param [Google::Apis::RequestOptions] options
|
188
|
+
# Request-specific options
|
189
|
+
#
|
190
|
+
# @yield [result, err] Result & error if block supplied
|
191
|
+
# @yieldparam result [Google::Apis::RedisV1beta1::Operation] parsed result object
|
192
|
+
# @yieldparam err [StandardError] error object if request failed
|
193
|
+
#
|
194
|
+
# @return [Google::Apis::RedisV1beta1::Operation]
|
195
|
+
#
|
196
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
197
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
198
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
199
|
+
def delete_project_location_cluster(name, request_id: nil, fields: nil, quota_user: nil, options: nil, &block)
|
200
|
+
command = make_simple_command(:delete, 'v1beta1/{+name}', options)
|
201
|
+
command.response_representation = Google::Apis::RedisV1beta1::Operation::Representation
|
202
|
+
command.response_class = Google::Apis::RedisV1beta1::Operation
|
203
|
+
command.params['name'] = name unless name.nil?
|
204
|
+
command.query['requestId'] = request_id unless request_id.nil?
|
205
|
+
command.query['fields'] = fields unless fields.nil?
|
206
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
207
|
+
execute_or_queue_command(command, &block)
|
208
|
+
end
|
209
|
+
|
210
|
+
# Gets the details of a specific Redis cluster.
|
211
|
+
# @param [String] name
|
212
|
+
# Required. Redis cluster resource name using the form: `projects/`project_id`/
|
213
|
+
# locations/`location_id`/clusters/`cluster_id`` where `location_id` refers to a
|
214
|
+
# GCP region.
|
215
|
+
# @param [String] fields
|
216
|
+
# Selector specifying which fields to include in a partial response.
|
217
|
+
# @param [String] quota_user
|
218
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
219
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
220
|
+
# @param [Google::Apis::RequestOptions] options
|
221
|
+
# Request-specific options
|
222
|
+
#
|
223
|
+
# @yield [result, err] Result & error if block supplied
|
224
|
+
# @yieldparam result [Google::Apis::RedisV1beta1::Cluster] parsed result object
|
225
|
+
# @yieldparam err [StandardError] error object if request failed
|
226
|
+
#
|
227
|
+
# @return [Google::Apis::RedisV1beta1::Cluster]
|
228
|
+
#
|
229
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
230
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
231
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
232
|
+
def get_project_location_cluster(name, fields: nil, quota_user: nil, options: nil, &block)
|
233
|
+
command = make_simple_command(:get, 'v1beta1/{+name}', options)
|
234
|
+
command.response_representation = Google::Apis::RedisV1beta1::Cluster::Representation
|
235
|
+
command.response_class = Google::Apis::RedisV1beta1::Cluster
|
236
|
+
command.params['name'] = name unless name.nil?
|
237
|
+
command.query['fields'] = fields unless fields.nil?
|
238
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
239
|
+
execute_or_queue_command(command, &block)
|
240
|
+
end
|
241
|
+
|
242
|
+
# Gets the details of certificate authority information for Redis cluster.
|
243
|
+
# @param [String] name
|
244
|
+
# Required. Redis cluster certificate authority resource name using the form: `
|
245
|
+
# projects/`project_id`/locations/`location_id`/clusters/`cluster_id`/
|
246
|
+
# certificateAuthority` where `location_id` refers to a GCP region.
|
247
|
+
# @param [String] fields
|
248
|
+
# Selector specifying which fields to include in a partial response.
|
249
|
+
# @param [String] quota_user
|
250
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
251
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
252
|
+
# @param [Google::Apis::RequestOptions] options
|
253
|
+
# Request-specific options
|
254
|
+
#
|
255
|
+
# @yield [result, err] Result & error if block supplied
|
256
|
+
# @yieldparam result [Google::Apis::RedisV1beta1::CertificateAuthority] parsed result object
|
257
|
+
# @yieldparam err [StandardError] error object if request failed
|
258
|
+
#
|
259
|
+
# @return [Google::Apis::RedisV1beta1::CertificateAuthority]
|
260
|
+
#
|
261
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
262
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
263
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
264
|
+
def get_project_location_cluster_certificate_authority(name, fields: nil, quota_user: nil, options: nil, &block)
|
265
|
+
command = make_simple_command(:get, 'v1beta1/{+name}/certificateAuthority', options)
|
266
|
+
command.response_representation = Google::Apis::RedisV1beta1::CertificateAuthority::Representation
|
267
|
+
command.response_class = Google::Apis::RedisV1beta1::CertificateAuthority
|
268
|
+
command.params['name'] = name unless name.nil?
|
269
|
+
command.query['fields'] = fields unless fields.nil?
|
270
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
271
|
+
execute_or_queue_command(command, &block)
|
272
|
+
end
|
273
|
+
|
274
|
+
# Lists all Redis clusters owned by a project in either the specified location (
|
275
|
+
# region) or all locations. The location should have the following format: * `
|
276
|
+
# projects/`project_id`/locations/`location_id`` If `location_id` is specified
|
277
|
+
# as `-` (wildcard), then all regions available to the project are queried, and
|
278
|
+
# the results are aggregated.
|
279
|
+
# @param [String] parent
|
280
|
+
# Required. The resource name of the cluster location using the form: `projects/`
|
281
|
+
# project_id`/locations/`location_id`` where `location_id` refers to a GCP
|
282
|
+
# region.
|
283
|
+
# @param [Fixnum] page_size
|
284
|
+
# The maximum number of items to return. If not specified, a default value of
|
285
|
+
# 1000 will be used by the service. Regardless of the page_size value, the
|
286
|
+
# response may include a partial list and a caller should only rely on response'
|
287
|
+
# s `next_page_token` to determine if there are more clusters left to be queried.
|
288
|
+
# @param [String] page_token
|
289
|
+
# The `next_page_token` value returned from a previous ListClusters request, if
|
290
|
+
# any.
|
291
|
+
# @param [String] fields
|
292
|
+
# Selector specifying which fields to include in a partial response.
|
293
|
+
# @param [String] quota_user
|
294
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
295
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
296
|
+
# @param [Google::Apis::RequestOptions] options
|
297
|
+
# Request-specific options
|
298
|
+
#
|
299
|
+
# @yield [result, err] Result & error if block supplied
|
300
|
+
# @yieldparam result [Google::Apis::RedisV1beta1::ListClustersResponse] parsed result object
|
301
|
+
# @yieldparam err [StandardError] error object if request failed
|
302
|
+
#
|
303
|
+
# @return [Google::Apis::RedisV1beta1::ListClustersResponse]
|
304
|
+
#
|
305
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
306
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
307
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
308
|
+
def list_project_location_clusters(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
309
|
+
command = make_simple_command(:get, 'v1beta1/{+parent}/clusters', options)
|
310
|
+
command.response_representation = Google::Apis::RedisV1beta1::ListClustersResponse::Representation
|
311
|
+
command.response_class = Google::Apis::RedisV1beta1::ListClustersResponse
|
312
|
+
command.params['parent'] = parent unless parent.nil?
|
313
|
+
command.query['pageSize'] = page_size unless page_size.nil?
|
314
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
315
|
+
command.query['fields'] = fields unless fields.nil?
|
316
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
317
|
+
execute_or_queue_command(command, &block)
|
318
|
+
end
|
319
|
+
|
320
|
+
# Updates the metadata and configuration of a specific Redis cluster. Completed
|
321
|
+
# longrunning.Operation will contain the new cluster object in the response
|
322
|
+
# field. The returned operation is automatically deleted after a few hours, so
|
323
|
+
# there is no need to call DeleteOperation.
|
324
|
+
# @param [String] name
|
325
|
+
# Required. Unique name of the resource in this scope including project and
|
326
|
+
# location using the form: `projects/`project_id`/locations/`location_id`/
|
327
|
+
# clusters/`cluster_id``
|
328
|
+
# @param [Google::Apis::RedisV1beta1::Cluster] cluster_object
|
329
|
+
# @param [String] request_id
|
330
|
+
# Idempotent request UUID.
|
331
|
+
# @param [String] update_mask
|
332
|
+
# Required. Mask of fields to update. At least one path must be supplied in this
|
333
|
+
# field. The elements of the repeated paths field may only include these fields
|
334
|
+
# from Cluster: * `size_gb` * `replica_count`
|
335
|
+
# @param [String] fields
|
336
|
+
# Selector specifying which fields to include in a partial response.
|
337
|
+
# @param [String] quota_user
|
338
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
339
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
340
|
+
# @param [Google::Apis::RequestOptions] options
|
341
|
+
# Request-specific options
|
342
|
+
#
|
343
|
+
# @yield [result, err] Result & error if block supplied
|
344
|
+
# @yieldparam result [Google::Apis::RedisV1beta1::Operation] parsed result object
|
345
|
+
# @yieldparam err [StandardError] error object if request failed
|
346
|
+
#
|
347
|
+
# @return [Google::Apis::RedisV1beta1::Operation]
|
348
|
+
#
|
349
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
350
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
351
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
352
|
+
def patch_project_location_cluster(name, cluster_object = nil, request_id: nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
|
353
|
+
command = make_simple_command(:patch, 'v1beta1/{+name}', options)
|
354
|
+
command.request_representation = Google::Apis::RedisV1beta1::Cluster::Representation
|
355
|
+
command.request_object = cluster_object
|
356
|
+
command.response_representation = Google::Apis::RedisV1beta1::Operation::Representation
|
357
|
+
command.response_class = Google::Apis::RedisV1beta1::Operation
|
358
|
+
command.params['name'] = name unless name.nil?
|
359
|
+
command.query['requestId'] = request_id unless request_id.nil?
|
360
|
+
command.query['updateMask'] = update_mask unless update_mask.nil?
|
361
|
+
command.query['fields'] = fields unless fields.nil?
|
362
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
363
|
+
execute_or_queue_command(command, &block)
|
364
|
+
end
|
365
|
+
|
125
366
|
# Creates a Redis instance based on the specified tier and memory size. By
|
126
367
|
# default, the instance is accessible from the project's [default network](https:
|
127
368
|
# //cloud.google.com/vpc/docs/vpc). The creation is executed asynchronously and
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: google-apis-redis_v1beta1
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.37.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: 2023-
|
11
|
+
date: 2023-09-17 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: google-apis-core
|
@@ -59,7 +59,7 @@ licenses:
|
|
59
59
|
metadata:
|
60
60
|
bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
|
61
61
|
changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-redis_v1beta1/CHANGELOG.md
|
62
|
-
documentation_uri: https://googleapis.dev/ruby/google-apis-redis_v1beta1/v0.
|
62
|
+
documentation_uri: https://googleapis.dev/ruby/google-apis-redis_v1beta1/v0.37.0
|
63
63
|
source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-redis_v1beta1
|
64
64
|
post_install_message:
|
65
65
|
rdoc_options: []
|
@@ -76,7 +76,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
76
76
|
- !ruby/object:Gem::Version
|
77
77
|
version: '0'
|
78
78
|
requirements: []
|
79
|
-
rubygems_version: 3.4.
|
79
|
+
rubygems_version: 3.4.19
|
80
80
|
signing_key:
|
81
81
|
specification_version: 4
|
82
82
|
summary: Simple REST client for Google Cloud Memorystore for Redis API V1beta1
|