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

[Hub Generated] Publish private branch 'release-devcenter-Microsoft.DevCenter-2022-11-11-preview' #21454

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
23 commits
Select commit Hold shift + click to select a range
c6aa602
Adds base for updating Microsoft.DevCenter from version preview/2022-…
chrissmiller Oct 10, 2022
79e4a52
Updates readme
chrissmiller Oct 10, 2022
54166db
Updates API version in new specs and examples
chrissmiller Oct 10, 2022
ba9c113
Add updated examples and spec
chrissmiller Oct 10, 2022
d2a63c9
Run prettier and resolve swagger checks
chrissmiller Oct 10, 2022
1f7a05c
Update client loc and format
chrissmiller Oct 10, 2022
f05830e
Restore URL format to satisfy HostParametersValidation
chrissmiller Oct 10, 2022
294cdd3
Update host template naming
chrissmiller Oct 10, 2022
369b4dc
Update to use "endpoint"
chrissmiller Oct 10, 2022
9eaf6d8
Update formats and naming
chrissmiller Oct 15, 2022
75a1b03
Remove artifacts
chrissmiller Oct 15, 2022
d6deb37
Remove url formatting
chrissmiller Oct 27, 2022
a7d95db
Expose hibernation support info
chrissmiller Oct 27, 2022
2540891
Update naming based on feedback, restore hibernate query param
chrissmiller Oct 31, 2022
c052adc
Run prettier, fix ref
chrissmiller Oct 31, 2022
908ae30
Incorporate example changes
chrissmiller Oct 31, 2022
5292958
Align param naming
chrissmiller Nov 1, 2022
740a58f
Align user ID naming
chrissmiller Nov 3, 2022
458998f
Remove unnecessary LRO options
chrissmiller Nov 10, 2022
fc559ed
Remove delete environment LRO options
chrissmiller Nov 10, 2022
3f686b4
Fix reference that breaks swagger api view
chrissmiller Nov 10, 2022
f4d938b
Add suppression
chrissmiller Nov 14, 2022
8f8a2a0
Fix suppression format
chrissmiller Nov 14, 2022
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

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
@@ -0,0 +1,301 @@
{
"swagger": "2.0",
"info": {
"version": "2022-11-11-preview",
"title": "DevCenter"
},
"x-ms-parameterized-host": {
"hostTemplate": "{endpoint}",
"useSchemePrefix": false,
"parameters": [
{
"$ref": "devcenter.json#/parameters/EndpointParameter"
}
]
},
"schemes": [
"https"
],
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"security": [
{
"AADToken": [
"user_impersonation"
]
}
],
"securityDefinitions": {
"AADToken": {
"type": "oauth2",
"authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize",
"flow": "implicit",
"description": "Azure Active Directory OAuth2 Flow",
"scopes": {
"user_impersonation": "impersonate your user account"
}
}
},
"paths": {
"/projects": {
"get": {
"tags": [
"Projects"
],
"description": "Lists all projects.",
"parameters": [
{
"$ref": "#/parameters/ApiVersionParameter"
},
{
"$ref": "#/parameters/FilterParameter"
},
{
"$ref": "#/parameters/TopParameter"
}
],
"operationId": "DevCenter_ListProjects",
"responses": {
"200": {
"description": "OK. The request has succeeded.",
"schema": {
"$ref": "#/definitions/ProjectListResult"
}
},
"default": {
"description": "Error response describing why the operation failed.",
"schema": {
"$ref": "#/definitions/CloudError"
}
}
},
"x-ms-examples": {
"DevCenter_ListProjects": {
"$ref": "./examples/Projects_ListByDevCenter.json"
}
},
"x-ms-pageable": {
"nextLinkName": "nextLink"
}
}
},
"/projects/{projectName}": {
"get": {
"tags": [
"Projects"
],
"description": "Gets a project.",
"parameters": [
{
"$ref": "#/parameters/ProjectNameMethodParameter"
},
{
"$ref": "#/parameters/ApiVersionParameter"
}
],
"operationId": "DevCenter_GetProject",
"responses": {
"200": {
"description": "OK. The request has succeeded.",
"schema": {
"$ref": "#/definitions/Project"
}
},
"default": {
"description": "Error response describing why the operation failed.",
"schema": {
"$ref": "#/definitions/CloudError"
}
}
},
"x-ms-examples": {
"DevCenter_GetProject": {
"$ref": "./examples/Projects_Get.json"
}
}
}
}
},
"definitions": {
"ProjectListResult": {
"description": "Results of the project list operation.",
"type": "object",
"properties": {
"value": {
"description": "Current page of results.",
"type": "array",
"items": {
"$ref": "#/definitions/Project"
}
},
"nextLink": {
"description": "URL to get the next set of results if there are any.",
"type": "string"
}
},
"required": [
"value"
]
},
"Project": {
"description": "Project details.",
"type": "object",
"properties": {
"name": {
"type": "string",
"description": "Name of the project",
"readOnly": true
},
"description": {
"type": "string",
"description": "Description of the project.",
"readOnly": true
}
}
},
"CloudError": {
"x-ms-external": true,
"type": "object",
"required": [
"error"
],
"properties": {
"error": {
"description": "Error body",
"$ref": "#/definitions/CloudErrorBody"
}
},
"description": "An error response from the service."
},
"CloudErrorBody": {
"x-ms-external": true,
"description": "An error response from the service.",
"type": "object",
"required": [
"code",
"message"
],
"properties": {
"code": {
"type": "string",
"description": "An identifier for the error. Codes are invariant and are intended to be consumed programmatically."
},
"message": {
"type": "string",
"description": "A message describing the error, intended to be suitable for display in a user interface."
},
"target": {
"type": "string",
"description": "The target of the particular error. For example, the name of the property in error."
},
"details": {
"type": "array",
"items": {
"$ref": "#/definitions/CloudErrorBody"
},
"description": "A list of additional details about the error."
}
}
},
"ProvisioningError": {
"description": "Error details",
"type": "object",
"properties": {
"code": {
"type": "string",
"description": "The error code."
},
"message": {
"type": "string",
"description": "The error message."
}
}
},
"EnableStatus": {
"description": "Enable or disable status. Indicates whether the property applied to is either enabled or disabled.",
"enum": [
"Enabled",
"Disabled"
],
"type": "string",
"x-ms-enum": {
"name": "EnableStatus",
"modelAsString": true
}
}
},
"parameters": {
"ProjectNameParameter": {
"name": "projectName",
"description": "The DevCenter Project upon which to execute operations.",
"required": true,
"type": "string",
"pattern": "^[a-zA-Z0-9][a-zA-Z0-9-_.]{2,62}$",
"minLength": 3,
"maxLength": 63,
"in": "path",
"x-ms-parameter-location": "client"
},
"ProjectNameMethodParameter": {
"name": "projectName",
"description": "The DevCenter Project upon which to execute operations.",
"required": true,
"type": "string",
"pattern": "^[a-zA-Z0-9][a-zA-Z0-9-]{2,62}$",
"minLength": 3,
"maxLength": 63,
"in": "path",
"x-ms-parameter-location": "method"
},
"ApiVersionParameter": {
"name": "api-version",
"in": "query",
"required": true,
"type": "string",
"description": "The API version to be used with the HTTP request.",
"x-ms-parameter-location": "client"
},
"FilterParameter": {
"name": "filter",
"in": "query",
"description": "An OData filter clause to apply to the operation.",
"type": "string",
"required": false,
"x-ms-parameter-location": "method"
},
"TopParameter": {
"name": "top",
"in": "query",
"description": "The maximum number of resources to return from the operation. Example: 'top=10'.",
"type": "integer",
"format": "int32",
"required": false,
"x-ms-parameter-location": "method"
},
"UserIdParameter": {
"name": "userId",
"in": "path",
"required": true,
"x-ms-client-default": "me",
"type": "string",
"pattern": "^[a-zA-Z0-9]{8}-([a-zA-Z0-9]{4}-){3}[a-zA-Z0-9]{12}$|^me$",
"minLength": 2,
"maxLength": 36,
"description": "The AAD object id of the user. If value is 'me', the identity is taken from the authentication context.",
"x-ms-parameter-location": "method"
},
"EndpointParameter": {
"name": "endpoint",
"description": "The DevCenter-specific URI to operate on.",
"required": true,
"type": "string",
"in": "path",
"x-ms-skip-url-encoding": true,
"x-ms-parameter-location": "client"
}
}
}
Loading