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

tsp, tcgc, adopt sdkpackage #2861

Merged
merged 110 commits into from
Aug 22, 2024
Merged
Show file tree
Hide file tree
Changes from 24 commits
Commits
Show all changes
110 commits
Select commit Hold shift + click to select a range
116db41
replace logics for process parameter
haolingdong-msft Jun 3, 2024
3d56d8a
bug fix
haolingdong-msft Jun 4, 2024
3863d59
add logics for process clients and operation
haolingdong-msft Jun 20, 2024
d010820
Merge remote-tracking branch 'remote/main' into sdkpackage
haolingdong-msft Jun 20, 2024
8d21b60
replace logic to process response
haolingdong-msft Jun 27, 2024
07a773f
regen
haolingdong-msft Jun 27, 2024
b443345
process exception
haolingdong-msft Jun 27, 2024
2434e67
rename local var
haolingdong-msft Jun 28, 2024
7a53e1c
add samples
haolingdong-msft Jun 28, 2024
339352c
add loading examples logic
haolingdong-msft Jun 28, 2024
36a71a1
Merge remote-tracking branch 'remote/main' into sdkpackage
haolingdong-msft Jun 28, 2024
ddbca42
Revert "regen"
haolingdong-msft Jul 1, 2024
ca85d01
solve conflict
haolingdong-msft Jul 1, 2024
de594bc
replace logics for operationIs helpers
haolingdong-msft Jul 2, 2024
b7c09c0
fixed flatten case's example
haolingdong-msft Jul 2, 2024
30129fd
Merge branch 'main' into sdkpackage
haolingdong-msft Jul 4, 2024
a45fb21
Merge remote-tracking branch 'remote/main' into sdkpackage
haolingdong-msft Jul 9, 2024
f78adfa
convert more functions from using raw to tcgc types
haolingdong-msft Jul 10, 2024
80b9d92
update test
haolingdong-msft Jul 10, 2024
402cd7a
Merge remote-tracking branch 'remote/main' into sdkpackage
haolingdong-msft Jul 10, 2024
9f35c40
update logic to judge if bodyParameterFlatten
haolingdong-msft Jul 10, 2024
b63017a
Merge remote-tracking branch 'remote/main' into sdkpackage
haolingdong-msft Jul 11, 2024
5e60576
update logics on spread param
haolingdong-msft Jul 15, 2024
7a5479d
regen
haolingdong-msft Jul 15, 2024
c063eee
Merge remote-tracking branch 'remote/main' into sdkpackage
haolingdong-msft Jul 17, 2024
5d58dd5
regen
haolingdong-msft Jul 17, 2024
6aade5f
Merge remote-tracking branch 'remote/main' into sdkpackage
haolingdong-msft Jul 18, 2024
e2fd61b
use sdkResponse.description and do not use initializationProperty.typ…
haolingdong-msft Jul 18, 2024
ed1c710
regen
haolingdong-msft Jul 18, 2024
ad083e7
Merge remote-tracking branch 'remote/main' into sdkpackage
haolingdong-msft Jul 19, 2024
fab8343
handle hierarchical client name
haolingdong-msft Jul 23, 2024
0af2c5c
regen
haolingdong-msft Jul 23, 2024
3214809
Merge remote-tracking branch 'remote/main' into sdkpackage
haolingdong-msft Jul 29, 2024
cead43e
update api version filtering part
haolingdong-msft Jul 29, 2024
ab74bad
merge summary with description
haolingdong-msft Jul 30, 2024
9e5146e
skip content-type header if body is optional
haolingdong-msft Jul 30, 2024
032a315
regen
haolingdong-msft Jul 30, 2024
180bf07
regen
haolingdong-msft Jul 30, 2024
bb7dea4
handle multipart array case
haolingdong-msft Jul 30, 2024
3ad752d
Merge remote-tracking branch 'remote/main' into sdkpackage
haolingdong-msft Jul 31, 2024
8220bad
add endpoint parameter for ARM as workaround
haolingdong-msft Jul 31, 2024
e3afeb1
regen
haolingdong-msft Jul 31, 2024
a990b5b
regen
haolingdong-msft Jul 31, 2024
e2fa9e7
Merge remote-tracking branch 'remote/main' into sdkpackage
haolingdong-msft Jul 31, 2024
cde9051
Fixed the api-version being added to builder issue
haolingdong-msft Jul 31, 2024
611e3d8
solve conflict
haolingdong-msft Aug 1, 2024
cd8336f
regen
haolingdong-msft Aug 6, 2024
74df2b5
Merge remote-tracking branch 'remote/main' into sdkpackage
haolingdong-msft Aug 6, 2024
cc652d4
regen
haolingdong-msft Aug 7, 2024
b38a2fd
integrate with sdkpackage's example
haolingdong-msft Aug 7, 2024
1c5a1b5
clean up code
haolingdong-msft Aug 7, 2024
98b3f6c
Merge remote-tracking branch 'remote/main' into sdkpackage
haolingdong-msft Aug 7, 2024
3a2955d
regen
haolingdong-msft Aug 7, 2024
183f5ea
code clean up
haolingdong-msft Aug 7, 2024
9869b7f
Merge branch 'main' into sdkpackage
haolingdong-msft Aug 9, 2024
15d41b7
support new SdkClientType design
haolingdong-msft Aug 9, 2024
955620e
regen
haolingdong-msft Aug 9, 2024
372da09
throw error if endpoint parameter is neither union nor endpoint
haolingdong-msft Aug 9, 2024
865ac76
lint
haolingdong-msft Aug 9, 2024
62e0b0d
remove unused functions and move removeClientSuffix to util
haolingdong-msft Aug 9, 2024
832e593
support client crossLanguageDefinitionId
haolingdong-msft Aug 9, 2024
cf23080
remove unused functions
haolingdong-msft Aug 9, 2024
2cea2b3
remove unused imports
haolingdong-msft Aug 9, 2024
71e0a2d
update according to comments
haolingdong-msft Aug 12, 2024
3f4c417
lint
haolingdong-msft Aug 12, 2024
86802af
Merge remote-tracking branch 'remote/main' into sdkpackage
haolingdong-msft Aug 12, 2024
daef68d
lint
haolingdong-msft Aug 12, 2024
643105b
regen
haolingdong-msft Aug 12, 2024
fc35d0f
add TODO for allowReserved for path url
haolingdong-msft Aug 12, 2024
52271aa
update according to comments
haolingdong-msft Aug 12, 2024
98a141c
regen
haolingdong-msft Aug 12, 2024
1e05ccd
support client default endpoint
haolingdong-msft Aug 12, 2024
2f04d1f
fix test
haolingdong-msft Aug 12, 2024
2cde5b3
regen
haolingdong-msft Aug 13, 2024
f47bf77
remove suffix
haolingdong-msft Aug 13, 2024
ad910d8
format
haolingdong-msft Aug 13, 2024
59fec20
Merge remote-tracking branch 'remote/main' into sdkpackage
haolingdong-msft Aug 13, 2024
593aa59
remove unused functions
haolingdong-msft Aug 13, 2024
b18b952
regen
haolingdong-msft Aug 13, 2024
c007e82
fix
haolingdong-msft Aug 13, 2024
f5626c1
update function name according to comments
haolingdong-msft Aug 13, 2024
dabfd8f
add param location check
haolingdong-msft Aug 14, 2024
e5b66c8
update according to comments
haolingdong-msft Aug 14, 2024
42f4eae
handle param.onClient
haolingdong-msft Aug 14, 2024
8352f12
update method to use shorter name
haolingdong-msft Aug 14, 2024
93a23ba
Merge remote-tracking branch 'remote/main' into sdkpackage
haolingdong-msft Aug 16, 2024
733f220
apply the bug fix
haolingdong-msft Aug 16, 2024
a0d6c98
regen
haolingdong-msft Aug 19, 2024
7af447b
integrate with bug fix on flattened model property and parameter has …
haolingdong-msft Aug 19, 2024
48ab63d
add op.addParameter(parameter); for param.onclient as well
haolingdong-msft Aug 19, 2024
5c71c0b
format and lint
haolingdong-msft Aug 19, 2024
e8a8d3b
fix NotVersionedTests
haolingdong-msft Aug 19, 2024
fe18154
revet the changes on onClient and support
haolingdong-msft Aug 19, 2024
a423afa
support allowReserved for path
haolingdong-msft Aug 19, 2024
fa1d2a7
regen
haolingdong-msft Aug 19, 2024
e9ec415
update according to comment: paging, content-type
haolingdong-msft Aug 19, 2024
e5adc5d
remove unused logics in processing lro
haolingdong-msft Aug 19, 2024
6c1cdc4
lint
haolingdong-msft Aug 19, 2024
b7ff02c
add test case to test HttpStatusCodeRange
haolingdong-msft Aug 19, 2024
0026417
Merge remote-tracking branch 'remote/main' into sdkpackage
haolingdong-msft Aug 19, 2024
33a3cef
format typespec-tests
haolingdong-msft Aug 19, 2024
3954d93
address comments
haolingdong-msft Aug 21, 2024
f3fb702
bump minor version
haolingdong-msft Aug 21, 2024
3563e1e
format and lint
haolingdong-msft Aug 21, 2024
ac2bb97
Merge remote-tracking branch 'remote/main' into sdkpackage
haolingdong-msft Aug 21, 2024
eda4e54
use TCGC sdkBody.contentTypes to set to mediaTypes
haolingdong-msft Aug 21, 2024
c3328ba
address comments
haolingdong-msft Aug 22, 2024
5cb0da5
changelog
haolingdong-msft Aug 22, 2024
43c2a7a
format and lint
haolingdong-msft Aug 22, 2024
2df13e4
changelog
haolingdong-msft Aug 22, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
1,791 changes: 1,432 additions & 359 deletions typespec-extension/src/code-model-builder.ts

Large diffs are not rendered by default.

64 changes: 49 additions & 15 deletions typespec-extension/src/operation-utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ import { CodeModel } from "./common/code-model.js";
import { EmitterOptions } from "./emitter.js";
import { getNamespace, logWarning, pascalCase } from "./utils.js";
import { modelIs, unionReferredByType } from "./type-utils.js";
import { SdkContext, getDefaultApiVersion } from "@azure-tools/typespec-client-generator-core";
import { SdkContext, SdkHttpOperation, getDefaultApiVersion } from "@azure-tools/typespec-client-generator-core";
import { pathToFileURL } from "url";

export const SPECIAL_HEADER_NAMES = new Set([
Expand Down Expand Up @@ -173,33 +173,67 @@ function pascalCaseForOperationId(name: string) {
.join("_");
}

export function operationIsJsonMergePatch(op: HttpOperation): boolean {
return operationIsContentType(op, "application/merge-patch+json");
// export function operationIsJsonMergePatch(op: HttpOperation): boolean {
// return operationIsContentType(op, "application/merge-patch+json");
// }

// export function operationIsMultipart(op: HttpOperation): boolean {
// return operationIsContentType(op, "multipart/form-data");
// }

// function operationIsContentType(op: HttpOperation, contentType: string): boolean {
// for (const param of op.parameters.parameters) {
// if (param.type === "header" && param.name.toLowerCase() === CONTENT_TYPE_KEY) {
// if (param.param.type.kind === "String" && param.param.type.value === contentType) {
// return true;
// }
// }
// }
// return false;
// }

// export function operationIsMultipleContentTypes(op: HttpOperation): boolean {
// if (
// op.parameters.parameters &&
// op.parameters.parameters.some(
// (parameter) =>
// parameter?.type === "header" &&
// parameter?.name?.toLowerCase() === CONTENT_TYPE_KEY &&
// parameter?.param?.type?.kind === "Union",
// )
// ) {
// return true;
// }
// return false;
// }

export function sdkHttpOperationIsJsonMergePatch(op: SdkHttpOperation): boolean {
return sdkHttpOperationIsContentType(op, "application/merge-patch+json");
}

export function operationIsMultipart(op: HttpOperation): boolean {
return operationIsContentType(op, "multipart/form-data");
export function sdkHttpOperationIsMultipart(op: SdkHttpOperation): boolean {
return sdkHttpOperationIsContentType(op, "multipart/form-data");
}

function operationIsContentType(op: HttpOperation, contentType: string): boolean {
for (const param of op.parameters.parameters) {
if (param.type === "header" && param.name.toLowerCase() === CONTENT_TYPE_KEY) {
if (param.param.type.kind === "String" && param.param.type.value === contentType) {
function sdkHttpOperationIsContentType(op: SdkHttpOperation, contentType: string): boolean {
for (const param of op.parameters) {
if (param.kind === "header" && param.serializedName.toLowerCase() === CONTENT_TYPE_KEY) {
if (param.type.kind === "constant" && param.type.value === contentType) {
return true;
}
}
}
return false;
}

export function operationIsMultipleContentTypes(op: HttpOperation): boolean {
export function sdkHttpOperationIsMultipleContentTypes(op: SdkHttpOperation): boolean {
if (
op.parameters.parameters &&
op.parameters.parameters.some(
op.parameters &&
op.parameters.some(
(parameter) =>
parameter?.type === "header" &&
parameter?.name?.toLowerCase() === CONTENT_TYPE_KEY &&
parameter?.param?.type?.kind === "Union",
parameter.kind === "header" &&
parameter.serializedName.toLowerCase() === CONTENT_TYPE_KEY &&
parameter.type.kind === "enum",
)
) {
return true;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ public interface InternalOperationsService {
@UnexpectedResponseExceptionType(value = ResourceModifiedException.class, code = { 409 })
@UnexpectedResponseExceptionType(HttpResponseException.class)
Mono<Response<BinaryData>> noDecoratorInInternal(@QueryParam("name") String name,
@HeaderParam("accept") String accept, RequestOptions requestOptions, Context context);
@HeaderParam("Accept") String accept, RequestOptions requestOptions, Context context);

@Get("/azure/client-generator-core/access/internalOperation/noDecoratorInInternal")
@ExpectedResponses({ 200 })
Expand All @@ -73,7 +73,7 @@ Mono<Response<BinaryData>> noDecoratorInInternal(@QueryParam("name") String name
@UnexpectedResponseExceptionType(value = ResourceModifiedException.class, code = { 409 })
@UnexpectedResponseExceptionType(HttpResponseException.class)
Response<BinaryData> noDecoratorInInternalSync(@QueryParam("name") String name,
@HeaderParam("accept") String accept, RequestOptions requestOptions, Context context);
@HeaderParam("Accept") String accept, RequestOptions requestOptions, Context context);

@Get("/azure/client-generator-core/access/internalOperation/internalDecoratorInInternal")
@ExpectedResponses({ 200 })
Expand All @@ -82,7 +82,7 @@ Response<BinaryData> noDecoratorInInternalSync(@QueryParam("name") String name,
@UnexpectedResponseExceptionType(value = ResourceModifiedException.class, code = { 409 })
@UnexpectedResponseExceptionType(HttpResponseException.class)
Mono<Response<BinaryData>> internalDecoratorInInternal(@QueryParam("name") String name,
@HeaderParam("accept") String accept, RequestOptions requestOptions, Context context);
@HeaderParam("Accept") String accept, RequestOptions requestOptions, Context context);

@Get("/azure/client-generator-core/access/internalOperation/internalDecoratorInInternal")
@ExpectedResponses({ 200 })
Expand All @@ -91,7 +91,7 @@ Mono<Response<BinaryData>> internalDecoratorInInternal(@QueryParam("name") Strin
@UnexpectedResponseExceptionType(value = ResourceModifiedException.class, code = { 409 })
@UnexpectedResponseExceptionType(HttpResponseException.class)
Response<BinaryData> internalDecoratorInInternalSync(@QueryParam("name") String name,
@HeaderParam("accept") String accept, RequestOptions requestOptions, Context context);
@HeaderParam("Accept") String accept, RequestOptions requestOptions, Context context);

@Get("/azure/client-generator-core/access/internalOperation/publicDecoratorInInternal")
@ExpectedResponses({ 200 })
Expand All @@ -100,7 +100,7 @@ Response<BinaryData> internalDecoratorInInternalSync(@QueryParam("name") String
@UnexpectedResponseExceptionType(value = ResourceModifiedException.class, code = { 409 })
@UnexpectedResponseExceptionType(HttpResponseException.class)
Mono<Response<BinaryData>> publicDecoratorInInternal(@QueryParam("name") String name,
@HeaderParam("accept") String accept, RequestOptions requestOptions, Context context);
@HeaderParam("Accept") String accept, RequestOptions requestOptions, Context context);

@Get("/azure/client-generator-core/access/internalOperation/publicDecoratorInInternal")
@ExpectedResponses({ 200 })
Expand All @@ -109,7 +109,7 @@ Mono<Response<BinaryData>> publicDecoratorInInternal(@QueryParam("name") String
@UnexpectedResponseExceptionType(value = ResourceModifiedException.class, code = { 409 })
@UnexpectedResponseExceptionType(HttpResponseException.class)
Response<BinaryData> publicDecoratorInInternalSync(@QueryParam("name") String name,
@HeaderParam("accept") String accept, RequestOptions requestOptions, Context context);
@HeaderParam("Accept") String accept, RequestOptions requestOptions, Context context);
}

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ public interface PublicOperationsService {
@UnexpectedResponseExceptionType(value = ResourceModifiedException.class, code = { 409 })
@UnexpectedResponseExceptionType(HttpResponseException.class)
Mono<Response<BinaryData>> noDecoratorInPublic(@QueryParam("name") String name,
@HeaderParam("accept") String accept, RequestOptions requestOptions, Context context);
@HeaderParam("Accept") String accept, RequestOptions requestOptions, Context context);

@Get("/azure/client-generator-core/access/publicOperation/noDecoratorInPublic")
@ExpectedResponses({ 200 })
Expand All @@ -73,7 +73,7 @@ Mono<Response<BinaryData>> noDecoratorInPublic(@QueryParam("name") String name,
@UnexpectedResponseExceptionType(value = ResourceModifiedException.class, code = { 409 })
@UnexpectedResponseExceptionType(HttpResponseException.class)
Response<BinaryData> noDecoratorInPublicSync(@QueryParam("name") String name,
@HeaderParam("accept") String accept, RequestOptions requestOptions, Context context);
@HeaderParam("Accept") String accept, RequestOptions requestOptions, Context context);

@Get("/azure/client-generator-core/access/publicOperation/publicDecoratorInPublic")
@ExpectedResponses({ 200 })
Expand All @@ -82,7 +82,7 @@ Response<BinaryData> noDecoratorInPublicSync(@QueryParam("name") String name,
@UnexpectedResponseExceptionType(value = ResourceModifiedException.class, code = { 409 })
@UnexpectedResponseExceptionType(HttpResponseException.class)
Mono<Response<BinaryData>> publicDecoratorInPublic(@QueryParam("name") String name,
@HeaderParam("accept") String accept, RequestOptions requestOptions, Context context);
@HeaderParam("Accept") String accept, RequestOptions requestOptions, Context context);

@Get("/azure/client-generator-core/access/publicOperation/publicDecoratorInPublic")
@ExpectedResponses({ 200 })
Expand All @@ -91,7 +91,7 @@ Mono<Response<BinaryData>> publicDecoratorInPublic(@QueryParam("name") String na
@UnexpectedResponseExceptionType(value = ResourceModifiedException.class, code = { 409 })
@UnexpectedResponseExceptionType(HttpResponseException.class)
Response<BinaryData> publicDecoratorInPublicSync(@QueryParam("name") String name,
@HeaderParam("accept") String accept, RequestOptions requestOptions, Context context);
@HeaderParam("Accept") String accept, RequestOptions requestOptions, Context context);
}

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ public interface RelativeModelInOperationsService {
@UnexpectedResponseExceptionType(value = ResourceNotFoundException.class, code = { 404 })
@UnexpectedResponseExceptionType(value = ResourceModifiedException.class, code = { 409 })
@UnexpectedResponseExceptionType(HttpResponseException.class)
Mono<Response<BinaryData>> operation(@QueryParam("name") String name, @HeaderParam("accept") String accept,
Mono<Response<BinaryData>> operation(@QueryParam("name") String name, @HeaderParam("Accept") String accept,
RequestOptions requestOptions, Context context);

@Get("/azure/client-generator-core/access/relativeModelInOperation/operation")
Expand All @@ -72,7 +72,7 @@ Mono<Response<BinaryData>> operation(@QueryParam("name") String name, @HeaderPar
@UnexpectedResponseExceptionType(value = ResourceNotFoundException.class, code = { 404 })
@UnexpectedResponseExceptionType(value = ResourceModifiedException.class, code = { 409 })
@UnexpectedResponseExceptionType(HttpResponseException.class)
Response<BinaryData> operationSync(@QueryParam("name") String name, @HeaderParam("accept") String accept,
Response<BinaryData> operationSync(@QueryParam("name") String name, @HeaderParam("Accept") String accept,
RequestOptions requestOptions, Context context);

@Get("/azure/client-generator-core/access/relativeModelInOperation/discriminator")
Expand All @@ -81,7 +81,7 @@ Response<BinaryData> operationSync(@QueryParam("name") String name, @HeaderParam
@UnexpectedResponseExceptionType(value = ResourceNotFoundException.class, code = { 404 })
@UnexpectedResponseExceptionType(value = ResourceModifiedException.class, code = { 409 })
@UnexpectedResponseExceptionType(HttpResponseException.class)
Mono<Response<BinaryData>> discriminator(@QueryParam("kind") String kind, @HeaderParam("accept") String accept,
Mono<Response<BinaryData>> discriminator(@QueryParam("kind") String kind, @HeaderParam("Accept") String accept,
RequestOptions requestOptions, Context context);

@Get("/azure/client-generator-core/access/relativeModelInOperation/discriminator")
Expand All @@ -90,7 +90,7 @@ Mono<Response<BinaryData>> discriminator(@QueryParam("kind") String kind, @Heade
@UnexpectedResponseExceptionType(value = ResourceNotFoundException.class, code = { 404 })
@UnexpectedResponseExceptionType(value = ResourceModifiedException.class, code = { 409 })
@UnexpectedResponseExceptionType(HttpResponseException.class)
Response<BinaryData> discriminatorSync(@QueryParam("kind") String kind, @HeaderParam("accept") String accept,
Response<BinaryData> discriminatorSync(@QueryParam("kind") String kind, @HeaderParam("Accept") String accept,
RequestOptions requestOptions, Context context);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ public interface SharedModelInOperationsService {
@UnexpectedResponseExceptionType(value = ResourceNotFoundException.class, code = { 404 })
@UnexpectedResponseExceptionType(value = ResourceModifiedException.class, code = { 409 })
@UnexpectedResponseExceptionType(HttpResponseException.class)
Mono<Response<BinaryData>> publicMethod(@QueryParam("name") String name, @HeaderParam("accept") String accept,
Mono<Response<BinaryData>> publicMethod(@QueryParam("name") String name, @HeaderParam("Accept") String accept,
RequestOptions requestOptions, Context context);

@Get("/azure/client-generator-core/access/sharedModelInOperation/public")
Expand All @@ -72,7 +72,7 @@ Mono<Response<BinaryData>> publicMethod(@QueryParam("name") String name, @Header
@UnexpectedResponseExceptionType(value = ResourceNotFoundException.class, code = { 404 })
@UnexpectedResponseExceptionType(value = ResourceModifiedException.class, code = { 409 })
@UnexpectedResponseExceptionType(HttpResponseException.class)
Response<BinaryData> publicMethodSync(@QueryParam("name") String name, @HeaderParam("accept") String accept,
Response<BinaryData> publicMethodSync(@QueryParam("name") String name, @HeaderParam("Accept") String accept,
RequestOptions requestOptions, Context context);

@Get("/azure/client-generator-core/access/sharedModelInOperation/internal")
Expand All @@ -81,7 +81,7 @@ Response<BinaryData> publicMethodSync(@QueryParam("name") String name, @HeaderPa
@UnexpectedResponseExceptionType(value = ResourceNotFoundException.class, code = { 404 })
@UnexpectedResponseExceptionType(value = ResourceModifiedException.class, code = { 409 })
@UnexpectedResponseExceptionType(HttpResponseException.class)
Mono<Response<BinaryData>> internal(@QueryParam("name") String name, @HeaderParam("accept") String accept,
Mono<Response<BinaryData>> internal(@QueryParam("name") String name, @HeaderParam("Accept") String accept,
RequestOptions requestOptions, Context context);

@Get("/azure/client-generator-core/access/sharedModelInOperation/internal")
Expand All @@ -90,7 +90,7 @@ Mono<Response<BinaryData>> internal(@QueryParam("name") String name, @HeaderPara
@UnexpectedResponseExceptionType(value = ResourceNotFoundException.class, code = { 404 })
@UnexpectedResponseExceptionType(value = ResourceModifiedException.class, code = { 409 })
@UnexpectedResponseExceptionType(HttpResponseException.class)
Response<BinaryData> internalSync(@QueryParam("name") String name, @HeaderParam("accept") String accept,
Response<BinaryData> internalSync(@QueryParam("name") String name, @HeaderParam("Accept") String accept,
RequestOptions requestOptions, Context context);
}

Expand Down
Loading
Loading