Skip to content

Commit

Permalink
[Azure Stack] Updates to Azs.Backup.Admin spec (Azure#9034)
Browse files Browse the repository at this point in the history
* Cumulative commit message:
commit 72efdec
Author: bganapa <bganapa@microsoft.com>
Date:   Thu Feb 27 17:26:56 2020 -0800

    Update to have $(this-folder)/ in the input files

commit 10ec206
Author: Daotian Zhang <38281880+daozha@users.noreply.github.com>
Date:   Fri Jan 3 04:01:04 2020 +0800

    Add x-ms-long-running-operation-options (Azure#8037)

commit 70fbb62
Author: Daotian Zhang <38281880+daozha@users.noreply.github.com>
Date:   Wed Dec 18 14:13:52 2019 +0800

    Fix resourceGroups in resource path and add top/skip (Azure#7996)

commit 9e551f0
Author: bganapa <bganapa@microsoft.com>
Date:   Tue Nov 12 11:44:22 2019 -0800

    Reset to Stackadmin2 (Azure#7766)

* Remove old specs from PR

* Remove old spec package info from readme.md

* Run Prettier check

* Add autorest gen info to readme.md

Co-authored-by: Daotian Zhang <daozha@microsoft.com>
  • Loading branch information
2 people authored and 00Kai0 committed Oct 12, 2020
1 parent 793d02c commit 3bb5d11
Show file tree
Hide file tree
Showing 4 changed files with 57 additions and 24 deletions.
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
30 changes: 14 additions & 16 deletions specification/azsadmin/resource-manager/backup/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -53,29 +53,27 @@ 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.
This block is updated by an automatic script. Edits may be lost!

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
# include the azure profile definitions from the standard location
require: $(this-folder)/../../../../profiles/readme.md
# all the input files across all versions
input-file:
# all the input files across all versions
input-file:
- $(this-folder)/Microsoft.Backup.Admin/preview/2018-09-01/Backup.json
- $(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
```

0 comments on commit 3bb5d11

Please sign in to comment.