Skip to content

chore(instance): handle deprecated_optional fields#1691

Draft
estellesoulard wants to merge 1 commit intomainfrom
chore/instance-deprecated-optional
Draft

chore(instance): handle deprecated_optional fields#1691
estellesoulard wants to merge 1 commit intomainfrom
chore/instance-deprecated-optional

Conversation

@estellesoulard
Copy link
Copy Markdown
Contributor

Extracted instance changes from the generated #1668.

Comment on lines +1908 to +1986
args["volumes_count"] = 0

field = data.get("running_servers_count", None)
if field is not None:
args["running_servers_count"] = field
else:
args["running_servers_count"] = None
args["running_servers_count"] = 0

field = data.get("servers_by_types", None)
if field is not None:
args["servers_by_types"] = field
else:
args["servers_by_types"] = None
args["servers_by_types"] = {}

field = data.get("images_count", None)
if field is not None:
args["images_count"] = field
else:
args["images_count"] = None
args["images_count"] = 0

field = data.get("snapshots_count", None)
if field is not None:
args["snapshots_count"] = field
else:
args["snapshots_count"] = None
args["snapshots_count"] = 0

field = data.get("servers_count", None)
if field is not None:
args["servers_count"] = field
else:
args["servers_count"] = None
args["servers_count"] = 0

field = data.get("ips_count", None)
if field is not None:
args["ips_count"] = field
else:
args["ips_count"] = None
args["ips_count"] = 0

field = data.get("security_groups_count", None)
if field is not None:
args["security_groups_count"] = field
else:
args["security_groups_count"] = None
args["security_groups_count"] = 0

field = data.get("ips_unused", None)
if field is not None:
args["ips_unused"] = field
else:
args["ips_unused"] = None
args["ips_unused"] = 0

field = data.get("volumes_l_ssd_count", None)
if field is not None:
args["volumes_l_ssd_count"] = field
else:
args["volumes_l_ssd_count"] = None
args["volumes_l_ssd_count"] = 0

field = data.get("volumes_l_ssd_total_size", None)
if field is not None:
args["volumes_l_ssd_total_size"] = field
else:
args["volumes_l_ssd_total_size"] = None
args["volumes_l_ssd_total_size"] = 0

field = data.get("private_nics_count", None)
if field is not None:
args["private_nics_count"] = field
else:
args["private_nics_count"] = None
args["private_nics_count"] = 0

field = data.get("placement_groups_count", None)
if field is not None:
args["placement_groups_count"] = field
else:
args["placement_groups_count"] = None
args["placement_groups_count"] = 0

field = data.get("volumes_scratch_count", None)
if field is not None:
args["volumes_scratch_count"] = field
else:
args["volumes_scratch_count"] = None
args["volumes_scratch_count"] = 0
Copy link
Copy Markdown
Contributor Author

@estellesoulard estellesoulard Mar 27, 2026

Choose a reason for hiding this comment

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

to verify, this should probably be left unchanged

@github-actions github-actions bot added the instance Instance issues, bugs and feature requests label Mar 27, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

instance Instance issues, bugs and feature requests

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant