Module: Google::Cloud::Compute::V1::TargetSslProxies::Rest::GrpcTranscoding
- Extended by:
- GrpcTranscoding
- Included in:
- GrpcTranscoding
- Defined in:
- lib/google/cloud/compute/v1/target_ssl_proxies/rest/grpc_transcoding.rb
Overview
GRPC transcoding helper methods for the TargetSslProxies REST API.
Instance Method Summary collapse
-
#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_set_backend_service(request_pb) ⇒ Array(String, [String, nil], Hash{String => String})
Uri, Body, Query string parameters.
-
#transcode_set_proxy_header(request_pb) ⇒ Array(String, [String, nil], Hash{String => String})
Uri, Body, Query string parameters.
-
#transcode_set_ssl_certificates(request_pb) ⇒ Array(String, [String, nil], Hash{String => String})
Uri, Body, Query string parameters.
-
#transcode_set_ssl_policy(request_pb) ⇒ Array(String, [String, nil], Hash{String => String})
Uri, Body, Query string parameters.
Instance Method Details
#transcode_delete(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/target_ssl_proxies/rest/grpc_transcoding.rb', line 32 def transcode_delete request_pb uri = "/compute/v1/projects/#{request_pb.project}/global/targetSslProxies/#{request_pb.target_ssl_proxy}" 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.
45 46 47 48 49 50 51 |
# File 'lib/google/cloud/compute/v1/target_ssl_proxies/rest/grpc_transcoding.rb', line 45 def transcode_get request_pb uri = "/compute/v1/projects/#{request_pb.project}/global/targetSslProxies/#{request_pb.target_ssl_proxy}" 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.
57 58 59 60 61 62 63 64 |
# File 'lib/google/cloud/compute/v1/target_ssl_proxies/rest/grpc_transcoding.rb', line 57 def transcode_insert request_pb uri = "/compute/v1/projects/#{request_pb.project}/global/targetSslProxies" body = request_pb.target_ssl_proxy_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.
70 71 72 73 74 75 76 77 78 79 80 81 |
# File 'lib/google/cloud/compute/v1/target_ssl_proxies/rest/grpc_transcoding.rb', line 70 def transcode_list request_pb uri = "/compute/v1/projects/#{request_pb.project}/global/targetSslProxies" 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_set_backend_service(request_pb) ⇒ Array(String, [String, nil], Hash{String => String})
Returns Uri, Body, Query string parameters.
87 88 89 90 91 92 93 94 |
# File 'lib/google/cloud/compute/v1/target_ssl_proxies/rest/grpc_transcoding.rb', line 87 def transcode_set_backend_service request_pb uri = "/compute/v1/projects/#{request_pb.project}/global/targetSslProxies/#{request_pb.target_ssl_proxy}/setBackendService" body = request_pb.target_ssl_proxies_set_backend_service_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_proxy_header(request_pb) ⇒ Array(String, [String, nil], Hash{String => String})
Returns Uri, Body, Query string parameters.
100 101 102 103 104 105 106 107 |
# File 'lib/google/cloud/compute/v1/target_ssl_proxies/rest/grpc_transcoding.rb', line 100 def transcode_set_proxy_header request_pb uri = "/compute/v1/projects/#{request_pb.project}/global/targetSslProxies/#{request_pb.target_ssl_proxy}/setProxyHeader" body = request_pb.target_ssl_proxies_set_proxy_header_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_ssl_certificates(request_pb) ⇒ Array(String, [String, nil], Hash{String => String})
Returns Uri, Body, Query string parameters.
113 114 115 116 117 118 119 120 |
# File 'lib/google/cloud/compute/v1/target_ssl_proxies/rest/grpc_transcoding.rb', line 113 def transcode_set_ssl_certificates request_pb uri = "/compute/v1/projects/#{request_pb.project}/global/targetSslProxies/#{request_pb.target_ssl_proxy}/setSslCertificates" body = request_pb.target_ssl_proxies_set_ssl_certificates_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_ssl_policy(request_pb) ⇒ Array(String, [String, nil], Hash{String => String})
Returns Uri, Body, Query string parameters.
126 127 128 129 130 131 132 133 |
# File 'lib/google/cloud/compute/v1/target_ssl_proxies/rest/grpc_transcoding.rb', line 126 def transcode_set_ssl_policy request_pb uri = "/compute/v1/projects/#{request_pb.project}/global/targetSslProxies/#{request_pb.target_ssl_proxy}/setSslPolicy" body = request_pb.ssl_policy_reference_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 |