google-cloud-compute-v1 1.2.0 → 1.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.md +10 -5
- data/lib/google/cloud/compute/v1/accelerator_types/rest/client.rb +2 -2
- data/lib/google/cloud/compute/v1/accelerator_types/rest/service_stub.rb +90 -52
- data/lib/google/cloud/compute/v1/accelerator_types.rb +5 -0
- data/lib/google/cloud/compute/v1/addresses/rest/client.rb +2 -2
- data/lib/google/cloud/compute/v1/addresses/rest/service_stub.rb +156 -89
- data/lib/google/cloud/compute/v1/addresses.rb +3 -0
- data/lib/google/cloud/compute/v1/autoscalers/rest/client.rb +2 -2
- data/lib/google/cloud/compute/v1/autoscalers/rest/service_stub.rb +222 -129
- data/lib/google/cloud/compute/v1/autoscalers.rb +3 -0
- data/lib/google/cloud/compute/v1/backend_buckets/rest/client.rb +1 -1
- data/lib/google/cloud/compute/v1/backend_buckets/rest/service_stub.rb +285 -161
- data/lib/google/cloud/compute/v1/backend_buckets.rb +3 -0
- data/lib/google/cloud/compute/v1/backend_services/rest/client.rb +2 -2
- data/lib/google/cloud/compute/v1/backend_services/rest/service_stub.rb +383 -221
- data/lib/google/cloud/compute/v1/backend_services.rb +3 -0
- data/lib/google/cloud/compute/v1/compute_pb.rb +671 -3
- data/lib/google/cloud/compute/v1/disk_types/rest/client.rb +2 -2
- data/lib/google/cloud/compute/v1/disk_types/rest/service_stub.rb +90 -52
- data/lib/google/cloud/compute/v1/disk_types.rb +3 -0
- data/lib/google/cloud/compute/v1/disks/rest/client.rb +3 -3
- data/lib/google/cloud/compute/v1/disks/rest/service_stub.rb +429 -240
- data/lib/google/cloud/compute/v1/disks.rb +3 -0
- data/lib/google/cloud/compute/v1/external_vpn_gateways/rest/client.rb +1 -1
- data/lib/google/cloud/compute/v1/external_vpn_gateways/rest/service_stub.rb +189 -102
- data/lib/google/cloud/compute/v1/external_vpn_gateways.rb +3 -0
- data/lib/google/cloud/compute/v1/firewall_policies/rest/client.rb +1 -1
- data/lib/google/cloud/compute/v1/firewall_policies/rest/service_stub.rb +555 -330
- data/lib/google/cloud/compute/v1/firewall_policies.rb +3 -0
- data/lib/google/cloud/compute/v1/firewalls/rest/client.rb +1 -1
- data/lib/google/cloud/compute/v1/firewalls/rest/service_stub.rb +187 -104
- data/lib/google/cloud/compute/v1/firewalls.rb +3 -0
- data/lib/google/cloud/compute/v1/forwarding_rules/rest/client.rb +2 -2
- data/lib/google/cloud/compute/v1/forwarding_rules/rest/service_stub.rb +258 -146
- data/lib/google/cloud/compute/v1/forwarding_rules.rb +3 -0
- data/lib/google/cloud/compute/v1/global_addresses/rest/client.rb +1 -1
- data/lib/google/cloud/compute/v1/global_addresses/rest/service_stub.rb +121 -66
- data/lib/google/cloud/compute/v1/global_addresses.rb +3 -0
- data/lib/google/cloud/compute/v1/global_forwarding_rules/rest/client.rb +1 -1
- data/lib/google/cloud/compute/v1/global_forwarding_rules/rest/service_stub.rb +221 -122
- data/lib/google/cloud/compute/v1/global_forwarding_rules.rb +3 -0
- data/lib/google/cloud/compute/v1/global_network_endpoint_groups/rest/client.rb +2 -2
- data/lib/google/cloud/compute/v1/global_network_endpoint_groups/rest/service_stub.rb +219 -126
- data/lib/google/cloud/compute/v1/global_network_endpoint_groups.rb +3 -0
- data/lib/google/cloud/compute/v1/global_operations/rest/client.rb +2 -2
- data/lib/google/cloud/compute/v1/global_operations/rest/service_stub.rb +154 -86
- data/lib/google/cloud/compute/v1/global_operations.rb +3 -0
- data/lib/google/cloud/compute/v1/global_organization_operations/rest/client.rb +1 -1
- data/lib/google/cloud/compute/v1/global_organization_operations/rest/service_stub.rb +84 -49
- data/lib/google/cloud/compute/v1/global_organization_operations.rb +3 -0
- data/lib/google/cloud/compute/v1/global_public_delegated_prefixes/rest/client.rb +1 -1
- data/lib/google/cloud/compute/v1/global_public_delegated_prefixes/rest/service_stub.rb +154 -85
- data/lib/google/cloud/compute/v1/global_public_delegated_prefixes.rb +3 -0
- data/lib/google/cloud/compute/v1/health_checks/rest/client.rb +2 -2
- data/lib/google/cloud/compute/v1/health_checks/rest/service_stub.rb +218 -127
- data/lib/google/cloud/compute/v1/health_checks.rb +3 -0
- data/lib/google/cloud/compute/v1/image_family_views/rest/service_stub.rb +27 -7
- data/lib/google/cloud/compute/v1/image_family_views.rb +3 -0
- data/lib/google/cloud/compute/v1/images/rest/client.rb +1 -1
- data/lib/google/cloud/compute/v1/images/rest/service_stub.rb +354 -194
- data/lib/google/cloud/compute/v1/images.rb +3 -0
- data/lib/google/cloud/compute/v1/instance_group_managers/rest/client.rb +10 -10
- data/lib/google/cloud/compute/v1/instance_group_managers/rest/service_stub.rb +664 -381
- data/lib/google/cloud/compute/v1/instance_group_managers.rb +3 -0
- data/lib/google/cloud/compute/v1/instance_groups/rest/client.rb +4 -4
- data/lib/google/cloud/compute/v1/instance_groups/rest/service_stub.rb +292 -169
- data/lib/google/cloud/compute/v1/instance_groups.rb +3 -0
- data/lib/google/cloud/compute/v1/instance_templates/rest/client.rb +1 -1
- data/lib/google/cloud/compute/v1/instance_templates/rest/service_stub.rb +221 -120
- data/lib/google/cloud/compute/v1/instance_templates.rb +3 -0
- data/lib/google/cloud/compute/v1/instances/rest/client.rb +7 -5
- data/lib/google/cloud/compute/v1/instances/rest/service_stub.rb +1503 -845
- data/lib/google/cloud/compute/v1/instances.rb +3 -0
- data/lib/google/cloud/compute/v1/interconnect_attachments/rest/client.rb +2 -2
- data/lib/google/cloud/compute/v1/interconnect_attachments/rest/service_stub.rb +190 -109
- data/lib/google/cloud/compute/v1/interconnect_attachments.rb +3 -0
- data/lib/google/cloud/compute/v1/interconnect_locations/rest/client.rb +1 -1
- data/lib/google/cloud/compute/v1/interconnect_locations/rest/service_stub.rb +57 -29
- data/lib/google/cloud/compute/v1/interconnect_locations.rb +3 -0
- data/lib/google/cloud/compute/v1/interconnects/rest/client.rb +1 -1
- data/lib/google/cloud/compute/v1/interconnects/rest/service_stub.rb +187 -102
- data/lib/google/cloud/compute/v1/interconnects.rb +3 -0
- data/lib/google/cloud/compute/v1/license_codes/rest/service_stub.rb +60 -25
- data/lib/google/cloud/compute/v1/license_codes.rb +3 -0
- data/lib/google/cloud/compute/v1/licenses/rest/client.rb +1 -1
- data/lib/google/cloud/compute/v1/licenses/rest/service_stub.rb +221 -120
- data/lib/google/cloud/compute/v1/licenses.rb +3 -0
- data/lib/google/cloud/compute/v1/machine_images/rest/client.rb +1 -1
- data/lib/google/cloud/compute/v1/machine_images/rest/service_stub.rb +221 -121
- data/lib/google/cloud/compute/v1/machine_images.rb +3 -0
- data/lib/google/cloud/compute/v1/machine_types/rest/client.rb +2 -2
- data/lib/google/cloud/compute/v1/machine_types/rest/service_stub.rb +90 -52
- data/lib/google/cloud/compute/v1/machine_types.rb +3 -0
- data/lib/google/cloud/compute/v1/network_edge_security_services/credentials.rb +52 -0
- data/lib/google/cloud/compute/v1/network_edge_security_services/rest/client.rb +679 -0
- data/lib/google/cloud/compute/v1/network_edge_security_services/rest/service_stub.rb +348 -0
- data/lib/google/cloud/compute/v1/network_edge_security_services/rest.rb +33 -0
- data/lib/google/cloud/compute/v1/network_edge_security_services.rb +47 -0
- data/lib/google/cloud/compute/v1/network_endpoint_groups/rest/client.rb +3 -3
- data/lib/google/cloud/compute/v1/network_endpoint_groups/rest/service_stub.rb +293 -168
- data/lib/google/cloud/compute/v1/network_endpoint_groups.rb +3 -0
- data/lib/google/cloud/compute/v1/network_firewall_policies/credentials.rb +52 -0
- data/lib/google/cloud/compute/v1/network_firewall_policies/rest/client.rb +1552 -0
- data/lib/google/cloud/compute/v1/network_firewall_policies/rest/service_stub.rb +998 -0
- data/lib/google/cloud/compute/v1/network_firewall_policies/rest.rb +33 -0
- data/lib/google/cloud/compute/v1/network_firewall_policies.rb +47 -0
- data/lib/google/cloud/compute/v1/networks/rest/client.rb +2 -2
- data/lib/google/cloud/compute/v1/networks/rest/service_stub.rb +350 -202
- data/lib/google/cloud/compute/v1/networks.rb +3 -0
- data/lib/google/cloud/compute/v1/node_groups/rest/client.rb +3 -3
- data/lib/google/cloud/compute/v1/node_groups/rest/service_stub.rb +428 -242
- data/lib/google/cloud/compute/v1/node_groups.rb +3 -0
- data/lib/google/cloud/compute/v1/node_templates/rest/client.rb +2 -2
- data/lib/google/cloud/compute/v1/node_templates/rest/service_stub.rb +259 -143
- data/lib/google/cloud/compute/v1/node_templates.rb +3 -0
- data/lib/google/cloud/compute/v1/node_types/rest/client.rb +2 -2
- data/lib/google/cloud/compute/v1/node_types/rest/service_stub.rb +90 -52
- data/lib/google/cloud/compute/v1/node_types.rb +3 -0
- data/lib/google/cloud/compute/v1/packet_mirrorings/rest/client.rb +2 -2
- data/lib/google/cloud/compute/v1/packet_mirrorings/rest/service_stub.rb +225 -126
- data/lib/google/cloud/compute/v1/packet_mirrorings.rb +3 -0
- data/lib/google/cloud/compute/v1/projects/rest/client.rb +2 -2
- data/lib/google/cloud/compute/v1/projects/rest/service_stub.rb +406 -238
- data/lib/google/cloud/compute/v1/projects.rb +3 -0
- data/lib/google/cloud/compute/v1/public_advertised_prefixes/rest/client.rb +1 -1
- data/lib/google/cloud/compute/v1/public_advertised_prefixes/rest/service_stub.rb +154 -85
- data/lib/google/cloud/compute/v1/public_advertised_prefixes.rb +3 -0
- data/lib/google/cloud/compute/v1/public_delegated_prefixes/rest/client.rb +2 -2
- data/lib/google/cloud/compute/v1/public_delegated_prefixes/rest/service_stub.rb +190 -108
- data/lib/google/cloud/compute/v1/public_delegated_prefixes.rb +3 -0
- data/lib/google/cloud/compute/v1/region_autoscalers/rest/client.rb +1 -1
- data/lib/google/cloud/compute/v1/region_autoscalers/rest/service_stub.rb +191 -106
- data/lib/google/cloud/compute/v1/region_autoscalers.rb +3 -0
- data/lib/google/cloud/compute/v1/region_backend_services/rest/client.rb +1 -1
- data/lib/google/cloud/compute/v1/region_backend_services/rest/service_stub.rb +228 -122
- data/lib/google/cloud/compute/v1/region_backend_services.rb +3 -0
- data/lib/google/cloud/compute/v1/region_commitments/rest/client.rb +2 -2
- data/lib/google/cloud/compute/v1/region_commitments/rest/service_stub.rb +157 -92
- data/lib/google/cloud/compute/v1/region_commitments.rb +3 -0
- data/lib/google/cloud/compute/v1/region_disk_types/rest/client.rb +1 -1
- data/lib/google/cloud/compute/v1/region_disk_types/rest/service_stub.rb +59 -29
- data/lib/google/cloud/compute/v1/region_disk_types.rb +3 -0
- data/lib/google/cloud/compute/v1/region_disks/rest/client.rb +1 -1
- data/lib/google/cloud/compute/v1/region_disks/rest/service_stub.rb +398 -216
- data/lib/google/cloud/compute/v1/region_disks.rb +3 -0
- data/lib/google/cloud/compute/v1/region_health_check_services/rest/client.rb +1 -1
- data/lib/google/cloud/compute/v1/region_health_check_services/rest/service_stub.rb +159 -85
- data/lib/google/cloud/compute/v1/region_health_check_services.rb +3 -0
- data/lib/google/cloud/compute/v1/region_health_checks/rest/client.rb +1 -1
- data/lib/google/cloud/compute/v1/region_health_checks/rest/service_stub.rb +193 -104
- data/lib/google/cloud/compute/v1/region_health_checks.rb +3 -0
- data/lib/google/cloud/compute/v1/region_instance_group_managers/rest/client.rb +9 -9
- data/lib/google/cloud/compute/v1/region_instance_group_managers/rest/service_stub.rb +633 -358
- data/lib/google/cloud/compute/v1/region_instance_group_managers.rb +3 -0
- data/lib/google/cloud/compute/v1/region_instance_groups/rest/client.rb +2 -2
- data/lib/google/cloud/compute/v1/region_instance_groups/rest/service_stub.rb +127 -71
- data/lib/google/cloud/compute/v1/region_instance_groups.rb +3 -0
- data/lib/google/cloud/compute/v1/region_instances/rest/service_stub.rb +26 -9
- data/lib/google/cloud/compute/v1/region_instances.rb +3 -0
- data/lib/google/cloud/compute/v1/region_network_endpoint_groups/rest/client.rb +1 -1
- data/lib/google/cloud/compute/v1/region_network_endpoint_groups/rest/service_stub.rb +125 -66
- data/lib/google/cloud/compute/v1/region_network_endpoint_groups.rb +3 -0
- data/lib/google/cloud/compute/v1/region_network_firewall_policies/credentials.rb +52 -0
- data/lib/google/cloud/compute/v1/region_network_firewall_policies/rest/client.rb +1670 -0
- data/lib/google/cloud/compute/v1/region_network_firewall_policies/rest/service_stub.rb +1073 -0
- data/lib/google/cloud/compute/v1/region_network_firewall_policies/rest.rb +33 -0
- data/lib/google/cloud/compute/v1/region_network_firewall_policies.rb +47 -0
- data/lib/google/cloud/compute/v1/region_notification_endpoints/rest/client.rb +1 -1
- data/lib/google/cloud/compute/v1/region_notification_endpoints/rest/service_stub.rb +125 -66
- data/lib/google/cloud/compute/v1/region_notification_endpoints.rb +3 -0
- data/lib/google/cloud/compute/v1/region_operations/rest/client.rb +1 -1
- data/lib/google/cloud/compute/v1/region_operations/rest/service_stub.rb +127 -63
- data/lib/google/cloud/compute/v1/region_operations.rb +3 -0
- data/lib/google/cloud/compute/v1/region_security_policies/credentials.rb +52 -0
- data/lib/google/cloud/compute/v1/region_security_policies/rest/client.rb +676 -0
- data/lib/google/cloud/compute/v1/region_security_policies/rest/service_stub.rb +349 -0
- data/lib/google/cloud/compute/v1/region_security_policies/rest.rb +33 -0
- data/lib/google/cloud/compute/v1/region_security_policies.rb +47 -0
- data/lib/google/cloud/compute/v1/region_ssl_certificates/rest/client.rb +1 -1
- data/lib/google/cloud/compute/v1/region_ssl_certificates/rest/service_stub.rb +125 -66
- data/lib/google/cloud/compute/v1/region_ssl_certificates.rb +3 -0
- data/lib/google/cloud/compute/v1/region_target_http_proxies/rest/client.rb +1 -1
- data/lib/google/cloud/compute/v1/region_target_http_proxies/rest/service_stub.rb +159 -85
- data/lib/google/cloud/compute/v1/region_target_http_proxies.rb +3 -0
- data/lib/google/cloud/compute/v1/region_target_https_proxies/rest/client.rb +88 -1
- data/lib/google/cloud/compute/v1/region_target_https_proxies/rest/service_stub.rb +249 -99
- data/lib/google/cloud/compute/v1/region_target_https_proxies.rb +3 -0
- data/lib/google/cloud/compute/v1/region_url_maps/rest/client.rb +1 -1
- data/lib/google/cloud/compute/v1/region_url_maps/rest/service_stub.rb +228 -122
- data/lib/google/cloud/compute/v1/region_url_maps.rb +3 -0
- data/lib/google/cloud/compute/v1/regions/rest/client.rb +1 -1
- data/lib/google/cloud/compute/v1/regions/rest/service_stub.rb +57 -29
- data/lib/google/cloud/compute/v1/regions.rb +3 -0
- data/lib/google/cloud/compute/v1/reservations/rest/client.rb +2 -2
- data/lib/google/cloud/compute/v1/reservations/rest/service_stub.rb +327 -183
- data/lib/google/cloud/compute/v1/reservations.rb +3 -0
- data/lib/google/cloud/compute/v1/resource_policies/rest/client.rb +2 -2
- data/lib/google/cloud/compute/v1/resource_policies/rest/service_stub.rb +259 -143
- data/lib/google/cloud/compute/v1/resource_policies.rb +3 -0
- data/lib/google/cloud/compute/v1/routers/rest/client.rb +3 -3
- data/lib/google/cloud/compute/v1/routers/rest/service_stub.rb +326 -184
- data/lib/google/cloud/compute/v1/routers.rb +3 -0
- data/lib/google/cloud/compute/v1/routes/rest/client.rb +1 -1
- data/lib/google/cloud/compute/v1/routes/rest/service_stub.rb +121 -66
- data/lib/google/cloud/compute/v1/routes.rb +3 -0
- data/lib/google/cloud/compute/v1/security_policies/rest/client.rb +97 -5
- data/lib/google/cloud/compute/v1/security_policies/rest/service_stub.rb +368 -174
- data/lib/google/cloud/compute/v1/security_policies.rb +3 -0
- data/lib/google/cloud/compute/v1/service_attachments/rest/client.rb +2 -2
- data/lib/google/cloud/compute/v1/service_attachments/rest/service_stub.rb +293 -162
- data/lib/google/cloud/compute/v1/service_attachments.rb +3 -0
- data/lib/google/cloud/compute/v1/snapshots/rest/client.rb +1 -1
- data/lib/google/cloud/compute/v1/snapshots/rest/service_stub.rb +255 -138
- data/lib/google/cloud/compute/v1/snapshots.rb +3 -0
- data/lib/google/cloud/compute/v1/ssl_certificates/rest/client.rb +2 -2
- data/lib/google/cloud/compute/v1/ssl_certificates/rest/service_stub.rb +152 -89
- data/lib/google/cloud/compute/v1/ssl_certificates.rb +3 -0
- data/lib/google/cloud/compute/v1/ssl_policies/rest/client.rb +2 -2
- data/lib/google/cloud/compute/v1/ssl_policies/rest/service_stub.rb +185 -107
- data/lib/google/cloud/compute/v1/ssl_policies.rb +3 -0
- data/lib/google/cloud/compute/v1/subnetworks/rest/client.rb +3 -3
- data/lib/google/cloud/compute/v1/subnetworks/rest/service_stub.rb +392 -223
- data/lib/google/cloud/compute/v1/subnetworks.rb +3 -0
- data/lib/google/cloud/compute/v1/target_grpc_proxies/rest/client.rb +1 -1
- data/lib/google/cloud/compute/v1/target_grpc_proxies/rest/service_stub.rb +154 -85
- data/lib/google/cloud/compute/v1/target_grpc_proxies.rb +3 -0
- data/lib/google/cloud/compute/v1/target_http_proxies/rest/client.rb +2 -2
- data/lib/google/cloud/compute/v1/target_http_proxies/rest/service_stub.rb +218 -127
- data/lib/google/cloud/compute/v1/target_http_proxies.rb +3 -0
- data/lib/google/cloud/compute/v1/target_https_proxies/rest/client.rb +86 -2
- data/lib/google/cloud/compute/v1/target_https_proxies/rest/service_stub.rb +371 -178
- data/lib/google/cloud/compute/v1/target_https_proxies.rb +3 -0
- data/lib/google/cloud/compute/v1/target_instances/rest/client.rb +2 -2
- data/lib/google/cloud/compute/v1/target_instances/rest/service_stub.rb +156 -89
- data/lib/google/cloud/compute/v1/target_instances.rb +3 -0
- data/lib/google/cloud/compute/v1/target_pools/rest/client.rb +2 -2
- data/lib/google/cloud/compute/v1/target_pools/rest/service_stub.rb +361 -203
- data/lib/google/cloud/compute/v1/target_pools.rb +3 -0
- data/lib/google/cloud/compute/v1/target_ssl_proxies/rest/client.rb +85 -1
- data/lib/google/cloud/compute/v1/target_ssl_proxies/rest/service_stub.rb +307 -136
- data/lib/google/cloud/compute/v1/target_ssl_proxies.rb +3 -0
- data/lib/google/cloud/compute/v1/target_tcp_proxies/rest/client.rb +1 -1
- data/lib/google/cloud/compute/v1/target_tcp_proxies/rest/service_stub.rb +187 -104
- data/lib/google/cloud/compute/v1/target_tcp_proxies.rb +3 -0
- data/lib/google/cloud/compute/v1/target_vpn_gateways/rest/client.rb +2 -2
- data/lib/google/cloud/compute/v1/target_vpn_gateways/rest/service_stub.rb +156 -89
- data/lib/google/cloud/compute/v1/target_vpn_gateways.rb +3 -0
- data/lib/google/cloud/compute/v1/url_maps/rest/client.rb +2 -2
- data/lib/google/cloud/compute/v1/url_maps/rest/service_stub.rb +285 -164
- data/lib/google/cloud/compute/v1/url_maps.rb +3 -0
- data/lib/google/cloud/compute/v1/version.rb +1 -1
- data/lib/google/cloud/compute/v1/vpn_gateways/rest/client.rb +2 -2
- data/lib/google/cloud/compute/v1/vpn_gateways/rest/service_stub.rb +259 -143
- data/lib/google/cloud/compute/v1/vpn_gateways.rb +3 -0
- data/lib/google/cloud/compute/v1/vpn_tunnels/rest/client.rb +2 -2
- data/lib/google/cloud/compute/v1/vpn_tunnels/rest/service_stub.rb +156 -89
- data/lib/google/cloud/compute/v1/vpn_tunnels.rb +3 -0
- data/lib/google/cloud/compute/v1/zone_operations/rest/client.rb +1 -1
- data/lib/google/cloud/compute/v1/zone_operations/rest/service_stub.rb +127 -63
- data/lib/google/cloud/compute/v1/zone_operations.rb +3 -0
- data/lib/google/cloud/compute/v1/zones/rest/client.rb +1 -1
- data/lib/google/cloud/compute/v1/zones/rest/service_stub.rb +57 -29
- data/lib/google/cloud/compute/v1/zones.rb +3 -0
- data/lib/google/cloud/compute/v1.rb +4 -0
- data/proto_docs/google/cloud/compute/v1/compute.rb +1946 -229
- metadata +32 -12
@@ -55,10 +55,17 @@ module Google
|
|
55
55
|
def abandon_instances request_pb, options = nil
|
56
56
|
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
57
57
|
|
58
|
-
|
59
|
-
|
58
|
+
verb, uri, query_string_params, body = transcode_abandon_instances_request request_pb
|
59
|
+
query_string_params = if query_string_params.any?
|
60
|
+
query_string_params.to_h { |p| p.split("=", 2) }
|
61
|
+
else
|
62
|
+
{}
|
63
|
+
end
|
64
|
+
|
65
|
+
response = @client_stub.make_http_request(
|
66
|
+
verb,
|
60
67
|
uri: uri,
|
61
|
-
body: body,
|
68
|
+
body: body || "",
|
62
69
|
params: query_string_params,
|
63
70
|
options: options
|
64
71
|
)
|
@@ -68,22 +75,6 @@ module Google
|
|
68
75
|
result
|
69
76
|
end
|
70
77
|
|
71
|
-
##
|
72
|
-
# GRPC transcoding helper method for the abandon_instances REST call
|
73
|
-
#
|
74
|
-
# @param request_pb [::Google::Cloud::Compute::V1::AbandonInstancesRegionInstanceGroupManagerRequest]
|
75
|
-
# A request object representing the call parameters. Required.
|
76
|
-
# @return [Array(String, [String, nil], Hash{String => String})]
|
77
|
-
# Uri, Body, Query string parameters
|
78
|
-
def transcode_abandon_instances_request request_pb
|
79
|
-
uri = "/compute/v1/projects/#{request_pb.project}/regions/#{request_pb.region}/instanceGroupManagers/#{request_pb.instance_group_manager}/abandonInstances"
|
80
|
-
body = request_pb.region_instance_group_managers_abandon_instances_request_resource.to_json
|
81
|
-
query_string_params = {}
|
82
|
-
query_string_params["requestId"] = request_pb.request_id.to_s if request_pb.has_request_id?
|
83
|
-
|
84
|
-
[uri, body, query_string_params]
|
85
|
-
end
|
86
|
-
|
87
78
|
##
|
88
79
|
# Baseline implementation for the apply_updates_to_instances REST call
|
89
80
|
#
|
@@ -101,10 +92,18 @@ module Google
|
|
101
92
|
def apply_updates_to_instances request_pb, options = nil
|
102
93
|
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
103
94
|
|
104
|
-
uri,
|
105
|
-
|
95
|
+
verb, uri, query_string_params, body = transcode_apply_updates_to_instances_request request_pb
|
96
|
+
query_string_params = if query_string_params.any?
|
97
|
+
query_string_params.to_h { |p| p.split("=", 2) }
|
98
|
+
else
|
99
|
+
{}
|
100
|
+
end
|
101
|
+
|
102
|
+
response = @client_stub.make_http_request(
|
103
|
+
verb,
|
106
104
|
uri: uri,
|
107
|
-
body: body,
|
105
|
+
body: body || "",
|
106
|
+
params: query_string_params,
|
108
107
|
options: options
|
109
108
|
)
|
110
109
|
result = ::Google::Cloud::Compute::V1::Operation.decode_json response.body, ignore_unknown_fields: true
|
@@ -113,21 +112,6 @@ module Google
|
|
113
112
|
result
|
114
113
|
end
|
115
114
|
|
116
|
-
##
|
117
|
-
# GRPC transcoding helper method for the apply_updates_to_instances REST call
|
118
|
-
#
|
119
|
-
# @param request_pb [::Google::Cloud::Compute::V1::ApplyUpdatesToInstancesRegionInstanceGroupManagerRequest]
|
120
|
-
# A request object representing the call parameters. Required.
|
121
|
-
# @return [Array(String, [String, nil], Hash{String => String})]
|
122
|
-
# Uri, Body, Query string parameters
|
123
|
-
def transcode_apply_updates_to_instances_request request_pb
|
124
|
-
uri = "/compute/v1/projects/#{request_pb.project}/regions/#{request_pb.region}/instanceGroupManagers/#{request_pb.instance_group_manager}/applyUpdatesToInstances"
|
125
|
-
body = request_pb.region_instance_group_managers_apply_updates_request_resource.to_json
|
126
|
-
query_string_params = {}
|
127
|
-
|
128
|
-
[uri, body, query_string_params]
|
129
|
-
end
|
130
|
-
|
131
115
|
##
|
132
116
|
# Baseline implementation for the create_instances REST call
|
133
117
|
#
|
@@ -145,10 +129,17 @@ module Google
|
|
145
129
|
def create_instances request_pb, options = nil
|
146
130
|
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
147
131
|
|
148
|
-
|
149
|
-
|
132
|
+
verb, uri, query_string_params, body = transcode_create_instances_request request_pb
|
133
|
+
query_string_params = if query_string_params.any?
|
134
|
+
query_string_params.to_h { |p| p.split("=", 2) }
|
135
|
+
else
|
136
|
+
{}
|
137
|
+
end
|
138
|
+
|
139
|
+
response = @client_stub.make_http_request(
|
140
|
+
verb,
|
150
141
|
uri: uri,
|
151
|
-
body: body,
|
142
|
+
body: body || "",
|
152
143
|
params: query_string_params,
|
153
144
|
options: options
|
154
145
|
)
|
@@ -158,22 +149,6 @@ module Google
|
|
158
149
|
result
|
159
150
|
end
|
160
151
|
|
161
|
-
##
|
162
|
-
# GRPC transcoding helper method for the create_instances REST call
|
163
|
-
#
|
164
|
-
# @param request_pb [::Google::Cloud::Compute::V1::CreateInstancesRegionInstanceGroupManagerRequest]
|
165
|
-
# A request object representing the call parameters. Required.
|
166
|
-
# @return [Array(String, [String, nil], Hash{String => String})]
|
167
|
-
# Uri, Body, Query string parameters
|
168
|
-
def transcode_create_instances_request request_pb
|
169
|
-
uri = "/compute/v1/projects/#{request_pb.project}/regions/#{request_pb.region}/instanceGroupManagers/#{request_pb.instance_group_manager}/createInstances"
|
170
|
-
body = request_pb.region_instance_group_managers_create_instances_request_resource.to_json
|
171
|
-
query_string_params = {}
|
172
|
-
query_string_params["requestId"] = request_pb.request_id.to_s if request_pb.has_request_id?
|
173
|
-
|
174
|
-
[uri, body, query_string_params]
|
175
|
-
end
|
176
|
-
|
177
152
|
##
|
178
153
|
# Baseline implementation for the delete REST call
|
179
154
|
#
|
@@ -191,9 +166,17 @@ module Google
|
|
191
166
|
def delete request_pb, options = nil
|
192
167
|
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
193
168
|
|
194
|
-
|
195
|
-
|
169
|
+
verb, uri, query_string_params, body = transcode_delete_request request_pb
|
170
|
+
query_string_params = if query_string_params.any?
|
171
|
+
query_string_params.to_h { |p| p.split("=", 2) }
|
172
|
+
else
|
173
|
+
{}
|
174
|
+
end
|
175
|
+
|
176
|
+
response = @client_stub.make_http_request(
|
177
|
+
verb,
|
196
178
|
uri: uri,
|
179
|
+
body: body || "",
|
197
180
|
params: query_string_params,
|
198
181
|
options: options
|
199
182
|
)
|
@@ -203,22 +186,6 @@ module Google
|
|
203
186
|
result
|
204
187
|
end
|
205
188
|
|
206
|
-
##
|
207
|
-
# GRPC transcoding helper method for the delete REST call
|
208
|
-
#
|
209
|
-
# @param request_pb [::Google::Cloud::Compute::V1::DeleteRegionInstanceGroupManagerRequest]
|
210
|
-
# A request object representing the call parameters. Required.
|
211
|
-
# @return [Array(String, [String, nil], Hash{String => String})]
|
212
|
-
# Uri, Body, Query string parameters
|
213
|
-
def transcode_delete_request request_pb
|
214
|
-
uri = "/compute/v1/projects/#{request_pb.project}/regions/#{request_pb.region}/instanceGroupManagers/#{request_pb.instance_group_manager}"
|
215
|
-
body = nil
|
216
|
-
query_string_params = {}
|
217
|
-
query_string_params["requestId"] = request_pb.request_id.to_s if request_pb.has_request_id?
|
218
|
-
|
219
|
-
[uri, body, query_string_params]
|
220
|
-
end
|
221
|
-
|
222
189
|
##
|
223
190
|
# Baseline implementation for the delete_instances REST call
|
224
191
|
#
|
@@ -236,10 +203,17 @@ module Google
|
|
236
203
|
def delete_instances request_pb, options = nil
|
237
204
|
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
238
205
|
|
239
|
-
|
240
|
-
|
206
|
+
verb, uri, query_string_params, body = transcode_delete_instances_request request_pb
|
207
|
+
query_string_params = if query_string_params.any?
|
208
|
+
query_string_params.to_h { |p| p.split("=", 2) }
|
209
|
+
else
|
210
|
+
{}
|
211
|
+
end
|
212
|
+
|
213
|
+
response = @client_stub.make_http_request(
|
214
|
+
verb,
|
241
215
|
uri: uri,
|
242
|
-
body: body,
|
216
|
+
body: body || "",
|
243
217
|
params: query_string_params,
|
244
218
|
options: options
|
245
219
|
)
|
@@ -249,22 +223,6 @@ module Google
|
|
249
223
|
result
|
250
224
|
end
|
251
225
|
|
252
|
-
##
|
253
|
-
# GRPC transcoding helper method for the delete_instances REST call
|
254
|
-
#
|
255
|
-
# @param request_pb [::Google::Cloud::Compute::V1::DeleteInstancesRegionInstanceGroupManagerRequest]
|
256
|
-
# A request object representing the call parameters. Required.
|
257
|
-
# @return [Array(String, [String, nil], Hash{String => String})]
|
258
|
-
# Uri, Body, Query string parameters
|
259
|
-
def transcode_delete_instances_request request_pb
|
260
|
-
uri = "/compute/v1/projects/#{request_pb.project}/regions/#{request_pb.region}/instanceGroupManagers/#{request_pb.instance_group_manager}/deleteInstances"
|
261
|
-
body = request_pb.region_instance_group_managers_delete_instances_request_resource.to_json
|
262
|
-
query_string_params = {}
|
263
|
-
query_string_params["requestId"] = request_pb.request_id.to_s if request_pb.has_request_id?
|
264
|
-
|
265
|
-
[uri, body, query_string_params]
|
266
|
-
end
|
267
|
-
|
268
226
|
##
|
269
227
|
# Baseline implementation for the delete_per_instance_configs REST call
|
270
228
|
#
|
@@ -282,10 +240,18 @@ module Google
|
|
282
240
|
def delete_per_instance_configs request_pb, options = nil
|
283
241
|
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
284
242
|
|
285
|
-
uri,
|
286
|
-
|
243
|
+
verb, uri, query_string_params, body = transcode_delete_per_instance_configs_request request_pb
|
244
|
+
query_string_params = if query_string_params.any?
|
245
|
+
query_string_params.to_h { |p| p.split("=", 2) }
|
246
|
+
else
|
247
|
+
{}
|
248
|
+
end
|
249
|
+
|
250
|
+
response = @client_stub.make_http_request(
|
251
|
+
verb,
|
287
252
|
uri: uri,
|
288
|
-
body: body,
|
253
|
+
body: body || "",
|
254
|
+
params: query_string_params,
|
289
255
|
options: options
|
290
256
|
)
|
291
257
|
result = ::Google::Cloud::Compute::V1::Operation.decode_json response.body, ignore_unknown_fields: true
|
@@ -294,21 +260,6 @@ module Google
|
|
294
260
|
result
|
295
261
|
end
|
296
262
|
|
297
|
-
##
|
298
|
-
# GRPC transcoding helper method for the delete_per_instance_configs REST call
|
299
|
-
#
|
300
|
-
# @param request_pb [::Google::Cloud::Compute::V1::DeletePerInstanceConfigsRegionInstanceGroupManagerRequest]
|
301
|
-
# A request object representing the call parameters. Required.
|
302
|
-
# @return [Array(String, [String, nil], Hash{String => String})]
|
303
|
-
# Uri, Body, Query string parameters
|
304
|
-
def transcode_delete_per_instance_configs_request request_pb
|
305
|
-
uri = "/compute/v1/projects/#{request_pb.project}/regions/#{request_pb.region}/instanceGroupManagers/#{request_pb.instance_group_manager}/deletePerInstanceConfigs"
|
306
|
-
body = request_pb.region_instance_group_manager_delete_instance_config_req_resource.to_json
|
307
|
-
query_string_params = {}
|
308
|
-
|
309
|
-
[uri, body, query_string_params]
|
310
|
-
end
|
311
|
-
|
312
263
|
##
|
313
264
|
# Baseline implementation for the get REST call
|
314
265
|
#
|
@@ -326,9 +277,18 @@ module Google
|
|
326
277
|
def get request_pb, options = nil
|
327
278
|
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
328
279
|
|
329
|
-
uri,
|
330
|
-
|
280
|
+
verb, uri, query_string_params, body = transcode_get_request request_pb
|
281
|
+
query_string_params = if query_string_params.any?
|
282
|
+
query_string_params.to_h { |p| p.split("=", 2) }
|
283
|
+
else
|
284
|
+
{}
|
285
|
+
end
|
286
|
+
|
287
|
+
response = @client_stub.make_http_request(
|
288
|
+
verb,
|
331
289
|
uri: uri,
|
290
|
+
body: body || "",
|
291
|
+
params: query_string_params,
|
332
292
|
options: options
|
333
293
|
)
|
334
294
|
result = ::Google::Cloud::Compute::V1::InstanceGroupManager.decode_json response.body, ignore_unknown_fields: true
|
@@ -337,21 +297,6 @@ module Google
|
|
337
297
|
result
|
338
298
|
end
|
339
299
|
|
340
|
-
##
|
341
|
-
# GRPC transcoding helper method for the get REST call
|
342
|
-
#
|
343
|
-
# @param request_pb [::Google::Cloud::Compute::V1::GetRegionInstanceGroupManagerRequest]
|
344
|
-
# A request object representing the call parameters. Required.
|
345
|
-
# @return [Array(String, [String, nil], Hash{String => String})]
|
346
|
-
# Uri, Body, Query string parameters
|
347
|
-
def transcode_get_request request_pb
|
348
|
-
uri = "/compute/v1/projects/#{request_pb.project}/regions/#{request_pb.region}/instanceGroupManagers/#{request_pb.instance_group_manager}"
|
349
|
-
body = nil
|
350
|
-
query_string_params = {}
|
351
|
-
|
352
|
-
[uri, body, query_string_params]
|
353
|
-
end
|
354
|
-
|
355
300
|
##
|
356
301
|
# Baseline implementation for the insert REST call
|
357
302
|
#
|
@@ -369,10 +314,17 @@ module Google
|
|
369
314
|
def insert request_pb, options = nil
|
370
315
|
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
371
316
|
|
372
|
-
|
373
|
-
|
317
|
+
verb, uri, query_string_params, body = transcode_insert_request request_pb
|
318
|
+
query_string_params = if query_string_params.any?
|
319
|
+
query_string_params.to_h { |p| p.split("=", 2) }
|
320
|
+
else
|
321
|
+
{}
|
322
|
+
end
|
323
|
+
|
324
|
+
response = @client_stub.make_http_request(
|
325
|
+
verb,
|
374
326
|
uri: uri,
|
375
|
-
body: body,
|
327
|
+
body: body || "",
|
376
328
|
params: query_string_params,
|
377
329
|
options: options
|
378
330
|
)
|
@@ -382,22 +334,6 @@ module Google
|
|
382
334
|
result
|
383
335
|
end
|
384
336
|
|
385
|
-
##
|
386
|
-
# GRPC transcoding helper method for the insert REST call
|
387
|
-
#
|
388
|
-
# @param request_pb [::Google::Cloud::Compute::V1::InsertRegionInstanceGroupManagerRequest]
|
389
|
-
# A request object representing the call parameters. Required.
|
390
|
-
# @return [Array(String, [String, nil], Hash{String => String})]
|
391
|
-
# Uri, Body, Query string parameters
|
392
|
-
def transcode_insert_request request_pb
|
393
|
-
uri = "/compute/v1/projects/#{request_pb.project}/regions/#{request_pb.region}/instanceGroupManagers"
|
394
|
-
body = request_pb.instance_group_manager_resource.to_json
|
395
|
-
query_string_params = {}
|
396
|
-
query_string_params["requestId"] = request_pb.request_id.to_s if request_pb.has_request_id?
|
397
|
-
|
398
|
-
[uri, body, query_string_params]
|
399
|
-
end
|
400
|
-
|
401
337
|
##
|
402
338
|
# Baseline implementation for the list REST call
|
403
339
|
#
|
@@ -415,9 +351,17 @@ module Google
|
|
415
351
|
def list request_pb, options = nil
|
416
352
|
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
417
353
|
|
418
|
-
|
419
|
-
|
354
|
+
verb, uri, query_string_params, body = transcode_list_request request_pb
|
355
|
+
query_string_params = if query_string_params.any?
|
356
|
+
query_string_params.to_h { |p| p.split("=", 2) }
|
357
|
+
else
|
358
|
+
{}
|
359
|
+
end
|
360
|
+
|
361
|
+
response = @client_stub.make_http_request(
|
362
|
+
verb,
|
420
363
|
uri: uri,
|
364
|
+
body: body || "",
|
421
365
|
params: query_string_params,
|
422
366
|
options: options
|
423
367
|
)
|
@@ -427,26 +371,6 @@ module Google
|
|
427
371
|
result
|
428
372
|
end
|
429
373
|
|
430
|
-
##
|
431
|
-
# GRPC transcoding helper method for the list REST call
|
432
|
-
#
|
433
|
-
# @param request_pb [::Google::Cloud::Compute::V1::ListRegionInstanceGroupManagersRequest]
|
434
|
-
# A request object representing the call parameters. Required.
|
435
|
-
# @return [Array(String, [String, nil], Hash{String => String})]
|
436
|
-
# Uri, Body, Query string parameters
|
437
|
-
def transcode_list_request request_pb
|
438
|
-
uri = "/compute/v1/projects/#{request_pb.project}/regions/#{request_pb.region}/instanceGroupManagers"
|
439
|
-
body = nil
|
440
|
-
query_string_params = {}
|
441
|
-
query_string_params["filter"] = request_pb.filter.to_s if request_pb.has_filter?
|
442
|
-
query_string_params["maxResults"] = request_pb.max_results.to_s if request_pb.has_max_results?
|
443
|
-
query_string_params["orderBy"] = request_pb.order_by.to_s if request_pb.has_order_by?
|
444
|
-
query_string_params["pageToken"] = request_pb.page_token.to_s if request_pb.has_page_token?
|
445
|
-
query_string_params["returnPartialSuccess"] = request_pb.return_partial_success.to_s if request_pb.has_return_partial_success?
|
446
|
-
|
447
|
-
[uri, body, query_string_params]
|
448
|
-
end
|
449
|
-
|
450
374
|
##
|
451
375
|
# Baseline implementation for the list_errors REST call
|
452
376
|
#
|
@@ -464,9 +388,17 @@ module Google
|
|
464
388
|
def list_errors request_pb, options = nil
|
465
389
|
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
466
390
|
|
467
|
-
|
468
|
-
|
391
|
+
verb, uri, query_string_params, body = transcode_list_errors_request request_pb
|
392
|
+
query_string_params = if query_string_params.any?
|
393
|
+
query_string_params.to_h { |p| p.split("=", 2) }
|
394
|
+
else
|
395
|
+
{}
|
396
|
+
end
|
397
|
+
|
398
|
+
response = @client_stub.make_http_request(
|
399
|
+
verb,
|
469
400
|
uri: uri,
|
401
|
+
body: body || "",
|
470
402
|
params: query_string_params,
|
471
403
|
options: options
|
472
404
|
)
|
@@ -476,26 +408,6 @@ module Google
|
|
476
408
|
result
|
477
409
|
end
|
478
410
|
|
479
|
-
##
|
480
|
-
# GRPC transcoding helper method for the list_errors REST call
|
481
|
-
#
|
482
|
-
# @param request_pb [::Google::Cloud::Compute::V1::ListErrorsRegionInstanceGroupManagersRequest]
|
483
|
-
# A request object representing the call parameters. Required.
|
484
|
-
# @return [Array(String, [String, nil], Hash{String => String})]
|
485
|
-
# Uri, Body, Query string parameters
|
486
|
-
def transcode_list_errors_request request_pb
|
487
|
-
uri = "/compute/v1/projects/#{request_pb.project}/regions/#{request_pb.region}/instanceGroupManagers/#{request_pb.instance_group_manager}/listErrors"
|
488
|
-
body = nil
|
489
|
-
query_string_params = {}
|
490
|
-
query_string_params["filter"] = request_pb.filter.to_s if request_pb.has_filter?
|
491
|
-
query_string_params["maxResults"] = request_pb.max_results.to_s if request_pb.has_max_results?
|
492
|
-
query_string_params["orderBy"] = request_pb.order_by.to_s if request_pb.has_order_by?
|
493
|
-
query_string_params["pageToken"] = request_pb.page_token.to_s if request_pb.has_page_token?
|
494
|
-
query_string_params["returnPartialSuccess"] = request_pb.return_partial_success.to_s if request_pb.has_return_partial_success?
|
495
|
-
|
496
|
-
[uri, body, query_string_params]
|
497
|
-
end
|
498
|
-
|
499
411
|
##
|
500
412
|
# Baseline implementation for the list_managed_instances REST call
|
501
413
|
#
|
@@ -513,9 +425,17 @@ module Google
|
|
513
425
|
def list_managed_instances request_pb, options = nil
|
514
426
|
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
515
427
|
|
516
|
-
|
517
|
-
|
428
|
+
verb, uri, query_string_params, body = transcode_list_managed_instances_request request_pb
|
429
|
+
query_string_params = if query_string_params.any?
|
430
|
+
query_string_params.to_h { |p| p.split("=", 2) }
|
431
|
+
else
|
432
|
+
{}
|
433
|
+
end
|
434
|
+
|
435
|
+
response = @client_stub.make_http_request(
|
436
|
+
verb,
|
518
437
|
uri: uri,
|
438
|
+
body: body || "",
|
519
439
|
params: query_string_params,
|
520
440
|
options: options
|
521
441
|
)
|
@@ -525,26 +445,6 @@ module Google
|
|
525
445
|
result
|
526
446
|
end
|
527
447
|
|
528
|
-
##
|
529
|
-
# GRPC transcoding helper method for the list_managed_instances REST call
|
530
|
-
#
|
531
|
-
# @param request_pb [::Google::Cloud::Compute::V1::ListManagedInstancesRegionInstanceGroupManagersRequest]
|
532
|
-
# A request object representing the call parameters. Required.
|
533
|
-
# @return [Array(String, [String, nil], Hash{String => String})]
|
534
|
-
# Uri, Body, Query string parameters
|
535
|
-
def transcode_list_managed_instances_request request_pb
|
536
|
-
uri = "/compute/v1/projects/#{request_pb.project}/regions/#{request_pb.region}/instanceGroupManagers/#{request_pb.instance_group_manager}/listManagedInstances"
|
537
|
-
body = nil
|
538
|
-
query_string_params = {}
|
539
|
-
query_string_params["filter"] = request_pb.filter.to_s if request_pb.has_filter?
|
540
|
-
query_string_params["maxResults"] = request_pb.max_results.to_s if request_pb.has_max_results?
|
541
|
-
query_string_params["orderBy"] = request_pb.order_by.to_s if request_pb.has_order_by?
|
542
|
-
query_string_params["pageToken"] = request_pb.page_token.to_s if request_pb.has_page_token?
|
543
|
-
query_string_params["returnPartialSuccess"] = request_pb.return_partial_success.to_s if request_pb.has_return_partial_success?
|
544
|
-
|
545
|
-
[uri, body, query_string_params]
|
546
|
-
end
|
547
|
-
|
548
448
|
##
|
549
449
|
# Baseline implementation for the list_per_instance_configs REST call
|
550
450
|
#
|
@@ -562,9 +462,17 @@ module Google
|
|
562
462
|
def list_per_instance_configs request_pb, options = nil
|
563
463
|
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
564
464
|
|
565
|
-
|
566
|
-
|
465
|
+
verb, uri, query_string_params, body = transcode_list_per_instance_configs_request request_pb
|
466
|
+
query_string_params = if query_string_params.any?
|
467
|
+
query_string_params.to_h { |p| p.split("=", 2) }
|
468
|
+
else
|
469
|
+
{}
|
470
|
+
end
|
471
|
+
|
472
|
+
response = @client_stub.make_http_request(
|
473
|
+
verb,
|
567
474
|
uri: uri,
|
475
|
+
body: body || "",
|
568
476
|
params: query_string_params,
|
569
477
|
options: options
|
570
478
|
)
|
@@ -574,26 +482,6 @@ module Google
|
|
574
482
|
result
|
575
483
|
end
|
576
484
|
|
577
|
-
##
|
578
|
-
# GRPC transcoding helper method for the list_per_instance_configs REST call
|
579
|
-
#
|
580
|
-
# @param request_pb [::Google::Cloud::Compute::V1::ListPerInstanceConfigsRegionInstanceGroupManagersRequest]
|
581
|
-
# A request object representing the call parameters. Required.
|
582
|
-
# @return [Array(String, [String, nil], Hash{String => String})]
|
583
|
-
# Uri, Body, Query string parameters
|
584
|
-
def transcode_list_per_instance_configs_request request_pb
|
585
|
-
uri = "/compute/v1/projects/#{request_pb.project}/regions/#{request_pb.region}/instanceGroupManagers/#{request_pb.instance_group_manager}/listPerInstanceConfigs"
|
586
|
-
body = nil
|
587
|
-
query_string_params = {}
|
588
|
-
query_string_params["filter"] = request_pb.filter.to_s if request_pb.has_filter?
|
589
|
-
query_string_params["maxResults"] = request_pb.max_results.to_s if request_pb.has_max_results?
|
590
|
-
query_string_params["orderBy"] = request_pb.order_by.to_s if request_pb.has_order_by?
|
591
|
-
query_string_params["pageToken"] = request_pb.page_token.to_s if request_pb.has_page_token?
|
592
|
-
query_string_params["returnPartialSuccess"] = request_pb.return_partial_success.to_s if request_pb.has_return_partial_success?
|
593
|
-
|
594
|
-
[uri, body, query_string_params]
|
595
|
-
end
|
596
|
-
|
597
485
|
##
|
598
486
|
# Baseline implementation for the patch REST call
|
599
487
|
#
|
@@ -611,10 +499,17 @@ module Google
|
|
611
499
|
def patch request_pb, options = nil
|
612
500
|
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
613
501
|
|
614
|
-
|
615
|
-
|
502
|
+
verb, uri, query_string_params, body = transcode_patch_request request_pb
|
503
|
+
query_string_params = if query_string_params.any?
|
504
|
+
query_string_params.to_h { |p| p.split("=", 2) }
|
505
|
+
else
|
506
|
+
{}
|
507
|
+
end
|
508
|
+
|
509
|
+
response = @client_stub.make_http_request(
|
510
|
+
verb,
|
616
511
|
uri: uri,
|
617
|
-
body: body,
|
512
|
+
body: body || "",
|
618
513
|
params: query_string_params,
|
619
514
|
options: options
|
620
515
|
)
|
@@ -624,22 +519,6 @@ module Google
|
|
624
519
|
result
|
625
520
|
end
|
626
521
|
|
627
|
-
##
|
628
|
-
# GRPC transcoding helper method for the patch REST call
|
629
|
-
#
|
630
|
-
# @param request_pb [::Google::Cloud::Compute::V1::PatchRegionInstanceGroupManagerRequest]
|
631
|
-
# A request object representing the call parameters. Required.
|
632
|
-
# @return [Array(String, [String, nil], Hash{String => String})]
|
633
|
-
# Uri, Body, Query string parameters
|
634
|
-
def transcode_patch_request request_pb
|
635
|
-
uri = "/compute/v1/projects/#{request_pb.project}/regions/#{request_pb.region}/instanceGroupManagers/#{request_pb.instance_group_manager}"
|
636
|
-
body = request_pb.instance_group_manager_resource.to_json
|
637
|
-
query_string_params = {}
|
638
|
-
query_string_params["requestId"] = request_pb.request_id.to_s if request_pb.has_request_id?
|
639
|
-
|
640
|
-
[uri, body, query_string_params]
|
641
|
-
end
|
642
|
-
|
643
522
|
##
|
644
523
|
# Baseline implementation for the patch_per_instance_configs REST call
|
645
524
|
#
|
@@ -657,10 +536,17 @@ module Google
|
|
657
536
|
def patch_per_instance_configs request_pb, options = nil
|
658
537
|
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
659
538
|
|
660
|
-
|
661
|
-
|
539
|
+
verb, uri, query_string_params, body = transcode_patch_per_instance_configs_request request_pb
|
540
|
+
query_string_params = if query_string_params.any?
|
541
|
+
query_string_params.to_h { |p| p.split("=", 2) }
|
542
|
+
else
|
543
|
+
{}
|
544
|
+
end
|
545
|
+
|
546
|
+
response = @client_stub.make_http_request(
|
547
|
+
verb,
|
662
548
|
uri: uri,
|
663
|
-
body: body,
|
549
|
+
body: body || "",
|
664
550
|
params: query_string_params,
|
665
551
|
options: options
|
666
552
|
)
|
@@ -670,22 +556,6 @@ module Google
|
|
670
556
|
result
|
671
557
|
end
|
672
558
|
|
673
|
-
##
|
674
|
-
# GRPC transcoding helper method for the patch_per_instance_configs REST call
|
675
|
-
#
|
676
|
-
# @param request_pb [::Google::Cloud::Compute::V1::PatchPerInstanceConfigsRegionInstanceGroupManagerRequest]
|
677
|
-
# A request object representing the call parameters. Required.
|
678
|
-
# @return [Array(String, [String, nil], Hash{String => String})]
|
679
|
-
# Uri, Body, Query string parameters
|
680
|
-
def transcode_patch_per_instance_configs_request request_pb
|
681
|
-
uri = "/compute/v1/projects/#{request_pb.project}/regions/#{request_pb.region}/instanceGroupManagers/#{request_pb.instance_group_manager}/patchPerInstanceConfigs"
|
682
|
-
body = request_pb.region_instance_group_manager_patch_instance_config_req_resource.to_json
|
683
|
-
query_string_params = {}
|
684
|
-
query_string_params["requestId"] = request_pb.request_id.to_s if request_pb.has_request_id?
|
685
|
-
|
686
|
-
[uri, body, query_string_params]
|
687
|
-
end
|
688
|
-
|
689
559
|
##
|
690
560
|
# Baseline implementation for the recreate_instances REST call
|
691
561
|
#
|
@@ -703,10 +573,17 @@ module Google
|
|
703
573
|
def recreate_instances request_pb, options = nil
|
704
574
|
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
705
575
|
|
706
|
-
|
707
|
-
|
576
|
+
verb, uri, query_string_params, body = transcode_recreate_instances_request request_pb
|
577
|
+
query_string_params = if query_string_params.any?
|
578
|
+
query_string_params.to_h { |p| p.split("=", 2) }
|
579
|
+
else
|
580
|
+
{}
|
581
|
+
end
|
582
|
+
|
583
|
+
response = @client_stub.make_http_request(
|
584
|
+
verb,
|
708
585
|
uri: uri,
|
709
|
-
body: body,
|
586
|
+
body: body || "",
|
710
587
|
params: query_string_params,
|
711
588
|
options: options
|
712
589
|
)
|
@@ -716,22 +593,6 @@ module Google
|
|
716
593
|
result
|
717
594
|
end
|
718
595
|
|
719
|
-
##
|
720
|
-
# GRPC transcoding helper method for the recreate_instances REST call
|
721
|
-
#
|
722
|
-
# @param request_pb [::Google::Cloud::Compute::V1::RecreateInstancesRegionInstanceGroupManagerRequest]
|
723
|
-
# A request object representing the call parameters. Required.
|
724
|
-
# @return [Array(String, [String, nil], Hash{String => String})]
|
725
|
-
# Uri, Body, Query string parameters
|
726
|
-
def transcode_recreate_instances_request request_pb
|
727
|
-
uri = "/compute/v1/projects/#{request_pb.project}/regions/#{request_pb.region}/instanceGroupManagers/#{request_pb.instance_group_manager}/recreateInstances"
|
728
|
-
body = request_pb.region_instance_group_managers_recreate_request_resource.to_json
|
729
|
-
query_string_params = {}
|
730
|
-
query_string_params["requestId"] = request_pb.request_id.to_s if request_pb.has_request_id?
|
731
|
-
|
732
|
-
[uri, body, query_string_params]
|
733
|
-
end
|
734
|
-
|
735
596
|
##
|
736
597
|
# Baseline implementation for the resize REST call
|
737
598
|
#
|
@@ -749,9 +610,17 @@ module Google
|
|
749
610
|
def resize request_pb, options = nil
|
750
611
|
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
751
612
|
|
752
|
-
|
753
|
-
|
613
|
+
verb, uri, query_string_params, body = transcode_resize_request request_pb
|
614
|
+
query_string_params = if query_string_params.any?
|
615
|
+
query_string_params.to_h { |p| p.split("=", 2) }
|
616
|
+
else
|
617
|
+
{}
|
618
|
+
end
|
619
|
+
|
620
|
+
response = @client_stub.make_http_request(
|
621
|
+
verb,
|
754
622
|
uri: uri,
|
623
|
+
body: body || "",
|
755
624
|
params: query_string_params,
|
756
625
|
options: options
|
757
626
|
)
|
@@ -761,23 +630,6 @@ module Google
|
|
761
630
|
result
|
762
631
|
end
|
763
632
|
|
764
|
-
##
|
765
|
-
# GRPC transcoding helper method for the resize REST call
|
766
|
-
#
|
767
|
-
# @param request_pb [::Google::Cloud::Compute::V1::ResizeRegionInstanceGroupManagerRequest]
|
768
|
-
# A request object representing the call parameters. Required.
|
769
|
-
# @return [Array(String, [String, nil], Hash{String => String})]
|
770
|
-
# Uri, Body, Query string parameters
|
771
|
-
def transcode_resize_request request_pb
|
772
|
-
uri = "/compute/v1/projects/#{request_pb.project}/regions/#{request_pb.region}/instanceGroupManagers/#{request_pb.instance_group_manager}/resize"
|
773
|
-
body = nil
|
774
|
-
query_string_params = {}
|
775
|
-
query_string_params["requestId"] = request_pb.request_id.to_s if request_pb.has_request_id?
|
776
|
-
query_string_params["size"] = request_pb.size.to_s
|
777
|
-
|
778
|
-
[uri, body, query_string_params]
|
779
|
-
end
|
780
|
-
|
781
633
|
##
|
782
634
|
# Baseline implementation for the set_instance_template REST call
|
783
635
|
#
|
@@ -795,10 +647,17 @@ module Google
|
|
795
647
|
def set_instance_template request_pb, options = nil
|
796
648
|
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
797
649
|
|
798
|
-
|
799
|
-
|
650
|
+
verb, uri, query_string_params, body = transcode_set_instance_template_request request_pb
|
651
|
+
query_string_params = if query_string_params.any?
|
652
|
+
query_string_params.to_h { |p| p.split("=", 2) }
|
653
|
+
else
|
654
|
+
{}
|
655
|
+
end
|
656
|
+
|
657
|
+
response = @client_stub.make_http_request(
|
658
|
+
verb,
|
800
659
|
uri: uri,
|
801
|
-
body: body,
|
660
|
+
body: body || "",
|
802
661
|
params: query_string_params,
|
803
662
|
options: options
|
804
663
|
)
|
@@ -808,22 +667,6 @@ module Google
|
|
808
667
|
result
|
809
668
|
end
|
810
669
|
|
811
|
-
##
|
812
|
-
# GRPC transcoding helper method for the set_instance_template REST call
|
813
|
-
#
|
814
|
-
# @param request_pb [::Google::Cloud::Compute::V1::SetInstanceTemplateRegionInstanceGroupManagerRequest]
|
815
|
-
# A request object representing the call parameters. Required.
|
816
|
-
# @return [Array(String, [String, nil], Hash{String => String})]
|
817
|
-
# Uri, Body, Query string parameters
|
818
|
-
def transcode_set_instance_template_request request_pb
|
819
|
-
uri = "/compute/v1/projects/#{request_pb.project}/regions/#{request_pb.region}/instanceGroupManagers/#{request_pb.instance_group_manager}/setInstanceTemplate"
|
820
|
-
body = request_pb.region_instance_group_managers_set_template_request_resource.to_json
|
821
|
-
query_string_params = {}
|
822
|
-
query_string_params["requestId"] = request_pb.request_id.to_s if request_pb.has_request_id?
|
823
|
-
|
824
|
-
[uri, body, query_string_params]
|
825
|
-
end
|
826
|
-
|
827
670
|
##
|
828
671
|
# Baseline implementation for the set_target_pools REST call
|
829
672
|
#
|
@@ -841,10 +684,17 @@ module Google
|
|
841
684
|
def set_target_pools request_pb, options = nil
|
842
685
|
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
843
686
|
|
844
|
-
|
845
|
-
|
687
|
+
verb, uri, query_string_params, body = transcode_set_target_pools_request request_pb
|
688
|
+
query_string_params = if query_string_params.any?
|
689
|
+
query_string_params.to_h { |p| p.split("=", 2) }
|
690
|
+
else
|
691
|
+
{}
|
692
|
+
end
|
693
|
+
|
694
|
+
response = @client_stub.make_http_request(
|
695
|
+
verb,
|
846
696
|
uri: uri,
|
847
|
-
body: body,
|
697
|
+
body: body || "",
|
848
698
|
params: query_string_params,
|
849
699
|
options: options
|
850
700
|
)
|
@@ -854,22 +704,6 @@ module Google
|
|
854
704
|
result
|
855
705
|
end
|
856
706
|
|
857
|
-
##
|
858
|
-
# GRPC transcoding helper method for the set_target_pools REST call
|
859
|
-
#
|
860
|
-
# @param request_pb [::Google::Cloud::Compute::V1::SetTargetPoolsRegionInstanceGroupManagerRequest]
|
861
|
-
# A request object representing the call parameters. Required.
|
862
|
-
# @return [Array(String, [String, nil], Hash{String => String})]
|
863
|
-
# Uri, Body, Query string parameters
|
864
|
-
def transcode_set_target_pools_request request_pb
|
865
|
-
uri = "/compute/v1/projects/#{request_pb.project}/regions/#{request_pb.region}/instanceGroupManagers/#{request_pb.instance_group_manager}/setTargetPools"
|
866
|
-
body = request_pb.region_instance_group_managers_set_target_pools_request_resource.to_json
|
867
|
-
query_string_params = {}
|
868
|
-
query_string_params["requestId"] = request_pb.request_id.to_s if request_pb.has_request_id?
|
869
|
-
|
870
|
-
[uri, body, query_string_params]
|
871
|
-
end
|
872
|
-
|
873
707
|
##
|
874
708
|
# Baseline implementation for the update_per_instance_configs REST call
|
875
709
|
#
|
@@ -887,10 +721,17 @@ module Google
|
|
887
721
|
def update_per_instance_configs request_pb, options = nil
|
888
722
|
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
889
723
|
|
890
|
-
|
891
|
-
|
724
|
+
verb, uri, query_string_params, body = transcode_update_per_instance_configs_request request_pb
|
725
|
+
query_string_params = if query_string_params.any?
|
726
|
+
query_string_params.to_h { |p| p.split("=", 2) }
|
727
|
+
else
|
728
|
+
{}
|
729
|
+
end
|
730
|
+
|
731
|
+
response = @client_stub.make_http_request(
|
732
|
+
verb,
|
892
733
|
uri: uri,
|
893
|
-
body: body,
|
734
|
+
body: body || "",
|
894
735
|
params: query_string_params,
|
895
736
|
options: options
|
896
737
|
)
|
@@ -900,7 +741,435 @@ module Google
|
|
900
741
|
result
|
901
742
|
end
|
902
743
|
|
744
|
+
|
745
|
+
private
|
746
|
+
|
747
|
+
##
|
748
|
+
# @private
|
749
|
+
#
|
750
|
+
# GRPC transcoding helper method for the abandon_instances REST call
|
751
|
+
#
|
752
|
+
# @param request_pb [::Google::Cloud::Compute::V1::AbandonInstancesRegionInstanceGroupManagerRequest]
|
753
|
+
# A request object representing the call parameters. Required.
|
754
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
755
|
+
# Uri, Body, Query string parameters
|
756
|
+
def transcode_abandon_instances_request request_pb
|
757
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
758
|
+
.with_bindings(
|
759
|
+
uri_method: :post,
|
760
|
+
uri_template: "/compute/v1/projects/{project}/regions/{region}/instanceGroupManagers/{instance_group_manager}/abandonInstances",
|
761
|
+
body: "region_instance_group_managers_abandon_instances_request_resource",
|
762
|
+
matches: [
|
763
|
+
["project", %r{[^/]+}, false],
|
764
|
+
["region", %r{[^/]+}, false],
|
765
|
+
["instance_group_manager", %r{[^/]+}, false]
|
766
|
+
]
|
767
|
+
)
|
768
|
+
transcoder.transcode request_pb
|
769
|
+
end
|
770
|
+
|
771
|
+
##
|
772
|
+
# @private
|
773
|
+
#
|
774
|
+
# GRPC transcoding helper method for the apply_updates_to_instances REST call
|
775
|
+
#
|
776
|
+
# @param request_pb [::Google::Cloud::Compute::V1::ApplyUpdatesToInstancesRegionInstanceGroupManagerRequest]
|
777
|
+
# A request object representing the call parameters. Required.
|
778
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
779
|
+
# Uri, Body, Query string parameters
|
780
|
+
def transcode_apply_updates_to_instances_request request_pb
|
781
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
782
|
+
.with_bindings(
|
783
|
+
uri_method: :post,
|
784
|
+
uri_template: "/compute/v1/projects/{project}/regions/{region}/instanceGroupManagers/{instance_group_manager}/applyUpdatesToInstances",
|
785
|
+
body: "region_instance_group_managers_apply_updates_request_resource",
|
786
|
+
matches: [
|
787
|
+
["project", %r{[^/]+}, false],
|
788
|
+
["region", %r{[^/]+}, false],
|
789
|
+
["instance_group_manager", %r{[^/]+}, false]
|
790
|
+
]
|
791
|
+
)
|
792
|
+
transcoder.transcode request_pb
|
793
|
+
end
|
794
|
+
|
795
|
+
##
|
796
|
+
# @private
|
797
|
+
#
|
798
|
+
# GRPC transcoding helper method for the create_instances REST call
|
799
|
+
#
|
800
|
+
# @param request_pb [::Google::Cloud::Compute::V1::CreateInstancesRegionInstanceGroupManagerRequest]
|
801
|
+
# A request object representing the call parameters. Required.
|
802
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
803
|
+
# Uri, Body, Query string parameters
|
804
|
+
def transcode_create_instances_request request_pb
|
805
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
806
|
+
.with_bindings(
|
807
|
+
uri_method: :post,
|
808
|
+
uri_template: "/compute/v1/projects/{project}/regions/{region}/instanceGroupManagers/{instance_group_manager}/createInstances",
|
809
|
+
body: "region_instance_group_managers_create_instances_request_resource",
|
810
|
+
matches: [
|
811
|
+
["project", %r{[^/]+}, false],
|
812
|
+
["region", %r{[^/]+}, false],
|
813
|
+
["instance_group_manager", %r{[^/]+}, false]
|
814
|
+
]
|
815
|
+
)
|
816
|
+
transcoder.transcode request_pb
|
817
|
+
end
|
818
|
+
|
819
|
+
##
|
820
|
+
# @private
|
821
|
+
#
|
822
|
+
# GRPC transcoding helper method for the delete REST call
|
823
|
+
#
|
824
|
+
# @param request_pb [::Google::Cloud::Compute::V1::DeleteRegionInstanceGroupManagerRequest]
|
825
|
+
# A request object representing the call parameters. Required.
|
826
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
827
|
+
# Uri, Body, Query string parameters
|
828
|
+
def transcode_delete_request request_pb
|
829
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
830
|
+
.with_bindings(
|
831
|
+
uri_method: :delete,
|
832
|
+
uri_template: "/compute/v1/projects/{project}/regions/{region}/instanceGroupManagers/{instance_group_manager}",
|
833
|
+
matches: [
|
834
|
+
["project", %r{[^/]+}, false],
|
835
|
+
["region", %r{[^/]+}, false],
|
836
|
+
["instance_group_manager", %r{[^/]+}, false]
|
837
|
+
]
|
838
|
+
)
|
839
|
+
transcoder.transcode request_pb
|
840
|
+
end
|
841
|
+
|
842
|
+
##
|
843
|
+
# @private
|
844
|
+
#
|
845
|
+
# GRPC transcoding helper method for the delete_instances REST call
|
846
|
+
#
|
847
|
+
# @param request_pb [::Google::Cloud::Compute::V1::DeleteInstancesRegionInstanceGroupManagerRequest]
|
848
|
+
# A request object representing the call parameters. Required.
|
849
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
850
|
+
# Uri, Body, Query string parameters
|
851
|
+
def transcode_delete_instances_request request_pb
|
852
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
853
|
+
.with_bindings(
|
854
|
+
uri_method: :post,
|
855
|
+
uri_template: "/compute/v1/projects/{project}/regions/{region}/instanceGroupManagers/{instance_group_manager}/deleteInstances",
|
856
|
+
body: "region_instance_group_managers_delete_instances_request_resource",
|
857
|
+
matches: [
|
858
|
+
["project", %r{[^/]+}, false],
|
859
|
+
["region", %r{[^/]+}, false],
|
860
|
+
["instance_group_manager", %r{[^/]+}, false]
|
861
|
+
]
|
862
|
+
)
|
863
|
+
transcoder.transcode request_pb
|
864
|
+
end
|
865
|
+
|
866
|
+
##
|
867
|
+
# @private
|
868
|
+
#
|
869
|
+
# GRPC transcoding helper method for the delete_per_instance_configs REST call
|
870
|
+
#
|
871
|
+
# @param request_pb [::Google::Cloud::Compute::V1::DeletePerInstanceConfigsRegionInstanceGroupManagerRequest]
|
872
|
+
# A request object representing the call parameters. Required.
|
873
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
874
|
+
# Uri, Body, Query string parameters
|
875
|
+
def transcode_delete_per_instance_configs_request request_pb
|
876
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
877
|
+
.with_bindings(
|
878
|
+
uri_method: :post,
|
879
|
+
uri_template: "/compute/v1/projects/{project}/regions/{region}/instanceGroupManagers/{instance_group_manager}/deletePerInstanceConfigs",
|
880
|
+
body: "region_instance_group_manager_delete_instance_config_req_resource",
|
881
|
+
matches: [
|
882
|
+
["project", %r{[^/]+}, false],
|
883
|
+
["region", %r{[^/]+}, false],
|
884
|
+
["instance_group_manager", %r{[^/]+}, false]
|
885
|
+
]
|
886
|
+
)
|
887
|
+
transcoder.transcode request_pb
|
888
|
+
end
|
889
|
+
|
890
|
+
##
|
891
|
+
# @private
|
892
|
+
#
|
893
|
+
# GRPC transcoding helper method for the get REST call
|
894
|
+
#
|
895
|
+
# @param request_pb [::Google::Cloud::Compute::V1::GetRegionInstanceGroupManagerRequest]
|
896
|
+
# A request object representing the call parameters. Required.
|
897
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
898
|
+
# Uri, Body, Query string parameters
|
899
|
+
def transcode_get_request request_pb
|
900
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
901
|
+
.with_bindings(
|
902
|
+
uri_method: :get,
|
903
|
+
uri_template: "/compute/v1/projects/{project}/regions/{region}/instanceGroupManagers/{instance_group_manager}",
|
904
|
+
matches: [
|
905
|
+
["project", %r{[^/]+}, false],
|
906
|
+
["region", %r{[^/]+}, false],
|
907
|
+
["instance_group_manager", %r{[^/]+}, false]
|
908
|
+
]
|
909
|
+
)
|
910
|
+
transcoder.transcode request_pb
|
911
|
+
end
|
912
|
+
|
913
|
+
##
|
914
|
+
# @private
|
915
|
+
#
|
916
|
+
# GRPC transcoding helper method for the insert REST call
|
917
|
+
#
|
918
|
+
# @param request_pb [::Google::Cloud::Compute::V1::InsertRegionInstanceGroupManagerRequest]
|
919
|
+
# A request object representing the call parameters. Required.
|
920
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
921
|
+
# Uri, Body, Query string parameters
|
922
|
+
def transcode_insert_request request_pb
|
923
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
924
|
+
.with_bindings(
|
925
|
+
uri_method: :post,
|
926
|
+
uri_template: "/compute/v1/projects/{project}/regions/{region}/instanceGroupManagers",
|
927
|
+
body: "instance_group_manager_resource",
|
928
|
+
matches: [
|
929
|
+
["project", %r{[^/]+}, false],
|
930
|
+
["region", %r{[^/]+}, false]
|
931
|
+
]
|
932
|
+
)
|
933
|
+
transcoder.transcode request_pb
|
934
|
+
end
|
935
|
+
|
936
|
+
##
|
937
|
+
# @private
|
938
|
+
#
|
939
|
+
# GRPC transcoding helper method for the list REST call
|
940
|
+
#
|
941
|
+
# @param request_pb [::Google::Cloud::Compute::V1::ListRegionInstanceGroupManagersRequest]
|
942
|
+
# A request object representing the call parameters. Required.
|
943
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
944
|
+
# Uri, Body, Query string parameters
|
945
|
+
def transcode_list_request request_pb
|
946
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
947
|
+
.with_bindings(
|
948
|
+
uri_method: :get,
|
949
|
+
uri_template: "/compute/v1/projects/{project}/regions/{region}/instanceGroupManagers",
|
950
|
+
matches: [
|
951
|
+
["project", %r{[^/]+}, false],
|
952
|
+
["region", %r{[^/]+}, false]
|
953
|
+
]
|
954
|
+
)
|
955
|
+
transcoder.transcode request_pb
|
956
|
+
end
|
957
|
+
|
903
958
|
##
|
959
|
+
# @private
|
960
|
+
#
|
961
|
+
# GRPC transcoding helper method for the list_errors REST call
|
962
|
+
#
|
963
|
+
# @param request_pb [::Google::Cloud::Compute::V1::ListErrorsRegionInstanceGroupManagersRequest]
|
964
|
+
# A request object representing the call parameters. Required.
|
965
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
966
|
+
# Uri, Body, Query string parameters
|
967
|
+
def transcode_list_errors_request request_pb
|
968
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
969
|
+
.with_bindings(
|
970
|
+
uri_method: :get,
|
971
|
+
uri_template: "/compute/v1/projects/{project}/regions/{region}/instanceGroupManagers/{instance_group_manager}/listErrors",
|
972
|
+
matches: [
|
973
|
+
["project", %r{[^/]+}, false],
|
974
|
+
["region", %r{[^/]+}, false],
|
975
|
+
["instance_group_manager", %r{[^/]+}, false]
|
976
|
+
]
|
977
|
+
)
|
978
|
+
transcoder.transcode request_pb
|
979
|
+
end
|
980
|
+
|
981
|
+
##
|
982
|
+
# @private
|
983
|
+
#
|
984
|
+
# GRPC transcoding helper method for the list_managed_instances REST call
|
985
|
+
#
|
986
|
+
# @param request_pb [::Google::Cloud::Compute::V1::ListManagedInstancesRegionInstanceGroupManagersRequest]
|
987
|
+
# A request object representing the call parameters. Required.
|
988
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
989
|
+
# Uri, Body, Query string parameters
|
990
|
+
def transcode_list_managed_instances_request request_pb
|
991
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
992
|
+
.with_bindings(
|
993
|
+
uri_method: :post,
|
994
|
+
uri_template: "/compute/v1/projects/{project}/regions/{region}/instanceGroupManagers/{instance_group_manager}/listManagedInstances",
|
995
|
+
matches: [
|
996
|
+
["project", %r{[^/]+}, false],
|
997
|
+
["region", %r{[^/]+}, false],
|
998
|
+
["instance_group_manager", %r{[^/]+}, false]
|
999
|
+
]
|
1000
|
+
)
|
1001
|
+
transcoder.transcode request_pb
|
1002
|
+
end
|
1003
|
+
|
1004
|
+
##
|
1005
|
+
# @private
|
1006
|
+
#
|
1007
|
+
# GRPC transcoding helper method for the list_per_instance_configs REST call
|
1008
|
+
#
|
1009
|
+
# @param request_pb [::Google::Cloud::Compute::V1::ListPerInstanceConfigsRegionInstanceGroupManagersRequest]
|
1010
|
+
# A request object representing the call parameters. Required.
|
1011
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
1012
|
+
# Uri, Body, Query string parameters
|
1013
|
+
def transcode_list_per_instance_configs_request request_pb
|
1014
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
1015
|
+
.with_bindings(
|
1016
|
+
uri_method: :post,
|
1017
|
+
uri_template: "/compute/v1/projects/{project}/regions/{region}/instanceGroupManagers/{instance_group_manager}/listPerInstanceConfigs",
|
1018
|
+
matches: [
|
1019
|
+
["project", %r{[^/]+}, false],
|
1020
|
+
["region", %r{[^/]+}, false],
|
1021
|
+
["instance_group_manager", %r{[^/]+}, false]
|
1022
|
+
]
|
1023
|
+
)
|
1024
|
+
transcoder.transcode request_pb
|
1025
|
+
end
|
1026
|
+
|
1027
|
+
##
|
1028
|
+
# @private
|
1029
|
+
#
|
1030
|
+
# GRPC transcoding helper method for the patch REST call
|
1031
|
+
#
|
1032
|
+
# @param request_pb [::Google::Cloud::Compute::V1::PatchRegionInstanceGroupManagerRequest]
|
1033
|
+
# A request object representing the call parameters. Required.
|
1034
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
1035
|
+
# Uri, Body, Query string parameters
|
1036
|
+
def transcode_patch_request request_pb
|
1037
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
1038
|
+
.with_bindings(
|
1039
|
+
uri_method: :patch,
|
1040
|
+
uri_template: "/compute/v1/projects/{project}/regions/{region}/instanceGroupManagers/{instance_group_manager}",
|
1041
|
+
body: "instance_group_manager_resource",
|
1042
|
+
matches: [
|
1043
|
+
["project", %r{[^/]+}, false],
|
1044
|
+
["region", %r{[^/]+}, false],
|
1045
|
+
["instance_group_manager", %r{[^/]+}, false]
|
1046
|
+
]
|
1047
|
+
)
|
1048
|
+
transcoder.transcode request_pb
|
1049
|
+
end
|
1050
|
+
|
1051
|
+
##
|
1052
|
+
# @private
|
1053
|
+
#
|
1054
|
+
# GRPC transcoding helper method for the patch_per_instance_configs REST call
|
1055
|
+
#
|
1056
|
+
# @param request_pb [::Google::Cloud::Compute::V1::PatchPerInstanceConfigsRegionInstanceGroupManagerRequest]
|
1057
|
+
# A request object representing the call parameters. Required.
|
1058
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
1059
|
+
# Uri, Body, Query string parameters
|
1060
|
+
def transcode_patch_per_instance_configs_request request_pb
|
1061
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
1062
|
+
.with_bindings(
|
1063
|
+
uri_method: :post,
|
1064
|
+
uri_template: "/compute/v1/projects/{project}/regions/{region}/instanceGroupManagers/{instance_group_manager}/patchPerInstanceConfigs",
|
1065
|
+
body: "region_instance_group_manager_patch_instance_config_req_resource",
|
1066
|
+
matches: [
|
1067
|
+
["project", %r{[^/]+}, false],
|
1068
|
+
["region", %r{[^/]+}, false],
|
1069
|
+
["instance_group_manager", %r{[^/]+}, false]
|
1070
|
+
]
|
1071
|
+
)
|
1072
|
+
transcoder.transcode request_pb
|
1073
|
+
end
|
1074
|
+
|
1075
|
+
##
|
1076
|
+
# @private
|
1077
|
+
#
|
1078
|
+
# GRPC transcoding helper method for the recreate_instances REST call
|
1079
|
+
#
|
1080
|
+
# @param request_pb [::Google::Cloud::Compute::V1::RecreateInstancesRegionInstanceGroupManagerRequest]
|
1081
|
+
# A request object representing the call parameters. Required.
|
1082
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
1083
|
+
# Uri, Body, Query string parameters
|
1084
|
+
def transcode_recreate_instances_request request_pb
|
1085
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
1086
|
+
.with_bindings(
|
1087
|
+
uri_method: :post,
|
1088
|
+
uri_template: "/compute/v1/projects/{project}/regions/{region}/instanceGroupManagers/{instance_group_manager}/recreateInstances",
|
1089
|
+
body: "region_instance_group_managers_recreate_request_resource",
|
1090
|
+
matches: [
|
1091
|
+
["project", %r{[^/]+}, false],
|
1092
|
+
["region", %r{[^/]+}, false],
|
1093
|
+
["instance_group_manager", %r{[^/]+}, false]
|
1094
|
+
]
|
1095
|
+
)
|
1096
|
+
transcoder.transcode request_pb
|
1097
|
+
end
|
1098
|
+
|
1099
|
+
##
|
1100
|
+
# @private
|
1101
|
+
#
|
1102
|
+
# GRPC transcoding helper method for the resize REST call
|
1103
|
+
#
|
1104
|
+
# @param request_pb [::Google::Cloud::Compute::V1::ResizeRegionInstanceGroupManagerRequest]
|
1105
|
+
# A request object representing the call parameters. Required.
|
1106
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
1107
|
+
# Uri, Body, Query string parameters
|
1108
|
+
def transcode_resize_request request_pb
|
1109
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
1110
|
+
.with_bindings(
|
1111
|
+
uri_method: :post,
|
1112
|
+
uri_template: "/compute/v1/projects/{project}/regions/{region}/instanceGroupManagers/{instance_group_manager}/resize",
|
1113
|
+
matches: [
|
1114
|
+
["project", %r{[^/]+}, false],
|
1115
|
+
["region", %r{[^/]+}, false],
|
1116
|
+
["instance_group_manager", %r{[^/]+}, false]
|
1117
|
+
]
|
1118
|
+
)
|
1119
|
+
transcoder.transcode request_pb
|
1120
|
+
end
|
1121
|
+
|
1122
|
+
##
|
1123
|
+
# @private
|
1124
|
+
#
|
1125
|
+
# GRPC transcoding helper method for the set_instance_template REST call
|
1126
|
+
#
|
1127
|
+
# @param request_pb [::Google::Cloud::Compute::V1::SetInstanceTemplateRegionInstanceGroupManagerRequest]
|
1128
|
+
# A request object representing the call parameters. Required.
|
1129
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
1130
|
+
# Uri, Body, Query string parameters
|
1131
|
+
def transcode_set_instance_template_request request_pb
|
1132
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
1133
|
+
.with_bindings(
|
1134
|
+
uri_method: :post,
|
1135
|
+
uri_template: "/compute/v1/projects/{project}/regions/{region}/instanceGroupManagers/{instance_group_manager}/setInstanceTemplate",
|
1136
|
+
body: "region_instance_group_managers_set_template_request_resource",
|
1137
|
+
matches: [
|
1138
|
+
["project", %r{[^/]+}, false],
|
1139
|
+
["region", %r{[^/]+}, false],
|
1140
|
+
["instance_group_manager", %r{[^/]+}, false]
|
1141
|
+
]
|
1142
|
+
)
|
1143
|
+
transcoder.transcode request_pb
|
1144
|
+
end
|
1145
|
+
|
1146
|
+
##
|
1147
|
+
# @private
|
1148
|
+
#
|
1149
|
+
# GRPC transcoding helper method for the set_target_pools REST call
|
1150
|
+
#
|
1151
|
+
# @param request_pb [::Google::Cloud::Compute::V1::SetTargetPoolsRegionInstanceGroupManagerRequest]
|
1152
|
+
# A request object representing the call parameters. Required.
|
1153
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
1154
|
+
# Uri, Body, Query string parameters
|
1155
|
+
def transcode_set_target_pools_request request_pb
|
1156
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
1157
|
+
.with_bindings(
|
1158
|
+
uri_method: :post,
|
1159
|
+
uri_template: "/compute/v1/projects/{project}/regions/{region}/instanceGroupManagers/{instance_group_manager}/setTargetPools",
|
1160
|
+
body: "region_instance_group_managers_set_target_pools_request_resource",
|
1161
|
+
matches: [
|
1162
|
+
["project", %r{[^/]+}, false],
|
1163
|
+
["region", %r{[^/]+}, false],
|
1164
|
+
["instance_group_manager", %r{[^/]+}, false]
|
1165
|
+
]
|
1166
|
+
)
|
1167
|
+
transcoder.transcode request_pb
|
1168
|
+
end
|
1169
|
+
|
1170
|
+
##
|
1171
|
+
# @private
|
1172
|
+
#
|
904
1173
|
# GRPC transcoding helper method for the update_per_instance_configs REST call
|
905
1174
|
#
|
906
1175
|
# @param request_pb [::Google::Cloud::Compute::V1::UpdatePerInstanceConfigsRegionInstanceGroupManagerRequest]
|
@@ -908,12 +1177,18 @@ module Google
|
|
908
1177
|
# @return [Array(String, [String, nil], Hash{String => String})]
|
909
1178
|
# Uri, Body, Query string parameters
|
910
1179
|
def transcode_update_per_instance_configs_request request_pb
|
911
|
-
|
912
|
-
|
913
|
-
|
914
|
-
|
915
|
-
|
916
|
-
|
1180
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
1181
|
+
.with_bindings(
|
1182
|
+
uri_method: :post,
|
1183
|
+
uri_template: "/compute/v1/projects/{project}/regions/{region}/instanceGroupManagers/{instance_group_manager}/updatePerInstanceConfigs",
|
1184
|
+
body: "region_instance_group_manager_update_instance_config_req_resource",
|
1185
|
+
matches: [
|
1186
|
+
["project", %r{[^/]+}, false],
|
1187
|
+
["region", %r{[^/]+}, false],
|
1188
|
+
["instance_group_manager", %r{[^/]+}, false]
|
1189
|
+
]
|
1190
|
+
)
|
1191
|
+
transcoder.transcode request_pb
|
917
1192
|
end
|
918
1193
|
end
|
919
1194
|
end
|