Skip to content

Commit

Permalink
Adding support for operationResults api for farmbeats resource.
Browse files Browse the repository at this point in the history
  • Loading branch information
priyankajayaswal1 committed Aug 15, 2022
1 parent a81e6ed commit 164a017
Show file tree
Hide file tree
Showing 2 changed files with 80 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -742,6 +742,59 @@
}
}
},
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AgFoodPlatform/farmBeats/{farmBeatsResourceName}/operationResults/{operationResultsId}": {
"get": {
"tags": [
"FarmBeatsModels"
],
"description": "Get operationResults for a FarmBeats resource.",
"operationId": "FarmBeatsModels_GetOperationResult",
"produces": [
"application/json"
],
"parameters": [
{
"$ref": "#/parameters/FarmBeatsResourceNameParameter"
},
{
"$ref": "#/parameters/ResourceGroupNameParameter"
},
{
"$ref": "#/parameters/SubscriptionIdParameter"
},
{
"$ref": "#/parameters/ApiVersionParameter"
},
{
"in": "path",
"name": "operationResultsId",
"description": "The operation results id.",
"required": true,
"type": "string",
"pattern": "^[A-Za-z0-9]+(-[A-Za-z0-9]+)*$"
}
],
"responses": {
"200": {
"description": "Success",
"schema": {
"$ref": "#/definitions/ArmAsyncOperation"
}
},
"default": {
"description": "Error",
"schema": {
"$ref": "#/definitions/ErrorResponse"
}
}
},
"x-ms-examples": {
"FarmBeatsModels_GetOperationResult": {
"$ref": "./examples/FarmBeatsModels_GetOperationResult.json"
}
}
}
},
"/subscriptions/{subscriptionId}/providers/Microsoft.AgFoodPlatform/checkNameAvailability": {
"post": {
"tags": [
Expand Down Expand Up @@ -1561,6 +1614,16 @@
"readOnly": true
}
}
},
"ArmAsyncOperation": {
"description": "Arm async operation class.\r\nRef: https://docs.microsoft.com/en-us/azure/azure-resource-manager/management/async-operations.",
"type": "object",
"properties": {
"status": {
"description": "Status of the async operation.",
"type": "string"
}
}
}
},
"parameters": {
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
{
"parameters": {
"api-version": "2021-09-01-preview",
"subscriptionId": "11111111-2222-3333-4444-555555555555",
"resourceGroupName": "examples-rg",
"farmBeatsResourceName": "examples-farmBeatsResourceName",
"operationResultsId": "resource-provisioning-id-farmBeatsResourceName"
},
"responses": {
"200": {
"body": {
"status": "Succeeded"
}
}
}
}

0 comments on commit 164a017

Please sign in to comment.