google-cloud-compute-v1 1.1.0 → 1.4.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 +5 -0
- data/lib/google/cloud/compute/v1/accelerator_types/rest/client.rb +2 -2
- data/lib/google/cloud/compute/v1/addresses/rest/client.rb +37 -8
- data/lib/google/cloud/compute/v1/autoscalers/rest/client.rb +59 -14
- data/lib/google/cloud/compute/v1/backend_buckets/rest/client.rb +84 -22
- data/lib/google/cloud/compute/v1/backend_services/rest/client.rb +95 -26
- data/lib/google/cloud/compute/v1/compute_pb.rb +671 -3
- data/lib/google/cloud/compute/v1/disk_types/rest/client.rb +2 -2
- data/lib/google/cloud/compute/v1/disks/rest/client.rb +93 -24
- data/lib/google/cloud/compute/v1/external_vpn_gateways/rest/client.rb +44 -10
- data/lib/google/cloud/compute/v1/firewall_policies/rest/client.rb +98 -31
- data/lib/google/cloud/compute/v1/firewall_policies/rest/service_stub.rb +2 -2
- data/lib/google/cloud/compute/v1/firewalls/rest/client.rb +54 -13
- data/lib/google/cloud/compute/v1/forwarding_rules/rest/client.rb +70 -17
- data/lib/google/cloud/compute/v1/global_addresses/rest/client.rb +34 -7
- data/lib/google/cloud/compute/v1/global_forwarding_rules/rest/client.rb +64 -16
- data/lib/google/cloud/compute/v1/global_network_endpoint_groups/rest/client.rb +55 -14
- data/lib/google/cloud/compute/v1/global_operations/rest/client.rb +2 -2
- data/lib/google/cloud/compute/v1/global_operations/rest/nonstandard_lro.rb +68 -0
- data/lib/google/cloud/compute/v1/global_operations.rb +1 -0
- data/lib/google/cloud/compute/v1/global_organization_operations/rest/client.rb +1 -1
- data/lib/google/cloud/compute/v1/global_organization_operations/rest/nonstandard_lro.rb +68 -0
- data/lib/google/cloud/compute/v1/global_organization_operations.rb +1 -0
- data/lib/google/cloud/compute/v1/global_public_delegated_prefixes/rest/client.rb +44 -10
- data/lib/google/cloud/compute/v1/health_checks/rest/client.rb +55 -14
- data/lib/google/cloud/compute/v1/images/rest/client.rb +64 -16
- data/lib/google/cloud/compute/v1/instance_group_managers/rest/client.rb +177 -52
- data/lib/google/cloud/compute/v1/instance_groups/rest/client.rb +72 -19
- data/lib/google/cloud/compute/v1/instance_templates/rest/client.rb +34 -7
- data/lib/google/cloud/compute/v1/instances/rest/client.rb +372 -101
- data/lib/google/cloud/compute/v1/interconnect_attachments/rest/client.rb +48 -11
- data/lib/google/cloud/compute/v1/interconnect_locations/rest/client.rb +1 -1
- data/lib/google/cloud/compute/v1/interconnects/rest/client.rb +44 -10
- data/lib/google/cloud/compute/v1/licenses/rest/client.rb +34 -7
- data/lib/google/cloud/compute/v1/machine_images/rest/client.rb +34 -7
- data/lib/google/cloud/compute/v1/machine_types/rest/client.rb +2 -2
- 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_endpoint_groups/rest/client.rb +60 -15
- 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/networks/rest/client.rb +85 -23
- data/lib/google/cloud/compute/v1/node_groups/rest/client.rb +82 -21
- data/lib/google/cloud/compute/v1/node_templates/rest/client.rb +37 -8
- data/lib/google/cloud/compute/v1/node_types/rest/client.rb +2 -2
- data/lib/google/cloud/compute/v1/packet_mirrorings/rest/client.rb +48 -11
- data/lib/google/cloud/compute/v1/projects/rest/client.rb +105 -29
- data/lib/google/cloud/compute/v1/public_advertised_prefixes/rest/client.rb +44 -10
- data/lib/google/cloud/compute/v1/public_delegated_prefixes/rest/client.rb +48 -11
- data/lib/google/cloud/compute/v1/region_autoscalers/rest/client.rb +58 -13
- data/lib/google/cloud/compute/v1/region_backend_services/rest/client.rb +58 -13
- data/lib/google/cloud/compute/v1/region_commitments/rest/client.rb +37 -8
- data/lib/google/cloud/compute/v1/region_disk_types/rest/client.rb +1 -1
- data/lib/google/cloud/compute/v1/region_disks/rest/client.rb +91 -22
- data/lib/google/cloud/compute/v1/region_health_check_services/rest/client.rb +47 -10
- data/lib/google/cloud/compute/v1/region_health_checks/rest/client.rb +58 -13
- data/lib/google/cloud/compute/v1/region_instance_group_managers/rest/client.rb +176 -51
- data/lib/google/cloud/compute/v1/region_instance_groups/rest/client.rb +26 -5
- data/lib/google/cloud/compute/v1/region_instances/rest/client.rb +24 -3
- data/lib/google/cloud/compute/v1/region_network_endpoint_groups/rest/client.rb +36 -7
- 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_notification_endpoints/rest/client.rb +36 -7
- data/lib/google/cloud/compute/v1/region_operations/rest/client.rb +1 -1
- data/lib/google/cloud/compute/v1/region_operations/rest/nonstandard_lro.rb +68 -0
- data/lib/google/cloud/compute/v1/region_operations.rb +1 -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_ssl_certificates/rest/client.rb +36 -7
- data/lib/google/cloud/compute/v1/region_target_http_proxies/rest/client.rb +47 -10
- data/lib/google/cloud/compute/v1/region_target_https_proxies/rest/client.rb +145 -13
- data/lib/google/cloud/compute/v1/region_target_https_proxies/rest/service_stub.rb +46 -0
- data/lib/google/cloud/compute/v1/region_url_maps/rest/client.rb +58 -13
- data/lib/google/cloud/compute/v1/regions/rest/client.rb +1 -1
- data/lib/google/cloud/compute/v1/reservations/rest/client.rb +59 -14
- data/lib/google/cloud/compute/v1/resource_policies/rest/client.rb +37 -8
- data/lib/google/cloud/compute/v1/routers/rest/client.rb +60 -15
- data/lib/google/cloud/compute/v1/routes/rest/client.rb +34 -7
- data/lib/google/cloud/compute/v1/security_policies/rest/client.rb +170 -23
- data/lib/google/cloud/compute/v1/security_policies/rest/service_stub.rb +55 -1
- data/lib/google/cloud/compute/v1/service_attachments/rest/client.rb +48 -11
- data/lib/google/cloud/compute/v1/snapshots/rest/client.rb +44 -10
- data/lib/google/cloud/compute/v1/ssl_certificates/rest/client.rb +35 -8
- data/lib/google/cloud/compute/v1/ssl_policies/rest/client.rb +45 -11
- data/lib/google/cloud/compute/v1/subnetworks/rest/client.rb +71 -18
- data/lib/google/cloud/compute/v1/target_grpc_proxies/rest/client.rb +44 -10
- data/lib/google/cloud/compute/v1/target_http_proxies/rest/client.rb +55 -14
- data/lib/google/cloud/compute/v1/target_https_proxies/rest/client.rb +169 -23
- data/lib/google/cloud/compute/v1/target_https_proxies/rest/service_stub.rb +46 -0
- data/lib/google/cloud/compute/v1/target_instances/rest/client.rb +37 -8
- data/lib/google/cloud/compute/v1/target_pools/rest/client.rb +92 -23
- data/lib/google/cloud/compute/v1/target_ssl_proxies/rest/client.rb +158 -19
- data/lib/google/cloud/compute/v1/target_ssl_proxies/rest/service_stub.rb +46 -0
- data/lib/google/cloud/compute/v1/target_tcp_proxies/rest/client.rb +54 -13
- data/lib/google/cloud/compute/v1/target_vpn_gateways/rest/client.rb +37 -8
- data/lib/google/cloud/compute/v1/url_maps/rest/client.rb +65 -17
- data/lib/google/cloud/compute/v1/version.rb +1 -1
- data/lib/google/cloud/compute/v1/vpn_gateways/rest/client.rb +48 -11
- data/lib/google/cloud/compute/v1/vpn_tunnels/rest/client.rb +37 -8
- data/lib/google/cloud/compute/v1/zone_operations/rest/client.rb +1 -1
- data/lib/google/cloud/compute/v1/zone_operations/rest/nonstandard_lro.rb +68 -0
- data/lib/google/cloud/compute/v1/zone_operations.rb +1 -0
- data/lib/google/cloud/compute/v1/zones/rest/client.rb +1 -1
- data/lib/google/cloud/compute/v1.rb +6 -0
- data/proto_docs/google/cloud/compute/v1/compute.rb +1946 -229
- metadata +27 -3
@@ -19,6 +19,7 @@
|
|
19
19
|
require "google/cloud/errors"
|
20
20
|
require "google/cloud/compute/v1/compute_pb"
|
21
21
|
require "google/cloud/compute/v1/target_pools/rest/service_stub"
|
22
|
+
require "google/cloud/compute/v1/region_operations/rest"
|
22
23
|
|
23
24
|
module Google
|
24
25
|
module Cloud
|
@@ -151,9 +152,21 @@ module Google
|
|
151
152
|
credentials = Credentials.new credentials, scope: @config.scope
|
152
153
|
end
|
153
154
|
|
155
|
+
@region_operations = ::Google::Cloud::Compute::V1::RegionOperations::Rest::Client.new do |config|
|
156
|
+
config.credentials = credentials
|
157
|
+
config.endpoint = @config.endpoint
|
158
|
+
end
|
159
|
+
|
154
160
|
@target_pools_stub = ::Google::Cloud::Compute::V1::TargetPools::Rest::ServiceStub.new endpoint: @config.endpoint, credentials: credentials
|
155
161
|
end
|
156
162
|
|
163
|
+
##
|
164
|
+
# Get the associated client for long-running operations via RegionOperations.
|
165
|
+
#
|
166
|
+
# @return [::Google::Cloud::Compute::V1::RegionOperations::Rest::Client]
|
167
|
+
#
|
168
|
+
attr_reader :region_operations
|
169
|
+
|
157
170
|
# Service calls
|
158
171
|
|
159
172
|
##
|
@@ -187,10 +200,10 @@ module Google
|
|
187
200
|
# @param target_pools_add_health_check_request_resource [::Google::Cloud::Compute::V1::TargetPoolsAddHealthCheckRequest, ::Hash]
|
188
201
|
# The body resource for this request
|
189
202
|
# @yield [result, response] Access the result along with the Faraday response object
|
190
|
-
# @yieldparam result [::Gapic::
|
203
|
+
# @yieldparam result [::Gapic::GenericLRO::Operation]
|
191
204
|
# @yieldparam response [::Faraday::Response]
|
192
205
|
#
|
193
|
-
# @return [::Gapic::
|
206
|
+
# @return [::Gapic::GenericLRO::Operation]
|
194
207
|
#
|
195
208
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
196
209
|
def add_health_check request, options = nil
|
@@ -217,7 +230,15 @@ module Google
|
|
217
230
|
metadata: @config.metadata
|
218
231
|
|
219
232
|
@target_pools_stub.add_health_check request, options do |result, response|
|
220
|
-
result = ::
|
233
|
+
result = ::Google::Cloud::Compute::V1::RegionOperations::Rest::NonstandardLro.create_operation(
|
234
|
+
operation: result,
|
235
|
+
client: region_operations,
|
236
|
+
request_values: {
|
237
|
+
"project" => request.project,
|
238
|
+
"region" => request.region
|
239
|
+
},
|
240
|
+
options: options
|
241
|
+
)
|
221
242
|
yield result, response if block_given?
|
222
243
|
return result
|
223
244
|
end
|
@@ -257,10 +278,10 @@ module Google
|
|
257
278
|
# @param target_pools_add_instance_request_resource [::Google::Cloud::Compute::V1::TargetPoolsAddInstanceRequest, ::Hash]
|
258
279
|
# The body resource for this request
|
259
280
|
# @yield [result, response] Access the result along with the Faraday response object
|
260
|
-
# @yieldparam result [::Gapic::
|
281
|
+
# @yieldparam result [::Gapic::GenericLRO::Operation]
|
261
282
|
# @yieldparam response [::Faraday::Response]
|
262
283
|
#
|
263
|
-
# @return [::Gapic::
|
284
|
+
# @return [::Gapic::GenericLRO::Operation]
|
264
285
|
#
|
265
286
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
266
287
|
def add_instance request, options = nil
|
@@ -287,7 +308,15 @@ module Google
|
|
287
308
|
metadata: @config.metadata
|
288
309
|
|
289
310
|
@target_pools_stub.add_instance request, options do |result, response|
|
290
|
-
result = ::
|
311
|
+
result = ::Google::Cloud::Compute::V1::RegionOperations::Rest::NonstandardLro.create_operation(
|
312
|
+
operation: result,
|
313
|
+
client: region_operations,
|
314
|
+
request_values: {
|
315
|
+
"project" => request.project,
|
316
|
+
"region" => request.region
|
317
|
+
},
|
318
|
+
options: options
|
319
|
+
)
|
291
320
|
yield result, response if block_given?
|
292
321
|
return result
|
293
322
|
end
|
@@ -317,7 +346,7 @@ module Google
|
|
317
346
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
318
347
|
#
|
319
348
|
# @param filter [::String]
|
320
|
-
# A filter expression that filters resources listed in the response.
|
349
|
+
# A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:` operator can be used with string fields to match substrings. For non-string fields it is equivalent to the `=` operator. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`.
|
321
350
|
# @param include_all_scopes [::Boolean]
|
322
351
|
# Indicates whether every visible scope for each scope type (zone, region, global) should be included in the response. For new resource types added after this field, the flag has no effect as new resource types will always include every visible scope for each scope type in response. For resource types which predate this field, if this flag is omitted or false, only scopes of the scope types where the resource type is expected to be found will be included.
|
323
352
|
# @param max_results [::Integer]
|
@@ -399,10 +428,10 @@ module Google
|
|
399
428
|
# @param target_pool [::String]
|
400
429
|
# Name of the TargetPool resource to delete.
|
401
430
|
# @yield [result, response] Access the result along with the Faraday response object
|
402
|
-
# @yieldparam result [::Gapic::
|
431
|
+
# @yieldparam result [::Gapic::GenericLRO::Operation]
|
403
432
|
# @yieldparam response [::Faraday::Response]
|
404
433
|
#
|
405
|
-
# @return [::Gapic::
|
434
|
+
# @return [::Gapic::GenericLRO::Operation]
|
406
435
|
#
|
407
436
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
408
437
|
def delete request, options = nil
|
@@ -429,7 +458,15 @@ module Google
|
|
429
458
|
metadata: @config.metadata
|
430
459
|
|
431
460
|
@target_pools_stub.delete request, options do |result, response|
|
432
|
-
result = ::
|
461
|
+
result = ::Google::Cloud::Compute::V1::RegionOperations::Rest::NonstandardLro.create_operation(
|
462
|
+
operation: result,
|
463
|
+
client: region_operations,
|
464
|
+
request_values: {
|
465
|
+
"project" => request.project,
|
466
|
+
"region" => request.region
|
467
|
+
},
|
468
|
+
options: options
|
469
|
+
)
|
433
470
|
yield result, response if block_given?
|
434
471
|
return result
|
435
472
|
end
|
@@ -599,10 +636,10 @@ module Google
|
|
599
636
|
# @param target_pool_resource [::Google::Cloud::Compute::V1::TargetPool, ::Hash]
|
600
637
|
# The body resource for this request
|
601
638
|
# @yield [result, response] Access the result along with the Faraday response object
|
602
|
-
# @yieldparam result [::Gapic::
|
639
|
+
# @yieldparam result [::Gapic::GenericLRO::Operation]
|
603
640
|
# @yieldparam response [::Faraday::Response]
|
604
641
|
#
|
605
|
-
# @return [::Gapic::
|
642
|
+
# @return [::Gapic::GenericLRO::Operation]
|
606
643
|
#
|
607
644
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
608
645
|
def insert request, options = nil
|
@@ -629,7 +666,15 @@ module Google
|
|
629
666
|
metadata: @config.metadata
|
630
667
|
|
631
668
|
@target_pools_stub.insert request, options do |result, response|
|
632
|
-
result = ::
|
669
|
+
result = ::Google::Cloud::Compute::V1::RegionOperations::Rest::NonstandardLro.create_operation(
|
670
|
+
operation: result,
|
671
|
+
client: region_operations,
|
672
|
+
request_values: {
|
673
|
+
"project" => request.project,
|
674
|
+
"region" => request.region
|
675
|
+
},
|
676
|
+
options: options
|
677
|
+
)
|
633
678
|
yield result, response if block_given?
|
634
679
|
return result
|
635
680
|
end
|
@@ -659,7 +704,7 @@ module Google
|
|
659
704
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
660
705
|
#
|
661
706
|
# @param filter [::String]
|
662
|
-
# A filter expression that filters resources listed in the response.
|
707
|
+
# A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:` operator can be used with string fields to match substrings. For non-string fields it is equivalent to the `=` operator. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`.
|
663
708
|
# @param max_results [::Integer]
|
664
709
|
# The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`)
|
665
710
|
# @param order_by [::String]
|
@@ -743,10 +788,10 @@ module Google
|
|
743
788
|
# @param target_pools_remove_health_check_request_resource [::Google::Cloud::Compute::V1::TargetPoolsRemoveHealthCheckRequest, ::Hash]
|
744
789
|
# The body resource for this request
|
745
790
|
# @yield [result, response] Access the result along with the Faraday response object
|
746
|
-
# @yieldparam result [::Gapic::
|
791
|
+
# @yieldparam result [::Gapic::GenericLRO::Operation]
|
747
792
|
# @yieldparam response [::Faraday::Response]
|
748
793
|
#
|
749
|
-
# @return [::Gapic::
|
794
|
+
# @return [::Gapic::GenericLRO::Operation]
|
750
795
|
#
|
751
796
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
752
797
|
def remove_health_check request, options = nil
|
@@ -773,7 +818,15 @@ module Google
|
|
773
818
|
metadata: @config.metadata
|
774
819
|
|
775
820
|
@target_pools_stub.remove_health_check request, options do |result, response|
|
776
|
-
result = ::
|
821
|
+
result = ::Google::Cloud::Compute::V1::RegionOperations::Rest::NonstandardLro.create_operation(
|
822
|
+
operation: result,
|
823
|
+
client: region_operations,
|
824
|
+
request_values: {
|
825
|
+
"project" => request.project,
|
826
|
+
"region" => request.region
|
827
|
+
},
|
828
|
+
options: options
|
829
|
+
)
|
777
830
|
yield result, response if block_given?
|
778
831
|
return result
|
779
832
|
end
|
@@ -813,10 +866,10 @@ module Google
|
|
813
866
|
# @param target_pools_remove_instance_request_resource [::Google::Cloud::Compute::V1::TargetPoolsRemoveInstanceRequest, ::Hash]
|
814
867
|
# The body resource for this request
|
815
868
|
# @yield [result, response] Access the result along with the Faraday response object
|
816
|
-
# @yieldparam result [::Gapic::
|
869
|
+
# @yieldparam result [::Gapic::GenericLRO::Operation]
|
817
870
|
# @yieldparam response [::Faraday::Response]
|
818
871
|
#
|
819
|
-
# @return [::Gapic::
|
872
|
+
# @return [::Gapic::GenericLRO::Operation]
|
820
873
|
#
|
821
874
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
822
875
|
def remove_instance request, options = nil
|
@@ -843,7 +896,15 @@ module Google
|
|
843
896
|
metadata: @config.metadata
|
844
897
|
|
845
898
|
@target_pools_stub.remove_instance request, options do |result, response|
|
846
|
-
result = ::
|
899
|
+
result = ::Google::Cloud::Compute::V1::RegionOperations::Rest::NonstandardLro.create_operation(
|
900
|
+
operation: result,
|
901
|
+
client: region_operations,
|
902
|
+
request_values: {
|
903
|
+
"project" => request.project,
|
904
|
+
"region" => request.region
|
905
|
+
},
|
906
|
+
options: options
|
907
|
+
)
|
847
908
|
yield result, response if block_given?
|
848
909
|
return result
|
849
910
|
end
|
@@ -885,10 +946,10 @@ module Google
|
|
885
946
|
# @param target_reference_resource [::Google::Cloud::Compute::V1::TargetReference, ::Hash]
|
886
947
|
# The body resource for this request
|
887
948
|
# @yield [result, response] Access the result along with the Faraday response object
|
888
|
-
# @yieldparam result [::Gapic::
|
949
|
+
# @yieldparam result [::Gapic::GenericLRO::Operation]
|
889
950
|
# @yieldparam response [::Faraday::Response]
|
890
951
|
#
|
891
|
-
# @return [::Gapic::
|
952
|
+
# @return [::Gapic::GenericLRO::Operation]
|
892
953
|
#
|
893
954
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
894
955
|
def set_backup request, options = nil
|
@@ -915,7 +976,15 @@ module Google
|
|
915
976
|
metadata: @config.metadata
|
916
977
|
|
917
978
|
@target_pools_stub.set_backup request, options do |result, response|
|
918
|
-
result = ::
|
979
|
+
result = ::Google::Cloud::Compute::V1::RegionOperations::Rest::NonstandardLro.create_operation(
|
980
|
+
operation: result,
|
981
|
+
client: region_operations,
|
982
|
+
request_values: {
|
983
|
+
"project" => request.project,
|
984
|
+
"region" => request.region
|
985
|
+
},
|
986
|
+
options: options
|
987
|
+
)
|
919
988
|
yield result, response if block_given?
|
920
989
|
return result
|
921
990
|
end
|
@@ -19,6 +19,7 @@
|
|
19
19
|
require "google/cloud/errors"
|
20
20
|
require "google/cloud/compute/v1/compute_pb"
|
21
21
|
require "google/cloud/compute/v1/target_ssl_proxies/rest/service_stub"
|
22
|
+
require "google/cloud/compute/v1/global_operations/rest"
|
22
23
|
|
23
24
|
module Google
|
24
25
|
module Cloud
|
@@ -80,6 +81,8 @@ module Google
|
|
80
81
|
|
81
82
|
default_config.rpcs.set_backend_service.timeout = 600.0
|
82
83
|
|
84
|
+
default_config.rpcs.set_certificate_map.timeout = 600.0
|
85
|
+
|
83
86
|
default_config.rpcs.set_proxy_header.timeout = 600.0
|
84
87
|
|
85
88
|
default_config.rpcs.set_ssl_certificates.timeout = 600.0
|
@@ -142,9 +145,21 @@ module Google
|
|
142
145
|
credentials = Credentials.new credentials, scope: @config.scope
|
143
146
|
end
|
144
147
|
|
148
|
+
@global_operations = ::Google::Cloud::Compute::V1::GlobalOperations::Rest::Client.new do |config|
|
149
|
+
config.credentials = credentials
|
150
|
+
config.endpoint = @config.endpoint
|
151
|
+
end
|
152
|
+
|
145
153
|
@target_ssl_proxies_stub = ::Google::Cloud::Compute::V1::TargetSslProxies::Rest::ServiceStub.new endpoint: @config.endpoint, credentials: credentials
|
146
154
|
end
|
147
155
|
|
156
|
+
##
|
157
|
+
# Get the associated client for long-running operations via GlobalOperations.
|
158
|
+
#
|
159
|
+
# @return [::Google::Cloud::Compute::V1::GlobalOperations::Rest::Client]
|
160
|
+
#
|
161
|
+
attr_reader :global_operations
|
162
|
+
|
148
163
|
# Service calls
|
149
164
|
|
150
165
|
##
|
@@ -174,10 +189,10 @@ module Google
|
|
174
189
|
# @param target_ssl_proxy [::String]
|
175
190
|
# Name of the TargetSslProxy resource to delete.
|
176
191
|
# @yield [result, response] Access the result along with the Faraday response object
|
177
|
-
# @yieldparam result [::Gapic::
|
192
|
+
# @yieldparam result [::Gapic::GenericLRO::Operation]
|
178
193
|
# @yieldparam response [::Faraday::Response]
|
179
194
|
#
|
180
|
-
# @return [::Gapic::
|
195
|
+
# @return [::Gapic::GenericLRO::Operation]
|
181
196
|
#
|
182
197
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
183
198
|
def delete request, options = nil
|
@@ -204,7 +219,14 @@ module Google
|
|
204
219
|
metadata: @config.metadata
|
205
220
|
|
206
221
|
@target_ssl_proxies_stub.delete request, options do |result, response|
|
207
|
-
result = ::
|
222
|
+
result = ::Google::Cloud::Compute::V1::GlobalOperations::Rest::NonstandardLro.create_operation(
|
223
|
+
operation: result,
|
224
|
+
client: global_operations,
|
225
|
+
request_values: {
|
226
|
+
"project" => request.project
|
227
|
+
},
|
228
|
+
options: options
|
229
|
+
)
|
208
230
|
yield result, response if block_given?
|
209
231
|
return result
|
210
232
|
end
|
@@ -303,10 +325,10 @@ module Google
|
|
303
325
|
# @param target_ssl_proxy_resource [::Google::Cloud::Compute::V1::TargetSslProxy, ::Hash]
|
304
326
|
# The body resource for this request
|
305
327
|
# @yield [result, response] Access the result along with the Faraday response object
|
306
|
-
# @yieldparam result [::Gapic::
|
328
|
+
# @yieldparam result [::Gapic::GenericLRO::Operation]
|
307
329
|
# @yieldparam response [::Faraday::Response]
|
308
330
|
#
|
309
|
-
# @return [::Gapic::
|
331
|
+
# @return [::Gapic::GenericLRO::Operation]
|
310
332
|
#
|
311
333
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
312
334
|
def insert request, options = nil
|
@@ -333,7 +355,14 @@ module Google
|
|
333
355
|
metadata: @config.metadata
|
334
356
|
|
335
357
|
@target_ssl_proxies_stub.insert request, options do |result, response|
|
336
|
-
result = ::
|
358
|
+
result = ::Google::Cloud::Compute::V1::GlobalOperations::Rest::NonstandardLro.create_operation(
|
359
|
+
operation: result,
|
360
|
+
client: global_operations,
|
361
|
+
request_values: {
|
362
|
+
"project" => request.project
|
363
|
+
},
|
364
|
+
options: options
|
365
|
+
)
|
337
366
|
yield result, response if block_given?
|
338
367
|
return result
|
339
368
|
end
|
@@ -363,7 +392,7 @@ module Google
|
|
363
392
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
364
393
|
#
|
365
394
|
# @param filter [::String]
|
366
|
-
# A filter expression that filters resources listed in the response.
|
395
|
+
# A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:` operator can be used with string fields to match substrings. For non-string fields it is equivalent to the `=` operator. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`.
|
367
396
|
# @param max_results [::Integer]
|
368
397
|
# The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`)
|
369
398
|
# @param order_by [::String]
|
@@ -443,10 +472,10 @@ module Google
|
|
443
472
|
# @param target_ssl_proxy [::String]
|
444
473
|
# Name of the TargetSslProxy resource whose BackendService resource is to be set.
|
445
474
|
# @yield [result, response] Access the result along with the Faraday response object
|
446
|
-
# @yieldparam result [::Gapic::
|
475
|
+
# @yieldparam result [::Gapic::GenericLRO::Operation]
|
447
476
|
# @yieldparam response [::Faraday::Response]
|
448
477
|
#
|
449
|
-
# @return [::Gapic::
|
478
|
+
# @return [::Gapic::GenericLRO::Operation]
|
450
479
|
#
|
451
480
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
452
481
|
def set_backend_service request, options = nil
|
@@ -473,7 +502,89 @@ module Google
|
|
473
502
|
metadata: @config.metadata
|
474
503
|
|
475
504
|
@target_ssl_proxies_stub.set_backend_service request, options do |result, response|
|
476
|
-
result = ::
|
505
|
+
result = ::Google::Cloud::Compute::V1::GlobalOperations::Rest::NonstandardLro.create_operation(
|
506
|
+
operation: result,
|
507
|
+
client: global_operations,
|
508
|
+
request_values: {
|
509
|
+
"project" => request.project
|
510
|
+
},
|
511
|
+
options: options
|
512
|
+
)
|
513
|
+
yield result, response if block_given?
|
514
|
+
return result
|
515
|
+
end
|
516
|
+
rescue ::Faraday::Error => e
|
517
|
+
gapic_error = ::Gapic::Rest::Error.wrap_faraday_error e
|
518
|
+
raise ::Google::Cloud::Error.from_error(gapic_error)
|
519
|
+
end
|
520
|
+
|
521
|
+
##
|
522
|
+
# Changes the Certificate Map for TargetSslProxy.
|
523
|
+
#
|
524
|
+
# @overload set_certificate_map(request, options = nil)
|
525
|
+
# Pass arguments to `set_certificate_map` via a request object, either of type
|
526
|
+
# {::Google::Cloud::Compute::V1::SetCertificateMapTargetSslProxyRequest} or an equivalent Hash.
|
527
|
+
#
|
528
|
+
# @param request [::Google::Cloud::Compute::V1::SetCertificateMapTargetSslProxyRequest, ::Hash]
|
529
|
+
# A request object representing the call parameters. Required. To specify no
|
530
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
531
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
532
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
533
|
+
# Note: currently retry functionality is not implemented. While it is possible
|
534
|
+
# to set it using ::Gapic::CallOptions, it will not be applied
|
535
|
+
#
|
536
|
+
# @overload set_certificate_map(project: nil, request_id: nil, target_ssl_proxies_set_certificate_map_request_resource: nil, target_ssl_proxy: nil)
|
537
|
+
# Pass arguments to `set_certificate_map` via keyword arguments. Note that at
|
538
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
539
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
540
|
+
#
|
541
|
+
# @param project [::String]
|
542
|
+
# Project ID for this request.
|
543
|
+
# @param request_id [::String]
|
544
|
+
# An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
|
545
|
+
# @param target_ssl_proxies_set_certificate_map_request_resource [::Google::Cloud::Compute::V1::TargetSslProxiesSetCertificateMapRequest, ::Hash]
|
546
|
+
# The body resource for this request
|
547
|
+
# @param target_ssl_proxy [::String]
|
548
|
+
# Name of the TargetSslProxy resource whose CertificateMap is to be set. The name must be 1-63 characters long, and comply with RFC1035.
|
549
|
+
# @yield [result, response] Access the result along with the Faraday response object
|
550
|
+
# @yieldparam result [::Gapic::GenericLRO::Operation]
|
551
|
+
# @yieldparam response [::Faraday::Response]
|
552
|
+
#
|
553
|
+
# @return [::Gapic::GenericLRO::Operation]
|
554
|
+
#
|
555
|
+
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
556
|
+
def set_certificate_map request, options = nil
|
557
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
558
|
+
|
559
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Compute::V1::SetCertificateMapTargetSslProxyRequest
|
560
|
+
|
561
|
+
# Converts hash and nil to an options object
|
562
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
563
|
+
|
564
|
+
# Customize the options with defaults
|
565
|
+
call_metadata = @config.rpcs.set_certificate_map.metadata.to_h
|
566
|
+
|
567
|
+
# Set x-goog-api-client header
|
568
|
+
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
569
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
570
|
+
gapic_version: ::Google::Cloud::Compute::V1::VERSION,
|
571
|
+
transports_version_send: [:rest]
|
572
|
+
|
573
|
+
options.apply_defaults timeout: @config.rpcs.set_certificate_map.timeout,
|
574
|
+
metadata: call_metadata
|
575
|
+
|
576
|
+
options.apply_defaults timeout: @config.timeout,
|
577
|
+
metadata: @config.metadata
|
578
|
+
|
579
|
+
@target_ssl_proxies_stub.set_certificate_map request, options do |result, response|
|
580
|
+
result = ::Google::Cloud::Compute::V1::GlobalOperations::Rest::NonstandardLro.create_operation(
|
581
|
+
operation: result,
|
582
|
+
client: global_operations,
|
583
|
+
request_values: {
|
584
|
+
"project" => request.project
|
585
|
+
},
|
586
|
+
options: options
|
587
|
+
)
|
477
588
|
yield result, response if block_given?
|
478
589
|
return result
|
479
590
|
end
|
@@ -511,10 +622,10 @@ module Google
|
|
511
622
|
# @param target_ssl_proxy [::String]
|
512
623
|
# Name of the TargetSslProxy resource whose ProxyHeader is to be set.
|
513
624
|
# @yield [result, response] Access the result along with the Faraday response object
|
514
|
-
# @yieldparam result [::Gapic::
|
625
|
+
# @yieldparam result [::Gapic::GenericLRO::Operation]
|
515
626
|
# @yieldparam response [::Faraday::Response]
|
516
627
|
#
|
517
|
-
# @return [::Gapic::
|
628
|
+
# @return [::Gapic::GenericLRO::Operation]
|
518
629
|
#
|
519
630
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
520
631
|
def set_proxy_header request, options = nil
|
@@ -541,7 +652,14 @@ module Google
|
|
541
652
|
metadata: @config.metadata
|
542
653
|
|
543
654
|
@target_ssl_proxies_stub.set_proxy_header request, options do |result, response|
|
544
|
-
result = ::
|
655
|
+
result = ::Google::Cloud::Compute::V1::GlobalOperations::Rest::NonstandardLro.create_operation(
|
656
|
+
operation: result,
|
657
|
+
client: global_operations,
|
658
|
+
request_values: {
|
659
|
+
"project" => request.project
|
660
|
+
},
|
661
|
+
options: options
|
662
|
+
)
|
545
663
|
yield result, response if block_given?
|
546
664
|
return result
|
547
665
|
end
|
@@ -579,10 +697,10 @@ module Google
|
|
579
697
|
# @param target_ssl_proxy [::String]
|
580
698
|
# Name of the TargetSslProxy resource whose SslCertificate resource is to be set.
|
581
699
|
# @yield [result, response] Access the result along with the Faraday response object
|
582
|
-
# @yieldparam result [::Gapic::
|
700
|
+
# @yieldparam result [::Gapic::GenericLRO::Operation]
|
583
701
|
# @yieldparam response [::Faraday::Response]
|
584
702
|
#
|
585
|
-
# @return [::Gapic::
|
703
|
+
# @return [::Gapic::GenericLRO::Operation]
|
586
704
|
#
|
587
705
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
588
706
|
def set_ssl_certificates request, options = nil
|
@@ -609,7 +727,14 @@ module Google
|
|
609
727
|
metadata: @config.metadata
|
610
728
|
|
611
729
|
@target_ssl_proxies_stub.set_ssl_certificates request, options do |result, response|
|
612
|
-
result = ::
|
730
|
+
result = ::Google::Cloud::Compute::V1::GlobalOperations::Rest::NonstandardLro.create_operation(
|
731
|
+
operation: result,
|
732
|
+
client: global_operations,
|
733
|
+
request_values: {
|
734
|
+
"project" => request.project
|
735
|
+
},
|
736
|
+
options: options
|
737
|
+
)
|
613
738
|
yield result, response if block_given?
|
614
739
|
return result
|
615
740
|
end
|
@@ -647,10 +772,10 @@ module Google
|
|
647
772
|
# @param target_ssl_proxy [::String]
|
648
773
|
# Name of the TargetSslProxy resource whose SSL policy is to be set. The name must be 1-63 characters long, and comply with RFC1035.
|
649
774
|
# @yield [result, response] Access the result along with the Faraday response object
|
650
|
-
# @yieldparam result [::Gapic::
|
775
|
+
# @yieldparam result [::Gapic::GenericLRO::Operation]
|
651
776
|
# @yieldparam response [::Faraday::Response]
|
652
777
|
#
|
653
|
-
# @return [::Gapic::
|
778
|
+
# @return [::Gapic::GenericLRO::Operation]
|
654
779
|
#
|
655
780
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
656
781
|
def set_ssl_policy request, options = nil
|
@@ -677,7 +802,14 @@ module Google
|
|
677
802
|
metadata: @config.metadata
|
678
803
|
|
679
804
|
@target_ssl_proxies_stub.set_ssl_policy request, options do |result, response|
|
680
|
-
result = ::
|
805
|
+
result = ::Google::Cloud::Compute::V1::GlobalOperations::Rest::NonstandardLro.create_operation(
|
806
|
+
operation: result,
|
807
|
+
client: global_operations,
|
808
|
+
request_values: {
|
809
|
+
"project" => request.project
|
810
|
+
},
|
811
|
+
options: options
|
812
|
+
)
|
681
813
|
yield result, response if block_given?
|
682
814
|
return result
|
683
815
|
end
|
@@ -811,6 +943,11 @@ module Google
|
|
811
943
|
#
|
812
944
|
attr_reader :set_backend_service
|
813
945
|
##
|
946
|
+
# RPC-specific configuration for `set_certificate_map`
|
947
|
+
# @return [::Gapic::Config::Method]
|
948
|
+
#
|
949
|
+
attr_reader :set_certificate_map
|
950
|
+
##
|
814
951
|
# RPC-specific configuration for `set_proxy_header`
|
815
952
|
# @return [::Gapic::Config::Method]
|
816
953
|
#
|
@@ -838,6 +975,8 @@ module Google
|
|
838
975
|
@list = ::Gapic::Config::Method.new list_config
|
839
976
|
set_backend_service_config = parent_rpcs.set_backend_service if parent_rpcs.respond_to? :set_backend_service
|
840
977
|
@set_backend_service = ::Gapic::Config::Method.new set_backend_service_config
|
978
|
+
set_certificate_map_config = parent_rpcs.set_certificate_map if parent_rpcs.respond_to? :set_certificate_map
|
979
|
+
@set_certificate_map = ::Gapic::Config::Method.new set_certificate_map_config
|
841
980
|
set_proxy_header_config = parent_rpcs.set_proxy_header if parent_rpcs.respond_to? :set_proxy_header
|
842
981
|
@set_proxy_header = ::Gapic::Config::Method.new set_proxy_header_config
|
843
982
|
set_ssl_certificates_config = parent_rpcs.set_ssl_certificates if parent_rpcs.respond_to? :set_ssl_certificates
|
@@ -267,6 +267,52 @@ module Google
|
|
267
267
|
[uri, body, query_string_params]
|
268
268
|
end
|
269
269
|
|
270
|
+
##
|
271
|
+
# Baseline implementation for the set_certificate_map REST call
|
272
|
+
#
|
273
|
+
# @param request_pb [::Google::Cloud::Compute::V1::SetCertificateMapTargetSslProxyRequest]
|
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::Operation]
|
280
|
+
# @yieldparam response [::Faraday::Response]
|
281
|
+
#
|
282
|
+
# @return [::Google::Cloud::Compute::V1::Operation]
|
283
|
+
# A result object deserialized from the server's reply
|
284
|
+
def set_certificate_map request_pb, options = nil
|
285
|
+
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
286
|
+
|
287
|
+
uri, body, query_string_params = transcode_set_certificate_map_request request_pb
|
288
|
+
response = @client_stub.make_post_request(
|
289
|
+
uri: uri,
|
290
|
+
body: body,
|
291
|
+
params: query_string_params,
|
292
|
+
options: options
|
293
|
+
)
|
294
|
+
result = ::Google::Cloud::Compute::V1::Operation.decode_json response.body, ignore_unknown_fields: true
|
295
|
+
|
296
|
+
yield result, response if block_given?
|
297
|
+
result
|
298
|
+
end
|
299
|
+
|
300
|
+
##
|
301
|
+
# GRPC transcoding helper method for the set_certificate_map REST call
|
302
|
+
#
|
303
|
+
# @param request_pb [::Google::Cloud::Compute::V1::SetCertificateMapTargetSslProxyRequest]
|
304
|
+
# A request object representing the call parameters. Required.
|
305
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
306
|
+
# Uri, Body, Query string parameters
|
307
|
+
def transcode_set_certificate_map_request request_pb
|
308
|
+
uri = "/compute/v1/projects/#{request_pb.project}/global/targetSslProxies/#{request_pb.target_ssl_proxy}/setCertificateMap"
|
309
|
+
body = request_pb.target_ssl_proxies_set_certificate_map_request_resource.to_json
|
310
|
+
query_string_params = {}
|
311
|
+
query_string_params["requestId"] = request_pb.request_id.to_s if request_pb.has_request_id?
|
312
|
+
|
313
|
+
[uri, body, query_string_params]
|
314
|
+
end
|
315
|
+
|
270
316
|
##
|
271
317
|
# Baseline implementation for the set_proxy_header REST call
|
272
318
|
#
|