google-apis-redis_v1 0.39.0 → 0.41.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: 53fb4b929a46cfd804445d8aef4dcb8fce15607626ca3c157fad5c9bef9c15a4
4
- data.tar.gz: 6ae9a719d56e0886af172fed075614b5e91dccb0c27b2cb0136c9aa9befd6724
3
+ metadata.gz: ec83060be9600147d96edf834fdc94a7da10b6f564c6421a749b5eca89aa0b0d
4
+ data.tar.gz: 5ae79ed581add96750f2a723fbe3923cdfda5ffec8186f9ba4e17896a6c0cb18
5
5
  SHA512:
6
- metadata.gz: 2f9a600bd9003734a280087dd628092b315ac4bfb9cc47c7f206e1e4499ea693b0b0497ff7a4aa4c024c6187aeca68a15f94a914446200b8c80567c085d23f93
7
- data.tar.gz: e556703948d41a8c8dff3d6b3ec0b4b5372610fe34150d3b10ef17c3d4b507ede3fd56f9a025dfa2953eb4da013e7a99278f1ff1b8deefdc341a5c00d0af19c9
6
+ metadata.gz: 7c4b3ec3aac91b683fd13a98337773dc39daf2002b326701d97f87608009b7b1a1eeb778955bb3d4b5618efea14560ee3445c39ab714ba3d553f67ce0eacd0bd
7
+ data.tar.gz: 5c4acb86d4c22375704bda0c0602d763789d417a5392f1c0bb05fa161ddbf2ceef3637dd6a306228a74fa8301b90e7a16cd45fda9582df2b3152732f5e495349
data/CHANGELOG.md CHANGED
@@ -1,5 +1,13 @@
1
1
  # Release history for google-apis-redis_v1
2
2
 
3
+ ### v0.41.0 (2023-10-22)
4
+
5
+ * Regenerated from discovery document revision 20231017
6
+
7
+ ### v0.40.0 (2023-10-01)
8
+
9
+ * Regenerated from discovery document revision 20230925
10
+
3
11
  ### v0.39.0 (2023-08-13)
4
12
 
5
13
  * Regenerated from discovery document revision 20230804
@@ -22,6 +22,185 @@ module Google
22
22
  module Apis
23
23
  module RedisV1
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::RedisV1::ManagedCertificateAuthority]
51
+ attr_accessor :managed_server_ca
52
+
53
+ # Identifier. Unique name of the resource in this scope including project,
54
+ # location and cluster using the form: `projects/`project`/locations/`location`/
55
+ # clusters/`cluster`/certificateAuthority`
56
+ # Corresponds to the JSON property `name`
57
+ # @return [String]
58
+ attr_accessor :name
59
+
60
+ def initialize(**args)
61
+ update!(**args)
62
+ end
63
+
64
+ # Update properties of this object
65
+ def update!(**args)
66
+ @managed_server_ca = args[:managed_server_ca] if args.key?(:managed_server_ca)
67
+ @name = args[:name] if args.key?(:name)
68
+ end
69
+ end
70
+
71
+ # A cluster instance.
72
+ class Cluster
73
+ include Google::Apis::Core::Hashable
74
+
75
+ # Optional. The authorization mode of the Redis cluster. If not provided, auth
76
+ # feature is disabled for the cluster.
77
+ # Corresponds to the JSON property `authorizationMode`
78
+ # @return [String]
79
+ attr_accessor :authorization_mode
80
+
81
+ # Output only. The timestamp associated with the cluster creation request.
82
+ # Corresponds to the JSON property `createTime`
83
+ # @return [String]
84
+ attr_accessor :create_time
85
+
86
+ # Output only. Endpoints created on each given network, for Redis clients to
87
+ # connect to the cluster. Currently only one discovery endpoint is supported.
88
+ # Corresponds to the JSON property `discoveryEndpoints`
89
+ # @return [Array<Google::Apis::RedisV1::DiscoveryEndpoint>]
90
+ attr_accessor :discovery_endpoints
91
+
92
+ # Required. Unique name of the resource in this scope including project and
93
+ # location using the form: `projects/`project_id`/locations/`location_id`/
94
+ # clusters/`cluster_id``
95
+ # Corresponds to the JSON property `name`
96
+ # @return [String]
97
+ attr_accessor :name
98
+
99
+ # Required. Each PscConfig configures the consumer network where IPs will be
100
+ # designated to the cluster for client access through Private Service Connect
101
+ # Automation. Currently, only one PscConfig is supported.
102
+ # Corresponds to the JSON property `pscConfigs`
103
+ # @return [Array<Google::Apis::RedisV1::PscConfig>]
104
+ attr_accessor :psc_configs
105
+
106
+ # Output only. PSC connections for discovery of the cluster topology and
107
+ # accessing the cluster.
108
+ # Corresponds to the JSON property `pscConnections`
109
+ # @return [Array<Google::Apis::RedisV1::PscConnection>]
110
+ attr_accessor :psc_connections
111
+
112
+ # Optional. The number of replica nodes per shard.
113
+ # Corresponds to the JSON property `replicaCount`
114
+ # @return [Fixnum]
115
+ attr_accessor :replica_count
116
+
117
+ # Required. Number of shards for the Redis cluster.
118
+ # Corresponds to the JSON property `shardCount`
119
+ # @return [Fixnum]
120
+ attr_accessor :shard_count
121
+
122
+ # Output only. Redis memory size in GB for the entire cluster.
123
+ # Corresponds to the JSON property `sizeGb`
124
+ # @return [Fixnum]
125
+ attr_accessor :size_gb
126
+
127
+ # Output only. The current state of this cluster. Can be CREATING, READY,
128
+ # UPDATING, DELETING and SUSPENDED
129
+ # Corresponds to the JSON property `state`
130
+ # @return [String]
131
+ attr_accessor :state
132
+
133
+ # Represents additional information about the state of the cluster.
134
+ # Corresponds to the JSON property `stateInfo`
135
+ # @return [Google::Apis::RedisV1::StateInfo]
136
+ attr_accessor :state_info
137
+
138
+ # Optional. The in-transit encryption for the Redis cluster. If not provided,
139
+ # encryption is disabled for the cluster.
140
+ # Corresponds to the JSON property `transitEncryptionMode`
141
+ # @return [String]
142
+ attr_accessor :transit_encryption_mode
143
+
144
+ # Output only. System assigned, unique identifier for the cluster.
145
+ # Corresponds to the JSON property `uid`
146
+ # @return [String]
147
+ attr_accessor :uid
148
+
149
+ def initialize(**args)
150
+ update!(**args)
151
+ end
152
+
153
+ # Update properties of this object
154
+ def update!(**args)
155
+ @authorization_mode = args[:authorization_mode] if args.key?(:authorization_mode)
156
+ @create_time = args[:create_time] if args.key?(:create_time)
157
+ @discovery_endpoints = args[:discovery_endpoints] if args.key?(:discovery_endpoints)
158
+ @name = args[:name] if args.key?(:name)
159
+ @psc_configs = args[:psc_configs] if args.key?(:psc_configs)
160
+ @psc_connections = args[:psc_connections] if args.key?(:psc_connections)
161
+ @replica_count = args[:replica_count] if args.key?(:replica_count)
162
+ @shard_count = args[:shard_count] if args.key?(:shard_count)
163
+ @size_gb = args[:size_gb] if args.key?(:size_gb)
164
+ @state = args[:state] if args.key?(:state)
165
+ @state_info = args[:state_info] if args.key?(:state_info)
166
+ @transit_encryption_mode = args[:transit_encryption_mode] if args.key?(:transit_encryption_mode)
167
+ @uid = args[:uid] if args.key?(:uid)
168
+ end
169
+ end
170
+
171
+ # Endpoints on each network, for Redis clients to connect to the cluster.
172
+ class DiscoveryEndpoint
173
+ include Google::Apis::Core::Hashable
174
+
175
+ # Output only. Address of the exposed Redis endpoint used by clients to connect
176
+ # to the service. The address could be either IP or hostname.
177
+ # Corresponds to the JSON property `address`
178
+ # @return [String]
179
+ attr_accessor :address
180
+
181
+ # Output only. The port number of the exposed Redis endpoint.
182
+ # Corresponds to the JSON property `port`
183
+ # @return [Fixnum]
184
+ attr_accessor :port
185
+
186
+ # Output only. Customer configuration for where the endpoint is created and
187
+ # accessed from.
188
+ # Corresponds to the JSON property `pscConfig`
189
+ # @return [Google::Apis::RedisV1::PscConfig]
190
+ attr_accessor :psc_config
191
+
192
+ def initialize(**args)
193
+ update!(**args)
194
+ end
195
+
196
+ # Update properties of this object
197
+ def update!(**args)
198
+ @address = args[:address] if args.key?(:address)
199
+ @port = args[:port] if args.key?(:port)
200
+ @psc_config = args[:psc_config] if args.key?(:psc_config)
201
+ end
202
+ end
203
+
25
204
  # A generic empty message that you can re-use to avoid defining duplicated empty
26
205
  # messages in your APIs. A typical example is to use it as the request or the
27
206
  # response type of an API method. For instance: service Foo ` rpc Bar(google.
@@ -547,6 +726,45 @@ module Google
547
726
  end
548
727
  end
549
728
 
729
+ # Response for ListClusters.
730
+ class ListClustersResponse
731
+ include Google::Apis::Core::Hashable
732
+
733
+ # A list of Redis clusters in the project in the specified location, or across
734
+ # all locations. If the `location_id` in the parent field of the request is "-",
735
+ # all regions available to the project are queried, and the results aggregated.
736
+ # If in such an aggregated query a location is unavailable, a placeholder Redis
737
+ # entry is included in the response with the `name` field set to a value of the
738
+ # form `projects/`project_id`/locations/`location_id`/clusters/`- and the `
739
+ # status` field set to ERROR and `status_message` field set to "location not
740
+ # available for ListClusters".
741
+ # Corresponds to the JSON property `clusters`
742
+ # @return [Array<Google::Apis::RedisV1::Cluster>]
743
+ attr_accessor :clusters
744
+
745
+ # Token to retrieve the next page of results, or empty if there are no more
746
+ # results in the list.
747
+ # Corresponds to the JSON property `nextPageToken`
748
+ # @return [String]
749
+ attr_accessor :next_page_token
750
+
751
+ # Locations that could not be reached.
752
+ # Corresponds to the JSON property `unreachable`
753
+ # @return [Array<String>]
754
+ attr_accessor :unreachable
755
+
756
+ def initialize(**args)
757
+ update!(**args)
758
+ end
759
+
760
+ # Update properties of this object
761
+ def update!(**args)
762
+ @clusters = args[:clusters] if args.key?(:clusters)
763
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
764
+ @unreachable = args[:unreachable] if args.key?(:unreachable)
765
+ end
766
+ end
767
+
550
768
  # Response for ListInstances.
551
769
  class ListInstancesResponse
552
770
  include Google::Apis::Core::Hashable
@@ -767,6 +985,25 @@ module Google
767
985
  end
768
986
  end
769
987
 
988
+ #
989
+ class ManagedCertificateAuthority
990
+ include Google::Apis::Core::Hashable
991
+
992
+ # The PEM encoded CA certificate chains for redis managed server authentication
993
+ # Corresponds to the JSON property `caCerts`
994
+ # @return [Array<Google::Apis::RedisV1::CertChain>]
995
+ attr_accessor :ca_certs
996
+
997
+ def initialize(**args)
998
+ update!(**args)
999
+ end
1000
+
1001
+ # Update properties of this object
1002
+ def update!(**args)
1003
+ @ca_certs = args[:ca_certs] if args.key?(:ca_certs)
1004
+ end
1005
+ end
1006
+
770
1007
  # Node specific properties.
771
1008
  class NodeInfo
772
1009
  include Google::Apis::Core::Hashable
@@ -858,6 +1095,65 @@ module Google
858
1095
  end
859
1096
  end
860
1097
 
1098
+ # Pre-defined metadata fields.
1099
+ class OperationMetadata
1100
+ include Google::Apis::Core::Hashable
1101
+
1102
+ # Output only. API version used to start the operation.
1103
+ # Corresponds to the JSON property `apiVersion`
1104
+ # @return [String]
1105
+ attr_accessor :api_version
1106
+
1107
+ # Output only. The time the operation was created.
1108
+ # Corresponds to the JSON property `createTime`
1109
+ # @return [String]
1110
+ attr_accessor :create_time
1111
+
1112
+ # Output only. The time the operation finished running.
1113
+ # Corresponds to the JSON property `endTime`
1114
+ # @return [String]
1115
+ attr_accessor :end_time
1116
+
1117
+ # Output only. Identifies whether the user has requested cancellation of the
1118
+ # operation. Operations that have successfully been cancelled have Operation.
1119
+ # error value with a google.rpc.Status.code of 1, corresponding to `Code.
1120
+ # CANCELLED`.
1121
+ # Corresponds to the JSON property `requestedCancellation`
1122
+ # @return [Boolean]
1123
+ attr_accessor :requested_cancellation
1124
+ alias_method :requested_cancellation?, :requested_cancellation
1125
+
1126
+ # Output only. Human-readable status of the operation, if any.
1127
+ # Corresponds to the JSON property `statusMessage`
1128
+ # @return [String]
1129
+ attr_accessor :status_message
1130
+
1131
+ # Output only. Server-defined resource path for the target of the operation.
1132
+ # Corresponds to the JSON property `target`
1133
+ # @return [String]
1134
+ attr_accessor :target
1135
+
1136
+ # Output only. Name of the verb executed by the operation.
1137
+ # Corresponds to the JSON property `verb`
1138
+ # @return [String]
1139
+ attr_accessor :verb
1140
+
1141
+ def initialize(**args)
1142
+ update!(**args)
1143
+ end
1144
+
1145
+ # Update properties of this object
1146
+ def update!(**args)
1147
+ @api_version = args[:api_version] if args.key?(:api_version)
1148
+ @create_time = args[:create_time] if args.key?(:create_time)
1149
+ @end_time = args[:end_time] if args.key?(:end_time)
1150
+ @requested_cancellation = args[:requested_cancellation] if args.key?(:requested_cancellation)
1151
+ @status_message = args[:status_message] if args.key?(:status_message)
1152
+ @target = args[:target] if args.key?(:target)
1153
+ @verb = args[:verb] if args.key?(:verb)
1154
+ end
1155
+ end
1156
+
861
1157
  # The output content
862
1158
  class OutputConfig
863
1159
  include Google::Apis::Core::Hashable
@@ -922,6 +1218,74 @@ module Google
922
1218
  end
923
1219
  end
924
1220
 
1221
+ #
1222
+ class PscConfig
1223
+ include Google::Apis::Core::Hashable
1224
+
1225
+ # Required. The network where the IP address of the discovery endpoint will be
1226
+ # reserved, in the form of projects/`network_project`/global/networks/`
1227
+ # network_id`.
1228
+ # Corresponds to the JSON property `network`
1229
+ # @return [String]
1230
+ attr_accessor :network
1231
+
1232
+ def initialize(**args)
1233
+ update!(**args)
1234
+ end
1235
+
1236
+ # Update properties of this object
1237
+ def update!(**args)
1238
+ @network = args[:network] if args.key?(:network)
1239
+ end
1240
+ end
1241
+
1242
+ # Details of consumer resources in a PSC connection.
1243
+ class PscConnection
1244
+ include Google::Apis::Core::Hashable
1245
+
1246
+ # Output only. The IP allocated on the consumer network for the PSC forwarding
1247
+ # rule.
1248
+ # Corresponds to the JSON property `address`
1249
+ # @return [String]
1250
+ attr_accessor :address
1251
+
1252
+ # Output only. The URI of the consumer side forwarding rule. Example: projects/`
1253
+ # projectNumOrId`/regions/us-east1/forwardingRules/`resourceId`.
1254
+ # Corresponds to the JSON property `forwardingRule`
1255
+ # @return [String]
1256
+ attr_accessor :forwarding_rule
1257
+
1258
+ # The consumer network where the IP address resides, in the form of projects/`
1259
+ # project_id`/global/networks/`network_id`.
1260
+ # Corresponds to the JSON property `network`
1261
+ # @return [String]
1262
+ attr_accessor :network
1263
+
1264
+ # Output only. The consumer project_id where the forwarding rule is created from.
1265
+ # Corresponds to the JSON property `projectId`
1266
+ # @return [String]
1267
+ attr_accessor :project_id
1268
+
1269
+ # Output only. The PSC connection id of the forwarding rule connected to the
1270
+ # service attachment.
1271
+ # Corresponds to the JSON property `pscConnectionId`
1272
+ # @return [String]
1273
+ attr_accessor :psc_connection_id
1274
+
1275
+ def initialize(**args)
1276
+ update!(**args)
1277
+ end
1278
+
1279
+ # Update properties of this object
1280
+ def update!(**args)
1281
+ @address = args[:address] if args.key?(:address)
1282
+ @forwarding_rule = args[:forwarding_rule] if args.key?(:forwarding_rule)
1283
+ @network = args[:network] if args.key?(:network)
1284
+ @project_id = args[:project_id] if args.key?(:project_id)
1285
+ @psc_connection_id = args[:psc_connection_id] if args.key?(:psc_connection_id)
1286
+ end
1287
+ end
1288
+
925
1289
  # Operation metadata returned by the CLH during resource state reconciliation.
926
1290
  class ReconciliationOperationMetadata
927
1291
  include Google::Apis::Core::Hashable
@@ -976,6 +1340,25 @@ module Google
976
1340
  end
977
1341
  end
978
1342
 
1343
+ # Represents additional information about the state of the cluster.
1344
+ class StateInfo
1345
+ include Google::Apis::Core::Hashable
1346
+
1347
+ # Represents information about an updating cluster.
1348
+ # Corresponds to the JSON property `updateInfo`
1349
+ # @return [Google::Apis::RedisV1::UpdateInfo]
1350
+ attr_accessor :update_info
1351
+
1352
+ def initialize(**args)
1353
+ update!(**args)
1354
+ end
1355
+
1356
+ # Update properties of this object
1357
+ def update!(**args)
1358
+ @update_info = args[:update_info] if args.key?(:update_info)
1359
+ end
1360
+ end
1361
+
979
1362
  # The `Status` type defines a logical error model that is suitable for different
980
1363
  # programming environments, including REST APIs and RPC APIs. It is used by [
981
1364
  # gRPC](https://github.com/grpc). Each `Status` message contains three pieces of
@@ -1101,6 +1484,31 @@ module Google
1101
1484
  end
1102
1485
  end
1103
1486
 
1487
+ # Represents information about an updating cluster.
1488
+ class UpdateInfo
1489
+ include Google::Apis::Core::Hashable
1490
+
1491
+ # Target number of replica nodes per shard.
1492
+ # Corresponds to the JSON property `targetReplicaCount`
1493
+ # @return [Fixnum]
1494
+ attr_accessor :target_replica_count
1495
+
1496
+ # Target number of shards for redis cluster
1497
+ # Corresponds to the JSON property `targetShardCount`
1498
+ # @return [Fixnum]
1499
+ attr_accessor :target_shard_count
1500
+
1501
+ def initialize(**args)
1502
+ update!(**args)
1503
+ end
1504
+
1505
+ # Update properties of this object
1506
+ def update!(**args)
1507
+ @target_replica_count = args[:target_replica_count] if args.key?(:target_replica_count)
1508
+ @target_shard_count = args[:target_shard_count] if args.key?(:target_shard_count)
1509
+ end
1510
+ end
1511
+
1104
1512
  # Request for UpgradeInstance.
1105
1513
  class UpgradeInstanceRequest
1106
1514
  include Google::Apis::Core::Hashable
@@ -16,13 +16,13 @@ module Google
16
16
  module Apis
17
17
  module RedisV1
18
18
  # Version of the google-apis-redis_v1 gem
19
- GEM_VERSION = "0.39.0"
19
+ GEM_VERSION = "0.41.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 = "20230804"
25
+ REVISION = "20231017"
26
26
  end
27
27
  end
28
28
  end
@@ -22,6 +22,30 @@ module Google
22
22
  module Apis
23
23
  module RedisV1
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,55 @@ 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::RedisV1::ManagedCertificateAuthority, decorator: Google::Apis::RedisV1::ManagedCertificateAuthority::Representation
276
+
277
+ property :name, as: 'name'
278
+ end
279
+ end
280
+
281
+ class Cluster
282
+ # @private
283
+ class Representation < Google::Apis::Core::JsonRepresentation
284
+ property :authorization_mode, as: 'authorizationMode'
285
+ property :create_time, as: 'createTime'
286
+ collection :discovery_endpoints, as: 'discoveryEndpoints', class: Google::Apis::RedisV1::DiscoveryEndpoint, decorator: Google::Apis::RedisV1::DiscoveryEndpoint::Representation
287
+
288
+ property :name, as: 'name'
289
+ collection :psc_configs, as: 'pscConfigs', class: Google::Apis::RedisV1::PscConfig, decorator: Google::Apis::RedisV1::PscConfig::Representation
290
+
291
+ collection :psc_connections, as: 'pscConnections', class: Google::Apis::RedisV1::PscConnection, decorator: Google::Apis::RedisV1::PscConnection::Representation
292
+
293
+ property :replica_count, as: 'replicaCount'
294
+ property :shard_count, as: 'shardCount'
295
+ property :size_gb, as: 'sizeGb'
296
+ property :state, as: 'state'
297
+ property :state_info, as: 'stateInfo', class: Google::Apis::RedisV1::StateInfo, decorator: Google::Apis::RedisV1::StateInfo::Representation
298
+
299
+ property :transit_encryption_mode, as: 'transitEncryptionMode'
300
+ property :uid, as: 'uid'
301
+ end
302
+ end
303
+
304
+ class DiscoveryEndpoint
305
+ # @private
306
+ class Representation < Google::Apis::Core::JsonRepresentation
307
+ property :address, as: 'address'
308
+ property :port, as: 'port'
309
+ property :psc_config, as: 'pscConfig', class: Google::Apis::RedisV1::PscConfig, decorator: Google::Apis::RedisV1::PscConfig::Representation
310
+
311
+ end
312
+ end
313
+
199
314
  class Empty
200
315
  # @private
201
316
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -327,6 +442,16 @@ module Google
327
442
  end
328
443
  end
329
444
 
445
+ class ListClustersResponse
446
+ # @private
447
+ class Representation < Google::Apis::Core::JsonRepresentation
448
+ collection :clusters, as: 'clusters', class: Google::Apis::RedisV1::Cluster, decorator: Google::Apis::RedisV1::Cluster::Representation
449
+
450
+ property :next_page_token, as: 'nextPageToken'
451
+ collection :unreachable, as: 'unreachable'
452
+ end
453
+ end
454
+
330
455
  class ListInstancesResponse
331
456
  # @private
332
457
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -387,6 +512,14 @@ module Google
387
512
  end
388
513
  end
389
514
 
515
+ class ManagedCertificateAuthority
516
+ # @private
517
+ class Representation < Google::Apis::Core::JsonRepresentation
518
+ collection :ca_certs, as: 'caCerts', class: Google::Apis::RedisV1::CertChain, decorator: Google::Apis::RedisV1::CertChain::Representation
519
+
520
+ end
521
+ end
522
+
390
523
  class NodeInfo
391
524
  # @private
392
525
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -407,6 +540,19 @@ module Google
407
540
  end
408
541
  end
409
542
 
543
+ class OperationMetadata
544
+ # @private
545
+ class Representation < Google::Apis::Core::JsonRepresentation
546
+ property :api_version, as: 'apiVersion'
547
+ property :create_time, as: 'createTime'
548
+ property :end_time, as: 'endTime'
549
+ property :requested_cancellation, as: 'requestedCancellation'
550
+ property :status_message, as: 'statusMessage'
551
+ property :target, as: 'target'
552
+ property :verb, as: 'verb'
553
+ end
554
+ end
555
+
410
556
  class OutputConfig
411
557
  # @private
412
558
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -425,6 +571,24 @@ module Google
425
571
  end
426
572
  end
427
573
 
574
+ class PscConfig
575
+ # @private
576
+ class Representation < Google::Apis::Core::JsonRepresentation
577
+ property :network, as: 'network'
578
+ end
579
+ end
580
+
581
+ class PscConnection
582
+ # @private
583
+ class Representation < Google::Apis::Core::JsonRepresentation
584
+ property :address, as: 'address'
585
+ property :forwarding_rule, as: 'forwardingRule'
586
+ property :network, as: 'network'
587
+ property :project_id, as: 'projectId'
588
+ property :psc_connection_id, as: 'pscConnectionId'
589
+ end
590
+ end
591
+
428
592
  class ReconciliationOperationMetadata
429
593
  # @private
430
594
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -441,6 +605,14 @@ module Google
441
605
  end
442
606
  end
443
607
 
608
+ class StateInfo
609
+ # @private
610
+ class Representation < Google::Apis::Core::JsonRepresentation
611
+ property :update_info, as: 'updateInfo', class: Google::Apis::RedisV1::UpdateInfo, decorator: Google::Apis::RedisV1::UpdateInfo::Representation
612
+
613
+ end
614
+ end
615
+
444
616
  class Status
445
617
  # @private
446
618
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -471,6 +643,14 @@ module Google
471
643
  end
472
644
  end
473
645
 
646
+ class UpdateInfo
647
+ # @private
648
+ class Representation < Google::Apis::Core::JsonRepresentation
649
+ property :target_replica_count, as: 'targetReplicaCount'
650
+ property :target_shard_count, as: 'targetShardCount'
651
+ end
652
+ end
653
+
474
654
  class UpgradeInstanceRequest
475
655
  # @private
476
656
  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::RedisV1::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::RedisV1::Operation] parsed result object
154
+ # @yieldparam err [StandardError] error object if request failed
155
+ #
156
+ # @return [Google::Apis::RedisV1::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, 'v1/{+parent}/clusters', options)
163
+ command.request_representation = Google::Apis::RedisV1::Cluster::Representation
164
+ command.request_object = cluster_object
165
+ command.response_representation = Google::Apis::RedisV1::Operation::Representation
166
+ command.response_class = Google::Apis::RedisV1::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::RedisV1::Operation] parsed result object
192
+ # @yieldparam err [StandardError] error object if request failed
193
+ #
194
+ # @return [Google::Apis::RedisV1::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, 'v1/{+name}', options)
201
+ command.response_representation = Google::Apis::RedisV1::Operation::Representation
202
+ command.response_class = Google::Apis::RedisV1::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::RedisV1::Cluster] parsed result object
225
+ # @yieldparam err [StandardError] error object if request failed
226
+ #
227
+ # @return [Google::Apis::RedisV1::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, 'v1/{+name}', options)
234
+ command.response_representation = Google::Apis::RedisV1::Cluster::Representation
235
+ command.response_class = Google::Apis::RedisV1::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::RedisV1::CertificateAuthority] parsed result object
257
+ # @yieldparam err [StandardError] error object if request failed
258
+ #
259
+ # @return [Google::Apis::RedisV1::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, 'v1/{+name}/certificateAuthority', options)
266
+ command.response_representation = Google::Apis::RedisV1::CertificateAuthority::Representation
267
+ command.response_class = Google::Apis::RedisV1::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::RedisV1::ListClustersResponse] parsed result object
301
+ # @yieldparam err [StandardError] error object if request failed
302
+ #
303
+ # @return [Google::Apis::RedisV1::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, 'v1/{+parent}/clusters', options)
310
+ command.response_representation = Google::Apis::RedisV1::ListClustersResponse::Representation
311
+ command.response_class = Google::Apis::RedisV1::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::RedisV1::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::RedisV1::Operation] parsed result object
345
+ # @yieldparam err [StandardError] error object if request failed
346
+ #
347
+ # @return [Google::Apis::RedisV1::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, 'v1/{+name}', options)
354
+ command.request_representation = Google::Apis::RedisV1::Cluster::Representation
355
+ command.request_object = cluster_object
356
+ command.response_representation = Google::Apis::RedisV1::Operation::Representation
357
+ command.response_class = Google::Apis::RedisV1::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_v1
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.39.0
4
+ version: 0.41.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-08-13 00:00:00.000000000 Z
11
+ date: 2023-10-22 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-redis_v1/CHANGELOG.md
61
- documentation_uri: https://googleapis.dev/ruby/google-apis-redis_v1/v0.39.0
61
+ documentation_uri: https://googleapis.dev/ruby/google-apis-redis_v1/v0.41.0
62
62
  source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-redis_v1
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.4.2
78
+ rubygems_version: 3.4.19
79
79
  signing_key:
80
80
  specification_version: 4
81
81
  summary: Simple REST client for Google Cloud Memorystore for Redis API V1