Skip to content

Commit c301191

Browse files
NneOkekeAsif MammadovSumedh Sandeep ParvatikarasmdvHaojing Lu
authored
Add Bulkactions 2026-07-06-preview version (#44101)
* Add VmAllocationInfo model and update ResourceOperation for flexible VM allocation * Remove obsolete example JSON files for Virtual Machine Bulk Operations and update readme to reflect the new package version. * add new changes * update examples * update model * add missing endpoints * add known suppresisons * add suppression for ResourceProvisionVdiPayload * update readme based on PR comments * address comments and add suppression * update client.tsp file * rename VmAllocationInfo to VmInfo and update documentation for virtual machine allocation details * Rename VmInfo model to VirtualMachineInfo and update references in ResourceOperation * Added minCapacity check for FlexProperties to validate and reject the calls if capacity is not available. * fix failing tsv check * remove faulty example info * Add bulk operation errors list/ack TypeSpec for Microsoft.Compute/Bulkactions 2026-07-06-preview Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> * add new endpoint and fix examples * address lintdiff errors * update paths * add lookbackInMinutes for listBulkOperationErrors * fix lintdiff issues * fix lintdiff errors * add suppression * fix python sdk failures * Add service directory for Python SDK generation * Apply suggestion from @msyyc --------- Co-authored-by: Asif Mammadov <asifmammadov@microsoft.com> Co-authored-by: Sumedh Sandeep Parvatikar <sparvatikar@microsoft.com> Co-authored-by: Asif Mammadov <mammadovwork@gmail.com> Co-authored-by: Haojing Lu <haojinglu@microsoft.com> Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> Co-authored-by: Yuchao Yan <yuchaoyan@microsoft.com>
1 parent 3d12e5d commit c301191

66 files changed

Lines changed: 18278 additions & 9 deletions

File tree

Some content is hidden

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

specification/compute/resource-manager/Microsoft.Compute/Bulkactions/client.tsp

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@ using Azure.ClientGenerator.Core;
66
namespace Microsoft.Compute;
77

88
@@clientName(Microsoft.Compute, "ComputeBulkActionsMgmtClient", "python");
9+
@@clientName(NetworkApiVersion.`2020-11-01`, "ENUM_2020_11_01", "python");
10+
@@clientName(NetworkApiVersion.`2022-11-01`, "ENUM_2022_11_01", "python");
911
@@clientName(
1012
VirtualMachineBulkOperations.bulkDeallocate,
1113
"BulkDeallocateOperation",
@@ -223,6 +225,45 @@ namespace Microsoft.Compute;
223225
"csharp"
224226
);
225227

228+
// C# only: expose subscriptionId as Guid? (UUID) while keeping the spec/OpenAPI type as string to avoid ARM GuidUsage lint.
229+
@@alternateType(
230+
ResourceOperationDetails.subscriptionId,
231+
Azure.Core.uuid,
232+
"csharp"
233+
);
234+
235+
@@clientName(
236+
DeallocateResourceOperationResponse.type,
237+
"ResourceTypeName",
238+
"csharp"
239+
);
240+
241+
@@clientName(
242+
HibernateResourceOperationResponse.type,
243+
"ResourceTypeName",
244+
"csharp"
245+
);
246+
247+
@@clientName(
248+
DeleteResourceOperationResponse.type,
249+
"ResourceTypeName",
250+
"csharp"
251+
);
252+
253+
@@clientName(
254+
CreateResourceOperationResponse.type,
255+
"ResourceTypeName",
256+
"csharp"
257+
);
258+
259+
@@clientName(
260+
ReimageResourceOperationResponse.type,
261+
"ResourceTypeName",
262+
"csharp"
263+
);
264+
265+
@@clientName(StartResourceOperationResponse.type, "ResourceTypeName", "csharp");
266+
226267
// =====================================================================
227268
// Fix: Go SDK Validation incorrectly detects networkApiVersion as an API version
228269
// parameter because its name contains "apiversion". This causes
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
{
2+
"title": "LaunchBulkInstancesOperation_Cancel_Example",
3+
"operationId": "LaunchBulkInstancesOperation_Cancel",
4+
"parameters": {
5+
"api-version": "2026-07-06-preview",
6+
"subscriptionId": "1FBA3C66-5C9C-4391-B72F-9F52735FC9F3",
7+
"resourceGroupName": "rgBulkactions",
8+
"location": "useast2euap",
9+
"name": "434d5a2a-167a-4e26-a89c-fbe622dfd0bc"
10+
},
11+
"responses": {
12+
"202": {
13+
"headers": {
14+
"location": "https://contoso.com/operationstatus"
15+
}
16+
}
17+
}
18+
}

0 commit comments

Comments
 (0)