Skip to content

Commit

Permalink
validation errors fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
MikalaiSavenka committed May 9, 2023
1 parent 4a8aba7 commit 09336e3
Show file tree
Hide file tree
Showing 6 changed files with 48 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,11 @@
},
"responses": {
"200": {},
"202": {}
"202": {
"headers": {
"Azure-AsyncOperation": "https://management.azure.com/subscriptions/91d12660-3dec-467a-be2a-213b5544ddc0/providers/Microsoft.Devices/operationResults/b3NfaWhfYmJhZmM4OWItNzQ3My00OWExLTg0NWUtNzQ3NWU2ODBkNDA3?api-version=2023-06-30-preview&operationSource=os_ih&asyncinfo",
"Location": "https://management.azure.com/subscriptions/91d12660-3dec-467a-be2a-213b5544ddc0/providers/Microsoft.Devices/operationResults/b3NfaWhfYmJhZmM4OWItNzQ3My00OWExLTg0NWUtNzQ3NWU2ODBkNDA3?api-version=2022-11-01-preview&operationSource=os_ih"
}
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,10 @@
},
"204": {},
"202": {
"headers": {
"Azure-AsyncOperation": "https://management.azure.com/subscriptions/91d12660-3dec-467a-be2a-213b5544ddc0/providers/Microsoft.Devices/operationResults/b3NfaWhfYmJhZmM4OWItNzQ3My00OWExLTg0NWUtNzQ3NWU2ODBkNDA3?api-version=2023-06-30-preview&operationSource=os_ih&asyncinfo",
"Location": "https://management.azure.com/subscriptions/91d12660-3dec-467a-be2a-213b5544ddc0/providers/Microsoft.Devices/operationResults/b3NfaWhfYmJhZmM4OWItNzQ3My00OWExLTg0NWUtNzQ3NWU2ODBkNDA3?api-version=2022-11-01-preview&operationSource=os_ih"
},
"body": {
"id": "/subscriptions/91d12660-3dec-467a-be2a-213b5544ddc0/resourceGroups/myResourceGroup/providers/Microsoft.Devices/IotHubs/testHub",
"name": "testHub",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,10 @@
}
},
"202": {
"headers": {
"Azure-AsyncOperation": "https://management.azure.com/subscriptions/91d12660-3dec-467a-be2a-213b5544ddc0/providers/Microsoft.Devices/operationResults/b3NfaWhfYmJhZmM4OWItNzQ3My00OWExLTg0NWUtNzQ3NWU2ODBkNDA3?api-version=2023-06-30-preview&operationSource=os_ih&asyncinfo",
"Location": "https://management.azure.com/subscriptions/91d12660-3dec-467a-be2a-213b5544ddc0/providers/Microsoft.Devices/operationResults/b3NfaWhfYmJhZmM4OWItNzQ3My00OWExLTg0NWUtNzQ3NWU2ODBkNDA3?api-version=2022-11-01-preview&operationSource=os_ih"
},
"body": {
"id": "/subscriptions/91d12660-3dec-467a-be2a-213b5544ddc0/resourceGroups/myResourceGroup/providers/Microsoft.Devices/IotHubs/testHub/PrivateEndpointConnections/myPrivateEndpointConnection",
"name": "myPrivateEndpointConnection",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@
{
"endpointId": "id1",
"healthStatus": "healthy",
"lastSuccessfulSendAttemptTime": "2020-03-26T21:20:57Z",
"lastSendAttemptTime": "2020-03-26T21:24:57Z"
"lastSuccessfulSendAttemptTime": "Wed, 13 Sep 2022 18:04:32 GMT",
"lastSendAttemptTime": "Wed, 13 Sep 2022 18:04:32 GMT"
},
{
"endpointId": "id2",
Expand All @@ -23,9 +23,9 @@
"endpointId": "id3",
"healthStatus": "unhealthy",
"lastKnownError": "NotFound",
"lastKnownErrorTime": "2020-03-26T21:24:57Z",
"lastSuccessfulSendAttemptTime": "2020-03-26T21:20:57Z",
"lastSendAttemptTime": "2020-03-26T21:24:57Z"
"lastKnownErrorTime": "Wed, 13 Sep 2022 18:04:32 GMT",
"lastSuccessfulSendAttemptTime": "Wed, 13 Sep 2022 18:04:32 GMT",
"lastSendAttemptTime": "Wed, 13 Sep 2022 18:04:32 GMT"
}
]
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"parameters": {
"resourceName": "testHub",
"resourceGroupName": "myResourceGroup",
"api-version": "2018-04-01",
"api-version": "2023-06-30",
"subscriptionId": "91d12660-3dec-467a-be2a-213b5544ddc0"
},
"responses": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -269,6 +269,15 @@
],
"responses": {
"202": {
"headers": {
"Azure-AsyncOperation": {
"description": "URL to query for status of the operation.",
"type": "string"
},
"Location": {
"type": "string"
}
},
"description": "The Iot Hub resource provider always returns a 202 Accepted status code with valid Location and Retry-After headers. The resource provider also sets the Azure-AsyncOperation header with a URL that points to the operation resource for this operation. Subsequent GET attempts on the resource after a DELETE operation return a resource representation that indicates a transitional provisioning state (such as Terminating). To retrieve the status of the operation, a client can either poll the URL returned in the Location header after the Retry-After interval, get the IoT Hub service status directly, or query the operation resource.",
"schema": {
"$ref": "#/definitions/IotHubDescription"
Expand Down Expand Up @@ -1718,6 +1727,15 @@
"description": "Long running manual failover operation for the IoT hub completed"
},
"202": {
"headers": {
"Azure-AsyncOperation": {
"description": "URL to query for status of the operation.",
"type": "string"
},
"Location": {
"type": "string"
}
},
"description": "Manual failover initiated"
},
"default": {
Expand Down Expand Up @@ -2003,6 +2021,15 @@
],
"responses": {
"202": {
"headers": {
"Azure-AsyncOperation": {
"description": "URL to query for status of the operation.",
"type": "string"
},
"Location": {
"type": "string"
}
},
"description": "This is a long running operation. The operation returns a 202 if the validation is complete. The response includes an Azure-AsyncOperation header that contains a status URL. Clients are expected to poll the status URL for the status of the operation.",
"schema": {
"$ref": "#/definitions/PrivateEndpointConnection"
Expand Down Expand Up @@ -3174,7 +3201,7 @@
"name",
"containerName"
]
},
},
"RoutingCosmosDBSqlApiProperties": {
"description": "The properties related to a cosmos DB sql container endpoint.",
"type": "object",
Expand Down

0 comments on commit 09336e3

Please sign in to comment.