purecloudplatformclientv2 39.1.0 → 40.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/AuthorizationApi.md +80 -0
- data/docs/CreateQueueRequest.md +1 -1
- data/docs/DomainOrganizationRole.md +1 -1
- data/docs/DomainOrganizationRoleCreate.md +1 -1
- data/docs/DomainOrganizationRoleUpdate.md +1 -1
- data/docs/ExternalContactsApi.md +3 -3
- data/docs/JsonNode.md +4 -4
- data/docs/QualityApi.md +1 -1
- data/docs/QueueRequest.md +37 -0
- data/docs/RoutingApi.md +5 -5
- data/docs/SubjectDivisionGrants.md +17 -0
- data/docs/SubjectDivisionGrantsEntityListing.md +22 -0
- data/docs/TimeZone.md +2 -2
- data/docs/UserQueue.md +0 -1
- data/docs/WritableDivision.md +15 -0
- data/lib/purecloudplatformclientv2.rb +4 -0
- data/lib/purecloudplatformclientv2/api/authorization_api.rb +119 -0
- data/lib/purecloudplatformclientv2/api/external_contacts_api.rb +2 -2
- data/lib/purecloudplatformclientv2/api/routing_api.rb +2 -2
- data/lib/purecloudplatformclientv2/api_client.rb +1 -1
- data/lib/purecloudplatformclientv2/models/create_queue_request.rb +1 -1
- data/lib/purecloudplatformclientv2/models/domain_organization_role.rb +12 -12
- data/lib/purecloudplatformclientv2/models/domain_organization_role_create.rb +12 -12
- data/lib/purecloudplatformclientv2/models/domain_organization_role_update.rb +12 -12
- data/lib/purecloudplatformclientv2/models/forecast_time_series_result.rb +2 -2
- data/lib/purecloudplatformclientv2/models/history_listing.rb +2 -2
- data/lib/purecloudplatformclientv2/models/json_node.rb +76 -76
- data/lib/purecloudplatformclientv2/models/operation.rb +2 -2
- data/lib/purecloudplatformclientv2/models/queue_request.rb +870 -0
- data/lib/purecloudplatformclientv2/models/subject_division_grants.rb +319 -0
- data/lib/purecloudplatformclientv2/models/subject_division_grants_entity_listing.rb +428 -0
- data/lib/purecloudplatformclientv2/models/time_zone.rb +24 -24
- data/lib/purecloudplatformclientv2/models/user_queue.rb +1 -27
- data/lib/purecloudplatformclientv2/models/writable_division.rb +253 -0
- data/lib/purecloudplatformclientv2/version.rb +1 -1
- metadata +10 -2
@@ -18,25 +18,25 @@ require 'date'
|
|
18
18
|
|
19
19
|
module PureCloud
|
20
20
|
class TimeZone
|
21
|
-
attr_accessor :display_name
|
22
|
-
|
23
|
-
attr_accessor :id
|
24
|
-
|
25
21
|
attr_accessor :dstsavings
|
26
22
|
|
27
23
|
attr_accessor :raw_offset
|
28
24
|
|
25
|
+
attr_accessor :id
|
26
|
+
|
27
|
+
attr_accessor :display_name
|
28
|
+
|
29
29
|
# Attribute mapping from ruby-style variable name to JSON key.
|
30
30
|
def self.attribute_map
|
31
31
|
{
|
32
32
|
|
33
|
-
:'
|
33
|
+
:'dstsavings' => :'dstsavings',
|
34
34
|
|
35
|
-
:'
|
35
|
+
:'raw_offset' => :'rawOffset',
|
36
36
|
|
37
|
-
:'
|
37
|
+
:'id' => :'id',
|
38
38
|
|
39
|
-
:'
|
39
|
+
:'display_name' => :'displayName'
|
40
40
|
|
41
41
|
}
|
42
42
|
end
|
@@ -45,13 +45,13 @@ module PureCloud
|
|
45
45
|
def self.swagger_types
|
46
46
|
{
|
47
47
|
|
48
|
-
:'
|
48
|
+
:'dstsavings' => :'Integer',
|
49
|
+
|
50
|
+
:'raw_offset' => :'Integer',
|
49
51
|
|
50
52
|
:'id' => :'String',
|
51
53
|
|
52
|
-
:'
|
53
|
-
|
54
|
-
:'raw_offset' => :'Integer'
|
54
|
+
:'display_name' => :'String'
|
55
55
|
|
56
56
|
}
|
57
57
|
end
|
@@ -65,37 +65,37 @@ module PureCloud
|
|
65
65
|
attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
|
66
66
|
|
67
67
|
|
68
|
-
if attributes.has_key?(:'
|
68
|
+
if attributes.has_key?(:'dstsavings')
|
69
69
|
|
70
70
|
|
71
|
-
self.
|
71
|
+
self.dstsavings = attributes[:'dstsavings']
|
72
72
|
|
73
73
|
|
74
74
|
end
|
75
75
|
|
76
76
|
|
77
|
-
if attributes.has_key?(:'
|
77
|
+
if attributes.has_key?(:'rawOffset')
|
78
78
|
|
79
79
|
|
80
|
-
self.
|
80
|
+
self.raw_offset = attributes[:'rawOffset']
|
81
81
|
|
82
82
|
|
83
83
|
end
|
84
84
|
|
85
85
|
|
86
|
-
if attributes.has_key?(:'
|
86
|
+
if attributes.has_key?(:'id')
|
87
87
|
|
88
88
|
|
89
|
-
self.
|
89
|
+
self.id = attributes[:'id']
|
90
90
|
|
91
91
|
|
92
92
|
end
|
93
93
|
|
94
94
|
|
95
|
-
if attributes.has_key?(:'
|
95
|
+
if attributes.has_key?(:'displayName')
|
96
96
|
|
97
97
|
|
98
|
-
self.
|
98
|
+
self.display_name = attributes[:'displayName']
|
99
99
|
|
100
100
|
|
101
101
|
end
|
@@ -160,10 +160,10 @@ module PureCloud
|
|
160
160
|
def ==(o)
|
161
161
|
return true if self.equal?(o)
|
162
162
|
self.class == o.class &&
|
163
|
-
display_name == o.display_name &&
|
164
|
-
id == o.id &&
|
165
163
|
dstsavings == o.dstsavings &&
|
166
|
-
raw_offset == o.raw_offset
|
164
|
+
raw_offset == o.raw_offset &&
|
165
|
+
id == o.id &&
|
166
|
+
display_name == o.display_name
|
167
167
|
end
|
168
168
|
|
169
169
|
# @see the `==` method
|
@@ -175,7 +175,7 @@ module PureCloud
|
|
175
175
|
# Calculates hash code according to all attributes.
|
176
176
|
# @return [Fixnum] Hash code
|
177
177
|
def hash
|
178
|
-
[
|
178
|
+
[dstsavings, raw_offset, id, display_name].hash
|
179
179
|
end
|
180
180
|
|
181
181
|
# build the object from hash
|
@@ -71,9 +71,6 @@ module PureCloud
|
|
71
71
|
# The prompt used for whisper on the queue, if configured.
|
72
72
|
attr_accessor :whisper_prompt
|
73
73
|
|
74
|
-
# Specifies whether the configured whisper should play for all ACD calls, or only for those which are auto-answered.
|
75
|
-
attr_accessor :auto_answer_only
|
76
|
-
|
77
74
|
# The name to use for caller identification for outbound calls from this queue.
|
78
75
|
attr_accessor :calling_party_name
|
79
76
|
|
@@ -132,8 +129,6 @@ module PureCloud
|
|
132
129
|
|
133
130
|
:'whisper_prompt' => :'whisperPrompt',
|
134
131
|
|
135
|
-
:'auto_answer_only' => :'autoAnswerOnly',
|
136
|
-
|
137
132
|
:'calling_party_name' => :'callingPartyName',
|
138
133
|
|
139
134
|
:'calling_party_number' => :'callingPartyNumber',
|
@@ -191,8 +186,6 @@ module PureCloud
|
|
191
186
|
|
192
187
|
:'whisper_prompt' => :'UriReference',
|
193
188
|
|
194
|
-
:'auto_answer_only' => :'BOOLEAN',
|
195
|
-
|
196
189
|
:'calling_party_name' => :'String',
|
197
190
|
|
198
191
|
:'calling_party_number' => :'String',
|
@@ -383,15 +376,6 @@ module PureCloud
|
|
383
376
|
end
|
384
377
|
|
385
378
|
|
386
|
-
if attributes.has_key?(:'autoAnswerOnly')
|
387
|
-
|
388
|
-
|
389
|
-
self.auto_answer_only = attributes[:'autoAnswerOnly']
|
390
|
-
|
391
|
-
|
392
|
-
end
|
393
|
-
|
394
|
-
|
395
379
|
if attributes.has_key?(:'callingPartyName')
|
396
380
|
|
397
381
|
|
@@ -592,10 +576,6 @@ module PureCloud
|
|
592
576
|
|
593
577
|
|
594
578
|
|
595
|
-
|
596
|
-
|
597
|
-
|
598
|
-
|
599
579
|
|
600
580
|
|
601
581
|
|
@@ -741,11 +721,6 @@ module PureCloud
|
|
741
721
|
|
742
722
|
|
743
723
|
|
744
|
-
|
745
|
-
|
746
|
-
|
747
|
-
|
748
|
-
|
749
724
|
|
750
725
|
|
751
726
|
|
@@ -775,7 +750,6 @@ module PureCloud
|
|
775
750
|
skill_evaluation_method == o.skill_evaluation_method &&
|
776
751
|
queue_flow == o.queue_flow &&
|
777
752
|
whisper_prompt == o.whisper_prompt &&
|
778
|
-
auto_answer_only == o.auto_answer_only &&
|
779
753
|
calling_party_name == o.calling_party_name &&
|
780
754
|
calling_party_number == o.calling_party_number &&
|
781
755
|
default_scripts == o.default_scripts &&
|
@@ -794,7 +768,7 @@ module PureCloud
|
|
794
768
|
# Calculates hash code according to all attributes.
|
795
769
|
# @return [Fixnum] Hash code
|
796
770
|
def hash
|
797
|
-
[id, name, division, description, version, date_created, date_modified, modified_by, created_by, state, modified_by_app, created_by_app, media_settings, bullseye, acw_settings, skill_evaluation_method, queue_flow, whisper_prompt,
|
771
|
+
[id, name, division, description, version, date_created, date_modified, modified_by, created_by, state, modified_by_app, created_by_app, media_settings, bullseye, acw_settings, skill_evaluation_method, queue_flow, whisper_prompt, calling_party_name, calling_party_number, default_scripts, outbound_email_address, joined, member_count, self_uri].hash
|
798
772
|
end
|
799
773
|
|
800
774
|
# build the object from hash
|
@@ -0,0 +1,253 @@
|
|
1
|
+
=begin
|
2
|
+
PureCloud Platform API
|
3
|
+
|
4
|
+
With the PureCloud Platform API, you can control all aspects of your PureCloud environment. With the APIs you can access the system configuration, manage conversations and more.
|
5
|
+
|
6
|
+
OpenAPI spec version: v2
|
7
|
+
Contact: DeveloperEvangelists@genesys.com
|
8
|
+
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
9
|
+
|
10
|
+
License: ININ
|
11
|
+
http://www.inin.com
|
12
|
+
|
13
|
+
Terms of Service: https://developer.mypurecloud.com/tos
|
14
|
+
|
15
|
+
=end
|
16
|
+
|
17
|
+
require 'date'
|
18
|
+
|
19
|
+
module PureCloud
|
20
|
+
class WritableDivision
|
21
|
+
# The globally unique identifier for the object.
|
22
|
+
attr_accessor :id
|
23
|
+
|
24
|
+
attr_accessor :name
|
25
|
+
|
26
|
+
# The URI for this object
|
27
|
+
attr_accessor :self_uri
|
28
|
+
|
29
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
30
|
+
def self.attribute_map
|
31
|
+
{
|
32
|
+
|
33
|
+
:'id' => :'id',
|
34
|
+
|
35
|
+
:'name' => :'name',
|
36
|
+
|
37
|
+
:'self_uri' => :'selfUri'
|
38
|
+
|
39
|
+
}
|
40
|
+
end
|
41
|
+
|
42
|
+
# Attribute type mapping.
|
43
|
+
def self.swagger_types
|
44
|
+
{
|
45
|
+
|
46
|
+
:'id' => :'String',
|
47
|
+
|
48
|
+
:'name' => :'String',
|
49
|
+
|
50
|
+
:'self_uri' => :'String'
|
51
|
+
|
52
|
+
}
|
53
|
+
end
|
54
|
+
|
55
|
+
# Initializes the object
|
56
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
57
|
+
def initialize(attributes = {})
|
58
|
+
return unless attributes.is_a?(Hash)
|
59
|
+
|
60
|
+
# convert string to symbol for hash key
|
61
|
+
attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
|
62
|
+
|
63
|
+
|
64
|
+
if attributes.has_key?(:'id')
|
65
|
+
|
66
|
+
|
67
|
+
self.id = attributes[:'id']
|
68
|
+
|
69
|
+
|
70
|
+
end
|
71
|
+
|
72
|
+
|
73
|
+
if attributes.has_key?(:'name')
|
74
|
+
|
75
|
+
|
76
|
+
self.name = attributes[:'name']
|
77
|
+
|
78
|
+
|
79
|
+
end
|
80
|
+
|
81
|
+
|
82
|
+
if attributes.has_key?(:'selfUri')
|
83
|
+
|
84
|
+
|
85
|
+
self.self_uri = attributes[:'selfUri']
|
86
|
+
|
87
|
+
|
88
|
+
end
|
89
|
+
|
90
|
+
|
91
|
+
end
|
92
|
+
|
93
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
94
|
+
# @return Array for valid properies with the reasons
|
95
|
+
def list_invalid_properties
|
96
|
+
invalid_properties = Array.new
|
97
|
+
|
98
|
+
|
99
|
+
return invalid_properties
|
100
|
+
end
|
101
|
+
|
102
|
+
# Check to see if the all the properties in the model are valid
|
103
|
+
# @return true if the model is valid
|
104
|
+
def valid?
|
105
|
+
|
106
|
+
|
107
|
+
|
108
|
+
|
109
|
+
|
110
|
+
|
111
|
+
|
112
|
+
|
113
|
+
|
114
|
+
|
115
|
+
|
116
|
+
|
117
|
+
|
118
|
+
end
|
119
|
+
|
120
|
+
|
121
|
+
|
122
|
+
|
123
|
+
|
124
|
+
|
125
|
+
|
126
|
+
|
127
|
+
|
128
|
+
|
129
|
+
|
130
|
+
|
131
|
+
|
132
|
+
|
133
|
+
|
134
|
+
|
135
|
+
|
136
|
+
# Checks equality by comparing each attribute.
|
137
|
+
# @param [Object] Object to be compared
|
138
|
+
def ==(o)
|
139
|
+
return true if self.equal?(o)
|
140
|
+
self.class == o.class &&
|
141
|
+
id == o.id &&
|
142
|
+
name == o.name &&
|
143
|
+
self_uri == o.self_uri
|
144
|
+
end
|
145
|
+
|
146
|
+
# @see the `==` method
|
147
|
+
# @param [Object] Object to be compared
|
148
|
+
def eql?(o)
|
149
|
+
self == o
|
150
|
+
end
|
151
|
+
|
152
|
+
# Calculates hash code according to all attributes.
|
153
|
+
# @return [Fixnum] Hash code
|
154
|
+
def hash
|
155
|
+
[id, name, self_uri].hash
|
156
|
+
end
|
157
|
+
|
158
|
+
# build the object from hash
|
159
|
+
def build_from_hash(attributes)
|
160
|
+
return nil unless attributes.is_a?(Hash)
|
161
|
+
self.class.swagger_types.each_pair do |key, type|
|
162
|
+
if type =~ /^Array<(.*)>/i
|
163
|
+
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
164
|
+
self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } )
|
165
|
+
else
|
166
|
+
#TODO show warning in debug mode
|
167
|
+
end
|
168
|
+
elsif !attributes[self.class.attribute_map[key]].nil?
|
169
|
+
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
170
|
+
else
|
171
|
+
# data not found in attributes(hash), not an issue as the data can be optional
|
172
|
+
end
|
173
|
+
end
|
174
|
+
|
175
|
+
self
|
176
|
+
end
|
177
|
+
|
178
|
+
def _deserialize(type, value)
|
179
|
+
case type.to_sym
|
180
|
+
when :DateTime
|
181
|
+
DateTime.parse(value)
|
182
|
+
when :Date
|
183
|
+
Date.parse(value)
|
184
|
+
when :String
|
185
|
+
value.to_s
|
186
|
+
when :Integer
|
187
|
+
value.to_i
|
188
|
+
when :Float
|
189
|
+
value.to_f
|
190
|
+
when :BOOLEAN
|
191
|
+
if value.to_s =~ /^(true|t|yes|y|1)$/i
|
192
|
+
true
|
193
|
+
else
|
194
|
+
false
|
195
|
+
end
|
196
|
+
when :Object
|
197
|
+
# generic object (usually a Hash), return directly
|
198
|
+
value
|
199
|
+
when /\AArray<(?<inner_type>.+)>\z/
|
200
|
+
inner_type = Regexp.last_match[:inner_type]
|
201
|
+
value.map { |v| _deserialize(inner_type, v) }
|
202
|
+
when /\AHash<(?<k_type>.+), (?<v_type>.+)>\z/
|
203
|
+
k_type = Regexp.last_match[:k_type]
|
204
|
+
v_type = Regexp.last_match[:v_type]
|
205
|
+
{}.tap do |hash|
|
206
|
+
value.each do |k, v|
|
207
|
+
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
208
|
+
end
|
209
|
+
end
|
210
|
+
else # model
|
211
|
+
_model = Object.const_get("PureCloud").const_get(type).new
|
212
|
+
_model.build_from_hash(value)
|
213
|
+
end
|
214
|
+
end
|
215
|
+
|
216
|
+
def to_s
|
217
|
+
to_hash.to_s
|
218
|
+
end
|
219
|
+
|
220
|
+
# to_body is an alias to to_body (backward compatibility))
|
221
|
+
def to_body
|
222
|
+
to_hash
|
223
|
+
end
|
224
|
+
|
225
|
+
# return the object in the form of hash
|
226
|
+
def to_hash
|
227
|
+
hash = {}
|
228
|
+
self.class.attribute_map.each_pair do |attr, param|
|
229
|
+
value = self.send(attr)
|
230
|
+
next if value.nil?
|
231
|
+
hash[param] = _to_hash(value)
|
232
|
+
end
|
233
|
+
hash
|
234
|
+
end
|
235
|
+
|
236
|
+
# Method to output non-array value in the form of hash
|
237
|
+
# For object, use to_hash. Otherwise, just return the value
|
238
|
+
def _to_hash(value)
|
239
|
+
if value.is_a?(Array)
|
240
|
+
value.compact.map{ |v| _to_hash(v) }
|
241
|
+
elsif value.is_a?(Hash)
|
242
|
+
{}.tap do |hash|
|
243
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
244
|
+
end
|
245
|
+
elsif value.respond_to? :to_hash
|
246
|
+
value.to_hash
|
247
|
+
else
|
248
|
+
value
|
249
|
+
end
|
250
|
+
end
|
251
|
+
|
252
|
+
end
|
253
|
+
end
|