google-apis-redis_v1 0.39.0 → 0.40.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: d7509c2c3a2d53c21194a5c4e39cbe7cc3911293bd076163e24755883be61b54
4
+ data.tar.gz: 4fc7556424ef2645a890fe08eefaecf5954101681cd6381b6788da382512ea7f
5
5
  SHA512:
6
- metadata.gz: 2f9a600bd9003734a280087dd628092b315ac4bfb9cc47c7f206e1e4499ea693b0b0497ff7a4aa4c024c6187aeca68a15f94a914446200b8c80567c085d23f93
7
- data.tar.gz: e556703948d41a8c8dff3d6b3ec0b4b5372610fe34150d3b10ef17c3d4b507ede3fd56f9a025dfa2953eb4da013e7a99278f1ff1b8deefdc341a5c00d0af19c9
6
+ metadata.gz: 6157d7868ed007bef07fad906cb895e5eb9c70b305815375fc3f5999c2eb87c650a2d26e379e4e137c92987322374149b3dee916277848cdac2b8001309c2f53
7
+ data.tar.gz: db49f4d43bf2b39901f034452ed1255945fab9a0aa1e4aeec9ccdce0ac887d37334d19ba68b5d98e5e451c65c7ea00444ca2376708d447424ee6a3289a032db9
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # Release history for google-apis-redis_v1
2
2
 
3
+ ### v0.40.0 (2023-10-01)
4
+
5
+ * Regenerated from discovery document revision 20230925
6
+
3
7
  ### v0.39.0 (2023-08-13)
4
8
 
5
9
  * Regenerated from discovery document revision 20230804
@@ -22,6 +22,177 @@ 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
+ 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::RedisV1::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::RedisV1::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::RedisV1::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::RedisV1::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::RedisV1::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.
@@ -547,6 +718,45 @@ module Google
547
718
  end
548
719
  end
549
720
 
721
+ # Response for ListClusters.
722
+ class ListClustersResponse
723
+ include Google::Apis::Core::Hashable
724
+
725
+ # A list of Redis clusters in the project in the specified location, or across
726
+ # all locations. If the `location_id` in the parent field of the request is "-",
727
+ # all regions available to the project are queried, and the results aggregated.
728
+ # If in such an aggregated query a location is unavailable, a placeholder Redis
729
+ # entry is included in the response with the `name` field set to a value of the
730
+ # form `projects/`project_id`/locations/`location_id`/clusters/`- and the `
731
+ # status` field set to ERROR and `status_message` field set to "location not
732
+ # available for ListClusters".
733
+ # Corresponds to the JSON property `clusters`
734
+ # @return [Array<Google::Apis::RedisV1::Cluster>]
735
+ attr_accessor :clusters
736
+
737
+ # Token to retrieve the next page of results, or empty if there are no more
738
+ # results in the list.
739
+ # Corresponds to the JSON property `nextPageToken`
740
+ # @return [String]
741
+ attr_accessor :next_page_token
742
+
743
+ # Locations that could not be reached.
744
+ # Corresponds to the JSON property `unreachable`
745
+ # @return [Array<String>]
746
+ attr_accessor :unreachable
747
+
748
+ def initialize(**args)
749
+ update!(**args)
750
+ end
751
+
752
+ # Update properties of this object
753
+ def update!(**args)
754
+ @clusters = args[:clusters] if args.key?(:clusters)
755
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
756
+ @unreachable = args[:unreachable] if args.key?(:unreachable)
757
+ end
758
+ end
759
+
550
760
  # Response for ListInstances.
551
761
  class ListInstancesResponse
552
762
  include Google::Apis::Core::Hashable
@@ -767,6 +977,25 @@ module Google
767
977
  end
768
978
  end
769
979
 
980
+ #
981
+ class ManagedCertificateAuthority
982
+ include Google::Apis::Core::Hashable
983
+
984
+ # The PEM encoded CA certificate chains for redis managed server authentication
985
+ # Corresponds to the JSON property `caCerts`
986
+ # @return [Array<Google::Apis::RedisV1::CertChain>]
987
+ attr_accessor :ca_certs
988
+
989
+ def initialize(**args)
990
+ update!(**args)
991
+ end
992
+
993
+ # Update properties of this object
994
+ def update!(**args)
995
+ @ca_certs = args[:ca_certs] if args.key?(:ca_certs)
996
+ end
997
+ end
998
+
770
999
  # Node specific properties.
771
1000
  class NodeInfo
772
1001
  include Google::Apis::Core::Hashable
@@ -858,6 +1087,65 @@ module Google
858
1087
  end
859
1088
  end
860
1089
 
1090
+ # Pre-defined metadata fields.
1091
+ class OperationMetadata
1092
+ include Google::Apis::Core::Hashable
1093
+
1094
+ # Output only. API version used to start the operation.
1095
+ # Corresponds to the JSON property `apiVersion`
1096
+ # @return [String]
1097
+ attr_accessor :api_version
1098
+
1099
+ # Output only. The time the operation was created.
1100
+ # Corresponds to the JSON property `createTime`
1101
+ # @return [String]
1102
+ attr_accessor :create_time
1103
+
1104
+ # Output only. The time the operation finished running.
1105
+ # Corresponds to the JSON property `endTime`
1106
+ # @return [String]
1107
+ attr_accessor :end_time
1108
+
1109
+ # Output only. Identifies whether the user has requested cancellation of the
1110
+ # operation. Operations that have successfully been cancelled have Operation.
1111
+ # error value with a google.rpc.Status.code of 1, corresponding to `Code.
1112
+ # CANCELLED`.
1113
+ # Corresponds to the JSON property `requestedCancellation`
1114
+ # @return [Boolean]
1115
+ attr_accessor :requested_cancellation
1116
+ alias_method :requested_cancellation?, :requested_cancellation
1117
+
1118
+ # Output only. Human-readable status of the operation, if any.
1119
+ # Corresponds to the JSON property `statusMessage`
1120
+ # @return [String]
1121
+ attr_accessor :status_message
1122
+
1123
+ # Output only. Server-defined resource path for the target of the operation.
1124
+ # Corresponds to the JSON property `target`
1125
+ # @return [String]
1126
+ attr_accessor :target
1127
+
1128
+ # Output only. Name of the verb executed by the operation.
1129
+ # Corresponds to the JSON property `verb`
1130
+ # @return [String]
1131
+ attr_accessor :verb
1132
+
1133
+ def initialize(**args)
1134
+ update!(**args)
1135
+ end
1136
+
1137
+ # Update properties of this object
1138
+ def update!(**args)
1139
+ @api_version = args[:api_version] if args.key?(:api_version)
1140
+ @create_time = args[:create_time] if args.key?(:create_time)
1141
+ @end_time = args[:end_time] if args.key?(:end_time)
1142
+ @requested_cancellation = args[:requested_cancellation] if args.key?(:requested_cancellation)
1143
+ @status_message = args[:status_message] if args.key?(:status_message)
1144
+ @target = args[:target] if args.key?(:target)
1145
+ @verb = args[:verb] if args.key?(:verb)
1146
+ end
1147
+ end
1148
+
861
1149
  # The output content
862
1150
  class OutputConfig
863
1151
  include Google::Apis::Core::Hashable
@@ -922,6 +1210,74 @@ module Google
922
1210
  end
923
1211
  end
924
1212
 
1213
+ #
1214
+ class PscConfig
1215
+ include Google::Apis::Core::Hashable
1216
+
1217
+ # Required. The network where the IP address of the discovery endpoint will be
1218
+ # reserved, in the form of projects/`network_project`/global/networks/`
1219
+ # network_id`.
1220
+ # Corresponds to the JSON property `network`
1221
+ # @return [String]
1222
+ attr_accessor :network
1223
+
1224
+ def initialize(**args)
1225
+ update!(**args)
1226
+ end
1227
+
1228
+ # Update properties of this object
1229
+ def update!(**args)
1230
+ @network = args[:network] if args.key?(:network)
1231
+ end
1232
+ end
1233
+
1234
+ # Details of consumer resources in a PSC connection.
1235
+ class PscConnection
1236
+ include Google::Apis::Core::Hashable
1237
+
1238
+ # Output only. The IP allocated on the consumer network for the PSC forwarding
1239
+ # rule.
1240
+ # Corresponds to the JSON property `address`
1241
+ # @return [String]
1242
+ attr_accessor :address
1243
+
1244
+ # Output only. The URI of the consumer side forwarding rule. Example: projects/`
1245
+ # projectNumOrId`/regions/us-east1/forwardingRules/`resourceId`.
1246
+ # Corresponds to the JSON property `forwardingRule`
1247
+ # @return [String]
1248
+ attr_accessor :forwarding_rule
1249
+
1250
+ # The consumer network where the IP address resides, in the form of projects/`
1251
+ # project_id`/global/networks/`network_id`.
1252
+ # Corresponds to the JSON property `network`
1253
+ # @return [String]
1254
+ attr_accessor :network
1255
+
1256
+ # Output only. The consumer project_id where the forwarding rule is created from.
1257
+ # Corresponds to the JSON property `projectId`
1258
+ # @return [String]
1259
+ attr_accessor :project_id
1260
+
1261
+ # Output only. The PSC connection id of the forwarding rule connected to the
1262
+ # service attachment.
1263
+ # Corresponds to the JSON property `pscConnectionId`
1264
+ # @return [String]
1265
+ attr_accessor :psc_connection_id
1266
+
1267
+ def initialize(**args)
1268
+ update!(**args)
1269
+ end
1270
+
1271
+ # Update properties of this object
1272
+ def update!(**args)
1273
+ @address = args[:address] if args.key?(:address)
1274
+ @forwarding_rule = args[:forwarding_rule] if args.key?(:forwarding_rule)
1275
+ @network = args[:network] if args.key?(:network)
1276
+ @project_id = args[:project_id] if args.key?(:project_id)
1277
+ @psc_connection_id = args[:psc_connection_id] if args.key?(:psc_connection_id)
1278
+ end
1279
+ end
1280
+
925
1281
  # Operation metadata returned by the CLH during resource state reconciliation.
926
1282
  class ReconciliationOperationMetadata
927
1283
  include Google::Apis::Core::Hashable
@@ -976,6 +1332,25 @@ module Google
976
1332
  end
977
1333
  end
978
1334
 
1335
+ # Represents additional information about the state of the cluster.
1336
+ class StateInfo
1337
+ include Google::Apis::Core::Hashable
1338
+
1339
+ # Represents information about an updating cluster.
1340
+ # Corresponds to the JSON property `updateInfo`
1341
+ # @return [Google::Apis::RedisV1::UpdateInfo]
1342
+ attr_accessor :update_info
1343
+
1344
+ def initialize(**args)
1345
+ update!(**args)
1346
+ end
1347
+
1348
+ # Update properties of this object
1349
+ def update!(**args)
1350
+ @update_info = args[:update_info] if args.key?(:update_info)
1351
+ end
1352
+ end
1353
+
979
1354
  # The `Status` type defines a logical error model that is suitable for different
980
1355
  # programming environments, including REST APIs and RPC APIs. It is used by [
981
1356
  # gRPC](https://github.com/grpc). Each `Status` message contains three pieces of
@@ -1101,6 +1476,31 @@ module Google
1101
1476
  end
1102
1477
  end
1103
1478
 
1479
+ # Represents information about an updating cluster.
1480
+ class UpdateInfo
1481
+ include Google::Apis::Core::Hashable
1482
+
1483
+ # Target number of replica nodes per shard.
1484
+ # Corresponds to the JSON property `targetReplicaCount`
1485
+ # @return [Fixnum]
1486
+ attr_accessor :target_replica_count
1487
+
1488
+ # Target number of shards for redis cluster
1489
+ # Corresponds to the JSON property `targetShardCount`
1490
+ # @return [Fixnum]
1491
+ attr_accessor :target_shard_count
1492
+
1493
+ def initialize(**args)
1494
+ update!(**args)
1495
+ end
1496
+
1497
+ # Update properties of this object
1498
+ def update!(**args)
1499
+ @target_replica_count = args[:target_replica_count] if args.key?(:target_replica_count)
1500
+ @target_shard_count = args[:target_shard_count] if args.key?(:target_shard_count)
1501
+ end
1502
+ end
1503
+
1104
1504
  # Request for UpgradeInstance.
1105
1505
  class UpgradeInstanceRequest
1106
1506
  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.40.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 = "20230925"
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,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::RedisV1::ManagedCertificateAuthority, decorator: Google::Apis::RedisV1::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::RedisV1::DiscoveryEndpoint, decorator: Google::Apis::RedisV1::DiscoveryEndpoint::Representation
286
+
287
+ property :name, as: 'name'
288
+ collection :psc_configs, as: 'pscConfigs', class: Google::Apis::RedisV1::PscConfig, decorator: Google::Apis::RedisV1::PscConfig::Representation
289
+
290
+ collection :psc_connections, as: 'pscConnections', class: Google::Apis::RedisV1::PscConnection, decorator: Google::Apis::RedisV1::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::RedisV1::StateInfo, decorator: Google::Apis::RedisV1::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::RedisV1::PscConfig, decorator: Google::Apis::RedisV1::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::RedisV1::Cluster, decorator: Google::Apis::RedisV1::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::RedisV1::CertChain, decorator: Google::Apis::RedisV1::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::RedisV1::UpdateInfo, decorator: Google::Apis::RedisV1::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::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.40.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-01 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.40.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