lib/google/cloud/compute/v1/vpn_gateways/rest/grpc_transcoding.rb in google-cloud-compute-v1-0.1.0 vs lib/google/cloud/compute/v1/vpn_gateways/rest/grpc_transcoding.rb in google-cloud-compute-v1-0.2.0
- old
+ new
@@ -86,10 +86,11 @@
# Uri, Body, Query string parameters
def transcode_insert request_pb
uri = "/compute/v1/projects/#{request_pb.project}/regions/#{request_pb.region}/vpnGateways"
body = request_pb.vpn_gateway_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::ListVpnGatewaysRequest]
@@ -115,9 +116,10 @@
# Uri, Body, Query string parameters
def transcode_set_labels request_pb
uri = "/compute/v1/projects/#{request_pb.project}/regions/#{request_pb.region}/vpnGateways/#{request_pb.resource}/setLabels"
body = request_pb.region_set_labels_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
# @param request_pb [::Google::Cloud::Compute::V1::TestIamPermissionsVpnGatewayRequest]