google-cloud-compute-v1 0.1.0 → 0.5.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.yardopts +1 -1
- data/AUTHENTICATION.md +13 -13
- data/README.md +10 -34
- data/lib/google/cloud/compute/v1/accelerator_types/rest/client.rb +133 -93
- data/lib/google/cloud/compute/v1/accelerator_types/rest/service_stub.rb +188 -0
- data/lib/google/cloud/compute/v1/accelerator_types/rest.rb +0 -2
- data/lib/google/cloud/compute/v1/addresses/rest/client.rb +181 -133
- data/lib/google/cloud/compute/v1/addresses/rest/grpc_transcoding.rb +1 -0
- data/lib/google/cloud/compute/v1/addresses/rest/service_stub.rb +279 -0
- data/lib/google/cloud/compute/v1/addresses/rest.rb +0 -2
- data/lib/google/cloud/compute/v1/autoscalers/rest/client.rb +229 -173
- data/lib/google/cloud/compute/v1/autoscalers/rest/grpc_transcoding.rb +5 -0
- data/lib/google/cloud/compute/v1/autoscalers/rest/service_stub.rb +373 -0
- data/lib/google/cloud/compute/v1/autoscalers/rest.rb +0 -2
- data/lib/google/cloud/compute/v1/backend_buckets/rest/client.rb +248 -185
- data/lib/google/cloud/compute/v1/backend_buckets/rest/grpc_transcoding.rb +4 -0
- data/lib/google/cloud/compute/v1/backend_buckets/rest/service_stub.rb +413 -0
- data/lib/google/cloud/compute/v1/backend_buckets/rest.rb +0 -2
- data/lib/google/cloud/compute/v1/backend_services/rest/client.rb +325 -254
- data/lib/google/cloud/compute/v1/backend_services/rest/grpc_transcoding.rb +5 -0
- data/lib/google/cloud/compute/v1/backend_services/rest/service_stub.rb +553 -0
- data/lib/google/cloud/compute/v1/backend_services/rest.rb +0 -2
- data/lib/google/cloud/compute/v1/compute_pb.rb +8507 -7466
- data/lib/google/cloud/compute/v1/disk_types/rest/client.rb +133 -93
- data/lib/google/cloud/compute/v1/disk_types/rest/service_stub.rb +188 -0
- data/lib/google/cloud/compute/v1/disk_types/rest.rb +0 -2
- data/lib/google/cloud/compute/v1/disks/rest/client.rb +365 -273
- data/lib/google/cloud/compute/v1/disks/rest/grpc_transcoding.rb +8 -0
- data/lib/google/cloud/compute/v1/disks/rest/service_stub.rb +644 -0
- data/lib/google/cloud/compute/v1/disks/rest.rb +0 -2
- data/lib/google/cloud/compute/v1/external_vpn_gateways/rest/client.rb +195 -133
- data/lib/google/cloud/compute/v1/external_vpn_gateways/rest/grpc_transcoding.rb +1 -0
- data/lib/google/cloud/compute/v1/external_vpn_gateways/rest/service_stub.rb +317 -0
- data/lib/google/cloud/compute/v1/external_vpn_gateways/rest.rb +0 -2
- data/lib/google/cloud/compute/v1/firewall_policies/credentials.rb +52 -0
- data/lib/google/cloud/compute/v1/firewall_policies/rest/client.rb +1592 -0
- data/lib/google/cloud/compute/v1/firewall_policies/rest/grpc_transcoding.rb +269 -0
- data/lib/google/cloud/compute/v1/firewall_policies/rest/service_stub.rb +869 -0
- data/lib/google/cloud/compute/v1/firewall_policies/rest.rb +33 -0
- data/lib/google/cloud/compute/v1/firewall_policies.rb +44 -0
- data/lib/google/cloud/compute/v1/firewalls/rest/client.rb +200 -145
- data/lib/google/cloud/compute/v1/firewalls/rest/grpc_transcoding.rb +3 -0
- data/lib/google/cloud/compute/v1/firewalls/rest/service_stub.rb +321 -0
- data/lib/google/cloud/compute/v1/firewalls/rest.rb +0 -2
- data/lib/google/cloud/compute/v1/forwarding_rules/rest/client.rb +307 -172
- data/lib/google/cloud/compute/v1/forwarding_rules/rest/grpc_transcoding.rb +3 -0
- data/lib/google/cloud/compute/v1/forwarding_rules/rest/service_stub.rb +417 -0
- data/lib/google/cloud/compute/v1/forwarding_rules/rest.rb +0 -2
- data/lib/google/cloud/compute/v1/global_addresses/rest/client.rb +152 -105
- data/lib/google/cloud/compute/v1/global_addresses/rest/grpc_transcoding.rb +1 -0
- data/lib/google/cloud/compute/v1/global_addresses/rest/service_stub.rb +229 -0
- data/lib/google/cloud/compute/v1/global_addresses/rest.rb +0 -2
- data/lib/google/cloud/compute/v1/global_forwarding_rules/rest/client.rb +274 -144
- data/lib/google/cloud/compute/v1/global_forwarding_rules/rest/grpc_transcoding.rb +3 -0
- data/lib/google/cloud/compute/v1/global_forwarding_rules/rest/service_stub.rb +365 -0
- data/lib/google/cloud/compute/v1/global_forwarding_rules/rest.rb +0 -2
- data/lib/google/cloud/compute/v1/global_network_endpoint_groups/rest/client.rb +226 -173
- data/lib/google/cloud/compute/v1/global_network_endpoint_groups/rest/grpc_transcoding.rb +3 -0
- data/lib/google/cloud/compute/v1/global_network_endpoint_groups/rest/service_stub.rb +370 -0
- data/lib/google/cloud/compute/v1/global_network_endpoint_groups/rest.rb +0 -2
- data/lib/google/cloud/compute/v1/global_operations/rest/client.rb +175 -123
- data/lib/google/cloud/compute/v1/global_operations/rest/service_stub.rb +274 -0
- data/lib/google/cloud/compute/v1/global_operations/rest.rb +0 -2
- data/lib/google/cloud/compute/v1/global_organization_operations/rest/client.rb +124 -79
- data/lib/google/cloud/compute/v1/global_organization_operations/rest/service_stub.rb +186 -0
- data/lib/google/cloud/compute/v1/global_organization_operations/rest.rb +0 -2
- data/lib/google/cloud/compute/v1/global_public_delegated_prefixes/credentials.rb +52 -0
- data/lib/google/cloud/compute/v1/global_public_delegated_prefixes/rest/client.rb +627 -0
- data/lib/google/cloud/compute/v1/global_public_delegated_prefixes/rest/grpc_transcoding.rb +100 -0
- data/lib/google/cloud/compute/v1/global_public_delegated_prefixes/rest/service_stub.rb +275 -0
- data/lib/google/cloud/compute/v1/global_public_delegated_prefixes/rest.rb +33 -0
- data/lib/google/cloud/compute/v1/global_public_delegated_prefixes.rb +44 -0
- data/lib/google/cloud/compute/v1/health_checks/rest/client.rb +229 -173
- data/lib/google/cloud/compute/v1/health_checks/rest/grpc_transcoding.rb +3 -0
- data/lib/google/cloud/compute/v1/health_checks/rest/service_stub.rb +371 -0
- data/lib/google/cloud/compute/v1/health_checks/rest.rb +0 -2
- data/lib/google/cloud/compute/v1/image_family_views/credentials.rb +53 -0
- data/lib/google/cloud/compute/v1/image_family_views/rest/client.rb +318 -0
- data/lib/google/cloud/compute/v1/image_family_views/rest/service_stub.rb +89 -0
- data/lib/google/cloud/compute/v1/image_family_views/rest.rb +33 -0
- data/lib/google/cloud/compute/v1/image_family_views.rb +44 -0
- data/lib/google/cloud/compute/v1/images/rest/client.rb +310 -214
- data/lib/google/cloud/compute/v1/images/rest/grpc_transcoding.rb +4 -0
- data/lib/google/cloud/compute/v1/images/rest/service_stub.rb +542 -0
- data/lib/google/cloud/compute/v1/images/rest.rb +0 -2
- data/lib/google/cloud/compute/v1/instance_group_managers/rest/client.rb +556 -477
- data/lib/google/cloud/compute/v1/instance_group_managers/rest/grpc_transcoding.rb +10 -0
- data/lib/google/cloud/compute/v1/instance_group_managers/rest/service_stub.rb +974 -0
- data/lib/google/cloud/compute/v1/instance_group_managers/rest.rb +0 -2
- data/lib/google/cloud/compute/v1/instance_groups/rest/client.rb +284 -232
- data/lib/google/cloud/compute/v1/instance_groups/rest/grpc_transcoding.rb +9 -0
- data/lib/google/cloud/compute/v1/instance_groups/rest/service_stub.rb +467 -0
- data/lib/google/cloud/compute/v1/instance_groups/rest.rb +0 -2
- data/lib/google/cloud/compute/v1/instance_templates/rest/client.rb +215 -144
- data/lib/google/cloud/compute/v1/instance_templates/rest/grpc_transcoding.rb +1 -0
- data/lib/google/cloud/compute/v1/instance_templates/rest/service_stub.rb +362 -0
- data/lib/google/cloud/compute/v1/instance_templates/rest.rb +0 -2
- data/lib/google/cloud/compute/v1/instances/rest/client.rb +1246 -797
- data/lib/google/cloud/compute/v1/instances/rest/grpc_transcoding.rb +27 -0
- data/lib/google/cloud/compute/v1/instances/rest/service_stub.rb +2018 -0
- data/lib/google/cloud/compute/v1/instances/rest.rb +0 -2
- data/lib/google/cloud/compute/v1/interconnect_attachments/rest/client.rb +205 -153
- data/lib/google/cloud/compute/v1/interconnect_attachments/rest/grpc_transcoding.rb +3 -0
- data/lib/google/cloud/compute/v1/interconnect_attachments/rest/service_stub.rb +326 -0
- data/lib/google/cloud/compute/v1/interconnect_attachments/rest.rb +0 -2
- data/lib/google/cloud/compute/v1/interconnect_locations/rest/client.rb +104 -65
- data/lib/google/cloud/compute/v1/interconnect_locations/rest/service_stub.rb +138 -0
- data/lib/google/cloud/compute/v1/interconnect_locations/rest.rb +0 -2
- data/lib/google/cloud/compute/v1/interconnects/rest/client.rb +199 -137
- data/lib/google/cloud/compute/v1/interconnects/rest/grpc_transcoding.rb +2 -0
- data/lib/google/cloud/compute/v1/interconnects/rest/service_stub.rb +318 -0
- data/lib/google/cloud/compute/v1/interconnects/rest.rb +0 -2
- data/lib/google/cloud/compute/v1/license_codes/rest/client.rb +97 -52
- data/lib/google/cloud/compute/v1/license_codes/rest/service_stub.rb +133 -0
- data/lib/google/cloud/compute/v1/license_codes/rest.rb +0 -2
- data/lib/google/cloud/compute/v1/licenses/rest/client.rb +222 -151
- data/lib/google/cloud/compute/v1/licenses/rest/grpc_transcoding.rb +1 -0
- data/lib/google/cloud/compute/v1/licenses/rest/service_stub.rb +362 -0
- data/lib/google/cloud/compute/v1/licenses/rest.rb +0 -2
- data/lib/google/cloud/compute/v1/machine_types/rest/client.rb +133 -93
- data/lib/google/cloud/compute/v1/machine_types/rest/service_stub.rb +188 -0
- data/lib/google/cloud/compute/v1/machine_types/rest.rb +0 -2
- data/lib/google/cloud/compute/v1/network_endpoint_groups/rest/client.rb +275 -214
- data/lib/google/cloud/compute/v1/network_endpoint_groups/rest/grpc_transcoding.rb +8 -0
- data/lib/google/cloud/compute/v1/network_endpoint_groups/rest/service_stub.rb +465 -0
- data/lib/google/cloud/compute/v1/network_endpoint_groups/rest.rb +0 -2
- data/lib/google/cloud/compute/v1/networks/rest/client.rb +378 -234
- data/lib/google/cloud/compute/v1/networks/rest/grpc_transcoding.rb +5 -0
- data/lib/google/cloud/compute/v1/networks/rest/service_stub.rb +553 -0
- data/lib/google/cloud/compute/v1/networks/rest.rb +0 -2
- data/lib/google/cloud/compute/v1/node_groups/rest/client.rb +366 -280
- data/lib/google/cloud/compute/v1/node_groups/rest/grpc_transcoding.rb +6 -0
- data/lib/google/cloud/compute/v1/node_groups/rest/service_stub.rb +646 -0
- data/lib/google/cloud/compute/v1/node_groups/rest.rb +0 -2
- data/lib/google/cloud/compute/v1/node_templates/rest/client.rb +244 -172
- data/lib/google/cloud/compute/v1/node_templates/rest/grpc_transcoding.rb +1 -0
- data/lib/google/cloud/compute/v1/node_templates/rest/service_stub.rb +412 -0
- data/lib/google/cloud/compute/v1/node_templates/rest.rb +0 -2
- data/lib/google/cloud/compute/v1/node_types/rest/client.rb +133 -93
- data/lib/google/cloud/compute/v1/node_types/rest/service_stub.rb +188 -0
- data/lib/google/cloud/compute/v1/node_types/rest.rb +0 -2
- data/lib/google/cloud/compute/v1/packet_mirrorings/rest/client.rb +225 -166
- data/lib/google/cloud/compute/v1/packet_mirrorings/rest/grpc_transcoding.rb +2 -0
- data/lib/google/cloud/compute/v1/packet_mirrorings/rest/service_stub.rb +369 -0
- data/lib/google/cloud/compute/v1/packet_mirrorings/rest.rb +0 -2
- data/lib/google/cloud/compute/v1/projects/rest/client.rb +369 -285
- data/lib/google/cloud/compute/v1/projects/rest/grpc_transcoding.rb +12 -0
- data/lib/google/cloud/compute/v1/projects/rest/service_stub.rb +643 -0
- data/lib/google/cloud/compute/v1/projects/rest.rb +0 -2
- data/lib/google/cloud/compute/v1/public_advertised_prefixes/credentials.rb +52 -0
- data/lib/google/cloud/compute/v1/public_advertised_prefixes/rest/client.rb +627 -0
- data/lib/google/cloud/compute/v1/public_advertised_prefixes/rest/grpc_transcoding.rb +100 -0
- data/lib/google/cloud/compute/v1/public_advertised_prefixes/rest/service_stub.rb +275 -0
- data/lib/google/cloud/compute/v1/public_advertised_prefixes/rest.rb +33 -0
- data/lib/google/cloud/compute/v1/public_advertised_prefixes.rb +44 -0
- data/lib/google/cloud/compute/v1/public_delegated_prefixes/credentials.rb +52 -0
- data/lib/google/cloud/compute/v1/public_delegated_prefixes/rest/client.rb +723 -0
- data/lib/google/cloud/compute/v1/public_delegated_prefixes/rest/grpc_transcoding.rb +118 -0
- data/lib/google/cloud/compute/v1/public_delegated_prefixes/rest/service_stub.rb +325 -0
- data/lib/google/cloud/compute/v1/public_delegated_prefixes/rest.rb +33 -0
- data/lib/google/cloud/compute/v1/public_delegated_prefixes.rb +44 -0
- data/lib/google/cloud/compute/v1/region_autoscalers/rest/client.rb +200 -145
- data/lib/google/cloud/compute/v1/region_autoscalers/rest/grpc_transcoding.rb +5 -0
- data/lib/google/cloud/compute/v1/region_autoscalers/rest/service_stub.rb +323 -0
- data/lib/google/cloud/compute/v1/region_autoscalers/rest.rb +0 -2
- data/lib/google/cloud/compute/v1/region_backend_services/rest/client.rb +223 -161
- data/lib/google/cloud/compute/v1/region_backend_services/rest/grpc_transcoding.rb +3 -0
- data/lib/google/cloud/compute/v1/region_backend_services/rest/service_stub.rb +365 -0
- data/lib/google/cloud/compute/v1/region_backend_services/rest.rb +0 -2
- data/lib/google/cloud/compute/v1/region_commitments/rest/client.rb +158 -114
- data/lib/google/cloud/compute/v1/region_commitments/rest/grpc_transcoding.rb +1 -0
- data/lib/google/cloud/compute/v1/region_commitments/rest/service_stub.rb +234 -0
- data/lib/google/cloud/compute/v1/region_commitments/rest.rb +0 -2
- data/lib/google/cloud/compute/v1/region_disk_types/rest/client.rb +104 -65
- data/lib/google/cloud/compute/v1/region_disk_types/rest/service_stub.rb +138 -0
- data/lib/google/cloud/compute/v1/region_disk_types/rest.rb +0 -2
- data/lib/google/cloud/compute/v1/region_disks/rest/client.rb +336 -245
- data/lib/google/cloud/compute/v1/region_disks/rest/grpc_transcoding.rb +7 -0
- data/lib/google/cloud/compute/v1/region_disks/rest/service_stub.rb +593 -0
- data/lib/google/cloud/compute/v1/region_disks/rest.rb +0 -2
- data/lib/google/cloud/compute/v1/region_health_check_services/rest/client.rb +176 -125
- data/lib/google/cloud/compute/v1/region_health_check_services/rest/grpc_transcoding.rb +2 -0
- data/lib/google/cloud/compute/v1/region_health_check_services/rest/service_stub.rb +275 -0
- data/lib/google/cloud/compute/v1/region_health_check_services/rest.rb +0 -2
- data/lib/google/cloud/compute/v1/region_health_checks/rest/client.rb +200 -145
- data/lib/google/cloud/compute/v1/region_health_checks/rest/grpc_transcoding.rb +3 -0
- data/lib/google/cloud/compute/v1/region_health_checks/rest/service_stub.rb +321 -0
- data/lib/google/cloud/compute/v1/region_health_checks/rest.rb +0 -2
- data/lib/google/cloud/compute/v1/region_instance_group_managers/rest/client.rb +526 -444
- data/lib/google/cloud/compute/v1/region_instance_group_managers/rest/grpc_transcoding.rb +10 -0
- data/lib/google/cloud/compute/v1/region_instance_group_managers/rest/service_stub.rb +924 -0
- data/lib/google/cloud/compute/v1/region_instance_group_managers/rest.rb +0 -2
- data/lib/google/cloud/compute/v1/region_instance_groups/rest/client.rb +154 -113
- data/lib/google/cloud/compute/v1/region_instance_groups/rest/grpc_transcoding.rb +6 -0
- data/lib/google/cloud/compute/v1/region_instance_groups/rest/service_stub.rb +234 -0
- data/lib/google/cloud/compute/v1/region_instance_groups/rest.rb +0 -2
- data/lib/google/cloud/compute/v1/region_instances/credentials.rb +52 -0
- data/lib/google/cloud/compute/v1/region_instances/rest/client.rb +318 -0
- data/lib/google/cloud/compute/v1/region_instances/rest/grpc_transcoding.rb +46 -0
- data/lib/google/cloud/compute/v1/region_instances/rest/service_stub.rb +92 -0
- data/lib/google/cloud/compute/v1/region_instances/rest.rb +33 -0
- data/lib/google/cloud/compute/v1/region_instances.rb +44 -0
- data/lib/google/cloud/compute/v1/region_network_endpoint_groups/rest/client.rb +152 -105
- data/lib/google/cloud/compute/v1/region_network_endpoint_groups/rest/grpc_transcoding.rb +1 -0
- data/lib/google/cloud/compute/v1/region_network_endpoint_groups/rest/service_stub.rb +229 -0
- data/lib/google/cloud/compute/v1/region_network_endpoint_groups/rest.rb +0 -2
- data/lib/google/cloud/compute/v1/region_notification_endpoints/rest/client.rb +152 -105
- data/lib/google/cloud/compute/v1/region_notification_endpoints/rest/grpc_transcoding.rb +1 -0
- data/lib/google/cloud/compute/v1/region_notification_endpoints/rest/service_stub.rb +229 -0
- data/lib/google/cloud/compute/v1/region_notification_endpoints/rest.rb +0 -2
- data/lib/google/cloud/compute/v1/region_operations/rest/client.rb +145 -94
- data/lib/google/cloud/compute/v1/region_operations/rest/service_stub.rb +224 -0
- data/lib/google/cloud/compute/v1/region_operations/rest.rb +0 -2
- data/lib/google/cloud/compute/v1/region_ssl_certificates/rest/client.rb +152 -105
- data/lib/google/cloud/compute/v1/region_ssl_certificates/rest/grpc_transcoding.rb +1 -0
- data/lib/google/cloud/compute/v1/region_ssl_certificates/rest/service_stub.rb +229 -0
- data/lib/google/cloud/compute/v1/region_ssl_certificates/rest.rb +0 -2
- data/lib/google/cloud/compute/v1/region_target_http_proxies/rest/client.rb +176 -125
- data/lib/google/cloud/compute/v1/region_target_http_proxies/rest/grpc_transcoding.rb +2 -0
- data/lib/google/cloud/compute/v1/region_target_http_proxies/rest/service_stub.rb +275 -0
- data/lib/google/cloud/compute/v1/region_target_http_proxies/rest.rb +0 -2
- data/lib/google/cloud/compute/v1/region_target_https_proxies/rest/client.rb +200 -145
- data/lib/google/cloud/compute/v1/region_target_https_proxies/rest/grpc_transcoding.rb +3 -0
- data/lib/google/cloud/compute/v1/region_target_https_proxies/rest/service_stub.rb +321 -0
- data/lib/google/cloud/compute/v1/region_target_https_proxies/rest.rb +0 -2
- data/lib/google/cloud/compute/v1/region_url_maps/rest/client.rb +216 -138
- data/lib/google/cloud/compute/v1/region_url_maps/rest/grpc_transcoding.rb +3 -0
- data/lib/google/cloud/compute/v1/region_url_maps/rest/service_stub.rb +365 -0
- data/lib/google/cloud/compute/v1/region_url_maps/rest.rb +0 -2
- data/lib/google/cloud/compute/v1/regions/rest/client.rb +104 -65
- data/lib/google/cloud/compute/v1/regions/rest/service_stub.rb +138 -0
- data/lib/google/cloud/compute/v1/regions/rest.rb +0 -2
- data/lib/google/cloud/compute/v1/reservations/rest/client.rb +268 -192
- data/lib/google/cloud/compute/v1/reservations/rest/grpc_transcoding.rb +2 -0
- data/lib/google/cloud/compute/v1/reservations/rest/service_stub.rb +458 -0
- data/lib/google/cloud/compute/v1/reservations/rest.rb +0 -2
- data/lib/google/cloud/compute/v1/resource_policies/rest/client.rb +244 -172
- data/lib/google/cloud/compute/v1/resource_policies/rest/grpc_transcoding.rb +1 -0
- data/lib/google/cloud/compute/v1/resource_policies/rest/service_stub.rb +412 -0
- data/lib/google/cloud/compute/v1/resource_policies/rest.rb +0 -2
- data/lib/google/cloud/compute/v1/routers/rest/client.rb +301 -226
- data/lib/google/cloud/compute/v1/routers/rest/grpc_transcoding.rb +3 -0
- data/lib/google/cloud/compute/v1/routers/rest/service_stub.rb +507 -0
- data/lib/google/cloud/compute/v1/routers/rest.rb +0 -2
- data/lib/google/cloud/compute/v1/routes/rest/client.rb +152 -105
- data/lib/google/cloud/compute/v1/routes/rest/grpc_transcoding.rb +1 -0
- data/lib/google/cloud/compute/v1/routes/rest/service_stub.rb +229 -0
- data/lib/google/cloud/compute/v1/routes/rest.rb +0 -2
- data/lib/google/cloud/compute/v1/security_policies/rest/client.rb +294 -209
- data/lib/google/cloud/compute/v1/security_policies/rest/grpc_transcoding.rb +3 -0
- data/lib/google/cloud/compute/v1/security_policies/rest/service_stub.rb +504 -0
- data/lib/google/cloud/compute/v1/security_policies/rest.rb +0 -2
- data/lib/google/cloud/compute/v1/service_attachments/credentials.rb +52 -0
- data/lib/google/cloud/compute/v1/service_attachments/rest/client.rb +954 -0
- data/lib/google/cloud/compute/v1/service_attachments/rest/service_stub.rb +458 -0
- data/lib/google/cloud/compute/v1/service_attachments/rest.rb +33 -0
- data/lib/google/cloud/compute/v1/service_attachments.rb +44 -0
- data/lib/google/cloud/compute/v1/snapshots/rest/client.rb +215 -142
- data/lib/google/cloud/compute/v1/snapshots/rest/service_stub.rb +360 -0
- data/lib/google/cloud/compute/v1/snapshots/rest.rb +0 -2
- data/lib/google/cloud/compute/v1/ssl_certificates/rest/client.rb +181 -133
- data/lib/google/cloud/compute/v1/ssl_certificates/rest/grpc_transcoding.rb +1 -0
- data/lib/google/cloud/compute/v1/ssl_certificates/rest/service_stub.rb +279 -0
- data/lib/google/cloud/compute/v1/ssl_certificates/rest.rb +0 -2
- data/lib/google/cloud/compute/v1/ssl_policies/rest/client.rb +202 -151
- data/lib/google/cloud/compute/v1/ssl_policies/rest/grpc_transcoding.rb +2 -0
- data/lib/google/cloud/compute/v1/ssl_policies/rest/service_stub.rb +324 -0
- data/lib/google/cloud/compute/v1/ssl_policies/rest.rb +0 -2
- data/lib/google/cloud/compute/v1/subnetworks/rest/client.rb +345 -260
- data/lib/google/cloud/compute/v1/subnetworks/rest/grpc_transcoding.rb +5 -0
- data/lib/google/cloud/compute/v1/subnetworks/rest/service_stub.rb +600 -0
- data/lib/google/cloud/compute/v1/subnetworks/rest.rb +0 -2
- data/lib/google/cloud/compute/v1/target_grpc_proxies/rest/client.rb +176 -125
- data/lib/google/cloud/compute/v1/target_grpc_proxies/rest/grpc_transcoding.rb +2 -0
- data/lib/google/cloud/compute/v1/target_grpc_proxies/rest/service_stub.rb +275 -0
- data/lib/google/cloud/compute/v1/target_grpc_proxies/rest.rb +0 -2
- data/lib/google/cloud/compute/v1/target_http_proxies/rest/client.rb +230 -174
- data/lib/google/cloud/compute/v1/target_http_proxies/rest/grpc_transcoding.rb +3 -0
- data/lib/google/cloud/compute/v1/target_http_proxies/rest/service_stub.rb +371 -0
- data/lib/google/cloud/compute/v1/target_http_proxies/rest.rb +0 -2
- data/lib/google/cloud/compute/v1/target_https_proxies/rest/client.rb +353 -212
- data/lib/google/cloud/compute/v1/target_https_proxies/rest/grpc_transcoding.rb +5 -0
- data/lib/google/cloud/compute/v1/target_https_proxies/rest/service_stub.rb +509 -0
- data/lib/google/cloud/compute/v1/target_https_proxies/rest.rb +0 -2
- data/lib/google/cloud/compute/v1/target_instances/rest/client.rb +181 -133
- data/lib/google/cloud/compute/v1/target_instances/rest/grpc_transcoding.rb +1 -0
- data/lib/google/cloud/compute/v1/target_instances/rest/service_stub.rb +279 -0
- data/lib/google/cloud/compute/v1/target_instances/rest.rb +0 -2
- data/lib/google/cloud/compute/v1/target_pools/rest/client.rb +321 -246
- data/lib/google/cloud/compute/v1/target_pools/rest/grpc_transcoding.rb +7 -0
- data/lib/google/cloud/compute/v1/target_pools/rest/service_stub.rb +554 -0
- data/lib/google/cloud/compute/v1/target_pools/rest.rb +0 -2
- data/lib/google/cloud/compute/v1/target_ssl_proxies/rest/client.rb +248 -185
- data/lib/google/cloud/compute/v1/target_ssl_proxies/rest/grpc_transcoding.rb +5 -0
- data/lib/google/cloud/compute/v1/target_ssl_proxies/rest/service_stub.rb +413 -0
- data/lib/google/cloud/compute/v1/target_ssl_proxies/rest.rb +0 -2
- data/lib/google/cloud/compute/v1/target_tcp_proxies/rest/client.rb +200 -145
- data/lib/google/cloud/compute/v1/target_tcp_proxies/rest/grpc_transcoding.rb +3 -0
- data/lib/google/cloud/compute/v1/target_tcp_proxies/rest/service_stub.rb +321 -0
- data/lib/google/cloud/compute/v1/target_tcp_proxies/rest.rb +0 -2
- data/lib/google/cloud/compute/v1/target_vpn_gateways/rest/client.rb +181 -133
- data/lib/google/cloud/compute/v1/target_vpn_gateways/rest/grpc_transcoding.rb +1 -0
- data/lib/google/cloud/compute/v1/target_vpn_gateways/rest/service_stub.rb +279 -0
- data/lib/google/cloud/compute/v1/target_vpn_gateways/rest.rb +0 -2
- data/lib/google/cloud/compute/v1/url_maps/rest/client.rb +274 -209
- data/lib/google/cloud/compute/v1/url_maps/rest/grpc_transcoding.rb +4 -0
- data/lib/google/cloud/compute/v1/url_maps/rest/service_stub.rb +461 -0
- data/lib/google/cloud/compute/v1/url_maps/rest.rb +0 -2
- data/lib/google/cloud/compute/v1/version.rb +1 -1
- data/lib/google/cloud/compute/v1/vpn_gateways/rest/client.rb +248 -178
- data/lib/google/cloud/compute/v1/vpn_gateways/rest/grpc_transcoding.rb +2 -0
- data/lib/google/cloud/compute/v1/vpn_gateways/rest/service_stub.rb +412 -0
- data/lib/google/cloud/compute/v1/vpn_gateways/rest.rb +0 -2
- data/lib/google/cloud/compute/v1/vpn_tunnels/rest/client.rb +181 -133
- data/lib/google/cloud/compute/v1/vpn_tunnels/rest/grpc_transcoding.rb +1 -0
- data/lib/google/cloud/compute/v1/vpn_tunnels/rest/service_stub.rb +279 -0
- data/lib/google/cloud/compute/v1/vpn_tunnels/rest.rb +0 -2
- data/lib/google/cloud/compute/v1/zone_operations/rest/client.rb +145 -94
- data/lib/google/cloud/compute/v1/zone_operations/rest/service_stub.rb +224 -0
- data/lib/google/cloud/compute/v1/zone_operations/rest.rb +0 -2
- data/lib/google/cloud/compute/v1/zones/rest/client.rb +104 -65
- data/lib/google/cloud/compute/v1/zones/rest/service_stub.rb +138 -0
- data/lib/google/cloud/compute/v1/zones/rest.rb +0 -2
- data/lib/google/cloud/compute/v1.rb +7 -0
- data/proto_docs/README.md +1 -1
- data/proto_docs/google/api/field_behavior.rb +6 -0
- data/proto_docs/google/cloud/compute/v1/compute.rb +18964 -19481
- data/proto_docs/google/cloud/extended_operations.rb +51 -0
- metadata +141 -13
@@ -18,6 +18,7 @@
|
|
18
18
|
|
19
19
|
require "google/cloud/errors"
|
20
20
|
require "google/cloud/compute/v1/compute_pb"
|
21
|
+
require "google/cloud/compute/v1/projects/rest/service_stub"
|
21
22
|
|
22
23
|
module Google
|
23
24
|
module Cloud
|
@@ -31,8 +32,6 @@ module Google
|
|
31
32
|
# The Projects API.
|
32
33
|
#
|
33
34
|
class Client
|
34
|
-
include GrpcTranscoding
|
35
|
-
|
36
35
|
# @private
|
37
36
|
attr_reader :projects_stub
|
38
37
|
|
@@ -42,13 +41,12 @@ module Google
|
|
42
41
|
# See {::Google::Cloud::Compute::V1::Projects::Rest::Client::Configuration}
|
43
42
|
# for a description of the configuration fields.
|
44
43
|
#
|
45
|
-
#
|
46
|
-
#
|
47
|
-
# To modify the configuration for all Projects clients:
|
44
|
+
# @example
|
48
45
|
#
|
49
|
-
#
|
50
|
-
#
|
51
|
-
#
|
46
|
+
# # Modify the configuration for all Projects clients
|
47
|
+
# ::Google::Cloud::Compute::V1::Projects::Rest::Client.configure do |config|
|
48
|
+
# config.timeout = 10.0
|
49
|
+
# end
|
52
50
|
#
|
53
51
|
# @yield [config] Configure the Client client.
|
54
52
|
# @yieldparam config [Client::Configuration]
|
@@ -66,6 +64,41 @@ module Google
|
|
66
64
|
end
|
67
65
|
default_config = Client::Configuration.new parent_config
|
68
66
|
|
67
|
+
default_config.rpcs.disable_xpn_host.timeout = 600.0
|
68
|
+
|
69
|
+
default_config.rpcs.disable_xpn_resource.timeout = 600.0
|
70
|
+
|
71
|
+
default_config.rpcs.enable_xpn_host.timeout = 600.0
|
72
|
+
|
73
|
+
default_config.rpcs.enable_xpn_resource.timeout = 600.0
|
74
|
+
|
75
|
+
default_config.rpcs.get.timeout = 600.0
|
76
|
+
default_config.rpcs.get.retry_policy = {
|
77
|
+
initial_delay: 0.1, max_delay: 60.0, multiplier: 1.3, retry_codes: [4, 14]
|
78
|
+
}
|
79
|
+
|
80
|
+
default_config.rpcs.get_xpn_host.timeout = 600.0
|
81
|
+
default_config.rpcs.get_xpn_host.retry_policy = {
|
82
|
+
initial_delay: 0.1, max_delay: 60.0, multiplier: 1.3, retry_codes: [4, 14]
|
83
|
+
}
|
84
|
+
|
85
|
+
default_config.rpcs.get_xpn_resources.timeout = 600.0
|
86
|
+
default_config.rpcs.get_xpn_resources.retry_policy = {
|
87
|
+
initial_delay: 0.1, max_delay: 60.0, multiplier: 1.3, retry_codes: [4, 14]
|
88
|
+
}
|
89
|
+
|
90
|
+
default_config.rpcs.list_xpn_hosts.timeout = 600.0
|
91
|
+
|
92
|
+
default_config.rpcs.move_disk.timeout = 600.0
|
93
|
+
|
94
|
+
default_config.rpcs.move_instance.timeout = 600.0
|
95
|
+
|
96
|
+
default_config.rpcs.set_common_instance_metadata.timeout = 600.0
|
97
|
+
|
98
|
+
default_config.rpcs.set_default_network_tier.timeout = 600.0
|
99
|
+
|
100
|
+
default_config.rpcs.set_usage_export_bucket.timeout = 600.0
|
101
|
+
|
69
102
|
default_config
|
70
103
|
end
|
71
104
|
yield @configure if block_given?
|
@@ -95,28 +128,20 @@ module Google
|
|
95
128
|
##
|
96
129
|
# Create a new Projects REST client object.
|
97
130
|
#
|
98
|
-
#
|
99
|
-
#
|
100
|
-
# To create a new Projects REST client with the default
|
101
|
-
# configuration:
|
131
|
+
# @example
|
102
132
|
#
|
103
|
-
#
|
133
|
+
# # Create a client using the default configuration
|
134
|
+
# client = ::Google::Cloud::Compute::V1::Projects::Rest::Client.new
|
104
135
|
#
|
105
|
-
#
|
106
|
-
#
|
107
|
-
#
|
108
|
-
#
|
109
|
-
# config.timeout = 10.0
|
110
|
-
# end
|
136
|
+
# # Create a client using a custom configuration
|
137
|
+
# client = ::Google::Cloud::Compute::V1::Projects::Rest::Client.new do |config|
|
138
|
+
# config.timeout = 10.0
|
139
|
+
# end
|
111
140
|
#
|
112
141
|
# @yield [config] Configure the Projects client.
|
113
142
|
# @yieldparam config [Client::Configuration]
|
114
143
|
#
|
115
144
|
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
145
|
# Create the configuration object
|
121
146
|
@config = Configuration.new Client.configure
|
122
147
|
|
@@ -126,11 +151,11 @@ module Google
|
|
126
151
|
# Create credentials
|
127
152
|
credentials = @config.credentials
|
128
153
|
credentials ||= Credentials.default scope: @config.scope
|
129
|
-
if credentials.is_a?(String) || credentials.is_a?(Hash)
|
154
|
+
if credentials.is_a?(::String) || credentials.is_a?(::Hash)
|
130
155
|
credentials = Credentials.new credentials, scope: @config.scope
|
131
156
|
end
|
132
157
|
|
133
|
-
@
|
158
|
+
@projects_stub = ::Google::Cloud::Compute::V1::Projects::Rest::ServiceStub.new endpoint: @config.endpoint, credentials: credentials
|
134
159
|
end
|
135
160
|
|
136
161
|
# Service calls
|
@@ -158,16 +183,12 @@ module Google
|
|
158
183
|
# @param project [::String]
|
159
184
|
# Project ID for this request.
|
160
185
|
# @param request_id [::String]
|
161
|
-
# 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.
|
162
|
-
#
|
163
|
-
#
|
164
|
-
#
|
165
|
-
# The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
|
166
|
-
# @yield [result, env] Access the result along with the Faraday environment object
|
167
|
-
# @yieldparam result [::Google::Cloud::Compute::V1::Operation]
|
186
|
+
# An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
|
187
|
+
# @yield [result, response] Access the result along with the Faraday response object
|
188
|
+
# @yieldparam result [::Gapic::Rest::BaseOperation]
|
168
189
|
# @yieldparam response [::Faraday::Response]
|
169
190
|
#
|
170
|
-
# @return [::
|
191
|
+
# @return [::Gapic::Rest::BaseOperation]
|
171
192
|
#
|
172
193
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
173
194
|
def disable_xpn_host request, options = nil
|
@@ -179,26 +200,25 @@ module Google
|
|
179
200
|
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
180
201
|
|
181
202
|
# Customize the options with defaults
|
182
|
-
call_metadata =
|
203
|
+
call_metadata = @config.rpcs.disable_xpn_host.metadata.to_h
|
183
204
|
|
184
205
|
# Set x-goog-api-client header
|
185
206
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
186
207
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
187
|
-
gapic_version: ::Google::Cloud::Compute::V1::VERSION
|
208
|
+
gapic_version: ::Google::Cloud::Compute::V1::VERSION,
|
209
|
+
transports_version_send: [:rest]
|
188
210
|
|
189
|
-
options.apply_defaults timeout: @config.timeout,
|
211
|
+
options.apply_defaults timeout: @config.rpcs.disable_xpn_host.timeout,
|
190
212
|
metadata: call_metadata
|
191
213
|
|
192
|
-
|
193
|
-
|
194
|
-
uri: uri,
|
195
|
-
params: query_string_params,
|
196
|
-
options: options
|
197
|
-
)
|
198
|
-
result = ::Google::Cloud::Compute::V1::Operation.decode_json response.body, ignore_unknown_fields: true
|
214
|
+
options.apply_defaults timeout: @config.timeout,
|
215
|
+
metadata: @config.metadata
|
199
216
|
|
200
|
-
|
201
|
-
|
217
|
+
@projects_stub.disable_xpn_host request, options do |result, response|
|
218
|
+
result = ::Gapic::Rest::BaseOperation.new result
|
219
|
+
yield result, response if block_given?
|
220
|
+
return result
|
221
|
+
end
|
202
222
|
rescue ::Faraday::Error => e
|
203
223
|
gapic_error = ::Gapic::Rest::Error.wrap_faraday_error e
|
204
224
|
raise ::Google::Cloud::Error.from_error(gapic_error)
|
@@ -229,16 +249,12 @@ module Google
|
|
229
249
|
# @param projects_disable_xpn_resource_request_resource [::Google::Cloud::Compute::V1::ProjectsDisableXpnResourceRequest, ::Hash]
|
230
250
|
# The body resource for this request
|
231
251
|
# @param request_id [::String]
|
232
|
-
# 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.
|
233
|
-
#
|
234
|
-
#
|
235
|
-
#
|
236
|
-
# The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
|
237
|
-
# @yield [result, env] Access the result along with the Faraday environment object
|
238
|
-
# @yieldparam result [::Google::Cloud::Compute::V1::Operation]
|
252
|
+
# An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
|
253
|
+
# @yield [result, response] Access the result along with the Faraday response object
|
254
|
+
# @yieldparam result [::Gapic::Rest::BaseOperation]
|
239
255
|
# @yieldparam response [::Faraday::Response]
|
240
256
|
#
|
241
|
-
# @return [::
|
257
|
+
# @return [::Gapic::Rest::BaseOperation]
|
242
258
|
#
|
243
259
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
244
260
|
def disable_xpn_resource request, options = nil
|
@@ -250,26 +266,25 @@ module Google
|
|
250
266
|
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
251
267
|
|
252
268
|
# Customize the options with defaults
|
253
|
-
call_metadata =
|
269
|
+
call_metadata = @config.rpcs.disable_xpn_resource.metadata.to_h
|
254
270
|
|
255
271
|
# Set x-goog-api-client header
|
256
272
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
257
273
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
258
|
-
gapic_version: ::Google::Cloud::Compute::V1::VERSION
|
274
|
+
gapic_version: ::Google::Cloud::Compute::V1::VERSION,
|
275
|
+
transports_version_send: [:rest]
|
259
276
|
|
260
|
-
options.apply_defaults timeout: @config.timeout,
|
277
|
+
options.apply_defaults timeout: @config.rpcs.disable_xpn_resource.timeout,
|
261
278
|
metadata: call_metadata
|
262
279
|
|
263
|
-
|
264
|
-
|
265
|
-
uri: uri,
|
266
|
-
body: body,
|
267
|
-
options: options
|
268
|
-
)
|
269
|
-
result = ::Google::Cloud::Compute::V1::Operation.decode_json response.body, ignore_unknown_fields: true
|
280
|
+
options.apply_defaults timeout: @config.timeout,
|
281
|
+
metadata: @config.metadata
|
270
282
|
|
271
|
-
|
272
|
-
|
283
|
+
@projects_stub.disable_xpn_resource request, options do |result, response|
|
284
|
+
result = ::Gapic::Rest::BaseOperation.new result
|
285
|
+
yield result, response if block_given?
|
286
|
+
return result
|
287
|
+
end
|
273
288
|
rescue ::Faraday::Error => e
|
274
289
|
gapic_error = ::Gapic::Rest::Error.wrap_faraday_error e
|
275
290
|
raise ::Google::Cloud::Error.from_error(gapic_error)
|
@@ -298,16 +313,12 @@ module Google
|
|
298
313
|
# @param project [::String]
|
299
314
|
# Project ID for this request.
|
300
315
|
# @param request_id [::String]
|
301
|
-
# 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.
|
302
|
-
#
|
303
|
-
#
|
304
|
-
#
|
305
|
-
# The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
|
306
|
-
# @yield [result, env] Access the result along with the Faraday environment object
|
307
|
-
# @yieldparam result [::Google::Cloud::Compute::V1::Operation]
|
316
|
+
# An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
|
317
|
+
# @yield [result, response] Access the result along with the Faraday response object
|
318
|
+
# @yieldparam result [::Gapic::Rest::BaseOperation]
|
308
319
|
# @yieldparam response [::Faraday::Response]
|
309
320
|
#
|
310
|
-
# @return [::
|
321
|
+
# @return [::Gapic::Rest::BaseOperation]
|
311
322
|
#
|
312
323
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
313
324
|
def enable_xpn_host request, options = nil
|
@@ -319,26 +330,25 @@ module Google
|
|
319
330
|
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
320
331
|
|
321
332
|
# Customize the options with defaults
|
322
|
-
call_metadata =
|
333
|
+
call_metadata = @config.rpcs.enable_xpn_host.metadata.to_h
|
323
334
|
|
324
335
|
# Set x-goog-api-client header
|
325
336
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
326
337
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
327
|
-
gapic_version: ::Google::Cloud::Compute::V1::VERSION
|
338
|
+
gapic_version: ::Google::Cloud::Compute::V1::VERSION,
|
339
|
+
transports_version_send: [:rest]
|
328
340
|
|
329
|
-
options.apply_defaults timeout: @config.timeout,
|
341
|
+
options.apply_defaults timeout: @config.rpcs.enable_xpn_host.timeout,
|
330
342
|
metadata: call_metadata
|
331
343
|
|
332
|
-
|
333
|
-
|
334
|
-
uri: uri,
|
335
|
-
params: query_string_params,
|
336
|
-
options: options
|
337
|
-
)
|
338
|
-
result = ::Google::Cloud::Compute::V1::Operation.decode_json response.body, ignore_unknown_fields: true
|
344
|
+
options.apply_defaults timeout: @config.timeout,
|
345
|
+
metadata: @config.metadata
|
339
346
|
|
340
|
-
|
341
|
-
|
347
|
+
@projects_stub.enable_xpn_host request, options do |result, response|
|
348
|
+
result = ::Gapic::Rest::BaseOperation.new result
|
349
|
+
yield result, response if block_given?
|
350
|
+
return result
|
351
|
+
end
|
342
352
|
rescue ::Faraday::Error => e
|
343
353
|
gapic_error = ::Gapic::Rest::Error.wrap_faraday_error e
|
344
354
|
raise ::Google::Cloud::Error.from_error(gapic_error)
|
@@ -369,16 +379,12 @@ module Google
|
|
369
379
|
# @param projects_enable_xpn_resource_request_resource [::Google::Cloud::Compute::V1::ProjectsEnableXpnResourceRequest, ::Hash]
|
370
380
|
# The body resource for this request
|
371
381
|
# @param request_id [::String]
|
372
|
-
# 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.
|
373
|
-
#
|
374
|
-
#
|
375
|
-
#
|
376
|
-
# The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
|
377
|
-
# @yield [result, env] Access the result along with the Faraday environment object
|
378
|
-
# @yieldparam result [::Google::Cloud::Compute::V1::Operation]
|
382
|
+
# An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
|
383
|
+
# @yield [result, response] Access the result along with the Faraday response object
|
384
|
+
# @yieldparam result [::Gapic::Rest::BaseOperation]
|
379
385
|
# @yieldparam response [::Faraday::Response]
|
380
386
|
#
|
381
|
-
# @return [::
|
387
|
+
# @return [::Gapic::Rest::BaseOperation]
|
382
388
|
#
|
383
389
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
384
390
|
def enable_xpn_resource request, options = nil
|
@@ -390,26 +396,25 @@ module Google
|
|
390
396
|
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
391
397
|
|
392
398
|
# Customize the options with defaults
|
393
|
-
call_metadata =
|
399
|
+
call_metadata = @config.rpcs.enable_xpn_resource.metadata.to_h
|
394
400
|
|
395
401
|
# Set x-goog-api-client header
|
396
402
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
397
403
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
398
|
-
gapic_version: ::Google::Cloud::Compute::V1::VERSION
|
404
|
+
gapic_version: ::Google::Cloud::Compute::V1::VERSION,
|
405
|
+
transports_version_send: [:rest]
|
399
406
|
|
400
|
-
options.apply_defaults timeout: @config.timeout,
|
407
|
+
options.apply_defaults timeout: @config.rpcs.enable_xpn_resource.timeout,
|
401
408
|
metadata: call_metadata
|
402
409
|
|
403
|
-
|
404
|
-
|
405
|
-
uri: uri,
|
406
|
-
body: body,
|
407
|
-
options: options
|
408
|
-
)
|
409
|
-
result = ::Google::Cloud::Compute::V1::Operation.decode_json response.body, ignore_unknown_fields: true
|
410
|
+
options.apply_defaults timeout: @config.timeout,
|
411
|
+
metadata: @config.metadata
|
410
412
|
|
411
|
-
|
412
|
-
|
413
|
+
@projects_stub.enable_xpn_resource request, options do |result, response|
|
414
|
+
result = ::Gapic::Rest::BaseOperation.new result
|
415
|
+
yield result, response if block_given?
|
416
|
+
return result
|
417
|
+
end
|
413
418
|
rescue ::Faraday::Error => e
|
414
419
|
gapic_error = ::Gapic::Rest::Error.wrap_faraday_error e
|
415
420
|
raise ::Google::Cloud::Error.from_error(gapic_error)
|
@@ -437,7 +442,7 @@ module Google
|
|
437
442
|
#
|
438
443
|
# @param project [::String]
|
439
444
|
# Project ID for this request.
|
440
|
-
# @yield [result,
|
445
|
+
# @yield [result, response] Access the result along with the Faraday response object
|
441
446
|
# @yieldparam result [::Google::Cloud::Compute::V1::Project]
|
442
447
|
# @yieldparam response [::Faraday::Response]
|
443
448
|
#
|
@@ -453,25 +458,24 @@ module Google
|
|
453
458
|
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
454
459
|
|
455
460
|
# Customize the options with defaults
|
456
|
-
call_metadata =
|
461
|
+
call_metadata = @config.rpcs.get.metadata.to_h
|
457
462
|
|
458
463
|
# Set x-goog-api-client header
|
459
464
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
460
465
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
461
|
-
gapic_version: ::Google::Cloud::Compute::V1::VERSION
|
466
|
+
gapic_version: ::Google::Cloud::Compute::V1::VERSION,
|
467
|
+
transports_version_send: [:rest]
|
462
468
|
|
463
|
-
options.apply_defaults timeout: @config.timeout,
|
469
|
+
options.apply_defaults timeout: @config.rpcs.get.timeout,
|
464
470
|
metadata: call_metadata
|
465
471
|
|
466
|
-
|
467
|
-
|
468
|
-
uri: uri,
|
469
|
-
options: options
|
470
|
-
)
|
471
|
-
result = ::Google::Cloud::Compute::V1::Project.decode_json response.body, ignore_unknown_fields: true
|
472
|
+
options.apply_defaults timeout: @config.timeout,
|
473
|
+
metadata: @config.metadata
|
472
474
|
|
473
|
-
|
474
|
-
|
475
|
+
@projects_stub.get request, options do |result, response|
|
476
|
+
yield result, response if block_given?
|
477
|
+
return result
|
478
|
+
end
|
475
479
|
rescue ::Faraday::Error => e
|
476
480
|
gapic_error = ::Gapic::Rest::Error.wrap_faraday_error e
|
477
481
|
raise ::Google::Cloud::Error.from_error(gapic_error)
|
@@ -499,7 +503,7 @@ module Google
|
|
499
503
|
#
|
500
504
|
# @param project [::String]
|
501
505
|
# Project ID for this request.
|
502
|
-
# @yield [result,
|
506
|
+
# @yield [result, response] Access the result along with the Faraday response object
|
503
507
|
# @yieldparam result [::Google::Cloud::Compute::V1::Project]
|
504
508
|
# @yieldparam response [::Faraday::Response]
|
505
509
|
#
|
@@ -515,25 +519,24 @@ module Google
|
|
515
519
|
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
516
520
|
|
517
521
|
# Customize the options with defaults
|
518
|
-
call_metadata =
|
522
|
+
call_metadata = @config.rpcs.get_xpn_host.metadata.to_h
|
519
523
|
|
520
524
|
# Set x-goog-api-client header
|
521
525
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
522
526
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
523
|
-
gapic_version: ::Google::Cloud::Compute::V1::VERSION
|
527
|
+
gapic_version: ::Google::Cloud::Compute::V1::VERSION,
|
528
|
+
transports_version_send: [:rest]
|
524
529
|
|
525
|
-
options.apply_defaults timeout: @config.timeout,
|
530
|
+
options.apply_defaults timeout: @config.rpcs.get_xpn_host.timeout,
|
526
531
|
metadata: call_metadata
|
527
532
|
|
528
|
-
|
529
|
-
|
530
|
-
uri: uri,
|
531
|
-
options: options
|
532
|
-
)
|
533
|
-
result = ::Google::Cloud::Compute::V1::Project.decode_json response.body, ignore_unknown_fields: true
|
533
|
+
options.apply_defaults timeout: @config.timeout,
|
534
|
+
metadata: @config.metadata
|
534
535
|
|
535
|
-
|
536
|
-
|
536
|
+
@projects_stub.get_xpn_host request, options do |result, response|
|
537
|
+
yield result, response if block_given?
|
538
|
+
return result
|
539
|
+
end
|
537
540
|
rescue ::Faraday::Error => e
|
538
541
|
gapic_error = ::Gapic::Rest::Error.wrap_faraday_error e
|
539
542
|
raise ::Google::Cloud::Error.from_error(gapic_error)
|
@@ -560,32 +563,22 @@ module Google
|
|
560
563
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
561
564
|
#
|
562
565
|
# @param filter [::String]
|
563
|
-
# 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 `<`.
|
564
|
-
#
|
565
|
-
# For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`.
|
566
|
-
#
|
567
|
-
# 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.
|
568
|
-
#
|
569
|
-
# 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) ```
|
566
|
+
# A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison operator must be either `=`, `!=`, `>`, or `<`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ```
|
570
567
|
# @param max_results [::Integer]
|
571
568
|
# 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`)
|
572
569
|
# @param order_by [::String]
|
573
|
-
# Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name.
|
574
|
-
#
|
575
|
-
# 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.
|
576
|
-
#
|
577
|
-
# Currently, only sorting by `name` or `creationTimestamp desc` is supported.
|
570
|
+
# Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported.
|
578
571
|
# @param page_token [::String]
|
579
572
|
# Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results.
|
580
573
|
# @param project [::String]
|
581
574
|
# Project ID for this request.
|
582
575
|
# @param return_partial_success [::Boolean]
|
583
|
-
# Opt-in for partial success behavior which provides partial results in case of failure. The default value is false
|
584
|
-
# @yield [result,
|
585
|
-
# @yieldparam result [::Google::Cloud::Compute::V1::
|
576
|
+
# Opt-in for partial success behavior which provides partial results in case of failure. The default value is false.
|
577
|
+
# @yield [result, response] Access the result along with the Faraday response object
|
578
|
+
# @yieldparam result [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Compute::V1::XpnResourceId>]
|
586
579
|
# @yieldparam response [::Faraday::Response]
|
587
580
|
#
|
588
|
-
# @return [::Google::Cloud::Compute::V1::
|
581
|
+
# @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Compute::V1::XpnResourceId>]
|
589
582
|
#
|
590
583
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
591
584
|
def get_xpn_resources request, options = nil
|
@@ -597,26 +590,25 @@ module Google
|
|
597
590
|
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
598
591
|
|
599
592
|
# Customize the options with defaults
|
600
|
-
call_metadata =
|
593
|
+
call_metadata = @config.rpcs.get_xpn_resources.metadata.to_h
|
601
594
|
|
602
595
|
# Set x-goog-api-client header
|
603
596
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
604
597
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
605
|
-
gapic_version: ::Google::Cloud::Compute::V1::VERSION
|
598
|
+
gapic_version: ::Google::Cloud::Compute::V1::VERSION,
|
599
|
+
transports_version_send: [:rest]
|
606
600
|
|
607
|
-
options.apply_defaults timeout: @config.timeout,
|
601
|
+
options.apply_defaults timeout: @config.rpcs.get_xpn_resources.timeout,
|
608
602
|
metadata: call_metadata
|
609
603
|
|
610
|
-
|
611
|
-
|
612
|
-
uri: uri,
|
613
|
-
params: query_string_params,
|
614
|
-
options: options
|
615
|
-
)
|
616
|
-
result = ::Google::Cloud::Compute::V1::ProjectsGetXpnResources.decode_json response.body, ignore_unknown_fields: true
|
604
|
+
options.apply_defaults timeout: @config.timeout,
|
605
|
+
metadata: @config.metadata
|
617
606
|
|
618
|
-
|
619
|
-
|
607
|
+
@projects_stub.get_xpn_resources request, options do |result, response|
|
608
|
+
result = ::Gapic::Rest::PagedEnumerable.new @projects_stub, :get_xpn_resources, "resources", request, result, options
|
609
|
+
yield result, response if block_given?
|
610
|
+
return result
|
611
|
+
end
|
620
612
|
rescue ::Faraday::Error => e
|
621
613
|
gapic_error = ::Gapic::Rest::Error.wrap_faraday_error e
|
622
614
|
raise ::Google::Cloud::Error.from_error(gapic_error)
|
@@ -643,21 +635,11 @@ module Google
|
|
643
635
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
644
636
|
#
|
645
637
|
# @param filter [::String]
|
646
|
-
# 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 `<`.
|
647
|
-
#
|
648
|
-
# For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`.
|
649
|
-
#
|
650
|
-
# 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.
|
651
|
-
#
|
652
|
-
# 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) ```
|
638
|
+
# A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison operator must be either `=`, `!=`, `>`, or `<`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ```
|
653
639
|
# @param max_results [::Integer]
|
654
640
|
# 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`)
|
655
641
|
# @param order_by [::String]
|
656
|
-
# Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name.
|
657
|
-
#
|
658
|
-
# 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.
|
659
|
-
#
|
660
|
-
# Currently, only sorting by `name` or `creationTimestamp desc` is supported.
|
642
|
+
# Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported.
|
661
643
|
# @param page_token [::String]
|
662
644
|
# Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results.
|
663
645
|
# @param project [::String]
|
@@ -665,12 +647,12 @@ module Google
|
|
665
647
|
# @param projects_list_xpn_hosts_request_resource [::Google::Cloud::Compute::V1::ProjectsListXpnHostsRequest, ::Hash]
|
666
648
|
# The body resource for this request
|
667
649
|
# @param return_partial_success [::Boolean]
|
668
|
-
# Opt-in for partial success behavior which provides partial results in case of failure. The default value is false
|
669
|
-
# @yield [result,
|
670
|
-
# @yieldparam result [::Google::Cloud::Compute::V1::
|
650
|
+
# Opt-in for partial success behavior which provides partial results in case of failure. The default value is false.
|
651
|
+
# @yield [result, response] Access the result along with the Faraday response object
|
652
|
+
# @yieldparam result [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Compute::V1::Project>]
|
671
653
|
# @yieldparam response [::Faraday::Response]
|
672
654
|
#
|
673
|
-
# @return [::Google::Cloud::Compute::V1::
|
655
|
+
# @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Compute::V1::Project>]
|
674
656
|
#
|
675
657
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
676
658
|
def list_xpn_hosts request, options = nil
|
@@ -682,26 +664,25 @@ module Google
|
|
682
664
|
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
683
665
|
|
684
666
|
# Customize the options with defaults
|
685
|
-
call_metadata =
|
667
|
+
call_metadata = @config.rpcs.list_xpn_hosts.metadata.to_h
|
686
668
|
|
687
669
|
# Set x-goog-api-client header
|
688
670
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
689
671
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
690
|
-
gapic_version: ::Google::Cloud::Compute::V1::VERSION
|
672
|
+
gapic_version: ::Google::Cloud::Compute::V1::VERSION,
|
673
|
+
transports_version_send: [:rest]
|
691
674
|
|
692
|
-
options.apply_defaults timeout: @config.timeout,
|
675
|
+
options.apply_defaults timeout: @config.rpcs.list_xpn_hosts.timeout,
|
693
676
|
metadata: call_metadata
|
694
677
|
|
695
|
-
|
696
|
-
|
697
|
-
uri: uri,
|
698
|
-
body: body,
|
699
|
-
options: options
|
700
|
-
)
|
701
|
-
result = ::Google::Cloud::Compute::V1::XpnHostList.decode_json response.body, ignore_unknown_fields: true
|
678
|
+
options.apply_defaults timeout: @config.timeout,
|
679
|
+
metadata: @config.metadata
|
702
680
|
|
703
|
-
|
704
|
-
|
681
|
+
@projects_stub.list_xpn_hosts request, options do |result, response|
|
682
|
+
result = ::Gapic::Rest::PagedEnumerable.new @projects_stub, :list_xpn_hosts, "items", request, result, options
|
683
|
+
yield result, response if block_given?
|
684
|
+
return result
|
685
|
+
end
|
705
686
|
rescue ::Faraday::Error => e
|
706
687
|
gapic_error = ::Gapic::Rest::Error.wrap_faraday_error e
|
707
688
|
raise ::Google::Cloud::Error.from_error(gapic_error)
|
@@ -732,16 +713,12 @@ module Google
|
|
732
713
|
# @param project [::String]
|
733
714
|
# Project ID for this request.
|
734
715
|
# @param request_id [::String]
|
735
|
-
# 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.
|
736
|
-
#
|
737
|
-
#
|
738
|
-
#
|
739
|
-
# The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
|
740
|
-
# @yield [result, env] Access the result along with the Faraday environment object
|
741
|
-
# @yieldparam result [::Google::Cloud::Compute::V1::Operation]
|
716
|
+
# An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
|
717
|
+
# @yield [result, response] Access the result along with the Faraday response object
|
718
|
+
# @yieldparam result [::Gapic::Rest::BaseOperation]
|
742
719
|
# @yieldparam response [::Faraday::Response]
|
743
720
|
#
|
744
|
-
# @return [::
|
721
|
+
# @return [::Gapic::Rest::BaseOperation]
|
745
722
|
#
|
746
723
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
747
724
|
def move_disk request, options = nil
|
@@ -753,26 +730,25 @@ module Google
|
|
753
730
|
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
754
731
|
|
755
732
|
# Customize the options with defaults
|
756
|
-
call_metadata =
|
733
|
+
call_metadata = @config.rpcs.move_disk.metadata.to_h
|
757
734
|
|
758
735
|
# Set x-goog-api-client header
|
759
736
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
760
737
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
761
|
-
gapic_version: ::Google::Cloud::Compute::V1::VERSION
|
738
|
+
gapic_version: ::Google::Cloud::Compute::V1::VERSION,
|
739
|
+
transports_version_send: [:rest]
|
762
740
|
|
763
|
-
options.apply_defaults timeout: @config.timeout,
|
741
|
+
options.apply_defaults timeout: @config.rpcs.move_disk.timeout,
|
764
742
|
metadata: call_metadata
|
765
743
|
|
766
|
-
|
767
|
-
|
768
|
-
uri: uri,
|
769
|
-
body: body,
|
770
|
-
options: options
|
771
|
-
)
|
772
|
-
result = ::Google::Cloud::Compute::V1::Operation.decode_json response.body, ignore_unknown_fields: true
|
744
|
+
options.apply_defaults timeout: @config.timeout,
|
745
|
+
metadata: @config.metadata
|
773
746
|
|
774
|
-
|
775
|
-
|
747
|
+
@projects_stub.move_disk request, options do |result, response|
|
748
|
+
result = ::Gapic::Rest::BaseOperation.new result
|
749
|
+
yield result, response if block_given?
|
750
|
+
return result
|
751
|
+
end
|
776
752
|
rescue ::Faraday::Error => e
|
777
753
|
gapic_error = ::Gapic::Rest::Error.wrap_faraday_error e
|
778
754
|
raise ::Google::Cloud::Error.from_error(gapic_error)
|
@@ -803,16 +779,12 @@ module Google
|
|
803
779
|
# @param project [::String]
|
804
780
|
# Project ID for this request.
|
805
781
|
# @param request_id [::String]
|
806
|
-
# 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.
|
807
|
-
#
|
808
|
-
#
|
809
|
-
#
|
810
|
-
# The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
|
811
|
-
# @yield [result, env] Access the result along with the Faraday environment object
|
812
|
-
# @yieldparam result [::Google::Cloud::Compute::V1::Operation]
|
782
|
+
# An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
|
783
|
+
# @yield [result, response] Access the result along with the Faraday response object
|
784
|
+
# @yieldparam result [::Gapic::Rest::BaseOperation]
|
813
785
|
# @yieldparam response [::Faraday::Response]
|
814
786
|
#
|
815
|
-
# @return [::
|
787
|
+
# @return [::Gapic::Rest::BaseOperation]
|
816
788
|
#
|
817
789
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
818
790
|
def move_instance request, options = nil
|
@@ -824,26 +796,25 @@ module Google
|
|
824
796
|
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
825
797
|
|
826
798
|
# Customize the options with defaults
|
827
|
-
call_metadata =
|
799
|
+
call_metadata = @config.rpcs.move_instance.metadata.to_h
|
828
800
|
|
829
801
|
# Set x-goog-api-client header
|
830
802
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
831
803
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
832
|
-
gapic_version: ::Google::Cloud::Compute::V1::VERSION
|
804
|
+
gapic_version: ::Google::Cloud::Compute::V1::VERSION,
|
805
|
+
transports_version_send: [:rest]
|
833
806
|
|
834
|
-
options.apply_defaults timeout: @config.timeout,
|
807
|
+
options.apply_defaults timeout: @config.rpcs.move_instance.timeout,
|
835
808
|
metadata: call_metadata
|
836
809
|
|
837
|
-
|
838
|
-
|
839
|
-
uri: uri,
|
840
|
-
body: body,
|
841
|
-
options: options
|
842
|
-
)
|
843
|
-
result = ::Google::Cloud::Compute::V1::Operation.decode_json response.body, ignore_unknown_fields: true
|
810
|
+
options.apply_defaults timeout: @config.timeout,
|
811
|
+
metadata: @config.metadata
|
844
812
|
|
845
|
-
|
846
|
-
|
813
|
+
@projects_stub.move_instance request, options do |result, response|
|
814
|
+
result = ::Gapic::Rest::BaseOperation.new result
|
815
|
+
yield result, response if block_given?
|
816
|
+
return result
|
817
|
+
end
|
847
818
|
rescue ::Faraday::Error => e
|
848
819
|
gapic_error = ::Gapic::Rest::Error.wrap_faraday_error e
|
849
820
|
raise ::Google::Cloud::Error.from_error(gapic_error)
|
@@ -874,16 +845,12 @@ module Google
|
|
874
845
|
# @param project [::String]
|
875
846
|
# Project ID for this request.
|
876
847
|
# @param request_id [::String]
|
877
|
-
# 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.
|
878
|
-
#
|
879
|
-
#
|
880
|
-
#
|
881
|
-
# The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
|
882
|
-
# @yield [result, env] Access the result along with the Faraday environment object
|
883
|
-
# @yieldparam result [::Google::Cloud::Compute::V1::Operation]
|
848
|
+
# An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
|
849
|
+
# @yield [result, response] Access the result along with the Faraday response object
|
850
|
+
# @yieldparam result [::Gapic::Rest::BaseOperation]
|
884
851
|
# @yieldparam response [::Faraday::Response]
|
885
852
|
#
|
886
|
-
# @return [::
|
853
|
+
# @return [::Gapic::Rest::BaseOperation]
|
887
854
|
#
|
888
855
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
889
856
|
def set_common_instance_metadata request, options = nil
|
@@ -895,26 +862,25 @@ module Google
|
|
895
862
|
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
896
863
|
|
897
864
|
# Customize the options with defaults
|
898
|
-
call_metadata =
|
865
|
+
call_metadata = @config.rpcs.set_common_instance_metadata.metadata.to_h
|
899
866
|
|
900
867
|
# Set x-goog-api-client header
|
901
868
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
902
869
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
903
|
-
gapic_version: ::Google::Cloud::Compute::V1::VERSION
|
870
|
+
gapic_version: ::Google::Cloud::Compute::V1::VERSION,
|
871
|
+
transports_version_send: [:rest]
|
904
872
|
|
905
|
-
options.apply_defaults timeout: @config.timeout,
|
873
|
+
options.apply_defaults timeout: @config.rpcs.set_common_instance_metadata.timeout,
|
906
874
|
metadata: call_metadata
|
907
875
|
|
908
|
-
|
909
|
-
|
910
|
-
uri: uri,
|
911
|
-
body: body,
|
912
|
-
options: options
|
913
|
-
)
|
914
|
-
result = ::Google::Cloud::Compute::V1::Operation.decode_json response.body, ignore_unknown_fields: true
|
876
|
+
options.apply_defaults timeout: @config.timeout,
|
877
|
+
metadata: @config.metadata
|
915
878
|
|
916
|
-
|
917
|
-
|
879
|
+
@projects_stub.set_common_instance_metadata request, options do |result, response|
|
880
|
+
result = ::Gapic::Rest::BaseOperation.new result
|
881
|
+
yield result, response if block_given?
|
882
|
+
return result
|
883
|
+
end
|
918
884
|
rescue ::Faraday::Error => e
|
919
885
|
gapic_error = ::Gapic::Rest::Error.wrap_faraday_error e
|
920
886
|
raise ::Google::Cloud::Error.from_error(gapic_error)
|
@@ -945,16 +911,12 @@ module Google
|
|
945
911
|
# @param projects_set_default_network_tier_request_resource [::Google::Cloud::Compute::V1::ProjectsSetDefaultNetworkTierRequest, ::Hash]
|
946
912
|
# The body resource for this request
|
947
913
|
# @param request_id [::String]
|
948
|
-
# 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.
|
949
|
-
#
|
950
|
-
#
|
951
|
-
#
|
952
|
-
# The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
|
953
|
-
# @yield [result, env] Access the result along with the Faraday environment object
|
954
|
-
# @yieldparam result [::Google::Cloud::Compute::V1::Operation]
|
914
|
+
# An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
|
915
|
+
# @yield [result, response] Access the result along with the Faraday response object
|
916
|
+
# @yieldparam result [::Gapic::Rest::BaseOperation]
|
955
917
|
# @yieldparam response [::Faraday::Response]
|
956
918
|
#
|
957
|
-
# @return [::
|
919
|
+
# @return [::Gapic::Rest::BaseOperation]
|
958
920
|
#
|
959
921
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
960
922
|
def set_default_network_tier request, options = nil
|
@@ -966,26 +928,25 @@ module Google
|
|
966
928
|
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
967
929
|
|
968
930
|
# Customize the options with defaults
|
969
|
-
call_metadata =
|
931
|
+
call_metadata = @config.rpcs.set_default_network_tier.metadata.to_h
|
970
932
|
|
971
933
|
# Set x-goog-api-client header
|
972
934
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
973
935
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
974
|
-
gapic_version: ::Google::Cloud::Compute::V1::VERSION
|
936
|
+
gapic_version: ::Google::Cloud::Compute::V1::VERSION,
|
937
|
+
transports_version_send: [:rest]
|
975
938
|
|
976
|
-
options.apply_defaults timeout: @config.timeout,
|
939
|
+
options.apply_defaults timeout: @config.rpcs.set_default_network_tier.timeout,
|
977
940
|
metadata: call_metadata
|
978
941
|
|
979
|
-
|
980
|
-
|
981
|
-
uri: uri,
|
982
|
-
body: body,
|
983
|
-
options: options
|
984
|
-
)
|
985
|
-
result = ::Google::Cloud::Compute::V1::Operation.decode_json response.body, ignore_unknown_fields: true
|
942
|
+
options.apply_defaults timeout: @config.timeout,
|
943
|
+
metadata: @config.metadata
|
986
944
|
|
987
|
-
|
988
|
-
|
945
|
+
@projects_stub.set_default_network_tier request, options do |result, response|
|
946
|
+
result = ::Gapic::Rest::BaseOperation.new result
|
947
|
+
yield result, response if block_given?
|
948
|
+
return result
|
949
|
+
end
|
989
950
|
rescue ::Faraday::Error => e
|
990
951
|
gapic_error = ::Gapic::Rest::Error.wrap_faraday_error e
|
991
952
|
raise ::Google::Cloud::Error.from_error(gapic_error)
|
@@ -1014,18 +975,14 @@ module Google
|
|
1014
975
|
# @param project [::String]
|
1015
976
|
# Project ID for this request.
|
1016
977
|
# @param request_id [::String]
|
1017
|
-
# 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.
|
1018
|
-
#
|
1019
|
-
# 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.
|
1020
|
-
#
|
1021
|
-
# The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
|
978
|
+
# An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
|
1022
979
|
# @param usage_export_location_resource [::Google::Cloud::Compute::V1::UsageExportLocation, ::Hash]
|
1023
980
|
# The body resource for this request
|
1024
|
-
# @yield [result,
|
1025
|
-
# @yieldparam result [::
|
981
|
+
# @yield [result, response] Access the result along with the Faraday response object
|
982
|
+
# @yieldparam result [::Gapic::Rest::BaseOperation]
|
1026
983
|
# @yieldparam response [::Faraday::Response]
|
1027
984
|
#
|
1028
|
-
# @return [::
|
985
|
+
# @return [::Gapic::Rest::BaseOperation]
|
1029
986
|
#
|
1030
987
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
1031
988
|
def set_usage_export_bucket request, options = nil
|
@@ -1037,26 +994,25 @@ module Google
|
|
1037
994
|
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
1038
995
|
|
1039
996
|
# Customize the options with defaults
|
1040
|
-
call_metadata =
|
997
|
+
call_metadata = @config.rpcs.set_usage_export_bucket.metadata.to_h
|
1041
998
|
|
1042
999
|
# Set x-goog-api-client header
|
1043
1000
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
1044
1001
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
1045
|
-
gapic_version: ::Google::Cloud::Compute::V1::VERSION
|
1002
|
+
gapic_version: ::Google::Cloud::Compute::V1::VERSION,
|
1003
|
+
transports_version_send: [:rest]
|
1046
1004
|
|
1047
|
-
options.apply_defaults timeout: @config.timeout,
|
1005
|
+
options.apply_defaults timeout: @config.rpcs.set_usage_export_bucket.timeout,
|
1048
1006
|
metadata: call_metadata
|
1049
1007
|
|
1050
|
-
|
1051
|
-
|
1052
|
-
uri: uri,
|
1053
|
-
body: body,
|
1054
|
-
options: options
|
1055
|
-
)
|
1056
|
-
result = ::Google::Cloud::Compute::V1::Operation.decode_json response.body, ignore_unknown_fields: true
|
1008
|
+
options.apply_defaults timeout: @config.timeout,
|
1009
|
+
metadata: @config.metadata
|
1057
1010
|
|
1058
|
-
|
1059
|
-
|
1011
|
+
@projects_stub.set_usage_export_bucket request, options do |result, response|
|
1012
|
+
result = ::Gapic::Rest::BaseOperation.new result
|
1013
|
+
yield result, response if block_given?
|
1014
|
+
return result
|
1015
|
+
end
|
1060
1016
|
rescue ::Faraday::Error => e
|
1061
1017
|
gapic_error = ::Gapic::Rest::Error.wrap_faraday_error e
|
1062
1018
|
raise ::Google::Cloud::Error.from_error(gapic_error)
|
@@ -1111,6 +1067,9 @@ module Google
|
|
1111
1067
|
# @!attribute [rw] timeout
|
1112
1068
|
# The call timeout in seconds.
|
1113
1069
|
# @return [::Numeric]
|
1070
|
+
# @!attribute [rw] metadata
|
1071
|
+
# Additional REST headers to be sent with the call.
|
1072
|
+
# @return [::Hash{::Symbol=>::String}]
|
1114
1073
|
#
|
1115
1074
|
class Configuration
|
1116
1075
|
extend ::Gapic::Config
|
@@ -1124,6 +1083,7 @@ module Google
|
|
1124
1083
|
config_attr :lib_name, nil, ::String, nil
|
1125
1084
|
config_attr :lib_version, nil, ::String, nil
|
1126
1085
|
config_attr :timeout, nil, ::Numeric, nil
|
1086
|
+
config_attr :metadata, nil, ::Hash, nil
|
1127
1087
|
|
1128
1088
|
# @private
|
1129
1089
|
def initialize parent_config = nil
|
@@ -1131,6 +1091,130 @@ module Google
|
|
1131
1091
|
|
1132
1092
|
yield self if block_given?
|
1133
1093
|
end
|
1094
|
+
|
1095
|
+
##
|
1096
|
+
# Configurations for individual RPCs
|
1097
|
+
# @return [Rpcs]
|
1098
|
+
#
|
1099
|
+
def rpcs
|
1100
|
+
@rpcs ||= begin
|
1101
|
+
parent_rpcs = nil
|
1102
|
+
parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs)
|
1103
|
+
Rpcs.new parent_rpcs
|
1104
|
+
end
|
1105
|
+
end
|
1106
|
+
|
1107
|
+
##
|
1108
|
+
# Configuration RPC class for the Projects API.
|
1109
|
+
#
|
1110
|
+
# Includes fields providing the configuration for each RPC in this service.
|
1111
|
+
# Each configuration object is of type `Gapic::Config::Method` and includes
|
1112
|
+
# the following configuration fields:
|
1113
|
+
#
|
1114
|
+
# * `timeout` (*type:* `Numeric`) - The call timeout in seconds
|
1115
|
+
#
|
1116
|
+
# there is one other field (`retry_policy`) that can be set
|
1117
|
+
# but is currently not supported for REST Gapic libraries.
|
1118
|
+
#
|
1119
|
+
class Rpcs
|
1120
|
+
##
|
1121
|
+
# RPC-specific configuration for `disable_xpn_host`
|
1122
|
+
# @return [::Gapic::Config::Method]
|
1123
|
+
#
|
1124
|
+
attr_reader :disable_xpn_host
|
1125
|
+
##
|
1126
|
+
# RPC-specific configuration for `disable_xpn_resource`
|
1127
|
+
# @return [::Gapic::Config::Method]
|
1128
|
+
#
|
1129
|
+
attr_reader :disable_xpn_resource
|
1130
|
+
##
|
1131
|
+
# RPC-specific configuration for `enable_xpn_host`
|
1132
|
+
# @return [::Gapic::Config::Method]
|
1133
|
+
#
|
1134
|
+
attr_reader :enable_xpn_host
|
1135
|
+
##
|
1136
|
+
# RPC-specific configuration for `enable_xpn_resource`
|
1137
|
+
# @return [::Gapic::Config::Method]
|
1138
|
+
#
|
1139
|
+
attr_reader :enable_xpn_resource
|
1140
|
+
##
|
1141
|
+
# RPC-specific configuration for `get`
|
1142
|
+
# @return [::Gapic::Config::Method]
|
1143
|
+
#
|
1144
|
+
attr_reader :get
|
1145
|
+
##
|
1146
|
+
# RPC-specific configuration for `get_xpn_host`
|
1147
|
+
# @return [::Gapic::Config::Method]
|
1148
|
+
#
|
1149
|
+
attr_reader :get_xpn_host
|
1150
|
+
##
|
1151
|
+
# RPC-specific configuration for `get_xpn_resources`
|
1152
|
+
# @return [::Gapic::Config::Method]
|
1153
|
+
#
|
1154
|
+
attr_reader :get_xpn_resources
|
1155
|
+
##
|
1156
|
+
# RPC-specific configuration for `list_xpn_hosts`
|
1157
|
+
# @return [::Gapic::Config::Method]
|
1158
|
+
#
|
1159
|
+
attr_reader :list_xpn_hosts
|
1160
|
+
##
|
1161
|
+
# RPC-specific configuration for `move_disk`
|
1162
|
+
# @return [::Gapic::Config::Method]
|
1163
|
+
#
|
1164
|
+
attr_reader :move_disk
|
1165
|
+
##
|
1166
|
+
# RPC-specific configuration for `move_instance`
|
1167
|
+
# @return [::Gapic::Config::Method]
|
1168
|
+
#
|
1169
|
+
attr_reader :move_instance
|
1170
|
+
##
|
1171
|
+
# RPC-specific configuration for `set_common_instance_metadata`
|
1172
|
+
# @return [::Gapic::Config::Method]
|
1173
|
+
#
|
1174
|
+
attr_reader :set_common_instance_metadata
|
1175
|
+
##
|
1176
|
+
# RPC-specific configuration for `set_default_network_tier`
|
1177
|
+
# @return [::Gapic::Config::Method]
|
1178
|
+
#
|
1179
|
+
attr_reader :set_default_network_tier
|
1180
|
+
##
|
1181
|
+
# RPC-specific configuration for `set_usage_export_bucket`
|
1182
|
+
# @return [::Gapic::Config::Method]
|
1183
|
+
#
|
1184
|
+
attr_reader :set_usage_export_bucket
|
1185
|
+
|
1186
|
+
# @private
|
1187
|
+
def initialize parent_rpcs = nil
|
1188
|
+
disable_xpn_host_config = parent_rpcs.disable_xpn_host if parent_rpcs.respond_to? :disable_xpn_host
|
1189
|
+
@disable_xpn_host = ::Gapic::Config::Method.new disable_xpn_host_config
|
1190
|
+
disable_xpn_resource_config = parent_rpcs.disable_xpn_resource if parent_rpcs.respond_to? :disable_xpn_resource
|
1191
|
+
@disable_xpn_resource = ::Gapic::Config::Method.new disable_xpn_resource_config
|
1192
|
+
enable_xpn_host_config = parent_rpcs.enable_xpn_host if parent_rpcs.respond_to? :enable_xpn_host
|
1193
|
+
@enable_xpn_host = ::Gapic::Config::Method.new enable_xpn_host_config
|
1194
|
+
enable_xpn_resource_config = parent_rpcs.enable_xpn_resource if parent_rpcs.respond_to? :enable_xpn_resource
|
1195
|
+
@enable_xpn_resource = ::Gapic::Config::Method.new enable_xpn_resource_config
|
1196
|
+
get_config = parent_rpcs.get if parent_rpcs.respond_to? :get
|
1197
|
+
@get = ::Gapic::Config::Method.new get_config
|
1198
|
+
get_xpn_host_config = parent_rpcs.get_xpn_host if parent_rpcs.respond_to? :get_xpn_host
|
1199
|
+
@get_xpn_host = ::Gapic::Config::Method.new get_xpn_host_config
|
1200
|
+
get_xpn_resources_config = parent_rpcs.get_xpn_resources if parent_rpcs.respond_to? :get_xpn_resources
|
1201
|
+
@get_xpn_resources = ::Gapic::Config::Method.new get_xpn_resources_config
|
1202
|
+
list_xpn_hosts_config = parent_rpcs.list_xpn_hosts if parent_rpcs.respond_to? :list_xpn_hosts
|
1203
|
+
@list_xpn_hosts = ::Gapic::Config::Method.new list_xpn_hosts_config
|
1204
|
+
move_disk_config = parent_rpcs.move_disk if parent_rpcs.respond_to? :move_disk
|
1205
|
+
@move_disk = ::Gapic::Config::Method.new move_disk_config
|
1206
|
+
move_instance_config = parent_rpcs.move_instance if parent_rpcs.respond_to? :move_instance
|
1207
|
+
@move_instance = ::Gapic::Config::Method.new move_instance_config
|
1208
|
+
set_common_instance_metadata_config = parent_rpcs.set_common_instance_metadata if parent_rpcs.respond_to? :set_common_instance_metadata
|
1209
|
+
@set_common_instance_metadata = ::Gapic::Config::Method.new set_common_instance_metadata_config
|
1210
|
+
set_default_network_tier_config = parent_rpcs.set_default_network_tier if parent_rpcs.respond_to? :set_default_network_tier
|
1211
|
+
@set_default_network_tier = ::Gapic::Config::Method.new set_default_network_tier_config
|
1212
|
+
set_usage_export_bucket_config = parent_rpcs.set_usage_export_bucket if parent_rpcs.respond_to? :set_usage_export_bucket
|
1213
|
+
@set_usage_export_bucket = ::Gapic::Config::Method.new set_usage_export_bucket_config
|
1214
|
+
|
1215
|
+
yield self if block_given?
|
1216
|
+
end
|
1217
|
+
end
|
1134
1218
|
end
|
1135
1219
|
end
|
1136
1220
|
end
|