google-cloud-compute-v1 1.10.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/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 +1128 -1128
- metadata +6 -6
@@ -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
|
|
@@ -187,9 +187,9 @@ module Google
|
|
187
187
|
# The name of the region where the network endpoint group is located. It should comply with RFC1035.
|
188
188
|
# @param request_id [::String]
|
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
|
-
# @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
|
# Project ID for this request.
|
263
263
|
# @param region [::String]
|
264
264
|
# The name of the region where the network endpoint group is located. It should comply with RFC1035.
|
265
|
-
# @yield [result,
|
265
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
266
266
|
# @yieldparam result [::Google::Cloud::Compute::V1::NetworkEndpointGroup]
|
267
|
-
# @yieldparam
|
267
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
268
268
|
#
|
269
269
|
# @return [::Google::Cloud::Compute::V1::NetworkEndpointGroup]
|
270
270
|
#
|
@@ -296,8 +296,8 @@ module Google
|
|
296
296
|
metadata: @config.metadata,
|
297
297
|
retry_policy: @config.retry_policy
|
298
298
|
|
299
|
-
@region_network_endpoint_groups_stub.get request, options do |result,
|
300
|
-
yield result,
|
299
|
+
@region_network_endpoint_groups_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
|
# The name of the region where you want to create the network endpoint group. It should comply with RFC1035.
|
331
331
|
# @param request_id [::String]
|
332
332
|
# 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).
|
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
|
# The name of the region where the network endpoint group is located. It should comply with RFC1035.
|
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::NetworkEndpointGroup>]
|
418
|
-
# @yieldparam
|
418
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
419
419
|
#
|
420
420
|
# @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Compute::V1::NetworkEndpointGroup>]
|
421
421
|
#
|
@@ -447,9 +447,9 @@ module Google
|
|
447
447
|
metadata: @config.metadata,
|
448
448
|
retry_policy: @config.retry_policy
|
449
449
|
|
450
|
-
@region_network_endpoint_groups_stub.list request, options do |result,
|
450
|
+
@region_network_endpoint_groups_stub.list request, options do |result, operation|
|
451
451
|
result = ::Gapic::Rest::PagedEnumerable.new @region_network_endpoint_groups_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::NetworkEndpointGroup]
|
90
|
-
# @yieldparam
|
91
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
91
92
|
#
|
92
93
|
# @return [::Google::Cloud::Compute::V1::NetworkEndpointGroup]
|
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::NetworkEndpointGroup.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::NetworkEndpointGroupList]
|
164
|
-
# @yieldparam
|
167
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
165
168
|
#
|
166
169
|
# @return [::Google::Cloud::Compute::V1::NetworkEndpointGroupList]
|
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::NetworkEndpointGroupList.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
|
|
@@ -229,9 +229,9 @@ module Google
|
|
229
229
|
# Indicates whether or not to replace it if an association already exists. This is false by default, in which case an error will be returned if an association already exists.
|
230
230
|
# @param request_id [::String]
|
231
231
|
# 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).
|
232
|
-
# @yield [result,
|
232
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
233
233
|
# @yieldparam result [::Gapic::GenericLRO::Operation]
|
234
|
-
# @yieldparam
|
234
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
235
235
|
#
|
236
236
|
# @return [::Gapic::GenericLRO::Operation]
|
237
237
|
#
|
@@ -312,9 +312,9 @@ module Google
|
|
312
312
|
# Name of the region scoping this request.
|
313
313
|
# @param request_id [::String]
|
314
314
|
# 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).
|
315
|
-
# @yield [result,
|
315
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
316
316
|
# @yieldparam result [::Gapic::GenericLRO::Operation]
|
317
|
-
# @yieldparam
|
317
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
318
318
|
#
|
319
319
|
# @return [::Gapic::GenericLRO::Operation]
|
320
320
|
#
|
@@ -391,9 +391,9 @@ module Google
|
|
391
391
|
# 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).
|
392
392
|
# @param source_firewall_policy [::String]
|
393
393
|
# The firewall policy from which to copy rules.
|
394
|
-
# @yield [result,
|
394
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
395
395
|
# @yieldparam result [::Gapic::GenericLRO::Operation]
|
396
|
-
# @yieldparam
|
396
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
397
397
|
#
|
398
398
|
# @return [::Gapic::GenericLRO::Operation]
|
399
399
|
#
|
@@ -468,9 +468,9 @@ module Google
|
|
468
468
|
# Name of the region scoping this request.
|
469
469
|
# @param request_id [::String]
|
470
470
|
# 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).
|
471
|
-
# @yield [result,
|
471
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
472
472
|
# @yieldparam result [::Gapic::GenericLRO::Operation]
|
473
|
-
# @yieldparam
|
473
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
474
474
|
#
|
475
475
|
# @return [::Gapic::GenericLRO::Operation]
|
476
476
|
#
|
@@ -543,9 +543,9 @@ module Google
|
|
543
543
|
# Project ID for this request.
|
544
544
|
# @param region [::String]
|
545
545
|
# Name of the region scoping this request.
|
546
|
-
# @yield [result,
|
546
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
547
547
|
# @yieldparam result [::Google::Cloud::Compute::V1::FirewallPolicy]
|
548
|
-
# @yieldparam
|
548
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
549
549
|
#
|
550
550
|
# @return [::Google::Cloud::Compute::V1::FirewallPolicy]
|
551
551
|
#
|
@@ -577,8 +577,8 @@ module Google
|
|
577
577
|
metadata: @config.metadata,
|
578
578
|
retry_policy: @config.retry_policy
|
579
579
|
|
580
|
-
@region_network_firewall_policies_stub.get request, options do |result,
|
581
|
-
yield result,
|
580
|
+
@region_network_firewall_policies_stub.get request, options do |result, operation|
|
581
|
+
yield result, operation if block_given?
|
582
582
|
return result
|
583
583
|
end
|
584
584
|
rescue ::Gapic::Rest::Error => e
|
@@ -611,9 +611,9 @@ module Google
|
|
611
611
|
# Project ID for this request.
|
612
612
|
# @param region [::String]
|
613
613
|
# Name of the region scoping this request.
|
614
|
-
# @yield [result,
|
614
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
615
615
|
# @yieldparam result [::Google::Cloud::Compute::V1::FirewallPolicyAssociation]
|
616
|
-
# @yieldparam
|
616
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
617
617
|
#
|
618
618
|
# @return [::Google::Cloud::Compute::V1::FirewallPolicyAssociation]
|
619
619
|
#
|
@@ -645,8 +645,8 @@ module Google
|
|
645
645
|
metadata: @config.metadata,
|
646
646
|
retry_policy: @config.retry_policy
|
647
647
|
|
648
|
-
@region_network_firewall_policies_stub.get_association request, options do |result,
|
649
|
-
yield result,
|
648
|
+
@region_network_firewall_policies_stub.get_association request, options do |result, operation|
|
649
|
+
yield result, operation if block_given?
|
650
650
|
return result
|
651
651
|
end
|
652
652
|
rescue ::Gapic::Rest::Error => e
|
@@ -677,9 +677,9 @@ module Google
|
|
677
677
|
# Project ID for this request.
|
678
678
|
# @param region [::String]
|
679
679
|
# Name of the region scoping this request.
|
680
|
-
# @yield [result,
|
680
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
681
681
|
# @yieldparam result [::Google::Cloud::Compute::V1::RegionNetworkFirewallPoliciesGetEffectiveFirewallsResponse]
|
682
|
-
# @yieldparam
|
682
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
683
683
|
#
|
684
684
|
# @return [::Google::Cloud::Compute::V1::RegionNetworkFirewallPoliciesGetEffectiveFirewallsResponse]
|
685
685
|
#
|
@@ -711,8 +711,8 @@ module Google
|
|
711
711
|
metadata: @config.metadata,
|
712
712
|
retry_policy: @config.retry_policy
|
713
713
|
|
714
|
-
@region_network_firewall_policies_stub.get_effective_firewalls request, options do |result,
|
715
|
-
yield result,
|
714
|
+
@region_network_firewall_policies_stub.get_effective_firewalls request, options do |result, operation|
|
715
|
+
yield result, operation if block_given?
|
716
716
|
return result
|
717
717
|
end
|
718
718
|
rescue ::Gapic::Rest::Error => e
|
@@ -745,9 +745,9 @@ module Google
|
|
745
745
|
# The name of the region for this request.
|
746
746
|
# @param resource [::String]
|
747
747
|
# Name or id of the resource for this request.
|
748
|
-
# @yield [result,
|
748
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
749
749
|
# @yieldparam result [::Google::Cloud::Compute::V1::Policy]
|
750
|
-
# @yieldparam
|
750
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
751
751
|
#
|
752
752
|
# @return [::Google::Cloud::Compute::V1::Policy]
|
753
753
|
#
|
@@ -779,8 +779,8 @@ module Google
|
|
779
779
|
metadata: @config.metadata,
|
780
780
|
retry_policy: @config.retry_policy
|
781
781
|
|
782
|
-
@region_network_firewall_policies_stub.get_iam_policy request, options do |result,
|
783
|
-
yield result,
|
782
|
+
@region_network_firewall_policies_stub.get_iam_policy request, options do |result, operation|
|
783
|
+
yield result, operation if block_given?
|
784
784
|
return result
|
785
785
|
end
|
786
786
|
rescue ::Gapic::Rest::Error => e
|
@@ -813,9 +813,9 @@ module Google
|
|
813
813
|
# Project ID for this request.
|
814
814
|
# @param region [::String]
|
815
815
|
# Name of the region scoping this request.
|
816
|
-
# @yield [result,
|
816
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
817
817
|
# @yieldparam result [::Google::Cloud::Compute::V1::FirewallPolicyRule]
|
818
|
-
# @yieldparam
|
818
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
819
819
|
#
|
820
820
|
# @return [::Google::Cloud::Compute::V1::FirewallPolicyRule]
|
821
821
|
#
|
@@ -847,8 +847,8 @@ module Google
|
|
847
847
|
metadata: @config.metadata,
|
848
848
|
retry_policy: @config.retry_policy
|
849
849
|
|
850
|
-
@region_network_firewall_policies_stub.get_rule request, options do |result,
|
851
|
-
yield result,
|
850
|
+
@region_network_firewall_policies_stub.get_rule request, options do |result, operation|
|
851
|
+
yield result, operation if block_given?
|
852
852
|
return result
|
853
853
|
end
|
854
854
|
rescue ::Gapic::Rest::Error => e
|
@@ -881,9 +881,9 @@ module Google
|
|
881
881
|
# Name of the region scoping this request.
|
882
882
|
# @param request_id [::String]
|
883
883
|
# 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).
|
884
|
-
# @yield [result,
|
884
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
885
885
|
# @yieldparam result [::Gapic::GenericLRO::Operation]
|
886
|
-
# @yieldparam
|
886
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
887
887
|
#
|
888
888
|
# @return [::Gapic::GenericLRO::Operation]
|
889
889
|
#
|
@@ -964,9 +964,9 @@ module Google
|
|
964
964
|
# Name of the region scoping this request.
|
965
965
|
# @param return_partial_success [::Boolean]
|
966
966
|
# Opt-in for partial success behavior which provides partial results in case of failure. The default value is false.
|
967
|
-
# @yield [result,
|
967
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
968
968
|
# @yieldparam result [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Compute::V1::FirewallPolicy>]
|
969
|
-
# @yieldparam
|
969
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
970
970
|
#
|
971
971
|
# @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Compute::V1::FirewallPolicy>]
|
972
972
|
#
|
@@ -998,9 +998,9 @@ module Google
|
|
998
998
|
metadata: @config.metadata,
|
999
999
|
retry_policy: @config.retry_policy
|
1000
1000
|
|
1001
|
-
@region_network_firewall_policies_stub.list request, options do |result,
|
1001
|
+
@region_network_firewall_policies_stub.list request, options do |result, operation|
|
1002
1002
|
result = ::Gapic::Rest::PagedEnumerable.new @region_network_firewall_policies_stub, :list, "items", request, result, options
|
1003
|
-
yield result,
|
1003
|
+
yield result, operation if block_given?
|
1004
1004
|
return result
|
1005
1005
|
end
|
1006
1006
|
rescue ::Gapic::Rest::Error => e
|
@@ -1035,9 +1035,9 @@ module Google
|
|
1035
1035
|
# Name of the region scoping this request.
|
1036
1036
|
# @param request_id [::String]
|
1037
1037
|
# 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).
|
1038
|
-
# @yield [result,
|
1038
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
1039
1039
|
# @yieldparam result [::Gapic::GenericLRO::Operation]
|
1040
|
-
# @yieldparam
|
1040
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
1041
1041
|
#
|
1042
1042
|
# @return [::Gapic::GenericLRO::Operation]
|
1043
1043
|
#
|
@@ -1116,9 +1116,9 @@ module Google
|
|
1116
1116
|
# Name of the region scoping this request.
|
1117
1117
|
# @param request_id [::String]
|
1118
1118
|
# 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).
|
1119
|
-
# @yield [result,
|
1119
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
1120
1120
|
# @yieldparam result [::Gapic::GenericLRO::Operation]
|
1121
|
-
# @yieldparam
|
1121
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
1122
1122
|
#
|
1123
1123
|
# @return [::Gapic::GenericLRO::Operation]
|
1124
1124
|
#
|
@@ -1195,9 +1195,9 @@ module Google
|
|
1195
1195
|
# Name of the region scoping this request.
|
1196
1196
|
# @param request_id [::String]
|
1197
1197
|
# 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).
|
1198
|
-
# @yield [result,
|
1198
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
1199
1199
|
# @yieldparam result [::Gapic::GenericLRO::Operation]
|
1200
|
-
# @yieldparam
|
1200
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
1201
1201
|
#
|
1202
1202
|
# @return [::Gapic::GenericLRO::Operation]
|
1203
1203
|
#
|
@@ -1274,9 +1274,9 @@ module Google
|
|
1274
1274
|
# Name of the region scoping this request.
|
1275
1275
|
# @param request_id [::String]
|
1276
1276
|
# 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).
|
1277
|
-
# @yield [result,
|
1277
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
1278
1278
|
# @yieldparam result [::Gapic::GenericLRO::Operation]
|
1279
|
-
# @yieldparam
|
1279
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
1280
1280
|
#
|
1281
1281
|
# @return [::Gapic::GenericLRO::Operation]
|
1282
1282
|
#
|
@@ -1351,9 +1351,9 @@ module Google
|
|
1351
1351
|
# The body resource for this request
|
1352
1352
|
# @param resource [::String]
|
1353
1353
|
# Name or id of the resource for this request.
|
1354
|
-
# @yield [result,
|
1354
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
1355
1355
|
# @yieldparam result [::Google::Cloud::Compute::V1::Policy]
|
1356
|
-
# @yieldparam
|
1356
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
1357
1357
|
#
|
1358
1358
|
# @return [::Google::Cloud::Compute::V1::Policy]
|
1359
1359
|
#
|
@@ -1385,8 +1385,8 @@ module Google
|
|
1385
1385
|
metadata: @config.metadata,
|
1386
1386
|
retry_policy: @config.retry_policy
|
1387
1387
|
|
1388
|
-
@region_network_firewall_policies_stub.set_iam_policy request, options do |result,
|
1389
|
-
yield result,
|
1388
|
+
@region_network_firewall_policies_stub.set_iam_policy request, options do |result, operation|
|
1389
|
+
yield result, operation if block_given?
|
1390
1390
|
return result
|
1391
1391
|
end
|
1392
1392
|
rescue ::Gapic::Rest::Error => e
|
@@ -1419,9 +1419,9 @@ module Google
|
|
1419
1419
|
# Name or id of the resource for this request.
|
1420
1420
|
# @param test_permissions_request_resource [::Google::Cloud::Compute::V1::TestPermissionsRequest, ::Hash]
|
1421
1421
|
# The body resource for this request
|
1422
|
-
# @yield [result,
|
1422
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
1423
1423
|
# @yieldparam result [::Google::Cloud::Compute::V1::TestPermissionsResponse]
|
1424
|
-
# @yieldparam
|
1424
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
1425
1425
|
#
|
1426
1426
|
# @return [::Google::Cloud::Compute::V1::TestPermissionsResponse]
|
1427
1427
|
#
|
@@ -1453,8 +1453,8 @@ module Google
|
|
1453
1453
|
metadata: @config.metadata,
|
1454
1454
|
retry_policy: @config.retry_policy
|
1455
1455
|
|
1456
|
-
@region_network_firewall_policies_stub.test_iam_permissions request, options do |result,
|
1457
|
-
yield result,
|
1456
|
+
@region_network_firewall_policies_stub.test_iam_permissions request, options do |result, operation|
|
1457
|
+
yield result, operation if block_given?
|
1458
1458
|
return result
|
1459
1459
|
end
|
1460
1460
|
rescue ::Gapic::Rest::Error => e
|