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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 6b843370e1934e600ca5527e0319833bb5ca5611666c7857dfbf62efecf89fe1
4
- data.tar.gz: f857479d7b7b813e65bc8d50a3b507c165255f5b4d824eb67186824305c48eb2
3
+ metadata.gz: 866bdde7d2fce0e0297f26e30396e0d4c06a4bc1b7fcb4aef84cbda811786697
4
+ data.tar.gz: 4db2f1e92af9596dc14cee14f064effb267862063ae818c0c749647bd3e57db8
5
5
  SHA512:
6
- metadata.gz: 8d6d01a435b30ff239d0ceff9789e309abed00fa706cb936eabe4456497cdd0bd71cf078bbd6083d9b06901a118650fab0af5d2f92b6ead31178d789d54ca845
7
- data.tar.gz: e596a17f021ed49b47891eea55dd9edb53be0a64de1e4b9904c59af3e0f0cd12478c749d1df26ba95c13d384b82bdd2f4d4c8c88b68c8fc7dcd7cebdde76fb89
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
- API Client library for the API Keys V2 API
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/stdlib/libdoc/logger/rdoc/Logger.html) as shown below,
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 this
221
- # # object to check the status of an operation, cancel it, or wait
222
- # # for results. Here is how to block until completion:
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 "Error!"
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
- # # iterate over all elements by calling #each, and the enumerable
326
- # # will lazily make API calls to fetch subsequent pages. Other
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 response
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 this
608
- # # object to check the status of an operation, cancel it, or wait
609
- # # for results. Here is how to block until completion:
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 "Error!"
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 this
708
- # # object to check the status of an operation, cancel it, or wait
709
- # # for results. Here is how to block until completion:
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 "Error!"
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 this
804
- # # object to check the status of an operation, cancel it, or wait
805
- # # for results. Here is how to block until completion:
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 "Error!"
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
- # # iterate over all elements by calling #each, and the enumerable
163
- # # will lazily make API calls to fetch subsequent pages. Other
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 response
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 this
257
- # # object to check the status of an operation, cancel it, or wait
258
- # # for results. Here is how to block until completion:
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 "Error!"
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 this
544
- # # object to check the status of an operation, cancel it, or wait
545
- # # for results. Here is how to block until completion:
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 "Error!"
548
+ # puts "No response received."
551
549
  # end
552
550
  #
553
551
  def wait_operation request, options = nil