Skip to content

Commit 58f645d

Browse files
wiborispjpatel12
authored andcommitted
updating typespec to 2024-07-01.20.0 api (Azure#30839)
1 parent 794d3d9 commit 58f645d

File tree

193 files changed

+20532
-144
lines changed

Some content is hidden

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

193 files changed

+20532
-144
lines changed

specification/batch/Azure.Batch/client.tsp

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import "./main.tsp";
44
using Azure.ClientGenerator.Core;
55

66
@TypeSpec.Versioning.useDependency(Azure.Core.Versions.v1_0_Preview_2)
7-
@TypeSpec.Versioning.useDependency(Azure.Batch.Versions.v2024_02_01)
7+
@TypeSpec.Versioning.useDependency(Azure.Batch.Versions.v2024_07_01)
88
namespace Client;
99
#suppress "@azure-tools/typespec-azure-core/use-standard-operations" ""
1010
#suppress "@azure-tools/typespec-azure-core/no-rpc-path-params" ""
@@ -76,6 +76,9 @@ interface BatchClient {
7676
replaceNodeUser is Azure.Batch.Nodes.replaceNodeUser;
7777
getNode is Azure.Batch.Nodes.getNode;
7878
rebootNode is Azure.Batch.Nodes.rebootNode;
79+
startNode is Azure.Batch.Nodes.startNode;
80+
reimageNode is Azure.Batch.Nodes.reimageNode;
81+
deallocateNode is Azure.Batch.Nodes.deallocateNode;
7982
disableNodeScheduling is Azure.Batch.Nodes.disableNodeScheduling;
8083
enableNodeScheduling is Azure.Batch.Nodes.enableNodeScheduling;
8184
getNodeRemoteLoginSettings is Azure.Batch.Nodes.getNodeRemoteLoginSettings;
@@ -94,7 +97,15 @@ interface BatchClient {
9497
@@access(Azure.Batch.Pools.poolExists, Access.internal, "csharp");
9598
@@access(Azure.Batch.JobSchedules.jobScheduleExists, Access.internal, "csharp");
9699
@@access(Azure.Batch.Tasks.getTaskFileProperties, Access.internal, "csharp");
100+
@@clientName(BatchClient.getTaskFileProperties,
101+
"getTaskFilePropertiesInternal",
102+
"csharp"
103+
);
97104
@@access(Azure.Batch.Nodes.getNodeFileProperties, Access.internal, "csharp");
105+
@@clientName(BatchClient.getNodeFileProperties,
106+
"getNodeFilePropertiesInternal",
107+
"csharp"
108+
);
98109

99110
/* JAVA OVERRIDES */
100111
// client name overrides
@@ -218,6 +229,9 @@ interface BatchClient {
218229
@@clientName(BatchClient.replaceNodeUser, "replaceNodeUserInternal", "java");
219230
@@clientName(BatchClient.getNode, "getNodeInternal", "java");
220231
@@clientName(BatchClient.rebootNode, "rebootNodeInternal", "java");
232+
@@clientName(BatchClient.startNode, "startNodeInternal", "java");
233+
@@clientName(BatchClient.reimageNode, "reimageNodeInternal", "java");
234+
@@clientName(BatchClient.deallocateNode, "deallocateNodeInternal", "java");
221235
@@clientName(BatchClient.disableNodeScheduling,
222236
"disableNodeSchedulingInternal",
223237
"java"
@@ -306,6 +320,7 @@ interface BatchClient {
306320
@@access(Azure.Batch.BatchNodeUserUpdateContent, Access.public, "java");
307321
@@access(Azure.Batch.BatchNode, Access.public, "java");
308322
@@access(Azure.Batch.BatchNodeRebootContent, Access.public, "java");
323+
@@access(Azure.Batch.BatchNodeDeallocateContent, Access.public, "java");
309324
@@access(Azure.Batch.BatchNodeReimageContent, Access.public, "java");
310325
@@access(Azure.Batch.BatchNodeDisableSchedulingContent, Access.public, "java");
311326
@@access(Azure.Batch.BatchNodeRemoteLoginSettings, Access.public, "java");

specification/batch/Azure.Batch/examples/2024-02-01.19.0/Applications_GetApplication.json renamed to specification/batch/Azure.Batch/examples/2024-07-01.20.0/Applications_GetApplication.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"title": "Get applications",
44
"parameters": {
55
"batchUrl": "account.region.batch.azure.com",
6-
"api-version": "2024-02-01.19.0",
6+
"api-version": "2024-07-01.20.0",
77
"client-request-id": "00000000-0000-0000-0000-000000000000",
88
"ocp-date": "Fri, 17 Feb 2017 00:00:00 GMT",
99
"applicationId": "my_application_id"

specification/batch/Azure.Batch/examples/2024-02-01.19.0/Applications_ListApplications.json renamed to specification/batch/Azure.Batch/examples/2024-07-01.20.0/Applications_ListApplications.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"title": "List applications",
44
"parameters": {
55
"batchUrl": "account.region.batch.azure.com",
6-
"api-version": "2024-02-01.19.0",
6+
"api-version": "2024-07-01.20.0",
77
"client-request-id": "00000000-0000-0000-0000-000000000000",
88
"ocp-date": "Fri, 17 Feb 2017 00:00:00 GMT"
99
},

specification/batch/Azure.Batch/examples/2024-02-01.19.0/JobSchedules_CreateJobSchedule_Basic.json renamed to specification/batch/Azure.Batch/examples/2024-07-01.20.0/JobSchedules_CreateJobSchedule_Basic.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"title": "Creates a basic JobSchedule",
44
"parameters": {
55
"batchUrl": "account.region.batch.azure.com",
6-
"api-version": "2024-02-01.19.0",
6+
"api-version": "2024-07-01.20.0",
77
"client-request-id": "00000000-0000-0000-0000-000000000000",
88
"ocp-date": "Fri, 17 Feb 2017 00:00:00 GMT",
99
"jobSchedule": {

specification/batch/Azure.Batch/examples/2024-02-01.19.0/JobSchedules_CreateJobSchedule_Complex.json renamed to specification/batch/Azure.Batch/examples/2024-07-01.20.0/JobSchedules_CreateJobSchedule_Complex.json

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"title": "Creates a complex JobScheduleAdd",
44
"parameters": {
55
"batchUrl": "account.region.batch.azure.com",
6-
"api-version": "2024-02-01.19.0",
6+
"api-version": "2024-07-01.20.0",
77
"client-request-id": "00000000-0000-0000-0000-000000000000",
88
"ocp-date": "Fri, 17 Feb 2017 00:00:00 GMT",
99
"jobSchedule": {
@@ -59,15 +59,21 @@
5959
"autoPoolIdPrefix": "mypool",
6060
"poolLifetimeOption": "jobschedule",
6161
"pool": {
62-
"vmSize": "Standard_D1_v2",
62+
"vmSize": "STANDARD_D2S_V3",
6363
"virtualMachineConfiguration": {
6464
"imageReference": {
6565
"publisher": "MicrosoftWindowsServer",
6666
"offer": "WindowsServer",
6767
"sku": "2016-datacenter-smalldisk",
6868
"version": "latest"
6969
},
70-
"nodeAgentSKUId": "batch.node.windows amd64"
70+
"nodeAgentSKUId": "batch.node.windows amd64",
71+
"windowsConfiguration": {
72+
"enableAutomaticUpdates": false
73+
},
74+
"nodePlacementConfiguration": {
75+
"policy": "zonal"
76+
}
7177
},
7278
"resizeTimeout": "PT15M",
7379
"targetDedicatedNodes": 3,

specification/batch/Azure.Batch/examples/2024-02-01.19.0/JobSchedules_DeleteJobSchedule.json renamed to specification/batch/Azure.Batch/examples/2024-07-01.20.0/JobSchedules_DeleteJobSchedule.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"title": "JobSchedule delete",
44
"parameters": {
55
"batchUrl": "account.region.batch.azure.com",
6-
"api-version": "2024-02-01.19.0",
6+
"api-version": "2024-07-01.20.0",
77
"jobScheduleId": "jobScheduleId",
88
"client-request-id": "00000000-0000-0000-0000-000000000000",
99
"ocp-date": "Fri, 17 Feb 2017 00:00:00 GMT"

specification/batch/Azure.Batch/examples/2024-02-01.19.0/JobSchedules_DisableJobSchedule.json renamed to specification/batch/Azure.Batch/examples/2024-07-01.20.0/JobSchedules_DisableJobSchedule.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"title": "JobSchedule disable",
44
"parameters": {
55
"batchUrl": "account.region.batch.azure.com",
6-
"api-version": "2024-02-01.19.0",
6+
"api-version": "2024-07-01.20.0",
77
"jobScheduleId": "jobScheduleId",
88
"client-request-id": "00000000-0000-0000-0000-000000000000",
99
"ocp-date": "Fri, 17 Feb 2017 00:00:00 GMT"

specification/batch/Azure.Batch/examples/2024-02-01.19.0/JobSchedules_EnableJobSchedule.json renamed to specification/batch/Azure.Batch/examples/2024-07-01.20.0/JobSchedules_EnableJobSchedule.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"title": "JobSchedule enable",
44
"parameters": {
55
"batchUrl": "account.region.batch.azure.com",
6-
"api-version": "2024-02-01.19.0",
6+
"api-version": "2024-07-01.20.0",
77
"jobScheduleId": "jobScheduleId",
88
"client-request-id": "00000000-0000-0000-0000-000000000000",
99
"ocp-date": "Fri, 17 Feb 2017 00:00:00 GMT"

specification/batch/Azure.Batch/examples/2024-02-01.19.0/JobSchedules_GetJobSchedule.json renamed to specification/batch/Azure.Batch/examples/2024-07-01.20.0/JobSchedules_GetJobSchedule.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"title": "JobSchedule get",
44
"parameters": {
55
"batchUrl": "account.region.batch.azure.com",
6-
"api-version": "2024-02-01.19.0",
6+
"api-version": "2024-07-01.20.0",
77
"jobScheduleId": "jobScheduleId",
88
"client-request-id": "00000000-0000-0000-0000-000000000000",
99
"ocp-date": "Fri, 17 Feb 2017 00:00:00 GMT"

specification/batch/Azure.Batch/examples/2024-02-01.19.0/JobSchedules_JobScheduleExists.json renamed to specification/batch/Azure.Batch/examples/2024-07-01.20.0/JobSchedules_JobScheduleExists.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"title": "Check Job Schedule Exists",
44
"parameters": {
55
"batchUrl": "account.region.batch.azure.com",
6-
"api-version": "2024-02-01.19.0",
6+
"api-version": "2024-07-01.20.0",
77
"jobScheduleId": "jobScheduleId",
88
"client-request-id": "00000000-0000-0000-0000-000000000000",
99
"ocp-date": "Fri, 17 Feb 2017 00:00:00 GMT"

0 commit comments

Comments
 (0)