Skip to content

Commit 5231d14

Browse files
suyash691josuh
authored andcommitted
Adding new api version to devops RP (Azure#11585)
* Initial commit as per PR review * Actual changes to api spec for new version * Switching to multi-api build for python * Fix python spec to correct namespaces in multiapi mode * Revert changes to python generation * Add systemdata * Fix the path for sys data reference * Fix path once more * remove additional properties after including systemdata * Remove more addtional properties * Move system data to root
1 parent 90e6543 commit 5231d14

15 files changed

+1515
-2
lines changed

specification/devops/resource-manager/Microsoft.DevOps/preview/2020-07-13-preview/devops.json

Lines changed: 925 additions & 0 deletions
Large diffs are not rendered by default.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,73 @@
1+
{
2+
"parameters": {
3+
"subscriptionId": "{subscriptionId}",
4+
"resourceGroupName": "myAspNetWebAppPipeline-rg",
5+
"pipelineName": "myAspNetWebAppPipeline",
6+
"api-version": "2020-07-13-preview",
7+
"createOperationParameters": {
8+
"properties": {
9+
"pipelineType": "azurePipeline",
10+
"organization": {
11+
"name": "myAspNetWebAppPipeline-org"
12+
},
13+
"project": {
14+
"name": "myAspNetWebAppPipeline-project"
15+
},
16+
"bootstrapConfiguration": {
17+
"template": {
18+
"id": "ms.vss-continuous-delivery-pipeline-templates.aspnet-windowswebapp",
19+
"parameters": {
20+
"subscriptionId": "{subscriptionId}",
21+
"resourceGroup": "myAspNetWebAppPipeline-rg",
22+
"webAppName": "myAspNetWebApp",
23+
"location": "South India",
24+
"appServicePlan": "S1 Standard",
25+
"appInsightLocation": "South India",
26+
"azureAuth": "{\"scheme\":\"ServicePrincipal\",\"parameters\":{\"tenantid\":\"{subscriptionTenantId}\",\"objectid\":\"{appObjectId}\",\"serviceprincipalid\":\"{appId}\",\"serviceprincipalkey\":\"{appSecret}\"}}"
27+
}
28+
}
29+
}
30+
}
31+
}
32+
},
33+
"responses": {
34+
"202": {
35+
"description": "The request has been accepted for processing and the Azure Pipeline will be configured asynchronously.",
36+
"headers": {
37+
"location": "https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/myAspNetWebAppPipeline-rg/providers/Microsoft.DevOps/pipelines/myAspNetWebAppPipeline/operations/{operationId}",
38+
"retry-after": "5"
39+
}
40+
},
41+
"200": {
42+
"description": "The Pipeline has been configured successfully.",
43+
"body": {
44+
"id": "/subscriptions/{subscriptionId}/resourceGroups/myAspNetWebAppPipeline-rg/providers/Microsoft.DevOps/pipelines/myAspNetWebAppPipeline",
45+
"name": "myAspNetWebAppPipeline",
46+
"type": "Microsoft.DevOps/pipelines",
47+
"properties": {
48+
"pipelineType": "azurePipeline",
49+
"organization": {
50+
"name": "myAspNetWebAppPipeline-org"
51+
},
52+
"project": {
53+
"name": "myAspNetWebAppPipeline-project"
54+
},
55+
"bootstrapConfiguration": {
56+
"template": {
57+
"id": "ms.vss-continuous-delivery-pipeline-templates.aspnet-windowswebapp",
58+
"parameters": {
59+
"subscriptionId": "{subscriptionId}",
60+
"resourceGroup": "myAspNetWebAppPipeline-rg",
61+
"webAppName": "myAspNetWebApp",
62+
"location": "South India",
63+
"appServicePlan": "S1 Standard",
64+
"appInsightLocation": "South India",
65+
"azureAuth": null
66+
}
67+
}
68+
}
69+
}
70+
}
71+
}
72+
}
73+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,77 @@
1+
{
2+
"parameters": {
3+
"subscriptionId": "{subscriptionId}",
4+
"resourceGroupName": "myAspNetWebAppPipeline-rg",
5+
"pipelineName": "myAspNetWebAppPipeline",
6+
"api-version": "2020-07-13-preview",
7+
"createOperationParameters": {
8+
"properties": {
9+
"pipelineType": "githubWorkflow",
10+
"repository": {
11+
"repositoryType": "gitHub",
12+
"id": "contoso/myAspNetWebAppPipeline-org",
13+
"defaultBranch": "master",
14+
"authorization": {
15+
"authorizationType": "personalAccessToken",
16+
"parameters": {
17+
"token": "mypat"
18+
}
19+
}
20+
},
21+
"bootstrapConfiguration": {
22+
"template": {
23+
"id": "ms.vss-continuous-delivery-pipeline-templates.aspnet-windowswebapp",
24+
"parameters": {
25+
"subscriptionId": "{subscriptionId}",
26+
"resourceGroup": "myAspNetWebAppPipeline-rg",
27+
"webAppName": "myAspNetWebApp",
28+
"location": "South India",
29+
"appServicePlan": "S1 Standard",
30+
"appInsightLocation": "South India",
31+
"azureAuth": "{\"scheme\":\"ServicePrincipal\",\"parameters\":{\"tenantid\":\"{subscriptionTenantId}\",\"objectid\":\"{appObjectId}\",\"serviceprincipalid\":\"{appId}\",\"serviceprincipalkey\":\"{appSecret}\"}}"
32+
}
33+
}
34+
}
35+
}
36+
}
37+
},
38+
"responses": {
39+
"202": {
40+
"description": "The request has been accepted for processing and the Azure Pipeline will be configured asynchronously.",
41+
"headers": {
42+
"location": "https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/myAspNetWebAppPipeline-rg/providers/Microsoft.DevOps/pipelines/myAspNetWebAppPipeline/operations/{operationId}",
43+
"retry-after": "5"
44+
}
45+
},
46+
"200": {
47+
"description": "The Pipeline has been configured successfully.",
48+
"body": {
49+
"id": "/subscriptions/{subscriptionId}/resourceGroups/myAspNetWebAppPipeline-rg/providers/Microsoft.DevOps/pipelines/myAspNetWebAppPipeline",
50+
"name": "myAspNetWebAppPipeline",
51+
"type": "Microsoft.DevOps/pipelines",
52+
"properties": {
53+
"pipelineType": "githubWorkflow",
54+
"repository": {
55+
"repositoryType": "gitHub",
56+
"id": "contoso/myAspNetWebAppPipeline-org",
57+
"defaultBranch": "master"
58+
},
59+
"bootstrapConfiguration": {
60+
"template": {
61+
"id": "ms.vss-continuous-delivery-pipeline-templates.aspnet-windowswebapp",
62+
"parameters": {
63+
"subscriptionId": "{subscriptionId}",
64+
"resourceGroup": "myAspNetWebAppPipeline-rg",
65+
"webAppName": "myAspNetWebApp",
66+
"location": "South India",
67+
"appServicePlan": "S1 Standard",
68+
"appInsightLocation": "South India",
69+
"azureAuth": null
70+
}
71+
}
72+
}
73+
}
74+
}
75+
}
76+
}
77+
}
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
{
2+
"parameters": {
3+
"subscriptionId": "{subscriptionId}",
4+
"resourceGroupName": "myAspNetWebAppPipeline-rg",
5+
"pipelineName": "myAspNetWebAppPipeline",
6+
"api-version": "2020-07-13-preview"
7+
},
8+
"responses": {
9+
"200": {
10+
"description": "The Pipeline has been deleted successfully."
11+
},
12+
"204": {
13+
"description": "The Pipeline is not found or has been deleted already."
14+
}
15+
}
16+
}
Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
{
2+
"parameters": {
3+
"subscriptionId": "{subscriptionId}",
4+
"resourceGroupName": "myAspNetWebAppPipeline-rg",
5+
"pipelineName": "myAspNetWebAppPipeline",
6+
"api-version": "2020-07-13-preview"
7+
},
8+
"responses": {
9+
"200": {
10+
"description": "The Pipeline has been configured successfully.",
11+
"body": {
12+
"id": "/subscriptions/{subscriptionId}/resourceGroups/myAspNetWebAppPipeline-rg/providers/Microsoft.DevOps/pipelines/myAspNetWebAppPipeline",
13+
"name": "myAspNetWebAppPipeline",
14+
"type": "Microsoft.DevOps/pipelines",
15+
"properties": {
16+
"pipelineType": "azurePipeline",
17+
"organization": {
18+
"name": "myAspNetWebAppPipeline-org"
19+
},
20+
"project": {
21+
"name": "myAspNetWebAppPipeline-project"
22+
},
23+
"bootstrapConfiguration": {
24+
"template": {
25+
"id": "ms.vss-continuous-delivery-pipeline-templates.aspnet-windowswebapp",
26+
"parameters": {
27+
"subscriptionId": "{subscriptionId}",
28+
"resourceGroup": "myAspNetWebAppPipeline-rg",
29+
"webAppName": "myAspNetWebApp",
30+
"location": "South India",
31+
"appServicePlan": "S1 Standard",
32+
"appInsightLocation": "South India",
33+
"azureAuth": null
34+
}
35+
}
36+
}
37+
}
38+
}
39+
}
40+
}
41+
}
Lines changed: 64 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,64 @@
1+
{
2+
"parameters": {
3+
"api-version": "2020-07-13-preview"
4+
},
5+
"responses": {
6+
"200": {
7+
"description": "The list of supported operations has been fetched successfully.",
8+
"body": {
9+
"value": [
10+
{
11+
"name": "Microsoft.DevOps/register/action",
12+
"isDataAction": "false",
13+
"display": {
14+
"provider": "Microsoft DevOps",
15+
"resource": "register",
16+
"operation": "Register for Microsoft.DevOps",
17+
"description": "Registers the specified subscription with Microsoft.DevOps resource provider and enables the creation of Pipelines"
18+
}
19+
},
20+
{
21+
"name": "Microsoft.DevOps/pipelines/write",
22+
"isDataAction": "false",
23+
"display": {
24+
"provider": "Microsoft DevOps",
25+
"resource": "Pipelines",
26+
"operation": "Create or Update Pipeline",
27+
"description": "Creates or Updates any Pipeline"
28+
}
29+
},
30+
{
31+
"name": "Microsoft.DevOps/pipelines/read",
32+
"isDataAction": "false",
33+
"display": {
34+
"provider": "Microsoft DevOps",
35+
"resource": "Pipelines",
36+
"operation": "Read Pipeline",
37+
"description": "Reads any Pipeline"
38+
}
39+
},
40+
{
41+
"name": "Microsoft.DevOps/pipelines/delete",
42+
"isDataAction": "false",
43+
"display": {
44+
"provider": "Microsoft DevOps",
45+
"resource": "Pipelines",
46+
"operation": "Delete Pipeline",
47+
"description": "Deletes any Pipeline"
48+
}
49+
},
50+
{
51+
"name": "Microsoft.DevOps/pipelineTemplateDefinitions/read",
52+
"isDataAction": "false",
53+
"display": {
54+
"provider": "Microsoft DevOps",
55+
"resource": "PipelineTemplateDefinitions",
56+
"operation": "Read PipelineTemplateDefinition",
57+
"description": "Reads any PipelineTemplateDefinition"
58+
}
59+
}
60+
]
61+
}
62+
}
63+
}
64+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,107 @@
1+
{
2+
"parameters": {
3+
"api-version": "2020-07-13-preview"
4+
},
5+
"responses": {
6+
"200": {
7+
"description": "The pipeline template definitions have been fetched successfully.",
8+
"body": {
9+
"value": [
10+
{
11+
"id": "ms.vss-continuous-delivery-pipeline-templates.aspnet-windowswebapp",
12+
"description": "Template for configuring CI/CD pipeline for ASP.Net app on Azure windows app service",
13+
"inputs": [
14+
{
15+
"id": "azureAuth",
16+
"description": "Authorization for Azure ARM endpoints.",
17+
"type": "String",
18+
"possibleValues": []
19+
},
20+
{
21+
"id": "subscriptionId",
22+
"description": "Id of subscription where azure resources will be created.",
23+
"type": "String",
24+
"possibleValues": []
25+
},
26+
{
27+
"id": "resourceGroup",
28+
"description": "A resource group is a collection of resources that share the same lifecycle, permissions, and policies. Name of resource group which should contain web app.",
29+
"type": "String",
30+
"possibleValues": []
31+
},
32+
{
33+
"id": "webAppName",
34+
"description": "Name of web app to be created",
35+
"type": "String",
36+
"possibleValues": []
37+
},
38+
{
39+
"id": "location",
40+
"description": "Choose the Azure region that's right for you and your customers.",
41+
"type": "String",
42+
"possibleValues": []
43+
},
44+
{
45+
"id": "appServicePlan",
46+
"description": "Details of cost and compute resource associated with the web app",
47+
"type": "String",
48+
"possibleValues": [
49+
{
50+
"value": "P1 Premium",
51+
"displayValue": "P1 Premium (1 Core, 1.75 GB RAM)"
52+
},
53+
{
54+
"value": "P2 Premium",
55+
"displayValue": "P2 Premium (2 Core, 3.5 GB RAM)"
56+
},
57+
{
58+
"value": "P3 Premium",
59+
"displayValue": "P3 Premium (4 Core, 7 GB RAM)"
60+
},
61+
{
62+
"value": "S1 Standard",
63+
"displayValue": "S1 Standard (1 Core, 1.75 GB RAM)"
64+
},
65+
{
66+
"value": "S2 Standard",
67+
"displayValue": "S2 Standard (2 Core, 3.5 GB RAM)"
68+
},
69+
{
70+
"value": "S3 Standard",
71+
"displayValue": "S3 Standard (4 Core, 7 GB RAM)"
72+
},
73+
{
74+
"value": "B1 Basic",
75+
"displayValue": "B1 Basic (1 Core, 1.75 GB RAM)"
76+
},
77+
{
78+
"value": "B2 Basic",
79+
"displayValue": "B2 Basic (2 Core, 3.5 GB RAM)"
80+
},
81+
{
82+
"value": "B3 Basic",
83+
"displayValue": "B3 Basic (4 Core, 7 GB RAM)"
84+
},
85+
{
86+
"value": "F1 Free",
87+
"displayValue": "F1 Free"
88+
},
89+
{
90+
"value": "D1 Shared",
91+
"displayValue": "D1 Shared"
92+
}
93+
]
94+
},
95+
{
96+
"id": "appInsightLocation",
97+
"description": "Collect application monitoring data using Application Insights.",
98+
"type": "String",
99+
"possibleValues": []
100+
}
101+
]
102+
}
103+
]
104+
}
105+
}
106+
}
107+
}

0 commit comments

Comments
 (0)