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,169 @@
|
|
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 Networks
|
25
|
+
module Rest
|
26
|
+
# GRPC transcoding helper methods for the Networks REST API.
|
27
|
+
module GrpcTranscoding
|
28
|
+
# @param request_pb [::Google::Cloud::Compute::V1::AddPeeringNetworkRequest]
|
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_peering request_pb
|
33
|
+
uri = "/compute/v1/projects/#{request_pb.project}/global/networks/#{request_pb.network}/addPeering"
|
34
|
+
body = request_pb.networks_add_peering_request_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::DeleteNetworkRequest]
|
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_delete request_pb
|
45
|
+
uri = "/compute/v1/projects/#{request_pb.project}/global/networks/#{request_pb.network}"
|
46
|
+
body = nil
|
47
|
+
query_string_params = {}
|
48
|
+
query_string_params["requestId"] = request_pb.request_id.to_s if request_pb.has_request_id?
|
49
|
+
|
50
|
+
[uri, body, query_string_params]
|
51
|
+
end
|
52
|
+
|
53
|
+
# @param request_pb [::Google::Cloud::Compute::V1::GetNetworkRequest]
|
54
|
+
# A request object representing the call parameters. Required.
|
55
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
56
|
+
# Uri, Body, Query string parameters
|
57
|
+
def transcode_get request_pb
|
58
|
+
uri = "/compute/v1/projects/#{request_pb.project}/global/networks/#{request_pb.network}"
|
59
|
+
body = nil
|
60
|
+
query_string_params = {}
|
61
|
+
|
62
|
+
[uri, body, query_string_params]
|
63
|
+
end
|
64
|
+
|
65
|
+
# @param request_pb [::Google::Cloud::Compute::V1::InsertNetworkRequest]
|
66
|
+
# A request object representing the call parameters. Required.
|
67
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
68
|
+
# Uri, Body, Query string parameters
|
69
|
+
def transcode_insert request_pb
|
70
|
+
uri = "/compute/v1/projects/#{request_pb.project}/global/networks"
|
71
|
+
body = request_pb.network_resource.to_json
|
72
|
+
query_string_params = {}
|
73
|
+
|
74
|
+
[uri, body, query_string_params]
|
75
|
+
end
|
76
|
+
|
77
|
+
# @param request_pb [::Google::Cloud::Compute::V1::ListNetworksRequest]
|
78
|
+
# A request object representing the call parameters. Required.
|
79
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
80
|
+
# Uri, Body, Query string parameters
|
81
|
+
def transcode_list request_pb
|
82
|
+
uri = "/compute/v1/projects/#{request_pb.project}/global/networks"
|
83
|
+
body = nil
|
84
|
+
query_string_params = {}
|
85
|
+
query_string_params["filter"] = request_pb.filter.to_s if request_pb.has_filter?
|
86
|
+
query_string_params["maxResults"] = request_pb.max_results.to_s if request_pb.has_max_results?
|
87
|
+
query_string_params["orderBy"] = request_pb.order_by.to_s if request_pb.has_order_by?
|
88
|
+
query_string_params["pageToken"] = request_pb.page_token.to_s if request_pb.has_page_token?
|
89
|
+
query_string_params["returnPartialSuccess"] = request_pb.return_partial_success.to_s if request_pb.has_return_partial_success?
|
90
|
+
|
91
|
+
[uri, body, query_string_params]
|
92
|
+
end
|
93
|
+
|
94
|
+
# @param request_pb [::Google::Cloud::Compute::V1::ListPeeringRoutesNetworksRequest]
|
95
|
+
# A request object representing the call parameters. Required.
|
96
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
97
|
+
# Uri, Body, Query string parameters
|
98
|
+
def transcode_list_peering_routes request_pb
|
99
|
+
uri = "/compute/v1/projects/#{request_pb.project}/global/networks/#{request_pb.network}/listPeeringRoutes"
|
100
|
+
body = nil
|
101
|
+
query_string_params = {}
|
102
|
+
query_string_params["direction"] = request_pb.direction.to_s if request_pb.has_direction?
|
103
|
+
query_string_params["filter"] = request_pb.filter.to_s if request_pb.has_filter?
|
104
|
+
query_string_params["maxResults"] = request_pb.max_results.to_s if request_pb.has_max_results?
|
105
|
+
query_string_params["orderBy"] = request_pb.order_by.to_s if request_pb.has_order_by?
|
106
|
+
query_string_params["pageToken"] = request_pb.page_token.to_s if request_pb.has_page_token?
|
107
|
+
query_string_params["peeringName"] = request_pb.peering_name.to_s if request_pb.has_peering_name?
|
108
|
+
query_string_params["region"] = request_pb.region.to_s if request_pb.has_region?
|
109
|
+
query_string_params["returnPartialSuccess"] = request_pb.return_partial_success.to_s if request_pb.has_return_partial_success?
|
110
|
+
|
111
|
+
[uri, body, query_string_params]
|
112
|
+
end
|
113
|
+
|
114
|
+
# @param request_pb [::Google::Cloud::Compute::V1::PatchNetworkRequest]
|
115
|
+
# A request object representing the call parameters. Required.
|
116
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
117
|
+
# Uri, Body, Query string parameters
|
118
|
+
def transcode_patch request_pb
|
119
|
+
uri = "/compute/v1/projects/#{request_pb.project}/global/networks/#{request_pb.network}"
|
120
|
+
body = request_pb.network_resource.to_json
|
121
|
+
query_string_params = {}
|
122
|
+
|
123
|
+
[uri, body, query_string_params]
|
124
|
+
end
|
125
|
+
|
126
|
+
# @param request_pb [::Google::Cloud::Compute::V1::RemovePeeringNetworkRequest]
|
127
|
+
# A request object representing the call parameters. Required.
|
128
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
129
|
+
# Uri, Body, Query string parameters
|
130
|
+
def transcode_remove_peering request_pb
|
131
|
+
uri = "/compute/v1/projects/#{request_pb.project}/global/networks/#{request_pb.network}/removePeering"
|
132
|
+
body = request_pb.networks_remove_peering_request_resource.to_json
|
133
|
+
query_string_params = {}
|
134
|
+
|
135
|
+
[uri, body, query_string_params]
|
136
|
+
end
|
137
|
+
|
138
|
+
# @param request_pb [::Google::Cloud::Compute::V1::SwitchToCustomModeNetworkRequest]
|
139
|
+
# A request object representing the call parameters. Required.
|
140
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
141
|
+
# Uri, Body, Query string parameters
|
142
|
+
def transcode_switch_to_custom_mode request_pb
|
143
|
+
uri = "/compute/v1/projects/#{request_pb.project}/global/networks/#{request_pb.network}/switchToCustomMode"
|
144
|
+
body = nil
|
145
|
+
query_string_params = {}
|
146
|
+
query_string_params["requestId"] = request_pb.request_id.to_s if request_pb.has_request_id?
|
147
|
+
|
148
|
+
[uri, body, query_string_params]
|
149
|
+
end
|
150
|
+
|
151
|
+
# @param request_pb [::Google::Cloud::Compute::V1::UpdatePeeringNetworkRequest]
|
152
|
+
# A request object representing the call parameters. Required.
|
153
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
154
|
+
# Uri, Body, Query string parameters
|
155
|
+
def transcode_update_peering request_pb
|
156
|
+
uri = "/compute/v1/projects/#{request_pb.project}/global/networks/#{request_pb.network}/updatePeering"
|
157
|
+
body = request_pb.networks_update_peering_request_resource.to_json
|
158
|
+
query_string_params = {}
|
159
|
+
|
160
|
+
[uri, body, query_string_params]
|
161
|
+
end
|
162
|
+
extend self
|
163
|
+
end
|
164
|
+
end
|
165
|
+
end
|
166
|
+
end
|
167
|
+
end
|
168
|
+
end
|
169
|
+
end
|
@@ -0,0 +1,44 @@
|
|
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
|
+
require "gapic/config"
|
20
|
+
require "gapic/config/method"
|
21
|
+
|
22
|
+
require "google/cloud/compute/v1/version"
|
23
|
+
|
24
|
+
require "google/cloud/compute/v1/node_groups/credentials"
|
25
|
+
require "google/cloud/compute/v1/node_groups/rest"
|
26
|
+
|
27
|
+
module Google
|
28
|
+
module Cloud
|
29
|
+
module Compute
|
30
|
+
module V1
|
31
|
+
# To load this service and instantiate a REST client:
|
32
|
+
#
|
33
|
+
# require "google/cloud/compute/v1/node_groups"
|
34
|
+
# client = ::Google::Cloud::Compute::V1::NodeGroups::Rest::Client.new
|
35
|
+
#
|
36
|
+
module NodeGroups
|
37
|
+
end
|
38
|
+
end
|
39
|
+
end
|
40
|
+
end
|
41
|
+
end
|
42
|
+
|
43
|
+
helper_path = ::File.join __dir__, "node_groups", "helpers.rb"
|
44
|
+
require "google/cloud/compute/v1/node_groups/helpers" if ::File.file? helper_path
|
@@ -0,0 +1,52 @@
|
|
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
|
+
require "googleauth"
|
20
|
+
|
21
|
+
module Google
|
22
|
+
module Cloud
|
23
|
+
module Compute
|
24
|
+
module V1
|
25
|
+
module NodeGroups
|
26
|
+
# Credentials for the NodeGroups API.
|
27
|
+
class Credentials < ::Google::Auth::Credentials
|
28
|
+
self.scope = [
|
29
|
+
"https://www.googleapis.com/auth/compute",
|
30
|
+
"https://www.googleapis.com/auth/cloud-platform"
|
31
|
+
]
|
32
|
+
self.env_vars = [
|
33
|
+
"COMPUTE_CREDENTIALS",
|
34
|
+
"COMPUTE_KEYFILE",
|
35
|
+
"GOOGLE_CLOUD_CREDENTIALS",
|
36
|
+
"GOOGLE_CLOUD_KEYFILE",
|
37
|
+
"GCLOUD_KEYFILE",
|
38
|
+
"COMPUTE_CREDENTIALS_JSON",
|
39
|
+
"COMPUTE_KEYFILE_JSON",
|
40
|
+
"GOOGLE_CLOUD_CREDENTIALS_JSON",
|
41
|
+
"GOOGLE_CLOUD_KEYFILE_JSON",
|
42
|
+
"GCLOUD_KEYFILE_JSON"
|
43
|
+
]
|
44
|
+
self.paths = [
|
45
|
+
"~/.config/google_cloud/application_default_credentials.json"
|
46
|
+
]
|
47
|
+
end
|
48
|
+
end
|
49
|
+
end
|
50
|
+
end
|
51
|
+
end
|
52
|
+
end
|
@@ -0,0 +1,35 @@
|
|
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
|
+
require "gapic/rest"
|
20
|
+
require "google/cloud/compute/v1/node_groups/rest/grpc_transcoding"
|
21
|
+
require "google/cloud/compute/v1/node_groups/rest/client"
|
22
|
+
|
23
|
+
module Google
|
24
|
+
module Cloud
|
25
|
+
module Compute
|
26
|
+
module V1
|
27
|
+
module NodeGroups
|
28
|
+
# Client for the REST transport
|
29
|
+
module Rest
|
30
|
+
end
|
31
|
+
end
|
32
|
+
end
|
33
|
+
end
|
34
|
+
end
|
35
|
+
end
|
@@ -0,0 +1,1192 @@
|
|
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
|
+
require "google/cloud/errors"
|
20
|
+
require "google/cloud/compute/v1/compute_pb"
|
21
|
+
|
22
|
+
module Google
|
23
|
+
module Cloud
|
24
|
+
module Compute
|
25
|
+
module V1
|
26
|
+
module NodeGroups
|
27
|
+
module Rest
|
28
|
+
##
|
29
|
+
# REST client for the NodeGroups service.
|
30
|
+
#
|
31
|
+
# The NodeGroups API.
|
32
|
+
#
|
33
|
+
class Client
|
34
|
+
include GrpcTranscoding
|
35
|
+
|
36
|
+
# @private
|
37
|
+
attr_reader :node_groups_stub
|
38
|
+
|
39
|
+
##
|
40
|
+
# Configure the NodeGroups Client class.
|
41
|
+
#
|
42
|
+
# See {::Google::Cloud::Compute::V1::NodeGroups::Rest::Client::Configuration}
|
43
|
+
# for a description of the configuration fields.
|
44
|
+
#
|
45
|
+
# ## Example
|
46
|
+
#
|
47
|
+
# To modify the configuration for all NodeGroups clients:
|
48
|
+
#
|
49
|
+
# ::Google::Cloud::Compute::V1::NodeGroups::Rest::Client.configure do |config|
|
50
|
+
# config.timeout = 10.0
|
51
|
+
# end
|
52
|
+
#
|
53
|
+
# @yield [config] Configure the Client client.
|
54
|
+
# @yieldparam config [Client::Configuration]
|
55
|
+
#
|
56
|
+
# @return [Client::Configuration]
|
57
|
+
#
|
58
|
+
def self.configure
|
59
|
+
@configure ||= begin
|
60
|
+
namespace = ["Google", "Cloud", "Compute", "V1"]
|
61
|
+
parent_config = while namespace.any?
|
62
|
+
parent_name = namespace.join "::"
|
63
|
+
parent_const = const_get parent_name
|
64
|
+
break parent_const.configure if parent_const.respond_to? :configure
|
65
|
+
namespace.pop
|
66
|
+
end
|
67
|
+
default_config = Client::Configuration.new parent_config
|
68
|
+
|
69
|
+
default_config
|
70
|
+
end
|
71
|
+
yield @configure if block_given?
|
72
|
+
@configure
|
73
|
+
end
|
74
|
+
|
75
|
+
##
|
76
|
+
# Configure the NodeGroups Client instance.
|
77
|
+
#
|
78
|
+
# The configuration is set to the derived mode, meaning that values can be changed,
|
79
|
+
# but structural changes (adding new fields, etc.) are not allowed. Structural changes
|
80
|
+
# should be made on {Client.configure}.
|
81
|
+
#
|
82
|
+
# See {::Google::Cloud::Compute::V1::NodeGroups::Rest::Client::Configuration}
|
83
|
+
# for a description of the configuration fields.
|
84
|
+
#
|
85
|
+
# @yield [config] Configure the Client client.
|
86
|
+
# @yieldparam config [Client::Configuration]
|
87
|
+
#
|
88
|
+
# @return [Client::Configuration]
|
89
|
+
#
|
90
|
+
def configure
|
91
|
+
yield @config if block_given?
|
92
|
+
@config
|
93
|
+
end
|
94
|
+
|
95
|
+
##
|
96
|
+
# Create a new NodeGroups REST client object.
|
97
|
+
#
|
98
|
+
# ## Examples
|
99
|
+
#
|
100
|
+
# To create a new NodeGroups REST client with the default
|
101
|
+
# configuration:
|
102
|
+
#
|
103
|
+
# client = ::Google::Cloud::Compute::V1::NodeGroups::Rest::Client.new
|
104
|
+
#
|
105
|
+
# To create a new NodeGroups REST client with a custom
|
106
|
+
# configuration:
|
107
|
+
#
|
108
|
+
# client = ::Google::Cloud::Compute::V1::NodeGroups::Rest::Client.new do |config|
|
109
|
+
# config.timeout = 10.0
|
110
|
+
# end
|
111
|
+
#
|
112
|
+
# @yield [config] Configure the NodeGroups client.
|
113
|
+
# @yieldparam config [Client::Configuration]
|
114
|
+
#
|
115
|
+
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
|
+
# Create the configuration object
|
121
|
+
@config = Configuration.new Client.configure
|
122
|
+
|
123
|
+
# Yield the configuration if needed
|
124
|
+
yield @config if block_given?
|
125
|
+
|
126
|
+
# Create credentials
|
127
|
+
credentials = @config.credentials
|
128
|
+
credentials ||= Credentials.default scope: @config.scope
|
129
|
+
if credentials.is_a?(String) || credentials.is_a?(Hash)
|
130
|
+
credentials = Credentials.new credentials, scope: @config.scope
|
131
|
+
end
|
132
|
+
|
133
|
+
@client_stub = ::Gapic::Rest::ClientStub.new endpoint: @config.endpoint, credentials: credentials
|
134
|
+
end
|
135
|
+
|
136
|
+
# Service calls
|
137
|
+
|
138
|
+
##
|
139
|
+
# Adds specified number of nodes to the node group.
|
140
|
+
#
|
141
|
+
# @overload add_nodes(request, options = nil)
|
142
|
+
# Pass arguments to `add_nodes` via a request object, either of type
|
143
|
+
# {::Google::Cloud::Compute::V1::AddNodesNodeGroupRequest} or an equivalent Hash.
|
144
|
+
#
|
145
|
+
# @param request [::Google::Cloud::Compute::V1::AddNodesNodeGroupRequest, ::Hash]
|
146
|
+
# A request object representing the call parameters. Required. To specify no
|
147
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
148
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
149
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
150
|
+
# Note: currently retry functionality is not implemented. While it is possible
|
151
|
+
# to set it using ::Gapic::CallOptions, it will not be applied
|
152
|
+
#
|
153
|
+
# @overload add_nodes(node_group: nil, node_groups_add_nodes_request_resource: nil, project: nil, request_id: nil, zone: nil)
|
154
|
+
# Pass arguments to `add_nodes` via keyword arguments. Note that at
|
155
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
156
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
157
|
+
#
|
158
|
+
# @param node_group [::String]
|
159
|
+
# Name of the NodeGroup resource.
|
160
|
+
# @param node_groups_add_nodes_request_resource [::Google::Cloud::Compute::V1::NodeGroupsAddNodesRequest, ::Hash]
|
161
|
+
# The body resource for this request
|
162
|
+
# @param project [::String]
|
163
|
+
# Project ID for this request.
|
164
|
+
# @param request_id [::String]
|
165
|
+
# 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.
|
166
|
+
#
|
167
|
+
# 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.
|
168
|
+
#
|
169
|
+
# The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
|
170
|
+
# @param zone [::String]
|
171
|
+
# The name of the zone for this request.
|
172
|
+
# @yield [result, env] Access the result along with the Faraday environment object
|
173
|
+
# @yieldparam result [::Google::Cloud::Compute::V1::Operation]
|
174
|
+
# @yieldparam response [::Faraday::Response]
|
175
|
+
#
|
176
|
+
# @return [::Google::Cloud::Compute::V1::Operation]
|
177
|
+
#
|
178
|
+
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
179
|
+
def add_nodes request, options = nil
|
180
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
181
|
+
|
182
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Compute::V1::AddNodesNodeGroupRequest
|
183
|
+
|
184
|
+
# Converts hash and nil to an options object
|
185
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
186
|
+
|
187
|
+
# Customize the options with defaults
|
188
|
+
call_metadata = {}
|
189
|
+
|
190
|
+
# Set x-goog-api-client header
|
191
|
+
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
192
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
193
|
+
gapic_version: ::Google::Cloud::Compute::V1::VERSION
|
194
|
+
|
195
|
+
options.apply_defaults timeout: @config.timeout,
|
196
|
+
metadata: call_metadata
|
197
|
+
|
198
|
+
uri, body, _query_string_params = transcode_add_nodes request
|
199
|
+
response = @client_stub.make_post_request(
|
200
|
+
uri: uri,
|
201
|
+
body: body,
|
202
|
+
options: options
|
203
|
+
)
|
204
|
+
result = ::Google::Cloud::Compute::V1::Operation.decode_json response.body, ignore_unknown_fields: true
|
205
|
+
|
206
|
+
yield result, response if block_given?
|
207
|
+
result
|
208
|
+
rescue ::Faraday::Error => e
|
209
|
+
gapic_error = ::Gapic::Rest::Error.wrap_faraday_error e
|
210
|
+
raise ::Google::Cloud::Error.from_error(gapic_error)
|
211
|
+
end
|
212
|
+
|
213
|
+
##
|
214
|
+
# Retrieves an aggregated list of node groups. Note: use nodeGroups.listNodes for more details about each group.
|
215
|
+
#
|
216
|
+
# @overload aggregated_list(request, options = nil)
|
217
|
+
# Pass arguments to `aggregated_list` via a request object, either of type
|
218
|
+
# {::Google::Cloud::Compute::V1::AggregatedListNodeGroupsRequest} or an equivalent Hash.
|
219
|
+
#
|
220
|
+
# @param request [::Google::Cloud::Compute::V1::AggregatedListNodeGroupsRequest, ::Hash]
|
221
|
+
# A request object representing the call parameters. Required. To specify no
|
222
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
223
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
224
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
225
|
+
# Note: currently retry functionality is not implemented. While it is possible
|
226
|
+
# to set it using ::Gapic::CallOptions, it will not be applied
|
227
|
+
#
|
228
|
+
# @overload aggregated_list(filter: nil, include_all_scopes: nil, max_results: nil, order_by: nil, page_token: nil, project: nil, return_partial_success: nil)
|
229
|
+
# Pass arguments to `aggregated_list` via keyword arguments. Note that at
|
230
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
231
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
232
|
+
#
|
233
|
+
# @param filter [::String]
|
234
|
+
# 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 `<`.
|
235
|
+
#
|
236
|
+
# For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`.
|
237
|
+
#
|
238
|
+
# 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.
|
239
|
+
#
|
240
|
+
# 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) ```
|
241
|
+
# @param include_all_scopes [::Boolean]
|
242
|
+
# 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.
|
243
|
+
# @param max_results [::Integer]
|
244
|
+
# 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`)
|
245
|
+
# @param order_by [::String]
|
246
|
+
# Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name.
|
247
|
+
#
|
248
|
+
# 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.
|
249
|
+
#
|
250
|
+
# Currently, only sorting by `name` or `creationTimestamp desc` is supported.
|
251
|
+
# @param page_token [::String]
|
252
|
+
# Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results.
|
253
|
+
# @param project [::String]
|
254
|
+
# Project ID for this request.
|
255
|
+
# @param return_partial_success [::Boolean]
|
256
|
+
# Opt-in for partial success behavior which provides partial results in case of failure. The default value is false and the logic is the same as today.
|
257
|
+
# @yield [result, env] Access the result along with the Faraday environment object
|
258
|
+
# @yieldparam result [::Google::Cloud::Compute::V1::NodeGroupAggregatedList]
|
259
|
+
# @yieldparam response [::Faraday::Response]
|
260
|
+
#
|
261
|
+
# @return [::Google::Cloud::Compute::V1::NodeGroupAggregatedList]
|
262
|
+
#
|
263
|
+
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
264
|
+
def aggregated_list request, options = nil
|
265
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
266
|
+
|
267
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Compute::V1::AggregatedListNodeGroupsRequest
|
268
|
+
|
269
|
+
# Converts hash and nil to an options object
|
270
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
271
|
+
|
272
|
+
# Customize the options with defaults
|
273
|
+
call_metadata = {}
|
274
|
+
|
275
|
+
# Set x-goog-api-client header
|
276
|
+
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
277
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
278
|
+
gapic_version: ::Google::Cloud::Compute::V1::VERSION
|
279
|
+
|
280
|
+
options.apply_defaults timeout: @config.timeout,
|
281
|
+
metadata: call_metadata
|
282
|
+
|
283
|
+
uri, _body, query_string_params = transcode_aggregated_list request
|
284
|
+
response = @client_stub.make_get_request(
|
285
|
+
uri: uri,
|
286
|
+
params: query_string_params,
|
287
|
+
options: options
|
288
|
+
)
|
289
|
+
result = ::Google::Cloud::Compute::V1::NodeGroupAggregatedList.decode_json response.body, ignore_unknown_fields: true
|
290
|
+
|
291
|
+
yield result, response if block_given?
|
292
|
+
result
|
293
|
+
rescue ::Faraday::Error => e
|
294
|
+
gapic_error = ::Gapic::Rest::Error.wrap_faraday_error e
|
295
|
+
raise ::Google::Cloud::Error.from_error(gapic_error)
|
296
|
+
end
|
297
|
+
|
298
|
+
##
|
299
|
+
# Deletes the specified NodeGroup resource.
|
300
|
+
#
|
301
|
+
# @overload delete(request, options = nil)
|
302
|
+
# Pass arguments to `delete` via a request object, either of type
|
303
|
+
# {::Google::Cloud::Compute::V1::DeleteNodeGroupRequest} or an equivalent Hash.
|
304
|
+
#
|
305
|
+
# @param request [::Google::Cloud::Compute::V1::DeleteNodeGroupRequest, ::Hash]
|
306
|
+
# A request object representing the call parameters. Required. To specify no
|
307
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
308
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
309
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
310
|
+
# Note: currently retry functionality is not implemented. While it is possible
|
311
|
+
# to set it using ::Gapic::CallOptions, it will not be applied
|
312
|
+
#
|
313
|
+
# @overload delete(node_group: nil, project: nil, request_id: nil, zone: nil)
|
314
|
+
# Pass arguments to `delete` via keyword arguments. Note that at
|
315
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
316
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
317
|
+
#
|
318
|
+
# @param node_group [::String]
|
319
|
+
# Name of the NodeGroup resource to delete.
|
320
|
+
# @param project [::String]
|
321
|
+
# Project ID for this request.
|
322
|
+
# @param request_id [::String]
|
323
|
+
# 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.
|
324
|
+
#
|
325
|
+
# 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.
|
326
|
+
#
|
327
|
+
# The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
|
328
|
+
# @param zone [::String]
|
329
|
+
# The name of the zone for this request.
|
330
|
+
# @yield [result, env] Access the result along with the Faraday environment object
|
331
|
+
# @yieldparam result [::Google::Cloud::Compute::V1::Operation]
|
332
|
+
# @yieldparam response [::Faraday::Response]
|
333
|
+
#
|
334
|
+
# @return [::Google::Cloud::Compute::V1::Operation]
|
335
|
+
#
|
336
|
+
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
337
|
+
def delete request, options = nil
|
338
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
339
|
+
|
340
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Compute::V1::DeleteNodeGroupRequest
|
341
|
+
|
342
|
+
# Converts hash and nil to an options object
|
343
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
344
|
+
|
345
|
+
# Customize the options with defaults
|
346
|
+
call_metadata = {}
|
347
|
+
|
348
|
+
# Set x-goog-api-client header
|
349
|
+
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
350
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
351
|
+
gapic_version: ::Google::Cloud::Compute::V1::VERSION
|
352
|
+
|
353
|
+
options.apply_defaults timeout: @config.timeout,
|
354
|
+
metadata: call_metadata
|
355
|
+
|
356
|
+
uri, _body, query_string_params = transcode_delete request
|
357
|
+
response = @client_stub.make_delete_request(
|
358
|
+
uri: uri,
|
359
|
+
params: query_string_params,
|
360
|
+
options: options
|
361
|
+
)
|
362
|
+
result = ::Google::Cloud::Compute::V1::Operation.decode_json response.body, ignore_unknown_fields: true
|
363
|
+
|
364
|
+
yield result, response if block_given?
|
365
|
+
result
|
366
|
+
rescue ::Faraday::Error => e
|
367
|
+
gapic_error = ::Gapic::Rest::Error.wrap_faraday_error e
|
368
|
+
raise ::Google::Cloud::Error.from_error(gapic_error)
|
369
|
+
end
|
370
|
+
|
371
|
+
##
|
372
|
+
# Deletes specified nodes from the node group.
|
373
|
+
#
|
374
|
+
# @overload delete_nodes(request, options = nil)
|
375
|
+
# Pass arguments to `delete_nodes` via a request object, either of type
|
376
|
+
# {::Google::Cloud::Compute::V1::DeleteNodesNodeGroupRequest} or an equivalent Hash.
|
377
|
+
#
|
378
|
+
# @param request [::Google::Cloud::Compute::V1::DeleteNodesNodeGroupRequest, ::Hash]
|
379
|
+
# A request object representing the call parameters. Required. To specify no
|
380
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
381
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
382
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
383
|
+
# Note: currently retry functionality is not implemented. While it is possible
|
384
|
+
# to set it using ::Gapic::CallOptions, it will not be applied
|
385
|
+
#
|
386
|
+
# @overload delete_nodes(node_group: nil, node_groups_delete_nodes_request_resource: nil, project: nil, request_id: nil, zone: nil)
|
387
|
+
# Pass arguments to `delete_nodes` via keyword arguments. Note that at
|
388
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
389
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
390
|
+
#
|
391
|
+
# @param node_group [::String]
|
392
|
+
# Name of the NodeGroup resource whose nodes will be deleted.
|
393
|
+
# @param node_groups_delete_nodes_request_resource [::Google::Cloud::Compute::V1::NodeGroupsDeleteNodesRequest, ::Hash]
|
394
|
+
# The body resource for this request
|
395
|
+
# @param project [::String]
|
396
|
+
# Project ID for this request.
|
397
|
+
# @param request_id [::String]
|
398
|
+
# 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.
|
399
|
+
#
|
400
|
+
# 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.
|
401
|
+
#
|
402
|
+
# The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
|
403
|
+
# @param zone [::String]
|
404
|
+
# The name of the zone for this request.
|
405
|
+
# @yield [result, env] Access the result along with the Faraday environment object
|
406
|
+
# @yieldparam result [::Google::Cloud::Compute::V1::Operation]
|
407
|
+
# @yieldparam response [::Faraday::Response]
|
408
|
+
#
|
409
|
+
# @return [::Google::Cloud::Compute::V1::Operation]
|
410
|
+
#
|
411
|
+
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
412
|
+
def delete_nodes request, options = nil
|
413
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
414
|
+
|
415
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Compute::V1::DeleteNodesNodeGroupRequest
|
416
|
+
|
417
|
+
# Converts hash and nil to an options object
|
418
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
419
|
+
|
420
|
+
# Customize the options with defaults
|
421
|
+
call_metadata = {}
|
422
|
+
|
423
|
+
# Set x-goog-api-client header
|
424
|
+
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
425
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
426
|
+
gapic_version: ::Google::Cloud::Compute::V1::VERSION
|
427
|
+
|
428
|
+
options.apply_defaults timeout: @config.timeout,
|
429
|
+
metadata: call_metadata
|
430
|
+
|
431
|
+
uri, body, _query_string_params = transcode_delete_nodes request
|
432
|
+
response = @client_stub.make_post_request(
|
433
|
+
uri: uri,
|
434
|
+
body: body,
|
435
|
+
options: options
|
436
|
+
)
|
437
|
+
result = ::Google::Cloud::Compute::V1::Operation.decode_json response.body, ignore_unknown_fields: true
|
438
|
+
|
439
|
+
yield result, response if block_given?
|
440
|
+
result
|
441
|
+
rescue ::Faraday::Error => e
|
442
|
+
gapic_error = ::Gapic::Rest::Error.wrap_faraday_error e
|
443
|
+
raise ::Google::Cloud::Error.from_error(gapic_error)
|
444
|
+
end
|
445
|
+
|
446
|
+
##
|
447
|
+
# Returns the specified NodeGroup. Get a list of available NodeGroups by making a list() request. Note: the "nodes" field should not be used. Use nodeGroups.listNodes instead.
|
448
|
+
#
|
449
|
+
# @overload get(request, options = nil)
|
450
|
+
# Pass arguments to `get` via a request object, either of type
|
451
|
+
# {::Google::Cloud::Compute::V1::GetNodeGroupRequest} or an equivalent Hash.
|
452
|
+
#
|
453
|
+
# @param request [::Google::Cloud::Compute::V1::GetNodeGroupRequest, ::Hash]
|
454
|
+
# A request object representing the call parameters. Required. To specify no
|
455
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
456
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
457
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
458
|
+
# Note: currently retry functionality is not implemented. While it is possible
|
459
|
+
# to set it using ::Gapic::CallOptions, it will not be applied
|
460
|
+
#
|
461
|
+
# @overload get(node_group: nil, project: nil, zone: nil)
|
462
|
+
# Pass arguments to `get` via keyword arguments. Note that at
|
463
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
464
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
465
|
+
#
|
466
|
+
# @param node_group [::String]
|
467
|
+
# Name of the node group to return.
|
468
|
+
# @param project [::String]
|
469
|
+
# Project ID for this request.
|
470
|
+
# @param zone [::String]
|
471
|
+
# The name of the zone for this request.
|
472
|
+
# @yield [result, env] Access the result along with the Faraday environment object
|
473
|
+
# @yieldparam result [::Google::Cloud::Compute::V1::NodeGroup]
|
474
|
+
# @yieldparam response [::Faraday::Response]
|
475
|
+
#
|
476
|
+
# @return [::Google::Cloud::Compute::V1::NodeGroup]
|
477
|
+
#
|
478
|
+
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
479
|
+
def get request, options = nil
|
480
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
481
|
+
|
482
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Compute::V1::GetNodeGroupRequest
|
483
|
+
|
484
|
+
# Converts hash and nil to an options object
|
485
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
486
|
+
|
487
|
+
# Customize the options with defaults
|
488
|
+
call_metadata = {}
|
489
|
+
|
490
|
+
# Set x-goog-api-client header
|
491
|
+
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
492
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
493
|
+
gapic_version: ::Google::Cloud::Compute::V1::VERSION
|
494
|
+
|
495
|
+
options.apply_defaults timeout: @config.timeout,
|
496
|
+
metadata: call_metadata
|
497
|
+
|
498
|
+
uri, _body, _query_string_params = transcode_get request
|
499
|
+
response = @client_stub.make_get_request(
|
500
|
+
uri: uri,
|
501
|
+
options: options
|
502
|
+
)
|
503
|
+
result = ::Google::Cloud::Compute::V1::NodeGroup.decode_json response.body, ignore_unknown_fields: true
|
504
|
+
|
505
|
+
yield result, response if block_given?
|
506
|
+
result
|
507
|
+
rescue ::Faraday::Error => e
|
508
|
+
gapic_error = ::Gapic::Rest::Error.wrap_faraday_error e
|
509
|
+
raise ::Google::Cloud::Error.from_error(gapic_error)
|
510
|
+
end
|
511
|
+
|
512
|
+
##
|
513
|
+
# Gets the access control policy for a resource. May be empty if no such policy or resource exists.
|
514
|
+
#
|
515
|
+
# @overload get_iam_policy(request, options = nil)
|
516
|
+
# Pass arguments to `get_iam_policy` via a request object, either of type
|
517
|
+
# {::Google::Cloud::Compute::V1::GetIamPolicyNodeGroupRequest} or an equivalent Hash.
|
518
|
+
#
|
519
|
+
# @param request [::Google::Cloud::Compute::V1::GetIamPolicyNodeGroupRequest, ::Hash]
|
520
|
+
# A request object representing the call parameters. Required. To specify no
|
521
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
522
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
523
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
524
|
+
# Note: currently retry functionality is not implemented. While it is possible
|
525
|
+
# to set it using ::Gapic::CallOptions, it will not be applied
|
526
|
+
#
|
527
|
+
# @overload get_iam_policy(options_requested_policy_version: nil, project: nil, resource: nil, zone: nil)
|
528
|
+
# Pass arguments to `get_iam_policy` via keyword arguments. Note that at
|
529
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
530
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
531
|
+
#
|
532
|
+
# @param options_requested_policy_version [::Integer]
|
533
|
+
# Requested IAM Policy version.
|
534
|
+
# @param project [::String]
|
535
|
+
# Project ID for this request.
|
536
|
+
# @param resource [::String]
|
537
|
+
# Name or id of the resource for this request.
|
538
|
+
# @param zone [::String]
|
539
|
+
# The name of the zone for this request.
|
540
|
+
# @yield [result, env] Access the result along with the Faraday environment object
|
541
|
+
# @yieldparam result [::Google::Cloud::Compute::V1::Policy]
|
542
|
+
# @yieldparam response [::Faraday::Response]
|
543
|
+
#
|
544
|
+
# @return [::Google::Cloud::Compute::V1::Policy]
|
545
|
+
#
|
546
|
+
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
547
|
+
def get_iam_policy request, options = nil
|
548
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
549
|
+
|
550
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Compute::V1::GetIamPolicyNodeGroupRequest
|
551
|
+
|
552
|
+
# Converts hash and nil to an options object
|
553
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
554
|
+
|
555
|
+
# Customize the options with defaults
|
556
|
+
call_metadata = {}
|
557
|
+
|
558
|
+
# Set x-goog-api-client header
|
559
|
+
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
560
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
561
|
+
gapic_version: ::Google::Cloud::Compute::V1::VERSION
|
562
|
+
|
563
|
+
options.apply_defaults timeout: @config.timeout,
|
564
|
+
metadata: call_metadata
|
565
|
+
|
566
|
+
uri, _body, query_string_params = transcode_get_iam_policy request
|
567
|
+
response = @client_stub.make_get_request(
|
568
|
+
uri: uri,
|
569
|
+
params: query_string_params,
|
570
|
+
options: options
|
571
|
+
)
|
572
|
+
result = ::Google::Cloud::Compute::V1::Policy.decode_json response.body, ignore_unknown_fields: true
|
573
|
+
|
574
|
+
yield result, response if block_given?
|
575
|
+
result
|
576
|
+
rescue ::Faraday::Error => e
|
577
|
+
gapic_error = ::Gapic::Rest::Error.wrap_faraday_error e
|
578
|
+
raise ::Google::Cloud::Error.from_error(gapic_error)
|
579
|
+
end
|
580
|
+
|
581
|
+
##
|
582
|
+
# Creates a NodeGroup resource in the specified project using the data included in the request.
|
583
|
+
#
|
584
|
+
# @overload insert(request, options = nil)
|
585
|
+
# Pass arguments to `insert` via a request object, either of type
|
586
|
+
# {::Google::Cloud::Compute::V1::InsertNodeGroupRequest} or an equivalent Hash.
|
587
|
+
#
|
588
|
+
# @param request [::Google::Cloud::Compute::V1::InsertNodeGroupRequest, ::Hash]
|
589
|
+
# A request object representing the call parameters. Required. To specify no
|
590
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
591
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
592
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
593
|
+
# Note: currently retry functionality is not implemented. While it is possible
|
594
|
+
# to set it using ::Gapic::CallOptions, it will not be applied
|
595
|
+
#
|
596
|
+
# @overload insert(initial_node_count: nil, node_group_resource: nil, project: nil, request_id: nil, zone: nil)
|
597
|
+
# Pass arguments to `insert` via keyword arguments. Note that at
|
598
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
599
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
600
|
+
#
|
601
|
+
# @param initial_node_count [::Integer]
|
602
|
+
# Initial count of nodes in the node group.
|
603
|
+
# @param node_group_resource [::Google::Cloud::Compute::V1::NodeGroup, ::Hash]
|
604
|
+
# The body resource for this request
|
605
|
+
# @param project [::String]
|
606
|
+
# Project ID for this request.
|
607
|
+
# @param request_id [::String]
|
608
|
+
# 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.
|
609
|
+
#
|
610
|
+
# 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.
|
611
|
+
#
|
612
|
+
# The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
|
613
|
+
# @param zone [::String]
|
614
|
+
# The name of the zone for this request.
|
615
|
+
# @yield [result, env] Access the result along with the Faraday environment object
|
616
|
+
# @yieldparam result [::Google::Cloud::Compute::V1::Operation]
|
617
|
+
# @yieldparam response [::Faraday::Response]
|
618
|
+
#
|
619
|
+
# @return [::Google::Cloud::Compute::V1::Operation]
|
620
|
+
#
|
621
|
+
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
622
|
+
def insert request, options = nil
|
623
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
624
|
+
|
625
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Compute::V1::InsertNodeGroupRequest
|
626
|
+
|
627
|
+
# Converts hash and nil to an options object
|
628
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
629
|
+
|
630
|
+
# Customize the options with defaults
|
631
|
+
call_metadata = {}
|
632
|
+
|
633
|
+
# Set x-goog-api-client header
|
634
|
+
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
635
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
636
|
+
gapic_version: ::Google::Cloud::Compute::V1::VERSION
|
637
|
+
|
638
|
+
options.apply_defaults timeout: @config.timeout,
|
639
|
+
metadata: call_metadata
|
640
|
+
|
641
|
+
uri, body, _query_string_params = transcode_insert request
|
642
|
+
response = @client_stub.make_post_request(
|
643
|
+
uri: uri,
|
644
|
+
body: body,
|
645
|
+
options: options
|
646
|
+
)
|
647
|
+
result = ::Google::Cloud::Compute::V1::Operation.decode_json response.body, ignore_unknown_fields: true
|
648
|
+
|
649
|
+
yield result, response if block_given?
|
650
|
+
result
|
651
|
+
rescue ::Faraday::Error => e
|
652
|
+
gapic_error = ::Gapic::Rest::Error.wrap_faraday_error e
|
653
|
+
raise ::Google::Cloud::Error.from_error(gapic_error)
|
654
|
+
end
|
655
|
+
|
656
|
+
##
|
657
|
+
# Retrieves a list of node groups available to the specified project. Note: use nodeGroups.listNodes for more details about each group.
|
658
|
+
#
|
659
|
+
# @overload list(request, options = nil)
|
660
|
+
# Pass arguments to `list` via a request object, either of type
|
661
|
+
# {::Google::Cloud::Compute::V1::ListNodeGroupsRequest} or an equivalent Hash.
|
662
|
+
#
|
663
|
+
# @param request [::Google::Cloud::Compute::V1::ListNodeGroupsRequest, ::Hash]
|
664
|
+
# A request object representing the call parameters. Required. To specify no
|
665
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
666
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
667
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
668
|
+
# Note: currently retry functionality is not implemented. While it is possible
|
669
|
+
# to set it using ::Gapic::CallOptions, it will not be applied
|
670
|
+
#
|
671
|
+
# @overload list(filter: nil, max_results: nil, order_by: nil, page_token: nil, project: nil, return_partial_success: nil, zone: nil)
|
672
|
+
# Pass arguments to `list` via keyword arguments. Note that at
|
673
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
674
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
675
|
+
#
|
676
|
+
# @param filter [::String]
|
677
|
+
# 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 `<`.
|
678
|
+
#
|
679
|
+
# For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`.
|
680
|
+
#
|
681
|
+
# 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.
|
682
|
+
#
|
683
|
+
# 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) ```
|
684
|
+
# @param max_results [::Integer]
|
685
|
+
# 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`)
|
686
|
+
# @param order_by [::String]
|
687
|
+
# Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name.
|
688
|
+
#
|
689
|
+
# 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.
|
690
|
+
#
|
691
|
+
# Currently, only sorting by `name` or `creationTimestamp desc` is supported.
|
692
|
+
# @param page_token [::String]
|
693
|
+
# Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results.
|
694
|
+
# @param project [::String]
|
695
|
+
# Project ID for this request.
|
696
|
+
# @param return_partial_success [::Boolean]
|
697
|
+
# Opt-in for partial success behavior which provides partial results in case of failure. The default value is false and the logic is the same as today.
|
698
|
+
# @param zone [::String]
|
699
|
+
# The name of the zone for this request.
|
700
|
+
# @yield [result, env] Access the result along with the Faraday environment object
|
701
|
+
# @yieldparam result [::Google::Cloud::Compute::V1::NodeGroupList]
|
702
|
+
# @yieldparam response [::Faraday::Response]
|
703
|
+
#
|
704
|
+
# @return [::Google::Cloud::Compute::V1::NodeGroupList]
|
705
|
+
#
|
706
|
+
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
707
|
+
def list request, options = nil
|
708
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
709
|
+
|
710
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Compute::V1::ListNodeGroupsRequest
|
711
|
+
|
712
|
+
# Converts hash and nil to an options object
|
713
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
714
|
+
|
715
|
+
# Customize the options with defaults
|
716
|
+
call_metadata = {}
|
717
|
+
|
718
|
+
# Set x-goog-api-client header
|
719
|
+
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
720
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
721
|
+
gapic_version: ::Google::Cloud::Compute::V1::VERSION
|
722
|
+
|
723
|
+
options.apply_defaults timeout: @config.timeout,
|
724
|
+
metadata: call_metadata
|
725
|
+
|
726
|
+
uri, _body, query_string_params = transcode_list request
|
727
|
+
response = @client_stub.make_get_request(
|
728
|
+
uri: uri,
|
729
|
+
params: query_string_params,
|
730
|
+
options: options
|
731
|
+
)
|
732
|
+
result = ::Google::Cloud::Compute::V1::NodeGroupList.decode_json response.body, ignore_unknown_fields: true
|
733
|
+
|
734
|
+
yield result, response if block_given?
|
735
|
+
result
|
736
|
+
rescue ::Faraday::Error => e
|
737
|
+
gapic_error = ::Gapic::Rest::Error.wrap_faraday_error e
|
738
|
+
raise ::Google::Cloud::Error.from_error(gapic_error)
|
739
|
+
end
|
740
|
+
|
741
|
+
##
|
742
|
+
# Lists nodes in the node group.
|
743
|
+
#
|
744
|
+
# @overload list_nodes(request, options = nil)
|
745
|
+
# Pass arguments to `list_nodes` via a request object, either of type
|
746
|
+
# {::Google::Cloud::Compute::V1::ListNodesNodeGroupsRequest} or an equivalent Hash.
|
747
|
+
#
|
748
|
+
# @param request [::Google::Cloud::Compute::V1::ListNodesNodeGroupsRequest, ::Hash]
|
749
|
+
# A request object representing the call parameters. Required. To specify no
|
750
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
751
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
752
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
753
|
+
# Note: currently retry functionality is not implemented. While it is possible
|
754
|
+
# to set it using ::Gapic::CallOptions, it will not be applied
|
755
|
+
#
|
756
|
+
# @overload list_nodes(filter: nil, max_results: nil, node_group: nil, order_by: nil, page_token: nil, project: nil, return_partial_success: nil, zone: nil)
|
757
|
+
# Pass arguments to `list_nodes` via keyword arguments. Note that at
|
758
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
759
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
760
|
+
#
|
761
|
+
# @param filter [::String]
|
762
|
+
# 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 `<`.
|
763
|
+
#
|
764
|
+
# For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`.
|
765
|
+
#
|
766
|
+
# 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.
|
767
|
+
#
|
768
|
+
# 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) ```
|
769
|
+
# @param max_results [::Integer]
|
770
|
+
# 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`)
|
771
|
+
# @param node_group [::String]
|
772
|
+
# Name of the NodeGroup resource whose nodes you want to list.
|
773
|
+
# @param order_by [::String]
|
774
|
+
# Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name.
|
775
|
+
#
|
776
|
+
# 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.
|
777
|
+
#
|
778
|
+
# Currently, only sorting by `name` or `creationTimestamp desc` is supported.
|
779
|
+
# @param page_token [::String]
|
780
|
+
# Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results.
|
781
|
+
# @param project [::String]
|
782
|
+
# Project ID for this request.
|
783
|
+
# @param return_partial_success [::Boolean]
|
784
|
+
# Opt-in for partial success behavior which provides partial results in case of failure. The default value is false and the logic is the same as today.
|
785
|
+
# @param zone [::String]
|
786
|
+
# The name of the zone for this request.
|
787
|
+
# @yield [result, env] Access the result along with the Faraday environment object
|
788
|
+
# @yieldparam result [::Google::Cloud::Compute::V1::NodeGroupsListNodes]
|
789
|
+
# @yieldparam response [::Faraday::Response]
|
790
|
+
#
|
791
|
+
# @return [::Google::Cloud::Compute::V1::NodeGroupsListNodes]
|
792
|
+
#
|
793
|
+
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
794
|
+
def list_nodes request, options = nil
|
795
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
796
|
+
|
797
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Compute::V1::ListNodesNodeGroupsRequest
|
798
|
+
|
799
|
+
# Converts hash and nil to an options object
|
800
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
801
|
+
|
802
|
+
# Customize the options with defaults
|
803
|
+
call_metadata = {}
|
804
|
+
|
805
|
+
# Set x-goog-api-client header
|
806
|
+
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
807
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
808
|
+
gapic_version: ::Google::Cloud::Compute::V1::VERSION
|
809
|
+
|
810
|
+
options.apply_defaults timeout: @config.timeout,
|
811
|
+
metadata: call_metadata
|
812
|
+
|
813
|
+
uri, _body, query_string_params = transcode_list_nodes request
|
814
|
+
response = @client_stub.make_post_request(
|
815
|
+
uri: uri,
|
816
|
+
params: query_string_params,
|
817
|
+
options: options
|
818
|
+
)
|
819
|
+
result = ::Google::Cloud::Compute::V1::NodeGroupsListNodes.decode_json response.body, ignore_unknown_fields: true
|
820
|
+
|
821
|
+
yield result, response if block_given?
|
822
|
+
result
|
823
|
+
rescue ::Faraday::Error => e
|
824
|
+
gapic_error = ::Gapic::Rest::Error.wrap_faraday_error e
|
825
|
+
raise ::Google::Cloud::Error.from_error(gapic_error)
|
826
|
+
end
|
827
|
+
|
828
|
+
##
|
829
|
+
# Updates the specified node group.
|
830
|
+
#
|
831
|
+
# @overload patch(request, options = nil)
|
832
|
+
# Pass arguments to `patch` via a request object, either of type
|
833
|
+
# {::Google::Cloud::Compute::V1::PatchNodeGroupRequest} or an equivalent Hash.
|
834
|
+
#
|
835
|
+
# @param request [::Google::Cloud::Compute::V1::PatchNodeGroupRequest, ::Hash]
|
836
|
+
# A request object representing the call parameters. Required. To specify no
|
837
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
838
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
839
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
840
|
+
# Note: currently retry functionality is not implemented. While it is possible
|
841
|
+
# to set it using ::Gapic::CallOptions, it will not be applied
|
842
|
+
#
|
843
|
+
# @overload patch(node_group: nil, node_group_resource: nil, project: nil, request_id: nil, zone: nil)
|
844
|
+
# Pass arguments to `patch` via keyword arguments. Note that at
|
845
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
846
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
847
|
+
#
|
848
|
+
# @param node_group [::String]
|
849
|
+
# Name of the NodeGroup resource to update.
|
850
|
+
# @param node_group_resource [::Google::Cloud::Compute::V1::NodeGroup, ::Hash]
|
851
|
+
# The body resource for this request
|
852
|
+
# @param project [::String]
|
853
|
+
# Project ID for this request.
|
854
|
+
# @param request_id [::String]
|
855
|
+
# 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.
|
856
|
+
#
|
857
|
+
# 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.
|
858
|
+
#
|
859
|
+
# The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
|
860
|
+
# @param zone [::String]
|
861
|
+
# The name of the zone for this request.
|
862
|
+
# @yield [result, env] Access the result along with the Faraday environment object
|
863
|
+
# @yieldparam result [::Google::Cloud::Compute::V1::Operation]
|
864
|
+
# @yieldparam response [::Faraday::Response]
|
865
|
+
#
|
866
|
+
# @return [::Google::Cloud::Compute::V1::Operation]
|
867
|
+
#
|
868
|
+
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
869
|
+
def patch request, options = nil
|
870
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
871
|
+
|
872
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Compute::V1::PatchNodeGroupRequest
|
873
|
+
|
874
|
+
# Converts hash and nil to an options object
|
875
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
876
|
+
|
877
|
+
# Customize the options with defaults
|
878
|
+
call_metadata = {}
|
879
|
+
|
880
|
+
# Set x-goog-api-client header
|
881
|
+
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
882
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
883
|
+
gapic_version: ::Google::Cloud::Compute::V1::VERSION
|
884
|
+
|
885
|
+
options.apply_defaults timeout: @config.timeout,
|
886
|
+
metadata: call_metadata
|
887
|
+
|
888
|
+
uri, body, _query_string_params = transcode_patch request
|
889
|
+
response = @client_stub.make_patch_request(
|
890
|
+
uri: uri,
|
891
|
+
body: body,
|
892
|
+
options: options
|
893
|
+
)
|
894
|
+
result = ::Google::Cloud::Compute::V1::Operation.decode_json response.body, ignore_unknown_fields: true
|
895
|
+
|
896
|
+
yield result, response if block_given?
|
897
|
+
result
|
898
|
+
rescue ::Faraday::Error => e
|
899
|
+
gapic_error = ::Gapic::Rest::Error.wrap_faraday_error e
|
900
|
+
raise ::Google::Cloud::Error.from_error(gapic_error)
|
901
|
+
end
|
902
|
+
|
903
|
+
##
|
904
|
+
# Sets the access control policy on the specified resource. Replaces any existing policy.
|
905
|
+
#
|
906
|
+
# @overload set_iam_policy(request, options = nil)
|
907
|
+
# Pass arguments to `set_iam_policy` via a request object, either of type
|
908
|
+
# {::Google::Cloud::Compute::V1::SetIamPolicyNodeGroupRequest} or an equivalent Hash.
|
909
|
+
#
|
910
|
+
# @param request [::Google::Cloud::Compute::V1::SetIamPolicyNodeGroupRequest, ::Hash]
|
911
|
+
# A request object representing the call parameters. Required. To specify no
|
912
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
913
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
914
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
915
|
+
# Note: currently retry functionality is not implemented. While it is possible
|
916
|
+
# to set it using ::Gapic::CallOptions, it will not be applied
|
917
|
+
#
|
918
|
+
# @overload set_iam_policy(project: nil, resource: nil, zone: nil, zone_set_policy_request_resource: nil)
|
919
|
+
# Pass arguments to `set_iam_policy` via keyword arguments. Note that at
|
920
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
921
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
922
|
+
#
|
923
|
+
# @param project [::String]
|
924
|
+
# Project ID for this request.
|
925
|
+
# @param resource [::String]
|
926
|
+
# Name or id of the resource for this request.
|
927
|
+
# @param zone [::String]
|
928
|
+
# The name of the zone for this request.
|
929
|
+
# @param zone_set_policy_request_resource [::Google::Cloud::Compute::V1::ZoneSetPolicyRequest, ::Hash]
|
930
|
+
# The body resource for this request
|
931
|
+
# @yield [result, env] Access the result along with the Faraday environment object
|
932
|
+
# @yieldparam result [::Google::Cloud::Compute::V1::Policy]
|
933
|
+
# @yieldparam response [::Faraday::Response]
|
934
|
+
#
|
935
|
+
# @return [::Google::Cloud::Compute::V1::Policy]
|
936
|
+
#
|
937
|
+
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
938
|
+
def set_iam_policy request, options = nil
|
939
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
940
|
+
|
941
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Compute::V1::SetIamPolicyNodeGroupRequest
|
942
|
+
|
943
|
+
# Converts hash and nil to an options object
|
944
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
945
|
+
|
946
|
+
# Customize the options with defaults
|
947
|
+
call_metadata = {}
|
948
|
+
|
949
|
+
# Set x-goog-api-client header
|
950
|
+
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
951
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
952
|
+
gapic_version: ::Google::Cloud::Compute::V1::VERSION
|
953
|
+
|
954
|
+
options.apply_defaults timeout: @config.timeout,
|
955
|
+
metadata: call_metadata
|
956
|
+
|
957
|
+
uri, body, _query_string_params = transcode_set_iam_policy request
|
958
|
+
response = @client_stub.make_post_request(
|
959
|
+
uri: uri,
|
960
|
+
body: body,
|
961
|
+
options: options
|
962
|
+
)
|
963
|
+
result = ::Google::Cloud::Compute::V1::Policy.decode_json response.body, ignore_unknown_fields: true
|
964
|
+
|
965
|
+
yield result, response if block_given?
|
966
|
+
result
|
967
|
+
rescue ::Faraday::Error => e
|
968
|
+
gapic_error = ::Gapic::Rest::Error.wrap_faraday_error e
|
969
|
+
raise ::Google::Cloud::Error.from_error(gapic_error)
|
970
|
+
end
|
971
|
+
|
972
|
+
##
|
973
|
+
# Updates the node template of the node group.
|
974
|
+
#
|
975
|
+
# @overload set_node_template(request, options = nil)
|
976
|
+
# Pass arguments to `set_node_template` via a request object, either of type
|
977
|
+
# {::Google::Cloud::Compute::V1::SetNodeTemplateNodeGroupRequest} or an equivalent Hash.
|
978
|
+
#
|
979
|
+
# @param request [::Google::Cloud::Compute::V1::SetNodeTemplateNodeGroupRequest, ::Hash]
|
980
|
+
# A request object representing the call parameters. Required. To specify no
|
981
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
982
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
983
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
984
|
+
# Note: currently retry functionality is not implemented. While it is possible
|
985
|
+
# to set it using ::Gapic::CallOptions, it will not be applied
|
986
|
+
#
|
987
|
+
# @overload set_node_template(node_group: nil, node_groups_set_node_template_request_resource: nil, project: nil, request_id: nil, zone: nil)
|
988
|
+
# Pass arguments to `set_node_template` via keyword arguments. Note that at
|
989
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
990
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
991
|
+
#
|
992
|
+
# @param node_group [::String]
|
993
|
+
# Name of the NodeGroup resource to update.
|
994
|
+
# @param node_groups_set_node_template_request_resource [::Google::Cloud::Compute::V1::NodeGroupsSetNodeTemplateRequest, ::Hash]
|
995
|
+
# The body resource for this request
|
996
|
+
# @param project [::String]
|
997
|
+
# Project ID for this request.
|
998
|
+
# @param request_id [::String]
|
999
|
+
# 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.
|
1000
|
+
#
|
1001
|
+
# 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.
|
1002
|
+
#
|
1003
|
+
# The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
|
1004
|
+
# @param zone [::String]
|
1005
|
+
# The name of the zone for this request.
|
1006
|
+
# @yield [result, env] Access the result along with the Faraday environment object
|
1007
|
+
# @yieldparam result [::Google::Cloud::Compute::V1::Operation]
|
1008
|
+
# @yieldparam response [::Faraday::Response]
|
1009
|
+
#
|
1010
|
+
# @return [::Google::Cloud::Compute::V1::Operation]
|
1011
|
+
#
|
1012
|
+
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
1013
|
+
def set_node_template request, options = nil
|
1014
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
1015
|
+
|
1016
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Compute::V1::SetNodeTemplateNodeGroupRequest
|
1017
|
+
|
1018
|
+
# Converts hash and nil to an options object
|
1019
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
1020
|
+
|
1021
|
+
# Customize the options with defaults
|
1022
|
+
call_metadata = {}
|
1023
|
+
|
1024
|
+
# Set x-goog-api-client header
|
1025
|
+
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
1026
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
1027
|
+
gapic_version: ::Google::Cloud::Compute::V1::VERSION
|
1028
|
+
|
1029
|
+
options.apply_defaults timeout: @config.timeout,
|
1030
|
+
metadata: call_metadata
|
1031
|
+
|
1032
|
+
uri, body, _query_string_params = transcode_set_node_template request
|
1033
|
+
response = @client_stub.make_post_request(
|
1034
|
+
uri: uri,
|
1035
|
+
body: body,
|
1036
|
+
options: options
|
1037
|
+
)
|
1038
|
+
result = ::Google::Cloud::Compute::V1::Operation.decode_json response.body, ignore_unknown_fields: true
|
1039
|
+
|
1040
|
+
yield result, response if block_given?
|
1041
|
+
result
|
1042
|
+
rescue ::Faraday::Error => e
|
1043
|
+
gapic_error = ::Gapic::Rest::Error.wrap_faraday_error e
|
1044
|
+
raise ::Google::Cloud::Error.from_error(gapic_error)
|
1045
|
+
end
|
1046
|
+
|
1047
|
+
##
|
1048
|
+
# Returns permissions that a caller has on the specified resource.
|
1049
|
+
#
|
1050
|
+
# @overload test_iam_permissions(request, options = nil)
|
1051
|
+
# Pass arguments to `test_iam_permissions` via a request object, either of type
|
1052
|
+
# {::Google::Cloud::Compute::V1::TestIamPermissionsNodeGroupRequest} or an equivalent Hash.
|
1053
|
+
#
|
1054
|
+
# @param request [::Google::Cloud::Compute::V1::TestIamPermissionsNodeGroupRequest, ::Hash]
|
1055
|
+
# A request object representing the call parameters. Required. To specify no
|
1056
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
1057
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
1058
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
1059
|
+
# Note: currently retry functionality is not implemented. While it is possible
|
1060
|
+
# to set it using ::Gapic::CallOptions, it will not be applied
|
1061
|
+
#
|
1062
|
+
# @overload test_iam_permissions(project: nil, resource: nil, test_permissions_request_resource: nil, zone: nil)
|
1063
|
+
# Pass arguments to `test_iam_permissions` via keyword arguments. Note that at
|
1064
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
1065
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
1066
|
+
#
|
1067
|
+
# @param project [::String]
|
1068
|
+
# Project ID for this request.
|
1069
|
+
# @param resource [::String]
|
1070
|
+
# Name or id of the resource for this request.
|
1071
|
+
# @param test_permissions_request_resource [::Google::Cloud::Compute::V1::TestPermissionsRequest, ::Hash]
|
1072
|
+
# The body resource for this request
|
1073
|
+
# @param zone [::String]
|
1074
|
+
# The name of the zone for this request.
|
1075
|
+
# @yield [result, env] Access the result along with the Faraday environment object
|
1076
|
+
# @yieldparam result [::Google::Cloud::Compute::V1::TestPermissionsResponse]
|
1077
|
+
# @yieldparam response [::Faraday::Response]
|
1078
|
+
#
|
1079
|
+
# @return [::Google::Cloud::Compute::V1::TestPermissionsResponse]
|
1080
|
+
#
|
1081
|
+
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
1082
|
+
def test_iam_permissions request, options = nil
|
1083
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
1084
|
+
|
1085
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Compute::V1::TestIamPermissionsNodeGroupRequest
|
1086
|
+
|
1087
|
+
# Converts hash and nil to an options object
|
1088
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
1089
|
+
|
1090
|
+
# Customize the options with defaults
|
1091
|
+
call_metadata = {}
|
1092
|
+
|
1093
|
+
# Set x-goog-api-client header
|
1094
|
+
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
1095
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
1096
|
+
gapic_version: ::Google::Cloud::Compute::V1::VERSION
|
1097
|
+
|
1098
|
+
options.apply_defaults timeout: @config.timeout,
|
1099
|
+
metadata: call_metadata
|
1100
|
+
|
1101
|
+
uri, body, _query_string_params = transcode_test_iam_permissions request
|
1102
|
+
response = @client_stub.make_post_request(
|
1103
|
+
uri: uri,
|
1104
|
+
body: body,
|
1105
|
+
options: options
|
1106
|
+
)
|
1107
|
+
result = ::Google::Cloud::Compute::V1::TestPermissionsResponse.decode_json response.body, ignore_unknown_fields: true
|
1108
|
+
|
1109
|
+
yield result, response if block_given?
|
1110
|
+
result
|
1111
|
+
rescue ::Faraday::Error => e
|
1112
|
+
gapic_error = ::Gapic::Rest::Error.wrap_faraday_error e
|
1113
|
+
raise ::Google::Cloud::Error.from_error(gapic_error)
|
1114
|
+
end
|
1115
|
+
|
1116
|
+
##
|
1117
|
+
# Configuration class for the NodeGroups REST API.
|
1118
|
+
#
|
1119
|
+
# This class represents the configuration for NodeGroups REST,
|
1120
|
+
# providing control over credentials, timeouts, retry behavior, logging.
|
1121
|
+
#
|
1122
|
+
# Configuration can be applied globally to all clients, or to a single client
|
1123
|
+
# on construction.
|
1124
|
+
#
|
1125
|
+
# # Examples
|
1126
|
+
#
|
1127
|
+
# To modify the global config, setting the timeout for all calls to 10 seconds:
|
1128
|
+
#
|
1129
|
+
# ::Google::Cloud::Compute::V1::NodeGroups::Client.configure do |config|
|
1130
|
+
# config.timeout = 10.0
|
1131
|
+
# end
|
1132
|
+
#
|
1133
|
+
# To apply the above configuration only to a new client:
|
1134
|
+
#
|
1135
|
+
# client = ::Google::Cloud::Compute::V1::NodeGroups::Client.new do |config|
|
1136
|
+
# config.timeout = 10.0
|
1137
|
+
# end
|
1138
|
+
#
|
1139
|
+
# @!attribute [rw] endpoint
|
1140
|
+
# The hostname or hostname:port of the service endpoint.
|
1141
|
+
# Defaults to `"compute.googleapis.com"`.
|
1142
|
+
# @return [::String]
|
1143
|
+
# @!attribute [rw] credentials
|
1144
|
+
# Credentials to send with calls. You may provide any of the following types:
|
1145
|
+
# * (`String`) The path to a service account key file in JSON format
|
1146
|
+
# * (`Hash`) A service account key as a Hash
|
1147
|
+
# * (`Google::Auth::Credentials`) A googleauth credentials object
|
1148
|
+
# (see the [googleauth docs](https://googleapis.dev/ruby/googleauth/latest/index.html))
|
1149
|
+
# * (`Signet::OAuth2::Client`) A signet oauth2 client object
|
1150
|
+
# (see the [signet docs](https://googleapis.dev/ruby/signet/latest/Signet/OAuth2/Client.html))
|
1151
|
+
# * (`nil`) indicating no credentials
|
1152
|
+
# @return [::Object]
|
1153
|
+
# @!attribute [rw] scope
|
1154
|
+
# The OAuth scopes
|
1155
|
+
# @return [::Array<::String>]
|
1156
|
+
# @!attribute [rw] lib_name
|
1157
|
+
# The library name as recorded in instrumentation and logging
|
1158
|
+
# @return [::String]
|
1159
|
+
# @!attribute [rw] lib_version
|
1160
|
+
# The library version as recorded in instrumentation and logging
|
1161
|
+
# @return [::String]
|
1162
|
+
# @!attribute [rw] timeout
|
1163
|
+
# The call timeout in seconds.
|
1164
|
+
# @return [::Numeric]
|
1165
|
+
#
|
1166
|
+
class Configuration
|
1167
|
+
extend ::Gapic::Config
|
1168
|
+
|
1169
|
+
config_attr :endpoint, "compute.googleapis.com", ::String
|
1170
|
+
config_attr :credentials, nil do |value|
|
1171
|
+
allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
|
1172
|
+
allowed.any? { |klass| klass === value }
|
1173
|
+
end
|
1174
|
+
config_attr :scope, nil, ::String, ::Array, nil
|
1175
|
+
config_attr :lib_name, nil, ::String, nil
|
1176
|
+
config_attr :lib_version, nil, ::String, nil
|
1177
|
+
config_attr :timeout, nil, ::Numeric, nil
|
1178
|
+
|
1179
|
+
# @private
|
1180
|
+
def initialize parent_config = nil
|
1181
|
+
@parent_config = parent_config unless parent_config.nil?
|
1182
|
+
|
1183
|
+
yield self if block_given?
|
1184
|
+
end
|
1185
|
+
end
|
1186
|
+
end
|
1187
|
+
end
|
1188
|
+
end
|
1189
|
+
end
|
1190
|
+
end
|
1191
|
+
end
|
1192
|
+
end
|