@@ -16,6 +16,12 @@ The request has been accepted for processing, but processing has not yet complet
16
16
model TypeSpec.Http.AcceptedResponse
17
17
```
18
18
19
+ #### Properties
20
+
21
+ | Name | Type | Description |
22
+ | ---------- | ----- | ---------------- |
23
+ | statusCode | ` 202 ` | The status code. |
24
+
19
25
### ` ApiKeyAuth ` {#TypeSpec.Http.ApiKeyAuth}
20
26
21
27
An API key is a token that a client provides when making API calls. The key can be sent in the query string:
@@ -49,6 +55,14 @@ model TypeSpec.Http.ApiKeyAuth<Location, Name>
49
55
| Location | The location of the API key |
50
56
| Name | The name of the API key |
51
57
58
+ #### Properties
59
+
60
+ | Name | Type | Description |
61
+ | ---- | ------------------------------- | ----------- |
62
+ | type | ` TypeSpec.Http.AuthType.apiKey ` | |
63
+ | in | ` Location ` | |
64
+ | name | ` Name ` | |
65
+
52
66
### ` AuthorizationCodeFlow ` {#TypeSpec.Http.AuthorizationCodeFlow}
53
67
54
68
Authorization Code flow
@@ -57,6 +71,16 @@ Authorization Code flow
57
71
model TypeSpec.Http.AuthorizationCodeFlow
58
72
```
59
73
74
+ #### Properties
75
+
76
+ | Name | Type | Description |
77
+ | ---------------- | ------------------------------------------------ | --------------------------------- |
78
+ | type | ` TypeSpec.Http.OAuth2FlowType.authorizationCode ` | authorization code flow |
79
+ | authorizationUrl | ` string ` | the authorization URL |
80
+ | tokenUrl | ` string ` | the token URL |
81
+ | refreshUrl? | ` string ` | the refresh URL |
82
+ | scopes? | ` string[] ` | list of scopes for the credential |
83
+
60
84
### ` BadRequestResponse ` {#TypeSpec.Http.BadRequestResponse}
61
85
62
86
The server could not understand the request due to invalid syntax.
@@ -65,6 +89,12 @@ The server could not understand the request due to invalid syntax.
65
89
model TypeSpec.Http.BadRequestResponse
66
90
```
67
91
92
+ #### Properties
93
+
94
+ | Name | Type | Description |
95
+ | ---------- | ----- | ---------------- |
96
+ | statusCode | ` 400 ` | The status code. |
97
+
68
98
### ` BasicAuth ` {#TypeSpec.Http.BasicAuth}
69
99
70
100
Basic authentication is a simple authentication scheme built into the HTTP protocol.
@@ -79,6 +109,13 @@ Authorization: Basic ZGVtbzpwQDU1dzByZA==
79
109
model TypeSpec.Http.BasicAuth
80
110
```
81
111
112
+ #### Properties
113
+
114
+ | Name | Type | Description |
115
+ | ------ | ----------------------------- | ------------------- |
116
+ | type | ` TypeSpec.Http.AuthType.http ` | Http authentication |
117
+ | scheme | ` "basic" ` | basic auth scheme |
118
+
82
119
### ` BearerAuth ` {#TypeSpec.Http.BearerAuth}
83
120
84
121
Bearer authentication (also called token authentication) is an HTTP authentication scheme that involves security tokens called bearer tokens.
@@ -93,6 +130,13 @@ Authorization: Bearer <token>
93
130
model TypeSpec.Http.BearerAuth
94
131
```
95
132
133
+ #### Properties
134
+
135
+ | Name | Type | Description |
136
+ | ------ | ----------------------------- | ------------------- |
137
+ | type | ` TypeSpec.Http.AuthType.http ` | Http authentication |
138
+ | scheme | ` "bearer" ` | bearer auth scheme |
139
+
96
140
### ` Body ` {#TypeSpec.Http.Body}
97
141
98
142
Defines a model with a single property of the given type, marked with ` @body ` .
@@ -110,6 +154,12 @@ model TypeSpec.Http.Body<Type>
110
154
| ---- | ---------------------------------------- |
111
155
| Type | The type of the model's ` body ` property. |
112
156
157
+ #### Properties
158
+
159
+ | Name | Type | Description |
160
+ | ---- | ------ | ----------- |
161
+ | body | ` Type ` | |
162
+
113
163
### ` ClientCredentialsFlow ` {#TypeSpec.Http.ClientCredentialsFlow}
114
164
115
165
Client credentials flow
@@ -118,6 +168,15 @@ Client credentials flow
118
168
model TypeSpec.Http.ClientCredentialsFlow
119
169
```
120
170
171
+ #### Properties
172
+
173
+ | Name | Type | Description |
174
+ | ----------- | ------------------------------------------------ | --------------------------------- |
175
+ | type | ` TypeSpec.Http.OAuth2FlowType.clientCredentials ` | client credential flow |
176
+ | tokenUrl | ` string ` | the token URL |
177
+ | refreshUrl? | ` string ` | the refresh URL |
178
+ | scopes? | ` string[] ` | list of scopes for the credential |
179
+
121
180
### ` ConflictResponse ` {#TypeSpec.Http.ConflictResponse}
122
181
123
182
The request conflicts with the current state of the server.
@@ -126,6 +185,12 @@ The request conflicts with the current state of the server.
126
185
model TypeSpec.Http.ConflictResponse
127
186
```
128
187
188
+ #### Properties
189
+
190
+ | Name | Type | Description |
191
+ | ---------- | ----- | ---------------- |
192
+ | statusCode | ` 409 ` | The status code. |
193
+
129
194
### ` CreatedResponse ` {#TypeSpec.Http.CreatedResponse}
130
195
131
196
The request has succeeded and a new resource has been created as a result.
@@ -134,6 +199,12 @@ The request has succeeded and a new resource has been created as a result.
134
199
model TypeSpec.Http.CreatedResponse
135
200
```
136
201
202
+ #### Properties
203
+
204
+ | Name | Type | Description |
205
+ | ---------- | ----- | ---------------- |
206
+ | statusCode | ` 201 ` | The status code. |
207
+
137
208
### ` ForbiddenResponse ` {#TypeSpec.Http.ForbiddenResponse}
138
209
139
210
Access is forbidden.
@@ -142,6 +213,12 @@ Access is forbidden.
142
213
model TypeSpec.Http.ForbiddenResponse
143
214
```
144
215
216
+ #### Properties
217
+
218
+ | Name | Type | Description |
219
+ | ---------- | ----- | ---------------- |
220
+ | statusCode | ` 403 ` | The status code. |
221
+
145
222
### ` HeaderOptions ` {#TypeSpec.Http.HeaderOptions}
146
223
147
224
Header options.
@@ -150,6 +227,13 @@ Header options.
150
227
model TypeSpec.Http.HeaderOptions
151
228
```
152
229
230
+ #### Properties
231
+
232
+ | Name | Type | Description |
233
+ | ------- | --------------------------------------------------------------------- | --------------------------------------------------------- |
234
+ | name? | ` string ` | Name of the header when sent over HTTP. |
235
+ | format? | ` "csv" \| "multi" \| "tsv" \| "ssv" \| "pipes" \| "simple" \| "form" ` | Determines the format of the array if type array is used. |
236
+
153
237
### ` ImplicitFlow ` {#TypeSpec.Http.ImplicitFlow}
154
238
155
239
Implicit flow
@@ -158,6 +242,15 @@ Implicit flow
158
242
model TypeSpec.Http.ImplicitFlow
159
243
```
160
244
245
+ #### Properties
246
+
247
+ | Name | Type | Description |
248
+ | ---------------- | --------------------------------------- | --------------------------------- |
249
+ | type | ` TypeSpec.Http.OAuth2FlowType.implicit ` | implicit flow |
250
+ | authorizationUrl | ` string ` | the authorization URL |
251
+ | refreshUrl? | ` string ` | the refresh URL |
252
+ | scopes? | ` string[] ` | list of scopes for the credential |
253
+
161
254
### ` LocationHeader ` {#TypeSpec.Http.LocationHeader}
162
255
163
256
The Location header contains the URL where the status of the long running operation can be checked.
@@ -166,6 +259,12 @@ The Location header contains the URL where the status of the long running operat
166
259
model TypeSpec.Http.LocationHeader
167
260
```
168
261
262
+ #### Properties
263
+
264
+ | Name | Type | Description |
265
+ | -------- | -------- | --------------------------------------------------------------------------------------------------- |
266
+ | location | ` string ` | The Location header contains the URL where the status of the long running operation can be checked. |
267
+
169
268
### ` MovedResponse ` {#TypeSpec.Http.MovedResponse}
170
269
171
270
The URL of the requested resource has been changed permanently. The new URL is given in the response.
@@ -174,6 +273,13 @@ The URL of the requested resource has been changed permanently. The new URL is g
174
273
model TypeSpec.Http.MovedResponse
175
274
```
176
275
276
+ #### Properties
277
+
278
+ | Name | Type | Description |
279
+ | ---------- | -------- | --------------------------------------------------------------------------------------------------- |
280
+ | statusCode | ` 301 ` | The status code. |
281
+ | location | ` string ` | The Location header contains the URL where the status of the long running operation can be checked. |
282
+
177
283
### ` NoAuth ` {#TypeSpec.Http.NoAuth}
178
284
179
285
This authentication option signifies that API is not secured at all.
@@ -183,6 +289,12 @@ It might be useful when overriding authentication on interface of operation leve
183
289
model TypeSpec.Http.NoAuth
184
290
```
185
291
292
+ #### Properties
293
+
294
+ | Name | Type | Description |
295
+ | ---- | ------------------------------- | ----------- |
296
+ | type | ` TypeSpec.Http.AuthType.noAuth ` | |
297
+
186
298
### ` NoContentResponse ` {#TypeSpec.Http.NoContentResponse}
187
299
188
300
There is no content to send for this request, but the headers may be useful.
@@ -191,6 +303,12 @@ There is no content to send for this request, but the headers may be useful.
191
303
model TypeSpec.Http.NoContentResponse
192
304
```
193
305
306
+ #### Properties
307
+
308
+ | Name | Type | Description |
309
+ | ---------- | ----- | ---------------- |
310
+ | statusCode | ` 204 ` | The status code. |
311
+
194
312
### ` NotFoundResponse ` {#TypeSpec.Http.NotFoundResponse}
195
313
196
314
The server cannot find the requested resource.
@@ -199,6 +317,12 @@ The server cannot find the requested resource.
199
317
model TypeSpec.Http.NotFoundResponse
200
318
```
201
319
320
+ #### Properties
321
+
322
+ | Name | Type | Description |
323
+ | ---------- | ----- | ---------------- |
324
+ | statusCode | ` 404 ` | The status code. |
325
+
202
326
### ` NotModifiedResponse ` {#TypeSpec.Http.NotModifiedResponse}
203
327
204
328
The client has made a conditional request and the resource has not been modified.
@@ -207,6 +331,12 @@ The client has made a conditional request and the resource has not been modified
207
331
model TypeSpec.Http.NotModifiedResponse
208
332
```
209
333
334
+ #### Properties
335
+
336
+ | Name | Type | Description |
337
+ | ---------- | ----- | ---------------- |
338
+ | statusCode | ` 304 ` | The status code. |
339
+
210
340
### ` OAuth2Auth ` {#TypeSpec.Http.OAuth2Auth}
211
341
212
342
OAuth 2.0 is an authorization protocol that gives an API client limited access to user data on a web server.
@@ -226,6 +356,14 @@ model TypeSpec.Http.OAuth2Auth<Flows, Scopes>
226
356
| Flows | The list of supported OAuth2 flows |
227
357
| Scopes | The list of OAuth2 scopes, which are common for every flow from ` Flows ` . This list is combined with the scopes defined in specific OAuth2 flows. |
228
358
359
+ #### Properties
360
+
361
+ | Name | Type | Description |
362
+ | ------------- | ------------------------------- | ----------- |
363
+ | type | ` TypeSpec.Http.AuthType.oauth2 ` | |
364
+ | flows | ` Flows ` | |
365
+ | defaultScopes | ` Scopes ` | |
366
+
229
367
### ` OkResponse ` {#TypeSpec.Http.OkResponse}
230
368
231
369
The request has succeeded.
@@ -234,6 +372,12 @@ The request has succeeded.
234
372
model TypeSpec.Http.OkResponse
235
373
```
236
374
375
+ #### Properties
376
+
377
+ | Name | Type | Description |
378
+ | ---------- | ----- | ---------------- |
379
+ | statusCode | ` 200 ` | The status code. |
380
+
237
381
### ` OpenIdConnectAuth ` {#TypeSpec.Http.OpenIdConnectAuth}
238
382
239
383
OpenID Connect (OIDC) is an identity layer built on top of the OAuth 2.0 protocol and supported by some OAuth 2.0 providers, such as Google and Azure Active Directory.
@@ -255,6 +399,13 @@ model TypeSpec.Http.OpenIdConnectAuth<ConnectUrl>
255
399
| ---------- | ----------- |
256
400
| ConnectUrl | |
257
401
402
+ #### Properties
403
+
404
+ | Name | Type | Description |
405
+ | ---------------- | -------------------------------------- | ----------------------------------------------------------- |
406
+ | type | ` TypeSpec.Http.AuthType.openIdConnect ` | Auth type |
407
+ | openIdConnectUrl | ` ConnectUrl ` | Connect url. It can be specified relative to the server URL |
408
+
258
409
### ` PasswordFlow ` {#TypeSpec.Http.PasswordFlow}
259
410
260
411
Resource Owner Password flow
@@ -263,6 +414,15 @@ Resource Owner Password flow
263
414
model TypeSpec.Http.PasswordFlow
264
415
```
265
416
417
+ #### Properties
418
+
419
+ | Name | Type | Description |
420
+ | ---------------- | --------------------------------------- | --------------------------------- |
421
+ | type | ` TypeSpec.Http.OAuth2FlowType.password ` | password flow |
422
+ | authorizationUrl | ` string ` | the authorization URL |
423
+ | refreshUrl? | ` string ` | the refresh URL |
424
+ | scopes? | ` string[] ` | list of scopes for the credential |
425
+
266
426
### ` PlainData ` {#TypeSpec.Http.PlainData}
267
427
268
428
Produces a new model with the same properties as T, but with ` @query ` ,
@@ -278,6 +438,10 @@ model TypeSpec.Http.PlainData<Data>
278
438
| ---- | -------------------------------------- |
279
439
| Data | The model to spread as the plain data. |
280
440
441
+ #### Properties
442
+
443
+ None
444
+
281
445
### ` QueryOptions ` {#TypeSpec.Http.QueryOptions}
282
446
283
447
Query parameter options.
@@ -286,6 +450,13 @@ Query parameter options.
286
450
model TypeSpec.Http.QueryOptions
287
451
```
288
452
453
+ #### Properties
454
+
455
+ | Name | Type | Description |
456
+ | ------- | --------------------------------------------------------------------- | --------------------------------------------------------- |
457
+ | name? | ` string ` | Name of the query when included in the url. |
458
+ | format? | ` "multi" \| "csv" \| "ssv" \| "tsv" \| "simple" \| "form" \| "pipes" ` | Determines the format of the array if type array is used. |
459
+
289
460
### ` Response ` {#TypeSpec.Http.Response}
290
461
291
462
Describes an HTTP response.
@@ -300,6 +471,12 @@ model TypeSpec.Http.Response<Status>
300
471
| ------ | -------------------------------- |
301
472
| Status | The status code of the response. |
302
473
474
+ #### Properties
475
+
476
+ | Name | Type | Description |
477
+ | ---------- | -------- | ----------- |
478
+ | statusCode | ` Status ` | |
479
+
303
480
### ` UnauthorizedResponse ` {#TypeSpec.Http.UnauthorizedResponse}
304
481
305
482
Access is unauthorized.
@@ -308,6 +485,12 @@ Access is unauthorized.
308
485
model TypeSpec.Http.UnauthorizedResponse
309
486
```
310
487
488
+ #### Properties
489
+
490
+ | Name | Type | Description |
491
+ | ---------- | ----- | ---------------- |
492
+ | statusCode | ` 401 ` | The status code. |
493
+
311
494
### ` ApiKeyLocation ` {#TypeSpec.Http.ApiKeyLocation}
312
495
313
496
Describes the location of the API key
0 commit comments