Skip to content

Commit 4eaa726

Browse files
[Hub Generated] Review request for Microsoft.DevHub to add version preview/2022-10-11-preview (#22828)
* Adds base for updating Microsoft.DevHub from version preview/2022-04-01-preview to version 2022-10-11-preview * Updates readme * Updates API version in new specs and examples * start 10-11 preview * add words * fix readme version * update swagger version * add second putworkflow example * fix generatepreviewartifactsresponse * align generate preview artifacts example * update param locations that got changed * add x-ms-client-flatten for artifact properties * Adding WorkflowRunStatus * Fixing enum name * add namespace to example --------- Co-authored-by: Brandon Foley <brandonfoley13@gmail.com>
1 parent 3eaf771 commit 4eaa726

15 files changed

+1900
-1
lines changed

custom-words.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -649,6 +649,8 @@ Dnat
649649
dnsname
650650
dnszones
651651
DOCM
652+
Dockerfile
653+
Dockerfiles
652654
docx
653655
Domainful
654656
domainname
@@ -888,6 +890,7 @@ gluster
888890
gmsa
889891
Gmsa
890892
GOARCH
893+
gomodule
891894
GPUMIG
892895
GPUP
893896
GPUs
@@ -1133,6 +1136,7 @@ KubeVirt
11331136
Kustomization
11341137
kustomizations
11351138
Kustomizations
1139+
kustomize
11361140
kusto
11371141
kustooperations
11381142
kvset
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
{
2+
"parameters": {
3+
"api-version": "2022-10-11-preview",
4+
"subscriptionId": "subscriptionId1",
5+
"location": "location1",
6+
"parameters": {
7+
"generationLanguage": "javascript",
8+
"languageVersion": "14",
9+
"port": "80",
10+
"appName": "my-app",
11+
"dockerfileOutputDirectory": "./",
12+
"manifestOutputDirectory": "./",
13+
"manifestGenerationMode": "enabled",
14+
"dockerfileGenerationMode": "enabled",
15+
"manifestType": "kube",
16+
"imageName": "myimage",
17+
"namespace": "my-namespace",
18+
"imageTag": "latest"
19+
}
20+
},
21+
"responses": {
22+
"200": {
23+
"body": {
24+
"dockerfiles/example-dockerfile": "dockerfile-content \n including newlines",
25+
"manifests/example-manifest-file-1": "manifest file 1 content \n including newlines",
26+
"manifests/example-manifest-file-2": "manifest file 2 content \n including newlines"
27+
}
28+
}
29+
}
30+
}
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
{
2+
"parameters": {
3+
"subscriptionId": "subscriptionId1",
4+
"location": "eastus2euap",
5+
"api-version": "2022-10-11-preview",
6+
"parameters": {
7+
"redirectUrl": "https://ms.portal.azure.com/aks"
8+
}
9+
},
10+
"responses": {
11+
"200": {
12+
"body": {
13+
"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",
14+
"token": ""
15+
}
16+
}
17+
}
18+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
{
2+
"parameters": {
3+
"subscriptionId": "subscriptionId1",
4+
"location": "eastus2euap",
5+
"api-version": "2022-10-11-preview",
6+
"code": "3584d83530557fdd1f46af8289938c8ef79f9dc5",
7+
"state": "12345678-3456-7890-5678-012345678901"
8+
},
9+
"responses": {
10+
"200": {
11+
"body": {
12+
"id": "/subscriptions/subscriptionId1/providers/Microsoft.DevHub/locations/eastus2euap/githuboauth/default",
13+
"type": "Microsoft.DevHub/locations/githuboauth",
14+
"name": "default",
15+
"properties": {
16+
"username": "user"
17+
}
18+
}
19+
}
20+
}
21+
}
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
{
2+
"parameters": {
3+
"subscriptionId": "subscriptionId1",
4+
"location": "eastus2euap",
5+
"api-version": "2022-10-11-preview"
6+
},
7+
"responses": {
8+
"200": {
9+
"body": {
10+
"value": [
11+
{
12+
"id": "/subscriptions/subscriptionId1/providers/Microsoft.DevHub/locations/eastus2euap/githuboauth/default",
13+
"type": "Microsoft.DevHub/locations/githuboauth",
14+
"name": "default",
15+
"properties": {
16+
"username": "user"
17+
}
18+
}
19+
]
20+
}
21+
}
22+
}
23+
}
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
{
2+
"parameters": {
3+
"api-version": "2022-10-11-preview"
4+
},
5+
"responses": {
6+
"200": {
7+
"body": {
8+
"value": [
9+
{
10+
"name": "Microsoft.DevHub/workflows/read",
11+
"display": {
12+
"provider": "Microsoft Developer Hub",
13+
"resource": "Workflows",
14+
"operation": "Get workflow",
15+
"description": "Gets workflow"
16+
}
17+
}
18+
],
19+
"nextLink": null
20+
}
21+
}
22+
}
23+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,146 @@
1+
{
2+
"parameters": {
3+
"api-version": "2022-10-11-preview",
4+
"subscriptionId": "subscriptionId1",
5+
"resourceGroupName": "resourceGroup1",
6+
"workflowName": "workflow1",
7+
"parameters": {
8+
"location": "location1",
9+
"tags": {
10+
"appname": "testApp"
11+
},
12+
"properties": {
13+
"githubWorkflowProfile": {
14+
"repositoryOwner": "owner1",
15+
"repositoryName": "repo1",
16+
"branchName": "branch1",
17+
"dockerfile": "repo1/images/Dockerfile",
18+
"dockerBuildContext": "repo1/src/",
19+
"deploymentProperties": {
20+
"manifestType": "kube",
21+
"kubeManifestLocations": [
22+
"/src/manifests/"
23+
],
24+
"overrides": {
25+
"key1": "value1"
26+
}
27+
},
28+
"namespace": "namespace1",
29+
"acr": {
30+
"acrSubscriptionId": "subscriptionId1",
31+
"acrResourceGroup": "resourceGroup1",
32+
"acrRegistryName": "registry1",
33+
"acrRepositoryName": "repo1"
34+
},
35+
"oidcCredentials": {
36+
"azureClientId": "12345678-3456-7890-5678-012345678901",
37+
"azureTenantId": "66666666-3456-7890-5678-012345678901"
38+
},
39+
"aksResourceId": "/subscriptions/subscriptionId1/resourcegroups/resourceGroup1/providers/Microsoft.ContainerService/managedClusters/cluster1"
40+
}
41+
}
42+
}
43+
},
44+
"responses": {
45+
"200": {
46+
"body": {
47+
"id": "/subscription/subscriptionId1/resourceGroups/resourceGroup1/providers/Microsoft.DevHub/workflow/workflow1",
48+
"location": "location1",
49+
"name": "workflow1",
50+
"type": "Micfosoft.DevHub/Workflow",
51+
"tags": {
52+
"appname": "testapp"
53+
},
54+
"systemData": {
55+
"createdBy": "foo@contoso.com",
56+
"createdByType": "User",
57+
"createdAt": "2018-04-24T16:30:55+00:00",
58+
"lastModifiedBy": "foo@contoso.com",
59+
"lastModifiedByType": "User",
60+
"lastModifiedAt": "2018-04-24T16:30:55+00:00"
61+
},
62+
"properties": {
63+
"githubWorkflowProfile": {
64+
"repositoryOwner": "owner1",
65+
"repositoryName": "repo2",
66+
"branchName": "branch2",
67+
"dockerfile": "repo2/images/Dockerfile",
68+
"dockerBuildContext": "repo2/src/",
69+
"deploymentProperties": {
70+
"manifestType": "helm",
71+
"helmChartPath": "/src/charts",
72+
"helmValues": "/src/chars/values.yaml",
73+
"overrides": {
74+
"key1": "value1"
75+
}
76+
},
77+
"acr": {
78+
"acrSubscriptionId": "subscriptionId1",
79+
"acrResourceGroup": "resourceGroup1",
80+
"acrRegistryName": "registry1",
81+
"acrRepositoryName": "repo1"
82+
},
83+
"oidcCredentials": {
84+
"azureClientId": "12345678-3456-7890-5678-012345678901",
85+
"azureTenantId": "66666666-3456-7890-5678-012345678901"
86+
},
87+
"aksResourceId": "/subscriptions/subscriptionId1/resourcegroups/resourceGroup1/providers/Microsoft.ContainerService/managedClusters/cluster1",
88+
"prURL": "https://github.com/User/repo2/pull/6567",
89+
"pullNumber": 6567,
90+
"prStatus": "submitted",
91+
"authStatus": "Authorized"
92+
}
93+
}
94+
}
95+
},
96+
"201": {
97+
"body": {
98+
"id": "/subscription/subscriptionId1/resourceGroups/resourceGroup1/providers/Microsoft.DevHub/workflow/workflow1",
99+
"location": "location1",
100+
"name": "workflow1",
101+
"type": "Micfosoft.DevHub/Workflow",
102+
"tags": {
103+
"appname": "testapp"
104+
},
105+
"systemData": {
106+
"createdBy": "foo@contoso.com",
107+
"createdByType": "User",
108+
"createdAt": "2018-04-24T16:30:55+00:00",
109+
"lastModifiedBy": "foo@contoso.com",
110+
"lastModifiedByType": "User",
111+
"lastModifiedAt": "2018-04-24T16:30:55+00:00"
112+
},
113+
"properties": {
114+
"githubWorkflowProfile": {
115+
"repositoryOwner": "owner1",
116+
"repositoryName": "repo1",
117+
"branchName": "branch1",
118+
"dockerfile": "repo1/images/Dockerfile",
119+
"dockerBuildContext": "repo1/src/",
120+
"deploymentProperties": {
121+
"manifestType": "kube",
122+
"overrides": {
123+
"key1": "value1"
124+
}
125+
},
126+
"acr": {
127+
"acrSubscriptionId": "subscriptionId1",
128+
"acrResourceGroup": "resourceGroup1",
129+
"acrRegistryName": "registry1",
130+
"acrRepositoryName": "repo1"
131+
},
132+
"oidcCredentials": {
133+
"azureClientId": "12345678-3456-7890-5678-012345678901",
134+
"azureTenantId": "66666666-3456-7890-5678-012345678901"
135+
},
136+
"aksResourceId": "/subscriptions/subscriptionId1/resourcegroups/resourceGroup1/providers/Microsoft.ContainerService/managedClusters/cluster1",
137+
"prURL": "https://github.com/owner1/repo1/pull/6567",
138+
"pullNumber": 6567,
139+
"prStatus": "submitted",
140+
"authStatus": "Authorized"
141+
}
142+
}
143+
}
144+
}
145+
}
146+
}

0 commit comments

Comments
 (0)