Skip to content

Commit

Permalink
updating typespec to 2024-07-01.20.0 api (Azure#30839)
Browse files Browse the repository at this point in the history
  • Loading branch information
wiboris authored Oct 7, 2024
1 parent 75efbd8 commit 191c763
Show file tree
Hide file tree
Showing 193 changed files with 20,532 additions and 144 deletions.
17 changes: 16 additions & 1 deletion specification/batch/Azure.Batch/client.tsp
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import "./main.tsp";
using Azure.ClientGenerator.Core;

@TypeSpec.Versioning.useDependency(Azure.Core.Versions.v1_0_Preview_2)
@TypeSpec.Versioning.useDependency(Azure.Batch.Versions.v2024_02_01)
@TypeSpec.Versioning.useDependency(Azure.Batch.Versions.v2024_07_01)
namespace Client;
#suppress "@azure-tools/typespec-azure-core/use-standard-operations" ""
#suppress "@azure-tools/typespec-azure-core/no-rpc-path-params" ""
Expand Down Expand Up @@ -76,6 +76,9 @@ interface BatchClient {
replaceNodeUser is Azure.Batch.Nodes.replaceNodeUser;
getNode is Azure.Batch.Nodes.getNode;
rebootNode is Azure.Batch.Nodes.rebootNode;
startNode is Azure.Batch.Nodes.startNode;
reimageNode is Azure.Batch.Nodes.reimageNode;
deallocateNode is Azure.Batch.Nodes.deallocateNode;
disableNodeScheduling is Azure.Batch.Nodes.disableNodeScheduling;
enableNodeScheduling is Azure.Batch.Nodes.enableNodeScheduling;
getNodeRemoteLoginSettings is Azure.Batch.Nodes.getNodeRemoteLoginSettings;
Expand All @@ -94,7 +97,15 @@ interface BatchClient {
@@access(Azure.Batch.Pools.poolExists, Access.internal, "csharp");
@@access(Azure.Batch.JobSchedules.jobScheduleExists, Access.internal, "csharp");
@@access(Azure.Batch.Tasks.getTaskFileProperties, Access.internal, "csharp");
@@clientName(BatchClient.getTaskFileProperties,
"getTaskFilePropertiesInternal",
"csharp"
);
@@access(Azure.Batch.Nodes.getNodeFileProperties, Access.internal, "csharp");
@@clientName(BatchClient.getNodeFileProperties,
"getNodeFilePropertiesInternal",
"csharp"
);

/* JAVA OVERRIDES */
// client name overrides
Expand Down Expand Up @@ -218,6 +229,9 @@ interface BatchClient {
@@clientName(BatchClient.replaceNodeUser, "replaceNodeUserInternal", "java");
@@clientName(BatchClient.getNode, "getNodeInternal", "java");
@@clientName(BatchClient.rebootNode, "rebootNodeInternal", "java");
@@clientName(BatchClient.startNode, "startNodeInternal", "java");
@@clientName(BatchClient.reimageNode, "reimageNodeInternal", "java");
@@clientName(BatchClient.deallocateNode, "deallocateNodeInternal", "java");
@@clientName(BatchClient.disableNodeScheduling,
"disableNodeSchedulingInternal",
"java"
Expand Down Expand Up @@ -306,6 +320,7 @@ interface BatchClient {
@@access(Azure.Batch.BatchNodeUserUpdateContent, Access.public, "java");
@@access(Azure.Batch.BatchNode, Access.public, "java");
@@access(Azure.Batch.BatchNodeRebootContent, Access.public, "java");
@@access(Azure.Batch.BatchNodeDeallocateContent, Access.public, "java");
@@access(Azure.Batch.BatchNodeReimageContent, Access.public, "java");
@@access(Azure.Batch.BatchNodeDisableSchedulingContent, Access.public, "java");
@@access(Azure.Batch.BatchNodeRemoteLoginSettings, Access.public, "java");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"title": "Get applications",
"parameters": {
"batchUrl": "account.region.batch.azure.com",
"api-version": "2024-02-01.19.0",
"api-version": "2024-07-01.20.0",
"client-request-id": "00000000-0000-0000-0000-000000000000",
"ocp-date": "Fri, 17 Feb 2017 00:00:00 GMT",
"applicationId": "my_application_id"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"title": "List applications",
"parameters": {
"batchUrl": "account.region.batch.azure.com",
"api-version": "2024-02-01.19.0",
"api-version": "2024-07-01.20.0",
"client-request-id": "00000000-0000-0000-0000-000000000000",
"ocp-date": "Fri, 17 Feb 2017 00:00:00 GMT"
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"title": "Creates a basic JobSchedule",
"parameters": {
"batchUrl": "account.region.batch.azure.com",
"api-version": "2024-02-01.19.0",
"api-version": "2024-07-01.20.0",
"client-request-id": "00000000-0000-0000-0000-000000000000",
"ocp-date": "Fri, 17 Feb 2017 00:00:00 GMT",
"jobSchedule": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"title": "Creates a complex JobScheduleAdd",
"parameters": {
"batchUrl": "account.region.batch.azure.com",
"api-version": "2024-02-01.19.0",
"api-version": "2024-07-01.20.0",
"client-request-id": "00000000-0000-0000-0000-000000000000",
"ocp-date": "Fri, 17 Feb 2017 00:00:00 GMT",
"jobSchedule": {
Expand Down Expand Up @@ -59,15 +59,21 @@
"autoPoolIdPrefix": "mypool",
"poolLifetimeOption": "jobschedule",
"pool": {
"vmSize": "Standard_D1_v2",
"vmSize": "STANDARD_D2S_V3",
"virtualMachineConfiguration": {
"imageReference": {
"publisher": "MicrosoftWindowsServer",
"offer": "WindowsServer",
"sku": "2016-datacenter-smalldisk",
"version": "latest"
},
"nodeAgentSKUId": "batch.node.windows amd64"
"nodeAgentSKUId": "batch.node.windows amd64",
"windowsConfiguration": {
"enableAutomaticUpdates": false
},
"nodePlacementConfiguration": {
"policy": "zonal"
}
},
"resizeTimeout": "PT15M",
"targetDedicatedNodes": 3,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"title": "JobSchedule delete",
"parameters": {
"batchUrl": "account.region.batch.azure.com",
"api-version": "2024-02-01.19.0",
"api-version": "2024-07-01.20.0",
"jobScheduleId": "jobScheduleId",
"client-request-id": "00000000-0000-0000-0000-000000000000",
"ocp-date": "Fri, 17 Feb 2017 00:00:00 GMT"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"title": "JobSchedule disable",
"parameters": {
"batchUrl": "account.region.batch.azure.com",
"api-version": "2024-02-01.19.0",
"api-version": "2024-07-01.20.0",
"jobScheduleId": "jobScheduleId",
"client-request-id": "00000000-0000-0000-0000-000000000000",
"ocp-date": "Fri, 17 Feb 2017 00:00:00 GMT"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"title": "JobSchedule enable",
"parameters": {
"batchUrl": "account.region.batch.azure.com",
"api-version": "2024-02-01.19.0",
"api-version": "2024-07-01.20.0",
"jobScheduleId": "jobScheduleId",
"client-request-id": "00000000-0000-0000-0000-000000000000",
"ocp-date": "Fri, 17 Feb 2017 00:00:00 GMT"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"title": "JobSchedule get",
"parameters": {
"batchUrl": "account.region.batch.azure.com",
"api-version": "2024-02-01.19.0",
"api-version": "2024-07-01.20.0",
"jobScheduleId": "jobScheduleId",
"client-request-id": "00000000-0000-0000-0000-000000000000",
"ocp-date": "Fri, 17 Feb 2017 00:00:00 GMT"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"title": "Check Job Schedule Exists",
"parameters": {
"batchUrl": "account.region.batch.azure.com",
"api-version": "2024-02-01.19.0",
"api-version": "2024-07-01.20.0",
"jobScheduleId": "jobScheduleId",
"client-request-id": "00000000-0000-0000-0000-000000000000",
"ocp-date": "Fri, 17 Feb 2017 00:00:00 GMT"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"title": "JobSchedule list",
"parameters": {
"batchUrl": "account.region.batch.azure.com",
"api-version": "2024-02-01.19.0",
"api-version": "2024-07-01.20.0",
"client-request-id": "00000000-0000-0000-0000-000000000000",
"ocp-date": "Fri, 17 Feb 2017 00:00:00 GMT"
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"title": "JobSchedule patch",
"parameters": {
"batchUrl": "account.region.batch.azure.com",
"api-version": "2024-02-01.19.0",
"api-version": "2024-07-01.20.0",
"jobScheduleId": "jobScheduleId",
"client-request-id": "00000000-0000-0000-0000-000000000000",
"ocp-date": "Fri, 17 Feb 2017 00:00:00 GMT",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"title": "JobSchedule terminate",
"parameters": {
"batchUrl": "account.region.batch.azure.com",
"api-version": "2024-02-01.19.0",
"api-version": "2024-07-01.20.0",
"jobScheduleId": "jobScheduleId",
"client-request-id": "00000000-0000-0000-0000-000000000000",
"ocp-date": "Fri, 17 Feb 2017 00:00:00 GMT"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"title": "JobSchedule update",
"parameters": {
"batchUrl": "account.region.batch.azure.com",
"api-version": "2024-02-01.19.0",
"api-version": "2024-07-01.20.0",
"jobScheduleId": "jobScheduleId",
"client-request-id": "00000000-0000-0000-0000-000000000000",
"ocp-date": "Fri, 17 Feb 2017 00:00:00 GMT",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"title": "Creates a basic job",
"parameters": {
"batchUrl": "account.region.batch.azure.com",
"api-version": "2024-02-01.19.0",
"api-version": "2024-07-01.20.0",
"client-request-id": "00000000-0000-0000-0000-000000000000",
"ocp-date": "Fri, 17 Feb 2017 00:00:00 GMT",
"job": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"title": "Creates a complex job",
"parameters": {
"batchUrl": "account.region.batch.azure.com",
"api-version": "2024-02-01.19.0",
"api-version": "2024-07-01.20.0",
"client-request-id": "00000000-0000-0000-0000-000000000000",
"ocp-date": "Fri, 17 Feb 2017 00:00:00 GMT",
"job": {
Expand Down Expand Up @@ -52,15 +52,21 @@
"autoPoolIdPrefix": "mypool",
"poolLifetimeOption": "job",
"pool": {
"vmSize": "Standard_D1_v2",
"vmSize": "STANDARD_D2S_V3",
"virtualMachineConfiguration": {
"imageReference": {
"publisher": "MicrosoftWindowsServer",
"offer": "WindowsServer",
"sku": "2016-datacenter-smalldisk",
"version": "latest"
},
"nodeAgentSKUId": "batch.node.windows amd64"
"nodeAgentSKUId": "batch.node.windows amd64",
"windowsConfiguration": {
"enableAutomaticUpdates": false
},
"nodePlacementConfiguration": {
"policy": "zonal"
}
},
"resizeTimeout": "PT15M",
"targetDedicatedNodes": 3,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"title": "Delete Job",
"parameters": {
"batchUrl": "account.region.batch.azure.com",
"api-version": "2024-02-01.19.0",
"api-version": "2024-07-01.20.0",
"jobId": "jobId",
"client-request-id": "00000000-0000-0000-0000-000000000000",
"ocp-date": "Fri, 17 Feb 2017 00:00:00 GMT"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"title": "Job disable",
"parameters": {
"batchUrl": "account.region.batch.azure.com",
"api-version": "2024-02-01.19.0",
"api-version": "2024-07-01.20.0",
"jobId": "jobId",
"client-request-id": "00000000-0000-0000-0000-000000000000",
"ocp-date": "Fri, 17 Feb 2017 00:00:00 GMT",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"title": "Job enable",
"parameters": {
"batchUrl": "account.region.batch.azure.com",
"api-version": "2024-02-01.19.0",
"api-version": "2024-07-01.20.0",
"jobId": "jobId",
"client-request-id": "00000000-0000-0000-0000-000000000000",
"ocp-date": "Fri, 17 Feb 2017 00:00:00 GMT"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"title": "Job get",
"parameters": {
"batchUrl": "account.region.batch.azure.com",
"api-version": "2024-02-01.19.0",
"api-version": "2024-07-01.20.0",
"jobId": "jobId",
"client-request-id": "00000000-0000-0000-0000-000000000000",
"ocp-date": "Fri, 17 Feb 2017 00:00:00 GMT"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"title": "Job get task counts",
"parameters": {
"batchUrl": "account.region.batch.azure.com",
"api-version": "2024-02-01.19.0",
"api-version": "2024-07-01.20.0",
"jobId": "jobId",
"client-request-id": "00000000-0000-0000-0000-000000000000",
"ocp-date": "Fri, 17 Feb 2017 00:00:00 GMT"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"title": "Job list preparation and release task status",
"parameters": {
"batchUrl": "account.region.batch.azure.com",
"api-version": "2024-02-01.19.0",
"api-version": "2024-07-01.20.0",
"jobId": "jobId",
"client-request-id": "00000000-0000-0000-0000-000000000000",
"ocp-date": "Fri, 17 Feb 2017 00:00:00 GMT"
Expand Down Expand Up @@ -35,7 +35,7 @@
}
}
],
"odata.nextLink": "https://account.region.batch.azure.com/jobs/myjob/jobpreparationandreleasestatus?$skipToken=tvm-2167304207_1-20140905t174658z&api-version=2024-02-01.19.0"
"odata.nextLink": "https://account.region.batch.azure.com/jobs/myjob/jobpreparationandreleasestatus?$skipToken=tvm-2167304207_1-20140905t174658z&api-version=2024-07-01.20.0"
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"title": "Job list",
"parameters": {
"batchUrl": "account.region.batch.azure.com",
"api-version": "2024-02-01.19.0",
"api-version": "2024-07-01.20.0",
"client-request-id": "00000000-0000-0000-0000-000000000000",
"ocp-date": "Fri, 17 Feb 2017 00:00:00 GMT"
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"title": "List Job Under Job Schedule",
"parameters": {
"batchUrl": "account.region.batch.azure.com",
"api-version": "2024-02-01.19.0",
"api-version": "2024-07-01.20.0",
"jobScheduleId": "jobScheduleId",
"client-request-id": "00000000-0000-0000-0000-000000000000",
"ocp-date": "Fri, 17 Feb 2017 00:00:00 GMT"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"title": "Job patch",
"parameters": {
"batchUrl": "account.region.batch.azure.com",
"api-version": "2024-02-01.19.0",
"api-version": "2024-07-01.20.0",
"jobId": "jobId",
"client-request-id": "00000000-0000-0000-0000-000000000000",
"ocp-date": "Fri, 17 Feb 2017 00:00:00 GMT",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"title": "Job terminate",
"parameters": {
"batchUrl": "account.region.batch.azure.com",
"api-version": "2024-02-01.19.0",
"api-version": "2024-07-01.20.0",
"jobId": "jobId",
"client-request-id": "00000000-0000-0000-0000-000000000000",
"ocp-date": "Fri, 17 Feb 2017 00:00:00 GMT",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"title": "Job update",
"parameters": {
"batchUrl": "account.region.batch.azure.com",
"api-version": "2024-02-01.19.0",
"api-version": "2024-07-01.20.0",
"jobId": "jobId",
"client-request-id": "00000000-0000-0000-0000-000000000000",
"ocp-date": "Fri, 17 Feb 2017 00:00:00 GMT",
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
{
"operationId": "Nodes_DeallocateNode",
"title": "Node Deallocate",
"parameters": {
"batchUrl": "account.region.batch.azure.com",
"api-version": "2024-07-01.20.0",
"poolId": "poolId",
"nodeId": "tvm-1695681911_1-20161122t193202z",
"client-request-id": "00000000-0000-0000-0000-000000000000",
"ocp-date": "Fri, 17 Feb 2017 00:00:00 GMT",
"nodeDeallocateParameter": {
"nodeDeallocateOption": "terminate"
}
},
"responses": {
"202": {}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{
"operationId": "Nodes_StartNode",
"title": "Node start",
"parameters": {
"batchUrl": "account.region.batch.azure.com",
"api-version": "2024-07-01.20.0",
"poolId": "poolId",
"nodeId": "tvm-1695681911_1-20161122t193202z",
"client-request-id": "00000000-0000-0000-0000-000000000000",
"ocp-date": "Fri, 17 Feb 2017 00:00:00 GMT"
},
"responses": {
"202": {}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"title": "Node create user",
"parameters": {
"batchUrl": "account.region.batch.azure.com",
"api-version": "2024-02-01.19.0",
"api-version": "2024-07-01.20.0",
"poolId": "poolId",
"nodeId": "tvm-1695681911_1-20161121t182739z",
"client-request-id": "00000000-0000-0000-0000-000000000000",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"title": "File delete from node",
"parameters": {
"batchUrl": "account.region.batch.azure.com",
"api-version": "2024-02-01.19.0",
"api-version": "2024-07-01.20.0",
"poolId": "poolId",
"nodeId": "tvm-1695681911_1-20161122t193202z",
"filePath": "workitems\\jobId\\job-1\\task1\\wd\\testFile.txt",
Expand Down
Loading

0 comments on commit 191c763

Please sign in to comment.