Commit 1720b24 1 parent 9e9b440 commit 1720b24 Copy full SHA for 1720b24
File tree 3 files changed +35
-9
lines changed
specification/batch/Azure.Batch
3 files changed +35
-9
lines changed Original file line number Diff line number Diff line change @@ -166,10 +166,6 @@ interface BatchClient {
166
166
"terminateJobScheduleInternal" ,
167
167
"java"
168
168
);
169
- @@ clientName (BatchClient .createJobSchedule ,
170
- "createJobScheduleInternal" ,
171
- "java"
172
- );
173
169
@@ clientName (BatchClient .listJobSchedules , "listJobSchedulesInternal" , "java" );
174
170
175
171
@@ clientName (BatchClient .createTask , "createTaskInternal" , "java" );
Original file line number Diff line number Diff line change @@ -286,3 +286,27 @@ op getJobTaskCountsCustomization is Azure.Batch.ReadOperationNew<
286
286
getJobTaskCountsCustomization ,
287
287
"java"
288
288
);
289
+
290
+ // Create Job Schedule Operation
291
+ @ doc ("Optional parameters for Create Job Schedule operation." )
292
+ model CreateBatchJobScheduleOptions {
293
+ ... Azure .Batch .CommonJsonParameters ;
294
+ }
295
+
296
+ #suppress "@azure-tools/typespec-azure-core/use-standard-operations" ""
297
+ @ doc ("Custom override for Create Job Schedule operation." )
298
+ @ route ("/jobschedules" )
299
+ op createJobScheduleCustomization is Azure .Batch .CreateOperationNew <
300
+ {
301
+ ... Azure .Batch .CreateJobScheduleParameters ;
302
+
303
+ @ doc ("Optional parameters for Create Job Schedule operation." )
304
+ options ? : CreateBatchJobScheduleOptions ;
305
+ },
306
+ void
307
+ >;
308
+
309
+ @@ override (Azure .Batch .JobSchedules .createJobSchedule ,
310
+ createJobScheduleCustomization ,
311
+ "java"
312
+ );
Original file line number Diff line number Diff line change @@ -749,6 +749,14 @@ interface Jobs {
749
749
>;
750
750
}
751
751
752
+ // Job Schedule Parameter Aliases
753
+ alias CreateJobScheduleParameters = {
754
+ @ doc ("The Job Schedule to be created." )
755
+ @ bodyRoot
756
+ jobSchedule : BatchJobScheduleCreateContent ;
757
+ };
758
+
759
+ // Job Schedule Interface
752
760
#suppress "@azure-tools/typespec-azure-core/use-standard-operations" ""
753
761
#suppress "@azure-tools/typespec-azure-core/no-response-body" ""
754
762
#suppress "@azure-tools/typespec-azure-core/no-error-status-codes" ""
@@ -907,12 +915,10 @@ interface JobSchedules {
907
915
@ summary ("Creates a Job Schedule to the specified Account." )
908
916
@ doc ("Creates a Job Schedule to the specified Account." )
909
917
@ route ("/jobschedules" )
910
- @ clientName ("createJobScheduleInternal" , "java" )
911
- createJobSchedule is CreateOperation <
918
+ createJobSchedule is CreateOperationNew <
912
919
{
913
- @ doc ("The Job Schedule to be created." )
914
- @ bodyRoot
915
- jobSchedule : BatchJobScheduleCreateContent ;
920
+ ... CommonJsonParameters ;
921
+ ... CreateJobScheduleParameters ;
916
922
},
917
923
{}
918
924
>;
You can’t perform that action at this time.
0 commit comments