lib/fastly/api/response_object_api.rb in fastly-8.0.0 vs lib/fastly/api/response_object_api.rb in fastly-8.0.1

- old
+ new

@@ -19,20 +19,22 @@ end # Create a Response object # Creates a new Response Object. # @option opts [String] :service_id Alphanumeric string identifying the service. (required) # @option opts [Integer] :version_id Integer identifying a service version. (required) + # @option opts [CreateResponseObjectRequest] :create_response_object_request # @return [ResponseObjectResponse] def create_response_object(opts = {}) data, _status_code, _headers = create_response_object_with_http_info(opts) data end # Create a Response object # Creates a new Response Object. # @option opts [String] :service_id Alphanumeric string identifying the service. (required) # @option opts [Integer] :version_id Integer identifying a service version. (required) + # @option opts [CreateResponseObjectRequest] :create_response_object_request # @return [Array<(ResponseObjectResponse, Integer, Hash)>] ResponseObjectResponse data, response status code and response headers def create_response_object_with_http_info(opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: ResponseObjectApi.create_response_object ...' end @@ -56,20 +58,20 @@ # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) # HTTP header 'Content-Type' - content_type = @api_client.select_header_content_type(['application/x-www-form-urlencoded']) + content_type = @api_client.select_header_content_type(['application/json']) if !content_type.nil? header_params['Content-Type'] = content_type end # form parameters form_params = opts[:form_params] || {} # http body (model) - post_body = opts[:debug_body] + post_body = opts[:debug_body] || @api_client.object_to_http_body(opts[:'create_response_object_request']) # return_type return_type = opts[:debug_return_type] || 'ResponseObjectResponse' # auth_names @@ -319,10 +321,11 @@ # Update a Response object # Updates the specified Response Object. # @option opts [String] :service_id Alphanumeric string identifying the service. (required) # @option opts [Integer] :version_id Integer identifying a service version. (required) # @option opts [String] :response_object_name Name for the request settings. (required) + # @option opts [CreateResponseObjectRequest] :create_response_object_request # @return [ResponseObjectResponse] def update_response_object(opts = {}) data, _status_code, _headers = update_response_object_with_http_info(opts) data end @@ -330,10 +333,11 @@ # Update a Response object # Updates the specified Response Object. # @option opts [String] :service_id Alphanumeric string identifying the service. (required) # @option opts [Integer] :version_id Integer identifying a service version. (required) # @option opts [String] :response_object_name Name for the request settings. (required) + # @option opts [CreateResponseObjectRequest] :create_response_object_request # @return [Array<(ResponseObjectResponse, Integer, Hash)>] ResponseObjectResponse data, response status code and response headers def update_response_object_with_http_info(opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: ResponseObjectApi.update_response_object ...' end @@ -362,19 +366,19 @@ # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) # HTTP header 'Content-Type' - content_type = @api_client.select_header_content_type(['application/x-www-form-urlencoded']) + content_type = @api_client.select_header_content_type(['application/json']) if !content_type.nil? header_params['Content-Type'] = content_type end # form parameters form_params = opts[:form_params] || {} # http body (model) - post_body = opts[:debug_body] + post_body = opts[:debug_body] || @api_client.object_to_http_body(opts[:'create_response_object_request']) # return_type return_type = opts[:debug_return_type] || 'ResponseObjectResponse' # auth_names