Module: Google::Cloud::Compute::V1::Networks::Rest::GrpcTranscoding
- Extended by:
- GrpcTranscoding
- Included in:
- GrpcTranscoding
- Defined in:
- lib/google/cloud/compute/v1/networks/rest/grpc_transcoding.rb
Overview
GRPC transcoding helper methods for the Networks REST API.
Instance Method Summary collapse
-
#transcode_add_peering(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_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_peering_routes(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_remove_peering(request_pb) ⇒ Array(String, [String, nil], Hash{String => String})
Uri, Body, Query string parameters.
-
#transcode_switch_to_custom_mode(request_pb) ⇒ Array(String, [String, nil], Hash{String => String})
Uri, Body, Query string parameters.
-
#transcode_update_peering(request_pb) ⇒ Array(String, [String, nil], Hash{String => String})
Uri, Body, Query string parameters.
Instance Method Details
#transcode_add_peering(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/networks/rest/grpc_transcoding.rb', line 32 def transcode_add_peering request_pb uri = "/compute/v1/projects/#{request_pb.project}/global/networks/#{request_pb.network}/addPeering" body = request_pb.networks_add_peering_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.
45 46 47 48 49 50 51 52 |
# File 'lib/google/cloud/compute/v1/networks/rest/grpc_transcoding.rb', line 45 def transcode_delete request_pb uri = "/compute/v1/projects/#{request_pb.project}/global/networks/#{request_pb.network}" 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_get(request_pb) ⇒ Array(String, [String, nil], Hash{String => String})
Returns Uri, Body, Query string parameters.
58 59 60 61 62 63 64 |
# File 'lib/google/cloud/compute/v1/networks/rest/grpc_transcoding.rb', line 58 def transcode_get request_pb uri = "/compute/v1/projects/#{request_pb.project}/global/networks/#{request_pb.network}" 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.
70 71 72 73 74 75 76 77 |
# File 'lib/google/cloud/compute/v1/networks/rest/grpc_transcoding.rb', line 70 def transcode_insert request_pb uri = "/compute/v1/projects/#{request_pb.project}/global/networks" body = request_pb.network_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.
83 84 85 86 87 88 89 90 91 92 93 94 |
# File 'lib/google/cloud/compute/v1/networks/rest/grpc_transcoding.rb', line 83 def transcode_list request_pb uri = "/compute/v1/projects/#{request_pb.project}/global/networks" 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_peering_routes(request_pb) ⇒ Array(String, [String, nil], Hash{String => String})
Returns Uri, Body, Query string parameters.
100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 |
# File 'lib/google/cloud/compute/v1/networks/rest/grpc_transcoding.rb', line 100 def transcode_list_peering_routes request_pb uri = "/compute/v1/projects/#{request_pb.project}/global/networks/#{request_pb.network}/listPeeringRoutes" body = nil query_string_params = {} query_string_params["direction"] = request_pb.direction.to_s if request_pb.has_direction? 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["peeringName"] = request_pb.peering_name.to_s if request_pb.has_peering_name? query_string_params["region"] = request_pb.region.to_s if request_pb.has_region? 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.
120 121 122 123 124 125 126 127 |
# File 'lib/google/cloud/compute/v1/networks/rest/grpc_transcoding.rb', line 120 def transcode_patch request_pb uri = "/compute/v1/projects/#{request_pb.project}/global/networks/#{request_pb.network}" body = request_pb.network_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_remove_peering(request_pb) ⇒ Array(String, [String, nil], Hash{String => String})
Returns Uri, Body, Query string parameters.
133 134 135 136 137 138 139 140 |
# File 'lib/google/cloud/compute/v1/networks/rest/grpc_transcoding.rb', line 133 def transcode_remove_peering request_pb uri = "/compute/v1/projects/#{request_pb.project}/global/networks/#{request_pb.network}/removePeering" body = request_pb.networks_remove_peering_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_switch_to_custom_mode(request_pb) ⇒ Array(String, [String, nil], Hash{String => String})
Returns Uri, Body, Query string parameters.
146 147 148 149 150 151 152 153 |
# File 'lib/google/cloud/compute/v1/networks/rest/grpc_transcoding.rb', line 146 def transcode_switch_to_custom_mode request_pb uri = "/compute/v1/projects/#{request_pb.project}/global/networks/#{request_pb.network}/switchToCustomMode" 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_update_peering(request_pb) ⇒ Array(String, [String, nil], Hash{String => String})
Returns Uri, Body, Query string parameters.
159 160 161 162 163 164 165 166 |
# File 'lib/google/cloud/compute/v1/networks/rest/grpc_transcoding.rb', line 159 def transcode_update_peering request_pb uri = "/compute/v1/projects/#{request_pb.project}/global/networks/#{request_pb.network}/updatePeering" body = request_pb.networks_update_peering_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 |