forked from Azure/azure-rest-api-specs
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Qfai developerhub microsoft.dev hub 2024 05 01 preview (Azure#29229)
* add iac endpoints * change workflow v3 to v5 * fix module validation error --------- Co-authored-by: qfai <[email protected]>
- Loading branch information
Showing
25 changed files
with
3,326 additions
and
1 deletion.
There are no files selected for viewing
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
30 changes: 30 additions & 0 deletions
30
...anager/Microsoft.DevHub/preview/2024-05-01-preview/examples/GeneratePreviewArtifacts.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,30 @@ | ||
{ | ||
"parameters": { | ||
"api-version": "2024-05-01-preview", | ||
"subscriptionId": "00000000-0000-0000-0000-000000000000", | ||
"location": "location1", | ||
"parameters": { | ||
"generationLanguage": "javascript", | ||
"languageVersion": "14", | ||
"port": "80", | ||
"appName": "my-app", | ||
"dockerfileOutputDirectory": "./", | ||
"manifestOutputDirectory": "./", | ||
"manifestGenerationMode": "enabled", | ||
"dockerfileGenerationMode": "enabled", | ||
"manifestType": "kube", | ||
"imageName": "myimage", | ||
"namespace": "my-namespace", | ||
"imageTag": "latest" | ||
} | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"dockerfiles/example-dockerfile": "dockerfile-content \n including newlines", | ||
"manifests/example-manifest-file-1": "manifest file 1 content \n including newlines", | ||
"manifests/example-manifest-file-2": "manifest file 2 content \n including newlines" | ||
} | ||
} | ||
} | ||
} |
18 changes: 18 additions & 0 deletions
18
...ub/resource-manager/Microsoft.DevHub/preview/2024-05-01-preview/examples/GitHubOAuth.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,18 @@ | ||
{ | ||
"parameters": { | ||
"subscriptionId": "00000000-0000-0000-0000-000000000000", | ||
"location": "eastus2euap", | ||
"api-version": "2024-05-01-preview", | ||
"parameters": { | ||
"redirectUrl": "https://ms.portal.azure.com/aks" | ||
} | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"authURL": "https://github.com/login/oauth/authorize?client_id=11111111&redirect_uri=https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DevHub/locations/eastus2euap/githuboauth&state=2345678-3456-7890-5678-012345678901&scope=repo,user:email,workflow", | ||
"token": "" | ||
} | ||
} | ||
} | ||
} |
21 changes: 21 additions & 0 deletions
21
...rce-manager/Microsoft.DevHub/preview/2024-05-01-preview/examples/GitHubOAuthCallback.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,21 @@ | ||
{ | ||
"parameters": { | ||
"subscriptionId": "00000000-0000-0000-0000-000000000000", | ||
"location": "eastus2euap", | ||
"api-version": "2024-05-01-preview", | ||
"code": "3584d83530557fdd1f46af8289938c8ef79f9dc5", | ||
"state": "12345678-3456-7890-5678-012345678901" | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DevHub/locations/eastus2euap/githuboauth/default", | ||
"type": "Microsoft.DevHub/locations/githuboauth", | ||
"name": "default", | ||
"properties": { | ||
"username": "user" | ||
} | ||
} | ||
} | ||
} | ||
} |
23 changes: 23 additions & 0 deletions
23
...source-manager/Microsoft.DevHub/preview/2024-05-01-preview/examples/GitHubOAuth_List.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,23 @@ | ||
{ | ||
"parameters": { | ||
"subscriptionId": "00000000-0000-0000-0000-000000000000", | ||
"location": "eastus2euap", | ||
"api-version": "2024-05-01-preview" | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"value": [ | ||
{ | ||
"id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DevHub/locations/eastus2euap/githuboauth/default", | ||
"type": "Microsoft.DevHub/locations/githuboauth", | ||
"name": "default", | ||
"properties": { | ||
"username": "user" | ||
} | ||
} | ||
] | ||
} | ||
} | ||
} | ||
} |
224 changes: 224 additions & 0 deletions
224
...nager/Microsoft.DevHub/preview/2024-05-01-preview/examples/IacProfile_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,224 @@ | ||
{ | ||
"parameters": { | ||
"api-version": "2024-05-01-preview", | ||
"subscriptionId": "a0a37f63-7183-4e86-9ac7-ce8036a3ed31", | ||
"resourceGroupName": "resourceGroup1", | ||
"iacProfileName": "profile1", | ||
"parameters": { | ||
"location": "location1", | ||
"tags": { | ||
"appname": "testApp" | ||
}, | ||
"properties": { | ||
"githubProfile": { | ||
"repositoryOwner": "owner", | ||
"repositoryName": "localtest", | ||
"repositoryMainBranch": "main" | ||
}, | ||
"terraformProfile": { | ||
"storageAccountSubscription": "subscription", | ||
"storageAccountResourceGroup": "hybrid-iac", | ||
"storageAccountName": "hybridiac", | ||
"storageContainerName": "hybridiac" | ||
}, | ||
"stages": [ | ||
{ | ||
"stageName": "dev", | ||
"dependencies": [], | ||
"gitEnvironment": "Terraform" | ||
}, | ||
{ | ||
"stageName": "qa", | ||
"dependencies": [ | ||
"dev" | ||
], | ||
"gitEnvironment": "Terraform" | ||
}, | ||
{ | ||
"stageName": "prod", | ||
"dependencies": [ | ||
"qa" | ||
], | ||
"gitEnvironment": "Terraform" | ||
} | ||
], | ||
"templates": [ | ||
{ | ||
"templateName": "base", | ||
"sourceResourceId": "/subscriptions/xxxx/resourceGroups/xxxx", | ||
"instanceStage": "dev", | ||
"instanceName": "contoso", | ||
"templateDetails": [ | ||
{ | ||
"productName": "HCI", | ||
"count": 1, | ||
"namingConvention": "$sitid-hci" | ||
}, | ||
{ | ||
"productName": "AKSarc", | ||
"count": 1, | ||
"namingConvention": "$sitid-aks" | ||
} | ||
] | ||
} | ||
] | ||
} | ||
} | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"id": "/subscriptions/a0a37f63-7183-4e86-9ac7-ce8036a3ed31/resourceGroups/resourceGroup1/providers/Microsoft.DevHub/iacProfiles/profile1", | ||
"location": "location1", | ||
"name": "profile1", | ||
"type": "Micfosoft.DevHub/iacProfiles", | ||
"tags": { | ||
"appname": "testapp" | ||
}, | ||
"systemData": { | ||
"createdBy": "[email protected]", | ||
"createdByType": "User", | ||
"createdAt": "2024-01-16T09:56:23.933651400Z", | ||
"lastModifiedBy": "[email protected]", | ||
"lastModifiedByType": "User", | ||
"lastModifiedAt": "2024-01-16T09:56:30.783361300Z" | ||
}, | ||
"properties": { | ||
"githubProfile": { | ||
"repositoryName": "localtest", | ||
"repositoryMainBranch": "main", | ||
"repositoryOwner": "owner", | ||
"authStatus": "Unspecified", | ||
"pullNumber": 8, | ||
"prStatus": "submitted", | ||
"branchName": "aks-devhub-ybvmw" | ||
}, | ||
"terraformProfile": { | ||
"storageAccountSubscription": "subscription", | ||
"storageAccountResourceGroup": "hybrid-iac", | ||
"storageAccountName": "hybridiac", | ||
"storageContainerName": "hybridiac" | ||
}, | ||
"stages": [ | ||
{ | ||
"stageName": "dev", | ||
"dependencies": [], | ||
"gitEnvironment": "Terraform" | ||
}, | ||
{ | ||
"stageName": "qa", | ||
"dependencies": [ | ||
"dev" | ||
], | ||
"gitEnvironment": "Terraform" | ||
}, | ||
{ | ||
"stageName": "prod", | ||
"dependencies": [ | ||
"qa" | ||
], | ||
"gitEnvironment": "Terraform" | ||
} | ||
], | ||
"templates": [ | ||
{ | ||
"templateName": "base", | ||
"sourceResourceId": "/subscriptions/xxxx/resourceGroups/xxxx", | ||
"instanceStage": "dev", | ||
"instanceName": "contoso", | ||
"templateDetails": [ | ||
{ | ||
"productName": "HCI", | ||
"count": 1, | ||
"namingConvention": "$sitid-hci" | ||
}, | ||
{ | ||
"productName": "AKSarc", | ||
"count": 1, | ||
"namingConvention": "$sitid-aks" | ||
} | ||
] | ||
} | ||
] | ||
} | ||
} | ||
}, | ||
"201": { | ||
"body": { | ||
"id": "/subscriptions/a0a37f63-7183-4e86-9ac7-ce8036a3ed31/resourceGroups/resourceGroup1/providers/Microsoft.DevHub/iacProfiles/profile1", | ||
"location": "location1", | ||
"name": "profile1", | ||
"type": "Micfosoft.DevHub/iacProfiles", | ||
"tags": { | ||
"appname": "testapp" | ||
}, | ||
"systemData": { | ||
"createdBy": "[email protected]", | ||
"createdByType": "User", | ||
"createdAt": "2024-01-16T09:56:23.933651400Z", | ||
"lastModifiedBy": "[email protected]", | ||
"lastModifiedByType": "User", | ||
"lastModifiedAt": "2024-01-16T09:56:30.783361300Z" | ||
}, | ||
"properties": { | ||
"githubProfile": { | ||
"repositoryName": "localtest", | ||
"repositoryMainBranch": "main", | ||
"repositoryOwner": "owner", | ||
"authStatus": "Unspecified", | ||
"pullNumber": 8, | ||
"prStatus": "submitted", | ||
"branchName": "aks-devhub-ybvmw" | ||
}, | ||
"terraformProfile": { | ||
"storageAccountSubscription": "subscription", | ||
"storageAccountResourceGroup": "hybrid-iac", | ||
"storageAccountName": "hybridiac", | ||
"storageContainerName": "hybridiac" | ||
}, | ||
"stages": [ | ||
{ | ||
"stageName": "dev", | ||
"dependencies": [], | ||
"gitEnvironment": "Terraform" | ||
}, | ||
{ | ||
"stageName": "qa", | ||
"dependencies": [ | ||
"dev" | ||
], | ||
"gitEnvironment": "Terraform" | ||
}, | ||
{ | ||
"stageName": "prod", | ||
"dependencies": [ | ||
"qa" | ||
], | ||
"gitEnvironment": "Terraform" | ||
} | ||
], | ||
"templates": [ | ||
{ | ||
"templateName": "base", | ||
"sourceResourceId": "/subscriptions/xxxx/resourceGroups/xxxx", | ||
"instanceStage": "dev", | ||
"instanceName": "contoso", | ||
"templateDetails": [ | ||
{ | ||
"productName": "HCI", | ||
"count": 1, | ||
"namingConvention": "$sitid-hci" | ||
}, | ||
{ | ||
"productName": "AKSarc", | ||
"count": 1, | ||
"namingConvention": "$sitid-aks" | ||
} | ||
] | ||
} | ||
] | ||
} | ||
} | ||
} | ||
} | ||
} |
12 changes: 12 additions & 0 deletions
12
...ource-manager/Microsoft.DevHub/preview/2024-05-01-preview/examples/IacProfile_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,12 @@ | ||
{ | ||
"parameters": { | ||
"api-version": "2024-05-01-preview", | ||
"subscriptionId": "a0a37f63-7183-4e86-9ac7-ce8036a3ed31", | ||
"resourceGroupName": "resourceGroup1", | ||
"iacProfileName": "iacprofile" | ||
}, | ||
"responses": { | ||
"200": {}, | ||
"204": {} | ||
} | ||
} |
24 changes: 24 additions & 0 deletions
24
...nager/Microsoft.DevHub/preview/2024-05-01-preview/examples/IacProfile_ExportTemplate.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,24 @@ | ||
{ | ||
"parameters": { | ||
"api-version": "2024-05-01-preview", | ||
"subscriptionId": "a0a37f63-7183-4e86-9ac7-ce8036a3ed31", | ||
"resourceGroupName": "resourceGroup1", | ||
"iacProfileName": "iacprofile", | ||
"parameters": { | ||
"templateName": "base", | ||
"resourceGroupIds": [ | ||
"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/resourceGroup1", | ||
"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/resourceGroup2" | ||
], | ||
"instanceName": "sample", | ||
"instanceStage": "dev" | ||
} | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"prLink": "xxxx" | ||
} | ||
} | ||
} | ||
} |
Oops, something went wrong.