purecloudplatformclientv2 14.0.0 → 14.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +2 -2
- data/docs/CertificateDetails.md +1 -1
- data/docs/DomainOrganizationRole.md +1 -1
- data/docs/DomainOrganizationRoleCreate.md +1 -1
- data/docs/DomainOrganizationRoleUpdate.md +1 -1
- data/docs/Edge.md +1 -0
- data/docs/JsonNode.md +2 -2
- data/docs/LicenseApi.md +120 -0
- data/docs/LicenseOrgToggle.md +14 -0
- data/docs/OAuthClient.md +4 -0
- data/docs/OAuthClientListing.md +4 -0
- data/docs/OrgOAuthClient.md +4 -0
- data/docs/OutOfOffice.md +1 -0
- data/docs/UsersApi.md +2 -2
- data/docs/VoicemailApi.md +77 -14
- data/docs/VoicemailMessage.md +1 -0
- data/docs/VoicemailRetentionPolicy.md +14 -0
- data/lib/purecloudplatformclientv2.rb +2 -0
- data/lib/purecloudplatformclientv2/api/license_api.rb +130 -0
- data/lib/purecloudplatformclientv2/api/users_api.rb +2 -2
- data/lib/purecloudplatformclientv2/api/voicemail_api.rb +87 -12
- data/lib/purecloudplatformclientv2/api_client.rb +1 -1
- data/lib/purecloudplatformclientv2/models/activity_code.rb +2 -2
- data/lib/purecloudplatformclientv2/models/certificate_details.rb +13 -13
- 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/edge.rb +27 -1
- data/lib/purecloudplatformclientv2/models/json_node.rb +50 -50
- data/lib/purecloudplatformclientv2/models/license_org_toggle.rb +226 -0
- data/lib/purecloudplatformclientv2/models/o_auth_client.rb +105 -1
- data/lib/purecloudplatformclientv2/models/o_auth_client_listing.rb +105 -1
- data/lib/purecloudplatformclientv2/models/org_o_auth_client.rb +105 -1
- data/lib/purecloudplatformclientv2/models/out_of_office.rb +26 -1
- data/lib/purecloudplatformclientv2/models/user_schedule_adherence.rb +4 -4
- data/lib/purecloudplatformclientv2/models/voicemail_message.rb +27 -1
- data/lib/purecloudplatformclientv2/models/voicemail_retention_policy.rb +243 -0
- data/lib/purecloudplatformclientv2/version.rb +1 -1
- metadata +6 -2
data/docs/VoicemailMessage.md
CHANGED
@@ -24,6 +24,7 @@ title: VoicemailMessage
|
|
24
24
|
| **queue** | [**Queue**](Queue.html) | The queue that the voicemail message belongs to or null which means the voicemail message belongs to a user or group | [optional] |
|
25
25
|
| **copied_from** | [**VoicemailCopyRecord**](VoicemailCopyRecord.html) | Represents where this voicemail message was copied from | [optional] |
|
26
26
|
| **copied_to** | [**Array<VoicemailCopyRecord>**](VoicemailCopyRecord.html) | Represents where this voicemail has been copied to | [optional] |
|
27
|
+
| **retention_policy** | [**VoicemailRetentionPolicy**](VoicemailRetentionPolicy.html) | The retention policy for this voicemail | [optional] |
|
27
28
|
| **self_uri** | **String** | The URI for this object | [optional] |
|
28
29
|
{: class="table table-striped"}
|
29
30
|
|
@@ -0,0 +1,14 @@
|
|
1
|
+
---
|
2
|
+
title: VoicemailRetentionPolicy
|
3
|
+
---
|
4
|
+
## PureCloud::VoicemailRetentionPolicy
|
5
|
+
|
6
|
+
## Properties
|
7
|
+
|
8
|
+
|Name | Type | Description | Notes|
|
9
|
+
|------------ | ------------- | ------------- | -------------|
|
10
|
+
| **voicemail_retention_policy_type** | **String** | The retention policy type | [optional] |
|
11
|
+
| **number_of_days** | **Integer** | If retentionPolicyType == RETAIN_WITH_TTL, then this value represents the number of days for the TTL | [optional] |
|
12
|
+
{: class="table table-striped"}
|
13
|
+
|
14
|
+
|
@@ -572,6 +572,7 @@ require 'purecloudplatformclientv2/models/library_entity_listing'
|
|
572
572
|
require 'purecloudplatformclientv2/models/license_assignment_request'
|
573
573
|
require 'purecloudplatformclientv2/models/license_batch_assignment_request'
|
574
574
|
require 'purecloudplatformclientv2/models/license_definition'
|
575
|
+
require 'purecloudplatformclientv2/models/license_org_toggle'
|
575
576
|
require 'purecloudplatformclientv2/models/license_organization'
|
576
577
|
require 'purecloudplatformclientv2/models/license_update_status'
|
577
578
|
require 'purecloudplatformclientv2/models/license_user'
|
@@ -962,6 +963,7 @@ require 'purecloudplatformclientv2/models/voicemail_message'
|
|
962
963
|
require 'purecloudplatformclientv2/models/voicemail_message_entity_listing'
|
963
964
|
require 'purecloudplatformclientv2/models/voicemail_message_notification'
|
964
965
|
require 'purecloudplatformclientv2/models/voicemail_organization_policy'
|
966
|
+
require 'purecloudplatformclientv2/models/voicemail_retention_policy'
|
965
967
|
require 'purecloudplatformclientv2/models/voicemail_search_criteria'
|
966
968
|
require 'purecloudplatformclientv2/models/voicemail_search_request'
|
967
969
|
require 'purecloudplatformclientv2/models/voicemail_user_policy'
|
@@ -199,6 +199,71 @@ module PureCloud
|
|
199
199
|
return data, status_code, headers
|
200
200
|
end
|
201
201
|
|
202
|
+
# Get PureCloud license feature toggle value.
|
203
|
+
#
|
204
|
+
# @param feature_name featureName
|
205
|
+
# @param [Hash] opts the optional parameters
|
206
|
+
# @return [LicenseOrgToggle]
|
207
|
+
def get_license_toggle(feature_name, opts = {})
|
208
|
+
data, _status_code, _headers = get_license_toggle_with_http_info(feature_name, opts)
|
209
|
+
return data
|
210
|
+
end
|
211
|
+
|
212
|
+
# Get PureCloud license feature toggle value.
|
213
|
+
#
|
214
|
+
# @param feature_name featureName
|
215
|
+
# @param [Hash] opts the optional parameters
|
216
|
+
# @return [Array<(LicenseOrgToggle, Fixnum, Hash)>] LicenseOrgToggle data, response status code and response headers
|
217
|
+
def get_license_toggle_with_http_info(feature_name, opts = {})
|
218
|
+
if @api_client.config.debugging
|
219
|
+
@api_client.config.logger.debug "Calling API: LicenseApi.get_license_toggle ..."
|
220
|
+
end
|
221
|
+
|
222
|
+
|
223
|
+
# verify the required parameter 'feature_name' is set
|
224
|
+
fail ArgumentError, "Missing the required parameter 'feature_name' when calling LicenseApi.get_license_toggle" if feature_name.nil?
|
225
|
+
|
226
|
+
|
227
|
+
|
228
|
+
|
229
|
+
|
230
|
+
# resource path
|
231
|
+
local_var_path = "/api/v2/license/toggles/{featureName}".sub('{format}','json').sub('{' + 'featureName' + '}', feature_name.to_s)
|
232
|
+
|
233
|
+
# query parameters
|
234
|
+
query_params = {}
|
235
|
+
|
236
|
+
# header parameters
|
237
|
+
header_params = {}
|
238
|
+
|
239
|
+
# HTTP header 'Accept' (if needed)
|
240
|
+
local_header_accept = ['application/json']
|
241
|
+
local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
|
242
|
+
|
243
|
+
# HTTP header 'Content-Type'
|
244
|
+
local_header_content_type = ['application/json']
|
245
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
|
246
|
+
|
247
|
+
# form parameters
|
248
|
+
form_params = {}
|
249
|
+
|
250
|
+
# http body (model)
|
251
|
+
post_body = nil
|
252
|
+
|
253
|
+
auth_names = ['PureCloud Auth']
|
254
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
|
255
|
+
:header_params => header_params,
|
256
|
+
:query_params => query_params,
|
257
|
+
:form_params => form_params,
|
258
|
+
:body => post_body,
|
259
|
+
:auth_names => auth_names,
|
260
|
+
:return_type => 'LicenseOrgToggle')
|
261
|
+
if @api_client.config.debugging
|
262
|
+
@api_client.config.logger.debug "API called: LicenseApi#get_license_toggle\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
263
|
+
end
|
264
|
+
return data, status_code, headers
|
265
|
+
end
|
266
|
+
|
202
267
|
# Get licenses for specified user.
|
203
268
|
#
|
204
269
|
# @param user_id ID
|
@@ -327,6 +392,71 @@ module PureCloud
|
|
327
392
|
return data, status_code, headers
|
328
393
|
end
|
329
394
|
|
395
|
+
# Switch PureCloud license feature toggle value.
|
396
|
+
#
|
397
|
+
# @param feature_name featureName
|
398
|
+
# @param [Hash] opts the optional parameters
|
399
|
+
# @return [LicenseOrgToggle]
|
400
|
+
def post_license_toggle(feature_name, opts = {})
|
401
|
+
data, _status_code, _headers = post_license_toggle_with_http_info(feature_name, opts)
|
402
|
+
return data
|
403
|
+
end
|
404
|
+
|
405
|
+
# Switch PureCloud license feature toggle value.
|
406
|
+
#
|
407
|
+
# @param feature_name featureName
|
408
|
+
# @param [Hash] opts the optional parameters
|
409
|
+
# @return [Array<(LicenseOrgToggle, Fixnum, Hash)>] LicenseOrgToggle data, response status code and response headers
|
410
|
+
def post_license_toggle_with_http_info(feature_name, opts = {})
|
411
|
+
if @api_client.config.debugging
|
412
|
+
@api_client.config.logger.debug "Calling API: LicenseApi.post_license_toggle ..."
|
413
|
+
end
|
414
|
+
|
415
|
+
|
416
|
+
# verify the required parameter 'feature_name' is set
|
417
|
+
fail ArgumentError, "Missing the required parameter 'feature_name' when calling LicenseApi.post_license_toggle" if feature_name.nil?
|
418
|
+
|
419
|
+
|
420
|
+
|
421
|
+
|
422
|
+
|
423
|
+
# resource path
|
424
|
+
local_var_path = "/api/v2/license/toggles/{featureName}".sub('{format}','json').sub('{' + 'featureName' + '}', feature_name.to_s)
|
425
|
+
|
426
|
+
# query parameters
|
427
|
+
query_params = {}
|
428
|
+
|
429
|
+
# header parameters
|
430
|
+
header_params = {}
|
431
|
+
|
432
|
+
# HTTP header 'Accept' (if needed)
|
433
|
+
local_header_accept = ['application/json']
|
434
|
+
local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
|
435
|
+
|
436
|
+
# HTTP header 'Content-Type'
|
437
|
+
local_header_content_type = ['application/json']
|
438
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
|
439
|
+
|
440
|
+
# form parameters
|
441
|
+
form_params = {}
|
442
|
+
|
443
|
+
# http body (model)
|
444
|
+
post_body = nil
|
445
|
+
|
446
|
+
auth_names = ['PureCloud Auth']
|
447
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
|
448
|
+
:header_params => header_params,
|
449
|
+
:query_params => query_params,
|
450
|
+
:form_params => form_params,
|
451
|
+
:body => post_body,
|
452
|
+
:auth_names => auth_names,
|
453
|
+
:return_type => 'LicenseOrgToggle')
|
454
|
+
if @api_client.config.debugging
|
455
|
+
@api_client.config.logger.debug "API called: LicenseApi#post_license_toggle\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
456
|
+
end
|
457
|
+
return data, status_code, headers
|
458
|
+
end
|
459
|
+
|
330
460
|
# Fetch user licenses in a batch.
|
331
461
|
#
|
332
462
|
# @param [Hash] opts the optional parameters
|
@@ -2691,7 +2691,7 @@ module PureCloud
|
|
2691
2691
|
# Update an OutOfOffice
|
2692
2692
|
#
|
2693
2693
|
# @param user_id User ID
|
2694
|
-
# @param body The updated
|
2694
|
+
# @param body The updated OutOffOffice
|
2695
2695
|
# @param [Hash] opts the optional parameters
|
2696
2696
|
# @return [OutOfOffice]
|
2697
2697
|
def put_user_outofoffice(user_id, body, opts = {})
|
@@ -2702,7 +2702,7 @@ module PureCloud
|
|
2702
2702
|
# Update an OutOfOffice
|
2703
2703
|
#
|
2704
2704
|
# @param user_id User ID
|
2705
|
-
# @param body The updated
|
2705
|
+
# @param body The updated OutOffOffice
|
2706
2706
|
# @param [Hash] opts the optional parameters
|
2707
2707
|
# @return [Array<(OutOfOffice, Fixnum, Hash)>] OutOfOffice data, response status code and response headers
|
2708
2708
|
def put_user_outofoffice_with_http_info(user_id, body, opts = {})
|
@@ -24,8 +24,8 @@ module PureCloud
|
|
24
24
|
@api_client = api_client
|
25
25
|
end
|
26
26
|
|
27
|
-
# Delete a message.
|
28
|
-
#
|
27
|
+
# Delete a voicemail message.
|
28
|
+
# A user voicemail can only be deleted by its associated user. A group voicemail can only be deleted by a user that is a member of the group. A queue voicemail can only be deleted by a user with the acd voicemail delete permission.
|
29
29
|
# @param message_id Message ID
|
30
30
|
# @param [Hash] opts the optional parameters
|
31
31
|
# @return [nil]
|
@@ -34,8 +34,8 @@ module PureCloud
|
|
34
34
|
return nil
|
35
35
|
end
|
36
36
|
|
37
|
-
# Delete a message.
|
38
|
-
#
|
37
|
+
# Delete a voicemail message.
|
38
|
+
# A user voicemail can only be deleted by its associated user. A group voicemail can only be deleted by a user that is a member of the group. A queue voicemail can only be deleted by a user with the acd voicemail delete permission.
|
39
39
|
# @param message_id Message ID
|
40
40
|
# @param [Hash] opts the optional parameters
|
41
41
|
# @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers
|
@@ -593,7 +593,7 @@ module PureCloud
|
|
593
593
|
return data, status_code, headers
|
594
594
|
end
|
595
595
|
|
596
|
-
# Get message
|
596
|
+
# Get a voicemail message
|
597
597
|
#
|
598
598
|
# @param message_id Message ID
|
599
599
|
# @param [Hash] opts the optional parameters
|
@@ -604,7 +604,7 @@ module PureCloud
|
|
604
604
|
return data
|
605
605
|
end
|
606
606
|
|
607
|
-
# Get message
|
607
|
+
# Get a voicemail message
|
608
608
|
#
|
609
609
|
# @param message_id Message ID
|
610
610
|
# @param [Hash] opts the optional parameters
|
@@ -667,7 +667,7 @@ module PureCloud
|
|
667
667
|
return data, status_code, headers
|
668
668
|
end
|
669
669
|
|
670
|
-
# Get media playback URI for this message
|
670
|
+
# Get media playback URI for this voicemail message
|
671
671
|
#
|
672
672
|
# @param message_id Message ID
|
673
673
|
# @param [Hash] opts the optional parameters
|
@@ -678,7 +678,7 @@ module PureCloud
|
|
678
678
|
return data
|
679
679
|
end
|
680
680
|
|
681
|
-
# Get media playback URI for this message
|
681
|
+
# Get media playback URI for this voicemail message
|
682
682
|
#
|
683
683
|
# @param message_id Message ID
|
684
684
|
# @param [Hash] opts the optional parameters
|
@@ -1153,6 +1153,81 @@ module PureCloud
|
|
1153
1153
|
return data, status_code, headers
|
1154
1154
|
end
|
1155
1155
|
|
1156
|
+
# Update a voicemail message
|
1157
|
+
# A user voicemail can only be modified by its associated user. A group voicemail can only be modified by a user that is a member of the group. A queue voicemail can only be modified by a participant of the conversation the voicemail is associated with.
|
1158
|
+
# @param message_id Message ID
|
1159
|
+
# @param body VoicemailMessage
|
1160
|
+
# @param [Hash] opts the optional parameters
|
1161
|
+
# @return [VoicemailMessage]
|
1162
|
+
def patch_voicemail_message(message_id, body, opts = {})
|
1163
|
+
data, _status_code, _headers = patch_voicemail_message_with_http_info(message_id, body, opts)
|
1164
|
+
return data
|
1165
|
+
end
|
1166
|
+
|
1167
|
+
# Update a voicemail message
|
1168
|
+
# A user voicemail can only be modified by its associated user. A group voicemail can only be modified by a user that is a member of the group. A queue voicemail can only be modified by a participant of the conversation the voicemail is associated with.
|
1169
|
+
# @param message_id Message ID
|
1170
|
+
# @param body VoicemailMessage
|
1171
|
+
# @param [Hash] opts the optional parameters
|
1172
|
+
# @return [Array<(VoicemailMessage, Fixnum, Hash)>] VoicemailMessage data, response status code and response headers
|
1173
|
+
def patch_voicemail_message_with_http_info(message_id, body, opts = {})
|
1174
|
+
if @api_client.config.debugging
|
1175
|
+
@api_client.config.logger.debug "Calling API: VoicemailApi.patch_voicemail_message ..."
|
1176
|
+
end
|
1177
|
+
|
1178
|
+
|
1179
|
+
# verify the required parameter 'message_id' is set
|
1180
|
+
fail ArgumentError, "Missing the required parameter 'message_id' when calling VoicemailApi.patch_voicemail_message" if message_id.nil?
|
1181
|
+
|
1182
|
+
|
1183
|
+
|
1184
|
+
|
1185
|
+
|
1186
|
+
|
1187
|
+
# verify the required parameter 'body' is set
|
1188
|
+
fail ArgumentError, "Missing the required parameter 'body' when calling VoicemailApi.patch_voicemail_message" if body.nil?
|
1189
|
+
|
1190
|
+
|
1191
|
+
|
1192
|
+
|
1193
|
+
|
1194
|
+
# resource path
|
1195
|
+
local_var_path = "/api/v2/voicemail/messages/{messageId}".sub('{format}','json').sub('{' + 'messageId' + '}', message_id.to_s)
|
1196
|
+
|
1197
|
+
# query parameters
|
1198
|
+
query_params = {}
|
1199
|
+
|
1200
|
+
# header parameters
|
1201
|
+
header_params = {}
|
1202
|
+
|
1203
|
+
# HTTP header 'Accept' (if needed)
|
1204
|
+
local_header_accept = ['application/json']
|
1205
|
+
local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
|
1206
|
+
|
1207
|
+
# HTTP header 'Content-Type'
|
1208
|
+
local_header_content_type = ['application/json']
|
1209
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
|
1210
|
+
|
1211
|
+
# form parameters
|
1212
|
+
form_params = {}
|
1213
|
+
|
1214
|
+
# http body (model)
|
1215
|
+
post_body = @api_client.object_to_http_body(body)
|
1216
|
+
|
1217
|
+
auth_names = ['PureCloud Auth']
|
1218
|
+
data, status_code, headers = @api_client.call_api(:PATCH, local_var_path,
|
1219
|
+
:header_params => header_params,
|
1220
|
+
:query_params => query_params,
|
1221
|
+
:form_params => form_params,
|
1222
|
+
:body => post_body,
|
1223
|
+
:auth_names => auth_names,
|
1224
|
+
:return_type => 'VoicemailMessage')
|
1225
|
+
if @api_client.config.debugging
|
1226
|
+
@api_client.config.logger.debug "API called: VoicemailApi#patch_voicemail_message\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
1227
|
+
end
|
1228
|
+
return data, status_code, headers
|
1229
|
+
end
|
1230
|
+
|
1156
1231
|
# Update a user's voicemail policy
|
1157
1232
|
#
|
1158
1233
|
# @param user_id User ID
|
@@ -1356,8 +1431,8 @@ module PureCloud
|
|
1356
1431
|
return data, status_code, headers
|
1357
1432
|
end
|
1358
1433
|
|
1359
|
-
# Update a message
|
1360
|
-
#
|
1434
|
+
# Update a voicemail message
|
1435
|
+
# A user voicemail can only be modified by its associated user. A group voicemail can only be modified by a user that is a member of the group. A queue voicemail can only be modified by a participant of the conversation the voicemail is associated with.
|
1361
1436
|
# @param message_id Message ID
|
1362
1437
|
# @param body VoicemailMessage
|
1363
1438
|
# @param [Hash] opts the optional parameters
|
@@ -1367,8 +1442,8 @@ module PureCloud
|
|
1367
1442
|
return data
|
1368
1443
|
end
|
1369
1444
|
|
1370
|
-
# Update a message
|
1371
|
-
#
|
1445
|
+
# Update a voicemail message
|
1446
|
+
# A user voicemail can only be modified by its associated user. A group voicemail can only be modified by a user that is a member of the group. A queue voicemail can only be modified by a participant of the conversation the voicemail is associated with.
|
1372
1447
|
# @param message_id Message ID
|
1373
1448
|
# @param body VoicemailMessage
|
1374
1449
|
# @param [Hash] opts the optional parameters
|
@@ -76,7 +76,7 @@ module PureCloud
|
|
76
76
|
http_method = http_method.to_sym.downcase
|
77
77
|
|
78
78
|
header_params = @default_headers.merge(opts[:header_params] || {})
|
79
|
-
header_params['purecloud-sdk'] = '14.
|
79
|
+
header_params['purecloud-sdk'] = '14.1.0'
|
80
80
|
query_params = opts[:query_params] || {}
|
81
81
|
form_params = opts[:form_params] || {}
|
82
82
|
|
@@ -199,7 +199,7 @@ module PureCloud
|
|
199
199
|
|
200
200
|
|
201
201
|
|
202
|
-
allowed_values = ["OnQueueWork", "Break", "Meal", "Meeting", "OffQueueWork", "TimeOff", "Training", "Unavailable"]
|
202
|
+
allowed_values = ["OnQueueWork", "Break", "Meal", "Meeting", "OffQueueWork", "TimeOff", "Training", "Unavailable", "Unscheduled"]
|
203
203
|
if @category && !allowed_values.include?(@category)
|
204
204
|
return false
|
205
205
|
end
|
@@ -244,7 +244,7 @@ module PureCloud
|
|
244
244
|
# Custom attribute writer method checking allowed values (enum).
|
245
245
|
# @param [Object] category Object to be assigned
|
246
246
|
def category=(category)
|
247
|
-
allowed_values = ["OnQueueWork", "Break", "Meal", "Meeting", "OffQueueWork", "TimeOff", "Training", "Unavailable"]
|
247
|
+
allowed_values = ["OnQueueWork", "Break", "Meal", "Meeting", "OffQueueWork", "TimeOff", "Training", "Unavailable", "Unscheduled"]
|
248
248
|
if category && !allowed_values.include?(category)
|
249
249
|
fail ArgumentError, "invalid value for 'category', must be one of #{allowed_values}."
|
250
250
|
end
|
@@ -34,10 +34,10 @@ module PureCloud
|
|
34
34
|
# True if the certificate is expired, false otherwise.
|
35
35
|
attr_accessor :expired
|
36
36
|
|
37
|
-
attr_accessor :signature_valid
|
38
|
-
|
39
37
|
attr_accessor :valid
|
40
38
|
|
39
|
+
attr_accessor :signature_valid
|
40
|
+
|
41
41
|
# Attribute mapping from ruby-style variable name to JSON key.
|
42
42
|
def self.attribute_map
|
43
43
|
{
|
@@ -52,9 +52,9 @@ module PureCloud
|
|
52
52
|
|
53
53
|
:'expired' => :'expired',
|
54
54
|
|
55
|
-
:'
|
55
|
+
:'valid' => :'valid',
|
56
56
|
|
57
|
-
:'
|
57
|
+
:'signature_valid' => :'signatureValid'
|
58
58
|
|
59
59
|
}
|
60
60
|
end
|
@@ -73,9 +73,9 @@ module PureCloud
|
|
73
73
|
|
74
74
|
:'expired' => :'BOOLEAN',
|
75
75
|
|
76
|
-
:'
|
76
|
+
:'valid' => :'BOOLEAN',
|
77
77
|
|
78
|
-
:'
|
78
|
+
:'signature_valid' => :'BOOLEAN'
|
79
79
|
|
80
80
|
}
|
81
81
|
end
|
@@ -134,19 +134,19 @@ module PureCloud
|
|
134
134
|
end
|
135
135
|
|
136
136
|
|
137
|
-
if attributes.has_key?(:'
|
137
|
+
if attributes.has_key?(:'valid')
|
138
138
|
|
139
139
|
|
140
|
-
self.
|
140
|
+
self.valid = attributes[:'valid']
|
141
141
|
|
142
142
|
|
143
143
|
end
|
144
144
|
|
145
145
|
|
146
|
-
if attributes.has_key?(:'
|
146
|
+
if attributes.has_key?(:'signatureValid')
|
147
147
|
|
148
148
|
|
149
|
-
self.
|
149
|
+
self.signature_valid = attributes[:'signatureValid']
|
150
150
|
|
151
151
|
|
152
152
|
end
|
@@ -243,8 +243,8 @@ module PureCloud
|
|
243
243
|
expiration_date == o.expiration_date &&
|
244
244
|
issue_date == o.issue_date &&
|
245
245
|
expired == o.expired &&
|
246
|
-
|
247
|
-
|
246
|
+
valid == o.valid &&
|
247
|
+
signature_valid == o.signature_valid
|
248
248
|
end
|
249
249
|
|
250
250
|
# @see the `==` method
|
@@ -256,7 +256,7 @@ module PureCloud
|
|
256
256
|
# Calculates hash code according to all attributes.
|
257
257
|
# @return [Fixnum] Hash code
|
258
258
|
def hash
|
259
|
-
[issuer, subject, expiration_date, issue_date, expired,
|
259
|
+
[issuer, subject, expiration_date, issue_date, expired, valid, signature_valid].hash
|
260
260
|
end
|
261
261
|
|
262
262
|
# build the object from hash
|