-
Notifications
You must be signed in to change notification settings - Fork 5.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* added copy of last release * new devhub changes removed x-ms-client-flatten added new routes for ADO OAuth added azurePipelineProfile obj
- Loading branch information
1 parent
b19a2b3
commit 49f604d
Showing
28 changed files
with
3,706 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
21 changes: 21 additions & 0 deletions
21
...esource-manager/Microsoft.DevHub/preview/2024-08-01-preview/examples/ADOOAuthDefault.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-08-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/adooauth/default", | ||
"type": "Microsoft.DevHub/locations/adooauth", | ||
"name": "default", | ||
"properties": { | ||
"username": "user" | ||
} | ||
} | ||
} | ||
} | ||
} |
18 changes: 18 additions & 0 deletions
18
...b/resource-manager/Microsoft.DevHub/preview/2024-08-01-preview/examples/ADOOAuthInfo.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-08-01-preview", | ||
"parameters": { | ||
"redirectUrl": "https://ms.portal.azure.com/aks" | ||
} | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"authURL": "https://login.microsoftonline.com/common/oauth2/authorize?client_id=11111111&response_type=code&state=1234567-9123-4567-8912-234567890123&scope=offline_access%20openid%20vso.profile&redirect_uri=https://management.azure.com/subscriptions/subscriptionId1/providers/Microsoft.DevHub/locations/eastus2euap/adooauth", | ||
"token": "" | ||
} | ||
} | ||
} | ||
} |
23 changes: 23 additions & 0 deletions
23
...b/resource-manager/Microsoft.DevHub/preview/2024-08-01-preview/examples/ADOOAuthList.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-08-01-preview" | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"value": [ | ||
{ | ||
"id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DevHub/locations/eastus2euap/adooauth/default", | ||
"type": "Microsoft.DevHub/locations/adooauth", | ||
"name": "default", | ||
"properties": { | ||
"username": "user" | ||
} | ||
} | ||
] | ||
} | ||
} | ||
} | ||
} |
30 changes: 30 additions & 0 deletions
30
...anager/Microsoft.DevHub/preview/2024-08-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-08-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-08-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-08-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-08-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-08-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-08-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-08-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-08-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-08-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": "foo@contoso.com", | ||
"createdByType": "User", | ||
"createdAt": "2024-01-16T09:56:23.933651400Z", | ||
"lastModifiedBy": "foo@contoso.com", | ||
"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": "foo@contoso.com", | ||
"createdByType": "User", | ||
"createdAt": "2024-01-16T09:56:23.933651400Z", | ||
"lastModifiedBy": "foo@contoso.com", | ||
"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" | ||
} | ||
] | ||
} | ||
] | ||
} | ||
} | ||
} | ||
} | ||
} |
Oops, something went wrong.