waldur-api-client 7.7.5__py3-none-any.whl → 7.7.6__py3-none-any.whl

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.

Potentially problematic release.


This version of waldur-api-client might be problematic. Click here for more details.

Files changed (122) hide show
  1. waldur_api_client/api/marketplace_offering_users/marketplace_offering_users_checklist_retrieve.py +154 -0
  2. waldur_api_client/api/marketplace_offering_users/marketplace_offering_users_checklist_review_retrieve.py +154 -0
  3. waldur_api_client/api/marketplace_offering_users/marketplace_offering_users_completion_review_status_retrieve.py +154 -0
  4. waldur_api_client/api/marketplace_offering_users/marketplace_offering_users_completion_status_retrieve.py +154 -0
  5. waldur_api_client/api/marketplace_offering_users/marketplace_offering_users_submit_answers.py +179 -0
  6. waldur_api_client/api/marketplace_robot_accounts/marketplace_robot_accounts_list.py +23 -0
  7. waldur_api_client/api/marketplace_robot_accounts/marketplace_robot_accounts_retrieve.py +30 -1
  8. waldur_api_client/api/marketplace_service_providers/marketplace_service_providers_project_service_accounts_list.py +276 -0
  9. waldur_api_client/api/marketplace_service_providers/service_provider_compliance_overview.py +189 -0
  10. waldur_api_client/api/marketplace_service_providers/service_provider_offering_users_compliance.py +222 -0
  11. waldur_api_client/api/public_maintenance_announcements/__init__.py +1 -0
  12. waldur_api_client/api/public_maintenance_announcements/public_maintenance_announcements_count.py +325 -0
  13. waldur_api_client/api/public_maintenance_announcements/public_maintenance_announcements_list.py +328 -0
  14. waldur_api_client/api/public_maintenance_announcements/public_maintenance_announcements_retrieve.py +144 -0
  15. waldur_api_client/models/__init__.py +56 -4
  16. waldur_api_client/models/admin_announcement.py +109 -1
  17. waldur_api_client/models/admin_announcement_maintenance_affected_offerings_item.py +103 -0
  18. waldur_api_client/models/admin_announcements_list_field_item.py +8 -0
  19. waldur_api_client/models/admin_announcements_retrieve_field_item.py +8 -0
  20. waldur_api_client/models/azure_sql_server_create_order_attributes.py +80 -0
  21. waldur_api_client/models/azure_virtual_machine_create_order_attributes.py +96 -0
  22. waldur_api_client/models/basic_user.py +30 -21
  23. waldur_api_client/models/booking_offerings_list_field_item.py +1 -0
  24. waldur_api_client/models/booking_offerings_retrieve_field_item.py +1 -0
  25. waldur_api_client/models/create_router.py +1 -1
  26. waldur_api_client/models/create_router_request.py +1 -1
  27. waldur_api_client/models/customer.py +0 -30
  28. waldur_api_client/models/customers_list_field_item.py +0 -2
  29. waldur_api_client/models/customers_retrieve_field_item.py +0 -2
  30. waldur_api_client/models/fingerprint.py +19 -17
  31. waldur_api_client/models/instance_flavor_change_request.py +1 -1
  32. waldur_api_client/models/marketplace_managed_rancher_create_order_attributes.py +144 -0
  33. waldur_api_client/models/marketplace_provider_offerings_list_customer_service_accounts_retrieve_field_item.py +1 -0
  34. waldur_api_client/models/marketplace_provider_offerings_list_field_item.py +1 -0
  35. waldur_api_client/models/marketplace_provider_offerings_list_project_service_accounts_retrieve_field_item.py +1 -0
  36. waldur_api_client/models/marketplace_provider_offerings_retrieve_field_item.py +1 -0
  37. waldur_api_client/models/marketplace_provider_offerings_stats_retrieve_field_item.py +1 -0
  38. waldur_api_client/models/marketplace_provider_offerings_user_has_resource_access_retrieve_field_item.py +1 -0
  39. waldur_api_client/models/marketplace_public_offerings_list_field_item.py +1 -0
  40. waldur_api_client/models/marketplace_public_offerings_retrieve_field_item.py +1 -0
  41. waldur_api_client/models/marketplace_rancher_create_order_attributes.py +142 -0
  42. waldur_api_client/models/marketplace_robot_accounts_list_field_item.py +32 -0
  43. waldur_api_client/models/marketplace_robot_accounts_retrieve_field_item.py +32 -0
  44. waldur_api_client/models/offering.py +9 -0
  45. waldur_api_client/models/offering_create.py +8 -0
  46. waldur_api_client/models/open_stack_backend_instance.py +2 -2
  47. waldur_api_client/models/open_stack_backend_volumes.py +3 -3
  48. waldur_api_client/models/open_stack_backup.py +1 -1
  49. waldur_api_client/models/open_stack_backup_restoration.py +8 -5
  50. waldur_api_client/models/open_stack_backup_restoration_request.py +28 -3
  51. waldur_api_client/models/open_stack_fixed_ip.py +2 -2
  52. waldur_api_client/models/open_stack_fixed_ip_request.py +2 -2
  53. waldur_api_client/models/open_stack_floating_ip.py +5 -4
  54. waldur_api_client/models/open_stack_instance.py +17 -15
  55. waldur_api_client/models/open_stack_instance_allowed_address_pairs_update_request.py +3 -2
  56. waldur_api_client/models/open_stack_instance_availability_zone.py +1 -1
  57. waldur_api_client/models/open_stack_instance_create_order_attributes.py +280 -0
  58. waldur_api_client/models/open_stack_instance_request.py +4 -3
  59. waldur_api_client/models/open_stack_instance_security_groups_update_request.py +1 -1
  60. waldur_api_client/models/open_stack_nested_floating_ip.py +3 -3
  61. waldur_api_client/models/open_stack_nested_instance.py +1 -1
  62. waldur_api_client/models/open_stack_nested_port.py +5 -5
  63. waldur_api_client/models/open_stack_nested_port_request.py +1 -1
  64. waldur_api_client/models/open_stack_nested_security_group.py +1 -53
  65. waldur_api_client/models/open_stack_nested_security_group_request.py +59 -0
  66. waldur_api_client/models/open_stack_nested_sub_net.py +4 -4
  67. waldur_api_client/models/open_stack_nested_sub_net_request.py +4 -4
  68. waldur_api_client/models/open_stack_nested_volume.py +3 -3
  69. waldur_api_client/models/open_stack_nested_volume_request.py +3 -3
  70. waldur_api_client/models/open_stack_network.py +3 -3
  71. waldur_api_client/models/open_stack_port.py +10 -9
  72. waldur_api_client/models/open_stack_port_ip_update_request.py +2 -2
  73. waldur_api_client/models/open_stack_port_request.py +3 -3
  74. waldur_api_client/models/open_stack_router.py +2 -2
  75. waldur_api_client/models/open_stack_router_interface_request.py +4 -2
  76. waldur_api_client/models/open_stack_security_group_rule_create.py +6 -5
  77. waldur_api_client/models/open_stack_security_group_rule_create_request.py +6 -5
  78. waldur_api_client/models/open_stack_security_group_rule_update_request.py +6 -5
  79. waldur_api_client/models/open_stack_server_group.py +2 -1
  80. waldur_api_client/models/open_stack_server_group_request.py +2 -1
  81. waldur_api_client/models/open_stack_snapshot.py +2 -2
  82. waldur_api_client/models/open_stack_snapshot_restoration.py +1 -1
  83. waldur_api_client/models/open_stack_sub_net.py +5 -5
  84. waldur_api_client/models/open_stack_sub_net_request.py +2 -2
  85. waldur_api_client/models/open_stack_tenant.py +3 -3
  86. waldur_api_client/models/open_stack_tenant_create_order_attributes.py +109 -0
  87. waldur_api_client/models/open_stack_volume.py +9 -9
  88. waldur_api_client/models/open_stack_volume_create_order_attributes.py +152 -0
  89. waldur_api_client/models/open_stack_volume_request.py +1 -1
  90. waldur_api_client/models/order_create_request.py +165 -4
  91. waldur_api_client/models/patched_open_stack_instance_request.py +4 -3
  92. waldur_api_client/models/patched_open_stack_server_group_request.py +2 -1
  93. waldur_api_client/models/patched_open_stack_sub_net_request.py +2 -2
  94. waldur_api_client/models/patched_open_stack_volume_request.py +1 -1
  95. waldur_api_client/models/permission_request.py +2 -2
  96. waldur_api_client/models/provider_offering_details.py +9 -0
  97. waldur_api_client/models/public_maintenance_announcement.py +217 -0
  98. waldur_api_client/models/public_maintenance_announcement_state_enum.py +10 -0
  99. waldur_api_client/models/public_maintenance_announcements_count_o_item.py +15 -0
  100. waldur_api_client/models/public_maintenance_announcements_count_state_item.py +12 -0
  101. waldur_api_client/models/public_maintenance_announcements_list_o_item.py +15 -0
  102. waldur_api_client/models/public_maintenance_announcements_list_state_item.py +12 -0
  103. waldur_api_client/models/public_offering_details.py +9 -0
  104. waldur_api_client/models/rancher_cluster_security_group_rule.py +5 -4
  105. waldur_api_client/models/rancher_cluster_security_group_rule_request.py +5 -4
  106. waldur_api_client/models/remote_project_update_request.py +2 -2
  107. waldur_api_client/models/robot_account_details.py +226 -144
  108. waldur_api_client/models/service_provider_compliance_overview.py +122 -0
  109. waldur_api_client/models/service_provider_offering_user_compliance.py +179 -0
  110. waldur_api_client/models/service_provider_offering_user_compliance_state_enum.py +17 -0
  111. waldur_api_client/models/slurm_invoices_slurm_package_create_order_attributes.py +72 -0
  112. waldur_api_client/models/v_mware_virtual_machine_create_order_attributes.py +225 -0
  113. waldur_api_client/models/v_mware_virtual_machine_create_order_attributes_guest_os_type_1.py +155 -0
  114. waldur_api_client/models/v_mware_virtual_machine_create_order_attributes_guest_os_type_2_type_1.py +155 -0
  115. waldur_api_client/models/v_mware_virtual_machine_create_order_attributes_guest_os_type_3_type_1.py +155 -0
  116. waldur_api_client/models/volume_attach_request.py +1 -1
  117. {waldur_api_client-7.7.5.dist-info → waldur_api_client-7.7.6.dist-info}/METADATA +1 -1
  118. {waldur_api_client-7.7.5.dist-info → waldur_api_client-7.7.6.dist-info}/RECORD +120 -85
  119. waldur_api_client/models/nested_security_group_rule.py +0 -222
  120. waldur_api_client/models/nested_security_group_rule_request.py +0 -187
  121. {waldur_api_client-7.7.5.dist-info → waldur_api_client-7.7.6.dist-info}/LICENSE +0 -0
  122. {waldur_api_client-7.7.5.dist-info → waldur_api_client-7.7.6.dist-info}/WHEEL +0 -0
@@ -15,10 +15,10 @@ class OpenStackNestedSubNetRequest:
15
15
  Attributes:
16
16
  name (str):
17
17
  description (Union[Unset, str]):
18
- cidr (Union[Unset, str]):
19
- gateway_ip (Union[None, Unset, str]):
20
- ip_version (Union[Unset, int]):
21
- enable_dhcp (Union[Unset, bool]):
18
+ cidr (Union[Unset, str]): IPv4 network address in CIDR format (e.g. 192.168.0.0/24)
19
+ gateway_ip (Union[None, Unset, str]): IP address of the gateway for this subnet
20
+ ip_version (Union[Unset, int]): IP protocol version (4 or 6)
21
+ enable_dhcp (Union[Unset, bool]): If True, DHCP service will be enabled on this subnet
22
22
  """
23
23
 
24
24
  name: str
@@ -17,13 +17,13 @@ class OpenStackNestedVolume:
17
17
  url (Union[Unset, str]):
18
18
  uuid (Union[Unset, UUID]):
19
19
  name (Union[Unset, str]):
20
- image_name (Union[Unset, str]):
20
+ image_name (Union[Unset, str]): Name of the image this volume was created from
21
21
  state (Union[Unset, str]):
22
- bootable (Union[Unset, bool]):
22
+ bootable (Union[Unset, bool]): Indicates if this volume can be used to boot an instance
23
23
  size (Union[Unset, int]): Size in MiB
24
24
  device (Union[Unset, str]): Name of volume as instance device e.g. /dev/vdb.
25
25
  resource_type (Union[Unset, str]):
26
- type_ (Union[None, Unset, str]):
26
+ type_ (Union[None, Unset, str]): Type of the volume (e.g. SSD, HDD)
27
27
  type_name (Union[Unset, str]):
28
28
  marketplace_resource_uuid (Union[None, Unset, str]):
29
29
  """
@@ -14,10 +14,10 @@ class OpenStackNestedVolumeRequest:
14
14
  """
15
15
  Attributes:
16
16
  size (int): Size in MiB
17
- image_name (Union[Unset, str]):
18
- bootable (Union[Unset, bool]):
17
+ image_name (Union[Unset, str]): Name of the image this volume was created from
18
+ bootable (Union[Unset, bool]): Indicates if this volume can be used to boot an instance
19
19
  device (Union[Unset, str]): Name of volume as instance device e.g. /dev/vdb.
20
- type_ (Union[None, Unset, str]):
20
+ type_ (Union[None, Unset, str]): Type of the volume (e.g. SSD, HDD)
21
21
  """
22
22
 
23
23
  size: int
@@ -49,11 +49,11 @@ class OpenStackNetwork:
49
49
  modified (Union[Unset, datetime.datetime]):
50
50
  backend_id (Union[Unset, str]):
51
51
  access_url (Union[None, Unset, str]):
52
- tenant (Union[Unset, str]):
52
+ tenant (Union[Unset, str]): OpenStack tenant this network belongs to
53
53
  tenant_name (Union[Unset, str]):
54
54
  tenant_uuid (Union[Unset, UUID]):
55
- is_external (Union[Unset, bool]):
56
- type_ (Union[Unset, str]):
55
+ is_external (Union[Unset, bool]): Defines whether this network is external (public) or internal (private)
56
+ type_ (Union[Unset, str]): Network type, such as local, flat, vlan, vxlan, or gre
57
57
  subnets (Union[Unset, list['OpenStackNestedSubNet']]):
58
58
  mtu (Union[None, Unset, int]): The maximum transmission unit (MTU) value to address fragmentation.
59
59
  rbac_policies (Union[Unset, list['NetworkRBACPolicy']]):
@@ -48,24 +48,25 @@ class OpenStackPort:
48
48
  state (Union[Unset, CoreStates]):
49
49
  created (Union[Unset, datetime.datetime]):
50
50
  modified (Union[Unset, datetime.datetime]):
51
- backend_id (Union[None, Unset, str]):
51
+ backend_id (Union[None, Unset, str]): Port ID in OpenStack
52
52
  access_url (Union[None, Unset, str]):
53
53
  fixed_ips (Union[Unset, list['OpenStackFixedIp']]):
54
- mac_address (Union[Unset, str]):
54
+ mac_address (Union[Unset, str]): MAC address of the port
55
55
  allowed_address_pairs (Union[Unset, list['OpenStackAllowedAddressPair']]):
56
- tenant (Union[Unset, str]):
56
+ tenant (Union[Unset, str]): OpenStack tenant this port belongs to
57
57
  tenant_name (Union[Unset, str]):
58
58
  tenant_uuid (Union[Unset, UUID]):
59
- network (Union[None, Unset, str]):
59
+ network (Union[None, Unset, str]): Network to which this port belongs
60
60
  network_name (Union[Unset, str]):
61
61
  network_uuid (Union[Unset, UUID]):
62
62
  floating_ips (Union[Unset, list[str]]):
63
- device_id (Union[None, Unset, str]):
64
- device_owner (Union[None, Unset, str]):
65
- port_security_enabled (Union[Unset, bool]):
63
+ device_id (Union[None, Unset, str]): ID of device (instance, router etc) to which this port is connected
64
+ device_owner (Union[None, Unset, str]): Entity that uses this port (e.g. network:router_interface)
65
+ port_security_enabled (Union[Unset, bool]): If True, security groups and rules will be applied to this port
66
66
  security_groups (Union[Unset, list['OpenStackPortNestedSecurityGroup']]):
67
- admin_state_up (Union[None, Unset, bool]):
68
- status (Union[None, Unset, str]):
67
+ admin_state_up (Union[None, Unset, bool]): Administrative state of the port. If down, port does not forward
68
+ packets
69
+ status (Union[None, Unset, str]): Port status in OpenStack (e.g. ACTIVE, DOWN)
69
70
  marketplace_offering_uuid (Union[None, Unset, str]):
70
71
  marketplace_offering_name (Union[None, Unset, str]):
71
72
  marketplace_offering_plugin_options (Union['OpenStackPortMarketplaceOfferingPluginOptionsType0', None, Unset]):
@@ -11,8 +11,8 @@ T = TypeVar("T", bound="OpenStackPortIPUpdateRequest")
11
11
  class OpenStackPortIPUpdateRequest:
12
12
  """
13
13
  Attributes:
14
- subnet (str):
15
- ip_address (str):
14
+ subnet (str): The subnet where the new IP address will be allocated
15
+ ip_address (str): The IP address to assign within the subnet
16
16
  """
17
17
 
18
18
  subnet: str
@@ -22,10 +22,10 @@ class OpenStackPortRequest:
22
22
  name (str):
23
23
  description (Union[Unset, str]):
24
24
  fixed_ips (Union[Unset, list['OpenStackFixedIpRequest']]):
25
- mac_address (Union[Unset, str]):
25
+ mac_address (Union[Unset, str]): MAC address of the port
26
26
  allowed_address_pairs (Union[Unset, list['OpenStackAllowedAddressPairRequest']]):
27
- network (Union[None, Unset, str]):
28
- port_security_enabled (Union[Unset, bool]):
27
+ network (Union[None, Unset, str]): Network to which this port belongs
28
+ port_security_enabled (Union[Unset, bool]): If True, security groups and rules will be applied to this port
29
29
  security_groups (Union[Unset, list['OpenStackPortNestedSecurityGroupRequest']]):
30
30
  """
31
31
 
@@ -48,9 +48,9 @@ class OpenStackRouter:
48
48
  state (Union[Unset, CoreStates]):
49
49
  created (Union[Unset, datetime.datetime]):
50
50
  modified (Union[Unset, datetime.datetime]):
51
- backend_id (Union[None, Unset, str]):
51
+ backend_id (Union[None, Unset, str]): Router ID in OpenStack
52
52
  access_url (Union[None, Unset, str]):
53
- tenant (Union[Unset, str]):
53
+ tenant (Union[Unset, str]): OpenStack tenant this router belongs to
54
54
  tenant_name (Union[Unset, str]):
55
55
  tenant_uuid (Union[Unset, UUID]):
56
56
  routes (Union[Unset, list['OpenStackStaticRoute']]):
@@ -13,8 +13,10 @@ T = TypeVar("T", bound="OpenStackRouterInterfaceRequest")
13
13
  class OpenStackRouterInterfaceRequest:
14
14
  """
15
15
  Attributes:
16
- subnet (Union[Unset, str]):
17
- port (Union[Unset, str]):
16
+ subnet (Union[Unset, str]): The subnet to connect to the router. Either subnet or port must be specified, but
17
+ not both.
18
+ port (Union[Unset, str]): The port to connect to the router. Either subnet or port must be specified, but not
19
+ both.
18
20
  """
19
21
 
20
22
  subnet: Union[Unset, str] = UNSET
@@ -20,15 +20,16 @@ class OpenStackSecurityGroupRuleCreate:
20
20
  Attributes:
21
21
  ethertype (Union[Unset, EthertypeEnum]):
22
22
  direction (Union[Unset, DirectionEnum]):
23
- protocol (Union[BlankEnum, ProtocolEnum, Unset]):
24
- from_port (Union[None, Unset, int]):
25
- to_port (Union[None, Unset, int]):
26
- cidr (Union[None, Unset, str]):
23
+ protocol (Union[BlankEnum, ProtocolEnum, Unset]): The network protocol (TCP, UDP, ICMP, or empty for any
24
+ protocol)
25
+ from_port (Union[None, Unset, int]): Starting port number in the range (1-65535)
26
+ to_port (Union[None, Unset, int]): Ending port number in the range (1-65535)
27
+ cidr (Union[None, Unset, str]): CIDR notation for the source/destination network address range
27
28
  description (Union[Unset, str]):
28
29
  remote_group_name (Union[Unset, str]):
29
30
  remote_group_uuid (Union[Unset, UUID]):
30
31
  id (Union[Unset, int]):
31
- remote_group (Union[None, Unset, str]):
32
+ remote_group (Union[None, Unset, str]): Remote security group that this rule references, if any
32
33
  """
33
34
 
34
35
  ethertype: Union[Unset, EthertypeEnum] = UNSET
@@ -19,12 +19,13 @@ class OpenStackSecurityGroupRuleCreateRequest:
19
19
  Attributes:
20
20
  ethertype (Union[Unset, EthertypeEnum]):
21
21
  direction (Union[Unset, DirectionEnum]):
22
- protocol (Union[BlankEnum, ProtocolEnum, Unset]):
23
- from_port (Union[None, Unset, int]):
24
- to_port (Union[None, Unset, int]):
25
- cidr (Union[None, Unset, str]):
22
+ protocol (Union[BlankEnum, ProtocolEnum, Unset]): The network protocol (TCP, UDP, ICMP, or empty for any
23
+ protocol)
24
+ from_port (Union[None, Unset, int]): Starting port number in the range (1-65535)
25
+ to_port (Union[None, Unset, int]): Ending port number in the range (1-65535)
26
+ cidr (Union[None, Unset, str]): CIDR notation for the source/destination network address range
26
27
  description (Union[Unset, str]):
27
- remote_group (Union[None, Unset, str]):
28
+ remote_group (Union[None, Unset, str]): Remote security group that this rule references, if any
28
29
  """
29
30
 
30
31
  ethertype: Union[Unset, EthertypeEnum] = UNSET
@@ -19,12 +19,13 @@ class OpenStackSecurityGroupRuleUpdateRequest:
19
19
  Attributes:
20
20
  ethertype (Union[Unset, EthertypeEnum]):
21
21
  direction (Union[Unset, DirectionEnum]):
22
- protocol (Union[BlankEnum, ProtocolEnum, Unset]):
23
- from_port (Union[None, Unset, int]):
24
- to_port (Union[None, Unset, int]):
25
- cidr (Union[None, Unset, str]):
22
+ protocol (Union[BlankEnum, ProtocolEnum, Unset]): The network protocol (TCP, UDP, ICMP, or empty for any
23
+ protocol)
24
+ from_port (Union[None, Unset, int]): Starting port number in the range (1-65535)
25
+ to_port (Union[None, Unset, int]): Ending port number in the range (1-65535)
26
+ cidr (Union[None, Unset, str]): CIDR notation for the source/destination network address range
26
27
  description (Union[Unset, str]):
27
- remote_group (Union[None, Unset, str]):
28
+ remote_group (Union[None, Unset, str]): Remote security group that this rule references, if any
28
29
  """
29
30
 
30
31
  ethertype: Union[Unset, EthertypeEnum] = UNSET
@@ -53,7 +53,8 @@ class OpenStackServerGroup:
53
53
  tenant (Union[Unset, str]):
54
54
  tenant_name (Union[Unset, str]):
55
55
  tenant_uuid (Union[Unset, UUID]):
56
- policy (Union[BlankEnum, PolicyEnum, Unset]):
56
+ policy (Union[BlankEnum, PolicyEnum, Unset]): Server group policy determining the rules for scheduling servers
57
+ in this group
57
58
  display_name (Union[Unset, str]):
58
59
  instances (Union[Unset, list['OpenStackNestedInstance']]):
59
60
  marketplace_offering_uuid (Union[None, Unset, str]):
@@ -17,7 +17,8 @@ class OpenStackServerGroupRequest:
17
17
  Attributes:
18
18
  name (str):
19
19
  description (Union[Unset, str]):
20
- policy (Union[BlankEnum, PolicyEnum, Unset]):
20
+ policy (Union[BlankEnum, PolicyEnum, Unset]): Server group policy determining the rules for scheduling servers
21
+ in this group
21
22
  """
22
23
 
23
24
  name: str
@@ -46,9 +46,9 @@ class OpenStackSnapshot:
46
46
  state (Union[Unset, CoreStates]):
47
47
  created (Union[Unset, datetime.datetime]):
48
48
  modified (Union[Unset, datetime.datetime]):
49
- backend_id (Union[None, Unset, str]):
49
+ backend_id (Union[None, Unset, str]): Snapshot ID in the OpenStack backend
50
50
  access_url (Union[None, Unset, str]):
51
- source_volume (Union[None, Unset, str]):
51
+ source_volume (Union[None, Unset, str]): Volume from which this snapshot was created
52
52
  size (Union[Unset, int]): Size in MiB
53
53
  metadata (Union[Unset, Any]):
54
54
  runtime_state (Union[Unset, str]):
@@ -19,7 +19,7 @@ class OpenStackSnapshotRestoration:
19
19
  uuid (Union[Unset, UUID]):
20
20
  created (Union[Unset, datetime.datetime]):
21
21
  description (Union[Unset, str]): New volume description.
22
- volume (Union[Unset, str]):
22
+ volume (Union[Unset, str]): Volume that is being restored from the snapshot
23
23
  volume_name (Union[Unset, str]):
24
24
  volume_state (Union[Unset, str]):
25
25
  volume_runtime_state (Union[Unset, str]):
@@ -51,14 +51,14 @@ class OpenStackSubNet:
51
51
  access_url (Union[None, Unset, str]):
52
52
  tenant (Union[Unset, str]):
53
53
  tenant_name (Union[Unset, str]):
54
- network (Union[Unset, str]):
54
+ network (Union[Unset, str]): Network to which this subnet belongs
55
55
  network_name (Union[Unset, str]):
56
56
  cidr (Union[Unset, str]):
57
- gateway_ip (Union[None, Unset, str]):
58
- disable_gateway (Union[Unset, bool]):
57
+ gateway_ip (Union[None, Unset, str]): IP address of the gateway for this subnet
58
+ disable_gateway (Union[Unset, bool]): If True, no gateway IP address will be allocated
59
59
  allocation_pools (Union[Unset, list['OpenStackSubNetAllocationPool']]):
60
- ip_version (Union[Unset, int]):
61
- enable_dhcp (Union[Unset, bool]):
60
+ ip_version (Union[Unset, int]): IP protocol version (4 or 6)
61
+ enable_dhcp (Union[Unset, bool]): If True, DHCP service will be enabled on this subnet
62
62
  dns_nameservers (Union[Unset, list[str]]):
63
63
  host_routes (Union[Unset, list['OpenStackStaticRoute']]):
64
64
  is_connected (Union[Unset, bool]): Is subnet connected to the default tenant router.
@@ -21,8 +21,8 @@ class OpenStackSubNetRequest:
21
21
  name (str):
22
22
  description (Union[Unset, str]):
23
23
  cidr (Union[Unset, str]):
24
- gateway_ip (Union[None, Unset, str]):
25
- disable_gateway (Union[Unset, bool]):
24
+ gateway_ip (Union[None, Unset, str]): IP address of the gateway for this subnet
25
+ disable_gateway (Union[Unset, bool]): If True, no gateway IP address will be allocated
26
26
  allocation_pools (Union[Unset, list['OpenStackSubNetAllocationPoolRequest']]):
27
27
  dns_nameservers (Union[Unset, list[str]]):
28
28
  host_routes (Union[Unset, list['OpenStackStaticRouteRequest']]):
@@ -46,11 +46,11 @@ class OpenStackTenant:
46
46
  state (Union[Unset, CoreStates]):
47
47
  created (Union[Unset, datetime.datetime]):
48
48
  modified (Union[Unset, datetime.datetime]):
49
- backend_id (Union[None, Unset, str]):
49
+ backend_id (Union[None, Unset, str]): ID of tenant in the OpenStack backend
50
50
  availability_zone (Union[Unset, str]): Optional availability group. Will be used for all instances provisioned
51
51
  in this tenant
52
- internal_network_id (Union[Unset, str]):
53
- external_network_id (Union[Unset, str]):
52
+ internal_network_id (Union[Unset, str]): ID of internal network in OpenStack tenant
53
+ external_network_id (Union[Unset, str]): ID of external network connected to OpenStack tenant
54
54
  quotas (Union[Unset, list['Quota']]):
55
55
  default_volume_type_name (Union[Unset, str]): Volume type name to use when creating volumes.
56
56
  marketplace_offering_uuid (Union[None, Unset, str]):
@@ -0,0 +1,109 @@
1
+ from collections.abc import Mapping
2
+ from typing import Any, TypeVar, Union
3
+
4
+ from attrs import define as _attrs_define
5
+ from attrs import field as _attrs_field
6
+
7
+ from ..types import UNSET, Unset
8
+
9
+ T = TypeVar("T", bound="OpenStackTenantCreateOrderAttributes")
10
+
11
+
12
+ @_attrs_define
13
+ class OpenStackTenantCreateOrderAttributes:
14
+ """This mixin allows to specify list of fields to be rendered by serializer.
15
+ It expects that request is available in serializer's context.
16
+
17
+ Attributes:
18
+ name (str):
19
+ description (Union[Unset, str]):
20
+ subnet_cidr (Union[Unset, str]): Default: '192.168.42.0/24'.
21
+ skip_connection_extnet (Union[Unset, bool]): Default: False.
22
+ skip_creation_of_default_router (Union[Unset, bool]): Default: False.
23
+ availability_zone (Union[Unset, str]): Optional availability group. Will be used for all instances provisioned
24
+ in this tenant
25
+ """
26
+
27
+ name: str
28
+ description: Union[Unset, str] = UNSET
29
+ subnet_cidr: Union[Unset, str] = "192.168.42.0/24"
30
+ skip_connection_extnet: Union[Unset, bool] = False
31
+ skip_creation_of_default_router: Union[Unset, bool] = False
32
+ availability_zone: Union[Unset, str] = UNSET
33
+ additional_properties: dict[str, Any] = _attrs_field(init=False, factory=dict)
34
+
35
+ def to_dict(self) -> dict[str, Any]:
36
+ name = self.name
37
+
38
+ description = self.description
39
+
40
+ subnet_cidr = self.subnet_cidr
41
+
42
+ skip_connection_extnet = self.skip_connection_extnet
43
+
44
+ skip_creation_of_default_router = self.skip_creation_of_default_router
45
+
46
+ availability_zone = self.availability_zone
47
+
48
+ field_dict: dict[str, Any] = {}
49
+ field_dict.update(self.additional_properties)
50
+ field_dict.update(
51
+ {
52
+ "name": name,
53
+ }
54
+ )
55
+ if description is not UNSET:
56
+ field_dict["description"] = description
57
+ if subnet_cidr is not UNSET:
58
+ field_dict["subnet_cidr"] = subnet_cidr
59
+ if skip_connection_extnet is not UNSET:
60
+ field_dict["skip_connection_extnet"] = skip_connection_extnet
61
+ if skip_creation_of_default_router is not UNSET:
62
+ field_dict["skip_creation_of_default_router"] = skip_creation_of_default_router
63
+ if availability_zone is not UNSET:
64
+ field_dict["availability_zone"] = availability_zone
65
+
66
+ return field_dict
67
+
68
+ @classmethod
69
+ def from_dict(cls: type[T], src_dict: Mapping[str, Any]) -> T:
70
+ d = dict(src_dict)
71
+ name = d.pop("name")
72
+
73
+ description = d.pop("description", UNSET)
74
+
75
+ subnet_cidr = d.pop("subnet_cidr", UNSET)
76
+
77
+ skip_connection_extnet = d.pop("skip_connection_extnet", UNSET)
78
+
79
+ skip_creation_of_default_router = d.pop("skip_creation_of_default_router", UNSET)
80
+
81
+ availability_zone = d.pop("availability_zone", UNSET)
82
+
83
+ open_stack_tenant_create_order_attributes = cls(
84
+ name=name,
85
+ description=description,
86
+ subnet_cidr=subnet_cidr,
87
+ skip_connection_extnet=skip_connection_extnet,
88
+ skip_creation_of_default_router=skip_creation_of_default_router,
89
+ availability_zone=availability_zone,
90
+ )
91
+
92
+ open_stack_tenant_create_order_attributes.additional_properties = d
93
+ return open_stack_tenant_create_order_attributes
94
+
95
+ @property
96
+ def additional_keys(self) -> list[str]:
97
+ return list(self.additional_properties.keys())
98
+
99
+ def __getitem__(self, key: str) -> Any:
100
+ return self.additional_properties[key]
101
+
102
+ def __setitem__(self, key: str, value: Any) -> None:
103
+ self.additional_properties[key] = value
104
+
105
+ def __delitem__(self, key: str) -> None:
106
+ del self.additional_properties[key]
107
+
108
+ def __contains__(self, key: str) -> bool:
109
+ return key in self.additional_properties
@@ -45,24 +45,24 @@ class OpenStackVolume:
45
45
  state (Union[Unset, CoreStates]):
46
46
  created (Union[Unset, datetime.datetime]):
47
47
  modified (Union[Unset, datetime.datetime]):
48
- backend_id (Union[None, Unset, str]):
48
+ backend_id (Union[None, Unset, str]): Volume ID in the OpenStack backend
49
49
  access_url (Union[None, Unset, str]):
50
- source_snapshot (Union[None, Unset, str]):
50
+ source_snapshot (Union[None, Unset, str]): Snapshot that this volume was created from, if any
51
51
  size (Union[None, Unset, int]): Size in MiB
52
- bootable (Union[Unset, bool]):
52
+ bootable (Union[Unset, bool]): Indicates if this volume can be used to boot an instance
53
53
  metadata (Union[Unset, Any]):
54
- image (Union[None, Unset, str]):
55
- image_metadata (Union[Unset, str]):
56
- image_name (Union[Unset, str]):
57
- type_ (Union[None, Unset, str]):
54
+ image (Union[None, Unset, str]): Image that this volume was created from, if any
55
+ image_metadata (Union[Unset, str]): Metadata of the image this volume was created from
56
+ image_name (Union[Unset, str]): Name of the image this volume was created from
57
+ type_ (Union[None, Unset, str]): Type of the volume (e.g. SSD, HDD)
58
58
  type_name (Union[Unset, str]):
59
59
  runtime_state (Union[Unset, str]):
60
- availability_zone (Union[None, Unset, str]):
60
+ availability_zone (Union[None, Unset, str]): Availability zone where this volume is located
61
61
  availability_zone_name (Union[Unset, str]):
62
62
  device (Union[Unset, str]): Name of volume as instance device e.g. /dev/vdb.
63
63
  action (Union[Unset, str]):
64
64
  action_details (Union[Unset, Any]):
65
- instance (Union[None, Unset, str]):
65
+ instance (Union[None, Unset, str]): Instance that this volume is attached to, if any
66
66
  instance_name (Union[Unset, str]):
67
67
  instance_marketplace_uuid (Union[Unset, UUID]):
68
68
  tenant (Union[Unset, str]):
@@ -0,0 +1,152 @@
1
+ from collections.abc import Mapping
2
+ from typing import Any, TypeVar, Union, cast
3
+
4
+ from attrs import define as _attrs_define
5
+ from attrs import field as _attrs_field
6
+
7
+ from ..types import UNSET, Unset
8
+
9
+ T = TypeVar("T", bound="OpenStackVolumeCreateOrderAttributes")
10
+
11
+
12
+ @_attrs_define
13
+ class OpenStackVolumeCreateOrderAttributes:
14
+ """This mixin allows to specify list of fields to be rendered by serializer.
15
+ It expects that request is available in serializer's context.
16
+
17
+ Attributes:
18
+ name (str):
19
+ description (Union[Unset, str]):
20
+ image (Union[None, Unset, str]): Image that this volume was created from, if any
21
+ size (Union[None, Unset, int]): Size in MiB
22
+ availability_zone (Union[None, Unset, str]): Availability zone where this volume is located
23
+ type_ (Union[None, Unset, str]): Type of the volume (e.g. SSD, HDD)
24
+ """
25
+
26
+ name: str
27
+ description: Union[Unset, str] = UNSET
28
+ image: Union[None, Unset, str] = UNSET
29
+ size: Union[None, Unset, int] = UNSET
30
+ availability_zone: Union[None, Unset, str] = UNSET
31
+ type_: Union[None, Unset, str] = UNSET
32
+ additional_properties: dict[str, Any] = _attrs_field(init=False, factory=dict)
33
+
34
+ def to_dict(self) -> dict[str, Any]:
35
+ name = self.name
36
+
37
+ description = self.description
38
+
39
+ image: Union[None, Unset, str]
40
+ if isinstance(self.image, Unset):
41
+ image = UNSET
42
+ else:
43
+ image = self.image
44
+
45
+ size: Union[None, Unset, int]
46
+ if isinstance(self.size, Unset):
47
+ size = UNSET
48
+ else:
49
+ size = self.size
50
+
51
+ availability_zone: Union[None, Unset, str]
52
+ if isinstance(self.availability_zone, Unset):
53
+ availability_zone = UNSET
54
+ else:
55
+ availability_zone = self.availability_zone
56
+
57
+ type_: Union[None, Unset, str]
58
+ if isinstance(self.type_, Unset):
59
+ type_ = UNSET
60
+ else:
61
+ type_ = self.type_
62
+
63
+ field_dict: dict[str, Any] = {}
64
+ field_dict.update(self.additional_properties)
65
+ field_dict.update(
66
+ {
67
+ "name": name,
68
+ }
69
+ )
70
+ if description is not UNSET:
71
+ field_dict["description"] = description
72
+ if image is not UNSET:
73
+ field_dict["image"] = image
74
+ if size is not UNSET:
75
+ field_dict["size"] = size
76
+ if availability_zone is not UNSET:
77
+ field_dict["availability_zone"] = availability_zone
78
+ if type_ is not UNSET:
79
+ field_dict["type"] = type_
80
+
81
+ return field_dict
82
+
83
+ @classmethod
84
+ def from_dict(cls: type[T], src_dict: Mapping[str, Any]) -> T:
85
+ d = dict(src_dict)
86
+ name = d.pop("name")
87
+
88
+ description = d.pop("description", UNSET)
89
+
90
+ def _parse_image(data: object) -> Union[None, Unset, str]:
91
+ if data is None:
92
+ return data
93
+ if isinstance(data, Unset):
94
+ return data
95
+ return cast(Union[None, Unset, str], data)
96
+
97
+ image = _parse_image(d.pop("image", UNSET))
98
+
99
+ def _parse_size(data: object) -> Union[None, Unset, int]:
100
+ if data is None:
101
+ return data
102
+ if isinstance(data, Unset):
103
+ return data
104
+ return cast(Union[None, Unset, int], data)
105
+
106
+ size = _parse_size(d.pop("size", UNSET))
107
+
108
+ def _parse_availability_zone(data: object) -> Union[None, Unset, str]:
109
+ if data is None:
110
+ return data
111
+ if isinstance(data, Unset):
112
+ return data
113
+ return cast(Union[None, Unset, str], data)
114
+
115
+ availability_zone = _parse_availability_zone(d.pop("availability_zone", UNSET))
116
+
117
+ def _parse_type_(data: object) -> Union[None, Unset, str]:
118
+ if data is None:
119
+ return data
120
+ if isinstance(data, Unset):
121
+ return data
122
+ return cast(Union[None, Unset, str], data)
123
+
124
+ type_ = _parse_type_(d.pop("type", UNSET))
125
+
126
+ open_stack_volume_create_order_attributes = cls(
127
+ name=name,
128
+ description=description,
129
+ image=image,
130
+ size=size,
131
+ availability_zone=availability_zone,
132
+ type_=type_,
133
+ )
134
+
135
+ open_stack_volume_create_order_attributes.additional_properties = d
136
+ return open_stack_volume_create_order_attributes
137
+
138
+ @property
139
+ def additional_keys(self) -> list[str]:
140
+ return list(self.additional_properties.keys())
141
+
142
+ def __getitem__(self, key: str) -> Any:
143
+ return self.additional_properties[key]
144
+
145
+ def __setitem__(self, key: str, value: Any) -> None:
146
+ self.additional_properties[key] = value
147
+
148
+ def __delitem__(self, key: str) -> None:
149
+ del self.additional_properties[key]
150
+
151
+ def __contains__(self, key: str) -> bool:
152
+ return key in self.additional_properties
@@ -15,7 +15,7 @@ class OpenStackVolumeRequest:
15
15
  Attributes:
16
16
  name (str):
17
17
  description (Union[Unset, str]):
18
- bootable (Union[Unset, bool]):
18
+ bootable (Union[Unset, bool]): Indicates if this volume can be used to boot an instance
19
19
  """
20
20
 
21
21
  name: str