google-iam-v2 0.1.2 → 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: cb12b73a349a06a612995c883e233d384a430b863119c28a091f62b71c4e0fb0
4
- data.tar.gz: 5fbc18ae37f04ee7592e8cef8e12321b2073faae11914926fd511cb15b05edf5
3
+ metadata.gz: 248f01be8988d929513f8f65649eec51ad0b1bf2f0c1ac01b22c0fba699bcb99
4
+ data.tar.gz: c8f5fc37fbad07720f0c346817d91c3bdb13102a61a59ce8e646e5c2b8fb1bc7
5
5
  SHA512:
6
- metadata.gz: c6da52bedac31f9f1e45dddfb1883c5c30a579ae71242c778de6722676c1cb8d86380247a6ba3386a9f0b539adfaf1d78688d49fc37d1f8dd491c5d04d1a4cf9
7
- data.tar.gz: 126fa95f60b79b43260b4fdc382a4d1ab6829a09f6145b6ae48fbab71745025446a8b8a048bf8a73aadd24a7b278fad72fb434586d6d00786e176eb3954b5144
6
+ metadata.gz: d5ec858cfbab3a6f4cee3503b5dab026dfe79686153fdf1de62f1eeb7dd4236e2f8355f40af5f95c8c16f6c937ff5b1ad99d5d4ca7c5b3d10b888507ad9440fb
7
+ data.tar.gz: b467614d3f14d083937af9edbe22759f847952c38c6e8d2593e9d30d5576cfb45fb26e5fc227aab736d0cea511abb0e0577de61a623befc60d47fe301d3365ea
data/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # Ruby Client for the IAM V2 API
2
2
 
3
- API Client library for the IAM V2 API
3
+ Manages identity and access control for Google Cloud Platform resources, including the creation of service accounts, which you can use to authenticate to Google and make API calls.
4
4
 
5
5
  Manages identity and access control policies for Google Cloud Platform resources.
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.
@@ -241,13 +241,11 @@ module Google
241
241
  # # Call the list_policies method.
242
242
  # result = client.list_policies request
243
243
  #
244
- # # The returned object is of type Gapic::PagedEnumerable. You can
245
- # # iterate over all elements by calling #each, and the enumerable
246
- # # will lazily make API calls to fetch subsequent pages. Other
247
- # # methods are also available for managing paging directly.
248
- # result.each do |response|
244
+ # # The returned object is of type Gapic::PagedEnumerable. You can iterate
245
+ # # over elements, and API calls will be issued to fetch pages as needed.
246
+ # result.each do |item|
249
247
  # # Each element is of type ::Google::Iam::V2::Policy.
250
- # p response
248
+ # p item
251
249
  # end
252
250
  #
253
251
  def list_policies request, options = nil
@@ -444,14 +442,14 @@ module Google
444
442
  # # Call the create_policy method.
445
443
  # result = client.create_policy request
446
444
  #
447
- # # The returned object is of type Gapic::Operation. You can use this
448
- # # object to check the status of an operation, cancel it, or wait
449
- # # for results. Here is how to block until completion:
445
+ # # The returned object is of type Gapic::Operation. You can use it to
446
+ # # check the status of an operation, cancel it, or wait for results.
447
+ # # Here is how to wait for a response.
450
448
  # result.wait_until_done! timeout: 60
451
449
  # if result.response?
452
450
  # p result.response
453
451
  # else
454
- # puts "Error!"
452
+ # puts "No response received."
455
453
  # end
456
454
  #
457
455
  def create_policy request, options = nil
@@ -551,14 +549,14 @@ module Google
551
549
  # # Call the update_policy method.
552
550
  # result = client.update_policy request
553
551
  #
554
- # # The returned object is of type Gapic::Operation. You can use this
555
- # # object to check the status of an operation, cancel it, or wait
556
- # # for results. Here is how to block until completion:
552
+ # # The returned object is of type Gapic::Operation. You can use it to
553
+ # # check the status of an operation, cancel it, or wait for results.
554
+ # # Here is how to wait for a response.
557
555
  # result.wait_until_done! timeout: 60
558
556
  # if result.response?
559
557
  # p result.response
560
558
  # else
561
- # puts "Error!"
559
+ # puts "No response received."
562
560
  # end
563
561
  #
564
562
  def update_policy request, options = nil
@@ -660,14 +658,14 @@ module Google
660
658
  # # Call the delete_policy method.
661
659
  # result = client.delete_policy request
662
660
  #
663
- # # The returned object is of type Gapic::Operation. You can use this
664
- # # object to check the status of an operation, cancel it, or wait
665
- # # for results. Here is how to block until completion:
661
+ # # The returned object is of type Gapic::Operation. You can use it to
662
+ # # check the status of an operation, cancel it, or wait for results.
663
+ # # Here is how to wait for a response.
666
664
  # result.wait_until_done! timeout: 60
667
665
  # if result.response?
668
666
  # p result.response
669
667
  # else
670
- # puts "Error!"
668
+ # puts "No response received."
671
669
  # end
672
670
  #
673
671
  def delete_policy request, options = nil
@@ -157,13 +157,11 @@ module Google
157
157
  # # Call the list_operations method.
158
158
  # result = client.list_operations request
159
159
  #
160
- # # The returned object is of type Gapic::PagedEnumerable. You can
161
- # # iterate over all elements by calling #each, and the enumerable
162
- # # will lazily make API calls to fetch subsequent pages. Other
163
- # # methods are also available for managing paging directly.
164
- # result.each do |response|
160
+ # # The returned object is of type Gapic::PagedEnumerable. You can iterate
161
+ # # over elements, and API calls will be issued to fetch pages as needed.
162
+ # result.each do |item|
165
163
  # # Each element is of type ::Google::Longrunning::Operation.
166
- # p response
164
+ # p item
167
165
  # end
168
166
  #
169
167
  def list_operations request, options = nil
@@ -252,14 +250,14 @@ module Google
252
250
  # # Call the get_operation method.
253
251
  # result = client.get_operation request
254
252
  #
255
- # # The returned object is of type Gapic::Operation. You can use this
256
- # # object to check the status of an operation, cancel it, or wait
257
- # # for results. Here is how to block until completion:
253
+ # # The returned object is of type Gapic::Operation. You can use it to
254
+ # # check the status of an operation, cancel it, or wait for results.
255
+ # # Here is how to wait for a response.
258
256
  # result.wait_until_done! timeout: 60
259
257
  # if result.response?
260
258
  # p result.response
261
259
  # else
262
- # puts "Error!"
260
+ # puts "No response received."
263
261
  # end
264
262
  #
265
263
  def get_operation request, options = nil
@@ -539,14 +537,14 @@ module Google
539
537
  # # Call the wait_operation method.
540
538
  # result = client.wait_operation request
541
539
  #
542
- # # The returned object is of type Gapic::Operation. You can use this
543
- # # object to check the status of an operation, cancel it, or wait
544
- # # for results. Here is how to block until completion:
540
+ # # The returned object is of type Gapic::Operation. You can use it to
541
+ # # check the status of an operation, cancel it, or wait for results.
542
+ # # Here is how to wait for a response.
545
543
  # result.wait_until_done! timeout: 60
546
544
  # if result.response?
547
545
  # p result.response
548
546
  # else
549
- # puts "Error!"
547
+ # puts "No response received."
550
548
  # end
551
549
  #
552
550
  def wait_operation request, options = nil