lib/purecloud/api/presence_api.rb in purecloud-0.50.1 vs lib/purecloud/api/presence_api.rb in purecloud-0.51.1
- old
+ new
@@ -86,20 +86,22 @@
# Get a Presence Definition
#
# @param presence_id Organization Presence ID
# @param [Hash] opts the optional parameters
+ # @option opts [String] :locale_code The locale code to fetch for the presence definition. Use ALL to fetch everything.
# @return [OrganizationPresence]
def get_presence_id(presence_id, opts = {})
data, status_code, headers = get_presence_id_with_http_info(presence_id, opts)
return data
end
# Get a Presence Definition
#
# @param presence_id Organization Presence ID
# @param [Hash] opts the optional parameters
+ # @option opts [String] :locale_code The locale code to fetch for the presence definition. Use ALL to fetch everything.
# @return [Array<(OrganizationPresence, Fixnum, Hash)>] OrganizationPresence data, response status code and response headers
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_id ..."
end
@@ -110,10 +112,11 @@
# resource path
local_var_path = "/api/v2/presencedefinitions/{presenceId}".sub('{format}','json').sub('{' + 'presenceId' + '}', presence_id.to_s)
# query parameters
query_params = {}
+ query_params[:'localeCode'] = opts[:'locale_code'] if opts[:'locale_code']
# header parameters
header_params = {}
# HTTP header 'Accept' (if needed)
@@ -147,11 +150,12 @@
# Get an Organization's list of Presence Definitions
#
# @param [Hash] opts the optional parameters
# @option opts [Integer] :page_number Page number (default to 1)
# @option opts [Integer] :page_size Page size (default to 25)
- # @option opts [String] :deleted Deleted query can be true, false or all (default to false)
+ # @option opts [String] :deleted Deleted query can be TRUE, FALSE or ALL (default to false)
+ # @option opts [String] :locale_code The locale code to fetch for each presence definition. Use ALL to fetch everything.
# @return [OrganizationPresenceEntityListing]
def get_presencedefinitions(opts = {})
data, status_code, headers = get_presencedefinitions_with_http_info(opts)
return data
end
@@ -159,11 +163,12 @@
# Get an Organization's list of Presence Definitions
#
# @param [Hash] opts the optional parameters
# @option opts [Integer] :page_number Page number
# @option opts [Integer] :page_size Page size
- # @option opts [String] :deleted Deleted query can be true, false or all
+ # @option opts [String] :deleted Deleted query can be TRUE, FALSE or ALL
+ # @option opts [String] :locale_code The locale code to fetch for each presence definition. Use ALL to fetch everything.
# @return [Array<(OrganizationPresenceEntityListing, Fixnum, Hash)>] OrganizationPresenceEntityListing data, response status code and response headers
def get_presencedefinitions_with_http_info(opts = {})
if @api_client.config.debugging
@api_client.config.logger.debug "Calling API: PresenceApi#get_presencedefinitions ..."
end
@@ -174,9 +179,10 @@
# query parameters
query_params = {}
query_params[:'pageNumber'] = opts[:'page_number'] if opts[:'page_number']
query_params[:'pageSize'] = opts[:'page_size'] if opts[:'page_size']
query_params[:'deleted'] = opts[:'deleted'] if opts[:'deleted']
+ query_params[:'localeCode'] = opts[:'locale_code'] if opts[:'locale_code']
# header parameters
header_params = {}
# HTTP header 'Accept' (if needed)