-
Notifications
You must be signed in to change notification settings - Fork 21
Open
Description
- Input for the Python SDK matches what the API expects and is PascalCase:
"api_body": {
"Name":"sjc07-r13-hx-edge-2",
"MgmtPlatform":"EDGE",
"Description":"3 node Edge M5 cluster"
Output from the SDK is snake_case so I currently have internal deserialize methods exposed for the conversion:
check object properties
data_module = import_module(item['data_module'])
data_class = getattr(data_module, item['data_class'])
deserialize_instance = ApiClient()
data_object = deserialize_instance._ApiClient__deserialize_model(item['api_body'], data_class)
deserialize_dict = data_object.to_dict()
props_match = compare_values(deserialize_dict, response_dict)
We would like to have consistent input/output from the API to help in compares.
Metadata
Metadata
Assignees
Labels
No labels