google-cloud-memcache-v1beta2 0.6.1 → 0.7.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: 97dd0329aa3b127795b62018e886c6717a46c13819c0660bf31a7bd2d0b67b5c
4
- data.tar.gz: 341615c2c22d4290f2abed8bde773a35a732c74fb6cc09a86c88931551cb9846
3
+ metadata.gz: a5beed76585a4d786eab311e049146d6df0bd51619a5f73939d98ea62e1d1f9e
4
+ data.tar.gz: 1c271b57235d694eefc1869cc0714214f909461c3fb7381b2ac578fd4e7aaa82
5
5
  SHA512:
6
- metadata.gz: b8ee6f4cdee32f20215c4ef47804d262cef0311cda94b80c5d67443e3709201f8b4c413f8eb15bd3c28805b8459dc2fcdef89462e8528954c4d8b651d508e9ed
7
- data.tar.gz: 49e78b667f918a85bc15cb8da7248ea9c0495367f140a34187d7ba4b9bd9cb4510a64710e32d4e9f8654559e79c57071dcc3ac1f492a224e7776365130f2ee2d
6
+ metadata.gz: a822502dafda0c2718b1219afe212532289eaece74b29e657e881656749037e51ecfbad28cd54b4c424ac87f0223f68e9e82f2349861da4cbaa4eb826eef3d99
7
+ data.tar.gz: 5c0ab47b4bed4b31e2852fb5664eea63b6348684d6faea8a2963728e36d1cc7aeca498d45fd9b83d670f3d8a5bacdf76c28bb492135ee3f17939378030f8bca2
@@ -183,7 +183,8 @@ module Google
183
183
  credentials: credentials,
184
184
  endpoint: @config.endpoint,
185
185
  channel_args: @config.channel_args,
186
- interceptors: @config.interceptors
186
+ interceptors: @config.interceptors,
187
+ channel_pool_config: @config.channel_pool
187
188
  )
188
189
  end
189
190
 
@@ -1221,6 +1222,14 @@ module Google
1221
1222
  end
1222
1223
  end
1223
1224
 
1225
+ ##
1226
+ # Configuration for the channel pool
1227
+ # @return [::Gapic::ServiceStub::ChannelPool::Configuration]
1228
+ #
1229
+ def channel_pool
1230
+ @channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new
1231
+ end
1232
+
1224
1233
  ##
1225
1234
  # Configuration RPC class for the CloudMemcache API.
1226
1235
  #
@@ -93,7 +93,8 @@ module Google
93
93
  credentials: credentials,
94
94
  endpoint: @config.endpoint,
95
95
  channel_args: @config.channel_args,
96
- interceptors: @config.interceptors
96
+ interceptors: @config.interceptors,
97
+ channel_pool_config: @config.channel_pool
97
98
  )
98
99
 
99
100
  # Used by an LRO wrapper for some methods of this service
@@ -701,6 +702,14 @@ module Google
701
702
  end
702
703
  end
703
704
 
705
+ ##
706
+ # Configuration for the channel pool
707
+ # @return [::Gapic::ServiceStub::ChannelPool::Configuration]
708
+ #
709
+ def channel_pool
710
+ @channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new
711
+ end
712
+
704
713
  ##
705
714
  # Configuration RPC class for the Operations API.
706
715
  #
@@ -239,6 +239,26 @@ module Google
239
239
  # @return [::Google::Cloud::Memcache::V1beta2::ListInstancesResponse]
240
240
  #
241
241
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
242
+ #
243
+ # @example Basic example
244
+ # require "google/cloud/memcache/v1beta2"
245
+ #
246
+ # # Create a client object. The client can be reused for multiple calls.
247
+ # client = Google::Cloud::Memcache::V1beta2::CloudMemcache::Rest::Client.new
248
+ #
249
+ # # Create a request. To set request fields, pass in keyword arguments.
250
+ # request = Google::Cloud::Memcache::V1beta2::ListInstancesRequest.new
251
+ #
252
+ # # Call the list_instances method.
253
+ # result = client.list_instances request
254
+ #
255
+ # # The returned object is of type Gapic::PagedEnumerable. You can iterate
256
+ # # over elements, and API calls will be issued to fetch pages as needed.
257
+ # result.each do |item|
258
+ # # Each element is of type ::Google::Cloud::Memcache::V1beta2::Instance.
259
+ # p item
260
+ # end
261
+ #
242
262
  def list_instances request, options = nil
243
263
  raise ::ArgumentError, "request must be provided" if request.nil?
244
264
 
@@ -303,6 +323,22 @@ module Google
303
323
  # @return [::Google::Cloud::Memcache::V1beta2::Instance]
304
324
  #
305
325
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
326
+ #
327
+ # @example Basic example
328
+ # require "google/cloud/memcache/v1beta2"
329
+ #
330
+ # # Create a client object. The client can be reused for multiple calls.
331
+ # client = Google::Cloud::Memcache::V1beta2::CloudMemcache::Rest::Client.new
332
+ #
333
+ # # Create a request. To set request fields, pass in keyword arguments.
334
+ # request = Google::Cloud::Memcache::V1beta2::GetInstanceRequest.new
335
+ #
336
+ # # Call the get_instance method.
337
+ # result = client.get_instance request
338
+ #
339
+ # # The returned object is of type Google::Cloud::Memcache::V1beta2::Instance.
340
+ # p result
341
+ #
306
342
  def get_instance request, options = nil
307
343
  raise ::ArgumentError, "request must be provided" if request.nil?
308
344
 
@@ -380,6 +416,29 @@ module Google
380
416
  # @return [::Gapic::Operation]
381
417
  #
382
418
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
419
+ #
420
+ # @example Basic example
421
+ # require "google/cloud/memcache/v1beta2"
422
+ #
423
+ # # Create a client object. The client can be reused for multiple calls.
424
+ # client = Google::Cloud::Memcache::V1beta2::CloudMemcache::Rest::Client.new
425
+ #
426
+ # # Create a request. To set request fields, pass in keyword arguments.
427
+ # request = Google::Cloud::Memcache::V1beta2::CreateInstanceRequest.new
428
+ #
429
+ # # Call the create_instance method.
430
+ # result = client.create_instance request
431
+ #
432
+ # # The returned object is of type Gapic::Operation. You can use it to
433
+ # # check the status of an operation, cancel it, or wait for results.
434
+ # # Here is how to wait for a response.
435
+ # result.wait_until_done! timeout: 60
436
+ # if result.response?
437
+ # p result.response
438
+ # else
439
+ # puts "No response received."
440
+ # end
441
+ #
383
442
  def create_instance request, options = nil
384
443
  raise ::ArgumentError, "request must be provided" if request.nil?
385
444
 
@@ -448,6 +507,29 @@ module Google
448
507
  # @return [::Gapic::Operation]
449
508
  #
450
509
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
510
+ #
511
+ # @example Basic example
512
+ # require "google/cloud/memcache/v1beta2"
513
+ #
514
+ # # Create a client object. The client can be reused for multiple calls.
515
+ # client = Google::Cloud::Memcache::V1beta2::CloudMemcache::Rest::Client.new
516
+ #
517
+ # # Create a request. To set request fields, pass in keyword arguments.
518
+ # request = Google::Cloud::Memcache::V1beta2::UpdateInstanceRequest.new
519
+ #
520
+ # # Call the update_instance method.
521
+ # result = client.update_instance request
522
+ #
523
+ # # The returned object is of type Gapic::Operation. You can use it to
524
+ # # check the status of an operation, cancel it, or wait for results.
525
+ # # Here is how to wait for a response.
526
+ # result.wait_until_done! timeout: 60
527
+ # if result.response?
528
+ # p result.response
529
+ # else
530
+ # puts "No response received."
531
+ # end
532
+ #
451
533
  def update_instance request, options = nil
452
534
  raise ::ArgumentError, "request must be provided" if request.nil?
453
535
 
@@ -519,6 +601,29 @@ module Google
519
601
  # @return [::Gapic::Operation]
520
602
  #
521
603
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
604
+ #
605
+ # @example Basic example
606
+ # require "google/cloud/memcache/v1beta2"
607
+ #
608
+ # # Create a client object. The client can be reused for multiple calls.
609
+ # client = Google::Cloud::Memcache::V1beta2::CloudMemcache::Rest::Client.new
610
+ #
611
+ # # Create a request. To set request fields, pass in keyword arguments.
612
+ # request = Google::Cloud::Memcache::V1beta2::UpdateParametersRequest.new
613
+ #
614
+ # # Call the update_parameters method.
615
+ # result = client.update_parameters request
616
+ #
617
+ # # The returned object is of type Gapic::Operation. You can use it to
618
+ # # check the status of an operation, cancel it, or wait for results.
619
+ # # Here is how to wait for a response.
620
+ # result.wait_until_done! timeout: 60
621
+ # if result.response?
622
+ # p result.response
623
+ # else
624
+ # puts "No response received."
625
+ # end
626
+ #
522
627
  def update_parameters request, options = nil
523
628
  raise ::ArgumentError, "request must be provided" if request.nil?
524
629
 
@@ -584,6 +689,29 @@ module Google
584
689
  # @return [::Gapic::Operation]
585
690
  #
586
691
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
692
+ #
693
+ # @example Basic example
694
+ # require "google/cloud/memcache/v1beta2"
695
+ #
696
+ # # Create a client object. The client can be reused for multiple calls.
697
+ # client = Google::Cloud::Memcache::V1beta2::CloudMemcache::Rest::Client.new
698
+ #
699
+ # # Create a request. To set request fields, pass in keyword arguments.
700
+ # request = Google::Cloud::Memcache::V1beta2::DeleteInstanceRequest.new
701
+ #
702
+ # # Call the delete_instance method.
703
+ # result = client.delete_instance request
704
+ #
705
+ # # The returned object is of type Gapic::Operation. You can use it to
706
+ # # check the status of an operation, cancel it, or wait for results.
707
+ # # Here is how to wait for a response.
708
+ # result.wait_until_done! timeout: 60
709
+ # if result.response?
710
+ # p result.response
711
+ # else
712
+ # puts "No response received."
713
+ # end
714
+ #
587
715
  def delete_instance request, options = nil
588
716
  raise ::ArgumentError, "request must be provided" if request.nil?
589
717
 
@@ -655,6 +783,29 @@ module Google
655
783
  # @return [::Gapic::Operation]
656
784
  #
657
785
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
786
+ #
787
+ # @example Basic example
788
+ # require "google/cloud/memcache/v1beta2"
789
+ #
790
+ # # Create a client object. The client can be reused for multiple calls.
791
+ # client = Google::Cloud::Memcache::V1beta2::CloudMemcache::Rest::Client.new
792
+ #
793
+ # # Create a request. To set request fields, pass in keyword arguments.
794
+ # request = Google::Cloud::Memcache::V1beta2::ApplyParametersRequest.new
795
+ #
796
+ # # Call the apply_parameters method.
797
+ # result = client.apply_parameters request
798
+ #
799
+ # # The returned object is of type Gapic::Operation. You can use it to
800
+ # # check the status of an operation, cancel it, or wait for results.
801
+ # # Here is how to wait for a response.
802
+ # result.wait_until_done! timeout: 60
803
+ # if result.response?
804
+ # p result.response
805
+ # else
806
+ # puts "No response received."
807
+ # end
808
+ #
658
809
  def apply_parameters request, options = nil
659
810
  raise ::ArgumentError, "request must be provided" if request.nil?
660
811
 
@@ -726,6 +877,29 @@ module Google
726
877
  # @return [::Gapic::Operation]
727
878
  #
728
879
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
880
+ #
881
+ # @example Basic example
882
+ # require "google/cloud/memcache/v1beta2"
883
+ #
884
+ # # Create a client object. The client can be reused for multiple calls.
885
+ # client = Google::Cloud::Memcache::V1beta2::CloudMemcache::Rest::Client.new
886
+ #
887
+ # # Create a request. To set request fields, pass in keyword arguments.
888
+ # request = Google::Cloud::Memcache::V1beta2::ApplySoftwareUpdateRequest.new
889
+ #
890
+ # # Call the apply_software_update method.
891
+ # result = client.apply_software_update request
892
+ #
893
+ # # The returned object is of type Gapic::Operation. You can use it to
894
+ # # check the status of an operation, cancel it, or wait for results.
895
+ # # Here is how to wait for a response.
896
+ # result.wait_until_done! timeout: 60
897
+ # if result.response?
898
+ # p result.response
899
+ # else
900
+ # puts "No response received."
901
+ # end
902
+ #
729
903
  def apply_software_update request, options = nil
730
904
  raise ::ArgumentError, "request must be provided" if request.nil?
731
905
 
@@ -797,6 +971,29 @@ module Google
797
971
  # @return [::Gapic::Operation]
798
972
  #
799
973
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
974
+ #
975
+ # @example Basic example
976
+ # require "google/cloud/memcache/v1beta2"
977
+ #
978
+ # # Create a client object. The client can be reused for multiple calls.
979
+ # client = Google::Cloud::Memcache::V1beta2::CloudMemcache::Rest::Client.new
980
+ #
981
+ # # Create a request. To set request fields, pass in keyword arguments.
982
+ # request = Google::Cloud::Memcache::V1beta2::RescheduleMaintenanceRequest.new
983
+ #
984
+ # # Call the reschedule_maintenance method.
985
+ # result = client.reschedule_maintenance request
986
+ #
987
+ # # The returned object is of type Gapic::Operation. You can use it to
988
+ # # check the status of an operation, cancel it, or wait for results.
989
+ # # Here is how to wait for a response.
990
+ # result.wait_until_done! timeout: 60
991
+ # if result.response?
992
+ # p result.response
993
+ # else
994
+ # puts "No response received."
995
+ # end
996
+ #
800
997
  def reschedule_maintenance request, options = nil
801
998
  raise ::ArgumentError, "request must be provided" if request.nil?
802
999
 
@@ -136,6 +136,26 @@ module Google
136
136
  # @return [::Gapic::Operation]
137
137
  #
138
138
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
139
+ #
140
+ # @example Basic example
141
+ # require "google/longrunning"
142
+ #
143
+ # # Create a client object. The client can be reused for multiple calls.
144
+ # client = Google::Longrunning::Operations::Rest::Client.new
145
+ #
146
+ # # Create a request. To set request fields, pass in keyword arguments.
147
+ # request = Google::Longrunning::ListOperationsRequest.new
148
+ #
149
+ # # Call the list_operations method.
150
+ # result = client.list_operations request
151
+ #
152
+ # # The returned object is of type Gapic::PagedEnumerable. You can iterate
153
+ # # over elements, and API calls will be issued to fetch pages as needed.
154
+ # result.each do |item|
155
+ # # Each element is of type ::Google::Longrunning::Operation.
156
+ # p item
157
+ # end
158
+ #
139
159
  def list_operations request, options = nil
140
160
  raise ::ArgumentError, "request must be provided" if request.nil?
141
161
 
@@ -201,6 +221,29 @@ module Google
201
221
  # @return [::Gapic::Operation]
202
222
  #
203
223
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
224
+ #
225
+ # @example Basic example
226
+ # require "google/longrunning"
227
+ #
228
+ # # Create a client object. The client can be reused for multiple calls.
229
+ # client = Google::Longrunning::Operations::Rest::Client.new
230
+ #
231
+ # # Create a request. To set request fields, pass in keyword arguments.
232
+ # request = Google::Longrunning::GetOperationRequest.new
233
+ #
234
+ # # Call the get_operation method.
235
+ # result = client.get_operation request
236
+ #
237
+ # # The returned object is of type Gapic::Operation. You can use it to
238
+ # # check the status of an operation, cancel it, or wait for results.
239
+ # # Here is how to wait for a response.
240
+ # result.wait_until_done! timeout: 60
241
+ # if result.response?
242
+ # p result.response
243
+ # else
244
+ # puts "No response received."
245
+ # end
246
+ #
204
247
  def get_operation request, options = nil
205
248
  raise ::ArgumentError, "request must be provided" if request.nil?
206
249
 
@@ -267,6 +310,22 @@ module Google
267
310
  # @return [::Google::Protobuf::Empty]
268
311
  #
269
312
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
313
+ #
314
+ # @example Basic example
315
+ # require "google/longrunning"
316
+ #
317
+ # # Create a client object. The client can be reused for multiple calls.
318
+ # client = Google::Longrunning::Operations::Rest::Client.new
319
+ #
320
+ # # Create a request. To set request fields, pass in keyword arguments.
321
+ # request = Google::Longrunning::DeleteOperationRequest.new
322
+ #
323
+ # # Call the delete_operation method.
324
+ # result = client.delete_operation request
325
+ #
326
+ # # The returned object is of type Google::Protobuf::Empty.
327
+ # p result
328
+ #
270
329
  def delete_operation request, options = nil
271
330
  raise ::ArgumentError, "request must be provided" if request.nil?
272
331
 
@@ -338,6 +397,22 @@ module Google
338
397
  # @return [::Google::Protobuf::Empty]
339
398
  #
340
399
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
400
+ #
401
+ # @example Basic example
402
+ # require "google/longrunning"
403
+ #
404
+ # # Create a client object. The client can be reused for multiple calls.
405
+ # client = Google::Longrunning::Operations::Rest::Client.new
406
+ #
407
+ # # Create a request. To set request fields, pass in keyword arguments.
408
+ # request = Google::Longrunning::CancelOperationRequest.new
409
+ #
410
+ # # Call the cancel_operation method.
411
+ # result = client.cancel_operation request
412
+ #
413
+ # # The returned object is of type Google::Protobuf::Empty.
414
+ # p result
415
+ #
341
416
  def cancel_operation request, options = nil
342
417
  raise ::ArgumentError, "request must be provided" if request.nil?
343
418
 
@@ -21,7 +21,7 @@ module Google
21
21
  module Cloud
22
22
  module Memcache
23
23
  module V1beta2
24
- VERSION = "0.6.1"
24
+ VERSION = "0.7.0"
25
25
  end
26
26
  end
27
27
  end
@@ -66,6 +66,20 @@ module Google
66
66
  # a non-empty value will be returned. The user will not be aware of what
67
67
  # non-empty value to expect.
68
68
  NON_EMPTY_DEFAULT = 7
69
+
70
+ # Denotes that the field in a resource (a message annotated with
71
+ # google.api.resource) is used in the resource name to uniquely identify the
72
+ # resource. For AIP-compliant APIs, this should only be applied to the
73
+ # `name` field on the resource.
74
+ #
75
+ # This behavior should not be applied to references to other resources within
76
+ # the message.
77
+ #
78
+ # The identifier field of resources often have different field behavior
79
+ # depending on the request it is embedded in (e.g. for Create methods name
80
+ # is optional and unused, while for Update methods it is required). Instead
81
+ # of method-specific annotations, only `IDENTIFIER` is required.
82
+ IDENTIFIER = 8
69
83
  end
70
84
  end
71
85
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-cloud-memcache-v1beta2
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.1
4
+ version: 0.7.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-06-06 00:00:00.000000000 Z
11
+ date: 2023-09-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: gapic-common
@@ -16,7 +16,7 @@ dependencies:
16
16
  requirements:
17
17
  - - ">="
18
18
  - !ruby/object:Gem::Version
19
- version: 0.19.1
19
+ version: 0.20.0
20
20
  - - "<"
21
21
  - !ruby/object:Gem::Version
22
22
  version: 2.a
@@ -26,7 +26,7 @@ dependencies:
26
26
  requirements:
27
27
  - - ">="
28
28
  - !ruby/object:Gem::Version
29
- version: 0.19.1
29
+ version: 0.20.0
30
30
  - - "<"
31
31
  - !ruby/object:Gem::Version
32
32
  version: 2.a
@@ -239,7 +239,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
239
239
  - !ruby/object:Gem::Version
240
240
  version: '0'
241
241
  requirements: []
242
- rubygems_version: 3.4.2
242
+ rubygems_version: 3.4.19
243
243
  signing_key:
244
244
  specification_version: 4
245
245
  summary: Google Cloud Memorystore for Memcached API is used for creating and managing