diff --git a/.openapi-generator/FILES b/.openapi-generator/FILES index 67f9c9b..2ee06e4 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 @@ -141,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 @@ -182,6 +190,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 +212,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 +261,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 +273,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 +296,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 @@ -313,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 @@ -344,6 +360,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 +381,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 +428,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 +439,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 +460,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 @@ -466,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/CHANGELOG.md b/CHANGELOG.md index a5b733f..7de68cc 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 0ba7d49..bfe8d9d 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 @@ -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) @@ -344,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/build.gradle b/build.gradle index d671f8a..fe19b2a 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 f67bf7c..a74d244 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/docs/AvailableNumber.md b/docs/AvailableNumber.md index 3c2f8fb..7b8e584 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 0000000..6ce8388 --- /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 0000000..8f48ef0 --- /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 0000000..7e4bdf3 --- /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 6cf8f1f..c890004 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,81 @@ null (empty response body) |-------------|-------------|------------------| **204** | Successful Incoming Number deletion. | - | + +# **deleteBlob** +> BlobResult deleteBlob(blobId) + +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. + + try { + BlobResult result = apiInstance.deleteBlob(blobId); + 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. | + + +### 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 +1096,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 +1987,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 +2956,74 @@ Name | Type | Description | Notes |-------------|-------------|------------------| **200** | Available Numbers List | - | + +# **listBlobs** +> BlobListResponse listBlobs() + +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); + + try { + BlobListResponse result = apiInstance.listBlobs(); + 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 + + + +### 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 +3479,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 +3516,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 +3533,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 +3556,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 +4025,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 +4171,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 +4375,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 7c6fd7b..842492c 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 0000000..e84b3cc --- /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 0000000..f1a6057 --- /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 0000000..c4082c0 --- /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 6a2cd39..0071804 100644 --- a/docs/Say.md +++ b/docs/Say.md @@ -10,6 +10,7 @@ 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] diff --git a/docs/TTSEngine.md b/docs/TTSEngine.md new file mode 100644 index 0000000..51c8285 --- /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 0000000..eafa70f --- /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 7561d69..27b9cbd 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,30 @@ "$ref": "#/components/schemas/PerclCommand" }, { - "required": [], "type": "object", "properties": {} } ] }, + "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": ["freeclimb.standard", "freeclimb.neural", "ElevenLabs"] + }, + "TTSEngine": { + "type": "object", + "properties": { + "name": { + "$ref": "#/components/schemas/TTSEngineName" + }, + "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": {}, + "additionalProperties": true + } + } + }, "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": [ @@ -2433,7 +2464,6 @@ }, { "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.", @@ -2443,6 +2473,9 @@ "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" }, + "engine": { + "$ref": "#/components/schemas/TTSEngine" + }, "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", @@ -2489,7 +2522,6 @@ "$ref": "#/components/schemas/PerclCommand" }, { - "required": [], "type": "object", "properties": { "listen": { @@ -2507,7 +2539,6 @@ "$ref": "#/components/schemas/PerclCommand" }, { - "required": [], "type": "object", "properties": { "talk": { @@ -2525,7 +2556,6 @@ "$ref": "#/components/schemas/PerclCommand" }, { - "required": [], "type": "object", "properties": { "dtmfPassThrough": { @@ -2585,7 +2615,6 @@ "$ref": "#/components/schemas/PerclCommand" }, { - "required": [], "type": "object", "properties": {} } @@ -3662,9 +3691,7 @@ }, "CreateConferenceRequest": { "type": "object", - "required": [ - "statusCallbackUrl" - ], + "required": ["statusCallbackUrl"], "properties": { "alias": { "type": "string", @@ -4850,23 +4877,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 +4895,7 @@ }, "ExportResultOutput": { "type": "object", - "required": [ - "type" - ], + "required": ["type"], "properties": { "type": { "$ref": "#/components/schemas/ExportOutputType" @@ -4962,12 +4980,7 @@ "query": { "direction": "inbound" }, - "format": [ - "messageId", - "dateUpdated", - "segmentCount", - "status" - ], + "format": ["messageId", "dateUpdated", "segmentCount", "status"], "output": { "type": "csv" } @@ -4994,10 +5007,7 @@ }, "ExportRequest": { "type": "object", - "required": [ - "resourceType", - "output" - ], + "required": ["resourceType", "output"], "properties": { "resourceType": { "$ref": "#/components/schemas/ExportResourceType" @@ -5015,6 +5025,240 @@ "type": "object" } } + }, + "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" + } + }, + "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 + } + } + }, + "ReplaceBlobRequest": { + "type": "object", + "required": ["blob"], + "properties": { + "blob": { + "type": "object" + } + } + }, + "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" + } + } + } } } }, @@ -5026,7 +5270,7 @@ "paths": { "/Accounts/{accountId}": { "get": { - "tags": [], + "tags": ["Accounts"], "summary": "Get an Account", "operationId": "get-an-account", "parameters": [ @@ -5049,7 +5293,7 @@ } }, "post": { - "tags": [], + "tags": ["Accounts"], "summary": "Manage an account", "operationId": "update-an-account", "parameters": [ @@ -5076,7 +5320,7 @@ }, "/Accounts/{accountId}/Applications/{applicationId}": { "get": { - "tags": [], + "tags": ["Applications"], "summary": "Get an Application", "operationId": "get-an-application", "parameters": [ @@ -5108,7 +5352,7 @@ } }, "post": { - "tags": [], + "tags": ["Applications"], "summary": "Update an application", "operationId": "update-an-application", "parameters": [ @@ -5150,7 +5394,7 @@ } }, "delete": { - "tags": [], + "tags": ["Applications"], "summary": "Delete an application", "operationId": "delete-an-application", "parameters": [ @@ -5177,7 +5421,7 @@ }, "/Accounts/{accountId}/Applications": { "get": { - "tags": [], + "tags": ["Applications"], "summary": "List applications", "operationId": "list-applications", "parameters": [ @@ -5209,7 +5453,7 @@ } }, "post": { - "tags": [], + "tags": ["Applications"], "summary": "Create an application", "operationId": "create-an-application", "parameters": [ @@ -5244,7 +5488,7 @@ }, "/AvailablePhoneNumbers": { "get": { - "tags": [], + "tags": ["AvailablePhoneNumbers"], "summary": "List available numbers", "operationId": "list-available-numbers", "parameters": [ @@ -5328,7 +5572,7 @@ }, "/Accounts/{accountId}/IncomingPhoneNumbers/{phoneNumberId}": { "get": { - "tags": [], + "tags": ["IncomingPhoneNumbers"], "summary": "Get an Incoming Number", "operationId": "get-an-incoming-number", "parameters": [ @@ -5360,7 +5604,7 @@ } }, "post": { - "tags": [], + "tags": ["IncomingPhoneNumbers"], "summary": "Update an Incoming Number", "operationId": "update-an-incoming-number", "parameters": [ @@ -5402,7 +5646,7 @@ } }, "delete": { - "tags": [], + "tags": ["IncomingPhoneNumbers"], "summary": "Delete an Incoming Number", "operationId": "delete-an-incoming-number", "parameters": [ @@ -5429,7 +5673,7 @@ }, "/Accounts/{accountId}/IncomingPhoneNumbers": { "get": { - "tags": [], + "tags": ["IncomingPhoneNumbers"], "summary": "List Incoming Numbers", "operationId": "list-incoming-numbers", "parameters": [ @@ -5571,7 +5815,7 @@ } }, "post": { - "tags": [], + "tags": ["IncomingPhoneNumbers"], "summary": "Buy a Phone Number", "operationId": "buy-a-phone-number", "parameters": [ @@ -5607,7 +5851,7 @@ }, "/Accounts/{accountId}/KnowledgeBases/{knowledgeBaseId}/Completion": { "post": { - "tags": [], + "tags": ["KnowledgeBases"], "summary": "Query the knowledge base", "operationId": "create-knowledge-base-completion", "parameters": [ @@ -5651,7 +5895,7 @@ }, "/Accounts/{accountId}/Calls/{callId}": { "get": { - "tags": [], + "tags": ["Calls"], "summary": "Get a Call", "operationId": "get-a-call", "parameters": [ @@ -5683,7 +5927,7 @@ } }, "post": { - "tags": [], + "tags": ["Calls"], "summary": "Update a Live Call", "operationId": "update-a-live-call", "parameters": [ @@ -5721,7 +5965,7 @@ }, "/Accounts/{accountId}/Calls": { "post": { - "tags": [], + "tags": ["Calls"], "summary": "Make a Call", "operationId": "make-a-call", "parameters": [ @@ -5754,7 +5998,7 @@ } }, "get": { - "tags": [], + "tags": ["Calls"], "summary": "List Calls", "operationId": "list-calls", "parameters": [ @@ -5876,7 +6120,7 @@ }, "/Accounts/{accountId}/Calls/{callId}/Recordings": { "get": { - "tags": [], + "tags": ["Calls"], "summary": "List Call Recordings", "operationId": "list-call-recordings", "parameters": [ @@ -5919,7 +6163,7 @@ }, "/Accounts/{accountId}/Calls/{callId}/Logs": { "get": { - "tags": [], + "tags": ["Calls"], "summary": "List Call Logs", "operationId": "list-call-logs", "parameters": [ @@ -5953,6 +6197,7 @@ }, "/Accounts/{accountId}/Calls/WebRTC/Token": { "post": { + "tags": ["Calls"], "summary": "Make a JWT for WebRTC calling", "operationId": "make-a-webrtc-jwt", "parameters": [ @@ -5988,7 +6233,7 @@ }, "/Accounts/{accountId}/Conferences": { "post": { - "tags": [], + "tags": ["Conferences"], "summary": "Create a Conference", "operationId": "create-a-conference", "parameters": [ @@ -6021,7 +6266,7 @@ } }, "get": { - "tags": [], + "tags": ["Conferences"], "summary": "List Conferences", "operationId": "list-conferences", "parameters": [ @@ -6082,7 +6327,7 @@ }, "/Accounts/{accountId}/Conferences/{conferenceId}": { "post": { - "tags": [], + "tags": ["Conferences"], "summary": "Update a Conference", "operationId": "update-a-conference", "parameters": [ @@ -6117,7 +6362,7 @@ } }, "get": { - "tags": [], + "tags": ["Conferences"], "summary": "Get a Conference", "operationId": "get-a-conference", "parameters": [ @@ -6151,7 +6396,7 @@ }, "/Accounts/{accountId}/Conferences/{conferenceId}/Participants/{callId}": { "post": { - "tags": [], + "tags": ["Conferences"], "summary": "Update a Participant", "operationId": "update-a-participant", "parameters": [ @@ -6202,7 +6447,7 @@ } }, "get": { - "tags": [], + "tags": ["Conferences"], "summary": "Get a Participant", "operationId": "get-a-participant", "parameters": [ @@ -6243,7 +6488,7 @@ } }, "delete": { - "tags": [], + "tags": ["Conferences"], "summary": "Remove a Participant", "operationId": "remove-a-participant", "parameters": [ @@ -6279,7 +6524,7 @@ }, "/Accounts/{accountId}/Conferences/{conferenceId}/Participants": { "get": { - "tags": [], + "tags": ["Conferences"], "summary": "List Participants", "operationId": "list-participants", "parameters": [ @@ -6340,7 +6585,7 @@ }, "/Accounts/{accountId}/Conferences/{conferenceId}/Recordings": { "get": { - "tags": [], + "tags": ["Conferences"], "summary": "List Conference Recordings", "operationId": "list-conference-recordings", "parameters": [ @@ -6392,7 +6637,7 @@ }, "/Accounts/{accountId}/Queues/{queueId}": { "post": { - "tags": [], + "tags": ["Queues"], "summary": "Update a Queue", "operationId": "update-a-queue", "parameters": [ @@ -6434,7 +6679,7 @@ } }, "get": { - "tags": [], + "tags": ["Queues"], "summary": "Get a Queue", "operationId": "get-a-queue", "parameters": [ @@ -6468,7 +6713,7 @@ }, "/Accounts/{accountId}/Queues": { "get": { - "tags": [], + "tags": ["Queues"], "summary": "List Active Queues", "operationId": "list-active-queues", "parameters": [ @@ -6500,7 +6745,7 @@ } }, "post": { - "tags": [], + "tags": ["Queues"], "summary": "Create a Queue", "operationId": "create-a-queue", "parameters": [ @@ -6535,7 +6780,7 @@ }, "/Accounts/{accountId}/Queues/{queueId}/Members/Front": { "get": { - "tags": [], + "tags": ["Queues"], "summary": "Get Head Member", "operationId": "get-head-member", "parameters": [ @@ -6567,7 +6812,7 @@ } }, "post": { - "tags": [], + "tags": ["Queues"], "summary": "Dequeue Head Member", "operationId": "dequeue-head-member", "parameters": [ @@ -6601,7 +6846,7 @@ }, "/Accounts/{accountId}/Queues/{queueId}/Members": { "get": { - "tags": [], + "tags": ["Queues"], "summary": "List Members", "operationId": "list-members", "parameters": [ @@ -6635,7 +6880,7 @@ }, "/Accounts/{accountId}/Queues/{queueId}/Members/{callId}": { "get": { - "tags": [], + "tags": ["Queues"], "summary": "Get a Member", "operationId": "get-a-member", "parameters": [ @@ -6676,7 +6921,7 @@ } }, "post": { - "tags": [], + "tags": ["Queues"], "summary": "Dequeue a Member", "operationId": "dequeue-a-member", "parameters": [ @@ -6719,7 +6964,7 @@ }, "/Accounts/{accountId}/Logs": { "get": { - "tags": [], + "tags": ["Logs"], "summary": "List All Account Logs", "operationId": "list-all-account-logs", "parameters": [ @@ -6742,7 +6987,7 @@ } }, "post": { - "tags": [], + "tags": ["Logs"], "summary": "Filter Logs", "operationId": "filter-logs", "parameters": [ @@ -6778,7 +7023,7 @@ }, "/Accounts/{accountId}/Recordings": { "get": { - "tags": [], + "tags": ["Recordings"], "summary": "List Recordings", "operationId": "list-recordings", "parameters": [ @@ -6830,7 +7075,7 @@ }, "/Accounts/{accountId}/Recordings/{recordingId}": { "get": { - "tags": [], + "tags": ["Recordings"], "summary": "Get a Recording", "operationId": "get-a-recording", "parameters": [ @@ -6862,7 +7107,7 @@ "deprecated": false }, "delete": { - "tags": [], + "tags": ["Recordings"], "summary": "Delete a Recording", "operationId": "delete-a-recording", "parameters": [ @@ -6889,7 +7134,7 @@ }, "/Accounts/{accountId}/Recordings/{recordingId}/Stream": { "get": { - "tags": [], + "tags": ["Recordings"], "summary": "Stream a Recording File", "operationId": "stream-a-recording-file", "parameters": [ @@ -6908,9 +7153,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 +7169,7 @@ }, "/Accounts/{accountId}/Recordings/{recordingId}/Download": { "get": { - "tags": [], + "tags": ["Recordings"], "summary": "Download a Recording File", "operationId": "download-a-recording-file", "parameters": [ @@ -6943,9 +7188,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 +7204,7 @@ }, "/Accounts/{accountId}/Messages": { "get": { - "tags": [], + "tags": ["Messages"], "summary": "List SMS Messages", "operationId": "list-sms-messages", "parameters": [ @@ -7054,7 +7299,7 @@ "deprecated": false }, "post": { - "tags": [], + "tags": ["Messages"], "summary": "Send an SMS Message", "operationId": "send-an-sms-message", "parameters": [ @@ -7090,7 +7335,7 @@ }, "/Accounts/{accountId}/Messages/{messageId}": { "get": { - "tags": [], + "tags": ["Messages"], "summary": "Get an SMS Message", "operationId": "get-an-sms-message", "parameters": [ @@ -7124,7 +7369,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 +7447,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 +7481,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 +7568,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 +7602,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 +7669,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 +7703,7 @@ }, "/Accounts/{accountId}/Messages/TollFree/Campaigns": { "get": { - "tags": [], + "tags": ["Messages"], "summary": "Get list of TollFree Campaigns", "operationId": "get-tollFree-sms-campaigns", "parameters": [ @@ -7503,7 +7748,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 +7782,7 @@ }, "/Accounts/{accountId}/Exports": { "get": { - "tags": [], + "tags": ["Exports"], "summary": "List Exports", "operationId": "list-exports", "responses": { @@ -7577,7 +7822,7 @@ "post": { "summary": "Create an Export", "operationId": "create-export", - "tags": [], + "tags": ["Exports"], "requestBody": { "description": "A JSON object containing export creation parameters", "content": { @@ -7609,7 +7854,7 @@ }, "/Accounts/{accountId}/Exports/{exportId}": { "get": { - "tags": [], + "tags": ["Exports"], "summary": "Get an Export", "operationId": "get-an-export", "parameters": [ @@ -7641,7 +7886,7 @@ } }, "delete": { - "tags": [], + "tags": ["Exports"], "summary": "Delete an Export", "operationId": "delete-an-export", "parameters": [ @@ -7668,7 +7913,7 @@ }, "/Accounts/{accountId}/Exports/{exportId}/Download": { "get": { - "tags": [], + "tags": ["Exports"], "summary": "Download an Export", "operationId": "download-an-export", "parameters": [ @@ -7699,8 +7944,559 @@ } } } + }, + "/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", + "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/pom.xml b/pom.xml index 37f2dd1..ae3f336 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 7dc1b5a..fbcc5fb 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/main/java/com/github/freeclimbapi/DefaultApi.java b/src/main/java/com/github/freeclimbapi/DefaultApi.java index 41083cc..fca75d1 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,184 @@ public okhttp3.Call deleteAnIncomingNumberAsync( return localVarCall; } + /** + * Build call for deleteBlob + * + * @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 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, 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(); + + 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, 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, _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) + * @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) throws ApiException { + ApiResponse localVarResp = deleteBlobWithHttpInfo(blobId); + 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) + * @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) throws ApiException { + okhttp3.Call localVarCall = deleteBlobValidateBeforeCall(blobId, 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 _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, final ApiCallback _callback) + throws ApiException { + + okhttp3.Call localVarCall = deleteBlobValidateBeforeCall(blobId, _callback); + Type localVarReturnType = new TypeToken() {}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** * Build call for dequeueAMember * @@ -1922,7 +2275,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 +2312,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 +2368,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 +2386,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 +2407,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 +4437,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 +4472,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,24 +4518,186 @@ 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 Head Member + * Get Blob Retrieves a specified blob * - * @param queueId String that uniquely identifies the Queue that the Member belongs to. - * (required) + * @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; + } + + /** + * Get Head Member + * + * @param queueId String that uniquely identifies the Queue that the Member belongs to. + * (required) * @return QueueMember * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the * response body @@ -6218,6 +6735,159 @@ public okhttp3.Call listAvailableNumbersAsync( return localVarCall; } + /** + * Build call for listBlobs + * + * @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 Single page of blob list results. -
400 Generic platform bad request. -
500 Generic platform internal error. -
504 gateway timeout error -
+ */ + public okhttp3.Call listBlobsCall(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" + .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 = {}; + + 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 listBlobsValidateBeforeCall(final ApiCallback _callback) + throws ApiException { + + okhttp3.Call localVarCall = listBlobsCall(_callback); + return localVarCall; + } + + /** + * 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. + * + * @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 Single page of blob list results. -
400 Generic platform bad request. -
500 Generic platform internal error. -
504 gateway timeout error -
+ */ + public BlobListResponse listBlobs() throws ApiException { + ApiResponse localVarResp = listBlobsWithHttpInfo(); + return localVarResp.getData(); + } + + /** + * 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. + * + * @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 Single page of blob list results. -
400 Generic platform bad request. -
500 Generic platform internal error. -
504 gateway timeout error -
+ */ + public ApiResponse listBlobsWithHttpInfo() throws ApiException { + okhttp3.Call localVarCall = listBlobsValidateBeforeCall(null); + Type localVarReturnType = new TypeToken() {}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * 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 _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 Single page of blob list results. -
400 Generic platform bad request. -
500 Generic platform internal error. -
504 gateway timeout error -
+ */ + public okhttp3.Call listBlobsAsync(final ApiCallback _callback) + throws ApiException { + + okhttp3.Call localVarCall = listBlobsValidateBeforeCall(_callback); + Type localVarReturnType = new TypeToken() {}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** * Build call for listCallLogs * @@ -7460,10 +8130,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 +8157,6 @@ public okhttp3.Call listIncomingNumbersCall( String country, String applicationId, Boolean hasApplication, - Boolean voiceEnabled, - Boolean smsEnabled, Boolean hasCampaign, Boolean capabilitiesVoice, Boolean capabilitiesSms, @@ -7559,15 +8223,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 +8303,6 @@ private okhttp3.Call listIncomingNumbersValidateBeforeCall( String country, String applicationId, Boolean hasApplication, - Boolean voiceEnabled, - Boolean smsEnabled, Boolean hasCampaign, Boolean capabilitiesVoice, Boolean capabilitiesSms, @@ -7669,8 +8322,6 @@ private okhttp3.Call listIncomingNumbersValidateBeforeCall( country, applicationId, hasApplication, - voiceEnabled, - smsEnabled, hasCampaign, capabilitiesVoice, capabilitiesSms, @@ -7697,10 +8348,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 +8375,6 @@ public IncomingNumberList listIncomingNumbers( String country, String applicationId, Boolean hasApplication, - Boolean voiceEnabled, - Boolean smsEnabled, Boolean hasCampaign, Boolean capabilitiesVoice, Boolean capabilitiesSms, @@ -7747,8 +8392,6 @@ public IncomingNumberList listIncomingNumbers( country, applicationId, hasApplication, - voiceEnabled, - smsEnabled, hasCampaign, capabilitiesVoice, capabilitiesSms, @@ -7774,10 +8417,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 +8444,6 @@ public ApiResponse listIncomingNumbersWithHttpInfo( String country, String applicationId, Boolean hasApplication, - Boolean voiceEnabled, - Boolean smsEnabled, Boolean hasCampaign, Boolean capabilitiesVoice, Boolean capabilitiesSms, @@ -7824,8 +8461,6 @@ public ApiResponse listIncomingNumbersWithHttpInfo( country, applicationId, hasApplication, - voiceEnabled, - smsEnabled, hasCampaign, capabilitiesVoice, capabilitiesSms, @@ -7853,10 +8488,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 +8516,6 @@ public okhttp3.Call listIncomingNumbersAsync( String country, String applicationId, Boolean hasApplication, - Boolean voiceEnabled, - Boolean smsEnabled, Boolean hasCampaign, Boolean capabilitiesVoice, Boolean capabilitiesSms, @@ -7906,8 +8535,6 @@ public okhttp3.Call listIncomingNumbersAsync( country, applicationId, hasApplication, - voiceEnabled, - smsEnabled, hasCampaign, capabilitiesVoice, capabilitiesSms, @@ -9054,6 +9681,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 +10042,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 +10393,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 +10430,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 +10486,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 +10504,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 +10525,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/TTSEngineName.java b/src/main/java/com/github/freeclimbapi/enums/TTSEngineName.java new file mode 100644 index 0000000..988102e --- /dev/null +++ b/src/main/java/com/github/freeclimbapi/enums/TTSEngineName.java @@ -0,0 +1,71 @@ +/* + * 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 engine to use for the TTS. The complete list of valid values for the engine attribute is + * shown below. + */ +@JsonAdapter(TTSEngineName.Adapter.class) +public enum TTSEngineName { + FREECLIMB_STANDARD("freeclimb.standard"), + + FREECLIMB_NEURAL("freeclimb.neural"), + + ELEVEN_LABS("ElevenLabs"); + + private String value; + + TTSEngineName(String value) { + this.value = value; + } + + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + public static TTSEngineName fromValue(String value) { + for (TTSEngineName b : TTSEngineName.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 TTSEngineName enumeration) + throws IOException { + jsonWriter.value(enumeration.getValue()); + } + + @Override + public TTSEngineName read(final JsonReader jsonReader) throws IOException { + String value = jsonReader.nextString(); + return TTSEngineName.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 dcd4d57..2a2f1b9 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 0000000..a1e2b76 --- /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 0000000..7182898 --- /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 0000000..2ad3df6 --- /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 f2820d2..88e91e7 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 0000000..a828d42 --- /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 0000000..0ac5a93 --- /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 0000000..f4ef8a0 --- /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 d1e9dce..9f455be 100644 --- a/src/main/java/com/github/freeclimbapi/models/Say.java +++ b/src/main/java/com/github/freeclimbapi/models/Say.java @@ -52,6 +52,11 @@ public static String getDiscriminatorValue() { @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) @@ -120,6 +125,27 @@ public void setLanguage(String language) { this.language = language; } + public Say engine(TTSEngine engine) { + + this.engine = engine; + return this; + } + + /** + * Get engine + * + * @return engine + */ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + public TTSEngine getEngine() { + return engine; + } + + public void setEngine(TTSEngine engine) { + this.engine = engine; + } + public Say loop(Integer loop) { this.loop = loop; @@ -181,6 +207,7 @@ 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) && super.equals(o); @@ -188,7 +215,7 @@ public boolean equals(Object o) { @Override public int hashCode() { - return Objects.hash(text, language, loop, privacyMode, super.hashCode()); + return Objects.hash(text, language, engine, loop, privacyMode, super.hashCode()); } @Override @@ -198,6 +225,7 @@ public String toString() { 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("}"); @@ -209,6 +237,7 @@ 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()); return attributes; diff --git a/src/main/java/com/github/freeclimbapi/models/TTSEngine.java b/src/main/java/com/github/freeclimbapi/models/TTSEngine.java new file mode 100644 index 0000000..85888cf --- /dev/null +++ b/src/main/java/com/github/freeclimbapi/models/TTSEngine.java @@ -0,0 +1,134 @@ +/* + * 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.HashMap; +import java.util.Map; +import java.util.Objects; + +/** TTSEngine */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +public class TTSEngine { + public static String getDiscriminatorValue() { + return null; + } + + public static final String SERIALIZED_NAME_NAME = "name"; + + @SerializedName(SERIALIZED_NAME_NAME) + private TTSEngineName name; + + public static final String SERIALIZED_NAME_PARAMETERS = "parameters"; + + @SerializedName(SERIALIZED_NAME_PARAMETERS) + private Map parameters = null; + + public TTSEngine() {} + + public TTSEngine name(TTSEngineName name) { + + this.name = name; + return this; + } + + /** + * Get name + * + * @return name + */ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + public TTSEngineName getName() { + return name; + } + + public void setName(TTSEngineName name) { + this.name = name; + } + + 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; + } + + /** + * 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 = + "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(Map parameters) { + this.parameters = parameters; + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + TTSEngine ttSEngine = (TTSEngine) o; + return Objects.equals(this.name, ttSEngine.name) + && Objects.equals(this.parameters, ttSEngine.parameters); + } + + @Override + public int hashCode() { + return Objects.hash(name, parameters); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class TTSEngine {\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/test/java/com/github/freeclimbapi/api/DefaultApiTest.java b/src/test/java/com/github/freeclimbapi/api/DefaultApiTest.java index a22a530..be036cf 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,25 @@ 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(); + + BlobResult response = this.apiInstance.deleteBlob(blobId); + // TODO: test validations + assertEquals(response.getClass(), BlobResult.class); + } + /** * Dequeue a Member * @@ -438,6 +474,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 +711,22 @@ 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 { + + BlobListResponse response = this.apiInstance.listBlobs(); + // TODO: test validations + assertEquals(response.getClass(), BlobListResponse.class); + } + /** * List Call Logs * @@ -813,10 +882,6 @@ public void listIncomingNumbersTest() throws ApiException { Boolean hasApplication = hasApplicationBooleanTestValue(); - Boolean voiceEnabled = voiceEnabledBooleanTestValue(); - - Boolean smsEnabled = smsEnabledBooleanTestValue(); - Boolean hasCampaign = hasCampaignBooleanTestValue(); Boolean capabilitiesVoice = capabilitiesVoiceBooleanTestValue(); @@ -841,8 +906,6 @@ public void listIncomingNumbersTest() throws ApiException { country, applicationId, hasApplication, - voiceEnabled, - smsEnabled, hasCampaign, capabilitiesVoice, capabilitiesSms, @@ -972,6 +1035,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 +1071,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 +1258,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" + "\\}", + "AC0123456789abcdefABCDEF0123456789abcdef00"); response.setNextPageUri(localVarNextPageUri + "?cursor=1"); LogList nextPageResponse = this.apiInstance.getNextPage(response); assertEquals(nextPageResponse.getClass(), LogList.class); @@ -1174,7 +1278,9 @@ public void getTenDLCSmsBrandsGetNextPageTest() throws ApiException { SMSTenDLCBrandsListResult response = this.apiInstance.getTenDLCSmsBrands(); String localVarNextPageUri = "/Accounts/{accountId}/Messages/10DLC/Brands" - .replaceAll("\\{" + "accountId" + "\\}", "MOCK"); + .replaceAll( + "\\{" + "accountId" + "\\}", + "AC0123456789abcdefABCDEF0123456789abcdef00"); response.setNextPageUri(localVarNextPageUri + "?cursor=1"); SMSTenDLCBrandsListResult nextPageResponse = this.apiInstance.getNextPage(response); assertEquals(nextPageResponse.getClass(), SMSTenDLCBrandsListResult.class); @@ -1193,7 +1299,9 @@ public void getTenDLCSmsCampaignsGetNextPageTest() throws ApiException { SMSTenDLCCampaignsListResult response = this.apiInstance.getTenDLCSmsCampaigns(brandId); String localVarNextPageUri = "/Accounts/{accountId}/Messages/10DLC/Campaigns" - .replaceAll("\\{" + "accountId" + "\\}", "MOCK"); + .replaceAll( + "\\{" + "accountId" + "\\}", + "AC0123456789abcdefABCDEF0123456789abcdef00"); response.setNextPageUri(localVarNextPageUri + "?cursor=1"); SMSTenDLCCampaignsListResult nextPageResponse = this.apiInstance.getNextPage(response); assertEquals(nextPageResponse.getClass(), SMSTenDLCCampaignsListResult.class); @@ -1213,7 +1321,9 @@ public void getTenDLCSmsPartnerCampaignsGetNextPageTest() throws ApiException { this.apiInstance.getTenDLCSmsPartnerCampaigns(brandId); String localVarNextPageUri = "/Accounts/{accountId}/Messages/10DLC/PartnerCampaigns" - .replaceAll("\\{" + "accountId" + "\\}", "MOCK"); + .replaceAll( + "\\{" + "accountId" + "\\}", + "AC0123456789abcdefABCDEF0123456789abcdef00"); response.setNextPageUri(localVarNextPageUri + "?cursor=1"); SMSTenDLCPartnerCampaignsListResult nextPageResponse = this.apiInstance.getNextPage(response); @@ -1231,7 +1341,9 @@ public void getTollFreeSmsCampaignsGetNextPageTest() throws ApiException { SMSTollFreeCampaignsListResult response = this.apiInstance.getTollFreeSmsCampaigns(); String localVarNextPageUri = "/Accounts/{accountId}/Messages/TollFree/Campaigns" - .replaceAll("\\{" + "accountId" + "\\}", "MOCK"); + .replaceAll( + "\\{" + "accountId" + "\\}", + "AC0123456789abcdefABCDEF0123456789abcdef00"); response.setNextPageUri(localVarNextPageUri + "?cursor=1"); SMSTollFreeCampaignsListResult nextPageResponse = this.apiInstance.getNextPage(response); assertEquals(nextPageResponse.getClass(), SMSTollFreeCampaignsListResult.class); @@ -1249,7 +1361,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" + "\\}", + "AC0123456789abcdefABCDEF0123456789abcdef00"); response.setNextPageUri(localVarNextPageUri + "?cursor=1"); QueueList nextPageResponse = this.apiInstance.getNextPage(response); assertEquals(nextPageResponse.getClass(), QueueList.class); @@ -1265,7 +1380,10 @@ public void listAllAccountLogsGetNextPageTest() throws ApiException { LogList response = this.apiInstance.listAllAccountLogs(); String localVarNextPageUri = - "/Accounts/{accountId}/Logs".replaceAll("\\{" + "accountId" + "\\}", "MOCK"); + "/Accounts/{accountId}/Logs" + .replaceAll( + "\\{" + "accountId" + "\\}", + "AC0123456789abcdefABCDEF0123456789abcdef00"); response.setNextPageUri(localVarNextPageUri + "?cursor=1"); LogList nextPageResponse = this.apiInstance.getNextPage(response); assertEquals(nextPageResponse.getClass(), LogList.class); @@ -1284,7 +1402,9 @@ public void listApplicationsGetNextPageTest() throws ApiException { ApplicationList response = this.apiInstance.listApplications(alias); String localVarNextPageUri = "/Accounts/{accountId}/Applications" - .replaceAll("\\{" + "accountId" + "\\}", "MOCK"); + .replaceAll( + "\\{" + "accountId" + "\\}", + "AC0123456789abcdefABCDEF0123456789abcdef00"); response.setNextPageUri(localVarNextPageUri + "?cursor=1"); ApplicationList nextPageResponse = this.apiInstance.getNextPage(response); assertEquals(nextPageResponse.getClass(), ApplicationList.class); @@ -1336,6 +1456,28 @@ 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 { + + BlobListResponse response = this.apiInstance.listBlobs(); + String localVarNextPageUri = + "/Accounts/{accountId}/Blobs" + .replaceAll( + "\\{" + "accountId" + "\\}", + "AC0123456789abcdefABCDEF0123456789abcdef00"); + 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 +1491,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" + "\\}", + "AC0123456789abcdefABCDEF0123456789abcdef00") + .replaceAll( + "\\{" + "callId" + "\\}", + "AC0123456789abcdefABCDEF0123456789abcdef00"); response.setNextPageUri(localVarNextPageUri + "?cursor=1"); LogList nextPageResponse = this.apiInstance.getNextPage(response); assertEquals(nextPageResponse.getClass(), LogList.class); @@ -1371,8 +1517,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" + "\\}", + "AC0123456789abcdefABCDEF0123456789abcdef00") + .replaceAll( + "\\{" + "callId" + "\\}", + "AC0123456789abcdefABCDEF0123456789abcdef00"); response.setNextPageUri(localVarNextPageUri + "?cursor=1"); RecordingList nextPageResponse = this.apiInstance.getNextPage(response); assertEquals(nextPageResponse.getClass(), RecordingList.class); @@ -1419,7 +1569,10 @@ public void listCallsGetNextPageTest() throws ApiException { riskScoreMin, riskScoreMax); String localVarNextPageUri = - "/Accounts/{accountId}/Calls".replaceAll("\\{" + "accountId" + "\\}", "MOCK"); + "/Accounts/{accountId}/Calls" + .replaceAll( + "\\{" + "accountId" + "\\}", + "AC0123456789abcdefABCDEF0123456789abcdef00"); response.setNextPageUri(localVarNextPageUri + "?cursor=1"); CallList nextPageResponse = this.apiInstance.getNextPage(response); assertEquals(nextPageResponse.getClass(), CallList.class); @@ -1443,8 +1596,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" + "\\}", + "AC0123456789abcdefABCDEF0123456789abcdef00") + .replaceAll( + "\\{" + "conferenceId" + "\\}", + "AC0123456789abcdefABCDEF0123456789abcdef00"); response.setNextPageUri(localVarNextPageUri + "?cursor=1"); RecordingList nextPageResponse = this.apiInstance.getNextPage(response); assertEquals(nextPageResponse.getClass(), RecordingList.class); @@ -1469,7 +1626,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" + "\\}", + "AC0123456789abcdefABCDEF0123456789abcdef00"); response.setNextPageUri(localVarNextPageUri + "?cursor=1"); ConferenceList nextPageResponse = this.apiInstance.getNextPage(response); assertEquals(nextPageResponse.getClass(), ConferenceList.class); @@ -1489,7 +1649,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" + "\\}", + "AC0123456789abcdefABCDEF0123456789abcdef00"); response.setNextPageUri(localVarNextPageUri + "?cursor=1"); ExportList nextPageResponse = this.apiInstance.getNextPage(response); assertEquals(nextPageResponse.getClass(), ExportList.class); @@ -1515,10 +1678,6 @@ public void listIncomingNumbersGetNextPageTest() throws ApiException { Boolean hasApplication = hasApplicationBooleanTestValue(); - Boolean voiceEnabled = voiceEnabledBooleanTestValue(); - - Boolean smsEnabled = smsEnabledBooleanTestValue(); - Boolean hasCampaign = hasCampaignBooleanTestValue(); Boolean capabilitiesVoice = capabilitiesVoiceBooleanTestValue(); @@ -1543,8 +1702,6 @@ public void listIncomingNumbersGetNextPageTest() throws ApiException { country, applicationId, hasApplication, - voiceEnabled, - smsEnabled, hasCampaign, capabilitiesVoice, capabilitiesSms, @@ -1555,7 +1712,9 @@ public void listIncomingNumbersGetNextPageTest() throws ApiException { offnet); String localVarNextPageUri = "/Accounts/{accountId}/IncomingPhoneNumbers" - .replaceAll("\\{" + "accountId" + "\\}", "MOCK"); + .replaceAll( + "\\{" + "accountId" + "\\}", + "AC0123456789abcdefABCDEF0123456789abcdef00"); response.setNextPageUri(localVarNextPageUri + "?cursor=1"); IncomingNumberList nextPageResponse = this.apiInstance.getNextPage(response); assertEquals(nextPageResponse.getClass(), IncomingNumberList.class); @@ -1574,8 +1733,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" + "\\}", + "AC0123456789abcdefABCDEF0123456789abcdef00") + .replaceAll( + "\\{" + "queueId" + "\\}", + "AC0123456789abcdefABCDEF0123456789abcdef00"); response.setNextPageUri(localVarNextPageUri + "?cursor=1"); QueueMemberList nextPageResponse = this.apiInstance.getNextPage(response); assertEquals(nextPageResponse.getClass(), QueueMemberList.class); @@ -1601,8 +1764,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" + "\\}", + "AC0123456789abcdefABCDEF0123456789abcdef00") + .replaceAll( + "\\{" + "conferenceId" + "\\}", + "AC0123456789abcdefABCDEF0123456789abcdef00"); response.setNextPageUri(localVarNextPageUri + "?cursor=1"); ConferenceParticipantList nextPageResponse = this.apiInstance.getNextPage(response); assertEquals(nextPageResponse.getClass(), ConferenceParticipantList.class); @@ -1624,7 +1791,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" + "\\}", + "AC0123456789abcdefABCDEF0123456789abcdef00"); response.setNextPageUri(localVarNextPageUri + "?cursor=1"); RecordingList nextPageResponse = this.apiInstance.getNextPage(response); assertEquals(nextPageResponse.getClass(), RecordingList.class); @@ -1658,7 +1828,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" + "\\}", + "AC0123456789abcdefABCDEF0123456789abcdef00"); response.setNextPageUri(localVarNextPageUri + "?cursor=1"); MessagesList nextPageResponse = this.apiInstance.getNextPage(response); assertEquals(nextPageResponse.getClass(), MessagesList.class); @@ -2050,4 +2223,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/TTSEngineNameTest.java b/src/test/java/com/github/freeclimbapi/enums/TTSEngineNameTest.java new file mode 100644 index 0000000..63d5252 --- /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/ApplicationListTest.java b/src/test/java/com/github/freeclimbapi/models/ApplicationListTest.java index 93bad50..7bf46a2 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 67de0ba..fb61e41 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 c6540d8..144dc37 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 0000000..3fcc9b2 --- /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 0000000..8158381 --- /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 ab008e1..d9ffb35 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 ed75c5d..eee18e0 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 a9a8b57..b7e1b9f 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 0000000..4366940 --- /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 e66a13d..7d4e4cf 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 28a1d9b..fc4ede2 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 efa014e..42f3f27 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 01b3dd8..baa9c80 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 2c059e9..293585b 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 94c1f6d..1c1a5a5 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 01b6ec0..fd7de1c 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 12e7890..14257e3 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 b4132b3..b1d05cd 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 7b08f7a..15baea9 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 9bda2d0..e345482 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 0000000..09d83c9 --- /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 750b737..20a496d 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 0000000..9f6ff8a --- /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 22cd68b..20d081f 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 a667036..3dc33a1 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 511e104..dc7f2e4 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 0000000..0316c6a --- /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 cf28382..48dac28 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 eee10ba..c3118ee 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 4c9174e..0051586 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 764157f..086981c 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/SayTest.java b/src/test/java/com/github/freeclimbapi/models/SayTest.java index 78cf982..27d28c0 100644 --- a/src/test/java/com/github/freeclimbapi/models/SayTest.java +++ b/src/test/java/com/github/freeclimbapi/models/SayTest.java @@ -40,6 +40,15 @@ public void languageTest() { Assert.assertEquals("TEST_STRING", model.getLanguage()); } + /** Test the property 'engine' */ + @Test + public void engineTest() { + + TTSEngine object = new TTSEngine(); + model.setEngine(object); + Assert.assertEquals(object.getClass(), TTSEngine.class); + } + /** Test the property 'loop' */ @Test public void loopTest() { @@ -64,6 +73,9 @@ public void equalsTrueTest() { test1.setLanguage("TS"); + TTSEngine testTTSEngineObject = new TTSEngine(); + test1.setEngine(testTTSEngineObject); + test1.setLoop(1); test1.setPrivacyMode(true); @@ -74,6 +86,9 @@ public void equalsTrueTest() { test2.setLanguage("TS"); + TTSEngine testTTSEngineObject2 = testTTSEngineObject; + test2.setEngine(testTTSEngineObject2); + test2.setLoop(1); test2.setPrivacyMode(true); @@ -90,6 +105,9 @@ public void equalsFalseTest() { test1.setLanguage("TS"); + TTSEngine testTTSEngineObject = new TTSEngine(); + test1.setEngine(testTTSEngineObject); + test1.setLoop(1); test1.setPrivacyMode(true); @@ -100,6 +118,9 @@ public void equalsFalseTest() { test2.setLanguage("TS2"); + TTSEngine testTTSEngineObject2 = new TTSEngine(); + test2.setEngine(testTTSEngineObject2); + test2.setLoop(0); test2.setPrivacyMode(false); @@ -116,6 +137,9 @@ public void hashCodeTypeTest() { test1.setLanguage("TS"); + TTSEngine testTTSEngineObject = new TTSEngine(); + test1.setEngine(testTTSEngineObject); + test1.setLoop(1); test1.setPrivacyMode(true); @@ -133,6 +157,9 @@ public void toStringEqualsTest() { test1.setLanguage("TS"); + TTSEngine testTTSEngineObject = new TTSEngine(); + test1.setEngine(testTTSEngineObject); + test1.setLoop(1); test1.setPrivacyMode(true); @@ -143,6 +170,9 @@ public void toStringEqualsTest() { test2.setLanguage("TS"); + TTSEngine testTTSEngineObject2 = testTTSEngineObject; + test2.setEngine(testTTSEngineObject2); + test2.setLoop(1); test2.setPrivacyMode(true); @@ -161,6 +191,9 @@ public void hashCodeEqualsTrueTest() { test1.setLanguage("TS"); + TTSEngine testTTSEngineObject = new TTSEngine(); + test1.setEngine(testTTSEngineObject); + test1.setLoop(1); test1.setPrivacyMode(true); @@ -171,6 +204,9 @@ public void hashCodeEqualsTrueTest() { test2.setLanguage("TS"); + TTSEngine testTTSEngineObject2 = testTTSEngineObject; + test2.setEngine(testTTSEngineObject2); + test2.setLoop(1); test2.setPrivacyMode(true); @@ -187,6 +223,9 @@ public void hashCodeEqualsFalseTest() { test1.setLanguage("TS"); + TTSEngine testTTSEngineObject = new TTSEngine(); + test1.setEngine(testTTSEngineObject); + test1.setLoop(1); test1.setPrivacyMode(true); @@ -197,6 +236,9 @@ public void hashCodeEqualsFalseTest() { test2.setLanguage("TS2"); + TTSEngine testTTSEngineObject2 = new TTSEngine(); + test2.setEngine(testTTSEngineObject2); + test2.setLoop(0); test2.setPrivacyMode(false); @@ -213,6 +255,9 @@ public void toStringTypeTest() { test1.setLanguage("TS"); + TTSEngine testTTSEngineObject = new TTSEngine(); + test1.setEngine(testTTSEngineObject); + test1.setLoop(1); test1.setPrivacyMode(true); @@ -240,6 +285,7 @@ public void buildTest() throws Exception { 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()); } 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 0000000..0a680ee --- /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)); + } +} diff --git a/src/test/java/com/github/freeclimbapi/models/TranscribeUtteranceTest.java b/src/test/java/com/github/freeclimbapi/models/TranscribeUtteranceTest.java index 5d511f6..d574088 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));