google-iam-v1beta 0.8.2 → 0.9.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
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 021572ccfa238e172b70c41a200711a9a901ba01321d3ed92b67787e9525b67a
|
4
|
+
data.tar.gz: 8cbef9da6112d68ef9f8b0e9afe50d9f4f7462160f6867a64350f33a14ac8554
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 85a778544400152de6fc8a3dc6ec9235306b06f39223a490f2b4d721deddefffebe3bbc81d441beb00bd60e42755d3d29ae194107aafdeedbc67dde47dbc89d8
|
7
|
+
data.tar.gz: 5cce949b879fd565a9e1b8cf4b66517f62379b6cb1fafb4bfe773d782edf5d7c395aba6e1833ab4bf296ba5679b369d2edd4f33e345202dd08ff9d53eff6bc59
|
data/README.md
CHANGED
@@ -43,33 +43,43 @@ for class and method documentation.
|
|
43
43
|
See also the [Product Documentation](https://cloud.google.com/iam/docs/manage-workload-identity-pools-providers)
|
44
44
|
for general usage information.
|
45
45
|
|
46
|
-
##
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
46
|
+
## Debug Logging
|
47
|
+
|
48
|
+
This library comes with opt-in Debug Logging that can help you troubleshoot
|
49
|
+
your application's integration with the API. When logging is activated, key
|
50
|
+
events such as requests and responses, along with data payloads and metadata
|
51
|
+
such as headers and client configuration, are logged to the standard error
|
52
|
+
stream.
|
53
|
+
|
54
|
+
**WARNING:** Client Library Debug Logging includes your data payloads in
|
55
|
+
plaintext, which could include sensitive data such as PII for yourself or your
|
56
|
+
customers, private keys, or other security data that could be compromising if
|
57
|
+
leaked. Always practice good data hygiene with your application logs, and follow
|
58
|
+
the principle of least access. Google also recommends that Client Library Debug
|
59
|
+
Logging be enabled only temporarily during active debugging, and not used
|
60
|
+
permanently in production.
|
61
|
+
|
62
|
+
To enable logging, set the environment variable `GOOGLE_SDK_RUBY_LOGGING_GEMS`
|
63
|
+
to the value `all`. Alternatively, you can set the value to a comma-delimited
|
64
|
+
list of client library gem names. This will select the default logging behavior,
|
65
|
+
which writes logs to the standard error stream. On a local workstation, this may
|
66
|
+
result in logs appearing on the console. When running on a Google Cloud hosting
|
67
|
+
service such as [Google Cloud Run](https://cloud.google.com/run), this generally
|
68
|
+
results in logs appearing alongside your application logs in the
|
69
|
+
[Google Cloud Logging](https://cloud.google.com/logging/) service.
|
70
|
+
|
71
|
+
You can customize logging by modifying the `logger` configuration when
|
72
|
+
constructing a client object. For example:
|
55
73
|
|
56
74
|
```ruby
|
75
|
+
require "google/iam/v1beta"
|
57
76
|
require "logger"
|
58
77
|
|
59
|
-
|
60
|
-
|
61
|
-
def logger
|
62
|
-
LOGGER
|
63
|
-
end
|
64
|
-
end
|
65
|
-
|
66
|
-
# Define a gRPC module-level logger method before grpc/logconfig.rb loads.
|
67
|
-
module GRPC
|
68
|
-
extend MyLogger
|
78
|
+
client = ::Google::Iam::V1beta::WorkloadIdentityPools::Client.new do |config|
|
79
|
+
config.logger = Logger.new "my-app.log"
|
69
80
|
end
|
70
81
|
```
|
71
82
|
|
72
|
-
|
73
83
|
## Google Cloud Samples
|
74
84
|
|
75
85
|
To browse ready to use code samples check [Google Cloud Samples](https://cloud.google.com/docs/samples).
|
@@ -223,8 +223,19 @@ module Google
|
|
223
223
|
universe_domain: @config.universe_domain,
|
224
224
|
channel_args: @config.channel_args,
|
225
225
|
interceptors: @config.interceptors,
|
226
|
-
channel_pool_config: @config.channel_pool
|
226
|
+
channel_pool_config: @config.channel_pool,
|
227
|
+
logger: @config.logger
|
227
228
|
)
|
229
|
+
|
230
|
+
@workload_identity_pools_stub.stub_logger&.info do |entry|
|
231
|
+
entry.set_system_name
|
232
|
+
entry.set_service
|
233
|
+
entry.message = "Created client for #{entry.service}"
|
234
|
+
entry.set_credentials_fields credentials
|
235
|
+
entry.set "customEndpoint", @config.endpoint if @config.endpoint
|
236
|
+
entry.set "defaultTimeout", @config.timeout if @config.timeout
|
237
|
+
entry.set "quotaProject", @quota_project_id if @quota_project_id
|
238
|
+
end
|
228
239
|
end
|
229
240
|
|
230
241
|
##
|
@@ -234,6 +245,15 @@ module Google
|
|
234
245
|
#
|
235
246
|
attr_reader :operations_client
|
236
247
|
|
248
|
+
##
|
249
|
+
# The logger used for request/response debug logging.
|
250
|
+
#
|
251
|
+
# @return [Logger]
|
252
|
+
#
|
253
|
+
def logger
|
254
|
+
@workload_identity_pools_stub.logger
|
255
|
+
end
|
256
|
+
|
237
257
|
# Service calls
|
238
258
|
|
239
259
|
##
|
@@ -333,7 +353,7 @@ module Google
|
|
333
353
|
@workload_identity_pools_stub.call_rpc :list_workload_identity_pools, request, options: options do |response, operation|
|
334
354
|
response = ::Gapic::PagedEnumerable.new @workload_identity_pools_stub, :list_workload_identity_pools, request, response, operation, options
|
335
355
|
yield response, operation if block_given?
|
336
|
-
|
356
|
+
throw :response, response
|
337
357
|
end
|
338
358
|
rescue ::GRPC::BadStatus => e
|
339
359
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -420,7 +440,6 @@ module Google
|
|
420
440
|
|
421
441
|
@workload_identity_pools_stub.call_rpc :get_workload_identity_pool, request, options: options do |response, operation|
|
422
442
|
yield response, operation if block_given?
|
423
|
-
return response
|
424
443
|
end
|
425
444
|
rescue ::GRPC::BadStatus => e
|
426
445
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -525,7 +544,7 @@ module Google
|
|
525
544
|
@workload_identity_pools_stub.call_rpc :create_workload_identity_pool, request, options: options do |response, operation|
|
526
545
|
response = ::Gapic::Operation.new response, @operations_client, options: options
|
527
546
|
yield response, operation if block_given?
|
528
|
-
|
547
|
+
throw :response, response
|
529
548
|
end
|
530
549
|
rescue ::GRPC::BadStatus => e
|
531
550
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -622,7 +641,7 @@ module Google
|
|
622
641
|
@workload_identity_pools_stub.call_rpc :update_workload_identity_pool, request, options: options do |response, operation|
|
623
642
|
response = ::Gapic::Operation.new response, @operations_client, options: options
|
624
643
|
yield response, operation if block_given?
|
625
|
-
|
644
|
+
throw :response, response
|
626
645
|
end
|
627
646
|
rescue ::GRPC::BadStatus => e
|
628
647
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -727,7 +746,7 @@ module Google
|
|
727
746
|
@workload_identity_pools_stub.call_rpc :delete_workload_identity_pool, request, options: options do |response, operation|
|
728
747
|
response = ::Gapic::Operation.new response, @operations_client, options: options
|
729
748
|
yield response, operation if block_given?
|
730
|
-
|
749
|
+
throw :response, response
|
731
750
|
end
|
732
751
|
rescue ::GRPC::BadStatus => e
|
733
752
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -822,7 +841,7 @@ module Google
|
|
822
841
|
@workload_identity_pools_stub.call_rpc :undelete_workload_identity_pool, request, options: options do |response, operation|
|
823
842
|
response = ::Gapic::Operation.new response, @operations_client, options: options
|
824
843
|
yield response, operation if block_given?
|
825
|
-
|
844
|
+
throw :response, response
|
826
845
|
end
|
827
846
|
rescue ::GRPC::BadStatus => e
|
828
847
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -926,7 +945,7 @@ module Google
|
|
926
945
|
@workload_identity_pools_stub.call_rpc :list_workload_identity_pool_providers, request, options: options do |response, operation|
|
927
946
|
response = ::Gapic::PagedEnumerable.new @workload_identity_pools_stub, :list_workload_identity_pool_providers, request, response, operation, options
|
928
947
|
yield response, operation if block_given?
|
929
|
-
|
948
|
+
throw :response, response
|
930
949
|
end
|
931
950
|
rescue ::GRPC::BadStatus => e
|
932
951
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -1013,7 +1032,6 @@ module Google
|
|
1013
1032
|
|
1014
1033
|
@workload_identity_pools_stub.call_rpc :get_workload_identity_pool_provider, request, options: options do |response, operation|
|
1015
1034
|
yield response, operation if block_given?
|
1016
|
-
return response
|
1017
1035
|
end
|
1018
1036
|
rescue ::GRPC::BadStatus => e
|
1019
1037
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -1119,7 +1137,7 @@ module Google
|
|
1119
1137
|
@workload_identity_pools_stub.call_rpc :create_workload_identity_pool_provider, request, options: options do |response, operation|
|
1120
1138
|
response = ::Gapic::Operation.new response, @operations_client, options: options
|
1121
1139
|
yield response, operation if block_given?
|
1122
|
-
|
1140
|
+
throw :response, response
|
1123
1141
|
end
|
1124
1142
|
rescue ::GRPC::BadStatus => e
|
1125
1143
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -1216,7 +1234,7 @@ module Google
|
|
1216
1234
|
@workload_identity_pools_stub.call_rpc :update_workload_identity_pool_provider, request, options: options do |response, operation|
|
1217
1235
|
response = ::Gapic::Operation.new response, @operations_client, options: options
|
1218
1236
|
yield response, operation if block_given?
|
1219
|
-
|
1237
|
+
throw :response, response
|
1220
1238
|
end
|
1221
1239
|
rescue ::GRPC::BadStatus => e
|
1222
1240
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -1316,7 +1334,7 @@ module Google
|
|
1316
1334
|
@workload_identity_pools_stub.call_rpc :delete_workload_identity_pool_provider, request, options: options do |response, operation|
|
1317
1335
|
response = ::Gapic::Operation.new response, @operations_client, options: options
|
1318
1336
|
yield response, operation if block_given?
|
1319
|
-
|
1337
|
+
throw :response, response
|
1320
1338
|
end
|
1321
1339
|
rescue ::GRPC::BadStatus => e
|
1322
1340
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -1412,7 +1430,7 @@ module Google
|
|
1412
1430
|
@workload_identity_pools_stub.call_rpc :undelete_workload_identity_pool_provider, request, options: options do |response, operation|
|
1413
1431
|
response = ::Gapic::Operation.new response, @operations_client, options: options
|
1414
1432
|
yield response, operation if block_given?
|
1415
|
-
|
1433
|
+
throw :response, response
|
1416
1434
|
end
|
1417
1435
|
rescue ::GRPC::BadStatus => e
|
1418
1436
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -1501,6 +1519,11 @@ module Google
|
|
1501
1519
|
# default endpoint URL. The default value of nil uses the environment
|
1502
1520
|
# universe (usually the default "googleapis.com" universe).
|
1503
1521
|
# @return [::String,nil]
|
1522
|
+
# @!attribute [rw] logger
|
1523
|
+
# A custom logger to use for request/response debug logging, or the value
|
1524
|
+
# `:default` (the default) to construct a default logger, or `nil` to
|
1525
|
+
# explicitly disable logging.
|
1526
|
+
# @return [::Logger,:default,nil]
|
1504
1527
|
#
|
1505
1528
|
class Configuration
|
1506
1529
|
extend ::Gapic::Config
|
@@ -1525,6 +1548,7 @@ module Google
|
|
1525
1548
|
config_attr :retry_policy, nil, ::Hash, ::Proc, nil
|
1526
1549
|
config_attr :quota_project, nil, ::String, nil
|
1527
1550
|
config_attr :universe_domain, nil, ::String, nil
|
1551
|
+
config_attr :logger, :default, ::Logger, nil, :default
|
1528
1552
|
|
1529
1553
|
# @private
|
1530
1554
|
def initialize parent_config = nil
|
@@ -212,7 +212,7 @@ module Google
|
|
212
212
|
wrap_lro_operation = ->(op_response) { ::Gapic::Operation.new op_response, @operations_client }
|
213
213
|
response = ::Gapic::PagedEnumerable.new @operations_stub, :list_operations, request, response, operation, options, format_resource: wrap_lro_operation
|
214
214
|
yield response, operation if block_given?
|
215
|
-
|
215
|
+
throw :response, response
|
216
216
|
end
|
217
217
|
rescue ::GRPC::BadStatus => e
|
218
218
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -308,7 +308,7 @@ module Google
|
|
308
308
|
@operations_stub.call_rpc :get_operation, request, options: options do |response, operation|
|
309
309
|
response = ::Gapic::Operation.new response, @operations_client, options: options
|
310
310
|
yield response, operation if block_given?
|
311
|
-
|
311
|
+
throw :response, response
|
312
312
|
end
|
313
313
|
rescue ::GRPC::BadStatus => e
|
314
314
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -397,7 +397,6 @@ module Google
|
|
397
397
|
|
398
398
|
@operations_stub.call_rpc :delete_operation, request, options: options do |response, operation|
|
399
399
|
yield response, operation if block_given?
|
400
|
-
return response
|
401
400
|
end
|
402
401
|
rescue ::GRPC::BadStatus => e
|
403
402
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -493,7 +492,6 @@ module Google
|
|
493
492
|
|
494
493
|
@operations_stub.call_rpc :cancel_operation, request, options: options do |response, operation|
|
495
494
|
yield response, operation if block_given?
|
496
|
-
return response
|
497
495
|
end
|
498
496
|
rescue ::GRPC::BadStatus => e
|
499
497
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -591,7 +589,7 @@ module Google
|
|
591
589
|
@operations_stub.call_rpc :wait_operation, request, options: options do |response, operation|
|
592
590
|
response = ::Gapic::Operation.new response, @operations_client, options: options
|
593
591
|
yield response, operation if block_given?
|
594
|
-
|
592
|
+
throw :response, response
|
595
593
|
end
|
596
594
|
rescue ::GRPC::BadStatus => e
|
597
595
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -680,6 +678,11 @@ module Google
|
|
680
678
|
# default endpoint URL. The default value of nil uses the environment
|
681
679
|
# universe (usually the default "googleapis.com" universe).
|
682
680
|
# @return [::String,nil]
|
681
|
+
# @!attribute [rw] logger
|
682
|
+
# A custom logger to use for request/response debug logging, or the value
|
683
|
+
# `:default` (the default) to construct a default logger, or `nil` to
|
684
|
+
# explicitly disable logging.
|
685
|
+
# @return [::Logger,:default,nil]
|
683
686
|
#
|
684
687
|
class Configuration
|
685
688
|
extend ::Gapic::Config
|
@@ -704,6 +707,7 @@ module Google
|
|
704
707
|
config_attr :retry_policy, nil, ::Hash, ::Proc, nil
|
705
708
|
config_attr :quota_project, nil, ::String, nil
|
706
709
|
config_attr :universe_domain, nil, ::String, nil
|
710
|
+
config_attr :logger, :default, ::Logger, nil, :default
|
707
711
|
|
708
712
|
# @private
|
709
713
|
def initialize parent_config = nil
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: google-iam-v1beta
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.9.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Google LLC
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-12-
|
11
|
+
date: 2024-12-10 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: gapic-common
|
@@ -16,7 +16,7 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - ">="
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: 0.
|
19
|
+
version: 0.24.0
|
20
20
|
- - "<"
|
21
21
|
- !ruby/object:Gem::Version
|
22
22
|
version: 2.a
|
@@ -26,7 +26,7 @@ dependencies:
|
|
26
26
|
requirements:
|
27
27
|
- - ">="
|
28
28
|
- !ruby/object:Gem::Version
|
29
|
-
version: 0.
|
29
|
+
version: 0.24.0
|
30
30
|
- - "<"
|
31
31
|
- !ruby/object:Gem::Version
|
32
32
|
version: 2.a
|