purecloud 0.17.0 → 0.18.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/config-ruby.json +1 -1
- data/lib/purecloud.rb +64 -64
- data/lib/purecloud/models/contact_list.rb +1 -111
- data/lib/purecloud/models/data_item.rb +23 -19
- data/lib/purecloud/models/domain_voice_rate_response_item_entity_listing.rb +1 -1
- data/lib/purecloud/models/response.rb +14 -84
- data/lib/purecloud/models/time_slot.rb +2 -0
- data/lib/purecloud/models/topic_entity_listing.rb +1 -1
- data/lib/purecloud/models/wrapup_code.rb +45 -33
- data/lib/purecloud/version.rb +1 -1
- data/newVersion.md +1 -1
- data/swagger.json +1 -1
- data/version.json +1 -1
- metadata +2 -2
@@ -2,32 +2,8 @@ require 'date'
|
|
2
2
|
|
3
3
|
module PureCloud
|
4
4
|
class ContactList
|
5
|
-
# The globally unique identifier for the object.
|
6
5
|
attr_accessor :id
|
7
6
|
|
8
|
-
attr_accessor :name
|
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 :column_names
|
19
|
-
|
20
|
-
attr_accessor :phone_columns
|
21
|
-
|
22
|
-
attr_accessor :import_status
|
23
|
-
|
24
|
-
attr_accessor :preview_mode_column_name
|
25
|
-
|
26
|
-
attr_accessor :preview_mode_accepted_values
|
27
|
-
|
28
|
-
attr_accessor :size
|
29
|
-
|
30
|
-
# The URI for this object
|
31
7
|
attr_accessor :self_uri
|
32
8
|
|
33
9
|
# Attribute mapping from ruby-style variable name to JSON key.
|
@@ -36,26 +12,6 @@ module PureCloud
|
|
36
12
|
|
37
13
|
:'id' => :'id',
|
38
14
|
|
39
|
-
:'name' => :'name',
|
40
|
-
|
41
|
-
:'date_created' => :'dateCreated',
|
42
|
-
|
43
|
-
:'date_modified' => :'dateModified',
|
44
|
-
|
45
|
-
:'version' => :'version',
|
46
|
-
|
47
|
-
:'column_names' => :'columnNames',
|
48
|
-
|
49
|
-
:'phone_columns' => :'phoneColumns',
|
50
|
-
|
51
|
-
:'import_status' => :'importStatus',
|
52
|
-
|
53
|
-
:'preview_mode_column_name' => :'previewModeColumnName',
|
54
|
-
|
55
|
-
:'preview_mode_accepted_values' => :'previewModeAcceptedValues',
|
56
|
-
|
57
|
-
:'size' => :'size',
|
58
|
-
|
59
15
|
:'self_uri' => :'selfUri'
|
60
16
|
|
61
17
|
}
|
@@ -65,16 +21,6 @@ module PureCloud
|
|
65
21
|
def self.swagger_types
|
66
22
|
{
|
67
23
|
:'id' => :'String',
|
68
|
-
:'name' => :'String',
|
69
|
-
:'date_created' => :'DateTime',
|
70
|
-
:'date_modified' => :'DateTime',
|
71
|
-
:'version' => :'Integer',
|
72
|
-
:'column_names' => :'Array<String>',
|
73
|
-
:'phone_columns' => :'Array<PhoneNumberColumn>',
|
74
|
-
:'import_status' => :'ImportStatus',
|
75
|
-
:'preview_mode_column_name' => :'String',
|
76
|
-
:'preview_mode_accepted_values' => :'Array<String>',
|
77
|
-
:'size' => :'Integer',
|
78
24
|
:'self_uri' => :'String'
|
79
25
|
|
80
26
|
}
|
@@ -91,52 +37,6 @@ module PureCloud
|
|
91
37
|
self.id = attributes[:'id']
|
92
38
|
end
|
93
39
|
|
94
|
-
if attributes[:'name']
|
95
|
-
self.name = attributes[:'name']
|
96
|
-
end
|
97
|
-
|
98
|
-
if attributes[:'dateCreated']
|
99
|
-
self.date_created = attributes[:'dateCreated']
|
100
|
-
end
|
101
|
-
|
102
|
-
if attributes[:'dateModified']
|
103
|
-
self.date_modified = attributes[:'dateModified']
|
104
|
-
end
|
105
|
-
|
106
|
-
if attributes[:'version']
|
107
|
-
self.version = attributes[:'version']
|
108
|
-
end
|
109
|
-
|
110
|
-
if attributes[:'columnNames']
|
111
|
-
if (value = attributes[:'columnNames']).is_a?(Array)
|
112
|
-
self.column_names = value
|
113
|
-
end
|
114
|
-
end
|
115
|
-
|
116
|
-
if attributes[:'phoneColumns']
|
117
|
-
if (value = attributes[:'phoneColumns']).is_a?(Array)
|
118
|
-
self.phone_columns = value
|
119
|
-
end
|
120
|
-
end
|
121
|
-
|
122
|
-
if attributes[:'importStatus']
|
123
|
-
self.import_status = attributes[:'importStatus']
|
124
|
-
end
|
125
|
-
|
126
|
-
if attributes[:'previewModeColumnName']
|
127
|
-
self.preview_mode_column_name = attributes[:'previewModeColumnName']
|
128
|
-
end
|
129
|
-
|
130
|
-
if attributes[:'previewModeAcceptedValues']
|
131
|
-
if (value = attributes[:'previewModeAcceptedValues']).is_a?(Array)
|
132
|
-
self.preview_mode_accepted_values = value
|
133
|
-
end
|
134
|
-
end
|
135
|
-
|
136
|
-
if attributes[:'size']
|
137
|
-
self.size = attributes[:'size']
|
138
|
-
end
|
139
|
-
|
140
40
|
if attributes[:'selfUri']
|
141
41
|
self.self_uri = attributes[:'selfUri']
|
142
42
|
end
|
@@ -148,16 +48,6 @@ module PureCloud
|
|
148
48
|
return true if self.equal?(o)
|
149
49
|
self.class == o.class &&
|
150
50
|
id == o.id &&
|
151
|
-
name == o.name &&
|
152
|
-
date_created == o.date_created &&
|
153
|
-
date_modified == o.date_modified &&
|
154
|
-
version == o.version &&
|
155
|
-
column_names == o.column_names &&
|
156
|
-
phone_columns == o.phone_columns &&
|
157
|
-
import_status == o.import_status &&
|
158
|
-
preview_mode_column_name == o.preview_mode_column_name &&
|
159
|
-
preview_mode_accepted_values == o.preview_mode_accepted_values &&
|
160
|
-
size == o.size &&
|
161
51
|
self_uri == o.self_uri
|
162
52
|
end
|
163
53
|
|
@@ -168,7 +58,7 @@ module PureCloud
|
|
168
58
|
|
169
59
|
# Calculate hash code according to all attributes.
|
170
60
|
def hash
|
171
|
-
[id,
|
61
|
+
[id, self_uri].hash
|
172
62
|
end
|
173
63
|
|
174
64
|
# build the object from hash
|
@@ -1,22 +1,26 @@
|
|
1
1
|
require 'date'
|
2
2
|
|
3
3
|
module PureCloud
|
4
|
+
# Data elements associated with a history event
|
4
5
|
class DataItem
|
5
|
-
|
6
|
+
# The name of the data element associated with a history event.
|
7
|
+
attr_accessor :parameter_name
|
6
8
|
|
7
|
-
|
9
|
+
# The type of the data element associated with a history event.
|
10
|
+
attr_accessor :parameter_type
|
8
11
|
|
9
|
-
|
12
|
+
# The values of the data element associated with a history event.
|
13
|
+
attr_accessor :parameter_values
|
10
14
|
|
11
15
|
# Attribute mapping from ruby-style variable name to JSON key.
|
12
16
|
def self.attribute_map
|
13
17
|
{
|
14
18
|
|
15
|
-
:'
|
19
|
+
:'parameter_name' => :'parameterName',
|
16
20
|
|
17
|
-
:'
|
21
|
+
:'parameter_type' => :'parameterType',
|
18
22
|
|
19
|
-
:'
|
23
|
+
:'parameter_values' => :'parameterValues'
|
20
24
|
|
21
25
|
}
|
22
26
|
end
|
@@ -24,9 +28,9 @@ module PureCloud
|
|
24
28
|
# Attribute type mapping.
|
25
29
|
def self.swagger_types
|
26
30
|
{
|
27
|
-
:'
|
28
|
-
:'
|
29
|
-
:'
|
31
|
+
:'parameter_name' => :'String',
|
32
|
+
:'parameter_type' => :'String',
|
33
|
+
:'parameter_values' => :'Value'
|
30
34
|
|
31
35
|
}
|
32
36
|
end
|
@@ -38,16 +42,16 @@ module PureCloud
|
|
38
42
|
attributes = attributes.inject({}){|memo,(k,v)| memo[k.to_sym] = v; memo}
|
39
43
|
|
40
44
|
|
41
|
-
if attributes[:'
|
42
|
-
self.
|
45
|
+
if attributes[:'parameterName']
|
46
|
+
self.parameter_name = attributes[:'parameterName']
|
43
47
|
end
|
44
48
|
|
45
|
-
if attributes[:'
|
46
|
-
self.
|
49
|
+
if attributes[:'parameterType']
|
50
|
+
self.parameter_type = attributes[:'parameterType']
|
47
51
|
end
|
48
52
|
|
49
|
-
if attributes[:'
|
50
|
-
self.
|
53
|
+
if attributes[:'parameterValues']
|
54
|
+
self.parameter_values = attributes[:'parameterValues']
|
51
55
|
end
|
52
56
|
|
53
57
|
end
|
@@ -56,9 +60,9 @@ module PureCloud
|
|
56
60
|
def ==(o)
|
57
61
|
return true if self.equal?(o)
|
58
62
|
self.class == o.class &&
|
59
|
-
|
60
|
-
|
61
|
-
|
63
|
+
parameter_name == o.parameter_name &&
|
64
|
+
parameter_type == o.parameter_type &&
|
65
|
+
parameter_values == o.parameter_values
|
62
66
|
end
|
63
67
|
|
64
68
|
# @see the `==` method
|
@@ -68,7 +72,7 @@ module PureCloud
|
|
68
72
|
|
69
73
|
# Calculate hash code according to all attributes.
|
70
74
|
def hash
|
71
|
-
[
|
75
|
+
[parameter_name, parameter_type, parameter_values].hash
|
72
76
|
end
|
73
77
|
|
74
78
|
# build the object from hash
|
@@ -55,7 +55,7 @@ module PureCloud
|
|
55
55
|
:'page_size' => :'Integer',
|
56
56
|
:'page_number' => :'Integer',
|
57
57
|
:'total' => :'Integer',
|
58
|
-
:'entities' => :'Array<
|
58
|
+
:'entities' => :'Array<VoiceRateExtended>',
|
59
59
|
:'self_uri' => :'String',
|
60
60
|
:'first_uri' => :'String',
|
61
61
|
:'previous_uri' => :'String',
|
@@ -1,50 +1,18 @@
|
|
1
1
|
require 'date'
|
2
2
|
|
3
3
|
module PureCloud
|
4
|
-
# Contains information about a response.
|
5
4
|
class Response
|
6
|
-
|
7
|
-
attr_accessor :id
|
5
|
+
attr_accessor :message_returned
|
8
6
|
|
9
|
-
attr_accessor :
|
10
|
-
|
11
|
-
# Version number required for updates.
|
12
|
-
attr_accessor :version
|
13
|
-
|
14
|
-
# One or more libraries response is associated with.
|
15
|
-
attr_accessor :libraries
|
16
|
-
|
17
|
-
# One or more texts associated with the response.
|
18
|
-
attr_accessor :texts
|
19
|
-
|
20
|
-
# User that created the response
|
21
|
-
attr_accessor :created_by
|
22
|
-
|
23
|
-
# The date and time the response was created. Date time is represented as an ISO-8601 string. For example: yyyy-MM-ddTHH:mm:ss.SSSZ
|
24
|
-
attr_accessor :date_created
|
25
|
-
|
26
|
-
# The URI for this object
|
27
|
-
attr_accessor :self_uri
|
7
|
+
attr_accessor :status
|
28
8
|
|
29
9
|
# Attribute mapping from ruby-style variable name to JSON key.
|
30
10
|
def self.attribute_map
|
31
11
|
{
|
32
12
|
|
33
|
-
:'
|
34
|
-
|
35
|
-
:'name' => :'name',
|
13
|
+
:'message_returned' => :'messageReturned',
|
36
14
|
|
37
|
-
:'
|
38
|
-
|
39
|
-
:'libraries' => :'libraries',
|
40
|
-
|
41
|
-
:'texts' => :'texts',
|
42
|
-
|
43
|
-
:'created_by' => :'createdBy',
|
44
|
-
|
45
|
-
:'date_created' => :'dateCreated',
|
46
|
-
|
47
|
-
:'self_uri' => :'selfUri'
|
15
|
+
:'status' => :'status'
|
48
16
|
|
49
17
|
}
|
50
18
|
end
|
@@ -52,14 +20,8 @@ module PureCloud
|
|
52
20
|
# Attribute type mapping.
|
53
21
|
def self.swagger_types
|
54
22
|
{
|
55
|
-
:'
|
56
|
-
:'
|
57
|
-
:'version' => :'Integer',
|
58
|
-
:'libraries' => :'Array<UriReference>',
|
59
|
-
:'texts' => :'Array<ResponseText>',
|
60
|
-
:'created_by' => :'User',
|
61
|
-
:'date_created' => :'DateTime',
|
62
|
-
:'self_uri' => :'String'
|
23
|
+
:'message_returned' => :'Array<String>',
|
24
|
+
:'status' => :'String'
|
63
25
|
|
64
26
|
}
|
65
27
|
end
|
@@ -71,40 +33,14 @@ module PureCloud
|
|
71
33
|
attributes = attributes.inject({}){|memo,(k,v)| memo[k.to_sym] = v; memo}
|
72
34
|
|
73
35
|
|
74
|
-
if attributes[:'
|
75
|
-
|
76
|
-
|
77
|
-
|
78
|
-
if attributes[:'name']
|
79
|
-
self.name = attributes[:'name']
|
80
|
-
end
|
81
|
-
|
82
|
-
if attributes[:'version']
|
83
|
-
self.version = attributes[:'version']
|
84
|
-
end
|
85
|
-
|
86
|
-
if attributes[:'libraries']
|
87
|
-
if (value = attributes[:'libraries']).is_a?(Array)
|
88
|
-
self.libraries = value
|
89
|
-
end
|
90
|
-
end
|
91
|
-
|
92
|
-
if attributes[:'texts']
|
93
|
-
if (value = attributes[:'texts']).is_a?(Array)
|
94
|
-
self.texts = value
|
36
|
+
if attributes[:'messageReturned']
|
37
|
+
if (value = attributes[:'messageReturned']).is_a?(Array)
|
38
|
+
self.message_returned = value
|
95
39
|
end
|
96
40
|
end
|
97
41
|
|
98
|
-
if attributes[:'
|
99
|
-
self.
|
100
|
-
end
|
101
|
-
|
102
|
-
if attributes[:'dateCreated']
|
103
|
-
self.date_created = attributes[:'dateCreated']
|
104
|
-
end
|
105
|
-
|
106
|
-
if attributes[:'selfUri']
|
107
|
-
self.self_uri = attributes[:'selfUri']
|
42
|
+
if attributes[:'status']
|
43
|
+
self.status = attributes[:'status']
|
108
44
|
end
|
109
45
|
|
110
46
|
end
|
@@ -113,14 +49,8 @@ module PureCloud
|
|
113
49
|
def ==(o)
|
114
50
|
return true if self.equal?(o)
|
115
51
|
self.class == o.class &&
|
116
|
-
|
117
|
-
|
118
|
-
version == o.version &&
|
119
|
-
libraries == o.libraries &&
|
120
|
-
texts == o.texts &&
|
121
|
-
created_by == o.created_by &&
|
122
|
-
date_created == o.date_created &&
|
123
|
-
self_uri == o.self_uri
|
52
|
+
message_returned == o.message_returned &&
|
53
|
+
status == o.status
|
124
54
|
end
|
125
55
|
|
126
56
|
# @see the `==` method
|
@@ -130,7 +60,7 @@ module PureCloud
|
|
130
60
|
|
131
61
|
# Calculate hash code according to all attributes.
|
132
62
|
def hash
|
133
|
-
[
|
63
|
+
[message_returned, status].hash
|
134
64
|
end
|
135
65
|
|
136
66
|
# build the object from hash
|
@@ -55,7 +55,7 @@ module PureCloud
|
|
55
55
|
:'page_size' => :'Integer',
|
56
56
|
:'page_number' => :'Integer',
|
57
57
|
:'total' => :'Integer',
|
58
|
-
:'entities' => :'Array<
|
58
|
+
:'entities' => :'Array<AvailableTopic>',
|
59
59
|
:'self_uri' => :'String',
|
60
60
|
:'first_uri' => :'String',
|
61
61
|
:'previous_uri' => :'String',
|
@@ -2,17 +2,23 @@ require 'date'
|
|
2
2
|
|
3
3
|
module PureCloud
|
4
4
|
class WrapupCode
|
5
|
+
# The globally unique identifier for the object.
|
5
6
|
attr_accessor :id
|
6
7
|
|
7
|
-
attr_accessor :
|
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
|
10
12
|
|
11
|
-
|
13
|
+
# Date time is represented as an ISO-8601 string. For example: yyyy-MM-ddTHH:mm:ss.SSSZ
|
14
|
+
attr_accessor :date_modified
|
12
15
|
|
13
|
-
attr_accessor :
|
16
|
+
attr_accessor :modified_by
|
14
17
|
|
15
|
-
attr_accessor :
|
18
|
+
attr_accessor :created_by
|
19
|
+
|
20
|
+
# The URI for this object
|
21
|
+
attr_accessor :self_uri
|
16
22
|
|
17
23
|
# Attribute mapping from ruby-style variable name to JSON key.
|
18
24
|
def self.attribute_map
|
@@ -20,15 +26,17 @@ module PureCloud
|
|
20
26
|
|
21
27
|
:'id' => :'id',
|
22
28
|
|
23
|
-
:'
|
29
|
+
:'name' => :'name',
|
30
|
+
|
31
|
+
:'date_created' => :'dateCreated',
|
24
32
|
|
25
|
-
:'
|
33
|
+
:'date_modified' => :'dateModified',
|
26
34
|
|
27
|
-
:'
|
35
|
+
:'modified_by' => :'modifiedBy',
|
28
36
|
|
29
|
-
:'
|
37
|
+
:'created_by' => :'createdBy',
|
30
38
|
|
31
|
-
:'
|
39
|
+
:'self_uri' => :'selfUri'
|
32
40
|
|
33
41
|
}
|
34
42
|
end
|
@@ -37,11 +45,12 @@ module PureCloud
|
|
37
45
|
def self.swagger_types
|
38
46
|
{
|
39
47
|
:'id' => :'String',
|
40
|
-
:'
|
41
|
-
:'
|
42
|
-
:'
|
43
|
-
:'
|
44
|
-
:'
|
48
|
+
:'name' => :'String',
|
49
|
+
:'date_created' => :'DateTime',
|
50
|
+
:'date_modified' => :'DateTime',
|
51
|
+
:'modified_by' => :'String',
|
52
|
+
:'created_by' => :'String',
|
53
|
+
:'self_uri' => :'String'
|
45
54
|
|
46
55
|
}
|
47
56
|
end
|
@@ -57,26 +66,28 @@ module PureCloud
|
|
57
66
|
self.id = attributes[:'id']
|
58
67
|
end
|
59
68
|
|
60
|
-
if attributes[:'
|
61
|
-
self.
|
69
|
+
if attributes[:'name']
|
70
|
+
self.name = attributes[:'name']
|
62
71
|
end
|
63
72
|
|
64
|
-
if attributes[:'
|
65
|
-
self.
|
73
|
+
if attributes[:'dateCreated']
|
74
|
+
self.date_created = attributes[:'dateCreated']
|
66
75
|
end
|
67
76
|
|
68
|
-
if attributes[:'
|
69
|
-
self.
|
77
|
+
if attributes[:'dateModified']
|
78
|
+
self.date_modified = attributes[:'dateModified']
|
70
79
|
end
|
71
80
|
|
72
|
-
if attributes[:'
|
73
|
-
|
74
|
-
|
75
|
-
|
81
|
+
if attributes[:'modifiedBy']
|
82
|
+
self.modified_by = attributes[:'modifiedBy']
|
83
|
+
end
|
84
|
+
|
85
|
+
if attributes[:'createdBy']
|
86
|
+
self.created_by = attributes[:'createdBy']
|
76
87
|
end
|
77
88
|
|
78
|
-
if attributes[:'
|
79
|
-
self.
|
89
|
+
if attributes[:'selfUri']
|
90
|
+
self.self_uri = attributes[:'selfUri']
|
80
91
|
end
|
81
92
|
|
82
93
|
end
|
@@ -86,11 +97,12 @@ module PureCloud
|
|
86
97
|
return true if self.equal?(o)
|
87
98
|
self.class == o.class &&
|
88
99
|
id == o.id &&
|
89
|
-
|
90
|
-
|
91
|
-
|
92
|
-
|
93
|
-
|
100
|
+
name == o.name &&
|
101
|
+
date_created == o.date_created &&
|
102
|
+
date_modified == o.date_modified &&
|
103
|
+
modified_by == o.modified_by &&
|
104
|
+
created_by == o.created_by &&
|
105
|
+
self_uri == o.self_uri
|
94
106
|
end
|
95
107
|
|
96
108
|
# @see the `==` method
|
@@ -100,7 +112,7 @@ module PureCloud
|
|
100
112
|
|
101
113
|
# Calculate hash code according to all attributes.
|
102
114
|
def hash
|
103
|
-
[id,
|
115
|
+
[id, name, date_created, date_modified, modified_by, created_by, self_uri].hash
|
104
116
|
end
|
105
117
|
|
106
118
|
# build the object from hash
|