lib/google/cloud/compute/v1/security_policies/rest/service_stub.rb in google-cloud-compute-v1-1.3.0 vs lib/google/cloud/compute/v1/security_policies/rest/service_stub.rb in google-cloud-compute-v1-1.4.0

- old
+ new

@@ -53,14 +53,15 @@ # @return [::Google::Cloud::Compute::V1::Operation] # A result object deserialized from the server's reply def add_rule request_pb, options = nil raise ::ArgumentError, "request must be provided" if request_pb.nil? - uri, body, _query_string_params = transcode_add_rule_request request_pb + uri, body, query_string_params = transcode_add_rule_request request_pb response = @client_stub.make_post_request( uri: uri, body: body, + params: query_string_params, options: options ) result = ::Google::Cloud::Compute::V1::Operation.decode_json response.body, ignore_unknown_fields: true yield result, response if block_given? @@ -76,10 +77,11 @@ # Uri, Body, Query string parameters def transcode_add_rule_request request_pb uri = "/compute/v1/projects/#{request_pb.project}/global/securityPolicies/#{request_pb.security_policy}/addRule" body = request_pb.security_policy_rule_resource.to_json query_string_params = {} + query_string_params["validateOnly"] = request_pb.validate_only.to_s if request_pb.has_validate_only? [uri, body, query_string_params] end ## @@ -305,10 +307,11 @@ def transcode_insert_request 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? + query_string_params["validateOnly"] = request_pb.validate_only.to_s if request_pb.has_validate_only? [uri, body, query_string_params] end ## @@ -495,9 +498,10 @@ def transcode_patch_rule_request 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? + query_string_params["validateOnly"] = request_pb.validate_only.to_s if request_pb.has_validate_only? [uri, body, query_string_params] end ##