module KatelloApi module Resources class Architecture < KatelloApi::Base def self.doc @doc ||= KatelloApi.doc['resources']["architectures"] end # @param [Hash] params a hash of params to be passed to the service # # @param [Hash] headers additional http headers def index(params = { }, headers = { }) check_params params, :allowed => false, :method => __method__ url, params = fill_params_in_url "/api/architectures", params call(:"get", url, params, headers) end # @param [Hash] params a hash of params to be passed to the service # @option params [String] id architecture name # # @param [Hash] headers additional http headers def show(params = { }, headers = { }) check_params params, :allowed => true, :method => __method__ url, params = fill_params_in_url "/api/architectures/:id", params call(:"get", url, params, headers) end # @param [Hash] params a hash of params to be passed to the service # @option params [Hash] architecture architecture info # allowed keys are: # * name [String] architecture name , # # @param [Hash] headers additional http headers def create(params = { }, headers = { }) check_params params, :allowed => true, :method => __method__ url, params = fill_params_in_url "/api/architecture", params call(:"post", url, params, headers) end # @param [Hash] params a hash of params to be passed to the service # @option params [String] id architecture name # @option params [Hash] architecture architecture info # allowed keys are: # * name [String] architecture name , # # @param [Hash] headers additional http headers def update(params = { }, headers = { }) check_params params, :allowed => true, :method => __method__ url, params = fill_params_in_url "/api/architectures/:id", params call(:"put", url, params, headers) end # @param [Hash] params a hash of params to be passed to the service # @option params [String] id architecture name # # @param [Hash] headers additional http headers def destroy(params = { }, headers = { }) check_params params, :allowed => true, :method => __method__ url, params = fill_params_in_url "/api/architectures/:id", params call(:"delete", url, params, headers) end end end end