Skip to content

Comments

[Automation] Generate SDK based on TypeSpec 0.20.0 DEV#41600

Closed
azure-sdk wants to merge 1 commit intoAzure:mainfrom
azure-sdk:typespec-java-generation-4071330
Closed

[Automation] Generate SDK based on TypeSpec 0.20.0 DEV#41600
azure-sdk wants to merge 1 commit intoAzure:mainfrom
azure-sdk:typespec-java-generation-4071330

Conversation

@azure-sdk
Copy link
Collaborator

@azure-sdk azure-sdk commented Aug 22, 2024

[Automation] Generate SDK based on TypeSpec 0.20.0 DEV

Diffs summary:

  1. Client method: javadoc change on the return type, because we mrege summary and description in codegen. e.g.https://github.com/Azure/azure-sdk-for-java/pull/41600/files#diff-22a86c1583ab90d90851139f385f25e4184e565365883b077d8fdfa47ea1e0d2R24971
  2. optional body and content-type, protocol method javadoc added header parameter table. e.g. https://github.com/Azure/azure-sdk-for-java/pull/41600/files#diff-22a86c1583ab90d90851139f385f25e4184e565365883b077d8fdfa47ea1e0d2R27136
    But in impl, the default setted content-type is removed. But in the impl it will add default content type here
    https://github.com/Azure/azure-sdk-for-java/pull/41600/files#diff-8f1796f453e43d1d28aa2b031053d2e21f6ce3eef5d4dd9929b5a125ce6d596cR25603
    tsp: https://github.com/Azure/azure-rest-api-specs/blob/main/specification/batch/Azure.Batch/routes.tsp#L1319
    They explicitly specified content-type: https://github.com/Azure/azure-rest-api-specs/blob/main/specification/batch/Azure.Batch/common.tsp#L131
  3. The order of setting model property changes e.g. https://github.com/Azure/azure-sdk-for-java/pull/41600/files#diff-6d9f7ebfa44d7fa7f65cb19f90df0c1ee7460ee1ae28d0d78beb000dbad5d74aR783
    image
    tsp: https://github.com/Azure/azure-rest-api-specs/blob/main/specification/ai/Face/routes.detection.tsp,
    https://github.com/Azure/azure-rest-api-specs/blob/main/specification/ai/Face/models.detect.tsp
  4. accept header's application/json value is removed. e.g. https://github.com/Azure/azure-sdk-for-java/pull/41600/files#diff-2b69dc7105600fc163760d8b834bf171ed6880b198d30043f65026f68b931c59L372
    tsp: https://github.com/Azure/azure-rest-api-specs/blob/main/specification/communication/Communication.Messages/routes.tsp#L46
    This is because previously we will add response.body.contentTypes to accept header's content type value by ourselves, but now we use TCGC to get accept header's content type value.
  5. health/insights/radiologyinsights/RadiologyInsightsClient.java seems have api version change: https://github.com/Azure/azure-sdk-for-java/pull/41600/files#diff-69bd0d64e9d900c92145daba58c9927c239e97d28488fb3ee6b445794a613eeaR429
    image

1 is expected, 2,3,4,5 I'm investigating the root cause.

@azure-sdk azure-sdk added the DPG label Aug 22, 2024
@azure-sdk
Copy link
Collaborator Author

azure-sdk commented Aug 22, 2024

API change check

API changes are not detected in this pull request.

@@ -25587,7 +25610,7 @@ public Mono<Response<Void>> rebootNodeInternalWithResponseAsync(String poolId, S
}
});
return FluxUtil.withContext(context -> service.rebootNodeInternal(this.getEndpoint(),
this.getServiceVersion().getVersion(), contentType, poolId, nodeId, accept, requestOptionsLocal, context));
this.getServiceVersion().getVersion(), poolId, nodeId, accept, requestOptionsLocal, context));
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

mark, the default setted content-type is removed. And it should be passed from client method.

@weidongxu-microsoft
Copy link
Member

weidongxu-microsoft commented Aug 23, 2024

You can ignore the diff in healthinsights, as this lib is not synced before (we are waiting for their GA PR).

However, the api-version should not changed? (as the commit ID stays same)

Boolean returnFaceLandmarks = options.isReturnFaceLandmarks();
Boolean returnRecognitionModel = options.isReturnRecognitionModel();
Integer faceIdTimeToLive = options.getFaceIdTimeToLive();
DetectFromUrlImplRequest detectFromUrlRequestObj = new DetectFromUrlImplRequest(options.getUrl());
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

parameter setting order changes

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants