lockally 0.3.3 → 0.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CONTRIBUTING.md +36 -0
- data/README.md +38 -21
- data/docs/APIKey.md +7 -1
- data/docs/ApiKeysApi.md +158 -5
- data/docs/BatchResult.md +3 -1
- data/docs/BulkUpsertExternalContacts200Response.md +24 -0
- data/docs/BulkUpsertExternalContacts200ResponseResultsInner.md +26 -0
- data/docs/BulkUpsertExternalContactsRequest.md +18 -0
- data/docs/BulkUpsertExternalContactsRequestContactsInner.md +36 -0
- data/docs/Contact.md +5 -1
- data/docs/ContactsApi.md +285 -0
- data/docs/CreateApiKey201Response.md +6 -0
- data/docs/CreateApiKeyRequest.md +3 -1
- data/docs/CreateEncryptionKey201Response.md +3 -1
- data/docs/CreateEncryptionKeyRequest.md +1 -1
- data/docs/CreateEncryptionRecoveryRequest.md +1 -1
- data/docs/DashboardApi.md +4 -4
- data/docs/DomainsApi.md +12 -5
- data/docs/EncryptionApi.md +82 -7
- data/docs/ExternalContactInput.md +34 -0
- data/docs/GetEncryptionKey200Response.md +11 -1
- data/docs/GetEncryptionStatus200Response.md +22 -0
- data/docs/GetEncryptionStatus200ResponseMailboxesInner.md +26 -0
- data/docs/MailboxesApi.md +0 -278
- data/docs/Message.md +5 -1
- data/docs/MessageDetail.md +4 -0
- data/docs/MigrationDNSCheck.md +20 -0
- data/docs/MigrationDomainDNS.md +26 -0
- data/docs/MigrationsApi.md +4 -4
- data/docs/RotateApiKeyRequest.md +18 -0
- data/docs/RotateEncryptionKeyRequest.md +1 -1
- data/docs/SendApi.md +10 -2
- data/docs/SendEmailBatchRequest.md +3 -1
- data/docs/SendEmailRequest.md +8 -0
- data/docs/SignupRequest.md +1 -1
- data/docs/TemplatesApi.md +12 -5
- data/docs/TenantApi.md +137 -0
- data/docs/TenantHealthCheck.md +24 -0
- data/docs/TenantHealthReport.md +22 -0
- data/docs/TrackingPolicy.md +24 -0
- data/docs/UpdateApiKeyRequest.md +22 -0
- data/docs/UpdateTrackingPolicyRequest.md +20 -0
- data/docs/UsersApi.md +7 -5
- data/git_push.sh +2 -2
- data/lib/lockally/api/add_ons_api.rb +2 -2
- data/lib/lockally/api/admin_api.rb +2 -2
- data/lib/lockally/api/admins_api.rb +2 -2
- data/lib/lockally/api/agents_api.rb +2 -2
- data/lib/lockally/api/ai_api.rb +2 -2
- data/lib/lockally/api/aliases_api.rb +2 -2
- data/lib/lockally/api/api_keys_api.rb +160 -2
- data/lib/lockally/api/billing_api.rb +2 -2
- data/lib/lockally/api/calendars_api.rb +2 -2
- data/lib/lockally/api/contact_lists_api.rb +2 -2
- data/lib/lockally/api/contacts_api.rb +322 -2
- data/lib/lockally/api/dashboard_api.rb +5 -5
- data/lib/lockally/api/directory_api.rb +2 -2
- data/lib/lockally/api/distribution_lists_api.rb +2 -2
- data/lib/lockally/api/domains_api.rb +16 -2
- data/lib/lockally/api/drafts_api.rb +2 -2
- data/lib/lockally/api/encryption_api.rb +69 -4
- data/lib/lockally/api/health_api.rb +2 -2
- data/lib/lockally/api/ip_pools_api.rb +2 -2
- data/lib/lockally/api/mailboxes_api.rb +2 -259
- data/lib/lockally/api/migrations_api.rb +5 -5
- data/lib/lockally/api/resources_api.rb +2 -2
- data/lib/lockally/api/send_api.rb +22 -2
- data/lib/lockally/api/signup_api.rb +2 -2
- data/lib/lockally/api/suppressions_api.rb +2 -2
- data/lib/lockally/api/templates_api.rb +16 -2
- data/lib/lockally/api/tenant_api.rb +127 -2
- data/lib/lockally/api/test_api.rb +2 -2
- data/lib/lockally/api/users_api.rb +8 -6
- data/lib/lockally/api/webhooks_api.rb +2 -2
- data/lib/lockally/api_client.rb +2 -2
- data/lib/lockally/api_error.rb +2 -2
- data/lib/lockally/api_model_base.rb +2 -2
- data/lib/lockally/configuration.rb +2 -2
- data/lib/lockally/models/activate_add_on200_response.rb +2 -2
- data/lib/lockally/models/add_calendar_member_request.rb +2 -2
- data/lib/lockally/models/add_contact_list_member_request.rb +2 -2
- data/lib/lockally/models/add_on.rb +2 -2
- data/lib/lockally/models/add_shared_member_request.rb +2 -2
- data/lib/lockally/models/admin.rb +2 -2
- data/lib/lockally/models/admin_full.rb +2 -2
- data/lib/lockally/models/admin_login200_response.rb +2 -2
- data/lib/lockally/models/admin_login_request.rb +2 -2
- data/lib/lockally/models/agent_send_result.rb +2 -2
- data/lib/lockally/models/ai_config.rb +2 -2
- data/lib/lockally/models/ai_config_update.rb +2 -2
- data/lib/lockally/models/annotations.rb +2 -2
- data/lib/lockally/models/api_key.rb +36 -6
- data/lib/lockally/models/attachment.rb +2 -2
- data/lib/lockally/models/audit_event.rb +2 -2
- data/lib/lockally/models/batch_lookup_public_keys200_response.rb +2 -2
- data/lib/lockally/models/batch_lookup_public_keys200_response_data_inner.rb +2 -2
- data/lib/lockally/models/batch_result.rb +16 -6
- data/lib/lockally/models/billing_status.rb +2 -2
- data/lib/lockally/models/bulk_upsert_external_contacts200_response.rb +244 -0
- data/lib/lockally/models/bulk_upsert_external_contacts200_response_results_inner.rb +258 -0
- data/lib/lockally/models/bulk_upsert_external_contacts_request.rb +184 -0
- data/lib/lockally/models/bulk_upsert_external_contacts_request_contacts_inner.rb +329 -0
- data/lib/lockally/models/calendar.rb +2 -2
- data/lib/lockally/models/calendar_event.rb +2 -2
- data/lib/lockally/models/calendar_integration.rb +2 -2
- data/lib/lockally/models/calendar_member.rb +2 -2
- data/lib/lockally/models/calendar_policies.rb +2 -2
- data/lib/lockally/models/classification.rb +2 -2
- data/lib/lockally/models/contact.rb +26 -6
- data/lib/lockally/models/contact_list.rb +2 -2
- data/lib/lockally/models/contact_lookup.rb +2 -2
- data/lib/lockally/models/contact_lookup_contact.rb +2 -2
- data/lib/lockally/models/contact_lookup_history.rb +2 -2
- data/lib/lockally/models/create_ai_units_checkout200_response.rb +2 -2
- data/lib/lockally/models/create_alias_request.rb +2 -2
- data/lib/lockally/models/create_api_key201_response.rb +33 -3
- data/lib/lockally/models/create_api_key_request.rb +16 -6
- data/lib/lockally/models/create_billing_checkout200_response.rb +2 -2
- data/lib/lockally/models/create_billing_checkout_request.rb +2 -2
- data/lib/lockally/models/create_calendar_event_request.rb +2 -2
- data/lib/lockally/models/create_calendar_integration_request.rb +2 -2
- data/lib/lockally/models/create_calendar_request.rb +2 -2
- data/lib/lockally/models/create_contact_list_request.rb +2 -2
- data/lib/lockally/models/create_contact_request.rb +2 -2
- data/lib/lockally/models/create_dedicated_ip_request_request.rb +2 -2
- data/lib/lockally/models/create_distribution_list_request.rb +2 -2
- data/lib/lockally/models/create_domain_request.rb +2 -2
- data/lib/lockally/models/create_encryption_key201_response.rb +15 -6
- data/lib/lockally/models/create_encryption_key_request.rb +2 -19
- data/lib/lockally/models/create_encryption_recovery_request.rb +2 -19
- data/lib/lockally/models/create_mailbox_request.rb +2 -2
- data/lib/lockally/models/create_migration_credential_request.rb +2 -2
- data/lib/lockally/models/create_migration_credential_request_credentials.rb +2 -2
- data/lib/lockally/models/create_migration_request.rb +2 -2
- data/lib/lockally/models/create_resource_request.rb +2 -2
- data/lib/lockally/models/create_suppression_request.rb +2 -2
- data/lib/lockally/models/create_units_checkout200_response.rb +2 -2
- data/lib/lockally/models/create_units_checkout_request.rb +2 -2
- data/lib/lockally/models/create_user_request.rb +2 -2
- data/lib/lockally/models/create_webhook_request.rb +2 -2
- data/lib/lockally/models/dedicated_ip_request.rb +2 -2
- data/lib/lockally/models/directory_permissions.rb +2 -2
- data/lib/lockally/models/discover_migration202_response.rb +2 -2
- data/lib/lockally/models/distribution_list_detail.rb +2 -2
- data/lib/lockally/models/distribution_list_summary.rb +2 -2
- data/lib/lockally/models/dns_record.rb +2 -2
- data/lib/lockally/models/domain.rb +2 -2
- data/lib/lockally/models/draft.rb +2 -2
- data/lib/lockally/models/draft_list.rb +2 -2
- data/lib/lockally/models/draft_result.rb +2 -2
- data/lib/lockally/models/export_mailbox201_response.rb +2 -2
- data/lib/lockally/models/external_contact_input.rb +287 -0
- data/lib/lockally/models/gal_settings.rb +2 -2
- data/lib/lockally/models/get_add_on_status200_response.rb +2 -2
- data/lib/lockally/models/get_audit_summary200_response.rb +2 -2
- data/lib/lockally/models/get_calendar_overview200_response.rb +2 -2
- data/lib/lockally/models/get_calendar_overview200_response_activity_inner.rb +2 -2
- data/lib/lockally/models/get_calendar_security200_response.rb +2 -2
- data/lib/lockally/models/get_calendar_security200_response_alerts_inner.rb +2 -2
- data/lib/lockally/models/get_calendar_security200_response_delegated_access_inner.rb +2 -2
- data/lib/lockally/models/get_calendar_security200_response_external_sharing.rb +2 -2
- data/lib/lockally/models/get_calendar_security200_response_public_calendar_list_inner.rb +2 -2
- data/lib/lockally/models/get_contact_list200_response.rb +2 -2
- data/lib/lockally/models/get_contact_list200_response_members_inner.rb +2 -2
- data/lib/lockally/models/get_contact_lists200_response.rb +2 -2
- data/lib/lockally/models/get_contact_lists200_response_data_inner.rb +2 -2
- data/lib/lockally/models/get_current_admin200_response.rb +2 -2
- data/lib/lockally/models/get_directory_activity200_response.rb +2 -2
- data/lib/lockally/models/get_directory_activity200_response_data_inner.rb +2 -2
- data/lib/lockally/models/get_directory_stats200_response.rb +2 -2
- data/lib/lockally/models/get_domains_status200_response.rb +2 -2
- data/lib/lockally/models/get_domains_status200_response_domains_inner.rb +2 -2
- data/lib/lockally/models/get_domains_status200_response_domains_inner_checks_inner.rb +2 -2
- data/lib/lockally/models/get_encryption_key200_response.rb +51 -6
- data/lib/lockally/models/{list_vacation_responders200_response.rb → get_encryption_status200_response.rb} +31 -30
- data/lib/lockally/models/get_encryption_status200_response_mailboxes_inner.rb +183 -0
- data/lib/lockally/models/get_integrations_summary200_response.rb +2 -2
- data/lib/lockally/models/get_integrations_summary200_response_api_keys_inner.rb +2 -2
- data/lib/lockally/models/get_integrations_summary200_response_webhooks_inner.rb +2 -2
- data/lib/lockally/models/get_ip_assignment200_response.rb +2 -2
- data/lib/lockally/models/get_security200_response.rb +2 -2
- data/lib/lockally/models/get_security200_response_alerts_inner.rb +2 -2
- data/lib/lockally/models/get_security200_response_stats_inner.rb +2 -2
- data/lib/lockally/models/get_storage200_response.rb +2 -2
- data/lib/lockally/models/get_storage200_response_top_mailboxes_inner.rb +2 -2
- data/lib/lockally/models/get_storage200_response_top_messages_inner.rb +2 -2
- data/lib/lockally/models/get_usage200_response.rb +2 -2
- data/lib/lockally/models/get_user_insights200_response.rb +2 -2
- data/lib/lockally/models/health_check200_response.rb +2 -2
- data/lib/lockally/models/inbox.rb +2 -2
- data/lib/lockally/models/inbox_list.rb +2 -2
- data/lib/lockally/models/injection_risk.rb +2 -2
- data/lib/lockally/models/invite_admin_request.rb +2 -2
- data/lib/lockally/models/list_add_ons200_response.rb +2 -2
- data/lib/lockally/models/list_admins200_response.rb +2 -2
- data/lib/lockally/models/list_aliases200_response.rb +2 -2
- data/lib/lockally/models/list_api_keys200_response.rb +2 -2
- data/lib/lockally/models/list_calendar_events200_response.rb +2 -2
- data/lib/lockally/models/list_calendar_integrations200_response.rb +2 -2
- data/lib/lockally/models/list_calendar_members200_response.rb +2 -2
- data/lib/lockally/models/list_calendars200_response.rb +2 -2
- data/lib/lockally/models/list_contact_lists200_response.rb +2 -2
- data/lib/lockally/models/list_contacts200_response.rb +2 -2
- data/lib/lockally/models/list_dedicated_ip_requests200_response.rb +2 -2
- data/lib/lockally/models/list_distribution_lists200_response.rb +2 -2
- data/lib/lockally/models/list_domains200_response.rb +2 -2
- data/lib/lockally/models/list_mailboxes200_response.rb +2 -2
- data/lib/lockally/models/list_messages200_response.rb +2 -2
- data/lib/lockally/models/list_migration_credentials200_response.rb +2 -2
- data/lib/lockally/models/list_migration_events200_response.rb +2 -2
- data/lib/lockally/models/list_migration_mailboxes200_response.rb +2 -2
- data/lib/lockally/models/list_migrations200_response.rb +2 -2
- data/lib/lockally/models/list_resources200_response.rb +2 -2
- data/lib/lockally/models/list_shared_members200_response.rb +2 -2
- data/lib/lockally/models/list_suppressions200_response.rb +2 -2
- data/lib/lockally/models/list_templates200_response.rb +2 -2
- data/lib/lockally/models/list_users200_response.rb +2 -2
- data/lib/lockally/models/list_webhooks200_response.rb +2 -2
- data/lib/lockally/models/mailbox.rb +2 -2
- data/lib/lockally/models/mailbox_grant.rb +2 -2
- data/lib/lockally/models/mailbox_grant_list.rb +2 -2
- data/lib/lockally/models/map_migration_request.rb +2 -2
- data/lib/lockally/models/map_migration_request_mappings_inner.rb +2 -2
- data/lib/lockally/models/mark_read_result.rb +2 -2
- data/lib/lockally/models/message.rb +30 -6
- data/lib/lockally/models/message_detail.rb +27 -3
- data/lib/lockally/models/message_stats.rb +2 -2
- data/lib/lockally/models/message_stats_counts.rb +2 -2
- data/lib/lockally/models/message_stats_rates.rb +2 -2
- data/lib/lockally/models/message_stats_window.rb +2 -2
- data/lib/lockally/models/migration.rb +2 -2
- data/lib/lockally/models/migration_credential.rb +2 -2
- data/lib/lockally/models/{vacation_params.rb → migration_dns_check.rb} +39 -54
- data/lib/lockally/models/migration_domain_dns.rb +269 -0
- data/lib/lockally/models/migration_event.rb +2 -2
- data/lib/lockally/models/migration_mailbox.rb +2 -2
- data/lib/lockally/models/migration_progress.rb +2 -2
- data/lib/lockally/models/migration_progress_mailboxes_inner.rb +2 -2
- data/lib/lockally/models/migration_settings.rb +2 -2
- data/lib/lockally/models/model_alias.rb +2 -2
- data/lib/lockally/models/plan_catalog_entry.rb +2 -2
- data/lib/lockally/models/policy_flags.rb +2 -2
- data/lib/lockally/models/problem.rb +2 -2
- data/lib/lockally/models/replace_distribution_list_members200_response.rb +2 -2
- data/lib/lockally/models/replace_distribution_list_members_request.rb +2 -2
- data/lib/lockally/models/resource.rb +2 -2
- data/lib/lockally/models/return_path.rb +2 -2
- data/lib/lockally/models/return_path_check.rb +2 -2
- data/lib/lockally/models/rotate_api_key_request.rb +178 -0
- data/lib/lockally/models/rotate_encryption_key_request.rb +2 -19
- data/lib/lockally/models/send_email200_response.rb +2 -2
- data/lib/lockally/models/send_email202_response.rb +2 -2
- data/lib/lockally/models/send_email_batch200_response.rb +2 -2
- data/lib/lockally/models/send_email_batch_request.rb +18 -6
- data/lib/lockally/models/send_email_request.rb +85 -3
- data/lib/lockally/models/send_email_request_attachments_inner.rb +2 -2
- data/lib/lockally/models/send_message.rb +2 -2
- data/lib/lockally/models/shared_member.rb +2 -2
- data/lib/lockally/models/signup_request.rb +3 -2
- data/lib/lockally/models/simulated_inbound.rb +2 -2
- data/lib/lockally/models/start_conversation_request.rb +2 -2
- data/lib/lockally/models/start_migration202_response.rb +2 -2
- data/lib/lockally/models/suppression.rb +2 -2
- data/lib/lockally/models/template.rb +2 -2
- data/lib/lockally/models/template_input.rb +2 -2
- data/lib/lockally/models/tenant.rb +2 -2
- data/lib/lockally/models/tenant_health_check.rb +245 -0
- data/lib/lockally/models/tenant_health_report.rb +237 -0
- data/lib/lockally/models/thread.rb +2 -2
- data/lib/lockally/models/thread_classification.rb +2 -2
- data/lib/lockally/models/thread_list.rb +2 -2
- data/lib/lockally/models/thread_message.rb +2 -2
- data/lib/lockally/models/thread_message_body.rb +2 -2
- data/lib/lockally/models/thread_message_body_body.rb +2 -2
- data/lib/lockally/models/thread_summary.rb +2 -2
- data/lib/lockally/models/tracking_policy.rb +227 -0
- data/lib/lockally/models/unit_bundle.rb +2 -2
- data/lib/lockally/models/update_admin_request.rb +2 -2
- data/lib/lockally/models/update_api_key_request.rb +189 -0
- data/lib/lockally/models/update_calendar_event_request.rb +2 -2
- data/lib/lockally/models/update_calendar_integration_request.rb +2 -2
- data/lib/lockally/models/update_calendar_member_request.rb +2 -2
- data/lib/lockally/models/update_calendar_policies_request.rb +2 -2
- data/lib/lockally/models/update_calendar_request.rb +2 -2
- data/lib/lockally/models/update_contact_list_request.rb +2 -2
- data/lib/lockally/models/update_contact_request.rb +2 -2
- data/lib/lockally/models/update_directory_permissions_request.rb +2 -2
- data/lib/lockally/models/update_gal_settings_request.rb +2 -2
- data/lib/lockally/models/update_mailbox_request.rb +2 -2
- data/lib/lockally/models/update_migration_mailbox_request.rb +2 -2
- data/lib/lockally/models/update_migration_request.rb +2 -2
- data/lib/lockally/models/update_resource_request.rb +2 -2
- data/lib/lockally/models/{set_vacation_responder_request.rb → update_tracking_policy_request.rb} +18 -37
- data/lib/lockally/models/update_user_request.rb +2 -2
- data/lib/lockally/models/update_webhook_request.rb +2 -2
- data/lib/lockally/models/user.rb +2 -2
- data/lib/lockally/models/user_event.rb +2 -2
- data/lib/lockally/models/webhook.rb +2 -2
- data/lib/lockally/models/whoami.rb +2 -2
- data/lib/lockally/models/whoami_key.rb +2 -2
- data/lib/lockally/models/whoami_tenant.rb +2 -2
- data/lib/lockally/version.rb +3 -3
- data/lib/lockally.rb +17 -6
- data/lockally.gemspec +6 -6
- data/spec/api/add_ons_api_spec.rb +2 -2
- data/spec/api/admin_api_spec.rb +2 -2
- data/spec/api/admins_api_spec.rb +2 -2
- data/spec/api/agents_api_spec.rb +2 -2
- data/spec/api/ai_api_spec.rb +2 -2
- data/spec/api/aliases_api_spec.rb +2 -2
- data/spec/api/api_keys_api_spec.rb +30 -2
- data/spec/api/billing_api_spec.rb +2 -2
- data/spec/api/calendars_api_spec.rb +2 -2
- data/spec/api/contact_lists_api_spec.rb +2 -2
- data/spec/api/contacts_api_spec.rb +53 -2
- data/spec/api/dashboard_api_spec.rb +3 -3
- data/spec/api/directory_api_spec.rb +2 -2
- data/spec/api/distribution_lists_api_spec.rb +2 -2
- data/spec/api/domains_api_spec.rb +4 -2
- data/spec/api/drafts_api_spec.rb +2 -2
- data/spec/api/encryption_api_spec.rb +18 -3
- data/spec/api/health_api_spec.rb +2 -2
- data/spec/api/ip_pools_api_spec.rb +2 -2
- data/spec/api/mailboxes_api_spec.rb +2 -50
- data/spec/api/migrations_api_spec.rb +3 -3
- data/spec/api/resources_api_spec.rb +2 -2
- data/spec/api/send_api_spec.rb +6 -2
- data/spec/api/signup_api_spec.rb +2 -2
- data/spec/api/suppressions_api_spec.rb +2 -2
- data/spec/api/templates_api_spec.rb +4 -2
- data/spec/api/tenant_api_spec.rb +25 -2
- data/spec/api/test_api_spec.rb +2 -2
- data/spec/api/users_api_spec.rb +5 -4
- data/spec/api/webhooks_api_spec.rb +2 -2
- data/spec/models/activate_add_on200_response_spec.rb +2 -2
- data/spec/models/add_calendar_member_request_spec.rb +2 -2
- data/spec/models/add_contact_list_member_request_spec.rb +2 -2
- data/spec/models/add_on_spec.rb +2 -2
- data/spec/models/add_shared_member_request_spec.rb +2 -2
- data/spec/models/admin_full_spec.rb +2 -2
- data/spec/models/admin_login200_response_spec.rb +2 -2
- data/spec/models/admin_login_request_spec.rb +2 -2
- data/spec/models/admin_spec.rb +2 -2
- data/spec/models/agent_send_result_spec.rb +2 -2
- data/spec/models/ai_config_spec.rb +2 -2
- data/spec/models/ai_config_update_spec.rb +2 -2
- data/spec/models/annotations_spec.rb +2 -2
- data/spec/models/api_key_spec.rb +20 -2
- data/spec/models/attachment_spec.rb +2 -2
- data/spec/models/audit_event_spec.rb +2 -2
- data/spec/models/batch_lookup_public_keys200_response_data_inner_spec.rb +2 -2
- data/spec/models/batch_lookup_public_keys200_response_spec.rb +2 -2
- data/spec/models/batch_result_spec.rb +8 -2
- data/spec/models/billing_status_spec.rb +2 -2
- data/spec/models/bulk_upsert_external_contacts200_response_results_inner_spec.rb +64 -0
- data/spec/models/bulk_upsert_external_contacts200_response_spec.rb +54 -0
- data/spec/models/bulk_upsert_external_contacts_request_contacts_inner_spec.rb +98 -0
- data/spec/models/bulk_upsert_external_contacts_request_spec.rb +36 -0
- data/spec/models/calendar_event_spec.rb +2 -2
- data/spec/models/calendar_integration_spec.rb +2 -2
- data/spec/models/calendar_member_spec.rb +2 -2
- data/spec/models/calendar_policies_spec.rb +2 -2
- data/spec/models/calendar_spec.rb +2 -2
- data/spec/models/classification_spec.rb +2 -2
- data/spec/models/contact_list_spec.rb +2 -2
- data/spec/models/contact_lookup_contact_spec.rb +2 -2
- data/spec/models/contact_lookup_history_spec.rb +2 -2
- data/spec/models/contact_lookup_spec.rb +2 -2
- data/spec/models/contact_spec.rb +14 -2
- data/spec/models/create_ai_units_checkout200_response_spec.rb +2 -2
- data/spec/models/create_alias_request_spec.rb +2 -2
- data/spec/models/create_api_key201_response_spec.rb +20 -2
- data/spec/models/create_api_key_request_spec.rb +8 -2
- data/spec/models/create_billing_checkout200_response_spec.rb +2 -2
- data/spec/models/create_billing_checkout_request_spec.rb +2 -2
- data/spec/models/create_calendar_event_request_spec.rb +2 -2
- data/spec/models/create_calendar_integration_request_spec.rb +2 -2
- data/spec/models/create_calendar_request_spec.rb +2 -2
- data/spec/models/create_contact_list_request_spec.rb +2 -2
- data/spec/models/create_contact_request_spec.rb +2 -2
- data/spec/models/create_dedicated_ip_request_request_spec.rb +2 -2
- data/spec/models/create_distribution_list_request_spec.rb +2 -2
- data/spec/models/create_domain_request_spec.rb +2 -2
- data/spec/models/create_encryption_key201_response_spec.rb +8 -2
- data/spec/models/create_encryption_key_request_spec.rb +2 -2
- data/spec/models/create_encryption_recovery_request_spec.rb +2 -2
- data/spec/models/create_mailbox_request_spec.rb +2 -2
- data/spec/models/create_migration_credential_request_credentials_spec.rb +2 -2
- data/spec/models/create_migration_credential_request_spec.rb +2 -2
- data/spec/models/create_migration_request_spec.rb +2 -2
- data/spec/models/create_resource_request_spec.rb +2 -2
- data/spec/models/create_suppression_request_spec.rb +2 -2
- data/spec/models/create_units_checkout200_response_spec.rb +2 -2
- data/spec/models/create_units_checkout_request_spec.rb +2 -2
- data/spec/models/create_user_request_spec.rb +2 -2
- data/spec/models/create_webhook_request_spec.rb +2 -2
- data/spec/models/dedicated_ip_request_spec.rb +2 -2
- data/spec/models/directory_permissions_spec.rb +2 -2
- data/spec/models/discover_migration202_response_spec.rb +2 -2
- data/spec/models/distribution_list_detail_spec.rb +2 -2
- data/spec/models/distribution_list_summary_spec.rb +2 -2
- data/spec/models/dns_record_spec.rb +2 -2
- data/spec/models/domain_spec.rb +2 -2
- data/spec/models/draft_list_spec.rb +2 -2
- data/spec/models/draft_result_spec.rb +2 -2
- data/spec/models/draft_spec.rb +2 -2
- data/spec/models/export_mailbox201_response_spec.rb +2 -2
- data/spec/models/external_contact_input_spec.rb +92 -0
- data/spec/models/gal_settings_spec.rb +2 -2
- data/spec/models/get_add_on_status200_response_spec.rb +2 -2
- data/spec/models/get_audit_summary200_response_spec.rb +2 -2
- data/spec/models/get_calendar_overview200_response_activity_inner_spec.rb +2 -2
- data/spec/models/get_calendar_overview200_response_spec.rb +2 -2
- data/spec/models/get_calendar_security200_response_alerts_inner_spec.rb +2 -2
- data/spec/models/get_calendar_security200_response_delegated_access_inner_spec.rb +2 -2
- data/spec/models/get_calendar_security200_response_external_sharing_spec.rb +2 -2
- data/spec/models/get_calendar_security200_response_public_calendar_list_inner_spec.rb +2 -2
- data/spec/models/get_calendar_security200_response_spec.rb +2 -2
- data/spec/models/get_contact_list200_response_members_inner_spec.rb +2 -2
- data/spec/models/get_contact_list200_response_spec.rb +2 -2
- data/spec/models/get_contact_lists200_response_data_inner_spec.rb +2 -2
- data/spec/models/get_contact_lists200_response_spec.rb +2 -2
- data/spec/models/get_current_admin200_response_spec.rb +2 -2
- data/spec/models/get_directory_activity200_response_data_inner_spec.rb +2 -2
- data/spec/models/get_directory_activity200_response_spec.rb +2 -2
- data/spec/models/get_directory_stats200_response_spec.rb +2 -2
- data/spec/models/get_domains_status200_response_domains_inner_checks_inner_spec.rb +2 -2
- data/spec/models/get_domains_status200_response_domains_inner_spec.rb +2 -2
- data/spec/models/get_domains_status200_response_spec.rb +2 -2
- data/spec/models/get_encryption_key200_response_spec.rb +32 -2
- data/spec/models/get_encryption_status200_response_mailboxes_inner_spec.rb +60 -0
- data/spec/models/get_encryption_status200_response_spec.rb +48 -0
- data/spec/models/get_integrations_summary200_response_api_keys_inner_spec.rb +2 -2
- data/spec/models/get_integrations_summary200_response_spec.rb +2 -2
- data/spec/models/get_integrations_summary200_response_webhooks_inner_spec.rb +2 -2
- data/spec/models/get_ip_assignment200_response_spec.rb +2 -2
- data/spec/models/get_security200_response_alerts_inner_spec.rb +2 -2
- data/spec/models/get_security200_response_spec.rb +2 -2
- data/spec/models/get_security200_response_stats_inner_spec.rb +2 -2
- data/spec/models/get_storage200_response_spec.rb +2 -2
- data/spec/models/get_storage200_response_top_mailboxes_inner_spec.rb +2 -2
- data/spec/models/get_storage200_response_top_messages_inner_spec.rb +2 -2
- data/spec/models/get_usage200_response_spec.rb +2 -2
- data/spec/models/get_user_insights200_response_spec.rb +2 -2
- data/spec/models/health_check200_response_spec.rb +2 -2
- data/spec/models/inbox_list_spec.rb +2 -2
- data/spec/models/inbox_spec.rb +2 -2
- data/spec/models/injection_risk_spec.rb +2 -2
- data/spec/models/invite_admin_request_spec.rb +2 -2
- data/spec/models/list_add_ons200_response_spec.rb +2 -2
- data/spec/models/list_admins200_response_spec.rb +2 -2
- data/spec/models/list_aliases200_response_spec.rb +2 -2
- data/spec/models/list_api_keys200_response_spec.rb +2 -2
- data/spec/models/list_calendar_events200_response_spec.rb +2 -2
- data/spec/models/list_calendar_integrations200_response_spec.rb +2 -2
- data/spec/models/list_calendar_members200_response_spec.rb +2 -2
- data/spec/models/list_calendars200_response_spec.rb +2 -2
- data/spec/models/list_contact_lists200_response_spec.rb +2 -2
- data/spec/models/list_contacts200_response_spec.rb +2 -2
- data/spec/models/list_dedicated_ip_requests200_response_spec.rb +2 -2
- data/spec/models/list_distribution_lists200_response_spec.rb +2 -2
- data/spec/models/list_domains200_response_spec.rb +2 -2
- data/spec/models/list_mailboxes200_response_spec.rb +2 -2
- data/spec/models/list_messages200_response_spec.rb +2 -2
- data/spec/models/list_migration_credentials200_response_spec.rb +2 -2
- data/spec/models/list_migration_events200_response_spec.rb +2 -2
- data/spec/models/list_migration_mailboxes200_response_spec.rb +2 -2
- data/spec/models/list_migrations200_response_spec.rb +2 -2
- data/spec/models/list_resources200_response_spec.rb +2 -2
- data/spec/models/list_shared_members200_response_spec.rb +2 -2
- data/spec/models/list_suppressions200_response_spec.rb +2 -2
- data/spec/models/list_templates200_response_spec.rb +2 -2
- data/spec/models/list_users200_response_spec.rb +2 -2
- data/spec/models/list_webhooks200_response_spec.rb +2 -2
- data/spec/models/mailbox_grant_list_spec.rb +2 -2
- data/spec/models/mailbox_grant_spec.rb +2 -2
- data/spec/models/mailbox_spec.rb +2 -2
- data/spec/models/map_migration_request_mappings_inner_spec.rb +2 -2
- data/spec/models/map_migration_request_spec.rb +2 -2
- data/spec/models/mark_read_result_spec.rb +2 -2
- data/spec/models/message_detail_spec.rb +14 -2
- data/spec/models/message_spec.rb +14 -2
- data/spec/models/message_stats_counts_spec.rb +2 -2
- data/spec/models/message_stats_rates_spec.rb +2 -2
- data/spec/models/message_stats_spec.rb +2 -2
- data/spec/models/message_stats_window_spec.rb +2 -2
- data/spec/models/migration_credential_spec.rb +2 -2
- data/spec/models/migration_dns_check_spec.rb +42 -0
- data/spec/models/migration_domain_dns_spec.rb +60 -0
- data/spec/models/migration_event_spec.rb +2 -2
- data/spec/models/migration_mailbox_spec.rb +2 -2
- data/spec/models/migration_progress_mailboxes_inner_spec.rb +2 -2
- data/spec/models/migration_progress_spec.rb +2 -2
- data/spec/models/migration_settings_spec.rb +2 -2
- data/spec/models/migration_spec.rb +2 -2
- data/spec/models/model_alias_spec.rb +2 -2
- data/spec/models/plan_catalog_entry_spec.rb +2 -2
- data/spec/models/policy_flags_spec.rb +2 -2
- data/spec/models/problem_spec.rb +2 -2
- data/spec/models/replace_distribution_list_members200_response_spec.rb +2 -2
- data/spec/models/replace_distribution_list_members_request_spec.rb +2 -2
- data/spec/models/resource_spec.rb +2 -2
- data/spec/models/return_path_check_spec.rb +2 -2
- data/spec/models/return_path_spec.rb +2 -2
- data/spec/models/rotate_api_key_request_spec.rb +36 -0
- data/spec/models/rotate_encryption_key_request_spec.rb +2 -2
- data/spec/models/send_email200_response_spec.rb +2 -2
- data/spec/models/send_email202_response_spec.rb +2 -2
- data/spec/models/send_email_batch200_response_spec.rb +2 -2
- data/spec/models/send_email_batch_request_spec.rb +8 -2
- data/spec/models/send_email_request_attachments_inner_spec.rb +2 -2
- data/spec/models/send_email_request_spec.rb +26 -2
- data/spec/models/send_message_spec.rb +2 -2
- data/spec/models/shared_member_spec.rb +2 -2
- data/spec/models/signup_request_spec.rb +2 -2
- data/spec/models/simulated_inbound_spec.rb +2 -2
- data/spec/models/start_conversation_request_spec.rb +2 -2
- data/spec/models/start_migration202_response_spec.rb +2 -2
- data/spec/models/suppression_spec.rb +2 -2
- data/spec/models/template_input_spec.rb +2 -2
- data/spec/models/template_spec.rb +2 -2
- data/spec/models/tenant_health_check_spec.rb +54 -0
- data/spec/models/tenant_health_report_spec.rb +48 -0
- data/spec/models/tenant_spec.rb +2 -2
- data/spec/models/thread_classification_spec.rb +2 -2
- data/spec/models/thread_list_spec.rb +2 -2
- data/spec/models/thread_message_body_body_spec.rb +2 -2
- data/spec/models/thread_message_body_spec.rb +2 -2
- data/spec/models/thread_message_spec.rb +2 -2
- data/spec/models/thread_spec.rb +2 -2
- data/spec/models/thread_summary_spec.rb +2 -2
- data/spec/models/tracking_policy_spec.rb +54 -0
- data/spec/models/unit_bundle_spec.rb +2 -2
- data/spec/models/update_admin_request_spec.rb +2 -2
- data/spec/models/update_api_key_request_spec.rb +48 -0
- data/spec/models/update_calendar_event_request_spec.rb +2 -2
- data/spec/models/update_calendar_integration_request_spec.rb +2 -2
- data/spec/models/update_calendar_member_request_spec.rb +2 -2
- data/spec/models/update_calendar_policies_request_spec.rb +2 -2
- data/spec/models/update_calendar_request_spec.rb +2 -2
- data/spec/models/update_contact_list_request_spec.rb +2 -2
- data/spec/models/update_contact_request_spec.rb +2 -2
- data/spec/models/update_directory_permissions_request_spec.rb +2 -2
- data/spec/models/update_gal_settings_request_spec.rb +2 -2
- data/spec/models/update_mailbox_request_spec.rb +2 -2
- data/spec/models/update_migration_mailbox_request_spec.rb +2 -2
- data/spec/models/update_migration_request_spec.rb +2 -2
- data/spec/models/update_resource_request_spec.rb +2 -2
- data/spec/models/update_tracking_policy_request_spec.rb +42 -0
- data/spec/models/update_user_request_spec.rb +2 -2
- data/spec/models/update_webhook_request_spec.rb +2 -2
- data/spec/models/user_event_spec.rb +2 -2
- data/spec/models/user_spec.rb +2 -2
- data/spec/models/webhook_spec.rb +2 -2
- data/spec/models/whoami_key_spec.rb +2 -2
- data/spec/models/whoami_spec.rb +2 -2
- data/spec/models/whoami_tenant_spec.rb +2 -2
- data/spec/spec_helper.rb +2 -2
- metadata +274 -233
- data/docs/ListVacationResponders200Response.md +0 -18
- data/docs/SetVacationResponderRequest.md +0 -20
- data/docs/VacationParams.md +0 -24
- data/docs/VacationResponder.md +0 -30
- data/lib/lockally/models/vacation_responder.rb +0 -305
- data/spec/models/list_vacation_responders200_response_spec.rb +0 -36
- data/spec/models/set_vacation_responder_request_spec.rb +0 -42
- data/spec/models/vacation_params_spec.rb +0 -54
- data/spec/models/vacation_responder_spec.rb +0 -72
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
=begin
|
|
2
|
-
#
|
|
2
|
+
#Lockally API
|
|
3
3
|
|
|
4
|
-
#
|
|
4
|
+
#Official Lockally SDK for Ruby: send email and manage mailboxes, domains and webhooks through the Lockally API. **Authentication.** All `/v1/*` endpoints require a Bearer API key in the `Authorization` header. Keys are formatted `lk_live_<8-char-prefix>_<32-char-secret>`, or `lk_test_<...>` for a test key. Create keys in the dashboard, or with `POST /v1/api-keys` using a key that holds `tenant:admin`. The key's plan is checked on every request, so a key stops working if the account moves to a plan without API access, and works again if it moves back. **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
5
|
|
|
6
6
|
The version of the OpenAPI document: 0.1.0
|
|
7
7
|
Contact: support@lockally.com
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
=begin
|
|
2
|
-
#
|
|
2
|
+
#Lockally API
|
|
3
3
|
|
|
4
|
-
#
|
|
4
|
+
#Official Lockally SDK for Ruby: send email and manage mailboxes, domains and webhooks through the Lockally API. **Authentication.** All `/v1/*` endpoints require a Bearer API key in the `Authorization` header. Keys are formatted `lk_live_<8-char-prefix>_<32-char-secret>`, or `lk_test_<...>` for a test key. Create keys in the dashboard, or with `POST /v1/api-keys` using a key that holds `tenant:admin`. The key's plan is checked on every request, so a key stops working if the account moves to a plan without API access, and works again if it moves back. **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
5
|
|
|
6
6
|
The version of the OpenAPI document: 0.1.0
|
|
7
7
|
Contact: support@lockally.com
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
=begin
|
|
2
|
-
#
|
|
2
|
+
#Lockally API
|
|
3
3
|
|
|
4
|
-
#
|
|
4
|
+
#Official Lockally SDK for Ruby: send email and manage mailboxes, domains and webhooks through the Lockally API. **Authentication.** All `/v1/*` endpoints require a Bearer API key in the `Authorization` header. Keys are formatted `lk_live_<8-char-prefix>_<32-char-secret>`, or `lk_test_<...>` for a test key. Create keys in the dashboard, or with `POST /v1/api-keys` using a key that holds `tenant:admin`. The key's plan is checked on every request, so a key stops working if the account moves to a plan without API access, and works again if it moves back. **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
5
|
|
|
6
6
|
The version of the OpenAPI document: 0.1.0
|
|
7
7
|
Contact: support@lockally.com
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
=begin
|
|
2
|
-
#
|
|
2
|
+
#Lockally API
|
|
3
3
|
|
|
4
|
-
#
|
|
4
|
+
#Official Lockally SDK for Ruby: send email and manage mailboxes, domains and webhooks through the Lockally API. **Authentication.** All `/v1/*` endpoints require a Bearer API key in the `Authorization` header. Keys are formatted `lk_live_<8-char-prefix>_<32-char-secret>`, or `lk_test_<...>` for a test key. Create keys in the dashboard, or with `POST /v1/api-keys` using a key that holds `tenant:admin`. The key's plan is checked on every request, so a key stops working if the account moves to a plan without API access, and works again if it moves back. **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
5
|
|
|
6
6
|
The version of the OpenAPI document: 0.1.0
|
|
7
7
|
Contact: support@lockally.com
|
|
@@ -32,6 +32,15 @@ module Lockally
|
|
|
32
32
|
|
|
33
33
|
attr_accessor :created_at
|
|
34
34
|
|
|
35
|
+
# True for an lk_test_* key: the whole request path runs but a send never reaches the mail server and nothing counts against the account.
|
|
36
|
+
attr_accessor :test
|
|
37
|
+
|
|
38
|
+
# When the key stops authenticating. Null means it does not expire, which is how every key behaved before expiry existed. Enforced at authentication, so the key fails the first request after this moment rather than whenever a sweep runs.
|
|
39
|
+
attr_accessor :expires_at
|
|
40
|
+
|
|
41
|
+
# The successor issued by `POST /v1/api-keys/{id}/rotate`. Set on the PREDECESSOR, so you can see which key replaced this one while both still work through the overlap window.
|
|
42
|
+
attr_accessor :rotated_to
|
|
43
|
+
|
|
35
44
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
36
45
|
def self.attribute_map
|
|
37
46
|
{
|
|
@@ -42,7 +51,10 @@ module Lockally
|
|
|
42
51
|
:'label' => :'label',
|
|
43
52
|
:'last_used_at' => :'last_used_at',
|
|
44
53
|
:'revoked_at' => :'revoked_at',
|
|
45
|
-
:'created_at' => :'created_at'
|
|
54
|
+
:'created_at' => :'created_at',
|
|
55
|
+
:'test' => :'test',
|
|
56
|
+
:'expires_at' => :'expires_at',
|
|
57
|
+
:'rotated_to' => :'rotated_to'
|
|
46
58
|
}
|
|
47
59
|
end
|
|
48
60
|
|
|
@@ -66,7 +78,10 @@ module Lockally
|
|
|
66
78
|
:'label' => :'String',
|
|
67
79
|
:'last_used_at' => :'Time',
|
|
68
80
|
:'revoked_at' => :'Time',
|
|
69
|
-
:'created_at' => :'Time'
|
|
81
|
+
:'created_at' => :'Time',
|
|
82
|
+
:'test' => :'Boolean',
|
|
83
|
+
:'expires_at' => :'Time',
|
|
84
|
+
:'rotated_to' => :'String'
|
|
70
85
|
}
|
|
71
86
|
end
|
|
72
87
|
|
|
@@ -137,6 +152,18 @@ module Lockally
|
|
|
137
152
|
else
|
|
138
153
|
self.created_at = nil
|
|
139
154
|
end
|
|
155
|
+
|
|
156
|
+
if attributes.key?(:'test')
|
|
157
|
+
self.test = attributes[:'test']
|
|
158
|
+
end
|
|
159
|
+
|
|
160
|
+
if attributes.key?(:'expires_at')
|
|
161
|
+
self.expires_at = attributes[:'expires_at']
|
|
162
|
+
end
|
|
163
|
+
|
|
164
|
+
if attributes.key?(:'rotated_to')
|
|
165
|
+
self.rotated_to = attributes[:'rotated_to']
|
|
166
|
+
end
|
|
140
167
|
end
|
|
141
168
|
|
|
142
169
|
# Show invalid properties with the reasons. Usually used together with valid?
|
|
@@ -256,7 +283,10 @@ module Lockally
|
|
|
256
283
|
label == o.label &&
|
|
257
284
|
last_used_at == o.last_used_at &&
|
|
258
285
|
revoked_at == o.revoked_at &&
|
|
259
|
-
created_at == o.created_at
|
|
286
|
+
created_at == o.created_at &&
|
|
287
|
+
test == o.test &&
|
|
288
|
+
expires_at == o.expires_at &&
|
|
289
|
+
rotated_to == o.rotated_to
|
|
260
290
|
end
|
|
261
291
|
|
|
262
292
|
# @see the `==` method
|
|
@@ -268,7 +298,7 @@ module Lockally
|
|
|
268
298
|
# Calculates hash code according to all attributes.
|
|
269
299
|
# @return [Integer] Hash code
|
|
270
300
|
def hash
|
|
271
|
-
[id, tenant_id, prefix, scopes, label, last_used_at, revoked_at, created_at].hash
|
|
301
|
+
[id, tenant_id, prefix, scopes, label, last_used_at, revoked_at, created_at, test, expires_at, rotated_to].hash
|
|
272
302
|
end
|
|
273
303
|
|
|
274
304
|
# Builds the object from hash
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
=begin
|
|
2
|
-
#
|
|
2
|
+
#Lockally API
|
|
3
3
|
|
|
4
|
-
#
|
|
4
|
+
#Official Lockally SDK for Ruby: send email and manage mailboxes, domains and webhooks through the Lockally API. **Authentication.** All `/v1/*` endpoints require a Bearer API key in the `Authorization` header. Keys are formatted `lk_live_<8-char-prefix>_<32-char-secret>`, or `lk_test_<...>` for a test key. Create keys in the dashboard, or with `POST /v1/api-keys` using a key that holds `tenant:admin`. The key's plan is checked on every request, so a key stops working if the account moves to a plan without API access, and works again if it moves back. **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
5
|
|
|
6
6
|
The version of the OpenAPI document: 0.1.0
|
|
7
7
|
Contact: support@lockally.com
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
=begin
|
|
2
|
-
#
|
|
2
|
+
#Lockally API
|
|
3
3
|
|
|
4
|
-
#
|
|
4
|
+
#Official Lockally SDK for Ruby: send email and manage mailboxes, domains and webhooks through the Lockally API. **Authentication.** All `/v1/*` endpoints require a Bearer API key in the `Authorization` header. Keys are formatted `lk_live_<8-char-prefix>_<32-char-secret>`, or `lk_test_<...>` for a test key. Create keys in the dashboard, or with `POST /v1/api-keys` using a key that holds `tenant:admin`. The key's plan is checked on every request, so a key stops working if the account moves to a plan without API access, and works again if it moves back. **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
5
|
|
|
6
6
|
The version of the OpenAPI document: 0.1.0
|
|
7
7
|
Contact: support@lockally.com
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
=begin
|
|
2
|
-
#
|
|
2
|
+
#Lockally API
|
|
3
3
|
|
|
4
|
-
#
|
|
4
|
+
#Official Lockally SDK for Ruby: send email and manage mailboxes, domains and webhooks through the Lockally API. **Authentication.** All `/v1/*` endpoints require a Bearer API key in the `Authorization` header. Keys are formatted `lk_live_<8-char-prefix>_<32-char-secret>`, or `lk_test_<...>` for a test key. Create keys in the dashboard, or with `POST /v1/api-keys` using a key that holds `tenant:admin`. The key's plan is checked on every request, so a key stops working if the account moves to a plan without API access, and works again if it moves back. **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
5
|
|
|
6
6
|
The version of the OpenAPI document: 0.1.0
|
|
7
7
|
Contact: support@lockally.com
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
=begin
|
|
2
|
-
#
|
|
2
|
+
#Lockally API
|
|
3
3
|
|
|
4
|
-
#
|
|
4
|
+
#Official Lockally SDK for Ruby: send email and manage mailboxes, domains and webhooks through the Lockally API. **Authentication.** All `/v1/*` endpoints require a Bearer API key in the `Authorization` header. Keys are formatted `lk_live_<8-char-prefix>_<32-char-secret>`, or `lk_test_<...>` for a test key. Create keys in the dashboard, or with `POST /v1/api-keys` using a key that holds `tenant:admin`. The key's plan is checked on every request, so a key stops working if the account moves to a plan without API access, and works again if it moves back. **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
5
|
|
|
6
6
|
The version of the OpenAPI document: 0.1.0
|
|
7
7
|
Contact: support@lockally.com
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
=begin
|
|
2
|
-
#
|
|
2
|
+
#Lockally API
|
|
3
3
|
|
|
4
|
-
#
|
|
4
|
+
#Official Lockally SDK for Ruby: send email and manage mailboxes, domains and webhooks through the Lockally API. **Authentication.** All `/v1/*` endpoints require a Bearer API key in the `Authorization` header. Keys are formatted `lk_live_<8-char-prefix>_<32-char-secret>`, or `lk_test_<...>` for a test key. Create keys in the dashboard, or with `POST /v1/api-keys` using a key that holds `tenant:admin`. The key's plan is checked on every request, so a key stops working if the account moves to a plan without API access, and works again if it moves back. **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
5
|
|
|
6
6
|
The version of the OpenAPI document: 0.1.0
|
|
7
7
|
Contact: support@lockally.com
|
|
@@ -27,6 +27,9 @@ module Lockally
|
|
|
27
27
|
# Present when this message failed; the others are then absent.
|
|
28
28
|
attr_accessor :error
|
|
29
29
|
|
|
30
|
+
# Advisory, and NOT a failure. Today the only one is a template variable the template referenced and the request never supplied, which rendered as the empty string.
|
|
31
|
+
attr_accessor :warning
|
|
32
|
+
|
|
30
33
|
class EnumAttributeValidator
|
|
31
34
|
attr_reader :datatype
|
|
32
35
|
attr_reader :allowable_values
|
|
@@ -56,7 +59,8 @@ module Lockally
|
|
|
56
59
|
:'id' => :'id',
|
|
57
60
|
:'message_id' => :'message_id',
|
|
58
61
|
:'status' => :'status',
|
|
59
|
-
:'error' => :'error'
|
|
62
|
+
:'error' => :'error',
|
|
63
|
+
:'warning' => :'warning'
|
|
60
64
|
}
|
|
61
65
|
end
|
|
62
66
|
|
|
@@ -77,7 +81,8 @@ module Lockally
|
|
|
77
81
|
:'id' => :'String',
|
|
78
82
|
:'message_id' => :'String',
|
|
79
83
|
:'status' => :'String',
|
|
80
|
-
:'error' => :'String'
|
|
84
|
+
:'error' => :'String',
|
|
85
|
+
:'warning' => :'String'
|
|
81
86
|
}
|
|
82
87
|
end
|
|
83
88
|
|
|
@@ -122,6 +127,10 @@ module Lockally
|
|
|
122
127
|
if attributes.key?(:'error')
|
|
123
128
|
self.error = attributes[:'error']
|
|
124
129
|
end
|
|
130
|
+
|
|
131
|
+
if attributes.key?(:'warning')
|
|
132
|
+
self.warning = attributes[:'warning']
|
|
133
|
+
end
|
|
125
134
|
end
|
|
126
135
|
|
|
127
136
|
# Show invalid properties with the reasons. Usually used together with valid?
|
|
@@ -160,7 +169,8 @@ module Lockally
|
|
|
160
169
|
id == o.id &&
|
|
161
170
|
message_id == o.message_id &&
|
|
162
171
|
status == o.status &&
|
|
163
|
-
error == o.error
|
|
172
|
+
error == o.error &&
|
|
173
|
+
warning == o.warning
|
|
164
174
|
end
|
|
165
175
|
|
|
166
176
|
# @see the `==` method
|
|
@@ -172,7 +182,7 @@ module Lockally
|
|
|
172
182
|
# Calculates hash code according to all attributes.
|
|
173
183
|
# @return [Integer] Hash code
|
|
174
184
|
def hash
|
|
175
|
-
[index, id, message_id, status, error].hash
|
|
185
|
+
[index, id, message_id, status, error, warning].hash
|
|
176
186
|
end
|
|
177
187
|
|
|
178
188
|
# Builds the object from hash
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
=begin
|
|
2
|
-
#
|
|
2
|
+
#Lockally API
|
|
3
3
|
|
|
4
|
-
#
|
|
4
|
+
#Official Lockally SDK for Ruby: send email and manage mailboxes, domains and webhooks through the Lockally API. **Authentication.** All `/v1/*` endpoints require a Bearer API key in the `Authorization` header. Keys are formatted `lk_live_<8-char-prefix>_<32-char-secret>`, or `lk_test_<...>` for a test key. Create keys in the dashboard, or with `POST /v1/api-keys` using a key that holds `tenant:admin`. The key's plan is checked on every request, so a key stops working if the account moves to a plan without API access, and works again if it moves back. **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
5
|
|
|
6
6
|
The version of the OpenAPI document: 0.1.0
|
|
7
7
|
Contact: support@lockally.com
|
|
@@ -0,0 +1,244 @@
|
|
|
1
|
+
=begin
|
|
2
|
+
#Lockally API
|
|
3
|
+
|
|
4
|
+
#Official Lockally SDK for Ruby: send email and manage mailboxes, domains and webhooks through the Lockally API. **Authentication.** All `/v1/*` endpoints require a Bearer API key in the `Authorization` header. Keys are formatted `lk_live_<8-char-prefix>_<32-char-secret>`, or `lk_test_<...>` for a test key. Create keys in the dashboard, or with `POST /v1/api-keys` using a key that holds `tenant:admin`. The key's plan is checked on every request, so a key stops working if the account moves to a plan without API access, and works again if it moves back. **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 'date'
|
|
14
|
+
require 'time'
|
|
15
|
+
|
|
16
|
+
module Lockally
|
|
17
|
+
class BulkUpsertExternalContacts200Response < ApiModelBase
|
|
18
|
+
attr_accessor :created
|
|
19
|
+
|
|
20
|
+
attr_accessor :updated
|
|
21
|
+
|
|
22
|
+
attr_accessor :failed
|
|
23
|
+
|
|
24
|
+
attr_accessor :results
|
|
25
|
+
|
|
26
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
|
27
|
+
def self.attribute_map
|
|
28
|
+
{
|
|
29
|
+
:'created' => :'created',
|
|
30
|
+
:'updated' => :'updated',
|
|
31
|
+
:'failed' => :'failed',
|
|
32
|
+
:'results' => :'results'
|
|
33
|
+
}
|
|
34
|
+
end
|
|
35
|
+
|
|
36
|
+
# Returns attribute mapping this model knows about
|
|
37
|
+
def self.acceptable_attribute_map
|
|
38
|
+
attribute_map
|
|
39
|
+
end
|
|
40
|
+
|
|
41
|
+
# Returns all the JSON keys this model knows about
|
|
42
|
+
def self.acceptable_attributes
|
|
43
|
+
acceptable_attribute_map.values
|
|
44
|
+
end
|
|
45
|
+
|
|
46
|
+
# Attribute type mapping.
|
|
47
|
+
def self.openapi_types
|
|
48
|
+
{
|
|
49
|
+
:'created' => :'Integer',
|
|
50
|
+
:'updated' => :'Integer',
|
|
51
|
+
:'failed' => :'Integer',
|
|
52
|
+
:'results' => :'Array<BulkUpsertExternalContacts200ResponseResultsInner>'
|
|
53
|
+
}
|
|
54
|
+
end
|
|
55
|
+
|
|
56
|
+
# List of attributes with nullable: true
|
|
57
|
+
def self.openapi_nullable
|
|
58
|
+
Set.new([
|
|
59
|
+
])
|
|
60
|
+
end
|
|
61
|
+
|
|
62
|
+
# Initializes the object
|
|
63
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
64
|
+
def initialize(attributes = {})
|
|
65
|
+
if (!attributes.is_a?(Hash))
|
|
66
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `Lockally::BulkUpsertExternalContacts200Response` initialize method"
|
|
67
|
+
end
|
|
68
|
+
|
|
69
|
+
# check to see if the attribute exists and convert string to symbol for hash key
|
|
70
|
+
acceptable_attribute_map = self.class.acceptable_attribute_map
|
|
71
|
+
attributes = attributes.each_with_object({}) { |(k, v), h|
|
|
72
|
+
if (!acceptable_attribute_map.key?(k.to_sym))
|
|
73
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `Lockally::BulkUpsertExternalContacts200Response`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
|
|
74
|
+
end
|
|
75
|
+
h[k.to_sym] = v
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
if attributes.key?(:'created')
|
|
79
|
+
self.created = attributes[:'created']
|
|
80
|
+
else
|
|
81
|
+
self.created = nil
|
|
82
|
+
end
|
|
83
|
+
|
|
84
|
+
if attributes.key?(:'updated')
|
|
85
|
+
self.updated = attributes[:'updated']
|
|
86
|
+
else
|
|
87
|
+
self.updated = nil
|
|
88
|
+
end
|
|
89
|
+
|
|
90
|
+
if attributes.key?(:'failed')
|
|
91
|
+
self.failed = attributes[:'failed']
|
|
92
|
+
else
|
|
93
|
+
self.failed = nil
|
|
94
|
+
end
|
|
95
|
+
|
|
96
|
+
if attributes.key?(:'results')
|
|
97
|
+
if (value = attributes[:'results']).is_a?(Array)
|
|
98
|
+
self.results = value
|
|
99
|
+
end
|
|
100
|
+
else
|
|
101
|
+
self.results = nil
|
|
102
|
+
end
|
|
103
|
+
end
|
|
104
|
+
|
|
105
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
|
106
|
+
# @return Array for valid properties with the reasons
|
|
107
|
+
def list_invalid_properties
|
|
108
|
+
warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
|
|
109
|
+
invalid_properties = Array.new
|
|
110
|
+
if @created.nil?
|
|
111
|
+
invalid_properties.push('invalid value for "created", created cannot be nil.')
|
|
112
|
+
end
|
|
113
|
+
|
|
114
|
+
if @updated.nil?
|
|
115
|
+
invalid_properties.push('invalid value for "updated", updated cannot be nil.')
|
|
116
|
+
end
|
|
117
|
+
|
|
118
|
+
if @failed.nil?
|
|
119
|
+
invalid_properties.push('invalid value for "failed", failed cannot be nil.')
|
|
120
|
+
end
|
|
121
|
+
|
|
122
|
+
if @results.nil?
|
|
123
|
+
invalid_properties.push('invalid value for "results", results cannot be nil.')
|
|
124
|
+
end
|
|
125
|
+
|
|
126
|
+
invalid_properties
|
|
127
|
+
end
|
|
128
|
+
|
|
129
|
+
# Check to see if the all the properties in the model are valid
|
|
130
|
+
# @return true if the model is valid
|
|
131
|
+
def valid?
|
|
132
|
+
warn '[DEPRECATED] the `valid?` method is obsolete'
|
|
133
|
+
return false if @created.nil?
|
|
134
|
+
return false if @updated.nil?
|
|
135
|
+
return false if @failed.nil?
|
|
136
|
+
return false if @results.nil?
|
|
137
|
+
true
|
|
138
|
+
end
|
|
139
|
+
|
|
140
|
+
# Custom attribute writer method with validation
|
|
141
|
+
# @param [Object] created Value to be assigned
|
|
142
|
+
def created=(created)
|
|
143
|
+
if created.nil?
|
|
144
|
+
fail ArgumentError, 'created cannot be nil'
|
|
145
|
+
end
|
|
146
|
+
|
|
147
|
+
@created = created
|
|
148
|
+
end
|
|
149
|
+
|
|
150
|
+
# Custom attribute writer method with validation
|
|
151
|
+
# @param [Object] updated Value to be assigned
|
|
152
|
+
def updated=(updated)
|
|
153
|
+
if updated.nil?
|
|
154
|
+
fail ArgumentError, 'updated cannot be nil'
|
|
155
|
+
end
|
|
156
|
+
|
|
157
|
+
@updated = updated
|
|
158
|
+
end
|
|
159
|
+
|
|
160
|
+
# Custom attribute writer method with validation
|
|
161
|
+
# @param [Object] failed Value to be assigned
|
|
162
|
+
def failed=(failed)
|
|
163
|
+
if failed.nil?
|
|
164
|
+
fail ArgumentError, 'failed cannot be nil'
|
|
165
|
+
end
|
|
166
|
+
|
|
167
|
+
@failed = failed
|
|
168
|
+
end
|
|
169
|
+
|
|
170
|
+
# Custom attribute writer method with validation
|
|
171
|
+
# @param [Object] results Value to be assigned
|
|
172
|
+
def results=(results)
|
|
173
|
+
if results.nil?
|
|
174
|
+
fail ArgumentError, 'results cannot be nil'
|
|
175
|
+
end
|
|
176
|
+
|
|
177
|
+
@results = results
|
|
178
|
+
end
|
|
179
|
+
|
|
180
|
+
# Checks equality by comparing each attribute.
|
|
181
|
+
# @param [Object] Object to be compared
|
|
182
|
+
def ==(o)
|
|
183
|
+
return true if self.equal?(o)
|
|
184
|
+
self.class == o.class &&
|
|
185
|
+
created == o.created &&
|
|
186
|
+
updated == o.updated &&
|
|
187
|
+
failed == o.failed &&
|
|
188
|
+
results == o.results
|
|
189
|
+
end
|
|
190
|
+
|
|
191
|
+
# @see the `==` method
|
|
192
|
+
# @param [Object] Object to be compared
|
|
193
|
+
def eql?(o)
|
|
194
|
+
self == o
|
|
195
|
+
end
|
|
196
|
+
|
|
197
|
+
# Calculates hash code according to all attributes.
|
|
198
|
+
# @return [Integer] Hash code
|
|
199
|
+
def hash
|
|
200
|
+
[created, updated, failed, results].hash
|
|
201
|
+
end
|
|
202
|
+
|
|
203
|
+
# Builds the object from hash
|
|
204
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
205
|
+
# @return [Object] Returns the model itself
|
|
206
|
+
def self.build_from_hash(attributes)
|
|
207
|
+
return nil unless attributes.is_a?(Hash)
|
|
208
|
+
attributes = attributes.transform_keys(&:to_sym)
|
|
209
|
+
transformed_hash = {}
|
|
210
|
+
openapi_types.each_pair do |key, type|
|
|
211
|
+
if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
|
|
212
|
+
transformed_hash["#{key}"] = nil
|
|
213
|
+
elsif type =~ /\AArray<(.*)>/i
|
|
214
|
+
# check to ensure the input is an array given that the attribute
|
|
215
|
+
# is documented as an array but the input is not
|
|
216
|
+
if attributes[attribute_map[key]].is_a?(Array)
|
|
217
|
+
transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
|
|
218
|
+
end
|
|
219
|
+
elsif !attributes[attribute_map[key]].nil?
|
|
220
|
+
transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
|
|
221
|
+
end
|
|
222
|
+
end
|
|
223
|
+
new(transformed_hash)
|
|
224
|
+
end
|
|
225
|
+
|
|
226
|
+
# Returns the object in the form of hash
|
|
227
|
+
# @return [Hash] Returns the object in the form of hash
|
|
228
|
+
def to_hash
|
|
229
|
+
hash = {}
|
|
230
|
+
self.class.attribute_map.each_pair do |attr, param|
|
|
231
|
+
value = self.send(attr)
|
|
232
|
+
if value.nil?
|
|
233
|
+
is_nullable = self.class.openapi_nullable.include?(attr)
|
|
234
|
+
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
|
235
|
+
end
|
|
236
|
+
|
|
237
|
+
hash[param] = _to_hash(value)
|
|
238
|
+
end
|
|
239
|
+
hash
|
|
240
|
+
end
|
|
241
|
+
|
|
242
|
+
end
|
|
243
|
+
|
|
244
|
+
end
|