openapi_openai 1.0.0 → 1.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/Gemfile.lock +94 -25
- data/README.md +599 -53
- data/bin/byebug +1 -12
- data/bin/coderay +1 -12
- data/bin/htmldiff +1 -12
- data/bin/ldiff +1 -12
- data/bin/pry +1 -12
- data/bin/racc +1 -12
- data/bin/rake +1 -12
- data/bin/rspec +1 -12
- data/bin/rubocop +1 -12
- data/bin/ruby-parse +1 -12
- data/bin/ruby-rewrite +1 -12
- data/docs/AdminApiKey.md +30 -0
- data/docs/AdminApiKeyOwner.md +26 -0
- data/docs/AdminApiKeysCreateRequest.md +18 -0
- data/docs/AdminApiKeysDelete200Response.md +22 -0
- data/docs/ApiKeyList.md +26 -0
- data/docs/ArrayOfContentPartsInner.md +51 -0
- data/docs/AssistantObject.md +42 -0
- data/docs/AssistantObjectToolResources.md +20 -0
- data/docs/AssistantObjectToolResourcesCodeInterpreter.md +18 -0
- data/docs/AssistantObjectToolResourcesFileSearch.md +18 -0
- data/docs/AssistantObjectToolsInner.md +51 -0
- data/docs/AssistantStreamEvent.md +57 -0
- data/docs/AssistantToolsCode.md +18 -0
- data/docs/AssistantToolsFileSearch.md +20 -0
- data/docs/AssistantToolsFileSearchFileSearch.md +20 -0
- data/docs/AssistantToolsFileSearchTypeOnly.md +18 -0
- data/docs/AssistantToolsFunction.md +20 -0
- data/docs/AssistantsApi.md +1657 -0
- data/docs/AssistantsApiResponseFormatOption.md +53 -0
- data/docs/AssistantsApiToolChoiceOption.md +49 -0
- data/docs/AssistantsNamedToolChoice.md +20 -0
- data/docs/{CreateChatCompletionRequestFunctionCallOneOf.md → AssistantsNamedToolChoiceFunction.md} +2 -2
- data/docs/AudioApi.md +235 -0
- data/docs/AudioResponseFormat.md +15 -0
- data/docs/AuditLog.md +66 -0
- data/docs/AuditLogActor.md +22 -0
- data/docs/AuditLogActorApiKey.md +24 -0
- data/docs/AuditLogActorServiceAccount.md +18 -0
- data/docs/AuditLogActorSession.md +20 -0
- data/docs/AuditLogActorUser.md +20 -0
- data/docs/AuditLogApiKeyCreated.md +20 -0
- data/docs/AuditLogApiKeyCreatedData.md +18 -0
- data/docs/AuditLogApiKeyDeleted.md +18 -0
- data/docs/AuditLogApiKeyUpdated.md +20 -0
- data/docs/AuditLogApiKeyUpdatedChangesRequested.md +18 -0
- data/docs/AuditLogEventType.md +15 -0
- data/docs/AuditLogInviteAccepted.md +18 -0
- data/docs/AuditLogInviteSent.md +20 -0
- data/docs/AuditLogInviteSentData.md +20 -0
- data/docs/AuditLogLoginFailed.md +20 -0
- data/docs/AuditLogOrganizationUpdated.md +20 -0
- data/docs/AuditLogOrganizationUpdatedChangesRequested.md +24 -0
- data/docs/AuditLogOrganizationUpdatedChangesRequestedSettings.md +20 -0
- data/docs/AuditLogProject.md +20 -0
- data/docs/AuditLogProjectArchived.md +18 -0
- data/docs/AuditLogProjectCreated.md +20 -0
- data/docs/AuditLogProjectCreatedData.md +20 -0
- data/docs/AuditLogProjectUpdated.md +20 -0
- data/docs/AuditLogProjectUpdatedChangesRequested.md +18 -0
- data/docs/AuditLogRateLimitDeleted.md +18 -0
- data/docs/AuditLogRateLimitUpdated.md +20 -0
- data/docs/AuditLogRateLimitUpdatedChangesRequested.md +28 -0
- data/docs/AuditLogServiceAccountCreated.md +20 -0
- data/docs/AuditLogServiceAccountCreatedData.md +18 -0
- data/docs/AuditLogServiceAccountDeleted.md +18 -0
- data/docs/AuditLogServiceAccountUpdated.md +20 -0
- data/docs/AuditLogServiceAccountUpdatedChangesRequested.md +18 -0
- data/docs/AuditLogUserAdded.md +20 -0
- data/docs/AuditLogUserAddedData.md +18 -0
- data/docs/AuditLogUserDeleted.md +18 -0
- data/docs/AuditLogUserUpdated.md +20 -0
- data/docs/AuditLogUserUpdatedChangesRequested.md +18 -0
- data/docs/AuditLogsApi.md +93 -0
- data/docs/AutoChunkingStrategy.md +18 -0
- data/docs/AutoChunkingStrategyRequestParam.md +18 -0
- data/docs/Batch.md +56 -0
- data/docs/BatchApi.md +283 -0
- data/docs/BatchErrors.md +20 -0
- data/docs/BatchErrorsDataInner.md +24 -0
- data/docs/BatchRequestCounts.md +22 -0
- data/docs/BatchRequestInput.md +22 -0
- data/docs/BatchRequestOutput.md +24 -0
- data/docs/BatchRequestOutputError.md +20 -0
- data/docs/BatchRequestOutputResponse.md +22 -0
- data/docs/ChatApi.md +75 -0
- data/docs/ChatCompletionFunctionCallOption.md +18 -0
- data/docs/ChatCompletionFunctions.md +3 -3
- data/docs/ChatCompletionMessageToolCall.md +22 -0
- data/docs/ChatCompletionMessageToolCallChunk.md +24 -0
- data/docs/{ChatCompletionRequestMessageFunctionCall.md → ChatCompletionMessageToolCallChunkFunction.md} +2 -2
- data/docs/ChatCompletionMessageToolCallFunction.md +20 -0
- data/docs/ChatCompletionNamedToolChoice.md +20 -0
- data/docs/ChatCompletionRequestAssistantMessage.md +30 -0
- data/docs/ChatCompletionRequestAssistantMessageAudio.md +18 -0
- data/docs/ChatCompletionRequestAssistantMessageContent.md +49 -0
- data/docs/ChatCompletionRequestAssistantMessageContentPart.md +49 -0
- data/docs/ChatCompletionRequestAssistantMessageFunctionCall.md +20 -0
- data/docs/ChatCompletionRequestDeveloperMessage.md +22 -0
- data/docs/ChatCompletionRequestDeveloperMessageContent.md +49 -0
- data/docs/ChatCompletionRequestFunctionMessage.md +22 -0
- data/docs/ChatCompletionRequestMessage.md +47 -14
- data/docs/ChatCompletionRequestMessageContentPartAudio.md +20 -0
- data/docs/ChatCompletionRequestMessageContentPartAudioInputAudio.md +20 -0
- data/docs/ChatCompletionRequestMessageContentPartImage.md +20 -0
- data/docs/ChatCompletionRequestMessageContentPartImageImageUrl.md +20 -0
- data/docs/ChatCompletionRequestMessageContentPartRefusal.md +20 -0
- data/docs/ChatCompletionRequestMessageContentPartText.md +20 -0
- data/docs/ChatCompletionRequestSystemMessage.md +22 -0
- data/docs/ChatCompletionRequestSystemMessageContent.md +49 -0
- data/docs/ChatCompletionRequestToolMessage.md +22 -0
- data/docs/ChatCompletionRequestToolMessageContent.md +49 -0
- data/docs/ChatCompletionRequestUserMessage.md +22 -0
- data/docs/ChatCompletionRequestUserMessageContent.md +49 -0
- data/docs/ChatCompletionRequestUserMessageContentPart.md +51 -0
- data/docs/ChatCompletionResponseMessage.md +10 -4
- data/docs/ChatCompletionResponseMessageAudio.md +24 -0
- data/docs/ChatCompletionResponseMessageFunctionCall.md +20 -0
- data/docs/ChatCompletionRole.md +15 -0
- data/docs/ChatCompletionStreamOptions.md +18 -0
- data/docs/ChatCompletionStreamResponseDelta.md +8 -4
- data/docs/ChatCompletionStreamResponseDeltaFunctionCall.md +20 -0
- data/docs/ChatCompletionTokenLogprob.md +24 -0
- data/docs/ChatCompletionTokenLogprobTopLogprobsInner.md +22 -0
- data/docs/ChatCompletionTool.md +20 -0
- data/docs/ChatCompletionToolChoiceOption.md +49 -0
- data/docs/ChunkingStrategyRequestParam.md +49 -0
- data/docs/CompleteUploadRequest.md +20 -0
- data/docs/CompletionUsage.md +26 -0
- data/docs/CompletionUsageCompletionTokensDetails.md +24 -0
- data/docs/CompletionUsagePromptTokensDetails.md +20 -0
- data/docs/CompletionsApi.md +75 -0
- data/docs/CostsResult.md +24 -0
- data/docs/CostsResultAmount.md +20 -0
- data/docs/CreateAssistantRequest.md +36 -0
- data/docs/CreateAssistantRequestModel.md +15 -0
- data/docs/CreateAssistantRequestToolResources.md +20 -0
- data/docs/CreateAssistantRequestToolResourcesCodeInterpreter.md +18 -0
- data/docs/CreateAssistantRequestToolResourcesFileSearch.md +20 -0
- data/docs/CreateAssistantRequestToolResourcesFileSearchVectorStoresInner.md +22 -0
- data/docs/CreateAssistantRequestToolResourcesFileSearchVectorStoresInnerChunkingStrategy.md +49 -0
- data/docs/CreateBatchRequest.md +24 -0
- data/docs/CreateChatCompletionFunctionResponse.md +30 -0
- data/docs/CreateChatCompletionFunctionResponseChoicesInner.md +22 -0
- data/docs/CreateChatCompletionRequest.md +55 -23
- data/docs/CreateChatCompletionRequestAudio.md +20 -0
- data/docs/CreateChatCompletionRequestFunctionCall.md +3 -3
- data/docs/CreateChatCompletionRequestModel.md +5 -37
- data/docs/CreateChatCompletionRequestResponseFormat.md +51 -0
- data/docs/CreateChatCompletionResponse.md +12 -8
- data/docs/CreateChatCompletionResponseChoicesInner.md +6 -4
- data/docs/CreateChatCompletionResponseChoicesInnerLogprobs.md +20 -0
- data/docs/CreateChatCompletionStreamResponse.md +13 -7
- data/docs/CreateChatCompletionStreamResponseChoicesInner.md +7 -5
- data/docs/CreateChatCompletionStreamResponseUsage.md +22 -0
- data/docs/CreateCompletionRequest.md +26 -22
- data/docs/CreateCompletionRequestModel.md +5 -37
- data/docs/CreateCompletionResponse.md +10 -8
- data/docs/CreateCompletionResponseChoicesInner.md +4 -4
- data/docs/CreateCompletionResponseChoicesInnerLogprobs.md +6 -6
- data/docs/CreateEmbeddingRequest.md +7 -3
- data/docs/CreateEmbeddingRequestModel.md +5 -37
- data/docs/CreateEmbeddingResponse.md +5 -5
- data/docs/CreateEmbeddingResponseUsage.md +2 -2
- data/docs/CreateFineTuningJobRequest.md +32 -0
- data/docs/CreateFineTuningJobRequestHyperparameters.md +22 -0
- data/docs/CreateFineTuningJobRequestHyperparametersBatchSize.md +49 -0
- data/docs/CreateFineTuningJobRequestHyperparametersLearningRateMultiplier.md +49 -0
- data/docs/CreateFineTuningJobRequestHyperparametersNEpochs.md +49 -0
- data/docs/CreateFineTuningJobRequestIntegrationsInner.md +20 -0
- data/docs/CreateFineTuningJobRequestIntegrationsInnerWandb.md +24 -0
- data/docs/CreateFineTuningJobRequestModel.md +15 -0
- data/docs/CreateImageEditRequestModel.md +15 -0
- data/docs/CreateImageRequest.md +12 -6
- data/docs/CreateImageRequestModel.md +15 -0
- data/docs/CreateMessageRequest.md +24 -0
- data/docs/CreateMessageRequestAttachmentsInner.md +20 -0
- data/docs/CreateMessageRequestAttachmentsInnerToolsInner.md +49 -0
- data/docs/CreateMessageRequestContent.md +49 -0
- data/docs/CreateModerationRequestInput.md +3 -1
- data/docs/CreateModerationRequestInputOneOfInner.md +49 -0
- data/docs/CreateModerationRequestInputOneOfInnerOneOf.md +20 -0
- data/docs/CreateModerationRequestInputOneOfInnerOneOf1.md +20 -0
- data/docs/CreateModerationRequestInputOneOfInnerOneOfImageUrl.md +18 -0
- data/docs/CreateModerationRequestModel.md +5 -37
- data/docs/CreateModerationResponse.md +3 -3
- data/docs/CreateModerationResponseResultsInner.md +4 -2
- data/docs/CreateModerationResponseResultsInnerCategories.md +19 -7
- data/docs/CreateModerationResponseResultsInnerCategoryAppliedInputTypes.md +42 -0
- data/docs/CreateModerationResponseResultsInnerCategoryScores.md +19 -7
- data/docs/CreateRunRequest.md +48 -0
- data/docs/CreateRunRequestModel.md +15 -0
- data/docs/CreateSpeechRequest.md +26 -0
- data/docs/CreateSpeechRequestModel.md +15 -0
- data/docs/CreateThreadAndRunRequest.md +48 -0
- data/docs/CreateThreadAndRunRequestToolResources.md +20 -0
- data/docs/CreateThreadAndRunRequestToolsInner.md +51 -0
- data/docs/CreateThreadRequest.md +22 -0
- data/docs/CreateThreadRequestToolResources.md +20 -0
- data/docs/CreateThreadRequestToolResourcesFileSearch.md +20 -0
- data/docs/CreateThreadRequestToolResourcesFileSearchVectorStoresInner.md +22 -0
- data/docs/CreateTranscription200Response.md +49 -0
- data/docs/CreateTranscriptionRequestModel.md +5 -37
- data/docs/CreateTranscriptionResponseJson.md +18 -0
- data/docs/CreateTranscriptionResponseVerboseJson.md +26 -0
- data/docs/CreateTranslation200Response.md +49 -0
- data/docs/{CreateTranscriptionResponse.md → CreateTranslationResponseJson.md} +2 -2
- data/docs/CreateTranslationResponseVerboseJson.md +24 -0
- data/docs/CreateUploadRequest.md +24 -0
- data/docs/CreateVectorStoreFileBatchRequest.md +20 -0
- data/docs/CreateVectorStoreFileRequest.md +20 -0
- data/docs/CreateVectorStoreRequest.md +26 -0
- data/docs/CreateVectorStoreRequestChunkingStrategy.md +49 -0
- data/docs/DefaultApi.md +293 -0
- data/docs/DefaultProjectErrorResponse.md +20 -0
- data/docs/DeleteAssistantResponse.md +22 -0
- data/docs/DeleteMessageResponse.md +22 -0
- data/docs/DeleteModelResponse.md +3 -3
- data/docs/DeleteThreadResponse.md +22 -0
- data/docs/DeleteVectorStoreFileResponse.md +22 -0
- data/docs/DeleteVectorStoreResponse.md +22 -0
- data/docs/DoneEvent.md +20 -0
- data/docs/Embedding.md +22 -0
- data/docs/EmbeddingsApi.md +75 -0
- data/docs/Error.md +4 -4
- data/docs/ErrorEvent.md +20 -0
- data/docs/FileSearchRankingOptions.md +20 -0
- data/docs/FilesApi.md +357 -0
- data/docs/FineTuneChatCompletionRequestAssistantMessage.md +32 -0
- data/docs/FineTuneChatRequestInput.md +24 -0
- data/docs/FineTuneChatRequestInputMessagesInner.md +55 -0
- data/docs/FineTuneCompletionRequestInput.md +20 -0
- data/docs/FineTuneDPOMethod.md +18 -0
- data/docs/FineTuneDPOMethodHyperparameters.md +24 -0
- data/docs/FineTuneDPOMethodHyperparametersBatchSize.md +49 -0
- data/docs/{CreateEditRequestModel.md → FineTuneDPOMethodHyperparametersBeta.md} +7 -5
- data/docs/FineTuneDPOMethodHyperparametersLearningRateMultiplier.md +49 -0
- data/docs/FineTuneDPOMethodHyperparametersNEpochs.md +49 -0
- data/docs/FineTuneMethod.md +22 -0
- data/docs/FineTunePreferenceRequestInput.md +22 -0
- data/docs/FineTunePreferenceRequestInputInput.md +22 -0
- data/docs/FineTunePreferenceRequestInputPreferredCompletionInner.md +47 -0
- data/docs/FineTuneSupervisedMethod.md +18 -0
- data/docs/FineTuneSupervisedMethodHyperparameters.md +22 -0
- data/docs/FineTuningApi.md +431 -0
- data/docs/FineTuningIntegration.md +20 -0
- data/docs/FineTuningJob.md +52 -0
- data/docs/FineTuningJobCheckpoint.md +30 -0
- data/docs/FineTuningJobCheckpointMetrics.md +30 -0
- data/docs/FineTuningJobError.md +22 -0
- data/docs/FineTuningJobEvent.md +30 -0
- data/docs/FineTuningJobHyperparameters.md +22 -0
- data/docs/FineTuningJobIntegrationsInner.md +47 -0
- data/docs/FunctionObject.md +24 -0
- data/docs/Image.md +22 -0
- data/docs/ImagesApi.md +239 -0
- data/docs/ImagesResponse.md +1 -1
- data/docs/Invite.md +34 -0
- data/docs/InviteDeleteResponse.md +22 -0
- data/docs/InviteListResponse.md +26 -0
- data/docs/InviteProjectsInner.md +20 -0
- data/docs/InviteRequest.md +22 -0
- data/docs/InviteRequestProjectsInner.md +20 -0
- data/docs/InvitesApi.md +283 -0
- data/docs/ListAssistantsResponse.md +26 -0
- data/docs/ListAuditLogsEffectiveAtParameter.md +24 -0
- data/docs/ListAuditLogsResponse.md +26 -0
- data/docs/ListBatchesResponse.md +26 -0
- data/docs/ListFilesResponse.md +8 -2
- data/docs/ListFineTuningJobCheckpointsResponse.md +26 -0
- data/docs/ListFineTuningJobEventsResponse.md +20 -0
- data/docs/ListMessagesResponse.md +26 -0
- data/docs/ListPaginatedFineTuningJobsResponse.md +22 -0
- data/docs/ListRunStepsResponse.md +26 -0
- data/docs/ListRunsResponse.md +26 -0
- data/docs/ListThreadsResponse.md +26 -0
- data/docs/ListVectorStoreFilesResponse.md +26 -0
- data/docs/ListVectorStoresResponse.md +26 -0
- data/docs/MessageContentImageFileObject.md +20 -0
- data/docs/MessageContentImageFileObjectImageFile.md +20 -0
- data/docs/MessageContentImageUrlObject.md +20 -0
- data/docs/MessageContentImageUrlObjectImageUrl.md +20 -0
- data/docs/MessageContentRefusalObject.md +20 -0
- data/docs/MessageContentTextAnnotationsFileCitationObject.md +26 -0
- data/docs/MessageContentTextAnnotationsFileCitationObjectFileCitation.md +18 -0
- data/docs/MessageContentTextAnnotationsFilePathObject.md +26 -0
- data/docs/MessageContentTextAnnotationsFilePathObjectFilePath.md +18 -0
- data/docs/MessageContentTextObject.md +20 -0
- data/docs/MessageContentTextObjectText.md +20 -0
- data/docs/MessageContentTextObjectTextAnnotationsInner.md +49 -0
- data/docs/MessageDeltaContentImageFileObject.md +22 -0
- data/docs/MessageDeltaContentImageFileObjectImageFile.md +20 -0
- data/docs/MessageDeltaContentImageUrlObject.md +22 -0
- data/docs/MessageDeltaContentImageUrlObjectImageUrl.md +20 -0
- data/docs/MessageDeltaContentRefusalObject.md +22 -0
- data/docs/MessageDeltaContentTextAnnotationsFileCitationObject.md +28 -0
- data/docs/MessageDeltaContentTextAnnotationsFileCitationObjectFileCitation.md +20 -0
- data/docs/MessageDeltaContentTextAnnotationsFilePathObject.md +28 -0
- data/docs/MessageDeltaContentTextAnnotationsFilePathObjectFilePath.md +18 -0
- data/docs/MessageDeltaContentTextObject.md +22 -0
- data/docs/MessageDeltaContentTextObjectText.md +20 -0
- data/docs/MessageDeltaContentTextObjectTextAnnotationsInner.md +49 -0
- data/docs/MessageDeltaObject.md +22 -0
- data/docs/MessageDeltaObjectDelta.md +20 -0
- data/docs/MessageDeltaObjectDeltaContentInner.md +53 -0
- data/docs/MessageObject.md +44 -0
- data/docs/MessageObjectContentInner.md +53 -0
- data/docs/MessageObjectIncompleteDetails.md +18 -0
- data/docs/MessageRequestContentTextObject.md +20 -0
- data/docs/MessageStreamEvent.md +55 -0
- data/docs/MessageStreamEventOneOf.md +20 -0
- data/docs/MessageStreamEventOneOf1.md +20 -0
- data/docs/MessageStreamEventOneOf2.md +20 -0
- data/docs/MessageStreamEventOneOf3.md +20 -0
- data/docs/MessageStreamEventOneOf4.md +20 -0
- data/docs/Model.md +5 -5
- data/docs/ModelsApi.md +208 -0
- data/docs/ModerationsApi.md +75 -0
- data/docs/ModifyAssistantRequest.md +36 -0
- data/docs/ModifyAssistantRequestToolResources.md +20 -0
- data/docs/ModifyAssistantRequestToolResourcesCodeInterpreter.md +18 -0
- data/docs/ModifyAssistantRequestToolResourcesFileSearch.md +18 -0
- data/docs/ModifyMessageRequest.md +18 -0
- data/docs/ModifyRunRequest.md +18 -0
- data/docs/ModifyThreadRequest.md +20 -0
- data/docs/ModifyThreadRequestToolResources.md +20 -0
- data/docs/ModifyThreadRequestToolResourcesFileSearch.md +18 -0
- data/docs/OpenAIFile.md +9 -9
- data/docs/OtherChunkingStrategyResponseParam.md +18 -0
- data/docs/PredictionContent.md +20 -0
- data/docs/PredictionContentContent.md +49 -0
- data/docs/Project.md +28 -0
- data/docs/ProjectApiKey.md +28 -0
- data/docs/ProjectApiKeyDeleteResponse.md +22 -0
- data/docs/ProjectApiKeyListResponse.md +26 -0
- data/docs/ProjectApiKeyOwner.md +22 -0
- data/docs/ProjectCreateRequest.md +18 -0
- data/docs/ProjectListResponse.md +26 -0
- data/docs/ProjectRateLimit.md +34 -0
- data/docs/ProjectRateLimitListResponse.md +26 -0
- data/docs/ProjectRateLimitUpdateRequest.md +28 -0
- data/docs/ProjectServiceAccount.md +26 -0
- data/docs/ProjectServiceAccountApiKey.md +26 -0
- data/docs/ProjectServiceAccountCreateRequest.md +18 -0
- data/docs/ProjectServiceAccountCreateResponse.md +28 -0
- data/docs/ProjectServiceAccountDeleteResponse.md +22 -0
- data/docs/ProjectServiceAccountListResponse.md +26 -0
- data/docs/ProjectUpdateRequest.md +18 -0
- data/docs/ProjectUser.md +28 -0
- data/docs/ProjectUserCreateRequest.md +20 -0
- data/docs/ProjectUserDeleteResponse.md +22 -0
- data/docs/ProjectUserListResponse.md +26 -0
- data/docs/ProjectUserUpdateRequest.md +18 -0
- data/docs/ProjectsApi.md +1357 -0
- data/docs/RealtimeApi.md +75 -0
- data/docs/RealtimeClientEventConversationItemCreate.md +24 -0
- data/docs/RealtimeClientEventConversationItemDelete.md +22 -0
- data/docs/RealtimeClientEventConversationItemTruncate.md +26 -0
- data/docs/RealtimeClientEventInputAudioBufferAppend.md +22 -0
- data/docs/RealtimeClientEventInputAudioBufferClear.md +20 -0
- data/docs/RealtimeClientEventInputAudioBufferCommit.md +20 -0
- data/docs/RealtimeClientEventResponseCancel.md +22 -0
- data/docs/RealtimeClientEventResponseCreate.md +22 -0
- data/docs/RealtimeClientEventSessionUpdate.md +22 -0
- data/docs/RealtimeConversationItem.md +36 -0
- data/docs/RealtimeConversationItemContentInner.md +26 -0
- data/docs/RealtimeResponse.md +30 -0
- data/docs/RealtimeResponseCreateParams.md +38 -0
- data/docs/{CreateFineTuneRequestModel.md → RealtimeResponseCreateParamsConversation.md} +4 -4
- data/docs/RealtimeResponseCreateParamsMaxResponseOutputTokens.md +49 -0
- data/docs/RealtimeResponseCreateParamsToolsInner.md +24 -0
- data/docs/RealtimeResponseStatusDetails.md +22 -0
- data/docs/RealtimeResponseStatusDetailsError.md +20 -0
- data/docs/RealtimeResponseUsage.md +26 -0
- data/docs/RealtimeResponseUsageInputTokenDetails.md +22 -0
- data/docs/RealtimeResponseUsageOutputTokenDetails.md +20 -0
- data/docs/RealtimeServerEventConversationCreated.md +22 -0
- data/docs/RealtimeServerEventConversationCreatedConversation.md +20 -0
- data/docs/RealtimeServerEventConversationItemCreated.md +24 -0
- data/docs/RealtimeServerEventConversationItemDeleted.md +22 -0
- data/docs/RealtimeServerEventConversationItemInputAudioTranscriptionCompleted.md +26 -0
- data/docs/RealtimeServerEventConversationItemInputAudioTranscriptionFailed.md +26 -0
- data/docs/RealtimeServerEventConversationItemInputAudioTranscriptionFailedError.md +24 -0
- data/docs/RealtimeServerEventConversationItemTruncated.md +26 -0
- data/docs/RealtimeServerEventError.md +22 -0
- data/docs/RealtimeServerEventErrorError.md +26 -0
- data/docs/RealtimeServerEventInputAudioBufferCleared.md +20 -0
- data/docs/RealtimeServerEventInputAudioBufferCommitted.md +24 -0
- data/docs/RealtimeServerEventInputAudioBufferSpeechStarted.md +24 -0
- data/docs/RealtimeServerEventInputAudioBufferSpeechStopped.md +24 -0
- data/docs/RealtimeServerEventRateLimitsUpdated.md +22 -0
- data/docs/RealtimeServerEventRateLimitsUpdatedRateLimitsInner.md +24 -0
- data/docs/RealtimeServerEventResponseAudioDelta.md +30 -0
- data/docs/RealtimeServerEventResponseAudioDone.md +28 -0
- data/docs/RealtimeServerEventResponseAudioTranscriptDelta.md +30 -0
- data/docs/RealtimeServerEventResponseAudioTranscriptDone.md +30 -0
- data/docs/RealtimeServerEventResponseContentPartAdded.md +30 -0
- data/docs/RealtimeServerEventResponseContentPartAddedPart.md +24 -0
- data/docs/RealtimeServerEventResponseContentPartDone.md +30 -0
- data/docs/RealtimeServerEventResponseContentPartDonePart.md +24 -0
- data/docs/RealtimeServerEventResponseCreated.md +22 -0
- data/docs/RealtimeServerEventResponseDone.md +22 -0
- data/docs/RealtimeServerEventResponseFunctionCallArgumentsDelta.md +30 -0
- data/docs/RealtimeServerEventResponseFunctionCallArgumentsDone.md +30 -0
- data/docs/RealtimeServerEventResponseOutputItemAdded.md +26 -0
- data/docs/RealtimeServerEventResponseOutputItemDone.md +26 -0
- data/docs/RealtimeServerEventResponseTextDelta.md +30 -0
- data/docs/RealtimeServerEventResponseTextDone.md +30 -0
- data/docs/RealtimeServerEventSessionCreated.md +22 -0
- data/docs/RealtimeServerEventSessionUpdated.md +22 -0
- data/docs/RealtimeSession.md +42 -0
- data/docs/RealtimeSessionCreateRequest.md +40 -0
- data/docs/RealtimeSessionCreateRequestTurnDetection.md +26 -0
- data/docs/RealtimeSessionCreateResponse.md +40 -0
- data/docs/RealtimeSessionCreateResponseClientSecret.md +20 -0
- data/docs/RealtimeSessionCreateResponseTurnDetection.md +24 -0
- data/docs/RealtimeSessionInputAudioTranscription.md +18 -0
- data/docs/RealtimeSessionModel.md +15 -0
- data/docs/RealtimeSessionTurnDetection.md +24 -0
- data/docs/ResponseFormatJsonObject.md +18 -0
- data/docs/ResponseFormatJsonSchema.md +20 -0
- data/docs/ResponseFormatJsonSchemaJsonSchema.md +24 -0
- data/docs/ResponseFormatText.md +18 -0
- data/docs/RunCompletionUsage.md +22 -0
- data/docs/RunObject.md +70 -0
- data/docs/RunObjectIncompleteDetails.md +18 -0
- data/docs/RunObjectLastError.md +20 -0
- data/docs/RunObjectRequiredAction.md +20 -0
- data/docs/RunObjectRequiredActionSubmitToolOutputs.md +18 -0
- data/docs/RunStepCompletionUsage.md +22 -0
- data/docs/RunStepDeltaObject.md +22 -0
- data/docs/RunStepDeltaObjectDelta.md +18 -0
- data/docs/RunStepDeltaObjectDeltaStepDetails.md +49 -0
- data/docs/RunStepDeltaStepDetailsMessageCreationObject.md +20 -0
- data/docs/RunStepDeltaStepDetailsMessageCreationObjectMessageCreation.md +18 -0
- data/docs/RunStepDeltaStepDetailsToolCallsCodeObject.md +24 -0
- data/docs/RunStepDeltaStepDetailsToolCallsCodeObjectCodeInterpreter.md +20 -0
- data/docs/RunStepDeltaStepDetailsToolCallsCodeObjectCodeInterpreterOutputsInner.md +49 -0
- data/docs/RunStepDeltaStepDetailsToolCallsCodeOutputImageObject.md +22 -0
- data/docs/RunStepDeltaStepDetailsToolCallsCodeOutputImageObjectImage.md +18 -0
- data/docs/RunStepDeltaStepDetailsToolCallsCodeOutputLogsObject.md +22 -0
- data/docs/RunStepDeltaStepDetailsToolCallsFileSearchObject.md +24 -0
- data/docs/RunStepDeltaStepDetailsToolCallsFunctionObject.md +24 -0
- data/docs/RunStepDeltaStepDetailsToolCallsFunctionObjectFunction.md +22 -0
- data/docs/RunStepDeltaStepDetailsToolCallsObject.md +20 -0
- data/docs/RunStepDeltaStepDetailsToolCallsObjectToolCallsInner.md +51 -0
- data/docs/RunStepDetailsMessageCreationObject.md +20 -0
- data/docs/RunStepDetailsMessageCreationObjectMessageCreation.md +18 -0
- data/docs/RunStepDetailsToolCallsCodeObject.md +22 -0
- data/docs/RunStepDetailsToolCallsCodeObjectCodeInterpreter.md +20 -0
- data/docs/RunStepDetailsToolCallsCodeObjectCodeInterpreterOutputsInner.md +49 -0
- data/docs/RunStepDetailsToolCallsCodeOutputImageObject.md +20 -0
- data/docs/RunStepDetailsToolCallsCodeOutputImageObjectImage.md +18 -0
- data/docs/RunStepDetailsToolCallsCodeOutputLogsObject.md +20 -0
- data/docs/RunStepDetailsToolCallsFileSearchObject.md +22 -0
- data/docs/RunStepDetailsToolCallsFileSearchObjectFileSearch.md +20 -0
- data/docs/RunStepDetailsToolCallsFileSearchRankingOptionsObject.md +20 -0
- data/docs/RunStepDetailsToolCallsFileSearchResultObject.md +24 -0
- data/docs/RunStepDetailsToolCallsFileSearchResultObjectContentInner.md +20 -0
- data/docs/RunStepDetailsToolCallsFunctionObject.md +22 -0
- data/docs/RunStepDetailsToolCallsFunctionObjectFunction.md +22 -0
- data/docs/RunStepDetailsToolCallsObject.md +20 -0
- data/docs/RunStepDetailsToolCallsObjectToolCallsInner.md +51 -0
- data/docs/RunStepObject.md +48 -0
- data/docs/RunStepObjectLastError.md +20 -0
- data/docs/RunStepObjectStepDetails.md +49 -0
- data/docs/RunStepStreamEvent.md +59 -0
- data/docs/RunStepStreamEventOneOf.md +20 -0
- data/docs/RunStepStreamEventOneOf1.md +20 -0
- data/docs/RunStepStreamEventOneOf2.md +20 -0
- data/docs/RunStepStreamEventOneOf3.md +20 -0
- data/docs/RunStepStreamEventOneOf4.md +20 -0
- data/docs/RunStepStreamEventOneOf5.md +20 -0
- data/docs/RunStepStreamEventOneOf6.md +20 -0
- data/docs/RunStreamEvent.md +65 -0
- data/docs/RunStreamEventOneOf.md +20 -0
- data/docs/RunStreamEventOneOf1.md +20 -0
- data/docs/RunStreamEventOneOf2.md +20 -0
- data/docs/RunStreamEventOneOf3.md +20 -0
- data/docs/RunStreamEventOneOf4.md +20 -0
- data/docs/RunStreamEventOneOf5.md +20 -0
- data/docs/RunStreamEventOneOf6.md +20 -0
- data/docs/RunStreamEventOneOf7.md +20 -0
- data/docs/RunStreamEventOneOf8.md +20 -0
- data/docs/RunStreamEventOneOf9.md +20 -0
- data/docs/RunToolCallObject.md +22 -0
- data/docs/RunToolCallObjectFunction.md +20 -0
- data/docs/StaticChunkingStrategy.md +20 -0
- data/docs/StaticChunkingStrategyRequestParam.md +20 -0
- data/docs/StaticChunkingStrategyResponseParam.md +20 -0
- data/docs/StaticChunkingStrategyStatic.md +20 -0
- data/docs/SubmitToolOutputsRunRequest.md +20 -0
- data/docs/SubmitToolOutputsRunRequestToolOutputsInner.md +20 -0
- data/docs/ThreadObject.md +26 -0
- data/docs/ThreadStreamEvent.md +22 -0
- data/docs/TranscriptionSegment.md +36 -0
- data/docs/TranscriptionWord.md +22 -0
- data/docs/TruncationObject.md +20 -0
- data/docs/UpdateVectorStoreRequest.md +22 -0
- data/docs/Upload.md +34 -0
- data/docs/UploadPart.md +24 -0
- data/docs/UploadsApi.md +283 -0
- data/docs/UsageApi.md +787 -0
- data/docs/UsageAudioSpeechesResult.md +30 -0
- data/docs/UsageAudioTranscriptionsResult.md +30 -0
- data/docs/UsageCodeInterpreterSessionsResult.md +22 -0
- data/docs/UsageCompletionsResult.md +40 -0
- data/docs/UsageEmbeddingsResult.md +30 -0
- data/docs/UsageImagesResult.md +34 -0
- data/docs/UsageModerationsResult.md +30 -0
- data/docs/UsageResponse.md +24 -0
- data/docs/UsageTimeBucket.md +24 -0
- data/docs/UsageTimeBucketResultInner.md +63 -0
- data/docs/UsageVectorStoresResult.md +22 -0
- data/docs/User.md +28 -0
- data/docs/{ListFineTunesResponse.md → UserDeleteResponse.md} +6 -4
- data/docs/UserListResponse.md +26 -0
- data/docs/UserRoleUpdateRequest.md +18 -0
- data/docs/UsersApi.md +285 -0
- data/docs/VectorStoreExpirationAfter.md +20 -0
- data/docs/VectorStoreFileBatchObject.md +28 -0
- data/docs/VectorStoreFileBatchObjectFileCounts.md +26 -0
- data/docs/VectorStoreFileObject.md +32 -0
- data/docs/VectorStoreFileObjectChunkingStrategy.md +49 -0
- data/docs/VectorStoreFileObjectLastError.md +20 -0
- data/docs/VectorStoreObject.md +38 -0
- data/docs/VectorStoreObjectFileCounts.md +26 -0
- data/docs/VectorStoresApi.md +939 -0
- data/lib/openapi_openai/api/assistants_api.rb +1655 -0
- data/lib/openapi_openai/api/audio_api.rb +264 -0
- data/lib/openapi_openai/api/audit_logs_api.rb +104 -0
- data/lib/openapi_openai/api/batch_api.rb +271 -0
- data/lib/openapi_openai/api/chat_api.rb +88 -0
- data/lib/openapi_openai/api/completions_api.rb +88 -0
- data/lib/openapi_openai/api/default_api.rb +286 -0
- data/lib/openapi_openai/api/embeddings_api.rb +88 -0
- data/lib/openapi_openai/api/files_api.rb +355 -0
- data/lib/openapi_openai/api/fine_tuning_api.rb +405 -0
- data/lib/openapi_openai/api/images_api.rb +294 -0
- data/lib/openapi_openai/api/invites_api.rb +271 -0
- data/lib/openapi_openai/api/models_api.rb +199 -0
- data/lib/openapi_openai/api/moderations_api.rb +88 -0
- data/lib/openapi_openai/api/projects_api.rb +1319 -0
- data/lib/openapi_openai/api/realtime_api.rb +88 -0
- data/lib/openapi_openai/api/uploads_api.rb +294 -0
- data/lib/openapi_openai/api/usage_api.rb +885 -0
- data/lib/openapi_openai/api/users_api.rb +277 -0
- data/lib/openapi_openai/api/vector_stores_api.rb +939 -0
- data/lib/openapi_openai/api_client.rb +19 -15
- data/lib/openapi_openai/api_error.rb +3 -3
- data/lib/openapi_openai/api_model_base.rb +88 -0
- data/lib/openapi_openai/configuration.rb +20 -3
- data/lib/openapi_openai/models/admin_api_key.rb +201 -0
- data/lib/openapi_openai/models/admin_api_key_owner.rb +183 -0
- data/lib/openapi_openai/models/admin_api_keys_create_request.rb +164 -0
- data/lib/openapi_openai/models/admin_api_keys_delete200_response.rb +165 -0
- data/lib/openapi_openai/models/api_key_list.rb +185 -0
- data/lib/openapi_openai/models/array_of_content_parts_inner.rb +105 -0
- data/lib/openapi_openai/models/assistant_object.rb +499 -0
- data/lib/openapi_openai/models/assistant_object_tool_resources.rb +157 -0
- data/lib/openapi_openai/models/assistant_object_tool_resources_code_interpreter.rb +169 -0
- data/lib/openapi_openai/models/assistant_object_tool_resources_file_search.rb +169 -0
- data/lib/openapi_openai/models/assistant_object_tools_inner.rb +105 -0
- data/lib/openapi_openai/models/assistant_stream_event.rb +109 -0
- data/lib/openapi_openai/models/assistant_tools_code.rb +189 -0
- data/lib/openapi_openai/models/assistant_tools_file_search.rb +198 -0
- data/lib/openapi_openai/models/assistant_tools_file_search_file_search.rb +186 -0
- data/lib/openapi_openai/models/assistant_tools_file_search_type_only.rb +189 -0
- data/lib/openapi_openai/models/assistant_tools_function.rb +215 -0
- data/lib/openapi_openai/models/assistants_api_response_format_option.rb +107 -0
- data/lib/openapi_openai/models/assistants_api_tool_choice_option.rb +105 -0
- data/lib/openapi_openai/models/assistants_named_tool_choice.rb +199 -0
- data/lib/openapi_openai/models/assistants_named_tool_choice_function.rb +165 -0
- data/lib/openapi_openai/models/audio_response_format.rb +43 -0
- data/lib/openapi_openai/models/audit_log.rb +456 -0
- data/lib/openapi_openai/models/audit_log_actor.rb +201 -0
- data/lib/openapi_openai/models/audit_log_actor_api_key.rb +211 -0
- data/lib/openapi_openai/models/audit_log_actor_service_account.rb +149 -0
- data/lib/openapi_openai/models/audit_log_actor_session.rb +158 -0
- data/lib/openapi_openai/models/audit_log_actor_user.rb +159 -0
- data/lib/openapi_openai/models/audit_log_api_key_created.rb +158 -0
- data/lib/openapi_openai/models/audit_log_api_key_created_data.rb +151 -0
- data/lib/openapi_openai/models/audit_log_api_key_deleted.rb +149 -0
- data/lib/openapi_openai/models/audit_log_api_key_updated.rb +158 -0
- data/lib/openapi_openai/models/audit_log_api_key_updated_changes_requested.rb +151 -0
- data/lib/openapi_openai/models/audit_log_event_type.rb +60 -0
- data/lib/openapi_openai/models/audit_log_invite_accepted.rb +149 -0
- data/lib/openapi_openai/models/audit_log_invite_sent.rb +158 -0
- data/lib/openapi_openai/models/audit_log_invite_sent_data.rb +159 -0
- data/lib/openapi_openai/models/audit_log_login_failed.rb +159 -0
- data/lib/openapi_openai/models/audit_log_organization_updated.rb +158 -0
- data/lib/openapi_openai/models/audit_log_organization_updated_changes_requested.rb +178 -0
- data/lib/openapi_openai/models/audit_log_organization_updated_changes_requested_settings.rb +158 -0
- data/lib/openapi_openai/models/audit_log_project.rb +159 -0
- data/lib/openapi_openai/models/audit_log_project_archived.rb +149 -0
- data/lib/openapi_openai/models/audit_log_project_created.rb +158 -0
- data/lib/openapi_openai/models/audit_log_project_created_data.rb +159 -0
- data/lib/openapi_openai/models/audit_log_project_updated.rb +158 -0
- data/lib/openapi_openai/models/audit_log_project_updated_changes_requested.rb +149 -0
- data/lib/openapi_openai/models/audit_log_rate_limit_deleted.rb +149 -0
- data/lib/openapi_openai/models/audit_log_rate_limit_updated.rb +158 -0
- data/lib/openapi_openai/models/audit_log_rate_limit_updated_changes_requested.rb +199 -0
- data/lib/openapi_openai/models/audit_log_service_account_created.rb +158 -0
- data/lib/openapi_openai/models/audit_log_service_account_created_data.rb +149 -0
- data/lib/openapi_openai/models/audit_log_service_account_deleted.rb +149 -0
- data/lib/openapi_openai/models/audit_log_service_account_updated.rb +158 -0
- data/lib/openapi_openai/models/audit_log_service_account_updated_changes_requested.rb +149 -0
- data/lib/openapi_openai/models/audit_log_user_added.rb +158 -0
- data/lib/openapi_openai/models/audit_log_user_added_data.rb +149 -0
- data/lib/openapi_openai/models/audit_log_user_deleted.rb +149 -0
- data/lib/openapi_openai/models/audit_log_user_updated.rb +158 -0
- data/lib/openapi_openai/models/audit_log_user_updated_changes_requested.rb +149 -0
- data/lib/openapi_openai/models/auto_chunking_strategy.rb +190 -0
- data/lib/openapi_openai/models/auto_chunking_strategy_request_param.rb +190 -0
- data/lib/openapi_openai/models/batch.rb +481 -0
- data/lib/openapi_openai/models/batch_errors.rb +159 -0
- data/lib/openapi_openai/models/batch_errors_data_inner.rb +180 -0
- data/lib/openapi_openai/models/batch_request_counts.rb +220 -0
- data/lib/openapi_openai/models/batch_request_input.rb +203 -0
- data/lib/openapi_openai/models/batch_request_output.rb +178 -0
- data/lib/openapi_openai/models/batch_request_output_error.rb +159 -0
- data/lib/openapi_openai/models/batch_request_output_response.rb +168 -0
- data/lib/openapi_openai/models/chat_completion_function_call_option.rb +166 -0
- data/lib/openapi_openai/models/chat_completion_functions.rb +35 -92
- data/lib/openapi_openai/models/chat_completion_message_tool_call.rb +242 -0
- data/lib/openapi_openai/models/chat_completion_message_tool_call_chunk.rb +227 -0
- data/lib/openapi_openai/models/chat_completion_message_tool_call_chunk_function.rb +158 -0
- data/lib/openapi_openai/models/{chat_completion_request_message_function_call.rb → chat_completion_message_tool_call_function.rb} +49 -82
- data/lib/openapi_openai/models/chat_completion_named_tool_choice.rb +216 -0
- data/lib/openapi_openai/models/chat_completion_request_assistant_message.rb +253 -0
- data/lib/openapi_openai/models/chat_completion_request_assistant_message_audio.rb +166 -0
- data/lib/openapi_openai/models/chat_completion_request_assistant_message_content.rb +105 -0
- data/lib/openapi_openai/models/chat_completion_request_assistant_message_content_part.rb +104 -0
- data/lib/openapi_openai/models/chat_completion_request_assistant_message_function_call.rb +193 -0
- data/lib/openapi_openai/models/chat_completion_request_developer_message.rb +226 -0
- data/lib/openapi_openai/models/chat_completion_request_developer_message_content.rb +105 -0
- data/lib/openapi_openai/models/{create_chat_completion_request_function_call_one_of.rb → chat_completion_request_function_message.rb} +89 -82
- data/lib/openapi_openai/models/chat_completion_request_message.rb +80 -257
- data/lib/openapi_openai/models/chat_completion_request_message_content_part_audio.rb +216 -0
- data/lib/openapi_openai/models/chat_completion_request_message_content_part_audio_input_audio.rb +216 -0
- data/lib/openapi_openai/models/chat_completion_request_message_content_part_image.rb +216 -0
- data/lib/openapi_openai/models/chat_completion_request_message_content_part_image_image_url.rb +211 -0
- data/lib/openapi_openai/models/chat_completion_request_message_content_part_refusal.rb +216 -0
- data/lib/openapi_openai/models/{create_translation_response.rb → chat_completion_request_message_content_part_text.rb} +78 -82
- data/lib/openapi_openai/models/chat_completion_request_system_message.rb +226 -0
- data/lib/openapi_openai/models/chat_completion_request_system_message_content.rb +105 -0
- data/lib/openapi_openai/models/chat_completion_request_tool_message.rb +242 -0
- data/lib/openapi_openai/models/chat_completion_request_tool_message_content.rb +105 -0
- data/lib/openapi_openai/models/chat_completion_request_user_message.rb +226 -0
- data/lib/openapi_openai/models/chat_completion_request_user_message_content.rb +105 -0
- data/lib/openapi_openai/models/chat_completion_request_user_message_content_part.rb +105 -0
- data/lib/openapi_openai/models/chat_completion_response_message.rb +67 -96
- data/lib/openapi_openai/models/chat_completion_response_message_audio.rb +247 -0
- data/lib/openapi_openai/models/chat_completion_response_message_function_call.rb +193 -0
- data/lib/openapi_openai/models/chat_completion_role.rb +43 -0
- data/lib/openapi_openai/models/chat_completion_stream_options.rb +149 -0
- data/lib/openapi_openai/models/chat_completion_stream_response_delta.rb +52 -96
- data/lib/openapi_openai/models/chat_completion_stream_response_delta_function_call.rb +159 -0
- data/lib/openapi_openai/models/chat_completion_token_logprob.rb +236 -0
- data/lib/openapi_openai/models/chat_completion_token_logprob_top_logprobs_inner.rb +207 -0
- data/lib/openapi_openai/models/chat_completion_tool.rb +215 -0
- data/lib/openapi_openai/models/chat_completion_tool_choice_option.rb +105 -0
- data/lib/openapi_openai/models/chunking_strategy_request_param.rb +105 -0
- data/lib/openapi_openai/models/complete_upload_request.rb +177 -0
- data/lib/openapi_openai/models/completion_usage.rb +238 -0
- data/lib/openapi_openai/models/completion_usage_completion_tokens_details.rb +179 -0
- data/lib/openapi_openai/models/completion_usage_prompt_tokens_details.rb +159 -0
- data/lib/openapi_openai/models/costs_result.rb +220 -0
- data/lib/openapi_openai/models/costs_result_amount.rb +159 -0
- data/lib/openapi_openai/models/create_assistant_request.rb +377 -0
- data/lib/openapi_openai/models/create_assistant_request_model.rb +103 -0
- data/lib/openapi_openai/models/create_assistant_request_tool_resources.rb +158 -0
- data/lib/openapi_openai/models/create_assistant_request_tool_resources_code_interpreter.rb +169 -0
- data/lib/openapi_openai/models/create_assistant_request_tool_resources_file_search.rb +200 -0
- data/lib/openapi_openai/models/create_assistant_request_tool_resources_file_search_vector_stores_inner.rb +188 -0
- data/lib/openapi_openai/models/create_assistant_request_tool_resources_file_search_vector_stores_inner_chunking_strategy.rb +105 -0
- data/lib/openapi_openai/models/create_batch_request.rb +258 -0
- data/lib/openapi_openai/models/{create_edit_response.rb → create_chat_completion_function_response.rb} +158 -110
- data/lib/openapi_openai/models/{create_edit_response_choices_inner.rb → create_chat_completion_function_response_choices_inner.rb} +72 -106
- data/lib/openapi_openai/models/create_chat_completion_request.rb +456 -225
- data/lib/openapi_openai/models/create_chat_completion_request_audio.rb +219 -0
- data/lib/openapi_openai/models/create_chat_completion_request_function_call.rb +7 -8
- data/lib/openapi_openai/models/create_chat_completion_request_model.rb +13 -15
- data/lib/openapi_openai/models/create_chat_completion_request_response_format.rb +106 -0
- data/lib/openapi_openai/models/create_chat_completion_request_stop.rb +5 -6
- data/lib/openapi_openai/models/create_chat_completion_response.rb +150 -104
- data/lib/openapi_openai/models/create_chat_completion_response_choices_inner.rb +77 -89
- data/lib/openapi_openai/models/create_chat_completion_response_choices_inner_logprobs.rb +169 -0
- data/lib/openapi_openai/models/create_chat_completion_stream_response.rb +159 -103
- data/lib/openapi_openai/models/create_chat_completion_stream_response_choices_inner.rb +77 -95
- data/lib/openapi_openai/models/{create_completion_response_usage.rb → create_chat_completion_stream_response_usage.rb} +65 -98
- data/lib/openapi_openai/models/create_completion_request.rb +252 -262
- data/lib/openapi_openai/models/create_completion_request_model.rb +13 -15
- data/lib/openapi_openai/models/create_completion_request_prompt.rb +5 -6
- data/lib/openapi_openai/models/create_completion_request_stop.rb +5 -6
- data/lib/openapi_openai/models/create_completion_response.rb +127 -104
- data/lib/openapi_openai/models/create_completion_response_choices_inner.rb +57 -103
- data/lib/openapi_openai/models/create_completion_response_choices_inner_logprobs.rb +35 -102
- data/lib/openapi_openai/models/create_embedding_request.rb +120 -92
- data/lib/openapi_openai/models/create_embedding_request_input.rb +6 -7
- data/lib/openapi_openai/models/create_embedding_request_model.rb +13 -15
- data/lib/openapi_openai/models/create_embedding_response.rb +103 -103
- data/lib/openapi_openai/models/create_embedding_response_usage.rb +36 -80
- data/lib/openapi_openai/models/create_fine_tuning_job_request.rb +303 -0
- data/lib/openapi_openai/models/create_fine_tuning_job_request_hyperparameters.rb +166 -0
- data/lib/openapi_openai/models/create_fine_tuning_job_request_hyperparameters_batch_size.rb +105 -0
- data/lib/openapi_openai/models/create_fine_tuning_job_request_hyperparameters_learning_rate_multiplier.rb +105 -0
- data/lib/openapi_openai/models/{create_fine_tune_request_model.rb → create_fine_tuning_job_request_hyperparameters_n_epochs.rb} +8 -8
- data/lib/openapi_openai/models/create_fine_tuning_job_request_integrations_inner.rb +214 -0
- data/lib/openapi_openai/models/create_fine_tuning_job_request_integrations_inner_wandb.rb +200 -0
- data/lib/openapi_openai/models/create_fine_tuning_job_request_model.rb +103 -0
- data/lib/openapi_openai/models/create_image_edit_request_model.rb +103 -0
- data/lib/openapi_openai/models/create_image_request.rb +104 -102
- data/lib/openapi_openai/models/create_image_request_model.rb +103 -0
- data/lib/openapi_openai/models/create_message_request.rb +239 -0
- data/lib/openapi_openai/models/create_message_request_attachments_inner.rb +160 -0
- data/lib/openapi_openai/models/create_message_request_attachments_inner_tools_inner.rb +104 -0
- data/lib/openapi_openai/models/create_message_request_content.rb +104 -0
- data/lib/openapi_openai/models/create_moderation_request.rb +23 -80
- data/lib/openapi_openai/models/create_moderation_request_input.rb +7 -7
- data/lib/openapi_openai/models/create_moderation_request_input_one_of_inner.rb +104 -0
- data/lib/openapi_openai/models/create_moderation_request_input_one_of_inner_one_of.rb +216 -0
- data/lib/openapi_openai/models/{create_transcription_response.rb → create_moderation_request_input_one_of_inner_one_of1.rb} +78 -82
- data/lib/openapi_openai/models/create_moderation_request_input_one_of_inner_one_of_image_url.rb +166 -0
- data/lib/openapi_openai/models/create_moderation_request_model.rb +13 -15
- data/lib/openapi_openai/models/create_moderation_response.rb +47 -80
- data/lib/openapi_openai/models/create_moderation_response_results_inner.rb +74 -84
- data/lib/openapi_openai/models/create_moderation_response_results_inner_categories.rb +254 -81
- data/lib/openapi_openai/models/create_moderation_response_results_inner_category_applied_input_types.rb +408 -0
- data/lib/openapi_openai/models/create_moderation_response_results_inner_category_scores.rb +254 -81
- data/lib/openapi_openai/models/create_run_request.rb +425 -0
- data/lib/openapi_openai/models/create_run_request_model.rb +103 -0
- data/lib/openapi_openai/models/create_speech_request.rb +315 -0
- data/lib/openapi_openai/models/create_speech_request_model.rb +103 -0
- data/lib/openapi_openai/models/create_thread_and_run_request.rb +420 -0
- data/lib/openapi_openai/models/create_thread_and_run_request_tool_resources.rb +157 -0
- data/lib/openapi_openai/models/create_thread_and_run_request_tools_inner.rb +105 -0
- data/lib/openapi_openai/models/create_thread_request.rb +171 -0
- data/lib/openapi_openai/models/create_thread_request_tool_resources.rb +158 -0
- data/lib/openapi_openai/models/create_thread_request_tool_resources_file_search.rb +200 -0
- data/lib/openapi_openai/models/create_thread_request_tool_resources_file_search_vector_stores_inner.rb +188 -0
- data/lib/openapi_openai/models/create_transcription200_response.rb +104 -0
- data/lib/openapi_openai/models/create_transcription_request_model.rb +13 -15
- data/lib/openapi_openai/models/create_transcription_response_json.rb +166 -0
- data/lib/openapi_openai/models/create_transcription_response_verbose_json.rb +244 -0
- data/lib/openapi_openai/models/create_translation200_response.rb +104 -0
- data/lib/openapi_openai/models/create_translation_response_json.rb +164 -0
- data/lib/openapi_openai/models/create_translation_response_verbose_json.rb +231 -0
- data/lib/openapi_openai/models/create_upload_request.rb +270 -0
- data/lib/openapi_openai/models/create_vector_store_file_batch_request.rb +194 -0
- data/lib/openapi_openai/models/create_vector_store_file_request.rb +174 -0
- data/lib/openapi_openai/models/create_vector_store_request.rb +208 -0
- data/lib/openapi_openai/models/create_vector_store_request_chunking_strategy.rb +105 -0
- data/lib/openapi_openai/models/default_project_error_response.rb +190 -0
- data/lib/openapi_openai/models/delete_assistant_response.rb +240 -0
- data/lib/openapi_openai/models/delete_file_response.rb +67 -80
- data/lib/openapi_openai/models/delete_message_response.rb +240 -0
- data/lib/openapi_openai/models/delete_model_response.rb +63 -100
- data/lib/openapi_openai/models/delete_thread_response.rb +240 -0
- data/lib/openapi_openai/models/delete_vector_store_file_response.rb +240 -0
- data/lib/openapi_openai/models/delete_vector_store_response.rb +240 -0
- data/lib/openapi_openai/models/done_event.rb +217 -0
- data/lib/openapi_openai/models/{create_embedding_response_data_inner.rb → embedding.rb} +91 -100
- data/lib/openapi_openai/models/error.rb +54 -101
- data/lib/openapi_openai/models/error_event.rb +215 -0
- data/lib/openapi_openai/models/error_response.rb +23 -80
- data/lib/openapi_openai/models/file_search_ranking_options.rb +228 -0
- data/lib/openapi_openai/models/fine_tune_chat_completion_request_assistant_message.rb +281 -0
- data/lib/openapi_openai/models/fine_tune_chat_request_input.rb +233 -0
- data/lib/openapi_openai/models/fine_tune_chat_request_input_messages_inner.rb +107 -0
- data/lib/openapi_openai/models/fine_tune_completion_request_input.rb +159 -0
- data/lib/openapi_openai/models/fine_tune_dpo_method.rb +148 -0
- data/lib/openapi_openai/models/fine_tune_dpo_method_hyperparameters.rb +175 -0
- data/lib/openapi_openai/models/fine_tune_dpo_method_hyperparameters_batch_size.rb +105 -0
- data/lib/openapi_openai/models/fine_tune_dpo_method_hyperparameters_beta.rb +105 -0
- data/lib/openapi_openai/models/fine_tune_dpo_method_hyperparameters_learning_rate_multiplier.rb +105 -0
- data/lib/openapi_openai/models/{create_edit_request_model.rb → fine_tune_dpo_method_hyperparameters_n_epochs.rb} +8 -8
- data/lib/openapi_openai/models/fine_tune_method.rb +201 -0
- data/lib/openapi_openai/models/fine_tune_preference_request_input.rb +210 -0
- data/lib/openapi_openai/models/fine_tune_preference_request_input_input.rb +192 -0
- data/lib/openapi_openai/models/fine_tune_preference_request_input_preferred_completion_inner.rb +103 -0
- data/lib/openapi_openai/models/fine_tune_supervised_method.rb +148 -0
- data/lib/openapi_openai/models/fine_tune_supervised_method_hyperparameters.rb +166 -0
- data/lib/openapi_openai/models/fine_tuning_integration.rb +215 -0
- data/lib/openapi_openai/models/fine_tuning_job.rb +548 -0
- data/lib/openapi_openai/models/fine_tuning_job_checkpoint.rb +351 -0
- data/lib/openapi_openai/models/fine_tuning_job_checkpoint_metrics.rb +202 -0
- data/lib/openapi_openai/models/fine_tuning_job_error.rb +206 -0
- data/lib/openapi_openai/models/fine_tuning_job_event.rb +332 -0
- data/lib/openapi_openai/models/fine_tuning_job_hyperparameters.rb +166 -0
- data/lib/openapi_openai/models/fine_tuning_job_integrations_inner.rb +103 -0
- data/lib/openapi_openai/models/function_object.rb +200 -0
- data/lib/openapi_openai/models/{images_response_data_inner.rb → image.rb} +34 -88
- data/lib/openapi_openai/models/images_response.rb +34 -81
- data/lib/openapi_openai/models/invite.rb +378 -0
- data/lib/openapi_openai/models/invite_delete_response.rb +241 -0
- data/lib/openapi_openai/models/invite_list_response.rb +247 -0
- data/lib/openapi_openai/models/invite_projects_inner.rb +192 -0
- data/lib/openapi_openai/models/invite_request.rb +228 -0
- data/lib/openapi_openai/models/invite_request_projects_inner.rb +216 -0
- data/lib/openapi_openai/models/list_assistants_response.rb +270 -0
- data/lib/openapi_openai/models/list_audit_logs_effective_at_parameter.rb +178 -0
- data/lib/openapi_openai/models/list_audit_logs_response.rb +294 -0
- data/lib/openapi_openai/models/list_batches_response.rb +260 -0
- data/lib/openapi_openai/models/list_files_response.rb +115 -84
- data/lib/openapi_openai/models/list_fine_tuning_job_checkpoints_response.rb +262 -0
- data/lib/openapi_openai/models/{list_fine_tunes_response.rb → list_fine_tuning_job_events_response.rb} +77 -100
- data/lib/openapi_openai/models/list_messages_response.rb +270 -0
- data/lib/openapi_openai/models/list_models_response.rb +57 -80
- data/lib/openapi_openai/models/{list_fine_tune_events_response.rb → list_paginated_fine_tuning_jobs_response.rb} +103 -100
- data/lib/openapi_openai/models/list_run_steps_response.rb +270 -0
- data/lib/openapi_openai/models/list_runs_response.rb +270 -0
- data/lib/openapi_openai/models/list_threads_response.rb +270 -0
- data/lib/openapi_openai/models/list_vector_store_files_response.rb +270 -0
- data/lib/openapi_openai/models/list_vector_stores_response.rb +270 -0
- data/lib/openapi_openai/models/message_content_image_file_object.rb +216 -0
- data/lib/openapi_openai/models/message_content_image_file_object_image_file.rb +211 -0
- data/lib/openapi_openai/models/message_content_image_url_object.rb +216 -0
- data/lib/openapi_openai/models/message_content_image_url_object_image_url.rb +211 -0
- data/lib/openapi_openai/models/message_content_refusal_object.rb +216 -0
- data/lib/openapi_openai/models/message_content_text_annotations_file_citation_object.rb +313 -0
- data/lib/openapi_openai/models/message_content_text_annotations_file_citation_object_file_citation.rb +165 -0
- data/lib/openapi_openai/models/message_content_text_annotations_file_path_object.rb +313 -0
- data/lib/openapi_openai/models/message_content_text_annotations_file_path_object_file_path.rb +165 -0
- data/lib/openapi_openai/models/message_content_text_object.rb +216 -0
- data/lib/openapi_openai/models/message_content_text_object_text.rb +193 -0
- data/lib/openapi_openai/models/message_content_text_object_text_annotations_inner.rb +104 -0
- data/lib/openapi_openai/models/message_delta_content_image_file_object.rb +226 -0
- data/lib/openapi_openai/models/message_delta_content_image_file_object_image_file.rb +194 -0
- data/lib/openapi_openai/models/message_delta_content_image_url_object.rb +226 -0
- data/lib/openapi_openai/models/message_delta_content_image_url_object_image_url.rb +194 -0
- data/lib/openapi_openai/models/message_delta_content_refusal_object.rb +226 -0
- data/lib/openapi_openai/models/message_delta_content_text_annotations_file_citation_object.rb +292 -0
- data/lib/openapi_openai/models/message_delta_content_text_annotations_file_citation_object_file_citation.rb +158 -0
- data/lib/openapi_openai/models/message_delta_content_text_annotations_file_path_object.rb +292 -0
- data/lib/openapi_openai/models/message_delta_content_text_annotations_file_path_object_file_path.rb +148 -0
- data/lib/openapi_openai/models/message_delta_content_text_object.rb +226 -0
- data/lib/openapi_openai/models/message_delta_content_text_object_text.rb +159 -0
- data/lib/openapi_openai/models/message_delta_content_text_object_text_annotations_inner.rb +104 -0
- data/lib/openapi_openai/models/message_delta_object.rb +243 -0
- data/lib/openapi_openai/models/message_delta_object_delta.rb +195 -0
- data/lib/openapi_openai/models/message_delta_object_delta_content_inner.rb +106 -0
- data/lib/openapi_openai/models/message_object.rb +450 -0
- data/lib/openapi_openai/models/message_object_content_inner.rb +106 -0
- data/lib/openapi_openai/models/message_object_incomplete_details.rb +190 -0
- data/lib/openapi_openai/models/message_request_content_text_object.rb +217 -0
- data/lib/openapi_openai/models/message_stream_event.rb +107 -0
- data/lib/openapi_openai/models/message_stream_event_one_of.rb +215 -0
- data/lib/openapi_openai/models/message_stream_event_one_of1.rb +215 -0
- data/lib/openapi_openai/models/message_stream_event_one_of2.rb +215 -0
- data/lib/openapi_openai/models/message_stream_event_one_of3.rb +215 -0
- data/lib/openapi_openai/models/message_stream_event_one_of4.rb +215 -0
- data/lib/openapi_openai/models/model.rb +99 -97
- data/lib/openapi_openai/models/{create_edit_request.rb → modify_assistant_request.rb} +137 -139
- data/lib/openapi_openai/models/modify_assistant_request_tool_resources.rb +157 -0
- data/lib/openapi_openai/models/modify_assistant_request_tool_resources_code_interpreter.rb +169 -0
- data/lib/openapi_openai/models/modify_assistant_request_tool_resources_file_search.rb +169 -0
- data/lib/openapi_openai/models/modify_message_request.rb +149 -0
- data/lib/openapi_openai/models/modify_run_request.rb +149 -0
- data/lib/openapi_openai/models/modify_thread_request.rb +159 -0
- data/lib/openapi_openai/models/modify_thread_request_tool_resources.rb +157 -0
- data/lib/openapi_openai/models/modify_thread_request_tool_resources_file_search.rb +169 -0
- data/lib/openapi_openai/models/open_ai_file.rb +145 -99
- data/lib/openapi_openai/models/other_chunking_strategy_response_param.rb +190 -0
- data/lib/openapi_openai/models/prediction_content.rb +216 -0
- data/lib/openapi_openai/models/prediction_content_content.rb +105 -0
- data/lib/openapi_openai/models/project.rb +311 -0
- data/lib/openapi_openai/models/project_api_key.rb +324 -0
- data/lib/openapi_openai/models/project_api_key_delete_response.rb +240 -0
- data/lib/openapi_openai/models/project_api_key_list_response.rb +294 -0
- data/lib/openapi_openai/models/project_api_key_owner.rb +200 -0
- data/lib/openapi_openai/models/project_create_request.rb +165 -0
- data/lib/openapi_openai/models/project_list_response.rb +294 -0
- data/lib/openapi_openai/models/project_rate_limit.rb +338 -0
- data/lib/openapi_openai/models/project_rate_limit_list_response.rb +294 -0
- data/lib/openapi_openai/models/project_rate_limit_update_request.rb +198 -0
- data/lib/openapi_openai/models/project_service_account.rb +300 -0
- data/lib/openapi_openai/models/project_service_account_api_key.rb +293 -0
- data/lib/openapi_openai/models/project_service_account_create_request.rb +165 -0
- data/lib/openapi_openai/models/project_service_account_create_response.rb +321 -0
- data/lib/openapi_openai/models/project_service_account_delete_response.rb +240 -0
- data/lib/openapi_openai/models/project_service_account_list_response.rb +294 -0
- data/lib/openapi_openai/models/project_update_request.rb +165 -0
- data/lib/openapi_openai/models/project_user.rb +327 -0
- data/lib/openapi_openai/models/project_user_create_request.rb +216 -0
- data/lib/openapi_openai/models/project_user_delete_response.rb +240 -0
- data/lib/openapi_openai/models/project_user_list_response.rb +270 -0
- data/lib/openapi_openai/models/project_user_update_request.rb +189 -0
- data/lib/openapi_openai/models/realtime_client_event_conversation_item_create.rb +236 -0
- data/lib/openapi_openai/models/realtime_client_event_conversation_item_delete.rb +227 -0
- data/lib/openapi_openai/models/realtime_client_event_conversation_item_truncate.rb +281 -0
- data/lib/openapi_openai/models/realtime_client_event_input_audio_buffer_append.rb +227 -0
- data/lib/openapi_openai/models/realtime_client_event_input_audio_buffer_clear.rb +200 -0
- data/lib/openapi_openai/models/realtime_client_event_input_audio_buffer_commit.rb +200 -0
- data/lib/openapi_openai/models/realtime_client_event_response_cancel.rb +210 -0
- data/lib/openapi_openai/models/realtime_client_event_response_create.rb +209 -0
- data/lib/openapi_openai/models/realtime_client_event_session_update.rb +226 -0
- data/lib/openapi_openai/models/realtime_conversation_item.rb +311 -0
- data/lib/openapi_openai/models/realtime_conversation_item_content_inner.rb +222 -0
- data/lib/openapi_openai/models/realtime_response.rb +256 -0
- data/lib/openapi_openai/models/realtime_response_create_params.rb +300 -0
- data/lib/openapi_openai/models/realtime_response_create_params_conversation.rb +104 -0
- data/lib/openapi_openai/models/realtime_response_create_params_max_response_output_tokens.rb +105 -0
- data/lib/openapi_openai/models/realtime_response_create_params_tools_inner.rb +212 -0
- data/lib/openapi_openai/models/realtime_response_status_details.rb +214 -0
- data/lib/openapi_openai/models/realtime_response_status_details_error.rb +159 -0
- data/lib/openapi_openai/models/realtime_response_usage.rb +187 -0
- data/lib/openapi_openai/models/realtime_response_usage_input_token_details.rb +169 -0
- data/lib/openapi_openai/models/realtime_response_usage_output_token_details.rb +159 -0
- data/lib/openapi_openai/models/realtime_server_event_conversation_created.rb +243 -0
- data/lib/openapi_openai/models/realtime_server_event_conversation_created_conversation.rb +159 -0
- data/lib/openapi_openai/models/realtime_server_event_conversation_item_created.rb +270 -0
- data/lib/openapi_openai/models/realtime_server_event_conversation_item_deleted.rb +244 -0
- data/lib/openapi_openai/models/realtime_server_event_conversation_item_input_audio_transcription_completed.rb +298 -0
- data/lib/openapi_openai/models/realtime_server_event_conversation_item_input_audio_transcription_failed.rb +297 -0
- data/lib/openapi_openai/models/realtime_server_event_conversation_item_input_audio_transcription_failed_error.rb +179 -0
- data/lib/openapi_openai/models/realtime_server_event_conversation_item_truncated.rb +298 -0
- data/lib/openapi_openai/models/realtime_server_event_error.rb +243 -0
- data/lib/openapi_openai/models/realtime_server_event_error_error.rb +226 -0
- data/lib/openapi_openai/models/realtime_server_event_input_audio_buffer_cleared.rb +217 -0
- data/lib/openapi_openai/models/realtime_server_event_input_audio_buffer_committed.rb +271 -0
- data/lib/openapi_openai/models/realtime_server_event_input_audio_buffer_speech_started.rb +271 -0
- data/lib/openapi_openai/models/realtime_server_event_input_audio_buffer_speech_stopped.rb +271 -0
- data/lib/openapi_openai/models/realtime_server_event_rate_limits_updated.rb +246 -0
- data/lib/openapi_openai/models/realtime_server_event_rate_limits_updated_rate_limits_inner.rb +212 -0
- data/lib/openapi_openai/models/realtime_server_event_response_audio_delta.rb +352 -0
- data/lib/openapi_openai/models/realtime_server_event_response_audio_done.rb +325 -0
- data/lib/openapi_openai/models/realtime_server_event_response_audio_transcript_delta.rb +352 -0
- data/lib/openapi_openai/models/realtime_server_event_response_audio_transcript_done.rb +352 -0
- data/lib/openapi_openai/models/realtime_server_event_response_content_part_added.rb +351 -0
- data/lib/openapi_openai/models/realtime_server_event_response_content_part_added_part.rb +213 -0
- data/lib/openapi_openai/models/realtime_server_event_response_content_part_done.rb +351 -0
- data/lib/openapi_openai/models/realtime_server_event_response_content_part_done_part.rb +213 -0
- data/lib/openapi_openai/models/realtime_server_event_response_created.rb +243 -0
- data/lib/openapi_openai/models/realtime_server_event_response_done.rb +243 -0
- data/lib/openapi_openai/models/realtime_server_event_response_function_call_arguments_delta.rb +352 -0
- data/lib/openapi_openai/models/realtime_server_event_response_function_call_arguments_done.rb +352 -0
- data/lib/openapi_openai/models/realtime_server_event_response_output_item_added.rb +297 -0
- data/lib/openapi_openai/models/realtime_server_event_response_output_item_done.rb +297 -0
- data/lib/openapi_openai/models/realtime_server_event_response_text_delta.rb +352 -0
- data/lib/openapi_openai/models/realtime_server_event_response_text_done.rb +352 -0
- data/lib/openapi_openai/models/realtime_server_event_session_created.rb +243 -0
- data/lib/openapi_openai/models/realtime_server_event_session_updated.rb +243 -0
- data/lib/openapi_openai/models/realtime_session.rb +328 -0
- data/lib/openapi_openai/models/realtime_session_create_request.rb +337 -0
- data/lib/openapi_openai/models/realtime_session_create_request_turn_detection.rb +191 -0
- data/lib/openapi_openai/models/realtime_session_create_response.rb +293 -0
- data/lib/openapi_openai/models/realtime_session_create_response_client_secret.rb +159 -0
- data/lib/openapi_openai/models/realtime_session_create_response_turn_detection.rb +179 -0
- data/lib/openapi_openai/models/realtime_session_input_audio_transcription.rb +149 -0
- data/lib/openapi_openai/models/realtime_session_model.rb +103 -0
- data/lib/openapi_openai/models/realtime_session_turn_detection.rb +213 -0
- data/lib/openapi_openai/models/response_format_json_object.rb +189 -0
- data/lib/openapi_openai/models/response_format_json_schema.rb +215 -0
- data/lib/openapi_openai/models/response_format_json_schema_json_schema.rb +200 -0
- data/lib/openapi_openai/models/response_format_text.rb +189 -0
- data/lib/openapi_openai/models/run_completion_usage.rb +220 -0
- data/lib/openapi_openai/models/run_object.rb +728 -0
- data/lib/openapi_openai/models/run_object_incomplete_details.rb +183 -0
- data/lib/openapi_openai/models/run_object_last_error.rb +217 -0
- data/lib/openapi_openai/models/run_object_required_action.rb +216 -0
- data/lib/openapi_openai/models/run_object_required_action_submit_tool_outputs.rb +168 -0
- data/lib/openapi_openai/models/run_step_completion_usage.rb +220 -0
- data/lib/openapi_openai/models/run_step_delta_object.rb +243 -0
- data/lib/openapi_openai/models/run_step_delta_object_delta.rb +148 -0
- data/lib/openapi_openai/models/run_step_delta_object_delta_step_details.rb +105 -0
- data/lib/openapi_openai/models/run_step_delta_step_details_message_creation_object.rb +199 -0
- data/lib/openapi_openai/models/run_step_delta_step_details_message_creation_object_message_creation.rb +148 -0
- data/lib/openapi_openai/models/run_step_delta_step_details_tool_calls_code_object.rb +236 -0
- data/lib/openapi_openai/models/run_step_delta_step_details_tool_calls_code_object_code_interpreter.rb +161 -0
- data/lib/openapi_openai/models/run_step_delta_step_details_tool_calls_code_object_code_interpreter_outputs_inner.rb +104 -0
- data/lib/openapi_openai/models/run_step_delta_step_details_tool_calls_code_output_image_object.rb +225 -0
- data/lib/openapi_openai/models/run_step_delta_step_details_tool_calls_code_output_image_object_image.rb +148 -0
- data/lib/openapi_openai/models/run_step_delta_step_details_tool_calls_code_output_logs_object.rb +227 -0
- data/lib/openapi_openai/models/run_step_delta_step_details_tool_calls_file_search_object.rb +253 -0
- data/lib/openapi_openai/models/run_step_delta_step_details_tool_calls_function_object.rb +235 -0
- data/lib/openapi_openai/models/run_step_delta_step_details_tool_calls_function_object_function.rb +170 -0
- data/lib/openapi_openai/models/run_step_delta_step_details_tool_calls_object.rb +202 -0
- data/lib/openapi_openai/models/run_step_delta_step_details_tool_calls_object_tool_calls_inner.rb +105 -0
- data/lib/openapi_openai/models/run_step_details_message_creation_object.rb +216 -0
- data/lib/openapi_openai/models/run_step_details_message_creation_object_message_creation.rb +165 -0
- data/lib/openapi_openai/models/run_step_details_tool_calls_code_object.rb +243 -0
- data/lib/openapi_openai/models/run_step_details_tool_calls_code_object_code_interpreter.rb +195 -0
- data/lib/openapi_openai/models/run_step_details_tool_calls_code_object_code_interpreter_outputs_inner.rb +104 -0
- data/lib/openapi_openai/models/run_step_details_tool_calls_code_output_image_object.rb +215 -0
- data/lib/openapi_openai/models/run_step_details_tool_calls_code_output_image_object_image.rb +165 -0
- data/lib/openapi_openai/models/run_step_details_tool_calls_code_output_logs_object.rb +217 -0
- data/lib/openapi_openai/models/run_step_details_tool_calls_file_search_object.rb +242 -0
- data/lib/openapi_openai/models/run_step_details_tool_calls_file_search_object_file_search.rb +160 -0
- data/lib/openapi_openai/models/run_step_details_tool_calls_file_search_ranking_options_object.rb +235 -0
- data/lib/openapi_openai/models/run_step_details_tool_calls_file_search_result_object.rb +250 -0
- data/lib/openapi_openai/models/run_step_details_tool_calls_file_search_result_object_content_inner.rb +192 -0
- data/lib/openapi_openai/models/run_step_details_tool_calls_function_object.rb +242 -0
- data/lib/openapi_openai/models/run_step_details_tool_calls_function_object_function.rb +206 -0
- data/lib/openapi_openai/models/run_step_details_tool_calls_object.rb +219 -0
- data/lib/openapi_openai/models/run_step_details_tool_calls_object_tool_calls_inner.rb +105 -0
- data/lib/openapi_openai/models/run_step_object.rb +498 -0
- data/lib/openapi_openai/models/run_step_object_last_error.rb +217 -0
- data/lib/openapi_openai/models/run_step_object_step_details.rb +105 -0
- data/lib/openapi_openai/models/run_step_stream_event.rb +109 -0
- data/lib/openapi_openai/models/run_step_stream_event_one_of.rb +215 -0
- data/lib/openapi_openai/models/run_step_stream_event_one_of1.rb +215 -0
- data/lib/openapi_openai/models/run_step_stream_event_one_of2.rb +215 -0
- data/lib/openapi_openai/models/run_step_stream_event_one_of3.rb +215 -0
- data/lib/openapi_openai/models/run_step_stream_event_one_of4.rb +215 -0
- data/lib/openapi_openai/models/run_step_stream_event_one_of5.rb +215 -0
- data/lib/openapi_openai/models/run_step_stream_event_one_of6.rb +215 -0
- data/lib/openapi_openai/models/run_stream_event.rb +112 -0
- data/lib/openapi_openai/models/run_stream_event_one_of.rb +215 -0
- data/lib/openapi_openai/models/run_stream_event_one_of1.rb +215 -0
- data/lib/openapi_openai/models/run_stream_event_one_of2.rb +215 -0
- data/lib/openapi_openai/models/run_stream_event_one_of3.rb +215 -0
- data/lib/openapi_openai/models/run_stream_event_one_of4.rb +215 -0
- data/lib/openapi_openai/models/run_stream_event_one_of5.rb +215 -0
- data/lib/openapi_openai/models/run_stream_event_one_of6.rb +215 -0
- data/lib/openapi_openai/models/run_stream_event_one_of7.rb +215 -0
- data/lib/openapi_openai/models/run_stream_event_one_of8.rb +215 -0
- data/lib/openapi_openai/models/run_stream_event_one_of9.rb +215 -0
- data/lib/openapi_openai/models/run_tool_call_object.rb +243 -0
- data/lib/openapi_openai/models/run_tool_call_object_function.rb +193 -0
- data/lib/openapi_openai/models/static_chunking_strategy.rb +215 -0
- data/lib/openapi_openai/models/static_chunking_strategy_request_param.rb +215 -0
- data/lib/openapi_openai/models/static_chunking_strategy_response_param.rb +215 -0
- data/lib/openapi_openai/models/static_chunking_strategy_static.rb +210 -0
- data/lib/openapi_openai/models/submit_tool_outputs_run_request.rb +178 -0
- data/lib/openapi_openai/models/submit_tool_outputs_run_request_tool_outputs_inner.rb +158 -0
- data/lib/openapi_openai/models/{fine_tune_event.rb → thread_object.rb} +106 -106
- data/lib/openapi_openai/models/thread_stream_event.rb +225 -0
- data/lib/openapi_openai/models/transcription_segment.rb +410 -0
- data/lib/openapi_openai/models/transcription_word.rb +219 -0
- data/lib/openapi_openai/models/truncation_object.rb +216 -0
- data/lib/openapi_openai/models/update_vector_store_request.rb +169 -0
- data/lib/openapi_openai/models/upload.rb +383 -0
- data/lib/openapi_openai/models/upload_part.rb +271 -0
- data/lib/openapi_openai/models/usage_audio_speeches_result.rb +287 -0
- data/lib/openapi_openai/models/usage_audio_transcriptions_result.rb +287 -0
- data/lib/openapi_openai/models/usage_code_interpreter_sessions_result.rb +227 -0
- data/lib/openapi_openai/models/usage_completions_result.rb +355 -0
- data/lib/openapi_openai/models/usage_embeddings_result.rb +287 -0
- data/lib/openapi_openai/models/usage_images_result.rb +309 -0
- data/lib/openapi_openai/models/usage_moderations_result.rb +287 -0
- data/lib/openapi_openai/models/usage_response.rb +268 -0
- data/lib/openapi_openai/models/usage_time_bucket.rb +268 -0
- data/lib/openapi_openai/models/usage_time_bucket_result_inner.rb +111 -0
- data/lib/openapi_openai/models/usage_vector_stores_result.rb +227 -0
- data/lib/openapi_openai/models/user.rb +327 -0
- data/lib/openapi_openai/models/user_delete_response.rb +240 -0
- data/lib/openapi_openai/models/user_list_response.rb +294 -0
- data/lib/openapi_openai/models/user_role_update_request.rb +189 -0
- data/lib/openapi_openai/models/vector_store_expiration_after.rb +235 -0
- data/lib/openapi_openai/models/vector_store_file_batch_object.rb +326 -0
- data/lib/openapi_openai/models/vector_store_file_batch_object_file_counts.rb +273 -0
- data/lib/openapi_openai/models/vector_store_file_object.rb +348 -0
- data/lib/openapi_openai/models/vector_store_file_object_chunking_strategy.rb +105 -0
- data/lib/openapi_openai/models/vector_store_file_object_last_error.rb +217 -0
- data/lib/openapi_openai/models/vector_store_object.rb +399 -0
- data/lib/openapi_openai/models/vector_store_object_file_counts.rb +273 -0
- data/lib/openapi_openai/version.rb +4 -4
- data/lib/openapi_openai.rb +487 -21
- data/openapi_openai.gemspec +4 -4
- data/spec/api/assistants_api_spec.rb +324 -0
- data/spec/api/audio_api_spec.rb +78 -0
- data/spec/api/audit_logs_api_spec.rb +54 -0
- data/spec/api/batch_api_spec.rb +80 -0
- data/spec/api/chat_api_spec.rb +46 -0
- data/spec/api/completions_api_spec.rb +46 -0
- data/spec/api/default_api_spec.rb +85 -0
- data/spec/api/embeddings_api_spec.rb +46 -0
- data/spec/api/files_api_spec.rb +94 -0
- data/spec/api/fine_tuning_api_spec.rb +106 -0
- data/spec/api/images_api_spec.rb +80 -0
- data/spec/api/invites_api_spec.rb +80 -0
- data/spec/api/models_api_spec.rb +67 -0
- data/spec/api/moderations_api_spec.rb +46 -0
- data/spec/api/projects_api_spec.rb +268 -0
- data/spec/api/realtime_api_spec.rb +46 -0
- data/spec/api/uploads_api_spec.rb +81 -0
- data/spec/api/usage_api_spec.rb +209 -0
- data/spec/api/users_api_spec.rb +81 -0
- data/spec/api/vector_stores_api_spec.rb +199 -0
- data/spec/models/admin_api_key_owner_spec.rb +60 -0
- data/spec/models/admin_api_key_spec.rb +72 -0
- data/spec/models/admin_api_keys_create_request_spec.rb +36 -0
- data/spec/models/admin_api_keys_delete200_response_spec.rb +48 -0
- data/spec/models/api_key_list_spec.rb +60 -0
- data/spec/models/array_of_content_parts_inner_spec.rb +32 -0
- data/spec/models/{fine_tune_spec.rb → assistant_object_spec.rb} +23 -19
- data/spec/models/assistant_object_tool_resources_code_interpreter_spec.rb +36 -0
- data/spec/models/assistant_object_tool_resources_file_search_spec.rb +36 -0
- data/spec/models/assistant_object_tool_resources_spec.rb +42 -0
- data/spec/models/assistant_object_tools_inner_spec.rb +32 -0
- data/spec/models/assistant_stream_event_spec.rb +32 -0
- data/spec/models/assistant_tools_code_spec.rb +40 -0
- data/spec/models/assistant_tools_file_search_file_search_spec.rb +42 -0
- data/spec/models/assistant_tools_file_search_spec.rb +46 -0
- data/spec/models/assistant_tools_file_search_type_only_spec.rb +40 -0
- data/spec/models/assistant_tools_function_spec.rb +46 -0
- data/spec/models/assistants_api_response_format_option_spec.rb +32 -0
- data/spec/models/assistants_api_tool_choice_option_spec.rb +32 -0
- data/spec/models/assistants_named_tool_choice_function_spec.rb +36 -0
- data/spec/models/assistants_named_tool_choice_spec.rb +46 -0
- data/spec/models/audio_response_format_spec.rb +30 -0
- data/spec/models/audit_log_actor_api_key_spec.rb +58 -0
- data/spec/models/audit_log_actor_service_account_spec.rb +36 -0
- data/spec/models/audit_log_actor_session_spec.rb +42 -0
- data/spec/models/audit_log_actor_spec.rb +52 -0
- data/spec/models/audit_log_actor_user_spec.rb +42 -0
- data/spec/models/audit_log_api_key_created_data_spec.rb +36 -0
- data/spec/models/audit_log_api_key_created_spec.rb +42 -0
- data/spec/models/audit_log_api_key_deleted_spec.rb +36 -0
- data/spec/models/audit_log_api_key_updated_changes_requested_spec.rb +36 -0
- data/spec/models/audit_log_api_key_updated_spec.rb +42 -0
- data/spec/models/audit_log_event_type_spec.rb +30 -0
- data/spec/models/audit_log_invite_accepted_spec.rb +36 -0
- data/spec/models/audit_log_invite_sent_data_spec.rb +42 -0
- data/spec/models/audit_log_invite_sent_spec.rb +42 -0
- data/spec/models/audit_log_login_failed_spec.rb +42 -0
- data/spec/models/audit_log_organization_updated_changes_requested_settings_spec.rb +42 -0
- data/spec/models/audit_log_organization_updated_changes_requested_spec.rb +54 -0
- data/spec/models/audit_log_organization_updated_spec.rb +42 -0
- data/spec/models/audit_log_project_archived_spec.rb +36 -0
- data/spec/models/audit_log_project_created_data_spec.rb +42 -0
- data/spec/models/audit_log_project_created_spec.rb +42 -0
- data/spec/models/audit_log_project_spec.rb +42 -0
- data/spec/models/audit_log_project_updated_changes_requested_spec.rb +36 -0
- data/spec/models/audit_log_project_updated_spec.rb +42 -0
- data/spec/models/audit_log_rate_limit_deleted_spec.rb +36 -0
- data/spec/models/audit_log_rate_limit_updated_changes_requested_spec.rb +66 -0
- data/spec/models/audit_log_rate_limit_updated_spec.rb +42 -0
- data/spec/models/audit_log_service_account_created_data_spec.rb +36 -0
- data/spec/models/audit_log_service_account_created_spec.rb +42 -0
- data/spec/models/audit_log_service_account_deleted_spec.rb +36 -0
- data/spec/models/audit_log_service_account_updated_changes_requested_spec.rb +36 -0
- data/spec/models/audit_log_service_account_updated_spec.rb +42 -0
- data/spec/models/audit_log_spec.rb +180 -0
- data/spec/models/audit_log_user_added_data_spec.rb +36 -0
- data/spec/models/{list_fine_tune_events_response_spec.rb → audit_log_user_added_spec.rb} +10 -10
- data/spec/models/audit_log_user_deleted_spec.rb +36 -0
- data/spec/models/audit_log_user_updated_changes_requested_spec.rb +36 -0
- data/spec/models/audit_log_user_updated_spec.rb +42 -0
- data/spec/models/auto_chunking_strategy_request_param_spec.rb +40 -0
- data/spec/models/auto_chunking_strategy_spec.rb +40 -0
- data/spec/models/batch_errors_data_inner_spec.rb +54 -0
- data/spec/models/{list_fine_tunes_response_spec.rb → batch_errors_spec.rb} +9 -9
- data/spec/models/batch_request_counts_spec.rb +48 -0
- data/spec/models/batch_request_input_spec.rb +52 -0
- data/spec/models/batch_request_output_error_spec.rb +42 -0
- data/spec/models/batch_request_output_response_spec.rb +48 -0
- data/spec/models/batch_request_output_spec.rb +54 -0
- data/spec/models/batch_spec.rb +158 -0
- data/spec/models/{create_chat_completion_request_function_call_one_of_spec.rb → chat_completion_function_call_option_spec.rb} +9 -9
- data/spec/models/chat_completion_functions_spec.rb +6 -6
- data/spec/models/chat_completion_message_tool_call_chunk_function_spec.rb +42 -0
- data/spec/models/{create_edit_response_choices_inner_spec.rb → chat_completion_message_tool_call_chunk_spec.rb} +17 -17
- data/spec/models/{chat_completion_request_message_function_call_spec.rb → chat_completion_message_tool_call_function_spec.rb} +9 -9
- data/spec/models/chat_completion_message_tool_call_spec.rb +52 -0
- data/spec/models/chat_completion_named_tool_choice_spec.rb +46 -0
- data/spec/models/chat_completion_request_assistant_message_audio_spec.rb +36 -0
- data/spec/models/chat_completion_request_assistant_message_content_part_spec.rb +32 -0
- data/spec/models/chat_completion_request_assistant_message_content_spec.rb +32 -0
- data/spec/models/chat_completion_request_assistant_message_function_call_spec.rb +42 -0
- data/spec/models/chat_completion_request_assistant_message_spec.rb +76 -0
- data/spec/models/chat_completion_request_developer_message_content_spec.rb +32 -0
- data/spec/models/chat_completion_request_developer_message_spec.rb +52 -0
- data/spec/models/chat_completion_request_function_message_spec.rb +52 -0
- data/spec/models/chat_completion_request_message_content_part_audio_input_audio_spec.rb +46 -0
- data/spec/models/chat_completion_request_message_content_part_audio_spec.rb +46 -0
- data/spec/models/chat_completion_request_message_content_part_image_image_url_spec.rb +46 -0
- data/spec/models/chat_completion_request_message_content_part_image_spec.rb +46 -0
- data/spec/models/chat_completion_request_message_content_part_refusal_spec.rb +46 -0
- data/spec/models/chat_completion_request_message_content_part_text_spec.rb +46 -0
- data/spec/models/chat_completion_request_message_spec.rb +8 -34
- data/spec/models/chat_completion_request_system_message_content_spec.rb +32 -0
- data/spec/models/chat_completion_request_system_message_spec.rb +52 -0
- data/spec/models/chat_completion_request_tool_message_content_spec.rb +32 -0
- data/spec/models/chat_completion_request_tool_message_spec.rb +52 -0
- data/spec/models/chat_completion_request_user_message_content_part_spec.rb +32 -0
- data/spec/models/chat_completion_request_user_message_content_spec.rb +32 -0
- data/spec/models/chat_completion_request_user_message_spec.rb +52 -0
- data/spec/models/chat_completion_response_message_audio_spec.rb +54 -0
- data/spec/models/chat_completion_response_message_function_call_spec.rb +42 -0
- data/spec/models/chat_completion_response_message_spec.rb +25 -7
- data/spec/models/chat_completion_role_spec.rb +30 -0
- data/spec/models/chat_completion_stream_options_spec.rb +36 -0
- data/spec/models/chat_completion_stream_response_delta_function_call_spec.rb +42 -0
- data/spec/models/chat_completion_stream_response_delta_spec.rb +23 -11
- data/spec/models/{create_edit_response_spec.rb → chat_completion_token_logprob_spec.rb} +13 -13
- data/spec/models/chat_completion_token_logprob_top_logprobs_inner_spec.rb +48 -0
- data/spec/models/chat_completion_tool_choice_option_spec.rb +32 -0
- data/spec/models/chat_completion_tool_spec.rb +46 -0
- data/spec/models/chunking_strategy_request_param_spec.rb +32 -0
- data/spec/models/complete_upload_request_spec.rb +42 -0
- data/spec/models/completion_usage_completion_tokens_details_spec.rb +54 -0
- data/spec/models/completion_usage_prompt_tokens_details_spec.rb +42 -0
- data/spec/models/{create_edit_request_spec.rb → completion_usage_spec.rb} +14 -20
- data/spec/models/costs_result_amount_spec.rb +42 -0
- data/spec/models/costs_result_spec.rb +58 -0
- data/spec/models/create_assistant_request_model_spec.rb +21 -0
- data/spec/models/create_assistant_request_spec.rb +90 -0
- data/spec/models/create_assistant_request_tool_resources_code_interpreter_spec.rb +36 -0
- data/spec/models/create_assistant_request_tool_resources_file_search_spec.rb +42 -0
- data/spec/models/create_assistant_request_tool_resources_file_search_vector_stores_inner_chunking_strategy_spec.rb +32 -0
- data/spec/models/create_assistant_request_tool_resources_file_search_vector_stores_inner_spec.rb +48 -0
- data/spec/models/create_assistant_request_tool_resources_spec.rb +42 -0
- data/spec/models/create_batch_request_spec.rb +62 -0
- data/spec/models/create_chat_completion_function_response_choices_inner_spec.rb +52 -0
- data/spec/models/create_chat_completion_function_response_spec.rb +76 -0
- data/spec/models/create_chat_completion_request_audio_spec.rb +50 -0
- data/spec/models/create_chat_completion_request_function_call_spec.rb +3 -3
- data/spec/models/create_chat_completion_request_model_spec.rb +3 -14
- data/spec/models/create_chat_completion_request_response_format_spec.rb +32 -0
- data/spec/models/create_chat_completion_request_spec.rb +122 -14
- data/spec/models/create_chat_completion_request_stop_spec.rb +3 -3
- data/spec/models/create_chat_completion_response_choices_inner_logprobs_spec.rb +42 -0
- data/spec/models/create_chat_completion_response_choices_inner_spec.rb +15 -9
- data/spec/models/create_chat_completion_response_spec.rb +26 -6
- data/spec/models/create_chat_completion_stream_response_choices_inner_spec.rb +13 -7
- data/spec/models/create_chat_completion_stream_response_spec.rb +32 -6
- data/spec/models/create_chat_completion_stream_response_usage_spec.rb +48 -0
- data/spec/models/create_completion_request_model_spec.rb +3 -14
- data/spec/models/create_completion_request_prompt_spec.rb +3 -3
- data/spec/models/create_completion_request_spec.rb +28 -16
- data/spec/models/create_completion_request_stop_spec.rb +3 -3
- data/spec/models/create_completion_response_choices_inner_logprobs_spec.rb +7 -7
- data/spec/models/create_completion_response_choices_inner_spec.rb +10 -10
- data/spec/models/create_completion_response_spec.rb +16 -6
- data/spec/models/create_embedding_request_input_spec.rb +3 -3
- data/spec/models/create_embedding_request_model_spec.rb +3 -14
- data/spec/models/create_embedding_request_spec.rb +21 -5
- data/spec/models/create_embedding_response_spec.rb +10 -6
- data/spec/models/create_embedding_response_usage_spec.rb +4 -4
- data/spec/models/create_fine_tuning_job_request_hyperparameters_batch_size_spec.rb +32 -0
- data/spec/models/create_fine_tuning_job_request_hyperparameters_learning_rate_multiplier_spec.rb +32 -0
- data/spec/models/create_fine_tuning_job_request_hyperparameters_n_epochs_spec.rb +32 -0
- data/spec/models/create_fine_tuning_job_request_hyperparameters_spec.rb +48 -0
- data/spec/models/create_fine_tuning_job_request_integrations_inner_spec.rb +46 -0
- data/spec/models/create_fine_tuning_job_request_integrations_inner_wandb_spec.rb +54 -0
- data/spec/models/create_fine_tuning_job_request_model_spec.rb +21 -0
- data/spec/models/create_fine_tuning_job_request_spec.rb +78 -0
- data/spec/models/create_image_edit_request_model_spec.rb +21 -0
- data/spec/models/create_image_request_model_spec.rb +21 -0
- data/spec/models/create_image_request_spec.rb +33 -7
- data/spec/models/create_message_request_attachments_inner_spec.rb +42 -0
- data/spec/models/create_message_request_attachments_inner_tools_inner_spec.rb +32 -0
- data/spec/models/create_message_request_content_spec.rb +32 -0
- data/spec/models/create_message_request_spec.rb +58 -0
- data/spec/models/create_moderation_request_input_one_of_inner_one_of1_spec.rb +46 -0
- data/spec/models/create_moderation_request_input_one_of_inner_one_of_image_url_spec.rb +36 -0
- data/spec/models/create_moderation_request_input_one_of_inner_one_of_spec.rb +46 -0
- data/spec/models/create_moderation_request_input_one_of_inner_spec.rb +32 -0
- data/spec/models/create_moderation_request_input_spec.rb +3 -3
- data/spec/models/create_moderation_request_model_spec.rb +3 -14
- data/spec/models/create_moderation_request_spec.rb +4 -4
- data/spec/models/create_moderation_response_results_inner_categories_spec.rb +40 -4
- data/spec/models/create_moderation_response_results_inner_category_applied_input_types_spec.rb +160 -0
- data/spec/models/create_moderation_response_results_inner_category_scores_spec.rb +40 -4
- data/spec/models/create_moderation_response_results_inner_spec.rb +10 -4
- data/spec/models/create_moderation_response_spec.rb +4 -4
- data/spec/models/create_run_request_model_spec.rb +21 -0
- data/spec/models/create_run_request_spec.rb +126 -0
- data/spec/models/create_speech_request_model_spec.rb +21 -0
- data/spec/models/create_speech_request_spec.rb +68 -0
- data/spec/models/create_thread_and_run_request_spec.rb +126 -0
- data/spec/models/create_thread_and_run_request_tool_resources_spec.rb +42 -0
- data/spec/models/create_thread_and_run_request_tools_inner_spec.rb +32 -0
- data/spec/models/{create_embedding_response_data_inner_spec.rb → create_thread_request_spec.rb} +12 -12
- data/spec/models/create_thread_request_tool_resources_file_search_spec.rb +42 -0
- data/spec/models/create_thread_request_tool_resources_file_search_vector_stores_inner_spec.rb +48 -0
- data/spec/models/create_thread_request_tool_resources_spec.rb +42 -0
- data/spec/models/create_transcription200_response_spec.rb +32 -0
- data/spec/models/create_transcription_request_model_spec.rb +3 -14
- data/spec/models/{create_transcription_response_spec.rb → create_transcription_response_json_spec.rb} +9 -9
- data/spec/models/create_transcription_response_verbose_json_spec.rb +60 -0
- data/spec/models/create_translation200_response_spec.rb +32 -0
- data/spec/models/{create_translation_response_spec.rb → create_translation_response_json_spec.rb} +9 -9
- data/spec/models/create_translation_response_verbose_json_spec.rb +54 -0
- data/spec/models/create_upload_request_spec.rb +58 -0
- data/spec/models/create_vector_store_file_batch_request_spec.rb +42 -0
- data/spec/models/create_vector_store_file_request_spec.rb +42 -0
- data/spec/models/create_vector_store_request_chunking_strategy_spec.rb +32 -0
- data/spec/models/create_vector_store_request_spec.rb +60 -0
- data/spec/models/default_project_error_response_spec.rb +42 -0
- data/spec/models/delete_assistant_response_spec.rb +52 -0
- data/spec/models/delete_file_response_spec.rb +8 -4
- data/spec/models/delete_message_response_spec.rb +52 -0
- data/spec/models/delete_model_response_spec.rb +6 -6
- data/spec/models/delete_thread_response_spec.rb +52 -0
- data/spec/models/delete_vector_store_file_response_spec.rb +52 -0
- data/spec/models/delete_vector_store_response_spec.rb +52 -0
- data/spec/models/done_event_spec.rb +50 -0
- data/spec/models/embedding_spec.rb +52 -0
- data/spec/models/error_event_spec.rb +46 -0
- data/spec/models/error_response_spec.rb +4 -4
- data/spec/models/error_spec.rb +6 -6
- data/spec/models/file_search_ranking_options_spec.rb +46 -0
- data/spec/models/fine_tune_chat_completion_request_assistant_message_spec.rb +86 -0
- data/spec/models/fine_tune_chat_request_input_messages_inner_spec.rb +32 -0
- data/spec/models/fine_tune_chat_request_input_spec.rb +54 -0
- data/spec/models/fine_tune_completion_request_input_spec.rb +42 -0
- data/spec/models/fine_tune_dpo_method_hyperparameters_batch_size_spec.rb +32 -0
- data/spec/models/fine_tune_dpo_method_hyperparameters_beta_spec.rb +32 -0
- data/spec/models/fine_tune_dpo_method_hyperparameters_learning_rate_multiplier_spec.rb +32 -0
- data/spec/models/fine_tune_dpo_method_hyperparameters_n_epochs_spec.rb +32 -0
- data/spec/models/fine_tune_dpo_method_hyperparameters_spec.rb +54 -0
- data/spec/models/fine_tune_dpo_method_spec.rb +36 -0
- data/spec/models/fine_tune_method_spec.rb +52 -0
- data/spec/models/fine_tune_preference_request_input_input_spec.rb +48 -0
- data/spec/models/fine_tune_preference_request_input_preferred_completion_inner_spec.rb +32 -0
- data/spec/models/fine_tune_preference_request_input_spec.rb +48 -0
- data/spec/models/fine_tune_supervised_method_hyperparameters_spec.rb +48 -0
- data/spec/models/fine_tune_supervised_method_spec.rb +36 -0
- data/spec/models/fine_tuning_integration_spec.rb +46 -0
- data/spec/models/fine_tuning_job_checkpoint_metrics_spec.rb +72 -0
- data/spec/models/fine_tuning_job_checkpoint_spec.rb +76 -0
- data/spec/models/fine_tuning_job_error_spec.rb +48 -0
- data/spec/models/fine_tuning_job_event_spec.rb +84 -0
- data/spec/models/fine_tuning_job_hyperparameters_spec.rb +48 -0
- data/spec/models/fine_tuning_job_integrations_inner_spec.rb +32 -0
- data/spec/models/fine_tuning_job_spec.rb +146 -0
- data/spec/models/{fine_tune_event_spec.rb → function_object_spec.rb} +13 -13
- data/spec/models/{images_response_data_inner_spec.rb → image_spec.rb} +16 -10
- data/spec/models/images_response_spec.rb +4 -4
- data/spec/models/invite_delete_response_spec.rb +52 -0
- data/spec/models/invite_list_response_spec.rb +64 -0
- data/spec/models/invite_projects_inner_spec.rb +46 -0
- data/spec/models/invite_request_projects_inner_spec.rb +46 -0
- data/spec/models/invite_request_spec.rb +52 -0
- data/spec/models/invite_spec.rb +96 -0
- data/spec/models/list_assistants_response_spec.rb +60 -0
- data/spec/models/list_audit_logs_effective_at_parameter_spec.rb +54 -0
- data/spec/models/list_audit_logs_response_spec.rb +64 -0
- data/spec/models/list_batches_response_spec.rb +64 -0
- data/spec/models/list_files_response_spec.rb +22 -4
- data/spec/models/list_fine_tuning_job_checkpoints_response_spec.rb +64 -0
- data/spec/models/list_fine_tuning_job_events_response_spec.rb +46 -0
- data/spec/models/list_messages_response_spec.rb +60 -0
- data/spec/models/list_models_response_spec.rb +8 -4
- data/spec/models/list_paginated_fine_tuning_jobs_response_spec.rb +52 -0
- data/spec/models/list_run_steps_response_spec.rb +60 -0
- data/spec/models/list_runs_response_spec.rb +60 -0
- data/spec/models/list_threads_response_spec.rb +60 -0
- data/spec/models/list_vector_store_files_response_spec.rb +60 -0
- data/spec/models/list_vector_stores_response_spec.rb +60 -0
- data/spec/models/message_content_image_file_object_image_file_spec.rb +46 -0
- data/spec/models/message_content_image_file_object_spec.rb +46 -0
- data/spec/models/message_content_image_url_object_image_url_spec.rb +46 -0
- data/spec/models/message_content_image_url_object_spec.rb +46 -0
- data/spec/models/message_content_refusal_object_spec.rb +46 -0
- data/spec/models/message_content_text_annotations_file_citation_object_file_citation_spec.rb +36 -0
- data/spec/models/message_content_text_annotations_file_citation_object_spec.rb +64 -0
- data/spec/models/message_content_text_annotations_file_path_object_file_path_spec.rb +36 -0
- data/spec/models/message_content_text_annotations_file_path_object_spec.rb +64 -0
- data/spec/models/message_content_text_object_spec.rb +46 -0
- data/spec/models/message_content_text_object_text_annotations_inner_spec.rb +32 -0
- data/spec/models/message_content_text_object_text_spec.rb +42 -0
- data/spec/models/message_delta_content_image_file_object_image_file_spec.rb +46 -0
- data/spec/models/message_delta_content_image_file_object_spec.rb +52 -0
- data/spec/models/message_delta_content_image_url_object_image_url_spec.rb +46 -0
- data/spec/models/message_delta_content_image_url_object_spec.rb +52 -0
- data/spec/models/message_delta_content_refusal_object_spec.rb +52 -0
- data/spec/models/message_delta_content_text_annotations_file_citation_object_file_citation_spec.rb +42 -0
- data/spec/models/message_delta_content_text_annotations_file_citation_object_spec.rb +70 -0
- data/spec/models/message_delta_content_text_annotations_file_path_object_file_path_spec.rb +36 -0
- data/spec/models/message_delta_content_text_annotations_file_path_object_spec.rb +70 -0
- data/spec/models/message_delta_content_text_object_spec.rb +52 -0
- data/spec/models/message_delta_content_text_object_text_annotations_inner_spec.rb +32 -0
- data/spec/models/message_delta_content_text_object_text_spec.rb +42 -0
- data/spec/models/message_delta_object_delta_content_inner_spec.rb +32 -0
- data/spec/models/message_delta_object_delta_spec.rb +46 -0
- data/spec/models/message_delta_object_spec.rb +52 -0
- data/spec/models/message_object_content_inner_spec.rb +32 -0
- data/spec/models/message_object_incomplete_details_spec.rb +40 -0
- data/spec/models/message_object_spec.rb +126 -0
- data/spec/models/message_request_content_text_object_spec.rb +46 -0
- data/spec/models/message_stream_event_one_of1_spec.rb +46 -0
- data/spec/models/message_stream_event_one_of2_spec.rb +46 -0
- data/spec/models/message_stream_event_one_of3_spec.rb +46 -0
- data/spec/models/message_stream_event_one_of4_spec.rb +46 -0
- data/spec/models/message_stream_event_one_of_spec.rb +46 -0
- data/spec/models/{create_fine_tune_request_model_spec.rb → message_stream_event_spec.rb} +5 -5
- data/spec/models/model_spec.rb +10 -6
- data/spec/models/modify_assistant_request_spec.rb +90 -0
- data/spec/models/modify_assistant_request_tool_resources_code_interpreter_spec.rb +36 -0
- data/spec/models/modify_assistant_request_tool_resources_file_search_spec.rb +36 -0
- data/spec/models/modify_assistant_request_tool_resources_spec.rb +42 -0
- data/spec/models/modify_message_request_spec.rb +36 -0
- data/spec/models/modify_run_request_spec.rb +36 -0
- data/spec/models/modify_thread_request_spec.rb +42 -0
- data/spec/models/modify_thread_request_tool_resources_file_search_spec.rb +36 -0
- data/spec/models/modify_thread_request_tool_resources_spec.rb +42 -0
- data/spec/models/open_ai_file_spec.rb +20 -8
- data/spec/models/other_chunking_strategy_response_param_spec.rb +40 -0
- data/spec/models/prediction_content_content_spec.rb +32 -0
- data/spec/models/prediction_content_spec.rb +46 -0
- data/spec/models/project_api_key_delete_response_spec.rb +52 -0
- data/spec/models/project_api_key_list_response_spec.rb +64 -0
- data/spec/models/project_api_key_owner_spec.rb +52 -0
- data/spec/models/project_api_key_spec.rb +70 -0
- data/spec/models/project_create_request_spec.rb +36 -0
- data/spec/models/project_list_response_spec.rb +64 -0
- data/spec/models/project_rate_limit_list_response_spec.rb +64 -0
- data/spec/models/project_rate_limit_spec.rb +88 -0
- data/spec/models/project_rate_limit_update_request_spec.rb +66 -0
- data/spec/models/project_service_account_api_key_spec.rb +64 -0
- data/spec/models/project_service_account_create_request_spec.rb +36 -0
- data/spec/models/project_service_account_create_response_spec.rb +74 -0
- data/spec/models/project_service_account_delete_response_spec.rb +52 -0
- data/spec/models/project_service_account_list_response_spec.rb +64 -0
- data/spec/models/project_service_account_spec.rb +68 -0
- data/spec/models/project_spec.rb +74 -0
- data/spec/models/project_update_request_spec.rb +36 -0
- data/spec/models/project_user_create_request_spec.rb +46 -0
- data/spec/models/project_user_delete_response_spec.rb +52 -0
- data/spec/models/project_user_list_response_spec.rb +60 -0
- data/spec/models/project_user_spec.rb +74 -0
- data/spec/models/project_user_update_request_spec.rb +40 -0
- data/spec/models/realtime_client_event_conversation_item_create_spec.rb +58 -0
- data/spec/models/realtime_client_event_conversation_item_delete_spec.rb +52 -0
- data/spec/models/realtime_client_event_conversation_item_truncate_spec.rb +64 -0
- data/spec/models/realtime_client_event_input_audio_buffer_append_spec.rb +52 -0
- data/spec/models/realtime_client_event_input_audio_buffer_clear_spec.rb +46 -0
- data/spec/models/realtime_client_event_input_audio_buffer_commit_spec.rb +46 -0
- data/spec/models/realtime_client_event_response_cancel_spec.rb +52 -0
- data/spec/models/realtime_client_event_response_create_spec.rb +52 -0
- data/spec/models/realtime_client_event_session_update_spec.rb +52 -0
- data/spec/models/realtime_conversation_item_content_inner_spec.rb +64 -0
- data/spec/models/realtime_conversation_item_spec.rb +106 -0
- data/spec/models/realtime_response_create_params_conversation_spec.rb +32 -0
- data/spec/models/realtime_response_create_params_max_response_output_tokens_spec.rb +32 -0
- data/spec/models/realtime_response_create_params_spec.rb +108 -0
- data/spec/models/realtime_response_create_params_tools_inner_spec.rb +58 -0
- data/spec/models/realtime_response_spec.rb +80 -0
- data/spec/models/realtime_response_status_details_error_spec.rb +42 -0
- data/spec/models/realtime_response_status_details_spec.rb +56 -0
- data/spec/models/realtime_response_usage_input_token_details_spec.rb +48 -0
- data/spec/models/realtime_response_usage_output_token_details_spec.rb +42 -0
- data/spec/models/realtime_response_usage_spec.rb +60 -0
- data/spec/models/realtime_server_event_conversation_created_conversation_spec.rb +42 -0
- data/spec/models/realtime_server_event_conversation_created_spec.rb +52 -0
- data/spec/models/realtime_server_event_conversation_item_created_spec.rb +58 -0
- data/spec/models/realtime_server_event_conversation_item_deleted_spec.rb +52 -0
- data/spec/models/realtime_server_event_conversation_item_input_audio_transcription_completed_spec.rb +64 -0
- data/spec/models/realtime_server_event_conversation_item_input_audio_transcription_failed_error_spec.rb +54 -0
- data/spec/models/realtime_server_event_conversation_item_input_audio_transcription_failed_spec.rb +64 -0
- data/spec/models/realtime_server_event_conversation_item_truncated_spec.rb +64 -0
- data/spec/models/realtime_server_event_error_error_spec.rb +60 -0
- data/spec/models/realtime_server_event_error_spec.rb +52 -0
- data/spec/models/realtime_server_event_input_audio_buffer_cleared_spec.rb +46 -0
- data/spec/models/realtime_server_event_input_audio_buffer_committed_spec.rb +58 -0
- data/spec/models/realtime_server_event_input_audio_buffer_speech_started_spec.rb +58 -0
- data/spec/models/realtime_server_event_input_audio_buffer_speech_stopped_spec.rb +58 -0
- data/spec/models/realtime_server_event_rate_limits_updated_rate_limits_inner_spec.rb +58 -0
- data/spec/models/realtime_server_event_rate_limits_updated_spec.rb +52 -0
- data/spec/models/realtime_server_event_response_audio_delta_spec.rb +76 -0
- data/spec/models/realtime_server_event_response_audio_done_spec.rb +70 -0
- data/spec/models/realtime_server_event_response_audio_transcript_delta_spec.rb +76 -0
- data/spec/models/realtime_server_event_response_audio_transcript_done_spec.rb +76 -0
- data/spec/models/realtime_server_event_response_content_part_added_part_spec.rb +58 -0
- data/spec/models/realtime_server_event_response_content_part_added_spec.rb +76 -0
- data/spec/models/realtime_server_event_response_content_part_done_part_spec.rb +58 -0
- data/spec/models/realtime_server_event_response_content_part_done_spec.rb +76 -0
- data/spec/models/realtime_server_event_response_created_spec.rb +52 -0
- data/spec/models/realtime_server_event_response_done_spec.rb +52 -0
- data/spec/models/realtime_server_event_response_function_call_arguments_delta_spec.rb +76 -0
- data/spec/models/realtime_server_event_response_function_call_arguments_done_spec.rb +76 -0
- data/spec/models/realtime_server_event_response_output_item_added_spec.rb +64 -0
- data/spec/models/realtime_server_event_response_output_item_done_spec.rb +64 -0
- data/spec/models/realtime_server_event_response_text_delta_spec.rb +76 -0
- data/spec/models/realtime_server_event_response_text_done_spec.rb +76 -0
- data/spec/models/realtime_server_event_session_created_spec.rb +52 -0
- data/spec/models/realtime_server_event_session_updated_spec.rb +52 -0
- data/spec/models/realtime_session_create_request_spec.rb +122 -0
- data/spec/models/realtime_session_create_request_turn_detection_spec.rb +60 -0
- data/spec/models/realtime_session_create_response_client_secret_spec.rb +42 -0
- data/spec/models/realtime_session_create_response_spec.rb +110 -0
- data/spec/models/realtime_session_create_response_turn_detection_spec.rb +54 -0
- data/spec/models/realtime_session_input_audio_transcription_spec.rb +36 -0
- data/spec/models/realtime_session_model_spec.rb +21 -0
- data/spec/models/realtime_session_spec.rb +124 -0
- data/spec/models/realtime_session_turn_detection_spec.rb +58 -0
- data/spec/models/response_format_json_object_spec.rb +40 -0
- data/spec/models/response_format_json_schema_json_schema_spec.rb +54 -0
- data/spec/models/response_format_json_schema_spec.rb +46 -0
- data/spec/models/response_format_text_spec.rb +40 -0
- data/spec/models/{create_completion_response_usage_spec.rb → run_completion_usage_spec.rb} +11 -11
- data/spec/models/run_object_incomplete_details_spec.rb +40 -0
- data/spec/models/run_object_last_error_spec.rb +46 -0
- data/spec/models/run_object_required_action_spec.rb +46 -0
- data/spec/models/run_object_required_action_submit_tool_outputs_spec.rb +36 -0
- data/spec/models/run_object_spec.rb +200 -0
- data/spec/models/run_step_completion_usage_spec.rb +48 -0
- data/spec/models/run_step_delta_object_delta_spec.rb +36 -0
- data/spec/models/run_step_delta_object_delta_step_details_spec.rb +32 -0
- data/spec/models/run_step_delta_object_spec.rb +52 -0
- data/spec/models/run_step_delta_step_details_message_creation_object_message_creation_spec.rb +36 -0
- data/spec/models/run_step_delta_step_details_message_creation_object_spec.rb +46 -0
- data/spec/models/run_step_delta_step_details_tool_calls_code_object_code_interpreter_outputs_inner_spec.rb +32 -0
- data/spec/models/run_step_delta_step_details_tool_calls_code_object_code_interpreter_spec.rb +42 -0
- data/spec/models/run_step_delta_step_details_tool_calls_code_object_spec.rb +58 -0
- data/spec/models/run_step_delta_step_details_tool_calls_code_output_image_object_image_spec.rb +36 -0
- data/spec/models/run_step_delta_step_details_tool_calls_code_output_image_object_spec.rb +52 -0
- data/spec/models/run_step_delta_step_details_tool_calls_code_output_logs_object_spec.rb +52 -0
- data/spec/models/run_step_delta_step_details_tool_calls_file_search_object_spec.rb +58 -0
- data/spec/models/run_step_delta_step_details_tool_calls_function_object_function_spec.rb +48 -0
- data/spec/models/run_step_delta_step_details_tool_calls_function_object_spec.rb +58 -0
- data/spec/models/run_step_delta_step_details_tool_calls_object_spec.rb +46 -0
- data/spec/models/run_step_delta_step_details_tool_calls_object_tool_calls_inner_spec.rb +32 -0
- data/spec/models/run_step_details_message_creation_object_message_creation_spec.rb +36 -0
- data/spec/models/run_step_details_message_creation_object_spec.rb +46 -0
- data/spec/models/run_step_details_tool_calls_code_object_code_interpreter_outputs_inner_spec.rb +32 -0
- data/spec/models/run_step_details_tool_calls_code_object_code_interpreter_spec.rb +42 -0
- data/spec/models/run_step_details_tool_calls_code_object_spec.rb +52 -0
- data/spec/models/run_step_details_tool_calls_code_output_image_object_image_spec.rb +36 -0
- data/spec/models/run_step_details_tool_calls_code_output_image_object_spec.rb +46 -0
- data/spec/models/run_step_details_tool_calls_code_output_logs_object_spec.rb +46 -0
- data/spec/models/run_step_details_tool_calls_file_search_object_file_search_spec.rb +42 -0
- data/spec/models/run_step_details_tool_calls_file_search_object_spec.rb +52 -0
- data/spec/models/run_step_details_tool_calls_file_search_ranking_options_object_spec.rb +46 -0
- data/spec/models/run_step_details_tool_calls_file_search_result_object_content_inner_spec.rb +46 -0
- data/spec/models/run_step_details_tool_calls_file_search_result_object_spec.rb +54 -0
- data/spec/models/run_step_details_tool_calls_function_object_function_spec.rb +48 -0
- data/spec/models/run_step_details_tool_calls_function_object_spec.rb +52 -0
- data/spec/models/run_step_details_tool_calls_object_spec.rb +46 -0
- data/spec/models/run_step_details_tool_calls_object_tool_calls_inner_spec.rb +32 -0
- data/spec/models/run_step_object_last_error_spec.rb +46 -0
- data/spec/models/run_step_object_spec.rb +138 -0
- data/spec/models/run_step_object_step_details_spec.rb +32 -0
- data/spec/models/run_step_stream_event_one_of1_spec.rb +46 -0
- data/spec/models/run_step_stream_event_one_of2_spec.rb +46 -0
- data/spec/models/run_step_stream_event_one_of3_spec.rb +46 -0
- data/spec/models/run_step_stream_event_one_of4_spec.rb +46 -0
- data/spec/models/run_step_stream_event_one_of5_spec.rb +46 -0
- data/spec/models/run_step_stream_event_one_of6_spec.rb +46 -0
- data/spec/models/run_step_stream_event_one_of_spec.rb +46 -0
- data/spec/models/run_step_stream_event_spec.rb +32 -0
- data/spec/models/run_stream_event_one_of1_spec.rb +46 -0
- data/spec/models/run_stream_event_one_of2_spec.rb +46 -0
- data/spec/models/run_stream_event_one_of3_spec.rb +46 -0
- data/spec/models/run_stream_event_one_of4_spec.rb +46 -0
- data/spec/models/run_stream_event_one_of5_spec.rb +46 -0
- data/spec/models/run_stream_event_one_of6_spec.rb +46 -0
- data/spec/models/run_stream_event_one_of7_spec.rb +46 -0
- data/spec/models/run_stream_event_one_of8_spec.rb +46 -0
- data/spec/models/run_stream_event_one_of9_spec.rb +46 -0
- data/spec/models/run_stream_event_one_of_spec.rb +46 -0
- data/spec/models/{create_edit_request_model_spec.rb → run_stream_event_spec.rb} +5 -5
- data/spec/models/run_tool_call_object_function_spec.rb +42 -0
- data/spec/models/run_tool_call_object_spec.rb +52 -0
- data/spec/models/static_chunking_strategy_request_param_spec.rb +46 -0
- data/spec/models/static_chunking_strategy_response_param_spec.rb +46 -0
- data/spec/models/static_chunking_strategy_spec.rb +46 -0
- data/spec/models/static_chunking_strategy_static_spec.rb +42 -0
- data/spec/models/submit_tool_outputs_run_request_spec.rb +42 -0
- data/spec/models/submit_tool_outputs_run_request_tool_outputs_inner_spec.rb +42 -0
- data/spec/models/thread_object_spec.rb +64 -0
- data/spec/models/thread_stream_event_spec.rb +52 -0
- data/spec/models/transcription_segment_spec.rb +90 -0
- data/spec/models/transcription_word_spec.rb +48 -0
- data/spec/models/truncation_object_spec.rb +46 -0
- data/spec/models/update_vector_store_request_spec.rb +48 -0
- data/spec/models/upload_part_spec.rb +58 -0
- data/spec/models/upload_spec.rb +92 -0
- data/spec/models/usage_audio_speeches_result_spec.rb +76 -0
- data/spec/models/usage_audio_transcriptions_result_spec.rb +76 -0
- data/spec/models/usage_code_interpreter_sessions_result_spec.rb +52 -0
- data/spec/models/{create_fine_tune_request_spec.rb → usage_completions_result_spec.rb} +25 -21
- data/spec/models/usage_embeddings_result_spec.rb +76 -0
- data/spec/models/usage_images_result_spec.rb +88 -0
- data/spec/models/usage_moderations_result_spec.rb +76 -0
- data/spec/models/usage_response_spec.rb +58 -0
- data/spec/models/usage_time_bucket_result_inner_spec.rb +32 -0
- data/spec/models/usage_time_bucket_spec.rb +58 -0
- data/spec/models/usage_vector_stores_result_spec.rb +52 -0
- data/spec/models/user_delete_response_spec.rb +52 -0
- data/spec/models/user_list_response_spec.rb +64 -0
- data/spec/models/user_role_update_request_spec.rb +40 -0
- data/spec/models/user_spec.rb +74 -0
- data/spec/models/vector_store_expiration_after_spec.rb +46 -0
- data/spec/models/vector_store_file_batch_object_file_counts_spec.rb +60 -0
- data/spec/models/vector_store_file_batch_object_spec.rb +74 -0
- data/spec/models/vector_store_file_object_chunking_strategy_spec.rb +32 -0
- data/spec/models/vector_store_file_object_last_error_spec.rb +46 -0
- data/spec/models/vector_store_file_object_spec.rb +86 -0
- data/spec/models/vector_store_object_file_counts_spec.rb +60 -0
- data/spec/models/vector_store_object_spec.rb +104 -0
- data/spec/spec_helper.rb +3 -3
- metadata +1973 -112
- data/bin/bundle +0 -109
- data/docs/CreateCompletionResponseUsage.md +0 -22
- data/docs/CreateEditRequest.md +0 -28
- data/docs/CreateEditResponse.md +0 -24
- data/docs/CreateEditResponseChoicesInner.md +0 -24
- data/docs/CreateEmbeddingResponseDataInner.md +0 -22
- data/docs/CreateFineTuneRequest.md +0 -40
- data/docs/CreateTranslationResponse.md +0 -18
- data/docs/FineTune.md +0 -42
- data/docs/FineTuneEvent.md +0 -24
- data/docs/ImagesResponseDataInner.md +0 -20
- data/docs/ListFineTuneEventsResponse.md +0 -20
- data/docs/OpenAIApi.md +0 -1499
- data/lib/openapi_openai/api/open_ai_api.rb +0 -1583
- data/lib/openapi_openai/models/create_fine_tune_request.rb +0 -374
- data/lib/openapi_openai/models/fine_tune.rb +0 -410
- data/spec/api/open_ai_api_spec.rb +0 -306
|
@@ -0,0 +1,1319 @@
|
|
|
1
|
+
=begin
|
|
2
|
+
#OpenAI API
|
|
3
|
+
|
|
4
|
+
#The OpenAI REST API. Please see https://platform.openai.com/docs/api-reference for more details.
|
|
5
|
+
|
|
6
|
+
The version of the OpenAPI document: 2.3.0
|
|
7
|
+
Contact: blah+oapicf@cliffano.com
|
|
8
|
+
Generated by: https://openapi-generator.tech
|
|
9
|
+
Generator version: 7.18.0
|
|
10
|
+
|
|
11
|
+
=end
|
|
12
|
+
|
|
13
|
+
require 'cgi'
|
|
14
|
+
|
|
15
|
+
module OpenApiOpenAIClient
|
|
16
|
+
class ProjectsApi
|
|
17
|
+
attr_accessor :api_client
|
|
18
|
+
|
|
19
|
+
def initialize(api_client = ApiClient.default)
|
|
20
|
+
@api_client = api_client
|
|
21
|
+
end
|
|
22
|
+
# Archives a project in the organization. Archived projects cannot be used or updated.
|
|
23
|
+
# @param project_id [String] The ID of the project.
|
|
24
|
+
# @param [Hash] opts the optional parameters
|
|
25
|
+
# @return [Project]
|
|
26
|
+
def archive_project(project_id, opts = {})
|
|
27
|
+
data, _status_code, _headers = archive_project_with_http_info(project_id, opts)
|
|
28
|
+
data
|
|
29
|
+
end
|
|
30
|
+
|
|
31
|
+
# Archives a project in the organization. Archived projects cannot be used or updated.
|
|
32
|
+
# @param project_id [String] The ID of the project.
|
|
33
|
+
# @param [Hash] opts the optional parameters
|
|
34
|
+
# @return [Array<(Project, Integer, Hash)>] Project data, response status code and response headers
|
|
35
|
+
def archive_project_with_http_info(project_id, opts = {})
|
|
36
|
+
if @api_client.config.debugging
|
|
37
|
+
@api_client.config.logger.debug 'Calling API: ProjectsApi.archive_project ...'
|
|
38
|
+
end
|
|
39
|
+
# verify the required parameter 'project_id' is set
|
|
40
|
+
if @api_client.config.client_side_validation && project_id.nil?
|
|
41
|
+
fail ArgumentError, "Missing the required parameter 'project_id' when calling ProjectsApi.archive_project"
|
|
42
|
+
end
|
|
43
|
+
# resource path
|
|
44
|
+
local_var_path = '/organization/projects/{project_id}/archive'.sub('{' + 'project_id' + '}', CGI.escape(project_id.to_s))
|
|
45
|
+
|
|
46
|
+
# query parameters
|
|
47
|
+
query_params = opts[:query_params] || {}
|
|
48
|
+
|
|
49
|
+
# header parameters
|
|
50
|
+
header_params = opts[:header_params] || {}
|
|
51
|
+
# HTTP header 'Accept' (if needed)
|
|
52
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
53
|
+
|
|
54
|
+
# form parameters
|
|
55
|
+
form_params = opts[:form_params] || {}
|
|
56
|
+
|
|
57
|
+
# http body (model)
|
|
58
|
+
post_body = opts[:debug_body]
|
|
59
|
+
|
|
60
|
+
# return_type
|
|
61
|
+
return_type = opts[:debug_return_type] || 'Project'
|
|
62
|
+
|
|
63
|
+
# auth_names
|
|
64
|
+
auth_names = opts[:debug_auth_names] || ['ApiKeyAuth']
|
|
65
|
+
|
|
66
|
+
new_options = opts.merge(
|
|
67
|
+
:operation => :"ProjectsApi.archive_project",
|
|
68
|
+
:header_params => header_params,
|
|
69
|
+
:query_params => query_params,
|
|
70
|
+
:form_params => form_params,
|
|
71
|
+
:body => post_body,
|
|
72
|
+
:auth_names => auth_names,
|
|
73
|
+
:return_type => return_type
|
|
74
|
+
)
|
|
75
|
+
|
|
76
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
|
77
|
+
if @api_client.config.debugging
|
|
78
|
+
@api_client.config.logger.debug "API called: ProjectsApi#archive_project\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
79
|
+
end
|
|
80
|
+
return data, status_code, headers
|
|
81
|
+
end
|
|
82
|
+
|
|
83
|
+
# Create a new project in the organization. Projects can be created and archived, but cannot be deleted.
|
|
84
|
+
# @param project_create_request [ProjectCreateRequest] The project create request payload.
|
|
85
|
+
# @param [Hash] opts the optional parameters
|
|
86
|
+
# @return [Project]
|
|
87
|
+
def create_project(project_create_request, opts = {})
|
|
88
|
+
data, _status_code, _headers = create_project_with_http_info(project_create_request, opts)
|
|
89
|
+
data
|
|
90
|
+
end
|
|
91
|
+
|
|
92
|
+
# Create a new project in the organization. Projects can be created and archived, but cannot be deleted.
|
|
93
|
+
# @param project_create_request [ProjectCreateRequest] The project create request payload.
|
|
94
|
+
# @param [Hash] opts the optional parameters
|
|
95
|
+
# @return [Array<(Project, Integer, Hash)>] Project data, response status code and response headers
|
|
96
|
+
def create_project_with_http_info(project_create_request, opts = {})
|
|
97
|
+
if @api_client.config.debugging
|
|
98
|
+
@api_client.config.logger.debug 'Calling API: ProjectsApi.create_project ...'
|
|
99
|
+
end
|
|
100
|
+
# verify the required parameter 'project_create_request' is set
|
|
101
|
+
if @api_client.config.client_side_validation && project_create_request.nil?
|
|
102
|
+
fail ArgumentError, "Missing the required parameter 'project_create_request' when calling ProjectsApi.create_project"
|
|
103
|
+
end
|
|
104
|
+
# resource path
|
|
105
|
+
local_var_path = '/organization/projects'
|
|
106
|
+
|
|
107
|
+
# query parameters
|
|
108
|
+
query_params = opts[:query_params] || {}
|
|
109
|
+
|
|
110
|
+
# header parameters
|
|
111
|
+
header_params = opts[:header_params] || {}
|
|
112
|
+
# HTTP header 'Accept' (if needed)
|
|
113
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
114
|
+
# HTTP header 'Content-Type'
|
|
115
|
+
content_type = @api_client.select_header_content_type(['application/json'])
|
|
116
|
+
if !content_type.nil?
|
|
117
|
+
header_params['Content-Type'] = content_type
|
|
118
|
+
end
|
|
119
|
+
|
|
120
|
+
# form parameters
|
|
121
|
+
form_params = opts[:form_params] || {}
|
|
122
|
+
|
|
123
|
+
# http body (model)
|
|
124
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(project_create_request)
|
|
125
|
+
|
|
126
|
+
# return_type
|
|
127
|
+
return_type = opts[:debug_return_type] || 'Project'
|
|
128
|
+
|
|
129
|
+
# auth_names
|
|
130
|
+
auth_names = opts[:debug_auth_names] || ['ApiKeyAuth']
|
|
131
|
+
|
|
132
|
+
new_options = opts.merge(
|
|
133
|
+
:operation => :"ProjectsApi.create_project",
|
|
134
|
+
:header_params => header_params,
|
|
135
|
+
:query_params => query_params,
|
|
136
|
+
:form_params => form_params,
|
|
137
|
+
:body => post_body,
|
|
138
|
+
:auth_names => auth_names,
|
|
139
|
+
:return_type => return_type
|
|
140
|
+
)
|
|
141
|
+
|
|
142
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
|
143
|
+
if @api_client.config.debugging
|
|
144
|
+
@api_client.config.logger.debug "API called: ProjectsApi#create_project\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
145
|
+
end
|
|
146
|
+
return data, status_code, headers
|
|
147
|
+
end
|
|
148
|
+
|
|
149
|
+
# Creates a new service account in the project. This also returns an unredacted API key for the service account.
|
|
150
|
+
# @param project_id [String] The ID of the project.
|
|
151
|
+
# @param project_service_account_create_request [ProjectServiceAccountCreateRequest] The project service account create request payload.
|
|
152
|
+
# @param [Hash] opts the optional parameters
|
|
153
|
+
# @return [ProjectServiceAccountCreateResponse]
|
|
154
|
+
def create_project_service_account(project_id, project_service_account_create_request, opts = {})
|
|
155
|
+
data, _status_code, _headers = create_project_service_account_with_http_info(project_id, project_service_account_create_request, opts)
|
|
156
|
+
data
|
|
157
|
+
end
|
|
158
|
+
|
|
159
|
+
# Creates a new service account in the project. This also returns an unredacted API key for the service account.
|
|
160
|
+
# @param project_id [String] The ID of the project.
|
|
161
|
+
# @param project_service_account_create_request [ProjectServiceAccountCreateRequest] The project service account create request payload.
|
|
162
|
+
# @param [Hash] opts the optional parameters
|
|
163
|
+
# @return [Array<(ProjectServiceAccountCreateResponse, Integer, Hash)>] ProjectServiceAccountCreateResponse data, response status code and response headers
|
|
164
|
+
def create_project_service_account_with_http_info(project_id, project_service_account_create_request, opts = {})
|
|
165
|
+
if @api_client.config.debugging
|
|
166
|
+
@api_client.config.logger.debug 'Calling API: ProjectsApi.create_project_service_account ...'
|
|
167
|
+
end
|
|
168
|
+
# verify the required parameter 'project_id' is set
|
|
169
|
+
if @api_client.config.client_side_validation && project_id.nil?
|
|
170
|
+
fail ArgumentError, "Missing the required parameter 'project_id' when calling ProjectsApi.create_project_service_account"
|
|
171
|
+
end
|
|
172
|
+
# verify the required parameter 'project_service_account_create_request' is set
|
|
173
|
+
if @api_client.config.client_side_validation && project_service_account_create_request.nil?
|
|
174
|
+
fail ArgumentError, "Missing the required parameter 'project_service_account_create_request' when calling ProjectsApi.create_project_service_account"
|
|
175
|
+
end
|
|
176
|
+
# resource path
|
|
177
|
+
local_var_path = '/organization/projects/{project_id}/service_accounts'.sub('{' + 'project_id' + '}', CGI.escape(project_id.to_s))
|
|
178
|
+
|
|
179
|
+
# query parameters
|
|
180
|
+
query_params = opts[:query_params] || {}
|
|
181
|
+
|
|
182
|
+
# header parameters
|
|
183
|
+
header_params = opts[:header_params] || {}
|
|
184
|
+
# HTTP header 'Accept' (if needed)
|
|
185
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
186
|
+
# HTTP header 'Content-Type'
|
|
187
|
+
content_type = @api_client.select_header_content_type(['application/json'])
|
|
188
|
+
if !content_type.nil?
|
|
189
|
+
header_params['Content-Type'] = content_type
|
|
190
|
+
end
|
|
191
|
+
|
|
192
|
+
# form parameters
|
|
193
|
+
form_params = opts[:form_params] || {}
|
|
194
|
+
|
|
195
|
+
# http body (model)
|
|
196
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(project_service_account_create_request)
|
|
197
|
+
|
|
198
|
+
# return_type
|
|
199
|
+
return_type = opts[:debug_return_type] || 'ProjectServiceAccountCreateResponse'
|
|
200
|
+
|
|
201
|
+
# auth_names
|
|
202
|
+
auth_names = opts[:debug_auth_names] || ['ApiKeyAuth']
|
|
203
|
+
|
|
204
|
+
new_options = opts.merge(
|
|
205
|
+
:operation => :"ProjectsApi.create_project_service_account",
|
|
206
|
+
:header_params => header_params,
|
|
207
|
+
:query_params => query_params,
|
|
208
|
+
:form_params => form_params,
|
|
209
|
+
:body => post_body,
|
|
210
|
+
:auth_names => auth_names,
|
|
211
|
+
:return_type => return_type
|
|
212
|
+
)
|
|
213
|
+
|
|
214
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
|
215
|
+
if @api_client.config.debugging
|
|
216
|
+
@api_client.config.logger.debug "API called: ProjectsApi#create_project_service_account\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
217
|
+
end
|
|
218
|
+
return data, status_code, headers
|
|
219
|
+
end
|
|
220
|
+
|
|
221
|
+
# Adds a user to the project. Users must already be members of the organization to be added to a project.
|
|
222
|
+
# @param project_id [String] The ID of the project.
|
|
223
|
+
# @param project_user_create_request [ProjectUserCreateRequest] The project user create request payload.
|
|
224
|
+
# @param [Hash] opts the optional parameters
|
|
225
|
+
# @return [ProjectUser]
|
|
226
|
+
def create_project_user(project_id, project_user_create_request, opts = {})
|
|
227
|
+
data, _status_code, _headers = create_project_user_with_http_info(project_id, project_user_create_request, opts)
|
|
228
|
+
data
|
|
229
|
+
end
|
|
230
|
+
|
|
231
|
+
# Adds a user to the project. Users must already be members of the organization to be added to a project.
|
|
232
|
+
# @param project_id [String] The ID of the project.
|
|
233
|
+
# @param project_user_create_request [ProjectUserCreateRequest] The project user create request payload.
|
|
234
|
+
# @param [Hash] opts the optional parameters
|
|
235
|
+
# @return [Array<(ProjectUser, Integer, Hash)>] ProjectUser data, response status code and response headers
|
|
236
|
+
def create_project_user_with_http_info(project_id, project_user_create_request, opts = {})
|
|
237
|
+
if @api_client.config.debugging
|
|
238
|
+
@api_client.config.logger.debug 'Calling API: ProjectsApi.create_project_user ...'
|
|
239
|
+
end
|
|
240
|
+
# verify the required parameter 'project_id' is set
|
|
241
|
+
if @api_client.config.client_side_validation && project_id.nil?
|
|
242
|
+
fail ArgumentError, "Missing the required parameter 'project_id' when calling ProjectsApi.create_project_user"
|
|
243
|
+
end
|
|
244
|
+
# verify the required parameter 'project_user_create_request' is set
|
|
245
|
+
if @api_client.config.client_side_validation && project_user_create_request.nil?
|
|
246
|
+
fail ArgumentError, "Missing the required parameter 'project_user_create_request' when calling ProjectsApi.create_project_user"
|
|
247
|
+
end
|
|
248
|
+
# resource path
|
|
249
|
+
local_var_path = '/organization/projects/{project_id}/users'.sub('{' + 'project_id' + '}', CGI.escape(project_id.to_s))
|
|
250
|
+
|
|
251
|
+
# query parameters
|
|
252
|
+
query_params = opts[:query_params] || {}
|
|
253
|
+
|
|
254
|
+
# header parameters
|
|
255
|
+
header_params = opts[:header_params] || {}
|
|
256
|
+
# HTTP header 'Accept' (if needed)
|
|
257
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
258
|
+
# HTTP header 'Content-Type'
|
|
259
|
+
content_type = @api_client.select_header_content_type(['application/json'])
|
|
260
|
+
if !content_type.nil?
|
|
261
|
+
header_params['Content-Type'] = content_type
|
|
262
|
+
end
|
|
263
|
+
|
|
264
|
+
# form parameters
|
|
265
|
+
form_params = opts[:form_params] || {}
|
|
266
|
+
|
|
267
|
+
# http body (model)
|
|
268
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(project_user_create_request)
|
|
269
|
+
|
|
270
|
+
# return_type
|
|
271
|
+
return_type = opts[:debug_return_type] || 'ProjectUser'
|
|
272
|
+
|
|
273
|
+
# auth_names
|
|
274
|
+
auth_names = opts[:debug_auth_names] || ['ApiKeyAuth']
|
|
275
|
+
|
|
276
|
+
new_options = opts.merge(
|
|
277
|
+
:operation => :"ProjectsApi.create_project_user",
|
|
278
|
+
:header_params => header_params,
|
|
279
|
+
:query_params => query_params,
|
|
280
|
+
:form_params => form_params,
|
|
281
|
+
:body => post_body,
|
|
282
|
+
:auth_names => auth_names,
|
|
283
|
+
:return_type => return_type
|
|
284
|
+
)
|
|
285
|
+
|
|
286
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
|
287
|
+
if @api_client.config.debugging
|
|
288
|
+
@api_client.config.logger.debug "API called: ProjectsApi#create_project_user\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
289
|
+
end
|
|
290
|
+
return data, status_code, headers
|
|
291
|
+
end
|
|
292
|
+
|
|
293
|
+
# Deletes an API key from the project.
|
|
294
|
+
# @param project_id [String] The ID of the project.
|
|
295
|
+
# @param key_id [String] The ID of the API key.
|
|
296
|
+
# @param [Hash] opts the optional parameters
|
|
297
|
+
# @return [ProjectApiKeyDeleteResponse]
|
|
298
|
+
def delete_project_api_key(project_id, key_id, opts = {})
|
|
299
|
+
data, _status_code, _headers = delete_project_api_key_with_http_info(project_id, key_id, opts)
|
|
300
|
+
data
|
|
301
|
+
end
|
|
302
|
+
|
|
303
|
+
# Deletes an API key from the project.
|
|
304
|
+
# @param project_id [String] The ID of the project.
|
|
305
|
+
# @param key_id [String] The ID of the API key.
|
|
306
|
+
# @param [Hash] opts the optional parameters
|
|
307
|
+
# @return [Array<(ProjectApiKeyDeleteResponse, Integer, Hash)>] ProjectApiKeyDeleteResponse data, response status code and response headers
|
|
308
|
+
def delete_project_api_key_with_http_info(project_id, key_id, opts = {})
|
|
309
|
+
if @api_client.config.debugging
|
|
310
|
+
@api_client.config.logger.debug 'Calling API: ProjectsApi.delete_project_api_key ...'
|
|
311
|
+
end
|
|
312
|
+
# verify the required parameter 'project_id' is set
|
|
313
|
+
if @api_client.config.client_side_validation && project_id.nil?
|
|
314
|
+
fail ArgumentError, "Missing the required parameter 'project_id' when calling ProjectsApi.delete_project_api_key"
|
|
315
|
+
end
|
|
316
|
+
# verify the required parameter 'key_id' is set
|
|
317
|
+
if @api_client.config.client_side_validation && key_id.nil?
|
|
318
|
+
fail ArgumentError, "Missing the required parameter 'key_id' when calling ProjectsApi.delete_project_api_key"
|
|
319
|
+
end
|
|
320
|
+
# resource path
|
|
321
|
+
local_var_path = '/organization/projects/{project_id}/api_keys/{key_id}'.sub('{' + 'project_id' + '}', CGI.escape(project_id.to_s)).sub('{' + 'key_id' + '}', CGI.escape(key_id.to_s))
|
|
322
|
+
|
|
323
|
+
# query parameters
|
|
324
|
+
query_params = opts[:query_params] || {}
|
|
325
|
+
|
|
326
|
+
# header parameters
|
|
327
|
+
header_params = opts[:header_params] || {}
|
|
328
|
+
# HTTP header 'Accept' (if needed)
|
|
329
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
330
|
+
|
|
331
|
+
# form parameters
|
|
332
|
+
form_params = opts[:form_params] || {}
|
|
333
|
+
|
|
334
|
+
# http body (model)
|
|
335
|
+
post_body = opts[:debug_body]
|
|
336
|
+
|
|
337
|
+
# return_type
|
|
338
|
+
return_type = opts[:debug_return_type] || 'ProjectApiKeyDeleteResponse'
|
|
339
|
+
|
|
340
|
+
# auth_names
|
|
341
|
+
auth_names = opts[:debug_auth_names] || ['ApiKeyAuth']
|
|
342
|
+
|
|
343
|
+
new_options = opts.merge(
|
|
344
|
+
:operation => :"ProjectsApi.delete_project_api_key",
|
|
345
|
+
:header_params => header_params,
|
|
346
|
+
:query_params => query_params,
|
|
347
|
+
:form_params => form_params,
|
|
348
|
+
:body => post_body,
|
|
349
|
+
:auth_names => auth_names,
|
|
350
|
+
:return_type => return_type
|
|
351
|
+
)
|
|
352
|
+
|
|
353
|
+
data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options)
|
|
354
|
+
if @api_client.config.debugging
|
|
355
|
+
@api_client.config.logger.debug "API called: ProjectsApi#delete_project_api_key\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
356
|
+
end
|
|
357
|
+
return data, status_code, headers
|
|
358
|
+
end
|
|
359
|
+
|
|
360
|
+
# Deletes a service account from the project.
|
|
361
|
+
# @param project_id [String] The ID of the project.
|
|
362
|
+
# @param service_account_id [String] The ID of the service account.
|
|
363
|
+
# @param [Hash] opts the optional parameters
|
|
364
|
+
# @return [ProjectServiceAccountDeleteResponse]
|
|
365
|
+
def delete_project_service_account(project_id, service_account_id, opts = {})
|
|
366
|
+
data, _status_code, _headers = delete_project_service_account_with_http_info(project_id, service_account_id, opts)
|
|
367
|
+
data
|
|
368
|
+
end
|
|
369
|
+
|
|
370
|
+
# Deletes a service account from the project.
|
|
371
|
+
# @param project_id [String] The ID of the project.
|
|
372
|
+
# @param service_account_id [String] The ID of the service account.
|
|
373
|
+
# @param [Hash] opts the optional parameters
|
|
374
|
+
# @return [Array<(ProjectServiceAccountDeleteResponse, Integer, Hash)>] ProjectServiceAccountDeleteResponse data, response status code and response headers
|
|
375
|
+
def delete_project_service_account_with_http_info(project_id, service_account_id, opts = {})
|
|
376
|
+
if @api_client.config.debugging
|
|
377
|
+
@api_client.config.logger.debug 'Calling API: ProjectsApi.delete_project_service_account ...'
|
|
378
|
+
end
|
|
379
|
+
# verify the required parameter 'project_id' is set
|
|
380
|
+
if @api_client.config.client_side_validation && project_id.nil?
|
|
381
|
+
fail ArgumentError, "Missing the required parameter 'project_id' when calling ProjectsApi.delete_project_service_account"
|
|
382
|
+
end
|
|
383
|
+
# verify the required parameter 'service_account_id' is set
|
|
384
|
+
if @api_client.config.client_side_validation && service_account_id.nil?
|
|
385
|
+
fail ArgumentError, "Missing the required parameter 'service_account_id' when calling ProjectsApi.delete_project_service_account"
|
|
386
|
+
end
|
|
387
|
+
# resource path
|
|
388
|
+
local_var_path = '/organization/projects/{project_id}/service_accounts/{service_account_id}'.sub('{' + 'project_id' + '}', CGI.escape(project_id.to_s)).sub('{' + 'service_account_id' + '}', CGI.escape(service_account_id.to_s))
|
|
389
|
+
|
|
390
|
+
# query parameters
|
|
391
|
+
query_params = opts[:query_params] || {}
|
|
392
|
+
|
|
393
|
+
# header parameters
|
|
394
|
+
header_params = opts[:header_params] || {}
|
|
395
|
+
# HTTP header 'Accept' (if needed)
|
|
396
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
397
|
+
|
|
398
|
+
# form parameters
|
|
399
|
+
form_params = opts[:form_params] || {}
|
|
400
|
+
|
|
401
|
+
# http body (model)
|
|
402
|
+
post_body = opts[:debug_body]
|
|
403
|
+
|
|
404
|
+
# return_type
|
|
405
|
+
return_type = opts[:debug_return_type] || 'ProjectServiceAccountDeleteResponse'
|
|
406
|
+
|
|
407
|
+
# auth_names
|
|
408
|
+
auth_names = opts[:debug_auth_names] || ['ApiKeyAuth']
|
|
409
|
+
|
|
410
|
+
new_options = opts.merge(
|
|
411
|
+
:operation => :"ProjectsApi.delete_project_service_account",
|
|
412
|
+
:header_params => header_params,
|
|
413
|
+
:query_params => query_params,
|
|
414
|
+
:form_params => form_params,
|
|
415
|
+
:body => post_body,
|
|
416
|
+
:auth_names => auth_names,
|
|
417
|
+
:return_type => return_type
|
|
418
|
+
)
|
|
419
|
+
|
|
420
|
+
data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options)
|
|
421
|
+
if @api_client.config.debugging
|
|
422
|
+
@api_client.config.logger.debug "API called: ProjectsApi#delete_project_service_account\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
423
|
+
end
|
|
424
|
+
return data, status_code, headers
|
|
425
|
+
end
|
|
426
|
+
|
|
427
|
+
# Deletes a user from the project.
|
|
428
|
+
# @param project_id [String] The ID of the project.
|
|
429
|
+
# @param user_id [String] The ID of the user.
|
|
430
|
+
# @param [Hash] opts the optional parameters
|
|
431
|
+
# @return [ProjectUserDeleteResponse]
|
|
432
|
+
def delete_project_user(project_id, user_id, opts = {})
|
|
433
|
+
data, _status_code, _headers = delete_project_user_with_http_info(project_id, user_id, opts)
|
|
434
|
+
data
|
|
435
|
+
end
|
|
436
|
+
|
|
437
|
+
# Deletes a user from the project.
|
|
438
|
+
# @param project_id [String] The ID of the project.
|
|
439
|
+
# @param user_id [String] The ID of the user.
|
|
440
|
+
# @param [Hash] opts the optional parameters
|
|
441
|
+
# @return [Array<(ProjectUserDeleteResponse, Integer, Hash)>] ProjectUserDeleteResponse data, response status code and response headers
|
|
442
|
+
def delete_project_user_with_http_info(project_id, user_id, opts = {})
|
|
443
|
+
if @api_client.config.debugging
|
|
444
|
+
@api_client.config.logger.debug 'Calling API: ProjectsApi.delete_project_user ...'
|
|
445
|
+
end
|
|
446
|
+
# verify the required parameter 'project_id' is set
|
|
447
|
+
if @api_client.config.client_side_validation && project_id.nil?
|
|
448
|
+
fail ArgumentError, "Missing the required parameter 'project_id' when calling ProjectsApi.delete_project_user"
|
|
449
|
+
end
|
|
450
|
+
# verify the required parameter 'user_id' is set
|
|
451
|
+
if @api_client.config.client_side_validation && user_id.nil?
|
|
452
|
+
fail ArgumentError, "Missing the required parameter 'user_id' when calling ProjectsApi.delete_project_user"
|
|
453
|
+
end
|
|
454
|
+
# resource path
|
|
455
|
+
local_var_path = '/organization/projects/{project_id}/users/{user_id}'.sub('{' + 'project_id' + '}', CGI.escape(project_id.to_s)).sub('{' + 'user_id' + '}', CGI.escape(user_id.to_s))
|
|
456
|
+
|
|
457
|
+
# query parameters
|
|
458
|
+
query_params = opts[:query_params] || {}
|
|
459
|
+
|
|
460
|
+
# header parameters
|
|
461
|
+
header_params = opts[:header_params] || {}
|
|
462
|
+
# HTTP header 'Accept' (if needed)
|
|
463
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
464
|
+
|
|
465
|
+
# form parameters
|
|
466
|
+
form_params = opts[:form_params] || {}
|
|
467
|
+
|
|
468
|
+
# http body (model)
|
|
469
|
+
post_body = opts[:debug_body]
|
|
470
|
+
|
|
471
|
+
# return_type
|
|
472
|
+
return_type = opts[:debug_return_type] || 'ProjectUserDeleteResponse'
|
|
473
|
+
|
|
474
|
+
# auth_names
|
|
475
|
+
auth_names = opts[:debug_auth_names] || ['ApiKeyAuth']
|
|
476
|
+
|
|
477
|
+
new_options = opts.merge(
|
|
478
|
+
:operation => :"ProjectsApi.delete_project_user",
|
|
479
|
+
:header_params => header_params,
|
|
480
|
+
:query_params => query_params,
|
|
481
|
+
:form_params => form_params,
|
|
482
|
+
:body => post_body,
|
|
483
|
+
:auth_names => auth_names,
|
|
484
|
+
:return_type => return_type
|
|
485
|
+
)
|
|
486
|
+
|
|
487
|
+
data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options)
|
|
488
|
+
if @api_client.config.debugging
|
|
489
|
+
@api_client.config.logger.debug "API called: ProjectsApi#delete_project_user\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
490
|
+
end
|
|
491
|
+
return data, status_code, headers
|
|
492
|
+
end
|
|
493
|
+
|
|
494
|
+
# Returns a list of API keys in the project.
|
|
495
|
+
# @param project_id [String] The ID of the project.
|
|
496
|
+
# @param [Hash] opts the optional parameters
|
|
497
|
+
# @option opts [Integer] :limit A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 20. (default to 20)
|
|
498
|
+
# @option opts [String] :after A cursor for use in pagination. `after` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, ending with obj_foo, your subsequent call can include after=obj_foo in order to fetch the next page of the list.
|
|
499
|
+
# @return [ProjectApiKeyListResponse]
|
|
500
|
+
def list_project_api_keys(project_id, opts = {})
|
|
501
|
+
data, _status_code, _headers = list_project_api_keys_with_http_info(project_id, opts)
|
|
502
|
+
data
|
|
503
|
+
end
|
|
504
|
+
|
|
505
|
+
# Returns a list of API keys in the project.
|
|
506
|
+
# @param project_id [String] The ID of the project.
|
|
507
|
+
# @param [Hash] opts the optional parameters
|
|
508
|
+
# @option opts [Integer] :limit A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 20. (default to 20)
|
|
509
|
+
# @option opts [String] :after A cursor for use in pagination. `after` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, ending with obj_foo, your subsequent call can include after=obj_foo in order to fetch the next page of the list.
|
|
510
|
+
# @return [Array<(ProjectApiKeyListResponse, Integer, Hash)>] ProjectApiKeyListResponse data, response status code and response headers
|
|
511
|
+
def list_project_api_keys_with_http_info(project_id, opts = {})
|
|
512
|
+
if @api_client.config.debugging
|
|
513
|
+
@api_client.config.logger.debug 'Calling API: ProjectsApi.list_project_api_keys ...'
|
|
514
|
+
end
|
|
515
|
+
# verify the required parameter 'project_id' is set
|
|
516
|
+
if @api_client.config.client_side_validation && project_id.nil?
|
|
517
|
+
fail ArgumentError, "Missing the required parameter 'project_id' when calling ProjectsApi.list_project_api_keys"
|
|
518
|
+
end
|
|
519
|
+
# resource path
|
|
520
|
+
local_var_path = '/organization/projects/{project_id}/api_keys'.sub('{' + 'project_id' + '}', CGI.escape(project_id.to_s))
|
|
521
|
+
|
|
522
|
+
# query parameters
|
|
523
|
+
query_params = opts[:query_params] || {}
|
|
524
|
+
query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
|
|
525
|
+
query_params[:'after'] = opts[:'after'] if !opts[:'after'].nil?
|
|
526
|
+
|
|
527
|
+
# header parameters
|
|
528
|
+
header_params = opts[:header_params] || {}
|
|
529
|
+
# HTTP header 'Accept' (if needed)
|
|
530
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
531
|
+
|
|
532
|
+
# form parameters
|
|
533
|
+
form_params = opts[:form_params] || {}
|
|
534
|
+
|
|
535
|
+
# http body (model)
|
|
536
|
+
post_body = opts[:debug_body]
|
|
537
|
+
|
|
538
|
+
# return_type
|
|
539
|
+
return_type = opts[:debug_return_type] || 'ProjectApiKeyListResponse'
|
|
540
|
+
|
|
541
|
+
# auth_names
|
|
542
|
+
auth_names = opts[:debug_auth_names] || ['ApiKeyAuth']
|
|
543
|
+
|
|
544
|
+
new_options = opts.merge(
|
|
545
|
+
:operation => :"ProjectsApi.list_project_api_keys",
|
|
546
|
+
:header_params => header_params,
|
|
547
|
+
:query_params => query_params,
|
|
548
|
+
:form_params => form_params,
|
|
549
|
+
:body => post_body,
|
|
550
|
+
:auth_names => auth_names,
|
|
551
|
+
:return_type => return_type
|
|
552
|
+
)
|
|
553
|
+
|
|
554
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
555
|
+
if @api_client.config.debugging
|
|
556
|
+
@api_client.config.logger.debug "API called: ProjectsApi#list_project_api_keys\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
557
|
+
end
|
|
558
|
+
return data, status_code, headers
|
|
559
|
+
end
|
|
560
|
+
|
|
561
|
+
# Returns the rate limits per model for a project.
|
|
562
|
+
# @param project_id [String] The ID of the project.
|
|
563
|
+
# @param [Hash] opts the optional parameters
|
|
564
|
+
# @option opts [Integer] :limit A limit on the number of objects to be returned. The default is 100. (default to 100)
|
|
565
|
+
# @option opts [String] :after A cursor for use in pagination. `after` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, ending with obj_foo, your subsequent call can include after=obj_foo in order to fetch the next page of the list.
|
|
566
|
+
# @option opts [String] :before A cursor for use in pagination. `before` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, beginning with obj_foo, your subsequent call can include before=obj_foo in order to fetch the previous page of the list.
|
|
567
|
+
# @return [ProjectRateLimitListResponse]
|
|
568
|
+
def list_project_rate_limits(project_id, opts = {})
|
|
569
|
+
data, _status_code, _headers = list_project_rate_limits_with_http_info(project_id, opts)
|
|
570
|
+
data
|
|
571
|
+
end
|
|
572
|
+
|
|
573
|
+
# Returns the rate limits per model for a project.
|
|
574
|
+
# @param project_id [String] The ID of the project.
|
|
575
|
+
# @param [Hash] opts the optional parameters
|
|
576
|
+
# @option opts [Integer] :limit A limit on the number of objects to be returned. The default is 100. (default to 100)
|
|
577
|
+
# @option opts [String] :after A cursor for use in pagination. `after` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, ending with obj_foo, your subsequent call can include after=obj_foo in order to fetch the next page of the list.
|
|
578
|
+
# @option opts [String] :before A cursor for use in pagination. `before` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, beginning with obj_foo, your subsequent call can include before=obj_foo in order to fetch the previous page of the list.
|
|
579
|
+
# @return [Array<(ProjectRateLimitListResponse, Integer, Hash)>] ProjectRateLimitListResponse data, response status code and response headers
|
|
580
|
+
def list_project_rate_limits_with_http_info(project_id, opts = {})
|
|
581
|
+
if @api_client.config.debugging
|
|
582
|
+
@api_client.config.logger.debug 'Calling API: ProjectsApi.list_project_rate_limits ...'
|
|
583
|
+
end
|
|
584
|
+
# verify the required parameter 'project_id' is set
|
|
585
|
+
if @api_client.config.client_side_validation && project_id.nil?
|
|
586
|
+
fail ArgumentError, "Missing the required parameter 'project_id' when calling ProjectsApi.list_project_rate_limits"
|
|
587
|
+
end
|
|
588
|
+
# resource path
|
|
589
|
+
local_var_path = '/organization/projects/{project_id}/rate_limits'.sub('{' + 'project_id' + '}', CGI.escape(project_id.to_s))
|
|
590
|
+
|
|
591
|
+
# query parameters
|
|
592
|
+
query_params = opts[:query_params] || {}
|
|
593
|
+
query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
|
|
594
|
+
query_params[:'after'] = opts[:'after'] if !opts[:'after'].nil?
|
|
595
|
+
query_params[:'before'] = opts[:'before'] if !opts[:'before'].nil?
|
|
596
|
+
|
|
597
|
+
# header parameters
|
|
598
|
+
header_params = opts[:header_params] || {}
|
|
599
|
+
# HTTP header 'Accept' (if needed)
|
|
600
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
601
|
+
|
|
602
|
+
# form parameters
|
|
603
|
+
form_params = opts[:form_params] || {}
|
|
604
|
+
|
|
605
|
+
# http body (model)
|
|
606
|
+
post_body = opts[:debug_body]
|
|
607
|
+
|
|
608
|
+
# return_type
|
|
609
|
+
return_type = opts[:debug_return_type] || 'ProjectRateLimitListResponse'
|
|
610
|
+
|
|
611
|
+
# auth_names
|
|
612
|
+
auth_names = opts[:debug_auth_names] || ['ApiKeyAuth']
|
|
613
|
+
|
|
614
|
+
new_options = opts.merge(
|
|
615
|
+
:operation => :"ProjectsApi.list_project_rate_limits",
|
|
616
|
+
:header_params => header_params,
|
|
617
|
+
:query_params => query_params,
|
|
618
|
+
:form_params => form_params,
|
|
619
|
+
:body => post_body,
|
|
620
|
+
:auth_names => auth_names,
|
|
621
|
+
:return_type => return_type
|
|
622
|
+
)
|
|
623
|
+
|
|
624
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
625
|
+
if @api_client.config.debugging
|
|
626
|
+
@api_client.config.logger.debug "API called: ProjectsApi#list_project_rate_limits\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
627
|
+
end
|
|
628
|
+
return data, status_code, headers
|
|
629
|
+
end
|
|
630
|
+
|
|
631
|
+
# Returns a list of service accounts in the project.
|
|
632
|
+
# @param project_id [String] The ID of the project.
|
|
633
|
+
# @param [Hash] opts the optional parameters
|
|
634
|
+
# @option opts [Integer] :limit A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 20. (default to 20)
|
|
635
|
+
# @option opts [String] :after A cursor for use in pagination. `after` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, ending with obj_foo, your subsequent call can include after=obj_foo in order to fetch the next page of the list.
|
|
636
|
+
# @return [ProjectServiceAccountListResponse]
|
|
637
|
+
def list_project_service_accounts(project_id, opts = {})
|
|
638
|
+
data, _status_code, _headers = list_project_service_accounts_with_http_info(project_id, opts)
|
|
639
|
+
data
|
|
640
|
+
end
|
|
641
|
+
|
|
642
|
+
# Returns a list of service accounts in the project.
|
|
643
|
+
# @param project_id [String] The ID of the project.
|
|
644
|
+
# @param [Hash] opts the optional parameters
|
|
645
|
+
# @option opts [Integer] :limit A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 20. (default to 20)
|
|
646
|
+
# @option opts [String] :after A cursor for use in pagination. `after` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, ending with obj_foo, your subsequent call can include after=obj_foo in order to fetch the next page of the list.
|
|
647
|
+
# @return [Array<(ProjectServiceAccountListResponse, Integer, Hash)>] ProjectServiceAccountListResponse data, response status code and response headers
|
|
648
|
+
def list_project_service_accounts_with_http_info(project_id, opts = {})
|
|
649
|
+
if @api_client.config.debugging
|
|
650
|
+
@api_client.config.logger.debug 'Calling API: ProjectsApi.list_project_service_accounts ...'
|
|
651
|
+
end
|
|
652
|
+
# verify the required parameter 'project_id' is set
|
|
653
|
+
if @api_client.config.client_side_validation && project_id.nil?
|
|
654
|
+
fail ArgumentError, "Missing the required parameter 'project_id' when calling ProjectsApi.list_project_service_accounts"
|
|
655
|
+
end
|
|
656
|
+
# resource path
|
|
657
|
+
local_var_path = '/organization/projects/{project_id}/service_accounts'.sub('{' + 'project_id' + '}', CGI.escape(project_id.to_s))
|
|
658
|
+
|
|
659
|
+
# query parameters
|
|
660
|
+
query_params = opts[:query_params] || {}
|
|
661
|
+
query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
|
|
662
|
+
query_params[:'after'] = opts[:'after'] if !opts[:'after'].nil?
|
|
663
|
+
|
|
664
|
+
# header parameters
|
|
665
|
+
header_params = opts[:header_params] || {}
|
|
666
|
+
# HTTP header 'Accept' (if needed)
|
|
667
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
668
|
+
|
|
669
|
+
# form parameters
|
|
670
|
+
form_params = opts[:form_params] || {}
|
|
671
|
+
|
|
672
|
+
# http body (model)
|
|
673
|
+
post_body = opts[:debug_body]
|
|
674
|
+
|
|
675
|
+
# return_type
|
|
676
|
+
return_type = opts[:debug_return_type] || 'ProjectServiceAccountListResponse'
|
|
677
|
+
|
|
678
|
+
# auth_names
|
|
679
|
+
auth_names = opts[:debug_auth_names] || ['ApiKeyAuth']
|
|
680
|
+
|
|
681
|
+
new_options = opts.merge(
|
|
682
|
+
:operation => :"ProjectsApi.list_project_service_accounts",
|
|
683
|
+
:header_params => header_params,
|
|
684
|
+
:query_params => query_params,
|
|
685
|
+
:form_params => form_params,
|
|
686
|
+
:body => post_body,
|
|
687
|
+
:auth_names => auth_names,
|
|
688
|
+
:return_type => return_type
|
|
689
|
+
)
|
|
690
|
+
|
|
691
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
692
|
+
if @api_client.config.debugging
|
|
693
|
+
@api_client.config.logger.debug "API called: ProjectsApi#list_project_service_accounts\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
694
|
+
end
|
|
695
|
+
return data, status_code, headers
|
|
696
|
+
end
|
|
697
|
+
|
|
698
|
+
# Returns a list of users in the project.
|
|
699
|
+
# @param project_id [String] The ID of the project.
|
|
700
|
+
# @param [Hash] opts the optional parameters
|
|
701
|
+
# @option opts [Integer] :limit A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 20. (default to 20)
|
|
702
|
+
# @option opts [String] :after A cursor for use in pagination. `after` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, ending with obj_foo, your subsequent call can include after=obj_foo in order to fetch the next page of the list.
|
|
703
|
+
# @return [ProjectUserListResponse]
|
|
704
|
+
def list_project_users(project_id, opts = {})
|
|
705
|
+
data, _status_code, _headers = list_project_users_with_http_info(project_id, opts)
|
|
706
|
+
data
|
|
707
|
+
end
|
|
708
|
+
|
|
709
|
+
# Returns a list of users in the project.
|
|
710
|
+
# @param project_id [String] The ID of the project.
|
|
711
|
+
# @param [Hash] opts the optional parameters
|
|
712
|
+
# @option opts [Integer] :limit A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 20. (default to 20)
|
|
713
|
+
# @option opts [String] :after A cursor for use in pagination. `after` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, ending with obj_foo, your subsequent call can include after=obj_foo in order to fetch the next page of the list.
|
|
714
|
+
# @return [Array<(ProjectUserListResponse, Integer, Hash)>] ProjectUserListResponse data, response status code and response headers
|
|
715
|
+
def list_project_users_with_http_info(project_id, opts = {})
|
|
716
|
+
if @api_client.config.debugging
|
|
717
|
+
@api_client.config.logger.debug 'Calling API: ProjectsApi.list_project_users ...'
|
|
718
|
+
end
|
|
719
|
+
# verify the required parameter 'project_id' is set
|
|
720
|
+
if @api_client.config.client_side_validation && project_id.nil?
|
|
721
|
+
fail ArgumentError, "Missing the required parameter 'project_id' when calling ProjectsApi.list_project_users"
|
|
722
|
+
end
|
|
723
|
+
# resource path
|
|
724
|
+
local_var_path = '/organization/projects/{project_id}/users'.sub('{' + 'project_id' + '}', CGI.escape(project_id.to_s))
|
|
725
|
+
|
|
726
|
+
# query parameters
|
|
727
|
+
query_params = opts[:query_params] || {}
|
|
728
|
+
query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
|
|
729
|
+
query_params[:'after'] = opts[:'after'] if !opts[:'after'].nil?
|
|
730
|
+
|
|
731
|
+
# header parameters
|
|
732
|
+
header_params = opts[:header_params] || {}
|
|
733
|
+
# HTTP header 'Accept' (if needed)
|
|
734
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
735
|
+
|
|
736
|
+
# form parameters
|
|
737
|
+
form_params = opts[:form_params] || {}
|
|
738
|
+
|
|
739
|
+
# http body (model)
|
|
740
|
+
post_body = opts[:debug_body]
|
|
741
|
+
|
|
742
|
+
# return_type
|
|
743
|
+
return_type = opts[:debug_return_type] || 'ProjectUserListResponse'
|
|
744
|
+
|
|
745
|
+
# auth_names
|
|
746
|
+
auth_names = opts[:debug_auth_names] || ['ApiKeyAuth']
|
|
747
|
+
|
|
748
|
+
new_options = opts.merge(
|
|
749
|
+
:operation => :"ProjectsApi.list_project_users",
|
|
750
|
+
:header_params => header_params,
|
|
751
|
+
:query_params => query_params,
|
|
752
|
+
:form_params => form_params,
|
|
753
|
+
:body => post_body,
|
|
754
|
+
:auth_names => auth_names,
|
|
755
|
+
:return_type => return_type
|
|
756
|
+
)
|
|
757
|
+
|
|
758
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
759
|
+
if @api_client.config.debugging
|
|
760
|
+
@api_client.config.logger.debug "API called: ProjectsApi#list_project_users\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
761
|
+
end
|
|
762
|
+
return data, status_code, headers
|
|
763
|
+
end
|
|
764
|
+
|
|
765
|
+
# Returns a list of projects.
|
|
766
|
+
# @param [Hash] opts the optional parameters
|
|
767
|
+
# @option opts [Integer] :limit A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 20. (default to 20)
|
|
768
|
+
# @option opts [String] :after A cursor for use in pagination. `after` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, ending with obj_foo, your subsequent call can include after=obj_foo in order to fetch the next page of the list.
|
|
769
|
+
# @option opts [Boolean] :include_archived If `true` returns all projects including those that have been `archived`. Archived projects are not included by default. (default to false)
|
|
770
|
+
# @return [ProjectListResponse]
|
|
771
|
+
def list_projects(opts = {})
|
|
772
|
+
data, _status_code, _headers = list_projects_with_http_info(opts)
|
|
773
|
+
data
|
|
774
|
+
end
|
|
775
|
+
|
|
776
|
+
# Returns a list of projects.
|
|
777
|
+
# @param [Hash] opts the optional parameters
|
|
778
|
+
# @option opts [Integer] :limit A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 20. (default to 20)
|
|
779
|
+
# @option opts [String] :after A cursor for use in pagination. `after` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, ending with obj_foo, your subsequent call can include after=obj_foo in order to fetch the next page of the list.
|
|
780
|
+
# @option opts [Boolean] :include_archived If `true` returns all projects including those that have been `archived`. Archived projects are not included by default. (default to false)
|
|
781
|
+
# @return [Array<(ProjectListResponse, Integer, Hash)>] ProjectListResponse data, response status code and response headers
|
|
782
|
+
def list_projects_with_http_info(opts = {})
|
|
783
|
+
if @api_client.config.debugging
|
|
784
|
+
@api_client.config.logger.debug 'Calling API: ProjectsApi.list_projects ...'
|
|
785
|
+
end
|
|
786
|
+
# resource path
|
|
787
|
+
local_var_path = '/organization/projects'
|
|
788
|
+
|
|
789
|
+
# query parameters
|
|
790
|
+
query_params = opts[:query_params] || {}
|
|
791
|
+
query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
|
|
792
|
+
query_params[:'after'] = opts[:'after'] if !opts[:'after'].nil?
|
|
793
|
+
query_params[:'include_archived'] = opts[:'include_archived'] if !opts[:'include_archived'].nil?
|
|
794
|
+
|
|
795
|
+
# header parameters
|
|
796
|
+
header_params = opts[:header_params] || {}
|
|
797
|
+
# HTTP header 'Accept' (if needed)
|
|
798
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
799
|
+
|
|
800
|
+
# form parameters
|
|
801
|
+
form_params = opts[:form_params] || {}
|
|
802
|
+
|
|
803
|
+
# http body (model)
|
|
804
|
+
post_body = opts[:debug_body]
|
|
805
|
+
|
|
806
|
+
# return_type
|
|
807
|
+
return_type = opts[:debug_return_type] || 'ProjectListResponse'
|
|
808
|
+
|
|
809
|
+
# auth_names
|
|
810
|
+
auth_names = opts[:debug_auth_names] || ['ApiKeyAuth']
|
|
811
|
+
|
|
812
|
+
new_options = opts.merge(
|
|
813
|
+
:operation => :"ProjectsApi.list_projects",
|
|
814
|
+
:header_params => header_params,
|
|
815
|
+
:query_params => query_params,
|
|
816
|
+
:form_params => form_params,
|
|
817
|
+
:body => post_body,
|
|
818
|
+
:auth_names => auth_names,
|
|
819
|
+
:return_type => return_type
|
|
820
|
+
)
|
|
821
|
+
|
|
822
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
823
|
+
if @api_client.config.debugging
|
|
824
|
+
@api_client.config.logger.debug "API called: ProjectsApi#list_projects\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
825
|
+
end
|
|
826
|
+
return data, status_code, headers
|
|
827
|
+
end
|
|
828
|
+
|
|
829
|
+
# Modifies a project in the organization.
|
|
830
|
+
# @param project_id [String] The ID of the project.
|
|
831
|
+
# @param project_update_request [ProjectUpdateRequest] The project update request payload.
|
|
832
|
+
# @param [Hash] opts the optional parameters
|
|
833
|
+
# @return [Project]
|
|
834
|
+
def modify_project(project_id, project_update_request, opts = {})
|
|
835
|
+
data, _status_code, _headers = modify_project_with_http_info(project_id, project_update_request, opts)
|
|
836
|
+
data
|
|
837
|
+
end
|
|
838
|
+
|
|
839
|
+
# Modifies a project in the organization.
|
|
840
|
+
# @param project_id [String] The ID of the project.
|
|
841
|
+
# @param project_update_request [ProjectUpdateRequest] The project update request payload.
|
|
842
|
+
# @param [Hash] opts the optional parameters
|
|
843
|
+
# @return [Array<(Project, Integer, Hash)>] Project data, response status code and response headers
|
|
844
|
+
def modify_project_with_http_info(project_id, project_update_request, opts = {})
|
|
845
|
+
if @api_client.config.debugging
|
|
846
|
+
@api_client.config.logger.debug 'Calling API: ProjectsApi.modify_project ...'
|
|
847
|
+
end
|
|
848
|
+
# verify the required parameter 'project_id' is set
|
|
849
|
+
if @api_client.config.client_side_validation && project_id.nil?
|
|
850
|
+
fail ArgumentError, "Missing the required parameter 'project_id' when calling ProjectsApi.modify_project"
|
|
851
|
+
end
|
|
852
|
+
# verify the required parameter 'project_update_request' is set
|
|
853
|
+
if @api_client.config.client_side_validation && project_update_request.nil?
|
|
854
|
+
fail ArgumentError, "Missing the required parameter 'project_update_request' when calling ProjectsApi.modify_project"
|
|
855
|
+
end
|
|
856
|
+
# resource path
|
|
857
|
+
local_var_path = '/organization/projects/{project_id}'.sub('{' + 'project_id' + '}', CGI.escape(project_id.to_s))
|
|
858
|
+
|
|
859
|
+
# query parameters
|
|
860
|
+
query_params = opts[:query_params] || {}
|
|
861
|
+
|
|
862
|
+
# header parameters
|
|
863
|
+
header_params = opts[:header_params] || {}
|
|
864
|
+
# HTTP header 'Accept' (if needed)
|
|
865
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
866
|
+
# HTTP header 'Content-Type'
|
|
867
|
+
content_type = @api_client.select_header_content_type(['application/json'])
|
|
868
|
+
if !content_type.nil?
|
|
869
|
+
header_params['Content-Type'] = content_type
|
|
870
|
+
end
|
|
871
|
+
|
|
872
|
+
# form parameters
|
|
873
|
+
form_params = opts[:form_params] || {}
|
|
874
|
+
|
|
875
|
+
# http body (model)
|
|
876
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(project_update_request)
|
|
877
|
+
|
|
878
|
+
# return_type
|
|
879
|
+
return_type = opts[:debug_return_type] || 'Project'
|
|
880
|
+
|
|
881
|
+
# auth_names
|
|
882
|
+
auth_names = opts[:debug_auth_names] || ['ApiKeyAuth']
|
|
883
|
+
|
|
884
|
+
new_options = opts.merge(
|
|
885
|
+
:operation => :"ProjectsApi.modify_project",
|
|
886
|
+
:header_params => header_params,
|
|
887
|
+
:query_params => query_params,
|
|
888
|
+
:form_params => form_params,
|
|
889
|
+
:body => post_body,
|
|
890
|
+
:auth_names => auth_names,
|
|
891
|
+
:return_type => return_type
|
|
892
|
+
)
|
|
893
|
+
|
|
894
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
|
895
|
+
if @api_client.config.debugging
|
|
896
|
+
@api_client.config.logger.debug "API called: ProjectsApi#modify_project\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
897
|
+
end
|
|
898
|
+
return data, status_code, headers
|
|
899
|
+
end
|
|
900
|
+
|
|
901
|
+
# Modifies a user's role in the project.
|
|
902
|
+
# @param project_id [String] The ID of the project.
|
|
903
|
+
# @param user_id [String] The ID of the user.
|
|
904
|
+
# @param project_user_update_request [ProjectUserUpdateRequest] The project user update request payload.
|
|
905
|
+
# @param [Hash] opts the optional parameters
|
|
906
|
+
# @return [ProjectUser]
|
|
907
|
+
def modify_project_user(project_id, user_id, project_user_update_request, opts = {})
|
|
908
|
+
data, _status_code, _headers = modify_project_user_with_http_info(project_id, user_id, project_user_update_request, opts)
|
|
909
|
+
data
|
|
910
|
+
end
|
|
911
|
+
|
|
912
|
+
# Modifies a user's role in the project.
|
|
913
|
+
# @param project_id [String] The ID of the project.
|
|
914
|
+
# @param user_id [String] The ID of the user.
|
|
915
|
+
# @param project_user_update_request [ProjectUserUpdateRequest] The project user update request payload.
|
|
916
|
+
# @param [Hash] opts the optional parameters
|
|
917
|
+
# @return [Array<(ProjectUser, Integer, Hash)>] ProjectUser data, response status code and response headers
|
|
918
|
+
def modify_project_user_with_http_info(project_id, user_id, project_user_update_request, opts = {})
|
|
919
|
+
if @api_client.config.debugging
|
|
920
|
+
@api_client.config.logger.debug 'Calling API: ProjectsApi.modify_project_user ...'
|
|
921
|
+
end
|
|
922
|
+
# verify the required parameter 'project_id' is set
|
|
923
|
+
if @api_client.config.client_side_validation && project_id.nil?
|
|
924
|
+
fail ArgumentError, "Missing the required parameter 'project_id' when calling ProjectsApi.modify_project_user"
|
|
925
|
+
end
|
|
926
|
+
# verify the required parameter 'user_id' is set
|
|
927
|
+
if @api_client.config.client_side_validation && user_id.nil?
|
|
928
|
+
fail ArgumentError, "Missing the required parameter 'user_id' when calling ProjectsApi.modify_project_user"
|
|
929
|
+
end
|
|
930
|
+
# verify the required parameter 'project_user_update_request' is set
|
|
931
|
+
if @api_client.config.client_side_validation && project_user_update_request.nil?
|
|
932
|
+
fail ArgumentError, "Missing the required parameter 'project_user_update_request' when calling ProjectsApi.modify_project_user"
|
|
933
|
+
end
|
|
934
|
+
# resource path
|
|
935
|
+
local_var_path = '/organization/projects/{project_id}/users/{user_id}'.sub('{' + 'project_id' + '}', CGI.escape(project_id.to_s)).sub('{' + 'user_id' + '}', CGI.escape(user_id.to_s))
|
|
936
|
+
|
|
937
|
+
# query parameters
|
|
938
|
+
query_params = opts[:query_params] || {}
|
|
939
|
+
|
|
940
|
+
# header parameters
|
|
941
|
+
header_params = opts[:header_params] || {}
|
|
942
|
+
# HTTP header 'Accept' (if needed)
|
|
943
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
944
|
+
# HTTP header 'Content-Type'
|
|
945
|
+
content_type = @api_client.select_header_content_type(['application/json'])
|
|
946
|
+
if !content_type.nil?
|
|
947
|
+
header_params['Content-Type'] = content_type
|
|
948
|
+
end
|
|
949
|
+
|
|
950
|
+
# form parameters
|
|
951
|
+
form_params = opts[:form_params] || {}
|
|
952
|
+
|
|
953
|
+
# http body (model)
|
|
954
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(project_user_update_request)
|
|
955
|
+
|
|
956
|
+
# return_type
|
|
957
|
+
return_type = opts[:debug_return_type] || 'ProjectUser'
|
|
958
|
+
|
|
959
|
+
# auth_names
|
|
960
|
+
auth_names = opts[:debug_auth_names] || ['ApiKeyAuth']
|
|
961
|
+
|
|
962
|
+
new_options = opts.merge(
|
|
963
|
+
:operation => :"ProjectsApi.modify_project_user",
|
|
964
|
+
:header_params => header_params,
|
|
965
|
+
:query_params => query_params,
|
|
966
|
+
:form_params => form_params,
|
|
967
|
+
:body => post_body,
|
|
968
|
+
:auth_names => auth_names,
|
|
969
|
+
:return_type => return_type
|
|
970
|
+
)
|
|
971
|
+
|
|
972
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
|
973
|
+
if @api_client.config.debugging
|
|
974
|
+
@api_client.config.logger.debug "API called: ProjectsApi#modify_project_user\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
975
|
+
end
|
|
976
|
+
return data, status_code, headers
|
|
977
|
+
end
|
|
978
|
+
|
|
979
|
+
# Retrieves a project.
|
|
980
|
+
# @param project_id [String] The ID of the project.
|
|
981
|
+
# @param [Hash] opts the optional parameters
|
|
982
|
+
# @return [Project]
|
|
983
|
+
def retrieve_project(project_id, opts = {})
|
|
984
|
+
data, _status_code, _headers = retrieve_project_with_http_info(project_id, opts)
|
|
985
|
+
data
|
|
986
|
+
end
|
|
987
|
+
|
|
988
|
+
# Retrieves a project.
|
|
989
|
+
# @param project_id [String] The ID of the project.
|
|
990
|
+
# @param [Hash] opts the optional parameters
|
|
991
|
+
# @return [Array<(Project, Integer, Hash)>] Project data, response status code and response headers
|
|
992
|
+
def retrieve_project_with_http_info(project_id, opts = {})
|
|
993
|
+
if @api_client.config.debugging
|
|
994
|
+
@api_client.config.logger.debug 'Calling API: ProjectsApi.retrieve_project ...'
|
|
995
|
+
end
|
|
996
|
+
# verify the required parameter 'project_id' is set
|
|
997
|
+
if @api_client.config.client_side_validation && project_id.nil?
|
|
998
|
+
fail ArgumentError, "Missing the required parameter 'project_id' when calling ProjectsApi.retrieve_project"
|
|
999
|
+
end
|
|
1000
|
+
# resource path
|
|
1001
|
+
local_var_path = '/organization/projects/{project_id}'.sub('{' + 'project_id' + '}', CGI.escape(project_id.to_s))
|
|
1002
|
+
|
|
1003
|
+
# query parameters
|
|
1004
|
+
query_params = opts[:query_params] || {}
|
|
1005
|
+
|
|
1006
|
+
# header parameters
|
|
1007
|
+
header_params = opts[:header_params] || {}
|
|
1008
|
+
# HTTP header 'Accept' (if needed)
|
|
1009
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
1010
|
+
|
|
1011
|
+
# form parameters
|
|
1012
|
+
form_params = opts[:form_params] || {}
|
|
1013
|
+
|
|
1014
|
+
# http body (model)
|
|
1015
|
+
post_body = opts[:debug_body]
|
|
1016
|
+
|
|
1017
|
+
# return_type
|
|
1018
|
+
return_type = opts[:debug_return_type] || 'Project'
|
|
1019
|
+
|
|
1020
|
+
# auth_names
|
|
1021
|
+
auth_names = opts[:debug_auth_names] || ['ApiKeyAuth']
|
|
1022
|
+
|
|
1023
|
+
new_options = opts.merge(
|
|
1024
|
+
:operation => :"ProjectsApi.retrieve_project",
|
|
1025
|
+
:header_params => header_params,
|
|
1026
|
+
:query_params => query_params,
|
|
1027
|
+
:form_params => form_params,
|
|
1028
|
+
:body => post_body,
|
|
1029
|
+
:auth_names => auth_names,
|
|
1030
|
+
:return_type => return_type
|
|
1031
|
+
)
|
|
1032
|
+
|
|
1033
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
1034
|
+
if @api_client.config.debugging
|
|
1035
|
+
@api_client.config.logger.debug "API called: ProjectsApi#retrieve_project\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
1036
|
+
end
|
|
1037
|
+
return data, status_code, headers
|
|
1038
|
+
end
|
|
1039
|
+
|
|
1040
|
+
# Retrieves an API key in the project.
|
|
1041
|
+
# @param project_id [String] The ID of the project.
|
|
1042
|
+
# @param key_id [String] The ID of the API key.
|
|
1043
|
+
# @param [Hash] opts the optional parameters
|
|
1044
|
+
# @return [ProjectApiKey]
|
|
1045
|
+
def retrieve_project_api_key(project_id, key_id, opts = {})
|
|
1046
|
+
data, _status_code, _headers = retrieve_project_api_key_with_http_info(project_id, key_id, opts)
|
|
1047
|
+
data
|
|
1048
|
+
end
|
|
1049
|
+
|
|
1050
|
+
# Retrieves an API key in the project.
|
|
1051
|
+
# @param project_id [String] The ID of the project.
|
|
1052
|
+
# @param key_id [String] The ID of the API key.
|
|
1053
|
+
# @param [Hash] opts the optional parameters
|
|
1054
|
+
# @return [Array<(ProjectApiKey, Integer, Hash)>] ProjectApiKey data, response status code and response headers
|
|
1055
|
+
def retrieve_project_api_key_with_http_info(project_id, key_id, opts = {})
|
|
1056
|
+
if @api_client.config.debugging
|
|
1057
|
+
@api_client.config.logger.debug 'Calling API: ProjectsApi.retrieve_project_api_key ...'
|
|
1058
|
+
end
|
|
1059
|
+
# verify the required parameter 'project_id' is set
|
|
1060
|
+
if @api_client.config.client_side_validation && project_id.nil?
|
|
1061
|
+
fail ArgumentError, "Missing the required parameter 'project_id' when calling ProjectsApi.retrieve_project_api_key"
|
|
1062
|
+
end
|
|
1063
|
+
# verify the required parameter 'key_id' is set
|
|
1064
|
+
if @api_client.config.client_side_validation && key_id.nil?
|
|
1065
|
+
fail ArgumentError, "Missing the required parameter 'key_id' when calling ProjectsApi.retrieve_project_api_key"
|
|
1066
|
+
end
|
|
1067
|
+
# resource path
|
|
1068
|
+
local_var_path = '/organization/projects/{project_id}/api_keys/{key_id}'.sub('{' + 'project_id' + '}', CGI.escape(project_id.to_s)).sub('{' + 'key_id' + '}', CGI.escape(key_id.to_s))
|
|
1069
|
+
|
|
1070
|
+
# query parameters
|
|
1071
|
+
query_params = opts[:query_params] || {}
|
|
1072
|
+
|
|
1073
|
+
# header parameters
|
|
1074
|
+
header_params = opts[:header_params] || {}
|
|
1075
|
+
# HTTP header 'Accept' (if needed)
|
|
1076
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
1077
|
+
|
|
1078
|
+
# form parameters
|
|
1079
|
+
form_params = opts[:form_params] || {}
|
|
1080
|
+
|
|
1081
|
+
# http body (model)
|
|
1082
|
+
post_body = opts[:debug_body]
|
|
1083
|
+
|
|
1084
|
+
# return_type
|
|
1085
|
+
return_type = opts[:debug_return_type] || 'ProjectApiKey'
|
|
1086
|
+
|
|
1087
|
+
# auth_names
|
|
1088
|
+
auth_names = opts[:debug_auth_names] || ['ApiKeyAuth']
|
|
1089
|
+
|
|
1090
|
+
new_options = opts.merge(
|
|
1091
|
+
:operation => :"ProjectsApi.retrieve_project_api_key",
|
|
1092
|
+
:header_params => header_params,
|
|
1093
|
+
:query_params => query_params,
|
|
1094
|
+
:form_params => form_params,
|
|
1095
|
+
:body => post_body,
|
|
1096
|
+
:auth_names => auth_names,
|
|
1097
|
+
:return_type => return_type
|
|
1098
|
+
)
|
|
1099
|
+
|
|
1100
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
1101
|
+
if @api_client.config.debugging
|
|
1102
|
+
@api_client.config.logger.debug "API called: ProjectsApi#retrieve_project_api_key\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
1103
|
+
end
|
|
1104
|
+
return data, status_code, headers
|
|
1105
|
+
end
|
|
1106
|
+
|
|
1107
|
+
# Retrieves a service account in the project.
|
|
1108
|
+
# @param project_id [String] The ID of the project.
|
|
1109
|
+
# @param service_account_id [String] The ID of the service account.
|
|
1110
|
+
# @param [Hash] opts the optional parameters
|
|
1111
|
+
# @return [ProjectServiceAccount]
|
|
1112
|
+
def retrieve_project_service_account(project_id, service_account_id, opts = {})
|
|
1113
|
+
data, _status_code, _headers = retrieve_project_service_account_with_http_info(project_id, service_account_id, opts)
|
|
1114
|
+
data
|
|
1115
|
+
end
|
|
1116
|
+
|
|
1117
|
+
# Retrieves a service account in the project.
|
|
1118
|
+
# @param project_id [String] The ID of the project.
|
|
1119
|
+
# @param service_account_id [String] The ID of the service account.
|
|
1120
|
+
# @param [Hash] opts the optional parameters
|
|
1121
|
+
# @return [Array<(ProjectServiceAccount, Integer, Hash)>] ProjectServiceAccount data, response status code and response headers
|
|
1122
|
+
def retrieve_project_service_account_with_http_info(project_id, service_account_id, opts = {})
|
|
1123
|
+
if @api_client.config.debugging
|
|
1124
|
+
@api_client.config.logger.debug 'Calling API: ProjectsApi.retrieve_project_service_account ...'
|
|
1125
|
+
end
|
|
1126
|
+
# verify the required parameter 'project_id' is set
|
|
1127
|
+
if @api_client.config.client_side_validation && project_id.nil?
|
|
1128
|
+
fail ArgumentError, "Missing the required parameter 'project_id' when calling ProjectsApi.retrieve_project_service_account"
|
|
1129
|
+
end
|
|
1130
|
+
# verify the required parameter 'service_account_id' is set
|
|
1131
|
+
if @api_client.config.client_side_validation && service_account_id.nil?
|
|
1132
|
+
fail ArgumentError, "Missing the required parameter 'service_account_id' when calling ProjectsApi.retrieve_project_service_account"
|
|
1133
|
+
end
|
|
1134
|
+
# resource path
|
|
1135
|
+
local_var_path = '/organization/projects/{project_id}/service_accounts/{service_account_id}'.sub('{' + 'project_id' + '}', CGI.escape(project_id.to_s)).sub('{' + 'service_account_id' + '}', CGI.escape(service_account_id.to_s))
|
|
1136
|
+
|
|
1137
|
+
# query parameters
|
|
1138
|
+
query_params = opts[:query_params] || {}
|
|
1139
|
+
|
|
1140
|
+
# header parameters
|
|
1141
|
+
header_params = opts[:header_params] || {}
|
|
1142
|
+
# HTTP header 'Accept' (if needed)
|
|
1143
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
1144
|
+
|
|
1145
|
+
# form parameters
|
|
1146
|
+
form_params = opts[:form_params] || {}
|
|
1147
|
+
|
|
1148
|
+
# http body (model)
|
|
1149
|
+
post_body = opts[:debug_body]
|
|
1150
|
+
|
|
1151
|
+
# return_type
|
|
1152
|
+
return_type = opts[:debug_return_type] || 'ProjectServiceAccount'
|
|
1153
|
+
|
|
1154
|
+
# auth_names
|
|
1155
|
+
auth_names = opts[:debug_auth_names] || ['ApiKeyAuth']
|
|
1156
|
+
|
|
1157
|
+
new_options = opts.merge(
|
|
1158
|
+
:operation => :"ProjectsApi.retrieve_project_service_account",
|
|
1159
|
+
:header_params => header_params,
|
|
1160
|
+
:query_params => query_params,
|
|
1161
|
+
:form_params => form_params,
|
|
1162
|
+
:body => post_body,
|
|
1163
|
+
:auth_names => auth_names,
|
|
1164
|
+
:return_type => return_type
|
|
1165
|
+
)
|
|
1166
|
+
|
|
1167
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
1168
|
+
if @api_client.config.debugging
|
|
1169
|
+
@api_client.config.logger.debug "API called: ProjectsApi#retrieve_project_service_account\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
1170
|
+
end
|
|
1171
|
+
return data, status_code, headers
|
|
1172
|
+
end
|
|
1173
|
+
|
|
1174
|
+
# Retrieves a user in the project.
|
|
1175
|
+
# @param project_id [String] The ID of the project.
|
|
1176
|
+
# @param user_id [String] The ID of the user.
|
|
1177
|
+
# @param [Hash] opts the optional parameters
|
|
1178
|
+
# @return [ProjectUser]
|
|
1179
|
+
def retrieve_project_user(project_id, user_id, opts = {})
|
|
1180
|
+
data, _status_code, _headers = retrieve_project_user_with_http_info(project_id, user_id, opts)
|
|
1181
|
+
data
|
|
1182
|
+
end
|
|
1183
|
+
|
|
1184
|
+
# Retrieves a user in the project.
|
|
1185
|
+
# @param project_id [String] The ID of the project.
|
|
1186
|
+
# @param user_id [String] The ID of the user.
|
|
1187
|
+
# @param [Hash] opts the optional parameters
|
|
1188
|
+
# @return [Array<(ProjectUser, Integer, Hash)>] ProjectUser data, response status code and response headers
|
|
1189
|
+
def retrieve_project_user_with_http_info(project_id, user_id, opts = {})
|
|
1190
|
+
if @api_client.config.debugging
|
|
1191
|
+
@api_client.config.logger.debug 'Calling API: ProjectsApi.retrieve_project_user ...'
|
|
1192
|
+
end
|
|
1193
|
+
# verify the required parameter 'project_id' is set
|
|
1194
|
+
if @api_client.config.client_side_validation && project_id.nil?
|
|
1195
|
+
fail ArgumentError, "Missing the required parameter 'project_id' when calling ProjectsApi.retrieve_project_user"
|
|
1196
|
+
end
|
|
1197
|
+
# verify the required parameter 'user_id' is set
|
|
1198
|
+
if @api_client.config.client_side_validation && user_id.nil?
|
|
1199
|
+
fail ArgumentError, "Missing the required parameter 'user_id' when calling ProjectsApi.retrieve_project_user"
|
|
1200
|
+
end
|
|
1201
|
+
# resource path
|
|
1202
|
+
local_var_path = '/organization/projects/{project_id}/users/{user_id}'.sub('{' + 'project_id' + '}', CGI.escape(project_id.to_s)).sub('{' + 'user_id' + '}', CGI.escape(user_id.to_s))
|
|
1203
|
+
|
|
1204
|
+
# query parameters
|
|
1205
|
+
query_params = opts[:query_params] || {}
|
|
1206
|
+
|
|
1207
|
+
# header parameters
|
|
1208
|
+
header_params = opts[:header_params] || {}
|
|
1209
|
+
# HTTP header 'Accept' (if needed)
|
|
1210
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
1211
|
+
|
|
1212
|
+
# form parameters
|
|
1213
|
+
form_params = opts[:form_params] || {}
|
|
1214
|
+
|
|
1215
|
+
# http body (model)
|
|
1216
|
+
post_body = opts[:debug_body]
|
|
1217
|
+
|
|
1218
|
+
# return_type
|
|
1219
|
+
return_type = opts[:debug_return_type] || 'ProjectUser'
|
|
1220
|
+
|
|
1221
|
+
# auth_names
|
|
1222
|
+
auth_names = opts[:debug_auth_names] || ['ApiKeyAuth']
|
|
1223
|
+
|
|
1224
|
+
new_options = opts.merge(
|
|
1225
|
+
:operation => :"ProjectsApi.retrieve_project_user",
|
|
1226
|
+
:header_params => header_params,
|
|
1227
|
+
:query_params => query_params,
|
|
1228
|
+
:form_params => form_params,
|
|
1229
|
+
:body => post_body,
|
|
1230
|
+
:auth_names => auth_names,
|
|
1231
|
+
:return_type => return_type
|
|
1232
|
+
)
|
|
1233
|
+
|
|
1234
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
1235
|
+
if @api_client.config.debugging
|
|
1236
|
+
@api_client.config.logger.debug "API called: ProjectsApi#retrieve_project_user\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
1237
|
+
end
|
|
1238
|
+
return data, status_code, headers
|
|
1239
|
+
end
|
|
1240
|
+
|
|
1241
|
+
# Updates a project rate limit.
|
|
1242
|
+
# @param project_id [String] The ID of the project.
|
|
1243
|
+
# @param rate_limit_id [String] The ID of the rate limit.
|
|
1244
|
+
# @param project_rate_limit_update_request [ProjectRateLimitUpdateRequest] The project rate limit update request payload.
|
|
1245
|
+
# @param [Hash] opts the optional parameters
|
|
1246
|
+
# @return [ProjectRateLimit]
|
|
1247
|
+
def update_project_rate_limits(project_id, rate_limit_id, project_rate_limit_update_request, opts = {})
|
|
1248
|
+
data, _status_code, _headers = update_project_rate_limits_with_http_info(project_id, rate_limit_id, project_rate_limit_update_request, opts)
|
|
1249
|
+
data
|
|
1250
|
+
end
|
|
1251
|
+
|
|
1252
|
+
# Updates a project rate limit.
|
|
1253
|
+
# @param project_id [String] The ID of the project.
|
|
1254
|
+
# @param rate_limit_id [String] The ID of the rate limit.
|
|
1255
|
+
# @param project_rate_limit_update_request [ProjectRateLimitUpdateRequest] The project rate limit update request payload.
|
|
1256
|
+
# @param [Hash] opts the optional parameters
|
|
1257
|
+
# @return [Array<(ProjectRateLimit, Integer, Hash)>] ProjectRateLimit data, response status code and response headers
|
|
1258
|
+
def update_project_rate_limits_with_http_info(project_id, rate_limit_id, project_rate_limit_update_request, opts = {})
|
|
1259
|
+
if @api_client.config.debugging
|
|
1260
|
+
@api_client.config.logger.debug 'Calling API: ProjectsApi.update_project_rate_limits ...'
|
|
1261
|
+
end
|
|
1262
|
+
# verify the required parameter 'project_id' is set
|
|
1263
|
+
if @api_client.config.client_side_validation && project_id.nil?
|
|
1264
|
+
fail ArgumentError, "Missing the required parameter 'project_id' when calling ProjectsApi.update_project_rate_limits"
|
|
1265
|
+
end
|
|
1266
|
+
# verify the required parameter 'rate_limit_id' is set
|
|
1267
|
+
if @api_client.config.client_side_validation && rate_limit_id.nil?
|
|
1268
|
+
fail ArgumentError, "Missing the required parameter 'rate_limit_id' when calling ProjectsApi.update_project_rate_limits"
|
|
1269
|
+
end
|
|
1270
|
+
# verify the required parameter 'project_rate_limit_update_request' is set
|
|
1271
|
+
if @api_client.config.client_side_validation && project_rate_limit_update_request.nil?
|
|
1272
|
+
fail ArgumentError, "Missing the required parameter 'project_rate_limit_update_request' when calling ProjectsApi.update_project_rate_limits"
|
|
1273
|
+
end
|
|
1274
|
+
# resource path
|
|
1275
|
+
local_var_path = '/organization/projects/{project_id}/rate_limits/{rate_limit_id}'.sub('{' + 'project_id' + '}', CGI.escape(project_id.to_s)).sub('{' + 'rate_limit_id' + '}', CGI.escape(rate_limit_id.to_s))
|
|
1276
|
+
|
|
1277
|
+
# query parameters
|
|
1278
|
+
query_params = opts[:query_params] || {}
|
|
1279
|
+
|
|
1280
|
+
# header parameters
|
|
1281
|
+
header_params = opts[:header_params] || {}
|
|
1282
|
+
# HTTP header 'Accept' (if needed)
|
|
1283
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
1284
|
+
# HTTP header 'Content-Type'
|
|
1285
|
+
content_type = @api_client.select_header_content_type(['application/json'])
|
|
1286
|
+
if !content_type.nil?
|
|
1287
|
+
header_params['Content-Type'] = content_type
|
|
1288
|
+
end
|
|
1289
|
+
|
|
1290
|
+
# form parameters
|
|
1291
|
+
form_params = opts[:form_params] || {}
|
|
1292
|
+
|
|
1293
|
+
# http body (model)
|
|
1294
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(project_rate_limit_update_request)
|
|
1295
|
+
|
|
1296
|
+
# return_type
|
|
1297
|
+
return_type = opts[:debug_return_type] || 'ProjectRateLimit'
|
|
1298
|
+
|
|
1299
|
+
# auth_names
|
|
1300
|
+
auth_names = opts[:debug_auth_names] || ['ApiKeyAuth']
|
|
1301
|
+
|
|
1302
|
+
new_options = opts.merge(
|
|
1303
|
+
:operation => :"ProjectsApi.update_project_rate_limits",
|
|
1304
|
+
:header_params => header_params,
|
|
1305
|
+
:query_params => query_params,
|
|
1306
|
+
:form_params => form_params,
|
|
1307
|
+
:body => post_body,
|
|
1308
|
+
:auth_names => auth_names,
|
|
1309
|
+
:return_type => return_type
|
|
1310
|
+
)
|
|
1311
|
+
|
|
1312
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
|
1313
|
+
if @api_client.config.debugging
|
|
1314
|
+
@api_client.config.logger.debug "API called: ProjectsApi#update_project_rate_limits\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
1315
|
+
end
|
|
1316
|
+
return data, status_code, headers
|
|
1317
|
+
end
|
|
1318
|
+
end
|
|
1319
|
+
end
|