google-cloud-compute-v1 1.0.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/README.md +1 -1
- 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 +158 -19
- data/lib/google/cloud/compute/v1/backend_buckets/rest/service_stub.rb +46 -0
- data/lib/google/cloud/compute/v1/backend_services/rest/client.rb +169 -23
- data/lib/google/cloud/compute/v1/backend_services/rest/service_stub.rb +46 -0
- data/lib/google/cloud/compute/v1/compute_pb.rb +1117 -9
- data/lib/google/cloud/compute/v1/disk_types/rest/client.rb +2 -2
- data/lib/google/cloud/compute/v1/disks/rest/client.rb +94 -25
- 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 +1 -1
- 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 +47 -13
- 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 +172 -47
- data/lib/google/cloud/compute/v1/instance_groups/rest/client.rb +71 -18
- data/lib/google/cloud/compute/v1/instance_templates/rest/client.rb +34 -7
- data/lib/google/cloud/compute/v1/instances/rest/client.rb +524 -97
- data/lib/google/cloud/compute/v1/instances/rest/service_stub.rb +91 -0
- 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/credentials.rb +52 -0
- data/lib/google/cloud/compute/v1/machine_images/rest/client.rb +804 -0
- data/lib/google/cloud/compute/v1/machine_images/rest/service_stub.rb +363 -0
- data/lib/google/cloud/compute/v1/machine_images/rest.rb +33 -0
- data/lib/google/cloud/compute/v1/machine_images.rb +44 -0
- 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 +107 -31
- data/lib/google/cloud/compute/v1/public_advertised_prefixes/rest/client.rb +47 -13
- data/lib/google/cloud/compute/v1/public_delegated_prefixes/rest/client.rb +51 -14
- 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 +116 -5
- data/lib/google/cloud/compute/v1/region_commitments/rest/service_stub.rb +48 -0
- 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 +92 -23
- 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 +171 -46
- 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 +38 -9
- 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 +38 -9
- 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 +149 -17
- 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 +3 -3
- data/lib/google/cloud/compute/v1/reservations/rest/client.rb +138 -11
- data/lib/google/cloud/compute/v1/reservations/rest/service_stub.rb +48 -0
- 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 +161 -20
- data/lib/google/cloud/compute/v1/security_policies/rest/service_stub.rb +50 -0
- data/lib/google/cloud/compute/v1/service_attachments/rest/client.rb +51 -14
- data/lib/google/cloud/compute/v1/snapshots/rest/client.rb +116 -7
- data/lib/google/cloud/compute/v1/snapshots/rest/service_stub.rb +46 -0
- data/lib/google/cloud/compute/v1/ssl_certificates/rest/client.rb +37 -10
- 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 +47 -13
- data/lib/google/cloud/compute/v1/target_http_proxies/rest/client.rb +56 -15
- data/lib/google/cloud/compute/v1/target_https_proxies/rest/client.rb +86 -24
- 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 +74 -19
- 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 +7 -0
- data/proto_docs/google/cloud/compute/v1/compute.rb +3236 -422
- metadata +32 -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_http_proxies/rest/service_stub"
|
22
|
+
require "google/cloud/compute/v1/global_operations/rest"
|
22
23
|
|
23
24
|
module Google
|
24
25
|
module Cloud
|
@@ -143,9 +144,21 @@ module Google
|
|
143
144
|
credentials = Credentials.new credentials, scope: @config.scope
|
144
145
|
end
|
145
146
|
|
147
|
+
@global_operations = ::Google::Cloud::Compute::V1::GlobalOperations::Rest::Client.new do |config|
|
148
|
+
config.credentials = credentials
|
149
|
+
config.endpoint = @config.endpoint
|
150
|
+
end
|
151
|
+
|
146
152
|
@target_http_proxies_stub = ::Google::Cloud::Compute::V1::TargetHttpProxies::Rest::ServiceStub.new endpoint: @config.endpoint, credentials: credentials
|
147
153
|
end
|
148
154
|
|
155
|
+
##
|
156
|
+
# Get the associated client for long-running operations via GlobalOperations.
|
157
|
+
#
|
158
|
+
# @return [::Google::Cloud::Compute::V1::GlobalOperations::Rest::Client]
|
159
|
+
#
|
160
|
+
attr_reader :global_operations
|
161
|
+
|
149
162
|
# Service calls
|
150
163
|
|
151
164
|
##
|
@@ -169,7 +182,7 @@ module Google
|
|
169
182
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
170
183
|
#
|
171
184
|
# @param filter [::String]
|
172
|
-
# A filter expression that filters resources listed in the response. The expression must specify the field name,
|
185
|
+
# A filter expression that filters resources listed in the response. The 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) ```
|
173
186
|
# @param include_all_scopes [::Boolean]
|
174
187
|
# 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.
|
175
188
|
# @param max_results [::Integer]
|
@@ -249,10 +262,10 @@ module Google
|
|
249
262
|
# @param target_http_proxy [::String]
|
250
263
|
# Name of the TargetHttpProxy resource to delete.
|
251
264
|
# @yield [result, response] Access the result along with the Faraday response object
|
252
|
-
# @yieldparam result [::Gapic::
|
265
|
+
# @yieldparam result [::Gapic::GenericLRO::Operation]
|
253
266
|
# @yieldparam response [::Faraday::Response]
|
254
267
|
#
|
255
|
-
# @return [::Gapic::
|
268
|
+
# @return [::Gapic::GenericLRO::Operation]
|
256
269
|
#
|
257
270
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
258
271
|
def delete request, options = nil
|
@@ -279,7 +292,14 @@ module Google
|
|
279
292
|
metadata: @config.metadata
|
280
293
|
|
281
294
|
@target_http_proxies_stub.delete request, options do |result, response|
|
282
|
-
result = ::
|
295
|
+
result = ::Google::Cloud::Compute::V1::GlobalOperations::Rest::NonstandardLro.create_operation(
|
296
|
+
operation: result,
|
297
|
+
client: global_operations,
|
298
|
+
request_values: {
|
299
|
+
"project" => request.project
|
300
|
+
},
|
301
|
+
options: options
|
302
|
+
)
|
283
303
|
yield result, response if block_given?
|
284
304
|
return result
|
285
305
|
end
|
@@ -378,10 +398,10 @@ module Google
|
|
378
398
|
# @param target_http_proxy_resource [::Google::Cloud::Compute::V1::TargetHttpProxy, ::Hash]
|
379
399
|
# The body resource for this request
|
380
400
|
# @yield [result, response] Access the result along with the Faraday response object
|
381
|
-
# @yieldparam result [::Gapic::
|
401
|
+
# @yieldparam result [::Gapic::GenericLRO::Operation]
|
382
402
|
# @yieldparam response [::Faraday::Response]
|
383
403
|
#
|
384
|
-
# @return [::Gapic::
|
404
|
+
# @return [::Gapic::GenericLRO::Operation]
|
385
405
|
#
|
386
406
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
387
407
|
def insert request, options = nil
|
@@ -408,7 +428,14 @@ module Google
|
|
408
428
|
metadata: @config.metadata
|
409
429
|
|
410
430
|
@target_http_proxies_stub.insert request, options do |result, response|
|
411
|
-
result = ::
|
431
|
+
result = ::Google::Cloud::Compute::V1::GlobalOperations::Rest::NonstandardLro.create_operation(
|
432
|
+
operation: result,
|
433
|
+
client: global_operations,
|
434
|
+
request_values: {
|
435
|
+
"project" => request.project
|
436
|
+
},
|
437
|
+
options: options
|
438
|
+
)
|
412
439
|
yield result, response if block_given?
|
413
440
|
return result
|
414
441
|
end
|
@@ -438,7 +465,7 @@ module Google
|
|
438
465
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
439
466
|
#
|
440
467
|
# @param filter [::String]
|
441
|
-
# A filter expression that filters resources listed in the response. The expression must specify the field name,
|
468
|
+
# A filter expression that filters resources listed in the response. The 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) ```
|
442
469
|
# @param max_results [::Integer]
|
443
470
|
# 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`)
|
444
471
|
# @param order_by [::String]
|
@@ -512,16 +539,16 @@ module Google
|
|
512
539
|
# @param project [::String]
|
513
540
|
# Project ID for this request.
|
514
541
|
# @param request_id [::String]
|
515
|
-
# 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).
|
542
|
+
# 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).
|
516
543
|
# @param target_http_proxy [::String]
|
517
544
|
# Name of the TargetHttpProxy resource to patch.
|
518
545
|
# @param target_http_proxy_resource [::Google::Cloud::Compute::V1::TargetHttpProxy, ::Hash]
|
519
546
|
# The body resource for this request
|
520
547
|
# @yield [result, response] Access the result along with the Faraday response object
|
521
|
-
# @yieldparam result [::Gapic::
|
548
|
+
# @yieldparam result [::Gapic::GenericLRO::Operation]
|
522
549
|
# @yieldparam response [::Faraday::Response]
|
523
550
|
#
|
524
|
-
# @return [::Gapic::
|
551
|
+
# @return [::Gapic::GenericLRO::Operation]
|
525
552
|
#
|
526
553
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
527
554
|
def patch request, options = nil
|
@@ -548,7 +575,14 @@ module Google
|
|
548
575
|
metadata: @config.metadata
|
549
576
|
|
550
577
|
@target_http_proxies_stub.patch request, options do |result, response|
|
551
|
-
result = ::
|
578
|
+
result = ::Google::Cloud::Compute::V1::GlobalOperations::Rest::NonstandardLro.create_operation(
|
579
|
+
operation: result,
|
580
|
+
client: global_operations,
|
581
|
+
request_values: {
|
582
|
+
"project" => request.project
|
583
|
+
},
|
584
|
+
options: options
|
585
|
+
)
|
552
586
|
yield result, response if block_given?
|
553
587
|
return result
|
554
588
|
end
|
@@ -586,10 +620,10 @@ module Google
|
|
586
620
|
# @param url_map_reference_resource [::Google::Cloud::Compute::V1::UrlMapReference, ::Hash]
|
587
621
|
# The body resource for this request
|
588
622
|
# @yield [result, response] Access the result along with the Faraday response object
|
589
|
-
# @yieldparam result [::Gapic::
|
623
|
+
# @yieldparam result [::Gapic::GenericLRO::Operation]
|
590
624
|
# @yieldparam response [::Faraday::Response]
|
591
625
|
#
|
592
|
-
# @return [::Gapic::
|
626
|
+
# @return [::Gapic::GenericLRO::Operation]
|
593
627
|
#
|
594
628
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
595
629
|
def set_url_map request, options = nil
|
@@ -616,7 +650,14 @@ module Google
|
|
616
650
|
metadata: @config.metadata
|
617
651
|
|
618
652
|
@target_http_proxies_stub.set_url_map request, options do |result, response|
|
619
|
-
result = ::
|
653
|
+
result = ::Google::Cloud::Compute::V1::GlobalOperations::Rest::NonstandardLro.create_operation(
|
654
|
+
operation: result,
|
655
|
+
client: global_operations,
|
656
|
+
request_values: {
|
657
|
+
"project" => request.project
|
658
|
+
},
|
659
|
+
options: options
|
660
|
+
)
|
620
661
|
yield result, response if block_given?
|
621
662
|
return result
|
622
663
|
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_https_proxies/rest/service_stub"
|
22
|
+
require "google/cloud/compute/v1/global_operations/rest"
|
22
23
|
|
23
24
|
module Google
|
24
25
|
module Cloud
|
@@ -149,9 +150,21 @@ module Google
|
|
149
150
|
credentials = Credentials.new credentials, scope: @config.scope
|
150
151
|
end
|
151
152
|
|
153
|
+
@global_operations = ::Google::Cloud::Compute::V1::GlobalOperations::Rest::Client.new do |config|
|
154
|
+
config.credentials = credentials
|
155
|
+
config.endpoint = @config.endpoint
|
156
|
+
end
|
157
|
+
|
152
158
|
@target_https_proxies_stub = ::Google::Cloud::Compute::V1::TargetHttpsProxies::Rest::ServiceStub.new endpoint: @config.endpoint, credentials: credentials
|
153
159
|
end
|
154
160
|
|
161
|
+
##
|
162
|
+
# Get the associated client for long-running operations via GlobalOperations.
|
163
|
+
#
|
164
|
+
# @return [::Google::Cloud::Compute::V1::GlobalOperations::Rest::Client]
|
165
|
+
#
|
166
|
+
attr_reader :global_operations
|
167
|
+
|
155
168
|
# Service calls
|
156
169
|
|
157
170
|
##
|
@@ -175,7 +188,7 @@ module Google
|
|
175
188
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
176
189
|
#
|
177
190
|
# @param filter [::String]
|
178
|
-
# A filter expression that filters resources listed in the response. The expression must specify the field name,
|
191
|
+
# A filter expression that filters resources listed in the response. The 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) ```
|
179
192
|
# @param include_all_scopes [::Boolean]
|
180
193
|
# 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.
|
181
194
|
# @param max_results [::Integer]
|
@@ -255,10 +268,10 @@ module Google
|
|
255
268
|
# @param target_https_proxy [::String]
|
256
269
|
# Name of the TargetHttpsProxy resource to delete.
|
257
270
|
# @yield [result, response] Access the result along with the Faraday response object
|
258
|
-
# @yieldparam result [::Gapic::
|
271
|
+
# @yieldparam result [::Gapic::GenericLRO::Operation]
|
259
272
|
# @yieldparam response [::Faraday::Response]
|
260
273
|
#
|
261
|
-
# @return [::Gapic::
|
274
|
+
# @return [::Gapic::GenericLRO::Operation]
|
262
275
|
#
|
263
276
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
264
277
|
def delete request, options = nil
|
@@ -285,7 +298,14 @@ module Google
|
|
285
298
|
metadata: @config.metadata
|
286
299
|
|
287
300
|
@target_https_proxies_stub.delete request, options do |result, response|
|
288
|
-
result = ::
|
301
|
+
result = ::Google::Cloud::Compute::V1::GlobalOperations::Rest::NonstandardLro.create_operation(
|
302
|
+
operation: result,
|
303
|
+
client: global_operations,
|
304
|
+
request_values: {
|
305
|
+
"project" => request.project
|
306
|
+
},
|
307
|
+
options: options
|
308
|
+
)
|
289
309
|
yield result, response if block_given?
|
290
310
|
return result
|
291
311
|
end
|
@@ -384,10 +404,10 @@ module Google
|
|
384
404
|
# @param target_https_proxy_resource [::Google::Cloud::Compute::V1::TargetHttpsProxy, ::Hash]
|
385
405
|
# The body resource for this request
|
386
406
|
# @yield [result, response] Access the result along with the Faraday response object
|
387
|
-
# @yieldparam result [::Gapic::
|
407
|
+
# @yieldparam result [::Gapic::GenericLRO::Operation]
|
388
408
|
# @yieldparam response [::Faraday::Response]
|
389
409
|
#
|
390
|
-
# @return [::Gapic::
|
410
|
+
# @return [::Gapic::GenericLRO::Operation]
|
391
411
|
#
|
392
412
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
393
413
|
def insert request, options = nil
|
@@ -414,7 +434,14 @@ module Google
|
|
414
434
|
metadata: @config.metadata
|
415
435
|
|
416
436
|
@target_https_proxies_stub.insert request, options do |result, response|
|
417
|
-
result = ::
|
437
|
+
result = ::Google::Cloud::Compute::V1::GlobalOperations::Rest::NonstandardLro.create_operation(
|
438
|
+
operation: result,
|
439
|
+
client: global_operations,
|
440
|
+
request_values: {
|
441
|
+
"project" => request.project
|
442
|
+
},
|
443
|
+
options: options
|
444
|
+
)
|
418
445
|
yield result, response if block_given?
|
419
446
|
return result
|
420
447
|
end
|
@@ -444,7 +471,7 @@ module Google
|
|
444
471
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
445
472
|
#
|
446
473
|
# @param filter [::String]
|
447
|
-
# A filter expression that filters resources listed in the response. The expression must specify the field name,
|
474
|
+
# A filter expression that filters resources listed in the response. The 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) ```
|
448
475
|
# @param max_results [::Integer]
|
449
476
|
# 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`)
|
450
477
|
# @param order_by [::String]
|
@@ -518,16 +545,16 @@ module Google
|
|
518
545
|
# @param project [::String]
|
519
546
|
# Project ID for this request.
|
520
547
|
# @param request_id [::String]
|
521
|
-
# 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).
|
548
|
+
# 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).
|
522
549
|
# @param target_https_proxy [::String]
|
523
550
|
# Name of the TargetHttpsProxy resource to patch.
|
524
551
|
# @param target_https_proxy_resource [::Google::Cloud::Compute::V1::TargetHttpsProxy, ::Hash]
|
525
552
|
# The body resource for this request
|
526
553
|
# @yield [result, response] Access the result along with the Faraday response object
|
527
|
-
# @yieldparam result [::Gapic::
|
554
|
+
# @yieldparam result [::Gapic::GenericLRO::Operation]
|
528
555
|
# @yieldparam response [::Faraday::Response]
|
529
556
|
#
|
530
|
-
# @return [::Gapic::
|
557
|
+
# @return [::Gapic::GenericLRO::Operation]
|
531
558
|
#
|
532
559
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
533
560
|
def patch request, options = nil
|
@@ -554,7 +581,14 @@ module Google
|
|
554
581
|
metadata: @config.metadata
|
555
582
|
|
556
583
|
@target_https_proxies_stub.patch request, options do |result, response|
|
557
|
-
result = ::
|
584
|
+
result = ::Google::Cloud::Compute::V1::GlobalOperations::Rest::NonstandardLro.create_operation(
|
585
|
+
operation: result,
|
586
|
+
client: global_operations,
|
587
|
+
request_values: {
|
588
|
+
"project" => request.project
|
589
|
+
},
|
590
|
+
options: options
|
591
|
+
)
|
558
592
|
yield result, response if block_given?
|
559
593
|
return result
|
560
594
|
end
|
@@ -592,10 +626,10 @@ module Google
|
|
592
626
|
# @param target_https_proxy [::String]
|
593
627
|
# Name of the TargetHttpsProxy resource to set the QUIC override policy for. The name should conform to RFC1035.
|
594
628
|
# @yield [result, response] Access the result along with the Faraday response object
|
595
|
-
# @yieldparam result [::Gapic::
|
629
|
+
# @yieldparam result [::Gapic::GenericLRO::Operation]
|
596
630
|
# @yieldparam response [::Faraday::Response]
|
597
631
|
#
|
598
|
-
# @return [::Gapic::
|
632
|
+
# @return [::Gapic::GenericLRO::Operation]
|
599
633
|
#
|
600
634
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
601
635
|
def set_quic_override request, options = nil
|
@@ -622,7 +656,14 @@ module Google
|
|
622
656
|
metadata: @config.metadata
|
623
657
|
|
624
658
|
@target_https_proxies_stub.set_quic_override request, options do |result, response|
|
625
|
-
result = ::
|
659
|
+
result = ::Google::Cloud::Compute::V1::GlobalOperations::Rest::NonstandardLro.create_operation(
|
660
|
+
operation: result,
|
661
|
+
client: global_operations,
|
662
|
+
request_values: {
|
663
|
+
"project" => request.project
|
664
|
+
},
|
665
|
+
options: options
|
666
|
+
)
|
626
667
|
yield result, response if block_given?
|
627
668
|
return result
|
628
669
|
end
|
@@ -660,10 +701,10 @@ module Google
|
|
660
701
|
# @param target_https_proxy [::String]
|
661
702
|
# Name of the TargetHttpsProxy resource to set an SslCertificates resource for.
|
662
703
|
# @yield [result, response] Access the result along with the Faraday response object
|
663
|
-
# @yieldparam result [::Gapic::
|
704
|
+
# @yieldparam result [::Gapic::GenericLRO::Operation]
|
664
705
|
# @yieldparam response [::Faraday::Response]
|
665
706
|
#
|
666
|
-
# @return [::Gapic::
|
707
|
+
# @return [::Gapic::GenericLRO::Operation]
|
667
708
|
#
|
668
709
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
669
710
|
def set_ssl_certificates request, options = nil
|
@@ -690,7 +731,14 @@ module Google
|
|
690
731
|
metadata: @config.metadata
|
691
732
|
|
692
733
|
@target_https_proxies_stub.set_ssl_certificates request, options do |result, response|
|
693
|
-
result = ::
|
734
|
+
result = ::Google::Cloud::Compute::V1::GlobalOperations::Rest::NonstandardLro.create_operation(
|
735
|
+
operation: result,
|
736
|
+
client: global_operations,
|
737
|
+
request_values: {
|
738
|
+
"project" => request.project
|
739
|
+
},
|
740
|
+
options: options
|
741
|
+
)
|
694
742
|
yield result, response if block_given?
|
695
743
|
return result
|
696
744
|
end
|
@@ -728,10 +776,10 @@ module Google
|
|
728
776
|
# @param target_https_proxy [::String]
|
729
777
|
# Name of the TargetHttpsProxy resource whose SSL policy is to be set. The name must be 1-63 characters long, and comply with RFC1035.
|
730
778
|
# @yield [result, response] Access the result along with the Faraday response object
|
731
|
-
# @yieldparam result [::Gapic::
|
779
|
+
# @yieldparam result [::Gapic::GenericLRO::Operation]
|
732
780
|
# @yieldparam response [::Faraday::Response]
|
733
781
|
#
|
734
|
-
# @return [::Gapic::
|
782
|
+
# @return [::Gapic::GenericLRO::Operation]
|
735
783
|
#
|
736
784
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
737
785
|
def set_ssl_policy request, options = nil
|
@@ -758,7 +806,14 @@ module Google
|
|
758
806
|
metadata: @config.metadata
|
759
807
|
|
760
808
|
@target_https_proxies_stub.set_ssl_policy request, options do |result, response|
|
761
|
-
result = ::
|
809
|
+
result = ::Google::Cloud::Compute::V1::GlobalOperations::Rest::NonstandardLro.create_operation(
|
810
|
+
operation: result,
|
811
|
+
client: global_operations,
|
812
|
+
request_values: {
|
813
|
+
"project" => request.project
|
814
|
+
},
|
815
|
+
options: options
|
816
|
+
)
|
762
817
|
yield result, response if block_given?
|
763
818
|
return result
|
764
819
|
end
|
@@ -796,10 +851,10 @@ module Google
|
|
796
851
|
# @param url_map_reference_resource [::Google::Cloud::Compute::V1::UrlMapReference, ::Hash]
|
797
852
|
# The body resource for this request
|
798
853
|
# @yield [result, response] Access the result along with the Faraday response object
|
799
|
-
# @yieldparam result [::Gapic::
|
854
|
+
# @yieldparam result [::Gapic::GenericLRO::Operation]
|
800
855
|
# @yieldparam response [::Faraday::Response]
|
801
856
|
#
|
802
|
-
# @return [::Gapic::
|
857
|
+
# @return [::Gapic::GenericLRO::Operation]
|
803
858
|
#
|
804
859
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
805
860
|
def set_url_map request, options = nil
|
@@ -826,7 +881,14 @@ module Google
|
|
826
881
|
metadata: @config.metadata
|
827
882
|
|
828
883
|
@target_https_proxies_stub.set_url_map request, options do |result, response|
|
829
|
-
result = ::
|
884
|
+
result = ::Google::Cloud::Compute::V1::GlobalOperations::Rest::NonstandardLro.create_operation(
|
885
|
+
operation: result,
|
886
|
+
client: global_operations,
|
887
|
+
request_values: {
|
888
|
+
"project" => request.project
|
889
|
+
},
|
890
|
+
options: options
|
891
|
+
)
|
830
892
|
yield result, response if block_given?
|
831
893
|
return result
|
832
894
|
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_instances/rest/service_stub"
|
22
|
+
require "google/cloud/compute/v1/zone_operations/rest"
|
22
23
|
|
23
24
|
module Google
|
24
25
|
module Cloud
|
@@ -139,9 +140,21 @@ module Google
|
|
139
140
|
credentials = Credentials.new credentials, scope: @config.scope
|
140
141
|
end
|
141
142
|
|
143
|
+
@zone_operations = ::Google::Cloud::Compute::V1::ZoneOperations::Rest::Client.new do |config|
|
144
|
+
config.credentials = credentials
|
145
|
+
config.endpoint = @config.endpoint
|
146
|
+
end
|
147
|
+
|
142
148
|
@target_instances_stub = ::Google::Cloud::Compute::V1::TargetInstances::Rest::ServiceStub.new endpoint: @config.endpoint, credentials: credentials
|
143
149
|
end
|
144
150
|
|
151
|
+
##
|
152
|
+
# Get the associated client for long-running operations via ZoneOperations.
|
153
|
+
#
|
154
|
+
# @return [::Google::Cloud::Compute::V1::ZoneOperations::Rest::Client]
|
155
|
+
#
|
156
|
+
attr_reader :zone_operations
|
157
|
+
|
145
158
|
# Service calls
|
146
159
|
|
147
160
|
##
|
@@ -165,7 +178,7 @@ module Google
|
|
165
178
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
166
179
|
#
|
167
180
|
# @param filter [::String]
|
168
|
-
# A filter expression that filters resources listed in the response. The expression must specify the field name,
|
181
|
+
# A filter expression that filters resources listed in the response. The 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) ```
|
169
182
|
# @param include_all_scopes [::Boolean]
|
170
183
|
# 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.
|
171
184
|
# @param max_results [::Integer]
|
@@ -247,10 +260,10 @@ module Google
|
|
247
260
|
# @param zone [::String]
|
248
261
|
# Name of the zone scoping this request.
|
249
262
|
# @yield [result, response] Access the result along with the Faraday response object
|
250
|
-
# @yieldparam result [::Gapic::
|
263
|
+
# @yieldparam result [::Gapic::GenericLRO::Operation]
|
251
264
|
# @yieldparam response [::Faraday::Response]
|
252
265
|
#
|
253
|
-
# @return [::Gapic::
|
266
|
+
# @return [::Gapic::GenericLRO::Operation]
|
254
267
|
#
|
255
268
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
256
269
|
def delete request, options = nil
|
@@ -277,7 +290,15 @@ module Google
|
|
277
290
|
metadata: @config.metadata
|
278
291
|
|
279
292
|
@target_instances_stub.delete request, options do |result, response|
|
280
|
-
result = ::
|
293
|
+
result = ::Google::Cloud::Compute::V1::ZoneOperations::Rest::NonstandardLro.create_operation(
|
294
|
+
operation: result,
|
295
|
+
client: zone_operations,
|
296
|
+
request_values: {
|
297
|
+
"project" => request.project,
|
298
|
+
"zone" => request.zone
|
299
|
+
},
|
300
|
+
options: options
|
301
|
+
)
|
281
302
|
yield result, response if block_given?
|
282
303
|
return result
|
283
304
|
end
|
@@ -380,10 +401,10 @@ module Google
|
|
380
401
|
# @param zone [::String]
|
381
402
|
# Name of the zone scoping this request.
|
382
403
|
# @yield [result, response] Access the result along with the Faraday response object
|
383
|
-
# @yieldparam result [::Gapic::
|
404
|
+
# @yieldparam result [::Gapic::GenericLRO::Operation]
|
384
405
|
# @yieldparam response [::Faraday::Response]
|
385
406
|
#
|
386
|
-
# @return [::Gapic::
|
407
|
+
# @return [::Gapic::GenericLRO::Operation]
|
387
408
|
#
|
388
409
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
389
410
|
def insert request, options = nil
|
@@ -410,7 +431,15 @@ module Google
|
|
410
431
|
metadata: @config.metadata
|
411
432
|
|
412
433
|
@target_instances_stub.insert request, options do |result, response|
|
413
|
-
result = ::
|
434
|
+
result = ::Google::Cloud::Compute::V1::ZoneOperations::Rest::NonstandardLro.create_operation(
|
435
|
+
operation: result,
|
436
|
+
client: zone_operations,
|
437
|
+
request_values: {
|
438
|
+
"project" => request.project,
|
439
|
+
"zone" => request.zone
|
440
|
+
},
|
441
|
+
options: options
|
442
|
+
)
|
414
443
|
yield result, response if block_given?
|
415
444
|
return result
|
416
445
|
end
|
@@ -440,7 +469,7 @@ module Google
|
|
440
469
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
441
470
|
#
|
442
471
|
# @param filter [::String]
|
443
|
-
# A filter expression that filters resources listed in the response. The expression must specify the field name,
|
472
|
+
# A filter expression that filters resources listed in the response. The 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) ```
|
444
473
|
# @param max_results [::Integer]
|
445
474
|
# 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`)
|
446
475
|
# @param order_by [::String]
|