Skip to content

Commit a100f52

Browse files
authored
Fixing s360 swagger correctness (#15421)
* fixing issues with swagger correctness. * adding example changes * updated description and max item count for labels and tags. * adding validation rules for tags. * fixing spell check.
1 parent 70626b9 commit a100f52

File tree

7 files changed

+45
-7
lines changed

7 files changed

+45
-7
lines changed

specification/billing/resource-manager/Microsoft.Billing/stable/2020-05-01/billing.json

Lines changed: 23 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4762,7 +4762,7 @@
47624762
"additionalProperties": {
47634763
"type": "string"
47644764
},
4765-
"maxItems": 1000
4765+
"maxItems": 50
47664766
},
47674767
"state": {
47684768
"description": "Identifies the state of an invoice section.",
@@ -4782,6 +4782,14 @@
47824782
"type": "string",
47834783
"readOnly": true
47844784
},
4785+
"tags": {
4786+
"type": "object",
4787+
"description": "Dictionary of metadata associated with the invoice section. Maximum key/value length supported of 256 characters. Keys/value should not empty value nor null. Keys can not contain < > % & \\ ? /",
4788+
"additionalProperties": {
4789+
"type": "string"
4790+
},
4791+
"maxItems": 50
4792+
},
47854793
"targetCloud": {
47864794
"description": "Identifies the cloud environments that are associated with an invoice section. This is a system managed optional field and gets updated as the invoice section gets associated with accounts in various clouds.",
47874795
"$ref": "#/definitions/TargetCloud",
@@ -5332,6 +5340,12 @@
53325340
"$ref": "#/definitions/Product"
53335341
}
53345342
},
5343+
"totalCount": {
5344+
"description": "Total number of records.",
5345+
"type": "number",
5346+
"format": "int32",
5347+
"readOnly": true
5348+
},
53355349
"nextLink": {
53365350
"description": "The link (url) to the next page of results.",
53375351
"type": "string",
@@ -5679,6 +5693,14 @@
56795693
"description": "The sku description of the Azure plan for the subscription.",
56805694
"type": "string",
56815695
"readOnly": true
5696+
},
5697+
"suspensionReasons": {
5698+
"description": "The suspension reason for a subscription. Applies only to subscriptions in Microsoft Online Services Program billing accounts.",
5699+
"type": "array",
5700+
"readOnly": true,
5701+
"items": {
5702+
"type": "string"
5703+
}
56825704
}
56835705
}
56845706
},

specification/billing/resource-manager/Microsoft.Billing/stable/2020-05-01/examples/InvoiceSection.json

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,11 @@
1818
"costCategory": "Support"
1919
},
2020
"state": "Active",
21-
"systemId": "XX1X-XXAA-XXX-ZZZ"
21+
"systemId": "XX1X-XXAA-XXX-ZZZ",
22+
"tags": {
23+
"pcCode": "A123456",
24+
"costCategory": "Support"
25+
}
2226
}
2327
}
2428
}

specification/billing/resource-manager/Microsoft.Billing/stable/2020-05-01/examples/InvoiceSectionsListByBillingProfile.json

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,11 @@
1919
"costCategory": "Support"
2020
},
2121
"state": "Active",
22-
"systemId": "XX1X-XXAA-XXX-ZZZ"
22+
"systemId": "XX1X-XXAA-XXX-ZZZ",
23+
"tags": {
24+
"pcCode": "A123456",
25+
"costCategory": "Support"
26+
}
2327
}
2428
},
2529
{
@@ -34,6 +38,10 @@
3438
},
3539
"state": "Restricted",
3640
"systemId": "YY1X-BBAA-XXX-ZZZ",
41+
"tags": {
42+
"pcCode": "Z223456",
43+
"costCategory": "Marketing"
44+
},
3745
"targetCloud": "USSec"
3846
}
3947
}

specification/billing/resource-manager/Microsoft.Billing/stable/2020-05-01/examples/ProductsListByBillingAccount.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,8 @@
6363
"billingProfileDisplayName": "Contoso operations billing"
6464
}
6565
}
66-
]
66+
],
67+
"totalCount": 2
6768
}
6869
}
6970
}

specification/billing/resource-manager/Microsoft.Billing/stable/2020-05-01/examples/ProductsListByBillingProfile.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,8 @@
6464
"billingProfileDisplayName": "Contoso operations billing"
6565
}
6666
}
67-
]
67+
],
68+
"totalCount": 2
6869
}
6970
}
7071
}

specification/billing/resource-manager/Microsoft.Billing/stable/2020-05-01/examples/ProductsListByCustomer.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,8 @@
6868
"billingProfileDisplayName": "Contoso operations billing"
6969
}
7070
}
71-
]
71+
],
72+
"totalCount": 2
7273
}
7374
}
7475
}

specification/billing/resource-manager/Microsoft.Billing/stable/2020-05-01/examples/ProductsListByInvoiceSection.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,8 @@
6464
"billingProfileDisplayName": "Contoso operations billing"
6565
}
6666
}
67-
]
67+
],
68+
"totalCount": 2
6869
}
6970
}
7071
}

0 commit comments

Comments
 (0)