lib/purecloud/api/presence_api.rb in purecloud-0.18.0 vs lib/purecloud/api/presence_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 [OrganizationPresenceEntityListing] - def get(opts = {}) - data, status_code, headers = get_with_http_info(opts) + def get_presencedefinitions(opts = {}) + data, status_code, headers = get_presencedefinitions_with_http_info(opts) return data end # Get an Organization&#39;s list of Presences # # @param [Hash] opts the optional parameters # @option opts [Integer] :page_number Page number # @option opts [Integer] :page_size Page size # @return [Array<(OrganizationPresenceEntityListing, Fixnum, Hash)>] OrganizationPresenceEntityListing data, response status code and response headers - def get_with_http_info(opts = {}) + def get_presencedefinitions_with_http_info(opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug "Calling API: PresenceApi#get ..." + @api_client.config.logger.debug "Calling API: PresenceApi#get_presencedefinitions ..." end # resource path path = "/api/v1/presencedefinitions".sub('{format}','json') @@ -63,37 +63,37 @@ :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => 'OrganizationPresenceEntityListing') if @api_client.config.debugging - @api_client.config.logger.debug "API called: PresenceApi#get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" + @api_client.config.logger.debug "API called: PresenceApi#get_presencedefinitions\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end # Create an OrganizationPresence # # @param body The OrganizationPresence to create # @param [Hash] opts the optional parameters # @return [OrganizationPresence] - def create(body, opts = {}) - data, status_code, headers = create_with_http_info(body, opts) + def post_presencedefinitions(body, opts = {}) + data, status_code, headers = post_presencedefinitions_with_http_info(body, opts) return data end # Create an OrganizationPresence # # @param body The OrganizationPresence to create # @param [Hash] opts the optional parameters # @return [Array<(OrganizationPresence, Fixnum, Hash)>] OrganizationPresence data, response status code and response headers - def create_with_http_info(body, opts = {}) + def post_presencedefinitions_with_http_info(body, opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug "Calling API: PresenceApi#create ..." + @api_client.config.logger.debug "Calling API: PresenceApi#post_presencedefinitions ..." end # verify the required parameter 'body' is set - fail "Missing the required parameter 'body' when calling create" if body.nil? + fail "Missing the required parameter 'body' when calling post_presencedefinitions" if body.nil? # resource path path = "/api/v1/presencedefinitions".sub('{format}','json') # query parameters @@ -124,37 +124,37 @@ :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => 'OrganizationPresence') if @api_client.config.debugging - @api_client.config.logger.debug "API called: PresenceApi#create\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" + @api_client.config.logger.debug "API called: PresenceApi#post_presencedefinitions\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end # Get an OrganizationPresence # # @param presence_id Organization Presence ID # @param [Hash] opts the optional parameters # @return [OrganizationPresence] - def get_presence(presence_id, opts = {}) - data, status_code, headers = get_presence_with_http_info(presence_id, opts) + def get_presence_id(presence_id, opts = {}) + data, status_code, headers = get_presence_id_with_http_info(presence_id, opts) return data end # Get an OrganizationPresence # # @param presence_id Organization Presence ID # @param [Hash] opts the optional parameters # @return [Array<(OrganizationPresence, Fixnum, Hash)>] OrganizationPresence data, response status code and response headers - def get_presence_with_http_info(presence_id, opts = {}) + def get_presence_id_with_http_info(presence_id, opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug "Calling API: PresenceApi#get_presence ..." + @api_client.config.logger.debug "Calling API: PresenceApi#get_presence_id ..." end # verify the required parameter 'presence_id' is set - fail "Missing the required parameter 'presence_id' when calling get_presence" if presence_id.nil? + fail "Missing the required parameter 'presence_id' when calling get_presence_id" if presence_id.nil? # resource path path = "/api/v1/presencedefinitions/{presenceId}".sub('{format}','json').sub('{' + 'presenceId' + '}', presence_id.to_s) # query parameters @@ -185,42 +185,42 @@ :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => 'OrganizationPresence') if @api_client.config.debugging - @api_client.config.logger.debug "API called: PresenceApi#get_presence\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" + @api_client.config.logger.debug "API called: PresenceApi#get_presence_id\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end # Update an OrganizationPresence # # @param presence_id Organization Presence ID # @param body The OrganizationPresence to update # @param [Hash] opts the optional parameters # @return [OrganizationPresence] - def update_presence(presence_id, body, opts = {}) - data, status_code, headers = update_presence_with_http_info(presence_id, body, opts) + def put_presence_id(presence_id, body, opts = {}) + data, status_code, headers = put_presence_id_with_http_info(presence_id, body, opts) return data end # Update an OrganizationPresence # # @param presence_id Organization Presence ID # @param body The OrganizationPresence to update # @param [Hash] opts the optional parameters # @return [Array<(OrganizationPresence, Fixnum, Hash)>] OrganizationPresence data, response status code and response headers - def update_presence_with_http_info(presence_id, body, opts = {}) + def put_presence_id_with_http_info(presence_id, body, opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug "Calling API: PresenceApi#update_presence ..." + @api_client.config.logger.debug "Calling API: PresenceApi#put_presence_id ..." end # verify the required parameter 'presence_id' is set - fail "Missing the required parameter 'presence_id' when calling update_presence" if presence_id.nil? + fail "Missing the required parameter 'presence_id' when calling put_presence_id" if presence_id.nil? # verify the required parameter 'body' is set - fail "Missing the required parameter 'body' when calling update_presence" if body.nil? + fail "Missing the required parameter 'body' when calling put_presence_id" if body.nil? # resource path path = "/api/v1/presencedefinitions/{presenceId}".sub('{format}','json').sub('{' + 'presenceId' + '}', presence_id.to_s) # query parameters @@ -251,37 +251,37 @@ :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => 'OrganizationPresence') if @api_client.config.debugging - @api_client.config.logger.debug "API called: PresenceApi#update_presence\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" + @api_client.config.logger.debug "API called: PresenceApi#put_presence_id\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end # Delete an OrganizationPresence # # @param presence_id Organization Presence ID # @param [Hash] opts the optional parameters # @return [OrganizationPresence] - def delete_presence(presence_id, opts = {}) - data, status_code, headers = delete_presence_with_http_info(presence_id, opts) + def delete_presence_id(presence_id, opts = {}) + data, status_code, headers = delete_presence_id_with_http_info(presence_id, opts) return data end # Delete an OrganizationPresence # # @param presence_id Organization Presence ID # @param [Hash] opts the optional parameters # @return [Array<(OrganizationPresence, Fixnum, Hash)>] OrganizationPresence data, response status code and response headers - def delete_presence_with_http_info(presence_id, opts = {}) + def delete_presence_id_with_http_info(presence_id, opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug "Calling API: PresenceApi#delete_presence ..." + @api_client.config.logger.debug "Calling API: PresenceApi#delete_presence_id ..." end # verify the required parameter 'presence_id' is set - fail "Missing the required parameter 'presence_id' when calling delete_presence" if presence_id.nil? + fail "Missing the required parameter 'presence_id' when calling delete_presence_id" if presence_id.nil? # resource path path = "/api/v1/presencedefinitions/{presenceId}".sub('{format}','json').sub('{' + 'presenceId' + '}', presence_id.to_s) # query parameters @@ -312,11 +312,11 @@ :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => 'OrganizationPresence') if @api_client.config.debugging - @api_client.config.logger.debug "API called: PresenceApi#delete_presence\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" + @api_client.config.logger.debug "API called: PresenceApi#delete_presence_id\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end # Get an User&#39;s list of Presences @@ -324,29 +324,29 @@ # @param user_id User ID # @param [Hash] opts the optional parameters # @option opts [Integer] :page_number Page number # @option opts [Integer] :page_size Page size # @return [UserPresenceEntityListing] - def get_user_presences(user_id, opts = {}) - data, status_code, headers = get_user_presences_with_http_info(user_id, opts) + def get_user_id_presences(user_id, opts = {}) + data, status_code, headers = get_user_id_presences_with_http_info(user_id, opts) return data end # Get an User&#39;s list of Presences # # @param user_id User ID # @param [Hash] opts the optional parameters # @option opts [Integer] :page_number Page number # @option opts [Integer] :page_size Page size # @return [Array<(UserPresenceEntityListing, Fixnum, Hash)>] UserPresenceEntityListing data, response status code and response headers - def get_user_presences_with_http_info(user_id, opts = {}) + def get_user_id_presences_with_http_info(user_id, opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug "Calling API: PresenceApi#get_user_presences ..." + @api_client.config.logger.debug "Calling API: PresenceApi#get_user_id_presences ..." end # verify the required parameter 'user_id' is set - fail "Missing the required parameter 'user_id' when calling get_user_presences" if user_id.nil? + fail "Missing the required parameter 'user_id' when calling get_user_id_presences" if user_id.nil? # resource path path = "/api/v1/users/{userId}/presences".sub('{format}','json').sub('{' + 'userId' + '}', user_id.to_s) # query parameters @@ -379,42 +379,42 @@ :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => 'UserPresenceEntityListing') if @api_client.config.debugging - @api_client.config.logger.debug "API called: PresenceApi#get_user_presences\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" + @api_client.config.logger.debug "API called: PresenceApi#get_user_id_presences\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end # Get a UserPresence # # @param user_id User ID # @param source Source # @param [Hash] opts the optional parameters # @return [UserPresence] - def get_user_presences_by_source(user_id, source, opts = {}) - data, status_code, headers = get_user_presences_by_source_with_http_info(user_id, source, opts) + def get_user_id_presences_source(user_id, source, opts = {}) + data, status_code, headers = get_user_id_presences_source_with_http_info(user_id, source, opts) return data end # Get a UserPresence # # @param user_id User ID # @param source Source # @param [Hash] opts the optional parameters # @return [Array<(UserPresence, Fixnum, Hash)>] UserPresence data, response status code and response headers - def get_user_presences_by_source_with_http_info(user_id, source, opts = {}) + def get_user_id_presences_source_with_http_info(user_id, source, opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug "Calling API: PresenceApi#get_user_presences_by_source ..." + @api_client.config.logger.debug "Calling API: PresenceApi#get_user_id_presences_source ..." end # verify the required parameter 'user_id' is set - fail "Missing the required parameter 'user_id' when calling get_user_presences_by_source" if user_id.nil? + fail "Missing the required parameter 'user_id' when calling get_user_id_presences_source" if user_id.nil? # verify the required parameter 'source' is set - fail "Missing the required parameter 'source' when calling get_user_presences_by_source" if source.nil? + fail "Missing the required parameter 'source' when calling get_user_id_presences_source" if source.nil? # resource path path = "/api/v1/users/{userId}/presences/{source}".sub('{format}','json').sub('{' + 'userId' + '}', user_id.to_s).sub('{' + 'source' + '}', source.to_s) # query parameters @@ -445,11 +445,11 @@ :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => 'UserPresence') if @api_client.config.debugging - @api_client.config.logger.debug "API called: PresenceApi#get_user_presences_by_source\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" + @api_client.config.logger.debug "API called: PresenceApi#get_user_id_presences_source\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end # Update a UserPresence @@ -457,35 +457,35 @@ # @param user_id User ID # @param source Source # @param body The updated UserPresence # @param [Hash] opts the optional parameters # @return [UserPresence] - def update_user_presences_by_source(user_id, source, body, opts = {}) - data, status_code, headers = update_user_presences_by_source_with_http_info(user_id, source, body, opts) + def put_user_id_presences_source(user_id, source, body, opts = {}) + data, status_code, headers = put_user_id_presences_source_with_http_info(user_id, source, body, opts) return data end # Update a UserPresence # # @param user_id User ID # @param source Source # @param body The updated UserPresence # @param [Hash] opts the optional parameters # @return [Array<(UserPresence, Fixnum, Hash)>] UserPresence data, response status code and response headers - def update_user_presences_by_source_with_http_info(user_id, source, body, opts = {}) + def put_user_id_presences_source_with_http_info(user_id, source, body, opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug "Calling API: PresenceApi#update_user_presences_by_source ..." + @api_client.config.logger.debug "Calling API: PresenceApi#put_user_id_presences_source ..." end # verify the required parameter 'user_id' is set - fail "Missing the required parameter 'user_id' when calling update_user_presences_by_source" if user_id.nil? + fail "Missing the required parameter 'user_id' when calling put_user_id_presences_source" if user_id.nil? # verify the required parameter 'source' is set - fail "Missing the required parameter 'source' when calling update_user_presences_by_source" if source.nil? + fail "Missing the required parameter 'source' when calling put_user_id_presences_source" if source.nil? # verify the required parameter 'body' is set - fail "Missing the required parameter 'body' when calling update_user_presences_by_source" if body.nil? + fail "Missing the required parameter 'body' when calling put_user_id_presences_source" if body.nil? # resource path path = "/api/v1/users/{userId}/presences/{source}".sub('{format}','json').sub('{' + 'userId' + '}', user_id.to_s).sub('{' + 'source' + '}', source.to_s) # query parameters @@ -516,11 +516,11 @@ :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => 'UserPresence') if @api_client.config.debugging - @api_client.config.logger.debug "API called: PresenceApi#update_user_presences_by_source\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" + @api_client.config.logger.debug "API called: PresenceApi#put_user_id_presences_source\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end # Patch a UserPresence @@ -528,35 +528,35 @@ # @param user_id User ID # @param source Source # @param body The patched UserPresence # @param [Hash] opts the optional parameters # @return [UserPresence] - def patch_user_presences_by_source(user_id, source, body, opts = {}) - data, status_code, headers = patch_user_presences_by_source_with_http_info(user_id, source, body, opts) + def patch_user_id_presences_source(user_id, source, body, opts = {}) + data, status_code, headers = patch_user_id_presences_source_with_http_info(user_id, source, body, opts) return data end # Patch a UserPresence # # @param user_id User ID # @param source Source # @param body The patched UserPresence # @param [Hash] opts the optional parameters # @return [Array<(UserPresence, Fixnum, Hash)>] UserPresence data, response status code and response headers - def patch_user_presences_by_source_with_http_info(user_id, source, body, opts = {}) + def patch_user_id_presences_source_with_http_info(user_id, source, body, opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug "Calling API: PresenceApi#patch_user_presences_by_source ..." + @api_client.config.logger.debug "Calling API: PresenceApi#patch_user_id_presences_source ..." end # verify the required parameter 'user_id' is set - fail "Missing the required parameter 'user_id' when calling patch_user_presences_by_source" if user_id.nil? + fail "Missing the required parameter 'user_id' when calling patch_user_id_presences_source" if user_id.nil? # verify the required parameter 'source' is set - fail "Missing the required parameter 'source' when calling patch_user_presences_by_source" if source.nil? + fail "Missing the required parameter 'source' when calling patch_user_id_presences_source" if source.nil? # verify the required parameter 'body' is set - fail "Missing the required parameter 'body' when calling patch_user_presences_by_source" if body.nil? + fail "Missing the required parameter 'body' when calling patch_user_id_presences_source" if body.nil? # resource path path = "/api/v1/users/{userId}/presences/{source}".sub('{format}','json').sub('{' + 'userId' + '}', user_id.to_s).sub('{' + 'source' + '}', source.to_s) # query parameters @@ -587,37 +587,37 @@ :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => 'UserPresence') if @api_client.config.debugging - @api_client.config.logger.debug "API called: PresenceApi#patch_user_presences_by_source\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" + @api_client.config.logger.debug "API called: PresenceApi#patch_user_id_presences_source\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end # Get a user&#39;s Primary UserPresence # # @param user_id User ID # @param [Hash] opts the optional parameters # @return [UserPresence] - def get_user_primarypresence(user_id, opts = {}) - data, status_code, headers = get_user_primarypresence_with_http_info(user_id, opts) + def get_user_id_primarypresence(user_id, opts = {}) + data, status_code, headers = get_user_id_primarypresence_with_http_info(user_id, opts) return data end # Get a user&#39;s Primary UserPresence # # @param user_id User ID # @param [Hash] opts the optional parameters # @return [Array<(UserPresence, Fixnum, Hash)>] UserPresence data, response status code and response headers - def get_user_primarypresence_with_http_info(user_id, opts = {}) + def get_user_id_primarypresence_with_http_info(user_id, opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug "Calling API: PresenceApi#get_user_primarypresence ..." + @api_client.config.logger.debug "Calling API: PresenceApi#get_user_id_primarypresence ..." end # verify the required parameter 'user_id' is set - fail "Missing the required parameter 'user_id' when calling get_user_primarypresence" if user_id.nil? + fail "Missing the required parameter 'user_id' when calling get_user_id_primarypresence" if user_id.nil? # resource path path = "/api/v1/users/{userId}/primarypresence".sub('{format}','json').sub('{' + 'userId' + '}', user_id.to_s) # query parameters @@ -648,10 +648,10 @@ :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => 'UserPresence') if @api_client.config.debugging - @api_client.config.logger.debug "API called: PresenceApi#get_user_primarypresence\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" + @api_client.config.logger.debug "API called: PresenceApi#get_user_id_primarypresence\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end end end