lib/google/cloud/compute/v1/autoscalers/rest/grpc_transcoding.rb in google-cloud-compute-v1-0.1.0 vs lib/google/cloud/compute/v1/autoscalers/rest/grpc_transcoding.rb in google-cloud-compute-v1-0.2.0

- old
+ new

@@ -74,10 +74,11 @@ # Uri, Body, Query string parameters def transcode_insert request_pb uri = "/compute/v1/projects/#{request_pb.project}/zones/#{request_pb.zone}/autoscalers" body = request_pb.autoscaler_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::ListAutoscalersRequest] @@ -103,10 +104,12 @@ # Uri, Body, Query string parameters def transcode_patch request_pb uri = "/compute/v1/projects/#{request_pb.project}/zones/#{request_pb.zone}/autoscalers" body = request_pb.autoscaler_resource.to_json query_string_params = {} + query_string_params["autoscaler"] = request_pb.autoscaler.to_s if request_pb.has_autoscaler? + 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::UpdateAutoscalerRequest] @@ -115,9 +118,11 @@ # Uri, Body, Query string parameters def transcode_update request_pb uri = "/compute/v1/projects/#{request_pb.project}/zones/#{request_pb.zone}/autoscalers" body = request_pb.autoscaler_resource.to_json query_string_params = {} + query_string_params["autoscaler"] = request_pb.autoscaler.to_s if request_pb.has_autoscaler? + 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