google-cloud-compute-v1 2.14.0 → 2.15.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 +36 -0
- data/lib/google/cloud/compute/v1/accelerator_types/rest/client.rb +29 -4
- data/lib/google/cloud/compute/v1/accelerator_types/rest/service_stub.rb +38 -20
- data/lib/google/cloud/compute/v1/addresses/rest/client.rb +33 -8
- data/lib/google/cloud/compute/v1/addresses/rest/service_stub.rb +70 -44
- data/lib/google/cloud/compute/v1/autoscalers/rest/client.rb +33 -8
- data/lib/google/cloud/compute/v1/autoscalers/rest/service_stub.rb +70 -44
- data/lib/google/cloud/compute/v1/backend_buckets/rest/client.rb +35 -13
- data/lib/google/cloud/compute/v1/backend_buckets/rest/service_stub.rb +110 -74
- data/lib/google/cloud/compute/v1/backend_services/rest/client.rb +38 -17
- data/lib/google/cloud/compute/v1/backend_services/rest/service_stub.rb +142 -98
- data/lib/google/cloud/compute/v1/compute_pb.rb +52 -1
- data/lib/google/cloud/compute/v1/disk_types/rest/client.rb +29 -4
- data/lib/google/cloud/compute/v1/disk_types/rest/service_stub.rb +38 -20
- data/lib/google/cloud/compute/v1/disks/rest/client.rb +41 -19
- data/lib/google/cloud/compute/v1/disks/rest/service_stub.rb +158 -110
- data/lib/google/cloud/compute/v1/external_vpn_gateways/rest/client.rb +31 -7
- data/lib/google/cloud/compute/v1/external_vpn_gateways/rest/service_stub.rb +62 -38
- data/lib/google/cloud/compute/v1/firewall_policies/rest/client.rb +38 -19
- data/lib/google/cloud/compute/v1/firewall_policies/rest/service_stub.rb +158 -110
- data/lib/google/cloud/compute/v1/firewalls/rest/client.rb +32 -7
- data/lib/google/cloud/compute/v1/firewalls/rest/service_stub.rb +62 -38
- data/lib/google/cloud/compute/v1/forwarding_rules/rest/client.rb +34 -9
- data/lib/google/cloud/compute/v1/forwarding_rules/rest/service_stub.rb +78 -50
- data/lib/google/cloud/compute/v1/global_addresses/rest/client.rb +32 -7
- data/lib/google/cloud/compute/v1/global_addresses/rest/service_stub.rb +62 -38
- data/lib/google/cloud/compute/v1/global_forwarding_rules/rest/client.rb +33 -8
- data/lib/google/cloud/compute/v1/global_forwarding_rules/rest/service_stub.rb +70 -44
- data/lib/google/cloud/compute/v1/global_network_endpoint_groups/rest/client.rb +33 -8
- data/lib/google/cloud/compute/v1/global_network_endpoint_groups/rest/service_stub.rb +70 -44
- data/lib/google/cloud/compute/v1/global_operations/rest/client.rb +29 -6
- data/lib/google/cloud/compute/v1/global_operations/rest/service_stub.rb +54 -32
- data/lib/google/cloud/compute/v1/global_organization_operations/rest/client.rb +28 -4
- data/lib/google/cloud/compute/v1/global_organization_operations/rest/service_stub.rb +38 -20
- data/lib/google/cloud/compute/v1/global_public_delegated_prefixes/rest/client.rb +31 -6
- data/lib/google/cloud/compute/v1/global_public_delegated_prefixes/rest/service_stub.rb +54 -32
- data/lib/google/cloud/compute/v1/health_checks/rest/client.rb +33 -8
- data/lib/google/cloud/compute/v1/health_checks/rest/service_stub.rb +70 -44
- data/lib/google/cloud/compute/v1/image_family_views/rest/client.rb +27 -2
- data/lib/google/cloud/compute/v1/image_family_views/rest/service_stub.rb +22 -8
- data/lib/google/cloud/compute/v1/images/rest/client.rb +33 -12
- data/lib/google/cloud/compute/v1/images/rest/service_stub.rb +102 -68
- data/lib/google/cloud/compute/v1/instance_group_manager_resize_requests/rest/client.rb +31 -6
- data/lib/google/cloud/compute/v1/instance_group_manager_resize_requests/rest/service_stub.rb +54 -32
- data/lib/google/cloud/compute/v1/instance_group_managers/rest/client.rb +466 -21
- data/lib/google/cloud/compute/v1/instance_group_managers/rest/service_stub.rb +428 -120
- data/lib/google/cloud/compute/v1/instance_groups/rest/client.rb +35 -10
- data/lib/google/cloud/compute/v1/instance_groups/rest/service_stub.rb +86 -56
- data/lib/google/cloud/compute/v1/instance_settings_service/rest/client.rb +28 -3
- data/lib/google/cloud/compute/v1/instance_settings_service/rest/service_stub.rb +30 -14
- data/lib/google/cloud/compute/v1/instance_templates/rest/client.rb +31 -9
- data/lib/google/cloud/compute/v1/instance_templates/rest/service_stub.rb +78 -50
- data/lib/google/cloud/compute/v1/instances/rest/client.rb +66 -50
- data/lib/google/cloud/compute/v1/instances/rest/service_stub.rb +398 -290
- data/lib/google/cloud/compute/v1/instant_snapshots/rest/client.rb +32 -10
- data/lib/google/cloud/compute/v1/instant_snapshots/rest/service_stub.rb +86 -56
- data/lib/google/cloud/compute/v1/interconnect_attachments/rest/client.rb +33 -8
- data/lib/google/cloud/compute/v1/interconnect_attachments/rest/service_stub.rb +70 -44
- data/lib/google/cloud/compute/v1/interconnect_locations/rest/client.rb +28 -3
- data/lib/google/cloud/compute/v1/interconnect_locations/rest/service_stub.rb +30 -14
- data/lib/google/cloud/compute/v1/interconnect_remote_locations/rest/client.rb +28 -3
- data/lib/google/cloud/compute/v1/interconnect_remote_locations/rest/service_stub.rb +30 -14
- data/lib/google/cloud/compute/v1/interconnects/rest/client.rb +32 -9
- data/lib/google/cloud/compute/v1/interconnects/rest/service_stub.rb +78 -50
- data/lib/google/cloud/compute/v1/license_codes/rest/client.rb +27 -3
- data/lib/google/cloud/compute/v1/license_codes/rest/service_stub.rb +30 -14
- data/lib/google/cloud/compute/v1/licenses/rest/client.rb +30 -8
- data/lib/google/cloud/compute/v1/licenses/rest/service_stub.rb +70 -44
- data/lib/google/cloud/compute/v1/machine_images/rest/client.rb +30 -8
- data/lib/google/cloud/compute/v1/machine_images/rest/service_stub.rb +70 -44
- data/lib/google/cloud/compute/v1/machine_types/rest/client.rb +29 -4
- data/lib/google/cloud/compute/v1/machine_types/rest/service_stub.rb +38 -20
- data/lib/google/cloud/compute/v1/network_attachments/rest/client.rb +32 -10
- data/lib/google/cloud/compute/v1/network_attachments/rest/service_stub.rb +86 -56
- data/lib/google/cloud/compute/v1/network_edge_security_services/rest/client.rb +31 -6
- data/lib/google/cloud/compute/v1/network_edge_security_services/rest/service_stub.rb +54 -32
- data/lib/google/cloud/compute/v1/network_endpoint_groups/rest/client.rb +34 -10
- data/lib/google/cloud/compute/v1/network_endpoint_groups/rest/service_stub.rb +86 -56
- data/lib/google/cloud/compute/v1/network_firewall_policies/rest/client.rb +37 -17
- data/lib/google/cloud/compute/v1/network_firewall_policies/rest/service_stub.rb +142 -98
- data/lib/google/cloud/compute/v1/network_profiles/credentials.rb +53 -0
- data/lib/google/cloud/compute/v1/network_profiles/rest/client.rb +522 -0
- data/lib/google/cloud/compute/v1/network_profiles/rest/service_stub.rb +204 -0
- data/lib/google/cloud/compute/v1/network_profiles/rest.rb +51 -0
- data/lib/google/cloud/compute/v1/network_profiles.rb +47 -0
- data/lib/google/cloud/compute/v1/networks/rest/client.rb +36 -12
- data/lib/google/cloud/compute/v1/networks/rest/service_stub.rb +102 -68
- data/lib/google/cloud/compute/v1/node_groups/rest/client.rb +38 -16
- data/lib/google/cloud/compute/v1/node_groups/rest/service_stub.rb +134 -92
- data/lib/google/cloud/compute/v1/node_templates/rest/client.rb +31 -9
- data/lib/google/cloud/compute/v1/node_templates/rest/service_stub.rb +78 -50
- data/lib/google/cloud/compute/v1/node_types/rest/client.rb +29 -4
- data/lib/google/cloud/compute/v1/node_types/rest/service_stub.rb +38 -20
- data/lib/google/cloud/compute/v1/packet_mirrorings/rest/client.rb +32 -8
- data/lib/google/cloud/compute/v1/packet_mirrorings/rest/service_stub.rb +70 -44
- data/lib/google/cloud/compute/v1/projects/rest/client.rb +39 -15
- data/lib/google/cloud/compute/v1/projects/rest/service_stub.rb +126 -86
- data/lib/google/cloud/compute/v1/public_advertised_prefixes/rest/client.rb +33 -8
- data/lib/google/cloud/compute/v1/public_advertised_prefixes/rest/service_stub.rb +70 -44
- data/lib/google/cloud/compute/v1/public_delegated_prefixes/rest/client.rb +34 -9
- data/lib/google/cloud/compute/v1/public_delegated_prefixes/rest/service_stub.rb +78 -50
- data/lib/google/cloud/compute/v1/region_autoscalers/rest/client.rb +32 -7
- data/lib/google/cloud/compute/v1/region_autoscalers/rest/service_stub.rb +62 -38
- data/lib/google/cloud/compute/v1/region_backend_services/rest/client.rb +34 -13
- data/lib/google/cloud/compute/v1/region_backend_services/rest/service_stub.rb +110 -74
- data/lib/google/cloud/compute/v1/region_commitments/rest/client.rb +31 -6
- data/lib/google/cloud/compute/v1/region_commitments/rest/service_stub.rb +54 -32
- data/lib/google/cloud/compute/v1/region_disk_types/rest/client.rb +28 -3
- data/lib/google/cloud/compute/v1/region_disk_types/rest/service_stub.rb +30 -14
- data/lib/google/cloud/compute/v1/region_disks/rest/client.rb +40 -18
- data/lib/google/cloud/compute/v1/region_disks/rest/service_stub.rb +150 -104
- data/lib/google/cloud/compute/v1/region_health_check_services/rest/client.rb +31 -6
- data/lib/google/cloud/compute/v1/region_health_check_services/rest/service_stub.rb +54 -32
- data/lib/google/cloud/compute/v1/region_health_checks/rest/client.rb +32 -7
- data/lib/google/cloud/compute/v1/region_health_checks/rest/service_stub.rb +62 -38
- data/lib/google/cloud/compute/v1/region_instance_group_managers/rest/client.rb +465 -20
- data/lib/google/cloud/compute/v1/region_instance_group_managers/rest/service_stub.rb +420 -114
- data/lib/google/cloud/compute/v1/region_instance_groups/rest/client.rb +30 -5
- data/lib/google/cloud/compute/v1/region_instance_groups/rest/service_stub.rb +46 -26
- data/lib/google/cloud/compute/v1/region_instance_templates/rest/client.rb +30 -5
- data/lib/google/cloud/compute/v1/region_instance_templates/rest/service_stub.rb +46 -26
- data/lib/google/cloud/compute/v1/region_instances/rest/client.rb +28 -2
- data/lib/google/cloud/compute/v1/region_instances/rest/service_stub.rb +22 -8
- data/lib/google/cloud/compute/v1/region_instant_snapshots/rest/client.rb +31 -9
- data/lib/google/cloud/compute/v1/region_instant_snapshots/rest/service_stub.rb +78 -50
- data/lib/google/cloud/compute/v1/region_network_endpoint_groups/rest/client.rb +33 -8
- data/lib/google/cloud/compute/v1/region_network_endpoint_groups/rest/service_stub.rb +70 -44
- data/lib/google/cloud/compute/v1/region_network_firewall_policies/rest/client.rb +37 -18
- data/lib/google/cloud/compute/v1/region_network_firewall_policies/rest/service_stub.rb +150 -104
- data/lib/google/cloud/compute/v1/region_notification_endpoints/rest/client.rb +30 -5
- data/lib/google/cloud/compute/v1/region_notification_endpoints/rest/service_stub.rb +46 -26
- data/lib/google/cloud/compute/v1/region_operations/rest/client.rb +28 -5
- data/lib/google/cloud/compute/v1/region_operations/rest/service_stub.rb +46 -26
- data/lib/google/cloud/compute/v1/region_security_policies/rest/client.rb +139 -10
- data/lib/google/cloud/compute/v1/region_security_policies/rest/service_stub.rb +149 -55
- data/lib/google/cloud/compute/v1/region_ssl_certificates/rest/client.rb +30 -5
- data/lib/google/cloud/compute/v1/region_ssl_certificates/rest/service_stub.rb +46 -26
- data/lib/google/cloud/compute/v1/region_ssl_policies/rest/client.rb +31 -7
- data/lib/google/cloud/compute/v1/region_ssl_policies/rest/service_stub.rb +62 -38
- data/lib/google/cloud/compute/v1/region_target_http_proxies/rest/client.rb +31 -6
- data/lib/google/cloud/compute/v1/region_target_http_proxies/rest/service_stub.rb +54 -32
- data/lib/google/cloud/compute/v1/region_target_https_proxies/rest/client.rb +33 -8
- data/lib/google/cloud/compute/v1/region_target_https_proxies/rest/service_stub.rb +70 -44
- data/lib/google/cloud/compute/v1/region_target_tcp_proxies/rest/client.rb +30 -5
- data/lib/google/cloud/compute/v1/region_target_tcp_proxies/rest/service_stub.rb +46 -26
- data/lib/google/cloud/compute/v1/region_url_maps/rest/client.rb +32 -8
- data/lib/google/cloud/compute/v1/region_url_maps/rest/service_stub.rb +70 -44
- data/lib/google/cloud/compute/v1/region_zones/rest/client.rb +28 -2
- data/lib/google/cloud/compute/v1/region_zones/rest/service_stub.rb +22 -8
- data/lib/google/cloud/compute/v1/regions/rest/client.rb +28 -3
- data/lib/google/cloud/compute/v1/regions/rest/service_stub.rb +30 -14
- data/lib/google/cloud/compute/v1/reservations/rest/client.rb +33 -11
- data/lib/google/cloud/compute/v1/reservations/rest/service_stub.rb +94 -62
- data/lib/google/cloud/compute/v1/resource_policies/rest/client.rb +32 -10
- data/lib/google/cloud/compute/v1/resource_policies/rest/service_stub.rb +86 -56
- data/lib/google/cloud/compute/v1/rest.rb +1 -0
- data/lib/google/cloud/compute/v1/routers/rest/client.rb +34 -12
- data/lib/google/cloud/compute/v1/routers/rest/service_stub.rb +102 -68
- data/lib/google/cloud/compute/v1/routes/rest/client.rb +30 -5
- data/lib/google/cloud/compute/v1/routes/rest/service_stub.rb +46 -26
- data/lib/google/cloud/compute/v1/security_policies/rest/client.rb +36 -13
- data/lib/google/cloud/compute/v1/security_policies/rest/service_stub.rb +110 -74
- data/lib/google/cloud/compute/v1/service_attachments/rest/client.rb +32 -10
- data/lib/google/cloud/compute/v1/service_attachments/rest/service_stub.rb +86 -56
- data/lib/google/cloud/compute/v1/snapshot_settings_service/rest/client.rb +28 -3
- data/lib/google/cloud/compute/v1/snapshot_settings_service/rest/service_stub.rb +30 -14
- data/lib/google/cloud/compute/v1/snapshots/rest/client.rb +31 -9
- data/lib/google/cloud/compute/v1/snapshots/rest/service_stub.rb +78 -50
- data/lib/google/cloud/compute/v1/ssl_certificates/rest/client.rb +31 -6
- data/lib/google/cloud/compute/v1/ssl_certificates/rest/service_stub.rb +54 -32
- data/lib/google/cloud/compute/v1/ssl_policies/rest/client.rb +32 -8
- data/lib/google/cloud/compute/v1/ssl_policies/rest/service_stub.rb +70 -44
- data/lib/google/cloud/compute/v1/storage_pool_types/rest/client.rb +29 -4
- data/lib/google/cloud/compute/v1/storage_pool_types/rest/service_stub.rb +38 -20
- data/lib/google/cloud/compute/v1/storage_pools/rest/client.rb +31 -11
- data/lib/google/cloud/compute/v1/storage_pools/rest/service_stub.rb +94 -62
- data/lib/google/cloud/compute/v1/subnetworks/rest/client.rb +35 -13
- data/lib/google/cloud/compute/v1/subnetworks/rest/service_stub.rb +110 -74
- data/lib/google/cloud/compute/v1/target_grpc_proxies/rest/client.rb +31 -6
- data/lib/google/cloud/compute/v1/target_grpc_proxies/rest/service_stub.rb +54 -32
- data/lib/google/cloud/compute/v1/target_http_proxies/rest/client.rb +33 -8
- data/lib/google/cloud/compute/v1/target_http_proxies/rest/service_stub.rb +70 -44
- data/lib/google/cloud/compute/v1/target_https_proxies/rest/client.rb +37 -12
- data/lib/google/cloud/compute/v1/target_https_proxies/rest/service_stub.rb +102 -68
- data/lib/google/cloud/compute/v1/target_instances/rest/client.rb +32 -7
- data/lib/google/cloud/compute/v1/target_instances/rest/service_stub.rb +62 -38
- data/lib/google/cloud/compute/v1/target_pools/rest/client.rb +37 -13
- data/lib/google/cloud/compute/v1/target_pools/rest/service_stub.rb +110 -74
- data/lib/google/cloud/compute/v1/target_ssl_proxies/rest/client.rb +35 -10
- data/lib/google/cloud/compute/v1/target_ssl_proxies/rest/service_stub.rb +86 -56
- data/lib/google/cloud/compute/v1/target_tcp_proxies/rest/client.rb +33 -8
- data/lib/google/cloud/compute/v1/target_tcp_proxies/rest/service_stub.rb +70 -44
- data/lib/google/cloud/compute/v1/target_vpn_gateways/rest/client.rb +32 -7
- data/lib/google/cloud/compute/v1/target_vpn_gateways/rest/service_stub.rb +62 -38
- data/lib/google/cloud/compute/v1/url_maps/rest/client.rb +34 -10
- data/lib/google/cloud/compute/v1/url_maps/rest/service_stub.rb +86 -56
- data/lib/google/cloud/compute/v1/version.rb +1 -1
- data/lib/google/cloud/compute/v1/vpn_gateways/rest/client.rb +32 -9
- data/lib/google/cloud/compute/v1/vpn_gateways/rest/service_stub.rb +78 -50
- data/lib/google/cloud/compute/v1/vpn_tunnels/rest/client.rb +32 -7
- data/lib/google/cloud/compute/v1/vpn_tunnels/rest/service_stub.rb +62 -38
- data/lib/google/cloud/compute/v1/zone_operations/rest/client.rb +28 -5
- data/lib/google/cloud/compute/v1/zone_operations/rest/service_stub.rb +46 -26
- data/lib/google/cloud/compute/v1/zones/rest/client.rb +28 -3
- data/lib/google/cloud/compute/v1/zones/rest/service_stub.rb +30 -14
- data/lib/google/cloud/compute/v1.rb +1 -0
- data/proto_docs/google/api/client.rb +19 -0
- data/proto_docs/google/cloud/compute/v1/compute.rb +889 -33
- metadata +10 -5
@@ -282,8 +282,19 @@ module Google
|
|
282
282
|
endpoint: @config.endpoint,
|
283
283
|
endpoint_template: DEFAULT_ENDPOINT_TEMPLATE,
|
284
284
|
universe_domain: @config.universe_domain,
|
285
|
-
credentials: credentials
|
285
|
+
credentials: credentials,
|
286
|
+
logger: @config.logger
|
286
287
|
)
|
288
|
+
|
289
|
+
@instances_stub.logger(stub: true)&.info do |entry|
|
290
|
+
entry.set_system_name
|
291
|
+
entry.set_service
|
292
|
+
entry.message = "Created client for #{entry.service}"
|
293
|
+
entry.set_credentials_fields credentials
|
294
|
+
entry.set "customEndpoint", @config.endpoint if @config.endpoint
|
295
|
+
entry.set "defaultTimeout", @config.timeout if @config.timeout
|
296
|
+
entry.set "quotaProject", @quota_project_id if @quota_project_id
|
297
|
+
end
|
287
298
|
end
|
288
299
|
|
289
300
|
##
|
@@ -293,6 +304,15 @@ module Google
|
|
293
304
|
#
|
294
305
|
attr_reader :zone_operations
|
295
306
|
|
307
|
+
##
|
308
|
+
# The logger used for request/response debug logging.
|
309
|
+
#
|
310
|
+
# @return [Logger]
|
311
|
+
#
|
312
|
+
def logger
|
313
|
+
@instances_stub.logger
|
314
|
+
end
|
315
|
+
|
296
316
|
# Service calls
|
297
317
|
|
298
318
|
##
|
@@ -387,7 +407,7 @@ module Google
|
|
387
407
|
options: options
|
388
408
|
)
|
389
409
|
yield result, response if block_given?
|
390
|
-
|
410
|
+
throw :response, result
|
391
411
|
end
|
392
412
|
rescue ::Gapic::Rest::Error => e
|
393
413
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -483,7 +503,7 @@ module Google
|
|
483
503
|
options: options
|
484
504
|
)
|
485
505
|
yield result, response if block_given?
|
486
|
-
|
506
|
+
throw :response, result
|
487
507
|
end
|
488
508
|
rescue ::Gapic::Rest::Error => e
|
489
509
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -577,7 +597,7 @@ module Google
|
|
577
597
|
@instances_stub.aggregated_list request, options do |result, operation|
|
578
598
|
result = ::Gapic::Rest::PagedEnumerable.new @instances_stub, :aggregated_list, "items", request, result, options
|
579
599
|
yield result, operation if block_given?
|
580
|
-
|
600
|
+
throw :response, result
|
581
601
|
end
|
582
602
|
rescue ::Gapic::Rest::Error => e
|
583
603
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -675,7 +695,7 @@ module Google
|
|
675
695
|
options: options
|
676
696
|
)
|
677
697
|
yield result, response if block_given?
|
678
|
-
|
698
|
+
throw :response, result
|
679
699
|
end
|
680
700
|
rescue ::Gapic::Rest::Error => e
|
681
701
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -769,7 +789,7 @@ module Google
|
|
769
789
|
options: options
|
770
790
|
)
|
771
791
|
yield result, response if block_given?
|
772
|
-
|
792
|
+
throw :response, result
|
773
793
|
end
|
774
794
|
rescue ::Gapic::Rest::Error => e
|
775
795
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -863,7 +883,7 @@ module Google
|
|
863
883
|
options: options
|
864
884
|
)
|
865
885
|
yield result, response if block_given?
|
866
|
-
|
886
|
+
throw :response, result
|
867
887
|
end
|
868
888
|
rescue ::Gapic::Rest::Error => e
|
869
889
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -961,7 +981,7 @@ module Google
|
|
961
981
|
options: options
|
962
982
|
)
|
963
983
|
yield result, response if block_given?
|
964
|
-
|
984
|
+
throw :response, result
|
965
985
|
end
|
966
986
|
rescue ::Gapic::Rest::Error => e
|
967
987
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -1057,7 +1077,7 @@ module Google
|
|
1057
1077
|
options: options
|
1058
1078
|
)
|
1059
1079
|
yield result, response if block_given?
|
1060
|
-
|
1080
|
+
throw :response, result
|
1061
1081
|
end
|
1062
1082
|
rescue ::Gapic::Rest::Error => e
|
1063
1083
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -1140,7 +1160,6 @@ module Google
|
|
1140
1160
|
|
1141
1161
|
@instances_stub.get request, options do |result, operation|
|
1142
1162
|
yield result, operation if block_given?
|
1143
|
-
return result
|
1144
1163
|
end
|
1145
1164
|
rescue ::Gapic::Rest::Error => e
|
1146
1165
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -1225,7 +1244,6 @@ module Google
|
|
1225
1244
|
|
1226
1245
|
@instances_stub.get_effective_firewalls request, options do |result, operation|
|
1227
1246
|
yield result, operation if block_given?
|
1228
|
-
return result
|
1229
1247
|
end
|
1230
1248
|
rescue ::Gapic::Rest::Error => e
|
1231
1249
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -1312,7 +1330,6 @@ module Google
|
|
1312
1330
|
|
1313
1331
|
@instances_stub.get_guest_attributes request, options do |result, operation|
|
1314
1332
|
yield result, operation if block_given?
|
1315
|
-
return result
|
1316
1333
|
end
|
1317
1334
|
rescue ::Gapic::Rest::Error => e
|
1318
1335
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -1397,7 +1414,6 @@ module Google
|
|
1397
1414
|
|
1398
1415
|
@instances_stub.get_iam_policy request, options do |result, operation|
|
1399
1416
|
yield result, operation if block_given?
|
1400
|
-
return result
|
1401
1417
|
end
|
1402
1418
|
rescue ::Gapic::Rest::Error => e
|
1403
1419
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -1480,7 +1496,6 @@ module Google
|
|
1480
1496
|
|
1481
1497
|
@instances_stub.get_screenshot request, options do |result, operation|
|
1482
1498
|
yield result, operation if block_given?
|
1483
|
-
return result
|
1484
1499
|
end
|
1485
1500
|
rescue ::Gapic::Rest::Error => e
|
1486
1501
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -1511,7 +1526,7 @@ module Google
|
|
1511
1526
|
# @param project [::String]
|
1512
1527
|
# Project ID for this request.
|
1513
1528
|
# @param start [::Integer]
|
1514
|
-
# Specifies the starting byte position of the output to return. To start with the first byte of output to the specified port, omit this field or set it to `0`. If the output for that byte position is available, this field matches the `start` parameter sent with the request. If the amount of serial console output exceeds the size of the buffer (1 MB), the oldest output is discarded and is no longer available. If the requested start position refers to discarded output, the start position is adjusted to the oldest output still available, and the adjusted start position is returned as the `start` property value. You can also provide a negative start position, which translates to the most recent number of bytes written to the serial port. For example, -3 is interpreted as the most recent 3 bytes written to the serial console.
|
1529
|
+
# Specifies the starting byte position of the output to return. To start with the first byte of output to the specified port, omit this field or set it to `0`. If the output for that byte position is available, this field matches the `start` parameter sent with the request. If the amount of serial console output exceeds the size of the buffer (1 MB), the oldest output is discarded and is no longer available. If the requested start position refers to discarded output, the start position is adjusted to the oldest output still available, and the adjusted start position is returned as the `start` property value. You can also provide a negative start position, which translates to the most recent number of bytes written to the serial port. For example, -3 is interpreted as the most recent 3 bytes written to the serial console. Note that the negative start is bounded by the retained buffer size, and the returned serial console output will not exceed the max buffer size.
|
1515
1530
|
# @param zone [::String]
|
1516
1531
|
# The name of the zone for this request.
|
1517
1532
|
# @yield [result, operation] Access the result along with the TransportOperation object
|
@@ -1567,7 +1582,6 @@ module Google
|
|
1567
1582
|
|
1568
1583
|
@instances_stub.get_serial_port_output request, options do |result, operation|
|
1569
1584
|
yield result, operation if block_given?
|
1570
|
-
return result
|
1571
1585
|
end
|
1572
1586
|
rescue ::Gapic::Rest::Error => e
|
1573
1587
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -1650,7 +1664,6 @@ module Google
|
|
1650
1664
|
|
1651
1665
|
@instances_stub.get_shielded_instance_identity request, options do |result, operation|
|
1652
1666
|
yield result, operation if block_given?
|
1653
|
-
return result
|
1654
1667
|
end
|
1655
1668
|
rescue ::Gapic::Rest::Error => e
|
1656
1669
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -1748,7 +1761,7 @@ module Google
|
|
1748
1761
|
options: options
|
1749
1762
|
)
|
1750
1763
|
yield result, response if block_given?
|
1751
|
-
|
1764
|
+
throw :response, result
|
1752
1765
|
end
|
1753
1766
|
rescue ::Gapic::Rest::Error => e
|
1754
1767
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -1840,7 +1853,7 @@ module Google
|
|
1840
1853
|
@instances_stub.list request, options do |result, operation|
|
1841
1854
|
result = ::Gapic::Rest::PagedEnumerable.new @instances_stub, :list, "items", request, result, options
|
1842
1855
|
yield result, operation if block_given?
|
1843
|
-
|
1856
|
+
throw :response, result
|
1844
1857
|
end
|
1845
1858
|
rescue ::Gapic::Rest::Error => e
|
1846
1859
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -1934,7 +1947,7 @@ module Google
|
|
1934
1947
|
@instances_stub.list_referrers request, options do |result, operation|
|
1935
1948
|
result = ::Gapic::Rest::PagedEnumerable.new @instances_stub, :list_referrers, "items", request, result, options
|
1936
1949
|
yield result, operation if block_given?
|
1937
|
-
|
1950
|
+
throw :response, result
|
1938
1951
|
end
|
1939
1952
|
rescue ::Gapic::Rest::Error => e
|
1940
1953
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -2028,7 +2041,7 @@ module Google
|
|
2028
2041
|
options: options
|
2029
2042
|
)
|
2030
2043
|
yield result, response if block_given?
|
2031
|
-
|
2044
|
+
throw :response, result
|
2032
2045
|
end
|
2033
2046
|
rescue ::Gapic::Rest::Error => e
|
2034
2047
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -2124,7 +2137,7 @@ module Google
|
|
2124
2137
|
options: options
|
2125
2138
|
)
|
2126
2139
|
yield result, response if block_given?
|
2127
|
-
|
2140
|
+
throw :response, result
|
2128
2141
|
end
|
2129
2142
|
rescue ::Gapic::Rest::Error => e
|
2130
2143
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -2218,7 +2231,7 @@ module Google
|
|
2218
2231
|
options: options
|
2219
2232
|
)
|
2220
2233
|
yield result, response if block_given?
|
2221
|
-
|
2234
|
+
throw :response, result
|
2222
2235
|
end
|
2223
2236
|
rescue ::Gapic::Rest::Error => e
|
2224
2237
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -2312,7 +2325,7 @@ module Google
|
|
2312
2325
|
options: options
|
2313
2326
|
)
|
2314
2327
|
yield result, response if block_given?
|
2315
|
-
|
2328
|
+
throw :response, result
|
2316
2329
|
end
|
2317
2330
|
rescue ::Gapic::Rest::Error => e
|
2318
2331
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -2395,7 +2408,6 @@ module Google
|
|
2395
2408
|
|
2396
2409
|
@instances_stub.send_diagnostic_interrupt request, options do |result, operation|
|
2397
2410
|
yield result, operation if block_given?
|
2398
|
-
return result
|
2399
2411
|
end
|
2400
2412
|
rescue ::Gapic::Rest::Error => e
|
2401
2413
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -2491,7 +2503,7 @@ module Google
|
|
2491
2503
|
options: options
|
2492
2504
|
)
|
2493
2505
|
yield result, response if block_given?
|
2494
|
-
|
2506
|
+
throw :response, result
|
2495
2507
|
end
|
2496
2508
|
rescue ::Gapic::Rest::Error => e
|
2497
2509
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -2589,7 +2601,7 @@ module Google
|
|
2589
2601
|
options: options
|
2590
2602
|
)
|
2591
2603
|
yield result, response if block_given?
|
2592
|
-
|
2604
|
+
throw :response, result
|
2593
2605
|
end
|
2594
2606
|
rescue ::Gapic::Rest::Error => e
|
2595
2607
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -2674,7 +2686,6 @@ module Google
|
|
2674
2686
|
|
2675
2687
|
@instances_stub.set_iam_policy request, options do |result, operation|
|
2676
2688
|
yield result, operation if block_given?
|
2677
|
-
return result
|
2678
2689
|
end
|
2679
2690
|
rescue ::Gapic::Rest::Error => e
|
2680
2691
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -2770,7 +2781,7 @@ module Google
|
|
2770
2781
|
options: options
|
2771
2782
|
)
|
2772
2783
|
yield result, response if block_given?
|
2773
|
-
|
2784
|
+
throw :response, result
|
2774
2785
|
end
|
2775
2786
|
rescue ::Gapic::Rest::Error => e
|
2776
2787
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -2866,7 +2877,7 @@ module Google
|
|
2866
2877
|
options: options
|
2867
2878
|
)
|
2868
2879
|
yield result, response if block_given?
|
2869
|
-
|
2880
|
+
throw :response, result
|
2870
2881
|
end
|
2871
2882
|
rescue ::Gapic::Rest::Error => e
|
2872
2883
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -2962,7 +2973,7 @@ module Google
|
|
2962
2973
|
options: options
|
2963
2974
|
)
|
2964
2975
|
yield result, response if block_given?
|
2965
|
-
|
2976
|
+
throw :response, result
|
2966
2977
|
end
|
2967
2978
|
rescue ::Gapic::Rest::Error => e
|
2968
2979
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -3058,7 +3069,7 @@ module Google
|
|
3058
3069
|
options: options
|
3059
3070
|
)
|
3060
3071
|
yield result, response if block_given?
|
3061
|
-
|
3072
|
+
throw :response, result
|
3062
3073
|
end
|
3063
3074
|
rescue ::Gapic::Rest::Error => e
|
3064
3075
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -3154,7 +3165,7 @@ module Google
|
|
3154
3165
|
options: options
|
3155
3166
|
)
|
3156
3167
|
yield result, response if block_given?
|
3157
|
-
|
3168
|
+
throw :response, result
|
3158
3169
|
end
|
3159
3170
|
rescue ::Gapic::Rest::Error => e
|
3160
3171
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -3250,7 +3261,7 @@ module Google
|
|
3250
3261
|
options: options
|
3251
3262
|
)
|
3252
3263
|
yield result, response if block_given?
|
3253
|
-
|
3264
|
+
throw :response, result
|
3254
3265
|
end
|
3255
3266
|
rescue ::Gapic::Rest::Error => e
|
3256
3267
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -3346,7 +3357,7 @@ module Google
|
|
3346
3357
|
options: options
|
3347
3358
|
)
|
3348
3359
|
yield result, response if block_given?
|
3349
|
-
|
3360
|
+
throw :response, result
|
3350
3361
|
end
|
3351
3362
|
rescue ::Gapic::Rest::Error => e
|
3352
3363
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -3442,7 +3453,7 @@ module Google
|
|
3442
3453
|
options: options
|
3443
3454
|
)
|
3444
3455
|
yield result, response if block_given?
|
3445
|
-
|
3456
|
+
throw :response, result
|
3446
3457
|
end
|
3447
3458
|
rescue ::Gapic::Rest::Error => e
|
3448
3459
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -3538,7 +3549,7 @@ module Google
|
|
3538
3549
|
options: options
|
3539
3550
|
)
|
3540
3551
|
yield result, response if block_given?
|
3541
|
-
|
3552
|
+
throw :response, result
|
3542
3553
|
end
|
3543
3554
|
rescue ::Gapic::Rest::Error => e
|
3544
3555
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -3634,7 +3645,7 @@ module Google
|
|
3634
3645
|
options: options
|
3635
3646
|
)
|
3636
3647
|
yield result, response if block_given?
|
3637
|
-
|
3648
|
+
throw :response, result
|
3638
3649
|
end
|
3639
3650
|
rescue ::Gapic::Rest::Error => e
|
3640
3651
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -3730,7 +3741,7 @@ module Google
|
|
3730
3741
|
options: options
|
3731
3742
|
)
|
3732
3743
|
yield result, response if block_given?
|
3733
|
-
|
3744
|
+
throw :response, result
|
3734
3745
|
end
|
3735
3746
|
rescue ::Gapic::Rest::Error => e
|
3736
3747
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -3826,7 +3837,7 @@ module Google
|
|
3826
3837
|
options: options
|
3827
3838
|
)
|
3828
3839
|
yield result, response if block_given?
|
3829
|
-
|
3840
|
+
throw :response, result
|
3830
3841
|
end
|
3831
3842
|
rescue ::Gapic::Rest::Error => e
|
3832
3843
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -3920,7 +3931,7 @@ module Google
|
|
3920
3931
|
options: options
|
3921
3932
|
)
|
3922
3933
|
yield result, response if block_given?
|
3923
|
-
|
3934
|
+
throw :response, result
|
3924
3935
|
end
|
3925
3936
|
rescue ::Gapic::Rest::Error => e
|
3926
3937
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -4016,7 +4027,7 @@ module Google
|
|
4016
4027
|
options: options
|
4017
4028
|
)
|
4018
4029
|
yield result, response if block_given?
|
4019
|
-
|
4030
|
+
throw :response, result
|
4020
4031
|
end
|
4021
4032
|
rescue ::Gapic::Rest::Error => e
|
4022
4033
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -4112,7 +4123,7 @@ module Google
|
|
4112
4123
|
options: options
|
4113
4124
|
)
|
4114
4125
|
yield result, response if block_given?
|
4115
|
-
|
4126
|
+
throw :response, result
|
4116
4127
|
end
|
4117
4128
|
rescue ::Gapic::Rest::Error => e
|
4118
4129
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -4208,7 +4219,7 @@ module Google
|
|
4208
4219
|
options: options
|
4209
4220
|
)
|
4210
4221
|
yield result, response if block_given?
|
4211
|
-
|
4222
|
+
throw :response, result
|
4212
4223
|
end
|
4213
4224
|
rescue ::Gapic::Rest::Error => e
|
4214
4225
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -4293,7 +4304,6 @@ module Google
|
|
4293
4304
|
|
4294
4305
|
@instances_stub.test_iam_permissions request, options do |result, operation|
|
4295
4306
|
yield result, operation if block_given?
|
4296
|
-
return result
|
4297
4307
|
end
|
4298
4308
|
rescue ::Gapic::Rest::Error => e
|
4299
4309
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -4395,7 +4405,7 @@ module Google
|
|
4395
4405
|
options: options
|
4396
4406
|
)
|
4397
4407
|
yield result, response if block_given?
|
4398
|
-
|
4408
|
+
throw :response, result
|
4399
4409
|
end
|
4400
4410
|
rescue ::Gapic::Rest::Error => e
|
4401
4411
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -4493,7 +4503,7 @@ module Google
|
|
4493
4503
|
options: options
|
4494
4504
|
)
|
4495
4505
|
yield result, response if block_given?
|
4496
|
-
|
4506
|
+
throw :response, result
|
4497
4507
|
end
|
4498
4508
|
rescue ::Gapic::Rest::Error => e
|
4499
4509
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -4589,7 +4599,7 @@ module Google
|
|
4589
4599
|
options: options
|
4590
4600
|
)
|
4591
4601
|
yield result, response if block_given?
|
4592
|
-
|
4602
|
+
throw :response, result
|
4593
4603
|
end
|
4594
4604
|
rescue ::Gapic::Rest::Error => e
|
4595
4605
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -4687,7 +4697,7 @@ module Google
|
|
4687
4697
|
options: options
|
4688
4698
|
)
|
4689
4699
|
yield result, response if block_given?
|
4690
|
-
|
4700
|
+
throw :response, result
|
4691
4701
|
end
|
4692
4702
|
rescue ::Gapic::Rest::Error => e
|
4693
4703
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -4783,7 +4793,7 @@ module Google
|
|
4783
4793
|
options: options
|
4784
4794
|
)
|
4785
4795
|
yield result, response if block_given?
|
4786
|
-
|
4796
|
+
throw :response, result
|
4787
4797
|
end
|
4788
4798
|
rescue ::Gapic::Rest::Error => e
|
4789
4799
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -4863,6 +4873,11 @@ module Google
|
|
4863
4873
|
# default endpoint URL. The default value of nil uses the environment
|
4864
4874
|
# universe (usually the default "googleapis.com" universe).
|
4865
4875
|
# @return [::String,nil]
|
4876
|
+
# @!attribute [rw] logger
|
4877
|
+
# A custom logger to use for request/response debug logging, or the value
|
4878
|
+
# `:default` (the default) to construct a default logger, or `nil` to
|
4879
|
+
# explicitly disable logging.
|
4880
|
+
# @return [::Logger,:default,nil]
|
4866
4881
|
#
|
4867
4882
|
class Configuration
|
4868
4883
|
extend ::Gapic::Config
|
@@ -4884,6 +4899,7 @@ module Google
|
|
4884
4899
|
config_attr :retry_policy, nil, ::Hash, ::Proc, nil
|
4885
4900
|
config_attr :quota_project, nil, ::String, nil
|
4886
4901
|
config_attr :universe_domain, nil, ::String, nil
|
4902
|
+
config_attr :logger, :default, ::Logger, nil, :default
|
4887
4903
|
|
4888
4904
|
# @private
|
4889
4905
|
def initialize parent_config = nil
|