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