Skip to content

Commit

Permalink
Merging agrifood RP latest swagger for public preview readiness. (#20243
Browse files Browse the repository at this point in the history
)

* 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
4 people authored Aug 22, 2022
1 parent 2611327 commit 6080b01
Show file tree
Hide file tree
Showing 27 changed files with 3,014 additions and 8 deletions.

Large diffs are not rendered by default.

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"
}
}
}
}
}
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": {}
}
}
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"
}
}
}
}
}
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"
}
}
]
}
}
}
}
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"
}
}
}
}
}
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"
}
}
}
}
Loading

0 comments on commit 6080b01

Please sign in to comment.