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
|
@@ -19,10 +19,11 @@ class RancherClusterSecurityGroupRuleRequest:
|
|
|
19
19
|
Attributes:
|
|
20
20
|
ethertype (Union[Unset, EthertypeEnum]):
|
|
21
21
|
direction (Union[Unset, DirectionEnum]):
|
|
22
|
-
protocol (Union[BlankEnum, ProtocolEnum, Unset]):
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
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
28
|
"""
|
|
28
29
|
|
|
@@ -23,12 +23,12 @@ class RemoteProjectUpdateRequest:
|
|
|
23
23
|
offering_name (str):
|
|
24
24
|
offering_uuid (UUID):
|
|
25
25
|
created (datetime.datetime):
|
|
26
|
-
reviewed_at (Union[None, datetime.datetime]):
|
|
26
|
+
reviewed_at (Union[None, datetime.datetime]): Timestamp when the review was completed
|
|
27
27
|
reviewed_by_full_name (str):
|
|
28
28
|
reviewed_by_uuid (UUID):
|
|
29
29
|
old_oecd_fos_2007_label (str):
|
|
30
30
|
new_oecd_fos_2007_label (str):
|
|
31
|
-
review_comment (Union[None, Unset, str]):
|
|
31
|
+
review_comment (Union[None, Unset, str]): Optional comment provided during review
|
|
32
32
|
old_name (Union[Unset, str]):
|
|
33
33
|
new_name (Union[Unset, str]):
|
|
34
34
|
old_description (Union[Unset, str]):
|
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
from collections.abc import Mapping
|
|
2
|
+
from typing import Any, TypeVar
|
|
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.order_state import OrderState
|
|
9
|
+
from ..models.remote_resource_order_remote_state_enum import RemoteResourceOrderRemoteStateEnum
|
|
10
|
+
from ..models.sync_status_enum import SyncStatusEnum
|
|
11
|
+
|
|
12
|
+
T = TypeVar("T", bound="RemoteResourceOrder")
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
@_attrs_define
|
|
16
|
+
class RemoteResourceOrder:
|
|
17
|
+
"""
|
|
18
|
+
Attributes:
|
|
19
|
+
order_uuid (UUID): Order UUID
|
|
20
|
+
remote_state (RemoteResourceOrderRemoteStateEnum):
|
|
21
|
+
local_state (OrderState):
|
|
22
|
+
sync_status (SyncStatusEnum):
|
|
23
|
+
"""
|
|
24
|
+
|
|
25
|
+
order_uuid: UUID
|
|
26
|
+
remote_state: RemoteResourceOrderRemoteStateEnum
|
|
27
|
+
local_state: OrderState
|
|
28
|
+
sync_status: SyncStatusEnum
|
|
29
|
+
additional_properties: dict[str, Any] = _attrs_field(init=False, factory=dict)
|
|
30
|
+
|
|
31
|
+
def to_dict(self) -> dict[str, Any]:
|
|
32
|
+
order_uuid = str(self.order_uuid)
|
|
33
|
+
|
|
34
|
+
remote_state = self.remote_state.value
|
|
35
|
+
|
|
36
|
+
local_state = self.local_state.value
|
|
37
|
+
|
|
38
|
+
sync_status = self.sync_status.value
|
|
39
|
+
|
|
40
|
+
field_dict: dict[str, Any] = {}
|
|
41
|
+
field_dict.update(self.additional_properties)
|
|
42
|
+
field_dict.update(
|
|
43
|
+
{
|
|
44
|
+
"order_uuid": order_uuid,
|
|
45
|
+
"remote_state": remote_state,
|
|
46
|
+
"local_state": local_state,
|
|
47
|
+
"sync_status": sync_status,
|
|
48
|
+
}
|
|
49
|
+
)
|
|
50
|
+
|
|
51
|
+
return field_dict
|
|
52
|
+
|
|
53
|
+
@classmethod
|
|
54
|
+
def from_dict(cls: type[T], src_dict: Mapping[str, Any]) -> T:
|
|
55
|
+
d = dict(src_dict)
|
|
56
|
+
order_uuid = UUID(d.pop("order_uuid"))
|
|
57
|
+
|
|
58
|
+
remote_state = RemoteResourceOrderRemoteStateEnum(d.pop("remote_state"))
|
|
59
|
+
|
|
60
|
+
local_state = OrderState(d.pop("local_state"))
|
|
61
|
+
|
|
62
|
+
sync_status = SyncStatusEnum(d.pop("sync_status"))
|
|
63
|
+
|
|
64
|
+
remote_resource_order = cls(
|
|
65
|
+
order_uuid=order_uuid,
|
|
66
|
+
remote_state=remote_state,
|
|
67
|
+
local_state=local_state,
|
|
68
|
+
sync_status=sync_status,
|
|
69
|
+
)
|
|
70
|
+
|
|
71
|
+
remote_resource_order.additional_properties = d
|
|
72
|
+
return remote_resource_order
|
|
73
|
+
|
|
74
|
+
@property
|
|
75
|
+
def additional_keys(self) -> list[str]:
|
|
76
|
+
return list(self.additional_properties.keys())
|
|
77
|
+
|
|
78
|
+
def __getitem__(self, key: str) -> Any:
|
|
79
|
+
return self.additional_properties[key]
|
|
80
|
+
|
|
81
|
+
def __setitem__(self, key: str, value: Any) -> None:
|
|
82
|
+
self.additional_properties[key] = value
|
|
83
|
+
|
|
84
|
+
def __delitem__(self, key: str) -> None:
|
|
85
|
+
del self.additional_properties[key]
|
|
86
|
+
|
|
87
|
+
def __contains__(self, key: str) -> bool:
|
|
88
|
+
return key in self.additional_properties
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
from enum import IntEnum
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
class RemoteResourceOrderRemoteStateEnum(IntEnum):
|
|
5
|
+
VALUE_1 = 1
|
|
6
|
+
VALUE_7 = 7
|
|
7
|
+
VALUE_8 = 8
|
|
8
|
+
VALUE_2 = 2
|
|
9
|
+
VALUE_3 = 3
|
|
10
|
+
VALUE_4 = 4
|
|
11
|
+
VALUE_5 = 5
|
|
12
|
+
VALUE_6 = 6
|
|
13
|
+
|
|
14
|
+
def __str__(self) -> str:
|
|
15
|
+
return str(self.value)
|
|
@@ -0,0 +1,123 @@
|
|
|
1
|
+
import datetime
|
|
2
|
+
from collections.abc import Mapping
|
|
3
|
+
from typing import Any, TypeVar, Union, cast
|
|
4
|
+
|
|
5
|
+
from attrs import define as _attrs_define
|
|
6
|
+
from attrs import field as _attrs_field
|
|
7
|
+
from dateutil.parser import isoparse
|
|
8
|
+
|
|
9
|
+
from ..models.remote_resource_sync_status_remote_state_enum import RemoteResourceSyncStatusRemoteStateEnum
|
|
10
|
+
from ..models.resource_state import ResourceState
|
|
11
|
+
from ..models.sync_status_enum import SyncStatusEnum
|
|
12
|
+
|
|
13
|
+
T = TypeVar("T", bound="RemoteResourceSyncStatus")
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
@_attrs_define
|
|
17
|
+
class RemoteResourceSyncStatus:
|
|
18
|
+
"""
|
|
19
|
+
Attributes:
|
|
20
|
+
local_state (ResourceState):
|
|
21
|
+
remote_state (Union[None, RemoteResourceSyncStatusRemoteStateEnum]): Remote resource state
|
|
22
|
+
sync_status (SyncStatusEnum):
|
|
23
|
+
last_sync (Union[None, datetime.datetime]): Last sync timestamp
|
|
24
|
+
"""
|
|
25
|
+
|
|
26
|
+
local_state: ResourceState
|
|
27
|
+
remote_state: Union[None, RemoteResourceSyncStatusRemoteStateEnum]
|
|
28
|
+
sync_status: SyncStatusEnum
|
|
29
|
+
last_sync: Union[None, datetime.datetime]
|
|
30
|
+
additional_properties: dict[str, Any] = _attrs_field(init=False, factory=dict)
|
|
31
|
+
|
|
32
|
+
def to_dict(self) -> dict[str, Any]:
|
|
33
|
+
local_state = self.local_state.value
|
|
34
|
+
|
|
35
|
+
remote_state: Union[None, int]
|
|
36
|
+
if isinstance(self.remote_state, RemoteResourceSyncStatusRemoteStateEnum):
|
|
37
|
+
remote_state = self.remote_state.value
|
|
38
|
+
else:
|
|
39
|
+
remote_state = self.remote_state
|
|
40
|
+
|
|
41
|
+
sync_status = self.sync_status.value
|
|
42
|
+
|
|
43
|
+
last_sync: Union[None, str]
|
|
44
|
+
if isinstance(self.last_sync, datetime.datetime):
|
|
45
|
+
last_sync = self.last_sync.isoformat()
|
|
46
|
+
else:
|
|
47
|
+
last_sync = self.last_sync
|
|
48
|
+
|
|
49
|
+
field_dict: dict[str, Any] = {}
|
|
50
|
+
field_dict.update(self.additional_properties)
|
|
51
|
+
field_dict.update(
|
|
52
|
+
{
|
|
53
|
+
"local_state": local_state,
|
|
54
|
+
"remote_state": remote_state,
|
|
55
|
+
"sync_status": sync_status,
|
|
56
|
+
"last_sync": last_sync,
|
|
57
|
+
}
|
|
58
|
+
)
|
|
59
|
+
|
|
60
|
+
return field_dict
|
|
61
|
+
|
|
62
|
+
@classmethod
|
|
63
|
+
def from_dict(cls: type[T], src_dict: Mapping[str, Any]) -> T:
|
|
64
|
+
d = dict(src_dict)
|
|
65
|
+
local_state = ResourceState(d.pop("local_state"))
|
|
66
|
+
|
|
67
|
+
def _parse_remote_state(data: object) -> Union[None, RemoteResourceSyncStatusRemoteStateEnum]:
|
|
68
|
+
if data is None:
|
|
69
|
+
return data
|
|
70
|
+
try:
|
|
71
|
+
if not isinstance(data, int):
|
|
72
|
+
raise TypeError()
|
|
73
|
+
remote_state_type_0 = RemoteResourceSyncStatusRemoteStateEnum(data)
|
|
74
|
+
|
|
75
|
+
return remote_state_type_0
|
|
76
|
+
except: # noqa: E722
|
|
77
|
+
pass
|
|
78
|
+
return cast(Union[None, RemoteResourceSyncStatusRemoteStateEnum], data)
|
|
79
|
+
|
|
80
|
+
remote_state = _parse_remote_state(d.pop("remote_state"))
|
|
81
|
+
|
|
82
|
+
sync_status = SyncStatusEnum(d.pop("sync_status"))
|
|
83
|
+
|
|
84
|
+
def _parse_last_sync(data: object) -> Union[None, datetime.datetime]:
|
|
85
|
+
if data is None:
|
|
86
|
+
return data
|
|
87
|
+
try:
|
|
88
|
+
if not isinstance(data, str):
|
|
89
|
+
raise TypeError()
|
|
90
|
+
last_sync_type_0 = isoparse(data)
|
|
91
|
+
|
|
92
|
+
return last_sync_type_0
|
|
93
|
+
except: # noqa: E722
|
|
94
|
+
pass
|
|
95
|
+
return cast(Union[None, datetime.datetime], data)
|
|
96
|
+
|
|
97
|
+
last_sync = _parse_last_sync(d.pop("last_sync"))
|
|
98
|
+
|
|
99
|
+
remote_resource_sync_status = cls(
|
|
100
|
+
local_state=local_state,
|
|
101
|
+
remote_state=remote_state,
|
|
102
|
+
sync_status=sync_status,
|
|
103
|
+
last_sync=last_sync,
|
|
104
|
+
)
|
|
105
|
+
|
|
106
|
+
remote_resource_sync_status.additional_properties = d
|
|
107
|
+
return remote_resource_sync_status
|
|
108
|
+
|
|
109
|
+
@property
|
|
110
|
+
def additional_keys(self) -> list[str]:
|
|
111
|
+
return list(self.additional_properties.keys())
|
|
112
|
+
|
|
113
|
+
def __getitem__(self, key: str) -> Any:
|
|
114
|
+
return self.additional_properties[key]
|
|
115
|
+
|
|
116
|
+
def __setitem__(self, key: str, value: Any) -> None:
|
|
117
|
+
self.additional_properties[key] = value
|
|
118
|
+
|
|
119
|
+
def __delitem__(self, key: str) -> None:
|
|
120
|
+
del self.additional_properties[key]
|
|
121
|
+
|
|
122
|
+
def __contains__(self, key: str) -> bool:
|
|
123
|
+
return key in self.additional_properties
|
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
from collections.abc import Mapping
|
|
2
|
+
from typing import Any, TypeVar
|
|
3
|
+
|
|
4
|
+
from attrs import define as _attrs_define
|
|
5
|
+
from attrs import field as _attrs_field
|
|
6
|
+
|
|
7
|
+
from ..models.sync_status_enum import SyncStatusEnum
|
|
8
|
+
|
|
9
|
+
T = TypeVar("T", bound="RemoteResourceTeamMember")
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
@_attrs_define
|
|
13
|
+
class RemoteResourceTeamMember:
|
|
14
|
+
"""
|
|
15
|
+
Attributes:
|
|
16
|
+
full_name (str): Full name
|
|
17
|
+
local_role (str): Local role
|
|
18
|
+
remote_role (str): Remote role
|
|
19
|
+
sync_status (SyncStatusEnum):
|
|
20
|
+
"""
|
|
21
|
+
|
|
22
|
+
full_name: str
|
|
23
|
+
local_role: str
|
|
24
|
+
remote_role: str
|
|
25
|
+
sync_status: SyncStatusEnum
|
|
26
|
+
additional_properties: dict[str, Any] = _attrs_field(init=False, factory=dict)
|
|
27
|
+
|
|
28
|
+
def to_dict(self) -> dict[str, Any]:
|
|
29
|
+
full_name = self.full_name
|
|
30
|
+
|
|
31
|
+
local_role = self.local_role
|
|
32
|
+
|
|
33
|
+
remote_role = self.remote_role
|
|
34
|
+
|
|
35
|
+
sync_status = self.sync_status.value
|
|
36
|
+
|
|
37
|
+
field_dict: dict[str, Any] = {}
|
|
38
|
+
field_dict.update(self.additional_properties)
|
|
39
|
+
field_dict.update(
|
|
40
|
+
{
|
|
41
|
+
"full_name": full_name,
|
|
42
|
+
"local_role": local_role,
|
|
43
|
+
"remote_role": remote_role,
|
|
44
|
+
"sync_status": sync_status,
|
|
45
|
+
}
|
|
46
|
+
)
|
|
47
|
+
|
|
48
|
+
return field_dict
|
|
49
|
+
|
|
50
|
+
@classmethod
|
|
51
|
+
def from_dict(cls: type[T], src_dict: Mapping[str, Any]) -> T:
|
|
52
|
+
d = dict(src_dict)
|
|
53
|
+
full_name = d.pop("full_name")
|
|
54
|
+
|
|
55
|
+
local_role = d.pop("local_role")
|
|
56
|
+
|
|
57
|
+
remote_role = d.pop("remote_role")
|
|
58
|
+
|
|
59
|
+
sync_status = SyncStatusEnum(d.pop("sync_status"))
|
|
60
|
+
|
|
61
|
+
remote_resource_team_member = cls(
|
|
62
|
+
full_name=full_name,
|
|
63
|
+
local_role=local_role,
|
|
64
|
+
remote_role=remote_role,
|
|
65
|
+
sync_status=sync_status,
|
|
66
|
+
)
|
|
67
|
+
|
|
68
|
+
remote_resource_team_member.additional_properties = d
|
|
69
|
+
return remote_resource_team_member
|
|
70
|
+
|
|
71
|
+
@property
|
|
72
|
+
def additional_keys(self) -> list[str]:
|
|
73
|
+
return list(self.additional_properties.keys())
|
|
74
|
+
|
|
75
|
+
def __getitem__(self, key: str) -> Any:
|
|
76
|
+
return self.additional_properties[key]
|
|
77
|
+
|
|
78
|
+
def __setitem__(self, key: str, value: Any) -> None:
|
|
79
|
+
self.additional_properties[key] = value
|
|
80
|
+
|
|
81
|
+
def __delitem__(self, key: str) -> None:
|
|
82
|
+
del self.additional_properties[key]
|
|
83
|
+
|
|
84
|
+
def __contains__(self, key: str) -> bool:
|
|
85
|
+
return key in self.additional_properties
|
|
@@ -36,7 +36,6 @@ class Resource:
|
|
|
36
36
|
offering_image (Union[Unset, str]):
|
|
37
37
|
offering_thumbnail (Union[Unset, str]):
|
|
38
38
|
offering_type (Union[Unset, str]):
|
|
39
|
-
offering_terms_of_service (Union[Unset, str]):
|
|
40
39
|
offering_shared (Union[Unset, bool]): Accessible to all customers.
|
|
41
40
|
offering_billable (Union[Unset, bool]): Purchase and usage is invoiced.
|
|
42
41
|
offering_plugin_options (Union[Unset, Any]): Public data used by specific plugin, such as storage mode for
|
|
@@ -107,6 +106,8 @@ class Resource:
|
|
|
107
106
|
service_settings_uuid (Union[Unset, UUID]):
|
|
108
107
|
project_slug (Union[Unset, str]):
|
|
109
108
|
customer_slug (Union[Unset, str]):
|
|
109
|
+
user_requires_reconsent (Union[Unset, bool]): Check if the current user needs to re-consent for this resource's
|
|
110
|
+
offering.
|
|
110
111
|
"""
|
|
111
112
|
|
|
112
113
|
offering: Union[Unset, str] = UNSET
|
|
@@ -116,7 +117,6 @@ class Resource:
|
|
|
116
117
|
offering_image: Union[Unset, str] = UNSET
|
|
117
118
|
offering_thumbnail: Union[Unset, str] = UNSET
|
|
118
119
|
offering_type: Union[Unset, str] = UNSET
|
|
119
|
-
offering_terms_of_service: Union[Unset, str] = UNSET
|
|
120
120
|
offering_shared: Union[Unset, bool] = UNSET
|
|
121
121
|
offering_billable: Union[Unset, bool] = UNSET
|
|
122
122
|
offering_plugin_options: Union[Unset, Any] = UNSET
|
|
@@ -184,6 +184,7 @@ class Resource:
|
|
|
184
184
|
service_settings_uuid: Union[Unset, UUID] = UNSET
|
|
185
185
|
project_slug: Union[Unset, str] = UNSET
|
|
186
186
|
customer_slug: Union[Unset, str] = UNSET
|
|
187
|
+
user_requires_reconsent: Union[Unset, bool] = UNSET
|
|
187
188
|
additional_properties: dict[str, Any] = _attrs_field(init=False, factory=dict)
|
|
188
189
|
|
|
189
190
|
def to_dict(self) -> dict[str, Any]:
|
|
@@ -205,8 +206,6 @@ class Resource:
|
|
|
205
206
|
|
|
206
207
|
offering_type = self.offering_type
|
|
207
208
|
|
|
208
|
-
offering_terms_of_service = self.offering_terms_of_service
|
|
209
|
-
|
|
210
209
|
offering_shared = self.offering_shared
|
|
211
210
|
|
|
212
211
|
offering_billable = self.offering_billable
|
|
@@ -451,6 +450,8 @@ class Resource:
|
|
|
451
450
|
|
|
452
451
|
customer_slug = self.customer_slug
|
|
453
452
|
|
|
453
|
+
user_requires_reconsent = self.user_requires_reconsent
|
|
454
|
+
|
|
454
455
|
field_dict: dict[str, Any] = {}
|
|
455
456
|
field_dict.update(self.additional_properties)
|
|
456
457
|
field_dict.update({})
|
|
@@ -468,8 +469,6 @@ class Resource:
|
|
|
468
469
|
field_dict["offering_thumbnail"] = offering_thumbnail
|
|
469
470
|
if offering_type is not UNSET:
|
|
470
471
|
field_dict["offering_type"] = offering_type
|
|
471
|
-
if offering_terms_of_service is not UNSET:
|
|
472
|
-
field_dict["offering_terms_of_service"] = offering_terms_of_service
|
|
473
472
|
if offering_shared is not UNSET:
|
|
474
473
|
field_dict["offering_shared"] = offering_shared
|
|
475
474
|
if offering_billable is not UNSET:
|
|
@@ -604,6 +603,8 @@ class Resource:
|
|
|
604
603
|
field_dict["project_slug"] = project_slug
|
|
605
604
|
if customer_slug is not UNSET:
|
|
606
605
|
field_dict["customer_slug"] = customer_slug
|
|
606
|
+
if user_requires_reconsent is not UNSET:
|
|
607
|
+
field_dict["user_requires_reconsent"] = user_requires_reconsent
|
|
607
608
|
|
|
608
609
|
return field_dict
|
|
609
610
|
|
|
@@ -638,8 +639,6 @@ class Resource:
|
|
|
638
639
|
|
|
639
640
|
offering_type = d.pop("offering_type", UNSET)
|
|
640
641
|
|
|
641
|
-
offering_terms_of_service = d.pop("offering_terms_of_service", UNSET)
|
|
642
|
-
|
|
643
642
|
offering_shared = d.pop("offering_shared", UNSET)
|
|
644
643
|
|
|
645
644
|
offering_billable = d.pop("offering_billable", UNSET)
|
|
@@ -1014,6 +1013,8 @@ class Resource:
|
|
|
1014
1013
|
|
|
1015
1014
|
customer_slug = d.pop("customer_slug", UNSET)
|
|
1016
1015
|
|
|
1016
|
+
user_requires_reconsent = d.pop("user_requires_reconsent", UNSET)
|
|
1017
|
+
|
|
1017
1018
|
resource = cls(
|
|
1018
1019
|
offering=offering,
|
|
1019
1020
|
offering_name=offering_name,
|
|
@@ -1022,7 +1023,6 @@ class Resource:
|
|
|
1022
1023
|
offering_image=offering_image,
|
|
1023
1024
|
offering_thumbnail=offering_thumbnail,
|
|
1024
1025
|
offering_type=offering_type,
|
|
1025
|
-
offering_terms_of_service=offering_terms_of_service,
|
|
1026
1026
|
offering_shared=offering_shared,
|
|
1027
1027
|
offering_billable=offering_billable,
|
|
1028
1028
|
offering_plugin_options=offering_plugin_options,
|
|
@@ -1090,6 +1090,7 @@ class Resource:
|
|
|
1090
1090
|
service_settings_uuid=service_settings_uuid,
|
|
1091
1091
|
project_slug=project_slug,
|
|
1092
1092
|
customer_slug=customer_slug,
|
|
1093
|
+
user_requires_reconsent=user_requires_reconsent,
|
|
1093
1094
|
)
|
|
1094
1095
|
|
|
1095
1096
|
resource.additional_properties = d
|