Skip to content

Commit 7e3958a

Browse files
john35452John Laievaou
authored
2021/11/18 Add AirQuality, Historical, and Tropical API (#16802)
* 2021/08/05 Add Tropical api * 2021/11/18 Add air quality api * 2021/11/18 Add Historical api * 2021/11/22 Update enum and add x-ms-client-name * 2021/11/23 Update examples * 2021/11/23 Update naming * 2021/11/23 Create parameter for Position * 2021/11/23 Update active storm * 2021/11/30 Change reponse to result * 2021/11/30 Add x-ms-client-name * 2021/11/30 Update timestamp, coordinate, and radius naming in SDK * 2021/11/30 Use WeatherUnit for Concentration * 2021/11/30 Update Daily Air quality dominantPollutant * 2021/11/30 Unify response format * 2021/11/30 Unify CurrentAirQuality and HourlyAirQualityForecast * 2021/12/01 Update window and weatherValue SDK name * 2021/12/02 Update coordinate and left, right SDK name * 2021/12/03 Add SDK name for results * 2021/12/03 Improve Object name * 2021/12/03 Update ActiveStorm * 2021/12/03 Remove needless object and update name * 2021/12/06 Add weather 2.0 directory * 2021/12/06 Recover Weather 1.0 Swagger file * 2021/12/07 Remove v2 from operationId * 2021/12/08 Update readme.md * Set default API version as 2.0 * 2022/01/07 Remove default value for api-version * 2022/01/07 Remove needless custom-words * 2022/01/11 Update api-version and add nextLink * 2022/01/11 Update api-version in readme.md Co-authored-by: John Lai <tingchiehlai@microsoft.com> Co-authored-by: evaou <speeder528@gmail.com>
1 parent bea32a0 commit 7e3958a

23 files changed

+8756
-1
lines changed

custom-words.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2441,6 +2441,8 @@ Ctlr
24412441
vcenters
24422442
Mwarev
24432443
pmem
2444+
actuals
2445+
Actuals
24442446
rawphysical
24452447
rawvirtual
24462448
sesparse

specification/maps/data-plane/Weather/readme.md

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,14 +27,23 @@ These are the global settings for Weather Client.
2727
``` yaml
2828
title: WeatherClient
2929
openapi-type: data-plane
30-
tag: 1.0-preview
30+
tag: 1.1
3131
# at some point those credentials will move away to Swagger according to [this](https://github.com/Azure/autorest/issues/3718)
3232
add-credentials: true
3333
credential-default-policy-type: BearerTokenCredentialPolicy
3434
credential-scopes: https://atlas.microsoft.com/.default
3535
```
3636
3737
38+
### Tag: 1.1
39+
40+
These settings apply only when `--tag=1.1` is specified on the command line.
41+
42+
``` yaml $(tag) == '1.1'
43+
input-file:
44+
- stable/1.1/weather.json
45+
```
46+
3847
### Tag: 1.0-preview
3948

4049
These settings apply only when `--tag=1.0-preview` is specified on the command line.
Lines changed: 62 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,62 @@
1+
{
2+
"parameters": {
3+
"api-version": "1.1",
4+
"format": "json"
5+
},
6+
"responses": {
7+
"200": {
8+
"body": {
9+
"results": [
10+
{
11+
"year": "2021",
12+
"basinId": "EP",
13+
"name": "Hilda",
14+
"isActive": true,
15+
"isSubtropical": false,
16+
"govId": 8
17+
},
18+
{
19+
"year": "2021",
20+
"basinId": "EP",
21+
"name": "TD 9E",
22+
"isActive": true,
23+
"isSubtropical": false,
24+
"govId": 9
25+
},
26+
{
27+
"year": "2021",
28+
"basinId": "NP",
29+
"name": "TWELVE",
30+
"isActive": true,
31+
"isSubtropical": false,
32+
"govId": 12
33+
},
34+
{
35+
"year": "2021",
36+
"basinId": "NP",
37+
"name": "LUPIT",
38+
"isActive": true,
39+
"isSubtropical": false,
40+
"govId": 13
41+
},
42+
{
43+
"year": "2021",
44+
"basinId": "NP",
45+
"name": "FOURTEEN",
46+
"isActive": true,
47+
"isSubtropical": false,
48+
"govId": 14
49+
},
50+
{
51+
"year": "2021",
52+
"basinId": "NP",
53+
"name": "FIFTEEN",
54+
"isActive": true,
55+
"isSubtropical": false,
56+
"govId": 15
57+
}
58+
]
59+
}
60+
}
61+
}
62+
}
Lines changed: 92 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,92 @@
1+
{
2+
"parameters": {
3+
"api-version": "1.1",
4+
"format": "json",
5+
"query": "47.632346,-122.13887"
6+
},
7+
"responses": {
8+
"200": {
9+
"body": {
10+
"results": [
11+
{
12+
"dateTime": "2021-07-19T02:00:00+00:00",
13+
"index": 21.6,
14+
"globalIndex": 22.1,
15+
"dominantPollutant": "Ozone",
16+
"category": "Fair",
17+
"categoryColor": "#FFC300",
18+
"description": "The air quality is generally acceptable for most individuals. However, sensitive groups may experience minor to moderate symptoms from long-term exposure.",
19+
"pollutants": [
20+
{
21+
"type": "NO2",
22+
"name": "Nitrogen Dioxide",
23+
"index": 6.7,
24+
"globalIndex": 6.7,
25+
"concentration": {
26+
"value": 13.4,
27+
"unit": "µg/m³",
28+
"unitType": 31
29+
}
30+
},
31+
{
32+
"type": "O3",
33+
"name": "Ozone",
34+
"index": 21.6,
35+
"globalIndex": 22.1,
36+
"concentration": {
37+
"value": 53.5,
38+
"unit": "µg/m³",
39+
"unitType": 31
40+
}
41+
},
42+
{
43+
"type": "PM10",
44+
"name": "Particulate Matter 10",
45+
"index": 11.3,
46+
"globalIndex": 12.2,
47+
"concentration": {
48+
"value": 12.2,
49+
"unit": "µg/m³",
50+
"unitType": 31
51+
}
52+
},
53+
{
54+
"type": "PM2.5",
55+
"name": "Particulate Matter 2.5",
56+
"index": 13.5,
57+
"globalIndex": 6.5,
58+
"concentration": {
59+
"value": 3.2,
60+
"unit": "µg/m³",
61+
"unitType": 31
62+
}
63+
},
64+
{
65+
"type": "CO",
66+
"name": "Carbon Monoxide",
67+
"index": 1.2,
68+
"globalIndex": 0.6,
69+
"concentration": {
70+
"value": 118.4,
71+
"unit": "µg/m³",
72+
"unitType": 31
73+
}
74+
},
75+
{
76+
"type": "SO2",
77+
"name": "Sulfur Dioxide",
78+
"index": 0.6,
79+
"globalIndex": 1.1,
80+
"concentration": {
81+
"value": 1.1,
82+
"unit": "µg/m³",
83+
"unitType": 31
84+
}
85+
}
86+
]
87+
}
88+
]
89+
}
90+
}
91+
}
92+
}
Lines changed: 179 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,179 @@
1+
{
2+
"parameters": {
3+
"api-version": "1.1",
4+
"format": "json",
5+
"query": "47.641268,-122.125679"
6+
},
7+
"responses": {
8+
"200": {
9+
"body": {
10+
"results": [
11+
{
12+
"dateTime": "2019-11-14T15:08:00-08:00",
13+
"phrase": "Cloudy",
14+
"iconCode": 7,
15+
"hasPrecipitation": false,
16+
"isDayTime": true,
17+
"temperature": {
18+
"value": 13.7,
19+
"unit": "C",
20+
"unitType": 17
21+
},
22+
"realFeelTemperature": {
23+
"value": 13.6,
24+
"unit": "C",
25+
"unitType": 17
26+
},
27+
"realFeelTemperatureShade": {
28+
"value": 13.6,
29+
"unit": "C",
30+
"unitType": 17
31+
},
32+
"relativeHumidity": 75,
33+
"dewPoint": {
34+
"value": 9.2,
35+
"unit": "C",
36+
"unitType": 17
37+
},
38+
"wind": {
39+
"direction": {
40+
"degrees": 315,
41+
"localizedDescription": "NW"
42+
},
43+
"speed": {
44+
"value": 3.6,
45+
"unit": "km/h",
46+
"unitType": 7
47+
}
48+
},
49+
"windGust": {
50+
"speed": {
51+
"value": 4.9,
52+
"unit": "km/h",
53+
"unitType": 7
54+
}
55+
},
56+
"uvIndex": 0,
57+
"uvIndexPhrase": "Low",
58+
"visibility": {
59+
"value": 8,
60+
"unit": "km",
61+
"unitType": 6
62+
},
63+
"obstructionsToVisibility": "",
64+
"cloudCover": 95,
65+
"ceiling": {
66+
"value": 4359,
67+
"unit": "m",
68+
"unitType": 5
69+
},
70+
"pressure": {
71+
"value": 1014.9,
72+
"unit": "mb",
73+
"unitType": 14
74+
},
75+
"pressureTendency": {
76+
"localizedDescription": "Steady",
77+
"code": "S"
78+
},
79+
"pastTwentyFourHourTemperatureDeparture": {
80+
"value": 1.8,
81+
"unit": "C",
82+
"unitType": 17
83+
},
84+
"apparentTemperature": {
85+
"value": 16.1,
86+
"unit": "C",
87+
"unitType": 17
88+
},
89+
"windChillTemperature": {
90+
"value": 13.9,
91+
"unit": "C",
92+
"unitType": 17
93+
},
94+
"wetBulbTemperature": {
95+
"value": 11.4,
96+
"unit": "C",
97+
"unitType": 17
98+
},
99+
"precipitationSummary": {
100+
"pastHour": {
101+
"value": 0.5,
102+
"unit": "mm",
103+
"unitType": 3
104+
},
105+
"pastThreeHours": {
106+
"value": 0.8,
107+
"unit": "mm",
108+
"unitType": 3
109+
},
110+
"pastSixHours": {
111+
"value": 0.8,
112+
"unit": "mm",
113+
"unitType": 3
114+
},
115+
"pastNineHours": {
116+
"value": 0.8,
117+
"unit": "mm",
118+
"unitType": 3
119+
},
120+
"pastTwelveHours": {
121+
"value": 0.8,
122+
"unit": "mm",
123+
"unitType": 3
124+
},
125+
"pastEighteenHours": {
126+
"value": 0.8,
127+
"unit": "mm",
128+
"unitType": 3
129+
},
130+
"pastTwentyFourHours": {
131+
"value": 0.8,
132+
"unit": "mm",
133+
"unitType": 3
134+
}
135+
},
136+
"temperatureSummary": {
137+
"pastSixHours": {
138+
"minimum": {
139+
"value": 8.3,
140+
"unit": "C",
141+
"unitType": 17
142+
},
143+
"maximum": {
144+
"value": 13.7,
145+
"unit": "C",
146+
"unitType": 17
147+
}
148+
},
149+
"pastTwelveHours": {
150+
"minimum": {
151+
"value": 5.9,
152+
"unit": "C",
153+
"unitType": 17
154+
},
155+
"maximum": {
156+
"value": 13.7,
157+
"unit": "C",
158+
"unitType": 17
159+
}
160+
},
161+
"pastTwentyFourHours": {
162+
"minimum": {
163+
"value": 5.9,
164+
"unit": "C",
165+
"unitType": 17
166+
},
167+
"maximum": {
168+
"value": 13.7,
169+
"unit": "C",
170+
"unitType": 17
171+
}
172+
}
173+
}
174+
}
175+
]
176+
}
177+
}
178+
}
179+
}

0 commit comments

Comments
 (0)