waldur-api-client 7.7.5__py3-none-any.whl → 7.7.7__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/booking_resources/booking_resources_count.py +34 -11
- waldur_api_client/api/booking_resources/booking_resources_list.py +34 -11
- waldur_api_client/api/customers/customers_project_metadata_compliance_details_list.py +189 -0
- waldur_api_client/api/customers/customers_project_metadata_compliance_overview_list.py +189 -0
- waldur_api_client/api/customers/customers_project_metadata_compliance_projects_list.py +187 -0
- waldur_api_client/api/customers/customers_project_metadata_question_answers_list.py +187 -0
- waldur_api_client/api/marketplace_integration_statuses/marketplace_integration_statuses_count.py +34 -11
- waldur_api_client/api/marketplace_integration_statuses/marketplace_integration_statuses_list.py +34 -11
- waldur_api_client/api/marketplace_offering_files/marketplace_offering_files_count.py +34 -11
- waldur_api_client/api/marketplace_offering_files/marketplace_offering_files_list.py +34 -11
- waldur_api_client/api/marketplace_offering_terms_of_service/__init__.py +1 -0
- waldur_api_client/api/marketplace_offering_terms_of_service/marketplace_offering_terms_of_service_count.py +274 -0
- waldur_api_client/api/marketplace_offering_terms_of_service/marketplace_offering_terms_of_service_create.py +152 -0
- waldur_api_client/api/marketplace_offering_terms_of_service/marketplace_offering_terms_of_service_destroy.py +89 -0
- waldur_api_client/api/marketplace_offering_terms_of_service/marketplace_offering_terms_of_service_list.py +277 -0
- waldur_api_client/api/marketplace_offering_terms_of_service/marketplace_offering_terms_of_service_partial_update.py +164 -0
- waldur_api_client/api/marketplace_offering_terms_of_service/marketplace_offering_terms_of_service_retrieve.py +142 -0
- waldur_api_client/api/marketplace_offering_terms_of_service/marketplace_offering_terms_of_service_update.py +164 -0
- waldur_api_client/api/marketplace_offering_user_roles/marketplace_offering_user_roles_count.py +34 -11
- waldur_api_client/api/marketplace_offering_user_roles/marketplace_offering_user_roles_list.py +34 -11
- 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_count.py +34 -11
- waldur_api_client/api/marketplace_offering_users/marketplace_offering_users_list.py +34 -11
- waldur_api_client/api/marketplace_offering_users/marketplace_offering_users_submit_answers.py +179 -0
- waldur_api_client/api/marketplace_orders/marketplace_orders_count.py +19 -0
- waldur_api_client/api/marketplace_orders/marketplace_orders_list.py +19 -0
- waldur_api_client/api/marketplace_plans/marketplace_plans_count.py +19 -0
- waldur_api_client/api/marketplace_plans/marketplace_plans_list.py +19 -0
- waldur_api_client/api/marketplace_plans/marketplace_plans_usage_stats_count.py +19 -0
- waldur_api_client/api/marketplace_plans/marketplace_plans_usage_stats_list.py +19 -0
- waldur_api_client/api/marketplace_provider_resources/marketplace_provider_resources_count.py +34 -11
- waldur_api_client/api/marketplace_provider_resources/marketplace_provider_resources_list.py +34 -11
- waldur_api_client/api/marketplace_resources/marketplace_resources_count.py +34 -11
- waldur_api_client/api/marketplace_resources/marketplace_resources_list.py +34 -11
- 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_screenshots/marketplace_screenshots_count.py +34 -11
- waldur_api_client/api/marketplace_screenshots/marketplace_screenshots_list.py +34 -11
- 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/marketplace_user_offering_consents/__init__.py +1 -0
- waldur_api_client/api/marketplace_user_offering_consents/marketplace_user_offering_consents_count.py +307 -0
- waldur_api_client/api/marketplace_user_offering_consents/marketplace_user_offering_consents_create.py +152 -0
- waldur_api_client/api/marketplace_user_offering_consents/marketplace_user_offering_consents_destroy.py +89 -0
- waldur_api_client/api/marketplace_user_offering_consents/marketplace_user_offering_consents_list.py +310 -0
- waldur_api_client/api/marketplace_user_offering_consents/marketplace_user_offering_consents_partial_update.py +164 -0
- waldur_api_client/api/marketplace_user_offering_consents/marketplace_user_offering_consents_retrieve.py +142 -0
- waldur_api_client/api/marketplace_user_offering_consents/marketplace_user_offering_consents_revoke.py +146 -0
- waldur_api_client/api/marketplace_user_offering_consents/marketplace_user_offering_consents_update.py +164 -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/api/remote_waldur_api/remote_waldur_api_remote_resource_order_status_retrieve.py +145 -0
- waldur_api_client/api/remote_waldur_api/remote_waldur_api_remote_resource_status_retrieve.py +147 -0
- waldur_api_client/api/remote_waldur_api/remote_waldur_api_remote_resource_team_status_list.py +188 -0
- waldur_api_client/models/__init__.py +118 -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 +83 -0
- waldur_api_client/models/azure_virtual_machine_create_order_attributes.py +99 -0
- waldur_api_client/models/basic_user.py +30 -21
- waldur_api_client/models/booking_offerings_list_field_item.py +1 -2
- waldur_api_client/models/booking_offerings_retrieve_field_item.py +1 -2
- waldur_api_client/models/booking_resource.py +10 -9
- waldur_api_client/models/booking_resources_list_field_item.py +1 -1
- waldur_api_client/models/booking_resources_retrieve_field_item.py +1 -1
- waldur_api_client/models/checklist_info.py +76 -0
- waldur_api_client/models/compliance_overview.py +91 -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 +51 -0
- waldur_api_client/models/customers_list_field_item.py +2 -0
- waldur_api_client/models/customers_retrieve_field_item.py +2 -0
- waldur_api_client/models/fingerprint.py +19 -17
- waldur_api_client/models/generic_order_attributes.py +69 -0
- waldur_api_client/models/google_auth_authorize_retrieve_field_item.py +1 -0
- waldur_api_client/models/google_auth_list_field_item.py +1 -0
- waldur_api_client/models/google_auth_retrieve_field_item.py +1 -0
- waldur_api_client/models/google_credentials.py +9 -0
- waldur_api_client/models/group_invitation.py +24 -0
- waldur_api_client/models/group_invitation_request.py +10 -0
- waldur_api_client/models/instance_flavor_change_request.py +1 -1
- waldur_api_client/models/maintenance_announcement.py +8 -0
- waldur_api_client/models/marketplace_managed_rancher_create_order_attributes.py +144 -0
- waldur_api_client/models/marketplace_offering_terms_of_service_count_o_item.py +13 -0
- waldur_api_client/models/marketplace_offering_terms_of_service_list_o_item.py +13 -0
- waldur_api_client/models/marketplace_orders_list_field_item.py +1 -1
- waldur_api_client/models/marketplace_orders_retrieve_field_item.py +1 -1
- waldur_api_client/models/marketplace_provider_offerings_list_customer_service_accounts_retrieve_field_item.py +1 -2
- waldur_api_client/models/marketplace_provider_offerings_list_field_item.py +1 -2
- waldur_api_client/models/marketplace_provider_offerings_list_project_service_accounts_retrieve_field_item.py +1 -2
- waldur_api_client/models/marketplace_provider_offerings_retrieve_field_item.py +1 -2
- waldur_api_client/models/marketplace_provider_offerings_stats_retrieve_field_item.py +1 -2
- waldur_api_client/models/marketplace_provider_offerings_user_has_resource_access_retrieve_field_item.py +1 -2
- waldur_api_client/models/marketplace_provider_resources_details_retrieve_field_item.py +1 -1
- waldur_api_client/models/marketplace_provider_resources_list_field_item.py +1 -1
- waldur_api_client/models/marketplace_provider_resources_retrieve_field_item.py +1 -1
- waldur_api_client/models/marketplace_public_offerings_list_field_item.py +1 -2
- waldur_api_client/models/marketplace_public_offerings_retrieve_field_item.py +1 -2
- waldur_api_client/models/marketplace_rancher_create_order_attributes.py +145 -0
- waldur_api_client/models/marketplace_resources_details_retrieve_field_item.py +1 -1
- waldur_api_client/models/marketplace_resources_list_field_item.py +1 -1
- waldur_api_client/models/marketplace_resources_retrieve_field_item.py +1 -1
- 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/marketplace_service_providers_list_field_item.py +1 -0
- waldur_api_client/models/marketplace_service_providers_retrieve_field_item.py +1 -0
- waldur_api_client/models/marketplace_user_offering_consents_count_o_item.py +15 -0
- waldur_api_client/models/marketplace_user_offering_consents_list_o_item.py +15 -0
- waldur_api_client/models/offering.py +9 -18
- waldur_api_client/models/offering_create.py +8 -18
- waldur_api_client/models/offering_create_request.py +0 -18
- waldur_api_client/models/offering_overview_update_request.py +0 -18
- waldur_api_client/models/offering_terms_of_service.py +142 -0
- waldur_api_client/models/offering_terms_of_service_create.py +107 -0
- waldur_api_client/models/offering_terms_of_service_create_request.py +107 -0
- waldur_api_client/models/offering_terms_of_service_request.py +96 -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 +283 -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 +16 -16
- waldur_api_client/models/open_stack_nested_security_group_request.py +59 -0
- waldur_api_client/models/{nested_security_group_rule_request.py → open_stack_nested_security_group_rules_item.py} +73 -63
- 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 +23 -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 +10 -9
- 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 +41 -3
- waldur_api_client/models/open_stack_tenant_create_order_attributes.py +130 -0
- waldur_api_client/models/open_stack_volume.py +9 -9
- waldur_api_client/models/open_stack_volume_create_order_attributes.py +155 -0
- waldur_api_client/models/open_stack_volume_request.py +1 -1
- waldur_api_client/models/openstack_networks_list_field_item.py +1 -0
- waldur_api_client/models/openstack_networks_retrieve_field_item.py +1 -0
- waldur_api_client/models/openstack_tenants_list_field_item.py +3 -0
- waldur_api_client/models/openstack_tenants_retrieve_field_item.py +3 -0
- waldur_api_client/models/order_create.py +0 -8
- waldur_api_client/models/order_create_request.py +181 -4
- waldur_api_client/models/order_details.py +0 -9
- waldur_api_client/models/patched_offering_terms_of_service_request.py +96 -0
- 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/patched_user_offering_consent_request.py +59 -0
- waldur_api_client/models/permission_project.py +147 -0
- waldur_api_client/models/permission_request.py +2 -2
- waldur_api_client/models/project_answer.py +122 -0
- waldur_api_client/models/project_detail.py +133 -0
- waldur_api_client/models/project_details_response.py +115 -0
- waldur_api_client/models/provider_offering_details.py +9 -18
- waldur_api_client/models/provider_offering_details_request.py +0 -18
- 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 -18
- waldur_api_client/models/question_answer.py +176 -0
- waldur_api_client/models/question_answer_project_answers_item.py +44 -0
- waldur_api_client/models/question_answer_question_options_item.py +44 -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/remote_resource_order.py +88 -0
- waldur_api_client/models/remote_resource_order_remote_state_enum.py +15 -0
- waldur_api_client/models/remote_resource_sync_status.py +123 -0
- waldur_api_client/models/remote_resource_sync_status_remote_state_enum.py +13 -0
- waldur_api_client/models/remote_resource_team_member.py +85 -0
- waldur_api_client/models/resource.py +10 -9
- waldur_api_client/models/robot_account_details.py +226 -144
- waldur_api_client/models/service_provider.py +9 -0
- 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 +75 -0
- waldur_api_client/models/sync_status_enum.py +10 -0
- waldur_api_client/models/user_offering_consent.py +202 -0
- waldur_api_client/models/user_offering_consent_create.py +60 -0
- waldur_api_client/models/user_offering_consent_create_request.py +60 -0
- waldur_api_client/models/user_offering_consent_request.py +59 -0
- waldur_api_client/models/v_mware_virtual_machine_create_order_attributes.py +228 -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.7.dist-info}/METADATA +1 -1
- {waldur_api_client-7.7.5.dist-info → waldur_api_client-7.7.7.dist-info}/RECORD +228 -138
- waldur_api_client/models/nested_security_group_rule.py +0 -222
- {waldur_api_client-7.7.5.dist-info → waldur_api_client-7.7.7.dist-info}/LICENSE +0 -0
- {waldur_api_client-7.7.5.dist-info → waldur_api_client-7.7.7.dist-info}/WHEEL +0 -0
|
@@ -1,222 +0,0 @@
|
|
|
1
|
-
from collections.abc import Mapping
|
|
2
|
-
from typing import Any, TypeVar, Union, cast
|
|
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 ..models.blank_enum import BlankEnum
|
|
9
|
-
from ..models.direction_enum import DirectionEnum
|
|
10
|
-
from ..models.ethertype_enum import EthertypeEnum
|
|
11
|
-
from ..models.protocol_enum import ProtocolEnum
|
|
12
|
-
from ..types import UNSET, Unset
|
|
13
|
-
|
|
14
|
-
T = TypeVar("T", bound="NestedSecurityGroupRule")
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
@_attrs_define
|
|
18
|
-
class NestedSecurityGroupRule:
|
|
19
|
-
"""
|
|
20
|
-
Attributes:
|
|
21
|
-
ethertype (Union[Unset, EthertypeEnum]):
|
|
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]):
|
|
27
|
-
description (Union[Unset, str]):
|
|
28
|
-
remote_group_name (Union[Unset, str]):
|
|
29
|
-
remote_group_uuid (Union[Unset, UUID]):
|
|
30
|
-
id (Union[Unset, int]):
|
|
31
|
-
"""
|
|
32
|
-
|
|
33
|
-
ethertype: Union[Unset, EthertypeEnum] = UNSET
|
|
34
|
-
direction: Union[Unset, DirectionEnum] = UNSET
|
|
35
|
-
protocol: Union[BlankEnum, ProtocolEnum, Unset] = UNSET
|
|
36
|
-
from_port: Union[None, Unset, int] = UNSET
|
|
37
|
-
to_port: Union[None, Unset, int] = UNSET
|
|
38
|
-
cidr: Union[None, Unset, str] = UNSET
|
|
39
|
-
description: Union[Unset, str] = UNSET
|
|
40
|
-
remote_group_name: Union[Unset, str] = UNSET
|
|
41
|
-
remote_group_uuid: Union[Unset, UUID] = UNSET
|
|
42
|
-
id: Union[Unset, int] = UNSET
|
|
43
|
-
additional_properties: dict[str, Any] = _attrs_field(init=False, factory=dict)
|
|
44
|
-
|
|
45
|
-
def to_dict(self) -> dict[str, Any]:
|
|
46
|
-
ethertype: Union[Unset, str] = UNSET
|
|
47
|
-
if not isinstance(self.ethertype, Unset):
|
|
48
|
-
ethertype = self.ethertype.value
|
|
49
|
-
|
|
50
|
-
direction: Union[Unset, str] = UNSET
|
|
51
|
-
if not isinstance(self.direction, Unset):
|
|
52
|
-
direction = self.direction.value
|
|
53
|
-
|
|
54
|
-
protocol: Union[Unset, str]
|
|
55
|
-
if isinstance(self.protocol, Unset):
|
|
56
|
-
protocol = UNSET
|
|
57
|
-
elif isinstance(self.protocol, ProtocolEnum):
|
|
58
|
-
protocol = self.protocol.value
|
|
59
|
-
else:
|
|
60
|
-
protocol = self.protocol.value
|
|
61
|
-
|
|
62
|
-
from_port: Union[None, Unset, int]
|
|
63
|
-
if isinstance(self.from_port, Unset):
|
|
64
|
-
from_port = UNSET
|
|
65
|
-
else:
|
|
66
|
-
from_port = self.from_port
|
|
67
|
-
|
|
68
|
-
to_port: Union[None, Unset, int]
|
|
69
|
-
if isinstance(self.to_port, Unset):
|
|
70
|
-
to_port = UNSET
|
|
71
|
-
else:
|
|
72
|
-
to_port = self.to_port
|
|
73
|
-
|
|
74
|
-
cidr: Union[None, Unset, str]
|
|
75
|
-
if isinstance(self.cidr, Unset):
|
|
76
|
-
cidr = UNSET
|
|
77
|
-
else:
|
|
78
|
-
cidr = self.cidr
|
|
79
|
-
|
|
80
|
-
description = self.description
|
|
81
|
-
|
|
82
|
-
remote_group_name = self.remote_group_name
|
|
83
|
-
|
|
84
|
-
remote_group_uuid: Union[Unset, str] = UNSET
|
|
85
|
-
if not isinstance(self.remote_group_uuid, Unset):
|
|
86
|
-
remote_group_uuid = str(self.remote_group_uuid)
|
|
87
|
-
|
|
88
|
-
id = self.id
|
|
89
|
-
|
|
90
|
-
field_dict: dict[str, Any] = {}
|
|
91
|
-
field_dict.update(self.additional_properties)
|
|
92
|
-
field_dict.update({})
|
|
93
|
-
if ethertype is not UNSET:
|
|
94
|
-
field_dict["ethertype"] = ethertype
|
|
95
|
-
if direction is not UNSET:
|
|
96
|
-
field_dict["direction"] = direction
|
|
97
|
-
if protocol is not UNSET:
|
|
98
|
-
field_dict["protocol"] = protocol
|
|
99
|
-
if from_port is not UNSET:
|
|
100
|
-
field_dict["from_port"] = from_port
|
|
101
|
-
if to_port is not UNSET:
|
|
102
|
-
field_dict["to_port"] = to_port
|
|
103
|
-
if cidr is not UNSET:
|
|
104
|
-
field_dict["cidr"] = cidr
|
|
105
|
-
if description is not UNSET:
|
|
106
|
-
field_dict["description"] = description
|
|
107
|
-
if remote_group_name is not UNSET:
|
|
108
|
-
field_dict["remote_group_name"] = remote_group_name
|
|
109
|
-
if remote_group_uuid is not UNSET:
|
|
110
|
-
field_dict["remote_group_uuid"] = remote_group_uuid
|
|
111
|
-
if id is not UNSET:
|
|
112
|
-
field_dict["id"] = id
|
|
113
|
-
|
|
114
|
-
return field_dict
|
|
115
|
-
|
|
116
|
-
@classmethod
|
|
117
|
-
def from_dict(cls: type[T], src_dict: Mapping[str, Any]) -> T:
|
|
118
|
-
d = dict(src_dict)
|
|
119
|
-
_ethertype = d.pop("ethertype", UNSET)
|
|
120
|
-
ethertype: Union[Unset, EthertypeEnum]
|
|
121
|
-
if isinstance(_ethertype, Unset):
|
|
122
|
-
ethertype = UNSET
|
|
123
|
-
else:
|
|
124
|
-
ethertype = EthertypeEnum(_ethertype)
|
|
125
|
-
|
|
126
|
-
_direction = d.pop("direction", UNSET)
|
|
127
|
-
direction: Union[Unset, DirectionEnum]
|
|
128
|
-
if isinstance(_direction, Unset):
|
|
129
|
-
direction = UNSET
|
|
130
|
-
else:
|
|
131
|
-
direction = DirectionEnum(_direction)
|
|
132
|
-
|
|
133
|
-
def _parse_protocol(data: object) -> Union[BlankEnum, ProtocolEnum, Unset]:
|
|
134
|
-
if isinstance(data, Unset):
|
|
135
|
-
return data
|
|
136
|
-
try:
|
|
137
|
-
if not isinstance(data, str):
|
|
138
|
-
raise TypeError()
|
|
139
|
-
protocol_type_0 = ProtocolEnum(data)
|
|
140
|
-
|
|
141
|
-
return protocol_type_0
|
|
142
|
-
except: # noqa: E722
|
|
143
|
-
pass
|
|
144
|
-
if not isinstance(data, str):
|
|
145
|
-
raise TypeError()
|
|
146
|
-
protocol_type_1 = BlankEnum(data)
|
|
147
|
-
|
|
148
|
-
return protocol_type_1
|
|
149
|
-
|
|
150
|
-
protocol = _parse_protocol(d.pop("protocol", UNSET))
|
|
151
|
-
|
|
152
|
-
def _parse_from_port(data: object) -> Union[None, Unset, int]:
|
|
153
|
-
if data is None:
|
|
154
|
-
return data
|
|
155
|
-
if isinstance(data, Unset):
|
|
156
|
-
return data
|
|
157
|
-
return cast(Union[None, Unset, int], data)
|
|
158
|
-
|
|
159
|
-
from_port = _parse_from_port(d.pop("from_port", UNSET))
|
|
160
|
-
|
|
161
|
-
def _parse_to_port(data: object) -> Union[None, Unset, int]:
|
|
162
|
-
if data is None:
|
|
163
|
-
return data
|
|
164
|
-
if isinstance(data, Unset):
|
|
165
|
-
return data
|
|
166
|
-
return cast(Union[None, Unset, int], data)
|
|
167
|
-
|
|
168
|
-
to_port = _parse_to_port(d.pop("to_port", UNSET))
|
|
169
|
-
|
|
170
|
-
def _parse_cidr(data: object) -> Union[None, Unset, str]:
|
|
171
|
-
if data is None:
|
|
172
|
-
return data
|
|
173
|
-
if isinstance(data, Unset):
|
|
174
|
-
return data
|
|
175
|
-
return cast(Union[None, Unset, str], data)
|
|
176
|
-
|
|
177
|
-
cidr = _parse_cidr(d.pop("cidr", UNSET))
|
|
178
|
-
|
|
179
|
-
description = d.pop("description", UNSET)
|
|
180
|
-
|
|
181
|
-
remote_group_name = d.pop("remote_group_name", UNSET)
|
|
182
|
-
|
|
183
|
-
_remote_group_uuid = d.pop("remote_group_uuid", UNSET)
|
|
184
|
-
remote_group_uuid: Union[Unset, UUID]
|
|
185
|
-
if isinstance(_remote_group_uuid, Unset):
|
|
186
|
-
remote_group_uuid = UNSET
|
|
187
|
-
else:
|
|
188
|
-
remote_group_uuid = UUID(_remote_group_uuid)
|
|
189
|
-
|
|
190
|
-
id = d.pop("id", UNSET)
|
|
191
|
-
|
|
192
|
-
nested_security_group_rule = cls(
|
|
193
|
-
ethertype=ethertype,
|
|
194
|
-
direction=direction,
|
|
195
|
-
protocol=protocol,
|
|
196
|
-
from_port=from_port,
|
|
197
|
-
to_port=to_port,
|
|
198
|
-
cidr=cidr,
|
|
199
|
-
description=description,
|
|
200
|
-
remote_group_name=remote_group_name,
|
|
201
|
-
remote_group_uuid=remote_group_uuid,
|
|
202
|
-
id=id,
|
|
203
|
-
)
|
|
204
|
-
|
|
205
|
-
nested_security_group_rule.additional_properties = d
|
|
206
|
-
return nested_security_group_rule
|
|
207
|
-
|
|
208
|
-
@property
|
|
209
|
-
def additional_keys(self) -> list[str]:
|
|
210
|
-
return list(self.additional_properties.keys())
|
|
211
|
-
|
|
212
|
-
def __getitem__(self, key: str) -> Any:
|
|
213
|
-
return self.additional_properties[key]
|
|
214
|
-
|
|
215
|
-
def __setitem__(self, key: str, value: Any) -> None:
|
|
216
|
-
self.additional_properties[key] = value
|
|
217
|
-
|
|
218
|
-
def __delitem__(self, key: str) -> None:
|
|
219
|
-
del self.additional_properties[key]
|
|
220
|
-
|
|
221
|
-
def __contains__(self, key: str) -> bool:
|
|
222
|
-
return key in self.additional_properties
|
|
File without changes
|
|
File without changes
|