google-cloud-compute-v1 1.2.0 → 1.3.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/google/cloud/compute/v1/compute_pb.rb +577 -1
- data/lib/google/cloud/compute/v1/disks/rest/client.rb +1 -1
- data/lib/google/cloud/compute/v1/firewall_policies/rest/service_stub.rb +1 -1
- data/lib/google/cloud/compute/v1/instances/rest/client.rb +3 -1
- data/lib/google/cloud/compute/v1/network_edge_security_services/credentials.rb +52 -0
- data/lib/google/cloud/compute/v1/network_edge_security_services/rest/client.rb +679 -0
- data/lib/google/cloud/compute/v1/network_edge_security_services/rest/service_stub.rb +279 -0
- data/lib/google/cloud/compute/v1/network_edge_security_services/rest.rb +33 -0
- data/lib/google/cloud/compute/v1/network_edge_security_services.rb +44 -0
- data/lib/google/cloud/compute/v1/network_firewall_policies/credentials.rb +52 -0
- data/lib/google/cloud/compute/v1/network_firewall_policies/rest/client.rb +1552 -0
- data/lib/google/cloud/compute/v1/network_firewall_policies/rest/service_stub.rb +778 -0
- data/lib/google/cloud/compute/v1/network_firewall_policies/rest.rb +33 -0
- data/lib/google/cloud/compute/v1/network_firewall_policies.rb +44 -0
- data/lib/google/cloud/compute/v1/region_network_firewall_policies/credentials.rb +52 -0
- data/lib/google/cloud/compute/v1/region_network_firewall_policies/rest/client.rb +1670 -0
- data/lib/google/cloud/compute/v1/region_network_firewall_policies/rest/service_stub.rb +823 -0
- data/lib/google/cloud/compute/v1/region_network_firewall_policies/rest.rb +33 -0
- data/lib/google/cloud/compute/v1/region_network_firewall_policies.rb +44 -0
- data/lib/google/cloud/compute/v1/region_security_policies/credentials.rb +52 -0
- data/lib/google/cloud/compute/v1/region_security_policies/rest/client.rb +676 -0
- data/lib/google/cloud/compute/v1/region_security_policies/rest/service_stub.rb +276 -0
- data/lib/google/cloud/compute/v1/region_security_policies/rest.rb +33 -0
- data/lib/google/cloud/compute/v1/region_security_policies.rb +44 -0
- data/lib/google/cloud/compute/v1/region_target_https_proxies/rest/client.rb +87 -0
- data/lib/google/cloud/compute/v1/region_target_https_proxies/rest/service_stub.rb +46 -0
- data/lib/google/cloud/compute/v1/security_policies/rest/client.rb +86 -0
- data/lib/google/cloud/compute/v1/security_policies/rest/service_stub.rb +50 -0
- data/lib/google/cloud/compute/v1/version.rb +1 -1
- data/lib/google/cloud/compute/v1.rb +4 -0
- data/proto_docs/google/cloud/compute/v1/compute.rb +1562 -65
- metadata +22 -2
@@ -0,0 +1,823 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
# Copyright 2022 Google LLC
|
4
|
+
#
|
5
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
6
|
+
# you may not use this file except in compliance with the License.
|
7
|
+
# You may obtain a copy of the License at
|
8
|
+
#
|
9
|
+
# https://www.apache.org/licenses/LICENSE-2.0
|
10
|
+
#
|
11
|
+
# Unless required by applicable law or agreed to in writing, software
|
12
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
13
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
14
|
+
# See the License for the specific language governing permissions and
|
15
|
+
# limitations under the License.
|
16
|
+
|
17
|
+
# Auto-generated by gapic-generator-ruby. DO NOT EDIT!
|
18
|
+
|
19
|
+
require "google/cloud/compute/v1/compute_pb"
|
20
|
+
|
21
|
+
module Google
|
22
|
+
module Cloud
|
23
|
+
module Compute
|
24
|
+
module V1
|
25
|
+
module RegionNetworkFirewallPolicies
|
26
|
+
module Rest
|
27
|
+
##
|
28
|
+
# REST service stub for the RegionNetworkFirewallPolicies service.
|
29
|
+
# service stub contains baseline method implementations
|
30
|
+
# including transcoding, making the REST call and deserialing the response
|
31
|
+
#
|
32
|
+
class ServiceStub
|
33
|
+
def initialize endpoint:, credentials:
|
34
|
+
# These require statements are intentionally placed here to initialize
|
35
|
+
# the REST modules only when it's required.
|
36
|
+
require "gapic/rest"
|
37
|
+
|
38
|
+
@client_stub = ::Gapic::Rest::ClientStub.new endpoint: endpoint, credentials: credentials
|
39
|
+
end
|
40
|
+
|
41
|
+
##
|
42
|
+
# Baseline implementation for the add_association REST call
|
43
|
+
#
|
44
|
+
# @param request_pb [::Google::Cloud::Compute::V1::AddAssociationRegionNetworkFirewallPolicyRequest]
|
45
|
+
# A request object representing the call parameters. Required.
|
46
|
+
# @param options [::Gapic::CallOptions]
|
47
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
48
|
+
#
|
49
|
+
# @yield [result, response] Access the result along with the Faraday response object
|
50
|
+
# @yieldparam result [::Google::Cloud::Compute::V1::Operation]
|
51
|
+
# @yieldparam response [::Faraday::Response]
|
52
|
+
#
|
53
|
+
# @return [::Google::Cloud::Compute::V1::Operation]
|
54
|
+
# A result object deserialized from the server's reply
|
55
|
+
def add_association request_pb, options = nil
|
56
|
+
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
57
|
+
|
58
|
+
uri, body, query_string_params = transcode_add_association_request request_pb
|
59
|
+
response = @client_stub.make_post_request(
|
60
|
+
uri: uri,
|
61
|
+
body: body,
|
62
|
+
params: query_string_params,
|
63
|
+
options: options
|
64
|
+
)
|
65
|
+
result = ::Google::Cloud::Compute::V1::Operation.decode_json response.body, ignore_unknown_fields: true
|
66
|
+
|
67
|
+
yield result, response if block_given?
|
68
|
+
result
|
69
|
+
end
|
70
|
+
|
71
|
+
##
|
72
|
+
# GRPC transcoding helper method for the add_association REST call
|
73
|
+
#
|
74
|
+
# @param request_pb [::Google::Cloud::Compute::V1::AddAssociationRegionNetworkFirewallPolicyRequest]
|
75
|
+
# A request object representing the call parameters. Required.
|
76
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
77
|
+
# Uri, Body, Query string parameters
|
78
|
+
def transcode_add_association_request request_pb
|
79
|
+
uri = "/compute/v1/projects/#{request_pb.project}/regions/#{request_pb.region}/firewallPolicies/#{request_pb.firewall_policy}/addAssociation"
|
80
|
+
body = request_pb.firewall_policy_association_resource.to_json
|
81
|
+
query_string_params = {}
|
82
|
+
query_string_params["replaceExistingAssociation"] = request_pb.replace_existing_association.to_s if request_pb.has_replace_existing_association?
|
83
|
+
query_string_params["requestId"] = request_pb.request_id.to_s if request_pb.has_request_id?
|
84
|
+
|
85
|
+
[uri, body, query_string_params]
|
86
|
+
end
|
87
|
+
|
88
|
+
##
|
89
|
+
# Baseline implementation for the add_rule REST call
|
90
|
+
#
|
91
|
+
# @param request_pb [::Google::Cloud::Compute::V1::AddRuleRegionNetworkFirewallPolicyRequest]
|
92
|
+
# A request object representing the call parameters. Required.
|
93
|
+
# @param options [::Gapic::CallOptions]
|
94
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
95
|
+
#
|
96
|
+
# @yield [result, response] Access the result along with the Faraday response object
|
97
|
+
# @yieldparam result [::Google::Cloud::Compute::V1::Operation]
|
98
|
+
# @yieldparam response [::Faraday::Response]
|
99
|
+
#
|
100
|
+
# @return [::Google::Cloud::Compute::V1::Operation]
|
101
|
+
# A result object deserialized from the server's reply
|
102
|
+
def add_rule request_pb, options = nil
|
103
|
+
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
104
|
+
|
105
|
+
uri, body, query_string_params = transcode_add_rule_request request_pb
|
106
|
+
response = @client_stub.make_post_request(
|
107
|
+
uri: uri,
|
108
|
+
body: body,
|
109
|
+
params: query_string_params,
|
110
|
+
options: options
|
111
|
+
)
|
112
|
+
result = ::Google::Cloud::Compute::V1::Operation.decode_json response.body, ignore_unknown_fields: true
|
113
|
+
|
114
|
+
yield result, response if block_given?
|
115
|
+
result
|
116
|
+
end
|
117
|
+
|
118
|
+
##
|
119
|
+
# GRPC transcoding helper method for the add_rule REST call
|
120
|
+
#
|
121
|
+
# @param request_pb [::Google::Cloud::Compute::V1::AddRuleRegionNetworkFirewallPolicyRequest]
|
122
|
+
# A request object representing the call parameters. Required.
|
123
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
124
|
+
# Uri, Body, Query string parameters
|
125
|
+
def transcode_add_rule_request request_pb
|
126
|
+
uri = "/compute/v1/projects/#{request_pb.project}/regions/#{request_pb.region}/firewallPolicies/#{request_pb.firewall_policy}/addRule"
|
127
|
+
body = request_pb.firewall_policy_rule_resource.to_json
|
128
|
+
query_string_params = {}
|
129
|
+
query_string_params["maxPriority"] = request_pb.max_priority.to_s if request_pb.has_max_priority?
|
130
|
+
query_string_params["minPriority"] = request_pb.min_priority.to_s if request_pb.has_min_priority?
|
131
|
+
query_string_params["requestId"] = request_pb.request_id.to_s if request_pb.has_request_id?
|
132
|
+
|
133
|
+
[uri, body, query_string_params]
|
134
|
+
end
|
135
|
+
|
136
|
+
##
|
137
|
+
# Baseline implementation for the clone_rules REST call
|
138
|
+
#
|
139
|
+
# @param request_pb [::Google::Cloud::Compute::V1::CloneRulesRegionNetworkFirewallPolicyRequest]
|
140
|
+
# A request object representing the call parameters. Required.
|
141
|
+
# @param options [::Gapic::CallOptions]
|
142
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
143
|
+
#
|
144
|
+
# @yield [result, response] Access the result along with the Faraday response object
|
145
|
+
# @yieldparam result [::Google::Cloud::Compute::V1::Operation]
|
146
|
+
# @yieldparam response [::Faraday::Response]
|
147
|
+
#
|
148
|
+
# @return [::Google::Cloud::Compute::V1::Operation]
|
149
|
+
# A result object deserialized from the server's reply
|
150
|
+
def clone_rules request_pb, options = nil
|
151
|
+
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
152
|
+
|
153
|
+
uri, _body, query_string_params = transcode_clone_rules_request request_pb
|
154
|
+
response = @client_stub.make_post_request(
|
155
|
+
uri: uri,
|
156
|
+
params: query_string_params,
|
157
|
+
options: options
|
158
|
+
)
|
159
|
+
result = ::Google::Cloud::Compute::V1::Operation.decode_json response.body, ignore_unknown_fields: true
|
160
|
+
|
161
|
+
yield result, response if block_given?
|
162
|
+
result
|
163
|
+
end
|
164
|
+
|
165
|
+
##
|
166
|
+
# GRPC transcoding helper method for the clone_rules REST call
|
167
|
+
#
|
168
|
+
# @param request_pb [::Google::Cloud::Compute::V1::CloneRulesRegionNetworkFirewallPolicyRequest]
|
169
|
+
# A request object representing the call parameters. Required.
|
170
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
171
|
+
# Uri, Body, Query string parameters
|
172
|
+
def transcode_clone_rules_request request_pb
|
173
|
+
uri = "/compute/v1/projects/#{request_pb.project}/regions/#{request_pb.region}/firewallPolicies/#{request_pb.firewall_policy}/cloneRules"
|
174
|
+
body = nil
|
175
|
+
query_string_params = {}
|
176
|
+
query_string_params["requestId"] = request_pb.request_id.to_s if request_pb.has_request_id?
|
177
|
+
query_string_params["sourceFirewallPolicy"] = request_pb.source_firewall_policy.to_s if request_pb.has_source_firewall_policy?
|
178
|
+
|
179
|
+
[uri, body, query_string_params]
|
180
|
+
end
|
181
|
+
|
182
|
+
##
|
183
|
+
# Baseline implementation for the delete REST call
|
184
|
+
#
|
185
|
+
# @param request_pb [::Google::Cloud::Compute::V1::DeleteRegionNetworkFirewallPolicyRequest]
|
186
|
+
# A request object representing the call parameters. Required.
|
187
|
+
# @param options [::Gapic::CallOptions]
|
188
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
189
|
+
#
|
190
|
+
# @yield [result, response] Access the result along with the Faraday response object
|
191
|
+
# @yieldparam result [::Google::Cloud::Compute::V1::Operation]
|
192
|
+
# @yieldparam response [::Faraday::Response]
|
193
|
+
#
|
194
|
+
# @return [::Google::Cloud::Compute::V1::Operation]
|
195
|
+
# A result object deserialized from the server's reply
|
196
|
+
def delete request_pb, options = nil
|
197
|
+
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
198
|
+
|
199
|
+
uri, _body, query_string_params = transcode_delete_request request_pb
|
200
|
+
response = @client_stub.make_delete_request(
|
201
|
+
uri: uri,
|
202
|
+
params: query_string_params,
|
203
|
+
options: options
|
204
|
+
)
|
205
|
+
result = ::Google::Cloud::Compute::V1::Operation.decode_json response.body, ignore_unknown_fields: true
|
206
|
+
|
207
|
+
yield result, response if block_given?
|
208
|
+
result
|
209
|
+
end
|
210
|
+
|
211
|
+
##
|
212
|
+
# GRPC transcoding helper method for the delete REST call
|
213
|
+
#
|
214
|
+
# @param request_pb [::Google::Cloud::Compute::V1::DeleteRegionNetworkFirewallPolicyRequest]
|
215
|
+
# A request object representing the call parameters. Required.
|
216
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
217
|
+
# Uri, Body, Query string parameters
|
218
|
+
def transcode_delete_request request_pb
|
219
|
+
uri = "/compute/v1/projects/#{request_pb.project}/regions/#{request_pb.region}/firewallPolicies/#{request_pb.firewall_policy}"
|
220
|
+
body = nil
|
221
|
+
query_string_params = {}
|
222
|
+
query_string_params["requestId"] = request_pb.request_id.to_s if request_pb.has_request_id?
|
223
|
+
|
224
|
+
[uri, body, query_string_params]
|
225
|
+
end
|
226
|
+
|
227
|
+
##
|
228
|
+
# Baseline implementation for the get REST call
|
229
|
+
#
|
230
|
+
# @param request_pb [::Google::Cloud::Compute::V1::GetRegionNetworkFirewallPolicyRequest]
|
231
|
+
# A request object representing the call parameters. Required.
|
232
|
+
# @param options [::Gapic::CallOptions]
|
233
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
234
|
+
#
|
235
|
+
# @yield [result, response] Access the result along with the Faraday response object
|
236
|
+
# @yieldparam result [::Google::Cloud::Compute::V1::FirewallPolicy]
|
237
|
+
# @yieldparam response [::Faraday::Response]
|
238
|
+
#
|
239
|
+
# @return [::Google::Cloud::Compute::V1::FirewallPolicy]
|
240
|
+
# A result object deserialized from the server's reply
|
241
|
+
def get request_pb, options = nil
|
242
|
+
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
243
|
+
|
244
|
+
uri, _body, _query_string_params = transcode_get_request request_pb
|
245
|
+
response = @client_stub.make_get_request(
|
246
|
+
uri: uri,
|
247
|
+
options: options
|
248
|
+
)
|
249
|
+
result = ::Google::Cloud::Compute::V1::FirewallPolicy.decode_json response.body, ignore_unknown_fields: true
|
250
|
+
|
251
|
+
yield result, response if block_given?
|
252
|
+
result
|
253
|
+
end
|
254
|
+
|
255
|
+
##
|
256
|
+
# GRPC transcoding helper method for the get REST call
|
257
|
+
#
|
258
|
+
# @param request_pb [::Google::Cloud::Compute::V1::GetRegionNetworkFirewallPolicyRequest]
|
259
|
+
# A request object representing the call parameters. Required.
|
260
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
261
|
+
# Uri, Body, Query string parameters
|
262
|
+
def transcode_get_request request_pb
|
263
|
+
uri = "/compute/v1/projects/#{request_pb.project}/regions/#{request_pb.region}/firewallPolicies/#{request_pb.firewall_policy}"
|
264
|
+
body = nil
|
265
|
+
query_string_params = {}
|
266
|
+
|
267
|
+
[uri, body, query_string_params]
|
268
|
+
end
|
269
|
+
|
270
|
+
##
|
271
|
+
# Baseline implementation for the get_association REST call
|
272
|
+
#
|
273
|
+
# @param request_pb [::Google::Cloud::Compute::V1::GetAssociationRegionNetworkFirewallPolicyRequest]
|
274
|
+
# A request object representing the call parameters. Required.
|
275
|
+
# @param options [::Gapic::CallOptions]
|
276
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
277
|
+
#
|
278
|
+
# @yield [result, response] Access the result along with the Faraday response object
|
279
|
+
# @yieldparam result [::Google::Cloud::Compute::V1::FirewallPolicyAssociation]
|
280
|
+
# @yieldparam response [::Faraday::Response]
|
281
|
+
#
|
282
|
+
# @return [::Google::Cloud::Compute::V1::FirewallPolicyAssociation]
|
283
|
+
# A result object deserialized from the server's reply
|
284
|
+
def get_association request_pb, options = nil
|
285
|
+
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
286
|
+
|
287
|
+
uri, _body, query_string_params = transcode_get_association_request request_pb
|
288
|
+
response = @client_stub.make_get_request(
|
289
|
+
uri: uri,
|
290
|
+
params: query_string_params,
|
291
|
+
options: options
|
292
|
+
)
|
293
|
+
result = ::Google::Cloud::Compute::V1::FirewallPolicyAssociation.decode_json response.body, ignore_unknown_fields: true
|
294
|
+
|
295
|
+
yield result, response if block_given?
|
296
|
+
result
|
297
|
+
end
|
298
|
+
|
299
|
+
##
|
300
|
+
# GRPC transcoding helper method for the get_association REST call
|
301
|
+
#
|
302
|
+
# @param request_pb [::Google::Cloud::Compute::V1::GetAssociationRegionNetworkFirewallPolicyRequest]
|
303
|
+
# A request object representing the call parameters. Required.
|
304
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
305
|
+
# Uri, Body, Query string parameters
|
306
|
+
def transcode_get_association_request request_pb
|
307
|
+
uri = "/compute/v1/projects/#{request_pb.project}/regions/#{request_pb.region}/firewallPolicies/#{request_pb.firewall_policy}/getAssociation"
|
308
|
+
body = nil
|
309
|
+
query_string_params = {}
|
310
|
+
query_string_params["name"] = request_pb.name.to_s if request_pb.has_name?
|
311
|
+
|
312
|
+
[uri, body, query_string_params]
|
313
|
+
end
|
314
|
+
|
315
|
+
##
|
316
|
+
# Baseline implementation for the get_effective_firewalls REST call
|
317
|
+
#
|
318
|
+
# @param request_pb [::Google::Cloud::Compute::V1::GetEffectiveFirewallsRegionNetworkFirewallPolicyRequest]
|
319
|
+
# A request object representing the call parameters. Required.
|
320
|
+
# @param options [::Gapic::CallOptions]
|
321
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
322
|
+
#
|
323
|
+
# @yield [result, response] Access the result along with the Faraday response object
|
324
|
+
# @yieldparam result [::Google::Cloud::Compute::V1::RegionNetworkFirewallPoliciesGetEffectiveFirewallsResponse]
|
325
|
+
# @yieldparam response [::Faraday::Response]
|
326
|
+
#
|
327
|
+
# @return [::Google::Cloud::Compute::V1::RegionNetworkFirewallPoliciesGetEffectiveFirewallsResponse]
|
328
|
+
# A result object deserialized from the server's reply
|
329
|
+
def get_effective_firewalls request_pb, options = nil
|
330
|
+
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
331
|
+
|
332
|
+
uri, _body, query_string_params = transcode_get_effective_firewalls_request request_pb
|
333
|
+
response = @client_stub.make_get_request(
|
334
|
+
uri: uri,
|
335
|
+
params: query_string_params,
|
336
|
+
options: options
|
337
|
+
)
|
338
|
+
result = ::Google::Cloud::Compute::V1::RegionNetworkFirewallPoliciesGetEffectiveFirewallsResponse.decode_json response.body, ignore_unknown_fields: true
|
339
|
+
|
340
|
+
yield result, response if block_given?
|
341
|
+
result
|
342
|
+
end
|
343
|
+
|
344
|
+
##
|
345
|
+
# GRPC transcoding helper method for the get_effective_firewalls REST call
|
346
|
+
#
|
347
|
+
# @param request_pb [::Google::Cloud::Compute::V1::GetEffectiveFirewallsRegionNetworkFirewallPolicyRequest]
|
348
|
+
# A request object representing the call parameters. Required.
|
349
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
350
|
+
# Uri, Body, Query string parameters
|
351
|
+
def transcode_get_effective_firewalls_request request_pb
|
352
|
+
uri = "/compute/v1/projects/#{request_pb.project}/regions/#{request_pb.region}/firewallPolicies/getEffectiveFirewalls"
|
353
|
+
body = nil
|
354
|
+
query_string_params = {}
|
355
|
+
query_string_params["network"] = request_pb.network.to_s
|
356
|
+
|
357
|
+
[uri, body, query_string_params]
|
358
|
+
end
|
359
|
+
|
360
|
+
##
|
361
|
+
# Baseline implementation for the get_iam_policy REST call
|
362
|
+
#
|
363
|
+
# @param request_pb [::Google::Cloud::Compute::V1::GetIamPolicyRegionNetworkFirewallPolicyRequest]
|
364
|
+
# A request object representing the call parameters. Required.
|
365
|
+
# @param options [::Gapic::CallOptions]
|
366
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
367
|
+
#
|
368
|
+
# @yield [result, response] Access the result along with the Faraday response object
|
369
|
+
# @yieldparam result [::Google::Cloud::Compute::V1::Policy]
|
370
|
+
# @yieldparam response [::Faraday::Response]
|
371
|
+
#
|
372
|
+
# @return [::Google::Cloud::Compute::V1::Policy]
|
373
|
+
# A result object deserialized from the server's reply
|
374
|
+
def get_iam_policy request_pb, options = nil
|
375
|
+
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
376
|
+
|
377
|
+
uri, _body, query_string_params = transcode_get_iam_policy_request request_pb
|
378
|
+
response = @client_stub.make_get_request(
|
379
|
+
uri: uri,
|
380
|
+
params: query_string_params,
|
381
|
+
options: options
|
382
|
+
)
|
383
|
+
result = ::Google::Cloud::Compute::V1::Policy.decode_json response.body, ignore_unknown_fields: true
|
384
|
+
|
385
|
+
yield result, response if block_given?
|
386
|
+
result
|
387
|
+
end
|
388
|
+
|
389
|
+
##
|
390
|
+
# GRPC transcoding helper method for the get_iam_policy REST call
|
391
|
+
#
|
392
|
+
# @param request_pb [::Google::Cloud::Compute::V1::GetIamPolicyRegionNetworkFirewallPolicyRequest]
|
393
|
+
# A request object representing the call parameters. Required.
|
394
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
395
|
+
# Uri, Body, Query string parameters
|
396
|
+
def transcode_get_iam_policy_request request_pb
|
397
|
+
uri = "/compute/v1/projects/#{request_pb.project}/regions/#{request_pb.region}/firewallPolicies/#{request_pb.resource}/getIamPolicy"
|
398
|
+
body = nil
|
399
|
+
query_string_params = {}
|
400
|
+
query_string_params["optionsRequestedPolicyVersion"] = request_pb.options_requested_policy_version.to_s if request_pb.has_options_requested_policy_version?
|
401
|
+
|
402
|
+
[uri, body, query_string_params]
|
403
|
+
end
|
404
|
+
|
405
|
+
##
|
406
|
+
# Baseline implementation for the get_rule REST call
|
407
|
+
#
|
408
|
+
# @param request_pb [::Google::Cloud::Compute::V1::GetRuleRegionNetworkFirewallPolicyRequest]
|
409
|
+
# A request object representing the call parameters. Required.
|
410
|
+
# @param options [::Gapic::CallOptions]
|
411
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
412
|
+
#
|
413
|
+
# @yield [result, response] Access the result along with the Faraday response object
|
414
|
+
# @yieldparam result [::Google::Cloud::Compute::V1::FirewallPolicyRule]
|
415
|
+
# @yieldparam response [::Faraday::Response]
|
416
|
+
#
|
417
|
+
# @return [::Google::Cloud::Compute::V1::FirewallPolicyRule]
|
418
|
+
# A result object deserialized from the server's reply
|
419
|
+
def get_rule request_pb, options = nil
|
420
|
+
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
421
|
+
|
422
|
+
uri, _body, query_string_params = transcode_get_rule_request request_pb
|
423
|
+
response = @client_stub.make_get_request(
|
424
|
+
uri: uri,
|
425
|
+
params: query_string_params,
|
426
|
+
options: options
|
427
|
+
)
|
428
|
+
result = ::Google::Cloud::Compute::V1::FirewallPolicyRule.decode_json response.body, ignore_unknown_fields: true
|
429
|
+
|
430
|
+
yield result, response if block_given?
|
431
|
+
result
|
432
|
+
end
|
433
|
+
|
434
|
+
##
|
435
|
+
# GRPC transcoding helper method for the get_rule REST call
|
436
|
+
#
|
437
|
+
# @param request_pb [::Google::Cloud::Compute::V1::GetRuleRegionNetworkFirewallPolicyRequest]
|
438
|
+
# A request object representing the call parameters. Required.
|
439
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
440
|
+
# Uri, Body, Query string parameters
|
441
|
+
def transcode_get_rule_request request_pb
|
442
|
+
uri = "/compute/v1/projects/#{request_pb.project}/regions/#{request_pb.region}/firewallPolicies/#{request_pb.firewall_policy}/getRule"
|
443
|
+
body = nil
|
444
|
+
query_string_params = {}
|
445
|
+
query_string_params["priority"] = request_pb.priority.to_s if request_pb.has_priority?
|
446
|
+
|
447
|
+
[uri, body, query_string_params]
|
448
|
+
end
|
449
|
+
|
450
|
+
##
|
451
|
+
# Baseline implementation for the insert REST call
|
452
|
+
#
|
453
|
+
# @param request_pb [::Google::Cloud::Compute::V1::InsertRegionNetworkFirewallPolicyRequest]
|
454
|
+
# A request object representing the call parameters. Required.
|
455
|
+
# @param options [::Gapic::CallOptions]
|
456
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
457
|
+
#
|
458
|
+
# @yield [result, response] Access the result along with the Faraday response object
|
459
|
+
# @yieldparam result [::Google::Cloud::Compute::V1::Operation]
|
460
|
+
# @yieldparam response [::Faraday::Response]
|
461
|
+
#
|
462
|
+
# @return [::Google::Cloud::Compute::V1::Operation]
|
463
|
+
# A result object deserialized from the server's reply
|
464
|
+
def insert request_pb, options = nil
|
465
|
+
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
466
|
+
|
467
|
+
uri, body, query_string_params = transcode_insert_request request_pb
|
468
|
+
response = @client_stub.make_post_request(
|
469
|
+
uri: uri,
|
470
|
+
body: body,
|
471
|
+
params: query_string_params,
|
472
|
+
options: options
|
473
|
+
)
|
474
|
+
result = ::Google::Cloud::Compute::V1::Operation.decode_json response.body, ignore_unknown_fields: true
|
475
|
+
|
476
|
+
yield result, response if block_given?
|
477
|
+
result
|
478
|
+
end
|
479
|
+
|
480
|
+
##
|
481
|
+
# GRPC transcoding helper method for the insert REST call
|
482
|
+
#
|
483
|
+
# @param request_pb [::Google::Cloud::Compute::V1::InsertRegionNetworkFirewallPolicyRequest]
|
484
|
+
# A request object representing the call parameters. Required.
|
485
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
486
|
+
# Uri, Body, Query string parameters
|
487
|
+
def transcode_insert_request request_pb
|
488
|
+
uri = "/compute/v1/projects/#{request_pb.project}/regions/#{request_pb.region}/firewallPolicies"
|
489
|
+
body = request_pb.firewall_policy_resource.to_json
|
490
|
+
query_string_params = {}
|
491
|
+
query_string_params["requestId"] = request_pb.request_id.to_s if request_pb.has_request_id?
|
492
|
+
|
493
|
+
[uri, body, query_string_params]
|
494
|
+
end
|
495
|
+
|
496
|
+
##
|
497
|
+
# Baseline implementation for the list REST call
|
498
|
+
#
|
499
|
+
# @param request_pb [::Google::Cloud::Compute::V1::ListRegionNetworkFirewallPoliciesRequest]
|
500
|
+
# A request object representing the call parameters. Required.
|
501
|
+
# @param options [::Gapic::CallOptions]
|
502
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
503
|
+
#
|
504
|
+
# @yield [result, response] Access the result along with the Faraday response object
|
505
|
+
# @yieldparam result [::Google::Cloud::Compute::V1::FirewallPolicyList]
|
506
|
+
# @yieldparam response [::Faraday::Response]
|
507
|
+
#
|
508
|
+
# @return [::Google::Cloud::Compute::V1::FirewallPolicyList]
|
509
|
+
# A result object deserialized from the server's reply
|
510
|
+
def list request_pb, options = nil
|
511
|
+
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
512
|
+
|
513
|
+
uri, _body, query_string_params = transcode_list_request request_pb
|
514
|
+
response = @client_stub.make_get_request(
|
515
|
+
uri: uri,
|
516
|
+
params: query_string_params,
|
517
|
+
options: options
|
518
|
+
)
|
519
|
+
result = ::Google::Cloud::Compute::V1::FirewallPolicyList.decode_json response.body, ignore_unknown_fields: true
|
520
|
+
|
521
|
+
yield result, response if block_given?
|
522
|
+
result
|
523
|
+
end
|
524
|
+
|
525
|
+
##
|
526
|
+
# GRPC transcoding helper method for the list REST call
|
527
|
+
#
|
528
|
+
# @param request_pb [::Google::Cloud::Compute::V1::ListRegionNetworkFirewallPoliciesRequest]
|
529
|
+
# A request object representing the call parameters. Required.
|
530
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
531
|
+
# Uri, Body, Query string parameters
|
532
|
+
def transcode_list_request request_pb
|
533
|
+
uri = "/compute/v1/projects/#{request_pb.project}/regions/#{request_pb.region}/firewallPolicies"
|
534
|
+
body = nil
|
535
|
+
query_string_params = {}
|
536
|
+
query_string_params["filter"] = request_pb.filter.to_s if request_pb.has_filter?
|
537
|
+
query_string_params["maxResults"] = request_pb.max_results.to_s if request_pb.has_max_results?
|
538
|
+
query_string_params["orderBy"] = request_pb.order_by.to_s if request_pb.has_order_by?
|
539
|
+
query_string_params["pageToken"] = request_pb.page_token.to_s if request_pb.has_page_token?
|
540
|
+
query_string_params["returnPartialSuccess"] = request_pb.return_partial_success.to_s if request_pb.has_return_partial_success?
|
541
|
+
|
542
|
+
[uri, body, query_string_params]
|
543
|
+
end
|
544
|
+
|
545
|
+
##
|
546
|
+
# Baseline implementation for the patch REST call
|
547
|
+
#
|
548
|
+
# @param request_pb [::Google::Cloud::Compute::V1::PatchRegionNetworkFirewallPolicyRequest]
|
549
|
+
# A request object representing the call parameters. Required.
|
550
|
+
# @param options [::Gapic::CallOptions]
|
551
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
552
|
+
#
|
553
|
+
# @yield [result, response] Access the result along with the Faraday response object
|
554
|
+
# @yieldparam result [::Google::Cloud::Compute::V1::Operation]
|
555
|
+
# @yieldparam response [::Faraday::Response]
|
556
|
+
#
|
557
|
+
# @return [::Google::Cloud::Compute::V1::Operation]
|
558
|
+
# A result object deserialized from the server's reply
|
559
|
+
def patch request_pb, options = nil
|
560
|
+
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
561
|
+
|
562
|
+
uri, body, query_string_params = transcode_patch_request request_pb
|
563
|
+
response = @client_stub.make_patch_request(
|
564
|
+
uri: uri,
|
565
|
+
body: body,
|
566
|
+
params: query_string_params,
|
567
|
+
options: options
|
568
|
+
)
|
569
|
+
result = ::Google::Cloud::Compute::V1::Operation.decode_json response.body, ignore_unknown_fields: true
|
570
|
+
|
571
|
+
yield result, response if block_given?
|
572
|
+
result
|
573
|
+
end
|
574
|
+
|
575
|
+
##
|
576
|
+
# GRPC transcoding helper method for the patch REST call
|
577
|
+
#
|
578
|
+
# @param request_pb [::Google::Cloud::Compute::V1::PatchRegionNetworkFirewallPolicyRequest]
|
579
|
+
# A request object representing the call parameters. Required.
|
580
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
581
|
+
# Uri, Body, Query string parameters
|
582
|
+
def transcode_patch_request request_pb
|
583
|
+
uri = "/compute/v1/projects/#{request_pb.project}/regions/#{request_pb.region}/firewallPolicies/#{request_pb.firewall_policy}"
|
584
|
+
body = request_pb.firewall_policy_resource.to_json
|
585
|
+
query_string_params = {}
|
586
|
+
query_string_params["requestId"] = request_pb.request_id.to_s if request_pb.has_request_id?
|
587
|
+
|
588
|
+
[uri, body, query_string_params]
|
589
|
+
end
|
590
|
+
|
591
|
+
##
|
592
|
+
# Baseline implementation for the patch_rule REST call
|
593
|
+
#
|
594
|
+
# @param request_pb [::Google::Cloud::Compute::V1::PatchRuleRegionNetworkFirewallPolicyRequest]
|
595
|
+
# A request object representing the call parameters. Required.
|
596
|
+
# @param options [::Gapic::CallOptions]
|
597
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
598
|
+
#
|
599
|
+
# @yield [result, response] Access the result along with the Faraday response object
|
600
|
+
# @yieldparam result [::Google::Cloud::Compute::V1::Operation]
|
601
|
+
# @yieldparam response [::Faraday::Response]
|
602
|
+
#
|
603
|
+
# @return [::Google::Cloud::Compute::V1::Operation]
|
604
|
+
# A result object deserialized from the server's reply
|
605
|
+
def patch_rule request_pb, options = nil
|
606
|
+
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
607
|
+
|
608
|
+
uri, body, query_string_params = transcode_patch_rule_request request_pb
|
609
|
+
response = @client_stub.make_post_request(
|
610
|
+
uri: uri,
|
611
|
+
body: body,
|
612
|
+
params: query_string_params,
|
613
|
+
options: options
|
614
|
+
)
|
615
|
+
result = ::Google::Cloud::Compute::V1::Operation.decode_json response.body, ignore_unknown_fields: true
|
616
|
+
|
617
|
+
yield result, response if block_given?
|
618
|
+
result
|
619
|
+
end
|
620
|
+
|
621
|
+
##
|
622
|
+
# GRPC transcoding helper method for the patch_rule REST call
|
623
|
+
#
|
624
|
+
# @param request_pb [::Google::Cloud::Compute::V1::PatchRuleRegionNetworkFirewallPolicyRequest]
|
625
|
+
# A request object representing the call parameters. Required.
|
626
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
627
|
+
# Uri, Body, Query string parameters
|
628
|
+
def transcode_patch_rule_request request_pb
|
629
|
+
uri = "/compute/v1/projects/#{request_pb.project}/regions/#{request_pb.region}/firewallPolicies/#{request_pb.firewall_policy}/patchRule"
|
630
|
+
body = request_pb.firewall_policy_rule_resource.to_json
|
631
|
+
query_string_params = {}
|
632
|
+
query_string_params["priority"] = request_pb.priority.to_s if request_pb.has_priority?
|
633
|
+
query_string_params["requestId"] = request_pb.request_id.to_s if request_pb.has_request_id?
|
634
|
+
|
635
|
+
[uri, body, query_string_params]
|
636
|
+
end
|
637
|
+
|
638
|
+
##
|
639
|
+
# Baseline implementation for the remove_association REST call
|
640
|
+
#
|
641
|
+
# @param request_pb [::Google::Cloud::Compute::V1::RemoveAssociationRegionNetworkFirewallPolicyRequest]
|
642
|
+
# A request object representing the call parameters. Required.
|
643
|
+
# @param options [::Gapic::CallOptions]
|
644
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
645
|
+
#
|
646
|
+
# @yield [result, response] Access the result along with the Faraday response object
|
647
|
+
# @yieldparam result [::Google::Cloud::Compute::V1::Operation]
|
648
|
+
# @yieldparam response [::Faraday::Response]
|
649
|
+
#
|
650
|
+
# @return [::Google::Cloud::Compute::V1::Operation]
|
651
|
+
# A result object deserialized from the server's reply
|
652
|
+
def remove_association request_pb, options = nil
|
653
|
+
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
654
|
+
|
655
|
+
uri, _body, query_string_params = transcode_remove_association_request request_pb
|
656
|
+
response = @client_stub.make_post_request(
|
657
|
+
uri: uri,
|
658
|
+
params: query_string_params,
|
659
|
+
options: options
|
660
|
+
)
|
661
|
+
result = ::Google::Cloud::Compute::V1::Operation.decode_json response.body, ignore_unknown_fields: true
|
662
|
+
|
663
|
+
yield result, response if block_given?
|
664
|
+
result
|
665
|
+
end
|
666
|
+
|
667
|
+
##
|
668
|
+
# GRPC transcoding helper method for the remove_association REST call
|
669
|
+
#
|
670
|
+
# @param request_pb [::Google::Cloud::Compute::V1::RemoveAssociationRegionNetworkFirewallPolicyRequest]
|
671
|
+
# A request object representing the call parameters. Required.
|
672
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
673
|
+
# Uri, Body, Query string parameters
|
674
|
+
def transcode_remove_association_request request_pb
|
675
|
+
uri = "/compute/v1/projects/#{request_pb.project}/regions/#{request_pb.region}/firewallPolicies/#{request_pb.firewall_policy}/removeAssociation"
|
676
|
+
body = nil
|
677
|
+
query_string_params = {}
|
678
|
+
query_string_params["name"] = request_pb.name.to_s if request_pb.has_name?
|
679
|
+
query_string_params["requestId"] = request_pb.request_id.to_s if request_pb.has_request_id?
|
680
|
+
|
681
|
+
[uri, body, query_string_params]
|
682
|
+
end
|
683
|
+
|
684
|
+
##
|
685
|
+
# Baseline implementation for the remove_rule REST call
|
686
|
+
#
|
687
|
+
# @param request_pb [::Google::Cloud::Compute::V1::RemoveRuleRegionNetworkFirewallPolicyRequest]
|
688
|
+
# A request object representing the call parameters. Required.
|
689
|
+
# @param options [::Gapic::CallOptions]
|
690
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
691
|
+
#
|
692
|
+
# @yield [result, response] Access the result along with the Faraday response object
|
693
|
+
# @yieldparam result [::Google::Cloud::Compute::V1::Operation]
|
694
|
+
# @yieldparam response [::Faraday::Response]
|
695
|
+
#
|
696
|
+
# @return [::Google::Cloud::Compute::V1::Operation]
|
697
|
+
# A result object deserialized from the server's reply
|
698
|
+
def remove_rule request_pb, options = nil
|
699
|
+
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
700
|
+
|
701
|
+
uri, _body, query_string_params = transcode_remove_rule_request request_pb
|
702
|
+
response = @client_stub.make_post_request(
|
703
|
+
uri: uri,
|
704
|
+
params: query_string_params,
|
705
|
+
options: options
|
706
|
+
)
|
707
|
+
result = ::Google::Cloud::Compute::V1::Operation.decode_json response.body, ignore_unknown_fields: true
|
708
|
+
|
709
|
+
yield result, response if block_given?
|
710
|
+
result
|
711
|
+
end
|
712
|
+
|
713
|
+
##
|
714
|
+
# GRPC transcoding helper method for the remove_rule REST call
|
715
|
+
#
|
716
|
+
# @param request_pb [::Google::Cloud::Compute::V1::RemoveRuleRegionNetworkFirewallPolicyRequest]
|
717
|
+
# A request object representing the call parameters. Required.
|
718
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
719
|
+
# Uri, Body, Query string parameters
|
720
|
+
def transcode_remove_rule_request request_pb
|
721
|
+
uri = "/compute/v1/projects/#{request_pb.project}/regions/#{request_pb.region}/firewallPolicies/#{request_pb.firewall_policy}/removeRule"
|
722
|
+
body = nil
|
723
|
+
query_string_params = {}
|
724
|
+
query_string_params["priority"] = request_pb.priority.to_s if request_pb.has_priority?
|
725
|
+
query_string_params["requestId"] = request_pb.request_id.to_s if request_pb.has_request_id?
|
726
|
+
|
727
|
+
[uri, body, query_string_params]
|
728
|
+
end
|
729
|
+
|
730
|
+
##
|
731
|
+
# Baseline implementation for the set_iam_policy REST call
|
732
|
+
#
|
733
|
+
# @param request_pb [::Google::Cloud::Compute::V1::SetIamPolicyRegionNetworkFirewallPolicyRequest]
|
734
|
+
# A request object representing the call parameters. Required.
|
735
|
+
# @param options [::Gapic::CallOptions]
|
736
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
737
|
+
#
|
738
|
+
# @yield [result, response] Access the result along with the Faraday response object
|
739
|
+
# @yieldparam result [::Google::Cloud::Compute::V1::Policy]
|
740
|
+
# @yieldparam response [::Faraday::Response]
|
741
|
+
#
|
742
|
+
# @return [::Google::Cloud::Compute::V1::Policy]
|
743
|
+
# A result object deserialized from the server's reply
|
744
|
+
def set_iam_policy request_pb, options = nil
|
745
|
+
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
746
|
+
|
747
|
+
uri, body, _query_string_params = transcode_set_iam_policy_request request_pb
|
748
|
+
response = @client_stub.make_post_request(
|
749
|
+
uri: uri,
|
750
|
+
body: body,
|
751
|
+
options: options
|
752
|
+
)
|
753
|
+
result = ::Google::Cloud::Compute::V1::Policy.decode_json response.body, ignore_unknown_fields: true
|
754
|
+
|
755
|
+
yield result, response if block_given?
|
756
|
+
result
|
757
|
+
end
|
758
|
+
|
759
|
+
##
|
760
|
+
# GRPC transcoding helper method for the set_iam_policy REST call
|
761
|
+
#
|
762
|
+
# @param request_pb [::Google::Cloud::Compute::V1::SetIamPolicyRegionNetworkFirewallPolicyRequest]
|
763
|
+
# A request object representing the call parameters. Required.
|
764
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
765
|
+
# Uri, Body, Query string parameters
|
766
|
+
def transcode_set_iam_policy_request request_pb
|
767
|
+
uri = "/compute/v1/projects/#{request_pb.project}/regions/#{request_pb.region}/firewallPolicies/#{request_pb.resource}/setIamPolicy"
|
768
|
+
body = request_pb.region_set_policy_request_resource.to_json
|
769
|
+
query_string_params = {}
|
770
|
+
|
771
|
+
[uri, body, query_string_params]
|
772
|
+
end
|
773
|
+
|
774
|
+
##
|
775
|
+
# Baseline implementation for the test_iam_permissions REST call
|
776
|
+
#
|
777
|
+
# @param request_pb [::Google::Cloud::Compute::V1::TestIamPermissionsRegionNetworkFirewallPolicyRequest]
|
778
|
+
# A request object representing the call parameters. Required.
|
779
|
+
# @param options [::Gapic::CallOptions]
|
780
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
781
|
+
#
|
782
|
+
# @yield [result, response] Access the result along with the Faraday response object
|
783
|
+
# @yieldparam result [::Google::Cloud::Compute::V1::TestPermissionsResponse]
|
784
|
+
# @yieldparam response [::Faraday::Response]
|
785
|
+
#
|
786
|
+
# @return [::Google::Cloud::Compute::V1::TestPermissionsResponse]
|
787
|
+
# A result object deserialized from the server's reply
|
788
|
+
def test_iam_permissions request_pb, options = nil
|
789
|
+
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
790
|
+
|
791
|
+
uri, body, _query_string_params = transcode_test_iam_permissions_request request_pb
|
792
|
+
response = @client_stub.make_post_request(
|
793
|
+
uri: uri,
|
794
|
+
body: body,
|
795
|
+
options: options
|
796
|
+
)
|
797
|
+
result = ::Google::Cloud::Compute::V1::TestPermissionsResponse.decode_json response.body, ignore_unknown_fields: true
|
798
|
+
|
799
|
+
yield result, response if block_given?
|
800
|
+
result
|
801
|
+
end
|
802
|
+
|
803
|
+
##
|
804
|
+
# GRPC transcoding helper method for the test_iam_permissions REST call
|
805
|
+
#
|
806
|
+
# @param request_pb [::Google::Cloud::Compute::V1::TestIamPermissionsRegionNetworkFirewallPolicyRequest]
|
807
|
+
# A request object representing the call parameters. Required.
|
808
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
809
|
+
# Uri, Body, Query string parameters
|
810
|
+
def transcode_test_iam_permissions_request request_pb
|
811
|
+
uri = "/compute/v1/projects/#{request_pb.project}/regions/#{request_pb.region}/firewallPolicies/#{request_pb.resource}/testIamPermissions"
|
812
|
+
body = request_pb.test_permissions_request_resource.to_json
|
813
|
+
query_string_params = {}
|
814
|
+
|
815
|
+
[uri, body, query_string_params]
|
816
|
+
end
|
817
|
+
end
|
818
|
+
end
|
819
|
+
end
|
820
|
+
end
|
821
|
+
end
|
822
|
+
end
|
823
|
+
end
|