google-cloud-compute-v1 0.2.0 → 0.3.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 +12 -12
- data/README.md +4 -30
- data/lib/google/cloud/compute/v1/accelerator_types/rest/client.rb +123 -66
- 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 +166 -96
- 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 +210 -128
- 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 +228 -143
- 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 +294 -187
- 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 +816 -135
- data/lib/google/cloud/compute/v1/disk_types/rest/client.rb +123 -66
- 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 +334 -213
- 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 +180 -107
- 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/rest/client.rb +463 -280
- data/lib/google/cloud/compute/v1/firewall_policies/rest/service_stub.rb +869 -0
- data/lib/google/cloud/compute/v1/firewall_policies/rest.rb +0 -2
- data/lib/google/cloud/compute/v1/firewalls/rest/client.rb +185 -113
- 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 +292 -127
- 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 +141 -81
- 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 +259 -112
- 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 +207 -128
- 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 +159 -88
- 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 +116 -64
- 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/rest/client.rb +170 -97
- 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 +0 -2
- data/lib/google/cloud/compute/v1/health_checks/rest/client.rb +210 -128
- 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/images/rest/client.rb +284 -174
- 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 +497 -328
- 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 +255 -161
- 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 +198 -117
- 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 +1079 -609
- data/lib/google/cloud/compute/v1/instances/rest/service_stub.rb +1975 -0
- data/lib/google/cloud/compute/v1/instances/rest.rb +0 -2
- data/lib/google/cloud/compute/v1/interconnect_attachments/rest/client.rb +188 -112
- 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 +98 -51
- 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 +184 -108
- 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 +91 -48
- 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 +198 -117
- 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 +123 -66
- 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 +251 -157
- 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 +349 -173
- 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 +333 -211
- 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 +223 -132
- 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 +123 -66
- 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 +206 -124
- 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 +338 -219
- 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/rest/client.rb +170 -97
- 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 +0 -2
- data/lib/google/cloud/compute/v1/public_delegated_prefixes/rest/client.rb +196 -112
- 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 +0 -2
- data/lib/google/cloud/compute/v1/region_autoscalers/rest/client.rb +185 -113
- 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 +203 -125
- 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 +145 -82
- 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 +98 -51
- 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 +309 -198
- 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 +163 -97
- 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 +185 -113
- 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 +472 -313
- 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 +143 -84
- 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/rest/client.rb +75 -40
- data/lib/google/cloud/compute/v1/region_instances/rest/service_stub.rb +92 -0
- data/lib/google/cloud/compute/v1/region_instances/rest.rb +0 -2
- data/lib/google/cloud/compute/v1/region_network_endpoint_groups/rest/client.rb +141 -81
- 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 +141 -81
- 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 +134 -73
- 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 +141 -81
- 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 +163 -97
- 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 +185 -113
- 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 +203 -125
- 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 +98 -51
- 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 +245 -148
- 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 +223 -132
- 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 +274 -166
- 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 +141 -81
- 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 +270 -166
- 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/snapshots/rest/client.rb +197 -115
- 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 +166 -96
- 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 +185 -110
- 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 +314 -195
- 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 +163 -97
- 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 +210 -128
- 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 +334 -159
- 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 +166 -96
- 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 +294 -188
- 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 +229 -145
- 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 +185 -113
- 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 +166 -96
- 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 +250 -156
- 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 +227 -135
- 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 +166 -96
- 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 +134 -73
- 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 +98 -51
- 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 +5 -0
- data/proto_docs/README.md +1 -1
- data/proto_docs/google/cloud/compute/v1/compute.rb +2526 -640
- metadata +84 -8
@@ -0,0 +1,974 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
# Copyright 2021 Google LLC
|
4
|
+
#
|
5
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
6
|
+
# you may not use this file except in compliance with the License.
|
7
|
+
# You may obtain a copy of the License at
|
8
|
+
#
|
9
|
+
# https://www.apache.org/licenses/LICENSE-2.0
|
10
|
+
#
|
11
|
+
# Unless required by applicable law or agreed to in writing, software
|
12
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
13
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
14
|
+
# See the License for the specific language governing permissions and
|
15
|
+
# limitations under the License.
|
16
|
+
|
17
|
+
# Auto-generated by gapic-generator-ruby. DO NOT EDIT!
|
18
|
+
|
19
|
+
require "google/cloud/compute/v1/compute_pb"
|
20
|
+
|
21
|
+
module Google
|
22
|
+
module Cloud
|
23
|
+
module Compute
|
24
|
+
module V1
|
25
|
+
module InstanceGroupManagers
|
26
|
+
module Rest
|
27
|
+
##
|
28
|
+
# REST service stub for the InstanceGroupManagers service.
|
29
|
+
# service stub contains baseline method implementations
|
30
|
+
# including transcoding, making the REST call and deserialing the response
|
31
|
+
#
|
32
|
+
class ServiceStub
|
33
|
+
def initialize endpoint:, credentials:
|
34
|
+
# These require statements are intentionally placed here to initialize
|
35
|
+
# the REST modules only when it's required.
|
36
|
+
require "gapic/rest"
|
37
|
+
|
38
|
+
@client_stub = ::Gapic::Rest::ClientStub.new endpoint: endpoint, credentials: credentials
|
39
|
+
end
|
40
|
+
|
41
|
+
##
|
42
|
+
# Baseline implementation for the abandon_instances REST call
|
43
|
+
#
|
44
|
+
# @param request_pb [::Google::Cloud::Compute::V1::AbandonInstancesInstanceGroupManagerRequest]
|
45
|
+
# A request object representing the call parameters. Required.
|
46
|
+
# @param options [::Gapic::CallOptions]
|
47
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
48
|
+
#
|
49
|
+
# @yield [result, response] Access the result along with the Faraday response object
|
50
|
+
# @yieldparam result [::Google::Cloud::Compute::V1::Operation]
|
51
|
+
# @yieldparam response [::Faraday::Response]
|
52
|
+
#
|
53
|
+
# @return [::Google::Cloud::Compute::V1::Operation]
|
54
|
+
# A result object deserialized from the server's reply
|
55
|
+
def abandon_instances request_pb, options = nil
|
56
|
+
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
57
|
+
|
58
|
+
uri, body, query_string_params = transcode_abandon_instances_request request_pb
|
59
|
+
response = @client_stub.make_post_request(
|
60
|
+
uri: uri,
|
61
|
+
body: body,
|
62
|
+
params: query_string_params,
|
63
|
+
options: options
|
64
|
+
)
|
65
|
+
result = ::Google::Cloud::Compute::V1::Operation.decode_json response.body, ignore_unknown_fields: true
|
66
|
+
|
67
|
+
yield result, response if block_given?
|
68
|
+
result
|
69
|
+
end
|
70
|
+
|
71
|
+
##
|
72
|
+
# GRPC transcoding helper method for the abandon_instances REST call
|
73
|
+
#
|
74
|
+
# @param request_pb [::Google::Cloud::Compute::V1::AbandonInstancesInstanceGroupManagerRequest]
|
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}/zones/#{request_pb.zone}/instanceGroupManagers/#{request_pb.instance_group_manager}/abandonInstances"
|
80
|
+
body = request_pb.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
|
+
##
|
88
|
+
# Baseline implementation for the aggregated_list REST call
|
89
|
+
#
|
90
|
+
# @param request_pb [::Google::Cloud::Compute::V1::AggregatedListInstanceGroupManagersRequest]
|
91
|
+
# A request object representing the call parameters. Required.
|
92
|
+
# @param options [::Gapic::CallOptions]
|
93
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
94
|
+
#
|
95
|
+
# @yield [result, response] Access the result along with the Faraday response object
|
96
|
+
# @yieldparam result [::Google::Cloud::Compute::V1::InstanceGroupManagerAggregatedList]
|
97
|
+
# @yieldparam response [::Faraday::Response]
|
98
|
+
#
|
99
|
+
# @return [::Google::Cloud::Compute::V1::InstanceGroupManagerAggregatedList]
|
100
|
+
# A result object deserialized from the server's reply
|
101
|
+
def aggregated_list request_pb, options = nil
|
102
|
+
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
103
|
+
|
104
|
+
uri, _body, query_string_params = transcode_aggregated_list_request request_pb
|
105
|
+
response = @client_stub.make_get_request(
|
106
|
+
uri: uri,
|
107
|
+
params: query_string_params,
|
108
|
+
options: options
|
109
|
+
)
|
110
|
+
result = ::Google::Cloud::Compute::V1::InstanceGroupManagerAggregatedList.decode_json response.body, ignore_unknown_fields: true
|
111
|
+
|
112
|
+
yield result, response if block_given?
|
113
|
+
result
|
114
|
+
end
|
115
|
+
|
116
|
+
##
|
117
|
+
# GRPC transcoding helper method for the aggregated_list REST call
|
118
|
+
#
|
119
|
+
# @param request_pb [::Google::Cloud::Compute::V1::AggregatedListInstanceGroupManagersRequest]
|
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_aggregated_list_request request_pb
|
124
|
+
uri = "/compute/v1/projects/#{request_pb.project}/aggregated/instanceGroupManagers"
|
125
|
+
body = nil
|
126
|
+
query_string_params = {}
|
127
|
+
query_string_params["filter"] = request_pb.filter.to_s if request_pb.has_filter?
|
128
|
+
query_string_params["includeAllScopes"] = request_pb.include_all_scopes.to_s if request_pb.has_include_all_scopes?
|
129
|
+
query_string_params["maxResults"] = request_pb.max_results.to_s if request_pb.has_max_results?
|
130
|
+
query_string_params["orderBy"] = request_pb.order_by.to_s if request_pb.has_order_by?
|
131
|
+
query_string_params["pageToken"] = request_pb.page_token.to_s if request_pb.has_page_token?
|
132
|
+
query_string_params["returnPartialSuccess"] = request_pb.return_partial_success.to_s if request_pb.has_return_partial_success?
|
133
|
+
|
134
|
+
[uri, body, query_string_params]
|
135
|
+
end
|
136
|
+
|
137
|
+
##
|
138
|
+
# Baseline implementation for the apply_updates_to_instances REST call
|
139
|
+
#
|
140
|
+
# @param request_pb [::Google::Cloud::Compute::V1::ApplyUpdatesToInstancesInstanceGroupManagerRequest]
|
141
|
+
# A request object representing the call parameters. Required.
|
142
|
+
# @param options [::Gapic::CallOptions]
|
143
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
144
|
+
#
|
145
|
+
# @yield [result, response] Access the result along with the Faraday response object
|
146
|
+
# @yieldparam result [::Google::Cloud::Compute::V1::Operation]
|
147
|
+
# @yieldparam response [::Faraday::Response]
|
148
|
+
#
|
149
|
+
# @return [::Google::Cloud::Compute::V1::Operation]
|
150
|
+
# A result object deserialized from the server's reply
|
151
|
+
def apply_updates_to_instances request_pb, options = nil
|
152
|
+
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
153
|
+
|
154
|
+
uri, body, _query_string_params = transcode_apply_updates_to_instances_request request_pb
|
155
|
+
response = @client_stub.make_post_request(
|
156
|
+
uri: uri,
|
157
|
+
body: body,
|
158
|
+
options: options
|
159
|
+
)
|
160
|
+
result = ::Google::Cloud::Compute::V1::Operation.decode_json response.body, ignore_unknown_fields: true
|
161
|
+
|
162
|
+
yield result, response if block_given?
|
163
|
+
result
|
164
|
+
end
|
165
|
+
|
166
|
+
##
|
167
|
+
# GRPC transcoding helper method for the apply_updates_to_instances REST call
|
168
|
+
#
|
169
|
+
# @param request_pb [::Google::Cloud::Compute::V1::ApplyUpdatesToInstancesInstanceGroupManagerRequest]
|
170
|
+
# A request object representing the call parameters. Required.
|
171
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
172
|
+
# Uri, Body, Query string parameters
|
173
|
+
def transcode_apply_updates_to_instances_request request_pb
|
174
|
+
uri = "/compute/v1/projects/#{request_pb.project}/zones/#{request_pb.zone}/instanceGroupManagers/#{request_pb.instance_group_manager}/applyUpdatesToInstances"
|
175
|
+
body = request_pb.instance_group_managers_apply_updates_request_resource.to_json
|
176
|
+
query_string_params = {}
|
177
|
+
|
178
|
+
[uri, body, query_string_params]
|
179
|
+
end
|
180
|
+
|
181
|
+
##
|
182
|
+
# Baseline implementation for the create_instances REST call
|
183
|
+
#
|
184
|
+
# @param request_pb [::Google::Cloud::Compute::V1::CreateInstancesInstanceGroupManagerRequest]
|
185
|
+
# A request object representing the call parameters. Required.
|
186
|
+
# @param options [::Gapic::CallOptions]
|
187
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
188
|
+
#
|
189
|
+
# @yield [result, response] Access the result along with the Faraday response object
|
190
|
+
# @yieldparam result [::Google::Cloud::Compute::V1::Operation]
|
191
|
+
# @yieldparam response [::Faraday::Response]
|
192
|
+
#
|
193
|
+
# @return [::Google::Cloud::Compute::V1::Operation]
|
194
|
+
# A result object deserialized from the server's reply
|
195
|
+
def create_instances request_pb, options = nil
|
196
|
+
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
197
|
+
|
198
|
+
uri, body, query_string_params = transcode_create_instances_request request_pb
|
199
|
+
response = @client_stub.make_post_request(
|
200
|
+
uri: uri,
|
201
|
+
body: body,
|
202
|
+
params: query_string_params,
|
203
|
+
options: options
|
204
|
+
)
|
205
|
+
result = ::Google::Cloud::Compute::V1::Operation.decode_json response.body, ignore_unknown_fields: true
|
206
|
+
|
207
|
+
yield result, response if block_given?
|
208
|
+
result
|
209
|
+
end
|
210
|
+
|
211
|
+
##
|
212
|
+
# GRPC transcoding helper method for the create_instances REST call
|
213
|
+
#
|
214
|
+
# @param request_pb [::Google::Cloud::Compute::V1::CreateInstancesInstanceGroupManagerRequest]
|
215
|
+
# A request object representing the call parameters. Required.
|
216
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
217
|
+
# Uri, Body, Query string parameters
|
218
|
+
def transcode_create_instances_request request_pb
|
219
|
+
uri = "/compute/v1/projects/#{request_pb.project}/zones/#{request_pb.zone}/instanceGroupManagers/#{request_pb.instance_group_manager}/createInstances"
|
220
|
+
body = request_pb.instance_group_managers_create_instances_request_resource.to_json
|
221
|
+
query_string_params = {}
|
222
|
+
query_string_params["requestId"] = request_pb.request_id.to_s if request_pb.has_request_id?
|
223
|
+
|
224
|
+
[uri, body, query_string_params]
|
225
|
+
end
|
226
|
+
|
227
|
+
##
|
228
|
+
# Baseline implementation for the delete REST call
|
229
|
+
#
|
230
|
+
# @param request_pb [::Google::Cloud::Compute::V1::DeleteInstanceGroupManagerRequest]
|
231
|
+
# A request object representing the call parameters. Required.
|
232
|
+
# @param options [::Gapic::CallOptions]
|
233
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
234
|
+
#
|
235
|
+
# @yield [result, response] Access the result along with the Faraday response object
|
236
|
+
# @yieldparam result [::Google::Cloud::Compute::V1::Operation]
|
237
|
+
# @yieldparam response [::Faraday::Response]
|
238
|
+
#
|
239
|
+
# @return [::Google::Cloud::Compute::V1::Operation]
|
240
|
+
# A result object deserialized from the server's reply
|
241
|
+
def delete request_pb, options = nil
|
242
|
+
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
243
|
+
|
244
|
+
uri, _body, query_string_params = transcode_delete_request request_pb
|
245
|
+
response = @client_stub.make_delete_request(
|
246
|
+
uri: uri,
|
247
|
+
params: query_string_params,
|
248
|
+
options: options
|
249
|
+
)
|
250
|
+
result = ::Google::Cloud::Compute::V1::Operation.decode_json response.body, ignore_unknown_fields: true
|
251
|
+
|
252
|
+
yield result, response if block_given?
|
253
|
+
result
|
254
|
+
end
|
255
|
+
|
256
|
+
##
|
257
|
+
# GRPC transcoding helper method for the delete REST call
|
258
|
+
#
|
259
|
+
# @param request_pb [::Google::Cloud::Compute::V1::DeleteInstanceGroupManagerRequest]
|
260
|
+
# A request object representing the call parameters. Required.
|
261
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
262
|
+
# Uri, Body, Query string parameters
|
263
|
+
def transcode_delete_request request_pb
|
264
|
+
uri = "/compute/v1/projects/#{request_pb.project}/zones/#{request_pb.zone}/instanceGroupManagers/#{request_pb.instance_group_manager}"
|
265
|
+
body = nil
|
266
|
+
query_string_params = {}
|
267
|
+
query_string_params["requestId"] = request_pb.request_id.to_s if request_pb.has_request_id?
|
268
|
+
|
269
|
+
[uri, body, query_string_params]
|
270
|
+
end
|
271
|
+
|
272
|
+
##
|
273
|
+
# Baseline implementation for the delete_instances REST call
|
274
|
+
#
|
275
|
+
# @param request_pb [::Google::Cloud::Compute::V1::DeleteInstancesInstanceGroupManagerRequest]
|
276
|
+
# A request object representing the call parameters. Required.
|
277
|
+
# @param options [::Gapic::CallOptions]
|
278
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
279
|
+
#
|
280
|
+
# @yield [result, response] Access the result along with the Faraday response object
|
281
|
+
# @yieldparam result [::Google::Cloud::Compute::V1::Operation]
|
282
|
+
# @yieldparam response [::Faraday::Response]
|
283
|
+
#
|
284
|
+
# @return [::Google::Cloud::Compute::V1::Operation]
|
285
|
+
# A result object deserialized from the server's reply
|
286
|
+
def delete_instances request_pb, options = nil
|
287
|
+
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
288
|
+
|
289
|
+
uri, body, query_string_params = transcode_delete_instances_request request_pb
|
290
|
+
response = @client_stub.make_post_request(
|
291
|
+
uri: uri,
|
292
|
+
body: body,
|
293
|
+
params: query_string_params,
|
294
|
+
options: options
|
295
|
+
)
|
296
|
+
result = ::Google::Cloud::Compute::V1::Operation.decode_json response.body, ignore_unknown_fields: true
|
297
|
+
|
298
|
+
yield result, response if block_given?
|
299
|
+
result
|
300
|
+
end
|
301
|
+
|
302
|
+
##
|
303
|
+
# GRPC transcoding helper method for the delete_instances REST call
|
304
|
+
#
|
305
|
+
# @param request_pb [::Google::Cloud::Compute::V1::DeleteInstancesInstanceGroupManagerRequest]
|
306
|
+
# A request object representing the call parameters. Required.
|
307
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
308
|
+
# Uri, Body, Query string parameters
|
309
|
+
def transcode_delete_instances_request request_pb
|
310
|
+
uri = "/compute/v1/projects/#{request_pb.project}/zones/#{request_pb.zone}/instanceGroupManagers/#{request_pb.instance_group_manager}/deleteInstances"
|
311
|
+
body = request_pb.instance_group_managers_delete_instances_request_resource.to_json
|
312
|
+
query_string_params = {}
|
313
|
+
query_string_params["requestId"] = request_pb.request_id.to_s if request_pb.has_request_id?
|
314
|
+
|
315
|
+
[uri, body, query_string_params]
|
316
|
+
end
|
317
|
+
|
318
|
+
##
|
319
|
+
# Baseline implementation for the delete_per_instance_configs REST call
|
320
|
+
#
|
321
|
+
# @param request_pb [::Google::Cloud::Compute::V1::DeletePerInstanceConfigsInstanceGroupManagerRequest]
|
322
|
+
# A request object representing the call parameters. Required.
|
323
|
+
# @param options [::Gapic::CallOptions]
|
324
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
325
|
+
#
|
326
|
+
# @yield [result, response] Access the result along with the Faraday response object
|
327
|
+
# @yieldparam result [::Google::Cloud::Compute::V1::Operation]
|
328
|
+
# @yieldparam response [::Faraday::Response]
|
329
|
+
#
|
330
|
+
# @return [::Google::Cloud::Compute::V1::Operation]
|
331
|
+
# A result object deserialized from the server's reply
|
332
|
+
def delete_per_instance_configs request_pb, options = nil
|
333
|
+
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
334
|
+
|
335
|
+
uri, body, _query_string_params = transcode_delete_per_instance_configs_request request_pb
|
336
|
+
response = @client_stub.make_post_request(
|
337
|
+
uri: uri,
|
338
|
+
body: body,
|
339
|
+
options: options
|
340
|
+
)
|
341
|
+
result = ::Google::Cloud::Compute::V1::Operation.decode_json response.body, ignore_unknown_fields: true
|
342
|
+
|
343
|
+
yield result, response if block_given?
|
344
|
+
result
|
345
|
+
end
|
346
|
+
|
347
|
+
##
|
348
|
+
# GRPC transcoding helper method for the delete_per_instance_configs REST call
|
349
|
+
#
|
350
|
+
# @param request_pb [::Google::Cloud::Compute::V1::DeletePerInstanceConfigsInstanceGroupManagerRequest]
|
351
|
+
# A request object representing the call parameters. Required.
|
352
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
353
|
+
# Uri, Body, Query string parameters
|
354
|
+
def transcode_delete_per_instance_configs_request request_pb
|
355
|
+
uri = "/compute/v1/projects/#{request_pb.project}/zones/#{request_pb.zone}/instanceGroupManagers/#{request_pb.instance_group_manager}/deletePerInstanceConfigs"
|
356
|
+
body = request_pb.instance_group_managers_delete_per_instance_configs_req_resource.to_json
|
357
|
+
query_string_params = {}
|
358
|
+
|
359
|
+
[uri, body, query_string_params]
|
360
|
+
end
|
361
|
+
|
362
|
+
##
|
363
|
+
# Baseline implementation for the get REST call
|
364
|
+
#
|
365
|
+
# @param request_pb [::Google::Cloud::Compute::V1::GetInstanceGroupManagerRequest]
|
366
|
+
# A request object representing the call parameters. Required.
|
367
|
+
# @param options [::Gapic::CallOptions]
|
368
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
369
|
+
#
|
370
|
+
# @yield [result, response] Access the result along with the Faraday response object
|
371
|
+
# @yieldparam result [::Google::Cloud::Compute::V1::InstanceGroupManager]
|
372
|
+
# @yieldparam response [::Faraday::Response]
|
373
|
+
#
|
374
|
+
# @return [::Google::Cloud::Compute::V1::InstanceGroupManager]
|
375
|
+
# A result object deserialized from the server's reply
|
376
|
+
def get request_pb, options = nil
|
377
|
+
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
378
|
+
|
379
|
+
uri, _body, _query_string_params = transcode_get_request request_pb
|
380
|
+
response = @client_stub.make_get_request(
|
381
|
+
uri: uri,
|
382
|
+
options: options
|
383
|
+
)
|
384
|
+
result = ::Google::Cloud::Compute::V1::InstanceGroupManager.decode_json response.body, ignore_unknown_fields: true
|
385
|
+
|
386
|
+
yield result, response if block_given?
|
387
|
+
result
|
388
|
+
end
|
389
|
+
|
390
|
+
##
|
391
|
+
# GRPC transcoding helper method for the get REST call
|
392
|
+
#
|
393
|
+
# @param request_pb [::Google::Cloud::Compute::V1::GetInstanceGroupManagerRequest]
|
394
|
+
# A request object representing the call parameters. Required.
|
395
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
396
|
+
# Uri, Body, Query string parameters
|
397
|
+
def transcode_get_request request_pb
|
398
|
+
uri = "/compute/v1/projects/#{request_pb.project}/zones/#{request_pb.zone}/instanceGroupManagers/#{request_pb.instance_group_manager}"
|
399
|
+
body = nil
|
400
|
+
query_string_params = {}
|
401
|
+
|
402
|
+
[uri, body, query_string_params]
|
403
|
+
end
|
404
|
+
|
405
|
+
##
|
406
|
+
# Baseline implementation for the insert REST call
|
407
|
+
#
|
408
|
+
# @param request_pb [::Google::Cloud::Compute::V1::InsertInstanceGroupManagerRequest]
|
409
|
+
# A request object representing the call parameters. Required.
|
410
|
+
# @param options [::Gapic::CallOptions]
|
411
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
412
|
+
#
|
413
|
+
# @yield [result, response] Access the result along with the Faraday response object
|
414
|
+
# @yieldparam result [::Google::Cloud::Compute::V1::Operation]
|
415
|
+
# @yieldparam response [::Faraday::Response]
|
416
|
+
#
|
417
|
+
# @return [::Google::Cloud::Compute::V1::Operation]
|
418
|
+
# A result object deserialized from the server's reply
|
419
|
+
def insert request_pb, options = nil
|
420
|
+
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
421
|
+
|
422
|
+
uri, body, query_string_params = transcode_insert_request request_pb
|
423
|
+
response = @client_stub.make_post_request(
|
424
|
+
uri: uri,
|
425
|
+
body: body,
|
426
|
+
params: query_string_params,
|
427
|
+
options: options
|
428
|
+
)
|
429
|
+
result = ::Google::Cloud::Compute::V1::Operation.decode_json response.body, ignore_unknown_fields: true
|
430
|
+
|
431
|
+
yield result, response if block_given?
|
432
|
+
result
|
433
|
+
end
|
434
|
+
|
435
|
+
##
|
436
|
+
# GRPC transcoding helper method for the insert REST call
|
437
|
+
#
|
438
|
+
# @param request_pb [::Google::Cloud::Compute::V1::InsertInstanceGroupManagerRequest]
|
439
|
+
# A request object representing the call parameters. Required.
|
440
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
441
|
+
# Uri, Body, Query string parameters
|
442
|
+
def transcode_insert_request request_pb
|
443
|
+
uri = "/compute/v1/projects/#{request_pb.project}/zones/#{request_pb.zone}/instanceGroupManagers"
|
444
|
+
body = request_pb.instance_group_manager_resource.to_json
|
445
|
+
query_string_params = {}
|
446
|
+
query_string_params["requestId"] = request_pb.request_id.to_s if request_pb.has_request_id?
|
447
|
+
|
448
|
+
[uri, body, query_string_params]
|
449
|
+
end
|
450
|
+
|
451
|
+
##
|
452
|
+
# Baseline implementation for the list REST call
|
453
|
+
#
|
454
|
+
# @param request_pb [::Google::Cloud::Compute::V1::ListInstanceGroupManagersRequest]
|
455
|
+
# A request object representing the call parameters. Required.
|
456
|
+
# @param options [::Gapic::CallOptions]
|
457
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
458
|
+
#
|
459
|
+
# @yield [result, response] Access the result along with the Faraday response object
|
460
|
+
# @yieldparam result [::Google::Cloud::Compute::V1::InstanceGroupManagerList]
|
461
|
+
# @yieldparam response [::Faraday::Response]
|
462
|
+
#
|
463
|
+
# @return [::Google::Cloud::Compute::V1::InstanceGroupManagerList]
|
464
|
+
# A result object deserialized from the server's reply
|
465
|
+
def list request_pb, options = nil
|
466
|
+
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
467
|
+
|
468
|
+
uri, _body, query_string_params = transcode_list_request request_pb
|
469
|
+
response = @client_stub.make_get_request(
|
470
|
+
uri: uri,
|
471
|
+
params: query_string_params,
|
472
|
+
options: options
|
473
|
+
)
|
474
|
+
result = ::Google::Cloud::Compute::V1::InstanceGroupManagerList.decode_json response.body, ignore_unknown_fields: true
|
475
|
+
|
476
|
+
yield result, response if block_given?
|
477
|
+
result
|
478
|
+
end
|
479
|
+
|
480
|
+
##
|
481
|
+
# GRPC transcoding helper method for the list REST call
|
482
|
+
#
|
483
|
+
# @param request_pb [::Google::Cloud::Compute::V1::ListInstanceGroupManagersRequest]
|
484
|
+
# A request object representing the call parameters. Required.
|
485
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
486
|
+
# Uri, Body, Query string parameters
|
487
|
+
def transcode_list_request request_pb
|
488
|
+
uri = "/compute/v1/projects/#{request_pb.project}/zones/#{request_pb.zone}/instanceGroupManagers"
|
489
|
+
body = nil
|
490
|
+
query_string_params = {}
|
491
|
+
query_string_params["filter"] = request_pb.filter.to_s if request_pb.has_filter?
|
492
|
+
query_string_params["maxResults"] = request_pb.max_results.to_s if request_pb.has_max_results?
|
493
|
+
query_string_params["orderBy"] = request_pb.order_by.to_s if request_pb.has_order_by?
|
494
|
+
query_string_params["pageToken"] = request_pb.page_token.to_s if request_pb.has_page_token?
|
495
|
+
query_string_params["returnPartialSuccess"] = request_pb.return_partial_success.to_s if request_pb.has_return_partial_success?
|
496
|
+
|
497
|
+
[uri, body, query_string_params]
|
498
|
+
end
|
499
|
+
|
500
|
+
##
|
501
|
+
# Baseline implementation for the list_errors REST call
|
502
|
+
#
|
503
|
+
# @param request_pb [::Google::Cloud::Compute::V1::ListErrorsInstanceGroupManagersRequest]
|
504
|
+
# A request object representing the call parameters. Required.
|
505
|
+
# @param options [::Gapic::CallOptions]
|
506
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
507
|
+
#
|
508
|
+
# @yield [result, response] Access the result along with the Faraday response object
|
509
|
+
# @yieldparam result [::Google::Cloud::Compute::V1::InstanceGroupManagersListErrorsResponse]
|
510
|
+
# @yieldparam response [::Faraday::Response]
|
511
|
+
#
|
512
|
+
# @return [::Google::Cloud::Compute::V1::InstanceGroupManagersListErrorsResponse]
|
513
|
+
# A result object deserialized from the server's reply
|
514
|
+
def list_errors request_pb, options = nil
|
515
|
+
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
516
|
+
|
517
|
+
uri, _body, query_string_params = transcode_list_errors_request request_pb
|
518
|
+
response = @client_stub.make_get_request(
|
519
|
+
uri: uri,
|
520
|
+
params: query_string_params,
|
521
|
+
options: options
|
522
|
+
)
|
523
|
+
result = ::Google::Cloud::Compute::V1::InstanceGroupManagersListErrorsResponse.decode_json response.body, ignore_unknown_fields: true
|
524
|
+
|
525
|
+
yield result, response if block_given?
|
526
|
+
result
|
527
|
+
end
|
528
|
+
|
529
|
+
##
|
530
|
+
# GRPC transcoding helper method for the list_errors REST call
|
531
|
+
#
|
532
|
+
# @param request_pb [::Google::Cloud::Compute::V1::ListErrorsInstanceGroupManagersRequest]
|
533
|
+
# A request object representing the call parameters. Required.
|
534
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
535
|
+
# Uri, Body, Query string parameters
|
536
|
+
def transcode_list_errors_request request_pb
|
537
|
+
uri = "/compute/v1/projects/#{request_pb.project}/zones/#{request_pb.zone}/instanceGroupManagers/#{request_pb.instance_group_manager}/listErrors"
|
538
|
+
body = nil
|
539
|
+
query_string_params = {}
|
540
|
+
query_string_params["filter"] = request_pb.filter.to_s if request_pb.has_filter?
|
541
|
+
query_string_params["maxResults"] = request_pb.max_results.to_s if request_pb.has_max_results?
|
542
|
+
query_string_params["orderBy"] = request_pb.order_by.to_s if request_pb.has_order_by?
|
543
|
+
query_string_params["pageToken"] = request_pb.page_token.to_s if request_pb.has_page_token?
|
544
|
+
query_string_params["returnPartialSuccess"] = request_pb.return_partial_success.to_s if request_pb.has_return_partial_success?
|
545
|
+
|
546
|
+
[uri, body, query_string_params]
|
547
|
+
end
|
548
|
+
|
549
|
+
##
|
550
|
+
# Baseline implementation for the list_managed_instances REST call
|
551
|
+
#
|
552
|
+
# @param request_pb [::Google::Cloud::Compute::V1::ListManagedInstancesInstanceGroupManagersRequest]
|
553
|
+
# A request object representing the call parameters. Required.
|
554
|
+
# @param options [::Gapic::CallOptions]
|
555
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
556
|
+
#
|
557
|
+
# @yield [result, response] Access the result along with the Faraday response object
|
558
|
+
# @yieldparam result [::Google::Cloud::Compute::V1::InstanceGroupManagersListManagedInstancesResponse]
|
559
|
+
# @yieldparam response [::Faraday::Response]
|
560
|
+
#
|
561
|
+
# @return [::Google::Cloud::Compute::V1::InstanceGroupManagersListManagedInstancesResponse]
|
562
|
+
# A result object deserialized from the server's reply
|
563
|
+
def list_managed_instances request_pb, options = nil
|
564
|
+
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
565
|
+
|
566
|
+
uri, _body, query_string_params = transcode_list_managed_instances_request request_pb
|
567
|
+
response = @client_stub.make_post_request(
|
568
|
+
uri: uri,
|
569
|
+
params: query_string_params,
|
570
|
+
options: options
|
571
|
+
)
|
572
|
+
result = ::Google::Cloud::Compute::V1::InstanceGroupManagersListManagedInstancesResponse.decode_json response.body, ignore_unknown_fields: true
|
573
|
+
|
574
|
+
yield result, response if block_given?
|
575
|
+
result
|
576
|
+
end
|
577
|
+
|
578
|
+
##
|
579
|
+
# GRPC transcoding helper method for the list_managed_instances REST call
|
580
|
+
#
|
581
|
+
# @param request_pb [::Google::Cloud::Compute::V1::ListManagedInstancesInstanceGroupManagersRequest]
|
582
|
+
# A request object representing the call parameters. Required.
|
583
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
584
|
+
# Uri, Body, Query string parameters
|
585
|
+
def transcode_list_managed_instances_request request_pb
|
586
|
+
uri = "/compute/v1/projects/#{request_pb.project}/zones/#{request_pb.zone}/instanceGroupManagers/#{request_pb.instance_group_manager}/listManagedInstances"
|
587
|
+
body = nil
|
588
|
+
query_string_params = {}
|
589
|
+
query_string_params["filter"] = request_pb.filter.to_s if request_pb.has_filter?
|
590
|
+
query_string_params["maxResults"] = request_pb.max_results.to_s if request_pb.has_max_results?
|
591
|
+
query_string_params["orderBy"] = request_pb.order_by.to_s if request_pb.has_order_by?
|
592
|
+
query_string_params["pageToken"] = request_pb.page_token.to_s if request_pb.has_page_token?
|
593
|
+
query_string_params["returnPartialSuccess"] = request_pb.return_partial_success.to_s if request_pb.has_return_partial_success?
|
594
|
+
|
595
|
+
[uri, body, query_string_params]
|
596
|
+
end
|
597
|
+
|
598
|
+
##
|
599
|
+
# Baseline implementation for the list_per_instance_configs REST call
|
600
|
+
#
|
601
|
+
# @param request_pb [::Google::Cloud::Compute::V1::ListPerInstanceConfigsInstanceGroupManagersRequest]
|
602
|
+
# A request object representing the call parameters. Required.
|
603
|
+
# @param options [::Gapic::CallOptions]
|
604
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
605
|
+
#
|
606
|
+
# @yield [result, response] Access the result along with the Faraday response object
|
607
|
+
# @yieldparam result [::Google::Cloud::Compute::V1::InstanceGroupManagersListPerInstanceConfigsResp]
|
608
|
+
# @yieldparam response [::Faraday::Response]
|
609
|
+
#
|
610
|
+
# @return [::Google::Cloud::Compute::V1::InstanceGroupManagersListPerInstanceConfigsResp]
|
611
|
+
# A result object deserialized from the server's reply
|
612
|
+
def list_per_instance_configs request_pb, options = nil
|
613
|
+
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
614
|
+
|
615
|
+
uri, _body, query_string_params = transcode_list_per_instance_configs_request request_pb
|
616
|
+
response = @client_stub.make_post_request(
|
617
|
+
uri: uri,
|
618
|
+
params: query_string_params,
|
619
|
+
options: options
|
620
|
+
)
|
621
|
+
result = ::Google::Cloud::Compute::V1::InstanceGroupManagersListPerInstanceConfigsResp.decode_json response.body, ignore_unknown_fields: true
|
622
|
+
|
623
|
+
yield result, response if block_given?
|
624
|
+
result
|
625
|
+
end
|
626
|
+
|
627
|
+
##
|
628
|
+
# GRPC transcoding helper method for the list_per_instance_configs REST call
|
629
|
+
#
|
630
|
+
# @param request_pb [::Google::Cloud::Compute::V1::ListPerInstanceConfigsInstanceGroupManagersRequest]
|
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_list_per_instance_configs_request request_pb
|
635
|
+
uri = "/compute/v1/projects/#{request_pb.project}/zones/#{request_pb.zone}/instanceGroupManagers/#{request_pb.instance_group_manager}/listPerInstanceConfigs"
|
636
|
+
body = nil
|
637
|
+
query_string_params = {}
|
638
|
+
query_string_params["filter"] = request_pb.filter.to_s if request_pb.has_filter?
|
639
|
+
query_string_params["maxResults"] = request_pb.max_results.to_s if request_pb.has_max_results?
|
640
|
+
query_string_params["orderBy"] = request_pb.order_by.to_s if request_pb.has_order_by?
|
641
|
+
query_string_params["pageToken"] = request_pb.page_token.to_s if request_pb.has_page_token?
|
642
|
+
query_string_params["returnPartialSuccess"] = request_pb.return_partial_success.to_s if request_pb.has_return_partial_success?
|
643
|
+
|
644
|
+
[uri, body, query_string_params]
|
645
|
+
end
|
646
|
+
|
647
|
+
##
|
648
|
+
# Baseline implementation for the patch REST call
|
649
|
+
#
|
650
|
+
# @param request_pb [::Google::Cloud::Compute::V1::PatchInstanceGroupManagerRequest]
|
651
|
+
# A request object representing the call parameters. Required.
|
652
|
+
# @param options [::Gapic::CallOptions]
|
653
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
654
|
+
#
|
655
|
+
# @yield [result, response] Access the result along with the Faraday response object
|
656
|
+
# @yieldparam result [::Google::Cloud::Compute::V1::Operation]
|
657
|
+
# @yieldparam response [::Faraday::Response]
|
658
|
+
#
|
659
|
+
# @return [::Google::Cloud::Compute::V1::Operation]
|
660
|
+
# A result object deserialized from the server's reply
|
661
|
+
def patch request_pb, options = nil
|
662
|
+
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
663
|
+
|
664
|
+
uri, body, query_string_params = transcode_patch_request request_pb
|
665
|
+
response = @client_stub.make_patch_request(
|
666
|
+
uri: uri,
|
667
|
+
body: body,
|
668
|
+
params: query_string_params,
|
669
|
+
options: options
|
670
|
+
)
|
671
|
+
result = ::Google::Cloud::Compute::V1::Operation.decode_json response.body, ignore_unknown_fields: true
|
672
|
+
|
673
|
+
yield result, response if block_given?
|
674
|
+
result
|
675
|
+
end
|
676
|
+
|
677
|
+
##
|
678
|
+
# GRPC transcoding helper method for the patch REST call
|
679
|
+
#
|
680
|
+
# @param request_pb [::Google::Cloud::Compute::V1::PatchInstanceGroupManagerRequest]
|
681
|
+
# A request object representing the call parameters. Required.
|
682
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
683
|
+
# Uri, Body, Query string parameters
|
684
|
+
def transcode_patch_request request_pb
|
685
|
+
uri = "/compute/v1/projects/#{request_pb.project}/zones/#{request_pb.zone}/instanceGroupManagers/#{request_pb.instance_group_manager}"
|
686
|
+
body = request_pb.instance_group_manager_resource.to_json
|
687
|
+
query_string_params = {}
|
688
|
+
query_string_params["requestId"] = request_pb.request_id.to_s if request_pb.has_request_id?
|
689
|
+
|
690
|
+
[uri, body, query_string_params]
|
691
|
+
end
|
692
|
+
|
693
|
+
##
|
694
|
+
# Baseline implementation for the patch_per_instance_configs REST call
|
695
|
+
#
|
696
|
+
# @param request_pb [::Google::Cloud::Compute::V1::PatchPerInstanceConfigsInstanceGroupManagerRequest]
|
697
|
+
# A request object representing the call parameters. Required.
|
698
|
+
# @param options [::Gapic::CallOptions]
|
699
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
700
|
+
#
|
701
|
+
# @yield [result, response] Access the result along with the Faraday response object
|
702
|
+
# @yieldparam result [::Google::Cloud::Compute::V1::Operation]
|
703
|
+
# @yieldparam response [::Faraday::Response]
|
704
|
+
#
|
705
|
+
# @return [::Google::Cloud::Compute::V1::Operation]
|
706
|
+
# A result object deserialized from the server's reply
|
707
|
+
def patch_per_instance_configs request_pb, options = nil
|
708
|
+
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
709
|
+
|
710
|
+
uri, body, query_string_params = transcode_patch_per_instance_configs_request request_pb
|
711
|
+
response = @client_stub.make_post_request(
|
712
|
+
uri: uri,
|
713
|
+
body: body,
|
714
|
+
params: query_string_params,
|
715
|
+
options: options
|
716
|
+
)
|
717
|
+
result = ::Google::Cloud::Compute::V1::Operation.decode_json response.body, ignore_unknown_fields: true
|
718
|
+
|
719
|
+
yield result, response if block_given?
|
720
|
+
result
|
721
|
+
end
|
722
|
+
|
723
|
+
##
|
724
|
+
# GRPC transcoding helper method for the patch_per_instance_configs REST call
|
725
|
+
#
|
726
|
+
# @param request_pb [::Google::Cloud::Compute::V1::PatchPerInstanceConfigsInstanceGroupManagerRequest]
|
727
|
+
# A request object representing the call parameters. Required.
|
728
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
729
|
+
# Uri, Body, Query string parameters
|
730
|
+
def transcode_patch_per_instance_configs_request request_pb
|
731
|
+
uri = "/compute/v1/projects/#{request_pb.project}/zones/#{request_pb.zone}/instanceGroupManagers/#{request_pb.instance_group_manager}/patchPerInstanceConfigs"
|
732
|
+
body = request_pb.instance_group_managers_patch_per_instance_configs_req_resource.to_json
|
733
|
+
query_string_params = {}
|
734
|
+
query_string_params["requestId"] = request_pb.request_id.to_s if request_pb.has_request_id?
|
735
|
+
|
736
|
+
[uri, body, query_string_params]
|
737
|
+
end
|
738
|
+
|
739
|
+
##
|
740
|
+
# Baseline implementation for the recreate_instances REST call
|
741
|
+
#
|
742
|
+
# @param request_pb [::Google::Cloud::Compute::V1::RecreateInstancesInstanceGroupManagerRequest]
|
743
|
+
# A request object representing the call parameters. Required.
|
744
|
+
# @param options [::Gapic::CallOptions]
|
745
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
746
|
+
#
|
747
|
+
# @yield [result, response] Access the result along with the Faraday response object
|
748
|
+
# @yieldparam result [::Google::Cloud::Compute::V1::Operation]
|
749
|
+
# @yieldparam response [::Faraday::Response]
|
750
|
+
#
|
751
|
+
# @return [::Google::Cloud::Compute::V1::Operation]
|
752
|
+
# A result object deserialized from the server's reply
|
753
|
+
def recreate_instances request_pb, options = nil
|
754
|
+
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
755
|
+
|
756
|
+
uri, body, query_string_params = transcode_recreate_instances_request request_pb
|
757
|
+
response = @client_stub.make_post_request(
|
758
|
+
uri: uri,
|
759
|
+
body: body,
|
760
|
+
params: query_string_params,
|
761
|
+
options: options
|
762
|
+
)
|
763
|
+
result = ::Google::Cloud::Compute::V1::Operation.decode_json response.body, ignore_unknown_fields: true
|
764
|
+
|
765
|
+
yield result, response if block_given?
|
766
|
+
result
|
767
|
+
end
|
768
|
+
|
769
|
+
##
|
770
|
+
# GRPC transcoding helper method for the recreate_instances REST call
|
771
|
+
#
|
772
|
+
# @param request_pb [::Google::Cloud::Compute::V1::RecreateInstancesInstanceGroupManagerRequest]
|
773
|
+
# A request object representing the call parameters. Required.
|
774
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
775
|
+
# Uri, Body, Query string parameters
|
776
|
+
def transcode_recreate_instances_request request_pb
|
777
|
+
uri = "/compute/v1/projects/#{request_pb.project}/zones/#{request_pb.zone}/instanceGroupManagers/#{request_pb.instance_group_manager}/recreateInstances"
|
778
|
+
body = request_pb.instance_group_managers_recreate_instances_request_resource.to_json
|
779
|
+
query_string_params = {}
|
780
|
+
query_string_params["requestId"] = request_pb.request_id.to_s if request_pb.has_request_id?
|
781
|
+
|
782
|
+
[uri, body, query_string_params]
|
783
|
+
end
|
784
|
+
|
785
|
+
##
|
786
|
+
# Baseline implementation for the resize REST call
|
787
|
+
#
|
788
|
+
# @param request_pb [::Google::Cloud::Compute::V1::ResizeInstanceGroupManagerRequest]
|
789
|
+
# A request object representing the call parameters. Required.
|
790
|
+
# @param options [::Gapic::CallOptions]
|
791
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
792
|
+
#
|
793
|
+
# @yield [result, response] Access the result along with the Faraday response object
|
794
|
+
# @yieldparam result [::Google::Cloud::Compute::V1::Operation]
|
795
|
+
# @yieldparam response [::Faraday::Response]
|
796
|
+
#
|
797
|
+
# @return [::Google::Cloud::Compute::V1::Operation]
|
798
|
+
# A result object deserialized from the server's reply
|
799
|
+
def resize request_pb, options = nil
|
800
|
+
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
801
|
+
|
802
|
+
uri, _body, query_string_params = transcode_resize_request request_pb
|
803
|
+
response = @client_stub.make_post_request(
|
804
|
+
uri: uri,
|
805
|
+
params: query_string_params,
|
806
|
+
options: options
|
807
|
+
)
|
808
|
+
result = ::Google::Cloud::Compute::V1::Operation.decode_json response.body, ignore_unknown_fields: true
|
809
|
+
|
810
|
+
yield result, response if block_given?
|
811
|
+
result
|
812
|
+
end
|
813
|
+
|
814
|
+
##
|
815
|
+
# GRPC transcoding helper method for the resize REST call
|
816
|
+
#
|
817
|
+
# @param request_pb [::Google::Cloud::Compute::V1::ResizeInstanceGroupManagerRequest]
|
818
|
+
# A request object representing the call parameters. Required.
|
819
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
820
|
+
# Uri, Body, Query string parameters
|
821
|
+
def transcode_resize_request request_pb
|
822
|
+
uri = "/compute/v1/projects/#{request_pb.project}/zones/#{request_pb.zone}/instanceGroupManagers/#{request_pb.instance_group_manager}/resize"
|
823
|
+
body = nil
|
824
|
+
query_string_params = {}
|
825
|
+
query_string_params["requestId"] = request_pb.request_id.to_s if request_pb.has_request_id?
|
826
|
+
query_string_params["size"] = request_pb.size.to_s
|
827
|
+
|
828
|
+
[uri, body, query_string_params]
|
829
|
+
end
|
830
|
+
|
831
|
+
##
|
832
|
+
# Baseline implementation for the set_instance_template REST call
|
833
|
+
#
|
834
|
+
# @param request_pb [::Google::Cloud::Compute::V1::SetInstanceTemplateInstanceGroupManagerRequest]
|
835
|
+
# A request object representing the call parameters. Required.
|
836
|
+
# @param options [::Gapic::CallOptions]
|
837
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
838
|
+
#
|
839
|
+
# @yield [result, response] Access the result along with the Faraday response object
|
840
|
+
# @yieldparam result [::Google::Cloud::Compute::V1::Operation]
|
841
|
+
# @yieldparam response [::Faraday::Response]
|
842
|
+
#
|
843
|
+
# @return [::Google::Cloud::Compute::V1::Operation]
|
844
|
+
# A result object deserialized from the server's reply
|
845
|
+
def set_instance_template request_pb, options = nil
|
846
|
+
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
847
|
+
|
848
|
+
uri, body, query_string_params = transcode_set_instance_template_request request_pb
|
849
|
+
response = @client_stub.make_post_request(
|
850
|
+
uri: uri,
|
851
|
+
body: body,
|
852
|
+
params: query_string_params,
|
853
|
+
options: options
|
854
|
+
)
|
855
|
+
result = ::Google::Cloud::Compute::V1::Operation.decode_json response.body, ignore_unknown_fields: true
|
856
|
+
|
857
|
+
yield result, response if block_given?
|
858
|
+
result
|
859
|
+
end
|
860
|
+
|
861
|
+
##
|
862
|
+
# GRPC transcoding helper method for the set_instance_template REST call
|
863
|
+
#
|
864
|
+
# @param request_pb [::Google::Cloud::Compute::V1::SetInstanceTemplateInstanceGroupManagerRequest]
|
865
|
+
# A request object representing the call parameters. Required.
|
866
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
867
|
+
# Uri, Body, Query string parameters
|
868
|
+
def transcode_set_instance_template_request request_pb
|
869
|
+
uri = "/compute/v1/projects/#{request_pb.project}/zones/#{request_pb.zone}/instanceGroupManagers/#{request_pb.instance_group_manager}/setInstanceTemplate"
|
870
|
+
body = request_pb.instance_group_managers_set_instance_template_request_resource.to_json
|
871
|
+
query_string_params = {}
|
872
|
+
query_string_params["requestId"] = request_pb.request_id.to_s if request_pb.has_request_id?
|
873
|
+
|
874
|
+
[uri, body, query_string_params]
|
875
|
+
end
|
876
|
+
|
877
|
+
##
|
878
|
+
# Baseline implementation for the set_target_pools REST call
|
879
|
+
#
|
880
|
+
# @param request_pb [::Google::Cloud::Compute::V1::SetTargetPoolsInstanceGroupManagerRequest]
|
881
|
+
# A request object representing the call parameters. Required.
|
882
|
+
# @param options [::Gapic::CallOptions]
|
883
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
884
|
+
#
|
885
|
+
# @yield [result, response] Access the result along with the Faraday response object
|
886
|
+
# @yieldparam result [::Google::Cloud::Compute::V1::Operation]
|
887
|
+
# @yieldparam response [::Faraday::Response]
|
888
|
+
#
|
889
|
+
# @return [::Google::Cloud::Compute::V1::Operation]
|
890
|
+
# A result object deserialized from the server's reply
|
891
|
+
def set_target_pools request_pb, options = nil
|
892
|
+
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
893
|
+
|
894
|
+
uri, body, query_string_params = transcode_set_target_pools_request request_pb
|
895
|
+
response = @client_stub.make_post_request(
|
896
|
+
uri: uri,
|
897
|
+
body: body,
|
898
|
+
params: query_string_params,
|
899
|
+
options: options
|
900
|
+
)
|
901
|
+
result = ::Google::Cloud::Compute::V1::Operation.decode_json response.body, ignore_unknown_fields: true
|
902
|
+
|
903
|
+
yield result, response if block_given?
|
904
|
+
result
|
905
|
+
end
|
906
|
+
|
907
|
+
##
|
908
|
+
# GRPC transcoding helper method for the set_target_pools REST call
|
909
|
+
#
|
910
|
+
# @param request_pb [::Google::Cloud::Compute::V1::SetTargetPoolsInstanceGroupManagerRequest]
|
911
|
+
# A request object representing the call parameters. Required.
|
912
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
913
|
+
# Uri, Body, Query string parameters
|
914
|
+
def transcode_set_target_pools_request request_pb
|
915
|
+
uri = "/compute/v1/projects/#{request_pb.project}/zones/#{request_pb.zone}/instanceGroupManagers/#{request_pb.instance_group_manager}/setTargetPools"
|
916
|
+
body = request_pb.instance_group_managers_set_target_pools_request_resource.to_json
|
917
|
+
query_string_params = {}
|
918
|
+
query_string_params["requestId"] = request_pb.request_id.to_s if request_pb.has_request_id?
|
919
|
+
|
920
|
+
[uri, body, query_string_params]
|
921
|
+
end
|
922
|
+
|
923
|
+
##
|
924
|
+
# Baseline implementation for the update_per_instance_configs REST call
|
925
|
+
#
|
926
|
+
# @param request_pb [::Google::Cloud::Compute::V1::UpdatePerInstanceConfigsInstanceGroupManagerRequest]
|
927
|
+
# A request object representing the call parameters. Required.
|
928
|
+
# @param options [::Gapic::CallOptions]
|
929
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
930
|
+
#
|
931
|
+
# @yield [result, response] Access the result along with the Faraday response object
|
932
|
+
# @yieldparam result [::Google::Cloud::Compute::V1::Operation]
|
933
|
+
# @yieldparam response [::Faraday::Response]
|
934
|
+
#
|
935
|
+
# @return [::Google::Cloud::Compute::V1::Operation]
|
936
|
+
# A result object deserialized from the server's reply
|
937
|
+
def update_per_instance_configs request_pb, options = nil
|
938
|
+
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
939
|
+
|
940
|
+
uri, body, query_string_params = transcode_update_per_instance_configs_request request_pb
|
941
|
+
response = @client_stub.make_post_request(
|
942
|
+
uri: uri,
|
943
|
+
body: body,
|
944
|
+
params: query_string_params,
|
945
|
+
options: options
|
946
|
+
)
|
947
|
+
result = ::Google::Cloud::Compute::V1::Operation.decode_json response.body, ignore_unknown_fields: true
|
948
|
+
|
949
|
+
yield result, response if block_given?
|
950
|
+
result
|
951
|
+
end
|
952
|
+
|
953
|
+
##
|
954
|
+
# GRPC transcoding helper method for the update_per_instance_configs REST call
|
955
|
+
#
|
956
|
+
# @param request_pb [::Google::Cloud::Compute::V1::UpdatePerInstanceConfigsInstanceGroupManagerRequest]
|
957
|
+
# A request object representing the call parameters. Required.
|
958
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
959
|
+
# Uri, Body, Query string parameters
|
960
|
+
def transcode_update_per_instance_configs_request request_pb
|
961
|
+
uri = "/compute/v1/projects/#{request_pb.project}/zones/#{request_pb.zone}/instanceGroupManagers/#{request_pb.instance_group_manager}/updatePerInstanceConfigs"
|
962
|
+
body = request_pb.instance_group_managers_update_per_instance_configs_req_resource.to_json
|
963
|
+
query_string_params = {}
|
964
|
+
query_string_params["requestId"] = request_pb.request_id.to_s if request_pb.has_request_id?
|
965
|
+
|
966
|
+
[uri, body, query_string_params]
|
967
|
+
end
|
968
|
+
end
|
969
|
+
end
|
970
|
+
end
|
971
|
+
end
|
972
|
+
end
|
973
|
+
end
|
974
|
+
end
|