Skip to content

Commit b782c8d

Browse files
author
msftbot[bot]
authored
[ReleasePR servicelinker] add azure-resource-manager-schema to Microsoft.Servicelinker (#1939)
Create to sync Azure/azure-rest-api-specs#16176 [ReCreate this PR](https://github.com/azure-resource-manager-schemas/compare/main...AzureSDKAutomation:sdkAuto/servicelinker?expand=1)
2 parents 1753d7d + 3ba7a7e commit b782c8d

File tree

1 file changed

+239
-0
lines changed

1 file changed

+239
-0
lines changed
Lines changed: 239 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,239 @@
1+
{
2+
"id": "https://schema.management.azure.com/schemas/2021-11-01-preview/Microsoft.ServiceLinker.json#",
3+
"$schema": "http://json-schema.org/draft-04/schema#",
4+
"title": "Microsoft.ServiceLinker",
5+
"description": "Microsoft ServiceLinker Resource Types",
6+
"resourceDefinitions": {},
7+
"unknown_resourceDefinitions": {
8+
"linkers": {
9+
"type": "object",
10+
"properties": {
11+
"apiVersion": {
12+
"type": "string",
13+
"enum": [
14+
"2021-11-01-preview"
15+
]
16+
},
17+
"name": {
18+
"type": "string",
19+
"description": "The name Linker resource."
20+
},
21+
"properties": {
22+
"oneOf": [
23+
{
24+
"$ref": "#/definitions/LinkerProperties"
25+
},
26+
{
27+
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
28+
}
29+
],
30+
"description": "The properties of the linker."
31+
},
32+
"type": {
33+
"type": "string",
34+
"enum": [
35+
"Microsoft.ServiceLinker/linkers"
36+
]
37+
}
38+
},
39+
"required": [
40+
"apiVersion",
41+
"name",
42+
"properties",
43+
"type"
44+
],
45+
"description": "Microsoft.ServiceLinker/linkers"
46+
}
47+
},
48+
"definitions": {
49+
"AuthInfoBase": {
50+
"type": "object",
51+
"oneOf": [
52+
{
53+
"$ref": "#/definitions/SecretAuthInfo"
54+
},
55+
{
56+
"$ref": "#/definitions/UserAssignedIdentityAuthInfo"
57+
},
58+
{
59+
"$ref": "#/definitions/SystemAssignedIdentityAuthInfo"
60+
},
61+
{
62+
"$ref": "#/definitions/ServicePrincipalSecretAuthInfo"
63+
},
64+
{
65+
"$ref": "#/definitions/ServicePrincipalCertificateAuthInfo"
66+
}
67+
],
68+
"properties": {},
69+
"description": "The authentication info"
70+
},
71+
"LinkerProperties": {
72+
"type": "object",
73+
"properties": {
74+
"authInfo": {
75+
"oneOf": [
76+
{
77+
"$ref": "#/definitions/AuthInfoBase"
78+
},
79+
{
80+
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
81+
}
82+
],
83+
"description": "The authentication info"
84+
},
85+
"clientType": {
86+
"oneOf": [
87+
{
88+
"type": "string",
89+
"enum": [
90+
"none",
91+
"dotnet",
92+
"java",
93+
"python",
94+
"go",
95+
"php",
96+
"ruby",
97+
"django",
98+
"nodejs",
99+
"springBoot"
100+
]
101+
},
102+
{
103+
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
104+
}
105+
],
106+
"description": "The application client type."
107+
},
108+
"targetId": {
109+
"type": "string",
110+
"description": "The resource Id of target service."
111+
}
112+
},
113+
"description": "The properties of the linker."
114+
},
115+
"SecretAuthInfo": {
116+
"type": "object",
117+
"properties": {
118+
"authType": {
119+
"type": "string",
120+
"enum": [
121+
"secret"
122+
]
123+
},
124+
"name": {
125+
"type": "string",
126+
"description": "Username or account name for secret auth."
127+
},
128+
"secret": {
129+
"type": "string",
130+
"description": "Password or account key for secret auth."
131+
}
132+
},
133+
"required": [
134+
"authType"
135+
],
136+
"description": "The authentication info when authType is secret"
137+
},
138+
"ServicePrincipalCertificateAuthInfo": {
139+
"type": "object",
140+
"properties": {
141+
"authType": {
142+
"type": "string",
143+
"enum": [
144+
"servicePrincipalCertificate"
145+
]
146+
},
147+
"certificate": {
148+
"type": "string",
149+
"description": "ServicePrincipal certificate for servicePrincipal auth."
150+
},
151+
"clientId": {
152+
"type": "string",
153+
"description": "Application clientId for servicePrincipal auth."
154+
},
155+
"principalId": {
156+
"type": "string",
157+
"description": "Principal Id for servicePrincipal auth."
158+
}
159+
},
160+
"required": [
161+
"authType",
162+
"certificate",
163+
"clientId",
164+
"principalId"
165+
],
166+
"description": "The authentication info when authType is servicePrincipal certificate"
167+
},
168+
"ServicePrincipalSecretAuthInfo": {
169+
"type": "object",
170+
"properties": {
171+
"authType": {
172+
"type": "string",
173+
"enum": [
174+
"servicePrincipalSecret"
175+
]
176+
},
177+
"clientId": {
178+
"type": "string",
179+
"description": "ServicePrincipal application clientId for servicePrincipal auth."
180+
},
181+
"principalId": {
182+
"type": "string",
183+
"description": "Principal Id for servicePrincipal auth."
184+
},
185+
"secret": {
186+
"type": "string",
187+
"description": "Secret for servicePrincipal auth."
188+
}
189+
},
190+
"required": [
191+
"authType",
192+
"clientId",
193+
"principalId",
194+
"secret"
195+
],
196+
"description": "The authentication info when authType is servicePrincipal secret"
197+
},
198+
"SystemAssignedIdentityAuthInfo": {
199+
"type": "object",
200+
"properties": {
201+
"authType": {
202+
"type": "string",
203+
"enum": [
204+
"systemAssignedIdentity"
205+
]
206+
}
207+
},
208+
"required": [
209+
"authType"
210+
],
211+
"description": "The authentication info when authType is systemAssignedIdentity"
212+
},
213+
"UserAssignedIdentityAuthInfo": {
214+
"type": "object",
215+
"properties": {
216+
"authType": {
217+
"type": "string",
218+
"enum": [
219+
"userAssignedIdentity"
220+
]
221+
},
222+
"clientId": {
223+
"type": "string",
224+
"description": "Client Id for userAssignedIdentity."
225+
},
226+
"subscriptionId": {
227+
"type": "string",
228+
"description": "Subscription id for userAssignedIdentity."
229+
}
230+
},
231+
"required": [
232+
"authType",
233+
"clientId",
234+
"subscriptionId"
235+
],
236+
"description": "The authentication info when authType is userAssignedIdentity"
237+
}
238+
}
239+
}

0 commit comments

Comments
 (0)