@@ -53,6 +53,7 @@ service CloudRedis {
53
53
// location (region) or all locations.
54
54
//
55
55
// The location should have the following format:
56
+ //
56
57
// * `projects/{project_id}/locations/{location_id}`
57
58
//
58
59
// If `location_id` is specified as `-` (wildcard), then all regions
@@ -230,15 +231,28 @@ message Instance {
230
231
STANDARD_HA = 3 ;
231
232
}
232
233
234
+ // Available connection modes.
235
+ enum ConnectMode {
236
+ // Not set.
237
+ CONNECT_MODE_UNSPECIFIED = 0 ;
238
+
239
+ // Connect via directly peering with memorystore redis hosted service.
240
+ DIRECT_PEERING = 1 ;
241
+
242
+ // Connect with google via private service access and share connection
243
+ // across google managed services.
244
+ PRIVATE_SERVICE_ACCESS = 2 ;
245
+ }
246
+
233
247
// Required. Unique name of the resource in this scope including project and
234
248
// location using the form:
235
249
// `projects/{project_id}/locations/{location_id}/instances/{instance_id}`
236
250
//
237
251
// Note: Redis instances are managed and addressed at regional level so
238
252
// location_id here refers to a GCP region; however, users may choose which
239
253
// specific zone (or collection of zones for cross-zone instances) an instance
240
- // should be provisioned in. Refer to [location_id] and
241
- // [alternative_location_id] fields for more details.
254
+ // should be provisioned in. Refer to [location_id][google.cloud.redis.v1.Instance.location_id] and
255
+ // [alternative_location_id][google.cloud.redis.v1.Instance.alternative_location_id] fields for more details.
242
256
string name = 1 [(google.api.field_behavior ) = REQUIRED ];
243
257
244
258
// An arbitrary and optional user-provided name for the instance.
@@ -250,19 +264,18 @@ message Instance {
250
264
// Optional. The zone where the instance will be provisioned. If not provided,
251
265
// the service will choose a zone for the instance. For STANDARD_HA tier,
252
266
// instances will be created across two zones for protection against zonal
253
- // failures. If [alternative_location_id] is also provided, it must be
254
- // different from [location_id].
267
+ // failures. If [alternative_location_id][google.cloud.redis.v1.Instance.alternative_location_id] is also provided, it must be
268
+ // different from [location_id][google.cloud.redis.v1.Instance.location_id] .
255
269
string location_id = 4 [(google.api.field_behavior ) = OPTIONAL ];
256
270
257
271
// Optional. Only applicable to STANDARD_HA tier which protects the instance
258
272
// against zonal failures by provisioning it across two zones. If provided, it
259
- // must be a different zone from the one provided in [location_id].
273
+ // must be a different zone from the one provided in [location_id][google.cloud.redis.v1.Instance.location_id] .
260
274
string alternative_location_id = 5 [(google.api.field_behavior ) = OPTIONAL ];
261
275
262
276
// Optional. The version of Redis software.
263
- // If not provided, latest supported version will be used. Updating the
264
- // version will perform an upgrade/downgrade to the new version. Currently,
265
- // the supported values are:
277
+ // If not provided, latest supported version will be used. Currently, the
278
+ // supported values are:
266
279
//
267
280
// * `REDIS_4_0` for Redis 4.0 compatibility (default)
268
281
// * `REDIS_3_2` for Redis 3.2 compatibility
@@ -282,9 +295,9 @@ message Instance {
282
295
int32 port = 11 [(google.api.field_behavior ) = OUTPUT_ONLY ];
283
296
284
297
// Output only. The current zone where the Redis endpoint is placed. For Basic
285
- // Tier instances, this will always be the same as the [location_id]
298
+ // Tier instances, this will always be the same as the [location_id][google.cloud.redis.v1.Instance.location_id]
286
299
// provided by the user at creation time. For Standard Tier instances,
287
- // this can be either [location_id] or [alternative_location_id] and can
300
+ // this can be either [location_id][google.cloud.redis.v1.Instance.location_id] or [alternative_location_id][google.cloud.redis.v1.Instance. alternative_location_id] and can
288
301
// change after a failover event.
289
302
string current_location_id = 12 [(google.api.field_behavior ) = OUTPUT_ONLY ];
290
303
@@ -332,6 +345,11 @@ message Instance {
332
345
// for a given instance so should be checked before each import/export
333
346
// operation.
334
347
string persistence_iam_identity = 21 [(google.api.field_behavior ) = OUTPUT_ONLY ];
348
+
349
+ // Optional. The connect mode of Redis instance.
350
+ // If not provided, default one will be used.
351
+ // Current default: DIRECT_PEERING.
352
+ ConnectMode connect_mode = 22 [(google.api.field_behavior ) = OPTIONAL ];
335
353
}
336
354
337
355
// Request for [ListInstances][google.cloud.redis.v1.CloudRedis.ListInstances].
@@ -351,12 +369,12 @@ message ListInstancesRequest {
351
369
// If not specified, a default value of 1000 will be used by the service.
352
370
// Regardless of the page_size value, the response may include a partial list
353
371
// and a caller should only rely on response's
354
- // [next_page_token][CloudRedis .ListInstancesResponse.next_page_token]
372
+ // [` next_page_token`][google.cloud.redis.v1 .ListInstancesResponse.next_page_token]
355
373
// to determine if there are more instances left to be queried.
356
374
int32 page_size = 2 ;
357
375
358
- // The next_page_token value returned from a previous List request,
359
- // if any.
376
+ // The ` next_page_token` value returned from a previous
377
+ // [ListInstances][google.cloud.redis.v1.CloudRedis.ListInstances] request, if any.
360
378
string page_token = 3 ;
361
379
}
362
380
@@ -368,10 +386,10 @@ message ListInstancesResponse {
368
386
// If the `location_id` in the parent field of the request is "-", all regions
369
387
// available to the project are queried, and the results aggregated.
370
388
// If in such an aggregated query a location is unavailable, a dummy Redis
371
- // entry is included in the response with the " name" field set to a value of
372
- // the form projects/{project_id}/locations/{location_id}/instances/- and the
373
- // " status" field set to ERROR and " status_message" field set to "location not
374
- // available for ListInstances".
389
+ // entry is included in the response with the ` name` field set to a value of
390
+ // the form ` projects/{project_id}/locations/{location_id}/instances/` - and
391
+ // the ` status` field set to ERROR and ` status_message` field set to "location
392
+ // not available for ListInstances".
375
393
repeated Instance instances = 1 ;
376
394
377
395
// Token to retrieve the next page of results, or empty if there are no more
@@ -425,7 +443,7 @@ message CreateInstanceRequest {
425
443
message UpdateInstanceRequest {
426
444
// Required. Mask of fields to update. At least one path must be supplied in
427
445
// this field. The elements of the repeated paths field may only include these
428
- // fields from [Instance][CloudRedis .Instance]:
446
+ // fields from [Instance][google.cloud.redis.v1 .Instance]:
429
447
//
430
448
// * `displayName`
431
449
// * `labels`
@@ -506,6 +524,7 @@ message ExportInstanceRequest {
506
524
507
525
// Request for [Failover][google.cloud.redis.v1.CloudRedis.FailoverInstance].
508
526
message FailoverInstanceRequest {
527
+ // Specifies different modes of operation in relation to the data retention.
509
528
enum DataProtectionMode {
510
529
// Defaults to LIMITED_DATA_LOSS if a data protection mode is not
511
530
// specified.
0 commit comments