purecloud 0.18.0 → 0.25.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile +2 -2
- data/Gemfile.lock +2 -2
- data/README.md +1 -7
- data/config-ruby.json +1 -1
- data/extensions/auth.rb +2 -2
- data/lib/purecloud.rb +110 -75
- data/lib/purecloud/api/architect_api.rb +3127 -74
- data/lib/purecloud/api/attributes_api.rb +33 -33
- data/lib/purecloud/api/authorization_api.rb +83 -83
- data/lib/purecloud/api/compliance_api.rb +5 -5
- data/lib/purecloud/api/configuration_api.rb +594 -397
- data/lib/purecloud/api/content_management_api.rb +183 -183
- data/lib/purecloud/api/conversations_api.rb +289 -159
- data/lib/purecloud/api/downloads_api.rb +6 -6
- data/lib/purecloud/api/external_contacts_api.rb +1693 -0
- data/lib/purecloud/api/fax_api.rb +24 -24
- data/lib/purecloud/api/geolocation_api.rb +14 -14
- data/lib/purecloud/api/greetings_api.rb +68 -68
- data/lib/purecloud/api/groups_api.rb +31 -20
- data/lib/purecloud/api/languages_api.rb +18 -11
- data/lib/purecloud/api/licensing_api.rb +5 -5
- data/lib/purecloud/api/locations_api.rb +11 -11
- data/lib/purecloud/api/notifications_api.rb +41 -41
- data/lib/purecloud/api/o_auth_api.rb +69 -69
- data/lib/purecloud/api/outbound_api.rb +505 -325
- data/lib/purecloud/api/presence_api.rb +65 -65
- data/lib/purecloud/api/quality_api.rb +66 -639
- data/lib/purecloud/api/recording_api.rb +1343 -0
- data/lib/purecloud/api/response_management_api.rb +687 -0
- data/lib/purecloud/api/routing_api.rb +224 -170
- data/lib/purecloud/api/scripts_api.rb +52 -52
- data/lib/purecloud/api/search_api.rb +5 -5
- data/lib/purecloud/api/stations_api.rb +8 -8
- data/lib/purecloud/api/telephony_providers_edge_api.rb +138 -138
- data/lib/purecloud/api/user_recordings_api.rb +29 -29
- data/lib/purecloud/api/users_api.rb +123 -123
- data/lib/purecloud/api/utilities_api.rb +71 -15
- data/lib/purecloud/api/voicemail_api.rb +42 -42
- data/lib/purecloud/api_client.rb +1 -1
- data/lib/purecloud/models/address.rb +49 -51
- data/lib/purecloud/models/attribute_filter_item.rb +177 -0
- data/lib/purecloud/models/automate_queue_member_entity_listing.rb +238 -0
- data/lib/purecloud/models/available_additional_service.rb +40 -1
- data/lib/purecloud/models/{topic_entity_listing.rb → available_topic_entity_listing.rb} +1 -1
- data/lib/purecloud/models/call.rb +36 -5
- data/lib/purecloud/models/{line_properties.rb → call_command.rb} +13 -3
- data/lib/purecloud/models/callback.rb +15 -4
- data/lib/purecloud/models/campaign.rb +219 -17
- data/lib/purecloud/models/campaign_progress.rb +186 -0
- data/lib/purecloud/models/channel_topic_entity_listing.rb +238 -0
- data/lib/purecloud/models/charge.rb +14 -4
- data/lib/purecloud/models/{attribute_value.rb → client_text_table_transform.rb} +52 -82
- data/lib/purecloud/models/contact.rb +1 -1
- data/lib/purecloud/models/contact_list.rb +111 -1
- data/lib/purecloud/models/contact_listing.rb +238 -0
- data/lib/purecloud/models/content_attribute_filter_item.rb +177 -0
- data/lib/purecloud/models/content_facet_filter_item.rb +1 -1
- data/lib/purecloud/models/content_query_request.rb +16 -4
- data/lib/purecloud/models/control.rb +221 -0
- data/lib/purecloud/models/{flow_activate_request.rb → control_options.rb} +18 -12
- data/lib/purecloud/models/create_callback_command.rb +200 -0
- data/lib/purecloud/models/discount.rb +220 -0
- data/lib/purecloud/models/document.rb +13 -1
- data/lib/purecloud/models/document_attribute.rb +158 -0
- data/lib/purecloud/models/document_update.rb +28 -16
- data/lib/purecloud/models/document_upload.rb +4 -16
- data/lib/purecloud/models/domain_voice_rate_extended_response_item_entity_listing.rb +238 -0
- data/lib/purecloud/models/domain_voice_rate_international_response_item_entity_listing.rb +238 -0
- data/lib/purecloud/models/domain_voice_rate_response_item_entity_listing.rb +1 -1
- data/lib/purecloud/models/edge_line.rb +1 -1
- data/lib/purecloud/models/edge_logs_job.rb +181 -0
- data/lib/purecloud/models/edge_logs_job_file.rb +243 -0
- data/lib/purecloud/models/edge_logs_job_request.rb +168 -0
- data/lib/purecloud/models/{backend_work_item_data_element.rb → edge_logs_job_response.rb} +16 -24
- data/lib/purecloud/models/{flow_lock_request.rb → edge_logs_job_upload_request.rb} +10 -12
- data/lib/purecloud/models/email.rb +15 -4
- data/lib/purecloud/models/endpoint.rb +1 -1
- data/lib/purecloud/models/{flow_associate_workspaces_request.rb → estimated_wait_time_predictions.rb} +10 -11
- data/lib/purecloud/models/external_contact.rb +320 -0
- data/lib/purecloud/models/external_organization.rb +306 -0
- data/lib/purecloud/models/external_organization_listing.rb +238 -0
- data/lib/purecloud/models/facet_filter_item.rb +1 -1
- data/lib/purecloud/models/flow_body.rb +1 -1
- data/lib/purecloud/models/flow_body_format.rb +10 -20
- data/lib/purecloud/models/flow_terminate_request.rb +3 -16
- data/lib/purecloud/models/form.rb +148 -0
- data/lib/purecloud/models/group.rb +11 -1
- data/lib/purecloud/models/health_check_info.rb +268 -0
- data/lib/purecloud/models/{body_2.rb → inline_response_200.rb} +1 -1
- data/lib/purecloud/models/integration_type.rb +209 -0
- data/lib/purecloud/models/integration_type_entity_listing.rb +238 -0
- data/lib/purecloud/models/key_rotation_schedule.rb +1 -0
- data/lib/purecloud/models/language.rb +41 -1
- data/lib/purecloud/models/line.rb +1 -1
- data/lib/purecloud/models/line_base.rb +1 -1
- data/lib/purecloud/models/media_policies.rb +169 -0
- data/lib/purecloud/models/media_policy.rb +171 -0
- data/lib/purecloud/models/note.rb +200 -0
- data/lib/purecloud/models/{user_station_resource.rb → note_listing.rb} +68 -58
- data/lib/purecloud/models/o_auth_client.rb +1 -1
- data/lib/purecloud/models/page.rb +2 -2
- data/lib/purecloud/models/{byte_buffer.rb → payment_method.rb} +48 -61
- data/lib/purecloud/models/payment_method_listing.rb +238 -0
- data/lib/purecloud/models/payment_token_provider.rb +180 -0
- data/lib/purecloud/models/phone.rb +1 -1
- data/lib/purecloud/models/phone_base.rb +1 -1
- data/lib/purecloud/models/phone_number.rb +198 -0
- data/lib/purecloud/models/phones_reboot.rb +14 -4
- data/lib/purecloud/models/policy.rb +14 -1
- data/lib/purecloud/models/prediction_results.rb +167 -0
- data/lib/purecloud/models/query_request.rb +16 -4
- data/lib/purecloud/models/queue_member_entity_listing.rb +1 -1
- data/lib/purecloud/models/quote.rb +13 -1
- data/lib/purecloud/models/recording_settings.rb +146 -0
- data/lib/purecloud/models/relationship.rb +201 -0
- data/lib/purecloud/models/relationship_listing.rb +238 -0
- data/lib/purecloud/models/report_schedule.rb +3 -2
- data/lib/purecloud/models/service_type.rb +12 -1
- data/lib/purecloud/models/social_expression.rb +25 -4
- data/lib/purecloud/models/spreadsheet_transform_entity_listing.rb +1 -1
- data/lib/purecloud/models/template.rb +1 -1
- data/lib/purecloud/models/text_table_transform_entity_listing.rb +1 -1
- data/lib/purecloud/models/ticker.rb +158 -0
- data/lib/purecloud/models/time_slot.rb +1 -0
- data/lib/purecloud/models/trunk_base.rb +1 -1
- data/lib/purecloud/models/vendor_connection_request.rb +166 -0
- data/lib/purecloud/models/video.rb +15 -4
- data/lib/purecloud/models/work_item_definition.rb +8 -10
- data/lib/purecloud/version.rb +1 -1
- data/ossindex.json +17 -0
- data/purecloud.gemspec +4 -3
- data/rakefile +3 -15
- data/spec/test.rb +6 -3
- data/swagger.json +1 -1
- data/swagger_template/api_client.mustache +304 -0
- data/swagger_template/base_object.mustache +90 -0
- data/{PureCloud.gemspec → swagger_template/gemspec.mustache} +12 -11
- data/version.json +1 -1
- metadata +76 -25
- data/lib/purecloud/api/analytics_api.rb +0 -1554
- data/lib/purecloud/api/orphaned_recordings_api.rb +0 -205
- data/newVersion.md +0 -1
@@ -31,6 +31,13 @@ module PureCloud
|
|
31
31
|
|
32
32
|
attr_accessor :document_id
|
33
33
|
|
34
|
+
attr_accessor :_self
|
35
|
+
|
36
|
+
attr_accessor :other
|
37
|
+
|
38
|
+
# Date time is represented as an ISO-8601 string. For example: yyyy-MM-ddTHH:mm:ss.SSSZ
|
39
|
+
attr_accessor :connected_time
|
40
|
+
|
34
41
|
# Attribute mapping from ruby-style variable name to JSON key.
|
35
42
|
def self.attribute_map
|
36
43
|
{
|
@@ -61,7 +68,13 @@ module PureCloud
|
|
61
68
|
|
62
69
|
:'start_hold_time' => :'startHoldTime',
|
63
70
|
|
64
|
-
:'document_id' => :'documentId'
|
71
|
+
:'document_id' => :'documentId',
|
72
|
+
|
73
|
+
:'_self' => :'self',
|
74
|
+
|
75
|
+
:'other' => :'other',
|
76
|
+
|
77
|
+
:'connected_time' => :'connectedTime'
|
65
78
|
|
66
79
|
}
|
67
80
|
end
|
@@ -82,7 +95,10 @@ module PureCloud
|
|
82
95
|
:'error_info' => :'ErrorBody',
|
83
96
|
:'disconnect_type' => :'String',
|
84
97
|
:'start_hold_time' => :'DateTime',
|
85
|
-
:'document_id' => :'String'
|
98
|
+
:'document_id' => :'String',
|
99
|
+
:'_self' => :'Address',
|
100
|
+
:'other' => :'Address',
|
101
|
+
:'connected_time' => :'DateTime'
|
86
102
|
|
87
103
|
}
|
88
104
|
end
|
@@ -160,6 +176,18 @@ module PureCloud
|
|
160
176
|
self.document_id = attributes[:'documentId']
|
161
177
|
end
|
162
178
|
|
179
|
+
if attributes[:'self']
|
180
|
+
self._self = attributes[:'self']
|
181
|
+
end
|
182
|
+
|
183
|
+
if attributes[:'other']
|
184
|
+
self.other = attributes[:'other']
|
185
|
+
end
|
186
|
+
|
187
|
+
if attributes[:'connectedTime']
|
188
|
+
self.connected_time = attributes[:'connectedTime']
|
189
|
+
end
|
190
|
+
|
163
191
|
end
|
164
192
|
|
165
193
|
# Custom attribute writer method checking allowed values (enum).
|
@@ -191,7 +219,7 @@ module PureCloud
|
|
191
219
|
|
192
220
|
# Custom attribute writer method checking allowed values (enum).
|
193
221
|
def disconnect_type=(disconnect_type)
|
194
|
-
allowed_values = ["ENDPOINT", "CLIENT", "SYSTEM", "TRANSFER", "TRANSFER_CONFERENCE", "TRANSFER_CONSULT", "ERROR", "PEER", "OTHER"]
|
222
|
+
allowed_values = ["ENDPOINT", "CLIENT", "SYSTEM", "TIMEOUT", "TRANSFER", "TRANSFER_CONFERENCE", "TRANSFER_CONSULT", "ERROR", "PEER", "OTHER"]
|
195
223
|
if disconnect_type && !allowed_values.include?(disconnect_type)
|
196
224
|
fail "invalid value for 'disconnect_type', must be one of #{allowed_values}"
|
197
225
|
end
|
@@ -215,7 +243,10 @@ module PureCloud
|
|
215
243
|
error_info == o.error_info &&
|
216
244
|
disconnect_type == o.disconnect_type &&
|
217
245
|
start_hold_time == o.start_hold_time &&
|
218
|
-
document_id == o.document_id
|
246
|
+
document_id == o.document_id &&
|
247
|
+
_self == o._self &&
|
248
|
+
other == o.other &&
|
249
|
+
connected_time == o.connected_time
|
219
250
|
end
|
220
251
|
|
221
252
|
# @see the `==` method
|
@@ -225,7 +256,7 @@ module PureCloud
|
|
225
256
|
|
226
257
|
# Calculate hash code according to all attributes.
|
227
258
|
def hash
|
228
|
-
[state, id, direction, recording, recording_state, muted, confined, held, recording_id, segments, error_info, disconnect_type, start_hold_time, document_id].hash
|
259
|
+
[state, id, direction, recording, recording_state, muted, confined, held, recording_id, segments, error_info, disconnect_type, start_hold_time, document_id, _self, other, connected_time].hash
|
229
260
|
end
|
230
261
|
|
231
262
|
# build the object from hash
|
@@ -1,17 +1,22 @@
|
|
1
1
|
require 'date'
|
2
2
|
|
3
3
|
module PureCloud
|
4
|
-
class
|
4
|
+
class CallCommand
|
5
|
+
attr_accessor :call_number
|
6
|
+
|
5
7
|
# Attribute mapping from ruby-style variable name to JSON key.
|
6
8
|
def self.attribute_map
|
7
9
|
{
|
8
10
|
|
11
|
+
:'call_number' => :'callNumber'
|
12
|
+
|
9
13
|
}
|
10
14
|
end
|
11
15
|
|
12
16
|
# Attribute type mapping.
|
13
17
|
def self.swagger_types
|
14
18
|
{
|
19
|
+
:'call_number' => :'String'
|
15
20
|
|
16
21
|
}
|
17
22
|
end
|
@@ -23,12 +28,17 @@ module PureCloud
|
|
23
28
|
attributes = attributes.inject({}){|memo,(k,v)| memo[k.to_sym] = v; memo}
|
24
29
|
|
25
30
|
|
31
|
+
if attributes[:'callNumber']
|
32
|
+
self.call_number = attributes[:'callNumber']
|
33
|
+
end
|
34
|
+
|
26
35
|
end
|
27
36
|
|
28
37
|
# Check equality by comparing each attribute.
|
29
38
|
def ==(o)
|
30
39
|
return true if self.equal?(o)
|
31
|
-
self.class == o.class
|
40
|
+
self.class == o.class &&
|
41
|
+
call_number == o.call_number
|
32
42
|
end
|
33
43
|
|
34
44
|
# @see the `==` method
|
@@ -38,7 +48,7 @@ module PureCloud
|
|
38
48
|
|
39
49
|
# Calculate hash code according to all attributes.
|
40
50
|
def hash
|
41
|
-
[].hash
|
51
|
+
[call_number].hash
|
42
52
|
end
|
43
53
|
|
44
54
|
# build the object from hash
|
@@ -29,6 +29,9 @@ module PureCloud
|
|
29
29
|
|
30
30
|
attr_accessor :timeout_seconds
|
31
31
|
|
32
|
+
# Date time is represented as an ISO-8601 string. For example: yyyy-MM-ddTHH:mm:ss.SSSZ
|
33
|
+
attr_accessor :connected_time
|
34
|
+
|
32
35
|
# Attribute mapping from ruby-style variable name to JSON key.
|
33
36
|
def self.attribute_map
|
34
37
|
{
|
@@ -57,7 +60,9 @@ module PureCloud
|
|
57
60
|
|
58
61
|
:'skip_enabled' => :'skipEnabled',
|
59
62
|
|
60
|
-
:'timeout_seconds' => :'timeoutSeconds'
|
63
|
+
:'timeout_seconds' => :'timeoutSeconds',
|
64
|
+
|
65
|
+
:'connected_time' => :'connectedTime'
|
61
66
|
|
62
67
|
}
|
63
68
|
end
|
@@ -77,7 +82,8 @@ module PureCloud
|
|
77
82
|
:'callback_user_name' => :'String',
|
78
83
|
:'script_id' => :'String',
|
79
84
|
:'skip_enabled' => :'BOOLEAN',
|
80
|
-
:'timeout_seconds' => :'Integer'
|
85
|
+
:'timeout_seconds' => :'Integer',
|
86
|
+
:'connected_time' => :'DateTime'
|
81
87
|
|
82
88
|
}
|
83
89
|
end
|
@@ -149,6 +155,10 @@ module PureCloud
|
|
149
155
|
self.timeout_seconds = attributes[:'timeoutSeconds']
|
150
156
|
end
|
151
157
|
|
158
|
+
if attributes[:'connectedTime']
|
159
|
+
self.connected_time = attributes[:'connectedTime']
|
160
|
+
end
|
161
|
+
|
152
162
|
end
|
153
163
|
|
154
164
|
# Custom attribute writer method checking allowed values (enum).
|
@@ -194,7 +204,8 @@ module PureCloud
|
|
194
204
|
callback_user_name == o.callback_user_name &&
|
195
205
|
script_id == o.script_id &&
|
196
206
|
skip_enabled == o.skip_enabled &&
|
197
|
-
timeout_seconds == o.timeout_seconds
|
207
|
+
timeout_seconds == o.timeout_seconds &&
|
208
|
+
connected_time == o.connected_time
|
198
209
|
end
|
199
210
|
|
200
211
|
# @see the `==` method
|
@@ -204,7 +215,7 @@ module PureCloud
|
|
204
215
|
|
205
216
|
# Calculate hash code according to all attributes.
|
206
217
|
def hash
|
207
|
-
[state, id, segments, direction, held, disconnect_type, start_hold_time, dialer_preview, callback_numbers, callback_user_name, script_id, skip_enabled, timeout_seconds].hash
|
218
|
+
[state, id, segments, direction, held, disconnect_type, start_hold_time, dialer_preview, callback_numbers, callback_user_name, script_id, skip_enabled, timeout_seconds, connected_time].hash
|
208
219
|
end
|
209
220
|
|
210
221
|
# build the object from hash
|
@@ -2,18 +2,60 @@ require 'date'
|
|
2
2
|
|
3
3
|
module PureCloud
|
4
4
|
class Campaign
|
5
|
+
# The globally unique identifier for the object.
|
5
6
|
attr_accessor :id
|
6
7
|
|
7
8
|
attr_accessor :name
|
8
9
|
|
9
|
-
|
10
|
+
# Date time is represented as an ISO-8601 string. For example: yyyy-MM-ddTHH:mm:ss.SSSZ
|
11
|
+
attr_accessor :date_created
|
12
|
+
|
13
|
+
# Date time is represented as an ISO-8601 string. For example: yyyy-MM-ddTHH:mm:ss.SSSZ
|
14
|
+
attr_accessor :date_modified
|
15
|
+
|
16
|
+
attr_accessor :version
|
17
|
+
|
18
|
+
attr_accessor :contact_list
|
19
|
+
|
20
|
+
attr_accessor :queue
|
21
|
+
|
22
|
+
attr_accessor :dialing_mode
|
23
|
+
|
24
|
+
attr_accessor :script
|
25
|
+
|
26
|
+
attr_accessor :edge_group
|
27
|
+
|
28
|
+
attr_accessor :campaign_status
|
29
|
+
|
30
|
+
attr_accessor :phone_columns
|
31
|
+
|
32
|
+
attr_accessor :abandon_rate
|
10
33
|
|
11
|
-
attr_accessor :
|
34
|
+
attr_accessor :dnc_lists
|
35
|
+
|
36
|
+
attr_accessor :callable_time_set
|
37
|
+
|
38
|
+
attr_accessor :call_analysis_response_set
|
39
|
+
|
40
|
+
attr_accessor :errors
|
41
|
+
|
42
|
+
attr_accessor :caller_name
|
43
|
+
|
44
|
+
attr_accessor :caller_address
|
45
|
+
|
46
|
+
attr_accessor :outbound_line_count
|
47
|
+
|
48
|
+
attr_accessor :rule_sets
|
12
49
|
|
13
50
|
attr_accessor :skip_preview_disabled
|
14
51
|
|
15
52
|
attr_accessor :preview_time_out_seconds
|
16
53
|
|
54
|
+
attr_accessor :single_number_preview
|
55
|
+
|
56
|
+
# The URI for this object
|
57
|
+
attr_accessor :self_uri
|
58
|
+
|
17
59
|
# Attribute mapping from ruby-style variable name to JSON key.
|
18
60
|
def self.attribute_map
|
19
61
|
{
|
@@ -22,13 +64,51 @@ module PureCloud
|
|
22
64
|
|
23
65
|
:'name' => :'name',
|
24
66
|
|
25
|
-
:'
|
67
|
+
:'date_created' => :'dateCreated',
|
68
|
+
|
69
|
+
:'date_modified' => :'dateModified',
|
26
70
|
|
27
|
-
:'
|
71
|
+
:'version' => :'version',
|
72
|
+
|
73
|
+
:'contact_list' => :'contactList',
|
74
|
+
|
75
|
+
:'queue' => :'queue',
|
76
|
+
|
77
|
+
:'dialing_mode' => :'dialingMode',
|
78
|
+
|
79
|
+
:'script' => :'script',
|
80
|
+
|
81
|
+
:'edge_group' => :'edgeGroup',
|
82
|
+
|
83
|
+
:'campaign_status' => :'campaignStatus',
|
84
|
+
|
85
|
+
:'phone_columns' => :'phoneColumns',
|
86
|
+
|
87
|
+
:'abandon_rate' => :'abandonRate',
|
88
|
+
|
89
|
+
:'dnc_lists' => :'dncLists',
|
90
|
+
|
91
|
+
:'callable_time_set' => :'callableTimeSet',
|
92
|
+
|
93
|
+
:'call_analysis_response_set' => :'callAnalysisResponseSet',
|
94
|
+
|
95
|
+
:'errors' => :'errors',
|
96
|
+
|
97
|
+
:'caller_name' => :'callerName',
|
98
|
+
|
99
|
+
:'caller_address' => :'callerAddress',
|
100
|
+
|
101
|
+
:'outbound_line_count' => :'outboundLineCount',
|
102
|
+
|
103
|
+
:'rule_sets' => :'ruleSets',
|
28
104
|
|
29
105
|
:'skip_preview_disabled' => :'skipPreviewDisabled',
|
30
106
|
|
31
|
-
:'preview_time_out_seconds' => :'previewTimeOutSeconds'
|
107
|
+
:'preview_time_out_seconds' => :'previewTimeOutSeconds',
|
108
|
+
|
109
|
+
:'single_number_preview' => :'singleNumberPreview',
|
110
|
+
|
111
|
+
:'self_uri' => :'selfUri'
|
32
112
|
|
33
113
|
}
|
34
114
|
end
|
@@ -38,10 +118,29 @@ module PureCloud
|
|
38
118
|
{
|
39
119
|
:'id' => :'String',
|
40
120
|
:'name' => :'String',
|
41
|
-
:'
|
42
|
-
:'
|
121
|
+
:'date_created' => :'DateTime',
|
122
|
+
:'date_modified' => :'DateTime',
|
123
|
+
:'version' => :'Integer',
|
124
|
+
:'contact_list' => :'UriReference',
|
125
|
+
:'queue' => :'UriReference',
|
126
|
+
:'dialing_mode' => :'String',
|
127
|
+
:'script' => :'UriReference',
|
128
|
+
:'edge_group' => :'UriReference',
|
129
|
+
:'campaign_status' => :'String',
|
130
|
+
:'phone_columns' => :'Array<PhoneColumn>',
|
131
|
+
:'abandon_rate' => :'Float',
|
132
|
+
:'dnc_lists' => :'Array<UriReference>',
|
133
|
+
:'callable_time_set' => :'UriReference',
|
134
|
+
:'call_analysis_response_set' => :'UriReference',
|
135
|
+
:'errors' => :'Array<RestErrorDetail>',
|
136
|
+
:'caller_name' => :'String',
|
137
|
+
:'caller_address' => :'String',
|
138
|
+
:'outbound_line_count' => :'Integer',
|
139
|
+
:'rule_sets' => :'Array<UriReference>',
|
43
140
|
:'skip_preview_disabled' => :'BOOLEAN',
|
44
|
-
:'preview_time_out_seconds' => :'Integer'
|
141
|
+
:'preview_time_out_seconds' => :'Integer',
|
142
|
+
:'single_number_preview' => :'BOOLEAN',
|
143
|
+
:'self_uri' => :'String'
|
45
144
|
|
46
145
|
}
|
47
146
|
end
|
@@ -61,13 +160,87 @@ module PureCloud
|
|
61
160
|
self.name = attributes[:'name']
|
62
161
|
end
|
63
162
|
|
64
|
-
if attributes[:'
|
65
|
-
self.
|
163
|
+
if attributes[:'dateCreated']
|
164
|
+
self.date_created = attributes[:'dateCreated']
|
165
|
+
end
|
166
|
+
|
167
|
+
if attributes[:'dateModified']
|
168
|
+
self.date_modified = attributes[:'dateModified']
|
169
|
+
end
|
170
|
+
|
171
|
+
if attributes[:'version']
|
172
|
+
self.version = attributes[:'version']
|
173
|
+
end
|
174
|
+
|
175
|
+
if attributes[:'contactList']
|
176
|
+
self.contact_list = attributes[:'contactList']
|
177
|
+
end
|
178
|
+
|
179
|
+
if attributes[:'queue']
|
180
|
+
self.queue = attributes[:'queue']
|
181
|
+
end
|
182
|
+
|
183
|
+
if attributes[:'dialingMode']
|
184
|
+
self.dialing_mode = attributes[:'dialingMode']
|
185
|
+
end
|
186
|
+
|
187
|
+
if attributes[:'script']
|
188
|
+
self.script = attributes[:'script']
|
66
189
|
end
|
67
190
|
|
68
|
-
if attributes[:'
|
69
|
-
|
70
|
-
|
191
|
+
if attributes[:'edgeGroup']
|
192
|
+
self.edge_group = attributes[:'edgeGroup']
|
193
|
+
end
|
194
|
+
|
195
|
+
if attributes[:'campaignStatus']
|
196
|
+
self.campaign_status = attributes[:'campaignStatus']
|
197
|
+
end
|
198
|
+
|
199
|
+
if attributes[:'phoneColumns']
|
200
|
+
if (value = attributes[:'phoneColumns']).is_a?(Array)
|
201
|
+
self.phone_columns = value
|
202
|
+
end
|
203
|
+
end
|
204
|
+
|
205
|
+
if attributes[:'abandonRate']
|
206
|
+
self.abandon_rate = attributes[:'abandonRate']
|
207
|
+
end
|
208
|
+
|
209
|
+
if attributes[:'dncLists']
|
210
|
+
if (value = attributes[:'dncLists']).is_a?(Array)
|
211
|
+
self.dnc_lists = value
|
212
|
+
end
|
213
|
+
end
|
214
|
+
|
215
|
+
if attributes[:'callableTimeSet']
|
216
|
+
self.callable_time_set = attributes[:'callableTimeSet']
|
217
|
+
end
|
218
|
+
|
219
|
+
if attributes[:'callAnalysisResponseSet']
|
220
|
+
self.call_analysis_response_set = attributes[:'callAnalysisResponseSet']
|
221
|
+
end
|
222
|
+
|
223
|
+
if attributes[:'errors']
|
224
|
+
if (value = attributes[:'errors']).is_a?(Array)
|
225
|
+
self.errors = value
|
226
|
+
end
|
227
|
+
end
|
228
|
+
|
229
|
+
if attributes[:'callerName']
|
230
|
+
self.caller_name = attributes[:'callerName']
|
231
|
+
end
|
232
|
+
|
233
|
+
if attributes[:'callerAddress']
|
234
|
+
self.caller_address = attributes[:'callerAddress']
|
235
|
+
end
|
236
|
+
|
237
|
+
if attributes[:'outboundLineCount']
|
238
|
+
self.outbound_line_count = attributes[:'outboundLineCount']
|
239
|
+
end
|
240
|
+
|
241
|
+
if attributes[:'ruleSets']
|
242
|
+
if (value = attributes[:'ruleSets']).is_a?(Array)
|
243
|
+
self.rule_sets = value
|
71
244
|
end
|
72
245
|
end
|
73
246
|
|
@@ -81,6 +254,16 @@ module PureCloud
|
|
81
254
|
self.preview_time_out_seconds = attributes[:'previewTimeOutSeconds']
|
82
255
|
end
|
83
256
|
|
257
|
+
if attributes[:'singleNumberPreview']
|
258
|
+
self.single_number_preview = attributes[:'singleNumberPreview']
|
259
|
+
else
|
260
|
+
self.single_number_preview = false
|
261
|
+
end
|
262
|
+
|
263
|
+
if attributes[:'selfUri']
|
264
|
+
self.self_uri = attributes[:'selfUri']
|
265
|
+
end
|
266
|
+
|
84
267
|
end
|
85
268
|
|
86
269
|
# Check equality by comparing each attribute.
|
@@ -89,10 +272,29 @@ module PureCloud
|
|
89
272
|
self.class == o.class &&
|
90
273
|
id == o.id &&
|
91
274
|
name == o.name &&
|
92
|
-
|
93
|
-
|
275
|
+
date_created == o.date_created &&
|
276
|
+
date_modified == o.date_modified &&
|
277
|
+
version == o.version &&
|
278
|
+
contact_list == o.contact_list &&
|
279
|
+
queue == o.queue &&
|
280
|
+
dialing_mode == o.dialing_mode &&
|
281
|
+
script == o.script &&
|
282
|
+
edge_group == o.edge_group &&
|
283
|
+
campaign_status == o.campaign_status &&
|
284
|
+
phone_columns == o.phone_columns &&
|
285
|
+
abandon_rate == o.abandon_rate &&
|
286
|
+
dnc_lists == o.dnc_lists &&
|
287
|
+
callable_time_set == o.callable_time_set &&
|
288
|
+
call_analysis_response_set == o.call_analysis_response_set &&
|
289
|
+
errors == o.errors &&
|
290
|
+
caller_name == o.caller_name &&
|
291
|
+
caller_address == o.caller_address &&
|
292
|
+
outbound_line_count == o.outbound_line_count &&
|
293
|
+
rule_sets == o.rule_sets &&
|
94
294
|
skip_preview_disabled == o.skip_preview_disabled &&
|
95
|
-
preview_time_out_seconds == o.preview_time_out_seconds
|
295
|
+
preview_time_out_seconds == o.preview_time_out_seconds &&
|
296
|
+
single_number_preview == o.single_number_preview &&
|
297
|
+
self_uri == o.self_uri
|
96
298
|
end
|
97
299
|
|
98
300
|
# @see the `==` method
|
@@ -102,7 +304,7 @@ module PureCloud
|
|
102
304
|
|
103
305
|
# Calculate hash code according to all attributes.
|
104
306
|
def hash
|
105
|
-
[id, name,
|
307
|
+
[id, name, date_created, date_modified, version, contact_list, queue, dialing_mode, script, edge_group, campaign_status, phone_columns, abandon_rate, dnc_lists, callable_time_set, call_analysis_response_set, errors, caller_name, caller_address, outbound_line_count, rule_sets, skip_preview_disabled, preview_time_out_seconds, single_number_preview, self_uri].hash
|
106
308
|
end
|
107
309
|
|
108
310
|
# build the object from hash
|