Skip to content

Commit f6c24a1

Browse files
authored
Added builders and builds resource type api specifications (#23697)
* added builders and builds resource type api specifications * remove pid and update some naming * add new resource types to readme * fix builders schema valdiation * update linting * fixing more linting * updated for consistency with container app resource * pr feedback: canceled typo, managed identity from v4 to v3, and swap example containerApps to jobs to represent latest design * pr feedback, remove explicit 404 and add async headers for 201s
1 parent 260a6e9 commit f6c24a1

14 files changed

+1952
-0
lines changed

specification/app/resource-manager/Microsoft.App/preview/2023-05-01-preview/Builders.json

Lines changed: 488 additions & 0 deletions
Large diffs are not rendered by default.

specification/app/resource-manager/Microsoft.App/preview/2023-05-01-preview/Builds.json

Lines changed: 527 additions & 0 deletions
Large diffs are not rendered by default.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,102 @@
1+
{
2+
"operationId": "Builders_CreateOrUpdate",
3+
"title": "Builders_CreateOrUpdate_0",
4+
"parameters": {
5+
"subscriptionId": "subid",
6+
"resourceGroupName": "rg",
7+
"builderName": "testBuilder",
8+
"api-version": "2023-05-01-preview",
9+
"builderEnvelope": {
10+
"identity": {
11+
"type": "SystemAssigned,UserAssigned",
12+
"userAssignedIdentities": {
13+
"/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.ManagedIdentity/userAssignedIdentities/identity1": {}
14+
}
15+
},
16+
"properties": {
17+
"environmentId": "/subscriptions/subid/resourcegroups/rg/providers/Microsoft.App/managedEnvironments/testEnv"
18+
},
19+
"tags": {
20+
"company": "Microsoft"
21+
},
22+
"location": "eastus"
23+
}
24+
},
25+
"responses": {
26+
"200": {
27+
"body": {
28+
"id": "/subscriptions/subid/resourcegroups/rg/providers/Microsoft.App/builders/testBuilder",
29+
"name": "testBuilder",
30+
"type": "Microsoft.App/builders",
31+
"location": "eastus",
32+
"identity": {
33+
"type": "SystemAssigned,UserAssigned",
34+
"principalId": "00000000-0000-0000-0000-000000000000",
35+
"tenantId": "00000000-0000-0000-0000-000000000000",
36+
"userAssignedIdentities": {
37+
"/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.ManagedIdentity/userAssignedIdentities/identity1": {
38+
"clientId": "00000000-0000-0000-0000-000000000000",
39+
"principalId": "00000000-0000-0000-0000-000000000000"
40+
}
41+
}
42+
},
43+
"properties": {
44+
"provisioningState": "Succeeded",
45+
"environmentId": "/subscriptions/subid/resourcegroups/rg/providers/Microsoft.App/managedEnvironments/testEnv",
46+
"buildComputeId": "/subscriptions/subid/resourcegroups/rg/providers/Microsoft.App/jobs/build1234",
47+
"patchComputeId": "/subscriptions/subid/resourcegroups/rg/providers/Microsoft.App/jobs/patcher1234"
48+
},
49+
"systemData": {
50+
"createdBy": "[email protected]",
51+
"createdByType": "User",
52+
"createdAt": "2022-10-11T11:05:51.4940669Z",
53+
"lastModifiedBy": "[email protected]",
54+
"lastModifiedByType": "User",
55+
"lastModifiedAt": "2022-10-11T11:05:51.4940669Z"
56+
},
57+
"tags": {
58+
"company": "Microsoft"
59+
}
60+
}
61+
},
62+
"201": {
63+
"headers": {
64+
"Azure-AsyncOperation": "https://management.azure.com/subscriptions/{subscription-id}/providers/Microsoft.App/locations/{location}/operationStatuses/{operationId}"
65+
},
66+
"body": {
67+
"id": "/subscriptions/subid/resourcegroups/rg/providers/Microsoft.App/builders/testBuilder",
68+
"name": "testBuilder",
69+
"type": "Microsoft.App/builders",
70+
"location": "eastus",
71+
"identity": {
72+
"type": "SystemAssigned,UserAssigned",
73+
"principalId": "00000000-0000-0000-0000-000000000000",
74+
"tenantId": "00000000-0000-0000-0000-000000000000",
75+
"userAssignedIdentities": {
76+
"/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.ManagedIdentity/userAssignedIdentities/identity1": {
77+
"clientId": "00000000-0000-0000-0000-000000000000",
78+
"principalId": "00000000-0000-0000-0000-000000000000"
79+
}
80+
}
81+
},
82+
"properties": {
83+
"provisioningState": "Succeeded",
84+
"environmentId": "/subscriptions/subid/resourcegroups/rg/providers/Microsoft.App/managedEnvironments/testEnv",
85+
"buildComputeId": "/subscriptions/subid/resourcegroups/rg/providers/Microsoft.App/jobs/build1234",
86+
"patchComputeId": "/subscriptions/subid/resourcegroups/rg/providers/Microsoft.App/jobs/patcher1234"
87+
},
88+
"systemData": {
89+
"createdBy": "[email protected]",
90+
"createdByType": "User",
91+
"createdAt": "2022-10-11T11:05:51.4940669Z",
92+
"lastModifiedBy": "[email protected]",
93+
"lastModifiedByType": "User",
94+
"lastModifiedAt": "2022-10-11T11:05:51.4940669Z"
95+
},
96+
"tags": {
97+
"company": "Microsoft"
98+
}
99+
}
100+
}
101+
}
102+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
{
2+
"operationId": "Builders_Delete",
3+
"title": "Builders_Delete_0",
4+
"parameters": {
5+
"api-version": "2023-05-01-preview",
6+
"subscriptionId": "subid",
7+
"resourceGroupName": "rg",
8+
"builderName": "testBuilder"
9+
},
10+
"responses": {
11+
"200": {},
12+
"202": {
13+
"headers": {
14+
"Location": "https://management.azure.com/subscriptions/{subscription-id}/providers/Microsoft.App/locations/{location}/operationStatuses/{operationId}"
15+
}
16+
},
17+
"204": {}
18+
}
19+
}
Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
{
2+
"operationId": "Builders_Get",
3+
"title": "Builders_Get_0",
4+
"parameters": {
5+
"api-version": "2023-05-01-preview",
6+
"subscriptionId": "subid",
7+
"resourceGroupName": "rg",
8+
"builderName": "testBuilder"
9+
},
10+
"responses": {
11+
"200": {
12+
"body": {
13+
"id": "/subscriptions/subid/resourcegroups/rg/providers/Microsoft.App/builders/testBuilder",
14+
"name": "testBuilder",
15+
"type": "Microsoft.App/builders",
16+
"location": "eastus",
17+
"identity": {
18+
"type": "SystemAssigned,UserAssigned",
19+
"principalId": "00000000-0000-0000-0000-000000000000",
20+
"tenantId": "00000000-0000-0000-0000-000000000000",
21+
"userAssignedIdentities": {
22+
"/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.ManagedIdentity/userAssignedIdentities/identity1": {
23+
"clientId": "00000000-0000-0000-0000-000000000000",
24+
"principalId": "00000000-0000-0000-0000-000000000000"
25+
}
26+
}
27+
},
28+
"properties": {
29+
"provisioningState": "Succeeded",
30+
"environmentId": "/subscriptions/subid/resourcegroups/rg/providers/Microsoft.App/managedEnvironments/testEnv",
31+
"buildComputeId": "/subscriptions/subid/resourcegroups/rg/providers/Microsoft.App/jobs/build1234",
32+
"patchComputeId": "/subscriptions/subid/resourcegroups/rg/providers/Microsoft.App/jobs/patcher1234"
33+
},
34+
"systemData": {
35+
"createdBy": "[email protected]",
36+
"createdByType": "User",
37+
"createdAt": "2022-10-11T11:05:51.4940669Z",
38+
"lastModifiedBy": "[email protected]",
39+
"lastModifiedByType": "User",
40+
"lastModifiedAt": "2022-10-11T11:05:51.4940669Z"
41+
},
42+
"tags": {
43+
"key": "value"
44+
}
45+
}
46+
}
47+
}
48+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,86 @@
1+
{
2+
"operationId": "Builders_ListByResourceGroup",
3+
"title": "Builders_ListByResourceGroup_0",
4+
"parameters": {
5+
"api-version": "2023-05-01-preview",
6+
"subscriptionId": "subid",
7+
"resourceGroupName": "rg"
8+
},
9+
"responses": {
10+
"200": {
11+
"headers": {},
12+
"body": {
13+
"value": [
14+
{
15+
"id": "/subscriptions/subid/resourcegroups/rg/providers/Microsoft.App/builders/testBuilder1",
16+
"name": "testBuilder1",
17+
"type": "Microsoft.App/builders",
18+
"location": "eastus",
19+
"identity": {
20+
"type": "SystemAssigned,UserAssigned",
21+
"principalId": "00000000-0000-0000-0000-000000000000",
22+
"tenantId": "00000000-0000-0000-0000-000000000000",
23+
"userAssignedIdentities": {
24+
"/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.ManagedIdentity/userAssignedIdentities/identity1": {
25+
"clientId": "00000000-0000-0000-0000-000000000000",
26+
"principalId": "00000000-0000-0000-0000-000000000000"
27+
}
28+
}
29+
},
30+
"properties": {
31+
"provisioningState": "Succeeded",
32+
"environmentId": "/subscriptions/subid/resourcegroups/rg/providers/Microsoft.App/managedEnvironments/testEnv",
33+
"buildComputeId": "/subscriptions/subid/resourcegroups/rg/providers/Microsoft.App/jobs/build1234",
34+
"patchComputeId": "/subscriptions/subid/resourcegroups/rg/providers/Microsoft.App/jobs/patcher1234"
35+
},
36+
"systemData": {
37+
"createdBy": "[email protected]",
38+
"createdByType": "User",
39+
"createdAt": "2022-10-11T11:05:51.4940669Z",
40+
"lastModifiedBy": "[email protected]",
41+
"lastModifiedByType": "User",
42+
"lastModifiedAt": "2022-10-11T11:05:51.4940669Z"
43+
},
44+
"tags": {
45+
"key": "value"
46+
}
47+
},
48+
{
49+
"id": "/subscriptions/subid/resourcegroups/rg/providers/Microsoft.App/builders/testBuilder2",
50+
"name": "testBuilder2",
51+
"type": "Microsoft.App/builders",
52+
"location": "eastus",
53+
"identity": {
54+
"type": "SystemAssigned,UserAssigned",
55+
"principalId": "00000000-0000-0000-0000-000000000000",
56+
"tenantId": "00000000-0000-0000-0000-000000000000",
57+
"userAssignedIdentities": {
58+
"/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.ManagedIdentity/userAssignedIdentities/identity1": {
59+
"clientId": "00000000-0000-0000-0000-000000000000",
60+
"principalId": "00000000-0000-0000-0000-000000000000"
61+
}
62+
}
63+
},
64+
"properties": {
65+
"provisioningState": "Succeeded",
66+
"environmentId": "/subscriptions/subid/resourcegroups/rg/providers/Microsoft.App/managedEnvironments/testEnv",
67+
"buildComputeId": "/subscriptions/subid/resourcegroups/rg/providers/Microsoft.App/jobs/build1234",
68+
"patchComputeId": "/subscriptions/subid/resourcegroups/rg/providers/Microsoft.App/jobs/patcher1234"
69+
},
70+
"systemData": {
71+
"createdBy": "[email protected]",
72+
"createdByType": "User",
73+
"createdAt": "2022-10-11T11:05:51.4940669Z",
74+
"lastModifiedBy": "[email protected]",
75+
"lastModifiedByType": "User",
76+
"lastModifiedAt": "2022-10-11T11:05:51.4940669Z"
77+
},
78+
"tags": {
79+
"key": "value"
80+
}
81+
}
82+
]
83+
}
84+
}
85+
}
86+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,85 @@
1+
{
2+
"operationId": "Builders_ListBySubscription",
3+
"title": "Builders_ListBySubscription_0",
4+
"parameters": {
5+
"api-version": "2023-05-01-preview",
6+
"subscriptionId": "subid"
7+
},
8+
"responses": {
9+
"200": {
10+
"headers": {},
11+
"body": {
12+
"value": [
13+
{
14+
"id": "/subscriptions/subid/resourcegroups/rg1/providers/Microsoft.App/builders/testBuilder1",
15+
"name": "testBuilder1",
16+
"type": "Microsoft.App/builders",
17+
"location": "eastus",
18+
"identity": {
19+
"type": "SystemAssigned,UserAssigned",
20+
"principalId": "00000000-0000-0000-0000-000000000000",
21+
"tenantId": "00000000-0000-0000-0000-000000000000",
22+
"userAssignedIdentities": {
23+
"/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.ManagedIdentity/userAssignedIdentities/identity1": {
24+
"clientId": "00000000-0000-0000-0000-000000000000",
25+
"principalId": "00000000-0000-0000-0000-000000000000"
26+
}
27+
}
28+
},
29+
"properties": {
30+
"provisioningState": "Succeeded",
31+
"environmentId": "/subscriptions/subid/resourcegroups/rg/providers/Microsoft.App/managedEnvironments/testEnv",
32+
"buildComputeId": "/subscriptions/subid/resourcegroups/rg/providers/Microsoft.App/jobs/build1234",
33+
"patchComputeId": "/subscriptions/subid/resourcegroups/rg/providers/Microsoft.App/jobs/patcher1234"
34+
},
35+
"systemData": {
36+
"createdBy": "[email protected]",
37+
"createdByType": "User",
38+
"createdAt": "2022-10-11T11:05:51.4940669Z",
39+
"lastModifiedBy": "[email protected]",
40+
"lastModifiedByType": "User",
41+
"lastModifiedAt": "2022-10-11T11:05:51.4940669Z"
42+
},
43+
"tags": {
44+
"key": "value"
45+
}
46+
},
47+
{
48+
"id": "/subscriptions/subid/resourcegroups/rg2/providers/Microsoft.App/builders/testBuilder2",
49+
"name": "testBuilder2",
50+
"type": "Microsoft.App/builders",
51+
"location": "eastus",
52+
"identity": {
53+
"type": "SystemAssigned,UserAssigned",
54+
"principalId": "00000000-0000-0000-0000-000000000000",
55+
"tenantId": "00000000-0000-0000-0000-000000000000",
56+
"userAssignedIdentities": {
57+
"/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.ManagedIdentity/userAssignedIdentities/identity1": {
58+
"clientId": "00000000-0000-0000-0000-000000000000",
59+
"principalId": "00000000-0000-0000-0000-000000000000"
60+
}
61+
}
62+
},
63+
"properties": {
64+
"provisioningState": "Succeeded",
65+
"environmentId": "/subscriptions/subid/resourcegroups/rg/providers/Microsoft.App/managedEnvironments/testEnv",
66+
"buildComputeId": "/subscriptions/subid/resourcegroups/rg/providers/Microsoft.App/jobs/build1234",
67+
"patchComputeId": "/subscriptions/subid/resourcegroups/rg/providers/Microsoft.App/jobs/patcher1234"
68+
},
69+
"systemData": {
70+
"createdBy": "[email protected]",
71+
"createdByType": "User",
72+
"createdAt": "2022-10-11T11:05:51.4940669Z",
73+
"lastModifiedBy": "[email protected]",
74+
"lastModifiedByType": "User",
75+
"lastModifiedAt": "2022-10-11T11:05:51.4940669Z"
76+
},
77+
"tags": {
78+
"key": "value"
79+
}
80+
}
81+
]
82+
}
83+
}
84+
}
85+
}

0 commit comments

Comments
 (0)