lib/fastly/api/object_store_api.rb in fastly-4.3.0 vs lib/fastly/api/object_store_api.rb in fastly-4.4.0

- old
+ new

@@ -17,19 +17,21 @@ def initialize(api_client = ApiClient.default) @api_client = api_client end # Create an object store. # Create a new object store. + # @option opts [String] :location # @option opts [Store] :store # @return [StoreResponse] def create_store(opts = {}) data, _status_code, _headers = create_store_with_http_info(opts) data end # Create an object store. # Create a new object store. + # @option opts [String] :location # @option opts [Store] :store # @return [Array<(StoreResponse, Integer, Hash)>] StoreResponse data, response status code and response headers def create_store_with_http_info(opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: ObjectStoreApi.create_store ...' @@ -38,10 +40,11 @@ # resource path local_var_path = '/resources/stores/object' # query parameters query_params = opts[:query_params] || {} + query_params[:'location'] = opts[:'location'] if !opts[:'location'].nil? # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) @@ -81,19 +84,21 @@ end # Delete an object store. # An object store must be empty before it can be deleted. Deleting an object store that still contains keys will result in a `409` (Conflict). # @option opts [String] :store_id (required) + # @option opts [Boolean] :force # @return [nil] def delete_store(opts = {}) delete_store_with_http_info(opts) nil end # Delete an object store. # An object store must be empty before it can be deleted. Deleting an object store that still contains keys will result in a &#x60;409&#x60; (Conflict). # @option opts [String] :store_id (required) + # @option opts [Boolean] :force # @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers def delete_store_with_http_info(opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: ObjectStoreApi.delete_store ...' end @@ -109,9 +114,10 @@ # query parameters query_params = opts[:query_params] || {} # header parameters header_params = opts[:header_params] || {} + header_params[:'force'] = opts[:'force'] if !opts[:'force'].nil? # form parameters form_params = opts[:form_params] || {} # http body (model)