lib/purecloud/api/alerting_api.rb in purecloud-0.44.1 vs lib/purecloud/api/alerting_api.rb in purecloud-0.45.1
- old
+ new
@@ -427,28 +427,31 @@
return data, status_code, headers
end
# Create an interaction stats rule.
#
+ # @param body AlertingRule
# @param [Hash] opts the optional parameters
- # @option opts [InteractionStatsRule] :body AlertingRule
# @return [InteractionStatsRule]
- def post_interactionstats_rules(opts = {})
- data, status_code, headers = post_interactionstats_rules_with_http_info(opts)
+ def post_interactionstats_rules(body, opts = {})
+ data, status_code, headers = post_interactionstats_rules_with_http_info(body, opts)
return data
end
# Create an interaction stats rule.
#
+ # @param body AlertingRule
# @param [Hash] opts the optional parameters
- # @option opts [InteractionStatsRule] :body AlertingRule
# @return [Array<(InteractionStatsRule, Fixnum, Hash)>] InteractionStatsRule data, response status code and response headers
- def post_interactionstats_rules_with_http_info(opts = {})
+ def post_interactionstats_rules_with_http_info(body, opts = {})
if @api_client.config.debugging
@api_client.config.logger.debug "Calling API: AlertingApi#post_interactionstats_rules ..."
end
+ # verify the required parameter 'body' is set
+ fail "Missing the required parameter 'body' when calling post_interactionstats_rules" if body.nil?
+
# resource path
local_var_path = "/api/v2/alerting/interactionstats/rules".sub('{format}','json')
# query parameters
query_params = {}
@@ -466,11 +469,11 @@
# form parameters
form_params = {}
# http body (model)
- post_body = @api_client.object_to_http_body(opts[:'body'])
+ 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,
@@ -485,32 +488,35 @@
end
# Update an interaction stats alert read status
#
# @param alert_id Alert ID
+ # @param body InteractionStatsAlert
# @param [Hash] opts the optional parameters
- # @option opts [UnreadStatus] :body InteractionStatsAlert
# @return [UnreadStatus]
- def put_interactionstats_alerts_alert_id(alert_id, opts = {})
- data, status_code, headers = put_interactionstats_alerts_alert_id_with_http_info(alert_id, opts)
+ def put_interactionstats_alerts_alert_id(alert_id, body, opts = {})
+ data, status_code, headers = put_interactionstats_alerts_alert_id_with_http_info(alert_id, body, opts)
return data
end
# Update an interaction stats alert read status
#
# @param alert_id Alert ID
+ # @param body InteractionStatsAlert
# @param [Hash] opts the optional parameters
- # @option opts [UnreadStatus] :body InteractionStatsAlert
# @return [Array<(UnreadStatus, Fixnum, Hash)>] UnreadStatus data, response status code and response headers
- def put_interactionstats_alerts_alert_id_with_http_info(alert_id, opts = {})
+ def put_interactionstats_alerts_alert_id_with_http_info(alert_id, body, opts = {})
if @api_client.config.debugging
@api_client.config.logger.debug "Calling API: AlertingApi#put_interactionstats_alerts_alert_id ..."
end
# verify the required parameter 'alert_id' is set
fail "Missing the required parameter 'alert_id' when calling put_interactionstats_alerts_alert_id" if alert_id.nil?
+ # verify the required parameter 'body' is set
+ fail "Missing the required parameter 'body' when calling put_interactionstats_alerts_alert_id" if body.nil?
+
# resource path
local_var_path = "/api/v2/alerting/interactionstats/alerts/{alertId}".sub('{format}','json').sub('{' + 'alertId' + '}', alert_id.to_s)
# query parameters
query_params = {}
@@ -528,11 +534,11 @@
# form parameters
form_params = {}
# http body (model)
- post_body = @api_client.object_to_http_body(opts[:'body'])
+ 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,
@@ -547,32 +553,35 @@
end
# Update an interaction stats rule
#
# @param rule_id Rule ID
+ # @param body AlertingRule
# @param [Hash] opts the optional parameters
- # @option opts [InteractionStatsRule] :body AlertingRule
# @return [InteractionStatsRule]
- def put_interactionstats_rules_rule_id(rule_id, opts = {})
- data, status_code, headers = put_interactionstats_rules_rule_id_with_http_info(rule_id, opts)
+ def put_interactionstats_rules_rule_id(rule_id, body, opts = {})
+ data, status_code, headers = put_interactionstats_rules_rule_id_with_http_info(rule_id, body, opts)
return data
end
# Update an interaction stats rule
#
# @param rule_id Rule ID
+ # @param body AlertingRule
# @param [Hash] opts the optional parameters
- # @option opts [InteractionStatsRule] :body AlertingRule
# @return [Array<(InteractionStatsRule, Fixnum, Hash)>] InteractionStatsRule data, response status code and response headers
- def put_interactionstats_rules_rule_id_with_http_info(rule_id, opts = {})
+ def put_interactionstats_rules_rule_id_with_http_info(rule_id, body, opts = {})
if @api_client.config.debugging
@api_client.config.logger.debug "Calling API: AlertingApi#put_interactionstats_rules_rule_id ..."
end
# verify the required parameter 'rule_id' is set
fail "Missing the required parameter 'rule_id' when calling put_interactionstats_rules_rule_id" if rule_id.nil?
+ # verify the required parameter 'body' is set
+ fail "Missing the required parameter 'body' when calling put_interactionstats_rules_rule_id" if body.nil?
+
# resource path
local_var_path = "/api/v2/alerting/interactionstats/rules/{ruleId}".sub('{format}','json').sub('{' + 'ruleId' + '}', rule_id.to_s)
# query parameters
query_params = {}
@@ -590,10 +599,10 @@
# form parameters
form_params = {}
# http body (model)
- post_body = @api_client.object_to_http_body(opts[:'body'])
+ 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,