Skip to content

Commit

Permalink
[Azure App Configuration] Update swagger to include LRO header for sn…
Browse files Browse the repository at this point in the history
…apshot create. (#22840)

* Update swagger to include LRO header for snapshot create.

* Remove x-ms-long-running-operation-options as they may be unnecessary.

* Remove status_code as it is now covered via LRO status object.
  • Loading branch information
jimmyca15 authored Mar 2, 2023
1 parent 0b1805b commit c31a6ff
Show file tree
Hide file tree
Showing 9 changed files with 8 additions and 17 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -893,6 +893,10 @@
"Link": {
"description": "Includes links to related resources.",
"type": "string"
},
"Operation-Location": {
"description": "The URL to track the status of the long running operation.",
"type": "string"
}
}
},
Expand All @@ -907,7 +911,8 @@
"CreateSnapshot": {
"$ref": "./examples/CreateSnapshot.json"
}
}
},
"x-ms-long-running-operation": true
},
"patch": {
"tags": [
Expand Down Expand Up @@ -1571,12 +1576,6 @@
},
"readOnly": true
},
"status_code": {
"description": "Provides additional information about the status of the snapshot. The status code values are modeled after HTTP status codes.",
"type": "integer",
"readOnly": true,
"format": "int32"
},
"filters": {
"description": "A list of filters used to filter the key-values included in the snapshot.",
"type": "array",
Expand Down Expand Up @@ -1865,7 +1864,6 @@
"enum": [
"name",
"status",
"status_code",
"filters",
"composition_type",
"created",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,13 +19,13 @@
"Content-Type": "application/vnd.microsoft.appconfig.snapshot+json",
"ETag": "W/\"4f6dd610dd5e4deebc7fbaef685fb903\"",
"Last-Modified": "Tue, 01 Aug 2022 16:52:32 GMT",
"Sync-Token": "zAJw6V16=NjotMSM3ODk3NjM=;sn=789763"
"Sync-Token": "zAJw6V16=NjotMSM3ODk3NjM=;sn=789763",
"Operation-Location": "https://{exampleAppConfigurationName}.azconfig.io/operations?snapshot=Prod-2022-08-01&Api-Version=2022-11-01-preview"
},
"body": {
"etag": "4f6dd610dd5e4deebc7fbaef685fb903",
"name": "Prod-2022-08-01",
"status": "provisioning",
"status_code": 202,
"filters": [
{
"key": "app1/*",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@
"etag": "4f6dd610dd5e4deebc7fbaef685fb903",
"name": "Prod-2022-08-01",
"status": "ready",
"status_code": 200,
"filters": [
{
"key": "app1/*",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@
"etag": "4f6dd610dd5e4deebc7fbaef685fb903",
"name": "Prod-2022-08-01",
"status": "failed",
"status_code": 429,
"filters": [
{
"key": "app1/*",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@
"etag": "4f6dd610dd5e4deebc7fbaef685fb903",
"name": "Prod-2022-08-01",
"status": "ready",
"status_code": 200,
"filters": [
{
"key": "app1/*",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@
"etag": "4f6dd610dd5e4deebc7fbaef685fb903",
"name": "Prod-2022-08-01",
"status": "ready",
"status_code": 200,
"filters": [
{
"key": "app1/*",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@
"etag": "4f6dd610dd5e4deebc7fbaef685fb903",
"name": "Prod-2022-08-01",
"status": "ready",
"status_code": 200,
"filters": [
{
"key": "app1/*",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@
"etag": "4f6dd610dd5e4deebc7fbaef685fb903",
"name": "Prod-2022-08-01",
"status": "archived",
"status_code": 200,
"filters": [
{
"key": "app1/*",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@
"etag": "4f6dd610dd5e4deebc7fbaef685fb903",
"name": "Prod-2022-08-01",
"status": "archived",
"status_code": 200,
"filters": [
{
"key": "app1/*",
Expand Down

0 comments on commit c31a6ff

Please sign in to comment.