lib/purecloudplatformclientv2/api/languages_api.rb in purecloudplatformclientv2-8.0.0 vs lib/purecloudplatformclientv2/api/languages_api.rb in purecloudplatformclientv2-9.0.0
- old
+ new
@@ -41,12 +41,19 @@
# @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers
def delete_language_with_http_info(language_id, opts = {})
if @api_client.config.debugging
@api_client.config.logger.debug "Calling API: LanguagesApi.delete_language ..."
end
+
+
# verify the required parameter 'language_id' is set
fail ArgumentError, "Missing the required parameter 'language_id' when calling LanguagesApi.delete_language" if language_id.nil?
+
+
+
+
+
# resource path
local_var_path = "/api/v2/languages/{languageId}".sub('{format}','json').sub('{' + 'languageId' + '}', language_id.to_s)
# query parameters
query_params = {}
@@ -65,11 +72,12 @@
# form parameters
form_params = {}
# http body (model)
post_body = nil
- auth_names = ['PureCloud Auth']
+
+ auth_names = ['PureCloud Auth']
data, status_code, headers = @api_client.call_api(:DELETE, local_var_path,
:header_params => header_params,
:query_params => query_params,
:form_params => form_params,
:body => post_body,
@@ -97,12 +105,19 @@
# @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers
def delete_routing_language_with_http_info(language_id, opts = {})
if @api_client.config.debugging
@api_client.config.logger.debug "Calling API: LanguagesApi.delete_routing_language ..."
end
+
+
# verify the required parameter 'language_id' is set
fail ArgumentError, "Missing the required parameter 'language_id' when calling LanguagesApi.delete_routing_language" if language_id.nil?
+
+
+
+
+
# resource path
local_var_path = "/api/v2/routing/languages/{languageId}".sub('{format}','json').sub('{' + 'languageId' + '}', language_id.to_s)
# query parameters
query_params = {}
@@ -121,11 +136,12 @@
# form parameters
form_params = {}
# http body (model)
post_body = nil
- auth_names = ['PureCloud Auth']
+
+ auth_names = ['PureCloud Auth']
data, status_code, headers = @api_client.call_api(:DELETE, local_var_path,
:header_params => header_params,
:query_params => query_params,
:form_params => form_params,
:body => post_body,
@@ -153,12 +169,19 @@
# @return [Array<(Language, Fixnum, Hash)>] Language data, response status code and response headers
def get_language_with_http_info(language_id, opts = {})
if @api_client.config.debugging
@api_client.config.logger.debug "Calling API: LanguagesApi.get_language ..."
end
+
+
# verify the required parameter 'language_id' is set
fail ArgumentError, "Missing the required parameter 'language_id' when calling LanguagesApi.get_language" if language_id.nil?
+
+
+
+
+
# resource path
local_var_path = "/api/v2/languages/{languageId}".sub('{format}','json').sub('{' + 'languageId' + '}', language_id.to_s)
# query parameters
query_params = {}
@@ -177,11 +200,12 @@
# form parameters
form_params = {}
# http body (model)
post_body = nil
- auth_names = ['PureCloud Auth']
+
+ auth_names = ['PureCloud Auth']
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
:header_params => header_params,
:query_params => query_params,
:form_params => form_params,
:body => post_body,
@@ -216,13 +240,39 @@
# @return [Array<(LanguageEntityListing, Fixnum, Hash)>] LanguageEntityListing data, response status code and response headers
def get_languages_with_http_info(opts = {})
if @api_client.config.debugging
@api_client.config.logger.debug "Calling API: LanguagesApi.get_languages ..."
end
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
if opts[:'sort_order'] && !['ascending', 'descending'].include?(opts[:'sort_order'])
fail ArgumentError, 'invalid value for "sort_order", must be one of ascending, descending'
end
+
+
+
+
+
+
+
+
+
+
# resource path
local_var_path = "/api/v2/languages".sub('{format}','json')
# query parameters
query_params = {}
@@ -245,11 +295,12 @@
# form parameters
form_params = {}
# http body (model)
post_body = nil
- auth_names = ['PureCloud Auth']
+
+ auth_names = ['PureCloud Auth']
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
:header_params => header_params,
:query_params => query_params,
:form_params => form_params,
:body => post_body,
@@ -276,10 +327,11 @@
# @return [Array<(AvailableTranslations, Fixnum, Hash)>] AvailableTranslations data, response status code and response headers
def get_languages_translations_with_http_info(opts = {})
if @api_client.config.debugging
@api_client.config.logger.debug "Calling API: LanguagesApi.get_languages_translations ..."
end
+
# resource path
local_var_path = "/api/v2/languages/translations".sub('{format}','json')
# query parameters
query_params = {}
@@ -298,11 +350,12 @@
# form parameters
form_params = {}
# http body (model)
post_body = nil
- auth_names = ['PureCloud Auth']
+
+ auth_names = ['PureCloud Auth']
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
:header_params => header_params,
:query_params => query_params,
:form_params => form_params,
:body => post_body,
@@ -331,12 +384,19 @@
# @return [Array<(Hash<String, Object>, Fixnum, Hash)>] Hash<String, Object> data, response status code and response headers
def get_languages_translations_builtin_with_http_info(language, opts = {})
if @api_client.config.debugging
@api_client.config.logger.debug "Calling API: LanguagesApi.get_languages_translations_builtin ..."
end
+
+
# verify the required parameter 'language' is set
fail ArgumentError, "Missing the required parameter 'language' when calling LanguagesApi.get_languages_translations_builtin" if language.nil?
+
+
+
+
+
# resource path
local_var_path = "/api/v2/languages/translations/builtin".sub('{format}','json')
# query parameters
query_params = {}
@@ -356,11 +416,12 @@
# form parameters
form_params = {}
# http body (model)
post_body = nil
- auth_names = ['PureCloud Auth']
+
+ auth_names = ['PureCloud Auth']
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
:header_params => header_params,
:query_params => query_params,
:form_params => form_params,
:body => post_body,
@@ -389,12 +450,19 @@
# @return [Array<(Hash<String, Object>, Fixnum, Hash)>] Hash<String, Object> data, response status code and response headers
def get_languages_translations_organization_with_http_info(language, opts = {})
if @api_client.config.debugging
@api_client.config.logger.debug "Calling API: LanguagesApi.get_languages_translations_organization ..."
end
+
+
# verify the required parameter 'language' is set
fail ArgumentError, "Missing the required parameter 'language' when calling LanguagesApi.get_languages_translations_organization" if language.nil?
+
+
+
+
+
# resource path
local_var_path = "/api/v2/languages/translations/organization".sub('{format}','json')
# query parameters
query_params = {}
@@ -414,11 +482,12 @@
# form parameters
form_params = {}
# http body (model)
post_body = nil
- auth_names = ['PureCloud Auth']
+
+ auth_names = ['PureCloud Auth']
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
:header_params => header_params,
:query_params => query_params,
:form_params => form_params,
:body => post_body,
@@ -447,12 +516,19 @@
# @return [Array<(Hash<String, Object>, Fixnum, Hash)>] Hash<String, Object> data, response status code and response headers
def get_languages_translations_user_with_http_info(user_id, opts = {})
if @api_client.config.debugging
@api_client.config.logger.debug "Calling API: LanguagesApi.get_languages_translations_user ..."
end
+
+
# verify the required parameter 'user_id' is set
fail ArgumentError, "Missing the required parameter 'user_id' when calling LanguagesApi.get_languages_translations_user" if user_id.nil?
+
+
+
+
+
# resource path
local_var_path = "/api/v2/languages/translations/users/{userId}".sub('{format}','json').sub('{' + 'userId' + '}', user_id.to_s)
# query parameters
query_params = {}
@@ -471,11 +547,12 @@
# form parameters
form_params = {}
# http body (model)
post_body = nil
- auth_names = ['PureCloud Auth']
+
+ auth_names = ['PureCloud Auth']
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
:header_params => header_params,
:query_params => query_params,
:form_params => form_params,
:body => post_body,
@@ -504,12 +581,19 @@
# @return [Array<(Language, Fixnum, Hash)>] Language data, response status code and response headers
def get_routing_language_with_http_info(language_id, opts = {})
if @api_client.config.debugging
@api_client.config.logger.debug "Calling API: LanguagesApi.get_routing_language ..."
end
+
+
# verify the required parameter 'language_id' is set
fail ArgumentError, "Missing the required parameter 'language_id' when calling LanguagesApi.get_routing_language" if language_id.nil?
+
+
+
+
+
# resource path
local_var_path = "/api/v2/routing/languages/{languageId}".sub('{format}','json').sub('{' + 'languageId' + '}', language_id.to_s)
# query parameters
query_params = {}
@@ -528,11 +612,12 @@
# form parameters
form_params = {}
# http body (model)
post_body = nil
- auth_names = ['PureCloud Auth']
+
+ auth_names = ['PureCloud Auth']
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
:header_params => header_params,
:query_params => query_params,
:form_params => form_params,
:body => post_body,
@@ -561,12 +646,19 @@
# @return [Array<(Language, Fixnum, Hash)>] Language data, response status code and response headers
def post_languages_with_http_info(body, opts = {})
if @api_client.config.debugging
@api_client.config.logger.debug "Calling API: LanguagesApi.post_languages ..."
end
+
+
# verify the required parameter 'body' is set
fail ArgumentError, "Missing the required parameter 'body' when calling LanguagesApi.post_languages" if body.nil?
+
+
+
+
+
# resource path
local_var_path = "/api/v2/languages".sub('{format}','json')
# query parameters
query_params = {}
@@ -585,9 +677,10 @@
# form parameters
form_params = {}
# http body (model)
post_body = @api_client.object_to_http_body(body)
+
auth_names = ['PureCloud Auth']
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
:header_params => header_params,
:query_params => query_params,
:form_params => form_params,