Skip to content

Commit ec2842c

Browse files
committed
Control plane 2025-04-01-preview
1 parent aa58e39 commit ec2842c

File tree

213 files changed

+7448
-3970
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

213 files changed

+7448
-3970
lines changed
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
// Copyright (c) Microsoft Corporation. All rights reserved.
2+
// Licensed under the Apache License, Version 2.0 (the ""License"");
3+
// you may not use this file except in compliance with the License.
4+
// You may obtain a copy of the License at
5+
// http://www.apache.org/licenses/LICENSE-2.0
6+
// Unless required by applicable law or agreed to in writing, software
7+
// distributed under the License is distributed on an ""AS IS"" BASIS,
8+
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
9+
// See the License for the specific language governing permissions and
10+
// limitations under the License.
11+
// Code generated by Microsoft (R) AutoRest Code Generator.Changes may cause incorrect behavior and will be lost if the code
12+
// is regenerated.
13+
14+
using System;
15+
using System.Reflection;
16+
using System.Runtime.CompilerServices;
17+
using System.Runtime.InteropServices;
18+
19+
[assembly: System.Reflection.AssemblyCompanyAttribute("Microsoft")]
20+
[assembly: System.Reflection.AssemblyCopyrightAttribute("Copyright © Microsoft")]
21+
[assembly: System.Reflection.AssemblyProductAttribute("Microsoft Azure PowerShell")]
22+
[assembly: System.Reflection.AssemblyTitleAttribute("Microsoft Azure PowerShell - DevCenter")]
23+
[assembly: System.Reflection.AssemblyFileVersionAttribute("2.0.1")]
24+
[assembly: System.Reflection.AssemblyVersionAttribute("2.0.1")]
25+
[assembly: System.Runtime.InteropServices.ComVisibleAttribute(false)]
26+
[assembly: System.CLSCompliantAttribute(false)]
27+

src/DevCenter/DevCenter.AutoRest/README.md

Lines changed: 34 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -28,14 +28,14 @@ For information on how to develop for `Az.DevCenter`, see [how-to.md](how-to.md)
2828
2929
```yaml
3030
# pin the swagger version by using the commit id instead of branch name
31-
commit: 490e7fec728b018ff3ab103a6e1cb09644452ccf
31+
commit: 4689e75cdeaa04dbeead0237b72cae8dc8dbba4d
3232
require:
3333
# readme.azure.noprofile.md is the common configuration file
3434
- $(this-folder)/../../readme.azure.noprofile.md
3535
input-file:
36-
- $(repo)/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2024-05-01-preview/commonDefinitions.json
37-
- $(repo)/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2024-05-01-preview/devcenter.json
38-
- $(repo)/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2024-05-01-preview/vdi.json
36+
- $(repo)/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-04-01-preview/commonDefinitions.json
37+
- $(repo)/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-04-01-preview/devcenter.json
38+
- $(repo)/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-04-01-preview/vdi.json
3939
# For new modules, please avoid setting 3.x using the use-extension method and instead, use 4.x as the default option
4040
use-extension:
4141
"@autorest/powershell": "3.x"
@@ -166,28 +166,50 @@ directive:
166166
"description": "OK. The request has succeeded."
167167
}
168168
- from: swagger-document
169-
where: $.paths["/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevCenter/plans/{planName}"].delete.responses
169+
where: $.paths["/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevCenter/networkConnections/{networkConnectionName}/runHealthChecks"].post.responses
170170
transform: >
171171
$['200'] = {
172172
"description": "OK. The request has succeeded."
173173
}
174174
- from: swagger-document
175-
where: $.paths["/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevCenter/plans/{planName}/members/{memberName}"].delete.responses
175+
where: $.paths["/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevCenter/projects/{projectName}/pools/{poolName}/runHealthChecks"].post.responses
176176
transform: >
177177
$['200'] = {
178178
"description": "OK. The request has succeeded."
179179
}
180180
- from: swagger-document
181-
where: $.paths["/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevCenter/networkConnections/{networkConnectionName}/runHealthChecks"].post.responses
181+
where: $.paths["/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevCenter/devcenters/{devCenterName}/projectPolicies/{projectPolicyName}"].delete.responses
182182
transform: >
183183
$['200'] = {
184184
"description": "OK. The request has succeeded."
185185
}
186186
- from: swagger-document
187-
where: $.paths["/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevCenter/projects/{projectName}/pools/{poolName}/runHealthChecks"].post.responses
187+
where: $.paths["/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevCenter/projects/{projectName}/catalogs/{catalogName}/imageDefinitions/{imageDefinitionName}/builds/{buildName}/cancel"].post.responses
188188
transform: >
189189
$['200'] = {
190-
"description": "OK. The request has succeeded."
190+
"description": "OK. The request has succeeded.",
191+
"headers": {
192+
"Azure-AsyncOperation": {
193+
"type": "string"
194+
},
195+
"Location": {
196+
"type": "string"
197+
}
198+
}
199+
}
200+
- from: swagger-document
201+
where: $.paths["/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevCenter/projects/{projectName}/catalogs/{catalogName}/imageDefinitions/{imageDefinitionName}/buildImage"].post.responses
202+
transform: >
203+
$['200'] = {
204+
"description": "OK. The request has succeeded.",
205+
"headers": {
206+
"Azure-AsyncOperation": {
207+
"type": "string"
208+
},
209+
"Location": {
210+
"type": "string"
211+
}
212+
}
191213
}
192214
#Use v3 for OperationStatus, remove this for breaking change version
193215
- from: swagger-document
@@ -198,7 +220,7 @@ directive:
198220
"type": "object",
199221
"allOf": [
200222
{
201-
"$ref": "https://github.com/Azure/azure-rest-api-specs/blob/490e7fec728b018ff3ab103a6e1cb09644452ccf/specification/common-types/resource-management/v3/types.json#/definitions/OperationStatusResult"
223+
"$ref": "https://github.com/Azure/azure-rest-api-specs/blob/4689e75cdeaa04dbeead0237b72cae8dc8dbba4d/specification/common-types/resource-management/v3/types.json#/definitions/OperationStatusResult"
202224
}
203225
],
204226
"properties": {
@@ -241,9 +263,6 @@ directive:
241263
set:
242264
default:
243265
script: '"default"'
244-
- where:
245-
subject: Schedule
246-
hide: true
247266
- where:
248267
subject: Pool
249268
parameter-name: LicenseType
@@ -335,10 +354,10 @@ directive:
335354
hide: true
336355
- where:
337356
verb: New
338-
subject: ^AttachedNetwork$|^Catalog$|^DevBoxDefinition$|^Gallery$|^NetworkConnection$|^Pool$|^Project$|^ProjectEnvironmentType$|^ProjectCatalog$|^Plan$|^PlanMember$
357+
subject: ^AttachedNetwork$|^Catalog$|^DevBoxDefinition$|^Gallery$|^NetworkConnection$|^Pool$|^Project$|^ProjectEnvironmentType$|^ProjectCatalog$
339358
hide: true
340359
- where:
341-
subject: ^CatalogDevBoxDefinition$|^CatalogDevBoxDefinitionErrorDetail$|^EncryptionSet$
360+
subject: ^CatalogDevBoxDefinition$|^CatalogDevBoxDefinitionErrorDetail$|^EncryptionSet$|^DevCenterCatalogImageDefinitionImage$|^DevCenterCatalogImageDefinition$|^DevCenterCatalogImageDefinitionBuild$|^DevCenterCatalogImageDefinitionBuildDetail$|^DevCenterCatalogImageDefinitionErrorDetail$
342361
hide: true
343362
- where:
344363
subject: OperationStatuses

src/DevCenter/DevCenter.AutoRest/UX/Microsoft.DevCenter/devcenters-attachednetworks.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"resourceType": "devcenters/attachednetworks",
3-
"apiVersion": "2024-05-01-preview",
3+
"apiVersion": "2025-04-01-preview",
44
"learnMore": {
55
"url": "https://learn.microsoft.com/powershell/module/az.devcenter"
66
},

src/DevCenter/DevCenter.AutoRest/UX/Microsoft.DevCenter/devcenters-catalogs-environmentDefinitions.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"resourceType": "devcenters/catalogs/environmentDefinitions",
3-
"apiVersion": "2024-05-01-preview",
3+
"apiVersion": "2025-04-01-preview",
44
"learnMore": {
55
"url": "https://learn.microsoft.com/powershell/module/az.devcenter"
66
},

src/DevCenter/DevCenter.AutoRest/UX/Microsoft.DevCenter/devcenters-catalogs-tasks.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"resourceType": "devcenters/catalogs/tasks",
3-
"apiVersion": "2024-05-01-preview",
3+
"apiVersion": "2025-04-01-preview",
44
"learnMore": {
55
"url": "https://learn.microsoft.com/powershell/module/az.devcenter"
66
},

src/DevCenter/DevCenter.AutoRest/UX/Microsoft.DevCenter/devcenters-catalogs.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"resourceType": "devcenters/catalogs",
3-
"apiVersion": "2024-05-01-preview",
3+
"apiVersion": "2025-04-01-preview",
44
"learnMore": {
55
"url": "https://learn.microsoft.com/powershell/module/az.devcenter"
66
},

src/DevCenter/DevCenter.AutoRest/UX/Microsoft.DevCenter/devcenters-devboxdefinitions.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"resourceType": "devcenters/devboxdefinitions",
3-
"apiVersion": "2024-05-01-preview",
3+
"apiVersion": "2025-04-01-preview",
44
"learnMore": {
55
"url": "https://learn.microsoft.com/powershell/module/az.devcenter"
66
},

src/DevCenter/DevCenter.AutoRest/UX/Microsoft.DevCenter/devcenters-environmentTypes.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"resourceType": "devcenters/environmentTypes",
3-
"apiVersion": "2024-05-01-preview",
3+
"apiVersion": "2025-04-01-preview",
44
"learnMore": {
55
"url": "https://learn.microsoft.com/powershell/module/az.devcenter"
66
},

src/DevCenter/DevCenter.AutoRest/UX/Microsoft.DevCenter/devcenters-galleries-images-versions.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"resourceType": "devcenters/galleries/images/versions",
3-
"apiVersion": "2024-05-01-preview",
3+
"apiVersion": "2025-04-01-preview",
44
"learnMore": {
55
"url": "https://learn.microsoft.com/powershell/module/az.devcenter"
66
},

src/DevCenter/DevCenter.AutoRest/UX/Microsoft.DevCenter/devcenters-galleries-images.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"resourceType": "devcenters/galleries/images",
3-
"apiVersion": "2024-05-01-preview",
3+
"apiVersion": "2025-04-01-preview",
44
"learnMore": {
55
"url": "https://learn.microsoft.com/powershell/module/az.devcenter"
66
},

0 commit comments

Comments
 (0)