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 +4 -4
- data/README.md +2 -2
- data/lib/google/iam/v2/policies/client.rb +16 -18
- data/lib/google/iam/v2/policies/operations.rb +12 -14
- data/lib/google/iam/v2/policies/rest/client.rb +735 -0
- data/lib/google/iam/v2/policies/rest/operations.rb +791 -0
- data/lib/google/iam/v2/policies/rest/service_stub.rb +343 -0
- data/lib/google/iam/v2/policies/rest.rb +50 -0
- data/lib/google/iam/v2/policies.rb +7 -1
- data/lib/google/iam/v2/rest.rb +35 -0
- data/lib/google/iam/v2/version.rb +1 -1
- data/lib/google/iam/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 +17 -8
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 248f01be8988d929513f8f65649eec51ad0b1bf2f0c1ac01b22c0fba699bcb99
|
4
|
+
data.tar.gz: c8f5fc37fbad07720f0c346817d91c3bdb13102a61a59ce8e646e5c2b8fb1bc7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
-
|
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/
|
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
|
-
# #
|
246
|
-
#
|
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
|
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
|
448
|
-
# #
|
449
|
-
# #
|
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 "
|
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
|
555
|
-
# #
|
556
|
-
# #
|
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 "
|
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
|
664
|
-
# #
|
665
|
-
# #
|
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 "
|
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
|
-
# #
|
162
|
-
#
|
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
|
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
|
256
|
-
# #
|
257
|
-
# #
|
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 "
|
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
|
543
|
-
# #
|
544
|
-
# #
|
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 "
|
547
|
+
# puts "No response received."
|
550
548
|
# end
|
551
549
|
#
|
552
550
|
def wait_operation request, options = nil
|