google-cloud-api_keys-v2 0.1.0 → 0.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/AUTHENTICATION.md +1 -1
- data/README.md +2 -2
- data/lib/google/cloud/api_keys/v2/api_keys/client.rb +20 -22
- data/lib/google/cloud/api_keys/v2/api_keys/operations.rb +12 -14
- data/lib/google/cloud/api_keys/v2/api_keys/rest/client.rb +910 -0
- data/lib/google/cloud/api_keys/v2/api_keys/rest/operations.rb +793 -0
- data/lib/google/cloud/api_keys/v2/api_keys/rest/service_stub.rb +521 -0
- data/lib/google/cloud/api_keys/v2/api_keys/rest.rb +53 -0
- data/lib/google/cloud/api_keys/v2/api_keys.rb +7 -1
- data/lib/google/cloud/api_keys/v2/rest.rb +37 -0
- data/lib/google/cloud/api_keys/v2/version.rb +1 -1
- data/lib/google/cloud/api_keys/v2.rb +7 -2
- data/proto_docs/google/api/client.rb +318 -0
- data/proto_docs/google/api/launch_stage.rb +71 -0
- data/proto_docs/google/rpc/status.rb +4 -2
- metadata +15 -8
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 866bdde7d2fce0e0297f26e30396e0d4c06a4bc1b7fcb4aef84cbda811786697
|
4
|
+
data.tar.gz: 4db2f1e92af9596dc14cee14f064effb267862063ae818c0c749647bd3e57db8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 60cecda4324ec89e3addead034b0c39e2ba41811e45a3b8c4099957d9166e926e4e4e0a1183c90df60b0e98d62f5014171147863134071dda3ab98768b5b9f69
|
7
|
+
data.tar.gz: aca297728a099af276ceb63f2a7a4c9ebe1747d6f747f27a4aabe51465f2508f585d3eae613b32442ade33a670a50e7f4f877adad5f9015edc41a1995ab9f1c9
|
data/AUTHENTICATION.md
CHANGED
@@ -112,7 +112,7 @@ credentials are discovered.
|
|
112
112
|
To configure your system for this, simply:
|
113
113
|
|
114
114
|
1. [Download and install the Cloud SDK](https://cloud.google.com/sdk)
|
115
|
-
2. Authenticate using OAuth 2.0 `$ gcloud auth login`
|
115
|
+
2. Authenticate using OAuth 2.0 `$ gcloud auth application-default login`
|
116
116
|
3. Write code as if already authenticated.
|
117
117
|
|
118
118
|
**NOTE:** This is _not_ recommended for running in production. The Cloud SDK
|
data/README.md
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
# Ruby Client for the API Keys V2 API
|
2
2
|
|
3
|
-
|
3
|
+
Manages the API keys associated with developer projects.
|
4
4
|
|
5
5
|
An API key is a simple encrypted string that you can use when calling Google Cloud APIs. The API Keys service manages the API keys associated with developer projects.
|
6
6
|
|
@@ -46,7 +46,7 @@ for general usage information.
|
|
46
46
|
## Enabling Logging
|
47
47
|
|
48
48
|
To enable logging for this library, set the logger for the underlying [gRPC](https://github.com/grpc/grpc/tree/master/src/ruby) library.
|
49
|
-
The logger that you set may be a Ruby stdlib [`Logger`](https://ruby-doc.org/
|
49
|
+
The logger that you set may be a Ruby stdlib [`Logger`](https://ruby-doc.org/current/stdlibs/logger/Logger.html) as shown below,
|
50
50
|
or a [`Google::Cloud::Logging::Logger`](https://googleapis.dev/ruby/google-cloud-logging/latest)
|
51
51
|
that will write logs to [Cloud Logging](https://cloud.google.com/logging/). See [grpc/logconfig.rb](https://github.com/grpc/grpc/blob/master/src/ruby/lib/grpc/logconfig.rb)
|
52
52
|
and the gRPC [spec_helper.rb](https://github.com/grpc/grpc/blob/master/src/ruby/spec/spec_helper.rb) for additional information.
|
@@ -217,14 +217,14 @@ module Google
|
|
217
217
|
# # Call the create_key method.
|
218
218
|
# result = client.create_key request
|
219
219
|
#
|
220
|
-
# # The returned object is of type Gapic::Operation. You can use
|
221
|
-
# #
|
222
|
-
# #
|
220
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
221
|
+
# # check the status of an operation, cancel it, or wait for results.
|
222
|
+
# # Here is how to wait for a response.
|
223
223
|
# result.wait_until_done! timeout: 60
|
224
224
|
# if result.response?
|
225
225
|
# p result.response
|
226
226
|
# else
|
227
|
-
# puts "
|
227
|
+
# puts "No response received."
|
228
228
|
# end
|
229
229
|
#
|
230
230
|
def create_key request, options = nil
|
@@ -321,13 +321,11 @@ module Google
|
|
321
321
|
# # Call the list_keys method.
|
322
322
|
# result = client.list_keys request
|
323
323
|
#
|
324
|
-
# # The returned object is of type Gapic::PagedEnumerable. You can
|
325
|
-
# #
|
326
|
-
#
|
327
|
-
# # methods are also available for managing paging directly.
|
328
|
-
# result.each do |response|
|
324
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can iterate
|
325
|
+
# # over elements, and API calls will be issued to fetch pages as needed.
|
326
|
+
# result.each do |item|
|
329
327
|
# # Each element is of type ::Google::Cloud::ApiKeys::V2::Key.
|
330
|
-
# p
|
328
|
+
# p item
|
331
329
|
# end
|
332
330
|
#
|
333
331
|
def list_keys request, options = nil
|
@@ -604,14 +602,14 @@ module Google
|
|
604
602
|
# # Call the update_key method.
|
605
603
|
# result = client.update_key request
|
606
604
|
#
|
607
|
-
# # The returned object is of type Gapic::Operation. You can use
|
608
|
-
# #
|
609
|
-
# #
|
605
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
606
|
+
# # check the status of an operation, cancel it, or wait for results.
|
607
|
+
# # Here is how to wait for a response.
|
610
608
|
# result.wait_until_done! timeout: 60
|
611
609
|
# if result.response?
|
612
610
|
# p result.response
|
613
611
|
# else
|
614
|
-
# puts "
|
612
|
+
# puts "No response received."
|
615
613
|
# end
|
616
614
|
#
|
617
615
|
def update_key request, options = nil
|
@@ -704,14 +702,14 @@ module Google
|
|
704
702
|
# # Call the delete_key method.
|
705
703
|
# result = client.delete_key request
|
706
704
|
#
|
707
|
-
# # The returned object is of type Gapic::Operation. You can use
|
708
|
-
# #
|
709
|
-
# #
|
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.
|
710
708
|
# result.wait_until_done! timeout: 60
|
711
709
|
# if result.response?
|
712
710
|
# p result.response
|
713
711
|
# else
|
714
|
-
# puts "
|
712
|
+
# puts "No response received."
|
715
713
|
# end
|
716
714
|
#
|
717
715
|
def delete_key request, options = nil
|
@@ -800,14 +798,14 @@ module Google
|
|
800
798
|
# # Call the undelete_key method.
|
801
799
|
# result = client.undelete_key request
|
802
800
|
#
|
803
|
-
# # The returned object is of type Gapic::Operation. You can use
|
804
|
-
# #
|
805
|
-
# #
|
801
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
802
|
+
# # check the status of an operation, cancel it, or wait for results.
|
803
|
+
# # Here is how to wait for a response.
|
806
804
|
# result.wait_until_done! timeout: 60
|
807
805
|
# if result.response?
|
808
806
|
# p result.response
|
809
807
|
# else
|
810
|
-
# puts "
|
808
|
+
# puts "No response received."
|
811
809
|
# end
|
812
810
|
#
|
813
811
|
def undelete_key request, options = nil
|
@@ -158,13 +158,11 @@ module Google
|
|
158
158
|
# # Call the list_operations method.
|
159
159
|
# result = client.list_operations request
|
160
160
|
#
|
161
|
-
# # The returned object is of type Gapic::PagedEnumerable. You can
|
162
|
-
# #
|
163
|
-
#
|
164
|
-
# # methods are also available for managing paging directly.
|
165
|
-
# result.each do |response|
|
161
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can iterate
|
162
|
+
# # over elements, and API calls will be issued to fetch pages as needed.
|
163
|
+
# result.each do |item|
|
166
164
|
# # Each element is of type ::Google::Longrunning::Operation.
|
167
|
-
# p
|
165
|
+
# p item
|
168
166
|
# end
|
169
167
|
#
|
170
168
|
def list_operations request, options = nil
|
@@ -253,14 +251,14 @@ module Google
|
|
253
251
|
# # Call the get_operation method.
|
254
252
|
# result = client.get_operation request
|
255
253
|
#
|
256
|
-
# # The returned object is of type Gapic::Operation. You can use
|
257
|
-
# #
|
258
|
-
# #
|
254
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
255
|
+
# # check the status of an operation, cancel it, or wait for results.
|
256
|
+
# # Here is how to wait for a response.
|
259
257
|
# result.wait_until_done! timeout: 60
|
260
258
|
# if result.response?
|
261
259
|
# p result.response
|
262
260
|
# else
|
263
|
-
# puts "
|
261
|
+
# puts "No response received."
|
264
262
|
# end
|
265
263
|
#
|
266
264
|
def get_operation request, options = nil
|
@@ -540,14 +538,14 @@ module Google
|
|
540
538
|
# # Call the wait_operation method.
|
541
539
|
# result = client.wait_operation request
|
542
540
|
#
|
543
|
-
# # The returned object is of type Gapic::Operation. You can use
|
544
|
-
# #
|
545
|
-
# #
|
541
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
542
|
+
# # check the status of an operation, cancel it, or wait for results.
|
543
|
+
# # Here is how to wait for a response.
|
546
544
|
# result.wait_until_done! timeout: 60
|
547
545
|
# if result.response?
|
548
546
|
# p result.response
|
549
547
|
# else
|
550
|
-
# puts "
|
548
|
+
# puts "No response received."
|
551
549
|
# end
|
552
550
|
#
|
553
551
|
def wait_operation request, options = nil
|