lib/google/cloud/compute/v1/images/rest/grpc_transcoding.rb in google-cloud-compute-v1-0.1.0 vs lib/google/cloud/compute/v1/images/rest/grpc_transcoding.rb in google-cloud-compute-v1-0.2.0
- old
+ new
@@ -44,10 +44,11 @@
# Uri, Body, Query string parameters
def transcode_deprecate request_pb
uri = "/compute/v1/projects/#{request_pb.project}/global/images/#{request_pb.image}/deprecate"
body = request_pb.deprecation_status_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::GetImageRequest]
@@ -93,10 +94,12 @@
# Uri, Body, Query string parameters
def transcode_insert request_pb
uri = "/compute/v1/projects/#{request_pb.project}/global/images"
body = request_pb.image_resource.to_json
query_string_params = {}
+ query_string_params["forceCreate"] = request_pb.force_create.to_s if request_pb.has_force_create?
+ 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::ListImagesRequest]
@@ -122,9 +125,10 @@
# Uri, Body, Query string parameters
def transcode_patch request_pb
uri = "/compute/v1/projects/#{request_pb.project}/global/images/#{request_pb.image}"
body = request_pb.image_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::SetIamPolicyImageRequest]