Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
…pecs into mstsplitswagger
  • Loading branch information
v-ajnava committed Apr 20, 2020
2 parents 7204c83 + 179468a commit 199415f
Show file tree
Hide file tree
Showing 115 changed files with 2,331 additions and 509 deletions.
6 changes: 3 additions & 3 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

21 changes: 18 additions & 3 deletions specification/appconfiguration/resource-manager/readme.python.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,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 !$(track2)
python-mode: create
python:
azure-arm: true
Expand All @@ -15,13 +15,28 @@ python:
package-version: 0.1.0
clear-output-folder: true
```
``` yaml $(python) && $(python-mode) == 'update'
These settings apply only when `--track2` is specified on the command line.

``` yaml $(track2)
azure-arm: true
license-header: MICROSOFT_MIT_NO_VERSION
package-name: azure-mgmt-appconfiguration
no-namespace-folders: true
package-version: 0.1.0
```

``` yaml $(python-mode) == 'update'
python:
no-namespace-folders: true
output-folder: $(python-sdks-folder)/appconfiguration/azure-mgmt-appconfiguration/azure/mgmt/appconfiguration
no-namespace-folders: true
output-folder: $(python-sdks-folder)/appconfiguration/azure-mgmt-appconfiguration/azure/mgmt/appconfiguration
```
``` yaml $(python) && $(python-mode) == 'create'
``` yaml $(python-mode) == 'create'
python:
basic-setup-py: true
output-folder: $(python-sdks-folder)/appconfiguration/azure-mgmt-appconfiguration
basic-setup-py: true
output-folder: $(python-sdks-folder)/appconfiguration/azure-mgmt-appconfiguration
```
Original file line number Diff line number Diff line change
Expand Up @@ -181,6 +181,20 @@
"required": true,
"type": "string",
"x-ms-parameter-location": "method"
},
"TopParameter": {
"description": "OData top parameter.",
"name": "$top",
"in": "query",
"type": "string",
"x-ms-parameter-location": "method"
},
"SkipParameter": {
"description": "OData skip parameter.",
"name": "$skip",
"in": "query",
"type": "string",
"x-ms-parameter-location": "method"
}
},
"securityDefinitions": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
"application/json"
],
"paths": {
"/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.Backup.Admin/backupLocations": {
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Backup.Admin/backupLocations": {
"get": {
"x-ms-examples": {
"Returns the list of backup locations.": {
Expand All @@ -37,6 +37,12 @@
},
{
"$ref": "Backup.json#/parameters/ApiVersionParameter"
},
{
"$ref": "Backup.json#/parameters/TopParameter"
},
{
"$ref": "Backup.json#/parameters/SkipParameter"
}
],
"responses": {
Expand All @@ -52,7 +58,7 @@
}
}
},
"/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.Backup.Admin/backupLocations/{location}": {
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Backup.Admin/backupLocations/{location}": {
"get": {
"x-ms-examples": {
"Returns a specific backup location based on name.": {
Expand Down Expand Up @@ -129,17 +135,23 @@
}
}
},
"x-ms-long-running-operation": true
"x-ms-long-running-operation": true,
"x-ms-long-running-operation-options": {
"final-state-via": "location"
}
}
},
"/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.Backup.Admin/backupLocations/{location}/createBackup": {
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Backup.Admin/backupLocations/{location}/createBackup": {
"post": {
"x-ms-examples": {
"Back up a specific location.": {
"$ref": "./examples/BackupLocations/Backup.json"
}
},
"x-ms-long-running-operation": true,
"x-ms-long-running-operation-options": {
"final-state-via": "location"
},
"description": "Back up a specific location.",
"tags": [
"BackupLocations"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
"application/json"
],
"paths": {
"/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.Backup.Admin/backupLocations/{location}/backups": {
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Backup.Admin/backupLocations/{location}/backups": {
"get": {
"x-ms-examples": {
"Returns a list of backups from a location.": {
Expand All @@ -40,6 +40,12 @@
},
{
"$ref": "Backup.json#/parameters/ApiVersionParameter"
},
{
"$ref": "Backup.json#/parameters/TopParameter"
},
{
"$ref": "Backup.json#/parameters/SkipParameter"
}
],
"responses": {
Expand All @@ -55,7 +61,7 @@
}
}
},
"/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.Backup.Admin/backupLocations/{location}/backups/{backup}": {
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Backup.Admin/backupLocations/{location}/backups/{backup}": {
"get": {
"x-ms-examples": {
"Returns a backup from a location based on name.": {
Expand Down Expand Up @@ -94,7 +100,7 @@
}
}
},
"/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.Backup.Admin/backupLocations/{location}/backups/{backup}/restore": {
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Backup.Admin/backupLocations/{location}/backups/{backup}/restore": {
"post": {
"x-ms-examples": {
"Restore a backup.": {
Expand Down Expand Up @@ -137,7 +143,10 @@
"description": "ACCEPTED"
}
},
"x-ms-long-running-operation": true
"x-ms-long-running-operation": true,
"x-ms-long-running-operation-options": {
"final-state-via": "location"
}
}
}
},
Expand Down
20 changes: 9 additions & 11 deletions specification/azsadmin/resource-manager/backup/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -53,11 +53,10 @@ csharp:
clear-output-folder: true
```

## Multi-API/Profile support for AutoRest v3 generators
## 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!
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 */
# include the azure profile definitions from the standard location
Expand All @@ -69,13 +68,12 @@ input-file:
- $(this-folder)/Microsoft.Backup.Admin/preview/2018-09-01/BackupLocations.json
- $(this-folder)/Microsoft.Backup.Admin/preview/2018-09-01/Backups.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.
```
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.

``` yaml $(tag) == 'all-api-versions'
#exclude-file:
# - $(this-folder)/Microsoft.Example/stable/2010-01-01/somefile.json
```
#exclude-file:
# - $(this-folder)/Microsoft.Example/stable/2010-01-01/somefile.json
```
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# AutoRest v3 generators

> see https://aka.ms/autorest
``` yaml
input-file:
- $(this-folder)/Microsoft.InfrastructureInsights.Admin/preview/2016-05-01/InfrastructureInsights.json
- $(this-folder)/Microsoft.InfrastructureInsights.Admin/preview/2016-05-01/Alert.json
- $(this-folder)/Microsoft.InfrastructureInsights.Admin/preview/2016-05-01/RegionHealth.json
- $(this-folder)/Microsoft.InfrastructureInsights.Admin/preview/2016-05-01/ResourceHealth.json
- $(this-folder)/Microsoft.InfrastructureInsights.Admin/preview/2016-05-01/ServiceHealth.json
```
Original file line number Diff line number Diff line change
Expand Up @@ -60,9 +60,11 @@ csharp:
clear-output-folder: true
```

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

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

> see https://aka.ms/autorest

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

Expand All @@ -80,11 +82,10 @@ input-file:
```

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.

``` yaml $(tag) == 'all-api-versions'
#exclude-file:
# - $(this-folder)/Microsoft.Example/stable/2010-01-01/somefile.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.

``` yaml $(tag) == 'all-api-versions'
#exclude-file:
# - $(this-folder)/Microsoft.Example/stable/2010-01-01/somefile.json
```
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@
"$ref": "Subscriptions.json#/parameters/ApiVersionParameter"
},
{
"$ref": "#/parameters/NewAcquiredPlanParameter"
"$ref": "#/parameters/AcquiredPlanDefinitionParameter"
}
],
"responses": {
Expand Down Expand Up @@ -268,8 +268,8 @@
"type": "string",
"x-ms-parameter-location": "method"
},
"NewAcquiredPlanParameter": {
"name": "newAcquiredPlan",
"AcquiredPlanDefinitionParameter": {
"name": "acquiredPlanDefinition",
"in": "body",
"description": "The new acquired plan.",
"required": true,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@
"200": {
"description": "OK",
"schema": {
"$ref": "Subscriptions.json#/definitions/Subscription"
"$ref": "Subscriptions.json#/definitions/SubscriptionDefinition"
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@
"$ref": "Subscriptions.json#/parameters/ApiVersionParameter"
},
{
"$ref": "#/parameters/NewDirectoryTenantParameter"
"$ref": "#/parameters/DirectoryTenantDefinitionParameter"
}
],
"responses": {
Expand Down Expand Up @@ -220,9 +220,9 @@
"in": "path",
"x-ms-parameter-location": "method"
},
"NewDirectoryTenantParameter": {
"DirectoryTenantDefinitionParameter": {
"description": "New directory tenant properties.",
"name": "newTenant",
"name": "tenantDefinition",
"required": true,
"in": "body",
"schema": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@
}
}
},
"/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.Subscriptions.Admin/offers": {
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Subscriptions.Admin/offers": {
"get": {
"x-ms-examples": {
"Get the list of offers under a resource group.": {
Expand Down Expand Up @@ -85,7 +85,7 @@
}
}
},
"/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.Subscriptions.Admin/offers/{offer}": {
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Subscriptions.Admin/offers/{offer}": {
"get": {
"x-ms-examples": {
"Get the specified offer.": {
Expand Down Expand Up @@ -145,7 +145,7 @@
"$ref": "Subscriptions.json#/parameters/ApiVersionParameter"
},
{
"$ref": "#/parameters/NewOfferParameter"
"$ref": "#/parameters/OfferDefinitionParameter"
}
],
"responses": {
Expand Down Expand Up @@ -198,7 +198,7 @@
}
}
},
"/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.Subscriptions.Admin/offers/{offer}/metrics": {
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Subscriptions.Admin/offers/{offer}/metrics": {
"get": {
"x-ms-examples": {
"Get the offer metrics.": {
Expand Down Expand Up @@ -234,7 +234,7 @@
}
}
},
"/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.Subscriptions.Admin/offers/{offer}/metricDefinitions": {
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Subscriptions.Admin/offers/{offer}/metricDefinitions": {
"get": {
"x-ms-examples": {
"Get the metric definitions.": {
Expand Down Expand Up @@ -270,7 +270,7 @@
}
}
},
"/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.Subscriptions.Admin/offers/{offer}/link": {
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Subscriptions.Admin/offers/{offer}/link": {
"post": {
"x-ms-examples": {
"Links a plan to an offer.": {
Expand Down Expand Up @@ -309,7 +309,7 @@
}
}
},
"/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.Subscriptions.Admin/offers/{offer}/unlink": {
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Subscriptions.Admin/offers/{offer}/unlink": {
"post": {
"x-ms-examples": {
"Unlink a plan from an offer.": {
Expand Down Expand Up @@ -508,9 +508,9 @@
}
},
"parameters": {
"NewOfferParameter": {
"OfferDefinitionParameter": {
"description": "New offer.",
"name": "newOffer",
"name": "offerDefinition",
"in": "body",
"required": true,
"schema": {
Expand Down
Loading

0 comments on commit 199415f

Please sign in to comment.