stackit-iaas 1.6.0__tar.gz → 1.7.0__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {stackit_iaas-1.6.0 → stackit_iaas-1.7.0}/PKG-INFO +2 -2
- {stackit_iaas-1.6.0 → stackit_iaas-1.7.0}/pyproject.toml +1 -1
- {stackit_iaas-1.6.0 → stackit_iaas-1.7.0}/src/stackit/iaas/models/add_routing_table_to_area_payload.py +1 -1
- {stackit_iaas-1.6.0 → stackit_iaas-1.7.0}/src/stackit/iaas/models/backup.py +1 -1
- {stackit_iaas-1.6.0 → stackit_iaas-1.7.0}/src/stackit/iaas/models/create_backup_payload.py +1 -1
- {stackit_iaas-1.6.0 → stackit_iaas-1.7.0}/src/stackit/iaas/models/create_image_payload.py +1 -1
- {stackit_iaas-1.6.0 → stackit_iaas-1.7.0}/src/stackit/iaas/models/create_isolated_network_payload.py +1 -1
- {stackit_iaas-1.6.0 → stackit_iaas-1.7.0}/src/stackit/iaas/models/create_key_pair_payload.py +1 -1
- {stackit_iaas-1.6.0 → stackit_iaas-1.7.0}/src/stackit/iaas/models/create_network_area_payload.py +1 -1
- {stackit_iaas-1.6.0 → stackit_iaas-1.7.0}/src/stackit/iaas/models/create_network_payload.py +16 -2
- {stackit_iaas-1.6.0 → stackit_iaas-1.7.0}/src/stackit/iaas/models/create_nic_payload.py +42 -1
- {stackit_iaas-1.6.0 → stackit_iaas-1.7.0}/src/stackit/iaas/models/create_public_ip_payload.py +41 -2
- {stackit_iaas-1.6.0 → stackit_iaas-1.7.0}/src/stackit/iaas/models/create_security_group_payload.py +1 -1
- {stackit_iaas-1.6.0 → stackit_iaas-1.7.0}/src/stackit/iaas/models/create_server_payload.py +1 -1
- {stackit_iaas-1.6.0 → stackit_iaas-1.7.0}/src/stackit/iaas/models/create_snapshot_payload.py +1 -1
- {stackit_iaas-1.6.0 → stackit_iaas-1.7.0}/src/stackit/iaas/models/create_volume_payload.py +1 -1
- {stackit_iaas-1.6.0 → stackit_iaas-1.7.0}/src/stackit/iaas/models/destination_cidrv4.py +7 -0
- {stackit_iaas-1.6.0 → stackit_iaas-1.7.0}/src/stackit/iaas/models/destination_cidrv6.py +7 -0
- {stackit_iaas-1.6.0 → stackit_iaas-1.7.0}/src/stackit/iaas/models/image.py +1 -1
- {stackit_iaas-1.6.0 → stackit_iaas-1.7.0}/src/stackit/iaas/models/image_from_volume_payload.py +5 -1
- {stackit_iaas-1.6.0 → stackit_iaas-1.7.0}/src/stackit/iaas/models/keypair.py +1 -1
- {stackit_iaas-1.6.0 → stackit_iaas-1.7.0}/src/stackit/iaas/models/network.py +7 -2
- {stackit_iaas-1.6.0 → stackit_iaas-1.7.0}/src/stackit/iaas/models/network_area.py +1 -1
- {stackit_iaas-1.6.0 → stackit_iaas-1.7.0}/src/stackit/iaas/models/nexthop_blackhole.py +8 -1
- {stackit_iaas-1.6.0 → stackit_iaas-1.7.0}/src/stackit/iaas/models/nexthop_internet.py +8 -1
- {stackit_iaas-1.6.0 → stackit_iaas-1.7.0}/src/stackit/iaas/models/nexthop_ipv4.py +7 -0
- {stackit_iaas-1.6.0 → stackit_iaas-1.7.0}/src/stackit/iaas/models/nexthop_ipv6.py +7 -0
- {stackit_iaas-1.6.0 → stackit_iaas-1.7.0}/src/stackit/iaas/models/nic.py +42 -1
- {stackit_iaas-1.6.0 → stackit_iaas-1.7.0}/src/stackit/iaas/models/partial_update_network_area_payload.py +1 -1
- {stackit_iaas-1.6.0 → stackit_iaas-1.7.0}/src/stackit/iaas/models/partial_update_network_payload.py +15 -2
- {stackit_iaas-1.6.0 → stackit_iaas-1.7.0}/src/stackit/iaas/models/project.py +31 -1
- {stackit_iaas-1.6.0 → stackit_iaas-1.7.0}/src/stackit/iaas/models/public_ip.py +41 -2
- {stackit_iaas-1.6.0 → stackit_iaas-1.7.0}/src/stackit/iaas/models/route.py +1 -1
- {stackit_iaas-1.6.0 → stackit_iaas-1.7.0}/src/stackit/iaas/models/routing_table.py +1 -1
- {stackit_iaas-1.6.0 → stackit_iaas-1.7.0}/src/stackit/iaas/models/security_group.py +1 -1
- {stackit_iaas-1.6.0 → stackit_iaas-1.7.0}/src/stackit/iaas/models/server.py +1 -1
- {stackit_iaas-1.6.0 → stackit_iaas-1.7.0}/src/stackit/iaas/models/server_network.py +45 -1
- {stackit_iaas-1.6.0 → stackit_iaas-1.7.0}/src/stackit/iaas/models/snapshot.py +1 -1
- {stackit_iaas-1.6.0 → stackit_iaas-1.7.0}/src/stackit/iaas/models/update_backup_payload.py +1 -1
- {stackit_iaas-1.6.0 → stackit_iaas-1.7.0}/src/stackit/iaas/models/update_image_payload.py +1 -1
- {stackit_iaas-1.6.0 → stackit_iaas-1.7.0}/src/stackit/iaas/models/update_key_pair_payload.py +1 -1
- {stackit_iaas-1.6.0 → stackit_iaas-1.7.0}/src/stackit/iaas/models/update_network_area_route_payload.py +1 -1
- {stackit_iaas-1.6.0 → stackit_iaas-1.7.0}/src/stackit/iaas/models/update_nic_payload.py +1 -1
- {stackit_iaas-1.6.0 → stackit_iaas-1.7.0}/src/stackit/iaas/models/update_public_ip_payload.py +41 -2
- {stackit_iaas-1.6.0 → stackit_iaas-1.7.0}/src/stackit/iaas/models/update_route_of_routing_table_payload.py +1 -1
- {stackit_iaas-1.6.0 → stackit_iaas-1.7.0}/src/stackit/iaas/models/update_routing_table_of_area_payload.py +1 -1
- {stackit_iaas-1.6.0 → stackit_iaas-1.7.0}/src/stackit/iaas/models/update_security_group_payload.py +1 -1
- {stackit_iaas-1.6.0 → stackit_iaas-1.7.0}/src/stackit/iaas/models/update_server_payload.py +1 -1
- {stackit_iaas-1.6.0 → stackit_iaas-1.7.0}/src/stackit/iaas/models/update_snapshot_payload.py +1 -1
- {stackit_iaas-1.6.0 → stackit_iaas-1.7.0}/src/stackit/iaas/models/update_volume_payload.py +1 -1
- {stackit_iaas-1.6.0 → stackit_iaas-1.7.0}/src/stackit/iaas/models/volume.py +1 -1
- {stackit_iaas-1.6.0 → stackit_iaas-1.7.0}/src/stackit/iaas/models/volume_performance_class.py +1 -1
- {stackit_iaas-1.6.0 → stackit_iaas-1.7.0}/.gitignore +0 -0
- {stackit_iaas-1.6.0 → stackit_iaas-1.7.0}/LICENSE.md +0 -0
- {stackit_iaas-1.6.0 → stackit_iaas-1.7.0}/NOTICE.txt +0 -0
- {stackit_iaas-1.6.0 → stackit_iaas-1.7.0}/README.md +0 -0
- {stackit_iaas-1.6.0 → stackit_iaas-1.7.0}/src/stackit/iaas/__init__.py +0 -0
- {stackit_iaas-1.6.0 → stackit_iaas-1.7.0}/src/stackit/iaas/api/__init__.py +0 -0
- {stackit_iaas-1.6.0 → stackit_iaas-1.7.0}/src/stackit/iaas/api/default_api.py +0 -0
- {stackit_iaas-1.6.0 → stackit_iaas-1.7.0}/src/stackit/iaas/api_client.py +0 -0
- {stackit_iaas-1.6.0 → stackit_iaas-1.7.0}/src/stackit/iaas/api_response.py +0 -0
- {stackit_iaas-1.6.0 → stackit_iaas-1.7.0}/src/stackit/iaas/configuration.py +0 -0
- {stackit_iaas-1.6.0 → stackit_iaas-1.7.0}/src/stackit/iaas/exceptions.py +0 -0
- {stackit_iaas-1.6.0 → stackit_iaas-1.7.0}/src/stackit/iaas/models/__init__.py +0 -0
- {stackit_iaas-1.6.0 → stackit_iaas-1.7.0}/src/stackit/iaas/models/add_routes_to_routing_table_payload.py +0 -0
- {stackit_iaas-1.6.0 → stackit_iaas-1.7.0}/src/stackit/iaas/models/add_volume_to_server_payload.py +0 -0
- {stackit_iaas-1.6.0 → stackit_iaas-1.7.0}/src/stackit/iaas/models/affinity_group.py +0 -0
- {stackit_iaas-1.6.0 → stackit_iaas-1.7.0}/src/stackit/iaas/models/affinity_group_list_response.py +0 -0
- {stackit_iaas-1.6.0 → stackit_iaas-1.7.0}/src/stackit/iaas/models/allowed_addresses_inner.py +0 -0
- {stackit_iaas-1.6.0 → stackit_iaas-1.7.0}/src/stackit/iaas/models/area_id.py +0 -0
- {stackit_iaas-1.6.0 → stackit_iaas-1.7.0}/src/stackit/iaas/models/availability_zone_list_response.py +0 -0
- {stackit_iaas-1.6.0 → stackit_iaas-1.7.0}/src/stackit/iaas/models/backup_list_response.py +0 -0
- {stackit_iaas-1.6.0 → stackit_iaas-1.7.0}/src/stackit/iaas/models/backup_source.py +0 -0
- {stackit_iaas-1.6.0 → stackit_iaas-1.7.0}/src/stackit/iaas/models/base_security_group_rule.py +0 -0
- {stackit_iaas-1.6.0 → stackit_iaas-1.7.0}/src/stackit/iaas/models/boot_volume.py +0 -0
- {stackit_iaas-1.6.0 → stackit_iaas-1.7.0}/src/stackit/iaas/models/boot_volume_source.py +0 -0
- {stackit_iaas-1.6.0 → stackit_iaas-1.7.0}/src/stackit/iaas/models/create_affinity_group_payload.py +0 -0
- {stackit_iaas-1.6.0 → stackit_iaas-1.7.0}/src/stackit/iaas/models/create_network_area_range_payload.py +0 -0
- {stackit_iaas-1.6.0 → stackit_iaas-1.7.0}/src/stackit/iaas/models/create_network_area_region_payload.py +0 -0
- {stackit_iaas-1.6.0 → stackit_iaas-1.7.0}/src/stackit/iaas/models/create_network_area_route_payload.py +0 -0
- {stackit_iaas-1.6.0 → stackit_iaas-1.7.0}/src/stackit/iaas/models/create_network_ipv4.py +0 -0
- {stackit_iaas-1.6.0 → stackit_iaas-1.7.0}/src/stackit/iaas/models/create_network_ipv4_with_prefix.py +0 -0
- {stackit_iaas-1.6.0 → stackit_iaas-1.7.0}/src/stackit/iaas/models/create_network_ipv4_with_prefix_length.py +0 -0
- {stackit_iaas-1.6.0 → stackit_iaas-1.7.0}/src/stackit/iaas/models/create_network_ipv6.py +0 -0
- {stackit_iaas-1.6.0 → stackit_iaas-1.7.0}/src/stackit/iaas/models/create_network_ipv6_with_prefix.py +0 -0
- {stackit_iaas-1.6.0 → stackit_iaas-1.7.0}/src/stackit/iaas/models/create_network_ipv6_with_prefix_length.py +0 -0
- {stackit_iaas-1.6.0 → stackit_iaas-1.7.0}/src/stackit/iaas/models/create_protocol.py +0 -0
- {stackit_iaas-1.6.0 → stackit_iaas-1.7.0}/src/stackit/iaas/models/create_security_group_rule_payload.py +0 -0
- {stackit_iaas-1.6.0 → stackit_iaas-1.7.0}/src/stackit/iaas/models/create_security_group_rule_protocol.py +0 -0
- {stackit_iaas-1.6.0 → stackit_iaas-1.7.0}/src/stackit/iaas/models/create_server_networking.py +0 -0
- {stackit_iaas-1.6.0 → stackit_iaas-1.7.0}/src/stackit/iaas/models/create_server_networking_with_nics.py +0 -0
- {stackit_iaas-1.6.0 → stackit_iaas-1.7.0}/src/stackit/iaas/models/create_server_payload_all_of_networking.py +0 -0
- {stackit_iaas-1.6.0 → stackit_iaas-1.7.0}/src/stackit/iaas/models/error.py +0 -0
- {stackit_iaas-1.6.0 → stackit_iaas-1.7.0}/src/stackit/iaas/models/get_server_log200_response.py +0 -0
- {stackit_iaas-1.6.0 → stackit_iaas-1.7.0}/src/stackit/iaas/models/icmp_parameters.py +0 -0
- {stackit_iaas-1.6.0 → stackit_iaas-1.7.0}/src/stackit/iaas/models/image_agent.py +0 -0
- {stackit_iaas-1.6.0 → stackit_iaas-1.7.0}/src/stackit/iaas/models/image_checksum.py +0 -0
- {stackit_iaas-1.6.0 → stackit_iaas-1.7.0}/src/stackit/iaas/models/image_config.py +0 -0
- {stackit_iaas-1.6.0 → stackit_iaas-1.7.0}/src/stackit/iaas/models/image_create_response.py +0 -0
- {stackit_iaas-1.6.0 → stackit_iaas-1.7.0}/src/stackit/iaas/models/image_list_response.py +0 -0
- {stackit_iaas-1.6.0 → stackit_iaas-1.7.0}/src/stackit/iaas/models/image_share.py +0 -0
- {stackit_iaas-1.6.0 → stackit_iaas-1.7.0}/src/stackit/iaas/models/image_share_consumer.py +0 -0
- {stackit_iaas-1.6.0 → stackit_iaas-1.7.0}/src/stackit/iaas/models/key_pair_list_response.py +0 -0
- {stackit_iaas-1.6.0 → stackit_iaas-1.7.0}/src/stackit/iaas/models/machine_type.py +0 -0
- {stackit_iaas-1.6.0 → stackit_iaas-1.7.0}/src/stackit/iaas/models/machine_type_list_response.py +0 -0
- {stackit_iaas-1.6.0 → stackit_iaas-1.7.0}/src/stackit/iaas/models/network_area_list_response.py +0 -0
- {stackit_iaas-1.6.0 → stackit_iaas-1.7.0}/src/stackit/iaas/models/network_ipv4.py +0 -0
- {stackit_iaas-1.6.0 → stackit_iaas-1.7.0}/src/stackit/iaas/models/network_ipv6.py +0 -0
- {stackit_iaas-1.6.0 → stackit_iaas-1.7.0}/src/stackit/iaas/models/network_list_response.py +0 -0
- {stackit_iaas-1.6.0 → stackit_iaas-1.7.0}/src/stackit/iaas/models/network_range.py +0 -0
- {stackit_iaas-1.6.0 → stackit_iaas-1.7.0}/src/stackit/iaas/models/network_range_list_response.py +0 -0
- {stackit_iaas-1.6.0 → stackit_iaas-1.7.0}/src/stackit/iaas/models/nic_list_response.py +0 -0
- {stackit_iaas-1.6.0 → stackit_iaas-1.7.0}/src/stackit/iaas/models/port_range.py +0 -0
- {stackit_iaas-1.6.0 → stackit_iaas-1.7.0}/src/stackit/iaas/models/project_list_response.py +0 -0
- {stackit_iaas-1.6.0 → stackit_iaas-1.7.0}/src/stackit/iaas/models/protocol.py +0 -0
- {stackit_iaas-1.6.0 → stackit_iaas-1.7.0}/src/stackit/iaas/models/public_ip_list_response.py +0 -0
- {stackit_iaas-1.6.0 → stackit_iaas-1.7.0}/src/stackit/iaas/models/public_network.py +0 -0
- {stackit_iaas-1.6.0 → stackit_iaas-1.7.0}/src/stackit/iaas/models/public_network_list_response.py +0 -0
- {stackit_iaas-1.6.0 → stackit_iaas-1.7.0}/src/stackit/iaas/models/quota.py +0 -0
- {stackit_iaas-1.6.0 → stackit_iaas-1.7.0}/src/stackit/iaas/models/quota_list.py +0 -0
- {stackit_iaas-1.6.0 → stackit_iaas-1.7.0}/src/stackit/iaas/models/quota_list_response.py +0 -0
- {stackit_iaas-1.6.0 → stackit_iaas-1.7.0}/src/stackit/iaas/models/regional_area.py +0 -0
- {stackit_iaas-1.6.0 → stackit_iaas-1.7.0}/src/stackit/iaas/models/regional_area_ipv4.py +0 -0
- {stackit_iaas-1.6.0 → stackit_iaas-1.7.0}/src/stackit/iaas/models/regional_area_list_response.py +0 -0
- {stackit_iaas-1.6.0 → stackit_iaas-1.7.0}/src/stackit/iaas/models/request.py +0 -0
- {stackit_iaas-1.6.0 → stackit_iaas-1.7.0}/src/stackit/iaas/models/request_resource.py +0 -0
- {stackit_iaas-1.6.0 → stackit_iaas-1.7.0}/src/stackit/iaas/models/rescue_server_payload.py +0 -0
- {stackit_iaas-1.6.0 → stackit_iaas-1.7.0}/src/stackit/iaas/models/resize_server_payload.py +0 -0
- {stackit_iaas-1.6.0 → stackit_iaas-1.7.0}/src/stackit/iaas/models/resize_volume_payload.py +0 -0
- {stackit_iaas-1.6.0 → stackit_iaas-1.7.0}/src/stackit/iaas/models/route_destination.py +0 -0
- {stackit_iaas-1.6.0 → stackit_iaas-1.7.0}/src/stackit/iaas/models/route_list_response.py +0 -0
- {stackit_iaas-1.6.0 → stackit_iaas-1.7.0}/src/stackit/iaas/models/route_nexthop.py +0 -0
- {stackit_iaas-1.6.0 → stackit_iaas-1.7.0}/src/stackit/iaas/models/routing_table_list_response.py +0 -0
- {stackit_iaas-1.6.0 → stackit_iaas-1.7.0}/src/stackit/iaas/models/security_group_list_response.py +0 -0
- {stackit_iaas-1.6.0 → stackit_iaas-1.7.0}/src/stackit/iaas/models/security_group_rule.py +0 -0
- {stackit_iaas-1.6.0 → stackit_iaas-1.7.0}/src/stackit/iaas/models/security_group_rule_list_response.py +0 -0
- {stackit_iaas-1.6.0 → stackit_iaas-1.7.0}/src/stackit/iaas/models/security_group_rule_protocol.py +0 -0
- {stackit_iaas-1.6.0 → stackit_iaas-1.7.0}/src/stackit/iaas/models/server_agent.py +0 -0
- {stackit_iaas-1.6.0 → stackit_iaas-1.7.0}/src/stackit/iaas/models/server_console_url.py +0 -0
- {stackit_iaas-1.6.0 → stackit_iaas-1.7.0}/src/stackit/iaas/models/server_list_response.py +0 -0
- {stackit_iaas-1.6.0 → stackit_iaas-1.7.0}/src/stackit/iaas/models/server_maintenance.py +0 -0
- {stackit_iaas-1.6.0 → stackit_iaas-1.7.0}/src/stackit/iaas/models/server_networking.py +0 -0
- {stackit_iaas-1.6.0 → stackit_iaas-1.7.0}/src/stackit/iaas/models/service_account_mail_list_response.py +0 -0
- {stackit_iaas-1.6.0 → stackit_iaas-1.7.0}/src/stackit/iaas/models/set_image_share_payload.py +0 -0
- {stackit_iaas-1.6.0 → stackit_iaas-1.7.0}/src/stackit/iaas/models/snapshot_list_response.py +0 -0
- {stackit_iaas-1.6.0 → stackit_iaas-1.7.0}/src/stackit/iaas/models/static_area_id.py +0 -0
- {stackit_iaas-1.6.0 → stackit_iaas-1.7.0}/src/stackit/iaas/models/update_attached_volume_payload.py +0 -0
- {stackit_iaas-1.6.0 → stackit_iaas-1.7.0}/src/stackit/iaas/models/update_image_share_payload.py +0 -0
- {stackit_iaas-1.6.0 → stackit_iaas-1.7.0}/src/stackit/iaas/models/update_network_area_region_payload.py +0 -0
- {stackit_iaas-1.6.0 → stackit_iaas-1.7.0}/src/stackit/iaas/models/update_network_ipv4_body.py +0 -0
- {stackit_iaas-1.6.0 → stackit_iaas-1.7.0}/src/stackit/iaas/models/update_network_ipv6_body.py +0 -0
- {stackit_iaas-1.6.0 → stackit_iaas-1.7.0}/src/stackit/iaas/models/update_regional_area_ipv4.py +0 -0
- {stackit_iaas-1.6.0 → stackit_iaas-1.7.0}/src/stackit/iaas/models/volume_attachment.py +0 -0
- {stackit_iaas-1.6.0 → stackit_iaas-1.7.0}/src/stackit/iaas/models/volume_attachment_list_response.py +0 -0
- {stackit_iaas-1.6.0 → stackit_iaas-1.7.0}/src/stackit/iaas/models/volume_encryption_parameter.py +0 -0
- {stackit_iaas-1.6.0 → stackit_iaas-1.7.0}/src/stackit/iaas/models/volume_list_response.py +0 -0
- {stackit_iaas-1.6.0 → stackit_iaas-1.7.0}/src/stackit/iaas/models/volume_performance_class_list_response.py +0 -0
- {stackit_iaas-1.6.0 → stackit_iaas-1.7.0}/src/stackit/iaas/models/volume_source.py +0 -0
- {stackit_iaas-1.6.0 → stackit_iaas-1.7.0}/src/stackit/iaas/py.typed +0 -0
- {stackit_iaas-1.6.0 → stackit_iaas-1.7.0}/src/stackit/iaas/rest.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
Metadata-Version: 2.
|
|
1
|
+
Metadata-Version: 2.5
|
|
2
2
|
Name: stackit-iaas
|
|
3
|
-
Version:
|
|
3
|
+
Version: v1.7.0
|
|
4
4
|
Summary: IaaS-API
|
|
5
5
|
Project-URL: Homepage, https://github.com/stackitcloud/stackit-sdk-python
|
|
6
6
|
Project-URL: Issues, https://github.com/stackitcloud/stackit-sdk-python/issues
|
|
@@ -49,7 +49,7 @@ class AddRoutingTableToAreaPayload(BaseModel):
|
|
|
49
49
|
id: Optional[UUID] = Field(default=None, description="Universally Unique Identifier (UUID).")
|
|
50
50
|
labels: Optional[Dict[str, Any]] = Field(
|
|
51
51
|
default=None,
|
|
52
|
-
description="Object that represents the labels of
|
|
52
|
+
description="Object that represents the labels as key-value pairs of a resource. Key constraints: - May contain an optional domain prefix separated by a slash (`/`). - Domain prefix must be less than or equal to 250 characters. - Domain prefix must ba a valid DNS subdomain containing only lowercase alphanumerics (`[a-z0-9]`) and dashes (`-`), separated by dots (`.`). - Length (excluding the domain prefix) must be between 1 and 63 characters. - Must begin and end with an alphanumerical character (`[a-z0-9A-Z]`). - May contain dashes (`-`), underscores (`_`), dots (`.`), and alphanumerics in between. - Keys starting with the prefix `stackit-` or having a domain prefix of `stackit.cloud` (including its subdomains, e.g., `*.stackit.cloud/`) are reserved for system use. Value constraints: - Must be less than or equal to 63 characters long (can be empty). - If not empty it must begin and end with an alphanumeric character (`[a-z0-9A-Z]`). - May contain dashes (`-`), underscores (`_`), dots (`.`), and alphanumerics in between. A resource can have a maximum of 64 labels. Reserved labels are excluded from this count. Providing a `null` value for a key will remove that key.",
|
|
53
53
|
)
|
|
54
54
|
name: Annotated[str, Field(strict=True, max_length=127)] = Field(
|
|
55
55
|
description="The name for a General Object. Matches Names and also UUIDs."
|
|
@@ -52,7 +52,7 @@ class Backup(BaseModel):
|
|
|
52
52
|
id: Optional[UUID] = Field(default=None, description="Universally Unique Identifier (UUID).")
|
|
53
53
|
labels: Optional[Dict[str, Any]] = Field(
|
|
54
54
|
default=None,
|
|
55
|
-
description="Object that represents the labels of
|
|
55
|
+
description="Object that represents the labels as key-value pairs of a resource. Key constraints: - May contain an optional domain prefix separated by a slash (`/`). - Domain prefix must be less than or equal to 250 characters. - Domain prefix must ba a valid DNS subdomain containing only lowercase alphanumerics (`[a-z0-9]`) and dashes (`-`), separated by dots (`.`). - Length (excluding the domain prefix) must be between 1 and 63 characters. - Must begin and end with an alphanumerical character (`[a-z0-9A-Z]`). - May contain dashes (`-`), underscores (`_`), dots (`.`), and alphanumerics in between. - Keys starting with the prefix `stackit-` or having a domain prefix of `stackit.cloud` (including its subdomains, e.g., `*.stackit.cloud/`) are reserved for system use. Value constraints: - Must be less than or equal to 63 characters long (can be empty). - If not empty it must begin and end with an alphanumeric character (`[a-z0-9A-Z]`). - May contain dashes (`-`), underscores (`_`), dots (`.`), and alphanumerics in between. A resource can have a maximum of 64 labels. Reserved labels are excluded from this count. Providing a `null` value for a key will remove that key.",
|
|
56
56
|
)
|
|
57
57
|
name: Optional[Annotated[str, Field(strict=True, max_length=127)]] = Field(
|
|
58
58
|
default=None, description="The name for a General Object. Matches Names and also UUIDs."
|
|
@@ -36,7 +36,7 @@ class CreateBackupPayload(BaseModel):
|
|
|
36
36
|
)
|
|
37
37
|
labels: Optional[Dict[str, Any]] = Field(
|
|
38
38
|
default=None,
|
|
39
|
-
description="Object that represents the labels of
|
|
39
|
+
description="Object that represents the labels as key-value pairs of a resource. Key constraints: - May contain an optional domain prefix separated by a slash (`/`). - Domain prefix must be less than or equal to 250 characters. - Domain prefix must ba a valid DNS subdomain containing only lowercase alphanumerics (`[a-z0-9]`) and dashes (`-`), separated by dots (`.`). - Length (excluding the domain prefix) must be between 1 and 63 characters. - Must begin and end with an alphanumerical character (`[a-z0-9A-Z]`). - May contain dashes (`-`), underscores (`_`), dots (`.`), and alphanumerics in between. - Keys starting with the prefix `stackit-` or having a domain prefix of `stackit.cloud` (including its subdomains, e.g., `*.stackit.cloud/`) are reserved for system use. Value constraints: - Must be less than or equal to 63 characters long (can be empty). - If not empty it must begin and end with an alphanumeric character (`[a-z0-9A-Z]`). - May contain dashes (`-`), underscores (`_`), dots (`.`), and alphanumerics in between. A resource can have a maximum of 64 labels. Reserved labels are excluded from this count. Providing a `null` value for a key will remove that key.",
|
|
40
40
|
)
|
|
41
41
|
name: Optional[Annotated[str, Field(strict=True, max_length=127)]] = Field(
|
|
42
42
|
default=None, description="The name for a General Object. Matches Names and also UUIDs."
|
|
@@ -58,7 +58,7 @@ class CreateImagePayload(BaseModel):
|
|
|
58
58
|
)
|
|
59
59
|
labels: Optional[Dict[str, Any]] = Field(
|
|
60
60
|
default=None,
|
|
61
|
-
description="Object that represents the labels of
|
|
61
|
+
description="Object that represents the labels as key-value pairs of a resource. Key constraints: - May contain an optional domain prefix separated by a slash (`/`). - Domain prefix must be less than or equal to 250 characters. - Domain prefix must ba a valid DNS subdomain containing only lowercase alphanumerics (`[a-z0-9]`) and dashes (`-`), separated by dots (`.`). - Length (excluding the domain prefix) must be between 1 and 63 characters. - Must begin and end with an alphanumerical character (`[a-z0-9A-Z]`). - May contain dashes (`-`), underscores (`_`), dots (`.`), and alphanumerics in between. - Keys starting with the prefix `stackit-` or having a domain prefix of `stackit.cloud` (including its subdomains, e.g., `*.stackit.cloud/`) are reserved for system use. Value constraints: - Must be less than or equal to 63 characters long (can be empty). - If not empty it must begin and end with an alphanumeric character (`[a-z0-9A-Z]`). - May contain dashes (`-`), underscores (`_`), dots (`.`), and alphanumerics in between. A resource can have a maximum of 64 labels. Reserved labels are excluded from this count. Providing a `null` value for a key will remove that key.",
|
|
62
62
|
)
|
|
63
63
|
min_disk_size: Optional[StrictInt] = Field(default=None, description="Size in Gigabyte.", alias="minDiskSize")
|
|
64
64
|
min_ram: Optional[StrictInt] = Field(default=None, description="Size in Megabyte.", alias="minRam")
|
{stackit_iaas-1.6.0 → stackit_iaas-1.7.0}/src/stackit/iaas/models/create_isolated_network_payload.py
RENAMED
|
@@ -35,7 +35,7 @@ class CreateIsolatedNetworkPayload(BaseModel):
|
|
|
35
35
|
ipv4: Optional[CreateNetworkIPv4] = None
|
|
36
36
|
labels: Optional[Dict[str, Any]] = Field(
|
|
37
37
|
default=None,
|
|
38
|
-
description="Object that represents the labels of
|
|
38
|
+
description="Object that represents the labels as key-value pairs of a resource. Key constraints: - May contain an optional domain prefix separated by a slash (`/`). - Domain prefix must be less than or equal to 250 characters. - Domain prefix must ba a valid DNS subdomain containing only lowercase alphanumerics (`[a-z0-9]`) and dashes (`-`), separated by dots (`.`). - Length (excluding the domain prefix) must be between 1 and 63 characters. - Must begin and end with an alphanumerical character (`[a-z0-9A-Z]`). - May contain dashes (`-`), underscores (`_`), dots (`.`), and alphanumerics in between. - Keys starting with the prefix `stackit-` or having a domain prefix of `stackit.cloud` (including its subdomains, e.g., `*.stackit.cloud/`) are reserved for system use. Value constraints: - Must be less than or equal to 63 characters long (can be empty). - If not empty it must begin and end with an alphanumeric character (`[a-z0-9A-Z]`). - May contain dashes (`-`), underscores (`_`), dots (`.`), and alphanumerics in between. A resource can have a maximum of 64 labels. Reserved labels are excluded from this count. Providing a `null` value for a key will remove that key.",
|
|
39
39
|
)
|
|
40
40
|
name: Annotated[str, Field(strict=True, max_length=127)] = Field(
|
|
41
41
|
description="The name for a General Object. Matches Names and also UUIDs."
|
{stackit_iaas-1.6.0 → stackit_iaas-1.7.0}/src/stackit/iaas/models/create_key_pair_payload.py
RENAMED
|
@@ -38,7 +38,7 @@ class CreateKeyPairPayload(BaseModel):
|
|
|
38
38
|
)
|
|
39
39
|
labels: Optional[Dict[str, Any]] = Field(
|
|
40
40
|
default=None,
|
|
41
|
-
description="Object that represents the labels of
|
|
41
|
+
description="Object that represents the labels as key-value pairs of a resource. Key constraints: - May contain an optional domain prefix separated by a slash (`/`). - Domain prefix must be less than or equal to 250 characters. - Domain prefix must ba a valid DNS subdomain containing only lowercase alphanumerics (`[a-z0-9]`) and dashes (`-`), separated by dots (`.`). - Length (excluding the domain prefix) must be between 1 and 63 characters. - Must begin and end with an alphanumerical character (`[a-z0-9A-Z]`). - May contain dashes (`-`), underscores (`_`), dots (`.`), and alphanumerics in between. - Keys starting with the prefix `stackit-` or having a domain prefix of `stackit.cloud` (including its subdomains, e.g., `*.stackit.cloud/`) are reserved for system use. Value constraints: - Must be less than or equal to 63 characters long (can be empty). - If not empty it must begin and end with an alphanumeric character (`[a-z0-9A-Z]`). - May contain dashes (`-`), underscores (`_`), dots (`.`), and alphanumerics in between. A resource can have a maximum of 64 labels. Reserved labels are excluded from this count. Providing a `null` value for a key will remove that key.",
|
|
42
42
|
)
|
|
43
43
|
name: Optional[Annotated[str, Field(strict=True, max_length=127)]] = Field(
|
|
44
44
|
default=None,
|
{stackit_iaas-1.6.0 → stackit_iaas-1.7.0}/src/stackit/iaas/models/create_network_area_payload.py
RENAMED
|
@@ -30,7 +30,7 @@ class CreateNetworkAreaPayload(BaseModel):
|
|
|
30
30
|
|
|
31
31
|
labels: Optional[Dict[str, Any]] = Field(
|
|
32
32
|
default=None,
|
|
33
|
-
description="Object that represents the labels of
|
|
33
|
+
description="Object that represents the labels as key-value pairs of a resource. Key constraints: - May contain an optional domain prefix separated by a slash (`/`). - Domain prefix must be less than or equal to 250 characters. - Domain prefix must ba a valid DNS subdomain containing only lowercase alphanumerics (`[a-z0-9]`) and dashes (`-`), separated by dots (`.`). - Length (excluding the domain prefix) must be between 1 and 63 characters. - Must begin and end with an alphanumerical character (`[a-z0-9A-Z]`). - May contain dashes (`-`), underscores (`_`), dots (`.`), and alphanumerics in between. - Keys starting with the prefix `stackit-` or having a domain prefix of `stackit.cloud` (including its subdomains, e.g., `*.stackit.cloud/`) are reserved for system use. Value constraints: - Must be less than or equal to 63 characters long (can be empty). - If not empty it must begin and end with an alphanumeric character (`[a-z0-9A-Z]`). - May contain dashes (`-`), underscores (`_`), dots (`.`), and alphanumerics in between. A resource can have a maximum of 64 labels. Reserved labels are excluded from this count. Providing a `null` value for a key will remove that key.",
|
|
34
34
|
)
|
|
35
35
|
name: StrictStr
|
|
36
36
|
__properties: ClassVar[List[str]] = ["labels", "name"]
|
|
@@ -33,12 +33,15 @@ class CreateNetworkPayload(BaseModel):
|
|
|
33
33
|
Object that represents the request body for a network create.
|
|
34
34
|
""" # noqa: E501
|
|
35
35
|
|
|
36
|
+
description: Optional[Annotated[str, Field(strict=True, max_length=255)]] = Field(
|
|
37
|
+
default=None, description="Description Object. Allows string up to 255 Characters."
|
|
38
|
+
)
|
|
36
39
|
dhcp: Optional[StrictBool] = Field(default=None, description="Enable or disable DHCP for a network.")
|
|
37
40
|
ipv4: Optional[CreateNetworkIPv4] = None
|
|
38
41
|
ipv6: Optional[CreateNetworkIPv6] = None
|
|
39
42
|
labels: Optional[Dict[str, Any]] = Field(
|
|
40
43
|
default=None,
|
|
41
|
-
description="Object that represents the labels of
|
|
44
|
+
description="Object that represents the labels as key-value pairs of a resource. Key constraints: - May contain an optional domain prefix separated by a slash (`/`). - Domain prefix must be less than or equal to 250 characters. - Domain prefix must ba a valid DNS subdomain containing only lowercase alphanumerics (`[a-z0-9]`) and dashes (`-`), separated by dots (`.`). - Length (excluding the domain prefix) must be between 1 and 63 characters. - Must begin and end with an alphanumerical character (`[a-z0-9A-Z]`). - May contain dashes (`-`), underscores (`_`), dots (`.`), and alphanumerics in between. - Keys starting with the prefix `stackit-` or having a domain prefix of `stackit.cloud` (including its subdomains, e.g., `*.stackit.cloud/`) are reserved for system use. Value constraints: - Must be less than or equal to 63 characters long (can be empty). - If not empty it must begin and end with an alphanumeric character (`[a-z0-9A-Z]`). - May contain dashes (`-`), underscores (`_`), dots (`.`), and alphanumerics in between. A resource can have a maximum of 64 labels. Reserved labels are excluded from this count. Providing a `null` value for a key will remove that key.",
|
|
42
45
|
)
|
|
43
46
|
name: Annotated[str, Field(strict=True, max_length=127)] = Field(
|
|
44
47
|
description="The name for a General Object. Matches Names and also UUIDs."
|
|
@@ -50,7 +53,17 @@ class CreateNetworkPayload(BaseModel):
|
|
|
50
53
|
default=None, description="Universally Unique Identifier (UUID).", alias="routingTableId"
|
|
51
54
|
)
|
|
52
55
|
vpc_id: Optional[UUID] = Field(default=None, description="The identifier (ID) of a STACKIT VPC.", alias="vpcId")
|
|
53
|
-
__properties: ClassVar[List[str]] = [
|
|
56
|
+
__properties: ClassVar[List[str]] = [
|
|
57
|
+
"description",
|
|
58
|
+
"dhcp",
|
|
59
|
+
"ipv4",
|
|
60
|
+
"ipv6",
|
|
61
|
+
"labels",
|
|
62
|
+
"name",
|
|
63
|
+
"routed",
|
|
64
|
+
"routingTableId",
|
|
65
|
+
"vpcId",
|
|
66
|
+
]
|
|
54
67
|
|
|
55
68
|
@field_validator("name")
|
|
56
69
|
def name_validate_regular_expression(cls, value):
|
|
@@ -148,6 +161,7 @@ class CreateNetworkPayload(BaseModel):
|
|
|
148
161
|
|
|
149
162
|
_obj = cls.model_validate(
|
|
150
163
|
{
|
|
164
|
+
"description": obj.get("description"),
|
|
151
165
|
"dhcp": obj.get("dhcp"),
|
|
152
166
|
"ipv4": CreateNetworkIPv4.from_dict(obj["ipv4"]) if obj.get("ipv4") is not None else None,
|
|
153
167
|
"ipv6": CreateNetworkIPv6.from_dict(obj["ipv6"]) if obj.get("ipv6") is not None else None,
|
|
@@ -17,6 +17,7 @@ from __future__ import annotations
|
|
|
17
17
|
import json
|
|
18
18
|
import pprint
|
|
19
19
|
import re # noqa: F401
|
|
20
|
+
from datetime import datetime
|
|
20
21
|
from typing import Any, ClassVar, Dict, List, Optional, Set
|
|
21
22
|
from uuid import UUID
|
|
22
23
|
|
|
@@ -42,6 +43,9 @@ class CreateNicPayload(BaseModel):
|
|
|
42
43
|
allowed_addresses: Optional[List[AllowedAddressesInner]] = Field(
|
|
43
44
|
default=None, description="A list of IPs or CIDR notations.", alias="allowedAddresses"
|
|
44
45
|
)
|
|
46
|
+
created_at: Optional[datetime] = Field(
|
|
47
|
+
default=None, description="Date-time when resource was created.", alias="createdAt"
|
|
48
|
+
)
|
|
45
49
|
description: Optional[Annotated[str, Field(strict=True, max_length=255)]] = Field(
|
|
46
50
|
default=None, description="Description Object. Allows string up to 255 Characters."
|
|
47
51
|
)
|
|
@@ -55,7 +59,7 @@ class CreateNicPayload(BaseModel):
|
|
|
55
59
|
)
|
|
56
60
|
labels: Optional[Dict[str, Any]] = Field(
|
|
57
61
|
default=None,
|
|
58
|
-
description="Object that represents the labels of
|
|
62
|
+
description="Object that represents the labels as key-value pairs of a resource. Key constraints: - May contain an optional domain prefix separated by a slash (`/`). - Domain prefix must be less than or equal to 250 characters. - Domain prefix must ba a valid DNS subdomain containing only lowercase alphanumerics (`[a-z0-9]`) and dashes (`-`), separated by dots (`.`). - Length (excluding the domain prefix) must be between 1 and 63 characters. - Must begin and end with an alphanumerical character (`[a-z0-9A-Z]`). - May contain dashes (`-`), underscores (`_`), dots (`.`), and alphanumerics in between. - Keys starting with the prefix `stackit-` or having a domain prefix of `stackit.cloud` (including its subdomains, e.g., `*.stackit.cloud/`) are reserved for system use. Value constraints: - Must be less than or equal to 63 characters long (can be empty). - If not empty it must begin and end with an alphanumeric character (`[a-z0-9A-Z]`). - May contain dashes (`-`), underscores (`_`), dots (`.`), and alphanumerics in between. A resource can have a maximum of 64 labels. Reserved labels are excluded from this count. Providing a `null` value for a key will remove that key.",
|
|
59
63
|
)
|
|
60
64
|
mac: Optional[Annotated[str, Field(strict=True)]] = Field(
|
|
61
65
|
default=None, description="Object that represents an MAC address."
|
|
@@ -76,8 +80,12 @@ class CreateNicPayload(BaseModel):
|
|
|
76
80
|
type: Optional[StrictStr] = Field(
|
|
77
81
|
default=None, description="Possible values: `server`, `metadata`, `gateway`, `none`."
|
|
78
82
|
)
|
|
83
|
+
updated_at: Optional[datetime] = Field(
|
|
84
|
+
default=None, description="Date-time when resource was last updated.", alias="updatedAt"
|
|
85
|
+
)
|
|
79
86
|
__properties: ClassVar[List[str]] = [
|
|
80
87
|
"allowedAddresses",
|
|
88
|
+
"createdAt",
|
|
81
89
|
"description",
|
|
82
90
|
"device",
|
|
83
91
|
"id",
|
|
@@ -91,8 +99,22 @@ class CreateNicPayload(BaseModel):
|
|
|
91
99
|
"securityGroups",
|
|
92
100
|
"status",
|
|
93
101
|
"type",
|
|
102
|
+
"updatedAt",
|
|
94
103
|
]
|
|
95
104
|
|
|
105
|
+
@field_validator("created_at", mode="before")
|
|
106
|
+
def created_at_change_year_zero_to_one(cls, value):
|
|
107
|
+
"""Workaround which prevents year 0 issue"""
|
|
108
|
+
if isinstance(value, str):
|
|
109
|
+
# Check for year "0000" at the beginning of the string
|
|
110
|
+
# This assumes common date formats like YYYY-MM-DDTHH:MM:SS+00:00 or YYYY-MM-DDTHH:MM:SSZ
|
|
111
|
+
if value.startswith("0000-01-01T") and re.match(
|
|
112
|
+
r"^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}(\+\d{2}:\d{2}|Z)$", value
|
|
113
|
+
):
|
|
114
|
+
# Workaround: Replace "0000" with "0001"
|
|
115
|
+
return "0001" + value[4:] # Take "0001" and append the rest of the string
|
|
116
|
+
return value
|
|
117
|
+
|
|
96
118
|
@field_validator("device")
|
|
97
119
|
def device_validate_regular_expression(cls, value):
|
|
98
120
|
"""Validates the regular expression"""
|
|
@@ -200,6 +222,19 @@ class CreateNicPayload(BaseModel):
|
|
|
200
222
|
)
|
|
201
223
|
return value
|
|
202
224
|
|
|
225
|
+
@field_validator("updated_at", mode="before")
|
|
226
|
+
def updated_at_change_year_zero_to_one(cls, value):
|
|
227
|
+
"""Workaround which prevents year 0 issue"""
|
|
228
|
+
if isinstance(value, str):
|
|
229
|
+
# Check for year "0000" at the beginning of the string
|
|
230
|
+
# This assumes common date formats like YYYY-MM-DDTHH:MM:SS+00:00 or YYYY-MM-DDTHH:MM:SSZ
|
|
231
|
+
if value.startswith("0000-01-01T") and re.match(
|
|
232
|
+
r"^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}(\+\d{2}:\d{2}|Z)$", value
|
|
233
|
+
):
|
|
234
|
+
# Workaround: Replace "0000" with "0001"
|
|
235
|
+
return "0001" + value[4:] # Take "0001" and append the rest of the string
|
|
236
|
+
return value
|
|
237
|
+
|
|
203
238
|
model_config = ConfigDict(
|
|
204
239
|
validate_by_name=True,
|
|
205
240
|
validate_by_alias=True,
|
|
@@ -235,15 +270,19 @@ class CreateNicPayload(BaseModel):
|
|
|
235
270
|
* OpenAPI `readOnly` fields are excluded.
|
|
236
271
|
* OpenAPI `readOnly` fields are excluded.
|
|
237
272
|
* OpenAPI `readOnly` fields are excluded.
|
|
273
|
+
* OpenAPI `readOnly` fields are excluded.
|
|
274
|
+
* OpenAPI `readOnly` fields are excluded.
|
|
238
275
|
"""
|
|
239
276
|
excluded_fields: Set[str] = set(
|
|
240
277
|
[
|
|
278
|
+
"created_at",
|
|
241
279
|
"device",
|
|
242
280
|
"id",
|
|
243
281
|
"mac",
|
|
244
282
|
"network_id",
|
|
245
283
|
"status",
|
|
246
284
|
"type",
|
|
285
|
+
"updated_at",
|
|
247
286
|
]
|
|
248
287
|
)
|
|
249
288
|
|
|
@@ -277,6 +316,7 @@ class CreateNicPayload(BaseModel):
|
|
|
277
316
|
if obj.get("allowedAddresses") is not None
|
|
278
317
|
else None
|
|
279
318
|
),
|
|
319
|
+
"createdAt": obj.get("createdAt"),
|
|
280
320
|
"description": obj.get("description"),
|
|
281
321
|
"device": obj.get("device"),
|
|
282
322
|
"id": obj.get("id"),
|
|
@@ -290,6 +330,7 @@ class CreateNicPayload(BaseModel):
|
|
|
290
330
|
"securityGroups": obj.get("securityGroups"),
|
|
291
331
|
"status": obj.get("status"),
|
|
292
332
|
"type": obj.get("type"),
|
|
333
|
+
"updatedAt": obj.get("updatedAt"),
|
|
293
334
|
}
|
|
294
335
|
)
|
|
295
336
|
return _obj
|
{stackit_iaas-1.6.0 → stackit_iaas-1.7.0}/src/stackit/iaas/models/create_public_ip_payload.py
RENAMED
|
@@ -17,6 +17,7 @@ from __future__ import annotations
|
|
|
17
17
|
import json
|
|
18
18
|
import pprint
|
|
19
19
|
import re # noqa: F401
|
|
20
|
+
from datetime import datetime
|
|
20
21
|
from typing import Any, ClassVar, Dict, List, Optional, Set
|
|
21
22
|
from uuid import UUID
|
|
22
23
|
|
|
@@ -30,18 +31,37 @@ class CreatePublicIPPayload(BaseModel):
|
|
|
30
31
|
Object that represents a public IP.
|
|
31
32
|
""" # noqa: E501
|
|
32
33
|
|
|
34
|
+
created_at: Optional[datetime] = Field(
|
|
35
|
+
default=None, description="Date-time when resource was created.", alias="createdAt"
|
|
36
|
+
)
|
|
33
37
|
id: Optional[UUID] = Field(default=None, description="Universally Unique Identifier (UUID).")
|
|
34
38
|
ip: Optional[Annotated[str, Field(strict=True)]] = Field(
|
|
35
39
|
default=None, description="String that represents an IPv4 address."
|
|
36
40
|
)
|
|
37
41
|
labels: Optional[Dict[str, Any]] = Field(
|
|
38
42
|
default=None,
|
|
39
|
-
description="Object that represents the labels of
|
|
43
|
+
description="Object that represents the labels as key-value pairs of a resource. Key constraints: - May contain an optional domain prefix separated by a slash (`/`). - Domain prefix must be less than or equal to 250 characters. - Domain prefix must ba a valid DNS subdomain containing only lowercase alphanumerics (`[a-z0-9]`) and dashes (`-`), separated by dots (`.`). - Length (excluding the domain prefix) must be between 1 and 63 characters. - Must begin and end with an alphanumerical character (`[a-z0-9A-Z]`). - May contain dashes (`-`), underscores (`_`), dots (`.`), and alphanumerics in between. - Keys starting with the prefix `stackit-` or having a domain prefix of `stackit.cloud` (including its subdomains, e.g., `*.stackit.cloud/`) are reserved for system use. Value constraints: - Must be less than or equal to 63 characters long (can be empty). - If not empty it must begin and end with an alphanumeric character (`[a-z0-9A-Z]`). - May contain dashes (`-`), underscores (`_`), dots (`.`), and alphanumerics in between. A resource can have a maximum of 64 labels. Reserved labels are excluded from this count. Providing a `null` value for a key will remove that key.",
|
|
40
44
|
)
|
|
41
45
|
network_interface: Optional[UUID] = Field(
|
|
42
46
|
default=None, description="Associate the public IP with a network interface (ID).", alias="networkInterface"
|
|
43
47
|
)
|
|
44
|
-
|
|
48
|
+
updated_at: Optional[datetime] = Field(
|
|
49
|
+
default=None, description="Date-time when resource was last updated.", alias="updatedAt"
|
|
50
|
+
)
|
|
51
|
+
__properties: ClassVar[List[str]] = ["createdAt", "id", "ip", "labels", "networkInterface", "updatedAt"]
|
|
52
|
+
|
|
53
|
+
@field_validator("created_at", mode="before")
|
|
54
|
+
def created_at_change_year_zero_to_one(cls, value):
|
|
55
|
+
"""Workaround which prevents year 0 issue"""
|
|
56
|
+
if isinstance(value, str):
|
|
57
|
+
# Check for year "0000" at the beginning of the string
|
|
58
|
+
# This assumes common date formats like YYYY-MM-DDTHH:MM:SS+00:00 or YYYY-MM-DDTHH:MM:SSZ
|
|
59
|
+
if value.startswith("0000-01-01T") and re.match(
|
|
60
|
+
r"^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}(\+\d{2}:\d{2}|Z)$", value
|
|
61
|
+
):
|
|
62
|
+
# Workaround: Replace "0000" with "0001"
|
|
63
|
+
return "0001" + value[4:] # Take "0001" and append the rest of the string
|
|
64
|
+
return value
|
|
45
65
|
|
|
46
66
|
@field_validator("id")
|
|
47
67
|
def id_validate_regular_expression(cls, value):
|
|
@@ -91,6 +111,19 @@ class CreatePublicIPPayload(BaseModel):
|
|
|
91
111
|
)
|
|
92
112
|
return value
|
|
93
113
|
|
|
114
|
+
@field_validator("updated_at", mode="before")
|
|
115
|
+
def updated_at_change_year_zero_to_one(cls, value):
|
|
116
|
+
"""Workaround which prevents year 0 issue"""
|
|
117
|
+
if isinstance(value, str):
|
|
118
|
+
# Check for year "0000" at the beginning of the string
|
|
119
|
+
# This assumes common date formats like YYYY-MM-DDTHH:MM:SS+00:00 or YYYY-MM-DDTHH:MM:SSZ
|
|
120
|
+
if value.startswith("0000-01-01T") and re.match(
|
|
121
|
+
r"^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}(\+\d{2}:\d{2}|Z)$", value
|
|
122
|
+
):
|
|
123
|
+
# Workaround: Replace "0000" with "0001"
|
|
124
|
+
return "0001" + value[4:] # Take "0001" and append the rest of the string
|
|
125
|
+
return value
|
|
126
|
+
|
|
94
127
|
model_config = ConfigDict(
|
|
95
128
|
validate_by_name=True,
|
|
96
129
|
validate_by_alias=True,
|
|
@@ -122,11 +155,15 @@ class CreatePublicIPPayload(BaseModel):
|
|
|
122
155
|
are ignored.
|
|
123
156
|
* OpenAPI `readOnly` fields are excluded.
|
|
124
157
|
* OpenAPI `readOnly` fields are excluded.
|
|
158
|
+
* OpenAPI `readOnly` fields are excluded.
|
|
159
|
+
* OpenAPI `readOnly` fields are excluded.
|
|
125
160
|
"""
|
|
126
161
|
excluded_fields: Set[str] = set(
|
|
127
162
|
[
|
|
163
|
+
"created_at",
|
|
128
164
|
"id",
|
|
129
165
|
"ip",
|
|
166
|
+
"updated_at",
|
|
130
167
|
]
|
|
131
168
|
)
|
|
132
169
|
|
|
@@ -153,10 +190,12 @@ class CreatePublicIPPayload(BaseModel):
|
|
|
153
190
|
|
|
154
191
|
_obj = cls.model_validate(
|
|
155
192
|
{
|
|
193
|
+
"createdAt": obj.get("createdAt"),
|
|
156
194
|
"id": obj.get("id"),
|
|
157
195
|
"ip": obj.get("ip"),
|
|
158
196
|
"labels": obj.get("labels"),
|
|
159
197
|
"networkInterface": obj.get("networkInterface"),
|
|
198
|
+
"updatedAt": obj.get("updatedAt"),
|
|
160
199
|
}
|
|
161
200
|
)
|
|
162
201
|
return _obj
|
{stackit_iaas-1.6.0 → stackit_iaas-1.7.0}/src/stackit/iaas/models/create_security_group_payload.py
RENAMED
|
@@ -42,7 +42,7 @@ class CreateSecurityGroupPayload(BaseModel):
|
|
|
42
42
|
id: Optional[UUID] = Field(default=None, description="Universally Unique Identifier (UUID).")
|
|
43
43
|
labels: Optional[Dict[str, Any]] = Field(
|
|
44
44
|
default=None,
|
|
45
|
-
description="Object that represents the labels of
|
|
45
|
+
description="Object that represents the labels as key-value pairs of a resource. Key constraints: - May contain an optional domain prefix separated by a slash (`/`). - Domain prefix must be less than or equal to 250 characters. - Domain prefix must ba a valid DNS subdomain containing only lowercase alphanumerics (`[a-z0-9]`) and dashes (`-`), separated by dots (`.`). - Length (excluding the domain prefix) must be between 1 and 63 characters. - Must begin and end with an alphanumerical character (`[a-z0-9A-Z]`). - May contain dashes (`-`), underscores (`_`), dots (`.`), and alphanumerics in between. - Keys starting with the prefix `stackit-` or having a domain prefix of `stackit.cloud` (including its subdomains, e.g., `*.stackit.cloud/`) are reserved for system use. Value constraints: - Must be less than or equal to 63 characters long (can be empty). - If not empty it must begin and end with an alphanumeric character (`[a-z0-9A-Z]`). - May contain dashes (`-`), underscores (`_`), dots (`.`), and alphanumerics in between. A resource can have a maximum of 64 labels. Reserved labels are excluded from this count. Providing a `null` value for a key will remove that key.",
|
|
46
46
|
)
|
|
47
47
|
name: Annotated[str, Field(strict=True, max_length=127)] = Field(
|
|
48
48
|
description="The name for a General Object. Matches Names and also UUIDs."
|
|
@@ -71,7 +71,7 @@ class CreateServerPayload(BaseModel):
|
|
|
71
71
|
)
|
|
72
72
|
labels: Optional[Dict[str, Any]] = Field(
|
|
73
73
|
default=None,
|
|
74
|
-
description="Object that represents the labels of
|
|
74
|
+
description="Object that represents the labels as key-value pairs of a resource. Key constraints: - May contain an optional domain prefix separated by a slash (`/`). - Domain prefix must be less than or equal to 250 characters. - Domain prefix must ba a valid DNS subdomain containing only lowercase alphanumerics (`[a-z0-9]`) and dashes (`-`), separated by dots (`.`). - Length (excluding the domain prefix) must be between 1 and 63 characters. - Must begin and end with an alphanumerical character (`[a-z0-9A-Z]`). - May contain dashes (`-`), underscores (`_`), dots (`.`), and alphanumerics in between. - Keys starting with the prefix `stackit-` or having a domain prefix of `stackit.cloud` (including its subdomains, e.g., `*.stackit.cloud/`) are reserved for system use. Value constraints: - Must be less than or equal to 63 characters long (can be empty). - If not empty it must begin and end with an alphanumeric character (`[a-z0-9A-Z]`). - May contain dashes (`-`), underscores (`_`), dots (`.`), and alphanumerics in between. A resource can have a maximum of 64 labels. Reserved labels are excluded from this count. Providing a `null` value for a key will remove that key.",
|
|
75
75
|
)
|
|
76
76
|
launched_at: Optional[datetime] = Field(
|
|
77
77
|
default=None, description="Date-time when resource was launched.", alias="launchedAt"
|
{stackit_iaas-1.6.0 → stackit_iaas-1.7.0}/src/stackit/iaas/models/create_snapshot_payload.py
RENAMED
|
@@ -43,7 +43,7 @@ class CreateSnapshotPayload(BaseModel):
|
|
|
43
43
|
id: Optional[UUID] = Field(default=None, description="Universally Unique Identifier (UUID).")
|
|
44
44
|
labels: Optional[Dict[str, Any]] = Field(
|
|
45
45
|
default=None,
|
|
46
|
-
description="Object that represents the labels of
|
|
46
|
+
description="Object that represents the labels as key-value pairs of a resource. Key constraints: - May contain an optional domain prefix separated by a slash (`/`). - Domain prefix must be less than or equal to 250 characters. - Domain prefix must ba a valid DNS subdomain containing only lowercase alphanumerics (`[a-z0-9]`) and dashes (`-`), separated by dots (`.`). - Length (excluding the domain prefix) must be between 1 and 63 characters. - Must begin and end with an alphanumerical character (`[a-z0-9A-Z]`). - May contain dashes (`-`), underscores (`_`), dots (`.`), and alphanumerics in between. - Keys starting with the prefix `stackit-` or having a domain prefix of `stackit.cloud` (including its subdomains, e.g., `*.stackit.cloud/`) are reserved for system use. Value constraints: - Must be less than or equal to 63 characters long (can be empty). - If not empty it must begin and end with an alphanumeric character (`[a-z0-9A-Z]`). - May contain dashes (`-`), underscores (`_`), dots (`.`), and alphanumerics in between. A resource can have a maximum of 64 labels. Reserved labels are excluded from this count. Providing a `null` value for a key will remove that key.",
|
|
47
47
|
)
|
|
48
48
|
name: Optional[Annotated[str, Field(strict=True, max_length=127)]] = Field(
|
|
49
49
|
default=None, description="The name for a General Object. Matches Names and also UUIDs."
|
|
@@ -59,7 +59,7 @@ class CreateVolumePayload(BaseModel):
|
|
|
59
59
|
image_config: Optional[ImageConfig] = Field(default=None, alias="imageConfig")
|
|
60
60
|
labels: Optional[Dict[str, Any]] = Field(
|
|
61
61
|
default=None,
|
|
62
|
-
description="Object that represents the labels of
|
|
62
|
+
description="Object that represents the labels as key-value pairs of a resource. Key constraints: - May contain an optional domain prefix separated by a slash (`/`). - Domain prefix must be less than or equal to 250 characters. - Domain prefix must ba a valid DNS subdomain containing only lowercase alphanumerics (`[a-z0-9]`) and dashes (`-`), separated by dots (`.`). - Length (excluding the domain prefix) must be between 1 and 63 characters. - Must begin and end with an alphanumerical character (`[a-z0-9A-Z]`). - May contain dashes (`-`), underscores (`_`), dots (`.`), and alphanumerics in between. - Keys starting with the prefix `stackit-` or having a domain prefix of `stackit.cloud` (including its subdomains, e.g., `*.stackit.cloud/`) are reserved for system use. Value constraints: - Must be less than or equal to 63 characters long (can be empty). - If not empty it must begin and end with an alphanumeric character (`[a-z0-9A-Z]`). - May contain dashes (`-`), underscores (`_`), dots (`.`), and alphanumerics in between. A resource can have a maximum of 64 labels. Reserved labels are excluded from this count. Providing a `null` value for a key will remove that key.",
|
|
63
63
|
)
|
|
64
64
|
name: Optional[Annotated[str, Field(strict=True, max_length=127)]] = Field(
|
|
65
65
|
default=None, description="The name for a General Object. Matches Names and also UUIDs."
|
|
@@ -33,6 +33,13 @@ class DestinationCIDRv4(BaseModel):
|
|
|
33
33
|
value: Annotated[str, Field(strict=True)] = Field(description="An CIDRv4 string.")
|
|
34
34
|
__properties: ClassVar[List[str]] = ["type", "value"]
|
|
35
35
|
|
|
36
|
+
@field_validator("type")
|
|
37
|
+
def type_validate_enum(cls, value):
|
|
38
|
+
"""Validates the enum"""
|
|
39
|
+
if value not in set(["cidrv4"]):
|
|
40
|
+
raise ValueError("must be one of enum values ('cidrv4')")
|
|
41
|
+
return value
|
|
42
|
+
|
|
36
43
|
@field_validator("value")
|
|
37
44
|
def value_validate_regular_expression(cls, value):
|
|
38
45
|
"""Validates the regular expression"""
|
|
@@ -33,6 +33,13 @@ class DestinationCIDRv6(BaseModel):
|
|
|
33
33
|
value: Annotated[str, Field(strict=True)] = Field(description="An CIDRv6 string.")
|
|
34
34
|
__properties: ClassVar[List[str]] = ["type", "value"]
|
|
35
35
|
|
|
36
|
+
@field_validator("type")
|
|
37
|
+
def type_validate_enum(cls, value):
|
|
38
|
+
"""Validates the enum"""
|
|
39
|
+
if value not in set(["cidrv6"]):
|
|
40
|
+
raise ValueError("must be one of enum values ('cidrv6')")
|
|
41
|
+
return value
|
|
42
|
+
|
|
36
43
|
@field_validator("value")
|
|
37
44
|
def value_validate_regular_expression(cls, value):
|
|
38
45
|
"""Validates the regular expression"""
|
|
@@ -58,7 +58,7 @@ class Image(BaseModel):
|
|
|
58
58
|
)
|
|
59
59
|
labels: Optional[Dict[str, Any]] = Field(
|
|
60
60
|
default=None,
|
|
61
|
-
description="Object that represents the labels of
|
|
61
|
+
description="Object that represents the labels as key-value pairs of a resource. Key constraints: - May contain an optional domain prefix separated by a slash (`/`). - Domain prefix must be less than or equal to 250 characters. - Domain prefix must ba a valid DNS subdomain containing only lowercase alphanumerics (`[a-z0-9]`) and dashes (`-`), separated by dots (`.`). - Length (excluding the domain prefix) must be between 1 and 63 characters. - Must begin and end with an alphanumerical character (`[a-z0-9A-Z]`). - May contain dashes (`-`), underscores (`_`), dots (`.`), and alphanumerics in between. - Keys starting with the prefix `stackit-` or having a domain prefix of `stackit.cloud` (including its subdomains, e.g., `*.stackit.cloud/`) are reserved for system use. Value constraints: - Must be less than or equal to 63 characters long (can be empty). - If not empty it must begin and end with an alphanumeric character (`[a-z0-9A-Z]`). - May contain dashes (`-`), underscores (`_`), dots (`.`), and alphanumerics in between. A resource can have a maximum of 64 labels. Reserved labels are excluded from this count. Providing a `null` value for a key will remove that key.",
|
|
62
62
|
)
|
|
63
63
|
min_disk_size: Optional[StrictInt] = Field(default=None, description="Size in Gigabyte.", alias="minDiskSize")
|
|
64
64
|
min_ram: Optional[StrictInt] = Field(default=None, description="Size in Megabyte.", alias="minRam")
|
{stackit_iaas-1.6.0 → stackit_iaas-1.7.0}/src/stackit/iaas/models/image_from_volume_payload.py
RENAMED
|
@@ -39,13 +39,16 @@ class ImageFromVolumePayload(BaseModel):
|
|
|
39
39
|
disk_format: StrictStr = Field(
|
|
40
40
|
description="Object that represents a disk format. Possible values: `raw`, `qcow2`, `iso`.", alias="diskFormat"
|
|
41
41
|
)
|
|
42
|
+
force: Optional[StrictBool] = Field(
|
|
43
|
+
default=False, description="When true the image is force created from a volume is currently being used."
|
|
44
|
+
)
|
|
42
45
|
name: Annotated[str, Field(strict=True, max_length=127)] = Field(
|
|
43
46
|
description="The name for a General Object. Matches Names and also UUIDs."
|
|
44
47
|
)
|
|
45
48
|
protected: Optional[StrictBool] = Field(
|
|
46
49
|
default=False, description="When true the created image is prevented from being deleted."
|
|
47
50
|
)
|
|
48
|
-
__properties: ClassVar[List[str]] = ["diskFormat", "name", "protected"]
|
|
51
|
+
__properties: ClassVar[List[str]] = ["diskFormat", "force", "name", "protected"]
|
|
49
52
|
|
|
50
53
|
@field_validator("name")
|
|
51
54
|
def name_validate_regular_expression(cls, value):
|
|
@@ -108,6 +111,7 @@ class ImageFromVolumePayload(BaseModel):
|
|
|
108
111
|
_obj = cls.model_validate(
|
|
109
112
|
{
|
|
110
113
|
"diskFormat": obj.get("diskFormat"),
|
|
114
|
+
"force": obj.get("force") if obj.get("force") is not None else False,
|
|
111
115
|
"name": obj.get("name"),
|
|
112
116
|
"protected": obj.get("protected") if obj.get("protected") is not None else False,
|
|
113
117
|
}
|
|
@@ -38,7 +38,7 @@ class Keypair(BaseModel):
|
|
|
38
38
|
)
|
|
39
39
|
labels: Optional[Dict[str, Any]] = Field(
|
|
40
40
|
default=None,
|
|
41
|
-
description="Object that represents the labels of
|
|
41
|
+
description="Object that represents the labels as key-value pairs of a resource. Key constraints: - May contain an optional domain prefix separated by a slash (`/`). - Domain prefix must be less than or equal to 250 characters. - Domain prefix must ba a valid DNS subdomain containing only lowercase alphanumerics (`[a-z0-9]`) and dashes (`-`), separated by dots (`.`). - Length (excluding the domain prefix) must be between 1 and 63 characters. - Must begin and end with an alphanumerical character (`[a-z0-9A-Z]`). - May contain dashes (`-`), underscores (`_`), dots (`.`), and alphanumerics in between. - Keys starting with the prefix `stackit-` or having a domain prefix of `stackit.cloud` (including its subdomains, e.g., `*.stackit.cloud/`) are reserved for system use. Value constraints: - Must be less than or equal to 63 characters long (can be empty). - If not empty it must begin and end with an alphanumeric character (`[a-z0-9A-Z]`). - May contain dashes (`-`), underscores (`_`), dots (`.`), and alphanumerics in between. A resource can have a maximum of 64 labels. Reserved labels are excluded from this count. Providing a `null` value for a key will remove that key.",
|
|
42
42
|
)
|
|
43
43
|
name: Optional[Annotated[str, Field(strict=True, max_length=127)]] = Field(
|
|
44
44
|
default=None,
|
|
@@ -30,7 +30,7 @@ from pydantic import (
|
|
|
30
30
|
field_validator,
|
|
31
31
|
)
|
|
32
32
|
from pydantic_core import to_jsonable_python
|
|
33
|
-
from typing_extensions import Self
|
|
33
|
+
from typing_extensions import Annotated, Self
|
|
34
34
|
|
|
35
35
|
from stackit.iaas.models.network_ipv4 import NetworkIPv4
|
|
36
36
|
from stackit.iaas.models.network_ipv6 import NetworkIPv6
|
|
@@ -44,13 +44,16 @@ class Network(BaseModel):
|
|
|
44
44
|
created_at: Optional[datetime] = Field(
|
|
45
45
|
default=None, description="Date-time when resource was created.", alias="createdAt"
|
|
46
46
|
)
|
|
47
|
+
description: Optional[Annotated[str, Field(strict=True, max_length=255)]] = Field(
|
|
48
|
+
default=None, description="Description Object. Allows string up to 255 Characters."
|
|
49
|
+
)
|
|
47
50
|
dhcp: Optional[StrictBool] = Field(default=None, description="Enable or disable DHCP for a network.")
|
|
48
51
|
id: UUID = Field(description="Universally Unique Identifier (UUID).")
|
|
49
52
|
ipv4: Optional[NetworkIPv4] = None
|
|
50
53
|
ipv6: Optional[NetworkIPv6] = None
|
|
51
54
|
labels: Optional[Dict[str, Any]] = Field(
|
|
52
55
|
default=None,
|
|
53
|
-
description="Object that represents the labels of
|
|
56
|
+
description="Object that represents the labels as key-value pairs of a resource. Key constraints: - May contain an optional domain prefix separated by a slash (`/`). - Domain prefix must be less than or equal to 250 characters. - Domain prefix must ba a valid DNS subdomain containing only lowercase alphanumerics (`[a-z0-9]`) and dashes (`-`), separated by dots (`.`). - Length (excluding the domain prefix) must be between 1 and 63 characters. - Must begin and end with an alphanumerical character (`[a-z0-9A-Z]`). - May contain dashes (`-`), underscores (`_`), dots (`.`), and alphanumerics in between. - Keys starting with the prefix `stackit-` or having a domain prefix of `stackit.cloud` (including its subdomains, e.g., `*.stackit.cloud/`) are reserved for system use. Value constraints: - Must be less than or equal to 63 characters long (can be empty). - If not empty it must begin and end with an alphanumeric character (`[a-z0-9A-Z]`). - May contain dashes (`-`), underscores (`_`), dots (`.`), and alphanumerics in between. A resource can have a maximum of 64 labels. Reserved labels are excluded from this count. Providing a `null` value for a key will remove that key.",
|
|
54
57
|
)
|
|
55
58
|
name: StrictStr
|
|
56
59
|
routed: Optional[StrictBool] = Field(
|
|
@@ -68,6 +71,7 @@ class Network(BaseModel):
|
|
|
68
71
|
vpc_id: Optional[UUID] = Field(default=None, description="The identifier (ID) of a STACKIT VPC.", alias="vpcId")
|
|
69
72
|
__properties: ClassVar[List[str]] = [
|
|
70
73
|
"createdAt",
|
|
74
|
+
"description",
|
|
71
75
|
"dhcp",
|
|
72
76
|
"id",
|
|
73
77
|
"ipv4",
|
|
@@ -213,6 +217,7 @@ class Network(BaseModel):
|
|
|
213
217
|
_obj = cls.model_validate(
|
|
214
218
|
{
|
|
215
219
|
"createdAt": obj.get("createdAt"),
|
|
220
|
+
"description": obj.get("description"),
|
|
216
221
|
"dhcp": obj.get("dhcp"),
|
|
217
222
|
"id": obj.get("id"),
|
|
218
223
|
"ipv4": NetworkIPv4.from_dict(obj["ipv4"]) if obj.get("ipv4") is not None else None,
|
|
@@ -37,7 +37,7 @@ class NetworkArea(BaseModel):
|
|
|
37
37
|
id: Optional[UUID] = Field(default=None, description="Universally Unique Identifier (UUID).")
|
|
38
38
|
labels: Optional[Dict[str, Any]] = Field(
|
|
39
39
|
default=None,
|
|
40
|
-
description="Object that represents the labels of
|
|
40
|
+
description="Object that represents the labels as key-value pairs of a resource. Key constraints: - May contain an optional domain prefix separated by a slash (`/`). - Domain prefix must be less than or equal to 250 characters. - Domain prefix must ba a valid DNS subdomain containing only lowercase alphanumerics (`[a-z0-9]`) and dashes (`-`), separated by dots (`.`). - Length (excluding the domain prefix) must be between 1 and 63 characters. - Must begin and end with an alphanumerical character (`[a-z0-9A-Z]`). - May contain dashes (`-`), underscores (`_`), dots (`.`), and alphanumerics in between. - Keys starting with the prefix `stackit-` or having a domain prefix of `stackit.cloud` (including its subdomains, e.g., `*.stackit.cloud/`) are reserved for system use. Value constraints: - Must be less than or equal to 63 characters long (can be empty). - If not empty it must begin and end with an alphanumeric character (`[a-z0-9A-Z]`). - May contain dashes (`-`), underscores (`_`), dots (`.`), and alphanumerics in between. A resource can have a maximum of 64 labels. Reserved labels are excluded from this count. Providing a `null` value for a key will remove that key.",
|
|
41
41
|
)
|
|
42
42
|
name: StrictStr
|
|
43
43
|
project_count: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(
|