lib/purecloud/api/attributes_api.rb in purecloud-0.18.0 vs lib/purecloud/api/attributes_api.rb in purecloud-0.25.0

- old
+ new

@@ -12,24 +12,24 @@ # # @param [Hash] opts the optional parameters # @option opts [Integer] :page_number Page number # @option opts [Integer] :page_size Page size # @return [AttributeEntityListing] - def get(opts = {}) - data, status_code, headers = get_with_http_info(opts) + def get_attributes(opts = {}) + data, status_code, headers = get_attributes_with_http_info(opts) return data end # Gets a list of existing attributes. # # @param [Hash] opts the optional parameters # @option opts [Integer] :page_number Page number # @option opts [Integer] :page_size Page size # @return [Array<(AttributeEntityListing, Fixnum, Hash)>] AttributeEntityListing data, response status code and response headers - def get_with_http_info(opts = {}) + def get_attributes_with_http_info(opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug "Calling API: AttributesApi#get ..." + @api_client.config.logger.debug "Calling API: AttributesApi#get_attributes ..." end # resource path path = "/api/v1/attributes".sub('{format}','json') @@ -63,33 +63,33 @@ :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => 'AttributeEntityListing') if @api_client.config.debugging - @api_client.config.logger.debug "API called: AttributesApi#get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" + @api_client.config.logger.debug "API called: AttributesApi#get_attributes\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end # Create an attribute. # # @param [Hash] opts the optional parameters # @option opts [Attribute] :body Attribute # @return [Attribute] - def create(opts = {}) - data, status_code, headers = create_with_http_info(opts) + def post_attributes(opts = {}) + data, status_code, headers = post_attributes_with_http_info(opts) return data end # Create an attribute. # # @param [Hash] opts the optional parameters # @option opts [Attribute] :body Attribute # @return [Array<(Attribute, Fixnum, Hash)>] Attribute data, response status code and response headers - def create_with_http_info(opts = {}) + def post_attributes_with_http_info(opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug "Calling API: AttributesApi#create ..." + @api_client.config.logger.debug "Calling API: AttributesApi#post_attributes ..." end # resource path path = "/api/v1/attributes".sub('{format}','json') @@ -121,33 +121,33 @@ :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => 'Attribute') if @api_client.config.debugging - @api_client.config.logger.debug "API called: AttributesApi#create\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" + @api_client.config.logger.debug "API called: AttributesApi#post_attributes\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end # Query attributes # # @param [Hash] opts the optional parameters # @option opts [AttributeQueryRequest] :body query # @return [AttributeEntityListing] - def create_query(opts = {}) - data, status_code, headers = create_query_with_http_info(opts) + def post_query(opts = {}) + data, status_code, headers = post_query_with_http_info(opts) return data end # Query attributes # # @param [Hash] opts the optional parameters # @option opts [AttributeQueryRequest] :body query # @return [Array<(AttributeEntityListing, Fixnum, Hash)>] AttributeEntityListing data, response status code and response headers - def create_query_with_http_info(opts = {}) + def post_query_with_http_info(opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug "Calling API: AttributesApi#create_query ..." + @api_client.config.logger.debug "Calling API: AttributesApi#post_query ..." end # resource path path = "/api/v1/attributes/query".sub('{format}','json') @@ -179,37 +179,37 @@ :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => 'AttributeEntityListing') if @api_client.config.debugging - @api_client.config.logger.debug "API called: AttributesApi#create_query\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" + @api_client.config.logger.debug "API called: AttributesApi#post_query\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end # Get details about an existing attribute. # # @param attribute_id Attribute ID # @param [Hash] opts the optional parameters # @return [Attribute] - def get_attribute(attribute_id, opts = {}) - data, status_code, headers = get_attribute_with_http_info(attribute_id, opts) + def get_attribute_id(attribute_id, opts = {}) + data, status_code, headers = get_attribute_id_with_http_info(attribute_id, opts) return data end # Get details about an existing attribute. # # @param attribute_id Attribute ID # @param [Hash] opts the optional parameters # @return [Array<(Attribute, Fixnum, Hash)>] Attribute data, response status code and response headers - def get_attribute_with_http_info(attribute_id, opts = {}) + def get_attribute_id_with_http_info(attribute_id, opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug "Calling API: AttributesApi#get_attribute ..." + @api_client.config.logger.debug "Calling API: AttributesApi#get_attribute_id ..." end # verify the required parameter 'attribute_id' is set - fail "Missing the required parameter 'attribute_id' when calling get_attribute" if attribute_id.nil? + fail "Missing the required parameter 'attribute_id' when calling get_attribute_id" if attribute_id.nil? # resource path path = "/api/v1/attributes/{attributeId}".sub('{format}','json').sub('{' + 'attributeId' + '}', attribute_id.to_s) # query parameters @@ -240,39 +240,39 @@ :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => 'Attribute') if @api_client.config.debugging - @api_client.config.logger.debug "API called: AttributesApi#get_attribute\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" + @api_client.config.logger.debug "API called: AttributesApi#get_attribute_id\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end # Update an existing attribute. # Fields that can be updated: name, description. The most recent version is required for updates. # @param attribute_id Attribute ID # @param [Hash] opts the optional parameters # @option opts [Attribute] :body Attribute # @return [Attribute] - def update_attribute(attribute_id, opts = {}) - data, status_code, headers = update_attribute_with_http_info(attribute_id, opts) + def put_attribute_id(attribute_id, opts = {}) + data, status_code, headers = put_attribute_id_with_http_info(attribute_id, opts) return data end # Update an existing attribute. # Fields that can be updated: name, description. The most recent version is required for updates. # @param attribute_id Attribute ID # @param [Hash] opts the optional parameters # @option opts [Attribute] :body Attribute # @return [Array<(Attribute, Fixnum, Hash)>] Attribute data, response status code and response headers - def update_attribute_with_http_info(attribute_id, opts = {}) + def put_attribute_id_with_http_info(attribute_id, opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug "Calling API: AttributesApi#update_attribute ..." + @api_client.config.logger.debug "Calling API: AttributesApi#put_attribute_id ..." end # verify the required parameter 'attribute_id' is set - fail "Missing the required parameter 'attribute_id' when calling update_attribute" if attribute_id.nil? + fail "Missing the required parameter 'attribute_id' when calling put_attribute_id" if attribute_id.nil? # resource path path = "/api/v1/attributes/{attributeId}".sub('{format}','json').sub('{' + 'attributeId' + '}', attribute_id.to_s) # query parameters @@ -303,37 +303,37 @@ :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => 'Attribute') if @api_client.config.debugging - @api_client.config.logger.debug "API called: AttributesApi#update_attribute\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" + @api_client.config.logger.debug "API called: AttributesApi#put_attribute_id\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end # Delete an existing Attribute. # This will remove attribute. # @param attribute_id Attribute ID # @param [Hash] opts the optional parameters # @return [nil] - def delete_attribute(attribute_id, opts = {}) - delete_attribute_with_http_info(attribute_id, opts) + def delete_attribute_id(attribute_id, opts = {}) + delete_attribute_id_with_http_info(attribute_id, opts) return nil end # Delete an existing Attribute. # This will remove attribute. # @param attribute_id Attribute ID # @param [Hash] opts the optional parameters # @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers - def delete_attribute_with_http_info(attribute_id, opts = {}) + def delete_attribute_id_with_http_info(attribute_id, opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug "Calling API: AttributesApi#delete_attribute ..." + @api_client.config.logger.debug "Calling API: AttributesApi#delete_attribute_id ..." end # verify the required parameter 'attribute_id' is set - fail "Missing the required parameter 'attribute_id' when calling delete_attribute" if attribute_id.nil? + fail "Missing the required parameter 'attribute_id' when calling delete_attribute_id" if attribute_id.nil? # resource path path = "/api/v1/attributes/{attributeId}".sub('{format}','json').sub('{' + 'attributeId' + '}', attribute_id.to_s) # query parameters @@ -363,10 +363,10 @@ :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names) if @api_client.config.debugging - @api_client.config.logger.debug "API called: AttributesApi#delete_attribute\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" + @api_client.config.logger.debug "API called: AttributesApi#delete_attribute_id\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end end end