Skip to content

Commit

Permalink
Fix examples for some RPs (#16763)
Browse files Browse the repository at this point in the history
* fix LRO_RESPONSE_HEADER error in "keyvault"

* fix LRO_RESPONSE_HEADER error in "managementgroups"

* fix XMS_EXAMPLE_NOTFOUND_ERROR error in "managementgroups"

* fix RESPONSE_BODY_NOT_IN_EXAMPLE error in "relay"

* fix XMS_EXAMPLE_NOTFOUND_ERROR error in "servicefabric"

* fix LRO_RESPONSE_HEADER error in "storage"

* update api version to 2021-06-01

* fix code style issues
  • Loading branch information
keryul authored Nov 16, 2021
1 parent 1c520d5 commit 94a3711
Show file tree
Hide file tree
Showing 9 changed files with 107 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,9 @@
}
},
"202": {
"headers": {
"Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/hsm-group/providers/Microsoft.KeyVault/managedHSMs/hsm1?api-version=2021-06-01-preview"
},
"body": {
"properties": {
"tenantId": "00000000-0000-0000-0000-000000000000",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@
},
"responses": {
"202": {
"headers": {
"Location": "https://management.azure.com/providers/Microsoft.Management/managementGroups/GroupToDelete?api-version=2021-04-01"
},
"body": {
"id": "/providers/Microsoft.Management/managementGroups/GroupToDelete",
"type": "Microsoft.Management/managementGroups",
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
{
"parameters": {
"api-version": "2021-04-01"
},
"responses": {
"200": {
"body": {
"value": [
{
"name": "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
"display": {
"provider": "aaaaaaaaaaaaaaaaaaaaa",
"resource": "aaaaaaaaaaaaa",
"operation": "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
"description": "aaaaaaaaaaaaaaaaaaaaaa"
}
}
],
"nextLink": "aaaaaaaaaaaaaaaaaaa"
}
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -718,6 +718,11 @@
},
"x-ms-pageable": {
"nextLinkName": "nextLink"
},
"x-ms-examples": {
"List Operations": {
"$ref": "./examples/ListOperations.json"
}
}
}
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,25 @@
}
}
},
"201": {}
"201": {
"body": {
"id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/resourcegroup/providers/Microsoft.Relay/namespaces/example-RelayNamespace-01",
"name": "example-RelayNamespace-01",
"type": "Microsoft.Relay/Namespaces",
"location": "West US",
"sku": {
"name": "Standard",
"tier": "Standard"
},
"tags": {
"tag1": "value1",
"tag2": "value2"
},
"properties": {
"provisioningState": "Unknown",
"metricId": "ffffffff-ffff-ffff-ffff-ffffffffffff:example-Relaynamespace-01"
}
}
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,23 @@
}
}
},
"201": {}
"201": {
"body": {
"id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/resourcegroup/providers/Microsoft.Relay/namespaces/example-RelayNamespace-01",
"name": "example-RelayNamespace-01",
"type": "Microsoft.Relay/Namespaces",
"location": "West US",
"tags": {
"tag3": "value3",
"tag4": "value4",
"tag5": "value5",
"tag6": "value6"
},
"properties": {
"provisioningState": "Succeeded",
"metricId": "ffffffff-ffff-ffff-ffff-ffffffffffff:example-Relaynamespace-01"
}
}
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -574,6 +574,11 @@
},
"x-ms-pageable": {
"nextLinkName": "nextLink"
},
"x-ms-examples": {
"ListOperations": {
"$ref": "./examples/ListOperations.json"
}
}
}
}
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
{
"parameters": {
"api-version": "2021-06-01"
},
"responses": {
"200": {
"body": {
"value": [
{
"name": "aaaaaaaaaaaaaaaaaaaaaaaaa",
"isDataAction": true,
"display": {
"provider": "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
"resource": "aaaaaaaaaaaaaaaaaa",
"operation": "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
"description": "aaaaaaaaaaaaaaa"
},
"origin": "aaaaaaaaaaaaaa",
"nextLink": "aaaaaaaaaaaaaaaaaaaaa"
}
],
"nextLink": "aaaaaa"
}
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"subscriptionId": "{subscription-id}",
"resourceGroupName": "res9101",
"accountName": "sto4445",
"api-version": "2020-08-01-preview",
"api-version": "2021-06-01",
"parameters": {
"timeToRestore": "2019-04-20T15:30:00.0000000Z",
"blobRanges": [
Expand Down Expand Up @@ -39,6 +39,9 @@
}
},
"202": {
"headers": {
"Location": "https://management.azure.com/subscriptions/{subscription-id}/resourceGroups/res9101/providers/Microsoft.Storage/storageAccounts/sto4445/restoreBlobRanges?api-version=2021-06-01"
},
"body": {
"status": "InProgress",
"restoreId": "{restore_id}",
Expand Down

0 comments on commit 94a3711

Please sign in to comment.