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

Generate code using latest typespec #38289

Merged
merged 3 commits into from
Jan 11, 2024
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
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,7 @@ public final class JobRouterAdministrationAsyncClient {
Mono<Response<BinaryData>> upsertDistributionPolicyWithResponse(String distributionPolicyId, BinaryData resource,
RequestOptions requestOptions) {
// Convenience API is not generated, as operation 'upsertDistributionPolicy' is 'application/merge-patch+json'
// and stream-style-serialization is not enabled
return this.serviceClient.upsertDistributionPolicyWithResponseAsync(distributionPolicyId, resource,
requestOptions);
}
Expand Down Expand Up @@ -520,6 +521,7 @@ public Mono<Response<Void>> deleteDistributionPolicyWithResponse(String distribu
Mono<Response<BinaryData>> upsertClassificationPolicyWithResponse(String classificationPolicyId,
BinaryData resource, RequestOptions requestOptions) {
// Convenience API is not generated, as operation 'upsertClassificationPolicy' is 'application/merge-patch+json'
// and stream-style-serialization is not enabled
return this.serviceClient.upsertClassificationPolicyWithResponseAsync(classificationPolicyId, resource,
requestOptions);
}
Expand Down Expand Up @@ -936,7 +938,8 @@ public Mono<Response<Void>> deleteClassificationPolicyWithResponse(String classi
@ServiceMethod(returns = ReturnType.SINGLE)
Mono<Response<BinaryData>> upsertExceptionPolicyWithResponse(String exceptionPolicyId, BinaryData resource,
RequestOptions requestOptions) {
// Convenience API is not generated, as operation 'upsertExceptionPolicy' is 'application/merge-patch+json'
// Convenience API is not generated, as operation 'upsertExceptionPolicy' is 'application/merge-patch+json' and
// stream-style-serialization is not enabled
return this.serviceClient.upsertExceptionPolicyWithResponseAsync(exceptionPolicyId, resource, requestOptions);
}

Expand Down Expand Up @@ -1328,7 +1331,8 @@ public Mono<Response<Void>> deleteExceptionPolicyWithResponse(String exceptionPo
@ServiceMethod(returns = ReturnType.SINGLE)
Mono<Response<BinaryData>> upsertQueueWithResponse(String queueId, BinaryData resource,
RequestOptions requestOptions) {
// Convenience API is not generated, as operation 'upsertQueue' is 'application/merge-patch+json'
// Convenience API is not generated, as operation 'upsertQueue' is 'application/merge-patch+json' and
// stream-style-serialization is not enabled
return this.serviceClient.upsertQueueWithResponseAsync(queueId, resource, requestOptions);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,7 @@ public final class JobRouterAdministrationClient {
Response<BinaryData> upsertDistributionPolicyWithResponse(String distributionPolicyId, BinaryData resource,
RequestOptions requestOptions) {
// Convenience API is not generated, as operation 'upsertDistributionPolicy' is 'application/merge-patch+json'
// and stream-style-serialization is not enabled
return this.serviceClient.upsertDistributionPolicyWithResponse(distributionPolicyId, resource, requestOptions);
}

Expand Down Expand Up @@ -510,6 +511,7 @@ public Response<Void> deleteDistributionPolicyWithResponse(String distributionPo
Response<BinaryData> upsertClassificationPolicyWithResponse(String classificationPolicyId, BinaryData resource,
RequestOptions requestOptions) {
// Convenience API is not generated, as operation 'upsertClassificationPolicy' is 'application/merge-patch+json'
// and stream-style-serialization is not enabled
return this.serviceClient.upsertClassificationPolicyWithResponse(classificationPolicyId, resource,
requestOptions);
}
Expand Down Expand Up @@ -923,7 +925,8 @@ public Response<Void> deleteClassificationPolicyWithResponse(String classificati
@ServiceMethod(returns = ReturnType.SINGLE)
Response<BinaryData> upsertExceptionPolicyWithResponse(String exceptionPolicyId, BinaryData resource,
RequestOptions requestOptions) {
// Convenience API is not generated, as operation 'upsertExceptionPolicy' is 'application/merge-patch+json'
// Convenience API is not generated, as operation 'upsertExceptionPolicy' is 'application/merge-patch+json' and
// stream-style-serialization is not enabled
return this.serviceClient.upsertExceptionPolicyWithResponse(exceptionPolicyId, resource, requestOptions);
}

Expand Down Expand Up @@ -1313,7 +1316,8 @@ public Response<Void> deleteExceptionPolicyWithResponse(String exceptionPolicyId
@Generated
@ServiceMethod(returns = ReturnType.SINGLE)
Response<BinaryData> upsertQueueWithResponse(String queueId, BinaryData resource, RequestOptions requestOptions) {
// Convenience API is not generated, as operation 'upsertQueue' is 'application/merge-patch+json'
// Convenience API is not generated, as operation 'upsertQueue' is 'application/merge-patch+json' and
// stream-style-serialization is not enabled
return this.serviceClient.upsertQueueWithResponse(queueId, resource, requestOptions);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -273,7 +273,7 @@ private HttpPipeline createHttpPipeline() {
this.pipelinePolicies.stream().filter(p -> p.getPipelinePosition() == HttpPipelinePosition.PER_RETRY)
.forEach(p -> policies.add(p));
HttpPolicyProviders.addAfterRetryPolicies(policies);
policies.add(new HttpLoggingPolicy(httpLogOptions));
policies.add(new HttpLoggingPolicy(localHttpLogOptions));
HttpPipeline httpPipeline = new HttpPipelineBuilder().policies(policies.toArray(new HttpPipelinePolicy[0]))
.httpClient(httpClient).clientOptions(localClientOptions).build();
return httpPipeline;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -221,7 +221,8 @@ public final class JobRouterAsyncClient {
@Generated
@ServiceMethod(returns = ReturnType.SINGLE)
Mono<Response<BinaryData>> upsertJobWithResponse(String jobId, BinaryData resource, RequestOptions requestOptions) {
// Convenience API is not generated, as operation 'upsertJob' is 'application/merge-patch+json'
// Convenience API is not generated, as operation 'upsertJob' is 'application/merge-patch+json' and
// stream-style-serialization is not enabled
return this.serviceClient.upsertJobWithResponseAsync(jobId, resource, requestOptions);
}

Expand Down Expand Up @@ -1212,7 +1213,8 @@ public Mono<Response<BinaryData>> getQueueStatisticsWithResponse(String queueId,
@ServiceMethod(returns = ReturnType.SINGLE)
Mono<Response<BinaryData>> upsertWorkerWithResponse(String workerId, BinaryData resource,
RequestOptions requestOptions) {
// Convenience API is not generated, as operation 'upsertWorker' is 'application/merge-patch+json'
// Convenience API is not generated, as operation 'upsertWorker' is 'application/merge-patch+json' and
// stream-style-serialization is not enabled
return this.serviceClient.upsertWorkerWithResponseAsync(workerId, resource, requestOptions);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,8 @@ public final class JobRouterClient {
@Generated
@ServiceMethod(returns = ReturnType.SINGLE)
Response<BinaryData> upsertJobWithResponse(String jobId, BinaryData resource, RequestOptions requestOptions) {
// Convenience API is not generated, as operation 'upsertJob' is 'application/merge-patch+json'
// Convenience API is not generated, as operation 'upsertJob' is 'application/merge-patch+json' and
// stream-style-serialization is not enabled
return this.serviceClient.upsertJobWithResponse(jobId, resource, requestOptions);
}

Expand Down Expand Up @@ -1217,7 +1218,8 @@ public Response<BinaryData> getQueueStatisticsWithResponse(String queueId, Reque
@Generated
@ServiceMethod(returns = ReturnType.SINGLE)
Response<BinaryData> upsertWorkerWithResponse(String workerId, BinaryData resource, RequestOptions requestOptions) {
// Convenience API is not generated, as operation 'upsertWorker' is 'application/merge-patch+json'
// Convenience API is not generated, as operation 'upsertWorker' is 'application/merge-patch+json' and
// stream-style-serialization is not enabled
return this.serviceClient.upsertWorkerWithResponse(workerId, resource, requestOptions);
}

Expand Down Expand Up @@ -1956,7 +1958,8 @@ public RouterQueueStatistics getQueueStatistics(String queueId) {
public RouterWorker getWorker(String workerId) {
// Generated convenience method for getWorkerWithResponse
RequestOptions requestOptions = new RequestOptions();
return getWorkerWithResponse(workerId, requestOptions).getValue().toObject(RouterWorker.class);
return RouterWorkerConstructorProxy
.create(getWorkerWithResponse(workerId, requestOptions).getValue().toObject(RouterWorkerInternal.class));
}

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -271,7 +271,7 @@ private HttpPipeline createHttpPipeline() {
this.pipelinePolicies.stream().filter(p -> p.getPipelinePosition() == HttpPipelinePosition.PER_RETRY)
.forEach(p -> policies.add(p));
HttpPolicyProviders.addAfterRetryPolicies(policies);
policies.add(new HttpLoggingPolicy(httpLogOptions));
policies.add(new HttpLoggingPolicy(localHttpLogOptions));
HttpPipeline httpPipeline = new HttpPipelineBuilder().policies(policies.toArray(new HttpPipelinePolicy[0]))
.httpClient(httpClient).clientOptions(localClientOptions).build();
return httpPipeline;
Expand Down
Loading
Loading