google-identity-access_context_manager-v1 0.3.0 → 0.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.md +3 -3
- data/lib/google/identity/access_context_manager/v1/access_context_manager/client.rb +78 -86
- data/lib/google/identity/access_context_manager/v1/access_context_manager/operations.rb +14 -16
- data/lib/google/identity/access_context_manager/v1/access_context_manager/rest/client.rb +2467 -0
- data/lib/google/identity/access_context_manager/v1/access_context_manager/rest/operations.rb +793 -0
- data/lib/google/identity/access_context_manager/v1/access_context_manager/rest/service_stub.rb +1608 -0
- data/lib/google/identity/access_context_manager/v1/access_context_manager/rest.rb +63 -0
- data/lib/google/identity/access_context_manager/v1/access_context_manager.rb +7 -1
- data/lib/google/identity/access_context_manager/v1/rest.rb +37 -0
- data/lib/google/identity/access_context_manager/v1/version.rb +1 -1
- data/lib/google/identity/access_context_manager/v1.rb +7 -2
- data/lib/google/identity/accesscontextmanager/type/device_resources_pb.rb +24 -22
- data/lib/google/identity/accesscontextmanager/v1/access_context_manager_pb.rb +29 -123
- data/lib/google/identity/accesscontextmanager/v1/access_level_pb.rb +26 -44
- data/lib/google/identity/accesscontextmanager/v1/access_policy_pb.rb +25 -10
- data/lib/google/identity/accesscontextmanager/v1/gcp_user_access_binding_pb.rb +24 -6
- data/lib/google/identity/accesscontextmanager/v1/service_perimeter_pb.rb +25 -76
- data/proto_docs/google/api/client.rb +381 -0
- data/proto_docs/google/api/launch_stage.rb +71 -0
- data/proto_docs/google/iam/v1/policy.rb +8 -4
- data/proto_docs/google/protobuf/any.rb +7 -4
- data/proto_docs/google/protobuf/timestamp.rb +1 -3
- 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: 5cd0e203be967847e82a081e1c3b47b23f020401053a476715309feec3ece307
|
4
|
+
data.tar.gz: ccfa820e91d9002270b885ae029e0a002e34eda4ec51b64d63c97602405b9b69
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: dd20e0f3e6aff6662d8d4691b08275f008ce485ca58a340d95107a2986c5b780779addc42c91437d2173bbbce0af602b2033a0158bc46c837c0e14cc77761d51
|
7
|
+
data.tar.gz: 866c3ebed250ed28ce16884e74b2df8ee24831a95824038df77fb612869ce92f9560c83c19a1957d08eba4989314e3217e8fadec6bf4f40665a39fbe5b4c1c53
|
data/README.md
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
# Ruby Client for the Access Context Manager V1 API
|
2
2
|
|
3
|
-
API
|
3
|
+
An API for setting attribute based access control to requests to GCP services.
|
4
4
|
|
5
5
|
Access Context Manager allows enterprises to configure access levels which map to a policy defined on request attributes.
|
6
6
|
|
@@ -46,8 +46,8 @@ 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/
|
50
|
-
or a [`Google::Cloud::Logging::Logger`](https://
|
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
|
+
or a [`Google::Cloud::Logging::Logger`](https://cloud.google.com/ruby/docs/reference/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.
|
53
53
|
|
@@ -221,13 +221,11 @@ module Google
|
|
221
221
|
# # Call the list_access_policies method.
|
222
222
|
# result = client.list_access_policies request
|
223
223
|
#
|
224
|
-
# # The returned object is of type Gapic::PagedEnumerable. You can
|
225
|
-
# #
|
226
|
-
#
|
227
|
-
# # methods are also available for managing paging directly.
|
228
|
-
# result.each do |response|
|
224
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can iterate
|
225
|
+
# # over elements, and API calls will be issued to fetch pages as needed.
|
226
|
+
# result.each do |item|
|
229
227
|
# # Each element is of type ::Google::Identity::AccessContextManager::V1::AccessPolicy.
|
230
|
-
# p
|
228
|
+
# p item
|
231
229
|
# end
|
232
230
|
#
|
233
231
|
def list_access_policies request, options = nil
|
@@ -428,14 +426,14 @@ module Google
|
|
428
426
|
# # Call the create_access_policy method.
|
429
427
|
# result = client.create_access_policy request
|
430
428
|
#
|
431
|
-
# # The returned object is of type Gapic::Operation. You can use
|
432
|
-
# #
|
433
|
-
# #
|
429
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
430
|
+
# # check the status of an operation, cancel it, or wait for results.
|
431
|
+
# # Here is how to wait for a response.
|
434
432
|
# result.wait_until_done! timeout: 60
|
435
433
|
# if result.response?
|
436
434
|
# p result.response
|
437
435
|
# else
|
438
|
-
# puts "
|
436
|
+
# puts "No response received."
|
439
437
|
# end
|
440
438
|
#
|
441
439
|
def create_access_policy request, options = nil
|
@@ -520,14 +518,14 @@ module Google
|
|
520
518
|
# # Call the update_access_policy method.
|
521
519
|
# result = client.update_access_policy request
|
522
520
|
#
|
523
|
-
# # The returned object is of type Gapic::Operation. You can use
|
524
|
-
# #
|
525
|
-
# #
|
521
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
522
|
+
# # check the status of an operation, cancel it, or wait for results.
|
523
|
+
# # Here is how to wait for a response.
|
526
524
|
# result.wait_until_done! timeout: 60
|
527
525
|
# if result.response?
|
528
526
|
# p result.response
|
529
527
|
# else
|
530
|
-
# puts "
|
528
|
+
# puts "No response received."
|
531
529
|
# end
|
532
530
|
#
|
533
531
|
def update_access_policy request, options = nil
|
@@ -619,14 +617,14 @@ module Google
|
|
619
617
|
# # Call the delete_access_policy method.
|
620
618
|
# result = client.delete_access_policy request
|
621
619
|
#
|
622
|
-
# # The returned object is of type Gapic::Operation. You can use
|
623
|
-
# #
|
624
|
-
# #
|
620
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
621
|
+
# # check the status of an operation, cancel it, or wait for results.
|
622
|
+
# # Here is how to wait for a response.
|
625
623
|
# result.wait_until_done! timeout: 60
|
626
624
|
# if result.response?
|
627
625
|
# p result.response
|
628
626
|
# else
|
629
|
-
# puts "
|
627
|
+
# puts "No response received."
|
630
628
|
# end
|
631
629
|
#
|
632
630
|
def delete_access_policy request, options = nil
|
@@ -730,13 +728,11 @@ module Google
|
|
730
728
|
# # Call the list_access_levels method.
|
731
729
|
# result = client.list_access_levels request
|
732
730
|
#
|
733
|
-
# # The returned object is of type Gapic::PagedEnumerable. You can
|
734
|
-
# #
|
735
|
-
#
|
736
|
-
# # methods are also available for managing paging directly.
|
737
|
-
# result.each do |response|
|
731
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can iterate
|
732
|
+
# # over elements, and API calls will be issued to fetch pages as needed.
|
733
|
+
# result.each do |item|
|
738
734
|
# # Each element is of type ::Google::Identity::AccessContextManager::V1::AccessLevel.
|
739
|
-
# p
|
735
|
+
# p item
|
740
736
|
# end
|
741
737
|
#
|
742
738
|
def list_access_levels request, options = nil
|
@@ -937,14 +933,14 @@ module Google
|
|
937
933
|
# # Call the create_access_level method.
|
938
934
|
# result = client.create_access_level request
|
939
935
|
#
|
940
|
-
# # The returned object is of type Gapic::Operation. You can use
|
941
|
-
# #
|
942
|
-
# #
|
936
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
937
|
+
# # check the status of an operation, cancel it, or wait for results.
|
938
|
+
# # Here is how to wait for a response.
|
943
939
|
# result.wait_until_done! timeout: 60
|
944
940
|
# if result.response?
|
945
941
|
# p result.response
|
946
942
|
# else
|
947
|
-
# puts "
|
943
|
+
# puts "No response received."
|
948
944
|
# end
|
949
945
|
#
|
950
946
|
def create_access_level request, options = nil
|
@@ -1043,14 +1039,14 @@ module Google
|
|
1043
1039
|
# # Call the update_access_level method.
|
1044
1040
|
# result = client.update_access_level request
|
1045
1041
|
#
|
1046
|
-
# # The returned object is of type Gapic::Operation. You can use
|
1047
|
-
# #
|
1048
|
-
# #
|
1042
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
1043
|
+
# # check the status of an operation, cancel it, or wait for results.
|
1044
|
+
# # Here is how to wait for a response.
|
1049
1045
|
# result.wait_until_done! timeout: 60
|
1050
1046
|
# if result.response?
|
1051
1047
|
# p result.response
|
1052
1048
|
# else
|
1053
|
-
# puts "
|
1049
|
+
# puts "No response received."
|
1054
1050
|
# end
|
1055
1051
|
#
|
1056
1052
|
def update_access_level request, options = nil
|
@@ -1145,14 +1141,14 @@ module Google
|
|
1145
1141
|
# # Call the delete_access_level method.
|
1146
1142
|
# result = client.delete_access_level request
|
1147
1143
|
#
|
1148
|
-
# # The returned object is of type Gapic::Operation. You can use
|
1149
|
-
# #
|
1150
|
-
# #
|
1144
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
1145
|
+
# # check the status of an operation, cancel it, or wait for results.
|
1146
|
+
# # Here is how to wait for a response.
|
1151
1147
|
# result.wait_until_done! timeout: 60
|
1152
1148
|
# if result.response?
|
1153
1149
|
# p result.response
|
1154
1150
|
# else
|
1155
|
-
# puts "
|
1151
|
+
# puts "No response received."
|
1156
1152
|
# end
|
1157
1153
|
#
|
1158
1154
|
def delete_access_level request, options = nil
|
@@ -1273,14 +1269,14 @@ module Google
|
|
1273
1269
|
# # Call the replace_access_levels method.
|
1274
1270
|
# result = client.replace_access_levels request
|
1275
1271
|
#
|
1276
|
-
# # The returned object is of type Gapic::Operation. You can use
|
1277
|
-
# #
|
1278
|
-
# #
|
1272
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
1273
|
+
# # check the status of an operation, cancel it, or wait for results.
|
1274
|
+
# # Here is how to wait for a response.
|
1279
1275
|
# result.wait_until_done! timeout: 60
|
1280
1276
|
# if result.response?
|
1281
1277
|
# p result.response
|
1282
1278
|
# else
|
1283
|
-
# puts "
|
1279
|
+
# puts "No response received."
|
1284
1280
|
# end
|
1285
1281
|
#
|
1286
1282
|
def replace_access_levels request, options = nil
|
@@ -1380,13 +1376,11 @@ module Google
|
|
1380
1376
|
# # Call the list_service_perimeters method.
|
1381
1377
|
# result = client.list_service_perimeters request
|
1382
1378
|
#
|
1383
|
-
# # The returned object is of type Gapic::PagedEnumerable. You can
|
1384
|
-
# #
|
1385
|
-
#
|
1386
|
-
# # methods are also available for managing paging directly.
|
1387
|
-
# result.each do |response|
|
1379
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can iterate
|
1380
|
+
# # over elements, and API calls will be issued to fetch pages as needed.
|
1381
|
+
# result.each do |item|
|
1388
1382
|
# # Each element is of type ::Google::Identity::AccessContextManager::V1::ServicePerimeter.
|
1389
|
-
# p
|
1383
|
+
# p item
|
1390
1384
|
# end
|
1391
1385
|
#
|
1392
1386
|
def list_service_perimeters request, options = nil
|
@@ -1579,14 +1573,14 @@ module Google
|
|
1579
1573
|
# # Call the create_service_perimeter method.
|
1580
1574
|
# result = client.create_service_perimeter request
|
1581
1575
|
#
|
1582
|
-
# # The returned object is of type Gapic::Operation. You can use
|
1583
|
-
# #
|
1584
|
-
# #
|
1576
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
1577
|
+
# # check the status of an operation, cancel it, or wait for results.
|
1578
|
+
# # Here is how to wait for a response.
|
1585
1579
|
# result.wait_until_done! timeout: 60
|
1586
1580
|
# if result.response?
|
1587
1581
|
# p result.response
|
1588
1582
|
# else
|
1589
|
-
# puts "
|
1583
|
+
# puts "No response received."
|
1590
1584
|
# end
|
1591
1585
|
#
|
1592
1586
|
def create_service_perimeter request, options = nil
|
@@ -1682,14 +1676,14 @@ module Google
|
|
1682
1676
|
# # Call the update_service_perimeter method.
|
1683
1677
|
# result = client.update_service_perimeter request
|
1684
1678
|
#
|
1685
|
-
# # The returned object is of type Gapic::Operation. You can use
|
1686
|
-
# #
|
1687
|
-
# #
|
1679
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
1680
|
+
# # check the status of an operation, cancel it, or wait for results.
|
1681
|
+
# # Here is how to wait for a response.
|
1688
1682
|
# result.wait_until_done! timeout: 60
|
1689
1683
|
# if result.response?
|
1690
1684
|
# p result.response
|
1691
1685
|
# else
|
1692
|
-
# puts "
|
1686
|
+
# puts "No response received."
|
1693
1687
|
# end
|
1694
1688
|
#
|
1695
1689
|
def update_service_perimeter request, options = nil
|
@@ -1784,14 +1778,14 @@ module Google
|
|
1784
1778
|
# # Call the delete_service_perimeter method.
|
1785
1779
|
# result = client.delete_service_perimeter request
|
1786
1780
|
#
|
1787
|
-
# # The returned object is of type Gapic::Operation. You can use
|
1788
|
-
# #
|
1789
|
-
# #
|
1781
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
1782
|
+
# # check the status of an operation, cancel it, or wait for results.
|
1783
|
+
# # Here is how to wait for a response.
|
1790
1784
|
# result.wait_until_done! timeout: 60
|
1791
1785
|
# if result.response?
|
1792
1786
|
# p result.response
|
1793
1787
|
# else
|
1794
|
-
# puts "
|
1788
|
+
# puts "No response received."
|
1795
1789
|
# end
|
1796
1790
|
#
|
1797
1791
|
def delete_service_perimeter request, options = nil
|
@@ -1908,14 +1902,14 @@ module Google
|
|
1908
1902
|
# # Call the replace_service_perimeters method.
|
1909
1903
|
# result = client.replace_service_perimeters request
|
1910
1904
|
#
|
1911
|
-
# # The returned object is of type Gapic::Operation. You can use
|
1912
|
-
# #
|
1913
|
-
# #
|
1905
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
1906
|
+
# # check the status of an operation, cancel it, or wait for results.
|
1907
|
+
# # Here is how to wait for a response.
|
1914
1908
|
# result.wait_until_done! timeout: 60
|
1915
1909
|
# if result.response?
|
1916
1910
|
# p result.response
|
1917
1911
|
# else
|
1918
|
-
# puts "
|
1912
|
+
# puts "No response received."
|
1919
1913
|
# end
|
1920
1914
|
#
|
1921
1915
|
def replace_service_perimeters request, options = nil
|
@@ -2029,14 +2023,14 @@ module Google
|
|
2029
2023
|
# # Call the commit_service_perimeters method.
|
2030
2024
|
# result = client.commit_service_perimeters request
|
2031
2025
|
#
|
2032
|
-
# # The returned object is of type Gapic::Operation. You can use
|
2033
|
-
# #
|
2034
|
-
# #
|
2026
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
2027
|
+
# # check the status of an operation, cancel it, or wait for results.
|
2028
|
+
# # Here is how to wait for a response.
|
2035
2029
|
# result.wait_until_done! timeout: 60
|
2036
2030
|
# if result.response?
|
2037
2031
|
# p result.response
|
2038
2032
|
# else
|
2039
|
-
# puts "
|
2033
|
+
# puts "No response received."
|
2040
2034
|
# end
|
2041
2035
|
#
|
2042
2036
|
def commit_service_perimeters request, options = nil
|
@@ -2132,13 +2126,11 @@ module Google
|
|
2132
2126
|
# # Call the list_gcp_user_access_bindings method.
|
2133
2127
|
# result = client.list_gcp_user_access_bindings request
|
2134
2128
|
#
|
2135
|
-
# # The returned object is of type Gapic::PagedEnumerable. You can
|
2136
|
-
# #
|
2137
|
-
#
|
2138
|
-
# # methods are also available for managing paging directly.
|
2139
|
-
# result.each do |response|
|
2129
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can iterate
|
2130
|
+
# # over elements, and API calls will be issued to fetch pages as needed.
|
2131
|
+
# result.each do |item|
|
2140
2132
|
# # Each element is of type ::Google::Identity::AccessContextManager::V1::GcpUserAccessBinding.
|
2141
|
-
# p
|
2133
|
+
# p item
|
2142
2134
|
# end
|
2143
2135
|
#
|
2144
2136
|
def list_gcp_user_access_bindings request, options = nil
|
@@ -2323,14 +2315,14 @@ module Google
|
|
2323
2315
|
# # Call the create_gcp_user_access_binding method.
|
2324
2316
|
# result = client.create_gcp_user_access_binding request
|
2325
2317
|
#
|
2326
|
-
# # The returned object is of type Gapic::Operation. You can use
|
2327
|
-
# #
|
2328
|
-
# #
|
2318
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
2319
|
+
# # check the status of an operation, cancel it, or wait for results.
|
2320
|
+
# # Here is how to wait for a response.
|
2329
2321
|
# result.wait_until_done! timeout: 60
|
2330
2322
|
# if result.response?
|
2331
2323
|
# p result.response
|
2332
2324
|
# else
|
2333
|
-
# puts "
|
2325
|
+
# puts "No response received."
|
2334
2326
|
# end
|
2335
2327
|
#
|
2336
2328
|
def create_gcp_user_access_binding request, options = nil
|
@@ -2428,14 +2420,14 @@ module Google
|
|
2428
2420
|
# # Call the update_gcp_user_access_binding method.
|
2429
2421
|
# result = client.update_gcp_user_access_binding request
|
2430
2422
|
#
|
2431
|
-
# # The returned object is of type Gapic::Operation. You can use
|
2432
|
-
# #
|
2433
|
-
# #
|
2423
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
2424
|
+
# # check the status of an operation, cancel it, or wait for results.
|
2425
|
+
# # Here is how to wait for a response.
|
2434
2426
|
# result.wait_until_done! timeout: 60
|
2435
2427
|
# if result.response?
|
2436
2428
|
# p result.response
|
2437
2429
|
# else
|
2438
|
-
# puts "
|
2430
|
+
# puts "No response received."
|
2439
2431
|
# end
|
2440
2432
|
#
|
2441
2433
|
def update_gcp_user_access_binding request, options = nil
|
@@ -2525,14 +2517,14 @@ module Google
|
|
2525
2517
|
# # Call the delete_gcp_user_access_binding method.
|
2526
2518
|
# result = client.delete_gcp_user_access_binding request
|
2527
2519
|
#
|
2528
|
-
# # The returned object is of type Gapic::Operation. You can use
|
2529
|
-
# #
|
2530
|
-
# #
|
2520
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
2521
|
+
# # check the status of an operation, cancel it, or wait for results.
|
2522
|
+
# # Here is how to wait for a response.
|
2531
2523
|
# result.wait_until_done! timeout: 60
|
2532
2524
|
# if result.response?
|
2533
2525
|
# p result.response
|
2534
2526
|
# else
|
2535
|
-
# puts "
|
2527
|
+
# puts "No response received."
|
2536
2528
|
# end
|
2537
2529
|
#
|
2538
2530
|
def delete_gcp_user_access_binding request, options = nil
|
@@ -2903,9 +2895,9 @@ module Google
|
|
2903
2895
|
# * (`String`) The path to a service account key file in JSON format
|
2904
2896
|
# * (`Hash`) A service account key as a Hash
|
2905
2897
|
# * (`Google::Auth::Credentials`) A googleauth credentials object
|
2906
|
-
# (see the [googleauth docs](https://
|
2898
|
+
# (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials))
|
2907
2899
|
# * (`Signet::OAuth2::Client`) A signet oauth2 client object
|
2908
|
-
# (see the [signet docs](https://
|
2900
|
+
# (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client))
|
2909
2901
|
# * (`GRPC::Core::Channel`) a gRPC channel with included credentials
|
2910
2902
|
# * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object
|
2911
2903
|
# * (`nil`) indicating no credentials
|
@@ -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
|
@@ -622,9 +620,9 @@ module Google
|
|
622
620
|
# * (`String`) The path to a service account key file in JSON format
|
623
621
|
# * (`Hash`) A service account key as a Hash
|
624
622
|
# * (`Google::Auth::Credentials`) A googleauth credentials object
|
625
|
-
# (see the [googleauth docs](https://
|
623
|
+
# (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials))
|
626
624
|
# * (`Signet::OAuth2::Client`) A signet oauth2 client object
|
627
|
-
# (see the [signet docs](https://
|
625
|
+
# (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client))
|
628
626
|
# * (`GRPC::Core::Channel`) a gRPC channel with included credentials
|
629
627
|
# * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object
|
630
628
|
# * (`nil`) indicating no credentials
|