Skip to content

Commit 8418888

Browse files
author
Autogenerator Pipeline
committed
Autogenerate schemas
1 parent 90db43f commit 8418888

File tree

3 files changed

+172
-52
lines changed

3 files changed

+172
-52
lines changed

schemas/2021-04-01-preview/Microsoft.ApiManagement.json

Lines changed: 157 additions & 51 deletions
Original file line numberDiff line numberDiff line change
@@ -123,6 +123,9 @@
123123
{
124124
"$ref": "#/definitions/service_products_childResource"
125125
},
126+
{
127+
"$ref": "#/definitions/service_schemas_childResource"
128+
},
126129
{
127130
"$ref": "#/definitions/service_subscriptions_childResource"
128131
},
@@ -717,23 +720,15 @@
717720
]
718721
},
719722
"name": {
720-
"oneOf": [
721-
{
722-
"type": "string",
723-
"pattern": "^[^*#&+:<>?]+$",
724-
"minLength": 1,
725-
"maxLength": 80
726-
},
727-
{
728-
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
729-
}
730-
],
731-
"description": "Schema identifier within an API. Must be unique in the current API Management service instance."
723+
"type": "string",
724+
"minLength": 1,
725+
"maxLength": 80,
726+
"description": "Schema id identifier. Must be unique in the current API Management service instance."
732727
},
733728
"properties": {
734729
"oneOf": [
735730
{
736-
"$ref": "#/definitions/SchemaContractProperties"
731+
"$ref": "#/definitions/ApiSchemaContractProperties"
737732
},
738733
{
739734
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
@@ -2226,6 +2221,47 @@
22262221
],
22272222
"description": "Microsoft.ApiManagement/service/products/tags"
22282223
},
2224+
"service_schemas": {
2225+
"type": "object",
2226+
"properties": {
2227+
"apiVersion": {
2228+
"type": "string",
2229+
"enum": [
2230+
"2021-04-01-preview"
2231+
]
2232+
},
2233+
"name": {
2234+
"type": "string",
2235+
"minLength": 1,
2236+
"maxLength": 80,
2237+
"description": "Schema id identifier. Must be unique in the current API Management service instance."
2238+
},
2239+
"properties": {
2240+
"oneOf": [
2241+
{
2242+
"$ref": "#/definitions/SchemaContractProperties"
2243+
},
2244+
{
2245+
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
2246+
}
2247+
],
2248+
"description": "Schema create or update contract Properties."
2249+
},
2250+
"type": {
2251+
"type": "string",
2252+
"enum": [
2253+
"Microsoft.ApiManagement/service/schemas"
2254+
]
2255+
}
2256+
},
2257+
"required": [
2258+
"apiVersion",
2259+
"name",
2260+
"properties",
2261+
"type"
2262+
],
2263+
"description": "Microsoft.ApiManagement/service/schemas"
2264+
},
22292265
"service_subscriptions": {
22302266
"type": "object",
22312267
"properties": {
@@ -3137,6 +3173,50 @@
31373173
},
31383174
"description": "API Release details"
31393175
},
3176+
"ApiSchemaContractProperties": {
3177+
"type": "object",
3178+
"properties": {
3179+
"contentType": {
3180+
"type": "string",
3181+
"description": "Must be a valid a media type used in a Content-Type header as defined in the RFC 2616. Media type of the schema document (e.g. application/json, application/xml). </br> - `Swagger` Schema use `application/vnd.ms-azure-apim.swagger.definitions+json` </br> - `WSDL` Schema use `application/vnd.ms-azure-apim.xsd+xml` </br> - `OpenApi` Schema use `application/vnd.oai.openapi.components+json` </br> - `WADL Schema` use `application/vnd.ms-azure-apim.wadl.grammars+xml`."
3182+
},
3183+
"document": {
3184+
"oneOf": [
3185+
{
3186+
"$ref": "#/definitions/ApiSchemaDocumentProperties"
3187+
},
3188+
{
3189+
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
3190+
}
3191+
],
3192+
"description": "Api Schema Document Properties."
3193+
}
3194+
},
3195+
"required": [
3196+
"contentType"
3197+
],
3198+
"description": "API Schema create or update contract Properties."
3199+
},
3200+
"ApiSchemaDocumentProperties": {
3201+
"type": "object",
3202+
"properties": {
3203+
"components": {
3204+
"type": "object",
3205+
"properties": {},
3206+
"description": "Types definitions. Used for Swagger/OpenAPI v2/v3 schemas only, null otherwise."
3207+
},
3208+
"definitions": {
3209+
"type": "object",
3210+
"properties": {},
3211+
"description": "Types definitions. Used for Swagger/OpenAPI v1 schemas only, null otherwise."
3212+
},
3213+
"value": {
3214+
"type": "string",
3215+
"description": "Json escaped string defining the document representing the Schema. Used for schemas other than Swagger/OpenAPI."
3216+
}
3217+
},
3218+
"description": "Api Schema Document Properties."
3219+
},
31403220
"ApiVersionConstraint": {
31413221
"type": "object",
31423222
"properties": {
@@ -5610,46 +5690,39 @@
56105690
"SchemaContractProperties": {
56115691
"type": "object",
56125692
"properties": {
5613-
"contentType": {
5693+
"description": {
56145694
"type": "string",
5615-
"description": "Must be a valid a media type used in a Content-Type header as defined in the RFC 2616. Media type of the schema document (e.g. application/json, application/xml). </br> - `Swagger` Schema use `application/vnd.ms-azure-apim.swagger.definitions+json` </br> - `WSDL` Schema use `application/vnd.ms-azure-apim.xsd+xml` </br> - `OpenApi` Schema use `application/vnd.oai.openapi.components+json` </br> - `WADL Schema` use `application/vnd.ms-azure-apim.wadl.grammars+xml`."
5695+
"description": "Free-form schema entity description."
56165696
},
56175697
"document": {
5698+
"type": "object",
5699+
"properties": {},
5700+
"description": "Schema Document Properties."
5701+
},
5702+
"schemaType": {
56185703
"oneOf": [
56195704
{
5620-
"$ref": "#/definitions/SchemaDocumentProperties"
5705+
"type": "string",
5706+
"enum": [
5707+
"xml",
5708+
"json"
5709+
]
56215710
},
56225711
{
56235712
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
56245713
}
56255714
],
5626-
"description": "Schema Document Properties."
5627-
}
5628-
},
5629-
"required": [
5630-
"contentType"
5631-
],
5632-
"description": "API Schema create or update contract Properties."
5633-
},
5634-
"SchemaDocumentProperties": {
5635-
"type": "object",
5636-
"properties": {
5637-
"components": {
5638-
"type": "object",
5639-
"properties": {},
5640-
"description": "Types definitions. Used for OpenAPI v3 schemas only, null otherwise."
5641-
},
5642-
"definitions": {
5643-
"type": "object",
5644-
"properties": {},
5645-
"description": "Types definitions. Used for OpenAPI v2 (Swagger) schemas only, null otherwise."
5715+
"description": "Schema Type. Immutable."
56465716
},
56475717
"value": {
56485718
"type": "string",
5649-
"description": "Json escaped string defining the document representing the Schema. Used for schemas other than Swagger/OpenAPI."
5719+
"description": "Json-encoded string for non json-based schema."
56505720
}
56515721
},
5652-
"description": "Schema Document Properties."
5722+
"required": [
5723+
"schemaType"
5724+
],
5725+
"description": "Schema create or update contract Properties."
56535726
},
56545727
"service_apis_childResource": {
56555728
"type": "object",
@@ -6109,23 +6182,15 @@
61096182
]
61106183
},
61116184
"name": {
6112-
"oneOf": [
6113-
{
6114-
"type": "string",
6115-
"pattern": "^[^*#&+:<>?]+$",
6116-
"minLength": 1,
6117-
"maxLength": 80
6118-
},
6119-
{
6120-
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
6121-
}
6122-
],
6123-
"description": "Schema identifier within an API. Must be unique in the current API Management service instance."
6185+
"type": "string",
6186+
"minLength": 1,
6187+
"maxLength": 80,
6188+
"description": "Schema id identifier. Must be unique in the current API Management service instance."
61246189
},
61256190
"properties": {
61266191
"oneOf": [
61276192
{
6128-
"$ref": "#/definitions/SchemaContractProperties"
6193+
"$ref": "#/definitions/ApiSchemaContractProperties"
61296194
},
61306195
{
61316196
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
@@ -7525,6 +7590,47 @@
75257590
],
75267591
"description": "Microsoft.ApiManagement/service/products/tags"
75277592
},
7593+
"service_schemas_childResource": {
7594+
"type": "object",
7595+
"properties": {
7596+
"apiVersion": {
7597+
"type": "string",
7598+
"enum": [
7599+
"2021-04-01-preview"
7600+
]
7601+
},
7602+
"name": {
7603+
"type": "string",
7604+
"minLength": 1,
7605+
"maxLength": 80,
7606+
"description": "Schema id identifier. Must be unique in the current API Management service instance."
7607+
},
7608+
"properties": {
7609+
"oneOf": [
7610+
{
7611+
"$ref": "#/definitions/SchemaContractProperties"
7612+
},
7613+
{
7614+
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
7615+
}
7616+
],
7617+
"description": "Schema create or update contract Properties."
7618+
},
7619+
"type": {
7620+
"type": "string",
7621+
"enum": [
7622+
"schemas"
7623+
]
7624+
}
7625+
},
7626+
"required": [
7627+
"apiVersion",
7628+
"name",
7629+
"properties",
7630+
"type"
7631+
],
7632+
"description": "Microsoft.ApiManagement/service/schemas"
7633+
},
75287634
"service_subscriptions_childResource": {
75297635
"type": "object",
75307636
"properties": {

schemas/2021-10-01/Microsoft.CostManagement.json

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -719,7 +719,7 @@
719719
"ReportConfigDefinition": {
720720
"type": "object",
721721
"properties": {
722-
"dataset": {
722+
"dataSet": {
723723
"oneOf": [
724724
{
725725
"$ref": "#/definitions/ReportConfigDataset"
@@ -730,6 +730,17 @@
730730
],
731731
"description": "The definition of data present in the report."
732732
},
733+
"includeMonetaryCommitment": {
734+
"oneOf": [
735+
{
736+
"type": "boolean"
737+
},
738+
{
739+
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
740+
}
741+
],
742+
"description": "If true, report includes monetary commitment."
743+
},
733744
"timeframe": {
734745
"oneOf": [
735746
{

schemas/common/autogeneratedResources.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1510,6 +1510,9 @@
15101510
{
15111511
"$ref": "https://schema.management.azure.com/schemas/2021-04-01-preview/Microsoft.ApiManagement.json#/resourceDefinitions/service_products_tags"
15121512
},
1513+
{
1514+
"$ref": "https://schema.management.azure.com/schemas/2021-04-01-preview/Microsoft.ApiManagement.json#/resourceDefinitions/service_schemas"
1515+
},
15131516
{
15141517
"$ref": "https://schema.management.azure.com/schemas/2021-04-01-preview/Microsoft.ApiManagement.json#/resourceDefinitions/service_subscriptions"
15151518
},

0 commit comments

Comments
 (0)