Module: Google::Cloud::Compute::V1::RegionInstanceGroups::Rest::GrpcTranscoding
- Extended by:
- GrpcTranscoding
- Included in:
- GrpcTranscoding
- Defined in:
- lib/google/cloud/compute/v1/region_instance_groups/rest/grpc_transcoding.rb
Overview
GRPC transcoding helper methods for the RegionInstanceGroups REST API.
Instance Method Summary collapse
-
#transcode_get(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_instances(request_pb) ⇒ Array(String, [String, nil], Hash{String => String})
Uri, Body, Query string parameters.
-
#transcode_set_named_ports(request_pb) ⇒ Array(String, [String, nil], Hash{String => String})
Uri, Body, Query string parameters.
Instance Method Details
#transcode_get(request_pb) ⇒ Array(String, [String, nil], Hash{String => String})
Returns Uri, Body, Query string parameters.
32 33 34 35 36 37 38 |
# File 'lib/google/cloud/compute/v1/region_instance_groups/rest/grpc_transcoding.rb', line 32 def transcode_get request_pb uri = "/compute/v1/projects/#{request_pb.project}/regions/#{request_pb.region}/instanceGroups/#{request_pb.instance_group}" body = nil query_string_params = {} [uri, body, query_string_params] end |
#transcode_list(request_pb) ⇒ Array(String, [String, nil], Hash{String => String})
Returns Uri, Body, Query string parameters.
44 45 46 47 48 49 50 51 52 53 54 55 |
# File 'lib/google/cloud/compute/v1/region_instance_groups/rest/grpc_transcoding.rb', line 44 def transcode_list request_pb uri = "/compute/v1/projects/#{request_pb.project}/regions/#{request_pb.region}/instanceGroups" 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_instances(request_pb) ⇒ Array(String, [String, nil], Hash{String => String})
Returns Uri, Body, Query string parameters.
61 62 63 64 65 66 67 68 69 70 71 72 |
# File 'lib/google/cloud/compute/v1/region_instance_groups/rest/grpc_transcoding.rb', line 61 def transcode_list_instances request_pb uri = "/compute/v1/projects/#{request_pb.project}/regions/#{request_pb.region}/instanceGroups/#{request_pb.instance_group}/listInstances" body = request_pb.region_instance_groups_list_instances_request_resource.to_json 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_set_named_ports(request_pb) ⇒ Array(String, [String, nil], Hash{String => String})
Returns Uri, Body, Query string parameters.
78 79 80 81 82 83 84 85 |
# File 'lib/google/cloud/compute/v1/region_instance_groups/rest/grpc_transcoding.rb', line 78 def transcode_set_named_ports request_pb uri = "/compute/v1/projects/#{request_pb.project}/regions/#{request_pb.region}/instanceGroups/#{request_pb.instance_group}/setNamedPorts" body = request_pb.region_instance_groups_set_named_ports_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 |