google-cloud-compute-v1 0.1.0 → 0.5.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.yardopts +1 -1
- data/AUTHENTICATION.md +13 -13
- data/README.md +10 -34
- data/lib/google/cloud/compute/v1/accelerator_types/rest/client.rb +133 -93
- data/lib/google/cloud/compute/v1/accelerator_types/rest/service_stub.rb +188 -0
- data/lib/google/cloud/compute/v1/accelerator_types/rest.rb +0 -2
- data/lib/google/cloud/compute/v1/addresses/rest/client.rb +181 -133
- data/lib/google/cloud/compute/v1/addresses/rest/grpc_transcoding.rb +1 -0
- data/lib/google/cloud/compute/v1/addresses/rest/service_stub.rb +279 -0
- data/lib/google/cloud/compute/v1/addresses/rest.rb +0 -2
- data/lib/google/cloud/compute/v1/autoscalers/rest/client.rb +229 -173
- data/lib/google/cloud/compute/v1/autoscalers/rest/grpc_transcoding.rb +5 -0
- data/lib/google/cloud/compute/v1/autoscalers/rest/service_stub.rb +373 -0
- data/lib/google/cloud/compute/v1/autoscalers/rest.rb +0 -2
- data/lib/google/cloud/compute/v1/backend_buckets/rest/client.rb +248 -185
- data/lib/google/cloud/compute/v1/backend_buckets/rest/grpc_transcoding.rb +4 -0
- data/lib/google/cloud/compute/v1/backend_buckets/rest/service_stub.rb +413 -0
- data/lib/google/cloud/compute/v1/backend_buckets/rest.rb +0 -2
- data/lib/google/cloud/compute/v1/backend_services/rest/client.rb +325 -254
- data/lib/google/cloud/compute/v1/backend_services/rest/grpc_transcoding.rb +5 -0
- data/lib/google/cloud/compute/v1/backend_services/rest/service_stub.rb +553 -0
- data/lib/google/cloud/compute/v1/backend_services/rest.rb +0 -2
- data/lib/google/cloud/compute/v1/compute_pb.rb +8507 -7466
- data/lib/google/cloud/compute/v1/disk_types/rest/client.rb +133 -93
- data/lib/google/cloud/compute/v1/disk_types/rest/service_stub.rb +188 -0
- data/lib/google/cloud/compute/v1/disk_types/rest.rb +0 -2
- data/lib/google/cloud/compute/v1/disks/rest/client.rb +365 -273
- data/lib/google/cloud/compute/v1/disks/rest/grpc_transcoding.rb +8 -0
- data/lib/google/cloud/compute/v1/disks/rest/service_stub.rb +644 -0
- data/lib/google/cloud/compute/v1/disks/rest.rb +0 -2
- data/lib/google/cloud/compute/v1/external_vpn_gateways/rest/client.rb +195 -133
- data/lib/google/cloud/compute/v1/external_vpn_gateways/rest/grpc_transcoding.rb +1 -0
- data/lib/google/cloud/compute/v1/external_vpn_gateways/rest/service_stub.rb +317 -0
- data/lib/google/cloud/compute/v1/external_vpn_gateways/rest.rb +0 -2
- data/lib/google/cloud/compute/v1/firewall_policies/credentials.rb +52 -0
- data/lib/google/cloud/compute/v1/firewall_policies/rest/client.rb +1592 -0
- data/lib/google/cloud/compute/v1/firewall_policies/rest/grpc_transcoding.rb +269 -0
- data/lib/google/cloud/compute/v1/firewall_policies/rest/service_stub.rb +869 -0
- data/lib/google/cloud/compute/v1/firewall_policies/rest.rb +33 -0
- data/lib/google/cloud/compute/v1/firewall_policies.rb +44 -0
- data/lib/google/cloud/compute/v1/firewalls/rest/client.rb +200 -145
- data/lib/google/cloud/compute/v1/firewalls/rest/grpc_transcoding.rb +3 -0
- data/lib/google/cloud/compute/v1/firewalls/rest/service_stub.rb +321 -0
- data/lib/google/cloud/compute/v1/firewalls/rest.rb +0 -2
- data/lib/google/cloud/compute/v1/forwarding_rules/rest/client.rb +307 -172
- data/lib/google/cloud/compute/v1/forwarding_rules/rest/grpc_transcoding.rb +3 -0
- data/lib/google/cloud/compute/v1/forwarding_rules/rest/service_stub.rb +417 -0
- data/lib/google/cloud/compute/v1/forwarding_rules/rest.rb +0 -2
- data/lib/google/cloud/compute/v1/global_addresses/rest/client.rb +152 -105
- data/lib/google/cloud/compute/v1/global_addresses/rest/grpc_transcoding.rb +1 -0
- data/lib/google/cloud/compute/v1/global_addresses/rest/service_stub.rb +229 -0
- data/lib/google/cloud/compute/v1/global_addresses/rest.rb +0 -2
- data/lib/google/cloud/compute/v1/global_forwarding_rules/rest/client.rb +274 -144
- data/lib/google/cloud/compute/v1/global_forwarding_rules/rest/grpc_transcoding.rb +3 -0
- data/lib/google/cloud/compute/v1/global_forwarding_rules/rest/service_stub.rb +365 -0
- data/lib/google/cloud/compute/v1/global_forwarding_rules/rest.rb +0 -2
- data/lib/google/cloud/compute/v1/global_network_endpoint_groups/rest/client.rb +226 -173
- data/lib/google/cloud/compute/v1/global_network_endpoint_groups/rest/grpc_transcoding.rb +3 -0
- data/lib/google/cloud/compute/v1/global_network_endpoint_groups/rest/service_stub.rb +370 -0
- data/lib/google/cloud/compute/v1/global_network_endpoint_groups/rest.rb +0 -2
- data/lib/google/cloud/compute/v1/global_operations/rest/client.rb +175 -123
- data/lib/google/cloud/compute/v1/global_operations/rest/service_stub.rb +274 -0
- data/lib/google/cloud/compute/v1/global_operations/rest.rb +0 -2
- data/lib/google/cloud/compute/v1/global_organization_operations/rest/client.rb +124 -79
- data/lib/google/cloud/compute/v1/global_organization_operations/rest/service_stub.rb +186 -0
- data/lib/google/cloud/compute/v1/global_organization_operations/rest.rb +0 -2
- data/lib/google/cloud/compute/v1/global_public_delegated_prefixes/credentials.rb +52 -0
- data/lib/google/cloud/compute/v1/global_public_delegated_prefixes/rest/client.rb +627 -0
- data/lib/google/cloud/compute/v1/global_public_delegated_prefixes/rest/grpc_transcoding.rb +100 -0
- data/lib/google/cloud/compute/v1/global_public_delegated_prefixes/rest/service_stub.rb +275 -0
- data/lib/google/cloud/compute/v1/global_public_delegated_prefixes/rest.rb +33 -0
- data/lib/google/cloud/compute/v1/global_public_delegated_prefixes.rb +44 -0
- data/lib/google/cloud/compute/v1/health_checks/rest/client.rb +229 -173
- data/lib/google/cloud/compute/v1/health_checks/rest/grpc_transcoding.rb +3 -0
- data/lib/google/cloud/compute/v1/health_checks/rest/service_stub.rb +371 -0
- data/lib/google/cloud/compute/v1/health_checks/rest.rb +0 -2
- data/lib/google/cloud/compute/v1/image_family_views/credentials.rb +53 -0
- data/lib/google/cloud/compute/v1/image_family_views/rest/client.rb +318 -0
- data/lib/google/cloud/compute/v1/image_family_views/rest/service_stub.rb +89 -0
- data/lib/google/cloud/compute/v1/image_family_views/rest.rb +33 -0
- data/lib/google/cloud/compute/v1/image_family_views.rb +44 -0
- data/lib/google/cloud/compute/v1/images/rest/client.rb +310 -214
- data/lib/google/cloud/compute/v1/images/rest/grpc_transcoding.rb +4 -0
- data/lib/google/cloud/compute/v1/images/rest/service_stub.rb +542 -0
- data/lib/google/cloud/compute/v1/images/rest.rb +0 -2
- data/lib/google/cloud/compute/v1/instance_group_managers/rest/client.rb +556 -477
- data/lib/google/cloud/compute/v1/instance_group_managers/rest/grpc_transcoding.rb +10 -0
- data/lib/google/cloud/compute/v1/instance_group_managers/rest/service_stub.rb +974 -0
- data/lib/google/cloud/compute/v1/instance_group_managers/rest.rb +0 -2
- data/lib/google/cloud/compute/v1/instance_groups/rest/client.rb +284 -232
- data/lib/google/cloud/compute/v1/instance_groups/rest/grpc_transcoding.rb +9 -0
- data/lib/google/cloud/compute/v1/instance_groups/rest/service_stub.rb +467 -0
- data/lib/google/cloud/compute/v1/instance_groups/rest.rb +0 -2
- data/lib/google/cloud/compute/v1/instance_templates/rest/client.rb +215 -144
- data/lib/google/cloud/compute/v1/instance_templates/rest/grpc_transcoding.rb +1 -0
- data/lib/google/cloud/compute/v1/instance_templates/rest/service_stub.rb +362 -0
- data/lib/google/cloud/compute/v1/instance_templates/rest.rb +0 -2
- data/lib/google/cloud/compute/v1/instances/rest/client.rb +1246 -797
- data/lib/google/cloud/compute/v1/instances/rest/grpc_transcoding.rb +27 -0
- data/lib/google/cloud/compute/v1/instances/rest/service_stub.rb +2018 -0
- data/lib/google/cloud/compute/v1/instances/rest.rb +0 -2
- data/lib/google/cloud/compute/v1/interconnect_attachments/rest/client.rb +205 -153
- data/lib/google/cloud/compute/v1/interconnect_attachments/rest/grpc_transcoding.rb +3 -0
- data/lib/google/cloud/compute/v1/interconnect_attachments/rest/service_stub.rb +326 -0
- data/lib/google/cloud/compute/v1/interconnect_attachments/rest.rb +0 -2
- data/lib/google/cloud/compute/v1/interconnect_locations/rest/client.rb +104 -65
- data/lib/google/cloud/compute/v1/interconnect_locations/rest/service_stub.rb +138 -0
- data/lib/google/cloud/compute/v1/interconnect_locations/rest.rb +0 -2
- data/lib/google/cloud/compute/v1/interconnects/rest/client.rb +199 -137
- data/lib/google/cloud/compute/v1/interconnects/rest/grpc_transcoding.rb +2 -0
- data/lib/google/cloud/compute/v1/interconnects/rest/service_stub.rb +318 -0
- data/lib/google/cloud/compute/v1/interconnects/rest.rb +0 -2
- data/lib/google/cloud/compute/v1/license_codes/rest/client.rb +97 -52
- data/lib/google/cloud/compute/v1/license_codes/rest/service_stub.rb +133 -0
- data/lib/google/cloud/compute/v1/license_codes/rest.rb +0 -2
- data/lib/google/cloud/compute/v1/licenses/rest/client.rb +222 -151
- data/lib/google/cloud/compute/v1/licenses/rest/grpc_transcoding.rb +1 -0
- data/lib/google/cloud/compute/v1/licenses/rest/service_stub.rb +362 -0
- data/lib/google/cloud/compute/v1/licenses/rest.rb +0 -2
- data/lib/google/cloud/compute/v1/machine_types/rest/client.rb +133 -93
- data/lib/google/cloud/compute/v1/machine_types/rest/service_stub.rb +188 -0
- data/lib/google/cloud/compute/v1/machine_types/rest.rb +0 -2
- data/lib/google/cloud/compute/v1/network_endpoint_groups/rest/client.rb +275 -214
- data/lib/google/cloud/compute/v1/network_endpoint_groups/rest/grpc_transcoding.rb +8 -0
- data/lib/google/cloud/compute/v1/network_endpoint_groups/rest/service_stub.rb +465 -0
- data/lib/google/cloud/compute/v1/network_endpoint_groups/rest.rb +0 -2
- data/lib/google/cloud/compute/v1/networks/rest/client.rb +378 -234
- data/lib/google/cloud/compute/v1/networks/rest/grpc_transcoding.rb +5 -0
- data/lib/google/cloud/compute/v1/networks/rest/service_stub.rb +553 -0
- data/lib/google/cloud/compute/v1/networks/rest.rb +0 -2
- data/lib/google/cloud/compute/v1/node_groups/rest/client.rb +366 -280
- data/lib/google/cloud/compute/v1/node_groups/rest/grpc_transcoding.rb +6 -0
- data/lib/google/cloud/compute/v1/node_groups/rest/service_stub.rb +646 -0
- data/lib/google/cloud/compute/v1/node_groups/rest.rb +0 -2
- data/lib/google/cloud/compute/v1/node_templates/rest/client.rb +244 -172
- data/lib/google/cloud/compute/v1/node_templates/rest/grpc_transcoding.rb +1 -0
- data/lib/google/cloud/compute/v1/node_templates/rest/service_stub.rb +412 -0
- data/lib/google/cloud/compute/v1/node_templates/rest.rb +0 -2
- data/lib/google/cloud/compute/v1/node_types/rest/client.rb +133 -93
- data/lib/google/cloud/compute/v1/node_types/rest/service_stub.rb +188 -0
- data/lib/google/cloud/compute/v1/node_types/rest.rb +0 -2
- data/lib/google/cloud/compute/v1/packet_mirrorings/rest/client.rb +225 -166
- data/lib/google/cloud/compute/v1/packet_mirrorings/rest/grpc_transcoding.rb +2 -0
- data/lib/google/cloud/compute/v1/packet_mirrorings/rest/service_stub.rb +369 -0
- data/lib/google/cloud/compute/v1/packet_mirrorings/rest.rb +0 -2
- data/lib/google/cloud/compute/v1/projects/rest/client.rb +369 -285
- data/lib/google/cloud/compute/v1/projects/rest/grpc_transcoding.rb +12 -0
- data/lib/google/cloud/compute/v1/projects/rest/service_stub.rb +643 -0
- data/lib/google/cloud/compute/v1/projects/rest.rb +0 -2
- data/lib/google/cloud/compute/v1/public_advertised_prefixes/credentials.rb +52 -0
- data/lib/google/cloud/compute/v1/public_advertised_prefixes/rest/client.rb +627 -0
- data/lib/google/cloud/compute/v1/public_advertised_prefixes/rest/grpc_transcoding.rb +100 -0
- data/lib/google/cloud/compute/v1/public_advertised_prefixes/rest/service_stub.rb +275 -0
- data/lib/google/cloud/compute/v1/public_advertised_prefixes/rest.rb +33 -0
- data/lib/google/cloud/compute/v1/public_advertised_prefixes.rb +44 -0
- data/lib/google/cloud/compute/v1/public_delegated_prefixes/credentials.rb +52 -0
- data/lib/google/cloud/compute/v1/public_delegated_prefixes/rest/client.rb +723 -0
- data/lib/google/cloud/compute/v1/public_delegated_prefixes/rest/grpc_transcoding.rb +118 -0
- data/lib/google/cloud/compute/v1/public_delegated_prefixes/rest/service_stub.rb +325 -0
- data/lib/google/cloud/compute/v1/public_delegated_prefixes/rest.rb +33 -0
- data/lib/google/cloud/compute/v1/public_delegated_prefixes.rb +44 -0
- data/lib/google/cloud/compute/v1/region_autoscalers/rest/client.rb +200 -145
- data/lib/google/cloud/compute/v1/region_autoscalers/rest/grpc_transcoding.rb +5 -0
- data/lib/google/cloud/compute/v1/region_autoscalers/rest/service_stub.rb +323 -0
- data/lib/google/cloud/compute/v1/region_autoscalers/rest.rb +0 -2
- data/lib/google/cloud/compute/v1/region_backend_services/rest/client.rb +223 -161
- data/lib/google/cloud/compute/v1/region_backend_services/rest/grpc_transcoding.rb +3 -0
- data/lib/google/cloud/compute/v1/region_backend_services/rest/service_stub.rb +365 -0
- data/lib/google/cloud/compute/v1/region_backend_services/rest.rb +0 -2
- data/lib/google/cloud/compute/v1/region_commitments/rest/client.rb +158 -114
- data/lib/google/cloud/compute/v1/region_commitments/rest/grpc_transcoding.rb +1 -0
- data/lib/google/cloud/compute/v1/region_commitments/rest/service_stub.rb +234 -0
- data/lib/google/cloud/compute/v1/region_commitments/rest.rb +0 -2
- data/lib/google/cloud/compute/v1/region_disk_types/rest/client.rb +104 -65
- data/lib/google/cloud/compute/v1/region_disk_types/rest/service_stub.rb +138 -0
- data/lib/google/cloud/compute/v1/region_disk_types/rest.rb +0 -2
- data/lib/google/cloud/compute/v1/region_disks/rest/client.rb +336 -245
- data/lib/google/cloud/compute/v1/region_disks/rest/grpc_transcoding.rb +7 -0
- data/lib/google/cloud/compute/v1/region_disks/rest/service_stub.rb +593 -0
- data/lib/google/cloud/compute/v1/region_disks/rest.rb +0 -2
- data/lib/google/cloud/compute/v1/region_health_check_services/rest/client.rb +176 -125
- data/lib/google/cloud/compute/v1/region_health_check_services/rest/grpc_transcoding.rb +2 -0
- data/lib/google/cloud/compute/v1/region_health_check_services/rest/service_stub.rb +275 -0
- data/lib/google/cloud/compute/v1/region_health_check_services/rest.rb +0 -2
- data/lib/google/cloud/compute/v1/region_health_checks/rest/client.rb +200 -145
- data/lib/google/cloud/compute/v1/region_health_checks/rest/grpc_transcoding.rb +3 -0
- data/lib/google/cloud/compute/v1/region_health_checks/rest/service_stub.rb +321 -0
- data/lib/google/cloud/compute/v1/region_health_checks/rest.rb +0 -2
- data/lib/google/cloud/compute/v1/region_instance_group_managers/rest/client.rb +526 -444
- data/lib/google/cloud/compute/v1/region_instance_group_managers/rest/grpc_transcoding.rb +10 -0
- data/lib/google/cloud/compute/v1/region_instance_group_managers/rest/service_stub.rb +924 -0
- data/lib/google/cloud/compute/v1/region_instance_group_managers/rest.rb +0 -2
- data/lib/google/cloud/compute/v1/region_instance_groups/rest/client.rb +154 -113
- data/lib/google/cloud/compute/v1/region_instance_groups/rest/grpc_transcoding.rb +6 -0
- data/lib/google/cloud/compute/v1/region_instance_groups/rest/service_stub.rb +234 -0
- data/lib/google/cloud/compute/v1/region_instance_groups/rest.rb +0 -2
- data/lib/google/cloud/compute/v1/region_instances/credentials.rb +52 -0
- data/lib/google/cloud/compute/v1/region_instances/rest/client.rb +318 -0
- data/lib/google/cloud/compute/v1/region_instances/rest/grpc_transcoding.rb +46 -0
- data/lib/google/cloud/compute/v1/region_instances/rest/service_stub.rb +92 -0
- data/lib/google/cloud/compute/v1/region_instances/rest.rb +33 -0
- data/lib/google/cloud/compute/v1/region_instances.rb +44 -0
- data/lib/google/cloud/compute/v1/region_network_endpoint_groups/rest/client.rb +152 -105
- data/lib/google/cloud/compute/v1/region_network_endpoint_groups/rest/grpc_transcoding.rb +1 -0
- data/lib/google/cloud/compute/v1/region_network_endpoint_groups/rest/service_stub.rb +229 -0
- data/lib/google/cloud/compute/v1/region_network_endpoint_groups/rest.rb +0 -2
- data/lib/google/cloud/compute/v1/region_notification_endpoints/rest/client.rb +152 -105
- data/lib/google/cloud/compute/v1/region_notification_endpoints/rest/grpc_transcoding.rb +1 -0
- data/lib/google/cloud/compute/v1/region_notification_endpoints/rest/service_stub.rb +229 -0
- data/lib/google/cloud/compute/v1/region_notification_endpoints/rest.rb +0 -2
- data/lib/google/cloud/compute/v1/region_operations/rest/client.rb +145 -94
- data/lib/google/cloud/compute/v1/region_operations/rest/service_stub.rb +224 -0
- data/lib/google/cloud/compute/v1/region_operations/rest.rb +0 -2
- data/lib/google/cloud/compute/v1/region_ssl_certificates/rest/client.rb +152 -105
- data/lib/google/cloud/compute/v1/region_ssl_certificates/rest/grpc_transcoding.rb +1 -0
- data/lib/google/cloud/compute/v1/region_ssl_certificates/rest/service_stub.rb +229 -0
- data/lib/google/cloud/compute/v1/region_ssl_certificates/rest.rb +0 -2
- data/lib/google/cloud/compute/v1/region_target_http_proxies/rest/client.rb +176 -125
- data/lib/google/cloud/compute/v1/region_target_http_proxies/rest/grpc_transcoding.rb +2 -0
- data/lib/google/cloud/compute/v1/region_target_http_proxies/rest/service_stub.rb +275 -0
- data/lib/google/cloud/compute/v1/region_target_http_proxies/rest.rb +0 -2
- data/lib/google/cloud/compute/v1/region_target_https_proxies/rest/client.rb +200 -145
- data/lib/google/cloud/compute/v1/region_target_https_proxies/rest/grpc_transcoding.rb +3 -0
- data/lib/google/cloud/compute/v1/region_target_https_proxies/rest/service_stub.rb +321 -0
- data/lib/google/cloud/compute/v1/region_target_https_proxies/rest.rb +0 -2
- data/lib/google/cloud/compute/v1/region_url_maps/rest/client.rb +216 -138
- data/lib/google/cloud/compute/v1/region_url_maps/rest/grpc_transcoding.rb +3 -0
- data/lib/google/cloud/compute/v1/region_url_maps/rest/service_stub.rb +365 -0
- data/lib/google/cloud/compute/v1/region_url_maps/rest.rb +0 -2
- data/lib/google/cloud/compute/v1/regions/rest/client.rb +104 -65
- data/lib/google/cloud/compute/v1/regions/rest/service_stub.rb +138 -0
- data/lib/google/cloud/compute/v1/regions/rest.rb +0 -2
- data/lib/google/cloud/compute/v1/reservations/rest/client.rb +268 -192
- data/lib/google/cloud/compute/v1/reservations/rest/grpc_transcoding.rb +2 -0
- data/lib/google/cloud/compute/v1/reservations/rest/service_stub.rb +458 -0
- data/lib/google/cloud/compute/v1/reservations/rest.rb +0 -2
- data/lib/google/cloud/compute/v1/resource_policies/rest/client.rb +244 -172
- data/lib/google/cloud/compute/v1/resource_policies/rest/grpc_transcoding.rb +1 -0
- data/lib/google/cloud/compute/v1/resource_policies/rest/service_stub.rb +412 -0
- data/lib/google/cloud/compute/v1/resource_policies/rest.rb +0 -2
- data/lib/google/cloud/compute/v1/routers/rest/client.rb +301 -226
- data/lib/google/cloud/compute/v1/routers/rest/grpc_transcoding.rb +3 -0
- data/lib/google/cloud/compute/v1/routers/rest/service_stub.rb +507 -0
- data/lib/google/cloud/compute/v1/routers/rest.rb +0 -2
- data/lib/google/cloud/compute/v1/routes/rest/client.rb +152 -105
- data/lib/google/cloud/compute/v1/routes/rest/grpc_transcoding.rb +1 -0
- data/lib/google/cloud/compute/v1/routes/rest/service_stub.rb +229 -0
- data/lib/google/cloud/compute/v1/routes/rest.rb +0 -2
- data/lib/google/cloud/compute/v1/security_policies/rest/client.rb +294 -209
- data/lib/google/cloud/compute/v1/security_policies/rest/grpc_transcoding.rb +3 -0
- data/lib/google/cloud/compute/v1/security_policies/rest/service_stub.rb +504 -0
- data/lib/google/cloud/compute/v1/security_policies/rest.rb +0 -2
- data/lib/google/cloud/compute/v1/service_attachments/credentials.rb +52 -0
- data/lib/google/cloud/compute/v1/service_attachments/rest/client.rb +954 -0
- data/lib/google/cloud/compute/v1/service_attachments/rest/service_stub.rb +458 -0
- data/lib/google/cloud/compute/v1/service_attachments/rest.rb +33 -0
- data/lib/google/cloud/compute/v1/service_attachments.rb +44 -0
- data/lib/google/cloud/compute/v1/snapshots/rest/client.rb +215 -142
- data/lib/google/cloud/compute/v1/snapshots/rest/service_stub.rb +360 -0
- data/lib/google/cloud/compute/v1/snapshots/rest.rb +0 -2
- data/lib/google/cloud/compute/v1/ssl_certificates/rest/client.rb +181 -133
- data/lib/google/cloud/compute/v1/ssl_certificates/rest/grpc_transcoding.rb +1 -0
- data/lib/google/cloud/compute/v1/ssl_certificates/rest/service_stub.rb +279 -0
- data/lib/google/cloud/compute/v1/ssl_certificates/rest.rb +0 -2
- data/lib/google/cloud/compute/v1/ssl_policies/rest/client.rb +202 -151
- data/lib/google/cloud/compute/v1/ssl_policies/rest/grpc_transcoding.rb +2 -0
- data/lib/google/cloud/compute/v1/ssl_policies/rest/service_stub.rb +324 -0
- data/lib/google/cloud/compute/v1/ssl_policies/rest.rb +0 -2
- data/lib/google/cloud/compute/v1/subnetworks/rest/client.rb +345 -260
- data/lib/google/cloud/compute/v1/subnetworks/rest/grpc_transcoding.rb +5 -0
- data/lib/google/cloud/compute/v1/subnetworks/rest/service_stub.rb +600 -0
- data/lib/google/cloud/compute/v1/subnetworks/rest.rb +0 -2
- data/lib/google/cloud/compute/v1/target_grpc_proxies/rest/client.rb +176 -125
- data/lib/google/cloud/compute/v1/target_grpc_proxies/rest/grpc_transcoding.rb +2 -0
- data/lib/google/cloud/compute/v1/target_grpc_proxies/rest/service_stub.rb +275 -0
- data/lib/google/cloud/compute/v1/target_grpc_proxies/rest.rb +0 -2
- data/lib/google/cloud/compute/v1/target_http_proxies/rest/client.rb +230 -174
- data/lib/google/cloud/compute/v1/target_http_proxies/rest/grpc_transcoding.rb +3 -0
- data/lib/google/cloud/compute/v1/target_http_proxies/rest/service_stub.rb +371 -0
- data/lib/google/cloud/compute/v1/target_http_proxies/rest.rb +0 -2
- data/lib/google/cloud/compute/v1/target_https_proxies/rest/client.rb +353 -212
- data/lib/google/cloud/compute/v1/target_https_proxies/rest/grpc_transcoding.rb +5 -0
- data/lib/google/cloud/compute/v1/target_https_proxies/rest/service_stub.rb +509 -0
- data/lib/google/cloud/compute/v1/target_https_proxies/rest.rb +0 -2
- data/lib/google/cloud/compute/v1/target_instances/rest/client.rb +181 -133
- data/lib/google/cloud/compute/v1/target_instances/rest/grpc_transcoding.rb +1 -0
- data/lib/google/cloud/compute/v1/target_instances/rest/service_stub.rb +279 -0
- data/lib/google/cloud/compute/v1/target_instances/rest.rb +0 -2
- data/lib/google/cloud/compute/v1/target_pools/rest/client.rb +321 -246
- data/lib/google/cloud/compute/v1/target_pools/rest/grpc_transcoding.rb +7 -0
- data/lib/google/cloud/compute/v1/target_pools/rest/service_stub.rb +554 -0
- data/lib/google/cloud/compute/v1/target_pools/rest.rb +0 -2
- data/lib/google/cloud/compute/v1/target_ssl_proxies/rest/client.rb +248 -185
- data/lib/google/cloud/compute/v1/target_ssl_proxies/rest/grpc_transcoding.rb +5 -0
- data/lib/google/cloud/compute/v1/target_ssl_proxies/rest/service_stub.rb +413 -0
- data/lib/google/cloud/compute/v1/target_ssl_proxies/rest.rb +0 -2
- data/lib/google/cloud/compute/v1/target_tcp_proxies/rest/client.rb +200 -145
- data/lib/google/cloud/compute/v1/target_tcp_proxies/rest/grpc_transcoding.rb +3 -0
- data/lib/google/cloud/compute/v1/target_tcp_proxies/rest/service_stub.rb +321 -0
- data/lib/google/cloud/compute/v1/target_tcp_proxies/rest.rb +0 -2
- data/lib/google/cloud/compute/v1/target_vpn_gateways/rest/client.rb +181 -133
- data/lib/google/cloud/compute/v1/target_vpn_gateways/rest/grpc_transcoding.rb +1 -0
- data/lib/google/cloud/compute/v1/target_vpn_gateways/rest/service_stub.rb +279 -0
- data/lib/google/cloud/compute/v1/target_vpn_gateways/rest.rb +0 -2
- data/lib/google/cloud/compute/v1/url_maps/rest/client.rb +274 -209
- data/lib/google/cloud/compute/v1/url_maps/rest/grpc_transcoding.rb +4 -0
- data/lib/google/cloud/compute/v1/url_maps/rest/service_stub.rb +461 -0
- data/lib/google/cloud/compute/v1/url_maps/rest.rb +0 -2
- data/lib/google/cloud/compute/v1/version.rb +1 -1
- data/lib/google/cloud/compute/v1/vpn_gateways/rest/client.rb +248 -178
- data/lib/google/cloud/compute/v1/vpn_gateways/rest/grpc_transcoding.rb +2 -0
- data/lib/google/cloud/compute/v1/vpn_gateways/rest/service_stub.rb +412 -0
- data/lib/google/cloud/compute/v1/vpn_gateways/rest.rb +0 -2
- data/lib/google/cloud/compute/v1/vpn_tunnels/rest/client.rb +181 -133
- data/lib/google/cloud/compute/v1/vpn_tunnels/rest/grpc_transcoding.rb +1 -0
- data/lib/google/cloud/compute/v1/vpn_tunnels/rest/service_stub.rb +279 -0
- data/lib/google/cloud/compute/v1/vpn_tunnels/rest.rb +0 -2
- data/lib/google/cloud/compute/v1/zone_operations/rest/client.rb +145 -94
- data/lib/google/cloud/compute/v1/zone_operations/rest/service_stub.rb +224 -0
- data/lib/google/cloud/compute/v1/zone_operations/rest.rb +0 -2
- data/lib/google/cloud/compute/v1/zones/rest/client.rb +104 -65
- data/lib/google/cloud/compute/v1/zones/rest/service_stub.rb +138 -0
- data/lib/google/cloud/compute/v1/zones/rest.rb +0 -2
- data/lib/google/cloud/compute/v1.rb +7 -0
- data/proto_docs/README.md +1 -1
- data/proto_docs/google/api/field_behavior.rb +6 -0
- data/proto_docs/google/cloud/compute/v1/compute.rb +18964 -19481
- data/proto_docs/google/cloud/extended_operations.rb +51 -0
- metadata +141 -13
@@ -18,6 +18,7 @@
|
|
18
18
|
|
19
19
|
require "google/cloud/errors"
|
20
20
|
require "google/cloud/compute/v1/compute_pb"
|
21
|
+
require "google/cloud/compute/v1/instances/rest/service_stub"
|
21
22
|
|
22
23
|
module Google
|
23
24
|
module Cloud
|
@@ -31,8 +32,6 @@ module Google
|
|
31
32
|
# The Instances API.
|
32
33
|
#
|
33
34
|
class Client
|
34
|
-
include GrpcTranscoding
|
35
|
-
|
36
35
|
# @private
|
37
36
|
attr_reader :instances_stub
|
38
37
|
|
@@ -42,13 +41,12 @@ module Google
|
|
42
41
|
# See {::Google::Cloud::Compute::V1::Instances::Rest::Client::Configuration}
|
43
42
|
# for a description of the configuration fields.
|
44
43
|
#
|
45
|
-
#
|
46
|
-
#
|
47
|
-
# To modify the configuration for all Instances clients:
|
44
|
+
# @example
|
48
45
|
#
|
49
|
-
#
|
50
|
-
#
|
51
|
-
#
|
46
|
+
# # Modify the configuration for all Instances clients
|
47
|
+
# ::Google::Cloud::Compute::V1::Instances::Rest::Client.configure do |config|
|
48
|
+
# config.timeout = 10.0
|
49
|
+
# end
|
52
50
|
#
|
53
51
|
# @yield [config] Configure the Client client.
|
54
52
|
# @yieldparam config [Client::Configuration]
|
@@ -66,6 +64,122 @@ module Google
|
|
66
64
|
end
|
67
65
|
default_config = Client::Configuration.new parent_config
|
68
66
|
|
67
|
+
default_config.rpcs.add_access_config.timeout = 600.0
|
68
|
+
|
69
|
+
default_config.rpcs.add_resource_policies.timeout = 600.0
|
70
|
+
|
71
|
+
default_config.rpcs.aggregated_list.timeout = 600.0
|
72
|
+
default_config.rpcs.aggregated_list.retry_policy = {
|
73
|
+
initial_delay: 0.1, max_delay: 60.0, multiplier: 1.3, retry_codes: [4, 14]
|
74
|
+
}
|
75
|
+
|
76
|
+
default_config.rpcs.attach_disk.timeout = 600.0
|
77
|
+
|
78
|
+
default_config.rpcs.bulk_insert.timeout = 600.0
|
79
|
+
|
80
|
+
default_config.rpcs.delete.timeout = 600.0
|
81
|
+
|
82
|
+
default_config.rpcs.delete_access_config.timeout = 600.0
|
83
|
+
|
84
|
+
default_config.rpcs.detach_disk.timeout = 600.0
|
85
|
+
|
86
|
+
default_config.rpcs.get.timeout = 600.0
|
87
|
+
default_config.rpcs.get.retry_policy = {
|
88
|
+
initial_delay: 0.1, max_delay: 60.0, multiplier: 1.3, retry_codes: [4, 14]
|
89
|
+
}
|
90
|
+
|
91
|
+
default_config.rpcs.get_effective_firewalls.timeout = 600.0
|
92
|
+
default_config.rpcs.get_effective_firewalls.retry_policy = {
|
93
|
+
initial_delay: 0.1, max_delay: 60.0, multiplier: 1.3, retry_codes: [4, 14]
|
94
|
+
}
|
95
|
+
|
96
|
+
default_config.rpcs.get_guest_attributes.timeout = 600.0
|
97
|
+
default_config.rpcs.get_guest_attributes.retry_policy = {
|
98
|
+
initial_delay: 0.1, max_delay: 60.0, multiplier: 1.3, retry_codes: [4, 14]
|
99
|
+
}
|
100
|
+
|
101
|
+
default_config.rpcs.get_iam_policy.timeout = 600.0
|
102
|
+
default_config.rpcs.get_iam_policy.retry_policy = {
|
103
|
+
initial_delay: 0.1, max_delay: 60.0, multiplier: 1.3, retry_codes: [4, 14]
|
104
|
+
}
|
105
|
+
|
106
|
+
default_config.rpcs.get_screenshot.timeout = 600.0
|
107
|
+
default_config.rpcs.get_screenshot.retry_policy = {
|
108
|
+
initial_delay: 0.1, max_delay: 60.0, multiplier: 1.3, retry_codes: [4, 14]
|
109
|
+
}
|
110
|
+
|
111
|
+
default_config.rpcs.get_serial_port_output.timeout = 600.0
|
112
|
+
default_config.rpcs.get_serial_port_output.retry_policy = {
|
113
|
+
initial_delay: 0.1, max_delay: 60.0, multiplier: 1.3, retry_codes: [4, 14]
|
114
|
+
}
|
115
|
+
|
116
|
+
default_config.rpcs.get_shielded_instance_identity.timeout = 600.0
|
117
|
+
default_config.rpcs.get_shielded_instance_identity.retry_policy = {
|
118
|
+
initial_delay: 0.1, max_delay: 60.0, multiplier: 1.3, retry_codes: [4, 14]
|
119
|
+
}
|
120
|
+
|
121
|
+
default_config.rpcs.insert.timeout = 600.0
|
122
|
+
|
123
|
+
default_config.rpcs.list.timeout = 600.0
|
124
|
+
default_config.rpcs.list.retry_policy = {
|
125
|
+
initial_delay: 0.1, max_delay: 60.0, multiplier: 1.3, retry_codes: [4, 14]
|
126
|
+
}
|
127
|
+
|
128
|
+
default_config.rpcs.list_referrers.timeout = 600.0
|
129
|
+
default_config.rpcs.list_referrers.retry_policy = {
|
130
|
+
initial_delay: 0.1, max_delay: 60.0, multiplier: 1.3, retry_codes: [4, 14]
|
131
|
+
}
|
132
|
+
|
133
|
+
default_config.rpcs.remove_resource_policies.timeout = 600.0
|
134
|
+
|
135
|
+
default_config.rpcs.reset.timeout = 600.0
|
136
|
+
|
137
|
+
default_config.rpcs.send_diagnostic_interrupt.timeout = 600.0
|
138
|
+
|
139
|
+
default_config.rpcs.set_deletion_protection.timeout = 600.0
|
140
|
+
|
141
|
+
default_config.rpcs.set_disk_auto_delete.timeout = 600.0
|
142
|
+
|
143
|
+
default_config.rpcs.set_iam_policy.timeout = 600.0
|
144
|
+
|
145
|
+
default_config.rpcs.set_labels.timeout = 600.0
|
146
|
+
|
147
|
+
default_config.rpcs.set_machine_resources.timeout = 600.0
|
148
|
+
|
149
|
+
default_config.rpcs.set_machine_type.timeout = 600.0
|
150
|
+
|
151
|
+
default_config.rpcs.set_metadata.timeout = 600.0
|
152
|
+
|
153
|
+
default_config.rpcs.set_min_cpu_platform.timeout = 600.0
|
154
|
+
|
155
|
+
default_config.rpcs.set_scheduling.timeout = 600.0
|
156
|
+
|
157
|
+
default_config.rpcs.set_service_account.timeout = 600.0
|
158
|
+
|
159
|
+
default_config.rpcs.set_shielded_instance_integrity_policy.timeout = 600.0
|
160
|
+
|
161
|
+
default_config.rpcs.set_tags.timeout = 600.0
|
162
|
+
|
163
|
+
default_config.rpcs.simulate_maintenance_event.timeout = 600.0
|
164
|
+
|
165
|
+
default_config.rpcs.start.timeout = 600.0
|
166
|
+
|
167
|
+
default_config.rpcs.start_with_encryption_key.timeout = 600.0
|
168
|
+
|
169
|
+
default_config.rpcs.stop.timeout = 600.0
|
170
|
+
|
171
|
+
default_config.rpcs.test_iam_permissions.timeout = 600.0
|
172
|
+
|
173
|
+
default_config.rpcs.update.timeout = 600.0
|
174
|
+
|
175
|
+
default_config.rpcs.update_access_config.timeout = 600.0
|
176
|
+
|
177
|
+
default_config.rpcs.update_display_device.timeout = 600.0
|
178
|
+
|
179
|
+
default_config.rpcs.update_network_interface.timeout = 600.0
|
180
|
+
|
181
|
+
default_config.rpcs.update_shielded_instance_config.timeout = 600.0
|
182
|
+
|
69
183
|
default_config
|
70
184
|
end
|
71
185
|
yield @configure if block_given?
|
@@ -95,28 +209,20 @@ module Google
|
|
95
209
|
##
|
96
210
|
# Create a new Instances REST client object.
|
97
211
|
#
|
98
|
-
#
|
99
|
-
#
|
100
|
-
# To create a new Instances REST client with the default
|
101
|
-
# configuration:
|
212
|
+
# @example
|
102
213
|
#
|
103
|
-
#
|
214
|
+
# # Create a client using the default configuration
|
215
|
+
# client = ::Google::Cloud::Compute::V1::Instances::Rest::Client.new
|
104
216
|
#
|
105
|
-
#
|
106
|
-
#
|
107
|
-
#
|
108
|
-
#
|
109
|
-
# config.timeout = 10.0
|
110
|
-
# end
|
217
|
+
# # Create a client using a custom configuration
|
218
|
+
# client = ::Google::Cloud::Compute::V1::Instances::Rest::Client.new do |config|
|
219
|
+
# config.timeout = 10.0
|
220
|
+
# end
|
111
221
|
#
|
112
222
|
# @yield [config] Configure the Instances client.
|
113
223
|
# @yieldparam config [Client::Configuration]
|
114
224
|
#
|
115
225
|
def initialize
|
116
|
-
# These require statements are intentionally placed here to initialize
|
117
|
-
# the REST modules only when it's required.
|
118
|
-
require "gapic/rest"
|
119
|
-
|
120
226
|
# Create the configuration object
|
121
227
|
@config = Configuration.new Client.configure
|
122
228
|
|
@@ -126,11 +232,11 @@ module Google
|
|
126
232
|
# Create credentials
|
127
233
|
credentials = @config.credentials
|
128
234
|
credentials ||= Credentials.default scope: @config.scope
|
129
|
-
if credentials.is_a?(String) || credentials.is_a?(Hash)
|
235
|
+
if credentials.is_a?(::String) || credentials.is_a?(::Hash)
|
130
236
|
credentials = Credentials.new credentials, scope: @config.scope
|
131
237
|
end
|
132
238
|
|
133
|
-
@
|
239
|
+
@instances_stub = ::Google::Cloud::Compute::V1::Instances::Rest::ServiceStub.new endpoint: @config.endpoint, credentials: credentials
|
134
240
|
end
|
135
241
|
|
136
242
|
# Service calls
|
@@ -164,18 +270,14 @@ module Google
|
|
164
270
|
# @param project [::String]
|
165
271
|
# Project ID for this request.
|
166
272
|
# @param request_id [::String]
|
167
|
-
# 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.
|
168
|
-
#
|
169
|
-
# 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.
|
170
|
-
#
|
171
|
-
# The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
|
273
|
+
# 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).
|
172
274
|
# @param zone [::String]
|
173
275
|
# The name of the zone for this request.
|
174
|
-
# @yield [result,
|
175
|
-
# @yieldparam result [::
|
276
|
+
# @yield [result, response] Access the result along with the Faraday response object
|
277
|
+
# @yieldparam result [::Gapic::Rest::BaseOperation]
|
176
278
|
# @yieldparam response [::Faraday::Response]
|
177
279
|
#
|
178
|
-
# @return [::
|
280
|
+
# @return [::Gapic::Rest::BaseOperation]
|
179
281
|
#
|
180
282
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
181
283
|
def add_access_config request, options = nil
|
@@ -187,26 +289,25 @@ module Google
|
|
187
289
|
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
188
290
|
|
189
291
|
# Customize the options with defaults
|
190
|
-
call_metadata =
|
292
|
+
call_metadata = @config.rpcs.add_access_config.metadata.to_h
|
191
293
|
|
192
294
|
# Set x-goog-api-client header
|
193
295
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
194
296
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
195
|
-
gapic_version: ::Google::Cloud::Compute::V1::VERSION
|
297
|
+
gapic_version: ::Google::Cloud::Compute::V1::VERSION,
|
298
|
+
transports_version_send: [:rest]
|
196
299
|
|
197
|
-
options.apply_defaults timeout: @config.timeout,
|
300
|
+
options.apply_defaults timeout: @config.rpcs.add_access_config.timeout,
|
198
301
|
metadata: call_metadata
|
199
302
|
|
200
|
-
|
201
|
-
|
202
|
-
uri: uri,
|
203
|
-
body: body,
|
204
|
-
options: options
|
205
|
-
)
|
206
|
-
result = ::Google::Cloud::Compute::V1::Operation.decode_json response.body, ignore_unknown_fields: true
|
303
|
+
options.apply_defaults timeout: @config.timeout,
|
304
|
+
metadata: @config.metadata
|
207
305
|
|
208
|
-
|
209
|
-
|
306
|
+
@instances_stub.add_access_config request, options do |result, response|
|
307
|
+
result = ::Gapic::Rest::BaseOperation.new result
|
308
|
+
yield result, response if block_given?
|
309
|
+
return result
|
310
|
+
end
|
210
311
|
rescue ::Faraday::Error => e
|
211
312
|
gapic_error = ::Gapic::Rest::Error.wrap_faraday_error e
|
212
313
|
raise ::Google::Cloud::Error.from_error(gapic_error)
|
@@ -239,18 +340,14 @@ module Google
|
|
239
340
|
# @param project [::String]
|
240
341
|
# Project ID for this request.
|
241
342
|
# @param request_id [::String]
|
242
|
-
# 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.
|
243
|
-
#
|
244
|
-
# 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.
|
245
|
-
#
|
246
|
-
# The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
|
343
|
+
# 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).
|
247
344
|
# @param zone [::String]
|
248
345
|
# The name of the zone for this request.
|
249
|
-
# @yield [result,
|
250
|
-
# @yieldparam result [::
|
346
|
+
# @yield [result, response] Access the result along with the Faraday response object
|
347
|
+
# @yieldparam result [::Gapic::Rest::BaseOperation]
|
251
348
|
# @yieldparam response [::Faraday::Response]
|
252
349
|
#
|
253
|
-
# @return [::
|
350
|
+
# @return [::Gapic::Rest::BaseOperation]
|
254
351
|
#
|
255
352
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
256
353
|
def add_resource_policies request, options = nil
|
@@ -262,33 +359,32 @@ module Google
|
|
262
359
|
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
263
360
|
|
264
361
|
# Customize the options with defaults
|
265
|
-
call_metadata =
|
362
|
+
call_metadata = @config.rpcs.add_resource_policies.metadata.to_h
|
266
363
|
|
267
364
|
# Set x-goog-api-client header
|
268
365
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
269
366
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
270
|
-
gapic_version: ::Google::Cloud::Compute::V1::VERSION
|
367
|
+
gapic_version: ::Google::Cloud::Compute::V1::VERSION,
|
368
|
+
transports_version_send: [:rest]
|
271
369
|
|
272
|
-
options.apply_defaults timeout: @config.timeout,
|
370
|
+
options.apply_defaults timeout: @config.rpcs.add_resource_policies.timeout,
|
273
371
|
metadata: call_metadata
|
274
372
|
|
275
|
-
|
276
|
-
|
277
|
-
uri: uri,
|
278
|
-
body: body,
|
279
|
-
options: options
|
280
|
-
)
|
281
|
-
result = ::Google::Cloud::Compute::V1::Operation.decode_json response.body, ignore_unknown_fields: true
|
373
|
+
options.apply_defaults timeout: @config.timeout,
|
374
|
+
metadata: @config.metadata
|
282
375
|
|
283
|
-
|
284
|
-
|
376
|
+
@instances_stub.add_resource_policies request, options do |result, response|
|
377
|
+
result = ::Gapic::Rest::BaseOperation.new result
|
378
|
+
yield result, response if block_given?
|
379
|
+
return result
|
380
|
+
end
|
285
381
|
rescue ::Faraday::Error => e
|
286
382
|
gapic_error = ::Gapic::Rest::Error.wrap_faraday_error e
|
287
383
|
raise ::Google::Cloud::Error.from_error(gapic_error)
|
288
384
|
end
|
289
385
|
|
290
386
|
##
|
291
|
-
# Retrieves aggregated list of all of the instances in your project across all regions and zones.
|
387
|
+
# Retrieves an aggregated list of all of the instances in your project across all regions and zones. The performance of this method degrades when a filter is specified on a project that has a very large number of instances.
|
292
388
|
#
|
293
389
|
# @overload aggregated_list(request, options = nil)
|
294
390
|
# Pass arguments to `aggregated_list` via a request object, either of type
|
@@ -308,34 +404,24 @@ module Google
|
|
308
404
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
309
405
|
#
|
310
406
|
# @param filter [::String]
|
311
|
-
# A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison operator must be either `=`, `!=`, `>`, or `<`.
|
312
|
-
#
|
313
|
-
# For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`.
|
314
|
-
#
|
315
|
-
# You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels.
|
316
|
-
#
|
317
|
-
# To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ```
|
407
|
+
# A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison operator must be either `=`, `!=`, `>`, or `<`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ```
|
318
408
|
# @param include_all_scopes [::Boolean]
|
319
409
|
# Indicates whether every visible scope for each scope type (zone, region, global) should be included in the response. For new resource types added after this field, the flag has no effect as new resource types will always include every visible scope for each scope type in response. For resource types which predate this field, if this flag is omitted or false, only scopes of the scope types where the resource type is expected to be found will be included.
|
320
410
|
# @param max_results [::Integer]
|
321
411
|
# The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`)
|
322
412
|
# @param order_by [::String]
|
323
|
-
# Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name.
|
324
|
-
#
|
325
|
-
# You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first.
|
326
|
-
#
|
327
|
-
# Currently, only sorting by `name` or `creationTimestamp desc` is supported.
|
413
|
+
# Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported.
|
328
414
|
# @param page_token [::String]
|
329
415
|
# Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results.
|
330
416
|
# @param project [::String]
|
331
417
|
# Project ID for this request.
|
332
418
|
# @param return_partial_success [::Boolean]
|
333
|
-
# Opt-in for partial success behavior which provides partial results in case of failure. The default value is false
|
334
|
-
# @yield [result,
|
335
|
-
# @yieldparam result [::Google::Cloud::Compute::V1::
|
419
|
+
# Opt-in for partial success behavior which provides partial results in case of failure. The default value is false.
|
420
|
+
# @yield [result, response] Access the result along with the Faraday response object
|
421
|
+
# @yieldparam result [::Gapic::Rest::PagedEnumerable<::String, ::Google::Cloud::Compute::V1::InstancesScopedList>]
|
336
422
|
# @yieldparam response [::Faraday::Response]
|
337
423
|
#
|
338
|
-
# @return [::Google::Cloud::Compute::V1::
|
424
|
+
# @return [::Gapic::Rest::PagedEnumerable<::String, ::Google::Cloud::Compute::V1::InstancesScopedList>]
|
339
425
|
#
|
340
426
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
341
427
|
def aggregated_list request, options = nil
|
@@ -347,26 +433,25 @@ module Google
|
|
347
433
|
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
348
434
|
|
349
435
|
# Customize the options with defaults
|
350
|
-
call_metadata =
|
436
|
+
call_metadata = @config.rpcs.aggregated_list.metadata.to_h
|
351
437
|
|
352
438
|
# Set x-goog-api-client header
|
353
439
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
354
440
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
355
|
-
gapic_version: ::Google::Cloud::Compute::V1::VERSION
|
441
|
+
gapic_version: ::Google::Cloud::Compute::V1::VERSION,
|
442
|
+
transports_version_send: [:rest]
|
356
443
|
|
357
|
-
options.apply_defaults timeout: @config.timeout,
|
444
|
+
options.apply_defaults timeout: @config.rpcs.aggregated_list.timeout,
|
358
445
|
metadata: call_metadata
|
359
446
|
|
360
|
-
|
361
|
-
|
362
|
-
uri: uri,
|
363
|
-
params: query_string_params,
|
364
|
-
options: options
|
365
|
-
)
|
366
|
-
result = ::Google::Cloud::Compute::V1::InstanceAggregatedList.decode_json response.body, ignore_unknown_fields: true
|
447
|
+
options.apply_defaults timeout: @config.timeout,
|
448
|
+
metadata: @config.metadata
|
367
449
|
|
368
|
-
|
369
|
-
|
450
|
+
@instances_stub.aggregated_list request, options do |result, response|
|
451
|
+
result = ::Gapic::Rest::PagedEnumerable.new @instances_stub, :aggregated_list, "items", request, result, options
|
452
|
+
yield result, response if block_given?
|
453
|
+
return result
|
454
|
+
end
|
370
455
|
rescue ::Faraday::Error => e
|
371
456
|
gapic_error = ::Gapic::Rest::Error.wrap_faraday_error e
|
372
457
|
raise ::Google::Cloud::Error.from_error(gapic_error)
|
@@ -401,18 +486,14 @@ module Google
|
|
401
486
|
# @param project [::String]
|
402
487
|
# Project ID for this request.
|
403
488
|
# @param request_id [::String]
|
404
|
-
# 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.
|
405
|
-
#
|
406
|
-
# 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.
|
407
|
-
#
|
408
|
-
# The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
|
489
|
+
# 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).
|
409
490
|
# @param zone [::String]
|
410
491
|
# The name of the zone for this request.
|
411
|
-
# @yield [result,
|
412
|
-
# @yieldparam result [::
|
492
|
+
# @yield [result, response] Access the result along with the Faraday response object
|
493
|
+
# @yieldparam result [::Gapic::Rest::BaseOperation]
|
413
494
|
# @yieldparam response [::Faraday::Response]
|
414
495
|
#
|
415
|
-
# @return [::
|
496
|
+
# @return [::Gapic::Rest::BaseOperation]
|
416
497
|
#
|
417
498
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
418
499
|
def attach_disk request, options = nil
|
@@ -424,33 +505,100 @@ module Google
|
|
424
505
|
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
425
506
|
|
426
507
|
# Customize the options with defaults
|
427
|
-
call_metadata =
|
508
|
+
call_metadata = @config.rpcs.attach_disk.metadata.to_h
|
428
509
|
|
429
510
|
# Set x-goog-api-client header
|
430
511
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
431
512
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
432
|
-
gapic_version: ::Google::Cloud::Compute::V1::VERSION
|
513
|
+
gapic_version: ::Google::Cloud::Compute::V1::VERSION,
|
514
|
+
transports_version_send: [:rest]
|
515
|
+
|
516
|
+
options.apply_defaults timeout: @config.rpcs.attach_disk.timeout,
|
517
|
+
metadata: call_metadata
|
433
518
|
|
434
519
|
options.apply_defaults timeout: @config.timeout,
|
520
|
+
metadata: @config.metadata
|
521
|
+
|
522
|
+
@instances_stub.attach_disk request, options do |result, response|
|
523
|
+
result = ::Gapic::Rest::BaseOperation.new result
|
524
|
+
yield result, response if block_given?
|
525
|
+
return result
|
526
|
+
end
|
527
|
+
rescue ::Faraday::Error => e
|
528
|
+
gapic_error = ::Gapic::Rest::Error.wrap_faraday_error e
|
529
|
+
raise ::Google::Cloud::Error.from_error(gapic_error)
|
530
|
+
end
|
531
|
+
|
532
|
+
##
|
533
|
+
# Creates multiple instances. Count specifies the number of instances to create.
|
534
|
+
#
|
535
|
+
# @overload bulk_insert(request, options = nil)
|
536
|
+
# Pass arguments to `bulk_insert` via a request object, either of type
|
537
|
+
# {::Google::Cloud::Compute::V1::BulkInsertInstanceRequest} or an equivalent Hash.
|
538
|
+
#
|
539
|
+
# @param request [::Google::Cloud::Compute::V1::BulkInsertInstanceRequest, ::Hash]
|
540
|
+
# A request object representing the call parameters. Required. To specify no
|
541
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
542
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
543
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
544
|
+
# Note: currently retry functionality is not implemented. While it is possible
|
545
|
+
# to set it using ::Gapic::CallOptions, it will not be applied
|
546
|
+
#
|
547
|
+
# @overload bulk_insert(bulk_insert_instance_resource_resource: nil, project: nil, request_id: nil, zone: nil)
|
548
|
+
# Pass arguments to `bulk_insert` via keyword arguments. Note that at
|
549
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
550
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
551
|
+
#
|
552
|
+
# @param bulk_insert_instance_resource_resource [::Google::Cloud::Compute::V1::BulkInsertInstanceResource, ::Hash]
|
553
|
+
# The body resource for this request
|
554
|
+
# @param project [::String]
|
555
|
+
# Project ID for this request.
|
556
|
+
# @param request_id [::String]
|
557
|
+
# 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).
|
558
|
+
# @param zone [::String]
|
559
|
+
# The name of the zone for this request.
|
560
|
+
# @yield [result, response] Access the result along with the Faraday response object
|
561
|
+
# @yieldparam result [::Gapic::Rest::BaseOperation]
|
562
|
+
# @yieldparam response [::Faraday::Response]
|
563
|
+
#
|
564
|
+
# @return [::Gapic::Rest::BaseOperation]
|
565
|
+
#
|
566
|
+
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
567
|
+
def bulk_insert request, options = nil
|
568
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
569
|
+
|
570
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Compute::V1::BulkInsertInstanceRequest
|
571
|
+
|
572
|
+
# Converts hash and nil to an options object
|
573
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
574
|
+
|
575
|
+
# Customize the options with defaults
|
576
|
+
call_metadata = @config.rpcs.bulk_insert.metadata.to_h
|
577
|
+
|
578
|
+
# Set x-goog-api-client header
|
579
|
+
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
580
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
581
|
+
gapic_version: ::Google::Cloud::Compute::V1::VERSION,
|
582
|
+
transports_version_send: [:rest]
|
583
|
+
|
584
|
+
options.apply_defaults timeout: @config.rpcs.bulk_insert.timeout,
|
435
585
|
metadata: call_metadata
|
436
586
|
|
437
|
-
|
438
|
-
|
439
|
-
uri: uri,
|
440
|
-
body: body,
|
441
|
-
options: options
|
442
|
-
)
|
443
|
-
result = ::Google::Cloud::Compute::V1::Operation.decode_json response.body, ignore_unknown_fields: true
|
587
|
+
options.apply_defaults timeout: @config.timeout,
|
588
|
+
metadata: @config.metadata
|
444
589
|
|
445
|
-
|
446
|
-
|
590
|
+
@instances_stub.bulk_insert request, options do |result, response|
|
591
|
+
result = ::Gapic::Rest::BaseOperation.new result
|
592
|
+
yield result, response if block_given?
|
593
|
+
return result
|
594
|
+
end
|
447
595
|
rescue ::Faraday::Error => e
|
448
596
|
gapic_error = ::Gapic::Rest::Error.wrap_faraday_error e
|
449
597
|
raise ::Google::Cloud::Error.from_error(gapic_error)
|
450
598
|
end
|
451
599
|
|
452
600
|
##
|
453
|
-
# Deletes the specified Instance resource. For more information, see
|
601
|
+
# Deletes the specified Instance resource. For more information, see Deleting an instance.
|
454
602
|
#
|
455
603
|
# @overload delete(request, options = nil)
|
456
604
|
# Pass arguments to `delete` via a request object, either of type
|
@@ -474,18 +622,14 @@ module Google
|
|
474
622
|
# @param project [::String]
|
475
623
|
# Project ID for this request.
|
476
624
|
# @param request_id [::String]
|
477
|
-
# 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.
|
478
|
-
#
|
479
|
-
# 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.
|
480
|
-
#
|
481
|
-
# The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
|
625
|
+
# 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).
|
482
626
|
# @param zone [::String]
|
483
627
|
# The name of the zone for this request.
|
484
|
-
# @yield [result,
|
485
|
-
# @yieldparam result [::
|
628
|
+
# @yield [result, response] Access the result along with the Faraday response object
|
629
|
+
# @yieldparam result [::Gapic::Rest::BaseOperation]
|
486
630
|
# @yieldparam response [::Faraday::Response]
|
487
631
|
#
|
488
|
-
# @return [::
|
632
|
+
# @return [::Gapic::Rest::BaseOperation]
|
489
633
|
#
|
490
634
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
491
635
|
def delete request, options = nil
|
@@ -497,26 +641,25 @@ module Google
|
|
497
641
|
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
498
642
|
|
499
643
|
# Customize the options with defaults
|
500
|
-
call_metadata =
|
644
|
+
call_metadata = @config.rpcs.delete.metadata.to_h
|
501
645
|
|
502
646
|
# Set x-goog-api-client header
|
503
647
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
504
648
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
505
|
-
gapic_version: ::Google::Cloud::Compute::V1::VERSION
|
649
|
+
gapic_version: ::Google::Cloud::Compute::V1::VERSION,
|
650
|
+
transports_version_send: [:rest]
|
506
651
|
|
507
|
-
options.apply_defaults timeout: @config.timeout,
|
652
|
+
options.apply_defaults timeout: @config.rpcs.delete.timeout,
|
508
653
|
metadata: call_metadata
|
509
654
|
|
510
|
-
|
511
|
-
|
512
|
-
uri: uri,
|
513
|
-
params: query_string_params,
|
514
|
-
options: options
|
515
|
-
)
|
516
|
-
result = ::Google::Cloud::Compute::V1::Operation.decode_json response.body, ignore_unknown_fields: true
|
655
|
+
options.apply_defaults timeout: @config.timeout,
|
656
|
+
metadata: @config.metadata
|
517
657
|
|
518
|
-
|
519
|
-
|
658
|
+
@instances_stub.delete request, options do |result, response|
|
659
|
+
result = ::Gapic::Rest::BaseOperation.new result
|
660
|
+
yield result, response if block_given?
|
661
|
+
return result
|
662
|
+
end
|
520
663
|
rescue ::Faraday::Error => e
|
521
664
|
gapic_error = ::Gapic::Rest::Error.wrap_faraday_error e
|
522
665
|
raise ::Google::Cloud::Error.from_error(gapic_error)
|
@@ -551,18 +694,14 @@ module Google
|
|
551
694
|
# @param project [::String]
|
552
695
|
# Project ID for this request.
|
553
696
|
# @param request_id [::String]
|
554
|
-
# 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.
|
555
|
-
#
|
556
|
-
# 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.
|
557
|
-
#
|
558
|
-
# The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
|
697
|
+
# 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).
|
559
698
|
# @param zone [::String]
|
560
699
|
# The name of the zone for this request.
|
561
|
-
# @yield [result,
|
562
|
-
# @yieldparam result [::
|
700
|
+
# @yield [result, response] Access the result along with the Faraday response object
|
701
|
+
# @yieldparam result [::Gapic::Rest::BaseOperation]
|
563
702
|
# @yieldparam response [::Faraday::Response]
|
564
703
|
#
|
565
|
-
# @return [::
|
704
|
+
# @return [::Gapic::Rest::BaseOperation]
|
566
705
|
#
|
567
706
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
568
707
|
def delete_access_config request, options = nil
|
@@ -574,26 +713,25 @@ module Google
|
|
574
713
|
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
575
714
|
|
576
715
|
# Customize the options with defaults
|
577
|
-
call_metadata =
|
716
|
+
call_metadata = @config.rpcs.delete_access_config.metadata.to_h
|
578
717
|
|
579
718
|
# Set x-goog-api-client header
|
580
719
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
581
720
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
582
|
-
gapic_version: ::Google::Cloud::Compute::V1::VERSION
|
721
|
+
gapic_version: ::Google::Cloud::Compute::V1::VERSION,
|
722
|
+
transports_version_send: [:rest]
|
583
723
|
|
584
|
-
options.apply_defaults timeout: @config.timeout,
|
724
|
+
options.apply_defaults timeout: @config.rpcs.delete_access_config.timeout,
|
585
725
|
metadata: call_metadata
|
586
726
|
|
587
|
-
|
588
|
-
|
589
|
-
uri: uri,
|
590
|
-
params: query_string_params,
|
591
|
-
options: options
|
592
|
-
)
|
593
|
-
result = ::Google::Cloud::Compute::V1::Operation.decode_json response.body, ignore_unknown_fields: true
|
727
|
+
options.apply_defaults timeout: @config.timeout,
|
728
|
+
metadata: @config.metadata
|
594
729
|
|
595
|
-
|
596
|
-
|
730
|
+
@instances_stub.delete_access_config request, options do |result, response|
|
731
|
+
result = ::Gapic::Rest::BaseOperation.new result
|
732
|
+
yield result, response if block_given?
|
733
|
+
return result
|
734
|
+
end
|
597
735
|
rescue ::Faraday::Error => e
|
598
736
|
gapic_error = ::Gapic::Rest::Error.wrap_faraday_error e
|
599
737
|
raise ::Google::Cloud::Error.from_error(gapic_error)
|
@@ -626,18 +764,14 @@ module Google
|
|
626
764
|
# @param project [::String]
|
627
765
|
# Project ID for this request.
|
628
766
|
# @param request_id [::String]
|
629
|
-
# 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.
|
630
|
-
#
|
631
|
-
# 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.
|
632
|
-
#
|
633
|
-
# The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
|
767
|
+
# 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).
|
634
768
|
# @param zone [::String]
|
635
769
|
# The name of the zone for this request.
|
636
|
-
# @yield [result,
|
637
|
-
# @yieldparam result [::
|
770
|
+
# @yield [result, response] Access the result along with the Faraday response object
|
771
|
+
# @yieldparam result [::Gapic::Rest::BaseOperation]
|
638
772
|
# @yieldparam response [::Faraday::Response]
|
639
773
|
#
|
640
|
-
# @return [::
|
774
|
+
# @return [::Gapic::Rest::BaseOperation]
|
641
775
|
#
|
642
776
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
643
777
|
def detach_disk request, options = nil
|
@@ -649,26 +783,25 @@ module Google
|
|
649
783
|
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
650
784
|
|
651
785
|
# Customize the options with defaults
|
652
|
-
call_metadata =
|
786
|
+
call_metadata = @config.rpcs.detach_disk.metadata.to_h
|
653
787
|
|
654
788
|
# Set x-goog-api-client header
|
655
789
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
656
790
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
657
|
-
gapic_version: ::Google::Cloud::Compute::V1::VERSION
|
791
|
+
gapic_version: ::Google::Cloud::Compute::V1::VERSION,
|
792
|
+
transports_version_send: [:rest]
|
658
793
|
|
659
|
-
options.apply_defaults timeout: @config.timeout,
|
794
|
+
options.apply_defaults timeout: @config.rpcs.detach_disk.timeout,
|
660
795
|
metadata: call_metadata
|
661
796
|
|
662
|
-
|
663
|
-
|
664
|
-
uri: uri,
|
665
|
-
params: query_string_params,
|
666
|
-
options: options
|
667
|
-
)
|
668
|
-
result = ::Google::Cloud::Compute::V1::Operation.decode_json response.body, ignore_unknown_fields: true
|
797
|
+
options.apply_defaults timeout: @config.timeout,
|
798
|
+
metadata: @config.metadata
|
669
799
|
|
670
|
-
|
671
|
-
|
800
|
+
@instances_stub.detach_disk request, options do |result, response|
|
801
|
+
result = ::Gapic::Rest::BaseOperation.new result
|
802
|
+
yield result, response if block_given?
|
803
|
+
return result
|
804
|
+
end
|
672
805
|
rescue ::Faraday::Error => e
|
673
806
|
gapic_error = ::Gapic::Rest::Error.wrap_faraday_error e
|
674
807
|
raise ::Google::Cloud::Error.from_error(gapic_error)
|
@@ -700,7 +833,7 @@ module Google
|
|
700
833
|
# Project ID for this request.
|
701
834
|
# @param zone [::String]
|
702
835
|
# The name of the zone for this request.
|
703
|
-
# @yield [result,
|
836
|
+
# @yield [result, response] Access the result along with the Faraday response object
|
704
837
|
# @yieldparam result [::Google::Cloud::Compute::V1::Instance]
|
705
838
|
# @yieldparam response [::Faraday::Response]
|
706
839
|
#
|
@@ -716,25 +849,91 @@ module Google
|
|
716
849
|
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
717
850
|
|
718
851
|
# Customize the options with defaults
|
719
|
-
call_metadata =
|
852
|
+
call_metadata = @config.rpcs.get.metadata.to_h
|
720
853
|
|
721
854
|
# Set x-goog-api-client header
|
722
855
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
723
856
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
724
|
-
gapic_version: ::Google::Cloud::Compute::V1::VERSION
|
857
|
+
gapic_version: ::Google::Cloud::Compute::V1::VERSION,
|
858
|
+
transports_version_send: [:rest]
|
859
|
+
|
860
|
+
options.apply_defaults timeout: @config.rpcs.get.timeout,
|
861
|
+
metadata: call_metadata
|
725
862
|
|
726
863
|
options.apply_defaults timeout: @config.timeout,
|
864
|
+
metadata: @config.metadata
|
865
|
+
|
866
|
+
@instances_stub.get request, options do |result, response|
|
867
|
+
yield result, response if block_given?
|
868
|
+
return result
|
869
|
+
end
|
870
|
+
rescue ::Faraday::Error => e
|
871
|
+
gapic_error = ::Gapic::Rest::Error.wrap_faraday_error e
|
872
|
+
raise ::Google::Cloud::Error.from_error(gapic_error)
|
873
|
+
end
|
874
|
+
|
875
|
+
##
|
876
|
+
# Returns effective firewalls applied to an interface of the instance.
|
877
|
+
#
|
878
|
+
# @overload get_effective_firewalls(request, options = nil)
|
879
|
+
# Pass arguments to `get_effective_firewalls` via a request object, either of type
|
880
|
+
# {::Google::Cloud::Compute::V1::GetEffectiveFirewallsInstanceRequest} or an equivalent Hash.
|
881
|
+
#
|
882
|
+
# @param request [::Google::Cloud::Compute::V1::GetEffectiveFirewallsInstanceRequest, ::Hash]
|
883
|
+
# A request object representing the call parameters. Required. To specify no
|
884
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
885
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
886
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
887
|
+
# Note: currently retry functionality is not implemented. While it is possible
|
888
|
+
# to set it using ::Gapic::CallOptions, it will not be applied
|
889
|
+
#
|
890
|
+
# @overload get_effective_firewalls(instance: nil, network_interface: nil, project: nil, zone: nil)
|
891
|
+
# Pass arguments to `get_effective_firewalls` via keyword arguments. Note that at
|
892
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
893
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
894
|
+
#
|
895
|
+
# @param instance [::String]
|
896
|
+
# Name of the instance scoping this request.
|
897
|
+
# @param network_interface [::String]
|
898
|
+
# The name of the network interface to get the effective firewalls.
|
899
|
+
# @param project [::String]
|
900
|
+
# Project ID for this request.
|
901
|
+
# @param zone [::String]
|
902
|
+
# The name of the zone for this request.
|
903
|
+
# @yield [result, response] Access the result along with the Faraday response object
|
904
|
+
# @yieldparam result [::Google::Cloud::Compute::V1::InstancesGetEffectiveFirewallsResponse]
|
905
|
+
# @yieldparam response [::Faraday::Response]
|
906
|
+
#
|
907
|
+
# @return [::Google::Cloud::Compute::V1::InstancesGetEffectiveFirewallsResponse]
|
908
|
+
#
|
909
|
+
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
910
|
+
def get_effective_firewalls request, options = nil
|
911
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
912
|
+
|
913
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Compute::V1::GetEffectiveFirewallsInstanceRequest
|
914
|
+
|
915
|
+
# Converts hash and nil to an options object
|
916
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
917
|
+
|
918
|
+
# Customize the options with defaults
|
919
|
+
call_metadata = @config.rpcs.get_effective_firewalls.metadata.to_h
|
920
|
+
|
921
|
+
# Set x-goog-api-client header
|
922
|
+
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
923
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
924
|
+
gapic_version: ::Google::Cloud::Compute::V1::VERSION,
|
925
|
+
transports_version_send: [:rest]
|
926
|
+
|
927
|
+
options.apply_defaults timeout: @config.rpcs.get_effective_firewalls.timeout,
|
727
928
|
metadata: call_metadata
|
728
929
|
|
729
|
-
|
730
|
-
|
731
|
-
uri: uri,
|
732
|
-
options: options
|
733
|
-
)
|
734
|
-
result = ::Google::Cloud::Compute::V1::Instance.decode_json response.body, ignore_unknown_fields: true
|
930
|
+
options.apply_defaults timeout: @config.timeout,
|
931
|
+
metadata: @config.metadata
|
735
932
|
|
736
|
-
|
737
|
-
|
933
|
+
@instances_stub.get_effective_firewalls request, options do |result, response|
|
934
|
+
yield result, response if block_given?
|
935
|
+
return result
|
936
|
+
end
|
738
937
|
rescue ::Faraday::Error => e
|
739
938
|
gapic_error = ::Gapic::Rest::Error.wrap_faraday_error e
|
740
939
|
raise ::Google::Cloud::Error.from_error(gapic_error)
|
@@ -770,7 +969,7 @@ module Google
|
|
770
969
|
# Specifies the key for the guest attributes entry.
|
771
970
|
# @param zone [::String]
|
772
971
|
# The name of the zone for this request.
|
773
|
-
# @yield [result,
|
972
|
+
# @yield [result, response] Access the result along with the Faraday response object
|
774
973
|
# @yieldparam result [::Google::Cloud::Compute::V1::GuestAttributes]
|
775
974
|
# @yieldparam response [::Faraday::Response]
|
776
975
|
#
|
@@ -786,26 +985,24 @@ module Google
|
|
786
985
|
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
787
986
|
|
788
987
|
# Customize the options with defaults
|
789
|
-
call_metadata =
|
988
|
+
call_metadata = @config.rpcs.get_guest_attributes.metadata.to_h
|
790
989
|
|
791
990
|
# Set x-goog-api-client header
|
792
991
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
793
992
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
794
|
-
gapic_version: ::Google::Cloud::Compute::V1::VERSION
|
993
|
+
gapic_version: ::Google::Cloud::Compute::V1::VERSION,
|
994
|
+
transports_version_send: [:rest]
|
795
995
|
|
796
|
-
options.apply_defaults timeout: @config.timeout,
|
996
|
+
options.apply_defaults timeout: @config.rpcs.get_guest_attributes.timeout,
|
797
997
|
metadata: call_metadata
|
798
998
|
|
799
|
-
|
800
|
-
|
801
|
-
uri: uri,
|
802
|
-
params: query_string_params,
|
803
|
-
options: options
|
804
|
-
)
|
805
|
-
result = ::Google::Cloud::Compute::V1::GuestAttributes.decode_json response.body, ignore_unknown_fields: true
|
999
|
+
options.apply_defaults timeout: @config.timeout,
|
1000
|
+
metadata: @config.metadata
|
806
1001
|
|
807
|
-
|
808
|
-
|
1002
|
+
@instances_stub.get_guest_attributes request, options do |result, response|
|
1003
|
+
yield result, response if block_given?
|
1004
|
+
return result
|
1005
|
+
end
|
809
1006
|
rescue ::Faraday::Error => e
|
810
1007
|
gapic_error = ::Gapic::Rest::Error.wrap_faraday_error e
|
811
1008
|
raise ::Google::Cloud::Error.from_error(gapic_error)
|
@@ -839,7 +1036,7 @@ module Google
|
|
839
1036
|
# Name or id of the resource for this request.
|
840
1037
|
# @param zone [::String]
|
841
1038
|
# The name of the zone for this request.
|
842
|
-
# @yield [result,
|
1039
|
+
# @yield [result, response] Access the result along with the Faraday response object
|
843
1040
|
# @yieldparam result [::Google::Cloud::Compute::V1::Policy]
|
844
1041
|
# @yieldparam response [::Faraday::Response]
|
845
1042
|
#
|
@@ -855,26 +1052,24 @@ module Google
|
|
855
1052
|
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
856
1053
|
|
857
1054
|
# Customize the options with defaults
|
858
|
-
call_metadata =
|
1055
|
+
call_metadata = @config.rpcs.get_iam_policy.metadata.to_h
|
859
1056
|
|
860
1057
|
# Set x-goog-api-client header
|
861
1058
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
862
1059
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
863
|
-
gapic_version: ::Google::Cloud::Compute::V1::VERSION
|
1060
|
+
gapic_version: ::Google::Cloud::Compute::V1::VERSION,
|
1061
|
+
transports_version_send: [:rest]
|
864
1062
|
|
865
|
-
options.apply_defaults timeout: @config.timeout,
|
1063
|
+
options.apply_defaults timeout: @config.rpcs.get_iam_policy.timeout,
|
866
1064
|
metadata: call_metadata
|
867
1065
|
|
868
|
-
|
869
|
-
|
870
|
-
uri: uri,
|
871
|
-
params: query_string_params,
|
872
|
-
options: options
|
873
|
-
)
|
874
|
-
result = ::Google::Cloud::Compute::V1::Policy.decode_json response.body, ignore_unknown_fields: true
|
1066
|
+
options.apply_defaults timeout: @config.timeout,
|
1067
|
+
metadata: @config.metadata
|
875
1068
|
|
876
|
-
|
877
|
-
|
1069
|
+
@instances_stub.get_iam_policy request, options do |result, response|
|
1070
|
+
yield result, response if block_given?
|
1071
|
+
return result
|
1072
|
+
end
|
878
1073
|
rescue ::Faraday::Error => e
|
879
1074
|
gapic_error = ::Gapic::Rest::Error.wrap_faraday_error e
|
880
1075
|
raise ::Google::Cloud::Error.from_error(gapic_error)
|
@@ -906,7 +1101,7 @@ module Google
|
|
906
1101
|
# Project ID for this request.
|
907
1102
|
# @param zone [::String]
|
908
1103
|
# The name of the zone for this request.
|
909
|
-
# @yield [result,
|
1104
|
+
# @yield [result, response] Access the result along with the Faraday response object
|
910
1105
|
# @yieldparam result [::Google::Cloud::Compute::V1::Screenshot]
|
911
1106
|
# @yieldparam response [::Faraday::Response]
|
912
1107
|
#
|
@@ -922,25 +1117,24 @@ module Google
|
|
922
1117
|
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
923
1118
|
|
924
1119
|
# Customize the options with defaults
|
925
|
-
call_metadata =
|
1120
|
+
call_metadata = @config.rpcs.get_screenshot.metadata.to_h
|
926
1121
|
|
927
1122
|
# Set x-goog-api-client header
|
928
1123
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
929
1124
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
930
|
-
gapic_version: ::Google::Cloud::Compute::V1::VERSION
|
1125
|
+
gapic_version: ::Google::Cloud::Compute::V1::VERSION,
|
1126
|
+
transports_version_send: [:rest]
|
931
1127
|
|
932
|
-
options.apply_defaults timeout: @config.timeout,
|
1128
|
+
options.apply_defaults timeout: @config.rpcs.get_screenshot.timeout,
|
933
1129
|
metadata: call_metadata
|
934
1130
|
|
935
|
-
|
936
|
-
|
937
|
-
uri: uri,
|
938
|
-
options: options
|
939
|
-
)
|
940
|
-
result = ::Google::Cloud::Compute::V1::Screenshot.decode_json response.body, ignore_unknown_fields: true
|
1131
|
+
options.apply_defaults timeout: @config.timeout,
|
1132
|
+
metadata: @config.metadata
|
941
1133
|
|
942
|
-
|
943
|
-
|
1134
|
+
@instances_stub.get_screenshot request, options do |result, response|
|
1135
|
+
yield result, response if block_given?
|
1136
|
+
return result
|
1137
|
+
end
|
944
1138
|
rescue ::Faraday::Error => e
|
945
1139
|
gapic_error = ::Gapic::Rest::Error.wrap_faraday_error e
|
946
1140
|
raise ::Google::Cloud::Error.from_error(gapic_error)
|
@@ -972,15 +1166,11 @@ module Google
|
|
972
1166
|
# Specifies which COM or serial port to retrieve data from.
|
973
1167
|
# @param project [::String]
|
974
1168
|
# Project ID for this request.
|
975
|
-
# @param start [::
|
976
|
-
# 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`.
|
977
|
-
#
|
978
|
-
# 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.
|
979
|
-
#
|
980
|
-
# 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.
|
1169
|
+
# @param start [::Integer]
|
1170
|
+
# 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.
|
981
1171
|
# @param zone [::String]
|
982
1172
|
# The name of the zone for this request.
|
983
|
-
# @yield [result,
|
1173
|
+
# @yield [result, response] Access the result along with the Faraday response object
|
984
1174
|
# @yieldparam result [::Google::Cloud::Compute::V1::SerialPortOutput]
|
985
1175
|
# @yieldparam response [::Faraday::Response]
|
986
1176
|
#
|
@@ -996,26 +1186,24 @@ module Google
|
|
996
1186
|
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
997
1187
|
|
998
1188
|
# Customize the options with defaults
|
999
|
-
call_metadata =
|
1189
|
+
call_metadata = @config.rpcs.get_serial_port_output.metadata.to_h
|
1000
1190
|
|
1001
1191
|
# Set x-goog-api-client header
|
1002
1192
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
1003
1193
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
1004
|
-
gapic_version: ::Google::Cloud::Compute::V1::VERSION
|
1194
|
+
gapic_version: ::Google::Cloud::Compute::V1::VERSION,
|
1195
|
+
transports_version_send: [:rest]
|
1005
1196
|
|
1006
|
-
options.apply_defaults timeout: @config.timeout,
|
1197
|
+
options.apply_defaults timeout: @config.rpcs.get_serial_port_output.timeout,
|
1007
1198
|
metadata: call_metadata
|
1008
1199
|
|
1009
|
-
|
1010
|
-
|
1011
|
-
uri: uri,
|
1012
|
-
params: query_string_params,
|
1013
|
-
options: options
|
1014
|
-
)
|
1015
|
-
result = ::Google::Cloud::Compute::V1::SerialPortOutput.decode_json response.body, ignore_unknown_fields: true
|
1200
|
+
options.apply_defaults timeout: @config.timeout,
|
1201
|
+
metadata: @config.metadata
|
1016
1202
|
|
1017
|
-
|
1018
|
-
|
1203
|
+
@instances_stub.get_serial_port_output request, options do |result, response|
|
1204
|
+
yield result, response if block_given?
|
1205
|
+
return result
|
1206
|
+
end
|
1019
1207
|
rescue ::Faraday::Error => e
|
1020
1208
|
gapic_error = ::Gapic::Rest::Error.wrap_faraday_error e
|
1021
1209
|
raise ::Google::Cloud::Error.from_error(gapic_error)
|
@@ -1047,7 +1235,7 @@ module Google
|
|
1047
1235
|
# Project ID for this request.
|
1048
1236
|
# @param zone [::String]
|
1049
1237
|
# The name of the zone for this request.
|
1050
|
-
# @yield [result,
|
1238
|
+
# @yield [result, response] Access the result along with the Faraday response object
|
1051
1239
|
# @yieldparam result [::Google::Cloud::Compute::V1::ShieldedInstanceIdentity]
|
1052
1240
|
# @yieldparam response [::Faraday::Response]
|
1053
1241
|
#
|
@@ -1063,25 +1251,24 @@ module Google
|
|
1063
1251
|
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
1064
1252
|
|
1065
1253
|
# Customize the options with defaults
|
1066
|
-
call_metadata =
|
1254
|
+
call_metadata = @config.rpcs.get_shielded_instance_identity.metadata.to_h
|
1067
1255
|
|
1068
1256
|
# Set x-goog-api-client header
|
1069
1257
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
1070
1258
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
1071
|
-
gapic_version: ::Google::Cloud::Compute::V1::VERSION
|
1259
|
+
gapic_version: ::Google::Cloud::Compute::V1::VERSION,
|
1260
|
+
transports_version_send: [:rest]
|
1072
1261
|
|
1073
|
-
options.apply_defaults timeout: @config.timeout,
|
1262
|
+
options.apply_defaults timeout: @config.rpcs.get_shielded_instance_identity.timeout,
|
1074
1263
|
metadata: call_metadata
|
1075
1264
|
|
1076
|
-
|
1077
|
-
|
1078
|
-
uri: uri,
|
1079
|
-
options: options
|
1080
|
-
)
|
1081
|
-
result = ::Google::Cloud::Compute::V1::ShieldedInstanceIdentity.decode_json response.body, ignore_unknown_fields: true
|
1265
|
+
options.apply_defaults timeout: @config.timeout,
|
1266
|
+
metadata: @config.metadata
|
1082
1267
|
|
1083
|
-
|
1084
|
-
|
1268
|
+
@instances_stub.get_shielded_instance_identity request, options do |result, response|
|
1269
|
+
yield result, response if block_given?
|
1270
|
+
return result
|
1271
|
+
end
|
1085
1272
|
rescue ::Faraday::Error => e
|
1086
1273
|
gapic_error = ::Gapic::Rest::Error.wrap_faraday_error e
|
1087
1274
|
raise ::Google::Cloud::Error.from_error(gapic_error)
|
@@ -1112,25 +1299,16 @@ module Google
|
|
1112
1299
|
# @param project [::String]
|
1113
1300
|
# Project ID for this request.
|
1114
1301
|
# @param request_id [::String]
|
1115
|
-
# 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.
|
1116
|
-
#
|
1117
|
-
# 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.
|
1118
|
-
#
|
1119
|
-
# The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
|
1302
|
+
# 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).
|
1120
1303
|
# @param source_instance_template [::String]
|
1121
|
-
# Specifies instance template to create the instance.
|
1122
|
-
#
|
1123
|
-
# This field is optional. It can be a full or partial URL. For example, the following are all valid URLs to an instance template:
|
1124
|
-
# - https://www.googleapis.com/compute/v1/projects/project/global/instanceTemplates/instanceTemplate
|
1125
|
-
# - projects/project/global/instanceTemplates/instanceTemplate
|
1126
|
-
# - global/instanceTemplates/instanceTemplate
|
1304
|
+
# Specifies instance template to create the instance. This field is optional. It can be a full or partial URL. For example, the following are all valid URLs to an instance template: - https://www.googleapis.com/compute/v1/projects/project /global/instanceTemplates/instanceTemplate - projects/project/global/instanceTemplates/instanceTemplate - global/instanceTemplates/instanceTemplate
|
1127
1305
|
# @param zone [::String]
|
1128
1306
|
# The name of the zone for this request.
|
1129
|
-
# @yield [result,
|
1130
|
-
# @yieldparam result [::
|
1307
|
+
# @yield [result, response] Access the result along with the Faraday response object
|
1308
|
+
# @yieldparam result [::Gapic::Rest::BaseOperation]
|
1131
1309
|
# @yieldparam response [::Faraday::Response]
|
1132
1310
|
#
|
1133
|
-
# @return [::
|
1311
|
+
# @return [::Gapic::Rest::BaseOperation]
|
1134
1312
|
#
|
1135
1313
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
1136
1314
|
def insert request, options = nil
|
@@ -1142,26 +1320,25 @@ module Google
|
|
1142
1320
|
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
1143
1321
|
|
1144
1322
|
# Customize the options with defaults
|
1145
|
-
call_metadata =
|
1323
|
+
call_metadata = @config.rpcs.insert.metadata.to_h
|
1146
1324
|
|
1147
1325
|
# Set x-goog-api-client header
|
1148
1326
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
1149
1327
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
1150
|
-
gapic_version: ::Google::Cloud::Compute::V1::VERSION
|
1328
|
+
gapic_version: ::Google::Cloud::Compute::V1::VERSION,
|
1329
|
+
transports_version_send: [:rest]
|
1151
1330
|
|
1152
|
-
options.apply_defaults timeout: @config.timeout,
|
1331
|
+
options.apply_defaults timeout: @config.rpcs.insert.timeout,
|
1153
1332
|
metadata: call_metadata
|
1154
1333
|
|
1155
|
-
|
1156
|
-
|
1157
|
-
uri: uri,
|
1158
|
-
body: body,
|
1159
|
-
options: options
|
1160
|
-
)
|
1161
|
-
result = ::Google::Cloud::Compute::V1::Operation.decode_json response.body, ignore_unknown_fields: true
|
1334
|
+
options.apply_defaults timeout: @config.timeout,
|
1335
|
+
metadata: @config.metadata
|
1162
1336
|
|
1163
|
-
|
1164
|
-
|
1337
|
+
@instances_stub.insert request, options do |result, response|
|
1338
|
+
result = ::Gapic::Rest::BaseOperation.new result
|
1339
|
+
yield result, response if block_given?
|
1340
|
+
return result
|
1341
|
+
end
|
1165
1342
|
rescue ::Faraday::Error => e
|
1166
1343
|
gapic_error = ::Gapic::Rest::Error.wrap_faraday_error e
|
1167
1344
|
raise ::Google::Cloud::Error.from_error(gapic_error)
|
@@ -1188,34 +1365,24 @@ module Google
|
|
1188
1365
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
1189
1366
|
#
|
1190
1367
|
# @param filter [::String]
|
1191
|
-
# A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison operator must be either `=`, `!=`, `>`, or `<`.
|
1192
|
-
#
|
1193
|
-
# For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`.
|
1194
|
-
#
|
1195
|
-
# You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels.
|
1196
|
-
#
|
1197
|
-
# To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ```
|
1368
|
+
# A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison operator must be either `=`, `!=`, `>`, or `<`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ```
|
1198
1369
|
# @param max_results [::Integer]
|
1199
1370
|
# The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`)
|
1200
1371
|
# @param order_by [::String]
|
1201
|
-
# Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name.
|
1202
|
-
#
|
1203
|
-
# You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first.
|
1204
|
-
#
|
1205
|
-
# Currently, only sorting by `name` or `creationTimestamp desc` is supported.
|
1372
|
+
# Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported.
|
1206
1373
|
# @param page_token [::String]
|
1207
1374
|
# Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results.
|
1208
1375
|
# @param project [::String]
|
1209
1376
|
# Project ID for this request.
|
1210
1377
|
# @param return_partial_success [::Boolean]
|
1211
|
-
# Opt-in for partial success behavior which provides partial results in case of failure. The default value is false
|
1378
|
+
# Opt-in for partial success behavior which provides partial results in case of failure. The default value is false.
|
1212
1379
|
# @param zone [::String]
|
1213
1380
|
# The name of the zone for this request.
|
1214
|
-
# @yield [result,
|
1215
|
-
# @yieldparam result [::Google::Cloud::Compute::V1::
|
1381
|
+
# @yield [result, response] Access the result along with the Faraday response object
|
1382
|
+
# @yieldparam result [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Compute::V1::Instance>]
|
1216
1383
|
# @yieldparam response [::Faraday::Response]
|
1217
1384
|
#
|
1218
|
-
# @return [::Google::Cloud::Compute::V1::
|
1385
|
+
# @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Compute::V1::Instance>]
|
1219
1386
|
#
|
1220
1387
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
1221
1388
|
def list request, options = nil
|
@@ -1227,26 +1394,25 @@ module Google
|
|
1227
1394
|
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
1228
1395
|
|
1229
1396
|
# Customize the options with defaults
|
1230
|
-
call_metadata =
|
1397
|
+
call_metadata = @config.rpcs.list.metadata.to_h
|
1231
1398
|
|
1232
1399
|
# Set x-goog-api-client header
|
1233
1400
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
1234
1401
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
1235
|
-
gapic_version: ::Google::Cloud::Compute::V1::VERSION
|
1402
|
+
gapic_version: ::Google::Cloud::Compute::V1::VERSION,
|
1403
|
+
transports_version_send: [:rest]
|
1236
1404
|
|
1237
|
-
options.apply_defaults timeout: @config.timeout,
|
1405
|
+
options.apply_defaults timeout: @config.rpcs.list.timeout,
|
1238
1406
|
metadata: call_metadata
|
1239
1407
|
|
1240
|
-
|
1241
|
-
|
1242
|
-
uri: uri,
|
1243
|
-
params: query_string_params,
|
1244
|
-
options: options
|
1245
|
-
)
|
1246
|
-
result = ::Google::Cloud::Compute::V1::InstanceList.decode_json response.body, ignore_unknown_fields: true
|
1408
|
+
options.apply_defaults timeout: @config.timeout,
|
1409
|
+
metadata: @config.metadata
|
1247
1410
|
|
1248
|
-
|
1249
|
-
|
1411
|
+
@instances_stub.list request, options do |result, response|
|
1412
|
+
result = ::Gapic::Rest::PagedEnumerable.new @instances_stub, :list, "items", request, result, options
|
1413
|
+
yield result, response if block_given?
|
1414
|
+
return result
|
1415
|
+
end
|
1250
1416
|
rescue ::Faraday::Error => e
|
1251
1417
|
gapic_error = ::Gapic::Rest::Error.wrap_faraday_error e
|
1252
1418
|
raise ::Google::Cloud::Error.from_error(gapic_error)
|
@@ -1273,36 +1439,26 @@ module Google
|
|
1273
1439
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
1274
1440
|
#
|
1275
1441
|
# @param filter [::String]
|
1276
|
-
# A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison operator must be either `=`, `!=`, `>`, or `<`.
|
1277
|
-
#
|
1278
|
-
# For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`.
|
1279
|
-
#
|
1280
|
-
# You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels.
|
1281
|
-
#
|
1282
|
-
# To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ```
|
1442
|
+
# A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison operator must be either `=`, `!=`, `>`, or `<`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ```
|
1283
1443
|
# @param instance [::String]
|
1284
1444
|
# Name of the target instance scoping this request, or '-' if the request should span over all instances in the container.
|
1285
1445
|
# @param max_results [::Integer]
|
1286
1446
|
# The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`)
|
1287
1447
|
# @param order_by [::String]
|
1288
|
-
# Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name.
|
1289
|
-
#
|
1290
|
-
# You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first.
|
1291
|
-
#
|
1292
|
-
# Currently, only sorting by `name` or `creationTimestamp desc` is supported.
|
1448
|
+
# Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported.
|
1293
1449
|
# @param page_token [::String]
|
1294
1450
|
# Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results.
|
1295
1451
|
# @param project [::String]
|
1296
1452
|
# Project ID for this request.
|
1297
1453
|
# @param return_partial_success [::Boolean]
|
1298
|
-
# Opt-in for partial success behavior which provides partial results in case of failure. The default value is false
|
1454
|
+
# Opt-in for partial success behavior which provides partial results in case of failure. The default value is false.
|
1299
1455
|
# @param zone [::String]
|
1300
1456
|
# The name of the zone for this request.
|
1301
|
-
# @yield [result,
|
1302
|
-
# @yieldparam result [::Google::Cloud::Compute::V1::
|
1457
|
+
# @yield [result, response] Access the result along with the Faraday response object
|
1458
|
+
# @yieldparam result [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Compute::V1::Reference>]
|
1303
1459
|
# @yieldparam response [::Faraday::Response]
|
1304
1460
|
#
|
1305
|
-
# @return [::Google::Cloud::Compute::V1::
|
1461
|
+
# @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Compute::V1::Reference>]
|
1306
1462
|
#
|
1307
1463
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
1308
1464
|
def list_referrers request, options = nil
|
@@ -1314,26 +1470,25 @@ module Google
|
|
1314
1470
|
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
1315
1471
|
|
1316
1472
|
# Customize the options with defaults
|
1317
|
-
call_metadata =
|
1473
|
+
call_metadata = @config.rpcs.list_referrers.metadata.to_h
|
1318
1474
|
|
1319
1475
|
# Set x-goog-api-client header
|
1320
1476
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
1321
1477
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
1322
|
-
gapic_version: ::Google::Cloud::Compute::V1::VERSION
|
1478
|
+
gapic_version: ::Google::Cloud::Compute::V1::VERSION,
|
1479
|
+
transports_version_send: [:rest]
|
1323
1480
|
|
1324
|
-
options.apply_defaults timeout: @config.timeout,
|
1481
|
+
options.apply_defaults timeout: @config.rpcs.list_referrers.timeout,
|
1325
1482
|
metadata: call_metadata
|
1326
1483
|
|
1327
|
-
|
1328
|
-
|
1329
|
-
uri: uri,
|
1330
|
-
params: query_string_params,
|
1331
|
-
options: options
|
1332
|
-
)
|
1333
|
-
result = ::Google::Cloud::Compute::V1::InstanceListReferrers.decode_json response.body, ignore_unknown_fields: true
|
1484
|
+
options.apply_defaults timeout: @config.timeout,
|
1485
|
+
metadata: @config.metadata
|
1334
1486
|
|
1335
|
-
|
1336
|
-
|
1487
|
+
@instances_stub.list_referrers request, options do |result, response|
|
1488
|
+
result = ::Gapic::Rest::PagedEnumerable.new @instances_stub, :list_referrers, "items", request, result, options
|
1489
|
+
yield result, response if block_given?
|
1490
|
+
return result
|
1491
|
+
end
|
1337
1492
|
rescue ::Faraday::Error => e
|
1338
1493
|
gapic_error = ::Gapic::Rest::Error.wrap_faraday_error e
|
1339
1494
|
raise ::Google::Cloud::Error.from_error(gapic_error)
|
@@ -1366,18 +1521,14 @@ module Google
|
|
1366
1521
|
# @param project [::String]
|
1367
1522
|
# Project ID for this request.
|
1368
1523
|
# @param request_id [::String]
|
1369
|
-
# 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.
|
1370
|
-
#
|
1371
|
-
# 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.
|
1372
|
-
#
|
1373
|
-
# The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
|
1524
|
+
# 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).
|
1374
1525
|
# @param zone [::String]
|
1375
1526
|
# The name of the zone for this request.
|
1376
|
-
# @yield [result,
|
1377
|
-
# @yieldparam result [::
|
1527
|
+
# @yield [result, response] Access the result along with the Faraday response object
|
1528
|
+
# @yieldparam result [::Gapic::Rest::BaseOperation]
|
1378
1529
|
# @yieldparam response [::Faraday::Response]
|
1379
1530
|
#
|
1380
|
-
# @return [::
|
1531
|
+
# @return [::Gapic::Rest::BaseOperation]
|
1381
1532
|
#
|
1382
1533
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
1383
1534
|
def remove_resource_policies request, options = nil
|
@@ -1389,26 +1540,25 @@ module Google
|
|
1389
1540
|
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
1390
1541
|
|
1391
1542
|
# Customize the options with defaults
|
1392
|
-
call_metadata =
|
1543
|
+
call_metadata = @config.rpcs.remove_resource_policies.metadata.to_h
|
1393
1544
|
|
1394
1545
|
# Set x-goog-api-client header
|
1395
1546
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
1396
1547
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
1397
|
-
gapic_version: ::Google::Cloud::Compute::V1::VERSION
|
1548
|
+
gapic_version: ::Google::Cloud::Compute::V1::VERSION,
|
1549
|
+
transports_version_send: [:rest]
|
1398
1550
|
|
1399
|
-
options.apply_defaults timeout: @config.timeout,
|
1551
|
+
options.apply_defaults timeout: @config.rpcs.remove_resource_policies.timeout,
|
1400
1552
|
metadata: call_metadata
|
1401
1553
|
|
1402
|
-
|
1403
|
-
|
1404
|
-
uri: uri,
|
1405
|
-
body: body,
|
1406
|
-
options: options
|
1407
|
-
)
|
1408
|
-
result = ::Google::Cloud::Compute::V1::Operation.decode_json response.body, ignore_unknown_fields: true
|
1554
|
+
options.apply_defaults timeout: @config.timeout,
|
1555
|
+
metadata: @config.metadata
|
1409
1556
|
|
1410
|
-
|
1411
|
-
|
1557
|
+
@instances_stub.remove_resource_policies request, options do |result, response|
|
1558
|
+
result = ::Gapic::Rest::BaseOperation.new result
|
1559
|
+
yield result, response if block_given?
|
1560
|
+
return result
|
1561
|
+
end
|
1412
1562
|
rescue ::Faraday::Error => e
|
1413
1563
|
gapic_error = ::Gapic::Rest::Error.wrap_faraday_error e
|
1414
1564
|
raise ::Google::Cloud::Error.from_error(gapic_error)
|
@@ -1439,18 +1589,14 @@ module Google
|
|
1439
1589
|
# @param project [::String]
|
1440
1590
|
# Project ID for this request.
|
1441
1591
|
# @param request_id [::String]
|
1442
|
-
# 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.
|
1443
|
-
#
|
1444
|
-
# 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.
|
1445
|
-
#
|
1446
|
-
# The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
|
1592
|
+
# 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).
|
1447
1593
|
# @param zone [::String]
|
1448
1594
|
# The name of the zone for this request.
|
1449
|
-
# @yield [result,
|
1450
|
-
# @yieldparam result [::
|
1595
|
+
# @yield [result, response] Access the result along with the Faraday response object
|
1596
|
+
# @yieldparam result [::Gapic::Rest::BaseOperation]
|
1451
1597
|
# @yieldparam response [::Faraday::Response]
|
1452
1598
|
#
|
1453
|
-
# @return [::
|
1599
|
+
# @return [::Gapic::Rest::BaseOperation]
|
1454
1600
|
#
|
1455
1601
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
1456
1602
|
def reset request, options = nil
|
@@ -1462,26 +1608,90 @@ module Google
|
|
1462
1608
|
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
1463
1609
|
|
1464
1610
|
# Customize the options with defaults
|
1465
|
-
call_metadata =
|
1611
|
+
call_metadata = @config.rpcs.reset.metadata.to_h
|
1466
1612
|
|
1467
1613
|
# Set x-goog-api-client header
|
1468
1614
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
1469
1615
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
1470
|
-
gapic_version: ::Google::Cloud::Compute::V1::VERSION
|
1616
|
+
gapic_version: ::Google::Cloud::Compute::V1::VERSION,
|
1617
|
+
transports_version_send: [:rest]
|
1618
|
+
|
1619
|
+
options.apply_defaults timeout: @config.rpcs.reset.timeout,
|
1620
|
+
metadata: call_metadata
|
1471
1621
|
|
1472
1622
|
options.apply_defaults timeout: @config.timeout,
|
1623
|
+
metadata: @config.metadata
|
1624
|
+
|
1625
|
+
@instances_stub.reset request, options do |result, response|
|
1626
|
+
result = ::Gapic::Rest::BaseOperation.new result
|
1627
|
+
yield result, response if block_given?
|
1628
|
+
return result
|
1629
|
+
end
|
1630
|
+
rescue ::Faraday::Error => e
|
1631
|
+
gapic_error = ::Gapic::Rest::Error.wrap_faraday_error e
|
1632
|
+
raise ::Google::Cloud::Error.from_error(gapic_error)
|
1633
|
+
end
|
1634
|
+
|
1635
|
+
##
|
1636
|
+
# Sends diagnostic interrupt to the instance.
|
1637
|
+
#
|
1638
|
+
# @overload send_diagnostic_interrupt(request, options = nil)
|
1639
|
+
# Pass arguments to `send_diagnostic_interrupt` via a request object, either of type
|
1640
|
+
# {::Google::Cloud::Compute::V1::SendDiagnosticInterruptInstanceRequest} or an equivalent Hash.
|
1641
|
+
#
|
1642
|
+
# @param request [::Google::Cloud::Compute::V1::SendDiagnosticInterruptInstanceRequest, ::Hash]
|
1643
|
+
# A request object representing the call parameters. Required. To specify no
|
1644
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
1645
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
1646
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
1647
|
+
# Note: currently retry functionality is not implemented. While it is possible
|
1648
|
+
# to set it using ::Gapic::CallOptions, it will not be applied
|
1649
|
+
#
|
1650
|
+
# @overload send_diagnostic_interrupt(instance: nil, project: nil, zone: nil)
|
1651
|
+
# Pass arguments to `send_diagnostic_interrupt` via keyword arguments. Note that at
|
1652
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
1653
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
1654
|
+
#
|
1655
|
+
# @param instance [::String]
|
1656
|
+
# Name of the instance scoping this request.
|
1657
|
+
# @param project [::String]
|
1658
|
+
# Project ID for this request.
|
1659
|
+
# @param zone [::String]
|
1660
|
+
# The name of the zone for this request.
|
1661
|
+
# @yield [result, response] Access the result along with the Faraday response object
|
1662
|
+
# @yieldparam result [::Google::Cloud::Compute::V1::SendDiagnosticInterruptInstanceResponse]
|
1663
|
+
# @yieldparam response [::Faraday::Response]
|
1664
|
+
#
|
1665
|
+
# @return [::Google::Cloud::Compute::V1::SendDiagnosticInterruptInstanceResponse]
|
1666
|
+
#
|
1667
|
+
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
1668
|
+
def send_diagnostic_interrupt request, options = nil
|
1669
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
1670
|
+
|
1671
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Compute::V1::SendDiagnosticInterruptInstanceRequest
|
1672
|
+
|
1673
|
+
# Converts hash and nil to an options object
|
1674
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
1675
|
+
|
1676
|
+
# Customize the options with defaults
|
1677
|
+
call_metadata = @config.rpcs.send_diagnostic_interrupt.metadata.to_h
|
1678
|
+
|
1679
|
+
# Set x-goog-api-client header
|
1680
|
+
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
1681
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
1682
|
+
gapic_version: ::Google::Cloud::Compute::V1::VERSION,
|
1683
|
+
transports_version_send: [:rest]
|
1684
|
+
|
1685
|
+
options.apply_defaults timeout: @config.rpcs.send_diagnostic_interrupt.timeout,
|
1473
1686
|
metadata: call_metadata
|
1474
1687
|
|
1475
|
-
|
1476
|
-
|
1477
|
-
uri: uri,
|
1478
|
-
params: query_string_params,
|
1479
|
-
options: options
|
1480
|
-
)
|
1481
|
-
result = ::Google::Cloud::Compute::V1::Operation.decode_json response.body, ignore_unknown_fields: true
|
1688
|
+
options.apply_defaults timeout: @config.timeout,
|
1689
|
+
metadata: @config.metadata
|
1482
1690
|
|
1483
|
-
|
1484
|
-
|
1691
|
+
@instances_stub.send_diagnostic_interrupt request, options do |result, response|
|
1692
|
+
yield result, response if block_given?
|
1693
|
+
return result
|
1694
|
+
end
|
1485
1695
|
rescue ::Faraday::Error => e
|
1486
1696
|
gapic_error = ::Gapic::Rest::Error.wrap_faraday_error e
|
1487
1697
|
raise ::Google::Cloud::Error.from_error(gapic_error)
|
@@ -1512,20 +1722,16 @@ module Google
|
|
1512
1722
|
# @param project [::String]
|
1513
1723
|
# Project ID for this request.
|
1514
1724
|
# @param request_id [::String]
|
1515
|
-
# 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.
|
1516
|
-
#
|
1517
|
-
# 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.
|
1518
|
-
#
|
1519
|
-
# The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
|
1725
|
+
# 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).
|
1520
1726
|
# @param resource [::String]
|
1521
1727
|
# Name or id of the resource for this request.
|
1522
1728
|
# @param zone [::String]
|
1523
1729
|
# The name of the zone for this request.
|
1524
|
-
# @yield [result,
|
1525
|
-
# @yieldparam result [::
|
1730
|
+
# @yield [result, response] Access the result along with the Faraday response object
|
1731
|
+
# @yieldparam result [::Gapic::Rest::BaseOperation]
|
1526
1732
|
# @yieldparam response [::Faraday::Response]
|
1527
1733
|
#
|
1528
|
-
# @return [::
|
1734
|
+
# @return [::Gapic::Rest::BaseOperation]
|
1529
1735
|
#
|
1530
1736
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
1531
1737
|
def set_deletion_protection request, options = nil
|
@@ -1537,26 +1743,25 @@ module Google
|
|
1537
1743
|
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
1538
1744
|
|
1539
1745
|
# Customize the options with defaults
|
1540
|
-
call_metadata =
|
1746
|
+
call_metadata = @config.rpcs.set_deletion_protection.metadata.to_h
|
1541
1747
|
|
1542
1748
|
# Set x-goog-api-client header
|
1543
1749
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
1544
1750
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
1545
|
-
gapic_version: ::Google::Cloud::Compute::V1::VERSION
|
1751
|
+
gapic_version: ::Google::Cloud::Compute::V1::VERSION,
|
1752
|
+
transports_version_send: [:rest]
|
1546
1753
|
|
1547
|
-
options.apply_defaults timeout: @config.timeout,
|
1754
|
+
options.apply_defaults timeout: @config.rpcs.set_deletion_protection.timeout,
|
1548
1755
|
metadata: call_metadata
|
1549
1756
|
|
1550
|
-
|
1551
|
-
|
1552
|
-
uri: uri,
|
1553
|
-
params: query_string_params,
|
1554
|
-
options: options
|
1555
|
-
)
|
1556
|
-
result = ::Google::Cloud::Compute::V1::Operation.decode_json response.body, ignore_unknown_fields: true
|
1757
|
+
options.apply_defaults timeout: @config.timeout,
|
1758
|
+
metadata: @config.metadata
|
1557
1759
|
|
1558
|
-
|
1559
|
-
|
1760
|
+
@instances_stub.set_deletion_protection request, options do |result, response|
|
1761
|
+
result = ::Gapic::Rest::BaseOperation.new result
|
1762
|
+
yield result, response if block_given?
|
1763
|
+
return result
|
1764
|
+
end
|
1560
1765
|
rescue ::Faraday::Error => e
|
1561
1766
|
gapic_error = ::Gapic::Rest::Error.wrap_faraday_error e
|
1562
1767
|
raise ::Google::Cloud::Error.from_error(gapic_error)
|
@@ -1591,18 +1796,14 @@ module Google
|
|
1591
1796
|
# @param project [::String]
|
1592
1797
|
# Project ID for this request.
|
1593
1798
|
# @param request_id [::String]
|
1594
|
-
# 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.
|
1595
|
-
#
|
1596
|
-
# 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.
|
1597
|
-
#
|
1598
|
-
# The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
|
1799
|
+
# 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).
|
1599
1800
|
# @param zone [::String]
|
1600
1801
|
# The name of the zone for this request.
|
1601
|
-
# @yield [result,
|
1602
|
-
# @yieldparam result [::
|
1802
|
+
# @yield [result, response] Access the result along with the Faraday response object
|
1803
|
+
# @yieldparam result [::Gapic::Rest::BaseOperation]
|
1603
1804
|
# @yieldparam response [::Faraday::Response]
|
1604
1805
|
#
|
1605
|
-
# @return [::
|
1806
|
+
# @return [::Gapic::Rest::BaseOperation]
|
1606
1807
|
#
|
1607
1808
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
1608
1809
|
def set_disk_auto_delete request, options = nil
|
@@ -1614,26 +1815,25 @@ module Google
|
|
1614
1815
|
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
1615
1816
|
|
1616
1817
|
# Customize the options with defaults
|
1617
|
-
call_metadata =
|
1818
|
+
call_metadata = @config.rpcs.set_disk_auto_delete.metadata.to_h
|
1618
1819
|
|
1619
1820
|
# Set x-goog-api-client header
|
1620
1821
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
1621
1822
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
1622
|
-
gapic_version: ::Google::Cloud::Compute::V1::VERSION
|
1823
|
+
gapic_version: ::Google::Cloud::Compute::V1::VERSION,
|
1824
|
+
transports_version_send: [:rest]
|
1623
1825
|
|
1624
|
-
options.apply_defaults timeout: @config.timeout,
|
1826
|
+
options.apply_defaults timeout: @config.rpcs.set_disk_auto_delete.timeout,
|
1625
1827
|
metadata: call_metadata
|
1626
1828
|
|
1627
|
-
|
1628
|
-
|
1629
|
-
uri: uri,
|
1630
|
-
params: query_string_params,
|
1631
|
-
options: options
|
1632
|
-
)
|
1633
|
-
result = ::Google::Cloud::Compute::V1::Operation.decode_json response.body, ignore_unknown_fields: true
|
1829
|
+
options.apply_defaults timeout: @config.timeout,
|
1830
|
+
metadata: @config.metadata
|
1634
1831
|
|
1635
|
-
|
1636
|
-
|
1832
|
+
@instances_stub.set_disk_auto_delete request, options do |result, response|
|
1833
|
+
result = ::Gapic::Rest::BaseOperation.new result
|
1834
|
+
yield result, response if block_given?
|
1835
|
+
return result
|
1836
|
+
end
|
1637
1837
|
rescue ::Faraday::Error => e
|
1638
1838
|
gapic_error = ::Gapic::Rest::Error.wrap_faraday_error e
|
1639
1839
|
raise ::Google::Cloud::Error.from_error(gapic_error)
|
@@ -1667,7 +1867,7 @@ module Google
|
|
1667
1867
|
# The name of the zone for this request.
|
1668
1868
|
# @param zone_set_policy_request_resource [::Google::Cloud::Compute::V1::ZoneSetPolicyRequest, ::Hash]
|
1669
1869
|
# The body resource for this request
|
1670
|
-
# @yield [result,
|
1870
|
+
# @yield [result, response] Access the result along with the Faraday response object
|
1671
1871
|
# @yieldparam result [::Google::Cloud::Compute::V1::Policy]
|
1672
1872
|
# @yieldparam response [::Faraday::Response]
|
1673
1873
|
#
|
@@ -1683,26 +1883,24 @@ module Google
|
|
1683
1883
|
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
1684
1884
|
|
1685
1885
|
# Customize the options with defaults
|
1686
|
-
call_metadata =
|
1886
|
+
call_metadata = @config.rpcs.set_iam_policy.metadata.to_h
|
1687
1887
|
|
1688
1888
|
# Set x-goog-api-client header
|
1689
1889
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
1690
1890
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
1691
|
-
gapic_version: ::Google::Cloud::Compute::V1::VERSION
|
1891
|
+
gapic_version: ::Google::Cloud::Compute::V1::VERSION,
|
1892
|
+
transports_version_send: [:rest]
|
1692
1893
|
|
1693
|
-
options.apply_defaults timeout: @config.timeout,
|
1894
|
+
options.apply_defaults timeout: @config.rpcs.set_iam_policy.timeout,
|
1694
1895
|
metadata: call_metadata
|
1695
1896
|
|
1696
|
-
|
1697
|
-
|
1698
|
-
uri: uri,
|
1699
|
-
body: body,
|
1700
|
-
options: options
|
1701
|
-
)
|
1702
|
-
result = ::Google::Cloud::Compute::V1::Policy.decode_json response.body, ignore_unknown_fields: true
|
1897
|
+
options.apply_defaults timeout: @config.timeout,
|
1898
|
+
metadata: @config.metadata
|
1703
1899
|
|
1704
|
-
|
1705
|
-
|
1900
|
+
@instances_stub.set_iam_policy request, options do |result, response|
|
1901
|
+
yield result, response if block_given?
|
1902
|
+
return result
|
1903
|
+
end
|
1706
1904
|
rescue ::Faraday::Error => e
|
1707
1905
|
gapic_error = ::Gapic::Rest::Error.wrap_faraday_error e
|
1708
1906
|
raise ::Google::Cloud::Error.from_error(gapic_error)
|
@@ -1735,18 +1933,14 @@ module Google
|
|
1735
1933
|
# @param project [::String]
|
1736
1934
|
# Project ID for this request.
|
1737
1935
|
# @param request_id [::String]
|
1738
|
-
# 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.
|
1739
|
-
#
|
1740
|
-
# 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.
|
1741
|
-
#
|
1742
|
-
# The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
|
1936
|
+
# 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).
|
1743
1937
|
# @param zone [::String]
|
1744
1938
|
# The name of the zone for this request.
|
1745
|
-
# @yield [result,
|
1746
|
-
# @yieldparam result [::
|
1939
|
+
# @yield [result, response] Access the result along with the Faraday response object
|
1940
|
+
# @yieldparam result [::Gapic::Rest::BaseOperation]
|
1747
1941
|
# @yieldparam response [::Faraday::Response]
|
1748
1942
|
#
|
1749
|
-
# @return [::
|
1943
|
+
# @return [::Gapic::Rest::BaseOperation]
|
1750
1944
|
#
|
1751
1945
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
1752
1946
|
def set_labels request, options = nil
|
@@ -1758,26 +1952,25 @@ module Google
|
|
1758
1952
|
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
1759
1953
|
|
1760
1954
|
# Customize the options with defaults
|
1761
|
-
call_metadata =
|
1955
|
+
call_metadata = @config.rpcs.set_labels.metadata.to_h
|
1762
1956
|
|
1763
1957
|
# Set x-goog-api-client header
|
1764
1958
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
1765
1959
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
1766
|
-
gapic_version: ::Google::Cloud::Compute::V1::VERSION
|
1960
|
+
gapic_version: ::Google::Cloud::Compute::V1::VERSION,
|
1961
|
+
transports_version_send: [:rest]
|
1767
1962
|
|
1768
|
-
options.apply_defaults timeout: @config.timeout,
|
1963
|
+
options.apply_defaults timeout: @config.rpcs.set_labels.timeout,
|
1769
1964
|
metadata: call_metadata
|
1770
1965
|
|
1771
|
-
|
1772
|
-
|
1773
|
-
uri: uri,
|
1774
|
-
body: body,
|
1775
|
-
options: options
|
1776
|
-
)
|
1777
|
-
result = ::Google::Cloud::Compute::V1::Operation.decode_json response.body, ignore_unknown_fields: true
|
1966
|
+
options.apply_defaults timeout: @config.timeout,
|
1967
|
+
metadata: @config.metadata
|
1778
1968
|
|
1779
|
-
|
1780
|
-
|
1969
|
+
@instances_stub.set_labels request, options do |result, response|
|
1970
|
+
result = ::Gapic::Rest::BaseOperation.new result
|
1971
|
+
yield result, response if block_given?
|
1972
|
+
return result
|
1973
|
+
end
|
1781
1974
|
rescue ::Faraday::Error => e
|
1782
1975
|
gapic_error = ::Gapic::Rest::Error.wrap_faraday_error e
|
1783
1976
|
raise ::Google::Cloud::Error.from_error(gapic_error)
|
@@ -1810,18 +2003,14 @@ module Google
|
|
1810
2003
|
# @param project [::String]
|
1811
2004
|
# Project ID for this request.
|
1812
2005
|
# @param request_id [::String]
|
1813
|
-
# 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.
|
1814
|
-
#
|
1815
|
-
# 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.
|
1816
|
-
#
|
1817
|
-
# The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
|
2006
|
+
# 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).
|
1818
2007
|
# @param zone [::String]
|
1819
2008
|
# The name of the zone for this request.
|
1820
|
-
# @yield [result,
|
1821
|
-
# @yieldparam result [::
|
2009
|
+
# @yield [result, response] Access the result along with the Faraday response object
|
2010
|
+
# @yieldparam result [::Gapic::Rest::BaseOperation]
|
1822
2011
|
# @yieldparam response [::Faraday::Response]
|
1823
2012
|
#
|
1824
|
-
# @return [::
|
2013
|
+
# @return [::Gapic::Rest::BaseOperation]
|
1825
2014
|
#
|
1826
2015
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
1827
2016
|
def set_machine_resources request, options = nil
|
@@ -1833,26 +2022,25 @@ module Google
|
|
1833
2022
|
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
1834
2023
|
|
1835
2024
|
# Customize the options with defaults
|
1836
|
-
call_metadata =
|
2025
|
+
call_metadata = @config.rpcs.set_machine_resources.metadata.to_h
|
1837
2026
|
|
1838
2027
|
# Set x-goog-api-client header
|
1839
2028
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
1840
2029
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
1841
|
-
gapic_version: ::Google::Cloud::Compute::V1::VERSION
|
2030
|
+
gapic_version: ::Google::Cloud::Compute::V1::VERSION,
|
2031
|
+
transports_version_send: [:rest]
|
1842
2032
|
|
1843
|
-
options.apply_defaults timeout: @config.timeout,
|
2033
|
+
options.apply_defaults timeout: @config.rpcs.set_machine_resources.timeout,
|
1844
2034
|
metadata: call_metadata
|
1845
2035
|
|
1846
|
-
|
1847
|
-
|
1848
|
-
uri: uri,
|
1849
|
-
body: body,
|
1850
|
-
options: options
|
1851
|
-
)
|
1852
|
-
result = ::Google::Cloud::Compute::V1::Operation.decode_json response.body, ignore_unknown_fields: true
|
2036
|
+
options.apply_defaults timeout: @config.timeout,
|
2037
|
+
metadata: @config.metadata
|
1853
2038
|
|
1854
|
-
|
1855
|
-
|
2039
|
+
@instances_stub.set_machine_resources request, options do |result, response|
|
2040
|
+
result = ::Gapic::Rest::BaseOperation.new result
|
2041
|
+
yield result, response if block_given?
|
2042
|
+
return result
|
2043
|
+
end
|
1856
2044
|
rescue ::Faraday::Error => e
|
1857
2045
|
gapic_error = ::Gapic::Rest::Error.wrap_faraday_error e
|
1858
2046
|
raise ::Google::Cloud::Error.from_error(gapic_error)
|
@@ -1885,18 +2073,14 @@ module Google
|
|
1885
2073
|
# @param project [::String]
|
1886
2074
|
# Project ID for this request.
|
1887
2075
|
# @param request_id [::String]
|
1888
|
-
# 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.
|
1889
|
-
#
|
1890
|
-
# 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.
|
1891
|
-
#
|
1892
|
-
# The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
|
2076
|
+
# 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).
|
1893
2077
|
# @param zone [::String]
|
1894
2078
|
# The name of the zone for this request.
|
1895
|
-
# @yield [result,
|
1896
|
-
# @yieldparam result [::
|
2079
|
+
# @yield [result, response] Access the result along with the Faraday response object
|
2080
|
+
# @yieldparam result [::Gapic::Rest::BaseOperation]
|
1897
2081
|
# @yieldparam response [::Faraday::Response]
|
1898
2082
|
#
|
1899
|
-
# @return [::
|
2083
|
+
# @return [::Gapic::Rest::BaseOperation]
|
1900
2084
|
#
|
1901
2085
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
1902
2086
|
def set_machine_type request, options = nil
|
@@ -1908,26 +2092,25 @@ module Google
|
|
1908
2092
|
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
1909
2093
|
|
1910
2094
|
# Customize the options with defaults
|
1911
|
-
call_metadata =
|
2095
|
+
call_metadata = @config.rpcs.set_machine_type.metadata.to_h
|
1912
2096
|
|
1913
2097
|
# Set x-goog-api-client header
|
1914
2098
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
1915
2099
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
1916
|
-
gapic_version: ::Google::Cloud::Compute::V1::VERSION
|
2100
|
+
gapic_version: ::Google::Cloud::Compute::V1::VERSION,
|
2101
|
+
transports_version_send: [:rest]
|
1917
2102
|
|
1918
|
-
options.apply_defaults timeout: @config.timeout,
|
2103
|
+
options.apply_defaults timeout: @config.rpcs.set_machine_type.timeout,
|
1919
2104
|
metadata: call_metadata
|
1920
2105
|
|
1921
|
-
|
1922
|
-
|
1923
|
-
uri: uri,
|
1924
|
-
body: body,
|
1925
|
-
options: options
|
1926
|
-
)
|
1927
|
-
result = ::Google::Cloud::Compute::V1::Operation.decode_json response.body, ignore_unknown_fields: true
|
2106
|
+
options.apply_defaults timeout: @config.timeout,
|
2107
|
+
metadata: @config.metadata
|
1928
2108
|
|
1929
|
-
|
1930
|
-
|
2109
|
+
@instances_stub.set_machine_type request, options do |result, response|
|
2110
|
+
result = ::Gapic::Rest::BaseOperation.new result
|
2111
|
+
yield result, response if block_given?
|
2112
|
+
return result
|
2113
|
+
end
|
1931
2114
|
rescue ::Faraday::Error => e
|
1932
2115
|
gapic_error = ::Gapic::Rest::Error.wrap_faraday_error e
|
1933
2116
|
raise ::Google::Cloud::Error.from_error(gapic_error)
|
@@ -1960,18 +2143,14 @@ module Google
|
|
1960
2143
|
# @param project [::String]
|
1961
2144
|
# Project ID for this request.
|
1962
2145
|
# @param request_id [::String]
|
1963
|
-
# 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.
|
1964
|
-
#
|
1965
|
-
# 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.
|
1966
|
-
#
|
1967
|
-
# The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
|
2146
|
+
# 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).
|
1968
2147
|
# @param zone [::String]
|
1969
2148
|
# The name of the zone for this request.
|
1970
|
-
# @yield [result,
|
1971
|
-
# @yieldparam result [::
|
2149
|
+
# @yield [result, response] Access the result along with the Faraday response object
|
2150
|
+
# @yieldparam result [::Gapic::Rest::BaseOperation]
|
1972
2151
|
# @yieldparam response [::Faraday::Response]
|
1973
2152
|
#
|
1974
|
-
# @return [::
|
2153
|
+
# @return [::Gapic::Rest::BaseOperation]
|
1975
2154
|
#
|
1976
2155
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
1977
2156
|
def set_metadata request, options = nil
|
@@ -1983,26 +2162,25 @@ module Google
|
|
1983
2162
|
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
1984
2163
|
|
1985
2164
|
# Customize the options with defaults
|
1986
|
-
call_metadata =
|
2165
|
+
call_metadata = @config.rpcs.set_metadata.metadata.to_h
|
1987
2166
|
|
1988
2167
|
# Set x-goog-api-client header
|
1989
2168
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
1990
2169
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
1991
|
-
gapic_version: ::Google::Cloud::Compute::V1::VERSION
|
2170
|
+
gapic_version: ::Google::Cloud::Compute::V1::VERSION,
|
2171
|
+
transports_version_send: [:rest]
|
1992
2172
|
|
1993
|
-
options.apply_defaults timeout: @config.timeout,
|
2173
|
+
options.apply_defaults timeout: @config.rpcs.set_metadata.timeout,
|
1994
2174
|
metadata: call_metadata
|
1995
2175
|
|
1996
|
-
|
1997
|
-
|
1998
|
-
uri: uri,
|
1999
|
-
body: body,
|
2000
|
-
options: options
|
2001
|
-
)
|
2002
|
-
result = ::Google::Cloud::Compute::V1::Operation.decode_json response.body, ignore_unknown_fields: true
|
2176
|
+
options.apply_defaults timeout: @config.timeout,
|
2177
|
+
metadata: @config.metadata
|
2003
2178
|
|
2004
|
-
|
2005
|
-
|
2179
|
+
@instances_stub.set_metadata request, options do |result, response|
|
2180
|
+
result = ::Gapic::Rest::BaseOperation.new result
|
2181
|
+
yield result, response if block_given?
|
2182
|
+
return result
|
2183
|
+
end
|
2006
2184
|
rescue ::Faraday::Error => e
|
2007
2185
|
gapic_error = ::Gapic::Rest::Error.wrap_faraday_error e
|
2008
2186
|
raise ::Google::Cloud::Error.from_error(gapic_error)
|
@@ -2035,18 +2213,14 @@ module Google
|
|
2035
2213
|
# @param project [::String]
|
2036
2214
|
# Project ID for this request.
|
2037
2215
|
# @param request_id [::String]
|
2038
|
-
# 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.
|
2039
|
-
#
|
2040
|
-
# 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.
|
2041
|
-
#
|
2042
|
-
# The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
|
2216
|
+
# 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).
|
2043
2217
|
# @param zone [::String]
|
2044
2218
|
# The name of the zone for this request.
|
2045
|
-
# @yield [result,
|
2046
|
-
# @yieldparam result [::
|
2219
|
+
# @yield [result, response] Access the result along with the Faraday response object
|
2220
|
+
# @yieldparam result [::Gapic::Rest::BaseOperation]
|
2047
2221
|
# @yieldparam response [::Faraday::Response]
|
2048
2222
|
#
|
2049
|
-
# @return [::
|
2223
|
+
# @return [::Gapic::Rest::BaseOperation]
|
2050
2224
|
#
|
2051
2225
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
2052
2226
|
def set_min_cpu_platform request, options = nil
|
@@ -2058,26 +2232,25 @@ module Google
|
|
2058
2232
|
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
2059
2233
|
|
2060
2234
|
# Customize the options with defaults
|
2061
|
-
call_metadata =
|
2235
|
+
call_metadata = @config.rpcs.set_min_cpu_platform.metadata.to_h
|
2062
2236
|
|
2063
2237
|
# Set x-goog-api-client header
|
2064
2238
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
2065
2239
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
2066
|
-
gapic_version: ::Google::Cloud::Compute::V1::VERSION
|
2240
|
+
gapic_version: ::Google::Cloud::Compute::V1::VERSION,
|
2241
|
+
transports_version_send: [:rest]
|
2067
2242
|
|
2068
|
-
options.apply_defaults timeout: @config.timeout,
|
2243
|
+
options.apply_defaults timeout: @config.rpcs.set_min_cpu_platform.timeout,
|
2069
2244
|
metadata: call_metadata
|
2070
2245
|
|
2071
|
-
|
2072
|
-
|
2073
|
-
uri: uri,
|
2074
|
-
body: body,
|
2075
|
-
options: options
|
2076
|
-
)
|
2077
|
-
result = ::Google::Cloud::Compute::V1::Operation.decode_json response.body, ignore_unknown_fields: true
|
2246
|
+
options.apply_defaults timeout: @config.timeout,
|
2247
|
+
metadata: @config.metadata
|
2078
2248
|
|
2079
|
-
|
2080
|
-
|
2249
|
+
@instances_stub.set_min_cpu_platform request, options do |result, response|
|
2250
|
+
result = ::Gapic::Rest::BaseOperation.new result
|
2251
|
+
yield result, response if block_given?
|
2252
|
+
return result
|
2253
|
+
end
|
2081
2254
|
rescue ::Faraday::Error => e
|
2082
2255
|
gapic_error = ::Gapic::Rest::Error.wrap_faraday_error e
|
2083
2256
|
raise ::Google::Cloud::Error.from_error(gapic_error)
|
@@ -2108,20 +2281,16 @@ module Google
|
|
2108
2281
|
# @param project [::String]
|
2109
2282
|
# Project ID for this request.
|
2110
2283
|
# @param request_id [::String]
|
2111
|
-
# 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.
|
2112
|
-
#
|
2113
|
-
# 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.
|
2114
|
-
#
|
2115
|
-
# The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
|
2284
|
+
# 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).
|
2116
2285
|
# @param scheduling_resource [::Google::Cloud::Compute::V1::Scheduling, ::Hash]
|
2117
2286
|
# The body resource for this request
|
2118
2287
|
# @param zone [::String]
|
2119
2288
|
# The name of the zone for this request.
|
2120
|
-
# @yield [result,
|
2121
|
-
# @yieldparam result [::
|
2289
|
+
# @yield [result, response] Access the result along with the Faraday response object
|
2290
|
+
# @yieldparam result [::Gapic::Rest::BaseOperation]
|
2122
2291
|
# @yieldparam response [::Faraday::Response]
|
2123
2292
|
#
|
2124
|
-
# @return [::
|
2293
|
+
# @return [::Gapic::Rest::BaseOperation]
|
2125
2294
|
#
|
2126
2295
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
2127
2296
|
def set_scheduling request, options = nil
|
@@ -2133,26 +2302,25 @@ module Google
|
|
2133
2302
|
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
2134
2303
|
|
2135
2304
|
# Customize the options with defaults
|
2136
|
-
call_metadata =
|
2305
|
+
call_metadata = @config.rpcs.set_scheduling.metadata.to_h
|
2137
2306
|
|
2138
2307
|
# Set x-goog-api-client header
|
2139
2308
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
2140
2309
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
2141
|
-
gapic_version: ::Google::Cloud::Compute::V1::VERSION
|
2310
|
+
gapic_version: ::Google::Cloud::Compute::V1::VERSION,
|
2311
|
+
transports_version_send: [:rest]
|
2142
2312
|
|
2143
|
-
options.apply_defaults timeout: @config.timeout,
|
2313
|
+
options.apply_defaults timeout: @config.rpcs.set_scheduling.timeout,
|
2144
2314
|
metadata: call_metadata
|
2145
2315
|
|
2146
|
-
|
2147
|
-
|
2148
|
-
uri: uri,
|
2149
|
-
body: body,
|
2150
|
-
options: options
|
2151
|
-
)
|
2152
|
-
result = ::Google::Cloud::Compute::V1::Operation.decode_json response.body, ignore_unknown_fields: true
|
2316
|
+
options.apply_defaults timeout: @config.timeout,
|
2317
|
+
metadata: @config.metadata
|
2153
2318
|
|
2154
|
-
|
2155
|
-
|
2319
|
+
@instances_stub.set_scheduling request, options do |result, response|
|
2320
|
+
result = ::Gapic::Rest::BaseOperation.new result
|
2321
|
+
yield result, response if block_given?
|
2322
|
+
return result
|
2323
|
+
end
|
2156
2324
|
rescue ::Faraday::Error => e
|
2157
2325
|
gapic_error = ::Gapic::Rest::Error.wrap_faraday_error e
|
2158
2326
|
raise ::Google::Cloud::Error.from_error(gapic_error)
|
@@ -2185,18 +2353,14 @@ module Google
|
|
2185
2353
|
# @param project [::String]
|
2186
2354
|
# Project ID for this request.
|
2187
2355
|
# @param request_id [::String]
|
2188
|
-
# 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.
|
2189
|
-
#
|
2190
|
-
# 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.
|
2191
|
-
#
|
2192
|
-
# The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
|
2356
|
+
# 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).
|
2193
2357
|
# @param zone [::String]
|
2194
2358
|
# The name of the zone for this request.
|
2195
|
-
# @yield [result,
|
2196
|
-
# @yieldparam result [::
|
2359
|
+
# @yield [result, response] Access the result along with the Faraday response object
|
2360
|
+
# @yieldparam result [::Gapic::Rest::BaseOperation]
|
2197
2361
|
# @yieldparam response [::Faraday::Response]
|
2198
2362
|
#
|
2199
|
-
# @return [::
|
2363
|
+
# @return [::Gapic::Rest::BaseOperation]
|
2200
2364
|
#
|
2201
2365
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
2202
2366
|
def set_service_account request, options = nil
|
@@ -2208,26 +2372,25 @@ module Google
|
|
2208
2372
|
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
2209
2373
|
|
2210
2374
|
# Customize the options with defaults
|
2211
|
-
call_metadata =
|
2375
|
+
call_metadata = @config.rpcs.set_service_account.metadata.to_h
|
2212
2376
|
|
2213
2377
|
# Set x-goog-api-client header
|
2214
2378
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
2215
2379
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
2216
|
-
gapic_version: ::Google::Cloud::Compute::V1::VERSION
|
2380
|
+
gapic_version: ::Google::Cloud::Compute::V1::VERSION,
|
2381
|
+
transports_version_send: [:rest]
|
2217
2382
|
|
2218
|
-
options.apply_defaults timeout: @config.timeout,
|
2383
|
+
options.apply_defaults timeout: @config.rpcs.set_service_account.timeout,
|
2219
2384
|
metadata: call_metadata
|
2220
2385
|
|
2221
|
-
|
2222
|
-
|
2223
|
-
uri: uri,
|
2224
|
-
body: body,
|
2225
|
-
options: options
|
2226
|
-
)
|
2227
|
-
result = ::Google::Cloud::Compute::V1::Operation.decode_json response.body, ignore_unknown_fields: true
|
2386
|
+
options.apply_defaults timeout: @config.timeout,
|
2387
|
+
metadata: @config.metadata
|
2228
2388
|
|
2229
|
-
|
2230
|
-
|
2389
|
+
@instances_stub.set_service_account request, options do |result, response|
|
2390
|
+
result = ::Gapic::Rest::BaseOperation.new result
|
2391
|
+
yield result, response if block_given?
|
2392
|
+
return result
|
2393
|
+
end
|
2231
2394
|
rescue ::Faraday::Error => e
|
2232
2395
|
gapic_error = ::Gapic::Rest::Error.wrap_faraday_error e
|
2233
2396
|
raise ::Google::Cloud::Error.from_error(gapic_error)
|
@@ -2258,20 +2421,16 @@ module Google
|
|
2258
2421
|
# @param project [::String]
|
2259
2422
|
# Project ID for this request.
|
2260
2423
|
# @param request_id [::String]
|
2261
|
-
# 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.
|
2262
|
-
#
|
2263
|
-
# 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.
|
2264
|
-
#
|
2265
|
-
# The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
|
2424
|
+
# 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).
|
2266
2425
|
# @param shielded_instance_integrity_policy_resource [::Google::Cloud::Compute::V1::ShieldedInstanceIntegrityPolicy, ::Hash]
|
2267
2426
|
# The body resource for this request
|
2268
2427
|
# @param zone [::String]
|
2269
2428
|
# The name of the zone for this request.
|
2270
|
-
# @yield [result,
|
2271
|
-
# @yieldparam result [::
|
2429
|
+
# @yield [result, response] Access the result along with the Faraday response object
|
2430
|
+
# @yieldparam result [::Gapic::Rest::BaseOperation]
|
2272
2431
|
# @yieldparam response [::Faraday::Response]
|
2273
2432
|
#
|
2274
|
-
# @return [::
|
2433
|
+
# @return [::Gapic::Rest::BaseOperation]
|
2275
2434
|
#
|
2276
2435
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
2277
2436
|
def set_shielded_instance_integrity_policy request, options = nil
|
@@ -2283,26 +2442,25 @@ module Google
|
|
2283
2442
|
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
2284
2443
|
|
2285
2444
|
# Customize the options with defaults
|
2286
|
-
call_metadata =
|
2445
|
+
call_metadata = @config.rpcs.set_shielded_instance_integrity_policy.metadata.to_h
|
2287
2446
|
|
2288
2447
|
# Set x-goog-api-client header
|
2289
2448
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
2290
2449
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
2291
|
-
gapic_version: ::Google::Cloud::Compute::V1::VERSION
|
2450
|
+
gapic_version: ::Google::Cloud::Compute::V1::VERSION,
|
2451
|
+
transports_version_send: [:rest]
|
2292
2452
|
|
2293
|
-
options.apply_defaults timeout: @config.timeout,
|
2453
|
+
options.apply_defaults timeout: @config.rpcs.set_shielded_instance_integrity_policy.timeout,
|
2294
2454
|
metadata: call_metadata
|
2295
2455
|
|
2296
|
-
|
2297
|
-
|
2298
|
-
uri: uri,
|
2299
|
-
body: body,
|
2300
|
-
options: options
|
2301
|
-
)
|
2302
|
-
result = ::Google::Cloud::Compute::V1::Operation.decode_json response.body, ignore_unknown_fields: true
|
2456
|
+
options.apply_defaults timeout: @config.timeout,
|
2457
|
+
metadata: @config.metadata
|
2303
2458
|
|
2304
|
-
|
2305
|
-
|
2459
|
+
@instances_stub.set_shielded_instance_integrity_policy request, options do |result, response|
|
2460
|
+
result = ::Gapic::Rest::BaseOperation.new result
|
2461
|
+
yield result, response if block_given?
|
2462
|
+
return result
|
2463
|
+
end
|
2306
2464
|
rescue ::Faraday::Error => e
|
2307
2465
|
gapic_error = ::Gapic::Rest::Error.wrap_faraday_error e
|
2308
2466
|
raise ::Google::Cloud::Error.from_error(gapic_error)
|
@@ -2333,20 +2491,16 @@ module Google
|
|
2333
2491
|
# @param project [::String]
|
2334
2492
|
# Project ID for this request.
|
2335
2493
|
# @param request_id [::String]
|
2336
|
-
# 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.
|
2337
|
-
#
|
2338
|
-
# 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.
|
2339
|
-
#
|
2340
|
-
# The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
|
2494
|
+
# 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).
|
2341
2495
|
# @param tags_resource [::Google::Cloud::Compute::V1::Tags, ::Hash]
|
2342
2496
|
# The body resource for this request
|
2343
2497
|
# @param zone [::String]
|
2344
2498
|
# The name of the zone for this request.
|
2345
|
-
# @yield [result,
|
2346
|
-
# @yieldparam result [::
|
2499
|
+
# @yield [result, response] Access the result along with the Faraday response object
|
2500
|
+
# @yieldparam result [::Gapic::Rest::BaseOperation]
|
2347
2501
|
# @yieldparam response [::Faraday::Response]
|
2348
2502
|
#
|
2349
|
-
# @return [::
|
2503
|
+
# @return [::Gapic::Rest::BaseOperation]
|
2350
2504
|
#
|
2351
2505
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
2352
2506
|
def set_tags request, options = nil
|
@@ -2358,26 +2512,25 @@ module Google
|
|
2358
2512
|
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
2359
2513
|
|
2360
2514
|
# Customize the options with defaults
|
2361
|
-
call_metadata =
|
2515
|
+
call_metadata = @config.rpcs.set_tags.metadata.to_h
|
2362
2516
|
|
2363
2517
|
# Set x-goog-api-client header
|
2364
2518
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
2365
2519
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
2366
|
-
gapic_version: ::Google::Cloud::Compute::V1::VERSION
|
2520
|
+
gapic_version: ::Google::Cloud::Compute::V1::VERSION,
|
2521
|
+
transports_version_send: [:rest]
|
2367
2522
|
|
2368
|
-
options.apply_defaults timeout: @config.timeout,
|
2523
|
+
options.apply_defaults timeout: @config.rpcs.set_tags.timeout,
|
2369
2524
|
metadata: call_metadata
|
2370
2525
|
|
2371
|
-
|
2372
|
-
|
2373
|
-
uri: uri,
|
2374
|
-
body: body,
|
2375
|
-
options: options
|
2376
|
-
)
|
2377
|
-
result = ::Google::Cloud::Compute::V1::Operation.decode_json response.body, ignore_unknown_fields: true
|
2526
|
+
options.apply_defaults timeout: @config.timeout,
|
2527
|
+
metadata: @config.metadata
|
2378
2528
|
|
2379
|
-
|
2380
|
-
|
2529
|
+
@instances_stub.set_tags request, options do |result, response|
|
2530
|
+
result = ::Gapic::Rest::BaseOperation.new result
|
2531
|
+
yield result, response if block_given?
|
2532
|
+
return result
|
2533
|
+
end
|
2381
2534
|
rescue ::Faraday::Error => e
|
2382
2535
|
gapic_error = ::Gapic::Rest::Error.wrap_faraday_error e
|
2383
2536
|
raise ::Google::Cloud::Error.from_error(gapic_error)
|
@@ -2409,11 +2562,11 @@ module Google
|
|
2409
2562
|
# Project ID for this request.
|
2410
2563
|
# @param zone [::String]
|
2411
2564
|
# The name of the zone for this request.
|
2412
|
-
# @yield [result,
|
2413
|
-
# @yieldparam result [::
|
2565
|
+
# @yield [result, response] Access the result along with the Faraday response object
|
2566
|
+
# @yieldparam result [::Gapic::Rest::BaseOperation]
|
2414
2567
|
# @yieldparam response [::Faraday::Response]
|
2415
2568
|
#
|
2416
|
-
# @return [::
|
2569
|
+
# @return [::Gapic::Rest::BaseOperation]
|
2417
2570
|
#
|
2418
2571
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
2419
2572
|
def simulate_maintenance_event request, options = nil
|
@@ -2425,25 +2578,25 @@ module Google
|
|
2425
2578
|
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
2426
2579
|
|
2427
2580
|
# Customize the options with defaults
|
2428
|
-
call_metadata =
|
2581
|
+
call_metadata = @config.rpcs.simulate_maintenance_event.metadata.to_h
|
2429
2582
|
|
2430
2583
|
# Set x-goog-api-client header
|
2431
2584
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
2432
2585
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
2433
|
-
gapic_version: ::Google::Cloud::Compute::V1::VERSION
|
2586
|
+
gapic_version: ::Google::Cloud::Compute::V1::VERSION,
|
2587
|
+
transports_version_send: [:rest]
|
2434
2588
|
|
2435
|
-
options.apply_defaults timeout: @config.timeout,
|
2589
|
+
options.apply_defaults timeout: @config.rpcs.simulate_maintenance_event.timeout,
|
2436
2590
|
metadata: call_metadata
|
2437
2591
|
|
2438
|
-
|
2439
|
-
|
2440
|
-
uri: uri,
|
2441
|
-
options: options
|
2442
|
-
)
|
2443
|
-
result = ::Google::Cloud::Compute::V1::Operation.decode_json response.body, ignore_unknown_fields: true
|
2592
|
+
options.apply_defaults timeout: @config.timeout,
|
2593
|
+
metadata: @config.metadata
|
2444
2594
|
|
2445
|
-
|
2446
|
-
|
2595
|
+
@instances_stub.simulate_maintenance_event request, options do |result, response|
|
2596
|
+
result = ::Gapic::Rest::BaseOperation.new result
|
2597
|
+
yield result, response if block_given?
|
2598
|
+
return result
|
2599
|
+
end
|
2447
2600
|
rescue ::Faraday::Error => e
|
2448
2601
|
gapic_error = ::Gapic::Rest::Error.wrap_faraday_error e
|
2449
2602
|
raise ::Google::Cloud::Error.from_error(gapic_error)
|
@@ -2474,18 +2627,14 @@ module Google
|
|
2474
2627
|
# @param project [::String]
|
2475
2628
|
# Project ID for this request.
|
2476
2629
|
# @param request_id [::String]
|
2477
|
-
# 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.
|
2478
|
-
#
|
2479
|
-
# 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.
|
2480
|
-
#
|
2481
|
-
# The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
|
2630
|
+
# 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).
|
2482
2631
|
# @param zone [::String]
|
2483
2632
|
# The name of the zone for this request.
|
2484
|
-
# @yield [result,
|
2485
|
-
# @yieldparam result [::
|
2633
|
+
# @yield [result, response] Access the result along with the Faraday response object
|
2634
|
+
# @yieldparam result [::Gapic::Rest::BaseOperation]
|
2486
2635
|
# @yieldparam response [::Faraday::Response]
|
2487
2636
|
#
|
2488
|
-
# @return [::
|
2637
|
+
# @return [::Gapic::Rest::BaseOperation]
|
2489
2638
|
#
|
2490
2639
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
2491
2640
|
def start request, options = nil
|
@@ -2497,26 +2646,25 @@ module Google
|
|
2497
2646
|
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
2498
2647
|
|
2499
2648
|
# Customize the options with defaults
|
2500
|
-
call_metadata =
|
2649
|
+
call_metadata = @config.rpcs.start.metadata.to_h
|
2501
2650
|
|
2502
2651
|
# Set x-goog-api-client header
|
2503
2652
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
2504
2653
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
2505
|
-
gapic_version: ::Google::Cloud::Compute::V1::VERSION
|
2654
|
+
gapic_version: ::Google::Cloud::Compute::V1::VERSION,
|
2655
|
+
transports_version_send: [:rest]
|
2506
2656
|
|
2507
|
-
options.apply_defaults timeout: @config.timeout,
|
2657
|
+
options.apply_defaults timeout: @config.rpcs.start.timeout,
|
2508
2658
|
metadata: call_metadata
|
2509
2659
|
|
2510
|
-
|
2511
|
-
|
2512
|
-
uri: uri,
|
2513
|
-
params: query_string_params,
|
2514
|
-
options: options
|
2515
|
-
)
|
2516
|
-
result = ::Google::Cloud::Compute::V1::Operation.decode_json response.body, ignore_unknown_fields: true
|
2660
|
+
options.apply_defaults timeout: @config.timeout,
|
2661
|
+
metadata: @config.metadata
|
2517
2662
|
|
2518
|
-
|
2519
|
-
|
2663
|
+
@instances_stub.start request, options do |result, response|
|
2664
|
+
result = ::Gapic::Rest::BaseOperation.new result
|
2665
|
+
yield result, response if block_given?
|
2666
|
+
return result
|
2667
|
+
end
|
2520
2668
|
rescue ::Faraday::Error => e
|
2521
2669
|
gapic_error = ::Gapic::Rest::Error.wrap_faraday_error e
|
2522
2670
|
raise ::Google::Cloud::Error.from_error(gapic_error)
|
@@ -2549,18 +2697,14 @@ module Google
|
|
2549
2697
|
# @param project [::String]
|
2550
2698
|
# Project ID for this request.
|
2551
2699
|
# @param request_id [::String]
|
2552
|
-
# 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.
|
2553
|
-
#
|
2554
|
-
# 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.
|
2555
|
-
#
|
2556
|
-
# The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
|
2700
|
+
# 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).
|
2557
2701
|
# @param zone [::String]
|
2558
2702
|
# The name of the zone for this request.
|
2559
|
-
# @yield [result,
|
2560
|
-
# @yieldparam result [::
|
2703
|
+
# @yield [result, response] Access the result along with the Faraday response object
|
2704
|
+
# @yieldparam result [::Gapic::Rest::BaseOperation]
|
2561
2705
|
# @yieldparam response [::Faraday::Response]
|
2562
2706
|
#
|
2563
|
-
# @return [::
|
2707
|
+
# @return [::Gapic::Rest::BaseOperation]
|
2564
2708
|
#
|
2565
2709
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
2566
2710
|
def start_with_encryption_key request, options = nil
|
@@ -2572,26 +2716,25 @@ module Google
|
|
2572
2716
|
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
2573
2717
|
|
2574
2718
|
# Customize the options with defaults
|
2575
|
-
call_metadata =
|
2719
|
+
call_metadata = @config.rpcs.start_with_encryption_key.metadata.to_h
|
2576
2720
|
|
2577
2721
|
# Set x-goog-api-client header
|
2578
2722
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
2579
2723
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
2580
|
-
gapic_version: ::Google::Cloud::Compute::V1::VERSION
|
2724
|
+
gapic_version: ::Google::Cloud::Compute::V1::VERSION,
|
2725
|
+
transports_version_send: [:rest]
|
2581
2726
|
|
2582
|
-
options.apply_defaults timeout: @config.timeout,
|
2727
|
+
options.apply_defaults timeout: @config.rpcs.start_with_encryption_key.timeout,
|
2583
2728
|
metadata: call_metadata
|
2584
2729
|
|
2585
|
-
|
2586
|
-
|
2587
|
-
uri: uri,
|
2588
|
-
body: body,
|
2589
|
-
options: options
|
2590
|
-
)
|
2591
|
-
result = ::Google::Cloud::Compute::V1::Operation.decode_json response.body, ignore_unknown_fields: true
|
2730
|
+
options.apply_defaults timeout: @config.timeout,
|
2731
|
+
metadata: @config.metadata
|
2592
2732
|
|
2593
|
-
|
2594
|
-
|
2733
|
+
@instances_stub.start_with_encryption_key request, options do |result, response|
|
2734
|
+
result = ::Gapic::Rest::BaseOperation.new result
|
2735
|
+
yield result, response if block_given?
|
2736
|
+
return result
|
2737
|
+
end
|
2595
2738
|
rescue ::Faraday::Error => e
|
2596
2739
|
gapic_error = ::Gapic::Rest::Error.wrap_faraday_error e
|
2597
2740
|
raise ::Google::Cloud::Error.from_error(gapic_error)
|
@@ -2622,18 +2765,14 @@ module Google
|
|
2622
2765
|
# @param project [::String]
|
2623
2766
|
# Project ID for this request.
|
2624
2767
|
# @param request_id [::String]
|
2625
|
-
# 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.
|
2626
|
-
#
|
2627
|
-
# 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.
|
2628
|
-
#
|
2629
|
-
# The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
|
2768
|
+
# 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).
|
2630
2769
|
# @param zone [::String]
|
2631
2770
|
# The name of the zone for this request.
|
2632
|
-
# @yield [result,
|
2633
|
-
# @yieldparam result [::
|
2771
|
+
# @yield [result, response] Access the result along with the Faraday response object
|
2772
|
+
# @yieldparam result [::Gapic::Rest::BaseOperation]
|
2634
2773
|
# @yieldparam response [::Faraday::Response]
|
2635
2774
|
#
|
2636
|
-
# @return [::
|
2775
|
+
# @return [::Gapic::Rest::BaseOperation]
|
2637
2776
|
#
|
2638
2777
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
2639
2778
|
def stop request, options = nil
|
@@ -2645,26 +2784,25 @@ module Google
|
|
2645
2784
|
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
2646
2785
|
|
2647
2786
|
# Customize the options with defaults
|
2648
|
-
call_metadata =
|
2787
|
+
call_metadata = @config.rpcs.stop.metadata.to_h
|
2649
2788
|
|
2650
2789
|
# Set x-goog-api-client header
|
2651
2790
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
2652
2791
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
2653
|
-
gapic_version: ::Google::Cloud::Compute::V1::VERSION
|
2792
|
+
gapic_version: ::Google::Cloud::Compute::V1::VERSION,
|
2793
|
+
transports_version_send: [:rest]
|
2654
2794
|
|
2655
|
-
options.apply_defaults timeout: @config.timeout,
|
2795
|
+
options.apply_defaults timeout: @config.rpcs.stop.timeout,
|
2656
2796
|
metadata: call_metadata
|
2657
2797
|
|
2658
|
-
|
2659
|
-
|
2660
|
-
uri: uri,
|
2661
|
-
params: query_string_params,
|
2662
|
-
options: options
|
2663
|
-
)
|
2664
|
-
result = ::Google::Cloud::Compute::V1::Operation.decode_json response.body, ignore_unknown_fields: true
|
2798
|
+
options.apply_defaults timeout: @config.timeout,
|
2799
|
+
metadata: @config.metadata
|
2665
2800
|
|
2666
|
-
|
2667
|
-
|
2801
|
+
@instances_stub.stop request, options do |result, response|
|
2802
|
+
result = ::Gapic::Rest::BaseOperation.new result
|
2803
|
+
yield result, response if block_given?
|
2804
|
+
return result
|
2805
|
+
end
|
2668
2806
|
rescue ::Faraday::Error => e
|
2669
2807
|
gapic_error = ::Gapic::Rest::Error.wrap_faraday_error e
|
2670
2808
|
raise ::Google::Cloud::Error.from_error(gapic_error)
|
@@ -2698,7 +2836,7 @@ module Google
|
|
2698
2836
|
# The body resource for this request
|
2699
2837
|
# @param zone [::String]
|
2700
2838
|
# The name of the zone for this request.
|
2701
|
-
# @yield [result,
|
2839
|
+
# @yield [result, response] Access the result along with the Faraday response object
|
2702
2840
|
# @yieldparam result [::Google::Cloud::Compute::V1::TestPermissionsResponse]
|
2703
2841
|
# @yieldparam response [::Faraday::Response]
|
2704
2842
|
#
|
@@ -2714,33 +2852,31 @@ module Google
|
|
2714
2852
|
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
2715
2853
|
|
2716
2854
|
# Customize the options with defaults
|
2717
|
-
call_metadata =
|
2855
|
+
call_metadata = @config.rpcs.test_iam_permissions.metadata.to_h
|
2718
2856
|
|
2719
2857
|
# Set x-goog-api-client header
|
2720
2858
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
2721
2859
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
2722
|
-
gapic_version: ::Google::Cloud::Compute::V1::VERSION
|
2860
|
+
gapic_version: ::Google::Cloud::Compute::V1::VERSION,
|
2861
|
+
transports_version_send: [:rest]
|
2723
2862
|
|
2724
|
-
options.apply_defaults timeout: @config.timeout,
|
2863
|
+
options.apply_defaults timeout: @config.rpcs.test_iam_permissions.timeout,
|
2725
2864
|
metadata: call_metadata
|
2726
2865
|
|
2727
|
-
|
2728
|
-
|
2729
|
-
uri: uri,
|
2730
|
-
body: body,
|
2731
|
-
options: options
|
2732
|
-
)
|
2733
|
-
result = ::Google::Cloud::Compute::V1::TestPermissionsResponse.decode_json response.body, ignore_unknown_fields: true
|
2866
|
+
options.apply_defaults timeout: @config.timeout,
|
2867
|
+
metadata: @config.metadata
|
2734
2868
|
|
2735
|
-
|
2736
|
-
|
2869
|
+
@instances_stub.test_iam_permissions request, options do |result, response|
|
2870
|
+
yield result, response if block_given?
|
2871
|
+
return result
|
2872
|
+
end
|
2737
2873
|
rescue ::Faraday::Error => e
|
2738
2874
|
gapic_error = ::Gapic::Rest::Error.wrap_faraday_error e
|
2739
2875
|
raise ::Google::Cloud::Error.from_error(gapic_error)
|
2740
2876
|
end
|
2741
2877
|
|
2742
2878
|
##
|
2743
|
-
# Updates an instance only if the necessary resources are available. This method can update only a specific set of instance properties. See
|
2879
|
+
# Updates an instance only if the necessary resources are available. This method can update only a specific set of instance properties. See Updating a running instance for a list of updatable instance properties.
|
2744
2880
|
#
|
2745
2881
|
# @overload update(request, options = nil)
|
2746
2882
|
# Pass arguments to `update` via a request object, either of type
|
@@ -2770,18 +2906,14 @@ module Google
|
|
2770
2906
|
# @param project [::String]
|
2771
2907
|
# Project ID for this request.
|
2772
2908
|
# @param request_id [::String]
|
2773
|
-
# 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.
|
2774
|
-
#
|
2775
|
-
# 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.
|
2776
|
-
#
|
2777
|
-
# The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
|
2909
|
+
# 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).
|
2778
2910
|
# @param zone [::String]
|
2779
2911
|
# The name of the zone for this request.
|
2780
|
-
# @yield [result,
|
2781
|
-
# @yieldparam result [::
|
2912
|
+
# @yield [result, response] Access the result along with the Faraday response object
|
2913
|
+
# @yieldparam result [::Gapic::Rest::BaseOperation]
|
2782
2914
|
# @yieldparam response [::Faraday::Response]
|
2783
2915
|
#
|
2784
|
-
# @return [::
|
2916
|
+
# @return [::Gapic::Rest::BaseOperation]
|
2785
2917
|
#
|
2786
2918
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
2787
2919
|
def update request, options = nil
|
@@ -2793,26 +2925,25 @@ module Google
|
|
2793
2925
|
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
2794
2926
|
|
2795
2927
|
# Customize the options with defaults
|
2796
|
-
call_metadata =
|
2928
|
+
call_metadata = @config.rpcs.update.metadata.to_h
|
2797
2929
|
|
2798
2930
|
# Set x-goog-api-client header
|
2799
2931
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
2800
2932
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
2801
|
-
gapic_version: ::Google::Cloud::Compute::V1::VERSION
|
2933
|
+
gapic_version: ::Google::Cloud::Compute::V1::VERSION,
|
2934
|
+
transports_version_send: [:rest]
|
2802
2935
|
|
2803
|
-
options.apply_defaults timeout: @config.timeout,
|
2936
|
+
options.apply_defaults timeout: @config.rpcs.update.timeout,
|
2804
2937
|
metadata: call_metadata
|
2805
2938
|
|
2806
|
-
|
2807
|
-
|
2808
|
-
uri: uri,
|
2809
|
-
body: body,
|
2810
|
-
options: options
|
2811
|
-
)
|
2812
|
-
result = ::Google::Cloud::Compute::V1::Operation.decode_json response.body, ignore_unknown_fields: true
|
2939
|
+
options.apply_defaults timeout: @config.timeout,
|
2940
|
+
metadata: @config.metadata
|
2813
2941
|
|
2814
|
-
|
2815
|
-
|
2942
|
+
@instances_stub.update request, options do |result, response|
|
2943
|
+
result = ::Gapic::Rest::BaseOperation.new result
|
2944
|
+
yield result, response if block_given?
|
2945
|
+
return result
|
2946
|
+
end
|
2816
2947
|
rescue ::Faraday::Error => e
|
2817
2948
|
gapic_error = ::Gapic::Rest::Error.wrap_faraday_error e
|
2818
2949
|
raise ::Google::Cloud::Error.from_error(gapic_error)
|
@@ -2847,18 +2978,14 @@ module Google
|
|
2847
2978
|
# @param project [::String]
|
2848
2979
|
# Project ID for this request.
|
2849
2980
|
# @param request_id [::String]
|
2850
|
-
# 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.
|
2851
|
-
#
|
2852
|
-
# 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.
|
2853
|
-
#
|
2854
|
-
# The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
|
2981
|
+
# 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).
|
2855
2982
|
# @param zone [::String]
|
2856
2983
|
# The name of the zone for this request.
|
2857
|
-
# @yield [result,
|
2858
|
-
# @yieldparam result [::
|
2984
|
+
# @yield [result, response] Access the result along with the Faraday response object
|
2985
|
+
# @yieldparam result [::Gapic::Rest::BaseOperation]
|
2859
2986
|
# @yieldparam response [::Faraday::Response]
|
2860
2987
|
#
|
2861
|
-
# @return [::
|
2988
|
+
# @return [::Gapic::Rest::BaseOperation]
|
2862
2989
|
#
|
2863
2990
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
2864
2991
|
def update_access_config request, options = nil
|
@@ -2870,26 +2997,25 @@ module Google
|
|
2870
2997
|
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
2871
2998
|
|
2872
2999
|
# Customize the options with defaults
|
2873
|
-
call_metadata =
|
3000
|
+
call_metadata = @config.rpcs.update_access_config.metadata.to_h
|
2874
3001
|
|
2875
3002
|
# Set x-goog-api-client header
|
2876
3003
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
2877
3004
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
2878
|
-
gapic_version: ::Google::Cloud::Compute::V1::VERSION
|
3005
|
+
gapic_version: ::Google::Cloud::Compute::V1::VERSION,
|
3006
|
+
transports_version_send: [:rest]
|
2879
3007
|
|
2880
|
-
options.apply_defaults timeout: @config.timeout,
|
3008
|
+
options.apply_defaults timeout: @config.rpcs.update_access_config.timeout,
|
2881
3009
|
metadata: call_metadata
|
2882
3010
|
|
2883
|
-
|
2884
|
-
|
2885
|
-
uri: uri,
|
2886
|
-
body: body,
|
2887
|
-
options: options
|
2888
|
-
)
|
2889
|
-
result = ::Google::Cloud::Compute::V1::Operation.decode_json response.body, ignore_unknown_fields: true
|
3011
|
+
options.apply_defaults timeout: @config.timeout,
|
3012
|
+
metadata: @config.metadata
|
2890
3013
|
|
2891
|
-
|
2892
|
-
|
3014
|
+
@instances_stub.update_access_config request, options do |result, response|
|
3015
|
+
result = ::Gapic::Rest::BaseOperation.new result
|
3016
|
+
yield result, response if block_given?
|
3017
|
+
return result
|
3018
|
+
end
|
2893
3019
|
rescue ::Faraday::Error => e
|
2894
3020
|
gapic_error = ::Gapic::Rest::Error.wrap_faraday_error e
|
2895
3021
|
raise ::Google::Cloud::Error.from_error(gapic_error)
|
@@ -2922,18 +3048,14 @@ module Google
|
|
2922
3048
|
# @param project [::String]
|
2923
3049
|
# Project ID for this request.
|
2924
3050
|
# @param request_id [::String]
|
2925
|
-
# 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.
|
2926
|
-
#
|
2927
|
-
# 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.
|
2928
|
-
#
|
2929
|
-
# The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
|
3051
|
+
# 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).
|
2930
3052
|
# @param zone [::String]
|
2931
3053
|
# The name of the zone for this request.
|
2932
|
-
# @yield [result,
|
2933
|
-
# @yieldparam result [::
|
3054
|
+
# @yield [result, response] Access the result along with the Faraday response object
|
3055
|
+
# @yieldparam result [::Gapic::Rest::BaseOperation]
|
2934
3056
|
# @yieldparam response [::Faraday::Response]
|
2935
3057
|
#
|
2936
|
-
# @return [::
|
3058
|
+
# @return [::Gapic::Rest::BaseOperation]
|
2937
3059
|
#
|
2938
3060
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
2939
3061
|
def update_display_device request, options = nil
|
@@ -2945,33 +3067,32 @@ module Google
|
|
2945
3067
|
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
2946
3068
|
|
2947
3069
|
# Customize the options with defaults
|
2948
|
-
call_metadata =
|
3070
|
+
call_metadata = @config.rpcs.update_display_device.metadata.to_h
|
2949
3071
|
|
2950
3072
|
# Set x-goog-api-client header
|
2951
3073
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
2952
3074
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
2953
|
-
gapic_version: ::Google::Cloud::Compute::V1::VERSION
|
3075
|
+
gapic_version: ::Google::Cloud::Compute::V1::VERSION,
|
3076
|
+
transports_version_send: [:rest]
|
2954
3077
|
|
2955
|
-
options.apply_defaults timeout: @config.timeout,
|
3078
|
+
options.apply_defaults timeout: @config.rpcs.update_display_device.timeout,
|
2956
3079
|
metadata: call_metadata
|
2957
3080
|
|
2958
|
-
|
2959
|
-
|
2960
|
-
uri: uri,
|
2961
|
-
body: body,
|
2962
|
-
options: options
|
2963
|
-
)
|
2964
|
-
result = ::Google::Cloud::Compute::V1::Operation.decode_json response.body, ignore_unknown_fields: true
|
3081
|
+
options.apply_defaults timeout: @config.timeout,
|
3082
|
+
metadata: @config.metadata
|
2965
3083
|
|
2966
|
-
|
2967
|
-
|
3084
|
+
@instances_stub.update_display_device request, options do |result, response|
|
3085
|
+
result = ::Gapic::Rest::BaseOperation.new result
|
3086
|
+
yield result, response if block_given?
|
3087
|
+
return result
|
3088
|
+
end
|
2968
3089
|
rescue ::Faraday::Error => e
|
2969
3090
|
gapic_error = ::Gapic::Rest::Error.wrap_faraday_error e
|
2970
3091
|
raise ::Google::Cloud::Error.from_error(gapic_error)
|
2971
3092
|
end
|
2972
3093
|
|
2973
3094
|
##
|
2974
|
-
# Updates an instance's network interface. This method follows PATCH semantics.
|
3095
|
+
# Updates an instance's network interface. This method can only update an interface's alias IP range and attached network. See Modifying alias IP ranges for an existing instance for instructions on changing alias IP ranges. See Migrating a VM between networks for instructions on migrating an interface. This method follows PATCH semantics.
|
2975
3096
|
#
|
2976
3097
|
# @overload update_network_interface(request, options = nil)
|
2977
3098
|
# Pass arguments to `update_network_interface` via a request object, either of type
|
@@ -2999,18 +3120,14 @@ module Google
|
|
2999
3120
|
# @param project [::String]
|
3000
3121
|
# Project ID for this request.
|
3001
3122
|
# @param request_id [::String]
|
3002
|
-
# 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.
|
3003
|
-
#
|
3004
|
-
# 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.
|
3005
|
-
#
|
3006
|
-
# The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
|
3123
|
+
# 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).
|
3007
3124
|
# @param zone [::String]
|
3008
3125
|
# The name of the zone for this request.
|
3009
|
-
# @yield [result,
|
3010
|
-
# @yieldparam result [::
|
3126
|
+
# @yield [result, response] Access the result along with the Faraday response object
|
3127
|
+
# @yieldparam result [::Gapic::Rest::BaseOperation]
|
3011
3128
|
# @yieldparam response [::Faraday::Response]
|
3012
3129
|
#
|
3013
|
-
# @return [::
|
3130
|
+
# @return [::Gapic::Rest::BaseOperation]
|
3014
3131
|
#
|
3015
3132
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
3016
3133
|
def update_network_interface request, options = nil
|
@@ -3022,26 +3139,25 @@ module Google
|
|
3022
3139
|
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
3023
3140
|
|
3024
3141
|
# Customize the options with defaults
|
3025
|
-
call_metadata =
|
3142
|
+
call_metadata = @config.rpcs.update_network_interface.metadata.to_h
|
3026
3143
|
|
3027
3144
|
# Set x-goog-api-client header
|
3028
3145
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
3029
3146
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
3030
|
-
gapic_version: ::Google::Cloud::Compute::V1::VERSION
|
3147
|
+
gapic_version: ::Google::Cloud::Compute::V1::VERSION,
|
3148
|
+
transports_version_send: [:rest]
|
3031
3149
|
|
3032
|
-
options.apply_defaults timeout: @config.timeout,
|
3150
|
+
options.apply_defaults timeout: @config.rpcs.update_network_interface.timeout,
|
3033
3151
|
metadata: call_metadata
|
3034
3152
|
|
3035
|
-
|
3036
|
-
|
3037
|
-
uri: uri,
|
3038
|
-
body: body,
|
3039
|
-
options: options
|
3040
|
-
)
|
3041
|
-
result = ::Google::Cloud::Compute::V1::Operation.decode_json response.body, ignore_unknown_fields: true
|
3153
|
+
options.apply_defaults timeout: @config.timeout,
|
3154
|
+
metadata: @config.metadata
|
3042
3155
|
|
3043
|
-
|
3044
|
-
|
3156
|
+
@instances_stub.update_network_interface request, options do |result, response|
|
3157
|
+
result = ::Gapic::Rest::BaseOperation.new result
|
3158
|
+
yield result, response if block_given?
|
3159
|
+
return result
|
3160
|
+
end
|
3045
3161
|
rescue ::Faraday::Error => e
|
3046
3162
|
gapic_error = ::Gapic::Rest::Error.wrap_faraday_error e
|
3047
3163
|
raise ::Google::Cloud::Error.from_error(gapic_error)
|
@@ -3072,20 +3188,16 @@ module Google
|
|
3072
3188
|
# @param project [::String]
|
3073
3189
|
# Project ID for this request.
|
3074
3190
|
# @param request_id [::String]
|
3075
|
-
# 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.
|
3076
|
-
#
|
3077
|
-
# 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.
|
3078
|
-
#
|
3079
|
-
# The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
|
3191
|
+
# 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).
|
3080
3192
|
# @param shielded_instance_config_resource [::Google::Cloud::Compute::V1::ShieldedInstanceConfig, ::Hash]
|
3081
3193
|
# The body resource for this request
|
3082
3194
|
# @param zone [::String]
|
3083
3195
|
# The name of the zone for this request.
|
3084
|
-
# @yield [result,
|
3085
|
-
# @yieldparam result [::
|
3196
|
+
# @yield [result, response] Access the result along with the Faraday response object
|
3197
|
+
# @yieldparam result [::Gapic::Rest::BaseOperation]
|
3086
3198
|
# @yieldparam response [::Faraday::Response]
|
3087
3199
|
#
|
3088
|
-
# @return [::
|
3200
|
+
# @return [::Gapic::Rest::BaseOperation]
|
3089
3201
|
#
|
3090
3202
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
3091
3203
|
def update_shielded_instance_config request, options = nil
|
@@ -3097,26 +3209,25 @@ module Google
|
|
3097
3209
|
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
3098
3210
|
|
3099
3211
|
# Customize the options with defaults
|
3100
|
-
call_metadata =
|
3212
|
+
call_metadata = @config.rpcs.update_shielded_instance_config.metadata.to_h
|
3101
3213
|
|
3102
3214
|
# Set x-goog-api-client header
|
3103
3215
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
3104
3216
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
3105
|
-
gapic_version: ::Google::Cloud::Compute::V1::VERSION
|
3217
|
+
gapic_version: ::Google::Cloud::Compute::V1::VERSION,
|
3218
|
+
transports_version_send: [:rest]
|
3106
3219
|
|
3107
|
-
options.apply_defaults timeout: @config.timeout,
|
3220
|
+
options.apply_defaults timeout: @config.rpcs.update_shielded_instance_config.timeout,
|
3108
3221
|
metadata: call_metadata
|
3109
3222
|
|
3110
|
-
|
3111
|
-
|
3112
|
-
uri: uri,
|
3113
|
-
body: body,
|
3114
|
-
options: options
|
3115
|
-
)
|
3116
|
-
result = ::Google::Cloud::Compute::V1::Operation.decode_json response.body, ignore_unknown_fields: true
|
3223
|
+
options.apply_defaults timeout: @config.timeout,
|
3224
|
+
metadata: @config.metadata
|
3117
3225
|
|
3118
|
-
|
3119
|
-
|
3226
|
+
@instances_stub.update_shielded_instance_config request, options do |result, response|
|
3227
|
+
result = ::Gapic::Rest::BaseOperation.new result
|
3228
|
+
yield result, response if block_given?
|
3229
|
+
return result
|
3230
|
+
end
|
3120
3231
|
rescue ::Faraday::Error => e
|
3121
3232
|
gapic_error = ::Gapic::Rest::Error.wrap_faraday_error e
|
3122
3233
|
raise ::Google::Cloud::Error.from_error(gapic_error)
|
@@ -3171,6 +3282,9 @@ module Google
|
|
3171
3282
|
# @!attribute [rw] timeout
|
3172
3283
|
# The call timeout in seconds.
|
3173
3284
|
# @return [::Numeric]
|
3285
|
+
# @!attribute [rw] metadata
|
3286
|
+
# Additional REST headers to be sent with the call.
|
3287
|
+
# @return [::Hash{::Symbol=>::String}]
|
3174
3288
|
#
|
3175
3289
|
class Configuration
|
3176
3290
|
extend ::Gapic::Config
|
@@ -3184,6 +3298,7 @@ module Google
|
|
3184
3298
|
config_attr :lib_name, nil, ::String, nil
|
3185
3299
|
config_attr :lib_version, nil, ::String, nil
|
3186
3300
|
config_attr :timeout, nil, ::Numeric, nil
|
3301
|
+
config_attr :metadata, nil, ::Hash, nil
|
3187
3302
|
|
3188
3303
|
# @private
|
3189
3304
|
def initialize parent_config = nil
|
@@ -3191,6 +3306,340 @@ module Google
|
|
3191
3306
|
|
3192
3307
|
yield self if block_given?
|
3193
3308
|
end
|
3309
|
+
|
3310
|
+
##
|
3311
|
+
# Configurations for individual RPCs
|
3312
|
+
# @return [Rpcs]
|
3313
|
+
#
|
3314
|
+
def rpcs
|
3315
|
+
@rpcs ||= begin
|
3316
|
+
parent_rpcs = nil
|
3317
|
+
parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs)
|
3318
|
+
Rpcs.new parent_rpcs
|
3319
|
+
end
|
3320
|
+
end
|
3321
|
+
|
3322
|
+
##
|
3323
|
+
# Configuration RPC class for the Instances API.
|
3324
|
+
#
|
3325
|
+
# Includes fields providing the configuration for each RPC in this service.
|
3326
|
+
# Each configuration object is of type `Gapic::Config::Method` and includes
|
3327
|
+
# the following configuration fields:
|
3328
|
+
#
|
3329
|
+
# * `timeout` (*type:* `Numeric`) - The call timeout in seconds
|
3330
|
+
#
|
3331
|
+
# there is one other field (`retry_policy`) that can be set
|
3332
|
+
# but is currently not supported for REST Gapic libraries.
|
3333
|
+
#
|
3334
|
+
class Rpcs
|
3335
|
+
##
|
3336
|
+
# RPC-specific configuration for `add_access_config`
|
3337
|
+
# @return [::Gapic::Config::Method]
|
3338
|
+
#
|
3339
|
+
attr_reader :add_access_config
|
3340
|
+
##
|
3341
|
+
# RPC-specific configuration for `add_resource_policies`
|
3342
|
+
# @return [::Gapic::Config::Method]
|
3343
|
+
#
|
3344
|
+
attr_reader :add_resource_policies
|
3345
|
+
##
|
3346
|
+
# RPC-specific configuration for `aggregated_list`
|
3347
|
+
# @return [::Gapic::Config::Method]
|
3348
|
+
#
|
3349
|
+
attr_reader :aggregated_list
|
3350
|
+
##
|
3351
|
+
# RPC-specific configuration for `attach_disk`
|
3352
|
+
# @return [::Gapic::Config::Method]
|
3353
|
+
#
|
3354
|
+
attr_reader :attach_disk
|
3355
|
+
##
|
3356
|
+
# RPC-specific configuration for `bulk_insert`
|
3357
|
+
# @return [::Gapic::Config::Method]
|
3358
|
+
#
|
3359
|
+
attr_reader :bulk_insert
|
3360
|
+
##
|
3361
|
+
# RPC-specific configuration for `delete`
|
3362
|
+
# @return [::Gapic::Config::Method]
|
3363
|
+
#
|
3364
|
+
attr_reader :delete
|
3365
|
+
##
|
3366
|
+
# RPC-specific configuration for `delete_access_config`
|
3367
|
+
# @return [::Gapic::Config::Method]
|
3368
|
+
#
|
3369
|
+
attr_reader :delete_access_config
|
3370
|
+
##
|
3371
|
+
# RPC-specific configuration for `detach_disk`
|
3372
|
+
# @return [::Gapic::Config::Method]
|
3373
|
+
#
|
3374
|
+
attr_reader :detach_disk
|
3375
|
+
##
|
3376
|
+
# RPC-specific configuration for `get`
|
3377
|
+
# @return [::Gapic::Config::Method]
|
3378
|
+
#
|
3379
|
+
attr_reader :get
|
3380
|
+
##
|
3381
|
+
# RPC-specific configuration for `get_effective_firewalls`
|
3382
|
+
# @return [::Gapic::Config::Method]
|
3383
|
+
#
|
3384
|
+
attr_reader :get_effective_firewalls
|
3385
|
+
##
|
3386
|
+
# RPC-specific configuration for `get_guest_attributes`
|
3387
|
+
# @return [::Gapic::Config::Method]
|
3388
|
+
#
|
3389
|
+
attr_reader :get_guest_attributes
|
3390
|
+
##
|
3391
|
+
# RPC-specific configuration for `get_iam_policy`
|
3392
|
+
# @return [::Gapic::Config::Method]
|
3393
|
+
#
|
3394
|
+
attr_reader :get_iam_policy
|
3395
|
+
##
|
3396
|
+
# RPC-specific configuration for `get_screenshot`
|
3397
|
+
# @return [::Gapic::Config::Method]
|
3398
|
+
#
|
3399
|
+
attr_reader :get_screenshot
|
3400
|
+
##
|
3401
|
+
# RPC-specific configuration for `get_serial_port_output`
|
3402
|
+
# @return [::Gapic::Config::Method]
|
3403
|
+
#
|
3404
|
+
attr_reader :get_serial_port_output
|
3405
|
+
##
|
3406
|
+
# RPC-specific configuration for `get_shielded_instance_identity`
|
3407
|
+
# @return [::Gapic::Config::Method]
|
3408
|
+
#
|
3409
|
+
attr_reader :get_shielded_instance_identity
|
3410
|
+
##
|
3411
|
+
# RPC-specific configuration for `insert`
|
3412
|
+
# @return [::Gapic::Config::Method]
|
3413
|
+
#
|
3414
|
+
attr_reader :insert
|
3415
|
+
##
|
3416
|
+
# RPC-specific configuration for `list`
|
3417
|
+
# @return [::Gapic::Config::Method]
|
3418
|
+
#
|
3419
|
+
attr_reader :list
|
3420
|
+
##
|
3421
|
+
# RPC-specific configuration for `list_referrers`
|
3422
|
+
# @return [::Gapic::Config::Method]
|
3423
|
+
#
|
3424
|
+
attr_reader :list_referrers
|
3425
|
+
##
|
3426
|
+
# RPC-specific configuration for `remove_resource_policies`
|
3427
|
+
# @return [::Gapic::Config::Method]
|
3428
|
+
#
|
3429
|
+
attr_reader :remove_resource_policies
|
3430
|
+
##
|
3431
|
+
# RPC-specific configuration for `reset`
|
3432
|
+
# @return [::Gapic::Config::Method]
|
3433
|
+
#
|
3434
|
+
attr_reader :reset
|
3435
|
+
##
|
3436
|
+
# RPC-specific configuration for `send_diagnostic_interrupt`
|
3437
|
+
# @return [::Gapic::Config::Method]
|
3438
|
+
#
|
3439
|
+
attr_reader :send_diagnostic_interrupt
|
3440
|
+
##
|
3441
|
+
# RPC-specific configuration for `set_deletion_protection`
|
3442
|
+
# @return [::Gapic::Config::Method]
|
3443
|
+
#
|
3444
|
+
attr_reader :set_deletion_protection
|
3445
|
+
##
|
3446
|
+
# RPC-specific configuration for `set_disk_auto_delete`
|
3447
|
+
# @return [::Gapic::Config::Method]
|
3448
|
+
#
|
3449
|
+
attr_reader :set_disk_auto_delete
|
3450
|
+
##
|
3451
|
+
# RPC-specific configuration for `set_iam_policy`
|
3452
|
+
# @return [::Gapic::Config::Method]
|
3453
|
+
#
|
3454
|
+
attr_reader :set_iam_policy
|
3455
|
+
##
|
3456
|
+
# RPC-specific configuration for `set_labels`
|
3457
|
+
# @return [::Gapic::Config::Method]
|
3458
|
+
#
|
3459
|
+
attr_reader :set_labels
|
3460
|
+
##
|
3461
|
+
# RPC-specific configuration for `set_machine_resources`
|
3462
|
+
# @return [::Gapic::Config::Method]
|
3463
|
+
#
|
3464
|
+
attr_reader :set_machine_resources
|
3465
|
+
##
|
3466
|
+
# RPC-specific configuration for `set_machine_type`
|
3467
|
+
# @return [::Gapic::Config::Method]
|
3468
|
+
#
|
3469
|
+
attr_reader :set_machine_type
|
3470
|
+
##
|
3471
|
+
# RPC-specific configuration for `set_metadata`
|
3472
|
+
# @return [::Gapic::Config::Method]
|
3473
|
+
#
|
3474
|
+
attr_reader :set_metadata
|
3475
|
+
##
|
3476
|
+
# RPC-specific configuration for `set_min_cpu_platform`
|
3477
|
+
# @return [::Gapic::Config::Method]
|
3478
|
+
#
|
3479
|
+
attr_reader :set_min_cpu_platform
|
3480
|
+
##
|
3481
|
+
# RPC-specific configuration for `set_scheduling`
|
3482
|
+
# @return [::Gapic::Config::Method]
|
3483
|
+
#
|
3484
|
+
attr_reader :set_scheduling
|
3485
|
+
##
|
3486
|
+
# RPC-specific configuration for `set_service_account`
|
3487
|
+
# @return [::Gapic::Config::Method]
|
3488
|
+
#
|
3489
|
+
attr_reader :set_service_account
|
3490
|
+
##
|
3491
|
+
# RPC-specific configuration for `set_shielded_instance_integrity_policy`
|
3492
|
+
# @return [::Gapic::Config::Method]
|
3493
|
+
#
|
3494
|
+
attr_reader :set_shielded_instance_integrity_policy
|
3495
|
+
##
|
3496
|
+
# RPC-specific configuration for `set_tags`
|
3497
|
+
# @return [::Gapic::Config::Method]
|
3498
|
+
#
|
3499
|
+
attr_reader :set_tags
|
3500
|
+
##
|
3501
|
+
# RPC-specific configuration for `simulate_maintenance_event`
|
3502
|
+
# @return [::Gapic::Config::Method]
|
3503
|
+
#
|
3504
|
+
attr_reader :simulate_maintenance_event
|
3505
|
+
##
|
3506
|
+
# RPC-specific configuration for `start`
|
3507
|
+
# @return [::Gapic::Config::Method]
|
3508
|
+
#
|
3509
|
+
attr_reader :start
|
3510
|
+
##
|
3511
|
+
# RPC-specific configuration for `start_with_encryption_key`
|
3512
|
+
# @return [::Gapic::Config::Method]
|
3513
|
+
#
|
3514
|
+
attr_reader :start_with_encryption_key
|
3515
|
+
##
|
3516
|
+
# RPC-specific configuration for `stop`
|
3517
|
+
# @return [::Gapic::Config::Method]
|
3518
|
+
#
|
3519
|
+
attr_reader :stop
|
3520
|
+
##
|
3521
|
+
# RPC-specific configuration for `test_iam_permissions`
|
3522
|
+
# @return [::Gapic::Config::Method]
|
3523
|
+
#
|
3524
|
+
attr_reader :test_iam_permissions
|
3525
|
+
##
|
3526
|
+
# RPC-specific configuration for `update`
|
3527
|
+
# @return [::Gapic::Config::Method]
|
3528
|
+
#
|
3529
|
+
attr_reader :update
|
3530
|
+
##
|
3531
|
+
# RPC-specific configuration for `update_access_config`
|
3532
|
+
# @return [::Gapic::Config::Method]
|
3533
|
+
#
|
3534
|
+
attr_reader :update_access_config
|
3535
|
+
##
|
3536
|
+
# RPC-specific configuration for `update_display_device`
|
3537
|
+
# @return [::Gapic::Config::Method]
|
3538
|
+
#
|
3539
|
+
attr_reader :update_display_device
|
3540
|
+
##
|
3541
|
+
# RPC-specific configuration for `update_network_interface`
|
3542
|
+
# @return [::Gapic::Config::Method]
|
3543
|
+
#
|
3544
|
+
attr_reader :update_network_interface
|
3545
|
+
##
|
3546
|
+
# RPC-specific configuration for `update_shielded_instance_config`
|
3547
|
+
# @return [::Gapic::Config::Method]
|
3548
|
+
#
|
3549
|
+
attr_reader :update_shielded_instance_config
|
3550
|
+
|
3551
|
+
# @private
|
3552
|
+
def initialize parent_rpcs = nil
|
3553
|
+
add_access_config_config = parent_rpcs.add_access_config if parent_rpcs.respond_to? :add_access_config
|
3554
|
+
@add_access_config = ::Gapic::Config::Method.new add_access_config_config
|
3555
|
+
add_resource_policies_config = parent_rpcs.add_resource_policies if parent_rpcs.respond_to? :add_resource_policies
|
3556
|
+
@add_resource_policies = ::Gapic::Config::Method.new add_resource_policies_config
|
3557
|
+
aggregated_list_config = parent_rpcs.aggregated_list if parent_rpcs.respond_to? :aggregated_list
|
3558
|
+
@aggregated_list = ::Gapic::Config::Method.new aggregated_list_config
|
3559
|
+
attach_disk_config = parent_rpcs.attach_disk if parent_rpcs.respond_to? :attach_disk
|
3560
|
+
@attach_disk = ::Gapic::Config::Method.new attach_disk_config
|
3561
|
+
bulk_insert_config = parent_rpcs.bulk_insert if parent_rpcs.respond_to? :bulk_insert
|
3562
|
+
@bulk_insert = ::Gapic::Config::Method.new bulk_insert_config
|
3563
|
+
delete_config = parent_rpcs.delete if parent_rpcs.respond_to? :delete
|
3564
|
+
@delete = ::Gapic::Config::Method.new delete_config
|
3565
|
+
delete_access_config_config = parent_rpcs.delete_access_config if parent_rpcs.respond_to? :delete_access_config
|
3566
|
+
@delete_access_config = ::Gapic::Config::Method.new delete_access_config_config
|
3567
|
+
detach_disk_config = parent_rpcs.detach_disk if parent_rpcs.respond_to? :detach_disk
|
3568
|
+
@detach_disk = ::Gapic::Config::Method.new detach_disk_config
|
3569
|
+
get_config = parent_rpcs.get if parent_rpcs.respond_to? :get
|
3570
|
+
@get = ::Gapic::Config::Method.new get_config
|
3571
|
+
get_effective_firewalls_config = parent_rpcs.get_effective_firewalls if parent_rpcs.respond_to? :get_effective_firewalls
|
3572
|
+
@get_effective_firewalls = ::Gapic::Config::Method.new get_effective_firewalls_config
|
3573
|
+
get_guest_attributes_config = parent_rpcs.get_guest_attributes if parent_rpcs.respond_to? :get_guest_attributes
|
3574
|
+
@get_guest_attributes = ::Gapic::Config::Method.new get_guest_attributes_config
|
3575
|
+
get_iam_policy_config = parent_rpcs.get_iam_policy if parent_rpcs.respond_to? :get_iam_policy
|
3576
|
+
@get_iam_policy = ::Gapic::Config::Method.new get_iam_policy_config
|
3577
|
+
get_screenshot_config = parent_rpcs.get_screenshot if parent_rpcs.respond_to? :get_screenshot
|
3578
|
+
@get_screenshot = ::Gapic::Config::Method.new get_screenshot_config
|
3579
|
+
get_serial_port_output_config = parent_rpcs.get_serial_port_output if parent_rpcs.respond_to? :get_serial_port_output
|
3580
|
+
@get_serial_port_output = ::Gapic::Config::Method.new get_serial_port_output_config
|
3581
|
+
get_shielded_instance_identity_config = parent_rpcs.get_shielded_instance_identity if parent_rpcs.respond_to? :get_shielded_instance_identity
|
3582
|
+
@get_shielded_instance_identity = ::Gapic::Config::Method.new get_shielded_instance_identity_config
|
3583
|
+
insert_config = parent_rpcs.insert if parent_rpcs.respond_to? :insert
|
3584
|
+
@insert = ::Gapic::Config::Method.new insert_config
|
3585
|
+
list_config = parent_rpcs.list if parent_rpcs.respond_to? :list
|
3586
|
+
@list = ::Gapic::Config::Method.new list_config
|
3587
|
+
list_referrers_config = parent_rpcs.list_referrers if parent_rpcs.respond_to? :list_referrers
|
3588
|
+
@list_referrers = ::Gapic::Config::Method.new list_referrers_config
|
3589
|
+
remove_resource_policies_config = parent_rpcs.remove_resource_policies if parent_rpcs.respond_to? :remove_resource_policies
|
3590
|
+
@remove_resource_policies = ::Gapic::Config::Method.new remove_resource_policies_config
|
3591
|
+
reset_config = parent_rpcs.reset if parent_rpcs.respond_to? :reset
|
3592
|
+
@reset = ::Gapic::Config::Method.new reset_config
|
3593
|
+
send_diagnostic_interrupt_config = parent_rpcs.send_diagnostic_interrupt if parent_rpcs.respond_to? :send_diagnostic_interrupt
|
3594
|
+
@send_diagnostic_interrupt = ::Gapic::Config::Method.new send_diagnostic_interrupt_config
|
3595
|
+
set_deletion_protection_config = parent_rpcs.set_deletion_protection if parent_rpcs.respond_to? :set_deletion_protection
|
3596
|
+
@set_deletion_protection = ::Gapic::Config::Method.new set_deletion_protection_config
|
3597
|
+
set_disk_auto_delete_config = parent_rpcs.set_disk_auto_delete if parent_rpcs.respond_to? :set_disk_auto_delete
|
3598
|
+
@set_disk_auto_delete = ::Gapic::Config::Method.new set_disk_auto_delete_config
|
3599
|
+
set_iam_policy_config = parent_rpcs.set_iam_policy if parent_rpcs.respond_to? :set_iam_policy
|
3600
|
+
@set_iam_policy = ::Gapic::Config::Method.new set_iam_policy_config
|
3601
|
+
set_labels_config = parent_rpcs.set_labels if parent_rpcs.respond_to? :set_labels
|
3602
|
+
@set_labels = ::Gapic::Config::Method.new set_labels_config
|
3603
|
+
set_machine_resources_config = parent_rpcs.set_machine_resources if parent_rpcs.respond_to? :set_machine_resources
|
3604
|
+
@set_machine_resources = ::Gapic::Config::Method.new set_machine_resources_config
|
3605
|
+
set_machine_type_config = parent_rpcs.set_machine_type if parent_rpcs.respond_to? :set_machine_type
|
3606
|
+
@set_machine_type = ::Gapic::Config::Method.new set_machine_type_config
|
3607
|
+
set_metadata_config = parent_rpcs.set_metadata if parent_rpcs.respond_to? :set_metadata
|
3608
|
+
@set_metadata = ::Gapic::Config::Method.new set_metadata_config
|
3609
|
+
set_min_cpu_platform_config = parent_rpcs.set_min_cpu_platform if parent_rpcs.respond_to? :set_min_cpu_platform
|
3610
|
+
@set_min_cpu_platform = ::Gapic::Config::Method.new set_min_cpu_platform_config
|
3611
|
+
set_scheduling_config = parent_rpcs.set_scheduling if parent_rpcs.respond_to? :set_scheduling
|
3612
|
+
@set_scheduling = ::Gapic::Config::Method.new set_scheduling_config
|
3613
|
+
set_service_account_config = parent_rpcs.set_service_account if parent_rpcs.respond_to? :set_service_account
|
3614
|
+
@set_service_account = ::Gapic::Config::Method.new set_service_account_config
|
3615
|
+
set_shielded_instance_integrity_policy_config = parent_rpcs.set_shielded_instance_integrity_policy if parent_rpcs.respond_to? :set_shielded_instance_integrity_policy
|
3616
|
+
@set_shielded_instance_integrity_policy = ::Gapic::Config::Method.new set_shielded_instance_integrity_policy_config
|
3617
|
+
set_tags_config = parent_rpcs.set_tags if parent_rpcs.respond_to? :set_tags
|
3618
|
+
@set_tags = ::Gapic::Config::Method.new set_tags_config
|
3619
|
+
simulate_maintenance_event_config = parent_rpcs.simulate_maintenance_event if parent_rpcs.respond_to? :simulate_maintenance_event
|
3620
|
+
@simulate_maintenance_event = ::Gapic::Config::Method.new simulate_maintenance_event_config
|
3621
|
+
start_config = parent_rpcs.start if parent_rpcs.respond_to? :start
|
3622
|
+
@start = ::Gapic::Config::Method.new start_config
|
3623
|
+
start_with_encryption_key_config = parent_rpcs.start_with_encryption_key if parent_rpcs.respond_to? :start_with_encryption_key
|
3624
|
+
@start_with_encryption_key = ::Gapic::Config::Method.new start_with_encryption_key_config
|
3625
|
+
stop_config = parent_rpcs.stop if parent_rpcs.respond_to? :stop
|
3626
|
+
@stop = ::Gapic::Config::Method.new stop_config
|
3627
|
+
test_iam_permissions_config = parent_rpcs.test_iam_permissions if parent_rpcs.respond_to? :test_iam_permissions
|
3628
|
+
@test_iam_permissions = ::Gapic::Config::Method.new test_iam_permissions_config
|
3629
|
+
update_config = parent_rpcs.update if parent_rpcs.respond_to? :update
|
3630
|
+
@update = ::Gapic::Config::Method.new update_config
|
3631
|
+
update_access_config_config = parent_rpcs.update_access_config if parent_rpcs.respond_to? :update_access_config
|
3632
|
+
@update_access_config = ::Gapic::Config::Method.new update_access_config_config
|
3633
|
+
update_display_device_config = parent_rpcs.update_display_device if parent_rpcs.respond_to? :update_display_device
|
3634
|
+
@update_display_device = ::Gapic::Config::Method.new update_display_device_config
|
3635
|
+
update_network_interface_config = parent_rpcs.update_network_interface if parent_rpcs.respond_to? :update_network_interface
|
3636
|
+
@update_network_interface = ::Gapic::Config::Method.new update_network_interface_config
|
3637
|
+
update_shielded_instance_config_config = parent_rpcs.update_shielded_instance_config if parent_rpcs.respond_to? :update_shielded_instance_config
|
3638
|
+
@update_shielded_instance_config = ::Gapic::Config::Method.new update_shielded_instance_config_config
|
3639
|
+
|
3640
|
+
yield self if block_given?
|
3641
|
+
end
|
3642
|
+
end
|
3194
3643
|
end
|
3195
3644
|
end
|
3196
3645
|
end
|