docusign_rooms 1.0.0.beta
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/CHANGELOG.md +66 -0
- data/Gemfile +7 -0
- data/Gemfile.lock +71 -0
- data/LICENSE +21 -0
- data/README.md +80 -0
- data/Rakefile +8 -0
- data/docusign_rooms-1.0.0.pre.alpha.gem +0 -0
- data/docusign_rooms.gemspec +45 -0
- data/git_push.sh +55 -0
- data/lib/.DS_Store +0 -0
- data/lib/docusign_rooms.rb +193 -0
- data/lib/docusign_rooms/.DS_Store +0 -0
- data/lib/docusign_rooms/api/accounts_api.rb +73 -0
- data/lib/docusign_rooms/api/activity_types_api.rb +69 -0
- data/lib/docusign_rooms/api/closing_statuses_api.rb +69 -0
- data/lib/docusign_rooms/api/contact_sides_api.rb +69 -0
- data/lib/docusign_rooms/api/countries_api.rb +69 -0
- data/lib/docusign_rooms/api/currencies_api.rb +69 -0
- data/lib/docusign_rooms/api/documents_api.rb +200 -0
- data/lib/docusign_rooms/api/e_sign_permission_profiles_api.rb +73 -0
- data/lib/docusign_rooms/api/external_form_fill_sessions_api.rb +79 -0
- data/lib/docusign_rooms/api/fields_api.rb +92 -0
- data/lib/docusign_rooms/api/financing_types_api.rb +69 -0
- data/lib/docusign_rooms/api/form_details_api.rb +77 -0
- data/lib/docusign_rooms/api/form_groups_api.rb +89 -0
- data/lib/docusign_rooms/api/form_libraries_api.rb +158 -0
- data/lib/docusign_rooms/api/offices_api.rb +310 -0
- data/lib/docusign_rooms/api/origins_of_leads_api.rb +69 -0
- data/lib/docusign_rooms/api/property_types_api.rb +69 -0
- data/lib/docusign_rooms/api/regions_api.rb +306 -0
- data/lib/docusign_rooms/api/roles_api.rb +328 -0
- data/lib/docusign_rooms/api/room_contact_types_api.rb +69 -0
- data/lib/docusign_rooms/api/room_folders_api.rb +93 -0
- data/lib/docusign_rooms/api/room_templates_api.rb +97 -0
- data/lib/docusign_rooms/api/rooms_api.rb +1146 -0
- data/lib/docusign_rooms/api/seller_decision_types_api.rb +69 -0
- data/lib/docusign_rooms/api/special_circumstance_types_api.rb +69 -0
- data/lib/docusign_rooms/api/states_api.rb +69 -0
- data/lib/docusign_rooms/api/task_date_types_api.rb +69 -0
- data/lib/docusign_rooms/api/task_list_templates_api.rb +89 -0
- data/lib/docusign_rooms/api/task_lists_api.rb +188 -0
- data/lib/docusign_rooms/api/task_responsibility_types_api.rb +69 -0
- data/lib/docusign_rooms/api/task_statuses_api.rb +69 -0
- data/lib/docusign_rooms/api/time_zones_api.rb +69 -0
- data/lib/docusign_rooms/api/transaction_sides_api.rb +69 -0
- data/lib/docusign_rooms/api/users_api.rb +908 -0
- data/lib/docusign_rooms/client/.DS_Store +0 -0
- data/lib/docusign_rooms/client/api_client.rb +590 -0
- data/lib/docusign_rooms/client/api_error.rb +37 -0
- data/lib/docusign_rooms/client/auth/oauth.rb +1061 -0
- data/lib/docusign_rooms/configuration.rb +202 -0
- data/lib/docusign_rooms/models/account_summary.rb +262 -0
- data/lib/docusign_rooms/models/activity_type.rb +192 -0
- data/lib/docusign_rooms/models/api_error.rb +192 -0
- data/lib/docusign_rooms/models/assignable_roles.rb +239 -0
- data/lib/docusign_rooms/models/classic_admin_to_invite.rb +216 -0
- data/lib/docusign_rooms/models/classic_agent_to_invite.rb +240 -0
- data/lib/docusign_rooms/models/classic_manager_permissions.rb +291 -0
- data/lib/docusign_rooms/models/classic_manager_to_invite.rb +338 -0
- data/lib/docusign_rooms/models/closing_status.rb +192 -0
- data/lib/docusign_rooms/models/contact_side.rb +192 -0
- data/lib/docusign_rooms/models/country.rb +192 -0
- data/lib/docusign_rooms/models/currency.rb +192 -0
- data/lib/docusign_rooms/models/custom_data.rb +192 -0
- data/lib/docusign_rooms/models/depends_on.rb +192 -0
- data/lib/docusign_rooms/models/designated_office.rb +188 -0
- data/lib/docusign_rooms/models/designated_region.rb +188 -0
- data/lib/docusign_rooms/models/document.rb +265 -0
- data/lib/docusign_rooms/models/document_user.rb +291 -0
- data/lib/docusign_rooms/models/document_user_for_create.rb +188 -0
- data/lib/docusign_rooms/models/e_sign_account_role_settings.rb +183 -0
- data/lib/docusign_rooms/models/e_sign_permission_profile.rb +201 -0
- data/lib/docusign_rooms/models/e_sign_permission_profile_list.rb +185 -0
- data/lib/docusign_rooms/models/external_form_fill_session.rb +183 -0
- data/lib/docusign_rooms/models/external_form_fill_session_for_create.rb +211 -0
- data/lib/docusign_rooms/models/field.rb +248 -0
- data/lib/docusign_rooms/models/field_configuration.rb +259 -0
- data/lib/docusign_rooms/models/field_data.rb +185 -0
- data/lib/docusign_rooms/models/field_data_for_create.rb +185 -0
- data/lib/docusign_rooms/models/field_data_for_update.rb +185 -0
- data/lib/docusign_rooms/models/field_set.rb +203 -0
- data/lib/docusign_rooms/models/financing_type.rb +192 -0
- data/lib/docusign_rooms/models/form_details.rb +246 -0
- data/lib/docusign_rooms/models/form_for_add.rb +188 -0
- data/lib/docusign_rooms/models/form_group_summary.rb +201 -0
- data/lib/docusign_rooms/models/form_group_summary_list.rb +230 -0
- data/lib/docusign_rooms/models/form_library_summary.rb +201 -0
- data/lib/docusign_rooms/models/form_library_summary_list.rb +230 -0
- data/lib/docusign_rooms/models/form_summary.rb +201 -0
- data/lib/docusign_rooms/models/form_summary_list.rb +230 -0
- data/lib/docusign_rooms/models/global_activity_types.rb +185 -0
- data/lib/docusign_rooms/models/global_closing_statuses.rb +185 -0
- data/lib/docusign_rooms/models/global_contact_sides.rb +185 -0
- data/lib/docusign_rooms/models/global_countries.rb +185 -0
- data/lib/docusign_rooms/models/global_currencies.rb +185 -0
- data/lib/docusign_rooms/models/global_financing_types.rb +185 -0
- data/lib/docusign_rooms/models/global_origins_of_leads.rb +185 -0
- data/lib/docusign_rooms/models/global_property_types.rb +185 -0
- data/lib/docusign_rooms/models/global_room_contact_types.rb +185 -0
- data/lib/docusign_rooms/models/global_seller_decision_types.rb +185 -0
- data/lib/docusign_rooms/models/global_special_circumstance_types.rb +185 -0
- data/lib/docusign_rooms/models/global_states.rb +185 -0
- data/lib/docusign_rooms/models/global_task_date_types.rb +185 -0
- data/lib/docusign_rooms/models/global_task_responsibility_types.rb +185 -0
- data/lib/docusign_rooms/models/global_task_statuses.rb +185 -0
- data/lib/docusign_rooms/models/global_time_zones.rb +185 -0
- data/lib/docusign_rooms/models/global_transaction_sides.rb +185 -0
- data/lib/docusign_rooms/models/locked_out_details.rb +188 -0
- data/lib/docusign_rooms/models/nullable_field_data.rb +185 -0
- data/lib/docusign_rooms/models/nullable_permissions.rb +660 -0
- data/lib/docusign_rooms/models/office.rb +287 -0
- data/lib/docusign_rooms/models/office_for_create.rb +269 -0
- data/lib/docusign_rooms/models/office_reference_count.rb +192 -0
- data/lib/docusign_rooms/models/office_reference_count_list.rb +185 -0
- data/lib/docusign_rooms/models/office_summary.rb +282 -0
- data/lib/docusign_rooms/models/office_summary_list.rb +230 -0
- data/lib/docusign_rooms/models/origin_of_lead.rb +192 -0
- data/lib/docusign_rooms/models/permissions.rb +660 -0
- data/lib/docusign_rooms/models/property_type.rb +192 -0
- data/lib/docusign_rooms/models/region.rb +206 -0
- data/lib/docusign_rooms/models/region_reference_count.rb +192 -0
- data/lib/docusign_rooms/models/region_reference_count_list.rb +185 -0
- data/lib/docusign_rooms/models/region_summary.rb +201 -0
- data/lib/docusign_rooms/models/region_summary_list.rb +230 -0
- data/lib/docusign_rooms/models/role.rb +246 -0
- data/lib/docusign_rooms/models/role_for_create.rb +201 -0
- data/lib/docusign_rooms/models/role_for_update.rb +201 -0
- data/lib/docusign_rooms/models/role_summary.rb +228 -0
- data/lib/docusign_rooms/models/role_summary_list.rb +230 -0
- data/lib/docusign_rooms/models/room.rb +282 -0
- data/lib/docusign_rooms/models/room_contact_type.rb +192 -0
- data/lib/docusign_rooms/models/room_document.rb +246 -0
- data/lib/docusign_rooms/models/room_document_list.rb +230 -0
- data/lib/docusign_rooms/models/room_folder.rb +201 -0
- data/lib/docusign_rooms/models/room_folder_list.rb +230 -0
- data/lib/docusign_rooms/models/room_for_create.rb +248 -0
- data/lib/docusign_rooms/models/room_invite.rb +240 -0
- data/lib/docusign_rooms/models/room_invite_response.rb +237 -0
- data/lib/docusign_rooms/models/room_picture.rb +183 -0
- data/lib/docusign_rooms/models/room_summary.rb +273 -0
- data/lib/docusign_rooms/models/room_summary_list.rb +230 -0
- data/lib/docusign_rooms/models/room_template.rb +201 -0
- data/lib/docusign_rooms/models/room_templates_summary_list.rb +230 -0
- data/lib/docusign_rooms/models/room_user.rb +246 -0
- data/lib/docusign_rooms/models/room_user_for_update.rb +192 -0
- data/lib/docusign_rooms/models/room_user_removal_detail.rb +183 -0
- data/lib/docusign_rooms/models/room_user_summary.rb +237 -0
- data/lib/docusign_rooms/models/room_users_result.rb +230 -0
- data/lib/docusign_rooms/models/select_list_field_option.rb +201 -0
- data/lib/docusign_rooms/models/seller_decision_type.rb +192 -0
- data/lib/docusign_rooms/models/special_circumstance_type.rb +192 -0
- data/lib/docusign_rooms/models/state.rb +192 -0
- data/lib/docusign_rooms/models/task_date_type.rb +192 -0
- data/lib/docusign_rooms/models/task_list.rb +275 -0
- data/lib/docusign_rooms/models/task_list_for_create.rb +183 -0
- data/lib/docusign_rooms/models/task_list_summary.rb +264 -0
- data/lib/docusign_rooms/models/task_list_summary_list.rb +185 -0
- data/lib/docusign_rooms/models/task_list_template.rb +210 -0
- data/lib/docusign_rooms/models/task_list_template_list.rb +230 -0
- data/lib/docusign_rooms/models/task_responsibility_type.rb +192 -0
- data/lib/docusign_rooms/models/task_status.rb +192 -0
- data/lib/docusign_rooms/models/task_summary.rb +291 -0
- data/lib/docusign_rooms/models/time_zone.rb +192 -0
- data/lib/docusign_rooms/models/transaction_side.rb +192 -0
- data/lib/docusign_rooms/models/user.rb +338 -0
- data/lib/docusign_rooms/models/user_for_update.rb +188 -0
- data/lib/docusign_rooms/models/user_summary.rb +307 -0
- data/lib/docusign_rooms/models/user_summary_list.rb +230 -0
- data/lib/docusign_rooms/models/user_to_invite.rb +337 -0
- data/lib/docusign_rooms/version.rb +14 -0
- data/tests/Gemfile +5 -0
- data/tests/Gemfile.lock +42 -0
- data/tests/docs/Test.pdf +0 -0
- data/tests/docs/private.pem +27 -0
- data/tests/spec/unit_tests_using_jwt_spec.rb +125 -0
- metadata +420 -0
@@ -0,0 +1,660 @@
|
|
1
|
+
=begin
|
2
|
+
#DocuSign Rooms API - v2
|
3
|
+
|
4
|
+
#An API for an integrator to access the features of DocuSign Rooms
|
5
|
+
|
6
|
+
OpenAPI spec version: v2
|
7
|
+
Contact: devcenter@docusign.com
|
8
|
+
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
9
|
+
|
10
|
+
=end
|
11
|
+
|
12
|
+
require 'date'
|
13
|
+
|
14
|
+
module DocuSign_Rooms
|
15
|
+
class NullablePermissions
|
16
|
+
attr_accessor :can_add_users_to_rooms
|
17
|
+
|
18
|
+
attr_accessor :can_create_rooms
|
19
|
+
|
20
|
+
attr_accessor :can_submit_rooms_for_review
|
21
|
+
|
22
|
+
attr_accessor :can_close_rooms
|
23
|
+
|
24
|
+
attr_accessor :can_reopen_rooms
|
25
|
+
|
26
|
+
attr_accessor :can_delete_owned_rooms
|
27
|
+
|
28
|
+
attr_accessor :auto_access_to_rooms
|
29
|
+
|
30
|
+
attr_accessor :can_export_room_activity_details_people
|
31
|
+
|
32
|
+
attr_accessor :is_visible_in_rooms
|
33
|
+
|
34
|
+
attr_accessor :can_copy_room_details
|
35
|
+
|
36
|
+
attr_accessor :can_edit_any_room_role
|
37
|
+
|
38
|
+
attr_accessor :can_edit_invited_room_role
|
39
|
+
|
40
|
+
attr_accessor :can_manage_any_user_room_access
|
41
|
+
|
42
|
+
attr_accessor :can_manage_invited_user_room_access
|
43
|
+
|
44
|
+
attr_accessor :can_view_room_details
|
45
|
+
|
46
|
+
attr_accessor :can_view_and_edit_room_details
|
47
|
+
|
48
|
+
attr_accessor :can_send_room_details_to_lone_wolf
|
49
|
+
|
50
|
+
attr_accessor :can_add_documents
|
51
|
+
|
52
|
+
attr_accessor :can_add_documents_from_form_groups
|
53
|
+
|
54
|
+
attr_accessor :can_add_documents_from_form_libraries
|
55
|
+
|
56
|
+
attr_accessor :documents_viewable_by_others_in_room_from_office
|
57
|
+
|
58
|
+
attr_accessor :documents_auto_owned_by_peers
|
59
|
+
|
60
|
+
attr_accessor :can_delete_owned_documents
|
61
|
+
|
62
|
+
attr_accessor :can_manage_shared_docs
|
63
|
+
|
64
|
+
attr_accessor :can_manage_form_groups
|
65
|
+
|
66
|
+
attr_accessor :can_share_docs_not_owned
|
67
|
+
|
68
|
+
attr_accessor :can_add_tasks_to_any_task_lists
|
69
|
+
|
70
|
+
attr_accessor :can_edit_editable_tasks
|
71
|
+
|
72
|
+
attr_accessor :can_edit_any_tasks
|
73
|
+
|
74
|
+
attr_accessor :can_delete_deletable_tasks
|
75
|
+
|
76
|
+
attr_accessor :can_delete_any_tasks
|
77
|
+
|
78
|
+
attr_accessor :can_apply_task_list
|
79
|
+
|
80
|
+
attr_accessor :can_remove_any_task_list
|
81
|
+
|
82
|
+
attr_accessor :can_submit_task_list
|
83
|
+
|
84
|
+
attr_accessor :can_auto_submit_task_list
|
85
|
+
|
86
|
+
attr_accessor :can_review_task_list
|
87
|
+
|
88
|
+
attr_accessor :can_auto_approve_task_list
|
89
|
+
|
90
|
+
attr_accessor :can_manage_task_templates_for_all_regions_all_offices
|
91
|
+
|
92
|
+
attr_accessor :can_apply_room_templates
|
93
|
+
|
94
|
+
attr_accessor :can_add_tasks_to_rooms
|
95
|
+
|
96
|
+
attr_accessor :can_create_and_manage_packages
|
97
|
+
|
98
|
+
attr_accessor :can_add_member_and_set_role_lower_access_level
|
99
|
+
|
100
|
+
attr_accessor :can_add_member_and_set_role_same_access_level
|
101
|
+
|
102
|
+
attr_accessor :can_change_member_role_lower_access_level
|
103
|
+
|
104
|
+
attr_accessor :can_change_member_role_same_access_level
|
105
|
+
|
106
|
+
attr_accessor :can_manage_member_lower_access_level
|
107
|
+
|
108
|
+
attr_accessor :can_manage_member_same_access_level
|
109
|
+
|
110
|
+
attr_accessor :can_remove_company_member_lower_access_level
|
111
|
+
|
112
|
+
attr_accessor :can_remove_company_member_same_access_level
|
113
|
+
|
114
|
+
attr_accessor :can_manage_account
|
115
|
+
|
116
|
+
attr_accessor :can_manage_logo
|
117
|
+
|
118
|
+
attr_accessor :can_manage_room_details
|
119
|
+
|
120
|
+
attr_accessor :can_manage_room_templates
|
121
|
+
|
122
|
+
attr_accessor :can_manage_integration_settings
|
123
|
+
|
124
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
125
|
+
def self.attribute_map
|
126
|
+
{
|
127
|
+
:'can_add_users_to_rooms' => :'canAddUsersToRooms',
|
128
|
+
:'can_create_rooms' => :'canCreateRooms',
|
129
|
+
:'can_submit_rooms_for_review' => :'canSubmitRoomsForReview',
|
130
|
+
:'can_close_rooms' => :'canCloseRooms',
|
131
|
+
:'can_reopen_rooms' => :'canReopenRooms',
|
132
|
+
:'can_delete_owned_rooms' => :'canDeleteOwnedRooms',
|
133
|
+
:'auto_access_to_rooms' => :'autoAccessToRooms',
|
134
|
+
:'can_export_room_activity_details_people' => :'canExportRoomActivityDetailsPeople',
|
135
|
+
:'is_visible_in_rooms' => :'isVisibleInRooms',
|
136
|
+
:'can_copy_room_details' => :'canCopyRoomDetails',
|
137
|
+
:'can_edit_any_room_role' => :'canEditAnyRoomRole',
|
138
|
+
:'can_edit_invited_room_role' => :'canEditInvitedRoomRole',
|
139
|
+
:'can_manage_any_user_room_access' => :'canManageAnyUserRoomAccess',
|
140
|
+
:'can_manage_invited_user_room_access' => :'canManageInvitedUserRoomAccess',
|
141
|
+
:'can_view_room_details' => :'canViewRoomDetails',
|
142
|
+
:'can_view_and_edit_room_details' => :'canViewAndEditRoomDetails',
|
143
|
+
:'can_send_room_details_to_lone_wolf' => :'canSendRoomDetailsToLoneWolf',
|
144
|
+
:'can_add_documents' => :'canAddDocuments',
|
145
|
+
:'can_add_documents_from_form_groups' => :'canAddDocumentsFromFormGroups',
|
146
|
+
:'can_add_documents_from_form_libraries' => :'canAddDocumentsFromFormLibraries',
|
147
|
+
:'documents_viewable_by_others_in_room_from_office' => :'documentsViewableByOthersInRoomFromOffice',
|
148
|
+
:'documents_auto_owned_by_peers' => :'documentsAutoOwnedByPeers',
|
149
|
+
:'can_delete_owned_documents' => :'canDeleteOwnedDocuments',
|
150
|
+
:'can_manage_shared_docs' => :'canManageSharedDocs',
|
151
|
+
:'can_manage_form_groups' => :'canManageFormGroups',
|
152
|
+
:'can_share_docs_not_owned' => :'canShareDocsNotOwned',
|
153
|
+
:'can_add_tasks_to_any_task_lists' => :'canAddTasksToAnyTaskLists',
|
154
|
+
:'can_edit_editable_tasks' => :'canEditEditableTasks',
|
155
|
+
:'can_edit_any_tasks' => :'canEditAnyTasks',
|
156
|
+
:'can_delete_deletable_tasks' => :'canDeleteDeletableTasks',
|
157
|
+
:'can_delete_any_tasks' => :'canDeleteAnyTasks',
|
158
|
+
:'can_apply_task_list' => :'canApplyTaskList',
|
159
|
+
:'can_remove_any_task_list' => :'canRemoveAnyTaskList',
|
160
|
+
:'can_submit_task_list' => :'canSubmitTaskList',
|
161
|
+
:'can_auto_submit_task_list' => :'canAutoSubmitTaskList',
|
162
|
+
:'can_review_task_list' => :'canReviewTaskList',
|
163
|
+
:'can_auto_approve_task_list' => :'canAutoApproveTaskList',
|
164
|
+
:'can_manage_task_templates_for_all_regions_all_offices' => :'canManageTaskTemplatesForAllRegionsAllOffices',
|
165
|
+
:'can_apply_room_templates' => :'canApplyRoomTemplates',
|
166
|
+
:'can_add_tasks_to_rooms' => :'canAddTasksToRooms',
|
167
|
+
:'can_create_and_manage_packages' => :'canCreateAndManagePackages',
|
168
|
+
:'can_add_member_and_set_role_lower_access_level' => :'canAddMemberAndSetRoleLowerAccessLevel',
|
169
|
+
:'can_add_member_and_set_role_same_access_level' => :'canAddMemberAndSetRoleSameAccessLevel',
|
170
|
+
:'can_change_member_role_lower_access_level' => :'canChangeMemberRoleLowerAccessLevel',
|
171
|
+
:'can_change_member_role_same_access_level' => :'canChangeMemberRoleSameAccessLevel',
|
172
|
+
:'can_manage_member_lower_access_level' => :'canManageMemberLowerAccessLevel',
|
173
|
+
:'can_manage_member_same_access_level' => :'canManageMemberSameAccessLevel',
|
174
|
+
:'can_remove_company_member_lower_access_level' => :'canRemoveCompanyMemberLowerAccessLevel',
|
175
|
+
:'can_remove_company_member_same_access_level' => :'canRemoveCompanyMemberSameAccessLevel',
|
176
|
+
:'can_manage_account' => :'canManageAccount',
|
177
|
+
:'can_manage_logo' => :'canManageLogo',
|
178
|
+
:'can_manage_room_details' => :'canManageRoomDetails',
|
179
|
+
:'can_manage_room_templates' => :'canManageRoomTemplates',
|
180
|
+
:'can_manage_integration_settings' => :'canManageIntegrationSettings'
|
181
|
+
}
|
182
|
+
end
|
183
|
+
|
184
|
+
# Attribute type mapping.
|
185
|
+
def self.swagger_types
|
186
|
+
{
|
187
|
+
:'can_add_users_to_rooms' => :'BOOLEAN',
|
188
|
+
:'can_create_rooms' => :'BOOLEAN',
|
189
|
+
:'can_submit_rooms_for_review' => :'BOOLEAN',
|
190
|
+
:'can_close_rooms' => :'BOOLEAN',
|
191
|
+
:'can_reopen_rooms' => :'BOOLEAN',
|
192
|
+
:'can_delete_owned_rooms' => :'BOOLEAN',
|
193
|
+
:'auto_access_to_rooms' => :'BOOLEAN',
|
194
|
+
:'can_export_room_activity_details_people' => :'BOOLEAN',
|
195
|
+
:'is_visible_in_rooms' => :'BOOLEAN',
|
196
|
+
:'can_copy_room_details' => :'BOOLEAN',
|
197
|
+
:'can_edit_any_room_role' => :'BOOLEAN',
|
198
|
+
:'can_edit_invited_room_role' => :'BOOLEAN',
|
199
|
+
:'can_manage_any_user_room_access' => :'BOOLEAN',
|
200
|
+
:'can_manage_invited_user_room_access' => :'BOOLEAN',
|
201
|
+
:'can_view_room_details' => :'BOOLEAN',
|
202
|
+
:'can_view_and_edit_room_details' => :'BOOLEAN',
|
203
|
+
:'can_send_room_details_to_lone_wolf' => :'BOOLEAN',
|
204
|
+
:'can_add_documents' => :'BOOLEAN',
|
205
|
+
:'can_add_documents_from_form_groups' => :'BOOLEAN',
|
206
|
+
:'can_add_documents_from_form_libraries' => :'BOOLEAN',
|
207
|
+
:'documents_viewable_by_others_in_room_from_office' => :'BOOLEAN',
|
208
|
+
:'documents_auto_owned_by_peers' => :'BOOLEAN',
|
209
|
+
:'can_delete_owned_documents' => :'BOOLEAN',
|
210
|
+
:'can_manage_shared_docs' => :'BOOLEAN',
|
211
|
+
:'can_manage_form_groups' => :'BOOLEAN',
|
212
|
+
:'can_share_docs_not_owned' => :'BOOLEAN',
|
213
|
+
:'can_add_tasks_to_any_task_lists' => :'BOOLEAN',
|
214
|
+
:'can_edit_editable_tasks' => :'BOOLEAN',
|
215
|
+
:'can_edit_any_tasks' => :'BOOLEAN',
|
216
|
+
:'can_delete_deletable_tasks' => :'BOOLEAN',
|
217
|
+
:'can_delete_any_tasks' => :'BOOLEAN',
|
218
|
+
:'can_apply_task_list' => :'BOOLEAN',
|
219
|
+
:'can_remove_any_task_list' => :'BOOLEAN',
|
220
|
+
:'can_submit_task_list' => :'BOOLEAN',
|
221
|
+
:'can_auto_submit_task_list' => :'BOOLEAN',
|
222
|
+
:'can_review_task_list' => :'BOOLEAN',
|
223
|
+
:'can_auto_approve_task_list' => :'BOOLEAN',
|
224
|
+
:'can_manage_task_templates_for_all_regions_all_offices' => :'BOOLEAN',
|
225
|
+
:'can_apply_room_templates' => :'BOOLEAN',
|
226
|
+
:'can_add_tasks_to_rooms' => :'BOOLEAN',
|
227
|
+
:'can_create_and_manage_packages' => :'BOOLEAN',
|
228
|
+
:'can_add_member_and_set_role_lower_access_level' => :'BOOLEAN',
|
229
|
+
:'can_add_member_and_set_role_same_access_level' => :'BOOLEAN',
|
230
|
+
:'can_change_member_role_lower_access_level' => :'BOOLEAN',
|
231
|
+
:'can_change_member_role_same_access_level' => :'BOOLEAN',
|
232
|
+
:'can_manage_member_lower_access_level' => :'BOOLEAN',
|
233
|
+
:'can_manage_member_same_access_level' => :'BOOLEAN',
|
234
|
+
:'can_remove_company_member_lower_access_level' => :'BOOLEAN',
|
235
|
+
:'can_remove_company_member_same_access_level' => :'BOOLEAN',
|
236
|
+
:'can_manage_account' => :'BOOLEAN',
|
237
|
+
:'can_manage_logo' => :'BOOLEAN',
|
238
|
+
:'can_manage_room_details' => :'BOOLEAN',
|
239
|
+
:'can_manage_room_templates' => :'BOOLEAN',
|
240
|
+
:'can_manage_integration_settings' => :'BOOLEAN'
|
241
|
+
}
|
242
|
+
end
|
243
|
+
|
244
|
+
# Initializes the object
|
245
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
246
|
+
def initialize(attributes = {})
|
247
|
+
return unless attributes.is_a?(Hash)
|
248
|
+
|
249
|
+
# convert string to symbol for hash key
|
250
|
+
attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
|
251
|
+
|
252
|
+
if attributes.has_key?(:'canAddUsersToRooms')
|
253
|
+
self.can_add_users_to_rooms = attributes[:'canAddUsersToRooms']
|
254
|
+
end
|
255
|
+
|
256
|
+
if attributes.has_key?(:'canCreateRooms')
|
257
|
+
self.can_create_rooms = attributes[:'canCreateRooms']
|
258
|
+
end
|
259
|
+
|
260
|
+
if attributes.has_key?(:'canSubmitRoomsForReview')
|
261
|
+
self.can_submit_rooms_for_review = attributes[:'canSubmitRoomsForReview']
|
262
|
+
end
|
263
|
+
|
264
|
+
if attributes.has_key?(:'canCloseRooms')
|
265
|
+
self.can_close_rooms = attributes[:'canCloseRooms']
|
266
|
+
end
|
267
|
+
|
268
|
+
if attributes.has_key?(:'canReopenRooms')
|
269
|
+
self.can_reopen_rooms = attributes[:'canReopenRooms']
|
270
|
+
end
|
271
|
+
|
272
|
+
if attributes.has_key?(:'canDeleteOwnedRooms')
|
273
|
+
self.can_delete_owned_rooms = attributes[:'canDeleteOwnedRooms']
|
274
|
+
end
|
275
|
+
|
276
|
+
if attributes.has_key?(:'autoAccessToRooms')
|
277
|
+
self.auto_access_to_rooms = attributes[:'autoAccessToRooms']
|
278
|
+
end
|
279
|
+
|
280
|
+
if attributes.has_key?(:'canExportRoomActivityDetailsPeople')
|
281
|
+
self.can_export_room_activity_details_people = attributes[:'canExportRoomActivityDetailsPeople']
|
282
|
+
end
|
283
|
+
|
284
|
+
if attributes.has_key?(:'isVisibleInRooms')
|
285
|
+
self.is_visible_in_rooms = attributes[:'isVisibleInRooms']
|
286
|
+
end
|
287
|
+
|
288
|
+
if attributes.has_key?(:'canCopyRoomDetails')
|
289
|
+
self.can_copy_room_details = attributes[:'canCopyRoomDetails']
|
290
|
+
end
|
291
|
+
|
292
|
+
if attributes.has_key?(:'canEditAnyRoomRole')
|
293
|
+
self.can_edit_any_room_role = attributes[:'canEditAnyRoomRole']
|
294
|
+
end
|
295
|
+
|
296
|
+
if attributes.has_key?(:'canEditInvitedRoomRole')
|
297
|
+
self.can_edit_invited_room_role = attributes[:'canEditInvitedRoomRole']
|
298
|
+
end
|
299
|
+
|
300
|
+
if attributes.has_key?(:'canManageAnyUserRoomAccess')
|
301
|
+
self.can_manage_any_user_room_access = attributes[:'canManageAnyUserRoomAccess']
|
302
|
+
end
|
303
|
+
|
304
|
+
if attributes.has_key?(:'canManageInvitedUserRoomAccess')
|
305
|
+
self.can_manage_invited_user_room_access = attributes[:'canManageInvitedUserRoomAccess']
|
306
|
+
end
|
307
|
+
|
308
|
+
if attributes.has_key?(:'canViewRoomDetails')
|
309
|
+
self.can_view_room_details = attributes[:'canViewRoomDetails']
|
310
|
+
end
|
311
|
+
|
312
|
+
if attributes.has_key?(:'canViewAndEditRoomDetails')
|
313
|
+
self.can_view_and_edit_room_details = attributes[:'canViewAndEditRoomDetails']
|
314
|
+
end
|
315
|
+
|
316
|
+
if attributes.has_key?(:'canSendRoomDetailsToLoneWolf')
|
317
|
+
self.can_send_room_details_to_lone_wolf = attributes[:'canSendRoomDetailsToLoneWolf']
|
318
|
+
end
|
319
|
+
|
320
|
+
if attributes.has_key?(:'canAddDocuments')
|
321
|
+
self.can_add_documents = attributes[:'canAddDocuments']
|
322
|
+
end
|
323
|
+
|
324
|
+
if attributes.has_key?(:'canAddDocumentsFromFormGroups')
|
325
|
+
self.can_add_documents_from_form_groups = attributes[:'canAddDocumentsFromFormGroups']
|
326
|
+
end
|
327
|
+
|
328
|
+
if attributes.has_key?(:'canAddDocumentsFromFormLibraries')
|
329
|
+
self.can_add_documents_from_form_libraries = attributes[:'canAddDocumentsFromFormLibraries']
|
330
|
+
end
|
331
|
+
|
332
|
+
if attributes.has_key?(:'documentsViewableByOthersInRoomFromOffice')
|
333
|
+
self.documents_viewable_by_others_in_room_from_office = attributes[:'documentsViewableByOthersInRoomFromOffice']
|
334
|
+
end
|
335
|
+
|
336
|
+
if attributes.has_key?(:'documentsAutoOwnedByPeers')
|
337
|
+
self.documents_auto_owned_by_peers = attributes[:'documentsAutoOwnedByPeers']
|
338
|
+
end
|
339
|
+
|
340
|
+
if attributes.has_key?(:'canDeleteOwnedDocuments')
|
341
|
+
self.can_delete_owned_documents = attributes[:'canDeleteOwnedDocuments']
|
342
|
+
end
|
343
|
+
|
344
|
+
if attributes.has_key?(:'canManageSharedDocs')
|
345
|
+
self.can_manage_shared_docs = attributes[:'canManageSharedDocs']
|
346
|
+
end
|
347
|
+
|
348
|
+
if attributes.has_key?(:'canManageFormGroups')
|
349
|
+
self.can_manage_form_groups = attributes[:'canManageFormGroups']
|
350
|
+
end
|
351
|
+
|
352
|
+
if attributes.has_key?(:'canShareDocsNotOwned')
|
353
|
+
self.can_share_docs_not_owned = attributes[:'canShareDocsNotOwned']
|
354
|
+
end
|
355
|
+
|
356
|
+
if attributes.has_key?(:'canAddTasksToAnyTaskLists')
|
357
|
+
self.can_add_tasks_to_any_task_lists = attributes[:'canAddTasksToAnyTaskLists']
|
358
|
+
end
|
359
|
+
|
360
|
+
if attributes.has_key?(:'canEditEditableTasks')
|
361
|
+
self.can_edit_editable_tasks = attributes[:'canEditEditableTasks']
|
362
|
+
end
|
363
|
+
|
364
|
+
if attributes.has_key?(:'canEditAnyTasks')
|
365
|
+
self.can_edit_any_tasks = attributes[:'canEditAnyTasks']
|
366
|
+
end
|
367
|
+
|
368
|
+
if attributes.has_key?(:'canDeleteDeletableTasks')
|
369
|
+
self.can_delete_deletable_tasks = attributes[:'canDeleteDeletableTasks']
|
370
|
+
end
|
371
|
+
|
372
|
+
if attributes.has_key?(:'canDeleteAnyTasks')
|
373
|
+
self.can_delete_any_tasks = attributes[:'canDeleteAnyTasks']
|
374
|
+
end
|
375
|
+
|
376
|
+
if attributes.has_key?(:'canApplyTaskList')
|
377
|
+
self.can_apply_task_list = attributes[:'canApplyTaskList']
|
378
|
+
end
|
379
|
+
|
380
|
+
if attributes.has_key?(:'canRemoveAnyTaskList')
|
381
|
+
self.can_remove_any_task_list = attributes[:'canRemoveAnyTaskList']
|
382
|
+
end
|
383
|
+
|
384
|
+
if attributes.has_key?(:'canSubmitTaskList')
|
385
|
+
self.can_submit_task_list = attributes[:'canSubmitTaskList']
|
386
|
+
end
|
387
|
+
|
388
|
+
if attributes.has_key?(:'canAutoSubmitTaskList')
|
389
|
+
self.can_auto_submit_task_list = attributes[:'canAutoSubmitTaskList']
|
390
|
+
end
|
391
|
+
|
392
|
+
if attributes.has_key?(:'canReviewTaskList')
|
393
|
+
self.can_review_task_list = attributes[:'canReviewTaskList']
|
394
|
+
end
|
395
|
+
|
396
|
+
if attributes.has_key?(:'canAutoApproveTaskList')
|
397
|
+
self.can_auto_approve_task_list = attributes[:'canAutoApproveTaskList']
|
398
|
+
end
|
399
|
+
|
400
|
+
if attributes.has_key?(:'canManageTaskTemplatesForAllRegionsAllOffices')
|
401
|
+
self.can_manage_task_templates_for_all_regions_all_offices = attributes[:'canManageTaskTemplatesForAllRegionsAllOffices']
|
402
|
+
end
|
403
|
+
|
404
|
+
if attributes.has_key?(:'canApplyRoomTemplates')
|
405
|
+
self.can_apply_room_templates = attributes[:'canApplyRoomTemplates']
|
406
|
+
end
|
407
|
+
|
408
|
+
if attributes.has_key?(:'canAddTasksToRooms')
|
409
|
+
self.can_add_tasks_to_rooms = attributes[:'canAddTasksToRooms']
|
410
|
+
end
|
411
|
+
|
412
|
+
if attributes.has_key?(:'canCreateAndManagePackages')
|
413
|
+
self.can_create_and_manage_packages = attributes[:'canCreateAndManagePackages']
|
414
|
+
end
|
415
|
+
|
416
|
+
if attributes.has_key?(:'canAddMemberAndSetRoleLowerAccessLevel')
|
417
|
+
self.can_add_member_and_set_role_lower_access_level = attributes[:'canAddMemberAndSetRoleLowerAccessLevel']
|
418
|
+
end
|
419
|
+
|
420
|
+
if attributes.has_key?(:'canAddMemberAndSetRoleSameAccessLevel')
|
421
|
+
self.can_add_member_and_set_role_same_access_level = attributes[:'canAddMemberAndSetRoleSameAccessLevel']
|
422
|
+
end
|
423
|
+
|
424
|
+
if attributes.has_key?(:'canChangeMemberRoleLowerAccessLevel')
|
425
|
+
self.can_change_member_role_lower_access_level = attributes[:'canChangeMemberRoleLowerAccessLevel']
|
426
|
+
end
|
427
|
+
|
428
|
+
if attributes.has_key?(:'canChangeMemberRoleSameAccessLevel')
|
429
|
+
self.can_change_member_role_same_access_level = attributes[:'canChangeMemberRoleSameAccessLevel']
|
430
|
+
end
|
431
|
+
|
432
|
+
if attributes.has_key?(:'canManageMemberLowerAccessLevel')
|
433
|
+
self.can_manage_member_lower_access_level = attributes[:'canManageMemberLowerAccessLevel']
|
434
|
+
end
|
435
|
+
|
436
|
+
if attributes.has_key?(:'canManageMemberSameAccessLevel')
|
437
|
+
self.can_manage_member_same_access_level = attributes[:'canManageMemberSameAccessLevel']
|
438
|
+
end
|
439
|
+
|
440
|
+
if attributes.has_key?(:'canRemoveCompanyMemberLowerAccessLevel')
|
441
|
+
self.can_remove_company_member_lower_access_level = attributes[:'canRemoveCompanyMemberLowerAccessLevel']
|
442
|
+
end
|
443
|
+
|
444
|
+
if attributes.has_key?(:'canRemoveCompanyMemberSameAccessLevel')
|
445
|
+
self.can_remove_company_member_same_access_level = attributes[:'canRemoveCompanyMemberSameAccessLevel']
|
446
|
+
end
|
447
|
+
|
448
|
+
if attributes.has_key?(:'canManageAccount')
|
449
|
+
self.can_manage_account = attributes[:'canManageAccount']
|
450
|
+
end
|
451
|
+
|
452
|
+
if attributes.has_key?(:'canManageLogo')
|
453
|
+
self.can_manage_logo = attributes[:'canManageLogo']
|
454
|
+
end
|
455
|
+
|
456
|
+
if attributes.has_key?(:'canManageRoomDetails')
|
457
|
+
self.can_manage_room_details = attributes[:'canManageRoomDetails']
|
458
|
+
end
|
459
|
+
|
460
|
+
if attributes.has_key?(:'canManageRoomTemplates')
|
461
|
+
self.can_manage_room_templates = attributes[:'canManageRoomTemplates']
|
462
|
+
end
|
463
|
+
|
464
|
+
if attributes.has_key?(:'canManageIntegrationSettings')
|
465
|
+
self.can_manage_integration_settings = attributes[:'canManageIntegrationSettings']
|
466
|
+
end
|
467
|
+
end
|
468
|
+
|
469
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
470
|
+
# @return Array for valid properties with the reasons
|
471
|
+
def list_invalid_properties
|
472
|
+
invalid_properties = Array.new
|
473
|
+
invalid_properties
|
474
|
+
end
|
475
|
+
|
476
|
+
# Check to see if the all the properties in the model are valid
|
477
|
+
# @return true if the model is valid
|
478
|
+
def valid?
|
479
|
+
true
|
480
|
+
end
|
481
|
+
|
482
|
+
# Checks equality by comparing each attribute.
|
483
|
+
# @param [Object] Object to be compared
|
484
|
+
def ==(o)
|
485
|
+
return true if self.equal?(o)
|
486
|
+
self.class == o.class &&
|
487
|
+
can_add_users_to_rooms == o.can_add_users_to_rooms &&
|
488
|
+
can_create_rooms == o.can_create_rooms &&
|
489
|
+
can_submit_rooms_for_review == o.can_submit_rooms_for_review &&
|
490
|
+
can_close_rooms == o.can_close_rooms &&
|
491
|
+
can_reopen_rooms == o.can_reopen_rooms &&
|
492
|
+
can_delete_owned_rooms == o.can_delete_owned_rooms &&
|
493
|
+
auto_access_to_rooms == o.auto_access_to_rooms &&
|
494
|
+
can_export_room_activity_details_people == o.can_export_room_activity_details_people &&
|
495
|
+
is_visible_in_rooms == o.is_visible_in_rooms &&
|
496
|
+
can_copy_room_details == o.can_copy_room_details &&
|
497
|
+
can_edit_any_room_role == o.can_edit_any_room_role &&
|
498
|
+
can_edit_invited_room_role == o.can_edit_invited_room_role &&
|
499
|
+
can_manage_any_user_room_access == o.can_manage_any_user_room_access &&
|
500
|
+
can_manage_invited_user_room_access == o.can_manage_invited_user_room_access &&
|
501
|
+
can_view_room_details == o.can_view_room_details &&
|
502
|
+
can_view_and_edit_room_details == o.can_view_and_edit_room_details &&
|
503
|
+
can_send_room_details_to_lone_wolf == o.can_send_room_details_to_lone_wolf &&
|
504
|
+
can_add_documents == o.can_add_documents &&
|
505
|
+
can_add_documents_from_form_groups == o.can_add_documents_from_form_groups &&
|
506
|
+
can_add_documents_from_form_libraries == o.can_add_documents_from_form_libraries &&
|
507
|
+
documents_viewable_by_others_in_room_from_office == o.documents_viewable_by_others_in_room_from_office &&
|
508
|
+
documents_auto_owned_by_peers == o.documents_auto_owned_by_peers &&
|
509
|
+
can_delete_owned_documents == o.can_delete_owned_documents &&
|
510
|
+
can_manage_shared_docs == o.can_manage_shared_docs &&
|
511
|
+
can_manage_form_groups == o.can_manage_form_groups &&
|
512
|
+
can_share_docs_not_owned == o.can_share_docs_not_owned &&
|
513
|
+
can_add_tasks_to_any_task_lists == o.can_add_tasks_to_any_task_lists &&
|
514
|
+
can_edit_editable_tasks == o.can_edit_editable_tasks &&
|
515
|
+
can_edit_any_tasks == o.can_edit_any_tasks &&
|
516
|
+
can_delete_deletable_tasks == o.can_delete_deletable_tasks &&
|
517
|
+
can_delete_any_tasks == o.can_delete_any_tasks &&
|
518
|
+
can_apply_task_list == o.can_apply_task_list &&
|
519
|
+
can_remove_any_task_list == o.can_remove_any_task_list &&
|
520
|
+
can_submit_task_list == o.can_submit_task_list &&
|
521
|
+
can_auto_submit_task_list == o.can_auto_submit_task_list &&
|
522
|
+
can_review_task_list == o.can_review_task_list &&
|
523
|
+
can_auto_approve_task_list == o.can_auto_approve_task_list &&
|
524
|
+
can_manage_task_templates_for_all_regions_all_offices == o.can_manage_task_templates_for_all_regions_all_offices &&
|
525
|
+
can_apply_room_templates == o.can_apply_room_templates &&
|
526
|
+
can_add_tasks_to_rooms == o.can_add_tasks_to_rooms &&
|
527
|
+
can_create_and_manage_packages == o.can_create_and_manage_packages &&
|
528
|
+
can_add_member_and_set_role_lower_access_level == o.can_add_member_and_set_role_lower_access_level &&
|
529
|
+
can_add_member_and_set_role_same_access_level == o.can_add_member_and_set_role_same_access_level &&
|
530
|
+
can_change_member_role_lower_access_level == o.can_change_member_role_lower_access_level &&
|
531
|
+
can_change_member_role_same_access_level == o.can_change_member_role_same_access_level &&
|
532
|
+
can_manage_member_lower_access_level == o.can_manage_member_lower_access_level &&
|
533
|
+
can_manage_member_same_access_level == o.can_manage_member_same_access_level &&
|
534
|
+
can_remove_company_member_lower_access_level == o.can_remove_company_member_lower_access_level &&
|
535
|
+
can_remove_company_member_same_access_level == o.can_remove_company_member_same_access_level &&
|
536
|
+
can_manage_account == o.can_manage_account &&
|
537
|
+
can_manage_logo == o.can_manage_logo &&
|
538
|
+
can_manage_room_details == o.can_manage_room_details &&
|
539
|
+
can_manage_room_templates == o.can_manage_room_templates &&
|
540
|
+
can_manage_integration_settings == o.can_manage_integration_settings
|
541
|
+
end
|
542
|
+
|
543
|
+
# @see the `==` method
|
544
|
+
# @param [Object] Object to be compared
|
545
|
+
def eql?(o)
|
546
|
+
self == o
|
547
|
+
end
|
548
|
+
|
549
|
+
# Calculates hash code according to all attributes.
|
550
|
+
# @return [Fixnum] Hash code
|
551
|
+
def hash
|
552
|
+
[can_add_users_to_rooms, can_create_rooms, can_submit_rooms_for_review, can_close_rooms, can_reopen_rooms, can_delete_owned_rooms, auto_access_to_rooms, can_export_room_activity_details_people, is_visible_in_rooms, can_copy_room_details, can_edit_any_room_role, can_edit_invited_room_role, can_manage_any_user_room_access, can_manage_invited_user_room_access, can_view_room_details, can_view_and_edit_room_details, can_send_room_details_to_lone_wolf, can_add_documents, can_add_documents_from_form_groups, can_add_documents_from_form_libraries, documents_viewable_by_others_in_room_from_office, documents_auto_owned_by_peers, can_delete_owned_documents, can_manage_shared_docs, can_manage_form_groups, can_share_docs_not_owned, can_add_tasks_to_any_task_lists, can_edit_editable_tasks, can_edit_any_tasks, can_delete_deletable_tasks, can_delete_any_tasks, can_apply_task_list, can_remove_any_task_list, can_submit_task_list, can_auto_submit_task_list, can_review_task_list, can_auto_approve_task_list, can_manage_task_templates_for_all_regions_all_offices, can_apply_room_templates, can_add_tasks_to_rooms, can_create_and_manage_packages, can_add_member_and_set_role_lower_access_level, can_add_member_and_set_role_same_access_level, can_change_member_role_lower_access_level, can_change_member_role_same_access_level, can_manage_member_lower_access_level, can_manage_member_same_access_level, can_remove_company_member_lower_access_level, can_remove_company_member_same_access_level, can_manage_account, can_manage_logo, can_manage_room_details, can_manage_room_templates, can_manage_integration_settings].hash
|
553
|
+
end
|
554
|
+
|
555
|
+
# Builds the object from hash
|
556
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
557
|
+
# @return [Object] Returns the model itself
|
558
|
+
def build_from_hash(attributes)
|
559
|
+
return nil unless attributes.is_a?(Hash)
|
560
|
+
self.class.swagger_types.each_pair do |key, type|
|
561
|
+
if type =~ /\AArray<(.*)>/i
|
562
|
+
# check to ensure the input is an array given that the attribute
|
563
|
+
# is documented as an array but the input is not
|
564
|
+
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
565
|
+
self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
566
|
+
end
|
567
|
+
elsif !attributes[self.class.attribute_map[key]].nil?
|
568
|
+
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
569
|
+
end # or else data not found in attributes(hash), not an issue as the data can be optional
|
570
|
+
end
|
571
|
+
|
572
|
+
self
|
573
|
+
end
|
574
|
+
|
575
|
+
# Deserializes the data based on type
|
576
|
+
# @param string type Data type
|
577
|
+
# @param string value Value to be deserialized
|
578
|
+
# @return [Object] Deserialized data
|
579
|
+
def _deserialize(type, value)
|
580
|
+
case type.to_sym
|
581
|
+
when :DateTime
|
582
|
+
DateTime.parse(value)
|
583
|
+
when :Date
|
584
|
+
Date.parse(value)
|
585
|
+
when :String
|
586
|
+
value.to_s
|
587
|
+
when :Integer
|
588
|
+
value.to_i
|
589
|
+
when :Float
|
590
|
+
value.to_f
|
591
|
+
when :BOOLEAN
|
592
|
+
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
593
|
+
true
|
594
|
+
else
|
595
|
+
false
|
596
|
+
end
|
597
|
+
when :Object
|
598
|
+
# generic object (usually a Hash), return directly
|
599
|
+
value
|
600
|
+
when /\AArray<(?<inner_type>.+)>\z/
|
601
|
+
inner_type = Regexp.last_match[:inner_type]
|
602
|
+
value.map { |v| _deserialize(inner_type, v) }
|
603
|
+
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
604
|
+
k_type = Regexp.last_match[:k_type]
|
605
|
+
v_type = Regexp.last_match[:v_type]
|
606
|
+
{}.tap do |hash|
|
607
|
+
value.each do |k, v|
|
608
|
+
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
609
|
+
end
|
610
|
+
end
|
611
|
+
else # model
|
612
|
+
temp_model = DocuSign_Rooms.const_get(type).new
|
613
|
+
temp_model.build_from_hash(value)
|
614
|
+
end
|
615
|
+
end
|
616
|
+
|
617
|
+
# Returns the string representation of the object
|
618
|
+
# @return [String] String presentation of the object
|
619
|
+
def to_s
|
620
|
+
to_hash.to_s
|
621
|
+
end
|
622
|
+
|
623
|
+
# to_body is an alias to to_hash (backward compatibility)
|
624
|
+
# @return [Hash] Returns the object in the form of hash
|
625
|
+
def to_body
|
626
|
+
to_hash
|
627
|
+
end
|
628
|
+
|
629
|
+
# Returns the object in the form of hash
|
630
|
+
# @return [Hash] Returns the object in the form of hash
|
631
|
+
def to_hash
|
632
|
+
hash = {}
|
633
|
+
self.class.attribute_map.each_pair do |attr, param|
|
634
|
+
value = self.send(attr)
|
635
|
+
next if value.nil?
|
636
|
+
hash[param] = _to_hash(value)
|
637
|
+
end
|
638
|
+
hash
|
639
|
+
end
|
640
|
+
|
641
|
+
# Outputs non-array value in the form of hash
|
642
|
+
# For object, use to_hash. Otherwise, just return the value
|
643
|
+
# @param [Object] value Any valid value
|
644
|
+
# @return [Hash] Returns the value in the form of hash
|
645
|
+
def _to_hash(value)
|
646
|
+
if value.is_a?(Array)
|
647
|
+
value.compact.map { |v| _to_hash(v) }
|
648
|
+
elsif value.is_a?(Hash)
|
649
|
+
{}.tap do |hash|
|
650
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
651
|
+
end
|
652
|
+
elsif value.respond_to? :to_hash
|
653
|
+
value.to_hash
|
654
|
+
else
|
655
|
+
value
|
656
|
+
end
|
657
|
+
end
|
658
|
+
|
659
|
+
end
|
660
|
+
end
|