google-cloud-redis-v1beta1 0.4.3 → 0.6.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/.yardopts +1 -1
- data/AUTHENTICATION.md +7 -25
- data/lib/google/cloud/redis/v1beta1/cloud_redis/client.rb +447 -30
- data/lib/google/cloud/redis/v1beta1/cloud_redis/operations.rb +115 -12
- data/lib/google/cloud/redis/v1beta1/cloud_redis.rb +1 -1
- data/lib/google/cloud/redis/v1beta1/cloud_redis_pb.rb +81 -2
- data/lib/google/cloud/redis/v1beta1/cloud_redis_services_pb.rb +11 -4
- data/lib/google/cloud/redis/v1beta1/version.rb +1 -1
- data/proto_docs/google/api/resource.rb +10 -71
- data/proto_docs/google/cloud/redis/v1beta1/cloud_redis.rb +256 -29
- data/proto_docs/google/type/dayofweek.rb +49 -0
- data/proto_docs/google/type/timeofday.rb +45 -0
- metadata +5 -3
@@ -143,6 +143,27 @@ module Google
|
|
143
143
|
#
|
144
144
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
145
145
|
#
|
146
|
+
# @example Basic example
|
147
|
+
# require "google/longrunning"
|
148
|
+
#
|
149
|
+
# # Create a client object. The client can be reused for multiple calls.
|
150
|
+
# client = Google::Longrunning::Operations::Client.new
|
151
|
+
#
|
152
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
153
|
+
# request = Google::Longrunning::ListOperationsRequest.new
|
154
|
+
#
|
155
|
+
# # Call the list_operations method.
|
156
|
+
# result = client.list_operations request
|
157
|
+
#
|
158
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can
|
159
|
+
# # iterate over all elements by calling #each, and the enumerable
|
160
|
+
# # will lazily make API calls to fetch subsequent pages. Other
|
161
|
+
# # methods are also available for managing paging directly.
|
162
|
+
# result.each do |response|
|
163
|
+
# # Each element is of type ::Google::Longrunning::Operation.
|
164
|
+
# p response
|
165
|
+
# end
|
166
|
+
#
|
146
167
|
def list_operations request, options = nil
|
147
168
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
148
169
|
|
@@ -160,9 +181,11 @@ module Google
|
|
160
181
|
gapic_version: ::Google::Cloud::Redis::V1beta1::VERSION
|
161
182
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
162
183
|
|
163
|
-
header_params = {
|
164
|
-
|
165
|
-
|
184
|
+
header_params = {}
|
185
|
+
if request.name
|
186
|
+
header_params["name"] = request.name
|
187
|
+
end
|
188
|
+
|
166
189
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
167
190
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
168
191
|
|
@@ -215,6 +238,28 @@ module Google
|
|
215
238
|
#
|
216
239
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
217
240
|
#
|
241
|
+
# @example Basic example
|
242
|
+
# require "google/longrunning"
|
243
|
+
#
|
244
|
+
# # Create a client object. The client can be reused for multiple calls.
|
245
|
+
# client = Google::Longrunning::Operations::Client.new
|
246
|
+
#
|
247
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
248
|
+
# request = Google::Longrunning::GetOperationRequest.new
|
249
|
+
#
|
250
|
+
# # Call the get_operation method.
|
251
|
+
# result = client.get_operation request
|
252
|
+
#
|
253
|
+
# # The returned object is of type Gapic::Operation. You can use this
|
254
|
+
# # object to check the status of an operation, cancel it, or wait
|
255
|
+
# # for results. Here is how to block until completion:
|
256
|
+
# result.wait_until_done! timeout: 60
|
257
|
+
# if result.response?
|
258
|
+
# p result.response
|
259
|
+
# else
|
260
|
+
# puts "Error!"
|
261
|
+
# end
|
262
|
+
#
|
218
263
|
def get_operation request, options = nil
|
219
264
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
220
265
|
|
@@ -232,9 +277,11 @@ module Google
|
|
232
277
|
gapic_version: ::Google::Cloud::Redis::V1beta1::VERSION
|
233
278
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
234
279
|
|
235
|
-
header_params = {
|
236
|
-
|
237
|
-
|
280
|
+
header_params = {}
|
281
|
+
if request.name
|
282
|
+
header_params["name"] = request.name
|
283
|
+
end
|
284
|
+
|
238
285
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
239
286
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
240
287
|
|
@@ -287,6 +334,21 @@ module Google
|
|
287
334
|
#
|
288
335
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
289
336
|
#
|
337
|
+
# @example Basic example
|
338
|
+
# require "google/longrunning"
|
339
|
+
#
|
340
|
+
# # Create a client object. The client can be reused for multiple calls.
|
341
|
+
# client = Google::Longrunning::Operations::Client.new
|
342
|
+
#
|
343
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
344
|
+
# request = Google::Longrunning::DeleteOperationRequest.new
|
345
|
+
#
|
346
|
+
# # Call the delete_operation method.
|
347
|
+
# result = client.delete_operation request
|
348
|
+
#
|
349
|
+
# # The returned object is of type Google::Protobuf::Empty.
|
350
|
+
# p result
|
351
|
+
#
|
290
352
|
def delete_operation request, options = nil
|
291
353
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
292
354
|
|
@@ -304,9 +366,11 @@ module Google
|
|
304
366
|
gapic_version: ::Google::Cloud::Redis::V1beta1::VERSION
|
305
367
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
306
368
|
|
307
|
-
header_params = {
|
308
|
-
|
309
|
-
|
369
|
+
header_params = {}
|
370
|
+
if request.name
|
371
|
+
header_params["name"] = request.name
|
372
|
+
end
|
373
|
+
|
310
374
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
311
375
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
312
376
|
|
@@ -364,6 +428,21 @@ module Google
|
|
364
428
|
#
|
365
429
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
366
430
|
#
|
431
|
+
# @example Basic example
|
432
|
+
# require "google/longrunning"
|
433
|
+
#
|
434
|
+
# # Create a client object. The client can be reused for multiple calls.
|
435
|
+
# client = Google::Longrunning::Operations::Client.new
|
436
|
+
#
|
437
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
438
|
+
# request = Google::Longrunning::CancelOperationRequest.new
|
439
|
+
#
|
440
|
+
# # Call the cancel_operation method.
|
441
|
+
# result = client.cancel_operation request
|
442
|
+
#
|
443
|
+
# # The returned object is of type Google::Protobuf::Empty.
|
444
|
+
# p result
|
445
|
+
#
|
367
446
|
def cancel_operation request, options = nil
|
368
447
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
369
448
|
|
@@ -381,9 +460,11 @@ module Google
|
|
381
460
|
gapic_version: ::Google::Cloud::Redis::V1beta1::VERSION
|
382
461
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
383
462
|
|
384
|
-
header_params = {
|
385
|
-
|
386
|
-
|
463
|
+
header_params = {}
|
464
|
+
if request.name
|
465
|
+
header_params["name"] = request.name
|
466
|
+
end
|
467
|
+
|
387
468
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
388
469
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
389
470
|
|
@@ -444,6 +525,28 @@ module Google
|
|
444
525
|
#
|
445
526
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
446
527
|
#
|
528
|
+
# @example Basic example
|
529
|
+
# require "google/longrunning"
|
530
|
+
#
|
531
|
+
# # Create a client object. The client can be reused for multiple calls.
|
532
|
+
# client = Google::Longrunning::Operations::Client.new
|
533
|
+
#
|
534
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
535
|
+
# request = Google::Longrunning::WaitOperationRequest.new
|
536
|
+
#
|
537
|
+
# # Call the wait_operation method.
|
538
|
+
# result = client.wait_operation request
|
539
|
+
#
|
540
|
+
# # The returned object is of type Gapic::Operation. You can use this
|
541
|
+
# # object to check the status of an operation, cancel it, or wait
|
542
|
+
# # for results. Here is how to block until completion:
|
543
|
+
# result.wait_until_done! timeout: 60
|
544
|
+
# if result.response?
|
545
|
+
# p result.response
|
546
|
+
# else
|
547
|
+
# puts "Error!"
|
548
|
+
# end
|
549
|
+
#
|
447
550
|
def wait_operation request, options = nil
|
448
551
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
449
552
|
|
@@ -45,7 +45,7 @@ module Google
|
|
45
45
|
# * As such, Redis instances are resources of the form:
|
46
46
|
# `/projects/{project_id}/locations/{location_id}/instances/{instance_id}`
|
47
47
|
#
|
48
|
-
# Note that location_id must be
|
48
|
+
# Note that location_id must be referring to a GCP `region`; for example:
|
49
49
|
# * `projects/redpepper-1290/locations/us-central1/instances/my-redis`
|
50
50
|
#
|
51
51
|
# To load this service and instantiate a client:
|
@@ -1,17 +1,24 @@
|
|
1
1
|
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
2
|
# source: google/cloud/redis/v1beta1/cloud_redis.proto
|
3
3
|
|
4
|
-
require 'google/protobuf'
|
5
|
-
|
6
4
|
require 'google/api/annotations_pb'
|
7
5
|
require 'google/api/client_pb'
|
8
6
|
require 'google/api/field_behavior_pb'
|
9
7
|
require 'google/api/resource_pb'
|
10
8
|
require 'google/longrunning/operations_pb'
|
9
|
+
require 'google/protobuf/duration_pb'
|
11
10
|
require 'google/protobuf/field_mask_pb'
|
12
11
|
require 'google/protobuf/timestamp_pb'
|
12
|
+
require 'google/type/dayofweek_pb'
|
13
|
+
require 'google/type/timeofday_pb'
|
14
|
+
require 'google/protobuf'
|
15
|
+
|
13
16
|
Google::Protobuf::DescriptorPool.generated_pool.build do
|
14
17
|
add_file("google/cloud/redis/v1beta1/cloud_redis.proto", :syntax => :proto3) do
|
18
|
+
add_message "google.cloud.redis.v1beta1.NodeInfo" do
|
19
|
+
optional :id, :string, 1
|
20
|
+
optional :zone, :string, 2
|
21
|
+
end
|
15
22
|
add_message "google.cloud.redis.v1beta1.Instance" do
|
16
23
|
optional :name, :string, 1
|
17
24
|
optional :display_name, :string, 2
|
@@ -32,6 +39,16 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
32
39
|
optional :authorized_network, :string, 20
|
33
40
|
optional :persistence_iam_identity, :string, 21
|
34
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"
|
47
|
+
optional :replica_count, :int32, 31
|
48
|
+
repeated :nodes, :message, 32, "google.cloud.redis.v1beta1.NodeInfo"
|
49
|
+
optional :read_endpoint, :string, 33
|
50
|
+
optional :read_endpoint_port, :int32, 34
|
51
|
+
optional :read_replicas_mode, :enum, 35, "google.cloud.redis.v1beta1.Instance.ReadReplicasMode"
|
35
52
|
end
|
36
53
|
add_enum "google.cloud.redis.v1beta1.Instance.State" do
|
37
54
|
value :STATE_UNSPECIFIED, 0
|
@@ -54,6 +71,44 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
54
71
|
value :DIRECT_PEERING, 1
|
55
72
|
value :PRIVATE_SERVICE_ACCESS, 2
|
56
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
|
79
|
+
add_enum "google.cloud.redis.v1beta1.Instance.ReadReplicasMode" do
|
80
|
+
value :READ_REPLICAS_MODE_UNSPECIFIED, 0
|
81
|
+
value :READ_REPLICAS_DISABLED, 1
|
82
|
+
value :READ_REPLICAS_ENABLED, 2
|
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
|
57
112
|
add_message "google.cloud.redis.v1beta1.ListInstancesRequest" do
|
58
113
|
optional :parent, :string, 1
|
59
114
|
optional :page_size, :int32, 2
|
@@ -67,6 +122,12 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
67
122
|
add_message "google.cloud.redis.v1beta1.GetInstanceRequest" do
|
68
123
|
optional :name, :string, 1
|
69
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
|
70
131
|
add_message "google.cloud.redis.v1beta1.CreateInstanceRequest" do
|
71
132
|
optional :parent, :string, 1
|
72
133
|
optional :instance_id, :string, 2
|
@@ -121,6 +182,13 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
121
182
|
end
|
122
183
|
add_message "google.cloud.redis.v1beta1.ZoneMetadata" do
|
123
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
|
124
192
|
end
|
125
193
|
end
|
126
194
|
|
@@ -128,13 +196,23 @@ module Google
|
|
128
196
|
module Cloud
|
129
197
|
module Redis
|
130
198
|
module V1beta1
|
199
|
+
NodeInfo = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.redis.v1beta1.NodeInfo").msgclass
|
131
200
|
Instance = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.redis.v1beta1.Instance").msgclass
|
132
201
|
Instance::State = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.redis.v1beta1.Instance.State").enummodule
|
133
202
|
Instance::Tier = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.redis.v1beta1.Instance.Tier").enummodule
|
134
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
|
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
|
135
211
|
ListInstancesRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.redis.v1beta1.ListInstancesRequest").msgclass
|
136
212
|
ListInstancesResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.redis.v1beta1.ListInstancesResponse").msgclass
|
137
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
|
138
216
|
CreateInstanceRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.redis.v1beta1.CreateInstanceRequest").msgclass
|
139
217
|
UpdateInstanceRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.redis.v1beta1.UpdateInstanceRequest").msgclass
|
140
218
|
UpgradeInstanceRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.redis.v1beta1.UpgradeInstanceRequest").msgclass
|
@@ -149,6 +227,7 @@ module Google
|
|
149
227
|
FailoverInstanceRequest::DataProtectionMode = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.redis.v1beta1.FailoverInstanceRequest.DataProtectionMode").enummodule
|
150
228
|
LocationMetadata = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.redis.v1beta1.LocationMetadata").msgclass
|
151
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
|
152
231
|
end
|
153
232
|
end
|
154
233
|
end
|
@@ -37,11 +37,11 @@ module Google
|
|
37
37
|
# * As such, Redis instances are resources of the form:
|
38
38
|
# `/projects/{project_id}/locations/{location_id}/instances/{instance_id}`
|
39
39
|
#
|
40
|
-
# Note that location_id must be
|
40
|
+
# Note that location_id must be referring to a GCP `region`; for example:
|
41
41
|
# * `projects/redpepper-1290/locations/us-central1/instances/my-redis`
|
42
42
|
class Service
|
43
43
|
|
44
|
-
include GRPC::GenericService
|
44
|
+
include ::GRPC::GenericService
|
45
45
|
|
46
46
|
self.marshal_class_method = :encode
|
47
47
|
self.unmarshal_class_method = :decode
|
@@ -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
|
@@ -66,7 +70,7 @@ module Google
|
|
66
70
|
#
|
67
71
|
# The creation is executed asynchronously and callers may check the returned
|
68
72
|
# operation to track its progress. Once the operation is completed the Redis
|
69
|
-
# instance will be fully functional.
|
73
|
+
# instance will be fully functional. The completed longrunning.Operation will
|
70
74
|
# contain the new instance object in the response field.
|
71
75
|
#
|
72
76
|
# The returned operation is automatically deleted after a few hours, so there
|
@@ -97,12 +101,15 @@ module Google
|
|
97
101
|
# The returned operation is automatically deleted after a few hours, so
|
98
102
|
# there is no need to call DeleteOperation.
|
99
103
|
rpc :ExportInstance, ::Google::Cloud::Redis::V1beta1::ExportInstanceRequest, ::Google::Longrunning::Operation
|
100
|
-
# Initiates a failover of the
|
104
|
+
# Initiates a failover of the primary node to current replica node for a
|
101
105
|
# specific STANDARD tier Cloud Memorystore for Redis instance.
|
102
106
|
rpc :FailoverInstance, ::Google::Cloud::Redis::V1beta1::FailoverInstanceRequest, ::Google::Longrunning::Operation
|
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
|
@@ -33,11 +33,7 @@ module Google
|
|
33
33
|
# // For Kubernetes resources, the format is {api group}/{kind}.
|
34
34
|
# option (google.api.resource) = {
|
35
35
|
# type: "pubsub.googleapis.com/Topic"
|
36
|
-
#
|
37
|
-
# pattern: "projects/{project}/topics/{topic}"
|
38
|
-
# parent_type: "cloudresourcemanager.googleapis.com/Project"
|
39
|
-
# parent_name_extractor: "projects/{project}"
|
40
|
-
# }
|
36
|
+
# pattern: "projects/{project}/topics/{topic}"
|
41
37
|
# };
|
42
38
|
# }
|
43
39
|
#
|
@@ -45,10 +41,7 @@ module Google
|
|
45
41
|
#
|
46
42
|
# resources:
|
47
43
|
# - type: "pubsub.googleapis.com/Topic"
|
48
|
-
#
|
49
|
-
# - pattern: "projects/{project}/topics/{topic}"
|
50
|
-
# parent_type: "cloudresourcemanager.googleapis.com/Project"
|
51
|
-
# parent_name_extractor: "projects/{project}"
|
44
|
+
# pattern: "projects/{project}/topics/{topic}"
|
52
45
|
#
|
53
46
|
# Sometimes, resources have multiple patterns, typically because they can
|
54
47
|
# live under multiple parents.
|
@@ -58,26 +51,10 @@ module Google
|
|
58
51
|
# message LogEntry {
|
59
52
|
# option (google.api.resource) = {
|
60
53
|
# type: "logging.googleapis.com/LogEntry"
|
61
|
-
#
|
62
|
-
#
|
63
|
-
#
|
64
|
-
#
|
65
|
-
# }
|
66
|
-
# name_descriptor: {
|
67
|
-
# pattern: "folders/{folder}/logs/{log}"
|
68
|
-
# parent_type: "cloudresourcemanager.googleapis.com/Folder"
|
69
|
-
# parent_name_extractor: "folders/{folder}"
|
70
|
-
# }
|
71
|
-
# name_descriptor: {
|
72
|
-
# pattern: "organizations/{organization}/logs/{log}"
|
73
|
-
# parent_type: "cloudresourcemanager.googleapis.com/Organization"
|
74
|
-
# parent_name_extractor: "organizations/{organization}"
|
75
|
-
# }
|
76
|
-
# name_descriptor: {
|
77
|
-
# pattern: "billingAccounts/{billing_account}/logs/{log}"
|
78
|
-
# parent_type: "billing.googleapis.com/BillingAccount"
|
79
|
-
# parent_name_extractor: "billingAccounts/{billing_account}"
|
80
|
-
# }
|
54
|
+
# pattern: "projects/{project}/logs/{log}"
|
55
|
+
# pattern: "folders/{folder}/logs/{log}"
|
56
|
+
# pattern: "organizations/{organization}/logs/{log}"
|
57
|
+
# pattern: "billingAccounts/{billing_account}/logs/{log}"
|
81
58
|
# };
|
82
59
|
# }
|
83
60
|
#
|
@@ -85,48 +62,10 @@ module Google
|
|
85
62
|
#
|
86
63
|
# resources:
|
87
64
|
# - type: 'logging.googleapis.com/LogEntry'
|
88
|
-
#
|
89
|
-
#
|
90
|
-
#
|
91
|
-
#
|
92
|
-
# - pattern: "folders/{folder}/logs/{log}"
|
93
|
-
# parent_type: "cloudresourcemanager.googleapis.com/Folder"
|
94
|
-
# parent_name_extractor: "folders/{folder}"
|
95
|
-
# - pattern: "organizations/{organization}/logs/{log}"
|
96
|
-
# parent_type: "cloudresourcemanager.googleapis.com/Organization"
|
97
|
-
# parent_name_extractor: "organizations/{organization}"
|
98
|
-
# - pattern: "billingAccounts/{billing_account}/logs/{log}"
|
99
|
-
# parent_type: "billing.googleapis.com/BillingAccount"
|
100
|
-
# parent_name_extractor: "billingAccounts/{billing_account}"
|
101
|
-
#
|
102
|
-
# For flexible resources, the resource name doesn't contain parent names, but
|
103
|
-
# the resource itself has parents for policy evaluation.
|
104
|
-
#
|
105
|
-
# Example:
|
106
|
-
#
|
107
|
-
# message Shelf {
|
108
|
-
# option (google.api.resource) = {
|
109
|
-
# type: "library.googleapis.com/Shelf"
|
110
|
-
# name_descriptor: {
|
111
|
-
# pattern: "shelves/{shelf}"
|
112
|
-
# parent_type: "cloudresourcemanager.googleapis.com/Project"
|
113
|
-
# }
|
114
|
-
# name_descriptor: {
|
115
|
-
# pattern: "shelves/{shelf}"
|
116
|
-
# parent_type: "cloudresourcemanager.googleapis.com/Folder"
|
117
|
-
# }
|
118
|
-
# };
|
119
|
-
# }
|
120
|
-
#
|
121
|
-
# The ResourceDescriptor Yaml config will look like:
|
122
|
-
#
|
123
|
-
# resources:
|
124
|
-
# - type: 'library.googleapis.com/Shelf'
|
125
|
-
# name_descriptor:
|
126
|
-
# - pattern: "shelves/{shelf}"
|
127
|
-
# parent_type: "cloudresourcemanager.googleapis.com/Project"
|
128
|
-
# - pattern: "shelves/{shelf}"
|
129
|
-
# parent_type: "cloudresourcemanager.googleapis.com/Folder"
|
65
|
+
# pattern: "projects/{project}/logs/{log}"
|
66
|
+
# pattern: "folders/{folder}/logs/{log}"
|
67
|
+
# pattern: "organizations/{organization}/logs/{log}"
|
68
|
+
# pattern: "billingAccounts/{billing_account}/logs/{log}"
|
130
69
|
# @!attribute [rw] type
|
131
70
|
# @return [::String]
|
132
71
|
# The resource type. It must be in the format of
|