-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #19 from team-telnyx/2.3.0-prod
production SDK release
- Loading branch information
Showing
285 changed files
with
68,668 additions
and
16,168 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
|
||
|
||
# AnchorsiteOverride | ||
|
||
## Enum | ||
|
||
|
||
* `LATENCY` (value: `"Latency"`) | ||
|
||
* `CHICAGO_IL` (value: `"Chicago, IL"`) | ||
|
||
* `ASHBURN_VA` (value: `"Ashburn, VA"`) | ||
|
||
* `SAN_JOSE_CA` (value: `"San Jose, CA"`) | ||
|
||
* `SYDNEY_AUSTRALIA` (value: `"Sydney, Australia"`) | ||
|
||
* `AMSTERDAM_NETHERLANDS` (value: `"Amsterdam, Netherlands"`) | ||
|
||
* `LONDON_UK` (value: `"London, UK"`) | ||
|
||
* `TORONTO_CANADA` (value: `"Toronto, Canada"`) | ||
|
||
* `VANCOUVER_CANADA` (value: `"Vancouver, Canada"`) | ||
|
||
* `FRANKFURT_GERMANY` (value: `"Frankfurt, Germany"`) | ||
|
||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
|
||
|
||
# Connection | ||
|
||
## Properties | ||
|
||
Name | Type | Description | Notes | ||
------------ | ------------- | ------------- | ------------- | ||
**id** | **String** | Identifies the specific resource. | [optional] | ||
**recordType** | **String** | Identifies the type of the resource. | [optional] | ||
**active** | **Boolean** | Defaults to true | [optional] | ||
**anchorsiteOverride** | [**AnchorsiteOverride**](AnchorsiteOverride.md) | | [optional] | ||
**connectionName** | **String** | | [optional] | ||
**createdAt** | **String** | ISO 8601 formatted date indicating when the resource was created. | [optional] | ||
**updatedAt** | **String** | ISO 8601 formatted date indicating when the resource was updated. | [optional] | ||
**webhookEventUrl** | **String** | The URL where webhooks related to this connection will be sent. | [optional] | ||
**webhookEventFailoverUrl** | **String** | The failover URL where webhooks related to this connection will be sent if sending to the primary URL fails. | [optional] | ||
**webhookApiVersion** | [**WebhookApiVersionEnum**](#WebhookApiVersionEnum) | Determines which webhook format will be used, Telnyx API v1 or v2. | [optional] | ||
**outboundVoiceProfileId** | **String** | Identifies the associated outbound voice profile. | [optional] | ||
|
||
|
||
|
||
## Enum: WebhookApiVersionEnum | ||
|
||
Name | Value | ||
---- | ----- | ||
_1 | "1" | ||
_2 | "2" | ||
|
||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
|
||
|
||
# ConnectionResponse | ||
|
||
## Properties | ||
|
||
Name | Type | Description | Notes | ||
------------ | ------------- | ------------- | ------------- | ||
**data** | [**Connection**](Connection.md) | | [optional] | ||
|
||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
|
||
|
||
# ConnectionRtcpSettings | ||
|
||
## Properties | ||
|
||
Name | Type | Description | Notes | ||
------------ | ------------- | ------------- | ------------- | ||
**port** | [**PortEnum**](#PortEnum) | RTCP port by default is rtp+1, it can also be set to rtcp-mux | [optional] | ||
**captureEnabled** | **Boolean** | BETA - Enable the capture and storage of RTCP messages to create QoS reports on the Telnyx Mission Control Portal. | [optional] | ||
**reportFrequencySecs** | **Integer** | RTCP reports are sent to customers based on the frequency set. Frequency is in seconds and it can be set to values from 5 to 3000 seconds. | [optional] | ||
|
||
|
||
|
||
## Enum: PortEnum | ||
|
||
Name | Value | ||
---- | ----- | ||
RTCP_MUX | "rtcp-mux" | ||
RTP_1 | "rtp+1" | ||
|
||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,170 @@ | ||
# ConnectionsApi | ||
|
||
All URIs are relative to *https://api.telnyx.com/v2* | ||
|
||
Method | HTTP request | Description | ||
------------- | ------------- | ------------- | ||
[**listConnections**](ConnectionsApi.md#listConnections) | **GET** /connections | List connections | ||
[**retrieveConnection**](ConnectionsApi.md#retrieveConnection) | **GET** /connections/{id} | Retrieve a connection | ||
|
||
|
||
|
||
## listConnections | ||
|
||
> ListConnectionsResponse listConnections().pageNumber(pageNumber).pageSize(pageSize).filterConnectionNameContains(filterConnectionNameContains).filterOutboundVoiceProfileId(filterOutboundVoiceProfileId).sort(sort).execute(); | ||
List connections | ||
|
||
Returns a list of your connections irrespective of type. | ||
|
||
### Example | ||
|
||
```java | ||
// Import classes: | ||
import com.telnyx.sdk.ApiClient; | ||
import com.telnyx.sdk.ApiException; | ||
import com.telnyx.sdk.Configuration; | ||
import com.telnyx.sdk.auth.*; | ||
import com.telnyx.sdk.model.*; | ||
import com.telnyx.sdk.api.ConnectionsApi; | ||
|
||
public class Example { | ||
public static void main(String[] args) { | ||
ApiClient defaultClient = Configuration.getDefaultApiClient(); | ||
defaultClient.setBasePath("https://api.telnyx.com/v2"); | ||
|
||
// Configure HTTP bearer authorization: bearerAuth | ||
HttpBearerAuth bearerAuth = (HttpBearerAuth) defaultClient.getAuthentication("bearerAuth"); | ||
bearerAuth.setBearerToken("BEARER TOKEN"); | ||
|
||
ConnectionsApi apiInstance = new ConnectionsApi(defaultClient); | ||
Integer pageNumber = 1; // Integer | The page number to load. | ||
Integer pageSize = 20; // Integer | The size of the page. | ||
String filterConnectionNameContains = "\"null\""; // String | If present, connections with <code>connection_name</code> containing the given value will be returned. Matching is not case-sensitive. Requires at least three characters. | ||
String filterOutboundVoiceProfileId = 1293384261075731499; // String | Identifies the associated outbound voice profile. | ||
String sort = connection_name; // String | Specifies the sort order for results. By default sorting direction is ascending. To have the results sorted in descending order add the <code> -</code> prefix.<br/><br/> That is: <ul> <li> <code>connection_name</code>: sorts the result by the <code>connection_name</code> field in ascending order. </li> <li> <code>-connection_name</code>: sorts the result by the <code>connection_name</code> field in descending order. </li> </ul> <br/> If not given, results are sorted by <code>created_at</code> in descending order. | ||
try { | ||
ListConnectionsResponse result = api.listConnections() | ||
.pageNumber(pageNumber) | ||
.pageSize(pageSize) | ||
.filterConnectionNameContains(filterConnectionNameContains) | ||
.filterOutboundVoiceProfileId(filterOutboundVoiceProfileId) | ||
.sort(sort) | ||
.execute(); | ||
System.out.println(result); | ||
} catch (ApiException e) { | ||
System.err.println("Exception when calling ConnectionsApi#listConnections"); | ||
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 | ||
------------- | ------------- | ------------- | ------------- | ||
**pageNumber** | **Integer**| The page number to load. | [optional] [default to 1] | ||
**pageSize** | **Integer**| The size of the page. | [optional] [default to 20] | ||
**filterConnectionNameContains** | **String**| If present, connections with <code>connection_name</code> containing the given value will be returned. Matching is not case-sensitive. Requires at least three characters. | [optional] [default to "null"] | ||
**filterOutboundVoiceProfileId** | **String**| Identifies the associated outbound voice profile. | [optional] | ||
**sort** | **String**| Specifies the sort order for results. By default sorting direction is ascending. To have the results sorted in descending order add the <code> -</code> prefix.<br/><br/> That is: <ul> <li> <code>connection_name</code>: sorts the result by the <code>connection_name</code> field in ascending order. </li> <li> <code>-connection_name</code>: sorts the result by the <code>connection_name</code> field in descending order. </li> </ul> <br/> If not given, results are sorted by <code>created_at</code> in descending order. | [optional] [default to created_at] [enum: created_at, connection_name, active] | ||
|
||
### Return type | ||
|
||
[**ListConnectionsResponse**](ListConnectionsResponse.md) | ||
|
||
### Authorization | ||
|
||
[bearerAuth](../README.md#bearerAuth) | ||
|
||
### HTTP request headers | ||
|
||
- **Content-Type**: Not defined | ||
- **Accept**: application/json | ||
|
||
### HTTP response details | ||
| Status code | Description | Response headers | | ||
|-------------|-------------|------------------| | ||
| **200** | Successful response with a list of connections. | - | | ||
| **400** | Bad request | - | | ||
| **401** | Unauthorized | - | | ||
| **404** | Resource not found | - | | ||
|
||
|
||
## retrieveConnection | ||
|
||
> ConnectionResponse retrieveConnection(id) | ||
Retrieve a connection | ||
|
||
Retrieves the high-level details of an existing connection. To retrieve specific authentication information, use the endpoint for the specific connection type. | ||
|
||
### Example | ||
|
||
```java | ||
// Import classes: | ||
import com.telnyx.sdk.ApiClient; | ||
import com.telnyx.sdk.ApiException; | ||
import com.telnyx.sdk.Configuration; | ||
import com.telnyx.sdk.auth.*; | ||
import com.telnyx.sdk.model.*; | ||
import com.telnyx.sdk.api.ConnectionsApi; | ||
|
||
public class Example { | ||
public static void main(String[] args) { | ||
ApiClient defaultClient = Configuration.getDefaultApiClient(); | ||
defaultClient.setBasePath("https://api.telnyx.com/v2"); | ||
|
||
// Configure HTTP bearer authorization: bearerAuth | ||
HttpBearerAuth bearerAuth = (HttpBearerAuth) defaultClient.getAuthentication("bearerAuth"); | ||
bearerAuth.setBearerToken("BEARER TOKEN"); | ||
|
||
ConnectionsApi apiInstance = new ConnectionsApi(defaultClient); | ||
String id = "id_example"; // String | IP Connection ID | ||
try { | ||
ConnectionResponse result = apiInstance.retrieveConnection(id); | ||
System.out.println(result); | ||
} catch (ApiException e) { | ||
System.err.println("Exception when calling ConnectionsApi#retrieveConnection"); | ||
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 | ||
------------- | ------------- | ------------- | ------------- | ||
**id** | **String**| IP Connection ID | | ||
|
||
### Return type | ||
|
||
[**ConnectionResponse**](ConnectionResponse.md) | ||
|
||
### Authorization | ||
|
||
[bearerAuth](../README.md#bearerAuth) | ||
|
||
### HTTP request headers | ||
|
||
- **Content-Type**: Not defined | ||
- **Accept**: application/json | ||
|
||
### HTTP response details | ||
| Status code | Description | Response headers | | ||
|-------------|-------------|------------------| | ||
| **200** | Successful response with details about a connection. | - | | ||
| **401** | Unauthorized | - | | ||
| **404** | Resource not found | - | | ||
| **422** | Bad request | - | | ||
|
Oops, something went wrong.