Skip to content

Commit 87af25c

Browse files
author
Autogenerator Pipeline
committed
Autogenerate schemas
1 parent bd64aca commit 87af25c

File tree

3 files changed

+346
-0
lines changed

3 files changed

+346
-0
lines changed
Lines changed: 154 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,154 @@
1+
{
2+
"id": "https://schema.management.azure.com/schemas/2021-03-15-preview/Microsoft.ExtendedLocation.json#",
3+
"$schema": "http://json-schema.org/draft-04/schema#",
4+
"title": "Microsoft.ExtendedLocation",
5+
"description": "Microsoft ExtendedLocation Resource Types",
6+
"resourceDefinitions": {
7+
"customLocations": {
8+
"type": "object",
9+
"properties": {
10+
"apiVersion": {
11+
"type": "string",
12+
"enum": [
13+
"2021-03-15-preview"
14+
]
15+
},
16+
"location": {
17+
"type": "string",
18+
"description": "The geo-location where the resource lives"
19+
},
20+
"name": {
21+
"oneOf": [
22+
{
23+
"type": "string",
24+
"pattern": "^[a-zA-Z0-9]$|^[a-zA-Z0-9][-_a-zA-Z0-9]{0,61}[a-zA-Z0-9]$",
25+
"minLength": 1,
26+
"maxLength": 63
27+
},
28+
{
29+
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
30+
}
31+
],
32+
"description": "Custom Locations name."
33+
},
34+
"properties": {
35+
"oneOf": [
36+
{
37+
"$ref": "#/definitions/CustomLocationProperties"
38+
},
39+
{
40+
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
41+
}
42+
],
43+
"description": "Properties for a custom location."
44+
},
45+
"tags": {
46+
"oneOf": [
47+
{
48+
"type": "object",
49+
"additionalProperties": {
50+
"type": "string"
51+
},
52+
"properties": {}
53+
},
54+
{
55+
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
56+
}
57+
],
58+
"description": "Resource tags."
59+
},
60+
"type": {
61+
"type": "string",
62+
"enum": [
63+
"Microsoft.ExtendedLocation/customLocations"
64+
]
65+
}
66+
},
67+
"required": [
68+
"apiVersion",
69+
"location",
70+
"name",
71+
"properties",
72+
"type"
73+
],
74+
"description": "Microsoft.ExtendedLocation/customLocations"
75+
}
76+
},
77+
"definitions": {
78+
"CustomLocationProperties": {
79+
"type": "object",
80+
"properties": {
81+
"authentication": {
82+
"oneOf": [
83+
{
84+
"$ref": "#/definitions/CustomLocationPropertiesAuthentication"
85+
},
86+
{
87+
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
88+
}
89+
],
90+
"description": "This is optional input that contains the authentication that should be used to generate the namespace."
91+
},
92+
"clusterExtensionIds": {
93+
"oneOf": [
94+
{
95+
"type": "array",
96+
"items": {
97+
"type": "string"
98+
}
99+
},
100+
{
101+
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
102+
}
103+
],
104+
"description": "Contains the reference to the add-on that contains charts to deploy CRDs and operators."
105+
},
106+
"displayName": {
107+
"type": "string",
108+
"description": "Display name for the Custom Locations location."
109+
},
110+
"hostResourceId": {
111+
"type": "string",
112+
"description": "Connected Cluster or AKS Cluster. The Custom Locations RP will perform a checkAccess API for listAdminCredentials permissions."
113+
},
114+
"hostType": {
115+
"oneOf": [
116+
{
117+
"type": "string",
118+
"enum": [
119+
"Kubernetes"
120+
]
121+
},
122+
{
123+
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
124+
}
125+
],
126+
"description": "Type of host the Custom Locations is referencing (Kubernetes, etc...)."
127+
},
128+
"namespace": {
129+
"type": "string",
130+
"description": "Kubernetes namespace that will be created on the specified cluster."
131+
},
132+
"provisioningState": {
133+
"type": "string",
134+
"description": "Provisioning State for the Custom Location."
135+
}
136+
},
137+
"description": "Properties for a custom location."
138+
},
139+
"CustomLocationPropertiesAuthentication": {
140+
"type": "object",
141+
"properties": {
142+
"type": {
143+
"type": "string",
144+
"description": "The type of the Custom Locations authentication"
145+
},
146+
"value": {
147+
"type": "string",
148+
"description": "The kubeconfig value."
149+
}
150+
},
151+
"description": "This is optional input that contains the authentication that should be used to generate the namespace."
152+
}
153+
}
154+
}
Lines changed: 186 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,186 @@
1+
{
2+
"id": "https://schema.management.azure.com/schemas/2021-08-15/Microsoft.ExtendedLocation.json#",
3+
"$schema": "http://json-schema.org/draft-04/schema#",
4+
"title": "Microsoft.ExtendedLocation",
5+
"description": "Microsoft ExtendedLocation Resource Types",
6+
"resourceDefinitions": {
7+
"customLocations": {
8+
"type": "object",
9+
"properties": {
10+
"apiVersion": {
11+
"type": "string",
12+
"enum": [
13+
"2021-08-15"
14+
]
15+
},
16+
"identity": {
17+
"oneOf": [
18+
{
19+
"$ref": "#/definitions/Identity"
20+
},
21+
{
22+
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
23+
}
24+
],
25+
"description": "Identity for the resource."
26+
},
27+
"location": {
28+
"type": "string",
29+
"description": "The geo-location where the resource lives"
30+
},
31+
"name": {
32+
"oneOf": [
33+
{
34+
"type": "string",
35+
"pattern": "^[a-zA-Z0-9]$|^[a-zA-Z0-9][-_a-zA-Z0-9]{0,61}[a-zA-Z0-9]$",
36+
"minLength": 1,
37+
"maxLength": 63
38+
},
39+
{
40+
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
41+
}
42+
],
43+
"description": "Custom Locations name."
44+
},
45+
"properties": {
46+
"oneOf": [
47+
{
48+
"$ref": "#/definitions/CustomLocationProperties"
49+
},
50+
{
51+
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
52+
}
53+
],
54+
"description": "Properties for a custom location."
55+
},
56+
"tags": {
57+
"oneOf": [
58+
{
59+
"type": "object",
60+
"additionalProperties": {
61+
"type": "string"
62+
},
63+
"properties": {}
64+
},
65+
{
66+
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
67+
}
68+
],
69+
"description": "Resource tags."
70+
},
71+
"type": {
72+
"type": "string",
73+
"enum": [
74+
"Microsoft.ExtendedLocation/customLocations"
75+
]
76+
}
77+
},
78+
"required": [
79+
"apiVersion",
80+
"location",
81+
"name",
82+
"properties",
83+
"type"
84+
],
85+
"description": "Microsoft.ExtendedLocation/customLocations"
86+
}
87+
},
88+
"definitions": {
89+
"CustomLocationProperties": {
90+
"type": "object",
91+
"properties": {
92+
"authentication": {
93+
"oneOf": [
94+
{
95+
"$ref": "#/definitions/CustomLocationPropertiesAuthentication"
96+
},
97+
{
98+
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
99+
}
100+
],
101+
"description": "This is optional input that contains the authentication that should be used to generate the namespace."
102+
},
103+
"clusterExtensionIds": {
104+
"oneOf": [
105+
{
106+
"type": "array",
107+
"items": {
108+
"type": "string"
109+
}
110+
},
111+
{
112+
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
113+
}
114+
],
115+
"description": "Contains the reference to the add-on that contains charts to deploy CRDs and operators."
116+
},
117+
"displayName": {
118+
"type": "string",
119+
"description": "Display name for the Custom Locations location."
120+
},
121+
"hostResourceId": {
122+
"type": "string",
123+
"description": "Connected Cluster or AKS Cluster. The Custom Locations RP will perform a checkAccess API for listAdminCredentials permissions."
124+
},
125+
"hostType": {
126+
"oneOf": [
127+
{
128+
"type": "string",
129+
"enum": [
130+
"Kubernetes"
131+
]
132+
},
133+
{
134+
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
135+
}
136+
],
137+
"description": "Type of host the Custom Locations is referencing (Kubernetes, etc...)."
138+
},
139+
"namespace": {
140+
"type": "string",
141+
"description": "Kubernetes namespace that will be created on the specified cluster."
142+
},
143+
"provisioningState": {
144+
"type": "string",
145+
"description": "Provisioning State for the Custom Location."
146+
}
147+
},
148+
"description": "Properties for a custom location."
149+
},
150+
"CustomLocationPropertiesAuthentication": {
151+
"type": "object",
152+
"properties": {
153+
"type": {
154+
"type": "string",
155+
"description": "The type of the Custom Locations authentication"
156+
},
157+
"value": {
158+
"type": "string",
159+
"description": "The kubeconfig value."
160+
}
161+
},
162+
"description": "This is optional input that contains the authentication that should be used to generate the namespace."
163+
},
164+
"Identity": {
165+
"type": "object",
166+
"properties": {
167+
"type": {
168+
"oneOf": [
169+
{
170+
"type": "string",
171+
"enum": [
172+
"SystemAssigned",
173+
"None"
174+
]
175+
},
176+
{
177+
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
178+
}
179+
],
180+
"description": "The identity type."
181+
}
182+
},
183+
"description": "Identity for the resource."
184+
}
185+
}
186+
}

schemas/common/autogeneratedResources.json

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6310,6 +6310,12 @@
63106310
{
63116311
"$ref": "https://schema.management.azure.com/schemas/2021-06-01-preview/Microsoft.EventHub.json#/resourceDefinitions/namespaces_privateEndpointConnections"
63126312
},
6313+
{
6314+
"$ref": "https://schema.management.azure.com/schemas/2021-03-15-preview/Microsoft.ExtendedLocation.json#/resourceDefinitions/customLocations"
6315+
},
6316+
{
6317+
"$ref": "https://schema.management.azure.com/schemas/2021-08-15/Microsoft.ExtendedLocation.json#/resourceDefinitions/customLocations"
6318+
},
63136319
{
63146320
"$ref": "https://schema.management.azure.com/schemas/2017-11-03-preview/Microsoft.HanaOnAzure.json#/resourceDefinitions/hanaInstances"
63156321
},

0 commit comments

Comments
 (0)