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

mgmt, resource update sample may have bug #2214

Closed
weidongxu-microsoft opened this issue Jun 30, 2023 · 1 comment
Closed

mgmt, resource update sample may have bug #2214

weidongxu-microsoft opened this issue Jun 30, 2023 · 1 comment
Labels
Mgmt This issue is related to a management-plane library.

Comments

@weidongxu-microsoft
Copy link
Member

weidongxu-microsoft commented Jun 30, 2023

swagger has identity, example also has it.
https://github.com/joannajiang112628/azure-rest-api-specs/blob/c9b373e139e99eb283da5a46196257a57b31e9fe/specification/communication/resource-manager/Microsoft.Communication/preview/2023-04-01-preview/CommunicationServices.json#L824-L851

Also, generated interface does have WithIdentity and WithLinkedDomain.

But sample generated in SDK seems without the identity and linkedDomains. Only tag exists.

    public static void updateResourceToAddAUserAssignedManagedIdentity(
        com.azure.resourcemanager.communication.CommunicationManager manager) {
        CommunicationServiceResource resource =
            manager
                .communicationServices()
                .getByResourceGroupWithResponse(
                    "MyResourceGroup", "MyCommunicationResource", com.azure.core.util.Context.NONE)
                .getValue();
        resource.update().withTags(mapOf("newTag", "newVal")).apply();
    }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Mgmt This issue is related to a management-plane library.
Projects
None yet
Development

No branches or pull requests

1 participant