Skip to content

Commit d288f6a

Browse files
SDKAutoAdithya Jayachandran
andcommitted
CodeGen from PR 12094 in Azure/azure-rest-api-specs
Updating WindowsIot Swagger Issues (S360 Swagger Linting) (#12094) * Updating ErrorDetails to match DefaultErrorResponseSchema (R4007) * Updated Schema for Delete to include 204 response (R4011 DeleteOperationResponses) * OperationsApiResponseSchema (R4018): Adding isDataAction attribute * Create/Update examples * Fix Swagger Issue 8945 (jagamu) * Model Validation Success * prettier check, passing Co-authored-by: Adithya Jayachandran <adjayach@microsoft.com>
1 parent 7cc1d3a commit d288f6a

File tree

2 files changed

+57
-15
lines changed

2 files changed

+57
-15
lines changed

schemas/2018-02-16-preview/Microsoft.WindowsIoT.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,4 +94,4 @@
9494
"description": "The properties of a Windows IoT Device Service."
9595
}
9696
}
97-
}
97+
}

schemas/2019-06-01/Microsoft.WindowsIoT.json

Lines changed: 56 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -7,38 +7,49 @@
77
"deviceServices": {
88
"type": "object",
99
"properties": {
10-
"adminDomainName": {
11-
"type": "string",
12-
"description": "Windows IoT Device Service OEM AAD domain"
13-
},
1410
"apiVersion": {
1511
"type": "string",
1612
"enum": [
1713
"2019-06-01"
1814
]
1915
},
20-
"billingDomainName": {
16+
"etag": {
2117
"type": "string",
22-
"description": "Windows IoT Device Service ODM AAD domain"
18+
"description": "The Etag field is *not* required. If it is provided in the response body, it must also be provided as a header per the normal ETag convention."
19+
},
20+
"location": {
21+
"type": "string",
22+
"description": "The Azure Region where the resource lives"
2323
},
2424
"name": {
2525
"type": "string",
2626
"description": "The name of the Windows IoT Device Service."
2727
},
28-
"notes": {
29-
"type": "string",
30-
"description": "Windows IoT Device Service notes."
28+
"properties": {
29+
"oneOf": [
30+
{
31+
"$ref": "#/definitions/DeviceServiceProperties"
32+
},
33+
{
34+
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
35+
}
36+
],
37+
"description": "The properties of a Windows IoT Device Service."
3138
},
32-
"quantity": {
39+
"tags": {
3340
"oneOf": [
3441
{
35-
"type": "integer"
42+
"type": "object",
43+
"additionalProperties": {
44+
"type": "string"
45+
},
46+
"properties": {}
3647
},
3748
{
3849
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
3950
}
4051
],
41-
"description": "Windows IoT Device Service device allocation,"
52+
"description": "Resource tags."
4253
},
4354
"type": {
4455
"type": "string",
@@ -50,10 +61,41 @@
5061
"required": [
5162
"apiVersion",
5263
"name",
64+
"properties",
5365
"type"
5466
],
5567
"description": "Microsoft.WindowsIoT/deviceServices"
5668
}
5769
},
58-
"definitions": {}
59-
}
70+
"definitions": {
71+
"DeviceServiceProperties": {
72+
"type": "object",
73+
"properties": {
74+
"adminDomainName": {
75+
"type": "string",
76+
"description": "Windows IoT Device Service OEM AAD domain"
77+
},
78+
"billingDomainName": {
79+
"type": "string",
80+
"description": "Windows IoT Device Service ODM AAD domain"
81+
},
82+
"notes": {
83+
"type": "string",
84+
"description": "Windows IoT Device Service notes."
85+
},
86+
"quantity": {
87+
"oneOf": [
88+
{
89+
"type": "integer"
90+
},
91+
{
92+
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
93+
}
94+
],
95+
"description": "Windows IoT Device Service device allocation,"
96+
}
97+
},
98+
"description": "The properties of a Windows IoT Device Service."
99+
}
100+
}
101+
}

0 commit comments

Comments
 (0)