purecloudplatformclientv2 21.0.0 → 22.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/Entity.md +0 -1
- data/docs/GroupProfile.md +18 -0
- data/docs/GroupsApi.md +60 -0
- data/docs/InboundRoute.md +1 -1
- data/docs/JsonNode.md +1 -1
- data/docs/MediaPolicies.md +1 -0
- data/docs/MessageMediaPolicy.md +14 -0
- data/docs/MessageMediaPolicyConditions.md +17 -0
- data/docs/NamedEntity.md +14 -0
- data/docs/OrgOAuthClient.md +1 -1
- data/docs/RoutingApi.md +2 -2
- data/docs/TokenInfo.md +2 -2
- data/docs/UserConversationSummary.md +1 -0
- data/docs/UserExpands.md +19 -0
- data/docs/UserProfile.md +19 -0
- data/docs/UserProfileEntityListing.md +22 -0
- data/docs/UsersApi.md +137 -0
- data/docs/WorkforceManagementApi.md +5 -3
- data/lib/purecloudplatformclientv2.rb +7 -0
- data/lib/purecloudplatformclientv2/api/groups_api.rb +65 -0
- data/lib/purecloudplatformclientv2/api/users_api.rb +200 -0
- data/lib/purecloudplatformclientv2/api/workforce_management_api.rb +14 -1
- data/lib/purecloudplatformclientv2/api_client.rb +1 -1
- data/lib/purecloudplatformclientv2/models/entity.rb +4 -29
- data/lib/purecloudplatformclientv2/models/event_log.rb +2 -2
- data/lib/purecloudplatformclientv2/models/event_message.rb +2 -2
- data/lib/purecloudplatformclientv2/models/group_profile.rb +350 -0
- data/lib/purecloudplatformclientv2/models/inbound_route.rb +7 -7
- data/lib/purecloudplatformclientv2/models/json_node.rb +17 -17
- data/lib/purecloudplatformclientv2/models/media_policies.rb +30 -4
- data/lib/purecloudplatformclientv2/models/message_media_policy.rb +228 -0
- data/lib/purecloudplatformclientv2/models/message_media_policy_conditions.rb +309 -0
- data/lib/purecloudplatformclientv2/models/named_entity.rb +228 -0
- data/lib/purecloudplatformclientv2/models/org_o_auth_client.rb +1 -1
- data/lib/purecloudplatformclientv2/models/token_info.rb +2 -2
- data/lib/purecloudplatformclientv2/models/user_conversation_summary.rb +26 -1
- data/lib/purecloudplatformclientv2/models/user_expands.rb +358 -0
- data/lib/purecloudplatformclientv2/models/user_profile.rb +376 -0
- data/lib/purecloudplatformclientv2/models/user_profile_entity_listing.rb +428 -0
- data/lib/purecloudplatformclientv2/version.rb +1 -1
- metadata +16 -2
@@ -424,8 +424,9 @@ end
|
|
424
424
|
api_instance = PureCloud::WorkforceManagementApi.new
|
425
425
|
|
426
426
|
opts = {
|
427
|
-
page_size:
|
428
|
-
page_number: 1 # Integer |
|
427
|
+
page_size: 56, # Integer |
|
428
|
+
page_number: 1, # Integer |
|
429
|
+
expand: "expand_example" # String |
|
429
430
|
}
|
430
431
|
|
431
432
|
begin
|
@@ -441,8 +442,9 @@ end
|
|
441
442
|
|
442
443
|
Name | Type | Description | Notes
|
443
444
|
------------- | ------------- | ------------- | -------------
|
444
|
-
**page_size** | **Integer**| | [optional]
|
445
|
+
**page_size** | **Integer**| | [optional] |
|
445
446
|
**page_number** | **Integer**| | [optional] [default to 1] |
|
447
|
+
**expand** | **String**| | [optional] <br />**Values**: details |
|
446
448
|
{: class="table table-striped"}
|
447
449
|
|
448
450
|
|
@@ -544,6 +544,7 @@ require 'purecloudplatformclientv2/models/group'
|
|
544
544
|
require 'purecloudplatformclientv2/models/group_contact'
|
545
545
|
require 'purecloudplatformclientv2/models/group_entity_listing'
|
546
546
|
require 'purecloudplatformclientv2/models/group_members_update'
|
547
|
+
require 'purecloudplatformclientv2/models/group_profile'
|
547
548
|
require 'purecloudplatformclientv2/models/group_search_criteria'
|
548
549
|
require 'purecloudplatformclientv2/models/group_search_request'
|
549
550
|
require 'purecloudplatformclientv2/models/group_update'
|
@@ -664,9 +665,12 @@ require 'purecloudplatformclientv2/models/message_conversation_notification_part
|
|
664
665
|
require 'purecloudplatformclientv2/models/message_conversation_notification_uri_reference'
|
665
666
|
require 'purecloudplatformclientv2/models/message_conversation_notification_wrapup'
|
666
667
|
require 'purecloudplatformclientv2/models/message_details'
|
668
|
+
require 'purecloudplatformclientv2/models/message_media_policy'
|
669
|
+
require 'purecloudplatformclientv2/models/message_media_policy_conditions'
|
667
670
|
require 'purecloudplatformclientv2/models/meta_data'
|
668
671
|
require 'purecloudplatformclientv2/models/metabase'
|
669
672
|
require 'purecloudplatformclientv2/models/metered_evaluation_assignment'
|
673
|
+
require 'purecloudplatformclientv2/models/named_entity'
|
670
674
|
require 'purecloudplatformclientv2/models/note'
|
671
675
|
require 'purecloudplatformclientv2/models/note_listing'
|
672
676
|
require 'purecloudplatformclientv2/models/number'
|
@@ -987,6 +991,7 @@ require 'purecloudplatformclientv2/models/user_conversation_summary_notification
|
|
987
991
|
require 'purecloudplatformclientv2/models/user_details_query'
|
988
992
|
require 'purecloudplatformclientv2/models/user_device'
|
989
993
|
require 'purecloudplatformclientv2/models/user_entity_listing'
|
994
|
+
require 'purecloudplatformclientv2/models/user_expands'
|
990
995
|
require 'purecloudplatformclientv2/models/user_image'
|
991
996
|
require 'purecloudplatformclientv2/models/user_list_schedule_request_body'
|
992
997
|
require 'purecloudplatformclientv2/models/user_me'
|
@@ -994,6 +999,8 @@ require 'purecloudplatformclientv2/models/user_param'
|
|
994
999
|
require 'purecloudplatformclientv2/models/user_presence'
|
995
1000
|
require 'purecloudplatformclientv2/models/user_presence_notification'
|
996
1001
|
require 'purecloudplatformclientv2/models/user_presence_notification_organization_presence'
|
1002
|
+
require 'purecloudplatformclientv2/models/user_profile'
|
1003
|
+
require 'purecloudplatformclientv2/models/user_profile_entity_listing'
|
997
1004
|
require 'purecloudplatformclientv2/models/user_queue'
|
998
1005
|
require 'purecloudplatformclientv2/models/user_queue_entity_listing'
|
999
1006
|
require 'purecloudplatformclientv2/models/user_recording'
|
@@ -405,6 +405,71 @@ module PureCloud
|
|
405
405
|
return data, status_code, headers
|
406
406
|
end
|
407
407
|
|
408
|
+
# Get group profile
|
409
|
+
#
|
410
|
+
# @param group_id groupId
|
411
|
+
# @param [Hash] opts the optional parameters
|
412
|
+
# @return [GroupProfile]
|
413
|
+
def get_group_profile(group_id, opts = {})
|
414
|
+
data, _status_code, _headers = get_group_profile_with_http_info(group_id, opts)
|
415
|
+
return data
|
416
|
+
end
|
417
|
+
|
418
|
+
# Get group profile
|
419
|
+
#
|
420
|
+
# @param group_id groupId
|
421
|
+
# @param [Hash] opts the optional parameters
|
422
|
+
# @return [Array<(GroupProfile, Fixnum, Hash)>] GroupProfile data, response status code and response headers
|
423
|
+
def get_group_profile_with_http_info(group_id, opts = {})
|
424
|
+
if @api_client.config.debugging
|
425
|
+
@api_client.config.logger.debug "Calling API: GroupsApi.get_group_profile ..."
|
426
|
+
end
|
427
|
+
|
428
|
+
|
429
|
+
# verify the required parameter 'group_id' is set
|
430
|
+
fail ArgumentError, "Missing the required parameter 'group_id' when calling GroupsApi.get_group_profile" if group_id.nil?
|
431
|
+
|
432
|
+
|
433
|
+
|
434
|
+
|
435
|
+
|
436
|
+
# resource path
|
437
|
+
local_var_path = "/api/v2/groups/{groupId}/profile".sub('{format}','json').sub('{' + 'groupId' + '}', group_id.to_s)
|
438
|
+
|
439
|
+
# query parameters
|
440
|
+
query_params = {}
|
441
|
+
|
442
|
+
# header parameters
|
443
|
+
header_params = {}
|
444
|
+
|
445
|
+
# HTTP header 'Accept' (if needed)
|
446
|
+
local_header_accept = ['application/json']
|
447
|
+
local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
|
448
|
+
|
449
|
+
# HTTP header 'Content-Type'
|
450
|
+
local_header_content_type = ['application/json']
|
451
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
|
452
|
+
|
453
|
+
# form parameters
|
454
|
+
form_params = {}
|
455
|
+
|
456
|
+
# http body (model)
|
457
|
+
post_body = nil
|
458
|
+
|
459
|
+
auth_names = ['PureCloud Auth']
|
460
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
|
461
|
+
:header_params => header_params,
|
462
|
+
:query_params => query_params,
|
463
|
+
:form_params => form_params,
|
464
|
+
:body => post_body,
|
465
|
+
:auth_names => auth_names,
|
466
|
+
:return_type => 'GroupProfile')
|
467
|
+
if @api_client.config.debugging
|
468
|
+
@api_client.config.logger.debug "API called: GroupsApi#get_group_profile\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
469
|
+
end
|
470
|
+
return data, status_code, headers
|
471
|
+
end
|
472
|
+
|
408
473
|
# Get a group list
|
409
474
|
#
|
410
475
|
# @param [Hash] opts the optional parameters
|
@@ -426,6 +426,132 @@ module PureCloud
|
|
426
426
|
return data, status_code, headers
|
427
427
|
end
|
428
428
|
|
429
|
+
# Get a user profile listing
|
430
|
+
#
|
431
|
+
# @param [Hash] opts the optional parameters
|
432
|
+
# @option opts [Integer] :page_size Page size (default to 25)
|
433
|
+
# @option opts [Integer] :page_number Page number (default to 1)
|
434
|
+
# @option opts [Array<String>] :id id
|
435
|
+
# @option opts [Array<String>] :jid jid
|
436
|
+
# @option opts [String] :sort_order Ascending or descending sort order (default to ASC)
|
437
|
+
# @option opts [Array<String>] :expand Which fields, if any, to expand
|
438
|
+
# @option opts [String] :state Only list users of this state (default to active)
|
439
|
+
# @return [UserProfileEntityListing]
|
440
|
+
def get_profiles_users(opts = {})
|
441
|
+
data, _status_code, _headers = get_profiles_users_with_http_info(opts)
|
442
|
+
return data
|
443
|
+
end
|
444
|
+
|
445
|
+
# Get a user profile listing
|
446
|
+
#
|
447
|
+
# @param [Hash] opts the optional parameters
|
448
|
+
# @option opts [Integer] :page_size Page size
|
449
|
+
# @option opts [Integer] :page_number Page number
|
450
|
+
# @option opts [Array<String>] :id id
|
451
|
+
# @option opts [Array<String>] :jid jid
|
452
|
+
# @option opts [String] :sort_order Ascending or descending sort order
|
453
|
+
# @option opts [Array<String>] :expand Which fields, if any, to expand
|
454
|
+
# @option opts [String] :state Only list users of this state
|
455
|
+
# @return [Array<(UserProfileEntityListing, Fixnum, Hash)>] UserProfileEntityListing data, response status code and response headers
|
456
|
+
def get_profiles_users_with_http_info(opts = {})
|
457
|
+
if @api_client.config.debugging
|
458
|
+
@api_client.config.logger.debug "Calling API: UsersApi.get_profiles_users ..."
|
459
|
+
end
|
460
|
+
|
461
|
+
|
462
|
+
|
463
|
+
|
464
|
+
|
465
|
+
|
466
|
+
|
467
|
+
|
468
|
+
|
469
|
+
|
470
|
+
|
471
|
+
|
472
|
+
|
473
|
+
|
474
|
+
|
475
|
+
|
476
|
+
|
477
|
+
|
478
|
+
|
479
|
+
|
480
|
+
|
481
|
+
|
482
|
+
|
483
|
+
|
484
|
+
|
485
|
+
|
486
|
+
|
487
|
+
|
488
|
+
if opts[:'sort_order'] && !['ascending', 'descending'].include?(opts[:'sort_order'])
|
489
|
+
fail ArgumentError, 'invalid value for "sort_order", must be one of ascending, descending'
|
490
|
+
end
|
491
|
+
|
492
|
+
|
493
|
+
|
494
|
+
|
495
|
+
|
496
|
+
|
497
|
+
|
498
|
+
|
499
|
+
|
500
|
+
|
501
|
+
|
502
|
+
|
503
|
+
|
504
|
+
if opts[:'state'] && !['active', 'deleted'].include?(opts[:'state'])
|
505
|
+
fail ArgumentError, 'invalid value for "state", must be one of active, deleted'
|
506
|
+
end
|
507
|
+
|
508
|
+
|
509
|
+
|
510
|
+
|
511
|
+
# resource path
|
512
|
+
local_var_path = "/api/v2/profiles/users".sub('{format}','json')
|
513
|
+
|
514
|
+
# query parameters
|
515
|
+
query_params = {}
|
516
|
+
query_params[:'pageSize'] = opts[:'page_size'] if opts[:'page_size']
|
517
|
+
query_params[:'pageNumber'] = opts[:'page_number'] if opts[:'page_number']
|
518
|
+
query_params[:'id'] = @api_client.build_collection_param(opts[:'id'], :multi) if opts[:'id']
|
519
|
+
query_params[:'jid'] = @api_client.build_collection_param(opts[:'jid'], :multi) if opts[:'jid']
|
520
|
+
query_params[:'sortOrder'] = opts[:'sort_order'] if opts[:'sort_order']
|
521
|
+
query_params[:'expand'] = @api_client.build_collection_param(opts[:'expand'], :multi) if opts[:'expand']
|
522
|
+
query_params[:'state'] = opts[:'state'] if opts[:'state']
|
523
|
+
|
524
|
+
# header parameters
|
525
|
+
header_params = {}
|
526
|
+
|
527
|
+
# HTTP header 'Accept' (if needed)
|
528
|
+
local_header_accept = ['application/json']
|
529
|
+
local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
|
530
|
+
|
531
|
+
# HTTP header 'Content-Type'
|
532
|
+
local_header_content_type = ['application/json']
|
533
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
|
534
|
+
|
535
|
+
# form parameters
|
536
|
+
form_params = {}
|
537
|
+
|
538
|
+
# http body (model)
|
539
|
+
post_body = nil
|
540
|
+
|
541
|
+
auth_names = ['PureCloud Auth']
|
542
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
|
543
|
+
:header_params => header_params,
|
544
|
+
:query_params => query_params,
|
545
|
+
:form_params => form_params,
|
546
|
+
:body => post_body,
|
547
|
+
:auth_names => auth_names,
|
548
|
+
:return_type => 'UserProfileEntityListing')
|
549
|
+
if @api_client.config.debugging
|
550
|
+
@api_client.config.logger.debug "API called: UsersApi#get_profiles_users\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
551
|
+
end
|
552
|
+
return data, status_code, headers
|
553
|
+
end
|
554
|
+
|
429
555
|
# Get user.
|
430
556
|
#
|
431
557
|
# @param user_id User ID
|
@@ -967,6 +1093,80 @@ module PureCloud
|
|
967
1093
|
return data, status_code, headers
|
968
1094
|
end
|
969
1095
|
|
1096
|
+
# Get user profile
|
1097
|
+
#
|
1098
|
+
# @param user_id userId
|
1099
|
+
# @param [Hash] opts the optional parameters
|
1100
|
+
# @option opts [Array<String>] :expand Which fields, if any, to expand
|
1101
|
+
# @return [UserProfile]
|
1102
|
+
def get_user_profile(user_id, opts = {})
|
1103
|
+
data, _status_code, _headers = get_user_profile_with_http_info(user_id, opts)
|
1104
|
+
return data
|
1105
|
+
end
|
1106
|
+
|
1107
|
+
# Get user profile
|
1108
|
+
#
|
1109
|
+
# @param user_id userId
|
1110
|
+
# @param [Hash] opts the optional parameters
|
1111
|
+
# @option opts [Array<String>] :expand Which fields, if any, to expand
|
1112
|
+
# @return [Array<(UserProfile, Fixnum, Hash)>] UserProfile data, response status code and response headers
|
1113
|
+
def get_user_profile_with_http_info(user_id, opts = {})
|
1114
|
+
if @api_client.config.debugging
|
1115
|
+
@api_client.config.logger.debug "Calling API: UsersApi.get_user_profile ..."
|
1116
|
+
end
|
1117
|
+
|
1118
|
+
|
1119
|
+
# verify the required parameter 'user_id' is set
|
1120
|
+
fail ArgumentError, "Missing the required parameter 'user_id' when calling UsersApi.get_user_profile" if user_id.nil?
|
1121
|
+
|
1122
|
+
|
1123
|
+
|
1124
|
+
|
1125
|
+
|
1126
|
+
|
1127
|
+
|
1128
|
+
|
1129
|
+
|
1130
|
+
|
1131
|
+
|
1132
|
+
# resource path
|
1133
|
+
local_var_path = "/api/v2/users/{userId}/profile".sub('{format}','json').sub('{' + 'userId' + '}', user_id.to_s)
|
1134
|
+
|
1135
|
+
# query parameters
|
1136
|
+
query_params = {}
|
1137
|
+
query_params[:'expand'] = @api_client.build_collection_param(opts[:'expand'], :multi) if opts[:'expand']
|
1138
|
+
|
1139
|
+
# header parameters
|
1140
|
+
header_params = {}
|
1141
|
+
|
1142
|
+
# HTTP header 'Accept' (if needed)
|
1143
|
+
local_header_accept = ['application/json']
|
1144
|
+
local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
|
1145
|
+
|
1146
|
+
# HTTP header 'Content-Type'
|
1147
|
+
local_header_content_type = ['application/json']
|
1148
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
|
1149
|
+
|
1150
|
+
# form parameters
|
1151
|
+
form_params = {}
|
1152
|
+
|
1153
|
+
# http body (model)
|
1154
|
+
post_body = nil
|
1155
|
+
|
1156
|
+
auth_names = ['PureCloud Auth']
|
1157
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
|
1158
|
+
:header_params => header_params,
|
1159
|
+
:query_params => query_params,
|
1160
|
+
:form_params => form_params,
|
1161
|
+
:body => post_body,
|
1162
|
+
:auth_names => auth_names,
|
1163
|
+
:return_type => 'UserProfile')
|
1164
|
+
if @api_client.config.debugging
|
1165
|
+
@api_client.config.logger.debug "API called: UsersApi#get_user_profile\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
1166
|
+
end
|
1167
|
+
return data, status_code, headers
|
1168
|
+
end
|
1169
|
+
|
970
1170
|
# List profile skills for a user
|
971
1171
|
#
|
972
1172
|
# @param user_id User ID
|
@@ -468,8 +468,9 @@ module PureCloud
|
|
468
468
|
# Get management units
|
469
469
|
#
|
470
470
|
# @param [Hash] opts the optional parameters
|
471
|
-
# @option opts [Integer] :page_size
|
471
|
+
# @option opts [Integer] :page_size
|
472
472
|
# @option opts [Integer] :page_number (default to 1)
|
473
|
+
# @option opts [String] :expand
|
473
474
|
# @return [ManagementUnitListing]
|
474
475
|
def get_workforcemanagement_managementunits(opts = {})
|
475
476
|
data, _status_code, _headers = get_workforcemanagement_managementunits_with_http_info(opts)
|
@@ -481,6 +482,7 @@ module PureCloud
|
|
481
482
|
# @param [Hash] opts the optional parameters
|
482
483
|
# @option opts [Integer] :page_size
|
483
484
|
# @option opts [Integer] :page_number
|
485
|
+
# @option opts [String] :expand
|
484
486
|
# @return [Array<(ManagementUnitListing, Fixnum, Hash)>] ManagementUnitListing data, response status code and response headers
|
485
487
|
def get_workforcemanagement_managementunits_with_http_info(opts = {})
|
486
488
|
if @api_client.config.debugging
|
@@ -499,6 +501,16 @@ module PureCloud
|
|
499
501
|
|
500
502
|
|
501
503
|
|
504
|
+
|
505
|
+
|
506
|
+
|
507
|
+
if opts[:'expand'] && !['details'].include?(opts[:'expand'])
|
508
|
+
fail ArgumentError, 'invalid value for "expand", must be one of details'
|
509
|
+
end
|
510
|
+
|
511
|
+
|
512
|
+
|
513
|
+
|
502
514
|
# resource path
|
503
515
|
local_var_path = "/api/v2/workforcemanagement/managementunits".sub('{format}','json')
|
504
516
|
|
@@ -506,6 +518,7 @@ module PureCloud
|
|
506
518
|
query_params = {}
|
507
519
|
query_params[:'pageSize'] = opts[:'page_size'] if opts[:'page_size']
|
508
520
|
query_params[:'pageNumber'] = opts[:'page_number'] if opts[:'page_number']
|
521
|
+
query_params[:'expand'] = opts[:'expand'] if opts[:'expand']
|
509
522
|
|
510
523
|
# header parameters
|
511
524
|
header_params = {}
|
@@ -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'] = '
|
79
|
+
header_params['purecloud-sdk'] = '22.0.0'
|
80
80
|
query_params = opts[:query_params] || {}
|
81
81
|
form_params = opts[:form_params] || {}
|
82
82
|
|
@@ -21,15 +21,11 @@ module PureCloud
|
|
21
21
|
# The globally unique identifier for the object.
|
22
22
|
attr_accessor :id
|
23
23
|
|
24
|
-
attr_accessor :name
|
25
|
-
|
26
24
|
# Attribute mapping from ruby-style variable name to JSON key.
|
27
25
|
def self.attribute_map
|
28
26
|
{
|
29
27
|
|
30
|
-
:'id' => :'id'
|
31
|
-
|
32
|
-
:'name' => :'name'
|
28
|
+
:'id' => :'id'
|
33
29
|
|
34
30
|
}
|
35
31
|
end
|
@@ -38,9 +34,7 @@ module PureCloud
|
|
38
34
|
def self.swagger_types
|
39
35
|
{
|
40
36
|
|
41
|
-
:'id' => :'String'
|
42
|
-
|
43
|
-
:'name' => :'String'
|
37
|
+
:'id' => :'String'
|
44
38
|
|
45
39
|
}
|
46
40
|
end
|
@@ -63,15 +57,6 @@ module PureCloud
|
|
63
57
|
end
|
64
58
|
|
65
59
|
|
66
|
-
if attributes.has_key?(:'name')
|
67
|
-
|
68
|
-
|
69
|
-
self.name = attributes[:'name']
|
70
|
-
|
71
|
-
|
72
|
-
end
|
73
|
-
|
74
|
-
|
75
60
|
end
|
76
61
|
|
77
62
|
# Show invalid properties with the reasons. Usually used together with valid?
|
@@ -91,10 +76,6 @@ module PureCloud
|
|
91
76
|
|
92
77
|
|
93
78
|
|
94
|
-
|
95
|
-
|
96
|
-
|
97
|
-
|
98
79
|
end
|
99
80
|
|
100
81
|
|
@@ -103,18 +84,12 @@ module PureCloud
|
|
103
84
|
|
104
85
|
|
105
86
|
|
106
|
-
|
107
|
-
|
108
|
-
|
109
|
-
|
110
|
-
|
111
87
|
# Checks equality by comparing each attribute.
|
112
88
|
# @param [Object] Object to be compared
|
113
89
|
def ==(o)
|
114
90
|
return true if self.equal?(o)
|
115
91
|
self.class == o.class &&
|
116
|
-
id == o.id
|
117
|
-
name == o.name
|
92
|
+
id == o.id
|
118
93
|
end
|
119
94
|
|
120
95
|
# @see the `==` method
|
@@ -126,7 +101,7 @@ module PureCloud
|
|
126
101
|
# Calculates hash code according to all attributes.
|
127
102
|
# @return [Fixnum] Hash code
|
128
103
|
def hash
|
129
|
-
[id
|
104
|
+
[id].hash
|
130
105
|
end
|
131
106
|
|
132
107
|
# build the object from hash
|