google-identity-access_context_manager-v1 0.3.0 → 0.4.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: 4cd39714c988eb018b3766d4cba3021786997a95bb57785b4fc4eb7e420d0f97
4
- data.tar.gz: 2716d6a822bddc048fb0072dce17316690fdacd3650ae7a546bbbb2f0f28a459
3
+ metadata.gz: 7b4375b6ac8b79380b9bc8b7ee7ff9fdd0a2c5050dde43613a636fe5443c54ef
4
+ data.tar.gz: 1e28d91d9656fe1690b9d4e48b07b6bb222ea337a15e8c4b9c187c74bf06a666
5
5
  SHA512:
6
- metadata.gz: f3dd5d90b72d2796609789dfc76130393349627e86a8605a61d3dc9bb7e189f56fce307480669dd3bb1cd7aa5fdbba1c4d78c762b9e8eaf00ff63502a332636a
7
- data.tar.gz: 5157943941bfa549d3df5942c8f4a491fa7a54defaa08ae32f6cef79d71ad6ffb8f3fa4da115ec00ce42d8086cc4a9d7eb2117d658970d5509cee49d1c72834d
6
+ metadata.gz: 6e9338a69481679217d8454a5c6f964705fc3a2081aa7d3d7a15667c1cfdec0c10f28ee25fab9d71ff182f9c9fdbb280e24fd222a88ed8e34123dad8b878ca49
7
+ data.tar.gz: 8d527b22638d53be3a37a9e6c1500f179c8ce1c38cf1a849cc30857c0b68824cb7b9cdd65b4d72e20000f0b7f883da080c03026d5d20713ba83b07c048f99ea3
data/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # Ruby Client for the Access Context Manager V1 API
2
2
 
3
- API Client library for the Access Context Manager V1 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,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.
@@ -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
- # # iterate over all elements by calling #each, and the enumerable
226
- # # will lazily make API calls to fetch subsequent pages. Other
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 response
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 this
432
- # # object to check the status of an operation, cancel it, or wait
433
- # # for results. Here is how to block until completion:
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 "Error!"
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 this
524
- # # object to check the status of an operation, cancel it, or wait
525
- # # for results. Here is how to block until completion:
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 "Error!"
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 this
623
- # # object to check the status of an operation, cancel it, or wait
624
- # # for results. Here is how to block until completion:
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 "Error!"
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
- # # iterate over all elements by calling #each, and the enumerable
735
- # # will lazily make API calls to fetch subsequent pages. Other
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 response
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 this
941
- # # object to check the status of an operation, cancel it, or wait
942
- # # for results. Here is how to block until completion:
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 "Error!"
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 this
1047
- # # object to check the status of an operation, cancel it, or wait
1048
- # # for results. Here is how to block until completion:
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 "Error!"
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 this
1149
- # # object to check the status of an operation, cancel it, or wait
1150
- # # for results. Here is how to block until completion:
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 "Error!"
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 this
1277
- # # object to check the status of an operation, cancel it, or wait
1278
- # # for results. Here is how to block until completion:
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 "Error!"
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
- # # iterate over all elements by calling #each, and the enumerable
1385
- # # will lazily make API calls to fetch subsequent pages. Other
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 response
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 this
1583
- # # object to check the status of an operation, cancel it, or wait
1584
- # # for results. Here is how to block until completion:
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 "Error!"
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 this
1686
- # # object to check the status of an operation, cancel it, or wait
1687
- # # for results. Here is how to block until completion:
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 "Error!"
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 this
1788
- # # object to check the status of an operation, cancel it, or wait
1789
- # # for results. Here is how to block until completion:
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 "Error!"
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 this
1912
- # # object to check the status of an operation, cancel it, or wait
1913
- # # for results. Here is how to block until completion:
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 "Error!"
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 this
2033
- # # object to check the status of an operation, cancel it, or wait
2034
- # # for results. Here is how to block until completion:
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 "Error!"
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
- # # iterate over all elements by calling #each, and the enumerable
2137
- # # will lazily make API calls to fetch subsequent pages. Other
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 response
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 this
2327
- # # object to check the status of an operation, cancel it, or wait
2328
- # # for results. Here is how to block until completion:
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 "Error!"
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 this
2432
- # # object to check the status of an operation, cancel it, or wait
2433
- # # for results. Here is how to block until completion:
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 "Error!"
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 this
2529
- # # object to check the status of an operation, cancel it, or wait
2530
- # # for results. Here is how to block until completion:
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 "Error!"
2527
+ # puts "No response received."
2536
2528
  # end
2537
2529
  #
2538
2530
  def delete_gcp_user_access_binding 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