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,2167 @@
|
|
|
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 RepoApi
|
|
17
|
+
attr_accessor :api_client
|
|
18
|
+
|
|
19
|
+
def initialize(api_client = ApiClient.default)
|
|
20
|
+
@api_client = api_client
|
|
21
|
+
end
|
|
22
|
+
# Create a branch (from a base sha).
|
|
23
|
+
# @param owner [String]
|
|
24
|
+
# @param repo [String]
|
|
25
|
+
# @param request_body [Hash<String, Object>]
|
|
26
|
+
# @param [Hash] opts the optional parameters
|
|
27
|
+
# @return [Hash<String, Object>]
|
|
28
|
+
def create_repo_branch(owner, repo, request_body, opts = {})
|
|
29
|
+
data, _status_code, _headers = create_repo_branch_with_http_info(owner, repo, request_body, opts)
|
|
30
|
+
data
|
|
31
|
+
end
|
|
32
|
+
|
|
33
|
+
# Create a branch (from a base sha).
|
|
34
|
+
# @param owner [String]
|
|
35
|
+
# @param repo [String]
|
|
36
|
+
# @param request_body [Hash<String, Object>]
|
|
37
|
+
# @param [Hash] opts the optional parameters
|
|
38
|
+
# @return [Array<(Hash<String, Object>, Integer, Hash)>] Hash<String, Object> data, response status code and response headers
|
|
39
|
+
def create_repo_branch_with_http_info(owner, repo, request_body, opts = {})
|
|
40
|
+
if @api_client.config.debugging
|
|
41
|
+
@api_client.config.logger.debug 'Calling API: RepoApi.create_repo_branch ...'
|
|
42
|
+
end
|
|
43
|
+
# verify the required parameter 'owner' is set
|
|
44
|
+
if @api_client.config.client_side_validation && owner.nil?
|
|
45
|
+
fail ArgumentError, "Missing the required parameter 'owner' when calling RepoApi.create_repo_branch"
|
|
46
|
+
end
|
|
47
|
+
# verify the required parameter 'repo' is set
|
|
48
|
+
if @api_client.config.client_side_validation && repo.nil?
|
|
49
|
+
fail ArgumentError, "Missing the required parameter 'repo' when calling RepoApi.create_repo_branch"
|
|
50
|
+
end
|
|
51
|
+
# verify the required parameter 'request_body' is set
|
|
52
|
+
if @api_client.config.client_side_validation && request_body.nil?
|
|
53
|
+
fail ArgumentError, "Missing the required parameter 'request_body' when calling RepoApi.create_repo_branch"
|
|
54
|
+
end
|
|
55
|
+
# resource path
|
|
56
|
+
local_var_path = '/v1/repos/repositories/{owner}/{repo}/branches'.sub('{owner}', CGI.escape(owner.to_s)).sub('{repo}', CGI.escape(repo.to_s))
|
|
57
|
+
|
|
58
|
+
# query parameters
|
|
59
|
+
query_params = opts[:query_params] || {}
|
|
60
|
+
|
|
61
|
+
# header parameters
|
|
62
|
+
header_params = opts[:header_params] || {}
|
|
63
|
+
# HTTP header 'Accept' (if needed)
|
|
64
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
65
|
+
# HTTP header 'Content-Type'
|
|
66
|
+
content_type = @api_client.select_header_content_type(['application/json'])
|
|
67
|
+
if !content_type.nil?
|
|
68
|
+
header_params['Content-Type'] = content_type
|
|
69
|
+
end
|
|
70
|
+
|
|
71
|
+
# form parameters
|
|
72
|
+
form_params = opts[:form_params] || {}
|
|
73
|
+
|
|
74
|
+
# http body (model)
|
|
75
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(request_body)
|
|
76
|
+
|
|
77
|
+
# return_type
|
|
78
|
+
return_type = opts[:debug_return_type] || 'Hash<String, Object>'
|
|
79
|
+
|
|
80
|
+
# auth_names
|
|
81
|
+
auth_names = opts[:debug_auth_names] || ['bearerAuth']
|
|
82
|
+
|
|
83
|
+
new_options = opts.merge(
|
|
84
|
+
:operation => :"RepoApi.create_repo_branch",
|
|
85
|
+
:header_params => header_params,
|
|
86
|
+
:query_params => query_params,
|
|
87
|
+
:form_params => form_params,
|
|
88
|
+
:body => post_body,
|
|
89
|
+
:auth_names => auth_names,
|
|
90
|
+
:return_type => return_type
|
|
91
|
+
)
|
|
92
|
+
|
|
93
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
|
94
|
+
if @api_client.config.debugging
|
|
95
|
+
@api_client.config.logger.debug "API called: RepoApi#create_repo_branch\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
96
|
+
end
|
|
97
|
+
return data, status_code, headers
|
|
98
|
+
end
|
|
99
|
+
|
|
100
|
+
# Open a pull request.
|
|
101
|
+
# @param owner [String]
|
|
102
|
+
# @param repo [String]
|
|
103
|
+
# @param request_body [Hash<String, Object>]
|
|
104
|
+
# @param [Hash] opts the optional parameters
|
|
105
|
+
# @return [Hash<String, Object>]
|
|
106
|
+
def create_repo_pull_request(owner, repo, request_body, opts = {})
|
|
107
|
+
data, _status_code, _headers = create_repo_pull_request_with_http_info(owner, repo, request_body, opts)
|
|
108
|
+
data
|
|
109
|
+
end
|
|
110
|
+
|
|
111
|
+
# Open a pull request.
|
|
112
|
+
# @param owner [String]
|
|
113
|
+
# @param repo [String]
|
|
114
|
+
# @param request_body [Hash<String, Object>]
|
|
115
|
+
# @param [Hash] opts the optional parameters
|
|
116
|
+
# @return [Array<(Hash<String, Object>, Integer, Hash)>] Hash<String, Object> data, response status code and response headers
|
|
117
|
+
def create_repo_pull_request_with_http_info(owner, repo, request_body, opts = {})
|
|
118
|
+
if @api_client.config.debugging
|
|
119
|
+
@api_client.config.logger.debug 'Calling API: RepoApi.create_repo_pull_request ...'
|
|
120
|
+
end
|
|
121
|
+
# verify the required parameter 'owner' is set
|
|
122
|
+
if @api_client.config.client_side_validation && owner.nil?
|
|
123
|
+
fail ArgumentError, "Missing the required parameter 'owner' when calling RepoApi.create_repo_pull_request"
|
|
124
|
+
end
|
|
125
|
+
# verify the required parameter 'repo' is set
|
|
126
|
+
if @api_client.config.client_side_validation && repo.nil?
|
|
127
|
+
fail ArgumentError, "Missing the required parameter 'repo' when calling RepoApi.create_repo_pull_request"
|
|
128
|
+
end
|
|
129
|
+
# verify the required parameter 'request_body' is set
|
|
130
|
+
if @api_client.config.client_side_validation && request_body.nil?
|
|
131
|
+
fail ArgumentError, "Missing the required parameter 'request_body' when calling RepoApi.create_repo_pull_request"
|
|
132
|
+
end
|
|
133
|
+
# resource path
|
|
134
|
+
local_var_path = '/v1/repos/repositories/{owner}/{repo}/pulls'.sub('{owner}', CGI.escape(owner.to_s)).sub('{repo}', CGI.escape(repo.to_s))
|
|
135
|
+
|
|
136
|
+
# query parameters
|
|
137
|
+
query_params = opts[:query_params] || {}
|
|
138
|
+
|
|
139
|
+
# header parameters
|
|
140
|
+
header_params = opts[:header_params] || {}
|
|
141
|
+
# HTTP header 'Accept' (if needed)
|
|
142
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
143
|
+
# HTTP header 'Content-Type'
|
|
144
|
+
content_type = @api_client.select_header_content_type(['application/json'])
|
|
145
|
+
if !content_type.nil?
|
|
146
|
+
header_params['Content-Type'] = content_type
|
|
147
|
+
end
|
|
148
|
+
|
|
149
|
+
# form parameters
|
|
150
|
+
form_params = opts[:form_params] || {}
|
|
151
|
+
|
|
152
|
+
# http body (model)
|
|
153
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(request_body)
|
|
154
|
+
|
|
155
|
+
# return_type
|
|
156
|
+
return_type = opts[:debug_return_type] || 'Hash<String, Object>'
|
|
157
|
+
|
|
158
|
+
# auth_names
|
|
159
|
+
auth_names = opts[:debug_auth_names] || ['bearerAuth']
|
|
160
|
+
|
|
161
|
+
new_options = opts.merge(
|
|
162
|
+
:operation => :"RepoApi.create_repo_pull_request",
|
|
163
|
+
:header_params => header_params,
|
|
164
|
+
:query_params => query_params,
|
|
165
|
+
:form_params => form_params,
|
|
166
|
+
:body => post_body,
|
|
167
|
+
:auth_names => auth_names,
|
|
168
|
+
:return_type => return_type
|
|
169
|
+
)
|
|
170
|
+
|
|
171
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
|
172
|
+
if @api_client.config.debugging
|
|
173
|
+
@api_client.config.logger.debug "API called: RepoApi#create_repo_pull_request\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
174
|
+
end
|
|
175
|
+
return data, status_code, headers
|
|
176
|
+
end
|
|
177
|
+
|
|
178
|
+
# Create a repository.
|
|
179
|
+
# @param request_body [Hash<String, Object>]
|
|
180
|
+
# @param [Hash] opts the optional parameters
|
|
181
|
+
# @return [Hash<String, Object>]
|
|
182
|
+
def create_repo_repository(request_body, opts = {})
|
|
183
|
+
data, _status_code, _headers = create_repo_repository_with_http_info(request_body, opts)
|
|
184
|
+
data
|
|
185
|
+
end
|
|
186
|
+
|
|
187
|
+
# Create a repository.
|
|
188
|
+
# @param request_body [Hash<String, Object>]
|
|
189
|
+
# @param [Hash] opts the optional parameters
|
|
190
|
+
# @return [Array<(Hash<String, Object>, Integer, Hash)>] Hash<String, Object> data, response status code and response headers
|
|
191
|
+
def create_repo_repository_with_http_info(request_body, opts = {})
|
|
192
|
+
if @api_client.config.debugging
|
|
193
|
+
@api_client.config.logger.debug 'Calling API: RepoApi.create_repo_repository ...'
|
|
194
|
+
end
|
|
195
|
+
# verify the required parameter 'request_body' is set
|
|
196
|
+
if @api_client.config.client_side_validation && request_body.nil?
|
|
197
|
+
fail ArgumentError, "Missing the required parameter 'request_body' when calling RepoApi.create_repo_repository"
|
|
198
|
+
end
|
|
199
|
+
# resource path
|
|
200
|
+
local_var_path = '/v1/repos/repositories'
|
|
201
|
+
|
|
202
|
+
# query parameters
|
|
203
|
+
query_params = opts[:query_params] || {}
|
|
204
|
+
|
|
205
|
+
# header parameters
|
|
206
|
+
header_params = opts[:header_params] || {}
|
|
207
|
+
# HTTP header 'Accept' (if needed)
|
|
208
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
209
|
+
# HTTP header 'Content-Type'
|
|
210
|
+
content_type = @api_client.select_header_content_type(['application/json'])
|
|
211
|
+
if !content_type.nil?
|
|
212
|
+
header_params['Content-Type'] = content_type
|
|
213
|
+
end
|
|
214
|
+
|
|
215
|
+
# form parameters
|
|
216
|
+
form_params = opts[:form_params] || {}
|
|
217
|
+
|
|
218
|
+
# http body (model)
|
|
219
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(request_body)
|
|
220
|
+
|
|
221
|
+
# return_type
|
|
222
|
+
return_type = opts[:debug_return_type] || 'Hash<String, Object>'
|
|
223
|
+
|
|
224
|
+
# auth_names
|
|
225
|
+
auth_names = opts[:debug_auth_names] || ['bearerAuth']
|
|
226
|
+
|
|
227
|
+
new_options = opts.merge(
|
|
228
|
+
:operation => :"RepoApi.create_repo_repository",
|
|
229
|
+
:header_params => header_params,
|
|
230
|
+
:query_params => query_params,
|
|
231
|
+
:form_params => form_params,
|
|
232
|
+
:body => post_body,
|
|
233
|
+
:auth_names => auth_names,
|
|
234
|
+
:return_type => return_type
|
|
235
|
+
)
|
|
236
|
+
|
|
237
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
|
238
|
+
if @api_client.config.debugging
|
|
239
|
+
@api_client.config.logger.debug "API called: RepoApi#create_repo_repository\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
240
|
+
end
|
|
241
|
+
return data, status_code, headers
|
|
242
|
+
end
|
|
243
|
+
|
|
244
|
+
# Fetch a single commit.
|
|
245
|
+
# @param owner [String]
|
|
246
|
+
# @param repo [String]
|
|
247
|
+
# @param sha [String]
|
|
248
|
+
# @param [Hash] opts the optional parameters
|
|
249
|
+
# @return [Hash<String, Object>]
|
|
250
|
+
def get_repo_commit(owner, repo, sha, opts = {})
|
|
251
|
+
data, _status_code, _headers = get_repo_commit_with_http_info(owner, repo, sha, opts)
|
|
252
|
+
data
|
|
253
|
+
end
|
|
254
|
+
|
|
255
|
+
# Fetch a single commit.
|
|
256
|
+
# @param owner [String]
|
|
257
|
+
# @param repo [String]
|
|
258
|
+
# @param sha [String]
|
|
259
|
+
# @param [Hash] opts the optional parameters
|
|
260
|
+
# @return [Array<(Hash<String, Object>, Integer, Hash)>] Hash<String, Object> data, response status code and response headers
|
|
261
|
+
def get_repo_commit_with_http_info(owner, repo, sha, opts = {})
|
|
262
|
+
if @api_client.config.debugging
|
|
263
|
+
@api_client.config.logger.debug 'Calling API: RepoApi.get_repo_commit ...'
|
|
264
|
+
end
|
|
265
|
+
# verify the required parameter 'owner' is set
|
|
266
|
+
if @api_client.config.client_side_validation && owner.nil?
|
|
267
|
+
fail ArgumentError, "Missing the required parameter 'owner' when calling RepoApi.get_repo_commit"
|
|
268
|
+
end
|
|
269
|
+
# verify the required parameter 'repo' is set
|
|
270
|
+
if @api_client.config.client_side_validation && repo.nil?
|
|
271
|
+
fail ArgumentError, "Missing the required parameter 'repo' when calling RepoApi.get_repo_commit"
|
|
272
|
+
end
|
|
273
|
+
# verify the required parameter 'sha' is set
|
|
274
|
+
if @api_client.config.client_side_validation && sha.nil?
|
|
275
|
+
fail ArgumentError, "Missing the required parameter 'sha' when calling RepoApi.get_repo_commit"
|
|
276
|
+
end
|
|
277
|
+
# resource path
|
|
278
|
+
local_var_path = '/v1/repos/repositories/{owner}/{repo}/commits/{sha}'.sub('{owner}', CGI.escape(owner.to_s)).sub('{repo}', CGI.escape(repo.to_s)).sub('{sha}', CGI.escape(sha.to_s))
|
|
279
|
+
|
|
280
|
+
# query parameters
|
|
281
|
+
query_params = opts[:query_params] || {}
|
|
282
|
+
|
|
283
|
+
# header parameters
|
|
284
|
+
header_params = opts[:header_params] || {}
|
|
285
|
+
# HTTP header 'Accept' (if needed)
|
|
286
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
287
|
+
|
|
288
|
+
# form parameters
|
|
289
|
+
form_params = opts[:form_params] || {}
|
|
290
|
+
|
|
291
|
+
# http body (model)
|
|
292
|
+
post_body = opts[:debug_body]
|
|
293
|
+
|
|
294
|
+
# return_type
|
|
295
|
+
return_type = opts[:debug_return_type] || 'Hash<String, Object>'
|
|
296
|
+
|
|
297
|
+
# auth_names
|
|
298
|
+
auth_names = opts[:debug_auth_names] || ['bearerAuth']
|
|
299
|
+
|
|
300
|
+
new_options = opts.merge(
|
|
301
|
+
:operation => :"RepoApi.get_repo_commit",
|
|
302
|
+
:header_params => header_params,
|
|
303
|
+
:query_params => query_params,
|
|
304
|
+
:form_params => form_params,
|
|
305
|
+
:body => post_body,
|
|
306
|
+
:auth_names => auth_names,
|
|
307
|
+
:return_type => return_type
|
|
308
|
+
)
|
|
309
|
+
|
|
310
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
311
|
+
if @api_client.config.debugging
|
|
312
|
+
@api_client.config.logger.debug "API called: RepoApi#get_repo_commit\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
313
|
+
end
|
|
314
|
+
return data, status_code, headers
|
|
315
|
+
end
|
|
316
|
+
|
|
317
|
+
# Fetch a single repository.
|
|
318
|
+
# @param owner [String]
|
|
319
|
+
# @param repo [String]
|
|
320
|
+
# @param [Hash] opts the optional parameters
|
|
321
|
+
# @return [Hash<String, Object>]
|
|
322
|
+
def get_repo_repository(owner, repo, opts = {})
|
|
323
|
+
data, _status_code, _headers = get_repo_repository_with_http_info(owner, repo, opts)
|
|
324
|
+
data
|
|
325
|
+
end
|
|
326
|
+
|
|
327
|
+
# Fetch a single repository.
|
|
328
|
+
# @param owner [String]
|
|
329
|
+
# @param repo [String]
|
|
330
|
+
# @param [Hash] opts the optional parameters
|
|
331
|
+
# @return [Array<(Hash<String, Object>, Integer, Hash)>] Hash<String, Object> data, response status code and response headers
|
|
332
|
+
def get_repo_repository_with_http_info(owner, repo, opts = {})
|
|
333
|
+
if @api_client.config.debugging
|
|
334
|
+
@api_client.config.logger.debug 'Calling API: RepoApi.get_repo_repository ...'
|
|
335
|
+
end
|
|
336
|
+
# verify the required parameter 'owner' is set
|
|
337
|
+
if @api_client.config.client_side_validation && owner.nil?
|
|
338
|
+
fail ArgumentError, "Missing the required parameter 'owner' when calling RepoApi.get_repo_repository"
|
|
339
|
+
end
|
|
340
|
+
# verify the required parameter 'repo' is set
|
|
341
|
+
if @api_client.config.client_side_validation && repo.nil?
|
|
342
|
+
fail ArgumentError, "Missing the required parameter 'repo' when calling RepoApi.get_repo_repository"
|
|
343
|
+
end
|
|
344
|
+
# resource path
|
|
345
|
+
local_var_path = '/v1/repos/repositories/{owner}/{repo}'.sub('{owner}', CGI.escape(owner.to_s)).sub('{repo}', CGI.escape(repo.to_s))
|
|
346
|
+
|
|
347
|
+
# query parameters
|
|
348
|
+
query_params = opts[:query_params] || {}
|
|
349
|
+
|
|
350
|
+
# header parameters
|
|
351
|
+
header_params = opts[:header_params] || {}
|
|
352
|
+
# HTTP header 'Accept' (if needed)
|
|
353
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
354
|
+
|
|
355
|
+
# form parameters
|
|
356
|
+
form_params = opts[:form_params] || {}
|
|
357
|
+
|
|
358
|
+
# http body (model)
|
|
359
|
+
post_body = opts[:debug_body]
|
|
360
|
+
|
|
361
|
+
# return_type
|
|
362
|
+
return_type = opts[:debug_return_type] || 'Hash<String, Object>'
|
|
363
|
+
|
|
364
|
+
# auth_names
|
|
365
|
+
auth_names = opts[:debug_auth_names] || ['bearerAuth']
|
|
366
|
+
|
|
367
|
+
new_options = opts.merge(
|
|
368
|
+
:operation => :"RepoApi.get_repo_repository",
|
|
369
|
+
:header_params => header_params,
|
|
370
|
+
:query_params => query_params,
|
|
371
|
+
:form_params => form_params,
|
|
372
|
+
:body => post_body,
|
|
373
|
+
:auth_names => auth_names,
|
|
374
|
+
:return_type => return_type
|
|
375
|
+
)
|
|
376
|
+
|
|
377
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
378
|
+
if @api_client.config.debugging
|
|
379
|
+
@api_client.config.logger.debug "API called: RepoApi#get_repo_repository\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
380
|
+
end
|
|
381
|
+
return data, status_code, headers
|
|
382
|
+
end
|
|
383
|
+
|
|
384
|
+
# Link an existing Spatio task to this repo, allocating a per-repo number.
|
|
385
|
+
# @param owner [String]
|
|
386
|
+
# @param repo [String]
|
|
387
|
+
# @param link_repo_task_request [LinkRepoTaskRequest]
|
|
388
|
+
# @param [Hash] opts the optional parameters
|
|
389
|
+
# @return [Hash<String, Object>]
|
|
390
|
+
def link_repo_task(owner, repo, link_repo_task_request, opts = {})
|
|
391
|
+
data, _status_code, _headers = link_repo_task_with_http_info(owner, repo, link_repo_task_request, opts)
|
|
392
|
+
data
|
|
393
|
+
end
|
|
394
|
+
|
|
395
|
+
# Link an existing Spatio task to this repo, allocating a per-repo number.
|
|
396
|
+
# @param owner [String]
|
|
397
|
+
# @param repo [String]
|
|
398
|
+
# @param link_repo_task_request [LinkRepoTaskRequest]
|
|
399
|
+
# @param [Hash] opts the optional parameters
|
|
400
|
+
# @return [Array<(Hash<String, Object>, Integer, Hash)>] Hash<String, Object> data, response status code and response headers
|
|
401
|
+
def link_repo_task_with_http_info(owner, repo, link_repo_task_request, opts = {})
|
|
402
|
+
if @api_client.config.debugging
|
|
403
|
+
@api_client.config.logger.debug 'Calling API: RepoApi.link_repo_task ...'
|
|
404
|
+
end
|
|
405
|
+
# verify the required parameter 'owner' is set
|
|
406
|
+
if @api_client.config.client_side_validation && owner.nil?
|
|
407
|
+
fail ArgumentError, "Missing the required parameter 'owner' when calling RepoApi.link_repo_task"
|
|
408
|
+
end
|
|
409
|
+
# verify the required parameter 'repo' is set
|
|
410
|
+
if @api_client.config.client_side_validation && repo.nil?
|
|
411
|
+
fail ArgumentError, "Missing the required parameter 'repo' when calling RepoApi.link_repo_task"
|
|
412
|
+
end
|
|
413
|
+
# verify the required parameter 'link_repo_task_request' is set
|
|
414
|
+
if @api_client.config.client_side_validation && link_repo_task_request.nil?
|
|
415
|
+
fail ArgumentError, "Missing the required parameter 'link_repo_task_request' when calling RepoApi.link_repo_task"
|
|
416
|
+
end
|
|
417
|
+
# resource path
|
|
418
|
+
local_var_path = '/v1/repos/repositories/{owner}/{repo}/tasks/link'.sub('{owner}', CGI.escape(owner.to_s)).sub('{repo}', CGI.escape(repo.to_s))
|
|
419
|
+
|
|
420
|
+
# query parameters
|
|
421
|
+
query_params = opts[:query_params] || {}
|
|
422
|
+
|
|
423
|
+
# header parameters
|
|
424
|
+
header_params = opts[:header_params] || {}
|
|
425
|
+
# HTTP header 'Accept' (if needed)
|
|
426
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
427
|
+
# HTTP header 'Content-Type'
|
|
428
|
+
content_type = @api_client.select_header_content_type(['application/json'])
|
|
429
|
+
if !content_type.nil?
|
|
430
|
+
header_params['Content-Type'] = content_type
|
|
431
|
+
end
|
|
432
|
+
|
|
433
|
+
# form parameters
|
|
434
|
+
form_params = opts[:form_params] || {}
|
|
435
|
+
|
|
436
|
+
# http body (model)
|
|
437
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(link_repo_task_request)
|
|
438
|
+
|
|
439
|
+
# return_type
|
|
440
|
+
return_type = opts[:debug_return_type] || 'Hash<String, Object>'
|
|
441
|
+
|
|
442
|
+
# auth_names
|
|
443
|
+
auth_names = opts[:debug_auth_names] || ['bearerAuth']
|
|
444
|
+
|
|
445
|
+
new_options = opts.merge(
|
|
446
|
+
:operation => :"RepoApi.link_repo_task",
|
|
447
|
+
:header_params => header_params,
|
|
448
|
+
:query_params => query_params,
|
|
449
|
+
:form_params => form_params,
|
|
450
|
+
:body => post_body,
|
|
451
|
+
:auth_names => auth_names,
|
|
452
|
+
:return_type => return_type
|
|
453
|
+
)
|
|
454
|
+
|
|
455
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
|
456
|
+
if @api_client.config.debugging
|
|
457
|
+
@api_client.config.logger.debug "API called: RepoApi#link_repo_task\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
458
|
+
end
|
|
459
|
+
return data, status_code, headers
|
|
460
|
+
end
|
|
461
|
+
|
|
462
|
+
# List branches on a repository.
|
|
463
|
+
# @param owner [String]
|
|
464
|
+
# @param repo [String]
|
|
465
|
+
# @param [Hash] opts the optional parameters
|
|
466
|
+
# @return [Hash<String, Object>]
|
|
467
|
+
def list_repo_branches(owner, repo, opts = {})
|
|
468
|
+
data, _status_code, _headers = list_repo_branches_with_http_info(owner, repo, opts)
|
|
469
|
+
data
|
|
470
|
+
end
|
|
471
|
+
|
|
472
|
+
# List branches on a repository.
|
|
473
|
+
# @param owner [String]
|
|
474
|
+
# @param repo [String]
|
|
475
|
+
# @param [Hash] opts the optional parameters
|
|
476
|
+
# @return [Array<(Hash<String, Object>, Integer, Hash)>] Hash<String, Object> data, response status code and response headers
|
|
477
|
+
def list_repo_branches_with_http_info(owner, repo, opts = {})
|
|
478
|
+
if @api_client.config.debugging
|
|
479
|
+
@api_client.config.logger.debug 'Calling API: RepoApi.list_repo_branches ...'
|
|
480
|
+
end
|
|
481
|
+
# verify the required parameter 'owner' is set
|
|
482
|
+
if @api_client.config.client_side_validation && owner.nil?
|
|
483
|
+
fail ArgumentError, "Missing the required parameter 'owner' when calling RepoApi.list_repo_branches"
|
|
484
|
+
end
|
|
485
|
+
# verify the required parameter 'repo' is set
|
|
486
|
+
if @api_client.config.client_side_validation && repo.nil?
|
|
487
|
+
fail ArgumentError, "Missing the required parameter 'repo' when calling RepoApi.list_repo_branches"
|
|
488
|
+
end
|
|
489
|
+
# resource path
|
|
490
|
+
local_var_path = '/v1/repos/repositories/{owner}/{repo}/branches'.sub('{owner}', CGI.escape(owner.to_s)).sub('{repo}', CGI.escape(repo.to_s))
|
|
491
|
+
|
|
492
|
+
# query parameters
|
|
493
|
+
query_params = opts[:query_params] || {}
|
|
494
|
+
|
|
495
|
+
# header parameters
|
|
496
|
+
header_params = opts[:header_params] || {}
|
|
497
|
+
# HTTP header 'Accept' (if needed)
|
|
498
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
499
|
+
|
|
500
|
+
# form parameters
|
|
501
|
+
form_params = opts[:form_params] || {}
|
|
502
|
+
|
|
503
|
+
# http body (model)
|
|
504
|
+
post_body = opts[:debug_body]
|
|
505
|
+
|
|
506
|
+
# return_type
|
|
507
|
+
return_type = opts[:debug_return_type] || 'Hash<String, Object>'
|
|
508
|
+
|
|
509
|
+
# auth_names
|
|
510
|
+
auth_names = opts[:debug_auth_names] || ['bearerAuth']
|
|
511
|
+
|
|
512
|
+
new_options = opts.merge(
|
|
513
|
+
:operation => :"RepoApi.list_repo_branches",
|
|
514
|
+
:header_params => header_params,
|
|
515
|
+
:query_params => query_params,
|
|
516
|
+
:form_params => form_params,
|
|
517
|
+
:body => post_body,
|
|
518
|
+
:auth_names => auth_names,
|
|
519
|
+
:return_type => return_type
|
|
520
|
+
)
|
|
521
|
+
|
|
522
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
523
|
+
if @api_client.config.debugging
|
|
524
|
+
@api_client.config.logger.debug "API called: RepoApi#list_repo_branches\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
525
|
+
end
|
|
526
|
+
return data, status_code, headers
|
|
527
|
+
end
|
|
528
|
+
|
|
529
|
+
# List commits on a repository.
|
|
530
|
+
# @param owner [String]
|
|
531
|
+
# @param repo [String]
|
|
532
|
+
# @param [Hash] opts the optional parameters
|
|
533
|
+
# @option opts [String] :branch
|
|
534
|
+
# @option opts [Integer] :limit
|
|
535
|
+
# @return [Hash<String, Object>]
|
|
536
|
+
def list_repo_commits(owner, repo, opts = {})
|
|
537
|
+
data, _status_code, _headers = list_repo_commits_with_http_info(owner, repo, opts)
|
|
538
|
+
data
|
|
539
|
+
end
|
|
540
|
+
|
|
541
|
+
# List commits on a repository.
|
|
542
|
+
# @param owner [String]
|
|
543
|
+
# @param repo [String]
|
|
544
|
+
# @param [Hash] opts the optional parameters
|
|
545
|
+
# @option opts [String] :branch
|
|
546
|
+
# @option opts [Integer] :limit
|
|
547
|
+
# @return [Array<(Hash<String, Object>, Integer, Hash)>] Hash<String, Object> data, response status code and response headers
|
|
548
|
+
def list_repo_commits_with_http_info(owner, repo, opts = {})
|
|
549
|
+
if @api_client.config.debugging
|
|
550
|
+
@api_client.config.logger.debug 'Calling API: RepoApi.list_repo_commits ...'
|
|
551
|
+
end
|
|
552
|
+
# verify the required parameter 'owner' is set
|
|
553
|
+
if @api_client.config.client_side_validation && owner.nil?
|
|
554
|
+
fail ArgumentError, "Missing the required parameter 'owner' when calling RepoApi.list_repo_commits"
|
|
555
|
+
end
|
|
556
|
+
# verify the required parameter 'repo' is set
|
|
557
|
+
if @api_client.config.client_side_validation && repo.nil?
|
|
558
|
+
fail ArgumentError, "Missing the required parameter 'repo' when calling RepoApi.list_repo_commits"
|
|
559
|
+
end
|
|
560
|
+
# resource path
|
|
561
|
+
local_var_path = '/v1/repos/repositories/{owner}/{repo}/commits'.sub('{owner}', CGI.escape(owner.to_s)).sub('{repo}', CGI.escape(repo.to_s))
|
|
562
|
+
|
|
563
|
+
# query parameters
|
|
564
|
+
query_params = opts[:query_params] || {}
|
|
565
|
+
query_params[:'branch'] = opts[:'branch'] if !opts[:'branch'].nil?
|
|
566
|
+
query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
|
|
567
|
+
|
|
568
|
+
# header parameters
|
|
569
|
+
header_params = opts[:header_params] || {}
|
|
570
|
+
# HTTP header 'Accept' (if needed)
|
|
571
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
572
|
+
|
|
573
|
+
# form parameters
|
|
574
|
+
form_params = opts[:form_params] || {}
|
|
575
|
+
|
|
576
|
+
# http body (model)
|
|
577
|
+
post_body = opts[:debug_body]
|
|
578
|
+
|
|
579
|
+
# return_type
|
|
580
|
+
return_type = opts[:debug_return_type] || 'Hash<String, Object>'
|
|
581
|
+
|
|
582
|
+
# auth_names
|
|
583
|
+
auth_names = opts[:debug_auth_names] || ['bearerAuth']
|
|
584
|
+
|
|
585
|
+
new_options = opts.merge(
|
|
586
|
+
:operation => :"RepoApi.list_repo_commits",
|
|
587
|
+
:header_params => header_params,
|
|
588
|
+
:query_params => query_params,
|
|
589
|
+
:form_params => form_params,
|
|
590
|
+
:body => post_body,
|
|
591
|
+
:auth_names => auth_names,
|
|
592
|
+
:return_type => return_type
|
|
593
|
+
)
|
|
594
|
+
|
|
595
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
596
|
+
if @api_client.config.debugging
|
|
597
|
+
@api_client.config.logger.debug "API called: RepoApi#list_repo_commits\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
598
|
+
end
|
|
599
|
+
return data, status_code, headers
|
|
600
|
+
end
|
|
601
|
+
|
|
602
|
+
# List pull requests on a repository.
|
|
603
|
+
# @param owner [String]
|
|
604
|
+
# @param repo [String]
|
|
605
|
+
# @param [Hash] opts the optional parameters
|
|
606
|
+
# @return [Hash<String, Object>]
|
|
607
|
+
def list_repo_pull_requests(owner, repo, opts = {})
|
|
608
|
+
data, _status_code, _headers = list_repo_pull_requests_with_http_info(owner, repo, opts)
|
|
609
|
+
data
|
|
610
|
+
end
|
|
611
|
+
|
|
612
|
+
# List pull requests on a repository.
|
|
613
|
+
# @param owner [String]
|
|
614
|
+
# @param repo [String]
|
|
615
|
+
# @param [Hash] opts the optional parameters
|
|
616
|
+
# @return [Array<(Hash<String, Object>, Integer, Hash)>] Hash<String, Object> data, response status code and response headers
|
|
617
|
+
def list_repo_pull_requests_with_http_info(owner, repo, opts = {})
|
|
618
|
+
if @api_client.config.debugging
|
|
619
|
+
@api_client.config.logger.debug 'Calling API: RepoApi.list_repo_pull_requests ...'
|
|
620
|
+
end
|
|
621
|
+
# verify the required parameter 'owner' is set
|
|
622
|
+
if @api_client.config.client_side_validation && owner.nil?
|
|
623
|
+
fail ArgumentError, "Missing the required parameter 'owner' when calling RepoApi.list_repo_pull_requests"
|
|
624
|
+
end
|
|
625
|
+
# verify the required parameter 'repo' is set
|
|
626
|
+
if @api_client.config.client_side_validation && repo.nil?
|
|
627
|
+
fail ArgumentError, "Missing the required parameter 'repo' when calling RepoApi.list_repo_pull_requests"
|
|
628
|
+
end
|
|
629
|
+
# resource path
|
|
630
|
+
local_var_path = '/v1/repos/repositories/{owner}/{repo}/pulls'.sub('{owner}', CGI.escape(owner.to_s)).sub('{repo}', CGI.escape(repo.to_s))
|
|
631
|
+
|
|
632
|
+
# query parameters
|
|
633
|
+
query_params = opts[:query_params] || {}
|
|
634
|
+
|
|
635
|
+
# header parameters
|
|
636
|
+
header_params = opts[:header_params] || {}
|
|
637
|
+
# HTTP header 'Accept' (if needed)
|
|
638
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
639
|
+
|
|
640
|
+
# form parameters
|
|
641
|
+
form_params = opts[:form_params] || {}
|
|
642
|
+
|
|
643
|
+
# http body (model)
|
|
644
|
+
post_body = opts[:debug_body]
|
|
645
|
+
|
|
646
|
+
# return_type
|
|
647
|
+
return_type = opts[:debug_return_type] || 'Hash<String, Object>'
|
|
648
|
+
|
|
649
|
+
# auth_names
|
|
650
|
+
auth_names = opts[:debug_auth_names] || ['bearerAuth']
|
|
651
|
+
|
|
652
|
+
new_options = opts.merge(
|
|
653
|
+
:operation => :"RepoApi.list_repo_pull_requests",
|
|
654
|
+
:header_params => header_params,
|
|
655
|
+
:query_params => query_params,
|
|
656
|
+
:form_params => form_params,
|
|
657
|
+
:body => post_body,
|
|
658
|
+
:auth_names => auth_names,
|
|
659
|
+
:return_type => return_type
|
|
660
|
+
)
|
|
661
|
+
|
|
662
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
663
|
+
if @api_client.config.debugging
|
|
664
|
+
@api_client.config.logger.debug "API called: RepoApi#list_repo_pull_requests\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
665
|
+
end
|
|
666
|
+
return data, status_code, headers
|
|
667
|
+
end
|
|
668
|
+
|
|
669
|
+
# List the caller's accessible repositories.
|
|
670
|
+
# @param [Hash] opts the optional parameters
|
|
671
|
+
# @option opts [String] :visibility
|
|
672
|
+
# @option opts [Integer] :limit
|
|
673
|
+
# @return [Hash<String, Object>]
|
|
674
|
+
def list_repo_repositories(opts = {})
|
|
675
|
+
data, _status_code, _headers = list_repo_repositories_with_http_info(opts)
|
|
676
|
+
data
|
|
677
|
+
end
|
|
678
|
+
|
|
679
|
+
# List the caller's accessible repositories.
|
|
680
|
+
# @param [Hash] opts the optional parameters
|
|
681
|
+
# @option opts [String] :visibility
|
|
682
|
+
# @option opts [Integer] :limit
|
|
683
|
+
# @return [Array<(Hash<String, Object>, Integer, Hash)>] Hash<String, Object> data, response status code and response headers
|
|
684
|
+
def list_repo_repositories_with_http_info(opts = {})
|
|
685
|
+
if @api_client.config.debugging
|
|
686
|
+
@api_client.config.logger.debug 'Calling API: RepoApi.list_repo_repositories ...'
|
|
687
|
+
end
|
|
688
|
+
# resource path
|
|
689
|
+
local_var_path = '/v1/repos/repositories'
|
|
690
|
+
|
|
691
|
+
# query parameters
|
|
692
|
+
query_params = opts[:query_params] || {}
|
|
693
|
+
query_params[:'visibility'] = opts[:'visibility'] if !opts[:'visibility'].nil?
|
|
694
|
+
query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
|
|
695
|
+
|
|
696
|
+
# header parameters
|
|
697
|
+
header_params = opts[:header_params] || {}
|
|
698
|
+
# HTTP header 'Accept' (if needed)
|
|
699
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
700
|
+
|
|
701
|
+
# form parameters
|
|
702
|
+
form_params = opts[:form_params] || {}
|
|
703
|
+
|
|
704
|
+
# http body (model)
|
|
705
|
+
post_body = opts[:debug_body]
|
|
706
|
+
|
|
707
|
+
# return_type
|
|
708
|
+
return_type = opts[:debug_return_type] || 'Hash<String, Object>'
|
|
709
|
+
|
|
710
|
+
# auth_names
|
|
711
|
+
auth_names = opts[:debug_auth_names] || ['bearerAuth']
|
|
712
|
+
|
|
713
|
+
new_options = opts.merge(
|
|
714
|
+
:operation => :"RepoApi.list_repo_repositories",
|
|
715
|
+
:header_params => header_params,
|
|
716
|
+
:query_params => query_params,
|
|
717
|
+
:form_params => form_params,
|
|
718
|
+
:body => post_body,
|
|
719
|
+
:auth_names => auth_names,
|
|
720
|
+
:return_type => return_type
|
|
721
|
+
)
|
|
722
|
+
|
|
723
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
724
|
+
if @api_client.config.debugging
|
|
725
|
+
@api_client.config.logger.debug "API called: RepoApi#list_repo_repositories\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
726
|
+
end
|
|
727
|
+
return data, status_code, headers
|
|
728
|
+
end
|
|
729
|
+
|
|
730
|
+
# List tasks linked to this repo (the \"issues\" surface).
|
|
731
|
+
# @param owner [String]
|
|
732
|
+
# @param repo [String]
|
|
733
|
+
# @param [Hash] opts the optional parameters
|
|
734
|
+
# @option opts [String] :state
|
|
735
|
+
# @option opts [Integer] :per_page
|
|
736
|
+
# @option opts [Integer] :page
|
|
737
|
+
# @return [Hash<String, Object>]
|
|
738
|
+
def list_repo_tasks(owner, repo, opts = {})
|
|
739
|
+
data, _status_code, _headers = list_repo_tasks_with_http_info(owner, repo, opts)
|
|
740
|
+
data
|
|
741
|
+
end
|
|
742
|
+
|
|
743
|
+
# List tasks linked to this repo (the \"issues\" surface).
|
|
744
|
+
# @param owner [String]
|
|
745
|
+
# @param repo [String]
|
|
746
|
+
# @param [Hash] opts the optional parameters
|
|
747
|
+
# @option opts [String] :state
|
|
748
|
+
# @option opts [Integer] :per_page
|
|
749
|
+
# @option opts [Integer] :page
|
|
750
|
+
# @return [Array<(Hash<String, Object>, Integer, Hash)>] Hash<String, Object> data, response status code and response headers
|
|
751
|
+
def list_repo_tasks_with_http_info(owner, repo, opts = {})
|
|
752
|
+
if @api_client.config.debugging
|
|
753
|
+
@api_client.config.logger.debug 'Calling API: RepoApi.list_repo_tasks ...'
|
|
754
|
+
end
|
|
755
|
+
# verify the required parameter 'owner' is set
|
|
756
|
+
if @api_client.config.client_side_validation && owner.nil?
|
|
757
|
+
fail ArgumentError, "Missing the required parameter 'owner' when calling RepoApi.list_repo_tasks"
|
|
758
|
+
end
|
|
759
|
+
# verify the required parameter 'repo' is set
|
|
760
|
+
if @api_client.config.client_side_validation && repo.nil?
|
|
761
|
+
fail ArgumentError, "Missing the required parameter 'repo' when calling RepoApi.list_repo_tasks"
|
|
762
|
+
end
|
|
763
|
+
allowable_values = ["open", "closed", "all"]
|
|
764
|
+
if @api_client.config.client_side_validation && opts[:'state'] && !allowable_values.include?(opts[:'state'])
|
|
765
|
+
fail ArgumentError, "invalid value for \"state\", must be one of #{allowable_values}"
|
|
766
|
+
end
|
|
767
|
+
# resource path
|
|
768
|
+
local_var_path = '/v1/repos/repositories/{owner}/{repo}/tasks'.sub('{owner}', CGI.escape(owner.to_s)).sub('{repo}', CGI.escape(repo.to_s))
|
|
769
|
+
|
|
770
|
+
# query parameters
|
|
771
|
+
query_params = opts[:query_params] || {}
|
|
772
|
+
query_params[:'state'] = opts[:'state'] if !opts[:'state'].nil?
|
|
773
|
+
query_params[:'per_page'] = opts[:'per_page'] if !opts[:'per_page'].nil?
|
|
774
|
+
query_params[:'page'] = opts[:'page'] if !opts[:'page'].nil?
|
|
775
|
+
|
|
776
|
+
# header parameters
|
|
777
|
+
header_params = opts[:header_params] || {}
|
|
778
|
+
# HTTP header 'Accept' (if needed)
|
|
779
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
780
|
+
|
|
781
|
+
# form parameters
|
|
782
|
+
form_params = opts[:form_params] || {}
|
|
783
|
+
|
|
784
|
+
# http body (model)
|
|
785
|
+
post_body = opts[:debug_body]
|
|
786
|
+
|
|
787
|
+
# return_type
|
|
788
|
+
return_type = opts[:debug_return_type] || 'Hash<String, Object>'
|
|
789
|
+
|
|
790
|
+
# auth_names
|
|
791
|
+
auth_names = opts[:debug_auth_names] || ['bearerAuth']
|
|
792
|
+
|
|
793
|
+
new_options = opts.merge(
|
|
794
|
+
:operation => :"RepoApi.list_repo_tasks",
|
|
795
|
+
:header_params => header_params,
|
|
796
|
+
:query_params => query_params,
|
|
797
|
+
:form_params => form_params,
|
|
798
|
+
:body => post_body,
|
|
799
|
+
:auth_names => auth_names,
|
|
800
|
+
:return_type => return_type
|
|
801
|
+
)
|
|
802
|
+
|
|
803
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
804
|
+
if @api_client.config.debugging
|
|
805
|
+
@api_client.config.logger.debug "API called: RepoApi#list_repo_tasks\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
806
|
+
end
|
|
807
|
+
return data, status_code, headers
|
|
808
|
+
end
|
|
809
|
+
|
|
810
|
+
# List CI workflows.
|
|
811
|
+
# @param owner [String]
|
|
812
|
+
# @param repo [String]
|
|
813
|
+
# @param [Hash] opts the optional parameters
|
|
814
|
+
# @return [Hash<String, Object>]
|
|
815
|
+
def list_repo_workflows(owner, repo, opts = {})
|
|
816
|
+
data, _status_code, _headers = list_repo_workflows_with_http_info(owner, repo, opts)
|
|
817
|
+
data
|
|
818
|
+
end
|
|
819
|
+
|
|
820
|
+
# List CI workflows.
|
|
821
|
+
# @param owner [String]
|
|
822
|
+
# @param repo [String]
|
|
823
|
+
# @param [Hash] opts the optional parameters
|
|
824
|
+
# @return [Array<(Hash<String, Object>, Integer, Hash)>] Hash<String, Object> data, response status code and response headers
|
|
825
|
+
def list_repo_workflows_with_http_info(owner, repo, opts = {})
|
|
826
|
+
if @api_client.config.debugging
|
|
827
|
+
@api_client.config.logger.debug 'Calling API: RepoApi.list_repo_workflows ...'
|
|
828
|
+
end
|
|
829
|
+
# verify the required parameter 'owner' is set
|
|
830
|
+
if @api_client.config.client_side_validation && owner.nil?
|
|
831
|
+
fail ArgumentError, "Missing the required parameter 'owner' when calling RepoApi.list_repo_workflows"
|
|
832
|
+
end
|
|
833
|
+
# verify the required parameter 'repo' is set
|
|
834
|
+
if @api_client.config.client_side_validation && repo.nil?
|
|
835
|
+
fail ArgumentError, "Missing the required parameter 'repo' when calling RepoApi.list_repo_workflows"
|
|
836
|
+
end
|
|
837
|
+
# resource path
|
|
838
|
+
local_var_path = '/v1/repos/repositories/{owner}/{repo}/workflows'.sub('{owner}', CGI.escape(owner.to_s)).sub('{repo}', CGI.escape(repo.to_s))
|
|
839
|
+
|
|
840
|
+
# query parameters
|
|
841
|
+
query_params = opts[:query_params] || {}
|
|
842
|
+
|
|
843
|
+
# header parameters
|
|
844
|
+
header_params = opts[:header_params] || {}
|
|
845
|
+
# HTTP header 'Accept' (if needed)
|
|
846
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
847
|
+
|
|
848
|
+
# form parameters
|
|
849
|
+
form_params = opts[:form_params] || {}
|
|
850
|
+
|
|
851
|
+
# http body (model)
|
|
852
|
+
post_body = opts[:debug_body]
|
|
853
|
+
|
|
854
|
+
# return_type
|
|
855
|
+
return_type = opts[:debug_return_type] || 'Hash<String, Object>'
|
|
856
|
+
|
|
857
|
+
# auth_names
|
|
858
|
+
auth_names = opts[:debug_auth_names] || ['bearerAuth']
|
|
859
|
+
|
|
860
|
+
new_options = opts.merge(
|
|
861
|
+
:operation => :"RepoApi.list_repo_workflows",
|
|
862
|
+
:header_params => header_params,
|
|
863
|
+
:query_params => query_params,
|
|
864
|
+
:form_params => form_params,
|
|
865
|
+
:body => post_body,
|
|
866
|
+
:auth_names => auth_names,
|
|
867
|
+
:return_type => return_type
|
|
868
|
+
)
|
|
869
|
+
|
|
870
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
871
|
+
if @api_client.config.debugging
|
|
872
|
+
@api_client.config.logger.debug "API called: RepoApi#list_repo_workflows\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
873
|
+
end
|
|
874
|
+
return data, status_code, headers
|
|
875
|
+
end
|
|
876
|
+
|
|
877
|
+
# Merge a pull request.
|
|
878
|
+
# @param owner [String]
|
|
879
|
+
# @param repo [String]
|
|
880
|
+
# @param number [Integer]
|
|
881
|
+
# @param [Hash] opts the optional parameters
|
|
882
|
+
# @option opts [Hash<String, Object>] :request_body
|
|
883
|
+
# @return [Hash<String, Object>]
|
|
884
|
+
def merge_repo_pull_request(owner, repo, number, opts = {})
|
|
885
|
+
data, _status_code, _headers = merge_repo_pull_request_with_http_info(owner, repo, number, opts)
|
|
886
|
+
data
|
|
887
|
+
end
|
|
888
|
+
|
|
889
|
+
# Merge a pull request.
|
|
890
|
+
# @param owner [String]
|
|
891
|
+
# @param repo [String]
|
|
892
|
+
# @param number [Integer]
|
|
893
|
+
# @param [Hash] opts the optional parameters
|
|
894
|
+
# @option opts [Hash<String, Object>] :request_body
|
|
895
|
+
# @return [Array<(Hash<String, Object>, Integer, Hash)>] Hash<String, Object> data, response status code and response headers
|
|
896
|
+
def merge_repo_pull_request_with_http_info(owner, repo, number, opts = {})
|
|
897
|
+
if @api_client.config.debugging
|
|
898
|
+
@api_client.config.logger.debug 'Calling API: RepoApi.merge_repo_pull_request ...'
|
|
899
|
+
end
|
|
900
|
+
# verify the required parameter 'owner' is set
|
|
901
|
+
if @api_client.config.client_side_validation && owner.nil?
|
|
902
|
+
fail ArgumentError, "Missing the required parameter 'owner' when calling RepoApi.merge_repo_pull_request"
|
|
903
|
+
end
|
|
904
|
+
# verify the required parameter 'repo' is set
|
|
905
|
+
if @api_client.config.client_side_validation && repo.nil?
|
|
906
|
+
fail ArgumentError, "Missing the required parameter 'repo' when calling RepoApi.merge_repo_pull_request"
|
|
907
|
+
end
|
|
908
|
+
# verify the required parameter 'number' is set
|
|
909
|
+
if @api_client.config.client_side_validation && number.nil?
|
|
910
|
+
fail ArgumentError, "Missing the required parameter 'number' when calling RepoApi.merge_repo_pull_request"
|
|
911
|
+
end
|
|
912
|
+
# resource path
|
|
913
|
+
local_var_path = '/v1/repos/repositories/{owner}/{repo}/pulls/{number}/merge'.sub('{owner}', CGI.escape(owner.to_s)).sub('{repo}', CGI.escape(repo.to_s)).sub('{number}', CGI.escape(number.to_s))
|
|
914
|
+
|
|
915
|
+
# query parameters
|
|
916
|
+
query_params = opts[:query_params] || {}
|
|
917
|
+
|
|
918
|
+
# header parameters
|
|
919
|
+
header_params = opts[:header_params] || {}
|
|
920
|
+
# HTTP header 'Accept' (if needed)
|
|
921
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
922
|
+
# HTTP header 'Content-Type'
|
|
923
|
+
content_type = @api_client.select_header_content_type(['application/json'])
|
|
924
|
+
if !content_type.nil?
|
|
925
|
+
header_params['Content-Type'] = content_type
|
|
926
|
+
end
|
|
927
|
+
|
|
928
|
+
# form parameters
|
|
929
|
+
form_params = opts[:form_params] || {}
|
|
930
|
+
|
|
931
|
+
# http body (model)
|
|
932
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(opts[:'request_body'])
|
|
933
|
+
|
|
934
|
+
# return_type
|
|
935
|
+
return_type = opts[:debug_return_type] || 'Hash<String, Object>'
|
|
936
|
+
|
|
937
|
+
# auth_names
|
|
938
|
+
auth_names = opts[:debug_auth_names] || ['bearerAuth']
|
|
939
|
+
|
|
940
|
+
new_options = opts.merge(
|
|
941
|
+
:operation => :"RepoApi.merge_repo_pull_request",
|
|
942
|
+
:header_params => header_params,
|
|
943
|
+
:query_params => query_params,
|
|
944
|
+
:form_params => form_params,
|
|
945
|
+
:body => post_body,
|
|
946
|
+
:auth_names => auth_names,
|
|
947
|
+
:return_type => return_type
|
|
948
|
+
)
|
|
949
|
+
|
|
950
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
|
951
|
+
if @api_client.config.debugging
|
|
952
|
+
@api_client.config.logger.debug "API called: RepoApi#merge_repo_pull_request\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
953
|
+
end
|
|
954
|
+
return data, status_code, headers
|
|
955
|
+
end
|
|
956
|
+
|
|
957
|
+
# Trigger a workflow_dispatch run.
|
|
958
|
+
# @param owner [String]
|
|
959
|
+
# @param repo [String]
|
|
960
|
+
# @param id [String]
|
|
961
|
+
# @param [Hash] opts the optional parameters
|
|
962
|
+
# @option opts [Hash<String, Object>] :request_body
|
|
963
|
+
# @return [Hash<String, Object>]
|
|
964
|
+
def trigger_repo_workflow(owner, repo, id, opts = {})
|
|
965
|
+
data, _status_code, _headers = trigger_repo_workflow_with_http_info(owner, repo, id, opts)
|
|
966
|
+
data
|
|
967
|
+
end
|
|
968
|
+
|
|
969
|
+
# Trigger a workflow_dispatch run.
|
|
970
|
+
# @param owner [String]
|
|
971
|
+
# @param repo [String]
|
|
972
|
+
# @param id [String]
|
|
973
|
+
# @param [Hash] opts the optional parameters
|
|
974
|
+
# @option opts [Hash<String, Object>] :request_body
|
|
975
|
+
# @return [Array<(Hash<String, Object>, Integer, Hash)>] Hash<String, Object> data, response status code and response headers
|
|
976
|
+
def trigger_repo_workflow_with_http_info(owner, repo, id, opts = {})
|
|
977
|
+
if @api_client.config.debugging
|
|
978
|
+
@api_client.config.logger.debug 'Calling API: RepoApi.trigger_repo_workflow ...'
|
|
979
|
+
end
|
|
980
|
+
# verify the required parameter 'owner' is set
|
|
981
|
+
if @api_client.config.client_side_validation && owner.nil?
|
|
982
|
+
fail ArgumentError, "Missing the required parameter 'owner' when calling RepoApi.trigger_repo_workflow"
|
|
983
|
+
end
|
|
984
|
+
# verify the required parameter 'repo' is set
|
|
985
|
+
if @api_client.config.client_side_validation && repo.nil?
|
|
986
|
+
fail ArgumentError, "Missing the required parameter 'repo' when calling RepoApi.trigger_repo_workflow"
|
|
987
|
+
end
|
|
988
|
+
# verify the required parameter 'id' is set
|
|
989
|
+
if @api_client.config.client_side_validation && id.nil?
|
|
990
|
+
fail ArgumentError, "Missing the required parameter 'id' when calling RepoApi.trigger_repo_workflow"
|
|
991
|
+
end
|
|
992
|
+
# resource path
|
|
993
|
+
local_var_path = '/v1/repos/repositories/{owner}/{repo}/workflows/{id}/trigger'.sub('{owner}', CGI.escape(owner.to_s)).sub('{repo}', CGI.escape(repo.to_s)).sub('{id}', CGI.escape(id.to_s))
|
|
994
|
+
|
|
995
|
+
# query parameters
|
|
996
|
+
query_params = opts[:query_params] || {}
|
|
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
|
+
# HTTP header 'Content-Type'
|
|
1003
|
+
content_type = @api_client.select_header_content_type(['application/json'])
|
|
1004
|
+
if !content_type.nil?
|
|
1005
|
+
header_params['Content-Type'] = content_type
|
|
1006
|
+
end
|
|
1007
|
+
|
|
1008
|
+
# form parameters
|
|
1009
|
+
form_params = opts[:form_params] || {}
|
|
1010
|
+
|
|
1011
|
+
# http body (model)
|
|
1012
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(opts[:'request_body'])
|
|
1013
|
+
|
|
1014
|
+
# return_type
|
|
1015
|
+
return_type = opts[:debug_return_type] || 'Hash<String, Object>'
|
|
1016
|
+
|
|
1017
|
+
# auth_names
|
|
1018
|
+
auth_names = opts[:debug_auth_names] || ['bearerAuth']
|
|
1019
|
+
|
|
1020
|
+
new_options = opts.merge(
|
|
1021
|
+
:operation => :"RepoApi.trigger_repo_workflow",
|
|
1022
|
+
:header_params => header_params,
|
|
1023
|
+
:query_params => query_params,
|
|
1024
|
+
:form_params => form_params,
|
|
1025
|
+
:body => post_body,
|
|
1026
|
+
:auth_names => auth_names,
|
|
1027
|
+
:return_type => return_type
|
|
1028
|
+
)
|
|
1029
|
+
|
|
1030
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
|
1031
|
+
if @api_client.config.debugging
|
|
1032
|
+
@api_client.config.logger.debug "API called: RepoApi#trigger_repo_workflow\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
1033
|
+
end
|
|
1034
|
+
return data, status_code, headers
|
|
1035
|
+
end
|
|
1036
|
+
|
|
1037
|
+
# @param org [String]
|
|
1038
|
+
# @param workspace [String]
|
|
1039
|
+
# @param owner [String]
|
|
1040
|
+
# @param repo [String]
|
|
1041
|
+
# @param request_body [Hash<String, Object>]
|
|
1042
|
+
# @param [Hash] opts the optional parameters
|
|
1043
|
+
# @return [Hash<String, Object>]
|
|
1044
|
+
def workspace_create_repo_branch(org, workspace, owner, repo, request_body, opts = {})
|
|
1045
|
+
data, _status_code, _headers = workspace_create_repo_branch_with_http_info(org, workspace, owner, repo, request_body, opts)
|
|
1046
|
+
data
|
|
1047
|
+
end
|
|
1048
|
+
|
|
1049
|
+
# @param org [String]
|
|
1050
|
+
# @param workspace [String]
|
|
1051
|
+
# @param owner [String]
|
|
1052
|
+
# @param repo [String]
|
|
1053
|
+
# @param request_body [Hash<String, Object>]
|
|
1054
|
+
# @param [Hash] opts the optional parameters
|
|
1055
|
+
# @return [Array<(Hash<String, Object>, Integer, Hash)>] Hash<String, Object> data, response status code and response headers
|
|
1056
|
+
def workspace_create_repo_branch_with_http_info(org, workspace, owner, repo, request_body, opts = {})
|
|
1057
|
+
if @api_client.config.debugging
|
|
1058
|
+
@api_client.config.logger.debug 'Calling API: RepoApi.workspace_create_repo_branch ...'
|
|
1059
|
+
end
|
|
1060
|
+
# verify the required parameter 'org' is set
|
|
1061
|
+
if @api_client.config.client_side_validation && org.nil?
|
|
1062
|
+
fail ArgumentError, "Missing the required parameter 'org' when calling RepoApi.workspace_create_repo_branch"
|
|
1063
|
+
end
|
|
1064
|
+
# verify the required parameter 'workspace' is set
|
|
1065
|
+
if @api_client.config.client_side_validation && workspace.nil?
|
|
1066
|
+
fail ArgumentError, "Missing the required parameter 'workspace' when calling RepoApi.workspace_create_repo_branch"
|
|
1067
|
+
end
|
|
1068
|
+
# verify the required parameter 'owner' is set
|
|
1069
|
+
if @api_client.config.client_side_validation && owner.nil?
|
|
1070
|
+
fail ArgumentError, "Missing the required parameter 'owner' when calling RepoApi.workspace_create_repo_branch"
|
|
1071
|
+
end
|
|
1072
|
+
# verify the required parameter 'repo' is set
|
|
1073
|
+
if @api_client.config.client_side_validation && repo.nil?
|
|
1074
|
+
fail ArgumentError, "Missing the required parameter 'repo' when calling RepoApi.workspace_create_repo_branch"
|
|
1075
|
+
end
|
|
1076
|
+
# verify the required parameter 'request_body' is set
|
|
1077
|
+
if @api_client.config.client_side_validation && request_body.nil?
|
|
1078
|
+
fail ArgumentError, "Missing the required parameter 'request_body' when calling RepoApi.workspace_create_repo_branch"
|
|
1079
|
+
end
|
|
1080
|
+
# resource path
|
|
1081
|
+
local_var_path = '/v1/organizations/{org}/workspaces/{workspace}/repos/repositories/{owner}/{repo}/branches'.sub('{org}', CGI.escape(org.to_s)).sub('{workspace}', CGI.escape(workspace.to_s)).sub('{owner}', CGI.escape(owner.to_s)).sub('{repo}', CGI.escape(repo.to_s))
|
|
1082
|
+
|
|
1083
|
+
# query parameters
|
|
1084
|
+
query_params = opts[:query_params] || {}
|
|
1085
|
+
|
|
1086
|
+
# header parameters
|
|
1087
|
+
header_params = opts[:header_params] || {}
|
|
1088
|
+
# HTTP header 'Accept' (if needed)
|
|
1089
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
1090
|
+
# HTTP header 'Content-Type'
|
|
1091
|
+
content_type = @api_client.select_header_content_type(['application/json'])
|
|
1092
|
+
if !content_type.nil?
|
|
1093
|
+
header_params['Content-Type'] = content_type
|
|
1094
|
+
end
|
|
1095
|
+
|
|
1096
|
+
# form parameters
|
|
1097
|
+
form_params = opts[:form_params] || {}
|
|
1098
|
+
|
|
1099
|
+
# http body (model)
|
|
1100
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(request_body)
|
|
1101
|
+
|
|
1102
|
+
# return_type
|
|
1103
|
+
return_type = opts[:debug_return_type] || 'Hash<String, Object>'
|
|
1104
|
+
|
|
1105
|
+
# auth_names
|
|
1106
|
+
auth_names = opts[:debug_auth_names] || ['bearerAuth']
|
|
1107
|
+
|
|
1108
|
+
new_options = opts.merge(
|
|
1109
|
+
:operation => :"RepoApi.workspace_create_repo_branch",
|
|
1110
|
+
:header_params => header_params,
|
|
1111
|
+
:query_params => query_params,
|
|
1112
|
+
:form_params => form_params,
|
|
1113
|
+
:body => post_body,
|
|
1114
|
+
:auth_names => auth_names,
|
|
1115
|
+
:return_type => return_type
|
|
1116
|
+
)
|
|
1117
|
+
|
|
1118
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
|
1119
|
+
if @api_client.config.debugging
|
|
1120
|
+
@api_client.config.logger.debug "API called: RepoApi#workspace_create_repo_branch\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
1121
|
+
end
|
|
1122
|
+
return data, status_code, headers
|
|
1123
|
+
end
|
|
1124
|
+
|
|
1125
|
+
# @param org [String]
|
|
1126
|
+
# @param workspace [String]
|
|
1127
|
+
# @param owner [String]
|
|
1128
|
+
# @param repo [String]
|
|
1129
|
+
# @param request_body [Hash<String, Object>]
|
|
1130
|
+
# @param [Hash] opts the optional parameters
|
|
1131
|
+
# @return [Hash<String, Object>]
|
|
1132
|
+
def workspace_create_repo_pull_request(org, workspace, owner, repo, request_body, opts = {})
|
|
1133
|
+
data, _status_code, _headers = workspace_create_repo_pull_request_with_http_info(org, workspace, owner, repo, request_body, opts)
|
|
1134
|
+
data
|
|
1135
|
+
end
|
|
1136
|
+
|
|
1137
|
+
# @param org [String]
|
|
1138
|
+
# @param workspace [String]
|
|
1139
|
+
# @param owner [String]
|
|
1140
|
+
# @param repo [String]
|
|
1141
|
+
# @param request_body [Hash<String, Object>]
|
|
1142
|
+
# @param [Hash] opts the optional parameters
|
|
1143
|
+
# @return [Array<(Hash<String, Object>, Integer, Hash)>] Hash<String, Object> data, response status code and response headers
|
|
1144
|
+
def workspace_create_repo_pull_request_with_http_info(org, workspace, owner, repo, request_body, opts = {})
|
|
1145
|
+
if @api_client.config.debugging
|
|
1146
|
+
@api_client.config.logger.debug 'Calling API: RepoApi.workspace_create_repo_pull_request ...'
|
|
1147
|
+
end
|
|
1148
|
+
# verify the required parameter 'org' is set
|
|
1149
|
+
if @api_client.config.client_side_validation && org.nil?
|
|
1150
|
+
fail ArgumentError, "Missing the required parameter 'org' when calling RepoApi.workspace_create_repo_pull_request"
|
|
1151
|
+
end
|
|
1152
|
+
# verify the required parameter 'workspace' is set
|
|
1153
|
+
if @api_client.config.client_side_validation && workspace.nil?
|
|
1154
|
+
fail ArgumentError, "Missing the required parameter 'workspace' when calling RepoApi.workspace_create_repo_pull_request"
|
|
1155
|
+
end
|
|
1156
|
+
# verify the required parameter 'owner' is set
|
|
1157
|
+
if @api_client.config.client_side_validation && owner.nil?
|
|
1158
|
+
fail ArgumentError, "Missing the required parameter 'owner' when calling RepoApi.workspace_create_repo_pull_request"
|
|
1159
|
+
end
|
|
1160
|
+
# verify the required parameter 'repo' is set
|
|
1161
|
+
if @api_client.config.client_side_validation && repo.nil?
|
|
1162
|
+
fail ArgumentError, "Missing the required parameter 'repo' when calling RepoApi.workspace_create_repo_pull_request"
|
|
1163
|
+
end
|
|
1164
|
+
# verify the required parameter 'request_body' is set
|
|
1165
|
+
if @api_client.config.client_side_validation && request_body.nil?
|
|
1166
|
+
fail ArgumentError, "Missing the required parameter 'request_body' when calling RepoApi.workspace_create_repo_pull_request"
|
|
1167
|
+
end
|
|
1168
|
+
# resource path
|
|
1169
|
+
local_var_path = '/v1/organizations/{org}/workspaces/{workspace}/repos/repositories/{owner}/{repo}/pulls'.sub('{org}', CGI.escape(org.to_s)).sub('{workspace}', CGI.escape(workspace.to_s)).sub('{owner}', CGI.escape(owner.to_s)).sub('{repo}', CGI.escape(repo.to_s))
|
|
1170
|
+
|
|
1171
|
+
# query parameters
|
|
1172
|
+
query_params = opts[:query_params] || {}
|
|
1173
|
+
|
|
1174
|
+
# header parameters
|
|
1175
|
+
header_params = opts[:header_params] || {}
|
|
1176
|
+
# HTTP header 'Accept' (if needed)
|
|
1177
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
1178
|
+
# HTTP header 'Content-Type'
|
|
1179
|
+
content_type = @api_client.select_header_content_type(['application/json'])
|
|
1180
|
+
if !content_type.nil?
|
|
1181
|
+
header_params['Content-Type'] = content_type
|
|
1182
|
+
end
|
|
1183
|
+
|
|
1184
|
+
# form parameters
|
|
1185
|
+
form_params = opts[:form_params] || {}
|
|
1186
|
+
|
|
1187
|
+
# http body (model)
|
|
1188
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(request_body)
|
|
1189
|
+
|
|
1190
|
+
# return_type
|
|
1191
|
+
return_type = opts[:debug_return_type] || 'Hash<String, Object>'
|
|
1192
|
+
|
|
1193
|
+
# auth_names
|
|
1194
|
+
auth_names = opts[:debug_auth_names] || ['bearerAuth']
|
|
1195
|
+
|
|
1196
|
+
new_options = opts.merge(
|
|
1197
|
+
:operation => :"RepoApi.workspace_create_repo_pull_request",
|
|
1198
|
+
:header_params => header_params,
|
|
1199
|
+
:query_params => query_params,
|
|
1200
|
+
:form_params => form_params,
|
|
1201
|
+
:body => post_body,
|
|
1202
|
+
:auth_names => auth_names,
|
|
1203
|
+
:return_type => return_type
|
|
1204
|
+
)
|
|
1205
|
+
|
|
1206
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
|
1207
|
+
if @api_client.config.debugging
|
|
1208
|
+
@api_client.config.logger.debug "API called: RepoApi#workspace_create_repo_pull_request\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
1209
|
+
end
|
|
1210
|
+
return data, status_code, headers
|
|
1211
|
+
end
|
|
1212
|
+
|
|
1213
|
+
# @param org [String]
|
|
1214
|
+
# @param workspace [String]
|
|
1215
|
+
# @param request_body [Hash<String, Object>]
|
|
1216
|
+
# @param [Hash] opts the optional parameters
|
|
1217
|
+
# @return [Hash<String, Object>]
|
|
1218
|
+
def workspace_create_repo_repository(org, workspace, request_body, opts = {})
|
|
1219
|
+
data, _status_code, _headers = workspace_create_repo_repository_with_http_info(org, workspace, request_body, opts)
|
|
1220
|
+
data
|
|
1221
|
+
end
|
|
1222
|
+
|
|
1223
|
+
# @param org [String]
|
|
1224
|
+
# @param workspace [String]
|
|
1225
|
+
# @param request_body [Hash<String, Object>]
|
|
1226
|
+
# @param [Hash] opts the optional parameters
|
|
1227
|
+
# @return [Array<(Hash<String, Object>, Integer, Hash)>] Hash<String, Object> data, response status code and response headers
|
|
1228
|
+
def workspace_create_repo_repository_with_http_info(org, workspace, request_body, opts = {})
|
|
1229
|
+
if @api_client.config.debugging
|
|
1230
|
+
@api_client.config.logger.debug 'Calling API: RepoApi.workspace_create_repo_repository ...'
|
|
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 RepoApi.workspace_create_repo_repository"
|
|
1235
|
+
end
|
|
1236
|
+
# verify the required parameter 'workspace' is set
|
|
1237
|
+
if @api_client.config.client_side_validation && workspace.nil?
|
|
1238
|
+
fail ArgumentError, "Missing the required parameter 'workspace' when calling RepoApi.workspace_create_repo_repository"
|
|
1239
|
+
end
|
|
1240
|
+
# verify the required parameter 'request_body' is set
|
|
1241
|
+
if @api_client.config.client_side_validation && request_body.nil?
|
|
1242
|
+
fail ArgumentError, "Missing the required parameter 'request_body' when calling RepoApi.workspace_create_repo_repository"
|
|
1243
|
+
end
|
|
1244
|
+
# resource path
|
|
1245
|
+
local_var_path = '/v1/organizations/{org}/workspaces/{workspace}/repos/repositories'.sub('{org}', CGI.escape(org.to_s)).sub('{workspace}', CGI.escape(workspace.to_s))
|
|
1246
|
+
|
|
1247
|
+
# query parameters
|
|
1248
|
+
query_params = opts[:query_params] || {}
|
|
1249
|
+
|
|
1250
|
+
# header parameters
|
|
1251
|
+
header_params = opts[:header_params] || {}
|
|
1252
|
+
# HTTP header 'Accept' (if needed)
|
|
1253
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
1254
|
+
# HTTP header 'Content-Type'
|
|
1255
|
+
content_type = @api_client.select_header_content_type(['application/json'])
|
|
1256
|
+
if !content_type.nil?
|
|
1257
|
+
header_params['Content-Type'] = content_type
|
|
1258
|
+
end
|
|
1259
|
+
|
|
1260
|
+
# form parameters
|
|
1261
|
+
form_params = opts[:form_params] || {}
|
|
1262
|
+
|
|
1263
|
+
# http body (model)
|
|
1264
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(request_body)
|
|
1265
|
+
|
|
1266
|
+
# return_type
|
|
1267
|
+
return_type = opts[:debug_return_type] || 'Hash<String, Object>'
|
|
1268
|
+
|
|
1269
|
+
# auth_names
|
|
1270
|
+
auth_names = opts[:debug_auth_names] || ['bearerAuth']
|
|
1271
|
+
|
|
1272
|
+
new_options = opts.merge(
|
|
1273
|
+
:operation => :"RepoApi.workspace_create_repo_repository",
|
|
1274
|
+
:header_params => header_params,
|
|
1275
|
+
:query_params => query_params,
|
|
1276
|
+
:form_params => form_params,
|
|
1277
|
+
:body => post_body,
|
|
1278
|
+
:auth_names => auth_names,
|
|
1279
|
+
:return_type => return_type
|
|
1280
|
+
)
|
|
1281
|
+
|
|
1282
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
|
1283
|
+
if @api_client.config.debugging
|
|
1284
|
+
@api_client.config.logger.debug "API called: RepoApi#workspace_create_repo_repository\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
1285
|
+
end
|
|
1286
|
+
return data, status_code, headers
|
|
1287
|
+
end
|
|
1288
|
+
|
|
1289
|
+
# @param org [String]
|
|
1290
|
+
# @param workspace [String]
|
|
1291
|
+
# @param owner [String]
|
|
1292
|
+
# @param repo [String]
|
|
1293
|
+
# @param sha [String]
|
|
1294
|
+
# @param [Hash] opts the optional parameters
|
|
1295
|
+
# @return [Hash<String, Object>]
|
|
1296
|
+
def workspace_get_repo_commit(org, workspace, owner, repo, sha, opts = {})
|
|
1297
|
+
data, _status_code, _headers = workspace_get_repo_commit_with_http_info(org, workspace, owner, repo, sha, opts)
|
|
1298
|
+
data
|
|
1299
|
+
end
|
|
1300
|
+
|
|
1301
|
+
# @param org [String]
|
|
1302
|
+
# @param workspace [String]
|
|
1303
|
+
# @param owner [String]
|
|
1304
|
+
# @param repo [String]
|
|
1305
|
+
# @param sha [String]
|
|
1306
|
+
# @param [Hash] opts the optional parameters
|
|
1307
|
+
# @return [Array<(Hash<String, Object>, Integer, Hash)>] Hash<String, Object> data, response status code and response headers
|
|
1308
|
+
def workspace_get_repo_commit_with_http_info(org, workspace, owner, repo, sha, opts = {})
|
|
1309
|
+
if @api_client.config.debugging
|
|
1310
|
+
@api_client.config.logger.debug 'Calling API: RepoApi.workspace_get_repo_commit ...'
|
|
1311
|
+
end
|
|
1312
|
+
# verify the required parameter 'org' is set
|
|
1313
|
+
if @api_client.config.client_side_validation && org.nil?
|
|
1314
|
+
fail ArgumentError, "Missing the required parameter 'org' when calling RepoApi.workspace_get_repo_commit"
|
|
1315
|
+
end
|
|
1316
|
+
# verify the required parameter 'workspace' is set
|
|
1317
|
+
if @api_client.config.client_side_validation && workspace.nil?
|
|
1318
|
+
fail ArgumentError, "Missing the required parameter 'workspace' when calling RepoApi.workspace_get_repo_commit"
|
|
1319
|
+
end
|
|
1320
|
+
# verify the required parameter 'owner' is set
|
|
1321
|
+
if @api_client.config.client_side_validation && owner.nil?
|
|
1322
|
+
fail ArgumentError, "Missing the required parameter 'owner' when calling RepoApi.workspace_get_repo_commit"
|
|
1323
|
+
end
|
|
1324
|
+
# verify the required parameter 'repo' is set
|
|
1325
|
+
if @api_client.config.client_side_validation && repo.nil?
|
|
1326
|
+
fail ArgumentError, "Missing the required parameter 'repo' when calling RepoApi.workspace_get_repo_commit"
|
|
1327
|
+
end
|
|
1328
|
+
# verify the required parameter 'sha' is set
|
|
1329
|
+
if @api_client.config.client_side_validation && sha.nil?
|
|
1330
|
+
fail ArgumentError, "Missing the required parameter 'sha' when calling RepoApi.workspace_get_repo_commit"
|
|
1331
|
+
end
|
|
1332
|
+
# resource path
|
|
1333
|
+
local_var_path = '/v1/organizations/{org}/workspaces/{workspace}/repos/repositories/{owner}/{repo}/commits/{sha}'.sub('{org}', CGI.escape(org.to_s)).sub('{workspace}', CGI.escape(workspace.to_s)).sub('{owner}', CGI.escape(owner.to_s)).sub('{repo}', CGI.escape(repo.to_s)).sub('{sha}', CGI.escape(sha.to_s))
|
|
1334
|
+
|
|
1335
|
+
# query parameters
|
|
1336
|
+
query_params = opts[:query_params] || {}
|
|
1337
|
+
|
|
1338
|
+
# header parameters
|
|
1339
|
+
header_params = opts[:header_params] || {}
|
|
1340
|
+
# HTTP header 'Accept' (if needed)
|
|
1341
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
1342
|
+
|
|
1343
|
+
# form parameters
|
|
1344
|
+
form_params = opts[:form_params] || {}
|
|
1345
|
+
|
|
1346
|
+
# http body (model)
|
|
1347
|
+
post_body = opts[:debug_body]
|
|
1348
|
+
|
|
1349
|
+
# return_type
|
|
1350
|
+
return_type = opts[:debug_return_type] || 'Hash<String, Object>'
|
|
1351
|
+
|
|
1352
|
+
# auth_names
|
|
1353
|
+
auth_names = opts[:debug_auth_names] || ['bearerAuth']
|
|
1354
|
+
|
|
1355
|
+
new_options = opts.merge(
|
|
1356
|
+
:operation => :"RepoApi.workspace_get_repo_commit",
|
|
1357
|
+
:header_params => header_params,
|
|
1358
|
+
:query_params => query_params,
|
|
1359
|
+
:form_params => form_params,
|
|
1360
|
+
:body => post_body,
|
|
1361
|
+
:auth_names => auth_names,
|
|
1362
|
+
:return_type => return_type
|
|
1363
|
+
)
|
|
1364
|
+
|
|
1365
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
1366
|
+
if @api_client.config.debugging
|
|
1367
|
+
@api_client.config.logger.debug "API called: RepoApi#workspace_get_repo_commit\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
1368
|
+
end
|
|
1369
|
+
return data, status_code, headers
|
|
1370
|
+
end
|
|
1371
|
+
|
|
1372
|
+
# @param org [String]
|
|
1373
|
+
# @param workspace [String]
|
|
1374
|
+
# @param owner [String]
|
|
1375
|
+
# @param repo [String]
|
|
1376
|
+
# @param [Hash] opts the optional parameters
|
|
1377
|
+
# @return [Hash<String, Object>]
|
|
1378
|
+
def workspace_get_repo_repository(org, workspace, owner, repo, opts = {})
|
|
1379
|
+
data, _status_code, _headers = workspace_get_repo_repository_with_http_info(org, workspace, owner, repo, opts)
|
|
1380
|
+
data
|
|
1381
|
+
end
|
|
1382
|
+
|
|
1383
|
+
# @param org [String]
|
|
1384
|
+
# @param workspace [String]
|
|
1385
|
+
# @param owner [String]
|
|
1386
|
+
# @param repo [String]
|
|
1387
|
+
# @param [Hash] opts the optional parameters
|
|
1388
|
+
# @return [Array<(Hash<String, Object>, Integer, Hash)>] Hash<String, Object> data, response status code and response headers
|
|
1389
|
+
def workspace_get_repo_repository_with_http_info(org, workspace, owner, repo, opts = {})
|
|
1390
|
+
if @api_client.config.debugging
|
|
1391
|
+
@api_client.config.logger.debug 'Calling API: RepoApi.workspace_get_repo_repository ...'
|
|
1392
|
+
end
|
|
1393
|
+
# verify the required parameter 'org' is set
|
|
1394
|
+
if @api_client.config.client_side_validation && org.nil?
|
|
1395
|
+
fail ArgumentError, "Missing the required parameter 'org' when calling RepoApi.workspace_get_repo_repository"
|
|
1396
|
+
end
|
|
1397
|
+
# verify the required parameter 'workspace' is set
|
|
1398
|
+
if @api_client.config.client_side_validation && workspace.nil?
|
|
1399
|
+
fail ArgumentError, "Missing the required parameter 'workspace' when calling RepoApi.workspace_get_repo_repository"
|
|
1400
|
+
end
|
|
1401
|
+
# verify the required parameter 'owner' is set
|
|
1402
|
+
if @api_client.config.client_side_validation && owner.nil?
|
|
1403
|
+
fail ArgumentError, "Missing the required parameter 'owner' when calling RepoApi.workspace_get_repo_repository"
|
|
1404
|
+
end
|
|
1405
|
+
# verify the required parameter 'repo' is set
|
|
1406
|
+
if @api_client.config.client_side_validation && repo.nil?
|
|
1407
|
+
fail ArgumentError, "Missing the required parameter 'repo' when calling RepoApi.workspace_get_repo_repository"
|
|
1408
|
+
end
|
|
1409
|
+
# resource path
|
|
1410
|
+
local_var_path = '/v1/organizations/{org}/workspaces/{workspace}/repos/repositories/{owner}/{repo}'.sub('{org}', CGI.escape(org.to_s)).sub('{workspace}', CGI.escape(workspace.to_s)).sub('{owner}', CGI.escape(owner.to_s)).sub('{repo}', CGI.escape(repo.to_s))
|
|
1411
|
+
|
|
1412
|
+
# query parameters
|
|
1413
|
+
query_params = opts[:query_params] || {}
|
|
1414
|
+
|
|
1415
|
+
# header parameters
|
|
1416
|
+
header_params = opts[:header_params] || {}
|
|
1417
|
+
# HTTP header 'Accept' (if needed)
|
|
1418
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
1419
|
+
|
|
1420
|
+
# form parameters
|
|
1421
|
+
form_params = opts[:form_params] || {}
|
|
1422
|
+
|
|
1423
|
+
# http body (model)
|
|
1424
|
+
post_body = opts[:debug_body]
|
|
1425
|
+
|
|
1426
|
+
# return_type
|
|
1427
|
+
return_type = opts[:debug_return_type] || 'Hash<String, Object>'
|
|
1428
|
+
|
|
1429
|
+
# auth_names
|
|
1430
|
+
auth_names = opts[:debug_auth_names] || ['bearerAuth']
|
|
1431
|
+
|
|
1432
|
+
new_options = opts.merge(
|
|
1433
|
+
:operation => :"RepoApi.workspace_get_repo_repository",
|
|
1434
|
+
:header_params => header_params,
|
|
1435
|
+
:query_params => query_params,
|
|
1436
|
+
:form_params => form_params,
|
|
1437
|
+
:body => post_body,
|
|
1438
|
+
:auth_names => auth_names,
|
|
1439
|
+
:return_type => return_type
|
|
1440
|
+
)
|
|
1441
|
+
|
|
1442
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
1443
|
+
if @api_client.config.debugging
|
|
1444
|
+
@api_client.config.logger.debug "API called: RepoApi#workspace_get_repo_repository\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
1445
|
+
end
|
|
1446
|
+
return data, status_code, headers
|
|
1447
|
+
end
|
|
1448
|
+
|
|
1449
|
+
# @param org [String]
|
|
1450
|
+
# @param workspace [String]
|
|
1451
|
+
# @param owner [String]
|
|
1452
|
+
# @param repo [String]
|
|
1453
|
+
# @param request_body [Hash<String, Object>]
|
|
1454
|
+
# @param [Hash] opts the optional parameters
|
|
1455
|
+
# @return [Hash<String, Object>]
|
|
1456
|
+
def workspace_link_repo_task(org, workspace, owner, repo, request_body, opts = {})
|
|
1457
|
+
data, _status_code, _headers = workspace_link_repo_task_with_http_info(org, workspace, owner, repo, request_body, opts)
|
|
1458
|
+
data
|
|
1459
|
+
end
|
|
1460
|
+
|
|
1461
|
+
# @param org [String]
|
|
1462
|
+
# @param workspace [String]
|
|
1463
|
+
# @param owner [String]
|
|
1464
|
+
# @param repo [String]
|
|
1465
|
+
# @param request_body [Hash<String, Object>]
|
|
1466
|
+
# @param [Hash] opts the optional parameters
|
|
1467
|
+
# @return [Array<(Hash<String, Object>, Integer, Hash)>] Hash<String, Object> data, response status code and response headers
|
|
1468
|
+
def workspace_link_repo_task_with_http_info(org, workspace, owner, repo, request_body, opts = {})
|
|
1469
|
+
if @api_client.config.debugging
|
|
1470
|
+
@api_client.config.logger.debug 'Calling API: RepoApi.workspace_link_repo_task ...'
|
|
1471
|
+
end
|
|
1472
|
+
# verify the required parameter 'org' is set
|
|
1473
|
+
if @api_client.config.client_side_validation && org.nil?
|
|
1474
|
+
fail ArgumentError, "Missing the required parameter 'org' when calling RepoApi.workspace_link_repo_task"
|
|
1475
|
+
end
|
|
1476
|
+
# verify the required parameter 'workspace' is set
|
|
1477
|
+
if @api_client.config.client_side_validation && workspace.nil?
|
|
1478
|
+
fail ArgumentError, "Missing the required parameter 'workspace' when calling RepoApi.workspace_link_repo_task"
|
|
1479
|
+
end
|
|
1480
|
+
# verify the required parameter 'owner' is set
|
|
1481
|
+
if @api_client.config.client_side_validation && owner.nil?
|
|
1482
|
+
fail ArgumentError, "Missing the required parameter 'owner' when calling RepoApi.workspace_link_repo_task"
|
|
1483
|
+
end
|
|
1484
|
+
# verify the required parameter 'repo' is set
|
|
1485
|
+
if @api_client.config.client_side_validation && repo.nil?
|
|
1486
|
+
fail ArgumentError, "Missing the required parameter 'repo' when calling RepoApi.workspace_link_repo_task"
|
|
1487
|
+
end
|
|
1488
|
+
# verify the required parameter 'request_body' is set
|
|
1489
|
+
if @api_client.config.client_side_validation && request_body.nil?
|
|
1490
|
+
fail ArgumentError, "Missing the required parameter 'request_body' when calling RepoApi.workspace_link_repo_task"
|
|
1491
|
+
end
|
|
1492
|
+
# resource path
|
|
1493
|
+
local_var_path = '/v1/organizations/{org}/workspaces/{workspace}/repos/repositories/{owner}/{repo}/tasks/link'.sub('{org}', CGI.escape(org.to_s)).sub('{workspace}', CGI.escape(workspace.to_s)).sub('{owner}', CGI.escape(owner.to_s)).sub('{repo}', CGI.escape(repo.to_s))
|
|
1494
|
+
|
|
1495
|
+
# query parameters
|
|
1496
|
+
query_params = opts[:query_params] || {}
|
|
1497
|
+
|
|
1498
|
+
# header parameters
|
|
1499
|
+
header_params = opts[:header_params] || {}
|
|
1500
|
+
# HTTP header 'Accept' (if needed)
|
|
1501
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
1502
|
+
# HTTP header 'Content-Type'
|
|
1503
|
+
content_type = @api_client.select_header_content_type(['application/json'])
|
|
1504
|
+
if !content_type.nil?
|
|
1505
|
+
header_params['Content-Type'] = content_type
|
|
1506
|
+
end
|
|
1507
|
+
|
|
1508
|
+
# form parameters
|
|
1509
|
+
form_params = opts[:form_params] || {}
|
|
1510
|
+
|
|
1511
|
+
# http body (model)
|
|
1512
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(request_body)
|
|
1513
|
+
|
|
1514
|
+
# return_type
|
|
1515
|
+
return_type = opts[:debug_return_type] || 'Hash<String, Object>'
|
|
1516
|
+
|
|
1517
|
+
# auth_names
|
|
1518
|
+
auth_names = opts[:debug_auth_names] || ['bearerAuth']
|
|
1519
|
+
|
|
1520
|
+
new_options = opts.merge(
|
|
1521
|
+
:operation => :"RepoApi.workspace_link_repo_task",
|
|
1522
|
+
:header_params => header_params,
|
|
1523
|
+
:query_params => query_params,
|
|
1524
|
+
:form_params => form_params,
|
|
1525
|
+
:body => post_body,
|
|
1526
|
+
:auth_names => auth_names,
|
|
1527
|
+
:return_type => return_type
|
|
1528
|
+
)
|
|
1529
|
+
|
|
1530
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
|
1531
|
+
if @api_client.config.debugging
|
|
1532
|
+
@api_client.config.logger.debug "API called: RepoApi#workspace_link_repo_task\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
1533
|
+
end
|
|
1534
|
+
return data, status_code, headers
|
|
1535
|
+
end
|
|
1536
|
+
|
|
1537
|
+
# @param org [String]
|
|
1538
|
+
# @param workspace [String]
|
|
1539
|
+
# @param owner [String]
|
|
1540
|
+
# @param repo [String]
|
|
1541
|
+
# @param [Hash] opts the optional parameters
|
|
1542
|
+
# @return [Hash<String, Object>]
|
|
1543
|
+
def workspace_list_repo_branches(org, workspace, owner, repo, opts = {})
|
|
1544
|
+
data, _status_code, _headers = workspace_list_repo_branches_with_http_info(org, workspace, owner, repo, opts)
|
|
1545
|
+
data
|
|
1546
|
+
end
|
|
1547
|
+
|
|
1548
|
+
# @param org [String]
|
|
1549
|
+
# @param workspace [String]
|
|
1550
|
+
# @param owner [String]
|
|
1551
|
+
# @param repo [String]
|
|
1552
|
+
# @param [Hash] opts the optional parameters
|
|
1553
|
+
# @return [Array<(Hash<String, Object>, Integer, Hash)>] Hash<String, Object> data, response status code and response headers
|
|
1554
|
+
def workspace_list_repo_branches_with_http_info(org, workspace, owner, repo, opts = {})
|
|
1555
|
+
if @api_client.config.debugging
|
|
1556
|
+
@api_client.config.logger.debug 'Calling API: RepoApi.workspace_list_repo_branches ...'
|
|
1557
|
+
end
|
|
1558
|
+
# verify the required parameter 'org' is set
|
|
1559
|
+
if @api_client.config.client_side_validation && org.nil?
|
|
1560
|
+
fail ArgumentError, "Missing the required parameter 'org' when calling RepoApi.workspace_list_repo_branches"
|
|
1561
|
+
end
|
|
1562
|
+
# verify the required parameter 'workspace' is set
|
|
1563
|
+
if @api_client.config.client_side_validation && workspace.nil?
|
|
1564
|
+
fail ArgumentError, "Missing the required parameter 'workspace' when calling RepoApi.workspace_list_repo_branches"
|
|
1565
|
+
end
|
|
1566
|
+
# verify the required parameter 'owner' is set
|
|
1567
|
+
if @api_client.config.client_side_validation && owner.nil?
|
|
1568
|
+
fail ArgumentError, "Missing the required parameter 'owner' when calling RepoApi.workspace_list_repo_branches"
|
|
1569
|
+
end
|
|
1570
|
+
# verify the required parameter 'repo' is set
|
|
1571
|
+
if @api_client.config.client_side_validation && repo.nil?
|
|
1572
|
+
fail ArgumentError, "Missing the required parameter 'repo' when calling RepoApi.workspace_list_repo_branches"
|
|
1573
|
+
end
|
|
1574
|
+
# resource path
|
|
1575
|
+
local_var_path = '/v1/organizations/{org}/workspaces/{workspace}/repos/repositories/{owner}/{repo}/branches'.sub('{org}', CGI.escape(org.to_s)).sub('{workspace}', CGI.escape(workspace.to_s)).sub('{owner}', CGI.escape(owner.to_s)).sub('{repo}', CGI.escape(repo.to_s))
|
|
1576
|
+
|
|
1577
|
+
# query parameters
|
|
1578
|
+
query_params = opts[:query_params] || {}
|
|
1579
|
+
|
|
1580
|
+
# header parameters
|
|
1581
|
+
header_params = opts[:header_params] || {}
|
|
1582
|
+
# HTTP header 'Accept' (if needed)
|
|
1583
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
1584
|
+
|
|
1585
|
+
# form parameters
|
|
1586
|
+
form_params = opts[:form_params] || {}
|
|
1587
|
+
|
|
1588
|
+
# http body (model)
|
|
1589
|
+
post_body = opts[:debug_body]
|
|
1590
|
+
|
|
1591
|
+
# return_type
|
|
1592
|
+
return_type = opts[:debug_return_type] || 'Hash<String, Object>'
|
|
1593
|
+
|
|
1594
|
+
# auth_names
|
|
1595
|
+
auth_names = opts[:debug_auth_names] || ['bearerAuth']
|
|
1596
|
+
|
|
1597
|
+
new_options = opts.merge(
|
|
1598
|
+
:operation => :"RepoApi.workspace_list_repo_branches",
|
|
1599
|
+
:header_params => header_params,
|
|
1600
|
+
:query_params => query_params,
|
|
1601
|
+
:form_params => form_params,
|
|
1602
|
+
:body => post_body,
|
|
1603
|
+
:auth_names => auth_names,
|
|
1604
|
+
:return_type => return_type
|
|
1605
|
+
)
|
|
1606
|
+
|
|
1607
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
1608
|
+
if @api_client.config.debugging
|
|
1609
|
+
@api_client.config.logger.debug "API called: RepoApi#workspace_list_repo_branches\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
1610
|
+
end
|
|
1611
|
+
return data, status_code, headers
|
|
1612
|
+
end
|
|
1613
|
+
|
|
1614
|
+
# @param org [String]
|
|
1615
|
+
# @param workspace [String]
|
|
1616
|
+
# @param owner [String]
|
|
1617
|
+
# @param repo [String]
|
|
1618
|
+
# @param [Hash] opts the optional parameters
|
|
1619
|
+
# @return [Hash<String, Object>]
|
|
1620
|
+
def workspace_list_repo_commits(org, workspace, owner, repo, opts = {})
|
|
1621
|
+
data, _status_code, _headers = workspace_list_repo_commits_with_http_info(org, workspace, owner, repo, opts)
|
|
1622
|
+
data
|
|
1623
|
+
end
|
|
1624
|
+
|
|
1625
|
+
# @param org [String]
|
|
1626
|
+
# @param workspace [String]
|
|
1627
|
+
# @param owner [String]
|
|
1628
|
+
# @param repo [String]
|
|
1629
|
+
# @param [Hash] opts the optional parameters
|
|
1630
|
+
# @return [Array<(Hash<String, Object>, Integer, Hash)>] Hash<String, Object> data, response status code and response headers
|
|
1631
|
+
def workspace_list_repo_commits_with_http_info(org, workspace, owner, repo, opts = {})
|
|
1632
|
+
if @api_client.config.debugging
|
|
1633
|
+
@api_client.config.logger.debug 'Calling API: RepoApi.workspace_list_repo_commits ...'
|
|
1634
|
+
end
|
|
1635
|
+
# verify the required parameter 'org' is set
|
|
1636
|
+
if @api_client.config.client_side_validation && org.nil?
|
|
1637
|
+
fail ArgumentError, "Missing the required parameter 'org' when calling RepoApi.workspace_list_repo_commits"
|
|
1638
|
+
end
|
|
1639
|
+
# verify the required parameter 'workspace' is set
|
|
1640
|
+
if @api_client.config.client_side_validation && workspace.nil?
|
|
1641
|
+
fail ArgumentError, "Missing the required parameter 'workspace' when calling RepoApi.workspace_list_repo_commits"
|
|
1642
|
+
end
|
|
1643
|
+
# verify the required parameter 'owner' is set
|
|
1644
|
+
if @api_client.config.client_side_validation && owner.nil?
|
|
1645
|
+
fail ArgumentError, "Missing the required parameter 'owner' when calling RepoApi.workspace_list_repo_commits"
|
|
1646
|
+
end
|
|
1647
|
+
# verify the required parameter 'repo' is set
|
|
1648
|
+
if @api_client.config.client_side_validation && repo.nil?
|
|
1649
|
+
fail ArgumentError, "Missing the required parameter 'repo' when calling RepoApi.workspace_list_repo_commits"
|
|
1650
|
+
end
|
|
1651
|
+
# resource path
|
|
1652
|
+
local_var_path = '/v1/organizations/{org}/workspaces/{workspace}/repos/repositories/{owner}/{repo}/commits'.sub('{org}', CGI.escape(org.to_s)).sub('{workspace}', CGI.escape(workspace.to_s)).sub('{owner}', CGI.escape(owner.to_s)).sub('{repo}', CGI.escape(repo.to_s))
|
|
1653
|
+
|
|
1654
|
+
# query parameters
|
|
1655
|
+
query_params = opts[:query_params] || {}
|
|
1656
|
+
|
|
1657
|
+
# header parameters
|
|
1658
|
+
header_params = opts[:header_params] || {}
|
|
1659
|
+
# HTTP header 'Accept' (if needed)
|
|
1660
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
1661
|
+
|
|
1662
|
+
# form parameters
|
|
1663
|
+
form_params = opts[:form_params] || {}
|
|
1664
|
+
|
|
1665
|
+
# http body (model)
|
|
1666
|
+
post_body = opts[:debug_body]
|
|
1667
|
+
|
|
1668
|
+
# return_type
|
|
1669
|
+
return_type = opts[:debug_return_type] || 'Hash<String, Object>'
|
|
1670
|
+
|
|
1671
|
+
# auth_names
|
|
1672
|
+
auth_names = opts[:debug_auth_names] || ['bearerAuth']
|
|
1673
|
+
|
|
1674
|
+
new_options = opts.merge(
|
|
1675
|
+
:operation => :"RepoApi.workspace_list_repo_commits",
|
|
1676
|
+
:header_params => header_params,
|
|
1677
|
+
:query_params => query_params,
|
|
1678
|
+
:form_params => form_params,
|
|
1679
|
+
:body => post_body,
|
|
1680
|
+
:auth_names => auth_names,
|
|
1681
|
+
:return_type => return_type
|
|
1682
|
+
)
|
|
1683
|
+
|
|
1684
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
1685
|
+
if @api_client.config.debugging
|
|
1686
|
+
@api_client.config.logger.debug "API called: RepoApi#workspace_list_repo_commits\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
1687
|
+
end
|
|
1688
|
+
return data, status_code, headers
|
|
1689
|
+
end
|
|
1690
|
+
|
|
1691
|
+
# @param org [String]
|
|
1692
|
+
# @param workspace [String]
|
|
1693
|
+
# @param owner [String]
|
|
1694
|
+
# @param repo [String]
|
|
1695
|
+
# @param [Hash] opts the optional parameters
|
|
1696
|
+
# @return [Hash<String, Object>]
|
|
1697
|
+
def workspace_list_repo_pull_requests(org, workspace, owner, repo, opts = {})
|
|
1698
|
+
data, _status_code, _headers = workspace_list_repo_pull_requests_with_http_info(org, workspace, owner, repo, opts)
|
|
1699
|
+
data
|
|
1700
|
+
end
|
|
1701
|
+
|
|
1702
|
+
# @param org [String]
|
|
1703
|
+
# @param workspace [String]
|
|
1704
|
+
# @param owner [String]
|
|
1705
|
+
# @param repo [String]
|
|
1706
|
+
# @param [Hash] opts the optional parameters
|
|
1707
|
+
# @return [Array<(Hash<String, Object>, Integer, Hash)>] Hash<String, Object> data, response status code and response headers
|
|
1708
|
+
def workspace_list_repo_pull_requests_with_http_info(org, workspace, owner, repo, opts = {})
|
|
1709
|
+
if @api_client.config.debugging
|
|
1710
|
+
@api_client.config.logger.debug 'Calling API: RepoApi.workspace_list_repo_pull_requests ...'
|
|
1711
|
+
end
|
|
1712
|
+
# verify the required parameter 'org' is set
|
|
1713
|
+
if @api_client.config.client_side_validation && org.nil?
|
|
1714
|
+
fail ArgumentError, "Missing the required parameter 'org' when calling RepoApi.workspace_list_repo_pull_requests"
|
|
1715
|
+
end
|
|
1716
|
+
# verify the required parameter 'workspace' is set
|
|
1717
|
+
if @api_client.config.client_side_validation && workspace.nil?
|
|
1718
|
+
fail ArgumentError, "Missing the required parameter 'workspace' when calling RepoApi.workspace_list_repo_pull_requests"
|
|
1719
|
+
end
|
|
1720
|
+
# verify the required parameter 'owner' is set
|
|
1721
|
+
if @api_client.config.client_side_validation && owner.nil?
|
|
1722
|
+
fail ArgumentError, "Missing the required parameter 'owner' when calling RepoApi.workspace_list_repo_pull_requests"
|
|
1723
|
+
end
|
|
1724
|
+
# verify the required parameter 'repo' is set
|
|
1725
|
+
if @api_client.config.client_side_validation && repo.nil?
|
|
1726
|
+
fail ArgumentError, "Missing the required parameter 'repo' when calling RepoApi.workspace_list_repo_pull_requests"
|
|
1727
|
+
end
|
|
1728
|
+
# resource path
|
|
1729
|
+
local_var_path = '/v1/organizations/{org}/workspaces/{workspace}/repos/repositories/{owner}/{repo}/pulls'.sub('{org}', CGI.escape(org.to_s)).sub('{workspace}', CGI.escape(workspace.to_s)).sub('{owner}', CGI.escape(owner.to_s)).sub('{repo}', CGI.escape(repo.to_s))
|
|
1730
|
+
|
|
1731
|
+
# query parameters
|
|
1732
|
+
query_params = opts[:query_params] || {}
|
|
1733
|
+
|
|
1734
|
+
# header parameters
|
|
1735
|
+
header_params = opts[:header_params] || {}
|
|
1736
|
+
# HTTP header 'Accept' (if needed)
|
|
1737
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
1738
|
+
|
|
1739
|
+
# form parameters
|
|
1740
|
+
form_params = opts[:form_params] || {}
|
|
1741
|
+
|
|
1742
|
+
# http body (model)
|
|
1743
|
+
post_body = opts[:debug_body]
|
|
1744
|
+
|
|
1745
|
+
# return_type
|
|
1746
|
+
return_type = opts[:debug_return_type] || 'Hash<String, Object>'
|
|
1747
|
+
|
|
1748
|
+
# auth_names
|
|
1749
|
+
auth_names = opts[:debug_auth_names] || ['bearerAuth']
|
|
1750
|
+
|
|
1751
|
+
new_options = opts.merge(
|
|
1752
|
+
:operation => :"RepoApi.workspace_list_repo_pull_requests",
|
|
1753
|
+
:header_params => header_params,
|
|
1754
|
+
:query_params => query_params,
|
|
1755
|
+
:form_params => form_params,
|
|
1756
|
+
:body => post_body,
|
|
1757
|
+
:auth_names => auth_names,
|
|
1758
|
+
:return_type => return_type
|
|
1759
|
+
)
|
|
1760
|
+
|
|
1761
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
1762
|
+
if @api_client.config.debugging
|
|
1763
|
+
@api_client.config.logger.debug "API called: RepoApi#workspace_list_repo_pull_requests\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
1764
|
+
end
|
|
1765
|
+
return data, status_code, headers
|
|
1766
|
+
end
|
|
1767
|
+
|
|
1768
|
+
# @param org [String]
|
|
1769
|
+
# @param workspace [String]
|
|
1770
|
+
# @param [Hash] opts the optional parameters
|
|
1771
|
+
# @return [Hash<String, Object>]
|
|
1772
|
+
def workspace_list_repo_repositories(org, workspace, opts = {})
|
|
1773
|
+
data, _status_code, _headers = workspace_list_repo_repositories_with_http_info(org, workspace, opts)
|
|
1774
|
+
data
|
|
1775
|
+
end
|
|
1776
|
+
|
|
1777
|
+
# @param org [String]
|
|
1778
|
+
# @param workspace [String]
|
|
1779
|
+
# @param [Hash] opts the optional parameters
|
|
1780
|
+
# @return [Array<(Hash<String, Object>, Integer, Hash)>] Hash<String, Object> data, response status code and response headers
|
|
1781
|
+
def workspace_list_repo_repositories_with_http_info(org, workspace, opts = {})
|
|
1782
|
+
if @api_client.config.debugging
|
|
1783
|
+
@api_client.config.logger.debug 'Calling API: RepoApi.workspace_list_repo_repositories ...'
|
|
1784
|
+
end
|
|
1785
|
+
# verify the required parameter 'org' is set
|
|
1786
|
+
if @api_client.config.client_side_validation && org.nil?
|
|
1787
|
+
fail ArgumentError, "Missing the required parameter 'org' when calling RepoApi.workspace_list_repo_repositories"
|
|
1788
|
+
end
|
|
1789
|
+
# verify the required parameter 'workspace' is set
|
|
1790
|
+
if @api_client.config.client_side_validation && workspace.nil?
|
|
1791
|
+
fail ArgumentError, "Missing the required parameter 'workspace' when calling RepoApi.workspace_list_repo_repositories"
|
|
1792
|
+
end
|
|
1793
|
+
# resource path
|
|
1794
|
+
local_var_path = '/v1/organizations/{org}/workspaces/{workspace}/repos/repositories'.sub('{org}', CGI.escape(org.to_s)).sub('{workspace}', CGI.escape(workspace.to_s))
|
|
1795
|
+
|
|
1796
|
+
# query parameters
|
|
1797
|
+
query_params = opts[:query_params] || {}
|
|
1798
|
+
|
|
1799
|
+
# header parameters
|
|
1800
|
+
header_params = opts[:header_params] || {}
|
|
1801
|
+
# HTTP header 'Accept' (if needed)
|
|
1802
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
1803
|
+
|
|
1804
|
+
# form parameters
|
|
1805
|
+
form_params = opts[:form_params] || {}
|
|
1806
|
+
|
|
1807
|
+
# http body (model)
|
|
1808
|
+
post_body = opts[:debug_body]
|
|
1809
|
+
|
|
1810
|
+
# return_type
|
|
1811
|
+
return_type = opts[:debug_return_type] || 'Hash<String, Object>'
|
|
1812
|
+
|
|
1813
|
+
# auth_names
|
|
1814
|
+
auth_names = opts[:debug_auth_names] || ['bearerAuth']
|
|
1815
|
+
|
|
1816
|
+
new_options = opts.merge(
|
|
1817
|
+
:operation => :"RepoApi.workspace_list_repo_repositories",
|
|
1818
|
+
:header_params => header_params,
|
|
1819
|
+
:query_params => query_params,
|
|
1820
|
+
:form_params => form_params,
|
|
1821
|
+
:body => post_body,
|
|
1822
|
+
:auth_names => auth_names,
|
|
1823
|
+
:return_type => return_type
|
|
1824
|
+
)
|
|
1825
|
+
|
|
1826
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
1827
|
+
if @api_client.config.debugging
|
|
1828
|
+
@api_client.config.logger.debug "API called: RepoApi#workspace_list_repo_repositories\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
1829
|
+
end
|
|
1830
|
+
return data, status_code, headers
|
|
1831
|
+
end
|
|
1832
|
+
|
|
1833
|
+
# @param org [String]
|
|
1834
|
+
# @param workspace [String]
|
|
1835
|
+
# @param owner [String]
|
|
1836
|
+
# @param repo [String]
|
|
1837
|
+
# @param [Hash] opts the optional parameters
|
|
1838
|
+
# @return [Hash<String, Object>]
|
|
1839
|
+
def workspace_list_repo_tasks(org, workspace, owner, repo, opts = {})
|
|
1840
|
+
data, _status_code, _headers = workspace_list_repo_tasks_with_http_info(org, workspace, owner, repo, opts)
|
|
1841
|
+
data
|
|
1842
|
+
end
|
|
1843
|
+
|
|
1844
|
+
# @param org [String]
|
|
1845
|
+
# @param workspace [String]
|
|
1846
|
+
# @param owner [String]
|
|
1847
|
+
# @param repo [String]
|
|
1848
|
+
# @param [Hash] opts the optional parameters
|
|
1849
|
+
# @return [Array<(Hash<String, Object>, Integer, Hash)>] Hash<String, Object> data, response status code and response headers
|
|
1850
|
+
def workspace_list_repo_tasks_with_http_info(org, workspace, owner, repo, opts = {})
|
|
1851
|
+
if @api_client.config.debugging
|
|
1852
|
+
@api_client.config.logger.debug 'Calling API: RepoApi.workspace_list_repo_tasks ...'
|
|
1853
|
+
end
|
|
1854
|
+
# verify the required parameter 'org' is set
|
|
1855
|
+
if @api_client.config.client_side_validation && org.nil?
|
|
1856
|
+
fail ArgumentError, "Missing the required parameter 'org' when calling RepoApi.workspace_list_repo_tasks"
|
|
1857
|
+
end
|
|
1858
|
+
# verify the required parameter 'workspace' is set
|
|
1859
|
+
if @api_client.config.client_side_validation && workspace.nil?
|
|
1860
|
+
fail ArgumentError, "Missing the required parameter 'workspace' when calling RepoApi.workspace_list_repo_tasks"
|
|
1861
|
+
end
|
|
1862
|
+
# verify the required parameter 'owner' is set
|
|
1863
|
+
if @api_client.config.client_side_validation && owner.nil?
|
|
1864
|
+
fail ArgumentError, "Missing the required parameter 'owner' when calling RepoApi.workspace_list_repo_tasks"
|
|
1865
|
+
end
|
|
1866
|
+
# verify the required parameter 'repo' is set
|
|
1867
|
+
if @api_client.config.client_side_validation && repo.nil?
|
|
1868
|
+
fail ArgumentError, "Missing the required parameter 'repo' when calling RepoApi.workspace_list_repo_tasks"
|
|
1869
|
+
end
|
|
1870
|
+
# resource path
|
|
1871
|
+
local_var_path = '/v1/organizations/{org}/workspaces/{workspace}/repos/repositories/{owner}/{repo}/tasks'.sub('{org}', CGI.escape(org.to_s)).sub('{workspace}', CGI.escape(workspace.to_s)).sub('{owner}', CGI.escape(owner.to_s)).sub('{repo}', CGI.escape(repo.to_s))
|
|
1872
|
+
|
|
1873
|
+
# query parameters
|
|
1874
|
+
query_params = opts[:query_params] || {}
|
|
1875
|
+
|
|
1876
|
+
# header parameters
|
|
1877
|
+
header_params = opts[:header_params] || {}
|
|
1878
|
+
# HTTP header 'Accept' (if needed)
|
|
1879
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
1880
|
+
|
|
1881
|
+
# form parameters
|
|
1882
|
+
form_params = opts[:form_params] || {}
|
|
1883
|
+
|
|
1884
|
+
# http body (model)
|
|
1885
|
+
post_body = opts[:debug_body]
|
|
1886
|
+
|
|
1887
|
+
# return_type
|
|
1888
|
+
return_type = opts[:debug_return_type] || 'Hash<String, Object>'
|
|
1889
|
+
|
|
1890
|
+
# auth_names
|
|
1891
|
+
auth_names = opts[:debug_auth_names] || ['bearerAuth']
|
|
1892
|
+
|
|
1893
|
+
new_options = opts.merge(
|
|
1894
|
+
:operation => :"RepoApi.workspace_list_repo_tasks",
|
|
1895
|
+
:header_params => header_params,
|
|
1896
|
+
:query_params => query_params,
|
|
1897
|
+
:form_params => form_params,
|
|
1898
|
+
:body => post_body,
|
|
1899
|
+
:auth_names => auth_names,
|
|
1900
|
+
:return_type => return_type
|
|
1901
|
+
)
|
|
1902
|
+
|
|
1903
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
1904
|
+
if @api_client.config.debugging
|
|
1905
|
+
@api_client.config.logger.debug "API called: RepoApi#workspace_list_repo_tasks\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
1906
|
+
end
|
|
1907
|
+
return data, status_code, headers
|
|
1908
|
+
end
|
|
1909
|
+
|
|
1910
|
+
# @param org [String]
|
|
1911
|
+
# @param workspace [String]
|
|
1912
|
+
# @param owner [String]
|
|
1913
|
+
# @param repo [String]
|
|
1914
|
+
# @param [Hash] opts the optional parameters
|
|
1915
|
+
# @return [Hash<String, Object>]
|
|
1916
|
+
def workspace_list_repo_workflows(org, workspace, owner, repo, opts = {})
|
|
1917
|
+
data, _status_code, _headers = workspace_list_repo_workflows_with_http_info(org, workspace, owner, repo, opts)
|
|
1918
|
+
data
|
|
1919
|
+
end
|
|
1920
|
+
|
|
1921
|
+
# @param org [String]
|
|
1922
|
+
# @param workspace [String]
|
|
1923
|
+
# @param owner [String]
|
|
1924
|
+
# @param repo [String]
|
|
1925
|
+
# @param [Hash] opts the optional parameters
|
|
1926
|
+
# @return [Array<(Hash<String, Object>, Integer, Hash)>] Hash<String, Object> data, response status code and response headers
|
|
1927
|
+
def workspace_list_repo_workflows_with_http_info(org, workspace, owner, repo, opts = {})
|
|
1928
|
+
if @api_client.config.debugging
|
|
1929
|
+
@api_client.config.logger.debug 'Calling API: RepoApi.workspace_list_repo_workflows ...'
|
|
1930
|
+
end
|
|
1931
|
+
# verify the required parameter 'org' is set
|
|
1932
|
+
if @api_client.config.client_side_validation && org.nil?
|
|
1933
|
+
fail ArgumentError, "Missing the required parameter 'org' when calling RepoApi.workspace_list_repo_workflows"
|
|
1934
|
+
end
|
|
1935
|
+
# verify the required parameter 'workspace' is set
|
|
1936
|
+
if @api_client.config.client_side_validation && workspace.nil?
|
|
1937
|
+
fail ArgumentError, "Missing the required parameter 'workspace' when calling RepoApi.workspace_list_repo_workflows"
|
|
1938
|
+
end
|
|
1939
|
+
# verify the required parameter 'owner' is set
|
|
1940
|
+
if @api_client.config.client_side_validation && owner.nil?
|
|
1941
|
+
fail ArgumentError, "Missing the required parameter 'owner' when calling RepoApi.workspace_list_repo_workflows"
|
|
1942
|
+
end
|
|
1943
|
+
# verify the required parameter 'repo' is set
|
|
1944
|
+
if @api_client.config.client_side_validation && repo.nil?
|
|
1945
|
+
fail ArgumentError, "Missing the required parameter 'repo' when calling RepoApi.workspace_list_repo_workflows"
|
|
1946
|
+
end
|
|
1947
|
+
# resource path
|
|
1948
|
+
local_var_path = '/v1/organizations/{org}/workspaces/{workspace}/repos/repositories/{owner}/{repo}/workflows'.sub('{org}', CGI.escape(org.to_s)).sub('{workspace}', CGI.escape(workspace.to_s)).sub('{owner}', CGI.escape(owner.to_s)).sub('{repo}', CGI.escape(repo.to_s))
|
|
1949
|
+
|
|
1950
|
+
# query parameters
|
|
1951
|
+
query_params = opts[:query_params] || {}
|
|
1952
|
+
|
|
1953
|
+
# header parameters
|
|
1954
|
+
header_params = opts[:header_params] || {}
|
|
1955
|
+
# HTTP header 'Accept' (if needed)
|
|
1956
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
1957
|
+
|
|
1958
|
+
# form parameters
|
|
1959
|
+
form_params = opts[:form_params] || {}
|
|
1960
|
+
|
|
1961
|
+
# http body (model)
|
|
1962
|
+
post_body = opts[:debug_body]
|
|
1963
|
+
|
|
1964
|
+
# return_type
|
|
1965
|
+
return_type = opts[:debug_return_type] || 'Hash<String, Object>'
|
|
1966
|
+
|
|
1967
|
+
# auth_names
|
|
1968
|
+
auth_names = opts[:debug_auth_names] || ['bearerAuth']
|
|
1969
|
+
|
|
1970
|
+
new_options = opts.merge(
|
|
1971
|
+
:operation => :"RepoApi.workspace_list_repo_workflows",
|
|
1972
|
+
:header_params => header_params,
|
|
1973
|
+
:query_params => query_params,
|
|
1974
|
+
:form_params => form_params,
|
|
1975
|
+
:body => post_body,
|
|
1976
|
+
:auth_names => auth_names,
|
|
1977
|
+
:return_type => return_type
|
|
1978
|
+
)
|
|
1979
|
+
|
|
1980
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
1981
|
+
if @api_client.config.debugging
|
|
1982
|
+
@api_client.config.logger.debug "API called: RepoApi#workspace_list_repo_workflows\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
1983
|
+
end
|
|
1984
|
+
return data, status_code, headers
|
|
1985
|
+
end
|
|
1986
|
+
|
|
1987
|
+
# @param org [String]
|
|
1988
|
+
# @param workspace [String]
|
|
1989
|
+
# @param owner [String]
|
|
1990
|
+
# @param repo [String]
|
|
1991
|
+
# @param number [Integer]
|
|
1992
|
+
# @param [Hash] opts the optional parameters
|
|
1993
|
+
# @option opts [Hash<String, Object>] :request_body
|
|
1994
|
+
# @return [Hash<String, Object>]
|
|
1995
|
+
def workspace_merge_repo_pull_request(org, workspace, owner, repo, number, opts = {})
|
|
1996
|
+
data, _status_code, _headers = workspace_merge_repo_pull_request_with_http_info(org, workspace, owner, repo, number, opts)
|
|
1997
|
+
data
|
|
1998
|
+
end
|
|
1999
|
+
|
|
2000
|
+
# @param org [String]
|
|
2001
|
+
# @param workspace [String]
|
|
2002
|
+
# @param owner [String]
|
|
2003
|
+
# @param repo [String]
|
|
2004
|
+
# @param number [Integer]
|
|
2005
|
+
# @param [Hash] opts the optional parameters
|
|
2006
|
+
# @option opts [Hash<String, Object>] :request_body
|
|
2007
|
+
# @return [Array<(Hash<String, Object>, Integer, Hash)>] Hash<String, Object> data, response status code and response headers
|
|
2008
|
+
def workspace_merge_repo_pull_request_with_http_info(org, workspace, owner, repo, number, opts = {})
|
|
2009
|
+
if @api_client.config.debugging
|
|
2010
|
+
@api_client.config.logger.debug 'Calling API: RepoApi.workspace_merge_repo_pull_request ...'
|
|
2011
|
+
end
|
|
2012
|
+
# verify the required parameter 'org' is set
|
|
2013
|
+
if @api_client.config.client_side_validation && org.nil?
|
|
2014
|
+
fail ArgumentError, "Missing the required parameter 'org' when calling RepoApi.workspace_merge_repo_pull_request"
|
|
2015
|
+
end
|
|
2016
|
+
# verify the required parameter 'workspace' is set
|
|
2017
|
+
if @api_client.config.client_side_validation && workspace.nil?
|
|
2018
|
+
fail ArgumentError, "Missing the required parameter 'workspace' when calling RepoApi.workspace_merge_repo_pull_request"
|
|
2019
|
+
end
|
|
2020
|
+
# verify the required parameter 'owner' is set
|
|
2021
|
+
if @api_client.config.client_side_validation && owner.nil?
|
|
2022
|
+
fail ArgumentError, "Missing the required parameter 'owner' when calling RepoApi.workspace_merge_repo_pull_request"
|
|
2023
|
+
end
|
|
2024
|
+
# verify the required parameter 'repo' is set
|
|
2025
|
+
if @api_client.config.client_side_validation && repo.nil?
|
|
2026
|
+
fail ArgumentError, "Missing the required parameter 'repo' when calling RepoApi.workspace_merge_repo_pull_request"
|
|
2027
|
+
end
|
|
2028
|
+
# verify the required parameter 'number' is set
|
|
2029
|
+
if @api_client.config.client_side_validation && number.nil?
|
|
2030
|
+
fail ArgumentError, "Missing the required parameter 'number' when calling RepoApi.workspace_merge_repo_pull_request"
|
|
2031
|
+
end
|
|
2032
|
+
# resource path
|
|
2033
|
+
local_var_path = '/v1/organizations/{org}/workspaces/{workspace}/repos/repositories/{owner}/{repo}/pulls/{number}/merge'.sub('{org}', CGI.escape(org.to_s)).sub('{workspace}', CGI.escape(workspace.to_s)).sub('{owner}', CGI.escape(owner.to_s)).sub('{repo}', CGI.escape(repo.to_s)).sub('{number}', CGI.escape(number.to_s))
|
|
2034
|
+
|
|
2035
|
+
# query parameters
|
|
2036
|
+
query_params = opts[:query_params] || {}
|
|
2037
|
+
|
|
2038
|
+
# header parameters
|
|
2039
|
+
header_params = opts[:header_params] || {}
|
|
2040
|
+
# HTTP header 'Accept' (if needed)
|
|
2041
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
2042
|
+
# HTTP header 'Content-Type'
|
|
2043
|
+
content_type = @api_client.select_header_content_type(['application/json'])
|
|
2044
|
+
if !content_type.nil?
|
|
2045
|
+
header_params['Content-Type'] = content_type
|
|
2046
|
+
end
|
|
2047
|
+
|
|
2048
|
+
# form parameters
|
|
2049
|
+
form_params = opts[:form_params] || {}
|
|
2050
|
+
|
|
2051
|
+
# http body (model)
|
|
2052
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(opts[:'request_body'])
|
|
2053
|
+
|
|
2054
|
+
# return_type
|
|
2055
|
+
return_type = opts[:debug_return_type] || 'Hash<String, Object>'
|
|
2056
|
+
|
|
2057
|
+
# auth_names
|
|
2058
|
+
auth_names = opts[:debug_auth_names] || ['bearerAuth']
|
|
2059
|
+
|
|
2060
|
+
new_options = opts.merge(
|
|
2061
|
+
:operation => :"RepoApi.workspace_merge_repo_pull_request",
|
|
2062
|
+
:header_params => header_params,
|
|
2063
|
+
:query_params => query_params,
|
|
2064
|
+
:form_params => form_params,
|
|
2065
|
+
:body => post_body,
|
|
2066
|
+
:auth_names => auth_names,
|
|
2067
|
+
:return_type => return_type
|
|
2068
|
+
)
|
|
2069
|
+
|
|
2070
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
|
2071
|
+
if @api_client.config.debugging
|
|
2072
|
+
@api_client.config.logger.debug "API called: RepoApi#workspace_merge_repo_pull_request\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
2073
|
+
end
|
|
2074
|
+
return data, status_code, headers
|
|
2075
|
+
end
|
|
2076
|
+
|
|
2077
|
+
# @param org [String]
|
|
2078
|
+
# @param workspace [String]
|
|
2079
|
+
# @param owner [String]
|
|
2080
|
+
# @param repo [String]
|
|
2081
|
+
# @param id [String]
|
|
2082
|
+
# @param [Hash] opts the optional parameters
|
|
2083
|
+
# @option opts [Hash<String, Object>] :request_body
|
|
2084
|
+
# @return [Hash<String, Object>]
|
|
2085
|
+
def workspace_trigger_repo_workflow(org, workspace, owner, repo, id, opts = {})
|
|
2086
|
+
data, _status_code, _headers = workspace_trigger_repo_workflow_with_http_info(org, workspace, owner, repo, id, opts)
|
|
2087
|
+
data
|
|
2088
|
+
end
|
|
2089
|
+
|
|
2090
|
+
# @param org [String]
|
|
2091
|
+
# @param workspace [String]
|
|
2092
|
+
# @param owner [String]
|
|
2093
|
+
# @param repo [String]
|
|
2094
|
+
# @param id [String]
|
|
2095
|
+
# @param [Hash] opts the optional parameters
|
|
2096
|
+
# @option opts [Hash<String, Object>] :request_body
|
|
2097
|
+
# @return [Array<(Hash<String, Object>, Integer, Hash)>] Hash<String, Object> data, response status code and response headers
|
|
2098
|
+
def workspace_trigger_repo_workflow_with_http_info(org, workspace, owner, repo, id, opts = {})
|
|
2099
|
+
if @api_client.config.debugging
|
|
2100
|
+
@api_client.config.logger.debug 'Calling API: RepoApi.workspace_trigger_repo_workflow ...'
|
|
2101
|
+
end
|
|
2102
|
+
# verify the required parameter 'org' is set
|
|
2103
|
+
if @api_client.config.client_side_validation && org.nil?
|
|
2104
|
+
fail ArgumentError, "Missing the required parameter 'org' when calling RepoApi.workspace_trigger_repo_workflow"
|
|
2105
|
+
end
|
|
2106
|
+
# verify the required parameter 'workspace' is set
|
|
2107
|
+
if @api_client.config.client_side_validation && workspace.nil?
|
|
2108
|
+
fail ArgumentError, "Missing the required parameter 'workspace' when calling RepoApi.workspace_trigger_repo_workflow"
|
|
2109
|
+
end
|
|
2110
|
+
# verify the required parameter 'owner' is set
|
|
2111
|
+
if @api_client.config.client_side_validation && owner.nil?
|
|
2112
|
+
fail ArgumentError, "Missing the required parameter 'owner' when calling RepoApi.workspace_trigger_repo_workflow"
|
|
2113
|
+
end
|
|
2114
|
+
# verify the required parameter 'repo' is set
|
|
2115
|
+
if @api_client.config.client_side_validation && repo.nil?
|
|
2116
|
+
fail ArgumentError, "Missing the required parameter 'repo' when calling RepoApi.workspace_trigger_repo_workflow"
|
|
2117
|
+
end
|
|
2118
|
+
# verify the required parameter 'id' is set
|
|
2119
|
+
if @api_client.config.client_side_validation && id.nil?
|
|
2120
|
+
fail ArgumentError, "Missing the required parameter 'id' when calling RepoApi.workspace_trigger_repo_workflow"
|
|
2121
|
+
end
|
|
2122
|
+
# resource path
|
|
2123
|
+
local_var_path = '/v1/organizations/{org}/workspaces/{workspace}/repos/repositories/{owner}/{repo}/workflows/{id}/trigger'.sub('{org}', CGI.escape(org.to_s)).sub('{workspace}', CGI.escape(workspace.to_s)).sub('{owner}', CGI.escape(owner.to_s)).sub('{repo}', CGI.escape(repo.to_s)).sub('{id}', CGI.escape(id.to_s))
|
|
2124
|
+
|
|
2125
|
+
# query parameters
|
|
2126
|
+
query_params = opts[:query_params] || {}
|
|
2127
|
+
|
|
2128
|
+
# header parameters
|
|
2129
|
+
header_params = opts[:header_params] || {}
|
|
2130
|
+
# HTTP header 'Accept' (if needed)
|
|
2131
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
2132
|
+
# HTTP header 'Content-Type'
|
|
2133
|
+
content_type = @api_client.select_header_content_type(['application/json'])
|
|
2134
|
+
if !content_type.nil?
|
|
2135
|
+
header_params['Content-Type'] = content_type
|
|
2136
|
+
end
|
|
2137
|
+
|
|
2138
|
+
# form parameters
|
|
2139
|
+
form_params = opts[:form_params] || {}
|
|
2140
|
+
|
|
2141
|
+
# http body (model)
|
|
2142
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(opts[:'request_body'])
|
|
2143
|
+
|
|
2144
|
+
# return_type
|
|
2145
|
+
return_type = opts[:debug_return_type] || 'Hash<String, Object>'
|
|
2146
|
+
|
|
2147
|
+
# auth_names
|
|
2148
|
+
auth_names = opts[:debug_auth_names] || ['bearerAuth']
|
|
2149
|
+
|
|
2150
|
+
new_options = opts.merge(
|
|
2151
|
+
:operation => :"RepoApi.workspace_trigger_repo_workflow",
|
|
2152
|
+
:header_params => header_params,
|
|
2153
|
+
:query_params => query_params,
|
|
2154
|
+
:form_params => form_params,
|
|
2155
|
+
:body => post_body,
|
|
2156
|
+
:auth_names => auth_names,
|
|
2157
|
+
:return_type => return_type
|
|
2158
|
+
)
|
|
2159
|
+
|
|
2160
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
|
2161
|
+
if @api_client.config.debugging
|
|
2162
|
+
@api_client.config.logger.debug "API called: RepoApi#workspace_trigger_repo_workflow\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
2163
|
+
end
|
|
2164
|
+
return data, status_code, headers
|
|
2165
|
+
end
|
|
2166
|
+
end
|
|
2167
|
+
end
|