Module: Google::Cloud::Compute::V1::Projects::Rest::GrpcTranscoding
- Extended by:
- GrpcTranscoding
- Included in:
- GrpcTranscoding
- Defined in:
- lib/google/cloud/compute/v1/projects/rest/grpc_transcoding.rb
Overview
GRPC transcoding helper methods for the Projects REST API.
Instance Method Summary collapse
-
#transcode_disable_xpn_host(request_pb) ⇒ Array(String, [String, nil], Hash{String => String})
Uri, Body, Query string parameters.
-
#transcode_disable_xpn_resource(request_pb) ⇒ Array(String, [String, nil], Hash{String => String})
Uri, Body, Query string parameters.
-
#transcode_enable_xpn_host(request_pb) ⇒ Array(String, [String, nil], Hash{String => String})
Uri, Body, Query string parameters.
-
#transcode_enable_xpn_resource(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_get_xpn_host(request_pb) ⇒ Array(String, [String, nil], Hash{String => String})
Uri, Body, Query string parameters.
-
#transcode_get_xpn_resources(request_pb) ⇒ Array(String, [String, nil], Hash{String => String})
Uri, Body, Query string parameters.
-
#transcode_list_xpn_hosts(request_pb) ⇒ Array(String, [String, nil], Hash{String => String})
Uri, Body, Query string parameters.
-
#transcode_move_disk(request_pb) ⇒ Array(String, [String, nil], Hash{String => String})
Uri, Body, Query string parameters.
-
#transcode_move_instance(request_pb) ⇒ Array(String, [String, nil], Hash{String => String})
Uri, Body, Query string parameters.
-
#transcode_set_common_instance_metadata(request_pb) ⇒ Array(String, [String, nil], Hash{String => String})
Uri, Body, Query string parameters.
-
#transcode_set_default_network_tier(request_pb) ⇒ Array(String, [String, nil], Hash{String => String})
Uri, Body, Query string parameters.
-
#transcode_set_usage_export_bucket(request_pb) ⇒ Array(String, [String, nil], Hash{String => String})
Uri, Body, Query string parameters.
Instance Method Details
#transcode_disable_xpn_host(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/projects/rest/grpc_transcoding.rb', line 32 def transcode_disable_xpn_host request_pb uri = "/compute/v1/projects/#{request_pb.project}/disableXpnHost" 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_disable_xpn_resource(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/projects/rest/grpc_transcoding.rb', line 45 def transcode_disable_xpn_resource request_pb uri = "/compute/v1/projects/#{request_pb.project}/disableXpnResource" body = request_pb.projects_disable_xpn_resource_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_enable_xpn_host(request_pb) ⇒ Array(String, [String, nil], Hash{String => String})
Returns Uri, Body, Query string parameters.
58 59 60 61 62 63 64 65 |
# File 'lib/google/cloud/compute/v1/projects/rest/grpc_transcoding.rb', line 58 def transcode_enable_xpn_host request_pb uri = "/compute/v1/projects/#{request_pb.project}/enableXpnHost" 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_enable_xpn_resource(request_pb) ⇒ Array(String, [String, nil], Hash{String => String})
Returns Uri, Body, Query string parameters.
71 72 73 74 75 76 77 78 |
# File 'lib/google/cloud/compute/v1/projects/rest/grpc_transcoding.rb', line 71 def transcode_enable_xpn_resource request_pb uri = "/compute/v1/projects/#{request_pb.project}/enableXpnResource" body = request_pb.projects_enable_xpn_resource_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_get(request_pb) ⇒ Array(String, [String, nil], Hash{String => String})
Returns Uri, Body, Query string parameters.
84 85 86 87 88 89 90 |
# File 'lib/google/cloud/compute/v1/projects/rest/grpc_transcoding.rb', line 84 def transcode_get request_pb uri = "/compute/v1/projects/#{request_pb.project}" body = nil query_string_params = {} [uri, body, query_string_params] end |
#transcode_get_xpn_host(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/projects/rest/grpc_transcoding.rb', line 96 def transcode_get_xpn_host request_pb uri = "/compute/v1/projects/#{request_pb.project}/getXpnHost" body = nil query_string_params = {} [uri, body, query_string_params] end |
#transcode_get_xpn_resources(request_pb) ⇒ Array(String, [String, nil], Hash{String => String})
Returns Uri, Body, Query string parameters.
108 109 110 111 112 113 114 115 116 117 118 119 |
# File 'lib/google/cloud/compute/v1/projects/rest/grpc_transcoding.rb', line 108 def transcode_get_xpn_resources request_pb uri = "/compute/v1/projects/#{request_pb.project}/getXpnResources" 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_xpn_hosts(request_pb) ⇒ Array(String, [String, nil], Hash{String => String})
Returns Uri, Body, Query string parameters.
125 126 127 128 129 130 131 132 133 134 135 136 |
# File 'lib/google/cloud/compute/v1/projects/rest/grpc_transcoding.rb', line 125 def transcode_list_xpn_hosts request_pb uri = "/compute/v1/projects/#{request_pb.project}/listXpnHosts" body = request_pb.projects_list_xpn_hosts_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_move_disk(request_pb) ⇒ Array(String, [String, nil], Hash{String => String})
Returns Uri, Body, Query string parameters.
142 143 144 145 146 147 148 149 |
# File 'lib/google/cloud/compute/v1/projects/rest/grpc_transcoding.rb', line 142 def transcode_move_disk request_pb uri = "/compute/v1/projects/#{request_pb.project}/moveDisk" body = request_pb.disk_move_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_move_instance(request_pb) ⇒ Array(String, [String, nil], Hash{String => String})
Returns Uri, Body, Query string parameters.
155 156 157 158 159 160 161 162 |
# File 'lib/google/cloud/compute/v1/projects/rest/grpc_transcoding.rb', line 155 def transcode_move_instance request_pb uri = "/compute/v1/projects/#{request_pb.project}/moveInstance" body = request_pb.instance_move_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_common_instance_metadata(request_pb) ⇒ Array(String, [String, nil], Hash{String => String})
Returns Uri, Body, Query string parameters.
168 169 170 171 172 173 174 175 |
# File 'lib/google/cloud/compute/v1/projects/rest/grpc_transcoding.rb', line 168 def request_pb uri = "/compute/v1/projects/#{request_pb.project}/setCommonInstanceMetadata" body = request_pb..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_default_network_tier(request_pb) ⇒ Array(String, [String, nil], Hash{String => String})
Returns Uri, Body, Query string parameters.
181 182 183 184 185 186 187 188 |
# File 'lib/google/cloud/compute/v1/projects/rest/grpc_transcoding.rb', line 181 def transcode_set_default_network_tier request_pb uri = "/compute/v1/projects/#{request_pb.project}/setDefaultNetworkTier" body = request_pb.projects_set_default_network_tier_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_usage_export_bucket(request_pb) ⇒ Array(String, [String, nil], Hash{String => String})
Returns Uri, Body, Query string parameters.
194 195 196 197 198 199 200 201 |
# File 'lib/google/cloud/compute/v1/projects/rest/grpc_transcoding.rb', line 194 def transcode_set_usage_export_bucket request_pb uri = "/compute/v1/projects/#{request_pb.project}/setUsageExportBucket" body = request_pb.usage_export_location_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 |