lockally 0.1.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.
Files changed (630) hide show
  1. checksums.yaml +7 -0
  2. data/Gemfile +9 -0
  3. data/LICENSE +21 -0
  4. data/README.md +481 -0
  5. data/Rakefile +10 -0
  6. data/docs/APIKey.md +32 -0
  7. data/docs/ActivateAddOn200Response.md +24 -0
  8. data/docs/AddCalendarMemberRequest.md +20 -0
  9. data/docs/AddContactListMemberRequest.md +18 -0
  10. data/docs/AddOn.md +28 -0
  11. data/docs/AddOnsApi.md +275 -0
  12. data/docs/AddSharedMemberRequest.md +20 -0
  13. data/docs/Admin.md +30 -0
  14. data/docs/AdminApi.md +205 -0
  15. data/docs/AdminFull.md +36 -0
  16. data/docs/AdminsApi.md +283 -0
  17. data/docs/AgentsApi.md +927 -0
  18. data/docs/AiApi.md +282 -0
  19. data/docs/AliasesApi.md +211 -0
  20. data/docs/ApiKeysApi.md +213 -0
  21. data/docs/AuditEvent.md +26 -0
  22. data/docs/BatchLookupPublicKeys200Response.md +18 -0
  23. data/docs/BatchLookupPublicKeys200ResponseDataInner.md +22 -0
  24. data/docs/BatchResult.md +26 -0
  25. data/docs/BillingApi.md +208 -0
  26. data/docs/BillingStatus.md +46 -0
  27. data/docs/Calendar.md +38 -0
  28. data/docs/CalendarEvent.md +40 -0
  29. data/docs/CalendarIntegration.md +34 -0
  30. data/docs/CalendarMember.md +28 -0
  31. data/docs/CalendarPolicies.md +40 -0
  32. data/docs/CalendarsApi.md +1445 -0
  33. data/docs/Contact.md +44 -0
  34. data/docs/ContactList.md +32 -0
  35. data/docs/ContactListsApi.md +483 -0
  36. data/docs/ContactsApi.md +426 -0
  37. data/docs/CreateBillingCheckout200Response.md +20 -0
  38. data/docs/CreateBillingCheckoutRequest.md +18 -0
  39. data/docs/CreateCalendarEventRequest.md +28 -0
  40. data/docs/CreateCalendarIntegrationRequest.md +20 -0
  41. data/docs/CreateCalendarRequest.md +26 -0
  42. data/docs/CreateContactListRequest.md +22 -0
  43. data/docs/CreateContactRequest.md +32 -0
  44. data/docs/CreateDedicatedIPRequestRequest.md +18 -0
  45. data/docs/CreateDistributionListRequest.md +22 -0
  46. data/docs/CreateEncryptionKey201Response.md +22 -0
  47. data/docs/CreateEncryptionKeyRequest.md +24 -0
  48. data/docs/CreateEncryptionRecoveryRequest.md +20 -0
  49. data/docs/CreateMigrationCredentialRequest.md +22 -0
  50. data/docs/CreateMigrationCredentialRequestCredentials.md +26 -0
  51. data/docs/CreateMigrationRequest.md +24 -0
  52. data/docs/CreateResourceRequest.md +22 -0
  53. data/docs/CreateUnitsCheckout200Response.md +22 -0
  54. data/docs/CreateUnitsCheckoutRequest.md +18 -0
  55. data/docs/CreateUserRequest.md +26 -0
  56. data/docs/DNSRecord.md +28 -0
  57. data/docs/DashboardApi.md +462 -0
  58. data/docs/DedicatedIPRequest.md +30 -0
  59. data/docs/DirectoryApi.md +533 -0
  60. data/docs/DirectoryPermissions.md +30 -0
  61. data/docs/DiscoverMigration202Response.md +18 -0
  62. data/docs/DistributionListDetail.md +30 -0
  63. data/docs/DistributionListSummary.md +28 -0
  64. data/docs/DistributionListsApi.md +345 -0
  65. data/docs/Domain.md +36 -0
  66. data/docs/DomainsApi.md +351 -0
  67. data/docs/DraftsApi.md +503 -0
  68. data/docs/EncryptionApi.md +345 -0
  69. data/docs/GALSettings.md +36 -0
  70. data/docs/GetAddOnStatus200Response.md +22 -0
  71. data/docs/GetAuditSummary200Response.md +26 -0
  72. data/docs/GetCalendarSecurity200Response.md +32 -0
  73. data/docs/GetCalendarSecurity200ResponseAlertsInner.md +20 -0
  74. data/docs/GetCalendarSecurity200ResponseDelegatedAccessInner.md +26 -0
  75. data/docs/GetCalendarSecurity200ResponseExternalSharing.md +22 -0
  76. data/docs/GetCalendarSecurity200ResponsePublicCalendarListInner.md +26 -0
  77. data/docs/GetContactList200Response.md +20 -0
  78. data/docs/GetContactList200ResponseMembersInner.md +22 -0
  79. data/docs/GetContactLists200Response.md +18 -0
  80. data/docs/GetContactLists200ResponseDataInner.md +22 -0
  81. data/docs/GetDirectoryActivity200Response.md +18 -0
  82. data/docs/GetDirectoryActivity200ResponseDataInner.md +24 -0
  83. data/docs/GetDirectoryStats200Response.md +28 -0
  84. data/docs/GetDomainsStatus200Response.md +20 -0
  85. data/docs/GetDomainsStatus200ResponseDomainsInner.md +22 -0
  86. data/docs/GetDomainsStatus200ResponseDomainsInnerChecksInner.md +22 -0
  87. data/docs/GetEncryptionKey200Response.md +28 -0
  88. data/docs/GetIPAssignment200Response.md +26 -0
  89. data/docs/GetIntegrationsSummary200Response.md +30 -0
  90. data/docs/GetIntegrationsSummary200ResponseApiKeysInner.md +22 -0
  91. data/docs/GetIntegrationsSummary200ResponseWebhooksInner.md +24 -0
  92. data/docs/GetSecurity200Response.md +22 -0
  93. data/docs/GetSecurity200ResponseAlertsInner.md +22 -0
  94. data/docs/GetSecurity200ResponseStatsInner.md +22 -0
  95. data/docs/GetStorage200Response.md +28 -0
  96. data/docs/GetStorage200ResponseTopMailboxesInner.md +20 -0
  97. data/docs/GetStorage200ResponseTopMessagesInner.md +26 -0
  98. data/docs/GetUserInsights200Response.md +28 -0
  99. data/docs/HealthApi.md +69 -0
  100. data/docs/HealthzGet200Response.md +20 -0
  101. data/docs/IpPoolsApi.md +205 -0
  102. data/docs/ListAddOns200Response.md +18 -0
  103. data/docs/ListCalendarEvents200Response.md +18 -0
  104. data/docs/ListCalendarIntegrations200Response.md +18 -0
  105. data/docs/ListCalendarMembers200Response.md +18 -0
  106. data/docs/ListCalendars200Response.md +18 -0
  107. data/docs/ListContactLists200Response.md +18 -0
  108. data/docs/ListContacts200Response.md +18 -0
  109. data/docs/ListDedicatedIPRequests200Response.md +18 -0
  110. data/docs/ListDistributionLists200Response.md +18 -0
  111. data/docs/ListMigrationCredentials200Response.md +18 -0
  112. data/docs/ListMigrationEvents200Response.md +18 -0
  113. data/docs/ListMigrationMailboxes200Response.md +18 -0
  114. data/docs/ListMigrations200Response.md +18 -0
  115. data/docs/ListResources200Response.md +18 -0
  116. data/docs/ListSharedMembers200Response.md +18 -0
  117. data/docs/ListUsers200Response.md +20 -0
  118. data/docs/Mailbox.md +38 -0
  119. data/docs/MailboxesApi.md +980 -0
  120. data/docs/MapMigrationRequest.md +18 -0
  121. data/docs/MapMigrationRequestMappingsInner.md +20 -0
  122. data/docs/Message.md +38 -0
  123. data/docs/MessageStats.md +26 -0
  124. data/docs/MessageStatsCounts.md +24 -0
  125. data/docs/MessageStatsRates.md +24 -0
  126. data/docs/MessageStatsWindow.md +20 -0
  127. data/docs/Migration.md +44 -0
  128. data/docs/MigrationCredential.md +30 -0
  129. data/docs/MigrationEvent.md +36 -0
  130. data/docs/MigrationMailbox.md +54 -0
  131. data/docs/MigrationProgress.md +36 -0
  132. data/docs/MigrationProgressMailboxesInner.md +30 -0
  133. data/docs/MigrationSettings.md +26 -0
  134. data/docs/MigrationsApi.md +1434 -0
  135. data/docs/ModelAlias.md +26 -0
  136. data/docs/PlanCatalogEntry.md +36 -0
  137. data/docs/Problem.md +26 -0
  138. data/docs/ReplaceDistributionListMembers200Response.md +26 -0
  139. data/docs/ReplaceDistributionListMembersRequest.md +18 -0
  140. data/docs/Resource.md +32 -0
  141. data/docs/ResourcesApi.md +345 -0
  142. data/docs/RotateEncryptionKeyRequest.md +22 -0
  143. data/docs/SendApi.md +446 -0
  144. data/docs/SendMessage.md +42 -0
  145. data/docs/SharedMember.md +28 -0
  146. data/docs/SignupApi.md +70 -0
  147. data/docs/SignupRequest.md +26 -0
  148. data/docs/StartMigration202Response.md +20 -0
  149. data/docs/Suppression.md +24 -0
  150. data/docs/SuppressionsApi.md +284 -0
  151. data/docs/Template.md +30 -0
  152. data/docs/TemplateInput.md +24 -0
  153. data/docs/TemplatesApi.md +345 -0
  154. data/docs/Tenant.md +40 -0
  155. data/docs/TenantApi.md +141 -0
  156. data/docs/TestApi.md +74 -0
  157. data/docs/UnitBundle.md +26 -0
  158. data/docs/UpdateCalendarEventRequest.md +28 -0
  159. data/docs/UpdateCalendarIntegrationRequest.md +22 -0
  160. data/docs/UpdateCalendarMemberRequest.md +18 -0
  161. data/docs/UpdateCalendarPoliciesRequest.md +34 -0
  162. data/docs/UpdateCalendarRequest.md +26 -0
  163. data/docs/UpdateContactListRequest.md +22 -0
  164. data/docs/UpdateContactRequest.md +34 -0
  165. data/docs/UpdateDirectoryPermissionsRequest.md +24 -0
  166. data/docs/UpdateGALSettingsRequest.md +26 -0
  167. data/docs/UpdateMigrationMailboxRequest.md +20 -0
  168. data/docs/UpdateMigrationRequest.md +20 -0
  169. data/docs/UpdateResourceRequest.md +24 -0
  170. data/docs/UpdateUserRequest.md +26 -0
  171. data/docs/User.md +38 -0
  172. data/docs/UserEvent.md +22 -0
  173. data/docs/UsersApi.md +352 -0
  174. data/docs/V1AdminLoginPost200Response.md +24 -0
  175. data/docs/V1AdminLoginPostRequest.md +20 -0
  176. data/docs/V1AdminMeGet200Response.md +20 -0
  177. data/docs/V1AdminsGet200Response.md +18 -0
  178. data/docs/V1AdminsIdPatchRequest.md +24 -0
  179. data/docs/V1AdminsPostRequest.md +24 -0
  180. data/docs/V1AliasesGet200Response.md +18 -0
  181. data/docs/V1AliasesPostRequest.md +20 -0
  182. data/docs/V1ApiKeysGet200Response.md +18 -0
  183. data/docs/V1ApiKeysPost201Response.md +34 -0
  184. data/docs/V1ApiKeysPostRequest.md +20 -0
  185. data/docs/V1DomainsGet200Response.md +18 -0
  186. data/docs/V1DomainsPostRequest.md +18 -0
  187. data/docs/V1InboxesMailboxMessagesPostRequest.md +26 -0
  188. data/docs/V1MailboxesEmailExportPost201Response.md +22 -0
  189. data/docs/V1MailboxesEmailPatchRequest.md +22 -0
  190. data/docs/V1MailboxesEmailVacationPutRequest.md +20 -0
  191. data/docs/V1MailboxesGet200Response.md +20 -0
  192. data/docs/V1MailboxesPostRequest.md +22 -0
  193. data/docs/V1MessagesGet200Response.md +20 -0
  194. data/docs/V1SendBatchPost200Response.md +18 -0
  195. data/docs/V1SendBatchPostRequest.md +18 -0
  196. data/docs/V1SendPost202Response.md +24 -0
  197. data/docs/V1SendPostRequest.md +42 -0
  198. data/docs/V1SendPostRequestAttachmentsInner.md +22 -0
  199. data/docs/V1SuppressionsGet200Response.md +20 -0
  200. data/docs/V1SuppressionsPostRequest.md +20 -0
  201. data/docs/V1TemplatesGet200Response.md +18 -0
  202. data/docs/V1UsageGet200Response.md +42 -0
  203. data/docs/V1VacationGet200Response.md +18 -0
  204. data/docs/V1WebhooksGet200Response.md +18 -0
  205. data/docs/V1WebhooksIdPatchRequest.md +22 -0
  206. data/docs/V1WebhooksPostRequest.md +20 -0
  207. data/docs/VacationParams.md +24 -0
  208. data/docs/VacationResponder.md +30 -0
  209. data/docs/Webhook.md +38 -0
  210. data/docs/WebhooksApi.md +285 -0
  211. data/git_push.sh +57 -0
  212. data/lib/lockally/api/add_ons_api.rb +260 -0
  213. data/lib/lockally/api/admin_api.rb +204 -0
  214. data/lib/lockally/api/admins_api.rb +282 -0
  215. data/lib/lockally/api/agents_api.rb +900 -0
  216. data/lib/lockally/api/ai_api.rb +259 -0
  217. data/lib/lockally/api/aliases_api.rb +208 -0
  218. data/lib/lockally/api/api_keys_api.rb +210 -0
  219. data/lib/lockally/api/billing_api.rb +209 -0
  220. data/lib/lockally/api/calendars_api.rb +1390 -0
  221. data/lib/lockally/api/contact_lists_api.rb +476 -0
  222. data/lib/lockally/api/contacts_api.rb +413 -0
  223. data/lib/lockally/api/dashboard_api.rb +407 -0
  224. data/lib/lockally/api/directory_api.rb +484 -0
  225. data/lib/lockally/api/distribution_lists_api.rb +337 -0
  226. data/lib/lockally/api/domains_api.rb +334 -0
  227. data/lib/lockally/api/drafts_api.rb +487 -0
  228. data/lib/lockally/api/encryption_api.rb +343 -0
  229. data/lib/lockally/api/health_api.rb +79 -0
  230. data/lib/lockally/api/ip_pools_api.rb +198 -0
  231. data/lib/lockally/api/mailboxes_api.rb +946 -0
  232. data/lib/lockally/api/migrations_api.rb +1340 -0
  233. data/lib/lockally/api/resources_api.rb +337 -0
  234. data/lib/lockally/api/send_api.rb +453 -0
  235. data/lib/lockally/api/signup_api.rb +88 -0
  236. data/lib/lockally/api/suppressions_api.rb +282 -0
  237. data/lib/lockally/api/templates_api.rb +337 -0
  238. data/lib/lockally/api/tenant_api.rb +136 -0
  239. data/lib/lockally/api/test_api.rb +79 -0
  240. data/lib/lockally/api/users_api.rb +350 -0
  241. data/lib/lockally/api/webhooks_api.rb +284 -0
  242. data/lib/lockally/api_client.rb +441 -0
  243. data/lib/lockally/api_error.rb +58 -0
  244. data/lib/lockally/api_model_base.rb +88 -0
  245. data/lib/lockally/configuration.rb +404 -0
  246. data/lib/lockally/models/activate_add_on200_response.rb +242 -0
  247. data/lib/lockally/models/add_calendar_member_request.rb +209 -0
  248. data/lib/lockally/models/add_contact_list_member_request.rb +164 -0
  249. data/lib/lockally/models/add_on.rb +294 -0
  250. data/lib/lockally/models/add_shared_member_request.rb +209 -0
  251. data/lib/lockally/models/admin.rb +310 -0
  252. data/lib/lockally/models/admin_full.rb +362 -0
  253. data/lib/lockally/models/api_key.rb +315 -0
  254. data/lib/lockally/models/audit_event.rb +183 -0
  255. data/lib/lockally/models/batch_lookup_public_keys200_response.rb +149 -0
  256. data/lib/lockally/models/batch_lookup_public_keys200_response_data_inner.rb +165 -0
  257. data/lib/lockally/models/batch_result.rb +218 -0
  258. data/lib/lockally/models/billing_status.rb +507 -0
  259. data/lib/lockally/models/calendar.rb +363 -0
  260. data/lib/lockally/models/calendar_event.rb +416 -0
  261. data/lib/lockally/models/calendar_integration.rb +347 -0
  262. data/lib/lockally/models/calendar_member.rb +318 -0
  263. data/lib/lockally/models/calendar_policies.rb +297 -0
  264. data/lib/lockally/models/contact.rb +424 -0
  265. data/lib/lockally/models/contact_list.rb +353 -0
  266. data/lib/lockally/models/create_billing_checkout200_response.rb +190 -0
  267. data/lib/lockally/models/create_billing_checkout_request.rb +188 -0
  268. data/lib/lockally/models/create_calendar_event_request.rb +245 -0
  269. data/lib/lockally/models/create_calendar_integration_request.rb +197 -0
  270. data/lib/lockally/models/create_calendar_request.rb +236 -0
  271. data/lib/lockally/models/create_contact_list_request.rb +218 -0
  272. data/lib/lockally/models/create_contact_request.rb +280 -0
  273. data/lib/lockally/models/create_dedicated_ip_request_request.rb +164 -0
  274. data/lib/lockally/models/create_distribution_list_request.rb +184 -0
  275. data/lib/lockally/models/create_encryption_key201_response.rb +165 -0
  276. data/lib/lockally/models/create_encryption_key_request.rb +225 -0
  277. data/lib/lockally/models/create_encryption_recovery_request.rb +190 -0
  278. data/lib/lockally/models/create_migration_credential_request.rb +223 -0
  279. data/lib/lockally/models/create_migration_credential_request_credentials.rb +217 -0
  280. data/lib/lockally/models/create_migration_request.rb +225 -0
  281. data/lib/lockally/models/create_resource_request.rb +237 -0
  282. data/lib/lockally/models/create_units_checkout200_response.rb +216 -0
  283. data/lib/lockally/models/create_units_checkout_request.rb +188 -0
  284. data/lib/lockally/models/create_user_request.rb +234 -0
  285. data/lib/lockally/models/dedicated_ip_request.rb +293 -0
  286. data/lib/lockally/models/directory_permissions.rb +316 -0
  287. data/lib/lockally/models/discover_migration202_response.rb +164 -0
  288. data/lib/lockally/models/distribution_list_detail.rb +305 -0
  289. data/lib/lockally/models/distribution_list_summary.rb +277 -0
  290. data/lib/lockally/models/dns_record.rb +304 -0
  291. data/lib/lockally/models/domain.rb +367 -0
  292. data/lib/lockally/models/gal_settings.rb +354 -0
  293. data/lib/lockally/models/get_add_on_status200_response.rb +216 -0
  294. data/lib/lockally/models/get_audit_summary200_response.rb +189 -0
  295. data/lib/lockally/models/get_calendar_security200_response.rb +216 -0
  296. data/lib/lockally/models/get_calendar_security200_response_alerts_inner.rb +190 -0
  297. data/lib/lockally/models/get_calendar_security200_response_delegated_access_inner.rb +183 -0
  298. data/lib/lockally/models/get_calendar_security200_response_external_sharing.rb +165 -0
  299. data/lib/lockally/models/get_calendar_security200_response_public_calendar_list_inner.rb +183 -0
  300. data/lib/lockally/models/get_contact_list200_response.rb +158 -0
  301. data/lib/lockally/models/get_contact_list200_response_members_inner.rb +165 -0
  302. data/lib/lockally/models/get_contact_lists200_response.rb +149 -0
  303. data/lib/lockally/models/get_contact_lists200_response_data_inner.rb +165 -0
  304. data/lib/lockally/models/get_directory_activity200_response.rb +149 -0
  305. data/lib/lockally/models/get_directory_activity200_response_data_inner.rb +174 -0
  306. data/lib/lockally/models/get_directory_stats200_response.rb +192 -0
  307. data/lib/lockally/models/get_domains_status200_response.rb +158 -0
  308. data/lib/lockally/models/get_domains_status200_response_domains_inner.rb +167 -0
  309. data/lib/lockally/models/get_domains_status200_response_domains_inner_checks_inner.rb +199 -0
  310. data/lib/lockally/models/get_encryption_key200_response.rb +192 -0
  311. data/lib/lockally/models/get_integrations_summary200_response.rb +205 -0
  312. data/lib/lockally/models/get_integrations_summary200_response_api_keys_inner.rb +165 -0
  313. data/lib/lockally/models/get_integrations_summary200_response_webhooks_inner.rb +174 -0
  314. data/lib/lockally/models/get_ip_assignment200_response.rb +183 -0
  315. data/lib/lockally/models/get_security200_response.rb +203 -0
  316. data/lib/lockally/models/get_security200_response_alerts_inner.rb +199 -0
  317. data/lib/lockally/models/get_security200_response_stats_inner.rb +165 -0
  318. data/lib/lockally/models/get_storage200_response.rb +196 -0
  319. data/lib/lockally/models/get_storage200_response_top_mailboxes_inner.rb +156 -0
  320. data/lib/lockally/models/get_storage200_response_top_messages_inner.rb +185 -0
  321. data/lib/lockally/models/get_user_insights200_response.rb +198 -0
  322. data/lib/lockally/models/healthz_get200_response.rb +214 -0
  323. data/lib/lockally/models/list_add_ons200_response.rb +166 -0
  324. data/lib/lockally/models/list_calendar_events200_response.rb +149 -0
  325. data/lib/lockally/models/list_calendar_integrations200_response.rb +149 -0
  326. data/lib/lockally/models/list_calendar_members200_response.rb +149 -0
  327. data/lib/lockally/models/list_calendars200_response.rb +149 -0
  328. data/lib/lockally/models/list_contact_lists200_response.rb +149 -0
  329. data/lib/lockally/models/list_contacts200_response.rb +149 -0
  330. data/lib/lockally/models/list_dedicated_ip_requests200_response.rb +166 -0
  331. data/lib/lockally/models/list_distribution_lists200_response.rb +166 -0
  332. data/lib/lockally/models/list_migration_credentials200_response.rb +166 -0
  333. data/lib/lockally/models/list_migration_events200_response.rb +166 -0
  334. data/lib/lockally/models/list_migration_mailboxes200_response.rb +166 -0
  335. data/lib/lockally/models/list_migrations200_response.rb +166 -0
  336. data/lib/lockally/models/list_resources200_response.rb +149 -0
  337. data/lib/lockally/models/list_shared_members200_response.rb +166 -0
  338. data/lib/lockally/models/list_users200_response.rb +192 -0
  339. data/lib/lockally/models/mailbox.rb +357 -0
  340. data/lib/lockally/models/map_migration_request.rb +166 -0
  341. data/lib/lockally/models/map_migration_request_mappings_inner.rb +190 -0
  342. data/lib/lockally/models/message.rb +400 -0
  343. data/lib/lockally/models/message_stats.rb +183 -0
  344. data/lib/lockally/models/message_stats_counts.rb +174 -0
  345. data/lib/lockally/models/message_stats_rates.rb +174 -0
  346. data/lib/lockally/models/message_stats_window.rb +156 -0
  347. data/lib/lockally/models/migration.rb +441 -0
  348. data/lib/lockally/models/migration_credential.rb +310 -0
  349. data/lib/lockally/models/migration_event.rb +330 -0
  350. data/lib/lockally/models/migration_mailbox.rb +462 -0
  351. data/lib/lockally/models/migration_progress.rb +400 -0
  352. data/lib/lockally/models/migration_progress_mailboxes_inner.rb +286 -0
  353. data/lib/lockally/models/migration_settings.rb +185 -0
  354. data/lib/lockally/models/model_alias.rb +268 -0
  355. data/lib/lockally/models/plan_catalog_entry.rb +398 -0
  356. data/lib/lockally/models/problem.rb +235 -0
  357. data/lib/lockally/models/replace_distribution_list_members200_response.rb +270 -0
  358. data/lib/lockally/models/replace_distribution_list_members_request.rb +166 -0
  359. data/lib/lockally/models/resource.rb +353 -0
  360. data/lib/lockally/models/rotate_encryption_key_request.rb +199 -0
  361. data/lib/lockally/models/send_message.rb +310 -0
  362. data/lib/lockally/models/shared_member.rb +318 -0
  363. data/lib/lockally/models/signup_request.rb +279 -0
  364. data/lib/lockally/models/start_migration202_response.rb +190 -0
  365. data/lib/lockally/models/suppression.rb +208 -0
  366. data/lib/lockally/models/template.rb +201 -0
  367. data/lib/lockally/models/template_input.rb +195 -0
  368. data/lib/lockally/models/tenant.rb +424 -0
  369. data/lib/lockally/models/unit_bundle.rb +268 -0
  370. data/lib/lockally/models/update_calendar_event_request.rb +192 -0
  371. data/lib/lockally/models/update_calendar_integration_request.rb +199 -0
  372. data/lib/lockally/models/update_calendar_member_request.rb +188 -0
  373. data/lib/lockally/models/update_calendar_policies_request.rb +337 -0
  374. data/lib/lockally/models/update_calendar_request.rb +217 -0
  375. data/lib/lockally/models/update_contact_list_request.rb +199 -0
  376. data/lib/lockally/models/update_contact_request.rb +265 -0
  377. data/lib/lockally/models/update_directory_permissions_request.rb +244 -0
  378. data/lib/lockally/models/update_gal_settings_request.rb +217 -0
  379. data/lib/lockally/models/update_migration_mailbox_request.rb +157 -0
  380. data/lib/lockally/models/update_migration_request.rb +156 -0
  381. data/lib/lockally/models/update_resource_request.rb +220 -0
  382. data/lib/lockally/models/update_user_request.rb +217 -0
  383. data/lib/lockally/models/user.rb +397 -0
  384. data/lib/lockally/models/user_event.rb +165 -0
  385. data/lib/lockally/models/v1_admin_login_post200_response.rb +242 -0
  386. data/lib/lockally/models/v1_admin_login_post_request.rb +199 -0
  387. data/lib/lockally/models/v1_admin_me_get200_response.rb +190 -0
  388. data/lib/lockally/models/v1_admins_get200_response.rb +166 -0
  389. data/lib/lockally/models/v1_admins_id_patch_request.rb +227 -0
  390. data/lib/lockally/models/v1_admins_post_request.rb +246 -0
  391. data/lib/lockally/models/v1_aliases_get200_response.rb +166 -0
  392. data/lib/lockally/models/v1_aliases_post_request.rb +190 -0
  393. data/lib/lockally/models/v1_api_keys_get200_response.rb +166 -0
  394. data/lib/lockally/models/v1_api_keys_post201_response.rb +349 -0
  395. data/lib/lockally/models/v1_api_keys_post_request.rb +211 -0
  396. data/lib/lockally/models/v1_domains_get200_response.rb +166 -0
  397. data/lib/lockally/models/v1_domains_post_request.rb +164 -0
  398. data/lib/lockally/models/v1_inboxes_mailbox_messages_post_request.rb +221 -0
  399. data/lib/lockally/models/v1_mailboxes_email_export_post201_response.rb +241 -0
  400. data/lib/lockally/models/v1_mailboxes_email_patch_request.rb +203 -0
  401. data/lib/lockally/models/v1_mailboxes_email_vacation_put_request.rb +175 -0
  402. data/lib/lockally/models/v1_mailboxes_get200_response.rb +192 -0
  403. data/lib/lockally/models/v1_mailboxes_post_request.rb +205 -0
  404. data/lib/lockally/models/v1_messages_get200_response.rb +176 -0
  405. data/lib/lockally/models/v1_send_batch_post200_response.rb +149 -0
  406. data/lib/lockally/models/v1_send_batch_post_request.rb +184 -0
  407. data/lib/lockally/models/v1_send_post202_response.rb +252 -0
  408. data/lib/lockally/models/v1_send_post_request.rb +316 -0
  409. data/lib/lockally/models/v1_send_post_request_attachments_inner.rb +217 -0
  410. data/lib/lockally/models/v1_suppressions_get200_response.rb +158 -0
  411. data/lib/lockally/models/v1_suppressions_post_request.rb +209 -0
  412. data/lib/lockally/models/v1_templates_get200_response.rb +149 -0
  413. data/lib/lockally/models/v1_usage_get200_response.rb +300 -0
  414. data/lib/lockally/models/v1_vacation_get200_response.rb +166 -0
  415. data/lib/lockally/models/v1_webhooks_get200_response.rb +166 -0
  416. data/lib/lockally/models/v1_webhooks_id_patch_request.rb +167 -0
  417. data/lib/lockally/models/v1_webhooks_post_request.rb +202 -0
  418. data/lib/lockally/models/vacation_params.rb +208 -0
  419. data/lib/lockally/models/vacation_responder.rb +305 -0
  420. data/lib/lockally/models/webhook.rb +359 -0
  421. data/lib/lockally/version.rb +15 -0
  422. data/lib/lockally.rb +245 -0
  423. data/lockally.gemspec +41 -0
  424. data/spec/api/add_ons_api_spec.rb +78 -0
  425. data/spec/api/admin_api_spec.rb +69 -0
  426. data/spec/api/admins_api_spec.rb +82 -0
  427. data/spec/api/agents_api_spec.rb +197 -0
  428. data/spec/api/ai_api_spec.rb +81 -0
  429. data/spec/api/aliases_api_spec.rb +69 -0
  430. data/spec/api/api_keys_api_spec.rb +70 -0
  431. data/spec/api/billing_api_spec.rb +67 -0
  432. data/spec/api/calendars_api_spec.rb +274 -0
  433. data/spec/api/contact_lists_api_spec.rb +114 -0
  434. data/spec/api/contacts_api_spec.rb +106 -0
  435. data/spec/api/dashboard_api_spec.rb +105 -0
  436. data/spec/api/directory_api_spec.rb +117 -0
  437. data/spec/api/distribution_lists_api_spec.rb +90 -0
  438. data/spec/api/domains_api_spec.rb +93 -0
  439. data/spec/api/drafts_api_spec.rb +121 -0
  440. data/spec/api/encryption_api_spec.rb +90 -0
  441. data/spec/api/health_api_spec.rb +46 -0
  442. data/spec/api/ip_pools_api_spec.rb +66 -0
  443. data/spec/api/mailboxes_api_spec.rb +203 -0
  444. data/spec/api/migrations_api_spec.rb +268 -0
  445. data/spec/api/resources_api_spec.rb +90 -0
  446. data/spec/api/send_api_spec.rb +115 -0
  447. data/spec/api/signup_api_spec.rb +46 -0
  448. data/spec/api/suppressions_api_spec.rb +81 -0
  449. data/spec/api/templates_api_spec.rb +90 -0
  450. data/spec/api/tenant_api_spec.rb +57 -0
  451. data/spec/api/test_api_spec.rb +46 -0
  452. data/spec/api/users_api_spec.rb +92 -0
  453. data/spec/api/webhooks_api_spec.rb +83 -0
  454. data/spec/models/activate_add_on200_response_spec.rb +54 -0
  455. data/spec/models/add_calendar_member_request_spec.rb +46 -0
  456. data/spec/models/add_contact_list_member_request_spec.rb +36 -0
  457. data/spec/models/add_on_spec.rb +66 -0
  458. data/spec/models/add_shared_member_request_spec.rb +46 -0
  459. data/spec/models/admin_full_spec.rb +94 -0
  460. data/spec/models/admin_spec.rb +76 -0
  461. data/spec/models/api_key_spec.rb +78 -0
  462. data/spec/models/audit_event_spec.rb +60 -0
  463. data/spec/models/batch_lookup_public_keys200_response_data_inner_spec.rb +48 -0
  464. data/spec/models/batch_lookup_public_keys200_response_spec.rb +36 -0
  465. data/spec/models/batch_result_spec.rb +64 -0
  466. data/spec/models/billing_status_spec.rb +128 -0
  467. data/spec/models/calendar_event_spec.rb +102 -0
  468. data/spec/models/calendar_integration_spec.rb +92 -0
  469. data/spec/models/calendar_member_spec.rb +70 -0
  470. data/spec/models/calendar_policies_spec.rb +106 -0
  471. data/spec/models/calendar_spec.rb +100 -0
  472. data/spec/models/contact_list_spec.rb +82 -0
  473. data/spec/models/contact_spec.rb +118 -0
  474. data/spec/models/create_billing_checkout200_response_spec.rb +42 -0
  475. data/spec/models/create_billing_checkout_request_spec.rb +40 -0
  476. data/spec/models/create_calendar_event_request_spec.rb +66 -0
  477. data/spec/models/create_calendar_integration_request_spec.rb +46 -0
  478. data/spec/models/create_calendar_request_spec.rb +64 -0
  479. data/spec/models/create_contact_list_request_spec.rb +52 -0
  480. data/spec/models/create_contact_request_spec.rb +82 -0
  481. data/spec/models/create_dedicated_ip_request_request_spec.rb +36 -0
  482. data/spec/models/create_distribution_list_request_spec.rb +48 -0
  483. data/spec/models/create_encryption_key201_response_spec.rb +48 -0
  484. data/spec/models/create_encryption_key_request_spec.rb +54 -0
  485. data/spec/models/create_encryption_recovery_request_spec.rb +42 -0
  486. data/spec/models/create_migration_credential_request_credentials_spec.rb +60 -0
  487. data/spec/models/create_migration_credential_request_spec.rb +52 -0
  488. data/spec/models/create_migration_request_spec.rb +54 -0
  489. data/spec/models/create_resource_request_spec.rb +52 -0
  490. data/spec/models/create_units_checkout200_response_spec.rb +48 -0
  491. data/spec/models/create_units_checkout_request_spec.rb +40 -0
  492. data/spec/models/create_user_request_spec.rb +60 -0
  493. data/spec/models/dedicated_ip_request_spec.rb +76 -0
  494. data/spec/models/directory_permissions_spec.rb +88 -0
  495. data/spec/models/discover_migration202_response_spec.rb +36 -0
  496. data/spec/models/distribution_list_detail_spec.rb +72 -0
  497. data/spec/models/distribution_list_summary_spec.rb +66 -0
  498. data/spec/models/dns_record_spec.rb +74 -0
  499. data/spec/models/domain_spec.rb +90 -0
  500. data/spec/models/gal_settings_spec.rb +94 -0
  501. data/spec/models/get_add_on_status200_response_spec.rb +48 -0
  502. data/spec/models/get_audit_summary200_response_spec.rb +60 -0
  503. data/spec/models/get_calendar_security200_response_alerts_inner_spec.rb +46 -0
  504. data/spec/models/get_calendar_security200_response_delegated_access_inner_spec.rb +60 -0
  505. data/spec/models/get_calendar_security200_response_external_sharing_spec.rb +48 -0
  506. data/spec/models/get_calendar_security200_response_public_calendar_list_inner_spec.rb +60 -0
  507. data/spec/models/get_calendar_security200_response_spec.rb +78 -0
  508. data/spec/models/get_contact_list200_response_members_inner_spec.rb +48 -0
  509. data/spec/models/get_contact_list200_response_spec.rb +42 -0
  510. data/spec/models/get_contact_lists200_response_data_inner_spec.rb +48 -0
  511. data/spec/models/get_contact_lists200_response_spec.rb +36 -0
  512. data/spec/models/get_directory_activity200_response_data_inner_spec.rb +54 -0
  513. data/spec/models/get_directory_activity200_response_spec.rb +36 -0
  514. data/spec/models/get_directory_stats200_response_spec.rb +66 -0
  515. data/spec/models/get_domains_status200_response_domains_inner_checks_inner_spec.rb +52 -0
  516. data/spec/models/get_domains_status200_response_domains_inner_spec.rb +48 -0
  517. data/spec/models/get_domains_status200_response_spec.rb +42 -0
  518. data/spec/models/get_encryption_key200_response_spec.rb +66 -0
  519. data/spec/models/get_integrations_summary200_response_api_keys_inner_spec.rb +48 -0
  520. data/spec/models/get_integrations_summary200_response_spec.rb +72 -0
  521. data/spec/models/get_integrations_summary200_response_webhooks_inner_spec.rb +54 -0
  522. data/spec/models/get_ip_assignment200_response_spec.rb +60 -0
  523. data/spec/models/get_security200_response_alerts_inner_spec.rb +52 -0
  524. data/spec/models/get_security200_response_spec.rb +52 -0
  525. data/spec/models/get_security200_response_stats_inner_spec.rb +48 -0
  526. data/spec/models/get_storage200_response_spec.rb +66 -0
  527. data/spec/models/get_storage200_response_top_mailboxes_inner_spec.rb +42 -0
  528. data/spec/models/get_storage200_response_top_messages_inner_spec.rb +60 -0
  529. data/spec/models/get_user_insights200_response_spec.rb +66 -0
  530. data/spec/models/healthz_get200_response_spec.rb +46 -0
  531. data/spec/models/list_add_ons200_response_spec.rb +36 -0
  532. data/spec/models/list_calendar_events200_response_spec.rb +36 -0
  533. data/spec/models/list_calendar_integrations200_response_spec.rb +36 -0
  534. data/spec/models/list_calendar_members200_response_spec.rb +36 -0
  535. data/spec/models/list_calendars200_response_spec.rb +36 -0
  536. data/spec/models/list_contact_lists200_response_spec.rb +36 -0
  537. data/spec/models/list_contacts200_response_spec.rb +36 -0
  538. data/spec/models/list_dedicated_ip_requests200_response_spec.rb +36 -0
  539. data/spec/models/list_distribution_lists200_response_spec.rb +36 -0
  540. data/spec/models/list_migration_credentials200_response_spec.rb +36 -0
  541. data/spec/models/list_migration_events200_response_spec.rb +36 -0
  542. data/spec/models/list_migration_mailboxes200_response_spec.rb +36 -0
  543. data/spec/models/list_migrations200_response_spec.rb +36 -0
  544. data/spec/models/list_resources200_response_spec.rb +36 -0
  545. data/spec/models/list_shared_members200_response_spec.rb +36 -0
  546. data/spec/models/list_users200_response_spec.rb +42 -0
  547. data/spec/models/mailbox_spec.rb +96 -0
  548. data/spec/models/map_migration_request_mappings_inner_spec.rb +42 -0
  549. data/spec/models/map_migration_request_spec.rb +36 -0
  550. data/spec/models/message_spec.rb +100 -0
  551. data/spec/models/message_stats_counts_spec.rb +54 -0
  552. data/spec/models/message_stats_rates_spec.rb +54 -0
  553. data/spec/models/message_stats_spec.rb +60 -0
  554. data/spec/models/message_stats_window_spec.rb +42 -0
  555. data/spec/models/migration_credential_spec.rb +76 -0
  556. data/spec/models/migration_event_spec.rb +90 -0
  557. data/spec/models/migration_mailbox_spec.rb +144 -0
  558. data/spec/models/migration_progress_mailboxes_inner_spec.rb +72 -0
  559. data/spec/models/migration_progress_spec.rb +90 -0
  560. data/spec/models/migration_settings_spec.rb +60 -0
  561. data/spec/models/migration_spec.rb +118 -0
  562. data/spec/models/model_alias_spec.rb +60 -0
  563. data/spec/models/plan_catalog_entry_spec.rb +90 -0
  564. data/spec/models/problem_spec.rb +60 -0
  565. data/spec/models/replace_distribution_list_members200_response_spec.rb +60 -0
  566. data/spec/models/replace_distribution_list_members_request_spec.rb +36 -0
  567. data/spec/models/resource_spec.rb +82 -0
  568. data/spec/models/rotate_encryption_key_request_spec.rb +48 -0
  569. data/spec/models/send_message_spec.rb +108 -0
  570. data/spec/models/shared_member_spec.rb +70 -0
  571. data/spec/models/signup_request_spec.rb +64 -0
  572. data/spec/models/start_migration202_response_spec.rb +42 -0
  573. data/spec/models/suppression_spec.rb +58 -0
  574. data/spec/models/template_input_spec.rb +54 -0
  575. data/spec/models/template_spec.rb +72 -0
  576. data/spec/models/tenant_spec.rb +106 -0
  577. data/spec/models/unit_bundle_spec.rb +60 -0
  578. data/spec/models/update_calendar_event_request_spec.rb +66 -0
  579. data/spec/models/update_calendar_integration_request_spec.rb +52 -0
  580. data/spec/models/update_calendar_member_request_spec.rb +40 -0
  581. data/spec/models/update_calendar_policies_request_spec.rb +88 -0
  582. data/spec/models/update_calendar_request_spec.rb +64 -0
  583. data/spec/models/update_contact_list_request_spec.rb +52 -0
  584. data/spec/models/update_contact_request_spec.rb +92 -0
  585. data/spec/models/update_directory_permissions_request_spec.rb +70 -0
  586. data/spec/models/update_gal_settings_request_spec.rb +64 -0
  587. data/spec/models/update_migration_mailbox_request_spec.rb +42 -0
  588. data/spec/models/update_migration_request_spec.rb +42 -0
  589. data/spec/models/update_resource_request_spec.rb +62 -0
  590. data/spec/models/update_user_request_spec.rb +64 -0
  591. data/spec/models/user_event_spec.rb +48 -0
  592. data/spec/models/user_spec.rb +100 -0
  593. data/spec/models/v1_admin_login_post200_response_spec.rb +54 -0
  594. data/spec/models/v1_admin_login_post_request_spec.rb +42 -0
  595. data/spec/models/v1_admin_me_get200_response_spec.rb +42 -0
  596. data/spec/models/v1_admins_get200_response_spec.rb +36 -0
  597. data/spec/models/v1_admins_id_patch_request_spec.rb +58 -0
  598. data/spec/models/v1_admins_post_request_spec.rb +58 -0
  599. data/spec/models/v1_aliases_get200_response_spec.rb +36 -0
  600. data/spec/models/v1_aliases_post_request_spec.rb +42 -0
  601. data/spec/models/v1_api_keys_get200_response_spec.rb +36 -0
  602. data/spec/models/v1_api_keys_post201_response_spec.rb +84 -0
  603. data/spec/models/v1_api_keys_post_request_spec.rb +46 -0
  604. data/spec/models/v1_domains_get200_response_spec.rb +36 -0
  605. data/spec/models/v1_domains_post_request_spec.rb +36 -0
  606. data/spec/models/v1_inboxes_mailbox_messages_post_request_spec.rb +60 -0
  607. data/spec/models/v1_mailboxes_email_export_post201_response_spec.rb +52 -0
  608. data/spec/models/v1_mailboxes_email_patch_request_spec.rb +48 -0
  609. data/spec/models/v1_mailboxes_email_vacation_put_request_spec.rb +42 -0
  610. data/spec/models/v1_mailboxes_get200_response_spec.rb +42 -0
  611. data/spec/models/v1_mailboxes_post_request_spec.rb +48 -0
  612. data/spec/models/v1_messages_get200_response_spec.rb +42 -0
  613. data/spec/models/v1_send_batch_post200_response_spec.rb +36 -0
  614. data/spec/models/v1_send_batch_post_request_spec.rb +36 -0
  615. data/spec/models/v1_send_post202_response_spec.rb +58 -0
  616. data/spec/models/v1_send_post_request_attachments_inner_spec.rb +48 -0
  617. data/spec/models/v1_send_post_request_spec.rb +108 -0
  618. data/spec/models/v1_suppressions_get200_response_spec.rb +42 -0
  619. data/spec/models/v1_suppressions_post_request_spec.rb +46 -0
  620. data/spec/models/v1_templates_get200_response_spec.rb +36 -0
  621. data/spec/models/v1_usage_get200_response_spec.rb +108 -0
  622. data/spec/models/v1_vacation_get200_response_spec.rb +36 -0
  623. data/spec/models/v1_webhooks_get200_response_spec.rb +36 -0
  624. data/spec/models/v1_webhooks_id_patch_request_spec.rb +48 -0
  625. data/spec/models/v1_webhooks_post_request_spec.rb +42 -0
  626. data/spec/models/vacation_params_spec.rb +54 -0
  627. data/spec/models/vacation_responder_spec.rb +72 -0
  628. data/spec/models/webhook_spec.rb +96 -0
  629. data/spec/spec_helper.rb +111 -0
  630. metadata +952 -0
@@ -0,0 +1,1434 @@
1
+ # Lockally::MigrationsApi
2
+
3
+ All URIs are relative to *https://api.lockally.com*
4
+
5
+ | Method | HTTP request | Description |
6
+ | ------ | ------------ | ----------- |
7
+ | [**cancel_migration**](MigrationsApi.md#cancel_migration) | **POST** /v1/migrations/{id}/cancel | Cancel a running migration |
8
+ | [**check_migration_dns**](MigrationsApi.md#check_migration_dns) | **GET** /v1/migrations/{id}/dns-check | Check DNS readiness for cutover |
9
+ | [**create_migration**](MigrationsApi.md#create_migration) | **POST** /v1/migrations | Create a migration |
10
+ | [**create_migration_credential**](MigrationsApi.md#create_migration_credential) | **POST** /v1/migrations/credentials | Store a migration credential |
11
+ | [**delete_migration**](MigrationsApi.md#delete_migration) | **DELETE** /v1/migrations/{id} | Delete a migration |
12
+ | [**delete_migration_credential**](MigrationsApi.md#delete_migration_credential) | **DELETE** /v1/migrations/credentials/{id} | Delete a migration credential |
13
+ | [**delta_sync_migration**](MigrationsApi.md#delta_sync_migration) | **POST** /v1/migrations/{id}/delta-sync | Run a delta sync |
14
+ | [**discover_migration**](MigrationsApi.md#discover_migration) | **POST** /v1/migrations/{id}/discover | Discover source mailboxes |
15
+ | [**final_sync_migration**](MigrationsApi.md#final_sync_migration) | **POST** /v1/migrations/{id}/final-sync | Run the final sync before cutover |
16
+ | [**get_migration**](MigrationsApi.md#get_migration) | **GET** /v1/migrations/{id} | Get a migration |
17
+ | [**get_migration_progress**](MigrationsApi.md#get_migration_progress) | **GET** /v1/migrations/{id}/progress | Get migration progress |
18
+ | [**list_migration_credentials**](MigrationsApi.md#list_migration_credentials) | **GET** /v1/migrations/credentials | List migration credentials |
19
+ | [**list_migration_events**](MigrationsApi.md#list_migration_events) | **GET** /v1/migrations/{id}/events | List migration events |
20
+ | [**list_migration_mailboxes**](MigrationsApi.md#list_migration_mailboxes) | **GET** /v1/migrations/{id}/mailboxes | List migration mailboxes |
21
+ | [**list_migrations**](MigrationsApi.md#list_migrations) | **GET** /v1/migrations | List migrations |
22
+ | [**map_migration**](MigrationsApi.md#map_migration) | **POST** /v1/migrations/{id}/map | Map source to destination mailboxes |
23
+ | [**retry_migration**](MigrationsApi.md#retry_migration) | **POST** /v1/migrations/{id}/retry | Retry a failed or cancelled migration |
24
+ | [**start_migration**](MigrationsApi.md#start_migration) | **POST** /v1/migrations/{id}/start | Start the migration |
25
+ | [**update_migration**](MigrationsApi.md#update_migration) | **PATCH** /v1/migrations/{id} | Update a migration |
26
+ | [**update_migration_mailbox**](MigrationsApi.md#update_migration_mailbox) | **PATCH** /v1/migrations/{id}/mailboxes/{mbxId} | Update a migration mailbox |
27
+ | [**validate_migration**](MigrationsApi.md#validate_migration) | **POST** /v1/migrations/{id}/validate | Validate migrated data |
28
+
29
+
30
+ ## cancel_migration
31
+
32
+ > <DiscoverMigration202Response> cancel_migration(id)
33
+
34
+ Cancel a running migration
35
+
36
+ ### Examples
37
+
38
+ ```ruby
39
+ require 'time'
40
+ require 'lockally'
41
+ # setup authorization
42
+ Lockally.configure do |config|
43
+ # Configure Bearer authorization (lk_live_<prefix>_<secret>): bearerAuth
44
+ config.access_token = 'YOUR_BEARER_TOKEN'
45
+ end
46
+
47
+ api_instance = Lockally::MigrationsApi.new
48
+ id = '38400000-8cf0-11bd-b23e-10b96e4ef00d' # String |
49
+
50
+ begin
51
+ # Cancel a running migration
52
+ result = api_instance.cancel_migration(id)
53
+ p result
54
+ rescue Lockally::ApiError => e
55
+ puts "Error when calling MigrationsApi->cancel_migration: #{e}"
56
+ end
57
+ ```
58
+
59
+ #### Using the cancel_migration_with_http_info variant
60
+
61
+ This returns an Array which contains the response data, status code and headers.
62
+
63
+ > <Array(<DiscoverMigration202Response>, Integer, Hash)> cancel_migration_with_http_info(id)
64
+
65
+ ```ruby
66
+ begin
67
+ # Cancel a running migration
68
+ data, status_code, headers = api_instance.cancel_migration_with_http_info(id)
69
+ p status_code # => 2xx
70
+ p headers # => { ... }
71
+ p data # => <DiscoverMigration202Response>
72
+ rescue Lockally::ApiError => e
73
+ puts "Error when calling MigrationsApi->cancel_migration_with_http_info: #{e}"
74
+ end
75
+ ```
76
+
77
+ ### Parameters
78
+
79
+ | Name | Type | Description | Notes |
80
+ | ---- | ---- | ----------- | ----- |
81
+ | **id** | **String** | | |
82
+
83
+ ### Return type
84
+
85
+ [**DiscoverMigration202Response**](DiscoverMigration202Response.md)
86
+
87
+ ### Authorization
88
+
89
+ [bearerAuth](../README.md#bearerAuth)
90
+
91
+ ### HTTP request headers
92
+
93
+ - **Content-Type**: Not defined
94
+ - **Accept**: application/json, application/problem+json
95
+
96
+
97
+ ## check_migration_dns
98
+
99
+ > Object check_migration_dns(id)
100
+
101
+ Check DNS readiness for cutover
102
+
103
+ ### Examples
104
+
105
+ ```ruby
106
+ require 'time'
107
+ require 'lockally'
108
+ # setup authorization
109
+ Lockally.configure do |config|
110
+ # Configure Bearer authorization (lk_live_<prefix>_<secret>): bearerAuth
111
+ config.access_token = 'YOUR_BEARER_TOKEN'
112
+ end
113
+
114
+ api_instance = Lockally::MigrationsApi.new
115
+ id = '38400000-8cf0-11bd-b23e-10b96e4ef00d' # String |
116
+
117
+ begin
118
+ # Check DNS readiness for cutover
119
+ result = api_instance.check_migration_dns(id)
120
+ p result
121
+ rescue Lockally::ApiError => e
122
+ puts "Error when calling MigrationsApi->check_migration_dns: #{e}"
123
+ end
124
+ ```
125
+
126
+ #### Using the check_migration_dns_with_http_info variant
127
+
128
+ This returns an Array which contains the response data, status code and headers.
129
+
130
+ > <Array(Object, Integer, Hash)> check_migration_dns_with_http_info(id)
131
+
132
+ ```ruby
133
+ begin
134
+ # Check DNS readiness for cutover
135
+ data, status_code, headers = api_instance.check_migration_dns_with_http_info(id)
136
+ p status_code # => 2xx
137
+ p headers # => { ... }
138
+ p data # => Object
139
+ rescue Lockally::ApiError => e
140
+ puts "Error when calling MigrationsApi->check_migration_dns_with_http_info: #{e}"
141
+ end
142
+ ```
143
+
144
+ ### Parameters
145
+
146
+ | Name | Type | Description | Notes |
147
+ | ---- | ---- | ----------- | ----- |
148
+ | **id** | **String** | | |
149
+
150
+ ### Return type
151
+
152
+ **Object**
153
+
154
+ ### Authorization
155
+
156
+ [bearerAuth](../README.md#bearerAuth)
157
+
158
+ ### HTTP request headers
159
+
160
+ - **Content-Type**: Not defined
161
+ - **Accept**: application/json, application/problem+json
162
+
163
+
164
+ ## create_migration
165
+
166
+ > <Migration> create_migration(create_migration_request)
167
+
168
+ Create a migration
169
+
170
+ ### Examples
171
+
172
+ ```ruby
173
+ require 'time'
174
+ require 'lockally'
175
+ # setup authorization
176
+ Lockally.configure do |config|
177
+ # Configure Bearer authorization (lk_live_<prefix>_<secret>): bearerAuth
178
+ config.access_token = 'YOUR_BEARER_TOKEN'
179
+ end
180
+
181
+ api_instance = Lockally::MigrationsApi.new
182
+ create_migration_request = Lockally::CreateMigrationRequest.new({name: 'name_example', credential_id: 'credential_id_example', source_provider: 'source_provider_example'}) # CreateMigrationRequest |
183
+
184
+ begin
185
+ # Create a migration
186
+ result = api_instance.create_migration(create_migration_request)
187
+ p result
188
+ rescue Lockally::ApiError => e
189
+ puts "Error when calling MigrationsApi->create_migration: #{e}"
190
+ end
191
+ ```
192
+
193
+ #### Using the create_migration_with_http_info variant
194
+
195
+ This returns an Array which contains the response data, status code and headers.
196
+
197
+ > <Array(<Migration>, Integer, Hash)> create_migration_with_http_info(create_migration_request)
198
+
199
+ ```ruby
200
+ begin
201
+ # Create a migration
202
+ data, status_code, headers = api_instance.create_migration_with_http_info(create_migration_request)
203
+ p status_code # => 2xx
204
+ p headers # => { ... }
205
+ p data # => <Migration>
206
+ rescue Lockally::ApiError => e
207
+ puts "Error when calling MigrationsApi->create_migration_with_http_info: #{e}"
208
+ end
209
+ ```
210
+
211
+ ### Parameters
212
+
213
+ | Name | Type | Description | Notes |
214
+ | ---- | ---- | ----------- | ----- |
215
+ | **create_migration_request** | [**CreateMigrationRequest**](CreateMigrationRequest.md) | | |
216
+
217
+ ### Return type
218
+
219
+ [**Migration**](Migration.md)
220
+
221
+ ### Authorization
222
+
223
+ [bearerAuth](../README.md#bearerAuth)
224
+
225
+ ### HTTP request headers
226
+
227
+ - **Content-Type**: application/json
228
+ - **Accept**: application/json, application/problem+json
229
+
230
+
231
+ ## create_migration_credential
232
+
233
+ > <MigrationCredential> create_migration_credential(create_migration_credential_request)
234
+
235
+ Store a migration credential
236
+
237
+ ### Examples
238
+
239
+ ```ruby
240
+ require 'time'
241
+ require 'lockally'
242
+ # setup authorization
243
+ Lockally.configure do |config|
244
+ # Configure Bearer authorization (lk_live_<prefix>_<secret>): bearerAuth
245
+ config.access_token = 'YOUR_BEARER_TOKEN'
246
+ end
247
+
248
+ api_instance = Lockally::MigrationsApi.new
249
+ create_migration_credential_request = Lockally::CreateMigrationCredentialRequest.new({provider: 'imap', credentials: Lockally::CreateMigrationCredentialRequestCredentials.new({host: 'host_example', port: 37})}) # CreateMigrationCredentialRequest |
250
+
251
+ begin
252
+ # Store a migration credential
253
+ result = api_instance.create_migration_credential(create_migration_credential_request)
254
+ p result
255
+ rescue Lockally::ApiError => e
256
+ puts "Error when calling MigrationsApi->create_migration_credential: #{e}"
257
+ end
258
+ ```
259
+
260
+ #### Using the create_migration_credential_with_http_info variant
261
+
262
+ This returns an Array which contains the response data, status code and headers.
263
+
264
+ > <Array(<MigrationCredential>, Integer, Hash)> create_migration_credential_with_http_info(create_migration_credential_request)
265
+
266
+ ```ruby
267
+ begin
268
+ # Store a migration credential
269
+ data, status_code, headers = api_instance.create_migration_credential_with_http_info(create_migration_credential_request)
270
+ p status_code # => 2xx
271
+ p headers # => { ... }
272
+ p data # => <MigrationCredential>
273
+ rescue Lockally::ApiError => e
274
+ puts "Error when calling MigrationsApi->create_migration_credential_with_http_info: #{e}"
275
+ end
276
+ ```
277
+
278
+ ### Parameters
279
+
280
+ | Name | Type | Description | Notes |
281
+ | ---- | ---- | ----------- | ----- |
282
+ | **create_migration_credential_request** | [**CreateMigrationCredentialRequest**](CreateMigrationCredentialRequest.md) | | |
283
+
284
+ ### Return type
285
+
286
+ [**MigrationCredential**](MigrationCredential.md)
287
+
288
+ ### Authorization
289
+
290
+ [bearerAuth](../README.md#bearerAuth)
291
+
292
+ ### HTTP request headers
293
+
294
+ - **Content-Type**: application/json
295
+ - **Accept**: application/json, application/problem+json
296
+
297
+
298
+ ## delete_migration
299
+
300
+ > delete_migration(id)
301
+
302
+ Delete a migration
303
+
304
+ ### Examples
305
+
306
+ ```ruby
307
+ require 'time'
308
+ require 'lockally'
309
+ # setup authorization
310
+ Lockally.configure do |config|
311
+ # Configure Bearer authorization (lk_live_<prefix>_<secret>): bearerAuth
312
+ config.access_token = 'YOUR_BEARER_TOKEN'
313
+ end
314
+
315
+ api_instance = Lockally::MigrationsApi.new
316
+ id = '38400000-8cf0-11bd-b23e-10b96e4ef00d' # String |
317
+
318
+ begin
319
+ # Delete a migration
320
+ api_instance.delete_migration(id)
321
+ rescue Lockally::ApiError => e
322
+ puts "Error when calling MigrationsApi->delete_migration: #{e}"
323
+ end
324
+ ```
325
+
326
+ #### Using the delete_migration_with_http_info variant
327
+
328
+ This returns an Array which contains the response data (`nil` in this case), status code and headers.
329
+
330
+ > <Array(nil, Integer, Hash)> delete_migration_with_http_info(id)
331
+
332
+ ```ruby
333
+ begin
334
+ # Delete a migration
335
+ data, status_code, headers = api_instance.delete_migration_with_http_info(id)
336
+ p status_code # => 2xx
337
+ p headers # => { ... }
338
+ p data # => nil
339
+ rescue Lockally::ApiError => e
340
+ puts "Error when calling MigrationsApi->delete_migration_with_http_info: #{e}"
341
+ end
342
+ ```
343
+
344
+ ### Parameters
345
+
346
+ | Name | Type | Description | Notes |
347
+ | ---- | ---- | ----------- | ----- |
348
+ | **id** | **String** | | |
349
+
350
+ ### Return type
351
+
352
+ nil (empty response body)
353
+
354
+ ### Authorization
355
+
356
+ [bearerAuth](../README.md#bearerAuth)
357
+
358
+ ### HTTP request headers
359
+
360
+ - **Content-Type**: Not defined
361
+ - **Accept**: application/problem+json
362
+
363
+
364
+ ## delete_migration_credential
365
+
366
+ > delete_migration_credential(id)
367
+
368
+ Delete a migration credential
369
+
370
+ ### Examples
371
+
372
+ ```ruby
373
+ require 'time'
374
+ require 'lockally'
375
+ # setup authorization
376
+ Lockally.configure do |config|
377
+ # Configure Bearer authorization (lk_live_<prefix>_<secret>): bearerAuth
378
+ config.access_token = 'YOUR_BEARER_TOKEN'
379
+ end
380
+
381
+ api_instance = Lockally::MigrationsApi.new
382
+ id = '38400000-8cf0-11bd-b23e-10b96e4ef00d' # String |
383
+
384
+ begin
385
+ # Delete a migration credential
386
+ api_instance.delete_migration_credential(id)
387
+ rescue Lockally::ApiError => e
388
+ puts "Error when calling MigrationsApi->delete_migration_credential: #{e}"
389
+ end
390
+ ```
391
+
392
+ #### Using the delete_migration_credential_with_http_info variant
393
+
394
+ This returns an Array which contains the response data (`nil` in this case), status code and headers.
395
+
396
+ > <Array(nil, Integer, Hash)> delete_migration_credential_with_http_info(id)
397
+
398
+ ```ruby
399
+ begin
400
+ # Delete a migration credential
401
+ data, status_code, headers = api_instance.delete_migration_credential_with_http_info(id)
402
+ p status_code # => 2xx
403
+ p headers # => { ... }
404
+ p data # => nil
405
+ rescue Lockally::ApiError => e
406
+ puts "Error when calling MigrationsApi->delete_migration_credential_with_http_info: #{e}"
407
+ end
408
+ ```
409
+
410
+ ### Parameters
411
+
412
+ | Name | Type | Description | Notes |
413
+ | ---- | ---- | ----------- | ----- |
414
+ | **id** | **String** | | |
415
+
416
+ ### Return type
417
+
418
+ nil (empty response body)
419
+
420
+ ### Authorization
421
+
422
+ [bearerAuth](../README.md#bearerAuth)
423
+
424
+ ### HTTP request headers
425
+
426
+ - **Content-Type**: Not defined
427
+ - **Accept**: application/problem+json
428
+
429
+
430
+ ## delta_sync_migration
431
+
432
+ > <StartMigration202Response> delta_sync_migration(id)
433
+
434
+ Run a delta sync
435
+
436
+ ### Examples
437
+
438
+ ```ruby
439
+ require 'time'
440
+ require 'lockally'
441
+ # setup authorization
442
+ Lockally.configure do |config|
443
+ # Configure Bearer authorization (lk_live_<prefix>_<secret>): bearerAuth
444
+ config.access_token = 'YOUR_BEARER_TOKEN'
445
+ end
446
+
447
+ api_instance = Lockally::MigrationsApi.new
448
+ id = '38400000-8cf0-11bd-b23e-10b96e4ef00d' # String |
449
+
450
+ begin
451
+ # Run a delta sync
452
+ result = api_instance.delta_sync_migration(id)
453
+ p result
454
+ rescue Lockally::ApiError => e
455
+ puts "Error when calling MigrationsApi->delta_sync_migration: #{e}"
456
+ end
457
+ ```
458
+
459
+ #### Using the delta_sync_migration_with_http_info variant
460
+
461
+ This returns an Array which contains the response data, status code and headers.
462
+
463
+ > <Array(<StartMigration202Response>, Integer, Hash)> delta_sync_migration_with_http_info(id)
464
+
465
+ ```ruby
466
+ begin
467
+ # Run a delta sync
468
+ data, status_code, headers = api_instance.delta_sync_migration_with_http_info(id)
469
+ p status_code # => 2xx
470
+ p headers # => { ... }
471
+ p data # => <StartMigration202Response>
472
+ rescue Lockally::ApiError => e
473
+ puts "Error when calling MigrationsApi->delta_sync_migration_with_http_info: #{e}"
474
+ end
475
+ ```
476
+
477
+ ### Parameters
478
+
479
+ | Name | Type | Description | Notes |
480
+ | ---- | ---- | ----------- | ----- |
481
+ | **id** | **String** | | |
482
+
483
+ ### Return type
484
+
485
+ [**StartMigration202Response**](StartMigration202Response.md)
486
+
487
+ ### Authorization
488
+
489
+ [bearerAuth](../README.md#bearerAuth)
490
+
491
+ ### HTTP request headers
492
+
493
+ - **Content-Type**: Not defined
494
+ - **Accept**: application/json, application/problem+json
495
+
496
+
497
+ ## discover_migration
498
+
499
+ > <DiscoverMigration202Response> discover_migration(id)
500
+
501
+ Discover source mailboxes
502
+
503
+ ### Examples
504
+
505
+ ```ruby
506
+ require 'time'
507
+ require 'lockally'
508
+ # setup authorization
509
+ Lockally.configure do |config|
510
+ # Configure Bearer authorization (lk_live_<prefix>_<secret>): bearerAuth
511
+ config.access_token = 'YOUR_BEARER_TOKEN'
512
+ end
513
+
514
+ api_instance = Lockally::MigrationsApi.new
515
+ id = '38400000-8cf0-11bd-b23e-10b96e4ef00d' # String |
516
+
517
+ begin
518
+ # Discover source mailboxes
519
+ result = api_instance.discover_migration(id)
520
+ p result
521
+ rescue Lockally::ApiError => e
522
+ puts "Error when calling MigrationsApi->discover_migration: #{e}"
523
+ end
524
+ ```
525
+
526
+ #### Using the discover_migration_with_http_info variant
527
+
528
+ This returns an Array which contains the response data, status code and headers.
529
+
530
+ > <Array(<DiscoverMigration202Response>, Integer, Hash)> discover_migration_with_http_info(id)
531
+
532
+ ```ruby
533
+ begin
534
+ # Discover source mailboxes
535
+ data, status_code, headers = api_instance.discover_migration_with_http_info(id)
536
+ p status_code # => 2xx
537
+ p headers # => { ... }
538
+ p data # => <DiscoverMigration202Response>
539
+ rescue Lockally::ApiError => e
540
+ puts "Error when calling MigrationsApi->discover_migration_with_http_info: #{e}"
541
+ end
542
+ ```
543
+
544
+ ### Parameters
545
+
546
+ | Name | Type | Description | Notes |
547
+ | ---- | ---- | ----------- | ----- |
548
+ | **id** | **String** | | |
549
+
550
+ ### Return type
551
+
552
+ [**DiscoverMigration202Response**](DiscoverMigration202Response.md)
553
+
554
+ ### Authorization
555
+
556
+ [bearerAuth](../README.md#bearerAuth)
557
+
558
+ ### HTTP request headers
559
+
560
+ - **Content-Type**: Not defined
561
+ - **Accept**: application/json, application/problem+json
562
+
563
+
564
+ ## final_sync_migration
565
+
566
+ > <StartMigration202Response> final_sync_migration(id)
567
+
568
+ Run the final sync before cutover
569
+
570
+ ### Examples
571
+
572
+ ```ruby
573
+ require 'time'
574
+ require 'lockally'
575
+ # setup authorization
576
+ Lockally.configure do |config|
577
+ # Configure Bearer authorization (lk_live_<prefix>_<secret>): bearerAuth
578
+ config.access_token = 'YOUR_BEARER_TOKEN'
579
+ end
580
+
581
+ api_instance = Lockally::MigrationsApi.new
582
+ id = '38400000-8cf0-11bd-b23e-10b96e4ef00d' # String |
583
+
584
+ begin
585
+ # Run the final sync before cutover
586
+ result = api_instance.final_sync_migration(id)
587
+ p result
588
+ rescue Lockally::ApiError => e
589
+ puts "Error when calling MigrationsApi->final_sync_migration: #{e}"
590
+ end
591
+ ```
592
+
593
+ #### Using the final_sync_migration_with_http_info variant
594
+
595
+ This returns an Array which contains the response data, status code and headers.
596
+
597
+ > <Array(<StartMigration202Response>, Integer, Hash)> final_sync_migration_with_http_info(id)
598
+
599
+ ```ruby
600
+ begin
601
+ # Run the final sync before cutover
602
+ data, status_code, headers = api_instance.final_sync_migration_with_http_info(id)
603
+ p status_code # => 2xx
604
+ p headers # => { ... }
605
+ p data # => <StartMigration202Response>
606
+ rescue Lockally::ApiError => e
607
+ puts "Error when calling MigrationsApi->final_sync_migration_with_http_info: #{e}"
608
+ end
609
+ ```
610
+
611
+ ### Parameters
612
+
613
+ | Name | Type | Description | Notes |
614
+ | ---- | ---- | ----------- | ----- |
615
+ | **id** | **String** | | |
616
+
617
+ ### Return type
618
+
619
+ [**StartMigration202Response**](StartMigration202Response.md)
620
+
621
+ ### Authorization
622
+
623
+ [bearerAuth](../README.md#bearerAuth)
624
+
625
+ ### HTTP request headers
626
+
627
+ - **Content-Type**: Not defined
628
+ - **Accept**: application/json, application/problem+json
629
+
630
+
631
+ ## get_migration
632
+
633
+ > <Migration> get_migration(id)
634
+
635
+ Get a migration
636
+
637
+ ### Examples
638
+
639
+ ```ruby
640
+ require 'time'
641
+ require 'lockally'
642
+ # setup authorization
643
+ Lockally.configure do |config|
644
+ # Configure Bearer authorization (lk_live_<prefix>_<secret>): bearerAuth
645
+ config.access_token = 'YOUR_BEARER_TOKEN'
646
+ end
647
+
648
+ api_instance = Lockally::MigrationsApi.new
649
+ id = '38400000-8cf0-11bd-b23e-10b96e4ef00d' # String |
650
+
651
+ begin
652
+ # Get a migration
653
+ result = api_instance.get_migration(id)
654
+ p result
655
+ rescue Lockally::ApiError => e
656
+ puts "Error when calling MigrationsApi->get_migration: #{e}"
657
+ end
658
+ ```
659
+
660
+ #### Using the get_migration_with_http_info variant
661
+
662
+ This returns an Array which contains the response data, status code and headers.
663
+
664
+ > <Array(<Migration>, Integer, Hash)> get_migration_with_http_info(id)
665
+
666
+ ```ruby
667
+ begin
668
+ # Get a migration
669
+ data, status_code, headers = api_instance.get_migration_with_http_info(id)
670
+ p status_code # => 2xx
671
+ p headers # => { ... }
672
+ p data # => <Migration>
673
+ rescue Lockally::ApiError => e
674
+ puts "Error when calling MigrationsApi->get_migration_with_http_info: #{e}"
675
+ end
676
+ ```
677
+
678
+ ### Parameters
679
+
680
+ | Name | Type | Description | Notes |
681
+ | ---- | ---- | ----------- | ----- |
682
+ | **id** | **String** | | |
683
+
684
+ ### Return type
685
+
686
+ [**Migration**](Migration.md)
687
+
688
+ ### Authorization
689
+
690
+ [bearerAuth](../README.md#bearerAuth)
691
+
692
+ ### HTTP request headers
693
+
694
+ - **Content-Type**: Not defined
695
+ - **Accept**: application/json, application/problem+json
696
+
697
+
698
+ ## get_migration_progress
699
+
700
+ > <MigrationProgress> get_migration_progress(id)
701
+
702
+ Get migration progress
703
+
704
+ ### Examples
705
+
706
+ ```ruby
707
+ require 'time'
708
+ require 'lockally'
709
+ # setup authorization
710
+ Lockally.configure do |config|
711
+ # Configure Bearer authorization (lk_live_<prefix>_<secret>): bearerAuth
712
+ config.access_token = 'YOUR_BEARER_TOKEN'
713
+ end
714
+
715
+ api_instance = Lockally::MigrationsApi.new
716
+ id = '38400000-8cf0-11bd-b23e-10b96e4ef00d' # String |
717
+
718
+ begin
719
+ # Get migration progress
720
+ result = api_instance.get_migration_progress(id)
721
+ p result
722
+ rescue Lockally::ApiError => e
723
+ puts "Error when calling MigrationsApi->get_migration_progress: #{e}"
724
+ end
725
+ ```
726
+
727
+ #### Using the get_migration_progress_with_http_info variant
728
+
729
+ This returns an Array which contains the response data, status code and headers.
730
+
731
+ > <Array(<MigrationProgress>, Integer, Hash)> get_migration_progress_with_http_info(id)
732
+
733
+ ```ruby
734
+ begin
735
+ # Get migration progress
736
+ data, status_code, headers = api_instance.get_migration_progress_with_http_info(id)
737
+ p status_code # => 2xx
738
+ p headers # => { ... }
739
+ p data # => <MigrationProgress>
740
+ rescue Lockally::ApiError => e
741
+ puts "Error when calling MigrationsApi->get_migration_progress_with_http_info: #{e}"
742
+ end
743
+ ```
744
+
745
+ ### Parameters
746
+
747
+ | Name | Type | Description | Notes |
748
+ | ---- | ---- | ----------- | ----- |
749
+ | **id** | **String** | | |
750
+
751
+ ### Return type
752
+
753
+ [**MigrationProgress**](MigrationProgress.md)
754
+
755
+ ### Authorization
756
+
757
+ [bearerAuth](../README.md#bearerAuth)
758
+
759
+ ### HTTP request headers
760
+
761
+ - **Content-Type**: Not defined
762
+ - **Accept**: application/json, application/problem+json
763
+
764
+
765
+ ## list_migration_credentials
766
+
767
+ > <ListMigrationCredentials200Response> list_migration_credentials
768
+
769
+ List migration credentials
770
+
771
+ ### Examples
772
+
773
+ ```ruby
774
+ require 'time'
775
+ require 'lockally'
776
+ # setup authorization
777
+ Lockally.configure do |config|
778
+ # Configure Bearer authorization (lk_live_<prefix>_<secret>): bearerAuth
779
+ config.access_token = 'YOUR_BEARER_TOKEN'
780
+ end
781
+
782
+ api_instance = Lockally::MigrationsApi.new
783
+
784
+ begin
785
+ # List migration credentials
786
+ result = api_instance.list_migration_credentials
787
+ p result
788
+ rescue Lockally::ApiError => e
789
+ puts "Error when calling MigrationsApi->list_migration_credentials: #{e}"
790
+ end
791
+ ```
792
+
793
+ #### Using the list_migration_credentials_with_http_info variant
794
+
795
+ This returns an Array which contains the response data, status code and headers.
796
+
797
+ > <Array(<ListMigrationCredentials200Response>, Integer, Hash)> list_migration_credentials_with_http_info
798
+
799
+ ```ruby
800
+ begin
801
+ # List migration credentials
802
+ data, status_code, headers = api_instance.list_migration_credentials_with_http_info
803
+ p status_code # => 2xx
804
+ p headers # => { ... }
805
+ p data # => <ListMigrationCredentials200Response>
806
+ rescue Lockally::ApiError => e
807
+ puts "Error when calling MigrationsApi->list_migration_credentials_with_http_info: #{e}"
808
+ end
809
+ ```
810
+
811
+ ### Parameters
812
+
813
+ This endpoint does not need any parameter.
814
+
815
+ ### Return type
816
+
817
+ [**ListMigrationCredentials200Response**](ListMigrationCredentials200Response.md)
818
+
819
+ ### Authorization
820
+
821
+ [bearerAuth](../README.md#bearerAuth)
822
+
823
+ ### HTTP request headers
824
+
825
+ - **Content-Type**: Not defined
826
+ - **Accept**: application/json, application/problem+json
827
+
828
+
829
+ ## list_migration_events
830
+
831
+ > <ListMigrationEvents200Response> list_migration_events(id)
832
+
833
+ List migration events
834
+
835
+ ### Examples
836
+
837
+ ```ruby
838
+ require 'time'
839
+ require 'lockally'
840
+ # setup authorization
841
+ Lockally.configure do |config|
842
+ # Configure Bearer authorization (lk_live_<prefix>_<secret>): bearerAuth
843
+ config.access_token = 'YOUR_BEARER_TOKEN'
844
+ end
845
+
846
+ api_instance = Lockally::MigrationsApi.new
847
+ id = '38400000-8cf0-11bd-b23e-10b96e4ef00d' # String |
848
+
849
+ begin
850
+ # List migration events
851
+ result = api_instance.list_migration_events(id)
852
+ p result
853
+ rescue Lockally::ApiError => e
854
+ puts "Error when calling MigrationsApi->list_migration_events: #{e}"
855
+ end
856
+ ```
857
+
858
+ #### Using the list_migration_events_with_http_info variant
859
+
860
+ This returns an Array which contains the response data, status code and headers.
861
+
862
+ > <Array(<ListMigrationEvents200Response>, Integer, Hash)> list_migration_events_with_http_info(id)
863
+
864
+ ```ruby
865
+ begin
866
+ # List migration events
867
+ data, status_code, headers = api_instance.list_migration_events_with_http_info(id)
868
+ p status_code # => 2xx
869
+ p headers # => { ... }
870
+ p data # => <ListMigrationEvents200Response>
871
+ rescue Lockally::ApiError => e
872
+ puts "Error when calling MigrationsApi->list_migration_events_with_http_info: #{e}"
873
+ end
874
+ ```
875
+
876
+ ### Parameters
877
+
878
+ | Name | Type | Description | Notes |
879
+ | ---- | ---- | ----------- | ----- |
880
+ | **id** | **String** | | |
881
+
882
+ ### Return type
883
+
884
+ [**ListMigrationEvents200Response**](ListMigrationEvents200Response.md)
885
+
886
+ ### Authorization
887
+
888
+ [bearerAuth](../README.md#bearerAuth)
889
+
890
+ ### HTTP request headers
891
+
892
+ - **Content-Type**: Not defined
893
+ - **Accept**: application/json, application/problem+json
894
+
895
+
896
+ ## list_migration_mailboxes
897
+
898
+ > <ListMigrationMailboxes200Response> list_migration_mailboxes(id)
899
+
900
+ List migration mailboxes
901
+
902
+ ### Examples
903
+
904
+ ```ruby
905
+ require 'time'
906
+ require 'lockally'
907
+ # setup authorization
908
+ Lockally.configure do |config|
909
+ # Configure Bearer authorization (lk_live_<prefix>_<secret>): bearerAuth
910
+ config.access_token = 'YOUR_BEARER_TOKEN'
911
+ end
912
+
913
+ api_instance = Lockally::MigrationsApi.new
914
+ id = '38400000-8cf0-11bd-b23e-10b96e4ef00d' # String |
915
+
916
+ begin
917
+ # List migration mailboxes
918
+ result = api_instance.list_migration_mailboxes(id)
919
+ p result
920
+ rescue Lockally::ApiError => e
921
+ puts "Error when calling MigrationsApi->list_migration_mailboxes: #{e}"
922
+ end
923
+ ```
924
+
925
+ #### Using the list_migration_mailboxes_with_http_info variant
926
+
927
+ This returns an Array which contains the response data, status code and headers.
928
+
929
+ > <Array(<ListMigrationMailboxes200Response>, Integer, Hash)> list_migration_mailboxes_with_http_info(id)
930
+
931
+ ```ruby
932
+ begin
933
+ # List migration mailboxes
934
+ data, status_code, headers = api_instance.list_migration_mailboxes_with_http_info(id)
935
+ p status_code # => 2xx
936
+ p headers # => { ... }
937
+ p data # => <ListMigrationMailboxes200Response>
938
+ rescue Lockally::ApiError => e
939
+ puts "Error when calling MigrationsApi->list_migration_mailboxes_with_http_info: #{e}"
940
+ end
941
+ ```
942
+
943
+ ### Parameters
944
+
945
+ | Name | Type | Description | Notes |
946
+ | ---- | ---- | ----------- | ----- |
947
+ | **id** | **String** | | |
948
+
949
+ ### Return type
950
+
951
+ [**ListMigrationMailboxes200Response**](ListMigrationMailboxes200Response.md)
952
+
953
+ ### Authorization
954
+
955
+ [bearerAuth](../README.md#bearerAuth)
956
+
957
+ ### HTTP request headers
958
+
959
+ - **Content-Type**: Not defined
960
+ - **Accept**: application/json, application/problem+json
961
+
962
+
963
+ ## list_migrations
964
+
965
+ > <ListMigrations200Response> list_migrations
966
+
967
+ List migrations
968
+
969
+ ### Examples
970
+
971
+ ```ruby
972
+ require 'time'
973
+ require 'lockally'
974
+ # setup authorization
975
+ Lockally.configure do |config|
976
+ # Configure Bearer authorization (lk_live_<prefix>_<secret>): bearerAuth
977
+ config.access_token = 'YOUR_BEARER_TOKEN'
978
+ end
979
+
980
+ api_instance = Lockally::MigrationsApi.new
981
+
982
+ begin
983
+ # List migrations
984
+ result = api_instance.list_migrations
985
+ p result
986
+ rescue Lockally::ApiError => e
987
+ puts "Error when calling MigrationsApi->list_migrations: #{e}"
988
+ end
989
+ ```
990
+
991
+ #### Using the list_migrations_with_http_info variant
992
+
993
+ This returns an Array which contains the response data, status code and headers.
994
+
995
+ > <Array(<ListMigrations200Response>, Integer, Hash)> list_migrations_with_http_info
996
+
997
+ ```ruby
998
+ begin
999
+ # List migrations
1000
+ data, status_code, headers = api_instance.list_migrations_with_http_info
1001
+ p status_code # => 2xx
1002
+ p headers # => { ... }
1003
+ p data # => <ListMigrations200Response>
1004
+ rescue Lockally::ApiError => e
1005
+ puts "Error when calling MigrationsApi->list_migrations_with_http_info: #{e}"
1006
+ end
1007
+ ```
1008
+
1009
+ ### Parameters
1010
+
1011
+ This endpoint does not need any parameter.
1012
+
1013
+ ### Return type
1014
+
1015
+ [**ListMigrations200Response**](ListMigrations200Response.md)
1016
+
1017
+ ### Authorization
1018
+
1019
+ [bearerAuth](../README.md#bearerAuth)
1020
+
1021
+ ### HTTP request headers
1022
+
1023
+ - **Content-Type**: Not defined
1024
+ - **Accept**: application/json, application/problem+json
1025
+
1026
+
1027
+ ## map_migration
1028
+
1029
+ > <DiscoverMigration202Response> map_migration(id, map_migration_request)
1030
+
1031
+ Map source to destination mailboxes
1032
+
1033
+ ### Examples
1034
+
1035
+ ```ruby
1036
+ require 'time'
1037
+ require 'lockally'
1038
+ # setup authorization
1039
+ Lockally.configure do |config|
1040
+ # Configure Bearer authorization (lk_live_<prefix>_<secret>): bearerAuth
1041
+ config.access_token = 'YOUR_BEARER_TOKEN'
1042
+ end
1043
+
1044
+ api_instance = Lockally::MigrationsApi.new
1045
+ id = '38400000-8cf0-11bd-b23e-10b96e4ef00d' # String |
1046
+ map_migration_request = Lockally::MapMigrationRequest.new({mappings: [Lockally::MapMigrationRequestMappingsInner.new({source_email: 'source_email_example', dest_email: 'dest_email_example'})]}) # MapMigrationRequest |
1047
+
1048
+ begin
1049
+ # Map source to destination mailboxes
1050
+ result = api_instance.map_migration(id, map_migration_request)
1051
+ p result
1052
+ rescue Lockally::ApiError => e
1053
+ puts "Error when calling MigrationsApi->map_migration: #{e}"
1054
+ end
1055
+ ```
1056
+
1057
+ #### Using the map_migration_with_http_info variant
1058
+
1059
+ This returns an Array which contains the response data, status code and headers.
1060
+
1061
+ > <Array(<DiscoverMigration202Response>, Integer, Hash)> map_migration_with_http_info(id, map_migration_request)
1062
+
1063
+ ```ruby
1064
+ begin
1065
+ # Map source to destination mailboxes
1066
+ data, status_code, headers = api_instance.map_migration_with_http_info(id, map_migration_request)
1067
+ p status_code # => 2xx
1068
+ p headers # => { ... }
1069
+ p data # => <DiscoverMigration202Response>
1070
+ rescue Lockally::ApiError => e
1071
+ puts "Error when calling MigrationsApi->map_migration_with_http_info: #{e}"
1072
+ end
1073
+ ```
1074
+
1075
+ ### Parameters
1076
+
1077
+ | Name | Type | Description | Notes |
1078
+ | ---- | ---- | ----------- | ----- |
1079
+ | **id** | **String** | | |
1080
+ | **map_migration_request** | [**MapMigrationRequest**](MapMigrationRequest.md) | | |
1081
+
1082
+ ### Return type
1083
+
1084
+ [**DiscoverMigration202Response**](DiscoverMigration202Response.md)
1085
+
1086
+ ### Authorization
1087
+
1088
+ [bearerAuth](../README.md#bearerAuth)
1089
+
1090
+ ### HTTP request headers
1091
+
1092
+ - **Content-Type**: application/json
1093
+ - **Accept**: application/json, application/problem+json
1094
+
1095
+
1096
+ ## retry_migration
1097
+
1098
+ > <DiscoverMigration202Response> retry_migration(id)
1099
+
1100
+ Retry a failed or cancelled migration
1101
+
1102
+ ### Examples
1103
+
1104
+ ```ruby
1105
+ require 'time'
1106
+ require 'lockally'
1107
+ # setup authorization
1108
+ Lockally.configure do |config|
1109
+ # Configure Bearer authorization (lk_live_<prefix>_<secret>): bearerAuth
1110
+ config.access_token = 'YOUR_BEARER_TOKEN'
1111
+ end
1112
+
1113
+ api_instance = Lockally::MigrationsApi.new
1114
+ id = '38400000-8cf0-11bd-b23e-10b96e4ef00d' # String |
1115
+
1116
+ begin
1117
+ # Retry a failed or cancelled migration
1118
+ result = api_instance.retry_migration(id)
1119
+ p result
1120
+ rescue Lockally::ApiError => e
1121
+ puts "Error when calling MigrationsApi->retry_migration: #{e}"
1122
+ end
1123
+ ```
1124
+
1125
+ #### Using the retry_migration_with_http_info variant
1126
+
1127
+ This returns an Array which contains the response data, status code and headers.
1128
+
1129
+ > <Array(<DiscoverMigration202Response>, Integer, Hash)> retry_migration_with_http_info(id)
1130
+
1131
+ ```ruby
1132
+ begin
1133
+ # Retry a failed or cancelled migration
1134
+ data, status_code, headers = api_instance.retry_migration_with_http_info(id)
1135
+ p status_code # => 2xx
1136
+ p headers # => { ... }
1137
+ p data # => <DiscoverMigration202Response>
1138
+ rescue Lockally::ApiError => e
1139
+ puts "Error when calling MigrationsApi->retry_migration_with_http_info: #{e}"
1140
+ end
1141
+ ```
1142
+
1143
+ ### Parameters
1144
+
1145
+ | Name | Type | Description | Notes |
1146
+ | ---- | ---- | ----------- | ----- |
1147
+ | **id** | **String** | | |
1148
+
1149
+ ### Return type
1150
+
1151
+ [**DiscoverMigration202Response**](DiscoverMigration202Response.md)
1152
+
1153
+ ### Authorization
1154
+
1155
+ [bearerAuth](../README.md#bearerAuth)
1156
+
1157
+ ### HTTP request headers
1158
+
1159
+ - **Content-Type**: Not defined
1160
+ - **Accept**: application/json, application/problem+json
1161
+
1162
+
1163
+ ## start_migration
1164
+
1165
+ > <StartMigration202Response> start_migration(id)
1166
+
1167
+ Start the migration
1168
+
1169
+ ### Examples
1170
+
1171
+ ```ruby
1172
+ require 'time'
1173
+ require 'lockally'
1174
+ # setup authorization
1175
+ Lockally.configure do |config|
1176
+ # Configure Bearer authorization (lk_live_<prefix>_<secret>): bearerAuth
1177
+ config.access_token = 'YOUR_BEARER_TOKEN'
1178
+ end
1179
+
1180
+ api_instance = Lockally::MigrationsApi.new
1181
+ id = '38400000-8cf0-11bd-b23e-10b96e4ef00d' # String |
1182
+
1183
+ begin
1184
+ # Start the migration
1185
+ result = api_instance.start_migration(id)
1186
+ p result
1187
+ rescue Lockally::ApiError => e
1188
+ puts "Error when calling MigrationsApi->start_migration: #{e}"
1189
+ end
1190
+ ```
1191
+
1192
+ #### Using the start_migration_with_http_info variant
1193
+
1194
+ This returns an Array which contains the response data, status code and headers.
1195
+
1196
+ > <Array(<StartMigration202Response>, Integer, Hash)> start_migration_with_http_info(id)
1197
+
1198
+ ```ruby
1199
+ begin
1200
+ # Start the migration
1201
+ data, status_code, headers = api_instance.start_migration_with_http_info(id)
1202
+ p status_code # => 2xx
1203
+ p headers # => { ... }
1204
+ p data # => <StartMigration202Response>
1205
+ rescue Lockally::ApiError => e
1206
+ puts "Error when calling MigrationsApi->start_migration_with_http_info: #{e}"
1207
+ end
1208
+ ```
1209
+
1210
+ ### Parameters
1211
+
1212
+ | Name | Type | Description | Notes |
1213
+ | ---- | ---- | ----------- | ----- |
1214
+ | **id** | **String** | | |
1215
+
1216
+ ### Return type
1217
+
1218
+ [**StartMigration202Response**](StartMigration202Response.md)
1219
+
1220
+ ### Authorization
1221
+
1222
+ [bearerAuth](../README.md#bearerAuth)
1223
+
1224
+ ### HTTP request headers
1225
+
1226
+ - **Content-Type**: Not defined
1227
+ - **Accept**: application/json, application/problem+json
1228
+
1229
+
1230
+ ## update_migration
1231
+
1232
+ > <Migration> update_migration(id, update_migration_request)
1233
+
1234
+ Update a migration
1235
+
1236
+ ### Examples
1237
+
1238
+ ```ruby
1239
+ require 'time'
1240
+ require 'lockally'
1241
+ # setup authorization
1242
+ Lockally.configure do |config|
1243
+ # Configure Bearer authorization (lk_live_<prefix>_<secret>): bearerAuth
1244
+ config.access_token = 'YOUR_BEARER_TOKEN'
1245
+ end
1246
+
1247
+ api_instance = Lockally::MigrationsApi.new
1248
+ id = '38400000-8cf0-11bd-b23e-10b96e4ef00d' # String |
1249
+ update_migration_request = Lockally::UpdateMigrationRequest.new # UpdateMigrationRequest |
1250
+
1251
+ begin
1252
+ # Update a migration
1253
+ result = api_instance.update_migration(id, update_migration_request)
1254
+ p result
1255
+ rescue Lockally::ApiError => e
1256
+ puts "Error when calling MigrationsApi->update_migration: #{e}"
1257
+ end
1258
+ ```
1259
+
1260
+ #### Using the update_migration_with_http_info variant
1261
+
1262
+ This returns an Array which contains the response data, status code and headers.
1263
+
1264
+ > <Array(<Migration>, Integer, Hash)> update_migration_with_http_info(id, update_migration_request)
1265
+
1266
+ ```ruby
1267
+ begin
1268
+ # Update a migration
1269
+ data, status_code, headers = api_instance.update_migration_with_http_info(id, update_migration_request)
1270
+ p status_code # => 2xx
1271
+ p headers # => { ... }
1272
+ p data # => <Migration>
1273
+ rescue Lockally::ApiError => e
1274
+ puts "Error when calling MigrationsApi->update_migration_with_http_info: #{e}"
1275
+ end
1276
+ ```
1277
+
1278
+ ### Parameters
1279
+
1280
+ | Name | Type | Description | Notes |
1281
+ | ---- | ---- | ----------- | ----- |
1282
+ | **id** | **String** | | |
1283
+ | **update_migration_request** | [**UpdateMigrationRequest**](UpdateMigrationRequest.md) | | |
1284
+
1285
+ ### Return type
1286
+
1287
+ [**Migration**](Migration.md)
1288
+
1289
+ ### Authorization
1290
+
1291
+ [bearerAuth](../README.md#bearerAuth)
1292
+
1293
+ ### HTTP request headers
1294
+
1295
+ - **Content-Type**: application/json
1296
+ - **Accept**: application/json, application/problem+json
1297
+
1298
+
1299
+ ## update_migration_mailbox
1300
+
1301
+ > update_migration_mailbox(id, mbx_id, update_migration_mailbox_request)
1302
+
1303
+ Update a migration mailbox
1304
+
1305
+ ### Examples
1306
+
1307
+ ```ruby
1308
+ require 'time'
1309
+ require 'lockally'
1310
+ # setup authorization
1311
+ Lockally.configure do |config|
1312
+ # Configure Bearer authorization (lk_live_<prefix>_<secret>): bearerAuth
1313
+ config.access_token = 'YOUR_BEARER_TOKEN'
1314
+ end
1315
+
1316
+ api_instance = Lockally::MigrationsApi.new
1317
+ id = '38400000-8cf0-11bd-b23e-10b96e4ef00d' # String |
1318
+ mbx_id = '38400000-8cf0-11bd-b23e-10b96e4ef00d' # String |
1319
+ update_migration_mailbox_request = Lockally::UpdateMigrationMailboxRequest.new # UpdateMigrationMailboxRequest |
1320
+
1321
+ begin
1322
+ # Update a migration mailbox
1323
+ api_instance.update_migration_mailbox(id, mbx_id, update_migration_mailbox_request)
1324
+ rescue Lockally::ApiError => e
1325
+ puts "Error when calling MigrationsApi->update_migration_mailbox: #{e}"
1326
+ end
1327
+ ```
1328
+
1329
+ #### Using the update_migration_mailbox_with_http_info variant
1330
+
1331
+ This returns an Array which contains the response data (`nil` in this case), status code and headers.
1332
+
1333
+ > <Array(nil, Integer, Hash)> update_migration_mailbox_with_http_info(id, mbx_id, update_migration_mailbox_request)
1334
+
1335
+ ```ruby
1336
+ begin
1337
+ # Update a migration mailbox
1338
+ data, status_code, headers = api_instance.update_migration_mailbox_with_http_info(id, mbx_id, update_migration_mailbox_request)
1339
+ p status_code # => 2xx
1340
+ p headers # => { ... }
1341
+ p data # => nil
1342
+ rescue Lockally::ApiError => e
1343
+ puts "Error when calling MigrationsApi->update_migration_mailbox_with_http_info: #{e}"
1344
+ end
1345
+ ```
1346
+
1347
+ ### Parameters
1348
+
1349
+ | Name | Type | Description | Notes |
1350
+ | ---- | ---- | ----------- | ----- |
1351
+ | **id** | **String** | | |
1352
+ | **mbx_id** | **String** | | |
1353
+ | **update_migration_mailbox_request** | [**UpdateMigrationMailboxRequest**](UpdateMigrationMailboxRequest.md) | | |
1354
+
1355
+ ### Return type
1356
+
1357
+ nil (empty response body)
1358
+
1359
+ ### Authorization
1360
+
1361
+ [bearerAuth](../README.md#bearerAuth)
1362
+
1363
+ ### HTTP request headers
1364
+
1365
+ - **Content-Type**: application/json
1366
+ - **Accept**: application/problem+json
1367
+
1368
+
1369
+ ## validate_migration
1370
+
1371
+ > <StartMigration202Response> validate_migration(id)
1372
+
1373
+ Validate migrated data
1374
+
1375
+ ### Examples
1376
+
1377
+ ```ruby
1378
+ require 'time'
1379
+ require 'lockally'
1380
+ # setup authorization
1381
+ Lockally.configure do |config|
1382
+ # Configure Bearer authorization (lk_live_<prefix>_<secret>): bearerAuth
1383
+ config.access_token = 'YOUR_BEARER_TOKEN'
1384
+ end
1385
+
1386
+ api_instance = Lockally::MigrationsApi.new
1387
+ id = '38400000-8cf0-11bd-b23e-10b96e4ef00d' # String |
1388
+
1389
+ begin
1390
+ # Validate migrated data
1391
+ result = api_instance.validate_migration(id)
1392
+ p result
1393
+ rescue Lockally::ApiError => e
1394
+ puts "Error when calling MigrationsApi->validate_migration: #{e}"
1395
+ end
1396
+ ```
1397
+
1398
+ #### Using the validate_migration_with_http_info variant
1399
+
1400
+ This returns an Array which contains the response data, status code and headers.
1401
+
1402
+ > <Array(<StartMigration202Response>, Integer, Hash)> validate_migration_with_http_info(id)
1403
+
1404
+ ```ruby
1405
+ begin
1406
+ # Validate migrated data
1407
+ data, status_code, headers = api_instance.validate_migration_with_http_info(id)
1408
+ p status_code # => 2xx
1409
+ p headers # => { ... }
1410
+ p data # => <StartMigration202Response>
1411
+ rescue Lockally::ApiError => e
1412
+ puts "Error when calling MigrationsApi->validate_migration_with_http_info: #{e}"
1413
+ end
1414
+ ```
1415
+
1416
+ ### Parameters
1417
+
1418
+ | Name | Type | Description | Notes |
1419
+ | ---- | ---- | ----------- | ----- |
1420
+ | **id** | **String** | | |
1421
+
1422
+ ### Return type
1423
+
1424
+ [**StartMigration202Response**](StartMigration202Response.md)
1425
+
1426
+ ### Authorization
1427
+
1428
+ [bearerAuth](../README.md#bearerAuth)
1429
+
1430
+ ### HTTP request headers
1431
+
1432
+ - **Content-Type**: Not defined
1433
+ - **Accept**: application/json, application/problem+json
1434
+