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,1445 @@
|
|
|
1
|
+
# Lockally::CalendarsApi
|
|
2
|
+
|
|
3
|
+
All URIs are relative to *https://api.lockally.com*
|
|
4
|
+
|
|
5
|
+
| Method | HTTP request | Description |
|
|
6
|
+
| ------ | ------------ | ----------- |
|
|
7
|
+
| [**add_calendar_member**](CalendarsApi.md#add_calendar_member) | **POST** /v1/calendars/{id}/members | Add a member to a calendar |
|
|
8
|
+
| [**create_calendar**](CalendarsApi.md#create_calendar) | **POST** /v1/calendars | Create a calendar |
|
|
9
|
+
| [**create_calendar_event**](CalendarsApi.md#create_calendar_event) | **POST** /v1/calendars/{id}/events | Create an event in a calendar |
|
|
10
|
+
| [**create_calendar_integration**](CalendarsApi.md#create_calendar_integration) | **POST** /v1/calendar-integrations | Create a calendar integration |
|
|
11
|
+
| [**delete_calendar**](CalendarsApi.md#delete_calendar) | **DELETE** /v1/calendars/{id} | Delete a calendar |
|
|
12
|
+
| [**delete_calendar_event**](CalendarsApi.md#delete_calendar_event) | **DELETE** /v1/calendars/{id}/events/{eventId} | Delete a calendar event |
|
|
13
|
+
| [**delete_calendar_integration**](CalendarsApi.md#delete_calendar_integration) | **DELETE** /v1/calendar-integrations/{id} | Delete a calendar integration |
|
|
14
|
+
| [**get_calendar**](CalendarsApi.md#get_calendar) | **GET** /v1/calendars/{id} | Get a calendar |
|
|
15
|
+
| [**get_calendar_policies**](CalendarsApi.md#get_calendar_policies) | **GET** /v1/calendar-policies | Get calendar policies |
|
|
16
|
+
| [**get_calendar_security**](CalendarsApi.md#get_calendar_security) | **GET** /v1/calendar-security | Get calendar security overview |
|
|
17
|
+
| [**list_calendar_events**](CalendarsApi.md#list_calendar_events) | **GET** /v1/calendars/{id}/events | List events in a calendar |
|
|
18
|
+
| [**list_calendar_integrations**](CalendarsApi.md#list_calendar_integrations) | **GET** /v1/calendar-integrations | List calendar integrations |
|
|
19
|
+
| [**list_calendar_members**](CalendarsApi.md#list_calendar_members) | **GET** /v1/calendars/{id}/members | List calendar members |
|
|
20
|
+
| [**list_calendars**](CalendarsApi.md#list_calendars) | **GET** /v1/calendars | List calendars |
|
|
21
|
+
| [**remove_calendar_member**](CalendarsApi.md#remove_calendar_member) | **DELETE** /v1/calendars/{id}/members/{memberId} | Remove a member from a calendar |
|
|
22
|
+
| [**sync_calendar_integration**](CalendarsApi.md#sync_calendar_integration) | **POST** /v1/calendar-integrations/{id}/sync | Trigger sync for a calendar integration |
|
|
23
|
+
| [**update_calendar**](CalendarsApi.md#update_calendar) | **PATCH** /v1/calendars/{id} | Update a calendar |
|
|
24
|
+
| [**update_calendar_event**](CalendarsApi.md#update_calendar_event) | **PATCH** /v1/calendars/{id}/events/{eventId} | Update a calendar event |
|
|
25
|
+
| [**update_calendar_integration**](CalendarsApi.md#update_calendar_integration) | **PATCH** /v1/calendar-integrations/{id} | Update a calendar integration |
|
|
26
|
+
| [**update_calendar_member**](CalendarsApi.md#update_calendar_member) | **PATCH** /v1/calendars/{id}/members/{memberId} | Update a calendar member's role |
|
|
27
|
+
| [**update_calendar_policies**](CalendarsApi.md#update_calendar_policies) | **PATCH** /v1/calendar-policies | Update calendar policies |
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
## add_calendar_member
|
|
31
|
+
|
|
32
|
+
> <CalendarMember> add_calendar_member(id, add_calendar_member_request)
|
|
33
|
+
|
|
34
|
+
Add a member to a calendar
|
|
35
|
+
|
|
36
|
+
### Examples
|
|
37
|
+
|
|
38
|
+
```ruby
|
|
39
|
+
require 'time'
|
|
40
|
+
require 'lockally'
|
|
41
|
+
# setup authorization
|
|
42
|
+
Lockally.configure do |config|
|
|
43
|
+
# Configure Bearer authorization (lk_live_<prefix>_<secret>): bearerAuth
|
|
44
|
+
config.access_token = 'YOUR_BEARER_TOKEN'
|
|
45
|
+
end
|
|
46
|
+
|
|
47
|
+
api_instance = Lockally::CalendarsApi.new
|
|
48
|
+
id = '38400000-8cf0-11bd-b23e-10b96e4ef00d' # String |
|
|
49
|
+
add_calendar_member_request = Lockally::AddCalendarMemberRequest.new({user_email: 'user_email_example'}) # AddCalendarMemberRequest |
|
|
50
|
+
|
|
51
|
+
begin
|
|
52
|
+
# Add a member to a calendar
|
|
53
|
+
result = api_instance.add_calendar_member(id, add_calendar_member_request)
|
|
54
|
+
p result
|
|
55
|
+
rescue Lockally::ApiError => e
|
|
56
|
+
puts "Error when calling CalendarsApi->add_calendar_member: #{e}"
|
|
57
|
+
end
|
|
58
|
+
```
|
|
59
|
+
|
|
60
|
+
#### Using the add_calendar_member_with_http_info variant
|
|
61
|
+
|
|
62
|
+
This returns an Array which contains the response data, status code and headers.
|
|
63
|
+
|
|
64
|
+
> <Array(<CalendarMember>, Integer, Hash)> add_calendar_member_with_http_info(id, add_calendar_member_request)
|
|
65
|
+
|
|
66
|
+
```ruby
|
|
67
|
+
begin
|
|
68
|
+
# Add a member to a calendar
|
|
69
|
+
data, status_code, headers = api_instance.add_calendar_member_with_http_info(id, add_calendar_member_request)
|
|
70
|
+
p status_code # => 2xx
|
|
71
|
+
p headers # => { ... }
|
|
72
|
+
p data # => <CalendarMember>
|
|
73
|
+
rescue Lockally::ApiError => e
|
|
74
|
+
puts "Error when calling CalendarsApi->add_calendar_member_with_http_info: #{e}"
|
|
75
|
+
end
|
|
76
|
+
```
|
|
77
|
+
|
|
78
|
+
### Parameters
|
|
79
|
+
|
|
80
|
+
| Name | Type | Description | Notes |
|
|
81
|
+
| ---- | ---- | ----------- | ----- |
|
|
82
|
+
| **id** | **String** | | |
|
|
83
|
+
| **add_calendar_member_request** | [**AddCalendarMemberRequest**](AddCalendarMemberRequest.md) | | |
|
|
84
|
+
|
|
85
|
+
### Return type
|
|
86
|
+
|
|
87
|
+
[**CalendarMember**](CalendarMember.md)
|
|
88
|
+
|
|
89
|
+
### Authorization
|
|
90
|
+
|
|
91
|
+
[bearerAuth](../README.md#bearerAuth)
|
|
92
|
+
|
|
93
|
+
### HTTP request headers
|
|
94
|
+
|
|
95
|
+
- **Content-Type**: application/json
|
|
96
|
+
- **Accept**: application/json, application/problem+json
|
|
97
|
+
|
|
98
|
+
|
|
99
|
+
## create_calendar
|
|
100
|
+
|
|
101
|
+
> <Calendar> create_calendar(create_calendar_request)
|
|
102
|
+
|
|
103
|
+
Create a calendar
|
|
104
|
+
|
|
105
|
+
### Examples
|
|
106
|
+
|
|
107
|
+
```ruby
|
|
108
|
+
require 'time'
|
|
109
|
+
require 'lockally'
|
|
110
|
+
# setup authorization
|
|
111
|
+
Lockally.configure do |config|
|
|
112
|
+
# Configure Bearer authorization (lk_live_<prefix>_<secret>): bearerAuth
|
|
113
|
+
config.access_token = 'YOUR_BEARER_TOKEN'
|
|
114
|
+
end
|
|
115
|
+
|
|
116
|
+
api_instance = Lockally::CalendarsApi.new
|
|
117
|
+
create_calendar_request = Lockally::CreateCalendarRequest.new({name: 'name_example'}) # CreateCalendarRequest |
|
|
118
|
+
|
|
119
|
+
begin
|
|
120
|
+
# Create a calendar
|
|
121
|
+
result = api_instance.create_calendar(create_calendar_request)
|
|
122
|
+
p result
|
|
123
|
+
rescue Lockally::ApiError => e
|
|
124
|
+
puts "Error when calling CalendarsApi->create_calendar: #{e}"
|
|
125
|
+
end
|
|
126
|
+
```
|
|
127
|
+
|
|
128
|
+
#### Using the create_calendar_with_http_info variant
|
|
129
|
+
|
|
130
|
+
This returns an Array which contains the response data, status code and headers.
|
|
131
|
+
|
|
132
|
+
> <Array(<Calendar>, Integer, Hash)> create_calendar_with_http_info(create_calendar_request)
|
|
133
|
+
|
|
134
|
+
```ruby
|
|
135
|
+
begin
|
|
136
|
+
# Create a calendar
|
|
137
|
+
data, status_code, headers = api_instance.create_calendar_with_http_info(create_calendar_request)
|
|
138
|
+
p status_code # => 2xx
|
|
139
|
+
p headers # => { ... }
|
|
140
|
+
p data # => <Calendar>
|
|
141
|
+
rescue Lockally::ApiError => e
|
|
142
|
+
puts "Error when calling CalendarsApi->create_calendar_with_http_info: #{e}"
|
|
143
|
+
end
|
|
144
|
+
```
|
|
145
|
+
|
|
146
|
+
### Parameters
|
|
147
|
+
|
|
148
|
+
| Name | Type | Description | Notes |
|
|
149
|
+
| ---- | ---- | ----------- | ----- |
|
|
150
|
+
| **create_calendar_request** | [**CreateCalendarRequest**](CreateCalendarRequest.md) | | |
|
|
151
|
+
|
|
152
|
+
### Return type
|
|
153
|
+
|
|
154
|
+
[**Calendar**](Calendar.md)
|
|
155
|
+
|
|
156
|
+
### Authorization
|
|
157
|
+
|
|
158
|
+
[bearerAuth](../README.md#bearerAuth)
|
|
159
|
+
|
|
160
|
+
### HTTP request headers
|
|
161
|
+
|
|
162
|
+
- **Content-Type**: application/json
|
|
163
|
+
- **Accept**: application/json, application/problem+json
|
|
164
|
+
|
|
165
|
+
|
|
166
|
+
## create_calendar_event
|
|
167
|
+
|
|
168
|
+
> <CalendarEvent> create_calendar_event(id, create_calendar_event_request)
|
|
169
|
+
|
|
170
|
+
Create an event in a calendar
|
|
171
|
+
|
|
172
|
+
### Examples
|
|
173
|
+
|
|
174
|
+
```ruby
|
|
175
|
+
require 'time'
|
|
176
|
+
require 'lockally'
|
|
177
|
+
# setup authorization
|
|
178
|
+
Lockally.configure do |config|
|
|
179
|
+
# Configure Bearer authorization (lk_live_<prefix>_<secret>): bearerAuth
|
|
180
|
+
config.access_token = 'YOUR_BEARER_TOKEN'
|
|
181
|
+
end
|
|
182
|
+
|
|
183
|
+
api_instance = Lockally::CalendarsApi.new
|
|
184
|
+
id = '38400000-8cf0-11bd-b23e-10b96e4ef00d' # String |
|
|
185
|
+
create_calendar_event_request = Lockally::CreateCalendarEventRequest.new({title: 'title_example', starts_at: Time.now, ends_at: Time.now}) # CreateCalendarEventRequest |
|
|
186
|
+
|
|
187
|
+
begin
|
|
188
|
+
# Create an event in a calendar
|
|
189
|
+
result = api_instance.create_calendar_event(id, create_calendar_event_request)
|
|
190
|
+
p result
|
|
191
|
+
rescue Lockally::ApiError => e
|
|
192
|
+
puts "Error when calling CalendarsApi->create_calendar_event: #{e}"
|
|
193
|
+
end
|
|
194
|
+
```
|
|
195
|
+
|
|
196
|
+
#### Using the create_calendar_event_with_http_info variant
|
|
197
|
+
|
|
198
|
+
This returns an Array which contains the response data, status code and headers.
|
|
199
|
+
|
|
200
|
+
> <Array(<CalendarEvent>, Integer, Hash)> create_calendar_event_with_http_info(id, create_calendar_event_request)
|
|
201
|
+
|
|
202
|
+
```ruby
|
|
203
|
+
begin
|
|
204
|
+
# Create an event in a calendar
|
|
205
|
+
data, status_code, headers = api_instance.create_calendar_event_with_http_info(id, create_calendar_event_request)
|
|
206
|
+
p status_code # => 2xx
|
|
207
|
+
p headers # => { ... }
|
|
208
|
+
p data # => <CalendarEvent>
|
|
209
|
+
rescue Lockally::ApiError => e
|
|
210
|
+
puts "Error when calling CalendarsApi->create_calendar_event_with_http_info: #{e}"
|
|
211
|
+
end
|
|
212
|
+
```
|
|
213
|
+
|
|
214
|
+
### Parameters
|
|
215
|
+
|
|
216
|
+
| Name | Type | Description | Notes |
|
|
217
|
+
| ---- | ---- | ----------- | ----- |
|
|
218
|
+
| **id** | **String** | | |
|
|
219
|
+
| **create_calendar_event_request** | [**CreateCalendarEventRequest**](CreateCalendarEventRequest.md) | | |
|
|
220
|
+
|
|
221
|
+
### Return type
|
|
222
|
+
|
|
223
|
+
[**CalendarEvent**](CalendarEvent.md)
|
|
224
|
+
|
|
225
|
+
### Authorization
|
|
226
|
+
|
|
227
|
+
[bearerAuth](../README.md#bearerAuth)
|
|
228
|
+
|
|
229
|
+
### HTTP request headers
|
|
230
|
+
|
|
231
|
+
- **Content-Type**: application/json
|
|
232
|
+
- **Accept**: application/json, application/problem+json
|
|
233
|
+
|
|
234
|
+
|
|
235
|
+
## create_calendar_integration
|
|
236
|
+
|
|
237
|
+
> <CalendarIntegration> create_calendar_integration(create_calendar_integration_request)
|
|
238
|
+
|
|
239
|
+
Create a calendar integration
|
|
240
|
+
|
|
241
|
+
### Examples
|
|
242
|
+
|
|
243
|
+
```ruby
|
|
244
|
+
require 'time'
|
|
245
|
+
require 'lockally'
|
|
246
|
+
# setup authorization
|
|
247
|
+
Lockally.configure do |config|
|
|
248
|
+
# Configure Bearer authorization (lk_live_<prefix>_<secret>): bearerAuth
|
|
249
|
+
config.access_token = 'YOUR_BEARER_TOKEN'
|
|
250
|
+
end
|
|
251
|
+
|
|
252
|
+
api_instance = Lockally::CalendarsApi.new
|
|
253
|
+
create_calendar_integration_request = Lockally::CreateCalendarIntegrationRequest.new({provider: 'exchange'}) # CreateCalendarIntegrationRequest |
|
|
254
|
+
|
|
255
|
+
begin
|
|
256
|
+
# Create a calendar integration
|
|
257
|
+
result = api_instance.create_calendar_integration(create_calendar_integration_request)
|
|
258
|
+
p result
|
|
259
|
+
rescue Lockally::ApiError => e
|
|
260
|
+
puts "Error when calling CalendarsApi->create_calendar_integration: #{e}"
|
|
261
|
+
end
|
|
262
|
+
```
|
|
263
|
+
|
|
264
|
+
#### Using the create_calendar_integration_with_http_info variant
|
|
265
|
+
|
|
266
|
+
This returns an Array which contains the response data, status code and headers.
|
|
267
|
+
|
|
268
|
+
> <Array(<CalendarIntegration>, Integer, Hash)> create_calendar_integration_with_http_info(create_calendar_integration_request)
|
|
269
|
+
|
|
270
|
+
```ruby
|
|
271
|
+
begin
|
|
272
|
+
# Create a calendar integration
|
|
273
|
+
data, status_code, headers = api_instance.create_calendar_integration_with_http_info(create_calendar_integration_request)
|
|
274
|
+
p status_code # => 2xx
|
|
275
|
+
p headers # => { ... }
|
|
276
|
+
p data # => <CalendarIntegration>
|
|
277
|
+
rescue Lockally::ApiError => e
|
|
278
|
+
puts "Error when calling CalendarsApi->create_calendar_integration_with_http_info: #{e}"
|
|
279
|
+
end
|
|
280
|
+
```
|
|
281
|
+
|
|
282
|
+
### Parameters
|
|
283
|
+
|
|
284
|
+
| Name | Type | Description | Notes |
|
|
285
|
+
| ---- | ---- | ----------- | ----- |
|
|
286
|
+
| **create_calendar_integration_request** | [**CreateCalendarIntegrationRequest**](CreateCalendarIntegrationRequest.md) | | |
|
|
287
|
+
|
|
288
|
+
### Return type
|
|
289
|
+
|
|
290
|
+
[**CalendarIntegration**](CalendarIntegration.md)
|
|
291
|
+
|
|
292
|
+
### Authorization
|
|
293
|
+
|
|
294
|
+
[bearerAuth](../README.md#bearerAuth)
|
|
295
|
+
|
|
296
|
+
### HTTP request headers
|
|
297
|
+
|
|
298
|
+
- **Content-Type**: application/json
|
|
299
|
+
- **Accept**: application/json, application/problem+json
|
|
300
|
+
|
|
301
|
+
|
|
302
|
+
## delete_calendar
|
|
303
|
+
|
|
304
|
+
> delete_calendar(id)
|
|
305
|
+
|
|
306
|
+
Delete a calendar
|
|
307
|
+
|
|
308
|
+
### Examples
|
|
309
|
+
|
|
310
|
+
```ruby
|
|
311
|
+
require 'time'
|
|
312
|
+
require 'lockally'
|
|
313
|
+
# setup authorization
|
|
314
|
+
Lockally.configure do |config|
|
|
315
|
+
# Configure Bearer authorization (lk_live_<prefix>_<secret>): bearerAuth
|
|
316
|
+
config.access_token = 'YOUR_BEARER_TOKEN'
|
|
317
|
+
end
|
|
318
|
+
|
|
319
|
+
api_instance = Lockally::CalendarsApi.new
|
|
320
|
+
id = '38400000-8cf0-11bd-b23e-10b96e4ef00d' # String |
|
|
321
|
+
|
|
322
|
+
begin
|
|
323
|
+
# Delete a calendar
|
|
324
|
+
api_instance.delete_calendar(id)
|
|
325
|
+
rescue Lockally::ApiError => e
|
|
326
|
+
puts "Error when calling CalendarsApi->delete_calendar: #{e}"
|
|
327
|
+
end
|
|
328
|
+
```
|
|
329
|
+
|
|
330
|
+
#### Using the delete_calendar_with_http_info variant
|
|
331
|
+
|
|
332
|
+
This returns an Array which contains the response data (`nil` in this case), status code and headers.
|
|
333
|
+
|
|
334
|
+
> <Array(nil, Integer, Hash)> delete_calendar_with_http_info(id)
|
|
335
|
+
|
|
336
|
+
```ruby
|
|
337
|
+
begin
|
|
338
|
+
# Delete a calendar
|
|
339
|
+
data, status_code, headers = api_instance.delete_calendar_with_http_info(id)
|
|
340
|
+
p status_code # => 2xx
|
|
341
|
+
p headers # => { ... }
|
|
342
|
+
p data # => nil
|
|
343
|
+
rescue Lockally::ApiError => e
|
|
344
|
+
puts "Error when calling CalendarsApi->delete_calendar_with_http_info: #{e}"
|
|
345
|
+
end
|
|
346
|
+
```
|
|
347
|
+
|
|
348
|
+
### Parameters
|
|
349
|
+
|
|
350
|
+
| Name | Type | Description | Notes |
|
|
351
|
+
| ---- | ---- | ----------- | ----- |
|
|
352
|
+
| **id** | **String** | | |
|
|
353
|
+
|
|
354
|
+
### Return type
|
|
355
|
+
|
|
356
|
+
nil (empty response body)
|
|
357
|
+
|
|
358
|
+
### Authorization
|
|
359
|
+
|
|
360
|
+
[bearerAuth](../README.md#bearerAuth)
|
|
361
|
+
|
|
362
|
+
### HTTP request headers
|
|
363
|
+
|
|
364
|
+
- **Content-Type**: Not defined
|
|
365
|
+
- **Accept**: application/problem+json
|
|
366
|
+
|
|
367
|
+
|
|
368
|
+
## delete_calendar_event
|
|
369
|
+
|
|
370
|
+
> delete_calendar_event(id, event_id)
|
|
371
|
+
|
|
372
|
+
Delete a calendar event
|
|
373
|
+
|
|
374
|
+
### Examples
|
|
375
|
+
|
|
376
|
+
```ruby
|
|
377
|
+
require 'time'
|
|
378
|
+
require 'lockally'
|
|
379
|
+
# setup authorization
|
|
380
|
+
Lockally.configure do |config|
|
|
381
|
+
# Configure Bearer authorization (lk_live_<prefix>_<secret>): bearerAuth
|
|
382
|
+
config.access_token = 'YOUR_BEARER_TOKEN'
|
|
383
|
+
end
|
|
384
|
+
|
|
385
|
+
api_instance = Lockally::CalendarsApi.new
|
|
386
|
+
id = '38400000-8cf0-11bd-b23e-10b96e4ef00d' # String |
|
|
387
|
+
event_id = '38400000-8cf0-11bd-b23e-10b96e4ef00d' # String |
|
|
388
|
+
|
|
389
|
+
begin
|
|
390
|
+
# Delete a calendar event
|
|
391
|
+
api_instance.delete_calendar_event(id, event_id)
|
|
392
|
+
rescue Lockally::ApiError => e
|
|
393
|
+
puts "Error when calling CalendarsApi->delete_calendar_event: #{e}"
|
|
394
|
+
end
|
|
395
|
+
```
|
|
396
|
+
|
|
397
|
+
#### Using the delete_calendar_event_with_http_info variant
|
|
398
|
+
|
|
399
|
+
This returns an Array which contains the response data (`nil` in this case), status code and headers.
|
|
400
|
+
|
|
401
|
+
> <Array(nil, Integer, Hash)> delete_calendar_event_with_http_info(id, event_id)
|
|
402
|
+
|
|
403
|
+
```ruby
|
|
404
|
+
begin
|
|
405
|
+
# Delete a calendar event
|
|
406
|
+
data, status_code, headers = api_instance.delete_calendar_event_with_http_info(id, event_id)
|
|
407
|
+
p status_code # => 2xx
|
|
408
|
+
p headers # => { ... }
|
|
409
|
+
p data # => nil
|
|
410
|
+
rescue Lockally::ApiError => e
|
|
411
|
+
puts "Error when calling CalendarsApi->delete_calendar_event_with_http_info: #{e}"
|
|
412
|
+
end
|
|
413
|
+
```
|
|
414
|
+
|
|
415
|
+
### Parameters
|
|
416
|
+
|
|
417
|
+
| Name | Type | Description | Notes |
|
|
418
|
+
| ---- | ---- | ----------- | ----- |
|
|
419
|
+
| **id** | **String** | | |
|
|
420
|
+
| **event_id** | **String** | | |
|
|
421
|
+
|
|
422
|
+
### Return type
|
|
423
|
+
|
|
424
|
+
nil (empty response body)
|
|
425
|
+
|
|
426
|
+
### Authorization
|
|
427
|
+
|
|
428
|
+
[bearerAuth](../README.md#bearerAuth)
|
|
429
|
+
|
|
430
|
+
### HTTP request headers
|
|
431
|
+
|
|
432
|
+
- **Content-Type**: Not defined
|
|
433
|
+
- **Accept**: application/problem+json
|
|
434
|
+
|
|
435
|
+
|
|
436
|
+
## delete_calendar_integration
|
|
437
|
+
|
|
438
|
+
> delete_calendar_integration(id)
|
|
439
|
+
|
|
440
|
+
Delete a calendar integration
|
|
441
|
+
|
|
442
|
+
### Examples
|
|
443
|
+
|
|
444
|
+
```ruby
|
|
445
|
+
require 'time'
|
|
446
|
+
require 'lockally'
|
|
447
|
+
# setup authorization
|
|
448
|
+
Lockally.configure do |config|
|
|
449
|
+
# Configure Bearer authorization (lk_live_<prefix>_<secret>): bearerAuth
|
|
450
|
+
config.access_token = 'YOUR_BEARER_TOKEN'
|
|
451
|
+
end
|
|
452
|
+
|
|
453
|
+
api_instance = Lockally::CalendarsApi.new
|
|
454
|
+
id = '38400000-8cf0-11bd-b23e-10b96e4ef00d' # String |
|
|
455
|
+
|
|
456
|
+
begin
|
|
457
|
+
# Delete a calendar integration
|
|
458
|
+
api_instance.delete_calendar_integration(id)
|
|
459
|
+
rescue Lockally::ApiError => e
|
|
460
|
+
puts "Error when calling CalendarsApi->delete_calendar_integration: #{e}"
|
|
461
|
+
end
|
|
462
|
+
```
|
|
463
|
+
|
|
464
|
+
#### Using the delete_calendar_integration_with_http_info variant
|
|
465
|
+
|
|
466
|
+
This returns an Array which contains the response data (`nil` in this case), status code and headers.
|
|
467
|
+
|
|
468
|
+
> <Array(nil, Integer, Hash)> delete_calendar_integration_with_http_info(id)
|
|
469
|
+
|
|
470
|
+
```ruby
|
|
471
|
+
begin
|
|
472
|
+
# Delete a calendar integration
|
|
473
|
+
data, status_code, headers = api_instance.delete_calendar_integration_with_http_info(id)
|
|
474
|
+
p status_code # => 2xx
|
|
475
|
+
p headers # => { ... }
|
|
476
|
+
p data # => nil
|
|
477
|
+
rescue Lockally::ApiError => e
|
|
478
|
+
puts "Error when calling CalendarsApi->delete_calendar_integration_with_http_info: #{e}"
|
|
479
|
+
end
|
|
480
|
+
```
|
|
481
|
+
|
|
482
|
+
### Parameters
|
|
483
|
+
|
|
484
|
+
| Name | Type | Description | Notes |
|
|
485
|
+
| ---- | ---- | ----------- | ----- |
|
|
486
|
+
| **id** | **String** | | |
|
|
487
|
+
|
|
488
|
+
### Return type
|
|
489
|
+
|
|
490
|
+
nil (empty response body)
|
|
491
|
+
|
|
492
|
+
### Authorization
|
|
493
|
+
|
|
494
|
+
[bearerAuth](../README.md#bearerAuth)
|
|
495
|
+
|
|
496
|
+
### HTTP request headers
|
|
497
|
+
|
|
498
|
+
- **Content-Type**: Not defined
|
|
499
|
+
- **Accept**: application/problem+json
|
|
500
|
+
|
|
501
|
+
|
|
502
|
+
## get_calendar
|
|
503
|
+
|
|
504
|
+
> <Calendar> get_calendar(id)
|
|
505
|
+
|
|
506
|
+
Get a calendar
|
|
507
|
+
|
|
508
|
+
### Examples
|
|
509
|
+
|
|
510
|
+
```ruby
|
|
511
|
+
require 'time'
|
|
512
|
+
require 'lockally'
|
|
513
|
+
# setup authorization
|
|
514
|
+
Lockally.configure do |config|
|
|
515
|
+
# Configure Bearer authorization (lk_live_<prefix>_<secret>): bearerAuth
|
|
516
|
+
config.access_token = 'YOUR_BEARER_TOKEN'
|
|
517
|
+
end
|
|
518
|
+
|
|
519
|
+
api_instance = Lockally::CalendarsApi.new
|
|
520
|
+
id = '38400000-8cf0-11bd-b23e-10b96e4ef00d' # String |
|
|
521
|
+
|
|
522
|
+
begin
|
|
523
|
+
# Get a calendar
|
|
524
|
+
result = api_instance.get_calendar(id)
|
|
525
|
+
p result
|
|
526
|
+
rescue Lockally::ApiError => e
|
|
527
|
+
puts "Error when calling CalendarsApi->get_calendar: #{e}"
|
|
528
|
+
end
|
|
529
|
+
```
|
|
530
|
+
|
|
531
|
+
#### Using the get_calendar_with_http_info variant
|
|
532
|
+
|
|
533
|
+
This returns an Array which contains the response data, status code and headers.
|
|
534
|
+
|
|
535
|
+
> <Array(<Calendar>, Integer, Hash)> get_calendar_with_http_info(id)
|
|
536
|
+
|
|
537
|
+
```ruby
|
|
538
|
+
begin
|
|
539
|
+
# Get a calendar
|
|
540
|
+
data, status_code, headers = api_instance.get_calendar_with_http_info(id)
|
|
541
|
+
p status_code # => 2xx
|
|
542
|
+
p headers # => { ... }
|
|
543
|
+
p data # => <Calendar>
|
|
544
|
+
rescue Lockally::ApiError => e
|
|
545
|
+
puts "Error when calling CalendarsApi->get_calendar_with_http_info: #{e}"
|
|
546
|
+
end
|
|
547
|
+
```
|
|
548
|
+
|
|
549
|
+
### Parameters
|
|
550
|
+
|
|
551
|
+
| Name | Type | Description | Notes |
|
|
552
|
+
| ---- | ---- | ----------- | ----- |
|
|
553
|
+
| **id** | **String** | | |
|
|
554
|
+
|
|
555
|
+
### Return type
|
|
556
|
+
|
|
557
|
+
[**Calendar**](Calendar.md)
|
|
558
|
+
|
|
559
|
+
### Authorization
|
|
560
|
+
|
|
561
|
+
[bearerAuth](../README.md#bearerAuth)
|
|
562
|
+
|
|
563
|
+
### HTTP request headers
|
|
564
|
+
|
|
565
|
+
- **Content-Type**: Not defined
|
|
566
|
+
- **Accept**: application/json, application/problem+json
|
|
567
|
+
|
|
568
|
+
|
|
569
|
+
## get_calendar_policies
|
|
570
|
+
|
|
571
|
+
> <CalendarPolicies> get_calendar_policies
|
|
572
|
+
|
|
573
|
+
Get calendar policies
|
|
574
|
+
|
|
575
|
+
### Examples
|
|
576
|
+
|
|
577
|
+
```ruby
|
|
578
|
+
require 'time'
|
|
579
|
+
require 'lockally'
|
|
580
|
+
# setup authorization
|
|
581
|
+
Lockally.configure do |config|
|
|
582
|
+
# Configure Bearer authorization (lk_live_<prefix>_<secret>): bearerAuth
|
|
583
|
+
config.access_token = 'YOUR_BEARER_TOKEN'
|
|
584
|
+
end
|
|
585
|
+
|
|
586
|
+
api_instance = Lockally::CalendarsApi.new
|
|
587
|
+
|
|
588
|
+
begin
|
|
589
|
+
# Get calendar policies
|
|
590
|
+
result = api_instance.get_calendar_policies
|
|
591
|
+
p result
|
|
592
|
+
rescue Lockally::ApiError => e
|
|
593
|
+
puts "Error when calling CalendarsApi->get_calendar_policies: #{e}"
|
|
594
|
+
end
|
|
595
|
+
```
|
|
596
|
+
|
|
597
|
+
#### Using the get_calendar_policies_with_http_info variant
|
|
598
|
+
|
|
599
|
+
This returns an Array which contains the response data, status code and headers.
|
|
600
|
+
|
|
601
|
+
> <Array(<CalendarPolicies>, Integer, Hash)> get_calendar_policies_with_http_info
|
|
602
|
+
|
|
603
|
+
```ruby
|
|
604
|
+
begin
|
|
605
|
+
# Get calendar policies
|
|
606
|
+
data, status_code, headers = api_instance.get_calendar_policies_with_http_info
|
|
607
|
+
p status_code # => 2xx
|
|
608
|
+
p headers # => { ... }
|
|
609
|
+
p data # => <CalendarPolicies>
|
|
610
|
+
rescue Lockally::ApiError => e
|
|
611
|
+
puts "Error when calling CalendarsApi->get_calendar_policies_with_http_info: #{e}"
|
|
612
|
+
end
|
|
613
|
+
```
|
|
614
|
+
|
|
615
|
+
### Parameters
|
|
616
|
+
|
|
617
|
+
This endpoint does not need any parameter.
|
|
618
|
+
|
|
619
|
+
### Return type
|
|
620
|
+
|
|
621
|
+
[**CalendarPolicies**](CalendarPolicies.md)
|
|
622
|
+
|
|
623
|
+
### Authorization
|
|
624
|
+
|
|
625
|
+
[bearerAuth](../README.md#bearerAuth)
|
|
626
|
+
|
|
627
|
+
### HTTP request headers
|
|
628
|
+
|
|
629
|
+
- **Content-Type**: Not defined
|
|
630
|
+
- **Accept**: application/json, application/problem+json
|
|
631
|
+
|
|
632
|
+
|
|
633
|
+
## get_calendar_security
|
|
634
|
+
|
|
635
|
+
> <GetCalendarSecurity200Response> get_calendar_security
|
|
636
|
+
|
|
637
|
+
Get calendar security overview
|
|
638
|
+
|
|
639
|
+
### Examples
|
|
640
|
+
|
|
641
|
+
```ruby
|
|
642
|
+
require 'time'
|
|
643
|
+
require 'lockally'
|
|
644
|
+
# setup authorization
|
|
645
|
+
Lockally.configure do |config|
|
|
646
|
+
# Configure Bearer authorization (lk_live_<prefix>_<secret>): bearerAuth
|
|
647
|
+
config.access_token = 'YOUR_BEARER_TOKEN'
|
|
648
|
+
end
|
|
649
|
+
|
|
650
|
+
api_instance = Lockally::CalendarsApi.new
|
|
651
|
+
|
|
652
|
+
begin
|
|
653
|
+
# Get calendar security overview
|
|
654
|
+
result = api_instance.get_calendar_security
|
|
655
|
+
p result
|
|
656
|
+
rescue Lockally::ApiError => e
|
|
657
|
+
puts "Error when calling CalendarsApi->get_calendar_security: #{e}"
|
|
658
|
+
end
|
|
659
|
+
```
|
|
660
|
+
|
|
661
|
+
#### Using the get_calendar_security_with_http_info variant
|
|
662
|
+
|
|
663
|
+
This returns an Array which contains the response data, status code and headers.
|
|
664
|
+
|
|
665
|
+
> <Array(<GetCalendarSecurity200Response>, Integer, Hash)> get_calendar_security_with_http_info
|
|
666
|
+
|
|
667
|
+
```ruby
|
|
668
|
+
begin
|
|
669
|
+
# Get calendar security overview
|
|
670
|
+
data, status_code, headers = api_instance.get_calendar_security_with_http_info
|
|
671
|
+
p status_code # => 2xx
|
|
672
|
+
p headers # => { ... }
|
|
673
|
+
p data # => <GetCalendarSecurity200Response>
|
|
674
|
+
rescue Lockally::ApiError => e
|
|
675
|
+
puts "Error when calling CalendarsApi->get_calendar_security_with_http_info: #{e}"
|
|
676
|
+
end
|
|
677
|
+
```
|
|
678
|
+
|
|
679
|
+
### Parameters
|
|
680
|
+
|
|
681
|
+
This endpoint does not need any parameter.
|
|
682
|
+
|
|
683
|
+
### Return type
|
|
684
|
+
|
|
685
|
+
[**GetCalendarSecurity200Response**](GetCalendarSecurity200Response.md)
|
|
686
|
+
|
|
687
|
+
### Authorization
|
|
688
|
+
|
|
689
|
+
[bearerAuth](../README.md#bearerAuth)
|
|
690
|
+
|
|
691
|
+
### HTTP request headers
|
|
692
|
+
|
|
693
|
+
- **Content-Type**: Not defined
|
|
694
|
+
- **Accept**: application/json, application/problem+json
|
|
695
|
+
|
|
696
|
+
|
|
697
|
+
## list_calendar_events
|
|
698
|
+
|
|
699
|
+
> <ListCalendarEvents200Response> list_calendar_events(id, opts)
|
|
700
|
+
|
|
701
|
+
List events in a calendar
|
|
702
|
+
|
|
703
|
+
### Examples
|
|
704
|
+
|
|
705
|
+
```ruby
|
|
706
|
+
require 'time'
|
|
707
|
+
require 'lockally'
|
|
708
|
+
# setup authorization
|
|
709
|
+
Lockally.configure do |config|
|
|
710
|
+
# Configure Bearer authorization (lk_live_<prefix>_<secret>): bearerAuth
|
|
711
|
+
config.access_token = 'YOUR_BEARER_TOKEN'
|
|
712
|
+
end
|
|
713
|
+
|
|
714
|
+
api_instance = Lockally::CalendarsApi.new
|
|
715
|
+
id = '38400000-8cf0-11bd-b23e-10b96e4ef00d' # String |
|
|
716
|
+
opts = {
|
|
717
|
+
from: Time.parse('2013-10-20T19:20:30+01:00'), # Time |
|
|
718
|
+
to: Time.parse('2013-10-20T19:20:30+01:00') # Time |
|
|
719
|
+
}
|
|
720
|
+
|
|
721
|
+
begin
|
|
722
|
+
# List events in a calendar
|
|
723
|
+
result = api_instance.list_calendar_events(id, opts)
|
|
724
|
+
p result
|
|
725
|
+
rescue Lockally::ApiError => e
|
|
726
|
+
puts "Error when calling CalendarsApi->list_calendar_events: #{e}"
|
|
727
|
+
end
|
|
728
|
+
```
|
|
729
|
+
|
|
730
|
+
#### Using the list_calendar_events_with_http_info variant
|
|
731
|
+
|
|
732
|
+
This returns an Array which contains the response data, status code and headers.
|
|
733
|
+
|
|
734
|
+
> <Array(<ListCalendarEvents200Response>, Integer, Hash)> list_calendar_events_with_http_info(id, opts)
|
|
735
|
+
|
|
736
|
+
```ruby
|
|
737
|
+
begin
|
|
738
|
+
# List events in a calendar
|
|
739
|
+
data, status_code, headers = api_instance.list_calendar_events_with_http_info(id, opts)
|
|
740
|
+
p status_code # => 2xx
|
|
741
|
+
p headers # => { ... }
|
|
742
|
+
p data # => <ListCalendarEvents200Response>
|
|
743
|
+
rescue Lockally::ApiError => e
|
|
744
|
+
puts "Error when calling CalendarsApi->list_calendar_events_with_http_info: #{e}"
|
|
745
|
+
end
|
|
746
|
+
```
|
|
747
|
+
|
|
748
|
+
### Parameters
|
|
749
|
+
|
|
750
|
+
| Name | Type | Description | Notes |
|
|
751
|
+
| ---- | ---- | ----------- | ----- |
|
|
752
|
+
| **id** | **String** | | |
|
|
753
|
+
| **from** | **Time** | | [optional] |
|
|
754
|
+
| **to** | **Time** | | [optional] |
|
|
755
|
+
|
|
756
|
+
### Return type
|
|
757
|
+
|
|
758
|
+
[**ListCalendarEvents200Response**](ListCalendarEvents200Response.md)
|
|
759
|
+
|
|
760
|
+
### Authorization
|
|
761
|
+
|
|
762
|
+
[bearerAuth](../README.md#bearerAuth)
|
|
763
|
+
|
|
764
|
+
### HTTP request headers
|
|
765
|
+
|
|
766
|
+
- **Content-Type**: Not defined
|
|
767
|
+
- **Accept**: application/json, application/problem+json
|
|
768
|
+
|
|
769
|
+
|
|
770
|
+
## list_calendar_integrations
|
|
771
|
+
|
|
772
|
+
> <ListCalendarIntegrations200Response> list_calendar_integrations
|
|
773
|
+
|
|
774
|
+
List calendar integrations
|
|
775
|
+
|
|
776
|
+
### Examples
|
|
777
|
+
|
|
778
|
+
```ruby
|
|
779
|
+
require 'time'
|
|
780
|
+
require 'lockally'
|
|
781
|
+
# setup authorization
|
|
782
|
+
Lockally.configure do |config|
|
|
783
|
+
# Configure Bearer authorization (lk_live_<prefix>_<secret>): bearerAuth
|
|
784
|
+
config.access_token = 'YOUR_BEARER_TOKEN'
|
|
785
|
+
end
|
|
786
|
+
|
|
787
|
+
api_instance = Lockally::CalendarsApi.new
|
|
788
|
+
|
|
789
|
+
begin
|
|
790
|
+
# List calendar integrations
|
|
791
|
+
result = api_instance.list_calendar_integrations
|
|
792
|
+
p result
|
|
793
|
+
rescue Lockally::ApiError => e
|
|
794
|
+
puts "Error when calling CalendarsApi->list_calendar_integrations: #{e}"
|
|
795
|
+
end
|
|
796
|
+
```
|
|
797
|
+
|
|
798
|
+
#### Using the list_calendar_integrations_with_http_info variant
|
|
799
|
+
|
|
800
|
+
This returns an Array which contains the response data, status code and headers.
|
|
801
|
+
|
|
802
|
+
> <Array(<ListCalendarIntegrations200Response>, Integer, Hash)> list_calendar_integrations_with_http_info
|
|
803
|
+
|
|
804
|
+
```ruby
|
|
805
|
+
begin
|
|
806
|
+
# List calendar integrations
|
|
807
|
+
data, status_code, headers = api_instance.list_calendar_integrations_with_http_info
|
|
808
|
+
p status_code # => 2xx
|
|
809
|
+
p headers # => { ... }
|
|
810
|
+
p data # => <ListCalendarIntegrations200Response>
|
|
811
|
+
rescue Lockally::ApiError => e
|
|
812
|
+
puts "Error when calling CalendarsApi->list_calendar_integrations_with_http_info: #{e}"
|
|
813
|
+
end
|
|
814
|
+
```
|
|
815
|
+
|
|
816
|
+
### Parameters
|
|
817
|
+
|
|
818
|
+
This endpoint does not need any parameter.
|
|
819
|
+
|
|
820
|
+
### Return type
|
|
821
|
+
|
|
822
|
+
[**ListCalendarIntegrations200Response**](ListCalendarIntegrations200Response.md)
|
|
823
|
+
|
|
824
|
+
### Authorization
|
|
825
|
+
|
|
826
|
+
[bearerAuth](../README.md#bearerAuth)
|
|
827
|
+
|
|
828
|
+
### HTTP request headers
|
|
829
|
+
|
|
830
|
+
- **Content-Type**: Not defined
|
|
831
|
+
- **Accept**: application/json, application/problem+json
|
|
832
|
+
|
|
833
|
+
|
|
834
|
+
## list_calendar_members
|
|
835
|
+
|
|
836
|
+
> <ListCalendarMembers200Response> list_calendar_members(id)
|
|
837
|
+
|
|
838
|
+
List calendar members
|
|
839
|
+
|
|
840
|
+
### Examples
|
|
841
|
+
|
|
842
|
+
```ruby
|
|
843
|
+
require 'time'
|
|
844
|
+
require 'lockally'
|
|
845
|
+
# setup authorization
|
|
846
|
+
Lockally.configure do |config|
|
|
847
|
+
# Configure Bearer authorization (lk_live_<prefix>_<secret>): bearerAuth
|
|
848
|
+
config.access_token = 'YOUR_BEARER_TOKEN'
|
|
849
|
+
end
|
|
850
|
+
|
|
851
|
+
api_instance = Lockally::CalendarsApi.new
|
|
852
|
+
id = '38400000-8cf0-11bd-b23e-10b96e4ef00d' # String |
|
|
853
|
+
|
|
854
|
+
begin
|
|
855
|
+
# List calendar members
|
|
856
|
+
result = api_instance.list_calendar_members(id)
|
|
857
|
+
p result
|
|
858
|
+
rescue Lockally::ApiError => e
|
|
859
|
+
puts "Error when calling CalendarsApi->list_calendar_members: #{e}"
|
|
860
|
+
end
|
|
861
|
+
```
|
|
862
|
+
|
|
863
|
+
#### Using the list_calendar_members_with_http_info variant
|
|
864
|
+
|
|
865
|
+
This returns an Array which contains the response data, status code and headers.
|
|
866
|
+
|
|
867
|
+
> <Array(<ListCalendarMembers200Response>, Integer, Hash)> list_calendar_members_with_http_info(id)
|
|
868
|
+
|
|
869
|
+
```ruby
|
|
870
|
+
begin
|
|
871
|
+
# List calendar members
|
|
872
|
+
data, status_code, headers = api_instance.list_calendar_members_with_http_info(id)
|
|
873
|
+
p status_code # => 2xx
|
|
874
|
+
p headers # => { ... }
|
|
875
|
+
p data # => <ListCalendarMembers200Response>
|
|
876
|
+
rescue Lockally::ApiError => e
|
|
877
|
+
puts "Error when calling CalendarsApi->list_calendar_members_with_http_info: #{e}"
|
|
878
|
+
end
|
|
879
|
+
```
|
|
880
|
+
|
|
881
|
+
### Parameters
|
|
882
|
+
|
|
883
|
+
| Name | Type | Description | Notes |
|
|
884
|
+
| ---- | ---- | ----------- | ----- |
|
|
885
|
+
| **id** | **String** | | |
|
|
886
|
+
|
|
887
|
+
### Return type
|
|
888
|
+
|
|
889
|
+
[**ListCalendarMembers200Response**](ListCalendarMembers200Response.md)
|
|
890
|
+
|
|
891
|
+
### Authorization
|
|
892
|
+
|
|
893
|
+
[bearerAuth](../README.md#bearerAuth)
|
|
894
|
+
|
|
895
|
+
### HTTP request headers
|
|
896
|
+
|
|
897
|
+
- **Content-Type**: Not defined
|
|
898
|
+
- **Accept**: application/json, application/problem+json
|
|
899
|
+
|
|
900
|
+
|
|
901
|
+
## list_calendars
|
|
902
|
+
|
|
903
|
+
> <ListCalendars200Response> list_calendars
|
|
904
|
+
|
|
905
|
+
List calendars
|
|
906
|
+
|
|
907
|
+
### Examples
|
|
908
|
+
|
|
909
|
+
```ruby
|
|
910
|
+
require 'time'
|
|
911
|
+
require 'lockally'
|
|
912
|
+
# setup authorization
|
|
913
|
+
Lockally.configure do |config|
|
|
914
|
+
# Configure Bearer authorization (lk_live_<prefix>_<secret>): bearerAuth
|
|
915
|
+
config.access_token = 'YOUR_BEARER_TOKEN'
|
|
916
|
+
end
|
|
917
|
+
|
|
918
|
+
api_instance = Lockally::CalendarsApi.new
|
|
919
|
+
|
|
920
|
+
begin
|
|
921
|
+
# List calendars
|
|
922
|
+
result = api_instance.list_calendars
|
|
923
|
+
p result
|
|
924
|
+
rescue Lockally::ApiError => e
|
|
925
|
+
puts "Error when calling CalendarsApi->list_calendars: #{e}"
|
|
926
|
+
end
|
|
927
|
+
```
|
|
928
|
+
|
|
929
|
+
#### Using the list_calendars_with_http_info variant
|
|
930
|
+
|
|
931
|
+
This returns an Array which contains the response data, status code and headers.
|
|
932
|
+
|
|
933
|
+
> <Array(<ListCalendars200Response>, Integer, Hash)> list_calendars_with_http_info
|
|
934
|
+
|
|
935
|
+
```ruby
|
|
936
|
+
begin
|
|
937
|
+
# List calendars
|
|
938
|
+
data, status_code, headers = api_instance.list_calendars_with_http_info
|
|
939
|
+
p status_code # => 2xx
|
|
940
|
+
p headers # => { ... }
|
|
941
|
+
p data # => <ListCalendars200Response>
|
|
942
|
+
rescue Lockally::ApiError => e
|
|
943
|
+
puts "Error when calling CalendarsApi->list_calendars_with_http_info: #{e}"
|
|
944
|
+
end
|
|
945
|
+
```
|
|
946
|
+
|
|
947
|
+
### Parameters
|
|
948
|
+
|
|
949
|
+
This endpoint does not need any parameter.
|
|
950
|
+
|
|
951
|
+
### Return type
|
|
952
|
+
|
|
953
|
+
[**ListCalendars200Response**](ListCalendars200Response.md)
|
|
954
|
+
|
|
955
|
+
### Authorization
|
|
956
|
+
|
|
957
|
+
[bearerAuth](../README.md#bearerAuth)
|
|
958
|
+
|
|
959
|
+
### HTTP request headers
|
|
960
|
+
|
|
961
|
+
- **Content-Type**: Not defined
|
|
962
|
+
- **Accept**: application/json, application/problem+json
|
|
963
|
+
|
|
964
|
+
|
|
965
|
+
## remove_calendar_member
|
|
966
|
+
|
|
967
|
+
> remove_calendar_member(id, member_id)
|
|
968
|
+
|
|
969
|
+
Remove a member from a calendar
|
|
970
|
+
|
|
971
|
+
### Examples
|
|
972
|
+
|
|
973
|
+
```ruby
|
|
974
|
+
require 'time'
|
|
975
|
+
require 'lockally'
|
|
976
|
+
# setup authorization
|
|
977
|
+
Lockally.configure do |config|
|
|
978
|
+
# Configure Bearer authorization (lk_live_<prefix>_<secret>): bearerAuth
|
|
979
|
+
config.access_token = 'YOUR_BEARER_TOKEN'
|
|
980
|
+
end
|
|
981
|
+
|
|
982
|
+
api_instance = Lockally::CalendarsApi.new
|
|
983
|
+
id = '38400000-8cf0-11bd-b23e-10b96e4ef00d' # String |
|
|
984
|
+
member_id = '38400000-8cf0-11bd-b23e-10b96e4ef00d' # String |
|
|
985
|
+
|
|
986
|
+
begin
|
|
987
|
+
# Remove a member from a calendar
|
|
988
|
+
api_instance.remove_calendar_member(id, member_id)
|
|
989
|
+
rescue Lockally::ApiError => e
|
|
990
|
+
puts "Error when calling CalendarsApi->remove_calendar_member: #{e}"
|
|
991
|
+
end
|
|
992
|
+
```
|
|
993
|
+
|
|
994
|
+
#### Using the remove_calendar_member_with_http_info variant
|
|
995
|
+
|
|
996
|
+
This returns an Array which contains the response data (`nil` in this case), status code and headers.
|
|
997
|
+
|
|
998
|
+
> <Array(nil, Integer, Hash)> remove_calendar_member_with_http_info(id, member_id)
|
|
999
|
+
|
|
1000
|
+
```ruby
|
|
1001
|
+
begin
|
|
1002
|
+
# Remove a member from a calendar
|
|
1003
|
+
data, status_code, headers = api_instance.remove_calendar_member_with_http_info(id, member_id)
|
|
1004
|
+
p status_code # => 2xx
|
|
1005
|
+
p headers # => { ... }
|
|
1006
|
+
p data # => nil
|
|
1007
|
+
rescue Lockally::ApiError => e
|
|
1008
|
+
puts "Error when calling CalendarsApi->remove_calendar_member_with_http_info: #{e}"
|
|
1009
|
+
end
|
|
1010
|
+
```
|
|
1011
|
+
|
|
1012
|
+
### Parameters
|
|
1013
|
+
|
|
1014
|
+
| Name | Type | Description | Notes |
|
|
1015
|
+
| ---- | ---- | ----------- | ----- |
|
|
1016
|
+
| **id** | **String** | | |
|
|
1017
|
+
| **member_id** | **String** | | |
|
|
1018
|
+
|
|
1019
|
+
### Return type
|
|
1020
|
+
|
|
1021
|
+
nil (empty response body)
|
|
1022
|
+
|
|
1023
|
+
### Authorization
|
|
1024
|
+
|
|
1025
|
+
[bearerAuth](../README.md#bearerAuth)
|
|
1026
|
+
|
|
1027
|
+
### HTTP request headers
|
|
1028
|
+
|
|
1029
|
+
- **Content-Type**: Not defined
|
|
1030
|
+
- **Accept**: application/problem+json
|
|
1031
|
+
|
|
1032
|
+
|
|
1033
|
+
## sync_calendar_integration
|
|
1034
|
+
|
|
1035
|
+
> <CalendarIntegration> sync_calendar_integration(id)
|
|
1036
|
+
|
|
1037
|
+
Trigger sync for a calendar integration
|
|
1038
|
+
|
|
1039
|
+
### Examples
|
|
1040
|
+
|
|
1041
|
+
```ruby
|
|
1042
|
+
require 'time'
|
|
1043
|
+
require 'lockally'
|
|
1044
|
+
# setup authorization
|
|
1045
|
+
Lockally.configure do |config|
|
|
1046
|
+
# Configure Bearer authorization (lk_live_<prefix>_<secret>): bearerAuth
|
|
1047
|
+
config.access_token = 'YOUR_BEARER_TOKEN'
|
|
1048
|
+
end
|
|
1049
|
+
|
|
1050
|
+
api_instance = Lockally::CalendarsApi.new
|
|
1051
|
+
id = '38400000-8cf0-11bd-b23e-10b96e4ef00d' # String |
|
|
1052
|
+
|
|
1053
|
+
begin
|
|
1054
|
+
# Trigger sync for a calendar integration
|
|
1055
|
+
result = api_instance.sync_calendar_integration(id)
|
|
1056
|
+
p result
|
|
1057
|
+
rescue Lockally::ApiError => e
|
|
1058
|
+
puts "Error when calling CalendarsApi->sync_calendar_integration: #{e}"
|
|
1059
|
+
end
|
|
1060
|
+
```
|
|
1061
|
+
|
|
1062
|
+
#### Using the sync_calendar_integration_with_http_info variant
|
|
1063
|
+
|
|
1064
|
+
This returns an Array which contains the response data, status code and headers.
|
|
1065
|
+
|
|
1066
|
+
> <Array(<CalendarIntegration>, Integer, Hash)> sync_calendar_integration_with_http_info(id)
|
|
1067
|
+
|
|
1068
|
+
```ruby
|
|
1069
|
+
begin
|
|
1070
|
+
# Trigger sync for a calendar integration
|
|
1071
|
+
data, status_code, headers = api_instance.sync_calendar_integration_with_http_info(id)
|
|
1072
|
+
p status_code # => 2xx
|
|
1073
|
+
p headers # => { ... }
|
|
1074
|
+
p data # => <CalendarIntegration>
|
|
1075
|
+
rescue Lockally::ApiError => e
|
|
1076
|
+
puts "Error when calling CalendarsApi->sync_calendar_integration_with_http_info: #{e}"
|
|
1077
|
+
end
|
|
1078
|
+
```
|
|
1079
|
+
|
|
1080
|
+
### Parameters
|
|
1081
|
+
|
|
1082
|
+
| Name | Type | Description | Notes |
|
|
1083
|
+
| ---- | ---- | ----------- | ----- |
|
|
1084
|
+
| **id** | **String** | | |
|
|
1085
|
+
|
|
1086
|
+
### Return type
|
|
1087
|
+
|
|
1088
|
+
[**CalendarIntegration**](CalendarIntegration.md)
|
|
1089
|
+
|
|
1090
|
+
### Authorization
|
|
1091
|
+
|
|
1092
|
+
[bearerAuth](../README.md#bearerAuth)
|
|
1093
|
+
|
|
1094
|
+
### HTTP request headers
|
|
1095
|
+
|
|
1096
|
+
- **Content-Type**: Not defined
|
|
1097
|
+
- **Accept**: application/json, application/problem+json
|
|
1098
|
+
|
|
1099
|
+
|
|
1100
|
+
## update_calendar
|
|
1101
|
+
|
|
1102
|
+
> <Calendar> update_calendar(id, update_calendar_request)
|
|
1103
|
+
|
|
1104
|
+
Update a calendar
|
|
1105
|
+
|
|
1106
|
+
### Examples
|
|
1107
|
+
|
|
1108
|
+
```ruby
|
|
1109
|
+
require 'time'
|
|
1110
|
+
require 'lockally'
|
|
1111
|
+
# setup authorization
|
|
1112
|
+
Lockally.configure do |config|
|
|
1113
|
+
# Configure Bearer authorization (lk_live_<prefix>_<secret>): bearerAuth
|
|
1114
|
+
config.access_token = 'YOUR_BEARER_TOKEN'
|
|
1115
|
+
end
|
|
1116
|
+
|
|
1117
|
+
api_instance = Lockally::CalendarsApi.new
|
|
1118
|
+
id = '38400000-8cf0-11bd-b23e-10b96e4ef00d' # String |
|
|
1119
|
+
update_calendar_request = Lockally::UpdateCalendarRequest.new # UpdateCalendarRequest |
|
|
1120
|
+
|
|
1121
|
+
begin
|
|
1122
|
+
# Update a calendar
|
|
1123
|
+
result = api_instance.update_calendar(id, update_calendar_request)
|
|
1124
|
+
p result
|
|
1125
|
+
rescue Lockally::ApiError => e
|
|
1126
|
+
puts "Error when calling CalendarsApi->update_calendar: #{e}"
|
|
1127
|
+
end
|
|
1128
|
+
```
|
|
1129
|
+
|
|
1130
|
+
#### Using the update_calendar_with_http_info variant
|
|
1131
|
+
|
|
1132
|
+
This returns an Array which contains the response data, status code and headers.
|
|
1133
|
+
|
|
1134
|
+
> <Array(<Calendar>, Integer, Hash)> update_calendar_with_http_info(id, update_calendar_request)
|
|
1135
|
+
|
|
1136
|
+
```ruby
|
|
1137
|
+
begin
|
|
1138
|
+
# Update a calendar
|
|
1139
|
+
data, status_code, headers = api_instance.update_calendar_with_http_info(id, update_calendar_request)
|
|
1140
|
+
p status_code # => 2xx
|
|
1141
|
+
p headers # => { ... }
|
|
1142
|
+
p data # => <Calendar>
|
|
1143
|
+
rescue Lockally::ApiError => e
|
|
1144
|
+
puts "Error when calling CalendarsApi->update_calendar_with_http_info: #{e}"
|
|
1145
|
+
end
|
|
1146
|
+
```
|
|
1147
|
+
|
|
1148
|
+
### Parameters
|
|
1149
|
+
|
|
1150
|
+
| Name | Type | Description | Notes |
|
|
1151
|
+
| ---- | ---- | ----------- | ----- |
|
|
1152
|
+
| **id** | **String** | | |
|
|
1153
|
+
| **update_calendar_request** | [**UpdateCalendarRequest**](UpdateCalendarRequest.md) | | |
|
|
1154
|
+
|
|
1155
|
+
### Return type
|
|
1156
|
+
|
|
1157
|
+
[**Calendar**](Calendar.md)
|
|
1158
|
+
|
|
1159
|
+
### Authorization
|
|
1160
|
+
|
|
1161
|
+
[bearerAuth](../README.md#bearerAuth)
|
|
1162
|
+
|
|
1163
|
+
### HTTP request headers
|
|
1164
|
+
|
|
1165
|
+
- **Content-Type**: application/json
|
|
1166
|
+
- **Accept**: application/json, application/problem+json
|
|
1167
|
+
|
|
1168
|
+
|
|
1169
|
+
## update_calendar_event
|
|
1170
|
+
|
|
1171
|
+
> <CalendarEvent> update_calendar_event(id, event_id, update_calendar_event_request)
|
|
1172
|
+
|
|
1173
|
+
Update a calendar event
|
|
1174
|
+
|
|
1175
|
+
### Examples
|
|
1176
|
+
|
|
1177
|
+
```ruby
|
|
1178
|
+
require 'time'
|
|
1179
|
+
require 'lockally'
|
|
1180
|
+
# setup authorization
|
|
1181
|
+
Lockally.configure do |config|
|
|
1182
|
+
# Configure Bearer authorization (lk_live_<prefix>_<secret>): bearerAuth
|
|
1183
|
+
config.access_token = 'YOUR_BEARER_TOKEN'
|
|
1184
|
+
end
|
|
1185
|
+
|
|
1186
|
+
api_instance = Lockally::CalendarsApi.new
|
|
1187
|
+
id = '38400000-8cf0-11bd-b23e-10b96e4ef00d' # String |
|
|
1188
|
+
event_id = '38400000-8cf0-11bd-b23e-10b96e4ef00d' # String |
|
|
1189
|
+
update_calendar_event_request = Lockally::UpdateCalendarEventRequest.new # UpdateCalendarEventRequest |
|
|
1190
|
+
|
|
1191
|
+
begin
|
|
1192
|
+
# Update a calendar event
|
|
1193
|
+
result = api_instance.update_calendar_event(id, event_id, update_calendar_event_request)
|
|
1194
|
+
p result
|
|
1195
|
+
rescue Lockally::ApiError => e
|
|
1196
|
+
puts "Error when calling CalendarsApi->update_calendar_event: #{e}"
|
|
1197
|
+
end
|
|
1198
|
+
```
|
|
1199
|
+
|
|
1200
|
+
#### Using the update_calendar_event_with_http_info variant
|
|
1201
|
+
|
|
1202
|
+
This returns an Array which contains the response data, status code and headers.
|
|
1203
|
+
|
|
1204
|
+
> <Array(<CalendarEvent>, Integer, Hash)> update_calendar_event_with_http_info(id, event_id, update_calendar_event_request)
|
|
1205
|
+
|
|
1206
|
+
```ruby
|
|
1207
|
+
begin
|
|
1208
|
+
# Update a calendar event
|
|
1209
|
+
data, status_code, headers = api_instance.update_calendar_event_with_http_info(id, event_id, update_calendar_event_request)
|
|
1210
|
+
p status_code # => 2xx
|
|
1211
|
+
p headers # => { ... }
|
|
1212
|
+
p data # => <CalendarEvent>
|
|
1213
|
+
rescue Lockally::ApiError => e
|
|
1214
|
+
puts "Error when calling CalendarsApi->update_calendar_event_with_http_info: #{e}"
|
|
1215
|
+
end
|
|
1216
|
+
```
|
|
1217
|
+
|
|
1218
|
+
### Parameters
|
|
1219
|
+
|
|
1220
|
+
| Name | Type | Description | Notes |
|
|
1221
|
+
| ---- | ---- | ----------- | ----- |
|
|
1222
|
+
| **id** | **String** | | |
|
|
1223
|
+
| **event_id** | **String** | | |
|
|
1224
|
+
| **update_calendar_event_request** | [**UpdateCalendarEventRequest**](UpdateCalendarEventRequest.md) | | |
|
|
1225
|
+
|
|
1226
|
+
### Return type
|
|
1227
|
+
|
|
1228
|
+
[**CalendarEvent**](CalendarEvent.md)
|
|
1229
|
+
|
|
1230
|
+
### Authorization
|
|
1231
|
+
|
|
1232
|
+
[bearerAuth](../README.md#bearerAuth)
|
|
1233
|
+
|
|
1234
|
+
### HTTP request headers
|
|
1235
|
+
|
|
1236
|
+
- **Content-Type**: application/json
|
|
1237
|
+
- **Accept**: application/json, application/problem+json
|
|
1238
|
+
|
|
1239
|
+
|
|
1240
|
+
## update_calendar_integration
|
|
1241
|
+
|
|
1242
|
+
> <CalendarIntegration> update_calendar_integration(id, update_calendar_integration_request)
|
|
1243
|
+
|
|
1244
|
+
Update a calendar integration
|
|
1245
|
+
|
|
1246
|
+
### Examples
|
|
1247
|
+
|
|
1248
|
+
```ruby
|
|
1249
|
+
require 'time'
|
|
1250
|
+
require 'lockally'
|
|
1251
|
+
# setup authorization
|
|
1252
|
+
Lockally.configure do |config|
|
|
1253
|
+
# Configure Bearer authorization (lk_live_<prefix>_<secret>): bearerAuth
|
|
1254
|
+
config.access_token = 'YOUR_BEARER_TOKEN'
|
|
1255
|
+
end
|
|
1256
|
+
|
|
1257
|
+
api_instance = Lockally::CalendarsApi.new
|
|
1258
|
+
id = '38400000-8cf0-11bd-b23e-10b96e4ef00d' # String |
|
|
1259
|
+
update_calendar_integration_request = Lockally::UpdateCalendarIntegrationRequest.new # UpdateCalendarIntegrationRequest |
|
|
1260
|
+
|
|
1261
|
+
begin
|
|
1262
|
+
# Update a calendar integration
|
|
1263
|
+
result = api_instance.update_calendar_integration(id, update_calendar_integration_request)
|
|
1264
|
+
p result
|
|
1265
|
+
rescue Lockally::ApiError => e
|
|
1266
|
+
puts "Error when calling CalendarsApi->update_calendar_integration: #{e}"
|
|
1267
|
+
end
|
|
1268
|
+
```
|
|
1269
|
+
|
|
1270
|
+
#### Using the update_calendar_integration_with_http_info variant
|
|
1271
|
+
|
|
1272
|
+
This returns an Array which contains the response data, status code and headers.
|
|
1273
|
+
|
|
1274
|
+
> <Array(<CalendarIntegration>, Integer, Hash)> update_calendar_integration_with_http_info(id, update_calendar_integration_request)
|
|
1275
|
+
|
|
1276
|
+
```ruby
|
|
1277
|
+
begin
|
|
1278
|
+
# Update a calendar integration
|
|
1279
|
+
data, status_code, headers = api_instance.update_calendar_integration_with_http_info(id, update_calendar_integration_request)
|
|
1280
|
+
p status_code # => 2xx
|
|
1281
|
+
p headers # => { ... }
|
|
1282
|
+
p data # => <CalendarIntegration>
|
|
1283
|
+
rescue Lockally::ApiError => e
|
|
1284
|
+
puts "Error when calling CalendarsApi->update_calendar_integration_with_http_info: #{e}"
|
|
1285
|
+
end
|
|
1286
|
+
```
|
|
1287
|
+
|
|
1288
|
+
### Parameters
|
|
1289
|
+
|
|
1290
|
+
| Name | Type | Description | Notes |
|
|
1291
|
+
| ---- | ---- | ----------- | ----- |
|
|
1292
|
+
| **id** | **String** | | |
|
|
1293
|
+
| **update_calendar_integration_request** | [**UpdateCalendarIntegrationRequest**](UpdateCalendarIntegrationRequest.md) | | |
|
|
1294
|
+
|
|
1295
|
+
### Return type
|
|
1296
|
+
|
|
1297
|
+
[**CalendarIntegration**](CalendarIntegration.md)
|
|
1298
|
+
|
|
1299
|
+
### Authorization
|
|
1300
|
+
|
|
1301
|
+
[bearerAuth](../README.md#bearerAuth)
|
|
1302
|
+
|
|
1303
|
+
### HTTP request headers
|
|
1304
|
+
|
|
1305
|
+
- **Content-Type**: application/json
|
|
1306
|
+
- **Accept**: application/json, application/problem+json
|
|
1307
|
+
|
|
1308
|
+
|
|
1309
|
+
## update_calendar_member
|
|
1310
|
+
|
|
1311
|
+
> <CalendarMember> update_calendar_member(id, member_id, update_calendar_member_request)
|
|
1312
|
+
|
|
1313
|
+
Update a calendar member's role
|
|
1314
|
+
|
|
1315
|
+
### Examples
|
|
1316
|
+
|
|
1317
|
+
```ruby
|
|
1318
|
+
require 'time'
|
|
1319
|
+
require 'lockally'
|
|
1320
|
+
# setup authorization
|
|
1321
|
+
Lockally.configure do |config|
|
|
1322
|
+
# Configure Bearer authorization (lk_live_<prefix>_<secret>): bearerAuth
|
|
1323
|
+
config.access_token = 'YOUR_BEARER_TOKEN'
|
|
1324
|
+
end
|
|
1325
|
+
|
|
1326
|
+
api_instance = Lockally::CalendarsApi.new
|
|
1327
|
+
id = '38400000-8cf0-11bd-b23e-10b96e4ef00d' # String |
|
|
1328
|
+
member_id = '38400000-8cf0-11bd-b23e-10b96e4ef00d' # String |
|
|
1329
|
+
update_calendar_member_request = Lockally::UpdateCalendarMemberRequest.new({role: 'viewer'}) # UpdateCalendarMemberRequest |
|
|
1330
|
+
|
|
1331
|
+
begin
|
|
1332
|
+
# Update a calendar member's role
|
|
1333
|
+
result = api_instance.update_calendar_member(id, member_id, update_calendar_member_request)
|
|
1334
|
+
p result
|
|
1335
|
+
rescue Lockally::ApiError => e
|
|
1336
|
+
puts "Error when calling CalendarsApi->update_calendar_member: #{e}"
|
|
1337
|
+
end
|
|
1338
|
+
```
|
|
1339
|
+
|
|
1340
|
+
#### Using the update_calendar_member_with_http_info variant
|
|
1341
|
+
|
|
1342
|
+
This returns an Array which contains the response data, status code and headers.
|
|
1343
|
+
|
|
1344
|
+
> <Array(<CalendarMember>, Integer, Hash)> update_calendar_member_with_http_info(id, member_id, update_calendar_member_request)
|
|
1345
|
+
|
|
1346
|
+
```ruby
|
|
1347
|
+
begin
|
|
1348
|
+
# Update a calendar member's role
|
|
1349
|
+
data, status_code, headers = api_instance.update_calendar_member_with_http_info(id, member_id, update_calendar_member_request)
|
|
1350
|
+
p status_code # => 2xx
|
|
1351
|
+
p headers # => { ... }
|
|
1352
|
+
p data # => <CalendarMember>
|
|
1353
|
+
rescue Lockally::ApiError => e
|
|
1354
|
+
puts "Error when calling CalendarsApi->update_calendar_member_with_http_info: #{e}"
|
|
1355
|
+
end
|
|
1356
|
+
```
|
|
1357
|
+
|
|
1358
|
+
### Parameters
|
|
1359
|
+
|
|
1360
|
+
| Name | Type | Description | Notes |
|
|
1361
|
+
| ---- | ---- | ----------- | ----- |
|
|
1362
|
+
| **id** | **String** | | |
|
|
1363
|
+
| **member_id** | **String** | | |
|
|
1364
|
+
| **update_calendar_member_request** | [**UpdateCalendarMemberRequest**](UpdateCalendarMemberRequest.md) | | |
|
|
1365
|
+
|
|
1366
|
+
### Return type
|
|
1367
|
+
|
|
1368
|
+
[**CalendarMember**](CalendarMember.md)
|
|
1369
|
+
|
|
1370
|
+
### Authorization
|
|
1371
|
+
|
|
1372
|
+
[bearerAuth](../README.md#bearerAuth)
|
|
1373
|
+
|
|
1374
|
+
### HTTP request headers
|
|
1375
|
+
|
|
1376
|
+
- **Content-Type**: application/json
|
|
1377
|
+
- **Accept**: application/json, application/problem+json
|
|
1378
|
+
|
|
1379
|
+
|
|
1380
|
+
## update_calendar_policies
|
|
1381
|
+
|
|
1382
|
+
> <CalendarPolicies> update_calendar_policies(update_calendar_policies_request)
|
|
1383
|
+
|
|
1384
|
+
Update calendar policies
|
|
1385
|
+
|
|
1386
|
+
### Examples
|
|
1387
|
+
|
|
1388
|
+
```ruby
|
|
1389
|
+
require 'time'
|
|
1390
|
+
require 'lockally'
|
|
1391
|
+
# setup authorization
|
|
1392
|
+
Lockally.configure do |config|
|
|
1393
|
+
# Configure Bearer authorization (lk_live_<prefix>_<secret>): bearerAuth
|
|
1394
|
+
config.access_token = 'YOUR_BEARER_TOKEN'
|
|
1395
|
+
end
|
|
1396
|
+
|
|
1397
|
+
api_instance = Lockally::CalendarsApi.new
|
|
1398
|
+
update_calendar_policies_request = Lockally::UpdateCalendarPoliciesRequest.new # UpdateCalendarPoliciesRequest |
|
|
1399
|
+
|
|
1400
|
+
begin
|
|
1401
|
+
# Update calendar policies
|
|
1402
|
+
result = api_instance.update_calendar_policies(update_calendar_policies_request)
|
|
1403
|
+
p result
|
|
1404
|
+
rescue Lockally::ApiError => e
|
|
1405
|
+
puts "Error when calling CalendarsApi->update_calendar_policies: #{e}"
|
|
1406
|
+
end
|
|
1407
|
+
```
|
|
1408
|
+
|
|
1409
|
+
#### Using the update_calendar_policies_with_http_info variant
|
|
1410
|
+
|
|
1411
|
+
This returns an Array which contains the response data, status code and headers.
|
|
1412
|
+
|
|
1413
|
+
> <Array(<CalendarPolicies>, Integer, Hash)> update_calendar_policies_with_http_info(update_calendar_policies_request)
|
|
1414
|
+
|
|
1415
|
+
```ruby
|
|
1416
|
+
begin
|
|
1417
|
+
# Update calendar policies
|
|
1418
|
+
data, status_code, headers = api_instance.update_calendar_policies_with_http_info(update_calendar_policies_request)
|
|
1419
|
+
p status_code # => 2xx
|
|
1420
|
+
p headers # => { ... }
|
|
1421
|
+
p data # => <CalendarPolicies>
|
|
1422
|
+
rescue Lockally::ApiError => e
|
|
1423
|
+
puts "Error when calling CalendarsApi->update_calendar_policies_with_http_info: #{e}"
|
|
1424
|
+
end
|
|
1425
|
+
```
|
|
1426
|
+
|
|
1427
|
+
### Parameters
|
|
1428
|
+
|
|
1429
|
+
| Name | Type | Description | Notes |
|
|
1430
|
+
| ---- | ---- | ----------- | ----- |
|
|
1431
|
+
| **update_calendar_policies_request** | [**UpdateCalendarPoliciesRequest**](UpdateCalendarPoliciesRequest.md) | | |
|
|
1432
|
+
|
|
1433
|
+
### Return type
|
|
1434
|
+
|
|
1435
|
+
[**CalendarPolicies**](CalendarPolicies.md)
|
|
1436
|
+
|
|
1437
|
+
### Authorization
|
|
1438
|
+
|
|
1439
|
+
[bearerAuth](../README.md#bearerAuth)
|
|
1440
|
+
|
|
1441
|
+
### HTTP request headers
|
|
1442
|
+
|
|
1443
|
+
- **Content-Type**: application/json
|
|
1444
|
+
- **Accept**: application/json, application/problem+json
|
|
1445
|
+
|