From b68877bb723fb0aec7a3f916152d95e1970f52ca Mon Sep 17 00:00:00 2001 From: Ajevan M Date: Tue, 21 Oct 2025 11:07:19 -0400 Subject: [PATCH 1/4] Add Java SDK changes for new features --- .openapi-generator/FILES | 63 + README.md | 27 + docs/AvailableNumber.md | 2 - docs/BlobListResponse.md | 20 + docs/BlobResult.md | 20 + docs/CreateBlobRequest.md | 15 + docs/DefaultApi.md | 476 +++++- docs/IncomingNumberResult.md | 2 - docs/ModifyBlobRequest.md | 14 + docs/PlatformError.md | 17 + docs/ReplaceBlobRequest.md | 13 + docs/Say.md | 3 +- docs/SayClassic.md | 17 + docs/SayElevenLabs.md | 17 + docs/SayElevenLabsEngine.md | 15 + docs/SayElevenLabsEngineParameters.md | 24 + ...eParametersPronunciationDictionaryInner.md | 14 + ...ElevenLabsEngineParametersVoiceSettings.md | 18 + docs/SayNeural.md | 17 + docs/SayNeuralEngine.md | 15 + docs/SayNeuralEngineParameters.md | 16 + docs/SayNeuralTextType.md | 13 + docs/SayStandard.md | 17 + docs/SayStandardContentType.md | 13 + docs/SayStandardCulture.md | 61 + docs/SayStandardEngine.md | 17 + docs/SayStandardVoice.md | 61 + openapi.json | 1400 +++++++++++++++-- .../com/github/freeclimbapi/DefaultApi.java | 1346 ++++++++++++++-- .../freeclimbapi/enums/SayNeuralTextType.java | 69 + .../enums/SayStandardContentType.java | 69 + .../enums/SayStandardCulture.java | 117 ++ .../freeclimbapi/enums/SayStandardVoice.java | 117 ++ .../freeclimbapi/models/AvailableNumber.java | 64 +- .../freeclimbapi/models/BlobListResponse.java | 317 ++++ .../freeclimbapi/models/BlobResult.java | 310 ++++ .../models/CreateBlobRequest.java | 160 ++ .../models/IncomingNumberResult.java | 69 - .../models/ModifyBlobRequest.java | 124 ++ .../freeclimbapi/models/PlatformError.java | 178 +++ .../models/ReplaceBlobRequest.java | 92 ++ .../com/github/freeclimbapi/models/Say.java | 101 +- .../freeclimbapi/models/SayClassic.java | 210 +++ .../freeclimbapi/models/SayElevenLabs.java | 205 +++ .../models/SayElevenLabsEngine.java | 132 ++ .../models/SayElevenLabsEngineParameters.java | 453 ++++++ ...arametersPronunciationDictionaryInner.java | 131 ++ ...evenLabsEngineParametersVoiceSettings.java | 218 +++ .../github/freeclimbapi/models/SayNeural.java | 206 +++ .../freeclimbapi/models/SayNeuralEngine.java | 132 ++ .../models/SayNeuralEngineParameters.java | 164 ++ .../freeclimbapi/models/SayStandard.java | 205 +++ .../models/SayStandardEngine.java | 189 +++ .../freeclimbapi/api/DefaultApiTest.java | 291 +++- .../enums/SayNeuralTextTypeTest.java | 69 + .../enums/SayStandardContentTypeTest.java | 70 + .../enums/SayStandardCultureTest.java | 621 ++++++++ .../enums/SayStandardVoiceTest.java | 621 ++++++++ .../models/ApplicationListTest.java | 48 +- .../models/AvailableNumberListTest.java | 48 +- .../models/AvailableNumberTest.java | 62 - .../models/BlobListResponseTest.java | 347 ++++ .../freeclimbapi/models/BlobResultTest.java | 362 +++++ .../freeclimbapi/models/CallListTest.java | 48 +- .../models/ConferenceListTest.java | 48 +- .../models/ConferenceParticipantListTest.java | 55 +- .../models/CreateBlobRequestTest.java | 204 +++ .../freeclimbapi/models/ExportListTest.java | 48 +- .../models/ExportRequestTest.java | 48 +- .../freeclimbapi/models/ExportResultTest.java | 48 +- .../freeclimbapi/models/GetDigitsTest.java | 48 +- .../freeclimbapi/models/GetSpeechTest.java | 48 +- .../models/IncomingNumberListTest.java | 58 +- .../models/IncomingNumberResultTest.java | 62 - .../freeclimbapi/models/LogListTest.java | 48 +- .../models/MessageRequestTest.java | 48 +- .../models/MessageResultTest.java | 48 +- .../freeclimbapi/models/MessagesListTest.java | 48 +- .../models/ModifyBlobRequestTest.java | 172 ++ .../freeclimbapi/models/PerclScriptTest.java | 48 +- .../models/PlatformErrorTest.java | 224 +++ .../freeclimbapi/models/QueueListTest.java | 48 +- .../models/QueueMemberListTest.java | 48 +- .../models/RecordingListTest.java | 48 +- .../models/ReplaceBlobRequestTest.java | 140 ++ .../models/SMSTenDLCBrandsListResultTest.java | 48 +- .../SMSTenDLCCampaignsListResultTest.java | 48 +- ...STenDLCPartnerCampaignsListResultTest.java | 55 +- .../SMSTollFreeCampaignsListResultTest.java | 48 +- .../freeclimbapi/models/SayClassicTest.java | 222 +++ ...etersPronunciationDictionaryInnerTest.java | 172 ++ .../SayElevenLabsEngineParametersTest.java | 521 ++++++ ...LabsEngineParametersVoiceSettingsTest.java | 172 ++ .../models/SayElevenLabsEngineTest.java | 184 +++ .../models/SayElevenLabsTest.java | 235 +++ .../models/SayNeuralEngineParametersTest.java | 192 +++ .../models/SayNeuralEngineTest.java | 131 ++ .../freeclimbapi/models/SayNeuralTest.java | 235 +++ .../models/SayStandardEngineTest.java | 322 ++++ .../freeclimbapi/models/SayStandardTest.java | 235 +++ .../github/freeclimbapi/models/SayTest.java | 115 +- .../models/TranscribeUtteranceTest.java | 48 +- 102 files changed, 13676 insertions(+), 1266 deletions(-) create mode 100644 docs/BlobListResponse.md create mode 100644 docs/BlobResult.md create mode 100644 docs/CreateBlobRequest.md create mode 100644 docs/ModifyBlobRequest.md create mode 100644 docs/PlatformError.md create mode 100644 docs/ReplaceBlobRequest.md create mode 100644 docs/SayClassic.md create mode 100644 docs/SayElevenLabs.md create mode 100644 docs/SayElevenLabsEngine.md create mode 100644 docs/SayElevenLabsEngineParameters.md create mode 100644 docs/SayElevenLabsEngineParametersPronunciationDictionaryInner.md create mode 100644 docs/SayElevenLabsEngineParametersVoiceSettings.md create mode 100644 docs/SayNeural.md create mode 100644 docs/SayNeuralEngine.md create mode 100644 docs/SayNeuralEngineParameters.md create mode 100644 docs/SayNeuralTextType.md create mode 100644 docs/SayStandard.md create mode 100644 docs/SayStandardContentType.md create mode 100644 docs/SayStandardCulture.md create mode 100644 docs/SayStandardEngine.md create mode 100644 docs/SayStandardVoice.md create mode 100644 src/main/java/com/github/freeclimbapi/enums/SayNeuralTextType.java create mode 100644 src/main/java/com/github/freeclimbapi/enums/SayStandardContentType.java create mode 100644 src/main/java/com/github/freeclimbapi/enums/SayStandardCulture.java create mode 100644 src/main/java/com/github/freeclimbapi/enums/SayStandardVoice.java create mode 100644 src/main/java/com/github/freeclimbapi/models/BlobListResponse.java create mode 100644 src/main/java/com/github/freeclimbapi/models/BlobResult.java create mode 100644 src/main/java/com/github/freeclimbapi/models/CreateBlobRequest.java create mode 100644 src/main/java/com/github/freeclimbapi/models/ModifyBlobRequest.java create mode 100644 src/main/java/com/github/freeclimbapi/models/PlatformError.java create mode 100644 src/main/java/com/github/freeclimbapi/models/ReplaceBlobRequest.java create mode 100644 src/main/java/com/github/freeclimbapi/models/SayClassic.java create mode 100644 src/main/java/com/github/freeclimbapi/models/SayElevenLabs.java create mode 100644 src/main/java/com/github/freeclimbapi/models/SayElevenLabsEngine.java create mode 100644 src/main/java/com/github/freeclimbapi/models/SayElevenLabsEngineParameters.java create mode 100644 src/main/java/com/github/freeclimbapi/models/SayElevenLabsEngineParametersPronunciationDictionaryInner.java create mode 100644 src/main/java/com/github/freeclimbapi/models/SayElevenLabsEngineParametersVoiceSettings.java create mode 100644 src/main/java/com/github/freeclimbapi/models/SayNeural.java create mode 100644 src/main/java/com/github/freeclimbapi/models/SayNeuralEngine.java create mode 100644 src/main/java/com/github/freeclimbapi/models/SayNeuralEngineParameters.java create mode 100644 src/main/java/com/github/freeclimbapi/models/SayStandard.java create mode 100644 src/main/java/com/github/freeclimbapi/models/SayStandardEngine.java create mode 100644 src/test/java/com/github/freeclimbapi/enums/SayNeuralTextTypeTest.java create mode 100644 src/test/java/com/github/freeclimbapi/enums/SayStandardContentTypeTest.java create mode 100644 src/test/java/com/github/freeclimbapi/enums/SayStandardCultureTest.java create mode 100644 src/test/java/com/github/freeclimbapi/enums/SayStandardVoiceTest.java create mode 100644 src/test/java/com/github/freeclimbapi/models/BlobListResponseTest.java create mode 100644 src/test/java/com/github/freeclimbapi/models/BlobResultTest.java create mode 100644 src/test/java/com/github/freeclimbapi/models/CreateBlobRequestTest.java create mode 100644 src/test/java/com/github/freeclimbapi/models/ModifyBlobRequestTest.java create mode 100644 src/test/java/com/github/freeclimbapi/models/PlatformErrorTest.java create mode 100644 src/test/java/com/github/freeclimbapi/models/ReplaceBlobRequestTest.java create mode 100644 src/test/java/com/github/freeclimbapi/models/SayClassicTest.java create mode 100644 src/test/java/com/github/freeclimbapi/models/SayElevenLabsEngineParametersPronunciationDictionaryInnerTest.java create mode 100644 src/test/java/com/github/freeclimbapi/models/SayElevenLabsEngineParametersTest.java create mode 100644 src/test/java/com/github/freeclimbapi/models/SayElevenLabsEngineParametersVoiceSettingsTest.java create mode 100644 src/test/java/com/github/freeclimbapi/models/SayElevenLabsEngineTest.java create mode 100644 src/test/java/com/github/freeclimbapi/models/SayElevenLabsTest.java create mode 100644 src/test/java/com/github/freeclimbapi/models/SayNeuralEngineParametersTest.java create mode 100644 src/test/java/com/github/freeclimbapi/models/SayNeuralEngineTest.java create mode 100644 src/test/java/com/github/freeclimbapi/models/SayNeuralTest.java create mode 100644 src/test/java/com/github/freeclimbapi/models/SayStandardEngineTest.java create mode 100644 src/test/java/com/github/freeclimbapi/models/SayStandardTest.java diff --git a/.openapi-generator/FILES b/.openapi-generator/FILES index 67f9c9b1..af3408a1 100644 --- a/.openapi-generator/FILES +++ b/.openapi-generator/FILES @@ -19,6 +19,8 @@ docs/ApplicationResult.md docs/AvailableNumber.md docs/AvailableNumberList.md docs/BargeInReason.md +docs/BlobListResponse.md +docs/BlobResult.md docs/BuyIncomingNumberRequest.md docs/CallControlWebhook.md docs/CallDirection.md @@ -38,6 +40,7 @@ docs/ConferenceRecordingStatusWebhook.md docs/ConferenceResult.md docs/ConferenceStatus.md docs/ConferenceStatusWebhook.md +docs/CreateBlobRequest.md docs/CreateConference.md docs/CreateConferenceRequest.md docs/CreateConferenceWebhook.md @@ -84,6 +87,7 @@ docs/MessageResult.md docs/MessageStatus.md docs/MessageStatusWebhook.md docs/MessagesList.md +docs/ModifyBlobRequest.md docs/MutableResourceModel.md docs/OutDial.md docs/OutDialApiConnectWebhook.md @@ -94,6 +98,7 @@ docs/Park.md docs/Pause.md docs/PerclCommand.md docs/PerclScript.md +docs/PlatformError.md docs/Play.md docs/PlayBeep.md docs/PlayEarlyMedia.md @@ -114,6 +119,7 @@ docs/RedirectWebhook.md docs/Reject.md docs/RemoveFromConference.md docs/RemoveFromQueueNotificationWebhook.md +docs/ReplaceBlobRequest.md docs/RequestType.md docs/SMSTenDLCBrand.md docs/SMSTenDLCBrandAltBusinessIdType.md @@ -133,6 +139,21 @@ docs/SMSTollFreeCampaign.md docs/SMSTollFreeCampaignRegistrationStatus.md docs/SMSTollFreeCampaignsListResult.md docs/Say.md +docs/SayClassic.md +docs/SayElevenLabs.md +docs/SayElevenLabsEngine.md +docs/SayElevenLabsEngineParameters.md +docs/SayElevenLabsEngineParametersPronunciationDictionaryInner.md +docs/SayElevenLabsEngineParametersVoiceSettings.md +docs/SayNeural.md +docs/SayNeuralEngine.md +docs/SayNeuralEngineParameters.md +docs/SayNeuralTextType.md +docs/SayStandard.md +docs/SayStandardContentType.md +docs/SayStandardCulture.md +docs/SayStandardEngine.md +docs/SayStandardVoice.md docs/SendDigits.md docs/SetDTMFPassThrough.md docs/SetListen.md @@ -182,6 +203,8 @@ src/main/java/com/github/freeclimbapi/ApplicationResult.java src/main/java/com/github/freeclimbapi/AvailableNumber.java src/main/java/com/github/freeclimbapi/AvailableNumberList.java src/main/java/com/github/freeclimbapi/BargeInReason.java +src/main/java/com/github/freeclimbapi/BlobListResponse.java +src/main/java/com/github/freeclimbapi/BlobResult.java src/main/java/com/github/freeclimbapi/BuyIncomingNumberRequest.java src/main/java/com/github/freeclimbapi/CallControlWebhook.java src/main/java/com/github/freeclimbapi/CallDirection.java @@ -202,6 +225,7 @@ src/main/java/com/github/freeclimbapi/ConferenceResult.java src/main/java/com/github/freeclimbapi/ConferenceStatus.java src/main/java/com/github/freeclimbapi/ConferenceStatusWebhook.java src/main/java/com/github/freeclimbapi/Configuration.java +src/main/java/com/github/freeclimbapi/CreateBlobRequest.java src/main/java/com/github/freeclimbapi/CreateConference.java src/main/java/com/github/freeclimbapi/CreateConferenceRequest.java src/main/java/com/github/freeclimbapi/CreateConferenceWebhook.java @@ -250,6 +274,7 @@ src/main/java/com/github/freeclimbapi/MessageResult.java src/main/java/com/github/freeclimbapi/MessageStatus.java src/main/java/com/github/freeclimbapi/MessageStatusWebhook.java src/main/java/com/github/freeclimbapi/MessagesList.java +src/main/java/com/github/freeclimbapi/ModifyBlobRequest.java src/main/java/com/github/freeclimbapi/MutableResourceModel.java src/main/java/com/github/freeclimbapi/OutDial.java src/main/java/com/github/freeclimbapi/OutDialApiConnectWebhook.java @@ -261,6 +286,7 @@ src/main/java/com/github/freeclimbapi/Park.java src/main/java/com/github/freeclimbapi/Pause.java src/main/java/com/github/freeclimbapi/PerclCommand.java src/main/java/com/github/freeclimbapi/PerclScript.java +src/main/java/com/github/freeclimbapi/PlatformError.java src/main/java/com/github/freeclimbapi/Play.java src/main/java/com/github/freeclimbapi/PlayBeep.java src/main/java/com/github/freeclimbapi/PlayEarlyMedia.java @@ -283,6 +309,7 @@ src/main/java/com/github/freeclimbapi/RedirectWebhook.java src/main/java/com/github/freeclimbapi/Reject.java src/main/java/com/github/freeclimbapi/RemoveFromConference.java src/main/java/com/github/freeclimbapi/RemoveFromQueueNotificationWebhook.java +src/main/java/com/github/freeclimbapi/ReplaceBlobRequest.java src/main/java/com/github/freeclimbapi/RequestType.java src/main/java/com/github/freeclimbapi/SMSTenDLCBrand.java src/main/java/com/github/freeclimbapi/SMSTenDLCBrandAltBusinessIdType.java @@ -302,6 +329,21 @@ src/main/java/com/github/freeclimbapi/SMSTollFreeCampaign.java src/main/java/com/github/freeclimbapi/SMSTollFreeCampaignRegistrationStatus.java src/main/java/com/github/freeclimbapi/SMSTollFreeCampaignsListResult.java src/main/java/com/github/freeclimbapi/Say.java +src/main/java/com/github/freeclimbapi/SayClassic.java +src/main/java/com/github/freeclimbapi/SayElevenLabs.java +src/main/java/com/github/freeclimbapi/SayElevenLabsEngine.java +src/main/java/com/github/freeclimbapi/SayElevenLabsEngineParameters.java +src/main/java/com/github/freeclimbapi/SayElevenLabsEngineParametersPronunciationDictionaryInner.java +src/main/java/com/github/freeclimbapi/SayElevenLabsEngineParametersVoiceSettings.java +src/main/java/com/github/freeclimbapi/SayNeural.java +src/main/java/com/github/freeclimbapi/SayNeuralEngine.java +src/main/java/com/github/freeclimbapi/SayNeuralEngineParameters.java +src/main/java/com/github/freeclimbapi/SayNeuralTextType.java +src/main/java/com/github/freeclimbapi/SayStandard.java +src/main/java/com/github/freeclimbapi/SayStandardContentType.java +src/main/java/com/github/freeclimbapi/SayStandardCulture.java +src/main/java/com/github/freeclimbapi/SayStandardEngine.java +src/main/java/com/github/freeclimbapi/SayStandardVoice.java src/main/java/com/github/freeclimbapi/SendDigits.java src/main/java/com/github/freeclimbapi/ServerConfiguration.java src/main/java/com/github/freeclimbapi/ServerVariable.java @@ -344,6 +386,8 @@ src/test/java/com/github/freeclimbapi/ApplicationResultTest.java src/test/java/com/github/freeclimbapi/AvailableNumberListTest.java src/test/java/com/github/freeclimbapi/AvailableNumberTest.java src/test/java/com/github/freeclimbapi/BargeInReasonTest.java +src/test/java/com/github/freeclimbapi/BlobListResponseTest.java +src/test/java/com/github/freeclimbapi/BlobResultTest.java src/test/java/com/github/freeclimbapi/BuyIncomingNumberRequestTest.java src/test/java/com/github/freeclimbapi/CallControlWebhookTest.java src/test/java/com/github/freeclimbapi/CallDirectionTest.java @@ -363,6 +407,7 @@ src/test/java/com/github/freeclimbapi/ConferenceRecordingStatusWebhookTest.java src/test/java/com/github/freeclimbapi/ConferenceResultTest.java src/test/java/com/github/freeclimbapi/ConferenceStatusTest.java src/test/java/com/github/freeclimbapi/ConferenceStatusWebhookTest.java +src/test/java/com/github/freeclimbapi/CreateBlobRequestTest.java src/test/java/com/github/freeclimbapi/CreateConferenceRequestTest.java src/test/java/com/github/freeclimbapi/CreateConferenceTest.java src/test/java/com/github/freeclimbapi/CreateConferenceWebhookTest.java @@ -409,6 +454,7 @@ src/test/java/com/github/freeclimbapi/MessageResultTest.java src/test/java/com/github/freeclimbapi/MessageStatusTest.java src/test/java/com/github/freeclimbapi/MessageStatusWebhookTest.java src/test/java/com/github/freeclimbapi/MessagesListTest.java +src/test/java/com/github/freeclimbapi/ModifyBlobRequestTest.java src/test/java/com/github/freeclimbapi/MutableResourceModelTest.java src/test/java/com/github/freeclimbapi/OutDialApiConnectWebhookTest.java src/test/java/com/github/freeclimbapi/OutDialConnectWebhookTest.java @@ -419,6 +465,7 @@ src/test/java/com/github/freeclimbapi/ParkTest.java src/test/java/com/github/freeclimbapi/PauseTest.java src/test/java/com/github/freeclimbapi/PerclCommandTest.java src/test/java/com/github/freeclimbapi/PerclScriptTest.java +src/test/java/com/github/freeclimbapi/PlatformErrorTest.java src/test/java/com/github/freeclimbapi/PlayBeepTest.java src/test/java/com/github/freeclimbapi/PlayEarlyMediaTest.java src/test/java/com/github/freeclimbapi/PlayTest.java @@ -439,6 +486,7 @@ src/test/java/com/github/freeclimbapi/RedirectWebhookTest.java src/test/java/com/github/freeclimbapi/RejectTest.java src/test/java/com/github/freeclimbapi/RemoveFromConferenceTest.java src/test/java/com/github/freeclimbapi/RemoveFromQueueNotificationWebhookTest.java +src/test/java/com/github/freeclimbapi/ReplaceBlobRequestTest.java src/test/java/com/github/freeclimbapi/RequestTypeTest.java src/test/java/com/github/freeclimbapi/SMSTenDLCBrandAltBusinessIdTypeTest.java src/test/java/com/github/freeclimbapi/SMSTenDLCBrandEntityTypeTest.java @@ -457,6 +505,21 @@ src/test/java/com/github/freeclimbapi/SMSTenDLCPartnerCampaignsListResultTest.ja src/test/java/com/github/freeclimbapi/SMSTollFreeCampaignRegistrationStatusTest.java src/test/java/com/github/freeclimbapi/SMSTollFreeCampaignTest.java src/test/java/com/github/freeclimbapi/SMSTollFreeCampaignsListResultTest.java +src/test/java/com/github/freeclimbapi/SayClassicTest.java +src/test/java/com/github/freeclimbapi/SayElevenLabsEngineParametersPronunciationDictionaryInnerTest.java +src/test/java/com/github/freeclimbapi/SayElevenLabsEngineParametersTest.java +src/test/java/com/github/freeclimbapi/SayElevenLabsEngineParametersVoiceSettingsTest.java +src/test/java/com/github/freeclimbapi/SayElevenLabsEngineTest.java +src/test/java/com/github/freeclimbapi/SayElevenLabsTest.java +src/test/java/com/github/freeclimbapi/SayNeuralEngineParametersTest.java +src/test/java/com/github/freeclimbapi/SayNeuralEngineTest.java +src/test/java/com/github/freeclimbapi/SayNeuralTest.java +src/test/java/com/github/freeclimbapi/SayNeuralTextTypeTest.java +src/test/java/com/github/freeclimbapi/SayStandardContentTypeTest.java +src/test/java/com/github/freeclimbapi/SayStandardCultureTest.java +src/test/java/com/github/freeclimbapi/SayStandardEngineTest.java +src/test/java/com/github/freeclimbapi/SayStandardTest.java +src/test/java/com/github/freeclimbapi/SayStandardVoiceTest.java src/test/java/com/github/freeclimbapi/SayTest.java src/test/java/com/github/freeclimbapi/SendDigitsTest.java src/test/java/com/github/freeclimbapi/SetDTMFPassThroughTest.java diff --git a/README.md b/README.md index 0ba7d498..6699ae5d 100644 --- a/README.md +++ b/README.md @@ -147,12 +147,14 @@ Class | Method | HTTP request | Description *DefaultApi* | [**createAConference**](docs/DefaultApi.md#createAConference) | **POST** /Accounts/{accountId}/Conferences | Create a Conference *DefaultApi* | [**createAQueue**](docs/DefaultApi.md#createAQueue) | **POST** /Accounts/{accountId}/Queues | Create a Queue *DefaultApi* | [**createAnApplication**](docs/DefaultApi.md#createAnApplication) | **POST** /Accounts/{accountId}/Applications | Create an application +*DefaultApi* | [**createBlob**](docs/DefaultApi.md#createBlob) | **POST** /Accounts/{accountId}/Blobs | Create a Blob *DefaultApi* | [**createExport**](docs/DefaultApi.md#createExport) | **POST** /Accounts/{accountId}/Exports | Create an Export *DefaultApi* | [**createKnowledgeBaseCompletion**](docs/DefaultApi.md#createKnowledgeBaseCompletion) | **POST** /Accounts/{accountId}/KnowledgeBases/{knowledgeBaseId}/Completion | Query the knowledge base *DefaultApi* | [**deleteARecording**](docs/DefaultApi.md#deleteARecording) | **DELETE** /Accounts/{accountId}/Recordings/{recordingId} | Delete a Recording *DefaultApi* | [**deleteAnApplication**](docs/DefaultApi.md#deleteAnApplication) | **DELETE** /Accounts/{accountId}/Applications/{applicationId} | Delete an application *DefaultApi* | [**deleteAnExport**](docs/DefaultApi.md#deleteAnExport) | **DELETE** /Accounts/{accountId}/Exports/{exportId} | Delete an Export *DefaultApi* | [**deleteAnIncomingNumber**](docs/DefaultApi.md#deleteAnIncomingNumber) | **DELETE** /Accounts/{accountId}/IncomingPhoneNumbers/{phoneNumberId} | Delete an Incoming Number +*DefaultApi* | [**deleteBlob**](docs/DefaultApi.md#deleteBlob) | **DELETE** /Accounts/{accountId}/Blobs/{blobId} | Delete Blob *DefaultApi* | [**dequeueAMember**](docs/DefaultApi.md#dequeueAMember) | **POST** /Accounts/{accountId}/Queues/{queueId}/Members/{callId} | Dequeue a Member *DefaultApi* | [**dequeueHeadMember**](docs/DefaultApi.md#dequeueHeadMember) | **POST** /Accounts/{accountId}/Queues/{queueId}/Members/Front | Dequeue Head Member *DefaultApi* | [**downloadARecordingFile**](docs/DefaultApi.md#downloadARecordingFile) | **GET** /Accounts/{accountId}/Recordings/{recordingId}/Download | Download a Recording File @@ -169,6 +171,7 @@ Class | Method | HTTP request | Description *DefaultApi* | [**getAnExport**](docs/DefaultApi.md#getAnExport) | **GET** /Accounts/{accountId}/Exports/{exportId} | Get an Export *DefaultApi* | [**getAnIncomingNumber**](docs/DefaultApi.md#getAnIncomingNumber) | **GET** /Accounts/{accountId}/IncomingPhoneNumbers/{phoneNumberId} | Get an Incoming Number *DefaultApi* | [**getAnSmsMessage**](docs/DefaultApi.md#getAnSmsMessage) | **GET** /Accounts/{accountId}/Messages/{messageId} | Get an SMS Message +*DefaultApi* | [**getBlob**](docs/DefaultApi.md#getBlob) | **GET** /Accounts/{accountId}/Blobs/{blobId} | Get Blob *DefaultApi* | [**getHeadMember**](docs/DefaultApi.md#getHeadMember) | **GET** /Accounts/{accountId}/Queues/{queueId}/Members/Front | Get Head Member *DefaultApi* | [**getTenDLCSmsBrand**](docs/DefaultApi.md#getTenDLCSmsBrand) | **GET** /Accounts/{accountId}/Messages/10DLC/Brands/{brandId} | Get a 10DLC SMS Brand *DefaultApi* | [**getTenDLCSmsBrands**](docs/DefaultApi.md#getTenDLCSmsBrands) | **GET** /Accounts/{accountId}/Messages/10DLC/Brands | Get list of SMS 10DLC Brands @@ -182,6 +185,7 @@ Class | Method | HTTP request | Description *DefaultApi* | [**listAllAccountLogs**](docs/DefaultApi.md#listAllAccountLogs) | **GET** /Accounts/{accountId}/Logs | List All Account Logs *DefaultApi* | [**listApplications**](docs/DefaultApi.md#listApplications) | **GET** /Accounts/{accountId}/Applications | List applications *DefaultApi* | [**listAvailableNumbers**](docs/DefaultApi.md#listAvailableNumbers) | **GET** /AvailablePhoneNumbers | List available numbers +*DefaultApi* | [**listBlobs**](docs/DefaultApi.md#listBlobs) | **GET** /Accounts/{accountId}/Blobs | List Blobs belonging to an account. *DefaultApi* | [**listCallLogs**](docs/DefaultApi.md#listCallLogs) | **GET** /Accounts/{accountId}/Calls/{callId}/Logs | List Call Logs *DefaultApi* | [**listCallRecordings**](docs/DefaultApi.md#listCallRecordings) | **GET** /Accounts/{accountId}/Calls/{callId}/Recordings | List Call Recordings *DefaultApi* | [**listCalls**](docs/DefaultApi.md#listCalls) | **GET** /Accounts/{accountId}/Calls | List Calls @@ -195,7 +199,9 @@ Class | Method | HTTP request | Description *DefaultApi* | [**listSmsMessages**](docs/DefaultApi.md#listSmsMessages) | **GET** /Accounts/{accountId}/Messages | List SMS Messages *DefaultApi* | [**makeACall**](docs/DefaultApi.md#makeACall) | **POST** /Accounts/{accountId}/Calls | Make a Call *DefaultApi* | [**makeAWebrtcJwt**](docs/DefaultApi.md#makeAWebrtcJwt) | **POST** /Accounts/{accountId}/Calls/WebRTC/Token | Make a JWT for WebRTC calling +*DefaultApi* | [**modifyBlob**](docs/DefaultApi.md#modifyBlob) | **PATCH** /Accounts/{accountId}/Blobs/{blobId} | Modify Blob *DefaultApi* | [**removeAParticipant**](docs/DefaultApi.md#removeAParticipant) | **DELETE** /Accounts/{accountId}/Conferences/{conferenceId}/Participants/{callId} | Remove a Participant +*DefaultApi* | [**replaceBlob**](docs/DefaultApi.md#replaceBlob) | **PUT** /Accounts/{accountId}/Blobs/{blobId} | Replace Blob *DefaultApi* | [**sendAnSmsMessage**](docs/DefaultApi.md#sendAnSmsMessage) | **POST** /Accounts/{accountId}/Messages | Send an SMS Message *DefaultApi* | [**streamARecordingFile**](docs/DefaultApi.md#streamARecordingFile) | **GET** /Accounts/{accountId}/Recordings/{recordingId}/Stream | Stream a Recording File *DefaultApi* | [**updateAConference**](docs/DefaultApi.md#updateAConference) | **POST** /Accounts/{accountId}/Conferences/{conferenceId} | Update a Conference @@ -223,6 +229,8 @@ Class | Method | HTTP request | Description - [AvailableNumber](docs/AvailableNumber.md) - [AvailableNumberList](docs/AvailableNumberList.md) - [BargeInReason](docs/BargeInReason.md) + - [BlobListResponse](docs/BlobListResponse.md) + - [BlobResult](docs/BlobResult.md) - [BuyIncomingNumberRequest](docs/BuyIncomingNumberRequest.md) - [CallControlWebhook](docs/CallControlWebhook.md) - [CallDirection](docs/CallDirection.md) @@ -242,6 +250,7 @@ Class | Method | HTTP request | Description - [ConferenceResult](docs/ConferenceResult.md) - [ConferenceStatus](docs/ConferenceStatus.md) - [ConferenceStatusWebhook](docs/ConferenceStatusWebhook.md) + - [CreateBlobRequest](docs/CreateBlobRequest.md) - [CreateConference](docs/CreateConference.md) - [CreateConferenceRequest](docs/CreateConferenceRequest.md) - [CreateConferenceWebhook](docs/CreateConferenceWebhook.md) @@ -287,6 +296,7 @@ Class | Method | HTTP request | Description - [MessageStatus](docs/MessageStatus.md) - [MessageStatusWebhook](docs/MessageStatusWebhook.md) - [MessagesList](docs/MessagesList.md) + - [ModifyBlobRequest](docs/ModifyBlobRequest.md) - [MutableResourceModel](docs/MutableResourceModel.md) - [OutDial](docs/OutDial.md) - [OutDialApiConnectWebhook](docs/OutDialApiConnectWebhook.md) @@ -297,6 +307,7 @@ Class | Method | HTTP request | Description - [Pause](docs/Pause.md) - [PerclCommand](docs/PerclCommand.md) - [PerclScript](docs/PerclScript.md) + - [PlatformError](docs/PlatformError.md) - [Play](docs/Play.md) - [PlayBeep](docs/PlayBeep.md) - [PlayEarlyMedia](docs/PlayEarlyMedia.md) @@ -317,6 +328,7 @@ Class | Method | HTTP request | Description - [Reject](docs/Reject.md) - [RemoveFromConference](docs/RemoveFromConference.md) - [RemoveFromQueueNotificationWebhook](docs/RemoveFromQueueNotificationWebhook.md) + - [ReplaceBlobRequest](docs/ReplaceBlobRequest.md) - [RequestType](docs/RequestType.md) - [SMSTenDLCBrand](docs/SMSTenDLCBrand.md) - [SMSTenDLCBrandAltBusinessIdType](docs/SMSTenDLCBrandAltBusinessIdType.md) @@ -336,6 +348,21 @@ Class | Method | HTTP request | Description - [SMSTollFreeCampaignRegistrationStatus](docs/SMSTollFreeCampaignRegistrationStatus.md) - [SMSTollFreeCampaignsListResult](docs/SMSTollFreeCampaignsListResult.md) - [Say](docs/Say.md) + - [SayClassic](docs/SayClassic.md) + - [SayElevenLabs](docs/SayElevenLabs.md) + - [SayElevenLabsEngine](docs/SayElevenLabsEngine.md) + - [SayElevenLabsEngineParameters](docs/SayElevenLabsEngineParameters.md) + - [SayElevenLabsEngineParametersPronunciationDictionaryInner](docs/SayElevenLabsEngineParametersPronunciationDictionaryInner.md) + - [SayElevenLabsEngineParametersVoiceSettings](docs/SayElevenLabsEngineParametersVoiceSettings.md) + - [SayNeural](docs/SayNeural.md) + - [SayNeuralEngine](docs/SayNeuralEngine.md) + - [SayNeuralEngineParameters](docs/SayNeuralEngineParameters.md) + - [SayNeuralTextType](docs/SayNeuralTextType.md) + - [SayStandard](docs/SayStandard.md) + - [SayStandardContentType](docs/SayStandardContentType.md) + - [SayStandardCulture](docs/SayStandardCulture.md) + - [SayStandardEngine](docs/SayStandardEngine.md) + - [SayStandardVoice](docs/SayStandardVoice.md) - [SendDigits](docs/SendDigits.md) - [SetDTMFPassThrough](docs/SetDTMFPassThrough.md) - [SetListen](docs/SetListen.md) diff --git a/docs/AvailableNumber.md b/docs/AvailableNumber.md index 3c2f8fbd..7b8e5847 100644 --- a/docs/AvailableNumber.md +++ b/docs/AvailableNumber.md @@ -10,8 +10,6 @@ Name | Type | Description | Notes **capabilities** | [**Capabilities**](Capabilities.md) | | [optional] **campaignId** | **String** | The campaign ID generated by the campaign registry | [optional] **phoneNumber** | **String** | The phone number, in E.164 format (+ country code and phone number: +18003608245). | [optional] -**voiceEnabled** | **Boolean** | Typically set to true for all numbers. | [optional] -**smsEnabled** | **Boolean** | Indicates whether the phone number can send and receive SMS messages. | [optional] **region** | **String** | The state or province of this phone number. | [optional] **country** | **String** | The country of this phone number. | [optional] diff --git a/docs/BlobListResponse.md b/docs/BlobListResponse.md new file mode 100644 index 00000000..6ce83882 --- /dev/null +++ b/docs/BlobListResponse.md @@ -0,0 +1,20 @@ + + +# BlobListResponse + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**total** | **Integer** | Total amount of requested resource. | [optional] +**start** | **Integer** | Resource index at start of current page | [optional] +**end** | **Integer** | Resource index at end of current page | [optional] +**page** | **Integer** | Current page | [optional] +**numPages** | **Integer** | Total number of pages | [optional] +**pageSize** | **Integer** | Number of items per page | [optional] +**nextPageUri** | **String** | Uri to retrieve the next page of items | [optional] +**blobs** | [**List<BlobResult>**](BlobResult.md) | | [optional] + + + diff --git a/docs/BlobResult.md b/docs/BlobResult.md new file mode 100644 index 00000000..8f48ef0d --- /dev/null +++ b/docs/BlobResult.md @@ -0,0 +1,20 @@ + + +# BlobResult + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**blobId** | **String** | Identifier which can be used to reference this blob in future interations. | [optional] +**accountId** | **String** | | [optional] +**alias** | **String** | Custom identifier for this blob that is unique for the owning account. It will be set to the blobId by default if not provided in the creation request. | [optional] +**revision** | **Integer** | | [optional] +**dateCreated** | **OffsetDateTime** | An RFC3339 timestamp with millisecond resolution. It represents the time this blob was created. | [optional] +**dateUpdated** | **OffsetDateTime** | An RFC3339 timestamp with millisecond resolution. It represents the time this blob was last modified, which at creation will always equal dateCreated. | [optional] +**expiresAt** | **OffsetDateTime** | An RFC3339 timestamp with millisecond resolution. It represents the time at which this blob will expire and self delete. | [optional] +**blob** | **Object** | Blob content | [optional] + + + diff --git a/docs/CreateBlobRequest.md b/docs/CreateBlobRequest.md new file mode 100644 index 00000000..7e4bdf31 --- /dev/null +++ b/docs/CreateBlobRequest.md @@ -0,0 +1,15 @@ + + +# CreateBlobRequest + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**alias** | **String** | Custom identifier for this blob that is unique for the owning account. It will be set to the blobId by default if not provided. | [optional] +**expiresAt** | **String** | An RFC3339 timestamp with millisecond resolution. This timestamp defines the time at which this blob will delete itself. It must not be more than 48 hours in the future and will default to 9 hours in the future if not provided. | [optional] +**blob** | **Object** | | + + + diff --git a/docs/DefaultApi.md b/docs/DefaultApi.md index 6cf8f1f4..260684f4 100644 --- a/docs/DefaultApi.md +++ b/docs/DefaultApi.md @@ -8,12 +8,14 @@ Method | HTTP request | Description [**createAConference**](DefaultApi.md#createAConference) | **POST** /Accounts/{accountId}/Conferences | Create a Conference [**createAQueue**](DefaultApi.md#createAQueue) | **POST** /Accounts/{accountId}/Queues | Create a Queue [**createAnApplication**](DefaultApi.md#createAnApplication) | **POST** /Accounts/{accountId}/Applications | Create an application +[**createBlob**](DefaultApi.md#createBlob) | **POST** /Accounts/{accountId}/Blobs | Create a Blob [**createExport**](DefaultApi.md#createExport) | **POST** /Accounts/{accountId}/Exports | Create an Export [**createKnowledgeBaseCompletion**](DefaultApi.md#createKnowledgeBaseCompletion) | **POST** /Accounts/{accountId}/KnowledgeBases/{knowledgeBaseId}/Completion | Query the knowledge base [**deleteARecording**](DefaultApi.md#deleteARecording) | **DELETE** /Accounts/{accountId}/Recordings/{recordingId} | Delete a Recording [**deleteAnApplication**](DefaultApi.md#deleteAnApplication) | **DELETE** /Accounts/{accountId}/Applications/{applicationId} | Delete an application [**deleteAnExport**](DefaultApi.md#deleteAnExport) | **DELETE** /Accounts/{accountId}/Exports/{exportId} | Delete an Export [**deleteAnIncomingNumber**](DefaultApi.md#deleteAnIncomingNumber) | **DELETE** /Accounts/{accountId}/IncomingPhoneNumbers/{phoneNumberId} | Delete an Incoming Number +[**deleteBlob**](DefaultApi.md#deleteBlob) | **DELETE** /Accounts/{accountId}/Blobs/{blobId} | Delete Blob [**dequeueAMember**](DefaultApi.md#dequeueAMember) | **POST** /Accounts/{accountId}/Queues/{queueId}/Members/{callId} | Dequeue a Member [**dequeueHeadMember**](DefaultApi.md#dequeueHeadMember) | **POST** /Accounts/{accountId}/Queues/{queueId}/Members/Front | Dequeue Head Member [**downloadARecordingFile**](DefaultApi.md#downloadARecordingFile) | **GET** /Accounts/{accountId}/Recordings/{recordingId}/Download | Download a Recording File @@ -30,6 +32,7 @@ Method | HTTP request | Description [**getAnExport**](DefaultApi.md#getAnExport) | **GET** /Accounts/{accountId}/Exports/{exportId} | Get an Export [**getAnIncomingNumber**](DefaultApi.md#getAnIncomingNumber) | **GET** /Accounts/{accountId}/IncomingPhoneNumbers/{phoneNumberId} | Get an Incoming Number [**getAnSmsMessage**](DefaultApi.md#getAnSmsMessage) | **GET** /Accounts/{accountId}/Messages/{messageId} | Get an SMS Message +[**getBlob**](DefaultApi.md#getBlob) | **GET** /Accounts/{accountId}/Blobs/{blobId} | Get Blob [**getHeadMember**](DefaultApi.md#getHeadMember) | **GET** /Accounts/{accountId}/Queues/{queueId}/Members/Front | Get Head Member [**getTenDLCSmsBrand**](DefaultApi.md#getTenDLCSmsBrand) | **GET** /Accounts/{accountId}/Messages/10DLC/Brands/{brandId} | Get a 10DLC SMS Brand [**getTenDLCSmsBrands**](DefaultApi.md#getTenDLCSmsBrands) | **GET** /Accounts/{accountId}/Messages/10DLC/Brands | Get list of SMS 10DLC Brands @@ -43,6 +46,7 @@ Method | HTTP request | Description [**listAllAccountLogs**](DefaultApi.md#listAllAccountLogs) | **GET** /Accounts/{accountId}/Logs | List All Account Logs [**listApplications**](DefaultApi.md#listApplications) | **GET** /Accounts/{accountId}/Applications | List applications [**listAvailableNumbers**](DefaultApi.md#listAvailableNumbers) | **GET** /AvailablePhoneNumbers | List available numbers +[**listBlobs**](DefaultApi.md#listBlobs) | **GET** /Accounts/{accountId}/Blobs | List Blobs belonging to an account. [**listCallLogs**](DefaultApi.md#listCallLogs) | **GET** /Accounts/{accountId}/Calls/{callId}/Logs | List Call Logs [**listCallRecordings**](DefaultApi.md#listCallRecordings) | **GET** /Accounts/{accountId}/Calls/{callId}/Recordings | List Call Recordings [**listCalls**](DefaultApi.md#listCalls) | **GET** /Accounts/{accountId}/Calls | List Calls @@ -56,7 +60,9 @@ Method | HTTP request | Description [**listSmsMessages**](DefaultApi.md#listSmsMessages) | **GET** /Accounts/{accountId}/Messages | List SMS Messages [**makeACall**](DefaultApi.md#makeACall) | **POST** /Accounts/{accountId}/Calls | Make a Call [**makeAWebrtcJwt**](DefaultApi.md#makeAWebrtcJwt) | **POST** /Accounts/{accountId}/Calls/WebRTC/Token | Make a JWT for WebRTC calling +[**modifyBlob**](DefaultApi.md#modifyBlob) | **PATCH** /Accounts/{accountId}/Blobs/{blobId} | Modify Blob [**removeAParticipant**](DefaultApi.md#removeAParticipant) | **DELETE** /Accounts/{accountId}/Conferences/{conferenceId}/Participants/{callId} | Remove a Participant +[**replaceBlob**](DefaultApi.md#replaceBlob) | **PUT** /Accounts/{accountId}/Blobs/{blobId} | Replace Blob [**sendAnSmsMessage**](DefaultApi.md#sendAnSmsMessage) | **POST** /Accounts/{accountId}/Messages | Send an SMS Message [**streamARecordingFile**](DefaultApi.md#streamARecordingFile) | **GET** /Accounts/{accountId}/Recordings/{recordingId}/Stream | Stream a Recording File [**updateAConference**](DefaultApi.md#updateAConference) | **POST** /Accounts/{accountId}/Conferences/{conferenceId} | Update a Conference @@ -336,6 +342,80 @@ Name | Type | Description | Notes |-------------|-------------|------------------| **201** | Application successfuly created | - | + +# **createBlob** +> BlobResult createBlob(createBlobRequest) + +Create a Blob + +Create a new Blob belonging to the requesting account. + +### Example +```java +// Import classes: +import com.github.freeclimbapi.ApiClient; +import com.github.freeclimbapi.ApiException; +import com.github.freeclimbapi.Configuration; +import com.github.freeclimbapi.auth.*; +import com.github.freeclimbapi.models.*; +import com.github.freeclimbapi.DefaultApi; + +public class Example { + public static void main(String[] args) { + + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("https://www.freeclimb.com/apiserver"); + defaultClient.setAccountId("YOUR_ACCOUNT_ID"); + defaultClient.setApiKey("YOUR_API_KEY"); + + + DefaultApi apiInstance = new DefaultApi(defaultClient); + + CreateBlobRequest createBlobRequest = new CreateBlobRequest(alias={ Custom identifier for this blob that is unique for the owning account. It will be set to the blobId by default if not provided. }, expiresAt={ An RFC3339 timestamp with millisecond resolution. This timestamp defines the time at which this blob will delete itself. It must not be more than 48 hours in the future and will default to 9 hours in the future if not provided. }, blob={ }); // CreateBlobRequest | An object defining a new blob. A request body must be provided but the blob may be empty. + try { + BlobResult result = apiInstance.createBlob(createBlobRequest); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling DefaultApi#createBlob"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **createBlobRequest** | [**CreateBlobRequest**](CreateBlobRequest.md)| An object defining a new blob. A request body must be provided but the blob may be empty. | + + +### Return type + +[**BlobResult**](BlobResult.md) + +### Authorization + +[fc](../README.md#fc) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**201** | Successful creation of a new blob. | - | +**400** | Generic platform bad request. | - | +**409** | A blob with the provided alias already exists oln the requesting account and so this new blob is rejected as there cannot be duplicate alises. | - | +**413** | The blob exceeded one of the size limits. Either it itself is too large or it would push the total sum of all blobs over the account's limit. | - | +**422** | Generic platform unprocessible entity response. | - | +**500** | Generic platform internal error. | - | + # **createExport** > ExportResult createExport(exportRequest) @@ -741,6 +821,83 @@ null (empty response body) |-------------|-------------|------------------| **204** | Successful Incoming Number deletion. | - | + +# **deleteBlob** +> BlobResult deleteBlob(blobId, key) + +Delete Blob + +Deletes a blob or specific keys from a blob. If no keys are specified in the request body, the entire blob is deleted (returns 204). If specific keys are provided, only those keys are removed and the remaining blob is returned (returns 200). + +### Example +```java +// Import classes: +import com.github.freeclimbapi.ApiClient; +import com.github.freeclimbapi.ApiException; +import com.github.freeclimbapi.Configuration; +import com.github.freeclimbapi.auth.*; +import com.github.freeclimbapi.models.*; +import com.github.freeclimbapi.DefaultApi; + +public class Example { + public static void main(String[] args) { + + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("https://www.freeclimb.com/apiserver"); + defaultClient.setAccountId("YOUR_ACCOUNT_ID"); + defaultClient.setApiKey("YOUR_API_KEY"); + + + DefaultApi apiInstance = new DefaultApi(defaultClient); + + String blobId = "blobId_example"; // String | String that uniquely identifies this Blob resource. + + List key = new List(); // List | key within blob to remove + try { + BlobResult result = apiInstance.deleteBlob(blobId, key); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling DefaultApi#deleteBlob"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **blobId** | **String**| String that uniquely identifies this Blob resource. | + **key** | [**List<String>**](String.md)| key within blob to remove | [optional] + + +### Return type + +[**BlobResult**](BlobResult.md) + +### Authorization + +[fc](../README.md#fc) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | Blob keys deleted successfully, remaining blob returned. | - | +**204** | Successful operation | - | +**404** | Generic platform not found error. | - | +**422** | Generic platform unprocessible entity response. | - | +**500** | Generic platform internal error. | - | +**504** | gateway timeout error | - | + # **dequeueAMember** > QueueMember dequeueAMember(queueId, callId) @@ -941,12 +1098,12 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: Not defined - - **Accept**: audio/x-wav + - **Accept**: audio/wav ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | Download a Recording file represented with audio/x-wav mime-type | - | +**200** | Download a Recording file represented with audio/wav mime-type | - | # **downloadAnExport** @@ -1832,6 +1989,79 @@ Name | Type | Description | Notes |-------------|-------------|------------------| **200** | The specific SMS message that’s been processed by FreeClimb | - | + +# **getBlob** +> BlobResult getBlob(blobId) + +Get Blob + +Retrieves a specified blob + +### Example +```java +// Import classes: +import com.github.freeclimbapi.ApiClient; +import com.github.freeclimbapi.ApiException; +import com.github.freeclimbapi.Configuration; +import com.github.freeclimbapi.auth.*; +import com.github.freeclimbapi.models.*; +import com.github.freeclimbapi.DefaultApi; + +public class Example { + public static void main(String[] args) { + + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("https://www.freeclimb.com/apiserver"); + defaultClient.setAccountId("YOUR_ACCOUNT_ID"); + defaultClient.setApiKey("YOUR_API_KEY"); + + + DefaultApi apiInstance = new DefaultApi(defaultClient); + + String blobId = "blobId_example"; // String | String that uniquely identifies this Blob resource. + + try { + BlobResult result = apiInstance.getBlob(blobId); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling DefaultApi#getBlob"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **blobId** | **String**| String that uniquely identifies this Blob resource. | + + +### Return type + +[**BlobResult**](BlobResult.md) + +### Authorization + +[fc](../README.md#fc) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | Retrieve a Blob. | - | +**404** | Generic platform not found error. | - | +**500** | Generic platform internal error. | - | +**504** | gateway timeout error | - | + # **getHeadMember** > QueueMember getHeadMember(queueId) @@ -2728,6 +2958,82 @@ Name | Type | Description | Notes |-------------|-------------|------------------| **200** | Available Numbers List | - | + +# **listBlobs** +> BlobListResponse listBlobs(alias, cursor) + +List Blobs belonging to an account. + +List Blobs belonging to an account. Results are returned in paginated lists mirroring other listing features in the API. + +### Example +```java +// Import classes: +import com.github.freeclimbapi.ApiClient; +import com.github.freeclimbapi.ApiException; +import com.github.freeclimbapi.Configuration; +import com.github.freeclimbapi.auth.*; +import com.github.freeclimbapi.models.*; +import com.github.freeclimbapi.DefaultApi; + +public class Example { + public static void main(String[] args) { + + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("https://www.freeclimb.com/apiserver"); + defaultClient.setAccountId("YOUR_ACCOUNT_ID"); + defaultClient.setApiKey("YOUR_API_KEY"); + + + DefaultApi apiInstance = new DefaultApi(defaultClient); + + String alias = "alias_example"; // String | Filter blobs by alias + + String cursor = "cursor_example"; // String | Used to reference pages of a list of blobs + + try { + BlobListResponse result = apiInstance.listBlobs(alias, cursor); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling DefaultApi#listBlobs"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **alias** | **String**| Filter blobs by alias | [optional] + **cursor** | **String**| Used to reference pages of a list of blobs | [optional] + + +### Return type + +[**BlobListResponse**](BlobListResponse.md) + +### Authorization + +[fc](../README.md#fc) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | Single page of blob list results. | - | +**400** | Generic platform bad request. | - | +**500** | Generic platform internal error. | - | +**504** | gateway timeout error | - | + # **listCallLogs** > LogList listCallLogs(callId) @@ -3183,7 +3489,7 @@ Name | Type | Description | Notes # **listIncomingNumbers** -> IncomingNumberList listIncomingNumbers(phoneNumber, alias, region, country, applicationId, hasApplication, voiceEnabled, smsEnabled, hasCampaign, capabilitiesVoice, capabilitiesSms, capabilitiesTollFree, capabilitiesTenDLC, capabilitiesShortCode, tfnCampaignId, offnet) +> IncomingNumberList listIncomingNumbers(phoneNumber, alias, region, country, applicationId, hasApplication, hasCampaign, capabilitiesVoice, capabilitiesSms, capabilitiesTollFree, capabilitiesTenDLC, capabilitiesShortCode, tfnCampaignId, offnet) List Incoming Numbers @@ -3220,10 +3526,6 @@ public class Example { Boolean hasApplication = false; // Boolean | Indication of whether the phone number has an application linked to it. - Boolean voiceEnabled = true; // Boolean | Indicates whether the phone number can handle Calls. Typically set to true for all numbers. - - Boolean smsEnabled = true; // Boolean | Indication of whether the phone number can handle sending and receiving SMS messages. Typically set to true for all numbers. - Boolean hasCampaign = true; // Boolean | Indication of whether the phone number has a campaign associated with it Boolean capabilitiesVoice = true; // Boolean | @@ -3241,7 +3543,7 @@ public class Example { Boolean offnet = true; // Boolean | Indication of whether the phone number was registered as an offnet number. This field will be rendered only for requests to the IncomingPhone number resource. try { - IncomingNumberList result = apiInstance.listIncomingNumbers(phoneNumber, alias, region, country, applicationId, hasApplication, voiceEnabled, smsEnabled, hasCampaign, capabilitiesVoice, capabilitiesSms, capabilitiesTollFree, capabilitiesTenDLC, capabilitiesShortCode, tfnCampaignId, offnet); + IncomingNumberList result = apiInstance.listIncomingNumbers(phoneNumber, alias, region, country, applicationId, hasApplication, hasCampaign, capabilitiesVoice, capabilitiesSms, capabilitiesTollFree, capabilitiesTenDLC, capabilitiesShortCode, tfnCampaignId, offnet); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling DefaultApi#listIncomingNumbers"); @@ -3264,8 +3566,6 @@ Name | Type | Description | Notes **country** | **String**| Country of this phone number. | [optional] **applicationId** | **String**| ID of the Application that FreeClimb should contact if a Call or SMS arrives for this phone number or a Call from this number is placed. An incoming phone number is not useful until associated with an applicationId. | [optional] **hasApplication** | **Boolean**| Indication of whether the phone number has an application linked to it. | [optional] [default to false] - **voiceEnabled** | **Boolean**| Indicates whether the phone number can handle Calls. Typically set to true for all numbers. | [optional] [default to true] - **smsEnabled** | **Boolean**| Indication of whether the phone number can handle sending and receiving SMS messages. Typically set to true for all numbers. | [optional] [default to true] **hasCampaign** | **Boolean**| Indication of whether the phone number has a campaign associated with it | [optional] **capabilitiesVoice** | **Boolean**| | [optional] **capabilitiesSms** | **Boolean**| | [optional] @@ -3735,6 +4035,82 @@ Name | Type | Description | Notes |-------------|-------------|------------------| **200** | The created JWT | - | + +# **modifyBlob** +> BlobResult modifyBlob(blobId, modifyBlobRequest) + +Modify Blob + +Modifys a pre existing blob by either adding new fields, or modifying existing fields + +### Example +```java +// Import classes: +import com.github.freeclimbapi.ApiClient; +import com.github.freeclimbapi.ApiException; +import com.github.freeclimbapi.Configuration; +import com.github.freeclimbapi.auth.*; +import com.github.freeclimbapi.models.*; +import com.github.freeclimbapi.DefaultApi; + +public class Example { + public static void main(String[] args) { + + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("https://www.freeclimb.com/apiserver"); + defaultClient.setAccountId("YOUR_ACCOUNT_ID"); + defaultClient.setApiKey("YOUR_API_KEY"); + + + DefaultApi apiInstance = new DefaultApi(defaultClient); + + String blobId = "blobId_example"; // String | String that uniquely identifies this Blob resource. + + ModifyBlobRequest modifyBlobRequest = new ModifyBlobRequest(blob={ }, alias={ Custom identifier for this blob that is unique for the owning account. It will be set to the blobId by default if not provided. }); // ModifyBlobRequest | Request body to specify keys to modify. Or new keys to add onto the already existing blob + try { + BlobResult result = apiInstance.modifyBlob(blobId, modifyBlobRequest); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling DefaultApi#modifyBlob"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **blobId** | **String**| String that uniquely identifies this Blob resource. | + **modifyBlobRequest** | [**ModifyBlobRequest**](ModifyBlobRequest.md)| Request body to specify keys to modify. Or new keys to add onto the already existing blob | + + +### Return type + +[**BlobResult**](BlobResult.md) + +### Authorization + +[fc](../README.md#fc) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | Blob keys successfully modified, updated blob returned. | - | +**404** | Generic platform not found error. | - | +**409** | Generic platform status conflict error. | - | +**413** | Generic platform status request entity too large. | - | +**500** | Generic platform internal error. | - | + # **removeAParticipant** > removeAParticipant(conferenceId, callId) @@ -3805,6 +4181,82 @@ null (empty response body) |-------------|-------------|------------------| **204** | Successfully deleted conference participant | - | + +# **replaceBlob** +> BlobResult replaceBlob(blobId, replaceBlobRequest) + +Replace Blob + +Replaces the blob content with the provided values. + +### Example +```java +// Import classes: +import com.github.freeclimbapi.ApiClient; +import com.github.freeclimbapi.ApiException; +import com.github.freeclimbapi.Configuration; +import com.github.freeclimbapi.auth.*; +import com.github.freeclimbapi.models.*; +import com.github.freeclimbapi.DefaultApi; + +public class Example { + public static void main(String[] args) { + + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("https://www.freeclimb.com/apiserver"); + defaultClient.setAccountId("YOUR_ACCOUNT_ID"); + defaultClient.setApiKey("YOUR_API_KEY"); + + + DefaultApi apiInstance = new DefaultApi(defaultClient); + + String blobId = "blobId_example"; // String | String that uniquely identifies this Blob resource. + + ReplaceBlobRequest replaceBlobRequest = new ReplaceBlobRequest(blob={ }); // ReplaceBlobRequest | JSON object containing blob key the contents of which will be used to override the enitre blob contents. + try { + BlobResult result = apiInstance.replaceBlob(blobId, replaceBlobRequest); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling DefaultApi#replaceBlob"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **blobId** | **String**| String that uniquely identifies this Blob resource. | + **replaceBlobRequest** | [**ReplaceBlobRequest**](ReplaceBlobRequest.md)| JSON object containing blob key the contents of which will be used to override the enitre blob contents. | + + +### Return type + +[**BlobResult**](BlobResult.md) + +### Authorization + +[fc](../README.md#fc) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | Replaces all keys in blob with those provided. | - | +**404** | Generic platform not found error. | - | +**409** | Generic platform status conflict error. | - | +**413** | Generic platform status request entity too large. | - | +**500** | Generic platform internal error. | - | + # **sendAnSmsMessage** > MessageResult sendAnSmsMessage(messageRequest) @@ -3933,12 +4385,12 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: Not defined - - **Accept**: audio/x-wav + - **Accept**: audio/wav ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | Streaming a Recording represented with audio/x-wav mime-type | - | +**200** | Streaming a Recording represented with audio/wav mime-type | - | # **updateAConference** diff --git a/docs/IncomingNumberResult.md b/docs/IncomingNumberResult.md index 7c6fd7ba..842492ce 100644 --- a/docs/IncomingNumberResult.md +++ b/docs/IncomingNumberResult.md @@ -20,8 +20,6 @@ Name | Type | Description | Notes **alias** | **String** | Description for this phone number. Typically the conventionally-formatted version of the phone number. | [optional] **region** | **String** | State or province of this phone number. | [optional] **country** | **String** | Country of this phone number. | [optional] -**voiceEnabled** | **Boolean** | Indicates whether the phone number can handle Calls. Typically set to true for all numbers. | [optional] -**smsEnabled** | **Boolean** | Indication of whether the phone number can handle sending and receiving SMS messages. Typically set to true for all numbers. | [optional] **offnet** | **Boolean** | The offnet field is a boolean representing whether the number is offnet registered or not. This field will be rendered only for requests to the IncomingPhone number resource. | [optional] **tfn** | [**TFN**](TFN.md) | | [optional] diff --git a/docs/ModifyBlobRequest.md b/docs/ModifyBlobRequest.md new file mode 100644 index 00000000..e84b3ccf --- /dev/null +++ b/docs/ModifyBlobRequest.md @@ -0,0 +1,14 @@ + + +# ModifyBlobRequest + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**blob** | **Object** | | +**alias** | **String** | Custom identifier for this blob that is unique for the owning account. It will be set to the blobId by default if not provided. | [optional] + + + diff --git a/docs/PlatformError.md b/docs/PlatformError.md new file mode 100644 index 00000000..f1a60576 --- /dev/null +++ b/docs/PlatformError.md @@ -0,0 +1,17 @@ + + +# PlatformError + +Standard error structure returned by platform. + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**code** | **Integer** | | [optional] +**call** | **String** | | [optional] +**url** | **String** | | [optional] +**details** | **Object** | | [optional] + + + diff --git a/docs/ReplaceBlobRequest.md b/docs/ReplaceBlobRequest.md new file mode 100644 index 00000000..c4082c05 --- /dev/null +++ b/docs/ReplaceBlobRequest.md @@ -0,0 +1,13 @@ + + +# ReplaceBlobRequest + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**blob** | **Object** | | + + + diff --git a/docs/Say.md b/docs/Say.md index 6a2cd398..634a5be9 100644 --- a/docs/Say.md +++ b/docs/Say.md @@ -9,9 +9,10 @@ The `Say` command provides Text-To-Speech (TTS) support. It converts text to spe Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **text** | **String** | The message to be played to the caller using TTS. The size of the string is limited to 4 KB (or 4,096 bytes). An empty string will cause the command to be skipped. | -**language** | **String** | Language and (by implication) the locale to use. This implies the accent and pronunciations to be usde for the TTS. The complete list of valid values for the language attribute is shown below. | [optional] **loop** | **Integer** | Number of times the text is said. Specifying '0' causes the `Say` action to loop until the Call is hung up. | [optional] **privacyMode** | **Boolean** | Parameter `privacyMode` will not log the `text` as required by PCI compliance. | [optional] +**engine** | [**SayStandardEngine**](SayStandardEngine.md) | | +**language** | **String** | Language and (by implication) the locale to use. This implies the accent and pronunciations to be usde for the TTS. The complete list of valid values for the language attribute is shown below. | [optional] diff --git a/docs/SayClassic.md b/docs/SayClassic.md new file mode 100644 index 00000000..8f542573 --- /dev/null +++ b/docs/SayClassic.md @@ -0,0 +1,17 @@ + + +# SayClassic + +The `Say` command provides Text-To-Speech (TTS) support. It converts text to speech and then renders it in a female voice back to the caller. `Say` is useful in cases where it's difficult to pre-record a prompt for any reason. `Say` does not allow barge-in unless nested within a `GetSpeech` command. The file will always be played to completion unless nested. + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**text** | **String** | The message to be played to the caller using TTS. The size of the string is limited to 4 KB (or 4,096 bytes). An empty string will cause the command to be skipped. | +**language** | **String** | Language and (by implication) the locale to use. This implies the accent and pronunciations to be usde for the TTS. The complete list of valid values for the language attribute is shown below. | [optional] +**loop** | **Integer** | Number of times the text is said. Specifying '0' causes the `Say` action to loop until the Call is hung up. | [optional] +**privacyMode** | **Boolean** | Parameter `privacyMode` will not log the `text` as required by PCI compliance. | [optional] + + + diff --git a/docs/SayElevenLabs.md b/docs/SayElevenLabs.md new file mode 100644 index 00000000..59596ab0 --- /dev/null +++ b/docs/SayElevenLabs.md @@ -0,0 +1,17 @@ + + +# SayElevenLabs + +The `SayElevenLabs` command provides Text-To-Speech (TTS) support using the ElevenLabs TTS engine. It converts text to speech and then renders it in a female voice back to the caller. `SayElevenLabs` is useful in cases where it's difficult to pre-record a prompt for any reason. `SayElevenLabs` does not allow barge-in unless nested within a `GetSpeech` command. The file will always be played to completion unless nested. + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**text** | **String** | The message to be played to the caller using TTS. The size of the string is limited to 4 KB (or 4,096 bytes). An empty string will cause the command to be skipped. | +**loop** | **Integer** | Number of times the text is said. Specifying '0' causes the `SayElevenLabs` action to loop until the Call is hung up. | [optional] +**privacyMode** | **Boolean** | Parameter `privacyMode` will not log the `text` as required by PCI compliance. | [optional] +**engine** | [**SayElevenLabsEngine**](SayElevenLabsEngine.md) | | + + + diff --git a/docs/SayElevenLabsEngine.md b/docs/SayElevenLabsEngine.md new file mode 100644 index 00000000..34e243c6 --- /dev/null +++ b/docs/SayElevenLabsEngine.md @@ -0,0 +1,15 @@ + + +# SayElevenLabsEngine + +The engine to use for the TTS. The complete list of valid values for the engine attribute is shown below. + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**name** | **String** | The name of the TTS engine to use. Set to `elevenlabs.tts` to use the elevenlabs.tts TTS engine. | [optional] +**parameters** | [**SayElevenLabsEngineParameters**](SayElevenLabsEngineParameters.md) | | [optional] + + + diff --git a/docs/SayElevenLabsEngineParameters.md b/docs/SayElevenLabsEngineParameters.md new file mode 100644 index 00000000..f630bc67 --- /dev/null +++ b/docs/SayElevenLabsEngineParameters.md @@ -0,0 +1,24 @@ + + +# SayElevenLabsEngineParameters + +The parameters to use for the TTS. The complete list of valid values for the parameters attribute is shown below. + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**modelId** | **String** | The ID of the ElevenLabs model to use for the TTS. The complete list of valid values for the model_id attribute is shown below. | [optional] +**voiceId** | **String** | The ID of the ElevenLabs voice to use for the TTS. The complete list of valid values for the voice_id attribute is shown below. | [optional] +**languageCode** | **String** | The language code to use for the TTS. The complete list of valid values for the language_code attribute is shown below. | [optional] +**voiceSettings** | [**SayElevenLabsEngineParametersVoiceSettings**](SayElevenLabsEngineParametersVoiceSettings.md) | | [optional] +**pronunciationDictionary** | [**List<SayElevenLabsEngineParametersPronunciationDictionaryInner>**](SayElevenLabsEngineParametersPronunciationDictionaryInner.md) | | [optional] +**seed** | **Integer** | | [optional] +**previousText** | **String** | | [optional] +**nextText** | **String** | | [optional] +**previousRequestIds** | **List<String>** | | [optional] +**nextRequestIds** | **List<String>** | | [optional] +**applyLanguageTextNormalization** | **Boolean** | | [optional] + + + diff --git a/docs/SayElevenLabsEngineParametersPronunciationDictionaryInner.md b/docs/SayElevenLabsEngineParametersPronunciationDictionaryInner.md new file mode 100644 index 00000000..99ad2ba4 --- /dev/null +++ b/docs/SayElevenLabsEngineParametersPronunciationDictionaryInner.md @@ -0,0 +1,14 @@ + + +# SayElevenLabsEngineParametersPronunciationDictionaryInner + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**pronunciationDictionaryId** | **String** | | [optional] +**versionId** | **String** | | [optional] + + + diff --git a/docs/SayElevenLabsEngineParametersVoiceSettings.md b/docs/SayElevenLabsEngineParametersVoiceSettings.md new file mode 100644 index 00000000..fa9e15d0 --- /dev/null +++ b/docs/SayElevenLabsEngineParametersVoiceSettings.md @@ -0,0 +1,18 @@ + + +# SayElevenLabsEngineParametersVoiceSettings + +The voice settings to use for the TTS. The complete list of valid values for the voice_settings attribute is shown below. + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**stability** | **BigDecimal** | | [optional] +**useSpeakerBoost** | **Boolean** | | [optional] +**similarityBoost** | **BigDecimal** | | [optional] +**style** | **BigDecimal** | | [optional] +**speed** | **BigDecimal** | | [optional] + + + diff --git a/docs/SayNeural.md b/docs/SayNeural.md new file mode 100644 index 00000000..9f490ac5 --- /dev/null +++ b/docs/SayNeural.md @@ -0,0 +1,17 @@ + + +# SayNeural + +The `SayNeural` command provides Text-To-Speech (TTS) support using the freeclimb.neural TTS engine. It converts text to speech and then renders it in a female voice back to the caller. `SayNeural` is useful in cases where it's difficult to pre-record a prompt for any reason. `SayNeural` does not allow barge-in unless nested within a `GetSpeech` command. The file will always be played to completion unless nested. + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**text** | **String** | The message to be played to the caller using TTS. The size of the string is limited to 4 KB (or 4,096 bytes). An empty string will cause the command to be skipped. | +**loop** | **Integer** | Number of times the text is said. Specifying '0' causes the `SayNeural` action to loop until the Call is hung up. | [optional] +**privacyMode** | **Boolean** | Parameter `privacyMode` will not log the `text` as required by PCI compliance. | [optional] +**engine** | [**SayNeuralEngine**](SayNeuralEngine.md) | | + + + diff --git a/docs/SayNeuralEngine.md b/docs/SayNeuralEngine.md new file mode 100644 index 00000000..abeed8ba --- /dev/null +++ b/docs/SayNeuralEngine.md @@ -0,0 +1,15 @@ + + +# SayNeuralEngine + +The engine to use for the TTS. The complete list of valid values for the engine attribute is shown below. + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**name** | **String** | The name of the TTS engine to use. Set to `freeclimb.neural` to use the freeclimb.neural TTS engine. | [optional] +**parameters** | [**SayNeuralEngineParameters**](SayNeuralEngineParameters.md) | | [optional] + + + diff --git a/docs/SayNeuralEngineParameters.md b/docs/SayNeuralEngineParameters.md new file mode 100644 index 00000000..34936ef8 --- /dev/null +++ b/docs/SayNeuralEngineParameters.md @@ -0,0 +1,16 @@ + + +# SayNeuralEngineParameters + +The parameters to use for the TTS. The complete list of valid values for the parameters attribute is shown below. + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**voice** | **String** | The voice to use for the TTS. The complete list of valid values for the voice attribute is shown below. | [optional] +**textType** | **SayNeuralTextType** | | [optional] +**language** | **String** | The language to use for the TTS. The complete list of valid values for the language attribute is shown below. | [optional] + + + diff --git a/docs/SayNeuralTextType.md b/docs/SayNeuralTextType.md new file mode 100644 index 00000000..f5884f12 --- /dev/null +++ b/docs/SayNeuralTextType.md @@ -0,0 +1,13 @@ + + +# SayNeuralTextType + +## Enum + + +* `TEXT` (value: `"text"`) + +* `SSML` (value: `"ssml"`) + + + diff --git a/docs/SayStandard.md b/docs/SayStandard.md new file mode 100644 index 00000000..e6345a2a --- /dev/null +++ b/docs/SayStandard.md @@ -0,0 +1,17 @@ + + +# SayStandard + +The `Say` command provides Text-To-Speech (TTS) support using the freeclimb.standard TTS engine. It converts text to speech and then renders it in a female voice back to the caller. `SayStandard` is useful in cases where it's difficult to pre-record a prompt for any reason. `SayStandard` does not allow barge-in unless nested within a `GetSpeech` command. The file will always be played to completion unless nested. + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**text** | **String** | The message to be played to the caller using TTS. The size of the string is limited to 4 KB (or 4,096 bytes). An empty string will cause the command to be skipped. | +**loop** | **Integer** | Number of times the text is said. Specifying '0' causes the `Say` action to loop until the Call is hung up. | [optional] +**privacyMode** | **Boolean** | Parameter `privacyMode` will not log the `text` as required by PCI compliance. | [optional] +**engine** | [**SayStandardEngine**](SayStandardEngine.md) | | + + + diff --git a/docs/SayStandardContentType.md b/docs/SayStandardContentType.md new file mode 100644 index 00000000..7778dff4 --- /dev/null +++ b/docs/SayStandardContentType.md @@ -0,0 +1,13 @@ + + +# SayStandardContentType + +## Enum + + +* `TEXT_PLAIN` (value: `"text/plain"`) + +* `APPLICATION_SSML_XML` (value: `"application/ssml+xml"`) + + + diff --git a/docs/SayStandardCulture.md b/docs/SayStandardCulture.md new file mode 100644 index 00000000..506d96e7 --- /dev/null +++ b/docs/SayStandardCulture.md @@ -0,0 +1,61 @@ + + +# SayStandardCulture + +## Enum + + +* `CA_ES` (value: `"ca-ES"`) + +* `DA_DK` (value: `"da-DK"`) + +* `DE_DE` (value: `"de-DE"`) + +* `EN_AU` (value: `"en-AU"`) + +* `EN_CA` (value: `"en-CA"`) + +* `EN_GB` (value: `"en-GB"`) + +* `EN_IN` (value: `"en-IN"`) + +* `EN_US` (value: `"en-US"`) + +* `ES_ES` (value: `"es-ES"`) + +* `ES_MX` (value: `"es-MX"`) + +* `FI_FI` (value: `"fi-FI"`) + +* `FR_CA` (value: `"fr-CA"`) + +* `FR_FR` (value: `"fr-FR"`) + +* `IT_IT` (value: `"it-IT"`) + +* `JA_JP` (value: `"ja-JP"`) + +* `KO_KR` (value: `"ko-KR"`) + +* `NB_NO` (value: `"nb-NO"`) + +* `NL_NL` (value: `"nl-NL"`) + +* `PL_PL` (value: `"pl-PL"`) + +* `PT_BR` (value: `"pt-BR"`) + +* `PT_PT` (value: `"pt-PT"`) + +* `RU_RU` (value: `"ru-RU"`) + +* `SV_SE` (value: `"sv-SE"`) + +* `ZH_CN` (value: `"zh-CN"`) + +* `ZH_HK` (value: `"zh-HK"`) + +* `ZH_TW` (value: `"zh-TW"`) + + + diff --git a/docs/SayStandardEngine.md b/docs/SayStandardEngine.md new file mode 100644 index 00000000..a2c16492 --- /dev/null +++ b/docs/SayStandardEngine.md @@ -0,0 +1,17 @@ + + +# SayStandardEngine + +Language and (by implication) the locale to use. This implies the accent and pronunciations to be usde for the TTS. The complete list of valid values for the language attribute is shown below. + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**name** | **String** | The name of the TTS engine to use. Set to `freeclimb.standard` for to use the standard freeclimb TTS engine. | [optional] +**voice** | **SayStandardVoice** | | [optional] +**culture** | **SayStandardCulture** | | [optional] +**contentType** | **SayStandardContentType** | | [optional] + + + diff --git a/docs/SayStandardVoice.md b/docs/SayStandardVoice.md new file mode 100644 index 00000000..7225a03b --- /dev/null +++ b/docs/SayStandardVoice.md @@ -0,0 +1,61 @@ + + +# SayStandardVoice + +## Enum + + +* `HERENA` (value: `"Herena"`) + +* `HELLE` (value: `"Helle"`) + +* `HEDDA` (value: `"Hedda"`) + +* `HAYLEY` (value: `"Hayley"`) + +* `HEATHER` (value: `"Heather"`) + +* `HAZEL` (value: `"Hazel"`) + +* `HEERA` (value: `"Heera"`) + +* `HELEN` (value: `"Helen"`) + +* `ZIRA_PRO` (value: `"ZiraPro"`) + +* `HELENA` (value: `"Helena"`) + +* `HILDA` (value: `"Hilda"`) + +* `HEIDI` (value: `"Heidi"`) + +* `HARMONIE` (value: `"Harmonie"`) + +* `HORTENSE` (value: `"Hortense"`) + +* `LUCIA` (value: `"Lucia"`) + +* `HARKUA` (value: `"Harkua"`) + +* `HEAMI` (value: `"Heami"`) + +* `HULDA` (value: `"Hulda"`) + +* `HANNA` (value: `"Hanna"`) + +* `PAULINA` (value: `"Paulina"`) + +* `HELOSIA` (value: `"Helosia"`) + +* `HELIA` (value: `"Helia"`) + +* `ELENA` (value: `"Elena"`) + +* `HEDVIG` (value: `"Hedvig"`) + +* `HUN_YEE` (value: `"HunYee"`) + +* `HAN_HAN` (value: `"HanHan"`) + + + diff --git a/openapi.json b/openapi.json index 7561d699..01cfcd1e 100644 --- a/openapi.json +++ b/openapi.json @@ -23,7 +23,9 @@ "description": "ID of the account", "required": true, "schema": { - "type": "string" + "type": "string", + "pattern": "AC[0-9a-fA-F]{40}", + "example": "AC170e4c66d358aa1755931da0452561933d1b8fd5" } }, "Capabilities.Voice": { @@ -80,6 +82,17 @@ } }, "schemas": { + "accountId": { + "type": "string", + "pattern": "AC[0-9a-fA-F]{40}", + "example": "AC0534faec6b32da45f36166674d65b3903f784141" + }, + "blobId": { + "type": "string", + "description": "Identifier which can be used to reference this blob in future interations.", + "pattern": "BL[0-9a-fA-F]{40}", + "example": "BL88615a9b4ca7e9aad57d9057773fc74268b9caf7" + }, "AccountStatus": { "type": "string", "enum": ["closed", "suspended", "active"], @@ -2419,12 +2432,314 @@ "$ref": "#/components/schemas/PerclCommand" }, { - "required": [], "type": "object", "properties": {} } ] }, + "SayElevenLabs": { + "description": "The `SayElevenLabs` command provides Text-To-Speech (TTS) support using the ElevenLabs TTS engine. It converts text to speech and then renders it in a female voice back to the caller. `SayElevenLabs` is useful in cases where it's difficult to pre-record a prompt for any reason. `SayElevenLabs` does not allow barge-in unless nested within a `GetSpeech` command. The file will always be played to completion unless nested.", + "required": ["text", "engine"], + "type": "object", + "properties": { + "text": { + "description": "The message to be played to the caller using TTS. The size of the string is limited to 4 KB (or 4,096 bytes). An empty string will cause the command to be skipped.", + "type": "string" + }, + "loop": { + "description": "Number of times the text is said. Specifying '0' causes the `SayElevenLabs` action to loop until the Call is hung up.", + "type": "integer", + "default": 1 + }, + "privacyMode": { + "description": "Parameter `privacyMode` will not log the `text` as required by PCI compliance.", + "type": "boolean" + }, + "engine": { + "description": "The engine to use for the TTS. The complete list of valid values for the engine attribute is shown below.", + "type": "object", + "properties": { + "name": { + "description": "The name of the TTS engine to use. Set to `elevenlabs.tts` to use the elevenlabs.tts TTS engine.", + "type": "string", + "default": "ElevenLabs" + }, + "parameters": { + "$ref": "#/components/schemas/SayElevenLabsEngineParameters" + } + } + } + } + }, + "SayElevenLabsEngineParameters": { + "description": "The parameters to use for the TTS. The complete list of valid values for the parameters attribute is shown below.", + "type": "object", + "properties": { + "model_id": { + "type": "string", + "description": "The ID of the ElevenLabs model to use for the TTS. The complete list of valid values for the model_id attribute is shown below.", + "default": "eleven_turbo_v2_5" + }, + "voice_id": { + "type": "string", + "description": "The ID of the ElevenLabs voice to use for the TTS. The complete list of valid values for the voice_id attribute is shown below." + }, + "language_code": { + "type": "string", + "description": "The language code to use for the TTS. The complete list of valid values for the language_code attribute is shown below.", + "default": "en" + }, + "voice_settings": { + "type": "object", + "description": "The voice settings to use for the TTS. The complete list of valid values for the voice_settings attribute is shown below.", + "properties": { + "stability": { + "type": "number" + }, + "use_speaker_boost": { + "type": "boolean" + }, + "similarity_boost": { + "type": "number" + }, + "style": { + "type": "number" + }, + "speed": { + "type": "number" + } + } + }, + "pronunciation_dictionary": { + "type": "array", + "items": { + "type": "object", + "properties": { + "pronunciation_dictionary_id": { + "type": "string" + }, + "version_id": { + "type": "string" + } + } + } + }, + "seed": { + "type": "integer" + }, + "previous_text": { + "type": "string" + }, + "next_text": { + "type": "string" + }, + "previous_request_ids": { + "type": "array", + "items": { + "type": "string" + } + }, + "next_request_ids": { + "type": "array", + "items": { + "type": "string" + } + }, + "apply_language_text_normalization": { + "type": "boolean" + } + } + }, + "SayNeuralTextType": { + "type": "string", + "enum": ["text", "ssml"], + "description": "The type of text to use for the TTS. The complete list of valid values for the text type attribute is shown below." + }, + "SayNeural": { + "description": "The `SayNeural` command provides Text-To-Speech (TTS) support using the freeclimb.neural TTS engine. It converts text to speech and then renders it in a female voice back to the caller. `SayNeural` is useful in cases where it's difficult to pre-record a prompt for any reason. `SayNeural` does not allow barge-in unless nested within a `GetSpeech` command. The file will always be played to completion unless nested.", + "required": ["text", "engine"], + "type": "object", + "properties": { + "text": { + "description": "The message to be played to the caller using TTS. The size of the string is limited to 4 KB (or 4,096 bytes). An empty string will cause the command to be skipped.", + "type": "string" + }, + "loop": { + "description": "Number of times the text is said. Specifying '0' causes the `SayNeural` action to loop until the Call is hung up.", + "type": "integer", + "default": 1 + }, + "privacyMode": { + "description": "Parameter `privacyMode` will not log the `text` as required by PCI compliance.", + "type": "boolean", + "default": false + }, + "engine": { + "description": "The engine to use for the TTS. The complete list of valid values for the engine attribute is shown below.", + "type": "object", + "properties": { + "name": { + "description": "The name of the TTS engine to use. Set to `freeclimb.neural` to use the freeclimb.neural TTS engine.", + "type": "string", + "default": "freeclimb.neural" + }, + "parameters": { + "description": "The parameters to use for the TTS. The complete list of valid values for the parameters attribute is shown below.", + "type": "object", + "properties": { + "voice": { + "description": "The voice to use for the TTS. The complete list of valid values for the voice attribute is shown below.", + "type": "string", + "default": "Eve" + }, + "textType": { + "$ref": "#/components/schemas/SayNeuralTextType" + }, + "language": { + "description": "The language to use for the TTS. The complete list of valid values for the language attribute is shown below.", + "type": "string", + "default": "en-US" + } + } + } + } + } + } + }, + "SayStandardVoice": { + "description": "The voice to use for the TTS. The complete list of valid values for the voice attribute is shown below.", + "type": "string", + "enum": [ + "Herena", + "Helle", + "Hedda", + "Hayley", + "Heather", + "Hazel", + "Heera", + "Helen", + "ZiraPro", + "Helena", + "Hilda", + "Heidi", + "Harmonie", + "Hortense", + "Lucia", + "Harkua", + "Heami", + "Hulda", + "Hanna", + "Paulina", + "Helosia", + "Helia", + "Elena", + "Hedvig", + "HunYee", + "HanHan" + ] + }, + "SayStandardCulture": { + "description": "The culture to use for the TTS. The complete list of valid values for the culture attribute is shown below.", + "type": "string", + "enum": [ + "ca-ES", + "da-DK", + "de-DE", + "en-AU", + "en-CA", + "en-GB", + "en-IN", + "en-US", + "es-ES", + "es-MX", + "fi-FI", + "fr-CA", + "fr-FR", + "it-IT", + "ja-JP", + "ko-KR", + "nb-NO", + "nl-NL", + "pl-PL", + "pt-BR", + "pt-PT", + "ru-RU", + "sv-SE", + "zh-CN", + "zh-HK", + "zh-TW" + ] + }, + "SayStandardContentType": { + "description": "The content type to use for the TTS. The complete list of valid values for the content type attribute is shown below.", + "type": "string", + "enum": ["text/plain", "application/ssml+xml"] + }, + "SayStandard": { + "description": "The `Say` command provides Text-To-Speech (TTS) support using the freeclimb.standard TTS engine. It converts text to speech and then renders it in a female voice back to the caller. `SayStandard` is useful in cases where it's difficult to pre-record a prompt for any reason. `SayStandard` does not allow barge-in unless nested within a `GetSpeech` command. The file will always be played to completion unless nested.", + "required": ["text", "engine"], + "type": "object", + "properties": { + "text": { + "description": "The message to be played to the caller using TTS. The size of the string is limited to 4 KB (or 4,096 bytes). An empty string will cause the command to be skipped.", + "type": "string" + }, + "loop": { + "description": "Number of times the text is said. Specifying '0' causes the `Say` action to loop until the Call is hung up.", + "type": "integer", + "default": 1 + }, + "privacyMode": { + "description": "Parameter `privacyMode` will not log the `text` as required by PCI compliance.", + "type": "boolean", + "default": false + }, + "engine": { + "description": "Language and (by implication) the locale to use. This implies the accent and pronunciations to be usde for the TTS. The complete list of valid values for the language attribute is shown below.", + "type": "object", + "properties": { + "name": { + "description": "The name of the TTS engine to use. Set to `freeclimb.standard` for to use the standard freeclimb TTS engine.", + "type": "string", + "default": "freeclimb.standard" + }, + "Voice": { + "$ref": "#/components/schemas/SayStandardVoice" + }, + "Culture": { + "$ref": "#/components/schemas/SayStandardCulture" + }, + "Content-Type": { + "$ref": "#/components/schemas/SayStandardContentType" + } + } + } + } + }, + "SayClassic": { + "description": "The `Say` command provides Text-To-Speech (TTS) support. It converts text to speech and then renders it in a female voice back to the caller. `Say` is useful in cases where it's difficult to pre-record a prompt for any reason. `Say` does not allow barge-in unless nested within a `GetSpeech` command. The file will always be played to completion unless nested.", + "required": ["text"], + "type": "object", + "properties": { + "text": { + "description": "The message to be played to the caller using TTS. The size of the string is limited to 4 KB (or 4,096 bytes). An empty string will cause the command to be skipped.", + "type": "string" + }, + "language": { + "description": "Language and (by implication) the locale to use. This implies the accent and pronunciations to be usde for the TTS. The complete list of valid values for the language attribute is shown below.", + "type": "string" + }, + "loop": { + "description": "Number of times the text is said. Specifying '0' causes the `Say` action to loop until the Call is hung up.", + "type": "integer", + "default": 1 + }, + "privacyMode": { + "description": "Parameter `privacyMode` will not log the `text` as required by PCI compliance.", + "type": "boolean" + } + } + }, "Say": { "description": "The `Say` command provides Text-To-Speech (TTS) support. It converts text to speech and then renders it in a female voice back to the caller. `Say` is useful in cases where it's difficult to pre-record a prompt for any reason. `Say` does not allow barge-in unless nested within a `GetSpeech` command. The file will always be played to completion unless nested.", "allOf": [ @@ -2432,27 +2747,20 @@ "$ref": "#/components/schemas/PerclCommand" }, { - "required": ["text"], - "type": "object", - "properties": { - "text": { - "description": "The message to be played to the caller using TTS. The size of the string is limited to 4 KB (or 4,096 bytes). An empty string will cause the command to be skipped.", - "type": "string" + "oneOf": [ + { + "$ref": "#/components/schemas/SayElevenLabs" }, - "language": { - "description": "Language and (by implication) the locale to use. This implies the accent and pronunciations to be usde for the TTS. The complete list of valid values for the language attribute is shown below.", - "type": "string" + { + "$ref": "#/components/schemas/SayNeural" }, - "loop": { - "description": "Number of times the text is said. Specifying '0' causes the `Say` action to loop until the Call is hung up.", - "type": "integer", - "default": 1 + { + "$ref": "#/components/schemas/SayStandard" }, - "privacyMode": { - "description": "Parameter `privacyMode` will not log the `text` as required by PCI compliance.", - "type": "boolean" + { + "$ref": "#/components/schemas/SayClassic" } - } + ] } ] }, @@ -2489,7 +2797,6 @@ "$ref": "#/components/schemas/PerclCommand" }, { - "required": [], "type": "object", "properties": { "listen": { @@ -2507,7 +2814,6 @@ "$ref": "#/components/schemas/PerclCommand" }, { - "required": [], "type": "object", "properties": { "talk": { @@ -2525,7 +2831,6 @@ "$ref": "#/components/schemas/PerclCommand" }, { - "required": [], "type": "object", "properties": { "dtmfPassThrough": { @@ -2585,7 +2890,6 @@ "$ref": "#/components/schemas/PerclCommand" }, { - "required": [], "type": "object", "properties": {} } @@ -3662,9 +3966,7 @@ }, "CreateConferenceRequest": { "type": "object", - "required": [ - "statusCallbackUrl" - ], + "required": ["statusCallbackUrl"], "properties": { "alias": { "type": "string", @@ -4850,23 +5152,16 @@ "ExportResourceType": { "type": "string", "description": "platform resource type", - "enum": [ - "Messages", - "Calls" - ] + "enum": ["Messages", "Calls"] }, "ExportOutputType": { "type": "string", "description": "output type of the export", - "enum": [ - "csv" - ] + "enum": ["csv"] }, "ExportRequestOutput": { "type": "object", - "required": [ - "type" - ], + "required": ["type"], "properties": { "type": { "$ref": "#/components/schemas/ExportOutputType" @@ -4875,9 +5170,7 @@ }, "ExportResultOutput": { "type": "object", - "required": [ - "type" - ], + "required": ["type"], "properties": { "type": { "$ref": "#/components/schemas/ExportOutputType" @@ -4962,12 +5255,7 @@ "query": { "direction": "inbound" }, - "format": [ - "messageId", - "dateUpdated", - "segmentCount", - "status" - ], + "format": ["messageId", "dateUpdated", "segmentCount", "status"], "output": { "type": "csv" } @@ -4994,10 +5282,7 @@ }, "ExportRequest": { "type": "object", - "required": [ - "resourceType", - "output" - ], + "required": ["resourceType", "output"], "properties": { "resourceType": { "$ref": "#/components/schemas/ExportResourceType" @@ -5015,56 +5300,290 @@ "type": "object" } } - } - } - }, - "security": [ - { - "fc": [] - } - ], - "paths": { - "/Accounts/{accountId}": { - "get": { - "tags": [], - "summary": "Get an Account", - "operationId": "get-an-account", - "parameters": [ - { - "$ref": "#/components/parameters/AccountId" + }, + "CreateBlobRequest": { + "type": "object", + "required": ["blob"], + "properties": { + "alias": { + "type": "string", + "description": "Custom identifier for this blob that is unique for the owning account. It will be set to the blobId by default if not provided.", + "maxLength": 64 + }, + "expiresAt": { + "type": "string", + "description": "An RFC3339 timestamp with millisecond resolution. This timestamp defines the time at which this blob will delete itself. It must not be more than 48 hours in the future and will default to 9 hours in the future if not provided.", + "example": "2006-01-02T15:04:05.000Z" + }, + "blob": { + "type": "object" } - ], - "deprecated": false, - "responses": { - "200": { - "description": "Account Details", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/AccountResult" - } - } - } + }, + "additionalProperties": false + }, + "ModifyBlobRequest": { + "type": "object", + "required": ["blob"], + "properties": { + "blob": { + "type": "object" + }, + "alias": { + "type": "string", + "description": "Custom identifier for this blob that is unique for the owning account. It will be set to the blobId by default if not provided.", + "maxLength": 64 } } }, - "post": { - "tags": [], - "summary": "Manage an account", - "operationId": "update-an-account", - "parameters": [ - { - "$ref": "#/components/parameters/AccountId" + "ReplaceBlobRequest": { + "type": "object", + "required": ["blob"], + "properties": { + "blob": { + "type": "object" } - ], - "requestBody": { - "description": "Account details to update", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/AccountRequest" - } - } + } + }, + "BlobResult": { + "type": "object", + "properties": { + "blobId": { + "$ref": "#/components/schemas/blobId" + }, + "accountId": { + "$ref": "#/components/schemas/accountId" + }, + "alias": { + "type": "string", + "description": "Custom identifier for this blob that is unique for the owning account. It will be set to the blobId by default if not provided in the creation request.", + "maxLength": 64 + }, + "revision": { + "type": "integer" + }, + "dateCreated": { + "type": "string", + "format": "date-time", + "description": "An RFC3339 timestamp with millisecond resolution. It represents the time this blob was created." + }, + "dateUpdated": { + "type": "string", + "format": "date-time", + "description": "An RFC3339 timestamp with millisecond resolution. It represents the time this blob was last modified, which at creation will always equal dateCreated." + }, + "expiresAt": { + "type": "string", + "format": "date-time", + "description": "An RFC3339 timestamp with millisecond resolution. It represents the time at which this blob will expire and self delete." + }, + "blob": { + "type": "object", + "description": "Blob content" + } + } + }, + "BlobListResponse": { + "type": "object", + "allOf": [ + { + "$ref": "#/components/schemas/PaginationModel" + }, + { + "type": "object", + "properties": { + "blobs": { + "type": "array", + "items": { + "$ref": "#/components/schemas/BlobResult" + } + } + } + } + ] + }, + "platformError": { + "description": "Standard error structure returned by platform.", + "type": "object", + "properties": { + "code": { + "type": "integer" + }, + "call": { + "type": "string" + }, + "url": { + "type": "string", + "format": "uri-reference" + }, + "details": { + "type": "object" + } + }, + "example": { + "code": 0, + "call": "Internal Failure", + "url": "https://docs.freeclimb.com/reference/error-and-warning-dictionary#0" + } + } + }, + "responses": { + "success204": { + "description": "Successful operation" + }, + "error400": { + "description": "Generic platform bad request.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/platformError" + }, + "example": { + "code": 80, + "call": "Missing Required Parameter(s)", + "url": "https://docs.freeclimb.com/reference/error-and-warning-dictionary#80" + } + } + } + }, + "error404": { + "description": "Generic platform not found error.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/platformError" + }, + "example": { + "code": 1, + "call": "Not Found", + "url": "https://docs.freeclimb.com/reference/error-and-warning-dictionary#1" + } + } + } + }, + "error409": { + "description": "Generic platform status conflict error.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/platformError" + }, + "example": { + "code": 108, + "call": "ResourceConflict", + "url": "https://docs.freeclimb.com/reference/error-and-warning-dictionary#108" + } + } + } + }, + "error413": { + "description": "Generic platform status request entity too large.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/platformError" + }, + "example": { + "code": 3, + "call": "BadRequestBody", + "url": "https://docs.freeclimb.com/reference/error-and-warning-dictionary#3" + } + } + } + }, + "error422": { + "description": "Generic platform unprocessible entity response.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/platformError" + }, + "example": { + "code": 9, + "call": "Invalid JSON", + "url": "https://docs.freeclimb.com/reference/error-and-warning-dictionary#9" + } + } + } + }, + "error500": { + "description": "Generic platform internal error.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/platformError" + }, + "example": { + "code": 0, + "call": "Internal Failure", + "url": "https://docs.freeclimb.com/reference/error-and-warning-dictionary#0" + } + } + } + }, + "error504": { + "description": "gateway timeout error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/platformError" + }, + "example": { + "code": 0, + "call": "Internal Failure", + "url": "https://docs.freeclimb.com/reference/error-and-warning-dictionary#0" + } + } + } + } + } + }, + "security": [ + { + "fc": [] + } + ], + "paths": { + "/Accounts/{accountId}": { + "get": { + "tags": ["Accounts"], + "summary": "Get an Account", + "operationId": "get-an-account", + "parameters": [ + { + "$ref": "#/components/parameters/AccountId" + } + ], + "deprecated": false, + "responses": { + "200": { + "description": "Account Details", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/AccountResult" + } + } + } + } + } + }, + "post": { + "tags": ["Accounts"], + "summary": "Manage an account", + "operationId": "update-an-account", + "parameters": [ + { + "$ref": "#/components/parameters/AccountId" + } + ], + "requestBody": { + "description": "Account details to update", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/AccountRequest" + } + } } }, "responses": { @@ -5076,7 +5595,7 @@ }, "/Accounts/{accountId}/Applications/{applicationId}": { "get": { - "tags": [], + "tags": ["Applications"], "summary": "Get an Application", "operationId": "get-an-application", "parameters": [ @@ -5108,7 +5627,7 @@ } }, "post": { - "tags": [], + "tags": ["Applications"], "summary": "Update an application", "operationId": "update-an-application", "parameters": [ @@ -5150,7 +5669,7 @@ } }, "delete": { - "tags": [], + "tags": ["Applications"], "summary": "Delete an application", "operationId": "delete-an-application", "parameters": [ @@ -5177,7 +5696,7 @@ }, "/Accounts/{accountId}/Applications": { "get": { - "tags": [], + "tags": ["Applications"], "summary": "List applications", "operationId": "list-applications", "parameters": [ @@ -5209,7 +5728,7 @@ } }, "post": { - "tags": [], + "tags": ["Applications"], "summary": "Create an application", "operationId": "create-an-application", "parameters": [ @@ -5244,7 +5763,7 @@ }, "/AvailablePhoneNumbers": { "get": { - "tags": [], + "tags": ["AvailablePhoneNumbers"], "summary": "List available numbers", "operationId": "list-available-numbers", "parameters": [ @@ -5328,7 +5847,7 @@ }, "/Accounts/{accountId}/IncomingPhoneNumbers/{phoneNumberId}": { "get": { - "tags": [], + "tags": ["IncomingPhoneNumbers"], "summary": "Get an Incoming Number", "operationId": "get-an-incoming-number", "parameters": [ @@ -5360,7 +5879,7 @@ } }, "post": { - "tags": [], + "tags": ["IncomingPhoneNumbers"], "summary": "Update an Incoming Number", "operationId": "update-an-incoming-number", "parameters": [ @@ -5402,7 +5921,7 @@ } }, "delete": { - "tags": [], + "tags": ["IncomingPhoneNumbers"], "summary": "Delete an Incoming Number", "operationId": "delete-an-incoming-number", "parameters": [ @@ -5429,7 +5948,7 @@ }, "/Accounts/{accountId}/IncomingPhoneNumbers": { "get": { - "tags": [], + "tags": ["IncomingPhoneNumbers"], "summary": "List Incoming Numbers", "operationId": "list-incoming-numbers", "parameters": [ @@ -5571,7 +6090,7 @@ } }, "post": { - "tags": [], + "tags": ["IncomingPhoneNumbers"], "summary": "Buy a Phone Number", "operationId": "buy-a-phone-number", "parameters": [ @@ -5607,7 +6126,7 @@ }, "/Accounts/{accountId}/KnowledgeBases/{knowledgeBaseId}/Completion": { "post": { - "tags": [], + "tags": ["KnowledgeBases"], "summary": "Query the knowledge base", "operationId": "create-knowledge-base-completion", "parameters": [ @@ -5651,7 +6170,7 @@ }, "/Accounts/{accountId}/Calls/{callId}": { "get": { - "tags": [], + "tags": ["Calls"], "summary": "Get a Call", "operationId": "get-a-call", "parameters": [ @@ -5683,7 +6202,7 @@ } }, "post": { - "tags": [], + "tags": ["Calls"], "summary": "Update a Live Call", "operationId": "update-a-live-call", "parameters": [ @@ -5721,7 +6240,7 @@ }, "/Accounts/{accountId}/Calls": { "post": { - "tags": [], + "tags": ["Calls"], "summary": "Make a Call", "operationId": "make-a-call", "parameters": [ @@ -5754,7 +6273,7 @@ } }, "get": { - "tags": [], + "tags": ["Calls"], "summary": "List Calls", "operationId": "list-calls", "parameters": [ @@ -5876,7 +6395,7 @@ }, "/Accounts/{accountId}/Calls/{callId}/Recordings": { "get": { - "tags": [], + "tags": ["Calls"], "summary": "List Call Recordings", "operationId": "list-call-recordings", "parameters": [ @@ -5919,7 +6438,7 @@ }, "/Accounts/{accountId}/Calls/{callId}/Logs": { "get": { - "tags": [], + "tags": ["Calls"], "summary": "List Call Logs", "operationId": "list-call-logs", "parameters": [ @@ -5953,6 +6472,7 @@ }, "/Accounts/{accountId}/Calls/WebRTC/Token": { "post": { + "tags": ["Calls"], "summary": "Make a JWT for WebRTC calling", "operationId": "make-a-webrtc-jwt", "parameters": [ @@ -5988,7 +6508,7 @@ }, "/Accounts/{accountId}/Conferences": { "post": { - "tags": [], + "tags": ["Conferences"], "summary": "Create a Conference", "operationId": "create-a-conference", "parameters": [ @@ -6021,7 +6541,7 @@ } }, "get": { - "tags": [], + "tags": ["Conferences"], "summary": "List Conferences", "operationId": "list-conferences", "parameters": [ @@ -6082,7 +6602,7 @@ }, "/Accounts/{accountId}/Conferences/{conferenceId}": { "post": { - "tags": [], + "tags": ["Conferences"], "summary": "Update a Conference", "operationId": "update-a-conference", "parameters": [ @@ -6117,7 +6637,7 @@ } }, "get": { - "tags": [], + "tags": ["Conferences"], "summary": "Get a Conference", "operationId": "get-a-conference", "parameters": [ @@ -6151,7 +6671,7 @@ }, "/Accounts/{accountId}/Conferences/{conferenceId}/Participants/{callId}": { "post": { - "tags": [], + "tags": ["Conferences"], "summary": "Update a Participant", "operationId": "update-a-participant", "parameters": [ @@ -6202,7 +6722,7 @@ } }, "get": { - "tags": [], + "tags": ["Conferences"], "summary": "Get a Participant", "operationId": "get-a-participant", "parameters": [ @@ -6243,7 +6763,7 @@ } }, "delete": { - "tags": [], + "tags": ["Conferences"], "summary": "Remove a Participant", "operationId": "remove-a-participant", "parameters": [ @@ -6279,7 +6799,7 @@ }, "/Accounts/{accountId}/Conferences/{conferenceId}/Participants": { "get": { - "tags": [], + "tags": ["Conferences"], "summary": "List Participants", "operationId": "list-participants", "parameters": [ @@ -6340,7 +6860,7 @@ }, "/Accounts/{accountId}/Conferences/{conferenceId}/Recordings": { "get": { - "tags": [], + "tags": ["Conferences"], "summary": "List Conference Recordings", "operationId": "list-conference-recordings", "parameters": [ @@ -6392,7 +6912,7 @@ }, "/Accounts/{accountId}/Queues/{queueId}": { "post": { - "tags": [], + "tags": ["Queues"], "summary": "Update a Queue", "operationId": "update-a-queue", "parameters": [ @@ -6434,7 +6954,7 @@ } }, "get": { - "tags": [], + "tags": ["Queues"], "summary": "Get a Queue", "operationId": "get-a-queue", "parameters": [ @@ -6468,7 +6988,7 @@ }, "/Accounts/{accountId}/Queues": { "get": { - "tags": [], + "tags": ["Queues"], "summary": "List Active Queues", "operationId": "list-active-queues", "parameters": [ @@ -6500,7 +7020,7 @@ } }, "post": { - "tags": [], + "tags": ["Queues"], "summary": "Create a Queue", "operationId": "create-a-queue", "parameters": [ @@ -6535,7 +7055,7 @@ }, "/Accounts/{accountId}/Queues/{queueId}/Members/Front": { "get": { - "tags": [], + "tags": ["Queues"], "summary": "Get Head Member", "operationId": "get-head-member", "parameters": [ @@ -6567,7 +7087,7 @@ } }, "post": { - "tags": [], + "tags": ["Queues"], "summary": "Dequeue Head Member", "operationId": "dequeue-head-member", "parameters": [ @@ -6601,7 +7121,7 @@ }, "/Accounts/{accountId}/Queues/{queueId}/Members": { "get": { - "tags": [], + "tags": ["Queues"], "summary": "List Members", "operationId": "list-members", "parameters": [ @@ -6635,7 +7155,7 @@ }, "/Accounts/{accountId}/Queues/{queueId}/Members/{callId}": { "get": { - "tags": [], + "tags": ["Queues"], "summary": "Get a Member", "operationId": "get-a-member", "parameters": [ @@ -6676,7 +7196,7 @@ } }, "post": { - "tags": [], + "tags": ["Queues"], "summary": "Dequeue a Member", "operationId": "dequeue-a-member", "parameters": [ @@ -6719,7 +7239,7 @@ }, "/Accounts/{accountId}/Logs": { "get": { - "tags": [], + "tags": ["Logs"], "summary": "List All Account Logs", "operationId": "list-all-account-logs", "parameters": [ @@ -6742,7 +7262,7 @@ } }, "post": { - "tags": [], + "tags": ["Logs"], "summary": "Filter Logs", "operationId": "filter-logs", "parameters": [ @@ -6778,7 +7298,7 @@ }, "/Accounts/{accountId}/Recordings": { "get": { - "tags": [], + "tags": ["Recordings"], "summary": "List Recordings", "operationId": "list-recordings", "parameters": [ @@ -6830,7 +7350,7 @@ }, "/Accounts/{accountId}/Recordings/{recordingId}": { "get": { - "tags": [], + "tags": ["Recordings"], "summary": "Get a Recording", "operationId": "get-a-recording", "parameters": [ @@ -6862,7 +7382,7 @@ "deprecated": false }, "delete": { - "tags": [], + "tags": ["Recordings"], "summary": "Delete a Recording", "operationId": "delete-a-recording", "parameters": [ @@ -6889,7 +7409,7 @@ }, "/Accounts/{accountId}/Recordings/{recordingId}/Stream": { "get": { - "tags": [], + "tags": ["Recordings"], "summary": "Stream a Recording File", "operationId": "stream-a-recording-file", "parameters": [ @@ -6908,9 +7428,9 @@ ], "responses": { "200": { - "description": "Streaming a Recording represented with audio/x-wav mime-type", + "description": "Streaming a Recording represented with audio/wav mime-type", "content": { - "audio/x-wav": { + "audio/wav": { "schema": { "type": "string", "format": "binary" @@ -6924,7 +7444,7 @@ }, "/Accounts/{accountId}/Recordings/{recordingId}/Download": { "get": { - "tags": [], + "tags": ["Recordings"], "summary": "Download a Recording File", "operationId": "download-a-recording-file", "parameters": [ @@ -6943,9 +7463,9 @@ ], "responses": { "200": { - "description": "Download a Recording file represented with audio/x-wav mime-type", + "description": "Download a Recording file represented with audio/wav mime-type", "content": { - "audio/x-wav": { + "audio/wav": { "schema": { "type": "string", "format": "binary" @@ -6959,7 +7479,7 @@ }, "/Accounts/{accountId}/Messages": { "get": { - "tags": [], + "tags": ["Messages"], "summary": "List SMS Messages", "operationId": "list-sms-messages", "parameters": [ @@ -7054,7 +7574,7 @@ "deprecated": false }, "post": { - "tags": [], + "tags": ["Messages"], "summary": "Send an SMS Message", "operationId": "send-an-sms-message", "parameters": [ @@ -7090,7 +7610,7 @@ }, "/Accounts/{accountId}/Messages/{messageId}": { "get": { - "tags": [], + "tags": ["Messages"], "summary": "Get an SMS Message", "operationId": "get-an-sms-message", "parameters": [ @@ -7124,7 +7644,7 @@ }, "/Accounts/{accountId}/Messages/10DLC/Campaigns": { "get": { - "tags": [], + "tags": ["Messages"], "summary": "Get list of SMS 10DLC Campaigns", "operationId": "get-tenDLC-sms-campaigns", "parameters": [ @@ -7202,7 +7722,7 @@ }, "/Accounts/{accountId}/Messages/10DLC/Campaigns/{campaignId}": { "get": { - "tags": [], + "tags": ["Messages"], "summary": "Get a 10DLC SMS Campaign", "operationId": "get-tenDLC-sms-campaign", "parameters": [ @@ -7236,7 +7756,7 @@ }, "/Accounts/{accountId}/Messages/10DLC/PartnerCampaigns": { "get": { - "tags": [], + "tags": ["Messages"], "summary": "Get list of SMS 10DLC Partner Campaigns", "operationId": "get-tenDLC-sms-partnerCampaigns", "parameters": [ @@ -7323,7 +7843,7 @@ }, "/Accounts/{accountId}/Messages/10DLC/PartnerCampaigns/{campaignId}": { "get": { - "tags": [], + "tags": ["Messages"], "summary": "Get a 10DLC SMS Partner Campaign", "operationId": "get-tenDLC-sms-partnerCampaign", "parameters": [ @@ -7357,7 +7877,7 @@ }, "/Accounts/{accountId}/Messages/10DLC/Brands": { "get": { - "tags": [], + "tags": ["Messages"], "summary": "Get list of SMS 10DLC Brands", "operationId": "get-tenDLC-sms-brands", "parameters": [ @@ -7424,7 +7944,7 @@ }, "/Accounts/{accountId}/Messages/10DLC/Brands/{brandId}": { "get": { - "tags": [], + "tags": ["Messages"], "summary": "Get a 10DLC SMS Brand", "operationId": "get-tenDLC-sms-brand", "parameters": [ @@ -7458,7 +7978,7 @@ }, "/Accounts/{accountId}/Messages/TollFree/Campaigns": { "get": { - "tags": [], + "tags": ["Messages"], "summary": "Get list of TollFree Campaigns", "operationId": "get-tollFree-sms-campaigns", "parameters": [ @@ -7503,7 +8023,7 @@ }, "/Accounts/{accountId}/Messages/TollFree/Campaigns/{campaignId}": { "get": { - "tags": [], + "tags": ["Messages"], "summary": "Get a TollFree SMS Campaign", "operationId": "get-tollFree-sms-campaign", "parameters": [ @@ -7537,7 +8057,7 @@ }, "/Accounts/{accountId}/Exports": { "get": { - "tags": [], + "tags": ["Exports"], "summary": "List Exports", "operationId": "list-exports", "responses": { @@ -7577,7 +8097,7 @@ "post": { "summary": "Create an Export", "operationId": "create-export", - "tags": [], + "tags": ["Exports"], "requestBody": { "description": "A JSON object containing export creation parameters", "content": { @@ -7609,7 +8129,7 @@ }, "/Accounts/{accountId}/Exports/{exportId}": { "get": { - "tags": [], + "tags": ["Exports"], "summary": "Get an Export", "operationId": "get-an-export", "parameters": [ @@ -7641,7 +8161,7 @@ } }, "delete": { - "tags": [], + "tags": ["Exports"], "summary": "Delete an Export", "operationId": "delete-an-export", "parameters": [ @@ -7668,7 +8188,7 @@ }, "/Accounts/{accountId}/Exports/{exportId}/Download": { "get": { - "tags": [], + "tags": ["Exports"], "summary": "Download an Export", "operationId": "download-an-export", "parameters": [ @@ -7699,8 +8219,574 @@ } } } + }, + "/Accounts/{accountId}/Blobs": { + "summary": "Operations affecting the whole set of Blobs belonging to an account.", + "parameters": [ + { + "$ref": "#/components/parameters/AccountId" + } + ], + "get": { + "summary": "List Blobs belonging to an account.", + "description": "List Blobs belonging to an account. Results are returned in paginated lists mirroring other listing features in the API.", + "tags": ["Blobs"], + "responses": { + "200": { + "description": "Single page of blob list results.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/BlobListResponse" + }, + "example": { + "total": 2, + "start": 0, + "end": 1, + "page": 0, + "numPages": 1, + "pageSize": 100, + "nextPageUri": null, + "blobs": [ + { + "blobId": "BL387ec3f6e03b340553f35f29c8f118cdf3eae08a", + "accountId": "AC3ff5d5aed7fde9e6659673d850cbd18ea8bfca78", + "alias": "my-blob-alias", + "revision": 1, + "dateCreated": "2006-01-02T15:04:05.000Z", + "dateUpdated": "2006-01-02T15:04:05.000Z", + "expiresAt": "2006-01-02T15:04:05.000Z", + "blob": { + "field0": "value0", + "field1": 1, + "field2": true + } + }, + { + "blobId": "BL487ec3f6e03b340553f35f29c8f118cdf3eae08b", + "accountId": "AC3ff5d5aed7fde9e6659673d850cbd18ea8bfca78", + "alias": "another-blob", + "revision": 1, + "dateCreated": "2006-01-02T16:04:05.000Z", + "dateUpdated": "2006-01-02T16:04:05.000Z", + "expiresAt": "2006-01-02T16:04:05.000Z", + "blob": { + "data": "example" + } + } + ] + } + } + } + }, + "400": { + "$ref": "#/components/responses/error400" + }, + "500": { + "$ref": "#/components/responses/error500" + }, + "504": { + "$ref": "#/components/responses/error504" + } + }, + "operationId": "list-blobs", + "parameters": [ + { + "schema": { + "type": "string" + }, + "in": "query", + "name": "alias", + "description": "Filter blobs by alias" + }, + { + "schema": { + "type": "string" + }, + "in": "query", + "name": "cursor", + "description": "Used to reference pages of a list of blobs" + } + ] + }, + "post": { + "tags": ["Blobs"], + "summary": "Create a Blob", + "description": "Create a new Blob belonging to the requesting account.", + "operationId": "create-blob", + "requestBody": { + "description": "An object defining a new blob. A request body must be provided but the blob may be empty.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/CreateBlobRequest" + }, + "examples": { + "plain_empty_blob": { + "value": { + "blob": {} + } + }, + "setting_blob_content": { + "value": { + "blob": { + "key0": "value0", + "key1": 1, + "key2": { + "keyA": true, + "keyB": [1, 1, 2, 3, 5, 8, 13, 21] + } + } + } + }, + "setting_alias_blob": { + "value": { + "alias": "my_custom_blob_identifier", + "blob": { + "key": "value" + } + } + }, + "setting_expiresAt_blob": { + "value": { + "expiresAt": "2025-01-04T15:04:05.060Z", + "blob": { + "key": 45 + } + } + }, + "setting_everything_blob": { + "value": { + "alias": "my_custom_blob_identifier", + "expiresAt": "2025-01-04T15:04:05.060Z", + "blob": { + "key0": "value", + "key1": 45 + } + } + } + } + } + }, + "required": true + }, + "responses": { + "201": { + "description": "Successful creation of a new blob.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/BlobResult" + }, + "examples": { + "plain_empty_blob": { + "value": { + "revision": 1, + "dateCreated": "2025-01-02T15:04:05.000Z", + "dateUpdated": "2025-01-02T15:04:05.000Z", + "accountId": "AC387ec3f6e03b340553f35f29c8f118cdf3eae08a", + "alias": "BL387ec3f6e03b340553f35f29c8f118cdf3eae08a", + "blobId": "BL387ec3f6e03b340553f35f29c8f118cdf3eae08a", + "expiresAt": "2025-01-03T00:04:05.000Z", + "blob": {} + } + }, + "setting_blob_content": { + "value": { + "revision": 1, + "dateCreated": "2025-01-02T15:04:05.000Z", + "dateUpdated": "2025-01-02T15:04:05.000Z", + "accountId": "AC387ec3f6e03b340553f35f29c8f118cdf3eae08a", + "alias": "BL387ec3f6e03b340553f35f29c8f118cdf3eae08a", + "blobId": "BL387ec3f6e03b340553f35f29c8f118cdf3eae08a", + "expiresAt": "2025-01-03T00:04:05.000Z", + "blob": { + "key0": "value0", + "key1": 1, + "key2": { + "keyA": true, + "keyB": [1, 1, 2, 3, 5, 8, 13, 21] + } + } + } + }, + "setting_alias_blob": { + "value": { + "revision": 1, + "dateCreated": "2025-01-02T15:04:05.000Z", + "dateUpdated": "2025-01-02T15:04:05.000Z", + "accountId": "AC387ec3f6e03b340553f35f29c8f118cdf3eae08a", + "alias": "my_custom_blob_identifier", + "blobId": "BL387ec3f6e03b340553f35f29c8f118cdf3eae08a", + "expiresAt": "2025-01-03T00:04:05.000Z", + "blob": { + "key": "value" + } + } + }, + "setting_expiresAt_blob": { + "value": { + "revision": 1, + "dateCreated": "2025-01-02T15:04:05.000Z", + "dateUpdated": "2025-01-02T15:04:05.000Z", + "accountId": "AC387ec3f6e03b340553f35f29c8f118cdf3eae08a", + "alias": "BL387ec3f6e03b340553f35f29c8f118cdf3eae08a", + "blobId": "BL387ec3f6e03b340553f35f29c8f118cdf3eae08a", + "expiresAt": "2025-01-04T15:04:05.060Z", + "blob": { + "key": 45 + } + } + }, + "setting_everything_blob": { + "value": { + "revision": 1, + "dateCreated": "2025-01-02T15:04:05.000Z", + "dateUpdated": "2025-01-02T15:04:05.000Z", + "accountId": "AC387ec3f6e03b340553f35f29c8f118cdf3eae08a", + "blobId": "BL387ec3f6e03b340553f35f29c8f118cdf3eae08a", + "alias": "my_custom_blob_identifier", + "expiresAt": "2025-01-04T15:04:05.060Z", + "blob": { + "key0": "value", + "key1": 45 + } + } + } + } + } + } + }, + "400": { + "$ref": "#/components/responses/error400" + }, + "409": { + "description": "A blob with the provided alias already exists oln the requesting account and so this new blob is rejected as there cannot be duplicate alises.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/platformError" + }, + "example": { + "code": 108, + "call": "Request conflicts with another resource", + "url": "https://docs.freeclimb.com/reference/error-and-warning-dictionary#108", + "details": { + "explanation": "alias already exists for another blob on this account" + } + } + } + } + }, + "413": { + "description": "The blob exceeded one of the size limits. Either it itself is too large or it would push the total sum of all blobs over the account's limit.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/platformError" + }, + "example": { + "code": 80, + "call": "Missing Required Parameter(s)", + "url": "https://docs.freeclimb.com/reference/error-and-warning-dictionary#80", + "details": { + "explanation": "blob exceeds per-blob size limit" + } + } + } + } + }, + "422": { + "$ref": "#/components/responses/error422" + }, + "500": { + "$ref": "#/components/responses/error500" + } + } + } + }, + "/Accounts/{accountId}/Blobs/{blobId}": { + "summary": "Operations affecting an individual blob belonging to an account.", + "parameters": [ + { + "$ref": "#/components/parameters/AccountId" + }, + { + "name": "blobId", + "in": "path", + "description": "String that uniquely identifies this Blob resource.", + "required": true, + "schema": { + "$ref": "#/components/schemas/blobId" + } + } + ], + "get": { + "summary": "Get Blob", + "tags": ["Blobs"], + "responses": { + "200": { + "description": "Retrieve a Blob.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/BlobResult" + }, + "example": { + "blobId": "BL387ec3f6e03b340553f35f29c8f118cdf3eae08a", + "accountId": "AC3ff5d5aed7fde9e6659673d850cbd18ea8bfca78", + "alias": "my-blob-alias", + "revision": 1, + "dateCreated": "2006-01-02T15:04:05.000Z", + "dateUpdated": "2006-01-02T15:04:05.000Z", + "expiresAt": "2006-01-02T15:04:05.000Z", + "blob": { + "field0": "value0", + "field1": 1, + "field2": true + } + } + } + } + }, + "404": { + "$ref": "#/components/responses/error404" + }, + "500": { + "$ref": "#/components/responses/error500" + }, + "504": { + "$ref": "#/components/responses/error504" + } + }, + "operationId": "get-blob", + "description": "Retrieves a specified blob" + }, + "delete": { + "summary": "Delete Blob", + "tags": ["Blobs"], + "responses": { + "200": { + "description": "Blob keys deleted successfully, remaining blob returned.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/BlobResult" + } + } + } + }, + "204": { + "$ref": "#/components/responses/success204" + }, + "404": { + "$ref": "#/components/responses/error404" + }, + "422": { + "$ref": "#/components/responses/error422" + }, + "500": { + "$ref": "#/components/responses/error500" + }, + "504": { + "$ref": "#/components/responses/error504" + } + }, + "operationId": "delete-blob", + "parameters": [ + { + "schema": { + "type": "array", + "items": { + "type": "string", + "pattern": "^[a-zA-Z0-9_]{1,64}$" + } + }, + "in": "query", + "name": "key", + "description": "key within blob to remove", + "required": false + } + ], + "description": "Deletes a blob or specific keys from a blob. If no keys are specified in the request body, the entire blob is deleted (returns 204). If specific keys are provided, only those keys are removed and the remaining blob is returned (returns 200)." + }, + "patch": { + "summary": "Modify Blob", + "tags": ["Blobs"], + "responses": { + "200": { + "description": "Blob keys successfully modified, updated blob returned.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/BlobResult" + }, + "example": { + "blobId": "BL387ec3f6e03b340553f35f29c8f118cdf3eae08a", + "accountId": "AC3ff5d5aed7fde9e6659673d850cbd18ea8bfca78", + "alias": "new_conversation_id", + "revision": 2, + "dateCreated": "2006-01-02T15:04:05.000Z", + "dateUpdated": "2006-01-02T15:04:05.000Z", + "expiresAt": "2006-01-02T15:04:05.000Z", + "blob": { + "field0": "value0_redux", + "field4": "value4" + } + } + } + } + }, + "404": { + "$ref": "#/components/responses/error404" + }, + "409": { + "$ref": "#/components/responses/error409" + }, + "413": { + "$ref": "#/components/responses/error413" + }, + "500": { + "$ref": "#/components/responses/error500" + } + }, + "operationId": "modify-blob", + "requestBody": { + "description": "Request body to specify keys to modify. Or new keys to add onto the already existing blob", + "required": true, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ModifyBlobRequest" + }, + "example": { + "alias": "new_conversation_id", + "blob": { + "field0": "value0_redux", + "field4": "value4" + } + } + } + } + }, + "description": "Modifys a pre existing blob by either adding new fields, or modifying existing fields" + }, + "put": { + "summary": "Replace Blob", + "tags": ["Blobs"], + "responses": { + "200": { + "description": "Replaces all keys in blob with those provided.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/BlobResult" + }, + "example": { + "blobId": "BL387ec3f6e03b340553f35f29c8f118cdf3eae08a", + "accountId": "AC3ff5d5aed7fde9e6659673d850cbd18ea8bfca78", + "alias": "new_conversation_id", + "revision": 2, + "dateCreated": "2006-01-02T15:04:05.000Z", + "dateUpdated": "2006-01-02T15:04:05.000Z", + "expiresAt": "2006-01-02T15:04:05.000Z", + "blob": { + "field0": "value0_redux", + "field4": "value4" + } + } + } + } + }, + "404": { + "$ref": "#/components/responses/error404" + }, + "409": { + "$ref": "#/components/responses/error409" + }, + "413": { + "$ref": "#/components/responses/error413" + }, + "500": { + "$ref": "#/components/responses/error500" + } + }, + "operationId": "replace-blob", + "requestBody": { + "description": "JSON object containing blob key the contents of which will be used to override the enitre blob contents.", + "required": true, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ReplaceBlobRequest" + }, + "example": { + "blob": { + "field0": "value0_redux", + "field4": "value4" + } + } + } + } + }, + "description": "Replaces the blob content with the provided values." + } } }, + "tags": [ + { + "name": "Accounts", + "description": "API for managing whole Accounts" + }, + { + "name": "Applications", + "description": "API for managing Applications" + }, + { + "name": "AvailablePhoneNumbers", + "description": "API for managing AvailablePhoneNumbers" + }, + { + "name": "IncomingPhoneNumbers", + "description": "API for managing IncomingPhoneNumbers" + }, + { + "name": "KnowledgeBases", + "description": "API for managing KnowledgeBases" + }, + { + "name": "Calls", + "description": "API for managing Calls" + }, + { + "name": "Conferences", + "description": "API for managing Conferences" + }, + { + "name": "Queues", + "description": "API for managing Queues" + }, + { + "name": "Logs", + "description": "API for managing Logs" + }, + { + "name": "Recordings", + "description": "API for managing Recordings" + }, + { + "name": "Messages", + "description": "API for managing Messages" + }, + { + "name": "Exports", + "description": "API for managing Exports" + }, + { + "name": "Blobs", + "description": "API for managing Blobs" + } + ], "x-headers": [], "x-explorer-enabled": true, "x-proxy-enabled": true, diff --git a/src/main/java/com/github/freeclimbapi/DefaultApi.java b/src/main/java/com/github/freeclimbapi/DefaultApi.java index 41083cc3..f4eebd7b 100644 --- a/src/main/java/com/github/freeclimbapi/DefaultApi.java +++ b/src/main/java/com/github/freeclimbapi/DefaultApi.java @@ -664,6 +664,181 @@ public okhttp3.Call createAnApplicationAsync( return localVarCall; } + /** + * Build call for createBlob + * + * @param createBlobRequest An object defining a new blob. A request body must be provided but + * the blob may be empty. (required) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + * + * + * + * + * + * + * + * + *
Status Code Description Response Headers
201 Successful creation of a new blob. -
400 Generic platform bad request. -
409 A blob with the provided alias already exists oln the requesting account and so this new blob is rejected as there cannot be duplicate alises. -
413 The blob exceeded one of the size limits. Either it itself is too large or it would push the total sum of all blobs over the account's limit. -
422 Generic platform unprocessible entity response. -
500 Generic platform internal error. -
+ */ + public okhttp3.Call createBlobCall( + CreateBlobRequest createBlobRequest, final ApiCallback _callback) throws ApiException { + String basePath = null; + + // Operation Servers + String[] localBasePaths = new String[] {}; + + // Determine Base Path to Use + if (localCustomBaseUrl != null) { + basePath = localCustomBaseUrl; + } else if (localBasePaths.length > 0) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = createBlobRequest; + + // create path and map variables + String localVarPath = + "/Accounts/{accountId}/Blobs" + .replaceAll( + "\\{" + "accountId" + "\\}", + localVarApiClient.escapeString(accountId.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = {"application/json"}; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = {"application/json"}; + final String localVarContentType = + localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } else { + localVarHeaderParams.put("Content-Type", ""); + } + + String[] localVarAuthNames = new String[] {"fc"}; + return localVarApiClient.buildCall( + basePath, + localVarPath, + "POST", + localVarQueryParams, + localVarCollectionQueryParams, + localVarPostBody, + localVarHeaderParams, + localVarCookieParams, + localVarFormParams, + localVarAuthNames, + _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call createBlobValidateBeforeCall( + CreateBlobRequest createBlobRequest, final ApiCallback _callback) throws ApiException { + + // verify the required parameter 'createBlobRequest' is set + if (createBlobRequest == null) { + throw new ApiException( + "Missing the required parameter 'createBlobRequest' when calling" + + " createBlob(Async)"); + } + + okhttp3.Call localVarCall = createBlobCall(createBlobRequest, _callback); + return localVarCall; + } + + /** + * Create a Blob Create a new Blob belonging to the requesting account. + * + * @param createBlobRequest An object defining a new blob. A request body must be provided but + * the blob may be empty. (required) + * @return BlobResult + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the + * response body + * @http.response.details + * + * + * + * + * + * + * + * + *
Status Code Description Response Headers
201 Successful creation of a new blob. -
400 Generic platform bad request. -
409 A blob with the provided alias already exists oln the requesting account and so this new blob is rejected as there cannot be duplicate alises. -
413 The blob exceeded one of the size limits. Either it itself is too large or it would push the total sum of all blobs over the account's limit. -
422 Generic platform unprocessible entity response. -
500 Generic platform internal error. -
+ */ + public BlobResult createBlob(CreateBlobRequest createBlobRequest) throws ApiException { + ApiResponse localVarResp = createBlobWithHttpInfo(createBlobRequest); + return localVarResp.getData(); + } + + /** + * Create a Blob Create a new Blob belonging to the requesting account. + * + * @param createBlobRequest An object defining a new blob. A request body must be provided but + * the blob may be empty. (required) + * @return ApiResponse<BlobResult> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the + * response body + * @http.response.details + * + * + * + * + * + * + * + * + *
Status Code Description Response Headers
201 Successful creation of a new blob. -
400 Generic platform bad request. -
409 A blob with the provided alias already exists oln the requesting account and so this new blob is rejected as there cannot be duplicate alises. -
413 The blob exceeded one of the size limits. Either it itself is too large or it would push the total sum of all blobs over the account's limit. -
422 Generic platform unprocessible entity response. -
500 Generic platform internal error. -
+ */ + public ApiResponse createBlobWithHttpInfo(CreateBlobRequest createBlobRequest) + throws ApiException { + okhttp3.Call localVarCall = createBlobValidateBeforeCall(createBlobRequest, null); + Type localVarReturnType = new TypeToken() {}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * Create a Blob (asynchronously) Create a new Blob belonging to the requesting account. + * + * @param createBlobRequest An object defining a new blob. A request body must be provided but + * the blob may be empty. (required) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body + * object + * @http.response.details + * + * + * + * + * + * + * + * + *
Status Code Description Response Headers
201 Successful creation of a new blob. -
400 Generic platform bad request. -
409 A blob with the provided alias already exists oln the requesting account and so this new blob is rejected as there cannot be duplicate alises. -
413 The blob exceeded one of the size limits. Either it itself is too large or it would push the total sum of all blobs over the account's limit. -
422 Generic platform unprocessible entity response. -
500 Generic platform internal error. -
+ */ + public okhttp3.Call createBlobAsync( + CreateBlobRequest createBlobRequest, final ApiCallback _callback) + throws ApiException { + + okhttp3.Call localVarCall = createBlobValidateBeforeCall(createBlobRequest, _callback); + Type localVarReturnType = new TypeToken() {}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** * Build call for createExport * @@ -1587,6 +1762,195 @@ public okhttp3.Call deleteAnIncomingNumberAsync( return localVarCall; } + /** + * Build call for deleteBlob + * + * @param blobId String that uniquely identifies this Blob resource. (required) + * @param key key within blob to remove (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + * + * + * + * + * + * + * + * + *
Status Code Description Response Headers
200 Blob keys deleted successfully, remaining blob returned. -
204 Successful operation -
404 Generic platform not found error. -
422 Generic platform unprocessible entity response. -
500 Generic platform internal error. -
504 gateway timeout error -
+ */ + public okhttp3.Call deleteBlobCall(String blobId, List key, final ApiCallback _callback) + throws ApiException { + String basePath = null; + + // Operation Servers + String[] localBasePaths = new String[] {}; + + // Determine Base Path to Use + if (localCustomBaseUrl != null) { + basePath = localCustomBaseUrl; + } else if (localBasePaths.length > 0) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = + "/Accounts/{accountId}/Blobs/{blobId}" + .replaceAll( + "\\{" + "accountId" + "\\}", + localVarApiClient.escapeString(accountId.toString())) + .replaceAll( + "\\{" + "blobId" + "\\}", + localVarApiClient.escapeString(blobId.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + if (key != null) { + localVarCollectionQueryParams.addAll( + localVarApiClient.parameterToPairs("multi", "key", key)); + } + + final String[] localVarAccepts = {"application/json"}; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = {}; + + final String localVarContentType = + localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } else { + localVarHeaderParams.put("Content-Type", ""); + } + + String[] localVarAuthNames = new String[] {"fc"}; + return localVarApiClient.buildCall( + basePath, + localVarPath, + "DELETE", + localVarQueryParams, + localVarCollectionQueryParams, + localVarPostBody, + localVarHeaderParams, + localVarCookieParams, + localVarFormParams, + localVarAuthNames, + _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call deleteBlobValidateBeforeCall( + String blobId, List key, final ApiCallback _callback) throws ApiException { + + // verify the required parameter 'blobId' is set + if (blobId == null) { + throw new ApiException( + "Missing the required parameter 'blobId' when calling deleteBlob(Async)"); + } + + okhttp3.Call localVarCall = deleteBlobCall(blobId, key, _callback); + return localVarCall; + } + + /** + * Delete Blob Deletes a blob or specific keys from a blob. If no keys are specified in the + * request body, the entire blob is deleted (returns 204). If specific keys are provided, only + * those keys are removed and the remaining blob is returned (returns 200). + * + * @param blobId String that uniquely identifies this Blob resource. (required) + * @param key key within blob to remove (optional) + * @return BlobResult + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the + * response body + * @http.response.details + * + * + * + * + * + * + * + * + *
Status Code Description Response Headers
200 Blob keys deleted successfully, remaining blob returned. -
204 Successful operation -
404 Generic platform not found error. -
422 Generic platform unprocessible entity response. -
500 Generic platform internal error. -
504 gateway timeout error -
+ */ + public BlobResult deleteBlob(String blobId, List key) throws ApiException { + ApiResponse localVarResp = deleteBlobWithHttpInfo(blobId, key); + return localVarResp.getData(); + } + + /** + * Delete Blob Deletes a blob or specific keys from a blob. If no keys are specified in the + * request body, the entire blob is deleted (returns 204). If specific keys are provided, only + * those keys are removed and the remaining blob is returned (returns 200). + * + * @param blobId String that uniquely identifies this Blob resource. (required) + * @param key key within blob to remove (optional) + * @return ApiResponse<BlobResult> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the + * response body + * @http.response.details + * + * + * + * + * + * + * + * + *
Status Code Description Response Headers
200 Blob keys deleted successfully, remaining blob returned. -
204 Successful operation -
404 Generic platform not found error. -
422 Generic platform unprocessible entity response. -
500 Generic platform internal error. -
504 gateway timeout error -
+ */ + public ApiResponse deleteBlobWithHttpInfo(String blobId, List key) + throws ApiException { + okhttp3.Call localVarCall = deleteBlobValidateBeforeCall(blobId, key, null); + Type localVarReturnType = new TypeToken() {}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * Delete Blob (asynchronously) Deletes a blob or specific keys from a blob. If no keys are + * specified in the request body, the entire blob is deleted (returns 204). If specific keys are + * provided, only those keys are removed and the remaining blob is returned (returns 200). + * + * @param blobId String that uniquely identifies this Blob resource. (required) + * @param key key within blob to remove (optional) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body + * object + * @http.response.details + * + * + * + * + * + * + * + * + *
Status Code Description Response Headers
200 Blob keys deleted successfully, remaining blob returned. -
204 Successful operation -
404 Generic platform not found error. -
422 Generic platform unprocessible entity response. -
500 Generic platform internal error. -
504 gateway timeout error -
+ */ + public okhttp3.Call deleteBlobAsync( + String blobId, List key, final ApiCallback _callback) + throws ApiException { + + okhttp3.Call localVarCall = deleteBlobValidateBeforeCall(blobId, key, _callback); + Type localVarReturnType = new TypeToken() {}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** * Build call for dequeueAMember * @@ -1922,7 +2286,7 @@ public okhttp3.Call dequeueHeadMemberAsync( * @http.response.details * * - * + * *
Status Code Description Response Headers
200 Download a Recording file represented with audio/x-wav mime-type -
200 Download a Recording file represented with audio/wav mime-type -
*/ public okhttp3.Call downloadARecordingFileCall(String recordingId, final ApiCallback _callback) @@ -1959,7 +2323,7 @@ public okhttp3.Call downloadARecordingFileCall(String recordingId, final ApiCall Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); - final String[] localVarAccepts = {"audio/x-wav"}; + final String[] localVarAccepts = {"audio/wav"}; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { localVarHeaderParams.put("Accept", localVarAccept); @@ -2015,7 +2379,7 @@ private okhttp3.Call downloadARecordingFileValidateBeforeCall( * @http.response.details * * - * + * *
Status Code Description Response Headers
200 Download a Recording file represented with audio/x-wav mime-type -
200 Download a Recording file represented with audio/wav mime-type -
*/ public File downloadARecordingFile(String recordingId) throws ApiException { @@ -2033,7 +2397,7 @@ public File downloadARecordingFile(String recordingId) throws ApiException { * @http.response.details * * - * + * *
Status Code Description Response Headers
200 Download a Recording file represented with audio/x-wav mime-type -
200 Download a Recording file represented with audio/wav mime-type -
*/ public ApiResponse downloadARecordingFileWithHttpInfo(String recordingId) @@ -2054,7 +2418,7 @@ public ApiResponse downloadARecordingFileWithHttpInfo(String recordingId) * @http.response.details * * - * + * *
Status Code Description Response Headers
200 Download a Recording file represented with audio/x-wav mime-type -
200 Download a Recording file represented with audio/wav mime-type -
*/ public okhttp3.Call downloadARecordingFileAsync( @@ -4084,20 +4448,22 @@ public okhttp3.Call getAnSmsMessageAsync( } /** - * Build call for getHeadMember + * Build call for getBlob * - * @param queueId String that uniquely identifies the Queue that the Member belongs to. - * (required) + * @param blobId String that uniquely identifies this Blob resource. (required) * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details * * - * + * + * + * + * *
Status Code Description Response Headers
200 Successfully retrieved queue member -
200 Retrieve a Blob. -
404 Generic platform not found error. -
500 Generic platform internal error. -
504 gateway timeout error -
*/ - public okhttp3.Call getHeadMemberCall(String queueId, final ApiCallback _callback) + public okhttp3.Call getBlobCall(String blobId, final ApiCallback _callback) throws ApiException { String basePath = null; @@ -4117,13 +4483,13 @@ public okhttp3.Call getHeadMemberCall(String queueId, final ApiCallback _callbac // create path and map variables String localVarPath = - "/Accounts/{accountId}/Queues/{queueId}/Members/Front" + "/Accounts/{accountId}/Blobs/{blobId}" .replaceAll( "\\{" + "accountId" + "\\}", localVarApiClient.escapeString(accountId.toString())) .replaceAll( - "\\{" + "queueId" + "\\}", - localVarApiClient.escapeString(queueId.toString())); + "\\{" + "blobId" + "\\}", + localVarApiClient.escapeString(blobId.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -4163,16 +4529,178 @@ public okhttp3.Call getHeadMemberCall(String queueId, final ApiCallback _callbac } @SuppressWarnings("rawtypes") - private okhttp3.Call getHeadMemberValidateBeforeCall( - String queueId, final ApiCallback _callback) throws ApiException { + private okhttp3.Call getBlobValidateBeforeCall(String blobId, final ApiCallback _callback) + throws ApiException { - // verify the required parameter 'queueId' is set - if (queueId == null) { + // verify the required parameter 'blobId' is set + if (blobId == null) { throw new ApiException( - "Missing the required parameter 'queueId' when calling getHeadMember(Async)"); + "Missing the required parameter 'blobId' when calling getBlob(Async)"); } - okhttp3.Call localVarCall = getHeadMemberCall(queueId, _callback); + okhttp3.Call localVarCall = getBlobCall(blobId, _callback); + return localVarCall; + } + + /** + * Get Blob Retrieves a specified blob + * + * @param blobId String that uniquely identifies this Blob resource. (required) + * @return BlobResult + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the + * response body + * @http.response.details + * + * + * + * + * + * + *
Status Code Description Response Headers
200 Retrieve a Blob. -
404 Generic platform not found error. -
500 Generic platform internal error. -
504 gateway timeout error -
+ */ + public BlobResult getBlob(String blobId) throws ApiException { + ApiResponse localVarResp = getBlobWithHttpInfo(blobId); + return localVarResp.getData(); + } + + /** + * Get Blob Retrieves a specified blob + * + * @param blobId String that uniquely identifies this Blob resource. (required) + * @return ApiResponse<BlobResult> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the + * response body + * @http.response.details + * + * + * + * + * + * + *
Status Code Description Response Headers
200 Retrieve a Blob. -
404 Generic platform not found error. -
500 Generic platform internal error. -
504 gateway timeout error -
+ */ + public ApiResponse getBlobWithHttpInfo(String blobId) throws ApiException { + okhttp3.Call localVarCall = getBlobValidateBeforeCall(blobId, null); + Type localVarReturnType = new TypeToken() {}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * Get Blob (asynchronously) Retrieves a specified blob + * + * @param blobId String that uniquely identifies this Blob resource. (required) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body + * object + * @http.response.details + * + * + * + * + * + * + *
Status Code Description Response Headers
200 Retrieve a Blob. -
404 Generic platform not found error. -
500 Generic platform internal error. -
504 gateway timeout error -
+ */ + public okhttp3.Call getBlobAsync(String blobId, final ApiCallback _callback) + throws ApiException { + + okhttp3.Call localVarCall = getBlobValidateBeforeCall(blobId, _callback); + Type localVarReturnType = new TypeToken() {}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + + /** + * Build call for getHeadMember + * + * @param queueId String that uniquely identifies the Queue that the Member belongs to. + * (required) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + * + * + * + *
Status Code Description Response Headers
200 Successfully retrieved queue member -
+ */ + public okhttp3.Call getHeadMemberCall(String queueId, final ApiCallback _callback) + throws ApiException { + String basePath = null; + + // Operation Servers + String[] localBasePaths = new String[] {}; + + // Determine Base Path to Use + if (localCustomBaseUrl != null) { + basePath = localCustomBaseUrl; + } else if (localBasePaths.length > 0) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = + "/Accounts/{accountId}/Queues/{queueId}/Members/Front" + .replaceAll( + "\\{" + "accountId" + "\\}", + localVarApiClient.escapeString(accountId.toString())) + .replaceAll( + "\\{" + "queueId" + "\\}", + localVarApiClient.escapeString(queueId.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = {"application/json"}; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = {}; + + final String localVarContentType = + localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } else { + localVarHeaderParams.put("Content-Type", ""); + } + + String[] localVarAuthNames = new String[] {"fc"}; + return localVarApiClient.buildCall( + basePath, + localVarPath, + "GET", + localVarQueryParams, + localVarCollectionQueryParams, + localVarPostBody, + localVarHeaderParams, + localVarCookieParams, + localVarFormParams, + localVarAuthNames, + _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call getHeadMemberValidateBeforeCall( + String queueId, final ApiCallback _callback) throws ApiException { + + // verify the required parameter 'queueId' is set + if (queueId == null) { + throw new ApiException( + "Missing the required parameter 'queueId' when calling getHeadMember(Async)"); + } + + okhttp3.Call localVarCall = getHeadMemberCall(queueId, _callback); return localVarCall; } @@ -6219,19 +6747,23 @@ public okhttp3.Call listAvailableNumbersAsync( } /** - * Build call for listCallLogs + * Build call for listBlobs * - * @param callId String that uniquely identifies this call resource. (required) + * @param alias Filter blobs by alias (optional) + * @param cursor Used to reference pages of a list of blobs (optional) * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details * * - * + * + * + * + * *
Status Code Description Response Headers
200 Logs for this call -
200 Single page of blob list results. -
400 Generic platform bad request. -
500 Generic platform internal error. -
504 gateway timeout error -
*/ - public okhttp3.Call listCallLogsCall(String callId, final ApiCallback _callback) + public okhttp3.Call listBlobsCall(String alias, String cursor, final ApiCallback _callback) throws ApiException { String basePath = null; @@ -6251,13 +6783,10 @@ public okhttp3.Call listCallLogsCall(String callId, final ApiCallback _callback) // create path and map variables String localVarPath = - "/Accounts/{accountId}/Calls/{callId}/Logs" + "/Accounts/{accountId}/Blobs" .replaceAll( "\\{" + "accountId" + "\\}", - localVarApiClient.escapeString(accountId.toString())) - .replaceAll( - "\\{" + "callId" + "\\}", - localVarApiClient.escapeString(callId.toString())); + localVarApiClient.escapeString(accountId.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -6265,6 +6794,14 @@ public okhttp3.Call listCallLogsCall(String callId, final ApiCallback _callback) Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); + if (alias != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("alias", alias)); + } + + if (cursor != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("cursor", cursor)); + } + final String[] localVarAccepts = {"application/json"}; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -6297,60 +6834,67 @@ public okhttp3.Call listCallLogsCall(String callId, final ApiCallback _callback) } @SuppressWarnings("rawtypes") - private okhttp3.Call listCallLogsValidateBeforeCall(String callId, final ApiCallback _callback) - throws ApiException { - - // verify the required parameter 'callId' is set - if (callId == null) { - throw new ApiException( - "Missing the required parameter 'callId' when calling listCallLogs(Async)"); - } + private okhttp3.Call listBlobsValidateBeforeCall( + String alias, String cursor, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = listCallLogsCall(callId, _callback); + okhttp3.Call localVarCall = listBlobsCall(alias, cursor, _callback); return localVarCall; } /** - * List Call Logs + * List Blobs belonging to an account. List Blobs belonging to an account. Results are returned + * in paginated lists mirroring other listing features in the API. * - * @param callId String that uniquely identifies this call resource. (required) - * @return LogList + * @param alias Filter blobs by alias (optional) + * @param cursor Used to reference pages of a list of blobs (optional) + * @return BlobListResponse * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the * response body * @http.response.details * * - * + * + * + * + * *
Status Code Description Response Headers
200 Logs for this call -
200 Single page of blob list results. -
400 Generic platform bad request. -
500 Generic platform internal error. -
504 gateway timeout error -
*/ - public LogList listCallLogs(String callId) throws ApiException { - ApiResponse localVarResp = listCallLogsWithHttpInfo(callId); + public BlobListResponse listBlobs(String alias, String cursor) throws ApiException { + ApiResponse localVarResp = listBlobsWithHttpInfo(alias, cursor); return localVarResp.getData(); } /** - * List Call Logs + * List Blobs belonging to an account. List Blobs belonging to an account. Results are returned + * in paginated lists mirroring other listing features in the API. * - * @param callId String that uniquely identifies this call resource. (required) - * @return ApiResponse<LogList> + * @param alias Filter blobs by alias (optional) + * @param cursor Used to reference pages of a list of blobs (optional) + * @return ApiResponse<BlobListResponse> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the * response body * @http.response.details * * - * + * + * + * + * *
Status Code Description Response Headers
200 Logs for this call -
200 Single page of blob list results. -
400 Generic platform bad request. -
500 Generic platform internal error. -
504 gateway timeout error -
*/ - public ApiResponse listCallLogsWithHttpInfo(String callId) throws ApiException { - okhttp3.Call localVarCall = listCallLogsValidateBeforeCall(callId, null); - Type localVarReturnType = new TypeToken() {}.getType(); + public ApiResponse listBlobsWithHttpInfo(String alias, String cursor) + throws ApiException { + okhttp3.Call localVarCall = listBlobsValidateBeforeCall(alias, cursor, null); + Type localVarReturnType = new TypeToken() {}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } /** - * List Call Logs (asynchronously) + * List Blobs belonging to an account. (asynchronously) List Blobs belonging to an account. + * Results are returned in paginated lists mirroring other listing features in the API. * - * @param callId String that uniquely identifies this call resource. (required) + * @param alias Filter blobs by alias (optional) + * @param cursor Used to reference pages of a list of blobs (optional) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body @@ -6358,35 +6902,37 @@ public ApiResponse listCallLogsWithHttpInfo(String callId) throws ApiEx * @http.response.details * * - * + * + * + * + * *
Status Code Description Response Headers
200 Logs for this call -
200 Single page of blob list results. -
400 Generic platform bad request. -
500 Generic platform internal error. -
504 gateway timeout error -
*/ - public okhttp3.Call listCallLogsAsync(String callId, final ApiCallback _callback) + public okhttp3.Call listBlobsAsync( + String alias, String cursor, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = listCallLogsValidateBeforeCall(callId, _callback); - Type localVarReturnType = new TypeToken() {}.getType(); + okhttp3.Call localVarCall = listBlobsValidateBeforeCall(alias, cursor, _callback); + Type localVarReturnType = new TypeToken() {}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } /** - * Build call for listCallRecordings + * Build call for listCallLogs * * @param callId String that uniquely identifies this call resource. (required) - * @param dateCreated Only show recordings created on the specified date, in the form - * *YYYY-MM-DD*. (optional) * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details * * - * + * *
Status Code Description Response Headers
200 List of recordings for a call -
200 Logs for this call -
*/ - public okhttp3.Call listCallRecordingsCall( - String callId, String dateCreated, final ApiCallback _callback) throws ApiException { + public okhttp3.Call listCallLogsCall(String callId, final ApiCallback _callback) + throws ApiException { String basePath = null; // Operation Servers @@ -6405,7 +6951,7 @@ public okhttp3.Call listCallRecordingsCall( // create path and map variables String localVarPath = - "/Accounts/{accountId}/Calls/{callId}/Recordings" + "/Accounts/{accountId}/Calls/{callId}/Logs" .replaceAll( "\\{" + "accountId" + "\\}", localVarApiClient.escapeString(accountId.toString())) @@ -6419,11 +6965,6 @@ public okhttp3.Call listCallRecordingsCall( Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); - if (dateCreated != null) { - localVarQueryParams.addAll( - localVarApiClient.parameterToPair("dateCreated", dateCreated)); - } - final String[] localVarAccepts = {"application/json"}; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -6456,69 +6997,60 @@ public okhttp3.Call listCallRecordingsCall( } @SuppressWarnings("rawtypes") - private okhttp3.Call listCallRecordingsValidateBeforeCall( - String callId, String dateCreated, final ApiCallback _callback) throws ApiException { + private okhttp3.Call listCallLogsValidateBeforeCall(String callId, final ApiCallback _callback) + throws ApiException { // verify the required parameter 'callId' is set if (callId == null) { throw new ApiException( - "Missing the required parameter 'callId' when calling" - + " listCallRecordings(Async)"); + "Missing the required parameter 'callId' when calling listCallLogs(Async)"); } - okhttp3.Call localVarCall = listCallRecordingsCall(callId, dateCreated, _callback); + okhttp3.Call localVarCall = listCallLogsCall(callId, _callback); return localVarCall; } /** - * List Call Recordings + * List Call Logs * * @param callId String that uniquely identifies this call resource. (required) - * @param dateCreated Only show recordings created on the specified date, in the form - * *YYYY-MM-DD*. (optional) - * @return RecordingList + * @return LogList * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the * response body * @http.response.details * * - * + * *
Status Code Description Response Headers
200 List of recordings for a call -
200 Logs for this call -
*/ - public RecordingList listCallRecordings(String callId, String dateCreated) throws ApiException { - ApiResponse localVarResp = - listCallRecordingsWithHttpInfo(callId, dateCreated); + public LogList listCallLogs(String callId) throws ApiException { + ApiResponse localVarResp = listCallLogsWithHttpInfo(callId); return localVarResp.getData(); } /** - * List Call Recordings + * List Call Logs * * @param callId String that uniquely identifies this call resource. (required) - * @param dateCreated Only show recordings created on the specified date, in the form - * *YYYY-MM-DD*. (optional) - * @return ApiResponse<RecordingList> + * @return ApiResponse<LogList> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the * response body * @http.response.details * * - * + * *
Status Code Description Response Headers
200 List of recordings for a call -
200 Logs for this call -
*/ - public ApiResponse listCallRecordingsWithHttpInfo( - String callId, String dateCreated) throws ApiException { - okhttp3.Call localVarCall = listCallRecordingsValidateBeforeCall(callId, dateCreated, null); - Type localVarReturnType = new TypeToken() {}.getType(); + public ApiResponse listCallLogsWithHttpInfo(String callId) throws ApiException { + okhttp3.Call localVarCall = listCallLogsValidateBeforeCall(callId, null); + Type localVarReturnType = new TypeToken() {}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } /** - * List Call Recordings (asynchronously) + * List Call Logs (asynchronously) * * @param callId String that uniquely identifies this call resource. (required) - * @param dateCreated Only show recordings created on the specified date, in the form - * *YYYY-MM-DD*. (optional) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body @@ -6526,28 +7058,196 @@ public ApiResponse listCallRecordingsWithHttpInfo( * @http.response.details * * - * + * *
Status Code Description Response Headers
200 List of recordings for a call -
200 Logs for this call -
*/ - public okhttp3.Call listCallRecordingsAsync( - String callId, String dateCreated, final ApiCallback _callback) + public okhttp3.Call listCallLogsAsync(String callId, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = - listCallRecordingsValidateBeforeCall(callId, dateCreated, _callback); - Type localVarReturnType = new TypeToken() {}.getType(); + okhttp3.Call localVarCall = listCallLogsValidateBeforeCall(callId, _callback); + Type localVarReturnType = new TypeToken() {}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } /** - * Build call for listCalls + * Build call for listCallRecordings * - * @param active If active is set to true then all calls of the nature queued, ringing, - * inProgress are returned in the query. (optional, default to false) - * @param to Only show Calls to this phone number. (optional) - * @param from Only show Calls from this phone number. (optional) - * @param status Only show Calls currently in this status. May be `queued`, + * @param callId String that uniquely identifies this call resource. (required) + * @param dateCreated Only show recordings created on the specified date, in the form + * *YYYY-MM-DD*. (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + * + * + * + *
Status Code Description Response Headers
200 List of recordings for a call -
+ */ + public okhttp3.Call listCallRecordingsCall( + String callId, String dateCreated, final ApiCallback _callback) throws ApiException { + String basePath = null; + + // Operation Servers + String[] localBasePaths = new String[] {}; + + // Determine Base Path to Use + if (localCustomBaseUrl != null) { + basePath = localCustomBaseUrl; + } else if (localBasePaths.length > 0) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = + "/Accounts/{accountId}/Calls/{callId}/Recordings" + .replaceAll( + "\\{" + "accountId" + "\\}", + localVarApiClient.escapeString(accountId.toString())) + .replaceAll( + "\\{" + "callId" + "\\}", + localVarApiClient.escapeString(callId.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + if (dateCreated != null) { + localVarQueryParams.addAll( + localVarApiClient.parameterToPair("dateCreated", dateCreated)); + } + + final String[] localVarAccepts = {"application/json"}; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = {}; + + final String localVarContentType = + localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } else { + localVarHeaderParams.put("Content-Type", ""); + } + + String[] localVarAuthNames = new String[] {"fc"}; + return localVarApiClient.buildCall( + basePath, + localVarPath, + "GET", + localVarQueryParams, + localVarCollectionQueryParams, + localVarPostBody, + localVarHeaderParams, + localVarCookieParams, + localVarFormParams, + localVarAuthNames, + _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call listCallRecordingsValidateBeforeCall( + String callId, String dateCreated, final ApiCallback _callback) throws ApiException { + + // verify the required parameter 'callId' is set + if (callId == null) { + throw new ApiException( + "Missing the required parameter 'callId' when calling" + + " listCallRecordings(Async)"); + } + + okhttp3.Call localVarCall = listCallRecordingsCall(callId, dateCreated, _callback); + return localVarCall; + } + + /** + * List Call Recordings + * + * @param callId String that uniquely identifies this call resource. (required) + * @param dateCreated Only show recordings created on the specified date, in the form + * *YYYY-MM-DD*. (optional) + * @return RecordingList + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the + * response body + * @http.response.details + * + * + * + *
Status Code Description Response Headers
200 List of recordings for a call -
+ */ + public RecordingList listCallRecordings(String callId, String dateCreated) throws ApiException { + ApiResponse localVarResp = + listCallRecordingsWithHttpInfo(callId, dateCreated); + return localVarResp.getData(); + } + + /** + * List Call Recordings + * + * @param callId String that uniquely identifies this call resource. (required) + * @param dateCreated Only show recordings created on the specified date, in the form + * *YYYY-MM-DD*. (optional) + * @return ApiResponse<RecordingList> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the + * response body + * @http.response.details + * + * + * + *
Status Code Description Response Headers
200 List of recordings for a call -
+ */ + public ApiResponse listCallRecordingsWithHttpInfo( + String callId, String dateCreated) throws ApiException { + okhttp3.Call localVarCall = listCallRecordingsValidateBeforeCall(callId, dateCreated, null); + Type localVarReturnType = new TypeToken() {}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * List Call Recordings (asynchronously) + * + * @param callId String that uniquely identifies this call resource. (required) + * @param dateCreated Only show recordings created on the specified date, in the form + * *YYYY-MM-DD*. (optional) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body + * object + * @http.response.details + * + * + * + *
Status Code Description Response Headers
200 List of recordings for a call -
+ */ + public okhttp3.Call listCallRecordingsAsync( + String callId, String dateCreated, final ApiCallback _callback) + throws ApiException { + + okhttp3.Call localVarCall = + listCallRecordingsValidateBeforeCall(callId, dateCreated, _callback); + Type localVarReturnType = new TypeToken() {}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + + /** + * Build call for listCalls + * + * @param active If active is set to true then all calls of the nature queued, ringing, + * inProgress are returned in the query. (optional, default to false) + * @param to Only show Calls to this phone number. (optional) + * @param from Only show Calls from this phone number. (optional) + * @param status Only show Calls currently in this status. May be `queued`, * `ringing`, `inProgress`, `canceled`, `completed`, * `failed`, `busy`, or `noAnswer`. (optional) * @param startTime Only show Calls that started at or after this time, given as YYYY-MM-DD @@ -7460,10 +8160,6 @@ public okhttp3.Call listExportsAsync( * number is not useful until associated with an applicationId. (optional) * @param hasApplication Indication of whether the phone number has an application linked to it. * (optional, default to false) - * @param voiceEnabled Indicates whether the phone number can handle Calls. Typically set to - * true for all numbers. (optional, default to true) - * @param smsEnabled Indication of whether the phone number can handle sending and receiving SMS - * messages. Typically set to true for all numbers. (optional, default to true) * @param hasCampaign Indication of whether the phone number has a campaign associated with it * (optional) * @param capabilitiesVoice (optional) @@ -7491,8 +8187,6 @@ public okhttp3.Call listIncomingNumbersCall( String country, String applicationId, Boolean hasApplication, - Boolean voiceEnabled, - Boolean smsEnabled, Boolean hasCampaign, Boolean capabilitiesVoice, Boolean capabilitiesSms, @@ -7559,15 +8253,6 @@ public okhttp3.Call listIncomingNumbersCall( localVarApiClient.parameterToPair("hasApplication", hasApplication)); } - if (voiceEnabled != null) { - localVarQueryParams.addAll( - localVarApiClient.parameterToPair("voiceEnabled", voiceEnabled)); - } - - if (smsEnabled != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("smsEnabled", smsEnabled)); - } - if (hasCampaign != null) { localVarQueryParams.addAll( localVarApiClient.parameterToPair("hasCampaign", hasCampaign)); @@ -7648,8 +8333,6 @@ private okhttp3.Call listIncomingNumbersValidateBeforeCall( String country, String applicationId, Boolean hasApplication, - Boolean voiceEnabled, - Boolean smsEnabled, Boolean hasCampaign, Boolean capabilitiesVoice, Boolean capabilitiesSms, @@ -7669,8 +8352,6 @@ private okhttp3.Call listIncomingNumbersValidateBeforeCall( country, applicationId, hasApplication, - voiceEnabled, - smsEnabled, hasCampaign, capabilitiesVoice, capabilitiesSms, @@ -7697,10 +8378,6 @@ private okhttp3.Call listIncomingNumbersValidateBeforeCall( * number is not useful until associated with an applicationId. (optional) * @param hasApplication Indication of whether the phone number has an application linked to it. * (optional, default to false) - * @param voiceEnabled Indicates whether the phone number can handle Calls. Typically set to - * true for all numbers. (optional, default to true) - * @param smsEnabled Indication of whether the phone number can handle sending and receiving SMS - * messages. Typically set to true for all numbers. (optional, default to true) * @param hasCampaign Indication of whether the phone number has a campaign associated with it * (optional) * @param capabilitiesVoice (optional) @@ -7728,8 +8405,6 @@ public IncomingNumberList listIncomingNumbers( String country, String applicationId, Boolean hasApplication, - Boolean voiceEnabled, - Boolean smsEnabled, Boolean hasCampaign, Boolean capabilitiesVoice, Boolean capabilitiesSms, @@ -7747,8 +8422,6 @@ public IncomingNumberList listIncomingNumbers( country, applicationId, hasApplication, - voiceEnabled, - smsEnabled, hasCampaign, capabilitiesVoice, capabilitiesSms, @@ -7774,10 +8447,6 @@ public IncomingNumberList listIncomingNumbers( * number is not useful until associated with an applicationId. (optional) * @param hasApplication Indication of whether the phone number has an application linked to it. * (optional, default to false) - * @param voiceEnabled Indicates whether the phone number can handle Calls. Typically set to - * true for all numbers. (optional, default to true) - * @param smsEnabled Indication of whether the phone number can handle sending and receiving SMS - * messages. Typically set to true for all numbers. (optional, default to true) * @param hasCampaign Indication of whether the phone number has a campaign associated with it * (optional) * @param capabilitiesVoice (optional) @@ -7805,8 +8474,6 @@ public ApiResponse listIncomingNumbersWithHttpInfo( String country, String applicationId, Boolean hasApplication, - Boolean voiceEnabled, - Boolean smsEnabled, Boolean hasCampaign, Boolean capabilitiesVoice, Boolean capabilitiesSms, @@ -7824,8 +8491,6 @@ public ApiResponse listIncomingNumbersWithHttpInfo( country, applicationId, hasApplication, - voiceEnabled, - smsEnabled, hasCampaign, capabilitiesVoice, capabilitiesSms, @@ -7853,10 +8518,6 @@ public ApiResponse listIncomingNumbersWithHttpInfo( * number is not useful until associated with an applicationId. (optional) * @param hasApplication Indication of whether the phone number has an application linked to it. * (optional, default to false) - * @param voiceEnabled Indicates whether the phone number can handle Calls. Typically set to - * true for all numbers. (optional, default to true) - * @param smsEnabled Indication of whether the phone number can handle sending and receiving SMS - * messages. Typically set to true for all numbers. (optional, default to true) * @param hasCampaign Indication of whether the phone number has a campaign associated with it * (optional) * @param capabilitiesVoice (optional) @@ -7885,8 +8546,6 @@ public okhttp3.Call listIncomingNumbersAsync( String country, String applicationId, Boolean hasApplication, - Boolean voiceEnabled, - Boolean smsEnabled, Boolean hasCampaign, Boolean capabilitiesVoice, Boolean capabilitiesSms, @@ -7906,8 +8565,6 @@ public okhttp3.Call listIncomingNumbersAsync( country, applicationId, hasApplication, - voiceEnabled, - smsEnabled, hasCampaign, capabilitiesVoice, capabilitiesSms, @@ -9054,6 +9711,199 @@ public okhttp3.Call makeAWebrtcJwtAsync( return localVarCall; } + /** + * Build call for modifyBlob + * + * @param blobId String that uniquely identifies this Blob resource. (required) + * @param modifyBlobRequest Request body to specify keys to modify. Or new keys to add onto the + * already existing blob (required) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + * + * + * + * + * + * + * + *
Status Code Description Response Headers
200 Blob keys successfully modified, updated blob returned. -
404 Generic platform not found error. -
409 Generic platform status conflict error. -
413 Generic platform status request entity too large. -
500 Generic platform internal error. -
+ */ + public okhttp3.Call modifyBlobCall( + String blobId, ModifyBlobRequest modifyBlobRequest, final ApiCallback _callback) + throws ApiException { + String basePath = null; + + // Operation Servers + String[] localBasePaths = new String[] {}; + + // Determine Base Path to Use + if (localCustomBaseUrl != null) { + basePath = localCustomBaseUrl; + } else if (localBasePaths.length > 0) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = modifyBlobRequest; + + // create path and map variables + String localVarPath = + "/Accounts/{accountId}/Blobs/{blobId}" + .replaceAll( + "\\{" + "accountId" + "\\}", + localVarApiClient.escapeString(accountId.toString())) + .replaceAll( + "\\{" + "blobId" + "\\}", + localVarApiClient.escapeString(blobId.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = {"application/json"}; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = {"application/json"}; + final String localVarContentType = + localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } else { + localVarHeaderParams.put("Content-Type", ""); + } + + String[] localVarAuthNames = new String[] {"fc"}; + return localVarApiClient.buildCall( + basePath, + localVarPath, + "PATCH", + localVarQueryParams, + localVarCollectionQueryParams, + localVarPostBody, + localVarHeaderParams, + localVarCookieParams, + localVarFormParams, + localVarAuthNames, + _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call modifyBlobValidateBeforeCall( + String blobId, ModifyBlobRequest modifyBlobRequest, final ApiCallback _callback) + throws ApiException { + + // verify the required parameter 'blobId' is set + if (blobId == null) { + throw new ApiException( + "Missing the required parameter 'blobId' when calling modifyBlob(Async)"); + } + + // verify the required parameter 'modifyBlobRequest' is set + if (modifyBlobRequest == null) { + throw new ApiException( + "Missing the required parameter 'modifyBlobRequest' when calling" + + " modifyBlob(Async)"); + } + + okhttp3.Call localVarCall = modifyBlobCall(blobId, modifyBlobRequest, _callback); + return localVarCall; + } + + /** + * Modify Blob Modifys a pre existing blob by either adding new fields, or modifying existing + * fields + * + * @param blobId String that uniquely identifies this Blob resource. (required) + * @param modifyBlobRequest Request body to specify keys to modify. Or new keys to add onto the + * already existing blob (required) + * @return BlobResult + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the + * response body + * @http.response.details + * + * + * + * + * + * + * + *
Status Code Description Response Headers
200 Blob keys successfully modified, updated blob returned. -
404 Generic platform not found error. -
409 Generic platform status conflict error. -
413 Generic platform status request entity too large. -
500 Generic platform internal error. -
+ */ + public BlobResult modifyBlob(String blobId, ModifyBlobRequest modifyBlobRequest) + throws ApiException { + ApiResponse localVarResp = modifyBlobWithHttpInfo(blobId, modifyBlobRequest); + return localVarResp.getData(); + } + + /** + * Modify Blob Modifys a pre existing blob by either adding new fields, or modifying existing + * fields + * + * @param blobId String that uniquely identifies this Blob resource. (required) + * @param modifyBlobRequest Request body to specify keys to modify. Or new keys to add onto the + * already existing blob (required) + * @return ApiResponse<BlobResult> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the + * response body + * @http.response.details + * + * + * + * + * + * + * + *
Status Code Description Response Headers
200 Blob keys successfully modified, updated blob returned. -
404 Generic platform not found error. -
409 Generic platform status conflict error. -
413 Generic platform status request entity too large. -
500 Generic platform internal error. -
+ */ + public ApiResponse modifyBlobWithHttpInfo( + String blobId, ModifyBlobRequest modifyBlobRequest) throws ApiException { + okhttp3.Call localVarCall = modifyBlobValidateBeforeCall(blobId, modifyBlobRequest, null); + Type localVarReturnType = new TypeToken() {}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * Modify Blob (asynchronously) Modifys a pre existing blob by either adding new fields, or + * modifying existing fields + * + * @param blobId String that uniquely identifies this Blob resource. (required) + * @param modifyBlobRequest Request body to specify keys to modify. Or new keys to add onto the + * already existing blob (required) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body + * object + * @http.response.details + * + * + * + * + * + * + * + *
Status Code Description Response Headers
200 Blob keys successfully modified, updated blob returned. -
404 Generic platform not found error. -
409 Generic platform status conflict error. -
413 Generic platform status request entity too large. -
500 Generic platform internal error. -
+ */ + public okhttp3.Call modifyBlobAsync( + String blobId, + ModifyBlobRequest modifyBlobRequest, + final ApiCallback _callback) + throws ApiException { + + okhttp3.Call localVarCall = + modifyBlobValidateBeforeCall(blobId, modifyBlobRequest, _callback); + Type localVarReturnType = new TypeToken() {}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** * Build call for removeAParticipant * @@ -9222,6 +10072,196 @@ public okhttp3.Call removeAParticipantAsync( return localVarCall; } + /** + * Build call for replaceBlob + * + * @param blobId String that uniquely identifies this Blob resource. (required) + * @param replaceBlobRequest JSON object containing blob key the contents of which will be used + * to override the enitre blob contents. (required) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + * + * + * + * + * + * + * + *
Status Code Description Response Headers
200 Replaces all keys in blob with those provided. -
404 Generic platform not found error. -
409 Generic platform status conflict error. -
413 Generic platform status request entity too large. -
500 Generic platform internal error. -
+ */ + public okhttp3.Call replaceBlobCall( + String blobId, ReplaceBlobRequest replaceBlobRequest, final ApiCallback _callback) + throws ApiException { + String basePath = null; + + // Operation Servers + String[] localBasePaths = new String[] {}; + + // Determine Base Path to Use + if (localCustomBaseUrl != null) { + basePath = localCustomBaseUrl; + } else if (localBasePaths.length > 0) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = replaceBlobRequest; + + // create path and map variables + String localVarPath = + "/Accounts/{accountId}/Blobs/{blobId}" + .replaceAll( + "\\{" + "accountId" + "\\}", + localVarApiClient.escapeString(accountId.toString())) + .replaceAll( + "\\{" + "blobId" + "\\}", + localVarApiClient.escapeString(blobId.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = {"application/json"}; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = {"application/json"}; + final String localVarContentType = + localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } else { + localVarHeaderParams.put("Content-Type", ""); + } + + String[] localVarAuthNames = new String[] {"fc"}; + return localVarApiClient.buildCall( + basePath, + localVarPath, + "PUT", + localVarQueryParams, + localVarCollectionQueryParams, + localVarPostBody, + localVarHeaderParams, + localVarCookieParams, + localVarFormParams, + localVarAuthNames, + _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call replaceBlobValidateBeforeCall( + String blobId, ReplaceBlobRequest replaceBlobRequest, final ApiCallback _callback) + throws ApiException { + + // verify the required parameter 'blobId' is set + if (blobId == null) { + throw new ApiException( + "Missing the required parameter 'blobId' when calling replaceBlob(Async)"); + } + + // verify the required parameter 'replaceBlobRequest' is set + if (replaceBlobRequest == null) { + throw new ApiException( + "Missing the required parameter 'replaceBlobRequest' when calling" + + " replaceBlob(Async)"); + } + + okhttp3.Call localVarCall = replaceBlobCall(blobId, replaceBlobRequest, _callback); + return localVarCall; + } + + /** + * Replace Blob Replaces the blob content with the provided values. + * + * @param blobId String that uniquely identifies this Blob resource. (required) + * @param replaceBlobRequest JSON object containing blob key the contents of which will be used + * to override the enitre blob contents. (required) + * @return BlobResult + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the + * response body + * @http.response.details + * + * + * + * + * + * + * + *
Status Code Description Response Headers
200 Replaces all keys in blob with those provided. -
404 Generic platform not found error. -
409 Generic platform status conflict error. -
413 Generic platform status request entity too large. -
500 Generic platform internal error. -
+ */ + public BlobResult replaceBlob(String blobId, ReplaceBlobRequest replaceBlobRequest) + throws ApiException { + ApiResponse localVarResp = replaceBlobWithHttpInfo(blobId, replaceBlobRequest); + return localVarResp.getData(); + } + + /** + * Replace Blob Replaces the blob content with the provided values. + * + * @param blobId String that uniquely identifies this Blob resource. (required) + * @param replaceBlobRequest JSON object containing blob key the contents of which will be used + * to override the enitre blob contents. (required) + * @return ApiResponse<BlobResult> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the + * response body + * @http.response.details + * + * + * + * + * + * + * + *
Status Code Description Response Headers
200 Replaces all keys in blob with those provided. -
404 Generic platform not found error. -
409 Generic platform status conflict error. -
413 Generic platform status request entity too large. -
500 Generic platform internal error. -
+ */ + public ApiResponse replaceBlobWithHttpInfo( + String blobId, ReplaceBlobRequest replaceBlobRequest) throws ApiException { + okhttp3.Call localVarCall = replaceBlobValidateBeforeCall(blobId, replaceBlobRequest, null); + Type localVarReturnType = new TypeToken() {}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * Replace Blob (asynchronously) Replaces the blob content with the provided values. + * + * @param blobId String that uniquely identifies this Blob resource. (required) + * @param replaceBlobRequest JSON object containing blob key the contents of which will be used + * to override the enitre blob contents. (required) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body + * object + * @http.response.details + * + * + * + * + * + * + * + *
Status Code Description Response Headers
200 Replaces all keys in blob with those provided. -
404 Generic platform not found error. -
409 Generic platform status conflict error. -
413 Generic platform status request entity too large. -
500 Generic platform internal error. -
+ */ + public okhttp3.Call replaceBlobAsync( + String blobId, + ReplaceBlobRequest replaceBlobRequest, + final ApiCallback _callback) + throws ApiException { + + okhttp3.Call localVarCall = + replaceBlobValidateBeforeCall(blobId, replaceBlobRequest, _callback); + Type localVarReturnType = new TypeToken() {}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** * Build call for sendAnSmsMessage * @@ -9383,7 +10423,7 @@ public okhttp3.Call sendAnSmsMessageAsync( * @http.response.details * * - * + * *
Status Code Description Response Headers
200 Streaming a Recording represented with audio/x-wav mime-type -
200 Streaming a Recording represented with audio/wav mime-type -
*/ public okhttp3.Call streamARecordingFileCall(String recordingId, final ApiCallback _callback) @@ -9420,7 +10460,7 @@ public okhttp3.Call streamARecordingFileCall(String recordingId, final ApiCallba Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); - final String[] localVarAccepts = {"audio/x-wav"}; + final String[] localVarAccepts = {"audio/wav"}; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { localVarHeaderParams.put("Accept", localVarAccept); @@ -9476,7 +10516,7 @@ private okhttp3.Call streamARecordingFileValidateBeforeCall( * @http.response.details * * - * + * *
Status Code Description Response Headers
200 Streaming a Recording represented with audio/x-wav mime-type -
200 Streaming a Recording represented with audio/wav mime-type -
*/ public File streamARecordingFile(String recordingId) throws ApiException { @@ -9494,7 +10534,7 @@ public File streamARecordingFile(String recordingId) throws ApiException { * @http.response.details * * - * + * *
Status Code Description Response Headers
200 Streaming a Recording represented with audio/x-wav mime-type -
200 Streaming a Recording represented with audio/wav mime-type -
*/ public ApiResponse streamARecordingFileWithHttpInfo(String recordingId) @@ -9515,7 +10555,7 @@ public ApiResponse streamARecordingFileWithHttpInfo(String recordingId) * @http.response.details * * - * + * *
Status Code Description Response Headers
200 Streaming a Recording represented with audio/x-wav mime-type -
200 Streaming a Recording represented with audio/wav mime-type -
*/ public okhttp3.Call streamARecordingFileAsync( diff --git a/src/main/java/com/github/freeclimbapi/enums/SayNeuralTextType.java b/src/main/java/com/github/freeclimbapi/enums/SayNeuralTextType.java new file mode 100644 index 00000000..f7059f30 --- /dev/null +++ b/src/main/java/com/github/freeclimbapi/enums/SayNeuralTextType.java @@ -0,0 +1,69 @@ +/* + * FreeClimb API + * FreeClimb is a cloud-based application programming interface (API) that puts the power of the Vail platform in your hands. FreeClimb simplifies the process of creating applications that can use a full range of telephony features without requiring specialized or on-site telephony equipment. Using the FreeClimb REST API to write applications is easy! You have the option to use the language of your choice or hit the API directly. Your application can execute a command by issuing a RESTful request to the FreeClimb API. The base URL to send HTTP requests to the FreeClimb REST API is: /apiserver. FreeClimb authenticates and processes your request. + * + * The version of the OpenAPI document: 1.0.0 + * Contact: support@freeclimb.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +package com.github.freeclimbapi.enums; + +import com.github.freeclimbapi.models.*; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; + +/** + * The type of text to use for the TTS. The complete list of valid values for the text type + * attribute is shown below. + */ +@JsonAdapter(SayNeuralTextType.Adapter.class) +public enum SayNeuralTextType { + TEXT("text"), + + SSML("ssml"); + + private String value; + + SayNeuralTextType(String value) { + this.value = value; + } + + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + public static SayNeuralTextType fromValue(String value) { + for (SayNeuralTextType b : SayNeuralTextType.values()) { + if (b.value.equals(value)) { + return b; + } + } + throw new IllegalArgumentException("Unexpected value '" + value + "'"); + } + + public static class Adapter extends TypeAdapter { + @Override + public void write(final JsonWriter jsonWriter, final SayNeuralTextType enumeration) + throws IOException { + jsonWriter.value(enumeration.getValue()); + } + + @Override + public SayNeuralTextType read(final JsonReader jsonReader) throws IOException { + String value = jsonReader.nextString(); + return SayNeuralTextType.fromValue(value); + } + } +} diff --git a/src/main/java/com/github/freeclimbapi/enums/SayStandardContentType.java b/src/main/java/com/github/freeclimbapi/enums/SayStandardContentType.java new file mode 100644 index 00000000..9e0223ee --- /dev/null +++ b/src/main/java/com/github/freeclimbapi/enums/SayStandardContentType.java @@ -0,0 +1,69 @@ +/* + * FreeClimb API + * FreeClimb is a cloud-based application programming interface (API) that puts the power of the Vail platform in your hands. FreeClimb simplifies the process of creating applications that can use a full range of telephony features without requiring specialized or on-site telephony equipment. Using the FreeClimb REST API to write applications is easy! You have the option to use the language of your choice or hit the API directly. Your application can execute a command by issuing a RESTful request to the FreeClimb API. The base URL to send HTTP requests to the FreeClimb REST API is: /apiserver. FreeClimb authenticates and processes your request. + * + * The version of the OpenAPI document: 1.0.0 + * Contact: support@freeclimb.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +package com.github.freeclimbapi.enums; + +import com.github.freeclimbapi.models.*; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; + +/** + * The content type to use for the TTS. The complete list of valid values for the content type + * attribute is shown below. + */ +@JsonAdapter(SayStandardContentType.Adapter.class) +public enum SayStandardContentType { + TEXT_PLAIN("text/plain"), + + APPLICATION_SSML_XML("application/ssml+xml"); + + private String value; + + SayStandardContentType(String value) { + this.value = value; + } + + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + public static SayStandardContentType fromValue(String value) { + for (SayStandardContentType b : SayStandardContentType.values()) { + if (b.value.equals(value)) { + return b; + } + } + throw new IllegalArgumentException("Unexpected value '" + value + "'"); + } + + public static class Adapter extends TypeAdapter { + @Override + public void write(final JsonWriter jsonWriter, final SayStandardContentType enumeration) + throws IOException { + jsonWriter.value(enumeration.getValue()); + } + + @Override + public SayStandardContentType read(final JsonReader jsonReader) throws IOException { + String value = jsonReader.nextString(); + return SayStandardContentType.fromValue(value); + } + } +} diff --git a/src/main/java/com/github/freeclimbapi/enums/SayStandardCulture.java b/src/main/java/com/github/freeclimbapi/enums/SayStandardCulture.java new file mode 100644 index 00000000..c87ca79a --- /dev/null +++ b/src/main/java/com/github/freeclimbapi/enums/SayStandardCulture.java @@ -0,0 +1,117 @@ +/* + * FreeClimb API + * FreeClimb is a cloud-based application programming interface (API) that puts the power of the Vail platform in your hands. FreeClimb simplifies the process of creating applications that can use a full range of telephony features without requiring specialized or on-site telephony equipment. Using the FreeClimb REST API to write applications is easy! You have the option to use the language of your choice or hit the API directly. Your application can execute a command by issuing a RESTful request to the FreeClimb API. The base URL to send HTTP requests to the FreeClimb REST API is: /apiserver. FreeClimb authenticates and processes your request. + * + * The version of the OpenAPI document: 1.0.0 + * Contact: support@freeclimb.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +package com.github.freeclimbapi.enums; + +import com.github.freeclimbapi.models.*; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; + +/** + * The culture to use for the TTS. The complete list of valid values for the culture attribute is + * shown below. + */ +@JsonAdapter(SayStandardCulture.Adapter.class) +public enum SayStandardCulture { + CA_ES("ca-ES"), + + DA_DK("da-DK"), + + DE_DE("de-DE"), + + EN_AU("en-AU"), + + EN_CA("en-CA"), + + EN_GB("en-GB"), + + EN_IN("en-IN"), + + EN_US("en-US"), + + ES_ES("es-ES"), + + ES_MX("es-MX"), + + FI_FI("fi-FI"), + + FR_CA("fr-CA"), + + FR_FR("fr-FR"), + + IT_IT("it-IT"), + + JA_JP("ja-JP"), + + KO_KR("ko-KR"), + + NB_NO("nb-NO"), + + NL_NL("nl-NL"), + + PL_PL("pl-PL"), + + PT_BR("pt-BR"), + + PT_PT("pt-PT"), + + RU_RU("ru-RU"), + + SV_SE("sv-SE"), + + ZH_CN("zh-CN"), + + ZH_HK("zh-HK"), + + ZH_TW("zh-TW"); + + private String value; + + SayStandardCulture(String value) { + this.value = value; + } + + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + public static SayStandardCulture fromValue(String value) { + for (SayStandardCulture b : SayStandardCulture.values()) { + if (b.value.equals(value)) { + return b; + } + } + throw new IllegalArgumentException("Unexpected value '" + value + "'"); + } + + public static class Adapter extends TypeAdapter { + @Override + public void write(final JsonWriter jsonWriter, final SayStandardCulture enumeration) + throws IOException { + jsonWriter.value(enumeration.getValue()); + } + + @Override + public SayStandardCulture read(final JsonReader jsonReader) throws IOException { + String value = jsonReader.nextString(); + return SayStandardCulture.fromValue(value); + } + } +} diff --git a/src/main/java/com/github/freeclimbapi/enums/SayStandardVoice.java b/src/main/java/com/github/freeclimbapi/enums/SayStandardVoice.java new file mode 100644 index 00000000..25f30932 --- /dev/null +++ b/src/main/java/com/github/freeclimbapi/enums/SayStandardVoice.java @@ -0,0 +1,117 @@ +/* + * FreeClimb API + * FreeClimb is a cloud-based application programming interface (API) that puts the power of the Vail platform in your hands. FreeClimb simplifies the process of creating applications that can use a full range of telephony features without requiring specialized or on-site telephony equipment. Using the FreeClimb REST API to write applications is easy! You have the option to use the language of your choice or hit the API directly. Your application can execute a command by issuing a RESTful request to the FreeClimb API. The base URL to send HTTP requests to the FreeClimb REST API is: /apiserver. FreeClimb authenticates and processes your request. + * + * The version of the OpenAPI document: 1.0.0 + * Contact: support@freeclimb.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +package com.github.freeclimbapi.enums; + +import com.github.freeclimbapi.models.*; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; + +/** + * The voice to use for the TTS. The complete list of valid values for the voice attribute is shown + * below. + */ +@JsonAdapter(SayStandardVoice.Adapter.class) +public enum SayStandardVoice { + HERENA("Herena"), + + HELLE("Helle"), + + HEDDA("Hedda"), + + HAYLEY("Hayley"), + + HEATHER("Heather"), + + HAZEL("Hazel"), + + HEERA("Heera"), + + HELEN("Helen"), + + ZIRA_PRO("ZiraPro"), + + HELENA("Helena"), + + HILDA("Hilda"), + + HEIDI("Heidi"), + + HARMONIE("Harmonie"), + + HORTENSE("Hortense"), + + LUCIA("Lucia"), + + HARKUA("Harkua"), + + HEAMI("Heami"), + + HULDA("Hulda"), + + HANNA("Hanna"), + + PAULINA("Paulina"), + + HELOSIA("Helosia"), + + HELIA("Helia"), + + ELENA("Elena"), + + HEDVIG("Hedvig"), + + HUN_YEE("HunYee"), + + HAN_HAN("HanHan"); + + private String value; + + SayStandardVoice(String value) { + this.value = value; + } + + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + public static SayStandardVoice fromValue(String value) { + for (SayStandardVoice b : SayStandardVoice.values()) { + if (b.value.equals(value)) { + return b; + } + } + throw new IllegalArgumentException("Unexpected value '" + value + "'"); + } + + public static class Adapter extends TypeAdapter { + @Override + public void write(final JsonWriter jsonWriter, final SayStandardVoice enumeration) + throws IOException { + jsonWriter.value(enumeration.getValue()); + } + + @Override + public SayStandardVoice read(final JsonReader jsonReader) throws IOException { + String value = jsonReader.nextString(); + return SayStandardVoice.fromValue(value); + } + } +} diff --git a/src/main/java/com/github/freeclimbapi/models/AvailableNumber.java b/src/main/java/com/github/freeclimbapi/models/AvailableNumber.java index dcd4d57b..2a2f1b90 100644 --- a/src/main/java/com/github/freeclimbapi/models/AvailableNumber.java +++ b/src/main/java/com/github/freeclimbapi/models/AvailableNumber.java @@ -42,16 +42,6 @@ public static String getDiscriminatorValue() { @SerializedName(SERIALIZED_NAME_PHONE_NUMBER) private String phoneNumber; - public static final String SERIALIZED_NAME_VOICE_ENABLED = "voiceEnabled"; - - @SerializedName(SERIALIZED_NAME_VOICE_ENABLED) - private Boolean voiceEnabled; - - public static final String SERIALIZED_NAME_SMS_ENABLED = "smsEnabled"; - - @SerializedName(SERIALIZED_NAME_SMS_ENABLED) - private Boolean smsEnabled; - public static final String SERIALIZED_NAME_REGION = "region"; @SerializedName(SERIALIZED_NAME_REGION) @@ -130,53 +120,6 @@ public void setPhoneNumber(String phoneNumber) { this.phoneNumber = phoneNumber; } - public AvailableNumber voiceEnabled(Boolean voiceEnabled) { - - this.voiceEnabled = voiceEnabled; - return this; - } - - /** - * Typically set to true for all numbers. - * - * @return voiceEnabled - * @deprecated - */ - @Deprecated - @javax.annotation.Nullable - @ApiModelProperty(value = "Typically set to true for all numbers.") - public Boolean getVoiceEnabled() { - return voiceEnabled; - } - - public void setVoiceEnabled(Boolean voiceEnabled) { - this.voiceEnabled = voiceEnabled; - } - - public AvailableNumber smsEnabled(Boolean smsEnabled) { - - this.smsEnabled = smsEnabled; - return this; - } - - /** - * Indicates whether the phone number can send and receive SMS messages. - * - * @return smsEnabled - * @deprecated - */ - @Deprecated - @javax.annotation.Nullable - @ApiModelProperty( - value = "Indicates whether the phone number can send and receive SMS messages.") - public Boolean getSmsEnabled() { - return smsEnabled; - } - - public void setSmsEnabled(Boolean smsEnabled) { - this.smsEnabled = smsEnabled; - } - public AvailableNumber region(String region) { this.region = region; @@ -231,8 +174,6 @@ public boolean equals(Object o) { return Objects.equals(this.capabilities, availableNumber.capabilities) && Objects.equals(this.campaignId, availableNumber.campaignId) && Objects.equals(this.phoneNumber, availableNumber.phoneNumber) - && Objects.equals(this.voiceEnabled, availableNumber.voiceEnabled) - && Objects.equals(this.smsEnabled, availableNumber.smsEnabled) && Objects.equals(this.region, availableNumber.region) && Objects.equals(this.country, availableNumber.country); } @@ -248,8 +189,7 @@ private static boolean equalsNullable(JsonNullable a, JsonNullable b) @Override public int hashCode() { - return Objects.hash( - capabilities, campaignId, phoneNumber, voiceEnabled, smsEnabled, region, country); + return Objects.hash(capabilities, campaignId, phoneNumber, region, country); } private static int hashCodeNullable(JsonNullable a) { @@ -266,8 +206,6 @@ public String toString() { sb.append(" capabilities: ").append(toIndentedString(capabilities)).append("\n"); sb.append(" campaignId: ").append(toIndentedString(campaignId)).append("\n"); sb.append(" phoneNumber: ").append(toIndentedString(phoneNumber)).append("\n"); - sb.append(" voiceEnabled: ").append(toIndentedString(voiceEnabled)).append("\n"); - sb.append(" smsEnabled: ").append(toIndentedString(smsEnabled)).append("\n"); sb.append(" region: ").append(toIndentedString(region)).append("\n"); sb.append(" country: ").append(toIndentedString(country)).append("\n"); sb.append("}"); diff --git a/src/main/java/com/github/freeclimbapi/models/BlobListResponse.java b/src/main/java/com/github/freeclimbapi/models/BlobListResponse.java new file mode 100644 index 00000000..a1e2b76b --- /dev/null +++ b/src/main/java/com/github/freeclimbapi/models/BlobListResponse.java @@ -0,0 +1,317 @@ +/* + * FreeClimb API + * FreeClimb is a cloud-based application programming interface (API) that puts the power of the Vail platform in your hands. FreeClimb simplifies the process of creating applications that can use a full range of telephony features without requiring specialized or on-site telephony equipment. Using the FreeClimb REST API to write applications is easy! You have the option to use the language of your choice or hit the API directly. Your application can execute a command by issuing a RESTful request to the FreeClimb API. The base URL to send HTTP requests to the FreeClimb REST API is: /apiserver. FreeClimb authenticates and processes your request. + * + * The version of the OpenAPI document: 1.0.0 + * Contact: support@freeclimb.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +package com.github.freeclimbapi.models; + +import com.github.freeclimbapi.enums.*; +import com.github.freeclimbapi.utils.*; +import com.google.gson.annotations.SerializedName; +import io.swagger.annotations.ApiModelProperty; +import java.util.*; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.List; +import java.util.Objects; +import org.openapitools.jackson.nullable.JsonNullable; + +/** BlobListResponse */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +public class BlobListResponse implements Pagination { + public static String getDiscriminatorValue() { + return null; + } + + public static final String SERIALIZED_NAME_TOTAL = "total"; + + @SerializedName(SERIALIZED_NAME_TOTAL) + private Integer total; + + public static final String SERIALIZED_NAME_START = "start"; + + @SerializedName(SERIALIZED_NAME_START) + private Integer start; + + public static final String SERIALIZED_NAME_END = "end"; + + @SerializedName(SERIALIZED_NAME_END) + private Integer end; + + public static final String SERIALIZED_NAME_PAGE = "page"; + + @SerializedName(SERIALIZED_NAME_PAGE) + private Integer page; + + public static final String SERIALIZED_NAME_NUM_PAGES = "numPages"; + + @SerializedName(SERIALIZED_NAME_NUM_PAGES) + private Integer numPages; + + public static final String SERIALIZED_NAME_PAGE_SIZE = "pageSize"; + + @SerializedName(SERIALIZED_NAME_PAGE_SIZE) + private Integer pageSize; + + public static final String SERIALIZED_NAME_NEXT_PAGE_URI = "nextPageUri"; + + @SerializedName(SERIALIZED_NAME_NEXT_PAGE_URI) + private String nextPageUri; + + public static final String SERIALIZED_NAME_BLOBS = "blobs"; + + @SerializedName(SERIALIZED_NAME_BLOBS) + private List blobs = null; + + public BlobListResponse() {} + + public BlobListResponse total(Integer total) { + + this.total = total; + return this; + } + + /** + * Total amount of requested resource. + * + * @return total + */ + @javax.annotation.Nullable + @ApiModelProperty(value = "Total amount of requested resource.") + public Integer getTotal() { + return total; + } + + public void setTotal(Integer total) { + this.total = total; + } + + public BlobListResponse start(Integer start) { + + this.start = start; + return this; + } + + /** + * Resource index at start of current page + * + * @return start + */ + @javax.annotation.Nullable + @ApiModelProperty(value = "Resource index at start of current page") + public Integer getStart() { + return start; + } + + public void setStart(Integer start) { + this.start = start; + } + + public BlobListResponse end(Integer end) { + + this.end = end; + return this; + } + + /** + * Resource index at end of current page + * + * @return end + */ + @javax.annotation.Nullable + @ApiModelProperty(value = "Resource index at end of current page") + public Integer getEnd() { + return end; + } + + public void setEnd(Integer end) { + this.end = end; + } + + public BlobListResponse page(Integer page) { + + this.page = page; + return this; + } + + /** + * Current page + * + * @return page + */ + @javax.annotation.Nullable + @ApiModelProperty(value = "Current page") + public Integer getPage() { + return page; + } + + public void setPage(Integer page) { + this.page = page; + } + + public BlobListResponse numPages(Integer numPages) { + + this.numPages = numPages; + return this; + } + + /** + * Total number of pages + * + * @return numPages + */ + @javax.annotation.Nullable + @ApiModelProperty(value = "Total number of pages") + public Integer getNumPages() { + return numPages; + } + + public void setNumPages(Integer numPages) { + this.numPages = numPages; + } + + public BlobListResponse pageSize(Integer pageSize) { + + this.pageSize = pageSize; + return this; + } + + /** + * Number of items per page + * + * @return pageSize + */ + @javax.annotation.Nullable + @ApiModelProperty(value = "Number of items per page") + public Integer getPageSize() { + return pageSize; + } + + public void setPageSize(Integer pageSize) { + this.pageSize = pageSize; + } + + public BlobListResponse nextPageUri(String nextPageUri) { + + this.nextPageUri = nextPageUri; + return this; + } + + /** + * Uri to retrieve the next page of items + * + * @return nextPageUri + */ + @javax.annotation.Nullable + @ApiModelProperty(value = "Uri to retrieve the next page of items") + public String getNextPageUri() { + return nextPageUri; + } + + public void setNextPageUri(String nextPageUri) { + this.nextPageUri = nextPageUri; + } + + public BlobListResponse blobs(List blobs) { + + this.blobs = blobs; + return this; + } + + public BlobListResponse addBlobsItem(BlobResult blobsItem) { + if (this.blobs == null) { + this.blobs = new ArrayList(); + } + this.blobs.add(blobsItem); + return this; + } + + /** + * Get blobs + * + * @return blobs + */ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + public List getBlobs() { + return blobs; + } + + public void setBlobs(List blobs) { + this.blobs = blobs; + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + BlobListResponse blobListResponse = (BlobListResponse) o; + return Objects.equals(this.total, blobListResponse.total) + && Objects.equals(this.start, blobListResponse.start) + && Objects.equals(this.end, blobListResponse.end) + && Objects.equals(this.page, blobListResponse.page) + && Objects.equals(this.numPages, blobListResponse.numPages) + && Objects.equals(this.pageSize, blobListResponse.pageSize) + && Objects.equals(this.nextPageUri, blobListResponse.nextPageUri) + && Objects.equals(this.blobs, blobListResponse.blobs); + } + + private static boolean equalsNullable(JsonNullable a, JsonNullable b) { + return a == b + || (a != null + && b != null + && a.isPresent() + && b.isPresent() + && Objects.deepEquals(a.get(), b.get())); + } + + @Override + public int hashCode() { + return Objects.hash(total, start, end, page, numPages, pageSize, nextPageUri, blobs); + } + + private static int hashCodeNullable(JsonNullable a) { + if (a == null) { + return 1; + } + return a.isPresent() ? Arrays.deepHashCode(new Object[] {a.get()}) : 31; + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class BlobListResponse {\n"); + sb.append(" total: ").append(toIndentedString(total)).append("\n"); + sb.append(" start: ").append(toIndentedString(start)).append("\n"); + sb.append(" end: ").append(toIndentedString(end)).append("\n"); + sb.append(" page: ").append(toIndentedString(page)).append("\n"); + sb.append(" numPages: ").append(toIndentedString(numPages)).append("\n"); + sb.append(" pageSize: ").append(toIndentedString(pageSize)).append("\n"); + sb.append(" nextPageUri: ").append(toIndentedString(nextPageUri)).append("\n"); + sb.append(" blobs: ").append(toIndentedString(blobs)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces (except the first + * line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} diff --git a/src/main/java/com/github/freeclimbapi/models/BlobResult.java b/src/main/java/com/github/freeclimbapi/models/BlobResult.java new file mode 100644 index 00000000..7182898e --- /dev/null +++ b/src/main/java/com/github/freeclimbapi/models/BlobResult.java @@ -0,0 +1,310 @@ +/* + * FreeClimb API + * FreeClimb is a cloud-based application programming interface (API) that puts the power of the Vail platform in your hands. FreeClimb simplifies the process of creating applications that can use a full range of telephony features without requiring specialized or on-site telephony equipment. Using the FreeClimb REST API to write applications is easy! You have the option to use the language of your choice or hit the API directly. Your application can execute a command by issuing a RESTful request to the FreeClimb API. The base URL to send HTTP requests to the FreeClimb REST API is: /apiserver. FreeClimb authenticates and processes your request. + * + * The version of the OpenAPI document: 1.0.0 + * Contact: support@freeclimb.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +package com.github.freeclimbapi.models; + +import com.github.freeclimbapi.enums.*; +import com.google.gson.annotations.SerializedName; +import io.swagger.annotations.ApiModelProperty; +import java.util.*; +import java.util.Objects; +import org.threeten.bp.OffsetDateTime; + +/** BlobResult */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +public class BlobResult { + public static String getDiscriminatorValue() { + return null; + } + + public static final String SERIALIZED_NAME_BLOB_ID = "blobId"; + + @SerializedName(SERIALIZED_NAME_BLOB_ID) + private String blobId; + + public static final String SERIALIZED_NAME_ACCOUNT_ID = "accountId"; + + @SerializedName(SERIALIZED_NAME_ACCOUNT_ID) + private String accountId; + + public static final String SERIALIZED_NAME_ALIAS = "alias"; + + @SerializedName(SERIALIZED_NAME_ALIAS) + private String alias; + + public static final String SERIALIZED_NAME_REVISION = "revision"; + + @SerializedName(SERIALIZED_NAME_REVISION) + private Integer revision; + + public static final String SERIALIZED_NAME_DATE_CREATED = "dateCreated"; + + @SerializedName(SERIALIZED_NAME_DATE_CREATED) + private OffsetDateTime dateCreated; + + public static final String SERIALIZED_NAME_DATE_UPDATED = "dateUpdated"; + + @SerializedName(SERIALIZED_NAME_DATE_UPDATED) + private OffsetDateTime dateUpdated; + + public static final String SERIALIZED_NAME_EXPIRES_AT = "expiresAt"; + + @SerializedName(SERIALIZED_NAME_EXPIRES_AT) + private OffsetDateTime expiresAt; + + public static final String SERIALIZED_NAME_BLOB = "blob"; + + @SerializedName(SERIALIZED_NAME_BLOB) + private Object blob; + + public BlobResult() {} + + public BlobResult blobId(String blobId) { + + this.blobId = blobId; + return this; + } + + /** + * Identifier which can be used to reference this blob in future interations. + * + * @return blobId + */ + @javax.annotation.Nullable + @ApiModelProperty( + example = "BL88615a9b4ca7e9aad57d9057773fc74268b9caf7", + value = "Identifier which can be used to reference this blob in future interations.") + public String getBlobId() { + return blobId; + } + + public void setBlobId(String blobId) { + this.blobId = blobId; + } + + public BlobResult accountId(String accountId) { + + this.accountId = accountId; + return this; + } + + /** + * Get accountId + * + * @return accountId + */ + @javax.annotation.Nullable + @ApiModelProperty(example = "AC0534faec6b32da45f36166674d65b3903f784141", value = "") + public String getAccountId() { + return accountId; + } + + public void setAccountId(String accountId) { + this.accountId = accountId; + } + + public BlobResult alias(String alias) { + + this.alias = alias; + return this; + } + + /** + * Custom identifier for this blob that is unique for the owning account. It will be set to the + * blobId by default if not provided in the creation request. + * + * @return alias + */ + @javax.annotation.Nullable + @ApiModelProperty( + value = + "Custom identifier for this blob that is unique for the owning account. It will" + + " be set to the blobId by default if not provided in the creation" + + " request.") + public String getAlias() { + return alias; + } + + public void setAlias(String alias) { + this.alias = alias; + } + + public BlobResult revision(Integer revision) { + + this.revision = revision; + return this; + } + + /** + * Get revision + * + * @return revision + */ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + public Integer getRevision() { + return revision; + } + + public void setRevision(Integer revision) { + this.revision = revision; + } + + public BlobResult dateCreated(OffsetDateTime dateCreated) { + + this.dateCreated = dateCreated; + return this; + } + + /** + * An RFC3339 timestamp with millisecond resolution. It represents the time this blob was + * created. + * + * @return dateCreated + */ + @javax.annotation.Nullable + @ApiModelProperty( + value = + "An RFC3339 timestamp with millisecond resolution. It represents the time this" + + " blob was created.") + public OffsetDateTime getDateCreated() { + return dateCreated; + } + + public void setDateCreated(OffsetDateTime dateCreated) { + this.dateCreated = dateCreated; + } + + public BlobResult dateUpdated(OffsetDateTime dateUpdated) { + + this.dateUpdated = dateUpdated; + return this; + } + + /** + * An RFC3339 timestamp with millisecond resolution. It represents the time this blob was last + * modified, which at creation will always equal dateCreated. + * + * @return dateUpdated + */ + @javax.annotation.Nullable + @ApiModelProperty( + value = + "An RFC3339 timestamp with millisecond resolution. It represents the time this" + + " blob was last modified, which at creation will always equal" + + " dateCreated.") + public OffsetDateTime getDateUpdated() { + return dateUpdated; + } + + public void setDateUpdated(OffsetDateTime dateUpdated) { + this.dateUpdated = dateUpdated; + } + + public BlobResult expiresAt(OffsetDateTime expiresAt) { + + this.expiresAt = expiresAt; + return this; + } + + /** + * An RFC3339 timestamp with millisecond resolution. It represents the time at which this blob + * will expire and self delete. + * + * @return expiresAt + */ + @javax.annotation.Nullable + @ApiModelProperty( + value = + "An RFC3339 timestamp with millisecond resolution. It represents the time at" + + " which this blob will expire and self delete.") + public OffsetDateTime getExpiresAt() { + return expiresAt; + } + + public void setExpiresAt(OffsetDateTime expiresAt) { + this.expiresAt = expiresAt; + } + + public BlobResult blob(Object blob) { + + this.blob = blob; + return this; + } + + /** + * Blob content + * + * @return blob + */ + @javax.annotation.Nullable + @ApiModelProperty(value = "Blob content") + public Object getBlob() { + return blob; + } + + public void setBlob(Object blob) { + this.blob = blob; + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + BlobResult blobResult = (BlobResult) o; + return Objects.equals(this.blobId, blobResult.blobId) + && Objects.equals(this.accountId, blobResult.accountId) + && Objects.equals(this.alias, blobResult.alias) + && Objects.equals(this.revision, blobResult.revision) + && Objects.equals(this.dateCreated, blobResult.dateCreated) + && Objects.equals(this.dateUpdated, blobResult.dateUpdated) + && Objects.equals(this.expiresAt, blobResult.expiresAt) + && Objects.equals(this.blob, blobResult.blob); + } + + @Override + public int hashCode() { + return Objects.hash( + blobId, accountId, alias, revision, dateCreated, dateUpdated, expiresAt, blob); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class BlobResult {\n"); + sb.append(" blobId: ").append(toIndentedString(blobId)).append("\n"); + sb.append(" accountId: ").append(toIndentedString(accountId)).append("\n"); + sb.append(" alias: ").append(toIndentedString(alias)).append("\n"); + sb.append(" revision: ").append(toIndentedString(revision)).append("\n"); + sb.append(" dateCreated: ").append(toIndentedString(dateCreated)).append("\n"); + sb.append(" dateUpdated: ").append(toIndentedString(dateUpdated)).append("\n"); + sb.append(" expiresAt: ").append(toIndentedString(expiresAt)).append("\n"); + sb.append(" blob: ").append(toIndentedString(blob)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces (except the first + * line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} diff --git a/src/main/java/com/github/freeclimbapi/models/CreateBlobRequest.java b/src/main/java/com/github/freeclimbapi/models/CreateBlobRequest.java new file mode 100644 index 00000000..2ad3df60 --- /dev/null +++ b/src/main/java/com/github/freeclimbapi/models/CreateBlobRequest.java @@ -0,0 +1,160 @@ +/* + * FreeClimb API + * FreeClimb is a cloud-based application programming interface (API) that puts the power of the Vail platform in your hands. FreeClimb simplifies the process of creating applications that can use a full range of telephony features without requiring specialized or on-site telephony equipment. Using the FreeClimb REST API to write applications is easy! You have the option to use the language of your choice or hit the API directly. Your application can execute a command by issuing a RESTful request to the FreeClimb API. The base URL to send HTTP requests to the FreeClimb REST API is: /apiserver. FreeClimb authenticates and processes your request. + * + * The version of the OpenAPI document: 1.0.0 + * Contact: support@freeclimb.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +package com.github.freeclimbapi.models; + +import com.github.freeclimbapi.enums.*; +import com.google.gson.annotations.SerializedName; +import io.swagger.annotations.ApiModelProperty; +import java.util.*; +import java.util.Objects; + +/** CreateBlobRequest */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +public class CreateBlobRequest { + public static String getDiscriminatorValue() { + return null; + } + + public static final String SERIALIZED_NAME_ALIAS = "alias"; + + @SerializedName(SERIALIZED_NAME_ALIAS) + private String alias; + + public static final String SERIALIZED_NAME_EXPIRES_AT = "expiresAt"; + + @SerializedName(SERIALIZED_NAME_EXPIRES_AT) + private String expiresAt; + + public static final String SERIALIZED_NAME_BLOB = "blob"; + + @SerializedName(SERIALIZED_NAME_BLOB) + private Object blob; + + public CreateBlobRequest() {} + + public CreateBlobRequest alias(String alias) { + + this.alias = alias; + return this; + } + + /** + * Custom identifier for this blob that is unique for the owning account. It will be set to the + * blobId by default if not provided. + * + * @return alias + */ + @javax.annotation.Nullable + @ApiModelProperty( + value = + "Custom identifier for this blob that is unique for the owning account. It will" + + " be set to the blobId by default if not provided.") + public String getAlias() { + return alias; + } + + public void setAlias(String alias) { + this.alias = alias; + } + + public CreateBlobRequest expiresAt(String expiresAt) { + + this.expiresAt = expiresAt; + return this; + } + + /** + * An RFC3339 timestamp with millisecond resolution. This timestamp defines the time at which + * this blob will delete itself. It must not be more than 48 hours in the future and will + * default to 9 hours in the future if not provided. + * + * @return expiresAt + */ + @javax.annotation.Nullable + @ApiModelProperty( + example = "2006-01-02T15:04:05.000Z", + value = + "An RFC3339 timestamp with millisecond resolution. This timestamp defines the" + + " time at which this blob will delete itself. It must not be more than 48" + + " hours in the future and will default to 9 hours in the future if not" + + " provided.") + public String getExpiresAt() { + return expiresAt; + } + + public void setExpiresAt(String expiresAt) { + this.expiresAt = expiresAt; + } + + public CreateBlobRequest blob(Object blob) { + + this.blob = blob; + return this; + } + + /** + * Get blob + * + * @return blob + */ + @javax.annotation.Nonnull + @ApiModelProperty(required = true, value = "") + public Object getBlob() { + return blob; + } + + public void setBlob(Object blob) { + this.blob = blob; + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + CreateBlobRequest createBlobRequest = (CreateBlobRequest) o; + return Objects.equals(this.alias, createBlobRequest.alias) + && Objects.equals(this.expiresAt, createBlobRequest.expiresAt) + && Objects.equals(this.blob, createBlobRequest.blob); + } + + @Override + public int hashCode() { + return Objects.hash(alias, expiresAt, blob); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class CreateBlobRequest {\n"); + sb.append(" alias: ").append(toIndentedString(alias)).append("\n"); + sb.append(" expiresAt: ").append(toIndentedString(expiresAt)).append("\n"); + sb.append(" blob: ").append(toIndentedString(blob)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces (except the first + * line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} diff --git a/src/main/java/com/github/freeclimbapi/models/IncomingNumberResult.java b/src/main/java/com/github/freeclimbapi/models/IncomingNumberResult.java index f2820d2c..88e91e74 100644 --- a/src/main/java/com/github/freeclimbapi/models/IncomingNumberResult.java +++ b/src/main/java/com/github/freeclimbapi/models/IncomingNumberResult.java @@ -92,16 +92,6 @@ public static String getDiscriminatorValue() { @SerializedName(SERIALIZED_NAME_COUNTRY) private String country; - public static final String SERIALIZED_NAME_VOICE_ENABLED = "voiceEnabled"; - - @SerializedName(SERIALIZED_NAME_VOICE_ENABLED) - private Boolean voiceEnabled; - - public static final String SERIALIZED_NAME_SMS_ENABLED = "smsEnabled"; - - @SerializedName(SERIALIZED_NAME_SMS_ENABLED) - private Boolean smsEnabled; - public static final String SERIALIZED_NAME_OFFNET = "offnet"; @SerializedName(SERIALIZED_NAME_OFFNET) @@ -409,59 +399,6 @@ public void setCountry(String country) { this.country = country; } - public IncomingNumberResult voiceEnabled(Boolean voiceEnabled) { - - this.voiceEnabled = voiceEnabled; - return this; - } - - /** - * Indicates whether the phone number can handle Calls. Typically set to true for all numbers. - * - * @return voiceEnabled - * @deprecated - */ - @Deprecated - @javax.annotation.Nullable - @ApiModelProperty( - value = - "Indicates whether the phone number can handle Calls. Typically set to true for" - + " all numbers.") - public Boolean getVoiceEnabled() { - return voiceEnabled; - } - - public void setVoiceEnabled(Boolean voiceEnabled) { - this.voiceEnabled = voiceEnabled; - } - - public IncomingNumberResult smsEnabled(Boolean smsEnabled) { - - this.smsEnabled = smsEnabled; - return this; - } - - /** - * Indication of whether the phone number can handle sending and receiving SMS messages. - * Typically set to true for all numbers. - * - * @return smsEnabled - * @deprecated - */ - @Deprecated - @javax.annotation.Nullable - @ApiModelProperty( - value = - "Indication of whether the phone number can handle sending and receiving SMS" - + " messages. Typically set to true for all numbers.") - public Boolean getSmsEnabled() { - return smsEnabled; - } - - public void setSmsEnabled(Boolean smsEnabled) { - this.smsEnabled = smsEnabled; - } - public IncomingNumberResult offnet(Boolean offnet) { this.offnet = offnet; @@ -531,8 +468,6 @@ public boolean equals(Object o) { && Objects.equals(this.alias, incomingNumberResult.alias) && Objects.equals(this.region, incomingNumberResult.region) && Objects.equals(this.country, incomingNumberResult.country) - && Objects.equals(this.voiceEnabled, incomingNumberResult.voiceEnabled) - && Objects.equals(this.smsEnabled, incomingNumberResult.smsEnabled) && Objects.equals(this.offnet, incomingNumberResult.offnet) && Objects.equals(this.tfn, incomingNumberResult.tfn); } @@ -562,8 +497,6 @@ public int hashCode() { alias, region, country, - voiceEnabled, - smsEnabled, offnet, tfn); } @@ -592,8 +525,6 @@ public String toString() { sb.append(" alias: ").append(toIndentedString(alias)).append("\n"); sb.append(" region: ").append(toIndentedString(region)).append("\n"); sb.append(" country: ").append(toIndentedString(country)).append("\n"); - sb.append(" voiceEnabled: ").append(toIndentedString(voiceEnabled)).append("\n"); - sb.append(" smsEnabled: ").append(toIndentedString(smsEnabled)).append("\n"); sb.append(" offnet: ").append(toIndentedString(offnet)).append("\n"); sb.append(" tfn: ").append(toIndentedString(tfn)).append("\n"); sb.append("}"); diff --git a/src/main/java/com/github/freeclimbapi/models/ModifyBlobRequest.java b/src/main/java/com/github/freeclimbapi/models/ModifyBlobRequest.java new file mode 100644 index 00000000..a828d421 --- /dev/null +++ b/src/main/java/com/github/freeclimbapi/models/ModifyBlobRequest.java @@ -0,0 +1,124 @@ +/* + * FreeClimb API + * FreeClimb is a cloud-based application programming interface (API) that puts the power of the Vail platform in your hands. FreeClimb simplifies the process of creating applications that can use a full range of telephony features without requiring specialized or on-site telephony equipment. Using the FreeClimb REST API to write applications is easy! You have the option to use the language of your choice or hit the API directly. Your application can execute a command by issuing a RESTful request to the FreeClimb API. The base URL to send HTTP requests to the FreeClimb REST API is: /apiserver. FreeClimb authenticates and processes your request. + * + * The version of the OpenAPI document: 1.0.0 + * Contact: support@freeclimb.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +package com.github.freeclimbapi.models; + +import com.github.freeclimbapi.enums.*; +import com.google.gson.annotations.SerializedName; +import io.swagger.annotations.ApiModelProperty; +import java.util.*; +import java.util.Objects; + +/** ModifyBlobRequest */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +public class ModifyBlobRequest { + public static String getDiscriminatorValue() { + return null; + } + + public static final String SERIALIZED_NAME_BLOB = "blob"; + + @SerializedName(SERIALIZED_NAME_BLOB) + private Object blob; + + public static final String SERIALIZED_NAME_ALIAS = "alias"; + + @SerializedName(SERIALIZED_NAME_ALIAS) + private String alias; + + public ModifyBlobRequest() {} + + public ModifyBlobRequest blob(Object blob) { + + this.blob = blob; + return this; + } + + /** + * Get blob + * + * @return blob + */ + @javax.annotation.Nonnull + @ApiModelProperty(required = true, value = "") + public Object getBlob() { + return blob; + } + + public void setBlob(Object blob) { + this.blob = blob; + } + + public ModifyBlobRequest alias(String alias) { + + this.alias = alias; + return this; + } + + /** + * Custom identifier for this blob that is unique for the owning account. It will be set to the + * blobId by default if not provided. + * + * @return alias + */ + @javax.annotation.Nullable + @ApiModelProperty( + value = + "Custom identifier for this blob that is unique for the owning account. It will" + + " be set to the blobId by default if not provided.") + public String getAlias() { + return alias; + } + + public void setAlias(String alias) { + this.alias = alias; + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + ModifyBlobRequest modifyBlobRequest = (ModifyBlobRequest) o; + return Objects.equals(this.blob, modifyBlobRequest.blob) + && Objects.equals(this.alias, modifyBlobRequest.alias); + } + + @Override + public int hashCode() { + return Objects.hash(blob, alias); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ModifyBlobRequest {\n"); + sb.append(" blob: ").append(toIndentedString(blob)).append("\n"); + sb.append(" alias: ").append(toIndentedString(alias)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces (except the first + * line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} diff --git a/src/main/java/com/github/freeclimbapi/models/PlatformError.java b/src/main/java/com/github/freeclimbapi/models/PlatformError.java new file mode 100644 index 00000000..0ac5a936 --- /dev/null +++ b/src/main/java/com/github/freeclimbapi/models/PlatformError.java @@ -0,0 +1,178 @@ +/* + * FreeClimb API + * FreeClimb is a cloud-based application programming interface (API) that puts the power of the Vail platform in your hands. FreeClimb simplifies the process of creating applications that can use a full range of telephony features without requiring specialized or on-site telephony equipment. Using the FreeClimb REST API to write applications is easy! You have the option to use the language of your choice or hit the API directly. Your application can execute a command by issuing a RESTful request to the FreeClimb API. The base URL to send HTTP requests to the FreeClimb REST API is: /apiserver. FreeClimb authenticates and processes your request. + * + * The version of the OpenAPI document: 1.0.0 + * Contact: support@freeclimb.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +package com.github.freeclimbapi.models; + +import com.github.freeclimbapi.enums.*; +import com.google.gson.annotations.SerializedName; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.util.*; +import java.util.Objects; + +/** Standard error structure returned by platform. */ +@ApiModel(description = "Standard error structure returned by platform.") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +public class PlatformError { + public static String getDiscriminatorValue() { + return null; + } + + public static final String SERIALIZED_NAME_CODE = "code"; + + @SerializedName(SERIALIZED_NAME_CODE) + private Integer code; + + public static final String SERIALIZED_NAME_CALL = "call"; + + @SerializedName(SERIALIZED_NAME_CALL) + private String call; + + public static final String SERIALIZED_NAME_URL = "url"; + + @SerializedName(SERIALIZED_NAME_URL) + private String url; + + public static final String SERIALIZED_NAME_DETAILS = "details"; + + @SerializedName(SERIALIZED_NAME_DETAILS) + private Object details; + + public PlatformError() {} + + public PlatformError code(Integer code) { + + this.code = code; + return this; + } + + /** + * Get code + * + * @return code + */ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + public Integer getCode() { + return code; + } + + public void setCode(Integer code) { + this.code = code; + } + + public PlatformError call(String call) { + + this.call = call; + return this; + } + + /** + * Get call + * + * @return call + */ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + public String getCall() { + return call; + } + + public void setCall(String call) { + this.call = call; + } + + public PlatformError url(String url) { + + this.url = url; + return this; + } + + /** + * Get url + * + * @return url + */ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + public String getUrl() { + return url; + } + + public void setUrl(String url) { + this.url = url; + } + + public PlatformError details(Object details) { + + this.details = details; + return this; + } + + /** + * Get details + * + * @return details + */ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + public Object getDetails() { + return details; + } + + public void setDetails(Object details) { + this.details = details; + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + PlatformError platformError = (PlatformError) o; + return Objects.equals(this.code, platformError.code) + && Objects.equals(this.call, platformError.call) + && Objects.equals(this.url, platformError.url) + && Objects.equals(this.details, platformError.details); + } + + @Override + public int hashCode() { + return Objects.hash(code, call, url, details); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class PlatformError {\n"); + sb.append(" code: ").append(toIndentedString(code)).append("\n"); + sb.append(" call: ").append(toIndentedString(call)).append("\n"); + sb.append(" url: ").append(toIndentedString(url)).append("\n"); + sb.append(" details: ").append(toIndentedString(details)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces (except the first + * line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} diff --git a/src/main/java/com/github/freeclimbapi/models/ReplaceBlobRequest.java b/src/main/java/com/github/freeclimbapi/models/ReplaceBlobRequest.java new file mode 100644 index 00000000..f4ef8a0d --- /dev/null +++ b/src/main/java/com/github/freeclimbapi/models/ReplaceBlobRequest.java @@ -0,0 +1,92 @@ +/* + * FreeClimb API + * FreeClimb is a cloud-based application programming interface (API) that puts the power of the Vail platform in your hands. FreeClimb simplifies the process of creating applications that can use a full range of telephony features without requiring specialized or on-site telephony equipment. Using the FreeClimb REST API to write applications is easy! You have the option to use the language of your choice or hit the API directly. Your application can execute a command by issuing a RESTful request to the FreeClimb API. The base URL to send HTTP requests to the FreeClimb REST API is: /apiserver. FreeClimb authenticates and processes your request. + * + * The version of the OpenAPI document: 1.0.0 + * Contact: support@freeclimb.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +package com.github.freeclimbapi.models; + +import com.github.freeclimbapi.enums.*; +import com.google.gson.annotations.SerializedName; +import io.swagger.annotations.ApiModelProperty; +import java.util.*; +import java.util.Objects; + +/** ReplaceBlobRequest */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +public class ReplaceBlobRequest { + public static String getDiscriminatorValue() { + return null; + } + + public static final String SERIALIZED_NAME_BLOB = "blob"; + + @SerializedName(SERIALIZED_NAME_BLOB) + private Object blob; + + public ReplaceBlobRequest() {} + + public ReplaceBlobRequest blob(Object blob) { + + this.blob = blob; + return this; + } + + /** + * Get blob + * + * @return blob + */ + @javax.annotation.Nonnull + @ApiModelProperty(required = true, value = "") + public Object getBlob() { + return blob; + } + + public void setBlob(Object blob) { + this.blob = blob; + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + ReplaceBlobRequest replaceBlobRequest = (ReplaceBlobRequest) o; + return Objects.equals(this.blob, replaceBlobRequest.blob); + } + + @Override + public int hashCode() { + return Objects.hash(blob); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ReplaceBlobRequest {\n"); + sb.append(" blob: ").append(toIndentedString(blob)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces (except the first + * line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} diff --git a/src/main/java/com/github/freeclimbapi/models/Say.java b/src/main/java/com/github/freeclimbapi/models/Say.java index d1e9dce4..f11419fc 100644 --- a/src/main/java/com/github/freeclimbapi/models/Say.java +++ b/src/main/java/com/github/freeclimbapi/models/Say.java @@ -47,11 +47,6 @@ public static String getDiscriminatorValue() { @SerializedName(SERIALIZED_NAME_TEXT) private String text; - public static final String SERIALIZED_NAME_LANGUAGE = "language"; - - @SerializedName(SERIALIZED_NAME_LANGUAGE) - private String language; - public static final String SERIALIZED_NAME_LOOP = "loop"; @SerializedName(SERIALIZED_NAME_LOOP) @@ -62,6 +57,16 @@ public static String getDiscriminatorValue() { @SerializedName(SERIALIZED_NAME_PRIVACY_MODE) private Boolean privacyMode; + public static final String SERIALIZED_NAME_ENGINE = "engine"; + + @SerializedName(SERIALIZED_NAME_ENGINE) + private SayStandardEngine engine; + + public static final String SERIALIZED_NAME_LANGUAGE = "language"; + + @SerializedName(SERIALIZED_NAME_LANGUAGE) + private String language; + public Say() { this.command = this.getClass().getSimpleName(); } @@ -93,33 +98,6 @@ public void setText(String text) { this.text = text; } - public Say language(String language) { - - this.language = language; - return this; - } - - /** - * Language and (by implication) the locale to use. This implies the accent and pronunciations - * to be usde for the TTS. The complete list of valid values for the language attribute is shown - * below. - * - * @return language - */ - @javax.annotation.Nullable - @ApiModelProperty( - value = - "Language and (by implication) the locale to use. This implies the accent and" - + " pronunciations to be usde for the TTS. The complete list of valid" - + " values for the language attribute is shown below.") - public String getLanguage() { - return language; - } - - public void setLanguage(String language) { - this.language = language; - } - public Say loop(Integer loop) { this.loop = loop; @@ -170,6 +148,54 @@ public void setPrivacyMode(Boolean privacyMode) { this.privacyMode = privacyMode; } + public Say engine(SayStandardEngine engine) { + + this.engine = engine; + return this; + } + + /** + * Get engine + * + * @return engine + */ + @javax.annotation.Nonnull + @ApiModelProperty(required = true, value = "") + public SayStandardEngine getEngine() { + return engine; + } + + public void setEngine(SayStandardEngine engine) { + this.engine = engine; + } + + public Say language(String language) { + + this.language = language; + return this; + } + + /** + * Language and (by implication) the locale to use. This implies the accent and pronunciations + * to be usde for the TTS. The complete list of valid values for the language attribute is shown + * below. + * + * @return language + */ + @javax.annotation.Nullable + @ApiModelProperty( + value = + "Language and (by implication) the locale to use. This implies the accent and" + + " pronunciations to be usde for the TTS. The complete list of valid" + + " values for the language attribute is shown below.") + public String getLanguage() { + return language; + } + + public void setLanguage(String language) { + this.language = language; + } + @Override public boolean equals(Object o) { if (this == o) { @@ -180,15 +206,16 @@ public boolean equals(Object o) { } Say say = (Say) o; return Objects.equals(this.text, say.text) - && Objects.equals(this.language, say.language) && Objects.equals(this.loop, say.loop) && Objects.equals(this.privacyMode, say.privacyMode) + && Objects.equals(this.engine, say.engine) + && Objects.equals(this.language, say.language) && super.equals(o); } @Override public int hashCode() { - return Objects.hash(text, language, loop, privacyMode, super.hashCode()); + return Objects.hash(text, loop, privacyMode, engine, language, super.hashCode()); } @Override @@ -197,9 +224,10 @@ public String toString() { sb.append("class Say {\n"); sb.append(" ").append(toIndentedString(super.toString())).append("\n"); sb.append(" text: ").append(toIndentedString(text)).append("\n"); - sb.append(" language: ").append(toIndentedString(language)).append("\n"); sb.append(" loop: ").append(toIndentedString(loop)).append("\n"); sb.append(" privacyMode: ").append(toIndentedString(privacyMode)).append("\n"); + sb.append(" engine: ").append(toIndentedString(engine)).append("\n"); + sb.append(" language: ").append(toIndentedString(language)).append("\n"); sb.append("}"); return sb.toString(); } @@ -208,9 +236,10 @@ public String toString() { public Map> attributeTypeMap() { Map> attributes = new HashMap(); attributes.put("text", () -> this.getText()); - attributes.put("language", () -> this.getLanguage()); attributes.put("loop", () -> this.getLoop()); attributes.put("privacyMode", () -> this.getPrivacyMode()); + attributes.put("engine", () -> this.getEngine()); + attributes.put("language", () -> this.getLanguage()); return attributes; } diff --git a/src/main/java/com/github/freeclimbapi/models/SayClassic.java b/src/main/java/com/github/freeclimbapi/models/SayClassic.java new file mode 100644 index 00000000..5500709c --- /dev/null +++ b/src/main/java/com/github/freeclimbapi/models/SayClassic.java @@ -0,0 +1,210 @@ +/* + * FreeClimb API + * FreeClimb is a cloud-based application programming interface (API) that puts the power of the Vail platform in your hands. FreeClimb simplifies the process of creating applications that can use a full range of telephony features without requiring specialized or on-site telephony equipment. Using the FreeClimb REST API to write applications is easy! You have the option to use the language of your choice or hit the API directly. Your application can execute a command by issuing a RESTful request to the FreeClimb API. The base URL to send HTTP requests to the FreeClimb REST API is: /apiserver. FreeClimb authenticates and processes your request. + * + * The version of the OpenAPI document: 1.0.0 + * Contact: support@freeclimb.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +package com.github.freeclimbapi.models; + +import com.github.freeclimbapi.enums.*; +import com.google.gson.annotations.SerializedName; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.util.*; +import java.util.Objects; + +/** + * The `Say` command provides Text-To-Speech (TTS) support. It converts text to speech and + * then renders it in a female voice back to the caller. `Say` is useful in cases where + * it's difficult to pre-record a prompt for any reason. `Say` does not allow barge-in + * unless nested within a `GetSpeech` command. The file will always be played to + * completion unless nested. + */ +@ApiModel( + description = + "The `Say` command provides Text-To-Speech (TTS) support. It converts text to" + + " speech and then renders it in a female voice back to the caller. `Say` is" + + " useful in cases where it's difficult to pre-record a prompt for any reason." + + " `Say` does not allow barge-in unless nested within a `GetSpeech` command." + + " The file will always be played to completion unless nested.") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +public class SayClassic { + public static String getDiscriminatorValue() { + return null; + } + + public static final String SERIALIZED_NAME_TEXT = "text"; + + @SerializedName(SERIALIZED_NAME_TEXT) + private String text; + + public static final String SERIALIZED_NAME_LANGUAGE = "language"; + + @SerializedName(SERIALIZED_NAME_LANGUAGE) + private String language; + + public static final String SERIALIZED_NAME_LOOP = "loop"; + + @SerializedName(SERIALIZED_NAME_LOOP) + private Integer loop = 1; + + public static final String SERIALIZED_NAME_PRIVACY_MODE = "privacyMode"; + + @SerializedName(SERIALIZED_NAME_PRIVACY_MODE) + private Boolean privacyMode; + + public SayClassic() {} + + public SayClassic text(String text) { + + this.text = text; + return this; + } + + /** + * The message to be played to the caller using TTS. The size of the string is limited to 4 KB + * (or 4,096 bytes). An empty string will cause the command to be skipped. + * + * @return text + */ + @javax.annotation.Nonnull + @ApiModelProperty( + required = true, + value = + "The message to be played to the caller using TTS. The size of the string is" + + " limited to 4 KB (or 4,096 bytes). An empty string will cause the" + + " command to be skipped.") + public String getText() { + return text; + } + + public void setText(String text) { + this.text = text; + } + + public SayClassic language(String language) { + + this.language = language; + return this; + } + + /** + * Language and (by implication) the locale to use. This implies the accent and pronunciations + * to be usde for the TTS. The complete list of valid values for the language attribute is shown + * below. + * + * @return language + */ + @javax.annotation.Nullable + @ApiModelProperty( + value = + "Language and (by implication) the locale to use. This implies the accent and" + + " pronunciations to be usde for the TTS. The complete list of valid" + + " values for the language attribute is shown below.") + public String getLanguage() { + return language; + } + + public void setLanguage(String language) { + this.language = language; + } + + public SayClassic loop(Integer loop) { + + this.loop = loop; + return this; + } + + /** + * Number of times the text is said. Specifying '0' causes the `Say` action to + * loop until the Call is hung up. + * + * @return loop + */ + @javax.annotation.Nullable + @ApiModelProperty( + value = + "Number of times the text is said. Specifying '0' causes the `Say` action to" + + " loop until the Call is hung up.") + public Integer getLoop() { + return loop; + } + + public void setLoop(Integer loop) { + this.loop = loop; + } + + public SayClassic privacyMode(Boolean privacyMode) { + + this.privacyMode = privacyMode; + return this; + } + + /** + * Parameter `privacyMode` will not log the `text` as required by PCI + * compliance. + * + * @return privacyMode + */ + @javax.annotation.Nullable + @ApiModelProperty( + value = + "Parameter `privacyMode` will not log the `text` as required by PCI" + + " compliance.") + public Boolean getPrivacyMode() { + return privacyMode; + } + + public void setPrivacyMode(Boolean privacyMode) { + this.privacyMode = privacyMode; + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + SayClassic sayClassic = (SayClassic) o; + return Objects.equals(this.text, sayClassic.text) + && Objects.equals(this.language, sayClassic.language) + && Objects.equals(this.loop, sayClassic.loop) + && Objects.equals(this.privacyMode, sayClassic.privacyMode); + } + + @Override + public int hashCode() { + return Objects.hash(text, language, loop, privacyMode); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class SayClassic {\n"); + sb.append(" text: ").append(toIndentedString(text)).append("\n"); + sb.append(" language: ").append(toIndentedString(language)).append("\n"); + sb.append(" loop: ").append(toIndentedString(loop)).append("\n"); + sb.append(" privacyMode: ").append(toIndentedString(privacyMode)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces (except the first + * line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} diff --git a/src/main/java/com/github/freeclimbapi/models/SayElevenLabs.java b/src/main/java/com/github/freeclimbapi/models/SayElevenLabs.java new file mode 100644 index 00000000..b5c6eaea --- /dev/null +++ b/src/main/java/com/github/freeclimbapi/models/SayElevenLabs.java @@ -0,0 +1,205 @@ +/* + * FreeClimb API + * FreeClimb is a cloud-based application programming interface (API) that puts the power of the Vail platform in your hands. FreeClimb simplifies the process of creating applications that can use a full range of telephony features without requiring specialized or on-site telephony equipment. Using the FreeClimb REST API to write applications is easy! You have the option to use the language of your choice or hit the API directly. Your application can execute a command by issuing a RESTful request to the FreeClimb API. The base URL to send HTTP requests to the FreeClimb REST API is: /apiserver. FreeClimb authenticates and processes your request. + * + * The version of the OpenAPI document: 1.0.0 + * Contact: support@freeclimb.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +package com.github.freeclimbapi.models; + +import com.github.freeclimbapi.enums.*; +import com.google.gson.annotations.SerializedName; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.util.*; +import java.util.Objects; + +/** + * The `SayElevenLabs` command provides Text-To-Speech (TTS) support using the ElevenLabs + * TTS engine. It converts text to speech and then renders it in a female voice back to the caller. + * `SayElevenLabs` is useful in cases where it's difficult to pre-record a prompt for + * any reason. `SayElevenLabs` does not allow barge-in unless nested within a + * `GetSpeech` command. The file will always be played to completion unless nested. + */ +@ApiModel( + description = + "The `SayElevenLabs` command provides Text-To-Speech (TTS) support using the" + + " ElevenLabs TTS engine. It converts text to speech and then renders it in a" + + " female voice back to the caller. `SayElevenLabs` is useful in cases where" + + " it's difficult to pre-record a prompt for any reason. `SayElevenLabs` does" + + " not allow barge-in unless nested within a `GetSpeech` command. The file" + + " will always be played to completion unless nested.") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +public class SayElevenLabs { + public static String getDiscriminatorValue() { + return null; + } + + public static final String SERIALIZED_NAME_TEXT = "text"; + + @SerializedName(SERIALIZED_NAME_TEXT) + private String text; + + public static final String SERIALIZED_NAME_LOOP = "loop"; + + @SerializedName(SERIALIZED_NAME_LOOP) + private Integer loop = 1; + + public static final String SERIALIZED_NAME_PRIVACY_MODE = "privacyMode"; + + @SerializedName(SERIALIZED_NAME_PRIVACY_MODE) + private Boolean privacyMode; + + public static final String SERIALIZED_NAME_ENGINE = "engine"; + + @SerializedName(SERIALIZED_NAME_ENGINE) + private SayElevenLabsEngine engine; + + public SayElevenLabs() {} + + public SayElevenLabs text(String text) { + + this.text = text; + return this; + } + + /** + * The message to be played to the caller using TTS. The size of the string is limited to 4 KB + * (or 4,096 bytes). An empty string will cause the command to be skipped. + * + * @return text + */ + @javax.annotation.Nonnull + @ApiModelProperty( + required = true, + value = + "The message to be played to the caller using TTS. The size of the string is" + + " limited to 4 KB (or 4,096 bytes). An empty string will cause the" + + " command to be skipped.") + public String getText() { + return text; + } + + public void setText(String text) { + this.text = text; + } + + public SayElevenLabs loop(Integer loop) { + + this.loop = loop; + return this; + } + + /** + * Number of times the text is said. Specifying '0' causes the `SayElevenLabs` + * action to loop until the Call is hung up. + * + * @return loop + */ + @javax.annotation.Nullable + @ApiModelProperty( + value = + "Number of times the text is said. Specifying '0' causes the `SayElevenLabs`" + + " action to loop until the Call is hung up.") + public Integer getLoop() { + return loop; + } + + public void setLoop(Integer loop) { + this.loop = loop; + } + + public SayElevenLabs privacyMode(Boolean privacyMode) { + + this.privacyMode = privacyMode; + return this; + } + + /** + * Parameter `privacyMode` will not log the `text` as required by PCI + * compliance. + * + * @return privacyMode + */ + @javax.annotation.Nullable + @ApiModelProperty( + value = + "Parameter `privacyMode` will not log the `text` as required by PCI" + + " compliance.") + public Boolean getPrivacyMode() { + return privacyMode; + } + + public void setPrivacyMode(Boolean privacyMode) { + this.privacyMode = privacyMode; + } + + public SayElevenLabs engine(SayElevenLabsEngine engine) { + + this.engine = engine; + return this; + } + + /** + * Get engine + * + * @return engine + */ + @javax.annotation.Nonnull + @ApiModelProperty(required = true, value = "") + public SayElevenLabsEngine getEngine() { + return engine; + } + + public void setEngine(SayElevenLabsEngine engine) { + this.engine = engine; + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + SayElevenLabs sayElevenLabs = (SayElevenLabs) o; + return Objects.equals(this.text, sayElevenLabs.text) + && Objects.equals(this.loop, sayElevenLabs.loop) + && Objects.equals(this.privacyMode, sayElevenLabs.privacyMode) + && Objects.equals(this.engine, sayElevenLabs.engine); + } + + @Override + public int hashCode() { + return Objects.hash(text, loop, privacyMode, engine); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class SayElevenLabs {\n"); + sb.append(" text: ").append(toIndentedString(text)).append("\n"); + sb.append(" loop: ").append(toIndentedString(loop)).append("\n"); + sb.append(" privacyMode: ").append(toIndentedString(privacyMode)).append("\n"); + sb.append(" engine: ").append(toIndentedString(engine)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces (except the first + * line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} diff --git a/src/main/java/com/github/freeclimbapi/models/SayElevenLabsEngine.java b/src/main/java/com/github/freeclimbapi/models/SayElevenLabsEngine.java new file mode 100644 index 00000000..6580a461 --- /dev/null +++ b/src/main/java/com/github/freeclimbapi/models/SayElevenLabsEngine.java @@ -0,0 +1,132 @@ +/* + * FreeClimb API + * FreeClimb is a cloud-based application programming interface (API) that puts the power of the Vail platform in your hands. FreeClimb simplifies the process of creating applications that can use a full range of telephony features without requiring specialized or on-site telephony equipment. Using the FreeClimb REST API to write applications is easy! You have the option to use the language of your choice or hit the API directly. Your application can execute a command by issuing a RESTful request to the FreeClimb API. The base URL to send HTTP requests to the FreeClimb REST API is: /apiserver. FreeClimb authenticates and processes your request. + * + * The version of the OpenAPI document: 1.0.0 + * Contact: support@freeclimb.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +package com.github.freeclimbapi.models; + +import com.github.freeclimbapi.enums.*; +import com.google.gson.annotations.SerializedName; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.util.*; +import java.util.Objects; + +/** + * The engine to use for the TTS. The complete list of valid values for the engine attribute is + * shown below. + */ +@ApiModel( + description = + "The engine to use for the TTS. The complete list of valid values for the engine" + + " attribute is shown below.") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +public class SayElevenLabsEngine { + public static String getDiscriminatorValue() { + return null; + } + + public static final String SERIALIZED_NAME_NAME = "name"; + + @SerializedName(SERIALIZED_NAME_NAME) + private String name = "ElevenLabs"; + + public static final String SERIALIZED_NAME_PARAMETERS = "parameters"; + + @SerializedName(SERIALIZED_NAME_PARAMETERS) + private SayElevenLabsEngineParameters parameters; + + public SayElevenLabsEngine() {} + + public SayElevenLabsEngine name(String name) { + + this.name = name; + return this; + } + + /** + * The name of the TTS engine to use. Set to `elevenlabs.tts` to use the + * elevenlabs.tts TTS engine. + * + * @return name + */ + @javax.annotation.Nullable + @ApiModelProperty( + value = + "The name of the TTS engine to use. Set to `elevenlabs.tts` to use the" + + " elevenlabs.tts TTS engine.") + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public SayElevenLabsEngine parameters(SayElevenLabsEngineParameters parameters) { + + this.parameters = parameters; + return this; + } + + /** + * Get parameters + * + * @return parameters + */ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + public SayElevenLabsEngineParameters getParameters() { + return parameters; + } + + public void setParameters(SayElevenLabsEngineParameters parameters) { + this.parameters = parameters; + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + SayElevenLabsEngine sayElevenLabsEngine = (SayElevenLabsEngine) o; + return Objects.equals(this.name, sayElevenLabsEngine.name) + && Objects.equals(this.parameters, sayElevenLabsEngine.parameters); + } + + @Override + public int hashCode() { + return Objects.hash(name, parameters); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class SayElevenLabsEngine {\n"); + sb.append(" name: ").append(toIndentedString(name)).append("\n"); + sb.append(" parameters: ").append(toIndentedString(parameters)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces (except the first + * line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} diff --git a/src/main/java/com/github/freeclimbapi/models/SayElevenLabsEngineParameters.java b/src/main/java/com/github/freeclimbapi/models/SayElevenLabsEngineParameters.java new file mode 100644 index 00000000..ada0390b --- /dev/null +++ b/src/main/java/com/github/freeclimbapi/models/SayElevenLabsEngineParameters.java @@ -0,0 +1,453 @@ +/* + * FreeClimb API + * FreeClimb is a cloud-based application programming interface (API) that puts the power of the Vail platform in your hands. FreeClimb simplifies the process of creating applications that can use a full range of telephony features without requiring specialized or on-site telephony equipment. Using the FreeClimb REST API to write applications is easy! You have the option to use the language of your choice or hit the API directly. Your application can execute a command by issuing a RESTful request to the FreeClimb API. The base URL to send HTTP requests to the FreeClimb REST API is: /apiserver. FreeClimb authenticates and processes your request. + * + * The version of the OpenAPI document: 1.0.0 + * Contact: support@freeclimb.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +package com.github.freeclimbapi.models; + +import com.github.freeclimbapi.enums.*; +import com.google.gson.annotations.SerializedName; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.util.*; +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; + +/** + * The parameters to use for the TTS. The complete list of valid values for the parameters attribute + * is shown below. + */ +@ApiModel( + description = + "The parameters to use for the TTS. The complete list of valid values for the" + + " parameters attribute is shown below.") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +public class SayElevenLabsEngineParameters { + public static String getDiscriminatorValue() { + return null; + } + + public static final String SERIALIZED_NAME_MODEL_ID = "model_id"; + + @SerializedName(SERIALIZED_NAME_MODEL_ID) + private String modelId = "eleven_turbo_v2_5"; + + public static final String SERIALIZED_NAME_VOICE_ID = "voice_id"; + + @SerializedName(SERIALIZED_NAME_VOICE_ID) + private String voiceId; + + public static final String SERIALIZED_NAME_LANGUAGE_CODE = "language_code"; + + @SerializedName(SERIALIZED_NAME_LANGUAGE_CODE) + private String languageCode = "en"; + + public static final String SERIALIZED_NAME_VOICE_SETTINGS = "voice_settings"; + + @SerializedName(SERIALIZED_NAME_VOICE_SETTINGS) + private SayElevenLabsEngineParametersVoiceSettings voiceSettings; + + public static final String SERIALIZED_NAME_PRONUNCIATION_DICTIONARY = + "pronunciation_dictionary"; + + @SerializedName(SERIALIZED_NAME_PRONUNCIATION_DICTIONARY) + private List + pronunciationDictionary = null; + + public static final String SERIALIZED_NAME_SEED = "seed"; + + @SerializedName(SERIALIZED_NAME_SEED) + private Integer seed; + + public static final String SERIALIZED_NAME_PREVIOUS_TEXT = "previous_text"; + + @SerializedName(SERIALIZED_NAME_PREVIOUS_TEXT) + private String previousText; + + public static final String SERIALIZED_NAME_NEXT_TEXT = "next_text"; + + @SerializedName(SERIALIZED_NAME_NEXT_TEXT) + private String nextText; + + public static final String SERIALIZED_NAME_PREVIOUS_REQUEST_IDS = "previous_request_ids"; + + @SerializedName(SERIALIZED_NAME_PREVIOUS_REQUEST_IDS) + private List previousRequestIds = null; + + public static final String SERIALIZED_NAME_NEXT_REQUEST_IDS = "next_request_ids"; + + @SerializedName(SERIALIZED_NAME_NEXT_REQUEST_IDS) + private List nextRequestIds = null; + + public static final String SERIALIZED_NAME_APPLY_LANGUAGE_TEXT_NORMALIZATION = + "apply_language_text_normalization"; + + @SerializedName(SERIALIZED_NAME_APPLY_LANGUAGE_TEXT_NORMALIZATION) + private Boolean applyLanguageTextNormalization; + + public SayElevenLabsEngineParameters() {} + + public SayElevenLabsEngineParameters modelId(String modelId) { + + this.modelId = modelId; + return this; + } + + /** + * The ID of the ElevenLabs model to use for the TTS. The complete list of valid values for the + * model_id attribute is shown below. + * + * @return modelId + */ + @javax.annotation.Nullable + @ApiModelProperty( + value = + "The ID of the ElevenLabs model to use for the TTS. The complete list of valid" + + " values for the model_id attribute is shown below.") + public String getModelId() { + return modelId; + } + + public void setModelId(String modelId) { + this.modelId = modelId; + } + + public SayElevenLabsEngineParameters voiceId(String voiceId) { + + this.voiceId = voiceId; + return this; + } + + /** + * The ID of the ElevenLabs voice to use for the TTS. The complete list of valid values for the + * voice_id attribute is shown below. + * + * @return voiceId + */ + @javax.annotation.Nullable + @ApiModelProperty( + value = + "The ID of the ElevenLabs voice to use for the TTS. The complete list of valid" + + " values for the voice_id attribute is shown below.") + public String getVoiceId() { + return voiceId; + } + + public void setVoiceId(String voiceId) { + this.voiceId = voiceId; + } + + public SayElevenLabsEngineParameters languageCode(String languageCode) { + + this.languageCode = languageCode; + return this; + } + + /** + * The language code to use for the TTS. The complete list of valid values for the language_code + * attribute is shown below. + * + * @return languageCode + */ + @javax.annotation.Nullable + @ApiModelProperty( + value = + "The language code to use for the TTS. The complete list of valid values for" + + " the language_code attribute is shown below.") + public String getLanguageCode() { + return languageCode; + } + + public void setLanguageCode(String languageCode) { + this.languageCode = languageCode; + } + + public SayElevenLabsEngineParameters voiceSettings( + SayElevenLabsEngineParametersVoiceSettings voiceSettings) { + + this.voiceSettings = voiceSettings; + return this; + } + + /** + * Get voiceSettings + * + * @return voiceSettings + */ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + public SayElevenLabsEngineParametersVoiceSettings getVoiceSettings() { + return voiceSettings; + } + + public void setVoiceSettings(SayElevenLabsEngineParametersVoiceSettings voiceSettings) { + this.voiceSettings = voiceSettings; + } + + public SayElevenLabsEngineParameters pronunciationDictionary( + List + pronunciationDictionary) { + + this.pronunciationDictionary = pronunciationDictionary; + return this; + } + + public SayElevenLabsEngineParameters addPronunciationDictionaryItem( + SayElevenLabsEngineParametersPronunciationDictionaryInner pronunciationDictionaryItem) { + if (this.pronunciationDictionary == null) { + this.pronunciationDictionary = + new ArrayList(); + } + this.pronunciationDictionary.add(pronunciationDictionaryItem); + return this; + } + + /** + * Get pronunciationDictionary + * + * @return pronunciationDictionary + */ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + public List + getPronunciationDictionary() { + return pronunciationDictionary; + } + + public void setPronunciationDictionary( + List + pronunciationDictionary) { + this.pronunciationDictionary = pronunciationDictionary; + } + + public SayElevenLabsEngineParameters seed(Integer seed) { + + this.seed = seed; + return this; + } + + /** + * Get seed + * + * @return seed + */ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + public Integer getSeed() { + return seed; + } + + public void setSeed(Integer seed) { + this.seed = seed; + } + + public SayElevenLabsEngineParameters previousText(String previousText) { + + this.previousText = previousText; + return this; + } + + /** + * Get previousText + * + * @return previousText + */ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + public String getPreviousText() { + return previousText; + } + + public void setPreviousText(String previousText) { + this.previousText = previousText; + } + + public SayElevenLabsEngineParameters nextText(String nextText) { + + this.nextText = nextText; + return this; + } + + /** + * Get nextText + * + * @return nextText + */ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + public String getNextText() { + return nextText; + } + + public void setNextText(String nextText) { + this.nextText = nextText; + } + + public SayElevenLabsEngineParameters previousRequestIds(List previousRequestIds) { + + this.previousRequestIds = previousRequestIds; + return this; + } + + public SayElevenLabsEngineParameters addPreviousRequestIdsItem(String previousRequestIdsItem) { + if (this.previousRequestIds == null) { + this.previousRequestIds = new ArrayList(); + } + this.previousRequestIds.add(previousRequestIdsItem); + return this; + } + + /** + * Get previousRequestIds + * + * @return previousRequestIds + */ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + public List getPreviousRequestIds() { + return previousRequestIds; + } + + public void setPreviousRequestIds(List previousRequestIds) { + this.previousRequestIds = previousRequestIds; + } + + public SayElevenLabsEngineParameters nextRequestIds(List nextRequestIds) { + + this.nextRequestIds = nextRequestIds; + return this; + } + + public SayElevenLabsEngineParameters addNextRequestIdsItem(String nextRequestIdsItem) { + if (this.nextRequestIds == null) { + this.nextRequestIds = new ArrayList(); + } + this.nextRequestIds.add(nextRequestIdsItem); + return this; + } + + /** + * Get nextRequestIds + * + * @return nextRequestIds + */ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + public List getNextRequestIds() { + return nextRequestIds; + } + + public void setNextRequestIds(List nextRequestIds) { + this.nextRequestIds = nextRequestIds; + } + + public SayElevenLabsEngineParameters applyLanguageTextNormalization( + Boolean applyLanguageTextNormalization) { + + this.applyLanguageTextNormalization = applyLanguageTextNormalization; + return this; + } + + /** + * Get applyLanguageTextNormalization + * + * @return applyLanguageTextNormalization + */ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + public Boolean getApplyLanguageTextNormalization() { + return applyLanguageTextNormalization; + } + + public void setApplyLanguageTextNormalization(Boolean applyLanguageTextNormalization) { + this.applyLanguageTextNormalization = applyLanguageTextNormalization; + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + SayElevenLabsEngineParameters sayElevenLabsEngineParameters = + (SayElevenLabsEngineParameters) o; + return Objects.equals(this.modelId, sayElevenLabsEngineParameters.modelId) + && Objects.equals(this.voiceId, sayElevenLabsEngineParameters.voiceId) + && Objects.equals(this.languageCode, sayElevenLabsEngineParameters.languageCode) + && Objects.equals(this.voiceSettings, sayElevenLabsEngineParameters.voiceSettings) + && Objects.equals( + this.pronunciationDictionary, + sayElevenLabsEngineParameters.pronunciationDictionary) + && Objects.equals(this.seed, sayElevenLabsEngineParameters.seed) + && Objects.equals(this.previousText, sayElevenLabsEngineParameters.previousText) + && Objects.equals(this.nextText, sayElevenLabsEngineParameters.nextText) + && Objects.equals( + this.previousRequestIds, sayElevenLabsEngineParameters.previousRequestIds) + && Objects.equals(this.nextRequestIds, sayElevenLabsEngineParameters.nextRequestIds) + && Objects.equals( + this.applyLanguageTextNormalization, + sayElevenLabsEngineParameters.applyLanguageTextNormalization); + } + + @Override + public int hashCode() { + return Objects.hash( + modelId, + voiceId, + languageCode, + voiceSettings, + pronunciationDictionary, + seed, + previousText, + nextText, + previousRequestIds, + nextRequestIds, + applyLanguageTextNormalization); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class SayElevenLabsEngineParameters {\n"); + sb.append(" modelId: ").append(toIndentedString(modelId)).append("\n"); + sb.append(" voiceId: ").append(toIndentedString(voiceId)).append("\n"); + sb.append(" languageCode: ").append(toIndentedString(languageCode)).append("\n"); + sb.append(" voiceSettings: ").append(toIndentedString(voiceSettings)).append("\n"); + sb.append(" pronunciationDictionary: ") + .append(toIndentedString(pronunciationDictionary)) + .append("\n"); + sb.append(" seed: ").append(toIndentedString(seed)).append("\n"); + sb.append(" previousText: ").append(toIndentedString(previousText)).append("\n"); + sb.append(" nextText: ").append(toIndentedString(nextText)).append("\n"); + sb.append(" previousRequestIds: ") + .append(toIndentedString(previousRequestIds)) + .append("\n"); + sb.append(" nextRequestIds: ").append(toIndentedString(nextRequestIds)).append("\n"); + sb.append(" applyLanguageTextNormalization: ") + .append(toIndentedString(applyLanguageTextNormalization)) + .append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces (except the first + * line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} diff --git a/src/main/java/com/github/freeclimbapi/models/SayElevenLabsEngineParametersPronunciationDictionaryInner.java b/src/main/java/com/github/freeclimbapi/models/SayElevenLabsEngineParametersPronunciationDictionaryInner.java new file mode 100644 index 00000000..c15664bf --- /dev/null +++ b/src/main/java/com/github/freeclimbapi/models/SayElevenLabsEngineParametersPronunciationDictionaryInner.java @@ -0,0 +1,131 @@ +/* + * FreeClimb API + * FreeClimb is a cloud-based application programming interface (API) that puts the power of the Vail platform in your hands. FreeClimb simplifies the process of creating applications that can use a full range of telephony features without requiring specialized or on-site telephony equipment. Using the FreeClimb REST API to write applications is easy! You have the option to use the language of your choice or hit the API directly. Your application can execute a command by issuing a RESTful request to the FreeClimb API. The base URL to send HTTP requests to the FreeClimb REST API is: /apiserver. FreeClimb authenticates and processes your request. + * + * The version of the OpenAPI document: 1.0.0 + * Contact: support@freeclimb.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +package com.github.freeclimbapi.models; + +import com.github.freeclimbapi.enums.*; +import com.google.gson.annotations.SerializedName; +import io.swagger.annotations.ApiModelProperty; +import java.util.*; +import java.util.Objects; + +/** SayElevenLabsEngineParametersPronunciationDictionaryInner */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +public class SayElevenLabsEngineParametersPronunciationDictionaryInner { + public static String getDiscriminatorValue() { + return null; + } + + public static final String SERIALIZED_NAME_PRONUNCIATION_DICTIONARY_ID = + "pronunciation_dictionary_id"; + + @SerializedName(SERIALIZED_NAME_PRONUNCIATION_DICTIONARY_ID) + private String pronunciationDictionaryId; + + public static final String SERIALIZED_NAME_VERSION_ID = "version_id"; + + @SerializedName(SERIALIZED_NAME_VERSION_ID) + private String versionId; + + public SayElevenLabsEngineParametersPronunciationDictionaryInner() {} + + public SayElevenLabsEngineParametersPronunciationDictionaryInner pronunciationDictionaryId( + String pronunciationDictionaryId) { + + this.pronunciationDictionaryId = pronunciationDictionaryId; + return this; + } + + /** + * Get pronunciationDictionaryId + * + * @return pronunciationDictionaryId + */ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + public String getPronunciationDictionaryId() { + return pronunciationDictionaryId; + } + + public void setPronunciationDictionaryId(String pronunciationDictionaryId) { + this.pronunciationDictionaryId = pronunciationDictionaryId; + } + + public SayElevenLabsEngineParametersPronunciationDictionaryInner versionId(String versionId) { + + this.versionId = versionId; + return this; + } + + /** + * Get versionId + * + * @return versionId + */ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + public String getVersionId() { + return versionId; + } + + public void setVersionId(String versionId) { + this.versionId = versionId; + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + SayElevenLabsEngineParametersPronunciationDictionaryInner + sayElevenLabsEngineParametersPronunciationDictionaryInner = + (SayElevenLabsEngineParametersPronunciationDictionaryInner) o; + return Objects.equals( + this.pronunciationDictionaryId, + sayElevenLabsEngineParametersPronunciationDictionaryInner + .pronunciationDictionaryId) + && Objects.equals( + this.versionId, + sayElevenLabsEngineParametersPronunciationDictionaryInner.versionId); + } + + @Override + public int hashCode() { + return Objects.hash(pronunciationDictionaryId, versionId); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class SayElevenLabsEngineParametersPronunciationDictionaryInner {\n"); + sb.append(" pronunciationDictionaryId: ") + .append(toIndentedString(pronunciationDictionaryId)) + .append("\n"); + sb.append(" versionId: ").append(toIndentedString(versionId)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces (except the first + * line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} diff --git a/src/main/java/com/github/freeclimbapi/models/SayElevenLabsEngineParametersVoiceSettings.java b/src/main/java/com/github/freeclimbapi/models/SayElevenLabsEngineParametersVoiceSettings.java new file mode 100644 index 00000000..9118b69d --- /dev/null +++ b/src/main/java/com/github/freeclimbapi/models/SayElevenLabsEngineParametersVoiceSettings.java @@ -0,0 +1,218 @@ +/* + * FreeClimb API + * FreeClimb is a cloud-based application programming interface (API) that puts the power of the Vail platform in your hands. FreeClimb simplifies the process of creating applications that can use a full range of telephony features without requiring specialized or on-site telephony equipment. Using the FreeClimb REST API to write applications is easy! You have the option to use the language of your choice or hit the API directly. Your application can execute a command by issuing a RESTful request to the FreeClimb API. The base URL to send HTTP requests to the FreeClimb REST API is: /apiserver. FreeClimb authenticates and processes your request. + * + * The version of the OpenAPI document: 1.0.0 + * Contact: support@freeclimb.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +package com.github.freeclimbapi.models; + +import com.github.freeclimbapi.enums.*; +import com.google.gson.annotations.SerializedName; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.math.BigDecimal; +import java.util.*; +import java.util.Objects; + +/** + * The voice settings to use for the TTS. The complete list of valid values for the voice_settings + * attribute is shown below. + */ +@ApiModel( + description = + "The voice settings to use for the TTS. The complete list of valid values for the" + + " voice_settings attribute is shown below.") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +public class SayElevenLabsEngineParametersVoiceSettings { + public static String getDiscriminatorValue() { + return null; + } + + public static final String SERIALIZED_NAME_STABILITY = "stability"; + + @SerializedName(SERIALIZED_NAME_STABILITY) + private BigDecimal stability; + + public static final String SERIALIZED_NAME_USE_SPEAKER_BOOST = "use_speaker_boost"; + + @SerializedName(SERIALIZED_NAME_USE_SPEAKER_BOOST) + private Boolean useSpeakerBoost; + + public static final String SERIALIZED_NAME_SIMILARITY_BOOST = "similarity_boost"; + + @SerializedName(SERIALIZED_NAME_SIMILARITY_BOOST) + private BigDecimal similarityBoost; + + public static final String SERIALIZED_NAME_STYLE = "style"; + + @SerializedName(SERIALIZED_NAME_STYLE) + private BigDecimal style; + + public static final String SERIALIZED_NAME_SPEED = "speed"; + + @SerializedName(SERIALIZED_NAME_SPEED) + private BigDecimal speed; + + public SayElevenLabsEngineParametersVoiceSettings() {} + + public SayElevenLabsEngineParametersVoiceSettings stability(BigDecimal stability) { + + this.stability = stability; + return this; + } + + /** + * Get stability + * + * @return stability + */ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + public BigDecimal getStability() { + return stability; + } + + public void setStability(BigDecimal stability) { + this.stability = stability; + } + + public SayElevenLabsEngineParametersVoiceSettings useSpeakerBoost(Boolean useSpeakerBoost) { + + this.useSpeakerBoost = useSpeakerBoost; + return this; + } + + /** + * Get useSpeakerBoost + * + * @return useSpeakerBoost + */ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + public Boolean getUseSpeakerBoost() { + return useSpeakerBoost; + } + + public void setUseSpeakerBoost(Boolean useSpeakerBoost) { + this.useSpeakerBoost = useSpeakerBoost; + } + + public SayElevenLabsEngineParametersVoiceSettings similarityBoost(BigDecimal similarityBoost) { + + this.similarityBoost = similarityBoost; + return this; + } + + /** + * Get similarityBoost + * + * @return similarityBoost + */ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + public BigDecimal getSimilarityBoost() { + return similarityBoost; + } + + public void setSimilarityBoost(BigDecimal similarityBoost) { + this.similarityBoost = similarityBoost; + } + + public SayElevenLabsEngineParametersVoiceSettings style(BigDecimal style) { + + this.style = style; + return this; + } + + /** + * Get style + * + * @return style + */ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + public BigDecimal getStyle() { + return style; + } + + public void setStyle(BigDecimal style) { + this.style = style; + } + + public SayElevenLabsEngineParametersVoiceSettings speed(BigDecimal speed) { + + this.speed = speed; + return this; + } + + /** + * Get speed + * + * @return speed + */ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + public BigDecimal getSpeed() { + return speed; + } + + public void setSpeed(BigDecimal speed) { + this.speed = speed; + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + SayElevenLabsEngineParametersVoiceSettings sayElevenLabsEngineParametersVoiceSettings = + (SayElevenLabsEngineParametersVoiceSettings) o; + return Objects.equals(this.stability, sayElevenLabsEngineParametersVoiceSettings.stability) + && Objects.equals( + this.useSpeakerBoost, + sayElevenLabsEngineParametersVoiceSettings.useSpeakerBoost) + && Objects.equals( + this.similarityBoost, + sayElevenLabsEngineParametersVoiceSettings.similarityBoost) + && Objects.equals(this.style, sayElevenLabsEngineParametersVoiceSettings.style) + && Objects.equals(this.speed, sayElevenLabsEngineParametersVoiceSettings.speed); + } + + @Override + public int hashCode() { + return Objects.hash(stability, useSpeakerBoost, similarityBoost, style, speed); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class SayElevenLabsEngineParametersVoiceSettings {\n"); + sb.append(" stability: ").append(toIndentedString(stability)).append("\n"); + sb.append(" useSpeakerBoost: ").append(toIndentedString(useSpeakerBoost)).append("\n"); + sb.append(" similarityBoost: ").append(toIndentedString(similarityBoost)).append("\n"); + sb.append(" style: ").append(toIndentedString(style)).append("\n"); + sb.append(" speed: ").append(toIndentedString(speed)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces (except the first + * line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} diff --git a/src/main/java/com/github/freeclimbapi/models/SayNeural.java b/src/main/java/com/github/freeclimbapi/models/SayNeural.java new file mode 100644 index 00000000..5845a4e9 --- /dev/null +++ b/src/main/java/com/github/freeclimbapi/models/SayNeural.java @@ -0,0 +1,206 @@ +/* + * FreeClimb API + * FreeClimb is a cloud-based application programming interface (API) that puts the power of the Vail platform in your hands. FreeClimb simplifies the process of creating applications that can use a full range of telephony features without requiring specialized or on-site telephony equipment. Using the FreeClimb REST API to write applications is easy! You have the option to use the language of your choice or hit the API directly. Your application can execute a command by issuing a RESTful request to the FreeClimb API. The base URL to send HTTP requests to the FreeClimb REST API is: /apiserver. FreeClimb authenticates and processes your request. + * + * The version of the OpenAPI document: 1.0.0 + * Contact: support@freeclimb.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +package com.github.freeclimbapi.models; + +import com.github.freeclimbapi.enums.*; +import com.google.gson.annotations.SerializedName; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.util.*; +import java.util.Objects; + +/** + * The `SayNeural` command provides Text-To-Speech (TTS) support using the + * freeclimb.neural TTS engine. It converts text to speech and then renders it in a female voice + * back to the caller. `SayNeural` is useful in cases where it's difficult to + * pre-record a prompt for any reason. `SayNeural` does not allow barge-in unless nested + * within a `GetSpeech` command. The file will always be played to completion unless + * nested. + */ +@ApiModel( + description = + "The `SayNeural` command provides Text-To-Speech (TTS) support using the" + + " freeclimb.neural TTS engine. It converts text to speech and then renders it" + + " in a female voice back to the caller. `SayNeural` is useful in cases where" + + " it's difficult to pre-record a prompt for any reason. `SayNeural` does not" + + " allow barge-in unless nested within a `GetSpeech` command. The file will" + + " always be played to completion unless nested.") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +public class SayNeural { + public static String getDiscriminatorValue() { + return null; + } + + public static final String SERIALIZED_NAME_TEXT = "text"; + + @SerializedName(SERIALIZED_NAME_TEXT) + private String text; + + public static final String SERIALIZED_NAME_LOOP = "loop"; + + @SerializedName(SERIALIZED_NAME_LOOP) + private Integer loop = 1; + + public static final String SERIALIZED_NAME_PRIVACY_MODE = "privacyMode"; + + @SerializedName(SERIALIZED_NAME_PRIVACY_MODE) + private Boolean privacyMode = false; + + public static final String SERIALIZED_NAME_ENGINE = "engine"; + + @SerializedName(SERIALIZED_NAME_ENGINE) + private SayNeuralEngine engine; + + public SayNeural() {} + + public SayNeural text(String text) { + + this.text = text; + return this; + } + + /** + * The message to be played to the caller using TTS. The size of the string is limited to 4 KB + * (or 4,096 bytes). An empty string will cause the command to be skipped. + * + * @return text + */ + @javax.annotation.Nonnull + @ApiModelProperty( + required = true, + value = + "The message to be played to the caller using TTS. The size of the string is" + + " limited to 4 KB (or 4,096 bytes). An empty string will cause the" + + " command to be skipped.") + public String getText() { + return text; + } + + public void setText(String text) { + this.text = text; + } + + public SayNeural loop(Integer loop) { + + this.loop = loop; + return this; + } + + /** + * Number of times the text is said. Specifying '0' causes the `SayNeural` + * action to loop until the Call is hung up. + * + * @return loop + */ + @javax.annotation.Nullable + @ApiModelProperty( + value = + "Number of times the text is said. Specifying '0' causes the `SayNeural` action" + + " to loop until the Call is hung up.") + public Integer getLoop() { + return loop; + } + + public void setLoop(Integer loop) { + this.loop = loop; + } + + public SayNeural privacyMode(Boolean privacyMode) { + + this.privacyMode = privacyMode; + return this; + } + + /** + * Parameter `privacyMode` will not log the `text` as required by PCI + * compliance. + * + * @return privacyMode + */ + @javax.annotation.Nullable + @ApiModelProperty( + value = + "Parameter `privacyMode` will not log the `text` as required by PCI" + + " compliance.") + public Boolean getPrivacyMode() { + return privacyMode; + } + + public void setPrivacyMode(Boolean privacyMode) { + this.privacyMode = privacyMode; + } + + public SayNeural engine(SayNeuralEngine engine) { + + this.engine = engine; + return this; + } + + /** + * Get engine + * + * @return engine + */ + @javax.annotation.Nonnull + @ApiModelProperty(required = true, value = "") + public SayNeuralEngine getEngine() { + return engine; + } + + public void setEngine(SayNeuralEngine engine) { + this.engine = engine; + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + SayNeural sayNeural = (SayNeural) o; + return Objects.equals(this.text, sayNeural.text) + && Objects.equals(this.loop, sayNeural.loop) + && Objects.equals(this.privacyMode, sayNeural.privacyMode) + && Objects.equals(this.engine, sayNeural.engine); + } + + @Override + public int hashCode() { + return Objects.hash(text, loop, privacyMode, engine); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class SayNeural {\n"); + sb.append(" text: ").append(toIndentedString(text)).append("\n"); + sb.append(" loop: ").append(toIndentedString(loop)).append("\n"); + sb.append(" privacyMode: ").append(toIndentedString(privacyMode)).append("\n"); + sb.append(" engine: ").append(toIndentedString(engine)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces (except the first + * line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} diff --git a/src/main/java/com/github/freeclimbapi/models/SayNeuralEngine.java b/src/main/java/com/github/freeclimbapi/models/SayNeuralEngine.java new file mode 100644 index 00000000..302d3777 --- /dev/null +++ b/src/main/java/com/github/freeclimbapi/models/SayNeuralEngine.java @@ -0,0 +1,132 @@ +/* + * FreeClimb API + * FreeClimb is a cloud-based application programming interface (API) that puts the power of the Vail platform in your hands. FreeClimb simplifies the process of creating applications that can use a full range of telephony features without requiring specialized or on-site telephony equipment. Using the FreeClimb REST API to write applications is easy! You have the option to use the language of your choice or hit the API directly. Your application can execute a command by issuing a RESTful request to the FreeClimb API. The base URL to send HTTP requests to the FreeClimb REST API is: /apiserver. FreeClimb authenticates and processes your request. + * + * The version of the OpenAPI document: 1.0.0 + * Contact: support@freeclimb.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +package com.github.freeclimbapi.models; + +import com.github.freeclimbapi.enums.*; +import com.google.gson.annotations.SerializedName; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.util.*; +import java.util.Objects; + +/** + * The engine to use for the TTS. The complete list of valid values for the engine attribute is + * shown below. + */ +@ApiModel( + description = + "The engine to use for the TTS. The complete list of valid values for the engine" + + " attribute is shown below.") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +public class SayNeuralEngine { + public static String getDiscriminatorValue() { + return null; + } + + public static final String SERIALIZED_NAME_NAME = "name"; + + @SerializedName(SERIALIZED_NAME_NAME) + private String name = "freeclimb.neural"; + + public static final String SERIALIZED_NAME_PARAMETERS = "parameters"; + + @SerializedName(SERIALIZED_NAME_PARAMETERS) + private SayNeuralEngineParameters parameters; + + public SayNeuralEngine() {} + + public SayNeuralEngine name(String name) { + + this.name = name; + return this; + } + + /** + * The name of the TTS engine to use. Set to `freeclimb.neural` to use the + * freeclimb.neural TTS engine. + * + * @return name + */ + @javax.annotation.Nullable + @ApiModelProperty( + value = + "The name of the TTS engine to use. Set to `freeclimb.neural` to use the" + + " freeclimb.neural TTS engine.") + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public SayNeuralEngine parameters(SayNeuralEngineParameters parameters) { + + this.parameters = parameters; + return this; + } + + /** + * Get parameters + * + * @return parameters + */ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + public SayNeuralEngineParameters getParameters() { + return parameters; + } + + public void setParameters(SayNeuralEngineParameters parameters) { + this.parameters = parameters; + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + SayNeuralEngine sayNeuralEngine = (SayNeuralEngine) o; + return Objects.equals(this.name, sayNeuralEngine.name) + && Objects.equals(this.parameters, sayNeuralEngine.parameters); + } + + @Override + public int hashCode() { + return Objects.hash(name, parameters); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class SayNeuralEngine {\n"); + sb.append(" name: ").append(toIndentedString(name)).append("\n"); + sb.append(" parameters: ").append(toIndentedString(parameters)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces (except the first + * line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} diff --git a/src/main/java/com/github/freeclimbapi/models/SayNeuralEngineParameters.java b/src/main/java/com/github/freeclimbapi/models/SayNeuralEngineParameters.java new file mode 100644 index 00000000..b0229f6e --- /dev/null +++ b/src/main/java/com/github/freeclimbapi/models/SayNeuralEngineParameters.java @@ -0,0 +1,164 @@ +/* + * FreeClimb API + * FreeClimb is a cloud-based application programming interface (API) that puts the power of the Vail platform in your hands. FreeClimb simplifies the process of creating applications that can use a full range of telephony features without requiring specialized or on-site telephony equipment. Using the FreeClimb REST API to write applications is easy! You have the option to use the language of your choice or hit the API directly. Your application can execute a command by issuing a RESTful request to the FreeClimb API. The base URL to send HTTP requests to the FreeClimb REST API is: /apiserver. FreeClimb authenticates and processes your request. + * + * The version of the OpenAPI document: 1.0.0 + * Contact: support@freeclimb.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +package com.github.freeclimbapi.models; + +import com.github.freeclimbapi.enums.*; +import com.google.gson.annotations.SerializedName; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.util.*; +import java.util.Objects; + +/** + * The parameters to use for the TTS. The complete list of valid values for the parameters attribute + * is shown below. + */ +@ApiModel( + description = + "The parameters to use for the TTS. The complete list of valid values for the" + + " parameters attribute is shown below.") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +public class SayNeuralEngineParameters { + public static String getDiscriminatorValue() { + return null; + } + + public static final String SERIALIZED_NAME_VOICE = "voice"; + + @SerializedName(SERIALIZED_NAME_VOICE) + private String voice = "Eve"; + + public static final String SERIALIZED_NAME_TEXT_TYPE = "textType"; + + @SerializedName(SERIALIZED_NAME_TEXT_TYPE) + private SayNeuralTextType textType; + + public static final String SERIALIZED_NAME_LANGUAGE = "language"; + + @SerializedName(SERIALIZED_NAME_LANGUAGE) + private String language = "en-US"; + + public SayNeuralEngineParameters() {} + + public SayNeuralEngineParameters voice(String voice) { + + this.voice = voice; + return this; + } + + /** + * The voice to use for the TTS. The complete list of valid values for the voice attribute is + * shown below. + * + * @return voice + */ + @javax.annotation.Nullable + @ApiModelProperty( + value = + "The voice to use for the TTS. The complete list of valid values for the voice" + + " attribute is shown below.") + public String getVoice() { + return voice; + } + + public void setVoice(String voice) { + this.voice = voice; + } + + public SayNeuralEngineParameters textType(SayNeuralTextType textType) { + + this.textType = textType; + return this; + } + + /** + * Get textType + * + * @return textType + */ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + public SayNeuralTextType getTextType() { + return textType; + } + + public void setTextType(SayNeuralTextType textType) { + this.textType = textType; + } + + public SayNeuralEngineParameters language(String language) { + + this.language = language; + return this; + } + + /** + * The language to use for the TTS. The complete list of valid values for the language attribute + * is shown below. + * + * @return language + */ + @javax.annotation.Nullable + @ApiModelProperty( + value = + "The language to use for the TTS. The complete list of valid values for the" + + " language attribute is shown below.") + public String getLanguage() { + return language; + } + + public void setLanguage(String language) { + this.language = language; + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + SayNeuralEngineParameters sayNeuralEngineParameters = (SayNeuralEngineParameters) o; + return Objects.equals(this.voice, sayNeuralEngineParameters.voice) + && Objects.equals(this.textType, sayNeuralEngineParameters.textType) + && Objects.equals(this.language, sayNeuralEngineParameters.language); + } + + @Override + public int hashCode() { + return Objects.hash(voice, textType, language); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class SayNeuralEngineParameters {\n"); + sb.append(" voice: ").append(toIndentedString(voice)).append("\n"); + sb.append(" textType: ").append(toIndentedString(textType)).append("\n"); + sb.append(" language: ").append(toIndentedString(language)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces (except the first + * line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} diff --git a/src/main/java/com/github/freeclimbapi/models/SayStandard.java b/src/main/java/com/github/freeclimbapi/models/SayStandard.java new file mode 100644 index 00000000..7ffc6f63 --- /dev/null +++ b/src/main/java/com/github/freeclimbapi/models/SayStandard.java @@ -0,0 +1,205 @@ +/* + * FreeClimb API + * FreeClimb is a cloud-based application programming interface (API) that puts the power of the Vail platform in your hands. FreeClimb simplifies the process of creating applications that can use a full range of telephony features without requiring specialized or on-site telephony equipment. Using the FreeClimb REST API to write applications is easy! You have the option to use the language of your choice or hit the API directly. Your application can execute a command by issuing a RESTful request to the FreeClimb API. The base URL to send HTTP requests to the FreeClimb REST API is: /apiserver. FreeClimb authenticates and processes your request. + * + * The version of the OpenAPI document: 1.0.0 + * Contact: support@freeclimb.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +package com.github.freeclimbapi.models; + +import com.github.freeclimbapi.enums.*; +import com.google.gson.annotations.SerializedName; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.util.*; +import java.util.Objects; + +/** + * The `Say` command provides Text-To-Speech (TTS) support using the freeclimb.standard + * TTS engine. It converts text to speech and then renders it in a female voice back to the caller. + * `SayStandard` is useful in cases where it's difficult to pre-record a prompt for + * any reason. `SayStandard` does not allow barge-in unless nested within a + * `GetSpeech` command. The file will always be played to completion unless nested. + */ +@ApiModel( + description = + "The `Say` command provides Text-To-Speech (TTS) support using the" + + " freeclimb.standard TTS engine. It converts text to speech and then renders" + + " it in a female voice back to the caller. `SayStandard` is useful in cases" + + " where it's difficult to pre-record a prompt for any reason. `SayStandard`" + + " does not allow barge-in unless nested within a `GetSpeech` command. The" + + " file will always be played to completion unless nested.") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +public class SayStandard { + public static String getDiscriminatorValue() { + return null; + } + + public static final String SERIALIZED_NAME_TEXT = "text"; + + @SerializedName(SERIALIZED_NAME_TEXT) + private String text; + + public static final String SERIALIZED_NAME_LOOP = "loop"; + + @SerializedName(SERIALIZED_NAME_LOOP) + private Integer loop = 1; + + public static final String SERIALIZED_NAME_PRIVACY_MODE = "privacyMode"; + + @SerializedName(SERIALIZED_NAME_PRIVACY_MODE) + private Boolean privacyMode = false; + + public static final String SERIALIZED_NAME_ENGINE = "engine"; + + @SerializedName(SERIALIZED_NAME_ENGINE) + private SayStandardEngine engine; + + public SayStandard() {} + + public SayStandard text(String text) { + + this.text = text; + return this; + } + + /** + * The message to be played to the caller using TTS. The size of the string is limited to 4 KB + * (or 4,096 bytes). An empty string will cause the command to be skipped. + * + * @return text + */ + @javax.annotation.Nonnull + @ApiModelProperty( + required = true, + value = + "The message to be played to the caller using TTS. The size of the string is" + + " limited to 4 KB (or 4,096 bytes). An empty string will cause the" + + " command to be skipped.") + public String getText() { + return text; + } + + public void setText(String text) { + this.text = text; + } + + public SayStandard loop(Integer loop) { + + this.loop = loop; + return this; + } + + /** + * Number of times the text is said. Specifying '0' causes the `Say` action to + * loop until the Call is hung up. + * + * @return loop + */ + @javax.annotation.Nullable + @ApiModelProperty( + value = + "Number of times the text is said. Specifying '0' causes the `Say` action to" + + " loop until the Call is hung up.") + public Integer getLoop() { + return loop; + } + + public void setLoop(Integer loop) { + this.loop = loop; + } + + public SayStandard privacyMode(Boolean privacyMode) { + + this.privacyMode = privacyMode; + return this; + } + + /** + * Parameter `privacyMode` will not log the `text` as required by PCI + * compliance. + * + * @return privacyMode + */ + @javax.annotation.Nullable + @ApiModelProperty( + value = + "Parameter `privacyMode` will not log the `text` as required by PCI" + + " compliance.") + public Boolean getPrivacyMode() { + return privacyMode; + } + + public void setPrivacyMode(Boolean privacyMode) { + this.privacyMode = privacyMode; + } + + public SayStandard engine(SayStandardEngine engine) { + + this.engine = engine; + return this; + } + + /** + * Get engine + * + * @return engine + */ + @javax.annotation.Nonnull + @ApiModelProperty(required = true, value = "") + public SayStandardEngine getEngine() { + return engine; + } + + public void setEngine(SayStandardEngine engine) { + this.engine = engine; + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + SayStandard sayStandard = (SayStandard) o; + return Objects.equals(this.text, sayStandard.text) + && Objects.equals(this.loop, sayStandard.loop) + && Objects.equals(this.privacyMode, sayStandard.privacyMode) + && Objects.equals(this.engine, sayStandard.engine); + } + + @Override + public int hashCode() { + return Objects.hash(text, loop, privacyMode, engine); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class SayStandard {\n"); + sb.append(" text: ").append(toIndentedString(text)).append("\n"); + sb.append(" loop: ").append(toIndentedString(loop)).append("\n"); + sb.append(" privacyMode: ").append(toIndentedString(privacyMode)).append("\n"); + sb.append(" engine: ").append(toIndentedString(engine)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces (except the first + * line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} diff --git a/src/main/java/com/github/freeclimbapi/models/SayStandardEngine.java b/src/main/java/com/github/freeclimbapi/models/SayStandardEngine.java new file mode 100644 index 00000000..f3a1f477 --- /dev/null +++ b/src/main/java/com/github/freeclimbapi/models/SayStandardEngine.java @@ -0,0 +1,189 @@ +/* + * FreeClimb API + * FreeClimb is a cloud-based application programming interface (API) that puts the power of the Vail platform in your hands. FreeClimb simplifies the process of creating applications that can use a full range of telephony features without requiring specialized or on-site telephony equipment. Using the FreeClimb REST API to write applications is easy! You have the option to use the language of your choice or hit the API directly. Your application can execute a command by issuing a RESTful request to the FreeClimb API. The base URL to send HTTP requests to the FreeClimb REST API is: /apiserver. FreeClimb authenticates and processes your request. + * + * The version of the OpenAPI document: 1.0.0 + * Contact: support@freeclimb.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +package com.github.freeclimbapi.models; + +import com.github.freeclimbapi.enums.*; +import com.google.gson.annotations.SerializedName; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.util.*; +import java.util.Objects; + +/** + * Language and (by implication) the locale to use. This implies the accent and pronunciations to be + * usde for the TTS. The complete list of valid values for the language attribute is shown below. + */ +@ApiModel( + description = + "Language and (by implication) the locale to use. This implies the accent and" + + " pronunciations to be usde for the TTS. The complete list of valid values" + + " for the language attribute is shown below.") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +public class SayStandardEngine { + public static String getDiscriminatorValue() { + return null; + } + + public static final String SERIALIZED_NAME_NAME = "name"; + + @SerializedName(SERIALIZED_NAME_NAME) + private String name = "freeclimb.standard"; + + public static final String SERIALIZED_NAME_VOICE = "Voice"; + + @SerializedName(SERIALIZED_NAME_VOICE) + private SayStandardVoice voice; + + public static final String SERIALIZED_NAME_CULTURE = "Culture"; + + @SerializedName(SERIALIZED_NAME_CULTURE) + private SayStandardCulture culture; + + public static final String SERIALIZED_NAME_CONTENT_TYPE = "Content-Type"; + + @SerializedName(SERIALIZED_NAME_CONTENT_TYPE) + private SayStandardContentType contentType; + + public SayStandardEngine() {} + + public SayStandardEngine name(String name) { + + this.name = name; + return this; + } + + /** + * The name of the TTS engine to use. Set to `freeclimb.standard` for to use the + * standard freeclimb TTS engine. + * + * @return name + */ + @javax.annotation.Nullable + @ApiModelProperty( + value = + "The name of the TTS engine to use. Set to `freeclimb.standard` for to use the" + + " standard freeclimb TTS engine.") + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public SayStandardEngine voice(SayStandardVoice voice) { + + this.voice = voice; + return this; + } + + /** + * Get voice + * + * @return voice + */ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + public SayStandardVoice getVoice() { + return voice; + } + + public void setVoice(SayStandardVoice voice) { + this.voice = voice; + } + + public SayStandardEngine culture(SayStandardCulture culture) { + + this.culture = culture; + return this; + } + + /** + * Get culture + * + * @return culture + */ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + public SayStandardCulture getCulture() { + return culture; + } + + public void setCulture(SayStandardCulture culture) { + this.culture = culture; + } + + public SayStandardEngine contentType(SayStandardContentType contentType) { + + this.contentType = contentType; + return this; + } + + /** + * Get contentType + * + * @return contentType + */ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + public SayStandardContentType getContentType() { + return contentType; + } + + public void setContentType(SayStandardContentType contentType) { + this.contentType = contentType; + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + SayStandardEngine sayStandardEngine = (SayStandardEngine) o; + return Objects.equals(this.name, sayStandardEngine.name) + && Objects.equals(this.voice, sayStandardEngine.voice) + && Objects.equals(this.culture, sayStandardEngine.culture) + && Objects.equals(this.contentType, sayStandardEngine.contentType); + } + + @Override + public int hashCode() { + return Objects.hash(name, voice, culture, contentType); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class SayStandardEngine {\n"); + sb.append(" name: ").append(toIndentedString(name)).append("\n"); + sb.append(" voice: ").append(toIndentedString(voice)).append("\n"); + sb.append(" culture: ").append(toIndentedString(culture)).append("\n"); + sb.append(" contentType: ").append(toIndentedString(contentType)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces (except the first + * line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} diff --git a/src/test/java/com/github/freeclimbapi/api/DefaultApiTest.java b/src/test/java/com/github/freeclimbapi/api/DefaultApiTest.java index a22a5301..0dc74235 100644 --- a/src/test/java/com/github/freeclimbapi/api/DefaultApiTest.java +++ b/src/test/java/com/github/freeclimbapi/api/DefaultApiTest.java @@ -33,7 +33,7 @@ public class DefaultApiTest { public void setup() { ApiClient defaultClient = Configuration.getDefaultApiClient(); defaultClient.setBasePath("http://127.0.0.1:4010"); - defaultClient.setAccountId("YOUR_ACCOUNT_ID"); + defaultClient.setAccountId("AC2d721074c7265c419cf76a82722854a3c0d595be"); defaultClient.setApiKey("YOUR_API_KEY"); this.apiInstance = new DefaultApi(defaultClient); } @@ -100,6 +100,23 @@ public void createAnApplicationTest() throws ApiException { assertEquals(response.getClass(), ApplicationResult.class); } + /** + * Create a Blob + * + *

Create a new Blob belonging to the requesting account. + * + * @throws ApiException if the Api call fails + */ + @Test + public void createBlobTest() throws ApiException { + + CreateBlobRequest createBlobRequest = createBlobRequestCreateBlobRequestTestValue(); + + BlobResult response = this.apiInstance.createBlob(createBlobRequest); + // TODO: test validations + assertEquals(response.getClass(), BlobResult.class); + } + /** * Create an Export * @@ -193,6 +210,27 @@ public void deleteAnIncomingNumberTest() throws ApiException { } + /** + * Delete Blob + * + *

Deletes a blob or specific keys from a blob. If no keys are specified in the request body, + * the entire blob is deleted (returns 204). If specific keys are provided, only those keys are + * removed and the remaining blob is returned (returns 200). + * + * @throws ApiException if the Api call fails + */ + @Test + public void deleteBlobTest() throws ApiException { + + String blobId = blobIdStringTestValue(); + + List key = keyTestArray(); + + BlobResult response = this.apiInstance.deleteBlob(blobId, key); + // TODO: test validations + assertEquals(response.getClass(), BlobResult.class); + } + /** * Dequeue a Member * @@ -438,6 +476,23 @@ public void getAnSmsMessageTest() throws ApiException { assertEquals(response.getClass(), MessageResult.class); } + /** + * Get Blob + * + *

Retrieves a specified blob + * + * @throws ApiException if the Api call fails + */ + @Test + public void getBlobTest() throws ApiException { + + String blobId = blobIdStringTestValue(); + + BlobResult response = this.apiInstance.getBlob(blobId); + // TODO: test validations + assertEquals(response.getClass(), BlobResult.class); + } + /** * Get Head Member * @@ -658,6 +713,26 @@ public void listAvailableNumbersTest() throws ApiException { assertEquals(response.getClass(), AvailableNumberList.class); } + /** + * List Blobs belonging to an account. + * + *

List Blobs belonging to an account. Results are returned in paginated lists mirroring + * other listing features in the API. + * + * @throws ApiException if the Api call fails + */ + @Test + public void listBlobsTest() throws ApiException { + + String alias = aliasStringTestValue(); + + String cursor = cursorStringTestValue(); + + BlobListResponse response = this.apiInstance.listBlobs(alias, cursor); + // TODO: test validations + assertEquals(response.getClass(), BlobListResponse.class); + } + /** * List Call Logs * @@ -813,10 +888,6 @@ public void listIncomingNumbersTest() throws ApiException { Boolean hasApplication = hasApplicationBooleanTestValue(); - Boolean voiceEnabled = voiceEnabledBooleanTestValue(); - - Boolean smsEnabled = smsEnabledBooleanTestValue(); - Boolean hasCampaign = hasCampaignBooleanTestValue(); Boolean capabilitiesVoice = capabilitiesVoiceBooleanTestValue(); @@ -841,8 +912,6 @@ public void listIncomingNumbersTest() throws ApiException { country, applicationId, hasApplication, - voiceEnabled, - smsEnabled, hasCampaign, capabilitiesVoice, capabilitiesSms, @@ -972,6 +1041,25 @@ public void makeAWebrtcJwtTest() throws ApiException { assertEquals(response.getClass(), String.class); } + /** + * Modify Blob + * + *

Modifys a pre existing blob by either adding new fields, or modifying existing fields + * + * @throws ApiException if the Api call fails + */ + @Test + public void modifyBlobTest() throws ApiException { + + String blobId = blobIdStringTestValue(); + + ModifyBlobRequest modifyBlobRequest = modifyBlobRequestModifyBlobRequestTestValue(); + + BlobResult response = this.apiInstance.modifyBlob(blobId, modifyBlobRequest); + // TODO: test validations + assertEquals(response.getClass(), BlobResult.class); + } + /** * Remove a Participant * @@ -989,6 +1077,25 @@ public void removeAParticipantTest() throws ApiException { } + /** + * Replace Blob + * + *

Replaces the blob content with the provided values. + * + * @throws ApiException if the Api call fails + */ + @Test + public void replaceBlobTest() throws ApiException { + + String blobId = blobIdStringTestValue(); + + ReplaceBlobRequest replaceBlobRequest = replaceBlobRequestReplaceBlobRequestTestValue(); + + BlobResult response = this.apiInstance.replaceBlob(blobId, replaceBlobRequest); + // TODO: test validations + assertEquals(response.getClass(), BlobResult.class); + } + /** * Send an SMS Message * @@ -1157,7 +1264,10 @@ public void filterLogsGetNextPageTest() throws ApiException { LogList response = this.apiInstance.filterLogs(filterLogsRequest); String localVarNextPageUri = - "/Accounts/{accountId}/Logs".replaceAll("\\{" + "accountId" + "\\}", "MOCK"); + "/Accounts/{accountId}/Logs" + .replaceAll( + "\\{" + "accountId" + "\\}", + "AC2d721074c7265c419cf76a82722854a3c0d595be"); response.setNextPageUri(localVarNextPageUri + "?cursor=1"); LogList nextPageResponse = this.apiInstance.getNextPage(response); assertEquals(nextPageResponse.getClass(), LogList.class); @@ -1174,7 +1284,9 @@ public void getTenDLCSmsBrandsGetNextPageTest() throws ApiException { SMSTenDLCBrandsListResult response = this.apiInstance.getTenDLCSmsBrands(); String localVarNextPageUri = "/Accounts/{accountId}/Messages/10DLC/Brands" - .replaceAll("\\{" + "accountId" + "\\}", "MOCK"); + .replaceAll( + "\\{" + "accountId" + "\\}", + "AC2d721074c7265c419cf76a82722854a3c0d595be"); response.setNextPageUri(localVarNextPageUri + "?cursor=1"); SMSTenDLCBrandsListResult nextPageResponse = this.apiInstance.getNextPage(response); assertEquals(nextPageResponse.getClass(), SMSTenDLCBrandsListResult.class); @@ -1193,7 +1305,9 @@ public void getTenDLCSmsCampaignsGetNextPageTest() throws ApiException { SMSTenDLCCampaignsListResult response = this.apiInstance.getTenDLCSmsCampaigns(brandId); String localVarNextPageUri = "/Accounts/{accountId}/Messages/10DLC/Campaigns" - .replaceAll("\\{" + "accountId" + "\\}", "MOCK"); + .replaceAll( + "\\{" + "accountId" + "\\}", + "AC2d721074c7265c419cf76a82722854a3c0d595be"); response.setNextPageUri(localVarNextPageUri + "?cursor=1"); SMSTenDLCCampaignsListResult nextPageResponse = this.apiInstance.getNextPage(response); assertEquals(nextPageResponse.getClass(), SMSTenDLCCampaignsListResult.class); @@ -1213,7 +1327,9 @@ public void getTenDLCSmsPartnerCampaignsGetNextPageTest() throws ApiException { this.apiInstance.getTenDLCSmsPartnerCampaigns(brandId); String localVarNextPageUri = "/Accounts/{accountId}/Messages/10DLC/PartnerCampaigns" - .replaceAll("\\{" + "accountId" + "\\}", "MOCK"); + .replaceAll( + "\\{" + "accountId" + "\\}", + "AC2d721074c7265c419cf76a82722854a3c0d595be"); response.setNextPageUri(localVarNextPageUri + "?cursor=1"); SMSTenDLCPartnerCampaignsListResult nextPageResponse = this.apiInstance.getNextPage(response); @@ -1231,7 +1347,9 @@ public void getTollFreeSmsCampaignsGetNextPageTest() throws ApiException { SMSTollFreeCampaignsListResult response = this.apiInstance.getTollFreeSmsCampaigns(); String localVarNextPageUri = "/Accounts/{accountId}/Messages/TollFree/Campaigns" - .replaceAll("\\{" + "accountId" + "\\}", "MOCK"); + .replaceAll( + "\\{" + "accountId" + "\\}", + "AC2d721074c7265c419cf76a82722854a3c0d595be"); response.setNextPageUri(localVarNextPageUri + "?cursor=1"); SMSTollFreeCampaignsListResult nextPageResponse = this.apiInstance.getNextPage(response); assertEquals(nextPageResponse.getClass(), SMSTollFreeCampaignsListResult.class); @@ -1249,7 +1367,10 @@ public void listActiveQueuesGetNextPageTest() throws ApiException { QueueList response = this.apiInstance.listActiveQueues(alias); String localVarNextPageUri = - "/Accounts/{accountId}/Queues".replaceAll("\\{" + "accountId" + "\\}", "MOCK"); + "/Accounts/{accountId}/Queues" + .replaceAll( + "\\{" + "accountId" + "\\}", + "AC2d721074c7265c419cf76a82722854a3c0d595be"); response.setNextPageUri(localVarNextPageUri + "?cursor=1"); QueueList nextPageResponse = this.apiInstance.getNextPage(response); assertEquals(nextPageResponse.getClass(), QueueList.class); @@ -1265,7 +1386,10 @@ public void listAllAccountLogsGetNextPageTest() throws ApiException { LogList response = this.apiInstance.listAllAccountLogs(); String localVarNextPageUri = - "/Accounts/{accountId}/Logs".replaceAll("\\{" + "accountId" + "\\}", "MOCK"); + "/Accounts/{accountId}/Logs" + .replaceAll( + "\\{" + "accountId" + "\\}", + "AC2d721074c7265c419cf76a82722854a3c0d595be"); response.setNextPageUri(localVarNextPageUri + "?cursor=1"); LogList nextPageResponse = this.apiInstance.getNextPage(response); assertEquals(nextPageResponse.getClass(), LogList.class); @@ -1284,7 +1408,9 @@ public void listApplicationsGetNextPageTest() throws ApiException { ApplicationList response = this.apiInstance.listApplications(alias); String localVarNextPageUri = "/Accounts/{accountId}/Applications" - .replaceAll("\\{" + "accountId" + "\\}", "MOCK"); + .replaceAll( + "\\{" + "accountId" + "\\}", + "AC2d721074c7265c419cf76a82722854a3c0d595be"); response.setNextPageUri(localVarNextPageUri + "?cursor=1"); ApplicationList nextPageResponse = this.apiInstance.getNextPage(response); assertEquals(nextPageResponse.getClass(), ApplicationList.class); @@ -1336,6 +1462,32 @@ public void listAvailableNumbersGetNextPageTest() throws ApiException { assertEquals(nextPageResponse.getClass(), AvailableNumberList.class); } + /** + * Get Next Page for List Blobs belonging to an account. + * + *

List Blobs belonging to an account. Results are returned in paginated lists mirroring + * other listing features in the API. + * + * @throws ApiException if the Api call fails + */ + @Test + public void listBlobsGetNextPageTest() throws ApiException { + + String alias = aliasStringTestValue(); + + String cursor = cursorStringTestValue(); + + BlobListResponse response = this.apiInstance.listBlobs(alias, cursor); + String localVarNextPageUri = + "/Accounts/{accountId}/Blobs" + .replaceAll( + "\\{" + "accountId" + "\\}", + "AC2d721074c7265c419cf76a82722854a3c0d595be"); + response.setNextPageUri(localVarNextPageUri + "?cursor=1"); + BlobListResponse nextPageResponse = this.apiInstance.getNextPage(response); + assertEquals(nextPageResponse.getClass(), BlobListResponse.class); + } + /** * Get Next Page for List Call Logs * @@ -1349,8 +1501,12 @@ public void listCallLogsGetNextPageTest() throws ApiException { LogList response = this.apiInstance.listCallLogs(callId); String localVarNextPageUri = "/Accounts/{accountId}/Calls/{callId}/Logs" - .replaceAll("\\{" + "accountId" + "\\}", "MOCK") - .replaceAll("\\{" + "callId" + "\\}", "MOCK"); + .replaceAll( + "\\{" + "accountId" + "\\}", + "AC2d721074c7265c419cf76a82722854a3c0d595be") + .replaceAll( + "\\{" + "callId" + "\\}", + "AC2d721074c7265c419cf76a82722854a3c0d595be"); response.setNextPageUri(localVarNextPageUri + "?cursor=1"); LogList nextPageResponse = this.apiInstance.getNextPage(response); assertEquals(nextPageResponse.getClass(), LogList.class); @@ -1371,8 +1527,12 @@ public void listCallRecordingsGetNextPageTest() throws ApiException { RecordingList response = this.apiInstance.listCallRecordings(callId, dateCreated); String localVarNextPageUri = "/Accounts/{accountId}/Calls/{callId}/Recordings" - .replaceAll("\\{" + "accountId" + "\\}", "MOCK") - .replaceAll("\\{" + "callId" + "\\}", "MOCK"); + .replaceAll( + "\\{" + "accountId" + "\\}", + "AC2d721074c7265c419cf76a82722854a3c0d595be") + .replaceAll( + "\\{" + "callId" + "\\}", + "AC2d721074c7265c419cf76a82722854a3c0d595be"); response.setNextPageUri(localVarNextPageUri + "?cursor=1"); RecordingList nextPageResponse = this.apiInstance.getNextPage(response); assertEquals(nextPageResponse.getClass(), RecordingList.class); @@ -1419,7 +1579,10 @@ public void listCallsGetNextPageTest() throws ApiException { riskScoreMin, riskScoreMax); String localVarNextPageUri = - "/Accounts/{accountId}/Calls".replaceAll("\\{" + "accountId" + "\\}", "MOCK"); + "/Accounts/{accountId}/Calls" + .replaceAll( + "\\{" + "accountId" + "\\}", + "AC2d721074c7265c419cf76a82722854a3c0d595be"); response.setNextPageUri(localVarNextPageUri + "?cursor=1"); CallList nextPageResponse = this.apiInstance.getNextPage(response); assertEquals(nextPageResponse.getClass(), CallList.class); @@ -1443,8 +1606,12 @@ public void listConferenceRecordingsGetNextPageTest() throws ApiException { this.apiInstance.listConferenceRecordings(conferenceId, callId, dateCreated); String localVarNextPageUri = "/Accounts/{accountId}/Conferences/{conferenceId}/Recordings" - .replaceAll("\\{" + "accountId" + "\\}", "MOCK") - .replaceAll("\\{" + "conferenceId" + "\\}", "MOCK"); + .replaceAll( + "\\{" + "accountId" + "\\}", + "AC2d721074c7265c419cf76a82722854a3c0d595be") + .replaceAll( + "\\{" + "conferenceId" + "\\}", + "AC2d721074c7265c419cf76a82722854a3c0d595be"); response.setNextPageUri(localVarNextPageUri + "?cursor=1"); RecordingList nextPageResponse = this.apiInstance.getNextPage(response); assertEquals(nextPageResponse.getClass(), RecordingList.class); @@ -1469,7 +1636,10 @@ public void listConferencesGetNextPageTest() throws ApiException { ConferenceList response = this.apiInstance.listConferences(status, alias, dateCreated, dateUpdated); String localVarNextPageUri = - "/Accounts/{accountId}/Conferences".replaceAll("\\{" + "accountId" + "\\}", "MOCK"); + "/Accounts/{accountId}/Conferences" + .replaceAll( + "\\{" + "accountId" + "\\}", + "AC2d721074c7265c419cf76a82722854a3c0d595be"); response.setNextPageUri(localVarNextPageUri + "?cursor=1"); ConferenceList nextPageResponse = this.apiInstance.getNextPage(response); assertEquals(nextPageResponse.getClass(), ConferenceList.class); @@ -1489,7 +1659,10 @@ public void listExportsGetNextPageTest() throws ApiException { ExportList response = this.apiInstance.listExports(status, cursor); String localVarNextPageUri = - "/Accounts/{accountId}/Exports".replaceAll("\\{" + "accountId" + "\\}", "MOCK"); + "/Accounts/{accountId}/Exports" + .replaceAll( + "\\{" + "accountId" + "\\}", + "AC2d721074c7265c419cf76a82722854a3c0d595be"); response.setNextPageUri(localVarNextPageUri + "?cursor=1"); ExportList nextPageResponse = this.apiInstance.getNextPage(response); assertEquals(nextPageResponse.getClass(), ExportList.class); @@ -1515,10 +1688,6 @@ public void listIncomingNumbersGetNextPageTest() throws ApiException { Boolean hasApplication = hasApplicationBooleanTestValue(); - Boolean voiceEnabled = voiceEnabledBooleanTestValue(); - - Boolean smsEnabled = smsEnabledBooleanTestValue(); - Boolean hasCampaign = hasCampaignBooleanTestValue(); Boolean capabilitiesVoice = capabilitiesVoiceBooleanTestValue(); @@ -1543,8 +1712,6 @@ public void listIncomingNumbersGetNextPageTest() throws ApiException { country, applicationId, hasApplication, - voiceEnabled, - smsEnabled, hasCampaign, capabilitiesVoice, capabilitiesSms, @@ -1555,7 +1722,9 @@ public void listIncomingNumbersGetNextPageTest() throws ApiException { offnet); String localVarNextPageUri = "/Accounts/{accountId}/IncomingPhoneNumbers" - .replaceAll("\\{" + "accountId" + "\\}", "MOCK"); + .replaceAll( + "\\{" + "accountId" + "\\}", + "AC2d721074c7265c419cf76a82722854a3c0d595be"); response.setNextPageUri(localVarNextPageUri + "?cursor=1"); IncomingNumberList nextPageResponse = this.apiInstance.getNextPage(response); assertEquals(nextPageResponse.getClass(), IncomingNumberList.class); @@ -1574,8 +1743,12 @@ public void listMembersGetNextPageTest() throws ApiException { QueueMemberList response = this.apiInstance.listMembers(queueId); String localVarNextPageUri = "/Accounts/{accountId}/Queues/{queueId}/Members" - .replaceAll("\\{" + "accountId" + "\\}", "MOCK") - .replaceAll("\\{" + "queueId" + "\\}", "MOCK"); + .replaceAll( + "\\{" + "accountId" + "\\}", + "AC2d721074c7265c419cf76a82722854a3c0d595be") + .replaceAll( + "\\{" + "queueId" + "\\}", + "AC2d721074c7265c419cf76a82722854a3c0d595be"); response.setNextPageUri(localVarNextPageUri + "?cursor=1"); QueueMemberList nextPageResponse = this.apiInstance.getNextPage(response); assertEquals(nextPageResponse.getClass(), QueueMemberList.class); @@ -1601,8 +1774,12 @@ public void listParticipantsGetNextPageTest() throws ApiException { this.apiInstance.listParticipants(conferenceId, talk, listen, dtmfPassThrough); String localVarNextPageUri = "/Accounts/{accountId}/Conferences/{conferenceId}/Participants" - .replaceAll("\\{" + "accountId" + "\\}", "MOCK") - .replaceAll("\\{" + "conferenceId" + "\\}", "MOCK"); + .replaceAll( + "\\{" + "accountId" + "\\}", + "AC2d721074c7265c419cf76a82722854a3c0d595be") + .replaceAll( + "\\{" + "conferenceId" + "\\}", + "AC2d721074c7265c419cf76a82722854a3c0d595be"); response.setNextPageUri(localVarNextPageUri + "?cursor=1"); ConferenceParticipantList nextPageResponse = this.apiInstance.getNextPage(response); assertEquals(nextPageResponse.getClass(), ConferenceParticipantList.class); @@ -1624,7 +1801,10 @@ public void listRecordingsGetNextPageTest() throws ApiException { RecordingList response = this.apiInstance.listRecordings(callId, conferenceId, dateCreated); String localVarNextPageUri = - "/Accounts/{accountId}/Recordings".replaceAll("\\{" + "accountId" + "\\}", "MOCK"); + "/Accounts/{accountId}/Recordings" + .replaceAll( + "\\{" + "accountId" + "\\}", + "AC2d721074c7265c419cf76a82722854a3c0d595be"); response.setNextPageUri(localVarNextPageUri + "?cursor=1"); RecordingList nextPageResponse = this.apiInstance.getNextPage(response); assertEquals(nextPageResponse.getClass(), RecordingList.class); @@ -1658,7 +1838,10 @@ public void listSmsMessagesGetNextPageTest() throws ApiException { this.apiInstance.listSmsMessages( to, from, beginTime, endTime, direction, campaignId, brandId, is10DLC); String localVarNextPageUri = - "/Accounts/{accountId}/Messages".replaceAll("\\{" + "accountId" + "\\}", "MOCK"); + "/Accounts/{accountId}/Messages" + .replaceAll( + "\\{" + "accountId" + "\\}", + "AC2d721074c7265c419cf76a82722854a3c0d595be"); response.setNextPageUri(localVarNextPageUri + "?cursor=1"); MessagesList nextPageResponse = this.apiInstance.getNextPage(response); assertEquals(nextPageResponse.getClass(), MessagesList.class); @@ -2050,4 +2233,38 @@ private ExportStatus statusExportStatusTestValue() { ExportStatus status = ExportStatus.COMPLETED; return status; } + + private CreateBlobRequest createBlobRequestCreateBlobRequestTestValue() { + CreateBlobRequest request = new CreateBlobRequest(); + request.setAlias("TEST-ALIAS"); + request.setExpiresAt("TEST-EXPIRY-DATE"); + request.setBlob(new Object()); + return request; + } + + private String blobIdStringTestValue() { + return "BL2d721074c7265c419cf76a82722854a3c0d595be"; + } + + private List keyTestArray() { + List keyTestArray = new ArrayList(); + keyTestArray.add("id"); + keyTestArray.add("from"); + keyTestArray.add("to"); + keyTestArray.add("text"); + return keyTestArray; + } + + private ModifyBlobRequest modifyBlobRequestModifyBlobRequestTestValue() { + ModifyBlobRequest request = new ModifyBlobRequest(); + request.setAlias("TEST-ALIAS"); + request.setBlob(new Object()); + return request; + } + + private ReplaceBlobRequest replaceBlobRequestReplaceBlobRequestTestValue() { + ReplaceBlobRequest request = new ReplaceBlobRequest(); + request.setBlob(new Object()); + return request; + } } diff --git a/src/test/java/com/github/freeclimbapi/enums/SayNeuralTextTypeTest.java b/src/test/java/com/github/freeclimbapi/enums/SayNeuralTextTypeTest.java new file mode 100644 index 00000000..599c741f --- /dev/null +++ b/src/test/java/com/github/freeclimbapi/enums/SayNeuralTextTypeTest.java @@ -0,0 +1,69 @@ +/* + * FreeClimb API + * FreeClimb is a cloud-based application programming interface (API) that puts the power of the Vail platform in your hands. FreeClimb simplifies the process of creating applications that can use a full range of telephony features without requiring specialized or on-site telephony equipment. Using the FreeClimb REST API to write applications is easy! You have the option to use the language of your choice or hit the API directly. Your application can execute a command by issuing a RESTful request to the FreeClimb API. The base URL to send HTTP requests to the FreeClimb REST API is: /apiserver. FreeClimb authenticates and processes your request. + * + * The version of the OpenAPI document: 1.0.0 + * Contact: support@freeclimb.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +package com.github.freeclimbapi; + +import com.github.freeclimbapi.enums.*; +import com.github.freeclimbapi.models.*; +import java.util.*; +import org.junit.Assert; +import org.junit.Test; + +/** Model tests for SayNeuralTextType */ +public class SayNeuralTextTypeTest { + + @Test + public void testTEXTShouldWork() { + + SayNeuralTextType test = SayNeuralTextType.TEXT; + Assert.assertEquals(test.getClass(), SayNeuralTextType.class); + } + + @Test + public void testTEXTShouldSerializeToEnum() { + + SayNeuralTextType expectedValue = SayNeuralTextType.TEXT; + SayNeuralTextType calculatedValue = SayNeuralTextType.fromValue("text"); + Assert.assertEquals(expectedValue, calculatedValue); + } + + @Test + public void testTEXTShouldDeserializeToString() { + SayNeuralTextType test = SayNeuralTextType.TEXT; + String expectedValue = "text"; + String calculatedValue = test.toString(); + Assert.assertEquals(expectedValue, calculatedValue); + } + + @Test + public void testSSMLShouldWork() { + + SayNeuralTextType test = SayNeuralTextType.SSML; + Assert.assertEquals(test.getClass(), SayNeuralTextType.class); + } + + @Test + public void testSSMLShouldSerializeToEnum() { + + SayNeuralTextType expectedValue = SayNeuralTextType.SSML; + SayNeuralTextType calculatedValue = SayNeuralTextType.fromValue("ssml"); + Assert.assertEquals(expectedValue, calculatedValue); + } + + @Test + public void testSSMLShouldDeserializeToString() { + SayNeuralTextType test = SayNeuralTextType.SSML; + String expectedValue = "ssml"; + String calculatedValue = test.toString(); + Assert.assertEquals(expectedValue, calculatedValue); + } +} diff --git a/src/test/java/com/github/freeclimbapi/enums/SayStandardContentTypeTest.java b/src/test/java/com/github/freeclimbapi/enums/SayStandardContentTypeTest.java new file mode 100644 index 00000000..1e1eab38 --- /dev/null +++ b/src/test/java/com/github/freeclimbapi/enums/SayStandardContentTypeTest.java @@ -0,0 +1,70 @@ +/* + * FreeClimb API + * FreeClimb is a cloud-based application programming interface (API) that puts the power of the Vail platform in your hands. FreeClimb simplifies the process of creating applications that can use a full range of telephony features without requiring specialized or on-site telephony equipment. Using the FreeClimb REST API to write applications is easy! You have the option to use the language of your choice or hit the API directly. Your application can execute a command by issuing a RESTful request to the FreeClimb API. The base URL to send HTTP requests to the FreeClimb REST API is: /apiserver. FreeClimb authenticates and processes your request. + * + * The version of the OpenAPI document: 1.0.0 + * Contact: support@freeclimb.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +package com.github.freeclimbapi; + +import com.github.freeclimbapi.enums.*; +import com.github.freeclimbapi.models.*; +import java.util.*; +import org.junit.Assert; +import org.junit.Test; + +/** Model tests for SayStandardContentType */ +public class SayStandardContentTypeTest { + + @Test + public void testTEXT_PLAINShouldWork() { + + SayStandardContentType test = SayStandardContentType.TEXT_PLAIN; + Assert.assertEquals(test.getClass(), SayStandardContentType.class); + } + + @Test + public void testTEXT_PLAINShouldSerializeToEnum() { + + SayStandardContentType expectedValue = SayStandardContentType.TEXT_PLAIN; + SayStandardContentType calculatedValue = SayStandardContentType.fromValue("text/plain"); + Assert.assertEquals(expectedValue, calculatedValue); + } + + @Test + public void testTEXT_PLAINShouldDeserializeToString() { + SayStandardContentType test = SayStandardContentType.TEXT_PLAIN; + String expectedValue = "text/plain"; + String calculatedValue = test.toString(); + Assert.assertEquals(expectedValue, calculatedValue); + } + + @Test + public void testAPPLICATION_SSML_XMLShouldWork() { + + SayStandardContentType test = SayStandardContentType.APPLICATION_SSML_XML; + Assert.assertEquals(test.getClass(), SayStandardContentType.class); + } + + @Test + public void testAPPLICATION_SSML_XMLShouldSerializeToEnum() { + + SayStandardContentType expectedValue = SayStandardContentType.APPLICATION_SSML_XML; + SayStandardContentType calculatedValue = + SayStandardContentType.fromValue("application/ssml+xml"); + Assert.assertEquals(expectedValue, calculatedValue); + } + + @Test + public void testAPPLICATION_SSML_XMLShouldDeserializeToString() { + SayStandardContentType test = SayStandardContentType.APPLICATION_SSML_XML; + String expectedValue = "application/ssml+xml"; + String calculatedValue = test.toString(); + Assert.assertEquals(expectedValue, calculatedValue); + } +} diff --git a/src/test/java/com/github/freeclimbapi/enums/SayStandardCultureTest.java b/src/test/java/com/github/freeclimbapi/enums/SayStandardCultureTest.java new file mode 100644 index 00000000..0deacedb --- /dev/null +++ b/src/test/java/com/github/freeclimbapi/enums/SayStandardCultureTest.java @@ -0,0 +1,621 @@ +/* + * FreeClimb API + * FreeClimb is a cloud-based application programming interface (API) that puts the power of the Vail platform in your hands. FreeClimb simplifies the process of creating applications that can use a full range of telephony features without requiring specialized or on-site telephony equipment. Using the FreeClimb REST API to write applications is easy! You have the option to use the language of your choice or hit the API directly. Your application can execute a command by issuing a RESTful request to the FreeClimb API. The base URL to send HTTP requests to the FreeClimb REST API is: /apiserver. FreeClimb authenticates and processes your request. + * + * The version of the OpenAPI document: 1.0.0 + * Contact: support@freeclimb.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +package com.github.freeclimbapi; + +import com.github.freeclimbapi.enums.*; +import com.github.freeclimbapi.models.*; +import java.util.*; +import org.junit.Assert; +import org.junit.Test; + +/** Model tests for SayStandardCulture */ +public class SayStandardCultureTest { + + @Test + public void testCA_ESShouldWork() { + + SayStandardCulture test = SayStandardCulture.CA_ES; + Assert.assertEquals(test.getClass(), SayStandardCulture.class); + } + + @Test + public void testCA_ESShouldSerializeToEnum() { + + SayStandardCulture expectedValue = SayStandardCulture.CA_ES; + SayStandardCulture calculatedValue = SayStandardCulture.fromValue("ca-ES"); + Assert.assertEquals(expectedValue, calculatedValue); + } + + @Test + public void testCA_ESShouldDeserializeToString() { + SayStandardCulture test = SayStandardCulture.CA_ES; + String expectedValue = "ca-ES"; + String calculatedValue = test.toString(); + Assert.assertEquals(expectedValue, calculatedValue); + } + + @Test + public void testDA_DKShouldWork() { + + SayStandardCulture test = SayStandardCulture.DA_DK; + Assert.assertEquals(test.getClass(), SayStandardCulture.class); + } + + @Test + public void testDA_DKShouldSerializeToEnum() { + + SayStandardCulture expectedValue = SayStandardCulture.DA_DK; + SayStandardCulture calculatedValue = SayStandardCulture.fromValue("da-DK"); + Assert.assertEquals(expectedValue, calculatedValue); + } + + @Test + public void testDA_DKShouldDeserializeToString() { + SayStandardCulture test = SayStandardCulture.DA_DK; + String expectedValue = "da-DK"; + String calculatedValue = test.toString(); + Assert.assertEquals(expectedValue, calculatedValue); + } + + @Test + public void testDE_DEShouldWork() { + + SayStandardCulture test = SayStandardCulture.DE_DE; + Assert.assertEquals(test.getClass(), SayStandardCulture.class); + } + + @Test + public void testDE_DEShouldSerializeToEnum() { + + SayStandardCulture expectedValue = SayStandardCulture.DE_DE; + SayStandardCulture calculatedValue = SayStandardCulture.fromValue("de-DE"); + Assert.assertEquals(expectedValue, calculatedValue); + } + + @Test + public void testDE_DEShouldDeserializeToString() { + SayStandardCulture test = SayStandardCulture.DE_DE; + String expectedValue = "de-DE"; + String calculatedValue = test.toString(); + Assert.assertEquals(expectedValue, calculatedValue); + } + + @Test + public void testEN_AUShouldWork() { + + SayStandardCulture test = SayStandardCulture.EN_AU; + Assert.assertEquals(test.getClass(), SayStandardCulture.class); + } + + @Test + public void testEN_AUShouldSerializeToEnum() { + + SayStandardCulture expectedValue = SayStandardCulture.EN_AU; + SayStandardCulture calculatedValue = SayStandardCulture.fromValue("en-AU"); + Assert.assertEquals(expectedValue, calculatedValue); + } + + @Test + public void testEN_AUShouldDeserializeToString() { + SayStandardCulture test = SayStandardCulture.EN_AU; + String expectedValue = "en-AU"; + String calculatedValue = test.toString(); + Assert.assertEquals(expectedValue, calculatedValue); + } + + @Test + public void testEN_CAShouldWork() { + + SayStandardCulture test = SayStandardCulture.EN_CA; + Assert.assertEquals(test.getClass(), SayStandardCulture.class); + } + + @Test + public void testEN_CAShouldSerializeToEnum() { + + SayStandardCulture expectedValue = SayStandardCulture.EN_CA; + SayStandardCulture calculatedValue = SayStandardCulture.fromValue("en-CA"); + Assert.assertEquals(expectedValue, calculatedValue); + } + + @Test + public void testEN_CAShouldDeserializeToString() { + SayStandardCulture test = SayStandardCulture.EN_CA; + String expectedValue = "en-CA"; + String calculatedValue = test.toString(); + Assert.assertEquals(expectedValue, calculatedValue); + } + + @Test + public void testEN_GBShouldWork() { + + SayStandardCulture test = SayStandardCulture.EN_GB; + Assert.assertEquals(test.getClass(), SayStandardCulture.class); + } + + @Test + public void testEN_GBShouldSerializeToEnum() { + + SayStandardCulture expectedValue = SayStandardCulture.EN_GB; + SayStandardCulture calculatedValue = SayStandardCulture.fromValue("en-GB"); + Assert.assertEquals(expectedValue, calculatedValue); + } + + @Test + public void testEN_GBShouldDeserializeToString() { + SayStandardCulture test = SayStandardCulture.EN_GB; + String expectedValue = "en-GB"; + String calculatedValue = test.toString(); + Assert.assertEquals(expectedValue, calculatedValue); + } + + @Test + public void testEN_INShouldWork() { + + SayStandardCulture test = SayStandardCulture.EN_IN; + Assert.assertEquals(test.getClass(), SayStandardCulture.class); + } + + @Test + public void testEN_INShouldSerializeToEnum() { + + SayStandardCulture expectedValue = SayStandardCulture.EN_IN; + SayStandardCulture calculatedValue = SayStandardCulture.fromValue("en-IN"); + Assert.assertEquals(expectedValue, calculatedValue); + } + + @Test + public void testEN_INShouldDeserializeToString() { + SayStandardCulture test = SayStandardCulture.EN_IN; + String expectedValue = "en-IN"; + String calculatedValue = test.toString(); + Assert.assertEquals(expectedValue, calculatedValue); + } + + @Test + public void testEN_USShouldWork() { + + SayStandardCulture test = SayStandardCulture.EN_US; + Assert.assertEquals(test.getClass(), SayStandardCulture.class); + } + + @Test + public void testEN_USShouldSerializeToEnum() { + + SayStandardCulture expectedValue = SayStandardCulture.EN_US; + SayStandardCulture calculatedValue = SayStandardCulture.fromValue("en-US"); + Assert.assertEquals(expectedValue, calculatedValue); + } + + @Test + public void testEN_USShouldDeserializeToString() { + SayStandardCulture test = SayStandardCulture.EN_US; + String expectedValue = "en-US"; + String calculatedValue = test.toString(); + Assert.assertEquals(expectedValue, calculatedValue); + } + + @Test + public void testES_ESShouldWork() { + + SayStandardCulture test = SayStandardCulture.ES_ES; + Assert.assertEquals(test.getClass(), SayStandardCulture.class); + } + + @Test + public void testES_ESShouldSerializeToEnum() { + + SayStandardCulture expectedValue = SayStandardCulture.ES_ES; + SayStandardCulture calculatedValue = SayStandardCulture.fromValue("es-ES"); + Assert.assertEquals(expectedValue, calculatedValue); + } + + @Test + public void testES_ESShouldDeserializeToString() { + SayStandardCulture test = SayStandardCulture.ES_ES; + String expectedValue = "es-ES"; + String calculatedValue = test.toString(); + Assert.assertEquals(expectedValue, calculatedValue); + } + + @Test + public void testES_MXShouldWork() { + + SayStandardCulture test = SayStandardCulture.ES_MX; + Assert.assertEquals(test.getClass(), SayStandardCulture.class); + } + + @Test + public void testES_MXShouldSerializeToEnum() { + + SayStandardCulture expectedValue = SayStandardCulture.ES_MX; + SayStandardCulture calculatedValue = SayStandardCulture.fromValue("es-MX"); + Assert.assertEquals(expectedValue, calculatedValue); + } + + @Test + public void testES_MXShouldDeserializeToString() { + SayStandardCulture test = SayStandardCulture.ES_MX; + String expectedValue = "es-MX"; + String calculatedValue = test.toString(); + Assert.assertEquals(expectedValue, calculatedValue); + } + + @Test + public void testFI_FIShouldWork() { + + SayStandardCulture test = SayStandardCulture.FI_FI; + Assert.assertEquals(test.getClass(), SayStandardCulture.class); + } + + @Test + public void testFI_FIShouldSerializeToEnum() { + + SayStandardCulture expectedValue = SayStandardCulture.FI_FI; + SayStandardCulture calculatedValue = SayStandardCulture.fromValue("fi-FI"); + Assert.assertEquals(expectedValue, calculatedValue); + } + + @Test + public void testFI_FIShouldDeserializeToString() { + SayStandardCulture test = SayStandardCulture.FI_FI; + String expectedValue = "fi-FI"; + String calculatedValue = test.toString(); + Assert.assertEquals(expectedValue, calculatedValue); + } + + @Test + public void testFR_CAShouldWork() { + + SayStandardCulture test = SayStandardCulture.FR_CA; + Assert.assertEquals(test.getClass(), SayStandardCulture.class); + } + + @Test + public void testFR_CAShouldSerializeToEnum() { + + SayStandardCulture expectedValue = SayStandardCulture.FR_CA; + SayStandardCulture calculatedValue = SayStandardCulture.fromValue("fr-CA"); + Assert.assertEquals(expectedValue, calculatedValue); + } + + @Test + public void testFR_CAShouldDeserializeToString() { + SayStandardCulture test = SayStandardCulture.FR_CA; + String expectedValue = "fr-CA"; + String calculatedValue = test.toString(); + Assert.assertEquals(expectedValue, calculatedValue); + } + + @Test + public void testFR_FRShouldWork() { + + SayStandardCulture test = SayStandardCulture.FR_FR; + Assert.assertEquals(test.getClass(), SayStandardCulture.class); + } + + @Test + public void testFR_FRShouldSerializeToEnum() { + + SayStandardCulture expectedValue = SayStandardCulture.FR_FR; + SayStandardCulture calculatedValue = SayStandardCulture.fromValue("fr-FR"); + Assert.assertEquals(expectedValue, calculatedValue); + } + + @Test + public void testFR_FRShouldDeserializeToString() { + SayStandardCulture test = SayStandardCulture.FR_FR; + String expectedValue = "fr-FR"; + String calculatedValue = test.toString(); + Assert.assertEquals(expectedValue, calculatedValue); + } + + @Test + public void testIT_ITShouldWork() { + + SayStandardCulture test = SayStandardCulture.IT_IT; + Assert.assertEquals(test.getClass(), SayStandardCulture.class); + } + + @Test + public void testIT_ITShouldSerializeToEnum() { + + SayStandardCulture expectedValue = SayStandardCulture.IT_IT; + SayStandardCulture calculatedValue = SayStandardCulture.fromValue("it-IT"); + Assert.assertEquals(expectedValue, calculatedValue); + } + + @Test + public void testIT_ITShouldDeserializeToString() { + SayStandardCulture test = SayStandardCulture.IT_IT; + String expectedValue = "it-IT"; + String calculatedValue = test.toString(); + Assert.assertEquals(expectedValue, calculatedValue); + } + + @Test + public void testJA_JPShouldWork() { + + SayStandardCulture test = SayStandardCulture.JA_JP; + Assert.assertEquals(test.getClass(), SayStandardCulture.class); + } + + @Test + public void testJA_JPShouldSerializeToEnum() { + + SayStandardCulture expectedValue = SayStandardCulture.JA_JP; + SayStandardCulture calculatedValue = SayStandardCulture.fromValue("ja-JP"); + Assert.assertEquals(expectedValue, calculatedValue); + } + + @Test + public void testJA_JPShouldDeserializeToString() { + SayStandardCulture test = SayStandardCulture.JA_JP; + String expectedValue = "ja-JP"; + String calculatedValue = test.toString(); + Assert.assertEquals(expectedValue, calculatedValue); + } + + @Test + public void testKO_KRShouldWork() { + + SayStandardCulture test = SayStandardCulture.KO_KR; + Assert.assertEquals(test.getClass(), SayStandardCulture.class); + } + + @Test + public void testKO_KRShouldSerializeToEnum() { + + SayStandardCulture expectedValue = SayStandardCulture.KO_KR; + SayStandardCulture calculatedValue = SayStandardCulture.fromValue("ko-KR"); + Assert.assertEquals(expectedValue, calculatedValue); + } + + @Test + public void testKO_KRShouldDeserializeToString() { + SayStandardCulture test = SayStandardCulture.KO_KR; + String expectedValue = "ko-KR"; + String calculatedValue = test.toString(); + Assert.assertEquals(expectedValue, calculatedValue); + } + + @Test + public void testNB_NOShouldWork() { + + SayStandardCulture test = SayStandardCulture.NB_NO; + Assert.assertEquals(test.getClass(), SayStandardCulture.class); + } + + @Test + public void testNB_NOShouldSerializeToEnum() { + + SayStandardCulture expectedValue = SayStandardCulture.NB_NO; + SayStandardCulture calculatedValue = SayStandardCulture.fromValue("nb-NO"); + Assert.assertEquals(expectedValue, calculatedValue); + } + + @Test + public void testNB_NOShouldDeserializeToString() { + SayStandardCulture test = SayStandardCulture.NB_NO; + String expectedValue = "nb-NO"; + String calculatedValue = test.toString(); + Assert.assertEquals(expectedValue, calculatedValue); + } + + @Test + public void testNL_NLShouldWork() { + + SayStandardCulture test = SayStandardCulture.NL_NL; + Assert.assertEquals(test.getClass(), SayStandardCulture.class); + } + + @Test + public void testNL_NLShouldSerializeToEnum() { + + SayStandardCulture expectedValue = SayStandardCulture.NL_NL; + SayStandardCulture calculatedValue = SayStandardCulture.fromValue("nl-NL"); + Assert.assertEquals(expectedValue, calculatedValue); + } + + @Test + public void testNL_NLShouldDeserializeToString() { + SayStandardCulture test = SayStandardCulture.NL_NL; + String expectedValue = "nl-NL"; + String calculatedValue = test.toString(); + Assert.assertEquals(expectedValue, calculatedValue); + } + + @Test + public void testPL_PLShouldWork() { + + SayStandardCulture test = SayStandardCulture.PL_PL; + Assert.assertEquals(test.getClass(), SayStandardCulture.class); + } + + @Test + public void testPL_PLShouldSerializeToEnum() { + + SayStandardCulture expectedValue = SayStandardCulture.PL_PL; + SayStandardCulture calculatedValue = SayStandardCulture.fromValue("pl-PL"); + Assert.assertEquals(expectedValue, calculatedValue); + } + + @Test + public void testPL_PLShouldDeserializeToString() { + SayStandardCulture test = SayStandardCulture.PL_PL; + String expectedValue = "pl-PL"; + String calculatedValue = test.toString(); + Assert.assertEquals(expectedValue, calculatedValue); + } + + @Test + public void testPT_BRShouldWork() { + + SayStandardCulture test = SayStandardCulture.PT_BR; + Assert.assertEquals(test.getClass(), SayStandardCulture.class); + } + + @Test + public void testPT_BRShouldSerializeToEnum() { + + SayStandardCulture expectedValue = SayStandardCulture.PT_BR; + SayStandardCulture calculatedValue = SayStandardCulture.fromValue("pt-BR"); + Assert.assertEquals(expectedValue, calculatedValue); + } + + @Test + public void testPT_BRShouldDeserializeToString() { + SayStandardCulture test = SayStandardCulture.PT_BR; + String expectedValue = "pt-BR"; + String calculatedValue = test.toString(); + Assert.assertEquals(expectedValue, calculatedValue); + } + + @Test + public void testPT_PTShouldWork() { + + SayStandardCulture test = SayStandardCulture.PT_PT; + Assert.assertEquals(test.getClass(), SayStandardCulture.class); + } + + @Test + public void testPT_PTShouldSerializeToEnum() { + + SayStandardCulture expectedValue = SayStandardCulture.PT_PT; + SayStandardCulture calculatedValue = SayStandardCulture.fromValue("pt-PT"); + Assert.assertEquals(expectedValue, calculatedValue); + } + + @Test + public void testPT_PTShouldDeserializeToString() { + SayStandardCulture test = SayStandardCulture.PT_PT; + String expectedValue = "pt-PT"; + String calculatedValue = test.toString(); + Assert.assertEquals(expectedValue, calculatedValue); + } + + @Test + public void testRU_RUShouldWork() { + + SayStandardCulture test = SayStandardCulture.RU_RU; + Assert.assertEquals(test.getClass(), SayStandardCulture.class); + } + + @Test + public void testRU_RUShouldSerializeToEnum() { + + SayStandardCulture expectedValue = SayStandardCulture.RU_RU; + SayStandardCulture calculatedValue = SayStandardCulture.fromValue("ru-RU"); + Assert.assertEquals(expectedValue, calculatedValue); + } + + @Test + public void testRU_RUShouldDeserializeToString() { + SayStandardCulture test = SayStandardCulture.RU_RU; + String expectedValue = "ru-RU"; + String calculatedValue = test.toString(); + Assert.assertEquals(expectedValue, calculatedValue); + } + + @Test + public void testSV_SEShouldWork() { + + SayStandardCulture test = SayStandardCulture.SV_SE; + Assert.assertEquals(test.getClass(), SayStandardCulture.class); + } + + @Test + public void testSV_SEShouldSerializeToEnum() { + + SayStandardCulture expectedValue = SayStandardCulture.SV_SE; + SayStandardCulture calculatedValue = SayStandardCulture.fromValue("sv-SE"); + Assert.assertEquals(expectedValue, calculatedValue); + } + + @Test + public void testSV_SEShouldDeserializeToString() { + SayStandardCulture test = SayStandardCulture.SV_SE; + String expectedValue = "sv-SE"; + String calculatedValue = test.toString(); + Assert.assertEquals(expectedValue, calculatedValue); + } + + @Test + public void testZH_CNShouldWork() { + + SayStandardCulture test = SayStandardCulture.ZH_CN; + Assert.assertEquals(test.getClass(), SayStandardCulture.class); + } + + @Test + public void testZH_CNShouldSerializeToEnum() { + + SayStandardCulture expectedValue = SayStandardCulture.ZH_CN; + SayStandardCulture calculatedValue = SayStandardCulture.fromValue("zh-CN"); + Assert.assertEquals(expectedValue, calculatedValue); + } + + @Test + public void testZH_CNShouldDeserializeToString() { + SayStandardCulture test = SayStandardCulture.ZH_CN; + String expectedValue = "zh-CN"; + String calculatedValue = test.toString(); + Assert.assertEquals(expectedValue, calculatedValue); + } + + @Test + public void testZH_HKShouldWork() { + + SayStandardCulture test = SayStandardCulture.ZH_HK; + Assert.assertEquals(test.getClass(), SayStandardCulture.class); + } + + @Test + public void testZH_HKShouldSerializeToEnum() { + + SayStandardCulture expectedValue = SayStandardCulture.ZH_HK; + SayStandardCulture calculatedValue = SayStandardCulture.fromValue("zh-HK"); + Assert.assertEquals(expectedValue, calculatedValue); + } + + @Test + public void testZH_HKShouldDeserializeToString() { + SayStandardCulture test = SayStandardCulture.ZH_HK; + String expectedValue = "zh-HK"; + String calculatedValue = test.toString(); + Assert.assertEquals(expectedValue, calculatedValue); + } + + @Test + public void testZH_TWShouldWork() { + + SayStandardCulture test = SayStandardCulture.ZH_TW; + Assert.assertEquals(test.getClass(), SayStandardCulture.class); + } + + @Test + public void testZH_TWShouldSerializeToEnum() { + + SayStandardCulture expectedValue = SayStandardCulture.ZH_TW; + SayStandardCulture calculatedValue = SayStandardCulture.fromValue("zh-TW"); + Assert.assertEquals(expectedValue, calculatedValue); + } + + @Test + public void testZH_TWShouldDeserializeToString() { + SayStandardCulture test = SayStandardCulture.ZH_TW; + String expectedValue = "zh-TW"; + String calculatedValue = test.toString(); + Assert.assertEquals(expectedValue, calculatedValue); + } +} diff --git a/src/test/java/com/github/freeclimbapi/enums/SayStandardVoiceTest.java b/src/test/java/com/github/freeclimbapi/enums/SayStandardVoiceTest.java new file mode 100644 index 00000000..249f42fa --- /dev/null +++ b/src/test/java/com/github/freeclimbapi/enums/SayStandardVoiceTest.java @@ -0,0 +1,621 @@ +/* + * FreeClimb API + * FreeClimb is a cloud-based application programming interface (API) that puts the power of the Vail platform in your hands. FreeClimb simplifies the process of creating applications that can use a full range of telephony features without requiring specialized or on-site telephony equipment. Using the FreeClimb REST API to write applications is easy! You have the option to use the language of your choice or hit the API directly. Your application can execute a command by issuing a RESTful request to the FreeClimb API. The base URL to send HTTP requests to the FreeClimb REST API is: /apiserver. FreeClimb authenticates and processes your request. + * + * The version of the OpenAPI document: 1.0.0 + * Contact: support@freeclimb.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +package com.github.freeclimbapi; + +import com.github.freeclimbapi.enums.*; +import com.github.freeclimbapi.models.*; +import java.util.*; +import org.junit.Assert; +import org.junit.Test; + +/** Model tests for SayStandardVoice */ +public class SayStandardVoiceTest { + + @Test + public void testHERENAShouldWork() { + + SayStandardVoice test = SayStandardVoice.HERENA; + Assert.assertEquals(test.getClass(), SayStandardVoice.class); + } + + @Test + public void testHERENAShouldSerializeToEnum() { + + SayStandardVoice expectedValue = SayStandardVoice.HERENA; + SayStandardVoice calculatedValue = SayStandardVoice.fromValue("Herena"); + Assert.assertEquals(expectedValue, calculatedValue); + } + + @Test + public void testHERENAShouldDeserializeToString() { + SayStandardVoice test = SayStandardVoice.HERENA; + String expectedValue = "Herena"; + String calculatedValue = test.toString(); + Assert.assertEquals(expectedValue, calculatedValue); + } + + @Test + public void testHELLEShouldWork() { + + SayStandardVoice test = SayStandardVoice.HELLE; + Assert.assertEquals(test.getClass(), SayStandardVoice.class); + } + + @Test + public void testHELLEShouldSerializeToEnum() { + + SayStandardVoice expectedValue = SayStandardVoice.HELLE; + SayStandardVoice calculatedValue = SayStandardVoice.fromValue("Helle"); + Assert.assertEquals(expectedValue, calculatedValue); + } + + @Test + public void testHELLEShouldDeserializeToString() { + SayStandardVoice test = SayStandardVoice.HELLE; + String expectedValue = "Helle"; + String calculatedValue = test.toString(); + Assert.assertEquals(expectedValue, calculatedValue); + } + + @Test + public void testHEDDAShouldWork() { + + SayStandardVoice test = SayStandardVoice.HEDDA; + Assert.assertEquals(test.getClass(), SayStandardVoice.class); + } + + @Test + public void testHEDDAShouldSerializeToEnum() { + + SayStandardVoice expectedValue = SayStandardVoice.HEDDA; + SayStandardVoice calculatedValue = SayStandardVoice.fromValue("Hedda"); + Assert.assertEquals(expectedValue, calculatedValue); + } + + @Test + public void testHEDDAShouldDeserializeToString() { + SayStandardVoice test = SayStandardVoice.HEDDA; + String expectedValue = "Hedda"; + String calculatedValue = test.toString(); + Assert.assertEquals(expectedValue, calculatedValue); + } + + @Test + public void testHAYLEYShouldWork() { + + SayStandardVoice test = SayStandardVoice.HAYLEY; + Assert.assertEquals(test.getClass(), SayStandardVoice.class); + } + + @Test + public void testHAYLEYShouldSerializeToEnum() { + + SayStandardVoice expectedValue = SayStandardVoice.HAYLEY; + SayStandardVoice calculatedValue = SayStandardVoice.fromValue("Hayley"); + Assert.assertEquals(expectedValue, calculatedValue); + } + + @Test + public void testHAYLEYShouldDeserializeToString() { + SayStandardVoice test = SayStandardVoice.HAYLEY; + String expectedValue = "Hayley"; + String calculatedValue = test.toString(); + Assert.assertEquals(expectedValue, calculatedValue); + } + + @Test + public void testHEATHERShouldWork() { + + SayStandardVoice test = SayStandardVoice.HEATHER; + Assert.assertEquals(test.getClass(), SayStandardVoice.class); + } + + @Test + public void testHEATHERShouldSerializeToEnum() { + + SayStandardVoice expectedValue = SayStandardVoice.HEATHER; + SayStandardVoice calculatedValue = SayStandardVoice.fromValue("Heather"); + Assert.assertEquals(expectedValue, calculatedValue); + } + + @Test + public void testHEATHERShouldDeserializeToString() { + SayStandardVoice test = SayStandardVoice.HEATHER; + String expectedValue = "Heather"; + String calculatedValue = test.toString(); + Assert.assertEquals(expectedValue, calculatedValue); + } + + @Test + public void testHAZELShouldWork() { + + SayStandardVoice test = SayStandardVoice.HAZEL; + Assert.assertEquals(test.getClass(), SayStandardVoice.class); + } + + @Test + public void testHAZELShouldSerializeToEnum() { + + SayStandardVoice expectedValue = SayStandardVoice.HAZEL; + SayStandardVoice calculatedValue = SayStandardVoice.fromValue("Hazel"); + Assert.assertEquals(expectedValue, calculatedValue); + } + + @Test + public void testHAZELShouldDeserializeToString() { + SayStandardVoice test = SayStandardVoice.HAZEL; + String expectedValue = "Hazel"; + String calculatedValue = test.toString(); + Assert.assertEquals(expectedValue, calculatedValue); + } + + @Test + public void testHEERAShouldWork() { + + SayStandardVoice test = SayStandardVoice.HEERA; + Assert.assertEquals(test.getClass(), SayStandardVoice.class); + } + + @Test + public void testHEERAShouldSerializeToEnum() { + + SayStandardVoice expectedValue = SayStandardVoice.HEERA; + SayStandardVoice calculatedValue = SayStandardVoice.fromValue("Heera"); + Assert.assertEquals(expectedValue, calculatedValue); + } + + @Test + public void testHEERAShouldDeserializeToString() { + SayStandardVoice test = SayStandardVoice.HEERA; + String expectedValue = "Heera"; + String calculatedValue = test.toString(); + Assert.assertEquals(expectedValue, calculatedValue); + } + + @Test + public void testHELENShouldWork() { + + SayStandardVoice test = SayStandardVoice.HELEN; + Assert.assertEquals(test.getClass(), SayStandardVoice.class); + } + + @Test + public void testHELENShouldSerializeToEnum() { + + SayStandardVoice expectedValue = SayStandardVoice.HELEN; + SayStandardVoice calculatedValue = SayStandardVoice.fromValue("Helen"); + Assert.assertEquals(expectedValue, calculatedValue); + } + + @Test + public void testHELENShouldDeserializeToString() { + SayStandardVoice test = SayStandardVoice.HELEN; + String expectedValue = "Helen"; + String calculatedValue = test.toString(); + Assert.assertEquals(expectedValue, calculatedValue); + } + + @Test + public void testZIRA_PROShouldWork() { + + SayStandardVoice test = SayStandardVoice.ZIRA_PRO; + Assert.assertEquals(test.getClass(), SayStandardVoice.class); + } + + @Test + public void testZIRA_PROShouldSerializeToEnum() { + + SayStandardVoice expectedValue = SayStandardVoice.ZIRA_PRO; + SayStandardVoice calculatedValue = SayStandardVoice.fromValue("ZiraPro"); + Assert.assertEquals(expectedValue, calculatedValue); + } + + @Test + public void testZIRA_PROShouldDeserializeToString() { + SayStandardVoice test = SayStandardVoice.ZIRA_PRO; + String expectedValue = "ZiraPro"; + String calculatedValue = test.toString(); + Assert.assertEquals(expectedValue, calculatedValue); + } + + @Test + public void testHELENAShouldWork() { + + SayStandardVoice test = SayStandardVoice.HELENA; + Assert.assertEquals(test.getClass(), SayStandardVoice.class); + } + + @Test + public void testHELENAShouldSerializeToEnum() { + + SayStandardVoice expectedValue = SayStandardVoice.HELENA; + SayStandardVoice calculatedValue = SayStandardVoice.fromValue("Helena"); + Assert.assertEquals(expectedValue, calculatedValue); + } + + @Test + public void testHELENAShouldDeserializeToString() { + SayStandardVoice test = SayStandardVoice.HELENA; + String expectedValue = "Helena"; + String calculatedValue = test.toString(); + Assert.assertEquals(expectedValue, calculatedValue); + } + + @Test + public void testHILDAShouldWork() { + + SayStandardVoice test = SayStandardVoice.HILDA; + Assert.assertEquals(test.getClass(), SayStandardVoice.class); + } + + @Test + public void testHILDAShouldSerializeToEnum() { + + SayStandardVoice expectedValue = SayStandardVoice.HILDA; + SayStandardVoice calculatedValue = SayStandardVoice.fromValue("Hilda"); + Assert.assertEquals(expectedValue, calculatedValue); + } + + @Test + public void testHILDAShouldDeserializeToString() { + SayStandardVoice test = SayStandardVoice.HILDA; + String expectedValue = "Hilda"; + String calculatedValue = test.toString(); + Assert.assertEquals(expectedValue, calculatedValue); + } + + @Test + public void testHEIDIShouldWork() { + + SayStandardVoice test = SayStandardVoice.HEIDI; + Assert.assertEquals(test.getClass(), SayStandardVoice.class); + } + + @Test + public void testHEIDIShouldSerializeToEnum() { + + SayStandardVoice expectedValue = SayStandardVoice.HEIDI; + SayStandardVoice calculatedValue = SayStandardVoice.fromValue("Heidi"); + Assert.assertEquals(expectedValue, calculatedValue); + } + + @Test + public void testHEIDIShouldDeserializeToString() { + SayStandardVoice test = SayStandardVoice.HEIDI; + String expectedValue = "Heidi"; + String calculatedValue = test.toString(); + Assert.assertEquals(expectedValue, calculatedValue); + } + + @Test + public void testHARMONIEShouldWork() { + + SayStandardVoice test = SayStandardVoice.HARMONIE; + Assert.assertEquals(test.getClass(), SayStandardVoice.class); + } + + @Test + public void testHARMONIEShouldSerializeToEnum() { + + SayStandardVoice expectedValue = SayStandardVoice.HARMONIE; + SayStandardVoice calculatedValue = SayStandardVoice.fromValue("Harmonie"); + Assert.assertEquals(expectedValue, calculatedValue); + } + + @Test + public void testHARMONIEShouldDeserializeToString() { + SayStandardVoice test = SayStandardVoice.HARMONIE; + String expectedValue = "Harmonie"; + String calculatedValue = test.toString(); + Assert.assertEquals(expectedValue, calculatedValue); + } + + @Test + public void testHORTENSEShouldWork() { + + SayStandardVoice test = SayStandardVoice.HORTENSE; + Assert.assertEquals(test.getClass(), SayStandardVoice.class); + } + + @Test + public void testHORTENSEShouldSerializeToEnum() { + + SayStandardVoice expectedValue = SayStandardVoice.HORTENSE; + SayStandardVoice calculatedValue = SayStandardVoice.fromValue("Hortense"); + Assert.assertEquals(expectedValue, calculatedValue); + } + + @Test + public void testHORTENSEShouldDeserializeToString() { + SayStandardVoice test = SayStandardVoice.HORTENSE; + String expectedValue = "Hortense"; + String calculatedValue = test.toString(); + Assert.assertEquals(expectedValue, calculatedValue); + } + + @Test + public void testLUCIAShouldWork() { + + SayStandardVoice test = SayStandardVoice.LUCIA; + Assert.assertEquals(test.getClass(), SayStandardVoice.class); + } + + @Test + public void testLUCIAShouldSerializeToEnum() { + + SayStandardVoice expectedValue = SayStandardVoice.LUCIA; + SayStandardVoice calculatedValue = SayStandardVoice.fromValue("Lucia"); + Assert.assertEquals(expectedValue, calculatedValue); + } + + @Test + public void testLUCIAShouldDeserializeToString() { + SayStandardVoice test = SayStandardVoice.LUCIA; + String expectedValue = "Lucia"; + String calculatedValue = test.toString(); + Assert.assertEquals(expectedValue, calculatedValue); + } + + @Test + public void testHARKUAShouldWork() { + + SayStandardVoice test = SayStandardVoice.HARKUA; + Assert.assertEquals(test.getClass(), SayStandardVoice.class); + } + + @Test + public void testHARKUAShouldSerializeToEnum() { + + SayStandardVoice expectedValue = SayStandardVoice.HARKUA; + SayStandardVoice calculatedValue = SayStandardVoice.fromValue("Harkua"); + Assert.assertEquals(expectedValue, calculatedValue); + } + + @Test + public void testHARKUAShouldDeserializeToString() { + SayStandardVoice test = SayStandardVoice.HARKUA; + String expectedValue = "Harkua"; + String calculatedValue = test.toString(); + Assert.assertEquals(expectedValue, calculatedValue); + } + + @Test + public void testHEAMIShouldWork() { + + SayStandardVoice test = SayStandardVoice.HEAMI; + Assert.assertEquals(test.getClass(), SayStandardVoice.class); + } + + @Test + public void testHEAMIShouldSerializeToEnum() { + + SayStandardVoice expectedValue = SayStandardVoice.HEAMI; + SayStandardVoice calculatedValue = SayStandardVoice.fromValue("Heami"); + Assert.assertEquals(expectedValue, calculatedValue); + } + + @Test + public void testHEAMIShouldDeserializeToString() { + SayStandardVoice test = SayStandardVoice.HEAMI; + String expectedValue = "Heami"; + String calculatedValue = test.toString(); + Assert.assertEquals(expectedValue, calculatedValue); + } + + @Test + public void testHULDAShouldWork() { + + SayStandardVoice test = SayStandardVoice.HULDA; + Assert.assertEquals(test.getClass(), SayStandardVoice.class); + } + + @Test + public void testHULDAShouldSerializeToEnum() { + + SayStandardVoice expectedValue = SayStandardVoice.HULDA; + SayStandardVoice calculatedValue = SayStandardVoice.fromValue("Hulda"); + Assert.assertEquals(expectedValue, calculatedValue); + } + + @Test + public void testHULDAShouldDeserializeToString() { + SayStandardVoice test = SayStandardVoice.HULDA; + String expectedValue = "Hulda"; + String calculatedValue = test.toString(); + Assert.assertEquals(expectedValue, calculatedValue); + } + + @Test + public void testHANNAShouldWork() { + + SayStandardVoice test = SayStandardVoice.HANNA; + Assert.assertEquals(test.getClass(), SayStandardVoice.class); + } + + @Test + public void testHANNAShouldSerializeToEnum() { + + SayStandardVoice expectedValue = SayStandardVoice.HANNA; + SayStandardVoice calculatedValue = SayStandardVoice.fromValue("Hanna"); + Assert.assertEquals(expectedValue, calculatedValue); + } + + @Test + public void testHANNAShouldDeserializeToString() { + SayStandardVoice test = SayStandardVoice.HANNA; + String expectedValue = "Hanna"; + String calculatedValue = test.toString(); + Assert.assertEquals(expectedValue, calculatedValue); + } + + @Test + public void testPAULINAShouldWork() { + + SayStandardVoice test = SayStandardVoice.PAULINA; + Assert.assertEquals(test.getClass(), SayStandardVoice.class); + } + + @Test + public void testPAULINAShouldSerializeToEnum() { + + SayStandardVoice expectedValue = SayStandardVoice.PAULINA; + SayStandardVoice calculatedValue = SayStandardVoice.fromValue("Paulina"); + Assert.assertEquals(expectedValue, calculatedValue); + } + + @Test + public void testPAULINAShouldDeserializeToString() { + SayStandardVoice test = SayStandardVoice.PAULINA; + String expectedValue = "Paulina"; + String calculatedValue = test.toString(); + Assert.assertEquals(expectedValue, calculatedValue); + } + + @Test + public void testHELOSIAShouldWork() { + + SayStandardVoice test = SayStandardVoice.HELOSIA; + Assert.assertEquals(test.getClass(), SayStandardVoice.class); + } + + @Test + public void testHELOSIAShouldSerializeToEnum() { + + SayStandardVoice expectedValue = SayStandardVoice.HELOSIA; + SayStandardVoice calculatedValue = SayStandardVoice.fromValue("Helosia"); + Assert.assertEquals(expectedValue, calculatedValue); + } + + @Test + public void testHELOSIAShouldDeserializeToString() { + SayStandardVoice test = SayStandardVoice.HELOSIA; + String expectedValue = "Helosia"; + String calculatedValue = test.toString(); + Assert.assertEquals(expectedValue, calculatedValue); + } + + @Test + public void testHELIAShouldWork() { + + SayStandardVoice test = SayStandardVoice.HELIA; + Assert.assertEquals(test.getClass(), SayStandardVoice.class); + } + + @Test + public void testHELIAShouldSerializeToEnum() { + + SayStandardVoice expectedValue = SayStandardVoice.HELIA; + SayStandardVoice calculatedValue = SayStandardVoice.fromValue("Helia"); + Assert.assertEquals(expectedValue, calculatedValue); + } + + @Test + public void testHELIAShouldDeserializeToString() { + SayStandardVoice test = SayStandardVoice.HELIA; + String expectedValue = "Helia"; + String calculatedValue = test.toString(); + Assert.assertEquals(expectedValue, calculatedValue); + } + + @Test + public void testELENAShouldWork() { + + SayStandardVoice test = SayStandardVoice.ELENA; + Assert.assertEquals(test.getClass(), SayStandardVoice.class); + } + + @Test + public void testELENAShouldSerializeToEnum() { + + SayStandardVoice expectedValue = SayStandardVoice.ELENA; + SayStandardVoice calculatedValue = SayStandardVoice.fromValue("Elena"); + Assert.assertEquals(expectedValue, calculatedValue); + } + + @Test + public void testELENAShouldDeserializeToString() { + SayStandardVoice test = SayStandardVoice.ELENA; + String expectedValue = "Elena"; + String calculatedValue = test.toString(); + Assert.assertEquals(expectedValue, calculatedValue); + } + + @Test + public void testHEDVIGShouldWork() { + + SayStandardVoice test = SayStandardVoice.HEDVIG; + Assert.assertEquals(test.getClass(), SayStandardVoice.class); + } + + @Test + public void testHEDVIGShouldSerializeToEnum() { + + SayStandardVoice expectedValue = SayStandardVoice.HEDVIG; + SayStandardVoice calculatedValue = SayStandardVoice.fromValue("Hedvig"); + Assert.assertEquals(expectedValue, calculatedValue); + } + + @Test + public void testHEDVIGShouldDeserializeToString() { + SayStandardVoice test = SayStandardVoice.HEDVIG; + String expectedValue = "Hedvig"; + String calculatedValue = test.toString(); + Assert.assertEquals(expectedValue, calculatedValue); + } + + @Test + public void testHUN_YEEShouldWork() { + + SayStandardVoice test = SayStandardVoice.HUN_YEE; + Assert.assertEquals(test.getClass(), SayStandardVoice.class); + } + + @Test + public void testHUN_YEEShouldSerializeToEnum() { + + SayStandardVoice expectedValue = SayStandardVoice.HUN_YEE; + SayStandardVoice calculatedValue = SayStandardVoice.fromValue("HunYee"); + Assert.assertEquals(expectedValue, calculatedValue); + } + + @Test + public void testHUN_YEEShouldDeserializeToString() { + SayStandardVoice test = SayStandardVoice.HUN_YEE; + String expectedValue = "HunYee"; + String calculatedValue = test.toString(); + Assert.assertEquals(expectedValue, calculatedValue); + } + + @Test + public void testHAN_HANShouldWork() { + + SayStandardVoice test = SayStandardVoice.HAN_HAN; + Assert.assertEquals(test.getClass(), SayStandardVoice.class); + } + + @Test + public void testHAN_HANShouldSerializeToEnum() { + + SayStandardVoice expectedValue = SayStandardVoice.HAN_HAN; + SayStandardVoice calculatedValue = SayStandardVoice.fromValue("HanHan"); + Assert.assertEquals(expectedValue, calculatedValue); + } + + @Test + public void testHAN_HANShouldDeserializeToString() { + SayStandardVoice test = SayStandardVoice.HAN_HAN; + String expectedValue = "HanHan"; + String calculatedValue = test.toString(); + Assert.assertEquals(expectedValue, calculatedValue); + } +} diff --git a/src/test/java/com/github/freeclimbapi/models/ApplicationListTest.java b/src/test/java/com/github/freeclimbapi/models/ApplicationListTest.java index 93bad508..7bf46a25 100644 --- a/src/test/java/com/github/freeclimbapi/models/ApplicationListTest.java +++ b/src/test/java/com/github/freeclimbapi/models/ApplicationListTest.java @@ -108,8 +108,8 @@ public void equalsTrueTest() { test1.setNextPageUri("TS"); - List testList = new ArrayList(); - test1.setApplications(testList); + List testsetApplicationsList = new ArrayList(); + test1.setApplications(testsetApplicationsList); ApplicationList test2 = new ApplicationList(); test2.setTotal(1); @@ -125,8 +125,8 @@ public void equalsTrueTest() { test2.setNextPageUri("TS"); - List testList2 = testList; - test2.setApplications(testList2); + List testsetApplicationsList2 = testsetApplicationsList; + test2.setApplications(testsetApplicationsList2); Assert.assertTrue(test1.equals(test2)); } @@ -149,8 +149,8 @@ public void equalsFalseTest() { test1.setNextPageUri("TS"); - List testList = new ArrayList(); - test1.setApplications(testList); + List testsetApplicationsList = new ArrayList(); + test1.setApplications(testsetApplicationsList); ApplicationList test2 = new ApplicationList(); test2.setTotal(0); @@ -166,8 +166,8 @@ public void equalsFalseTest() { test2.setNextPageUri("TS2"); - List testList2 = null; - test2.setApplications(testList2); + List testsetApplicationsList2 = null; + test2.setApplications(testsetApplicationsList2); Assert.assertFalse(test1.equals(test2)); } @@ -190,8 +190,8 @@ public void hashCodeTypeTest() { test1.setNextPageUri("TS"); - List testList = new ArrayList(); - test1.setApplications(testList); + List testsetApplicationsList = new ArrayList(); + test1.setApplications(testsetApplicationsList); int hashCode1 = test1.hashCode(); Assert.assertTrue(Integer.class.isInstance(hashCode1)); @@ -215,8 +215,8 @@ public void toStringEqualsTest() { test1.setNextPageUri("TS"); - List testList = new ArrayList(); - test1.setApplications(testList); + List testsetApplicationsList = new ArrayList(); + test1.setApplications(testsetApplicationsList); ApplicationList test2 = new ApplicationList(); test2.setTotal(1); @@ -232,8 +232,8 @@ public void toStringEqualsTest() { test2.setNextPageUri("TS"); - List testList2 = testList; - test2.setApplications(testList2); + List testsetApplicationsList2 = testsetApplicationsList; + test2.setApplications(testsetApplicationsList2); String toString1 = test1.toString(); String toString2 = test2.toString(); @@ -258,8 +258,8 @@ public void hashCodeEqualsTrueTest() { test1.setNextPageUri("TS"); - List testList = new ArrayList(); - test1.setApplications(testList); + List testsetApplicationsList = new ArrayList(); + test1.setApplications(testsetApplicationsList); ApplicationList test2 = new ApplicationList(); test2.setTotal(1); @@ -275,8 +275,8 @@ public void hashCodeEqualsTrueTest() { test2.setNextPageUri("TS"); - List testList2 = testList; - test2.setApplications(testList2); + List testsetApplicationsList2 = testsetApplicationsList; + test2.setApplications(testsetApplicationsList2); Assert.assertEquals(test1.hashCode(), test2.hashCode()); } @@ -298,8 +298,8 @@ public void hashCodeEqualsFalseTest() { test1.setNextPageUri("TS"); - List testList = new ArrayList(); - test1.setApplications(testList); + List testsetApplicationsList = new ArrayList(); + test1.setApplications(testsetApplicationsList); ApplicationList test2 = new ApplicationList(); test2.setTotal(0); @@ -315,8 +315,8 @@ public void hashCodeEqualsFalseTest() { test2.setNextPageUri("TS2"); - List testList2 = null; - test2.setApplications(testList2); + List testsetApplicationsList2 = null; + test2.setApplications(testsetApplicationsList2); Assert.assertNotEquals(test1.hashCode(), test2.hashCode()); } @@ -338,8 +338,8 @@ public void toStringTypeTest() { test1.setNextPageUri("TS"); - List testList = new ArrayList(); - test1.setApplications(testList); + List testsetApplicationsList = new ArrayList(); + test1.setApplications(testsetApplicationsList); String toString1 = test1.toString(); Assert.assertTrue(String.class.isInstance(toString1)); diff --git a/src/test/java/com/github/freeclimbapi/models/AvailableNumberListTest.java b/src/test/java/com/github/freeclimbapi/models/AvailableNumberListTest.java index 67de0ba4..fb61e41f 100644 --- a/src/test/java/com/github/freeclimbapi/models/AvailableNumberListTest.java +++ b/src/test/java/com/github/freeclimbapi/models/AvailableNumberListTest.java @@ -108,8 +108,8 @@ public void equalsTrueTest() { test1.setNextPageUri("TS"); - List testList = new ArrayList(); - test1.setAvailablePhoneNumbers(testList); + List testsetAvailablePhoneNumbersList = new ArrayList(); + test1.setAvailablePhoneNumbers(testsetAvailablePhoneNumbersList); AvailableNumberList test2 = new AvailableNumberList(); test2.setTotal(1); @@ -125,8 +125,8 @@ public void equalsTrueTest() { test2.setNextPageUri("TS"); - List testList2 = testList; - test2.setAvailablePhoneNumbers(testList2); + List testsetAvailablePhoneNumbersList2 = testsetAvailablePhoneNumbersList; + test2.setAvailablePhoneNumbers(testsetAvailablePhoneNumbersList2); Assert.assertTrue(test1.equals(test2)); } @@ -149,8 +149,8 @@ public void equalsFalseTest() { test1.setNextPageUri("TS"); - List testList = new ArrayList(); - test1.setAvailablePhoneNumbers(testList); + List testsetAvailablePhoneNumbersList = new ArrayList(); + test1.setAvailablePhoneNumbers(testsetAvailablePhoneNumbersList); AvailableNumberList test2 = new AvailableNumberList(); test2.setTotal(0); @@ -166,8 +166,8 @@ public void equalsFalseTest() { test2.setNextPageUri("TS2"); - List testList2 = null; - test2.setAvailablePhoneNumbers(testList2); + List testsetAvailablePhoneNumbersList2 = null; + test2.setAvailablePhoneNumbers(testsetAvailablePhoneNumbersList2); Assert.assertFalse(test1.equals(test2)); } @@ -190,8 +190,8 @@ public void hashCodeTypeTest() { test1.setNextPageUri("TS"); - List testList = new ArrayList(); - test1.setAvailablePhoneNumbers(testList); + List testsetAvailablePhoneNumbersList = new ArrayList(); + test1.setAvailablePhoneNumbers(testsetAvailablePhoneNumbersList); int hashCode1 = test1.hashCode(); Assert.assertTrue(Integer.class.isInstance(hashCode1)); @@ -215,8 +215,8 @@ public void toStringEqualsTest() { test1.setNextPageUri("TS"); - List testList = new ArrayList(); - test1.setAvailablePhoneNumbers(testList); + List testsetAvailablePhoneNumbersList = new ArrayList(); + test1.setAvailablePhoneNumbers(testsetAvailablePhoneNumbersList); AvailableNumberList test2 = new AvailableNumberList(); test2.setTotal(1); @@ -232,8 +232,8 @@ public void toStringEqualsTest() { test2.setNextPageUri("TS"); - List testList2 = testList; - test2.setAvailablePhoneNumbers(testList2); + List testsetAvailablePhoneNumbersList2 = testsetAvailablePhoneNumbersList; + test2.setAvailablePhoneNumbers(testsetAvailablePhoneNumbersList2); String toString1 = test1.toString(); String toString2 = test2.toString(); @@ -258,8 +258,8 @@ public void hashCodeEqualsTrueTest() { test1.setNextPageUri("TS"); - List testList = new ArrayList(); - test1.setAvailablePhoneNumbers(testList); + List testsetAvailablePhoneNumbersList = new ArrayList(); + test1.setAvailablePhoneNumbers(testsetAvailablePhoneNumbersList); AvailableNumberList test2 = new AvailableNumberList(); test2.setTotal(1); @@ -275,8 +275,8 @@ public void hashCodeEqualsTrueTest() { test2.setNextPageUri("TS"); - List testList2 = testList; - test2.setAvailablePhoneNumbers(testList2); + List testsetAvailablePhoneNumbersList2 = testsetAvailablePhoneNumbersList; + test2.setAvailablePhoneNumbers(testsetAvailablePhoneNumbersList2); Assert.assertEquals(test1.hashCode(), test2.hashCode()); } @@ -298,8 +298,8 @@ public void hashCodeEqualsFalseTest() { test1.setNextPageUri("TS"); - List testList = new ArrayList(); - test1.setAvailablePhoneNumbers(testList); + List testsetAvailablePhoneNumbersList = new ArrayList(); + test1.setAvailablePhoneNumbers(testsetAvailablePhoneNumbersList); AvailableNumberList test2 = new AvailableNumberList(); test2.setTotal(0); @@ -315,8 +315,8 @@ public void hashCodeEqualsFalseTest() { test2.setNextPageUri("TS2"); - List testList2 = null; - test2.setAvailablePhoneNumbers(testList2); + List testsetAvailablePhoneNumbersList2 = null; + test2.setAvailablePhoneNumbers(testsetAvailablePhoneNumbersList2); Assert.assertNotEquals(test1.hashCode(), test2.hashCode()); } @@ -338,8 +338,8 @@ public void toStringTypeTest() { test1.setNextPageUri("TS"); - List testList = new ArrayList(); - test1.setAvailablePhoneNumbers(testList); + List testsetAvailablePhoneNumbersList = new ArrayList(); + test1.setAvailablePhoneNumbers(testsetAvailablePhoneNumbersList); String toString1 = test1.toString(); Assert.assertTrue(String.class.isInstance(toString1)); diff --git a/src/test/java/com/github/freeclimbapi/models/AvailableNumberTest.java b/src/test/java/com/github/freeclimbapi/models/AvailableNumberTest.java index c6540d8a..144dc370 100644 --- a/src/test/java/com/github/freeclimbapi/models/AvailableNumberTest.java +++ b/src/test/java/com/github/freeclimbapi/models/AvailableNumberTest.java @@ -48,20 +48,6 @@ public void phoneNumberTest() { Assert.assertEquals("TEST_STRING", model.getPhoneNumber()); } - /** Test the property 'voiceEnabled' */ - @Test - public void voiceEnabledTest() { - model.setVoiceEnabled(false); - Assert.assertEquals(false, model.getVoiceEnabled()); - } - - /** Test the property 'smsEnabled' */ - @Test - public void smsEnabledTest() { - model.setSmsEnabled(false); - Assert.assertEquals(false, model.getSmsEnabled()); - } - /** Test the property 'region' */ @Test public void regionTest() { @@ -90,10 +76,6 @@ public void equalsTrueTest() { test1.setPhoneNumber("TS"); - test1.setVoiceEnabled(true); - - test1.setSmsEnabled(true); - test1.setRegion("TS"); test1.setCountry("TS"); @@ -107,10 +89,6 @@ public void equalsTrueTest() { test2.setPhoneNumber("TS"); - test2.setVoiceEnabled(true); - - test2.setSmsEnabled(true); - test2.setRegion("TS"); test2.setCountry("TS"); @@ -130,10 +108,6 @@ public void equalsFalseTest() { test1.setPhoneNumber("TS"); - test1.setVoiceEnabled(true); - - test1.setSmsEnabled(true); - test1.setRegion("TS"); test1.setCountry("TS"); @@ -147,10 +121,6 @@ public void equalsFalseTest() { test2.setPhoneNumber("TS2"); - test2.setVoiceEnabled(false); - - test2.setSmsEnabled(false); - test2.setRegion("TS2"); test2.setCountry("TS2"); @@ -170,10 +140,6 @@ public void hashCodeTypeTest() { test1.setPhoneNumber("TS"); - test1.setVoiceEnabled(true); - - test1.setSmsEnabled(true); - test1.setRegion("TS"); test1.setCountry("TS"); @@ -194,10 +160,6 @@ public void toStringEqualsTest() { test1.setPhoneNumber("TS"); - test1.setVoiceEnabled(true); - - test1.setSmsEnabled(true); - test1.setRegion("TS"); test1.setCountry("TS"); @@ -211,10 +173,6 @@ public void toStringEqualsTest() { test2.setPhoneNumber("TS"); - test2.setVoiceEnabled(true); - - test2.setSmsEnabled(true); - test2.setRegion("TS"); test2.setCountry("TS"); @@ -236,10 +194,6 @@ public void hashCodeEqualsTrueTest() { test1.setPhoneNumber("TS"); - test1.setVoiceEnabled(true); - - test1.setSmsEnabled(true); - test1.setRegion("TS"); test1.setCountry("TS"); @@ -253,10 +207,6 @@ public void hashCodeEqualsTrueTest() { test2.setPhoneNumber("TS"); - test2.setVoiceEnabled(true); - - test2.setSmsEnabled(true); - test2.setRegion("TS"); test2.setCountry("TS"); @@ -276,10 +226,6 @@ public void hashCodeEqualsFalseTest() { test1.setPhoneNumber("TS"); - test1.setVoiceEnabled(true); - - test1.setSmsEnabled(true); - test1.setRegion("TS"); test1.setCountry("TS"); @@ -293,10 +239,6 @@ public void hashCodeEqualsFalseTest() { test2.setPhoneNumber("TS2"); - test2.setVoiceEnabled(false); - - test2.setSmsEnabled(false); - test2.setRegion("TS2"); test2.setCountry("TS2"); @@ -316,10 +258,6 @@ public void toStringTypeTest() { test1.setPhoneNumber("TS"); - test1.setVoiceEnabled(true); - - test1.setSmsEnabled(true); - test1.setRegion("TS"); test1.setCountry("TS"); diff --git a/src/test/java/com/github/freeclimbapi/models/BlobListResponseTest.java b/src/test/java/com/github/freeclimbapi/models/BlobListResponseTest.java new file mode 100644 index 00000000..3fcc9b2f --- /dev/null +++ b/src/test/java/com/github/freeclimbapi/models/BlobListResponseTest.java @@ -0,0 +1,347 @@ +/* + * FreeClimb API + * FreeClimb is a cloud-based application programming interface (API) that puts the power of the Vail platform in your hands. FreeClimb simplifies the process of creating applications that can use a full range of telephony features without requiring specialized or on-site telephony equipment. Using the FreeClimb REST API to write applications is easy! You have the option to use the language of your choice or hit the API directly. Your application can execute a command by issuing a RESTful request to the FreeClimb API. The base URL to send HTTP requests to the FreeClimb REST API is: /apiserver. FreeClimb authenticates and processes your request. + * + * The version of the OpenAPI document: 1.0.0 + * Contact: support@freeclimb.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +package com.github.freeclimbapi; + +import com.github.freeclimbapi.enums.*; +import com.github.freeclimbapi.models.*; +import java.util.*; +import java.util.ArrayList; +import java.util.List; +import org.junit.Assert; +import org.junit.Test; + +/** Model tests for BlobListResponse */ +public class BlobListResponseTest { + + private final BlobListResponse model = new BlobListResponse(); + + /** Test the property 'total' */ + @Test + public void totalTest() { + + model.setTotal(1); + Assert.assertEquals(1, (int) model.getTotal()); + } + + /** Test the property 'start' */ + @Test + public void startTest() { + + model.setStart(1); + Assert.assertEquals(1, (int) model.getStart()); + } + + /** Test the property 'end' */ + @Test + public void endTest() { + + model.setEnd(1); + Assert.assertEquals(1, (int) model.getEnd()); + } + + /** Test the property 'page' */ + @Test + public void pageTest() { + + model.setPage(1); + Assert.assertEquals(1, (int) model.getPage()); + } + + /** Test the property 'numPages' */ + @Test + public void numPagesTest() { + + model.setNumPages(1); + Assert.assertEquals(1, (int) model.getNumPages()); + } + + /** Test the property 'pageSize' */ + @Test + public void pageSizeTest() { + + model.setPageSize(1); + Assert.assertEquals(1, (int) model.getPageSize()); + } + + /** Test the property 'nextPageUri' */ + @Test + public void nextPageUriTest() { + + model.setNextPageUri("TEST_STRING"); + Assert.assertEquals("TEST_STRING", model.getNextPageUri()); + } + + /** Test the property 'blobs' */ + @Test + public void blobsTest() { + + List testList = new ArrayList(); + model.setBlobs(testList); + Assert.assertEquals(testList, model.getBlobs()); + } + + /** Test the method 'equalsTrue' */ + @Test + public void equalsTrueTest() { + BlobListResponse test1 = new BlobListResponse(); + test1.setTotal(1); + + test1.setStart(1); + + test1.setEnd(1); + + test1.setPage(1); + + test1.setNumPages(1); + + test1.setPageSize(1); + + test1.setNextPageUri("TS"); + + List testsetBlobsList = new ArrayList(); + test1.setBlobs(testsetBlobsList); + BlobListResponse test2 = new BlobListResponse(); + test2.setTotal(1); + + test2.setStart(1); + + test2.setEnd(1); + + test2.setPage(1); + + test2.setNumPages(1); + + test2.setPageSize(1); + + test2.setNextPageUri("TS"); + + List testsetBlobsList2 = testsetBlobsList; + test2.setBlobs(testsetBlobsList2); + + Assert.assertTrue(test1.equals(test2)); + } + + /** Test the method 'equalsFalse' */ + @Test + public void equalsFalseTest() { + BlobListResponse test1 = new BlobListResponse(); + test1.setTotal(1); + + test1.setStart(1); + + test1.setEnd(1); + + test1.setPage(1); + + test1.setNumPages(1); + + test1.setPageSize(1); + + test1.setNextPageUri("TS"); + + List testsetBlobsList = new ArrayList(); + test1.setBlobs(testsetBlobsList); + BlobListResponse test2 = new BlobListResponse(); + test2.setTotal(0); + + test2.setStart(0); + + test2.setEnd(0); + + test2.setPage(0); + + test2.setNumPages(0); + + test2.setPageSize(0); + + test2.setNextPageUri("TS2"); + + List testsetBlobsList2 = null; + test2.setBlobs(testsetBlobsList2); + + Assert.assertFalse(test1.equals(test2)); + } + + /** Test the method 'hashCodeType' */ + @Test + public void hashCodeTypeTest() { + BlobListResponse test1 = new BlobListResponse(); + test1.setTotal(1); + + test1.setStart(1); + + test1.setEnd(1); + + test1.setPage(1); + + test1.setNumPages(1); + + test1.setPageSize(1); + + test1.setNextPageUri("TS"); + + List testsetBlobsList = new ArrayList(); + test1.setBlobs(testsetBlobsList); + + int hashCode1 = test1.hashCode(); + Assert.assertTrue(Integer.class.isInstance(hashCode1)); + } + + /** Test the method 'toStringEquals' */ + @Test + public void toStringEqualsTest() { + BlobListResponse test1 = new BlobListResponse(); + test1.setTotal(1); + + test1.setStart(1); + + test1.setEnd(1); + + test1.setPage(1); + + test1.setNumPages(1); + + test1.setPageSize(1); + + test1.setNextPageUri("TS"); + + List testsetBlobsList = new ArrayList(); + test1.setBlobs(testsetBlobsList); + BlobListResponse test2 = new BlobListResponse(); + test2.setTotal(1); + + test2.setStart(1); + + test2.setEnd(1); + + test2.setPage(1); + + test2.setNumPages(1); + + test2.setPageSize(1); + + test2.setNextPageUri("TS"); + + List testsetBlobsList2 = testsetBlobsList; + test2.setBlobs(testsetBlobsList2); + + String toString1 = test1.toString(); + String toString2 = test2.toString(); + Assert.assertEquals(toString1, toString2); + } + + /** Test the method 'hashCodeEqualsTrue' */ + @Test + public void hashCodeEqualsTrueTest() { + BlobListResponse test1 = new BlobListResponse(); + test1.setTotal(1); + + test1.setStart(1); + + test1.setEnd(1); + + test1.setPage(1); + + test1.setNumPages(1); + + test1.setPageSize(1); + + test1.setNextPageUri("TS"); + + List testsetBlobsList = new ArrayList(); + test1.setBlobs(testsetBlobsList); + BlobListResponse test2 = new BlobListResponse(); + test2.setTotal(1); + + test2.setStart(1); + + test2.setEnd(1); + + test2.setPage(1); + + test2.setNumPages(1); + + test2.setPageSize(1); + + test2.setNextPageUri("TS"); + + List testsetBlobsList2 = testsetBlobsList; + test2.setBlobs(testsetBlobsList2); + Assert.assertEquals(test1.hashCode(), test2.hashCode()); + } + + /** Test the method 'hashCodeEqualsFalse' */ + @Test + public void hashCodeEqualsFalseTest() { + BlobListResponse test1 = new BlobListResponse(); + test1.setTotal(1); + + test1.setStart(1); + + test1.setEnd(1); + + test1.setPage(1); + + test1.setNumPages(1); + + test1.setPageSize(1); + + test1.setNextPageUri("TS"); + + List testsetBlobsList = new ArrayList(); + test1.setBlobs(testsetBlobsList); + BlobListResponse test2 = new BlobListResponse(); + test2.setTotal(0); + + test2.setStart(0); + + test2.setEnd(0); + + test2.setPage(0); + + test2.setNumPages(0); + + test2.setPageSize(0); + + test2.setNextPageUri("TS2"); + + List testsetBlobsList2 = null; + test2.setBlobs(testsetBlobsList2); + Assert.assertNotEquals(test1.hashCode(), test2.hashCode()); + } + + /** Test the method 'toStringType' */ + @Test + public void toStringTypeTest() { + BlobListResponse test1 = new BlobListResponse(); + test1.setTotal(1); + + test1.setStart(1); + + test1.setEnd(1); + + test1.setPage(1); + + test1.setNumPages(1); + + test1.setPageSize(1); + + test1.setNextPageUri("TS"); + + List testsetBlobsList = new ArrayList(); + test1.setBlobs(testsetBlobsList); + + String toString1 = test1.toString(); + Assert.assertTrue(String.class.isInstance(toString1)); + } +} diff --git a/src/test/java/com/github/freeclimbapi/models/BlobResultTest.java b/src/test/java/com/github/freeclimbapi/models/BlobResultTest.java new file mode 100644 index 00000000..81583815 --- /dev/null +++ b/src/test/java/com/github/freeclimbapi/models/BlobResultTest.java @@ -0,0 +1,362 @@ +/* + * FreeClimb API + * FreeClimb is a cloud-based application programming interface (API) that puts the power of the Vail platform in your hands. FreeClimb simplifies the process of creating applications that can use a full range of telephony features without requiring specialized or on-site telephony equipment. Using the FreeClimb REST API to write applications is easy! You have the option to use the language of your choice or hit the API directly. Your application can execute a command by issuing a RESTful request to the FreeClimb API. The base URL to send HTTP requests to the FreeClimb REST API is: /apiserver. FreeClimb authenticates and processes your request. + * + * The version of the OpenAPI document: 1.0.0 + * Contact: support@freeclimb.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +package com.github.freeclimbapi; + +import com.github.freeclimbapi.enums.*; +import com.github.freeclimbapi.models.*; +import java.util.*; +import org.junit.Assert; +import org.junit.Test; +import org.threeten.bp.OffsetDateTime; + +/** Model tests for BlobResult */ +public class BlobResultTest { + + private final BlobResult model = new BlobResult(); + + /** Test the property 'blobId' */ + @Test + public void blobIdTest() { + + model.setBlobId("TEST_STRING"); + Assert.assertEquals("TEST_STRING", model.getBlobId()); + } + + /** Test the property 'accountId' */ + @Test + public void accountIdTest() { + + model.setAccountId("TEST_STRING"); + Assert.assertEquals("TEST_STRING", model.getAccountId()); + } + + /** Test the property 'alias' */ + @Test + public void aliasTest() { + + model.setAlias("TEST_STRING"); + Assert.assertEquals("TEST_STRING", model.getAlias()); + } + + /** Test the property 'revision' */ + @Test + public void revisionTest() { + + model.setRevision(1); + Assert.assertEquals(1, (int) model.getRevision()); + } + + /** Test the property 'dateCreated' */ + @Test + public void dateCreatedTest() { + model.setDateCreated(OffsetDateTime.parse("2022-07-05T15:17:05Z")); + Assert.assertEquals(OffsetDateTime.parse("2022-07-05T15:17:05Z"), model.getDateCreated()); + } + + /** Test the property 'dateUpdated' */ + @Test + public void dateUpdatedTest() { + model.setDateUpdated(OffsetDateTime.parse("2022-07-05T15:17:05Z")); + Assert.assertEquals(OffsetDateTime.parse("2022-07-05T15:17:05Z"), model.getDateUpdated()); + } + + /** Test the property 'expiresAt' */ + @Test + public void expiresAtTest() { + model.setExpiresAt(OffsetDateTime.parse("2022-07-05T15:17:05Z")); + Assert.assertEquals(OffsetDateTime.parse("2022-07-05T15:17:05Z"), model.getExpiresAt()); + } + + /** Test the property 'blob' */ + @Test + public void blobTest() { + + Object object = new Object(); + model.setBlob(object); + Assert.assertEquals(object.getClass(), Object.class); + } + + /** Test the method 'equalsTrue' */ + @Test + public void equalsTrueTest() { + BlobResult test1 = new BlobResult(); + + test1.setBlobId("TS"); + + test1.setAccountId("TS"); + + test1.setAlias("TS"); + + test1.setRevision(1); + + test1.setDateCreated(OffsetDateTime.parse("2022-07-05T15:17:05Z")); + + test1.setDateUpdated(OffsetDateTime.parse("2022-07-05T15:17:05Z")); + + test1.setExpiresAt(OffsetDateTime.parse("2022-07-05T15:17:05Z")); + + Object testObjectObject = new Object(); + test1.setBlob(testObjectObject); + + BlobResult test2 = new BlobResult(); + + test2.setBlobId("TS"); + + test2.setAccountId("TS"); + + test2.setAlias("TS"); + + test2.setRevision(1); + + test2.setDateCreated(OffsetDateTime.parse("2022-07-05T15:17:05Z")); + + test2.setDateUpdated(OffsetDateTime.parse("2022-07-05T15:17:05Z")); + + test2.setExpiresAt(OffsetDateTime.parse("2022-07-05T15:17:05Z")); + + Object testObjectObject2 = testObjectObject; + test2.setBlob(testObjectObject2); + + Assert.assertTrue(test1.equals(test2)); + } + + /** Test the method 'equalsFalse' */ + @Test + public void equalsFalseTest() { + BlobResult test1 = new BlobResult(); + + test1.setBlobId("TS"); + + test1.setAccountId("TS"); + + test1.setAlias("TS"); + + test1.setRevision(1); + + test1.setDateCreated(OffsetDateTime.parse("2022-07-05T15:17:05Z")); + + test1.setDateUpdated(OffsetDateTime.parse("2022-07-05T15:17:05Z")); + + test1.setExpiresAt(OffsetDateTime.parse("2022-07-05T15:17:05Z")); + + Object testObjectObject = new Object(); + test1.setBlob(testObjectObject); + + BlobResult test2 = new BlobResult(); + + test2.setBlobId("TS2"); + + test2.setAccountId("TS2"); + + test2.setAlias("TS2"); + + test2.setRevision(0); + + test2.setDateCreated(OffsetDateTime.parse("2024-07-05T15:17:05Z")); + + test2.setDateUpdated(OffsetDateTime.parse("2024-07-05T15:17:05Z")); + + test2.setExpiresAt(OffsetDateTime.parse("2024-07-05T15:17:05Z")); + + Object testObjectObject2 = new Object(); + test2.setBlob(testObjectObject2); + + Assert.assertFalse(test1.equals(test2)); + } + + /** Test the method 'hashCodeType' */ + @Test + public void hashCodeTypeTest() { + BlobResult test1 = new BlobResult(); + + test1.setBlobId("TS"); + + test1.setAccountId("TS"); + + test1.setAlias("TS"); + + test1.setRevision(1); + + test1.setDateCreated(OffsetDateTime.parse("2022-07-05T15:17:05Z")); + + test1.setDateUpdated(OffsetDateTime.parse("2022-07-05T15:17:05Z")); + + test1.setExpiresAt(OffsetDateTime.parse("2022-07-05T15:17:05Z")); + + Object testObjectObject = new Object(); + test1.setBlob(testObjectObject); + + int hashCode1 = test1.hashCode(); + Assert.assertTrue(Integer.class.isInstance(hashCode1)); + } + + /** Test the method 'toStringEquals' */ + @Test + public void toStringEqualsTest() { + BlobResult test1 = new BlobResult(); + + test1.setBlobId("TS"); + + test1.setAccountId("TS"); + + test1.setAlias("TS"); + + test1.setRevision(1); + + test1.setDateCreated(OffsetDateTime.parse("2022-07-05T15:17:05Z")); + + test1.setDateUpdated(OffsetDateTime.parse("2022-07-05T15:17:05Z")); + + test1.setExpiresAt(OffsetDateTime.parse("2022-07-05T15:17:05Z")); + + Object testObjectObject = new Object(); + test1.setBlob(testObjectObject); + + BlobResult test2 = new BlobResult(); + + test2.setBlobId("TS"); + + test2.setAccountId("TS"); + + test2.setAlias("TS"); + + test2.setRevision(1); + + test2.setDateCreated(OffsetDateTime.parse("2022-07-05T15:17:05Z")); + + test2.setDateUpdated(OffsetDateTime.parse("2022-07-05T15:17:05Z")); + + test2.setExpiresAt(OffsetDateTime.parse("2022-07-05T15:17:05Z")); + + Object testObjectObject2 = testObjectObject; + test2.setBlob(testObjectObject2); + + String toString1 = test1.toString(); + String toString2 = test2.toString(); + Assert.assertEquals(toString1, toString2); + } + + /** Test the method 'hashCodeEqualsTrue' */ + @Test + public void hashCodeEqualsTrueTest() { + BlobResult test1 = new BlobResult(); + + test1.setBlobId("TS"); + + test1.setAccountId("TS"); + + test1.setAlias("TS"); + + test1.setRevision(1); + + test1.setDateCreated(OffsetDateTime.parse("2022-07-05T15:17:05Z")); + + test1.setDateUpdated(OffsetDateTime.parse("2022-07-05T15:17:05Z")); + + test1.setExpiresAt(OffsetDateTime.parse("2022-07-05T15:17:05Z")); + + Object testObjectObject = new Object(); + test1.setBlob(testObjectObject); + + BlobResult test2 = new BlobResult(); + + test2.setBlobId("TS"); + + test2.setAccountId("TS"); + + test2.setAlias("TS"); + + test2.setRevision(1); + + test2.setDateCreated(OffsetDateTime.parse("2022-07-05T15:17:05Z")); + + test2.setDateUpdated(OffsetDateTime.parse("2022-07-05T15:17:05Z")); + + test2.setExpiresAt(OffsetDateTime.parse("2022-07-05T15:17:05Z")); + + Object testObjectObject2 = testObjectObject; + test2.setBlob(testObjectObject2); + + Assert.assertEquals(test1.hashCode(), test2.hashCode()); + } + + /** Test the method 'hashCodeEqualsFalse' */ + @Test + public void hashCodeEqualsFalseTest() { + BlobResult test1 = new BlobResult(); + + test1.setBlobId("TS"); + + test1.setAccountId("TS"); + + test1.setAlias("TS"); + + test1.setRevision(1); + + test1.setDateCreated(OffsetDateTime.parse("2022-07-05T15:17:05Z")); + + test1.setDateUpdated(OffsetDateTime.parse("2022-07-05T15:17:05Z")); + + test1.setExpiresAt(OffsetDateTime.parse("2022-07-05T15:17:05Z")); + + Object testObjectObject = new Object(); + test1.setBlob(testObjectObject); + + BlobResult test2 = new BlobResult(); + + test2.setBlobId("TS2"); + + test2.setAccountId("TS2"); + + test2.setAlias("TS2"); + + test2.setRevision(0); + + test2.setDateCreated(OffsetDateTime.parse("2024-07-05T15:17:05Z")); + + test2.setDateUpdated(OffsetDateTime.parse("2024-07-05T15:17:05Z")); + + test2.setExpiresAt(OffsetDateTime.parse("2024-07-05T15:17:05Z")); + + Object testObjectObject2 = new Object(); + test2.setBlob(testObjectObject2); + + Assert.assertNotEquals(test1.hashCode(), test2.hashCode()); + } + + /** Test the method 'toStringType' */ + @Test + public void toStringTypeTest() { + BlobResult test1 = new BlobResult(); + + test1.setBlobId("TS"); + + test1.setAccountId("TS"); + + test1.setAlias("TS"); + + test1.setRevision(1); + + test1.setDateCreated(OffsetDateTime.parse("2022-07-05T15:17:05Z")); + + test1.setDateUpdated(OffsetDateTime.parse("2022-07-05T15:17:05Z")); + + test1.setExpiresAt(OffsetDateTime.parse("2022-07-05T15:17:05Z")); + + Object testObjectObject = new Object(); + test1.setBlob(testObjectObject); + + String toString1 = test1.toString(); + Assert.assertTrue(String.class.isInstance(toString1)); + } +} diff --git a/src/test/java/com/github/freeclimbapi/models/CallListTest.java b/src/test/java/com/github/freeclimbapi/models/CallListTest.java index ab008e18..d9ffb357 100644 --- a/src/test/java/com/github/freeclimbapi/models/CallListTest.java +++ b/src/test/java/com/github/freeclimbapi/models/CallListTest.java @@ -108,8 +108,8 @@ public void equalsTrueTest() { test1.setNextPageUri("TS"); - List testList = new ArrayList(); - test1.setCalls(testList); + List testsetCallsList = new ArrayList(); + test1.setCalls(testsetCallsList); CallList test2 = new CallList(); test2.setTotal(1); @@ -125,8 +125,8 @@ public void equalsTrueTest() { test2.setNextPageUri("TS"); - List testList2 = testList; - test2.setCalls(testList2); + List testsetCallsList2 = testsetCallsList; + test2.setCalls(testsetCallsList2); Assert.assertTrue(test1.equals(test2)); } @@ -149,8 +149,8 @@ public void equalsFalseTest() { test1.setNextPageUri("TS"); - List testList = new ArrayList(); - test1.setCalls(testList); + List testsetCallsList = new ArrayList(); + test1.setCalls(testsetCallsList); CallList test2 = new CallList(); test2.setTotal(0); @@ -166,8 +166,8 @@ public void equalsFalseTest() { test2.setNextPageUri("TS2"); - List testList2 = null; - test2.setCalls(testList2); + List testsetCallsList2 = null; + test2.setCalls(testsetCallsList2); Assert.assertFalse(test1.equals(test2)); } @@ -190,8 +190,8 @@ public void hashCodeTypeTest() { test1.setNextPageUri("TS"); - List testList = new ArrayList(); - test1.setCalls(testList); + List testsetCallsList = new ArrayList(); + test1.setCalls(testsetCallsList); int hashCode1 = test1.hashCode(); Assert.assertTrue(Integer.class.isInstance(hashCode1)); @@ -215,8 +215,8 @@ public void toStringEqualsTest() { test1.setNextPageUri("TS"); - List testList = new ArrayList(); - test1.setCalls(testList); + List testsetCallsList = new ArrayList(); + test1.setCalls(testsetCallsList); CallList test2 = new CallList(); test2.setTotal(1); @@ -232,8 +232,8 @@ public void toStringEqualsTest() { test2.setNextPageUri("TS"); - List testList2 = testList; - test2.setCalls(testList2); + List testsetCallsList2 = testsetCallsList; + test2.setCalls(testsetCallsList2); String toString1 = test1.toString(); String toString2 = test2.toString(); @@ -258,8 +258,8 @@ public void hashCodeEqualsTrueTest() { test1.setNextPageUri("TS"); - List testList = new ArrayList(); - test1.setCalls(testList); + List testsetCallsList = new ArrayList(); + test1.setCalls(testsetCallsList); CallList test2 = new CallList(); test2.setTotal(1); @@ -275,8 +275,8 @@ public void hashCodeEqualsTrueTest() { test2.setNextPageUri("TS"); - List testList2 = testList; - test2.setCalls(testList2); + List testsetCallsList2 = testsetCallsList; + test2.setCalls(testsetCallsList2); Assert.assertEquals(test1.hashCode(), test2.hashCode()); } @@ -298,8 +298,8 @@ public void hashCodeEqualsFalseTest() { test1.setNextPageUri("TS"); - List testList = new ArrayList(); - test1.setCalls(testList); + List testsetCallsList = new ArrayList(); + test1.setCalls(testsetCallsList); CallList test2 = new CallList(); test2.setTotal(0); @@ -315,8 +315,8 @@ public void hashCodeEqualsFalseTest() { test2.setNextPageUri("TS2"); - List testList2 = null; - test2.setCalls(testList2); + List testsetCallsList2 = null; + test2.setCalls(testsetCallsList2); Assert.assertNotEquals(test1.hashCode(), test2.hashCode()); } @@ -338,8 +338,8 @@ public void toStringTypeTest() { test1.setNextPageUri("TS"); - List testList = new ArrayList(); - test1.setCalls(testList); + List testsetCallsList = new ArrayList(); + test1.setCalls(testsetCallsList); String toString1 = test1.toString(); Assert.assertTrue(String.class.isInstance(toString1)); diff --git a/src/test/java/com/github/freeclimbapi/models/ConferenceListTest.java b/src/test/java/com/github/freeclimbapi/models/ConferenceListTest.java index ed75c5da..eee18e0b 100644 --- a/src/test/java/com/github/freeclimbapi/models/ConferenceListTest.java +++ b/src/test/java/com/github/freeclimbapi/models/ConferenceListTest.java @@ -108,8 +108,8 @@ public void equalsTrueTest() { test1.setNextPageUri("TS"); - List testList = new ArrayList(); - test1.setConferences(testList); + List testsetConferencesList = new ArrayList(); + test1.setConferences(testsetConferencesList); ConferenceList test2 = new ConferenceList(); test2.setTotal(1); @@ -125,8 +125,8 @@ public void equalsTrueTest() { test2.setNextPageUri("TS"); - List testList2 = testList; - test2.setConferences(testList2); + List testsetConferencesList2 = testsetConferencesList; + test2.setConferences(testsetConferencesList2); Assert.assertTrue(test1.equals(test2)); } @@ -149,8 +149,8 @@ public void equalsFalseTest() { test1.setNextPageUri("TS"); - List testList = new ArrayList(); - test1.setConferences(testList); + List testsetConferencesList = new ArrayList(); + test1.setConferences(testsetConferencesList); ConferenceList test2 = new ConferenceList(); test2.setTotal(0); @@ -166,8 +166,8 @@ public void equalsFalseTest() { test2.setNextPageUri("TS2"); - List testList2 = null; - test2.setConferences(testList2); + List testsetConferencesList2 = null; + test2.setConferences(testsetConferencesList2); Assert.assertFalse(test1.equals(test2)); } @@ -190,8 +190,8 @@ public void hashCodeTypeTest() { test1.setNextPageUri("TS"); - List testList = new ArrayList(); - test1.setConferences(testList); + List testsetConferencesList = new ArrayList(); + test1.setConferences(testsetConferencesList); int hashCode1 = test1.hashCode(); Assert.assertTrue(Integer.class.isInstance(hashCode1)); @@ -215,8 +215,8 @@ public void toStringEqualsTest() { test1.setNextPageUri("TS"); - List testList = new ArrayList(); - test1.setConferences(testList); + List testsetConferencesList = new ArrayList(); + test1.setConferences(testsetConferencesList); ConferenceList test2 = new ConferenceList(); test2.setTotal(1); @@ -232,8 +232,8 @@ public void toStringEqualsTest() { test2.setNextPageUri("TS"); - List testList2 = testList; - test2.setConferences(testList2); + List testsetConferencesList2 = testsetConferencesList; + test2.setConferences(testsetConferencesList2); String toString1 = test1.toString(); String toString2 = test2.toString(); @@ -258,8 +258,8 @@ public void hashCodeEqualsTrueTest() { test1.setNextPageUri("TS"); - List testList = new ArrayList(); - test1.setConferences(testList); + List testsetConferencesList = new ArrayList(); + test1.setConferences(testsetConferencesList); ConferenceList test2 = new ConferenceList(); test2.setTotal(1); @@ -275,8 +275,8 @@ public void hashCodeEqualsTrueTest() { test2.setNextPageUri("TS"); - List testList2 = testList; - test2.setConferences(testList2); + List testsetConferencesList2 = testsetConferencesList; + test2.setConferences(testsetConferencesList2); Assert.assertEquals(test1.hashCode(), test2.hashCode()); } @@ -298,8 +298,8 @@ public void hashCodeEqualsFalseTest() { test1.setNextPageUri("TS"); - List testList = new ArrayList(); - test1.setConferences(testList); + List testsetConferencesList = new ArrayList(); + test1.setConferences(testsetConferencesList); ConferenceList test2 = new ConferenceList(); test2.setTotal(0); @@ -315,8 +315,8 @@ public void hashCodeEqualsFalseTest() { test2.setNextPageUri("TS2"); - List testList2 = null; - test2.setConferences(testList2); + List testsetConferencesList2 = null; + test2.setConferences(testsetConferencesList2); Assert.assertNotEquals(test1.hashCode(), test2.hashCode()); } @@ -338,8 +338,8 @@ public void toStringTypeTest() { test1.setNextPageUri("TS"); - List testList = new ArrayList(); - test1.setConferences(testList); + List testsetConferencesList = new ArrayList(); + test1.setConferences(testsetConferencesList); String toString1 = test1.toString(); Assert.assertTrue(String.class.isInstance(toString1)); diff --git a/src/test/java/com/github/freeclimbapi/models/ConferenceParticipantListTest.java b/src/test/java/com/github/freeclimbapi/models/ConferenceParticipantListTest.java index a9a8b57d..b7e1b9f4 100644 --- a/src/test/java/com/github/freeclimbapi/models/ConferenceParticipantListTest.java +++ b/src/test/java/com/github/freeclimbapi/models/ConferenceParticipantListTest.java @@ -108,8 +108,9 @@ public void equalsTrueTest() { test1.setNextPageUri("TS"); - List testList = new ArrayList(); - test1.setParticipants(testList); + List testsetParticipantsList = + new ArrayList(); + test1.setParticipants(testsetParticipantsList); ConferenceParticipantList test2 = new ConferenceParticipantList(); test2.setTotal(1); @@ -125,8 +126,8 @@ public void equalsTrueTest() { test2.setNextPageUri("TS"); - List testList2 = testList; - test2.setParticipants(testList2); + List testsetParticipantsList2 = testsetParticipantsList; + test2.setParticipants(testsetParticipantsList2); Assert.assertTrue(test1.equals(test2)); } @@ -149,8 +150,9 @@ public void equalsFalseTest() { test1.setNextPageUri("TS"); - List testList = new ArrayList(); - test1.setParticipants(testList); + List testsetParticipantsList = + new ArrayList(); + test1.setParticipants(testsetParticipantsList); ConferenceParticipantList test2 = new ConferenceParticipantList(); test2.setTotal(0); @@ -166,8 +168,8 @@ public void equalsFalseTest() { test2.setNextPageUri("TS2"); - List testList2 = null; - test2.setParticipants(testList2); + List testsetParticipantsList2 = null; + test2.setParticipants(testsetParticipantsList2); Assert.assertFalse(test1.equals(test2)); } @@ -190,8 +192,9 @@ public void hashCodeTypeTest() { test1.setNextPageUri("TS"); - List testList = new ArrayList(); - test1.setParticipants(testList); + List testsetParticipantsList = + new ArrayList(); + test1.setParticipants(testsetParticipantsList); int hashCode1 = test1.hashCode(); Assert.assertTrue(Integer.class.isInstance(hashCode1)); @@ -215,8 +218,9 @@ public void toStringEqualsTest() { test1.setNextPageUri("TS"); - List testList = new ArrayList(); - test1.setParticipants(testList); + List testsetParticipantsList = + new ArrayList(); + test1.setParticipants(testsetParticipantsList); ConferenceParticipantList test2 = new ConferenceParticipantList(); test2.setTotal(1); @@ -232,8 +236,8 @@ public void toStringEqualsTest() { test2.setNextPageUri("TS"); - List testList2 = testList; - test2.setParticipants(testList2); + List testsetParticipantsList2 = testsetParticipantsList; + test2.setParticipants(testsetParticipantsList2); String toString1 = test1.toString(); String toString2 = test2.toString(); @@ -258,8 +262,9 @@ public void hashCodeEqualsTrueTest() { test1.setNextPageUri("TS"); - List testList = new ArrayList(); - test1.setParticipants(testList); + List testsetParticipantsList = + new ArrayList(); + test1.setParticipants(testsetParticipantsList); ConferenceParticipantList test2 = new ConferenceParticipantList(); test2.setTotal(1); @@ -275,8 +280,8 @@ public void hashCodeEqualsTrueTest() { test2.setNextPageUri("TS"); - List testList2 = testList; - test2.setParticipants(testList2); + List testsetParticipantsList2 = testsetParticipantsList; + test2.setParticipants(testsetParticipantsList2); Assert.assertEquals(test1.hashCode(), test2.hashCode()); } @@ -298,8 +303,9 @@ public void hashCodeEqualsFalseTest() { test1.setNextPageUri("TS"); - List testList = new ArrayList(); - test1.setParticipants(testList); + List testsetParticipantsList = + new ArrayList(); + test1.setParticipants(testsetParticipantsList); ConferenceParticipantList test2 = new ConferenceParticipantList(); test2.setTotal(0); @@ -315,8 +321,8 @@ public void hashCodeEqualsFalseTest() { test2.setNextPageUri("TS2"); - List testList2 = null; - test2.setParticipants(testList2); + List testsetParticipantsList2 = null; + test2.setParticipants(testsetParticipantsList2); Assert.assertNotEquals(test1.hashCode(), test2.hashCode()); } @@ -338,8 +344,9 @@ public void toStringTypeTest() { test1.setNextPageUri("TS"); - List testList = new ArrayList(); - test1.setParticipants(testList); + List testsetParticipantsList = + new ArrayList(); + test1.setParticipants(testsetParticipantsList); String toString1 = test1.toString(); Assert.assertTrue(String.class.isInstance(toString1)); diff --git a/src/test/java/com/github/freeclimbapi/models/CreateBlobRequestTest.java b/src/test/java/com/github/freeclimbapi/models/CreateBlobRequestTest.java new file mode 100644 index 00000000..43669409 --- /dev/null +++ b/src/test/java/com/github/freeclimbapi/models/CreateBlobRequestTest.java @@ -0,0 +1,204 @@ +/* + * FreeClimb API + * FreeClimb is a cloud-based application programming interface (API) that puts the power of the Vail platform in your hands. FreeClimb simplifies the process of creating applications that can use a full range of telephony features without requiring specialized or on-site telephony equipment. Using the FreeClimb REST API to write applications is easy! You have the option to use the language of your choice or hit the API directly. Your application can execute a command by issuing a RESTful request to the FreeClimb API. The base URL to send HTTP requests to the FreeClimb REST API is: /apiserver. FreeClimb authenticates and processes your request. + * + * The version of the OpenAPI document: 1.0.0 + * Contact: support@freeclimb.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +package com.github.freeclimbapi; + +import com.github.freeclimbapi.enums.*; +import com.github.freeclimbapi.models.*; +import java.util.*; +import org.junit.Assert; +import org.junit.Test; + +/** Model tests for CreateBlobRequest */ +public class CreateBlobRequestTest { + + private final CreateBlobRequest model = new CreateBlobRequest(); + + /** Test the property 'alias' */ + @Test + public void aliasTest() { + + model.setAlias("TEST_STRING"); + Assert.assertEquals("TEST_STRING", model.getAlias()); + } + + /** Test the property 'expiresAt' */ + @Test + public void expiresAtTest() { + + model.setExpiresAt("TEST_STRING"); + Assert.assertEquals("TEST_STRING", model.getExpiresAt()); + } + + /** Test the property 'blob' */ + @Test + public void blobTest() { + + Object object = new Object(); + model.setBlob(object); + Assert.assertEquals(object.getClass(), Object.class); + } + + /** Test the method 'equalsTrue' */ + @Test + public void equalsTrueTest() { + CreateBlobRequest test1 = new CreateBlobRequest(); + + test1.setAlias("TS"); + + test1.setExpiresAt("TS"); + + Object testObjectObject = new Object(); + test1.setBlob(testObjectObject); + + CreateBlobRequest test2 = new CreateBlobRequest(); + + test2.setAlias("TS"); + + test2.setExpiresAt("TS"); + + Object testObjectObject2 = testObjectObject; + test2.setBlob(testObjectObject2); + + Assert.assertTrue(test1.equals(test2)); + } + + /** Test the method 'equalsFalse' */ + @Test + public void equalsFalseTest() { + CreateBlobRequest test1 = new CreateBlobRequest(); + + test1.setAlias("TS"); + + test1.setExpiresAt("TS"); + + Object testObjectObject = new Object(); + test1.setBlob(testObjectObject); + + CreateBlobRequest test2 = new CreateBlobRequest(); + + test2.setAlias("TS2"); + + test2.setExpiresAt("TS2"); + + Object testObjectObject2 = new Object(); + test2.setBlob(testObjectObject2); + + Assert.assertFalse(test1.equals(test2)); + } + + /** Test the method 'hashCodeType' */ + @Test + public void hashCodeTypeTest() { + CreateBlobRequest test1 = new CreateBlobRequest(); + + test1.setAlias("TS"); + + test1.setExpiresAt("TS"); + + Object testObjectObject = new Object(); + test1.setBlob(testObjectObject); + + int hashCode1 = test1.hashCode(); + Assert.assertTrue(Integer.class.isInstance(hashCode1)); + } + + /** Test the method 'toStringEquals' */ + @Test + public void toStringEqualsTest() { + CreateBlobRequest test1 = new CreateBlobRequest(); + + test1.setAlias("TS"); + + test1.setExpiresAt("TS"); + + Object testObjectObject = new Object(); + test1.setBlob(testObjectObject); + + CreateBlobRequest test2 = new CreateBlobRequest(); + + test2.setAlias("TS"); + + test2.setExpiresAt("TS"); + + Object testObjectObject2 = testObjectObject; + test2.setBlob(testObjectObject2); + + String toString1 = test1.toString(); + String toString2 = test2.toString(); + Assert.assertEquals(toString1, toString2); + } + + /** Test the method 'hashCodeEqualsTrue' */ + @Test + public void hashCodeEqualsTrueTest() { + CreateBlobRequest test1 = new CreateBlobRequest(); + + test1.setAlias("TS"); + + test1.setExpiresAt("TS"); + + Object testObjectObject = new Object(); + test1.setBlob(testObjectObject); + + CreateBlobRequest test2 = new CreateBlobRequest(); + + test2.setAlias("TS"); + + test2.setExpiresAt("TS"); + + Object testObjectObject2 = testObjectObject; + test2.setBlob(testObjectObject2); + + Assert.assertEquals(test1.hashCode(), test2.hashCode()); + } + + /** Test the method 'hashCodeEqualsFalse' */ + @Test + public void hashCodeEqualsFalseTest() { + CreateBlobRequest test1 = new CreateBlobRequest(); + + test1.setAlias("TS"); + + test1.setExpiresAt("TS"); + + Object testObjectObject = new Object(); + test1.setBlob(testObjectObject); + + CreateBlobRequest test2 = new CreateBlobRequest(); + + test2.setAlias("TS2"); + + test2.setExpiresAt("TS2"); + + Object testObjectObject2 = new Object(); + test2.setBlob(testObjectObject2); + + Assert.assertNotEquals(test1.hashCode(), test2.hashCode()); + } + + /** Test the method 'toStringType' */ + @Test + public void toStringTypeTest() { + CreateBlobRequest test1 = new CreateBlobRequest(); + + test1.setAlias("TS"); + + test1.setExpiresAt("TS"); + + Object testObjectObject = new Object(); + test1.setBlob(testObjectObject); + + String toString1 = test1.toString(); + Assert.assertTrue(String.class.isInstance(toString1)); + } +} diff --git a/src/test/java/com/github/freeclimbapi/models/ExportListTest.java b/src/test/java/com/github/freeclimbapi/models/ExportListTest.java index e66a13d9..7d4e4cf1 100644 --- a/src/test/java/com/github/freeclimbapi/models/ExportListTest.java +++ b/src/test/java/com/github/freeclimbapi/models/ExportListTest.java @@ -108,8 +108,8 @@ public void equalsTrueTest() { test1.setNextPageUri("TS"); - List testList = new ArrayList(); - test1.setExports(testList); + List testsetExportsList = new ArrayList(); + test1.setExports(testsetExportsList); ExportList test2 = new ExportList(); test2.setTotal(1); @@ -125,8 +125,8 @@ public void equalsTrueTest() { test2.setNextPageUri("TS"); - List testList2 = testList; - test2.setExports(testList2); + List testsetExportsList2 = testsetExportsList; + test2.setExports(testsetExportsList2); Assert.assertTrue(test1.equals(test2)); } @@ -149,8 +149,8 @@ public void equalsFalseTest() { test1.setNextPageUri("TS"); - List testList = new ArrayList(); - test1.setExports(testList); + List testsetExportsList = new ArrayList(); + test1.setExports(testsetExportsList); ExportList test2 = new ExportList(); test2.setTotal(0); @@ -166,8 +166,8 @@ public void equalsFalseTest() { test2.setNextPageUri("TS2"); - List testList2 = null; - test2.setExports(testList2); + List testsetExportsList2 = null; + test2.setExports(testsetExportsList2); Assert.assertFalse(test1.equals(test2)); } @@ -190,8 +190,8 @@ public void hashCodeTypeTest() { test1.setNextPageUri("TS"); - List testList = new ArrayList(); - test1.setExports(testList); + List testsetExportsList = new ArrayList(); + test1.setExports(testsetExportsList); int hashCode1 = test1.hashCode(); Assert.assertTrue(Integer.class.isInstance(hashCode1)); @@ -215,8 +215,8 @@ public void toStringEqualsTest() { test1.setNextPageUri("TS"); - List testList = new ArrayList(); - test1.setExports(testList); + List testsetExportsList = new ArrayList(); + test1.setExports(testsetExportsList); ExportList test2 = new ExportList(); test2.setTotal(1); @@ -232,8 +232,8 @@ public void toStringEqualsTest() { test2.setNextPageUri("TS"); - List testList2 = testList; - test2.setExports(testList2); + List testsetExportsList2 = testsetExportsList; + test2.setExports(testsetExportsList2); String toString1 = test1.toString(); String toString2 = test2.toString(); @@ -258,8 +258,8 @@ public void hashCodeEqualsTrueTest() { test1.setNextPageUri("TS"); - List testList = new ArrayList(); - test1.setExports(testList); + List testsetExportsList = new ArrayList(); + test1.setExports(testsetExportsList); ExportList test2 = new ExportList(); test2.setTotal(1); @@ -275,8 +275,8 @@ public void hashCodeEqualsTrueTest() { test2.setNextPageUri("TS"); - List testList2 = testList; - test2.setExports(testList2); + List testsetExportsList2 = testsetExportsList; + test2.setExports(testsetExportsList2); Assert.assertEquals(test1.hashCode(), test2.hashCode()); } @@ -298,8 +298,8 @@ public void hashCodeEqualsFalseTest() { test1.setNextPageUri("TS"); - List testList = new ArrayList(); - test1.setExports(testList); + List testsetExportsList = new ArrayList(); + test1.setExports(testsetExportsList); ExportList test2 = new ExportList(); test2.setTotal(0); @@ -315,8 +315,8 @@ public void hashCodeEqualsFalseTest() { test2.setNextPageUri("TS2"); - List testList2 = null; - test2.setExports(testList2); + List testsetExportsList2 = null; + test2.setExports(testsetExportsList2); Assert.assertNotEquals(test1.hashCode(), test2.hashCode()); } @@ -338,8 +338,8 @@ public void toStringTypeTest() { test1.setNextPageUri("TS"); - List testList = new ArrayList(); - test1.setExports(testList); + List testsetExportsList = new ArrayList(); + test1.setExports(testsetExportsList); String toString1 = test1.toString(); Assert.assertTrue(String.class.isInstance(toString1)); diff --git a/src/test/java/com/github/freeclimbapi/models/ExportRequestTest.java b/src/test/java/com/github/freeclimbapi/models/ExportRequestTest.java index 28a1d9b9..fc4ede2f 100644 --- a/src/test/java/com/github/freeclimbapi/models/ExportRequestTest.java +++ b/src/test/java/com/github/freeclimbapi/models/ExportRequestTest.java @@ -67,8 +67,8 @@ public void equalsTrueTest() { ExportRequest test1 = new ExportRequest(); test1.setResourceType(ExportResourceType.MESSAGES); - List testList = new ArrayList(); - test1.setFormat(testList); + List testsetFormatList = new ArrayList(); + test1.setFormat(testsetFormatList); ExportRequestOutput testExportRequestOutputObject = new ExportRequestOutput(); test1.setOutput(testExportRequestOutputObject); @@ -79,8 +79,8 @@ public void equalsTrueTest() { ExportRequest test2 = new ExportRequest(); test2.setResourceType(ExportResourceType.MESSAGES); - List testList2 = testList; - test2.setFormat(testList2); + List testsetFormatList2 = testsetFormatList; + test2.setFormat(testsetFormatList2); ExportRequestOutput testExportRequestOutputObject2 = testExportRequestOutputObject; test2.setOutput(testExportRequestOutputObject2); @@ -98,8 +98,8 @@ public void equalsFalseTest() { test1.setResourceType(ExportResourceType.CALLS); - List testList = new ArrayList(); - test1.setFormat(testList); + List testsetFormatList = new ArrayList(); + test1.setFormat(testsetFormatList); ExportRequestOutput testExportRequestOutputObject = new ExportRequestOutput(); test1.setOutput(testExportRequestOutputObject); @@ -110,8 +110,8 @@ public void equalsFalseTest() { ExportRequest test2 = new ExportRequest(); test2.setResourceType(ExportResourceType.MESSAGES); - List testList2 = null; - test2.setFormat(testList2); + List testsetFormatList2 = null; + test2.setFormat(testsetFormatList2); ExportRequestOutput testExportRequestOutputObject2 = new ExportRequestOutput(); test2.setOutput(testExportRequestOutputObject2); @@ -128,8 +128,8 @@ public void hashCodeTypeTest() { ExportRequest test1 = new ExportRequest(); test1.setResourceType(ExportResourceType.MESSAGES); - List testList = new ArrayList(); - test1.setFormat(testList); + List testsetFormatList = new ArrayList(); + test1.setFormat(testsetFormatList); ExportRequestOutput testExportRequestOutputObject = new ExportRequestOutput(); test1.setOutput(testExportRequestOutputObject); @@ -147,8 +147,8 @@ public void toStringEqualsTest() { ExportRequest test1 = new ExportRequest(); test1.setResourceType(ExportResourceType.MESSAGES); - List testList = new ArrayList(); - test1.setFormat(testList); + List testsetFormatList = new ArrayList(); + test1.setFormat(testsetFormatList); ExportRequestOutput testExportRequestOutputObject = new ExportRequestOutput(); test1.setOutput(testExportRequestOutputObject); @@ -159,8 +159,8 @@ public void toStringEqualsTest() { ExportRequest test2 = new ExportRequest(); test2.setResourceType(ExportResourceType.MESSAGES); - List testList2 = testList; - test2.setFormat(testList2); + List testsetFormatList2 = testsetFormatList; + test2.setFormat(testsetFormatList2); ExportRequestOutput testExportRequestOutputObject2 = testExportRequestOutputObject; test2.setOutput(testExportRequestOutputObject2); @@ -179,8 +179,8 @@ public void hashCodeEqualsTrueTest() { ExportRequest test1 = new ExportRequest(); test1.setResourceType(ExportResourceType.MESSAGES); - List testList = new ArrayList(); - test1.setFormat(testList); + List testsetFormatList = new ArrayList(); + test1.setFormat(testsetFormatList); ExportRequestOutput testExportRequestOutputObject = new ExportRequestOutput(); test1.setOutput(testExportRequestOutputObject); @@ -191,8 +191,8 @@ public void hashCodeEqualsTrueTest() { ExportRequest test2 = new ExportRequest(); test2.setResourceType(ExportResourceType.MESSAGES); - List testList2 = testList; - test2.setFormat(testList2); + List testsetFormatList2 = testsetFormatList; + test2.setFormat(testsetFormatList2); ExportRequestOutput testExportRequestOutputObject2 = testExportRequestOutputObject; test2.setOutput(testExportRequestOutputObject2); @@ -210,8 +210,8 @@ public void hashCodeEqualsFalseTest() { test1.setResourceType(ExportResourceType.CALLS); - List testList = new ArrayList(); - test1.setFormat(testList); + List testsetFormatList = new ArrayList(); + test1.setFormat(testsetFormatList); ExportRequestOutput testExportRequestOutputObject = new ExportRequestOutput(); test1.setOutput(testExportRequestOutputObject); @@ -222,8 +222,8 @@ public void hashCodeEqualsFalseTest() { ExportRequest test2 = new ExportRequest(); test2.setResourceType(ExportResourceType.MESSAGES); - List testList2 = null; - test2.setFormat(testList2); + List testsetFormatList2 = null; + test2.setFormat(testsetFormatList2); ExportRequestOutput testExportRequestOutputObject2 = new ExportRequestOutput(); test2.setOutput(testExportRequestOutputObject2); @@ -240,8 +240,8 @@ public void toStringTypeTest() { ExportRequest test1 = new ExportRequest(); test1.setResourceType(ExportResourceType.MESSAGES); - List testList = new ArrayList(); - test1.setFormat(testList); + List testsetFormatList = new ArrayList(); + test1.setFormat(testsetFormatList); ExportRequestOutput testExportRequestOutputObject = new ExportRequestOutput(); test1.setOutput(testExportRequestOutputObject); diff --git a/src/test/java/com/github/freeclimbapi/models/ExportResultTest.java b/src/test/java/com/github/freeclimbapi/models/ExportResultTest.java index efa014e9..42f3f27f 100644 --- a/src/test/java/com/github/freeclimbapi/models/ExportResultTest.java +++ b/src/test/java/com/github/freeclimbapi/models/ExportResultTest.java @@ -160,8 +160,8 @@ public void equalsTrueTest() { Object testObjectObject = new Object(); test1.setQuery(testObjectObject); - List testList = new ArrayList(); - test1.setFormat(testList); + List testsetFormatList = new ArrayList(); + test1.setFormat(testsetFormatList); ExportResultOutput testExportResultOutputObject = new ExportResultOutput(); test1.setOutput(testExportResultOutputObject); @@ -189,8 +189,8 @@ public void equalsTrueTest() { Object testObjectObject2 = testObjectObject; test2.setQuery(testObjectObject2); - List testList2 = testList; - test2.setFormat(testList2); + List testsetFormatList2 = testsetFormatList; + test2.setFormat(testsetFormatList2); ExportResultOutput testExportResultOutputObject2 = testExportResultOutputObject; test2.setOutput(testExportResultOutputObject2); @@ -224,8 +224,8 @@ public void equalsFalseTest() { Object testObjectObject = new Object(); test1.setQuery(testObjectObject); - List testList = new ArrayList(); - test1.setFormat(testList); + List testsetFormatList = new ArrayList(); + test1.setFormat(testsetFormatList); ExportResultOutput testExportResultOutputObject = new ExportResultOutput(); test1.setOutput(testExportResultOutputObject); @@ -253,8 +253,8 @@ public void equalsFalseTest() { Object testObjectObject2 = new Object(); test2.setQuery(testObjectObject2); - List testList2 = null; - test2.setFormat(testList2); + List testsetFormatList2 = null; + test2.setFormat(testsetFormatList2); ExportResultOutput testExportResultOutputObject2 = new ExportResultOutput(); test2.setOutput(testExportResultOutputObject2); @@ -288,8 +288,8 @@ public void hashCodeTypeTest() { Object testObjectObject = new Object(); test1.setQuery(testObjectObject); - List testList = new ArrayList(); - test1.setFormat(testList); + List testsetFormatList = new ArrayList(); + test1.setFormat(testsetFormatList); ExportResultOutput testExportResultOutputObject = new ExportResultOutput(); test1.setOutput(testExportResultOutputObject); @@ -324,8 +324,8 @@ public void toStringEqualsTest() { Object testObjectObject = new Object(); test1.setQuery(testObjectObject); - List testList = new ArrayList(); - test1.setFormat(testList); + List testsetFormatList = new ArrayList(); + test1.setFormat(testsetFormatList); ExportResultOutput testExportResultOutputObject = new ExportResultOutput(); test1.setOutput(testExportResultOutputObject); @@ -353,8 +353,8 @@ public void toStringEqualsTest() { Object testObjectObject2 = testObjectObject; test2.setQuery(testObjectObject2); - List testList2 = testList; - test2.setFormat(testList2); + List testsetFormatList2 = testsetFormatList; + test2.setFormat(testsetFormatList2); ExportResultOutput testExportResultOutputObject2 = testExportResultOutputObject; test2.setOutput(testExportResultOutputObject2); @@ -390,8 +390,8 @@ public void hashCodeEqualsTrueTest() { Object testObjectObject = new Object(); test1.setQuery(testObjectObject); - List testList = new ArrayList(); - test1.setFormat(testList); + List testsetFormatList = new ArrayList(); + test1.setFormat(testsetFormatList); ExportResultOutput testExportResultOutputObject = new ExportResultOutput(); test1.setOutput(testExportResultOutputObject); @@ -419,8 +419,8 @@ public void hashCodeEqualsTrueTest() { Object testObjectObject2 = testObjectObject; test2.setQuery(testObjectObject2); - List testList2 = testList; - test2.setFormat(testList2); + List testsetFormatList2 = testsetFormatList; + test2.setFormat(testsetFormatList2); ExportResultOutput testExportResultOutputObject2 = testExportResultOutputObject; test2.setOutput(testExportResultOutputObject2); @@ -454,8 +454,8 @@ public void hashCodeEqualsFalseTest() { Object testObjectObject = new Object(); test1.setQuery(testObjectObject); - List testList = new ArrayList(); - test1.setFormat(testList); + List testsetFormatList = new ArrayList(); + test1.setFormat(testsetFormatList); ExportResultOutput testExportResultOutputObject = new ExportResultOutput(); test1.setOutput(testExportResultOutputObject); @@ -483,8 +483,8 @@ public void hashCodeEqualsFalseTest() { Object testObjectObject2 = new Object(); test2.setQuery(testObjectObject2); - List testList2 = null; - test2.setFormat(testList2); + List testsetFormatList2 = null; + test2.setFormat(testsetFormatList2); ExportResultOutput testExportResultOutputObject2 = new ExportResultOutput(); test2.setOutput(testExportResultOutputObject2); @@ -518,8 +518,8 @@ public void toStringTypeTest() { Object testObjectObject = new Object(); test1.setQuery(testObjectObject); - List testList = new ArrayList(); - test1.setFormat(testList); + List testsetFormatList = new ArrayList(); + test1.setFormat(testsetFormatList); ExportResultOutput testExportResultOutputObject = new ExportResultOutput(); test1.setOutput(testExportResultOutputObject); diff --git a/src/test/java/com/github/freeclimbapi/models/GetDigitsTest.java b/src/test/java/com/github/freeclimbapi/models/GetDigitsTest.java index 01b3dd84..baa9c801 100644 --- a/src/test/java/com/github/freeclimbapi/models/GetDigitsTest.java +++ b/src/test/java/com/github/freeclimbapi/models/GetDigitsTest.java @@ -128,8 +128,8 @@ public void equalsTrueTest() { test1.setMinDigits(1); - List testList = new ArrayList(); - test1.setPrompts(testList); + List testsetPromptsList = new ArrayList(); + test1.setPrompts(testsetPromptsList); test1.setPrivacyMode(true); GetDigits test2 = new GetDigits(); @@ -154,8 +154,8 @@ public void equalsTrueTest() { test2.setMinDigits(1); - List testList2 = testList; - test2.setPrompts(testList2); + List testsetPromptsList2 = testsetPromptsList; + test2.setPrompts(testsetPromptsList2); test2.setPrivacyMode(true); Assert.assertTrue(test1.equals(test2)); @@ -186,8 +186,8 @@ public void equalsFalseTest() { test1.setMinDigits(1); - List testList = new ArrayList(); - test1.setPrompts(testList); + List testsetPromptsList = new ArrayList(); + test1.setPrompts(testsetPromptsList); test1.setPrivacyMode(true); GetDigits test2 = new GetDigits(); @@ -212,8 +212,8 @@ public void equalsFalseTest() { test2.setMinDigits(0); - List testList2 = null; - test2.setPrompts(testList2); + List testsetPromptsList2 = null; + test2.setPrompts(testsetPromptsList2); test2.setPrivacyMode(false); Assert.assertFalse(test1.equals(test2)); @@ -244,8 +244,8 @@ public void hashCodeTypeTest() { test1.setMinDigits(1); - List testList = new ArrayList(); - test1.setPrompts(testList); + List testsetPromptsList = new ArrayList(); + test1.setPrompts(testsetPromptsList); test1.setPrivacyMode(true); int hashCode1 = test1.hashCode(); @@ -277,8 +277,8 @@ public void toStringEqualsTest() { test1.setMinDigits(1); - List testList = new ArrayList(); - test1.setPrompts(testList); + List testsetPromptsList = new ArrayList(); + test1.setPrompts(testsetPromptsList); test1.setPrivacyMode(true); GetDigits test2 = new GetDigits(); @@ -303,8 +303,8 @@ public void toStringEqualsTest() { test2.setMinDigits(1); - List testList2 = testList; - test2.setPrompts(testList2); + List testsetPromptsList2 = testsetPromptsList; + test2.setPrompts(testsetPromptsList2); test2.setPrivacyMode(true); String toString1 = test1.toString(); @@ -337,8 +337,8 @@ public void hashCodeEqualsTrueTest() { test1.setMinDigits(1); - List testList = new ArrayList(); - test1.setPrompts(testList); + List testsetPromptsList = new ArrayList(); + test1.setPrompts(testsetPromptsList); test1.setPrivacyMode(true); GetDigits test2 = new GetDigits(); @@ -363,8 +363,8 @@ public void hashCodeEqualsTrueTest() { test2.setMinDigits(1); - List testList2 = testList; - test2.setPrompts(testList2); + List testsetPromptsList2 = testsetPromptsList; + test2.setPrompts(testsetPromptsList2); test2.setPrivacyMode(true); Assert.assertEquals(test1.hashCode(), test2.hashCode()); @@ -395,8 +395,8 @@ public void hashCodeEqualsFalseTest() { test1.setMinDigits(1); - List testList = new ArrayList(); - test1.setPrompts(testList); + List testsetPromptsList = new ArrayList(); + test1.setPrompts(testsetPromptsList); test1.setPrivacyMode(true); GetDigits test2 = new GetDigits(); @@ -421,8 +421,8 @@ public void hashCodeEqualsFalseTest() { test2.setMinDigits(0); - List testList2 = null; - test2.setPrompts(testList2); + List testsetPromptsList2 = null; + test2.setPrompts(testsetPromptsList2); test2.setPrivacyMode(false); Assert.assertNotEquals(test1.hashCode(), test2.hashCode()); @@ -453,8 +453,8 @@ public void toStringTypeTest() { test1.setMinDigits(1); - List testList = new ArrayList(); - test1.setPrompts(testList); + List testsetPromptsList = new ArrayList(); + test1.setPrompts(testsetPromptsList); test1.setPrivacyMode(true); String toString1 = test1.toString(); diff --git a/src/test/java/com/github/freeclimbapi/models/GetSpeechTest.java b/src/test/java/com/github/freeclimbapi/models/GetSpeechTest.java index 2c059e93..293585b8 100644 --- a/src/test/java/com/github/freeclimbapi/models/GetSpeechTest.java +++ b/src/test/java/com/github/freeclimbapi/models/GetSpeechTest.java @@ -158,8 +158,8 @@ public void equalsTrueTest() { test1.setPlayBeep(true); - List testList = new ArrayList(); - test1.setPrompts(testList); + List testsetPromptsList = new ArrayList(); + test1.setPrompts(testsetPromptsList); test1.setNoInputTimeoutMs(1); test1.setRecognitionTimeoutMs(1); @@ -188,8 +188,8 @@ public void equalsTrueTest() { test2.setPlayBeep(true); - List testList2 = testList; - test2.setPrompts(testList2); + List testsetPromptsList2 = testsetPromptsList; + test2.setPrompts(testsetPromptsList2); test2.setNoInputTimeoutMs(1); test2.setRecognitionTimeoutMs(1); @@ -224,8 +224,8 @@ public void equalsFalseTest() { test1.setPlayBeep(true); - List testList = new ArrayList(); - test1.setPrompts(testList); + List testsetPromptsList = new ArrayList(); + test1.setPrompts(testsetPromptsList); test1.setNoInputTimeoutMs(1); test1.setRecognitionTimeoutMs(1); @@ -254,8 +254,8 @@ public void equalsFalseTest() { test2.setPlayBeep(false); - List testList2 = null; - test2.setPrompts(testList2); + List testsetPromptsList2 = null; + test2.setPrompts(testsetPromptsList2); test2.setNoInputTimeoutMs(0); test2.setRecognitionTimeoutMs(0); @@ -290,8 +290,8 @@ public void hashCodeTypeTest() { test1.setPlayBeep(true); - List testList = new ArrayList(); - test1.setPrompts(testList); + List testsetPromptsList = new ArrayList(); + test1.setPrompts(testsetPromptsList); test1.setNoInputTimeoutMs(1); test1.setRecognitionTimeoutMs(1); @@ -327,8 +327,8 @@ public void toStringEqualsTest() { test1.setPlayBeep(true); - List testList = new ArrayList(); - test1.setPrompts(testList); + List testsetPromptsList = new ArrayList(); + test1.setPrompts(testsetPromptsList); test1.setNoInputTimeoutMs(1); test1.setRecognitionTimeoutMs(1); @@ -357,8 +357,8 @@ public void toStringEqualsTest() { test2.setPlayBeep(true); - List testList2 = testList; - test2.setPrompts(testList2); + List testsetPromptsList2 = testsetPromptsList; + test2.setPrompts(testsetPromptsList2); test2.setNoInputTimeoutMs(1); test2.setRecognitionTimeoutMs(1); @@ -395,8 +395,8 @@ public void hashCodeEqualsTrueTest() { test1.setPlayBeep(true); - List testList = new ArrayList(); - test1.setPrompts(testList); + List testsetPromptsList = new ArrayList(); + test1.setPrompts(testsetPromptsList); test1.setNoInputTimeoutMs(1); test1.setRecognitionTimeoutMs(1); @@ -425,8 +425,8 @@ public void hashCodeEqualsTrueTest() { test2.setPlayBeep(true); - List testList2 = testList; - test2.setPrompts(testList2); + List testsetPromptsList2 = testsetPromptsList; + test2.setPrompts(testsetPromptsList2); test2.setNoInputTimeoutMs(1); test2.setRecognitionTimeoutMs(1); @@ -461,8 +461,8 @@ public void hashCodeEqualsFalseTest() { test1.setPlayBeep(true); - List testList = new ArrayList(); - test1.setPrompts(testList); + List testsetPromptsList = new ArrayList(); + test1.setPrompts(testsetPromptsList); test1.setNoInputTimeoutMs(1); test1.setRecognitionTimeoutMs(1); @@ -491,8 +491,8 @@ public void hashCodeEqualsFalseTest() { test2.setPlayBeep(false); - List testList2 = null; - test2.setPrompts(testList2); + List testsetPromptsList2 = null; + test2.setPrompts(testsetPromptsList2); test2.setNoInputTimeoutMs(0); test2.setRecognitionTimeoutMs(0); @@ -527,8 +527,8 @@ public void toStringTypeTest() { test1.setPlayBeep(true); - List testList = new ArrayList(); - test1.setPrompts(testList); + List testsetPromptsList = new ArrayList(); + test1.setPrompts(testsetPromptsList); test1.setNoInputTimeoutMs(1); test1.setRecognitionTimeoutMs(1); diff --git a/src/test/java/com/github/freeclimbapi/models/IncomingNumberListTest.java b/src/test/java/com/github/freeclimbapi/models/IncomingNumberListTest.java index 94c1f6d4..1c1a5a51 100644 --- a/src/test/java/com/github/freeclimbapi/models/IncomingNumberListTest.java +++ b/src/test/java/com/github/freeclimbapi/models/IncomingNumberListTest.java @@ -108,8 +108,9 @@ public void equalsTrueTest() { test1.setNextPageUri("TS"); - List testList = new ArrayList(); - test1.setIncomingPhoneNumbers(testList); + List testsetIncomingPhoneNumbersList = + new ArrayList(); + test1.setIncomingPhoneNumbers(testsetIncomingPhoneNumbersList); IncomingNumberList test2 = new IncomingNumberList(); test2.setTotal(1); @@ -125,8 +126,9 @@ public void equalsTrueTest() { test2.setNextPageUri("TS"); - List testList2 = testList; - test2.setIncomingPhoneNumbers(testList2); + List testsetIncomingPhoneNumbersList2 = + testsetIncomingPhoneNumbersList; + test2.setIncomingPhoneNumbers(testsetIncomingPhoneNumbersList2); Assert.assertTrue(test1.equals(test2)); } @@ -149,8 +151,9 @@ public void equalsFalseTest() { test1.setNextPageUri("TS"); - List testList = new ArrayList(); - test1.setIncomingPhoneNumbers(testList); + List testsetIncomingPhoneNumbersList = + new ArrayList(); + test1.setIncomingPhoneNumbers(testsetIncomingPhoneNumbersList); IncomingNumberList test2 = new IncomingNumberList(); test2.setTotal(0); @@ -166,8 +169,8 @@ public void equalsFalseTest() { test2.setNextPageUri("TS2"); - List testList2 = null; - test2.setIncomingPhoneNumbers(testList2); + List testsetIncomingPhoneNumbersList2 = null; + test2.setIncomingPhoneNumbers(testsetIncomingPhoneNumbersList2); Assert.assertFalse(test1.equals(test2)); } @@ -190,8 +193,9 @@ public void hashCodeTypeTest() { test1.setNextPageUri("TS"); - List testList = new ArrayList(); - test1.setIncomingPhoneNumbers(testList); + List testsetIncomingPhoneNumbersList = + new ArrayList(); + test1.setIncomingPhoneNumbers(testsetIncomingPhoneNumbersList); int hashCode1 = test1.hashCode(); Assert.assertTrue(Integer.class.isInstance(hashCode1)); @@ -215,8 +219,9 @@ public void toStringEqualsTest() { test1.setNextPageUri("TS"); - List testList = new ArrayList(); - test1.setIncomingPhoneNumbers(testList); + List testsetIncomingPhoneNumbersList = + new ArrayList(); + test1.setIncomingPhoneNumbers(testsetIncomingPhoneNumbersList); IncomingNumberList test2 = new IncomingNumberList(); test2.setTotal(1); @@ -232,8 +237,9 @@ public void toStringEqualsTest() { test2.setNextPageUri("TS"); - List testList2 = testList; - test2.setIncomingPhoneNumbers(testList2); + List testsetIncomingPhoneNumbersList2 = + testsetIncomingPhoneNumbersList; + test2.setIncomingPhoneNumbers(testsetIncomingPhoneNumbersList2); String toString1 = test1.toString(); String toString2 = test2.toString(); @@ -258,8 +264,9 @@ public void hashCodeEqualsTrueTest() { test1.setNextPageUri("TS"); - List testList = new ArrayList(); - test1.setIncomingPhoneNumbers(testList); + List testsetIncomingPhoneNumbersList = + new ArrayList(); + test1.setIncomingPhoneNumbers(testsetIncomingPhoneNumbersList); IncomingNumberList test2 = new IncomingNumberList(); test2.setTotal(1); @@ -275,8 +282,9 @@ public void hashCodeEqualsTrueTest() { test2.setNextPageUri("TS"); - List testList2 = testList; - test2.setIncomingPhoneNumbers(testList2); + List testsetIncomingPhoneNumbersList2 = + testsetIncomingPhoneNumbersList; + test2.setIncomingPhoneNumbers(testsetIncomingPhoneNumbersList2); Assert.assertEquals(test1.hashCode(), test2.hashCode()); } @@ -298,8 +306,9 @@ public void hashCodeEqualsFalseTest() { test1.setNextPageUri("TS"); - List testList = new ArrayList(); - test1.setIncomingPhoneNumbers(testList); + List testsetIncomingPhoneNumbersList = + new ArrayList(); + test1.setIncomingPhoneNumbers(testsetIncomingPhoneNumbersList); IncomingNumberList test2 = new IncomingNumberList(); test2.setTotal(0); @@ -315,8 +324,8 @@ public void hashCodeEqualsFalseTest() { test2.setNextPageUri("TS2"); - List testList2 = null; - test2.setIncomingPhoneNumbers(testList2); + List testsetIncomingPhoneNumbersList2 = null; + test2.setIncomingPhoneNumbers(testsetIncomingPhoneNumbersList2); Assert.assertNotEquals(test1.hashCode(), test2.hashCode()); } @@ -338,8 +347,9 @@ public void toStringTypeTest() { test1.setNextPageUri("TS"); - List testList = new ArrayList(); - test1.setIncomingPhoneNumbers(testList); + List testsetIncomingPhoneNumbersList = + new ArrayList(); + test1.setIncomingPhoneNumbers(testsetIncomingPhoneNumbersList); String toString1 = test1.toString(); Assert.assertTrue(String.class.isInstance(toString1)); diff --git a/src/test/java/com/github/freeclimbapi/models/IncomingNumberResultTest.java b/src/test/java/com/github/freeclimbapi/models/IncomingNumberResultTest.java index 01b6ec0b..fd7de1cd 100644 --- a/src/test/java/com/github/freeclimbapi/models/IncomingNumberResultTest.java +++ b/src/test/java/com/github/freeclimbapi/models/IncomingNumberResultTest.java @@ -128,20 +128,6 @@ public void countryTest() { Assert.assertEquals("TEST_STRING", model.getCountry()); } - /** Test the property 'voiceEnabled' */ - @Test - public void voiceEnabledTest() { - model.setVoiceEnabled(false); - Assert.assertEquals(false, model.getVoiceEnabled()); - } - - /** Test the property 'smsEnabled' */ - @Test - public void smsEnabledTest() { - model.setSmsEnabled(false); - Assert.assertEquals(false, model.getSmsEnabled()); - } - /** Test the property 'offnet' */ @Test public void offnetTest() { @@ -190,10 +176,6 @@ public void equalsTrueTest() { test1.setCountry("TS"); - test1.setVoiceEnabled(true); - - test1.setSmsEnabled(true); - test1.setOffnet(true); TFN testTFNObject = new TFN(); @@ -228,10 +210,6 @@ public void equalsTrueTest() { test2.setCountry("TS"); - test2.setVoiceEnabled(true); - - test2.setSmsEnabled(true); - test2.setOffnet(true); TFN testTFNObject2 = testTFNObject; @@ -272,10 +250,6 @@ public void equalsFalseTest() { test1.setCountry("TS"); - test1.setVoiceEnabled(true); - - test1.setSmsEnabled(true); - test1.setOffnet(true); TFN testTFNObject = new TFN(); @@ -310,10 +284,6 @@ public void equalsFalseTest() { test2.setCountry("TS2"); - test2.setVoiceEnabled(false); - - test2.setSmsEnabled(false); - test2.setOffnet(false); TFN testTFNObject2 = new TFN(); @@ -354,10 +324,6 @@ public void hashCodeTypeTest() { test1.setCountry("TS"); - test1.setVoiceEnabled(true); - - test1.setSmsEnabled(true); - test1.setOffnet(true); TFN testTFNObject = new TFN(); @@ -399,10 +365,6 @@ public void toStringEqualsTest() { test1.setCountry("TS"); - test1.setVoiceEnabled(true); - - test1.setSmsEnabled(true); - test1.setOffnet(true); TFN testTFNObject = new TFN(); @@ -437,10 +399,6 @@ public void toStringEqualsTest() { test2.setCountry("TS"); - test2.setVoiceEnabled(true); - - test2.setSmsEnabled(true); - test2.setOffnet(true); TFN testTFNObject2 = testTFNObject; @@ -483,10 +441,6 @@ public void hashCodeEqualsTrueTest() { test1.setCountry("TS"); - test1.setVoiceEnabled(true); - - test1.setSmsEnabled(true); - test1.setOffnet(true); TFN testTFNObject = new TFN(); @@ -521,10 +475,6 @@ public void hashCodeEqualsTrueTest() { test2.setCountry("TS"); - test2.setVoiceEnabled(true); - - test2.setSmsEnabled(true); - test2.setOffnet(true); TFN testTFNObject2 = testTFNObject; @@ -565,10 +515,6 @@ public void hashCodeEqualsFalseTest() { test1.setCountry("TS"); - test1.setVoiceEnabled(true); - - test1.setSmsEnabled(true); - test1.setOffnet(true); TFN testTFNObject = new TFN(); @@ -603,10 +549,6 @@ public void hashCodeEqualsFalseTest() { test2.setCountry("TS2"); - test2.setVoiceEnabled(false); - - test2.setSmsEnabled(false); - test2.setOffnet(false); TFN testTFNObject2 = new TFN(); @@ -647,10 +589,6 @@ public void toStringTypeTest() { test1.setCountry("TS"); - test1.setVoiceEnabled(true); - - test1.setSmsEnabled(true); - test1.setOffnet(true); TFN testTFNObject = new TFN(); diff --git a/src/test/java/com/github/freeclimbapi/models/LogListTest.java b/src/test/java/com/github/freeclimbapi/models/LogListTest.java index 12e78909..14257e3c 100644 --- a/src/test/java/com/github/freeclimbapi/models/LogListTest.java +++ b/src/test/java/com/github/freeclimbapi/models/LogListTest.java @@ -108,8 +108,8 @@ public void equalsTrueTest() { test1.setNextPageUri("TS"); - List testList = new ArrayList(); - test1.setLogs(testList); + List testsetLogsList = new ArrayList(); + test1.setLogs(testsetLogsList); LogList test2 = new LogList(); test2.setTotal(1); @@ -125,8 +125,8 @@ public void equalsTrueTest() { test2.setNextPageUri("TS"); - List testList2 = testList; - test2.setLogs(testList2); + List testsetLogsList2 = testsetLogsList; + test2.setLogs(testsetLogsList2); Assert.assertTrue(test1.equals(test2)); } @@ -149,8 +149,8 @@ public void equalsFalseTest() { test1.setNextPageUri("TS"); - List testList = new ArrayList(); - test1.setLogs(testList); + List testsetLogsList = new ArrayList(); + test1.setLogs(testsetLogsList); LogList test2 = new LogList(); test2.setTotal(0); @@ -166,8 +166,8 @@ public void equalsFalseTest() { test2.setNextPageUri("TS2"); - List testList2 = null; - test2.setLogs(testList2); + List testsetLogsList2 = null; + test2.setLogs(testsetLogsList2); Assert.assertFalse(test1.equals(test2)); } @@ -190,8 +190,8 @@ public void hashCodeTypeTest() { test1.setNextPageUri("TS"); - List testList = new ArrayList(); - test1.setLogs(testList); + List testsetLogsList = new ArrayList(); + test1.setLogs(testsetLogsList); int hashCode1 = test1.hashCode(); Assert.assertTrue(Integer.class.isInstance(hashCode1)); @@ -215,8 +215,8 @@ public void toStringEqualsTest() { test1.setNextPageUri("TS"); - List testList = new ArrayList(); - test1.setLogs(testList); + List testsetLogsList = new ArrayList(); + test1.setLogs(testsetLogsList); LogList test2 = new LogList(); test2.setTotal(1); @@ -232,8 +232,8 @@ public void toStringEqualsTest() { test2.setNextPageUri("TS"); - List testList2 = testList; - test2.setLogs(testList2); + List testsetLogsList2 = testsetLogsList; + test2.setLogs(testsetLogsList2); String toString1 = test1.toString(); String toString2 = test2.toString(); @@ -258,8 +258,8 @@ public void hashCodeEqualsTrueTest() { test1.setNextPageUri("TS"); - List testList = new ArrayList(); - test1.setLogs(testList); + List testsetLogsList = new ArrayList(); + test1.setLogs(testsetLogsList); LogList test2 = new LogList(); test2.setTotal(1); @@ -275,8 +275,8 @@ public void hashCodeEqualsTrueTest() { test2.setNextPageUri("TS"); - List testList2 = testList; - test2.setLogs(testList2); + List testsetLogsList2 = testsetLogsList; + test2.setLogs(testsetLogsList2); Assert.assertEquals(test1.hashCode(), test2.hashCode()); } @@ -298,8 +298,8 @@ public void hashCodeEqualsFalseTest() { test1.setNextPageUri("TS"); - List testList = new ArrayList(); - test1.setLogs(testList); + List testsetLogsList = new ArrayList(); + test1.setLogs(testsetLogsList); LogList test2 = new LogList(); test2.setTotal(0); @@ -315,8 +315,8 @@ public void hashCodeEqualsFalseTest() { test2.setNextPageUri("TS2"); - List testList2 = null; - test2.setLogs(testList2); + List testsetLogsList2 = null; + test2.setLogs(testsetLogsList2); Assert.assertNotEquals(test1.hashCode(), test2.hashCode()); } @@ -338,8 +338,8 @@ public void toStringTypeTest() { test1.setNextPageUri("TS"); - List testList = new ArrayList(); - test1.setLogs(testList); + List testsetLogsList = new ArrayList(); + test1.setLogs(testsetLogsList); String toString1 = test1.toString(); Assert.assertTrue(String.class.isInstance(toString1)); diff --git a/src/test/java/com/github/freeclimbapi/models/MessageRequestTest.java b/src/test/java/com/github/freeclimbapi/models/MessageRequestTest.java index b4132b3b..b1d05cd2 100644 --- a/src/test/java/com/github/freeclimbapi/models/MessageRequestTest.java +++ b/src/test/java/com/github/freeclimbapi/models/MessageRequestTest.java @@ -131,8 +131,8 @@ public void equalsTrueTest() { } ; - List testList = new ArrayList(); - test1.setMediaUrls(testList); + List testsetMediaUrlsList = new ArrayList(); + test1.setMediaUrls(testsetMediaUrlsList); MessageRequest test2 = new MessageRequest(); test2.setUri("TS"); @@ -157,8 +157,8 @@ public void equalsTrueTest() { } ; - List testList2 = testList; - test2.setMediaUrls(testList2); + List testsetMediaUrlsList2 = testsetMediaUrlsList; + test2.setMediaUrls(testsetMediaUrlsList2); Assert.assertTrue(test1.equals(test2)); } @@ -190,8 +190,8 @@ public void equalsFalseTest() { } ; - List testList = new ArrayList(); - test1.setMediaUrls(testList); + List testsetMediaUrlsList = new ArrayList(); + test1.setMediaUrls(testsetMediaUrlsList); MessageRequest test2 = new MessageRequest(); test2.setUri("TS2"); @@ -216,8 +216,8 @@ public void equalsFalseTest() { } ; - List testList2 = null; - test2.setMediaUrls(testList2); + List testsetMediaUrlsList2 = null; + test2.setMediaUrls(testsetMediaUrlsList2); Assert.assertFalse(test1.equals(test2)); } @@ -249,8 +249,8 @@ public void hashCodeTypeTest() { } ; - List testList = new ArrayList(); - test1.setMediaUrls(testList); + List testsetMediaUrlsList = new ArrayList(); + test1.setMediaUrls(testsetMediaUrlsList); int hashCode1 = test1.hashCode(); Assert.assertTrue(Integer.class.isInstance(hashCode1)); @@ -283,8 +283,8 @@ public void toStringEqualsTest() { } ; - List testList = new ArrayList(); - test1.setMediaUrls(testList); + List testsetMediaUrlsList = new ArrayList(); + test1.setMediaUrls(testsetMediaUrlsList); MessageRequest test2 = new MessageRequest(); test2.setUri("TS"); @@ -309,8 +309,8 @@ public void toStringEqualsTest() { } ; - List testList2 = testList; - test2.setMediaUrls(testList2); + List testsetMediaUrlsList2 = testsetMediaUrlsList; + test2.setMediaUrls(testsetMediaUrlsList2); String toString1 = test1.toString(); String toString2 = test2.toString(); @@ -344,8 +344,8 @@ public void hashCodeEqualsTrueTest() { } ; - List testList = new ArrayList(); - test1.setMediaUrls(testList); + List testsetMediaUrlsList = new ArrayList(); + test1.setMediaUrls(testsetMediaUrlsList); MessageRequest test2 = new MessageRequest(); test2.setUri("TS"); @@ -370,8 +370,8 @@ public void hashCodeEqualsTrueTest() { } ; - List testList2 = testList; - test2.setMediaUrls(testList2); + List testsetMediaUrlsList2 = testsetMediaUrlsList; + test2.setMediaUrls(testsetMediaUrlsList2); Assert.assertEquals(test1.hashCode(), test2.hashCode()); } @@ -402,8 +402,8 @@ public void hashCodeEqualsFalseTest() { } ; - List testList = new ArrayList(); - test1.setMediaUrls(testList); + List testsetMediaUrlsList = new ArrayList(); + test1.setMediaUrls(testsetMediaUrlsList); MessageRequest test2 = new MessageRequest(); test2.setUri("TS2"); @@ -428,8 +428,8 @@ public void hashCodeEqualsFalseTest() { } ; - List testList2 = null; - test2.setMediaUrls(testList2); + List testsetMediaUrlsList2 = null; + test2.setMediaUrls(testsetMediaUrlsList2); Assert.assertNotEquals(test1.hashCode(), test2.hashCode()); } @@ -460,8 +460,8 @@ public void toStringTypeTest() { } ; - List testList = new ArrayList(); - test1.setMediaUrls(testList); + List testsetMediaUrlsList = new ArrayList(); + test1.setMediaUrls(testsetMediaUrlsList); String toString1 = test1.toString(); Assert.assertTrue(String.class.isInstance(toString1)); diff --git a/src/test/java/com/github/freeclimbapi/models/MessageResultTest.java b/src/test/java/com/github/freeclimbapi/models/MessageResultTest.java index 7b08f7ac..15baea9a 100644 --- a/src/test/java/com/github/freeclimbapi/models/MessageResultTest.java +++ b/src/test/java/com/github/freeclimbapi/models/MessageResultTest.java @@ -244,8 +244,8 @@ public void equalsTrueTest() { test1.setCampaignId("TS"); - List testList = new ArrayList(); - test1.setMediaUrls(testList); + List testsetMediaUrlsList = new ArrayList(); + test1.setMediaUrls(testsetMediaUrlsList); TFN testTFNObject = new TFN(); test1.setTfn(testTFNObject); @@ -290,8 +290,8 @@ public void equalsTrueTest() { test2.setCampaignId("TS"); - List testList2 = testList; - test2.setMediaUrls(testList2); + List testsetMediaUrlsList2 = testsetMediaUrlsList; + test2.setMediaUrls(testsetMediaUrlsList2); TFN testTFNObject2 = testTFNObject; test2.setTfn(testTFNObject2); @@ -342,8 +342,8 @@ public void equalsFalseTest() { test1.setCampaignId("TS"); - List testList = new ArrayList(); - test1.setMediaUrls(testList); + List testsetMediaUrlsList = new ArrayList(); + test1.setMediaUrls(testsetMediaUrlsList); TFN testTFNObject = new TFN(); test1.setTfn(testTFNObject); @@ -388,8 +388,8 @@ public void equalsFalseTest() { test2.setCampaignId("TS2"); - List testList2 = null; - test2.setMediaUrls(testList2); + List testsetMediaUrlsList2 = null; + test2.setMediaUrls(testsetMediaUrlsList2); TFN testTFNObject2 = new TFN(); test2.setTfn(testTFNObject2); @@ -440,8 +440,8 @@ public void hashCodeTypeTest() { test1.setCampaignId("TS"); - List testList = new ArrayList(); - test1.setMediaUrls(testList); + List testsetMediaUrlsList = new ArrayList(); + test1.setMediaUrls(testsetMediaUrlsList); TFN testTFNObject = new TFN(); test1.setTfn(testTFNObject); @@ -493,8 +493,8 @@ public void toStringEqualsTest() { test1.setCampaignId("TS"); - List testList = new ArrayList(); - test1.setMediaUrls(testList); + List testsetMediaUrlsList = new ArrayList(); + test1.setMediaUrls(testsetMediaUrlsList); TFN testTFNObject = new TFN(); test1.setTfn(testTFNObject); @@ -539,8 +539,8 @@ public void toStringEqualsTest() { test2.setCampaignId("TS"); - List testList2 = testList; - test2.setMediaUrls(testList2); + List testsetMediaUrlsList2 = testsetMediaUrlsList; + test2.setMediaUrls(testsetMediaUrlsList2); TFN testTFNObject2 = testTFNObject; test2.setTfn(testTFNObject2); @@ -593,8 +593,8 @@ public void hashCodeEqualsTrueTest() { test1.setCampaignId("TS"); - List testList = new ArrayList(); - test1.setMediaUrls(testList); + List testsetMediaUrlsList = new ArrayList(); + test1.setMediaUrls(testsetMediaUrlsList); TFN testTFNObject = new TFN(); test1.setTfn(testTFNObject); @@ -639,8 +639,8 @@ public void hashCodeEqualsTrueTest() { test2.setCampaignId("TS"); - List testList2 = testList; - test2.setMediaUrls(testList2); + List testsetMediaUrlsList2 = testsetMediaUrlsList; + test2.setMediaUrls(testsetMediaUrlsList2); TFN testTFNObject2 = testTFNObject; test2.setTfn(testTFNObject2); @@ -691,8 +691,8 @@ public void hashCodeEqualsFalseTest() { test1.setCampaignId("TS"); - List testList = new ArrayList(); - test1.setMediaUrls(testList); + List testsetMediaUrlsList = new ArrayList(); + test1.setMediaUrls(testsetMediaUrlsList); TFN testTFNObject = new TFN(); test1.setTfn(testTFNObject); @@ -737,8 +737,8 @@ public void hashCodeEqualsFalseTest() { test2.setCampaignId("TS2"); - List testList2 = null; - test2.setMediaUrls(testList2); + List testsetMediaUrlsList2 = null; + test2.setMediaUrls(testsetMediaUrlsList2); TFN testTFNObject2 = new TFN(); test2.setTfn(testTFNObject2); @@ -789,8 +789,8 @@ public void toStringTypeTest() { test1.setCampaignId("TS"); - List testList = new ArrayList(); - test1.setMediaUrls(testList); + List testsetMediaUrlsList = new ArrayList(); + test1.setMediaUrls(testsetMediaUrlsList); TFN testTFNObject = new TFN(); test1.setTfn(testTFNObject); diff --git a/src/test/java/com/github/freeclimbapi/models/MessagesListTest.java b/src/test/java/com/github/freeclimbapi/models/MessagesListTest.java index 9bda2d00..e345482d 100644 --- a/src/test/java/com/github/freeclimbapi/models/MessagesListTest.java +++ b/src/test/java/com/github/freeclimbapi/models/MessagesListTest.java @@ -108,8 +108,8 @@ public void equalsTrueTest() { test1.setNextPageUri("TS"); - List testList = new ArrayList(); - test1.setMessages(testList); + List testsetMessagesList = new ArrayList(); + test1.setMessages(testsetMessagesList); MessagesList test2 = new MessagesList(); test2.setTotal(1); @@ -125,8 +125,8 @@ public void equalsTrueTest() { test2.setNextPageUri("TS"); - List testList2 = testList; - test2.setMessages(testList2); + List testsetMessagesList2 = testsetMessagesList; + test2.setMessages(testsetMessagesList2); Assert.assertTrue(test1.equals(test2)); } @@ -149,8 +149,8 @@ public void equalsFalseTest() { test1.setNextPageUri("TS"); - List testList = new ArrayList(); - test1.setMessages(testList); + List testsetMessagesList = new ArrayList(); + test1.setMessages(testsetMessagesList); MessagesList test2 = new MessagesList(); test2.setTotal(0); @@ -166,8 +166,8 @@ public void equalsFalseTest() { test2.setNextPageUri("TS2"); - List testList2 = null; - test2.setMessages(testList2); + List testsetMessagesList2 = null; + test2.setMessages(testsetMessagesList2); Assert.assertFalse(test1.equals(test2)); } @@ -190,8 +190,8 @@ public void hashCodeTypeTest() { test1.setNextPageUri("TS"); - List testList = new ArrayList(); - test1.setMessages(testList); + List testsetMessagesList = new ArrayList(); + test1.setMessages(testsetMessagesList); int hashCode1 = test1.hashCode(); Assert.assertTrue(Integer.class.isInstance(hashCode1)); @@ -215,8 +215,8 @@ public void toStringEqualsTest() { test1.setNextPageUri("TS"); - List testList = new ArrayList(); - test1.setMessages(testList); + List testsetMessagesList = new ArrayList(); + test1.setMessages(testsetMessagesList); MessagesList test2 = new MessagesList(); test2.setTotal(1); @@ -232,8 +232,8 @@ public void toStringEqualsTest() { test2.setNextPageUri("TS"); - List testList2 = testList; - test2.setMessages(testList2); + List testsetMessagesList2 = testsetMessagesList; + test2.setMessages(testsetMessagesList2); String toString1 = test1.toString(); String toString2 = test2.toString(); @@ -258,8 +258,8 @@ public void hashCodeEqualsTrueTest() { test1.setNextPageUri("TS"); - List testList = new ArrayList(); - test1.setMessages(testList); + List testsetMessagesList = new ArrayList(); + test1.setMessages(testsetMessagesList); MessagesList test2 = new MessagesList(); test2.setTotal(1); @@ -275,8 +275,8 @@ public void hashCodeEqualsTrueTest() { test2.setNextPageUri("TS"); - List testList2 = testList; - test2.setMessages(testList2); + List testsetMessagesList2 = testsetMessagesList; + test2.setMessages(testsetMessagesList2); Assert.assertEquals(test1.hashCode(), test2.hashCode()); } @@ -298,8 +298,8 @@ public void hashCodeEqualsFalseTest() { test1.setNextPageUri("TS"); - List testList = new ArrayList(); - test1.setMessages(testList); + List testsetMessagesList = new ArrayList(); + test1.setMessages(testsetMessagesList); MessagesList test2 = new MessagesList(); test2.setTotal(0); @@ -315,8 +315,8 @@ public void hashCodeEqualsFalseTest() { test2.setNextPageUri("TS2"); - List testList2 = null; - test2.setMessages(testList2); + List testsetMessagesList2 = null; + test2.setMessages(testsetMessagesList2); Assert.assertNotEquals(test1.hashCode(), test2.hashCode()); } @@ -338,8 +338,8 @@ public void toStringTypeTest() { test1.setNextPageUri("TS"); - List testList = new ArrayList(); - test1.setMessages(testList); + List testsetMessagesList = new ArrayList(); + test1.setMessages(testsetMessagesList); String toString1 = test1.toString(); Assert.assertTrue(String.class.isInstance(toString1)); diff --git a/src/test/java/com/github/freeclimbapi/models/ModifyBlobRequestTest.java b/src/test/java/com/github/freeclimbapi/models/ModifyBlobRequestTest.java new file mode 100644 index 00000000..09d83c9a --- /dev/null +++ b/src/test/java/com/github/freeclimbapi/models/ModifyBlobRequestTest.java @@ -0,0 +1,172 @@ +/* + * FreeClimb API + * FreeClimb is a cloud-based application programming interface (API) that puts the power of the Vail platform in your hands. FreeClimb simplifies the process of creating applications that can use a full range of telephony features without requiring specialized or on-site telephony equipment. Using the FreeClimb REST API to write applications is easy! You have the option to use the language of your choice or hit the API directly. Your application can execute a command by issuing a RESTful request to the FreeClimb API. The base URL to send HTTP requests to the FreeClimb REST API is: /apiserver. FreeClimb authenticates and processes your request. + * + * The version of the OpenAPI document: 1.0.0 + * Contact: support@freeclimb.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +package com.github.freeclimbapi; + +import com.github.freeclimbapi.enums.*; +import com.github.freeclimbapi.models.*; +import java.util.*; +import org.junit.Assert; +import org.junit.Test; + +/** Model tests for ModifyBlobRequest */ +public class ModifyBlobRequestTest { + + private final ModifyBlobRequest model = new ModifyBlobRequest(); + + /** Test the property 'blob' */ + @Test + public void blobTest() { + + Object object = new Object(); + model.setBlob(object); + Assert.assertEquals(object.getClass(), Object.class); + } + + /** Test the property 'alias' */ + @Test + public void aliasTest() { + + model.setAlias("TEST_STRING"); + Assert.assertEquals("TEST_STRING", model.getAlias()); + } + + /** Test the method 'equalsTrue' */ + @Test + public void equalsTrueTest() { + ModifyBlobRequest test1 = new ModifyBlobRequest(); + + Object testObjectObject = new Object(); + test1.setBlob(testObjectObject); + + test1.setAlias("TS"); + + ModifyBlobRequest test2 = new ModifyBlobRequest(); + + Object testObjectObject2 = testObjectObject; + test2.setBlob(testObjectObject2); + + test2.setAlias("TS"); + + Assert.assertTrue(test1.equals(test2)); + } + + /** Test the method 'equalsFalse' */ + @Test + public void equalsFalseTest() { + ModifyBlobRequest test1 = new ModifyBlobRequest(); + + Object testObjectObject = new Object(); + test1.setBlob(testObjectObject); + + test1.setAlias("TS"); + + ModifyBlobRequest test2 = new ModifyBlobRequest(); + + Object testObjectObject2 = new Object(); + test2.setBlob(testObjectObject2); + + test2.setAlias("TS2"); + + Assert.assertFalse(test1.equals(test2)); + } + + /** Test the method 'hashCodeType' */ + @Test + public void hashCodeTypeTest() { + ModifyBlobRequest test1 = new ModifyBlobRequest(); + + Object testObjectObject = new Object(); + test1.setBlob(testObjectObject); + + test1.setAlias("TS"); + + int hashCode1 = test1.hashCode(); + Assert.assertTrue(Integer.class.isInstance(hashCode1)); + } + + /** Test the method 'toStringEquals' */ + @Test + public void toStringEqualsTest() { + ModifyBlobRequest test1 = new ModifyBlobRequest(); + + Object testObjectObject = new Object(); + test1.setBlob(testObjectObject); + + test1.setAlias("TS"); + + ModifyBlobRequest test2 = new ModifyBlobRequest(); + + Object testObjectObject2 = testObjectObject; + test2.setBlob(testObjectObject2); + + test2.setAlias("TS"); + + String toString1 = test1.toString(); + String toString2 = test2.toString(); + Assert.assertEquals(toString1, toString2); + } + + /** Test the method 'hashCodeEqualsTrue' */ + @Test + public void hashCodeEqualsTrueTest() { + ModifyBlobRequest test1 = new ModifyBlobRequest(); + + Object testObjectObject = new Object(); + test1.setBlob(testObjectObject); + + test1.setAlias("TS"); + + ModifyBlobRequest test2 = new ModifyBlobRequest(); + + Object testObjectObject2 = testObjectObject; + test2.setBlob(testObjectObject2); + + test2.setAlias("TS"); + + Assert.assertEquals(test1.hashCode(), test2.hashCode()); + } + + /** Test the method 'hashCodeEqualsFalse' */ + @Test + public void hashCodeEqualsFalseTest() { + ModifyBlobRequest test1 = new ModifyBlobRequest(); + + Object testObjectObject = new Object(); + test1.setBlob(testObjectObject); + + test1.setAlias("TS"); + + ModifyBlobRequest test2 = new ModifyBlobRequest(); + + Object testObjectObject2 = new Object(); + test2.setBlob(testObjectObject2); + + test2.setAlias("TS2"); + + Assert.assertNotEquals(test1.hashCode(), test2.hashCode()); + } + + /** Test the method 'toStringType' */ + @Test + public void toStringTypeTest() { + ModifyBlobRequest test1 = new ModifyBlobRequest(); + + Object testObjectObject = new Object(); + test1.setBlob(testObjectObject); + + test1.setAlias("TS"); + + String toString1 = test1.toString(); + Assert.assertTrue(String.class.isInstance(toString1)); + } +} diff --git a/src/test/java/com/github/freeclimbapi/models/PerclScriptTest.java b/src/test/java/com/github/freeclimbapi/models/PerclScriptTest.java index 750b7371..20a496da 100644 --- a/src/test/java/com/github/freeclimbapi/models/PerclScriptTest.java +++ b/src/test/java/com/github/freeclimbapi/models/PerclScriptTest.java @@ -41,12 +41,12 @@ public void commandsTest() { public void equalsTrueTest() { PerclScript test1 = new PerclScript(); - List testList = new ArrayList(); - test1.setCommands(testList); + List testsetCommandsList = new ArrayList(); + test1.setCommands(testsetCommandsList); PerclScript test2 = new PerclScript(); - List testList2 = testList; - test2.setCommands(testList2); + List testsetCommandsList2 = testsetCommandsList; + test2.setCommands(testsetCommandsList2); Assert.assertTrue(test1.equals(test2)); } @@ -56,12 +56,12 @@ public void equalsTrueTest() { public void equalsFalseTest() { PerclScript test1 = new PerclScript(); - List testList = new ArrayList(); - test1.setCommands(testList); + List testsetCommandsList = new ArrayList(); + test1.setCommands(testsetCommandsList); PerclScript test2 = new PerclScript(); - List testList2 = null; - test2.setCommands(testList2); + List testsetCommandsList2 = null; + test2.setCommands(testsetCommandsList2); Assert.assertFalse(test1.equals(test2)); } @@ -71,8 +71,8 @@ public void equalsFalseTest() { public void hashCodeTypeTest() { PerclScript test1 = new PerclScript(); - List testList = new ArrayList(); - test1.setCommands(testList); + List testsetCommandsList = new ArrayList(); + test1.setCommands(testsetCommandsList); int hashCode1 = test1.hashCode(); Assert.assertTrue(Integer.class.isInstance(hashCode1)); @@ -83,12 +83,12 @@ public void hashCodeTypeTest() { public void toStringEqualsTest() { PerclScript test1 = new PerclScript(); - List testList = new ArrayList(); - test1.setCommands(testList); + List testsetCommandsList = new ArrayList(); + test1.setCommands(testsetCommandsList); PerclScript test2 = new PerclScript(); - List testList2 = testList; - test2.setCommands(testList2); + List testsetCommandsList2 = testsetCommandsList; + test2.setCommands(testsetCommandsList2); String toString1 = test1.toString(); String toString2 = test2.toString(); @@ -100,12 +100,12 @@ public void toStringEqualsTest() { public void hashCodeEqualsTrueTest() { PerclScript test1 = new PerclScript(); - List testList = new ArrayList(); - test1.setCommands(testList); + List testsetCommandsList = new ArrayList(); + test1.setCommands(testsetCommandsList); PerclScript test2 = new PerclScript(); - List testList2 = testList; - test2.setCommands(testList2); + List testsetCommandsList2 = testsetCommandsList; + test2.setCommands(testsetCommandsList2); Assert.assertEquals(test1.hashCode(), test2.hashCode()); } @@ -114,12 +114,12 @@ public void hashCodeEqualsTrueTest() { public void hashCodeEqualsFalseTest() { PerclScript test1 = new PerclScript(); - List testList = new ArrayList(); - test1.setCommands(testList); + List testsetCommandsList = new ArrayList(); + test1.setCommands(testsetCommandsList); PerclScript test2 = new PerclScript(); - List testList2 = null; - test2.setCommands(testList2); + List testsetCommandsList2 = null; + test2.setCommands(testsetCommandsList2); Assert.assertNotEquals(test1.hashCode(), test2.hashCode()); } @@ -128,8 +128,8 @@ public void hashCodeEqualsFalseTest() { public void toStringTypeTest() { PerclScript test1 = new PerclScript(); - List testList = new ArrayList(); - test1.setCommands(testList); + List testsetCommandsList = new ArrayList(); + test1.setCommands(testsetCommandsList); String toString1 = test1.toString(); Assert.assertTrue(String.class.isInstance(toString1)); diff --git a/src/test/java/com/github/freeclimbapi/models/PlatformErrorTest.java b/src/test/java/com/github/freeclimbapi/models/PlatformErrorTest.java new file mode 100644 index 00000000..9f6ff8a4 --- /dev/null +++ b/src/test/java/com/github/freeclimbapi/models/PlatformErrorTest.java @@ -0,0 +1,224 @@ +/* + * FreeClimb API + * FreeClimb is a cloud-based application programming interface (API) that puts the power of the Vail platform in your hands. FreeClimb simplifies the process of creating applications that can use a full range of telephony features without requiring specialized or on-site telephony equipment. Using the FreeClimb REST API to write applications is easy! You have the option to use the language of your choice or hit the API directly. Your application can execute a command by issuing a RESTful request to the FreeClimb API. The base URL to send HTTP requests to the FreeClimb REST API is: /apiserver. FreeClimb authenticates and processes your request. + * + * The version of the OpenAPI document: 1.0.0 + * Contact: support@freeclimb.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +package com.github.freeclimbapi; + +import com.github.freeclimbapi.enums.*; +import com.github.freeclimbapi.models.*; +import java.util.*; +import org.junit.Assert; +import org.junit.Test; + +/** Model tests for PlatformError */ +public class PlatformErrorTest { + + private final PlatformError model = new PlatformError(); + + /** Test the property 'code' */ + @Test + public void codeTest() { + + model.setCode(1); + Assert.assertEquals(1, (int) model.getCode()); + } + + /** Test the property 'call' */ + @Test + public void callTest() { + + model.setCall("TEST_STRING"); + Assert.assertEquals("TEST_STRING", model.getCall()); + } + + /** Test the property 'url' */ + @Test + public void urlTest() { + + model.setUrl("TEST_STRING"); + Assert.assertEquals("TEST_STRING", model.getUrl()); + } + + /** Test the property 'details' */ + @Test + public void detailsTest() { + + Object object = new Object(); + model.setDetails(object); + Assert.assertEquals(object.getClass(), Object.class); + } + + /** Test the method 'equalsTrue' */ + @Test + public void equalsTrueTest() { + PlatformError test1 = new PlatformError(); + test1.setCode(1); + + test1.setCall("TS"); + + test1.setUrl("TS"); + + Object testObjectObject = new Object(); + test1.setDetails(testObjectObject); + + PlatformError test2 = new PlatformError(); + test2.setCode(1); + + test2.setCall("TS"); + + test2.setUrl("TS"); + + Object testObjectObject2 = testObjectObject; + test2.setDetails(testObjectObject2); + + Assert.assertTrue(test1.equals(test2)); + } + + /** Test the method 'equalsFalse' */ + @Test + public void equalsFalseTest() { + PlatformError test1 = new PlatformError(); + test1.setCode(1); + + test1.setCall("TS"); + + test1.setUrl("TS"); + + Object testObjectObject = new Object(); + test1.setDetails(testObjectObject); + + PlatformError test2 = new PlatformError(); + test2.setCode(0); + + test2.setCall("TS2"); + + test2.setUrl("TS2"); + + Object testObjectObject2 = new Object(); + test2.setDetails(testObjectObject2); + + Assert.assertFalse(test1.equals(test2)); + } + + /** Test the method 'hashCodeType' */ + @Test + public void hashCodeTypeTest() { + PlatformError test1 = new PlatformError(); + test1.setCode(1); + + test1.setCall("TS"); + + test1.setUrl("TS"); + + Object testObjectObject = new Object(); + test1.setDetails(testObjectObject); + + int hashCode1 = test1.hashCode(); + Assert.assertTrue(Integer.class.isInstance(hashCode1)); + } + + /** Test the method 'toStringEquals' */ + @Test + public void toStringEqualsTest() { + PlatformError test1 = new PlatformError(); + test1.setCode(1); + + test1.setCall("TS"); + + test1.setUrl("TS"); + + Object testObjectObject = new Object(); + test1.setDetails(testObjectObject); + + PlatformError test2 = new PlatformError(); + test2.setCode(1); + + test2.setCall("TS"); + + test2.setUrl("TS"); + + Object testObjectObject2 = testObjectObject; + test2.setDetails(testObjectObject2); + + String toString1 = test1.toString(); + String toString2 = test2.toString(); + Assert.assertEquals(toString1, toString2); + } + + /** Test the method 'hashCodeEqualsTrue' */ + @Test + public void hashCodeEqualsTrueTest() { + PlatformError test1 = new PlatformError(); + test1.setCode(1); + + test1.setCall("TS"); + + test1.setUrl("TS"); + + Object testObjectObject = new Object(); + test1.setDetails(testObjectObject); + + PlatformError test2 = new PlatformError(); + test2.setCode(1); + + test2.setCall("TS"); + + test2.setUrl("TS"); + + Object testObjectObject2 = testObjectObject; + test2.setDetails(testObjectObject2); + + Assert.assertEquals(test1.hashCode(), test2.hashCode()); + } + + /** Test the method 'hashCodeEqualsFalse' */ + @Test + public void hashCodeEqualsFalseTest() { + PlatformError test1 = new PlatformError(); + test1.setCode(1); + + test1.setCall("TS"); + + test1.setUrl("TS"); + + Object testObjectObject = new Object(); + test1.setDetails(testObjectObject); + + PlatformError test2 = new PlatformError(); + test2.setCode(0); + + test2.setCall("TS2"); + + test2.setUrl("TS2"); + + Object testObjectObject2 = new Object(); + test2.setDetails(testObjectObject2); + + Assert.assertNotEquals(test1.hashCode(), test2.hashCode()); + } + + /** Test the method 'toStringType' */ + @Test + public void toStringTypeTest() { + PlatformError test1 = new PlatformError(); + test1.setCode(1); + + test1.setCall("TS"); + + test1.setUrl("TS"); + + Object testObjectObject = new Object(); + test1.setDetails(testObjectObject); + + String toString1 = test1.toString(); + Assert.assertTrue(String.class.isInstance(toString1)); + } +} diff --git a/src/test/java/com/github/freeclimbapi/models/QueueListTest.java b/src/test/java/com/github/freeclimbapi/models/QueueListTest.java index 22cd68bc..20d081fb 100644 --- a/src/test/java/com/github/freeclimbapi/models/QueueListTest.java +++ b/src/test/java/com/github/freeclimbapi/models/QueueListTest.java @@ -108,8 +108,8 @@ public void equalsTrueTest() { test1.setNextPageUri("TS"); - List testList = new ArrayList(); - test1.setQueues(testList); + List testsetQueuesList = new ArrayList(); + test1.setQueues(testsetQueuesList); QueueList test2 = new QueueList(); test2.setTotal(1); @@ -125,8 +125,8 @@ public void equalsTrueTest() { test2.setNextPageUri("TS"); - List testList2 = testList; - test2.setQueues(testList2); + List testsetQueuesList2 = testsetQueuesList; + test2.setQueues(testsetQueuesList2); Assert.assertTrue(test1.equals(test2)); } @@ -149,8 +149,8 @@ public void equalsFalseTest() { test1.setNextPageUri("TS"); - List testList = new ArrayList(); - test1.setQueues(testList); + List testsetQueuesList = new ArrayList(); + test1.setQueues(testsetQueuesList); QueueList test2 = new QueueList(); test2.setTotal(0); @@ -166,8 +166,8 @@ public void equalsFalseTest() { test2.setNextPageUri("TS2"); - List testList2 = null; - test2.setQueues(testList2); + List testsetQueuesList2 = null; + test2.setQueues(testsetQueuesList2); Assert.assertFalse(test1.equals(test2)); } @@ -190,8 +190,8 @@ public void hashCodeTypeTest() { test1.setNextPageUri("TS"); - List testList = new ArrayList(); - test1.setQueues(testList); + List testsetQueuesList = new ArrayList(); + test1.setQueues(testsetQueuesList); int hashCode1 = test1.hashCode(); Assert.assertTrue(Integer.class.isInstance(hashCode1)); @@ -215,8 +215,8 @@ public void toStringEqualsTest() { test1.setNextPageUri("TS"); - List testList = new ArrayList(); - test1.setQueues(testList); + List testsetQueuesList = new ArrayList(); + test1.setQueues(testsetQueuesList); QueueList test2 = new QueueList(); test2.setTotal(1); @@ -232,8 +232,8 @@ public void toStringEqualsTest() { test2.setNextPageUri("TS"); - List testList2 = testList; - test2.setQueues(testList2); + List testsetQueuesList2 = testsetQueuesList; + test2.setQueues(testsetQueuesList2); String toString1 = test1.toString(); String toString2 = test2.toString(); @@ -258,8 +258,8 @@ public void hashCodeEqualsTrueTest() { test1.setNextPageUri("TS"); - List testList = new ArrayList(); - test1.setQueues(testList); + List testsetQueuesList = new ArrayList(); + test1.setQueues(testsetQueuesList); QueueList test2 = new QueueList(); test2.setTotal(1); @@ -275,8 +275,8 @@ public void hashCodeEqualsTrueTest() { test2.setNextPageUri("TS"); - List testList2 = testList; - test2.setQueues(testList2); + List testsetQueuesList2 = testsetQueuesList; + test2.setQueues(testsetQueuesList2); Assert.assertEquals(test1.hashCode(), test2.hashCode()); } @@ -298,8 +298,8 @@ public void hashCodeEqualsFalseTest() { test1.setNextPageUri("TS"); - List testList = new ArrayList(); - test1.setQueues(testList); + List testsetQueuesList = new ArrayList(); + test1.setQueues(testsetQueuesList); QueueList test2 = new QueueList(); test2.setTotal(0); @@ -315,8 +315,8 @@ public void hashCodeEqualsFalseTest() { test2.setNextPageUri("TS2"); - List testList2 = null; - test2.setQueues(testList2); + List testsetQueuesList2 = null; + test2.setQueues(testsetQueuesList2); Assert.assertNotEquals(test1.hashCode(), test2.hashCode()); } @@ -338,8 +338,8 @@ public void toStringTypeTest() { test1.setNextPageUri("TS"); - List testList = new ArrayList(); - test1.setQueues(testList); + List testsetQueuesList = new ArrayList(); + test1.setQueues(testsetQueuesList); String toString1 = test1.toString(); Assert.assertTrue(String.class.isInstance(toString1)); diff --git a/src/test/java/com/github/freeclimbapi/models/QueueMemberListTest.java b/src/test/java/com/github/freeclimbapi/models/QueueMemberListTest.java index a6670363..3dc33a19 100644 --- a/src/test/java/com/github/freeclimbapi/models/QueueMemberListTest.java +++ b/src/test/java/com/github/freeclimbapi/models/QueueMemberListTest.java @@ -108,8 +108,8 @@ public void equalsTrueTest() { test1.setNextPageUri("TS"); - List testList = new ArrayList(); - test1.setQueueMembers(testList); + List testsetQueueMembersList = new ArrayList(); + test1.setQueueMembers(testsetQueueMembersList); QueueMemberList test2 = new QueueMemberList(); test2.setTotal(1); @@ -125,8 +125,8 @@ public void equalsTrueTest() { test2.setNextPageUri("TS"); - List testList2 = testList; - test2.setQueueMembers(testList2); + List testsetQueueMembersList2 = testsetQueueMembersList; + test2.setQueueMembers(testsetQueueMembersList2); Assert.assertTrue(test1.equals(test2)); } @@ -149,8 +149,8 @@ public void equalsFalseTest() { test1.setNextPageUri("TS"); - List testList = new ArrayList(); - test1.setQueueMembers(testList); + List testsetQueueMembersList = new ArrayList(); + test1.setQueueMembers(testsetQueueMembersList); QueueMemberList test2 = new QueueMemberList(); test2.setTotal(0); @@ -166,8 +166,8 @@ public void equalsFalseTest() { test2.setNextPageUri("TS2"); - List testList2 = null; - test2.setQueueMembers(testList2); + List testsetQueueMembersList2 = null; + test2.setQueueMembers(testsetQueueMembersList2); Assert.assertFalse(test1.equals(test2)); } @@ -190,8 +190,8 @@ public void hashCodeTypeTest() { test1.setNextPageUri("TS"); - List testList = new ArrayList(); - test1.setQueueMembers(testList); + List testsetQueueMembersList = new ArrayList(); + test1.setQueueMembers(testsetQueueMembersList); int hashCode1 = test1.hashCode(); Assert.assertTrue(Integer.class.isInstance(hashCode1)); @@ -215,8 +215,8 @@ public void toStringEqualsTest() { test1.setNextPageUri("TS"); - List testList = new ArrayList(); - test1.setQueueMembers(testList); + List testsetQueueMembersList = new ArrayList(); + test1.setQueueMembers(testsetQueueMembersList); QueueMemberList test2 = new QueueMemberList(); test2.setTotal(1); @@ -232,8 +232,8 @@ public void toStringEqualsTest() { test2.setNextPageUri("TS"); - List testList2 = testList; - test2.setQueueMembers(testList2); + List testsetQueueMembersList2 = testsetQueueMembersList; + test2.setQueueMembers(testsetQueueMembersList2); String toString1 = test1.toString(); String toString2 = test2.toString(); @@ -258,8 +258,8 @@ public void hashCodeEqualsTrueTest() { test1.setNextPageUri("TS"); - List testList = new ArrayList(); - test1.setQueueMembers(testList); + List testsetQueueMembersList = new ArrayList(); + test1.setQueueMembers(testsetQueueMembersList); QueueMemberList test2 = new QueueMemberList(); test2.setTotal(1); @@ -275,8 +275,8 @@ public void hashCodeEqualsTrueTest() { test2.setNextPageUri("TS"); - List testList2 = testList; - test2.setQueueMembers(testList2); + List testsetQueueMembersList2 = testsetQueueMembersList; + test2.setQueueMembers(testsetQueueMembersList2); Assert.assertEquals(test1.hashCode(), test2.hashCode()); } @@ -298,8 +298,8 @@ public void hashCodeEqualsFalseTest() { test1.setNextPageUri("TS"); - List testList = new ArrayList(); - test1.setQueueMembers(testList); + List testsetQueueMembersList = new ArrayList(); + test1.setQueueMembers(testsetQueueMembersList); QueueMemberList test2 = new QueueMemberList(); test2.setTotal(0); @@ -315,8 +315,8 @@ public void hashCodeEqualsFalseTest() { test2.setNextPageUri("TS2"); - List testList2 = null; - test2.setQueueMembers(testList2); + List testsetQueueMembersList2 = null; + test2.setQueueMembers(testsetQueueMembersList2); Assert.assertNotEquals(test1.hashCode(), test2.hashCode()); } @@ -338,8 +338,8 @@ public void toStringTypeTest() { test1.setNextPageUri("TS"); - List testList = new ArrayList(); - test1.setQueueMembers(testList); + List testsetQueueMembersList = new ArrayList(); + test1.setQueueMembers(testsetQueueMembersList); String toString1 = test1.toString(); Assert.assertTrue(String.class.isInstance(toString1)); diff --git a/src/test/java/com/github/freeclimbapi/models/RecordingListTest.java b/src/test/java/com/github/freeclimbapi/models/RecordingListTest.java index 511e1042..dc7f2e4b 100644 --- a/src/test/java/com/github/freeclimbapi/models/RecordingListTest.java +++ b/src/test/java/com/github/freeclimbapi/models/RecordingListTest.java @@ -108,8 +108,8 @@ public void equalsTrueTest() { test1.setNextPageUri("TS"); - List testList = new ArrayList(); - test1.setRecordings(testList); + List testsetRecordingsList = new ArrayList(); + test1.setRecordings(testsetRecordingsList); RecordingList test2 = new RecordingList(); test2.setTotal(1); @@ -125,8 +125,8 @@ public void equalsTrueTest() { test2.setNextPageUri("TS"); - List testList2 = testList; - test2.setRecordings(testList2); + List testsetRecordingsList2 = testsetRecordingsList; + test2.setRecordings(testsetRecordingsList2); Assert.assertTrue(test1.equals(test2)); } @@ -149,8 +149,8 @@ public void equalsFalseTest() { test1.setNextPageUri("TS"); - List testList = new ArrayList(); - test1.setRecordings(testList); + List testsetRecordingsList = new ArrayList(); + test1.setRecordings(testsetRecordingsList); RecordingList test2 = new RecordingList(); test2.setTotal(0); @@ -166,8 +166,8 @@ public void equalsFalseTest() { test2.setNextPageUri("TS2"); - List testList2 = null; - test2.setRecordings(testList2); + List testsetRecordingsList2 = null; + test2.setRecordings(testsetRecordingsList2); Assert.assertFalse(test1.equals(test2)); } @@ -190,8 +190,8 @@ public void hashCodeTypeTest() { test1.setNextPageUri("TS"); - List testList = new ArrayList(); - test1.setRecordings(testList); + List testsetRecordingsList = new ArrayList(); + test1.setRecordings(testsetRecordingsList); int hashCode1 = test1.hashCode(); Assert.assertTrue(Integer.class.isInstance(hashCode1)); @@ -215,8 +215,8 @@ public void toStringEqualsTest() { test1.setNextPageUri("TS"); - List testList = new ArrayList(); - test1.setRecordings(testList); + List testsetRecordingsList = new ArrayList(); + test1.setRecordings(testsetRecordingsList); RecordingList test2 = new RecordingList(); test2.setTotal(1); @@ -232,8 +232,8 @@ public void toStringEqualsTest() { test2.setNextPageUri("TS"); - List testList2 = testList; - test2.setRecordings(testList2); + List testsetRecordingsList2 = testsetRecordingsList; + test2.setRecordings(testsetRecordingsList2); String toString1 = test1.toString(); String toString2 = test2.toString(); @@ -258,8 +258,8 @@ public void hashCodeEqualsTrueTest() { test1.setNextPageUri("TS"); - List testList = new ArrayList(); - test1.setRecordings(testList); + List testsetRecordingsList = new ArrayList(); + test1.setRecordings(testsetRecordingsList); RecordingList test2 = new RecordingList(); test2.setTotal(1); @@ -275,8 +275,8 @@ public void hashCodeEqualsTrueTest() { test2.setNextPageUri("TS"); - List testList2 = testList; - test2.setRecordings(testList2); + List testsetRecordingsList2 = testsetRecordingsList; + test2.setRecordings(testsetRecordingsList2); Assert.assertEquals(test1.hashCode(), test2.hashCode()); } @@ -298,8 +298,8 @@ public void hashCodeEqualsFalseTest() { test1.setNextPageUri("TS"); - List testList = new ArrayList(); - test1.setRecordings(testList); + List testsetRecordingsList = new ArrayList(); + test1.setRecordings(testsetRecordingsList); RecordingList test2 = new RecordingList(); test2.setTotal(0); @@ -315,8 +315,8 @@ public void hashCodeEqualsFalseTest() { test2.setNextPageUri("TS2"); - List testList2 = null; - test2.setRecordings(testList2); + List testsetRecordingsList2 = null; + test2.setRecordings(testsetRecordingsList2); Assert.assertNotEquals(test1.hashCode(), test2.hashCode()); } @@ -338,8 +338,8 @@ public void toStringTypeTest() { test1.setNextPageUri("TS"); - List testList = new ArrayList(); - test1.setRecordings(testList); + List testsetRecordingsList = new ArrayList(); + test1.setRecordings(testsetRecordingsList); String toString1 = test1.toString(); Assert.assertTrue(String.class.isInstance(toString1)); diff --git a/src/test/java/com/github/freeclimbapi/models/ReplaceBlobRequestTest.java b/src/test/java/com/github/freeclimbapi/models/ReplaceBlobRequestTest.java new file mode 100644 index 00000000..0316c6ae --- /dev/null +++ b/src/test/java/com/github/freeclimbapi/models/ReplaceBlobRequestTest.java @@ -0,0 +1,140 @@ +/* + * FreeClimb API + * FreeClimb is a cloud-based application programming interface (API) that puts the power of the Vail platform in your hands. FreeClimb simplifies the process of creating applications that can use a full range of telephony features without requiring specialized or on-site telephony equipment. Using the FreeClimb REST API to write applications is easy! You have the option to use the language of your choice or hit the API directly. Your application can execute a command by issuing a RESTful request to the FreeClimb API. The base URL to send HTTP requests to the FreeClimb REST API is: /apiserver. FreeClimb authenticates and processes your request. + * + * The version of the OpenAPI document: 1.0.0 + * Contact: support@freeclimb.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +package com.github.freeclimbapi; + +import com.github.freeclimbapi.enums.*; +import com.github.freeclimbapi.models.*; +import java.util.*; +import org.junit.Assert; +import org.junit.Test; + +/** Model tests for ReplaceBlobRequest */ +public class ReplaceBlobRequestTest { + + private final ReplaceBlobRequest model = new ReplaceBlobRequest(); + + /** Test the property 'blob' */ + @Test + public void blobTest() { + + Object object = new Object(); + model.setBlob(object); + Assert.assertEquals(object.getClass(), Object.class); + } + + /** Test the method 'equalsTrue' */ + @Test + public void equalsTrueTest() { + ReplaceBlobRequest test1 = new ReplaceBlobRequest(); + + Object testObjectObject = new Object(); + test1.setBlob(testObjectObject); + + ReplaceBlobRequest test2 = new ReplaceBlobRequest(); + + Object testObjectObject2 = testObjectObject; + test2.setBlob(testObjectObject2); + + Assert.assertTrue(test1.equals(test2)); + } + + /** Test the method 'equalsFalse' */ + @Test + public void equalsFalseTest() { + ReplaceBlobRequest test1 = new ReplaceBlobRequest(); + + Object testObjectObject = new Object(); + test1.setBlob(testObjectObject); + + ReplaceBlobRequest test2 = new ReplaceBlobRequest(); + + Object testObjectObject2 = new Object(); + test2.setBlob(testObjectObject2); + + Assert.assertFalse(test1.equals(test2)); + } + + /** Test the method 'hashCodeType' */ + @Test + public void hashCodeTypeTest() { + ReplaceBlobRequest test1 = new ReplaceBlobRequest(); + + Object testObjectObject = new Object(); + test1.setBlob(testObjectObject); + + int hashCode1 = test1.hashCode(); + Assert.assertTrue(Integer.class.isInstance(hashCode1)); + } + + /** Test the method 'toStringEquals' */ + @Test + public void toStringEqualsTest() { + ReplaceBlobRequest test1 = new ReplaceBlobRequest(); + + Object testObjectObject = new Object(); + test1.setBlob(testObjectObject); + + ReplaceBlobRequest test2 = new ReplaceBlobRequest(); + + Object testObjectObject2 = testObjectObject; + test2.setBlob(testObjectObject2); + + String toString1 = test1.toString(); + String toString2 = test2.toString(); + Assert.assertEquals(toString1, toString2); + } + + /** Test the method 'hashCodeEqualsTrue' */ + @Test + public void hashCodeEqualsTrueTest() { + ReplaceBlobRequest test1 = new ReplaceBlobRequest(); + + Object testObjectObject = new Object(); + test1.setBlob(testObjectObject); + + ReplaceBlobRequest test2 = new ReplaceBlobRequest(); + + Object testObjectObject2 = testObjectObject; + test2.setBlob(testObjectObject2); + + Assert.assertEquals(test1.hashCode(), test2.hashCode()); + } + + /** Test the method 'hashCodeEqualsFalse' */ + @Test + public void hashCodeEqualsFalseTest() { + ReplaceBlobRequest test1 = new ReplaceBlobRequest(); + + Object testObjectObject = new Object(); + test1.setBlob(testObjectObject); + + ReplaceBlobRequest test2 = new ReplaceBlobRequest(); + + Object testObjectObject2 = new Object(); + test2.setBlob(testObjectObject2); + + Assert.assertNotEquals(test1.hashCode(), test2.hashCode()); + } + + /** Test the method 'toStringType' */ + @Test + public void toStringTypeTest() { + ReplaceBlobRequest test1 = new ReplaceBlobRequest(); + + Object testObjectObject = new Object(); + test1.setBlob(testObjectObject); + + String toString1 = test1.toString(); + Assert.assertTrue(String.class.isInstance(toString1)); + } +} diff --git a/src/test/java/com/github/freeclimbapi/models/SMSTenDLCBrandsListResultTest.java b/src/test/java/com/github/freeclimbapi/models/SMSTenDLCBrandsListResultTest.java index cf283824..48dac282 100644 --- a/src/test/java/com/github/freeclimbapi/models/SMSTenDLCBrandsListResultTest.java +++ b/src/test/java/com/github/freeclimbapi/models/SMSTenDLCBrandsListResultTest.java @@ -108,8 +108,8 @@ public void equalsTrueTest() { test1.setNextPageUri("TS"); - List testList = new ArrayList(); - test1.setBrands(testList); + List testsetBrandsList = new ArrayList(); + test1.setBrands(testsetBrandsList); SMSTenDLCBrandsListResult test2 = new SMSTenDLCBrandsListResult(); test2.setTotal(1); @@ -125,8 +125,8 @@ public void equalsTrueTest() { test2.setNextPageUri("TS"); - List testList2 = testList; - test2.setBrands(testList2); + List testsetBrandsList2 = testsetBrandsList; + test2.setBrands(testsetBrandsList2); Assert.assertTrue(test1.equals(test2)); } @@ -149,8 +149,8 @@ public void equalsFalseTest() { test1.setNextPageUri("TS"); - List testList = new ArrayList(); - test1.setBrands(testList); + List testsetBrandsList = new ArrayList(); + test1.setBrands(testsetBrandsList); SMSTenDLCBrandsListResult test2 = new SMSTenDLCBrandsListResult(); test2.setTotal(0); @@ -166,8 +166,8 @@ public void equalsFalseTest() { test2.setNextPageUri("TS2"); - List testList2 = null; - test2.setBrands(testList2); + List testsetBrandsList2 = null; + test2.setBrands(testsetBrandsList2); Assert.assertFalse(test1.equals(test2)); } @@ -190,8 +190,8 @@ public void hashCodeTypeTest() { test1.setNextPageUri("TS"); - List testList = new ArrayList(); - test1.setBrands(testList); + List testsetBrandsList = new ArrayList(); + test1.setBrands(testsetBrandsList); int hashCode1 = test1.hashCode(); Assert.assertTrue(Integer.class.isInstance(hashCode1)); @@ -215,8 +215,8 @@ public void toStringEqualsTest() { test1.setNextPageUri("TS"); - List testList = new ArrayList(); - test1.setBrands(testList); + List testsetBrandsList = new ArrayList(); + test1.setBrands(testsetBrandsList); SMSTenDLCBrandsListResult test2 = new SMSTenDLCBrandsListResult(); test2.setTotal(1); @@ -232,8 +232,8 @@ public void toStringEqualsTest() { test2.setNextPageUri("TS"); - List testList2 = testList; - test2.setBrands(testList2); + List testsetBrandsList2 = testsetBrandsList; + test2.setBrands(testsetBrandsList2); String toString1 = test1.toString(); String toString2 = test2.toString(); @@ -258,8 +258,8 @@ public void hashCodeEqualsTrueTest() { test1.setNextPageUri("TS"); - List testList = new ArrayList(); - test1.setBrands(testList); + List testsetBrandsList = new ArrayList(); + test1.setBrands(testsetBrandsList); SMSTenDLCBrandsListResult test2 = new SMSTenDLCBrandsListResult(); test2.setTotal(1); @@ -275,8 +275,8 @@ public void hashCodeEqualsTrueTest() { test2.setNextPageUri("TS"); - List testList2 = testList; - test2.setBrands(testList2); + List testsetBrandsList2 = testsetBrandsList; + test2.setBrands(testsetBrandsList2); Assert.assertEquals(test1.hashCode(), test2.hashCode()); } @@ -298,8 +298,8 @@ public void hashCodeEqualsFalseTest() { test1.setNextPageUri("TS"); - List testList = new ArrayList(); - test1.setBrands(testList); + List testsetBrandsList = new ArrayList(); + test1.setBrands(testsetBrandsList); SMSTenDLCBrandsListResult test2 = new SMSTenDLCBrandsListResult(); test2.setTotal(0); @@ -315,8 +315,8 @@ public void hashCodeEqualsFalseTest() { test2.setNextPageUri("TS2"); - List testList2 = null; - test2.setBrands(testList2); + List testsetBrandsList2 = null; + test2.setBrands(testsetBrandsList2); Assert.assertNotEquals(test1.hashCode(), test2.hashCode()); } @@ -338,8 +338,8 @@ public void toStringTypeTest() { test1.setNextPageUri("TS"); - List testList = new ArrayList(); - test1.setBrands(testList); + List testsetBrandsList = new ArrayList(); + test1.setBrands(testsetBrandsList); String toString1 = test1.toString(); Assert.assertTrue(String.class.isInstance(toString1)); diff --git a/src/test/java/com/github/freeclimbapi/models/SMSTenDLCCampaignsListResultTest.java b/src/test/java/com/github/freeclimbapi/models/SMSTenDLCCampaignsListResultTest.java index eee10ba4..c3118ee7 100644 --- a/src/test/java/com/github/freeclimbapi/models/SMSTenDLCCampaignsListResultTest.java +++ b/src/test/java/com/github/freeclimbapi/models/SMSTenDLCCampaignsListResultTest.java @@ -108,8 +108,8 @@ public void equalsTrueTest() { test1.setNextPageUri("TS"); - List testList = new ArrayList(); - test1.setCampaigns(testList); + List testsetCampaignsList = new ArrayList(); + test1.setCampaigns(testsetCampaignsList); SMSTenDLCCampaignsListResult test2 = new SMSTenDLCCampaignsListResult(); test2.setTotal(1); @@ -125,8 +125,8 @@ public void equalsTrueTest() { test2.setNextPageUri("TS"); - List testList2 = testList; - test2.setCampaigns(testList2); + List testsetCampaignsList2 = testsetCampaignsList; + test2.setCampaigns(testsetCampaignsList2); Assert.assertTrue(test1.equals(test2)); } @@ -149,8 +149,8 @@ public void equalsFalseTest() { test1.setNextPageUri("TS"); - List testList = new ArrayList(); - test1.setCampaigns(testList); + List testsetCampaignsList = new ArrayList(); + test1.setCampaigns(testsetCampaignsList); SMSTenDLCCampaignsListResult test2 = new SMSTenDLCCampaignsListResult(); test2.setTotal(0); @@ -166,8 +166,8 @@ public void equalsFalseTest() { test2.setNextPageUri("TS2"); - List testList2 = null; - test2.setCampaigns(testList2); + List testsetCampaignsList2 = null; + test2.setCampaigns(testsetCampaignsList2); Assert.assertFalse(test1.equals(test2)); } @@ -190,8 +190,8 @@ public void hashCodeTypeTest() { test1.setNextPageUri("TS"); - List testList = new ArrayList(); - test1.setCampaigns(testList); + List testsetCampaignsList = new ArrayList(); + test1.setCampaigns(testsetCampaignsList); int hashCode1 = test1.hashCode(); Assert.assertTrue(Integer.class.isInstance(hashCode1)); @@ -215,8 +215,8 @@ public void toStringEqualsTest() { test1.setNextPageUri("TS"); - List testList = new ArrayList(); - test1.setCampaigns(testList); + List testsetCampaignsList = new ArrayList(); + test1.setCampaigns(testsetCampaignsList); SMSTenDLCCampaignsListResult test2 = new SMSTenDLCCampaignsListResult(); test2.setTotal(1); @@ -232,8 +232,8 @@ public void toStringEqualsTest() { test2.setNextPageUri("TS"); - List testList2 = testList; - test2.setCampaigns(testList2); + List testsetCampaignsList2 = testsetCampaignsList; + test2.setCampaigns(testsetCampaignsList2); String toString1 = test1.toString(); String toString2 = test2.toString(); @@ -258,8 +258,8 @@ public void hashCodeEqualsTrueTest() { test1.setNextPageUri("TS"); - List testList = new ArrayList(); - test1.setCampaigns(testList); + List testsetCampaignsList = new ArrayList(); + test1.setCampaigns(testsetCampaignsList); SMSTenDLCCampaignsListResult test2 = new SMSTenDLCCampaignsListResult(); test2.setTotal(1); @@ -275,8 +275,8 @@ public void hashCodeEqualsTrueTest() { test2.setNextPageUri("TS"); - List testList2 = testList; - test2.setCampaigns(testList2); + List testsetCampaignsList2 = testsetCampaignsList; + test2.setCampaigns(testsetCampaignsList2); Assert.assertEquals(test1.hashCode(), test2.hashCode()); } @@ -298,8 +298,8 @@ public void hashCodeEqualsFalseTest() { test1.setNextPageUri("TS"); - List testList = new ArrayList(); - test1.setCampaigns(testList); + List testsetCampaignsList = new ArrayList(); + test1.setCampaigns(testsetCampaignsList); SMSTenDLCCampaignsListResult test2 = new SMSTenDLCCampaignsListResult(); test2.setTotal(0); @@ -315,8 +315,8 @@ public void hashCodeEqualsFalseTest() { test2.setNextPageUri("TS2"); - List testList2 = null; - test2.setCampaigns(testList2); + List testsetCampaignsList2 = null; + test2.setCampaigns(testsetCampaignsList2); Assert.assertNotEquals(test1.hashCode(), test2.hashCode()); } @@ -338,8 +338,8 @@ public void toStringTypeTest() { test1.setNextPageUri("TS"); - List testList = new ArrayList(); - test1.setCampaigns(testList); + List testsetCampaignsList = new ArrayList(); + test1.setCampaigns(testsetCampaignsList); String toString1 = test1.toString(); Assert.assertTrue(String.class.isInstance(toString1)); diff --git a/src/test/java/com/github/freeclimbapi/models/SMSTenDLCPartnerCampaignsListResultTest.java b/src/test/java/com/github/freeclimbapi/models/SMSTenDLCPartnerCampaignsListResultTest.java index 4c9174e3..0051586b 100644 --- a/src/test/java/com/github/freeclimbapi/models/SMSTenDLCPartnerCampaignsListResultTest.java +++ b/src/test/java/com/github/freeclimbapi/models/SMSTenDLCPartnerCampaignsListResultTest.java @@ -109,8 +109,9 @@ public void equalsTrueTest() { test1.setNextPageUri("TS"); - List testList = new ArrayList(); - test1.setPartnerCampaigns(testList); + List testsetPartnerCampaignsList = + new ArrayList(); + test1.setPartnerCampaigns(testsetPartnerCampaignsList); SMSTenDLCPartnerCampaignsListResult test2 = new SMSTenDLCPartnerCampaignsListResult(); test2.setTotal(1); @@ -126,8 +127,8 @@ public void equalsTrueTest() { test2.setNextPageUri("TS"); - List testList2 = testList; - test2.setPartnerCampaigns(testList2); + List testsetPartnerCampaignsList2 = testsetPartnerCampaignsList; + test2.setPartnerCampaigns(testsetPartnerCampaignsList2); Assert.assertTrue(test1.equals(test2)); } @@ -150,8 +151,9 @@ public void equalsFalseTest() { test1.setNextPageUri("TS"); - List testList = new ArrayList(); - test1.setPartnerCampaigns(testList); + List testsetPartnerCampaignsList = + new ArrayList(); + test1.setPartnerCampaigns(testsetPartnerCampaignsList); SMSTenDLCPartnerCampaignsListResult test2 = new SMSTenDLCPartnerCampaignsListResult(); test2.setTotal(0); @@ -167,8 +169,8 @@ public void equalsFalseTest() { test2.setNextPageUri("TS2"); - List testList2 = null; - test2.setPartnerCampaigns(testList2); + List testsetPartnerCampaignsList2 = null; + test2.setPartnerCampaigns(testsetPartnerCampaignsList2); Assert.assertFalse(test1.equals(test2)); } @@ -191,8 +193,9 @@ public void hashCodeTypeTest() { test1.setNextPageUri("TS"); - List testList = new ArrayList(); - test1.setPartnerCampaigns(testList); + List testsetPartnerCampaignsList = + new ArrayList(); + test1.setPartnerCampaigns(testsetPartnerCampaignsList); int hashCode1 = test1.hashCode(); Assert.assertTrue(Integer.class.isInstance(hashCode1)); @@ -216,8 +219,9 @@ public void toStringEqualsTest() { test1.setNextPageUri("TS"); - List testList = new ArrayList(); - test1.setPartnerCampaigns(testList); + List testsetPartnerCampaignsList = + new ArrayList(); + test1.setPartnerCampaigns(testsetPartnerCampaignsList); SMSTenDLCPartnerCampaignsListResult test2 = new SMSTenDLCPartnerCampaignsListResult(); test2.setTotal(1); @@ -233,8 +237,8 @@ public void toStringEqualsTest() { test2.setNextPageUri("TS"); - List testList2 = testList; - test2.setPartnerCampaigns(testList2); + List testsetPartnerCampaignsList2 = testsetPartnerCampaignsList; + test2.setPartnerCampaigns(testsetPartnerCampaignsList2); String toString1 = test1.toString(); String toString2 = test2.toString(); @@ -259,8 +263,9 @@ public void hashCodeEqualsTrueTest() { test1.setNextPageUri("TS"); - List testList = new ArrayList(); - test1.setPartnerCampaigns(testList); + List testsetPartnerCampaignsList = + new ArrayList(); + test1.setPartnerCampaigns(testsetPartnerCampaignsList); SMSTenDLCPartnerCampaignsListResult test2 = new SMSTenDLCPartnerCampaignsListResult(); test2.setTotal(1); @@ -276,8 +281,8 @@ public void hashCodeEqualsTrueTest() { test2.setNextPageUri("TS"); - List testList2 = testList; - test2.setPartnerCampaigns(testList2); + List testsetPartnerCampaignsList2 = testsetPartnerCampaignsList; + test2.setPartnerCampaigns(testsetPartnerCampaignsList2); Assert.assertEquals(test1.hashCode(), test2.hashCode()); } @@ -299,8 +304,9 @@ public void hashCodeEqualsFalseTest() { test1.setNextPageUri("TS"); - List testList = new ArrayList(); - test1.setPartnerCampaigns(testList); + List testsetPartnerCampaignsList = + new ArrayList(); + test1.setPartnerCampaigns(testsetPartnerCampaignsList); SMSTenDLCPartnerCampaignsListResult test2 = new SMSTenDLCPartnerCampaignsListResult(); test2.setTotal(0); @@ -316,8 +322,8 @@ public void hashCodeEqualsFalseTest() { test2.setNextPageUri("TS2"); - List testList2 = null; - test2.setPartnerCampaigns(testList2); + List testsetPartnerCampaignsList2 = null; + test2.setPartnerCampaigns(testsetPartnerCampaignsList2); Assert.assertNotEquals(test1.hashCode(), test2.hashCode()); } @@ -339,8 +345,9 @@ public void toStringTypeTest() { test1.setNextPageUri("TS"); - List testList = new ArrayList(); - test1.setPartnerCampaigns(testList); + List testsetPartnerCampaignsList = + new ArrayList(); + test1.setPartnerCampaigns(testsetPartnerCampaignsList); String toString1 = test1.toString(); Assert.assertTrue(String.class.isInstance(toString1)); diff --git a/src/test/java/com/github/freeclimbapi/models/SMSTollFreeCampaignsListResultTest.java b/src/test/java/com/github/freeclimbapi/models/SMSTollFreeCampaignsListResultTest.java index 764157f5..086981ca 100644 --- a/src/test/java/com/github/freeclimbapi/models/SMSTollFreeCampaignsListResultTest.java +++ b/src/test/java/com/github/freeclimbapi/models/SMSTollFreeCampaignsListResultTest.java @@ -108,8 +108,8 @@ public void equalsTrueTest() { test1.setNextPageUri("TS"); - List testList = new ArrayList(); - test1.setBrands(testList); + List testsetBrandsList = new ArrayList(); + test1.setBrands(testsetBrandsList); SMSTollFreeCampaignsListResult test2 = new SMSTollFreeCampaignsListResult(); test2.setTotal(1); @@ -125,8 +125,8 @@ public void equalsTrueTest() { test2.setNextPageUri("TS"); - List testList2 = testList; - test2.setBrands(testList2); + List testsetBrandsList2 = testsetBrandsList; + test2.setBrands(testsetBrandsList2); Assert.assertTrue(test1.equals(test2)); } @@ -149,8 +149,8 @@ public void equalsFalseTest() { test1.setNextPageUri("TS"); - List testList = new ArrayList(); - test1.setBrands(testList); + List testsetBrandsList = new ArrayList(); + test1.setBrands(testsetBrandsList); SMSTollFreeCampaignsListResult test2 = new SMSTollFreeCampaignsListResult(); test2.setTotal(0); @@ -166,8 +166,8 @@ public void equalsFalseTest() { test2.setNextPageUri("TS2"); - List testList2 = null; - test2.setBrands(testList2); + List testsetBrandsList2 = null; + test2.setBrands(testsetBrandsList2); Assert.assertFalse(test1.equals(test2)); } @@ -190,8 +190,8 @@ public void hashCodeTypeTest() { test1.setNextPageUri("TS"); - List testList = new ArrayList(); - test1.setBrands(testList); + List testsetBrandsList = new ArrayList(); + test1.setBrands(testsetBrandsList); int hashCode1 = test1.hashCode(); Assert.assertTrue(Integer.class.isInstance(hashCode1)); @@ -215,8 +215,8 @@ public void toStringEqualsTest() { test1.setNextPageUri("TS"); - List testList = new ArrayList(); - test1.setBrands(testList); + List testsetBrandsList = new ArrayList(); + test1.setBrands(testsetBrandsList); SMSTollFreeCampaignsListResult test2 = new SMSTollFreeCampaignsListResult(); test2.setTotal(1); @@ -232,8 +232,8 @@ public void toStringEqualsTest() { test2.setNextPageUri("TS"); - List testList2 = testList; - test2.setBrands(testList2); + List testsetBrandsList2 = testsetBrandsList; + test2.setBrands(testsetBrandsList2); String toString1 = test1.toString(); String toString2 = test2.toString(); @@ -258,8 +258,8 @@ public void hashCodeEqualsTrueTest() { test1.setNextPageUri("TS"); - List testList = new ArrayList(); - test1.setBrands(testList); + List testsetBrandsList = new ArrayList(); + test1.setBrands(testsetBrandsList); SMSTollFreeCampaignsListResult test2 = new SMSTollFreeCampaignsListResult(); test2.setTotal(1); @@ -275,8 +275,8 @@ public void hashCodeEqualsTrueTest() { test2.setNextPageUri("TS"); - List testList2 = testList; - test2.setBrands(testList2); + List testsetBrandsList2 = testsetBrandsList; + test2.setBrands(testsetBrandsList2); Assert.assertEquals(test1.hashCode(), test2.hashCode()); } @@ -298,8 +298,8 @@ public void hashCodeEqualsFalseTest() { test1.setNextPageUri("TS"); - List testList = new ArrayList(); - test1.setBrands(testList); + List testsetBrandsList = new ArrayList(); + test1.setBrands(testsetBrandsList); SMSTollFreeCampaignsListResult test2 = new SMSTollFreeCampaignsListResult(); test2.setTotal(0); @@ -315,8 +315,8 @@ public void hashCodeEqualsFalseTest() { test2.setNextPageUri("TS2"); - List testList2 = null; - test2.setBrands(testList2); + List testsetBrandsList2 = null; + test2.setBrands(testsetBrandsList2); Assert.assertNotEquals(test1.hashCode(), test2.hashCode()); } @@ -338,8 +338,8 @@ public void toStringTypeTest() { test1.setNextPageUri("TS"); - List testList = new ArrayList(); - test1.setBrands(testList); + List testsetBrandsList = new ArrayList(); + test1.setBrands(testsetBrandsList); String toString1 = test1.toString(); Assert.assertTrue(String.class.isInstance(toString1)); diff --git a/src/test/java/com/github/freeclimbapi/models/SayClassicTest.java b/src/test/java/com/github/freeclimbapi/models/SayClassicTest.java new file mode 100644 index 00000000..c0d308ee --- /dev/null +++ b/src/test/java/com/github/freeclimbapi/models/SayClassicTest.java @@ -0,0 +1,222 @@ +/* + * FreeClimb API + * FreeClimb is a cloud-based application programming interface (API) that puts the power of the Vail platform in your hands. FreeClimb simplifies the process of creating applications that can use a full range of telephony features without requiring specialized or on-site telephony equipment. Using the FreeClimb REST API to write applications is easy! You have the option to use the language of your choice or hit the API directly. Your application can execute a command by issuing a RESTful request to the FreeClimb API. The base URL to send HTTP requests to the FreeClimb REST API is: /apiserver. FreeClimb authenticates and processes your request. + * + * The version of the OpenAPI document: 1.0.0 + * Contact: support@freeclimb.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +package com.github.freeclimbapi; + +import com.github.freeclimbapi.enums.*; +import com.github.freeclimbapi.models.*; +import java.util.*; +import org.junit.Assert; +import org.junit.Test; + +/** Model tests for SayClassic */ +public class SayClassicTest { + + private final SayClassic model = new SayClassic(); + + /** Test the property 'text' */ + @Test + public void textTest() { + + model.setText("TEST_STRING"); + Assert.assertEquals("TEST_STRING", model.getText()); + } + + /** Test the property 'language' */ + @Test + public void languageTest() { + + model.setLanguage("TEST_STRING"); + Assert.assertEquals("TEST_STRING", model.getLanguage()); + } + + /** Test the property 'loop' */ + @Test + public void loopTest() { + + model.setLoop(1); + Assert.assertEquals(1, (int) model.getLoop()); + } + + /** Test the property 'privacyMode' */ + @Test + public void privacyModeTest() { + model.setPrivacyMode(false); + Assert.assertEquals(false, model.getPrivacyMode()); + } + + /** Test the method 'equalsTrue' */ + @Test + public void equalsTrueTest() { + SayClassic test1 = new SayClassic(); + + test1.setText("TS"); + + test1.setLanguage("TS"); + + test1.setLoop(1); + + test1.setPrivacyMode(true); + + SayClassic test2 = new SayClassic(); + + test2.setText("TS"); + + test2.setLanguage("TS"); + + test2.setLoop(1); + + test2.setPrivacyMode(true); + + Assert.assertTrue(test1.equals(test2)); + } + + /** Test the method 'equalsFalse' */ + @Test + public void equalsFalseTest() { + SayClassic test1 = new SayClassic(); + + test1.setText("TS"); + + test1.setLanguage("TS"); + + test1.setLoop(1); + + test1.setPrivacyMode(true); + + SayClassic test2 = new SayClassic(); + + test2.setText("TS2"); + + test2.setLanguage("TS2"); + + test2.setLoop(0); + + test2.setPrivacyMode(false); + + Assert.assertFalse(test1.equals(test2)); + } + + /** Test the method 'hashCodeType' */ + @Test + public void hashCodeTypeTest() { + SayClassic test1 = new SayClassic(); + + test1.setText("TS"); + + test1.setLanguage("TS"); + + test1.setLoop(1); + + test1.setPrivacyMode(true); + + int hashCode1 = test1.hashCode(); + Assert.assertTrue(Integer.class.isInstance(hashCode1)); + } + + /** Test the method 'toStringEquals' */ + @Test + public void toStringEqualsTest() { + SayClassic test1 = new SayClassic(); + + test1.setText("TS"); + + test1.setLanguage("TS"); + + test1.setLoop(1); + + test1.setPrivacyMode(true); + + SayClassic test2 = new SayClassic(); + + test2.setText("TS"); + + test2.setLanguage("TS"); + + test2.setLoop(1); + + test2.setPrivacyMode(true); + + String toString1 = test1.toString(); + String toString2 = test2.toString(); + Assert.assertEquals(toString1, toString2); + } + + /** Test the method 'hashCodeEqualsTrue' */ + @Test + public void hashCodeEqualsTrueTest() { + SayClassic test1 = new SayClassic(); + + test1.setText("TS"); + + test1.setLanguage("TS"); + + test1.setLoop(1); + + test1.setPrivacyMode(true); + + SayClassic test2 = new SayClassic(); + + test2.setText("TS"); + + test2.setLanguage("TS"); + + test2.setLoop(1); + + test2.setPrivacyMode(true); + + Assert.assertEquals(test1.hashCode(), test2.hashCode()); + } + + /** Test the method 'hashCodeEqualsFalse' */ + @Test + public void hashCodeEqualsFalseTest() { + SayClassic test1 = new SayClassic(); + + test1.setText("TS"); + + test1.setLanguage("TS"); + + test1.setLoop(1); + + test1.setPrivacyMode(true); + + SayClassic test2 = new SayClassic(); + + test2.setText("TS2"); + + test2.setLanguage("TS2"); + + test2.setLoop(0); + + test2.setPrivacyMode(false); + + Assert.assertNotEquals(test1.hashCode(), test2.hashCode()); + } + + /** Test the method 'toStringType' */ + @Test + public void toStringTypeTest() { + SayClassic test1 = new SayClassic(); + + test1.setText("TS"); + + test1.setLanguage("TS"); + + test1.setLoop(1); + + test1.setPrivacyMode(true); + + String toString1 = test1.toString(); + Assert.assertTrue(String.class.isInstance(toString1)); + } +} diff --git a/src/test/java/com/github/freeclimbapi/models/SayElevenLabsEngineParametersPronunciationDictionaryInnerTest.java b/src/test/java/com/github/freeclimbapi/models/SayElevenLabsEngineParametersPronunciationDictionaryInnerTest.java new file mode 100644 index 00000000..f7ba2117 --- /dev/null +++ b/src/test/java/com/github/freeclimbapi/models/SayElevenLabsEngineParametersPronunciationDictionaryInnerTest.java @@ -0,0 +1,172 @@ +/* + * FreeClimb API + * FreeClimb is a cloud-based application programming interface (API) that puts the power of the Vail platform in your hands. FreeClimb simplifies the process of creating applications that can use a full range of telephony features without requiring specialized or on-site telephony equipment. Using the FreeClimb REST API to write applications is easy! You have the option to use the language of your choice or hit the API directly. Your application can execute a command by issuing a RESTful request to the FreeClimb API. The base URL to send HTTP requests to the FreeClimb REST API is: /apiserver. FreeClimb authenticates and processes your request. + * + * The version of the OpenAPI document: 1.0.0 + * Contact: support@freeclimb.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +package com.github.freeclimbapi; + +import com.github.freeclimbapi.enums.*; +import com.github.freeclimbapi.models.*; +import java.util.*; +import org.junit.Assert; +import org.junit.Test; + +/** Model tests for SayElevenLabsEngineParametersPronunciationDictionaryInner */ +public class SayElevenLabsEngineParametersPronunciationDictionaryInnerTest { + + private final SayElevenLabsEngineParametersPronunciationDictionaryInner model = + new SayElevenLabsEngineParametersPronunciationDictionaryInner(); + + /** Test the property 'pronunciationDictionaryId' */ + @Test + public void pronunciationDictionaryIdTest() { + + model.setPronunciationDictionaryId("TEST_STRING"); + Assert.assertEquals("TEST_STRING", model.getPronunciationDictionaryId()); + } + + /** Test the property 'versionId' */ + @Test + public void versionIdTest() { + + model.setVersionId("TEST_STRING"); + Assert.assertEquals("TEST_STRING", model.getVersionId()); + } + + /** Test the method 'equalsTrue' */ + @Test + public void equalsTrueTest() { + SayElevenLabsEngineParametersPronunciationDictionaryInner test1 = + new SayElevenLabsEngineParametersPronunciationDictionaryInner(); + + test1.setPronunciationDictionaryId("TS"); + + test1.setVersionId("TS"); + + SayElevenLabsEngineParametersPronunciationDictionaryInner test2 = + new SayElevenLabsEngineParametersPronunciationDictionaryInner(); + + test2.setPronunciationDictionaryId("TS"); + + test2.setVersionId("TS"); + + Assert.assertTrue(test1.equals(test2)); + } + + /** Test the method 'equalsFalse' */ + @Test + public void equalsFalseTest() { + SayElevenLabsEngineParametersPronunciationDictionaryInner test1 = + new SayElevenLabsEngineParametersPronunciationDictionaryInner(); + + test1.setPronunciationDictionaryId("TS"); + + test1.setVersionId("TS"); + + SayElevenLabsEngineParametersPronunciationDictionaryInner test2 = + new SayElevenLabsEngineParametersPronunciationDictionaryInner(); + + test2.setPronunciationDictionaryId("TS2"); + + test2.setVersionId("TS2"); + + Assert.assertFalse(test1.equals(test2)); + } + + /** Test the method 'hashCodeType' */ + @Test + public void hashCodeTypeTest() { + SayElevenLabsEngineParametersPronunciationDictionaryInner test1 = + new SayElevenLabsEngineParametersPronunciationDictionaryInner(); + + test1.setPronunciationDictionaryId("TS"); + + test1.setVersionId("TS"); + + int hashCode1 = test1.hashCode(); + Assert.assertTrue(Integer.class.isInstance(hashCode1)); + } + + /** Test the method 'toStringEquals' */ + @Test + public void toStringEqualsTest() { + SayElevenLabsEngineParametersPronunciationDictionaryInner test1 = + new SayElevenLabsEngineParametersPronunciationDictionaryInner(); + + test1.setPronunciationDictionaryId("TS"); + + test1.setVersionId("TS"); + + SayElevenLabsEngineParametersPronunciationDictionaryInner test2 = + new SayElevenLabsEngineParametersPronunciationDictionaryInner(); + + test2.setPronunciationDictionaryId("TS"); + + test2.setVersionId("TS"); + + String toString1 = test1.toString(); + String toString2 = test2.toString(); + Assert.assertEquals(toString1, toString2); + } + + /** Test the method 'hashCodeEqualsTrue' */ + @Test + public void hashCodeEqualsTrueTest() { + SayElevenLabsEngineParametersPronunciationDictionaryInner test1 = + new SayElevenLabsEngineParametersPronunciationDictionaryInner(); + + test1.setPronunciationDictionaryId("TS"); + + test1.setVersionId("TS"); + + SayElevenLabsEngineParametersPronunciationDictionaryInner test2 = + new SayElevenLabsEngineParametersPronunciationDictionaryInner(); + + test2.setPronunciationDictionaryId("TS"); + + test2.setVersionId("TS"); + + Assert.assertEquals(test1.hashCode(), test2.hashCode()); + } + + /** Test the method 'hashCodeEqualsFalse' */ + @Test + public void hashCodeEqualsFalseTest() { + SayElevenLabsEngineParametersPronunciationDictionaryInner test1 = + new SayElevenLabsEngineParametersPronunciationDictionaryInner(); + + test1.setPronunciationDictionaryId("TS"); + + test1.setVersionId("TS"); + + SayElevenLabsEngineParametersPronunciationDictionaryInner test2 = + new SayElevenLabsEngineParametersPronunciationDictionaryInner(); + + test2.setPronunciationDictionaryId("TS2"); + + test2.setVersionId("TS2"); + + Assert.assertNotEquals(test1.hashCode(), test2.hashCode()); + } + + /** Test the method 'toStringType' */ + @Test + public void toStringTypeTest() { + SayElevenLabsEngineParametersPronunciationDictionaryInner test1 = + new SayElevenLabsEngineParametersPronunciationDictionaryInner(); + + test1.setPronunciationDictionaryId("TS"); + + test1.setVersionId("TS"); + + String toString1 = test1.toString(); + Assert.assertTrue(String.class.isInstance(toString1)); + } +} diff --git a/src/test/java/com/github/freeclimbapi/models/SayElevenLabsEngineParametersTest.java b/src/test/java/com/github/freeclimbapi/models/SayElevenLabsEngineParametersTest.java new file mode 100644 index 00000000..8360939a --- /dev/null +++ b/src/test/java/com/github/freeclimbapi/models/SayElevenLabsEngineParametersTest.java @@ -0,0 +1,521 @@ +/* + * FreeClimb API + * FreeClimb is a cloud-based application programming interface (API) that puts the power of the Vail platform in your hands. FreeClimb simplifies the process of creating applications that can use a full range of telephony features without requiring specialized or on-site telephony equipment. Using the FreeClimb REST API to write applications is easy! You have the option to use the language of your choice or hit the API directly. Your application can execute a command by issuing a RESTful request to the FreeClimb API. The base URL to send HTTP requests to the FreeClimb REST API is: /apiserver. FreeClimb authenticates and processes your request. + * + * The version of the OpenAPI document: 1.0.0 + * Contact: support@freeclimb.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +package com.github.freeclimbapi; + +import com.github.freeclimbapi.enums.*; +import com.github.freeclimbapi.models.*; +import java.util.*; +import java.util.ArrayList; +import java.util.List; +import org.junit.Assert; +import org.junit.Test; + +/** Model tests for SayElevenLabsEngineParameters */ +public class SayElevenLabsEngineParametersTest { + + private final SayElevenLabsEngineParameters model = new SayElevenLabsEngineParameters(); + + /** Test the property 'modelId' */ + @Test + public void modelIdTest() { + + model.setModelId("TEST_STRING"); + Assert.assertEquals("TEST_STRING", model.getModelId()); + } + + /** Test the property 'voiceId' */ + @Test + public void voiceIdTest() { + + model.setVoiceId("TEST_STRING"); + Assert.assertEquals("TEST_STRING", model.getVoiceId()); + } + + /** Test the property 'languageCode' */ + @Test + public void languageCodeTest() { + + model.setLanguageCode("TEST_STRING"); + Assert.assertEquals("TEST_STRING", model.getLanguageCode()); + } + + /** Test the property 'voiceSettings' */ + @Test + public void voiceSettingsTest() { + + SayElevenLabsEngineParametersVoiceSettings object = + new SayElevenLabsEngineParametersVoiceSettings(); + model.setVoiceSettings(object); + Assert.assertEquals(object.getClass(), SayElevenLabsEngineParametersVoiceSettings.class); + } + + /** Test the property 'pronunciationDictionary' */ + @Test + public void pronunciationDictionaryTest() { + + List testList = + new ArrayList(); + model.setPronunciationDictionary(testList); + Assert.assertEquals(testList, model.getPronunciationDictionary()); + } + + /** Test the property 'seed' */ + @Test + public void seedTest() { + + model.setSeed(1); + Assert.assertEquals(1, (int) model.getSeed()); + } + + /** Test the property 'previousText' */ + @Test + public void previousTextTest() { + + model.setPreviousText("TEST_STRING"); + Assert.assertEquals("TEST_STRING", model.getPreviousText()); + } + + /** Test the property 'nextText' */ + @Test + public void nextTextTest() { + + model.setNextText("TEST_STRING"); + Assert.assertEquals("TEST_STRING", model.getNextText()); + } + + /** Test the property 'previousRequestIds' */ + @Test + public void previousRequestIdsTest() { + + List testList = new ArrayList(); + model.setPreviousRequestIds(testList); + Assert.assertEquals(testList, model.getPreviousRequestIds()); + } + + /** Test the property 'nextRequestIds' */ + @Test + public void nextRequestIdsTest() { + + List testList = new ArrayList(); + model.setNextRequestIds(testList); + Assert.assertEquals(testList, model.getNextRequestIds()); + } + + /** Test the property 'applyLanguageTextNormalization' */ + @Test + public void applyLanguageTextNormalizationTest() { + model.setApplyLanguageTextNormalization(false); + Assert.assertEquals(false, model.getApplyLanguageTextNormalization()); + } + + /** Test the method 'equalsTrue' */ + @Test + public void equalsTrueTest() { + SayElevenLabsEngineParameters test1 = new SayElevenLabsEngineParameters(); + + test1.setModelId("TS"); + + test1.setVoiceId("TS"); + + test1.setLanguageCode("TS"); + + SayElevenLabsEngineParametersVoiceSettings + testSayElevenLabsEngineParametersVoiceSettingsObject = + new SayElevenLabsEngineParametersVoiceSettings(); + test1.setVoiceSettings(testSayElevenLabsEngineParametersVoiceSettingsObject); + + List + testsetPronunciationDictionaryList = + new ArrayList(); + test1.setPronunciationDictionary(testsetPronunciationDictionaryList); + test1.setSeed(1); + + test1.setPreviousText("TS"); + + test1.setNextText("TS"); + + List testsetPreviousRequestIdsList = new ArrayList(); + test1.setPreviousRequestIds(testsetPreviousRequestIdsList); + + List testsetNextRequestIdsList = new ArrayList(); + test1.setNextRequestIds(testsetNextRequestIdsList); + test1.setApplyLanguageTextNormalization(true); + + SayElevenLabsEngineParameters test2 = new SayElevenLabsEngineParameters(); + + test2.setModelId("TS"); + + test2.setVoiceId("TS"); + + test2.setLanguageCode("TS"); + + SayElevenLabsEngineParametersVoiceSettings + testSayElevenLabsEngineParametersVoiceSettingsObject2 = + testSayElevenLabsEngineParametersVoiceSettingsObject; + test2.setVoiceSettings(testSayElevenLabsEngineParametersVoiceSettingsObject2); + + List + testsetPronunciationDictionaryList2 = testsetPronunciationDictionaryList; + test2.setPronunciationDictionary(testsetPronunciationDictionaryList2); + test2.setSeed(1); + + test2.setPreviousText("TS"); + + test2.setNextText("TS"); + + List testsetPreviousRequestIdsList2 = testsetPreviousRequestIdsList; + test2.setPreviousRequestIds(testsetPreviousRequestIdsList2); + + List testsetNextRequestIdsList2 = testsetNextRequestIdsList; + test2.setNextRequestIds(testsetNextRequestIdsList2); + test2.setApplyLanguageTextNormalization(true); + + Assert.assertTrue(test1.equals(test2)); + } + + /** Test the method 'equalsFalse' */ + @Test + public void equalsFalseTest() { + SayElevenLabsEngineParameters test1 = new SayElevenLabsEngineParameters(); + + test1.setModelId("TS"); + + test1.setVoiceId("TS"); + + test1.setLanguageCode("TS"); + + SayElevenLabsEngineParametersVoiceSettings + testSayElevenLabsEngineParametersVoiceSettingsObject = + new SayElevenLabsEngineParametersVoiceSettings(); + test1.setVoiceSettings(testSayElevenLabsEngineParametersVoiceSettingsObject); + + List + testsetPronunciationDictionaryList = + new ArrayList(); + test1.setPronunciationDictionary(testsetPronunciationDictionaryList); + test1.setSeed(1); + + test1.setPreviousText("TS"); + + test1.setNextText("TS"); + + List testsetPreviousRequestIdsList = new ArrayList(); + test1.setPreviousRequestIds(testsetPreviousRequestIdsList); + + List testsetNextRequestIdsList = new ArrayList(); + test1.setNextRequestIds(testsetNextRequestIdsList); + test1.setApplyLanguageTextNormalization(true); + + SayElevenLabsEngineParameters test2 = new SayElevenLabsEngineParameters(); + + test2.setModelId("TS2"); + + test2.setVoiceId("TS2"); + + test2.setLanguageCode("TS2"); + + SayElevenLabsEngineParametersVoiceSettings + testSayElevenLabsEngineParametersVoiceSettingsObject2 = + new SayElevenLabsEngineParametersVoiceSettings(); + test2.setVoiceSettings(testSayElevenLabsEngineParametersVoiceSettingsObject2); + + List + testsetPronunciationDictionaryList2 = null; + test2.setPronunciationDictionary(testsetPronunciationDictionaryList2); + test2.setSeed(0); + + test2.setPreviousText("TS2"); + + test2.setNextText("TS2"); + + List testsetPreviousRequestIdsList2 = null; + test2.setPreviousRequestIds(testsetPreviousRequestIdsList2); + + List testsetNextRequestIdsList2 = null; + test2.setNextRequestIds(testsetNextRequestIdsList2); + test2.setApplyLanguageTextNormalization(false); + + Assert.assertFalse(test1.equals(test2)); + } + + /** Test the method 'hashCodeType' */ + @Test + public void hashCodeTypeTest() { + SayElevenLabsEngineParameters test1 = new SayElevenLabsEngineParameters(); + + test1.setModelId("TS"); + + test1.setVoiceId("TS"); + + test1.setLanguageCode("TS"); + + SayElevenLabsEngineParametersVoiceSettings + testSayElevenLabsEngineParametersVoiceSettingsObject = + new SayElevenLabsEngineParametersVoiceSettings(); + test1.setVoiceSettings(testSayElevenLabsEngineParametersVoiceSettingsObject); + + List + testsetPronunciationDictionaryList = + new ArrayList(); + test1.setPronunciationDictionary(testsetPronunciationDictionaryList); + test1.setSeed(1); + + test1.setPreviousText("TS"); + + test1.setNextText("TS"); + + List testsetPreviousRequestIdsList = new ArrayList(); + test1.setPreviousRequestIds(testsetPreviousRequestIdsList); + + List testsetNextRequestIdsList = new ArrayList(); + test1.setNextRequestIds(testsetNextRequestIdsList); + test1.setApplyLanguageTextNormalization(true); + + int hashCode1 = test1.hashCode(); + Assert.assertTrue(Integer.class.isInstance(hashCode1)); + } + + /** Test the method 'toStringEquals' */ + @Test + public void toStringEqualsTest() { + SayElevenLabsEngineParameters test1 = new SayElevenLabsEngineParameters(); + + test1.setModelId("TS"); + + test1.setVoiceId("TS"); + + test1.setLanguageCode("TS"); + + SayElevenLabsEngineParametersVoiceSettings + testSayElevenLabsEngineParametersVoiceSettingsObject = + new SayElevenLabsEngineParametersVoiceSettings(); + test1.setVoiceSettings(testSayElevenLabsEngineParametersVoiceSettingsObject); + + List + testsetPronunciationDictionaryList = + new ArrayList(); + test1.setPronunciationDictionary(testsetPronunciationDictionaryList); + test1.setSeed(1); + + test1.setPreviousText("TS"); + + test1.setNextText("TS"); + + List testsetPreviousRequestIdsList = new ArrayList(); + test1.setPreviousRequestIds(testsetPreviousRequestIdsList); + + List testsetNextRequestIdsList = new ArrayList(); + test1.setNextRequestIds(testsetNextRequestIdsList); + test1.setApplyLanguageTextNormalization(true); + + SayElevenLabsEngineParameters test2 = new SayElevenLabsEngineParameters(); + + test2.setModelId("TS"); + + test2.setVoiceId("TS"); + + test2.setLanguageCode("TS"); + + SayElevenLabsEngineParametersVoiceSettings + testSayElevenLabsEngineParametersVoiceSettingsObject2 = + testSayElevenLabsEngineParametersVoiceSettingsObject; + test2.setVoiceSettings(testSayElevenLabsEngineParametersVoiceSettingsObject2); + + List + testsetPronunciationDictionaryList2 = testsetPronunciationDictionaryList; + test2.setPronunciationDictionary(testsetPronunciationDictionaryList2); + test2.setSeed(1); + + test2.setPreviousText("TS"); + + test2.setNextText("TS"); + + List testsetPreviousRequestIdsList2 = testsetPreviousRequestIdsList; + test2.setPreviousRequestIds(testsetPreviousRequestIdsList2); + + List testsetNextRequestIdsList2 = testsetNextRequestIdsList; + test2.setNextRequestIds(testsetNextRequestIdsList2); + test2.setApplyLanguageTextNormalization(true); + + String toString1 = test1.toString(); + String toString2 = test2.toString(); + Assert.assertEquals(toString1, toString2); + } + + /** Test the method 'hashCodeEqualsTrue' */ + @Test + public void hashCodeEqualsTrueTest() { + SayElevenLabsEngineParameters test1 = new SayElevenLabsEngineParameters(); + + test1.setModelId("TS"); + + test1.setVoiceId("TS"); + + test1.setLanguageCode("TS"); + + SayElevenLabsEngineParametersVoiceSettings + testSayElevenLabsEngineParametersVoiceSettingsObject = + new SayElevenLabsEngineParametersVoiceSettings(); + test1.setVoiceSettings(testSayElevenLabsEngineParametersVoiceSettingsObject); + + List + testsetPronunciationDictionaryList = + new ArrayList(); + test1.setPronunciationDictionary(testsetPronunciationDictionaryList); + test1.setSeed(1); + + test1.setPreviousText("TS"); + + test1.setNextText("TS"); + + List testsetPreviousRequestIdsList = new ArrayList(); + test1.setPreviousRequestIds(testsetPreviousRequestIdsList); + + List testsetNextRequestIdsList = new ArrayList(); + test1.setNextRequestIds(testsetNextRequestIdsList); + test1.setApplyLanguageTextNormalization(true); + + SayElevenLabsEngineParameters test2 = new SayElevenLabsEngineParameters(); + + test2.setModelId("TS"); + + test2.setVoiceId("TS"); + + test2.setLanguageCode("TS"); + + SayElevenLabsEngineParametersVoiceSettings + testSayElevenLabsEngineParametersVoiceSettingsObject2 = + testSayElevenLabsEngineParametersVoiceSettingsObject; + test2.setVoiceSettings(testSayElevenLabsEngineParametersVoiceSettingsObject2); + + List + testsetPronunciationDictionaryList2 = testsetPronunciationDictionaryList; + test2.setPronunciationDictionary(testsetPronunciationDictionaryList2); + test2.setSeed(1); + + test2.setPreviousText("TS"); + + test2.setNextText("TS"); + + List testsetPreviousRequestIdsList2 = testsetPreviousRequestIdsList; + test2.setPreviousRequestIds(testsetPreviousRequestIdsList2); + + List testsetNextRequestIdsList2 = testsetNextRequestIdsList; + test2.setNextRequestIds(testsetNextRequestIdsList2); + test2.setApplyLanguageTextNormalization(true); + + Assert.assertEquals(test1.hashCode(), test2.hashCode()); + } + + /** Test the method 'hashCodeEqualsFalse' */ + @Test + public void hashCodeEqualsFalseTest() { + SayElevenLabsEngineParameters test1 = new SayElevenLabsEngineParameters(); + + test1.setModelId("TS"); + + test1.setVoiceId("TS"); + + test1.setLanguageCode("TS"); + + SayElevenLabsEngineParametersVoiceSettings + testSayElevenLabsEngineParametersVoiceSettingsObject = + new SayElevenLabsEngineParametersVoiceSettings(); + test1.setVoiceSettings(testSayElevenLabsEngineParametersVoiceSettingsObject); + + List + testsetPronunciationDictionaryList = + new ArrayList(); + test1.setPronunciationDictionary(testsetPronunciationDictionaryList); + test1.setSeed(1); + + test1.setPreviousText("TS"); + + test1.setNextText("TS"); + + List testsetPreviousRequestIdsList = new ArrayList(); + test1.setPreviousRequestIds(testsetPreviousRequestIdsList); + + List testsetNextRequestIdsList = new ArrayList(); + test1.setNextRequestIds(testsetNextRequestIdsList); + test1.setApplyLanguageTextNormalization(true); + + SayElevenLabsEngineParameters test2 = new SayElevenLabsEngineParameters(); + + test2.setModelId("TS2"); + + test2.setVoiceId("TS2"); + + test2.setLanguageCode("TS2"); + + SayElevenLabsEngineParametersVoiceSettings + testSayElevenLabsEngineParametersVoiceSettingsObject2 = + new SayElevenLabsEngineParametersVoiceSettings(); + test2.setVoiceSettings(testSayElevenLabsEngineParametersVoiceSettingsObject2); + + List + testsetPronunciationDictionaryList2 = null; + test2.setPronunciationDictionary(testsetPronunciationDictionaryList2); + test2.setSeed(0); + + test2.setPreviousText("TS2"); + + test2.setNextText("TS2"); + + List testsetPreviousRequestIdsList2 = null; + test2.setPreviousRequestIds(testsetPreviousRequestIdsList2); + + List testsetNextRequestIdsList2 = null; + test2.setNextRequestIds(testsetNextRequestIdsList2); + test2.setApplyLanguageTextNormalization(false); + + Assert.assertNotEquals(test1.hashCode(), test2.hashCode()); + } + + /** Test the method 'toStringType' */ + @Test + public void toStringTypeTest() { + SayElevenLabsEngineParameters test1 = new SayElevenLabsEngineParameters(); + + test1.setModelId("TS"); + + test1.setVoiceId("TS"); + + test1.setLanguageCode("TS"); + + SayElevenLabsEngineParametersVoiceSettings + testSayElevenLabsEngineParametersVoiceSettingsObject = + new SayElevenLabsEngineParametersVoiceSettings(); + test1.setVoiceSettings(testSayElevenLabsEngineParametersVoiceSettingsObject); + + List + testsetPronunciationDictionaryList = + new ArrayList(); + test1.setPronunciationDictionary(testsetPronunciationDictionaryList); + test1.setSeed(1); + + test1.setPreviousText("TS"); + + test1.setNextText("TS"); + + List testsetPreviousRequestIdsList = new ArrayList(); + test1.setPreviousRequestIds(testsetPreviousRequestIdsList); + + List testsetNextRequestIdsList = new ArrayList(); + test1.setNextRequestIds(testsetNextRequestIdsList); + test1.setApplyLanguageTextNormalization(true); + + String toString1 = test1.toString(); + Assert.assertTrue(String.class.isInstance(toString1)); + } +} diff --git a/src/test/java/com/github/freeclimbapi/models/SayElevenLabsEngineParametersVoiceSettingsTest.java b/src/test/java/com/github/freeclimbapi/models/SayElevenLabsEngineParametersVoiceSettingsTest.java new file mode 100644 index 00000000..870cc674 --- /dev/null +++ b/src/test/java/com/github/freeclimbapi/models/SayElevenLabsEngineParametersVoiceSettingsTest.java @@ -0,0 +1,172 @@ +/* + * FreeClimb API + * FreeClimb is a cloud-based application programming interface (API) that puts the power of the Vail platform in your hands. FreeClimb simplifies the process of creating applications that can use a full range of telephony features without requiring specialized or on-site telephony equipment. Using the FreeClimb REST API to write applications is easy! You have the option to use the language of your choice or hit the API directly. Your application can execute a command by issuing a RESTful request to the FreeClimb API. The base URL to send HTTP requests to the FreeClimb REST API is: /apiserver. FreeClimb authenticates and processes your request. + * + * The version of the OpenAPI document: 1.0.0 + * Contact: support@freeclimb.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +package com.github.freeclimbapi; + +import com.github.freeclimbapi.enums.*; +import com.github.freeclimbapi.models.*; +import java.math.BigDecimal; +import java.util.*; +import org.junit.Assert; +import org.junit.Test; + +/** Model tests for SayElevenLabsEngineParametersVoiceSettings */ +public class SayElevenLabsEngineParametersVoiceSettingsTest { + + private final SayElevenLabsEngineParametersVoiceSettings model = + new SayElevenLabsEngineParametersVoiceSettings(); + + /** Test the property 'stability' */ + @Test + public void stabilityTest() { + + model.setStability(new BigDecimal(1.0)); + Assert.assertEquals(new BigDecimal(1.0), model.getStability()); + } + + /** Test the property 'useSpeakerBoost' */ + @Test + public void useSpeakerBoostTest() { + model.setUseSpeakerBoost(false); + Assert.assertEquals(false, model.getUseSpeakerBoost()); + } + + /** Test the property 'similarityBoost' */ + @Test + public void similarityBoostTest() { + + model.setSimilarityBoost(new BigDecimal(1.0)); + Assert.assertEquals(new BigDecimal(1.0), model.getSimilarityBoost()); + } + + /** Test the property 'style' */ + @Test + public void styleTest() { + + model.setStyle(new BigDecimal(1.0)); + Assert.assertEquals(new BigDecimal(1.0), model.getStyle()); + } + + /** Test the property 'speed' */ + @Test + public void speedTest() { + + model.setSpeed(new BigDecimal(1.0)); + Assert.assertEquals(new BigDecimal(1.0), model.getSpeed()); + } + + /** Test the method 'equalsTrue' */ + @Test + public void equalsTrueTest() { + SayElevenLabsEngineParametersVoiceSettings test1 = + new SayElevenLabsEngineParametersVoiceSettings(); + + test1.setUseSpeakerBoost(true); + + SayElevenLabsEngineParametersVoiceSettings test2 = + new SayElevenLabsEngineParametersVoiceSettings(); + + test2.setUseSpeakerBoost(true); + + Assert.assertTrue(test1.equals(test2)); + } + + /** Test the method 'equalsFalse' */ + @Test + public void equalsFalseTest() { + SayElevenLabsEngineParametersVoiceSettings test1 = + new SayElevenLabsEngineParametersVoiceSettings(); + + test1.setUseSpeakerBoost(true); + + SayElevenLabsEngineParametersVoiceSettings test2 = + new SayElevenLabsEngineParametersVoiceSettings(); + + test2.setUseSpeakerBoost(false); + + Assert.assertFalse(test1.equals(test2)); + } + + /** Test the method 'hashCodeType' */ + @Test + public void hashCodeTypeTest() { + SayElevenLabsEngineParametersVoiceSettings test1 = + new SayElevenLabsEngineParametersVoiceSettings(); + + test1.setUseSpeakerBoost(true); + + int hashCode1 = test1.hashCode(); + Assert.assertTrue(Integer.class.isInstance(hashCode1)); + } + + /** Test the method 'toStringEquals' */ + @Test + public void toStringEqualsTest() { + SayElevenLabsEngineParametersVoiceSettings test1 = + new SayElevenLabsEngineParametersVoiceSettings(); + + test1.setUseSpeakerBoost(true); + + SayElevenLabsEngineParametersVoiceSettings test2 = + new SayElevenLabsEngineParametersVoiceSettings(); + + test2.setUseSpeakerBoost(true); + + String toString1 = test1.toString(); + String toString2 = test2.toString(); + Assert.assertEquals(toString1, toString2); + } + + /** Test the method 'hashCodeEqualsTrue' */ + @Test + public void hashCodeEqualsTrueTest() { + SayElevenLabsEngineParametersVoiceSettings test1 = + new SayElevenLabsEngineParametersVoiceSettings(); + + test1.setUseSpeakerBoost(true); + + SayElevenLabsEngineParametersVoiceSettings test2 = + new SayElevenLabsEngineParametersVoiceSettings(); + + test2.setUseSpeakerBoost(true); + + Assert.assertEquals(test1.hashCode(), test2.hashCode()); + } + + /** Test the method 'hashCodeEqualsFalse' */ + @Test + public void hashCodeEqualsFalseTest() { + SayElevenLabsEngineParametersVoiceSettings test1 = + new SayElevenLabsEngineParametersVoiceSettings(); + + test1.setUseSpeakerBoost(true); + + SayElevenLabsEngineParametersVoiceSettings test2 = + new SayElevenLabsEngineParametersVoiceSettings(); + + test2.setUseSpeakerBoost(false); + + Assert.assertNotEquals(test1.hashCode(), test2.hashCode()); + } + + /** Test the method 'toStringType' */ + @Test + public void toStringTypeTest() { + SayElevenLabsEngineParametersVoiceSettings test1 = + new SayElevenLabsEngineParametersVoiceSettings(); + + test1.setUseSpeakerBoost(true); + + String toString1 = test1.toString(); + Assert.assertTrue(String.class.isInstance(toString1)); + } +} diff --git a/src/test/java/com/github/freeclimbapi/models/SayElevenLabsEngineTest.java b/src/test/java/com/github/freeclimbapi/models/SayElevenLabsEngineTest.java new file mode 100644 index 00000000..68a083f3 --- /dev/null +++ b/src/test/java/com/github/freeclimbapi/models/SayElevenLabsEngineTest.java @@ -0,0 +1,184 @@ +/* + * FreeClimb API + * FreeClimb is a cloud-based application programming interface (API) that puts the power of the Vail platform in your hands. FreeClimb simplifies the process of creating applications that can use a full range of telephony features without requiring specialized or on-site telephony equipment. Using the FreeClimb REST API to write applications is easy! You have the option to use the language of your choice or hit the API directly. Your application can execute a command by issuing a RESTful request to the FreeClimb API. The base URL to send HTTP requests to the FreeClimb REST API is: /apiserver. FreeClimb authenticates and processes your request. + * + * The version of the OpenAPI document: 1.0.0 + * Contact: support@freeclimb.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +package com.github.freeclimbapi; + +import com.github.freeclimbapi.enums.*; +import com.github.freeclimbapi.models.*; +import java.util.*; +import org.junit.Assert; +import org.junit.Test; + +/** Model tests for SayElevenLabsEngine */ +public class SayElevenLabsEngineTest { + + private final SayElevenLabsEngine model = new SayElevenLabsEngine(); + + /** Test the property 'name' */ + @Test + public void nameTest() { + + model.setName("TEST_STRING"); + Assert.assertEquals("TEST_STRING", model.getName()); + } + + /** Test the property 'parameters' */ + @Test + public void parametersTest() { + + SayElevenLabsEngineParameters object = new SayElevenLabsEngineParameters(); + model.setParameters(object); + Assert.assertEquals(object.getClass(), SayElevenLabsEngineParameters.class); + } + + /** Test the method 'equalsTrue' */ + @Test + public void equalsTrueTest() { + SayElevenLabsEngine test1 = new SayElevenLabsEngine(); + + test1.setName("TS"); + + SayElevenLabsEngineParameters testSayElevenLabsEngineParametersObject = + new SayElevenLabsEngineParameters(); + test1.setParameters(testSayElevenLabsEngineParametersObject); + + SayElevenLabsEngine test2 = new SayElevenLabsEngine(); + + test2.setName("TS"); + + SayElevenLabsEngineParameters testSayElevenLabsEngineParametersObject2 = + testSayElevenLabsEngineParametersObject; + test2.setParameters(testSayElevenLabsEngineParametersObject2); + + Assert.assertTrue(test1.equals(test2)); + } + + /** Test the method 'equalsFalse' */ + @Test + public void equalsFalseTest() { + SayElevenLabsEngine test1 = new SayElevenLabsEngine(); + + test1.setName("TS"); + + SayElevenLabsEngineParameters testSayElevenLabsEngineParametersObject = + new SayElevenLabsEngineParameters(); + test1.setParameters(testSayElevenLabsEngineParametersObject); + + SayElevenLabsEngine test2 = new SayElevenLabsEngine(); + + test2.setName("TS2"); + + SayElevenLabsEngineParameters testSayElevenLabsEngineParametersObject2 = + new SayElevenLabsEngineParameters(); + test2.setParameters(testSayElevenLabsEngineParametersObject2); + + Assert.assertFalse(test1.equals(test2)); + } + + /** Test the method 'hashCodeType' */ + @Test + public void hashCodeTypeTest() { + SayElevenLabsEngine test1 = new SayElevenLabsEngine(); + + test1.setName("TS"); + + SayElevenLabsEngineParameters testSayElevenLabsEngineParametersObject = + new SayElevenLabsEngineParameters(); + test1.setParameters(testSayElevenLabsEngineParametersObject); + + int hashCode1 = test1.hashCode(); + Assert.assertTrue(Integer.class.isInstance(hashCode1)); + } + + /** Test the method 'toStringEquals' */ + @Test + public void toStringEqualsTest() { + SayElevenLabsEngine test1 = new SayElevenLabsEngine(); + + test1.setName("TS"); + + SayElevenLabsEngineParameters testSayElevenLabsEngineParametersObject = + new SayElevenLabsEngineParameters(); + test1.setParameters(testSayElevenLabsEngineParametersObject); + + SayElevenLabsEngine test2 = new SayElevenLabsEngine(); + + test2.setName("TS"); + + SayElevenLabsEngineParameters testSayElevenLabsEngineParametersObject2 = + testSayElevenLabsEngineParametersObject; + test2.setParameters(testSayElevenLabsEngineParametersObject2); + + String toString1 = test1.toString(); + String toString2 = test2.toString(); + Assert.assertEquals(toString1, toString2); + } + + /** Test the method 'hashCodeEqualsTrue' */ + @Test + public void hashCodeEqualsTrueTest() { + SayElevenLabsEngine test1 = new SayElevenLabsEngine(); + + test1.setName("TS"); + + SayElevenLabsEngineParameters testSayElevenLabsEngineParametersObject = + new SayElevenLabsEngineParameters(); + test1.setParameters(testSayElevenLabsEngineParametersObject); + + SayElevenLabsEngine test2 = new SayElevenLabsEngine(); + + test2.setName("TS"); + + SayElevenLabsEngineParameters testSayElevenLabsEngineParametersObject2 = + testSayElevenLabsEngineParametersObject; + test2.setParameters(testSayElevenLabsEngineParametersObject2); + + Assert.assertEquals(test1.hashCode(), test2.hashCode()); + } + + /** Test the method 'hashCodeEqualsFalse' */ + @Test + public void hashCodeEqualsFalseTest() { + SayElevenLabsEngine test1 = new SayElevenLabsEngine(); + + test1.setName("TS"); + + SayElevenLabsEngineParameters testSayElevenLabsEngineParametersObject = + new SayElevenLabsEngineParameters(); + test1.setParameters(testSayElevenLabsEngineParametersObject); + + SayElevenLabsEngine test2 = new SayElevenLabsEngine(); + + test2.setName("TS2"); + + SayElevenLabsEngineParameters testSayElevenLabsEngineParametersObject2 = + new SayElevenLabsEngineParameters(); + test2.setParameters(testSayElevenLabsEngineParametersObject2); + + Assert.assertNotEquals(test1.hashCode(), test2.hashCode()); + } + + /** Test the method 'toStringType' */ + @Test + public void toStringTypeTest() { + SayElevenLabsEngine test1 = new SayElevenLabsEngine(); + + test1.setName("TS"); + + SayElevenLabsEngineParameters testSayElevenLabsEngineParametersObject = + new SayElevenLabsEngineParameters(); + test1.setParameters(testSayElevenLabsEngineParametersObject); + + String toString1 = test1.toString(); + Assert.assertTrue(String.class.isInstance(toString1)); + } +} diff --git a/src/test/java/com/github/freeclimbapi/models/SayElevenLabsTest.java b/src/test/java/com/github/freeclimbapi/models/SayElevenLabsTest.java new file mode 100644 index 00000000..2bcd43d0 --- /dev/null +++ b/src/test/java/com/github/freeclimbapi/models/SayElevenLabsTest.java @@ -0,0 +1,235 @@ +/* + * FreeClimb API + * FreeClimb is a cloud-based application programming interface (API) that puts the power of the Vail platform in your hands. FreeClimb simplifies the process of creating applications that can use a full range of telephony features without requiring specialized or on-site telephony equipment. Using the FreeClimb REST API to write applications is easy! You have the option to use the language of your choice or hit the API directly. Your application can execute a command by issuing a RESTful request to the FreeClimb API. The base URL to send HTTP requests to the FreeClimb REST API is: /apiserver. FreeClimb authenticates and processes your request. + * + * The version of the OpenAPI document: 1.0.0 + * Contact: support@freeclimb.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +package com.github.freeclimbapi; + +import com.github.freeclimbapi.enums.*; +import com.github.freeclimbapi.models.*; +import java.util.*; +import org.junit.Assert; +import org.junit.Test; + +/** Model tests for SayElevenLabs */ +public class SayElevenLabsTest { + + private final SayElevenLabs model = new SayElevenLabs(); + + /** Test the property 'text' */ + @Test + public void textTest() { + + model.setText("TEST_STRING"); + Assert.assertEquals("TEST_STRING", model.getText()); + } + + /** Test the property 'loop' */ + @Test + public void loopTest() { + + model.setLoop(1); + Assert.assertEquals(1, (int) model.getLoop()); + } + + /** Test the property 'privacyMode' */ + @Test + public void privacyModeTest() { + model.setPrivacyMode(false); + Assert.assertEquals(false, model.getPrivacyMode()); + } + + /** Test the property 'engine' */ + @Test + public void engineTest() { + + SayElevenLabsEngine object = new SayElevenLabsEngine(); + model.setEngine(object); + Assert.assertEquals(object.getClass(), SayElevenLabsEngine.class); + } + + /** Test the method 'equalsTrue' */ + @Test + public void equalsTrueTest() { + SayElevenLabs test1 = new SayElevenLabs(); + + test1.setText("TS"); + + test1.setLoop(1); + + test1.setPrivacyMode(true); + + SayElevenLabsEngine testSayElevenLabsEngineObject = new SayElevenLabsEngine(); + test1.setEngine(testSayElevenLabsEngineObject); + + SayElevenLabs test2 = new SayElevenLabs(); + + test2.setText("TS"); + + test2.setLoop(1); + + test2.setPrivacyMode(true); + + SayElevenLabsEngine testSayElevenLabsEngineObject2 = testSayElevenLabsEngineObject; + test2.setEngine(testSayElevenLabsEngineObject2); + + Assert.assertTrue(test1.equals(test2)); + } + + /** Test the method 'equalsFalse' */ + @Test + public void equalsFalseTest() { + SayElevenLabs test1 = new SayElevenLabs(); + + test1.setText("TS"); + + test1.setLoop(1); + + test1.setPrivacyMode(true); + + SayElevenLabsEngine testSayElevenLabsEngineObject = new SayElevenLabsEngine(); + test1.setEngine(testSayElevenLabsEngineObject); + + SayElevenLabs test2 = new SayElevenLabs(); + + test2.setText("TS2"); + + test2.setLoop(0); + + test2.setPrivacyMode(false); + + SayElevenLabsEngine testSayElevenLabsEngineObject2 = new SayElevenLabsEngine(); + test2.setEngine(testSayElevenLabsEngineObject2); + + Assert.assertFalse(test1.equals(test2)); + } + + /** Test the method 'hashCodeType' */ + @Test + public void hashCodeTypeTest() { + SayElevenLabs test1 = new SayElevenLabs(); + + test1.setText("TS"); + + test1.setLoop(1); + + test1.setPrivacyMode(true); + + SayElevenLabsEngine testSayElevenLabsEngineObject = new SayElevenLabsEngine(); + test1.setEngine(testSayElevenLabsEngineObject); + + int hashCode1 = test1.hashCode(); + Assert.assertTrue(Integer.class.isInstance(hashCode1)); + } + + /** Test the method 'toStringEquals' */ + @Test + public void toStringEqualsTest() { + SayElevenLabs test1 = new SayElevenLabs(); + + test1.setText("TS"); + + test1.setLoop(1); + + test1.setPrivacyMode(true); + + SayElevenLabsEngine testSayElevenLabsEngineObject = new SayElevenLabsEngine(); + test1.setEngine(testSayElevenLabsEngineObject); + + SayElevenLabs test2 = new SayElevenLabs(); + + test2.setText("TS"); + + test2.setLoop(1); + + test2.setPrivacyMode(true); + + SayElevenLabsEngine testSayElevenLabsEngineObject2 = testSayElevenLabsEngineObject; + test2.setEngine(testSayElevenLabsEngineObject2); + + String toString1 = test1.toString(); + String toString2 = test2.toString(); + Assert.assertEquals(toString1, toString2); + } + + /** Test the method 'hashCodeEqualsTrue' */ + @Test + public void hashCodeEqualsTrueTest() { + SayElevenLabs test1 = new SayElevenLabs(); + + test1.setText("TS"); + + test1.setLoop(1); + + test1.setPrivacyMode(true); + + SayElevenLabsEngine testSayElevenLabsEngineObject = new SayElevenLabsEngine(); + test1.setEngine(testSayElevenLabsEngineObject); + + SayElevenLabs test2 = new SayElevenLabs(); + + test2.setText("TS"); + + test2.setLoop(1); + + test2.setPrivacyMode(true); + + SayElevenLabsEngine testSayElevenLabsEngineObject2 = testSayElevenLabsEngineObject; + test2.setEngine(testSayElevenLabsEngineObject2); + + Assert.assertEquals(test1.hashCode(), test2.hashCode()); + } + + /** Test the method 'hashCodeEqualsFalse' */ + @Test + public void hashCodeEqualsFalseTest() { + SayElevenLabs test1 = new SayElevenLabs(); + + test1.setText("TS"); + + test1.setLoop(1); + + test1.setPrivacyMode(true); + + SayElevenLabsEngine testSayElevenLabsEngineObject = new SayElevenLabsEngine(); + test1.setEngine(testSayElevenLabsEngineObject); + + SayElevenLabs test2 = new SayElevenLabs(); + + test2.setText("TS2"); + + test2.setLoop(0); + + test2.setPrivacyMode(false); + + SayElevenLabsEngine testSayElevenLabsEngineObject2 = new SayElevenLabsEngine(); + test2.setEngine(testSayElevenLabsEngineObject2); + + Assert.assertNotEquals(test1.hashCode(), test2.hashCode()); + } + + /** Test the method 'toStringType' */ + @Test + public void toStringTypeTest() { + SayElevenLabs test1 = new SayElevenLabs(); + + test1.setText("TS"); + + test1.setLoop(1); + + test1.setPrivacyMode(true); + + SayElevenLabsEngine testSayElevenLabsEngineObject = new SayElevenLabsEngine(); + test1.setEngine(testSayElevenLabsEngineObject); + + String toString1 = test1.toString(); + Assert.assertTrue(String.class.isInstance(toString1)); + } +} diff --git a/src/test/java/com/github/freeclimbapi/models/SayNeuralEngineParametersTest.java b/src/test/java/com/github/freeclimbapi/models/SayNeuralEngineParametersTest.java new file mode 100644 index 00000000..08460420 --- /dev/null +++ b/src/test/java/com/github/freeclimbapi/models/SayNeuralEngineParametersTest.java @@ -0,0 +1,192 @@ +/* + * FreeClimb API + * FreeClimb is a cloud-based application programming interface (API) that puts the power of the Vail platform in your hands. FreeClimb simplifies the process of creating applications that can use a full range of telephony features without requiring specialized or on-site telephony equipment. Using the FreeClimb REST API to write applications is easy! You have the option to use the language of your choice or hit the API directly. Your application can execute a command by issuing a RESTful request to the FreeClimb API. The base URL to send HTTP requests to the FreeClimb REST API is: /apiserver. FreeClimb authenticates and processes your request. + * + * The version of the OpenAPI document: 1.0.0 + * Contact: support@freeclimb.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +package com.github.freeclimbapi; + +import com.github.freeclimbapi.enums.*; +import com.github.freeclimbapi.models.*; +import java.util.*; +import org.junit.Assert; +import org.junit.Test; + +/** Model tests for SayNeuralEngineParameters */ +public class SayNeuralEngineParametersTest { + + private final SayNeuralEngineParameters model = new SayNeuralEngineParameters(); + + /** Test the property 'voice' */ + @Test + public void voiceTest() { + + model.setVoice("TEST_STRING"); + Assert.assertEquals("TEST_STRING", model.getVoice()); + } + + /** Test the property 'textType' */ + @Test + public void textTypeTest() { + model.setTextType(SayNeuralTextType.TEXT); + Assert.assertEquals(model.getTextType(), SayNeuralTextType.TEXT); + model.setTextType(SayNeuralTextType.SSML); + Assert.assertEquals(model.getTextType(), SayNeuralTextType.SSML); + } + + /** Test the property 'language' */ + @Test + public void languageTest() { + + model.setLanguage("TEST_STRING"); + Assert.assertEquals("TEST_STRING", model.getLanguage()); + } + + /** Test the method 'equalsTrue' */ + @Test + public void equalsTrueTest() { + SayNeuralEngineParameters test1 = new SayNeuralEngineParameters(); + + test1.setVoice("TS"); + + test1.setTextType(SayNeuralTextType.TEXT); + + test1.setLanguage("TS"); + + SayNeuralEngineParameters test2 = new SayNeuralEngineParameters(); + + test2.setVoice("TS"); + + test2.setTextType(SayNeuralTextType.TEXT); + + test2.setLanguage("TS"); + + Assert.assertTrue(test1.equals(test2)); + } + + /** Test the method 'equalsFalse' */ + @Test + public void equalsFalseTest() { + SayNeuralEngineParameters test1 = new SayNeuralEngineParameters(); + + test1.setVoice("TS"); + + test1.setTextType(SayNeuralTextType.SSML); + + test1.setLanguage("TS"); + + SayNeuralEngineParameters test2 = new SayNeuralEngineParameters(); + + test2.setVoice("TS2"); + + test2.setTextType(SayNeuralTextType.TEXT); + + test2.setLanguage("TS2"); + + Assert.assertFalse(test1.equals(test2)); + } + + /** Test the method 'hashCodeType' */ + @Test + public void hashCodeTypeTest() { + SayNeuralEngineParameters test1 = new SayNeuralEngineParameters(); + + test1.setVoice("TS"); + + test1.setTextType(SayNeuralTextType.TEXT); + + test1.setLanguage("TS"); + + int hashCode1 = test1.hashCode(); + Assert.assertTrue(Integer.class.isInstance(hashCode1)); + } + + /** Test the method 'toStringEquals' */ + @Test + public void toStringEqualsTest() { + SayNeuralEngineParameters test1 = new SayNeuralEngineParameters(); + + test1.setVoice("TS"); + + test1.setTextType(SayNeuralTextType.TEXT); + + test1.setLanguage("TS"); + + SayNeuralEngineParameters test2 = new SayNeuralEngineParameters(); + + test2.setVoice("TS"); + + test2.setTextType(SayNeuralTextType.TEXT); + + test2.setLanguage("TS"); + + String toString1 = test1.toString(); + String toString2 = test2.toString(); + Assert.assertEquals(toString1, toString2); + } + + /** Test the method 'hashCodeEqualsTrue' */ + @Test + public void hashCodeEqualsTrueTest() { + SayNeuralEngineParameters test1 = new SayNeuralEngineParameters(); + + test1.setVoice("TS"); + + test1.setTextType(SayNeuralTextType.TEXT); + + test1.setLanguage("TS"); + + SayNeuralEngineParameters test2 = new SayNeuralEngineParameters(); + + test2.setVoice("TS"); + + test2.setTextType(SayNeuralTextType.TEXT); + + test2.setLanguage("TS"); + + Assert.assertEquals(test1.hashCode(), test2.hashCode()); + } + + /** Test the method 'hashCodeEqualsFalse' */ + @Test + public void hashCodeEqualsFalseTest() { + SayNeuralEngineParameters test1 = new SayNeuralEngineParameters(); + + test1.setVoice("TS"); + + test1.setTextType(SayNeuralTextType.SSML); + + test1.setLanguage("TS"); + + SayNeuralEngineParameters test2 = new SayNeuralEngineParameters(); + + test2.setVoice("TS2"); + + test2.setTextType(SayNeuralTextType.TEXT); + + test2.setLanguage("TS2"); + + Assert.assertNotEquals(test1.hashCode(), test2.hashCode()); + } + + /** Test the method 'toStringType' */ + @Test + public void toStringTypeTest() { + SayNeuralEngineParameters test1 = new SayNeuralEngineParameters(); + + test1.setVoice("TS"); + + test1.setTextType(SayNeuralTextType.TEXT); + + test1.setLanguage("TS"); + + String toString1 = test1.toString(); + Assert.assertTrue(String.class.isInstance(toString1)); + } +} diff --git a/src/test/java/com/github/freeclimbapi/models/SayNeuralEngineTest.java b/src/test/java/com/github/freeclimbapi/models/SayNeuralEngineTest.java new file mode 100644 index 00000000..34723280 --- /dev/null +++ b/src/test/java/com/github/freeclimbapi/models/SayNeuralEngineTest.java @@ -0,0 +1,131 @@ +/* + * FreeClimb API + * FreeClimb is a cloud-based application programming interface (API) that puts the power of the Vail platform in your hands. FreeClimb simplifies the process of creating applications that can use a full range of telephony features without requiring specialized or on-site telephony equipment. Using the FreeClimb REST API to write applications is easy! You have the option to use the language of your choice or hit the API directly. Your application can execute a command by issuing a RESTful request to the FreeClimb API. The base URL to send HTTP requests to the FreeClimb REST API is: /apiserver. FreeClimb authenticates and processes your request. + * + * The version of the OpenAPI document: 1.0.0 + * Contact: support@freeclimb.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +package com.github.freeclimbapi; + +import com.github.freeclimbapi.enums.*; +import com.github.freeclimbapi.models.*; +import java.util.*; +import org.junit.Assert; +import org.junit.Test; + +/** Model tests for SayNeuralEngine */ +public class SayNeuralEngineTest { + + private final SayNeuralEngine model = new SayNeuralEngine(); + + /** Test the property 'name' */ + @Test + public void nameTest() { + + model.setName("TEST_STRING"); + Assert.assertEquals("TEST_STRING", model.getName()); + } + + /** Test the property 'parameters' */ + @Test + public void parametersTest() {} + + /** Test the method 'equalsTrue' */ + @Test + public void equalsTrueTest() { + SayNeuralEngine test1 = new SayNeuralEngine(); + + test1.setName("TS"); + + SayNeuralEngine test2 = new SayNeuralEngine(); + + test2.setName("TS"); + + Assert.assertTrue(test1.equals(test2)); + } + + /** Test the method 'equalsFalse' */ + @Test + public void equalsFalseTest() { + SayNeuralEngine test1 = new SayNeuralEngine(); + + test1.setName("TS"); + + SayNeuralEngine test2 = new SayNeuralEngine(); + + test2.setName("TS2"); + + Assert.assertFalse(test1.equals(test2)); + } + + /** Test the method 'hashCodeType' */ + @Test + public void hashCodeTypeTest() { + SayNeuralEngine test1 = new SayNeuralEngine(); + + test1.setName("TS"); + + int hashCode1 = test1.hashCode(); + Assert.assertTrue(Integer.class.isInstance(hashCode1)); + } + + /** Test the method 'toStringEquals' */ + @Test + public void toStringEqualsTest() { + SayNeuralEngine test1 = new SayNeuralEngine(); + + test1.setName("TS"); + + SayNeuralEngine test2 = new SayNeuralEngine(); + + test2.setName("TS"); + + String toString1 = test1.toString(); + String toString2 = test2.toString(); + Assert.assertEquals(toString1, toString2); + } + + /** Test the method 'hashCodeEqualsTrue' */ + @Test + public void hashCodeEqualsTrueTest() { + SayNeuralEngine test1 = new SayNeuralEngine(); + + test1.setName("TS"); + + SayNeuralEngine test2 = new SayNeuralEngine(); + + test2.setName("TS"); + + Assert.assertEquals(test1.hashCode(), test2.hashCode()); + } + + /** Test the method 'hashCodeEqualsFalse' */ + @Test + public void hashCodeEqualsFalseTest() { + SayNeuralEngine test1 = new SayNeuralEngine(); + + test1.setName("TS"); + + SayNeuralEngine test2 = new SayNeuralEngine(); + + test2.setName("TS2"); + + Assert.assertNotEquals(test1.hashCode(), test2.hashCode()); + } + + /** Test the method 'toStringType' */ + @Test + public void toStringTypeTest() { + SayNeuralEngine test1 = new SayNeuralEngine(); + + test1.setName("TS"); + + String toString1 = test1.toString(); + Assert.assertTrue(String.class.isInstance(toString1)); + } +} diff --git a/src/test/java/com/github/freeclimbapi/models/SayNeuralTest.java b/src/test/java/com/github/freeclimbapi/models/SayNeuralTest.java new file mode 100644 index 00000000..246bae56 --- /dev/null +++ b/src/test/java/com/github/freeclimbapi/models/SayNeuralTest.java @@ -0,0 +1,235 @@ +/* + * FreeClimb API + * FreeClimb is a cloud-based application programming interface (API) that puts the power of the Vail platform in your hands. FreeClimb simplifies the process of creating applications that can use a full range of telephony features without requiring specialized or on-site telephony equipment. Using the FreeClimb REST API to write applications is easy! You have the option to use the language of your choice or hit the API directly. Your application can execute a command by issuing a RESTful request to the FreeClimb API. The base URL to send HTTP requests to the FreeClimb REST API is: /apiserver. FreeClimb authenticates and processes your request. + * + * The version of the OpenAPI document: 1.0.0 + * Contact: support@freeclimb.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +package com.github.freeclimbapi; + +import com.github.freeclimbapi.enums.*; +import com.github.freeclimbapi.models.*; +import java.util.*; +import org.junit.Assert; +import org.junit.Test; + +/** Model tests for SayNeural */ +public class SayNeuralTest { + + private final SayNeural model = new SayNeural(); + + /** Test the property 'text' */ + @Test + public void textTest() { + + model.setText("TEST_STRING"); + Assert.assertEquals("TEST_STRING", model.getText()); + } + + /** Test the property 'loop' */ + @Test + public void loopTest() { + + model.setLoop(1); + Assert.assertEquals(1, (int) model.getLoop()); + } + + /** Test the property 'privacyMode' */ + @Test + public void privacyModeTest() { + model.setPrivacyMode(false); + Assert.assertEquals(false, model.getPrivacyMode()); + } + + /** Test the property 'engine' */ + @Test + public void engineTest() { + + SayNeuralEngine object = new SayNeuralEngine(); + model.setEngine(object); + Assert.assertEquals(object.getClass(), SayNeuralEngine.class); + } + + /** Test the method 'equalsTrue' */ + @Test + public void equalsTrueTest() { + SayNeural test1 = new SayNeural(); + + test1.setText("TS"); + + test1.setLoop(1); + + test1.setPrivacyMode(true); + + SayNeuralEngine testSayNeuralEngineObject = new SayNeuralEngine(); + test1.setEngine(testSayNeuralEngineObject); + + SayNeural test2 = new SayNeural(); + + test2.setText("TS"); + + test2.setLoop(1); + + test2.setPrivacyMode(true); + + SayNeuralEngine testSayNeuralEngineObject2 = testSayNeuralEngineObject; + test2.setEngine(testSayNeuralEngineObject2); + + Assert.assertTrue(test1.equals(test2)); + } + + /** Test the method 'equalsFalse' */ + @Test + public void equalsFalseTest() { + SayNeural test1 = new SayNeural(); + + test1.setText("TS"); + + test1.setLoop(1); + + test1.setPrivacyMode(true); + + SayNeuralEngine testSayNeuralEngineObject = new SayNeuralEngine(); + test1.setEngine(testSayNeuralEngineObject); + + SayNeural test2 = new SayNeural(); + + test2.setText("TS2"); + + test2.setLoop(0); + + test2.setPrivacyMode(false); + + SayNeuralEngine testSayNeuralEngineObject2 = new SayNeuralEngine(); + test2.setEngine(testSayNeuralEngineObject2); + + Assert.assertFalse(test1.equals(test2)); + } + + /** Test the method 'hashCodeType' */ + @Test + public void hashCodeTypeTest() { + SayNeural test1 = new SayNeural(); + + test1.setText("TS"); + + test1.setLoop(1); + + test1.setPrivacyMode(true); + + SayNeuralEngine testSayNeuralEngineObject = new SayNeuralEngine(); + test1.setEngine(testSayNeuralEngineObject); + + int hashCode1 = test1.hashCode(); + Assert.assertTrue(Integer.class.isInstance(hashCode1)); + } + + /** Test the method 'toStringEquals' */ + @Test + public void toStringEqualsTest() { + SayNeural test1 = new SayNeural(); + + test1.setText("TS"); + + test1.setLoop(1); + + test1.setPrivacyMode(true); + + SayNeuralEngine testSayNeuralEngineObject = new SayNeuralEngine(); + test1.setEngine(testSayNeuralEngineObject); + + SayNeural test2 = new SayNeural(); + + test2.setText("TS"); + + test2.setLoop(1); + + test2.setPrivacyMode(true); + + SayNeuralEngine testSayNeuralEngineObject2 = testSayNeuralEngineObject; + test2.setEngine(testSayNeuralEngineObject2); + + String toString1 = test1.toString(); + String toString2 = test2.toString(); + Assert.assertEquals(toString1, toString2); + } + + /** Test the method 'hashCodeEqualsTrue' */ + @Test + public void hashCodeEqualsTrueTest() { + SayNeural test1 = new SayNeural(); + + test1.setText("TS"); + + test1.setLoop(1); + + test1.setPrivacyMode(true); + + SayNeuralEngine testSayNeuralEngineObject = new SayNeuralEngine(); + test1.setEngine(testSayNeuralEngineObject); + + SayNeural test2 = new SayNeural(); + + test2.setText("TS"); + + test2.setLoop(1); + + test2.setPrivacyMode(true); + + SayNeuralEngine testSayNeuralEngineObject2 = testSayNeuralEngineObject; + test2.setEngine(testSayNeuralEngineObject2); + + Assert.assertEquals(test1.hashCode(), test2.hashCode()); + } + + /** Test the method 'hashCodeEqualsFalse' */ + @Test + public void hashCodeEqualsFalseTest() { + SayNeural test1 = new SayNeural(); + + test1.setText("TS"); + + test1.setLoop(1); + + test1.setPrivacyMode(true); + + SayNeuralEngine testSayNeuralEngineObject = new SayNeuralEngine(); + test1.setEngine(testSayNeuralEngineObject); + + SayNeural test2 = new SayNeural(); + + test2.setText("TS2"); + + test2.setLoop(0); + + test2.setPrivacyMode(false); + + SayNeuralEngine testSayNeuralEngineObject2 = new SayNeuralEngine(); + test2.setEngine(testSayNeuralEngineObject2); + + Assert.assertNotEquals(test1.hashCode(), test2.hashCode()); + } + + /** Test the method 'toStringType' */ + @Test + public void toStringTypeTest() { + SayNeural test1 = new SayNeural(); + + test1.setText("TS"); + + test1.setLoop(1); + + test1.setPrivacyMode(true); + + SayNeuralEngine testSayNeuralEngineObject = new SayNeuralEngine(); + test1.setEngine(testSayNeuralEngineObject); + + String toString1 = test1.toString(); + Assert.assertTrue(String.class.isInstance(toString1)); + } +} diff --git a/src/test/java/com/github/freeclimbapi/models/SayStandardEngineTest.java b/src/test/java/com/github/freeclimbapi/models/SayStandardEngineTest.java new file mode 100644 index 00000000..87610288 --- /dev/null +++ b/src/test/java/com/github/freeclimbapi/models/SayStandardEngineTest.java @@ -0,0 +1,322 @@ +/* + * FreeClimb API + * FreeClimb is a cloud-based application programming interface (API) that puts the power of the Vail platform in your hands. FreeClimb simplifies the process of creating applications that can use a full range of telephony features without requiring specialized or on-site telephony equipment. Using the FreeClimb REST API to write applications is easy! You have the option to use the language of your choice or hit the API directly. Your application can execute a command by issuing a RESTful request to the FreeClimb API. The base URL to send HTTP requests to the FreeClimb REST API is: /apiserver. FreeClimb authenticates and processes your request. + * + * The version of the OpenAPI document: 1.0.0 + * Contact: support@freeclimb.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +package com.github.freeclimbapi; + +import com.github.freeclimbapi.enums.*; +import com.github.freeclimbapi.models.*; +import java.util.*; +import org.junit.Assert; +import org.junit.Test; + +/** Model tests for SayStandardEngine */ +public class SayStandardEngineTest { + + private final SayStandardEngine model = new SayStandardEngine(); + + /** Test the property 'name' */ + @Test + public void nameTest() { + + model.setName("TEST_STRING"); + Assert.assertEquals("TEST_STRING", model.getName()); + } + + /** Test the property 'voice' */ + @Test + public void voiceTest() { + model.setVoice(SayStandardVoice.HERENA); + Assert.assertEquals(model.getVoice(), SayStandardVoice.HERENA); + model.setVoice(SayStandardVoice.HELLE); + Assert.assertEquals(model.getVoice(), SayStandardVoice.HELLE); + model.setVoice(SayStandardVoice.HEDDA); + Assert.assertEquals(model.getVoice(), SayStandardVoice.HEDDA); + model.setVoice(SayStandardVoice.HAYLEY); + Assert.assertEquals(model.getVoice(), SayStandardVoice.HAYLEY); + model.setVoice(SayStandardVoice.HEATHER); + Assert.assertEquals(model.getVoice(), SayStandardVoice.HEATHER); + model.setVoice(SayStandardVoice.HAZEL); + Assert.assertEquals(model.getVoice(), SayStandardVoice.HAZEL); + model.setVoice(SayStandardVoice.HEERA); + Assert.assertEquals(model.getVoice(), SayStandardVoice.HEERA); + model.setVoice(SayStandardVoice.HELEN); + Assert.assertEquals(model.getVoice(), SayStandardVoice.HELEN); + model.setVoice(SayStandardVoice.ZIRA_PRO); + Assert.assertEquals(model.getVoice(), SayStandardVoice.ZIRA_PRO); + model.setVoice(SayStandardVoice.HELENA); + Assert.assertEquals(model.getVoice(), SayStandardVoice.HELENA); + model.setVoice(SayStandardVoice.HILDA); + Assert.assertEquals(model.getVoice(), SayStandardVoice.HILDA); + model.setVoice(SayStandardVoice.HEIDI); + Assert.assertEquals(model.getVoice(), SayStandardVoice.HEIDI); + model.setVoice(SayStandardVoice.HARMONIE); + Assert.assertEquals(model.getVoice(), SayStandardVoice.HARMONIE); + model.setVoice(SayStandardVoice.HORTENSE); + Assert.assertEquals(model.getVoice(), SayStandardVoice.HORTENSE); + model.setVoice(SayStandardVoice.LUCIA); + Assert.assertEquals(model.getVoice(), SayStandardVoice.LUCIA); + model.setVoice(SayStandardVoice.HARKUA); + Assert.assertEquals(model.getVoice(), SayStandardVoice.HARKUA); + model.setVoice(SayStandardVoice.HEAMI); + Assert.assertEquals(model.getVoice(), SayStandardVoice.HEAMI); + model.setVoice(SayStandardVoice.HULDA); + Assert.assertEquals(model.getVoice(), SayStandardVoice.HULDA); + model.setVoice(SayStandardVoice.HANNA); + Assert.assertEquals(model.getVoice(), SayStandardVoice.HANNA); + model.setVoice(SayStandardVoice.PAULINA); + Assert.assertEquals(model.getVoice(), SayStandardVoice.PAULINA); + model.setVoice(SayStandardVoice.HELOSIA); + Assert.assertEquals(model.getVoice(), SayStandardVoice.HELOSIA); + model.setVoice(SayStandardVoice.HELIA); + Assert.assertEquals(model.getVoice(), SayStandardVoice.HELIA); + model.setVoice(SayStandardVoice.ELENA); + Assert.assertEquals(model.getVoice(), SayStandardVoice.ELENA); + model.setVoice(SayStandardVoice.HEDVIG); + Assert.assertEquals(model.getVoice(), SayStandardVoice.HEDVIG); + model.setVoice(SayStandardVoice.HUN_YEE); + Assert.assertEquals(model.getVoice(), SayStandardVoice.HUN_YEE); + model.setVoice(SayStandardVoice.HAN_HAN); + Assert.assertEquals(model.getVoice(), SayStandardVoice.HAN_HAN); + } + + /** Test the property 'culture' */ + @Test + public void cultureTest() { + model.setCulture(SayStandardCulture.CA_ES); + Assert.assertEquals(model.getCulture(), SayStandardCulture.CA_ES); + model.setCulture(SayStandardCulture.DA_DK); + Assert.assertEquals(model.getCulture(), SayStandardCulture.DA_DK); + model.setCulture(SayStandardCulture.DE_DE); + Assert.assertEquals(model.getCulture(), SayStandardCulture.DE_DE); + model.setCulture(SayStandardCulture.EN_AU); + Assert.assertEquals(model.getCulture(), SayStandardCulture.EN_AU); + model.setCulture(SayStandardCulture.EN_CA); + Assert.assertEquals(model.getCulture(), SayStandardCulture.EN_CA); + model.setCulture(SayStandardCulture.EN_GB); + Assert.assertEquals(model.getCulture(), SayStandardCulture.EN_GB); + model.setCulture(SayStandardCulture.EN_IN); + Assert.assertEquals(model.getCulture(), SayStandardCulture.EN_IN); + model.setCulture(SayStandardCulture.EN_US); + Assert.assertEquals(model.getCulture(), SayStandardCulture.EN_US); + model.setCulture(SayStandardCulture.ES_ES); + Assert.assertEquals(model.getCulture(), SayStandardCulture.ES_ES); + model.setCulture(SayStandardCulture.ES_MX); + Assert.assertEquals(model.getCulture(), SayStandardCulture.ES_MX); + model.setCulture(SayStandardCulture.FI_FI); + Assert.assertEquals(model.getCulture(), SayStandardCulture.FI_FI); + model.setCulture(SayStandardCulture.FR_CA); + Assert.assertEquals(model.getCulture(), SayStandardCulture.FR_CA); + model.setCulture(SayStandardCulture.FR_FR); + Assert.assertEquals(model.getCulture(), SayStandardCulture.FR_FR); + model.setCulture(SayStandardCulture.IT_IT); + Assert.assertEquals(model.getCulture(), SayStandardCulture.IT_IT); + model.setCulture(SayStandardCulture.JA_JP); + Assert.assertEquals(model.getCulture(), SayStandardCulture.JA_JP); + model.setCulture(SayStandardCulture.KO_KR); + Assert.assertEquals(model.getCulture(), SayStandardCulture.KO_KR); + model.setCulture(SayStandardCulture.NB_NO); + Assert.assertEquals(model.getCulture(), SayStandardCulture.NB_NO); + model.setCulture(SayStandardCulture.NL_NL); + Assert.assertEquals(model.getCulture(), SayStandardCulture.NL_NL); + model.setCulture(SayStandardCulture.PL_PL); + Assert.assertEquals(model.getCulture(), SayStandardCulture.PL_PL); + model.setCulture(SayStandardCulture.PT_BR); + Assert.assertEquals(model.getCulture(), SayStandardCulture.PT_BR); + model.setCulture(SayStandardCulture.PT_PT); + Assert.assertEquals(model.getCulture(), SayStandardCulture.PT_PT); + model.setCulture(SayStandardCulture.RU_RU); + Assert.assertEquals(model.getCulture(), SayStandardCulture.RU_RU); + model.setCulture(SayStandardCulture.SV_SE); + Assert.assertEquals(model.getCulture(), SayStandardCulture.SV_SE); + model.setCulture(SayStandardCulture.ZH_CN); + Assert.assertEquals(model.getCulture(), SayStandardCulture.ZH_CN); + model.setCulture(SayStandardCulture.ZH_HK); + Assert.assertEquals(model.getCulture(), SayStandardCulture.ZH_HK); + model.setCulture(SayStandardCulture.ZH_TW); + Assert.assertEquals(model.getCulture(), SayStandardCulture.ZH_TW); + } + + /** Test the property 'contentType' */ + @Test + public void contentTypeTest() { + model.setContentType(SayStandardContentType.TEXT_PLAIN); + Assert.assertEquals(model.getContentType(), SayStandardContentType.TEXT_PLAIN); + model.setContentType(SayStandardContentType.APPLICATION_SSML_XML); + Assert.assertEquals(model.getContentType(), SayStandardContentType.APPLICATION_SSML_XML); + } + + /** Test the method 'equalsTrue' */ + @Test + public void equalsTrueTest() { + SayStandardEngine test1 = new SayStandardEngine(); + + test1.setName("TS"); + + test1.setVoice(SayStandardVoice.HERENA); + + test1.setCulture(SayStandardCulture.CA_ES); + + test1.setContentType(SayStandardContentType.TEXT_PLAIN); + + SayStandardEngine test2 = new SayStandardEngine(); + + test2.setName("TS"); + + test2.setVoice(SayStandardVoice.HERENA); + + test2.setCulture(SayStandardCulture.CA_ES); + + test2.setContentType(SayStandardContentType.TEXT_PLAIN); + + Assert.assertTrue(test1.equals(test2)); + } + + /** Test the method 'equalsFalse' */ + @Test + public void equalsFalseTest() { + SayStandardEngine test1 = new SayStandardEngine(); + + test1.setName("TS"); + + test1.setVoice(SayStandardVoice.HELLE); + + test1.setCulture(SayStandardCulture.DA_DK); + + test1.setContentType(SayStandardContentType.APPLICATION_SSML_XML); + + SayStandardEngine test2 = new SayStandardEngine(); + + test2.setName("TS2"); + + test2.setVoice(SayStandardVoice.HERENA); + + test2.setCulture(SayStandardCulture.CA_ES); + + test2.setContentType(SayStandardContentType.TEXT_PLAIN); + + Assert.assertFalse(test1.equals(test2)); + } + + /** Test the method 'hashCodeType' */ + @Test + public void hashCodeTypeTest() { + SayStandardEngine test1 = new SayStandardEngine(); + + test1.setName("TS"); + + test1.setVoice(SayStandardVoice.HERENA); + + test1.setCulture(SayStandardCulture.CA_ES); + + test1.setContentType(SayStandardContentType.TEXT_PLAIN); + + int hashCode1 = test1.hashCode(); + Assert.assertTrue(Integer.class.isInstance(hashCode1)); + } + + /** Test the method 'toStringEquals' */ + @Test + public void toStringEqualsTest() { + SayStandardEngine test1 = new SayStandardEngine(); + + test1.setName("TS"); + + test1.setVoice(SayStandardVoice.HERENA); + + test1.setCulture(SayStandardCulture.CA_ES); + + test1.setContentType(SayStandardContentType.TEXT_PLAIN); + + SayStandardEngine test2 = new SayStandardEngine(); + + test2.setName("TS"); + + test2.setVoice(SayStandardVoice.HERENA); + + test2.setCulture(SayStandardCulture.CA_ES); + + test2.setContentType(SayStandardContentType.TEXT_PLAIN); + + String toString1 = test1.toString(); + String toString2 = test2.toString(); + Assert.assertEquals(toString1, toString2); + } + + /** Test the method 'hashCodeEqualsTrue' */ + @Test + public void hashCodeEqualsTrueTest() { + SayStandardEngine test1 = new SayStandardEngine(); + + test1.setName("TS"); + + test1.setVoice(SayStandardVoice.HERENA); + + test1.setCulture(SayStandardCulture.CA_ES); + + test1.setContentType(SayStandardContentType.TEXT_PLAIN); + + SayStandardEngine test2 = new SayStandardEngine(); + + test2.setName("TS"); + + test2.setVoice(SayStandardVoice.HERENA); + + test2.setCulture(SayStandardCulture.CA_ES); + + test2.setContentType(SayStandardContentType.TEXT_PLAIN); + + Assert.assertEquals(test1.hashCode(), test2.hashCode()); + } + + /** Test the method 'hashCodeEqualsFalse' */ + @Test + public void hashCodeEqualsFalseTest() { + SayStandardEngine test1 = new SayStandardEngine(); + + test1.setName("TS"); + + test1.setVoice(SayStandardVoice.HELLE); + + test1.setCulture(SayStandardCulture.DA_DK); + + test1.setContentType(SayStandardContentType.APPLICATION_SSML_XML); + + SayStandardEngine test2 = new SayStandardEngine(); + + test2.setName("TS2"); + + test2.setVoice(SayStandardVoice.HERENA); + + test2.setCulture(SayStandardCulture.CA_ES); + + test2.setContentType(SayStandardContentType.TEXT_PLAIN); + + Assert.assertNotEquals(test1.hashCode(), test2.hashCode()); + } + + /** Test the method 'toStringType' */ + @Test + public void toStringTypeTest() { + SayStandardEngine test1 = new SayStandardEngine(); + + test1.setName("TS"); + + test1.setVoice(SayStandardVoice.HERENA); + + test1.setCulture(SayStandardCulture.CA_ES); + + test1.setContentType(SayStandardContentType.TEXT_PLAIN); + + String toString1 = test1.toString(); + Assert.assertTrue(String.class.isInstance(toString1)); + } +} diff --git a/src/test/java/com/github/freeclimbapi/models/SayStandardTest.java b/src/test/java/com/github/freeclimbapi/models/SayStandardTest.java new file mode 100644 index 00000000..7a589b22 --- /dev/null +++ b/src/test/java/com/github/freeclimbapi/models/SayStandardTest.java @@ -0,0 +1,235 @@ +/* + * FreeClimb API + * FreeClimb is a cloud-based application programming interface (API) that puts the power of the Vail platform in your hands. FreeClimb simplifies the process of creating applications that can use a full range of telephony features without requiring specialized or on-site telephony equipment. Using the FreeClimb REST API to write applications is easy! You have the option to use the language of your choice or hit the API directly. Your application can execute a command by issuing a RESTful request to the FreeClimb API. The base URL to send HTTP requests to the FreeClimb REST API is: /apiserver. FreeClimb authenticates and processes your request. + * + * The version of the OpenAPI document: 1.0.0 + * Contact: support@freeclimb.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +package com.github.freeclimbapi; + +import com.github.freeclimbapi.enums.*; +import com.github.freeclimbapi.models.*; +import java.util.*; +import org.junit.Assert; +import org.junit.Test; + +/** Model tests for SayStandard */ +public class SayStandardTest { + + private final SayStandard model = new SayStandard(); + + /** Test the property 'text' */ + @Test + public void textTest() { + + model.setText("TEST_STRING"); + Assert.assertEquals("TEST_STRING", model.getText()); + } + + /** Test the property 'loop' */ + @Test + public void loopTest() { + + model.setLoop(1); + Assert.assertEquals(1, (int) model.getLoop()); + } + + /** Test the property 'privacyMode' */ + @Test + public void privacyModeTest() { + model.setPrivacyMode(false); + Assert.assertEquals(false, model.getPrivacyMode()); + } + + /** Test the property 'engine' */ + @Test + public void engineTest() { + + SayStandardEngine object = new SayStandardEngine(); + model.setEngine(object); + Assert.assertEquals(object.getClass(), SayStandardEngine.class); + } + + /** Test the method 'equalsTrue' */ + @Test + public void equalsTrueTest() { + SayStandard test1 = new SayStandard(); + + test1.setText("TS"); + + test1.setLoop(1); + + test1.setPrivacyMode(true); + + SayStandardEngine testSayStandardEngineObject = new SayStandardEngine(); + test1.setEngine(testSayStandardEngineObject); + + SayStandard test2 = new SayStandard(); + + test2.setText("TS"); + + test2.setLoop(1); + + test2.setPrivacyMode(true); + + SayStandardEngine testSayStandardEngineObject2 = testSayStandardEngineObject; + test2.setEngine(testSayStandardEngineObject2); + + Assert.assertTrue(test1.equals(test2)); + } + + /** Test the method 'equalsFalse' */ + @Test + public void equalsFalseTest() { + SayStandard test1 = new SayStandard(); + + test1.setText("TS"); + + test1.setLoop(1); + + test1.setPrivacyMode(true); + + SayStandardEngine testSayStandardEngineObject = new SayStandardEngine(); + test1.setEngine(testSayStandardEngineObject); + + SayStandard test2 = new SayStandard(); + + test2.setText("TS2"); + + test2.setLoop(0); + + test2.setPrivacyMode(false); + + SayStandardEngine testSayStandardEngineObject2 = new SayStandardEngine(); + test2.setEngine(testSayStandardEngineObject2); + + Assert.assertFalse(test1.equals(test2)); + } + + /** Test the method 'hashCodeType' */ + @Test + public void hashCodeTypeTest() { + SayStandard test1 = new SayStandard(); + + test1.setText("TS"); + + test1.setLoop(1); + + test1.setPrivacyMode(true); + + SayStandardEngine testSayStandardEngineObject = new SayStandardEngine(); + test1.setEngine(testSayStandardEngineObject); + + int hashCode1 = test1.hashCode(); + Assert.assertTrue(Integer.class.isInstance(hashCode1)); + } + + /** Test the method 'toStringEquals' */ + @Test + public void toStringEqualsTest() { + SayStandard test1 = new SayStandard(); + + test1.setText("TS"); + + test1.setLoop(1); + + test1.setPrivacyMode(true); + + SayStandardEngine testSayStandardEngineObject = new SayStandardEngine(); + test1.setEngine(testSayStandardEngineObject); + + SayStandard test2 = new SayStandard(); + + test2.setText("TS"); + + test2.setLoop(1); + + test2.setPrivacyMode(true); + + SayStandardEngine testSayStandardEngineObject2 = testSayStandardEngineObject; + test2.setEngine(testSayStandardEngineObject2); + + String toString1 = test1.toString(); + String toString2 = test2.toString(); + Assert.assertEquals(toString1, toString2); + } + + /** Test the method 'hashCodeEqualsTrue' */ + @Test + public void hashCodeEqualsTrueTest() { + SayStandard test1 = new SayStandard(); + + test1.setText("TS"); + + test1.setLoop(1); + + test1.setPrivacyMode(true); + + SayStandardEngine testSayStandardEngineObject = new SayStandardEngine(); + test1.setEngine(testSayStandardEngineObject); + + SayStandard test2 = new SayStandard(); + + test2.setText("TS"); + + test2.setLoop(1); + + test2.setPrivacyMode(true); + + SayStandardEngine testSayStandardEngineObject2 = testSayStandardEngineObject; + test2.setEngine(testSayStandardEngineObject2); + + Assert.assertEquals(test1.hashCode(), test2.hashCode()); + } + + /** Test the method 'hashCodeEqualsFalse' */ + @Test + public void hashCodeEqualsFalseTest() { + SayStandard test1 = new SayStandard(); + + test1.setText("TS"); + + test1.setLoop(1); + + test1.setPrivacyMode(true); + + SayStandardEngine testSayStandardEngineObject = new SayStandardEngine(); + test1.setEngine(testSayStandardEngineObject); + + SayStandard test2 = new SayStandard(); + + test2.setText("TS2"); + + test2.setLoop(0); + + test2.setPrivacyMode(false); + + SayStandardEngine testSayStandardEngineObject2 = new SayStandardEngine(); + test2.setEngine(testSayStandardEngineObject2); + + Assert.assertNotEquals(test1.hashCode(), test2.hashCode()); + } + + /** Test the method 'toStringType' */ + @Test + public void toStringTypeTest() { + SayStandard test1 = new SayStandard(); + + test1.setText("TS"); + + test1.setLoop(1); + + test1.setPrivacyMode(true); + + SayStandardEngine testSayStandardEngineObject = new SayStandardEngine(); + test1.setEngine(testSayStandardEngineObject); + + String toString1 = test1.toString(); + Assert.assertTrue(String.class.isInstance(toString1)); + } +} diff --git a/src/test/java/com/github/freeclimbapi/models/SayTest.java b/src/test/java/com/github/freeclimbapi/models/SayTest.java index 78cf9826..cea59267 100644 --- a/src/test/java/com/github/freeclimbapi/models/SayTest.java +++ b/src/test/java/com/github/freeclimbapi/models/SayTest.java @@ -32,14 +32,6 @@ public void textTest() { Assert.assertEquals("TEST_STRING", model.getText()); } - /** Test the property 'language' */ - @Test - public void languageTest() { - - model.setLanguage("TEST_STRING"); - Assert.assertEquals("TEST_STRING", model.getLanguage()); - } - /** Test the property 'loop' */ @Test public void loopTest() { @@ -55,6 +47,23 @@ public void privacyModeTest() { Assert.assertEquals(false, model.getPrivacyMode()); } + /** Test the property 'engine' */ + @Test + public void engineTest() { + + SayStandardEngine object = new SayStandardEngine(); + model.setEngine(object); + Assert.assertEquals(object.getClass(), SayStandardEngine.class); + } + + /** Test the property 'language' */ + @Test + public void languageTest() { + + model.setLanguage("TEST_STRING"); + Assert.assertEquals("TEST_STRING", model.getLanguage()); + } + /** Test the method 'equalsTrue' */ @Test public void equalsTrueTest() { @@ -62,22 +71,28 @@ public void equalsTrueTest() { test1.setText("TS"); - test1.setLanguage("TS"); - test1.setLoop(1); test1.setPrivacyMode(true); + SayStandardEngine testSayStandardEngineObject = new SayStandardEngine(); + test1.setEngine(testSayStandardEngineObject); + + test1.setLanguage("TS"); + Say test2 = new Say(); test2.setText("TS"); - test2.setLanguage("TS"); - test2.setLoop(1); test2.setPrivacyMode(true); + SayStandardEngine testSayStandardEngineObject2 = testSayStandardEngineObject; + test2.setEngine(testSayStandardEngineObject2); + + test2.setLanguage("TS"); + Assert.assertTrue(test1.equals(test2)); } @@ -88,22 +103,28 @@ public void equalsFalseTest() { test1.setText("TS"); - test1.setLanguage("TS"); - test1.setLoop(1); test1.setPrivacyMode(true); + SayStandardEngine testSayStandardEngineObject = new SayStandardEngine(); + test1.setEngine(testSayStandardEngineObject); + + test1.setLanguage("TS"); + Say test2 = new Say(); test2.setText("TS2"); - test2.setLanguage("TS2"); - test2.setLoop(0); test2.setPrivacyMode(false); + SayStandardEngine testSayStandardEngineObject2 = new SayStandardEngine(); + test2.setEngine(testSayStandardEngineObject2); + + test2.setLanguage("TS2"); + Assert.assertFalse(test1.equals(test2)); } @@ -114,12 +135,15 @@ public void hashCodeTypeTest() { test1.setText("TS"); - test1.setLanguage("TS"); - test1.setLoop(1); test1.setPrivacyMode(true); + SayStandardEngine testSayStandardEngineObject = new SayStandardEngine(); + test1.setEngine(testSayStandardEngineObject); + + test1.setLanguage("TS"); + int hashCode1 = test1.hashCode(); Assert.assertTrue(Integer.class.isInstance(hashCode1)); } @@ -131,22 +155,28 @@ public void toStringEqualsTest() { test1.setText("TS"); - test1.setLanguage("TS"); - test1.setLoop(1); test1.setPrivacyMode(true); + SayStandardEngine testSayStandardEngineObject = new SayStandardEngine(); + test1.setEngine(testSayStandardEngineObject); + + test1.setLanguage("TS"); + Say test2 = new Say(); test2.setText("TS"); - test2.setLanguage("TS"); - test2.setLoop(1); test2.setPrivacyMode(true); + SayStandardEngine testSayStandardEngineObject2 = testSayStandardEngineObject; + test2.setEngine(testSayStandardEngineObject2); + + test2.setLanguage("TS"); + String toString1 = test1.toString(); String toString2 = test2.toString(); Assert.assertEquals(toString1, toString2); @@ -159,22 +189,28 @@ public void hashCodeEqualsTrueTest() { test1.setText("TS"); - test1.setLanguage("TS"); - test1.setLoop(1); test1.setPrivacyMode(true); + SayStandardEngine testSayStandardEngineObject = new SayStandardEngine(); + test1.setEngine(testSayStandardEngineObject); + + test1.setLanguage("TS"); + Say test2 = new Say(); test2.setText("TS"); - test2.setLanguage("TS"); - test2.setLoop(1); test2.setPrivacyMode(true); + SayStandardEngine testSayStandardEngineObject2 = testSayStandardEngineObject; + test2.setEngine(testSayStandardEngineObject2); + + test2.setLanguage("TS"); + Assert.assertEquals(test1.hashCode(), test2.hashCode()); } @@ -185,22 +221,28 @@ public void hashCodeEqualsFalseTest() { test1.setText("TS"); - test1.setLanguage("TS"); - test1.setLoop(1); test1.setPrivacyMode(true); + SayStandardEngine testSayStandardEngineObject = new SayStandardEngine(); + test1.setEngine(testSayStandardEngineObject); + + test1.setLanguage("TS"); + Say test2 = new Say(); test2.setText("TS2"); - test2.setLanguage("TS2"); - test2.setLoop(0); test2.setPrivacyMode(false); + SayStandardEngine testSayStandardEngineObject2 = new SayStandardEngine(); + test2.setEngine(testSayStandardEngineObject2); + + test2.setLanguage("TS2"); + Assert.assertNotEquals(test1.hashCode(), test2.hashCode()); } @@ -211,12 +253,15 @@ public void toStringTypeTest() { test1.setText("TS"); - test1.setLanguage("TS"); - test1.setLoop(1); test1.setPrivacyMode(true); + SayStandardEngine testSayStandardEngineObject = new SayStandardEngine(); + test1.setEngine(testSayStandardEngineObject); + + test1.setLanguage("TS"); + String toString1 = test1.toString(); Assert.assertTrue(String.class.isInstance(toString1)); } @@ -232,15 +277,17 @@ public void buildTest() throws Exception { model.setText("TEST_STRING"); Assert.assertEquals("TEST_STRING", model.getText()); + model.setPrivacyMode(false); + model.setLanguage("TEST_STRING"); Assert.assertEquals("TEST_STRING", model.getLanguage()); - model.setPrivacyMode(false); Map> build = model.build(); Map attributes = build.get(model.getCommand()); Assert.assertEquals(attributes.get("text"), model.getText()); - Assert.assertEquals(attributes.get("language"), model.getLanguage()); Assert.assertEquals(attributes.get("loop"), model.getLoop()); Assert.assertEquals(attributes.get("privacyMode"), model.getPrivacyMode()); + Assert.assertEquals(attributes.get("engine"), model.getEngine()); + Assert.assertEquals(attributes.get("language"), model.getLanguage()); } } diff --git a/src/test/java/com/github/freeclimbapi/models/TranscribeUtteranceTest.java b/src/test/java/com/github/freeclimbapi/models/TranscribeUtteranceTest.java index 5d511f68..d5740887 100644 --- a/src/test/java/com/github/freeclimbapi/models/TranscribeUtteranceTest.java +++ b/src/test/java/com/github/freeclimbapi/models/TranscribeUtteranceTest.java @@ -102,8 +102,8 @@ public void equalsTrueTest() { test1.setPrivacyForRecording(true); - List testList = new ArrayList(); - test1.setPrompts(testList); + List testsetPromptsList = new ArrayList(); + test1.setPrompts(testsetPromptsList); TranscribeUtterance test2 = new TranscribeUtterance(); try { @@ -124,8 +124,8 @@ public void equalsTrueTest() { test2.setPrivacyForRecording(true); - List testList2 = testList; - test2.setPrompts(testList2); + List testsetPromptsList2 = testsetPromptsList; + test2.setPrompts(testsetPromptsList2); Assert.assertTrue(test1.equals(test2)); } @@ -153,8 +153,8 @@ public void equalsFalseTest() { test1.setPrivacyForRecording(true); - List testList = new ArrayList(); - test1.setPrompts(testList); + List testsetPromptsList = new ArrayList(); + test1.setPrompts(testsetPromptsList); TranscribeUtterance test2 = new TranscribeUtterance(); try { @@ -175,8 +175,8 @@ public void equalsFalseTest() { test2.setPrivacyForRecording(false); - List testList2 = null; - test2.setPrompts(testList2); + List testsetPromptsList2 = null; + test2.setPrompts(testsetPromptsList2); Assert.assertFalse(test1.equals(test2)); } @@ -204,8 +204,8 @@ public void hashCodeTypeTest() { test1.setPrivacyForRecording(true); - List testList = new ArrayList(); - test1.setPrompts(testList); + List testsetPromptsList = new ArrayList(); + test1.setPrompts(testsetPromptsList); int hashCode1 = test1.hashCode(); Assert.assertTrue(Integer.class.isInstance(hashCode1)); @@ -234,8 +234,8 @@ public void toStringEqualsTest() { test1.setPrivacyForRecording(true); - List testList = new ArrayList(); - test1.setPrompts(testList); + List testsetPromptsList = new ArrayList(); + test1.setPrompts(testsetPromptsList); TranscribeUtterance test2 = new TranscribeUtterance(); try { @@ -256,8 +256,8 @@ public void toStringEqualsTest() { test2.setPrivacyForRecording(true); - List testList2 = testList; - test2.setPrompts(testList2); + List testsetPromptsList2 = testsetPromptsList; + test2.setPrompts(testsetPromptsList2); String toString1 = test1.toString(); String toString2 = test2.toString(); @@ -287,8 +287,8 @@ public void hashCodeEqualsTrueTest() { test1.setPrivacyForRecording(true); - List testList = new ArrayList(); - test1.setPrompts(testList); + List testsetPromptsList = new ArrayList(); + test1.setPrompts(testsetPromptsList); TranscribeUtterance test2 = new TranscribeUtterance(); try { @@ -309,8 +309,8 @@ public void hashCodeEqualsTrueTest() { test2.setPrivacyForRecording(true); - List testList2 = testList; - test2.setPrompts(testList2); + List testsetPromptsList2 = testsetPromptsList; + test2.setPrompts(testsetPromptsList2); Assert.assertEquals(test1.hashCode(), test2.hashCode()); } @@ -337,8 +337,8 @@ public void hashCodeEqualsFalseTest() { test1.setPrivacyForRecording(true); - List testList = new ArrayList(); - test1.setPrompts(testList); + List testsetPromptsList = new ArrayList(); + test1.setPrompts(testsetPromptsList); TranscribeUtterance test2 = new TranscribeUtterance(); try { @@ -359,8 +359,8 @@ public void hashCodeEqualsFalseTest() { test2.setPrivacyForRecording(false); - List testList2 = null; - test2.setPrompts(testList2); + List testsetPromptsList2 = null; + test2.setPrompts(testsetPromptsList2); Assert.assertNotEquals(test1.hashCode(), test2.hashCode()); } @@ -387,8 +387,8 @@ public void toStringTypeTest() { test1.setPrivacyForRecording(true); - List testList = new ArrayList(); - test1.setPrompts(testList); + List testsetPromptsList = new ArrayList(); + test1.setPrompts(testsetPromptsList); String toString1 = test1.toString(); Assert.assertTrue(String.class.isInstance(toString1)); From 3c94812a143f3fb7d0c5c3acc20bfc4396b179f7 Mon Sep 17 00:00:00 2001 From: Navneet Garg Date: Tue, 21 Oct 2025 17:08:51 -0400 Subject: [PATCH 2/4] Update changelog & version --- CHANGELOG.md | 9 ++++ README.md | 6 +-- build.gradle | 2 +- build.sbt | 2 +- pom.xml | 2 +- .../com/github/freeclimbapi/ApiClient.java | 2 +- .../freeclimbapi/api/DefaultApiTest.java | 50 +++++++++---------- 7 files changed, 41 insertions(+), 32 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index a5b733fa..7de68cc7 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -9,6 +9,15 @@ This project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.htm None + + +## [6.3.0] - 2025-10-21 + +### Added + +- Add models for new TTS models and engine setup +- Add models and default api methods for Blob API + ## [6.2.0] - 2025-09-24 diff --git a/README.md b/README.md index 6699ae5d..86850eb0 100644 --- a/README.md +++ b/README.md @@ -40,7 +40,7 @@ Add this dependency to your project's POM: com.github.freeclimbapi freeclimb-java-client - 6.2.0 + 6.3.0 compile ``` @@ -56,7 +56,7 @@ Add this dependency to your project's build file: } dependencies { - implementation "com.github.freeclimbapi:freeclimb-java-client:6.2.0" + implementation "com.github.freeclimbapi:freeclimb-java-client:6.3.0" implementation("com.squareup.okhttp3:okhttp:4.9.3") implementation("com.squareup.okhttp3:logging-interceptor:4.9.3") } @@ -72,7 +72,7 @@ mvn clean package Then manually install the following JARs: -* `target/freeclimb-java-client-6.2.0.jar` +* `target/freeclimb-java-client-6.3.0.jar` * `target/lib/*.jar` ## Getting Started diff --git a/build.gradle b/build.gradle index d671f8ac..fe19b2ac 100644 --- a/build.gradle +++ b/build.gradle @@ -4,7 +4,7 @@ apply plugin: 'java' apply plugin: 'com.diffplug.spotless' group = 'com.github.freeclimbapi' -version = '6.2.0' +version = '6.3.0' buildscript { repositories { diff --git a/build.sbt b/build.sbt index f67bf7c3..a74d2445 100644 --- a/build.sbt +++ b/build.sbt @@ -2,7 +2,7 @@ lazy val root = (project in file(".")). settings( organization := "com.github.freeclimbapi", name := "freeclimb-java-client", - version := "6.2.0", + version := "6.3.0", scalaVersion := "2.11.4", scalacOptions ++= Seq("-feature"), javacOptions in compile ++= Seq("-Xlint:deprecation"), diff --git a/pom.xml b/pom.xml index 37f2dd14..ae3f3362 100644 --- a/pom.xml +++ b/pom.xml @@ -5,7 +5,7 @@ freeclimb-java-client jar freeclimb-java-client - 6.2.0 + 6.3.0 https://github.com/freeclimbapi/java-sdk FreeClimb Java Client diff --git a/src/main/java/com/github/freeclimbapi/ApiClient.java b/src/main/java/com/github/freeclimbapi/ApiClient.java index 7dc1b5a6..fbcc5fb5 100644 --- a/src/main/java/com/github/freeclimbapi/ApiClient.java +++ b/src/main/java/com/github/freeclimbapi/ApiClient.java @@ -121,7 +121,7 @@ private void init() { json = new JSON(); // Set default User-Agent. - setUserAgent("OpenAPI-Generator/6.2.0/java"); + setUserAgent("OpenAPI-Generator/6.3.0/java"); authentications = new HashMap(); } diff --git a/src/test/java/com/github/freeclimbapi/api/DefaultApiTest.java b/src/test/java/com/github/freeclimbapi/api/DefaultApiTest.java index 0dc74235..920bd8b7 100644 --- a/src/test/java/com/github/freeclimbapi/api/DefaultApiTest.java +++ b/src/test/java/com/github/freeclimbapi/api/DefaultApiTest.java @@ -1267,7 +1267,7 @@ public void filterLogsGetNextPageTest() throws ApiException { "/Accounts/{accountId}/Logs" .replaceAll( "\\{" + "accountId" + "\\}", - "AC2d721074c7265c419cf76a82722854a3c0d595be"); + "AC0123456789abcdefABCDEF0123456789abcdef00"); response.setNextPageUri(localVarNextPageUri + "?cursor=1"); LogList nextPageResponse = this.apiInstance.getNextPage(response); assertEquals(nextPageResponse.getClass(), LogList.class); @@ -1286,7 +1286,7 @@ public void getTenDLCSmsBrandsGetNextPageTest() throws ApiException { "/Accounts/{accountId}/Messages/10DLC/Brands" .replaceAll( "\\{" + "accountId" + "\\}", - "AC2d721074c7265c419cf76a82722854a3c0d595be"); + "AC0123456789abcdefABCDEF0123456789abcdef00"); response.setNextPageUri(localVarNextPageUri + "?cursor=1"); SMSTenDLCBrandsListResult nextPageResponse = this.apiInstance.getNextPage(response); assertEquals(nextPageResponse.getClass(), SMSTenDLCBrandsListResult.class); @@ -1307,7 +1307,7 @@ public void getTenDLCSmsCampaignsGetNextPageTest() throws ApiException { "/Accounts/{accountId}/Messages/10DLC/Campaigns" .replaceAll( "\\{" + "accountId" + "\\}", - "AC2d721074c7265c419cf76a82722854a3c0d595be"); + "AC0123456789abcdefABCDEF0123456789abcdef00"); response.setNextPageUri(localVarNextPageUri + "?cursor=1"); SMSTenDLCCampaignsListResult nextPageResponse = this.apiInstance.getNextPage(response); assertEquals(nextPageResponse.getClass(), SMSTenDLCCampaignsListResult.class); @@ -1329,7 +1329,7 @@ public void getTenDLCSmsPartnerCampaignsGetNextPageTest() throws ApiException { "/Accounts/{accountId}/Messages/10DLC/PartnerCampaigns" .replaceAll( "\\{" + "accountId" + "\\}", - "AC2d721074c7265c419cf76a82722854a3c0d595be"); + "AC0123456789abcdefABCDEF0123456789abcdef00"); response.setNextPageUri(localVarNextPageUri + "?cursor=1"); SMSTenDLCPartnerCampaignsListResult nextPageResponse = this.apiInstance.getNextPage(response); @@ -1349,7 +1349,7 @@ public void getTollFreeSmsCampaignsGetNextPageTest() throws ApiException { "/Accounts/{accountId}/Messages/TollFree/Campaigns" .replaceAll( "\\{" + "accountId" + "\\}", - "AC2d721074c7265c419cf76a82722854a3c0d595be"); + "AC0123456789abcdefABCDEF0123456789abcdef00"); response.setNextPageUri(localVarNextPageUri + "?cursor=1"); SMSTollFreeCampaignsListResult nextPageResponse = this.apiInstance.getNextPage(response); assertEquals(nextPageResponse.getClass(), SMSTollFreeCampaignsListResult.class); @@ -1370,7 +1370,7 @@ public void listActiveQueuesGetNextPageTest() throws ApiException { "/Accounts/{accountId}/Queues" .replaceAll( "\\{" + "accountId" + "\\}", - "AC2d721074c7265c419cf76a82722854a3c0d595be"); + "AC0123456789abcdefABCDEF0123456789abcdef00"); response.setNextPageUri(localVarNextPageUri + "?cursor=1"); QueueList nextPageResponse = this.apiInstance.getNextPage(response); assertEquals(nextPageResponse.getClass(), QueueList.class); @@ -1389,7 +1389,7 @@ public void listAllAccountLogsGetNextPageTest() throws ApiException { "/Accounts/{accountId}/Logs" .replaceAll( "\\{" + "accountId" + "\\}", - "AC2d721074c7265c419cf76a82722854a3c0d595be"); + "AC0123456789abcdefABCDEF0123456789abcdef00"); response.setNextPageUri(localVarNextPageUri + "?cursor=1"); LogList nextPageResponse = this.apiInstance.getNextPage(response); assertEquals(nextPageResponse.getClass(), LogList.class); @@ -1410,7 +1410,7 @@ public void listApplicationsGetNextPageTest() throws ApiException { "/Accounts/{accountId}/Applications" .replaceAll( "\\{" + "accountId" + "\\}", - "AC2d721074c7265c419cf76a82722854a3c0d595be"); + "AC0123456789abcdefABCDEF0123456789abcdef00"); response.setNextPageUri(localVarNextPageUri + "?cursor=1"); ApplicationList nextPageResponse = this.apiInstance.getNextPage(response); assertEquals(nextPageResponse.getClass(), ApplicationList.class); @@ -1482,7 +1482,7 @@ public void listBlobsGetNextPageTest() throws ApiException { "/Accounts/{accountId}/Blobs" .replaceAll( "\\{" + "accountId" + "\\}", - "AC2d721074c7265c419cf76a82722854a3c0d595be"); + "AC0123456789abcdefABCDEF0123456789abcdef00"); response.setNextPageUri(localVarNextPageUri + "?cursor=1"); BlobListResponse nextPageResponse = this.apiInstance.getNextPage(response); assertEquals(nextPageResponse.getClass(), BlobListResponse.class); @@ -1503,10 +1503,10 @@ public void listCallLogsGetNextPageTest() throws ApiException { "/Accounts/{accountId}/Calls/{callId}/Logs" .replaceAll( "\\{" + "accountId" + "\\}", - "AC2d721074c7265c419cf76a82722854a3c0d595be") + "AC0123456789abcdefABCDEF0123456789abcdef00") .replaceAll( "\\{" + "callId" + "\\}", - "AC2d721074c7265c419cf76a82722854a3c0d595be"); + "AC0123456789abcdefABCDEF0123456789abcdef00"); response.setNextPageUri(localVarNextPageUri + "?cursor=1"); LogList nextPageResponse = this.apiInstance.getNextPage(response); assertEquals(nextPageResponse.getClass(), LogList.class); @@ -1529,10 +1529,10 @@ public void listCallRecordingsGetNextPageTest() throws ApiException { "/Accounts/{accountId}/Calls/{callId}/Recordings" .replaceAll( "\\{" + "accountId" + "\\}", - "AC2d721074c7265c419cf76a82722854a3c0d595be") + "AC0123456789abcdefABCDEF0123456789abcdef00") .replaceAll( "\\{" + "callId" + "\\}", - "AC2d721074c7265c419cf76a82722854a3c0d595be"); + "AC0123456789abcdefABCDEF0123456789abcdef00"); response.setNextPageUri(localVarNextPageUri + "?cursor=1"); RecordingList nextPageResponse = this.apiInstance.getNextPage(response); assertEquals(nextPageResponse.getClass(), RecordingList.class); @@ -1582,7 +1582,7 @@ public void listCallsGetNextPageTest() throws ApiException { "/Accounts/{accountId}/Calls" .replaceAll( "\\{" + "accountId" + "\\}", - "AC2d721074c7265c419cf76a82722854a3c0d595be"); + "AC0123456789abcdefABCDEF0123456789abcdef00"); response.setNextPageUri(localVarNextPageUri + "?cursor=1"); CallList nextPageResponse = this.apiInstance.getNextPage(response); assertEquals(nextPageResponse.getClass(), CallList.class); @@ -1608,10 +1608,10 @@ public void listConferenceRecordingsGetNextPageTest() throws ApiException { "/Accounts/{accountId}/Conferences/{conferenceId}/Recordings" .replaceAll( "\\{" + "accountId" + "\\}", - "AC2d721074c7265c419cf76a82722854a3c0d595be") + "AC0123456789abcdefABCDEF0123456789abcdef00") .replaceAll( "\\{" + "conferenceId" + "\\}", - "AC2d721074c7265c419cf76a82722854a3c0d595be"); + "AC0123456789abcdefABCDEF0123456789abcdef00"); response.setNextPageUri(localVarNextPageUri + "?cursor=1"); RecordingList nextPageResponse = this.apiInstance.getNextPage(response); assertEquals(nextPageResponse.getClass(), RecordingList.class); @@ -1639,7 +1639,7 @@ public void listConferencesGetNextPageTest() throws ApiException { "/Accounts/{accountId}/Conferences" .replaceAll( "\\{" + "accountId" + "\\}", - "AC2d721074c7265c419cf76a82722854a3c0d595be"); + "AC0123456789abcdefABCDEF0123456789abcdef00"); response.setNextPageUri(localVarNextPageUri + "?cursor=1"); ConferenceList nextPageResponse = this.apiInstance.getNextPage(response); assertEquals(nextPageResponse.getClass(), ConferenceList.class); @@ -1662,7 +1662,7 @@ public void listExportsGetNextPageTest() throws ApiException { "/Accounts/{accountId}/Exports" .replaceAll( "\\{" + "accountId" + "\\}", - "AC2d721074c7265c419cf76a82722854a3c0d595be"); + "AC0123456789abcdefABCDEF0123456789abcdef00"); response.setNextPageUri(localVarNextPageUri + "?cursor=1"); ExportList nextPageResponse = this.apiInstance.getNextPage(response); assertEquals(nextPageResponse.getClass(), ExportList.class); @@ -1724,7 +1724,7 @@ public void listIncomingNumbersGetNextPageTest() throws ApiException { "/Accounts/{accountId}/IncomingPhoneNumbers" .replaceAll( "\\{" + "accountId" + "\\}", - "AC2d721074c7265c419cf76a82722854a3c0d595be"); + "AC0123456789abcdefABCDEF0123456789abcdef00"); response.setNextPageUri(localVarNextPageUri + "?cursor=1"); IncomingNumberList nextPageResponse = this.apiInstance.getNextPage(response); assertEquals(nextPageResponse.getClass(), IncomingNumberList.class); @@ -1745,10 +1745,10 @@ public void listMembersGetNextPageTest() throws ApiException { "/Accounts/{accountId}/Queues/{queueId}/Members" .replaceAll( "\\{" + "accountId" + "\\}", - "AC2d721074c7265c419cf76a82722854a3c0d595be") + "AC0123456789abcdefABCDEF0123456789abcdef00") .replaceAll( "\\{" + "queueId" + "\\}", - "AC2d721074c7265c419cf76a82722854a3c0d595be"); + "AC0123456789abcdefABCDEF0123456789abcdef00"); response.setNextPageUri(localVarNextPageUri + "?cursor=1"); QueueMemberList nextPageResponse = this.apiInstance.getNextPage(response); assertEquals(nextPageResponse.getClass(), QueueMemberList.class); @@ -1776,10 +1776,10 @@ public void listParticipantsGetNextPageTest() throws ApiException { "/Accounts/{accountId}/Conferences/{conferenceId}/Participants" .replaceAll( "\\{" + "accountId" + "\\}", - "AC2d721074c7265c419cf76a82722854a3c0d595be") + "AC0123456789abcdefABCDEF0123456789abcdef00") .replaceAll( "\\{" + "conferenceId" + "\\}", - "AC2d721074c7265c419cf76a82722854a3c0d595be"); + "AC0123456789abcdefABCDEF0123456789abcdef00"); response.setNextPageUri(localVarNextPageUri + "?cursor=1"); ConferenceParticipantList nextPageResponse = this.apiInstance.getNextPage(response); assertEquals(nextPageResponse.getClass(), ConferenceParticipantList.class); @@ -1804,7 +1804,7 @@ public void listRecordingsGetNextPageTest() throws ApiException { "/Accounts/{accountId}/Recordings" .replaceAll( "\\{" + "accountId" + "\\}", - "AC2d721074c7265c419cf76a82722854a3c0d595be"); + "AC0123456789abcdefABCDEF0123456789abcdef00"); response.setNextPageUri(localVarNextPageUri + "?cursor=1"); RecordingList nextPageResponse = this.apiInstance.getNextPage(response); assertEquals(nextPageResponse.getClass(), RecordingList.class); @@ -1841,7 +1841,7 @@ public void listSmsMessagesGetNextPageTest() throws ApiException { "/Accounts/{accountId}/Messages" .replaceAll( "\\{" + "accountId" + "\\}", - "AC2d721074c7265c419cf76a82722854a3c0d595be"); + "AC0123456789abcdefABCDEF0123456789abcdef00"); response.setNextPageUri(localVarNextPageUri + "?cursor=1"); MessagesList nextPageResponse = this.apiInstance.getNextPage(response); assertEquals(nextPageResponse.getClass(), MessagesList.class); From 3aa6a0e629bbfdeb11ae9bd41e294a0311f2a8d6 Mon Sep 17 00:00:00 2001 From: Navneet Garg Date: Fri, 24 Oct 2025 14:47:11 -0400 Subject: [PATCH 3/4] Extract engine params; --- .openapi-generator/FILES | 3 + README.md | 1 + docs/SayStandardEngine.md | 4 +- docs/SayStandardEngineParameters.md | 16 + openapi.json | 62 ++-- .../models/SayStandardEngine.java | 84 +----- .../models/SayStandardEngineParameters.java | 156 ++++++++++ .../models/SayNeuralEngineTest.java | 55 +++- .../SayStandardEngineParametersTest.java | 280 ++++++++++++++++++ .../models/SayStandardEngineTest.java | 220 +++----------- 10 files changed, 603 insertions(+), 278 deletions(-) create mode 100644 docs/SayStandardEngineParameters.md create mode 100644 src/main/java/com/github/freeclimbapi/models/SayStandardEngineParameters.java create mode 100644 src/test/java/com/github/freeclimbapi/models/SayStandardEngineParametersTest.java diff --git a/.openapi-generator/FILES b/.openapi-generator/FILES index af3408a1..f69df950 100644 --- a/.openapi-generator/FILES +++ b/.openapi-generator/FILES @@ -153,6 +153,7 @@ docs/SayStandard.md docs/SayStandardContentType.md docs/SayStandardCulture.md docs/SayStandardEngine.md +docs/SayStandardEngineParameters.md docs/SayStandardVoice.md docs/SendDigits.md docs/SetDTMFPassThrough.md @@ -343,6 +344,7 @@ src/main/java/com/github/freeclimbapi/SayStandard.java src/main/java/com/github/freeclimbapi/SayStandardContentType.java src/main/java/com/github/freeclimbapi/SayStandardCulture.java src/main/java/com/github/freeclimbapi/SayStandardEngine.java +src/main/java/com/github/freeclimbapi/SayStandardEngineParameters.java src/main/java/com/github/freeclimbapi/SayStandardVoice.java src/main/java/com/github/freeclimbapi/SendDigits.java src/main/java/com/github/freeclimbapi/ServerConfiguration.java @@ -517,6 +519,7 @@ src/test/java/com/github/freeclimbapi/SayNeuralTest.java src/test/java/com/github/freeclimbapi/SayNeuralTextTypeTest.java src/test/java/com/github/freeclimbapi/SayStandardContentTypeTest.java src/test/java/com/github/freeclimbapi/SayStandardCultureTest.java +src/test/java/com/github/freeclimbapi/SayStandardEngineParametersTest.java src/test/java/com/github/freeclimbapi/SayStandardEngineTest.java src/test/java/com/github/freeclimbapi/SayStandardTest.java src/test/java/com/github/freeclimbapi/SayStandardVoiceTest.java diff --git a/README.md b/README.md index 86850eb0..692532b3 100644 --- a/README.md +++ b/README.md @@ -362,6 +362,7 @@ Class | Method | HTTP request | Description - [SayStandardContentType](docs/SayStandardContentType.md) - [SayStandardCulture](docs/SayStandardCulture.md) - [SayStandardEngine](docs/SayStandardEngine.md) + - [SayStandardEngineParameters](docs/SayStandardEngineParameters.md) - [SayStandardVoice](docs/SayStandardVoice.md) - [SendDigits](docs/SendDigits.md) - [SetDTMFPassThrough](docs/SetDTMFPassThrough.md) diff --git a/docs/SayStandardEngine.md b/docs/SayStandardEngine.md index a2c16492..1fe642e8 100644 --- a/docs/SayStandardEngine.md +++ b/docs/SayStandardEngine.md @@ -9,9 +9,7 @@ Language and (by implication) the locale to use. This implies the accent and pro Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **name** | **String** | The name of the TTS engine to use. Set to `freeclimb.standard` for to use the standard freeclimb TTS engine. | [optional] -**voice** | **SayStandardVoice** | | [optional] -**culture** | **SayStandardCulture** | | [optional] -**contentType** | **SayStandardContentType** | | [optional] +**parameters** | [**SayStandardEngineParameters**](SayStandardEngineParameters.md) | | [optional] diff --git a/docs/SayStandardEngineParameters.md b/docs/SayStandardEngineParameters.md new file mode 100644 index 00000000..626ae0da --- /dev/null +++ b/docs/SayStandardEngineParameters.md @@ -0,0 +1,16 @@ + + +# SayStandardEngineParameters + +The parameters to use for the TTS. The complete list of valid values for the parameters attribute is shown below. + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**voice** | **SayStandardVoice** | | [optional] +**culture** | **SayStandardCulture** | | [optional] +**contentType** | **SayStandardContentType** | | [optional] + + + diff --git a/openapi.json b/openapi.json index 01cfcd1e..4d431e7e 100644 --- a/openapi.json +++ b/openapi.json @@ -2555,6 +2555,25 @@ "enum": ["text", "ssml"], "description": "The type of text to use for the TTS. The complete list of valid values for the text type attribute is shown below." }, + "SayNeuralEngineParameters": { + "description": "The parameters to use for the TTS. The complete list of valid values for the parameters attribute is shown below.", + "type": "object", + "properties": { + "voice": { + "description": "The voice to use for the TTS. The complete list of valid values for the voice attribute is shown below.", + "type": "string", + "default": "Eve" + }, + "textType": { + "$ref": "#/components/schemas/SayNeuralTextType" + }, + "language": { + "description": "The language to use for the TTS. The complete list of valid values for the language attribute is shown below.", + "type": "string", + "default": "en-US" + } + } + }, "SayNeural": { "description": "The `SayNeural` command provides Text-To-Speech (TTS) support using the freeclimb.neural TTS engine. It converts text to speech and then renders it in a female voice back to the caller. `SayNeural` is useful in cases where it's difficult to pre-record a prompt for any reason. `SayNeural` does not allow barge-in unless nested within a `GetSpeech` command. The file will always be played to completion unless nested.", "required": ["text", "engine"], @@ -2584,23 +2603,7 @@ "default": "freeclimb.neural" }, "parameters": { - "description": "The parameters to use for the TTS. The complete list of valid values for the parameters attribute is shown below.", - "type": "object", - "properties": { - "voice": { - "description": "The voice to use for the TTS. The complete list of valid values for the voice attribute is shown below.", - "type": "string", - "default": "Eve" - }, - "textType": { - "$ref": "#/components/schemas/SayNeuralTextType" - }, - "language": { - "description": "The language to use for the TTS. The complete list of valid values for the language attribute is shown below.", - "type": "string", - "default": "en-US" - } - } + "$ref": "#/components/schemas/SayNeuralEngineParameters" } } } @@ -2675,6 +2678,21 @@ "type": "string", "enum": ["text/plain", "application/ssml+xml"] }, + "SayStandardEngineParameters": { + "description": "The parameters to use for the TTS. The complete list of valid values for the parameters attribute is shown below.", + "type": "object", + "properties": { + "Voice": { + "$ref": "#/components/schemas/SayStandardVoice" + }, + "Culture": { + "$ref": "#/components/schemas/SayStandardCulture" + }, + "Content-Type": { + "$ref": "#/components/schemas/SayStandardContentType" + } + } + }, "SayStandard": { "description": "The `Say` command provides Text-To-Speech (TTS) support using the freeclimb.standard TTS engine. It converts text to speech and then renders it in a female voice back to the caller. `SayStandard` is useful in cases where it's difficult to pre-record a prompt for any reason. `SayStandard` does not allow barge-in unless nested within a `GetSpeech` command. The file will always be played to completion unless nested.", "required": ["text", "engine"], @@ -2703,14 +2721,8 @@ "type": "string", "default": "freeclimb.standard" }, - "Voice": { - "$ref": "#/components/schemas/SayStandardVoice" - }, - "Culture": { - "$ref": "#/components/schemas/SayStandardCulture" - }, - "Content-Type": { - "$ref": "#/components/schemas/SayStandardContentType" + "parameters": { + "$ref": "#/components/schemas/SayStandardEngineParameters" } } } diff --git a/src/main/java/com/github/freeclimbapi/models/SayStandardEngine.java b/src/main/java/com/github/freeclimbapi/models/SayStandardEngine.java index f3a1f477..10dbfc4c 100644 --- a/src/main/java/com/github/freeclimbapi/models/SayStandardEngine.java +++ b/src/main/java/com/github/freeclimbapi/models/SayStandardEngine.java @@ -39,20 +39,10 @@ public static String getDiscriminatorValue() { @SerializedName(SERIALIZED_NAME_NAME) private String name = "freeclimb.standard"; - public static final String SERIALIZED_NAME_VOICE = "Voice"; + public static final String SERIALIZED_NAME_PARAMETERS = "parameters"; - @SerializedName(SERIALIZED_NAME_VOICE) - private SayStandardVoice voice; - - public static final String SERIALIZED_NAME_CULTURE = "Culture"; - - @SerializedName(SERIALIZED_NAME_CULTURE) - private SayStandardCulture culture; - - public static final String SERIALIZED_NAME_CONTENT_TYPE = "Content-Type"; - - @SerializedName(SERIALIZED_NAME_CONTENT_TYPE) - private SayStandardContentType contentType; + @SerializedName(SERIALIZED_NAME_PARAMETERS) + private SayStandardEngineParameters parameters; public SayStandardEngine() {} @@ -81,67 +71,25 @@ public void setName(String name) { this.name = name; } - public SayStandardEngine voice(SayStandardVoice voice) { - - this.voice = voice; - return this; - } - - /** - * Get voice - * - * @return voice - */ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - public SayStandardVoice getVoice() { - return voice; - } - - public void setVoice(SayStandardVoice voice) { - this.voice = voice; - } - - public SayStandardEngine culture(SayStandardCulture culture) { - - this.culture = culture; - return this; - } - - /** - * Get culture - * - * @return culture - */ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - public SayStandardCulture getCulture() { - return culture; - } - - public void setCulture(SayStandardCulture culture) { - this.culture = culture; - } - - public SayStandardEngine contentType(SayStandardContentType contentType) { + public SayStandardEngine parameters(SayStandardEngineParameters parameters) { - this.contentType = contentType; + this.parameters = parameters; return this; } /** - * Get contentType + * Get parameters * - * @return contentType + * @return parameters */ @javax.annotation.Nullable @ApiModelProperty(value = "") - public SayStandardContentType getContentType() { - return contentType; + public SayStandardEngineParameters getParameters() { + return parameters; } - public void setContentType(SayStandardContentType contentType) { - this.contentType = contentType; + public void setParameters(SayStandardEngineParameters parameters) { + this.parameters = parameters; } @Override @@ -154,14 +102,12 @@ public boolean equals(Object o) { } SayStandardEngine sayStandardEngine = (SayStandardEngine) o; return Objects.equals(this.name, sayStandardEngine.name) - && Objects.equals(this.voice, sayStandardEngine.voice) - && Objects.equals(this.culture, sayStandardEngine.culture) - && Objects.equals(this.contentType, sayStandardEngine.contentType); + && Objects.equals(this.parameters, sayStandardEngine.parameters); } @Override public int hashCode() { - return Objects.hash(name, voice, culture, contentType); + return Objects.hash(name, parameters); } @Override @@ -169,9 +115,7 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class SayStandardEngine {\n"); sb.append(" name: ").append(toIndentedString(name)).append("\n"); - sb.append(" voice: ").append(toIndentedString(voice)).append("\n"); - sb.append(" culture: ").append(toIndentedString(culture)).append("\n"); - sb.append(" contentType: ").append(toIndentedString(contentType)).append("\n"); + sb.append(" parameters: ").append(toIndentedString(parameters)).append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/github/freeclimbapi/models/SayStandardEngineParameters.java b/src/main/java/com/github/freeclimbapi/models/SayStandardEngineParameters.java new file mode 100644 index 00000000..d8d72448 --- /dev/null +++ b/src/main/java/com/github/freeclimbapi/models/SayStandardEngineParameters.java @@ -0,0 +1,156 @@ +/* + * FreeClimb API + * FreeClimb is a cloud-based application programming interface (API) that puts the power of the Vail platform in your hands. FreeClimb simplifies the process of creating applications that can use a full range of telephony features without requiring specialized or on-site telephony equipment. Using the FreeClimb REST API to write applications is easy! You have the option to use the language of your choice or hit the API directly. Your application can execute a command by issuing a RESTful request to the FreeClimb API. The base URL to send HTTP requests to the FreeClimb REST API is: /apiserver. FreeClimb authenticates and processes your request. + * + * The version of the OpenAPI document: 1.0.0 + * Contact: support@freeclimb.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +package com.github.freeclimbapi.models; + +import com.github.freeclimbapi.enums.*; +import com.google.gson.annotations.SerializedName; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.util.*; +import java.util.Objects; + +/** + * The parameters to use for the TTS. The complete list of valid values for the parameters attribute + * is shown below. + */ +@ApiModel( + description = + "The parameters to use for the TTS. The complete list of valid values for the" + + " parameters attribute is shown below.") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +public class SayStandardEngineParameters { + public static String getDiscriminatorValue() { + return null; + } + + public static final String SERIALIZED_NAME_VOICE = "Voice"; + + @SerializedName(SERIALIZED_NAME_VOICE) + private SayStandardVoice voice; + + public static final String SERIALIZED_NAME_CULTURE = "Culture"; + + @SerializedName(SERIALIZED_NAME_CULTURE) + private SayStandardCulture culture; + + public static final String SERIALIZED_NAME_CONTENT_TYPE = "Content-Type"; + + @SerializedName(SERIALIZED_NAME_CONTENT_TYPE) + private SayStandardContentType contentType; + + public SayStandardEngineParameters() {} + + public SayStandardEngineParameters voice(SayStandardVoice voice) { + + this.voice = voice; + return this; + } + + /** + * Get voice + * + * @return voice + */ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + public SayStandardVoice getVoice() { + return voice; + } + + public void setVoice(SayStandardVoice voice) { + this.voice = voice; + } + + public SayStandardEngineParameters culture(SayStandardCulture culture) { + + this.culture = culture; + return this; + } + + /** + * Get culture + * + * @return culture + */ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + public SayStandardCulture getCulture() { + return culture; + } + + public void setCulture(SayStandardCulture culture) { + this.culture = culture; + } + + public SayStandardEngineParameters contentType(SayStandardContentType contentType) { + + this.contentType = contentType; + return this; + } + + /** + * Get contentType + * + * @return contentType + */ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + public SayStandardContentType getContentType() { + return contentType; + } + + public void setContentType(SayStandardContentType contentType) { + this.contentType = contentType; + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + SayStandardEngineParameters sayStandardEngineParameters = (SayStandardEngineParameters) o; + return Objects.equals(this.voice, sayStandardEngineParameters.voice) + && Objects.equals(this.culture, sayStandardEngineParameters.culture) + && Objects.equals(this.contentType, sayStandardEngineParameters.contentType); + } + + @Override + public int hashCode() { + return Objects.hash(voice, culture, contentType); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class SayStandardEngineParameters {\n"); + sb.append(" voice: ").append(toIndentedString(voice)).append("\n"); + sb.append(" culture: ").append(toIndentedString(culture)).append("\n"); + sb.append(" contentType: ").append(toIndentedString(contentType)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces (except the first + * line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} diff --git a/src/test/java/com/github/freeclimbapi/models/SayNeuralEngineTest.java b/src/test/java/com/github/freeclimbapi/models/SayNeuralEngineTest.java index 34723280..ac8dc07d 100644 --- a/src/test/java/com/github/freeclimbapi/models/SayNeuralEngineTest.java +++ b/src/test/java/com/github/freeclimbapi/models/SayNeuralEngineTest.java @@ -33,7 +33,12 @@ public void nameTest() { /** Test the property 'parameters' */ @Test - public void parametersTest() {} + public void parametersTest() { + + SayNeuralEngineParameters object = new SayNeuralEngineParameters(); + model.setParameters(object); + Assert.assertEquals(object.getClass(), SayNeuralEngineParameters.class); + } /** Test the method 'equalsTrue' */ @Test @@ -42,10 +47,18 @@ public void equalsTrueTest() { test1.setName("TS"); + SayNeuralEngineParameters testSayNeuralEngineParametersObject = + new SayNeuralEngineParameters(); + test1.setParameters(testSayNeuralEngineParametersObject); + SayNeuralEngine test2 = new SayNeuralEngine(); test2.setName("TS"); + SayNeuralEngineParameters testSayNeuralEngineParametersObject2 = + testSayNeuralEngineParametersObject; + test2.setParameters(testSayNeuralEngineParametersObject2); + Assert.assertTrue(test1.equals(test2)); } @@ -56,10 +69,18 @@ public void equalsFalseTest() { test1.setName("TS"); + SayNeuralEngineParameters testSayNeuralEngineParametersObject = + new SayNeuralEngineParameters(); + test1.setParameters(testSayNeuralEngineParametersObject); + SayNeuralEngine test2 = new SayNeuralEngine(); test2.setName("TS2"); + SayNeuralEngineParameters testSayNeuralEngineParametersObject2 = + new SayNeuralEngineParameters(); + test2.setParameters(testSayNeuralEngineParametersObject2); + Assert.assertFalse(test1.equals(test2)); } @@ -70,6 +91,10 @@ public void hashCodeTypeTest() { test1.setName("TS"); + SayNeuralEngineParameters testSayNeuralEngineParametersObject = + new SayNeuralEngineParameters(); + test1.setParameters(testSayNeuralEngineParametersObject); + int hashCode1 = test1.hashCode(); Assert.assertTrue(Integer.class.isInstance(hashCode1)); } @@ -81,10 +106,18 @@ public void toStringEqualsTest() { test1.setName("TS"); + SayNeuralEngineParameters testSayNeuralEngineParametersObject = + new SayNeuralEngineParameters(); + test1.setParameters(testSayNeuralEngineParametersObject); + SayNeuralEngine test2 = new SayNeuralEngine(); test2.setName("TS"); + SayNeuralEngineParameters testSayNeuralEngineParametersObject2 = + testSayNeuralEngineParametersObject; + test2.setParameters(testSayNeuralEngineParametersObject2); + String toString1 = test1.toString(); String toString2 = test2.toString(); Assert.assertEquals(toString1, toString2); @@ -97,10 +130,18 @@ public void hashCodeEqualsTrueTest() { test1.setName("TS"); + SayNeuralEngineParameters testSayNeuralEngineParametersObject = + new SayNeuralEngineParameters(); + test1.setParameters(testSayNeuralEngineParametersObject); + SayNeuralEngine test2 = new SayNeuralEngine(); test2.setName("TS"); + SayNeuralEngineParameters testSayNeuralEngineParametersObject2 = + testSayNeuralEngineParametersObject; + test2.setParameters(testSayNeuralEngineParametersObject2); + Assert.assertEquals(test1.hashCode(), test2.hashCode()); } @@ -111,10 +152,18 @@ public void hashCodeEqualsFalseTest() { test1.setName("TS"); + SayNeuralEngineParameters testSayNeuralEngineParametersObject = + new SayNeuralEngineParameters(); + test1.setParameters(testSayNeuralEngineParametersObject); + SayNeuralEngine test2 = new SayNeuralEngine(); test2.setName("TS2"); + SayNeuralEngineParameters testSayNeuralEngineParametersObject2 = + new SayNeuralEngineParameters(); + test2.setParameters(testSayNeuralEngineParametersObject2); + Assert.assertNotEquals(test1.hashCode(), test2.hashCode()); } @@ -125,6 +174,10 @@ public void toStringTypeTest() { test1.setName("TS"); + SayNeuralEngineParameters testSayNeuralEngineParametersObject = + new SayNeuralEngineParameters(); + test1.setParameters(testSayNeuralEngineParametersObject); + String toString1 = test1.toString(); Assert.assertTrue(String.class.isInstance(toString1)); } diff --git a/src/test/java/com/github/freeclimbapi/models/SayStandardEngineParametersTest.java b/src/test/java/com/github/freeclimbapi/models/SayStandardEngineParametersTest.java new file mode 100644 index 00000000..371d89f5 --- /dev/null +++ b/src/test/java/com/github/freeclimbapi/models/SayStandardEngineParametersTest.java @@ -0,0 +1,280 @@ +/* + * FreeClimb API + * FreeClimb is a cloud-based application programming interface (API) that puts the power of the Vail platform in your hands. FreeClimb simplifies the process of creating applications that can use a full range of telephony features without requiring specialized or on-site telephony equipment. Using the FreeClimb REST API to write applications is easy! You have the option to use the language of your choice or hit the API directly. Your application can execute a command by issuing a RESTful request to the FreeClimb API. The base URL to send HTTP requests to the FreeClimb REST API is: /apiserver. FreeClimb authenticates and processes your request. + * + * The version of the OpenAPI document: 1.0.0 + * Contact: support@freeclimb.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +package com.github.freeclimbapi; + +import com.github.freeclimbapi.enums.*; +import com.github.freeclimbapi.models.*; +import java.util.*; +import org.junit.Assert; +import org.junit.Test; + +/** Model tests for SayStandardEngineParameters */ +public class SayStandardEngineParametersTest { + + private final SayStandardEngineParameters model = new SayStandardEngineParameters(); + + /** Test the property 'voice' */ + @Test + public void voiceTest() { + model.setVoice(SayStandardVoice.HERENA); + Assert.assertEquals(model.getVoice(), SayStandardVoice.HERENA); + model.setVoice(SayStandardVoice.HELLE); + Assert.assertEquals(model.getVoice(), SayStandardVoice.HELLE); + model.setVoice(SayStandardVoice.HEDDA); + Assert.assertEquals(model.getVoice(), SayStandardVoice.HEDDA); + model.setVoice(SayStandardVoice.HAYLEY); + Assert.assertEquals(model.getVoice(), SayStandardVoice.HAYLEY); + model.setVoice(SayStandardVoice.HEATHER); + Assert.assertEquals(model.getVoice(), SayStandardVoice.HEATHER); + model.setVoice(SayStandardVoice.HAZEL); + Assert.assertEquals(model.getVoice(), SayStandardVoice.HAZEL); + model.setVoice(SayStandardVoice.HEERA); + Assert.assertEquals(model.getVoice(), SayStandardVoice.HEERA); + model.setVoice(SayStandardVoice.HELEN); + Assert.assertEquals(model.getVoice(), SayStandardVoice.HELEN); + model.setVoice(SayStandardVoice.ZIRA_PRO); + Assert.assertEquals(model.getVoice(), SayStandardVoice.ZIRA_PRO); + model.setVoice(SayStandardVoice.HELENA); + Assert.assertEquals(model.getVoice(), SayStandardVoice.HELENA); + model.setVoice(SayStandardVoice.HILDA); + Assert.assertEquals(model.getVoice(), SayStandardVoice.HILDA); + model.setVoice(SayStandardVoice.HEIDI); + Assert.assertEquals(model.getVoice(), SayStandardVoice.HEIDI); + model.setVoice(SayStandardVoice.HARMONIE); + Assert.assertEquals(model.getVoice(), SayStandardVoice.HARMONIE); + model.setVoice(SayStandardVoice.HORTENSE); + Assert.assertEquals(model.getVoice(), SayStandardVoice.HORTENSE); + model.setVoice(SayStandardVoice.LUCIA); + Assert.assertEquals(model.getVoice(), SayStandardVoice.LUCIA); + model.setVoice(SayStandardVoice.HARKUA); + Assert.assertEquals(model.getVoice(), SayStandardVoice.HARKUA); + model.setVoice(SayStandardVoice.HEAMI); + Assert.assertEquals(model.getVoice(), SayStandardVoice.HEAMI); + model.setVoice(SayStandardVoice.HULDA); + Assert.assertEquals(model.getVoice(), SayStandardVoice.HULDA); + model.setVoice(SayStandardVoice.HANNA); + Assert.assertEquals(model.getVoice(), SayStandardVoice.HANNA); + model.setVoice(SayStandardVoice.PAULINA); + Assert.assertEquals(model.getVoice(), SayStandardVoice.PAULINA); + model.setVoice(SayStandardVoice.HELOSIA); + Assert.assertEquals(model.getVoice(), SayStandardVoice.HELOSIA); + model.setVoice(SayStandardVoice.HELIA); + Assert.assertEquals(model.getVoice(), SayStandardVoice.HELIA); + model.setVoice(SayStandardVoice.ELENA); + Assert.assertEquals(model.getVoice(), SayStandardVoice.ELENA); + model.setVoice(SayStandardVoice.HEDVIG); + Assert.assertEquals(model.getVoice(), SayStandardVoice.HEDVIG); + model.setVoice(SayStandardVoice.HUN_YEE); + Assert.assertEquals(model.getVoice(), SayStandardVoice.HUN_YEE); + model.setVoice(SayStandardVoice.HAN_HAN); + Assert.assertEquals(model.getVoice(), SayStandardVoice.HAN_HAN); + } + + /** Test the property 'culture' */ + @Test + public void cultureTest() { + model.setCulture(SayStandardCulture.CA_ES); + Assert.assertEquals(model.getCulture(), SayStandardCulture.CA_ES); + model.setCulture(SayStandardCulture.DA_DK); + Assert.assertEquals(model.getCulture(), SayStandardCulture.DA_DK); + model.setCulture(SayStandardCulture.DE_DE); + Assert.assertEquals(model.getCulture(), SayStandardCulture.DE_DE); + model.setCulture(SayStandardCulture.EN_AU); + Assert.assertEquals(model.getCulture(), SayStandardCulture.EN_AU); + model.setCulture(SayStandardCulture.EN_CA); + Assert.assertEquals(model.getCulture(), SayStandardCulture.EN_CA); + model.setCulture(SayStandardCulture.EN_GB); + Assert.assertEquals(model.getCulture(), SayStandardCulture.EN_GB); + model.setCulture(SayStandardCulture.EN_IN); + Assert.assertEquals(model.getCulture(), SayStandardCulture.EN_IN); + model.setCulture(SayStandardCulture.EN_US); + Assert.assertEquals(model.getCulture(), SayStandardCulture.EN_US); + model.setCulture(SayStandardCulture.ES_ES); + Assert.assertEquals(model.getCulture(), SayStandardCulture.ES_ES); + model.setCulture(SayStandardCulture.ES_MX); + Assert.assertEquals(model.getCulture(), SayStandardCulture.ES_MX); + model.setCulture(SayStandardCulture.FI_FI); + Assert.assertEquals(model.getCulture(), SayStandardCulture.FI_FI); + model.setCulture(SayStandardCulture.FR_CA); + Assert.assertEquals(model.getCulture(), SayStandardCulture.FR_CA); + model.setCulture(SayStandardCulture.FR_FR); + Assert.assertEquals(model.getCulture(), SayStandardCulture.FR_FR); + model.setCulture(SayStandardCulture.IT_IT); + Assert.assertEquals(model.getCulture(), SayStandardCulture.IT_IT); + model.setCulture(SayStandardCulture.JA_JP); + Assert.assertEquals(model.getCulture(), SayStandardCulture.JA_JP); + model.setCulture(SayStandardCulture.KO_KR); + Assert.assertEquals(model.getCulture(), SayStandardCulture.KO_KR); + model.setCulture(SayStandardCulture.NB_NO); + Assert.assertEquals(model.getCulture(), SayStandardCulture.NB_NO); + model.setCulture(SayStandardCulture.NL_NL); + Assert.assertEquals(model.getCulture(), SayStandardCulture.NL_NL); + model.setCulture(SayStandardCulture.PL_PL); + Assert.assertEquals(model.getCulture(), SayStandardCulture.PL_PL); + model.setCulture(SayStandardCulture.PT_BR); + Assert.assertEquals(model.getCulture(), SayStandardCulture.PT_BR); + model.setCulture(SayStandardCulture.PT_PT); + Assert.assertEquals(model.getCulture(), SayStandardCulture.PT_PT); + model.setCulture(SayStandardCulture.RU_RU); + Assert.assertEquals(model.getCulture(), SayStandardCulture.RU_RU); + model.setCulture(SayStandardCulture.SV_SE); + Assert.assertEquals(model.getCulture(), SayStandardCulture.SV_SE); + model.setCulture(SayStandardCulture.ZH_CN); + Assert.assertEquals(model.getCulture(), SayStandardCulture.ZH_CN); + model.setCulture(SayStandardCulture.ZH_HK); + Assert.assertEquals(model.getCulture(), SayStandardCulture.ZH_HK); + model.setCulture(SayStandardCulture.ZH_TW); + Assert.assertEquals(model.getCulture(), SayStandardCulture.ZH_TW); + } + + /** Test the property 'contentType' */ + @Test + public void contentTypeTest() { + model.setContentType(SayStandardContentType.TEXT_PLAIN); + Assert.assertEquals(model.getContentType(), SayStandardContentType.TEXT_PLAIN); + model.setContentType(SayStandardContentType.APPLICATION_SSML_XML); + Assert.assertEquals(model.getContentType(), SayStandardContentType.APPLICATION_SSML_XML); + } + + /** Test the method 'equalsTrue' */ + @Test + public void equalsTrueTest() { + SayStandardEngineParameters test1 = new SayStandardEngineParameters(); + test1.setVoice(SayStandardVoice.HERENA); + + test1.setCulture(SayStandardCulture.CA_ES); + + test1.setContentType(SayStandardContentType.TEXT_PLAIN); + + SayStandardEngineParameters test2 = new SayStandardEngineParameters(); + test2.setVoice(SayStandardVoice.HERENA); + + test2.setCulture(SayStandardCulture.CA_ES); + + test2.setContentType(SayStandardContentType.TEXT_PLAIN); + + Assert.assertTrue(test1.equals(test2)); + } + + /** Test the method 'equalsFalse' */ + @Test + public void equalsFalseTest() { + SayStandardEngineParameters test1 = new SayStandardEngineParameters(); + + test1.setVoice(SayStandardVoice.HELLE); + + test1.setCulture(SayStandardCulture.DA_DK); + + test1.setContentType(SayStandardContentType.APPLICATION_SSML_XML); + + SayStandardEngineParameters test2 = new SayStandardEngineParameters(); + test2.setVoice(SayStandardVoice.HERENA); + + test2.setCulture(SayStandardCulture.CA_ES); + + test2.setContentType(SayStandardContentType.TEXT_PLAIN); + + Assert.assertFalse(test1.equals(test2)); + } + + /** Test the method 'hashCodeType' */ + @Test + public void hashCodeTypeTest() { + SayStandardEngineParameters test1 = new SayStandardEngineParameters(); + test1.setVoice(SayStandardVoice.HERENA); + + test1.setCulture(SayStandardCulture.CA_ES); + + test1.setContentType(SayStandardContentType.TEXT_PLAIN); + + int hashCode1 = test1.hashCode(); + Assert.assertTrue(Integer.class.isInstance(hashCode1)); + } + + /** Test the method 'toStringEquals' */ + @Test + public void toStringEqualsTest() { + SayStandardEngineParameters test1 = new SayStandardEngineParameters(); + test1.setVoice(SayStandardVoice.HERENA); + + test1.setCulture(SayStandardCulture.CA_ES); + + test1.setContentType(SayStandardContentType.TEXT_PLAIN); + + SayStandardEngineParameters test2 = new SayStandardEngineParameters(); + test2.setVoice(SayStandardVoice.HERENA); + + test2.setCulture(SayStandardCulture.CA_ES); + + test2.setContentType(SayStandardContentType.TEXT_PLAIN); + + String toString1 = test1.toString(); + String toString2 = test2.toString(); + Assert.assertEquals(toString1, toString2); + } + + /** Test the method 'hashCodeEqualsTrue' */ + @Test + public void hashCodeEqualsTrueTest() { + SayStandardEngineParameters test1 = new SayStandardEngineParameters(); + test1.setVoice(SayStandardVoice.HERENA); + + test1.setCulture(SayStandardCulture.CA_ES); + + test1.setContentType(SayStandardContentType.TEXT_PLAIN); + + SayStandardEngineParameters test2 = new SayStandardEngineParameters(); + test2.setVoice(SayStandardVoice.HERENA); + + test2.setCulture(SayStandardCulture.CA_ES); + + test2.setContentType(SayStandardContentType.TEXT_PLAIN); + + Assert.assertEquals(test1.hashCode(), test2.hashCode()); + } + + /** Test the method 'hashCodeEqualsFalse' */ + @Test + public void hashCodeEqualsFalseTest() { + SayStandardEngineParameters test1 = new SayStandardEngineParameters(); + + test1.setVoice(SayStandardVoice.HELLE); + + test1.setCulture(SayStandardCulture.DA_DK); + + test1.setContentType(SayStandardContentType.APPLICATION_SSML_XML); + + SayStandardEngineParameters test2 = new SayStandardEngineParameters(); + test2.setVoice(SayStandardVoice.HERENA); + + test2.setCulture(SayStandardCulture.CA_ES); + + test2.setContentType(SayStandardContentType.TEXT_PLAIN); + + Assert.assertNotEquals(test1.hashCode(), test2.hashCode()); + } + + /** Test the method 'toStringType' */ + @Test + public void toStringTypeTest() { + SayStandardEngineParameters test1 = new SayStandardEngineParameters(); + test1.setVoice(SayStandardVoice.HERENA); + + test1.setCulture(SayStandardCulture.CA_ES); + + test1.setContentType(SayStandardContentType.TEXT_PLAIN); + + String toString1 = test1.toString(); + Assert.assertTrue(String.class.isInstance(toString1)); + } +} diff --git a/src/test/java/com/github/freeclimbapi/models/SayStandardEngineTest.java b/src/test/java/com/github/freeclimbapi/models/SayStandardEngineTest.java index 87610288..fe059688 100644 --- a/src/test/java/com/github/freeclimbapi/models/SayStandardEngineTest.java +++ b/src/test/java/com/github/freeclimbapi/models/SayStandardEngineTest.java @@ -31,127 +31,13 @@ public void nameTest() { Assert.assertEquals("TEST_STRING", model.getName()); } - /** Test the property 'voice' */ + /** Test the property 'parameters' */ @Test - public void voiceTest() { - model.setVoice(SayStandardVoice.HERENA); - Assert.assertEquals(model.getVoice(), SayStandardVoice.HERENA); - model.setVoice(SayStandardVoice.HELLE); - Assert.assertEquals(model.getVoice(), SayStandardVoice.HELLE); - model.setVoice(SayStandardVoice.HEDDA); - Assert.assertEquals(model.getVoice(), SayStandardVoice.HEDDA); - model.setVoice(SayStandardVoice.HAYLEY); - Assert.assertEquals(model.getVoice(), SayStandardVoice.HAYLEY); - model.setVoice(SayStandardVoice.HEATHER); - Assert.assertEquals(model.getVoice(), SayStandardVoice.HEATHER); - model.setVoice(SayStandardVoice.HAZEL); - Assert.assertEquals(model.getVoice(), SayStandardVoice.HAZEL); - model.setVoice(SayStandardVoice.HEERA); - Assert.assertEquals(model.getVoice(), SayStandardVoice.HEERA); - model.setVoice(SayStandardVoice.HELEN); - Assert.assertEquals(model.getVoice(), SayStandardVoice.HELEN); - model.setVoice(SayStandardVoice.ZIRA_PRO); - Assert.assertEquals(model.getVoice(), SayStandardVoice.ZIRA_PRO); - model.setVoice(SayStandardVoice.HELENA); - Assert.assertEquals(model.getVoice(), SayStandardVoice.HELENA); - model.setVoice(SayStandardVoice.HILDA); - Assert.assertEquals(model.getVoice(), SayStandardVoice.HILDA); - model.setVoice(SayStandardVoice.HEIDI); - Assert.assertEquals(model.getVoice(), SayStandardVoice.HEIDI); - model.setVoice(SayStandardVoice.HARMONIE); - Assert.assertEquals(model.getVoice(), SayStandardVoice.HARMONIE); - model.setVoice(SayStandardVoice.HORTENSE); - Assert.assertEquals(model.getVoice(), SayStandardVoice.HORTENSE); - model.setVoice(SayStandardVoice.LUCIA); - Assert.assertEquals(model.getVoice(), SayStandardVoice.LUCIA); - model.setVoice(SayStandardVoice.HARKUA); - Assert.assertEquals(model.getVoice(), SayStandardVoice.HARKUA); - model.setVoice(SayStandardVoice.HEAMI); - Assert.assertEquals(model.getVoice(), SayStandardVoice.HEAMI); - model.setVoice(SayStandardVoice.HULDA); - Assert.assertEquals(model.getVoice(), SayStandardVoice.HULDA); - model.setVoice(SayStandardVoice.HANNA); - Assert.assertEquals(model.getVoice(), SayStandardVoice.HANNA); - model.setVoice(SayStandardVoice.PAULINA); - Assert.assertEquals(model.getVoice(), SayStandardVoice.PAULINA); - model.setVoice(SayStandardVoice.HELOSIA); - Assert.assertEquals(model.getVoice(), SayStandardVoice.HELOSIA); - model.setVoice(SayStandardVoice.HELIA); - Assert.assertEquals(model.getVoice(), SayStandardVoice.HELIA); - model.setVoice(SayStandardVoice.ELENA); - Assert.assertEquals(model.getVoice(), SayStandardVoice.ELENA); - model.setVoice(SayStandardVoice.HEDVIG); - Assert.assertEquals(model.getVoice(), SayStandardVoice.HEDVIG); - model.setVoice(SayStandardVoice.HUN_YEE); - Assert.assertEquals(model.getVoice(), SayStandardVoice.HUN_YEE); - model.setVoice(SayStandardVoice.HAN_HAN); - Assert.assertEquals(model.getVoice(), SayStandardVoice.HAN_HAN); - } - - /** Test the property 'culture' */ - @Test - public void cultureTest() { - model.setCulture(SayStandardCulture.CA_ES); - Assert.assertEquals(model.getCulture(), SayStandardCulture.CA_ES); - model.setCulture(SayStandardCulture.DA_DK); - Assert.assertEquals(model.getCulture(), SayStandardCulture.DA_DK); - model.setCulture(SayStandardCulture.DE_DE); - Assert.assertEquals(model.getCulture(), SayStandardCulture.DE_DE); - model.setCulture(SayStandardCulture.EN_AU); - Assert.assertEquals(model.getCulture(), SayStandardCulture.EN_AU); - model.setCulture(SayStandardCulture.EN_CA); - Assert.assertEquals(model.getCulture(), SayStandardCulture.EN_CA); - model.setCulture(SayStandardCulture.EN_GB); - Assert.assertEquals(model.getCulture(), SayStandardCulture.EN_GB); - model.setCulture(SayStandardCulture.EN_IN); - Assert.assertEquals(model.getCulture(), SayStandardCulture.EN_IN); - model.setCulture(SayStandardCulture.EN_US); - Assert.assertEquals(model.getCulture(), SayStandardCulture.EN_US); - model.setCulture(SayStandardCulture.ES_ES); - Assert.assertEquals(model.getCulture(), SayStandardCulture.ES_ES); - model.setCulture(SayStandardCulture.ES_MX); - Assert.assertEquals(model.getCulture(), SayStandardCulture.ES_MX); - model.setCulture(SayStandardCulture.FI_FI); - Assert.assertEquals(model.getCulture(), SayStandardCulture.FI_FI); - model.setCulture(SayStandardCulture.FR_CA); - Assert.assertEquals(model.getCulture(), SayStandardCulture.FR_CA); - model.setCulture(SayStandardCulture.FR_FR); - Assert.assertEquals(model.getCulture(), SayStandardCulture.FR_FR); - model.setCulture(SayStandardCulture.IT_IT); - Assert.assertEquals(model.getCulture(), SayStandardCulture.IT_IT); - model.setCulture(SayStandardCulture.JA_JP); - Assert.assertEquals(model.getCulture(), SayStandardCulture.JA_JP); - model.setCulture(SayStandardCulture.KO_KR); - Assert.assertEquals(model.getCulture(), SayStandardCulture.KO_KR); - model.setCulture(SayStandardCulture.NB_NO); - Assert.assertEquals(model.getCulture(), SayStandardCulture.NB_NO); - model.setCulture(SayStandardCulture.NL_NL); - Assert.assertEquals(model.getCulture(), SayStandardCulture.NL_NL); - model.setCulture(SayStandardCulture.PL_PL); - Assert.assertEquals(model.getCulture(), SayStandardCulture.PL_PL); - model.setCulture(SayStandardCulture.PT_BR); - Assert.assertEquals(model.getCulture(), SayStandardCulture.PT_BR); - model.setCulture(SayStandardCulture.PT_PT); - Assert.assertEquals(model.getCulture(), SayStandardCulture.PT_PT); - model.setCulture(SayStandardCulture.RU_RU); - Assert.assertEquals(model.getCulture(), SayStandardCulture.RU_RU); - model.setCulture(SayStandardCulture.SV_SE); - Assert.assertEquals(model.getCulture(), SayStandardCulture.SV_SE); - model.setCulture(SayStandardCulture.ZH_CN); - Assert.assertEquals(model.getCulture(), SayStandardCulture.ZH_CN); - model.setCulture(SayStandardCulture.ZH_HK); - Assert.assertEquals(model.getCulture(), SayStandardCulture.ZH_HK); - model.setCulture(SayStandardCulture.ZH_TW); - Assert.assertEquals(model.getCulture(), SayStandardCulture.ZH_TW); - } + public void parametersTest() { - /** Test the property 'contentType' */ - @Test - public void contentTypeTest() { - model.setContentType(SayStandardContentType.TEXT_PLAIN); - Assert.assertEquals(model.getContentType(), SayStandardContentType.TEXT_PLAIN); - model.setContentType(SayStandardContentType.APPLICATION_SSML_XML); - Assert.assertEquals(model.getContentType(), SayStandardContentType.APPLICATION_SSML_XML); + SayStandardEngineParameters object = new SayStandardEngineParameters(); + model.setParameters(object); + Assert.assertEquals(object.getClass(), SayStandardEngineParameters.class); } /** Test the method 'equalsTrue' */ @@ -161,21 +47,17 @@ public void equalsTrueTest() { test1.setName("TS"); - test1.setVoice(SayStandardVoice.HERENA); - - test1.setCulture(SayStandardCulture.CA_ES); - - test1.setContentType(SayStandardContentType.TEXT_PLAIN); + SayStandardEngineParameters testSayStandardEngineParametersObject = + new SayStandardEngineParameters(); + test1.setParameters(testSayStandardEngineParametersObject); SayStandardEngine test2 = new SayStandardEngine(); test2.setName("TS"); - test2.setVoice(SayStandardVoice.HERENA); - - test2.setCulture(SayStandardCulture.CA_ES); - - test2.setContentType(SayStandardContentType.TEXT_PLAIN); + SayStandardEngineParameters testSayStandardEngineParametersObject2 = + testSayStandardEngineParametersObject; + test2.setParameters(testSayStandardEngineParametersObject2); Assert.assertTrue(test1.equals(test2)); } @@ -187,21 +69,17 @@ public void equalsFalseTest() { test1.setName("TS"); - test1.setVoice(SayStandardVoice.HELLE); - - test1.setCulture(SayStandardCulture.DA_DK); - - test1.setContentType(SayStandardContentType.APPLICATION_SSML_XML); + SayStandardEngineParameters testSayStandardEngineParametersObject = + new SayStandardEngineParameters(); + test1.setParameters(testSayStandardEngineParametersObject); SayStandardEngine test2 = new SayStandardEngine(); test2.setName("TS2"); - test2.setVoice(SayStandardVoice.HERENA); - - test2.setCulture(SayStandardCulture.CA_ES); - - test2.setContentType(SayStandardContentType.TEXT_PLAIN); + SayStandardEngineParameters testSayStandardEngineParametersObject2 = + new SayStandardEngineParameters(); + test2.setParameters(testSayStandardEngineParametersObject2); Assert.assertFalse(test1.equals(test2)); } @@ -213,11 +91,9 @@ public void hashCodeTypeTest() { test1.setName("TS"); - test1.setVoice(SayStandardVoice.HERENA); - - test1.setCulture(SayStandardCulture.CA_ES); - - test1.setContentType(SayStandardContentType.TEXT_PLAIN); + SayStandardEngineParameters testSayStandardEngineParametersObject = + new SayStandardEngineParameters(); + test1.setParameters(testSayStandardEngineParametersObject); int hashCode1 = test1.hashCode(); Assert.assertTrue(Integer.class.isInstance(hashCode1)); @@ -230,21 +106,17 @@ public void toStringEqualsTest() { test1.setName("TS"); - test1.setVoice(SayStandardVoice.HERENA); - - test1.setCulture(SayStandardCulture.CA_ES); - - test1.setContentType(SayStandardContentType.TEXT_PLAIN); + SayStandardEngineParameters testSayStandardEngineParametersObject = + new SayStandardEngineParameters(); + test1.setParameters(testSayStandardEngineParametersObject); SayStandardEngine test2 = new SayStandardEngine(); test2.setName("TS"); - test2.setVoice(SayStandardVoice.HERENA); - - test2.setCulture(SayStandardCulture.CA_ES); - - test2.setContentType(SayStandardContentType.TEXT_PLAIN); + SayStandardEngineParameters testSayStandardEngineParametersObject2 = + testSayStandardEngineParametersObject; + test2.setParameters(testSayStandardEngineParametersObject2); String toString1 = test1.toString(); String toString2 = test2.toString(); @@ -258,21 +130,17 @@ public void hashCodeEqualsTrueTest() { test1.setName("TS"); - test1.setVoice(SayStandardVoice.HERENA); - - test1.setCulture(SayStandardCulture.CA_ES); - - test1.setContentType(SayStandardContentType.TEXT_PLAIN); + SayStandardEngineParameters testSayStandardEngineParametersObject = + new SayStandardEngineParameters(); + test1.setParameters(testSayStandardEngineParametersObject); SayStandardEngine test2 = new SayStandardEngine(); test2.setName("TS"); - test2.setVoice(SayStandardVoice.HERENA); - - test2.setCulture(SayStandardCulture.CA_ES); - - test2.setContentType(SayStandardContentType.TEXT_PLAIN); + SayStandardEngineParameters testSayStandardEngineParametersObject2 = + testSayStandardEngineParametersObject; + test2.setParameters(testSayStandardEngineParametersObject2); Assert.assertEquals(test1.hashCode(), test2.hashCode()); } @@ -284,21 +152,17 @@ public void hashCodeEqualsFalseTest() { test1.setName("TS"); - test1.setVoice(SayStandardVoice.HELLE); - - test1.setCulture(SayStandardCulture.DA_DK); - - test1.setContentType(SayStandardContentType.APPLICATION_SSML_XML); + SayStandardEngineParameters testSayStandardEngineParametersObject = + new SayStandardEngineParameters(); + test1.setParameters(testSayStandardEngineParametersObject); SayStandardEngine test2 = new SayStandardEngine(); test2.setName("TS2"); - test2.setVoice(SayStandardVoice.HERENA); - - test2.setCulture(SayStandardCulture.CA_ES); - - test2.setContentType(SayStandardContentType.TEXT_PLAIN); + SayStandardEngineParameters testSayStandardEngineParametersObject2 = + new SayStandardEngineParameters(); + test2.setParameters(testSayStandardEngineParametersObject2); Assert.assertNotEquals(test1.hashCode(), test2.hashCode()); } @@ -310,11 +174,9 @@ public void toStringTypeTest() { test1.setName("TS"); - test1.setVoice(SayStandardVoice.HERENA); - - test1.setCulture(SayStandardCulture.CA_ES); - - test1.setContentType(SayStandardContentType.TEXT_PLAIN); + SayStandardEngineParameters testSayStandardEngineParametersObject = + new SayStandardEngineParameters(); + test1.setParameters(testSayStandardEngineParametersObject); String toString1 = test1.toString(); Assert.assertTrue(String.class.isInstance(toString1)); From 9c721f74a10debf17e29731648b0a4aa6ac1697e Mon Sep 17 00:00:00 2001 From: Navneet Garg Date: Mon, 27 Oct 2025 22:14:21 -0400 Subject: [PATCH 4/4] Simpllify TTS Support --- .openapi-generator/FILES | 54 +- README.md | 18 +- docs/DefaultApi.md | 18 +- docs/Say.md | 4 +- docs/SayClassic.md | 17 - docs/SayElevenLabs.md | 17 - docs/SayElevenLabsEngine.md | 15 - docs/SayElevenLabsEngineParameters.md | 24 - ...eParametersPronunciationDictionaryInner.md | 14 - ...ElevenLabsEngineParametersVoiceSettings.md | 18 - docs/SayNeural.md | 17 - docs/SayNeuralEngine.md | 15 - docs/SayNeuralEngineParameters.md | 16 - docs/SayNeuralTextType.md | 13 - docs/SayStandard.md | 17 - docs/SayStandardContentType.md | 13 - docs/SayStandardCulture.md | 61 -- docs/SayStandardEngine.md | 15 - docs/SayStandardEngineParameters.md | 16 - docs/SayStandardVoice.md | 61 -- docs/TTSEngine.md | 14 + docs/TTSEngineName.md | 15 + openapi.json | 380 ++--------- .../com/github/freeclimbapi/DefaultApi.java | 70 +- .../enums/SayStandardContentType.java | 69 -- .../enums/SayStandardCulture.java | 117 ---- .../freeclimbapi/enums/SayStandardVoice.java | 117 ---- ...NeuralTextType.java => TTSEngineName.java} | 28 +- .../com/github/freeclimbapi/models/Say.java | 128 ++-- .../freeclimbapi/models/SayClassic.java | 210 ------ .../freeclimbapi/models/SayElevenLabs.java | 205 ------ .../models/SayElevenLabsEngine.java | 132 ---- .../models/SayElevenLabsEngineParameters.java | 453 ------------- ...arametersPronunciationDictionaryInner.java | 131 ---- ...evenLabsEngineParametersVoiceSettings.java | 218 ------ .../github/freeclimbapi/models/SayNeural.java | 206 ------ .../models/SayNeuralEngineParameters.java | 164 ----- .../freeclimbapi/models/SayStandard.java | 205 ------ .../models/SayStandardEngine.java | 133 ---- .../models/SayStandardEngineParameters.java | 156 ----- .../{SayNeuralEngine.java => TTSEngine.java} | 64 +- .../freeclimbapi/api/DefaultApiTest.java | 16 +- .../enums/SayNeuralTextTypeTest.java | 69 -- .../enums/SayStandardContentTypeTest.java | 70 -- .../enums/SayStandardCultureTest.java | 621 ------------------ .../enums/SayStandardVoiceTest.java | 621 ------------------ .../freeclimbapi/enums/TTSEngineNameTest.java | 92 +++ .../freeclimbapi/models/SayClassicTest.java | 222 ------- ...etersPronunciationDictionaryInnerTest.java | 172 ----- .../SayElevenLabsEngineParametersTest.java | 521 --------------- ...LabsEngineParametersVoiceSettingsTest.java | 172 ----- .../models/SayElevenLabsEngineTest.java | 184 ------ .../models/SayElevenLabsTest.java | 235 ------- .../models/SayNeuralEngineParametersTest.java | 192 ------ .../models/SayNeuralEngineTest.java | 184 ------ .../freeclimbapi/models/SayNeuralTest.java | 235 ------- .../SayStandardEngineParametersTest.java | 280 -------- .../models/SayStandardEngineTest.java | 184 ------ .../freeclimbapi/models/SayStandardTest.java | 235 ------- .../github/freeclimbapi/models/SayTest.java | 161 +++-- .../freeclimbapi/models/TTSEngineTest.java | 167 +++++ 61 files changed, 556 insertions(+), 7735 deletions(-) delete mode 100644 docs/SayClassic.md delete mode 100644 docs/SayElevenLabs.md delete mode 100644 docs/SayElevenLabsEngine.md delete mode 100644 docs/SayElevenLabsEngineParameters.md delete mode 100644 docs/SayElevenLabsEngineParametersPronunciationDictionaryInner.md delete mode 100644 docs/SayElevenLabsEngineParametersVoiceSettings.md delete mode 100644 docs/SayNeural.md delete mode 100644 docs/SayNeuralEngine.md delete mode 100644 docs/SayNeuralEngineParameters.md delete mode 100644 docs/SayNeuralTextType.md delete mode 100644 docs/SayStandard.md delete mode 100644 docs/SayStandardContentType.md delete mode 100644 docs/SayStandardCulture.md delete mode 100644 docs/SayStandardEngine.md delete mode 100644 docs/SayStandardEngineParameters.md delete mode 100644 docs/SayStandardVoice.md create mode 100644 docs/TTSEngine.md create mode 100644 docs/TTSEngineName.md delete mode 100644 src/main/java/com/github/freeclimbapi/enums/SayStandardContentType.java delete mode 100644 src/main/java/com/github/freeclimbapi/enums/SayStandardCulture.java delete mode 100644 src/main/java/com/github/freeclimbapi/enums/SayStandardVoice.java rename src/main/java/com/github/freeclimbapi/enums/{SayNeuralTextType.java => TTSEngineName.java} (70%) delete mode 100644 src/main/java/com/github/freeclimbapi/models/SayClassic.java delete mode 100644 src/main/java/com/github/freeclimbapi/models/SayElevenLabs.java delete mode 100644 src/main/java/com/github/freeclimbapi/models/SayElevenLabsEngine.java delete mode 100644 src/main/java/com/github/freeclimbapi/models/SayElevenLabsEngineParameters.java delete mode 100644 src/main/java/com/github/freeclimbapi/models/SayElevenLabsEngineParametersPronunciationDictionaryInner.java delete mode 100644 src/main/java/com/github/freeclimbapi/models/SayElevenLabsEngineParametersVoiceSettings.java delete mode 100644 src/main/java/com/github/freeclimbapi/models/SayNeural.java delete mode 100644 src/main/java/com/github/freeclimbapi/models/SayNeuralEngineParameters.java delete mode 100644 src/main/java/com/github/freeclimbapi/models/SayStandard.java delete mode 100644 src/main/java/com/github/freeclimbapi/models/SayStandardEngine.java delete mode 100644 src/main/java/com/github/freeclimbapi/models/SayStandardEngineParameters.java rename src/main/java/com/github/freeclimbapi/models/{SayNeuralEngine.java => TTSEngine.java} (68%) delete mode 100644 src/test/java/com/github/freeclimbapi/enums/SayNeuralTextTypeTest.java delete mode 100644 src/test/java/com/github/freeclimbapi/enums/SayStandardContentTypeTest.java delete mode 100644 src/test/java/com/github/freeclimbapi/enums/SayStandardCultureTest.java delete mode 100644 src/test/java/com/github/freeclimbapi/enums/SayStandardVoiceTest.java create mode 100644 src/test/java/com/github/freeclimbapi/enums/TTSEngineNameTest.java delete mode 100644 src/test/java/com/github/freeclimbapi/models/SayClassicTest.java delete mode 100644 src/test/java/com/github/freeclimbapi/models/SayElevenLabsEngineParametersPronunciationDictionaryInnerTest.java delete mode 100644 src/test/java/com/github/freeclimbapi/models/SayElevenLabsEngineParametersTest.java delete mode 100644 src/test/java/com/github/freeclimbapi/models/SayElevenLabsEngineParametersVoiceSettingsTest.java delete mode 100644 src/test/java/com/github/freeclimbapi/models/SayElevenLabsEngineTest.java delete mode 100644 src/test/java/com/github/freeclimbapi/models/SayElevenLabsTest.java delete mode 100644 src/test/java/com/github/freeclimbapi/models/SayNeuralEngineParametersTest.java delete mode 100644 src/test/java/com/github/freeclimbapi/models/SayNeuralEngineTest.java delete mode 100644 src/test/java/com/github/freeclimbapi/models/SayNeuralTest.java delete mode 100644 src/test/java/com/github/freeclimbapi/models/SayStandardEngineParametersTest.java delete mode 100644 src/test/java/com/github/freeclimbapi/models/SayStandardEngineTest.java delete mode 100644 src/test/java/com/github/freeclimbapi/models/SayStandardTest.java create mode 100644 src/test/java/com/github/freeclimbapi/models/TTSEngineTest.java diff --git a/.openapi-generator/FILES b/.openapi-generator/FILES index f69df950..2ee06e48 100644 --- a/.openapi-generator/FILES +++ b/.openapi-generator/FILES @@ -139,22 +139,6 @@ docs/SMSTollFreeCampaign.md docs/SMSTollFreeCampaignRegistrationStatus.md docs/SMSTollFreeCampaignsListResult.md docs/Say.md -docs/SayClassic.md -docs/SayElevenLabs.md -docs/SayElevenLabsEngine.md -docs/SayElevenLabsEngineParameters.md -docs/SayElevenLabsEngineParametersPronunciationDictionaryInner.md -docs/SayElevenLabsEngineParametersVoiceSettings.md -docs/SayNeural.md -docs/SayNeuralEngine.md -docs/SayNeuralEngineParameters.md -docs/SayNeuralTextType.md -docs/SayStandard.md -docs/SayStandardContentType.md -docs/SayStandardCulture.md -docs/SayStandardEngine.md -docs/SayStandardEngineParameters.md -docs/SayStandardVoice.md docs/SendDigits.md docs/SetDTMFPassThrough.md docs/SetListen.md @@ -163,6 +147,8 @@ docs/Sms.md docs/StartRecordCall.md docs/TFN.md docs/TFNCampaign.md +docs/TTSEngine.md +docs/TTSEngineName.md docs/TerminateConference.md docs/TranscribeReason.md docs/TranscribeTermReason.md @@ -330,22 +316,6 @@ src/main/java/com/github/freeclimbapi/SMSTollFreeCampaign.java src/main/java/com/github/freeclimbapi/SMSTollFreeCampaignRegistrationStatus.java src/main/java/com/github/freeclimbapi/SMSTollFreeCampaignsListResult.java src/main/java/com/github/freeclimbapi/Say.java -src/main/java/com/github/freeclimbapi/SayClassic.java -src/main/java/com/github/freeclimbapi/SayElevenLabs.java -src/main/java/com/github/freeclimbapi/SayElevenLabsEngine.java -src/main/java/com/github/freeclimbapi/SayElevenLabsEngineParameters.java -src/main/java/com/github/freeclimbapi/SayElevenLabsEngineParametersPronunciationDictionaryInner.java -src/main/java/com/github/freeclimbapi/SayElevenLabsEngineParametersVoiceSettings.java -src/main/java/com/github/freeclimbapi/SayNeural.java -src/main/java/com/github/freeclimbapi/SayNeuralEngine.java -src/main/java/com/github/freeclimbapi/SayNeuralEngineParameters.java -src/main/java/com/github/freeclimbapi/SayNeuralTextType.java -src/main/java/com/github/freeclimbapi/SayStandard.java -src/main/java/com/github/freeclimbapi/SayStandardContentType.java -src/main/java/com/github/freeclimbapi/SayStandardCulture.java -src/main/java/com/github/freeclimbapi/SayStandardEngine.java -src/main/java/com/github/freeclimbapi/SayStandardEngineParameters.java -src/main/java/com/github/freeclimbapi/SayStandardVoice.java src/main/java/com/github/freeclimbapi/SendDigits.java src/main/java/com/github/freeclimbapi/ServerConfiguration.java src/main/java/com/github/freeclimbapi/ServerVariable.java @@ -357,6 +327,8 @@ src/main/java/com/github/freeclimbapi/StartRecordCall.java src/main/java/com/github/freeclimbapi/StringUtil.java src/main/java/com/github/freeclimbapi/TFN.java src/main/java/com/github/freeclimbapi/TFNCampaign.java +src/main/java/com/github/freeclimbapi/TTSEngine.java +src/main/java/com/github/freeclimbapi/TTSEngineName.java src/main/java/com/github/freeclimbapi/TerminateConference.java src/main/java/com/github/freeclimbapi/TranscribeReason.java src/main/java/com/github/freeclimbapi/TranscribeTermReason.java @@ -507,22 +479,6 @@ src/test/java/com/github/freeclimbapi/SMSTenDLCPartnerCampaignsListResultTest.ja src/test/java/com/github/freeclimbapi/SMSTollFreeCampaignRegistrationStatusTest.java src/test/java/com/github/freeclimbapi/SMSTollFreeCampaignTest.java src/test/java/com/github/freeclimbapi/SMSTollFreeCampaignsListResultTest.java -src/test/java/com/github/freeclimbapi/SayClassicTest.java -src/test/java/com/github/freeclimbapi/SayElevenLabsEngineParametersPronunciationDictionaryInnerTest.java -src/test/java/com/github/freeclimbapi/SayElevenLabsEngineParametersTest.java -src/test/java/com/github/freeclimbapi/SayElevenLabsEngineParametersVoiceSettingsTest.java -src/test/java/com/github/freeclimbapi/SayElevenLabsEngineTest.java -src/test/java/com/github/freeclimbapi/SayElevenLabsTest.java -src/test/java/com/github/freeclimbapi/SayNeuralEngineParametersTest.java -src/test/java/com/github/freeclimbapi/SayNeuralEngineTest.java -src/test/java/com/github/freeclimbapi/SayNeuralTest.java -src/test/java/com/github/freeclimbapi/SayNeuralTextTypeTest.java -src/test/java/com/github/freeclimbapi/SayStandardContentTypeTest.java -src/test/java/com/github/freeclimbapi/SayStandardCultureTest.java -src/test/java/com/github/freeclimbapi/SayStandardEngineParametersTest.java -src/test/java/com/github/freeclimbapi/SayStandardEngineTest.java -src/test/java/com/github/freeclimbapi/SayStandardTest.java -src/test/java/com/github/freeclimbapi/SayStandardVoiceTest.java src/test/java/com/github/freeclimbapi/SayTest.java src/test/java/com/github/freeclimbapi/SendDigitsTest.java src/test/java/com/github/freeclimbapi/SetDTMFPassThroughTest.java @@ -532,6 +488,8 @@ src/test/java/com/github/freeclimbapi/SmsTest.java src/test/java/com/github/freeclimbapi/StartRecordCallTest.java src/test/java/com/github/freeclimbapi/TFNCampaignTest.java src/test/java/com/github/freeclimbapi/TFNTest.java +src/test/java/com/github/freeclimbapi/TTSEngineNameTest.java +src/test/java/com/github/freeclimbapi/TTSEngineTest.java src/test/java/com/github/freeclimbapi/TerminateConferenceTest.java src/test/java/com/github/freeclimbapi/TranscribeReasonTest.java src/test/java/com/github/freeclimbapi/TranscribeTermReasonTest.java diff --git a/README.md b/README.md index 692532b3..bfe8d9d1 100644 --- a/README.md +++ b/README.md @@ -348,22 +348,6 @@ Class | Method | HTTP request | Description - [SMSTollFreeCampaignRegistrationStatus](docs/SMSTollFreeCampaignRegistrationStatus.md) - [SMSTollFreeCampaignsListResult](docs/SMSTollFreeCampaignsListResult.md) - [Say](docs/Say.md) - - [SayClassic](docs/SayClassic.md) - - [SayElevenLabs](docs/SayElevenLabs.md) - - [SayElevenLabsEngine](docs/SayElevenLabsEngine.md) - - [SayElevenLabsEngineParameters](docs/SayElevenLabsEngineParameters.md) - - [SayElevenLabsEngineParametersPronunciationDictionaryInner](docs/SayElevenLabsEngineParametersPronunciationDictionaryInner.md) - - [SayElevenLabsEngineParametersVoiceSettings](docs/SayElevenLabsEngineParametersVoiceSettings.md) - - [SayNeural](docs/SayNeural.md) - - [SayNeuralEngine](docs/SayNeuralEngine.md) - - [SayNeuralEngineParameters](docs/SayNeuralEngineParameters.md) - - [SayNeuralTextType](docs/SayNeuralTextType.md) - - [SayStandard](docs/SayStandard.md) - - [SayStandardContentType](docs/SayStandardContentType.md) - - [SayStandardCulture](docs/SayStandardCulture.md) - - [SayStandardEngine](docs/SayStandardEngine.md) - - [SayStandardEngineParameters](docs/SayStandardEngineParameters.md) - - [SayStandardVoice](docs/SayStandardVoice.md) - [SendDigits](docs/SendDigits.md) - [SetDTMFPassThrough](docs/SetDTMFPassThrough.md) - [SetListen](docs/SetListen.md) @@ -372,6 +356,8 @@ Class | Method | HTTP request | Description - [StartRecordCall](docs/StartRecordCall.md) - [TFN](docs/TFN.md) - [TFNCampaign](docs/TFNCampaign.md) + - [TTSEngine](docs/TTSEngine.md) + - [TTSEngineName](docs/TTSEngineName.md) - [TerminateConference](docs/TerminateConference.md) - [TranscribeReason](docs/TranscribeReason.md) - [TranscribeTermReason](docs/TranscribeTermReason.md) diff --git a/docs/DefaultApi.md b/docs/DefaultApi.md index 260684f4..c8900044 100644 --- a/docs/DefaultApi.md +++ b/docs/DefaultApi.md @@ -823,7 +823,7 @@ null (empty response body) # **deleteBlob** -> BlobResult deleteBlob(blobId, key) +> BlobResult deleteBlob(blobId) Delete Blob @@ -852,9 +852,8 @@ public class Example { String blobId = "blobId_example"; // String | String that uniquely identifies this Blob resource. - List key = new List(); // List | key within blob to remove try { - BlobResult result = apiInstance.deleteBlob(blobId, key); + BlobResult result = apiInstance.deleteBlob(blobId); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling DefaultApi#deleteBlob"); @@ -872,7 +871,6 @@ public class Example { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **blobId** | **String**| String that uniquely identifies this Blob resource. | - **key** | [**List<String>**](String.md)| key within blob to remove | [optional] ### Return type @@ -2960,7 +2958,7 @@ Name | Type | Description | Notes # **listBlobs** -> BlobListResponse listBlobs(alias, cursor) +> BlobListResponse listBlobs() List Blobs belonging to an account. @@ -2987,12 +2985,8 @@ public class Example { DefaultApi apiInstance = new DefaultApi(defaultClient); - String alias = "alias_example"; // String | Filter blobs by alias - - String cursor = "cursor_example"; // String | Used to reference pages of a list of blobs - try { - BlobListResponse result = apiInstance.listBlobs(alias, cursor); + BlobListResponse result = apiInstance.listBlobs(); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling DefaultApi#listBlobs"); @@ -3007,10 +3001,6 @@ public class Example { ### Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **alias** | **String**| Filter blobs by alias | [optional] - **cursor** | **String**| Used to reference pages of a list of blobs | [optional] ### Return type diff --git a/docs/Say.md b/docs/Say.md index 634a5be9..00718048 100644 --- a/docs/Say.md +++ b/docs/Say.md @@ -9,10 +9,10 @@ The `Say` command provides Text-To-Speech (TTS) support. It converts text to spe Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **text** | **String** | The message to be played to the caller using TTS. The size of the string is limited to 4 KB (or 4,096 bytes). An empty string will cause the command to be skipped. | +**language** | **String** | Language and (by implication) the locale to use. This implies the accent and pronunciations to be usde for the TTS. The complete list of valid values for the language attribute is shown below. | [optional] +**engine** | [**TTSEngine**](TTSEngine.md) | | [optional] **loop** | **Integer** | Number of times the text is said. Specifying '0' causes the `Say` action to loop until the Call is hung up. | [optional] **privacyMode** | **Boolean** | Parameter `privacyMode` will not log the `text` as required by PCI compliance. | [optional] -**engine** | [**SayStandardEngine**](SayStandardEngine.md) | | -**language** | **String** | Language and (by implication) the locale to use. This implies the accent and pronunciations to be usde for the TTS. The complete list of valid values for the language attribute is shown below. | [optional] diff --git a/docs/SayClassic.md b/docs/SayClassic.md deleted file mode 100644 index 8f542573..00000000 --- a/docs/SayClassic.md +++ /dev/null @@ -1,17 +0,0 @@ - - -# SayClassic - -The `Say` command provides Text-To-Speech (TTS) support. It converts text to speech and then renders it in a female voice back to the caller. `Say` is useful in cases where it's difficult to pre-record a prompt for any reason. `Say` does not allow barge-in unless nested within a `GetSpeech` command. The file will always be played to completion unless nested. - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**text** | **String** | The message to be played to the caller using TTS. The size of the string is limited to 4 KB (or 4,096 bytes). An empty string will cause the command to be skipped. | -**language** | **String** | Language and (by implication) the locale to use. This implies the accent and pronunciations to be usde for the TTS. The complete list of valid values for the language attribute is shown below. | [optional] -**loop** | **Integer** | Number of times the text is said. Specifying '0' causes the `Say` action to loop until the Call is hung up. | [optional] -**privacyMode** | **Boolean** | Parameter `privacyMode` will not log the `text` as required by PCI compliance. | [optional] - - - diff --git a/docs/SayElevenLabs.md b/docs/SayElevenLabs.md deleted file mode 100644 index 59596ab0..00000000 --- a/docs/SayElevenLabs.md +++ /dev/null @@ -1,17 +0,0 @@ - - -# SayElevenLabs - -The `SayElevenLabs` command provides Text-To-Speech (TTS) support using the ElevenLabs TTS engine. It converts text to speech and then renders it in a female voice back to the caller. `SayElevenLabs` is useful in cases where it's difficult to pre-record a prompt for any reason. `SayElevenLabs` does not allow barge-in unless nested within a `GetSpeech` command. The file will always be played to completion unless nested. - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**text** | **String** | The message to be played to the caller using TTS. The size of the string is limited to 4 KB (or 4,096 bytes). An empty string will cause the command to be skipped. | -**loop** | **Integer** | Number of times the text is said. Specifying '0' causes the `SayElevenLabs` action to loop until the Call is hung up. | [optional] -**privacyMode** | **Boolean** | Parameter `privacyMode` will not log the `text` as required by PCI compliance. | [optional] -**engine** | [**SayElevenLabsEngine**](SayElevenLabsEngine.md) | | - - - diff --git a/docs/SayElevenLabsEngine.md b/docs/SayElevenLabsEngine.md deleted file mode 100644 index 34e243c6..00000000 --- a/docs/SayElevenLabsEngine.md +++ /dev/null @@ -1,15 +0,0 @@ - - -# SayElevenLabsEngine - -The engine to use for the TTS. The complete list of valid values for the engine attribute is shown below. - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**name** | **String** | The name of the TTS engine to use. Set to `elevenlabs.tts` to use the elevenlabs.tts TTS engine. | [optional] -**parameters** | [**SayElevenLabsEngineParameters**](SayElevenLabsEngineParameters.md) | | [optional] - - - diff --git a/docs/SayElevenLabsEngineParameters.md b/docs/SayElevenLabsEngineParameters.md deleted file mode 100644 index f630bc67..00000000 --- a/docs/SayElevenLabsEngineParameters.md +++ /dev/null @@ -1,24 +0,0 @@ - - -# SayElevenLabsEngineParameters - -The parameters to use for the TTS. The complete list of valid values for the parameters attribute is shown below. - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**modelId** | **String** | The ID of the ElevenLabs model to use for the TTS. The complete list of valid values for the model_id attribute is shown below. | [optional] -**voiceId** | **String** | The ID of the ElevenLabs voice to use for the TTS. The complete list of valid values for the voice_id attribute is shown below. | [optional] -**languageCode** | **String** | The language code to use for the TTS. The complete list of valid values for the language_code attribute is shown below. | [optional] -**voiceSettings** | [**SayElevenLabsEngineParametersVoiceSettings**](SayElevenLabsEngineParametersVoiceSettings.md) | | [optional] -**pronunciationDictionary** | [**List<SayElevenLabsEngineParametersPronunciationDictionaryInner>**](SayElevenLabsEngineParametersPronunciationDictionaryInner.md) | | [optional] -**seed** | **Integer** | | [optional] -**previousText** | **String** | | [optional] -**nextText** | **String** | | [optional] -**previousRequestIds** | **List<String>** | | [optional] -**nextRequestIds** | **List<String>** | | [optional] -**applyLanguageTextNormalization** | **Boolean** | | [optional] - - - diff --git a/docs/SayElevenLabsEngineParametersPronunciationDictionaryInner.md b/docs/SayElevenLabsEngineParametersPronunciationDictionaryInner.md deleted file mode 100644 index 99ad2ba4..00000000 --- a/docs/SayElevenLabsEngineParametersPronunciationDictionaryInner.md +++ /dev/null @@ -1,14 +0,0 @@ - - -# SayElevenLabsEngineParametersPronunciationDictionaryInner - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**pronunciationDictionaryId** | **String** | | [optional] -**versionId** | **String** | | [optional] - - - diff --git a/docs/SayElevenLabsEngineParametersVoiceSettings.md b/docs/SayElevenLabsEngineParametersVoiceSettings.md deleted file mode 100644 index fa9e15d0..00000000 --- a/docs/SayElevenLabsEngineParametersVoiceSettings.md +++ /dev/null @@ -1,18 +0,0 @@ - - -# SayElevenLabsEngineParametersVoiceSettings - -The voice settings to use for the TTS. The complete list of valid values for the voice_settings attribute is shown below. - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**stability** | **BigDecimal** | | [optional] -**useSpeakerBoost** | **Boolean** | | [optional] -**similarityBoost** | **BigDecimal** | | [optional] -**style** | **BigDecimal** | | [optional] -**speed** | **BigDecimal** | | [optional] - - - diff --git a/docs/SayNeural.md b/docs/SayNeural.md deleted file mode 100644 index 9f490ac5..00000000 --- a/docs/SayNeural.md +++ /dev/null @@ -1,17 +0,0 @@ - - -# SayNeural - -The `SayNeural` command provides Text-To-Speech (TTS) support using the freeclimb.neural TTS engine. It converts text to speech and then renders it in a female voice back to the caller. `SayNeural` is useful in cases where it's difficult to pre-record a prompt for any reason. `SayNeural` does not allow barge-in unless nested within a `GetSpeech` command. The file will always be played to completion unless nested. - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**text** | **String** | The message to be played to the caller using TTS. The size of the string is limited to 4 KB (or 4,096 bytes). An empty string will cause the command to be skipped. | -**loop** | **Integer** | Number of times the text is said. Specifying '0' causes the `SayNeural` action to loop until the Call is hung up. | [optional] -**privacyMode** | **Boolean** | Parameter `privacyMode` will not log the `text` as required by PCI compliance. | [optional] -**engine** | [**SayNeuralEngine**](SayNeuralEngine.md) | | - - - diff --git a/docs/SayNeuralEngine.md b/docs/SayNeuralEngine.md deleted file mode 100644 index abeed8ba..00000000 --- a/docs/SayNeuralEngine.md +++ /dev/null @@ -1,15 +0,0 @@ - - -# SayNeuralEngine - -The engine to use for the TTS. The complete list of valid values for the engine attribute is shown below. - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**name** | **String** | The name of the TTS engine to use. Set to `freeclimb.neural` to use the freeclimb.neural TTS engine. | [optional] -**parameters** | [**SayNeuralEngineParameters**](SayNeuralEngineParameters.md) | | [optional] - - - diff --git a/docs/SayNeuralEngineParameters.md b/docs/SayNeuralEngineParameters.md deleted file mode 100644 index 34936ef8..00000000 --- a/docs/SayNeuralEngineParameters.md +++ /dev/null @@ -1,16 +0,0 @@ - - -# SayNeuralEngineParameters - -The parameters to use for the TTS. The complete list of valid values for the parameters attribute is shown below. - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**voice** | **String** | The voice to use for the TTS. The complete list of valid values for the voice attribute is shown below. | [optional] -**textType** | **SayNeuralTextType** | | [optional] -**language** | **String** | The language to use for the TTS. The complete list of valid values for the language attribute is shown below. | [optional] - - - diff --git a/docs/SayNeuralTextType.md b/docs/SayNeuralTextType.md deleted file mode 100644 index f5884f12..00000000 --- a/docs/SayNeuralTextType.md +++ /dev/null @@ -1,13 +0,0 @@ - - -# SayNeuralTextType - -## Enum - - -* `TEXT` (value: `"text"`) - -* `SSML` (value: `"ssml"`) - - - diff --git a/docs/SayStandard.md b/docs/SayStandard.md deleted file mode 100644 index e6345a2a..00000000 --- a/docs/SayStandard.md +++ /dev/null @@ -1,17 +0,0 @@ - - -# SayStandard - -The `Say` command provides Text-To-Speech (TTS) support using the freeclimb.standard TTS engine. It converts text to speech and then renders it in a female voice back to the caller. `SayStandard` is useful in cases where it's difficult to pre-record a prompt for any reason. `SayStandard` does not allow barge-in unless nested within a `GetSpeech` command. The file will always be played to completion unless nested. - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**text** | **String** | The message to be played to the caller using TTS. The size of the string is limited to 4 KB (or 4,096 bytes). An empty string will cause the command to be skipped. | -**loop** | **Integer** | Number of times the text is said. Specifying '0' causes the `Say` action to loop until the Call is hung up. | [optional] -**privacyMode** | **Boolean** | Parameter `privacyMode` will not log the `text` as required by PCI compliance. | [optional] -**engine** | [**SayStandardEngine**](SayStandardEngine.md) | | - - - diff --git a/docs/SayStandardContentType.md b/docs/SayStandardContentType.md deleted file mode 100644 index 7778dff4..00000000 --- a/docs/SayStandardContentType.md +++ /dev/null @@ -1,13 +0,0 @@ - - -# SayStandardContentType - -## Enum - - -* `TEXT_PLAIN` (value: `"text/plain"`) - -* `APPLICATION_SSML_XML` (value: `"application/ssml+xml"`) - - - diff --git a/docs/SayStandardCulture.md b/docs/SayStandardCulture.md deleted file mode 100644 index 506d96e7..00000000 --- a/docs/SayStandardCulture.md +++ /dev/null @@ -1,61 +0,0 @@ - - -# SayStandardCulture - -## Enum - - -* `CA_ES` (value: `"ca-ES"`) - -* `DA_DK` (value: `"da-DK"`) - -* `DE_DE` (value: `"de-DE"`) - -* `EN_AU` (value: `"en-AU"`) - -* `EN_CA` (value: `"en-CA"`) - -* `EN_GB` (value: `"en-GB"`) - -* `EN_IN` (value: `"en-IN"`) - -* `EN_US` (value: `"en-US"`) - -* `ES_ES` (value: `"es-ES"`) - -* `ES_MX` (value: `"es-MX"`) - -* `FI_FI` (value: `"fi-FI"`) - -* `FR_CA` (value: `"fr-CA"`) - -* `FR_FR` (value: `"fr-FR"`) - -* `IT_IT` (value: `"it-IT"`) - -* `JA_JP` (value: `"ja-JP"`) - -* `KO_KR` (value: `"ko-KR"`) - -* `NB_NO` (value: `"nb-NO"`) - -* `NL_NL` (value: `"nl-NL"`) - -* `PL_PL` (value: `"pl-PL"`) - -* `PT_BR` (value: `"pt-BR"`) - -* `PT_PT` (value: `"pt-PT"`) - -* `RU_RU` (value: `"ru-RU"`) - -* `SV_SE` (value: `"sv-SE"`) - -* `ZH_CN` (value: `"zh-CN"`) - -* `ZH_HK` (value: `"zh-HK"`) - -* `ZH_TW` (value: `"zh-TW"`) - - - diff --git a/docs/SayStandardEngine.md b/docs/SayStandardEngine.md deleted file mode 100644 index 1fe642e8..00000000 --- a/docs/SayStandardEngine.md +++ /dev/null @@ -1,15 +0,0 @@ - - -# SayStandardEngine - -Language and (by implication) the locale to use. This implies the accent and pronunciations to be usde for the TTS. The complete list of valid values for the language attribute is shown below. - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**name** | **String** | The name of the TTS engine to use. Set to `freeclimb.standard` for to use the standard freeclimb TTS engine. | [optional] -**parameters** | [**SayStandardEngineParameters**](SayStandardEngineParameters.md) | | [optional] - - - diff --git a/docs/SayStandardEngineParameters.md b/docs/SayStandardEngineParameters.md deleted file mode 100644 index 626ae0da..00000000 --- a/docs/SayStandardEngineParameters.md +++ /dev/null @@ -1,16 +0,0 @@ - - -# SayStandardEngineParameters - -The parameters to use for the TTS. The complete list of valid values for the parameters attribute is shown below. - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**voice** | **SayStandardVoice** | | [optional] -**culture** | **SayStandardCulture** | | [optional] -**contentType** | **SayStandardContentType** | | [optional] - - - diff --git a/docs/SayStandardVoice.md b/docs/SayStandardVoice.md deleted file mode 100644 index 7225a03b..00000000 --- a/docs/SayStandardVoice.md +++ /dev/null @@ -1,61 +0,0 @@ - - -# SayStandardVoice - -## Enum - - -* `HERENA` (value: `"Herena"`) - -* `HELLE` (value: `"Helle"`) - -* `HEDDA` (value: `"Hedda"`) - -* `HAYLEY` (value: `"Hayley"`) - -* `HEATHER` (value: `"Heather"`) - -* `HAZEL` (value: `"Hazel"`) - -* `HEERA` (value: `"Heera"`) - -* `HELEN` (value: `"Helen"`) - -* `ZIRA_PRO` (value: `"ZiraPro"`) - -* `HELENA` (value: `"Helena"`) - -* `HILDA` (value: `"Hilda"`) - -* `HEIDI` (value: `"Heidi"`) - -* `HARMONIE` (value: `"Harmonie"`) - -* `HORTENSE` (value: `"Hortense"`) - -* `LUCIA` (value: `"Lucia"`) - -* `HARKUA` (value: `"Harkua"`) - -* `HEAMI` (value: `"Heami"`) - -* `HULDA` (value: `"Hulda"`) - -* `HANNA` (value: `"Hanna"`) - -* `PAULINA` (value: `"Paulina"`) - -* `HELOSIA` (value: `"Helosia"`) - -* `HELIA` (value: `"Helia"`) - -* `ELENA` (value: `"Elena"`) - -* `HEDVIG` (value: `"Hedvig"`) - -* `HUN_YEE` (value: `"HunYee"`) - -* `HAN_HAN` (value: `"HanHan"`) - - - diff --git a/docs/TTSEngine.md b/docs/TTSEngine.md new file mode 100644 index 00000000..51c82859 --- /dev/null +++ b/docs/TTSEngine.md @@ -0,0 +1,14 @@ + + +# TTSEngine + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**name** | **TTSEngineName** | | [optional] +**parameters** | **Map<String, Object>** | Parameters for the TTS engine. The parameters are specific to the engine and are documented in the engine's documentation. | [optional] + + + diff --git a/docs/TTSEngineName.md b/docs/TTSEngineName.md new file mode 100644 index 00000000..eafa70f3 --- /dev/null +++ b/docs/TTSEngineName.md @@ -0,0 +1,15 @@ + + +# TTSEngineName + +## Enum + + +* `FREECLIMB_STANDARD` (value: `"freeclimb.standard"`) + +* `FREECLIMB_NEURAL` (value: `"freeclimb.neural"`) + +* `ELEVEN_LABS` (value: `"ElevenLabs"`) + + + diff --git a/openapi.json b/openapi.json index 4d431e7e..27b9cbd3 100644 --- a/openapi.json +++ b/openapi.json @@ -2437,318 +2437,22 @@ } ] }, - "SayElevenLabs": { - "description": "The `SayElevenLabs` command provides Text-To-Speech (TTS) support using the ElevenLabs TTS engine. It converts text to speech and then renders it in a female voice back to the caller. `SayElevenLabs` is useful in cases where it's difficult to pre-record a prompt for any reason. `SayElevenLabs` does not allow barge-in unless nested within a `GetSpeech` command. The file will always be played to completion unless nested.", - "required": ["text", "engine"], - "type": "object", - "properties": { - "text": { - "description": "The message to be played to the caller using TTS. The size of the string is limited to 4 KB (or 4,096 bytes). An empty string will cause the command to be skipped.", - "type": "string" - }, - "loop": { - "description": "Number of times the text is said. Specifying '0' causes the `SayElevenLabs` action to loop until the Call is hung up.", - "type": "integer", - "default": 1 - }, - "privacyMode": { - "description": "Parameter `privacyMode` will not log the `text` as required by PCI compliance.", - "type": "boolean" - }, - "engine": { - "description": "The engine to use for the TTS. The complete list of valid values for the engine attribute is shown below.", - "type": "object", - "properties": { - "name": { - "description": "The name of the TTS engine to use. Set to `elevenlabs.tts` to use the elevenlabs.tts TTS engine.", - "type": "string", - "default": "ElevenLabs" - }, - "parameters": { - "$ref": "#/components/schemas/SayElevenLabsEngineParameters" - } - } - } - } - }, - "SayElevenLabsEngineParameters": { - "description": "The parameters to use for the TTS. The complete list of valid values for the parameters attribute is shown below.", - "type": "object", - "properties": { - "model_id": { - "type": "string", - "description": "The ID of the ElevenLabs model to use for the TTS. The complete list of valid values for the model_id attribute is shown below.", - "default": "eleven_turbo_v2_5" - }, - "voice_id": { - "type": "string", - "description": "The ID of the ElevenLabs voice to use for the TTS. The complete list of valid values for the voice_id attribute is shown below." - }, - "language_code": { - "type": "string", - "description": "The language code to use for the TTS. The complete list of valid values for the language_code attribute is shown below.", - "default": "en" - }, - "voice_settings": { - "type": "object", - "description": "The voice settings to use for the TTS. The complete list of valid values for the voice_settings attribute is shown below.", - "properties": { - "stability": { - "type": "number" - }, - "use_speaker_boost": { - "type": "boolean" - }, - "similarity_boost": { - "type": "number" - }, - "style": { - "type": "number" - }, - "speed": { - "type": "number" - } - } - }, - "pronunciation_dictionary": { - "type": "array", - "items": { - "type": "object", - "properties": { - "pronunciation_dictionary_id": { - "type": "string" - }, - "version_id": { - "type": "string" - } - } - } - }, - "seed": { - "type": "integer" - }, - "previous_text": { - "type": "string" - }, - "next_text": { - "type": "string" - }, - "previous_request_ids": { - "type": "array", - "items": { - "type": "string" - } - }, - "next_request_ids": { - "type": "array", - "items": { - "type": "string" - } - }, - "apply_language_text_normalization": { - "type": "boolean" - } - } - }, - "SayNeuralTextType": { + "TTSEngineName": { + "description": "The engine to use for the TTS. The complete list of valid values for the engine attribute is shown below.", "type": "string", - "enum": ["text", "ssml"], - "description": "The type of text to use for the TTS. The complete list of valid values for the text type attribute is shown below." + "enum": ["freeclimb.standard", "freeclimb.neural", "ElevenLabs"] }, - "SayNeuralEngineParameters": { - "description": "The parameters to use for the TTS. The complete list of valid values for the parameters attribute is shown below.", + "TTSEngine": { "type": "object", "properties": { - "voice": { - "description": "The voice to use for the TTS. The complete list of valid values for the voice attribute is shown below.", - "type": "string", - "default": "Eve" - }, - "textType": { - "$ref": "#/components/schemas/SayNeuralTextType" + "name": { + "$ref": "#/components/schemas/TTSEngineName" }, - "language": { - "description": "The language to use for the TTS. The complete list of valid values for the language attribute is shown below.", - "type": "string", - "default": "en-US" - } - } - }, - "SayNeural": { - "description": "The `SayNeural` command provides Text-To-Speech (TTS) support using the freeclimb.neural TTS engine. It converts text to speech and then renders it in a female voice back to the caller. `SayNeural` is useful in cases where it's difficult to pre-record a prompt for any reason. `SayNeural` does not allow barge-in unless nested within a `GetSpeech` command. The file will always be played to completion unless nested.", - "required": ["text", "engine"], - "type": "object", - "properties": { - "text": { - "description": "The message to be played to the caller using TTS. The size of the string is limited to 4 KB (or 4,096 bytes). An empty string will cause the command to be skipped.", - "type": "string" - }, - "loop": { - "description": "Number of times the text is said. Specifying '0' causes the `SayNeural` action to loop until the Call is hung up.", - "type": "integer", - "default": 1 - }, - "privacyMode": { - "description": "Parameter `privacyMode` will not log the `text` as required by PCI compliance.", - "type": "boolean", - "default": false - }, - "engine": { - "description": "The engine to use for the TTS. The complete list of valid values for the engine attribute is shown below.", + "parameters": { + "description": "Parameters for the TTS engine. The parameters are specific to the engine and are documented in the engine's documentation.", "type": "object", - "properties": { - "name": { - "description": "The name of the TTS engine to use. Set to `freeclimb.neural` to use the freeclimb.neural TTS engine.", - "type": "string", - "default": "freeclimb.neural" - }, - "parameters": { - "$ref": "#/components/schemas/SayNeuralEngineParameters" - } - } - } - } - }, - "SayStandardVoice": { - "description": "The voice to use for the TTS. The complete list of valid values for the voice attribute is shown below.", - "type": "string", - "enum": [ - "Herena", - "Helle", - "Hedda", - "Hayley", - "Heather", - "Hazel", - "Heera", - "Helen", - "ZiraPro", - "Helena", - "Hilda", - "Heidi", - "Harmonie", - "Hortense", - "Lucia", - "Harkua", - "Heami", - "Hulda", - "Hanna", - "Paulina", - "Helosia", - "Helia", - "Elena", - "Hedvig", - "HunYee", - "HanHan" - ] - }, - "SayStandardCulture": { - "description": "The culture to use for the TTS. The complete list of valid values for the culture attribute is shown below.", - "type": "string", - "enum": [ - "ca-ES", - "da-DK", - "de-DE", - "en-AU", - "en-CA", - "en-GB", - "en-IN", - "en-US", - "es-ES", - "es-MX", - "fi-FI", - "fr-CA", - "fr-FR", - "it-IT", - "ja-JP", - "ko-KR", - "nb-NO", - "nl-NL", - "pl-PL", - "pt-BR", - "pt-PT", - "ru-RU", - "sv-SE", - "zh-CN", - "zh-HK", - "zh-TW" - ] - }, - "SayStandardContentType": { - "description": "The content type to use for the TTS. The complete list of valid values for the content type attribute is shown below.", - "type": "string", - "enum": ["text/plain", "application/ssml+xml"] - }, - "SayStandardEngineParameters": { - "description": "The parameters to use for the TTS. The complete list of valid values for the parameters attribute is shown below.", - "type": "object", - "properties": { - "Voice": { - "$ref": "#/components/schemas/SayStandardVoice" - }, - "Culture": { - "$ref": "#/components/schemas/SayStandardCulture" - }, - "Content-Type": { - "$ref": "#/components/schemas/SayStandardContentType" - } - } - }, - "SayStandard": { - "description": "The `Say` command provides Text-To-Speech (TTS) support using the freeclimb.standard TTS engine. It converts text to speech and then renders it in a female voice back to the caller. `SayStandard` is useful in cases where it's difficult to pre-record a prompt for any reason. `SayStandard` does not allow barge-in unless nested within a `GetSpeech` command. The file will always be played to completion unless nested.", - "required": ["text", "engine"], - "type": "object", - "properties": { - "text": { - "description": "The message to be played to the caller using TTS. The size of the string is limited to 4 KB (or 4,096 bytes). An empty string will cause the command to be skipped.", - "type": "string" - }, - "loop": { - "description": "Number of times the text is said. Specifying '0' causes the `Say` action to loop until the Call is hung up.", - "type": "integer", - "default": 1 - }, - "privacyMode": { - "description": "Parameter `privacyMode` will not log the `text` as required by PCI compliance.", - "type": "boolean", - "default": false - }, - "engine": { - "description": "Language and (by implication) the locale to use. This implies the accent and pronunciations to be usde for the TTS. The complete list of valid values for the language attribute is shown below.", - "type": "object", - "properties": { - "name": { - "description": "The name of the TTS engine to use. Set to `freeclimb.standard` for to use the standard freeclimb TTS engine.", - "type": "string", - "default": "freeclimb.standard" - }, - "parameters": { - "$ref": "#/components/schemas/SayStandardEngineParameters" - } - } - } - } - }, - "SayClassic": { - "description": "The `Say` command provides Text-To-Speech (TTS) support. It converts text to speech and then renders it in a female voice back to the caller. `Say` is useful in cases where it's difficult to pre-record a prompt for any reason. `Say` does not allow barge-in unless nested within a `GetSpeech` command. The file will always be played to completion unless nested.", - "required": ["text"], - "type": "object", - "properties": { - "text": { - "description": "The message to be played to the caller using TTS. The size of the string is limited to 4 KB (or 4,096 bytes). An empty string will cause the command to be skipped.", - "type": "string" - }, - "language": { - "description": "Language and (by implication) the locale to use. This implies the accent and pronunciations to be usde for the TTS. The complete list of valid values for the language attribute is shown below.", - "type": "string" - }, - "loop": { - "description": "Number of times the text is said. Specifying '0' causes the `Say` action to loop until the Call is hung up.", - "type": "integer", - "default": 1 - }, - "privacyMode": { - "description": "Parameter `privacyMode` will not log the `text` as required by PCI compliance.", - "type": "boolean" + "properties": {}, + "additionalProperties": true } } }, @@ -2759,20 +2463,29 @@ "$ref": "#/components/schemas/PerclCommand" }, { - "oneOf": [ - { - "$ref": "#/components/schemas/SayElevenLabs" + "required": ["text"], + "properties": { + "text": { + "description": "The message to be played to the caller using TTS. The size of the string is limited to 4 KB (or 4,096 bytes). An empty string will cause the command to be skipped.", + "type": "string" + }, + "language": { + "description": "Language and (by implication) the locale to use. This implies the accent and pronunciations to be usde for the TTS. The complete list of valid values for the language attribute is shown below.", + "type": "string" }, - { - "$ref": "#/components/schemas/SayNeural" + "engine": { + "$ref": "#/components/schemas/TTSEngine" }, - { - "$ref": "#/components/schemas/SayStandard" + "loop": { + "description": "Number of times the text is said. Specifying '0' causes the `Say` action to loop until the Call is hung up.", + "type": "integer", + "default": 1 }, - { - "$ref": "#/components/schemas/SayClassic" + "privacyMode": { + "description": "Parameter `privacyMode` will not log the `text` as required by PCI compliance.", + "type": "boolean" } - ] + } } ] }, @@ -5413,7 +5126,7 @@ } ] }, - "platformError": { + "PlatformError": { "description": "Standard error structure returned by platform.", "type": "object", "properties": { @@ -5447,7 +5160,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/platformError" + "$ref": "#/components/schemas/PlatformError" }, "example": { "code": 80, @@ -5462,7 +5175,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/platformError" + "$ref": "#/components/schemas/PlatformError" }, "example": { "code": 1, @@ -5477,7 +5190,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/platformError" + "$ref": "#/components/schemas/PlatformError" }, "example": { "code": 108, @@ -5492,7 +5205,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/platformError" + "$ref": "#/components/schemas/PlatformError" }, "example": { "code": 3, @@ -5507,7 +5220,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/platformError" + "$ref": "#/components/schemas/PlatformError" }, "example": { "code": 9, @@ -5522,7 +5235,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/platformError" + "$ref": "#/components/schemas/PlatformError" }, "example": { "code": 0, @@ -5537,7 +5250,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/platformError" + "$ref": "#/components/schemas/PlatformError" }, "example": { "code": 0, @@ -8477,7 +8190,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/platformError" + "$ref": "#/components/schemas/PlatformError" }, "example": { "code": 108, @@ -8495,7 +8208,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/platformError" + "$ref": "#/components/schemas/PlatformError" }, "example": { "code": 80, @@ -8605,21 +8318,6 @@ } }, "operationId": "delete-blob", - "parameters": [ - { - "schema": { - "type": "array", - "items": { - "type": "string", - "pattern": "^[a-zA-Z0-9_]{1,64}$" - } - }, - "in": "query", - "name": "key", - "description": "key within blob to remove", - "required": false - } - ], "description": "Deletes a blob or specific keys from a blob. If no keys are specified in the request body, the entire blob is deleted (returns 204). If specific keys are provided, only those keys are removed and the remaining blob is returned (returns 200)." }, "patch": { diff --git a/src/main/java/com/github/freeclimbapi/DefaultApi.java b/src/main/java/com/github/freeclimbapi/DefaultApi.java index f4eebd7b..fca75d14 100644 --- a/src/main/java/com/github/freeclimbapi/DefaultApi.java +++ b/src/main/java/com/github/freeclimbapi/DefaultApi.java @@ -1766,7 +1766,6 @@ public okhttp3.Call deleteAnIncomingNumberAsync( * Build call for deleteBlob * * @param blobId String that uniquely identifies this Blob resource. (required) - * @param key key within blob to remove (optional) * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object @@ -1781,7 +1780,7 @@ public okhttp3.Call deleteAnIncomingNumberAsync( * 504 gateway timeout error - * */ - public okhttp3.Call deleteBlobCall(String blobId, List key, final ApiCallback _callback) + public okhttp3.Call deleteBlobCall(String blobId, final ApiCallback _callback) throws ApiException { String basePath = null; @@ -1815,11 +1814,6 @@ public okhttp3.Call deleteBlobCall(String blobId, List key, final ApiCal Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); - if (key != null) { - localVarCollectionQueryParams.addAll( - localVarApiClient.parameterToPairs("multi", "key", key)); - } - final String[] localVarAccepts = {"application/json"}; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -1852,8 +1846,8 @@ public okhttp3.Call deleteBlobCall(String blobId, List key, final ApiCal } @SuppressWarnings("rawtypes") - private okhttp3.Call deleteBlobValidateBeforeCall( - String blobId, List key, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteBlobValidateBeforeCall(String blobId, final ApiCallback _callback) + throws ApiException { // verify the required parameter 'blobId' is set if (blobId == null) { @@ -1861,7 +1855,7 @@ private okhttp3.Call deleteBlobValidateBeforeCall( "Missing the required parameter 'blobId' when calling deleteBlob(Async)"); } - okhttp3.Call localVarCall = deleteBlobCall(blobId, key, _callback); + okhttp3.Call localVarCall = deleteBlobCall(blobId, _callback); return localVarCall; } @@ -1871,7 +1865,6 @@ private okhttp3.Call deleteBlobValidateBeforeCall( * those keys are removed and the remaining blob is returned (returns 200). * * @param blobId String that uniquely identifies this Blob resource. (required) - * @param key key within blob to remove (optional) * @return BlobResult * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the * response body @@ -1886,8 +1879,8 @@ private okhttp3.Call deleteBlobValidateBeforeCall( * 504 gateway timeout error - * */ - public BlobResult deleteBlob(String blobId, List key) throws ApiException { - ApiResponse localVarResp = deleteBlobWithHttpInfo(blobId, key); + public BlobResult deleteBlob(String blobId) throws ApiException { + ApiResponse localVarResp = deleteBlobWithHttpInfo(blobId); return localVarResp.getData(); } @@ -1897,7 +1890,6 @@ public BlobResult deleteBlob(String blobId, List key) throws ApiExceptio * those keys are removed and the remaining blob is returned (returns 200). * * @param blobId String that uniquely identifies this Blob resource. (required) - * @param key key within blob to remove (optional) * @return ApiResponse<BlobResult> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the * response body @@ -1912,9 +1904,8 @@ public BlobResult deleteBlob(String blobId, List key) throws ApiExceptio * 504 gateway timeout error - * */ - public ApiResponse deleteBlobWithHttpInfo(String blobId, List key) - throws ApiException { - okhttp3.Call localVarCall = deleteBlobValidateBeforeCall(blobId, key, null); + public ApiResponse deleteBlobWithHttpInfo(String blobId) throws ApiException { + okhttp3.Call localVarCall = deleteBlobValidateBeforeCall(blobId, null); Type localVarReturnType = new TypeToken() {}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } @@ -1925,7 +1916,6 @@ public ApiResponse deleteBlobWithHttpInfo(String blobId, List deleteBlobWithHttpInfo(String blobId, List 504 gateway timeout error - * */ - public okhttp3.Call deleteBlobAsync( - String blobId, List key, final ApiCallback _callback) + public okhttp3.Call deleteBlobAsync(String blobId, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = deleteBlobValidateBeforeCall(blobId, key, _callback); + okhttp3.Call localVarCall = deleteBlobValidateBeforeCall(blobId, _callback); Type localVarReturnType = new TypeToken() {}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; @@ -6749,8 +6738,6 @@ public okhttp3.Call listAvailableNumbersAsync( /** * Build call for listBlobs * - * @param alias Filter blobs by alias (optional) - * @param cursor Used to reference pages of a list of blobs (optional) * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object @@ -6763,8 +6750,7 @@ public okhttp3.Call listAvailableNumbersAsync( * 504 gateway timeout error - * */ - public okhttp3.Call listBlobsCall(String alias, String cursor, final ApiCallback _callback) - throws ApiException { + public okhttp3.Call listBlobsCall(final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers @@ -6794,14 +6780,6 @@ public okhttp3.Call listBlobsCall(String alias, String cursor, final ApiCallback Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); - if (alias != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("alias", alias)); - } - - if (cursor != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("cursor", cursor)); - } - final String[] localVarAccepts = {"application/json"}; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -6834,10 +6812,10 @@ public okhttp3.Call listBlobsCall(String alias, String cursor, final ApiCallback } @SuppressWarnings("rawtypes") - private okhttp3.Call listBlobsValidateBeforeCall( - String alias, String cursor, final ApiCallback _callback) throws ApiException { + private okhttp3.Call listBlobsValidateBeforeCall(final ApiCallback _callback) + throws ApiException { - okhttp3.Call localVarCall = listBlobsCall(alias, cursor, _callback); + okhttp3.Call localVarCall = listBlobsCall(_callback); return localVarCall; } @@ -6845,8 +6823,6 @@ private okhttp3.Call listBlobsValidateBeforeCall( * List Blobs belonging to an account. List Blobs belonging to an account. Results are returned * in paginated lists mirroring other listing features in the API. * - * @param alias Filter blobs by alias (optional) - * @param cursor Used to reference pages of a list of blobs (optional) * @return BlobListResponse * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the * response body @@ -6859,8 +6835,8 @@ private okhttp3.Call listBlobsValidateBeforeCall( * 504 gateway timeout error - * */ - public BlobListResponse listBlobs(String alias, String cursor) throws ApiException { - ApiResponse localVarResp = listBlobsWithHttpInfo(alias, cursor); + public BlobListResponse listBlobs() throws ApiException { + ApiResponse localVarResp = listBlobsWithHttpInfo(); return localVarResp.getData(); } @@ -6868,8 +6844,6 @@ public BlobListResponse listBlobs(String alias, String cursor) throws ApiExcepti * List Blobs belonging to an account. List Blobs belonging to an account. Results are returned * in paginated lists mirroring other listing features in the API. * - * @param alias Filter blobs by alias (optional) - * @param cursor Used to reference pages of a list of blobs (optional) * @return ApiResponse<BlobListResponse> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the * response body @@ -6882,9 +6856,8 @@ public BlobListResponse listBlobs(String alias, String cursor) throws ApiExcepti * 504 gateway timeout error - * */ - public ApiResponse listBlobsWithHttpInfo(String alias, String cursor) - throws ApiException { - okhttp3.Call localVarCall = listBlobsValidateBeforeCall(alias, cursor, null); + public ApiResponse listBlobsWithHttpInfo() throws ApiException { + okhttp3.Call localVarCall = listBlobsValidateBeforeCall(null); Type localVarReturnType = new TypeToken() {}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } @@ -6893,8 +6866,6 @@ public ApiResponse listBlobsWithHttpInfo(String alias, String * List Blobs belonging to an account. (asynchronously) List Blobs belonging to an account. * Results are returned in paginated lists mirroring other listing features in the API. * - * @param alias Filter blobs by alias (optional) - * @param cursor Used to reference pages of a list of blobs (optional) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body @@ -6908,11 +6879,10 @@ public ApiResponse listBlobsWithHttpInfo(String alias, String * 504 gateway timeout error - * */ - public okhttp3.Call listBlobsAsync( - String alias, String cursor, final ApiCallback _callback) + public okhttp3.Call listBlobsAsync(final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = listBlobsValidateBeforeCall(alias, cursor, _callback); + okhttp3.Call localVarCall = listBlobsValidateBeforeCall(_callback); Type localVarReturnType = new TypeToken() {}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; diff --git a/src/main/java/com/github/freeclimbapi/enums/SayStandardContentType.java b/src/main/java/com/github/freeclimbapi/enums/SayStandardContentType.java deleted file mode 100644 index 9e0223ee..00000000 --- a/src/main/java/com/github/freeclimbapi/enums/SayStandardContentType.java +++ /dev/null @@ -1,69 +0,0 @@ -/* - * FreeClimb API - * FreeClimb is a cloud-based application programming interface (API) that puts the power of the Vail platform in your hands. FreeClimb simplifies the process of creating applications that can use a full range of telephony features without requiring specialized or on-site telephony equipment. Using the FreeClimb REST API to write applications is easy! You have the option to use the language of your choice or hit the API directly. Your application can execute a command by issuing a RESTful request to the FreeClimb API. The base URL to send HTTP requests to the FreeClimb REST API is: /apiserver. FreeClimb authenticates and processes your request. - * - * The version of the OpenAPI document: 1.0.0 - * Contact: support@freeclimb.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -package com.github.freeclimbapi.enums; - -import com.github.freeclimbapi.models.*; -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import java.io.IOException; - -/** - * The content type to use for the TTS. The complete list of valid values for the content type - * attribute is shown below. - */ -@JsonAdapter(SayStandardContentType.Adapter.class) -public enum SayStandardContentType { - TEXT_PLAIN("text/plain"), - - APPLICATION_SSML_XML("application/ssml+xml"); - - private String value; - - SayStandardContentType(String value) { - this.value = value; - } - - public String getValue() { - return value; - } - - @Override - public String toString() { - return String.valueOf(value); - } - - public static SayStandardContentType fromValue(String value) { - for (SayStandardContentType b : SayStandardContentType.values()) { - if (b.value.equals(value)) { - return b; - } - } - throw new IllegalArgumentException("Unexpected value '" + value + "'"); - } - - public static class Adapter extends TypeAdapter { - @Override - public void write(final JsonWriter jsonWriter, final SayStandardContentType enumeration) - throws IOException { - jsonWriter.value(enumeration.getValue()); - } - - @Override - public SayStandardContentType read(final JsonReader jsonReader) throws IOException { - String value = jsonReader.nextString(); - return SayStandardContentType.fromValue(value); - } - } -} diff --git a/src/main/java/com/github/freeclimbapi/enums/SayStandardCulture.java b/src/main/java/com/github/freeclimbapi/enums/SayStandardCulture.java deleted file mode 100644 index c87ca79a..00000000 --- a/src/main/java/com/github/freeclimbapi/enums/SayStandardCulture.java +++ /dev/null @@ -1,117 +0,0 @@ -/* - * FreeClimb API - * FreeClimb is a cloud-based application programming interface (API) that puts the power of the Vail platform in your hands. FreeClimb simplifies the process of creating applications that can use a full range of telephony features without requiring specialized or on-site telephony equipment. Using the FreeClimb REST API to write applications is easy! You have the option to use the language of your choice or hit the API directly. Your application can execute a command by issuing a RESTful request to the FreeClimb API. The base URL to send HTTP requests to the FreeClimb REST API is: /apiserver. FreeClimb authenticates and processes your request. - * - * The version of the OpenAPI document: 1.0.0 - * Contact: support@freeclimb.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -package com.github.freeclimbapi.enums; - -import com.github.freeclimbapi.models.*; -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import java.io.IOException; - -/** - * The culture to use for the TTS. The complete list of valid values for the culture attribute is - * shown below. - */ -@JsonAdapter(SayStandardCulture.Adapter.class) -public enum SayStandardCulture { - CA_ES("ca-ES"), - - DA_DK("da-DK"), - - DE_DE("de-DE"), - - EN_AU("en-AU"), - - EN_CA("en-CA"), - - EN_GB("en-GB"), - - EN_IN("en-IN"), - - EN_US("en-US"), - - ES_ES("es-ES"), - - ES_MX("es-MX"), - - FI_FI("fi-FI"), - - FR_CA("fr-CA"), - - FR_FR("fr-FR"), - - IT_IT("it-IT"), - - JA_JP("ja-JP"), - - KO_KR("ko-KR"), - - NB_NO("nb-NO"), - - NL_NL("nl-NL"), - - PL_PL("pl-PL"), - - PT_BR("pt-BR"), - - PT_PT("pt-PT"), - - RU_RU("ru-RU"), - - SV_SE("sv-SE"), - - ZH_CN("zh-CN"), - - ZH_HK("zh-HK"), - - ZH_TW("zh-TW"); - - private String value; - - SayStandardCulture(String value) { - this.value = value; - } - - public String getValue() { - return value; - } - - @Override - public String toString() { - return String.valueOf(value); - } - - public static SayStandardCulture fromValue(String value) { - for (SayStandardCulture b : SayStandardCulture.values()) { - if (b.value.equals(value)) { - return b; - } - } - throw new IllegalArgumentException("Unexpected value '" + value + "'"); - } - - public static class Adapter extends TypeAdapter { - @Override - public void write(final JsonWriter jsonWriter, final SayStandardCulture enumeration) - throws IOException { - jsonWriter.value(enumeration.getValue()); - } - - @Override - public SayStandardCulture read(final JsonReader jsonReader) throws IOException { - String value = jsonReader.nextString(); - return SayStandardCulture.fromValue(value); - } - } -} diff --git a/src/main/java/com/github/freeclimbapi/enums/SayStandardVoice.java b/src/main/java/com/github/freeclimbapi/enums/SayStandardVoice.java deleted file mode 100644 index 25f30932..00000000 --- a/src/main/java/com/github/freeclimbapi/enums/SayStandardVoice.java +++ /dev/null @@ -1,117 +0,0 @@ -/* - * FreeClimb API - * FreeClimb is a cloud-based application programming interface (API) that puts the power of the Vail platform in your hands. FreeClimb simplifies the process of creating applications that can use a full range of telephony features without requiring specialized or on-site telephony equipment. Using the FreeClimb REST API to write applications is easy! You have the option to use the language of your choice or hit the API directly. Your application can execute a command by issuing a RESTful request to the FreeClimb API. The base URL to send HTTP requests to the FreeClimb REST API is: /apiserver. FreeClimb authenticates and processes your request. - * - * The version of the OpenAPI document: 1.0.0 - * Contact: support@freeclimb.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -package com.github.freeclimbapi.enums; - -import com.github.freeclimbapi.models.*; -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import java.io.IOException; - -/** - * The voice to use for the TTS. The complete list of valid values for the voice attribute is shown - * below. - */ -@JsonAdapter(SayStandardVoice.Adapter.class) -public enum SayStandardVoice { - HERENA("Herena"), - - HELLE("Helle"), - - HEDDA("Hedda"), - - HAYLEY("Hayley"), - - HEATHER("Heather"), - - HAZEL("Hazel"), - - HEERA("Heera"), - - HELEN("Helen"), - - ZIRA_PRO("ZiraPro"), - - HELENA("Helena"), - - HILDA("Hilda"), - - HEIDI("Heidi"), - - HARMONIE("Harmonie"), - - HORTENSE("Hortense"), - - LUCIA("Lucia"), - - HARKUA("Harkua"), - - HEAMI("Heami"), - - HULDA("Hulda"), - - HANNA("Hanna"), - - PAULINA("Paulina"), - - HELOSIA("Helosia"), - - HELIA("Helia"), - - ELENA("Elena"), - - HEDVIG("Hedvig"), - - HUN_YEE("HunYee"), - - HAN_HAN("HanHan"); - - private String value; - - SayStandardVoice(String value) { - this.value = value; - } - - public String getValue() { - return value; - } - - @Override - public String toString() { - return String.valueOf(value); - } - - public static SayStandardVoice fromValue(String value) { - for (SayStandardVoice b : SayStandardVoice.values()) { - if (b.value.equals(value)) { - return b; - } - } - throw new IllegalArgumentException("Unexpected value '" + value + "'"); - } - - public static class Adapter extends TypeAdapter { - @Override - public void write(final JsonWriter jsonWriter, final SayStandardVoice enumeration) - throws IOException { - jsonWriter.value(enumeration.getValue()); - } - - @Override - public SayStandardVoice read(final JsonReader jsonReader) throws IOException { - String value = jsonReader.nextString(); - return SayStandardVoice.fromValue(value); - } - } -} diff --git a/src/main/java/com/github/freeclimbapi/enums/SayNeuralTextType.java b/src/main/java/com/github/freeclimbapi/enums/TTSEngineName.java similarity index 70% rename from src/main/java/com/github/freeclimbapi/enums/SayNeuralTextType.java rename to src/main/java/com/github/freeclimbapi/enums/TTSEngineName.java index f7059f30..988102e6 100644 --- a/src/main/java/com/github/freeclimbapi/enums/SayNeuralTextType.java +++ b/src/main/java/com/github/freeclimbapi/enums/TTSEngineName.java @@ -20,18 +20,20 @@ import java.io.IOException; /** - * The type of text to use for the TTS. The complete list of valid values for the text type - * attribute is shown below. + * The engine to use for the TTS. The complete list of valid values for the engine attribute is + * shown below. */ -@JsonAdapter(SayNeuralTextType.Adapter.class) -public enum SayNeuralTextType { - TEXT("text"), +@JsonAdapter(TTSEngineName.Adapter.class) +public enum TTSEngineName { + FREECLIMB_STANDARD("freeclimb.standard"), - SSML("ssml"); + FREECLIMB_NEURAL("freeclimb.neural"), + + ELEVEN_LABS("ElevenLabs"); private String value; - SayNeuralTextType(String value) { + TTSEngineName(String value) { this.value = value; } @@ -44,8 +46,8 @@ public String toString() { return String.valueOf(value); } - public static SayNeuralTextType fromValue(String value) { - for (SayNeuralTextType b : SayNeuralTextType.values()) { + public static TTSEngineName fromValue(String value) { + for (TTSEngineName b : TTSEngineName.values()) { if (b.value.equals(value)) { return b; } @@ -53,17 +55,17 @@ public static SayNeuralTextType fromValue(String value) { throw new IllegalArgumentException("Unexpected value '" + value + "'"); } - public static class Adapter extends TypeAdapter { + public static class Adapter extends TypeAdapter { @Override - public void write(final JsonWriter jsonWriter, final SayNeuralTextType enumeration) + public void write(final JsonWriter jsonWriter, final TTSEngineName enumeration) throws IOException { jsonWriter.value(enumeration.getValue()); } @Override - public SayNeuralTextType read(final JsonReader jsonReader) throws IOException { + public TTSEngineName read(final JsonReader jsonReader) throws IOException { String value = jsonReader.nextString(); - return SayNeuralTextType.fromValue(value); + return TTSEngineName.fromValue(value); } } } diff --git a/src/main/java/com/github/freeclimbapi/models/Say.java b/src/main/java/com/github/freeclimbapi/models/Say.java index f11419fc..9f455beb 100644 --- a/src/main/java/com/github/freeclimbapi/models/Say.java +++ b/src/main/java/com/github/freeclimbapi/models/Say.java @@ -47,6 +47,16 @@ public static String getDiscriminatorValue() { @SerializedName(SERIALIZED_NAME_TEXT) private String text; + public static final String SERIALIZED_NAME_LANGUAGE = "language"; + + @SerializedName(SERIALIZED_NAME_LANGUAGE) + private String language; + + public static final String SERIALIZED_NAME_ENGINE = "engine"; + + @SerializedName(SERIALIZED_NAME_ENGINE) + private TTSEngine engine; + public static final String SERIALIZED_NAME_LOOP = "loop"; @SerializedName(SERIALIZED_NAME_LOOP) @@ -57,16 +67,6 @@ public static String getDiscriminatorValue() { @SerializedName(SERIALIZED_NAME_PRIVACY_MODE) private Boolean privacyMode; - public static final String SERIALIZED_NAME_ENGINE = "engine"; - - @SerializedName(SERIALIZED_NAME_ENGINE) - private SayStandardEngine engine; - - public static final String SERIALIZED_NAME_LANGUAGE = "language"; - - @SerializedName(SERIALIZED_NAME_LANGUAGE) - private String language; - public Say() { this.command = this.getClass().getSimpleName(); } @@ -98,102 +98,102 @@ public void setText(String text) { this.text = text; } - public Say loop(Integer loop) { + public Say language(String language) { - this.loop = loop; + this.language = language; return this; } /** - * Number of times the text is said. Specifying '0' causes the `Say` action to - * loop until the Call is hung up. + * Language and (by implication) the locale to use. This implies the accent and pronunciations + * to be usde for the TTS. The complete list of valid values for the language attribute is shown + * below. * - * @return loop + * @return language */ @javax.annotation.Nullable @ApiModelProperty( value = - "Number of times the text is said. Specifying '0' causes the `Say` action to" - + " loop until the Call is hung up.") - public Integer getLoop() { - return loop; + "Language and (by implication) the locale to use. This implies the accent and" + + " pronunciations to be usde for the TTS. The complete list of valid" + + " values for the language attribute is shown below.") + public String getLanguage() { + return language; } - public void setLoop(Integer loop) { - this.loop = loop; + public void setLanguage(String language) { + this.language = language; } - public Say privacyMode(Boolean privacyMode) { + public Say engine(TTSEngine engine) { - this.privacyMode = privacyMode; + this.engine = engine; return this; } /** - * Parameter `privacyMode` will not log the `text` as required by PCI - * compliance. + * Get engine * - * @return privacyMode + * @return engine */ @javax.annotation.Nullable - @ApiModelProperty( - value = - "Parameter `privacyMode` will not log the `text` as required by PCI" - + " compliance.") - public Boolean getPrivacyMode() { - return privacyMode; + @ApiModelProperty(value = "") + public TTSEngine getEngine() { + return engine; } - public void setPrivacyMode(Boolean privacyMode) { - this.privacyMode = privacyMode; + public void setEngine(TTSEngine engine) { + this.engine = engine; } - public Say engine(SayStandardEngine engine) { + public Say loop(Integer loop) { - this.engine = engine; + this.loop = loop; return this; } /** - * Get engine + * Number of times the text is said. Specifying '0' causes the `Say` action to + * loop until the Call is hung up. * - * @return engine + * @return loop */ - @javax.annotation.Nonnull - @ApiModelProperty(required = true, value = "") - public SayStandardEngine getEngine() { - return engine; + @javax.annotation.Nullable + @ApiModelProperty( + value = + "Number of times the text is said. Specifying '0' causes the `Say` action to" + + " loop until the Call is hung up.") + public Integer getLoop() { + return loop; } - public void setEngine(SayStandardEngine engine) { - this.engine = engine; + public void setLoop(Integer loop) { + this.loop = loop; } - public Say language(String language) { + public Say privacyMode(Boolean privacyMode) { - this.language = language; + this.privacyMode = privacyMode; return this; } /** - * Language and (by implication) the locale to use. This implies the accent and pronunciations - * to be usde for the TTS. The complete list of valid values for the language attribute is shown - * below. + * Parameter `privacyMode` will not log the `text` as required by PCI + * compliance. * - * @return language + * @return privacyMode */ @javax.annotation.Nullable @ApiModelProperty( value = - "Language and (by implication) the locale to use. This implies the accent and" - + " pronunciations to be usde for the TTS. The complete list of valid" - + " values for the language attribute is shown below.") - public String getLanguage() { - return language; + "Parameter `privacyMode` will not log the `text` as required by PCI" + + " compliance.") + public Boolean getPrivacyMode() { + return privacyMode; } - public void setLanguage(String language) { - this.language = language; + public void setPrivacyMode(Boolean privacyMode) { + this.privacyMode = privacyMode; } @Override @@ -206,16 +206,16 @@ public boolean equals(Object o) { } Say say = (Say) o; return Objects.equals(this.text, say.text) + && Objects.equals(this.language, say.language) + && Objects.equals(this.engine, say.engine) && Objects.equals(this.loop, say.loop) && Objects.equals(this.privacyMode, say.privacyMode) - && Objects.equals(this.engine, say.engine) - && Objects.equals(this.language, say.language) && super.equals(o); } @Override public int hashCode() { - return Objects.hash(text, loop, privacyMode, engine, language, super.hashCode()); + return Objects.hash(text, language, engine, loop, privacyMode, super.hashCode()); } @Override @@ -224,10 +224,10 @@ public String toString() { sb.append("class Say {\n"); sb.append(" ").append(toIndentedString(super.toString())).append("\n"); sb.append(" text: ").append(toIndentedString(text)).append("\n"); + sb.append(" language: ").append(toIndentedString(language)).append("\n"); + sb.append(" engine: ").append(toIndentedString(engine)).append("\n"); sb.append(" loop: ").append(toIndentedString(loop)).append("\n"); sb.append(" privacyMode: ").append(toIndentedString(privacyMode)).append("\n"); - sb.append(" engine: ").append(toIndentedString(engine)).append("\n"); - sb.append(" language: ").append(toIndentedString(language)).append("\n"); sb.append("}"); return sb.toString(); } @@ -236,10 +236,10 @@ public String toString() { public Map> attributeTypeMap() { Map> attributes = new HashMap(); attributes.put("text", () -> this.getText()); + attributes.put("language", () -> this.getLanguage()); + attributes.put("engine", () -> this.getEngine()); attributes.put("loop", () -> this.getLoop()); attributes.put("privacyMode", () -> this.getPrivacyMode()); - attributes.put("engine", () -> this.getEngine()); - attributes.put("language", () -> this.getLanguage()); return attributes; } diff --git a/src/main/java/com/github/freeclimbapi/models/SayClassic.java b/src/main/java/com/github/freeclimbapi/models/SayClassic.java deleted file mode 100644 index 5500709c..00000000 --- a/src/main/java/com/github/freeclimbapi/models/SayClassic.java +++ /dev/null @@ -1,210 +0,0 @@ -/* - * FreeClimb API - * FreeClimb is a cloud-based application programming interface (API) that puts the power of the Vail platform in your hands. FreeClimb simplifies the process of creating applications that can use a full range of telephony features without requiring specialized or on-site telephony equipment. Using the FreeClimb REST API to write applications is easy! You have the option to use the language of your choice or hit the API directly. Your application can execute a command by issuing a RESTful request to the FreeClimb API. The base URL to send HTTP requests to the FreeClimb REST API is: /apiserver. FreeClimb authenticates and processes your request. - * - * The version of the OpenAPI document: 1.0.0 - * Contact: support@freeclimb.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -package com.github.freeclimbapi.models; - -import com.github.freeclimbapi.enums.*; -import com.google.gson.annotations.SerializedName; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; -import java.util.*; -import java.util.Objects; - -/** - * The `Say` command provides Text-To-Speech (TTS) support. It converts text to speech and - * then renders it in a female voice back to the caller. `Say` is useful in cases where - * it's difficult to pre-record a prompt for any reason. `Say` does not allow barge-in - * unless nested within a `GetSpeech` command. The file will always be played to - * completion unless nested. - */ -@ApiModel( - description = - "The `Say` command provides Text-To-Speech (TTS) support. It converts text to" - + " speech and then renders it in a female voice back to the caller. `Say` is" - + " useful in cases where it's difficult to pre-record a prompt for any reason." - + " `Say` does not allow barge-in unless nested within a `GetSpeech` command." - + " The file will always be played to completion unless nested.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") -public class SayClassic { - public static String getDiscriminatorValue() { - return null; - } - - public static final String SERIALIZED_NAME_TEXT = "text"; - - @SerializedName(SERIALIZED_NAME_TEXT) - private String text; - - public static final String SERIALIZED_NAME_LANGUAGE = "language"; - - @SerializedName(SERIALIZED_NAME_LANGUAGE) - private String language; - - public static final String SERIALIZED_NAME_LOOP = "loop"; - - @SerializedName(SERIALIZED_NAME_LOOP) - private Integer loop = 1; - - public static final String SERIALIZED_NAME_PRIVACY_MODE = "privacyMode"; - - @SerializedName(SERIALIZED_NAME_PRIVACY_MODE) - private Boolean privacyMode; - - public SayClassic() {} - - public SayClassic text(String text) { - - this.text = text; - return this; - } - - /** - * The message to be played to the caller using TTS. The size of the string is limited to 4 KB - * (or 4,096 bytes). An empty string will cause the command to be skipped. - * - * @return text - */ - @javax.annotation.Nonnull - @ApiModelProperty( - required = true, - value = - "The message to be played to the caller using TTS. The size of the string is" - + " limited to 4 KB (or 4,096 bytes). An empty string will cause the" - + " command to be skipped.") - public String getText() { - return text; - } - - public void setText(String text) { - this.text = text; - } - - public SayClassic language(String language) { - - this.language = language; - return this; - } - - /** - * Language and (by implication) the locale to use. This implies the accent and pronunciations - * to be usde for the TTS. The complete list of valid values for the language attribute is shown - * below. - * - * @return language - */ - @javax.annotation.Nullable - @ApiModelProperty( - value = - "Language and (by implication) the locale to use. This implies the accent and" - + " pronunciations to be usde for the TTS. The complete list of valid" - + " values for the language attribute is shown below.") - public String getLanguage() { - return language; - } - - public void setLanguage(String language) { - this.language = language; - } - - public SayClassic loop(Integer loop) { - - this.loop = loop; - return this; - } - - /** - * Number of times the text is said. Specifying '0' causes the `Say` action to - * loop until the Call is hung up. - * - * @return loop - */ - @javax.annotation.Nullable - @ApiModelProperty( - value = - "Number of times the text is said. Specifying '0' causes the `Say` action to" - + " loop until the Call is hung up.") - public Integer getLoop() { - return loop; - } - - public void setLoop(Integer loop) { - this.loop = loop; - } - - public SayClassic privacyMode(Boolean privacyMode) { - - this.privacyMode = privacyMode; - return this; - } - - /** - * Parameter `privacyMode` will not log the `text` as required by PCI - * compliance. - * - * @return privacyMode - */ - @javax.annotation.Nullable - @ApiModelProperty( - value = - "Parameter `privacyMode` will not log the `text` as required by PCI" - + " compliance.") - public Boolean getPrivacyMode() { - return privacyMode; - } - - public void setPrivacyMode(Boolean privacyMode) { - this.privacyMode = privacyMode; - } - - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - SayClassic sayClassic = (SayClassic) o; - return Objects.equals(this.text, sayClassic.text) - && Objects.equals(this.language, sayClassic.language) - && Objects.equals(this.loop, sayClassic.loop) - && Objects.equals(this.privacyMode, sayClassic.privacyMode); - } - - @Override - public int hashCode() { - return Objects.hash(text, language, loop, privacyMode); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class SayClassic {\n"); - sb.append(" text: ").append(toIndentedString(text)).append("\n"); - sb.append(" language: ").append(toIndentedString(language)).append("\n"); - sb.append(" loop: ").append(toIndentedString(loop)).append("\n"); - sb.append(" privacyMode: ").append(toIndentedString(privacyMode)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces (except the first - * line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } -} diff --git a/src/main/java/com/github/freeclimbapi/models/SayElevenLabs.java b/src/main/java/com/github/freeclimbapi/models/SayElevenLabs.java deleted file mode 100644 index b5c6eaea..00000000 --- a/src/main/java/com/github/freeclimbapi/models/SayElevenLabs.java +++ /dev/null @@ -1,205 +0,0 @@ -/* - * FreeClimb API - * FreeClimb is a cloud-based application programming interface (API) that puts the power of the Vail platform in your hands. FreeClimb simplifies the process of creating applications that can use a full range of telephony features without requiring specialized or on-site telephony equipment. Using the FreeClimb REST API to write applications is easy! You have the option to use the language of your choice or hit the API directly. Your application can execute a command by issuing a RESTful request to the FreeClimb API. The base URL to send HTTP requests to the FreeClimb REST API is: /apiserver. FreeClimb authenticates and processes your request. - * - * The version of the OpenAPI document: 1.0.0 - * Contact: support@freeclimb.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -package com.github.freeclimbapi.models; - -import com.github.freeclimbapi.enums.*; -import com.google.gson.annotations.SerializedName; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; -import java.util.*; -import java.util.Objects; - -/** - * The `SayElevenLabs` command provides Text-To-Speech (TTS) support using the ElevenLabs - * TTS engine. It converts text to speech and then renders it in a female voice back to the caller. - * `SayElevenLabs` is useful in cases where it's difficult to pre-record a prompt for - * any reason. `SayElevenLabs` does not allow barge-in unless nested within a - * `GetSpeech` command. The file will always be played to completion unless nested. - */ -@ApiModel( - description = - "The `SayElevenLabs` command provides Text-To-Speech (TTS) support using the" - + " ElevenLabs TTS engine. It converts text to speech and then renders it in a" - + " female voice back to the caller. `SayElevenLabs` is useful in cases where" - + " it's difficult to pre-record a prompt for any reason. `SayElevenLabs` does" - + " not allow barge-in unless nested within a `GetSpeech` command. The file" - + " will always be played to completion unless nested.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") -public class SayElevenLabs { - public static String getDiscriminatorValue() { - return null; - } - - public static final String SERIALIZED_NAME_TEXT = "text"; - - @SerializedName(SERIALIZED_NAME_TEXT) - private String text; - - public static final String SERIALIZED_NAME_LOOP = "loop"; - - @SerializedName(SERIALIZED_NAME_LOOP) - private Integer loop = 1; - - public static final String SERIALIZED_NAME_PRIVACY_MODE = "privacyMode"; - - @SerializedName(SERIALIZED_NAME_PRIVACY_MODE) - private Boolean privacyMode; - - public static final String SERIALIZED_NAME_ENGINE = "engine"; - - @SerializedName(SERIALIZED_NAME_ENGINE) - private SayElevenLabsEngine engine; - - public SayElevenLabs() {} - - public SayElevenLabs text(String text) { - - this.text = text; - return this; - } - - /** - * The message to be played to the caller using TTS. The size of the string is limited to 4 KB - * (or 4,096 bytes). An empty string will cause the command to be skipped. - * - * @return text - */ - @javax.annotation.Nonnull - @ApiModelProperty( - required = true, - value = - "The message to be played to the caller using TTS. The size of the string is" - + " limited to 4 KB (or 4,096 bytes). An empty string will cause the" - + " command to be skipped.") - public String getText() { - return text; - } - - public void setText(String text) { - this.text = text; - } - - public SayElevenLabs loop(Integer loop) { - - this.loop = loop; - return this; - } - - /** - * Number of times the text is said. Specifying '0' causes the `SayElevenLabs` - * action to loop until the Call is hung up. - * - * @return loop - */ - @javax.annotation.Nullable - @ApiModelProperty( - value = - "Number of times the text is said. Specifying '0' causes the `SayElevenLabs`" - + " action to loop until the Call is hung up.") - public Integer getLoop() { - return loop; - } - - public void setLoop(Integer loop) { - this.loop = loop; - } - - public SayElevenLabs privacyMode(Boolean privacyMode) { - - this.privacyMode = privacyMode; - return this; - } - - /** - * Parameter `privacyMode` will not log the `text` as required by PCI - * compliance. - * - * @return privacyMode - */ - @javax.annotation.Nullable - @ApiModelProperty( - value = - "Parameter `privacyMode` will not log the `text` as required by PCI" - + " compliance.") - public Boolean getPrivacyMode() { - return privacyMode; - } - - public void setPrivacyMode(Boolean privacyMode) { - this.privacyMode = privacyMode; - } - - public SayElevenLabs engine(SayElevenLabsEngine engine) { - - this.engine = engine; - return this; - } - - /** - * Get engine - * - * @return engine - */ - @javax.annotation.Nonnull - @ApiModelProperty(required = true, value = "") - public SayElevenLabsEngine getEngine() { - return engine; - } - - public void setEngine(SayElevenLabsEngine engine) { - this.engine = engine; - } - - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - SayElevenLabs sayElevenLabs = (SayElevenLabs) o; - return Objects.equals(this.text, sayElevenLabs.text) - && Objects.equals(this.loop, sayElevenLabs.loop) - && Objects.equals(this.privacyMode, sayElevenLabs.privacyMode) - && Objects.equals(this.engine, sayElevenLabs.engine); - } - - @Override - public int hashCode() { - return Objects.hash(text, loop, privacyMode, engine); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class SayElevenLabs {\n"); - sb.append(" text: ").append(toIndentedString(text)).append("\n"); - sb.append(" loop: ").append(toIndentedString(loop)).append("\n"); - sb.append(" privacyMode: ").append(toIndentedString(privacyMode)).append("\n"); - sb.append(" engine: ").append(toIndentedString(engine)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces (except the first - * line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } -} diff --git a/src/main/java/com/github/freeclimbapi/models/SayElevenLabsEngine.java b/src/main/java/com/github/freeclimbapi/models/SayElevenLabsEngine.java deleted file mode 100644 index 6580a461..00000000 --- a/src/main/java/com/github/freeclimbapi/models/SayElevenLabsEngine.java +++ /dev/null @@ -1,132 +0,0 @@ -/* - * FreeClimb API - * FreeClimb is a cloud-based application programming interface (API) that puts the power of the Vail platform in your hands. FreeClimb simplifies the process of creating applications that can use a full range of telephony features without requiring specialized or on-site telephony equipment. Using the FreeClimb REST API to write applications is easy! You have the option to use the language of your choice or hit the API directly. Your application can execute a command by issuing a RESTful request to the FreeClimb API. The base URL to send HTTP requests to the FreeClimb REST API is: /apiserver. FreeClimb authenticates and processes your request. - * - * The version of the OpenAPI document: 1.0.0 - * Contact: support@freeclimb.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -package com.github.freeclimbapi.models; - -import com.github.freeclimbapi.enums.*; -import com.google.gson.annotations.SerializedName; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; -import java.util.*; -import java.util.Objects; - -/** - * The engine to use for the TTS. The complete list of valid values for the engine attribute is - * shown below. - */ -@ApiModel( - description = - "The engine to use for the TTS. The complete list of valid values for the engine" - + " attribute is shown below.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") -public class SayElevenLabsEngine { - public static String getDiscriminatorValue() { - return null; - } - - public static final String SERIALIZED_NAME_NAME = "name"; - - @SerializedName(SERIALIZED_NAME_NAME) - private String name = "ElevenLabs"; - - public static final String SERIALIZED_NAME_PARAMETERS = "parameters"; - - @SerializedName(SERIALIZED_NAME_PARAMETERS) - private SayElevenLabsEngineParameters parameters; - - public SayElevenLabsEngine() {} - - public SayElevenLabsEngine name(String name) { - - this.name = name; - return this; - } - - /** - * The name of the TTS engine to use. Set to `elevenlabs.tts` to use the - * elevenlabs.tts TTS engine. - * - * @return name - */ - @javax.annotation.Nullable - @ApiModelProperty( - value = - "The name of the TTS engine to use. Set to `elevenlabs.tts` to use the" - + " elevenlabs.tts TTS engine.") - public String getName() { - return name; - } - - public void setName(String name) { - this.name = name; - } - - public SayElevenLabsEngine parameters(SayElevenLabsEngineParameters parameters) { - - this.parameters = parameters; - return this; - } - - /** - * Get parameters - * - * @return parameters - */ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - public SayElevenLabsEngineParameters getParameters() { - return parameters; - } - - public void setParameters(SayElevenLabsEngineParameters parameters) { - this.parameters = parameters; - } - - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - SayElevenLabsEngine sayElevenLabsEngine = (SayElevenLabsEngine) o; - return Objects.equals(this.name, sayElevenLabsEngine.name) - && Objects.equals(this.parameters, sayElevenLabsEngine.parameters); - } - - @Override - public int hashCode() { - return Objects.hash(name, parameters); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class SayElevenLabsEngine {\n"); - sb.append(" name: ").append(toIndentedString(name)).append("\n"); - sb.append(" parameters: ").append(toIndentedString(parameters)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces (except the first - * line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } -} diff --git a/src/main/java/com/github/freeclimbapi/models/SayElevenLabsEngineParameters.java b/src/main/java/com/github/freeclimbapi/models/SayElevenLabsEngineParameters.java deleted file mode 100644 index ada0390b..00000000 --- a/src/main/java/com/github/freeclimbapi/models/SayElevenLabsEngineParameters.java +++ /dev/null @@ -1,453 +0,0 @@ -/* - * FreeClimb API - * FreeClimb is a cloud-based application programming interface (API) that puts the power of the Vail platform in your hands. FreeClimb simplifies the process of creating applications that can use a full range of telephony features without requiring specialized or on-site telephony equipment. Using the FreeClimb REST API to write applications is easy! You have the option to use the language of your choice or hit the API directly. Your application can execute a command by issuing a RESTful request to the FreeClimb API. The base URL to send HTTP requests to the FreeClimb REST API is: /apiserver. FreeClimb authenticates and processes your request. - * - * The version of the OpenAPI document: 1.0.0 - * Contact: support@freeclimb.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -package com.github.freeclimbapi.models; - -import com.github.freeclimbapi.enums.*; -import com.google.gson.annotations.SerializedName; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; -import java.util.*; -import java.util.ArrayList; -import java.util.List; -import java.util.Objects; - -/** - * The parameters to use for the TTS. The complete list of valid values for the parameters attribute - * is shown below. - */ -@ApiModel( - description = - "The parameters to use for the TTS. The complete list of valid values for the" - + " parameters attribute is shown below.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") -public class SayElevenLabsEngineParameters { - public static String getDiscriminatorValue() { - return null; - } - - public static final String SERIALIZED_NAME_MODEL_ID = "model_id"; - - @SerializedName(SERIALIZED_NAME_MODEL_ID) - private String modelId = "eleven_turbo_v2_5"; - - public static final String SERIALIZED_NAME_VOICE_ID = "voice_id"; - - @SerializedName(SERIALIZED_NAME_VOICE_ID) - private String voiceId; - - public static final String SERIALIZED_NAME_LANGUAGE_CODE = "language_code"; - - @SerializedName(SERIALIZED_NAME_LANGUAGE_CODE) - private String languageCode = "en"; - - public static final String SERIALIZED_NAME_VOICE_SETTINGS = "voice_settings"; - - @SerializedName(SERIALIZED_NAME_VOICE_SETTINGS) - private SayElevenLabsEngineParametersVoiceSettings voiceSettings; - - public static final String SERIALIZED_NAME_PRONUNCIATION_DICTIONARY = - "pronunciation_dictionary"; - - @SerializedName(SERIALIZED_NAME_PRONUNCIATION_DICTIONARY) - private List - pronunciationDictionary = null; - - public static final String SERIALIZED_NAME_SEED = "seed"; - - @SerializedName(SERIALIZED_NAME_SEED) - private Integer seed; - - public static final String SERIALIZED_NAME_PREVIOUS_TEXT = "previous_text"; - - @SerializedName(SERIALIZED_NAME_PREVIOUS_TEXT) - private String previousText; - - public static final String SERIALIZED_NAME_NEXT_TEXT = "next_text"; - - @SerializedName(SERIALIZED_NAME_NEXT_TEXT) - private String nextText; - - public static final String SERIALIZED_NAME_PREVIOUS_REQUEST_IDS = "previous_request_ids"; - - @SerializedName(SERIALIZED_NAME_PREVIOUS_REQUEST_IDS) - private List previousRequestIds = null; - - public static final String SERIALIZED_NAME_NEXT_REQUEST_IDS = "next_request_ids"; - - @SerializedName(SERIALIZED_NAME_NEXT_REQUEST_IDS) - private List nextRequestIds = null; - - public static final String SERIALIZED_NAME_APPLY_LANGUAGE_TEXT_NORMALIZATION = - "apply_language_text_normalization"; - - @SerializedName(SERIALIZED_NAME_APPLY_LANGUAGE_TEXT_NORMALIZATION) - private Boolean applyLanguageTextNormalization; - - public SayElevenLabsEngineParameters() {} - - public SayElevenLabsEngineParameters modelId(String modelId) { - - this.modelId = modelId; - return this; - } - - /** - * The ID of the ElevenLabs model to use for the TTS. The complete list of valid values for the - * model_id attribute is shown below. - * - * @return modelId - */ - @javax.annotation.Nullable - @ApiModelProperty( - value = - "The ID of the ElevenLabs model to use for the TTS. The complete list of valid" - + " values for the model_id attribute is shown below.") - public String getModelId() { - return modelId; - } - - public void setModelId(String modelId) { - this.modelId = modelId; - } - - public SayElevenLabsEngineParameters voiceId(String voiceId) { - - this.voiceId = voiceId; - return this; - } - - /** - * The ID of the ElevenLabs voice to use for the TTS. The complete list of valid values for the - * voice_id attribute is shown below. - * - * @return voiceId - */ - @javax.annotation.Nullable - @ApiModelProperty( - value = - "The ID of the ElevenLabs voice to use for the TTS. The complete list of valid" - + " values for the voice_id attribute is shown below.") - public String getVoiceId() { - return voiceId; - } - - public void setVoiceId(String voiceId) { - this.voiceId = voiceId; - } - - public SayElevenLabsEngineParameters languageCode(String languageCode) { - - this.languageCode = languageCode; - return this; - } - - /** - * The language code to use for the TTS. The complete list of valid values for the language_code - * attribute is shown below. - * - * @return languageCode - */ - @javax.annotation.Nullable - @ApiModelProperty( - value = - "The language code to use for the TTS. The complete list of valid values for" - + " the language_code attribute is shown below.") - public String getLanguageCode() { - return languageCode; - } - - public void setLanguageCode(String languageCode) { - this.languageCode = languageCode; - } - - public SayElevenLabsEngineParameters voiceSettings( - SayElevenLabsEngineParametersVoiceSettings voiceSettings) { - - this.voiceSettings = voiceSettings; - return this; - } - - /** - * Get voiceSettings - * - * @return voiceSettings - */ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - public SayElevenLabsEngineParametersVoiceSettings getVoiceSettings() { - return voiceSettings; - } - - public void setVoiceSettings(SayElevenLabsEngineParametersVoiceSettings voiceSettings) { - this.voiceSettings = voiceSettings; - } - - public SayElevenLabsEngineParameters pronunciationDictionary( - List - pronunciationDictionary) { - - this.pronunciationDictionary = pronunciationDictionary; - return this; - } - - public SayElevenLabsEngineParameters addPronunciationDictionaryItem( - SayElevenLabsEngineParametersPronunciationDictionaryInner pronunciationDictionaryItem) { - if (this.pronunciationDictionary == null) { - this.pronunciationDictionary = - new ArrayList(); - } - this.pronunciationDictionary.add(pronunciationDictionaryItem); - return this; - } - - /** - * Get pronunciationDictionary - * - * @return pronunciationDictionary - */ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - public List - getPronunciationDictionary() { - return pronunciationDictionary; - } - - public void setPronunciationDictionary( - List - pronunciationDictionary) { - this.pronunciationDictionary = pronunciationDictionary; - } - - public SayElevenLabsEngineParameters seed(Integer seed) { - - this.seed = seed; - return this; - } - - /** - * Get seed - * - * @return seed - */ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - public Integer getSeed() { - return seed; - } - - public void setSeed(Integer seed) { - this.seed = seed; - } - - public SayElevenLabsEngineParameters previousText(String previousText) { - - this.previousText = previousText; - return this; - } - - /** - * Get previousText - * - * @return previousText - */ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - public String getPreviousText() { - return previousText; - } - - public void setPreviousText(String previousText) { - this.previousText = previousText; - } - - public SayElevenLabsEngineParameters nextText(String nextText) { - - this.nextText = nextText; - return this; - } - - /** - * Get nextText - * - * @return nextText - */ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - public String getNextText() { - return nextText; - } - - public void setNextText(String nextText) { - this.nextText = nextText; - } - - public SayElevenLabsEngineParameters previousRequestIds(List previousRequestIds) { - - this.previousRequestIds = previousRequestIds; - return this; - } - - public SayElevenLabsEngineParameters addPreviousRequestIdsItem(String previousRequestIdsItem) { - if (this.previousRequestIds == null) { - this.previousRequestIds = new ArrayList(); - } - this.previousRequestIds.add(previousRequestIdsItem); - return this; - } - - /** - * Get previousRequestIds - * - * @return previousRequestIds - */ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - public List getPreviousRequestIds() { - return previousRequestIds; - } - - public void setPreviousRequestIds(List previousRequestIds) { - this.previousRequestIds = previousRequestIds; - } - - public SayElevenLabsEngineParameters nextRequestIds(List nextRequestIds) { - - this.nextRequestIds = nextRequestIds; - return this; - } - - public SayElevenLabsEngineParameters addNextRequestIdsItem(String nextRequestIdsItem) { - if (this.nextRequestIds == null) { - this.nextRequestIds = new ArrayList(); - } - this.nextRequestIds.add(nextRequestIdsItem); - return this; - } - - /** - * Get nextRequestIds - * - * @return nextRequestIds - */ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - public List getNextRequestIds() { - return nextRequestIds; - } - - public void setNextRequestIds(List nextRequestIds) { - this.nextRequestIds = nextRequestIds; - } - - public SayElevenLabsEngineParameters applyLanguageTextNormalization( - Boolean applyLanguageTextNormalization) { - - this.applyLanguageTextNormalization = applyLanguageTextNormalization; - return this; - } - - /** - * Get applyLanguageTextNormalization - * - * @return applyLanguageTextNormalization - */ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - public Boolean getApplyLanguageTextNormalization() { - return applyLanguageTextNormalization; - } - - public void setApplyLanguageTextNormalization(Boolean applyLanguageTextNormalization) { - this.applyLanguageTextNormalization = applyLanguageTextNormalization; - } - - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - SayElevenLabsEngineParameters sayElevenLabsEngineParameters = - (SayElevenLabsEngineParameters) o; - return Objects.equals(this.modelId, sayElevenLabsEngineParameters.modelId) - && Objects.equals(this.voiceId, sayElevenLabsEngineParameters.voiceId) - && Objects.equals(this.languageCode, sayElevenLabsEngineParameters.languageCode) - && Objects.equals(this.voiceSettings, sayElevenLabsEngineParameters.voiceSettings) - && Objects.equals( - this.pronunciationDictionary, - sayElevenLabsEngineParameters.pronunciationDictionary) - && Objects.equals(this.seed, sayElevenLabsEngineParameters.seed) - && Objects.equals(this.previousText, sayElevenLabsEngineParameters.previousText) - && Objects.equals(this.nextText, sayElevenLabsEngineParameters.nextText) - && Objects.equals( - this.previousRequestIds, sayElevenLabsEngineParameters.previousRequestIds) - && Objects.equals(this.nextRequestIds, sayElevenLabsEngineParameters.nextRequestIds) - && Objects.equals( - this.applyLanguageTextNormalization, - sayElevenLabsEngineParameters.applyLanguageTextNormalization); - } - - @Override - public int hashCode() { - return Objects.hash( - modelId, - voiceId, - languageCode, - voiceSettings, - pronunciationDictionary, - seed, - previousText, - nextText, - previousRequestIds, - nextRequestIds, - applyLanguageTextNormalization); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class SayElevenLabsEngineParameters {\n"); - sb.append(" modelId: ").append(toIndentedString(modelId)).append("\n"); - sb.append(" voiceId: ").append(toIndentedString(voiceId)).append("\n"); - sb.append(" languageCode: ").append(toIndentedString(languageCode)).append("\n"); - sb.append(" voiceSettings: ").append(toIndentedString(voiceSettings)).append("\n"); - sb.append(" pronunciationDictionary: ") - .append(toIndentedString(pronunciationDictionary)) - .append("\n"); - sb.append(" seed: ").append(toIndentedString(seed)).append("\n"); - sb.append(" previousText: ").append(toIndentedString(previousText)).append("\n"); - sb.append(" nextText: ").append(toIndentedString(nextText)).append("\n"); - sb.append(" previousRequestIds: ") - .append(toIndentedString(previousRequestIds)) - .append("\n"); - sb.append(" nextRequestIds: ").append(toIndentedString(nextRequestIds)).append("\n"); - sb.append(" applyLanguageTextNormalization: ") - .append(toIndentedString(applyLanguageTextNormalization)) - .append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces (except the first - * line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } -} diff --git a/src/main/java/com/github/freeclimbapi/models/SayElevenLabsEngineParametersPronunciationDictionaryInner.java b/src/main/java/com/github/freeclimbapi/models/SayElevenLabsEngineParametersPronunciationDictionaryInner.java deleted file mode 100644 index c15664bf..00000000 --- a/src/main/java/com/github/freeclimbapi/models/SayElevenLabsEngineParametersPronunciationDictionaryInner.java +++ /dev/null @@ -1,131 +0,0 @@ -/* - * FreeClimb API - * FreeClimb is a cloud-based application programming interface (API) that puts the power of the Vail platform in your hands. FreeClimb simplifies the process of creating applications that can use a full range of telephony features without requiring specialized or on-site telephony equipment. Using the FreeClimb REST API to write applications is easy! You have the option to use the language of your choice or hit the API directly. Your application can execute a command by issuing a RESTful request to the FreeClimb API. The base URL to send HTTP requests to the FreeClimb REST API is: /apiserver. FreeClimb authenticates and processes your request. - * - * The version of the OpenAPI document: 1.0.0 - * Contact: support@freeclimb.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -package com.github.freeclimbapi.models; - -import com.github.freeclimbapi.enums.*; -import com.google.gson.annotations.SerializedName; -import io.swagger.annotations.ApiModelProperty; -import java.util.*; -import java.util.Objects; - -/** SayElevenLabsEngineParametersPronunciationDictionaryInner */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") -public class SayElevenLabsEngineParametersPronunciationDictionaryInner { - public static String getDiscriminatorValue() { - return null; - } - - public static final String SERIALIZED_NAME_PRONUNCIATION_DICTIONARY_ID = - "pronunciation_dictionary_id"; - - @SerializedName(SERIALIZED_NAME_PRONUNCIATION_DICTIONARY_ID) - private String pronunciationDictionaryId; - - public static final String SERIALIZED_NAME_VERSION_ID = "version_id"; - - @SerializedName(SERIALIZED_NAME_VERSION_ID) - private String versionId; - - public SayElevenLabsEngineParametersPronunciationDictionaryInner() {} - - public SayElevenLabsEngineParametersPronunciationDictionaryInner pronunciationDictionaryId( - String pronunciationDictionaryId) { - - this.pronunciationDictionaryId = pronunciationDictionaryId; - return this; - } - - /** - * Get pronunciationDictionaryId - * - * @return pronunciationDictionaryId - */ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - public String getPronunciationDictionaryId() { - return pronunciationDictionaryId; - } - - public void setPronunciationDictionaryId(String pronunciationDictionaryId) { - this.pronunciationDictionaryId = pronunciationDictionaryId; - } - - public SayElevenLabsEngineParametersPronunciationDictionaryInner versionId(String versionId) { - - this.versionId = versionId; - return this; - } - - /** - * Get versionId - * - * @return versionId - */ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - public String getVersionId() { - return versionId; - } - - public void setVersionId(String versionId) { - this.versionId = versionId; - } - - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - SayElevenLabsEngineParametersPronunciationDictionaryInner - sayElevenLabsEngineParametersPronunciationDictionaryInner = - (SayElevenLabsEngineParametersPronunciationDictionaryInner) o; - return Objects.equals( - this.pronunciationDictionaryId, - sayElevenLabsEngineParametersPronunciationDictionaryInner - .pronunciationDictionaryId) - && Objects.equals( - this.versionId, - sayElevenLabsEngineParametersPronunciationDictionaryInner.versionId); - } - - @Override - public int hashCode() { - return Objects.hash(pronunciationDictionaryId, versionId); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class SayElevenLabsEngineParametersPronunciationDictionaryInner {\n"); - sb.append(" pronunciationDictionaryId: ") - .append(toIndentedString(pronunciationDictionaryId)) - .append("\n"); - sb.append(" versionId: ").append(toIndentedString(versionId)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces (except the first - * line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } -} diff --git a/src/main/java/com/github/freeclimbapi/models/SayElevenLabsEngineParametersVoiceSettings.java b/src/main/java/com/github/freeclimbapi/models/SayElevenLabsEngineParametersVoiceSettings.java deleted file mode 100644 index 9118b69d..00000000 --- a/src/main/java/com/github/freeclimbapi/models/SayElevenLabsEngineParametersVoiceSettings.java +++ /dev/null @@ -1,218 +0,0 @@ -/* - * FreeClimb API - * FreeClimb is a cloud-based application programming interface (API) that puts the power of the Vail platform in your hands. FreeClimb simplifies the process of creating applications that can use a full range of telephony features without requiring specialized or on-site telephony equipment. Using the FreeClimb REST API to write applications is easy! You have the option to use the language of your choice or hit the API directly. Your application can execute a command by issuing a RESTful request to the FreeClimb API. The base URL to send HTTP requests to the FreeClimb REST API is: /apiserver. FreeClimb authenticates and processes your request. - * - * The version of the OpenAPI document: 1.0.0 - * Contact: support@freeclimb.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -package com.github.freeclimbapi.models; - -import com.github.freeclimbapi.enums.*; -import com.google.gson.annotations.SerializedName; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; -import java.math.BigDecimal; -import java.util.*; -import java.util.Objects; - -/** - * The voice settings to use for the TTS. The complete list of valid values for the voice_settings - * attribute is shown below. - */ -@ApiModel( - description = - "The voice settings to use for the TTS. The complete list of valid values for the" - + " voice_settings attribute is shown below.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") -public class SayElevenLabsEngineParametersVoiceSettings { - public static String getDiscriminatorValue() { - return null; - } - - public static final String SERIALIZED_NAME_STABILITY = "stability"; - - @SerializedName(SERIALIZED_NAME_STABILITY) - private BigDecimal stability; - - public static final String SERIALIZED_NAME_USE_SPEAKER_BOOST = "use_speaker_boost"; - - @SerializedName(SERIALIZED_NAME_USE_SPEAKER_BOOST) - private Boolean useSpeakerBoost; - - public static final String SERIALIZED_NAME_SIMILARITY_BOOST = "similarity_boost"; - - @SerializedName(SERIALIZED_NAME_SIMILARITY_BOOST) - private BigDecimal similarityBoost; - - public static final String SERIALIZED_NAME_STYLE = "style"; - - @SerializedName(SERIALIZED_NAME_STYLE) - private BigDecimal style; - - public static final String SERIALIZED_NAME_SPEED = "speed"; - - @SerializedName(SERIALIZED_NAME_SPEED) - private BigDecimal speed; - - public SayElevenLabsEngineParametersVoiceSettings() {} - - public SayElevenLabsEngineParametersVoiceSettings stability(BigDecimal stability) { - - this.stability = stability; - return this; - } - - /** - * Get stability - * - * @return stability - */ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - public BigDecimal getStability() { - return stability; - } - - public void setStability(BigDecimal stability) { - this.stability = stability; - } - - public SayElevenLabsEngineParametersVoiceSettings useSpeakerBoost(Boolean useSpeakerBoost) { - - this.useSpeakerBoost = useSpeakerBoost; - return this; - } - - /** - * Get useSpeakerBoost - * - * @return useSpeakerBoost - */ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - public Boolean getUseSpeakerBoost() { - return useSpeakerBoost; - } - - public void setUseSpeakerBoost(Boolean useSpeakerBoost) { - this.useSpeakerBoost = useSpeakerBoost; - } - - public SayElevenLabsEngineParametersVoiceSettings similarityBoost(BigDecimal similarityBoost) { - - this.similarityBoost = similarityBoost; - return this; - } - - /** - * Get similarityBoost - * - * @return similarityBoost - */ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - public BigDecimal getSimilarityBoost() { - return similarityBoost; - } - - public void setSimilarityBoost(BigDecimal similarityBoost) { - this.similarityBoost = similarityBoost; - } - - public SayElevenLabsEngineParametersVoiceSettings style(BigDecimal style) { - - this.style = style; - return this; - } - - /** - * Get style - * - * @return style - */ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - public BigDecimal getStyle() { - return style; - } - - public void setStyle(BigDecimal style) { - this.style = style; - } - - public SayElevenLabsEngineParametersVoiceSettings speed(BigDecimal speed) { - - this.speed = speed; - return this; - } - - /** - * Get speed - * - * @return speed - */ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - public BigDecimal getSpeed() { - return speed; - } - - public void setSpeed(BigDecimal speed) { - this.speed = speed; - } - - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - SayElevenLabsEngineParametersVoiceSettings sayElevenLabsEngineParametersVoiceSettings = - (SayElevenLabsEngineParametersVoiceSettings) o; - return Objects.equals(this.stability, sayElevenLabsEngineParametersVoiceSettings.stability) - && Objects.equals( - this.useSpeakerBoost, - sayElevenLabsEngineParametersVoiceSettings.useSpeakerBoost) - && Objects.equals( - this.similarityBoost, - sayElevenLabsEngineParametersVoiceSettings.similarityBoost) - && Objects.equals(this.style, sayElevenLabsEngineParametersVoiceSettings.style) - && Objects.equals(this.speed, sayElevenLabsEngineParametersVoiceSettings.speed); - } - - @Override - public int hashCode() { - return Objects.hash(stability, useSpeakerBoost, similarityBoost, style, speed); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class SayElevenLabsEngineParametersVoiceSettings {\n"); - sb.append(" stability: ").append(toIndentedString(stability)).append("\n"); - sb.append(" useSpeakerBoost: ").append(toIndentedString(useSpeakerBoost)).append("\n"); - sb.append(" similarityBoost: ").append(toIndentedString(similarityBoost)).append("\n"); - sb.append(" style: ").append(toIndentedString(style)).append("\n"); - sb.append(" speed: ").append(toIndentedString(speed)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces (except the first - * line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } -} diff --git a/src/main/java/com/github/freeclimbapi/models/SayNeural.java b/src/main/java/com/github/freeclimbapi/models/SayNeural.java deleted file mode 100644 index 5845a4e9..00000000 --- a/src/main/java/com/github/freeclimbapi/models/SayNeural.java +++ /dev/null @@ -1,206 +0,0 @@ -/* - * FreeClimb API - * FreeClimb is a cloud-based application programming interface (API) that puts the power of the Vail platform in your hands. FreeClimb simplifies the process of creating applications that can use a full range of telephony features without requiring specialized or on-site telephony equipment. Using the FreeClimb REST API to write applications is easy! You have the option to use the language of your choice or hit the API directly. Your application can execute a command by issuing a RESTful request to the FreeClimb API. The base URL to send HTTP requests to the FreeClimb REST API is: /apiserver. FreeClimb authenticates and processes your request. - * - * The version of the OpenAPI document: 1.0.0 - * Contact: support@freeclimb.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -package com.github.freeclimbapi.models; - -import com.github.freeclimbapi.enums.*; -import com.google.gson.annotations.SerializedName; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; -import java.util.*; -import java.util.Objects; - -/** - * The `SayNeural` command provides Text-To-Speech (TTS) support using the - * freeclimb.neural TTS engine. It converts text to speech and then renders it in a female voice - * back to the caller. `SayNeural` is useful in cases where it's difficult to - * pre-record a prompt for any reason. `SayNeural` does not allow barge-in unless nested - * within a `GetSpeech` command. The file will always be played to completion unless - * nested. - */ -@ApiModel( - description = - "The `SayNeural` command provides Text-To-Speech (TTS) support using the" - + " freeclimb.neural TTS engine. It converts text to speech and then renders it" - + " in a female voice back to the caller. `SayNeural` is useful in cases where" - + " it's difficult to pre-record a prompt for any reason. `SayNeural` does not" - + " allow barge-in unless nested within a `GetSpeech` command. The file will" - + " always be played to completion unless nested.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") -public class SayNeural { - public static String getDiscriminatorValue() { - return null; - } - - public static final String SERIALIZED_NAME_TEXT = "text"; - - @SerializedName(SERIALIZED_NAME_TEXT) - private String text; - - public static final String SERIALIZED_NAME_LOOP = "loop"; - - @SerializedName(SERIALIZED_NAME_LOOP) - private Integer loop = 1; - - public static final String SERIALIZED_NAME_PRIVACY_MODE = "privacyMode"; - - @SerializedName(SERIALIZED_NAME_PRIVACY_MODE) - private Boolean privacyMode = false; - - public static final String SERIALIZED_NAME_ENGINE = "engine"; - - @SerializedName(SERIALIZED_NAME_ENGINE) - private SayNeuralEngine engine; - - public SayNeural() {} - - public SayNeural text(String text) { - - this.text = text; - return this; - } - - /** - * The message to be played to the caller using TTS. The size of the string is limited to 4 KB - * (or 4,096 bytes). An empty string will cause the command to be skipped. - * - * @return text - */ - @javax.annotation.Nonnull - @ApiModelProperty( - required = true, - value = - "The message to be played to the caller using TTS. The size of the string is" - + " limited to 4 KB (or 4,096 bytes). An empty string will cause the" - + " command to be skipped.") - public String getText() { - return text; - } - - public void setText(String text) { - this.text = text; - } - - public SayNeural loop(Integer loop) { - - this.loop = loop; - return this; - } - - /** - * Number of times the text is said. Specifying '0' causes the `SayNeural` - * action to loop until the Call is hung up. - * - * @return loop - */ - @javax.annotation.Nullable - @ApiModelProperty( - value = - "Number of times the text is said. Specifying '0' causes the `SayNeural` action" - + " to loop until the Call is hung up.") - public Integer getLoop() { - return loop; - } - - public void setLoop(Integer loop) { - this.loop = loop; - } - - public SayNeural privacyMode(Boolean privacyMode) { - - this.privacyMode = privacyMode; - return this; - } - - /** - * Parameter `privacyMode` will not log the `text` as required by PCI - * compliance. - * - * @return privacyMode - */ - @javax.annotation.Nullable - @ApiModelProperty( - value = - "Parameter `privacyMode` will not log the `text` as required by PCI" - + " compliance.") - public Boolean getPrivacyMode() { - return privacyMode; - } - - public void setPrivacyMode(Boolean privacyMode) { - this.privacyMode = privacyMode; - } - - public SayNeural engine(SayNeuralEngine engine) { - - this.engine = engine; - return this; - } - - /** - * Get engine - * - * @return engine - */ - @javax.annotation.Nonnull - @ApiModelProperty(required = true, value = "") - public SayNeuralEngine getEngine() { - return engine; - } - - public void setEngine(SayNeuralEngine engine) { - this.engine = engine; - } - - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - SayNeural sayNeural = (SayNeural) o; - return Objects.equals(this.text, sayNeural.text) - && Objects.equals(this.loop, sayNeural.loop) - && Objects.equals(this.privacyMode, sayNeural.privacyMode) - && Objects.equals(this.engine, sayNeural.engine); - } - - @Override - public int hashCode() { - return Objects.hash(text, loop, privacyMode, engine); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class SayNeural {\n"); - sb.append(" text: ").append(toIndentedString(text)).append("\n"); - sb.append(" loop: ").append(toIndentedString(loop)).append("\n"); - sb.append(" privacyMode: ").append(toIndentedString(privacyMode)).append("\n"); - sb.append(" engine: ").append(toIndentedString(engine)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces (except the first - * line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } -} diff --git a/src/main/java/com/github/freeclimbapi/models/SayNeuralEngineParameters.java b/src/main/java/com/github/freeclimbapi/models/SayNeuralEngineParameters.java deleted file mode 100644 index b0229f6e..00000000 --- a/src/main/java/com/github/freeclimbapi/models/SayNeuralEngineParameters.java +++ /dev/null @@ -1,164 +0,0 @@ -/* - * FreeClimb API - * FreeClimb is a cloud-based application programming interface (API) that puts the power of the Vail platform in your hands. FreeClimb simplifies the process of creating applications that can use a full range of telephony features without requiring specialized or on-site telephony equipment. Using the FreeClimb REST API to write applications is easy! You have the option to use the language of your choice or hit the API directly. Your application can execute a command by issuing a RESTful request to the FreeClimb API. The base URL to send HTTP requests to the FreeClimb REST API is: /apiserver. FreeClimb authenticates and processes your request. - * - * The version of the OpenAPI document: 1.0.0 - * Contact: support@freeclimb.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -package com.github.freeclimbapi.models; - -import com.github.freeclimbapi.enums.*; -import com.google.gson.annotations.SerializedName; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; -import java.util.*; -import java.util.Objects; - -/** - * The parameters to use for the TTS. The complete list of valid values for the parameters attribute - * is shown below. - */ -@ApiModel( - description = - "The parameters to use for the TTS. The complete list of valid values for the" - + " parameters attribute is shown below.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") -public class SayNeuralEngineParameters { - public static String getDiscriminatorValue() { - return null; - } - - public static final String SERIALIZED_NAME_VOICE = "voice"; - - @SerializedName(SERIALIZED_NAME_VOICE) - private String voice = "Eve"; - - public static final String SERIALIZED_NAME_TEXT_TYPE = "textType"; - - @SerializedName(SERIALIZED_NAME_TEXT_TYPE) - private SayNeuralTextType textType; - - public static final String SERIALIZED_NAME_LANGUAGE = "language"; - - @SerializedName(SERIALIZED_NAME_LANGUAGE) - private String language = "en-US"; - - public SayNeuralEngineParameters() {} - - public SayNeuralEngineParameters voice(String voice) { - - this.voice = voice; - return this; - } - - /** - * The voice to use for the TTS. The complete list of valid values for the voice attribute is - * shown below. - * - * @return voice - */ - @javax.annotation.Nullable - @ApiModelProperty( - value = - "The voice to use for the TTS. The complete list of valid values for the voice" - + " attribute is shown below.") - public String getVoice() { - return voice; - } - - public void setVoice(String voice) { - this.voice = voice; - } - - public SayNeuralEngineParameters textType(SayNeuralTextType textType) { - - this.textType = textType; - return this; - } - - /** - * Get textType - * - * @return textType - */ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - public SayNeuralTextType getTextType() { - return textType; - } - - public void setTextType(SayNeuralTextType textType) { - this.textType = textType; - } - - public SayNeuralEngineParameters language(String language) { - - this.language = language; - return this; - } - - /** - * The language to use for the TTS. The complete list of valid values for the language attribute - * is shown below. - * - * @return language - */ - @javax.annotation.Nullable - @ApiModelProperty( - value = - "The language to use for the TTS. The complete list of valid values for the" - + " language attribute is shown below.") - public String getLanguage() { - return language; - } - - public void setLanguage(String language) { - this.language = language; - } - - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - SayNeuralEngineParameters sayNeuralEngineParameters = (SayNeuralEngineParameters) o; - return Objects.equals(this.voice, sayNeuralEngineParameters.voice) - && Objects.equals(this.textType, sayNeuralEngineParameters.textType) - && Objects.equals(this.language, sayNeuralEngineParameters.language); - } - - @Override - public int hashCode() { - return Objects.hash(voice, textType, language); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class SayNeuralEngineParameters {\n"); - sb.append(" voice: ").append(toIndentedString(voice)).append("\n"); - sb.append(" textType: ").append(toIndentedString(textType)).append("\n"); - sb.append(" language: ").append(toIndentedString(language)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces (except the first - * line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } -} diff --git a/src/main/java/com/github/freeclimbapi/models/SayStandard.java b/src/main/java/com/github/freeclimbapi/models/SayStandard.java deleted file mode 100644 index 7ffc6f63..00000000 --- a/src/main/java/com/github/freeclimbapi/models/SayStandard.java +++ /dev/null @@ -1,205 +0,0 @@ -/* - * FreeClimb API - * FreeClimb is a cloud-based application programming interface (API) that puts the power of the Vail platform in your hands. FreeClimb simplifies the process of creating applications that can use a full range of telephony features without requiring specialized or on-site telephony equipment. Using the FreeClimb REST API to write applications is easy! You have the option to use the language of your choice or hit the API directly. Your application can execute a command by issuing a RESTful request to the FreeClimb API. The base URL to send HTTP requests to the FreeClimb REST API is: /apiserver. FreeClimb authenticates and processes your request. - * - * The version of the OpenAPI document: 1.0.0 - * Contact: support@freeclimb.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -package com.github.freeclimbapi.models; - -import com.github.freeclimbapi.enums.*; -import com.google.gson.annotations.SerializedName; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; -import java.util.*; -import java.util.Objects; - -/** - * The `Say` command provides Text-To-Speech (TTS) support using the freeclimb.standard - * TTS engine. It converts text to speech and then renders it in a female voice back to the caller. - * `SayStandard` is useful in cases where it's difficult to pre-record a prompt for - * any reason. `SayStandard` does not allow barge-in unless nested within a - * `GetSpeech` command. The file will always be played to completion unless nested. - */ -@ApiModel( - description = - "The `Say` command provides Text-To-Speech (TTS) support using the" - + " freeclimb.standard TTS engine. It converts text to speech and then renders" - + " it in a female voice back to the caller. `SayStandard` is useful in cases" - + " where it's difficult to pre-record a prompt for any reason. `SayStandard`" - + " does not allow barge-in unless nested within a `GetSpeech` command. The" - + " file will always be played to completion unless nested.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") -public class SayStandard { - public static String getDiscriminatorValue() { - return null; - } - - public static final String SERIALIZED_NAME_TEXT = "text"; - - @SerializedName(SERIALIZED_NAME_TEXT) - private String text; - - public static final String SERIALIZED_NAME_LOOP = "loop"; - - @SerializedName(SERIALIZED_NAME_LOOP) - private Integer loop = 1; - - public static final String SERIALIZED_NAME_PRIVACY_MODE = "privacyMode"; - - @SerializedName(SERIALIZED_NAME_PRIVACY_MODE) - private Boolean privacyMode = false; - - public static final String SERIALIZED_NAME_ENGINE = "engine"; - - @SerializedName(SERIALIZED_NAME_ENGINE) - private SayStandardEngine engine; - - public SayStandard() {} - - public SayStandard text(String text) { - - this.text = text; - return this; - } - - /** - * The message to be played to the caller using TTS. The size of the string is limited to 4 KB - * (or 4,096 bytes). An empty string will cause the command to be skipped. - * - * @return text - */ - @javax.annotation.Nonnull - @ApiModelProperty( - required = true, - value = - "The message to be played to the caller using TTS. The size of the string is" - + " limited to 4 KB (or 4,096 bytes). An empty string will cause the" - + " command to be skipped.") - public String getText() { - return text; - } - - public void setText(String text) { - this.text = text; - } - - public SayStandard loop(Integer loop) { - - this.loop = loop; - return this; - } - - /** - * Number of times the text is said. Specifying '0' causes the `Say` action to - * loop until the Call is hung up. - * - * @return loop - */ - @javax.annotation.Nullable - @ApiModelProperty( - value = - "Number of times the text is said. Specifying '0' causes the `Say` action to" - + " loop until the Call is hung up.") - public Integer getLoop() { - return loop; - } - - public void setLoop(Integer loop) { - this.loop = loop; - } - - public SayStandard privacyMode(Boolean privacyMode) { - - this.privacyMode = privacyMode; - return this; - } - - /** - * Parameter `privacyMode` will not log the `text` as required by PCI - * compliance. - * - * @return privacyMode - */ - @javax.annotation.Nullable - @ApiModelProperty( - value = - "Parameter `privacyMode` will not log the `text` as required by PCI" - + " compliance.") - public Boolean getPrivacyMode() { - return privacyMode; - } - - public void setPrivacyMode(Boolean privacyMode) { - this.privacyMode = privacyMode; - } - - public SayStandard engine(SayStandardEngine engine) { - - this.engine = engine; - return this; - } - - /** - * Get engine - * - * @return engine - */ - @javax.annotation.Nonnull - @ApiModelProperty(required = true, value = "") - public SayStandardEngine getEngine() { - return engine; - } - - public void setEngine(SayStandardEngine engine) { - this.engine = engine; - } - - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - SayStandard sayStandard = (SayStandard) o; - return Objects.equals(this.text, sayStandard.text) - && Objects.equals(this.loop, sayStandard.loop) - && Objects.equals(this.privacyMode, sayStandard.privacyMode) - && Objects.equals(this.engine, sayStandard.engine); - } - - @Override - public int hashCode() { - return Objects.hash(text, loop, privacyMode, engine); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class SayStandard {\n"); - sb.append(" text: ").append(toIndentedString(text)).append("\n"); - sb.append(" loop: ").append(toIndentedString(loop)).append("\n"); - sb.append(" privacyMode: ").append(toIndentedString(privacyMode)).append("\n"); - sb.append(" engine: ").append(toIndentedString(engine)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces (except the first - * line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } -} diff --git a/src/main/java/com/github/freeclimbapi/models/SayStandardEngine.java b/src/main/java/com/github/freeclimbapi/models/SayStandardEngine.java deleted file mode 100644 index 10dbfc4c..00000000 --- a/src/main/java/com/github/freeclimbapi/models/SayStandardEngine.java +++ /dev/null @@ -1,133 +0,0 @@ -/* - * FreeClimb API - * FreeClimb is a cloud-based application programming interface (API) that puts the power of the Vail platform in your hands. FreeClimb simplifies the process of creating applications that can use a full range of telephony features without requiring specialized or on-site telephony equipment. Using the FreeClimb REST API to write applications is easy! You have the option to use the language of your choice or hit the API directly. Your application can execute a command by issuing a RESTful request to the FreeClimb API. The base URL to send HTTP requests to the FreeClimb REST API is: /apiserver. FreeClimb authenticates and processes your request. - * - * The version of the OpenAPI document: 1.0.0 - * Contact: support@freeclimb.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -package com.github.freeclimbapi.models; - -import com.github.freeclimbapi.enums.*; -import com.google.gson.annotations.SerializedName; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; -import java.util.*; -import java.util.Objects; - -/** - * Language and (by implication) the locale to use. This implies the accent and pronunciations to be - * usde for the TTS. The complete list of valid values for the language attribute is shown below. - */ -@ApiModel( - description = - "Language and (by implication) the locale to use. This implies the accent and" - + " pronunciations to be usde for the TTS. The complete list of valid values" - + " for the language attribute is shown below.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") -public class SayStandardEngine { - public static String getDiscriminatorValue() { - return null; - } - - public static final String SERIALIZED_NAME_NAME = "name"; - - @SerializedName(SERIALIZED_NAME_NAME) - private String name = "freeclimb.standard"; - - public static final String SERIALIZED_NAME_PARAMETERS = "parameters"; - - @SerializedName(SERIALIZED_NAME_PARAMETERS) - private SayStandardEngineParameters parameters; - - public SayStandardEngine() {} - - public SayStandardEngine name(String name) { - - this.name = name; - return this; - } - - /** - * The name of the TTS engine to use. Set to `freeclimb.standard` for to use the - * standard freeclimb TTS engine. - * - * @return name - */ - @javax.annotation.Nullable - @ApiModelProperty( - value = - "The name of the TTS engine to use. Set to `freeclimb.standard` for to use the" - + " standard freeclimb TTS engine.") - public String getName() { - return name; - } - - public void setName(String name) { - this.name = name; - } - - public SayStandardEngine parameters(SayStandardEngineParameters parameters) { - - this.parameters = parameters; - return this; - } - - /** - * Get parameters - * - * @return parameters - */ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - public SayStandardEngineParameters getParameters() { - return parameters; - } - - public void setParameters(SayStandardEngineParameters parameters) { - this.parameters = parameters; - } - - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - SayStandardEngine sayStandardEngine = (SayStandardEngine) o; - return Objects.equals(this.name, sayStandardEngine.name) - && Objects.equals(this.parameters, sayStandardEngine.parameters); - } - - @Override - public int hashCode() { - return Objects.hash(name, parameters); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class SayStandardEngine {\n"); - sb.append(" name: ").append(toIndentedString(name)).append("\n"); - sb.append(" parameters: ").append(toIndentedString(parameters)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces (except the first - * line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } -} diff --git a/src/main/java/com/github/freeclimbapi/models/SayStandardEngineParameters.java b/src/main/java/com/github/freeclimbapi/models/SayStandardEngineParameters.java deleted file mode 100644 index d8d72448..00000000 --- a/src/main/java/com/github/freeclimbapi/models/SayStandardEngineParameters.java +++ /dev/null @@ -1,156 +0,0 @@ -/* - * FreeClimb API - * FreeClimb is a cloud-based application programming interface (API) that puts the power of the Vail platform in your hands. FreeClimb simplifies the process of creating applications that can use a full range of telephony features without requiring specialized or on-site telephony equipment. Using the FreeClimb REST API to write applications is easy! You have the option to use the language of your choice or hit the API directly. Your application can execute a command by issuing a RESTful request to the FreeClimb API. The base URL to send HTTP requests to the FreeClimb REST API is: /apiserver. FreeClimb authenticates and processes your request. - * - * The version of the OpenAPI document: 1.0.0 - * Contact: support@freeclimb.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -package com.github.freeclimbapi.models; - -import com.github.freeclimbapi.enums.*; -import com.google.gson.annotations.SerializedName; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; -import java.util.*; -import java.util.Objects; - -/** - * The parameters to use for the TTS. The complete list of valid values for the parameters attribute - * is shown below. - */ -@ApiModel( - description = - "The parameters to use for the TTS. The complete list of valid values for the" - + " parameters attribute is shown below.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") -public class SayStandardEngineParameters { - public static String getDiscriminatorValue() { - return null; - } - - public static final String SERIALIZED_NAME_VOICE = "Voice"; - - @SerializedName(SERIALIZED_NAME_VOICE) - private SayStandardVoice voice; - - public static final String SERIALIZED_NAME_CULTURE = "Culture"; - - @SerializedName(SERIALIZED_NAME_CULTURE) - private SayStandardCulture culture; - - public static final String SERIALIZED_NAME_CONTENT_TYPE = "Content-Type"; - - @SerializedName(SERIALIZED_NAME_CONTENT_TYPE) - private SayStandardContentType contentType; - - public SayStandardEngineParameters() {} - - public SayStandardEngineParameters voice(SayStandardVoice voice) { - - this.voice = voice; - return this; - } - - /** - * Get voice - * - * @return voice - */ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - public SayStandardVoice getVoice() { - return voice; - } - - public void setVoice(SayStandardVoice voice) { - this.voice = voice; - } - - public SayStandardEngineParameters culture(SayStandardCulture culture) { - - this.culture = culture; - return this; - } - - /** - * Get culture - * - * @return culture - */ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - public SayStandardCulture getCulture() { - return culture; - } - - public void setCulture(SayStandardCulture culture) { - this.culture = culture; - } - - public SayStandardEngineParameters contentType(SayStandardContentType contentType) { - - this.contentType = contentType; - return this; - } - - /** - * Get contentType - * - * @return contentType - */ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - public SayStandardContentType getContentType() { - return contentType; - } - - public void setContentType(SayStandardContentType contentType) { - this.contentType = contentType; - } - - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - SayStandardEngineParameters sayStandardEngineParameters = (SayStandardEngineParameters) o; - return Objects.equals(this.voice, sayStandardEngineParameters.voice) - && Objects.equals(this.culture, sayStandardEngineParameters.culture) - && Objects.equals(this.contentType, sayStandardEngineParameters.contentType); - } - - @Override - public int hashCode() { - return Objects.hash(voice, culture, contentType); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class SayStandardEngineParameters {\n"); - sb.append(" voice: ").append(toIndentedString(voice)).append("\n"); - sb.append(" culture: ").append(toIndentedString(culture)).append("\n"); - sb.append(" contentType: ").append(toIndentedString(contentType)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces (except the first - * line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } -} diff --git a/src/main/java/com/github/freeclimbapi/models/SayNeuralEngine.java b/src/main/java/com/github/freeclimbapi/models/TTSEngine.java similarity index 68% rename from src/main/java/com/github/freeclimbapi/models/SayNeuralEngine.java rename to src/main/java/com/github/freeclimbapi/models/TTSEngine.java index 302d3777..85888cf4 100644 --- a/src/main/java/com/github/freeclimbapi/models/SayNeuralEngine.java +++ b/src/main/java/com/github/freeclimbapi/models/TTSEngine.java @@ -14,21 +14,15 @@ import com.github.freeclimbapi.enums.*; import com.google.gson.annotations.SerializedName; -import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import java.util.*; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; -/** - * The engine to use for the TTS. The complete list of valid values for the engine attribute is - * shown below. - */ -@ApiModel( - description = - "The engine to use for the TTS. The complete list of valid values for the engine" - + " attribute is shown below.") +/** TTSEngine */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") -public class SayNeuralEngine { +public class TTSEngine { public static String getDiscriminatorValue() { return null; } @@ -36,58 +30,66 @@ public static String getDiscriminatorValue() { public static final String SERIALIZED_NAME_NAME = "name"; @SerializedName(SERIALIZED_NAME_NAME) - private String name = "freeclimb.neural"; + private TTSEngineName name; public static final String SERIALIZED_NAME_PARAMETERS = "parameters"; @SerializedName(SERIALIZED_NAME_PARAMETERS) - private SayNeuralEngineParameters parameters; + private Map parameters = null; - public SayNeuralEngine() {} + public TTSEngine() {} - public SayNeuralEngine name(String name) { + public TTSEngine name(TTSEngineName name) { this.name = name; return this; } /** - * The name of the TTS engine to use. Set to `freeclimb.neural` to use the - * freeclimb.neural TTS engine. + * Get name * * @return name */ @javax.annotation.Nullable - @ApiModelProperty( - value = - "The name of the TTS engine to use. Set to `freeclimb.neural` to use the" - + " freeclimb.neural TTS engine.") - public String getName() { + @ApiModelProperty(value = "") + public TTSEngineName getName() { return name; } - public void setName(String name) { + public void setName(TTSEngineName name) { this.name = name; } - public SayNeuralEngine parameters(SayNeuralEngineParameters parameters) { + public TTSEngine parameters(Map parameters) { this.parameters = parameters; return this; } + public TTSEngine putparametersItem(String key, Object parametersItem) { + if (this.parameters == null) { + this.parameters = new HashMap<>(); + } + this.parameters.put(key, parametersItem); + return this; + } + /** - * Get parameters + * Parameters for the TTS engine. The parameters are specific to the engine and are documented + * in the engine's documentation. * * @return parameters */ @javax.annotation.Nullable - @ApiModelProperty(value = "") - public SayNeuralEngineParameters getParameters() { + @ApiModelProperty( + value = + "Parameters for the TTS engine. The parameters are specific to the engine and" + + " are documented in the engine's documentation.") + public Map getParameters() { return parameters; } - public void setParameters(SayNeuralEngineParameters parameters) { + public void setParameters(Map parameters) { this.parameters = parameters; } @@ -99,9 +101,9 @@ public boolean equals(Object o) { if (o == null || getClass() != o.getClass()) { return false; } - SayNeuralEngine sayNeuralEngine = (SayNeuralEngine) o; - return Objects.equals(this.name, sayNeuralEngine.name) - && Objects.equals(this.parameters, sayNeuralEngine.parameters); + TTSEngine ttSEngine = (TTSEngine) o; + return Objects.equals(this.name, ttSEngine.name) + && Objects.equals(this.parameters, ttSEngine.parameters); } @Override @@ -112,7 +114,7 @@ public int hashCode() { @Override public String toString() { StringBuilder sb = new StringBuilder(); - sb.append("class SayNeuralEngine {\n"); + sb.append("class TTSEngine {\n"); sb.append(" name: ").append(toIndentedString(name)).append("\n"); sb.append(" parameters: ").append(toIndentedString(parameters)).append("\n"); sb.append("}"); diff --git a/src/test/java/com/github/freeclimbapi/api/DefaultApiTest.java b/src/test/java/com/github/freeclimbapi/api/DefaultApiTest.java index 920bd8b7..be036cfd 100644 --- a/src/test/java/com/github/freeclimbapi/api/DefaultApiTest.java +++ b/src/test/java/com/github/freeclimbapi/api/DefaultApiTest.java @@ -224,9 +224,7 @@ public void deleteBlobTest() throws ApiException { String blobId = blobIdStringTestValue(); - List key = keyTestArray(); - - BlobResult response = this.apiInstance.deleteBlob(blobId, key); + BlobResult response = this.apiInstance.deleteBlob(blobId); // TODO: test validations assertEquals(response.getClass(), BlobResult.class); } @@ -724,11 +722,7 @@ public void listAvailableNumbersTest() throws ApiException { @Test public void listBlobsTest() throws ApiException { - String alias = aliasStringTestValue(); - - String cursor = cursorStringTestValue(); - - BlobListResponse response = this.apiInstance.listBlobs(alias, cursor); + BlobListResponse response = this.apiInstance.listBlobs(); // TODO: test validations assertEquals(response.getClass(), BlobListResponse.class); } @@ -1473,11 +1467,7 @@ public void listAvailableNumbersGetNextPageTest() throws ApiException { @Test public void listBlobsGetNextPageTest() throws ApiException { - String alias = aliasStringTestValue(); - - String cursor = cursorStringTestValue(); - - BlobListResponse response = this.apiInstance.listBlobs(alias, cursor); + BlobListResponse response = this.apiInstance.listBlobs(); String localVarNextPageUri = "/Accounts/{accountId}/Blobs" .replaceAll( diff --git a/src/test/java/com/github/freeclimbapi/enums/SayNeuralTextTypeTest.java b/src/test/java/com/github/freeclimbapi/enums/SayNeuralTextTypeTest.java deleted file mode 100644 index 599c741f..00000000 --- a/src/test/java/com/github/freeclimbapi/enums/SayNeuralTextTypeTest.java +++ /dev/null @@ -1,69 +0,0 @@ -/* - * FreeClimb API - * FreeClimb is a cloud-based application programming interface (API) that puts the power of the Vail platform in your hands. FreeClimb simplifies the process of creating applications that can use a full range of telephony features without requiring specialized or on-site telephony equipment. Using the FreeClimb REST API to write applications is easy! You have the option to use the language of your choice or hit the API directly. Your application can execute a command by issuing a RESTful request to the FreeClimb API. The base URL to send HTTP requests to the FreeClimb REST API is: /apiserver. FreeClimb authenticates and processes your request. - * - * The version of the OpenAPI document: 1.0.0 - * Contact: support@freeclimb.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -package com.github.freeclimbapi; - -import com.github.freeclimbapi.enums.*; -import com.github.freeclimbapi.models.*; -import java.util.*; -import org.junit.Assert; -import org.junit.Test; - -/** Model tests for SayNeuralTextType */ -public class SayNeuralTextTypeTest { - - @Test - public void testTEXTShouldWork() { - - SayNeuralTextType test = SayNeuralTextType.TEXT; - Assert.assertEquals(test.getClass(), SayNeuralTextType.class); - } - - @Test - public void testTEXTShouldSerializeToEnum() { - - SayNeuralTextType expectedValue = SayNeuralTextType.TEXT; - SayNeuralTextType calculatedValue = SayNeuralTextType.fromValue("text"); - Assert.assertEquals(expectedValue, calculatedValue); - } - - @Test - public void testTEXTShouldDeserializeToString() { - SayNeuralTextType test = SayNeuralTextType.TEXT; - String expectedValue = "text"; - String calculatedValue = test.toString(); - Assert.assertEquals(expectedValue, calculatedValue); - } - - @Test - public void testSSMLShouldWork() { - - SayNeuralTextType test = SayNeuralTextType.SSML; - Assert.assertEquals(test.getClass(), SayNeuralTextType.class); - } - - @Test - public void testSSMLShouldSerializeToEnum() { - - SayNeuralTextType expectedValue = SayNeuralTextType.SSML; - SayNeuralTextType calculatedValue = SayNeuralTextType.fromValue("ssml"); - Assert.assertEquals(expectedValue, calculatedValue); - } - - @Test - public void testSSMLShouldDeserializeToString() { - SayNeuralTextType test = SayNeuralTextType.SSML; - String expectedValue = "ssml"; - String calculatedValue = test.toString(); - Assert.assertEquals(expectedValue, calculatedValue); - } -} diff --git a/src/test/java/com/github/freeclimbapi/enums/SayStandardContentTypeTest.java b/src/test/java/com/github/freeclimbapi/enums/SayStandardContentTypeTest.java deleted file mode 100644 index 1e1eab38..00000000 --- a/src/test/java/com/github/freeclimbapi/enums/SayStandardContentTypeTest.java +++ /dev/null @@ -1,70 +0,0 @@ -/* - * FreeClimb API - * FreeClimb is a cloud-based application programming interface (API) that puts the power of the Vail platform in your hands. FreeClimb simplifies the process of creating applications that can use a full range of telephony features without requiring specialized or on-site telephony equipment. Using the FreeClimb REST API to write applications is easy! You have the option to use the language of your choice or hit the API directly. Your application can execute a command by issuing a RESTful request to the FreeClimb API. The base URL to send HTTP requests to the FreeClimb REST API is: /apiserver. FreeClimb authenticates and processes your request. - * - * The version of the OpenAPI document: 1.0.0 - * Contact: support@freeclimb.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -package com.github.freeclimbapi; - -import com.github.freeclimbapi.enums.*; -import com.github.freeclimbapi.models.*; -import java.util.*; -import org.junit.Assert; -import org.junit.Test; - -/** Model tests for SayStandardContentType */ -public class SayStandardContentTypeTest { - - @Test - public void testTEXT_PLAINShouldWork() { - - SayStandardContentType test = SayStandardContentType.TEXT_PLAIN; - Assert.assertEquals(test.getClass(), SayStandardContentType.class); - } - - @Test - public void testTEXT_PLAINShouldSerializeToEnum() { - - SayStandardContentType expectedValue = SayStandardContentType.TEXT_PLAIN; - SayStandardContentType calculatedValue = SayStandardContentType.fromValue("text/plain"); - Assert.assertEquals(expectedValue, calculatedValue); - } - - @Test - public void testTEXT_PLAINShouldDeserializeToString() { - SayStandardContentType test = SayStandardContentType.TEXT_PLAIN; - String expectedValue = "text/plain"; - String calculatedValue = test.toString(); - Assert.assertEquals(expectedValue, calculatedValue); - } - - @Test - public void testAPPLICATION_SSML_XMLShouldWork() { - - SayStandardContentType test = SayStandardContentType.APPLICATION_SSML_XML; - Assert.assertEquals(test.getClass(), SayStandardContentType.class); - } - - @Test - public void testAPPLICATION_SSML_XMLShouldSerializeToEnum() { - - SayStandardContentType expectedValue = SayStandardContentType.APPLICATION_SSML_XML; - SayStandardContentType calculatedValue = - SayStandardContentType.fromValue("application/ssml+xml"); - Assert.assertEquals(expectedValue, calculatedValue); - } - - @Test - public void testAPPLICATION_SSML_XMLShouldDeserializeToString() { - SayStandardContentType test = SayStandardContentType.APPLICATION_SSML_XML; - String expectedValue = "application/ssml+xml"; - String calculatedValue = test.toString(); - Assert.assertEquals(expectedValue, calculatedValue); - } -} diff --git a/src/test/java/com/github/freeclimbapi/enums/SayStandardCultureTest.java b/src/test/java/com/github/freeclimbapi/enums/SayStandardCultureTest.java deleted file mode 100644 index 0deacedb..00000000 --- a/src/test/java/com/github/freeclimbapi/enums/SayStandardCultureTest.java +++ /dev/null @@ -1,621 +0,0 @@ -/* - * FreeClimb API - * FreeClimb is a cloud-based application programming interface (API) that puts the power of the Vail platform in your hands. FreeClimb simplifies the process of creating applications that can use a full range of telephony features without requiring specialized or on-site telephony equipment. Using the FreeClimb REST API to write applications is easy! You have the option to use the language of your choice or hit the API directly. Your application can execute a command by issuing a RESTful request to the FreeClimb API. The base URL to send HTTP requests to the FreeClimb REST API is: /apiserver. FreeClimb authenticates and processes your request. - * - * The version of the OpenAPI document: 1.0.0 - * Contact: support@freeclimb.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -package com.github.freeclimbapi; - -import com.github.freeclimbapi.enums.*; -import com.github.freeclimbapi.models.*; -import java.util.*; -import org.junit.Assert; -import org.junit.Test; - -/** Model tests for SayStandardCulture */ -public class SayStandardCultureTest { - - @Test - public void testCA_ESShouldWork() { - - SayStandardCulture test = SayStandardCulture.CA_ES; - Assert.assertEquals(test.getClass(), SayStandardCulture.class); - } - - @Test - public void testCA_ESShouldSerializeToEnum() { - - SayStandardCulture expectedValue = SayStandardCulture.CA_ES; - SayStandardCulture calculatedValue = SayStandardCulture.fromValue("ca-ES"); - Assert.assertEquals(expectedValue, calculatedValue); - } - - @Test - public void testCA_ESShouldDeserializeToString() { - SayStandardCulture test = SayStandardCulture.CA_ES; - String expectedValue = "ca-ES"; - String calculatedValue = test.toString(); - Assert.assertEquals(expectedValue, calculatedValue); - } - - @Test - public void testDA_DKShouldWork() { - - SayStandardCulture test = SayStandardCulture.DA_DK; - Assert.assertEquals(test.getClass(), SayStandardCulture.class); - } - - @Test - public void testDA_DKShouldSerializeToEnum() { - - SayStandardCulture expectedValue = SayStandardCulture.DA_DK; - SayStandardCulture calculatedValue = SayStandardCulture.fromValue("da-DK"); - Assert.assertEquals(expectedValue, calculatedValue); - } - - @Test - public void testDA_DKShouldDeserializeToString() { - SayStandardCulture test = SayStandardCulture.DA_DK; - String expectedValue = "da-DK"; - String calculatedValue = test.toString(); - Assert.assertEquals(expectedValue, calculatedValue); - } - - @Test - public void testDE_DEShouldWork() { - - SayStandardCulture test = SayStandardCulture.DE_DE; - Assert.assertEquals(test.getClass(), SayStandardCulture.class); - } - - @Test - public void testDE_DEShouldSerializeToEnum() { - - SayStandardCulture expectedValue = SayStandardCulture.DE_DE; - SayStandardCulture calculatedValue = SayStandardCulture.fromValue("de-DE"); - Assert.assertEquals(expectedValue, calculatedValue); - } - - @Test - public void testDE_DEShouldDeserializeToString() { - SayStandardCulture test = SayStandardCulture.DE_DE; - String expectedValue = "de-DE"; - String calculatedValue = test.toString(); - Assert.assertEquals(expectedValue, calculatedValue); - } - - @Test - public void testEN_AUShouldWork() { - - SayStandardCulture test = SayStandardCulture.EN_AU; - Assert.assertEquals(test.getClass(), SayStandardCulture.class); - } - - @Test - public void testEN_AUShouldSerializeToEnum() { - - SayStandardCulture expectedValue = SayStandardCulture.EN_AU; - SayStandardCulture calculatedValue = SayStandardCulture.fromValue("en-AU"); - Assert.assertEquals(expectedValue, calculatedValue); - } - - @Test - public void testEN_AUShouldDeserializeToString() { - SayStandardCulture test = SayStandardCulture.EN_AU; - String expectedValue = "en-AU"; - String calculatedValue = test.toString(); - Assert.assertEquals(expectedValue, calculatedValue); - } - - @Test - public void testEN_CAShouldWork() { - - SayStandardCulture test = SayStandardCulture.EN_CA; - Assert.assertEquals(test.getClass(), SayStandardCulture.class); - } - - @Test - public void testEN_CAShouldSerializeToEnum() { - - SayStandardCulture expectedValue = SayStandardCulture.EN_CA; - SayStandardCulture calculatedValue = SayStandardCulture.fromValue("en-CA"); - Assert.assertEquals(expectedValue, calculatedValue); - } - - @Test - public void testEN_CAShouldDeserializeToString() { - SayStandardCulture test = SayStandardCulture.EN_CA; - String expectedValue = "en-CA"; - String calculatedValue = test.toString(); - Assert.assertEquals(expectedValue, calculatedValue); - } - - @Test - public void testEN_GBShouldWork() { - - SayStandardCulture test = SayStandardCulture.EN_GB; - Assert.assertEquals(test.getClass(), SayStandardCulture.class); - } - - @Test - public void testEN_GBShouldSerializeToEnum() { - - SayStandardCulture expectedValue = SayStandardCulture.EN_GB; - SayStandardCulture calculatedValue = SayStandardCulture.fromValue("en-GB"); - Assert.assertEquals(expectedValue, calculatedValue); - } - - @Test - public void testEN_GBShouldDeserializeToString() { - SayStandardCulture test = SayStandardCulture.EN_GB; - String expectedValue = "en-GB"; - String calculatedValue = test.toString(); - Assert.assertEquals(expectedValue, calculatedValue); - } - - @Test - public void testEN_INShouldWork() { - - SayStandardCulture test = SayStandardCulture.EN_IN; - Assert.assertEquals(test.getClass(), SayStandardCulture.class); - } - - @Test - public void testEN_INShouldSerializeToEnum() { - - SayStandardCulture expectedValue = SayStandardCulture.EN_IN; - SayStandardCulture calculatedValue = SayStandardCulture.fromValue("en-IN"); - Assert.assertEquals(expectedValue, calculatedValue); - } - - @Test - public void testEN_INShouldDeserializeToString() { - SayStandardCulture test = SayStandardCulture.EN_IN; - String expectedValue = "en-IN"; - String calculatedValue = test.toString(); - Assert.assertEquals(expectedValue, calculatedValue); - } - - @Test - public void testEN_USShouldWork() { - - SayStandardCulture test = SayStandardCulture.EN_US; - Assert.assertEquals(test.getClass(), SayStandardCulture.class); - } - - @Test - public void testEN_USShouldSerializeToEnum() { - - SayStandardCulture expectedValue = SayStandardCulture.EN_US; - SayStandardCulture calculatedValue = SayStandardCulture.fromValue("en-US"); - Assert.assertEquals(expectedValue, calculatedValue); - } - - @Test - public void testEN_USShouldDeserializeToString() { - SayStandardCulture test = SayStandardCulture.EN_US; - String expectedValue = "en-US"; - String calculatedValue = test.toString(); - Assert.assertEquals(expectedValue, calculatedValue); - } - - @Test - public void testES_ESShouldWork() { - - SayStandardCulture test = SayStandardCulture.ES_ES; - Assert.assertEquals(test.getClass(), SayStandardCulture.class); - } - - @Test - public void testES_ESShouldSerializeToEnum() { - - SayStandardCulture expectedValue = SayStandardCulture.ES_ES; - SayStandardCulture calculatedValue = SayStandardCulture.fromValue("es-ES"); - Assert.assertEquals(expectedValue, calculatedValue); - } - - @Test - public void testES_ESShouldDeserializeToString() { - SayStandardCulture test = SayStandardCulture.ES_ES; - String expectedValue = "es-ES"; - String calculatedValue = test.toString(); - Assert.assertEquals(expectedValue, calculatedValue); - } - - @Test - public void testES_MXShouldWork() { - - SayStandardCulture test = SayStandardCulture.ES_MX; - Assert.assertEquals(test.getClass(), SayStandardCulture.class); - } - - @Test - public void testES_MXShouldSerializeToEnum() { - - SayStandardCulture expectedValue = SayStandardCulture.ES_MX; - SayStandardCulture calculatedValue = SayStandardCulture.fromValue("es-MX"); - Assert.assertEquals(expectedValue, calculatedValue); - } - - @Test - public void testES_MXShouldDeserializeToString() { - SayStandardCulture test = SayStandardCulture.ES_MX; - String expectedValue = "es-MX"; - String calculatedValue = test.toString(); - Assert.assertEquals(expectedValue, calculatedValue); - } - - @Test - public void testFI_FIShouldWork() { - - SayStandardCulture test = SayStandardCulture.FI_FI; - Assert.assertEquals(test.getClass(), SayStandardCulture.class); - } - - @Test - public void testFI_FIShouldSerializeToEnum() { - - SayStandardCulture expectedValue = SayStandardCulture.FI_FI; - SayStandardCulture calculatedValue = SayStandardCulture.fromValue("fi-FI"); - Assert.assertEquals(expectedValue, calculatedValue); - } - - @Test - public void testFI_FIShouldDeserializeToString() { - SayStandardCulture test = SayStandardCulture.FI_FI; - String expectedValue = "fi-FI"; - String calculatedValue = test.toString(); - Assert.assertEquals(expectedValue, calculatedValue); - } - - @Test - public void testFR_CAShouldWork() { - - SayStandardCulture test = SayStandardCulture.FR_CA; - Assert.assertEquals(test.getClass(), SayStandardCulture.class); - } - - @Test - public void testFR_CAShouldSerializeToEnum() { - - SayStandardCulture expectedValue = SayStandardCulture.FR_CA; - SayStandardCulture calculatedValue = SayStandardCulture.fromValue("fr-CA"); - Assert.assertEquals(expectedValue, calculatedValue); - } - - @Test - public void testFR_CAShouldDeserializeToString() { - SayStandardCulture test = SayStandardCulture.FR_CA; - String expectedValue = "fr-CA"; - String calculatedValue = test.toString(); - Assert.assertEquals(expectedValue, calculatedValue); - } - - @Test - public void testFR_FRShouldWork() { - - SayStandardCulture test = SayStandardCulture.FR_FR; - Assert.assertEquals(test.getClass(), SayStandardCulture.class); - } - - @Test - public void testFR_FRShouldSerializeToEnum() { - - SayStandardCulture expectedValue = SayStandardCulture.FR_FR; - SayStandardCulture calculatedValue = SayStandardCulture.fromValue("fr-FR"); - Assert.assertEquals(expectedValue, calculatedValue); - } - - @Test - public void testFR_FRShouldDeserializeToString() { - SayStandardCulture test = SayStandardCulture.FR_FR; - String expectedValue = "fr-FR"; - String calculatedValue = test.toString(); - Assert.assertEquals(expectedValue, calculatedValue); - } - - @Test - public void testIT_ITShouldWork() { - - SayStandardCulture test = SayStandardCulture.IT_IT; - Assert.assertEquals(test.getClass(), SayStandardCulture.class); - } - - @Test - public void testIT_ITShouldSerializeToEnum() { - - SayStandardCulture expectedValue = SayStandardCulture.IT_IT; - SayStandardCulture calculatedValue = SayStandardCulture.fromValue("it-IT"); - Assert.assertEquals(expectedValue, calculatedValue); - } - - @Test - public void testIT_ITShouldDeserializeToString() { - SayStandardCulture test = SayStandardCulture.IT_IT; - String expectedValue = "it-IT"; - String calculatedValue = test.toString(); - Assert.assertEquals(expectedValue, calculatedValue); - } - - @Test - public void testJA_JPShouldWork() { - - SayStandardCulture test = SayStandardCulture.JA_JP; - Assert.assertEquals(test.getClass(), SayStandardCulture.class); - } - - @Test - public void testJA_JPShouldSerializeToEnum() { - - SayStandardCulture expectedValue = SayStandardCulture.JA_JP; - SayStandardCulture calculatedValue = SayStandardCulture.fromValue("ja-JP"); - Assert.assertEquals(expectedValue, calculatedValue); - } - - @Test - public void testJA_JPShouldDeserializeToString() { - SayStandardCulture test = SayStandardCulture.JA_JP; - String expectedValue = "ja-JP"; - String calculatedValue = test.toString(); - Assert.assertEquals(expectedValue, calculatedValue); - } - - @Test - public void testKO_KRShouldWork() { - - SayStandardCulture test = SayStandardCulture.KO_KR; - Assert.assertEquals(test.getClass(), SayStandardCulture.class); - } - - @Test - public void testKO_KRShouldSerializeToEnum() { - - SayStandardCulture expectedValue = SayStandardCulture.KO_KR; - SayStandardCulture calculatedValue = SayStandardCulture.fromValue("ko-KR"); - Assert.assertEquals(expectedValue, calculatedValue); - } - - @Test - public void testKO_KRShouldDeserializeToString() { - SayStandardCulture test = SayStandardCulture.KO_KR; - String expectedValue = "ko-KR"; - String calculatedValue = test.toString(); - Assert.assertEquals(expectedValue, calculatedValue); - } - - @Test - public void testNB_NOShouldWork() { - - SayStandardCulture test = SayStandardCulture.NB_NO; - Assert.assertEquals(test.getClass(), SayStandardCulture.class); - } - - @Test - public void testNB_NOShouldSerializeToEnum() { - - SayStandardCulture expectedValue = SayStandardCulture.NB_NO; - SayStandardCulture calculatedValue = SayStandardCulture.fromValue("nb-NO"); - Assert.assertEquals(expectedValue, calculatedValue); - } - - @Test - public void testNB_NOShouldDeserializeToString() { - SayStandardCulture test = SayStandardCulture.NB_NO; - String expectedValue = "nb-NO"; - String calculatedValue = test.toString(); - Assert.assertEquals(expectedValue, calculatedValue); - } - - @Test - public void testNL_NLShouldWork() { - - SayStandardCulture test = SayStandardCulture.NL_NL; - Assert.assertEquals(test.getClass(), SayStandardCulture.class); - } - - @Test - public void testNL_NLShouldSerializeToEnum() { - - SayStandardCulture expectedValue = SayStandardCulture.NL_NL; - SayStandardCulture calculatedValue = SayStandardCulture.fromValue("nl-NL"); - Assert.assertEquals(expectedValue, calculatedValue); - } - - @Test - public void testNL_NLShouldDeserializeToString() { - SayStandardCulture test = SayStandardCulture.NL_NL; - String expectedValue = "nl-NL"; - String calculatedValue = test.toString(); - Assert.assertEquals(expectedValue, calculatedValue); - } - - @Test - public void testPL_PLShouldWork() { - - SayStandardCulture test = SayStandardCulture.PL_PL; - Assert.assertEquals(test.getClass(), SayStandardCulture.class); - } - - @Test - public void testPL_PLShouldSerializeToEnum() { - - SayStandardCulture expectedValue = SayStandardCulture.PL_PL; - SayStandardCulture calculatedValue = SayStandardCulture.fromValue("pl-PL"); - Assert.assertEquals(expectedValue, calculatedValue); - } - - @Test - public void testPL_PLShouldDeserializeToString() { - SayStandardCulture test = SayStandardCulture.PL_PL; - String expectedValue = "pl-PL"; - String calculatedValue = test.toString(); - Assert.assertEquals(expectedValue, calculatedValue); - } - - @Test - public void testPT_BRShouldWork() { - - SayStandardCulture test = SayStandardCulture.PT_BR; - Assert.assertEquals(test.getClass(), SayStandardCulture.class); - } - - @Test - public void testPT_BRShouldSerializeToEnum() { - - SayStandardCulture expectedValue = SayStandardCulture.PT_BR; - SayStandardCulture calculatedValue = SayStandardCulture.fromValue("pt-BR"); - Assert.assertEquals(expectedValue, calculatedValue); - } - - @Test - public void testPT_BRShouldDeserializeToString() { - SayStandardCulture test = SayStandardCulture.PT_BR; - String expectedValue = "pt-BR"; - String calculatedValue = test.toString(); - Assert.assertEquals(expectedValue, calculatedValue); - } - - @Test - public void testPT_PTShouldWork() { - - SayStandardCulture test = SayStandardCulture.PT_PT; - Assert.assertEquals(test.getClass(), SayStandardCulture.class); - } - - @Test - public void testPT_PTShouldSerializeToEnum() { - - SayStandardCulture expectedValue = SayStandardCulture.PT_PT; - SayStandardCulture calculatedValue = SayStandardCulture.fromValue("pt-PT"); - Assert.assertEquals(expectedValue, calculatedValue); - } - - @Test - public void testPT_PTShouldDeserializeToString() { - SayStandardCulture test = SayStandardCulture.PT_PT; - String expectedValue = "pt-PT"; - String calculatedValue = test.toString(); - Assert.assertEquals(expectedValue, calculatedValue); - } - - @Test - public void testRU_RUShouldWork() { - - SayStandardCulture test = SayStandardCulture.RU_RU; - Assert.assertEquals(test.getClass(), SayStandardCulture.class); - } - - @Test - public void testRU_RUShouldSerializeToEnum() { - - SayStandardCulture expectedValue = SayStandardCulture.RU_RU; - SayStandardCulture calculatedValue = SayStandardCulture.fromValue("ru-RU"); - Assert.assertEquals(expectedValue, calculatedValue); - } - - @Test - public void testRU_RUShouldDeserializeToString() { - SayStandardCulture test = SayStandardCulture.RU_RU; - String expectedValue = "ru-RU"; - String calculatedValue = test.toString(); - Assert.assertEquals(expectedValue, calculatedValue); - } - - @Test - public void testSV_SEShouldWork() { - - SayStandardCulture test = SayStandardCulture.SV_SE; - Assert.assertEquals(test.getClass(), SayStandardCulture.class); - } - - @Test - public void testSV_SEShouldSerializeToEnum() { - - SayStandardCulture expectedValue = SayStandardCulture.SV_SE; - SayStandardCulture calculatedValue = SayStandardCulture.fromValue("sv-SE"); - Assert.assertEquals(expectedValue, calculatedValue); - } - - @Test - public void testSV_SEShouldDeserializeToString() { - SayStandardCulture test = SayStandardCulture.SV_SE; - String expectedValue = "sv-SE"; - String calculatedValue = test.toString(); - Assert.assertEquals(expectedValue, calculatedValue); - } - - @Test - public void testZH_CNShouldWork() { - - SayStandardCulture test = SayStandardCulture.ZH_CN; - Assert.assertEquals(test.getClass(), SayStandardCulture.class); - } - - @Test - public void testZH_CNShouldSerializeToEnum() { - - SayStandardCulture expectedValue = SayStandardCulture.ZH_CN; - SayStandardCulture calculatedValue = SayStandardCulture.fromValue("zh-CN"); - Assert.assertEquals(expectedValue, calculatedValue); - } - - @Test - public void testZH_CNShouldDeserializeToString() { - SayStandardCulture test = SayStandardCulture.ZH_CN; - String expectedValue = "zh-CN"; - String calculatedValue = test.toString(); - Assert.assertEquals(expectedValue, calculatedValue); - } - - @Test - public void testZH_HKShouldWork() { - - SayStandardCulture test = SayStandardCulture.ZH_HK; - Assert.assertEquals(test.getClass(), SayStandardCulture.class); - } - - @Test - public void testZH_HKShouldSerializeToEnum() { - - SayStandardCulture expectedValue = SayStandardCulture.ZH_HK; - SayStandardCulture calculatedValue = SayStandardCulture.fromValue("zh-HK"); - Assert.assertEquals(expectedValue, calculatedValue); - } - - @Test - public void testZH_HKShouldDeserializeToString() { - SayStandardCulture test = SayStandardCulture.ZH_HK; - String expectedValue = "zh-HK"; - String calculatedValue = test.toString(); - Assert.assertEquals(expectedValue, calculatedValue); - } - - @Test - public void testZH_TWShouldWork() { - - SayStandardCulture test = SayStandardCulture.ZH_TW; - Assert.assertEquals(test.getClass(), SayStandardCulture.class); - } - - @Test - public void testZH_TWShouldSerializeToEnum() { - - SayStandardCulture expectedValue = SayStandardCulture.ZH_TW; - SayStandardCulture calculatedValue = SayStandardCulture.fromValue("zh-TW"); - Assert.assertEquals(expectedValue, calculatedValue); - } - - @Test - public void testZH_TWShouldDeserializeToString() { - SayStandardCulture test = SayStandardCulture.ZH_TW; - String expectedValue = "zh-TW"; - String calculatedValue = test.toString(); - Assert.assertEquals(expectedValue, calculatedValue); - } -} diff --git a/src/test/java/com/github/freeclimbapi/enums/SayStandardVoiceTest.java b/src/test/java/com/github/freeclimbapi/enums/SayStandardVoiceTest.java deleted file mode 100644 index 249f42fa..00000000 --- a/src/test/java/com/github/freeclimbapi/enums/SayStandardVoiceTest.java +++ /dev/null @@ -1,621 +0,0 @@ -/* - * FreeClimb API - * FreeClimb is a cloud-based application programming interface (API) that puts the power of the Vail platform in your hands. FreeClimb simplifies the process of creating applications that can use a full range of telephony features without requiring specialized or on-site telephony equipment. Using the FreeClimb REST API to write applications is easy! You have the option to use the language of your choice or hit the API directly. Your application can execute a command by issuing a RESTful request to the FreeClimb API. The base URL to send HTTP requests to the FreeClimb REST API is: /apiserver. FreeClimb authenticates and processes your request. - * - * The version of the OpenAPI document: 1.0.0 - * Contact: support@freeclimb.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -package com.github.freeclimbapi; - -import com.github.freeclimbapi.enums.*; -import com.github.freeclimbapi.models.*; -import java.util.*; -import org.junit.Assert; -import org.junit.Test; - -/** Model tests for SayStandardVoice */ -public class SayStandardVoiceTest { - - @Test - public void testHERENAShouldWork() { - - SayStandardVoice test = SayStandardVoice.HERENA; - Assert.assertEquals(test.getClass(), SayStandardVoice.class); - } - - @Test - public void testHERENAShouldSerializeToEnum() { - - SayStandardVoice expectedValue = SayStandardVoice.HERENA; - SayStandardVoice calculatedValue = SayStandardVoice.fromValue("Herena"); - Assert.assertEquals(expectedValue, calculatedValue); - } - - @Test - public void testHERENAShouldDeserializeToString() { - SayStandardVoice test = SayStandardVoice.HERENA; - String expectedValue = "Herena"; - String calculatedValue = test.toString(); - Assert.assertEquals(expectedValue, calculatedValue); - } - - @Test - public void testHELLEShouldWork() { - - SayStandardVoice test = SayStandardVoice.HELLE; - Assert.assertEquals(test.getClass(), SayStandardVoice.class); - } - - @Test - public void testHELLEShouldSerializeToEnum() { - - SayStandardVoice expectedValue = SayStandardVoice.HELLE; - SayStandardVoice calculatedValue = SayStandardVoice.fromValue("Helle"); - Assert.assertEquals(expectedValue, calculatedValue); - } - - @Test - public void testHELLEShouldDeserializeToString() { - SayStandardVoice test = SayStandardVoice.HELLE; - String expectedValue = "Helle"; - String calculatedValue = test.toString(); - Assert.assertEquals(expectedValue, calculatedValue); - } - - @Test - public void testHEDDAShouldWork() { - - SayStandardVoice test = SayStandardVoice.HEDDA; - Assert.assertEquals(test.getClass(), SayStandardVoice.class); - } - - @Test - public void testHEDDAShouldSerializeToEnum() { - - SayStandardVoice expectedValue = SayStandardVoice.HEDDA; - SayStandardVoice calculatedValue = SayStandardVoice.fromValue("Hedda"); - Assert.assertEquals(expectedValue, calculatedValue); - } - - @Test - public void testHEDDAShouldDeserializeToString() { - SayStandardVoice test = SayStandardVoice.HEDDA; - String expectedValue = "Hedda"; - String calculatedValue = test.toString(); - Assert.assertEquals(expectedValue, calculatedValue); - } - - @Test - public void testHAYLEYShouldWork() { - - SayStandardVoice test = SayStandardVoice.HAYLEY; - Assert.assertEquals(test.getClass(), SayStandardVoice.class); - } - - @Test - public void testHAYLEYShouldSerializeToEnum() { - - SayStandardVoice expectedValue = SayStandardVoice.HAYLEY; - SayStandardVoice calculatedValue = SayStandardVoice.fromValue("Hayley"); - Assert.assertEquals(expectedValue, calculatedValue); - } - - @Test - public void testHAYLEYShouldDeserializeToString() { - SayStandardVoice test = SayStandardVoice.HAYLEY; - String expectedValue = "Hayley"; - String calculatedValue = test.toString(); - Assert.assertEquals(expectedValue, calculatedValue); - } - - @Test - public void testHEATHERShouldWork() { - - SayStandardVoice test = SayStandardVoice.HEATHER; - Assert.assertEquals(test.getClass(), SayStandardVoice.class); - } - - @Test - public void testHEATHERShouldSerializeToEnum() { - - SayStandardVoice expectedValue = SayStandardVoice.HEATHER; - SayStandardVoice calculatedValue = SayStandardVoice.fromValue("Heather"); - Assert.assertEquals(expectedValue, calculatedValue); - } - - @Test - public void testHEATHERShouldDeserializeToString() { - SayStandardVoice test = SayStandardVoice.HEATHER; - String expectedValue = "Heather"; - String calculatedValue = test.toString(); - Assert.assertEquals(expectedValue, calculatedValue); - } - - @Test - public void testHAZELShouldWork() { - - SayStandardVoice test = SayStandardVoice.HAZEL; - Assert.assertEquals(test.getClass(), SayStandardVoice.class); - } - - @Test - public void testHAZELShouldSerializeToEnum() { - - SayStandardVoice expectedValue = SayStandardVoice.HAZEL; - SayStandardVoice calculatedValue = SayStandardVoice.fromValue("Hazel"); - Assert.assertEquals(expectedValue, calculatedValue); - } - - @Test - public void testHAZELShouldDeserializeToString() { - SayStandardVoice test = SayStandardVoice.HAZEL; - String expectedValue = "Hazel"; - String calculatedValue = test.toString(); - Assert.assertEquals(expectedValue, calculatedValue); - } - - @Test - public void testHEERAShouldWork() { - - SayStandardVoice test = SayStandardVoice.HEERA; - Assert.assertEquals(test.getClass(), SayStandardVoice.class); - } - - @Test - public void testHEERAShouldSerializeToEnum() { - - SayStandardVoice expectedValue = SayStandardVoice.HEERA; - SayStandardVoice calculatedValue = SayStandardVoice.fromValue("Heera"); - Assert.assertEquals(expectedValue, calculatedValue); - } - - @Test - public void testHEERAShouldDeserializeToString() { - SayStandardVoice test = SayStandardVoice.HEERA; - String expectedValue = "Heera"; - String calculatedValue = test.toString(); - Assert.assertEquals(expectedValue, calculatedValue); - } - - @Test - public void testHELENShouldWork() { - - SayStandardVoice test = SayStandardVoice.HELEN; - Assert.assertEquals(test.getClass(), SayStandardVoice.class); - } - - @Test - public void testHELENShouldSerializeToEnum() { - - SayStandardVoice expectedValue = SayStandardVoice.HELEN; - SayStandardVoice calculatedValue = SayStandardVoice.fromValue("Helen"); - Assert.assertEquals(expectedValue, calculatedValue); - } - - @Test - public void testHELENShouldDeserializeToString() { - SayStandardVoice test = SayStandardVoice.HELEN; - String expectedValue = "Helen"; - String calculatedValue = test.toString(); - Assert.assertEquals(expectedValue, calculatedValue); - } - - @Test - public void testZIRA_PROShouldWork() { - - SayStandardVoice test = SayStandardVoice.ZIRA_PRO; - Assert.assertEquals(test.getClass(), SayStandardVoice.class); - } - - @Test - public void testZIRA_PROShouldSerializeToEnum() { - - SayStandardVoice expectedValue = SayStandardVoice.ZIRA_PRO; - SayStandardVoice calculatedValue = SayStandardVoice.fromValue("ZiraPro"); - Assert.assertEquals(expectedValue, calculatedValue); - } - - @Test - public void testZIRA_PROShouldDeserializeToString() { - SayStandardVoice test = SayStandardVoice.ZIRA_PRO; - String expectedValue = "ZiraPro"; - String calculatedValue = test.toString(); - Assert.assertEquals(expectedValue, calculatedValue); - } - - @Test - public void testHELENAShouldWork() { - - SayStandardVoice test = SayStandardVoice.HELENA; - Assert.assertEquals(test.getClass(), SayStandardVoice.class); - } - - @Test - public void testHELENAShouldSerializeToEnum() { - - SayStandardVoice expectedValue = SayStandardVoice.HELENA; - SayStandardVoice calculatedValue = SayStandardVoice.fromValue("Helena"); - Assert.assertEquals(expectedValue, calculatedValue); - } - - @Test - public void testHELENAShouldDeserializeToString() { - SayStandardVoice test = SayStandardVoice.HELENA; - String expectedValue = "Helena"; - String calculatedValue = test.toString(); - Assert.assertEquals(expectedValue, calculatedValue); - } - - @Test - public void testHILDAShouldWork() { - - SayStandardVoice test = SayStandardVoice.HILDA; - Assert.assertEquals(test.getClass(), SayStandardVoice.class); - } - - @Test - public void testHILDAShouldSerializeToEnum() { - - SayStandardVoice expectedValue = SayStandardVoice.HILDA; - SayStandardVoice calculatedValue = SayStandardVoice.fromValue("Hilda"); - Assert.assertEquals(expectedValue, calculatedValue); - } - - @Test - public void testHILDAShouldDeserializeToString() { - SayStandardVoice test = SayStandardVoice.HILDA; - String expectedValue = "Hilda"; - String calculatedValue = test.toString(); - Assert.assertEquals(expectedValue, calculatedValue); - } - - @Test - public void testHEIDIShouldWork() { - - SayStandardVoice test = SayStandardVoice.HEIDI; - Assert.assertEquals(test.getClass(), SayStandardVoice.class); - } - - @Test - public void testHEIDIShouldSerializeToEnum() { - - SayStandardVoice expectedValue = SayStandardVoice.HEIDI; - SayStandardVoice calculatedValue = SayStandardVoice.fromValue("Heidi"); - Assert.assertEquals(expectedValue, calculatedValue); - } - - @Test - public void testHEIDIShouldDeserializeToString() { - SayStandardVoice test = SayStandardVoice.HEIDI; - String expectedValue = "Heidi"; - String calculatedValue = test.toString(); - Assert.assertEquals(expectedValue, calculatedValue); - } - - @Test - public void testHARMONIEShouldWork() { - - SayStandardVoice test = SayStandardVoice.HARMONIE; - Assert.assertEquals(test.getClass(), SayStandardVoice.class); - } - - @Test - public void testHARMONIEShouldSerializeToEnum() { - - SayStandardVoice expectedValue = SayStandardVoice.HARMONIE; - SayStandardVoice calculatedValue = SayStandardVoice.fromValue("Harmonie"); - Assert.assertEquals(expectedValue, calculatedValue); - } - - @Test - public void testHARMONIEShouldDeserializeToString() { - SayStandardVoice test = SayStandardVoice.HARMONIE; - String expectedValue = "Harmonie"; - String calculatedValue = test.toString(); - Assert.assertEquals(expectedValue, calculatedValue); - } - - @Test - public void testHORTENSEShouldWork() { - - SayStandardVoice test = SayStandardVoice.HORTENSE; - Assert.assertEquals(test.getClass(), SayStandardVoice.class); - } - - @Test - public void testHORTENSEShouldSerializeToEnum() { - - SayStandardVoice expectedValue = SayStandardVoice.HORTENSE; - SayStandardVoice calculatedValue = SayStandardVoice.fromValue("Hortense"); - Assert.assertEquals(expectedValue, calculatedValue); - } - - @Test - public void testHORTENSEShouldDeserializeToString() { - SayStandardVoice test = SayStandardVoice.HORTENSE; - String expectedValue = "Hortense"; - String calculatedValue = test.toString(); - Assert.assertEquals(expectedValue, calculatedValue); - } - - @Test - public void testLUCIAShouldWork() { - - SayStandardVoice test = SayStandardVoice.LUCIA; - Assert.assertEquals(test.getClass(), SayStandardVoice.class); - } - - @Test - public void testLUCIAShouldSerializeToEnum() { - - SayStandardVoice expectedValue = SayStandardVoice.LUCIA; - SayStandardVoice calculatedValue = SayStandardVoice.fromValue("Lucia"); - Assert.assertEquals(expectedValue, calculatedValue); - } - - @Test - public void testLUCIAShouldDeserializeToString() { - SayStandardVoice test = SayStandardVoice.LUCIA; - String expectedValue = "Lucia"; - String calculatedValue = test.toString(); - Assert.assertEquals(expectedValue, calculatedValue); - } - - @Test - public void testHARKUAShouldWork() { - - SayStandardVoice test = SayStandardVoice.HARKUA; - Assert.assertEquals(test.getClass(), SayStandardVoice.class); - } - - @Test - public void testHARKUAShouldSerializeToEnum() { - - SayStandardVoice expectedValue = SayStandardVoice.HARKUA; - SayStandardVoice calculatedValue = SayStandardVoice.fromValue("Harkua"); - Assert.assertEquals(expectedValue, calculatedValue); - } - - @Test - public void testHARKUAShouldDeserializeToString() { - SayStandardVoice test = SayStandardVoice.HARKUA; - String expectedValue = "Harkua"; - String calculatedValue = test.toString(); - Assert.assertEquals(expectedValue, calculatedValue); - } - - @Test - public void testHEAMIShouldWork() { - - SayStandardVoice test = SayStandardVoice.HEAMI; - Assert.assertEquals(test.getClass(), SayStandardVoice.class); - } - - @Test - public void testHEAMIShouldSerializeToEnum() { - - SayStandardVoice expectedValue = SayStandardVoice.HEAMI; - SayStandardVoice calculatedValue = SayStandardVoice.fromValue("Heami"); - Assert.assertEquals(expectedValue, calculatedValue); - } - - @Test - public void testHEAMIShouldDeserializeToString() { - SayStandardVoice test = SayStandardVoice.HEAMI; - String expectedValue = "Heami"; - String calculatedValue = test.toString(); - Assert.assertEquals(expectedValue, calculatedValue); - } - - @Test - public void testHULDAShouldWork() { - - SayStandardVoice test = SayStandardVoice.HULDA; - Assert.assertEquals(test.getClass(), SayStandardVoice.class); - } - - @Test - public void testHULDAShouldSerializeToEnum() { - - SayStandardVoice expectedValue = SayStandardVoice.HULDA; - SayStandardVoice calculatedValue = SayStandardVoice.fromValue("Hulda"); - Assert.assertEquals(expectedValue, calculatedValue); - } - - @Test - public void testHULDAShouldDeserializeToString() { - SayStandardVoice test = SayStandardVoice.HULDA; - String expectedValue = "Hulda"; - String calculatedValue = test.toString(); - Assert.assertEquals(expectedValue, calculatedValue); - } - - @Test - public void testHANNAShouldWork() { - - SayStandardVoice test = SayStandardVoice.HANNA; - Assert.assertEquals(test.getClass(), SayStandardVoice.class); - } - - @Test - public void testHANNAShouldSerializeToEnum() { - - SayStandardVoice expectedValue = SayStandardVoice.HANNA; - SayStandardVoice calculatedValue = SayStandardVoice.fromValue("Hanna"); - Assert.assertEquals(expectedValue, calculatedValue); - } - - @Test - public void testHANNAShouldDeserializeToString() { - SayStandardVoice test = SayStandardVoice.HANNA; - String expectedValue = "Hanna"; - String calculatedValue = test.toString(); - Assert.assertEquals(expectedValue, calculatedValue); - } - - @Test - public void testPAULINAShouldWork() { - - SayStandardVoice test = SayStandardVoice.PAULINA; - Assert.assertEquals(test.getClass(), SayStandardVoice.class); - } - - @Test - public void testPAULINAShouldSerializeToEnum() { - - SayStandardVoice expectedValue = SayStandardVoice.PAULINA; - SayStandardVoice calculatedValue = SayStandardVoice.fromValue("Paulina"); - Assert.assertEquals(expectedValue, calculatedValue); - } - - @Test - public void testPAULINAShouldDeserializeToString() { - SayStandardVoice test = SayStandardVoice.PAULINA; - String expectedValue = "Paulina"; - String calculatedValue = test.toString(); - Assert.assertEquals(expectedValue, calculatedValue); - } - - @Test - public void testHELOSIAShouldWork() { - - SayStandardVoice test = SayStandardVoice.HELOSIA; - Assert.assertEquals(test.getClass(), SayStandardVoice.class); - } - - @Test - public void testHELOSIAShouldSerializeToEnum() { - - SayStandardVoice expectedValue = SayStandardVoice.HELOSIA; - SayStandardVoice calculatedValue = SayStandardVoice.fromValue("Helosia"); - Assert.assertEquals(expectedValue, calculatedValue); - } - - @Test - public void testHELOSIAShouldDeserializeToString() { - SayStandardVoice test = SayStandardVoice.HELOSIA; - String expectedValue = "Helosia"; - String calculatedValue = test.toString(); - Assert.assertEquals(expectedValue, calculatedValue); - } - - @Test - public void testHELIAShouldWork() { - - SayStandardVoice test = SayStandardVoice.HELIA; - Assert.assertEquals(test.getClass(), SayStandardVoice.class); - } - - @Test - public void testHELIAShouldSerializeToEnum() { - - SayStandardVoice expectedValue = SayStandardVoice.HELIA; - SayStandardVoice calculatedValue = SayStandardVoice.fromValue("Helia"); - Assert.assertEquals(expectedValue, calculatedValue); - } - - @Test - public void testHELIAShouldDeserializeToString() { - SayStandardVoice test = SayStandardVoice.HELIA; - String expectedValue = "Helia"; - String calculatedValue = test.toString(); - Assert.assertEquals(expectedValue, calculatedValue); - } - - @Test - public void testELENAShouldWork() { - - SayStandardVoice test = SayStandardVoice.ELENA; - Assert.assertEquals(test.getClass(), SayStandardVoice.class); - } - - @Test - public void testELENAShouldSerializeToEnum() { - - SayStandardVoice expectedValue = SayStandardVoice.ELENA; - SayStandardVoice calculatedValue = SayStandardVoice.fromValue("Elena"); - Assert.assertEquals(expectedValue, calculatedValue); - } - - @Test - public void testELENAShouldDeserializeToString() { - SayStandardVoice test = SayStandardVoice.ELENA; - String expectedValue = "Elena"; - String calculatedValue = test.toString(); - Assert.assertEquals(expectedValue, calculatedValue); - } - - @Test - public void testHEDVIGShouldWork() { - - SayStandardVoice test = SayStandardVoice.HEDVIG; - Assert.assertEquals(test.getClass(), SayStandardVoice.class); - } - - @Test - public void testHEDVIGShouldSerializeToEnum() { - - SayStandardVoice expectedValue = SayStandardVoice.HEDVIG; - SayStandardVoice calculatedValue = SayStandardVoice.fromValue("Hedvig"); - Assert.assertEquals(expectedValue, calculatedValue); - } - - @Test - public void testHEDVIGShouldDeserializeToString() { - SayStandardVoice test = SayStandardVoice.HEDVIG; - String expectedValue = "Hedvig"; - String calculatedValue = test.toString(); - Assert.assertEquals(expectedValue, calculatedValue); - } - - @Test - public void testHUN_YEEShouldWork() { - - SayStandardVoice test = SayStandardVoice.HUN_YEE; - Assert.assertEquals(test.getClass(), SayStandardVoice.class); - } - - @Test - public void testHUN_YEEShouldSerializeToEnum() { - - SayStandardVoice expectedValue = SayStandardVoice.HUN_YEE; - SayStandardVoice calculatedValue = SayStandardVoice.fromValue("HunYee"); - Assert.assertEquals(expectedValue, calculatedValue); - } - - @Test - public void testHUN_YEEShouldDeserializeToString() { - SayStandardVoice test = SayStandardVoice.HUN_YEE; - String expectedValue = "HunYee"; - String calculatedValue = test.toString(); - Assert.assertEquals(expectedValue, calculatedValue); - } - - @Test - public void testHAN_HANShouldWork() { - - SayStandardVoice test = SayStandardVoice.HAN_HAN; - Assert.assertEquals(test.getClass(), SayStandardVoice.class); - } - - @Test - public void testHAN_HANShouldSerializeToEnum() { - - SayStandardVoice expectedValue = SayStandardVoice.HAN_HAN; - SayStandardVoice calculatedValue = SayStandardVoice.fromValue("HanHan"); - Assert.assertEquals(expectedValue, calculatedValue); - } - - @Test - public void testHAN_HANShouldDeserializeToString() { - SayStandardVoice test = SayStandardVoice.HAN_HAN; - String expectedValue = "HanHan"; - String calculatedValue = test.toString(); - Assert.assertEquals(expectedValue, calculatedValue); - } -} diff --git a/src/test/java/com/github/freeclimbapi/enums/TTSEngineNameTest.java b/src/test/java/com/github/freeclimbapi/enums/TTSEngineNameTest.java new file mode 100644 index 00000000..63d52524 --- /dev/null +++ b/src/test/java/com/github/freeclimbapi/enums/TTSEngineNameTest.java @@ -0,0 +1,92 @@ +/* + * FreeClimb API + * FreeClimb is a cloud-based application programming interface (API) that puts the power of the Vail platform in your hands. FreeClimb simplifies the process of creating applications that can use a full range of telephony features without requiring specialized or on-site telephony equipment. Using the FreeClimb REST API to write applications is easy! You have the option to use the language of your choice or hit the API directly. Your application can execute a command by issuing a RESTful request to the FreeClimb API. The base URL to send HTTP requests to the FreeClimb REST API is: /apiserver. FreeClimb authenticates and processes your request. + * + * The version of the OpenAPI document: 1.0.0 + * Contact: support@freeclimb.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +package com.github.freeclimbapi; + +import com.github.freeclimbapi.enums.*; +import com.github.freeclimbapi.models.*; +import java.util.*; +import org.junit.Assert; +import org.junit.Test; + +/** Model tests for TTSEngineName */ +public class TTSEngineNameTest { + + @Test + public void testFREECLIMB_STANDARDShouldWork() { + + TTSEngineName test = TTSEngineName.FREECLIMB_STANDARD; + Assert.assertEquals(test.getClass(), TTSEngineName.class); + } + + @Test + public void testFREECLIMB_STANDARDShouldSerializeToEnum() { + + TTSEngineName expectedValue = TTSEngineName.FREECLIMB_STANDARD; + TTSEngineName calculatedValue = TTSEngineName.fromValue("freeclimb.standard"); + Assert.assertEquals(expectedValue, calculatedValue); + } + + @Test + public void testFREECLIMB_STANDARDShouldDeserializeToString() { + TTSEngineName test = TTSEngineName.FREECLIMB_STANDARD; + String expectedValue = "freeclimb.standard"; + String calculatedValue = test.toString(); + Assert.assertEquals(expectedValue, calculatedValue); + } + + @Test + public void testFREECLIMB_NEURALShouldWork() { + + TTSEngineName test = TTSEngineName.FREECLIMB_NEURAL; + Assert.assertEquals(test.getClass(), TTSEngineName.class); + } + + @Test + public void testFREECLIMB_NEURALShouldSerializeToEnum() { + + TTSEngineName expectedValue = TTSEngineName.FREECLIMB_NEURAL; + TTSEngineName calculatedValue = TTSEngineName.fromValue("freeclimb.neural"); + Assert.assertEquals(expectedValue, calculatedValue); + } + + @Test + public void testFREECLIMB_NEURALShouldDeserializeToString() { + TTSEngineName test = TTSEngineName.FREECLIMB_NEURAL; + String expectedValue = "freeclimb.neural"; + String calculatedValue = test.toString(); + Assert.assertEquals(expectedValue, calculatedValue); + } + + @Test + public void testELEVEN_LABSShouldWork() { + + TTSEngineName test = TTSEngineName.ELEVEN_LABS; + Assert.assertEquals(test.getClass(), TTSEngineName.class); + } + + @Test + public void testELEVEN_LABSShouldSerializeToEnum() { + + TTSEngineName expectedValue = TTSEngineName.ELEVEN_LABS; + TTSEngineName calculatedValue = TTSEngineName.fromValue("ElevenLabs"); + Assert.assertEquals(expectedValue, calculatedValue); + } + + @Test + public void testELEVEN_LABSShouldDeserializeToString() { + TTSEngineName test = TTSEngineName.ELEVEN_LABS; + String expectedValue = "ElevenLabs"; + String calculatedValue = test.toString(); + Assert.assertEquals(expectedValue, calculatedValue); + } +} diff --git a/src/test/java/com/github/freeclimbapi/models/SayClassicTest.java b/src/test/java/com/github/freeclimbapi/models/SayClassicTest.java deleted file mode 100644 index c0d308ee..00000000 --- a/src/test/java/com/github/freeclimbapi/models/SayClassicTest.java +++ /dev/null @@ -1,222 +0,0 @@ -/* - * FreeClimb API - * FreeClimb is a cloud-based application programming interface (API) that puts the power of the Vail platform in your hands. FreeClimb simplifies the process of creating applications that can use a full range of telephony features without requiring specialized or on-site telephony equipment. Using the FreeClimb REST API to write applications is easy! You have the option to use the language of your choice or hit the API directly. Your application can execute a command by issuing a RESTful request to the FreeClimb API. The base URL to send HTTP requests to the FreeClimb REST API is: /apiserver. FreeClimb authenticates and processes your request. - * - * The version of the OpenAPI document: 1.0.0 - * Contact: support@freeclimb.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -package com.github.freeclimbapi; - -import com.github.freeclimbapi.enums.*; -import com.github.freeclimbapi.models.*; -import java.util.*; -import org.junit.Assert; -import org.junit.Test; - -/** Model tests for SayClassic */ -public class SayClassicTest { - - private final SayClassic model = new SayClassic(); - - /** Test the property 'text' */ - @Test - public void textTest() { - - model.setText("TEST_STRING"); - Assert.assertEquals("TEST_STRING", model.getText()); - } - - /** Test the property 'language' */ - @Test - public void languageTest() { - - model.setLanguage("TEST_STRING"); - Assert.assertEquals("TEST_STRING", model.getLanguage()); - } - - /** Test the property 'loop' */ - @Test - public void loopTest() { - - model.setLoop(1); - Assert.assertEquals(1, (int) model.getLoop()); - } - - /** Test the property 'privacyMode' */ - @Test - public void privacyModeTest() { - model.setPrivacyMode(false); - Assert.assertEquals(false, model.getPrivacyMode()); - } - - /** Test the method 'equalsTrue' */ - @Test - public void equalsTrueTest() { - SayClassic test1 = new SayClassic(); - - test1.setText("TS"); - - test1.setLanguage("TS"); - - test1.setLoop(1); - - test1.setPrivacyMode(true); - - SayClassic test2 = new SayClassic(); - - test2.setText("TS"); - - test2.setLanguage("TS"); - - test2.setLoop(1); - - test2.setPrivacyMode(true); - - Assert.assertTrue(test1.equals(test2)); - } - - /** Test the method 'equalsFalse' */ - @Test - public void equalsFalseTest() { - SayClassic test1 = new SayClassic(); - - test1.setText("TS"); - - test1.setLanguage("TS"); - - test1.setLoop(1); - - test1.setPrivacyMode(true); - - SayClassic test2 = new SayClassic(); - - test2.setText("TS2"); - - test2.setLanguage("TS2"); - - test2.setLoop(0); - - test2.setPrivacyMode(false); - - Assert.assertFalse(test1.equals(test2)); - } - - /** Test the method 'hashCodeType' */ - @Test - public void hashCodeTypeTest() { - SayClassic test1 = new SayClassic(); - - test1.setText("TS"); - - test1.setLanguage("TS"); - - test1.setLoop(1); - - test1.setPrivacyMode(true); - - int hashCode1 = test1.hashCode(); - Assert.assertTrue(Integer.class.isInstance(hashCode1)); - } - - /** Test the method 'toStringEquals' */ - @Test - public void toStringEqualsTest() { - SayClassic test1 = new SayClassic(); - - test1.setText("TS"); - - test1.setLanguage("TS"); - - test1.setLoop(1); - - test1.setPrivacyMode(true); - - SayClassic test2 = new SayClassic(); - - test2.setText("TS"); - - test2.setLanguage("TS"); - - test2.setLoop(1); - - test2.setPrivacyMode(true); - - String toString1 = test1.toString(); - String toString2 = test2.toString(); - Assert.assertEquals(toString1, toString2); - } - - /** Test the method 'hashCodeEqualsTrue' */ - @Test - public void hashCodeEqualsTrueTest() { - SayClassic test1 = new SayClassic(); - - test1.setText("TS"); - - test1.setLanguage("TS"); - - test1.setLoop(1); - - test1.setPrivacyMode(true); - - SayClassic test2 = new SayClassic(); - - test2.setText("TS"); - - test2.setLanguage("TS"); - - test2.setLoop(1); - - test2.setPrivacyMode(true); - - Assert.assertEquals(test1.hashCode(), test2.hashCode()); - } - - /** Test the method 'hashCodeEqualsFalse' */ - @Test - public void hashCodeEqualsFalseTest() { - SayClassic test1 = new SayClassic(); - - test1.setText("TS"); - - test1.setLanguage("TS"); - - test1.setLoop(1); - - test1.setPrivacyMode(true); - - SayClassic test2 = new SayClassic(); - - test2.setText("TS2"); - - test2.setLanguage("TS2"); - - test2.setLoop(0); - - test2.setPrivacyMode(false); - - Assert.assertNotEquals(test1.hashCode(), test2.hashCode()); - } - - /** Test the method 'toStringType' */ - @Test - public void toStringTypeTest() { - SayClassic test1 = new SayClassic(); - - test1.setText("TS"); - - test1.setLanguage("TS"); - - test1.setLoop(1); - - test1.setPrivacyMode(true); - - String toString1 = test1.toString(); - Assert.assertTrue(String.class.isInstance(toString1)); - } -} diff --git a/src/test/java/com/github/freeclimbapi/models/SayElevenLabsEngineParametersPronunciationDictionaryInnerTest.java b/src/test/java/com/github/freeclimbapi/models/SayElevenLabsEngineParametersPronunciationDictionaryInnerTest.java deleted file mode 100644 index f7ba2117..00000000 --- a/src/test/java/com/github/freeclimbapi/models/SayElevenLabsEngineParametersPronunciationDictionaryInnerTest.java +++ /dev/null @@ -1,172 +0,0 @@ -/* - * FreeClimb API - * FreeClimb is a cloud-based application programming interface (API) that puts the power of the Vail platform in your hands. FreeClimb simplifies the process of creating applications that can use a full range of telephony features without requiring specialized or on-site telephony equipment. Using the FreeClimb REST API to write applications is easy! You have the option to use the language of your choice or hit the API directly. Your application can execute a command by issuing a RESTful request to the FreeClimb API. The base URL to send HTTP requests to the FreeClimb REST API is: /apiserver. FreeClimb authenticates and processes your request. - * - * The version of the OpenAPI document: 1.0.0 - * Contact: support@freeclimb.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -package com.github.freeclimbapi; - -import com.github.freeclimbapi.enums.*; -import com.github.freeclimbapi.models.*; -import java.util.*; -import org.junit.Assert; -import org.junit.Test; - -/** Model tests for SayElevenLabsEngineParametersPronunciationDictionaryInner */ -public class SayElevenLabsEngineParametersPronunciationDictionaryInnerTest { - - private final SayElevenLabsEngineParametersPronunciationDictionaryInner model = - new SayElevenLabsEngineParametersPronunciationDictionaryInner(); - - /** Test the property 'pronunciationDictionaryId' */ - @Test - public void pronunciationDictionaryIdTest() { - - model.setPronunciationDictionaryId("TEST_STRING"); - Assert.assertEquals("TEST_STRING", model.getPronunciationDictionaryId()); - } - - /** Test the property 'versionId' */ - @Test - public void versionIdTest() { - - model.setVersionId("TEST_STRING"); - Assert.assertEquals("TEST_STRING", model.getVersionId()); - } - - /** Test the method 'equalsTrue' */ - @Test - public void equalsTrueTest() { - SayElevenLabsEngineParametersPronunciationDictionaryInner test1 = - new SayElevenLabsEngineParametersPronunciationDictionaryInner(); - - test1.setPronunciationDictionaryId("TS"); - - test1.setVersionId("TS"); - - SayElevenLabsEngineParametersPronunciationDictionaryInner test2 = - new SayElevenLabsEngineParametersPronunciationDictionaryInner(); - - test2.setPronunciationDictionaryId("TS"); - - test2.setVersionId("TS"); - - Assert.assertTrue(test1.equals(test2)); - } - - /** Test the method 'equalsFalse' */ - @Test - public void equalsFalseTest() { - SayElevenLabsEngineParametersPronunciationDictionaryInner test1 = - new SayElevenLabsEngineParametersPronunciationDictionaryInner(); - - test1.setPronunciationDictionaryId("TS"); - - test1.setVersionId("TS"); - - SayElevenLabsEngineParametersPronunciationDictionaryInner test2 = - new SayElevenLabsEngineParametersPronunciationDictionaryInner(); - - test2.setPronunciationDictionaryId("TS2"); - - test2.setVersionId("TS2"); - - Assert.assertFalse(test1.equals(test2)); - } - - /** Test the method 'hashCodeType' */ - @Test - public void hashCodeTypeTest() { - SayElevenLabsEngineParametersPronunciationDictionaryInner test1 = - new SayElevenLabsEngineParametersPronunciationDictionaryInner(); - - test1.setPronunciationDictionaryId("TS"); - - test1.setVersionId("TS"); - - int hashCode1 = test1.hashCode(); - Assert.assertTrue(Integer.class.isInstance(hashCode1)); - } - - /** Test the method 'toStringEquals' */ - @Test - public void toStringEqualsTest() { - SayElevenLabsEngineParametersPronunciationDictionaryInner test1 = - new SayElevenLabsEngineParametersPronunciationDictionaryInner(); - - test1.setPronunciationDictionaryId("TS"); - - test1.setVersionId("TS"); - - SayElevenLabsEngineParametersPronunciationDictionaryInner test2 = - new SayElevenLabsEngineParametersPronunciationDictionaryInner(); - - test2.setPronunciationDictionaryId("TS"); - - test2.setVersionId("TS"); - - String toString1 = test1.toString(); - String toString2 = test2.toString(); - Assert.assertEquals(toString1, toString2); - } - - /** Test the method 'hashCodeEqualsTrue' */ - @Test - public void hashCodeEqualsTrueTest() { - SayElevenLabsEngineParametersPronunciationDictionaryInner test1 = - new SayElevenLabsEngineParametersPronunciationDictionaryInner(); - - test1.setPronunciationDictionaryId("TS"); - - test1.setVersionId("TS"); - - SayElevenLabsEngineParametersPronunciationDictionaryInner test2 = - new SayElevenLabsEngineParametersPronunciationDictionaryInner(); - - test2.setPronunciationDictionaryId("TS"); - - test2.setVersionId("TS"); - - Assert.assertEquals(test1.hashCode(), test2.hashCode()); - } - - /** Test the method 'hashCodeEqualsFalse' */ - @Test - public void hashCodeEqualsFalseTest() { - SayElevenLabsEngineParametersPronunciationDictionaryInner test1 = - new SayElevenLabsEngineParametersPronunciationDictionaryInner(); - - test1.setPronunciationDictionaryId("TS"); - - test1.setVersionId("TS"); - - SayElevenLabsEngineParametersPronunciationDictionaryInner test2 = - new SayElevenLabsEngineParametersPronunciationDictionaryInner(); - - test2.setPronunciationDictionaryId("TS2"); - - test2.setVersionId("TS2"); - - Assert.assertNotEquals(test1.hashCode(), test2.hashCode()); - } - - /** Test the method 'toStringType' */ - @Test - public void toStringTypeTest() { - SayElevenLabsEngineParametersPronunciationDictionaryInner test1 = - new SayElevenLabsEngineParametersPronunciationDictionaryInner(); - - test1.setPronunciationDictionaryId("TS"); - - test1.setVersionId("TS"); - - String toString1 = test1.toString(); - Assert.assertTrue(String.class.isInstance(toString1)); - } -} diff --git a/src/test/java/com/github/freeclimbapi/models/SayElevenLabsEngineParametersTest.java b/src/test/java/com/github/freeclimbapi/models/SayElevenLabsEngineParametersTest.java deleted file mode 100644 index 8360939a..00000000 --- a/src/test/java/com/github/freeclimbapi/models/SayElevenLabsEngineParametersTest.java +++ /dev/null @@ -1,521 +0,0 @@ -/* - * FreeClimb API - * FreeClimb is a cloud-based application programming interface (API) that puts the power of the Vail platform in your hands. FreeClimb simplifies the process of creating applications that can use a full range of telephony features without requiring specialized or on-site telephony equipment. Using the FreeClimb REST API to write applications is easy! You have the option to use the language of your choice or hit the API directly. Your application can execute a command by issuing a RESTful request to the FreeClimb API. The base URL to send HTTP requests to the FreeClimb REST API is: /apiserver. FreeClimb authenticates and processes your request. - * - * The version of the OpenAPI document: 1.0.0 - * Contact: support@freeclimb.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -package com.github.freeclimbapi; - -import com.github.freeclimbapi.enums.*; -import com.github.freeclimbapi.models.*; -import java.util.*; -import java.util.ArrayList; -import java.util.List; -import org.junit.Assert; -import org.junit.Test; - -/** Model tests for SayElevenLabsEngineParameters */ -public class SayElevenLabsEngineParametersTest { - - private final SayElevenLabsEngineParameters model = new SayElevenLabsEngineParameters(); - - /** Test the property 'modelId' */ - @Test - public void modelIdTest() { - - model.setModelId("TEST_STRING"); - Assert.assertEquals("TEST_STRING", model.getModelId()); - } - - /** Test the property 'voiceId' */ - @Test - public void voiceIdTest() { - - model.setVoiceId("TEST_STRING"); - Assert.assertEquals("TEST_STRING", model.getVoiceId()); - } - - /** Test the property 'languageCode' */ - @Test - public void languageCodeTest() { - - model.setLanguageCode("TEST_STRING"); - Assert.assertEquals("TEST_STRING", model.getLanguageCode()); - } - - /** Test the property 'voiceSettings' */ - @Test - public void voiceSettingsTest() { - - SayElevenLabsEngineParametersVoiceSettings object = - new SayElevenLabsEngineParametersVoiceSettings(); - model.setVoiceSettings(object); - Assert.assertEquals(object.getClass(), SayElevenLabsEngineParametersVoiceSettings.class); - } - - /** Test the property 'pronunciationDictionary' */ - @Test - public void pronunciationDictionaryTest() { - - List testList = - new ArrayList(); - model.setPronunciationDictionary(testList); - Assert.assertEquals(testList, model.getPronunciationDictionary()); - } - - /** Test the property 'seed' */ - @Test - public void seedTest() { - - model.setSeed(1); - Assert.assertEquals(1, (int) model.getSeed()); - } - - /** Test the property 'previousText' */ - @Test - public void previousTextTest() { - - model.setPreviousText("TEST_STRING"); - Assert.assertEquals("TEST_STRING", model.getPreviousText()); - } - - /** Test the property 'nextText' */ - @Test - public void nextTextTest() { - - model.setNextText("TEST_STRING"); - Assert.assertEquals("TEST_STRING", model.getNextText()); - } - - /** Test the property 'previousRequestIds' */ - @Test - public void previousRequestIdsTest() { - - List testList = new ArrayList(); - model.setPreviousRequestIds(testList); - Assert.assertEquals(testList, model.getPreviousRequestIds()); - } - - /** Test the property 'nextRequestIds' */ - @Test - public void nextRequestIdsTest() { - - List testList = new ArrayList(); - model.setNextRequestIds(testList); - Assert.assertEquals(testList, model.getNextRequestIds()); - } - - /** Test the property 'applyLanguageTextNormalization' */ - @Test - public void applyLanguageTextNormalizationTest() { - model.setApplyLanguageTextNormalization(false); - Assert.assertEquals(false, model.getApplyLanguageTextNormalization()); - } - - /** Test the method 'equalsTrue' */ - @Test - public void equalsTrueTest() { - SayElevenLabsEngineParameters test1 = new SayElevenLabsEngineParameters(); - - test1.setModelId("TS"); - - test1.setVoiceId("TS"); - - test1.setLanguageCode("TS"); - - SayElevenLabsEngineParametersVoiceSettings - testSayElevenLabsEngineParametersVoiceSettingsObject = - new SayElevenLabsEngineParametersVoiceSettings(); - test1.setVoiceSettings(testSayElevenLabsEngineParametersVoiceSettingsObject); - - List - testsetPronunciationDictionaryList = - new ArrayList(); - test1.setPronunciationDictionary(testsetPronunciationDictionaryList); - test1.setSeed(1); - - test1.setPreviousText("TS"); - - test1.setNextText("TS"); - - List testsetPreviousRequestIdsList = new ArrayList(); - test1.setPreviousRequestIds(testsetPreviousRequestIdsList); - - List testsetNextRequestIdsList = new ArrayList(); - test1.setNextRequestIds(testsetNextRequestIdsList); - test1.setApplyLanguageTextNormalization(true); - - SayElevenLabsEngineParameters test2 = new SayElevenLabsEngineParameters(); - - test2.setModelId("TS"); - - test2.setVoiceId("TS"); - - test2.setLanguageCode("TS"); - - SayElevenLabsEngineParametersVoiceSettings - testSayElevenLabsEngineParametersVoiceSettingsObject2 = - testSayElevenLabsEngineParametersVoiceSettingsObject; - test2.setVoiceSettings(testSayElevenLabsEngineParametersVoiceSettingsObject2); - - List - testsetPronunciationDictionaryList2 = testsetPronunciationDictionaryList; - test2.setPronunciationDictionary(testsetPronunciationDictionaryList2); - test2.setSeed(1); - - test2.setPreviousText("TS"); - - test2.setNextText("TS"); - - List testsetPreviousRequestIdsList2 = testsetPreviousRequestIdsList; - test2.setPreviousRequestIds(testsetPreviousRequestIdsList2); - - List testsetNextRequestIdsList2 = testsetNextRequestIdsList; - test2.setNextRequestIds(testsetNextRequestIdsList2); - test2.setApplyLanguageTextNormalization(true); - - Assert.assertTrue(test1.equals(test2)); - } - - /** Test the method 'equalsFalse' */ - @Test - public void equalsFalseTest() { - SayElevenLabsEngineParameters test1 = new SayElevenLabsEngineParameters(); - - test1.setModelId("TS"); - - test1.setVoiceId("TS"); - - test1.setLanguageCode("TS"); - - SayElevenLabsEngineParametersVoiceSettings - testSayElevenLabsEngineParametersVoiceSettingsObject = - new SayElevenLabsEngineParametersVoiceSettings(); - test1.setVoiceSettings(testSayElevenLabsEngineParametersVoiceSettingsObject); - - List - testsetPronunciationDictionaryList = - new ArrayList(); - test1.setPronunciationDictionary(testsetPronunciationDictionaryList); - test1.setSeed(1); - - test1.setPreviousText("TS"); - - test1.setNextText("TS"); - - List testsetPreviousRequestIdsList = new ArrayList(); - test1.setPreviousRequestIds(testsetPreviousRequestIdsList); - - List testsetNextRequestIdsList = new ArrayList(); - test1.setNextRequestIds(testsetNextRequestIdsList); - test1.setApplyLanguageTextNormalization(true); - - SayElevenLabsEngineParameters test2 = new SayElevenLabsEngineParameters(); - - test2.setModelId("TS2"); - - test2.setVoiceId("TS2"); - - test2.setLanguageCode("TS2"); - - SayElevenLabsEngineParametersVoiceSettings - testSayElevenLabsEngineParametersVoiceSettingsObject2 = - new SayElevenLabsEngineParametersVoiceSettings(); - test2.setVoiceSettings(testSayElevenLabsEngineParametersVoiceSettingsObject2); - - List - testsetPronunciationDictionaryList2 = null; - test2.setPronunciationDictionary(testsetPronunciationDictionaryList2); - test2.setSeed(0); - - test2.setPreviousText("TS2"); - - test2.setNextText("TS2"); - - List testsetPreviousRequestIdsList2 = null; - test2.setPreviousRequestIds(testsetPreviousRequestIdsList2); - - List testsetNextRequestIdsList2 = null; - test2.setNextRequestIds(testsetNextRequestIdsList2); - test2.setApplyLanguageTextNormalization(false); - - Assert.assertFalse(test1.equals(test2)); - } - - /** Test the method 'hashCodeType' */ - @Test - public void hashCodeTypeTest() { - SayElevenLabsEngineParameters test1 = new SayElevenLabsEngineParameters(); - - test1.setModelId("TS"); - - test1.setVoiceId("TS"); - - test1.setLanguageCode("TS"); - - SayElevenLabsEngineParametersVoiceSettings - testSayElevenLabsEngineParametersVoiceSettingsObject = - new SayElevenLabsEngineParametersVoiceSettings(); - test1.setVoiceSettings(testSayElevenLabsEngineParametersVoiceSettingsObject); - - List - testsetPronunciationDictionaryList = - new ArrayList(); - test1.setPronunciationDictionary(testsetPronunciationDictionaryList); - test1.setSeed(1); - - test1.setPreviousText("TS"); - - test1.setNextText("TS"); - - List testsetPreviousRequestIdsList = new ArrayList(); - test1.setPreviousRequestIds(testsetPreviousRequestIdsList); - - List testsetNextRequestIdsList = new ArrayList(); - test1.setNextRequestIds(testsetNextRequestIdsList); - test1.setApplyLanguageTextNormalization(true); - - int hashCode1 = test1.hashCode(); - Assert.assertTrue(Integer.class.isInstance(hashCode1)); - } - - /** Test the method 'toStringEquals' */ - @Test - public void toStringEqualsTest() { - SayElevenLabsEngineParameters test1 = new SayElevenLabsEngineParameters(); - - test1.setModelId("TS"); - - test1.setVoiceId("TS"); - - test1.setLanguageCode("TS"); - - SayElevenLabsEngineParametersVoiceSettings - testSayElevenLabsEngineParametersVoiceSettingsObject = - new SayElevenLabsEngineParametersVoiceSettings(); - test1.setVoiceSettings(testSayElevenLabsEngineParametersVoiceSettingsObject); - - List - testsetPronunciationDictionaryList = - new ArrayList(); - test1.setPronunciationDictionary(testsetPronunciationDictionaryList); - test1.setSeed(1); - - test1.setPreviousText("TS"); - - test1.setNextText("TS"); - - List testsetPreviousRequestIdsList = new ArrayList(); - test1.setPreviousRequestIds(testsetPreviousRequestIdsList); - - List testsetNextRequestIdsList = new ArrayList(); - test1.setNextRequestIds(testsetNextRequestIdsList); - test1.setApplyLanguageTextNormalization(true); - - SayElevenLabsEngineParameters test2 = new SayElevenLabsEngineParameters(); - - test2.setModelId("TS"); - - test2.setVoiceId("TS"); - - test2.setLanguageCode("TS"); - - SayElevenLabsEngineParametersVoiceSettings - testSayElevenLabsEngineParametersVoiceSettingsObject2 = - testSayElevenLabsEngineParametersVoiceSettingsObject; - test2.setVoiceSettings(testSayElevenLabsEngineParametersVoiceSettingsObject2); - - List - testsetPronunciationDictionaryList2 = testsetPronunciationDictionaryList; - test2.setPronunciationDictionary(testsetPronunciationDictionaryList2); - test2.setSeed(1); - - test2.setPreviousText("TS"); - - test2.setNextText("TS"); - - List testsetPreviousRequestIdsList2 = testsetPreviousRequestIdsList; - test2.setPreviousRequestIds(testsetPreviousRequestIdsList2); - - List testsetNextRequestIdsList2 = testsetNextRequestIdsList; - test2.setNextRequestIds(testsetNextRequestIdsList2); - test2.setApplyLanguageTextNormalization(true); - - String toString1 = test1.toString(); - String toString2 = test2.toString(); - Assert.assertEquals(toString1, toString2); - } - - /** Test the method 'hashCodeEqualsTrue' */ - @Test - public void hashCodeEqualsTrueTest() { - SayElevenLabsEngineParameters test1 = new SayElevenLabsEngineParameters(); - - test1.setModelId("TS"); - - test1.setVoiceId("TS"); - - test1.setLanguageCode("TS"); - - SayElevenLabsEngineParametersVoiceSettings - testSayElevenLabsEngineParametersVoiceSettingsObject = - new SayElevenLabsEngineParametersVoiceSettings(); - test1.setVoiceSettings(testSayElevenLabsEngineParametersVoiceSettingsObject); - - List - testsetPronunciationDictionaryList = - new ArrayList(); - test1.setPronunciationDictionary(testsetPronunciationDictionaryList); - test1.setSeed(1); - - test1.setPreviousText("TS"); - - test1.setNextText("TS"); - - List testsetPreviousRequestIdsList = new ArrayList(); - test1.setPreviousRequestIds(testsetPreviousRequestIdsList); - - List testsetNextRequestIdsList = new ArrayList(); - test1.setNextRequestIds(testsetNextRequestIdsList); - test1.setApplyLanguageTextNormalization(true); - - SayElevenLabsEngineParameters test2 = new SayElevenLabsEngineParameters(); - - test2.setModelId("TS"); - - test2.setVoiceId("TS"); - - test2.setLanguageCode("TS"); - - SayElevenLabsEngineParametersVoiceSettings - testSayElevenLabsEngineParametersVoiceSettingsObject2 = - testSayElevenLabsEngineParametersVoiceSettingsObject; - test2.setVoiceSettings(testSayElevenLabsEngineParametersVoiceSettingsObject2); - - List - testsetPronunciationDictionaryList2 = testsetPronunciationDictionaryList; - test2.setPronunciationDictionary(testsetPronunciationDictionaryList2); - test2.setSeed(1); - - test2.setPreviousText("TS"); - - test2.setNextText("TS"); - - List testsetPreviousRequestIdsList2 = testsetPreviousRequestIdsList; - test2.setPreviousRequestIds(testsetPreviousRequestIdsList2); - - List testsetNextRequestIdsList2 = testsetNextRequestIdsList; - test2.setNextRequestIds(testsetNextRequestIdsList2); - test2.setApplyLanguageTextNormalization(true); - - Assert.assertEquals(test1.hashCode(), test2.hashCode()); - } - - /** Test the method 'hashCodeEqualsFalse' */ - @Test - public void hashCodeEqualsFalseTest() { - SayElevenLabsEngineParameters test1 = new SayElevenLabsEngineParameters(); - - test1.setModelId("TS"); - - test1.setVoiceId("TS"); - - test1.setLanguageCode("TS"); - - SayElevenLabsEngineParametersVoiceSettings - testSayElevenLabsEngineParametersVoiceSettingsObject = - new SayElevenLabsEngineParametersVoiceSettings(); - test1.setVoiceSettings(testSayElevenLabsEngineParametersVoiceSettingsObject); - - List - testsetPronunciationDictionaryList = - new ArrayList(); - test1.setPronunciationDictionary(testsetPronunciationDictionaryList); - test1.setSeed(1); - - test1.setPreviousText("TS"); - - test1.setNextText("TS"); - - List testsetPreviousRequestIdsList = new ArrayList(); - test1.setPreviousRequestIds(testsetPreviousRequestIdsList); - - List testsetNextRequestIdsList = new ArrayList(); - test1.setNextRequestIds(testsetNextRequestIdsList); - test1.setApplyLanguageTextNormalization(true); - - SayElevenLabsEngineParameters test2 = new SayElevenLabsEngineParameters(); - - test2.setModelId("TS2"); - - test2.setVoiceId("TS2"); - - test2.setLanguageCode("TS2"); - - SayElevenLabsEngineParametersVoiceSettings - testSayElevenLabsEngineParametersVoiceSettingsObject2 = - new SayElevenLabsEngineParametersVoiceSettings(); - test2.setVoiceSettings(testSayElevenLabsEngineParametersVoiceSettingsObject2); - - List - testsetPronunciationDictionaryList2 = null; - test2.setPronunciationDictionary(testsetPronunciationDictionaryList2); - test2.setSeed(0); - - test2.setPreviousText("TS2"); - - test2.setNextText("TS2"); - - List testsetPreviousRequestIdsList2 = null; - test2.setPreviousRequestIds(testsetPreviousRequestIdsList2); - - List testsetNextRequestIdsList2 = null; - test2.setNextRequestIds(testsetNextRequestIdsList2); - test2.setApplyLanguageTextNormalization(false); - - Assert.assertNotEquals(test1.hashCode(), test2.hashCode()); - } - - /** Test the method 'toStringType' */ - @Test - public void toStringTypeTest() { - SayElevenLabsEngineParameters test1 = new SayElevenLabsEngineParameters(); - - test1.setModelId("TS"); - - test1.setVoiceId("TS"); - - test1.setLanguageCode("TS"); - - SayElevenLabsEngineParametersVoiceSettings - testSayElevenLabsEngineParametersVoiceSettingsObject = - new SayElevenLabsEngineParametersVoiceSettings(); - test1.setVoiceSettings(testSayElevenLabsEngineParametersVoiceSettingsObject); - - List - testsetPronunciationDictionaryList = - new ArrayList(); - test1.setPronunciationDictionary(testsetPronunciationDictionaryList); - test1.setSeed(1); - - test1.setPreviousText("TS"); - - test1.setNextText("TS"); - - List testsetPreviousRequestIdsList = new ArrayList(); - test1.setPreviousRequestIds(testsetPreviousRequestIdsList); - - List testsetNextRequestIdsList = new ArrayList(); - test1.setNextRequestIds(testsetNextRequestIdsList); - test1.setApplyLanguageTextNormalization(true); - - String toString1 = test1.toString(); - Assert.assertTrue(String.class.isInstance(toString1)); - } -} diff --git a/src/test/java/com/github/freeclimbapi/models/SayElevenLabsEngineParametersVoiceSettingsTest.java b/src/test/java/com/github/freeclimbapi/models/SayElevenLabsEngineParametersVoiceSettingsTest.java deleted file mode 100644 index 870cc674..00000000 --- a/src/test/java/com/github/freeclimbapi/models/SayElevenLabsEngineParametersVoiceSettingsTest.java +++ /dev/null @@ -1,172 +0,0 @@ -/* - * FreeClimb API - * FreeClimb is a cloud-based application programming interface (API) that puts the power of the Vail platform in your hands. FreeClimb simplifies the process of creating applications that can use a full range of telephony features without requiring specialized or on-site telephony equipment. Using the FreeClimb REST API to write applications is easy! You have the option to use the language of your choice or hit the API directly. Your application can execute a command by issuing a RESTful request to the FreeClimb API. The base URL to send HTTP requests to the FreeClimb REST API is: /apiserver. FreeClimb authenticates and processes your request. - * - * The version of the OpenAPI document: 1.0.0 - * Contact: support@freeclimb.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -package com.github.freeclimbapi; - -import com.github.freeclimbapi.enums.*; -import com.github.freeclimbapi.models.*; -import java.math.BigDecimal; -import java.util.*; -import org.junit.Assert; -import org.junit.Test; - -/** Model tests for SayElevenLabsEngineParametersVoiceSettings */ -public class SayElevenLabsEngineParametersVoiceSettingsTest { - - private final SayElevenLabsEngineParametersVoiceSettings model = - new SayElevenLabsEngineParametersVoiceSettings(); - - /** Test the property 'stability' */ - @Test - public void stabilityTest() { - - model.setStability(new BigDecimal(1.0)); - Assert.assertEquals(new BigDecimal(1.0), model.getStability()); - } - - /** Test the property 'useSpeakerBoost' */ - @Test - public void useSpeakerBoostTest() { - model.setUseSpeakerBoost(false); - Assert.assertEquals(false, model.getUseSpeakerBoost()); - } - - /** Test the property 'similarityBoost' */ - @Test - public void similarityBoostTest() { - - model.setSimilarityBoost(new BigDecimal(1.0)); - Assert.assertEquals(new BigDecimal(1.0), model.getSimilarityBoost()); - } - - /** Test the property 'style' */ - @Test - public void styleTest() { - - model.setStyle(new BigDecimal(1.0)); - Assert.assertEquals(new BigDecimal(1.0), model.getStyle()); - } - - /** Test the property 'speed' */ - @Test - public void speedTest() { - - model.setSpeed(new BigDecimal(1.0)); - Assert.assertEquals(new BigDecimal(1.0), model.getSpeed()); - } - - /** Test the method 'equalsTrue' */ - @Test - public void equalsTrueTest() { - SayElevenLabsEngineParametersVoiceSettings test1 = - new SayElevenLabsEngineParametersVoiceSettings(); - - test1.setUseSpeakerBoost(true); - - SayElevenLabsEngineParametersVoiceSettings test2 = - new SayElevenLabsEngineParametersVoiceSettings(); - - test2.setUseSpeakerBoost(true); - - Assert.assertTrue(test1.equals(test2)); - } - - /** Test the method 'equalsFalse' */ - @Test - public void equalsFalseTest() { - SayElevenLabsEngineParametersVoiceSettings test1 = - new SayElevenLabsEngineParametersVoiceSettings(); - - test1.setUseSpeakerBoost(true); - - SayElevenLabsEngineParametersVoiceSettings test2 = - new SayElevenLabsEngineParametersVoiceSettings(); - - test2.setUseSpeakerBoost(false); - - Assert.assertFalse(test1.equals(test2)); - } - - /** Test the method 'hashCodeType' */ - @Test - public void hashCodeTypeTest() { - SayElevenLabsEngineParametersVoiceSettings test1 = - new SayElevenLabsEngineParametersVoiceSettings(); - - test1.setUseSpeakerBoost(true); - - int hashCode1 = test1.hashCode(); - Assert.assertTrue(Integer.class.isInstance(hashCode1)); - } - - /** Test the method 'toStringEquals' */ - @Test - public void toStringEqualsTest() { - SayElevenLabsEngineParametersVoiceSettings test1 = - new SayElevenLabsEngineParametersVoiceSettings(); - - test1.setUseSpeakerBoost(true); - - SayElevenLabsEngineParametersVoiceSettings test2 = - new SayElevenLabsEngineParametersVoiceSettings(); - - test2.setUseSpeakerBoost(true); - - String toString1 = test1.toString(); - String toString2 = test2.toString(); - Assert.assertEquals(toString1, toString2); - } - - /** Test the method 'hashCodeEqualsTrue' */ - @Test - public void hashCodeEqualsTrueTest() { - SayElevenLabsEngineParametersVoiceSettings test1 = - new SayElevenLabsEngineParametersVoiceSettings(); - - test1.setUseSpeakerBoost(true); - - SayElevenLabsEngineParametersVoiceSettings test2 = - new SayElevenLabsEngineParametersVoiceSettings(); - - test2.setUseSpeakerBoost(true); - - Assert.assertEquals(test1.hashCode(), test2.hashCode()); - } - - /** Test the method 'hashCodeEqualsFalse' */ - @Test - public void hashCodeEqualsFalseTest() { - SayElevenLabsEngineParametersVoiceSettings test1 = - new SayElevenLabsEngineParametersVoiceSettings(); - - test1.setUseSpeakerBoost(true); - - SayElevenLabsEngineParametersVoiceSettings test2 = - new SayElevenLabsEngineParametersVoiceSettings(); - - test2.setUseSpeakerBoost(false); - - Assert.assertNotEquals(test1.hashCode(), test2.hashCode()); - } - - /** Test the method 'toStringType' */ - @Test - public void toStringTypeTest() { - SayElevenLabsEngineParametersVoiceSettings test1 = - new SayElevenLabsEngineParametersVoiceSettings(); - - test1.setUseSpeakerBoost(true); - - String toString1 = test1.toString(); - Assert.assertTrue(String.class.isInstance(toString1)); - } -} diff --git a/src/test/java/com/github/freeclimbapi/models/SayElevenLabsEngineTest.java b/src/test/java/com/github/freeclimbapi/models/SayElevenLabsEngineTest.java deleted file mode 100644 index 68a083f3..00000000 --- a/src/test/java/com/github/freeclimbapi/models/SayElevenLabsEngineTest.java +++ /dev/null @@ -1,184 +0,0 @@ -/* - * FreeClimb API - * FreeClimb is a cloud-based application programming interface (API) that puts the power of the Vail platform in your hands. FreeClimb simplifies the process of creating applications that can use a full range of telephony features without requiring specialized or on-site telephony equipment. Using the FreeClimb REST API to write applications is easy! You have the option to use the language of your choice or hit the API directly. Your application can execute a command by issuing a RESTful request to the FreeClimb API. The base URL to send HTTP requests to the FreeClimb REST API is: /apiserver. FreeClimb authenticates and processes your request. - * - * The version of the OpenAPI document: 1.0.0 - * Contact: support@freeclimb.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -package com.github.freeclimbapi; - -import com.github.freeclimbapi.enums.*; -import com.github.freeclimbapi.models.*; -import java.util.*; -import org.junit.Assert; -import org.junit.Test; - -/** Model tests for SayElevenLabsEngine */ -public class SayElevenLabsEngineTest { - - private final SayElevenLabsEngine model = new SayElevenLabsEngine(); - - /** Test the property 'name' */ - @Test - public void nameTest() { - - model.setName("TEST_STRING"); - Assert.assertEquals("TEST_STRING", model.getName()); - } - - /** Test the property 'parameters' */ - @Test - public void parametersTest() { - - SayElevenLabsEngineParameters object = new SayElevenLabsEngineParameters(); - model.setParameters(object); - Assert.assertEquals(object.getClass(), SayElevenLabsEngineParameters.class); - } - - /** Test the method 'equalsTrue' */ - @Test - public void equalsTrueTest() { - SayElevenLabsEngine test1 = new SayElevenLabsEngine(); - - test1.setName("TS"); - - SayElevenLabsEngineParameters testSayElevenLabsEngineParametersObject = - new SayElevenLabsEngineParameters(); - test1.setParameters(testSayElevenLabsEngineParametersObject); - - SayElevenLabsEngine test2 = new SayElevenLabsEngine(); - - test2.setName("TS"); - - SayElevenLabsEngineParameters testSayElevenLabsEngineParametersObject2 = - testSayElevenLabsEngineParametersObject; - test2.setParameters(testSayElevenLabsEngineParametersObject2); - - Assert.assertTrue(test1.equals(test2)); - } - - /** Test the method 'equalsFalse' */ - @Test - public void equalsFalseTest() { - SayElevenLabsEngine test1 = new SayElevenLabsEngine(); - - test1.setName("TS"); - - SayElevenLabsEngineParameters testSayElevenLabsEngineParametersObject = - new SayElevenLabsEngineParameters(); - test1.setParameters(testSayElevenLabsEngineParametersObject); - - SayElevenLabsEngine test2 = new SayElevenLabsEngine(); - - test2.setName("TS2"); - - SayElevenLabsEngineParameters testSayElevenLabsEngineParametersObject2 = - new SayElevenLabsEngineParameters(); - test2.setParameters(testSayElevenLabsEngineParametersObject2); - - Assert.assertFalse(test1.equals(test2)); - } - - /** Test the method 'hashCodeType' */ - @Test - public void hashCodeTypeTest() { - SayElevenLabsEngine test1 = new SayElevenLabsEngine(); - - test1.setName("TS"); - - SayElevenLabsEngineParameters testSayElevenLabsEngineParametersObject = - new SayElevenLabsEngineParameters(); - test1.setParameters(testSayElevenLabsEngineParametersObject); - - int hashCode1 = test1.hashCode(); - Assert.assertTrue(Integer.class.isInstance(hashCode1)); - } - - /** Test the method 'toStringEquals' */ - @Test - public void toStringEqualsTest() { - SayElevenLabsEngine test1 = new SayElevenLabsEngine(); - - test1.setName("TS"); - - SayElevenLabsEngineParameters testSayElevenLabsEngineParametersObject = - new SayElevenLabsEngineParameters(); - test1.setParameters(testSayElevenLabsEngineParametersObject); - - SayElevenLabsEngine test2 = new SayElevenLabsEngine(); - - test2.setName("TS"); - - SayElevenLabsEngineParameters testSayElevenLabsEngineParametersObject2 = - testSayElevenLabsEngineParametersObject; - test2.setParameters(testSayElevenLabsEngineParametersObject2); - - String toString1 = test1.toString(); - String toString2 = test2.toString(); - Assert.assertEquals(toString1, toString2); - } - - /** Test the method 'hashCodeEqualsTrue' */ - @Test - public void hashCodeEqualsTrueTest() { - SayElevenLabsEngine test1 = new SayElevenLabsEngine(); - - test1.setName("TS"); - - SayElevenLabsEngineParameters testSayElevenLabsEngineParametersObject = - new SayElevenLabsEngineParameters(); - test1.setParameters(testSayElevenLabsEngineParametersObject); - - SayElevenLabsEngine test2 = new SayElevenLabsEngine(); - - test2.setName("TS"); - - SayElevenLabsEngineParameters testSayElevenLabsEngineParametersObject2 = - testSayElevenLabsEngineParametersObject; - test2.setParameters(testSayElevenLabsEngineParametersObject2); - - Assert.assertEquals(test1.hashCode(), test2.hashCode()); - } - - /** Test the method 'hashCodeEqualsFalse' */ - @Test - public void hashCodeEqualsFalseTest() { - SayElevenLabsEngine test1 = new SayElevenLabsEngine(); - - test1.setName("TS"); - - SayElevenLabsEngineParameters testSayElevenLabsEngineParametersObject = - new SayElevenLabsEngineParameters(); - test1.setParameters(testSayElevenLabsEngineParametersObject); - - SayElevenLabsEngine test2 = new SayElevenLabsEngine(); - - test2.setName("TS2"); - - SayElevenLabsEngineParameters testSayElevenLabsEngineParametersObject2 = - new SayElevenLabsEngineParameters(); - test2.setParameters(testSayElevenLabsEngineParametersObject2); - - Assert.assertNotEquals(test1.hashCode(), test2.hashCode()); - } - - /** Test the method 'toStringType' */ - @Test - public void toStringTypeTest() { - SayElevenLabsEngine test1 = new SayElevenLabsEngine(); - - test1.setName("TS"); - - SayElevenLabsEngineParameters testSayElevenLabsEngineParametersObject = - new SayElevenLabsEngineParameters(); - test1.setParameters(testSayElevenLabsEngineParametersObject); - - String toString1 = test1.toString(); - Assert.assertTrue(String.class.isInstance(toString1)); - } -} diff --git a/src/test/java/com/github/freeclimbapi/models/SayElevenLabsTest.java b/src/test/java/com/github/freeclimbapi/models/SayElevenLabsTest.java deleted file mode 100644 index 2bcd43d0..00000000 --- a/src/test/java/com/github/freeclimbapi/models/SayElevenLabsTest.java +++ /dev/null @@ -1,235 +0,0 @@ -/* - * FreeClimb API - * FreeClimb is a cloud-based application programming interface (API) that puts the power of the Vail platform in your hands. FreeClimb simplifies the process of creating applications that can use a full range of telephony features without requiring specialized or on-site telephony equipment. Using the FreeClimb REST API to write applications is easy! You have the option to use the language of your choice or hit the API directly. Your application can execute a command by issuing a RESTful request to the FreeClimb API. The base URL to send HTTP requests to the FreeClimb REST API is: /apiserver. FreeClimb authenticates and processes your request. - * - * The version of the OpenAPI document: 1.0.0 - * Contact: support@freeclimb.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -package com.github.freeclimbapi; - -import com.github.freeclimbapi.enums.*; -import com.github.freeclimbapi.models.*; -import java.util.*; -import org.junit.Assert; -import org.junit.Test; - -/** Model tests for SayElevenLabs */ -public class SayElevenLabsTest { - - private final SayElevenLabs model = new SayElevenLabs(); - - /** Test the property 'text' */ - @Test - public void textTest() { - - model.setText("TEST_STRING"); - Assert.assertEquals("TEST_STRING", model.getText()); - } - - /** Test the property 'loop' */ - @Test - public void loopTest() { - - model.setLoop(1); - Assert.assertEquals(1, (int) model.getLoop()); - } - - /** Test the property 'privacyMode' */ - @Test - public void privacyModeTest() { - model.setPrivacyMode(false); - Assert.assertEquals(false, model.getPrivacyMode()); - } - - /** Test the property 'engine' */ - @Test - public void engineTest() { - - SayElevenLabsEngine object = new SayElevenLabsEngine(); - model.setEngine(object); - Assert.assertEquals(object.getClass(), SayElevenLabsEngine.class); - } - - /** Test the method 'equalsTrue' */ - @Test - public void equalsTrueTest() { - SayElevenLabs test1 = new SayElevenLabs(); - - test1.setText("TS"); - - test1.setLoop(1); - - test1.setPrivacyMode(true); - - SayElevenLabsEngine testSayElevenLabsEngineObject = new SayElevenLabsEngine(); - test1.setEngine(testSayElevenLabsEngineObject); - - SayElevenLabs test2 = new SayElevenLabs(); - - test2.setText("TS"); - - test2.setLoop(1); - - test2.setPrivacyMode(true); - - SayElevenLabsEngine testSayElevenLabsEngineObject2 = testSayElevenLabsEngineObject; - test2.setEngine(testSayElevenLabsEngineObject2); - - Assert.assertTrue(test1.equals(test2)); - } - - /** Test the method 'equalsFalse' */ - @Test - public void equalsFalseTest() { - SayElevenLabs test1 = new SayElevenLabs(); - - test1.setText("TS"); - - test1.setLoop(1); - - test1.setPrivacyMode(true); - - SayElevenLabsEngine testSayElevenLabsEngineObject = new SayElevenLabsEngine(); - test1.setEngine(testSayElevenLabsEngineObject); - - SayElevenLabs test2 = new SayElevenLabs(); - - test2.setText("TS2"); - - test2.setLoop(0); - - test2.setPrivacyMode(false); - - SayElevenLabsEngine testSayElevenLabsEngineObject2 = new SayElevenLabsEngine(); - test2.setEngine(testSayElevenLabsEngineObject2); - - Assert.assertFalse(test1.equals(test2)); - } - - /** Test the method 'hashCodeType' */ - @Test - public void hashCodeTypeTest() { - SayElevenLabs test1 = new SayElevenLabs(); - - test1.setText("TS"); - - test1.setLoop(1); - - test1.setPrivacyMode(true); - - SayElevenLabsEngine testSayElevenLabsEngineObject = new SayElevenLabsEngine(); - test1.setEngine(testSayElevenLabsEngineObject); - - int hashCode1 = test1.hashCode(); - Assert.assertTrue(Integer.class.isInstance(hashCode1)); - } - - /** Test the method 'toStringEquals' */ - @Test - public void toStringEqualsTest() { - SayElevenLabs test1 = new SayElevenLabs(); - - test1.setText("TS"); - - test1.setLoop(1); - - test1.setPrivacyMode(true); - - SayElevenLabsEngine testSayElevenLabsEngineObject = new SayElevenLabsEngine(); - test1.setEngine(testSayElevenLabsEngineObject); - - SayElevenLabs test2 = new SayElevenLabs(); - - test2.setText("TS"); - - test2.setLoop(1); - - test2.setPrivacyMode(true); - - SayElevenLabsEngine testSayElevenLabsEngineObject2 = testSayElevenLabsEngineObject; - test2.setEngine(testSayElevenLabsEngineObject2); - - String toString1 = test1.toString(); - String toString2 = test2.toString(); - Assert.assertEquals(toString1, toString2); - } - - /** Test the method 'hashCodeEqualsTrue' */ - @Test - public void hashCodeEqualsTrueTest() { - SayElevenLabs test1 = new SayElevenLabs(); - - test1.setText("TS"); - - test1.setLoop(1); - - test1.setPrivacyMode(true); - - SayElevenLabsEngine testSayElevenLabsEngineObject = new SayElevenLabsEngine(); - test1.setEngine(testSayElevenLabsEngineObject); - - SayElevenLabs test2 = new SayElevenLabs(); - - test2.setText("TS"); - - test2.setLoop(1); - - test2.setPrivacyMode(true); - - SayElevenLabsEngine testSayElevenLabsEngineObject2 = testSayElevenLabsEngineObject; - test2.setEngine(testSayElevenLabsEngineObject2); - - Assert.assertEquals(test1.hashCode(), test2.hashCode()); - } - - /** Test the method 'hashCodeEqualsFalse' */ - @Test - public void hashCodeEqualsFalseTest() { - SayElevenLabs test1 = new SayElevenLabs(); - - test1.setText("TS"); - - test1.setLoop(1); - - test1.setPrivacyMode(true); - - SayElevenLabsEngine testSayElevenLabsEngineObject = new SayElevenLabsEngine(); - test1.setEngine(testSayElevenLabsEngineObject); - - SayElevenLabs test2 = new SayElevenLabs(); - - test2.setText("TS2"); - - test2.setLoop(0); - - test2.setPrivacyMode(false); - - SayElevenLabsEngine testSayElevenLabsEngineObject2 = new SayElevenLabsEngine(); - test2.setEngine(testSayElevenLabsEngineObject2); - - Assert.assertNotEquals(test1.hashCode(), test2.hashCode()); - } - - /** Test the method 'toStringType' */ - @Test - public void toStringTypeTest() { - SayElevenLabs test1 = new SayElevenLabs(); - - test1.setText("TS"); - - test1.setLoop(1); - - test1.setPrivacyMode(true); - - SayElevenLabsEngine testSayElevenLabsEngineObject = new SayElevenLabsEngine(); - test1.setEngine(testSayElevenLabsEngineObject); - - String toString1 = test1.toString(); - Assert.assertTrue(String.class.isInstance(toString1)); - } -} diff --git a/src/test/java/com/github/freeclimbapi/models/SayNeuralEngineParametersTest.java b/src/test/java/com/github/freeclimbapi/models/SayNeuralEngineParametersTest.java deleted file mode 100644 index 08460420..00000000 --- a/src/test/java/com/github/freeclimbapi/models/SayNeuralEngineParametersTest.java +++ /dev/null @@ -1,192 +0,0 @@ -/* - * FreeClimb API - * FreeClimb is a cloud-based application programming interface (API) that puts the power of the Vail platform in your hands. FreeClimb simplifies the process of creating applications that can use a full range of telephony features without requiring specialized or on-site telephony equipment. Using the FreeClimb REST API to write applications is easy! You have the option to use the language of your choice or hit the API directly. Your application can execute a command by issuing a RESTful request to the FreeClimb API. The base URL to send HTTP requests to the FreeClimb REST API is: /apiserver. FreeClimb authenticates and processes your request. - * - * The version of the OpenAPI document: 1.0.0 - * Contact: support@freeclimb.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -package com.github.freeclimbapi; - -import com.github.freeclimbapi.enums.*; -import com.github.freeclimbapi.models.*; -import java.util.*; -import org.junit.Assert; -import org.junit.Test; - -/** Model tests for SayNeuralEngineParameters */ -public class SayNeuralEngineParametersTest { - - private final SayNeuralEngineParameters model = new SayNeuralEngineParameters(); - - /** Test the property 'voice' */ - @Test - public void voiceTest() { - - model.setVoice("TEST_STRING"); - Assert.assertEquals("TEST_STRING", model.getVoice()); - } - - /** Test the property 'textType' */ - @Test - public void textTypeTest() { - model.setTextType(SayNeuralTextType.TEXT); - Assert.assertEquals(model.getTextType(), SayNeuralTextType.TEXT); - model.setTextType(SayNeuralTextType.SSML); - Assert.assertEquals(model.getTextType(), SayNeuralTextType.SSML); - } - - /** Test the property 'language' */ - @Test - public void languageTest() { - - model.setLanguage("TEST_STRING"); - Assert.assertEquals("TEST_STRING", model.getLanguage()); - } - - /** Test the method 'equalsTrue' */ - @Test - public void equalsTrueTest() { - SayNeuralEngineParameters test1 = new SayNeuralEngineParameters(); - - test1.setVoice("TS"); - - test1.setTextType(SayNeuralTextType.TEXT); - - test1.setLanguage("TS"); - - SayNeuralEngineParameters test2 = new SayNeuralEngineParameters(); - - test2.setVoice("TS"); - - test2.setTextType(SayNeuralTextType.TEXT); - - test2.setLanguage("TS"); - - Assert.assertTrue(test1.equals(test2)); - } - - /** Test the method 'equalsFalse' */ - @Test - public void equalsFalseTest() { - SayNeuralEngineParameters test1 = new SayNeuralEngineParameters(); - - test1.setVoice("TS"); - - test1.setTextType(SayNeuralTextType.SSML); - - test1.setLanguage("TS"); - - SayNeuralEngineParameters test2 = new SayNeuralEngineParameters(); - - test2.setVoice("TS2"); - - test2.setTextType(SayNeuralTextType.TEXT); - - test2.setLanguage("TS2"); - - Assert.assertFalse(test1.equals(test2)); - } - - /** Test the method 'hashCodeType' */ - @Test - public void hashCodeTypeTest() { - SayNeuralEngineParameters test1 = new SayNeuralEngineParameters(); - - test1.setVoice("TS"); - - test1.setTextType(SayNeuralTextType.TEXT); - - test1.setLanguage("TS"); - - int hashCode1 = test1.hashCode(); - Assert.assertTrue(Integer.class.isInstance(hashCode1)); - } - - /** Test the method 'toStringEquals' */ - @Test - public void toStringEqualsTest() { - SayNeuralEngineParameters test1 = new SayNeuralEngineParameters(); - - test1.setVoice("TS"); - - test1.setTextType(SayNeuralTextType.TEXT); - - test1.setLanguage("TS"); - - SayNeuralEngineParameters test2 = new SayNeuralEngineParameters(); - - test2.setVoice("TS"); - - test2.setTextType(SayNeuralTextType.TEXT); - - test2.setLanguage("TS"); - - String toString1 = test1.toString(); - String toString2 = test2.toString(); - Assert.assertEquals(toString1, toString2); - } - - /** Test the method 'hashCodeEqualsTrue' */ - @Test - public void hashCodeEqualsTrueTest() { - SayNeuralEngineParameters test1 = new SayNeuralEngineParameters(); - - test1.setVoice("TS"); - - test1.setTextType(SayNeuralTextType.TEXT); - - test1.setLanguage("TS"); - - SayNeuralEngineParameters test2 = new SayNeuralEngineParameters(); - - test2.setVoice("TS"); - - test2.setTextType(SayNeuralTextType.TEXT); - - test2.setLanguage("TS"); - - Assert.assertEquals(test1.hashCode(), test2.hashCode()); - } - - /** Test the method 'hashCodeEqualsFalse' */ - @Test - public void hashCodeEqualsFalseTest() { - SayNeuralEngineParameters test1 = new SayNeuralEngineParameters(); - - test1.setVoice("TS"); - - test1.setTextType(SayNeuralTextType.SSML); - - test1.setLanguage("TS"); - - SayNeuralEngineParameters test2 = new SayNeuralEngineParameters(); - - test2.setVoice("TS2"); - - test2.setTextType(SayNeuralTextType.TEXT); - - test2.setLanguage("TS2"); - - Assert.assertNotEquals(test1.hashCode(), test2.hashCode()); - } - - /** Test the method 'toStringType' */ - @Test - public void toStringTypeTest() { - SayNeuralEngineParameters test1 = new SayNeuralEngineParameters(); - - test1.setVoice("TS"); - - test1.setTextType(SayNeuralTextType.TEXT); - - test1.setLanguage("TS"); - - String toString1 = test1.toString(); - Assert.assertTrue(String.class.isInstance(toString1)); - } -} diff --git a/src/test/java/com/github/freeclimbapi/models/SayNeuralEngineTest.java b/src/test/java/com/github/freeclimbapi/models/SayNeuralEngineTest.java deleted file mode 100644 index ac8dc07d..00000000 --- a/src/test/java/com/github/freeclimbapi/models/SayNeuralEngineTest.java +++ /dev/null @@ -1,184 +0,0 @@ -/* - * FreeClimb API - * FreeClimb is a cloud-based application programming interface (API) that puts the power of the Vail platform in your hands. FreeClimb simplifies the process of creating applications that can use a full range of telephony features without requiring specialized or on-site telephony equipment. Using the FreeClimb REST API to write applications is easy! You have the option to use the language of your choice or hit the API directly. Your application can execute a command by issuing a RESTful request to the FreeClimb API. The base URL to send HTTP requests to the FreeClimb REST API is: /apiserver. FreeClimb authenticates and processes your request. - * - * The version of the OpenAPI document: 1.0.0 - * Contact: support@freeclimb.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -package com.github.freeclimbapi; - -import com.github.freeclimbapi.enums.*; -import com.github.freeclimbapi.models.*; -import java.util.*; -import org.junit.Assert; -import org.junit.Test; - -/** Model tests for SayNeuralEngine */ -public class SayNeuralEngineTest { - - private final SayNeuralEngine model = new SayNeuralEngine(); - - /** Test the property 'name' */ - @Test - public void nameTest() { - - model.setName("TEST_STRING"); - Assert.assertEquals("TEST_STRING", model.getName()); - } - - /** Test the property 'parameters' */ - @Test - public void parametersTest() { - - SayNeuralEngineParameters object = new SayNeuralEngineParameters(); - model.setParameters(object); - Assert.assertEquals(object.getClass(), SayNeuralEngineParameters.class); - } - - /** Test the method 'equalsTrue' */ - @Test - public void equalsTrueTest() { - SayNeuralEngine test1 = new SayNeuralEngine(); - - test1.setName("TS"); - - SayNeuralEngineParameters testSayNeuralEngineParametersObject = - new SayNeuralEngineParameters(); - test1.setParameters(testSayNeuralEngineParametersObject); - - SayNeuralEngine test2 = new SayNeuralEngine(); - - test2.setName("TS"); - - SayNeuralEngineParameters testSayNeuralEngineParametersObject2 = - testSayNeuralEngineParametersObject; - test2.setParameters(testSayNeuralEngineParametersObject2); - - Assert.assertTrue(test1.equals(test2)); - } - - /** Test the method 'equalsFalse' */ - @Test - public void equalsFalseTest() { - SayNeuralEngine test1 = new SayNeuralEngine(); - - test1.setName("TS"); - - SayNeuralEngineParameters testSayNeuralEngineParametersObject = - new SayNeuralEngineParameters(); - test1.setParameters(testSayNeuralEngineParametersObject); - - SayNeuralEngine test2 = new SayNeuralEngine(); - - test2.setName("TS2"); - - SayNeuralEngineParameters testSayNeuralEngineParametersObject2 = - new SayNeuralEngineParameters(); - test2.setParameters(testSayNeuralEngineParametersObject2); - - Assert.assertFalse(test1.equals(test2)); - } - - /** Test the method 'hashCodeType' */ - @Test - public void hashCodeTypeTest() { - SayNeuralEngine test1 = new SayNeuralEngine(); - - test1.setName("TS"); - - SayNeuralEngineParameters testSayNeuralEngineParametersObject = - new SayNeuralEngineParameters(); - test1.setParameters(testSayNeuralEngineParametersObject); - - int hashCode1 = test1.hashCode(); - Assert.assertTrue(Integer.class.isInstance(hashCode1)); - } - - /** Test the method 'toStringEquals' */ - @Test - public void toStringEqualsTest() { - SayNeuralEngine test1 = new SayNeuralEngine(); - - test1.setName("TS"); - - SayNeuralEngineParameters testSayNeuralEngineParametersObject = - new SayNeuralEngineParameters(); - test1.setParameters(testSayNeuralEngineParametersObject); - - SayNeuralEngine test2 = new SayNeuralEngine(); - - test2.setName("TS"); - - SayNeuralEngineParameters testSayNeuralEngineParametersObject2 = - testSayNeuralEngineParametersObject; - test2.setParameters(testSayNeuralEngineParametersObject2); - - String toString1 = test1.toString(); - String toString2 = test2.toString(); - Assert.assertEquals(toString1, toString2); - } - - /** Test the method 'hashCodeEqualsTrue' */ - @Test - public void hashCodeEqualsTrueTest() { - SayNeuralEngine test1 = new SayNeuralEngine(); - - test1.setName("TS"); - - SayNeuralEngineParameters testSayNeuralEngineParametersObject = - new SayNeuralEngineParameters(); - test1.setParameters(testSayNeuralEngineParametersObject); - - SayNeuralEngine test2 = new SayNeuralEngine(); - - test2.setName("TS"); - - SayNeuralEngineParameters testSayNeuralEngineParametersObject2 = - testSayNeuralEngineParametersObject; - test2.setParameters(testSayNeuralEngineParametersObject2); - - Assert.assertEquals(test1.hashCode(), test2.hashCode()); - } - - /** Test the method 'hashCodeEqualsFalse' */ - @Test - public void hashCodeEqualsFalseTest() { - SayNeuralEngine test1 = new SayNeuralEngine(); - - test1.setName("TS"); - - SayNeuralEngineParameters testSayNeuralEngineParametersObject = - new SayNeuralEngineParameters(); - test1.setParameters(testSayNeuralEngineParametersObject); - - SayNeuralEngine test2 = new SayNeuralEngine(); - - test2.setName("TS2"); - - SayNeuralEngineParameters testSayNeuralEngineParametersObject2 = - new SayNeuralEngineParameters(); - test2.setParameters(testSayNeuralEngineParametersObject2); - - Assert.assertNotEquals(test1.hashCode(), test2.hashCode()); - } - - /** Test the method 'toStringType' */ - @Test - public void toStringTypeTest() { - SayNeuralEngine test1 = new SayNeuralEngine(); - - test1.setName("TS"); - - SayNeuralEngineParameters testSayNeuralEngineParametersObject = - new SayNeuralEngineParameters(); - test1.setParameters(testSayNeuralEngineParametersObject); - - String toString1 = test1.toString(); - Assert.assertTrue(String.class.isInstance(toString1)); - } -} diff --git a/src/test/java/com/github/freeclimbapi/models/SayNeuralTest.java b/src/test/java/com/github/freeclimbapi/models/SayNeuralTest.java deleted file mode 100644 index 246bae56..00000000 --- a/src/test/java/com/github/freeclimbapi/models/SayNeuralTest.java +++ /dev/null @@ -1,235 +0,0 @@ -/* - * FreeClimb API - * FreeClimb is a cloud-based application programming interface (API) that puts the power of the Vail platform in your hands. FreeClimb simplifies the process of creating applications that can use a full range of telephony features without requiring specialized or on-site telephony equipment. Using the FreeClimb REST API to write applications is easy! You have the option to use the language of your choice or hit the API directly. Your application can execute a command by issuing a RESTful request to the FreeClimb API. The base URL to send HTTP requests to the FreeClimb REST API is: /apiserver. FreeClimb authenticates and processes your request. - * - * The version of the OpenAPI document: 1.0.0 - * Contact: support@freeclimb.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -package com.github.freeclimbapi; - -import com.github.freeclimbapi.enums.*; -import com.github.freeclimbapi.models.*; -import java.util.*; -import org.junit.Assert; -import org.junit.Test; - -/** Model tests for SayNeural */ -public class SayNeuralTest { - - private final SayNeural model = new SayNeural(); - - /** Test the property 'text' */ - @Test - public void textTest() { - - model.setText("TEST_STRING"); - Assert.assertEquals("TEST_STRING", model.getText()); - } - - /** Test the property 'loop' */ - @Test - public void loopTest() { - - model.setLoop(1); - Assert.assertEquals(1, (int) model.getLoop()); - } - - /** Test the property 'privacyMode' */ - @Test - public void privacyModeTest() { - model.setPrivacyMode(false); - Assert.assertEquals(false, model.getPrivacyMode()); - } - - /** Test the property 'engine' */ - @Test - public void engineTest() { - - SayNeuralEngine object = new SayNeuralEngine(); - model.setEngine(object); - Assert.assertEquals(object.getClass(), SayNeuralEngine.class); - } - - /** Test the method 'equalsTrue' */ - @Test - public void equalsTrueTest() { - SayNeural test1 = new SayNeural(); - - test1.setText("TS"); - - test1.setLoop(1); - - test1.setPrivacyMode(true); - - SayNeuralEngine testSayNeuralEngineObject = new SayNeuralEngine(); - test1.setEngine(testSayNeuralEngineObject); - - SayNeural test2 = new SayNeural(); - - test2.setText("TS"); - - test2.setLoop(1); - - test2.setPrivacyMode(true); - - SayNeuralEngine testSayNeuralEngineObject2 = testSayNeuralEngineObject; - test2.setEngine(testSayNeuralEngineObject2); - - Assert.assertTrue(test1.equals(test2)); - } - - /** Test the method 'equalsFalse' */ - @Test - public void equalsFalseTest() { - SayNeural test1 = new SayNeural(); - - test1.setText("TS"); - - test1.setLoop(1); - - test1.setPrivacyMode(true); - - SayNeuralEngine testSayNeuralEngineObject = new SayNeuralEngine(); - test1.setEngine(testSayNeuralEngineObject); - - SayNeural test2 = new SayNeural(); - - test2.setText("TS2"); - - test2.setLoop(0); - - test2.setPrivacyMode(false); - - SayNeuralEngine testSayNeuralEngineObject2 = new SayNeuralEngine(); - test2.setEngine(testSayNeuralEngineObject2); - - Assert.assertFalse(test1.equals(test2)); - } - - /** Test the method 'hashCodeType' */ - @Test - public void hashCodeTypeTest() { - SayNeural test1 = new SayNeural(); - - test1.setText("TS"); - - test1.setLoop(1); - - test1.setPrivacyMode(true); - - SayNeuralEngine testSayNeuralEngineObject = new SayNeuralEngine(); - test1.setEngine(testSayNeuralEngineObject); - - int hashCode1 = test1.hashCode(); - Assert.assertTrue(Integer.class.isInstance(hashCode1)); - } - - /** Test the method 'toStringEquals' */ - @Test - public void toStringEqualsTest() { - SayNeural test1 = new SayNeural(); - - test1.setText("TS"); - - test1.setLoop(1); - - test1.setPrivacyMode(true); - - SayNeuralEngine testSayNeuralEngineObject = new SayNeuralEngine(); - test1.setEngine(testSayNeuralEngineObject); - - SayNeural test2 = new SayNeural(); - - test2.setText("TS"); - - test2.setLoop(1); - - test2.setPrivacyMode(true); - - SayNeuralEngine testSayNeuralEngineObject2 = testSayNeuralEngineObject; - test2.setEngine(testSayNeuralEngineObject2); - - String toString1 = test1.toString(); - String toString2 = test2.toString(); - Assert.assertEquals(toString1, toString2); - } - - /** Test the method 'hashCodeEqualsTrue' */ - @Test - public void hashCodeEqualsTrueTest() { - SayNeural test1 = new SayNeural(); - - test1.setText("TS"); - - test1.setLoop(1); - - test1.setPrivacyMode(true); - - SayNeuralEngine testSayNeuralEngineObject = new SayNeuralEngine(); - test1.setEngine(testSayNeuralEngineObject); - - SayNeural test2 = new SayNeural(); - - test2.setText("TS"); - - test2.setLoop(1); - - test2.setPrivacyMode(true); - - SayNeuralEngine testSayNeuralEngineObject2 = testSayNeuralEngineObject; - test2.setEngine(testSayNeuralEngineObject2); - - Assert.assertEquals(test1.hashCode(), test2.hashCode()); - } - - /** Test the method 'hashCodeEqualsFalse' */ - @Test - public void hashCodeEqualsFalseTest() { - SayNeural test1 = new SayNeural(); - - test1.setText("TS"); - - test1.setLoop(1); - - test1.setPrivacyMode(true); - - SayNeuralEngine testSayNeuralEngineObject = new SayNeuralEngine(); - test1.setEngine(testSayNeuralEngineObject); - - SayNeural test2 = new SayNeural(); - - test2.setText("TS2"); - - test2.setLoop(0); - - test2.setPrivacyMode(false); - - SayNeuralEngine testSayNeuralEngineObject2 = new SayNeuralEngine(); - test2.setEngine(testSayNeuralEngineObject2); - - Assert.assertNotEquals(test1.hashCode(), test2.hashCode()); - } - - /** Test the method 'toStringType' */ - @Test - public void toStringTypeTest() { - SayNeural test1 = new SayNeural(); - - test1.setText("TS"); - - test1.setLoop(1); - - test1.setPrivacyMode(true); - - SayNeuralEngine testSayNeuralEngineObject = new SayNeuralEngine(); - test1.setEngine(testSayNeuralEngineObject); - - String toString1 = test1.toString(); - Assert.assertTrue(String.class.isInstance(toString1)); - } -} diff --git a/src/test/java/com/github/freeclimbapi/models/SayStandardEngineParametersTest.java b/src/test/java/com/github/freeclimbapi/models/SayStandardEngineParametersTest.java deleted file mode 100644 index 371d89f5..00000000 --- a/src/test/java/com/github/freeclimbapi/models/SayStandardEngineParametersTest.java +++ /dev/null @@ -1,280 +0,0 @@ -/* - * FreeClimb API - * FreeClimb is a cloud-based application programming interface (API) that puts the power of the Vail platform in your hands. FreeClimb simplifies the process of creating applications that can use a full range of telephony features without requiring specialized or on-site telephony equipment. Using the FreeClimb REST API to write applications is easy! You have the option to use the language of your choice or hit the API directly. Your application can execute a command by issuing a RESTful request to the FreeClimb API. The base URL to send HTTP requests to the FreeClimb REST API is: /apiserver. FreeClimb authenticates and processes your request. - * - * The version of the OpenAPI document: 1.0.0 - * Contact: support@freeclimb.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -package com.github.freeclimbapi; - -import com.github.freeclimbapi.enums.*; -import com.github.freeclimbapi.models.*; -import java.util.*; -import org.junit.Assert; -import org.junit.Test; - -/** Model tests for SayStandardEngineParameters */ -public class SayStandardEngineParametersTest { - - private final SayStandardEngineParameters model = new SayStandardEngineParameters(); - - /** Test the property 'voice' */ - @Test - public void voiceTest() { - model.setVoice(SayStandardVoice.HERENA); - Assert.assertEquals(model.getVoice(), SayStandardVoice.HERENA); - model.setVoice(SayStandardVoice.HELLE); - Assert.assertEquals(model.getVoice(), SayStandardVoice.HELLE); - model.setVoice(SayStandardVoice.HEDDA); - Assert.assertEquals(model.getVoice(), SayStandardVoice.HEDDA); - model.setVoice(SayStandardVoice.HAYLEY); - Assert.assertEquals(model.getVoice(), SayStandardVoice.HAYLEY); - model.setVoice(SayStandardVoice.HEATHER); - Assert.assertEquals(model.getVoice(), SayStandardVoice.HEATHER); - model.setVoice(SayStandardVoice.HAZEL); - Assert.assertEquals(model.getVoice(), SayStandardVoice.HAZEL); - model.setVoice(SayStandardVoice.HEERA); - Assert.assertEquals(model.getVoice(), SayStandardVoice.HEERA); - model.setVoice(SayStandardVoice.HELEN); - Assert.assertEquals(model.getVoice(), SayStandardVoice.HELEN); - model.setVoice(SayStandardVoice.ZIRA_PRO); - Assert.assertEquals(model.getVoice(), SayStandardVoice.ZIRA_PRO); - model.setVoice(SayStandardVoice.HELENA); - Assert.assertEquals(model.getVoice(), SayStandardVoice.HELENA); - model.setVoice(SayStandardVoice.HILDA); - Assert.assertEquals(model.getVoice(), SayStandardVoice.HILDA); - model.setVoice(SayStandardVoice.HEIDI); - Assert.assertEquals(model.getVoice(), SayStandardVoice.HEIDI); - model.setVoice(SayStandardVoice.HARMONIE); - Assert.assertEquals(model.getVoice(), SayStandardVoice.HARMONIE); - model.setVoice(SayStandardVoice.HORTENSE); - Assert.assertEquals(model.getVoice(), SayStandardVoice.HORTENSE); - model.setVoice(SayStandardVoice.LUCIA); - Assert.assertEquals(model.getVoice(), SayStandardVoice.LUCIA); - model.setVoice(SayStandardVoice.HARKUA); - Assert.assertEquals(model.getVoice(), SayStandardVoice.HARKUA); - model.setVoice(SayStandardVoice.HEAMI); - Assert.assertEquals(model.getVoice(), SayStandardVoice.HEAMI); - model.setVoice(SayStandardVoice.HULDA); - Assert.assertEquals(model.getVoice(), SayStandardVoice.HULDA); - model.setVoice(SayStandardVoice.HANNA); - Assert.assertEquals(model.getVoice(), SayStandardVoice.HANNA); - model.setVoice(SayStandardVoice.PAULINA); - Assert.assertEquals(model.getVoice(), SayStandardVoice.PAULINA); - model.setVoice(SayStandardVoice.HELOSIA); - Assert.assertEquals(model.getVoice(), SayStandardVoice.HELOSIA); - model.setVoice(SayStandardVoice.HELIA); - Assert.assertEquals(model.getVoice(), SayStandardVoice.HELIA); - model.setVoice(SayStandardVoice.ELENA); - Assert.assertEquals(model.getVoice(), SayStandardVoice.ELENA); - model.setVoice(SayStandardVoice.HEDVIG); - Assert.assertEquals(model.getVoice(), SayStandardVoice.HEDVIG); - model.setVoice(SayStandardVoice.HUN_YEE); - Assert.assertEquals(model.getVoice(), SayStandardVoice.HUN_YEE); - model.setVoice(SayStandardVoice.HAN_HAN); - Assert.assertEquals(model.getVoice(), SayStandardVoice.HAN_HAN); - } - - /** Test the property 'culture' */ - @Test - public void cultureTest() { - model.setCulture(SayStandardCulture.CA_ES); - Assert.assertEquals(model.getCulture(), SayStandardCulture.CA_ES); - model.setCulture(SayStandardCulture.DA_DK); - Assert.assertEquals(model.getCulture(), SayStandardCulture.DA_DK); - model.setCulture(SayStandardCulture.DE_DE); - Assert.assertEquals(model.getCulture(), SayStandardCulture.DE_DE); - model.setCulture(SayStandardCulture.EN_AU); - Assert.assertEquals(model.getCulture(), SayStandardCulture.EN_AU); - model.setCulture(SayStandardCulture.EN_CA); - Assert.assertEquals(model.getCulture(), SayStandardCulture.EN_CA); - model.setCulture(SayStandardCulture.EN_GB); - Assert.assertEquals(model.getCulture(), SayStandardCulture.EN_GB); - model.setCulture(SayStandardCulture.EN_IN); - Assert.assertEquals(model.getCulture(), SayStandardCulture.EN_IN); - model.setCulture(SayStandardCulture.EN_US); - Assert.assertEquals(model.getCulture(), SayStandardCulture.EN_US); - model.setCulture(SayStandardCulture.ES_ES); - Assert.assertEquals(model.getCulture(), SayStandardCulture.ES_ES); - model.setCulture(SayStandardCulture.ES_MX); - Assert.assertEquals(model.getCulture(), SayStandardCulture.ES_MX); - model.setCulture(SayStandardCulture.FI_FI); - Assert.assertEquals(model.getCulture(), SayStandardCulture.FI_FI); - model.setCulture(SayStandardCulture.FR_CA); - Assert.assertEquals(model.getCulture(), SayStandardCulture.FR_CA); - model.setCulture(SayStandardCulture.FR_FR); - Assert.assertEquals(model.getCulture(), SayStandardCulture.FR_FR); - model.setCulture(SayStandardCulture.IT_IT); - Assert.assertEquals(model.getCulture(), SayStandardCulture.IT_IT); - model.setCulture(SayStandardCulture.JA_JP); - Assert.assertEquals(model.getCulture(), SayStandardCulture.JA_JP); - model.setCulture(SayStandardCulture.KO_KR); - Assert.assertEquals(model.getCulture(), SayStandardCulture.KO_KR); - model.setCulture(SayStandardCulture.NB_NO); - Assert.assertEquals(model.getCulture(), SayStandardCulture.NB_NO); - model.setCulture(SayStandardCulture.NL_NL); - Assert.assertEquals(model.getCulture(), SayStandardCulture.NL_NL); - model.setCulture(SayStandardCulture.PL_PL); - Assert.assertEquals(model.getCulture(), SayStandardCulture.PL_PL); - model.setCulture(SayStandardCulture.PT_BR); - Assert.assertEquals(model.getCulture(), SayStandardCulture.PT_BR); - model.setCulture(SayStandardCulture.PT_PT); - Assert.assertEquals(model.getCulture(), SayStandardCulture.PT_PT); - model.setCulture(SayStandardCulture.RU_RU); - Assert.assertEquals(model.getCulture(), SayStandardCulture.RU_RU); - model.setCulture(SayStandardCulture.SV_SE); - Assert.assertEquals(model.getCulture(), SayStandardCulture.SV_SE); - model.setCulture(SayStandardCulture.ZH_CN); - Assert.assertEquals(model.getCulture(), SayStandardCulture.ZH_CN); - model.setCulture(SayStandardCulture.ZH_HK); - Assert.assertEquals(model.getCulture(), SayStandardCulture.ZH_HK); - model.setCulture(SayStandardCulture.ZH_TW); - Assert.assertEquals(model.getCulture(), SayStandardCulture.ZH_TW); - } - - /** Test the property 'contentType' */ - @Test - public void contentTypeTest() { - model.setContentType(SayStandardContentType.TEXT_PLAIN); - Assert.assertEquals(model.getContentType(), SayStandardContentType.TEXT_PLAIN); - model.setContentType(SayStandardContentType.APPLICATION_SSML_XML); - Assert.assertEquals(model.getContentType(), SayStandardContentType.APPLICATION_SSML_XML); - } - - /** Test the method 'equalsTrue' */ - @Test - public void equalsTrueTest() { - SayStandardEngineParameters test1 = new SayStandardEngineParameters(); - test1.setVoice(SayStandardVoice.HERENA); - - test1.setCulture(SayStandardCulture.CA_ES); - - test1.setContentType(SayStandardContentType.TEXT_PLAIN); - - SayStandardEngineParameters test2 = new SayStandardEngineParameters(); - test2.setVoice(SayStandardVoice.HERENA); - - test2.setCulture(SayStandardCulture.CA_ES); - - test2.setContentType(SayStandardContentType.TEXT_PLAIN); - - Assert.assertTrue(test1.equals(test2)); - } - - /** Test the method 'equalsFalse' */ - @Test - public void equalsFalseTest() { - SayStandardEngineParameters test1 = new SayStandardEngineParameters(); - - test1.setVoice(SayStandardVoice.HELLE); - - test1.setCulture(SayStandardCulture.DA_DK); - - test1.setContentType(SayStandardContentType.APPLICATION_SSML_XML); - - SayStandardEngineParameters test2 = new SayStandardEngineParameters(); - test2.setVoice(SayStandardVoice.HERENA); - - test2.setCulture(SayStandardCulture.CA_ES); - - test2.setContentType(SayStandardContentType.TEXT_PLAIN); - - Assert.assertFalse(test1.equals(test2)); - } - - /** Test the method 'hashCodeType' */ - @Test - public void hashCodeTypeTest() { - SayStandardEngineParameters test1 = new SayStandardEngineParameters(); - test1.setVoice(SayStandardVoice.HERENA); - - test1.setCulture(SayStandardCulture.CA_ES); - - test1.setContentType(SayStandardContentType.TEXT_PLAIN); - - int hashCode1 = test1.hashCode(); - Assert.assertTrue(Integer.class.isInstance(hashCode1)); - } - - /** Test the method 'toStringEquals' */ - @Test - public void toStringEqualsTest() { - SayStandardEngineParameters test1 = new SayStandardEngineParameters(); - test1.setVoice(SayStandardVoice.HERENA); - - test1.setCulture(SayStandardCulture.CA_ES); - - test1.setContentType(SayStandardContentType.TEXT_PLAIN); - - SayStandardEngineParameters test2 = new SayStandardEngineParameters(); - test2.setVoice(SayStandardVoice.HERENA); - - test2.setCulture(SayStandardCulture.CA_ES); - - test2.setContentType(SayStandardContentType.TEXT_PLAIN); - - String toString1 = test1.toString(); - String toString2 = test2.toString(); - Assert.assertEquals(toString1, toString2); - } - - /** Test the method 'hashCodeEqualsTrue' */ - @Test - public void hashCodeEqualsTrueTest() { - SayStandardEngineParameters test1 = new SayStandardEngineParameters(); - test1.setVoice(SayStandardVoice.HERENA); - - test1.setCulture(SayStandardCulture.CA_ES); - - test1.setContentType(SayStandardContentType.TEXT_PLAIN); - - SayStandardEngineParameters test2 = new SayStandardEngineParameters(); - test2.setVoice(SayStandardVoice.HERENA); - - test2.setCulture(SayStandardCulture.CA_ES); - - test2.setContentType(SayStandardContentType.TEXT_PLAIN); - - Assert.assertEquals(test1.hashCode(), test2.hashCode()); - } - - /** Test the method 'hashCodeEqualsFalse' */ - @Test - public void hashCodeEqualsFalseTest() { - SayStandardEngineParameters test1 = new SayStandardEngineParameters(); - - test1.setVoice(SayStandardVoice.HELLE); - - test1.setCulture(SayStandardCulture.DA_DK); - - test1.setContentType(SayStandardContentType.APPLICATION_SSML_XML); - - SayStandardEngineParameters test2 = new SayStandardEngineParameters(); - test2.setVoice(SayStandardVoice.HERENA); - - test2.setCulture(SayStandardCulture.CA_ES); - - test2.setContentType(SayStandardContentType.TEXT_PLAIN); - - Assert.assertNotEquals(test1.hashCode(), test2.hashCode()); - } - - /** Test the method 'toStringType' */ - @Test - public void toStringTypeTest() { - SayStandardEngineParameters test1 = new SayStandardEngineParameters(); - test1.setVoice(SayStandardVoice.HERENA); - - test1.setCulture(SayStandardCulture.CA_ES); - - test1.setContentType(SayStandardContentType.TEXT_PLAIN); - - String toString1 = test1.toString(); - Assert.assertTrue(String.class.isInstance(toString1)); - } -} diff --git a/src/test/java/com/github/freeclimbapi/models/SayStandardEngineTest.java b/src/test/java/com/github/freeclimbapi/models/SayStandardEngineTest.java deleted file mode 100644 index fe059688..00000000 --- a/src/test/java/com/github/freeclimbapi/models/SayStandardEngineTest.java +++ /dev/null @@ -1,184 +0,0 @@ -/* - * FreeClimb API - * FreeClimb is a cloud-based application programming interface (API) that puts the power of the Vail platform in your hands. FreeClimb simplifies the process of creating applications that can use a full range of telephony features without requiring specialized or on-site telephony equipment. Using the FreeClimb REST API to write applications is easy! You have the option to use the language of your choice or hit the API directly. Your application can execute a command by issuing a RESTful request to the FreeClimb API. The base URL to send HTTP requests to the FreeClimb REST API is: /apiserver. FreeClimb authenticates and processes your request. - * - * The version of the OpenAPI document: 1.0.0 - * Contact: support@freeclimb.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -package com.github.freeclimbapi; - -import com.github.freeclimbapi.enums.*; -import com.github.freeclimbapi.models.*; -import java.util.*; -import org.junit.Assert; -import org.junit.Test; - -/** Model tests for SayStandardEngine */ -public class SayStandardEngineTest { - - private final SayStandardEngine model = new SayStandardEngine(); - - /** Test the property 'name' */ - @Test - public void nameTest() { - - model.setName("TEST_STRING"); - Assert.assertEquals("TEST_STRING", model.getName()); - } - - /** Test the property 'parameters' */ - @Test - public void parametersTest() { - - SayStandardEngineParameters object = new SayStandardEngineParameters(); - model.setParameters(object); - Assert.assertEquals(object.getClass(), SayStandardEngineParameters.class); - } - - /** Test the method 'equalsTrue' */ - @Test - public void equalsTrueTest() { - SayStandardEngine test1 = new SayStandardEngine(); - - test1.setName("TS"); - - SayStandardEngineParameters testSayStandardEngineParametersObject = - new SayStandardEngineParameters(); - test1.setParameters(testSayStandardEngineParametersObject); - - SayStandardEngine test2 = new SayStandardEngine(); - - test2.setName("TS"); - - SayStandardEngineParameters testSayStandardEngineParametersObject2 = - testSayStandardEngineParametersObject; - test2.setParameters(testSayStandardEngineParametersObject2); - - Assert.assertTrue(test1.equals(test2)); - } - - /** Test the method 'equalsFalse' */ - @Test - public void equalsFalseTest() { - SayStandardEngine test1 = new SayStandardEngine(); - - test1.setName("TS"); - - SayStandardEngineParameters testSayStandardEngineParametersObject = - new SayStandardEngineParameters(); - test1.setParameters(testSayStandardEngineParametersObject); - - SayStandardEngine test2 = new SayStandardEngine(); - - test2.setName("TS2"); - - SayStandardEngineParameters testSayStandardEngineParametersObject2 = - new SayStandardEngineParameters(); - test2.setParameters(testSayStandardEngineParametersObject2); - - Assert.assertFalse(test1.equals(test2)); - } - - /** Test the method 'hashCodeType' */ - @Test - public void hashCodeTypeTest() { - SayStandardEngine test1 = new SayStandardEngine(); - - test1.setName("TS"); - - SayStandardEngineParameters testSayStandardEngineParametersObject = - new SayStandardEngineParameters(); - test1.setParameters(testSayStandardEngineParametersObject); - - int hashCode1 = test1.hashCode(); - Assert.assertTrue(Integer.class.isInstance(hashCode1)); - } - - /** Test the method 'toStringEquals' */ - @Test - public void toStringEqualsTest() { - SayStandardEngine test1 = new SayStandardEngine(); - - test1.setName("TS"); - - SayStandardEngineParameters testSayStandardEngineParametersObject = - new SayStandardEngineParameters(); - test1.setParameters(testSayStandardEngineParametersObject); - - SayStandardEngine test2 = new SayStandardEngine(); - - test2.setName("TS"); - - SayStandardEngineParameters testSayStandardEngineParametersObject2 = - testSayStandardEngineParametersObject; - test2.setParameters(testSayStandardEngineParametersObject2); - - String toString1 = test1.toString(); - String toString2 = test2.toString(); - Assert.assertEquals(toString1, toString2); - } - - /** Test the method 'hashCodeEqualsTrue' */ - @Test - public void hashCodeEqualsTrueTest() { - SayStandardEngine test1 = new SayStandardEngine(); - - test1.setName("TS"); - - SayStandardEngineParameters testSayStandardEngineParametersObject = - new SayStandardEngineParameters(); - test1.setParameters(testSayStandardEngineParametersObject); - - SayStandardEngine test2 = new SayStandardEngine(); - - test2.setName("TS"); - - SayStandardEngineParameters testSayStandardEngineParametersObject2 = - testSayStandardEngineParametersObject; - test2.setParameters(testSayStandardEngineParametersObject2); - - Assert.assertEquals(test1.hashCode(), test2.hashCode()); - } - - /** Test the method 'hashCodeEqualsFalse' */ - @Test - public void hashCodeEqualsFalseTest() { - SayStandardEngine test1 = new SayStandardEngine(); - - test1.setName("TS"); - - SayStandardEngineParameters testSayStandardEngineParametersObject = - new SayStandardEngineParameters(); - test1.setParameters(testSayStandardEngineParametersObject); - - SayStandardEngine test2 = new SayStandardEngine(); - - test2.setName("TS2"); - - SayStandardEngineParameters testSayStandardEngineParametersObject2 = - new SayStandardEngineParameters(); - test2.setParameters(testSayStandardEngineParametersObject2); - - Assert.assertNotEquals(test1.hashCode(), test2.hashCode()); - } - - /** Test the method 'toStringType' */ - @Test - public void toStringTypeTest() { - SayStandardEngine test1 = new SayStandardEngine(); - - test1.setName("TS"); - - SayStandardEngineParameters testSayStandardEngineParametersObject = - new SayStandardEngineParameters(); - test1.setParameters(testSayStandardEngineParametersObject); - - String toString1 = test1.toString(); - Assert.assertTrue(String.class.isInstance(toString1)); - } -} diff --git a/src/test/java/com/github/freeclimbapi/models/SayStandardTest.java b/src/test/java/com/github/freeclimbapi/models/SayStandardTest.java deleted file mode 100644 index 7a589b22..00000000 --- a/src/test/java/com/github/freeclimbapi/models/SayStandardTest.java +++ /dev/null @@ -1,235 +0,0 @@ -/* - * FreeClimb API - * FreeClimb is a cloud-based application programming interface (API) that puts the power of the Vail platform in your hands. FreeClimb simplifies the process of creating applications that can use a full range of telephony features without requiring specialized or on-site telephony equipment. Using the FreeClimb REST API to write applications is easy! You have the option to use the language of your choice or hit the API directly. Your application can execute a command by issuing a RESTful request to the FreeClimb API. The base URL to send HTTP requests to the FreeClimb REST API is: /apiserver. FreeClimb authenticates and processes your request. - * - * The version of the OpenAPI document: 1.0.0 - * Contact: support@freeclimb.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -package com.github.freeclimbapi; - -import com.github.freeclimbapi.enums.*; -import com.github.freeclimbapi.models.*; -import java.util.*; -import org.junit.Assert; -import org.junit.Test; - -/** Model tests for SayStandard */ -public class SayStandardTest { - - private final SayStandard model = new SayStandard(); - - /** Test the property 'text' */ - @Test - public void textTest() { - - model.setText("TEST_STRING"); - Assert.assertEquals("TEST_STRING", model.getText()); - } - - /** Test the property 'loop' */ - @Test - public void loopTest() { - - model.setLoop(1); - Assert.assertEquals(1, (int) model.getLoop()); - } - - /** Test the property 'privacyMode' */ - @Test - public void privacyModeTest() { - model.setPrivacyMode(false); - Assert.assertEquals(false, model.getPrivacyMode()); - } - - /** Test the property 'engine' */ - @Test - public void engineTest() { - - SayStandardEngine object = new SayStandardEngine(); - model.setEngine(object); - Assert.assertEquals(object.getClass(), SayStandardEngine.class); - } - - /** Test the method 'equalsTrue' */ - @Test - public void equalsTrueTest() { - SayStandard test1 = new SayStandard(); - - test1.setText("TS"); - - test1.setLoop(1); - - test1.setPrivacyMode(true); - - SayStandardEngine testSayStandardEngineObject = new SayStandardEngine(); - test1.setEngine(testSayStandardEngineObject); - - SayStandard test2 = new SayStandard(); - - test2.setText("TS"); - - test2.setLoop(1); - - test2.setPrivacyMode(true); - - SayStandardEngine testSayStandardEngineObject2 = testSayStandardEngineObject; - test2.setEngine(testSayStandardEngineObject2); - - Assert.assertTrue(test1.equals(test2)); - } - - /** Test the method 'equalsFalse' */ - @Test - public void equalsFalseTest() { - SayStandard test1 = new SayStandard(); - - test1.setText("TS"); - - test1.setLoop(1); - - test1.setPrivacyMode(true); - - SayStandardEngine testSayStandardEngineObject = new SayStandardEngine(); - test1.setEngine(testSayStandardEngineObject); - - SayStandard test2 = new SayStandard(); - - test2.setText("TS2"); - - test2.setLoop(0); - - test2.setPrivacyMode(false); - - SayStandardEngine testSayStandardEngineObject2 = new SayStandardEngine(); - test2.setEngine(testSayStandardEngineObject2); - - Assert.assertFalse(test1.equals(test2)); - } - - /** Test the method 'hashCodeType' */ - @Test - public void hashCodeTypeTest() { - SayStandard test1 = new SayStandard(); - - test1.setText("TS"); - - test1.setLoop(1); - - test1.setPrivacyMode(true); - - SayStandardEngine testSayStandardEngineObject = new SayStandardEngine(); - test1.setEngine(testSayStandardEngineObject); - - int hashCode1 = test1.hashCode(); - Assert.assertTrue(Integer.class.isInstance(hashCode1)); - } - - /** Test the method 'toStringEquals' */ - @Test - public void toStringEqualsTest() { - SayStandard test1 = new SayStandard(); - - test1.setText("TS"); - - test1.setLoop(1); - - test1.setPrivacyMode(true); - - SayStandardEngine testSayStandardEngineObject = new SayStandardEngine(); - test1.setEngine(testSayStandardEngineObject); - - SayStandard test2 = new SayStandard(); - - test2.setText("TS"); - - test2.setLoop(1); - - test2.setPrivacyMode(true); - - SayStandardEngine testSayStandardEngineObject2 = testSayStandardEngineObject; - test2.setEngine(testSayStandardEngineObject2); - - String toString1 = test1.toString(); - String toString2 = test2.toString(); - Assert.assertEquals(toString1, toString2); - } - - /** Test the method 'hashCodeEqualsTrue' */ - @Test - public void hashCodeEqualsTrueTest() { - SayStandard test1 = new SayStandard(); - - test1.setText("TS"); - - test1.setLoop(1); - - test1.setPrivacyMode(true); - - SayStandardEngine testSayStandardEngineObject = new SayStandardEngine(); - test1.setEngine(testSayStandardEngineObject); - - SayStandard test2 = new SayStandard(); - - test2.setText("TS"); - - test2.setLoop(1); - - test2.setPrivacyMode(true); - - SayStandardEngine testSayStandardEngineObject2 = testSayStandardEngineObject; - test2.setEngine(testSayStandardEngineObject2); - - Assert.assertEquals(test1.hashCode(), test2.hashCode()); - } - - /** Test the method 'hashCodeEqualsFalse' */ - @Test - public void hashCodeEqualsFalseTest() { - SayStandard test1 = new SayStandard(); - - test1.setText("TS"); - - test1.setLoop(1); - - test1.setPrivacyMode(true); - - SayStandardEngine testSayStandardEngineObject = new SayStandardEngine(); - test1.setEngine(testSayStandardEngineObject); - - SayStandard test2 = new SayStandard(); - - test2.setText("TS2"); - - test2.setLoop(0); - - test2.setPrivacyMode(false); - - SayStandardEngine testSayStandardEngineObject2 = new SayStandardEngine(); - test2.setEngine(testSayStandardEngineObject2); - - Assert.assertNotEquals(test1.hashCode(), test2.hashCode()); - } - - /** Test the method 'toStringType' */ - @Test - public void toStringTypeTest() { - SayStandard test1 = new SayStandard(); - - test1.setText("TS"); - - test1.setLoop(1); - - test1.setPrivacyMode(true); - - SayStandardEngine testSayStandardEngineObject = new SayStandardEngine(); - test1.setEngine(testSayStandardEngineObject); - - String toString1 = test1.toString(); - Assert.assertTrue(String.class.isInstance(toString1)); - } -} diff --git a/src/test/java/com/github/freeclimbapi/models/SayTest.java b/src/test/java/com/github/freeclimbapi/models/SayTest.java index cea59267..27d28c06 100644 --- a/src/test/java/com/github/freeclimbapi/models/SayTest.java +++ b/src/test/java/com/github/freeclimbapi/models/SayTest.java @@ -32,36 +32,36 @@ public void textTest() { Assert.assertEquals("TEST_STRING", model.getText()); } - /** Test the property 'loop' */ + /** Test the property 'language' */ @Test - public void loopTest() { - - model.setLoop(1); - Assert.assertEquals(1, (int) model.getLoop()); - } + public void languageTest() { - /** Test the property 'privacyMode' */ - @Test - public void privacyModeTest() { - model.setPrivacyMode(false); - Assert.assertEquals(false, model.getPrivacyMode()); + model.setLanguage("TEST_STRING"); + Assert.assertEquals("TEST_STRING", model.getLanguage()); } /** Test the property 'engine' */ @Test public void engineTest() { - SayStandardEngine object = new SayStandardEngine(); + TTSEngine object = new TTSEngine(); model.setEngine(object); - Assert.assertEquals(object.getClass(), SayStandardEngine.class); + Assert.assertEquals(object.getClass(), TTSEngine.class); } - /** Test the property 'language' */ + /** Test the property 'loop' */ @Test - public void languageTest() { + public void loopTest() { - model.setLanguage("TEST_STRING"); - Assert.assertEquals("TEST_STRING", model.getLanguage()); + model.setLoop(1); + Assert.assertEquals(1, (int) model.getLoop()); + } + + /** Test the property 'privacyMode' */ + @Test + public void privacyModeTest() { + model.setPrivacyMode(false); + Assert.assertEquals(false, model.getPrivacyMode()); } /** Test the method 'equalsTrue' */ @@ -71,27 +71,27 @@ public void equalsTrueTest() { test1.setText("TS"); - test1.setLoop(1); + test1.setLanguage("TS"); - test1.setPrivacyMode(true); + TTSEngine testTTSEngineObject = new TTSEngine(); + test1.setEngine(testTTSEngineObject); - SayStandardEngine testSayStandardEngineObject = new SayStandardEngine(); - test1.setEngine(testSayStandardEngineObject); + test1.setLoop(1); - test1.setLanguage("TS"); + test1.setPrivacyMode(true); Say test2 = new Say(); test2.setText("TS"); - test2.setLoop(1); + test2.setLanguage("TS"); - test2.setPrivacyMode(true); + TTSEngine testTTSEngineObject2 = testTTSEngineObject; + test2.setEngine(testTTSEngineObject2); - SayStandardEngine testSayStandardEngineObject2 = testSayStandardEngineObject; - test2.setEngine(testSayStandardEngineObject2); + test2.setLoop(1); - test2.setLanguage("TS"); + test2.setPrivacyMode(true); Assert.assertTrue(test1.equals(test2)); } @@ -103,27 +103,27 @@ public void equalsFalseTest() { test1.setText("TS"); - test1.setLoop(1); + test1.setLanguage("TS"); - test1.setPrivacyMode(true); + TTSEngine testTTSEngineObject = new TTSEngine(); + test1.setEngine(testTTSEngineObject); - SayStandardEngine testSayStandardEngineObject = new SayStandardEngine(); - test1.setEngine(testSayStandardEngineObject); + test1.setLoop(1); - test1.setLanguage("TS"); + test1.setPrivacyMode(true); Say test2 = new Say(); test2.setText("TS2"); - test2.setLoop(0); + test2.setLanguage("TS2"); - test2.setPrivacyMode(false); + TTSEngine testTTSEngineObject2 = new TTSEngine(); + test2.setEngine(testTTSEngineObject2); - SayStandardEngine testSayStandardEngineObject2 = new SayStandardEngine(); - test2.setEngine(testSayStandardEngineObject2); + test2.setLoop(0); - test2.setLanguage("TS2"); + test2.setPrivacyMode(false); Assert.assertFalse(test1.equals(test2)); } @@ -135,14 +135,14 @@ public void hashCodeTypeTest() { test1.setText("TS"); - test1.setLoop(1); + test1.setLanguage("TS"); - test1.setPrivacyMode(true); + TTSEngine testTTSEngineObject = new TTSEngine(); + test1.setEngine(testTTSEngineObject); - SayStandardEngine testSayStandardEngineObject = new SayStandardEngine(); - test1.setEngine(testSayStandardEngineObject); + test1.setLoop(1); - test1.setLanguage("TS"); + test1.setPrivacyMode(true); int hashCode1 = test1.hashCode(); Assert.assertTrue(Integer.class.isInstance(hashCode1)); @@ -155,27 +155,27 @@ public void toStringEqualsTest() { test1.setText("TS"); - test1.setLoop(1); + test1.setLanguage("TS"); - test1.setPrivacyMode(true); + TTSEngine testTTSEngineObject = new TTSEngine(); + test1.setEngine(testTTSEngineObject); - SayStandardEngine testSayStandardEngineObject = new SayStandardEngine(); - test1.setEngine(testSayStandardEngineObject); + test1.setLoop(1); - test1.setLanguage("TS"); + test1.setPrivacyMode(true); Say test2 = new Say(); test2.setText("TS"); - test2.setLoop(1); + test2.setLanguage("TS"); - test2.setPrivacyMode(true); + TTSEngine testTTSEngineObject2 = testTTSEngineObject; + test2.setEngine(testTTSEngineObject2); - SayStandardEngine testSayStandardEngineObject2 = testSayStandardEngineObject; - test2.setEngine(testSayStandardEngineObject2); + test2.setLoop(1); - test2.setLanguage("TS"); + test2.setPrivacyMode(true); String toString1 = test1.toString(); String toString2 = test2.toString(); @@ -189,27 +189,27 @@ public void hashCodeEqualsTrueTest() { test1.setText("TS"); - test1.setLoop(1); + test1.setLanguage("TS"); - test1.setPrivacyMode(true); + TTSEngine testTTSEngineObject = new TTSEngine(); + test1.setEngine(testTTSEngineObject); - SayStandardEngine testSayStandardEngineObject = new SayStandardEngine(); - test1.setEngine(testSayStandardEngineObject); + test1.setLoop(1); - test1.setLanguage("TS"); + test1.setPrivacyMode(true); Say test2 = new Say(); test2.setText("TS"); - test2.setLoop(1); + test2.setLanguage("TS"); - test2.setPrivacyMode(true); + TTSEngine testTTSEngineObject2 = testTTSEngineObject; + test2.setEngine(testTTSEngineObject2); - SayStandardEngine testSayStandardEngineObject2 = testSayStandardEngineObject; - test2.setEngine(testSayStandardEngineObject2); + test2.setLoop(1); - test2.setLanguage("TS"); + test2.setPrivacyMode(true); Assert.assertEquals(test1.hashCode(), test2.hashCode()); } @@ -221,27 +221,27 @@ public void hashCodeEqualsFalseTest() { test1.setText("TS"); - test1.setLoop(1); + test1.setLanguage("TS"); - test1.setPrivacyMode(true); + TTSEngine testTTSEngineObject = new TTSEngine(); + test1.setEngine(testTTSEngineObject); - SayStandardEngine testSayStandardEngineObject = new SayStandardEngine(); - test1.setEngine(testSayStandardEngineObject); + test1.setLoop(1); - test1.setLanguage("TS"); + test1.setPrivacyMode(true); Say test2 = new Say(); test2.setText("TS2"); - test2.setLoop(0); + test2.setLanguage("TS2"); - test2.setPrivacyMode(false); + TTSEngine testTTSEngineObject2 = new TTSEngine(); + test2.setEngine(testTTSEngineObject2); - SayStandardEngine testSayStandardEngineObject2 = new SayStandardEngine(); - test2.setEngine(testSayStandardEngineObject2); + test2.setLoop(0); - test2.setLanguage("TS2"); + test2.setPrivacyMode(false); Assert.assertNotEquals(test1.hashCode(), test2.hashCode()); } @@ -253,14 +253,14 @@ public void toStringTypeTest() { test1.setText("TS"); - test1.setLoop(1); + test1.setLanguage("TS"); - test1.setPrivacyMode(true); + TTSEngine testTTSEngineObject = new TTSEngine(); + test1.setEngine(testTTSEngineObject); - SayStandardEngine testSayStandardEngineObject = new SayStandardEngine(); - test1.setEngine(testSayStandardEngineObject); + test1.setLoop(1); - test1.setLanguage("TS"); + test1.setPrivacyMode(true); String toString1 = test1.toString(); Assert.assertTrue(String.class.isInstance(toString1)); @@ -277,17 +277,16 @@ public void buildTest() throws Exception { model.setText("TEST_STRING"); Assert.assertEquals("TEST_STRING", model.getText()); - model.setPrivacyMode(false); - model.setLanguage("TEST_STRING"); Assert.assertEquals("TEST_STRING", model.getLanguage()); + model.setPrivacyMode(false); Map> build = model.build(); Map attributes = build.get(model.getCommand()); Assert.assertEquals(attributes.get("text"), model.getText()); + Assert.assertEquals(attributes.get("language"), model.getLanguage()); + Assert.assertEquals(attributes.get("engine"), model.getEngine()); Assert.assertEquals(attributes.get("loop"), model.getLoop()); Assert.assertEquals(attributes.get("privacyMode"), model.getPrivacyMode()); - Assert.assertEquals(attributes.get("engine"), model.getEngine()); - Assert.assertEquals(attributes.get("language"), model.getLanguage()); } } diff --git a/src/test/java/com/github/freeclimbapi/models/TTSEngineTest.java b/src/test/java/com/github/freeclimbapi/models/TTSEngineTest.java new file mode 100644 index 00000000..0a680eee --- /dev/null +++ b/src/test/java/com/github/freeclimbapi/models/TTSEngineTest.java @@ -0,0 +1,167 @@ +/* + * FreeClimb API + * FreeClimb is a cloud-based application programming interface (API) that puts the power of the Vail platform in your hands. FreeClimb simplifies the process of creating applications that can use a full range of telephony features without requiring specialized or on-site telephony equipment. Using the FreeClimb REST API to write applications is easy! You have the option to use the language of your choice or hit the API directly. Your application can execute a command by issuing a RESTful request to the FreeClimb API. The base URL to send HTTP requests to the FreeClimb REST API is: /apiserver. FreeClimb authenticates and processes your request. + * + * The version of the OpenAPI document: 1.0.0 + * Contact: support@freeclimb.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +package com.github.freeclimbapi; + +import com.github.freeclimbapi.enums.*; +import com.github.freeclimbapi.models.*; +import java.util.*; +import java.util.HashMap; +import java.util.Map; +import org.junit.Assert; +import org.junit.Test; + +/** Model tests for TTSEngine */ +public class TTSEngineTest { + + private final TTSEngine model = new TTSEngine(); + + /** Test the property 'name' */ + @Test + public void nameTest() { + model.setName(TTSEngineName.FREECLIMB_STANDARD); + Assert.assertEquals(model.getName(), TTSEngineName.FREECLIMB_STANDARD); + model.setName(TTSEngineName.FREECLIMB_NEURAL); + Assert.assertEquals(model.getName(), TTSEngineName.FREECLIMB_NEURAL); + model.setName(TTSEngineName.ELEVEN_LABS); + Assert.assertEquals(model.getName(), TTSEngineName.ELEVEN_LABS); + } + + /** Test the property 'parameters' */ + @Test + public void parametersTest() { + + Map testMap = new HashMap(); + model.setParameters(testMap); + Assert.assertEquals(testMap, model.getParameters()); + } + + /** Test the method 'equalsTrue' */ + @Test + public void equalsTrueTest() { + TTSEngine test1 = new TTSEngine(); + test1.setName(TTSEngineName.FREECLIMB_STANDARD); + + Map testMap = new HashMap(); + test1.setParameters(testMap); + + TTSEngine test2 = new TTSEngine(); + test2.setName(TTSEngineName.FREECLIMB_STANDARD); + + Map testMap2 = testMap; + test2.setParameters(testMap); + + Assert.assertTrue(test1.equals(test2)); + } + + /** Test the method 'equalsFalse' */ + @Test + public void equalsFalseTest() { + TTSEngine test1 = new TTSEngine(); + + test1.setName(TTSEngineName.FREECLIMB_NEURAL); + + Map testMap = new HashMap(); + test1.setParameters(testMap); + + TTSEngine test2 = new TTSEngine(); + test2.setName(TTSEngineName.FREECLIMB_STANDARD); + + Map testMap2 = new HashMap(); + test2.setParameters(testMap); + + Assert.assertFalse(test1.equals(test2)); + } + + /** Test the method 'hashCodeType' */ + @Test + public void hashCodeTypeTest() { + TTSEngine test1 = new TTSEngine(); + test1.setName(TTSEngineName.FREECLIMB_STANDARD); + + Map testMap = new HashMap(); + test1.setParameters(testMap); + + int hashCode1 = test1.hashCode(); + Assert.assertTrue(Integer.class.isInstance(hashCode1)); + } + + /** Test the method 'toStringEquals' */ + @Test + public void toStringEqualsTest() { + TTSEngine test1 = new TTSEngine(); + test1.setName(TTSEngineName.FREECLIMB_STANDARD); + + Map testMap = new HashMap(); + test1.setParameters(testMap); + + TTSEngine test2 = new TTSEngine(); + test2.setName(TTSEngineName.FREECLIMB_STANDARD); + + Map testMap2 = testMap; + test2.setParameters(testMap); + + String toString1 = test1.toString(); + String toString2 = test2.toString(); + Assert.assertEquals(toString1, toString2); + } + + /** Test the method 'hashCodeEqualsTrue' */ + @Test + public void hashCodeEqualsTrueTest() { + TTSEngine test1 = new TTSEngine(); + test1.setName(TTSEngineName.FREECLIMB_STANDARD); + + Map testMap = new HashMap(); + test1.setParameters(testMap); + + TTSEngine test2 = new TTSEngine(); + test2.setName(TTSEngineName.FREECLIMB_STANDARD); + + Map testMap2 = testMap; + test2.setParameters(testMap); + + Assert.assertEquals(test1.hashCode(), test2.hashCode()); + } + + /** Test the method 'hashCodeEqualsFalse' */ + @Test + public void hashCodeEqualsFalseTest() { + TTSEngine test1 = new TTSEngine(); + + test1.setName(TTSEngineName.FREECLIMB_NEURAL); + + Map testMap = new HashMap(); + test1.setParameters(testMap); + + TTSEngine test2 = new TTSEngine(); + test2.setName(TTSEngineName.FREECLIMB_STANDARD); + + Map testMap2 = new HashMap(); + test2.setParameters(testMap); + + Assert.assertNotEquals(test1.hashCode(), test2.hashCode()); + } + + /** Test the method 'toStringType' */ + @Test + public void toStringTypeTest() { + TTSEngine test1 = new TTSEngine(); + test1.setName(TTSEngineName.FREECLIMB_STANDARD); + + Map testMap = new HashMap(); + test1.setParameters(testMap); + + String toString1 = test1.toString(); + Assert.assertTrue(String.class.isInstance(toString1)); + } +}