lib/google/cloud/compute/v1/backend_services/rest/grpc_transcoding.rb in google-cloud-compute-v1-0.1.0 vs lib/google/cloud/compute/v1/backend_services/rest/grpc_transcoding.rb in google-cloud-compute-v1-0.2.0
- old
+ new
@@ -31,10 +31,11 @@
# Uri, Body, Query string parameters
def transcode_add_signed_url_key request_pb
uri = "/compute/v1/projects/#{request_pb.project}/global/backendServices/#{request_pb.backend_service}/addSignedUrlKey"
body = request_pb.signed_url_key_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
# @param request_pb [::Google::Cloud::Compute::V1::AggregatedListBackendServicesRequest]
@@ -112,10 +113,11 @@
# Uri, Body, Query string parameters
def transcode_insert request_pb
uri = "/compute/v1/projects/#{request_pb.project}/global/backendServices"
body = request_pb.backend_service_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
# @param request_pb [::Google::Cloud::Compute::V1::ListBackendServicesRequest]
@@ -141,10 +143,11 @@
# Uri, Body, Query string parameters
def transcode_patch request_pb
uri = "/compute/v1/projects/#{request_pb.project}/global/backendServices/#{request_pb.backend_service}"
body = request_pb.backend_service_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
# @param request_pb [::Google::Cloud::Compute::V1::SetSecurityPolicyBackendServiceRequest]
@@ -153,10 +156,11 @@
# Uri, Body, Query string parameters
def transcode_set_security_policy request_pb
uri = "/compute/v1/projects/#{request_pb.project}/global/backendServices/#{request_pb.backend_service}/setSecurityPolicy"
body = request_pb.security_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
# @param request_pb [::Google::Cloud::Compute::V1::UpdateBackendServiceRequest]
@@ -165,9 +169,10 @@
# Uri, Body, Query string parameters
def transcode_update request_pb
uri = "/compute/v1/projects/#{request_pb.project}/global/backendServices/#{request_pb.backend_service}"
body = request_pb.backend_service_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
extend self
end