lib/purecloudplatformclientv2/api/greetings_api.rb in purecloudplatformclientv2-8.0.0 vs lib/purecloudplatformclientv2/api/greetings_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_greeting_with_http_info(greeting_id, opts = {})
if @api_client.config.debugging
@api_client.config.logger.debug "Calling API: GreetingsApi.delete_greeting ..."
end
+
+
# verify the required parameter 'greeting_id' is set
fail ArgumentError, "Missing the required parameter 'greeting_id' when calling GreetingsApi.delete_greeting" if greeting_id.nil?
+
+
+
+
+
# resource path
local_var_path = "/api/v2/greetings/{greetingId}".sub('{format}','json').sub('{' + 'greetingId' + '}', greeting_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<(Greeting, Fixnum, Hash)>] Greeting data, response status code and response headers
def get_greeting_with_http_info(greeting_id, opts = {})
if @api_client.config.debugging
@api_client.config.logger.debug "Calling API: GreetingsApi.get_greeting ..."
end
+
+
# verify the required parameter 'greeting_id' is set
fail ArgumentError, "Missing the required parameter 'greeting_id' when calling GreetingsApi.get_greeting" if greeting_id.nil?
+
+
+
+
+
# resource path
local_var_path = "/api/v2/greetings/{greetingId}".sub('{format}','json').sub('{' + 'greetingId' + '}', greeting_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(:GET, local_var_path,
:header_params => header_params,
:query_params => query_params,
:form_params => form_params,
:body => post_body,
@@ -156,15 +172,29 @@
# @return [Array<(GreetingMediaInfo, Fixnum, Hash)>] GreetingMediaInfo data, response status code and response headers
def get_greeting_media_with_http_info(greeting_id, opts = {})
if @api_client.config.debugging
@api_client.config.logger.debug "Calling API: GreetingsApi.get_greeting_media ..."
end
+
+
# verify the required parameter 'greeting_id' is set
fail ArgumentError, "Missing the required parameter 'greeting_id' when calling GreetingsApi.get_greeting_media" if greeting_id.nil?
+
+
+
+
+
+
+
+
if opts[:'format_id'] && !['WAV', 'WEBM', 'WAV_ULAW', 'OGG_VORBIS', 'OGG_OPUS', 'NONE'].include?(opts[:'format_id'])
fail ArgumentError, 'invalid value for "format_id", must be one of WAV, WEBM, WAV_ULAW, OGG_VORBIS, OGG_OPUS, NONE'
end
+
+
+
+
# resource path
local_var_path = "/api/v2/greetings/{greetingId}/media".sub('{format}','json').sub('{' + 'greetingId' + '}', greeting_id.to_s)
# query parameters
query_params = {}
@@ -184,11 +214,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,
@@ -219,10 +250,23 @@
# @return [Array<(DomainEntityListing, Fixnum, Hash)>] DomainEntityListing data, response status code and response headers
def get_greetings_with_http_info(opts = {})
if @api_client.config.debugging
@api_client.config.logger.debug "Calling API: GreetingsApi.get_greetings ..."
end
+
+
+
+
+
+
+
+
+
+
+
+
+
# resource path
local_var_path = "/api/v2/greetings".sub('{format}','json')
# query parameters
query_params = {}
@@ -243,11 +287,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,
@@ -274,10 +319,11 @@
# @return [Array<(DefaultGreetingList, Fixnum, Hash)>] DefaultGreetingList data, response status code and response headers
def get_greetings_defaults_with_http_info(opts = {})
if @api_client.config.debugging
@api_client.config.logger.debug "Calling API: GreetingsApi.get_greetings_defaults ..."
end
+
# resource path
local_var_path = "/api/v2/greetings/defaults".sub('{format}','json')
# query parameters
query_params = {}
@@ -296,11 +342,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,
@@ -333,12 +380,31 @@
# @return [Array<(GreetingListing, Fixnum, Hash)>] GreetingListing data, response status code and response headers
def get_group_greetings_with_http_info(group_id, opts = {})
if @api_client.config.debugging
@api_client.config.logger.debug "Calling API: GreetingsApi.get_group_greetings ..."
end
+
+
# verify the required parameter 'group_id' is set
fail ArgumentError, "Missing the required parameter 'group_id' when calling GreetingsApi.get_group_greetings" if group_id.nil?
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
# resource path
local_var_path = "/api/v2/groups/{groupId}/greetings".sub('{format}','json').sub('{' + 'groupId' + '}', group_id.to_s)
# query parameters
query_params = {}
@@ -359,11 +425,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,
@@ -392,12 +459,19 @@
# @return [Array<(DefaultGreetingList, Fixnum, Hash)>] DefaultGreetingList data, response status code and response headers
def get_group_greetings_defaults_with_http_info(group_id, opts = {})
if @api_client.config.debugging
@api_client.config.logger.debug "Calling API: GreetingsApi.get_group_greetings_defaults ..."
end
+
+
# verify the required parameter 'group_id' is set
fail ArgumentError, "Missing the required parameter 'group_id' when calling GreetingsApi.get_group_greetings_defaults" if group_id.nil?
+
+
+
+
+
# resource path
local_var_path = "/api/v2/groups/{groupId}/greetings/defaults".sub('{format}','json').sub('{' + 'groupId' + '}', group_id.to_s)
# query parameters
query_params = {}
@@ -416,11 +490,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,
@@ -453,12 +528,31 @@
# @return [Array<(DomainEntityListing, Fixnum, Hash)>] DomainEntityListing data, response status code and response headers
def get_user_greetings_with_http_info(user_id, opts = {})
if @api_client.config.debugging
@api_client.config.logger.debug "Calling API: GreetingsApi.get_user_greetings ..."
end
+
+
# verify the required parameter 'user_id' is set
fail ArgumentError, "Missing the required parameter 'user_id' when calling GreetingsApi.get_user_greetings" if user_id.nil?
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
# resource path
local_var_path = "/api/v2/users/{userId}/greetings".sub('{format}','json').sub('{' + 'userId' + '}', user_id.to_s)
# query parameters
query_params = {}
@@ -479,11 +573,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,
@@ -512,12 +607,19 @@
# @return [Array<(DefaultGreetingList, Fixnum, Hash)>] DefaultGreetingList data, response status code and response headers
def get_user_greetings_defaults_with_http_info(user_id, opts = {})
if @api_client.config.debugging
@api_client.config.logger.debug "Calling API: GreetingsApi.get_user_greetings_defaults ..."
end
+
+
# verify the required parameter 'user_id' is set
fail ArgumentError, "Missing the required parameter 'user_id' when calling GreetingsApi.get_user_greetings_defaults" if user_id.nil?
+
+
+
+
+
# resource path
local_var_path = "/api/v2/users/{userId}/greetings/defaults".sub('{format}','json').sub('{' + 'userId' + '}', user_id.to_s)
# query parameters
query_params = {}
@@ -536,11 +638,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,
@@ -569,12 +672,19 @@
# @return [Array<(DefaultGreetingList, Fixnum, Hash)>] DefaultGreetingList data, response status code and response headers
def post_greetings_with_http_info(body, opts = {})
if @api_client.config.debugging
@api_client.config.logger.debug "Calling API: GreetingsApi.post_greetings ..."
end
+
+
# verify the required parameter 'body' is set
fail ArgumentError, "Missing the required parameter 'body' when calling GreetingsApi.post_greetings" if body.nil?
+
+
+
+
+
# resource path
local_var_path = "/api/v2/greetings".sub('{format}','json')
# query parameters
query_params = {}
@@ -593,10 +703,11 @@
# 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,
@@ -628,14 +739,27 @@
# @return [Array<(Greeting, Fixnum, Hash)>] Greeting data, response status code and response headers
def post_group_greetings_with_http_info(group_id, body, opts = {})
if @api_client.config.debugging
@api_client.config.logger.debug "Calling API: GreetingsApi.post_group_greetings ..."
end
+
+
# verify the required parameter 'group_id' is set
fail ArgumentError, "Missing the required parameter 'group_id' when calling GreetingsApi.post_group_greetings" if group_id.nil?
+
+
+
+
+
+
# verify the required parameter 'body' is set
fail ArgumentError, "Missing the required parameter 'body' when calling GreetingsApi.post_group_greetings" if body.nil?
+
+
+
+
+
# resource path
local_var_path = "/api/v2/groups/{groupId}/greetings".sub('{format}','json').sub('{' + 'groupId' + '}', group_id.to_s)
# query parameters
query_params = {}
@@ -654,10 +778,11 @@
# 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,
@@ -689,14 +814,27 @@
# @return [Array<(Greeting, Fixnum, Hash)>] Greeting data, response status code and response headers
def post_user_greetings_with_http_info(user_id, body, opts = {})
if @api_client.config.debugging
@api_client.config.logger.debug "Calling API: GreetingsApi.post_user_greetings ..."
end
+
+
# verify the required parameter 'user_id' is set
fail ArgumentError, "Missing the required parameter 'user_id' when calling GreetingsApi.post_user_greetings" if user_id.nil?
+
+
+
+
+
+
# verify the required parameter 'body' is set
fail ArgumentError, "Missing the required parameter 'body' when calling GreetingsApi.post_user_greetings" if body.nil?
+
+
+
+
+
# resource path
local_var_path = "/api/v2/users/{userId}/greetings".sub('{format}','json').sub('{' + 'userId' + '}', user_id.to_s)
# query parameters
query_params = {}
@@ -715,10 +853,11 @@
# 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,
@@ -750,14 +889,27 @@
# @return [Array<(Greeting, Fixnum, Hash)>] Greeting data, response status code and response headers
def put_greeting_with_http_info(greeting_id, body, opts = {})
if @api_client.config.debugging
@api_client.config.logger.debug "Calling API: GreetingsApi.put_greeting ..."
end
+
+
# verify the required parameter 'greeting_id' is set
fail ArgumentError, "Missing the required parameter 'greeting_id' when calling GreetingsApi.put_greeting" if greeting_id.nil?
+
+
+
+
+
+
# verify the required parameter 'body' is set
fail ArgumentError, "Missing the required parameter 'body' when calling GreetingsApi.put_greeting" if body.nil?
+
+
+
+
+
# resource path
local_var_path = "/api/v2/greetings/{greetingId}".sub('{format}','json').sub('{' + 'greetingId' + '}', greeting_id.to_s)
# query parameters
query_params = {}
@@ -776,10 +928,11 @@
# 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(:PUT, local_var_path,
:header_params => header_params,
:query_params => query_params,
:form_params => form_params,
@@ -809,12 +962,19 @@
# @return [Array<(DefaultGreetingList, Fixnum, Hash)>] DefaultGreetingList data, response status code and response headers
def put_greetings_defaults_with_http_info(body, opts = {})
if @api_client.config.debugging
@api_client.config.logger.debug "Calling API: GreetingsApi.put_greetings_defaults ..."
end
+
+
# verify the required parameter 'body' is set
fail ArgumentError, "Missing the required parameter 'body' when calling GreetingsApi.put_greetings_defaults" if body.nil?
+
+
+
+
+
# resource path
local_var_path = "/api/v2/greetings/defaults".sub('{format}','json')
# query parameters
query_params = {}
@@ -833,10 +993,11 @@
# 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(:PUT, local_var_path,
:header_params => header_params,
:query_params => query_params,
:form_params => form_params,
@@ -868,14 +1029,27 @@
# @return [Array<(DefaultGreetingList, Fixnum, Hash)>] DefaultGreetingList data, response status code and response headers
def put_group_greetings_defaults_with_http_info(group_id, body, opts = {})
if @api_client.config.debugging
@api_client.config.logger.debug "Calling API: GreetingsApi.put_group_greetings_defaults ..."
end
+
+
# verify the required parameter 'group_id' is set
fail ArgumentError, "Missing the required parameter 'group_id' when calling GreetingsApi.put_group_greetings_defaults" if group_id.nil?
+
+
+
+
+
+
# verify the required parameter 'body' is set
fail ArgumentError, "Missing the required parameter 'body' when calling GreetingsApi.put_group_greetings_defaults" if body.nil?
+
+
+
+
+
# resource path
local_var_path = "/api/v2/groups/{groupId}/greetings/defaults".sub('{format}','json').sub('{' + 'groupId' + '}', group_id.to_s)
# query parameters
query_params = {}
@@ -894,10 +1068,11 @@
# 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(:PUT, local_var_path,
:header_params => header_params,
:query_params => query_params,
:form_params => form_params,
@@ -929,14 +1104,27 @@
# @return [Array<(DefaultGreetingList, Fixnum, Hash)>] DefaultGreetingList data, response status code and response headers
def put_user_greetings_defaults_with_http_info(user_id, body, opts = {})
if @api_client.config.debugging
@api_client.config.logger.debug "Calling API: GreetingsApi.put_user_greetings_defaults ..."
end
+
+
# verify the required parameter 'user_id' is set
fail ArgumentError, "Missing the required parameter 'user_id' when calling GreetingsApi.put_user_greetings_defaults" if user_id.nil?
+
+
+
+
+
+
# verify the required parameter 'body' is set
fail ArgumentError, "Missing the required parameter 'body' when calling GreetingsApi.put_user_greetings_defaults" if body.nil?
+
+
+
+
+
# resource path
local_var_path = "/api/v2/users/{userId}/greetings/defaults".sub('{format}','json').sub('{' + 'userId' + '}', user_id.to_s)
# query parameters
query_params = {}
@@ -955,9 +1143,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(:PUT, local_var_path,
:header_params => header_params,
:query_params => query_params,
:form_params => form_params,