Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Automation] Generate SDK based on TypeSpec 0.17.1 #40992

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
46 changes: 30 additions & 16 deletions eng/emitter-package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 5 additions & 4 deletions eng/emitter-package.json
Original file line number Diff line number Diff line change
@@ -1,18 +1,19 @@
{
"main": "dist/src/index.js",
"dependencies": {
"@azure-tools/typespec-java": "0.17.0"
"@azure-tools/typespec-java": "0.17.1"
},
"devDependencies": {
"@azure-tools/typespec-autorest": "0.43.0",
"@azure-tools/typespec-azure-core": "0.43.0",
"@azure-tools/typespec-azure-resource-manager": "0.43.0",
"@azure-tools/typespec-azure-rulesets": "0.43.0",
"@azure-tools/typespec-client-generator-core": "0.43.0",
"@azure-tools/typespec-autorest": "0.43.0",
"@azure-tools/typespec-client-generator-core": "0.43.1",
"@typespec/compiler": "0.57.0",
"@typespec/http": "0.57.0",
"@typespec/openapi": "0.57.0",
"@typespec/rest": "0.57.0",
"@typespec/versioning": "0.57.0"
"@typespec/versioning": "0.57.0",
"@typespec/xml": "0.57.0"
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -1169,7 +1169,7 @@ Response<BinaryData> listSubTasksInternalSync(@HostParam("endpoint") String endp
Context context);

@Post("/jobs/{jobId}/tasks/{taskId}/terminate")
@ExpectedResponses({ 200 })
@ExpectedResponses({ 204 })
weidongxu-microsoft marked this conversation as resolved.
Show resolved Hide resolved
@UnexpectedResponseExceptionType(value = ClientAuthenticationException.class, code = { 401 })
@UnexpectedResponseExceptionType(value = ResourceNotFoundException.class, code = { 404 })
@UnexpectedResponseExceptionType(value = ResourceModifiedException.class, code = { 409 })
Expand All @@ -1180,7 +1180,7 @@ Mono<Response<Void>> terminateTaskInternal(@HostParam("endpoint") String endpoin
Context context);

@Post("/jobs/{jobId}/tasks/{taskId}/terminate")
@ExpectedResponses({ 200 })
@ExpectedResponses({ 204 })
@UnexpectedResponseExceptionType(value = ClientAuthenticationException.class, code = { 401 })
@UnexpectedResponseExceptionType(value = ResourceNotFoundException.class, code = { 404 })
@UnexpectedResponseExceptionType(value = ResourceModifiedException.class, code = { 409 })
Expand All @@ -1191,7 +1191,7 @@ Response<Void> terminateTaskInternalSync(@HostParam("endpoint") String endpoint,
Context context);

@Post("/jobs/{jobId}/tasks/{taskId}/reactivate")
@ExpectedResponses({ 200 })
@ExpectedResponses({ 204 })
@UnexpectedResponseExceptionType(value = ClientAuthenticationException.class, code = { 401 })
@UnexpectedResponseExceptionType(value = ResourceNotFoundException.class, code = { 404 })
@UnexpectedResponseExceptionType(value = ResourceModifiedException.class, code = { 409 })
Expand All @@ -1202,7 +1202,7 @@ Mono<Response<Void>> reactivateTaskInternal(@HostParam("endpoint") String endpoi
Context context);

@Post("/jobs/{jobId}/tasks/{taskId}/reactivate")
@ExpectedResponses({ 200 })
@ExpectedResponses({ 204 })
@UnexpectedResponseExceptionType(value = ClientAuthenticationException.class, code = { 401 })
@UnexpectedResponseExceptionType(value = ResourceNotFoundException.class, code = { 404 })
@UnexpectedResponseExceptionType(value = ResourceModifiedException.class, code = { 409 })
Expand Down
2 changes: 1 addition & 1 deletion sdk/batch/azure-compute-batch/tsp-location.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
directory: specification/batch/Azure.Batch
commit: 68c8da604a93740f5f074046f9d8ffe23c5a2f41
commit: 3cb1b51638616435470fc10ea00de92512186ece
repo: Azure/azure-rest-api-specs
cleanup: false
Original file line number Diff line number Diff line change
Expand Up @@ -920,6 +920,14 @@ public Mono<Response<BinaryData>> getQueuePositionWithResponse(String jobId, Req

/**
* Unassign a job.
* <p><strong>Header Parameters</strong></p>
* <table border="1">
* <caption>Header Parameters</caption>
* <tr><th>Name</th><th>Type</th><th>Required</th><th>Description</th></tr>
* <tr><td>Content-Type</td><td>String</td><td>No</td><td>The content type. Allowed values:
* "application/json".</td></tr>
* </table>
* You can add these to a request with {@link RequestOptions#addHeader}
* <p><strong>Request Body Schema</strong></p>
*
* <pre>{@code
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -951,6 +951,14 @@ public Response<BinaryData> getQueuePositionWithResponse(String jobId, RequestOp

/**
* Unassign a job.
* <p><strong>Header Parameters</strong></p>
* <table border="1">
* <caption>Header Parameters</caption>
* <tr><th>Name</th><th>Type</th><th>Required</th><th>Description</th></tr>
* <tr><td>Content-Type</td><td>String</td><td>No</td><td>The content type. Allowed values:
* "application/json".</td></tr>
* </table>
* You can add these to a request with {@link RequestOptions#addHeader}
* <p><strong>Request Body Schema</strong></p>
*
* <pre>{@code
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1025,6 +1025,14 @@ public Response<Void> deleteJobWithResponse(String jobId, RequestOptions request

/**
* Reclassify a job.
* <p><strong>Header Parameters</strong></p>
* <table border="1">
* <caption>Header Parameters</caption>
* <tr><th>Name</th><th>Type</th><th>Required</th><th>Description</th></tr>
* <tr><td>Content-Type</td><td>String</td><td>No</td><td>The content type. Allowed values:
* "application/json".</td></tr>
* </table>
* You can add these to a request with {@link RequestOptions#addHeader}
* <p><strong>Request Body Schema</strong></p>
*
* <pre>{@code
Expand Down Expand Up @@ -1061,6 +1069,14 @@ public Mono<Response<BinaryData>> reclassifyJobWithResponseAsync(String jobId, R

/**
* Reclassify a job.
* <p><strong>Header Parameters</strong></p>
* <table border="1">
* <caption>Header Parameters</caption>
* <tr><th>Name</th><th>Type</th><th>Required</th><th>Description</th></tr>
* <tr><td>Content-Type</td><td>String</td><td>No</td><td>The content type. Allowed values:
* "application/json".</td></tr>
* </table>
* You can add these to a request with {@link RequestOptions#addHeader}
* <p><strong>Request Body Schema</strong></p>
*
* <pre>{@code
Expand Down Expand Up @@ -1096,6 +1112,14 @@ public Response<BinaryData> reclassifyJobWithResponse(String jobId, RequestOptio

/**
* Submits request to cancel an existing job by Id while supplying free-form cancellation reason.
* <p><strong>Header Parameters</strong></p>
* <table border="1">
* <caption>Header Parameters</caption>
* <tr><th>Name</th><th>Type</th><th>Required</th><th>Description</th></tr>
* <tr><td>Content-Type</td><td>String</td><td>No</td><td>The content type. Allowed values:
* "application/json".</td></tr>
* </table>
* You can add these to a request with {@link RequestOptions#addHeader}
* <p><strong>Request Body Schema</strong></p>
*
* <pre>{@code
Expand Down Expand Up @@ -1135,6 +1159,14 @@ public Mono<Response<BinaryData>> cancelJobWithResponseAsync(String jobId, Reque

/**
* Submits request to cancel an existing job by Id while supplying free-form cancellation reason.
* <p><strong>Header Parameters</strong></p>
* <table border="1">
* <caption>Header Parameters</caption>
* <tr><th>Name</th><th>Type</th><th>Required</th><th>Description</th></tr>
* <tr><td>Content-Type</td><td>String</td><td>No</td><td>The content type. Allowed values:
* "application/json".</td></tr>
* </table>
* You can add these to a request with {@link RequestOptions#addHeader}
* <p><strong>Request Body Schema</strong></p>
*
* <pre>{@code
Expand Down Expand Up @@ -1173,6 +1205,14 @@ public Response<BinaryData> cancelJobWithResponse(String jobId, RequestOptions r

/**
* Completes an assigned job.
* <p><strong>Header Parameters</strong></p>
* <table border="1">
* <caption>Header Parameters</caption>
* <tr><th>Name</th><th>Type</th><th>Required</th><th>Description</th></tr>
* <tr><td>Content-Type</td><td>String</td><td>No</td><td>The content type. Allowed values:
* "application/json".</td></tr>
* </table>
* You can add these to a request with {@link RequestOptions#addHeader}
* <p><strong>Request Body Schema</strong></p>
*
* <pre>{@code
Expand Down Expand Up @@ -1213,6 +1253,14 @@ public Mono<Response<BinaryData>> completeJobWithResponseAsync(String jobId, Str

/**
* Completes an assigned job.
* <p><strong>Header Parameters</strong></p>
* <table border="1">
* <caption>Header Parameters</caption>
* <tr><th>Name</th><th>Type</th><th>Required</th><th>Description</th></tr>
* <tr><td>Content-Type</td><td>String</td><td>No</td><td>The content type. Allowed values:
* "application/json".</td></tr>
* </table>
* You can add these to a request with {@link RequestOptions#addHeader}
* <p><strong>Request Body Schema</strong></p>
*
* <pre>{@code
Expand Down Expand Up @@ -1252,6 +1300,14 @@ public Response<BinaryData> completeJobWithResponse(String jobId, String assignm

/**
* Closes a completed job.
* <p><strong>Header Parameters</strong></p>
* <table border="1">
* <caption>Header Parameters</caption>
* <tr><th>Name</th><th>Type</th><th>Required</th><th>Description</th></tr>
* <tr><td>Content-Type</td><td>String</td><td>No</td><td>The content type. Allowed values:
* "application/json".</td></tr>
* </table>
* You can add these to a request with {@link RequestOptions#addHeader}
* <p><strong>Request Body Schema</strong></p>
*
* <pre>{@code
Expand Down Expand Up @@ -1293,6 +1349,14 @@ public Mono<Response<BinaryData>> closeJobWithResponseAsync(String jobId, String

/**
* Closes a completed job.
* <p><strong>Header Parameters</strong></p>
* <table border="1">
* <caption>Header Parameters</caption>
* <tr><th>Name</th><th>Type</th><th>Required</th><th>Description</th></tr>
* <tr><td>Content-Type</td><td>String</td><td>No</td><td>The content type. Allowed values:
* "application/json".</td></tr>
* </table>
* You can add these to a request with {@link RequestOptions#addHeader}
* <p><strong>Request Body Schema</strong></p>
*
* <pre>{@code
Expand Down Expand Up @@ -1801,6 +1865,14 @@ public Response<BinaryData> getQueuePositionWithResponse(String jobId, RequestOp

/**
* Unassign a job.
* <p><strong>Header Parameters</strong></p>
* <table border="1">
* <caption>Header Parameters</caption>
* <tr><th>Name</th><th>Type</th><th>Required</th><th>Description</th></tr>
* <tr><td>Content-Type</td><td>String</td><td>No</td><td>The content type. Allowed values:
* "application/json".</td></tr>
* </table>
* You can add these to a request with {@link RequestOptions#addHeader}
* <p><strong>Request Body Schema</strong></p>
*
* <pre>{@code
Expand Down Expand Up @@ -1844,6 +1916,14 @@ public Mono<Response<BinaryData>> unassignJobWithResponseAsync(String jobId, Str

/**
* Unassign a job.
* <p><strong>Header Parameters</strong></p>
* <table border="1">
* <caption>Header Parameters</caption>
* <tr><th>Name</th><th>Type</th><th>Required</th><th>Description</th></tr>
* <tr><td>Content-Type</td><td>String</td><td>No</td><td>The content type. Allowed values:
* "application/json".</td></tr>
* </table>
* You can add these to a request with {@link RequestOptions#addHeader}
* <p><strong>Request Body Schema</strong></p>
*
* <pre>{@code
Expand Down Expand Up @@ -1946,6 +2026,14 @@ public Response<BinaryData> acceptJobOfferWithResponse(String workerId, String o

/**
* Declines an offer to work on a job.
* <p><strong>Header Parameters</strong></p>
* <table border="1">
* <caption>Header Parameters</caption>
* <tr><th>Name</th><th>Type</th><th>Required</th><th>Description</th></tr>
* <tr><td>Content-Type</td><td>String</td><td>No</td><td>The content type. Allowed values:
* "application/json".</td></tr>
* </table>
* You can add these to a request with {@link RequestOptions#addHeader}
* <p><strong>Request Body Schema</strong></p>
*
* <pre>{@code
Expand Down Expand Up @@ -1986,6 +2074,14 @@ public Mono<Response<BinaryData>> declineJobOfferWithResponseAsync(String worker

/**
* Declines an offer to work on a job.
* <p><strong>Header Parameters</strong></p>
* <table border="1">
* <caption>Header Parameters</caption>
* <tr><th>Name</th><th>Type</th><th>Required</th><th>Description</th></tr>
* <tr><td>Content-Type</td><td>String</td><td>No</td><td>The content type. Allowed values:
* "application/json".</td></tr>
* </table>
* You can add these to a request with {@link RequestOptions#addHeader}
* <p><strong>Request Body Schema</strong></p>
*
* <pre>{@code
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
commit: 03e89671b50de6a14eaa0a3c5c579d6cf057889a
commit: 3cb1b51638616435470fc10ea00de92512186ece
directory: specification/communication/Communication.JobRouter
additionalDirectories: []
repo: Azure/azure-rest-api-specs
Loading
Loading