microsoft / Partner-Center-Java

Partner Center SDK for Java
https://docs.microsoft.com/java/partnercenter/
31 stars 12 forks source link

Deserializing utilization records #63

Closed ghost closed 5 years ago

ghost commented 5 years ago

The utilization request:

GET /v1/customers/{customerId}/subscriptions/{subscriptionId}/utilizations/azure?start_time=2019-07-04T08:00:00Z&end_time=2019-07-05T00:00:00Z&granularity=hourly&show_details=true&size=500

returns values with invalid URI as a resourceUri propertiy:

"resourceUri": "/SUBSCRIPTIONS/{subId}/RESOURCEGROUPS/DATAPLATFORM/PROVIDERS/MICROSOFT.DEVICES/IOTHUBS/NCCDATAPLATFORM_[1846181]",

ghost commented 5 years ago

After reviewing how the Azure SDK handles this scenario, I have modified the type for the resourceUri property from URI to String. We will need to look into the other places where the URI type is used to ensure they will not have the same issue.

ghost commented 5 years ago

Version 1.13.6 has been released. It includes the fix for this issue.