google-cloud-memcache-v1beta2 0.6.0 → 0.7.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/lib/google/cloud/memcache/v1beta2/cloud_memcache/client.rb +14 -3
- data/lib/google/cloud/memcache/v1beta2/cloud_memcache/operations.rb +13 -2
- data/lib/google/cloud/memcache/v1beta2/cloud_memcache/rest/client.rb +201 -2
- data/lib/google/cloud/memcache/v1beta2/cloud_memcache/rest/operations.rb +82 -5
- data/lib/google/cloud/memcache/v1beta2/cloud_memcache/rest/service_stub.rb +9 -9
- data/lib/google/cloud/memcache/v1beta2/version.rb +1 -1
- data/proto_docs/google/api/field_behavior.rb +14 -0
- metadata +5 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a5beed76585a4d786eab311e049146d6df0bd51619a5f73939d98ea62e1d1f9e
|
4
|
+
data.tar.gz: 1c271b57235d694eefc1869cc0714214f909461c3fb7381b2ac578fd4e7aaa82
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a822502dafda0c2718b1219afe212532289eaece74b29e657e881656749037e51ecfbad28cd54b4c424ac87f0223f68e9e82f2349861da4cbaa4eb826eef3d99
|
7
|
+
data.tar.gz: 5c0ab47b4bed4b31e2852fb5664eea63b6348684d6faea8a2963728e36d1cc7aeca498d45fd9b83d670f3d8a5bacdf76c28bb492135ee3f17939378030f8bca2
|
@@ -156,7 +156,7 @@ module Google
|
|
156
156
|
credentials = @config.credentials
|
157
157
|
# Use self-signed JWT if the endpoint is unchanged from default,
|
158
158
|
# but only if the default endpoint does not have a region prefix.
|
159
|
-
enable_self_signed_jwt = @config.endpoint ==
|
159
|
+
enable_self_signed_jwt = @config.endpoint == Configuration::DEFAULT_ENDPOINT &&
|
160
160
|
!@config.endpoint.split(".").first.include?("-")
|
161
161
|
credentials ||= Credentials.default scope: @config.scope,
|
162
162
|
enable_self_signed_jwt: enable_self_signed_jwt
|
@@ -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
|
|
@@ -1184,7 +1185,9 @@ module Google
|
|
1184
1185
|
class Configuration
|
1185
1186
|
extend ::Gapic::Config
|
1186
1187
|
|
1187
|
-
|
1188
|
+
DEFAULT_ENDPOINT = "memcache.googleapis.com"
|
1189
|
+
|
1190
|
+
config_attr :endpoint, DEFAULT_ENDPOINT, ::String
|
1188
1191
|
config_attr :credentials, nil do |value|
|
1189
1192
|
allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
|
1190
1193
|
allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC
|
@@ -1219,6 +1222,14 @@ module Google
|
|
1219
1222
|
end
|
1220
1223
|
end
|
1221
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
|
+
|
1222
1233
|
##
|
1223
1234
|
# Configuration RPC class for the CloudMemcache API.
|
1224
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
|
@@ -664,7 +665,9 @@ module Google
|
|
664
665
|
class Configuration
|
665
666
|
extend ::Gapic::Config
|
666
667
|
|
667
|
-
|
668
|
+
DEFAULT_ENDPOINT = "memcache.googleapis.com"
|
669
|
+
|
670
|
+
config_attr :endpoint, DEFAULT_ENDPOINT, ::String
|
668
671
|
config_attr :credentials, nil do |value|
|
669
672
|
allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
|
670
673
|
allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC
|
@@ -699,6 +702,14 @@ module Google
|
|
699
702
|
end
|
700
703
|
end
|
701
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
|
+
|
702
713
|
##
|
703
714
|
# Configuration RPC class for the Operations API.
|
704
715
|
#
|
@@ -152,7 +152,7 @@ module Google
|
|
152
152
|
credentials = @config.credentials
|
153
153
|
# Use self-signed JWT if the endpoint is unchanged from default,
|
154
154
|
# but only if the default endpoint does not have a region prefix.
|
155
|
-
enable_self_signed_jwt = @config.endpoint ==
|
155
|
+
enable_self_signed_jwt = @config.endpoint == Configuration::DEFAULT_ENDPOINT &&
|
156
156
|
!@config.endpoint.split(".").first.include?("-")
|
157
157
|
credentials ||= Credentials.default scope: @config.scope,
|
158
158
|
enable_self_signed_jwt: enable_self_signed_jwt
|
@@ -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
|
|
@@ -906,7 +1103,9 @@ module Google
|
|
906
1103
|
class Configuration
|
907
1104
|
extend ::Gapic::Config
|
908
1105
|
|
909
|
-
|
1106
|
+
DEFAULT_ENDPOINT = "memcache.googleapis.com"
|
1107
|
+
|
1108
|
+
config_attr :endpoint, DEFAULT_ENDPOINT, ::String
|
910
1109
|
config_attr :credentials, nil do |value|
|
911
1110
|
allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
|
912
1111
|
allowed.any? { |klass| klass === value }
|
@@ -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
|
|
@@ -446,7 +521,9 @@ module Google
|
|
446
521
|
class Configuration
|
447
522
|
extend ::Gapic::Config
|
448
523
|
|
449
|
-
|
524
|
+
DEFAULT_ENDPOINT = "memcache.googleapis.com"
|
525
|
+
|
526
|
+
config_attr :endpoint, DEFAULT_ENDPOINT, ::String
|
450
527
|
config_attr :credentials, nil do |value|
|
451
528
|
allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
|
452
529
|
allowed.any? { |klass| klass === value }
|
@@ -567,7 +644,7 @@ module Google
|
|
567
644
|
|
568
645
|
verb, uri, query_string_params, body = OperationsServiceStub.transcode_list_operations_request request_pb
|
569
646
|
query_string_params = if query_string_params.any?
|
570
|
-
query_string_params.to_h { |p| p.split
|
647
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
571
648
|
else
|
572
649
|
{}
|
573
650
|
end
|
@@ -605,7 +682,7 @@ module Google
|
|
605
682
|
|
606
683
|
verb, uri, query_string_params, body = OperationsServiceStub.transcode_get_operation_request request_pb
|
607
684
|
query_string_params = if query_string_params.any?
|
608
|
-
query_string_params.to_h { |p| p.split
|
685
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
609
686
|
else
|
610
687
|
{}
|
611
688
|
end
|
@@ -643,7 +720,7 @@ module Google
|
|
643
720
|
|
644
721
|
verb, uri, query_string_params, body = OperationsServiceStub.transcode_delete_operation_request request_pb
|
645
722
|
query_string_params = if query_string_params.any?
|
646
|
-
query_string_params.to_h { |p| p.split
|
723
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
647
724
|
else
|
648
725
|
{}
|
649
726
|
end
|
@@ -681,7 +758,7 @@ module Google
|
|
681
758
|
|
682
759
|
verb, uri, query_string_params, body = OperationsServiceStub.transcode_cancel_operation_request request_pb
|
683
760
|
query_string_params = if query_string_params.any?
|
684
|
-
query_string_params.to_h { |p| p.split
|
761
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
685
762
|
else
|
686
763
|
{}
|
687
764
|
end
|
@@ -59,7 +59,7 @@ module Google
|
|
59
59
|
|
60
60
|
verb, uri, query_string_params, body = ServiceStub.transcode_list_instances_request request_pb
|
61
61
|
query_string_params = if query_string_params.any?
|
62
|
-
query_string_params.to_h { |p| p.split
|
62
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
63
63
|
else
|
64
64
|
{}
|
65
65
|
end
|
@@ -97,7 +97,7 @@ module Google
|
|
97
97
|
|
98
98
|
verb, uri, query_string_params, body = ServiceStub.transcode_get_instance_request request_pb
|
99
99
|
query_string_params = if query_string_params.any?
|
100
|
-
query_string_params.to_h { |p| p.split
|
100
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
101
101
|
else
|
102
102
|
{}
|
103
103
|
end
|
@@ -135,7 +135,7 @@ module Google
|
|
135
135
|
|
136
136
|
verb, uri, query_string_params, body = ServiceStub.transcode_create_instance_request request_pb
|
137
137
|
query_string_params = if query_string_params.any?
|
138
|
-
query_string_params.to_h { |p| p.split
|
138
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
139
139
|
else
|
140
140
|
{}
|
141
141
|
end
|
@@ -173,7 +173,7 @@ module Google
|
|
173
173
|
|
174
174
|
verb, uri, query_string_params, body = ServiceStub.transcode_update_instance_request request_pb
|
175
175
|
query_string_params = if query_string_params.any?
|
176
|
-
query_string_params.to_h { |p| p.split
|
176
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
177
177
|
else
|
178
178
|
{}
|
179
179
|
end
|
@@ -211,7 +211,7 @@ module Google
|
|
211
211
|
|
212
212
|
verb, uri, query_string_params, body = ServiceStub.transcode_update_parameters_request request_pb
|
213
213
|
query_string_params = if query_string_params.any?
|
214
|
-
query_string_params.to_h { |p| p.split
|
214
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
215
215
|
else
|
216
216
|
{}
|
217
217
|
end
|
@@ -249,7 +249,7 @@ module Google
|
|
249
249
|
|
250
250
|
verb, uri, query_string_params, body = ServiceStub.transcode_delete_instance_request request_pb
|
251
251
|
query_string_params = if query_string_params.any?
|
252
|
-
query_string_params.to_h { |p| p.split
|
252
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
253
253
|
else
|
254
254
|
{}
|
255
255
|
end
|
@@ -287,7 +287,7 @@ module Google
|
|
287
287
|
|
288
288
|
verb, uri, query_string_params, body = ServiceStub.transcode_apply_parameters_request request_pb
|
289
289
|
query_string_params = if query_string_params.any?
|
290
|
-
query_string_params.to_h { |p| p.split
|
290
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
291
291
|
else
|
292
292
|
{}
|
293
293
|
end
|
@@ -325,7 +325,7 @@ module Google
|
|
325
325
|
|
326
326
|
verb, uri, query_string_params, body = ServiceStub.transcode_apply_software_update_request request_pb
|
327
327
|
query_string_params = if query_string_params.any?
|
328
|
-
query_string_params.to_h { |p| p.split
|
328
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
329
329
|
else
|
330
330
|
{}
|
331
331
|
end
|
@@ -363,7 +363,7 @@ module Google
|
|
363
363
|
|
364
364
|
verb, uri, query_string_params, body = ServiceStub.transcode_reschedule_maintenance_request request_pb
|
365
365
|
query_string_params = if query_string_params.any?
|
366
|
-
query_string_params.to_h { |p| p.split
|
366
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
367
367
|
else
|
368
368
|
{}
|
369
369
|
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.
|
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-
|
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
|
+
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.
|
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.
|
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
|