-
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.
[Hub Generated] Review request for Microsoft.DevHub to add version st…
…able/2023-08-01 (#24951) * Adds base for updating Microsoft.DevHub from version preview/2022-10-11-preview to version 2023-08-01 * Updates readme * Updates API version in new specs and examples
- Loading branch information
Showing
14 changed files
with
1,900 additions
and
5 deletions.
There are no files selected for viewing
30 changes: 30 additions & 0 deletions
30
...esource-manager/Microsoft.DevHub/stable/2023-08-01/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": "2023-08-01", | ||
"subscriptionId": "subscriptionId1", | ||
"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
...eveloperhub/resource-manager/Microsoft.DevHub/stable/2023-08-01/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": "subscriptionId1", | ||
"location": "eastus2euap", | ||
"api-version": "2023-08-01", | ||
"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/subscriptionId1/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
...hub/resource-manager/Microsoft.DevHub/stable/2023-08-01/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": "subscriptionId1", | ||
"location": "eastus2euap", | ||
"api-version": "2023-08-01", | ||
"code": "3584d83530557fdd1f46af8289938c8ef79f9dc5", | ||
"state": "12345678-3456-7890-5678-012345678901" | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"id": "/subscriptions/subscriptionId1/providers/Microsoft.DevHub/locations/eastus2euap/githuboauth/default", | ||
"type": "Microsoft.DevHub/locations/githuboauth", | ||
"name": "default", | ||
"properties": { | ||
"username": "user" | ||
} | ||
} | ||
} | ||
} | ||
} |
23 changes: 23 additions & 0 deletions
23
...perhub/resource-manager/Microsoft.DevHub/stable/2023-08-01/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": "subscriptionId1", | ||
"location": "eastus2euap", | ||
"api-version": "2023-08-01" | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"value": [ | ||
{ | ||
"id": "/subscriptions/subscriptionId1/providers/Microsoft.DevHub/locations/eastus2euap/githuboauth/default", | ||
"type": "Microsoft.DevHub/locations/githuboauth", | ||
"name": "default", | ||
"properties": { | ||
"username": "user" | ||
} | ||
} | ||
] | ||
} | ||
} | ||
} | ||
} |
23 changes: 23 additions & 0 deletions
23
...loperhub/resource-manager/Microsoft.DevHub/stable/2023-08-01/examples/Operation_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": { | ||
"api-version": "2023-08-01" | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"value": [ | ||
{ | ||
"name": "Microsoft.DevHub/workflows/read", | ||
"display": { | ||
"provider": "Microsoft Developer Hub", | ||
"resource": "Workflows", | ||
"operation": "Get workflow", | ||
"description": "Gets workflow" | ||
} | ||
} | ||
], | ||
"nextLink": null | ||
} | ||
} | ||
} | ||
} |
146 changes: 146 additions & 0 deletions
146
...resource-manager/Microsoft.DevHub/stable/2023-08-01/examples/Workflow_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,146 @@ | ||
{ | ||
"parameters": { | ||
"api-version": "2023-08-01", | ||
"subscriptionId": "subscriptionId1", | ||
"resourceGroupName": "resourceGroup1", | ||
"workflowName": "workflow1", | ||
"parameters": { | ||
"location": "location1", | ||
"tags": { | ||
"appname": "testApp" | ||
}, | ||
"properties": { | ||
"githubWorkflowProfile": { | ||
"repositoryOwner": "owner1", | ||
"repositoryName": "repo1", | ||
"branchName": "branch1", | ||
"dockerfile": "repo1/images/Dockerfile", | ||
"dockerBuildContext": "repo1/src/", | ||
"deploymentProperties": { | ||
"manifestType": "kube", | ||
"kubeManifestLocations": [ | ||
"/src/manifests/" | ||
], | ||
"overrides": { | ||
"key1": "value1" | ||
} | ||
}, | ||
"namespace": "namespace1", | ||
"acr": { | ||
"acrSubscriptionId": "subscriptionId1", | ||
"acrResourceGroup": "resourceGroup1", | ||
"acrRegistryName": "registry1", | ||
"acrRepositoryName": "repo1" | ||
}, | ||
"oidcCredentials": { | ||
"azureClientId": "12345678-3456-7890-5678-012345678901", | ||
"azureTenantId": "66666666-3456-7890-5678-012345678901" | ||
}, | ||
"aksResourceId": "/subscriptions/subscriptionId1/resourcegroups/resourceGroup1/providers/Microsoft.ContainerService/managedClusters/cluster1" | ||
} | ||
} | ||
} | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"id": "/subscription/subscriptionId1/resourceGroups/resourceGroup1/providers/Microsoft.DevHub/workflow/workflow1", | ||
"location": "location1", | ||
"name": "workflow1", | ||
"type": "Micfosoft.DevHub/Workflow", | ||
"tags": { | ||
"appname": "testapp" | ||
}, | ||
"systemData": { | ||
"createdBy": "[email protected]", | ||
"createdByType": "User", | ||
"createdAt": "2018-04-24T16:30:55+00:00", | ||
"lastModifiedBy": "[email protected]", | ||
"lastModifiedByType": "User", | ||
"lastModifiedAt": "2018-04-24T16:30:55+00:00" | ||
}, | ||
"properties": { | ||
"githubWorkflowProfile": { | ||
"repositoryOwner": "owner1", | ||
"repositoryName": "repo2", | ||
"branchName": "branch2", | ||
"dockerfile": "repo2/images/Dockerfile", | ||
"dockerBuildContext": "repo2/src/", | ||
"deploymentProperties": { | ||
"manifestType": "helm", | ||
"helmChartPath": "/src/charts", | ||
"helmValues": "/src/chars/values.yaml", | ||
"overrides": { | ||
"key1": "value1" | ||
} | ||
}, | ||
"acr": { | ||
"acrSubscriptionId": "subscriptionId1", | ||
"acrResourceGroup": "resourceGroup1", | ||
"acrRegistryName": "registry1", | ||
"acrRepositoryName": "repo1" | ||
}, | ||
"oidcCredentials": { | ||
"azureClientId": "12345678-3456-7890-5678-012345678901", | ||
"azureTenantId": "66666666-3456-7890-5678-012345678901" | ||
}, | ||
"aksResourceId": "/subscriptions/subscriptionId1/resourcegroups/resourceGroup1/providers/Microsoft.ContainerService/managedClusters/cluster1", | ||
"prURL": "https://github.com/User/repo2/pull/6567", | ||
"pullNumber": 6567, | ||
"prStatus": "submitted", | ||
"authStatus": "Authorized" | ||
} | ||
} | ||
} | ||
}, | ||
"201": { | ||
"body": { | ||
"id": "/subscription/subscriptionId1/resourceGroups/resourceGroup1/providers/Microsoft.DevHub/workflow/workflow1", | ||
"location": "location1", | ||
"name": "workflow1", | ||
"type": "Micfosoft.DevHub/Workflow", | ||
"tags": { | ||
"appname": "testapp" | ||
}, | ||
"systemData": { | ||
"createdBy": "[email protected]", | ||
"createdByType": "User", | ||
"createdAt": "2018-04-24T16:30:55+00:00", | ||
"lastModifiedBy": "[email protected]", | ||
"lastModifiedByType": "User", | ||
"lastModifiedAt": "2018-04-24T16:30:55+00:00" | ||
}, | ||
"properties": { | ||
"githubWorkflowProfile": { | ||
"repositoryOwner": "owner1", | ||
"repositoryName": "repo1", | ||
"branchName": "branch1", | ||
"dockerfile": "repo1/images/Dockerfile", | ||
"dockerBuildContext": "repo1/src/", | ||
"deploymentProperties": { | ||
"manifestType": "kube", | ||
"overrides": { | ||
"key1": "value1" | ||
} | ||
}, | ||
"acr": { | ||
"acrSubscriptionId": "subscriptionId1", | ||
"acrResourceGroup": "resourceGroup1", | ||
"acrRegistryName": "registry1", | ||
"acrRepositoryName": "repo1" | ||
}, | ||
"oidcCredentials": { | ||
"azureClientId": "12345678-3456-7890-5678-012345678901", | ||
"azureTenantId": "66666666-3456-7890-5678-012345678901" | ||
}, | ||
"aksResourceId": "/subscriptions/subscriptionId1/resourcegroups/resourceGroup1/providers/Microsoft.ContainerService/managedClusters/cluster1", | ||
"prURL": "https://github.com/owner1/repo1/pull/6567", | ||
"pullNumber": 6567, | ||
"prStatus": "submitted", | ||
"authStatus": "Authorized" | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} |
Oops, something went wrong.