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] serialization error when setting model property with azure.core.serialization.NULL #2606

Closed
msyyc opened this issue May 31, 2024 · 1 comment · Fixed by #2607
Closed
Assignees
Labels
mgmt This issue is related to a management-plane library.

Comments

@msyyc
Copy link
Member

msyyc commented May 31, 2024

When running the following code, deserialization error happens before sending request

from azure.identity import DefaultAzureCredential
from azure.mgmt.cdn import CdnManagementClient
from azure.core.serialization import NULL as AzureCoreNull

def main():
    client = CdnManagementClient(
        credential=DefaultAzureCredential(),
        subscription_id="000",
        logging_enable=True
    )

    response = client.routes.begin_update(
        resource_group_name="chenximgmt",
        profile_name="chenxicdn",
        endpoint_name="chenxiendpoint",
        route_name="default-route",
        route_update_properties=RouteUpdateParameters(cache_configuration=AzureCoreNull)
    ).result()

image

@msyyc msyyc added the mgmt This issue is related to a management-plane library. label May 31, 2024
@msyyc msyyc self-assigned this May 31, 2024
@msyyc msyyc changed the title [Mgmt] serialization error when setting property with azure.core.serialization.NULL [Mgmt] serialization error when setting model property with azure.core.serialization.NULL May 31, 2024
@msyyc
Copy link
Member Author

msyyc commented May 31, 2024

related issue Azure/azure-sdk-for-python#35801

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
1 participant