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

- old
+ new

@@ -81,10 +81,11 @@ # Uri, Body, Query string parameters def transcode_insert request_pb uri = "/compute/v1/projects/#{request_pb.project}/global/securityPolicies" body = request_pb.security_policy_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::ListSecurityPoliciesRequest] @@ -127,10 +128,11 @@ # Uri, Body, Query string parameters def transcode_patch request_pb uri = "/compute/v1/projects/#{request_pb.project}/global/securityPolicies/#{request_pb.security_policy}" body = request_pb.security_policy_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::PatchRuleSecurityPolicyRequest] @@ -139,9 +141,10 @@ # Uri, Body, Query string parameters def transcode_patch_rule request_pb uri = "/compute/v1/projects/#{request_pb.project}/global/securityPolicies/#{request_pb.security_policy}/patchRule" body = request_pb.security_policy_rule_resource.to_json query_string_params = {} + query_string_params["priority"] = request_pb.priority.to_s if request_pb.has_priority? [uri, body, query_string_params] end # @param request_pb [::Google::Cloud::Compute::V1::RemoveRuleSecurityPolicyRequest]