google-cloud-memcache-v1 0.6.0 → 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: f36376c526622a6e4d2796cec33350745d240bf261740ced08f8360ff31ea5ec
4
- data.tar.gz: d71fa0cc16b32b7c3e1155ece87ae80d9735dbd3f4a3dae69d70d2ae6f365e11
3
+ metadata.gz: 49f098fbbe47575a318766ea477244722181563c8540fa1a76489700302c318f
4
+ data.tar.gz: 68b43d0e56a8608827f04c974f7dfdc3bb190ad914de8f34d02d2ac685cddff1
5
5
  SHA512:
6
- metadata.gz: 922664d6c3877727e0c5a7d6c07744b19d0b3859437fe9687a6de9688ad10777d8ded48de552eba71966f34040930af0d5d21b5c2619cd84dd9e5c734f6d2cc4
7
- data.tar.gz: 5f239d60c0982352722c09170d47067967f5f309f32804b66c932ee2cc26f315bf7c08990a53074003b4235c8f9533a42c11b6921b73e27141086cb51ee6ac59
6
+ metadata.gz: e05d7d07416065ed5f2ab1f62c4d5a105f4af30ba5e7a974764d311b6d008f72594546fe6a2c8e3e606ee48a48a2ee67ca9419eccc8ba5c5dbbd2e0010326cf7
7
+ data.tar.gz: 40b3e127553512cceac6e39009e7bb357e3dd378049d2c1ba5225211efabf43819bd78795cb08cb6b2f9f3f49d7dcdb083e55072fe7baea595734630b4fce92a
@@ -154,7 +154,7 @@ module Google
154
154
  credentials = @config.credentials
155
155
  # Use self-signed JWT if the endpoint is unchanged from default,
156
156
  # but only if the default endpoint does not have a region prefix.
157
- enable_self_signed_jwt = @config.endpoint == Client.configure.endpoint &&
157
+ enable_self_signed_jwt = @config.endpoint == Configuration::DEFAULT_ENDPOINT &&
158
158
  !@config.endpoint.split(".").first.include?("-")
159
159
  credentials ||= Credentials.default scope: @config.scope,
160
160
  enable_self_signed_jwt: enable_self_signed_jwt
@@ -181,7 +181,8 @@ module Google
181
181
  credentials: credentials,
182
182
  endpoint: @config.endpoint,
183
183
  channel_args: @config.channel_args,
184
- interceptors: @config.interceptors
184
+ interceptors: @config.interceptors,
185
+ channel_pool_config: @config.channel_pool
185
186
  )
186
187
  end
187
188
 
@@ -1081,7 +1082,9 @@ module Google
1081
1082
  class Configuration
1082
1083
  extend ::Gapic::Config
1083
1084
 
1084
- config_attr :endpoint, "memcache.googleapis.com", ::String
1085
+ DEFAULT_ENDPOINT = "memcache.googleapis.com"
1086
+
1087
+ config_attr :endpoint, DEFAULT_ENDPOINT, ::String
1085
1088
  config_attr :credentials, nil do |value|
1086
1089
  allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
1087
1090
  allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC
@@ -1116,6 +1119,14 @@ module Google
1116
1119
  end
1117
1120
  end
1118
1121
 
1122
+ ##
1123
+ # Configuration for the channel pool
1124
+ # @return [::Gapic::ServiceStub::ChannelPool::Configuration]
1125
+ #
1126
+ def channel_pool
1127
+ @channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new
1128
+ end
1129
+
1119
1130
  ##
1120
1131
  # Configuration RPC class for the CloudMemcache API.
1121
1132
  #
@@ -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
- config_attr :endpoint, "memcache.googleapis.com", ::String
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
  #
@@ -150,7 +150,7 @@ module Google
150
150
  credentials = @config.credentials
151
151
  # Use self-signed JWT if the endpoint is unchanged from default,
152
152
  # but only if the default endpoint does not have a region prefix.
153
- enable_self_signed_jwt = @config.endpoint == Client.configure.endpoint &&
153
+ enable_self_signed_jwt = @config.endpoint == Configuration::DEFAULT_ENDPOINT &&
154
154
  !@config.endpoint.split(".").first.include?("-")
155
155
  credentials ||= Credentials.default scope: @config.scope,
156
156
  enable_self_signed_jwt: enable_self_signed_jwt
@@ -237,6 +237,26 @@ module Google
237
237
  # @return [::Google::Cloud::Memcache::V1::ListInstancesResponse]
238
238
  #
239
239
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
240
+ #
241
+ # @example Basic example
242
+ # require "google/cloud/memcache/v1"
243
+ #
244
+ # # Create a client object. The client can be reused for multiple calls.
245
+ # client = Google::Cloud::Memcache::V1::CloudMemcache::Rest::Client.new
246
+ #
247
+ # # Create a request. To set request fields, pass in keyword arguments.
248
+ # request = Google::Cloud::Memcache::V1::ListInstancesRequest.new
249
+ #
250
+ # # Call the list_instances method.
251
+ # result = client.list_instances request
252
+ #
253
+ # # The returned object is of type Gapic::PagedEnumerable. You can iterate
254
+ # # over elements, and API calls will be issued to fetch pages as needed.
255
+ # result.each do |item|
256
+ # # Each element is of type ::Google::Cloud::Memcache::V1::Instance.
257
+ # p item
258
+ # end
259
+ #
240
260
  def list_instances request, options = nil
241
261
  raise ::ArgumentError, "request must be provided" if request.nil?
242
262
 
@@ -301,6 +321,22 @@ module Google
301
321
  # @return [::Google::Cloud::Memcache::V1::Instance]
302
322
  #
303
323
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
324
+ #
325
+ # @example Basic example
326
+ # require "google/cloud/memcache/v1"
327
+ #
328
+ # # Create a client object. The client can be reused for multiple calls.
329
+ # client = Google::Cloud::Memcache::V1::CloudMemcache::Rest::Client.new
330
+ #
331
+ # # Create a request. To set request fields, pass in keyword arguments.
332
+ # request = Google::Cloud::Memcache::V1::GetInstanceRequest.new
333
+ #
334
+ # # Call the get_instance method.
335
+ # result = client.get_instance request
336
+ #
337
+ # # The returned object is of type Google::Cloud::Memcache::V1::Instance.
338
+ # p result
339
+ #
304
340
  def get_instance request, options = nil
305
341
  raise ::ArgumentError, "request must be provided" if request.nil?
306
342
 
@@ -378,6 +414,29 @@ module Google
378
414
  # @return [::Gapic::Operation]
379
415
  #
380
416
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
417
+ #
418
+ # @example Basic example
419
+ # require "google/cloud/memcache/v1"
420
+ #
421
+ # # Create a client object. The client can be reused for multiple calls.
422
+ # client = Google::Cloud::Memcache::V1::CloudMemcache::Rest::Client.new
423
+ #
424
+ # # Create a request. To set request fields, pass in keyword arguments.
425
+ # request = Google::Cloud::Memcache::V1::CreateInstanceRequest.new
426
+ #
427
+ # # Call the create_instance method.
428
+ # result = client.create_instance request
429
+ #
430
+ # # The returned object is of type Gapic::Operation. You can use it to
431
+ # # check the status of an operation, cancel it, or wait for results.
432
+ # # Here is how to wait for a response.
433
+ # result.wait_until_done! timeout: 60
434
+ # if result.response?
435
+ # p result.response
436
+ # else
437
+ # puts "No response received."
438
+ # end
439
+ #
381
440
  def create_instance request, options = nil
382
441
  raise ::ArgumentError, "request must be provided" if request.nil?
383
442
 
@@ -446,6 +505,29 @@ module Google
446
505
  # @return [::Gapic::Operation]
447
506
  #
448
507
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
508
+ #
509
+ # @example Basic example
510
+ # require "google/cloud/memcache/v1"
511
+ #
512
+ # # Create a client object. The client can be reused for multiple calls.
513
+ # client = Google::Cloud::Memcache::V1::CloudMemcache::Rest::Client.new
514
+ #
515
+ # # Create a request. To set request fields, pass in keyword arguments.
516
+ # request = Google::Cloud::Memcache::V1::UpdateInstanceRequest.new
517
+ #
518
+ # # Call the update_instance method.
519
+ # result = client.update_instance request
520
+ #
521
+ # # The returned object is of type Gapic::Operation. You can use it to
522
+ # # check the status of an operation, cancel it, or wait for results.
523
+ # # Here is how to wait for a response.
524
+ # result.wait_until_done! timeout: 60
525
+ # if result.response?
526
+ # p result.response
527
+ # else
528
+ # puts "No response received."
529
+ # end
530
+ #
449
531
  def update_instance request, options = nil
450
532
  raise ::ArgumentError, "request must be provided" if request.nil?
451
533
 
@@ -517,6 +599,29 @@ module Google
517
599
  # @return [::Gapic::Operation]
518
600
  #
519
601
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
602
+ #
603
+ # @example Basic example
604
+ # require "google/cloud/memcache/v1"
605
+ #
606
+ # # Create a client object. The client can be reused for multiple calls.
607
+ # client = Google::Cloud::Memcache::V1::CloudMemcache::Rest::Client.new
608
+ #
609
+ # # Create a request. To set request fields, pass in keyword arguments.
610
+ # request = Google::Cloud::Memcache::V1::UpdateParametersRequest.new
611
+ #
612
+ # # Call the update_parameters method.
613
+ # result = client.update_parameters request
614
+ #
615
+ # # The returned object is of type Gapic::Operation. You can use it to
616
+ # # check the status of an operation, cancel it, or wait for results.
617
+ # # Here is how to wait for a response.
618
+ # result.wait_until_done! timeout: 60
619
+ # if result.response?
620
+ # p result.response
621
+ # else
622
+ # puts "No response received."
623
+ # end
624
+ #
520
625
  def update_parameters request, options = nil
521
626
  raise ::ArgumentError, "request must be provided" if request.nil?
522
627
 
@@ -582,6 +687,29 @@ module Google
582
687
  # @return [::Gapic::Operation]
583
688
  #
584
689
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
690
+ #
691
+ # @example Basic example
692
+ # require "google/cloud/memcache/v1"
693
+ #
694
+ # # Create a client object. The client can be reused for multiple calls.
695
+ # client = Google::Cloud::Memcache::V1::CloudMemcache::Rest::Client.new
696
+ #
697
+ # # Create a request. To set request fields, pass in keyword arguments.
698
+ # request = Google::Cloud::Memcache::V1::DeleteInstanceRequest.new
699
+ #
700
+ # # Call the delete_instance method.
701
+ # result = client.delete_instance request
702
+ #
703
+ # # The returned object is of type Gapic::Operation. You can use it to
704
+ # # check the status of an operation, cancel it, or wait for results.
705
+ # # Here is how to wait for a response.
706
+ # result.wait_until_done! timeout: 60
707
+ # if result.response?
708
+ # p result.response
709
+ # else
710
+ # puts "No response received."
711
+ # end
712
+ #
585
713
  def delete_instance request, options = nil
586
714
  raise ::ArgumentError, "request must be provided" if request.nil?
587
715
 
@@ -653,6 +781,29 @@ module Google
653
781
  # @return [::Gapic::Operation]
654
782
  #
655
783
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
784
+ #
785
+ # @example Basic example
786
+ # require "google/cloud/memcache/v1"
787
+ #
788
+ # # Create a client object. The client can be reused for multiple calls.
789
+ # client = Google::Cloud::Memcache::V1::CloudMemcache::Rest::Client.new
790
+ #
791
+ # # Create a request. To set request fields, pass in keyword arguments.
792
+ # request = Google::Cloud::Memcache::V1::ApplyParametersRequest.new
793
+ #
794
+ # # Call the apply_parameters method.
795
+ # result = client.apply_parameters request
796
+ #
797
+ # # The returned object is of type Gapic::Operation. You can use it to
798
+ # # check the status of an operation, cancel it, or wait for results.
799
+ # # Here is how to wait for a response.
800
+ # result.wait_until_done! timeout: 60
801
+ # if result.response?
802
+ # p result.response
803
+ # else
804
+ # puts "No response received."
805
+ # end
806
+ #
656
807
  def apply_parameters request, options = nil
657
808
  raise ::ArgumentError, "request must be provided" if request.nil?
658
809
 
@@ -724,6 +875,29 @@ module Google
724
875
  # @return [::Gapic::Operation]
725
876
  #
726
877
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
878
+ #
879
+ # @example Basic example
880
+ # require "google/cloud/memcache/v1"
881
+ #
882
+ # # Create a client object. The client can be reused for multiple calls.
883
+ # client = Google::Cloud::Memcache::V1::CloudMemcache::Rest::Client.new
884
+ #
885
+ # # Create a request. To set request fields, pass in keyword arguments.
886
+ # request = Google::Cloud::Memcache::V1::RescheduleMaintenanceRequest.new
887
+ #
888
+ # # Call the reschedule_maintenance method.
889
+ # result = client.reschedule_maintenance request
890
+ #
891
+ # # The returned object is of type Gapic::Operation. You can use it to
892
+ # # check the status of an operation, cancel it, or wait for results.
893
+ # # Here is how to wait for a response.
894
+ # result.wait_until_done! timeout: 60
895
+ # if result.response?
896
+ # p result.response
897
+ # else
898
+ # puts "No response received."
899
+ # end
900
+ #
727
901
  def reschedule_maintenance request, options = nil
728
902
  raise ::ArgumentError, "request must be provided" if request.nil?
729
903
 
@@ -833,7 +1007,9 @@ module Google
833
1007
  class Configuration
834
1008
  extend ::Gapic::Config
835
1009
 
836
- config_attr :endpoint, "memcache.googleapis.com", ::String
1010
+ DEFAULT_ENDPOINT = "memcache.googleapis.com"
1011
+
1012
+ config_attr :endpoint, DEFAULT_ENDPOINT, ::String
837
1013
  config_attr :credentials, nil do |value|
838
1014
  allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
839
1015
  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
- config_attr :endpoint, "memcache.googleapis.com", ::String
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("=", 2) }
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("=", 2) }
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("=", 2) }
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("=", 2) }
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("=", 2) }
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("=", 2) }
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("=", 2) }
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("=", 2) }
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("=", 2) }
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("=", 2) }
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("=", 2) }
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_reschedule_maintenance_request request_pb
327
327
  query_string_params = if query_string_params.any?
328
- query_string_params.to_h { |p| p.split("=", 2) }
328
+ query_string_params.to_h { |p| p.split "=", 2 }
329
329
  else
330
330
  {}
331
331
  end
@@ -21,7 +21,7 @@ module Google
21
21
  module Cloud
22
22
  module Memcache
23
23
  module V1
24
- VERSION = "0.6.0"
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-v1
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.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-05-31 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.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.19.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.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