Skip to content

[devcenter] Control plane 2025-04-01-preview #27998

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

Draft
wants to merge 8 commits into
base: main
Choose a base branch
from
Draft
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
29 changes: 29 additions & 0 deletions src/DevCenter/DevCenter.AutoRest/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the Apache License, Version 2.0 (the ""License"");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
// http://www.apache.org/licenses/LICENSE-2.0
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an ""AS IS"" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
// Code generated by Microsoft (R) AutoRest Code Generator.Changes may cause incorrect behavior and will be lost if the code
// is regenerated.

using System;
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;

[assembly: System.Reflection.AssemblyCompanyAttribute("Microsoft")]
[assembly: System.Reflection.AssemblyCopyrightAttribute("Copyright © Microsoft")]
[assembly: System.Reflection.AssemblyProductAttribute("Microsoft Azure PowerShell")]
[assembly: System.Reflection.AssemblyTitleAttribute("Microsoft Azure PowerShell - DevCenter")]
[assembly: System.Reflection.AssemblyFileVersionAttribute("2.0.1")]
[assembly: System.Reflection.AssemblyVersionAttribute("2.0.1")]
[assembly: System.Runtime.InteropServices.ComVisibleAttribute(false)]
[assembly: System.CLSCompliantAttribute(false)]



49 changes: 34 additions & 15 deletions src/DevCenter/DevCenter.AutoRest/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,14 +28,14 @@ For information on how to develop for `Az.DevCenter`, see [how-to.md](how-to.md)

```yaml
# pin the swagger version by using the commit id instead of branch name
commit: 490e7fec728b018ff3ab103a6e1cb09644452ccf
commit: 4689e75cdeaa04dbeead0237b72cae8dc8dbba4d
require:
# readme.azure.noprofile.md is the common configuration file
- $(this-folder)/../../readme.azure.noprofile.md
input-file:
- $(repo)/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2024-05-01-preview/commonDefinitions.json
- $(repo)/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2024-05-01-preview/devcenter.json
- $(repo)/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2024-05-01-preview/vdi.json
- $(repo)/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-04-01-preview/commonDefinitions.json
- $(repo)/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-04-01-preview/devcenter.json
- $(repo)/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-04-01-preview/vdi.json
# For new modules, please avoid setting 3.x using the use-extension method and instead, use 4.x as the default option
use-extension:
"@autorest/powershell": "3.x"
Expand Down Expand Up @@ -166,28 +166,50 @@ directive:
"description": "OK. The request has succeeded."
}
- from: swagger-document
where: $.paths["/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevCenter/plans/{planName}"].delete.responses
where: $.paths["/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevCenter/networkConnections/{networkConnectionName}/runHealthChecks"].post.responses
transform: >
$['200'] = {
"description": "OK. The request has succeeded."
}
- from: swagger-document
where: $.paths["/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevCenter/plans/{planName}/members/{memberName}"].delete.responses
where: $.paths["/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevCenter/projects/{projectName}/pools/{poolName}/runHealthChecks"].post.responses
transform: >
$['200'] = {
"description": "OK. The request has succeeded."
}
- from: swagger-document
where: $.paths["/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevCenter/networkConnections/{networkConnectionName}/runHealthChecks"].post.responses
where: $.paths["/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevCenter/devcenters/{devCenterName}/projectPolicies/{projectPolicyName}"].delete.responses
transform: >
$['200'] = {
"description": "OK. The request has succeeded."
}
- from: swagger-document
where: $.paths["/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevCenter/projects/{projectName}/pools/{poolName}/runHealthChecks"].post.responses
where: $.paths["/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevCenter/projects/{projectName}/catalogs/{catalogName}/imageDefinitions/{imageDefinitionName}/builds/{buildName}/cancel"].post.responses
transform: >
$['200'] = {
"description": "OK. The request has succeeded."
"description": "OK. The request has succeeded.",
"headers": {
"Azure-AsyncOperation": {
"type": "string"
},
"Location": {
"type": "string"
}
}
}
- from: swagger-document
where: $.paths["/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevCenter/projects/{projectName}/catalogs/{catalogName}/imageDefinitions/{imageDefinitionName}/buildImage"].post.responses
transform: >
$['200'] = {
"description": "OK. The request has succeeded.",
"headers": {
"Azure-AsyncOperation": {
"type": "string"
},
"Location": {
"type": "string"
}
}
}
#Use v3 for OperationStatus, remove this for breaking change version
- from: swagger-document
Expand All @@ -198,7 +220,7 @@ directive:
"type": "object",
"allOf": [
{
"$ref": "https://github.com/Azure/azure-rest-api-specs/blob/490e7fec728b018ff3ab103a6e1cb09644452ccf/specification/common-types/resource-management/v3/types.json#/definitions/OperationStatusResult"
"$ref": "https://github.com/Azure/azure-rest-api-specs/blob/4689e75cdeaa04dbeead0237b72cae8dc8dbba4d/specification/common-types/resource-management/v3/types.json#/definitions/OperationStatusResult"
}
],
"properties": {
Expand Down Expand Up @@ -241,9 +263,6 @@ directive:
set:
default:
script: '"default"'
- where:
subject: Schedule
hide: true
- where:
subject: Pool
parameter-name: LicenseType
Expand Down Expand Up @@ -335,10 +354,10 @@ directive:
hide: true
- where:
verb: New
subject: ^AttachedNetwork$|^Catalog$|^DevBoxDefinition$|^Gallery$|^NetworkConnection$|^Pool$|^Project$|^ProjectEnvironmentType$|^ProjectCatalog$|^Plan$|^PlanMember$
subject: ^AttachedNetwork$|^Catalog$|^DevBoxDefinition$|^Gallery$|^NetworkConnection$|^Pool$|^Project$|^ProjectEnvironmentType$|^ProjectCatalog$
hide: true
- where:
subject: ^CatalogDevBoxDefinition$|^CatalogDevBoxDefinitionErrorDetail$|^EncryptionSet$
subject: ^CatalogDevBoxDefinition$|^CatalogDevBoxDefinitionErrorDetail$|^EncryptionSet$|^DevCenterCatalogImageDefinitionImage$|^DevCenterCatalogImageDefinition$|^DevCenterCatalogImageDefinitionBuild$|^DevCenterCatalogImageDefinitionBuildDetail$|^DevCenterCatalogImageDefinitionErrorDetail$
hide: true
- where:
subject: OperationStatuses
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"resourceType": "devcenters/attachednetworks",
"apiVersion": "2024-05-01-preview",
"apiVersion": "2025-04-01-preview",
"learnMore": {
"url": "https://learn.microsoft.com/powershell/module/az.devcenter"
},
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"resourceType": "devcenters/catalogs/environmentDefinitions",
"apiVersion": "2024-05-01-preview",
"apiVersion": "2025-04-01-preview",
"learnMore": {
"url": "https://learn.microsoft.com/powershell/module/az.devcenter"
},
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"resourceType": "devcenters/catalogs/tasks",
"apiVersion": "2024-05-01-preview",
"apiVersion": "2025-04-01-preview",
"learnMore": {
"url": "https://learn.microsoft.com/powershell/module/az.devcenter"
},
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"resourceType": "devcenters/catalogs",
"apiVersion": "2024-05-01-preview",
"apiVersion": "2025-04-01-preview",
"learnMore": {
"url": "https://learn.microsoft.com/powershell/module/az.devcenter"
},
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"resourceType": "devcenters/devboxdefinitions",
"apiVersion": "2024-05-01-preview",
"apiVersion": "2025-04-01-preview",
"learnMore": {
"url": "https://learn.microsoft.com/powershell/module/az.devcenter"
},
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"resourceType": "devcenters/environmentTypes",
"apiVersion": "2024-05-01-preview",
"apiVersion": "2025-04-01-preview",
"learnMore": {
"url": "https://learn.microsoft.com/powershell/module/az.devcenter"
},
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"resourceType": "devcenters/galleries/images/versions",
"apiVersion": "2024-05-01-preview",
"apiVersion": "2025-04-01-preview",
"learnMore": {
"url": "https://learn.microsoft.com/powershell/module/az.devcenter"
},
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"resourceType": "devcenters/galleries/images",
"apiVersion": "2024-05-01-preview",
"apiVersion": "2025-04-01-preview",
"learnMore": {
"url": "https://learn.microsoft.com/powershell/module/az.devcenter"
},
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"resourceType": "devcenters/galleries",
"apiVersion": "2024-05-01-preview",
"apiVersion": "2025-04-01-preview",
"learnMore": {
"url": "https://learn.microsoft.com/powershell/module/az.devcenter"
},
Expand Down
Original file line number Diff line number Diff line change
@@ -1,21 +1,22 @@
{
"resourceType": "plans",
"apiVersion": "2024-05-01-preview",
"resourceType": "devcenters/projectPolicies",
"apiVersion": "2025-04-01-preview",
"learnMore": {
"url": "https://learn.microsoft.com/powershell/module/az.devcenter"
},
"commands": [
{
"name": "Get-AzDevCenterAdminPlan",
"description": "Gets a devcenter plan.",
"path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevCenter/plans/{planName}",
"name": "Get-AzDevCenterAdminProjectPolicy",
"description": "Gets a specific project policy.",
"path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevCenter/devcenters/{devCenterName}/projectPolicies/{projectPolicyName}",
"help": {
"learnMore": {
"url": "https://learn.microsoft.com/powershell/module/az.devcenter/get-azdevcenteradminplan"
"url": "https://learn.microsoft.com/powershell/module/az.devcenter/get-azdevcenteradminprojectpolicy"
},
"parameterSets": [
{
"parameters": [
"-DevCenterName <String>",
"-Name <String>",
"-ResourceGroupName <String>",
"[-SubscriptionId <String[]>]"
Expand All @@ -25,11 +26,15 @@
},
"examples": [
{
"description": "Gets a devcenter plan.",
"description": "Gets a specific project policy.",
"parameters": [
{
"name": "-DevCenterName",
"value": "[Path.devCenterName]"
},
{
"name": "-Name",
"value": "[Path.planName]"
"value": "[Path.projectPolicyName]"
},
{
"name": "-ResourceGroupName",
Expand All @@ -44,16 +49,17 @@
]
},
{
"name": "Remove-AzDevCenterAdminPlan",
"description": "Deletes a devcenter plan",
"path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevCenter/plans/{planName}",
"name": "Remove-AzDevCenterAdminProjectPolicy",
"description": "Deletes an project policy.",
"path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevCenter/devcenters/{devCenterName}/projectPolicies/{projectPolicyName}",
"help": {
"learnMore": {
"url": "https://learn.microsoft.com/powershell/module/az.devcenter/remove-azdevcenteradminplan"
"url": "https://learn.microsoft.com/powershell/module/az.devcenter/remove-azdevcenteradminprojectpolicy"
},
"parameterSets": [
{
"parameters": [
"-DevCenterName <String>",
"-Name <String>",
"-ResourceGroupName <String>",
"[-SubscriptionId <String>]"
Expand All @@ -63,11 +69,15 @@
},
"examples": [
{
"description": "Deletes a devcenter plan",
"description": "Deletes an project policy.",
"parameters": [
{
"name": "-DevCenterName",
"value": "[Path.devCenterName]"
},
{
"name": "-Name",
"value": "[Path.planName]"
"value": "[Path.projectPolicyName]"
},
{
"name": "-ResourceGroupName",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"resourceType": "devcenters",
"apiVersion": "2024-05-01-preview",
"apiVersion": "2025-04-01-preview",
"learnMore": {
"url": "https://learn.microsoft.com/powershell/module/az.devcenter"
},
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"resourceType": "locations/operationStatuses",
"apiVersion": "2024-05-01-preview",
"apiVersion": "2025-04-01-preview",
"learnMore": {
"url": "https://learn.microsoft.com/powershell/module/az.devcenter"
},
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"resourceType": "networkConnections",
"apiVersion": "2024-05-01-preview",
"apiVersion": "2025-04-01-preview",
"learnMore": {
"url": "https://learn.microsoft.com/powershell/module/az.devcenter"
},
Expand Down
Loading
Loading