Skip to content

Commit d01058a

Browse files
viananthdaozha
andauthored
[Azure Stack] Updates to Azs.Backup.Admin spec (#9034)
* Cumulative commit message: commit 72efdec Author: bganapa <[email protected]> Date: Thu Feb 27 17:26:56 2020 -0800 Update to have $(this-folder)/ in the input files commit 10ec206 Author: Daotian Zhang <[email protected]> Date: Fri Jan 3 04:01:04 2020 +0800 Add x-ms-long-running-operation-options (#8037) commit 70fbb62 Author: Daotian Zhang <[email protected]> Date: Wed Dec 18 14:13:52 2019 +0800 Fix resourceGroups in resource path and add top/skip (#7996) commit 9e551f0 Author: bganapa <[email protected]> Date: Tue Nov 12 11:44:22 2019 -0800 Reset to Stackadmin2 (#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 <[email protected]>
1 parent a03389f commit d01058a

File tree

4 files changed

+57
-24
lines changed

4 files changed

+57
-24
lines changed

specification/azsadmin/resource-manager/backup/Microsoft.Backup.Admin/preview/2018-09-01/Backup.json

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -181,6 +181,20 @@
181181
"required": true,
182182
"type": "string",
183183
"x-ms-parameter-location": "method"
184+
},
185+
"TopParameter": {
186+
"description": "OData top parameter.",
187+
"name": "$top",
188+
"in": "query",
189+
"type": "string",
190+
"x-ms-parameter-location": "method"
191+
},
192+
"SkipParameter": {
193+
"description": "OData skip parameter.",
194+
"name": "$skip",
195+
"in": "query",
196+
"type": "string",
197+
"x-ms-parameter-location": "method"
184198
}
185199
},
186200
"securityDefinitions": {

specification/azsadmin/resource-manager/backup/Microsoft.Backup.Admin/preview/2018-09-01/BackupLocations.json

Lines changed: 16 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
"application/json"
1717
],
1818
"paths": {
19-
"/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.Backup.Admin/backupLocations": {
19+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Backup.Admin/backupLocations": {
2020
"get": {
2121
"x-ms-examples": {
2222
"Returns the list of backup locations.": {
@@ -37,6 +37,12 @@
3737
},
3838
{
3939
"$ref": "Backup.json#/parameters/ApiVersionParameter"
40+
},
41+
{
42+
"$ref": "Backup.json#/parameters/TopParameter"
43+
},
44+
{
45+
"$ref": "Backup.json#/parameters/SkipParameter"
4046
}
4147
],
4248
"responses": {
@@ -52,7 +58,7 @@
5258
}
5359
}
5460
},
55-
"/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.Backup.Admin/backupLocations/{location}": {
61+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Backup.Admin/backupLocations/{location}": {
5662
"get": {
5763
"x-ms-examples": {
5864
"Returns a specific backup location based on name.": {
@@ -129,17 +135,23 @@
129135
}
130136
}
131137
},
132-
"x-ms-long-running-operation": true
138+
"x-ms-long-running-operation": true,
139+
"x-ms-long-running-operation-options": {
140+
"final-state-via": "location"
141+
}
133142
}
134143
},
135-
"/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.Backup.Admin/backupLocations/{location}/createBackup": {
144+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Backup.Admin/backupLocations/{location}/createBackup": {
136145
"post": {
137146
"x-ms-examples": {
138147
"Back up a specific location.": {
139148
"$ref": "./examples/BackupLocations/Backup.json"
140149
}
141150
},
142151
"x-ms-long-running-operation": true,
152+
"x-ms-long-running-operation-options": {
153+
"final-state-via": "location"
154+
},
143155
"description": "Back up a specific location.",
144156
"tags": [
145157
"BackupLocations"

specification/azsadmin/resource-manager/backup/Microsoft.Backup.Admin/preview/2018-09-01/Backups.json

Lines changed: 13 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
"application/json"
1717
],
1818
"paths": {
19-
"/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.Backup.Admin/backupLocations/{location}/backups": {
19+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Backup.Admin/backupLocations/{location}/backups": {
2020
"get": {
2121
"x-ms-examples": {
2222
"Returns a list of backups from a location.": {
@@ -40,6 +40,12 @@
4040
},
4141
{
4242
"$ref": "Backup.json#/parameters/ApiVersionParameter"
43+
},
44+
{
45+
"$ref": "Backup.json#/parameters/TopParameter"
46+
},
47+
{
48+
"$ref": "Backup.json#/parameters/SkipParameter"
4349
}
4450
],
4551
"responses": {
@@ -55,7 +61,7 @@
5561
}
5662
}
5763
},
58-
"/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.Backup.Admin/backupLocations/{location}/backups/{backup}": {
64+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Backup.Admin/backupLocations/{location}/backups/{backup}": {
5965
"get": {
6066
"x-ms-examples": {
6167
"Returns a backup from a location based on name.": {
@@ -94,7 +100,7 @@
94100
}
95101
}
96102
},
97-
"/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.Backup.Admin/backupLocations/{location}/backups/{backup}/restore": {
103+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Backup.Admin/backupLocations/{location}/backups/{backup}/restore": {
98104
"post": {
99105
"x-ms-examples": {
100106
"Restore a backup.": {
@@ -137,7 +143,10 @@
137143
"description": "ACCEPTED"
138144
}
139145
},
140-
"x-ms-long-running-operation": true
146+
"x-ms-long-running-operation": true,
147+
"x-ms-long-running-operation-options": {
148+
"final-state-via": "location"
149+
}
141150
}
142151
}
143152
},

specification/azsadmin/resource-manager/backup/readme.md

Lines changed: 14 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -53,29 +53,27 @@ csharp:
5353
clear-output-folder: true
5454
```
5555

56-
## Multi-API/Profile support for AutoRest v3 generators
56+
## Multi-API/Profile support for AutoRest v3 generators
5757

58-
AutoRest V3 generators require the use of `--tag=all-api-versions` to select api files.
58+
AutoRest V3 generators require the use of `--tag=all-api-versions` to select api files.
59+
This block is updated by an automatic script. Edits may be lost!
5960

60-
This block is updated by an automatic script. Edits may be lost!
61+
``` yaml $(tag) == 'all-api-versions' /* autogenerated */
6162
62-
``` yaml $(tag) == 'all-api-versions' /* autogenerated */
63-
# include the azure profile definitions from the standard location
64-
require: $(this-folder)/../../../../profiles/readme.md
63+
# include the azure profile definitions from the standard location
64+
require: $(this-folder)/../../../../profiles/readme.md
6565
66-
# all the input files across all versions
67-
input-file:
66+
# all the input files across all versions
67+
input-file:
6868
- $(this-folder)/Microsoft.Backup.Admin/preview/2018-09-01/Backup.json
6969
- $(this-folder)/Microsoft.Backup.Admin/preview/2018-09-01/BackupLocations.json
7070
- $(this-folder)/Microsoft.Backup.Admin/preview/2018-09-01/Backups.json
71-
72-
```
73-
74-
If there are files that should not be in the `all-api-versions` set,
75-
uncomment the `exclude-file` section below and add the file paths.
71+
```
72+
If there are files that should not be in the `all-api-versions` set,
73+
uncomment the `exclude-file` section below and add the file paths.
7674

7775
``` yaml $(tag) == 'all-api-versions'
78-
#exclude-file:
79-
# - $(this-folder)/Microsoft.Example/stable/2010-01-01/somefile.json
80-
```
8176
77+
#exclude-file:
78+
# - $(this-folder)/Microsoft.Example/stable/2010-01-01/somefile.json
79+
```

0 commit comments

Comments
 (0)