Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[AutoPR devops] Adding new api version to devops RP #746

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
345 changes: 345 additions & 0 deletions schemas/2020-07-13-preview/Microsoft.DevOps.json
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."
}
}
}
5 changes: 4 additions & 1 deletion schemas/common/autogeneratedResources.json
Original file line number Diff line number Diff line change
Expand Up @@ -2620,6 +2620,9 @@
{
"$ref": "https://schema.management.azure.com/schemas/2019-07-01-preview/Microsoft.DevOps.json#/resourceDefinitions/pipelines"
},
{
"$ref": "https://schema.management.azure.com/schemas/2020-07-13-preview/Microsoft.DevOps.json#/resourceDefinitions/pipelines"
},
{
"$ref": "https://schema.management.azure.com/schemas/2019-04-01/Microsoft.DevSpaces.json#/resourceDefinitions/controllers"
},
Expand Down Expand Up @@ -5551,4 +5554,4 @@
]
}
]
}
}