google-cloud-api_keys-v2 0.3.0 → 0.4.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/google/cloud/api_keys/v2/api_keys/client.rb +10 -1
- data/lib/google/cloud/api_keys/v2/api_keys/operations.rb +10 -1
- data/lib/google/cloud/api_keys/v2/api_keys/rest/client.rb +160 -0
- data/lib/google/cloud/api_keys/v2/api_keys/rest/operations.rb +75 -0
- data/lib/google/cloud/api_keys/v2/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: 72eb66b00d21c057c18afb81645eec4f71c06fdb9918fbec8be332e783dc57c4
|
4
|
+
data.tar.gz: 1407a7ff137e16e855cbd33cae6d84a0b7abadcf3d42ae0fdd8b8d1fa6858cac
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6e4b38a5d3fb33b9a3767f6bea728917435f7d1aeb209794a633eb9ffa5d26a9e437aba3fb875cc1ff5cc2762bc37311044701b9cbd5e1422610033933e10008
|
7
|
+
data.tar.gz: 93a8e8adc0a0dca0374870e3fc942213747d6a5878970823b64830c47d61840baba4fd78c89cb733727b7117d8f496f2bc9d5ae8406f4310993befd97a411d41
|
@@ -146,7 +146,8 @@ module Google
|
|
146
146
|
credentials: credentials,
|
147
147
|
endpoint: @config.endpoint,
|
148
148
|
channel_args: @config.channel_args,
|
149
|
-
interceptors: @config.interceptors
|
149
|
+
interceptors: @config.interceptors,
|
150
|
+
channel_pool_config: @config.channel_pool
|
150
151
|
)
|
151
152
|
end
|
152
153
|
|
@@ -1050,6 +1051,14 @@ module Google
|
|
1050
1051
|
end
|
1051
1052
|
end
|
1052
1053
|
|
1054
|
+
##
|
1055
|
+
# Configuration for the channel pool
|
1056
|
+
# @return [::Gapic::ServiceStub::ChannelPool::Configuration]
|
1057
|
+
#
|
1058
|
+
def channel_pool
|
1059
|
+
@channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new
|
1060
|
+
end
|
1061
|
+
|
1053
1062
|
##
|
1054
1063
|
# Configuration RPC class for the ApiKeys API.
|
1055
1064
|
#
|
@@ -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
|
#
|
@@ -194,6 +194,29 @@ module Google
|
|
194
194
|
# @return [::Gapic::Operation]
|
195
195
|
#
|
196
196
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
197
|
+
#
|
198
|
+
# @example Basic example
|
199
|
+
# require "google/cloud/api_keys/v2"
|
200
|
+
#
|
201
|
+
# # Create a client object. The client can be reused for multiple calls.
|
202
|
+
# client = Google::Cloud::ApiKeys::V2::ApiKeys::Rest::Client.new
|
203
|
+
#
|
204
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
205
|
+
# request = Google::Cloud::ApiKeys::V2::CreateKeyRequest.new
|
206
|
+
#
|
207
|
+
# # Call the create_key method.
|
208
|
+
# result = client.create_key request
|
209
|
+
#
|
210
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
211
|
+
# # check the status of an operation, cancel it, or wait for results.
|
212
|
+
# # Here is how to wait for a response.
|
213
|
+
# result.wait_until_done! timeout: 60
|
214
|
+
# if result.response?
|
215
|
+
# p result.response
|
216
|
+
# else
|
217
|
+
# puts "No response received."
|
218
|
+
# end
|
219
|
+
#
|
197
220
|
def create_key request, options = nil
|
198
221
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
199
222
|
|
@@ -268,6 +291,26 @@ module Google
|
|
268
291
|
# @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::ApiKeys::V2::Key>]
|
269
292
|
#
|
270
293
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
294
|
+
#
|
295
|
+
# @example Basic example
|
296
|
+
# require "google/cloud/api_keys/v2"
|
297
|
+
#
|
298
|
+
# # Create a client object. The client can be reused for multiple calls.
|
299
|
+
# client = Google::Cloud::ApiKeys::V2::ApiKeys::Rest::Client.new
|
300
|
+
#
|
301
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
302
|
+
# request = Google::Cloud::ApiKeys::V2::ListKeysRequest.new
|
303
|
+
#
|
304
|
+
# # Call the list_keys method.
|
305
|
+
# result = client.list_keys request
|
306
|
+
#
|
307
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can iterate
|
308
|
+
# # over elements, and API calls will be issued to fetch pages as needed.
|
309
|
+
# result.each do |item|
|
310
|
+
# # Each element is of type ::Google::Cloud::ApiKeys::V2::Key.
|
311
|
+
# p item
|
312
|
+
# end
|
313
|
+
#
|
271
314
|
def list_keys request, options = nil
|
272
315
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
273
316
|
|
@@ -335,6 +378,22 @@ module Google
|
|
335
378
|
# @return [::Google::Cloud::ApiKeys::V2::Key]
|
336
379
|
#
|
337
380
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
381
|
+
#
|
382
|
+
# @example Basic example
|
383
|
+
# require "google/cloud/api_keys/v2"
|
384
|
+
#
|
385
|
+
# # Create a client object. The client can be reused for multiple calls.
|
386
|
+
# client = Google::Cloud::ApiKeys::V2::ApiKeys::Rest::Client.new
|
387
|
+
#
|
388
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
389
|
+
# request = Google::Cloud::ApiKeys::V2::GetKeyRequest.new
|
390
|
+
#
|
391
|
+
# # Call the get_key method.
|
392
|
+
# result = client.get_key request
|
393
|
+
#
|
394
|
+
# # The returned object is of type Google::Cloud::ApiKeys::V2::Key.
|
395
|
+
# p result
|
396
|
+
#
|
338
397
|
def get_key request, options = nil
|
339
398
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
340
399
|
|
@@ -400,6 +459,22 @@ module Google
|
|
400
459
|
# @return [::Google::Cloud::ApiKeys::V2::GetKeyStringResponse]
|
401
460
|
#
|
402
461
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
462
|
+
#
|
463
|
+
# @example Basic example
|
464
|
+
# require "google/cloud/api_keys/v2"
|
465
|
+
#
|
466
|
+
# # Create a client object. The client can be reused for multiple calls.
|
467
|
+
# client = Google::Cloud::ApiKeys::V2::ApiKeys::Rest::Client.new
|
468
|
+
#
|
469
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
470
|
+
# request = Google::Cloud::ApiKeys::V2::GetKeyStringRequest.new
|
471
|
+
#
|
472
|
+
# # Call the get_key_string method.
|
473
|
+
# result = client.get_key_string request
|
474
|
+
#
|
475
|
+
# # The returned object is of type Google::Cloud::ApiKeys::V2::GetKeyStringResponse.
|
476
|
+
# p result
|
477
|
+
#
|
403
478
|
def get_key_string request, options = nil
|
404
479
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
405
480
|
|
@@ -476,6 +551,29 @@ module Google
|
|
476
551
|
# @return [::Gapic::Operation]
|
477
552
|
#
|
478
553
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
554
|
+
#
|
555
|
+
# @example Basic example
|
556
|
+
# require "google/cloud/api_keys/v2"
|
557
|
+
#
|
558
|
+
# # Create a client object. The client can be reused for multiple calls.
|
559
|
+
# client = Google::Cloud::ApiKeys::V2::ApiKeys::Rest::Client.new
|
560
|
+
#
|
561
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
562
|
+
# request = Google::Cloud::ApiKeys::V2::UpdateKeyRequest.new
|
563
|
+
#
|
564
|
+
# # Call the update_key method.
|
565
|
+
# result = client.update_key request
|
566
|
+
#
|
567
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
568
|
+
# # check the status of an operation, cancel it, or wait for results.
|
569
|
+
# # Here is how to wait for a response.
|
570
|
+
# result.wait_until_done! timeout: 60
|
571
|
+
# if result.response?
|
572
|
+
# p result.response
|
573
|
+
# else
|
574
|
+
# puts "No response received."
|
575
|
+
# end
|
576
|
+
#
|
479
577
|
def update_key request, options = nil
|
480
578
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
481
579
|
|
@@ -546,6 +644,29 @@ module Google
|
|
546
644
|
# @return [::Gapic::Operation]
|
547
645
|
#
|
548
646
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
647
|
+
#
|
648
|
+
# @example Basic example
|
649
|
+
# require "google/cloud/api_keys/v2"
|
650
|
+
#
|
651
|
+
# # Create a client object. The client can be reused for multiple calls.
|
652
|
+
# client = Google::Cloud::ApiKeys::V2::ApiKeys::Rest::Client.new
|
653
|
+
#
|
654
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
655
|
+
# request = Google::Cloud::ApiKeys::V2::DeleteKeyRequest.new
|
656
|
+
#
|
657
|
+
# # Call the delete_key method.
|
658
|
+
# result = client.delete_key request
|
659
|
+
#
|
660
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
661
|
+
# # check the status of an operation, cancel it, or wait for results.
|
662
|
+
# # Here is how to wait for a response.
|
663
|
+
# result.wait_until_done! timeout: 60
|
664
|
+
# if result.response?
|
665
|
+
# p result.response
|
666
|
+
# else
|
667
|
+
# puts "No response received."
|
668
|
+
# end
|
669
|
+
#
|
549
670
|
def delete_key request, options = nil
|
550
671
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
551
672
|
|
@@ -612,6 +733,29 @@ module Google
|
|
612
733
|
# @return [::Gapic::Operation]
|
613
734
|
#
|
614
735
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
736
|
+
#
|
737
|
+
# @example Basic example
|
738
|
+
# require "google/cloud/api_keys/v2"
|
739
|
+
#
|
740
|
+
# # Create a client object. The client can be reused for multiple calls.
|
741
|
+
# client = Google::Cloud::ApiKeys::V2::ApiKeys::Rest::Client.new
|
742
|
+
#
|
743
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
744
|
+
# request = Google::Cloud::ApiKeys::V2::UndeleteKeyRequest.new
|
745
|
+
#
|
746
|
+
# # Call the undelete_key method.
|
747
|
+
# result = client.undelete_key request
|
748
|
+
#
|
749
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
750
|
+
# # check the status of an operation, cancel it, or wait for results.
|
751
|
+
# # Here is how to wait for a response.
|
752
|
+
# result.wait_until_done! timeout: 60
|
753
|
+
# if result.response?
|
754
|
+
# p result.response
|
755
|
+
# else
|
756
|
+
# puts "No response received."
|
757
|
+
# end
|
758
|
+
#
|
615
759
|
def undelete_key request, options = nil
|
616
760
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
617
761
|
|
@@ -679,6 +823,22 @@ module Google
|
|
679
823
|
# @return [::Google::Cloud::ApiKeys::V2::LookupKeyResponse]
|
680
824
|
#
|
681
825
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
826
|
+
#
|
827
|
+
# @example Basic example
|
828
|
+
# require "google/cloud/api_keys/v2"
|
829
|
+
#
|
830
|
+
# # Create a client object. The client can be reused for multiple calls.
|
831
|
+
# client = Google::Cloud::ApiKeys::V2::ApiKeys::Rest::Client.new
|
832
|
+
#
|
833
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
834
|
+
# request = Google::Cloud::ApiKeys::V2::LookupKeyRequest.new
|
835
|
+
#
|
836
|
+
# # Call the lookup_key method.
|
837
|
+
# result = client.lookup_key request
|
838
|
+
#
|
839
|
+
# # The returned object is of type Google::Cloud::ApiKeys::V2::LookupKeyResponse.
|
840
|
+
# p result
|
841
|
+
#
|
682
842
|
def lookup_key request, options = nil
|
683
843
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
684
844
|
|
@@ -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
|
|
@@ -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-api_keys-v2
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.4.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
|
@@ -219,7 +219,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
219
219
|
- !ruby/object:Gem::Version
|
220
220
|
version: '0'
|
221
221
|
requirements: []
|
222
|
-
rubygems_version: 3.4.
|
222
|
+
rubygems_version: 3.4.19
|
223
223
|
signing_key:
|
224
224
|
specification_version: 4
|
225
225
|
summary: Manages the API keys associated with developer projects.
|