Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion tests-upgrade/.gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,4 @@
generated
generated
generate

CompareResult
9 changes: 9 additions & 0 deletions tests-upgrade/basic-get-querystr/readme.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
### AutoRest Configuration
> see https://aka.ms/autorest

``` yaml
require:
- $(this-folder)/../readme.azure.noprofile.md
input-file:
- $(this-folder)/swagger.json
```
61 changes: 61 additions & 0 deletions tests-upgrade/basic-get-querystr/swagger.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
{

"swagger": "2.0",
"info": {
"title": "DatabricksClient",
"version": "2018-04-01",
"description": "ARM Databricks"
},
"host": "management.azure.com",
"schemes": [
"https"
],
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"security": [
{
"azure_auth": [
"user_impersonation"
]
}
],
"securityDefinitions": {
"azure_auth": {
"type": "oauth2",
"authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize",
"flow": "implicit",
"description": "Azure Active Directory OAuth2 Flow",
"scopes": {
"user_impersonation": "impersonate your user account"
}
}
},
"paths": {
"/users": {
"get": {
"tags": [
"users"
],
"operationId": "users_Get",
"description": "get user list.",
"parameters": [
{
"in": "query",
"name": "role",
"type": "string",
"required": true
}
],
"responses": {
"200": {
"description": "OK"
}
}
}
}
}
}
9 changes: 9 additions & 0 deletions tests-upgrade/basic-request-methods/readme.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
### AutoRest Configuration
> see https://aka.ms/autorest

``` yaml
require:
- $(this-folder)/../readme.azure.noprofile.md
input-file:
- $(this-folder)/swagger.json
```
89 changes: 89 additions & 0 deletions tests-upgrade/basic-request-methods/swagger.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,89 @@
{

"swagger": "2.0",
"info": {
"title": "DatabricksClient",
"version": "2018-04-01",
"description": "ARM Databricks"
},
"host": "management.azure.com",
"schemes": [
"https"
],
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"security": [
{
"azure_auth": [
"user_impersonation"
]
}
],
"securityDefinitions": {
"azure_auth": {
"type": "oauth2",
"authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize",
"flow": "implicit",
"description": "Azure Active Directory OAuth2 Flow",
"scopes": {
"user_impersonation": "impersonate your user account"
}
}
},
"paths": {
"/users": {
"get": {
"tags": [
"users"
],
"operationId": "users_Get",
"description": "get user list.",
"responses": {
"200": {
"description": "OK"
}
}
},
"delete": {
"tags": [
"users"
],
"operationId": "users_Delete",
"description": "delete a user.",
"responses": {
"200": {
"description": "OK"
}
}
},
"put": {
"tags": [
"users"
],
"operationId": "users_CreateOrUpdate",
"description": "Create or Update a user.",
"responses": {
"200": {
"description": "OK"
}
}
},
"post": {
"tags": [
"users"
],
"operationId": "users_Update",
"description": "Update a user.",
"responses": {
"200": {
"description": "OK"
}
}
}
}
}
}
9 changes: 9 additions & 0 deletions tests-upgrade/component-definitions-remote/readme.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
### AutoRest Configuration
> see https://aka.ms/autorest

``` yaml
require:
- $(this-folder)/../readme.azure.noprofile.md
input-file:
- $(this-folder)/swagger.json
```
59 changes: 59 additions & 0 deletions tests-upgrade/component-definitions-remote/swagger.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
{

"swagger": "2.0",
"info": {
"title": "DatabricksClient",
"version": "2018-04-01",
"description": "ARM Databricks"
},
"host": "management.azure.com",
"schemes": [
"https"
],
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"security": [
{
"azure_auth": [
"user_impersonation"
]
}
],
"securityDefinitions": {
"azure_auth": {
"type": "oauth2",
"authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize",
"flow": "implicit",
"description": "Azure Active Directory OAuth2 Flow",
"scopes": {
"user_impersonation": "impersonate your user account"
}
}
},
"paths": {
"/subscriptions/xxxx-xxxx-xxxx/providers/Microsoft.Databricks/workspaces": {
"get": {
"tags": [
"Workspaces"
],
"operationId": "Workspaces_ListBySubscription",
"description": "Gets all the workspaces within a subscription.",
"responses": {
"200": {
"description": "OK - Returns an array of workspaces."
},
"default": {
"description": "Error response describing why the operation failed.",
"schema": {
"$ref": "../examples/RemoteDefinitions.json#/definitions/ErrorResponse"
}
}
}
}
}
}
}
9 changes: 9 additions & 0 deletions tests-upgrade/component-definitions-url/readme.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
### AutoRest Configuration
> see https://aka.ms/autorest

``` yaml
require:
- $(this-folder)/../readme.azure.noprofile.md
input-file:
- $(this-folder)/swagger.json
```
59 changes: 59 additions & 0 deletions tests-upgrade/component-definitions-url/swagger.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
{

"swagger": "2.0",
"info": {
"title": "DatabricksClient",
"version": "2018-04-01",
"description": "ARM Databricks"
},
"host": "management.azure.com",
"schemes": [
"https"
],
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"security": [
{
"azure_auth": [
"user_impersonation"
]
}
],
"securityDefinitions": {
"azure_auth": {
"type": "oauth2",
"authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize",
"flow": "implicit",
"description": "Azure Active Directory OAuth2 Flow",
"scopes": {
"user_impersonation": "impersonate your user account"
}
}
},
"paths": {
"/subscriptions/xxxx-xxxx-xxxx/providers/Microsoft.Databricks/workspaces": {
"get": {
"tags": [
"Workspaces"
],
"operationId": "Workspaces_ListBySubscription",
"description": "Gets all the workspaces within a subscription.",
"responses": {
"200": {
"description": "OK - Returns an array of workspaces."
},
"default": {
"description": "Error response describing why the operation failed.",
"schema": {
"$ref": "https://github.com/LucasYao93/autorest.powershell/tree/lucas/modelerfour-dev/tests-upgrade/examples/RemoteDefinitions.json#definitions/ErrorResponse"
}
}
}
}
}
}
}
10 changes: 10 additions & 0 deletions tests-upgrade/datamodels-enums/readme.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
### AutoRest Configuration
> see https://aka.ms/autorest

``` yaml
require:
- $(this-folder)/../readme.azure.noprofile.md
input-file:
- $(this-folder)/swagger.json

```
Loading