Skip to content

Commit

Permalink
[ReleasePR devops] Adding new api version to devops RP (#1441)
Browse files Browse the repository at this point in the history
  • Loading branch information
msftbot[bot] authored Jan 7, 2021
2 parents 5ff75c5 + 6ec1969 commit ec927e4
Show file tree
Hide file tree
Showing 2 changed files with 346 additions and 1 deletion.
2 changes: 1 addition & 1 deletion schemas/2019-07-01-preview/Microsoft.DevOps.json
Original file line number Diff line number Diff line change
Expand Up @@ -292,4 +292,4 @@
"description": "Reference to an Azure DevOps Project."
}
}
}
}
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."
}
}
}

0 comments on commit ec927e4

Please sign in to comment.