module KatelloApi module Resources class Subnet < KatelloApi::Base def self.doc @doc ||= KatelloApi.doc['resources']["subnets"] 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/subnets", params call(:"get", url, params, headers) end # @param [Hash] params a hash of params to be passed to the service # @option params [String] id subnet 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/subnets/:id", params call(:"get", url, params, headers) end # @param [Hash] params a hash of params to be passed to the service # @option params [Hash] subnet subnet info # allowed keys are: # * name [String] subnet 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/subnet", params call(:"post", url, params, headers) end # @param [Hash] params a hash of params to be passed to the service # @option params [String] id subnet name # @option params [Hash] subnet subnet info # allowed keys are: # * name [String] subnet 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/subnets/: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 subnet 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/subnets/:id", params call(:"delete", url, params, headers) end end end end