google-cloud-compute-v1 1.9.0 → 2.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/google/cloud/compute/v1/accelerator_types/rest/client.rb +12 -12
- data/lib/google/cloud/compute/v1/accelerator_types/rest/service_stub.rb +12 -9
- data/lib/google/cloud/compute/v1/addresses/rest/client.rb +18 -18
- data/lib/google/cloud/compute/v1/addresses/rest/service_stub.rb +24 -18
- data/lib/google/cloud/compute/v1/autoscalers/rest/client.rb +20 -20
- data/lib/google/cloud/compute/v1/autoscalers/rest/service_stub.rb +28 -21
- data/lib/google/cloud/compute/v1/backend_buckets/rest/client.rb +22 -22
- data/lib/google/cloud/compute/v1/backend_buckets/rest/service_stub.rb +36 -27
- data/lib/google/cloud/compute/v1/backend_services/rest/client.rb +40 -40
- data/lib/google/cloud/compute/v1/backend_services/rest/service_stub.rb +56 -42
- data/lib/google/cloud/compute/v1/compute_pb.rb +12 -0
- data/lib/google/cloud/compute/v1/disk_types/rest/client.rb +12 -12
- data/lib/google/cloud/compute/v1/disk_types/rest/service_stub.rb +12 -9
- data/lib/google/cloud/compute/v1/disks/rest/client.rb +38 -38
- data/lib/google/cloud/compute/v1/disks/rest/service_stub.rb +52 -39
- data/lib/google/cloud/compute/v1/external_vpn_gateways/rest/client.rb +18 -18
- data/lib/google/cloud/compute/v1/external_vpn_gateways/rest/service_stub.rb +24 -18
- data/lib/google/cloud/compute/v1/firewall_policies/rest/client.rb +52 -52
- data/lib/google/cloud/compute/v1/firewall_policies/rest/service_stub.rb +72 -54
- data/lib/google/cloud/compute/v1/firewalls/rest/client.rb +16 -16
- data/lib/google/cloud/compute/v1/firewalls/rest/service_stub.rb +24 -18
- data/lib/google/cloud/compute/v1/forwarding_rules/rest/client.rb +22 -22
- data/lib/google/cloud/compute/v1/forwarding_rules/rest/service_stub.rb +32 -24
- data/lib/google/cloud/compute/v1/global_addresses/rest/client.rb +14 -14
- data/lib/google/cloud/compute/v1/global_addresses/rest/service_stub.rb +20 -15
- data/lib/google/cloud/compute/v1/global_forwarding_rules/rest/client.rb +18 -18
- data/lib/google/cloud/compute/v1/global_forwarding_rules/rest/service_stub.rb +28 -21
- data/lib/google/cloud/compute/v1/global_network_endpoint_groups/rest/client.rb +20 -20
- data/lib/google/cloud/compute/v1/global_network_endpoint_groups/rest/service_stub.rb +28 -21
- data/lib/google/cloud/compute/v1/global_operations/rest/client.rb +20 -20
- data/lib/google/cloud/compute/v1/global_operations/rest/service_stub.rb +20 -15
- data/lib/google/cloud/compute/v1/global_organization_operations/rest/client.rb +12 -12
- data/lib/google/cloud/compute/v1/global_organization_operations/rest/service_stub.rb +12 -9
- data/lib/google/cloud/compute/v1/global_public_delegated_prefixes/rest/client.rb +14 -14
- data/lib/google/cloud/compute/v1/global_public_delegated_prefixes/rest/service_stub.rb +20 -15
- data/lib/google/cloud/compute/v1/health_checks/rest/client.rb +20 -20
- data/lib/google/cloud/compute/v1/health_checks/rest/service_stub.rb +28 -21
- data/lib/google/cloud/compute/v1/image_family_views/rest/client.rb +4 -4
- data/lib/google/cloud/compute/v1/image_family_views/rest/service_stub.rb +4 -3
- data/lib/google/cloud/compute/v1/images/rest/client.rb +34 -34
- data/lib/google/cloud/compute/v1/images/rest/service_stub.rb +44 -33
- data/lib/google/cloud/compute/v1/instance_group_managers/rest/client.rb +52 -52
- data/lib/google/cloud/compute/v1/instance_group_managers/rest/service_stub.rb +80 -60
- data/lib/google/cloud/compute/v1/instance_groups/rest/client.rb +26 -26
- data/lib/google/cloud/compute/v1/instance_groups/rest/service_stub.rb +36 -27
- data/lib/google/cloud/compute/v1/instance_templates/rest/client.rb +24 -24
- data/lib/google/cloud/compute/v1/instance_templates/rest/service_stub.rb +28 -21
- data/lib/google/cloud/compute/v1/instances/rest/client.rb +116 -116
- data/lib/google/cloud/compute/v1/instances/rest/service_stub.rb +180 -135
- data/lib/google/cloud/compute/v1/interconnect_attachments/rest/client.rb +20 -20
- data/lib/google/cloud/compute/v1/interconnect_attachments/rest/service_stub.rb +28 -21
- data/lib/google/cloud/compute/v1/interconnect_locations/rest/client.rb +8 -8
- data/lib/google/cloud/compute/v1/interconnect_locations/rest/service_stub.rb +8 -6
- data/lib/google/cloud/compute/v1/interconnects/rest/client.rb +20 -20
- data/lib/google/cloud/compute/v1/interconnects/rest/service_stub.rb +28 -21
- data/lib/google/cloud/compute/v1/license_codes/rest/client.rb +8 -8
- data/lib/google/cloud/compute/v1/license_codes/rest/service_stub.rb +8 -6
- data/lib/google/cloud/compute/v1/licenses/rest/client.rb +24 -24
- data/lib/google/cloud/compute/v1/licenses/rest/service_stub.rb +28 -21
- data/lib/google/cloud/compute/v1/machine_images/rest/client.rb +24 -24
- data/lib/google/cloud/compute/v1/machine_images/rest/service_stub.rb +28 -21
- data/lib/google/cloud/compute/v1/machine_types/rest/client.rb +12 -12
- data/lib/google/cloud/compute/v1/machine_types/rest/service_stub.rb +12 -9
- data/lib/google/cloud/compute/v1/network_attachments/rest/client.rb +28 -28
- data/lib/google/cloud/compute/v1/network_attachments/rest/service_stub.rb +32 -24
- data/lib/google/cloud/compute/v1/network_edge_security_services/rest/client.rb +14 -14
- data/lib/google/cloud/compute/v1/network_edge_security_services/rest/service_stub.rb +20 -15
- data/lib/google/cloud/compute/v1/network_endpoint_groups/rest/client.rb +28 -28
- data/lib/google/cloud/compute/v1/network_endpoint_groups/rest/service_stub.rb +36 -27
- data/lib/google/cloud/compute/v1/network_firewall_policies/rest/client.rb +46 -46
- data/lib/google/cloud/compute/v1/network_firewall_policies/rest/service_stub.rb +64 -48
- data/lib/google/cloud/compute/v1/networks/rest/client.rb +30 -30
- data/lib/google/cloud/compute/v1/networks/rest/service_stub.rb +44 -33
- data/lib/google/cloud/compute/v1/node_groups/rest/client.rb +40 -40
- data/lib/google/cloud/compute/v1/node_groups/rest/service_stub.rb +52 -39
- data/lib/google/cloud/compute/v1/node_templates/rest/client.rb +28 -28
- data/lib/google/cloud/compute/v1/node_templates/rest/service_stub.rb +32 -24
- data/lib/google/cloud/compute/v1/node_types/rest/client.rb +12 -12
- data/lib/google/cloud/compute/v1/node_types/rest/service_stub.rb +12 -9
- data/lib/google/cloud/compute/v1/packet_mirrorings/rest/client.rb +22 -22
- data/lib/google/cloud/compute/v1/packet_mirrorings/rest/service_stub.rb +28 -21
- data/lib/google/cloud/compute/v1/projects/rest/client.rb +34 -34
- data/lib/google/cloud/compute/v1/projects/rest/service_stub.rb +52 -39
- data/lib/google/cloud/compute/v1/public_advertised_prefixes/rest/client.rb +14 -14
- data/lib/google/cloud/compute/v1/public_advertised_prefixes/rest/service_stub.rb +20 -15
- data/lib/google/cloud/compute/v1/public_delegated_prefixes/rest/client.rb +18 -18
- data/lib/google/cloud/compute/v1/public_delegated_prefixes/rest/service_stub.rb +24 -18
- data/lib/google/cloud/compute/v1/region_autoscalers/rest/client.rb +16 -16
- data/lib/google/cloud/compute/v1/region_autoscalers/rest/service_stub.rb +24 -18
- data/lib/google/cloud/compute/v1/region_backend_services/rest/client.rb +28 -28
- data/lib/google/cloud/compute/v1/region_backend_services/rest/service_stub.rb +36 -27
- data/lib/google/cloud/compute/v1/region_commitments/rest/client.rb +16 -16
- data/lib/google/cloud/compute/v1/region_commitments/rest/service_stub.rb +20 -15
- data/lib/google/cloud/compute/v1/region_disk_types/rest/client.rb +8 -8
- data/lib/google/cloud/compute/v1/region_disk_types/rest/service_stub.rb +8 -6
- data/lib/google/cloud/compute/v1/region_disks/rest/client.rb +34 -34
- data/lib/google/cloud/compute/v1/region_disks/rest/service_stub.rb +48 -36
- data/lib/google/cloud/compute/v1/region_health_check_services/rest/client.rb +14 -14
- data/lib/google/cloud/compute/v1/region_health_check_services/rest/service_stub.rb +20 -15
- data/lib/google/cloud/compute/v1/region_health_checks/rest/client.rb +16 -16
- data/lib/google/cloud/compute/v1/region_health_checks/rest/service_stub.rb +24 -18
- data/lib/google/cloud/compute/v1/region_instance_group_managers/rest/client.rb +48 -48
- data/lib/google/cloud/compute/v1/region_instance_group_managers/rest/service_stub.rb +76 -57
- data/lib/google/cloud/compute/v1/region_instance_groups/rest/client.rb +14 -14
- data/lib/google/cloud/compute/v1/region_instance_groups/rest/service_stub.rb +16 -12
- data/lib/google/cloud/compute/v1/region_instances/rest/client.rb +2 -2
- data/lib/google/cloud/compute/v1/region_instances/rest/service_stub.rb +4 -3
- data/lib/google/cloud/compute/v1/region_network_endpoint_groups/rest/client.rb +12 -12
- data/lib/google/cloud/compute/v1/region_network_endpoint_groups/rest/service_stub.rb +16 -12
- data/lib/google/cloud/compute/v1/region_network_firewall_policies/rest/client.rb +50 -50
- data/lib/google/cloud/compute/v1/region_network_firewall_policies/rest/service_stub.rb +68 -51
- data/lib/google/cloud/compute/v1/region_notification_endpoints/rest/client.rb +12 -12
- data/lib/google/cloud/compute/v1/region_notification_endpoints/rest/service_stub.rb +16 -12
- data/lib/google/cloud/compute/v1/region_operations/rest/client.rb +16 -16
- data/lib/google/cloud/compute/v1/region_operations/rest/service_stub.rb +16 -12
- data/lib/google/cloud/compute/v1/region_security_policies/rest/client.rb +14 -14
- data/lib/google/cloud/compute/v1/region_security_policies/rest/service_stub.rb +20 -15
- data/lib/google/cloud/compute/v1/region_ssl_certificates/rest/client.rb +12 -12
- data/lib/google/cloud/compute/v1/region_ssl_certificates/rest/service_stub.rb +16 -12
- data/lib/google/cloud/compute/v1/region_ssl_policies/rest/client.rb +18 -18
- data/lib/google/cloud/compute/v1/region_ssl_policies/rest/service_stub.rb +24 -18
- data/lib/google/cloud/compute/v1/region_target_http_proxies/rest/client.rb +14 -14
- data/lib/google/cloud/compute/v1/region_target_http_proxies/rest/service_stub.rb +20 -15
- data/lib/google/cloud/compute/v1/region_target_https_proxies/rest/client.rb +18 -18
- data/lib/google/cloud/compute/v1/region_target_https_proxies/rest/service_stub.rb +28 -21
- data/lib/google/cloud/compute/v1/region_target_tcp_proxies/rest/client.rb +12 -12
- data/lib/google/cloud/compute/v1/region_target_tcp_proxies/rest/service_stub.rb +16 -12
- data/lib/google/cloud/compute/v1/region_url_maps/rest/client.rb +20 -20
- data/lib/google/cloud/compute/v1/region_url_maps/rest/service_stub.rb +28 -21
- data/lib/google/cloud/compute/v1/regions/rest/client.rb +8 -8
- data/lib/google/cloud/compute/v1/regions/rest/service_stub.rb +8 -6
- data/lib/google/cloud/compute/v1/reservations/rest/client.rb +32 -32
- data/lib/google/cloud/compute/v1/reservations/rest/service_stub.rb +40 -30
- data/lib/google/cloud/compute/v1/resource_policies/rest/client.rb +28 -28
- data/lib/google/cloud/compute/v1/resource_policies/rest/service_stub.rb +32 -24
- data/lib/google/cloud/compute/v1/routers/rest/client.rb +32 -32
- data/lib/google/cloud/compute/v1/routers/rest/service_stub.rb +40 -30
- data/lib/google/cloud/compute/v1/routes/rest/client.rb +12 -12
- data/lib/google/cloud/compute/v1/routes/rest/service_stub.rb +16 -12
- data/lib/google/cloud/compute/v1/security_policies/rest/client.rb +34 -34
- data/lib/google/cloud/compute/v1/security_policies/rest/service_stub.rb +48 -36
- data/lib/google/cloud/compute/v1/service_attachments/rest/client.rb +30 -30
- data/lib/google/cloud/compute/v1/service_attachments/rest/service_stub.rb +36 -27
- data/lib/google/cloud/compute/v1/snapshots/rest/client.rb +26 -26
- data/lib/google/cloud/compute/v1/snapshots/rest/service_stub.rb +32 -24
- data/lib/google/cloud/compute/v1/ssl_certificates/rest/client.rb +16 -16
- data/lib/google/cloud/compute/v1/ssl_certificates/rest/service_stub.rb +20 -15
- data/lib/google/cloud/compute/v1/ssl_policies/rest/client.rb +22 -22
- data/lib/google/cloud/compute/v1/ssl_policies/rest/service_stub.rb +28 -21
- data/lib/google/cloud/compute/v1/subnetworks/rest/client.rb +38 -38
- data/lib/google/cloud/compute/v1/subnetworks/rest/service_stub.rb +48 -36
- data/lib/google/cloud/compute/v1/target_grpc_proxies/rest/client.rb +14 -14
- data/lib/google/cloud/compute/v1/target_grpc_proxies/rest/service_stub.rb +20 -15
- data/lib/google/cloud/compute/v1/target_http_proxies/rest/client.rb +20 -20
- data/lib/google/cloud/compute/v1/target_http_proxies/rest/service_stub.rb +28 -21
- data/lib/google/cloud/compute/v1/target_https_proxies/rest/client.rb +28 -28
- data/lib/google/cloud/compute/v1/target_https_proxies/rest/service_stub.rb +44 -33
- data/lib/google/cloud/compute/v1/target_instances/rest/client.rb +16 -16
- data/lib/google/cloud/compute/v1/target_instances/rest/service_stub.rb +20 -15
- data/lib/google/cloud/compute/v1/target_pools/rest/client.rb +30 -30
- data/lib/google/cloud/compute/v1/target_pools/rest/service_stub.rb +44 -33
- data/lib/google/cloud/compute/v1/target_ssl_proxies/rest/client.rb +22 -22
- data/lib/google/cloud/compute/v1/target_ssl_proxies/rest/service_stub.rb +36 -27
- data/lib/google/cloud/compute/v1/target_tcp_proxies/rest/client.rb +20 -20
- data/lib/google/cloud/compute/v1/target_tcp_proxies/rest/service_stub.rb +28 -21
- data/lib/google/cloud/compute/v1/target_vpn_gateways/rest/client.rb +18 -18
- data/lib/google/cloud/compute/v1/target_vpn_gateways/rest/service_stub.rb +24 -18
- data/lib/google/cloud/compute/v1/url_maps/rest/client.rb +26 -26
- data/lib/google/cloud/compute/v1/url_maps/rest/service_stub.rb +36 -27
- data/lib/google/cloud/compute/v1/version.rb +1 -1
- data/lib/google/cloud/compute/v1/vpn_gateways/rest/client.rb +26 -26
- data/lib/google/cloud/compute/v1/vpn_gateways/rest/service_stub.rb +32 -24
- data/lib/google/cloud/compute/v1/vpn_tunnels/rest/client.rb +18 -18
- data/lib/google/cloud/compute/v1/vpn_tunnels/rest/service_stub.rb +24 -18
- data/lib/google/cloud/compute/v1/zone_operations/rest/client.rb +16 -16
- data/lib/google/cloud/compute/v1/zone_operations/rest/service_stub.rb +16 -12
- data/lib/google/cloud/compute/v1/zones/rest/client.rb +8 -8
- data/lib/google/cloud/compute/v1/zones/rest/service_stub.rb +8 -6
- data/proto_docs/google/cloud/compute/v1/compute.rb +1156 -1132
- metadata +6 -6
@@ -171,9 +171,9 @@ module Google
|
|
171
171
|
# Project ID for this request.
|
172
172
|
# @param region [::String]
|
173
173
|
# Name of the region for this request.
|
174
|
-
# @yield [result,
|
174
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
175
175
|
# @yieldparam result [::Google::Cloud::Compute::V1::DeleteRegionOperationResponse]
|
176
|
-
# @yieldparam
|
176
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
177
177
|
#
|
178
178
|
# @return [::Google::Cloud::Compute::V1::DeleteRegionOperationResponse]
|
179
179
|
#
|
@@ -205,8 +205,8 @@ module Google
|
|
205
205
|
metadata: @config.metadata,
|
206
206
|
retry_policy: @config.retry_policy
|
207
207
|
|
208
|
-
@region_operations_stub.delete request, options do |result,
|
209
|
-
yield result,
|
208
|
+
@region_operations_stub.delete request, options do |result, operation|
|
209
|
+
yield result, operation if block_given?
|
210
210
|
return result
|
211
211
|
end
|
212
212
|
rescue ::Gapic::Rest::Error => e
|
@@ -237,9 +237,9 @@ module Google
|
|
237
237
|
# Project ID for this request.
|
238
238
|
# @param region [::String]
|
239
239
|
# Name of the region for this request.
|
240
|
-
# @yield [result,
|
240
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
241
241
|
# @yieldparam result [::Google::Cloud::Compute::V1::Operation]
|
242
|
-
# @yieldparam
|
242
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
243
243
|
#
|
244
244
|
# @return [::Google::Cloud::Compute::V1::Operation]
|
245
245
|
#
|
@@ -271,8 +271,8 @@ module Google
|
|
271
271
|
metadata: @config.metadata,
|
272
272
|
retry_policy: @config.retry_policy
|
273
273
|
|
274
|
-
@region_operations_stub.get request, options do |result,
|
275
|
-
yield result,
|
274
|
+
@region_operations_stub.get request, options do |result, operation|
|
275
|
+
yield result, operation if block_given?
|
276
276
|
return result
|
277
277
|
end
|
278
278
|
rescue ::Gapic::Rest::Error => e
|
@@ -311,9 +311,9 @@ module Google
|
|
311
311
|
# Name of the region for this request.
|
312
312
|
# @param return_partial_success [::Boolean]
|
313
313
|
# Opt-in for partial success behavior which provides partial results in case of failure. The default value is false.
|
314
|
-
# @yield [result,
|
314
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
315
315
|
# @yieldparam result [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Compute::V1::Operation>]
|
316
|
-
# @yieldparam
|
316
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
317
317
|
#
|
318
318
|
# @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Compute::V1::Operation>]
|
319
319
|
#
|
@@ -345,9 +345,9 @@ module Google
|
|
345
345
|
metadata: @config.metadata,
|
346
346
|
retry_policy: @config.retry_policy
|
347
347
|
|
348
|
-
@region_operations_stub.list request, options do |result,
|
348
|
+
@region_operations_stub.list request, options do |result, operation|
|
349
349
|
result = ::Gapic::Rest::PagedEnumerable.new @region_operations_stub, :list, "items", request, result, options
|
350
|
-
yield result,
|
350
|
+
yield result, operation if block_given?
|
351
351
|
return result
|
352
352
|
end
|
353
353
|
rescue ::Gapic::Rest::Error => e
|
@@ -378,9 +378,9 @@ module Google
|
|
378
378
|
# Project ID for this request.
|
379
379
|
# @param region [::String]
|
380
380
|
# Name of the region for this request.
|
381
|
-
# @yield [result,
|
381
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
382
382
|
# @yieldparam result [::Google::Cloud::Compute::V1::Operation]
|
383
|
-
# @yieldparam
|
383
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
384
384
|
#
|
385
385
|
# @return [::Google::Cloud::Compute::V1::Operation]
|
386
386
|
#
|
@@ -412,8 +412,8 @@ module Google
|
|
412
412
|
metadata: @config.metadata,
|
413
413
|
retry_policy: @config.retry_policy
|
414
414
|
|
415
|
-
@region_operations_stub.wait request, options do |result,
|
416
|
-
yield result,
|
415
|
+
@region_operations_stub.wait request, options do |result, operation|
|
416
|
+
yield result, operation if block_given?
|
417
417
|
return result
|
418
418
|
end
|
419
419
|
rescue ::Gapic::Rest::Error => e
|
@@ -48,9 +48,9 @@ module Google
|
|
48
48
|
# @param options [::Gapic::CallOptions]
|
49
49
|
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
50
50
|
#
|
51
|
-
# @yield [result,
|
51
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
52
52
|
# @yieldparam result [::Google::Cloud::Compute::V1::DeleteRegionOperationResponse]
|
53
|
-
# @yieldparam
|
53
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
54
54
|
#
|
55
55
|
# @return [::Google::Cloud::Compute::V1::DeleteRegionOperationResponse]
|
56
56
|
# A result object deserialized from the server's reply
|
@@ -71,9 +71,10 @@ module Google
|
|
71
71
|
params: query_string_params,
|
72
72
|
options: options
|
73
73
|
)
|
74
|
+
operation = ::Gapic::Rest::TransportOperation.new response
|
74
75
|
result = ::Google::Cloud::Compute::V1::DeleteRegionOperationResponse.decode_json response.body, ignore_unknown_fields: true
|
75
76
|
|
76
|
-
yield result,
|
77
|
+
yield result, operation if block_given?
|
77
78
|
result
|
78
79
|
end
|
79
80
|
|
@@ -85,9 +86,9 @@ module Google
|
|
85
86
|
# @param options [::Gapic::CallOptions]
|
86
87
|
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
87
88
|
#
|
88
|
-
# @yield [result,
|
89
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
89
90
|
# @yieldparam result [::Google::Cloud::Compute::V1::Operation]
|
90
|
-
# @yieldparam
|
91
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
91
92
|
#
|
92
93
|
# @return [::Google::Cloud::Compute::V1::Operation]
|
93
94
|
# A result object deserialized from the server's reply
|
@@ -108,9 +109,10 @@ module Google
|
|
108
109
|
params: query_string_params,
|
109
110
|
options: options
|
110
111
|
)
|
112
|
+
operation = ::Gapic::Rest::TransportOperation.new response
|
111
113
|
result = ::Google::Cloud::Compute::V1::Operation.decode_json response.body, ignore_unknown_fields: true
|
112
114
|
|
113
|
-
yield result,
|
115
|
+
yield result, operation if block_given?
|
114
116
|
result
|
115
117
|
end
|
116
118
|
|
@@ -122,9 +124,9 @@ module Google
|
|
122
124
|
# @param options [::Gapic::CallOptions]
|
123
125
|
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
124
126
|
#
|
125
|
-
# @yield [result,
|
127
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
126
128
|
# @yieldparam result [::Google::Cloud::Compute::V1::OperationList]
|
127
|
-
# @yieldparam
|
129
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
128
130
|
#
|
129
131
|
# @return [::Google::Cloud::Compute::V1::OperationList]
|
130
132
|
# A result object deserialized from the server's reply
|
@@ -145,9 +147,10 @@ module Google
|
|
145
147
|
params: query_string_params,
|
146
148
|
options: options
|
147
149
|
)
|
150
|
+
operation = ::Gapic::Rest::TransportOperation.new response
|
148
151
|
result = ::Google::Cloud::Compute::V1::OperationList.decode_json response.body, ignore_unknown_fields: true
|
149
152
|
|
150
|
-
yield result,
|
153
|
+
yield result, operation if block_given?
|
151
154
|
result
|
152
155
|
end
|
153
156
|
|
@@ -159,9 +162,9 @@ module Google
|
|
159
162
|
# @param options [::Gapic::CallOptions]
|
160
163
|
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
161
164
|
#
|
162
|
-
# @yield [result,
|
165
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
163
166
|
# @yieldparam result [::Google::Cloud::Compute::V1::Operation]
|
164
|
-
# @yieldparam
|
167
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
165
168
|
#
|
166
169
|
# @return [::Google::Cloud::Compute::V1::Operation]
|
167
170
|
# A result object deserialized from the server's reply
|
@@ -182,9 +185,10 @@ module Google
|
|
182
185
|
params: query_string_params,
|
183
186
|
options: options
|
184
187
|
)
|
188
|
+
operation = ::Gapic::Rest::TransportOperation.new response
|
185
189
|
result = ::Google::Cloud::Compute::V1::Operation.decode_json response.body, ignore_unknown_fields: true
|
186
190
|
|
187
|
-
yield result,
|
191
|
+
yield result, operation if block_given?
|
188
192
|
result
|
189
193
|
end
|
190
194
|
|
@@ -189,9 +189,9 @@ module Google
|
|
189
189
|
# 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).
|
190
190
|
# @param security_policy [::String]
|
191
191
|
# Name of the security policy to delete.
|
192
|
-
# @yield [result,
|
192
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
193
193
|
# @yieldparam result [::Gapic::GenericLRO::Operation]
|
194
|
-
# @yieldparam
|
194
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
195
195
|
#
|
196
196
|
# @return [::Gapic::GenericLRO::Operation]
|
197
197
|
#
|
@@ -264,9 +264,9 @@ module Google
|
|
264
264
|
# Name of the region scoping this request.
|
265
265
|
# @param security_policy [::String]
|
266
266
|
# Name of the security policy to get.
|
267
|
-
# @yield [result,
|
267
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
268
268
|
# @yieldparam result [::Google::Cloud::Compute::V1::SecurityPolicy]
|
269
|
-
# @yieldparam
|
269
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
270
270
|
#
|
271
271
|
# @return [::Google::Cloud::Compute::V1::SecurityPolicy]
|
272
272
|
#
|
@@ -298,8 +298,8 @@ module Google
|
|
298
298
|
metadata: @config.metadata,
|
299
299
|
retry_policy: @config.retry_policy
|
300
300
|
|
301
|
-
@region_security_policies_stub.get request, options do |result,
|
302
|
-
yield result,
|
301
|
+
@region_security_policies_stub.get request, options do |result, operation|
|
302
|
+
yield result, operation if block_given?
|
303
303
|
return result
|
304
304
|
end
|
305
305
|
rescue ::Gapic::Rest::Error => e
|
@@ -334,9 +334,9 @@ module Google
|
|
334
334
|
# The body resource for this request
|
335
335
|
# @param validate_only [::Boolean]
|
336
336
|
# If true, the request will not be committed.
|
337
|
-
# @yield [result,
|
337
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
338
338
|
# @yieldparam result [::Gapic::GenericLRO::Operation]
|
339
|
-
# @yieldparam
|
339
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
340
340
|
#
|
341
341
|
# @return [::Gapic::GenericLRO::Operation]
|
342
342
|
#
|
@@ -417,9 +417,9 @@ module Google
|
|
417
417
|
# Name of the region scoping this request.
|
418
418
|
# @param return_partial_success [::Boolean]
|
419
419
|
# Opt-in for partial success behavior which provides partial results in case of failure. The default value is false.
|
420
|
-
# @yield [result,
|
420
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
421
421
|
# @yieldparam result [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Compute::V1::SecurityPolicy>]
|
422
|
-
# @yieldparam
|
422
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
423
423
|
#
|
424
424
|
# @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Compute::V1::SecurityPolicy>]
|
425
425
|
#
|
@@ -451,9 +451,9 @@ module Google
|
|
451
451
|
metadata: @config.metadata,
|
452
452
|
retry_policy: @config.retry_policy
|
453
453
|
|
454
|
-
@region_security_policies_stub.list request, options do |result,
|
454
|
+
@region_security_policies_stub.list request, options do |result, operation|
|
455
455
|
result = ::Gapic::Rest::PagedEnumerable.new @region_security_policies_stub, :list, "items", request, result, options
|
456
|
-
yield result,
|
456
|
+
yield result, operation if block_given?
|
457
457
|
return result
|
458
458
|
end
|
459
459
|
rescue ::Gapic::Rest::Error => e
|
@@ -488,9 +488,9 @@ module Google
|
|
488
488
|
# Name of the security policy to update.
|
489
489
|
# @param security_policy_resource [::Google::Cloud::Compute::V1::SecurityPolicy, ::Hash]
|
490
490
|
# The body resource for this request
|
491
|
-
# @yield [result,
|
491
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
492
492
|
# @yieldparam result [::Gapic::GenericLRO::Operation]
|
493
|
-
# @yieldparam
|
493
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
494
494
|
#
|
495
495
|
# @return [::Gapic::GenericLRO::Operation]
|
496
496
|
#
|
@@ -48,9 +48,9 @@ module Google
|
|
48
48
|
# @param options [::Gapic::CallOptions]
|
49
49
|
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
50
50
|
#
|
51
|
-
# @yield [result,
|
51
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
52
52
|
# @yieldparam result [::Google::Cloud::Compute::V1::Operation]
|
53
|
-
# @yieldparam
|
53
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
54
54
|
#
|
55
55
|
# @return [::Google::Cloud::Compute::V1::Operation]
|
56
56
|
# A result object deserialized from the server's reply
|
@@ -71,9 +71,10 @@ module Google
|
|
71
71
|
params: query_string_params,
|
72
72
|
options: options
|
73
73
|
)
|
74
|
+
operation = ::Gapic::Rest::TransportOperation.new response
|
74
75
|
result = ::Google::Cloud::Compute::V1::Operation.decode_json response.body, ignore_unknown_fields: true
|
75
76
|
|
76
|
-
yield result,
|
77
|
+
yield result, operation if block_given?
|
77
78
|
result
|
78
79
|
end
|
79
80
|
|
@@ -85,9 +86,9 @@ module Google
|
|
85
86
|
# @param options [::Gapic::CallOptions]
|
86
87
|
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
87
88
|
#
|
88
|
-
# @yield [result,
|
89
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
89
90
|
# @yieldparam result [::Google::Cloud::Compute::V1::SecurityPolicy]
|
90
|
-
# @yieldparam
|
91
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
91
92
|
#
|
92
93
|
# @return [::Google::Cloud::Compute::V1::SecurityPolicy]
|
93
94
|
# A result object deserialized from the server's reply
|
@@ -108,9 +109,10 @@ module Google
|
|
108
109
|
params: query_string_params,
|
109
110
|
options: options
|
110
111
|
)
|
112
|
+
operation = ::Gapic::Rest::TransportOperation.new response
|
111
113
|
result = ::Google::Cloud::Compute::V1::SecurityPolicy.decode_json response.body, ignore_unknown_fields: true
|
112
114
|
|
113
|
-
yield result,
|
115
|
+
yield result, operation if block_given?
|
114
116
|
result
|
115
117
|
end
|
116
118
|
|
@@ -122,9 +124,9 @@ module Google
|
|
122
124
|
# @param options [::Gapic::CallOptions]
|
123
125
|
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
124
126
|
#
|
125
|
-
# @yield [result,
|
127
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
126
128
|
# @yieldparam result [::Google::Cloud::Compute::V1::Operation]
|
127
|
-
# @yieldparam
|
129
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
128
130
|
#
|
129
131
|
# @return [::Google::Cloud::Compute::V1::Operation]
|
130
132
|
# A result object deserialized from the server's reply
|
@@ -145,9 +147,10 @@ module Google
|
|
145
147
|
params: query_string_params,
|
146
148
|
options: options
|
147
149
|
)
|
150
|
+
operation = ::Gapic::Rest::TransportOperation.new response
|
148
151
|
result = ::Google::Cloud::Compute::V1::Operation.decode_json response.body, ignore_unknown_fields: true
|
149
152
|
|
150
|
-
yield result,
|
153
|
+
yield result, operation if block_given?
|
151
154
|
result
|
152
155
|
end
|
153
156
|
|
@@ -159,9 +162,9 @@ module Google
|
|
159
162
|
# @param options [::Gapic::CallOptions]
|
160
163
|
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
161
164
|
#
|
162
|
-
# @yield [result,
|
165
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
163
166
|
# @yieldparam result [::Google::Cloud::Compute::V1::SecurityPolicyList]
|
164
|
-
# @yieldparam
|
167
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
165
168
|
#
|
166
169
|
# @return [::Google::Cloud::Compute::V1::SecurityPolicyList]
|
167
170
|
# A result object deserialized from the server's reply
|
@@ -182,9 +185,10 @@ module Google
|
|
182
185
|
params: query_string_params,
|
183
186
|
options: options
|
184
187
|
)
|
188
|
+
operation = ::Gapic::Rest::TransportOperation.new response
|
185
189
|
result = ::Google::Cloud::Compute::V1::SecurityPolicyList.decode_json response.body, ignore_unknown_fields: true
|
186
190
|
|
187
|
-
yield result,
|
191
|
+
yield result, operation if block_given?
|
188
192
|
result
|
189
193
|
end
|
190
194
|
|
@@ -196,9 +200,9 @@ module Google
|
|
196
200
|
# @param options [::Gapic::CallOptions]
|
197
201
|
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
198
202
|
#
|
199
|
-
# @yield [result,
|
203
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
200
204
|
# @yieldparam result [::Google::Cloud::Compute::V1::Operation]
|
201
|
-
# @yieldparam
|
205
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
202
206
|
#
|
203
207
|
# @return [::Google::Cloud::Compute::V1::Operation]
|
204
208
|
# A result object deserialized from the server's reply
|
@@ -219,9 +223,10 @@ module Google
|
|
219
223
|
params: query_string_params,
|
220
224
|
options: options
|
221
225
|
)
|
226
|
+
operation = ::Gapic::Rest::TransportOperation.new response
|
222
227
|
result = ::Google::Cloud::Compute::V1::Operation.decode_json response.body, ignore_unknown_fields: true
|
223
228
|
|
224
|
-
yield result,
|
229
|
+
yield result, operation if block_given?
|
225
230
|
result
|
226
231
|
end
|
227
232
|
|
@@ -187,9 +187,9 @@ module Google
|
|
187
187
|
# 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).
|
188
188
|
# @param ssl_certificate [::String]
|
189
189
|
# Name of the SslCertificate resource to delete.
|
190
|
-
# @yield [result,
|
190
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
191
191
|
# @yieldparam result [::Gapic::GenericLRO::Operation]
|
192
|
-
# @yieldparam
|
192
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
193
193
|
#
|
194
194
|
# @return [::Gapic::GenericLRO::Operation]
|
195
195
|
#
|
@@ -262,9 +262,9 @@ module Google
|
|
262
262
|
# Name of the region scoping this request.
|
263
263
|
# @param ssl_certificate [::String]
|
264
264
|
# Name of the SslCertificate resource to return.
|
265
|
-
# @yield [result,
|
265
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
266
266
|
# @yieldparam result [::Google::Cloud::Compute::V1::SslCertificate]
|
267
|
-
# @yieldparam
|
267
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
268
268
|
#
|
269
269
|
# @return [::Google::Cloud::Compute::V1::SslCertificate]
|
270
270
|
#
|
@@ -296,8 +296,8 @@ module Google
|
|
296
296
|
metadata: @config.metadata,
|
297
297
|
retry_policy: @config.retry_policy
|
298
298
|
|
299
|
-
@region_ssl_certificates_stub.get request, options do |result,
|
300
|
-
yield result,
|
299
|
+
@region_ssl_certificates_stub.get request, options do |result, operation|
|
300
|
+
yield result, operation if block_given?
|
301
301
|
return result
|
302
302
|
end
|
303
303
|
rescue ::Gapic::Rest::Error => e
|
@@ -330,9 +330,9 @@ module Google
|
|
330
330
|
# 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).
|
331
331
|
# @param ssl_certificate_resource [::Google::Cloud::Compute::V1::SslCertificate, ::Hash]
|
332
332
|
# The body resource for this request
|
333
|
-
# @yield [result,
|
333
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
334
334
|
# @yieldparam result [::Gapic::GenericLRO::Operation]
|
335
|
-
# @yieldparam
|
335
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
336
336
|
#
|
337
337
|
# @return [::Gapic::GenericLRO::Operation]
|
338
338
|
#
|
@@ -413,9 +413,9 @@ module Google
|
|
413
413
|
# Name of the region scoping this request.
|
414
414
|
# @param return_partial_success [::Boolean]
|
415
415
|
# Opt-in for partial success behavior which provides partial results in case of failure. The default value is false.
|
416
|
-
# @yield [result,
|
416
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
417
417
|
# @yieldparam result [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Compute::V1::SslCertificate>]
|
418
|
-
# @yieldparam
|
418
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
419
419
|
#
|
420
420
|
# @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Compute::V1::SslCertificate>]
|
421
421
|
#
|
@@ -447,9 +447,9 @@ module Google
|
|
447
447
|
metadata: @config.metadata,
|
448
448
|
retry_policy: @config.retry_policy
|
449
449
|
|
450
|
-
@region_ssl_certificates_stub.list request, options do |result,
|
450
|
+
@region_ssl_certificates_stub.list request, options do |result, operation|
|
451
451
|
result = ::Gapic::Rest::PagedEnumerable.new @region_ssl_certificates_stub, :list, "items", request, result, options
|
452
|
-
yield result,
|
452
|
+
yield result, operation if block_given?
|
453
453
|
return result
|
454
454
|
end
|
455
455
|
rescue ::Gapic::Rest::Error => e
|
@@ -48,9 +48,9 @@ module Google
|
|
48
48
|
# @param options [::Gapic::CallOptions]
|
49
49
|
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
50
50
|
#
|
51
|
-
# @yield [result,
|
51
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
52
52
|
# @yieldparam result [::Google::Cloud::Compute::V1::Operation]
|
53
|
-
# @yieldparam
|
53
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
54
54
|
#
|
55
55
|
# @return [::Google::Cloud::Compute::V1::Operation]
|
56
56
|
# A result object deserialized from the server's reply
|
@@ -71,9 +71,10 @@ module Google
|
|
71
71
|
params: query_string_params,
|
72
72
|
options: options
|
73
73
|
)
|
74
|
+
operation = ::Gapic::Rest::TransportOperation.new response
|
74
75
|
result = ::Google::Cloud::Compute::V1::Operation.decode_json response.body, ignore_unknown_fields: true
|
75
76
|
|
76
|
-
yield result,
|
77
|
+
yield result, operation if block_given?
|
77
78
|
result
|
78
79
|
end
|
79
80
|
|
@@ -85,9 +86,9 @@ module Google
|
|
85
86
|
# @param options [::Gapic::CallOptions]
|
86
87
|
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
87
88
|
#
|
88
|
-
# @yield [result,
|
89
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
89
90
|
# @yieldparam result [::Google::Cloud::Compute::V1::SslCertificate]
|
90
|
-
# @yieldparam
|
91
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
91
92
|
#
|
92
93
|
# @return [::Google::Cloud::Compute::V1::SslCertificate]
|
93
94
|
# A result object deserialized from the server's reply
|
@@ -108,9 +109,10 @@ module Google
|
|
108
109
|
params: query_string_params,
|
109
110
|
options: options
|
110
111
|
)
|
112
|
+
operation = ::Gapic::Rest::TransportOperation.new response
|
111
113
|
result = ::Google::Cloud::Compute::V1::SslCertificate.decode_json response.body, ignore_unknown_fields: true
|
112
114
|
|
113
|
-
yield result,
|
115
|
+
yield result, operation if block_given?
|
114
116
|
result
|
115
117
|
end
|
116
118
|
|
@@ -122,9 +124,9 @@ module Google
|
|
122
124
|
# @param options [::Gapic::CallOptions]
|
123
125
|
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
124
126
|
#
|
125
|
-
# @yield [result,
|
127
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
126
128
|
# @yieldparam result [::Google::Cloud::Compute::V1::Operation]
|
127
|
-
# @yieldparam
|
129
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
128
130
|
#
|
129
131
|
# @return [::Google::Cloud::Compute::V1::Operation]
|
130
132
|
# A result object deserialized from the server's reply
|
@@ -145,9 +147,10 @@ module Google
|
|
145
147
|
params: query_string_params,
|
146
148
|
options: options
|
147
149
|
)
|
150
|
+
operation = ::Gapic::Rest::TransportOperation.new response
|
148
151
|
result = ::Google::Cloud::Compute::V1::Operation.decode_json response.body, ignore_unknown_fields: true
|
149
152
|
|
150
|
-
yield result,
|
153
|
+
yield result, operation if block_given?
|
151
154
|
result
|
152
155
|
end
|
153
156
|
|
@@ -159,9 +162,9 @@ module Google
|
|
159
162
|
# @param options [::Gapic::CallOptions]
|
160
163
|
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
161
164
|
#
|
162
|
-
# @yield [result,
|
165
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
163
166
|
# @yieldparam result [::Google::Cloud::Compute::V1::SslCertificateList]
|
164
|
-
# @yieldparam
|
167
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
165
168
|
#
|
166
169
|
# @return [::Google::Cloud::Compute::V1::SslCertificateList]
|
167
170
|
# A result object deserialized from the server's reply
|
@@ -182,9 +185,10 @@ module Google
|
|
182
185
|
params: query_string_params,
|
183
186
|
options: options
|
184
187
|
)
|
188
|
+
operation = ::Gapic::Rest::TransportOperation.new response
|
185
189
|
result = ::Google::Cloud::Compute::V1::SslCertificateList.decode_json response.body, ignore_unknown_fields: true
|
186
190
|
|
187
|
-
yield result,
|
191
|
+
yield result, operation if block_given?
|
188
192
|
result
|
189
193
|
end
|
190
194
|
|