-
Notifications
You must be signed in to change notification settings - Fork 5.9k
Adding new API version that includes Anycast option (RouteType) #16040
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from 1 commit
Commits
Show all changes
7 commits
Select commit
Hold shift + click to select a range
6901ec5
Making user identity not required and adding Routype
AriZavala2 45a54c6
Make the request and routeType not to be required
AriZavala2 cce947b
Update readme with new tags for API version
AriZavala2 6e979c6
Prettier fix for json
AriZavala2 018a599
Only making the AnyCast change. The non-identity will be a separate c…
AriZavala2 262ff8b
Update removing identity requirement
AriZavala2 6b0491d
Update enum to correct version
AriZavala2 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
169 changes: 169 additions & 0 deletions
169
...data-plane/NetworkTraversal/preview/2021-09-15-preview/CommunicationNetworkTraversal.json
This file contains hidden or 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,169 @@ | ||
| { | ||
| "swagger": "2.0", | ||
| "info": { | ||
| "title": "CommunicationNetworkingClient", | ||
| "description": "Azure Communication Networking Service", | ||
| "version": "2021-09-15-preview" | ||
| }, | ||
| "paths": { | ||
| "/networktraversal/:issueRelayConfiguration": { | ||
| "post": { | ||
| "tags": [ | ||
| "Turn" | ||
| ], | ||
| "summary": "Issue a configuration for an STUN/TURN server for an existing identity.", | ||
| "operationId": "CommunicationNetworkTraversal_IssueRelayConfiguration", | ||
| "consumes": [ | ||
| "application/json" | ||
| ], | ||
| "produces": [ | ||
| "application/json" | ||
| ], | ||
| "parameters": [ | ||
| { | ||
| "$ref": "#/parameters/ApiVersionParameter" | ||
| }, | ||
| { | ||
| "in": "body", | ||
| "name": "body", | ||
| "required": true, | ||
| "schema": { | ||
| "$ref": "#/definitions/CommunicationRelayConfigurationRequest" | ||
| } | ||
| } | ||
| ], | ||
| "responses": { | ||
| "200": { | ||
| "description": "Success", | ||
| "schema": { | ||
| "$ref": "#/definitions/CommunicationRelayConfiguration" | ||
| } | ||
| }, | ||
| "default": { | ||
| "description": "Error", | ||
| "schema": { | ||
| "$ref": "../../../Common/stable/2021-03-07/common.json#/definitions/CommunicationErrorResponse" | ||
| } | ||
| } | ||
| }, | ||
| "x-ms-examples": { | ||
| "Issue Relay Configuration": { | ||
| "$ref": "./examples/IssueRelayConfiguration.json" | ||
| } | ||
| } | ||
| } | ||
| } | ||
| }, | ||
| "definitions": { | ||
| "CommunicationRelayConfigurationRequest": { | ||
| "description": "Request for a CommunicationRelayConfiguration.", | ||
| "required": [ | ||
| "routeType" | ||
| ], | ||
| "type": "object", | ||
| "properties": { | ||
| "id": { | ||
| "description": "An existing ACS identity.", | ||
| "type": "string" | ||
| }, | ||
| "routeType": { | ||
| "description": "The routing methodology to where the ICE server will be located from the client.", | ||
| "type": "string", | ||
| "default": "any", | ||
| "enum": ["any", "nearest"] | ||
| } | ||
| } | ||
| }, | ||
| "CommunicationIceServer": { | ||
| "description": "An instance of a STUN/TURN server with credentials to be used for ICE negotiation.", | ||
| "required": [ | ||
| "credential", | ||
| "urls", | ||
| "username", | ||
| "routeType" | ||
| ], | ||
| "type": "object", | ||
| "properties": { | ||
| "urls": { | ||
| "description": "List of STUN/TURN server URLs.", | ||
| "type": "array", | ||
| "items": { | ||
| "type": "string" | ||
| } | ||
| }, | ||
| "username": { | ||
| "description": "User account name which uniquely identifies the credentials.", | ||
| "type": "string" | ||
| }, | ||
| "credential": { | ||
| "description": "Credential for the server.", | ||
| "type": "string" | ||
| }, | ||
| "routeType": { | ||
| "description": "The routing methodology to where the ICE server will be located from the client.", | ||
| "type": "string", | ||
| "enum": ["any", "nearest"] | ||
| } | ||
| } | ||
| }, | ||
| "CommunicationRelayConfiguration": { | ||
| "description": "A relay configuration containing the STUN/TURN URLs and credentials.", | ||
| "required": [ | ||
| "expiresOn", | ||
| "iceServers" | ||
| ], | ||
| "type": "object", | ||
| "properties": { | ||
| "expiresOn": { | ||
| "format": "date-time", | ||
| "description": "The date for which the username and credentials are not longer valid.", | ||
| "type": "string" | ||
| }, | ||
| "iceServers": { | ||
| "description": "An array representing the credentials and the STUN/TURN server URLs for use in ICE negotiations.", | ||
| "type": "array", | ||
| "items": { | ||
| "$ref": "#/definitions/CommunicationIceServer" | ||
| } | ||
| } | ||
| } | ||
| } | ||
| }, | ||
| "parameters": { | ||
| "ApiVersionParameter": { | ||
| "in": "query", | ||
| "name": "api-version", | ||
| "description": "Version of API to invoke.", | ||
| "required": true, | ||
| "enum": [ | ||
| "2021-06-21-preview" | ||
| ], | ||
| "type": "string" | ||
| } | ||
| }, | ||
| "securityDefinitions": { | ||
| "azure_auth": { | ||
| "type": "oauth2", | ||
| "flow": "implicit", | ||
| "authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize", | ||
| "scopes": { | ||
| "user_impersonation": "impersonate your user account" | ||
| } | ||
| } | ||
| }, | ||
| "x-ms-parameterized-host": { | ||
| "hostTemplate": "{endpoint}", | ||
| "useSchemePrefix": false, | ||
| "parameters": [ | ||
| { | ||
| "name": "endpoint", | ||
| "description": "The communication resource, for example https://my-resource.communication.azure.com", | ||
| "required": true, | ||
| "type": "string", | ||
| "in": "path", | ||
| "x-ms-skip-url-encoding": true, | ||
| "x-ms-parameter-location": "client" | ||
| } | ||
| ] | ||
| } | ||
| } | ||
27 changes: 27 additions & 0 deletions
27
...a-plane/NetworkTraversal/preview/2021-09-15-preview/examples/IssueRelayConfiguration.json
This file contains hidden or 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,27 @@ | ||
| { | ||
| "parameters": { | ||
| "api-version": "2021-09-15-preview", | ||
| "content-type": "application/json", | ||
| "body": { | ||
| "id": "8:acs:2dee53b4-368b-45b4-ab52-8493fb117652_00000005-14a2-493b-8a72-5a3a0d000081" | ||
| }, | ||
| "endpoint": "https://my-resource.communication.azure.com" | ||
| }, | ||
| "responses": { | ||
| "200": { | ||
| "body": { | ||
| "expiresOn": "2020-09-10T21:39:39.3244584+00:00", | ||
| "iceServers": [ | ||
| { | ||
| "urls": [ | ||
| "turn:131.107.255.255:3478", "stun:131.107.255.255:3478" | ||
| ], | ||
| "username": "AgAAJNOeygwB1uVGvuwAVMHV4PLhYDgY66Fg1dUZvQ4AAAAEhXrhc8uJFjOK8lxEsZk3KIpWxc0=", | ||
| "credential": "9rl8ablFWj6/aqSuPLgLykLZKqw=", | ||
| "routeType": "any" | ||
| } | ||
| ] | ||
| } | ||
| } | ||
| } | ||
| } |
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.