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

Add implementation of DT Apis #14671

Merged
merged 4 commits into from
Sep 1, 2020
Merged

Add implementation of DT Apis #14671

merged 4 commits into from
Sep 1, 2020

Conversation

bikamani
Copy link
Contributor

@bikamani bikamani commented Sep 1, 2020

No description provided.

public Mono<Void> updateDigitalTwin(String digitalTwinId, List<Object> digitalTwinUpdateOperations)
{
return updateDigitalTwinWithResponse(digitalTwinId, digitalTwinUpdateOperations, new RequestOptions())
.flatMap(voidResponse -> Mono.empty());
Copy link
Member

@abhipsaMisra abhipsaMisra Sep 1, 2020

Choose a reason for hiding this comment

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

FYI: using a map here would have given us:
.map(voidDigitalTwinsResponse -> null)

Even though Mono<Void> is the same as an empty Mono -> Mono that doesn't return anything, I feel Mono.empty() is a better representation of the transformation we are doing here.

However, I want to point out that the end result from both would still be the same.

Copy link
Member

@abhipsaMisra abhipsaMisra left a comment

Choose a reason for hiding this comment

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

some small comments, looks good otherwise!

@abhipsaMisra
Copy link
Member

an mvn install locally will highlight javadoc errors and other bug checks that the pipeline has

@bikamani bikamani merged commit 49d7bb5 into master Sep 1, 2020
@bikamani bikamani deleted the feature/adt/bikamani/dtCrud branch September 1, 2020 21:03
openapi-sdkautomation bot pushed a commit to AzureSDKAutomation/azure-sdk-for-java that referenced this pull request Jun 15, 2021
Resume V2021-02-01-Preview BackupShortTermRetentionPolicies API Specification (Azure#14671)

* Resume V2021-02-01-Preview BackupShortTermRetentionPolicies API Specification

* Prettier check fix

* comment

Co-authored-by: Lillian Liu <liulu@microsoft.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants