Skip to content

Commit

Permalink
Update version
Browse files Browse the repository at this point in the history
  • Loading branch information
vicancy committed Sep 9, 2021
1 parent d72e838 commit 40a3903
Show file tree
Hide file tree
Showing 2 changed files with 108 additions and 43 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"swagger": "2.0",
"info": {
"title": "Azure Web PubSub Service REST API",
"version": "2021-08-01-preview"
"version": "2021-09-01-preview"
},
"paths": {
"/api/health": {
Expand All @@ -18,7 +18,7 @@
"name": "api-version",
"description": "The version of the REST APIs.",
"type": "string",
"default": "2021-05-01-preview"
"default": "2021-09-01-preview"
}
],
"responses": {
Expand Down Expand Up @@ -57,8 +57,7 @@
"in": "query",
"name": "userId",
"description": "User Id.",
"type": "string",
"default": ""
"type": "string"
},
{
"in": "query",
Expand All @@ -83,7 +82,7 @@
"name": "api-version",
"description": "The version of the REST APIs.",
"type": "string",
"default": "2021-05-01-preview"
"default": "2021-09-01-preview"
}
],
"responses": {
Expand Down Expand Up @@ -136,7 +135,7 @@
"name": "api-version",
"description": "The version of the REST APIs.",
"type": "string",
"default": "2021-05-01-preview"
"default": "2021-09-01-preview"
},
{
"in": "body",
Expand Down Expand Up @@ -189,7 +188,7 @@
"name": "api-version",
"description": "The version of the REST APIs.",
"type": "string",
"default": "2021-05-01-preview"
"default": "2021-09-01-preview"
}
],
"responses": {
Expand Down Expand Up @@ -239,7 +238,7 @@
"name": "api-version",
"description": "The version of the REST APIs.",
"type": "string",
"default": "2021-05-01-preview"
"default": "2021-09-01-preview"
}
],
"responses": {
Expand Down Expand Up @@ -287,7 +286,7 @@
"name": "api-version",
"description": "The version of the REST APIs.",
"type": "string",
"default": "2021-05-01-preview"
"default": "2021-09-01-preview"
},
{
"in": "body",
Expand Down Expand Up @@ -341,7 +340,7 @@
"name": "api-version",
"description": "The version of the REST APIs.",
"type": "string",
"default": "2021-05-01-preview"
"default": "2021-09-01-preview"
}
],
"responses": {
Expand Down Expand Up @@ -403,7 +402,7 @@
"name": "api-version",
"description": "The version of the REST APIs.",
"type": "string",
"default": "2021-05-01-preview"
"default": "2021-09-01-preview"
},
{
"in": "body",
Expand Down Expand Up @@ -465,7 +464,7 @@
"name": "api-version",
"description": "The version of the REST APIs.",
"type": "string",
"default": "2021-05-01-preview"
"default": "2021-09-01-preview"
}
],
"responses": {
Expand Down Expand Up @@ -518,7 +517,7 @@
"name": "api-version",
"description": "The version of the REST APIs.",
"type": "string",
"default": "2021-05-01-preview"
"default": "2021-09-01-preview"
}
],
"responses": {
Expand Down Expand Up @@ -561,7 +560,7 @@
"name": "api-version",
"description": "The version of the REST APIs.",
"type": "string",
"default": "2021-05-01-preview"
"default": "2021-09-01-preview"
}
],
"responses": {
Expand Down Expand Up @@ -612,7 +611,7 @@
"name": "api-version",
"description": "The version of the REST APIs.",
"type": "string",
"default": "2021-05-01-preview"
"default": "2021-09-01-preview"
},
{
"in": "body",
Expand All @@ -636,6 +635,63 @@
}
}
},
"/api/hubs/{hub}/users/{userId}/:closeConnections": {
"post": {
"tags": [
"webpubsub"
],
"summary": "Closes the connections belonging to the user.",
"operationId": "WebPubSub_CloseUserConnections",
"parameters": [
{
"in": "path",
"name": "hub",
"description": "Target hub name, which should start with alphabetic characters and only contain alpha-numeric characters or underscore.",
"required": true,
"type": "string",
"pattern": "^[A-Za-z][A-Za-z0-9_`,.[\\]]{0,127}$"
},
{
"in": "query",
"name": "excluded",
"description": "Exclude these connectionIds when closing the connections for the user.",
"type": "array",
"items": {
"type": "string"
},
"collectionFormat": "multi"
},
{
"in": "query",
"name": "reason",
"description": "The reason closing the client connection.",
"type": "string"
},
{
"in": "path",
"name": "userId",
"required": true,
"type": "string"
},
{
"in": "query",
"name": "api-version",
"description": "The version of the REST APIs.",
"type": "string",
"default": "2021-09-01-preview"
}
],
"responses": {
"200": {
"description": "Success"
},
"default": {
"description": "Error response",
"x-ms-error-response": true
}
}
}
},
"/api/hubs/{hub}/users/{userId}/groups/{group}": {
"put": {
"tags": [
Expand Down Expand Up @@ -674,7 +730,7 @@
"name": "api-version",
"description": "The version of the REST APIs.",
"type": "string",
"default": "2021-05-01-preview"
"default": "2021-09-01-preview"
}
],
"responses": {
Expand Down Expand Up @@ -727,7 +783,7 @@
"name": "api-version",
"description": "The version of the REST APIs.",
"type": "string",
"default": "2021-05-01-preview"
"default": "2021-09-01-preview"
}
],
"responses": {
Expand Down Expand Up @@ -770,7 +826,7 @@
"name": "api-version",
"description": "The version of the REST APIs.",
"type": "string",
"default": "2021-05-01-preview"
"default": "2021-09-01-preview"
}
],
"responses": {
Expand Down Expand Up @@ -834,7 +890,7 @@
"name": "api-version",
"description": "The version of the REST APIs.",
"type": "string",
"default": "2021-05-01-preview"
"default": "2021-09-01-preview"
}
],
"responses": {
Expand Down Expand Up @@ -896,7 +952,7 @@
"name": "api-version",
"description": "The version of the REST APIs.",
"type": "string",
"default": "2021-05-01-preview"
"default": "2021-09-01-preview"
}
],
"responses": {
Expand Down Expand Up @@ -958,7 +1014,7 @@
"name": "api-version",
"description": "The version of the REST APIs.",
"type": "string",
"default": "2021-05-01-preview"
"default": "2021-09-01-preview"
}
],
"responses": {
Expand Down
53 changes: 31 additions & 22 deletions specification/webpubsub/data-plane/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,70 +4,79 @@
This is the AutoRest configuration file for Web PubSub Service.



---

## Getting Started

To build the SDK for Web PubSub Service, simply [Install AutoRest](https://aka.ms/autorest/install) and in this folder, run:

> `autorest`
To see additional help and options, run:

> `autorest --help`
---

## Configuration



### Basic Information

These are the global settings for the Web PubSub Service API.

``` yaml
```yaml
openapi-type: data-plane
tag: package-2021-08-01-preview
tag: package-2021-09-01-preview
```
### Suppression
``` yaml
```yaml
directive:
- suppress: LROStatusCodesReturnTypeSchema
reason: For this data plane API, it is not a long run operation and the status code indicates the results.
- suppress: XmsExamplesRequired
reason: There are a lot of APIs that does not have the example. While it is being worked upon disabling this to ensure that we catch and fix other violations
```
### Tag: package-2021-09-01-preview
These settings apply only when `--tag=package-2021-09-01-preview` is specified on the command line.

```yaml $(tag) == 'package-2021-09-01-preview'
input-file:
- WebPubSub/preview/2021-09-01-preview/webpubsub.json
title: AzureMessagingWebPubSubServiceClient
```

### Tag: package-2021-08-01-preview

These settings apply only when `--tag=package-2021-08-01-preview` is specified on the command line.

``` yaml $(tag) == 'package-2021-08-01-preview'
```yaml $(tag) == 'package-2021-08-01-preview'
input-file:
- WebPubSub/preview/2021-08-01-preview/webpubsub.json
- WebPubSub/preview/2021-08-01-preview/webpubsub.json
title: AzureMessagingWebPubSubServiceClient
```

### Tag: package-2021-05-01-preview

These settings apply only when `--tag=package-2021-05-01-preview` is specified on the command line.

``` yaml $(tag) == 'package-2021-05-01-preview'
```yaml $(tag) == 'package-2021-05-01-preview'
input-file:
- WebPubSub/preview/2021-05-01-preview/webpubsub.json
- WebPubSub/preview/2021-05-01-preview/webpubsub.json
title: AzureMessagingWebPubSubServiceClient
```

# Code Generation


## Swagger to SDK

This section describes what SDK should be generated by the automatic system.
This is not used by Autorest itself.

``` yaml $(swagger-to-sdk)
```yaml $(swagger-to-sdk)
swagger-to-sdk:
- repo: azure-sdk-for-python
- repo: azure-sdk-for-net
Expand All @@ -79,7 +88,7 @@ swagger-to-sdk:
These settings apply only when `--csharp` is specified on the command line.
Please also specify `--csharp-sdks-folder=<path to "SDKs" directory of your azure-sdk-for-net clone>`.

``` yaml $(csharp)
```yaml $(csharp)
csharp:
# last generated with AutoRest.0.17.3
azure-arm: false
Expand All @@ -95,7 +104,7 @@ These settings apply only when `--python` is specified on the command line.
Please also specify `--python-sdks-folder=<path to the root directory of your azure-sdk-for-python clone>`.
Use `--python-mode=update` if you already have a setup.py and just want to update the code itself.

``` yaml $(python)
```yaml $(python)
python-mode: create
azure-arm: false
license-header: MICROSOFT_MIT_NO_VERSION
Expand All @@ -104,36 +113,36 @@ package-name: azure-messaging-webpubsubservice
package-version: 1.0.0b1
clear-output-folder: true
```
``` yaml $(python) && $(python-mode) == 'update'

```yaml $(python) && $(python-mode) == 'update'
no-namespace-folders: true
output-folder: $(python-sdks-folder)/webpubsub/azure-messaging-webpubsubservice/azure/messaging/webpubsubservice
```
``` yaml $(python) && $(python-mode) == 'create'

```yaml $(python) && $(python-mode) == 'create'
basic-setup-py: true
output-folder: $(python-sdks-folder)/webpubsub/azure-messaging-webpubsubservice
```


## Multi-API/Profile support for AutoRest v3 generators

AutoRest V3 generators require the use of `--tag=all-api-versions` to select api files.

This block is updated by an automatic script. Edits may be lost!

``` yaml $(tag) == 'all-api-versions' /* autogenerated */
```yaml $(tag) == 'all-api-versions' /* autogenerated */
# include the azure profile definitions from the standard location
require: $(this-folder)/../../../profiles/readme.md
# all the input files across all versions
input-file:
- $(this-folder)/WebPubSub/preview/2021-05-01-preview/webpubsub.json
```

If there are files that should not be in the `all-api-versions` set,
uncomment the `exclude-file` section below and add the file paths.
uncomment the `exclude-file` section below and add the file paths.

``` yaml $(tag) == 'all-api-versions'
```yaml $(tag) == 'all-api-versions'
#exclude-file:
# - $(this-folder)/Microsoft.Example/stable/2010-01-01/somefile.json
```

0 comments on commit 40a3903

Please sign in to comment.