purecloud 0.26.0 → 0.27.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 +70 -70
- data/lib/purecloud/models/campaign.rb +219 -17
- data/lib/purecloud/models/data_item.rb +23 -19
- data/lib/purecloud/models/email_message.rb +26 -56
- data/lib/purecloud/models/okta.rb +11 -11
- data/lib/purecloud/models/one_login.rb +11 -11
- data/lib/purecloud/models/quality_audit.rb +11 -11
- data/lib/purecloud/models/rule.rb +28 -120
- data/lib/purecloud/models/salesforce.rb +11 -11
- 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
@@ -9,10 +9,10 @@ module PureCloud
|
|
9
9
|
|
10
10
|
attr_accessor :certificate
|
11
11
|
|
12
|
-
attr_accessor :issuer_uri
|
13
|
-
|
14
12
|
attr_accessor :sso_target_uri
|
15
13
|
|
14
|
+
attr_accessor :issuer_uri
|
15
|
+
|
16
16
|
# The URI for this object
|
17
17
|
attr_accessor :self_uri
|
18
18
|
|
@@ -26,10 +26,10 @@ module PureCloud
|
|
26
26
|
|
27
27
|
:'certificate' => :'certificate',
|
28
28
|
|
29
|
-
:'issuer_uri' => :'issuerURI',
|
30
|
-
|
31
29
|
:'sso_target_uri' => :'ssoTargetURI',
|
32
30
|
|
31
|
+
:'issuer_uri' => :'issuerURI',
|
32
|
+
|
33
33
|
:'self_uri' => :'selfUri'
|
34
34
|
|
35
35
|
}
|
@@ -41,8 +41,8 @@ module PureCloud
|
|
41
41
|
:'id' => :'String',
|
42
42
|
:'name' => :'String',
|
43
43
|
:'certificate' => :'String',
|
44
|
-
:'issuer_uri' => :'String',
|
45
44
|
:'sso_target_uri' => :'String',
|
45
|
+
:'issuer_uri' => :'String',
|
46
46
|
:'self_uri' => :'String'
|
47
47
|
|
48
48
|
}
|
@@ -67,14 +67,14 @@ module PureCloud
|
|
67
67
|
self.certificate = attributes[:'certificate']
|
68
68
|
end
|
69
69
|
|
70
|
-
if attributes[:'issuerURI']
|
71
|
-
self.issuer_uri = attributes[:'issuerURI']
|
72
|
-
end
|
73
|
-
|
74
70
|
if attributes[:'ssoTargetURI']
|
75
71
|
self.sso_target_uri = attributes[:'ssoTargetURI']
|
76
72
|
end
|
77
73
|
|
74
|
+
if attributes[:'issuerURI']
|
75
|
+
self.issuer_uri = attributes[:'issuerURI']
|
76
|
+
end
|
77
|
+
|
78
78
|
if attributes[:'selfUri']
|
79
79
|
self.self_uri = attributes[:'selfUri']
|
80
80
|
end
|
@@ -88,8 +88,8 @@ module PureCloud
|
|
88
88
|
id == o.id &&
|
89
89
|
name == o.name &&
|
90
90
|
certificate == o.certificate &&
|
91
|
-
issuer_uri == o.issuer_uri &&
|
92
91
|
sso_target_uri == o.sso_target_uri &&
|
92
|
+
issuer_uri == o.issuer_uri &&
|
93
93
|
self_uri == o.self_uri
|
94
94
|
end
|
95
95
|
|
@@ -100,7 +100,7 @@ module PureCloud
|
|
100
100
|
|
101
101
|
# Calculate hash code according to all attributes.
|
102
102
|
def hash
|
103
|
-
[id, name, certificate,
|
103
|
+
[id, name, certificate, sso_target_uri, issuer_uri, self_uri].hash
|
104
104
|
end
|
105
105
|
|
106
106
|
# build the object from hash
|
@@ -9,10 +9,10 @@ module PureCloud
|
|
9
9
|
|
10
10
|
attr_accessor :certificate
|
11
11
|
|
12
|
-
attr_accessor :issuer_uri
|
13
|
-
|
14
12
|
attr_accessor :sso_target_uri
|
15
13
|
|
14
|
+
attr_accessor :issuer_uri
|
15
|
+
|
16
16
|
# The URI for this object
|
17
17
|
attr_accessor :self_uri
|
18
18
|
|
@@ -26,10 +26,10 @@ module PureCloud
|
|
26
26
|
|
27
27
|
:'certificate' => :'certificate',
|
28
28
|
|
29
|
-
:'issuer_uri' => :'issuerURI',
|
30
|
-
|
31
29
|
:'sso_target_uri' => :'ssoTargetURI',
|
32
30
|
|
31
|
+
:'issuer_uri' => :'issuerURI',
|
32
|
+
|
33
33
|
:'self_uri' => :'selfUri'
|
34
34
|
|
35
35
|
}
|
@@ -41,8 +41,8 @@ module PureCloud
|
|
41
41
|
:'id' => :'String',
|
42
42
|
:'name' => :'String',
|
43
43
|
:'certificate' => :'String',
|
44
|
-
:'issuer_uri' => :'String',
|
45
44
|
:'sso_target_uri' => :'String',
|
45
|
+
:'issuer_uri' => :'String',
|
46
46
|
:'self_uri' => :'String'
|
47
47
|
|
48
48
|
}
|
@@ -67,14 +67,14 @@ module PureCloud
|
|
67
67
|
self.certificate = attributes[:'certificate']
|
68
68
|
end
|
69
69
|
|
70
|
-
if attributes[:'issuerURI']
|
71
|
-
self.issuer_uri = attributes[:'issuerURI']
|
72
|
-
end
|
73
|
-
|
74
70
|
if attributes[:'ssoTargetURI']
|
75
71
|
self.sso_target_uri = attributes[:'ssoTargetURI']
|
76
72
|
end
|
77
73
|
|
74
|
+
if attributes[:'issuerURI']
|
75
|
+
self.issuer_uri = attributes[:'issuerURI']
|
76
|
+
end
|
77
|
+
|
78
78
|
if attributes[:'selfUri']
|
79
79
|
self.self_uri = attributes[:'selfUri']
|
80
80
|
end
|
@@ -88,8 +88,8 @@ module PureCloud
|
|
88
88
|
id == o.id &&
|
89
89
|
name == o.name &&
|
90
90
|
certificate == o.certificate &&
|
91
|
-
issuer_uri == o.issuer_uri &&
|
92
91
|
sso_target_uri == o.sso_target_uri &&
|
92
|
+
issuer_uri == o.issuer_uri &&
|
93
93
|
self_uri == o.self_uri
|
94
94
|
end
|
95
95
|
|
@@ -100,7 +100,7 @@ module PureCloud
|
|
100
100
|
|
101
101
|
# Calculate hash code according to all attributes.
|
102
102
|
def hash
|
103
|
-
[id, name, certificate,
|
103
|
+
[id, name, certificate, sso_target_uri, issuer_uri, self_uri].hash
|
104
104
|
end
|
105
105
|
|
106
106
|
# build the object from hash
|
@@ -19,10 +19,10 @@ module PureCloud
|
|
19
19
|
|
20
20
|
attr_accessor :status
|
21
21
|
|
22
|
-
attr_accessor :entity_type
|
23
|
-
|
24
22
|
attr_accessor :changes
|
25
23
|
|
24
|
+
attr_accessor :entity_type
|
25
|
+
|
26
26
|
# The URI for this object
|
27
27
|
attr_accessor :self_uri
|
28
28
|
|
@@ -46,10 +46,10 @@ module PureCloud
|
|
46
46
|
|
47
47
|
:'status' => :'status',
|
48
48
|
|
49
|
-
:'entity_type' => :'entityType',
|
50
|
-
|
51
49
|
:'changes' => :'changes',
|
52
50
|
|
51
|
+
:'entity_type' => :'entityType',
|
52
|
+
|
53
53
|
:'self_uri' => :'selfUri'
|
54
54
|
|
55
55
|
}
|
@@ -66,8 +66,8 @@ module PureCloud
|
|
66
66
|
:'entity' => :'Entity',
|
67
67
|
:'action' => :'String',
|
68
68
|
:'status' => :'String',
|
69
|
-
:'entity_type' => :'String',
|
70
69
|
:'changes' => :'Array<Change>',
|
70
|
+
:'entity_type' => :'String',
|
71
71
|
:'self_uri' => :'String'
|
72
72
|
|
73
73
|
}
|
@@ -112,16 +112,16 @@ module PureCloud
|
|
112
112
|
self.status = attributes[:'status']
|
113
113
|
end
|
114
114
|
|
115
|
-
if attributes[:'entityType']
|
116
|
-
self.entity_type = attributes[:'entityType']
|
117
|
-
end
|
118
|
-
|
119
115
|
if attributes[:'changes']
|
120
116
|
if (value = attributes[:'changes']).is_a?(Array)
|
121
117
|
self.changes = value
|
122
118
|
end
|
123
119
|
end
|
124
120
|
|
121
|
+
if attributes[:'entityType']
|
122
|
+
self.entity_type = attributes[:'entityType']
|
123
|
+
end
|
124
|
+
|
125
125
|
if attributes[:'selfUri']
|
126
126
|
self.self_uri = attributes[:'selfUri']
|
127
127
|
end
|
@@ -140,8 +140,8 @@ module PureCloud
|
|
140
140
|
entity == o.entity &&
|
141
141
|
action == o.action &&
|
142
142
|
status == o.status &&
|
143
|
-
entity_type == o.entity_type &&
|
144
143
|
changes == o.changes &&
|
144
|
+
entity_type == o.entity_type &&
|
145
145
|
self_uri == o.self_uri
|
146
146
|
end
|
147
147
|
|
@@ -152,7 +152,7 @@ module PureCloud
|
|
152
152
|
|
153
153
|
# Calculate hash code according to all attributes.
|
154
154
|
def hash
|
155
|
-
[id, name, user, timestamp, level, entity, action, status,
|
155
|
+
[id, name, user, timestamp, level, entity, action, status, changes, entity_type, self_uri].hash
|
156
156
|
end
|
157
157
|
|
158
158
|
# build the object from hash
|
@@ -2,33 +2,17 @@ require 'date'
|
|
2
2
|
|
3
3
|
module PureCloud
|
4
4
|
class Rule
|
5
|
-
# The globally unique identifier for the object.
|
6
5
|
attr_accessor :id
|
7
6
|
|
8
7
|
attr_accessor :name
|
9
8
|
|
10
|
-
attr_accessor :
|
9
|
+
attr_accessor :order
|
11
10
|
|
12
|
-
attr_accessor :
|
11
|
+
attr_accessor :category
|
13
12
|
|
14
|
-
attr_accessor :
|
13
|
+
attr_accessor :conditions
|
15
14
|
|
16
|
-
attr_accessor :
|
17
|
-
|
18
|
-
attr_accessor :entity
|
19
|
-
|
20
|
-
attr_accessor :metric_thresholds
|
21
|
-
|
22
|
-
attr_accessor :in_alarm
|
23
|
-
|
24
|
-
attr_accessor :occurrence
|
25
|
-
|
26
|
-
attr_accessor :media_type
|
27
|
-
|
28
|
-
attr_accessor :statistic
|
29
|
-
|
30
|
-
# The URI for this object
|
31
|
-
attr_accessor :self_uri
|
15
|
+
attr_accessor :actions
|
32
16
|
|
33
17
|
# Attribute mapping from ruby-style variable name to JSON key.
|
34
18
|
def self.attribute_map
|
@@ -38,27 +22,13 @@ module PureCloud
|
|
38
22
|
|
39
23
|
:'name' => :'name',
|
40
24
|
|
41
|
-
:'
|
42
|
-
|
43
|
-
:'description' => :'description',
|
44
|
-
|
45
|
-
:'enabled' => :'enabled',
|
46
|
-
|
47
|
-
:'metric' => :'metric',
|
25
|
+
:'order' => :'order',
|
48
26
|
|
49
|
-
:'
|
27
|
+
:'category' => :'category',
|
50
28
|
|
51
|
-
:'
|
29
|
+
:'conditions' => :'conditions',
|
52
30
|
|
53
|
-
:'
|
54
|
-
|
55
|
-
:'occurrence' => :'occurrence',
|
56
|
-
|
57
|
-
:'media_type' => :'mediaType',
|
58
|
-
|
59
|
-
:'statistic' => :'statistic',
|
60
|
-
|
61
|
-
:'self_uri' => :'selfUri'
|
31
|
+
:'actions' => :'actions'
|
62
32
|
|
63
33
|
}
|
64
34
|
end
|
@@ -68,17 +38,10 @@ module PureCloud
|
|
68
38
|
{
|
69
39
|
:'id' => :'String',
|
70
40
|
:'name' => :'String',
|
71
|
-
:'
|
72
|
-
:'
|
73
|
-
:'
|
74
|
-
:'
|
75
|
-
:'entity' => :'Entity',
|
76
|
-
:'metric_thresholds' => :'Array<MetricThreshold>',
|
77
|
-
:'in_alarm' => :'BOOLEAN',
|
78
|
-
:'occurrence' => :'Occurrence',
|
79
|
-
:'media_type' => :'String',
|
80
|
-
:'statistic' => :'String',
|
81
|
-
:'self_uri' => :'String'
|
41
|
+
:'order' => :'Integer',
|
42
|
+
:'category' => :'String',
|
43
|
+
:'conditions' => :'Array<Condition>',
|
44
|
+
:'actions' => :'Array<Action>'
|
82
45
|
|
83
46
|
}
|
84
47
|
end
|
@@ -98,93 +61,38 @@ module PureCloud
|
|
98
61
|
self.name = attributes[:'name']
|
99
62
|
end
|
100
63
|
|
101
|
-
if attributes[:'
|
102
|
-
self.
|
103
|
-
end
|
104
|
-
|
105
|
-
if attributes[:'description']
|
106
|
-
self.description = attributes[:'description']
|
107
|
-
end
|
108
|
-
|
109
|
-
if attributes[:'enabled']
|
110
|
-
self.enabled = attributes[:'enabled']
|
111
|
-
else
|
112
|
-
self.enabled = false
|
64
|
+
if attributes[:'order']
|
65
|
+
self.order = attributes[:'order']
|
113
66
|
end
|
114
67
|
|
115
|
-
if attributes[:'
|
116
|
-
self.
|
68
|
+
if attributes[:'category']
|
69
|
+
self.category = attributes[:'category']
|
117
70
|
end
|
118
71
|
|
119
|
-
if attributes[:'
|
120
|
-
|
121
|
-
|
122
|
-
|
123
|
-
if attributes[:'metricThresholds']
|
124
|
-
if (value = attributes[:'metricThresholds']).is_a?(Array)
|
125
|
-
self.metric_thresholds = value
|
72
|
+
if attributes[:'conditions']
|
73
|
+
if (value = attributes[:'conditions']).is_a?(Array)
|
74
|
+
self.conditions = value
|
126
75
|
end
|
127
76
|
end
|
128
77
|
|
129
|
-
if attributes[:'
|
130
|
-
|
131
|
-
|
132
|
-
|
133
|
-
end
|
134
|
-
|
135
|
-
if attributes[:'occurrence']
|
136
|
-
self.occurrence = attributes[:'occurrence']
|
137
|
-
end
|
138
|
-
|
139
|
-
if attributes[:'mediaType']
|
140
|
-
self.media_type = attributes[:'mediaType']
|
141
|
-
end
|
142
|
-
|
143
|
-
if attributes[:'statistic']
|
144
|
-
self.statistic = attributes[:'statistic']
|
145
|
-
end
|
146
|
-
|
147
|
-
if attributes[:'selfUri']
|
148
|
-
self.self_uri = attributes[:'selfUri']
|
78
|
+
if attributes[:'actions']
|
79
|
+
if (value = attributes[:'actions']).is_a?(Array)
|
80
|
+
self.actions = value
|
81
|
+
end
|
149
82
|
end
|
150
83
|
|
151
84
|
end
|
152
85
|
|
153
|
-
# Custom attribute writer method checking allowed values (enum).
|
154
|
-
def media_type=(media_type)
|
155
|
-
allowed_values = ["VOICE", "CHAT"]
|
156
|
-
if media_type && !allowed_values.include?(media_type)
|
157
|
-
fail "invalid value for 'media_type', must be one of #{allowed_values}"
|
158
|
-
end
|
159
|
-
@media_type = media_type
|
160
|
-
end
|
161
|
-
|
162
|
-
# Custom attribute writer method checking allowed values (enum).
|
163
|
-
def statistic=(statistic)
|
164
|
-
allowed_values = ["COUNT", "SUM", "AVG", "RATIO"]
|
165
|
-
if statistic && !allowed_values.include?(statistic)
|
166
|
-
fail "invalid value for 'statistic', must be one of #{allowed_values}"
|
167
|
-
end
|
168
|
-
@statistic = statistic
|
169
|
-
end
|
170
|
-
|
171
86
|
# Check equality by comparing each attribute.
|
172
87
|
def ==(o)
|
173
88
|
return true if self.equal?(o)
|
174
89
|
self.class == o.class &&
|
175
90
|
id == o.id &&
|
176
91
|
name == o.name &&
|
177
|
-
|
178
|
-
|
179
|
-
|
180
|
-
|
181
|
-
entity == o.entity &&
|
182
|
-
metric_thresholds == o.metric_thresholds &&
|
183
|
-
in_alarm == o.in_alarm &&
|
184
|
-
occurrence == o.occurrence &&
|
185
|
-
media_type == o.media_type &&
|
186
|
-
statistic == o.statistic &&
|
187
|
-
self_uri == o.self_uri
|
92
|
+
order == o.order &&
|
93
|
+
category == o.category &&
|
94
|
+
conditions == o.conditions &&
|
95
|
+
actions == o.actions
|
188
96
|
end
|
189
97
|
|
190
98
|
# @see the `==` method
|
@@ -194,7 +102,7 @@ module PureCloud
|
|
194
102
|
|
195
103
|
# Calculate hash code according to all attributes.
|
196
104
|
def hash
|
197
|
-
[id, name,
|
105
|
+
[id, name, order, category, conditions, actions].hash
|
198
106
|
end
|
199
107
|
|
200
108
|
# build the object from hash
|
@@ -9,10 +9,10 @@ module PureCloud
|
|
9
9
|
|
10
10
|
attr_accessor :certificate
|
11
11
|
|
12
|
-
attr_accessor :issuer_uri
|
13
|
-
|
14
12
|
attr_accessor :sso_target_uri
|
15
13
|
|
14
|
+
attr_accessor :issuer_uri
|
15
|
+
|
16
16
|
# The URI for this object
|
17
17
|
attr_accessor :self_uri
|
18
18
|
|
@@ -26,10 +26,10 @@ module PureCloud
|
|
26
26
|
|
27
27
|
:'certificate' => :'certificate',
|
28
28
|
|
29
|
-
:'issuer_uri' => :'issuerURI',
|
30
|
-
|
31
29
|
:'sso_target_uri' => :'ssoTargetURI',
|
32
30
|
|
31
|
+
:'issuer_uri' => :'issuerURI',
|
32
|
+
|
33
33
|
:'self_uri' => :'selfUri'
|
34
34
|
|
35
35
|
}
|
@@ -41,8 +41,8 @@ module PureCloud
|
|
41
41
|
:'id' => :'String',
|
42
42
|
:'name' => :'String',
|
43
43
|
:'certificate' => :'String',
|
44
|
-
:'issuer_uri' => :'String',
|
45
44
|
:'sso_target_uri' => :'String',
|
45
|
+
:'issuer_uri' => :'String',
|
46
46
|
:'self_uri' => :'String'
|
47
47
|
|
48
48
|
}
|
@@ -67,14 +67,14 @@ module PureCloud
|
|
67
67
|
self.certificate = attributes[:'certificate']
|
68
68
|
end
|
69
69
|
|
70
|
-
if attributes[:'issuerURI']
|
71
|
-
self.issuer_uri = attributes[:'issuerURI']
|
72
|
-
end
|
73
|
-
|
74
70
|
if attributes[:'ssoTargetURI']
|
75
71
|
self.sso_target_uri = attributes[:'ssoTargetURI']
|
76
72
|
end
|
77
73
|
|
74
|
+
if attributes[:'issuerURI']
|
75
|
+
self.issuer_uri = attributes[:'issuerURI']
|
76
|
+
end
|
77
|
+
|
78
78
|
if attributes[:'selfUri']
|
79
79
|
self.self_uri = attributes[:'selfUri']
|
80
80
|
end
|
@@ -88,8 +88,8 @@ module PureCloud
|
|
88
88
|
id == o.id &&
|
89
89
|
name == o.name &&
|
90
90
|
certificate == o.certificate &&
|
91
|
-
issuer_uri == o.issuer_uri &&
|
92
91
|
sso_target_uri == o.sso_target_uri &&
|
92
|
+
issuer_uri == o.issuer_uri &&
|
93
93
|
self_uri == o.self_uri
|
94
94
|
end
|
95
95
|
|
@@ -100,7 +100,7 @@ module PureCloud
|
|
100
100
|
|
101
101
|
# Calculate hash code according to all attributes.
|
102
102
|
def hash
|
103
|
-
[id, name, certificate,
|
103
|
+
[id, name, certificate, sso_target_uri, issuer_uri, self_uri].hash
|
104
104
|
end
|
105
105
|
|
106
106
|
# build the object from hash
|