-
Notifications
You must be signed in to change notification settings - Fork 5.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merging agrifood RP latest swagger for public preview readiness. (#20243
) * Adds base for updating Microsoft.AgFoodPlatform from version preview/2020-05-12-preview to version 2021-09-01-preview * Adds base for updating Microsoft.AgFoodPlatform from version preview/2020-05-12-preview to version 2021-09-01-preview * Updates readme * Updates API version in new specs and examples * Private endpoint changes * updated examples * updated db update example * build fixes * changed common-types version * pr comments * minor update * Removed 202 response code from Put call * update examples * prettier fix * enum example fix * Incremental change of sensor feature * Adding support for operationResults api for farmbeats resource. * Making cosmetic changes to fix checks * Update readme.python.md pin the title for python SDK * Fixing one change * Rsolving comments Co-authored-by: Prabhav Gupta <[email protected]> Co-authored-by: Prabhav Gupta <[email protected]> Co-authored-by: Yuchao Yan <[email protected]>
- Loading branch information
1 parent
2611327
commit 6080b01
Showing
27 changed files
with
3,014 additions
and
8 deletions.
There are no files selected for viewing
1,686 changes: 1,686 additions & 0 deletions
1,686
...agrifood/resource-manager/Microsoft.AgFoodPlatform/preview/2021-09-01-preview/agfood.json
Large diffs are not rendered by default.
Oops, something went wrong.
33 changes: 33 additions & 0 deletions
33
...nager/Microsoft.AgFoodPlatform/preview/2021-09-01-preview/examples/Extensions_Create.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
{ | ||
"parameters": { | ||
"api-version": "2021-09-01-preview", | ||
"subscriptionId": "11111111-2222-3333-4444-555555555555", | ||
"resourceGroupName": "examples-rg", | ||
"farmBeatsResourceName": "examples-farmbeatsResourceName", | ||
"extensionId": "provider.extension" | ||
}, | ||
"responses": { | ||
"201": { | ||
"body": { | ||
"id": "/subscriptions/11111111-2222-3333-4444-555555555555/resourceGroups/examples-rg/Microsoft.AgFoodPlatform/farmBeats/examples-farmbeatsResourceName/extensions/provider.extension", | ||
"name": "provider.extension", | ||
"type": "Microsoft.AgFoodPlatform/farmBeats/extensions", | ||
"systemData": { | ||
"createdBy": "string", | ||
"createdByType": "User", | ||
"createdAt": "2020-02-01T01:01:01.1075056Z", | ||
"lastModifiedBy": "string", | ||
"lastModifiedByType": "User", | ||
"lastModifiedAt": "2020-02-01T01:01:01.1075056Z" | ||
}, | ||
"eTag": "7200b954-0000-0700-0000-603cbbc40000", | ||
"properties": { | ||
"extensionCategory": "Weather", | ||
"installedExtensionVersion": "1.0", | ||
"extensionAuthLink": "https://www.provider.com/extension/", | ||
"extensionApiDocsLink": "https://docs.provider.com/documentation/extension" | ||
} | ||
} | ||
} | ||
} | ||
} |
13 changes: 13 additions & 0 deletions
13
...nager/Microsoft.AgFoodPlatform/preview/2021-09-01-preview/examples/Extensions_Delete.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
{ | ||
"parameters": { | ||
"api-version": "2021-09-01-preview", | ||
"subscriptionId": "11111111-2222-3333-4444-555555555555", | ||
"resourceGroupName": "examples-rg", | ||
"farmBeatsResourceName": "examples-farmbeatsResourceName", | ||
"extensionId": "provider.extension" | ||
}, | ||
"responses": { | ||
"200": {}, | ||
"204": {} | ||
} | ||
} |
33 changes: 33 additions & 0 deletions
33
...-manager/Microsoft.AgFoodPlatform/preview/2021-09-01-preview/examples/Extensions_Get.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
{ | ||
"parameters": { | ||
"api-version": "2021-09-01-preview", | ||
"subscriptionId": "11111111-2222-3333-4444-555555555555", | ||
"resourceGroupName": "examples-rg", | ||
"farmBeatsResourceName": "examples-farmbeatsResourceName", | ||
"extensionId": "provider.extension" | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"id": "/subscriptions/11111111-2222-3333-4444-555555555555/resourceGroups/examples-rg/Microsoft.AgFoodPlatform/farmBeats/examples-farmbeatsResourceName/extensions/provider.extension", | ||
"name": "provider.extension", | ||
"type": "Microsoft.AgFoodPlatform/farmBeats/extensions", | ||
"systemData": { | ||
"createdBy": "string", | ||
"createdByType": "User", | ||
"createdAt": "2020-02-01T01:01:01.1075056Z", | ||
"lastModifiedBy": "string", | ||
"lastModifiedByType": "User", | ||
"lastModifiedAt": "2020-02-01T01:01:01.1075056Z" | ||
}, | ||
"eTag": "7200b954-0000-0700-0000-603cbbc40000", | ||
"properties": { | ||
"extensionCategory": "Weather", | ||
"installedExtensionVersion": "1.0", | ||
"extensionAuthLink": "https://www.provider.com/extension/", | ||
"extensionApiDocsLink": "https://docs.provider.com/documentation/extension" | ||
} | ||
} | ||
} | ||
} | ||
} |
37 changes: 37 additions & 0 deletions
37
...rosoft.AgFoodPlatform/preview/2021-09-01-preview/examples/Extensions_ListByFarmBeats.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
{ | ||
"parameters": { | ||
"api-version": "2021-09-01-preview", | ||
"subscriptionId": "11111111-2222-3333-4444-555555555555", | ||
"resourceGroupName": "examples-rg", | ||
"farmBeatsResourceName": "examples-farmbeatsResourceName" | ||
}, | ||
"responses": { | ||
"200": { | ||
"headers": {}, | ||
"body": { | ||
"value": [ | ||
{ | ||
"id": "/subscriptions/11111111-2222-3333-4444-555555555555/resourceGroups/examples-rg/Microsoft.AgFoodPlatform/farmBeats/examples-farmbeatsResourceName/extensions/provider.extension", | ||
"name": "provider.extension", | ||
"type": "Microsoft.AgFoodPlatform/farmBeats/extensions", | ||
"systemData": { | ||
"createdBy": "string", | ||
"createdByType": "User", | ||
"createdAt": "2020-02-01T01:01:01.1075056Z", | ||
"lastModifiedBy": "string", | ||
"lastModifiedByType": "User", | ||
"lastModifiedAt": "2020-02-01T01:01:01.1075056Z" | ||
}, | ||
"eTag": "7200b954-0000-0700-0000-603cbbc40000", | ||
"properties": { | ||
"extensionCategory": "Weather", | ||
"installedExtensionVersion": "1.0", | ||
"extensionAuthLink": "https://www.provider.com/extension/", | ||
"extensionApiDocsLink": "https://docs.provider.com/documentation/extension" | ||
} | ||
} | ||
] | ||
} | ||
} | ||
} | ||
} |
33 changes: 33 additions & 0 deletions
33
...nager/Microsoft.AgFoodPlatform/preview/2021-09-01-preview/examples/Extensions_Update.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
{ | ||
"parameters": { | ||
"api-version": "2021-09-01-preview", | ||
"subscriptionId": "11111111-2222-3333-4444-555555555555", | ||
"resourceGroupName": "examples-rg", | ||
"farmBeatsResourceName": "examples-farmbeatsResourceName", | ||
"extensionId": "provider.extension" | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"id": "/subscriptions/11111111-2222-3333-4444-555555555555/resourceGroups/examples-rg/Microsoft.AgFoodPlatform/farmBeats/examples-farmbeatsResourceName/extensions/provider.extension", | ||
"name": "provider.extension", | ||
"type": "Microsoft.AgFoodPlatform/farmBeats/extensions", | ||
"systemData": { | ||
"createdBy": "string", | ||
"createdByType": "User", | ||
"createdAt": "2020-02-01T01:01:01.1075056Z", | ||
"lastModifiedBy": "string", | ||
"lastModifiedByType": "User", | ||
"lastModifiedAt": "2020-02-01T01:01:01.1075056Z" | ||
}, | ||
"eTag": "7200b954-0000-0700-0000-603cbbc40000", | ||
"properties": { | ||
"extensionCategory": "Weather", | ||
"installedExtensionVersion": "2.0", | ||
"extensionAuthLink": "https://www.provider.com/extension/", | ||
"extensionApiDocsLink": "https://docs.provider.com/documentation/extension" | ||
} | ||
} | ||
} | ||
} | ||
} |
243 changes: 243 additions & 0 deletions
243
...Microsoft.AgFoodPlatform/preview/2021-09-01-preview/examples/FarmBeatsExtensions_Get.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,243 @@ | ||
{ | ||
"parameters": { | ||
"api-version": "2021-09-01-preview", | ||
"farmBeatsExtensionId": "DTN.ContentServices" | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"id": "Microsoft.AgFoodPlatform/farmBeatsExtensionDefinitions/DTN.ContentServices", | ||
"type": "Microsoft.AgFoodPlatform/farmBeatsExtensionDefinitions", | ||
"systemData": { | ||
"createdAt": "2021-04-12T15:28:06Z", | ||
"lastModifiedAt": "2021-04-12T15:30:01Z" | ||
}, | ||
"properties": { | ||
"targetResourceType": "FarmBeats", | ||
"farmBeatsExtensionId": "DTN.ContentServices", | ||
"farmBeatsExtensionName": "DTN", | ||
"farmBeatsExtensionVersion": "1.0", | ||
"publisherId": "dtn", | ||
"extensionCategory": "Weather", | ||
"extensionAuthLink": "https://www.dtn.com/dtn-content-integration/", | ||
"extensionApiDocsLink": "https://cs-docs.dtn.com/api/weather-observations-and-forecasts-rest-api/", | ||
"detailedInformation": [ | ||
{ | ||
"apiName": "GetDailyObservations", | ||
"customParameters": [ | ||
"stationId", | ||
"stationLatitude", | ||
"stationLongitude", | ||
"timeZone", | ||
"sunrise", | ||
"sunset", | ||
"weatherCode", | ||
"weatherDescription", | ||
"maxTemperature", | ||
"minTemperature", | ||
"avgHeatIndex", | ||
"maxHeatIndex", | ||
"minHeatIndex", | ||
"maxWindChill", | ||
"minWindChill", | ||
"maxFeelsLike", | ||
"minFeelsLike", | ||
"avgFeelsLike", | ||
"maxWindSpeed", | ||
"avgWetBulbGlobeTemp", | ||
"maxWetBulbGlobeTemp", | ||
"minWetBulbGlobeTemp", | ||
"minutesOfSunshine", | ||
"cornHeatUnit", | ||
"evapotranspiration" | ||
], | ||
"platformParameters": [ | ||
"cloudCover", | ||
"dewPoint", | ||
"growingDegreeDay", | ||
"precipitation", | ||
"pressure", | ||
"relativeHumidity", | ||
"temperature", | ||
"wetBulbTemperature", | ||
"dateTime", | ||
"windChill", | ||
"windSpeed", | ||
"windDirection" | ||
], | ||
"unitsSupported": { | ||
"key": "units", | ||
"values": [ | ||
"us", | ||
"si" | ||
] | ||
}, | ||
"apiInputParameters": [ | ||
"stationId", | ||
"lat", | ||
"lon", | ||
"days", | ||
"units", | ||
"precision", | ||
"sector" | ||
] | ||
}, | ||
{ | ||
"apiName": "GetHourlyObservations", | ||
"customParameters": [ | ||
"stationId", | ||
"stationLatitude", | ||
"stationLongitude", | ||
"timeZone", | ||
"weatherCode", | ||
"weatherDescription", | ||
"feelsLike", | ||
"visibilityWeatherCode", | ||
"visibilityWeatherDescription", | ||
"minutesOfSunshine" | ||
], | ||
"platformParameters": [ | ||
"cloudCover", | ||
"dewPoint", | ||
"precipitation", | ||
"pressure", | ||
"relativeHumidity", | ||
"temperature", | ||
"wetBulbTemperature", | ||
"dateTime", | ||
"visibility", | ||
"windChill", | ||
"windSpeed", | ||
"windDirection", | ||
"windGust" | ||
], | ||
"unitsSupported": { | ||
"key": "units", | ||
"values": [ | ||
"us", | ||
"si" | ||
] | ||
}, | ||
"apiInputParameters": [ | ||
"stationId", | ||
"lat", | ||
"lon", | ||
"hours", | ||
"units", | ||
"precision", | ||
"sector" | ||
] | ||
}, | ||
{ | ||
"apiName": "GetHourlyForecasts", | ||
"customParameters": [ | ||
"stationId", | ||
"stationLatitude", | ||
"stationLongitude", | ||
"timeZone", | ||
"weatherCode", | ||
"weatherDescription", | ||
"feelsLike", | ||
"visibilityWeatherCode", | ||
"visibilityWeatherDescription", | ||
"minutesOfSunshine" | ||
], | ||
"platformParameters": [ | ||
"cloudCover", | ||
"dewPoint", | ||
"precipitation", | ||
"pressure", | ||
"relativeHumidity", | ||
"temperature", | ||
"wetBulbTemperature", | ||
"dateTime", | ||
"visibility", | ||
"windChill", | ||
"windSpeed", | ||
"windDirection", | ||
"windGust" | ||
], | ||
"unitsSupported": { | ||
"key": "units", | ||
"values": [ | ||
"us", | ||
"si" | ||
] | ||
}, | ||
"apiInputParameters": [ | ||
"stationId", | ||
"lat", | ||
"lon", | ||
"days", | ||
"units", | ||
"precision", | ||
"sector" | ||
] | ||
}, | ||
{ | ||
"apiName": "GetDailyForecasts", | ||
"customParameters": [ | ||
"stationId", | ||
"stationLatitude", | ||
"stationLongitude", | ||
"timeZone", | ||
"sunrise", | ||
"sunset", | ||
"weatherCode", | ||
"weatherDescription", | ||
"maxTemperature", | ||
"minTemperature", | ||
"avgHeatIndex", | ||
"maxHeatIndex", | ||
"minHeatIndex", | ||
"maxWindChill", | ||
"minWindChill", | ||
"maxFeelsLike", | ||
"minFeelsLike", | ||
"avgFeelsLike", | ||
"maxWindSpeed", | ||
"avgWetBulbGlobeTemp", | ||
"maxWetBulbGlobeTemp", | ||
"minWetBulbGlobeTemp", | ||
"minutesOfSunshine", | ||
"cornHeatUnit", | ||
"evapotranspiration" | ||
], | ||
"platformParameters": [ | ||
"cloudCover", | ||
"dewPoint", | ||
"growingDegreeDay", | ||
"precipitation", | ||
"pressure", | ||
"relativeHumidity", | ||
"temperature", | ||
"wetBulbTemperature", | ||
"dateTime", | ||
"windChill", | ||
"windSpeed", | ||
"windDirection" | ||
], | ||
"unitsSupported": { | ||
"key": "units", | ||
"values": [ | ||
"us", | ||
"si" | ||
] | ||
}, | ||
"apiInputParameters": [ | ||
"stationId", | ||
"lat", | ||
"lon", | ||
"days", | ||
"units", | ||
"precision", | ||
"sector" | ||
] | ||
} | ||
] | ||
}, | ||
"name": "DTN.ContentServices" | ||
} | ||
} | ||
} | ||
} |
Oops, something went wrong.