-
Notifications
You must be signed in to change notification settings - Fork 519
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[ReleasePR devops] Adding new api version to devops RP (#1441)
Create to sync Azure/azure-rest-api-specs#11585 [ReCreate this PR](https://github.com/azure-resource-manager-schemas/compare/master...AzureSDKAutomation:sdkAuto/devops?expand=1)
- Loading branch information
Showing
2 changed files
with
346 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -292,4 +292,4 @@ | |
"description": "Reference to an Azure DevOps Project." | ||
} | ||
} | ||
} | ||
} |
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,345 @@ | ||
{ | ||
"id": "https://schema.management.azure.com/schemas/2020-07-13-preview/Microsoft.DevOps.json#", | ||
"$schema": "http://json-schema.org/draft-04/schema#", | ||
"title": "Microsoft.DevOps", | ||
"description": "Microsoft DevOps Resource Types", | ||
"resourceDefinitions": { | ||
"pipelines": { | ||
"type": "object", | ||
"properties": { | ||
"apiVersion": { | ||
"type": "string", | ||
"enum": [ | ||
"2020-07-13-preview" | ||
] | ||
}, | ||
"location": { | ||
"type": "string", | ||
"description": "Resource Location" | ||
}, | ||
"name": { | ||
"type": "string", | ||
"description": "The name of the Pipeline resource in ARM." | ||
}, | ||
"properties": { | ||
"oneOf": [ | ||
{ | ||
"$ref": "#/definitions/PipelineProperties" | ||
}, | ||
{ | ||
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" | ||
} | ||
], | ||
"description": "Custom properties of a Pipeline." | ||
}, | ||
"tags": { | ||
"oneOf": [ | ||
{ | ||
"type": "object", | ||
"additionalProperties": { | ||
"type": "string" | ||
}, | ||
"properties": {} | ||
}, | ||
{ | ||
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" | ||
} | ||
], | ||
"description": "Resource Tags" | ||
}, | ||
"type": { | ||
"type": "string", | ||
"enum": [ | ||
"Microsoft.DevOps/pipelines" | ||
] | ||
} | ||
}, | ||
"required": [ | ||
"apiVersion", | ||
"name", | ||
"properties", | ||
"type" | ||
], | ||
"description": "Microsoft.DevOps/pipelines" | ||
} | ||
}, | ||
"definitions": { | ||
"Authorization": { | ||
"type": "object", | ||
"properties": { | ||
"authorizationType": { | ||
"oneOf": [ | ||
{ | ||
"type": "string", | ||
"enum": [ | ||
"personalAccessToken" | ||
] | ||
}, | ||
{ | ||
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" | ||
} | ||
], | ||
"description": "Type of authorization." | ||
}, | ||
"parameters": { | ||
"oneOf": [ | ||
{ | ||
"type": "object", | ||
"additionalProperties": { | ||
"type": "string" | ||
}, | ||
"properties": {} | ||
}, | ||
{ | ||
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" | ||
} | ||
], | ||
"description": "Authorization parameters corresponding to the authorization type." | ||
} | ||
}, | ||
"required": [ | ||
"authorizationType" | ||
], | ||
"description": "Authorization info used to access a resource (like code repository)." | ||
}, | ||
"AzurePipelineProperties": { | ||
"type": "object", | ||
"properties": { | ||
"organization": { | ||
"oneOf": [ | ||
{ | ||
"$ref": "#/definitions/OrganizationReference" | ||
}, | ||
{ | ||
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" | ||
} | ||
], | ||
"description": "Reference to an Azure DevOps Organization." | ||
}, | ||
"pipelineType": { | ||
"type": "string", | ||
"enum": [ | ||
"azurePipeline" | ||
] | ||
}, | ||
"project": { | ||
"oneOf": [ | ||
{ | ||
"$ref": "#/definitions/ProjectReference" | ||
}, | ||
{ | ||
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" | ||
} | ||
], | ||
"description": "Reference to an Azure DevOps Project." | ||
} | ||
}, | ||
"required": [ | ||
"organization", | ||
"pipelineType", | ||
"project" | ||
], | ||
"description": "Custom properties of a Azure Pipeline." | ||
}, | ||
"BootstrapConfiguration": { | ||
"type": "object", | ||
"properties": { | ||
"sourceRepository": { | ||
"oneOf": [ | ||
{ | ||
"$ref": "#/definitions/CodeRepository" | ||
}, | ||
{ | ||
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" | ||
} | ||
], | ||
"description": "Repository containing the source code for a pipeline." | ||
}, | ||
"template": { | ||
"oneOf": [ | ||
{ | ||
"$ref": "#/definitions/PipelineTemplate" | ||
}, | ||
{ | ||
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" | ||
} | ||
], | ||
"description": "Template used to bootstrap the pipeline." | ||
} | ||
}, | ||
"required": [ | ||
"template" | ||
], | ||
"description": "Configuration used to bootstrap a Pipeline." | ||
}, | ||
"CodeRepository": { | ||
"type": "object", | ||
"properties": { | ||
"authorization": { | ||
"oneOf": [ | ||
{ | ||
"$ref": "#/definitions/Authorization" | ||
}, | ||
{ | ||
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" | ||
} | ||
], | ||
"description": "Authorization info used to access a resource (like code repository)." | ||
}, | ||
"defaultBranch": { | ||
"type": "string", | ||
"description": "Default branch used to configure Continuous Integration (CI) in the pipeline." | ||
}, | ||
"id": { | ||
"type": "string", | ||
"description": "Unique immutable identifier of the code repository." | ||
}, | ||
"properties": { | ||
"oneOf": [ | ||
{ | ||
"type": "object", | ||
"additionalProperties": { | ||
"type": "string" | ||
}, | ||
"properties": {} | ||
}, | ||
{ | ||
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" | ||
} | ||
], | ||
"description": "Repository-specific properties." | ||
}, | ||
"repositoryType": { | ||
"oneOf": [ | ||
{ | ||
"type": "string", | ||
"enum": [ | ||
"gitHub", | ||
"vstsGit" | ||
] | ||
}, | ||
{ | ||
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" | ||
} | ||
], | ||
"description": "Type of code repository." | ||
} | ||
}, | ||
"required": [ | ||
"defaultBranch", | ||
"id", | ||
"repositoryType" | ||
], | ||
"description": "Repository containing the source code for a pipeline." | ||
}, | ||
"GithubWorkflowProperties": { | ||
"type": "object", | ||
"properties": { | ||
"pipelineType": { | ||
"type": "string", | ||
"enum": [ | ||
"githubWorkflow" | ||
] | ||
}, | ||
"repository": { | ||
"oneOf": [ | ||
{ | ||
"$ref": "#/definitions/CodeRepository" | ||
}, | ||
{ | ||
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" | ||
} | ||
], | ||
"description": "Repository containing the source code for a pipeline." | ||
} | ||
}, | ||
"required": [ | ||
"pipelineType", | ||
"repository" | ||
], | ||
"description": "Custom properties of an Github Pipeline." | ||
}, | ||
"OrganizationReference": { | ||
"type": "object", | ||
"properties": { | ||
"name": { | ||
"type": "string", | ||
"description": "Name of the Azure DevOps Organization." | ||
} | ||
}, | ||
"required": [ | ||
"name" | ||
], | ||
"description": "Reference to an Azure DevOps Organization." | ||
}, | ||
"PipelineProperties": { | ||
"type": "object", | ||
"oneOf": [ | ||
{ | ||
"$ref": "#/definitions/AzurePipelineProperties" | ||
}, | ||
{ | ||
"$ref": "#/definitions/GithubWorkflowProperties" | ||
} | ||
], | ||
"properties": { | ||
"bootstrapConfiguration": { | ||
"oneOf": [ | ||
{ | ||
"$ref": "#/definitions/BootstrapConfiguration" | ||
}, | ||
{ | ||
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" | ||
} | ||
], | ||
"description": "Configuration used to bootstrap a Pipeline." | ||
} | ||
}, | ||
"required": [ | ||
"bootstrapConfiguration" | ||
], | ||
"description": "Custom properties of a Pipeline." | ||
}, | ||
"PipelineTemplate": { | ||
"type": "object", | ||
"properties": { | ||
"id": { | ||
"type": "string", | ||
"description": "Unique identifier of the pipeline template." | ||
}, | ||
"parameters": { | ||
"oneOf": [ | ||
{ | ||
"type": "object", | ||
"additionalProperties": { | ||
"type": "string" | ||
}, | ||
"properties": {} | ||
}, | ||
{ | ||
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" | ||
} | ||
], | ||
"description": "Dictionary of input parameters used in the pipeline template." | ||
} | ||
}, | ||
"required": [ | ||
"id" | ||
], | ||
"description": "Template used to bootstrap the pipeline." | ||
}, | ||
"ProjectReference": { | ||
"type": "object", | ||
"properties": { | ||
"name": { | ||
"type": "string", | ||
"description": "Name of the Azure DevOps Project." | ||
} | ||
}, | ||
"required": [ | ||
"name" | ||
], | ||
"description": "Reference to an Azure DevOps Project." | ||
} | ||
} | ||
} |