google-cloud-access_approval-v1 1.0.1 → 1.1.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 +30 -20
- data/lib/google/cloud/access_approval/v1/access_approval/client.rb +28 -10
- data/lib/google/cloud/access_approval/v1/access_approval/rest/client.rb +28 -10
- data/lib/google/cloud/access_approval/v1/access_approval/rest/service_stub.rb +86 -56
- data/lib/google/cloud/access_approval/v1/version.rb +1 -1
- data/proto_docs/google/api/client.rb +56 -0
- metadata +5 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 94e5b118ed1de14fd63970b62b1340241419728081e671a182ae56820f440eab
|
4
|
+
data.tar.gz: 67a3b4c777220da6f72f79f36162385f3df09b60c6888ded0be51cea2f9a56d6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c5e8e0dcbde90d4f7e519c31563ef0ab6695f901aaf4401055aa0978aa654db42df38ca953639974d6ceafcbf0f4a6b4c990c8390be9dd6fc50354546190f025
|
7
|
+
data.tar.gz: 455cfffcb65a0bcdcef3447ffa361d51630f7a064b0dbfc219c1ae2c41b604aeee57fa545ba228685b545c8b171c378115877e92c35d1122725a136c58c47e3e
|
data/README.md
CHANGED
@@ -42,33 +42,43 @@ for class and method documentation.
|
|
42
42
|
See also the [Product Documentation](https://cloud.google.com/access-approval/)
|
43
43
|
for general usage information.
|
44
44
|
|
45
|
-
##
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
45
|
+
## Debug Logging
|
46
|
+
|
47
|
+
This library comes with opt-in Debug Logging that can help you troubleshoot
|
48
|
+
your application's integration with the API. When logging is activated, key
|
49
|
+
events such as requests and responses, along with data payloads and metadata
|
50
|
+
such as headers and client configuration, are logged to the standard error
|
51
|
+
stream.
|
52
|
+
|
53
|
+
**WARNING:** Client Library Debug Logging includes your data payloads in
|
54
|
+
plaintext, which could include sensitive data such as PII for yourself or your
|
55
|
+
customers, private keys, or other security data that could be compromising if
|
56
|
+
leaked. Always practice good data hygiene with your application logs, and follow
|
57
|
+
the principle of least access. Google also recommends that Client Library Debug
|
58
|
+
Logging be enabled only temporarily during active debugging, and not used
|
59
|
+
permanently in production.
|
60
|
+
|
61
|
+
To enable logging, set the environment variable `GOOGLE_SDK_RUBY_LOGGING_GEMS`
|
62
|
+
to the value `all`. Alternatively, you can set the value to a comma-delimited
|
63
|
+
list of client library gem names. This will select the default logging behavior,
|
64
|
+
which writes logs to the standard error stream. On a local workstation, this may
|
65
|
+
result in logs appearing on the console. When running on a Google Cloud hosting
|
66
|
+
service such as [Google Cloud Run](https://cloud.google.com/run), this generally
|
67
|
+
results in logs appearing alongside your application logs in the
|
68
|
+
[Google Cloud Logging](https://cloud.google.com/logging/) service.
|
69
|
+
|
70
|
+
You can customize logging by modifying the `logger` configuration when
|
71
|
+
constructing a client object. For example:
|
54
72
|
|
55
73
|
```ruby
|
74
|
+
require "google/cloud/access_approval/v1"
|
56
75
|
require "logger"
|
57
76
|
|
58
|
-
|
59
|
-
|
60
|
-
def logger
|
61
|
-
LOGGER
|
62
|
-
end
|
63
|
-
end
|
64
|
-
|
65
|
-
# Define a gRPC module-level logger method before grpc/logconfig.rb loads.
|
66
|
-
module GRPC
|
67
|
-
extend MyLogger
|
77
|
+
client = ::Google::Cloud::AccessApproval::V1::AccessApproval::Client.new do |config|
|
78
|
+
config.logger = Logger.new "my-app.log"
|
68
79
|
end
|
69
80
|
```
|
70
81
|
|
71
|
-
|
72
82
|
## Google Cloud Samples
|
73
83
|
|
74
84
|
To browse ready to use code samples check [Google Cloud Samples](https://cloud.google.com/docs/samples).
|
@@ -214,8 +214,28 @@ module Google
|
|
214
214
|
universe_domain: @config.universe_domain,
|
215
215
|
channel_args: @config.channel_args,
|
216
216
|
interceptors: @config.interceptors,
|
217
|
-
channel_pool_config: @config.channel_pool
|
217
|
+
channel_pool_config: @config.channel_pool,
|
218
|
+
logger: @config.logger
|
218
219
|
)
|
220
|
+
|
221
|
+
@access_approval_stub.stub_logger&.info do |entry|
|
222
|
+
entry.set_system_name
|
223
|
+
entry.set_service
|
224
|
+
entry.message = "Created client for #{entry.service}"
|
225
|
+
entry.set_credentials_fields credentials
|
226
|
+
entry.set "customEndpoint", @config.endpoint if @config.endpoint
|
227
|
+
entry.set "defaultTimeout", @config.timeout if @config.timeout
|
228
|
+
entry.set "quotaProject", @quota_project_id if @quota_project_id
|
229
|
+
end
|
230
|
+
end
|
231
|
+
|
232
|
+
##
|
233
|
+
# The logger used for request/response debug logging.
|
234
|
+
#
|
235
|
+
# @return [Logger]
|
236
|
+
#
|
237
|
+
def logger
|
238
|
+
@access_approval_stub.logger
|
219
239
|
end
|
220
240
|
|
221
241
|
# Service calls
|
@@ -325,7 +345,7 @@ module Google
|
|
325
345
|
@access_approval_stub.call_rpc :list_approval_requests, request, options: options do |response, operation|
|
326
346
|
response = ::Gapic::PagedEnumerable.new @access_approval_stub, :list_approval_requests, request, response, operation, options
|
327
347
|
yield response, operation if block_given?
|
328
|
-
|
348
|
+
throw :response, response
|
329
349
|
end
|
330
350
|
rescue ::GRPC::BadStatus => e
|
331
351
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -413,7 +433,6 @@ module Google
|
|
413
433
|
|
414
434
|
@access_approval_stub.call_rpc :get_approval_request, request, options: options do |response, operation|
|
415
435
|
yield response, operation if block_given?
|
416
|
-
return response
|
417
436
|
end
|
418
437
|
rescue ::GRPC::BadStatus => e
|
419
438
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -504,7 +523,6 @@ module Google
|
|
504
523
|
|
505
524
|
@access_approval_stub.call_rpc :approve_approval_request, request, options: options do |response, operation|
|
506
525
|
yield response, operation if block_given?
|
507
|
-
return response
|
508
526
|
end
|
509
527
|
rescue ::GRPC::BadStatus => e
|
510
528
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -599,7 +617,6 @@ module Google
|
|
599
617
|
|
600
618
|
@access_approval_stub.call_rpc :dismiss_approval_request, request, options: options do |response, operation|
|
601
619
|
yield response, operation if block_given?
|
602
|
-
return response
|
603
620
|
end
|
604
621
|
rescue ::GRPC::BadStatus => e
|
605
622
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -692,7 +709,6 @@ module Google
|
|
692
709
|
|
693
710
|
@access_approval_stub.call_rpc :invalidate_approval_request, request, options: options do |response, operation|
|
694
711
|
yield response, operation if block_given?
|
695
|
-
return response
|
696
712
|
end
|
697
713
|
rescue ::GRPC::BadStatus => e
|
698
714
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -779,7 +795,6 @@ module Google
|
|
779
795
|
|
780
796
|
@access_approval_stub.call_rpc :get_access_approval_settings, request, options: options do |response, operation|
|
781
797
|
yield response, operation if block_given?
|
782
|
-
return response
|
783
798
|
end
|
784
799
|
rescue ::GRPC::BadStatus => e
|
785
800
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -877,7 +892,6 @@ module Google
|
|
877
892
|
|
878
893
|
@access_approval_stub.call_rpc :update_access_approval_settings, request, options: options do |response, operation|
|
879
894
|
yield response, operation if block_given?
|
880
|
-
return response
|
881
895
|
end
|
882
896
|
rescue ::GRPC::BadStatus => e
|
883
897
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -968,7 +982,6 @@ module Google
|
|
968
982
|
|
969
983
|
@access_approval_stub.call_rpc :delete_access_approval_settings, request, options: options do |response, operation|
|
970
984
|
yield response, operation if block_given?
|
971
|
-
return response
|
972
985
|
end
|
973
986
|
rescue ::GRPC::BadStatus => e
|
974
987
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -1055,7 +1068,6 @@ module Google
|
|
1055
1068
|
|
1056
1069
|
@access_approval_stub.call_rpc :get_access_approval_service_account, request, options: options do |response, operation|
|
1057
1070
|
yield response, operation if block_given?
|
1058
|
-
return response
|
1059
1071
|
end
|
1060
1072
|
rescue ::GRPC::BadStatus => e
|
1061
1073
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -1144,6 +1156,11 @@ module Google
|
|
1144
1156
|
# default endpoint URL. The default value of nil uses the environment
|
1145
1157
|
# universe (usually the default "googleapis.com" universe).
|
1146
1158
|
# @return [::String,nil]
|
1159
|
+
# @!attribute [rw] logger
|
1160
|
+
# A custom logger to use for request/response debug logging, or the value
|
1161
|
+
# `:default` (the default) to construct a default logger, or `nil` to
|
1162
|
+
# explicitly disable logging.
|
1163
|
+
# @return [::Logger,:default,nil]
|
1147
1164
|
#
|
1148
1165
|
class Configuration
|
1149
1166
|
extend ::Gapic::Config
|
@@ -1168,6 +1185,7 @@ module Google
|
|
1168
1185
|
config_attr :retry_policy, nil, ::Hash, ::Proc, nil
|
1169
1186
|
config_attr :quota_project, nil, ::String, nil
|
1170
1187
|
config_attr :universe_domain, nil, ::String, nil
|
1188
|
+
config_attr :logger, :default, ::Logger, nil, :default
|
1171
1189
|
|
1172
1190
|
# @private
|
1173
1191
|
def initialize parent_config = nil
|
@@ -207,8 +207,28 @@ module Google
|
|
207
207
|
endpoint: @config.endpoint,
|
208
208
|
endpoint_template: DEFAULT_ENDPOINT_TEMPLATE,
|
209
209
|
universe_domain: @config.universe_domain,
|
210
|
-
credentials: credentials
|
210
|
+
credentials: credentials,
|
211
|
+
logger: @config.logger
|
211
212
|
)
|
213
|
+
|
214
|
+
@access_approval_stub.logger(stub: true)&.info do |entry|
|
215
|
+
entry.set_system_name
|
216
|
+
entry.set_service
|
217
|
+
entry.message = "Created client for #{entry.service}"
|
218
|
+
entry.set_credentials_fields credentials
|
219
|
+
entry.set "customEndpoint", @config.endpoint if @config.endpoint
|
220
|
+
entry.set "defaultTimeout", @config.timeout if @config.timeout
|
221
|
+
entry.set "quotaProject", @quota_project_id if @quota_project_id
|
222
|
+
end
|
223
|
+
end
|
224
|
+
|
225
|
+
##
|
226
|
+
# The logger used for request/response debug logging.
|
227
|
+
#
|
228
|
+
# @return [Logger]
|
229
|
+
#
|
230
|
+
def logger
|
231
|
+
@access_approval_stub.logger
|
212
232
|
end
|
213
233
|
|
214
234
|
# Service calls
|
@@ -311,7 +331,7 @@ module Google
|
|
311
331
|
@access_approval_stub.list_approval_requests request, options do |result, operation|
|
312
332
|
result = ::Gapic::Rest::PagedEnumerable.new @access_approval_stub, :list_approval_requests, "approval_requests", request, result, options
|
313
333
|
yield result, operation if block_given?
|
314
|
-
|
334
|
+
throw :response, result
|
315
335
|
end
|
316
336
|
rescue ::Gapic::Rest::Error => e
|
317
337
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -392,7 +412,6 @@ module Google
|
|
392
412
|
|
393
413
|
@access_approval_stub.get_approval_request request, options do |result, operation|
|
394
414
|
yield result, operation if block_given?
|
395
|
-
return result
|
396
415
|
end
|
397
416
|
rescue ::Gapic::Rest::Error => e
|
398
417
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -476,7 +495,6 @@ module Google
|
|
476
495
|
|
477
496
|
@access_approval_stub.approve_approval_request request, options do |result, operation|
|
478
497
|
yield result, operation if block_given?
|
479
|
-
return result
|
480
498
|
end
|
481
499
|
rescue ::Gapic::Rest::Error => e
|
482
500
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -564,7 +582,6 @@ module Google
|
|
564
582
|
|
565
583
|
@access_approval_stub.dismiss_approval_request request, options do |result, operation|
|
566
584
|
yield result, operation if block_given?
|
567
|
-
return result
|
568
585
|
end
|
569
586
|
rescue ::Gapic::Rest::Error => e
|
570
587
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -650,7 +667,6 @@ module Google
|
|
650
667
|
|
651
668
|
@access_approval_stub.invalidate_approval_request request, options do |result, operation|
|
652
669
|
yield result, operation if block_given?
|
653
|
-
return result
|
654
670
|
end
|
655
671
|
rescue ::Gapic::Rest::Error => e
|
656
672
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -730,7 +746,6 @@ module Google
|
|
730
746
|
|
731
747
|
@access_approval_stub.get_access_approval_settings request, options do |result, operation|
|
732
748
|
yield result, operation if block_given?
|
733
|
-
return result
|
734
749
|
end
|
735
750
|
rescue ::Gapic::Rest::Error => e
|
736
751
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -821,7 +836,6 @@ module Google
|
|
821
836
|
|
822
837
|
@access_approval_stub.update_access_approval_settings request, options do |result, operation|
|
823
838
|
yield result, operation if block_given?
|
824
|
-
return result
|
825
839
|
end
|
826
840
|
rescue ::Gapic::Rest::Error => e
|
827
841
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -905,7 +919,6 @@ module Google
|
|
905
919
|
|
906
920
|
@access_approval_stub.delete_access_approval_settings request, options do |result, operation|
|
907
921
|
yield result, operation if block_given?
|
908
|
-
return result
|
909
922
|
end
|
910
923
|
rescue ::Gapic::Rest::Error => e
|
911
924
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -985,7 +998,6 @@ module Google
|
|
985
998
|
|
986
999
|
@access_approval_stub.get_access_approval_service_account request, options do |result, operation|
|
987
1000
|
yield result, operation if block_given?
|
988
|
-
return result
|
989
1001
|
end
|
990
1002
|
rescue ::Gapic::Rest::Error => e
|
991
1003
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -1065,6 +1077,11 @@ module Google
|
|
1065
1077
|
# default endpoint URL. The default value of nil uses the environment
|
1066
1078
|
# universe (usually the default "googleapis.com" universe).
|
1067
1079
|
# @return [::String,nil]
|
1080
|
+
# @!attribute [rw] logger
|
1081
|
+
# A custom logger to use for request/response debug logging, or the value
|
1082
|
+
# `:default` (the default) to construct a default logger, or `nil` to
|
1083
|
+
# explicitly disable logging.
|
1084
|
+
# @return [::Logger,:default,nil]
|
1068
1085
|
#
|
1069
1086
|
class Configuration
|
1070
1087
|
extend ::Gapic::Config
|
@@ -1086,6 +1103,7 @@ module Google
|
|
1086
1103
|
config_attr :retry_policy, nil, ::Hash, ::Proc, nil
|
1087
1104
|
config_attr :quota_project, nil, ::String, nil
|
1088
1105
|
config_attr :universe_domain, nil, ::String, nil
|
1106
|
+
config_attr :logger, :default, ::Logger, nil, :default
|
1089
1107
|
|
1090
1108
|
# @private
|
1091
1109
|
def initialize parent_config = nil
|
@@ -30,7 +30,8 @@ module Google
|
|
30
30
|
# including transcoding, making the REST call, and deserialing the response.
|
31
31
|
#
|
32
32
|
class ServiceStub
|
33
|
-
|
33
|
+
# @private
|
34
|
+
def initialize endpoint:, endpoint_template:, universe_domain:, credentials:, logger:
|
34
35
|
# These require statements are intentionally placed here to initialize
|
35
36
|
# the REST modules only when it's required.
|
36
37
|
require "gapic/rest"
|
@@ -40,7 +41,9 @@ module Google
|
|
40
41
|
universe_domain: universe_domain,
|
41
42
|
credentials: credentials,
|
42
43
|
numeric_enums: true,
|
43
|
-
|
44
|
+
service_name: self.class,
|
45
|
+
raise_faraday_errors: false,
|
46
|
+
logger: logger
|
44
47
|
end
|
45
48
|
|
46
49
|
##
|
@@ -61,6 +64,15 @@ module Google
|
|
61
64
|
@client_stub.endpoint
|
62
65
|
end
|
63
66
|
|
67
|
+
##
|
68
|
+
# The logger used for request/response debug logging.
|
69
|
+
#
|
70
|
+
# @return [Logger]
|
71
|
+
#
|
72
|
+
def logger stub: false
|
73
|
+
stub ? @client_stub.stub_logger : @client_stub.logger
|
74
|
+
end
|
75
|
+
|
64
76
|
##
|
65
77
|
# Baseline implementation for the list_approval_requests REST call
|
66
78
|
#
|
@@ -87,16 +99,18 @@ module Google
|
|
87
99
|
|
88
100
|
response = @client_stub.make_http_request(
|
89
101
|
verb,
|
90
|
-
uri:
|
91
|
-
body:
|
92
|
-
params:
|
102
|
+
uri: uri,
|
103
|
+
body: body || "",
|
104
|
+
params: query_string_params,
|
105
|
+
method_name: "list_approval_requests",
|
93
106
|
options: options
|
94
107
|
)
|
95
108
|
operation = ::Gapic::Rest::TransportOperation.new response
|
96
109
|
result = ::Google::Cloud::AccessApproval::V1::ListApprovalRequestsResponse.decode_json response.body, ignore_unknown_fields: true
|
97
|
-
|
98
|
-
|
99
|
-
|
110
|
+
catch :response do
|
111
|
+
yield result, operation if block_given?
|
112
|
+
result
|
113
|
+
end
|
100
114
|
end
|
101
115
|
|
102
116
|
##
|
@@ -125,16 +139,18 @@ module Google
|
|
125
139
|
|
126
140
|
response = @client_stub.make_http_request(
|
127
141
|
verb,
|
128
|
-
uri:
|
129
|
-
body:
|
130
|
-
params:
|
142
|
+
uri: uri,
|
143
|
+
body: body || "",
|
144
|
+
params: query_string_params,
|
145
|
+
method_name: "get_approval_request",
|
131
146
|
options: options
|
132
147
|
)
|
133
148
|
operation = ::Gapic::Rest::TransportOperation.new response
|
134
149
|
result = ::Google::Cloud::AccessApproval::V1::ApprovalRequest.decode_json response.body, ignore_unknown_fields: true
|
135
|
-
|
136
|
-
|
137
|
-
|
150
|
+
catch :response do
|
151
|
+
yield result, operation if block_given?
|
152
|
+
result
|
153
|
+
end
|
138
154
|
end
|
139
155
|
|
140
156
|
##
|
@@ -163,16 +179,18 @@ module Google
|
|
163
179
|
|
164
180
|
response = @client_stub.make_http_request(
|
165
181
|
verb,
|
166
|
-
uri:
|
167
|
-
body:
|
168
|
-
params:
|
182
|
+
uri: uri,
|
183
|
+
body: body || "",
|
184
|
+
params: query_string_params,
|
185
|
+
method_name: "approve_approval_request",
|
169
186
|
options: options
|
170
187
|
)
|
171
188
|
operation = ::Gapic::Rest::TransportOperation.new response
|
172
189
|
result = ::Google::Cloud::AccessApproval::V1::ApprovalRequest.decode_json response.body, ignore_unknown_fields: true
|
173
|
-
|
174
|
-
|
175
|
-
|
190
|
+
catch :response do
|
191
|
+
yield result, operation if block_given?
|
192
|
+
result
|
193
|
+
end
|
176
194
|
end
|
177
195
|
|
178
196
|
##
|
@@ -201,16 +219,18 @@ module Google
|
|
201
219
|
|
202
220
|
response = @client_stub.make_http_request(
|
203
221
|
verb,
|
204
|
-
uri:
|
205
|
-
body:
|
206
|
-
params:
|
222
|
+
uri: uri,
|
223
|
+
body: body || "",
|
224
|
+
params: query_string_params,
|
225
|
+
method_name: "dismiss_approval_request",
|
207
226
|
options: options
|
208
227
|
)
|
209
228
|
operation = ::Gapic::Rest::TransportOperation.new response
|
210
229
|
result = ::Google::Cloud::AccessApproval::V1::ApprovalRequest.decode_json response.body, ignore_unknown_fields: true
|
211
|
-
|
212
|
-
|
213
|
-
|
230
|
+
catch :response do
|
231
|
+
yield result, operation if block_given?
|
232
|
+
result
|
233
|
+
end
|
214
234
|
end
|
215
235
|
|
216
236
|
##
|
@@ -239,16 +259,18 @@ module Google
|
|
239
259
|
|
240
260
|
response = @client_stub.make_http_request(
|
241
261
|
verb,
|
242
|
-
uri:
|
243
|
-
body:
|
244
|
-
params:
|
262
|
+
uri: uri,
|
263
|
+
body: body || "",
|
264
|
+
params: query_string_params,
|
265
|
+
method_name: "invalidate_approval_request",
|
245
266
|
options: options
|
246
267
|
)
|
247
268
|
operation = ::Gapic::Rest::TransportOperation.new response
|
248
269
|
result = ::Google::Cloud::AccessApproval::V1::ApprovalRequest.decode_json response.body, ignore_unknown_fields: true
|
249
|
-
|
250
|
-
|
251
|
-
|
270
|
+
catch :response do
|
271
|
+
yield result, operation if block_given?
|
272
|
+
result
|
273
|
+
end
|
252
274
|
end
|
253
275
|
|
254
276
|
##
|
@@ -277,16 +299,18 @@ module Google
|
|
277
299
|
|
278
300
|
response = @client_stub.make_http_request(
|
279
301
|
verb,
|
280
|
-
uri:
|
281
|
-
body:
|
282
|
-
params:
|
302
|
+
uri: uri,
|
303
|
+
body: body || "",
|
304
|
+
params: query_string_params,
|
305
|
+
method_name: "get_access_approval_settings",
|
283
306
|
options: options
|
284
307
|
)
|
285
308
|
operation = ::Gapic::Rest::TransportOperation.new response
|
286
309
|
result = ::Google::Cloud::AccessApproval::V1::AccessApprovalSettings.decode_json response.body, ignore_unknown_fields: true
|
287
|
-
|
288
|
-
|
289
|
-
|
310
|
+
catch :response do
|
311
|
+
yield result, operation if block_given?
|
312
|
+
result
|
313
|
+
end
|
290
314
|
end
|
291
315
|
|
292
316
|
##
|
@@ -315,16 +339,18 @@ module Google
|
|
315
339
|
|
316
340
|
response = @client_stub.make_http_request(
|
317
341
|
verb,
|
318
|
-
uri:
|
319
|
-
body:
|
320
|
-
params:
|
342
|
+
uri: uri,
|
343
|
+
body: body || "",
|
344
|
+
params: query_string_params,
|
345
|
+
method_name: "update_access_approval_settings",
|
321
346
|
options: options
|
322
347
|
)
|
323
348
|
operation = ::Gapic::Rest::TransportOperation.new response
|
324
349
|
result = ::Google::Cloud::AccessApproval::V1::AccessApprovalSettings.decode_json response.body, ignore_unknown_fields: true
|
325
|
-
|
326
|
-
|
327
|
-
|
350
|
+
catch :response do
|
351
|
+
yield result, operation if block_given?
|
352
|
+
result
|
353
|
+
end
|
328
354
|
end
|
329
355
|
|
330
356
|
##
|
@@ -353,16 +379,18 @@ module Google
|
|
353
379
|
|
354
380
|
response = @client_stub.make_http_request(
|
355
381
|
verb,
|
356
|
-
uri:
|
357
|
-
body:
|
358
|
-
params:
|
382
|
+
uri: uri,
|
383
|
+
body: body || "",
|
384
|
+
params: query_string_params,
|
385
|
+
method_name: "delete_access_approval_settings",
|
359
386
|
options: options
|
360
387
|
)
|
361
388
|
operation = ::Gapic::Rest::TransportOperation.new response
|
362
389
|
result = ::Google::Protobuf::Empty.decode_json response.body, ignore_unknown_fields: true
|
363
|
-
|
364
|
-
|
365
|
-
|
390
|
+
catch :response do
|
391
|
+
yield result, operation if block_given?
|
392
|
+
result
|
393
|
+
end
|
366
394
|
end
|
367
395
|
|
368
396
|
##
|
@@ -391,16 +419,18 @@ module Google
|
|
391
419
|
|
392
420
|
response = @client_stub.make_http_request(
|
393
421
|
verb,
|
394
|
-
uri:
|
395
|
-
body:
|
396
|
-
params:
|
422
|
+
uri: uri,
|
423
|
+
body: body || "",
|
424
|
+
params: query_string_params,
|
425
|
+
method_name: "get_access_approval_service_account",
|
397
426
|
options: options
|
398
427
|
)
|
399
428
|
operation = ::Gapic::Rest::TransportOperation.new response
|
400
429
|
result = ::Google::Cloud::AccessApproval::V1::AccessApprovalServiceAccount.decode_json response.body, ignore_unknown_fields: true
|
401
|
-
|
402
|
-
|
403
|
-
|
430
|
+
catch :response do
|
431
|
+
yield result, operation if block_given?
|
432
|
+
result
|
433
|
+
end
|
404
434
|
end
|
405
435
|
|
406
436
|
##
|
@@ -28,6 +28,9 @@ module Google
|
|
28
28
|
# @!attribute [rw] destinations
|
29
29
|
# @return [::Array<::Google::Api::ClientLibraryDestination>]
|
30
30
|
# The destination where API teams want this client library to be published.
|
31
|
+
# @!attribute [rw] selective_gapic_generation
|
32
|
+
# @return [::Google::Api::SelectiveGapicGeneration]
|
33
|
+
# Configuration for which RPCs should be generated in the GAPIC client.
|
31
34
|
class CommonLanguageSettings
|
32
35
|
include ::Google::Protobuf::MessageExts
|
33
36
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
@@ -196,9 +199,32 @@ module Google
|
|
196
199
|
# @!attribute [rw] common
|
197
200
|
# @return [::Google::Api::CommonLanguageSettings]
|
198
201
|
# Some settings.
|
202
|
+
# @!attribute [rw] experimental_features
|
203
|
+
# @return [::Google::Api::PythonSettings::ExperimentalFeatures]
|
204
|
+
# Experimental features to be included during client library generation.
|
199
205
|
class PythonSettings
|
200
206
|
include ::Google::Protobuf::MessageExts
|
201
207
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
208
|
+
|
209
|
+
# Experimental features to be included during client library generation.
|
210
|
+
# These fields will be deprecated once the feature graduates and is enabled
|
211
|
+
# by default.
|
212
|
+
# @!attribute [rw] rest_async_io_enabled
|
213
|
+
# @return [::Boolean]
|
214
|
+
# Enables generation of asynchronous REST clients if `rest` transport is
|
215
|
+
# enabled. By default, asynchronous REST clients will not be generated.
|
216
|
+
# This feature will be enabled by default 1 month after launching the
|
217
|
+
# feature in preview packages.
|
218
|
+
# @!attribute [rw] protobuf_pythonic_types_enabled
|
219
|
+
# @return [::Boolean]
|
220
|
+
# Enables generation of protobuf code using new types that are more
|
221
|
+
# Pythonic which are included in `protobuf>=5.29.x`. This feature will be
|
222
|
+
# enabled by default 1 month after launching the feature in preview
|
223
|
+
# packages.
|
224
|
+
class ExperimentalFeatures
|
225
|
+
include ::Google::Protobuf::MessageExts
|
226
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
227
|
+
end
|
202
228
|
end
|
203
229
|
|
204
230
|
# Settings for Node client libraries.
|
@@ -280,9 +306,28 @@ module Google
|
|
280
306
|
# @!attribute [rw] common
|
281
307
|
# @return [::Google::Api::CommonLanguageSettings]
|
282
308
|
# Some settings.
|
309
|
+
# @!attribute [rw] renamed_services
|
310
|
+
# @return [::Google::Protobuf::Map{::String => ::String}]
|
311
|
+
# Map of service names to renamed services. Keys are the package relative
|
312
|
+
# service names and values are the name to be used for the service client
|
313
|
+
# and call options.
|
314
|
+
#
|
315
|
+
# publishing:
|
316
|
+
# go_settings:
|
317
|
+
# renamed_services:
|
318
|
+
# Publisher: TopicAdmin
|
283
319
|
class GoSettings
|
284
320
|
include ::Google::Protobuf::MessageExts
|
285
321
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
322
|
+
|
323
|
+
# @!attribute [rw] key
|
324
|
+
# @return [::String]
|
325
|
+
# @!attribute [rw] value
|
326
|
+
# @return [::String]
|
327
|
+
class RenamedServicesEntry
|
328
|
+
include ::Google::Protobuf::MessageExts
|
329
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
330
|
+
end
|
286
331
|
end
|
287
332
|
|
288
333
|
# Describes the generator configuration for a method.
|
@@ -358,6 +403,17 @@ module Google
|
|
358
403
|
end
|
359
404
|
end
|
360
405
|
|
406
|
+
# This message is used to configure the generation of a subset of the RPCs in
|
407
|
+
# a service for client libraries.
|
408
|
+
# @!attribute [rw] methods
|
409
|
+
# @return [::Array<::String>]
|
410
|
+
# An allowlist of the fully qualified names of RPCs that should be included
|
411
|
+
# on public client surfaces.
|
412
|
+
class SelectiveGapicGeneration
|
413
|
+
include ::Google::Protobuf::MessageExts
|
414
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
415
|
+
end
|
416
|
+
|
361
417
|
# The organization for which the client libraries are being published.
|
362
418
|
# Affects the url where generated docs are published, etc.
|
363
419
|
module ClientLibraryOrganization
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: google-cloud-access_approval-v1
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0
|
4
|
+
version: 1.1.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-
|
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
|
@@ -99,7 +99,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
99
99
|
- !ruby/object:Gem::Version
|
100
100
|
version: '0'
|
101
101
|
requirements: []
|
102
|
-
rubygems_version: 3.5.
|
102
|
+
rubygems_version: 3.5.23
|
103
103
|
signing_key:
|
104
104
|
specification_version: 4
|
105
105
|
summary: An API for controlling access to data by Google personnel.
|