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.
- waldur_api_client/api/marketplace_offering_users/marketplace_offering_users_checklist_retrieve.py +154 -0
- waldur_api_client/api/marketplace_offering_users/marketplace_offering_users_checklist_review_retrieve.py +154 -0
- waldur_api_client/api/marketplace_offering_users/marketplace_offering_users_completion_review_status_retrieve.py +154 -0
- waldur_api_client/api/marketplace_offering_users/marketplace_offering_users_completion_status_retrieve.py +154 -0
- waldur_api_client/api/marketplace_offering_users/marketplace_offering_users_submit_answers.py +179 -0
- waldur_api_client/api/marketplace_robot_accounts/marketplace_robot_accounts_list.py +23 -0
- waldur_api_client/api/marketplace_robot_accounts/marketplace_robot_accounts_retrieve.py +30 -1
- waldur_api_client/api/marketplace_service_providers/marketplace_service_providers_project_service_accounts_list.py +276 -0
- waldur_api_client/api/marketplace_service_providers/service_provider_compliance_overview.py +189 -0
- waldur_api_client/api/marketplace_service_providers/service_provider_offering_users_compliance.py +222 -0
- waldur_api_client/api/public_maintenance_announcements/__init__.py +1 -0
- waldur_api_client/api/public_maintenance_announcements/public_maintenance_announcements_count.py +325 -0
- waldur_api_client/api/public_maintenance_announcements/public_maintenance_announcements_list.py +328 -0
- waldur_api_client/api/public_maintenance_announcements/public_maintenance_announcements_retrieve.py +144 -0
- waldur_api_client/models/__init__.py +56 -4
- waldur_api_client/models/admin_announcement.py +109 -1
- waldur_api_client/models/admin_announcement_maintenance_affected_offerings_item.py +103 -0
- waldur_api_client/models/admin_announcements_list_field_item.py +8 -0
- waldur_api_client/models/admin_announcements_retrieve_field_item.py +8 -0
- waldur_api_client/models/azure_sql_server_create_order_attributes.py +80 -0
- waldur_api_client/models/azure_virtual_machine_create_order_attributes.py +96 -0
- waldur_api_client/models/basic_user.py +30 -21
- waldur_api_client/models/booking_offerings_list_field_item.py +1 -0
- waldur_api_client/models/booking_offerings_retrieve_field_item.py +1 -0
- waldur_api_client/models/create_router.py +1 -1
- waldur_api_client/models/create_router_request.py +1 -1
- waldur_api_client/models/customer.py +0 -30
- waldur_api_client/models/customers_list_field_item.py +0 -2
- waldur_api_client/models/customers_retrieve_field_item.py +0 -2
- waldur_api_client/models/fingerprint.py +19 -17
- waldur_api_client/models/instance_flavor_change_request.py +1 -1
- waldur_api_client/models/marketplace_managed_rancher_create_order_attributes.py +144 -0
- waldur_api_client/models/marketplace_provider_offerings_list_customer_service_accounts_retrieve_field_item.py +1 -0
- waldur_api_client/models/marketplace_provider_offerings_list_field_item.py +1 -0
- waldur_api_client/models/marketplace_provider_offerings_list_project_service_accounts_retrieve_field_item.py +1 -0
- waldur_api_client/models/marketplace_provider_offerings_retrieve_field_item.py +1 -0
- waldur_api_client/models/marketplace_provider_offerings_stats_retrieve_field_item.py +1 -0
- waldur_api_client/models/marketplace_provider_offerings_user_has_resource_access_retrieve_field_item.py +1 -0
- waldur_api_client/models/marketplace_public_offerings_list_field_item.py +1 -0
- waldur_api_client/models/marketplace_public_offerings_retrieve_field_item.py +1 -0
- waldur_api_client/models/marketplace_rancher_create_order_attributes.py +142 -0
- waldur_api_client/models/marketplace_robot_accounts_list_field_item.py +32 -0
- waldur_api_client/models/marketplace_robot_accounts_retrieve_field_item.py +32 -0
- waldur_api_client/models/offering.py +9 -0
- waldur_api_client/models/offering_create.py +8 -0
- waldur_api_client/models/open_stack_backend_instance.py +2 -2
- waldur_api_client/models/open_stack_backend_volumes.py +3 -3
- waldur_api_client/models/open_stack_backup.py +1 -1
- waldur_api_client/models/open_stack_backup_restoration.py +8 -5
- waldur_api_client/models/open_stack_backup_restoration_request.py +28 -3
- waldur_api_client/models/open_stack_fixed_ip.py +2 -2
- waldur_api_client/models/open_stack_fixed_ip_request.py +2 -2
- waldur_api_client/models/open_stack_floating_ip.py +5 -4
- waldur_api_client/models/open_stack_instance.py +17 -15
- waldur_api_client/models/open_stack_instance_allowed_address_pairs_update_request.py +3 -2
- waldur_api_client/models/open_stack_instance_availability_zone.py +1 -1
- waldur_api_client/models/open_stack_instance_create_order_attributes.py +280 -0
- waldur_api_client/models/open_stack_instance_request.py +4 -3
- waldur_api_client/models/open_stack_instance_security_groups_update_request.py +1 -1
- waldur_api_client/models/open_stack_nested_floating_ip.py +3 -3
- waldur_api_client/models/open_stack_nested_instance.py +1 -1
- waldur_api_client/models/open_stack_nested_port.py +5 -5
- waldur_api_client/models/open_stack_nested_port_request.py +1 -1
- waldur_api_client/models/open_stack_nested_security_group.py +1 -53
- waldur_api_client/models/open_stack_nested_security_group_request.py +59 -0
- waldur_api_client/models/open_stack_nested_sub_net.py +4 -4
- waldur_api_client/models/open_stack_nested_sub_net_request.py +4 -4
- waldur_api_client/models/open_stack_nested_volume.py +3 -3
- waldur_api_client/models/open_stack_nested_volume_request.py +3 -3
- waldur_api_client/models/open_stack_network.py +3 -3
- waldur_api_client/models/open_stack_port.py +10 -9
- waldur_api_client/models/open_stack_port_ip_update_request.py +2 -2
- waldur_api_client/models/open_stack_port_request.py +3 -3
- waldur_api_client/models/open_stack_router.py +2 -2
- waldur_api_client/models/open_stack_router_interface_request.py +4 -2
- waldur_api_client/models/open_stack_security_group_rule_create.py +6 -5
- waldur_api_client/models/open_stack_security_group_rule_create_request.py +6 -5
- waldur_api_client/models/open_stack_security_group_rule_update_request.py +6 -5
- waldur_api_client/models/open_stack_server_group.py +2 -1
- waldur_api_client/models/open_stack_server_group_request.py +2 -1
- waldur_api_client/models/open_stack_snapshot.py +2 -2
- waldur_api_client/models/open_stack_snapshot_restoration.py +1 -1
- waldur_api_client/models/open_stack_sub_net.py +5 -5
- waldur_api_client/models/open_stack_sub_net_request.py +2 -2
- waldur_api_client/models/open_stack_tenant.py +3 -3
- waldur_api_client/models/open_stack_tenant_create_order_attributes.py +109 -0
- waldur_api_client/models/open_stack_volume.py +9 -9
- waldur_api_client/models/open_stack_volume_create_order_attributes.py +152 -0
- waldur_api_client/models/open_stack_volume_request.py +1 -1
- waldur_api_client/models/order_create_request.py +165 -4
- waldur_api_client/models/patched_open_stack_instance_request.py +4 -3
- waldur_api_client/models/patched_open_stack_server_group_request.py +2 -1
- waldur_api_client/models/patched_open_stack_sub_net_request.py +2 -2
- waldur_api_client/models/patched_open_stack_volume_request.py +1 -1
- waldur_api_client/models/permission_request.py +2 -2
- waldur_api_client/models/provider_offering_details.py +9 -0
- waldur_api_client/models/public_maintenance_announcement.py +217 -0
- waldur_api_client/models/public_maintenance_announcement_state_enum.py +10 -0
- waldur_api_client/models/public_maintenance_announcements_count_o_item.py +15 -0
- waldur_api_client/models/public_maintenance_announcements_count_state_item.py +12 -0
- waldur_api_client/models/public_maintenance_announcements_list_o_item.py +15 -0
- waldur_api_client/models/public_maintenance_announcements_list_state_item.py +12 -0
- waldur_api_client/models/public_offering_details.py +9 -0
- waldur_api_client/models/rancher_cluster_security_group_rule.py +5 -4
- waldur_api_client/models/rancher_cluster_security_group_rule_request.py +5 -4
- waldur_api_client/models/remote_project_update_request.py +2 -2
- waldur_api_client/models/robot_account_details.py +226 -144
- waldur_api_client/models/service_provider_compliance_overview.py +122 -0
- waldur_api_client/models/service_provider_offering_user_compliance.py +179 -0
- waldur_api_client/models/service_provider_offering_user_compliance_state_enum.py +17 -0
- waldur_api_client/models/slurm_invoices_slurm_package_create_order_attributes.py +72 -0
- waldur_api_client/models/v_mware_virtual_machine_create_order_attributes.py +225 -0
- waldur_api_client/models/v_mware_virtual_machine_create_order_attributes_guest_os_type_1.py +155 -0
- waldur_api_client/models/v_mware_virtual_machine_create_order_attributes_guest_os_type_2_type_1.py +155 -0
- waldur_api_client/models/v_mware_virtual_machine_create_order_attributes_guest_os_type_3_type_1.py +155 -0
- waldur_api_client/models/volume_attach_request.py +1 -1
- {waldur_api_client-7.7.5.dist-info → waldur_api_client-7.7.6.dist-info}/METADATA +1 -1
- {waldur_api_client-7.7.5.dist-info → waldur_api_client-7.7.6.dist-info}/RECORD +120 -85
- waldur_api_client/models/nested_security_group_rule.py +0 -222
- waldur_api_client/models/nested_security_group_rule_request.py +0 -187
- {waldur_api_client-7.7.5.dist-info → waldur_api_client-7.7.6.dist-info}/LICENSE +0 -0
- {waldur_api_client-7.7.5.dist-info → waldur_api_client-7.7.6.dist-info}/WHEEL +0 -0
waldur_api_client/api/public_maintenance_announcements/public_maintenance_announcements_retrieve.py
ADDED
|
@@ -0,0 +1,144 @@
|
|
|
1
|
+
from http import HTTPStatus
|
|
2
|
+
from typing import Any, Union
|
|
3
|
+
from uuid import UUID
|
|
4
|
+
|
|
5
|
+
import httpx
|
|
6
|
+
|
|
7
|
+
from ... import errors
|
|
8
|
+
from ...client import AuthenticatedClient, Client
|
|
9
|
+
from ...models.public_maintenance_announcement import PublicMaintenanceAnnouncement
|
|
10
|
+
from ...types import Response
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
def _get_kwargs(
|
|
14
|
+
uuid: UUID,
|
|
15
|
+
) -> dict[str, Any]:
|
|
16
|
+
_kwargs: dict[str, Any] = {
|
|
17
|
+
"method": "get",
|
|
18
|
+
"url": f"/api/public-maintenance-announcements/{uuid}/",
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
return _kwargs
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
def _parse_response(
|
|
25
|
+
*, client: Union[AuthenticatedClient, Client], response: httpx.Response
|
|
26
|
+
) -> PublicMaintenanceAnnouncement:
|
|
27
|
+
if response.status_code == 200:
|
|
28
|
+
response_200 = PublicMaintenanceAnnouncement.from_dict(response.json())
|
|
29
|
+
|
|
30
|
+
return response_200
|
|
31
|
+
raise errors.UnexpectedStatus(response.status_code, response.content)
|
|
32
|
+
|
|
33
|
+
|
|
34
|
+
def _build_response(
|
|
35
|
+
*, client: Union[AuthenticatedClient, Client], response: httpx.Response
|
|
36
|
+
) -> Response[PublicMaintenanceAnnouncement]:
|
|
37
|
+
return Response(
|
|
38
|
+
status_code=HTTPStatus(response.status_code),
|
|
39
|
+
content=response.content,
|
|
40
|
+
headers=response.headers,
|
|
41
|
+
parsed=_parse_response(client=client, response=response),
|
|
42
|
+
)
|
|
43
|
+
|
|
44
|
+
|
|
45
|
+
def sync_detailed(
|
|
46
|
+
uuid: UUID,
|
|
47
|
+
*,
|
|
48
|
+
client: AuthenticatedClient,
|
|
49
|
+
) -> Response[PublicMaintenanceAnnouncement]:
|
|
50
|
+
"""
|
|
51
|
+
Args:
|
|
52
|
+
uuid (UUID):
|
|
53
|
+
|
|
54
|
+
Raises:
|
|
55
|
+
errors.UnexpectedStatus: If the server returns an undocumented status code.
|
|
56
|
+
httpx.TimeoutException: If the request takes longer than Client.timeout.
|
|
57
|
+
|
|
58
|
+
Returns:
|
|
59
|
+
Response[PublicMaintenanceAnnouncement]
|
|
60
|
+
"""
|
|
61
|
+
|
|
62
|
+
kwargs = _get_kwargs(
|
|
63
|
+
uuid=uuid,
|
|
64
|
+
)
|
|
65
|
+
|
|
66
|
+
response = client.get_httpx_client().request(
|
|
67
|
+
**kwargs,
|
|
68
|
+
)
|
|
69
|
+
|
|
70
|
+
return _build_response(client=client, response=response)
|
|
71
|
+
|
|
72
|
+
|
|
73
|
+
def sync(
|
|
74
|
+
uuid: UUID,
|
|
75
|
+
*,
|
|
76
|
+
client: AuthenticatedClient,
|
|
77
|
+
) -> PublicMaintenanceAnnouncement:
|
|
78
|
+
"""
|
|
79
|
+
Args:
|
|
80
|
+
uuid (UUID):
|
|
81
|
+
|
|
82
|
+
Raises:
|
|
83
|
+
errors.UnexpectedStatus: If the server returns an undocumented status code.
|
|
84
|
+
httpx.TimeoutException: If the request takes longer than Client.timeout.
|
|
85
|
+
|
|
86
|
+
Returns:
|
|
87
|
+
PublicMaintenanceAnnouncement
|
|
88
|
+
"""
|
|
89
|
+
|
|
90
|
+
return sync_detailed(
|
|
91
|
+
uuid=uuid,
|
|
92
|
+
client=client,
|
|
93
|
+
).parsed
|
|
94
|
+
|
|
95
|
+
|
|
96
|
+
async def asyncio_detailed(
|
|
97
|
+
uuid: UUID,
|
|
98
|
+
*,
|
|
99
|
+
client: AuthenticatedClient,
|
|
100
|
+
) -> Response[PublicMaintenanceAnnouncement]:
|
|
101
|
+
"""
|
|
102
|
+
Args:
|
|
103
|
+
uuid (UUID):
|
|
104
|
+
|
|
105
|
+
Raises:
|
|
106
|
+
errors.UnexpectedStatus: If the server returns an undocumented status code.
|
|
107
|
+
httpx.TimeoutException: If the request takes longer than Client.timeout.
|
|
108
|
+
|
|
109
|
+
Returns:
|
|
110
|
+
Response[PublicMaintenanceAnnouncement]
|
|
111
|
+
"""
|
|
112
|
+
|
|
113
|
+
kwargs = _get_kwargs(
|
|
114
|
+
uuid=uuid,
|
|
115
|
+
)
|
|
116
|
+
|
|
117
|
+
response = await client.get_async_httpx_client().request(**kwargs)
|
|
118
|
+
|
|
119
|
+
return _build_response(client=client, response=response)
|
|
120
|
+
|
|
121
|
+
|
|
122
|
+
async def asyncio(
|
|
123
|
+
uuid: UUID,
|
|
124
|
+
*,
|
|
125
|
+
client: AuthenticatedClient,
|
|
126
|
+
) -> PublicMaintenanceAnnouncement:
|
|
127
|
+
"""
|
|
128
|
+
Args:
|
|
129
|
+
uuid (UUID):
|
|
130
|
+
|
|
131
|
+
Raises:
|
|
132
|
+
errors.UnexpectedStatus: If the server returns an undocumented status code.
|
|
133
|
+
httpx.TimeoutException: If the request takes longer than Client.timeout.
|
|
134
|
+
|
|
135
|
+
Returns:
|
|
136
|
+
PublicMaintenanceAnnouncement
|
|
137
|
+
"""
|
|
138
|
+
|
|
139
|
+
return (
|
|
140
|
+
await asyncio_detailed(
|
|
141
|
+
uuid=uuid,
|
|
142
|
+
client=client,
|
|
143
|
+
)
|
|
144
|
+
).parsed
|
|
@@ -4,6 +4,7 @@ from .access_subnet import AccessSubnet
|
|
|
4
4
|
from .access_subnet_request import AccessSubnetRequest
|
|
5
5
|
from .account_name_generation_policy_enum import AccountNameGenerationPolicyEnum
|
|
6
6
|
from .admin_announcement import AdminAnnouncement
|
|
7
|
+
from .admin_announcement_maintenance_affected_offerings_item import AdminAnnouncementMaintenanceAffectedOfferingsItem
|
|
7
8
|
from .admin_announcement_request import AdminAnnouncementRequest
|
|
8
9
|
from .admin_announcement_type_enum import AdminAnnouncementTypeEnum
|
|
9
10
|
from .admin_announcements_count_o_item import AdminAnnouncementsCountOItem
|
|
@@ -73,6 +74,7 @@ from .azure_sql_databases_list_field_item import AzureSqlDatabasesListFieldItem
|
|
|
73
74
|
from .azure_sql_databases_list_state_item import AzureSqlDatabasesListStateItem
|
|
74
75
|
from .azure_sql_databases_retrieve_field_item import AzureSqlDatabasesRetrieveFieldItem
|
|
75
76
|
from .azure_sql_server import AzureSqlServer
|
|
77
|
+
from .azure_sql_server_create_order_attributes import AzureSQLServerCreateOrderAttributes
|
|
76
78
|
from .azure_sql_server_marketplace_offering_plugin_options_type_0 import (
|
|
77
79
|
AzureSqlServerMarketplaceOfferingPluginOptionsType0,
|
|
78
80
|
)
|
|
@@ -82,6 +84,7 @@ from .azure_sql_servers_list_field_item import AzureSqlServersListFieldItem
|
|
|
82
84
|
from .azure_sql_servers_list_state_item import AzureSqlServersListStateItem
|
|
83
85
|
from .azure_sql_servers_retrieve_field_item import AzureSqlServersRetrieveFieldItem
|
|
84
86
|
from .azure_virtual_machine import AzureVirtualMachine
|
|
87
|
+
from .azure_virtual_machine_create_order_attributes import AzureVirtualMachineCreateOrderAttributes
|
|
85
88
|
from .azure_virtual_machine_marketplace_offering_plugin_options_type_0 import (
|
|
86
89
|
AzureVirtualMachineMarketplaceOfferingPluginOptionsType0,
|
|
87
90
|
)
|
|
@@ -467,6 +470,7 @@ from .marketplace_integration_statuses_count_o_item import MarketplaceIntegratio
|
|
|
467
470
|
from .marketplace_integration_statuses_count_status_item import MarketplaceIntegrationStatusesCountStatusItem
|
|
468
471
|
from .marketplace_integration_statuses_list_o_item import MarketplaceIntegrationStatusesListOItem
|
|
469
472
|
from .marketplace_integration_statuses_list_status_item import MarketplaceIntegrationStatusesListStatusItem
|
|
473
|
+
from .marketplace_managed_rancher_create_order_attributes import MarketplaceManagedRancherCreateOrderAttributes
|
|
470
474
|
from .marketplace_offering_files_count_o_item import MarketplaceOfferingFilesCountOItem
|
|
471
475
|
from .marketplace_offering_files_list_field_item import MarketplaceOfferingFilesListFieldItem
|
|
472
476
|
from .marketplace_offering_files_list_o_item import MarketplaceOfferingFilesListOItem
|
|
@@ -546,6 +550,7 @@ from .marketplace_public_offerings_list_field_item import MarketplacePublicOffer
|
|
|
546
550
|
from .marketplace_public_offerings_list_o_item import MarketplacePublicOfferingsListOItem
|
|
547
551
|
from .marketplace_public_offerings_list_state_item import MarketplacePublicOfferingsListStateItem
|
|
548
552
|
from .marketplace_public_offerings_retrieve_field_item import MarketplacePublicOfferingsRetrieveFieldItem
|
|
553
|
+
from .marketplace_rancher_create_order_attributes import MarketplaceRancherCreateOrderAttributes
|
|
549
554
|
from .marketplace_resources_count_o_item import MarketplaceResourcesCountOItem
|
|
550
555
|
from .marketplace_resources_count_state_item import MarketplaceResourcesCountStateItem
|
|
551
556
|
from .marketplace_resources_details_retrieve_field_item import MarketplaceResourcesDetailsRetrieveFieldItem
|
|
@@ -555,7 +560,9 @@ from .marketplace_resources_list_state_item import MarketplaceResourcesListState
|
|
|
555
560
|
from .marketplace_resources_pull_response_200 import MarketplaceResourcesPullResponse200
|
|
556
561
|
from .marketplace_resources_retrieve_field_item import MarketplaceResourcesRetrieveFieldItem
|
|
557
562
|
from .marketplace_robot_accounts_count_state import MarketplaceRobotAccountsCountState
|
|
563
|
+
from .marketplace_robot_accounts_list_field_item import MarketplaceRobotAccountsListFieldItem
|
|
558
564
|
from .marketplace_robot_accounts_list_state import MarketplaceRobotAccountsListState
|
|
565
|
+
from .marketplace_robot_accounts_retrieve_field_item import MarketplaceRobotAccountsRetrieveFieldItem
|
|
559
566
|
from .marketplace_screenshots_count_o_item import MarketplaceScreenshotsCountOItem
|
|
560
567
|
from .marketplace_screenshots_list_o_item import MarketplaceScreenshotsListOItem
|
|
561
568
|
from .marketplace_service_provider_user import MarketplaceServiceProviderUser
|
|
@@ -639,8 +646,6 @@ from .nested_screenshot import NestedScreenshot
|
|
|
639
646
|
from .nested_screenshot_request import NestedScreenshotRequest
|
|
640
647
|
from .nested_section import NestedSection
|
|
641
648
|
from .nested_section_request import NestedSectionRequest
|
|
642
|
-
from .nested_security_group_rule import NestedSecurityGroupRule
|
|
643
|
-
from .nested_security_group_rule_request import NestedSecurityGroupRuleRequest
|
|
644
649
|
from .network_rbac_policy import NetworkRBACPolicy
|
|
645
650
|
from .network_rbac_policy_request import NetworkRBACPolicyRequest
|
|
646
651
|
from .node_disk_driver_enum import NodeDiskDriverEnum
|
|
@@ -725,6 +730,7 @@ from .open_stack_image import OpenStackImage
|
|
|
725
730
|
from .open_stack_instance import OpenStackInstance
|
|
726
731
|
from .open_stack_instance_allowed_address_pairs_update_request import OpenStackInstanceAllowedAddressPairsUpdateRequest
|
|
727
732
|
from .open_stack_instance_availability_zone import OpenStackInstanceAvailabilityZone
|
|
733
|
+
from .open_stack_instance_create_order_attributes import OpenStackInstanceCreateOrderAttributes
|
|
728
734
|
from .open_stack_instance_floating_i_ps_update_request import OpenStackInstanceFloatingIPsUpdateRequest
|
|
729
735
|
from .open_stack_instance_marketplace_offering_plugin_options_type_0 import (
|
|
730
736
|
OpenStackInstanceMarketplaceOfferingPluginOptionsType0,
|
|
@@ -738,6 +744,7 @@ from .open_stack_nested_instance import OpenStackNestedInstance
|
|
|
738
744
|
from .open_stack_nested_port import OpenStackNestedPort
|
|
739
745
|
from .open_stack_nested_port_request import OpenStackNestedPortRequest
|
|
740
746
|
from .open_stack_nested_security_group import OpenStackNestedSecurityGroup
|
|
747
|
+
from .open_stack_nested_security_group_request import OpenStackNestedSecurityGroupRequest
|
|
741
748
|
from .open_stack_nested_server_group import OpenStackNestedServerGroup
|
|
742
749
|
from .open_stack_nested_sub_net import OpenStackNestedSubNet
|
|
743
750
|
from .open_stack_nested_sub_net_request import OpenStackNestedSubNetRequest
|
|
@@ -796,6 +803,7 @@ from .open_stack_sub_net_marketplace_offering_plugin_options_type_0 import (
|
|
|
796
803
|
from .open_stack_sub_net_request import OpenStackSubNetRequest
|
|
797
804
|
from .open_stack_tenant import OpenStackTenant
|
|
798
805
|
from .open_stack_tenant_change_password_request import OpenStackTenantChangePasswordRequest
|
|
806
|
+
from .open_stack_tenant_create_order_attributes import OpenStackTenantCreateOrderAttributes
|
|
799
807
|
from .open_stack_tenant_marketplace_offering_plugin_options_type_0 import (
|
|
800
808
|
OpenStackTenantMarketplaceOfferingPluginOptionsType0,
|
|
801
809
|
)
|
|
@@ -804,6 +812,7 @@ from .open_stack_tenant_quota_request import OpenStackTenantQuotaRequest
|
|
|
804
812
|
from .open_stack_tenant_request import OpenStackTenantRequest
|
|
805
813
|
from .open_stack_volume import OpenStackVolume
|
|
806
814
|
from .open_stack_volume_availability_zone import OpenStackVolumeAvailabilityZone
|
|
815
|
+
from .open_stack_volume_create_order_attributes import OpenStackVolumeCreateOrderAttributes
|
|
807
816
|
from .open_stack_volume_extend_request import OpenStackVolumeExtendRequest
|
|
808
817
|
from .open_stack_volume_marketplace_offering_plugin_options_type_0 import (
|
|
809
818
|
OpenStackVolumeMarketplaceOfferingPluginOptionsType0,
|
|
@@ -1134,6 +1143,12 @@ from .provider_requested_offering import ProviderRequestedOffering
|
|
|
1134
1143
|
from .provider_requested_resource import ProviderRequestedResource
|
|
1135
1144
|
from .provider_user import ProviderUser
|
|
1136
1145
|
from .public_call import PublicCall
|
|
1146
|
+
from .public_maintenance_announcement import PublicMaintenanceAnnouncement
|
|
1147
|
+
from .public_maintenance_announcement_state_enum import PublicMaintenanceAnnouncementStateEnum
|
|
1148
|
+
from .public_maintenance_announcements_count_o_item import PublicMaintenanceAnnouncementsCountOItem
|
|
1149
|
+
from .public_maintenance_announcements_count_state_item import PublicMaintenanceAnnouncementsCountStateItem
|
|
1150
|
+
from .public_maintenance_announcements_list_o_item import PublicMaintenanceAnnouncementsListOItem
|
|
1151
|
+
from .public_maintenance_announcements_list_state_item import PublicMaintenanceAnnouncementsListStateItem
|
|
1137
1152
|
from .public_offering_details import PublicOfferingDetails
|
|
1138
1153
|
from .public_offering_details_attributes import PublicOfferingDetailsAttributes
|
|
1139
1154
|
from .pull_marketplace_script_resource_request import PullMarketplaceScriptResourceRequest
|
|
@@ -1332,6 +1347,9 @@ from .section import Section
|
|
|
1332
1347
|
from .section_request import SectionRequest
|
|
1333
1348
|
from .service_provider import ServiceProvider
|
|
1334
1349
|
from .service_provider_api_secret_code import ServiceProviderApiSecretCode
|
|
1350
|
+
from .service_provider_compliance_overview import ServiceProviderComplianceOverview
|
|
1351
|
+
from .service_provider_offering_user_compliance import ServiceProviderOfferingUserCompliance
|
|
1352
|
+
from .service_provider_offering_user_compliance_state_enum import ServiceProviderOfferingUserComplianceStateEnum
|
|
1335
1353
|
from .service_provider_request import ServiceProviderRequest
|
|
1336
1354
|
from .service_provider_revenues import ServiceProviderRevenues
|
|
1337
1355
|
from .service_provider_signature import ServiceProviderSignature
|
|
@@ -1361,6 +1379,7 @@ from .slurm_allocations_list_field_item import SlurmAllocationsListFieldItem
|
|
|
1361
1379
|
from .slurm_allocations_list_state_item import SlurmAllocationsListStateItem
|
|
1362
1380
|
from .slurm_allocations_retrieve_field_item import SlurmAllocationsRetrieveFieldItem
|
|
1363
1381
|
from .slurm_association import SlurmAssociation
|
|
1382
|
+
from .slurm_invoices_slurm_package_create_order_attributes import SlurmInvoicesSlurmPackageCreateOrderAttributes
|
|
1364
1383
|
from .slurm_jobs_list_field_item import SlurmJobsListFieldItem
|
|
1365
1384
|
from .slurm_jobs_retrieve_field_item import SlurmJobsRetrieveFieldItem
|
|
1366
1385
|
from .smax_web_hook_receiver import SmaxWebHookReceiver
|
|
@@ -1422,6 +1441,16 @@ from .users_list_field_item import UsersListFieldItem
|
|
|
1422
1441
|
from .users_list_o_item import UsersListOItem
|
|
1423
1442
|
from .users_me_retrieve_field_item import UsersMeRetrieveFieldItem
|
|
1424
1443
|
from .users_retrieve_field_item import UsersRetrieveFieldItem
|
|
1444
|
+
from .v_mware_virtual_machine_create_order_attributes import VMwareVirtualMachineCreateOrderAttributes
|
|
1445
|
+
from .v_mware_virtual_machine_create_order_attributes_guest_os_type_1 import (
|
|
1446
|
+
VMwareVirtualMachineCreateOrderAttributesGuestOsType1,
|
|
1447
|
+
)
|
|
1448
|
+
from .v_mware_virtual_machine_create_order_attributes_guest_os_type_2_type_1 import (
|
|
1449
|
+
VMwareVirtualMachineCreateOrderAttributesGuestOsType2Type1,
|
|
1450
|
+
)
|
|
1451
|
+
from .v_mware_virtual_machine_create_order_attributes_guest_os_type_3_type_1 import (
|
|
1452
|
+
VMwareVirtualMachineCreateOrderAttributesGuestOsType3Type1,
|
|
1453
|
+
)
|
|
1425
1454
|
from .version import Version
|
|
1426
1455
|
from .visibility_enum import VisibilityEnum
|
|
1427
1456
|
from .visible_invitation_details import VisibleInvitationDetails
|
|
@@ -1479,6 +1508,7 @@ __all__ = (
|
|
|
1479
1508
|
"AccessSubnetRequest",
|
|
1480
1509
|
"AccountNameGenerationPolicyEnum",
|
|
1481
1510
|
"AdminAnnouncement",
|
|
1511
|
+
"AdminAnnouncementMaintenanceAffectedOfferingsItem",
|
|
1482
1512
|
"AdminAnnouncementRequest",
|
|
1483
1513
|
"AdminAnnouncementsCountOItem",
|
|
1484
1514
|
"AdminAnnouncementsCountTypeItem",
|
|
@@ -1542,6 +1572,7 @@ __all__ = (
|
|
|
1542
1572
|
"AzureSqlDatabasesListStateItem",
|
|
1543
1573
|
"AzureSqlDatabasesRetrieveFieldItem",
|
|
1544
1574
|
"AzureSqlServer",
|
|
1575
|
+
"AzureSQLServerCreateOrderAttributes",
|
|
1545
1576
|
"AzureSqlServerMarketplaceOfferingPluginOptionsType0",
|
|
1546
1577
|
"AzureSqlServerRequest",
|
|
1547
1578
|
"AzureSqlServersCountStateItem",
|
|
@@ -1549,6 +1580,7 @@ __all__ = (
|
|
|
1549
1580
|
"AzureSqlServersListStateItem",
|
|
1550
1581
|
"AzureSqlServersRetrieveFieldItem",
|
|
1551
1582
|
"AzureVirtualMachine",
|
|
1583
|
+
"AzureVirtualMachineCreateOrderAttributes",
|
|
1552
1584
|
"AzureVirtualMachineMarketplaceOfferingPluginOptionsType0",
|
|
1553
1585
|
"AzureVirtualMachineRequest",
|
|
1554
1586
|
"AzureVirtualmachinesCountStateItem",
|
|
@@ -1922,6 +1954,7 @@ __all__ = (
|
|
|
1922
1954
|
"MarketplaceIntegrationStatusesCountStatusItem",
|
|
1923
1955
|
"MarketplaceIntegrationStatusesListOItem",
|
|
1924
1956
|
"MarketplaceIntegrationStatusesListStatusItem",
|
|
1957
|
+
"MarketplaceManagedRancherCreateOrderAttributes",
|
|
1925
1958
|
"MarketplaceOfferingFilesCountOItem",
|
|
1926
1959
|
"MarketplaceOfferingFilesListFieldItem",
|
|
1927
1960
|
"MarketplaceOfferingFilesListOItem",
|
|
@@ -1987,6 +2020,7 @@ __all__ = (
|
|
|
1987
2020
|
"MarketplacePublicOfferingsListOItem",
|
|
1988
2021
|
"MarketplacePublicOfferingsListStateItem",
|
|
1989
2022
|
"MarketplacePublicOfferingsRetrieveFieldItem",
|
|
2023
|
+
"MarketplaceRancherCreateOrderAttributes",
|
|
1990
2024
|
"MarketplaceResourcesCountOItem",
|
|
1991
2025
|
"MarketplaceResourcesCountStateItem",
|
|
1992
2026
|
"MarketplaceResourcesDetailsRetrieveFieldItem",
|
|
@@ -1996,7 +2030,9 @@ __all__ = (
|
|
|
1996
2030
|
"MarketplaceResourcesPullResponse200",
|
|
1997
2031
|
"MarketplaceResourcesRetrieveFieldItem",
|
|
1998
2032
|
"MarketplaceRobotAccountsCountState",
|
|
2033
|
+
"MarketplaceRobotAccountsListFieldItem",
|
|
1999
2034
|
"MarketplaceRobotAccountsListState",
|
|
2035
|
+
"MarketplaceRobotAccountsRetrieveFieldItem",
|
|
2000
2036
|
"MarketplaceScreenshotsCountOItem",
|
|
2001
2037
|
"MarketplaceScreenshotsListOItem",
|
|
2002
2038
|
"MarketplaceServiceProvidersCountOItem",
|
|
@@ -2070,8 +2106,6 @@ __all__ = (
|
|
|
2070
2106
|
"NestedScreenshotRequest",
|
|
2071
2107
|
"NestedSection",
|
|
2072
2108
|
"NestedSectionRequest",
|
|
2073
|
-
"NestedSecurityGroupRule",
|
|
2074
|
-
"NestedSecurityGroupRuleRequest",
|
|
2075
2109
|
"NetworkRBACPolicy",
|
|
2076
2110
|
"NetworkRBACPolicyRequest",
|
|
2077
2111
|
"NodeDiskDriverEnum",
|
|
@@ -2165,6 +2199,7 @@ __all__ = (
|
|
|
2165
2199
|
"OpenStackInstance",
|
|
2166
2200
|
"OpenStackInstanceAllowedAddressPairsUpdateRequest",
|
|
2167
2201
|
"OpenStackInstanceAvailabilityZone",
|
|
2202
|
+
"OpenStackInstanceCreateOrderAttributes",
|
|
2168
2203
|
"OpenStackInstanceFloatingIPsUpdateRequest",
|
|
2169
2204
|
"OpenStackInstanceMarketplaceOfferingPluginOptionsType0",
|
|
2170
2205
|
"OpenStackInstancePortsUpdateRequest",
|
|
@@ -2182,6 +2217,7 @@ __all__ = (
|
|
|
2182
2217
|
"OpenStackNestedPort",
|
|
2183
2218
|
"OpenStackNestedPortRequest",
|
|
2184
2219
|
"OpenStackNestedSecurityGroup",
|
|
2220
|
+
"OpenStackNestedSecurityGroupRequest",
|
|
2185
2221
|
"OpenStackNestedServerGroup",
|
|
2186
2222
|
"OpenStackNestedSubNet",
|
|
2187
2223
|
"OpenStackNestedSubNetRequest",
|
|
@@ -2254,6 +2290,7 @@ __all__ = (
|
|
|
2254
2290
|
"OpenstackSubnetsRetrieveFieldItem",
|
|
2255
2291
|
"OpenStackTenant",
|
|
2256
2292
|
"OpenStackTenantChangePasswordRequest",
|
|
2293
|
+
"OpenStackTenantCreateOrderAttributes",
|
|
2257
2294
|
"OpenStackTenantMarketplaceOfferingPluginOptionsType0",
|
|
2258
2295
|
"OpenStackTenantQuota",
|
|
2259
2296
|
"OpenStackTenantQuotaRequest",
|
|
@@ -2266,6 +2303,7 @@ __all__ = (
|
|
|
2266
2303
|
"OpenstackTenantsRetrieveFieldItem",
|
|
2267
2304
|
"OpenStackVolume",
|
|
2268
2305
|
"OpenStackVolumeAvailabilityZone",
|
|
2306
|
+
"OpenStackVolumeCreateOrderAttributes",
|
|
2269
2307
|
"OpenStackVolumeExtendRequest",
|
|
2270
2308
|
"OpenStackVolumeMarketplaceOfferingPluginOptionsType0",
|
|
2271
2309
|
"OpenStackVolumeRequest",
|
|
@@ -2523,6 +2561,12 @@ __all__ = (
|
|
|
2523
2561
|
"ProviderRequestedResource",
|
|
2524
2562
|
"ProviderUser",
|
|
2525
2563
|
"PublicCall",
|
|
2564
|
+
"PublicMaintenanceAnnouncement",
|
|
2565
|
+
"PublicMaintenanceAnnouncementsCountOItem",
|
|
2566
|
+
"PublicMaintenanceAnnouncementsCountStateItem",
|
|
2567
|
+
"PublicMaintenanceAnnouncementsListOItem",
|
|
2568
|
+
"PublicMaintenanceAnnouncementsListStateItem",
|
|
2569
|
+
"PublicMaintenanceAnnouncementStateEnum",
|
|
2526
2570
|
"PublicOfferingDetails",
|
|
2527
2571
|
"PublicOfferingDetailsAttributes",
|
|
2528
2572
|
"PullMarketplaceScriptResourceRequest",
|
|
@@ -2713,6 +2757,9 @@ __all__ = (
|
|
|
2713
2757
|
"SectionRequest",
|
|
2714
2758
|
"ServiceProvider",
|
|
2715
2759
|
"ServiceProviderApiSecretCode",
|
|
2760
|
+
"ServiceProviderComplianceOverview",
|
|
2761
|
+
"ServiceProviderOfferingUserCompliance",
|
|
2762
|
+
"ServiceProviderOfferingUserComplianceStateEnum",
|
|
2716
2763
|
"ServiceProviderRequest",
|
|
2717
2764
|
"ServiceProviderRevenues",
|
|
2718
2765
|
"ServiceProviderSignature",
|
|
@@ -2740,6 +2787,7 @@ __all__ = (
|
|
|
2740
2787
|
"SlurmAllocationsRetrieveFieldItem",
|
|
2741
2788
|
"SlurmAllocationUserUsage",
|
|
2742
2789
|
"SlurmAssociation",
|
|
2790
|
+
"SlurmInvoicesSlurmPackageCreateOrderAttributes",
|
|
2743
2791
|
"SlurmJobsListFieldItem",
|
|
2744
2792
|
"SlurmJobsRetrieveFieldItem",
|
|
2745
2793
|
"SmaxWebHookReceiver",
|
|
@@ -2834,6 +2882,10 @@ __all__ = (
|
|
|
2834
2882
|
"VmwareTemplate",
|
|
2835
2883
|
"VmwareVirtualMachine",
|
|
2836
2884
|
"VmwareVirtualMachineCountStateItem",
|
|
2885
|
+
"VMwareVirtualMachineCreateOrderAttributes",
|
|
2886
|
+
"VMwareVirtualMachineCreateOrderAttributesGuestOsType1",
|
|
2887
|
+
"VMwareVirtualMachineCreateOrderAttributesGuestOsType2Type1",
|
|
2888
|
+
"VMwareVirtualMachineCreateOrderAttributesGuestOsType3Type1",
|
|
2837
2889
|
"VmwareVirtualMachineListFieldItem",
|
|
2838
2890
|
"VmwareVirtualMachineListStateItem",
|
|
2839
2891
|
"VmwareVirtualMachineMarketplaceOfferingPluginOptionsType0",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import datetime
|
|
2
2
|
from collections.abc import Mapping
|
|
3
|
-
from typing import Any, TypeVar, Union
|
|
3
|
+
from typing import TYPE_CHECKING, Any, TypeVar, Union
|
|
4
4
|
from uuid import UUID
|
|
5
5
|
|
|
6
6
|
from attrs import define as _attrs_define
|
|
@@ -10,6 +10,12 @@ from dateutil.parser import isoparse
|
|
|
10
10
|
from ..models.admin_announcement_type_enum import AdminAnnouncementTypeEnum
|
|
11
11
|
from ..types import UNSET, Unset
|
|
12
12
|
|
|
13
|
+
if TYPE_CHECKING:
|
|
14
|
+
from ..models.admin_announcement_maintenance_affected_offerings_item import (
|
|
15
|
+
AdminAnnouncementMaintenanceAffectedOfferingsItem,
|
|
16
|
+
)
|
|
17
|
+
|
|
18
|
+
|
|
13
19
|
T = TypeVar("T", bound="AdminAnnouncement")
|
|
14
20
|
|
|
15
21
|
|
|
@@ -24,6 +30,14 @@ class AdminAnnouncement:
|
|
|
24
30
|
is_active (Union[Unset, bool]):
|
|
25
31
|
type_ (Union[Unset, AdminAnnouncementTypeEnum]):
|
|
26
32
|
created (Union[Unset, datetime.datetime]):
|
|
33
|
+
maintenance_uuid (Union[Unset, str]):
|
|
34
|
+
maintenance_name (Union[Unset, str]):
|
|
35
|
+
maintenance_type (Union[Unset, str]):
|
|
36
|
+
maintenance_state (Union[Unset, str]):
|
|
37
|
+
maintenance_scheduled_start (Union[Unset, datetime.datetime]):
|
|
38
|
+
maintenance_scheduled_end (Union[Unset, datetime.datetime]):
|
|
39
|
+
maintenance_service_provider (Union[Unset, str]):
|
|
40
|
+
maintenance_affected_offerings (Union[Unset, list['AdminAnnouncementMaintenanceAffectedOfferingsItem']]):
|
|
27
41
|
"""
|
|
28
42
|
|
|
29
43
|
uuid: Union[Unset, UUID] = UNSET
|
|
@@ -33,6 +47,14 @@ class AdminAnnouncement:
|
|
|
33
47
|
is_active: Union[Unset, bool] = UNSET
|
|
34
48
|
type_: Union[Unset, AdminAnnouncementTypeEnum] = UNSET
|
|
35
49
|
created: Union[Unset, datetime.datetime] = UNSET
|
|
50
|
+
maintenance_uuid: Union[Unset, str] = UNSET
|
|
51
|
+
maintenance_name: Union[Unset, str] = UNSET
|
|
52
|
+
maintenance_type: Union[Unset, str] = UNSET
|
|
53
|
+
maintenance_state: Union[Unset, str] = UNSET
|
|
54
|
+
maintenance_scheduled_start: Union[Unset, datetime.datetime] = UNSET
|
|
55
|
+
maintenance_scheduled_end: Union[Unset, datetime.datetime] = UNSET
|
|
56
|
+
maintenance_service_provider: Union[Unset, str] = UNSET
|
|
57
|
+
maintenance_affected_offerings: Union[Unset, list["AdminAnnouncementMaintenanceAffectedOfferingsItem"]] = UNSET
|
|
36
58
|
additional_properties: dict[str, Any] = _attrs_field(init=False, factory=dict)
|
|
37
59
|
|
|
38
60
|
def to_dict(self) -> dict[str, Any]:
|
|
@@ -60,6 +82,31 @@ class AdminAnnouncement:
|
|
|
60
82
|
if not isinstance(self.created, Unset):
|
|
61
83
|
created = self.created.isoformat()
|
|
62
84
|
|
|
85
|
+
maintenance_uuid = self.maintenance_uuid
|
|
86
|
+
|
|
87
|
+
maintenance_name = self.maintenance_name
|
|
88
|
+
|
|
89
|
+
maintenance_type = self.maintenance_type
|
|
90
|
+
|
|
91
|
+
maintenance_state = self.maintenance_state
|
|
92
|
+
|
|
93
|
+
maintenance_scheduled_start: Union[Unset, str] = UNSET
|
|
94
|
+
if not isinstance(self.maintenance_scheduled_start, Unset):
|
|
95
|
+
maintenance_scheduled_start = self.maintenance_scheduled_start.isoformat()
|
|
96
|
+
|
|
97
|
+
maintenance_scheduled_end: Union[Unset, str] = UNSET
|
|
98
|
+
if not isinstance(self.maintenance_scheduled_end, Unset):
|
|
99
|
+
maintenance_scheduled_end = self.maintenance_scheduled_end.isoformat()
|
|
100
|
+
|
|
101
|
+
maintenance_service_provider = self.maintenance_service_provider
|
|
102
|
+
|
|
103
|
+
maintenance_affected_offerings: Union[Unset, list[dict[str, Any]]] = UNSET
|
|
104
|
+
if not isinstance(self.maintenance_affected_offerings, Unset):
|
|
105
|
+
maintenance_affected_offerings = []
|
|
106
|
+
for maintenance_affected_offerings_item_data in self.maintenance_affected_offerings:
|
|
107
|
+
maintenance_affected_offerings_item = maintenance_affected_offerings_item_data.to_dict()
|
|
108
|
+
maintenance_affected_offerings.append(maintenance_affected_offerings_item)
|
|
109
|
+
|
|
63
110
|
field_dict: dict[str, Any] = {}
|
|
64
111
|
field_dict.update(self.additional_properties)
|
|
65
112
|
field_dict.update({})
|
|
@@ -77,11 +124,31 @@ class AdminAnnouncement:
|
|
|
77
124
|
field_dict["type"] = type_
|
|
78
125
|
if created is not UNSET:
|
|
79
126
|
field_dict["created"] = created
|
|
127
|
+
if maintenance_uuid is not UNSET:
|
|
128
|
+
field_dict["maintenance_uuid"] = maintenance_uuid
|
|
129
|
+
if maintenance_name is not UNSET:
|
|
130
|
+
field_dict["maintenance_name"] = maintenance_name
|
|
131
|
+
if maintenance_type is not UNSET:
|
|
132
|
+
field_dict["maintenance_type"] = maintenance_type
|
|
133
|
+
if maintenance_state is not UNSET:
|
|
134
|
+
field_dict["maintenance_state"] = maintenance_state
|
|
135
|
+
if maintenance_scheduled_start is not UNSET:
|
|
136
|
+
field_dict["maintenance_scheduled_start"] = maintenance_scheduled_start
|
|
137
|
+
if maintenance_scheduled_end is not UNSET:
|
|
138
|
+
field_dict["maintenance_scheduled_end"] = maintenance_scheduled_end
|
|
139
|
+
if maintenance_service_provider is not UNSET:
|
|
140
|
+
field_dict["maintenance_service_provider"] = maintenance_service_provider
|
|
141
|
+
if maintenance_affected_offerings is not UNSET:
|
|
142
|
+
field_dict["maintenance_affected_offerings"] = maintenance_affected_offerings
|
|
80
143
|
|
|
81
144
|
return field_dict
|
|
82
145
|
|
|
83
146
|
@classmethod
|
|
84
147
|
def from_dict(cls: type[T], src_dict: Mapping[str, Any]) -> T:
|
|
148
|
+
from ..models.admin_announcement_maintenance_affected_offerings_item import (
|
|
149
|
+
AdminAnnouncementMaintenanceAffectedOfferingsItem,
|
|
150
|
+
)
|
|
151
|
+
|
|
85
152
|
d = dict(src_dict)
|
|
86
153
|
_uuid = d.pop("uuid", UNSET)
|
|
87
154
|
uuid: Union[Unset, UUID]
|
|
@@ -122,6 +189,39 @@ class AdminAnnouncement:
|
|
|
122
189
|
else:
|
|
123
190
|
created = isoparse(_created)
|
|
124
191
|
|
|
192
|
+
maintenance_uuid = d.pop("maintenance_uuid", UNSET)
|
|
193
|
+
|
|
194
|
+
maintenance_name = d.pop("maintenance_name", UNSET)
|
|
195
|
+
|
|
196
|
+
maintenance_type = d.pop("maintenance_type", UNSET)
|
|
197
|
+
|
|
198
|
+
maintenance_state = d.pop("maintenance_state", UNSET)
|
|
199
|
+
|
|
200
|
+
_maintenance_scheduled_start = d.pop("maintenance_scheduled_start", UNSET)
|
|
201
|
+
maintenance_scheduled_start: Union[Unset, datetime.datetime]
|
|
202
|
+
if isinstance(_maintenance_scheduled_start, Unset):
|
|
203
|
+
maintenance_scheduled_start = UNSET
|
|
204
|
+
else:
|
|
205
|
+
maintenance_scheduled_start = isoparse(_maintenance_scheduled_start)
|
|
206
|
+
|
|
207
|
+
_maintenance_scheduled_end = d.pop("maintenance_scheduled_end", UNSET)
|
|
208
|
+
maintenance_scheduled_end: Union[Unset, datetime.datetime]
|
|
209
|
+
if isinstance(_maintenance_scheduled_end, Unset):
|
|
210
|
+
maintenance_scheduled_end = UNSET
|
|
211
|
+
else:
|
|
212
|
+
maintenance_scheduled_end = isoparse(_maintenance_scheduled_end)
|
|
213
|
+
|
|
214
|
+
maintenance_service_provider = d.pop("maintenance_service_provider", UNSET)
|
|
215
|
+
|
|
216
|
+
maintenance_affected_offerings = []
|
|
217
|
+
_maintenance_affected_offerings = d.pop("maintenance_affected_offerings", UNSET)
|
|
218
|
+
for maintenance_affected_offerings_item_data in _maintenance_affected_offerings or []:
|
|
219
|
+
maintenance_affected_offerings_item = AdminAnnouncementMaintenanceAffectedOfferingsItem.from_dict(
|
|
220
|
+
maintenance_affected_offerings_item_data
|
|
221
|
+
)
|
|
222
|
+
|
|
223
|
+
maintenance_affected_offerings.append(maintenance_affected_offerings_item)
|
|
224
|
+
|
|
125
225
|
admin_announcement = cls(
|
|
126
226
|
uuid=uuid,
|
|
127
227
|
description=description,
|
|
@@ -130,6 +230,14 @@ class AdminAnnouncement:
|
|
|
130
230
|
is_active=is_active,
|
|
131
231
|
type_=type_,
|
|
132
232
|
created=created,
|
|
233
|
+
maintenance_uuid=maintenance_uuid,
|
|
234
|
+
maintenance_name=maintenance_name,
|
|
235
|
+
maintenance_type=maintenance_type,
|
|
236
|
+
maintenance_state=maintenance_state,
|
|
237
|
+
maintenance_scheduled_start=maintenance_scheduled_start,
|
|
238
|
+
maintenance_scheduled_end=maintenance_scheduled_end,
|
|
239
|
+
maintenance_service_provider=maintenance_service_provider,
|
|
240
|
+
maintenance_affected_offerings=maintenance_affected_offerings,
|
|
133
241
|
)
|
|
134
242
|
|
|
135
243
|
admin_announcement.additional_properties = d
|
|
@@ -0,0 +1,103 @@
|
|
|
1
|
+
from collections.abc import Mapping
|
|
2
|
+
from typing import Any, TypeVar, Union
|
|
3
|
+
from uuid import UUID
|
|
4
|
+
|
|
5
|
+
from attrs import define as _attrs_define
|
|
6
|
+
from attrs import field as _attrs_field
|
|
7
|
+
|
|
8
|
+
from ..types import UNSET, Unset
|
|
9
|
+
|
|
10
|
+
T = TypeVar("T", bound="AdminAnnouncementMaintenanceAffectedOfferingsItem")
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
@_attrs_define
|
|
14
|
+
class AdminAnnouncementMaintenanceAffectedOfferingsItem:
|
|
15
|
+
"""
|
|
16
|
+
Attributes:
|
|
17
|
+
uuid (Union[Unset, UUID]):
|
|
18
|
+
name (Union[Unset, str]):
|
|
19
|
+
impact_level (Union[Unset, str]):
|
|
20
|
+
impact_level_display (Union[Unset, str]):
|
|
21
|
+
impact_description (Union[Unset, str]):
|
|
22
|
+
"""
|
|
23
|
+
|
|
24
|
+
uuid: Union[Unset, UUID] = UNSET
|
|
25
|
+
name: Union[Unset, str] = UNSET
|
|
26
|
+
impact_level: Union[Unset, str] = UNSET
|
|
27
|
+
impact_level_display: Union[Unset, str] = UNSET
|
|
28
|
+
impact_description: Union[Unset, str] = UNSET
|
|
29
|
+
additional_properties: dict[str, Any] = _attrs_field(init=False, factory=dict)
|
|
30
|
+
|
|
31
|
+
def to_dict(self) -> dict[str, Any]:
|
|
32
|
+
uuid: Union[Unset, str] = UNSET
|
|
33
|
+
if not isinstance(self.uuid, Unset):
|
|
34
|
+
uuid = str(self.uuid)
|
|
35
|
+
|
|
36
|
+
name = self.name
|
|
37
|
+
|
|
38
|
+
impact_level = self.impact_level
|
|
39
|
+
|
|
40
|
+
impact_level_display = self.impact_level_display
|
|
41
|
+
|
|
42
|
+
impact_description = self.impact_description
|
|
43
|
+
|
|
44
|
+
field_dict: dict[str, Any] = {}
|
|
45
|
+
field_dict.update(self.additional_properties)
|
|
46
|
+
field_dict.update({})
|
|
47
|
+
if uuid is not UNSET:
|
|
48
|
+
field_dict["uuid"] = uuid
|
|
49
|
+
if name is not UNSET:
|
|
50
|
+
field_dict["name"] = name
|
|
51
|
+
if impact_level is not UNSET:
|
|
52
|
+
field_dict["impact_level"] = impact_level
|
|
53
|
+
if impact_level_display is not UNSET:
|
|
54
|
+
field_dict["impact_level_display"] = impact_level_display
|
|
55
|
+
if impact_description is not UNSET:
|
|
56
|
+
field_dict["impact_description"] = impact_description
|
|
57
|
+
|
|
58
|
+
return field_dict
|
|
59
|
+
|
|
60
|
+
@classmethod
|
|
61
|
+
def from_dict(cls: type[T], src_dict: Mapping[str, Any]) -> T:
|
|
62
|
+
d = dict(src_dict)
|
|
63
|
+
_uuid = d.pop("uuid", UNSET)
|
|
64
|
+
uuid: Union[Unset, UUID]
|
|
65
|
+
if isinstance(_uuid, Unset):
|
|
66
|
+
uuid = UNSET
|
|
67
|
+
else:
|
|
68
|
+
uuid = UUID(_uuid)
|
|
69
|
+
|
|
70
|
+
name = d.pop("name", UNSET)
|
|
71
|
+
|
|
72
|
+
impact_level = d.pop("impact_level", UNSET)
|
|
73
|
+
|
|
74
|
+
impact_level_display = d.pop("impact_level_display", UNSET)
|
|
75
|
+
|
|
76
|
+
impact_description = d.pop("impact_description", UNSET)
|
|
77
|
+
|
|
78
|
+
admin_announcement_maintenance_affected_offerings_item = cls(
|
|
79
|
+
uuid=uuid,
|
|
80
|
+
name=name,
|
|
81
|
+
impact_level=impact_level,
|
|
82
|
+
impact_level_display=impact_level_display,
|
|
83
|
+
impact_description=impact_description,
|
|
84
|
+
)
|
|
85
|
+
|
|
86
|
+
admin_announcement_maintenance_affected_offerings_item.additional_properties = d
|
|
87
|
+
return admin_announcement_maintenance_affected_offerings_item
|
|
88
|
+
|
|
89
|
+
@property
|
|
90
|
+
def additional_keys(self) -> list[str]:
|
|
91
|
+
return list(self.additional_properties.keys())
|
|
92
|
+
|
|
93
|
+
def __getitem__(self, key: str) -> Any:
|
|
94
|
+
return self.additional_properties[key]
|
|
95
|
+
|
|
96
|
+
def __setitem__(self, key: str, value: Any) -> None:
|
|
97
|
+
self.additional_properties[key] = value
|
|
98
|
+
|
|
99
|
+
def __delitem__(self, key: str) -> None:
|
|
100
|
+
del self.additional_properties[key]
|
|
101
|
+
|
|
102
|
+
def __contains__(self, key: str) -> bool:
|
|
103
|
+
return key in self.additional_properties
|