google-cloud-redis-v1beta1 0.5.1 → 0.6.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/google/cloud/redis/v1beta1/cloud_redis/client.rb +208 -2
- data/lib/google/cloud/redis/v1beta1/cloud_redis_pb.rb +63 -0
- data/lib/google/cloud/redis/v1beta1/cloud_redis_services_pb.rb +7 -0
- data/lib/google/cloud/redis/v1beta1/version.rb +1 -1
- data/proto_docs/google/cloud/redis/v1beta1/cloud_redis.rb +189 -27
- data/proto_docs/google/type/dayofweek.rb +49 -0
- data/proto_docs/google/type/timeofday.rb +45 -0
- metadata +5 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 630ebf9df12f99543f4c23d1a31c4c1ba7601d0980e88066dc3f93672249d69c
|
4
|
+
data.tar.gz: f8c6fbe8f83eccae2dec6323b7ba6b874ffd25ea0a0d9fa317299c40722c911a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8801f39c8a52a091034b09dbc5921e4f4b5ad8d05d5211715424e310d99099631c7a72ab9de2c2d9018abe36cf1f19e5546947d708ae74c154b03ac102f12d29
|
7
|
+
data.tar.gz: a76cf6faaa345e18702f2e125a5b868703dc8d693e2c5ad0a8c69ca5fd5bca496298a0ab6ddf75c75dd47d0ba99351aea5e927e67640c9c1c410b2cf265280ca
|
@@ -82,6 +82,8 @@ module Google
|
|
82
82
|
|
83
83
|
default_config.rpcs.get_instance.timeout = 600.0
|
84
84
|
|
85
|
+
default_config.rpcs.get_instance_auth_string.timeout = 600.0
|
86
|
+
|
85
87
|
default_config.rpcs.create_instance.timeout = 600.0
|
86
88
|
|
87
89
|
default_config.rpcs.update_instance.timeout = 600.0
|
@@ -229,8 +231,7 @@ module Google
|
|
229
231
|
# to determine if there are more instances left to be queried.
|
230
232
|
# @param page_token [::String]
|
231
233
|
# The `next_page_token` value returned from a previous
|
232
|
-
# {::Google::Cloud::Redis::V1beta1::CloudRedis::Client#list_instances ListInstances}
|
233
|
-
# request, if any.
|
234
|
+
# {::Google::Cloud::Redis::V1beta1::CloudRedis::Client#list_instances ListInstances} request, if any.
|
234
235
|
#
|
235
236
|
# @yield [response, operation] Access the result along with the RPC operation
|
236
237
|
# @yieldparam response [::Gapic::PagedEnumerable<::Google::Cloud::Redis::V1beta1::Instance>]
|
@@ -390,6 +391,95 @@ module Google
|
|
390
391
|
raise ::Google::Cloud::Error.from_error(e)
|
391
392
|
end
|
392
393
|
|
394
|
+
##
|
395
|
+
# Gets the AUTH string for a Redis instance. If AUTH is not enabled for the
|
396
|
+
# instance the response will be empty. This information is not included in
|
397
|
+
# the details returned to GetInstance.
|
398
|
+
#
|
399
|
+
# @overload get_instance_auth_string(request, options = nil)
|
400
|
+
# Pass arguments to `get_instance_auth_string` via a request object, either of type
|
401
|
+
# {::Google::Cloud::Redis::V1beta1::GetInstanceAuthStringRequest} or an equivalent Hash.
|
402
|
+
#
|
403
|
+
# @param request [::Google::Cloud::Redis::V1beta1::GetInstanceAuthStringRequest, ::Hash]
|
404
|
+
# A request object representing the call parameters. Required. To specify no
|
405
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
406
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
407
|
+
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
|
408
|
+
#
|
409
|
+
# @overload get_instance_auth_string(name: nil)
|
410
|
+
# Pass arguments to `get_instance_auth_string` via keyword arguments. Note that at
|
411
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
412
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
413
|
+
#
|
414
|
+
# @param name [::String]
|
415
|
+
# Required. Redis instance resource name using the form:
|
416
|
+
# `projects/{project_id}/locations/{location_id}/instances/{instance_id}`
|
417
|
+
# where `location_id` refers to a GCP region.
|
418
|
+
#
|
419
|
+
# @yield [response, operation] Access the result along with the RPC operation
|
420
|
+
# @yieldparam response [::Google::Cloud::Redis::V1beta1::InstanceAuthString]
|
421
|
+
# @yieldparam operation [::GRPC::ActiveCall::Operation]
|
422
|
+
#
|
423
|
+
# @return [::Google::Cloud::Redis::V1beta1::InstanceAuthString]
|
424
|
+
#
|
425
|
+
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
426
|
+
#
|
427
|
+
# @example Basic example
|
428
|
+
# require "google/cloud/redis/v1beta1"
|
429
|
+
#
|
430
|
+
# # Create a client object. The client can be reused for multiple calls.
|
431
|
+
# client = Google::Cloud::Redis::V1beta1::CloudRedis::Client.new
|
432
|
+
#
|
433
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
434
|
+
# request = Google::Cloud::Redis::V1beta1::GetInstanceAuthStringRequest.new
|
435
|
+
#
|
436
|
+
# # Call the get_instance_auth_string method.
|
437
|
+
# result = client.get_instance_auth_string request
|
438
|
+
#
|
439
|
+
# # The returned object is of type Google::Cloud::Redis::V1beta1::InstanceAuthString.
|
440
|
+
# p result
|
441
|
+
#
|
442
|
+
def get_instance_auth_string request, options = nil
|
443
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
444
|
+
|
445
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Redis::V1beta1::GetInstanceAuthStringRequest
|
446
|
+
|
447
|
+
# Converts hash and nil to an options object
|
448
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
449
|
+
|
450
|
+
# Customize the options with defaults
|
451
|
+
metadata = @config.rpcs.get_instance_auth_string.metadata.to_h
|
452
|
+
|
453
|
+
# Set x-goog-api-client and x-goog-user-project headers
|
454
|
+
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
455
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
456
|
+
gapic_version: ::Google::Cloud::Redis::V1beta1::VERSION
|
457
|
+
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
458
|
+
|
459
|
+
header_params = {}
|
460
|
+
if request.name
|
461
|
+
header_params["name"] = request.name
|
462
|
+
end
|
463
|
+
|
464
|
+
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
465
|
+
metadata[:"x-goog-request-params"] ||= request_params_header
|
466
|
+
|
467
|
+
options.apply_defaults timeout: @config.rpcs.get_instance_auth_string.timeout,
|
468
|
+
metadata: metadata,
|
469
|
+
retry_policy: @config.rpcs.get_instance_auth_string.retry_policy
|
470
|
+
|
471
|
+
options.apply_defaults timeout: @config.timeout,
|
472
|
+
metadata: @config.metadata,
|
473
|
+
retry_policy: @config.retry_policy
|
474
|
+
|
475
|
+
@cloud_redis_stub.call_rpc :get_instance_auth_string, request, options: options do |response, operation|
|
476
|
+
yield response, operation if block_given?
|
477
|
+
return response
|
478
|
+
end
|
479
|
+
rescue ::GRPC::BadStatus => e
|
480
|
+
raise ::Google::Cloud::Error.from_error(e)
|
481
|
+
end
|
482
|
+
|
393
483
|
##
|
394
484
|
# Creates a Redis instance based on the specified tier and memory size.
|
395
485
|
#
|
@@ -1114,6 +1204,108 @@ module Google
|
|
1114
1204
|
raise ::Google::Cloud::Error.from_error(e)
|
1115
1205
|
end
|
1116
1206
|
|
1207
|
+
##
|
1208
|
+
# Reschedule maintenance for a given instance in a given project and
|
1209
|
+
# location.
|
1210
|
+
#
|
1211
|
+
# @overload reschedule_maintenance(request, options = nil)
|
1212
|
+
# Pass arguments to `reschedule_maintenance` via a request object, either of type
|
1213
|
+
# {::Google::Cloud::Redis::V1beta1::RescheduleMaintenanceRequest} or an equivalent Hash.
|
1214
|
+
#
|
1215
|
+
# @param request [::Google::Cloud::Redis::V1beta1::RescheduleMaintenanceRequest, ::Hash]
|
1216
|
+
# A request object representing the call parameters. Required. To specify no
|
1217
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
1218
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
1219
|
+
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
|
1220
|
+
#
|
1221
|
+
# @overload reschedule_maintenance(name: nil, reschedule_type: nil, schedule_time: nil)
|
1222
|
+
# Pass arguments to `reschedule_maintenance` via keyword arguments. Note that at
|
1223
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
1224
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
1225
|
+
#
|
1226
|
+
# @param name [::String]
|
1227
|
+
# Required. Redis instance resource name using the form:
|
1228
|
+
# `projects/{project_id}/locations/{location_id}/instances/{instance_id}`
|
1229
|
+
# where `location_id` refers to a GCP region.
|
1230
|
+
# @param reschedule_type [::Google::Cloud::Redis::V1beta1::RescheduleMaintenanceRequest::RescheduleType]
|
1231
|
+
# Required. If reschedule type is SPECIFIC_TIME, must set up schedule_time as well.
|
1232
|
+
# @param schedule_time [::Google::Protobuf::Timestamp, ::Hash]
|
1233
|
+
# Optional. Timestamp when the maintenance shall be rescheduled to if
|
1234
|
+
# reschedule_type=SPECIFIC_TIME, in RFC 3339 format, for
|
1235
|
+
# example `2012-11-15T16:19:00.094Z`.
|
1236
|
+
#
|
1237
|
+
# @yield [response, operation] Access the result along with the RPC operation
|
1238
|
+
# @yieldparam response [::Gapic::Operation]
|
1239
|
+
# @yieldparam operation [::GRPC::ActiveCall::Operation]
|
1240
|
+
#
|
1241
|
+
# @return [::Gapic::Operation]
|
1242
|
+
#
|
1243
|
+
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
1244
|
+
#
|
1245
|
+
# @example Basic example
|
1246
|
+
# require "google/cloud/redis/v1beta1"
|
1247
|
+
#
|
1248
|
+
# # Create a client object. The client can be reused for multiple calls.
|
1249
|
+
# client = Google::Cloud::Redis::V1beta1::CloudRedis::Client.new
|
1250
|
+
#
|
1251
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
1252
|
+
# request = Google::Cloud::Redis::V1beta1::RescheduleMaintenanceRequest.new
|
1253
|
+
#
|
1254
|
+
# # Call the reschedule_maintenance method.
|
1255
|
+
# result = client.reschedule_maintenance request
|
1256
|
+
#
|
1257
|
+
# # The returned object is of type Gapic::Operation. You can use this
|
1258
|
+
# # object to check the status of an operation, cancel it, or wait
|
1259
|
+
# # for results. Here is how to block until completion:
|
1260
|
+
# result.wait_until_done! timeout: 60
|
1261
|
+
# if result.response?
|
1262
|
+
# p result.response
|
1263
|
+
# else
|
1264
|
+
# puts "Error!"
|
1265
|
+
# end
|
1266
|
+
#
|
1267
|
+
def reschedule_maintenance request, options = nil
|
1268
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
1269
|
+
|
1270
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Redis::V1beta1::RescheduleMaintenanceRequest
|
1271
|
+
|
1272
|
+
# Converts hash and nil to an options object
|
1273
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
1274
|
+
|
1275
|
+
# Customize the options with defaults
|
1276
|
+
metadata = @config.rpcs.reschedule_maintenance.metadata.to_h
|
1277
|
+
|
1278
|
+
# Set x-goog-api-client and x-goog-user-project headers
|
1279
|
+
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
1280
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
1281
|
+
gapic_version: ::Google::Cloud::Redis::V1beta1::VERSION
|
1282
|
+
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
1283
|
+
|
1284
|
+
header_params = {}
|
1285
|
+
if request.name
|
1286
|
+
header_params["name"] = request.name
|
1287
|
+
end
|
1288
|
+
|
1289
|
+
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
1290
|
+
metadata[:"x-goog-request-params"] ||= request_params_header
|
1291
|
+
|
1292
|
+
options.apply_defaults timeout: @config.rpcs.reschedule_maintenance.timeout,
|
1293
|
+
metadata: metadata,
|
1294
|
+
retry_policy: @config.rpcs.reschedule_maintenance.retry_policy
|
1295
|
+
|
1296
|
+
options.apply_defaults timeout: @config.timeout,
|
1297
|
+
metadata: @config.metadata,
|
1298
|
+
retry_policy: @config.retry_policy
|
1299
|
+
|
1300
|
+
@cloud_redis_stub.call_rpc :reschedule_maintenance, request, options: options do |response, operation|
|
1301
|
+
response = ::Gapic::Operation.new response, @operations_client, options: options
|
1302
|
+
yield response, operation if block_given?
|
1303
|
+
return response
|
1304
|
+
end
|
1305
|
+
rescue ::GRPC::BadStatus => e
|
1306
|
+
raise ::Google::Cloud::Error.from_error(e)
|
1307
|
+
end
|
1308
|
+
|
1117
1309
|
##
|
1118
1310
|
# Configuration class for the CloudRedis API.
|
1119
1311
|
#
|
@@ -1260,6 +1452,11 @@ module Google
|
|
1260
1452
|
#
|
1261
1453
|
attr_reader :get_instance
|
1262
1454
|
##
|
1455
|
+
# RPC-specific configuration for `get_instance_auth_string`
|
1456
|
+
# @return [::Gapic::Config::Method]
|
1457
|
+
#
|
1458
|
+
attr_reader :get_instance_auth_string
|
1459
|
+
##
|
1263
1460
|
# RPC-specific configuration for `create_instance`
|
1264
1461
|
# @return [::Gapic::Config::Method]
|
1265
1462
|
#
|
@@ -1294,6 +1491,11 @@ module Google
|
|
1294
1491
|
# @return [::Gapic::Config::Method]
|
1295
1492
|
#
|
1296
1493
|
attr_reader :delete_instance
|
1494
|
+
##
|
1495
|
+
# RPC-specific configuration for `reschedule_maintenance`
|
1496
|
+
# @return [::Gapic::Config::Method]
|
1497
|
+
#
|
1498
|
+
attr_reader :reschedule_maintenance
|
1297
1499
|
|
1298
1500
|
# @private
|
1299
1501
|
def initialize parent_rpcs = nil
|
@@ -1301,6 +1503,8 @@ module Google
|
|
1301
1503
|
@list_instances = ::Gapic::Config::Method.new list_instances_config
|
1302
1504
|
get_instance_config = parent_rpcs.get_instance if parent_rpcs.respond_to? :get_instance
|
1303
1505
|
@get_instance = ::Gapic::Config::Method.new get_instance_config
|
1506
|
+
get_instance_auth_string_config = parent_rpcs.get_instance_auth_string if parent_rpcs.respond_to? :get_instance_auth_string
|
1507
|
+
@get_instance_auth_string = ::Gapic::Config::Method.new get_instance_auth_string_config
|
1304
1508
|
create_instance_config = parent_rpcs.create_instance if parent_rpcs.respond_to? :create_instance
|
1305
1509
|
@create_instance = ::Gapic::Config::Method.new create_instance_config
|
1306
1510
|
update_instance_config = parent_rpcs.update_instance if parent_rpcs.respond_to? :update_instance
|
@@ -1315,6 +1519,8 @@ module Google
|
|
1315
1519
|
@failover_instance = ::Gapic::Config::Method.new failover_instance_config
|
1316
1520
|
delete_instance_config = parent_rpcs.delete_instance if parent_rpcs.respond_to? :delete_instance
|
1317
1521
|
@delete_instance = ::Gapic::Config::Method.new delete_instance_config
|
1522
|
+
reschedule_maintenance_config = parent_rpcs.reschedule_maintenance if parent_rpcs.respond_to? :reschedule_maintenance
|
1523
|
+
@reschedule_maintenance = ::Gapic::Config::Method.new reschedule_maintenance_config
|
1318
1524
|
|
1319
1525
|
yield self if block_given?
|
1320
1526
|
end
|
@@ -6,8 +6,11 @@ require 'google/api/client_pb'
|
|
6
6
|
require 'google/api/field_behavior_pb'
|
7
7
|
require 'google/api/resource_pb'
|
8
8
|
require 'google/longrunning/operations_pb'
|
9
|
+
require 'google/protobuf/duration_pb'
|
9
10
|
require 'google/protobuf/field_mask_pb'
|
10
11
|
require 'google/protobuf/timestamp_pb'
|
12
|
+
require 'google/type/dayofweek_pb'
|
13
|
+
require 'google/type/timeofday_pb'
|
11
14
|
require 'google/protobuf'
|
12
15
|
|
13
16
|
Google::Protobuf::DescriptorPool.generated_pool.build do
|
@@ -36,6 +39,11 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
36
39
|
optional :authorized_network, :string, 20
|
37
40
|
optional :persistence_iam_identity, :string, 21
|
38
41
|
optional :connect_mode, :enum, 22, "google.cloud.redis.v1beta1.Instance.ConnectMode"
|
42
|
+
optional :auth_enabled, :bool, 23
|
43
|
+
repeated :server_ca_certs, :message, 25, "google.cloud.redis.v1beta1.TlsCertificate"
|
44
|
+
optional :transit_encryption_mode, :enum, 26, "google.cloud.redis.v1beta1.Instance.TransitEncryptionMode"
|
45
|
+
optional :maintenance_policy, :message, 27, "google.cloud.redis.v1beta1.MaintenancePolicy"
|
46
|
+
optional :maintenance_schedule, :message, 28, "google.cloud.redis.v1beta1.MaintenanceSchedule"
|
39
47
|
optional :replica_count, :int32, 31
|
40
48
|
repeated :nodes, :message, 32, "google.cloud.redis.v1beta1.NodeInfo"
|
41
49
|
optional :read_endpoint, :string, 33
|
@@ -63,11 +71,44 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
63
71
|
value :DIRECT_PEERING, 1
|
64
72
|
value :PRIVATE_SERVICE_ACCESS, 2
|
65
73
|
end
|
74
|
+
add_enum "google.cloud.redis.v1beta1.Instance.TransitEncryptionMode" do
|
75
|
+
value :TRANSIT_ENCRYPTION_MODE_UNSPECIFIED, 0
|
76
|
+
value :SERVER_AUTHENTICATION, 1
|
77
|
+
value :DISABLED, 2
|
78
|
+
end
|
66
79
|
add_enum "google.cloud.redis.v1beta1.Instance.ReadReplicasMode" do
|
67
80
|
value :READ_REPLICAS_MODE_UNSPECIFIED, 0
|
68
81
|
value :READ_REPLICAS_DISABLED, 1
|
69
82
|
value :READ_REPLICAS_ENABLED, 2
|
70
83
|
end
|
84
|
+
add_message "google.cloud.redis.v1beta1.RescheduleMaintenanceRequest" do
|
85
|
+
optional :name, :string, 1
|
86
|
+
optional :reschedule_type, :enum, 2, "google.cloud.redis.v1beta1.RescheduleMaintenanceRequest.RescheduleType"
|
87
|
+
optional :schedule_time, :message, 3, "google.protobuf.Timestamp"
|
88
|
+
end
|
89
|
+
add_enum "google.cloud.redis.v1beta1.RescheduleMaintenanceRequest.RescheduleType" do
|
90
|
+
value :RESCHEDULE_TYPE_UNSPECIFIED, 0
|
91
|
+
value :IMMEDIATE, 1
|
92
|
+
value :NEXT_AVAILABLE_WINDOW, 2
|
93
|
+
value :SPECIFIC_TIME, 3
|
94
|
+
end
|
95
|
+
add_message "google.cloud.redis.v1beta1.MaintenancePolicy" do
|
96
|
+
optional :create_time, :message, 1, "google.protobuf.Timestamp"
|
97
|
+
optional :update_time, :message, 2, "google.protobuf.Timestamp"
|
98
|
+
optional :description, :string, 3
|
99
|
+
repeated :weekly_maintenance_window, :message, 4, "google.cloud.redis.v1beta1.WeeklyMaintenanceWindow"
|
100
|
+
end
|
101
|
+
add_message "google.cloud.redis.v1beta1.WeeklyMaintenanceWindow" do
|
102
|
+
optional :day, :enum, 1, "google.type.DayOfWeek"
|
103
|
+
optional :start_time, :message, 2, "google.type.TimeOfDay"
|
104
|
+
optional :duration, :message, 3, "google.protobuf.Duration"
|
105
|
+
end
|
106
|
+
add_message "google.cloud.redis.v1beta1.MaintenanceSchedule" do
|
107
|
+
optional :start_time, :message, 1, "google.protobuf.Timestamp"
|
108
|
+
optional :end_time, :message, 2, "google.protobuf.Timestamp"
|
109
|
+
optional :can_reschedule, :bool, 3
|
110
|
+
optional :schedule_deadline_time, :message, 5, "google.protobuf.Timestamp"
|
111
|
+
end
|
71
112
|
add_message "google.cloud.redis.v1beta1.ListInstancesRequest" do
|
72
113
|
optional :parent, :string, 1
|
73
114
|
optional :page_size, :int32, 2
|
@@ -81,6 +122,12 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
81
122
|
add_message "google.cloud.redis.v1beta1.GetInstanceRequest" do
|
82
123
|
optional :name, :string, 1
|
83
124
|
end
|
125
|
+
add_message "google.cloud.redis.v1beta1.GetInstanceAuthStringRequest" do
|
126
|
+
optional :name, :string, 1
|
127
|
+
end
|
128
|
+
add_message "google.cloud.redis.v1beta1.InstanceAuthString" do
|
129
|
+
optional :auth_string, :string, 1
|
130
|
+
end
|
84
131
|
add_message "google.cloud.redis.v1beta1.CreateInstanceRequest" do
|
85
132
|
optional :parent, :string, 1
|
86
133
|
optional :instance_id, :string, 2
|
@@ -135,6 +182,13 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
135
182
|
end
|
136
183
|
add_message "google.cloud.redis.v1beta1.ZoneMetadata" do
|
137
184
|
end
|
185
|
+
add_message "google.cloud.redis.v1beta1.TlsCertificate" do
|
186
|
+
optional :serial_number, :string, 1
|
187
|
+
optional :cert, :string, 2
|
188
|
+
optional :create_time, :message, 3, "google.protobuf.Timestamp"
|
189
|
+
optional :expire_time, :message, 4, "google.protobuf.Timestamp"
|
190
|
+
optional :sha1_fingerprint, :string, 5
|
191
|
+
end
|
138
192
|
end
|
139
193
|
end
|
140
194
|
|
@@ -147,10 +201,18 @@ module Google
|
|
147
201
|
Instance::State = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.redis.v1beta1.Instance.State").enummodule
|
148
202
|
Instance::Tier = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.redis.v1beta1.Instance.Tier").enummodule
|
149
203
|
Instance::ConnectMode = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.redis.v1beta1.Instance.ConnectMode").enummodule
|
204
|
+
Instance::TransitEncryptionMode = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.redis.v1beta1.Instance.TransitEncryptionMode").enummodule
|
150
205
|
Instance::ReadReplicasMode = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.redis.v1beta1.Instance.ReadReplicasMode").enummodule
|
206
|
+
RescheduleMaintenanceRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.redis.v1beta1.RescheduleMaintenanceRequest").msgclass
|
207
|
+
RescheduleMaintenanceRequest::RescheduleType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.redis.v1beta1.RescheduleMaintenanceRequest.RescheduleType").enummodule
|
208
|
+
MaintenancePolicy = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.redis.v1beta1.MaintenancePolicy").msgclass
|
209
|
+
WeeklyMaintenanceWindow = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.redis.v1beta1.WeeklyMaintenanceWindow").msgclass
|
210
|
+
MaintenanceSchedule = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.redis.v1beta1.MaintenanceSchedule").msgclass
|
151
211
|
ListInstancesRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.redis.v1beta1.ListInstancesRequest").msgclass
|
152
212
|
ListInstancesResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.redis.v1beta1.ListInstancesResponse").msgclass
|
153
213
|
GetInstanceRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.redis.v1beta1.GetInstanceRequest").msgclass
|
214
|
+
GetInstanceAuthStringRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.redis.v1beta1.GetInstanceAuthStringRequest").msgclass
|
215
|
+
InstanceAuthString = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.redis.v1beta1.InstanceAuthString").msgclass
|
154
216
|
CreateInstanceRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.redis.v1beta1.CreateInstanceRequest").msgclass
|
155
217
|
UpdateInstanceRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.redis.v1beta1.UpdateInstanceRequest").msgclass
|
156
218
|
UpgradeInstanceRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.redis.v1beta1.UpgradeInstanceRequest").msgclass
|
@@ -165,6 +227,7 @@ module Google
|
|
165
227
|
FailoverInstanceRequest::DataProtectionMode = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.redis.v1beta1.FailoverInstanceRequest.DataProtectionMode").enummodule
|
166
228
|
LocationMetadata = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.redis.v1beta1.LocationMetadata").msgclass
|
167
229
|
ZoneMetadata = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.redis.v1beta1.ZoneMetadata").msgclass
|
230
|
+
TlsCertificate = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.redis.v1beta1.TlsCertificate").msgclass
|
168
231
|
end
|
169
232
|
end
|
170
233
|
end
|
@@ -59,6 +59,10 @@ module Google
|
|
59
59
|
rpc :ListInstances, ::Google::Cloud::Redis::V1beta1::ListInstancesRequest, ::Google::Cloud::Redis::V1beta1::ListInstancesResponse
|
60
60
|
# Gets the details of a specific Redis instance.
|
61
61
|
rpc :GetInstance, ::Google::Cloud::Redis::V1beta1::GetInstanceRequest, ::Google::Cloud::Redis::V1beta1::Instance
|
62
|
+
# Gets the AUTH string for a Redis instance. If AUTH is not enabled for the
|
63
|
+
# instance the response will be empty. This information is not included in
|
64
|
+
# the details returned to GetInstance.
|
65
|
+
rpc :GetInstanceAuthString, ::Google::Cloud::Redis::V1beta1::GetInstanceAuthStringRequest, ::Google::Cloud::Redis::V1beta1::InstanceAuthString
|
62
66
|
# Creates a Redis instance based on the specified tier and memory size.
|
63
67
|
#
|
64
68
|
# By default, the instance is accessible from the project's
|
@@ -103,6 +107,9 @@ module Google
|
|
103
107
|
# Deletes a specific Redis instance. Instance stops serving and data is
|
104
108
|
# deleted.
|
105
109
|
rpc :DeleteInstance, ::Google::Cloud::Redis::V1beta1::DeleteInstanceRequest, ::Google::Longrunning::Operation
|
110
|
+
# Reschedule maintenance for a given instance in a given project and
|
111
|
+
# location.
|
112
|
+
rpc :RescheduleMaintenance, ::Google::Cloud::Redis::V1beta1::RescheduleMaintenanceRequest, ::Google::Longrunning::Operation
|
106
113
|
end
|
107
114
|
|
108
115
|
Stub = Service.rpc_stub_class
|
@@ -43,10 +43,8 @@ module Google
|
|
43
43
|
# Note: Redis instances are managed and addressed at regional level so
|
44
44
|
# location_id here refers to a GCP region; however, users may choose which
|
45
45
|
# specific zone (or collection of zones for cross-zone instances) an instance
|
46
|
-
# should be provisioned in. Refer to
|
47
|
-
# {::Google::Cloud::Redis::V1beta1::Instance#
|
48
|
-
# {::Google::Cloud::Redis::V1beta1::Instance#alternative_location_id alternative_location_id}
|
49
|
-
# fields for more details.
|
46
|
+
# should be provisioned in. Refer to {::Google::Cloud::Redis::V1beta1::Instance#location_id location_id} and
|
47
|
+
# {::Google::Cloud::Redis::V1beta1::Instance#alternative_location_id alternative_location_id} fields for more details.
|
50
48
|
# @!attribute [rw] display_name
|
51
49
|
# @return [::String]
|
52
50
|
# An arbitrary and optional user-provided name for the instance.
|
@@ -154,11 +152,33 @@ module Google
|
|
154
152
|
# @return [::Google::Cloud::Redis::V1beta1::Instance::ConnectMode]
|
155
153
|
# Optional. The network connect mode of the Redis instance.
|
156
154
|
# If not provided, the connect mode defaults to DIRECT_PEERING.
|
155
|
+
# @!attribute [rw] auth_enabled
|
156
|
+
# @return [::Boolean]
|
157
|
+
# Optional. Indicates whether OSS Redis AUTH is enabled for the instance. If set to
|
158
|
+
# "true" AUTH is enabled on the instance. Default value is "false" meaning
|
159
|
+
# AUTH is disabled.
|
160
|
+
# @!attribute [r] server_ca_certs
|
161
|
+
# @return [::Array<::Google::Cloud::Redis::V1beta1::TlsCertificate>]
|
162
|
+
# Output only. List of server CA certificates for the instance.
|
163
|
+
# @!attribute [rw] transit_encryption_mode
|
164
|
+
# @return [::Google::Cloud::Redis::V1beta1::Instance::TransitEncryptionMode]
|
165
|
+
# Optional. The TLS mode of the Redis instance.
|
166
|
+
# If not provided, TLS is disabled for the instance.
|
167
|
+
# @!attribute [rw] maintenance_policy
|
168
|
+
# @return [::Google::Cloud::Redis::V1beta1::MaintenancePolicy]
|
169
|
+
# Optional. The maintenance policy for the instance. If not provided,
|
170
|
+
# maintenance events can be performed at any time.
|
171
|
+
# @!attribute [r] maintenance_schedule
|
172
|
+
# @return [::Google::Cloud::Redis::V1beta1::MaintenanceSchedule]
|
173
|
+
# Output only. Date and time of upcoming maintenance events which have been
|
174
|
+
# scheduled.
|
157
175
|
# @!attribute [rw] replica_count
|
158
176
|
# @return [::Integer]
|
159
|
-
# Optional. The number of replica nodes.
|
160
|
-
# is [1-5] and defaults to
|
161
|
-
#
|
177
|
+
# Optional. The number of replica nodes. The valid range for the Standard Tier with
|
178
|
+
# read replicas enabled is [1-5] and defaults to 2. If read replicas are not
|
179
|
+
# enabled for a Standard Tier instance, the only valid value is 1 and the
|
180
|
+
# default is 1. The valid value for basic tier is 0 and the default is also
|
181
|
+
# 0.
|
162
182
|
# @!attribute [r] nodes
|
163
183
|
# @return [::Array<::Google::Cloud::Redis::V1beta1::NodeInfo>]
|
164
184
|
# Output only. Info per node.
|
@@ -174,7 +194,8 @@ module Google
|
|
174
194
|
# endpoint. Standard tier only. Write requests should target 'port'.
|
175
195
|
# @!attribute [rw] read_replicas_mode
|
176
196
|
# @return [::Google::Cloud::Redis::V1beta1::Instance::ReadReplicasMode]
|
177
|
-
# Optional. Read replica mode.
|
197
|
+
# Optional. Read replica mode. Can only be specified when trying to create the
|
198
|
+
# instance.
|
178
199
|
class Instance
|
179
200
|
include ::Google::Protobuf::MessageExts
|
180
201
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
@@ -255,10 +276,22 @@ module Google
|
|
255
276
|
PRIVATE_SERVICE_ACCESS = 2
|
256
277
|
end
|
257
278
|
|
279
|
+
# Available TLS modes.
|
280
|
+
module TransitEncryptionMode
|
281
|
+
# Not set.
|
282
|
+
TRANSIT_ENCRYPTION_MODE_UNSPECIFIED = 0
|
283
|
+
|
284
|
+
# Client to Server traffic encryption enabled with server authentication.
|
285
|
+
SERVER_AUTHENTICATION = 1
|
286
|
+
|
287
|
+
# TLS is disabled for the instance.
|
288
|
+
DISABLED = 2
|
289
|
+
end
|
290
|
+
|
258
291
|
# Read replicas mode.
|
259
292
|
module ReadReplicasMode
|
260
|
-
# If not set, Memorystore
|
261
|
-
#
|
293
|
+
# If not set, Memorystore Redis backend will default to
|
294
|
+
# READ_REPLICAS_DISABLED.
|
262
295
|
READ_REPLICAS_MODE_UNSPECIFIED = 0
|
263
296
|
|
264
297
|
# If disabled, read endpoint will not be provided and the instance cannot
|
@@ -266,13 +299,104 @@ module Google
|
|
266
299
|
READ_REPLICAS_DISABLED = 1
|
267
300
|
|
268
301
|
# If enabled, read endpoint will be provided and the instance can scale
|
269
|
-
# up and down the number of replicas.
|
302
|
+
# up and down the number of replicas. Not valid for basic tier.
|
270
303
|
READ_REPLICAS_ENABLED = 2
|
271
304
|
end
|
272
305
|
end
|
273
306
|
|
274
|
-
# Request for
|
275
|
-
#
|
307
|
+
# Request for {::Google::Cloud::Redis::V1beta1::CloudRedis::Client#reschedule_maintenance RescheduleMaintenance}.
|
308
|
+
# @!attribute [rw] name
|
309
|
+
# @return [::String]
|
310
|
+
# Required. Redis instance resource name using the form:
|
311
|
+
# `projects/{project_id}/locations/{location_id}/instances/{instance_id}`
|
312
|
+
# where `location_id` refers to a GCP region.
|
313
|
+
# @!attribute [rw] reschedule_type
|
314
|
+
# @return [::Google::Cloud::Redis::V1beta1::RescheduleMaintenanceRequest::RescheduleType]
|
315
|
+
# Required. If reschedule type is SPECIFIC_TIME, must set up schedule_time as well.
|
316
|
+
# @!attribute [rw] schedule_time
|
317
|
+
# @return [::Google::Protobuf::Timestamp]
|
318
|
+
# Optional. Timestamp when the maintenance shall be rescheduled to if
|
319
|
+
# reschedule_type=SPECIFIC_TIME, in RFC 3339 format, for
|
320
|
+
# example `2012-11-15T16:19:00.094Z`.
|
321
|
+
class RescheduleMaintenanceRequest
|
322
|
+
include ::Google::Protobuf::MessageExts
|
323
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
324
|
+
|
325
|
+
# Reschedule options.
|
326
|
+
module RescheduleType
|
327
|
+
# Not set.
|
328
|
+
RESCHEDULE_TYPE_UNSPECIFIED = 0
|
329
|
+
|
330
|
+
# If the user wants to schedule the maintenance to happen now.
|
331
|
+
IMMEDIATE = 1
|
332
|
+
|
333
|
+
# If the user wants to use the existing maintenance policy to find the
|
334
|
+
# next available window.
|
335
|
+
NEXT_AVAILABLE_WINDOW = 2
|
336
|
+
|
337
|
+
# If the user wants to reschedule the maintenance to a specific time.
|
338
|
+
SPECIFIC_TIME = 3
|
339
|
+
end
|
340
|
+
end
|
341
|
+
|
342
|
+
# Maintenance policy for an instance.
|
343
|
+
# @!attribute [r] create_time
|
344
|
+
# @return [::Google::Protobuf::Timestamp]
|
345
|
+
# Output only. The time when the policy was created.
|
346
|
+
# @!attribute [r] update_time
|
347
|
+
# @return [::Google::Protobuf::Timestamp]
|
348
|
+
# Output only. The time when the policy was last updated.
|
349
|
+
# @!attribute [rw] description
|
350
|
+
# @return [::String]
|
351
|
+
# Optional. Description of what this policy is for. Create/Update methods
|
352
|
+
# return INVALID_ARGUMENT if the length is greater than 512.
|
353
|
+
# @!attribute [rw] weekly_maintenance_window
|
354
|
+
# @return [::Array<::Google::Cloud::Redis::V1beta1::WeeklyMaintenanceWindow>]
|
355
|
+
# Optional. Maintenance window that is applied to resources covered by this
|
356
|
+
# policy. Minimum 1. For the current version, the maximum number of
|
357
|
+
# weekly_window is expected to be one.
|
358
|
+
class MaintenancePolicy
|
359
|
+
include ::Google::Protobuf::MessageExts
|
360
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
361
|
+
end
|
362
|
+
|
363
|
+
# Time window in which disruptive maintenance updates occur. Non-disruptive
|
364
|
+
# updates can occur inside or outside this window.
|
365
|
+
# @!attribute [rw] day
|
366
|
+
# @return [::Google::Type::DayOfWeek]
|
367
|
+
# Required. The day of week that maintenance updates occur.
|
368
|
+
# @!attribute [rw] start_time
|
369
|
+
# @return [::Google::Type::TimeOfDay]
|
370
|
+
# Required. Start time of the window in UTC time.
|
371
|
+
# @!attribute [r] duration
|
372
|
+
# @return [::Google::Protobuf::Duration]
|
373
|
+
# Output only. Duration of the maintenance window. The current window is fixed at 1 hour.
|
374
|
+
class WeeklyMaintenanceWindow
|
375
|
+
include ::Google::Protobuf::MessageExts
|
376
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
377
|
+
end
|
378
|
+
|
379
|
+
# Upcoming maintenance schedule. If no maintenance is scheduled, fields are not
|
380
|
+
# populated.
|
381
|
+
# @!attribute [r] start_time
|
382
|
+
# @return [::Google::Protobuf::Timestamp]
|
383
|
+
# Output only. The start time of any upcoming scheduled maintenance for this instance.
|
384
|
+
# @!attribute [r] end_time
|
385
|
+
# @return [::Google::Protobuf::Timestamp]
|
386
|
+
# Output only. The end time of any upcoming scheduled maintenance for this instance.
|
387
|
+
# @!attribute [rw] can_reschedule
|
388
|
+
# @return [::Boolean]
|
389
|
+
# If the scheduled maintenance can be rescheduled, default is true.
|
390
|
+
# @!attribute [r] schedule_deadline_time
|
391
|
+
# @return [::Google::Protobuf::Timestamp]
|
392
|
+
# Output only. The deadline that the maintenance schedule start time can not go beyond,
|
393
|
+
# including reschedule.
|
394
|
+
class MaintenanceSchedule
|
395
|
+
include ::Google::Protobuf::MessageExts
|
396
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
397
|
+
end
|
398
|
+
|
399
|
+
# Request for {::Google::Cloud::Redis::V1beta1::CloudRedis::Client#list_instances ListInstances}.
|
276
400
|
# @!attribute [rw] parent
|
277
401
|
# @return [::String]
|
278
402
|
# Required. The resource name of the instance location using the form:
|
@@ -290,15 +414,13 @@ module Google
|
|
290
414
|
# @!attribute [rw] page_token
|
291
415
|
# @return [::String]
|
292
416
|
# The `next_page_token` value returned from a previous
|
293
|
-
# {::Google::Cloud::Redis::V1beta1::CloudRedis::Client#list_instances ListInstances}
|
294
|
-
# request, if any.
|
417
|
+
# {::Google::Cloud::Redis::V1beta1::CloudRedis::Client#list_instances ListInstances} request, if any.
|
295
418
|
class ListInstancesRequest
|
296
419
|
include ::Google::Protobuf::MessageExts
|
297
420
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
298
421
|
end
|
299
422
|
|
300
|
-
# Response for
|
301
|
-
# {::Google::Cloud::Redis::V1beta1::CloudRedis::Client#list_instances ListInstances}.
|
423
|
+
# Response for {::Google::Cloud::Redis::V1beta1::CloudRedis::Client#list_instances ListInstances}.
|
302
424
|
# @!attribute [rw] instances
|
303
425
|
# @return [::Array<::Google::Cloud::Redis::V1beta1::Instance>]
|
304
426
|
# A list of Redis instances in the project in the specified location,
|
@@ -335,8 +457,27 @@ module Google
|
|
335
457
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
336
458
|
end
|
337
459
|
|
338
|
-
# Request for
|
339
|
-
#
|
460
|
+
# Request for {::Google::Cloud::Redis::V1beta1::CloudRedis::Client#get_instance_auth_string GetInstanceAuthString}.
|
461
|
+
# @!attribute [rw] name
|
462
|
+
# @return [::String]
|
463
|
+
# Required. Redis instance resource name using the form:
|
464
|
+
# `projects/{project_id}/locations/{location_id}/instances/{instance_id}`
|
465
|
+
# where `location_id` refers to a GCP region.
|
466
|
+
class GetInstanceAuthStringRequest
|
467
|
+
include ::Google::Protobuf::MessageExts
|
468
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
469
|
+
end
|
470
|
+
|
471
|
+
# Instance AUTH string details.
|
472
|
+
# @!attribute [rw] auth_string
|
473
|
+
# @return [::String]
|
474
|
+
# AUTH string set on the instance.
|
475
|
+
class InstanceAuthString
|
476
|
+
include ::Google::Protobuf::MessageExts
|
477
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
478
|
+
end
|
479
|
+
|
480
|
+
# Request for {::Google::Cloud::Redis::V1beta1::CloudRedis::Client#create_instance CreateInstance}.
|
340
481
|
# @!attribute [rw] parent
|
341
482
|
# @return [::String]
|
342
483
|
# Required. The resource name of the instance location using the form:
|
@@ -360,8 +501,7 @@ module Google
|
|
360
501
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
361
502
|
end
|
362
503
|
|
363
|
-
# Request for
|
364
|
-
# {::Google::Cloud::Redis::V1beta1::CloudRedis::Client#update_instance UpdateInstance}.
|
504
|
+
# Request for {::Google::Cloud::Redis::V1beta1::CloudRedis::Client#update_instance UpdateInstance}.
|
365
505
|
# @!attribute [rw] update_mask
|
366
506
|
# @return [::Google::Protobuf::FieldMask]
|
367
507
|
# Required. Mask of fields to update. At least one path must be supplied in
|
@@ -382,8 +522,7 @@ module Google
|
|
382
522
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
383
523
|
end
|
384
524
|
|
385
|
-
# Request for
|
386
|
-
# {::Google::Cloud::Redis::V1beta1::CloudRedis::Client#upgrade_instance UpgradeInstance}.
|
525
|
+
# Request for {::Google::Cloud::Redis::V1beta1::CloudRedis::Client#upgrade_instance UpgradeInstance}.
|
387
526
|
# @!attribute [rw] name
|
388
527
|
# @return [::String]
|
389
528
|
# Required. Redis instance resource name using the form:
|
@@ -397,8 +536,7 @@ module Google
|
|
397
536
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
398
537
|
end
|
399
538
|
|
400
|
-
# Request for
|
401
|
-
# {::Google::Cloud::Redis::V1beta1::CloudRedis::Client#delete_instance DeleteInstance}.
|
539
|
+
# Request for {::Google::Cloud::Redis::V1beta1::CloudRedis::Client#delete_instance DeleteInstance}.
|
402
540
|
# @!attribute [rw] name
|
403
541
|
# @return [::String]
|
404
542
|
# Required. Redis instance resource name using the form:
|
@@ -474,8 +612,7 @@ module Google
|
|
474
612
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
475
613
|
end
|
476
614
|
|
477
|
-
# Request for
|
478
|
-
# {::Google::Cloud::Redis::V1beta1::CloudRedis::Client#failover_instance Failover}.
|
615
|
+
# Request for {::Google::Cloud::Redis::V1beta1::CloudRedis::Client#failover_instance Failover}.
|
479
616
|
# @!attribute [rw] name
|
480
617
|
# @return [::String]
|
481
618
|
# Required. Redis instance resource name using the form:
|
@@ -536,6 +673,31 @@ module Google
|
|
536
673
|
include ::Google::Protobuf::MessageExts
|
537
674
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
538
675
|
end
|
676
|
+
|
677
|
+
# TlsCertificate Resource
|
678
|
+
# @!attribute [rw] serial_number
|
679
|
+
# @return [::String]
|
680
|
+
# Serial number, as extracted from the certificate.
|
681
|
+
# @!attribute [rw] cert
|
682
|
+
# @return [::String]
|
683
|
+
# PEM representation.
|
684
|
+
# @!attribute [r] create_time
|
685
|
+
# @return [::Google::Protobuf::Timestamp]
|
686
|
+
# Output only. The time when the certificate was created in [RFC
|
687
|
+
# 3339](https://tools.ietf.org/html/rfc3339) format, for example
|
688
|
+
# `2020-05-18T00:00:00.094Z`.
|
689
|
+
# @!attribute [r] expire_time
|
690
|
+
# @return [::Google::Protobuf::Timestamp]
|
691
|
+
# Output only. The time when the certificate expires in [RFC
|
692
|
+
# 3339](https://tools.ietf.org/html/rfc3339) format, for example
|
693
|
+
# `2020-05-18T00:00:00.094Z`.
|
694
|
+
# @!attribute [rw] sha1_fingerprint
|
695
|
+
# @return [::String]
|
696
|
+
# Sha1 Fingerprint of the certificate.
|
697
|
+
class TlsCertificate
|
698
|
+
include ::Google::Protobuf::MessageExts
|
699
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
700
|
+
end
|
539
701
|
end
|
540
702
|
end
|
541
703
|
end
|
@@ -0,0 +1,49 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
# Copyright 2022 Google LLC
|
4
|
+
#
|
5
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
6
|
+
# you may not use this file except in compliance with the License.
|
7
|
+
# You may obtain a copy of the License at
|
8
|
+
#
|
9
|
+
# https://www.apache.org/licenses/LICENSE-2.0
|
10
|
+
#
|
11
|
+
# Unless required by applicable law or agreed to in writing, software
|
12
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
13
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
14
|
+
# See the License for the specific language governing permissions and
|
15
|
+
# limitations under the License.
|
16
|
+
|
17
|
+
# Auto-generated by gapic-generator-ruby. DO NOT EDIT!
|
18
|
+
|
19
|
+
|
20
|
+
module Google
|
21
|
+
module Type
|
22
|
+
# Represents a day of the week.
|
23
|
+
module DayOfWeek
|
24
|
+
# The day of the week is unspecified.
|
25
|
+
DAY_OF_WEEK_UNSPECIFIED = 0
|
26
|
+
|
27
|
+
# Monday
|
28
|
+
MONDAY = 1
|
29
|
+
|
30
|
+
# Tuesday
|
31
|
+
TUESDAY = 2
|
32
|
+
|
33
|
+
# Wednesday
|
34
|
+
WEDNESDAY = 3
|
35
|
+
|
36
|
+
# Thursday
|
37
|
+
THURSDAY = 4
|
38
|
+
|
39
|
+
# Friday
|
40
|
+
FRIDAY = 5
|
41
|
+
|
42
|
+
# Saturday
|
43
|
+
SATURDAY = 6
|
44
|
+
|
45
|
+
# Sunday
|
46
|
+
SUNDAY = 7
|
47
|
+
end
|
48
|
+
end
|
49
|
+
end
|
@@ -0,0 +1,45 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
# Copyright 2022 Google LLC
|
4
|
+
#
|
5
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
6
|
+
# you may not use this file except in compliance with the License.
|
7
|
+
# You may obtain a copy of the License at
|
8
|
+
#
|
9
|
+
# https://www.apache.org/licenses/LICENSE-2.0
|
10
|
+
#
|
11
|
+
# Unless required by applicable law or agreed to in writing, software
|
12
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
13
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
14
|
+
# See the License for the specific language governing permissions and
|
15
|
+
# limitations under the License.
|
16
|
+
|
17
|
+
# Auto-generated by gapic-generator-ruby. DO NOT EDIT!
|
18
|
+
|
19
|
+
|
20
|
+
module Google
|
21
|
+
module Type
|
22
|
+
# Represents a time of day. The date and time zone are either not significant
|
23
|
+
# or are specified elsewhere. An API may choose to allow leap seconds. Related
|
24
|
+
# types are [google.type.Date][google.type.Date] and
|
25
|
+
# `google.protobuf.Timestamp`.
|
26
|
+
# @!attribute [rw] hours
|
27
|
+
# @return [::Integer]
|
28
|
+
# Hours of day in 24 hour format. Should be from 0 to 23. An API may choose
|
29
|
+
# to allow the value "24:00:00" for scenarios like business closing time.
|
30
|
+
# @!attribute [rw] minutes
|
31
|
+
# @return [::Integer]
|
32
|
+
# Minutes of hour of day. Must be from 0 to 59.
|
33
|
+
# @!attribute [rw] seconds
|
34
|
+
# @return [::Integer]
|
35
|
+
# Seconds of minutes of the time. Must normally be from 0 to 59. An API may
|
36
|
+
# allow the value 60 if it allows leap-seconds.
|
37
|
+
# @!attribute [rw] nanos
|
38
|
+
# @return [::Integer]
|
39
|
+
# Fractions of seconds in nanoseconds. Must be from 0 to 999,999,999.
|
40
|
+
class TimeOfDay
|
41
|
+
include ::Google::Protobuf::MessageExts
|
42
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
43
|
+
end
|
44
|
+
end
|
45
|
+
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: google-cloud-redis-v1beta1
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.6.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: 2022-01-
|
11
|
+
date: 2022-01-21 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: gapic-common
|
@@ -190,6 +190,8 @@ files:
|
|
190
190
|
- proto_docs/google/protobuf/field_mask.rb
|
191
191
|
- proto_docs/google/protobuf/timestamp.rb
|
192
192
|
- proto_docs/google/rpc/status.rb
|
193
|
+
- proto_docs/google/type/dayofweek.rb
|
194
|
+
- proto_docs/google/type/timeofday.rb
|
193
195
|
homepage: https://github.com/googleapis/google-cloud-ruby
|
194
196
|
licenses:
|
195
197
|
- Apache-2.0
|
@@ -209,7 +211,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
209
211
|
- !ruby/object:Gem::Version
|
210
212
|
version: '0'
|
211
213
|
requirements: []
|
212
|
-
rubygems_version: 3.3.
|
214
|
+
rubygems_version: 3.3.5
|
213
215
|
signing_key:
|
214
216
|
specification_version: 4
|
215
217
|
summary: API Client library for the Google Cloud Memorystore for Redis V1beta1 API
|