Skip to content

Commit 70759b9

Browse files
committed
Revert "Autogenerate schemas"
This reverts commit d56ad31.
1 parent 00c191a commit 70759b9

File tree

5 files changed

+880
-0
lines changed

5 files changed

+880
-0
lines changed
Lines changed: 184 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,184 @@
1+
{
2+
"id": "https://schema.management.azure.com/schemas/2020-12-01-preview/Microsoft.ConfidentialLedger.json#",
3+
"$schema": "http://json-schema.org/draft-04/schema#",
4+
"title": "Microsoft.ConfidentialLedger",
5+
"description": "Microsoft ConfidentialLedger Resource Types",
6+
"resourceDefinitions": {
7+
"ledgers": {
8+
"type": "object",
9+
"properties": {
10+
"apiVersion": {
11+
"type": "string",
12+
"enum": [
13+
"2020-12-01-preview"
14+
]
15+
},
16+
"location": {
17+
"type": "string",
18+
"description": "The Azure location where the Confidential Ledger is running."
19+
},
20+
"name": {
21+
"oneOf": [
22+
{
23+
"type": "string",
24+
"pattern": "^[a-zA-Z0-9]"
25+
},
26+
{
27+
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
28+
}
29+
],
30+
"description": "Name of the Confidential Ledger"
31+
},
32+
"properties": {
33+
"oneOf": [
34+
{
35+
"$ref": "#/definitions/LedgerProperties"
36+
},
37+
{
38+
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
39+
}
40+
],
41+
"description": "Additional Confidential Ledger properties."
42+
},
43+
"tags": {
44+
"oneOf": [
45+
{
46+
"type": "object",
47+
"additionalProperties": {
48+
"type": "string"
49+
},
50+
"properties": {}
51+
},
52+
{
53+
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
54+
}
55+
],
56+
"description": "Additional tags for Confidential Ledger"
57+
},
58+
"type": {
59+
"type": "string",
60+
"enum": [
61+
"Microsoft.ConfidentialLedger/ledgers"
62+
]
63+
}
64+
},
65+
"required": [
66+
"apiVersion",
67+
"name",
68+
"properties",
69+
"type"
70+
],
71+
"description": "Microsoft.ConfidentialLedger/ledgers"
72+
}
73+
},
74+
"definitions": {
75+
"AADBasedSecurityPrincipal": {
76+
"type": "object",
77+
"properties": {
78+
"ledgerRoleName": {
79+
"oneOf": [
80+
{
81+
"type": "string",
82+
"enum": [
83+
"Reader",
84+
"Contributor",
85+
"Administrator"
86+
]
87+
},
88+
{
89+
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
90+
}
91+
]
92+
},
93+
"principalId": {
94+
"type": "string",
95+
"description": "UUID/GUID based Principal Id of the Security Principal"
96+
},
97+
"tenantId": {
98+
"type": "string",
99+
"description": "UUID/GUID based Tenant Id of the Security Principal"
100+
}
101+
},
102+
"description": "AAD based security principal with associated Ledger RoleName"
103+
},
104+
"CertBasedSecurityPrincipal": {
105+
"type": "object",
106+
"properties": {
107+
"cert": {
108+
"type": "string",
109+
"description": "Public key of the user cert (.pem or .cer)"
110+
},
111+
"ledgerRoleName": {
112+
"oneOf": [
113+
{
114+
"type": "string",
115+
"enum": [
116+
"Reader",
117+
"Contributor",
118+
"Administrator"
119+
]
120+
},
121+
{
122+
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
123+
}
124+
]
125+
}
126+
},
127+
"description": "Cert based security principal with Ledger RoleName"
128+
},
129+
"LedgerProperties": {
130+
"type": "object",
131+
"properties": {
132+
"aadBasedSecurityPrincipals": {
133+
"oneOf": [
134+
{
135+
"type": "array",
136+
"items": {
137+
"$ref": "#/definitions/AADBasedSecurityPrincipal"
138+
}
139+
},
140+
{
141+
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
142+
}
143+
],
144+
"description": "Array of all AAD based Security Principals."
145+
},
146+
"certBasedSecurityPrincipals": {
147+
"oneOf": [
148+
{
149+
"type": "array",
150+
"items": {
151+
"$ref": "#/definitions/CertBasedSecurityPrincipal"
152+
}
153+
},
154+
{
155+
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
156+
}
157+
],
158+
"description": "Array of all cert based Security Principals."
159+
},
160+
"ledgerStorageAccount": {
161+
"type": "string",
162+
"description": "Name of the Blob Storage Account for saving ledger files"
163+
},
164+
"ledgerType": {
165+
"oneOf": [
166+
{
167+
"type": "string",
168+
"enum": [
169+
"Unknown",
170+
"Public",
171+
"Private"
172+
]
173+
},
174+
{
175+
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
176+
}
177+
],
178+
"description": "Type of Confidential Ledger."
179+
}
180+
},
181+
"description": "Additional Confidential Ledger properties."
182+
}
183+
}
184+
}
Lines changed: 180 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,180 @@
1+
{
2+
"id": "https://schema.management.azure.com/schemas/2021-05-13-preview/Microsoft.ConfidentialLedger.json#",
3+
"$schema": "http://json-schema.org/draft-04/schema#",
4+
"title": "Microsoft.ConfidentialLedger",
5+
"description": "Microsoft ConfidentialLedger Resource Types",
6+
"resourceDefinitions": {
7+
"ledgers": {
8+
"type": "object",
9+
"properties": {
10+
"apiVersion": {
11+
"type": "string",
12+
"enum": [
13+
"2021-05-13-preview"
14+
]
15+
},
16+
"location": {
17+
"type": "string",
18+
"description": "The Azure location where the Confidential Ledger is running."
19+
},
20+
"name": {
21+
"oneOf": [
22+
{
23+
"type": "string",
24+
"pattern": "^[a-zA-Z0-9]"
25+
},
26+
{
27+
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
28+
}
29+
],
30+
"description": "Name of the Confidential Ledger"
31+
},
32+
"properties": {
33+
"oneOf": [
34+
{
35+
"$ref": "#/definitions/LedgerProperties"
36+
},
37+
{
38+
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
39+
}
40+
],
41+
"description": "Additional Confidential Ledger properties."
42+
},
43+
"tags": {
44+
"oneOf": [
45+
{
46+
"type": "object",
47+
"additionalProperties": {
48+
"type": "string"
49+
},
50+
"properties": {}
51+
},
52+
{
53+
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
54+
}
55+
],
56+
"description": "Additional tags for Confidential Ledger"
57+
},
58+
"type": {
59+
"type": "string",
60+
"enum": [
61+
"Microsoft.ConfidentialLedger/ledgers"
62+
]
63+
}
64+
},
65+
"required": [
66+
"apiVersion",
67+
"name",
68+
"properties",
69+
"type"
70+
],
71+
"description": "Microsoft.ConfidentialLedger/ledgers"
72+
}
73+
},
74+
"definitions": {
75+
"AADBasedSecurityPrincipal": {
76+
"type": "object",
77+
"properties": {
78+
"ledgerRoleName": {
79+
"oneOf": [
80+
{
81+
"type": "string",
82+
"enum": [
83+
"Reader",
84+
"Contributor",
85+
"Administrator"
86+
]
87+
},
88+
{
89+
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
90+
}
91+
]
92+
},
93+
"principalId": {
94+
"type": "string",
95+
"description": "UUID/GUID based Principal Id of the Security Principal"
96+
},
97+
"tenantId": {
98+
"type": "string",
99+
"description": "UUID/GUID based Tenant Id of the Security Principal"
100+
}
101+
},
102+
"description": "AAD based security principal with associated Ledger RoleName"
103+
},
104+
"CertBasedSecurityPrincipal": {
105+
"type": "object",
106+
"properties": {
107+
"cert": {
108+
"type": "string",
109+
"description": "Public key of the user cert (.pem or .cer)"
110+
},
111+
"ledgerRoleName": {
112+
"oneOf": [
113+
{
114+
"type": "string",
115+
"enum": [
116+
"Reader",
117+
"Contributor",
118+
"Administrator"
119+
]
120+
},
121+
{
122+
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
123+
}
124+
]
125+
}
126+
},
127+
"description": "Cert based security principal with Ledger RoleName"
128+
},
129+
"LedgerProperties": {
130+
"type": "object",
131+
"properties": {
132+
"aadBasedSecurityPrincipals": {
133+
"oneOf": [
134+
{
135+
"type": "array",
136+
"items": {
137+
"$ref": "#/definitions/AADBasedSecurityPrincipal"
138+
}
139+
},
140+
{
141+
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
142+
}
143+
],
144+
"description": "Array of all AAD based Security Principals."
145+
},
146+
"certBasedSecurityPrincipals": {
147+
"oneOf": [
148+
{
149+
"type": "array",
150+
"items": {
151+
"$ref": "#/definitions/CertBasedSecurityPrincipal"
152+
}
153+
},
154+
{
155+
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
156+
}
157+
],
158+
"description": "Array of all cert based Security Principals."
159+
},
160+
"ledgerType": {
161+
"oneOf": [
162+
{
163+
"type": "string",
164+
"enum": [
165+
"Unknown",
166+
"Public",
167+
"Private"
168+
]
169+
},
170+
{
171+
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
172+
}
173+
],
174+
"description": "Type of Confidential Ledger."
175+
}
176+
},
177+
"description": "Additional Confidential Ledger properties."
178+
}
179+
}
180+
}

0 commit comments

Comments
 (0)