Module: Google::Cloud::Compute::V1::RegionInstanceGroupManagers::Rest::GrpcTranscoding
- Extended by:
- GrpcTranscoding
- Included in:
- GrpcTranscoding
- Defined in:
- lib/google/cloud/compute/v1/region_instance_group_managers/rest/grpc_transcoding.rb
Overview
GRPC transcoding helper methods for the RegionInstanceGroupManagers REST API.
Instance Method Summary collapse
-
#transcode_abandon_instances(request_pb) ⇒ Array(String, [String, nil], Hash{String => String})
Uri, Body, Query string parameters.
-
#transcode_apply_updates_to_instances(request_pb) ⇒ Array(String, [String, nil], Hash{String => String})
Uri, Body, Query string parameters.
-
#transcode_create_instances(request_pb) ⇒ Array(String, [String, nil], Hash{String => String})
Uri, Body, Query string parameters.
-
#transcode_delete(request_pb) ⇒ Array(String, [String, nil], Hash{String => String})
Uri, Body, Query string parameters.
-
#transcode_delete_instances(request_pb) ⇒ Array(String, [String, nil], Hash{String => String})
Uri, Body, Query string parameters.
-
#transcode_delete_per_instance_configs(request_pb) ⇒ Array(String, [String, nil], Hash{String => String})
Uri, Body, Query string parameters.
-
#transcode_get(request_pb) ⇒ Array(String, [String, nil], Hash{String => String})
Uri, Body, Query string parameters.
-
#transcode_insert(request_pb) ⇒ Array(String, [String, nil], Hash{String => String})
Uri, Body, Query string parameters.
-
#transcode_list(request_pb) ⇒ Array(String, [String, nil], Hash{String => String})
Uri, Body, Query string parameters.
-
#transcode_list_errors(request_pb) ⇒ Array(String, [String, nil], Hash{String => String})
Uri, Body, Query string parameters.
-
#transcode_list_managed_instances(request_pb) ⇒ Array(String, [String, nil], Hash{String => String})
Uri, Body, Query string parameters.
-
#transcode_list_per_instance_configs(request_pb) ⇒ Array(String, [String, nil], Hash{String => String})
Uri, Body, Query string parameters.
-
#transcode_patch(request_pb) ⇒ Array(String, [String, nil], Hash{String => String})
Uri, Body, Query string parameters.
-
#transcode_patch_per_instance_configs(request_pb) ⇒ Array(String, [String, nil], Hash{String => String})
Uri, Body, Query string parameters.
-
#transcode_recreate_instances(request_pb) ⇒ Array(String, [String, nil], Hash{String => String})
Uri, Body, Query string parameters.
-
#transcode_resize(request_pb) ⇒ Array(String, [String, nil], Hash{String => String})
Uri, Body, Query string parameters.
-
#transcode_set_instance_template(request_pb) ⇒ Array(String, [String, nil], Hash{String => String})
Uri, Body, Query string parameters.
-
#transcode_set_target_pools(request_pb) ⇒ Array(String, [String, nil], Hash{String => String})
Uri, Body, Query string parameters.
-
#transcode_update_per_instance_configs(request_pb) ⇒ Array(String, [String, nil], Hash{String => String})
Uri, Body, Query string parameters.
Instance Method Details
#transcode_abandon_instances(request_pb) ⇒ Array(String, [String, nil], Hash{String => String})
Returns Uri, Body, Query string parameters.
32 33 34 35 36 37 38 39 |
# File 'lib/google/cloud/compute/v1/region_instance_group_managers/rest/grpc_transcoding.rb', line 32 def transcode_abandon_instances request_pb uri = "/compute/v1/projects/#{request_pb.project}/regions/#{request_pb.region}/instanceGroupManagers/#{request_pb.instance_group_manager}/abandonInstances" body = request_pb.region_instance_group_managers_abandon_instances_request_resource.to_json query_string_params = {} query_string_params["requestId"] = request_pb.request_id.to_s if request_pb.has_request_id? [uri, body, query_string_params] end |
#transcode_apply_updates_to_instances(request_pb) ⇒ Array(String, [String, nil], Hash{String => String})
Returns Uri, Body, Query string parameters.
45 46 47 48 49 50 51 |
# File 'lib/google/cloud/compute/v1/region_instance_group_managers/rest/grpc_transcoding.rb', line 45 def transcode_apply_updates_to_instances request_pb uri = "/compute/v1/projects/#{request_pb.project}/regions/#{request_pb.region}/instanceGroupManagers/#{request_pb.instance_group_manager}/applyUpdatesToInstances" body = request_pb.region_instance_group_managers_apply_updates_request_resource.to_json query_string_params = {} [uri, body, query_string_params] end |
#transcode_create_instances(request_pb) ⇒ Array(String, [String, nil], Hash{String => String})
Returns Uri, Body, Query string parameters.
57 58 59 60 61 62 63 64 |
# File 'lib/google/cloud/compute/v1/region_instance_group_managers/rest/grpc_transcoding.rb', line 57 def transcode_create_instances request_pb uri = "/compute/v1/projects/#{request_pb.project}/regions/#{request_pb.region}/instanceGroupManagers/#{request_pb.instance_group_manager}/createInstances" body = request_pb.region_instance_group_managers_create_instances_request_resource.to_json query_string_params = {} query_string_params["requestId"] = request_pb.request_id.to_s if request_pb.has_request_id? [uri, body, query_string_params] end |
#transcode_delete(request_pb) ⇒ Array(String, [String, nil], Hash{String => String})
Returns Uri, Body, Query string parameters.
70 71 72 73 74 75 76 77 |
# File 'lib/google/cloud/compute/v1/region_instance_group_managers/rest/grpc_transcoding.rb', line 70 def transcode_delete request_pb uri = "/compute/v1/projects/#{request_pb.project}/regions/#{request_pb.region}/instanceGroupManagers/#{request_pb.instance_group_manager}" body = nil query_string_params = {} query_string_params["requestId"] = request_pb.request_id.to_s if request_pb.has_request_id? [uri, body, query_string_params] end |
#transcode_delete_instances(request_pb) ⇒ Array(String, [String, nil], Hash{String => String})
Returns Uri, Body, Query string parameters.
83 84 85 86 87 88 89 90 |
# File 'lib/google/cloud/compute/v1/region_instance_group_managers/rest/grpc_transcoding.rb', line 83 def transcode_delete_instances request_pb uri = "/compute/v1/projects/#{request_pb.project}/regions/#{request_pb.region}/instanceGroupManagers/#{request_pb.instance_group_manager}/deleteInstances" body = request_pb.region_instance_group_managers_delete_instances_request_resource.to_json query_string_params = {} query_string_params["requestId"] = request_pb.request_id.to_s if request_pb.has_request_id? [uri, body, query_string_params] end |
#transcode_delete_per_instance_configs(request_pb) ⇒ Array(String, [String, nil], Hash{String => String})
Returns Uri, Body, Query string parameters.
96 97 98 99 100 101 102 |
# File 'lib/google/cloud/compute/v1/region_instance_group_managers/rest/grpc_transcoding.rb', line 96 def transcode_delete_per_instance_configs request_pb uri = "/compute/v1/projects/#{request_pb.project}/regions/#{request_pb.region}/instanceGroupManagers/#{request_pb.instance_group_manager}/deletePerInstanceConfigs" body = request_pb.region_instance_group_manager_delete_instance_config_req_resource.to_json query_string_params = {} [uri, body, query_string_params] end |
#transcode_get(request_pb) ⇒ Array(String, [String, nil], Hash{String => String})
Returns Uri, Body, Query string parameters.
108 109 110 111 112 113 114 |
# File 'lib/google/cloud/compute/v1/region_instance_group_managers/rest/grpc_transcoding.rb', line 108 def transcode_get request_pb uri = "/compute/v1/projects/#{request_pb.project}/regions/#{request_pb.region}/instanceGroupManagers/#{request_pb.instance_group_manager}" body = nil query_string_params = {} [uri, body, query_string_params] end |
#transcode_insert(request_pb) ⇒ Array(String, [String, nil], Hash{String => String})
Returns Uri, Body, Query string parameters.
120 121 122 123 124 125 126 127 |
# File 'lib/google/cloud/compute/v1/region_instance_group_managers/rest/grpc_transcoding.rb', line 120 def transcode_insert request_pb uri = "/compute/v1/projects/#{request_pb.project}/regions/#{request_pb.region}/instanceGroupManagers" body = request_pb.instance_group_manager_resource.to_json query_string_params = {} query_string_params["requestId"] = request_pb.request_id.to_s if request_pb.has_request_id? [uri, body, query_string_params] end |
#transcode_list(request_pb) ⇒ Array(String, [String, nil], Hash{String => String})
Returns Uri, Body, Query string parameters.
133 134 135 136 137 138 139 140 141 142 143 144 |
# File 'lib/google/cloud/compute/v1/region_instance_group_managers/rest/grpc_transcoding.rb', line 133 def transcode_list request_pb uri = "/compute/v1/projects/#{request_pb.project}/regions/#{request_pb.region}/instanceGroupManagers" body = nil query_string_params = {} query_string_params["filter"] = request_pb.filter.to_s if request_pb.has_filter? query_string_params["maxResults"] = request_pb.max_results.to_s if request_pb.has_max_results? query_string_params["orderBy"] = request_pb.order_by.to_s if request_pb.has_order_by? query_string_params["pageToken"] = request_pb.page_token.to_s if request_pb.has_page_token? query_string_params["returnPartialSuccess"] = request_pb.return_partial_success.to_s if request_pb.has_return_partial_success? [uri, body, query_string_params] end |
#transcode_list_errors(request_pb) ⇒ Array(String, [String, nil], Hash{String => String})
Returns Uri, Body, Query string parameters.
150 151 152 153 154 155 156 157 158 159 160 161 |
# File 'lib/google/cloud/compute/v1/region_instance_group_managers/rest/grpc_transcoding.rb', line 150 def transcode_list_errors request_pb uri = "/compute/v1/projects/#{request_pb.project}/regions/#{request_pb.region}/instanceGroupManagers/#{request_pb.instance_group_manager}/listErrors" body = nil query_string_params = {} query_string_params["filter"] = request_pb.filter.to_s if request_pb.has_filter? query_string_params["maxResults"] = request_pb.max_results.to_s if request_pb.has_max_results? query_string_params["orderBy"] = request_pb.order_by.to_s if request_pb.has_order_by? query_string_params["pageToken"] = request_pb.page_token.to_s if request_pb.has_page_token? query_string_params["returnPartialSuccess"] = request_pb.return_partial_success.to_s if request_pb.has_return_partial_success? [uri, body, query_string_params] end |
#transcode_list_managed_instances(request_pb) ⇒ Array(String, [String, nil], Hash{String => String})
Returns Uri, Body, Query string parameters.
167 168 169 170 171 172 173 174 175 176 177 178 |
# File 'lib/google/cloud/compute/v1/region_instance_group_managers/rest/grpc_transcoding.rb', line 167 def transcode_list_managed_instances request_pb uri = "/compute/v1/projects/#{request_pb.project}/regions/#{request_pb.region}/instanceGroupManagers/#{request_pb.instance_group_manager}/listManagedInstances" body = nil query_string_params = {} query_string_params["filter"] = request_pb.filter.to_s if request_pb.has_filter? query_string_params["maxResults"] = request_pb.max_results.to_s if request_pb.has_max_results? query_string_params["orderBy"] = request_pb.order_by.to_s if request_pb.has_order_by? query_string_params["pageToken"] = request_pb.page_token.to_s if request_pb.has_page_token? query_string_params["returnPartialSuccess"] = request_pb.return_partial_success.to_s if request_pb.has_return_partial_success? [uri, body, query_string_params] end |
#transcode_list_per_instance_configs(request_pb) ⇒ Array(String, [String, nil], Hash{String => String})
Returns Uri, Body, Query string parameters.
184 185 186 187 188 189 190 191 192 193 194 195 |
# File 'lib/google/cloud/compute/v1/region_instance_group_managers/rest/grpc_transcoding.rb', line 184 def transcode_list_per_instance_configs request_pb uri = "/compute/v1/projects/#{request_pb.project}/regions/#{request_pb.region}/instanceGroupManagers/#{request_pb.instance_group_manager}/listPerInstanceConfigs" body = nil query_string_params = {} query_string_params["filter"] = request_pb.filter.to_s if request_pb.has_filter? query_string_params["maxResults"] = request_pb.max_results.to_s if request_pb.has_max_results? query_string_params["orderBy"] = request_pb.order_by.to_s if request_pb.has_order_by? query_string_params["pageToken"] = request_pb.page_token.to_s if request_pb.has_page_token? query_string_params["returnPartialSuccess"] = request_pb.return_partial_success.to_s if request_pb.has_return_partial_success? [uri, body, query_string_params] end |
#transcode_patch(request_pb) ⇒ Array(String, [String, nil], Hash{String => String})
Returns Uri, Body, Query string parameters.
201 202 203 204 205 206 207 208 |
# File 'lib/google/cloud/compute/v1/region_instance_group_managers/rest/grpc_transcoding.rb', line 201 def transcode_patch request_pb uri = "/compute/v1/projects/#{request_pb.project}/regions/#{request_pb.region}/instanceGroupManagers/#{request_pb.instance_group_manager}" body = request_pb.instance_group_manager_resource.to_json query_string_params = {} query_string_params["requestId"] = request_pb.request_id.to_s if request_pb.has_request_id? [uri, body, query_string_params] end |
#transcode_patch_per_instance_configs(request_pb) ⇒ Array(String, [String, nil], Hash{String => String})
Returns Uri, Body, Query string parameters.
214 215 216 217 218 219 220 221 |
# File 'lib/google/cloud/compute/v1/region_instance_group_managers/rest/grpc_transcoding.rb', line 214 def transcode_patch_per_instance_configs request_pb uri = "/compute/v1/projects/#{request_pb.project}/regions/#{request_pb.region}/instanceGroupManagers/#{request_pb.instance_group_manager}/patchPerInstanceConfigs" body = request_pb.region_instance_group_manager_patch_instance_config_req_resource.to_json query_string_params = {} query_string_params["requestId"] = request_pb.request_id.to_s if request_pb.has_request_id? [uri, body, query_string_params] end |
#transcode_recreate_instances(request_pb) ⇒ Array(String, [String, nil], Hash{String => String})
Returns Uri, Body, Query string parameters.
227 228 229 230 231 232 233 234 |
# File 'lib/google/cloud/compute/v1/region_instance_group_managers/rest/grpc_transcoding.rb', line 227 def transcode_recreate_instances request_pb uri = "/compute/v1/projects/#{request_pb.project}/regions/#{request_pb.region}/instanceGroupManagers/#{request_pb.instance_group_manager}/recreateInstances" body = request_pb.region_instance_group_managers_recreate_request_resource.to_json query_string_params = {} query_string_params["requestId"] = request_pb.request_id.to_s if request_pb.has_request_id? [uri, body, query_string_params] end |
#transcode_resize(request_pb) ⇒ Array(String, [String, nil], Hash{String => String})
Returns Uri, Body, Query string parameters.
240 241 242 243 244 245 246 247 248 |
# File 'lib/google/cloud/compute/v1/region_instance_group_managers/rest/grpc_transcoding.rb', line 240 def transcode_resize request_pb uri = "/compute/v1/projects/#{request_pb.project}/regions/#{request_pb.region}/instanceGroupManagers/#{request_pb.instance_group_manager}/resize" body = nil query_string_params = {} query_string_params["requestId"] = request_pb.request_id.to_s if request_pb.has_request_id? query_string_params["size"] = request_pb.size.to_s [uri, body, query_string_params] end |
#transcode_set_instance_template(request_pb) ⇒ Array(String, [String, nil], Hash{String => String})
Returns Uri, Body, Query string parameters.
254 255 256 257 258 259 260 261 |
# File 'lib/google/cloud/compute/v1/region_instance_group_managers/rest/grpc_transcoding.rb', line 254 def transcode_set_instance_template request_pb uri = "/compute/v1/projects/#{request_pb.project}/regions/#{request_pb.region}/instanceGroupManagers/#{request_pb.instance_group_manager}/setInstanceTemplate" body = request_pb.region_instance_group_managers_set_template_request_resource.to_json query_string_params = {} query_string_params["requestId"] = request_pb.request_id.to_s if request_pb.has_request_id? [uri, body, query_string_params] end |
#transcode_set_target_pools(request_pb) ⇒ Array(String, [String, nil], Hash{String => String})
Returns Uri, Body, Query string parameters.
267 268 269 270 271 272 273 274 |
# File 'lib/google/cloud/compute/v1/region_instance_group_managers/rest/grpc_transcoding.rb', line 267 def transcode_set_target_pools request_pb uri = "/compute/v1/projects/#{request_pb.project}/regions/#{request_pb.region}/instanceGroupManagers/#{request_pb.instance_group_manager}/setTargetPools" body = request_pb.region_instance_group_managers_set_target_pools_request_resource.to_json query_string_params = {} query_string_params["requestId"] = request_pb.request_id.to_s if request_pb.has_request_id? [uri, body, query_string_params] end |
#transcode_update_per_instance_configs(request_pb) ⇒ Array(String, [String, nil], Hash{String => String})
Returns Uri, Body, Query string parameters.
280 281 282 283 284 285 286 287 |
# File 'lib/google/cloud/compute/v1/region_instance_group_managers/rest/grpc_transcoding.rb', line 280 def transcode_update_per_instance_configs request_pb uri = "/compute/v1/projects/#{request_pb.project}/regions/#{request_pb.region}/instanceGroupManagers/#{request_pb.instance_group_manager}/updatePerInstanceConfigs" body = request_pb.region_instance_group_manager_update_instance_config_req_resource.to_json query_string_params = {} query_string_params["requestId"] = request_pb.request_id.to_s if request_pb.has_request_id? [uri, body, query_string_params] end |