spatio-sdk 0.0.2
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 +31 -0
- data/Rakefile +10 -0
- data/docs/AcceptOrganizationInvitationRequest.md +18 -0
- data/docs/AccountApi.md +793 -0
- data/docs/AccountChoice.md +22 -0
- data/docs/AccountError.md +20 -0
- data/docs/AccountListResponse.md +22 -0
- data/docs/AccountPlan.md +24 -0
- data/docs/AccountStatus.md +28 -0
- data/docs/AccountTierDetails.md +46 -0
- data/docs/AccountUsage.md +32 -0
- data/docs/ActionDescriptor.md +32 -0
- data/docs/ActionsApi.md +409 -0
- data/docs/AddOrganizationMemberRequest.md +22 -0
- data/docs/AddWorkspaceMemberRequest.md +20 -0
- data/docs/Agent.md +40 -0
- data/docs/AgentConversation.md +28 -0
- data/docs/AgentConversationListResponse.md +20 -0
- data/docs/AgentListResponse.md +24 -0
- data/docs/AgentMessage.md +28 -0
- data/docs/AgentMessageListResponse.md +20 -0
- data/docs/AgentSessionContext.md +24 -0
- data/docs/AgentTaskUsage.md +26 -0
- data/docs/AgentsApi.md +884 -0
- data/docs/AmbiguousAccountError.md +22 -0
- data/docs/ApiError.md +20 -0
- data/docs/App.md +32 -0
- data/docs/AppFileContentResponse.md +20 -0
- data/docs/AppFileListResponse.md +18 -0
- data/docs/AppListResponse.md +20 -0
- data/docs/AppsApi.md +984 -0
- data/docs/AssignContactCategoryRequest.md +18 -0
- data/docs/Attachment.md +26 -0
- data/docs/AttachmentInput.md +24 -0
- data/docs/AttachmentMeta.md +24 -0
- data/docs/Attendee.md +30 -0
- data/docs/AttendeeRole.md +15 -0
- data/docs/AttendeeStatus.md +15 -0
- data/docs/Block.md +36 -0
- data/docs/BlockContent.md +38 -0
- data/docs/BlockListResponse.md +20 -0
- data/docs/BlockType.md +15 -0
- data/docs/BulkArchiveRequest.md +20 -0
- data/docs/BulkArchiveResponse.md +22 -0
- data/docs/BulkArchiveResponseFailedInner.md +20 -0
- data/docs/BulkDeleteEmailsRequest.md +22 -0
- data/docs/BulkDeleteEmailsResponse.md +22 -0
- data/docs/BulkDeleteFilesRequest.md +24 -0
- data/docs/BulkDeleteTasksRequest.md +24 -0
- data/docs/BulkDeleteTasksResponse.md +24 -0
- data/docs/BulkDeleteTasksResponseFailedInner.md +20 -0
- data/docs/BulkFilesResponse.md +24 -0
- data/docs/BulkFilesResponseFailedInner.md +20 -0
- data/docs/BulkMarkReadRequest.md +22 -0
- data/docs/BulkMarkReadResponse.md +20 -0
- data/docs/BulkMarkReadResponseFailedInner.md +20 -0
- data/docs/BulkMoveFilesRequest.md +26 -0
- data/docs/BulkUpdateTasksRequest.md +24 -0
- data/docs/BulkUpdateTasksResponse.md +24 -0
- data/docs/CalendarAccountError.md +24 -0
- data/docs/CalendarApi.md +1031 -0
- data/docs/CalendarCapabilitiesResponse.md +22 -0
- data/docs/CalendarOperationResult.md +24 -0
- data/docs/CalendarProviderInfo.md +26 -0
- data/docs/CalendarProvidersInfo.md +18 -0
- data/docs/CalendarSyncResponse.md +26 -0
- data/docs/CallListResponse.md +20 -0
- data/docs/CallRecording.md +30 -0
- data/docs/CallRecordingListResponse.md +18 -0
- data/docs/CallsApi.md +2096 -0
- data/docs/Cell.md +22 -0
- data/docs/ChangePasswordRequest.md +20 -0
- data/docs/Channel.md +38 -0
- data/docs/ChannelMembershipRequest.md +18 -0
- data/docs/ChannelsApi.md +1170 -0
- data/docs/ChatActionDefinition.md +34 -0
- data/docs/ChatActionsList.md +18 -0
- data/docs/ChatMessage.md +36 -0
- data/docs/ChatUser.md +34 -0
- data/docs/ChunkedFileManifest.md +34 -0
- data/docs/ClientRegistrationRequest.md +36 -0
- data/docs/ClientRegistrationResponse.md +38 -0
- data/docs/Comment.md +32 -0
- data/docs/CommentAuthor.md +24 -0
- data/docs/CommentListResponse.md +20 -0
- data/docs/CommentMutationResponse.md +20 -0
- data/docs/CommentResponse.md +18 -0
- data/docs/CommitChunkedUploadRequest.md +18 -0
- data/docs/CommitChunkedUploadResponse.md +36 -0
- data/docs/ConferenceData.md +28 -0
- data/docs/ConnectedAppItem.md +34 -0
- data/docs/ConnectedAppsListResponse.md +18 -0
- data/docs/ConnectionAccountListResponse.md +22 -0
- data/docs/ConnectionListResponse.md +20 -0
- data/docs/ConnectionsApi.md +748 -0
- data/docs/ConsumeAgentTaskResponse.md +26 -0
- data/docs/Contact.md +46 -0
- data/docs/ContactCategory.md +26 -0
- data/docs/ContactCategoryListResponse.md +18 -0
- data/docs/ContactListResponse.md +22 -0
- data/docs/ContactProvider.md +26 -0
- data/docs/ContactProviderListResponse.md +18 -0
- data/docs/ContactsApi.md +830 -0
- data/docs/Conversation.md +42 -0
- data/docs/ConversationMessage.md +28 -0
- data/docs/ConversationsApi.md +636 -0
- data/docs/CoreAction.md +30 -0
- data/docs/CoreActionListResponse.md +20 -0
- data/docs/CreateAgentConversationRequest.md +22 -0
- data/docs/CreateAgentMessageRequest.md +22 -0
- data/docs/CreateAgentRequest.md +30 -0
- data/docs/CreateAppRequest.md +26 -0
- data/docs/CreateBlockRequest.md +26 -0
- data/docs/CreateCalendarEvent201Response.md +24 -0
- data/docs/CreateCallRequest.md +24 -0
- data/docs/CreateChannelRequest.md +24 -0
- data/docs/CreateChannelResponse.md +20 -0
- data/docs/CreateCommentRequest.md +24 -0
- data/docs/CreateContactCategoryRequest.md +22 -0
- data/docs/CreateContactRequest.md +32 -0
- data/docs/CreateConversationRequest.md +26 -0
- data/docs/CreateDraftRequest.md +38 -0
- data/docs/CreateEmailFolderRequest.md +20 -0
- data/docs/CreateEventRequest.md +26 -0
- data/docs/CreateFolderRequest.md +26 -0
- data/docs/CreateLabelRequest.md +26 -0
- data/docs/CreateLabelResponse.md +20 -0
- data/docs/CreateMeetingRoomRequest.md +20 -0
- data/docs/CreateNote400Response.md +49 -0
- data/docs/CreateNoteRequest.md +32 -0
- data/docs/CreateOrganizationInvitationRequest.md +22 -0
- data/docs/CreateOrganizationRequest.md +28 -0
- data/docs/CreatePATRequest.md +26 -0
- data/docs/CreatePATResponse.md +20 -0
- data/docs/CreatePresentationRequest.md +26 -0
- data/docs/CreateRecordRequest.md +26 -0
- data/docs/CreateRecordTypeRequest.md +28 -0
- data/docs/CreateRoutineRequest.md +26 -0
- data/docs/CreateRowRequest.md +20 -0
- data/docs/CreateSheetRequest.md +30 -0
- data/docs/CreateSlideElementRequest.md +32 -0
- data/docs/CreateSlideRequest.md +34 -0
- data/docs/CreateTaskRequest.md +44 -0
- data/docs/CreateWorkspaceInvitationRequest.md +20 -0
- data/docs/CreateWorkspaceRequest.md +24 -0
- data/docs/DMAttachRequest.md +34 -0
- data/docs/DMForwardRequest.md +22 -0
- data/docs/DMMarkReadRequest.md +20 -0
- data/docs/DMMessageEnvelope.md +18 -0
- data/docs/DMMuteRequest.md +22 -0
- data/docs/DMMuteResponse.md +18 -0
- data/docs/DMPinnedList.md +18 -0
- data/docs/DMReactionRequest.md +20 -0
- data/docs/DMReactionResponse.md +18 -0
- data/docs/DMSearchResults.md +18 -0
- data/docs/DMSetDraftRequest.md +20 -0
- data/docs/DMThreadReplyRequest.md +20 -0
- data/docs/DirectMessagesApi.md +2246 -0
- data/docs/DisconnectConnectionRequest.md +20 -0
- data/docs/DiscoveryDocument.md +52 -0
- data/docs/DownloadFileResponse.md +20 -0
- data/docs/Draft.md +40 -0
- data/docs/DraftResponse.md +20 -0
- data/docs/Email.md +56 -0
- data/docs/EmailFolder.md +26 -0
- data/docs/EmailFolderListResponse.md +18 -0
- data/docs/EnableShareRequest.md +20 -0
- data/docs/ExecuteActionRequest.md +22 -0
- data/docs/ExecuteActionResponse.md +22 -0
- data/docs/ExecuteChatActionRequest.md +20 -0
- data/docs/ExecuteChatActionResponse.md +20 -0
- data/docs/ExportPDFR2Response.md +24 -0
- data/docs/ExportPDFRequest.md +20 -0
- data/docs/ExportPDFRequestRasterizedSlidesInner.md +20 -0
- data/docs/ExtractTextResult.md +24 -0
- data/docs/FederatedSearch200Response.md +28 -0
- data/docs/FederatedSearch200ResponseItemsInner.md +38 -0
- data/docs/FederatedSearch200ResponsePerPlatformValue.md +20 -0
- data/docs/FederatedSearchRequest.md +32 -0
- data/docs/FileListEnvelope.md +20 -0
- data/docs/FilesAndFoldersResponse.md +28 -0
- data/docs/FilesApi.md +2471 -0
- data/docs/Folder.md +32 -0
- data/docs/FolderListEnvelope.md +20 -0
- data/docs/FoldersApi.md +415 -0
- data/docs/GetChatUserResponse.md +20 -0
- data/docs/GetDomainLogo200Response.md +20 -0
- data/docs/GetEmailResponse.md +20 -0
- data/docs/GetThreadResponse.md +20 -0
- data/docs/InboxApi.md +424 -0
- data/docs/InboxCounts.md +22 -0
- data/docs/InboxItem.md +38 -0
- data/docs/InboxListResponse.md +22 -0
- data/docs/InitChunkedUploadRequest.md +30 -0
- data/docs/InitChunkedUploadResponse.md +26 -0
- data/docs/InstallConnectionRequest.md +22 -0
- data/docs/IntrospectionResponse.md +30 -0
- data/docs/IssueCollaborationToken200Response.md +26 -0
- data/docs/IssueCollaborationTokenRequest.md +18 -0
- data/docs/JWK.md +28 -0
- data/docs/JWKS.md +18 -0
- data/docs/KeyBinding.md +38 -0
- data/docs/KeyBindingListResponse.md +18 -0
- data/docs/KeybindingsApi.md +406 -0
- data/docs/Label.md +28 -0
- data/docs/LabelColor.md +20 -0
- data/docs/LinkRepoTaskRequest.md +18 -0
- data/docs/ListCalendarEvents200Response.md +24 -0
- data/docs/ListChannelsResponse.md +24 -0
- data/docs/ListChatUsersResponse.md +24 -0
- data/docs/ListDraftsResponse.md +24 -0
- data/docs/ListEmailsResponse.md +24 -0
- data/docs/ListEventsData.md +24 -0
- data/docs/ListLabelsResponse.md +20 -0
- data/docs/ListMessagesResponse.md +24 -0
- data/docs/LogosApi.md +211 -0
- data/docs/MailApi.md +3803 -0
- data/docs/MeetingRoom.md +24 -0
- data/docs/MiscApi.md +1213 -0
- data/docs/ModelsApi.md +483 -0
- data/docs/MoveBlockRequest.md +20 -0
- data/docs/MoveEmailsRequest.md +18 -0
- data/docs/MoveFileRequest.md +18 -0
- data/docs/MoveFileResponse.md +18 -0
- data/docs/NativeDMApi.md +1448 -0
- data/docs/NavigationApi.md +72 -0
- data/docs/Note.md +44 -0
- data/docs/NoteListEnvelope.md +20 -0
- data/docs/NotesApi.md +2413 -0
- data/docs/NotificationsApi.md +140 -0
- data/docs/OAuthApi.md +676 -0
- data/docs/OAuthError.md +20 -0
- data/docs/Organization.md +38 -0
- data/docs/OrganizationDetailLegacy.md +38 -0
- data/docs/OrganizationInvitation.md +38 -0
- data/docs/OrganizationInvitationListResponse.md +18 -0
- data/docs/OrganizationListResponse.md +18 -0
- data/docs/OrganizationMember.md +28 -0
- data/docs/OrganizationMemberInvitedBy.md +49 -0
- data/docs/OrganizationMemberListResponse.md +20 -0
- data/docs/OrganizationWorkspacesInner.md +22 -0
- data/docs/OrganizationsApi.md +1956 -0
- data/docs/PATListResponse.md +20 -0
- data/docs/PATScopesResponse.md +18 -0
- data/docs/PasswordRequiredError.md +24 -0
- data/docs/PersonalAccessToken.md +34 -0
- data/docs/PersonalAccessTokensApi.md +629 -0
- data/docs/PlatformsApi.md +1032 -0
- data/docs/PreconfiguredAgent.md +30 -0
- data/docs/Presentation.md +38 -0
- data/docs/PresentationListEnvelope.md +20 -0
- data/docs/ProposeRecommendationRequest.md +28 -0
- data/docs/PublicInvitationPayload.md +40 -0
- data/docs/QuotaExceededError.md +20 -0
- data/docs/RealtimeApi.md +79 -0
- data/docs/Recommendation.md +38 -0
- data/docs/RecommendationListResponse.md +18 -0
- data/docs/RecommendationsApi.md +354 -0
- data/docs/Record.md +32 -0
- data/docs/RecordListResponse.md +22 -0
- data/docs/RecordType.md +34 -0
- data/docs/RecordTypeListResponse.md +18 -0
- data/docs/RecordsApi.md +560 -0
- data/docs/RefreshConnectionRequest.md +20 -0
- data/docs/Reminder.md +20 -0
- data/docs/ReminderMethod.md +15 -0
- data/docs/ReplyEmailRequest.md +30 -0
- data/docs/RepoApi.md +2071 -0
- data/docs/ResourcesApi.md +220 -0
- data/docs/RevokeOtherSessionsResponse.md +18 -0
- data/docs/RichTextObject.md +24 -0
- data/docs/Routine.md +34 -0
- data/docs/RoutineListResponse.md +18 -0
- data/docs/RoutineRun.md +30 -0
- data/docs/RoutineRunCompleteRequest.md +20 -0
- data/docs/RoutineRunListResponse.md +18 -0
- data/docs/RoutineRunProgressRequest.md +20 -0
- data/docs/RoutinesApi.md +696 -0
- data/docs/Row.md +20 -0
- data/docs/RowList.md +20 -0
- data/docs/SaveMessageRequest.md +22 -0
- data/docs/SearchApi.md +77 -0
- data/docs/SearchEmailsResponse.md +24 -0
- data/docs/SearchFilesResponse.md +24 -0
- data/docs/SendChatMessageRequest.md +26 -0
- data/docs/SendChatMessageResponse.md +28 -0
- data/docs/SendEmailRequest.md +36 -0
- data/docs/SendEmailResponse.md +26 -0
- data/docs/Session.md +38 -0
- data/docs/SessionListResponse.md +18 -0
- data/docs/SettingsApi.md +745 -0
- data/docs/ShareSettings.md +26 -0
- data/docs/Sheet.md +48 -0
- data/docs/SheetListEnvelope.md +20 -0
- data/docs/SheetsApi.md +785 -0
- data/docs/SignInMethods.md +22 -0
- data/docs/SignInMethodsProvidersInner.md +24 -0
- data/docs/Slide.md +44 -0
- data/docs/SlideElement.md +40 -0
- data/docs/SlideElementList.md +20 -0
- data/docs/SlideList.md +20 -0
- data/docs/SlidesApi.md +1697 -0
- data/docs/SpatioCall.md +38 -0
- data/docs/SpatioConnection.md +38 -0
- data/docs/SpatioEvent.md +86 -0
- data/docs/SpatioFile.md +40 -0
- data/docs/SpatioThread.md +24 -0
- data/docs/SuccessFlag.md +18 -0
- data/docs/Task.md +58 -0
- data/docs/TaskComment.md +28 -0
- data/docs/TaskCommentAuthor.md +24 -0
- data/docs/TaskCommentList.md +20 -0
- data/docs/TaskCommentMutationResponse.md +20 -0
- data/docs/TaskCommentRequest.md +18 -0
- data/docs/TaskListEnvelope.md +20 -0
- data/docs/TaskProvidersInfo.md +20 -0
- data/docs/TaskProvidersInfoPlatform.md +20 -0
- data/docs/TasksApi.md +1783 -0
- data/docs/TerminalApi.md +345 -0
- data/docs/TextAnnotations.md +28 -0
- data/docs/TokenResponse.md +28 -0
- data/docs/UpdateAccountRequest.md +20 -0
- data/docs/UpdateAgentRequest.md +30 -0
- data/docs/UpdateAppRequest.md +24 -0
- data/docs/UpdateBlockRequest.md +22 -0
- data/docs/UpdateCellRequest.md +18 -0
- data/docs/UpdateCommentRequest.md +20 -0
- data/docs/UpdateContactCategoryRequest.md +22 -0
- data/docs/UpdateContactRequest.md +32 -0
- data/docs/UpdateConversationRequest.md +26 -0
- data/docs/UpdateDraftRequest.md +32 -0
- data/docs/UpdateEmailFolderRequest.md +18 -0
- data/docs/UpdateEmailRequest.md +26 -0
- data/docs/UpdateEmailResponse.md +20 -0
- data/docs/UpdateEventRequest.md +22 -0
- data/docs/UpdateFileRequest.md +22 -0
- data/docs/UpdateKeyBindingRequest.md +20 -0
- data/docs/UpdateMessageMetadataRequest.md +20 -0
- data/docs/UpdateNoteRequest.md +30 -0
- data/docs/UpdateOrganizationMemberRequest.md +18 -0
- data/docs/UpdateOrganizationRequest.md +22 -0
- data/docs/UpdatePATRequest.md +20 -0
- data/docs/UpdateParticipantStateRequest.md +22 -0
- data/docs/UpdatePresentationRequest.md +22 -0
- data/docs/UpdateRecommendationStatusRequest.md +18 -0
- data/docs/UpdateRecordRequest.md +22 -0
- data/docs/UpdateRecordTypeRequest.md +26 -0
- data/docs/UpdateRoutineRequest.md +26 -0
- data/docs/UpdateRowRequest.md +18 -0
- data/docs/UpdateSheetRequest.md +30 -0
- data/docs/UpdateSlideElementRequest.md +32 -0
- data/docs/UpdateSlideRequest.md +32 -0
- data/docs/UpdateTaskRequest.md +34 -0
- data/docs/UpdateWorkspaceMemberRequest.md +18 -0
- data/docs/UpdateWorkspaceRequest.md +24 -0
- data/docs/UploadChunkedBlockResponse.md +24 -0
- data/docs/UploadFileBase64Request.md +32 -0
- data/docs/UserInfoResponse.md +34 -0
- data/docs/ValidateKeyBindingRequest.md +22 -0
- data/docs/ValidateKeyBindingResponse.md +20 -0
- data/docs/Workspace.md +44 -0
- data/docs/WorkspaceEnvelope.md +18 -0
- data/docs/WorkspaceInvitation.md +34 -0
- data/docs/WorkspaceInvitationListResponse.md +18 -0
- data/docs/WorkspaceListResponse.md +20 -0
- data/docs/WorkspaceMember.md +30 -0
- data/docs/WorkspaceMemberListResponse.md +20 -0
- data/docs/WorkspaceOrganization.md +22 -0
- data/docs/WorkspacesApi.md +900 -0
- data/docs/WriteAppFileRequest.md +20 -0
- data/git_push.sh +57 -0
- data/lib/spatio-sdk/api/account_api.rb +703 -0
- data/lib/spatio-sdk/api/actions_api.rb +381 -0
- data/lib/spatio-sdk/api/agents_api.rb +824 -0
- data/lib/spatio-sdk/api/apps_api.rb +974 -0
- data/lib/spatio-sdk/api/calendar_api.rb +1015 -0
- data/lib/spatio-sdk/api/calls_api.rb +2016 -0
- data/lib/spatio-sdk/api/channels_api.rb +1165 -0
- data/lib/spatio-sdk/api/connections_api.rb +695 -0
- data/lib/spatio-sdk/api/contacts_api.rb +801 -0
- data/lib/spatio-sdk/api/conversations_api.rb +612 -0
- data/lib/spatio-sdk/api/direct_messages_api.rb +2167 -0
- data/lib/spatio-sdk/api/files_api.rb +2518 -0
- data/lib/spatio-sdk/api/folders_api.rb +409 -0
- data/lib/spatio-sdk/api/inbox_api.rb +403 -0
- data/lib/spatio-sdk/api/keybindings_api.rb +386 -0
- data/lib/spatio-sdk/api/logos_api.rb +210 -0
- data/lib/spatio-sdk/api/mail_api.rb +3780 -0
- data/lib/spatio-sdk/api/misc_api.rb +1100 -0
- data/lib/spatio-sdk/api/models_api.rb +456 -0
- data/lib/spatio-sdk/api/native_dm_api.rb +1396 -0
- data/lib/spatio-sdk/api/navigation_api.rb +77 -0
- data/lib/spatio-sdk/api/notes_api.rb +2418 -0
- data/lib/spatio-sdk/api/notifications_api.rb +143 -0
- data/lib/spatio-sdk/api/o_auth_api.rb +714 -0
- data/lib/spatio-sdk/api/organizations_api.rb +1913 -0
- data/lib/spatio-sdk/api/personal_access_tokens_api.rb +625 -0
- data/lib/spatio-sdk/api/platforms_api.rb +981 -0
- data/lib/spatio-sdk/api/realtime_api.rb +86 -0
- data/lib/spatio-sdk/api/recommendations_api.rb +346 -0
- data/lib/spatio-sdk/api/records_api.rb +550 -0
- data/lib/spatio-sdk/api/repo_api.rb +2167 -0
- data/lib/spatio-sdk/api/resources_api.rb +240 -0
- data/lib/spatio-sdk/api/routines_api.rb +670 -0
- data/lib/spatio-sdk/api/search_api.rb +90 -0
- data/lib/spatio-sdk/api/settings_api.rb +706 -0
- data/lib/spatio-sdk/api/sheets_api.rb +817 -0
- data/lib/spatio-sdk/api/slides_api.rb +1692 -0
- data/lib/spatio-sdk/api/tasks_api.rb +1787 -0
- data/lib/spatio-sdk/api/terminal_api.rb +337 -0
- data/lib/spatio-sdk/api/workspaces_api.rb +876 -0
- data/lib/spatio-sdk/api_client.rb +441 -0
- data/lib/spatio-sdk/api_error.rb +58 -0
- data/lib/spatio-sdk/api_model_base.rb +88 -0
- data/lib/spatio-sdk/configuration.rb +393 -0
- data/lib/spatio-sdk/models/accept_organization_invitation_request.rb +164 -0
- data/lib/spatio-sdk/models/account_choice.rb +200 -0
- data/lib/spatio-sdk/models/account_error.rb +191 -0
- data/lib/spatio-sdk/models/account_list_response.rb +171 -0
- data/lib/spatio-sdk/models/account_plan.rb +228 -0
- data/lib/spatio-sdk/models/account_status.rb +273 -0
- data/lib/spatio-sdk/models/account_tier_details.rb +291 -0
- data/lib/spatio-sdk/models/account_usage.rb +229 -0
- data/lib/spatio-sdk/models/action_descriptor.rb +230 -0
- data/lib/spatio-sdk/models/add_organization_member_request.rb +216 -0
- data/lib/spatio-sdk/models/add_workspace_member_request.rb +214 -0
- data/lib/spatio-sdk/models/agent.rb +268 -0
- data/lib/spatio-sdk/models/agent_conversation.rb +212 -0
- data/lib/spatio-sdk/models/agent_conversation_list_response.rb +175 -0
- data/lib/spatio-sdk/models/agent_list_response.rb +179 -0
- data/lib/spatio-sdk/models/agent_message.rb +228 -0
- data/lib/spatio-sdk/models/agent_message_list_response.rb +175 -0
- data/lib/spatio-sdk/models/agent_session_context.rb +185 -0
- data/lib/spatio-sdk/models/agent_task_usage.rb +204 -0
- data/lib/spatio-sdk/models/ambiguous_account_error.rb +194 -0
- data/lib/spatio-sdk/models/api_error.rb +176 -0
- data/lib/spatio-sdk/models/app.rb +228 -0
- data/lib/spatio-sdk/models/app_file_content_response.rb +173 -0
- data/lib/spatio-sdk/models/app_file_list_response.rb +152 -0
- data/lib/spatio-sdk/models/app_list_response.rb +161 -0
- data/lib/spatio-sdk/models/assign_contact_category_request.rb +164 -0
- data/lib/spatio-sdk/models/attachment.rb +217 -0
- data/lib/spatio-sdk/models/attachment_input.rb +227 -0
- data/lib/spatio-sdk/models/attachment_meta.rb +243 -0
- data/lib/spatio-sdk/models/attendee.rb +292 -0
- data/lib/spatio-sdk/models/attendee_role.rb +41 -0
- data/lib/spatio-sdk/models/attendee_status.rb +42 -0
- data/lib/spatio-sdk/models/block.rb +390 -0
- data/lib/spatio-sdk/models/block_content.rb +252 -0
- data/lib/spatio-sdk/models/block_list_response.rb +193 -0
- data/lib/spatio-sdk/models/block_type.rb +61 -0
- data/lib/spatio-sdk/models/bulk_archive_request.rb +175 -0
- data/lib/spatio-sdk/models/bulk_archive_response.rb +222 -0
- data/lib/spatio-sdk/models/bulk_archive_response_failed_inner.rb +190 -0
- data/lib/spatio-sdk/models/bulk_delete_emails_request.rb +185 -0
- data/lib/spatio-sdk/models/bulk_delete_emails_response.rb +221 -0
- data/lib/spatio-sdk/models/bulk_delete_files_request.rb +180 -0
- data/lib/spatio-sdk/models/bulk_delete_tasks_request.rb +181 -0
- data/lib/spatio-sdk/models/bulk_delete_tasks_response.rb +247 -0
- data/lib/spatio-sdk/models/bulk_delete_tasks_response_failed_inner.rb +190 -0
- data/lib/spatio-sdk/models/bulk_files_response.rb +247 -0
- data/lib/spatio-sdk/models/bulk_files_response_failed_inner.rb +190 -0
- data/lib/spatio-sdk/models/bulk_mark_read_request.rb +187 -0
- data/lib/spatio-sdk/models/bulk_mark_read_response.rb +194 -0
- data/lib/spatio-sdk/models/bulk_mark_read_response_failed_inner.rb +190 -0
- data/lib/spatio-sdk/models/bulk_move_files_request.rb +191 -0
- data/lib/spatio-sdk/models/bulk_update_tasks_request.rb +213 -0
- data/lib/spatio-sdk/models/bulk_update_tasks_response.rb +246 -0
- data/lib/spatio-sdk/models/calendar_account_error.rb +242 -0
- data/lib/spatio-sdk/models/calendar_capabilities_response.rb +219 -0
- data/lib/spatio-sdk/models/calendar_operation_result.rb +198 -0
- data/lib/spatio-sdk/models/calendar_provider_info.rb +220 -0
- data/lib/spatio-sdk/models/calendar_providers_info.rb +167 -0
- data/lib/spatio-sdk/models/calendar_sync_response.rb +222 -0
- data/lib/spatio-sdk/models/call_list_response.rb +161 -0
- data/lib/spatio-sdk/models/call_recording.rb +222 -0
- data/lib/spatio-sdk/models/call_recording_list_response.rb +152 -0
- data/lib/spatio-sdk/models/cell.rb +204 -0
- data/lib/spatio-sdk/models/change_password_request.rb +174 -0
- data/lib/spatio-sdk/models/channel.rb +325 -0
- data/lib/spatio-sdk/models/channel_membership_request.rb +148 -0
- data/lib/spatio-sdk/models/chat_action_definition.rb +278 -0
- data/lib/spatio-sdk/models/chat_actions_list.rb +166 -0
- data/lib/spatio-sdk/models/chat_message.rb +317 -0
- data/lib/spatio-sdk/models/chat_user.rb +287 -0
- data/lib/spatio-sdk/models/chunked_file_manifest.rb +324 -0
- data/lib/spatio-sdk/models/client_registration_request.rb +314 -0
- data/lib/spatio-sdk/models/client_registration_response.rb +329 -0
- data/lib/spatio-sdk/models/comment.rb +315 -0
- data/lib/spatio-sdk/models/comment_author.rb +226 -0
- data/lib/spatio-sdk/models/comment_list_response.rb +192 -0
- data/lib/spatio-sdk/models/comment_mutation_response.rb +191 -0
- data/lib/spatio-sdk/models/comment_response.rb +165 -0
- data/lib/spatio-sdk/models/commit_chunked_upload_request.rb +164 -0
- data/lib/spatio-sdk/models/commit_chunked_upload_response.rb +313 -0
- data/lib/spatio-sdk/models/conference_data.rb +229 -0
- data/lib/spatio-sdk/models/connected_app_item.rb +308 -0
- data/lib/spatio-sdk/models/connected_apps_list_response.rb +166 -0
- data/lib/spatio-sdk/models/connection_account_list_response.rb +172 -0
- data/lib/spatio-sdk/models/connection_list_response.rb +177 -0
- data/lib/spatio-sdk/models/consume_agent_task_response.rb +204 -0
- data/lib/spatio-sdk/models/contact.rb +294 -0
- data/lib/spatio-sdk/models/contact_category.rb +217 -0
- data/lib/spatio-sdk/models/contact_category_list_response.rb +152 -0
- data/lib/spatio-sdk/models/contact_list_response.rb +184 -0
- data/lib/spatio-sdk/models/contact_provider.rb +217 -0
- data/lib/spatio-sdk/models/contact_provider_list_response.rb +166 -0
- data/lib/spatio-sdk/models/conversation.rb +314 -0
- data/lib/spatio-sdk/models/conversation_message.rb +246 -0
- data/lib/spatio-sdk/models/core_action.rb +221 -0
- data/lib/spatio-sdk/models/core_action_list_response.rb +161 -0
- data/lib/spatio-sdk/models/create_agent_conversation_request.rb +167 -0
- data/lib/spatio-sdk/models/create_agent_message_request.rb +201 -0
- data/lib/spatio-sdk/models/create_agent_request.rb +222 -0
- data/lib/spatio-sdk/models/create_app_request.rb +200 -0
- data/lib/spatio-sdk/models/create_block_request.rb +260 -0
- data/lib/spatio-sdk/models/create_calendar_event201_response.rb +202 -0
- data/lib/spatio-sdk/models/create_call_request.rb +176 -0
- data/lib/spatio-sdk/models/create_channel_request.rb +191 -0
- data/lib/spatio-sdk/models/create_channel_response.rb +190 -0
- data/lib/spatio-sdk/models/create_comment_request.rb +177 -0
- data/lib/spatio-sdk/models/create_contact_category_request.rb +182 -0
- data/lib/spatio-sdk/models/create_contact_request.rb +212 -0
- data/lib/spatio-sdk/models/create_conversation_request.rb +185 -0
- data/lib/spatio-sdk/models/create_draft_request.rb +248 -0
- data/lib/spatio-sdk/models/create_email_folder_request.rb +173 -0
- data/lib/spatio-sdk/models/create_event_request.rb +254 -0
- data/lib/spatio-sdk/models/create_folder_request.rb +201 -0
- data/lib/spatio-sdk/models/create_label_request.rb +200 -0
- data/lib/spatio-sdk/models/create_label_response.rb +190 -0
- data/lib/spatio-sdk/models/create_meeting_room_request.rb +173 -0
- data/lib/spatio-sdk/models/create_note400_response.rb +104 -0
- data/lib/spatio-sdk/models/create_note_request.rb +232 -0
- data/lib/spatio-sdk/models/create_organization_invitation_request.rb +224 -0
- data/lib/spatio-sdk/models/create_organization_request.rb +211 -0
- data/lib/spatio-sdk/models/create_pat_request.rb +202 -0
- data/lib/spatio-sdk/models/create_pat_response.rb +174 -0
- data/lib/spatio-sdk/models/create_presentation_request.rb +200 -0
- data/lib/spatio-sdk/models/create_record_request.rb +204 -0
- data/lib/spatio-sdk/models/create_record_type_request.rb +211 -0
- data/lib/spatio-sdk/models/create_routine_request.rb +204 -0
- data/lib/spatio-sdk/models/create_row_request.rb +176 -0
- data/lib/spatio-sdk/models/create_sheet_request.rb +222 -0
- data/lib/spatio-sdk/models/create_slide_element_request.rb +229 -0
- data/lib/spatio-sdk/models/create_slide_request.rb +220 -0
- data/lib/spatio-sdk/models/create_task_request.rb +322 -0
- data/lib/spatio-sdk/models/create_workspace_invitation_request.rb +214 -0
- data/lib/spatio-sdk/models/create_workspace_request.rb +191 -0
- data/lib/spatio-sdk/models/disconnect_connection_request.rb +173 -0
- data/lib/spatio-sdk/models/discovery_document.rb +404 -0
- data/lib/spatio-sdk/models/dm_attach_request.rb +254 -0
- data/lib/spatio-sdk/models/dm_forward_request.rb +166 -0
- data/lib/spatio-sdk/models/dm_mark_read_request.rb +173 -0
- data/lib/spatio-sdk/models/dm_message_envelope.rb +165 -0
- data/lib/spatio-sdk/models/dm_mute_request.rb +166 -0
- data/lib/spatio-sdk/models/dm_mute_response.rb +148 -0
- data/lib/spatio-sdk/models/dm_pinned_list.rb +149 -0
- data/lib/spatio-sdk/models/dm_reaction_request.rb +173 -0
- data/lib/spatio-sdk/models/dm_reaction_response.rb +150 -0
- data/lib/spatio-sdk/models/dm_search_results.rb +149 -0
- data/lib/spatio-sdk/models/dm_set_draft_request.rb +173 -0
- data/lib/spatio-sdk/models/dm_thread_reply_request.rb +173 -0
- data/lib/spatio-sdk/models/download_file_response.rb +191 -0
- data/lib/spatio-sdk/models/draft.rb +339 -0
- data/lib/spatio-sdk/models/draft_response.rb +190 -0
- data/lib/spatio-sdk/models/email.rb +488 -0
- data/lib/spatio-sdk/models/email_folder.rb +202 -0
- data/lib/spatio-sdk/models/email_folder_list_response.rb +152 -0
- data/lib/spatio-sdk/models/enable_share_request.rb +157 -0
- data/lib/spatio-sdk/models/execute_action_request.rb +185 -0
- data/lib/spatio-sdk/models/execute_action_response.rb +168 -0
- data/lib/spatio-sdk/models/execute_chat_action_request.rb +175 -0
- data/lib/spatio-sdk/models/execute_chat_action_response.rb +175 -0
- data/lib/spatio-sdk/models/export_pdf_request.rb +162 -0
- data/lib/spatio-sdk/models/export_pdf_request_rasterized_slides_inner.rb +191 -0
- data/lib/spatio-sdk/models/export_pdfr2_response.rb +269 -0
- data/lib/spatio-sdk/models/extract_text_result.rb +212 -0
- data/lib/spatio-sdk/models/federated_search200_response.rb +270 -0
- data/lib/spatio-sdk/models/federated_search200_response_items_inner.rb +237 -0
- data/lib/spatio-sdk/models/federated_search200_response_per_platform_value.rb +156 -0
- data/lib/spatio-sdk/models/federated_search_request.rb +276 -0
- data/lib/spatio-sdk/models/file_list_envelope.rb +181 -0
- data/lib/spatio-sdk/models/files_and_folders_response.rb +235 -0
- data/lib/spatio-sdk/models/folder.rb +297 -0
- data/lib/spatio-sdk/models/folder_list_envelope.rb +181 -0
- data/lib/spatio-sdk/models/get_chat_user_response.rb +190 -0
- data/lib/spatio-sdk/models/get_domain_logo200_response.rb +190 -0
- data/lib/spatio-sdk/models/get_email_response.rb +190 -0
- data/lib/spatio-sdk/models/get_thread_response.rb +190 -0
- data/lib/spatio-sdk/models/inbox_counts.rb +216 -0
- data/lib/spatio-sdk/models/inbox_item.rb +275 -0
- data/lib/spatio-sdk/models/inbox_list_response.rb +218 -0
- data/lib/spatio-sdk/models/init_chunked_upload_request.rb +273 -0
- data/lib/spatio-sdk/models/init_chunked_upload_response.rb +273 -0
- data/lib/spatio-sdk/models/install_connection_request.rb +184 -0
- data/lib/spatio-sdk/models/introspection_response.rb +219 -0
- data/lib/spatio-sdk/models/issue_collaboration_token200_response.rb +254 -0
- data/lib/spatio-sdk/models/issue_collaboration_token_request.rb +148 -0
- data/lib/spatio-sdk/models/jwk.rb +297 -0
- data/lib/spatio-sdk/models/jwks.rb +166 -0
- data/lib/spatio-sdk/models/key_binding.rb +276 -0
- data/lib/spatio-sdk/models/key_binding_list_response.rb +166 -0
- data/lib/spatio-sdk/models/label.rb +244 -0
- data/lib/spatio-sdk/models/label_color.rb +190 -0
- data/lib/spatio-sdk/models/link_repo_task_request.rb +164 -0
- data/lib/spatio-sdk/models/list_calendar_events200_response.rb +202 -0
- data/lib/spatio-sdk/models/list_channels_response.rb +212 -0
- data/lib/spatio-sdk/models/list_chat_users_response.rb +211 -0
- data/lib/spatio-sdk/models/list_drafts_response.rb +227 -0
- data/lib/spatio-sdk/models/list_emails_response.rb +213 -0
- data/lib/spatio-sdk/models/list_events_data.rb +196 -0
- data/lib/spatio-sdk/models/list_labels_response.rb +192 -0
- data/lib/spatio-sdk/models/list_messages_response.rb +211 -0
- data/lib/spatio-sdk/models/meeting_room.rb +191 -0
- data/lib/spatio-sdk/models/move_block_request.rb +175 -0
- data/lib/spatio-sdk/models/move_emails_request.rb +166 -0
- data/lib/spatio-sdk/models/move_file_request.rb +149 -0
- data/lib/spatio-sdk/models/move_file_response.rb +164 -0
- data/lib/spatio-sdk/models/note.rb +380 -0
- data/lib/spatio-sdk/models/note_list_envelope.rb +195 -0
- data/lib/spatio-sdk/models/o_auth_error.rb +197 -0
- data/lib/spatio-sdk/models/organization.rb +346 -0
- data/lib/spatio-sdk/models/organization_detail_legacy.rb +377 -0
- data/lib/spatio-sdk/models/organization_invitation.rb +343 -0
- data/lib/spatio-sdk/models/organization_invitation_list_response.rb +166 -0
- data/lib/spatio-sdk/models/organization_list_response.rb +166 -0
- data/lib/spatio-sdk/models/organization_member.rb +288 -0
- data/lib/spatio-sdk/models/organization_member_invited_by.rb +105 -0
- data/lib/spatio-sdk/models/organization_member_list_response.rb +192 -0
- data/lib/spatio-sdk/models/organization_workspaces_inner.rb +216 -0
- data/lib/spatio-sdk/models/password_required_error.rb +218 -0
- data/lib/spatio-sdk/models/pat_list_response.rb +177 -0
- data/lib/spatio-sdk/models/pat_scopes_response.rb +166 -0
- data/lib/spatio-sdk/models/personal_access_token.rb +241 -0
- data/lib/spatio-sdk/models/preconfigured_agent.rb +236 -0
- data/lib/spatio-sdk/models/presentation.rb +308 -0
- data/lib/spatio-sdk/models/presentation_list_envelope.rb +194 -0
- data/lib/spatio-sdk/models/propose_recommendation_request.rb +211 -0
- data/lib/spatio-sdk/models/public_invitation_payload.rb +365 -0
- data/lib/spatio-sdk/models/quota_exceeded_error.rb +183 -0
- data/lib/spatio-sdk/models/recommendation.rb +300 -0
- data/lib/spatio-sdk/models/recommendation_list_response.rb +166 -0
- data/lib/spatio-sdk/models/record.rb +231 -0
- data/lib/spatio-sdk/models/record_list_response.rb +184 -0
- data/lib/spatio-sdk/models/record_type.rb +256 -0
- data/lib/spatio-sdk/models/record_type_list_response.rb +166 -0
- data/lib/spatio-sdk/models/refresh_connection_request.rb +173 -0
- data/lib/spatio-sdk/models/reminder.rb +213 -0
- data/lib/spatio-sdk/models/reminder_method.rb +42 -0
- data/lib/spatio-sdk/models/reply_email_request.rb +227 -0
- data/lib/spatio-sdk/models/revoke_other_sessions_response.rb +148 -0
- data/lib/spatio-sdk/models/rich_text_object.rb +216 -0
- data/lib/spatio-sdk/models/routine.rb +240 -0
- data/lib/spatio-sdk/models/routine_list_response.rb +166 -0
- data/lib/spatio-sdk/models/routine_run.rb +221 -0
- data/lib/spatio-sdk/models/routine_run_complete_request.rb +158 -0
- data/lib/spatio-sdk/models/routine_run_list_response.rb +166 -0
- data/lib/spatio-sdk/models/routine_run_progress_request.rb +158 -0
- data/lib/spatio-sdk/models/row.rb +194 -0
- data/lib/spatio-sdk/models/row_list.rb +192 -0
- data/lib/spatio-sdk/models/save_message_request.rb +201 -0
- data/lib/spatio-sdk/models/search_emails_response.rb +212 -0
- data/lib/spatio-sdk/models/search_files_response.rb +229 -0
- data/lib/spatio-sdk/models/send_chat_message_request.rb +221 -0
- data/lib/spatio-sdk/models/send_chat_message_response.rb +243 -0
- data/lib/spatio-sdk/models/send_email_request.rb +289 -0
- data/lib/spatio-sdk/models/send_email_response.rb +234 -0
- data/lib/spatio-sdk/models/session.rb +254 -0
- data/lib/spatio-sdk/models/session_list_response.rb +166 -0
- data/lib/spatio-sdk/models/share_settings.rb +221 -0
- data/lib/spatio-sdk/models/sheet.rb +446 -0
- data/lib/spatio-sdk/models/sheet_list_envelope.rb +195 -0
- data/lib/spatio-sdk/models/sign_in_methods.rb +201 -0
- data/lib/spatio-sdk/models/sign_in_methods_providers_inner.rb +193 -0
- data/lib/spatio-sdk/models/slide.rb +370 -0
- data/lib/spatio-sdk/models/slide_element.rb +455 -0
- data/lib/spatio-sdk/models/slide_element_list.rb +192 -0
- data/lib/spatio-sdk/models/slide_list.rb +192 -0
- data/lib/spatio-sdk/models/spatio_call.rb +259 -0
- data/lib/spatio-sdk/models/spatio_connection.rb +260 -0
- data/lib/spatio-sdk/models/spatio_event.rb +686 -0
- data/lib/spatio-sdk/models/spatio_file.rb +372 -0
- data/lib/spatio-sdk/models/spatio_thread.rb +212 -0
- data/lib/spatio-sdk/models/success_flag.rb +165 -0
- data/lib/spatio-sdk/models/task.rb +471 -0
- data/lib/spatio-sdk/models/task_comment.rb +294 -0
- data/lib/spatio-sdk/models/task_comment_author.rb +226 -0
- data/lib/spatio-sdk/models/task_comment_list.rb +192 -0
- data/lib/spatio-sdk/models/task_comment_mutation_response.rb +190 -0
- data/lib/spatio-sdk/models/task_comment_request.rb +164 -0
- data/lib/spatio-sdk/models/task_list_envelope.rb +195 -0
- data/lib/spatio-sdk/models/task_providers_info.rb +194 -0
- data/lib/spatio-sdk/models/task_providers_info_platform.rb +190 -0
- data/lib/spatio-sdk/models/text_annotations.rb +278 -0
- data/lib/spatio-sdk/models/token_response.rb +246 -0
- data/lib/spatio-sdk/models/update_account_request.rb +158 -0
- data/lib/spatio-sdk/models/update_agent_request.rb +205 -0
- data/lib/spatio-sdk/models/update_app_request.rb +174 -0
- data/lib/spatio-sdk/models/update_block_request.rb +168 -0
- data/lib/spatio-sdk/models/update_cell_request.rb +151 -0
- data/lib/spatio-sdk/models/update_comment_request.rb +157 -0
- data/lib/spatio-sdk/models/update_contact_category_request.rb +165 -0
- data/lib/spatio-sdk/models/update_contact_request.rb +212 -0
- data/lib/spatio-sdk/models/update_conversation_request.rb +183 -0
- data/lib/spatio-sdk/models/update_draft_request.rb +219 -0
- data/lib/spatio-sdk/models/update_email_folder_request.rb +147 -0
- data/lib/spatio-sdk/models/update_email_request.rb +188 -0
- data/lib/spatio-sdk/models/update_email_response.rb +190 -0
- data/lib/spatio-sdk/models/update_event_request.rb +236 -0
- data/lib/spatio-sdk/models/update_file_request.rb +169 -0
- data/lib/spatio-sdk/models/update_key_binding_request.rb +175 -0
- data/lib/spatio-sdk/models/update_message_metadata_request.rb +175 -0
- data/lib/spatio-sdk/models/update_note_request.rb +205 -0
- data/lib/spatio-sdk/models/update_organization_member_request.rb +188 -0
- data/lib/spatio-sdk/models/update_organization_request.rb +166 -0
- data/lib/spatio-sdk/models/update_participant_state_request.rb +166 -0
- data/lib/spatio-sdk/models/update_pat_request.rb +156 -0
- data/lib/spatio-sdk/models/update_presentation_request.rb +166 -0
- data/lib/spatio-sdk/models/update_recommendation_status_request.rb +188 -0
- data/lib/spatio-sdk/models/update_record_request.rb +169 -0
- data/lib/spatio-sdk/models/update_record_type_request.rb +185 -0
- data/lib/spatio-sdk/models/update_routine_request.rb +187 -0
- data/lib/spatio-sdk/models/update_row_request.rb +167 -0
- data/lib/spatio-sdk/models/update_sheet_request.rb +205 -0
- data/lib/spatio-sdk/models/update_slide_element_request.rb +213 -0
- data/lib/spatio-sdk/models/update_slide_request.rb +211 -0
- data/lib/spatio-sdk/models/update_task_request.rb +260 -0
- data/lib/spatio-sdk/models/update_workspace_member_request.rb +188 -0
- data/lib/spatio-sdk/models/update_workspace_request.rb +176 -0
- data/lib/spatio-sdk/models/upload_chunked_block_response.rb +243 -0
- data/lib/spatio-sdk/models/upload_file_base64_request.rb +265 -0
- data/lib/spatio-sdk/models/user_info_response.rb +237 -0
- data/lib/spatio-sdk/models/validate_key_binding_request.rb +201 -0
- data/lib/spatio-sdk/models/validate_key_binding_response.rb +175 -0
- data/lib/spatio-sdk/models/workspace.rb +321 -0
- data/lib/spatio-sdk/models/workspace_envelope.rb +164 -0
- data/lib/spatio-sdk/models/workspace_invitation.rb +324 -0
- data/lib/spatio-sdk/models/workspace_invitation_list_response.rb +166 -0
- data/lib/spatio-sdk/models/workspace_list_response.rb +175 -0
- data/lib/spatio-sdk/models/workspace_member.rb +278 -0
- data/lib/spatio-sdk/models/workspace_member_list_response.rb +175 -0
- data/lib/spatio-sdk/models/workspace_organization.rb +166 -0
- data/lib/spatio-sdk/models/write_app_file_request.rb +190 -0
- data/lib/spatio-sdk/version.rb +15 -0
- data/lib/spatio-sdk.rb +408 -0
- data/spatio-sdk.gemspec +41 -0
- data/spec/api/account_api_spec.rb +158 -0
- data/spec/api/actions_api_spec.rb +99 -0
- data/spec/api/agents_api_spec.rb +176 -0
- data/spec/api/apps_api_spec.rb +198 -0
- data/spec/api/calendar_api_spec.rb +217 -0
- data/spec/api/calls_api_spec.rb +378 -0
- data/spec/api/channels_api_spec.rb +236 -0
- data/spec/api/connections_api_spec.rb +154 -0
- data/spec/api/contacts_api_spec.rb +172 -0
- data/spec/api/conversations_api_spec.rb +140 -0
- data/spec/api/direct_messages_api_spec.rb +420 -0
- data/spec/api/files_api_spec.rb +494 -0
- data/spec/api/folders_api_spec.rb +102 -0
- data/spec/api/inbox_api_spec.rb +103 -0
- data/spec/api/keybindings_api_spec.rb +99 -0
- data/spec/api/logos_api_spec.rb +68 -0
- data/spec/api/mail_api_spec.rb +701 -0
- data/spec/api/misc_api_spec.rb +228 -0
- data/spec/api/models_api_spec.rb +112 -0
- data/spec/api/native_dm_api_spec.rb +276 -0
- data/spec/api/navigation_api_spec.rb +45 -0
- data/spec/api/notes_api_spec.rb +474 -0
- data/spec/api/notifications_api_spec.rb +56 -0
- data/spec/api/o_auth_api_spec.rb +161 -0
- data/spec/api/organizations_api_spec.rb +367 -0
- data/spec/api/personal_access_tokens_api_spec.rb +137 -0
- data/spec/api/platforms_api_spec.rb +204 -0
- data/spec/api/realtime_api_spec.rb +47 -0
- data/spec/api/recommendations_api_spec.rb +93 -0
- data/spec/api/records_api_spec.rb +127 -0
- data/spec/api/repo_api_spec.rb +402 -0
- data/spec/api/resources_api_spec.rb +73 -0
- data/spec/api/routines_api_spec.rb +149 -0
- data/spec/api/search_api_spec.rb +47 -0
- data/spec/api/settings_api_spec.rb +154 -0
- data/spec/api/sheets_api_spec.rb +184 -0
- data/spec/api/slides_api_spec.rb +355 -0
- data/spec/api/tasks_api_spec.rb +355 -0
- data/spec/api/terminal_api_spec.rb +90 -0
- data/spec/api/workspaces_api_spec.rb +184 -0
- data/spec/models/accept_organization_invitation_request_spec.rb +36 -0
- data/spec/models/account_choice_spec.rb +48 -0
- data/spec/models/account_error_spec.rb +42 -0
- data/spec/models/account_list_response_spec.rb +48 -0
- data/spec/models/account_plan_spec.rb +54 -0
- data/spec/models/account_status_spec.rb +70 -0
- data/spec/models/account_tier_details_spec.rb +120 -0
- data/spec/models/account_usage_spec.rb +78 -0
- data/spec/models/action_descriptor_spec.rb +78 -0
- data/spec/models/add_organization_member_request_spec.rb +52 -0
- data/spec/models/add_workspace_member_request_spec.rb +46 -0
- data/spec/models/agent_conversation_list_response_spec.rb +42 -0
- data/spec/models/agent_conversation_spec.rb +66 -0
- data/spec/models/agent_list_response_spec.rb +54 -0
- data/spec/models/agent_message_list_response_spec.rb +42 -0
- data/spec/models/agent_message_spec.rb +66 -0
- data/spec/models/agent_session_context_spec.rb +54 -0
- data/spec/models/agent_spec.rb +102 -0
- data/spec/models/agent_task_usage_spec.rb +60 -0
- data/spec/models/ambiguous_account_error_spec.rb +48 -0
- data/spec/models/api_error_spec.rb +42 -0
- data/spec/models/app_file_content_response_spec.rb +42 -0
- data/spec/models/app_file_list_response_spec.rb +36 -0
- data/spec/models/app_list_response_spec.rb +42 -0
- data/spec/models/app_spec.rb +78 -0
- data/spec/models/assign_contact_category_request_spec.rb +36 -0
- data/spec/models/attachment_input_spec.rb +54 -0
- data/spec/models/attachment_meta_spec.rb +54 -0
- data/spec/models/attachment_spec.rb +60 -0
- data/spec/models/attendee_role_spec.rb +30 -0
- data/spec/models/attendee_spec.rb +72 -0
- data/spec/models/attendee_status_spec.rb +30 -0
- data/spec/models/block_content_spec.rb +96 -0
- data/spec/models/block_list_response_spec.rb +42 -0
- data/spec/models/block_spec.rb +90 -0
- data/spec/models/block_type_spec.rb +30 -0
- data/spec/models/bulk_archive_request_spec.rb +42 -0
- data/spec/models/bulk_archive_response_failed_inner_spec.rb +42 -0
- data/spec/models/bulk_archive_response_spec.rb +48 -0
- data/spec/models/bulk_delete_emails_request_spec.rb +48 -0
- data/spec/models/bulk_delete_emails_response_spec.rb +48 -0
- data/spec/models/bulk_delete_files_request_spec.rb +54 -0
- data/spec/models/bulk_delete_tasks_request_spec.rb +54 -0
- data/spec/models/bulk_delete_tasks_response_failed_inner_spec.rb +42 -0
- data/spec/models/bulk_delete_tasks_response_spec.rb +54 -0
- data/spec/models/bulk_files_response_failed_inner_spec.rb +42 -0
- data/spec/models/bulk_files_response_spec.rb +54 -0
- data/spec/models/bulk_mark_read_request_spec.rb +48 -0
- data/spec/models/bulk_mark_read_response_failed_inner_spec.rb +42 -0
- data/spec/models/bulk_mark_read_response_spec.rb +42 -0
- data/spec/models/bulk_move_files_request_spec.rb +60 -0
- data/spec/models/bulk_update_tasks_request_spec.rb +54 -0
- data/spec/models/bulk_update_tasks_response_spec.rb +54 -0
- data/spec/models/calendar_account_error_spec.rb +54 -0
- data/spec/models/calendar_capabilities_response_spec.rb +48 -0
- data/spec/models/calendar_operation_result_spec.rb +54 -0
- data/spec/models/calendar_provider_info_spec.rb +60 -0
- data/spec/models/calendar_providers_info_spec.rb +36 -0
- data/spec/models/calendar_sync_response_spec.rb +60 -0
- data/spec/models/call_list_response_spec.rb +42 -0
- data/spec/models/call_recording_list_response_spec.rb +36 -0
- data/spec/models/call_recording_spec.rb +72 -0
- data/spec/models/cell_spec.rb +48 -0
- data/spec/models/change_password_request_spec.rb +42 -0
- data/spec/models/channel_membership_request_spec.rb +36 -0
- data/spec/models/channel_spec.rb +96 -0
- data/spec/models/chat_action_definition_spec.rb +84 -0
- data/spec/models/chat_actions_list_spec.rb +36 -0
- data/spec/models/chat_message_spec.rb +90 -0
- data/spec/models/chat_user_spec.rb +84 -0
- data/spec/models/chunked_file_manifest_spec.rb +84 -0
- data/spec/models/client_registration_request_spec.rb +94 -0
- data/spec/models/client_registration_response_spec.rb +96 -0
- data/spec/models/comment_author_spec.rb +54 -0
- data/spec/models/comment_list_response_spec.rb +42 -0
- data/spec/models/comment_mutation_response_spec.rb +42 -0
- data/spec/models/comment_response_spec.rb +36 -0
- data/spec/models/comment_spec.rb +78 -0
- data/spec/models/commit_chunked_upload_request_spec.rb +36 -0
- data/spec/models/commit_chunked_upload_response_spec.rb +90 -0
- data/spec/models/conference_data_spec.rb +66 -0
- data/spec/models/connected_app_item_spec.rb +84 -0
- data/spec/models/connected_apps_list_response_spec.rb +36 -0
- data/spec/models/connection_account_list_response_spec.rb +48 -0
- data/spec/models/connection_list_response_spec.rb +42 -0
- data/spec/models/consume_agent_task_response_spec.rb +60 -0
- data/spec/models/contact_category_list_response_spec.rb +36 -0
- data/spec/models/contact_category_spec.rb +60 -0
- data/spec/models/contact_list_response_spec.rb +48 -0
- data/spec/models/contact_provider_list_response_spec.rb +36 -0
- data/spec/models/contact_provider_spec.rb +60 -0
- data/spec/models/contact_spec.rb +120 -0
- data/spec/models/conversation_message_spec.rb +66 -0
- data/spec/models/conversation_spec.rb +108 -0
- data/spec/models/core_action_list_response_spec.rb +42 -0
- data/spec/models/core_action_spec.rb +72 -0
- data/spec/models/create_agent_conversation_request_spec.rb +48 -0
- data/spec/models/create_agent_message_request_spec.rb +48 -0
- data/spec/models/create_agent_request_spec.rb +72 -0
- data/spec/models/create_app_request_spec.rb +60 -0
- data/spec/models/create_block_request_spec.rb +60 -0
- data/spec/models/create_calendar_event201_response_spec.rb +54 -0
- data/spec/models/create_call_request_spec.rb +54 -0
- data/spec/models/create_channel_request_spec.rb +54 -0
- data/spec/models/create_channel_response_spec.rb +42 -0
- data/spec/models/create_comment_request_spec.rb +54 -0
- data/spec/models/create_contact_category_request_spec.rb +48 -0
- data/spec/models/create_contact_request_spec.rb +78 -0
- data/spec/models/create_conversation_request_spec.rb +60 -0
- data/spec/models/create_draft_request_spec.rb +96 -0
- data/spec/models/create_email_folder_request_spec.rb +42 -0
- data/spec/models/create_event_request_spec.rb +64 -0
- data/spec/models/create_folder_request_spec.rb +60 -0
- data/spec/models/create_label_request_spec.rb +60 -0
- data/spec/models/create_label_response_spec.rb +42 -0
- data/spec/models/create_meeting_room_request_spec.rb +42 -0
- data/spec/models/create_note400_response_spec.rb +32 -0
- data/spec/models/create_note_request_spec.rb +78 -0
- data/spec/models/create_organization_invitation_request_spec.rb +52 -0
- data/spec/models/create_organization_request_spec.rb +66 -0
- data/spec/models/create_pat_request_spec.rb +60 -0
- data/spec/models/create_pat_response_spec.rb +42 -0
- data/spec/models/create_presentation_request_spec.rb +60 -0
- data/spec/models/create_record_request_spec.rb +60 -0
- data/spec/models/create_record_type_request_spec.rb +66 -0
- data/spec/models/create_routine_request_spec.rb +60 -0
- data/spec/models/create_row_request_spec.rb +42 -0
- data/spec/models/create_sheet_request_spec.rb +72 -0
- data/spec/models/create_slide_element_request_spec.rb +78 -0
- data/spec/models/create_slide_request_spec.rb +84 -0
- data/spec/models/create_task_request_spec.rb +118 -0
- data/spec/models/create_workspace_invitation_request_spec.rb +46 -0
- data/spec/models/create_workspace_request_spec.rb +54 -0
- data/spec/models/disconnect_connection_request_spec.rb +42 -0
- data/spec/models/discovery_document_spec.rb +138 -0
- data/spec/models/dm_attach_request_spec.rb +84 -0
- data/spec/models/dm_forward_request_spec.rb +48 -0
- data/spec/models/dm_mark_read_request_spec.rb +42 -0
- data/spec/models/dm_message_envelope_spec.rb +36 -0
- data/spec/models/dm_mute_request_spec.rb +48 -0
- data/spec/models/dm_mute_response_spec.rb +36 -0
- data/spec/models/dm_pinned_list_spec.rb +36 -0
- data/spec/models/dm_reaction_request_spec.rb +42 -0
- data/spec/models/dm_reaction_response_spec.rb +36 -0
- data/spec/models/dm_search_results_spec.rb +36 -0
- data/spec/models/dm_set_draft_request_spec.rb +42 -0
- data/spec/models/dm_thread_reply_request_spec.rb +42 -0
- data/spec/models/download_file_response_spec.rb +42 -0
- data/spec/models/draft_response_spec.rb +42 -0
- data/spec/models/draft_spec.rb +102 -0
- data/spec/models/email_folder_list_response_spec.rb +36 -0
- data/spec/models/email_folder_spec.rb +60 -0
- data/spec/models/email_spec.rb +150 -0
- data/spec/models/enable_share_request_spec.rb +42 -0
- data/spec/models/execute_action_request_spec.rb +48 -0
- data/spec/models/execute_action_response_spec.rb +48 -0
- data/spec/models/execute_chat_action_request_spec.rb +42 -0
- data/spec/models/execute_chat_action_response_spec.rb +42 -0
- data/spec/models/export_pdf_request_rasterized_slides_inner_spec.rb +42 -0
- data/spec/models/export_pdf_request_spec.rb +42 -0
- data/spec/models/export_pdfr2_response_spec.rb +58 -0
- data/spec/models/extract_text_result_spec.rb +54 -0
- data/spec/models/federated_search200_response_items_inner_spec.rb +96 -0
- data/spec/models/federated_search200_response_per_platform_value_spec.rb +42 -0
- data/spec/models/federated_search200_response_spec.rb +66 -0
- data/spec/models/federated_search_request_spec.rb +82 -0
- data/spec/models/file_list_envelope_spec.rb +42 -0
- data/spec/models/files_and_folders_response_spec.rb +66 -0
- data/spec/models/folder_list_envelope_spec.rb +42 -0
- data/spec/models/folder_spec.rb +78 -0
- data/spec/models/get_chat_user_response_spec.rb +42 -0
- data/spec/models/get_domain_logo200_response_spec.rb +42 -0
- data/spec/models/get_email_response_spec.rb +42 -0
- data/spec/models/get_thread_response_spec.rb +42 -0
- data/spec/models/inbox_counts_spec.rb +48 -0
- data/spec/models/inbox_item_spec.rb +96 -0
- data/spec/models/inbox_list_response_spec.rb +48 -0
- data/spec/models/init_chunked_upload_request_spec.rb +72 -0
- data/spec/models/init_chunked_upload_response_spec.rb +60 -0
- data/spec/models/install_connection_request_spec.rb +48 -0
- data/spec/models/introspection_response_spec.rb +72 -0
- data/spec/models/issue_collaboration_token200_response_spec.rb +60 -0
- data/spec/models/issue_collaboration_token_request_spec.rb +36 -0
- data/spec/models/jwk_spec.rb +66 -0
- data/spec/models/jwks_spec.rb +36 -0
- data/spec/models/key_binding_list_response_spec.rb +36 -0
- data/spec/models/key_binding_spec.rb +96 -0
- data/spec/models/label_color_spec.rb +42 -0
- data/spec/models/label_spec.rb +66 -0
- data/spec/models/link_repo_task_request_spec.rb +36 -0
- data/spec/models/list_calendar_events200_response_spec.rb +54 -0
- data/spec/models/list_channels_response_spec.rb +54 -0
- data/spec/models/list_chat_users_response_spec.rb +54 -0
- data/spec/models/list_drafts_response_spec.rb +54 -0
- data/spec/models/list_emails_response_spec.rb +54 -0
- data/spec/models/list_events_data_spec.rb +54 -0
- data/spec/models/list_labels_response_spec.rb +42 -0
- data/spec/models/list_messages_response_spec.rb +54 -0
- data/spec/models/meeting_room_spec.rb +54 -0
- data/spec/models/move_block_request_spec.rb +42 -0
- data/spec/models/move_emails_request_spec.rb +36 -0
- data/spec/models/move_file_request_spec.rb +36 -0
- data/spec/models/move_file_response_spec.rb +36 -0
- data/spec/models/note_list_envelope_spec.rb +42 -0
- data/spec/models/note_spec.rb +114 -0
- data/spec/models/o_auth_error_spec.rb +46 -0
- data/spec/models/organization_detail_legacy_spec.rb +96 -0
- data/spec/models/organization_invitation_list_response_spec.rb +36 -0
- data/spec/models/organization_invitation_spec.rb +100 -0
- data/spec/models/organization_list_response_spec.rb +36 -0
- data/spec/models/organization_member_invited_by_spec.rb +32 -0
- data/spec/models/organization_member_list_response_spec.rb +42 -0
- data/spec/models/organization_member_spec.rb +70 -0
- data/spec/models/organization_spec.rb +96 -0
- data/spec/models/organization_workspaces_inner_spec.rb +48 -0
- data/spec/models/password_required_error_spec.rb +54 -0
- data/spec/models/pat_list_response_spec.rb +42 -0
- data/spec/models/pat_scopes_response_spec.rb +36 -0
- data/spec/models/personal_access_token_spec.rb +84 -0
- data/spec/models/preconfigured_agent_spec.rb +72 -0
- data/spec/models/presentation_list_envelope_spec.rb +42 -0
- data/spec/models/presentation_spec.rb +96 -0
- data/spec/models/propose_recommendation_request_spec.rb +66 -0
- data/spec/models/public_invitation_payload_spec.rb +110 -0
- data/spec/models/quota_exceeded_error_spec.rb +42 -0
- data/spec/models/recommendation_list_response_spec.rb +36 -0
- data/spec/models/recommendation_spec.rb +100 -0
- data/spec/models/record_list_response_spec.rb +48 -0
- data/spec/models/record_spec.rb +78 -0
- data/spec/models/record_type_list_response_spec.rb +36 -0
- data/spec/models/record_type_spec.rb +84 -0
- data/spec/models/refresh_connection_request_spec.rb +42 -0
- data/spec/models/reminder_method_spec.rb +30 -0
- data/spec/models/reminder_spec.rb +42 -0
- data/spec/models/reply_email_request_spec.rb +72 -0
- data/spec/models/revoke_other_sessions_response_spec.rb +36 -0
- data/spec/models/rich_text_object_spec.rb +58 -0
- data/spec/models/routine_list_response_spec.rb +36 -0
- data/spec/models/routine_run_complete_request_spec.rb +42 -0
- data/spec/models/routine_run_list_response_spec.rb +36 -0
- data/spec/models/routine_run_progress_request_spec.rb +42 -0
- data/spec/models/routine_run_spec.rb +72 -0
- data/spec/models/routine_spec.rb +84 -0
- data/spec/models/row_list_spec.rb +42 -0
- data/spec/models/row_spec.rb +42 -0
- data/spec/models/save_message_request_spec.rb +48 -0
- data/spec/models/search_emails_response_spec.rb +54 -0
- data/spec/models/search_files_response_spec.rb +54 -0
- data/spec/models/send_chat_message_request_spec.rb +60 -0
- data/spec/models/send_chat_message_response_spec.rb +66 -0
- data/spec/models/send_email_request_spec.rb +90 -0
- data/spec/models/send_email_response_spec.rb +60 -0
- data/spec/models/session_list_response_spec.rb +36 -0
- data/spec/models/session_spec.rb +96 -0
- data/spec/models/share_settings_spec.rb +60 -0
- data/spec/models/sheet_list_envelope_spec.rb +42 -0
- data/spec/models/sheet_spec.rb +126 -0
- data/spec/models/sign_in_methods_providers_inner_spec.rb +54 -0
- data/spec/models/sign_in_methods_spec.rb +48 -0
- data/spec/models/slide_element_list_spec.rb +42 -0
- data/spec/models/slide_element_spec.rb +102 -0
- data/spec/models/slide_list_spec.rb +42 -0
- data/spec/models/slide_spec.rb +114 -0
- data/spec/models/spatio_call_spec.rb +96 -0
- data/spec/models/spatio_connection_spec.rb +96 -0
- data/spec/models/spatio_event_spec.rb +240 -0
- data/spec/models/spatio_file_spec.rb +102 -0
- data/spec/models/spatio_thread_spec.rb +54 -0
- data/spec/models/success_flag_spec.rb +36 -0
- data/spec/models/task_comment_author_spec.rb +54 -0
- data/spec/models/task_comment_list_spec.rb +42 -0
- data/spec/models/task_comment_mutation_response_spec.rb +42 -0
- data/spec/models/task_comment_request_spec.rb +36 -0
- data/spec/models/task_comment_spec.rb +66 -0
- data/spec/models/task_list_envelope_spec.rb +42 -0
- data/spec/models/task_providers_info_platform_spec.rb +42 -0
- data/spec/models/task_providers_info_spec.rb +42 -0
- data/spec/models/task_spec.rb +160 -0
- data/spec/models/text_annotations_spec.rb +66 -0
- data/spec/models/token_response_spec.rb +66 -0
- data/spec/models/update_account_request_spec.rb +42 -0
- data/spec/models/update_agent_request_spec.rb +72 -0
- data/spec/models/update_app_request_spec.rb +54 -0
- data/spec/models/update_block_request_spec.rb +48 -0
- data/spec/models/update_cell_request_spec.rb +36 -0
- data/spec/models/update_comment_request_spec.rb +42 -0
- data/spec/models/update_contact_category_request_spec.rb +48 -0
- data/spec/models/update_contact_request_spec.rb +78 -0
- data/spec/models/update_conversation_request_spec.rb +60 -0
- data/spec/models/update_draft_request_spec.rb +78 -0
- data/spec/models/update_email_folder_request_spec.rb +36 -0
- data/spec/models/update_email_request_spec.rb +60 -0
- data/spec/models/update_email_response_spec.rb +42 -0
- data/spec/models/update_event_request_spec.rb +52 -0
- data/spec/models/update_file_request_spec.rb +48 -0
- data/spec/models/update_key_binding_request_spec.rb +42 -0
- data/spec/models/update_message_metadata_request_spec.rb +42 -0
- data/spec/models/update_note_request_spec.rb +72 -0
- data/spec/models/update_organization_member_request_spec.rb +40 -0
- data/spec/models/update_organization_request_spec.rb +48 -0
- data/spec/models/update_participant_state_request_spec.rb +48 -0
- data/spec/models/update_pat_request_spec.rb +42 -0
- data/spec/models/update_presentation_request_spec.rb +48 -0
- data/spec/models/update_recommendation_status_request_spec.rb +40 -0
- data/spec/models/update_record_request_spec.rb +48 -0
- data/spec/models/update_record_type_request_spec.rb +60 -0
- data/spec/models/update_routine_request_spec.rb +60 -0
- data/spec/models/update_row_request_spec.rb +36 -0
- data/spec/models/update_sheet_request_spec.rb +72 -0
- data/spec/models/update_slide_element_request_spec.rb +78 -0
- data/spec/models/update_slide_request_spec.rb +78 -0
- data/spec/models/update_task_request_spec.rb +88 -0
- data/spec/models/update_workspace_member_request_spec.rb +40 -0
- data/spec/models/update_workspace_request_spec.rb +54 -0
- data/spec/models/upload_chunked_block_response_spec.rb +54 -0
- data/spec/models/upload_file_base64_request_spec.rb +78 -0
- data/spec/models/user_info_response_spec.rb +84 -0
- data/spec/models/validate_key_binding_request_spec.rb +48 -0
- data/spec/models/validate_key_binding_response_spec.rb +42 -0
- data/spec/models/workspace_envelope_spec.rb +36 -0
- data/spec/models/workspace_invitation_list_response_spec.rb +36 -0
- data/spec/models/workspace_invitation_spec.rb +88 -0
- data/spec/models/workspace_list_response_spec.rb +42 -0
- data/spec/models/workspace_member_list_response_spec.rb +42 -0
- data/spec/models/workspace_member_spec.rb +76 -0
- data/spec/models/workspace_organization_spec.rb +48 -0
- data/spec/models/workspace_spec.rb +114 -0
- data/spec/models/write_app_file_request_spec.rb +42 -0
- data/spec/spec_helper.rb +111 -0
- metadata +1597 -0
|
@@ -0,0 +1,1913 @@
|
|
|
1
|
+
=begin
|
|
2
|
+
#SpatioAPI
|
|
3
|
+
|
|
4
|
+
#The REST API that owns every resource in your Spatio workspace: notes, sheets, slides, tasks, calendar events, mail, chat, files, and contacts. SpatioMCP wraps this API; Spatio Desktop reads from it. You can call it directly from your own code. All requests must be authenticated with a Personal Access Token (`Authorization: Bearer pat_...`) or an OAuth 2.1 access token, and use HTTPS. Official SDKs (MIT, generated from this spec on every release): - TypeScript: https://github.com/spatio-labs/spatio-ts (`npm install @spatio-labs/spatio-ts`) - Python: https://github.com/spatio-labs/spatio-py (`pip install spatio-sdk`) - Go: https://github.com/spatio-labs/spatio-go (`go get github.com/spatio-labs/spatio-go`) This specification is generated from the platform-service Go source on every push to `main`. The spec, not hand-written documentation, is the source of truth: server stubs and SDKs are generated from it, and any drift between the spec and the running service fails CI.
|
|
5
|
+
|
|
6
|
+
The version of the OpenAPI document: v1
|
|
7
|
+
Contact: hello@spatio.app
|
|
8
|
+
Generated by: https://openapi-generator.tech
|
|
9
|
+
Generator version: 7.22.0
|
|
10
|
+
|
|
11
|
+
=end
|
|
12
|
+
|
|
13
|
+
require 'cgi'
|
|
14
|
+
|
|
15
|
+
module Spatio
|
|
16
|
+
class OrganizationsApi
|
|
17
|
+
attr_accessor :api_client
|
|
18
|
+
|
|
19
|
+
def initialize(api_client = ApiClient.default)
|
|
20
|
+
@api_client = api_client
|
|
21
|
+
end
|
|
22
|
+
# Accept an invitation to this organization.
|
|
23
|
+
# @param org [String]
|
|
24
|
+
# @param accept_organization_invitation_request [AcceptOrganizationInvitationRequest]
|
|
25
|
+
# @param [Hash] opts the optional parameters
|
|
26
|
+
# @return [Hash<String, Object>]
|
|
27
|
+
def accept_organization_invitation(org, accept_organization_invitation_request, opts = {})
|
|
28
|
+
data, _status_code, _headers = accept_organization_invitation_with_http_info(org, accept_organization_invitation_request, opts)
|
|
29
|
+
data
|
|
30
|
+
end
|
|
31
|
+
|
|
32
|
+
# Accept an invitation to this organization.
|
|
33
|
+
# @param org [String]
|
|
34
|
+
# @param accept_organization_invitation_request [AcceptOrganizationInvitationRequest]
|
|
35
|
+
# @param [Hash] opts the optional parameters
|
|
36
|
+
# @return [Array<(Hash<String, Object>, Integer, Hash)>] Hash<String, Object> data, response status code and response headers
|
|
37
|
+
def accept_organization_invitation_with_http_info(org, accept_organization_invitation_request, opts = {})
|
|
38
|
+
if @api_client.config.debugging
|
|
39
|
+
@api_client.config.logger.debug 'Calling API: OrganizationsApi.accept_organization_invitation ...'
|
|
40
|
+
end
|
|
41
|
+
# verify the required parameter 'org' is set
|
|
42
|
+
if @api_client.config.client_side_validation && org.nil?
|
|
43
|
+
fail ArgumentError, "Missing the required parameter 'org' when calling OrganizationsApi.accept_organization_invitation"
|
|
44
|
+
end
|
|
45
|
+
# verify the required parameter 'accept_organization_invitation_request' is set
|
|
46
|
+
if @api_client.config.client_side_validation && accept_organization_invitation_request.nil?
|
|
47
|
+
fail ArgumentError, "Missing the required parameter 'accept_organization_invitation_request' when calling OrganizationsApi.accept_organization_invitation"
|
|
48
|
+
end
|
|
49
|
+
# resource path
|
|
50
|
+
local_var_path = '/v1/organizations/{org}/accept-invitation'.sub('{org}', CGI.escape(org.to_s))
|
|
51
|
+
|
|
52
|
+
# query parameters
|
|
53
|
+
query_params = opts[:query_params] || {}
|
|
54
|
+
|
|
55
|
+
# header parameters
|
|
56
|
+
header_params = opts[:header_params] || {}
|
|
57
|
+
# HTTP header 'Accept' (if needed)
|
|
58
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
59
|
+
# HTTP header 'Content-Type'
|
|
60
|
+
content_type = @api_client.select_header_content_type(['application/json'])
|
|
61
|
+
if !content_type.nil?
|
|
62
|
+
header_params['Content-Type'] = content_type
|
|
63
|
+
end
|
|
64
|
+
|
|
65
|
+
# form parameters
|
|
66
|
+
form_params = opts[:form_params] || {}
|
|
67
|
+
|
|
68
|
+
# http body (model)
|
|
69
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(accept_organization_invitation_request)
|
|
70
|
+
|
|
71
|
+
# return_type
|
|
72
|
+
return_type = opts[:debug_return_type] || 'Hash<String, Object>'
|
|
73
|
+
|
|
74
|
+
# auth_names
|
|
75
|
+
auth_names = opts[:debug_auth_names] || ['bearerAuth']
|
|
76
|
+
|
|
77
|
+
new_options = opts.merge(
|
|
78
|
+
:operation => :"OrganizationsApi.accept_organization_invitation",
|
|
79
|
+
:header_params => header_params,
|
|
80
|
+
:query_params => query_params,
|
|
81
|
+
:form_params => form_params,
|
|
82
|
+
:body => post_body,
|
|
83
|
+
:auth_names => auth_names,
|
|
84
|
+
:return_type => return_type
|
|
85
|
+
)
|
|
86
|
+
|
|
87
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
|
88
|
+
if @api_client.config.debugging
|
|
89
|
+
@api_client.config.logger.debug "API called: OrganizationsApi#accept_organization_invitation\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
90
|
+
end
|
|
91
|
+
return data, status_code, headers
|
|
92
|
+
end
|
|
93
|
+
|
|
94
|
+
# Add a member directly (skips invitation flow).
|
|
95
|
+
# @param org [String]
|
|
96
|
+
# @param add_organization_member_request [AddOrganizationMemberRequest]
|
|
97
|
+
# @param [Hash] opts the optional parameters
|
|
98
|
+
# @return [Hash<String, Object>]
|
|
99
|
+
def add_organization_member(org, add_organization_member_request, opts = {})
|
|
100
|
+
data, _status_code, _headers = add_organization_member_with_http_info(org, add_organization_member_request, opts)
|
|
101
|
+
data
|
|
102
|
+
end
|
|
103
|
+
|
|
104
|
+
# Add a member directly (skips invitation flow).
|
|
105
|
+
# @param org [String]
|
|
106
|
+
# @param add_organization_member_request [AddOrganizationMemberRequest]
|
|
107
|
+
# @param [Hash] opts the optional parameters
|
|
108
|
+
# @return [Array<(Hash<String, Object>, Integer, Hash)>] Hash<String, Object> data, response status code and response headers
|
|
109
|
+
def add_organization_member_with_http_info(org, add_organization_member_request, opts = {})
|
|
110
|
+
if @api_client.config.debugging
|
|
111
|
+
@api_client.config.logger.debug 'Calling API: OrganizationsApi.add_organization_member ...'
|
|
112
|
+
end
|
|
113
|
+
# verify the required parameter 'org' is set
|
|
114
|
+
if @api_client.config.client_side_validation && org.nil?
|
|
115
|
+
fail ArgumentError, "Missing the required parameter 'org' when calling OrganizationsApi.add_organization_member"
|
|
116
|
+
end
|
|
117
|
+
# verify the required parameter 'add_organization_member_request' is set
|
|
118
|
+
if @api_client.config.client_side_validation && add_organization_member_request.nil?
|
|
119
|
+
fail ArgumentError, "Missing the required parameter 'add_organization_member_request' when calling OrganizationsApi.add_organization_member"
|
|
120
|
+
end
|
|
121
|
+
# resource path
|
|
122
|
+
local_var_path = '/v1/organizations/{org}/members'.sub('{org}', CGI.escape(org.to_s))
|
|
123
|
+
|
|
124
|
+
# query parameters
|
|
125
|
+
query_params = opts[:query_params] || {}
|
|
126
|
+
|
|
127
|
+
# header parameters
|
|
128
|
+
header_params = opts[:header_params] || {}
|
|
129
|
+
# HTTP header 'Accept' (if needed)
|
|
130
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
131
|
+
# HTTP header 'Content-Type'
|
|
132
|
+
content_type = @api_client.select_header_content_type(['application/json'])
|
|
133
|
+
if !content_type.nil?
|
|
134
|
+
header_params['Content-Type'] = content_type
|
|
135
|
+
end
|
|
136
|
+
|
|
137
|
+
# form parameters
|
|
138
|
+
form_params = opts[:form_params] || {}
|
|
139
|
+
|
|
140
|
+
# http body (model)
|
|
141
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(add_organization_member_request)
|
|
142
|
+
|
|
143
|
+
# return_type
|
|
144
|
+
return_type = opts[:debug_return_type] || 'Hash<String, Object>'
|
|
145
|
+
|
|
146
|
+
# auth_names
|
|
147
|
+
auth_names = opts[:debug_auth_names] || ['bearerAuth']
|
|
148
|
+
|
|
149
|
+
new_options = opts.merge(
|
|
150
|
+
:operation => :"OrganizationsApi.add_organization_member",
|
|
151
|
+
:header_params => header_params,
|
|
152
|
+
:query_params => query_params,
|
|
153
|
+
:form_params => form_params,
|
|
154
|
+
:body => post_body,
|
|
155
|
+
:auth_names => auth_names,
|
|
156
|
+
:return_type => return_type
|
|
157
|
+
)
|
|
158
|
+
|
|
159
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
|
160
|
+
if @api_client.config.debugging
|
|
161
|
+
@api_client.config.logger.debug "API called: OrganizationsApi#add_organization_member\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
162
|
+
end
|
|
163
|
+
return data, status_code, headers
|
|
164
|
+
end
|
|
165
|
+
|
|
166
|
+
# Create an organization.
|
|
167
|
+
# @param create_organization_request [CreateOrganizationRequest]
|
|
168
|
+
# @param [Hash] opts the optional parameters
|
|
169
|
+
# @return [Hash<String, Object>]
|
|
170
|
+
def create_organization(create_organization_request, opts = {})
|
|
171
|
+
data, _status_code, _headers = create_organization_with_http_info(create_organization_request, opts)
|
|
172
|
+
data
|
|
173
|
+
end
|
|
174
|
+
|
|
175
|
+
# Create an organization.
|
|
176
|
+
# @param create_organization_request [CreateOrganizationRequest]
|
|
177
|
+
# @param [Hash] opts the optional parameters
|
|
178
|
+
# @return [Array<(Hash<String, Object>, Integer, Hash)>] Hash<String, Object> data, response status code and response headers
|
|
179
|
+
def create_organization_with_http_info(create_organization_request, opts = {})
|
|
180
|
+
if @api_client.config.debugging
|
|
181
|
+
@api_client.config.logger.debug 'Calling API: OrganizationsApi.create_organization ...'
|
|
182
|
+
end
|
|
183
|
+
# verify the required parameter 'create_organization_request' is set
|
|
184
|
+
if @api_client.config.client_side_validation && create_organization_request.nil?
|
|
185
|
+
fail ArgumentError, "Missing the required parameter 'create_organization_request' when calling OrganizationsApi.create_organization"
|
|
186
|
+
end
|
|
187
|
+
# resource path
|
|
188
|
+
local_var_path = '/v1/organizations'
|
|
189
|
+
|
|
190
|
+
# query parameters
|
|
191
|
+
query_params = opts[:query_params] || {}
|
|
192
|
+
|
|
193
|
+
# header parameters
|
|
194
|
+
header_params = opts[:header_params] || {}
|
|
195
|
+
# HTTP header 'Accept' (if needed)
|
|
196
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
197
|
+
# HTTP header 'Content-Type'
|
|
198
|
+
content_type = @api_client.select_header_content_type(['application/json'])
|
|
199
|
+
if !content_type.nil?
|
|
200
|
+
header_params['Content-Type'] = content_type
|
|
201
|
+
end
|
|
202
|
+
|
|
203
|
+
# form parameters
|
|
204
|
+
form_params = opts[:form_params] || {}
|
|
205
|
+
|
|
206
|
+
# http body (model)
|
|
207
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(create_organization_request)
|
|
208
|
+
|
|
209
|
+
# return_type
|
|
210
|
+
return_type = opts[:debug_return_type] || 'Hash<String, Object>'
|
|
211
|
+
|
|
212
|
+
# auth_names
|
|
213
|
+
auth_names = opts[:debug_auth_names] || ['bearerAuth']
|
|
214
|
+
|
|
215
|
+
new_options = opts.merge(
|
|
216
|
+
:operation => :"OrganizationsApi.create_organization",
|
|
217
|
+
:header_params => header_params,
|
|
218
|
+
:query_params => query_params,
|
|
219
|
+
:form_params => form_params,
|
|
220
|
+
:body => post_body,
|
|
221
|
+
:auth_names => auth_names,
|
|
222
|
+
:return_type => return_type
|
|
223
|
+
)
|
|
224
|
+
|
|
225
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
|
226
|
+
if @api_client.config.debugging
|
|
227
|
+
@api_client.config.logger.debug "API called: OrganizationsApi#create_organization\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
228
|
+
end
|
|
229
|
+
return data, status_code, headers
|
|
230
|
+
end
|
|
231
|
+
|
|
232
|
+
# Create an org-brain concept (admin+ only).
|
|
233
|
+
# @param org [String]
|
|
234
|
+
# @param request_body [Hash<String, Object>]
|
|
235
|
+
# @param [Hash] opts the optional parameters
|
|
236
|
+
# @return [Hash<String, Object>]
|
|
237
|
+
def create_organization_concept(org, request_body, opts = {})
|
|
238
|
+
data, _status_code, _headers = create_organization_concept_with_http_info(org, request_body, opts)
|
|
239
|
+
data
|
|
240
|
+
end
|
|
241
|
+
|
|
242
|
+
# Create an org-brain concept (admin+ only).
|
|
243
|
+
# @param org [String]
|
|
244
|
+
# @param request_body [Hash<String, Object>]
|
|
245
|
+
# @param [Hash] opts the optional parameters
|
|
246
|
+
# @return [Array<(Hash<String, Object>, Integer, Hash)>] Hash<String, Object> data, response status code and response headers
|
|
247
|
+
def create_organization_concept_with_http_info(org, request_body, opts = {})
|
|
248
|
+
if @api_client.config.debugging
|
|
249
|
+
@api_client.config.logger.debug 'Calling API: OrganizationsApi.create_organization_concept ...'
|
|
250
|
+
end
|
|
251
|
+
# verify the required parameter 'org' is set
|
|
252
|
+
if @api_client.config.client_side_validation && org.nil?
|
|
253
|
+
fail ArgumentError, "Missing the required parameter 'org' when calling OrganizationsApi.create_organization_concept"
|
|
254
|
+
end
|
|
255
|
+
# verify the required parameter 'request_body' is set
|
|
256
|
+
if @api_client.config.client_side_validation && request_body.nil?
|
|
257
|
+
fail ArgumentError, "Missing the required parameter 'request_body' when calling OrganizationsApi.create_organization_concept"
|
|
258
|
+
end
|
|
259
|
+
# resource path
|
|
260
|
+
local_var_path = '/v1/organizations/{org}/concepts'.sub('{org}', CGI.escape(org.to_s))
|
|
261
|
+
|
|
262
|
+
# query parameters
|
|
263
|
+
query_params = opts[:query_params] || {}
|
|
264
|
+
|
|
265
|
+
# header parameters
|
|
266
|
+
header_params = opts[:header_params] || {}
|
|
267
|
+
# HTTP header 'Accept' (if needed)
|
|
268
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
269
|
+
# HTTP header 'Content-Type'
|
|
270
|
+
content_type = @api_client.select_header_content_type(['application/json'])
|
|
271
|
+
if !content_type.nil?
|
|
272
|
+
header_params['Content-Type'] = content_type
|
|
273
|
+
end
|
|
274
|
+
|
|
275
|
+
# form parameters
|
|
276
|
+
form_params = opts[:form_params] || {}
|
|
277
|
+
|
|
278
|
+
# http body (model)
|
|
279
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(request_body)
|
|
280
|
+
|
|
281
|
+
# return_type
|
|
282
|
+
return_type = opts[:debug_return_type] || 'Hash<String, Object>'
|
|
283
|
+
|
|
284
|
+
# auth_names
|
|
285
|
+
auth_names = opts[:debug_auth_names] || ['bearerAuth']
|
|
286
|
+
|
|
287
|
+
new_options = opts.merge(
|
|
288
|
+
:operation => :"OrganizationsApi.create_organization_concept",
|
|
289
|
+
:header_params => header_params,
|
|
290
|
+
:query_params => query_params,
|
|
291
|
+
:form_params => form_params,
|
|
292
|
+
:body => post_body,
|
|
293
|
+
:auth_names => auth_names,
|
|
294
|
+
:return_type => return_type
|
|
295
|
+
)
|
|
296
|
+
|
|
297
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
|
298
|
+
if @api_client.config.debugging
|
|
299
|
+
@api_client.config.logger.debug "API called: OrganizationsApi#create_organization_concept\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
300
|
+
end
|
|
301
|
+
return data, status_code, headers
|
|
302
|
+
end
|
|
303
|
+
|
|
304
|
+
# Create a custom role (admin+ only).
|
|
305
|
+
# @param org [String]
|
|
306
|
+
# @param request_body [Hash<String, Object>]
|
|
307
|
+
# @param [Hash] opts the optional parameters
|
|
308
|
+
# @return [Hash<String, Object>]
|
|
309
|
+
def create_organization_custom_role(org, request_body, opts = {})
|
|
310
|
+
data, _status_code, _headers = create_organization_custom_role_with_http_info(org, request_body, opts)
|
|
311
|
+
data
|
|
312
|
+
end
|
|
313
|
+
|
|
314
|
+
# Create a custom role (admin+ only).
|
|
315
|
+
# @param org [String]
|
|
316
|
+
# @param request_body [Hash<String, Object>]
|
|
317
|
+
# @param [Hash] opts the optional parameters
|
|
318
|
+
# @return [Array<(Hash<String, Object>, Integer, Hash)>] Hash<String, Object> data, response status code and response headers
|
|
319
|
+
def create_organization_custom_role_with_http_info(org, request_body, opts = {})
|
|
320
|
+
if @api_client.config.debugging
|
|
321
|
+
@api_client.config.logger.debug 'Calling API: OrganizationsApi.create_organization_custom_role ...'
|
|
322
|
+
end
|
|
323
|
+
# verify the required parameter 'org' is set
|
|
324
|
+
if @api_client.config.client_side_validation && org.nil?
|
|
325
|
+
fail ArgumentError, "Missing the required parameter 'org' when calling OrganizationsApi.create_organization_custom_role"
|
|
326
|
+
end
|
|
327
|
+
# verify the required parameter 'request_body' is set
|
|
328
|
+
if @api_client.config.client_side_validation && request_body.nil?
|
|
329
|
+
fail ArgumentError, "Missing the required parameter 'request_body' when calling OrganizationsApi.create_organization_custom_role"
|
|
330
|
+
end
|
|
331
|
+
# resource path
|
|
332
|
+
local_var_path = '/v1/organizations/{org}/roles'.sub('{org}', CGI.escape(org.to_s))
|
|
333
|
+
|
|
334
|
+
# query parameters
|
|
335
|
+
query_params = opts[:query_params] || {}
|
|
336
|
+
|
|
337
|
+
# header parameters
|
|
338
|
+
header_params = opts[:header_params] || {}
|
|
339
|
+
# HTTP header 'Accept' (if needed)
|
|
340
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
341
|
+
# HTTP header 'Content-Type'
|
|
342
|
+
content_type = @api_client.select_header_content_type(['application/json'])
|
|
343
|
+
if !content_type.nil?
|
|
344
|
+
header_params['Content-Type'] = content_type
|
|
345
|
+
end
|
|
346
|
+
|
|
347
|
+
# form parameters
|
|
348
|
+
form_params = opts[:form_params] || {}
|
|
349
|
+
|
|
350
|
+
# http body (model)
|
|
351
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(request_body)
|
|
352
|
+
|
|
353
|
+
# return_type
|
|
354
|
+
return_type = opts[:debug_return_type] || 'Hash<String, Object>'
|
|
355
|
+
|
|
356
|
+
# auth_names
|
|
357
|
+
auth_names = opts[:debug_auth_names] || ['bearerAuth']
|
|
358
|
+
|
|
359
|
+
new_options = opts.merge(
|
|
360
|
+
:operation => :"OrganizationsApi.create_organization_custom_role",
|
|
361
|
+
:header_params => header_params,
|
|
362
|
+
:query_params => query_params,
|
|
363
|
+
:form_params => form_params,
|
|
364
|
+
:body => post_body,
|
|
365
|
+
:auth_names => auth_names,
|
|
366
|
+
:return_type => return_type
|
|
367
|
+
)
|
|
368
|
+
|
|
369
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
|
370
|
+
if @api_client.config.debugging
|
|
371
|
+
@api_client.config.logger.debug "API called: OrganizationsApi#create_organization_custom_role\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
372
|
+
end
|
|
373
|
+
return data, status_code, headers
|
|
374
|
+
end
|
|
375
|
+
|
|
376
|
+
# Invite a user to the organization.
|
|
377
|
+
# Pending invitations count toward seat cap. Free-tier callers at the cap receive a `402` with billing-upgrade payload; paid-tier auto-scales the Stripe quantity.
|
|
378
|
+
# @param org [String]
|
|
379
|
+
# @param create_organization_invitation_request [CreateOrganizationInvitationRequest]
|
|
380
|
+
# @param [Hash] opts the optional parameters
|
|
381
|
+
# @return [OrganizationInvitation]
|
|
382
|
+
def create_organization_invitation(org, create_organization_invitation_request, opts = {})
|
|
383
|
+
data, _status_code, _headers = create_organization_invitation_with_http_info(org, create_organization_invitation_request, opts)
|
|
384
|
+
data
|
|
385
|
+
end
|
|
386
|
+
|
|
387
|
+
# Invite a user to the organization.
|
|
388
|
+
# Pending invitations count toward seat cap. Free-tier callers at the cap receive a `402` with billing-upgrade payload; paid-tier auto-scales the Stripe quantity.
|
|
389
|
+
# @param org [String]
|
|
390
|
+
# @param create_organization_invitation_request [CreateOrganizationInvitationRequest]
|
|
391
|
+
# @param [Hash] opts the optional parameters
|
|
392
|
+
# @return [Array<(OrganizationInvitation, Integer, Hash)>] OrganizationInvitation data, response status code and response headers
|
|
393
|
+
def create_organization_invitation_with_http_info(org, create_organization_invitation_request, opts = {})
|
|
394
|
+
if @api_client.config.debugging
|
|
395
|
+
@api_client.config.logger.debug 'Calling API: OrganizationsApi.create_organization_invitation ...'
|
|
396
|
+
end
|
|
397
|
+
# verify the required parameter 'org' is set
|
|
398
|
+
if @api_client.config.client_side_validation && org.nil?
|
|
399
|
+
fail ArgumentError, "Missing the required parameter 'org' when calling OrganizationsApi.create_organization_invitation"
|
|
400
|
+
end
|
|
401
|
+
# verify the required parameter 'create_organization_invitation_request' is set
|
|
402
|
+
if @api_client.config.client_side_validation && create_organization_invitation_request.nil?
|
|
403
|
+
fail ArgumentError, "Missing the required parameter 'create_organization_invitation_request' when calling OrganizationsApi.create_organization_invitation"
|
|
404
|
+
end
|
|
405
|
+
# resource path
|
|
406
|
+
local_var_path = '/v1/organizations/{org}/invitations'.sub('{org}', CGI.escape(org.to_s))
|
|
407
|
+
|
|
408
|
+
# query parameters
|
|
409
|
+
query_params = opts[:query_params] || {}
|
|
410
|
+
|
|
411
|
+
# header parameters
|
|
412
|
+
header_params = opts[:header_params] || {}
|
|
413
|
+
# HTTP header 'Accept' (if needed)
|
|
414
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
415
|
+
# HTTP header 'Content-Type'
|
|
416
|
+
content_type = @api_client.select_header_content_type(['application/json'])
|
|
417
|
+
if !content_type.nil?
|
|
418
|
+
header_params['Content-Type'] = content_type
|
|
419
|
+
end
|
|
420
|
+
|
|
421
|
+
# form parameters
|
|
422
|
+
form_params = opts[:form_params] || {}
|
|
423
|
+
|
|
424
|
+
# http body (model)
|
|
425
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(create_organization_invitation_request)
|
|
426
|
+
|
|
427
|
+
# return_type
|
|
428
|
+
return_type = opts[:debug_return_type] || 'OrganizationInvitation'
|
|
429
|
+
|
|
430
|
+
# auth_names
|
|
431
|
+
auth_names = opts[:debug_auth_names] || ['bearerAuth']
|
|
432
|
+
|
|
433
|
+
new_options = opts.merge(
|
|
434
|
+
:operation => :"OrganizationsApi.create_organization_invitation",
|
|
435
|
+
:header_params => header_params,
|
|
436
|
+
:query_params => query_params,
|
|
437
|
+
:form_params => form_params,
|
|
438
|
+
:body => post_body,
|
|
439
|
+
:auth_names => auth_names,
|
|
440
|
+
:return_type => return_type
|
|
441
|
+
)
|
|
442
|
+
|
|
443
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
|
444
|
+
if @api_client.config.debugging
|
|
445
|
+
@api_client.config.logger.debug "API called: OrganizationsApi#create_organization_invitation\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
446
|
+
end
|
|
447
|
+
return data, status_code, headers
|
|
448
|
+
end
|
|
449
|
+
|
|
450
|
+
# Create a workspace inside an organization.
|
|
451
|
+
# Requires the `OrgActionCreateWorkspace` action permission. Slug collisions auto-suffix (`-2`, `-3`, ...).
|
|
452
|
+
# @param org [String]
|
|
453
|
+
# @param create_workspace_request [CreateWorkspaceRequest]
|
|
454
|
+
# @param [Hash] opts the optional parameters
|
|
455
|
+
# @return [WorkspaceEnvelope]
|
|
456
|
+
def create_organization_workspace(org, create_workspace_request, opts = {})
|
|
457
|
+
data, _status_code, _headers = create_organization_workspace_with_http_info(org, create_workspace_request, opts)
|
|
458
|
+
data
|
|
459
|
+
end
|
|
460
|
+
|
|
461
|
+
# Create a workspace inside an organization.
|
|
462
|
+
# Requires the `OrgActionCreateWorkspace` action permission. Slug collisions auto-suffix (`-2`, `-3`, ...).
|
|
463
|
+
# @param org [String]
|
|
464
|
+
# @param create_workspace_request [CreateWorkspaceRequest]
|
|
465
|
+
# @param [Hash] opts the optional parameters
|
|
466
|
+
# @return [Array<(WorkspaceEnvelope, Integer, Hash)>] WorkspaceEnvelope data, response status code and response headers
|
|
467
|
+
def create_organization_workspace_with_http_info(org, create_workspace_request, opts = {})
|
|
468
|
+
if @api_client.config.debugging
|
|
469
|
+
@api_client.config.logger.debug 'Calling API: OrganizationsApi.create_organization_workspace ...'
|
|
470
|
+
end
|
|
471
|
+
# verify the required parameter 'org' is set
|
|
472
|
+
if @api_client.config.client_side_validation && org.nil?
|
|
473
|
+
fail ArgumentError, "Missing the required parameter 'org' when calling OrganizationsApi.create_organization_workspace"
|
|
474
|
+
end
|
|
475
|
+
# verify the required parameter 'create_workspace_request' is set
|
|
476
|
+
if @api_client.config.client_side_validation && create_workspace_request.nil?
|
|
477
|
+
fail ArgumentError, "Missing the required parameter 'create_workspace_request' when calling OrganizationsApi.create_organization_workspace"
|
|
478
|
+
end
|
|
479
|
+
# resource path
|
|
480
|
+
local_var_path = '/v1/organizations/{org}/workspaces'.sub('{org}', CGI.escape(org.to_s))
|
|
481
|
+
|
|
482
|
+
# query parameters
|
|
483
|
+
query_params = opts[:query_params] || {}
|
|
484
|
+
|
|
485
|
+
# header parameters
|
|
486
|
+
header_params = opts[:header_params] || {}
|
|
487
|
+
# HTTP header 'Accept' (if needed)
|
|
488
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
489
|
+
# HTTP header 'Content-Type'
|
|
490
|
+
content_type = @api_client.select_header_content_type(['application/json'])
|
|
491
|
+
if !content_type.nil?
|
|
492
|
+
header_params['Content-Type'] = content_type
|
|
493
|
+
end
|
|
494
|
+
|
|
495
|
+
# form parameters
|
|
496
|
+
form_params = opts[:form_params] || {}
|
|
497
|
+
|
|
498
|
+
# http body (model)
|
|
499
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(create_workspace_request)
|
|
500
|
+
|
|
501
|
+
# return_type
|
|
502
|
+
return_type = opts[:debug_return_type] || 'WorkspaceEnvelope'
|
|
503
|
+
|
|
504
|
+
# auth_names
|
|
505
|
+
auth_names = opts[:debug_auth_names] || ['bearerAuth']
|
|
506
|
+
|
|
507
|
+
new_options = opts.merge(
|
|
508
|
+
:operation => :"OrganizationsApi.create_organization_workspace",
|
|
509
|
+
:header_params => header_params,
|
|
510
|
+
:query_params => query_params,
|
|
511
|
+
:form_params => form_params,
|
|
512
|
+
:body => post_body,
|
|
513
|
+
:auth_names => auth_names,
|
|
514
|
+
:return_type => return_type
|
|
515
|
+
)
|
|
516
|
+
|
|
517
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
|
518
|
+
if @api_client.config.debugging
|
|
519
|
+
@api_client.config.logger.debug "API called: OrganizationsApi#create_organization_workspace\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
520
|
+
end
|
|
521
|
+
return data, status_code, headers
|
|
522
|
+
end
|
|
523
|
+
|
|
524
|
+
# Delete an organization.
|
|
525
|
+
# @param org [String] Organization id or slug.
|
|
526
|
+
# @param [Hash] opts the optional parameters
|
|
527
|
+
# @return [nil]
|
|
528
|
+
def delete_organization(org, opts = {})
|
|
529
|
+
delete_organization_with_http_info(org, opts)
|
|
530
|
+
nil
|
|
531
|
+
end
|
|
532
|
+
|
|
533
|
+
# Delete an organization.
|
|
534
|
+
# @param org [String] Organization id or slug.
|
|
535
|
+
# @param [Hash] opts the optional parameters
|
|
536
|
+
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
|
|
537
|
+
def delete_organization_with_http_info(org, opts = {})
|
|
538
|
+
if @api_client.config.debugging
|
|
539
|
+
@api_client.config.logger.debug 'Calling API: OrganizationsApi.delete_organization ...'
|
|
540
|
+
end
|
|
541
|
+
# verify the required parameter 'org' is set
|
|
542
|
+
if @api_client.config.client_side_validation && org.nil?
|
|
543
|
+
fail ArgumentError, "Missing the required parameter 'org' when calling OrganizationsApi.delete_organization"
|
|
544
|
+
end
|
|
545
|
+
# resource path
|
|
546
|
+
local_var_path = '/v1/organizations/{org}'.sub('{org}', CGI.escape(org.to_s))
|
|
547
|
+
|
|
548
|
+
# query parameters
|
|
549
|
+
query_params = opts[:query_params] || {}
|
|
550
|
+
|
|
551
|
+
# header parameters
|
|
552
|
+
header_params = opts[:header_params] || {}
|
|
553
|
+
# HTTP header 'Accept' (if needed)
|
|
554
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
555
|
+
|
|
556
|
+
# form parameters
|
|
557
|
+
form_params = opts[:form_params] || {}
|
|
558
|
+
|
|
559
|
+
# http body (model)
|
|
560
|
+
post_body = opts[:debug_body]
|
|
561
|
+
|
|
562
|
+
# return_type
|
|
563
|
+
return_type = opts[:debug_return_type]
|
|
564
|
+
|
|
565
|
+
# auth_names
|
|
566
|
+
auth_names = opts[:debug_auth_names] || ['bearerAuth']
|
|
567
|
+
|
|
568
|
+
new_options = opts.merge(
|
|
569
|
+
:operation => :"OrganizationsApi.delete_organization",
|
|
570
|
+
:header_params => header_params,
|
|
571
|
+
:query_params => query_params,
|
|
572
|
+
:form_params => form_params,
|
|
573
|
+
:body => post_body,
|
|
574
|
+
:auth_names => auth_names,
|
|
575
|
+
:return_type => return_type
|
|
576
|
+
)
|
|
577
|
+
|
|
578
|
+
data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options)
|
|
579
|
+
if @api_client.config.debugging
|
|
580
|
+
@api_client.config.logger.debug "API called: OrganizationsApi#delete_organization\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
581
|
+
end
|
|
582
|
+
return data, status_code, headers
|
|
583
|
+
end
|
|
584
|
+
|
|
585
|
+
# Delete a concept (admin+ only).
|
|
586
|
+
# @param org [String]
|
|
587
|
+
# @param slug [String]
|
|
588
|
+
# @param [Hash] opts the optional parameters
|
|
589
|
+
# @return [nil]
|
|
590
|
+
def delete_organization_concept(org, slug, opts = {})
|
|
591
|
+
delete_organization_concept_with_http_info(org, slug, opts)
|
|
592
|
+
nil
|
|
593
|
+
end
|
|
594
|
+
|
|
595
|
+
# Delete a concept (admin+ only).
|
|
596
|
+
# @param org [String]
|
|
597
|
+
# @param slug [String]
|
|
598
|
+
# @param [Hash] opts the optional parameters
|
|
599
|
+
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
|
|
600
|
+
def delete_organization_concept_with_http_info(org, slug, opts = {})
|
|
601
|
+
if @api_client.config.debugging
|
|
602
|
+
@api_client.config.logger.debug 'Calling API: OrganizationsApi.delete_organization_concept ...'
|
|
603
|
+
end
|
|
604
|
+
# verify the required parameter 'org' is set
|
|
605
|
+
if @api_client.config.client_side_validation && org.nil?
|
|
606
|
+
fail ArgumentError, "Missing the required parameter 'org' when calling OrganizationsApi.delete_organization_concept"
|
|
607
|
+
end
|
|
608
|
+
# verify the required parameter 'slug' is set
|
|
609
|
+
if @api_client.config.client_side_validation && slug.nil?
|
|
610
|
+
fail ArgumentError, "Missing the required parameter 'slug' when calling OrganizationsApi.delete_organization_concept"
|
|
611
|
+
end
|
|
612
|
+
# resource path
|
|
613
|
+
local_var_path = '/v1/organizations/{org}/concepts/{slug}'.sub('{org}', CGI.escape(org.to_s)).sub('{slug}', CGI.escape(slug.to_s))
|
|
614
|
+
|
|
615
|
+
# query parameters
|
|
616
|
+
query_params = opts[:query_params] || {}
|
|
617
|
+
|
|
618
|
+
# header parameters
|
|
619
|
+
header_params = opts[:header_params] || {}
|
|
620
|
+
# HTTP header 'Accept' (if needed)
|
|
621
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
622
|
+
|
|
623
|
+
# form parameters
|
|
624
|
+
form_params = opts[:form_params] || {}
|
|
625
|
+
|
|
626
|
+
# http body (model)
|
|
627
|
+
post_body = opts[:debug_body]
|
|
628
|
+
|
|
629
|
+
# return_type
|
|
630
|
+
return_type = opts[:debug_return_type]
|
|
631
|
+
|
|
632
|
+
# auth_names
|
|
633
|
+
auth_names = opts[:debug_auth_names] || ['bearerAuth']
|
|
634
|
+
|
|
635
|
+
new_options = opts.merge(
|
|
636
|
+
:operation => :"OrganizationsApi.delete_organization_concept",
|
|
637
|
+
:header_params => header_params,
|
|
638
|
+
:query_params => query_params,
|
|
639
|
+
:form_params => form_params,
|
|
640
|
+
:body => post_body,
|
|
641
|
+
:auth_names => auth_names,
|
|
642
|
+
:return_type => return_type
|
|
643
|
+
)
|
|
644
|
+
|
|
645
|
+
data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options)
|
|
646
|
+
if @api_client.config.debugging
|
|
647
|
+
@api_client.config.logger.debug "API called: OrganizationsApi#delete_organization_concept\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
648
|
+
end
|
|
649
|
+
return data, status_code, headers
|
|
650
|
+
end
|
|
651
|
+
|
|
652
|
+
# Delete a custom role (admin+ only).
|
|
653
|
+
# @param org [String]
|
|
654
|
+
# @param role_id [String]
|
|
655
|
+
# @param [Hash] opts the optional parameters
|
|
656
|
+
# @return [nil]
|
|
657
|
+
def delete_organization_custom_role(org, role_id, opts = {})
|
|
658
|
+
delete_organization_custom_role_with_http_info(org, role_id, opts)
|
|
659
|
+
nil
|
|
660
|
+
end
|
|
661
|
+
|
|
662
|
+
# Delete a custom role (admin+ only).
|
|
663
|
+
# @param org [String]
|
|
664
|
+
# @param role_id [String]
|
|
665
|
+
# @param [Hash] opts the optional parameters
|
|
666
|
+
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
|
|
667
|
+
def delete_organization_custom_role_with_http_info(org, role_id, opts = {})
|
|
668
|
+
if @api_client.config.debugging
|
|
669
|
+
@api_client.config.logger.debug 'Calling API: OrganizationsApi.delete_organization_custom_role ...'
|
|
670
|
+
end
|
|
671
|
+
# verify the required parameter 'org' is set
|
|
672
|
+
if @api_client.config.client_side_validation && org.nil?
|
|
673
|
+
fail ArgumentError, "Missing the required parameter 'org' when calling OrganizationsApi.delete_organization_custom_role"
|
|
674
|
+
end
|
|
675
|
+
# verify the required parameter 'role_id' is set
|
|
676
|
+
if @api_client.config.client_side_validation && role_id.nil?
|
|
677
|
+
fail ArgumentError, "Missing the required parameter 'role_id' when calling OrganizationsApi.delete_organization_custom_role"
|
|
678
|
+
end
|
|
679
|
+
# resource path
|
|
680
|
+
local_var_path = '/v1/organizations/{org}/roles/{roleId}'.sub('{org}', CGI.escape(org.to_s)).sub('{roleId}', CGI.escape(role_id.to_s))
|
|
681
|
+
|
|
682
|
+
# query parameters
|
|
683
|
+
query_params = opts[:query_params] || {}
|
|
684
|
+
|
|
685
|
+
# header parameters
|
|
686
|
+
header_params = opts[:header_params] || {}
|
|
687
|
+
# HTTP header 'Accept' (if needed)
|
|
688
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
689
|
+
|
|
690
|
+
# form parameters
|
|
691
|
+
form_params = opts[:form_params] || {}
|
|
692
|
+
|
|
693
|
+
# http body (model)
|
|
694
|
+
post_body = opts[:debug_body]
|
|
695
|
+
|
|
696
|
+
# return_type
|
|
697
|
+
return_type = opts[:debug_return_type]
|
|
698
|
+
|
|
699
|
+
# auth_names
|
|
700
|
+
auth_names = opts[:debug_auth_names] || ['bearerAuth']
|
|
701
|
+
|
|
702
|
+
new_options = opts.merge(
|
|
703
|
+
:operation => :"OrganizationsApi.delete_organization_custom_role",
|
|
704
|
+
:header_params => header_params,
|
|
705
|
+
:query_params => query_params,
|
|
706
|
+
:form_params => form_params,
|
|
707
|
+
:body => post_body,
|
|
708
|
+
:auth_names => auth_names,
|
|
709
|
+
:return_type => return_type
|
|
710
|
+
)
|
|
711
|
+
|
|
712
|
+
data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options)
|
|
713
|
+
if @api_client.config.debugging
|
|
714
|
+
@api_client.config.logger.debug "API called: OrganizationsApi#delete_organization_custom_role\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
715
|
+
end
|
|
716
|
+
return data, status_code, headers
|
|
717
|
+
end
|
|
718
|
+
|
|
719
|
+
# Delete the organization logo.
|
|
720
|
+
# @param org [String]
|
|
721
|
+
# @param [Hash] opts the optional parameters
|
|
722
|
+
# @return [nil]
|
|
723
|
+
def delete_organization_logo(org, opts = {})
|
|
724
|
+
delete_organization_logo_with_http_info(org, opts)
|
|
725
|
+
nil
|
|
726
|
+
end
|
|
727
|
+
|
|
728
|
+
# Delete the organization logo.
|
|
729
|
+
# @param org [String]
|
|
730
|
+
# @param [Hash] opts the optional parameters
|
|
731
|
+
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
|
|
732
|
+
def delete_organization_logo_with_http_info(org, opts = {})
|
|
733
|
+
if @api_client.config.debugging
|
|
734
|
+
@api_client.config.logger.debug 'Calling API: OrganizationsApi.delete_organization_logo ...'
|
|
735
|
+
end
|
|
736
|
+
# verify the required parameter 'org' is set
|
|
737
|
+
if @api_client.config.client_side_validation && org.nil?
|
|
738
|
+
fail ArgumentError, "Missing the required parameter 'org' when calling OrganizationsApi.delete_organization_logo"
|
|
739
|
+
end
|
|
740
|
+
# resource path
|
|
741
|
+
local_var_path = '/v1/organizations/{org}/logo'.sub('{org}', CGI.escape(org.to_s))
|
|
742
|
+
|
|
743
|
+
# query parameters
|
|
744
|
+
query_params = opts[:query_params] || {}
|
|
745
|
+
|
|
746
|
+
# header parameters
|
|
747
|
+
header_params = opts[:header_params] || {}
|
|
748
|
+
# HTTP header 'Accept' (if needed)
|
|
749
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
750
|
+
|
|
751
|
+
# form parameters
|
|
752
|
+
form_params = opts[:form_params] || {}
|
|
753
|
+
|
|
754
|
+
# http body (model)
|
|
755
|
+
post_body = opts[:debug_body]
|
|
756
|
+
|
|
757
|
+
# return_type
|
|
758
|
+
return_type = opts[:debug_return_type]
|
|
759
|
+
|
|
760
|
+
# auth_names
|
|
761
|
+
auth_names = opts[:debug_auth_names] || ['bearerAuth']
|
|
762
|
+
|
|
763
|
+
new_options = opts.merge(
|
|
764
|
+
:operation => :"OrganizationsApi.delete_organization_logo",
|
|
765
|
+
:header_params => header_params,
|
|
766
|
+
:query_params => query_params,
|
|
767
|
+
:form_params => form_params,
|
|
768
|
+
:body => post_body,
|
|
769
|
+
:auth_names => auth_names,
|
|
770
|
+
:return_type => return_type
|
|
771
|
+
)
|
|
772
|
+
|
|
773
|
+
data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options)
|
|
774
|
+
if @api_client.config.debugging
|
|
775
|
+
@api_client.config.logger.debug "API called: OrganizationsApi#delete_organization_logo\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
776
|
+
end
|
|
777
|
+
return data, status_code, headers
|
|
778
|
+
end
|
|
779
|
+
|
|
780
|
+
# Fetch a single organization.
|
|
781
|
+
# **Wire format note:** response uses PascalCase keys (`ID`, `Name`, `Slug`, ...) — distinct from the rest of the SpatioAPI's camelCase convention. Documented as-is; a future cleanup will harmonize.
|
|
782
|
+
# @param org [String] Organization id or slug.
|
|
783
|
+
# @param [Hash] opts the optional parameters
|
|
784
|
+
# @return [OrganizationDetailLegacy]
|
|
785
|
+
def get_organization(org, opts = {})
|
|
786
|
+
data, _status_code, _headers = get_organization_with_http_info(org, opts)
|
|
787
|
+
data
|
|
788
|
+
end
|
|
789
|
+
|
|
790
|
+
# Fetch a single organization.
|
|
791
|
+
# **Wire format note:** response uses PascalCase keys (`ID`, `Name`, `Slug`, ...) — distinct from the rest of the SpatioAPI's camelCase convention. Documented as-is; a future cleanup will harmonize.
|
|
792
|
+
# @param org [String] Organization id or slug.
|
|
793
|
+
# @param [Hash] opts the optional parameters
|
|
794
|
+
# @return [Array<(OrganizationDetailLegacy, Integer, Hash)>] OrganizationDetailLegacy data, response status code and response headers
|
|
795
|
+
def get_organization_with_http_info(org, opts = {})
|
|
796
|
+
if @api_client.config.debugging
|
|
797
|
+
@api_client.config.logger.debug 'Calling API: OrganizationsApi.get_organization ...'
|
|
798
|
+
end
|
|
799
|
+
# verify the required parameter 'org' is set
|
|
800
|
+
if @api_client.config.client_side_validation && org.nil?
|
|
801
|
+
fail ArgumentError, "Missing the required parameter 'org' when calling OrganizationsApi.get_organization"
|
|
802
|
+
end
|
|
803
|
+
# resource path
|
|
804
|
+
local_var_path = '/v1/organizations/{org}'.sub('{org}', CGI.escape(org.to_s))
|
|
805
|
+
|
|
806
|
+
# query parameters
|
|
807
|
+
query_params = opts[:query_params] || {}
|
|
808
|
+
|
|
809
|
+
# header parameters
|
|
810
|
+
header_params = opts[:header_params] || {}
|
|
811
|
+
# HTTP header 'Accept' (if needed)
|
|
812
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
813
|
+
|
|
814
|
+
# form parameters
|
|
815
|
+
form_params = opts[:form_params] || {}
|
|
816
|
+
|
|
817
|
+
# http body (model)
|
|
818
|
+
post_body = opts[:debug_body]
|
|
819
|
+
|
|
820
|
+
# return_type
|
|
821
|
+
return_type = opts[:debug_return_type] || 'OrganizationDetailLegacy'
|
|
822
|
+
|
|
823
|
+
# auth_names
|
|
824
|
+
auth_names = opts[:debug_auth_names] || ['bearerAuth']
|
|
825
|
+
|
|
826
|
+
new_options = opts.merge(
|
|
827
|
+
:operation => :"OrganizationsApi.get_organization",
|
|
828
|
+
:header_params => header_params,
|
|
829
|
+
:query_params => query_params,
|
|
830
|
+
:form_params => form_params,
|
|
831
|
+
:body => post_body,
|
|
832
|
+
:auth_names => auth_names,
|
|
833
|
+
:return_type => return_type
|
|
834
|
+
)
|
|
835
|
+
|
|
836
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
837
|
+
if @api_client.config.debugging
|
|
838
|
+
@api_client.config.logger.debug "API called: OrganizationsApi#get_organization\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
839
|
+
end
|
|
840
|
+
return data, status_code, headers
|
|
841
|
+
end
|
|
842
|
+
|
|
843
|
+
# Fetch a concept.
|
|
844
|
+
# @param org [String]
|
|
845
|
+
# @param slug [String]
|
|
846
|
+
# @param [Hash] opts the optional parameters
|
|
847
|
+
# @return [Hash<String, Object>]
|
|
848
|
+
def get_organization_concept(org, slug, opts = {})
|
|
849
|
+
data, _status_code, _headers = get_organization_concept_with_http_info(org, slug, opts)
|
|
850
|
+
data
|
|
851
|
+
end
|
|
852
|
+
|
|
853
|
+
# Fetch a concept.
|
|
854
|
+
# @param org [String]
|
|
855
|
+
# @param slug [String]
|
|
856
|
+
# @param [Hash] opts the optional parameters
|
|
857
|
+
# @return [Array<(Hash<String, Object>, Integer, Hash)>] Hash<String, Object> data, response status code and response headers
|
|
858
|
+
def get_organization_concept_with_http_info(org, slug, opts = {})
|
|
859
|
+
if @api_client.config.debugging
|
|
860
|
+
@api_client.config.logger.debug 'Calling API: OrganizationsApi.get_organization_concept ...'
|
|
861
|
+
end
|
|
862
|
+
# verify the required parameter 'org' is set
|
|
863
|
+
if @api_client.config.client_side_validation && org.nil?
|
|
864
|
+
fail ArgumentError, "Missing the required parameter 'org' when calling OrganizationsApi.get_organization_concept"
|
|
865
|
+
end
|
|
866
|
+
# verify the required parameter 'slug' is set
|
|
867
|
+
if @api_client.config.client_side_validation && slug.nil?
|
|
868
|
+
fail ArgumentError, "Missing the required parameter 'slug' when calling OrganizationsApi.get_organization_concept"
|
|
869
|
+
end
|
|
870
|
+
# resource path
|
|
871
|
+
local_var_path = '/v1/organizations/{org}/concepts/{slug}'.sub('{org}', CGI.escape(org.to_s)).sub('{slug}', CGI.escape(slug.to_s))
|
|
872
|
+
|
|
873
|
+
# query parameters
|
|
874
|
+
query_params = opts[:query_params] || {}
|
|
875
|
+
|
|
876
|
+
# header parameters
|
|
877
|
+
header_params = opts[:header_params] || {}
|
|
878
|
+
# HTTP header 'Accept' (if needed)
|
|
879
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
880
|
+
|
|
881
|
+
# form parameters
|
|
882
|
+
form_params = opts[:form_params] || {}
|
|
883
|
+
|
|
884
|
+
# http body (model)
|
|
885
|
+
post_body = opts[:debug_body]
|
|
886
|
+
|
|
887
|
+
# return_type
|
|
888
|
+
return_type = opts[:debug_return_type] || 'Hash<String, Object>'
|
|
889
|
+
|
|
890
|
+
# auth_names
|
|
891
|
+
auth_names = opts[:debug_auth_names] || ['bearerAuth']
|
|
892
|
+
|
|
893
|
+
new_options = opts.merge(
|
|
894
|
+
:operation => :"OrganizationsApi.get_organization_concept",
|
|
895
|
+
:header_params => header_params,
|
|
896
|
+
:query_params => query_params,
|
|
897
|
+
:form_params => form_params,
|
|
898
|
+
:body => post_body,
|
|
899
|
+
:auth_names => auth_names,
|
|
900
|
+
:return_type => return_type
|
|
901
|
+
)
|
|
902
|
+
|
|
903
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
904
|
+
if @api_client.config.debugging
|
|
905
|
+
@api_client.config.logger.debug "API called: OrganizationsApi#get_organization_concept\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
906
|
+
end
|
|
907
|
+
return data, status_code, headers
|
|
908
|
+
end
|
|
909
|
+
|
|
910
|
+
# List the caller's organizations.
|
|
911
|
+
# @param [Hash] opts the optional parameters
|
|
912
|
+
# @return [OrganizationListResponse]
|
|
913
|
+
def list_my_organizations(opts = {})
|
|
914
|
+
data, _status_code, _headers = list_my_organizations_with_http_info(opts)
|
|
915
|
+
data
|
|
916
|
+
end
|
|
917
|
+
|
|
918
|
+
# List the caller's organizations.
|
|
919
|
+
# @param [Hash] opts the optional parameters
|
|
920
|
+
# @return [Array<(OrganizationListResponse, Integer, Hash)>] OrganizationListResponse data, response status code and response headers
|
|
921
|
+
def list_my_organizations_with_http_info(opts = {})
|
|
922
|
+
if @api_client.config.debugging
|
|
923
|
+
@api_client.config.logger.debug 'Calling API: OrganizationsApi.list_my_organizations ...'
|
|
924
|
+
end
|
|
925
|
+
# resource path
|
|
926
|
+
local_var_path = '/v1/organizations'
|
|
927
|
+
|
|
928
|
+
# query parameters
|
|
929
|
+
query_params = opts[:query_params] || {}
|
|
930
|
+
|
|
931
|
+
# header parameters
|
|
932
|
+
header_params = opts[:header_params] || {}
|
|
933
|
+
# HTTP header 'Accept' (if needed)
|
|
934
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
935
|
+
|
|
936
|
+
# form parameters
|
|
937
|
+
form_params = opts[:form_params] || {}
|
|
938
|
+
|
|
939
|
+
# http body (model)
|
|
940
|
+
post_body = opts[:debug_body]
|
|
941
|
+
|
|
942
|
+
# return_type
|
|
943
|
+
return_type = opts[:debug_return_type] || 'OrganizationListResponse'
|
|
944
|
+
|
|
945
|
+
# auth_names
|
|
946
|
+
auth_names = opts[:debug_auth_names] || ['bearerAuth']
|
|
947
|
+
|
|
948
|
+
new_options = opts.merge(
|
|
949
|
+
:operation => :"OrganizationsApi.list_my_organizations",
|
|
950
|
+
:header_params => header_params,
|
|
951
|
+
:query_params => query_params,
|
|
952
|
+
:form_params => form_params,
|
|
953
|
+
:body => post_body,
|
|
954
|
+
:auth_names => auth_names,
|
|
955
|
+
:return_type => return_type
|
|
956
|
+
)
|
|
957
|
+
|
|
958
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
959
|
+
if @api_client.config.debugging
|
|
960
|
+
@api_client.config.logger.debug "API called: OrganizationsApi#list_my_organizations\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
961
|
+
end
|
|
962
|
+
return data, status_code, headers
|
|
963
|
+
end
|
|
964
|
+
|
|
965
|
+
# Read the organization audit log (admin / billing-admin only).
|
|
966
|
+
# @param org [String]
|
|
967
|
+
# @param [Hash] opts the optional parameters
|
|
968
|
+
# @option opts [Integer] :limit
|
|
969
|
+
# @option opts [String] :cursor
|
|
970
|
+
# @return [Hash<String, Object>]
|
|
971
|
+
def list_organization_audit_log(org, opts = {})
|
|
972
|
+
data, _status_code, _headers = list_organization_audit_log_with_http_info(org, opts)
|
|
973
|
+
data
|
|
974
|
+
end
|
|
975
|
+
|
|
976
|
+
# Read the organization audit log (admin / billing-admin only).
|
|
977
|
+
# @param org [String]
|
|
978
|
+
# @param [Hash] opts the optional parameters
|
|
979
|
+
# @option opts [Integer] :limit
|
|
980
|
+
# @option opts [String] :cursor
|
|
981
|
+
# @return [Array<(Hash<String, Object>, Integer, Hash)>] Hash<String, Object> data, response status code and response headers
|
|
982
|
+
def list_organization_audit_log_with_http_info(org, opts = {})
|
|
983
|
+
if @api_client.config.debugging
|
|
984
|
+
@api_client.config.logger.debug 'Calling API: OrganizationsApi.list_organization_audit_log ...'
|
|
985
|
+
end
|
|
986
|
+
# verify the required parameter 'org' is set
|
|
987
|
+
if @api_client.config.client_side_validation && org.nil?
|
|
988
|
+
fail ArgumentError, "Missing the required parameter 'org' when calling OrganizationsApi.list_organization_audit_log"
|
|
989
|
+
end
|
|
990
|
+
# resource path
|
|
991
|
+
local_var_path = '/v1/organizations/{org}/audit-log'.sub('{org}', CGI.escape(org.to_s))
|
|
992
|
+
|
|
993
|
+
# query parameters
|
|
994
|
+
query_params = opts[:query_params] || {}
|
|
995
|
+
query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
|
|
996
|
+
query_params[:'cursor'] = opts[:'cursor'] if !opts[:'cursor'].nil?
|
|
997
|
+
|
|
998
|
+
# header parameters
|
|
999
|
+
header_params = opts[:header_params] || {}
|
|
1000
|
+
# HTTP header 'Accept' (if needed)
|
|
1001
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
1002
|
+
|
|
1003
|
+
# form parameters
|
|
1004
|
+
form_params = opts[:form_params] || {}
|
|
1005
|
+
|
|
1006
|
+
# http body (model)
|
|
1007
|
+
post_body = opts[:debug_body]
|
|
1008
|
+
|
|
1009
|
+
# return_type
|
|
1010
|
+
return_type = opts[:debug_return_type] || 'Hash<String, Object>'
|
|
1011
|
+
|
|
1012
|
+
# auth_names
|
|
1013
|
+
auth_names = opts[:debug_auth_names] || ['bearerAuth']
|
|
1014
|
+
|
|
1015
|
+
new_options = opts.merge(
|
|
1016
|
+
:operation => :"OrganizationsApi.list_organization_audit_log",
|
|
1017
|
+
:header_params => header_params,
|
|
1018
|
+
:query_params => query_params,
|
|
1019
|
+
:form_params => form_params,
|
|
1020
|
+
:body => post_body,
|
|
1021
|
+
:auth_names => auth_names,
|
|
1022
|
+
:return_type => return_type
|
|
1023
|
+
)
|
|
1024
|
+
|
|
1025
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
1026
|
+
if @api_client.config.debugging
|
|
1027
|
+
@api_client.config.logger.debug "API called: OrganizationsApi#list_organization_audit_log\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
1028
|
+
end
|
|
1029
|
+
return data, status_code, headers
|
|
1030
|
+
end
|
|
1031
|
+
|
|
1032
|
+
# List org-brain concepts (curated knowledge surfaced to agents).
|
|
1033
|
+
# @param org [String]
|
|
1034
|
+
# @param [Hash] opts the optional parameters
|
|
1035
|
+
# @return [Hash<String, Object>]
|
|
1036
|
+
def list_organization_concepts(org, opts = {})
|
|
1037
|
+
data, _status_code, _headers = list_organization_concepts_with_http_info(org, opts)
|
|
1038
|
+
data
|
|
1039
|
+
end
|
|
1040
|
+
|
|
1041
|
+
# List org-brain concepts (curated knowledge surfaced to agents).
|
|
1042
|
+
# @param org [String]
|
|
1043
|
+
# @param [Hash] opts the optional parameters
|
|
1044
|
+
# @return [Array<(Hash<String, Object>, Integer, Hash)>] Hash<String, Object> data, response status code and response headers
|
|
1045
|
+
def list_organization_concepts_with_http_info(org, opts = {})
|
|
1046
|
+
if @api_client.config.debugging
|
|
1047
|
+
@api_client.config.logger.debug 'Calling API: OrganizationsApi.list_organization_concepts ...'
|
|
1048
|
+
end
|
|
1049
|
+
# verify the required parameter 'org' is set
|
|
1050
|
+
if @api_client.config.client_side_validation && org.nil?
|
|
1051
|
+
fail ArgumentError, "Missing the required parameter 'org' when calling OrganizationsApi.list_organization_concepts"
|
|
1052
|
+
end
|
|
1053
|
+
# resource path
|
|
1054
|
+
local_var_path = '/v1/organizations/{org}/concepts'.sub('{org}', CGI.escape(org.to_s))
|
|
1055
|
+
|
|
1056
|
+
# query parameters
|
|
1057
|
+
query_params = opts[:query_params] || {}
|
|
1058
|
+
|
|
1059
|
+
# header parameters
|
|
1060
|
+
header_params = opts[:header_params] || {}
|
|
1061
|
+
# HTTP header 'Accept' (if needed)
|
|
1062
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
1063
|
+
|
|
1064
|
+
# form parameters
|
|
1065
|
+
form_params = opts[:form_params] || {}
|
|
1066
|
+
|
|
1067
|
+
# http body (model)
|
|
1068
|
+
post_body = opts[:debug_body]
|
|
1069
|
+
|
|
1070
|
+
# return_type
|
|
1071
|
+
return_type = opts[:debug_return_type] || 'Hash<String, Object>'
|
|
1072
|
+
|
|
1073
|
+
# auth_names
|
|
1074
|
+
auth_names = opts[:debug_auth_names] || ['bearerAuth']
|
|
1075
|
+
|
|
1076
|
+
new_options = opts.merge(
|
|
1077
|
+
:operation => :"OrganizationsApi.list_organization_concepts",
|
|
1078
|
+
:header_params => header_params,
|
|
1079
|
+
:query_params => query_params,
|
|
1080
|
+
:form_params => form_params,
|
|
1081
|
+
:body => post_body,
|
|
1082
|
+
:auth_names => auth_names,
|
|
1083
|
+
:return_type => return_type
|
|
1084
|
+
)
|
|
1085
|
+
|
|
1086
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
1087
|
+
if @api_client.config.debugging
|
|
1088
|
+
@api_client.config.logger.debug "API called: OrganizationsApi#list_organization_concepts\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
1089
|
+
end
|
|
1090
|
+
return data, status_code, headers
|
|
1091
|
+
end
|
|
1092
|
+
|
|
1093
|
+
# List custom roles defined on the organization.
|
|
1094
|
+
# @param org [String]
|
|
1095
|
+
# @param [Hash] opts the optional parameters
|
|
1096
|
+
# @return [Hash<String, Object>]
|
|
1097
|
+
def list_organization_custom_roles(org, opts = {})
|
|
1098
|
+
data, _status_code, _headers = list_organization_custom_roles_with_http_info(org, opts)
|
|
1099
|
+
data
|
|
1100
|
+
end
|
|
1101
|
+
|
|
1102
|
+
# List custom roles defined on the organization.
|
|
1103
|
+
# @param org [String]
|
|
1104
|
+
# @param [Hash] opts the optional parameters
|
|
1105
|
+
# @return [Array<(Hash<String, Object>, Integer, Hash)>] Hash<String, Object> data, response status code and response headers
|
|
1106
|
+
def list_organization_custom_roles_with_http_info(org, opts = {})
|
|
1107
|
+
if @api_client.config.debugging
|
|
1108
|
+
@api_client.config.logger.debug 'Calling API: OrganizationsApi.list_organization_custom_roles ...'
|
|
1109
|
+
end
|
|
1110
|
+
# verify the required parameter 'org' is set
|
|
1111
|
+
if @api_client.config.client_side_validation && org.nil?
|
|
1112
|
+
fail ArgumentError, "Missing the required parameter 'org' when calling OrganizationsApi.list_organization_custom_roles"
|
|
1113
|
+
end
|
|
1114
|
+
# resource path
|
|
1115
|
+
local_var_path = '/v1/organizations/{org}/roles'.sub('{org}', CGI.escape(org.to_s))
|
|
1116
|
+
|
|
1117
|
+
# query parameters
|
|
1118
|
+
query_params = opts[:query_params] || {}
|
|
1119
|
+
|
|
1120
|
+
# header parameters
|
|
1121
|
+
header_params = opts[:header_params] || {}
|
|
1122
|
+
# HTTP header 'Accept' (if needed)
|
|
1123
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
1124
|
+
|
|
1125
|
+
# form parameters
|
|
1126
|
+
form_params = opts[:form_params] || {}
|
|
1127
|
+
|
|
1128
|
+
# http body (model)
|
|
1129
|
+
post_body = opts[:debug_body]
|
|
1130
|
+
|
|
1131
|
+
# return_type
|
|
1132
|
+
return_type = opts[:debug_return_type] || 'Hash<String, Object>'
|
|
1133
|
+
|
|
1134
|
+
# auth_names
|
|
1135
|
+
auth_names = opts[:debug_auth_names] || ['bearerAuth']
|
|
1136
|
+
|
|
1137
|
+
new_options = opts.merge(
|
|
1138
|
+
:operation => :"OrganizationsApi.list_organization_custom_roles",
|
|
1139
|
+
:header_params => header_params,
|
|
1140
|
+
:query_params => query_params,
|
|
1141
|
+
:form_params => form_params,
|
|
1142
|
+
:body => post_body,
|
|
1143
|
+
:auth_names => auth_names,
|
|
1144
|
+
:return_type => return_type
|
|
1145
|
+
)
|
|
1146
|
+
|
|
1147
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
1148
|
+
if @api_client.config.debugging
|
|
1149
|
+
@api_client.config.logger.debug "API called: OrganizationsApi#list_organization_custom_roles\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
1150
|
+
end
|
|
1151
|
+
return data, status_code, headers
|
|
1152
|
+
end
|
|
1153
|
+
|
|
1154
|
+
# List pending invitations for an organization.
|
|
1155
|
+
# @param org [String]
|
|
1156
|
+
# @param [Hash] opts the optional parameters
|
|
1157
|
+
# @return [OrganizationInvitationListResponse]
|
|
1158
|
+
def list_organization_invitations(org, opts = {})
|
|
1159
|
+
data, _status_code, _headers = list_organization_invitations_with_http_info(org, opts)
|
|
1160
|
+
data
|
|
1161
|
+
end
|
|
1162
|
+
|
|
1163
|
+
# List pending invitations for an organization.
|
|
1164
|
+
# @param org [String]
|
|
1165
|
+
# @param [Hash] opts the optional parameters
|
|
1166
|
+
# @return [Array<(OrganizationInvitationListResponse, Integer, Hash)>] OrganizationInvitationListResponse data, response status code and response headers
|
|
1167
|
+
def list_organization_invitations_with_http_info(org, opts = {})
|
|
1168
|
+
if @api_client.config.debugging
|
|
1169
|
+
@api_client.config.logger.debug 'Calling API: OrganizationsApi.list_organization_invitations ...'
|
|
1170
|
+
end
|
|
1171
|
+
# verify the required parameter 'org' is set
|
|
1172
|
+
if @api_client.config.client_side_validation && org.nil?
|
|
1173
|
+
fail ArgumentError, "Missing the required parameter 'org' when calling OrganizationsApi.list_organization_invitations"
|
|
1174
|
+
end
|
|
1175
|
+
# resource path
|
|
1176
|
+
local_var_path = '/v1/organizations/{org}/invitations'.sub('{org}', CGI.escape(org.to_s))
|
|
1177
|
+
|
|
1178
|
+
# query parameters
|
|
1179
|
+
query_params = opts[:query_params] || {}
|
|
1180
|
+
|
|
1181
|
+
# header parameters
|
|
1182
|
+
header_params = opts[:header_params] || {}
|
|
1183
|
+
# HTTP header 'Accept' (if needed)
|
|
1184
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
1185
|
+
|
|
1186
|
+
# form parameters
|
|
1187
|
+
form_params = opts[:form_params] || {}
|
|
1188
|
+
|
|
1189
|
+
# http body (model)
|
|
1190
|
+
post_body = opts[:debug_body]
|
|
1191
|
+
|
|
1192
|
+
# return_type
|
|
1193
|
+
return_type = opts[:debug_return_type] || 'OrganizationInvitationListResponse'
|
|
1194
|
+
|
|
1195
|
+
# auth_names
|
|
1196
|
+
auth_names = opts[:debug_auth_names] || ['bearerAuth']
|
|
1197
|
+
|
|
1198
|
+
new_options = opts.merge(
|
|
1199
|
+
:operation => :"OrganizationsApi.list_organization_invitations",
|
|
1200
|
+
:header_params => header_params,
|
|
1201
|
+
:query_params => query_params,
|
|
1202
|
+
:form_params => form_params,
|
|
1203
|
+
:body => post_body,
|
|
1204
|
+
:auth_names => auth_names,
|
|
1205
|
+
:return_type => return_type
|
|
1206
|
+
)
|
|
1207
|
+
|
|
1208
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
1209
|
+
if @api_client.config.debugging
|
|
1210
|
+
@api_client.config.logger.debug "API called: OrganizationsApi#list_organization_invitations\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
1211
|
+
end
|
|
1212
|
+
return data, status_code, headers
|
|
1213
|
+
end
|
|
1214
|
+
|
|
1215
|
+
# List members of an organization.
|
|
1216
|
+
# @param org [String]
|
|
1217
|
+
# @param [Hash] opts the optional parameters
|
|
1218
|
+
# @return [OrganizationMemberListResponse]
|
|
1219
|
+
def list_organization_members(org, opts = {})
|
|
1220
|
+
data, _status_code, _headers = list_organization_members_with_http_info(org, opts)
|
|
1221
|
+
data
|
|
1222
|
+
end
|
|
1223
|
+
|
|
1224
|
+
# List members of an organization.
|
|
1225
|
+
# @param org [String]
|
|
1226
|
+
# @param [Hash] opts the optional parameters
|
|
1227
|
+
# @return [Array<(OrganizationMemberListResponse, Integer, Hash)>] OrganizationMemberListResponse data, response status code and response headers
|
|
1228
|
+
def list_organization_members_with_http_info(org, opts = {})
|
|
1229
|
+
if @api_client.config.debugging
|
|
1230
|
+
@api_client.config.logger.debug 'Calling API: OrganizationsApi.list_organization_members ...'
|
|
1231
|
+
end
|
|
1232
|
+
# verify the required parameter 'org' is set
|
|
1233
|
+
if @api_client.config.client_side_validation && org.nil?
|
|
1234
|
+
fail ArgumentError, "Missing the required parameter 'org' when calling OrganizationsApi.list_organization_members"
|
|
1235
|
+
end
|
|
1236
|
+
# resource path
|
|
1237
|
+
local_var_path = '/v1/organizations/{org}/members'.sub('{org}', CGI.escape(org.to_s))
|
|
1238
|
+
|
|
1239
|
+
# query parameters
|
|
1240
|
+
query_params = opts[:query_params] || {}
|
|
1241
|
+
|
|
1242
|
+
# header parameters
|
|
1243
|
+
header_params = opts[:header_params] || {}
|
|
1244
|
+
# HTTP header 'Accept' (if needed)
|
|
1245
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
1246
|
+
|
|
1247
|
+
# form parameters
|
|
1248
|
+
form_params = opts[:form_params] || {}
|
|
1249
|
+
|
|
1250
|
+
# http body (model)
|
|
1251
|
+
post_body = opts[:debug_body]
|
|
1252
|
+
|
|
1253
|
+
# return_type
|
|
1254
|
+
return_type = opts[:debug_return_type] || 'OrganizationMemberListResponse'
|
|
1255
|
+
|
|
1256
|
+
# auth_names
|
|
1257
|
+
auth_names = opts[:debug_auth_names] || ['bearerAuth']
|
|
1258
|
+
|
|
1259
|
+
new_options = opts.merge(
|
|
1260
|
+
:operation => :"OrganizationsApi.list_organization_members",
|
|
1261
|
+
:header_params => header_params,
|
|
1262
|
+
:query_params => query_params,
|
|
1263
|
+
:form_params => form_params,
|
|
1264
|
+
:body => post_body,
|
|
1265
|
+
:auth_names => auth_names,
|
|
1266
|
+
:return_type => return_type
|
|
1267
|
+
)
|
|
1268
|
+
|
|
1269
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
1270
|
+
if @api_client.config.debugging
|
|
1271
|
+
@api_client.config.logger.debug "API called: OrganizationsApi#list_organization_members\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
1272
|
+
end
|
|
1273
|
+
return data, status_code, headers
|
|
1274
|
+
end
|
|
1275
|
+
|
|
1276
|
+
# List workspaces in an organization.
|
|
1277
|
+
# @param org [String]
|
|
1278
|
+
# @param [Hash] opts the optional parameters
|
|
1279
|
+
# @return [WorkspaceListResponse]
|
|
1280
|
+
def list_organization_workspaces(org, opts = {})
|
|
1281
|
+
data, _status_code, _headers = list_organization_workspaces_with_http_info(org, opts)
|
|
1282
|
+
data
|
|
1283
|
+
end
|
|
1284
|
+
|
|
1285
|
+
# List workspaces in an organization.
|
|
1286
|
+
# @param org [String]
|
|
1287
|
+
# @param [Hash] opts the optional parameters
|
|
1288
|
+
# @return [Array<(WorkspaceListResponse, Integer, Hash)>] WorkspaceListResponse data, response status code and response headers
|
|
1289
|
+
def list_organization_workspaces_with_http_info(org, opts = {})
|
|
1290
|
+
if @api_client.config.debugging
|
|
1291
|
+
@api_client.config.logger.debug 'Calling API: OrganizationsApi.list_organization_workspaces ...'
|
|
1292
|
+
end
|
|
1293
|
+
# verify the required parameter 'org' is set
|
|
1294
|
+
if @api_client.config.client_side_validation && org.nil?
|
|
1295
|
+
fail ArgumentError, "Missing the required parameter 'org' when calling OrganizationsApi.list_organization_workspaces"
|
|
1296
|
+
end
|
|
1297
|
+
# resource path
|
|
1298
|
+
local_var_path = '/v1/organizations/{org}/workspaces'.sub('{org}', CGI.escape(org.to_s))
|
|
1299
|
+
|
|
1300
|
+
# query parameters
|
|
1301
|
+
query_params = opts[:query_params] || {}
|
|
1302
|
+
|
|
1303
|
+
# header parameters
|
|
1304
|
+
header_params = opts[:header_params] || {}
|
|
1305
|
+
# HTTP header 'Accept' (if needed)
|
|
1306
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
1307
|
+
|
|
1308
|
+
# form parameters
|
|
1309
|
+
form_params = opts[:form_params] || {}
|
|
1310
|
+
|
|
1311
|
+
# http body (model)
|
|
1312
|
+
post_body = opts[:debug_body]
|
|
1313
|
+
|
|
1314
|
+
# return_type
|
|
1315
|
+
return_type = opts[:debug_return_type] || 'WorkspaceListResponse'
|
|
1316
|
+
|
|
1317
|
+
# auth_names
|
|
1318
|
+
auth_names = opts[:debug_auth_names] || ['bearerAuth']
|
|
1319
|
+
|
|
1320
|
+
new_options = opts.merge(
|
|
1321
|
+
:operation => :"OrganizationsApi.list_organization_workspaces",
|
|
1322
|
+
:header_params => header_params,
|
|
1323
|
+
:query_params => query_params,
|
|
1324
|
+
:form_params => form_params,
|
|
1325
|
+
:body => post_body,
|
|
1326
|
+
:auth_names => auth_names,
|
|
1327
|
+
:return_type => return_type
|
|
1328
|
+
)
|
|
1329
|
+
|
|
1330
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
1331
|
+
if @api_client.config.debugging
|
|
1332
|
+
@api_client.config.logger.debug "API called: OrganizationsApi#list_organization_workspaces\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
1333
|
+
end
|
|
1334
|
+
return data, status_code, headers
|
|
1335
|
+
end
|
|
1336
|
+
|
|
1337
|
+
# Remove a member from the organization.
|
|
1338
|
+
# @param org [String]
|
|
1339
|
+
# @param member_id [String]
|
|
1340
|
+
# @param [Hash] opts the optional parameters
|
|
1341
|
+
# @return [nil]
|
|
1342
|
+
def remove_organization_member(org, member_id, opts = {})
|
|
1343
|
+
remove_organization_member_with_http_info(org, member_id, opts)
|
|
1344
|
+
nil
|
|
1345
|
+
end
|
|
1346
|
+
|
|
1347
|
+
# Remove a member from the organization.
|
|
1348
|
+
# @param org [String]
|
|
1349
|
+
# @param member_id [String]
|
|
1350
|
+
# @param [Hash] opts the optional parameters
|
|
1351
|
+
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
|
|
1352
|
+
def remove_organization_member_with_http_info(org, member_id, opts = {})
|
|
1353
|
+
if @api_client.config.debugging
|
|
1354
|
+
@api_client.config.logger.debug 'Calling API: OrganizationsApi.remove_organization_member ...'
|
|
1355
|
+
end
|
|
1356
|
+
# verify the required parameter 'org' is set
|
|
1357
|
+
if @api_client.config.client_side_validation && org.nil?
|
|
1358
|
+
fail ArgumentError, "Missing the required parameter 'org' when calling OrganizationsApi.remove_organization_member"
|
|
1359
|
+
end
|
|
1360
|
+
# verify the required parameter 'member_id' is set
|
|
1361
|
+
if @api_client.config.client_side_validation && member_id.nil?
|
|
1362
|
+
fail ArgumentError, "Missing the required parameter 'member_id' when calling OrganizationsApi.remove_organization_member"
|
|
1363
|
+
end
|
|
1364
|
+
# resource path
|
|
1365
|
+
local_var_path = '/v1/organizations/{org}/members/{memberId}'.sub('{org}', CGI.escape(org.to_s)).sub('{memberId}', CGI.escape(member_id.to_s))
|
|
1366
|
+
|
|
1367
|
+
# query parameters
|
|
1368
|
+
query_params = opts[:query_params] || {}
|
|
1369
|
+
|
|
1370
|
+
# header parameters
|
|
1371
|
+
header_params = opts[:header_params] || {}
|
|
1372
|
+
# HTTP header 'Accept' (if needed)
|
|
1373
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
1374
|
+
|
|
1375
|
+
# form parameters
|
|
1376
|
+
form_params = opts[:form_params] || {}
|
|
1377
|
+
|
|
1378
|
+
# http body (model)
|
|
1379
|
+
post_body = opts[:debug_body]
|
|
1380
|
+
|
|
1381
|
+
# return_type
|
|
1382
|
+
return_type = opts[:debug_return_type]
|
|
1383
|
+
|
|
1384
|
+
# auth_names
|
|
1385
|
+
auth_names = opts[:debug_auth_names] || ['bearerAuth']
|
|
1386
|
+
|
|
1387
|
+
new_options = opts.merge(
|
|
1388
|
+
:operation => :"OrganizationsApi.remove_organization_member",
|
|
1389
|
+
:header_params => header_params,
|
|
1390
|
+
:query_params => query_params,
|
|
1391
|
+
:form_params => form_params,
|
|
1392
|
+
:body => post_body,
|
|
1393
|
+
:auth_names => auth_names,
|
|
1394
|
+
:return_type => return_type
|
|
1395
|
+
)
|
|
1396
|
+
|
|
1397
|
+
data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options)
|
|
1398
|
+
if @api_client.config.debugging
|
|
1399
|
+
@api_client.config.logger.debug "API called: OrganizationsApi#remove_organization_member\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
1400
|
+
end
|
|
1401
|
+
return data, status_code, headers
|
|
1402
|
+
end
|
|
1403
|
+
|
|
1404
|
+
# Revoke and reissue an invitation with a fresh token.
|
|
1405
|
+
# @param org [String]
|
|
1406
|
+
# @param invitation_id [String]
|
|
1407
|
+
# @param [Hash] opts the optional parameters
|
|
1408
|
+
# @return [OrganizationInvitation]
|
|
1409
|
+
def resend_organization_invitation(org, invitation_id, opts = {})
|
|
1410
|
+
data, _status_code, _headers = resend_organization_invitation_with_http_info(org, invitation_id, opts)
|
|
1411
|
+
data
|
|
1412
|
+
end
|
|
1413
|
+
|
|
1414
|
+
# Revoke and reissue an invitation with a fresh token.
|
|
1415
|
+
# @param org [String]
|
|
1416
|
+
# @param invitation_id [String]
|
|
1417
|
+
# @param [Hash] opts the optional parameters
|
|
1418
|
+
# @return [Array<(OrganizationInvitation, Integer, Hash)>] OrganizationInvitation data, response status code and response headers
|
|
1419
|
+
def resend_organization_invitation_with_http_info(org, invitation_id, opts = {})
|
|
1420
|
+
if @api_client.config.debugging
|
|
1421
|
+
@api_client.config.logger.debug 'Calling API: OrganizationsApi.resend_organization_invitation ...'
|
|
1422
|
+
end
|
|
1423
|
+
# verify the required parameter 'org' is set
|
|
1424
|
+
if @api_client.config.client_side_validation && org.nil?
|
|
1425
|
+
fail ArgumentError, "Missing the required parameter 'org' when calling OrganizationsApi.resend_organization_invitation"
|
|
1426
|
+
end
|
|
1427
|
+
# verify the required parameter 'invitation_id' is set
|
|
1428
|
+
if @api_client.config.client_side_validation && invitation_id.nil?
|
|
1429
|
+
fail ArgumentError, "Missing the required parameter 'invitation_id' when calling OrganizationsApi.resend_organization_invitation"
|
|
1430
|
+
end
|
|
1431
|
+
# resource path
|
|
1432
|
+
local_var_path = '/v1/organizations/{org}/invitations/{invitationId}/resend'.sub('{org}', CGI.escape(org.to_s)).sub('{invitationId}', CGI.escape(invitation_id.to_s))
|
|
1433
|
+
|
|
1434
|
+
# query parameters
|
|
1435
|
+
query_params = opts[:query_params] || {}
|
|
1436
|
+
|
|
1437
|
+
# header parameters
|
|
1438
|
+
header_params = opts[:header_params] || {}
|
|
1439
|
+
# HTTP header 'Accept' (if needed)
|
|
1440
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
1441
|
+
|
|
1442
|
+
# form parameters
|
|
1443
|
+
form_params = opts[:form_params] || {}
|
|
1444
|
+
|
|
1445
|
+
# http body (model)
|
|
1446
|
+
post_body = opts[:debug_body]
|
|
1447
|
+
|
|
1448
|
+
# return_type
|
|
1449
|
+
return_type = opts[:debug_return_type] || 'OrganizationInvitation'
|
|
1450
|
+
|
|
1451
|
+
# auth_names
|
|
1452
|
+
auth_names = opts[:debug_auth_names] || ['bearerAuth']
|
|
1453
|
+
|
|
1454
|
+
new_options = opts.merge(
|
|
1455
|
+
:operation => :"OrganizationsApi.resend_organization_invitation",
|
|
1456
|
+
:header_params => header_params,
|
|
1457
|
+
:query_params => query_params,
|
|
1458
|
+
:form_params => form_params,
|
|
1459
|
+
:body => post_body,
|
|
1460
|
+
:auth_names => auth_names,
|
|
1461
|
+
:return_type => return_type
|
|
1462
|
+
)
|
|
1463
|
+
|
|
1464
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
|
1465
|
+
if @api_client.config.debugging
|
|
1466
|
+
@api_client.config.logger.debug "API called: OrganizationsApi#resend_organization_invitation\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
1467
|
+
end
|
|
1468
|
+
return data, status_code, headers
|
|
1469
|
+
end
|
|
1470
|
+
|
|
1471
|
+
# Revoke a pending invitation.
|
|
1472
|
+
# @param org [String]
|
|
1473
|
+
# @param invitation_id [String]
|
|
1474
|
+
# @param [Hash] opts the optional parameters
|
|
1475
|
+
# @return [nil]
|
|
1476
|
+
def revoke_organization_invitation(org, invitation_id, opts = {})
|
|
1477
|
+
revoke_organization_invitation_with_http_info(org, invitation_id, opts)
|
|
1478
|
+
nil
|
|
1479
|
+
end
|
|
1480
|
+
|
|
1481
|
+
# Revoke a pending invitation.
|
|
1482
|
+
# @param org [String]
|
|
1483
|
+
# @param invitation_id [String]
|
|
1484
|
+
# @param [Hash] opts the optional parameters
|
|
1485
|
+
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
|
|
1486
|
+
def revoke_organization_invitation_with_http_info(org, invitation_id, opts = {})
|
|
1487
|
+
if @api_client.config.debugging
|
|
1488
|
+
@api_client.config.logger.debug 'Calling API: OrganizationsApi.revoke_organization_invitation ...'
|
|
1489
|
+
end
|
|
1490
|
+
# verify the required parameter 'org' is set
|
|
1491
|
+
if @api_client.config.client_side_validation && org.nil?
|
|
1492
|
+
fail ArgumentError, "Missing the required parameter 'org' when calling OrganizationsApi.revoke_organization_invitation"
|
|
1493
|
+
end
|
|
1494
|
+
# verify the required parameter 'invitation_id' is set
|
|
1495
|
+
if @api_client.config.client_side_validation && invitation_id.nil?
|
|
1496
|
+
fail ArgumentError, "Missing the required parameter 'invitation_id' when calling OrganizationsApi.revoke_organization_invitation"
|
|
1497
|
+
end
|
|
1498
|
+
# resource path
|
|
1499
|
+
local_var_path = '/v1/organizations/{org}/invitations/{invitationId}'.sub('{org}', CGI.escape(org.to_s)).sub('{invitationId}', CGI.escape(invitation_id.to_s))
|
|
1500
|
+
|
|
1501
|
+
# query parameters
|
|
1502
|
+
query_params = opts[:query_params] || {}
|
|
1503
|
+
|
|
1504
|
+
# header parameters
|
|
1505
|
+
header_params = opts[:header_params] || {}
|
|
1506
|
+
# HTTP header 'Accept' (if needed)
|
|
1507
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
1508
|
+
|
|
1509
|
+
# form parameters
|
|
1510
|
+
form_params = opts[:form_params] || {}
|
|
1511
|
+
|
|
1512
|
+
# http body (model)
|
|
1513
|
+
post_body = opts[:debug_body]
|
|
1514
|
+
|
|
1515
|
+
# return_type
|
|
1516
|
+
return_type = opts[:debug_return_type]
|
|
1517
|
+
|
|
1518
|
+
# auth_names
|
|
1519
|
+
auth_names = opts[:debug_auth_names] || ['bearerAuth']
|
|
1520
|
+
|
|
1521
|
+
new_options = opts.merge(
|
|
1522
|
+
:operation => :"OrganizationsApi.revoke_organization_invitation",
|
|
1523
|
+
:header_params => header_params,
|
|
1524
|
+
:query_params => query_params,
|
|
1525
|
+
:form_params => form_params,
|
|
1526
|
+
:body => post_body,
|
|
1527
|
+
:auth_names => auth_names,
|
|
1528
|
+
:return_type => return_type
|
|
1529
|
+
)
|
|
1530
|
+
|
|
1531
|
+
data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options)
|
|
1532
|
+
if @api_client.config.debugging
|
|
1533
|
+
@api_client.config.logger.debug "API called: OrganizationsApi#revoke_organization_invitation\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
1534
|
+
end
|
|
1535
|
+
return data, status_code, headers
|
|
1536
|
+
end
|
|
1537
|
+
|
|
1538
|
+
# Update organization metadata.
|
|
1539
|
+
# @param org [String] Organization id or slug.
|
|
1540
|
+
# @param update_organization_request [UpdateOrganizationRequest]
|
|
1541
|
+
# @param [Hash] opts the optional parameters
|
|
1542
|
+
# @return [Hash<String, Object>]
|
|
1543
|
+
def update_organization(org, update_organization_request, opts = {})
|
|
1544
|
+
data, _status_code, _headers = update_organization_with_http_info(org, update_organization_request, opts)
|
|
1545
|
+
data
|
|
1546
|
+
end
|
|
1547
|
+
|
|
1548
|
+
# Update organization metadata.
|
|
1549
|
+
# @param org [String] Organization id or slug.
|
|
1550
|
+
# @param update_organization_request [UpdateOrganizationRequest]
|
|
1551
|
+
# @param [Hash] opts the optional parameters
|
|
1552
|
+
# @return [Array<(Hash<String, Object>, Integer, Hash)>] Hash<String, Object> data, response status code and response headers
|
|
1553
|
+
def update_organization_with_http_info(org, update_organization_request, opts = {})
|
|
1554
|
+
if @api_client.config.debugging
|
|
1555
|
+
@api_client.config.logger.debug 'Calling API: OrganizationsApi.update_organization ...'
|
|
1556
|
+
end
|
|
1557
|
+
# verify the required parameter 'org' is set
|
|
1558
|
+
if @api_client.config.client_side_validation && org.nil?
|
|
1559
|
+
fail ArgumentError, "Missing the required parameter 'org' when calling OrganizationsApi.update_organization"
|
|
1560
|
+
end
|
|
1561
|
+
# verify the required parameter 'update_organization_request' is set
|
|
1562
|
+
if @api_client.config.client_side_validation && update_organization_request.nil?
|
|
1563
|
+
fail ArgumentError, "Missing the required parameter 'update_organization_request' when calling OrganizationsApi.update_organization"
|
|
1564
|
+
end
|
|
1565
|
+
# resource path
|
|
1566
|
+
local_var_path = '/v1/organizations/{org}'.sub('{org}', CGI.escape(org.to_s))
|
|
1567
|
+
|
|
1568
|
+
# query parameters
|
|
1569
|
+
query_params = opts[:query_params] || {}
|
|
1570
|
+
|
|
1571
|
+
# header parameters
|
|
1572
|
+
header_params = opts[:header_params] || {}
|
|
1573
|
+
# HTTP header 'Accept' (if needed)
|
|
1574
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
1575
|
+
# HTTP header 'Content-Type'
|
|
1576
|
+
content_type = @api_client.select_header_content_type(['application/json'])
|
|
1577
|
+
if !content_type.nil?
|
|
1578
|
+
header_params['Content-Type'] = content_type
|
|
1579
|
+
end
|
|
1580
|
+
|
|
1581
|
+
# form parameters
|
|
1582
|
+
form_params = opts[:form_params] || {}
|
|
1583
|
+
|
|
1584
|
+
# http body (model)
|
|
1585
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(update_organization_request)
|
|
1586
|
+
|
|
1587
|
+
# return_type
|
|
1588
|
+
return_type = opts[:debug_return_type] || 'Hash<String, Object>'
|
|
1589
|
+
|
|
1590
|
+
# auth_names
|
|
1591
|
+
auth_names = opts[:debug_auth_names] || ['bearerAuth']
|
|
1592
|
+
|
|
1593
|
+
new_options = opts.merge(
|
|
1594
|
+
:operation => :"OrganizationsApi.update_organization",
|
|
1595
|
+
:header_params => header_params,
|
|
1596
|
+
:query_params => query_params,
|
|
1597
|
+
:form_params => form_params,
|
|
1598
|
+
:body => post_body,
|
|
1599
|
+
:auth_names => auth_names,
|
|
1600
|
+
:return_type => return_type
|
|
1601
|
+
)
|
|
1602
|
+
|
|
1603
|
+
data, status_code, headers = @api_client.call_api(:PATCH, local_var_path, new_options)
|
|
1604
|
+
if @api_client.config.debugging
|
|
1605
|
+
@api_client.config.logger.debug "API called: OrganizationsApi#update_organization\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
1606
|
+
end
|
|
1607
|
+
return data, status_code, headers
|
|
1608
|
+
end
|
|
1609
|
+
|
|
1610
|
+
# Update a concept (admin+ only).
|
|
1611
|
+
# @param org [String]
|
|
1612
|
+
# @param slug [String]
|
|
1613
|
+
# @param request_body [Hash<String, Object>]
|
|
1614
|
+
# @param [Hash] opts the optional parameters
|
|
1615
|
+
# @return [Hash<String, Object>]
|
|
1616
|
+
def update_organization_concept(org, slug, request_body, opts = {})
|
|
1617
|
+
data, _status_code, _headers = update_organization_concept_with_http_info(org, slug, request_body, opts)
|
|
1618
|
+
data
|
|
1619
|
+
end
|
|
1620
|
+
|
|
1621
|
+
# Update a concept (admin+ only).
|
|
1622
|
+
# @param org [String]
|
|
1623
|
+
# @param slug [String]
|
|
1624
|
+
# @param request_body [Hash<String, Object>]
|
|
1625
|
+
# @param [Hash] opts the optional parameters
|
|
1626
|
+
# @return [Array<(Hash<String, Object>, Integer, Hash)>] Hash<String, Object> data, response status code and response headers
|
|
1627
|
+
def update_organization_concept_with_http_info(org, slug, request_body, opts = {})
|
|
1628
|
+
if @api_client.config.debugging
|
|
1629
|
+
@api_client.config.logger.debug 'Calling API: OrganizationsApi.update_organization_concept ...'
|
|
1630
|
+
end
|
|
1631
|
+
# verify the required parameter 'org' is set
|
|
1632
|
+
if @api_client.config.client_side_validation && org.nil?
|
|
1633
|
+
fail ArgumentError, "Missing the required parameter 'org' when calling OrganizationsApi.update_organization_concept"
|
|
1634
|
+
end
|
|
1635
|
+
# verify the required parameter 'slug' is set
|
|
1636
|
+
if @api_client.config.client_side_validation && slug.nil?
|
|
1637
|
+
fail ArgumentError, "Missing the required parameter 'slug' when calling OrganizationsApi.update_organization_concept"
|
|
1638
|
+
end
|
|
1639
|
+
# verify the required parameter 'request_body' is set
|
|
1640
|
+
if @api_client.config.client_side_validation && request_body.nil?
|
|
1641
|
+
fail ArgumentError, "Missing the required parameter 'request_body' when calling OrganizationsApi.update_organization_concept"
|
|
1642
|
+
end
|
|
1643
|
+
# resource path
|
|
1644
|
+
local_var_path = '/v1/organizations/{org}/concepts/{slug}'.sub('{org}', CGI.escape(org.to_s)).sub('{slug}', CGI.escape(slug.to_s))
|
|
1645
|
+
|
|
1646
|
+
# query parameters
|
|
1647
|
+
query_params = opts[:query_params] || {}
|
|
1648
|
+
|
|
1649
|
+
# header parameters
|
|
1650
|
+
header_params = opts[:header_params] || {}
|
|
1651
|
+
# HTTP header 'Accept' (if needed)
|
|
1652
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
1653
|
+
# HTTP header 'Content-Type'
|
|
1654
|
+
content_type = @api_client.select_header_content_type(['application/json'])
|
|
1655
|
+
if !content_type.nil?
|
|
1656
|
+
header_params['Content-Type'] = content_type
|
|
1657
|
+
end
|
|
1658
|
+
|
|
1659
|
+
# form parameters
|
|
1660
|
+
form_params = opts[:form_params] || {}
|
|
1661
|
+
|
|
1662
|
+
# http body (model)
|
|
1663
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(request_body)
|
|
1664
|
+
|
|
1665
|
+
# return_type
|
|
1666
|
+
return_type = opts[:debug_return_type] || 'Hash<String, Object>'
|
|
1667
|
+
|
|
1668
|
+
# auth_names
|
|
1669
|
+
auth_names = opts[:debug_auth_names] || ['bearerAuth']
|
|
1670
|
+
|
|
1671
|
+
new_options = opts.merge(
|
|
1672
|
+
:operation => :"OrganizationsApi.update_organization_concept",
|
|
1673
|
+
:header_params => header_params,
|
|
1674
|
+
:query_params => query_params,
|
|
1675
|
+
:form_params => form_params,
|
|
1676
|
+
:body => post_body,
|
|
1677
|
+
:auth_names => auth_names,
|
|
1678
|
+
:return_type => return_type
|
|
1679
|
+
)
|
|
1680
|
+
|
|
1681
|
+
data, status_code, headers = @api_client.call_api(:PATCH, local_var_path, new_options)
|
|
1682
|
+
if @api_client.config.debugging
|
|
1683
|
+
@api_client.config.logger.debug "API called: OrganizationsApi#update_organization_concept\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
1684
|
+
end
|
|
1685
|
+
return data, status_code, headers
|
|
1686
|
+
end
|
|
1687
|
+
|
|
1688
|
+
# Update a custom role (admin+ only).
|
|
1689
|
+
# @param org [String]
|
|
1690
|
+
# @param role_id [String]
|
|
1691
|
+
# @param request_body [Hash<String, Object>]
|
|
1692
|
+
# @param [Hash] opts the optional parameters
|
|
1693
|
+
# @return [Hash<String, Object>]
|
|
1694
|
+
def update_organization_custom_role(org, role_id, request_body, opts = {})
|
|
1695
|
+
data, _status_code, _headers = update_organization_custom_role_with_http_info(org, role_id, request_body, opts)
|
|
1696
|
+
data
|
|
1697
|
+
end
|
|
1698
|
+
|
|
1699
|
+
# Update a custom role (admin+ only).
|
|
1700
|
+
# @param org [String]
|
|
1701
|
+
# @param role_id [String]
|
|
1702
|
+
# @param request_body [Hash<String, Object>]
|
|
1703
|
+
# @param [Hash] opts the optional parameters
|
|
1704
|
+
# @return [Array<(Hash<String, Object>, Integer, Hash)>] Hash<String, Object> data, response status code and response headers
|
|
1705
|
+
def update_organization_custom_role_with_http_info(org, role_id, request_body, opts = {})
|
|
1706
|
+
if @api_client.config.debugging
|
|
1707
|
+
@api_client.config.logger.debug 'Calling API: OrganizationsApi.update_organization_custom_role ...'
|
|
1708
|
+
end
|
|
1709
|
+
# verify the required parameter 'org' is set
|
|
1710
|
+
if @api_client.config.client_side_validation && org.nil?
|
|
1711
|
+
fail ArgumentError, "Missing the required parameter 'org' when calling OrganizationsApi.update_organization_custom_role"
|
|
1712
|
+
end
|
|
1713
|
+
# verify the required parameter 'role_id' is set
|
|
1714
|
+
if @api_client.config.client_side_validation && role_id.nil?
|
|
1715
|
+
fail ArgumentError, "Missing the required parameter 'role_id' when calling OrganizationsApi.update_organization_custom_role"
|
|
1716
|
+
end
|
|
1717
|
+
# verify the required parameter 'request_body' is set
|
|
1718
|
+
if @api_client.config.client_side_validation && request_body.nil?
|
|
1719
|
+
fail ArgumentError, "Missing the required parameter 'request_body' when calling OrganizationsApi.update_organization_custom_role"
|
|
1720
|
+
end
|
|
1721
|
+
# resource path
|
|
1722
|
+
local_var_path = '/v1/organizations/{org}/roles/{roleId}'.sub('{org}', CGI.escape(org.to_s)).sub('{roleId}', CGI.escape(role_id.to_s))
|
|
1723
|
+
|
|
1724
|
+
# query parameters
|
|
1725
|
+
query_params = opts[:query_params] || {}
|
|
1726
|
+
|
|
1727
|
+
# header parameters
|
|
1728
|
+
header_params = opts[:header_params] || {}
|
|
1729
|
+
# HTTP header 'Accept' (if needed)
|
|
1730
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
1731
|
+
# HTTP header 'Content-Type'
|
|
1732
|
+
content_type = @api_client.select_header_content_type(['application/json'])
|
|
1733
|
+
if !content_type.nil?
|
|
1734
|
+
header_params['Content-Type'] = content_type
|
|
1735
|
+
end
|
|
1736
|
+
|
|
1737
|
+
# form parameters
|
|
1738
|
+
form_params = opts[:form_params] || {}
|
|
1739
|
+
|
|
1740
|
+
# http body (model)
|
|
1741
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(request_body)
|
|
1742
|
+
|
|
1743
|
+
# return_type
|
|
1744
|
+
return_type = opts[:debug_return_type] || 'Hash<String, Object>'
|
|
1745
|
+
|
|
1746
|
+
# auth_names
|
|
1747
|
+
auth_names = opts[:debug_auth_names] || ['bearerAuth']
|
|
1748
|
+
|
|
1749
|
+
new_options = opts.merge(
|
|
1750
|
+
:operation => :"OrganizationsApi.update_organization_custom_role",
|
|
1751
|
+
:header_params => header_params,
|
|
1752
|
+
:query_params => query_params,
|
|
1753
|
+
:form_params => form_params,
|
|
1754
|
+
:body => post_body,
|
|
1755
|
+
:auth_names => auth_names,
|
|
1756
|
+
:return_type => return_type
|
|
1757
|
+
)
|
|
1758
|
+
|
|
1759
|
+
data, status_code, headers = @api_client.call_api(:PATCH, local_var_path, new_options)
|
|
1760
|
+
if @api_client.config.debugging
|
|
1761
|
+
@api_client.config.logger.debug "API called: OrganizationsApi#update_organization_custom_role\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
1762
|
+
end
|
|
1763
|
+
return data, status_code, headers
|
|
1764
|
+
end
|
|
1765
|
+
|
|
1766
|
+
# Update a member's role.
|
|
1767
|
+
# @param org [String]
|
|
1768
|
+
# @param member_id [String]
|
|
1769
|
+
# @param update_organization_member_request [UpdateOrganizationMemberRequest]
|
|
1770
|
+
# @param [Hash] opts the optional parameters
|
|
1771
|
+
# @return [Hash<String, Object>]
|
|
1772
|
+
def update_organization_member(org, member_id, update_organization_member_request, opts = {})
|
|
1773
|
+
data, _status_code, _headers = update_organization_member_with_http_info(org, member_id, update_organization_member_request, opts)
|
|
1774
|
+
data
|
|
1775
|
+
end
|
|
1776
|
+
|
|
1777
|
+
# Update a member's role.
|
|
1778
|
+
# @param org [String]
|
|
1779
|
+
# @param member_id [String]
|
|
1780
|
+
# @param update_organization_member_request [UpdateOrganizationMemberRequest]
|
|
1781
|
+
# @param [Hash] opts the optional parameters
|
|
1782
|
+
# @return [Array<(Hash<String, Object>, Integer, Hash)>] Hash<String, Object> data, response status code and response headers
|
|
1783
|
+
def update_organization_member_with_http_info(org, member_id, update_organization_member_request, opts = {})
|
|
1784
|
+
if @api_client.config.debugging
|
|
1785
|
+
@api_client.config.logger.debug 'Calling API: OrganizationsApi.update_organization_member ...'
|
|
1786
|
+
end
|
|
1787
|
+
# verify the required parameter 'org' is set
|
|
1788
|
+
if @api_client.config.client_side_validation && org.nil?
|
|
1789
|
+
fail ArgumentError, "Missing the required parameter 'org' when calling OrganizationsApi.update_organization_member"
|
|
1790
|
+
end
|
|
1791
|
+
# verify the required parameter 'member_id' is set
|
|
1792
|
+
if @api_client.config.client_side_validation && member_id.nil?
|
|
1793
|
+
fail ArgumentError, "Missing the required parameter 'member_id' when calling OrganizationsApi.update_organization_member"
|
|
1794
|
+
end
|
|
1795
|
+
# verify the required parameter 'update_organization_member_request' is set
|
|
1796
|
+
if @api_client.config.client_side_validation && update_organization_member_request.nil?
|
|
1797
|
+
fail ArgumentError, "Missing the required parameter 'update_organization_member_request' when calling OrganizationsApi.update_organization_member"
|
|
1798
|
+
end
|
|
1799
|
+
# resource path
|
|
1800
|
+
local_var_path = '/v1/organizations/{org}/members/{memberId}'.sub('{org}', CGI.escape(org.to_s)).sub('{memberId}', CGI.escape(member_id.to_s))
|
|
1801
|
+
|
|
1802
|
+
# query parameters
|
|
1803
|
+
query_params = opts[:query_params] || {}
|
|
1804
|
+
|
|
1805
|
+
# header parameters
|
|
1806
|
+
header_params = opts[:header_params] || {}
|
|
1807
|
+
# HTTP header 'Accept' (if needed)
|
|
1808
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
1809
|
+
# HTTP header 'Content-Type'
|
|
1810
|
+
content_type = @api_client.select_header_content_type(['application/json'])
|
|
1811
|
+
if !content_type.nil?
|
|
1812
|
+
header_params['Content-Type'] = content_type
|
|
1813
|
+
end
|
|
1814
|
+
|
|
1815
|
+
# form parameters
|
|
1816
|
+
form_params = opts[:form_params] || {}
|
|
1817
|
+
|
|
1818
|
+
# http body (model)
|
|
1819
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(update_organization_member_request)
|
|
1820
|
+
|
|
1821
|
+
# return_type
|
|
1822
|
+
return_type = opts[:debug_return_type] || 'Hash<String, Object>'
|
|
1823
|
+
|
|
1824
|
+
# auth_names
|
|
1825
|
+
auth_names = opts[:debug_auth_names] || ['bearerAuth']
|
|
1826
|
+
|
|
1827
|
+
new_options = opts.merge(
|
|
1828
|
+
:operation => :"OrganizationsApi.update_organization_member",
|
|
1829
|
+
:header_params => header_params,
|
|
1830
|
+
:query_params => query_params,
|
|
1831
|
+
:form_params => form_params,
|
|
1832
|
+
:body => post_body,
|
|
1833
|
+
:auth_names => auth_names,
|
|
1834
|
+
:return_type => return_type
|
|
1835
|
+
)
|
|
1836
|
+
|
|
1837
|
+
data, status_code, headers = @api_client.call_api(:PATCH, local_var_path, new_options)
|
|
1838
|
+
if @api_client.config.debugging
|
|
1839
|
+
@api_client.config.logger.debug "API called: OrganizationsApi#update_organization_member\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
1840
|
+
end
|
|
1841
|
+
return data, status_code, headers
|
|
1842
|
+
end
|
|
1843
|
+
|
|
1844
|
+
# Upload (or replace) the organization logo. Multipart.
|
|
1845
|
+
# @param org [String]
|
|
1846
|
+
# @param [Hash] opts the optional parameters
|
|
1847
|
+
# @option opts [File] :file
|
|
1848
|
+
# @return [Hash<String, Object>]
|
|
1849
|
+
def upload_organization_logo(org, opts = {})
|
|
1850
|
+
data, _status_code, _headers = upload_organization_logo_with_http_info(org, opts)
|
|
1851
|
+
data
|
|
1852
|
+
end
|
|
1853
|
+
|
|
1854
|
+
# Upload (or replace) the organization logo. Multipart.
|
|
1855
|
+
# @param org [String]
|
|
1856
|
+
# @param [Hash] opts the optional parameters
|
|
1857
|
+
# @option opts [File] :file
|
|
1858
|
+
# @return [Array<(Hash<String, Object>, Integer, Hash)>] Hash<String, Object> data, response status code and response headers
|
|
1859
|
+
def upload_organization_logo_with_http_info(org, opts = {})
|
|
1860
|
+
if @api_client.config.debugging
|
|
1861
|
+
@api_client.config.logger.debug 'Calling API: OrganizationsApi.upload_organization_logo ...'
|
|
1862
|
+
end
|
|
1863
|
+
# verify the required parameter 'org' is set
|
|
1864
|
+
if @api_client.config.client_side_validation && org.nil?
|
|
1865
|
+
fail ArgumentError, "Missing the required parameter 'org' when calling OrganizationsApi.upload_organization_logo"
|
|
1866
|
+
end
|
|
1867
|
+
# resource path
|
|
1868
|
+
local_var_path = '/v1/organizations/{org}/logo'.sub('{org}', CGI.escape(org.to_s))
|
|
1869
|
+
|
|
1870
|
+
# query parameters
|
|
1871
|
+
query_params = opts[:query_params] || {}
|
|
1872
|
+
|
|
1873
|
+
# header parameters
|
|
1874
|
+
header_params = opts[:header_params] || {}
|
|
1875
|
+
# HTTP header 'Accept' (if needed)
|
|
1876
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
1877
|
+
# HTTP header 'Content-Type'
|
|
1878
|
+
content_type = @api_client.select_header_content_type(['multipart/form-data'])
|
|
1879
|
+
if !content_type.nil?
|
|
1880
|
+
header_params['Content-Type'] = content_type
|
|
1881
|
+
end
|
|
1882
|
+
|
|
1883
|
+
# form parameters
|
|
1884
|
+
form_params = opts[:form_params] || {}
|
|
1885
|
+
form_params['file'] = opts[:'file'] if !opts[:'file'].nil?
|
|
1886
|
+
|
|
1887
|
+
# http body (model)
|
|
1888
|
+
post_body = opts[:debug_body]
|
|
1889
|
+
|
|
1890
|
+
# return_type
|
|
1891
|
+
return_type = opts[:debug_return_type] || 'Hash<String, Object>'
|
|
1892
|
+
|
|
1893
|
+
# auth_names
|
|
1894
|
+
auth_names = opts[:debug_auth_names] || ['bearerAuth']
|
|
1895
|
+
|
|
1896
|
+
new_options = opts.merge(
|
|
1897
|
+
:operation => :"OrganizationsApi.upload_organization_logo",
|
|
1898
|
+
:header_params => header_params,
|
|
1899
|
+
:query_params => query_params,
|
|
1900
|
+
:form_params => form_params,
|
|
1901
|
+
:body => post_body,
|
|
1902
|
+
:auth_names => auth_names,
|
|
1903
|
+
:return_type => return_type
|
|
1904
|
+
)
|
|
1905
|
+
|
|
1906
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
|
1907
|
+
if @api_client.config.debugging
|
|
1908
|
+
@api_client.config.logger.debug "API called: OrganizationsApi#upload_organization_logo\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
1909
|
+
end
|
|
1910
|
+
return data, status_code, headers
|
|
1911
|
+
end
|
|
1912
|
+
end
|
|
1913
|
+
end
|