purecloudplatformclientv2 11.0.0 → 12.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.md +2 -2
- data/docs/CallbackConversationNotificationCallbackMediaParticipant.md +1 -1
- data/docs/CallbackConversationNotificationParticipants.md +1 -1
- data/docs/CallbackConversationNotificationVoicemail.md +1 -0
- data/docs/ConversationNotificationCallback.md +1 -1
- data/docs/ConversationNotificationCallbacks.md +1 -1
- data/docs/ConversationNotificationVoicemail.md +1 -0
- data/docs/RuleSetNotificationCondition.md +2 -0
- data/docs/RuleSetNotificationConditions.md +2 -0
- data/docs/StatsNotificationNotification.md +14 -0
- data/docs/StatsNotificationNotificationData.md +14 -0
- data/docs/StatsNotificationNotificationDatum.md +14 -0
- data/docs/StatsNotificationNotificationMetric.md +15 -0
- data/docs/StatsNotificationNotificationMetrics.md +15 -0
- data/docs/WfmHistoricalAdherenceCalculationsCompleteNoticeNotification.md +15 -0
- data/lib/purecloudplatformclientv2.rb +6 -0
- data/lib/purecloudplatformclientv2/models/callback_conversation_notification_callback_media_participant.rb +1 -1
- data/lib/purecloudplatformclientv2/models/callback_conversation_notification_participants.rb +1 -1
- data/lib/purecloudplatformclientv2/models/callback_conversation_notification_voicemail.rb +43 -4
- data/lib/purecloudplatformclientv2/models/conversation_notification_callback.rb +3 -3
- data/lib/purecloudplatformclientv2/models/conversation_notification_callbacks.rb +3 -3
- data/lib/purecloudplatformclientv2/models/conversation_notification_voicemail.rb +43 -4
- data/lib/purecloudplatformclientv2/models/flow_notification_notification_architect_operation.rb +2 -2
- data/lib/purecloudplatformclientv2/models/prompt_notification_notification_architect_operation.rb +2 -2
- data/lib/purecloudplatformclientv2/models/prompt_notification_notification_current_operation.rb +2 -2
- data/lib/purecloudplatformclientv2/models/rule_set_notification_condition.rb +65 -1
- data/lib/purecloudplatformclientv2/models/rule_set_notification_conditions.rb +65 -1
- data/lib/purecloudplatformclientv2/models/stats_notification_notification.rb +230 -0
- data/lib/purecloudplatformclientv2/models/stats_notification_notification_data.rb +228 -0
- data/lib/purecloudplatformclientv2/models/stats_notification_notification_datum.rb +228 -0
- data/lib/purecloudplatformclientv2/models/stats_notification_notification_metric.rb +253 -0
- data/lib/purecloudplatformclientv2/models/stats_notification_notification_metrics.rb +253 -0
- data/lib/purecloudplatformclientv2/models/wfm_historical_adherence_calculations_complete_notice_notification.rb +265 -0
- data/lib/purecloudplatformclientv2/version.rb +1 -1
- metadata +14 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: bde0c5d99e033a79bd4e04e746027d7373516fd5
|
4
|
+
data.tar.gz: 06af94a0572d11b8810bf1310b109756209a530d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c1a060be46276fb44dd93fecb882f1bfc6915790e26fb46a48578a6574da8d1fccdd64216547b0bed51a993576dbb2be5025af9872ffe522561a4ccc198eaaa1
|
7
|
+
data.tar.gz: ffc5601aaf893df2f5d40c27f186cdf9d83683098b35c13d9581d9abbff6e4a25ba50c54a96ebcb306fca32139bfb8d6e6e6178dc8a9e0284ab39eba7cb63bcf
|
data/README.md
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
title: PureCloud Ruby Gem
|
3
3
|
---
|
4
|
-

|
5
5
|
|
6
6
|
Documentation can be found at [https://developer.mypurecloud.com/api/rest/client-libraries/ruby/](https://developer.mypurecloud.com/api/rest/client-libraries/ruby/)
|
7
7
|
|
@@ -10,7 +10,7 @@ Documentation can be found at [https://developer.mypurecloud.com/api/rest/client
|
|
10
10
|
### from rubygems.org
|
11
11
|
|
12
12
|
~~~ ruby
|
13
|
-
gem install 'purecloudplatformclientv2', '~>
|
13
|
+
gem install 'purecloudplatformclientv2', '~> 12.0.0'
|
14
14
|
~~~
|
15
15
|
|
16
16
|
### Install from Git
|
@@ -34,7 +34,7 @@ title: CallbackConversationNotificationCallbackMediaParticipant
|
|
34
34
|
| **wrapup** | [**ConversationNotificationWrapup**](ConversationNotificationWrapup.html) | | [optional] |
|
35
35
|
| **peer** | **String** | | [optional] |
|
36
36
|
| **outbound_preview** | [**ConversationNotificationDialerPreview**](ConversationNotificationDialerPreview.html) | | [optional] |
|
37
|
-
| **voicemail** | [**
|
37
|
+
| **voicemail** | [**ConversationNotificationVoicemail**](ConversationNotificationVoicemail.html) | | [optional] |
|
38
38
|
| **callback_numbers** | **Array<String>** | | [optional] |
|
39
39
|
| **callback_user_name** | **String** | | [optional] |
|
40
40
|
| **skip_enabled** | **BOOLEAN** | | [optional] |
|
@@ -34,7 +34,7 @@ title: CallbackConversationNotificationParticipants
|
|
34
34
|
| **wrapup** | [**ConversationNotificationWrapup**](ConversationNotificationWrapup.html) | | [optional] |
|
35
35
|
| **peer** | **String** | | [optional] |
|
36
36
|
| **outbound_preview** | [**ConversationNotificationDialerPreview**](ConversationNotificationDialerPreview.html) | | [optional] |
|
37
|
-
| **voicemail** | [**
|
37
|
+
| **voicemail** | [**ConversationNotificationVoicemail**](ConversationNotificationVoicemail.html) | | [optional] |
|
38
38
|
| **callback_numbers** | **Array<String>** | | [optional] |
|
39
39
|
| **callback_user_name** | **String** | | [optional] |
|
40
40
|
| **skip_enabled** | **BOOLEAN** | | [optional] |
|
@@ -8,6 +8,7 @@ title: CallbackConversationNotificationVoicemail
|
|
8
8
|
|Name | Type | Description | Notes|
|
9
9
|
|------------ | ------------- | ------------- | -------------|
|
10
10
|
| **id** | **String** | | [optional] |
|
11
|
+
| **upload_status** | **String** | | [optional] |
|
11
12
|
{: class="table table-striped"}
|
12
13
|
|
13
14
|
|
@@ -14,7 +14,7 @@ title: ConversationNotificationCallback
|
|
14
14
|
| **disconnect_type** | **String** | | [optional] |
|
15
15
|
| **start_hold_time** | **DateTime** | | [optional] |
|
16
16
|
| **dialer_preview** | [**ConversationNotificationDialerPreview**](ConversationNotificationDialerPreview.html) | | [optional] |
|
17
|
-
| **voicemail** | [**
|
17
|
+
| **voicemail** | [**ConversationNotificationVoicemail**](ConversationNotificationVoicemail.html) | | [optional] |
|
18
18
|
| **callback_numbers** | **Array<String>** | | [optional] |
|
19
19
|
| **callback_user_name** | **String** | | [optional] |
|
20
20
|
| **script_id** | **String** | | [optional] |
|
@@ -14,7 +14,7 @@ title: ConversationNotificationCallbacks
|
|
14
14
|
| **disconnect_type** | **String** | | [optional] |
|
15
15
|
| **start_hold_time** | **DateTime** | | [optional] |
|
16
16
|
| **dialer_preview** | [**ConversationNotificationDialerPreview**](ConversationNotificationDialerPreview.html) | | [optional] |
|
17
|
-
| **voicemail** | [**
|
17
|
+
| **voicemail** | [**ConversationNotificationVoicemail**](ConversationNotificationVoicemail.html) | | [optional] |
|
18
18
|
| **callback_numbers** | **Array<String>** | | [optional] |
|
19
19
|
| **callback_user_name** | **String** | | [optional] |
|
20
20
|
| **script_id** | **String** | | [optional] |
|
@@ -8,6 +8,7 @@ title: ConversationNotificationVoicemail
|
|
8
8
|
|Name | Type | Description | Notes|
|
9
9
|
|------------ | ------------- | ------------- | -------------|
|
10
10
|
| **id** | **String** | | [optional] |
|
11
|
+
| **upload_status** | **String** | | [optional] |
|
11
12
|
{: class="table table-striped"}
|
12
13
|
|
13
14
|
|
@@ -14,6 +14,8 @@ title: RuleSetNotificationCondition
|
|
14
14
|
| **value_type** | **String** | | [optional] |
|
15
15
|
| **operator** | **String** | | [optional] |
|
16
16
|
| **codes** | **Array<String>** | | [optional] |
|
17
|
+
| **property_type** | **String** | | [optional] |
|
18
|
+
| **property** | **String** | | [optional] |
|
17
19
|
| **additional_properties** | **Object** | | [optional] |
|
18
20
|
{: class="table table-striped"}
|
19
21
|
|
@@ -14,6 +14,8 @@ title: RuleSetNotificationConditions
|
|
14
14
|
| **value_type** | **String** | | [optional] |
|
15
15
|
| **operator** | **String** | | [optional] |
|
16
16
|
| **codes** | **Array<String>** | | [optional] |
|
17
|
+
| **property_type** | **String** | | [optional] |
|
18
|
+
| **property** | **String** | | [optional] |
|
17
19
|
| **additional_properties** | **Object** | | [optional] |
|
18
20
|
{: class="table table-striped"}
|
19
21
|
|
@@ -0,0 +1,14 @@
|
|
1
|
+
---
|
2
|
+
title: StatsNotificationNotification
|
3
|
+
---
|
4
|
+
## PureCloud::StatsNotificationNotification
|
5
|
+
|
6
|
+
## Properties
|
7
|
+
|
8
|
+
|Name | Type | Description | Notes|
|
9
|
+
|------------ | ------------- | ------------- | -------------|
|
10
|
+
| **group** | **Hash<String, String>** | | [optional] |
|
11
|
+
| **data** | [**Array<StatsNotificationNotificationData>**](StatsNotificationNotificationData.html) | | [optional] |
|
12
|
+
{: class="table table-striped"}
|
13
|
+
|
14
|
+
|
@@ -0,0 +1,14 @@
|
|
1
|
+
---
|
2
|
+
title: StatsNotificationNotificationData
|
3
|
+
---
|
4
|
+
## PureCloud::StatsNotificationNotificationData
|
5
|
+
|
6
|
+
## Properties
|
7
|
+
|
8
|
+
|Name | Type | Description | Notes|
|
9
|
+
|------------ | ------------- | ------------- | -------------|
|
10
|
+
| **interval** | **String** | | [optional] |
|
11
|
+
| **metrics** | [**Array<StatsNotificationNotificationMetrics>**](StatsNotificationNotificationMetrics.html) | | [optional] |
|
12
|
+
{: class="table table-striped"}
|
13
|
+
|
14
|
+
|
@@ -0,0 +1,14 @@
|
|
1
|
+
---
|
2
|
+
title: StatsNotificationNotificationDatum
|
3
|
+
---
|
4
|
+
## PureCloud::StatsNotificationNotificationDatum
|
5
|
+
|
6
|
+
## Properties
|
7
|
+
|
8
|
+
|Name | Type | Description | Notes|
|
9
|
+
|------------ | ------------- | ------------- | -------------|
|
10
|
+
| **interval** | **String** | | [optional] |
|
11
|
+
| **metrics** | [**Array<StatsNotificationNotificationMetrics>**](StatsNotificationNotificationMetrics.html) | | [optional] |
|
12
|
+
{: class="table table-striped"}
|
13
|
+
|
14
|
+
|
@@ -0,0 +1,15 @@
|
|
1
|
+
---
|
2
|
+
title: StatsNotificationNotificationMetric
|
3
|
+
---
|
4
|
+
## PureCloud::StatsNotificationNotificationMetric
|
5
|
+
|
6
|
+
## Properties
|
7
|
+
|
8
|
+
|Name | Type | Description | Notes|
|
9
|
+
|------------ | ------------- | ------------- | -------------|
|
10
|
+
| **metric** | **String** | | [optional] |
|
11
|
+
| **qualifier** | **String** | | [optional] |
|
12
|
+
| **stats** | **Hash<String, Float>** | | [optional] |
|
13
|
+
{: class="table table-striped"}
|
14
|
+
|
15
|
+
|
@@ -0,0 +1,15 @@
|
|
1
|
+
---
|
2
|
+
title: StatsNotificationNotificationMetrics
|
3
|
+
---
|
4
|
+
## PureCloud::StatsNotificationNotificationMetrics
|
5
|
+
|
6
|
+
## Properties
|
7
|
+
|
8
|
+
|Name | Type | Description | Notes|
|
9
|
+
|------------ | ------------- | ------------- | -------------|
|
10
|
+
| **metric** | **String** | | [optional] |
|
11
|
+
| **qualifier** | **String** | | [optional] |
|
12
|
+
| **stats** | **Hash<String, Float>** | | [optional] |
|
13
|
+
{: class="table table-striped"}
|
14
|
+
|
15
|
+
|
@@ -0,0 +1,15 @@
|
|
1
|
+
---
|
2
|
+
title: WfmHistoricalAdherenceCalculationsCompleteNoticeNotification
|
3
|
+
---
|
4
|
+
## PureCloud::WfmHistoricalAdherenceCalculationsCompleteNoticeNotification
|
5
|
+
|
6
|
+
## Properties
|
7
|
+
|
8
|
+
|Name | Type | Description | Notes|
|
9
|
+
|------------ | ------------- | ------------- | -------------|
|
10
|
+
| **id** | **String** | | [optional] |
|
11
|
+
| **download_url** | **String** | | [optional] |
|
12
|
+
| **query_state** | **String** | | [optional] |
|
13
|
+
{: class="table table-striped"}
|
14
|
+
|
15
|
+
|
@@ -824,6 +824,11 @@ require 'purecloudplatformclientv2/models/station'
|
|
824
824
|
require 'purecloudplatformclientv2/models/station_entity_listing'
|
825
825
|
require 'purecloudplatformclientv2/models/statistical_response'
|
826
826
|
require 'purecloudplatformclientv2/models/statistical_summary'
|
827
|
+
require 'purecloudplatformclientv2/models/stats_notification_notification'
|
828
|
+
require 'purecloudplatformclientv2/models/stats_notification_notification_data'
|
829
|
+
require 'purecloudplatformclientv2/models/stats_notification_notification_datum'
|
830
|
+
require 'purecloudplatformclientv2/models/stats_notification_notification_metric'
|
831
|
+
require 'purecloudplatformclientv2/models/stats_notification_notification_metrics'
|
827
832
|
require 'purecloudplatformclientv2/models/street_address'
|
828
833
|
require 'purecloudplatformclientv2/models/subscriber_response'
|
829
834
|
require 'purecloudplatformclientv2/models/suggest_search_criteria'
|
@@ -948,6 +953,7 @@ require 'purecloudplatformclientv2/models/voicemail_search_criteria'
|
|
948
953
|
require 'purecloudplatformclientv2/models/voicemail_search_request'
|
949
954
|
require 'purecloudplatformclientv2/models/voicemail_user_policy'
|
950
955
|
require 'purecloudplatformclientv2/models/voicemails_search_response'
|
956
|
+
require 'purecloudplatformclientv2/models/wfm_historical_adherence_calculations_complete_notice_notification'
|
951
957
|
require 'purecloudplatformclientv2/models/wfm_intraday_queue_listing'
|
952
958
|
require 'purecloudplatformclientv2/models/wfm_user_entity_listing'
|
953
959
|
require 'purecloudplatformclientv2/models/workspace'
|
@@ -219,7 +219,7 @@ module PureCloud
|
|
219
219
|
|
220
220
|
:'outbound_preview' => :'ConversationNotificationDialerPreview',
|
221
221
|
|
222
|
-
:'voicemail' => :'
|
222
|
+
:'voicemail' => :'ConversationNotificationVoicemail',
|
223
223
|
|
224
224
|
:'callback_numbers' => :'Array<String>',
|
225
225
|
|
data/lib/purecloudplatformclientv2/models/callback_conversation_notification_participants.rb
CHANGED
@@ -219,7 +219,7 @@ module PureCloud
|
|
219
219
|
|
220
220
|
:'outbound_preview' => :'ConversationNotificationDialerPreview',
|
221
221
|
|
222
|
-
:'voicemail' => :'
|
222
|
+
:'voicemail' => :'ConversationNotificationVoicemail',
|
223
223
|
|
224
224
|
:'callback_numbers' => :'Array<String>',
|
225
225
|
|
@@ -20,11 +20,15 @@ module PureCloud
|
|
20
20
|
class CallbackConversationNotificationVoicemail
|
21
21
|
attr_accessor :id
|
22
22
|
|
23
|
+
attr_accessor :upload_status
|
24
|
+
|
23
25
|
# Attribute mapping from ruby-style variable name to JSON key.
|
24
26
|
def self.attribute_map
|
25
27
|
{
|
26
28
|
|
27
|
-
:'id' => :'id'
|
29
|
+
:'id' => :'id',
|
30
|
+
|
31
|
+
:'upload_status' => :'uploadStatus'
|
28
32
|
|
29
33
|
}
|
30
34
|
end
|
@@ -33,7 +37,9 @@ module PureCloud
|
|
33
37
|
def self.swagger_types
|
34
38
|
{
|
35
39
|
|
36
|
-
:'id' => :'String'
|
40
|
+
:'id' => :'String',
|
41
|
+
|
42
|
+
:'upload_status' => :'String'
|
37
43
|
|
38
44
|
}
|
39
45
|
end
|
@@ -56,6 +62,15 @@ module PureCloud
|
|
56
62
|
end
|
57
63
|
|
58
64
|
|
65
|
+
if attributes.has_key?(:'uploadStatus')
|
66
|
+
|
67
|
+
|
68
|
+
self.upload_status = attributes[:'uploadStatus']
|
69
|
+
|
70
|
+
|
71
|
+
end
|
72
|
+
|
73
|
+
|
59
74
|
end
|
60
75
|
|
61
76
|
# Show invalid properties with the reasons. Usually used together with valid?
|
@@ -75,6 +90,15 @@ module PureCloud
|
|
75
90
|
|
76
91
|
|
77
92
|
|
93
|
+
|
94
|
+
|
95
|
+
allowed_values = ["PENDING", "COMPLETE", "FAILED", "TIMEOUT"]
|
96
|
+
if @upload_status && !allowed_values.include?(@upload_status)
|
97
|
+
return false
|
98
|
+
end
|
99
|
+
|
100
|
+
|
101
|
+
|
78
102
|
end
|
79
103
|
|
80
104
|
|
@@ -83,12 +107,27 @@ module PureCloud
|
|
83
107
|
|
84
108
|
|
85
109
|
|
110
|
+
|
111
|
+
# Custom attribute writer method checking allowed values (enum).
|
112
|
+
# @param [Object] upload_status Object to be assigned
|
113
|
+
def upload_status=(upload_status)
|
114
|
+
allowed_values = ["PENDING", "COMPLETE", "FAILED", "TIMEOUT"]
|
115
|
+
if upload_status && !allowed_values.include?(upload_status)
|
116
|
+
fail ArgumentError, "invalid value for 'upload_status', must be one of #{allowed_values}."
|
117
|
+
end
|
118
|
+
@upload_status = upload_status
|
119
|
+
end
|
120
|
+
|
121
|
+
|
122
|
+
|
123
|
+
|
86
124
|
# Checks equality by comparing each attribute.
|
87
125
|
# @param [Object] Object to be compared
|
88
126
|
def ==(o)
|
89
127
|
return true if self.equal?(o)
|
90
128
|
self.class == o.class &&
|
91
|
-
id == o.id
|
129
|
+
id == o.id &&
|
130
|
+
upload_status == o.upload_status
|
92
131
|
end
|
93
132
|
|
94
133
|
# @see the `==` method
|
@@ -100,7 +139,7 @@ module PureCloud
|
|
100
139
|
# Calculates hash code according to all attributes.
|
101
140
|
# @return [Fixnum] Hash code
|
102
141
|
def hash
|
103
|
-
[id].hash
|
142
|
+
[id, upload_status].hash
|
104
143
|
end
|
105
144
|
|
106
145
|
# build the object from hash
|
@@ -123,7 +123,7 @@ module PureCloud
|
|
123
123
|
|
124
124
|
:'dialer_preview' => :'ConversationNotificationDialerPreview',
|
125
125
|
|
126
|
-
:'voicemail' => :'
|
126
|
+
:'voicemail' => :'ConversationNotificationVoicemail',
|
127
127
|
|
128
128
|
:'callback_numbers' => :'Array<String>',
|
129
129
|
|
@@ -360,7 +360,7 @@ module PureCloud
|
|
360
360
|
|
361
361
|
|
362
362
|
|
363
|
-
allowed_values = ["ALERTING", "DIALING", "CONTACTING", "OFFERING", "CONNECTED", "DISCONNECTED", "TERMINATED", "SCHEDULED", "NONE"]
|
363
|
+
allowed_values = ["ALERTING", "DIALING", "CONTACTING", "OFFERING", "CONNECTED", "DISCONNECTED", "TERMINATED", "SCHEDULED", "UPLOADING", "NONE"]
|
364
364
|
if @state && !allowed_values.include?(@state)
|
365
365
|
return false
|
366
366
|
end
|
@@ -460,7 +460,7 @@ module PureCloud
|
|
460
460
|
# Custom attribute writer method checking allowed values (enum).
|
461
461
|
# @param [Object] state Object to be assigned
|
462
462
|
def state=(state)
|
463
|
-
allowed_values = ["ALERTING", "DIALING", "CONTACTING", "OFFERING", "CONNECTED", "DISCONNECTED", "TERMINATED", "SCHEDULED", "NONE"]
|
463
|
+
allowed_values = ["ALERTING", "DIALING", "CONTACTING", "OFFERING", "CONNECTED", "DISCONNECTED", "TERMINATED", "SCHEDULED", "UPLOADING", "NONE"]
|
464
464
|
if state && !allowed_values.include?(state)
|
465
465
|
fail ArgumentError, "invalid value for 'state', must be one of #{allowed_values}."
|
466
466
|
end
|
@@ -123,7 +123,7 @@ module PureCloud
|
|
123
123
|
|
124
124
|
:'dialer_preview' => :'ConversationNotificationDialerPreview',
|
125
125
|
|
126
|
-
:'voicemail' => :'
|
126
|
+
:'voicemail' => :'ConversationNotificationVoicemail',
|
127
127
|
|
128
128
|
:'callback_numbers' => :'Array<String>',
|
129
129
|
|
@@ -360,7 +360,7 @@ module PureCloud
|
|
360
360
|
|
361
361
|
|
362
362
|
|
363
|
-
allowed_values = ["ALERTING", "DIALING", "CONTACTING", "OFFERING", "CONNECTED", "DISCONNECTED", "TERMINATED", "SCHEDULED", "NONE"]
|
363
|
+
allowed_values = ["ALERTING", "DIALING", "CONTACTING", "OFFERING", "CONNECTED", "DISCONNECTED", "TERMINATED", "SCHEDULED", "UPLOADING", "NONE"]
|
364
364
|
if @state && !allowed_values.include?(@state)
|
365
365
|
return false
|
366
366
|
end
|
@@ -460,7 +460,7 @@ module PureCloud
|
|
460
460
|
# Custom attribute writer method checking allowed values (enum).
|
461
461
|
# @param [Object] state Object to be assigned
|
462
462
|
def state=(state)
|
463
|
-
allowed_values = ["ALERTING", "DIALING", "CONTACTING", "OFFERING", "CONNECTED", "DISCONNECTED", "TERMINATED", "SCHEDULED", "NONE"]
|
463
|
+
allowed_values = ["ALERTING", "DIALING", "CONTACTING", "OFFERING", "CONNECTED", "DISCONNECTED", "TERMINATED", "SCHEDULED", "UPLOADING", "NONE"]
|
464
464
|
if state && !allowed_values.include?(state)
|
465
465
|
fail ArgumentError, "invalid value for 'state', must be one of #{allowed_values}."
|
466
466
|
end
|
@@ -20,11 +20,15 @@ module PureCloud
|
|
20
20
|
class ConversationNotificationVoicemail
|
21
21
|
attr_accessor :id
|
22
22
|
|
23
|
+
attr_accessor :upload_status
|
24
|
+
|
23
25
|
# Attribute mapping from ruby-style variable name to JSON key.
|
24
26
|
def self.attribute_map
|
25
27
|
{
|
26
28
|
|
27
|
-
:'id' => :'id'
|
29
|
+
:'id' => :'id',
|
30
|
+
|
31
|
+
:'upload_status' => :'uploadStatus'
|
28
32
|
|
29
33
|
}
|
30
34
|
end
|
@@ -33,7 +37,9 @@ module PureCloud
|
|
33
37
|
def self.swagger_types
|
34
38
|
{
|
35
39
|
|
36
|
-
:'id' => :'String'
|
40
|
+
:'id' => :'String',
|
41
|
+
|
42
|
+
:'upload_status' => :'String'
|
37
43
|
|
38
44
|
}
|
39
45
|
end
|
@@ -56,6 +62,15 @@ module PureCloud
|
|
56
62
|
end
|
57
63
|
|
58
64
|
|
65
|
+
if attributes.has_key?(:'uploadStatus')
|
66
|
+
|
67
|
+
|
68
|
+
self.upload_status = attributes[:'uploadStatus']
|
69
|
+
|
70
|
+
|
71
|
+
end
|
72
|
+
|
73
|
+
|
59
74
|
end
|
60
75
|
|
61
76
|
# Show invalid properties with the reasons. Usually used together with valid?
|
@@ -75,6 +90,15 @@ module PureCloud
|
|
75
90
|
|
76
91
|
|
77
92
|
|
93
|
+
|
94
|
+
|
95
|
+
allowed_values = ["PENDING", "COMPLETE", "FAILED", "TIMEOUT"]
|
96
|
+
if @upload_status && !allowed_values.include?(@upload_status)
|
97
|
+
return false
|
98
|
+
end
|
99
|
+
|
100
|
+
|
101
|
+
|
78
102
|
end
|
79
103
|
|
80
104
|
|
@@ -83,12 +107,27 @@ module PureCloud
|
|
83
107
|
|
84
108
|
|
85
109
|
|
110
|
+
|
111
|
+
# Custom attribute writer method checking allowed values (enum).
|
112
|
+
# @param [Object] upload_status Object to be assigned
|
113
|
+
def upload_status=(upload_status)
|
114
|
+
allowed_values = ["PENDING", "COMPLETE", "FAILED", "TIMEOUT"]
|
115
|
+
if upload_status && !allowed_values.include?(upload_status)
|
116
|
+
fail ArgumentError, "invalid value for 'upload_status', must be one of #{allowed_values}."
|
117
|
+
end
|
118
|
+
@upload_status = upload_status
|
119
|
+
end
|
120
|
+
|
121
|
+
|
122
|
+
|
123
|
+
|
86
124
|
# Checks equality by comparing each attribute.
|
87
125
|
# @param [Object] Object to be compared
|
88
126
|
def ==(o)
|
89
127
|
return true if self.equal?(o)
|
90
128
|
self.class == o.class &&
|
91
|
-
id == o.id
|
129
|
+
id == o.id &&
|
130
|
+
upload_status == o.upload_status
|
92
131
|
end
|
93
132
|
|
94
133
|
# @see the `==` method
|
@@ -100,7 +139,7 @@ module PureCloud
|
|
100
139
|
# Calculates hash code according to all attributes.
|
101
140
|
# @return [Fixnum] Hash code
|
102
141
|
def hash
|
103
|
-
[id].hash
|
142
|
+
[id, upload_status].hash
|
104
143
|
end
|
105
144
|
|
106
145
|
# build the object from hash
|