google-cloud-compute-v1 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.yardopts +12 -0
- data/AUTHENTICATION.md +169 -0
- data/LICENSE.md +201 -0
- data/README.md +73 -0
- data/lib/google-cloud-compute-v1.rb +21 -0
- data/lib/google/cloud/compute/v1.rb +110 -0
- data/lib/google/cloud/compute/v1/accelerator_types.rb +44 -0
- data/lib/google/cloud/compute/v1/accelerator_types/credentials.rb +53 -0
- data/lib/google/cloud/compute/v1/accelerator_types/rest.rb +35 -0
- data/lib/google/cloud/compute/v1/accelerator_types/rest/client.rb +452 -0
- data/lib/google/cloud/compute/v1/accelerator_types/rest/grpc_transcoding.rb +81 -0
- data/lib/google/cloud/compute/v1/addresses.rb +44 -0
- data/lib/google/cloud/compute/v1/addresses/credentials.rb +52 -0
- data/lib/google/cloud/compute/v1/addresses/rest.rb +35 -0
- data/lib/google/cloud/compute/v1/addresses/rest/client.rb +596 -0
- data/lib/google/cloud/compute/v1/addresses/rest/grpc_transcoding.rb +106 -0
- data/lib/google/cloud/compute/v1/autoscalers.rb +44 -0
- data/lib/google/cloud/compute/v1/autoscalers/credentials.rb +52 -0
- data/lib/google/cloud/compute/v1/autoscalers/rest.rb +35 -0
- data/lib/google/cloud/compute/v1/autoscalers/rest/client.rb +746 -0
- data/lib/google/cloud/compute/v1/autoscalers/rest/grpc_transcoding.rb +130 -0
- data/lib/google/cloud/compute/v1/backend_buckets.rb +44 -0
- data/lib/google/cloud/compute/v1/backend_buckets/credentials.rb +52 -0
- data/lib/google/cloud/compute/v1/backend_buckets/rest.rb +35 -0
- data/lib/google/cloud/compute/v1/backend_buckets/rest/client.rb +795 -0
- data/lib/google/cloud/compute/v1/backend_buckets/rest/grpc_transcoding.rb +138 -0
- data/lib/google/cloud/compute/v1/backend_services.rb +44 -0
- data/lib/google/cloud/compute/v1/backend_services/credentials.rb +52 -0
- data/lib/google/cloud/compute/v1/backend_services/rest.rb +35 -0
- data/lib/google/cloud/compute/v1/backend_services/rest/client.rb +1023 -0
- data/lib/google/cloud/compute/v1/backend_services/rest/grpc_transcoding.rb +180 -0
- data/lib/google/cloud/compute/v1/compute_pb.rb +9482 -0
- data/lib/google/cloud/compute/v1/disk_types.rb +44 -0
- data/lib/google/cloud/compute/v1/disk_types/credentials.rb +53 -0
- data/lib/google/cloud/compute/v1/disk_types/rest.rb +35 -0
- data/lib/google/cloud/compute/v1/disk_types/rest/client.rb +450 -0
- data/lib/google/cloud/compute/v1/disk_types/rest/grpc_transcoding.rb +81 -0
- data/lib/google/cloud/compute/v1/disks.rb +44 -0
- data/lib/google/cloud/compute/v1/disks/credentials.rb +52 -0
- data/lib/google/cloud/compute/v1/disks/rest.rb +35 -0
- data/lib/google/cloud/compute/v1/disks/rest/client.rb +1182 -0
- data/lib/google/cloud/compute/v1/disks/rest/grpc_transcoding.rb +203 -0
- data/lib/google/cloud/compute/v1/external_vpn_gateways.rb +44 -0
- data/lib/google/cloud/compute/v1/external_vpn_gateways/credentials.rb +52 -0
- data/lib/google/cloud/compute/v1/external_vpn_gateways/rest.rb +35 -0
- data/lib/google/cloud/compute/v1/external_vpn_gateways/rest/client.rb +637 -0
- data/lib/google/cloud/compute/v1/external_vpn_gateways/rest/grpc_transcoding.rb +112 -0
- data/lib/google/cloud/compute/v1/firewalls.rb +44 -0
- data/lib/google/cloud/compute/v1/firewalls/credentials.rb +52 -0
- data/lib/google/cloud/compute/v1/firewalls/rest.rb +35 -0
- data/lib/google/cloud/compute/v1/firewalls/rest/client.rb +649 -0
- data/lib/google/cloud/compute/v1/firewalls/rest/grpc_transcoding.rb +112 -0
- data/lib/google/cloud/compute/v1/forwarding_rules.rb +44 -0
- data/lib/google/cloud/compute/v1/forwarding_rules/credentials.rb +52 -0
- data/lib/google/cloud/compute/v1/forwarding_rules/rest.rb +35 -0
- data/lib/google/cloud/compute/v1/forwarding_rules/rest/client.rb +746 -0
- data/lib/google/cloud/compute/v1/forwarding_rules/rest/grpc_transcoding.rb +130 -0
- data/lib/google/cloud/compute/v1/global_addresses.rb +44 -0
- data/lib/google/cloud/compute/v1/global_addresses/credentials.rb +52 -0
- data/lib/google/cloud/compute/v1/global_addresses/rest.rb +35 -0
- data/lib/google/cloud/compute/v1/global_addresses/rest/client.rb +503 -0
- data/lib/google/cloud/compute/v1/global_addresses/rest/grpc_transcoding.rb +88 -0
- data/lib/google/cloud/compute/v1/global_forwarding_rules.rb +44 -0
- data/lib/google/cloud/compute/v1/global_forwarding_rules/credentials.rb +52 -0
- data/lib/google/cloud/compute/v1/global_forwarding_rules/rest.rb +35 -0
- data/lib/google/cloud/compute/v1/global_forwarding_rules/rest/client.rb +649 -0
- data/lib/google/cloud/compute/v1/global_forwarding_rules/rest/grpc_transcoding.rb +112 -0
- data/lib/google/cloud/compute/v1/global_network_endpoint_groups.rb +44 -0
- data/lib/google/cloud/compute/v1/global_network_endpoint_groups/credentials.rb +52 -0
- data/lib/google/cloud/compute/v1/global_network_endpoint_groups/rest.rb +35 -0
- data/lib/google/cloud/compute/v1/global_network_endpoint_groups/rest/client.rb +734 -0
- data/lib/google/cloud/compute/v1/global_network_endpoint_groups/rest/grpc_transcoding.rb +129 -0
- data/lib/google/cloud/compute/v1/global_operations.rb +44 -0
- data/lib/google/cloud/compute/v1/global_operations/credentials.rb +52 -0
- data/lib/google/cloud/compute/v1/global_operations/rest.rb +35 -0
- data/lib/google/cloud/compute/v1/global_operations/rest/client.rb +578 -0
- data/lib/google/cloud/compute/v1/global_operations/rest/grpc_transcoding.rb +105 -0
- data/lib/google/cloud/compute/v1/global_organization_operations.rb +44 -0
- data/lib/google/cloud/compute/v1/global_organization_operations/credentials.rb +52 -0
- data/lib/google/cloud/compute/v1/global_organization_operations/rest.rb +35 -0
- data/lib/google/cloud/compute/v1/global_organization_operations/rest/client.rb +427 -0
- data/lib/google/cloud/compute/v1/global_organization_operations/rest/grpc_transcoding.rb +78 -0
- data/lib/google/cloud/compute/v1/health_checks.rb +44 -0
- data/lib/google/cloud/compute/v1/health_checks/credentials.rb +52 -0
- data/lib/google/cloud/compute/v1/health_checks/rest.rb +35 -0
- data/lib/google/cloud/compute/v1/health_checks/rest/client.rb +734 -0
- data/lib/google/cloud/compute/v1/health_checks/rest/grpc_transcoding.rb +130 -0
- data/lib/google/cloud/compute/v1/images.rb +44 -0
- data/lib/google/cloud/compute/v1/images/credentials.rb +52 -0
- data/lib/google/cloud/compute/v1/images/rest.rb +35 -0
- data/lib/google/cloud/compute/v1/images/rest/client.rb +985 -0
- data/lib/google/cloud/compute/v1/images/rest/grpc_transcoding.rb +173 -0
- data/lib/google/cloud/compute/v1/instance_group_managers.rb +44 -0
- data/lib/google/cloud/compute/v1/instance_group_managers/credentials.rb +52 -0
- data/lib/google/cloud/compute/v1/instance_group_managers/rest.rb +35 -0
- data/lib/google/cloud/compute/v1/instance_group_managers/rest/client.rb +1767 -0
- data/lib/google/cloud/compute/v1/instance_group_managers/rest/grpc_transcoding.rb +303 -0
- data/lib/google/cloud/compute/v1/instance_groups.rb +44 -0
- data/lib/google/cloud/compute/v1/instance_groups/credentials.rb +52 -0
- data/lib/google/cloud/compute/v1/instance_groups/rest.rb +35 -0
- data/lib/google/cloud/compute/v1/instance_groups/rest/client.rb +916 -0
- data/lib/google/cloud/compute/v1/instance_groups/rest/grpc_transcoding.rb +154 -0
- data/lib/google/cloud/compute/v1/instance_templates.rb +44 -0
- data/lib/google/cloud/compute/v1/instance_templates/credentials.rb +52 -0
- data/lib/google/cloud/compute/v1/instance_templates/rest.rb +35 -0
- data/lib/google/cloud/compute/v1/instance_templates/rest/client.rb +704 -0
- data/lib/google/cloud/compute/v1/instance_templates/rest/grpc_transcoding.rb +125 -0
- data/lib/google/cloud/compute/v1/instances.rb +44 -0
- data/lib/google/cloud/compute/v1/instances/credentials.rb +52 -0
- data/lib/google/cloud/compute/v1/instances/rest.rb +35 -0
- data/lib/google/cloud/compute/v1/instances/rest/client.rb +3201 -0
- data/lib/google/cloud/compute/v1/instances/rest/grpc_transcoding.rb +549 -0
- data/lib/google/cloud/compute/v1/interconnect_attachments.rb +44 -0
- data/lib/google/cloud/compute/v1/interconnect_attachments/credentials.rb +52 -0
- data/lib/google/cloud/compute/v1/interconnect_attachments/rest.rb +35 -0
- data/lib/google/cloud/compute/v1/interconnect_attachments/rest/client.rb +673 -0
- data/lib/google/cloud/compute/v1/interconnect_attachments/rest/grpc_transcoding.rb +118 -0
- data/lib/google/cloud/compute/v1/interconnect_locations.rb +44 -0
- data/lib/google/cloud/compute/v1/interconnect_locations/credentials.rb +53 -0
- data/lib/google/cloud/compute/v1/interconnect_locations/rest.rb +35 -0
- data/lib/google/cloud/compute/v1/interconnect_locations/rest/client.rb +361 -0
- data/lib/google/cloud/compute/v1/interconnect_locations/rest/grpc_transcoding.rb +63 -0
- data/lib/google/cloud/compute/v1/interconnects.rb +44 -0
- data/lib/google/cloud/compute/v1/interconnects/credentials.rb +52 -0
- data/lib/google/cloud/compute/v1/interconnects/rest.rb +35 -0
- data/lib/google/cloud/compute/v1/interconnects/rest/client.rb +640 -0
- data/lib/google/cloud/compute/v1/interconnects/rest/grpc_transcoding.rb +112 -0
- data/lib/google/cloud/compute/v1/license_codes.rb +44 -0
- data/lib/google/cloud/compute/v1/license_codes/credentials.rb +53 -0
- data/lib/google/cloud/compute/v1/license_codes/rest.rb +35 -0
- data/lib/google/cloud/compute/v1/license_codes/rest/client.rb +345 -0
- data/lib/google/cloud/compute/v1/license_codes/rest/grpc_transcoding.rb +58 -0
- data/lib/google/cloud/compute/v1/licenses.rb +44 -0
- data/lib/google/cloud/compute/v1/licenses/credentials.rb +52 -0
- data/lib/google/cloud/compute/v1/licenses/rest.rb +35 -0
- data/lib/google/cloud/compute/v1/licenses/rest/client.rb +704 -0
- data/lib/google/cloud/compute/v1/licenses/rest/grpc_transcoding.rb +125 -0
- data/lib/google/cloud/compute/v1/machine_types.rb +44 -0
- data/lib/google/cloud/compute/v1/machine_types/credentials.rb +53 -0
- data/lib/google/cloud/compute/v1/machine_types/rest.rb +35 -0
- data/lib/google/cloud/compute/v1/machine_types/rest/client.rb +450 -0
- data/lib/google/cloud/compute/v1/machine_types/rest/grpc_transcoding.rb +81 -0
- data/lib/google/cloud/compute/v1/network_endpoint_groups.rb +44 -0
- data/lib/google/cloud/compute/v1/network_endpoint_groups/credentials.rb +52 -0
- data/lib/google/cloud/compute/v1/network_endpoint_groups/rest.rb +35 -0
- data/lib/google/cloud/compute/v1/network_endpoint_groups/rest/client.rb +904 -0
- data/lib/google/cloud/compute/v1/network_endpoint_groups/rest/grpc_transcoding.rb +154 -0
- data/lib/google/cloud/compute/v1/networks.rb +44 -0
- data/lib/google/cloud/compute/v1/networks/credentials.rb +52 -0
- data/lib/google/cloud/compute/v1/networks/rest.rb +35 -0
- data/lib/google/cloud/compute/v1/networks/rest/client.rb +957 -0
- data/lib/google/cloud/compute/v1/networks/rest/grpc_transcoding.rb +169 -0
- data/lib/google/cloud/compute/v1/node_groups.rb +44 -0
- data/lib/google/cloud/compute/v1/node_groups/credentials.rb +52 -0
- data/lib/google/cloud/compute/v1/node_groups/rest.rb +35 -0
- data/lib/google/cloud/compute/v1/node_groups/rest/client.rb +1192 -0
- data/lib/google/cloud/compute/v1/node_groups/rest/grpc_transcoding.rb +208 -0
- data/lib/google/cloud/compute/v1/node_templates.rb +44 -0
- data/lib/google/cloud/compute/v1/node_templates/credentials.rb +52 -0
- data/lib/google/cloud/compute/v1/node_templates/rest.rb +35 -0
- data/lib/google/cloud/compute/v1/node_templates/rest/client.rb +803 -0
- data/lib/google/cloud/compute/v1/node_templates/rest/grpc_transcoding.rb +143 -0
- data/lib/google/cloud/compute/v1/node_types.rb +44 -0
- data/lib/google/cloud/compute/v1/node_types/credentials.rb +53 -0
- data/lib/google/cloud/compute/v1/node_types/rest.rb +35 -0
- data/lib/google/cloud/compute/v1/node_types/rest/client.rb +450 -0
- data/lib/google/cloud/compute/v1/node_types/rest/grpc_transcoding.rb +81 -0
- data/lib/google/cloud/compute/v1/packet_mirrorings.rb +44 -0
- data/lib/google/cloud/compute/v1/packet_mirrorings/credentials.rb +52 -0
- data/lib/google/cloud/compute/v1/packet_mirrorings/rest.rb +35 -0
- data/lib/google/cloud/compute/v1/packet_mirrorings/rest/client.rb +740 -0
- data/lib/google/cloud/compute/v1/packet_mirrorings/rest/grpc_transcoding.rb +130 -0
- data/lib/google/cloud/compute/v1/projects.rb +44 -0
- data/lib/google/cloud/compute/v1/projects/credentials.rb +52 -0
- data/lib/google/cloud/compute/v1/projects/rest.rb +35 -0
- data/lib/google/cloud/compute/v1/projects/rest/client.rb +1141 -0
- data/lib/google/cloud/compute/v1/projects/rest/grpc_transcoding.rb +197 -0
- data/lib/google/cloud/compute/v1/region_autoscalers.rb +44 -0
- data/lib/google/cloud/compute/v1/region_autoscalers/credentials.rb +52 -0
- data/lib/google/cloud/compute/v1/region_autoscalers/rest.rb +35 -0
- data/lib/google/cloud/compute/v1/region_autoscalers/rest/client.rb +661 -0
- data/lib/google/cloud/compute/v1/region_autoscalers/rest/grpc_transcoding.rb +112 -0
- data/lib/google/cloud/compute/v1/region_backend_services.rb +44 -0
- data/lib/google/cloud/compute/v1/region_backend_services/credentials.rb +52 -0
- data/lib/google/cloud/compute/v1/region_backend_services/rest.rb +35 -0
- data/lib/google/cloud/compute/v1/region_backend_services/rest/client.rb +729 -0
- data/lib/google/cloud/compute/v1/region_backend_services/rest/grpc_transcoding.rb +124 -0
- data/lib/google/cloud/compute/v1/region_commitments.rb +44 -0
- data/lib/google/cloud/compute/v1/region_commitments/credentials.rb +52 -0
- data/lib/google/cloud/compute/v1/region_commitments/rest.rb +35 -0
- data/lib/google/cloud/compute/v1/region_commitments/rest/client.rb +523 -0
- data/lib/google/cloud/compute/v1/region_commitments/rest/grpc_transcoding.rb +93 -0
- data/lib/google/cloud/compute/v1/region_disk_types.rb +44 -0
- data/lib/google/cloud/compute/v1/region_disk_types/credentials.rb +53 -0
- data/lib/google/cloud/compute/v1/region_disk_types/rest.rb +35 -0
- data/lib/google/cloud/compute/v1/region_disk_types/rest/client.rb +365 -0
- data/lib/google/cloud/compute/v1/region_disk_types/rest/grpc_transcoding.rb +63 -0
- data/lib/google/cloud/compute/v1/region_disks.rb +44 -0
- data/lib/google/cloud/compute/v1/region_disks/credentials.rb +52 -0
- data/lib/google/cloud/compute/v1/region_disks/rest.rb +35 -0
- data/lib/google/cloud/compute/v1/region_disks/rest/client.rb +1095 -0
- data/lib/google/cloud/compute/v1/region_disks/rest/grpc_transcoding.rb +185 -0
- data/lib/google/cloud/compute/v1/region_health_check_services.rb +44 -0
- data/lib/google/cloud/compute/v1/region_health_check_services/credentials.rb +52 -0
- data/lib/google/cloud/compute/v1/region_health_check_services/rest.rb +35 -0
- data/lib/google/cloud/compute/v1/region_health_check_services/rest/client.rb +586 -0
- data/lib/google/cloud/compute/v1/region_health_check_services/rest/grpc_transcoding.rb +100 -0
- data/lib/google/cloud/compute/v1/region_health_checks.rb +44 -0
- data/lib/google/cloud/compute/v1/region_health_checks/credentials.rb +52 -0
- data/lib/google/cloud/compute/v1/region_health_checks/rest.rb +35 -0
- data/lib/google/cloud/compute/v1/region_health_checks/rest/client.rb +661 -0
- data/lib/google/cloud/compute/v1/region_health_checks/rest/grpc_transcoding.rb +112 -0
- data/lib/google/cloud/compute/v1/region_instance_group_managers.rb +44 -0
- data/lib/google/cloud/compute/v1/region_instance_group_managers/credentials.rb +52 -0
- data/lib/google/cloud/compute/v1/region_instance_group_managers/rest.rb +35 -0
- data/lib/google/cloud/compute/v1/region_instance_group_managers/rest/client.rb +1678 -0
- data/lib/google/cloud/compute/v1/region_instance_group_managers/rest/grpc_transcoding.rb +285 -0
- data/lib/google/cloud/compute/v1/region_instance_groups.rb +44 -0
- data/lib/google/cloud/compute/v1/region_instance_groups/credentials.rb +52 -0
- data/lib/google/cloud/compute/v1/region_instance_groups/rest.rb +35 -0
- data/lib/google/cloud/compute/v1/region_instance_groups/rest/client.rb +529 -0
- data/lib/google/cloud/compute/v1/region_instance_groups/rest/grpc_transcoding.rb +87 -0
- data/lib/google/cloud/compute/v1/region_network_endpoint_groups.rb +44 -0
- data/lib/google/cloud/compute/v1/region_network_endpoint_groups/credentials.rb +52 -0
- data/lib/google/cloud/compute/v1/region_network_endpoint_groups/rest.rb +35 -0
- data/lib/google/cloud/compute/v1/region_network_endpoint_groups/rest/client.rb +511 -0
- data/lib/google/cloud/compute/v1/region_network_endpoint_groups/rest/grpc_transcoding.rb +88 -0
- data/lib/google/cloud/compute/v1/region_notification_endpoints.rb +44 -0
- data/lib/google/cloud/compute/v1/region_notification_endpoints/credentials.rb +52 -0
- data/lib/google/cloud/compute/v1/region_notification_endpoints/rest.rb +35 -0
- data/lib/google/cloud/compute/v1/region_notification_endpoints/rest/client.rb +511 -0
- data/lib/google/cloud/compute/v1/region_notification_endpoints/rest/grpc_transcoding.rb +88 -0
- data/lib/google/cloud/compute/v1/region_operations.rb +44 -0
- data/lib/google/cloud/compute/v1/region_operations/credentials.rb +52 -0
- data/lib/google/cloud/compute/v1/region_operations/rest.rb +35 -0
- data/lib/google/cloud/compute/v1/region_operations/rest/client.rb +501 -0
- data/lib/google/cloud/compute/v1/region_operations/rest/grpc_transcoding.rb +87 -0
- data/lib/google/cloud/compute/v1/region_ssl_certificates.rb +44 -0
- data/lib/google/cloud/compute/v1/region_ssl_certificates/credentials.rb +52 -0
- data/lib/google/cloud/compute/v1/region_ssl_certificates/rest.rb +35 -0
- data/lib/google/cloud/compute/v1/region_ssl_certificates/rest/client.rb +511 -0
- data/lib/google/cloud/compute/v1/region_ssl_certificates/rest/grpc_transcoding.rb +88 -0
- data/lib/google/cloud/compute/v1/region_target_http_proxies.rb +44 -0
- data/lib/google/cloud/compute/v1/region_target_http_proxies/credentials.rb +52 -0
- data/lib/google/cloud/compute/v1/region_target_http_proxies/rest.rb +35 -0
- data/lib/google/cloud/compute/v1/region_target_http_proxies/rest/client.rb +586 -0
- data/lib/google/cloud/compute/v1/region_target_http_proxies/rest/grpc_transcoding.rb +100 -0
- data/lib/google/cloud/compute/v1/region_target_https_proxies.rb +44 -0
- data/lib/google/cloud/compute/v1/region_target_https_proxies/credentials.rb +52 -0
- data/lib/google/cloud/compute/v1/region_target_https_proxies/rest.rb +35 -0
- data/lib/google/cloud/compute/v1/region_target_https_proxies/rest/client.rb +661 -0
- data/lib/google/cloud/compute/v1/region_target_https_proxies/rest/grpc_transcoding.rb +112 -0
- data/lib/google/cloud/compute/v1/region_url_maps.rb +44 -0
- data/lib/google/cloud/compute/v1/region_url_maps/credentials.rb +52 -0
- data/lib/google/cloud/compute/v1/region_url_maps/rest.rb +35 -0
- data/lib/google/cloud/compute/v1/region_url_maps/rest/client.rb +714 -0
- data/lib/google/cloud/compute/v1/region_url_maps/rest/grpc_transcoding.rb +124 -0
- data/lib/google/cloud/compute/v1/regions.rb +44 -0
- data/lib/google/cloud/compute/v1/regions/credentials.rb +53 -0
- data/lib/google/cloud/compute/v1/regions/rest.rb +35 -0
- data/lib/google/cloud/compute/v1/regions/rest/client.rb +361 -0
- data/lib/google/cloud/compute/v1/regions/rest/grpc_transcoding.rb +63 -0
- data/lib/google/cloud/compute/v1/reservations.rb +44 -0
- data/lib/google/cloud/compute/v1/reservations/credentials.rb +52 -0
- data/lib/google/cloud/compute/v1/reservations/rest.rb +35 -0
- data/lib/google/cloud/compute/v1/reservations/rest/client.rb +878 -0
- data/lib/google/cloud/compute/v1/reservations/rest/grpc_transcoding.rb +155 -0
- data/lib/google/cloud/compute/v1/resource_policies.rb +44 -0
- data/lib/google/cloud/compute/v1/resource_policies/credentials.rb +52 -0
- data/lib/google/cloud/compute/v1/resource_policies/rest.rb +35 -0
- data/lib/google/cloud/compute/v1/resource_policies/rest/client.rb +803 -0
- data/lib/google/cloud/compute/v1/resource_policies/rest/grpc_transcoding.rb +143 -0
- data/lib/google/cloud/compute/v1/routers.rb +44 -0
- data/lib/google/cloud/compute/v1/routers/credentials.rb +52 -0
- data/lib/google/cloud/compute/v1/routers/rest.rb +35 -0
- data/lib/google/cloud/compute/v1/routers/rest/client.rb +968 -0
- data/lib/google/cloud/compute/v1/routers/rest/grpc_transcoding.rb +171 -0
- data/lib/google/cloud/compute/v1/routes.rb +44 -0
- data/lib/google/cloud/compute/v1/routes/credentials.rb +52 -0
- data/lib/google/cloud/compute/v1/routes/rest.rb +35 -0
- data/lib/google/cloud/compute/v1/routes/rest/client.rb +503 -0
- data/lib/google/cloud/compute/v1/routes/rest/grpc_transcoding.rb +88 -0
- data/lib/google/cloud/compute/v1/security_policies.rb +44 -0
- data/lib/google/cloud/compute/v1/security_policies/credentials.rb +52 -0
- data/lib/google/cloud/compute/v1/security_policies/rest.rb +35 -0
- data/lib/google/cloud/compute/v1/security_policies/rest/client.rb +929 -0
- data/lib/google/cloud/compute/v1/security_policies/rest/grpc_transcoding.rb +167 -0
- data/lib/google/cloud/compute/v1/snapshots.rb +44 -0
- data/lib/google/cloud/compute/v1/snapshots/credentials.rb +52 -0
- data/lib/google/cloud/compute/v1/snapshots/rest.rb +35 -0
- data/lib/google/cloud/compute/v1/snapshots/rest/client.rb +702 -0
- data/lib/google/cloud/compute/v1/snapshots/rest/grpc_transcoding.rb +125 -0
- data/lib/google/cloud/compute/v1/ssl_certificates.rb +44 -0
- data/lib/google/cloud/compute/v1/ssl_certificates/credentials.rb +52 -0
- data/lib/google/cloud/compute/v1/ssl_certificates/rest.rb +35 -0
- data/lib/google/cloud/compute/v1/ssl_certificates/rest/client.rb +588 -0
- data/lib/google/cloud/compute/v1/ssl_certificates/rest/grpc_transcoding.rb +106 -0
- data/lib/google/cloud/compute/v1/ssl_policies.rb +44 -0
- data/lib/google/cloud/compute/v1/ssl_policies/credentials.rb +52 -0
- data/lib/google/cloud/compute/v1/ssl_policies/rest.rb +35 -0
- data/lib/google/cloud/compute/v1/ssl_policies/rest/client.rb +659 -0
- data/lib/google/cloud/compute/v1/ssl_policies/rest/grpc_transcoding.rb +117 -0
- data/lib/google/cloud/compute/v1/subnetworks.rb +44 -0
- data/lib/google/cloud/compute/v1/subnetworks/credentials.rb +52 -0
- data/lib/google/cloud/compute/v1/subnetworks/rest.rb +35 -0
- data/lib/google/cloud/compute/v1/subnetworks/rest/client.rb +1113 -0
- data/lib/google/cloud/compute/v1/subnetworks/rest/grpc_transcoding.rb +196 -0
- data/lib/google/cloud/compute/v1/target_grpc_proxies.rb +44 -0
- data/lib/google/cloud/compute/v1/target_grpc_proxies/credentials.rb +52 -0
- data/lib/google/cloud/compute/v1/target_grpc_proxies/rest.rb +35 -0
- data/lib/google/cloud/compute/v1/target_grpc_proxies/rest/client.rb +576 -0
- data/lib/google/cloud/compute/v1/target_grpc_proxies/rest/grpc_transcoding.rb +100 -0
- data/lib/google/cloud/compute/v1/target_http_proxies.rb +44 -0
- data/lib/google/cloud/compute/v1/target_http_proxies/credentials.rb +52 -0
- data/lib/google/cloud/compute/v1/target_http_proxies/rest.rb +35 -0
- data/lib/google/cloud/compute/v1/target_http_proxies/rest/client.rb +734 -0
- data/lib/google/cloud/compute/v1/target_http_proxies/rest/grpc_transcoding.rb +130 -0
- data/lib/google/cloud/compute/v1/target_https_proxies.rb +44 -0
- data/lib/google/cloud/compute/v1/target_https_proxies/credentials.rb +52 -0
- data/lib/google/cloud/compute/v1/target_https_proxies/rest.rb +35 -0
- data/lib/google/cloud/compute/v1/target_https_proxies/rest/client.rb +880 -0
- data/lib/google/cloud/compute/v1/target_https_proxies/rest/grpc_transcoding.rb +154 -0
- data/lib/google/cloud/compute/v1/target_instances.rb +44 -0
- data/lib/google/cloud/compute/v1/target_instances/credentials.rb +52 -0
- data/lib/google/cloud/compute/v1/target_instances/rest.rb +35 -0
- data/lib/google/cloud/compute/v1/target_instances/rest/client.rb +596 -0
- data/lib/google/cloud/compute/v1/target_instances/rest/grpc_transcoding.rb +106 -0
- data/lib/google/cloud/compute/v1/target_pools.rb +44 -0
- data/lib/google/cloud/compute/v1/target_pools/credentials.rb +52 -0
- data/lib/google/cloud/compute/v1/target_pools/rest.rb +35 -0
- data/lib/google/cloud/compute/v1/target_pools/rest/client.rb +1042 -0
- data/lib/google/cloud/compute/v1/target_pools/rest/grpc_transcoding.rb +178 -0
- data/lib/google/cloud/compute/v1/target_ssl_proxies.rb +44 -0
- data/lib/google/cloud/compute/v1/target_ssl_proxies/credentials.rb +52 -0
- data/lib/google/cloud/compute/v1/target_ssl_proxies/rest.rb +35 -0
- data/lib/google/cloud/compute/v1/target_ssl_proxies/rest/client.rb +795 -0
- data/lib/google/cloud/compute/v1/target_ssl_proxies/rest/grpc_transcoding.rb +136 -0
- data/lib/google/cloud/compute/v1/target_tcp_proxies.rb +44 -0
- data/lib/google/cloud/compute/v1/target_tcp_proxies/credentials.rb +52 -0
- data/lib/google/cloud/compute/v1/target_tcp_proxies/rest.rb +35 -0
- data/lib/google/cloud/compute/v1/target_tcp_proxies/rest/client.rb +649 -0
- data/lib/google/cloud/compute/v1/target_tcp_proxies/rest/grpc_transcoding.rb +112 -0
- data/lib/google/cloud/compute/v1/target_vpn_gateways.rb +44 -0
- data/lib/google/cloud/compute/v1/target_vpn_gateways/credentials.rb +52 -0
- data/lib/google/cloud/compute/v1/target_vpn_gateways/rest.rb +35 -0
- data/lib/google/cloud/compute/v1/target_vpn_gateways/rest/client.rb +596 -0
- data/lib/google/cloud/compute/v1/target_vpn_gateways/rest/grpc_transcoding.rb +106 -0
- data/lib/google/cloud/compute/v1/url_maps.rb +44 -0
- data/lib/google/cloud/compute/v1/url_maps/credentials.rb +52 -0
- data/lib/google/cloud/compute/v1/url_maps/rest.rb +35 -0
- data/lib/google/cloud/compute/v1/url_maps/rest/client.rb +876 -0
- data/lib/google/cloud/compute/v1/url_maps/rest/grpc_transcoding.rb +154 -0
- data/lib/google/cloud/compute/v1/version.rb +28 -0
- data/lib/google/cloud/compute/v1/vpn_gateways.rb +44 -0
- data/lib/google/cloud/compute/v1/vpn_gateways/credentials.rb +52 -0
- data/lib/google/cloud/compute/v1/vpn_gateways/rest.rb +35 -0
- data/lib/google/cloud/compute/v1/vpn_gateways/rest/client.rb +806 -0
- data/lib/google/cloud/compute/v1/vpn_gateways/rest/grpc_transcoding.rb +142 -0
- data/lib/google/cloud/compute/v1/vpn_tunnels.rb +44 -0
- data/lib/google/cloud/compute/v1/vpn_tunnels/credentials.rb +52 -0
- data/lib/google/cloud/compute/v1/vpn_tunnels/rest.rb +35 -0
- data/lib/google/cloud/compute/v1/vpn_tunnels/rest/client.rb +596 -0
- data/lib/google/cloud/compute/v1/vpn_tunnels/rest/grpc_transcoding.rb +106 -0
- data/lib/google/cloud/compute/v1/zone_operations.rb +44 -0
- data/lib/google/cloud/compute/v1/zone_operations/credentials.rb +52 -0
- data/lib/google/cloud/compute/v1/zone_operations/rest.rb +35 -0
- data/lib/google/cloud/compute/v1/zone_operations/rest/client.rb +501 -0
- data/lib/google/cloud/compute/v1/zone_operations/rest/grpc_transcoding.rb +87 -0
- data/lib/google/cloud/compute/v1/zones.rb +44 -0
- data/lib/google/cloud/compute/v1/zones/credentials.rb +53 -0
- data/lib/google/cloud/compute/v1/zones/rest.rb +35 -0
- data/lib/google/cloud/compute/v1/zones/rest/client.rb +361 -0
- data/lib/google/cloud/compute/v1/zones/rest/grpc_transcoding.rb +63 -0
- data/proto_docs/README.md +4 -0
- data/proto_docs/google/api/field_behavior.rb +65 -0
- data/proto_docs/google/api/resource.rb +283 -0
- data/proto_docs/google/cloud/compute/v1/compute.rb +27425 -0
- metadata +568 -0
@@ -0,0 +1,549 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
# Copyright 2021 Google LLC
|
4
|
+
#
|
5
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
6
|
+
# you may not use this file except in compliance with the License.
|
7
|
+
# You may obtain a copy of the License at
|
8
|
+
#
|
9
|
+
# https://www.apache.org/licenses/LICENSE-2.0
|
10
|
+
#
|
11
|
+
# Unless required by applicable law or agreed to in writing, software
|
12
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
13
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
14
|
+
# See the License for the specific language governing permissions and
|
15
|
+
# limitations under the License.
|
16
|
+
|
17
|
+
# Auto-generated by gapic-generator-ruby. DO NOT EDIT!
|
18
|
+
|
19
|
+
|
20
|
+
module Google
|
21
|
+
module Cloud
|
22
|
+
module Compute
|
23
|
+
module V1
|
24
|
+
module Instances
|
25
|
+
module Rest
|
26
|
+
# GRPC transcoding helper methods for the Instances REST API.
|
27
|
+
module GrpcTranscoding
|
28
|
+
# @param request_pb [::Google::Cloud::Compute::V1::AddAccessConfigInstanceRequest]
|
29
|
+
# A request object representing the call parameters. Required.
|
30
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
31
|
+
# Uri, Body, Query string parameters
|
32
|
+
def transcode_add_access_config request_pb
|
33
|
+
uri = "/compute/v1/projects/#{request_pb.project}/zones/#{request_pb.zone}/instances/#{request_pb.instance}/addAccessConfig"
|
34
|
+
body = request_pb.access_config_resource.to_json
|
35
|
+
query_string_params = {}
|
36
|
+
|
37
|
+
[uri, body, query_string_params]
|
38
|
+
end
|
39
|
+
|
40
|
+
# @param request_pb [::Google::Cloud::Compute::V1::AddResourcePoliciesInstanceRequest]
|
41
|
+
# A request object representing the call parameters. Required.
|
42
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
43
|
+
# Uri, Body, Query string parameters
|
44
|
+
def transcode_add_resource_policies request_pb
|
45
|
+
uri = "/compute/v1/projects/#{request_pb.project}/zones/#{request_pb.zone}/instances/#{request_pb.instance}/addResourcePolicies"
|
46
|
+
body = request_pb.instances_add_resource_policies_request_resource.to_json
|
47
|
+
query_string_params = {}
|
48
|
+
|
49
|
+
[uri, body, query_string_params]
|
50
|
+
end
|
51
|
+
|
52
|
+
# @param request_pb [::Google::Cloud::Compute::V1::AggregatedListInstancesRequest]
|
53
|
+
# A request object representing the call parameters. Required.
|
54
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
55
|
+
# Uri, Body, Query string parameters
|
56
|
+
def transcode_aggregated_list request_pb
|
57
|
+
uri = "/compute/v1/projects/#{request_pb.project}/aggregated/instances"
|
58
|
+
body = nil
|
59
|
+
query_string_params = {}
|
60
|
+
query_string_params["filter"] = request_pb.filter.to_s if request_pb.has_filter?
|
61
|
+
query_string_params["includeAllScopes"] = request_pb.include_all_scopes.to_s if request_pb.has_include_all_scopes?
|
62
|
+
query_string_params["maxResults"] = request_pb.max_results.to_s if request_pb.has_max_results?
|
63
|
+
query_string_params["orderBy"] = request_pb.order_by.to_s if request_pb.has_order_by?
|
64
|
+
query_string_params["pageToken"] = request_pb.page_token.to_s if request_pb.has_page_token?
|
65
|
+
query_string_params["returnPartialSuccess"] = request_pb.return_partial_success.to_s if request_pb.has_return_partial_success?
|
66
|
+
|
67
|
+
[uri, body, query_string_params]
|
68
|
+
end
|
69
|
+
|
70
|
+
# @param request_pb [::Google::Cloud::Compute::V1::AttachDiskInstanceRequest]
|
71
|
+
# A request object representing the call parameters. Required.
|
72
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
73
|
+
# Uri, Body, Query string parameters
|
74
|
+
def transcode_attach_disk request_pb
|
75
|
+
uri = "/compute/v1/projects/#{request_pb.project}/zones/#{request_pb.zone}/instances/#{request_pb.instance}/attachDisk"
|
76
|
+
body = request_pb.attached_disk_resource.to_json
|
77
|
+
query_string_params = {}
|
78
|
+
|
79
|
+
[uri, body, query_string_params]
|
80
|
+
end
|
81
|
+
|
82
|
+
# @param request_pb [::Google::Cloud::Compute::V1::DeleteInstanceRequest]
|
83
|
+
# A request object representing the call parameters. Required.
|
84
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
85
|
+
# Uri, Body, Query string parameters
|
86
|
+
def transcode_delete request_pb
|
87
|
+
uri = "/compute/v1/projects/#{request_pb.project}/zones/#{request_pb.zone}/instances/#{request_pb.instance}"
|
88
|
+
body = nil
|
89
|
+
query_string_params = {}
|
90
|
+
query_string_params["requestId"] = request_pb.request_id.to_s if request_pb.has_request_id?
|
91
|
+
|
92
|
+
[uri, body, query_string_params]
|
93
|
+
end
|
94
|
+
|
95
|
+
# @param request_pb [::Google::Cloud::Compute::V1::DeleteAccessConfigInstanceRequest]
|
96
|
+
# A request object representing the call parameters. Required.
|
97
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
98
|
+
# Uri, Body, Query string parameters
|
99
|
+
def transcode_delete_access_config request_pb
|
100
|
+
uri = "/compute/v1/projects/#{request_pb.project}/zones/#{request_pb.zone}/instances/#{request_pb.instance}/deleteAccessConfig"
|
101
|
+
body = nil
|
102
|
+
query_string_params = {}
|
103
|
+
query_string_params["accessConfig"] = request_pb.access_config.to_s
|
104
|
+
query_string_params["networkInterface"] = request_pb.network_interface.to_s
|
105
|
+
query_string_params["requestId"] = request_pb.request_id.to_s if request_pb.has_request_id?
|
106
|
+
|
107
|
+
[uri, body, query_string_params]
|
108
|
+
end
|
109
|
+
|
110
|
+
# @param request_pb [::Google::Cloud::Compute::V1::DetachDiskInstanceRequest]
|
111
|
+
# A request object representing the call parameters. Required.
|
112
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
113
|
+
# Uri, Body, Query string parameters
|
114
|
+
def transcode_detach_disk request_pb
|
115
|
+
uri = "/compute/v1/projects/#{request_pb.project}/zones/#{request_pb.zone}/instances/#{request_pb.instance}/detachDisk"
|
116
|
+
body = nil
|
117
|
+
query_string_params = {}
|
118
|
+
query_string_params["deviceName"] = request_pb.device_name.to_s
|
119
|
+
query_string_params["requestId"] = request_pb.request_id.to_s if request_pb.has_request_id?
|
120
|
+
|
121
|
+
[uri, body, query_string_params]
|
122
|
+
end
|
123
|
+
|
124
|
+
# @param request_pb [::Google::Cloud::Compute::V1::GetInstanceRequest]
|
125
|
+
# A request object representing the call parameters. Required.
|
126
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
127
|
+
# Uri, Body, Query string parameters
|
128
|
+
def transcode_get request_pb
|
129
|
+
uri = "/compute/v1/projects/#{request_pb.project}/zones/#{request_pb.zone}/instances/#{request_pb.instance}"
|
130
|
+
body = nil
|
131
|
+
query_string_params = {}
|
132
|
+
|
133
|
+
[uri, body, query_string_params]
|
134
|
+
end
|
135
|
+
|
136
|
+
# @param request_pb [::Google::Cloud::Compute::V1::GetGuestAttributesInstanceRequest]
|
137
|
+
# A request object representing the call parameters. Required.
|
138
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
139
|
+
# Uri, Body, Query string parameters
|
140
|
+
def transcode_get_guest_attributes request_pb
|
141
|
+
uri = "/compute/v1/projects/#{request_pb.project}/zones/#{request_pb.zone}/instances/#{request_pb.instance}/getGuestAttributes"
|
142
|
+
body = nil
|
143
|
+
query_string_params = {}
|
144
|
+
query_string_params["queryPath"] = request_pb.query_path.to_s if request_pb.has_query_path?
|
145
|
+
query_string_params["variableKey"] = request_pb.variable_key.to_s if request_pb.has_variable_key?
|
146
|
+
|
147
|
+
[uri, body, query_string_params]
|
148
|
+
end
|
149
|
+
|
150
|
+
# @param request_pb [::Google::Cloud::Compute::V1::GetIamPolicyInstanceRequest]
|
151
|
+
# A request object representing the call parameters. Required.
|
152
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
153
|
+
# Uri, Body, Query string parameters
|
154
|
+
def transcode_get_iam_policy request_pb
|
155
|
+
uri = "/compute/v1/projects/#{request_pb.project}/zones/#{request_pb.zone}/instances/#{request_pb.resource}/getIamPolicy"
|
156
|
+
body = nil
|
157
|
+
query_string_params = {}
|
158
|
+
query_string_params["optionsRequestedPolicyVersion"] = request_pb.options_requested_policy_version.to_s if request_pb.has_options_requested_policy_version?
|
159
|
+
|
160
|
+
[uri, body, query_string_params]
|
161
|
+
end
|
162
|
+
|
163
|
+
# @param request_pb [::Google::Cloud::Compute::V1::GetScreenshotInstanceRequest]
|
164
|
+
# A request object representing the call parameters. Required.
|
165
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
166
|
+
# Uri, Body, Query string parameters
|
167
|
+
def transcode_get_screenshot request_pb
|
168
|
+
uri = "/compute/v1/projects/#{request_pb.project}/zones/#{request_pb.zone}/instances/#{request_pb.instance}/screenshot"
|
169
|
+
body = nil
|
170
|
+
query_string_params = {}
|
171
|
+
|
172
|
+
[uri, body, query_string_params]
|
173
|
+
end
|
174
|
+
|
175
|
+
# @param request_pb [::Google::Cloud::Compute::V1::GetSerialPortOutputInstanceRequest]
|
176
|
+
# A request object representing the call parameters. Required.
|
177
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
178
|
+
# Uri, Body, Query string parameters
|
179
|
+
def transcode_get_serial_port_output request_pb
|
180
|
+
uri = "/compute/v1/projects/#{request_pb.project}/zones/#{request_pb.zone}/instances/#{request_pb.instance}/serialPort"
|
181
|
+
body = nil
|
182
|
+
query_string_params = {}
|
183
|
+
query_string_params["port"] = request_pb.port.to_s if request_pb.has_port?
|
184
|
+
query_string_params["start"] = request_pb.start.to_s if request_pb.has_start?
|
185
|
+
|
186
|
+
[uri, body, query_string_params]
|
187
|
+
end
|
188
|
+
|
189
|
+
# @param request_pb [::Google::Cloud::Compute::V1::GetShieldedInstanceIdentityInstanceRequest]
|
190
|
+
# A request object representing the call parameters. Required.
|
191
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
192
|
+
# Uri, Body, Query string parameters
|
193
|
+
def transcode_get_shielded_instance_identity request_pb
|
194
|
+
uri = "/compute/v1/projects/#{request_pb.project}/zones/#{request_pb.zone}/instances/#{request_pb.instance}/getShieldedInstanceIdentity"
|
195
|
+
body = nil
|
196
|
+
query_string_params = {}
|
197
|
+
|
198
|
+
[uri, body, query_string_params]
|
199
|
+
end
|
200
|
+
|
201
|
+
# @param request_pb [::Google::Cloud::Compute::V1::InsertInstanceRequest]
|
202
|
+
# A request object representing the call parameters. Required.
|
203
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
204
|
+
# Uri, Body, Query string parameters
|
205
|
+
def transcode_insert request_pb
|
206
|
+
uri = "/compute/v1/projects/#{request_pb.project}/zones/#{request_pb.zone}/instances"
|
207
|
+
body = request_pb.instance_resource.to_json
|
208
|
+
query_string_params = {}
|
209
|
+
|
210
|
+
[uri, body, query_string_params]
|
211
|
+
end
|
212
|
+
|
213
|
+
# @param request_pb [::Google::Cloud::Compute::V1::ListInstancesRequest]
|
214
|
+
# A request object representing the call parameters. Required.
|
215
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
216
|
+
# Uri, Body, Query string parameters
|
217
|
+
def transcode_list request_pb
|
218
|
+
uri = "/compute/v1/projects/#{request_pb.project}/zones/#{request_pb.zone}/instances"
|
219
|
+
body = nil
|
220
|
+
query_string_params = {}
|
221
|
+
query_string_params["filter"] = request_pb.filter.to_s if request_pb.has_filter?
|
222
|
+
query_string_params["maxResults"] = request_pb.max_results.to_s if request_pb.has_max_results?
|
223
|
+
query_string_params["orderBy"] = request_pb.order_by.to_s if request_pb.has_order_by?
|
224
|
+
query_string_params["pageToken"] = request_pb.page_token.to_s if request_pb.has_page_token?
|
225
|
+
query_string_params["returnPartialSuccess"] = request_pb.return_partial_success.to_s if request_pb.has_return_partial_success?
|
226
|
+
|
227
|
+
[uri, body, query_string_params]
|
228
|
+
end
|
229
|
+
|
230
|
+
# @param request_pb [::Google::Cloud::Compute::V1::ListReferrersInstancesRequest]
|
231
|
+
# A request object representing the call parameters. Required.
|
232
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
233
|
+
# Uri, Body, Query string parameters
|
234
|
+
def transcode_list_referrers request_pb
|
235
|
+
uri = "/compute/v1/projects/#{request_pb.project}/zones/#{request_pb.zone}/instances/#{request_pb.instance}/referrers"
|
236
|
+
body = nil
|
237
|
+
query_string_params = {}
|
238
|
+
query_string_params["filter"] = request_pb.filter.to_s if request_pb.has_filter?
|
239
|
+
query_string_params["maxResults"] = request_pb.max_results.to_s if request_pb.has_max_results?
|
240
|
+
query_string_params["orderBy"] = request_pb.order_by.to_s if request_pb.has_order_by?
|
241
|
+
query_string_params["pageToken"] = request_pb.page_token.to_s if request_pb.has_page_token?
|
242
|
+
query_string_params["returnPartialSuccess"] = request_pb.return_partial_success.to_s if request_pb.has_return_partial_success?
|
243
|
+
|
244
|
+
[uri, body, query_string_params]
|
245
|
+
end
|
246
|
+
|
247
|
+
# @param request_pb [::Google::Cloud::Compute::V1::RemoveResourcePoliciesInstanceRequest]
|
248
|
+
# A request object representing the call parameters. Required.
|
249
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
250
|
+
# Uri, Body, Query string parameters
|
251
|
+
def transcode_remove_resource_policies request_pb
|
252
|
+
uri = "/compute/v1/projects/#{request_pb.project}/zones/#{request_pb.zone}/instances/#{request_pb.instance}/removeResourcePolicies"
|
253
|
+
body = request_pb.instances_remove_resource_policies_request_resource.to_json
|
254
|
+
query_string_params = {}
|
255
|
+
|
256
|
+
[uri, body, query_string_params]
|
257
|
+
end
|
258
|
+
|
259
|
+
# @param request_pb [::Google::Cloud::Compute::V1::ResetInstanceRequest]
|
260
|
+
# A request object representing the call parameters. Required.
|
261
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
262
|
+
# Uri, Body, Query string parameters
|
263
|
+
def transcode_reset request_pb
|
264
|
+
uri = "/compute/v1/projects/#{request_pb.project}/zones/#{request_pb.zone}/instances/#{request_pb.instance}/reset"
|
265
|
+
body = nil
|
266
|
+
query_string_params = {}
|
267
|
+
query_string_params["requestId"] = request_pb.request_id.to_s if request_pb.has_request_id?
|
268
|
+
|
269
|
+
[uri, body, query_string_params]
|
270
|
+
end
|
271
|
+
|
272
|
+
# @param request_pb [::Google::Cloud::Compute::V1::SetDeletionProtectionInstanceRequest]
|
273
|
+
# A request object representing the call parameters. Required.
|
274
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
275
|
+
# Uri, Body, Query string parameters
|
276
|
+
def transcode_set_deletion_protection request_pb
|
277
|
+
uri = "/compute/v1/projects/#{request_pb.project}/zones/#{request_pb.zone}/instances/#{request_pb.resource}/setDeletionProtection"
|
278
|
+
body = nil
|
279
|
+
query_string_params = {}
|
280
|
+
query_string_params["deletionProtection"] = request_pb.deletion_protection.to_s if request_pb.has_deletion_protection?
|
281
|
+
query_string_params["requestId"] = request_pb.request_id.to_s if request_pb.has_request_id?
|
282
|
+
|
283
|
+
[uri, body, query_string_params]
|
284
|
+
end
|
285
|
+
|
286
|
+
# @param request_pb [::Google::Cloud::Compute::V1::SetDiskAutoDeleteInstanceRequest]
|
287
|
+
# A request object representing the call parameters. Required.
|
288
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
289
|
+
# Uri, Body, Query string parameters
|
290
|
+
def transcode_set_disk_auto_delete request_pb
|
291
|
+
uri = "/compute/v1/projects/#{request_pb.project}/zones/#{request_pb.zone}/instances/#{request_pb.instance}/setDiskAutoDelete"
|
292
|
+
body = nil
|
293
|
+
query_string_params = {}
|
294
|
+
query_string_params["autoDelete"] = request_pb.auto_delete.to_s
|
295
|
+
query_string_params["deviceName"] = request_pb.device_name.to_s
|
296
|
+
query_string_params["requestId"] = request_pb.request_id.to_s if request_pb.has_request_id?
|
297
|
+
|
298
|
+
[uri, body, query_string_params]
|
299
|
+
end
|
300
|
+
|
301
|
+
# @param request_pb [::Google::Cloud::Compute::V1::SetIamPolicyInstanceRequest]
|
302
|
+
# A request object representing the call parameters. Required.
|
303
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
304
|
+
# Uri, Body, Query string parameters
|
305
|
+
def transcode_set_iam_policy request_pb
|
306
|
+
uri = "/compute/v1/projects/#{request_pb.project}/zones/#{request_pb.zone}/instances/#{request_pb.resource}/setIamPolicy"
|
307
|
+
body = request_pb.zone_set_policy_request_resource.to_json
|
308
|
+
query_string_params = {}
|
309
|
+
|
310
|
+
[uri, body, query_string_params]
|
311
|
+
end
|
312
|
+
|
313
|
+
# @param request_pb [::Google::Cloud::Compute::V1::SetLabelsInstanceRequest]
|
314
|
+
# A request object representing the call parameters. Required.
|
315
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
316
|
+
# Uri, Body, Query string parameters
|
317
|
+
def transcode_set_labels request_pb
|
318
|
+
uri = "/compute/v1/projects/#{request_pb.project}/zones/#{request_pb.zone}/instances/#{request_pb.instance}/setLabels"
|
319
|
+
body = request_pb.instances_set_labels_request_resource.to_json
|
320
|
+
query_string_params = {}
|
321
|
+
|
322
|
+
[uri, body, query_string_params]
|
323
|
+
end
|
324
|
+
|
325
|
+
# @param request_pb [::Google::Cloud::Compute::V1::SetMachineResourcesInstanceRequest]
|
326
|
+
# A request object representing the call parameters. Required.
|
327
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
328
|
+
# Uri, Body, Query string parameters
|
329
|
+
def transcode_set_machine_resources request_pb
|
330
|
+
uri = "/compute/v1/projects/#{request_pb.project}/zones/#{request_pb.zone}/instances/#{request_pb.instance}/setMachineResources"
|
331
|
+
body = request_pb.instances_set_machine_resources_request_resource.to_json
|
332
|
+
query_string_params = {}
|
333
|
+
|
334
|
+
[uri, body, query_string_params]
|
335
|
+
end
|
336
|
+
|
337
|
+
# @param request_pb [::Google::Cloud::Compute::V1::SetMachineTypeInstanceRequest]
|
338
|
+
# A request object representing the call parameters. Required.
|
339
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
340
|
+
# Uri, Body, Query string parameters
|
341
|
+
def transcode_set_machine_type request_pb
|
342
|
+
uri = "/compute/v1/projects/#{request_pb.project}/zones/#{request_pb.zone}/instances/#{request_pb.instance}/setMachineType"
|
343
|
+
body = request_pb.instances_set_machine_type_request_resource.to_json
|
344
|
+
query_string_params = {}
|
345
|
+
|
346
|
+
[uri, body, query_string_params]
|
347
|
+
end
|
348
|
+
|
349
|
+
# @param request_pb [::Google::Cloud::Compute::V1::SetMetadataInstanceRequest]
|
350
|
+
# A request object representing the call parameters. Required.
|
351
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
352
|
+
# Uri, Body, Query string parameters
|
353
|
+
def transcode_set_metadata request_pb
|
354
|
+
uri = "/compute/v1/projects/#{request_pb.project}/zones/#{request_pb.zone}/instances/#{request_pb.instance}/setMetadata"
|
355
|
+
body = request_pb.metadata_resource.to_json
|
356
|
+
query_string_params = {}
|
357
|
+
|
358
|
+
[uri, body, query_string_params]
|
359
|
+
end
|
360
|
+
|
361
|
+
# @param request_pb [::Google::Cloud::Compute::V1::SetMinCpuPlatformInstanceRequest]
|
362
|
+
# A request object representing the call parameters. Required.
|
363
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
364
|
+
# Uri, Body, Query string parameters
|
365
|
+
def transcode_set_min_cpu_platform request_pb
|
366
|
+
uri = "/compute/v1/projects/#{request_pb.project}/zones/#{request_pb.zone}/instances/#{request_pb.instance}/setMinCpuPlatform"
|
367
|
+
body = request_pb.instances_set_min_cpu_platform_request_resource.to_json
|
368
|
+
query_string_params = {}
|
369
|
+
|
370
|
+
[uri, body, query_string_params]
|
371
|
+
end
|
372
|
+
|
373
|
+
# @param request_pb [::Google::Cloud::Compute::V1::SetSchedulingInstanceRequest]
|
374
|
+
# A request object representing the call parameters. Required.
|
375
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
376
|
+
# Uri, Body, Query string parameters
|
377
|
+
def transcode_set_scheduling request_pb
|
378
|
+
uri = "/compute/v1/projects/#{request_pb.project}/zones/#{request_pb.zone}/instances/#{request_pb.instance}/setScheduling"
|
379
|
+
body = request_pb.scheduling_resource.to_json
|
380
|
+
query_string_params = {}
|
381
|
+
|
382
|
+
[uri, body, query_string_params]
|
383
|
+
end
|
384
|
+
|
385
|
+
# @param request_pb [::Google::Cloud::Compute::V1::SetServiceAccountInstanceRequest]
|
386
|
+
# A request object representing the call parameters. Required.
|
387
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
388
|
+
# Uri, Body, Query string parameters
|
389
|
+
def transcode_set_service_account request_pb
|
390
|
+
uri = "/compute/v1/projects/#{request_pb.project}/zones/#{request_pb.zone}/instances/#{request_pb.instance}/setServiceAccount"
|
391
|
+
body = request_pb.instances_set_service_account_request_resource.to_json
|
392
|
+
query_string_params = {}
|
393
|
+
|
394
|
+
[uri, body, query_string_params]
|
395
|
+
end
|
396
|
+
|
397
|
+
# @param request_pb [::Google::Cloud::Compute::V1::SetShieldedInstanceIntegrityPolicyInstanceRequest]
|
398
|
+
# A request object representing the call parameters. Required.
|
399
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
400
|
+
# Uri, Body, Query string parameters
|
401
|
+
def transcode_set_shielded_instance_integrity_policy request_pb
|
402
|
+
uri = "/compute/v1/projects/#{request_pb.project}/zones/#{request_pb.zone}/instances/#{request_pb.instance}/setShieldedInstanceIntegrityPolicy"
|
403
|
+
body = request_pb.shielded_instance_integrity_policy_resource.to_json
|
404
|
+
query_string_params = {}
|
405
|
+
|
406
|
+
[uri, body, query_string_params]
|
407
|
+
end
|
408
|
+
|
409
|
+
# @param request_pb [::Google::Cloud::Compute::V1::SetTagsInstanceRequest]
|
410
|
+
# A request object representing the call parameters. Required.
|
411
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
412
|
+
# Uri, Body, Query string parameters
|
413
|
+
def transcode_set_tags request_pb
|
414
|
+
uri = "/compute/v1/projects/#{request_pb.project}/zones/#{request_pb.zone}/instances/#{request_pb.instance}/setTags"
|
415
|
+
body = request_pb.tags_resource.to_json
|
416
|
+
query_string_params = {}
|
417
|
+
|
418
|
+
[uri, body, query_string_params]
|
419
|
+
end
|
420
|
+
|
421
|
+
# @param request_pb [::Google::Cloud::Compute::V1::SimulateMaintenanceEventInstanceRequest]
|
422
|
+
# A request object representing the call parameters. Required.
|
423
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
424
|
+
# Uri, Body, Query string parameters
|
425
|
+
def transcode_simulate_maintenance_event request_pb
|
426
|
+
uri = "/compute/v1/projects/#{request_pb.project}/zones/#{request_pb.zone}/instances/#{request_pb.instance}/simulateMaintenanceEvent"
|
427
|
+
body = nil
|
428
|
+
query_string_params = {}
|
429
|
+
|
430
|
+
[uri, body, query_string_params]
|
431
|
+
end
|
432
|
+
|
433
|
+
# @param request_pb [::Google::Cloud::Compute::V1::StartInstanceRequest]
|
434
|
+
# A request object representing the call parameters. Required.
|
435
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
436
|
+
# Uri, Body, Query string parameters
|
437
|
+
def transcode_start request_pb
|
438
|
+
uri = "/compute/v1/projects/#{request_pb.project}/zones/#{request_pb.zone}/instances/#{request_pb.instance}/start"
|
439
|
+
body = nil
|
440
|
+
query_string_params = {}
|
441
|
+
query_string_params["requestId"] = request_pb.request_id.to_s if request_pb.has_request_id?
|
442
|
+
|
443
|
+
[uri, body, query_string_params]
|
444
|
+
end
|
445
|
+
|
446
|
+
# @param request_pb [::Google::Cloud::Compute::V1::StartWithEncryptionKeyInstanceRequest]
|
447
|
+
# A request object representing the call parameters. Required.
|
448
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
449
|
+
# Uri, Body, Query string parameters
|
450
|
+
def transcode_start_with_encryption_key request_pb
|
451
|
+
uri = "/compute/v1/projects/#{request_pb.project}/zones/#{request_pb.zone}/instances/#{request_pb.instance}/startWithEncryptionKey"
|
452
|
+
body = request_pb.instances_start_with_encryption_key_request_resource.to_json
|
453
|
+
query_string_params = {}
|
454
|
+
|
455
|
+
[uri, body, query_string_params]
|
456
|
+
end
|
457
|
+
|
458
|
+
# @param request_pb [::Google::Cloud::Compute::V1::StopInstanceRequest]
|
459
|
+
# A request object representing the call parameters. Required.
|
460
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
461
|
+
# Uri, Body, Query string parameters
|
462
|
+
def transcode_stop request_pb
|
463
|
+
uri = "/compute/v1/projects/#{request_pb.project}/zones/#{request_pb.zone}/instances/#{request_pb.instance}/stop"
|
464
|
+
body = nil
|
465
|
+
query_string_params = {}
|
466
|
+
query_string_params["requestId"] = request_pb.request_id.to_s if request_pb.has_request_id?
|
467
|
+
|
468
|
+
[uri, body, query_string_params]
|
469
|
+
end
|
470
|
+
|
471
|
+
# @param request_pb [::Google::Cloud::Compute::V1::TestIamPermissionsInstanceRequest]
|
472
|
+
# A request object representing the call parameters. Required.
|
473
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
474
|
+
# Uri, Body, Query string parameters
|
475
|
+
def transcode_test_iam_permissions request_pb
|
476
|
+
uri = "/compute/v1/projects/#{request_pb.project}/zones/#{request_pb.zone}/instances/#{request_pb.resource}/testIamPermissions"
|
477
|
+
body = request_pb.test_permissions_request_resource.to_json
|
478
|
+
query_string_params = {}
|
479
|
+
|
480
|
+
[uri, body, query_string_params]
|
481
|
+
end
|
482
|
+
|
483
|
+
# @param request_pb [::Google::Cloud::Compute::V1::UpdateInstanceRequest]
|
484
|
+
# A request object representing the call parameters. Required.
|
485
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
486
|
+
# Uri, Body, Query string parameters
|
487
|
+
def transcode_update request_pb
|
488
|
+
uri = "/compute/v1/projects/#{request_pb.project}/zones/#{request_pb.zone}/instances/#{request_pb.instance}"
|
489
|
+
body = request_pb.instance_resource.to_json
|
490
|
+
query_string_params = {}
|
491
|
+
|
492
|
+
[uri, body, query_string_params]
|
493
|
+
end
|
494
|
+
|
495
|
+
# @param request_pb [::Google::Cloud::Compute::V1::UpdateAccessConfigInstanceRequest]
|
496
|
+
# A request object representing the call parameters. Required.
|
497
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
498
|
+
# Uri, Body, Query string parameters
|
499
|
+
def transcode_update_access_config request_pb
|
500
|
+
uri = "/compute/v1/projects/#{request_pb.project}/zones/#{request_pb.zone}/instances/#{request_pb.instance}/updateAccessConfig"
|
501
|
+
body = request_pb.access_config_resource.to_json
|
502
|
+
query_string_params = {}
|
503
|
+
|
504
|
+
[uri, body, query_string_params]
|
505
|
+
end
|
506
|
+
|
507
|
+
# @param request_pb [::Google::Cloud::Compute::V1::UpdateDisplayDeviceInstanceRequest]
|
508
|
+
# A request object representing the call parameters. Required.
|
509
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
510
|
+
# Uri, Body, Query string parameters
|
511
|
+
def transcode_update_display_device request_pb
|
512
|
+
uri = "/compute/v1/projects/#{request_pb.project}/zones/#{request_pb.zone}/instances/#{request_pb.instance}/updateDisplayDevice"
|
513
|
+
body = request_pb.display_device_resource.to_json
|
514
|
+
query_string_params = {}
|
515
|
+
|
516
|
+
[uri, body, query_string_params]
|
517
|
+
end
|
518
|
+
|
519
|
+
# @param request_pb [::Google::Cloud::Compute::V1::UpdateNetworkInterfaceInstanceRequest]
|
520
|
+
# A request object representing the call parameters. Required.
|
521
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
522
|
+
# Uri, Body, Query string parameters
|
523
|
+
def transcode_update_network_interface request_pb
|
524
|
+
uri = "/compute/v1/projects/#{request_pb.project}/zones/#{request_pb.zone}/instances/#{request_pb.instance}/updateNetworkInterface"
|
525
|
+
body = request_pb.network_interface_resource.to_json
|
526
|
+
query_string_params = {}
|
527
|
+
|
528
|
+
[uri, body, query_string_params]
|
529
|
+
end
|
530
|
+
|
531
|
+
# @param request_pb [::Google::Cloud::Compute::V1::UpdateShieldedInstanceConfigInstanceRequest]
|
532
|
+
# A request object representing the call parameters. Required.
|
533
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
534
|
+
# Uri, Body, Query string parameters
|
535
|
+
def transcode_update_shielded_instance_config request_pb
|
536
|
+
uri = "/compute/v1/projects/#{request_pb.project}/zones/#{request_pb.zone}/instances/#{request_pb.instance}/updateShieldedInstanceConfig"
|
537
|
+
body = request_pb.shielded_instance_config_resource.to_json
|
538
|
+
query_string_params = {}
|
539
|
+
|
540
|
+
[uri, body, query_string_params]
|
541
|
+
end
|
542
|
+
extend self
|
543
|
+
end
|
544
|
+
end
|
545
|
+
end
|
546
|
+
end
|
547
|
+
end
|
548
|
+
end
|
549
|
+
end
|