-
Notifications
You must be signed in to change notification settings - Fork 5.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Pauld/re add build and builder (#25442)
* cherry picked the build and builder updates * some more cleanup * added arm id format, removed extra properties, and named the resource provisioning states
- Loading branch information
1 parent
cc881ff
commit e0ea4cd
Showing
14 changed files
with
1,995 additions
and
0 deletions.
There are no files selected for viewing
494 changes: 494 additions & 0 deletions
494
specification/app/resource-manager/Microsoft.App/preview/2023-08-01-preview/Builders.json
Large diffs are not rendered by default.
Oops, something went wrong.
486 changes: 486 additions & 0 deletions
486
specification/app/resource-manager/Microsoft.App/preview/2023-08-01-preview/Builds.json
Large diffs are not rendered by default.
Oops, something went wrong.
128 changes: 128 additions & 0 deletions
128
...ce-manager/Microsoft.App/preview/2023-08-01-preview/examples/Builders_CreateOrUpdate.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,128 @@ | ||
{ | ||
"operationId": "Builders_CreateOrUpdate", | ||
"title": "Builders_CreateOrUpdate_0", | ||
"parameters": { | ||
"subscriptionId": "00000000-0000-0000-0000-000000000000", | ||
"resourceGroupName": "rg", | ||
"builderName": "testBuilder", | ||
"api-version": "2023-08-01-preview", | ||
"builderEnvelope": { | ||
"identity": { | ||
"type": "SystemAssigned,UserAssigned", | ||
"userAssignedIdentities": { | ||
"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.ManagedIdentity/userAssignedIdentities/identity1": {} | ||
} | ||
}, | ||
"properties": { | ||
"environmentId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/rg/providers/Microsoft.App/managedEnvironments/testEnv", | ||
"containerRegistries": [ | ||
{ | ||
"containerRegistryServer": "test.azurecr.io", | ||
"identityResourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.ManagedIdentity/userAssignedIdentities/identity1" | ||
}, | ||
{ | ||
"containerRegistryServer": "test2.azurecr.io", | ||
"identityResourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.ManagedIdentity/userAssignedIdentities/identity1" | ||
} | ||
] | ||
}, | ||
"tags": { | ||
"company": "Microsoft" | ||
}, | ||
"location": "eastus" | ||
} | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/rg/providers/Microsoft.App/builders/testBuilder", | ||
"name": "testBuilder", | ||
"type": "Microsoft.App/builders", | ||
"location": "eastus", | ||
"identity": { | ||
"type": "SystemAssigned,UserAssigned", | ||
"principalId": "00000000-0000-0000-0000-000000000000", | ||
"tenantId": "00000000-0000-0000-0000-000000000000", | ||
"userAssignedIdentities": { | ||
"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.ManagedIdentity/userAssignedIdentities/identity1": { | ||
"clientId": "00000000-0000-0000-0000-000000000000", | ||
"principalId": "00000000-0000-0000-0000-000000000000" | ||
} | ||
} | ||
}, | ||
"properties": { | ||
"provisioningState": "Succeeded", | ||
"environmentId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/rg/providers/Microsoft.App/managedEnvironments/testEnv", | ||
"containerRegistries": [ | ||
{ | ||
"containerRegistryServer": "test.azurecr.io", | ||
"identityResourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.ManagedIdentity/userAssignedIdentities/identity1" | ||
}, | ||
{ | ||
"containerRegistryServer": "test2.azurecr.io", | ||
"identityResourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.ManagedIdentity/userAssignedIdentities/identity1" | ||
} | ||
] | ||
}, | ||
"systemData": { | ||
"createdBy": "[email protected]", | ||
"createdByType": "User", | ||
"createdAt": "2022-10-11T11:05:51.4940669Z", | ||
"lastModifiedBy": "[email protected]", | ||
"lastModifiedByType": "User", | ||
"lastModifiedAt": "2022-10-11T11:05:51.4940669Z" | ||
}, | ||
"tags": { | ||
"company": "Microsoft" | ||
} | ||
} | ||
}, | ||
"201": { | ||
"headers": { | ||
"Azure-AsyncOperation": "https://management.azure.com/subscriptions/{subscription-id}/providers/Microsoft.App/locations/{location}/operationStatuses/{operationId}" | ||
}, | ||
"body": { | ||
"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/rg/providers/Microsoft.App/builders/testBuilder", | ||
"name": "testBuilder", | ||
"type": "Microsoft.App/builders", | ||
"location": "eastus", | ||
"identity": { | ||
"type": "SystemAssigned,UserAssigned", | ||
"principalId": "00000000-0000-0000-0000-000000000000", | ||
"tenantId": "00000000-0000-0000-0000-000000000000", | ||
"userAssignedIdentities": { | ||
"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.ManagedIdentity/userAssignedIdentities/identity1": { | ||
"clientId": "00000000-0000-0000-0000-000000000000", | ||
"principalId": "00000000-0000-0000-0000-000000000000" | ||
} | ||
} | ||
}, | ||
"properties": { | ||
"provisioningState": "Creating", | ||
"environmentId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/rg/providers/Microsoft.App/managedEnvironments/testEnv", | ||
"containerRegistries": [ | ||
{ | ||
"containerRegistryServer": "test.azurecr.io", | ||
"identityResourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.ManagedIdentity/userAssignedIdentities/identity1" | ||
}, | ||
{ | ||
"containerRegistryServer": "test2.azurecr.io", | ||
"identityResourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.ManagedIdentity/userAssignedIdentities/identity1" | ||
} | ||
] | ||
}, | ||
"systemData": { | ||
"createdBy": "[email protected]", | ||
"createdByType": "User", | ||
"createdAt": "2022-10-11T11:05:51.4940669Z", | ||
"lastModifiedBy": "[email protected]", | ||
"lastModifiedByType": "User", | ||
"lastModifiedAt": "2022-10-11T11:05:51.4940669Z" | ||
}, | ||
"tags": { | ||
"company": "Microsoft" | ||
} | ||
} | ||
} | ||
} | ||
} |
19 changes: 19 additions & 0 deletions
19
...p/resource-manager/Microsoft.App/preview/2023-08-01-preview/examples/Builders_Delete.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
{ | ||
"operationId": "Builders_Delete", | ||
"title": "Builders_Delete_0", | ||
"parameters": { | ||
"api-version": "2023-08-01-preview", | ||
"subscriptionId": "00000000-0000-0000-0000-000000000000", | ||
"resourceGroupName": "rg", | ||
"builderName": "testBuilder" | ||
}, | ||
"responses": { | ||
"200": {}, | ||
"202": { | ||
"headers": { | ||
"Location": "https://management.azure.com/subscriptions/{subscription-id}/providers/Microsoft.App/locations/{location}/operationStatuses/{operationId}" | ||
} | ||
}, | ||
"204": {} | ||
} | ||
} |
56 changes: 56 additions & 0 deletions
56
.../app/resource-manager/Microsoft.App/preview/2023-08-01-preview/examples/Builders_Get.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
{ | ||
"operationId": "Builders_Get", | ||
"title": "Builders_Get_0", | ||
"parameters": { | ||
"api-version": "2023-08-01-preview", | ||
"subscriptionId": "00000000-0000-0000-0000-000000000000", | ||
"resourceGroupName": "rg", | ||
"builderName": "testBuilder" | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/rg/providers/Microsoft.App/builders/testBuilder", | ||
"name": "testBuilder", | ||
"type": "Microsoft.App/builders", | ||
"location": "eastus", | ||
"identity": { | ||
"type": "SystemAssigned,UserAssigned", | ||
"principalId": "00000000-0000-0000-0000-000000000000", | ||
"tenantId": "00000000-0000-0000-0000-000000000000", | ||
"userAssignedIdentities": { | ||
"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.ManagedIdentity/userAssignedIdentities/identity1": { | ||
"clientId": "00000000-0000-0000-0000-000000000000", | ||
"principalId": "00000000-0000-0000-0000-000000000000" | ||
} | ||
} | ||
}, | ||
"properties": { | ||
"provisioningState": "Succeeded", | ||
"environmentId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/rg/providers/Microsoft.App/managedEnvironments/testEnv", | ||
"containerRegistries": [ | ||
{ | ||
"containerRegistryServer": "test.azurecr.io", | ||
"identityResourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.ManagedIdentity/userAssignedIdentities/identity1" | ||
}, | ||
{ | ||
"containerRegistryServer": "test2.azurecr.io", | ||
"identityResourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.ManagedIdentity/userAssignedIdentities/identity1" | ||
} | ||
] | ||
}, | ||
"systemData": { | ||
"createdBy": "[email protected]", | ||
"createdByType": "User", | ||
"createdAt": "2022-10-11T11:05:51.4940669Z", | ||
"lastModifiedBy": "[email protected]", | ||
"lastModifiedByType": "User", | ||
"lastModifiedAt": "2022-10-11T11:05:51.4940669Z" | ||
}, | ||
"tags": { | ||
"key": "value" | ||
} | ||
} | ||
} | ||
} | ||
} |
102 changes: 102 additions & 0 deletions
102
...nager/Microsoft.App/preview/2023-08-01-preview/examples/Builders_ListByResourceGroup.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,102 @@ | ||
{ | ||
"operationId": "Builders_ListByResourceGroup", | ||
"title": "Builders_ListByResourceGroup_0", | ||
"parameters": { | ||
"api-version": "2023-08-01-preview", | ||
"subscriptionId": "00000000-0000-0000-0000-000000000000", | ||
"resourceGroupName": "rg" | ||
}, | ||
"responses": { | ||
"200": { | ||
"headers": {}, | ||
"body": { | ||
"value": [ | ||
{ | ||
"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/rg/providers/Microsoft.App/builders/testBuilder1", | ||
"name": "testBuilder1", | ||
"type": "Microsoft.App/builders", | ||
"location": "eastus", | ||
"identity": { | ||
"type": "SystemAssigned,UserAssigned", | ||
"principalId": "00000000-0000-0000-0000-000000000000", | ||
"tenantId": "00000000-0000-0000-0000-000000000000", | ||
"userAssignedIdentities": { | ||
"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.ManagedIdentity/userAssignedIdentities/identity1": { | ||
"clientId": "00000000-0000-0000-0000-000000000000", | ||
"principalId": "00000000-0000-0000-0000-000000000000" | ||
} | ||
} | ||
}, | ||
"properties": { | ||
"provisioningState": "Succeeded", | ||
"environmentId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/rg/providers/Microsoft.App/managedEnvironments/testEnv", | ||
"containerRegistries": [ | ||
{ | ||
"containerRegistryServer": "test.azurecr.io", | ||
"identityResourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.ManagedIdentity/userAssignedIdentities/identity1" | ||
}, | ||
{ | ||
"containerRegistryServer": "test2.azurecr.io", | ||
"identityResourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.ManagedIdentity/userAssignedIdentities/identity1" | ||
} | ||
] | ||
}, | ||
"systemData": { | ||
"createdBy": "[email protected]", | ||
"createdByType": "User", | ||
"createdAt": "2022-10-11T11:05:51.4940669Z", | ||
"lastModifiedBy": "[email protected]", | ||
"lastModifiedByType": "User", | ||
"lastModifiedAt": "2022-10-11T11:05:51.4940669Z" | ||
}, | ||
"tags": { | ||
"key": "value" | ||
} | ||
}, | ||
{ | ||
"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/rg/providers/Microsoft.App/builders/testBuilder2", | ||
"name": "testBuilder2", | ||
"type": "Microsoft.App/builders", | ||
"location": "eastus", | ||
"identity": { | ||
"type": "SystemAssigned,UserAssigned", | ||
"principalId": "00000000-0000-0000-0000-000000000000", | ||
"tenantId": "00000000-0000-0000-0000-000000000000", | ||
"userAssignedIdentities": { | ||
"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.ManagedIdentity/userAssignedIdentities/identity1": { | ||
"clientId": "00000000-0000-0000-0000-000000000000", | ||
"principalId": "00000000-0000-0000-0000-000000000000" | ||
} | ||
} | ||
}, | ||
"properties": { | ||
"provisioningState": "Succeeded", | ||
"environmentId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/rg/providers/Microsoft.App/managedEnvironments/testEnv", | ||
"containerRegistries": [ | ||
{ | ||
"containerRegistryServer": "test.azurecr.io", | ||
"identityResourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.ManagedIdentity/userAssignedIdentities/identity1" | ||
}, | ||
{ | ||
"containerRegistryServer": "test2.azurecr.io", | ||
"identityResourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.ManagedIdentity/userAssignedIdentities/identity1" | ||
} | ||
] | ||
}, | ||
"systemData": { | ||
"createdBy": "[email protected]", | ||
"createdByType": "User", | ||
"createdAt": "2022-10-11T11:05:51.4940669Z", | ||
"lastModifiedBy": "[email protected]", | ||
"lastModifiedByType": "User", | ||
"lastModifiedAt": "2022-10-11T11:05:51.4940669Z" | ||
}, | ||
"tags": { | ||
"key": "value" | ||
} | ||
} | ||
] | ||
} | ||
} | ||
} | ||
} |
Oops, something went wrong.