waldur-api-client 7.8.4__py3-none-any.whl → 7.8.5__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/backend_resources/backend_resources_import_resource.py +3 -3
- waldur_api_client/api/booking_resources/booking_resources_count.py +90 -0
- waldur_api_client/api/booking_resources/booking_resources_list.py +90 -0
- waldur_api_client/api/call_managing_organisations/call_managing_organisations_add_user.py +17 -10
- waldur_api_client/api/customers/customers_add_user.py +17 -10
- waldur_api_client/api/marketplace_component_usages/marketplace_component_usages_count.py +30 -0
- waldur_api_client/api/marketplace_component_usages/marketplace_component_usages_list.py +30 -0
- waldur_api_client/api/marketplace_customer_component_usage_policies/__init__.py +1 -0
- waldur_api_client/api/marketplace_customer_component_usage_policies/marketplace_customer_component_usage_policies_actions_count.py +125 -0
- waldur_api_client/api/marketplace_customer_component_usage_policies/marketplace_customer_component_usage_policies_actions_retrieve.py +119 -0
- waldur_api_client/api/marketplace_customer_component_usage_policies/marketplace_customer_component_usage_policies_count.py +239 -0
- waldur_api_client/api/marketplace_customer_component_usage_policies/marketplace_customer_component_usage_policies_create.py +152 -0
- waldur_api_client/api/marketplace_customer_component_usage_policies/marketplace_customer_component_usage_policies_destroy.py +89 -0
- waldur_api_client/api/marketplace_customer_component_usage_policies/marketplace_customer_component_usage_policies_list.py +242 -0
- waldur_api_client/api/marketplace_customer_component_usage_policies/marketplace_customer_component_usage_policies_partial_update.py +166 -0
- waldur_api_client/api/marketplace_customer_component_usage_policies/marketplace_customer_component_usage_policies_retrieve.py +144 -0
- waldur_api_client/api/marketplace_customer_component_usage_policies/marketplace_customer_component_usage_policies_update.py +166 -0
- waldur_api_client/api/marketplace_orders/marketplace_orders_set_backend_id.py +105 -0
- waldur_api_client/api/marketplace_plans/marketplace_plans_update_discounts.py +123 -0
- waldur_api_client/api/marketplace_provider_offerings/marketplace_provider_offerings_add_partition.py +168 -0
- waldur_api_client/api/marketplace_provider_offerings/marketplace_provider_offerings_add_software_catalog.py +168 -0
- waldur_api_client/api/marketplace_provider_offerings/marketplace_provider_offerings_add_user.py +19 -10
- waldur_api_client/api/marketplace_provider_offerings/marketplace_provider_offerings_component_stats_list.py +15 -0
- waldur_api_client/api/marketplace_provider_offerings/marketplace_provider_offerings_costs_list.py +15 -0
- waldur_api_client/api/marketplace_provider_offerings/marketplace_provider_offerings_count.py +15 -0
- waldur_api_client/api/marketplace_provider_offerings/marketplace_provider_offerings_create_offering_component.py +1 -1
- waldur_api_client/api/marketplace_provider_offerings/marketplace_provider_offerings_customers_list.py +15 -0
- waldur_api_client/api/marketplace_provider_offerings/marketplace_provider_offerings_groups_count.py +15 -0
- waldur_api_client/api/marketplace_provider_offerings/marketplace_provider_offerings_groups_list.py +15 -0
- waldur_api_client/api/marketplace_provider_offerings/marketplace_provider_offerings_list.py +15 -0
- waldur_api_client/api/marketplace_provider_offerings/marketplace_provider_offerings_remove_partition.py +107 -0
- waldur_api_client/api/marketplace_provider_offerings/marketplace_provider_offerings_remove_software_catalog.py +107 -0
- waldur_api_client/api/marketplace_provider_offerings/marketplace_provider_offerings_update_partition_partial_update.py +168 -0
- waldur_api_client/api/marketplace_provider_offerings/marketplace_provider_offerings_update_software_catalog_partial_update.py +168 -0
- waldur_api_client/api/marketplace_provider_resources/marketplace_provider_resources_count.py +90 -0
- waldur_api_client/api/marketplace_provider_resources/marketplace_provider_resources_list.py +90 -0
- waldur_api_client/api/marketplace_provider_resources/marketplace_provider_resources_set_downscaled.py +107 -0
- waldur_api_client/api/marketplace_provider_resources/marketplace_provider_resources_set_paused.py +107 -0
- waldur_api_client/api/marketplace_provider_resources/marketplace_provider_resources_set_restrict_member_access.py +107 -0
- waldur_api_client/api/marketplace_public_offerings/marketplace_public_offerings_count.py +15 -0
- waldur_api_client/api/marketplace_public_offerings/marketplace_public_offerings_list.py +15 -0
- waldur_api_client/api/marketplace_resources/marketplace_resources_count.py +90 -0
- waldur_api_client/api/marketplace_resources/marketplace_resources_list.py +90 -0
- waldur_api_client/api/marketplace_resources/marketplace_resources_set_downscaled.py +107 -0
- waldur_api_client/api/marketplace_resources/marketplace_resources_set_paused.py +107 -0
- waldur_api_client/api/marketplace_resources/marketplace_resources_set_restrict_member_access.py +107 -0
- waldur_api_client/api/marketplace_service_providers/marketplace_service_providers_add_user.py +17 -10
- waldur_api_client/api/marketplace_service_providers/marketplace_service_providers_customer_projects_list.py +15 -0
- waldur_api_client/api/marketplace_service_providers/marketplace_service_providers_offerings_list.py +15 -0
- waldur_api_client/api/marketplace_service_providers/marketplace_service_providers_projects_list.py +14 -24
- waldur_api_client/api/marketplace_service_providers/marketplace_service_providers_set_offerings_username.py +8 -67
- waldur_api_client/api/marketplace_site_agent_identities/__init__.py +1 -0
- waldur_api_client/api/marketplace_site_agent_identities/marketplace_site_agent_identities_count.py +240 -0
- waldur_api_client/api/marketplace_site_agent_identities/marketplace_site_agent_identities_create.py +148 -0
- waldur_api_client/api/marketplace_site_agent_identities/marketplace_site_agent_identities_destroy.py +89 -0
- waldur_api_client/api/marketplace_site_agent_identities/marketplace_site_agent_identities_list.py +241 -0
- waldur_api_client/api/marketplace_site_agent_identities/marketplace_site_agent_identities_register_event_subscription.py +176 -0
- waldur_api_client/api/marketplace_site_agent_identities/marketplace_site_agent_identities_register_service.py +170 -0
- waldur_api_client/api/marketplace_site_agent_identities/marketplace_site_agent_identities_retrieve.py +140 -0
- waldur_api_client/api/marketplace_site_agent_identities/marketplace_site_agent_identities_update.py +162 -0
- waldur_api_client/api/marketplace_site_agent_processors/__init__.py +1 -0
- waldur_api_client/api/marketplace_site_agent_processors/marketplace_site_agent_processors_count.py +240 -0
- waldur_api_client/api/marketplace_site_agent_processors/marketplace_site_agent_processors_list.py +241 -0
- waldur_api_client/api/marketplace_site_agent_processors/marketplace_site_agent_processors_retrieve.py +142 -0
- waldur_api_client/api/marketplace_site_agent_services/__init__.py +1 -0
- waldur_api_client/api/marketplace_site_agent_services/marketplace_site_agent_services_count.py +229 -0
- waldur_api_client/api/marketplace_site_agent_services/marketplace_site_agent_services_list.py +230 -0
- waldur_api_client/api/marketplace_site_agent_services/marketplace_site_agent_services_register_processor.py +172 -0
- waldur_api_client/api/marketplace_site_agent_services/marketplace_site_agent_services_retrieve.py +140 -0
- waldur_api_client/api/marketplace_site_agent_services/marketplace_site_agent_services_set_statistics.py +166 -0
- waldur_api_client/api/marketplace_software_catalogs/__init__.py +1 -0
- waldur_api_client/api/marketplace_software_catalogs/marketplace_software_catalogs_count.py +225 -0
- waldur_api_client/api/marketplace_software_catalogs/marketplace_software_catalogs_create.py +150 -0
- waldur_api_client/api/marketplace_software_catalogs/marketplace_software_catalogs_destroy.py +89 -0
- waldur_api_client/api/marketplace_software_catalogs/marketplace_software_catalogs_list.py +226 -0
- waldur_api_client/api/marketplace_software_catalogs/marketplace_software_catalogs_partial_update.py +164 -0
- waldur_api_client/api/marketplace_software_catalogs/marketplace_software_catalogs_retrieve.py +142 -0
- waldur_api_client/api/marketplace_software_catalogs/marketplace_software_catalogs_update.py +164 -0
- waldur_api_client/api/marketplace_software_packages/__init__.py +1 -0
- waldur_api_client/api/marketplace_software_packages/marketplace_software_packages_count.py +352 -0
- waldur_api_client/api/marketplace_software_packages/marketplace_software_packages_create.py +150 -0
- waldur_api_client/api/marketplace_software_packages/marketplace_software_packages_destroy.py +89 -0
- waldur_api_client/api/marketplace_software_packages/marketplace_software_packages_list.py +353 -0
- waldur_api_client/api/marketplace_software_packages/marketplace_software_packages_partial_update.py +164 -0
- waldur_api_client/api/marketplace_software_packages/marketplace_software_packages_retrieve.py +142 -0
- waldur_api_client/api/marketplace_software_packages/marketplace_software_packages_update.py +164 -0
- waldur_api_client/api/marketplace_software_targets/__init__.py +1 -0
- waldur_api_client/api/marketplace_software_targets/marketplace_software_targets_count.py +313 -0
- waldur_api_client/api/marketplace_software_targets/marketplace_software_targets_create.py +117 -0
- waldur_api_client/api/marketplace_software_targets/marketplace_software_targets_destroy.py +89 -0
- waldur_api_client/api/marketplace_software_targets/marketplace_software_targets_list.py +314 -0
- waldur_api_client/api/marketplace_software_targets/marketplace_software_targets_partial_update.py +142 -0
- waldur_api_client/api/marketplace_software_targets/marketplace_software_targets_retrieve.py +142 -0
- waldur_api_client/api/marketplace_software_targets/marketplace_software_targets_update.py +142 -0
- waldur_api_client/api/marketplace_software_versions/__init__.py +1 -0
- waldur_api_client/api/marketplace_software_versions/marketplace_software_versions_count.py +310 -0
- waldur_api_client/api/marketplace_software_versions/marketplace_software_versions_create.py +117 -0
- waldur_api_client/api/marketplace_software_versions/marketplace_software_versions_destroy.py +89 -0
- waldur_api_client/api/marketplace_software_versions/marketplace_software_versions_list.py +311 -0
- waldur_api_client/api/marketplace_software_versions/marketplace_software_versions_partial_update.py +142 -0
- waldur_api_client/api/marketplace_software_versions/marketplace_software_versions_retrieve.py +142 -0
- waldur_api_client/api/marketplace_software_versions/marketplace_software_versions_update.py +142 -0
- waldur_api_client/api/onboarding_justifications/onboarding_justifications_approve.py +168 -0
- waldur_api_client/api/onboarding_justifications/onboarding_justifications_reject.py +168 -0
- waldur_api_client/api/projects/projects_add_user.py +17 -10
- waldur_api_client/api/projects/projects_count.py +30 -0
- waldur_api_client/api/projects/projects_list.py +30 -0
- waldur_api_client/api/projects/projects_move_project.py +19 -10
- waldur_api_client/api/projects/projects_recover.py +166 -0
- waldur_api_client/api/proposal_proposals/proposal_proposals_add_user.py +17 -10
- waldur_api_client/api/proposal_protected_calls/proposal_protected_calls_add_user.py +17 -10
- waldur_api_client/api/remote_waldur_api/remote_waldur_api_pull_resource_robot_accounts.py +88 -0
- waldur_api_client/models/__init__.py +152 -4
- waldur_api_client/models/agent_event_subscription_create_request.py +71 -0
- waldur_api_client/models/agent_identity.py +211 -0
- waldur_api_client/models/agent_identity_request.py +157 -0
- waldur_api_client/models/agent_processor.py +170 -0
- waldur_api_client/models/agent_processor_create_request.py +89 -0
- waldur_api_client/models/agent_service.py +172 -0
- waldur_api_client/models/agent_service_create_request.py +81 -0
- waldur_api_client/models/agent_service_state.py +10 -0
- waldur_api_client/models/agent_service_statistics_request.py +59 -0
- waldur_api_client/models/base_provider_plan.py +21 -0
- waldur_api_client/models/base_public_plan.py +21 -0
- waldur_api_client/models/booking_offerings_list_field_item.py +2 -0
- waldur_api_client/models/booking_offerings_retrieve_field_item.py +2 -0
- waldur_api_client/models/booking_resource.py +33 -0
- waldur_api_client/models/booking_resource_renewal_date_type_0.py +53 -0
- waldur_api_client/models/booking_resources_list_field_item.py +1 -0
- waldur_api_client/models/booking_resources_retrieve_field_item.py +1 -0
- waldur_api_client/models/call_managing_organisations_add_user_response_400.py +65 -0
- waldur_api_client/models/constance_settings.py +81 -45
- waldur_api_client/models/constance_settings_request.py +81 -45
- waldur_api_client/models/constance_settings_request_form.py +81 -45
- waldur_api_client/models/constance_settings_request_multipart.py +134 -71
- waldur_api_client/models/customer_component_usage_policy.py +175 -0
- waldur_api_client/models/customer_component_usage_policy_request.py +102 -0
- waldur_api_client/models/customers_add_user_response_400.py +65 -0
- waldur_api_client/models/discount_config_request.py +91 -0
- waldur_api_client/models/discounts_update_request.py +65 -0
- waldur_api_client/models/discounts_update_request_discounts.py +57 -0
- waldur_api_client/models/issue.py +0 -25
- waldur_api_client/models/managed_rancher_cluster_resources_list_field_item.py +1 -0
- waldur_api_client/models/managed_rancher_cluster_resources_retrieve_field_item.py +1 -0
- waldur_api_client/models/marketplace_orders_count_state_item.py +1 -0
- waldur_api_client/models/marketplace_orders_list_field_item.py +2 -0
- waldur_api_client/models/marketplace_orders_list_state_item.py +1 -0
- waldur_api_client/models/marketplace_orders_retrieve_field_item.py +2 -0
- waldur_api_client/models/marketplace_provider_offerings_add_user_response_400.py +65 -0
- waldur_api_client/models/marketplace_provider_offerings_list_course_accounts_retrieve_field_item.py +2 -0
- waldur_api_client/models/marketplace_provider_offerings_list_customer_service_accounts_retrieve_field_item.py +2 -0
- waldur_api_client/models/marketplace_provider_offerings_list_field_item.py +2 -0
- waldur_api_client/models/marketplace_provider_offerings_list_project_service_accounts_retrieve_field_item.py +2 -0
- waldur_api_client/models/marketplace_provider_offerings_retrieve_field_item.py +2 -0
- waldur_api_client/models/marketplace_provider_offerings_stats_retrieve_field_item.py +2 -0
- waldur_api_client/models/marketplace_provider_offerings_user_has_resource_access_retrieve_field_item.py +2 -0
- waldur_api_client/models/marketplace_provider_resources_details_retrieve_field_item.py +1 -0
- waldur_api_client/models/marketplace_provider_resources_list_field_item.py +1 -0
- waldur_api_client/models/marketplace_provider_resources_retrieve_field_item.py +1 -0
- waldur_api_client/models/marketplace_public_offerings_list_field_item.py +2 -0
- waldur_api_client/models/marketplace_public_offerings_retrieve_field_item.py +2 -0
- waldur_api_client/models/marketplace_resources_details_retrieve_field_item.py +1 -0
- waldur_api_client/models/marketplace_resources_list_field_item.py +1 -0
- waldur_api_client/models/marketplace_resources_retrieve_field_item.py +1 -0
- waldur_api_client/models/marketplace_service_providers_add_user_response_400.py +65 -0
- waldur_api_client/models/marketplace_site_agent_services_count_state_item.py +10 -0
- waldur_api_client/models/marketplace_site_agent_services_list_state_item.py +10 -0
- waldur_api_client/models/marketplace_software_catalogs_count_o_item.py +15 -0
- waldur_api_client/models/marketplace_software_catalogs_list_o_item.py +15 -0
- waldur_api_client/models/marketplace_software_packages_count_o_item.py +17 -0
- waldur_api_client/models/marketplace_software_packages_list_o_item.py +17 -0
- waldur_api_client/models/marketplace_software_targets_count_o_item.py +15 -0
- waldur_api_client/models/marketplace_software_targets_list_o_item.py +15 -0
- waldur_api_client/models/marketplace_software_versions_count_o_item.py +15 -0
- waldur_api_client/models/marketplace_software_versions_list_o_item.py +15 -0
- waldur_api_client/models/merged_plugin_options.py +47 -8
- waldur_api_client/models/merged_plugin_options_request.py +47 -8
- waldur_api_client/models/nested_agent_processor.py +154 -0
- waldur_api_client/models/nested_agent_service.py +134 -0
- waldur_api_client/models/nested_agent_service_request.py +90 -0
- waldur_api_client/models/nested_customer_usage_policy_component.py +103 -0
- waldur_api_client/models/nested_customer_usage_policy_component_request.py +87 -0
- waldur_api_client/models/nested_partition.py +412 -0
- waldur_api_client/models/nested_partition_request.py +397 -0
- waldur_api_client/models/nested_plan_component.py +155 -0
- waldur_api_client/models/nested_plan_component_request.py +128 -0
- waldur_api_client/models/nested_software_catalog.py +134 -0
- waldur_api_client/models/nested_software_catalog_catalog.py +86 -0
- waldur_api_client/models/nested_software_catalog_partition.py +86 -0
- waldur_api_client/models/nested_software_catalog_request.py +68 -0
- waldur_api_client/models/nested_software_target.py +84 -0
- waldur_api_client/models/nested_software_target_request.py +75 -0
- waldur_api_client/models/nested_software_version.py +124 -0
- waldur_api_client/models/nested_software_version_request.py +93 -0
- waldur_api_client/models/observable_object_type_enum.py +14 -0
- waldur_api_client/models/offering.py +42 -0
- waldur_api_client/models/offering_create.py +36 -0
- waldur_api_client/models/offering_partition.py +440 -0
- waldur_api_client/models/offering_partition_request.py +406 -0
- waldur_api_client/models/offering_software_catalog.py +176 -0
- waldur_api_client/models/offering_software_catalog_request.py +118 -0
- waldur_api_client/models/onboarding_justification.py +35 -6
- waldur_api_client/models/onboarding_justification_create_request.py +8 -5
- waldur_api_client/models/onboarding_justification_request.py +20 -6
- waldur_api_client/models/onboarding_justification_review_request.py +59 -0
- waldur_api_client/models/order_backend_id_request.py +59 -0
- waldur_api_client/models/order_details.py +39 -0
- waldur_api_client/models/order_state.py +1 -0
- waldur_api_client/models/patched_customer_component_usage_policy_request.py +104 -0
- waldur_api_client/models/patched_offering_partition_request.py +412 -0
- waldur_api_client/models/patched_offering_software_catalog_update_request.py +131 -0
- waldur_api_client/models/patched_onboarding_justification_request.py +16 -5
- waldur_api_client/models/patched_project_request.py +9 -0
- waldur_api_client/models/patched_project_request_form.py +9 -0
- waldur_api_client/models/patched_project_request_multipart.py +12 -0
- waldur_api_client/models/patched_software_catalog_request.py +86 -0
- waldur_api_client/models/patched_software_package_request.py +86 -0
- waldur_api_client/models/plan_component.py +40 -0
- waldur_api_client/models/project.py +27 -0
- waldur_api_client/models/project_recovery_request.py +70 -0
- waldur_api_client/models/project_request.py +9 -0
- waldur_api_client/models/project_request_form.py +9 -0
- waldur_api_client/models/project_request_multipart.py +12 -0
- waldur_api_client/models/project_user.py +21 -4
- waldur_api_client/models/projects_add_user_response_400.py +65 -0
- waldur_api_client/models/projects_list_field_item.py +3 -0
- waldur_api_client/models/projects_move_project_response_400.py +65 -0
- waldur_api_client/models/projects_retrieve_field_item.py +3 -0
- waldur_api_client/models/proposal_proposals_add_user_response_400.py +65 -0
- waldur_api_client/models/proposal_protected_calls_add_user_response_400.py +65 -0
- waldur_api_client/models/provider_offering_details.py +42 -0
- waldur_api_client/models/provider_plan_details.py +18 -0
- waldur_api_client/models/public_offering_details.py +42 -0
- waldur_api_client/models/remote_resource_order_remote_state_enum.py +1 -0
- waldur_api_client/models/{set_offerings_username.py → remove_partition_request.py} +11 -19
- waldur_api_client/models/remove_software_catalog_request.py +60 -0
- waldur_api_client/models/resource.py +33 -0
- waldur_api_client/models/resource_downscaled_request.py +59 -0
- waldur_api_client/models/resource_paused_request.py +59 -0
- waldur_api_client/models/resource_renewal_date_type_0.py +53 -0
- waldur_api_client/models/resource_restrict_member_access_request.py +59 -0
- waldur_api_client/models/software_catalog.py +130 -0
- waldur_api_client/models/software_catalog_request.py +87 -0
- waldur_api_client/models/software_catalog_uuid.py +60 -0
- waldur_api_client/models/software_package.py +168 -0
- waldur_api_client/models/software_package_request.py +87 -0
- waldur_api_client/models/software_target.py +110 -0
- waldur_api_client/models/software_version.py +135 -0
- waldur_api_client/models/user.py +20 -0
- waldur_api_client/models/users_list_field_item.py +1 -0
- waldur_api_client/models/users_me_retrieve_field_item.py +1 -0
- waldur_api_client/models/users_retrieve_field_item.py +1 -0
- {waldur_api_client-7.8.4.dist-info → waldur_api_client-7.8.5.dist-info}/METADATA +1 -1
- {waldur_api_client-7.8.4.dist-info → waldur_api_client-7.8.5.dist-info}/RECORD +256 -103
- waldur_api_client/models/marketplace_service_providers_projects_list_field_item.py +0 -37
- {waldur_api_client-7.8.4.dist-info → waldur_api_client-7.8.5.dist-info}/WHEEL +0 -0
- {waldur_api_client-7.8.4.dist-info → waldur_api_client-7.8.5.dist-info}/licenses/LICENSE +0 -0
|
@@ -0,0 +1,172 @@
|
|
|
1
|
+
import datetime
|
|
2
|
+
from collections.abc import Mapping
|
|
3
|
+
from typing import TYPE_CHECKING, Any, TypeVar, Union, cast
|
|
4
|
+
from uuid import UUID
|
|
5
|
+
|
|
6
|
+
from attrs import define as _attrs_define
|
|
7
|
+
from attrs import field as _attrs_field
|
|
8
|
+
from dateutil.parser import isoparse
|
|
9
|
+
|
|
10
|
+
from ..models.agent_service_state import AgentServiceState
|
|
11
|
+
from ..types import UNSET, Unset
|
|
12
|
+
|
|
13
|
+
if TYPE_CHECKING:
|
|
14
|
+
from ..models.nested_agent_processor import NestedAgentProcessor
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
T = TypeVar("T", bound="AgentService")
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
@_attrs_define
|
|
21
|
+
class AgentService:
|
|
22
|
+
"""
|
|
23
|
+
Attributes:
|
|
24
|
+
uuid (UUID):
|
|
25
|
+
url (str):
|
|
26
|
+
identity (UUID):
|
|
27
|
+
identity_name (str):
|
|
28
|
+
name (str):
|
|
29
|
+
state (AgentServiceState):
|
|
30
|
+
created (datetime.datetime):
|
|
31
|
+
modified (datetime.datetime):
|
|
32
|
+
processors (list['NestedAgentProcessor']):
|
|
33
|
+
mode (Union[None, Unset, str]):
|
|
34
|
+
statistics (Union[Unset, Any]):
|
|
35
|
+
"""
|
|
36
|
+
|
|
37
|
+
uuid: UUID
|
|
38
|
+
url: str
|
|
39
|
+
identity: UUID
|
|
40
|
+
identity_name: str
|
|
41
|
+
name: str
|
|
42
|
+
state: AgentServiceState
|
|
43
|
+
created: datetime.datetime
|
|
44
|
+
modified: datetime.datetime
|
|
45
|
+
processors: list["NestedAgentProcessor"]
|
|
46
|
+
mode: Union[None, Unset, str] = UNSET
|
|
47
|
+
statistics: Union[Unset, Any] = UNSET
|
|
48
|
+
additional_properties: dict[str, Any] = _attrs_field(init=False, factory=dict)
|
|
49
|
+
|
|
50
|
+
def to_dict(self) -> dict[str, Any]:
|
|
51
|
+
uuid = str(self.uuid)
|
|
52
|
+
|
|
53
|
+
url = self.url
|
|
54
|
+
|
|
55
|
+
identity = str(self.identity)
|
|
56
|
+
|
|
57
|
+
identity_name = self.identity_name
|
|
58
|
+
|
|
59
|
+
name = self.name
|
|
60
|
+
|
|
61
|
+
state = self.state.value
|
|
62
|
+
|
|
63
|
+
created = self.created.isoformat()
|
|
64
|
+
|
|
65
|
+
modified = self.modified.isoformat()
|
|
66
|
+
|
|
67
|
+
processors = []
|
|
68
|
+
for processors_item_data in self.processors:
|
|
69
|
+
processors_item = processors_item_data.to_dict()
|
|
70
|
+
processors.append(processors_item)
|
|
71
|
+
|
|
72
|
+
mode: Union[None, Unset, str]
|
|
73
|
+
if isinstance(self.mode, Unset):
|
|
74
|
+
mode = UNSET
|
|
75
|
+
else:
|
|
76
|
+
mode = self.mode
|
|
77
|
+
|
|
78
|
+
statistics = self.statistics
|
|
79
|
+
|
|
80
|
+
field_dict: dict[str, Any] = {}
|
|
81
|
+
field_dict.update(self.additional_properties)
|
|
82
|
+
field_dict.update(
|
|
83
|
+
{
|
|
84
|
+
"uuid": uuid,
|
|
85
|
+
"url": url,
|
|
86
|
+
"identity": identity,
|
|
87
|
+
"identity_name": identity_name,
|
|
88
|
+
"name": name,
|
|
89
|
+
"state": state,
|
|
90
|
+
"created": created,
|
|
91
|
+
"modified": modified,
|
|
92
|
+
"processors": processors,
|
|
93
|
+
}
|
|
94
|
+
)
|
|
95
|
+
if mode is not UNSET:
|
|
96
|
+
field_dict["mode"] = mode
|
|
97
|
+
if statistics is not UNSET:
|
|
98
|
+
field_dict["statistics"] = statistics
|
|
99
|
+
|
|
100
|
+
return field_dict
|
|
101
|
+
|
|
102
|
+
@classmethod
|
|
103
|
+
def from_dict(cls: type[T], src_dict: Mapping[str, Any]) -> T:
|
|
104
|
+
from ..models.nested_agent_processor import NestedAgentProcessor
|
|
105
|
+
|
|
106
|
+
d = dict(src_dict)
|
|
107
|
+
uuid = UUID(d.pop("uuid"))
|
|
108
|
+
|
|
109
|
+
url = d.pop("url")
|
|
110
|
+
|
|
111
|
+
identity = UUID(d.pop("identity"))
|
|
112
|
+
|
|
113
|
+
identity_name = d.pop("identity_name")
|
|
114
|
+
|
|
115
|
+
name = d.pop("name")
|
|
116
|
+
|
|
117
|
+
state = AgentServiceState(d.pop("state"))
|
|
118
|
+
|
|
119
|
+
created = isoparse(d.pop("created"))
|
|
120
|
+
|
|
121
|
+
modified = isoparse(d.pop("modified"))
|
|
122
|
+
|
|
123
|
+
processors = []
|
|
124
|
+
_processors = d.pop("processors")
|
|
125
|
+
for processors_item_data in _processors:
|
|
126
|
+
processors_item = NestedAgentProcessor.from_dict(processors_item_data)
|
|
127
|
+
|
|
128
|
+
processors.append(processors_item)
|
|
129
|
+
|
|
130
|
+
def _parse_mode(data: object) -> Union[None, Unset, str]:
|
|
131
|
+
if data is None:
|
|
132
|
+
return data
|
|
133
|
+
if isinstance(data, Unset):
|
|
134
|
+
return data
|
|
135
|
+
return cast(Union[None, Unset, str], data)
|
|
136
|
+
|
|
137
|
+
mode = _parse_mode(d.pop("mode", UNSET))
|
|
138
|
+
|
|
139
|
+
statistics = d.pop("statistics", UNSET)
|
|
140
|
+
|
|
141
|
+
agent_service = cls(
|
|
142
|
+
uuid=uuid,
|
|
143
|
+
url=url,
|
|
144
|
+
identity=identity,
|
|
145
|
+
identity_name=identity_name,
|
|
146
|
+
name=name,
|
|
147
|
+
state=state,
|
|
148
|
+
created=created,
|
|
149
|
+
modified=modified,
|
|
150
|
+
processors=processors,
|
|
151
|
+
mode=mode,
|
|
152
|
+
statistics=statistics,
|
|
153
|
+
)
|
|
154
|
+
|
|
155
|
+
agent_service.additional_properties = d
|
|
156
|
+
return agent_service
|
|
157
|
+
|
|
158
|
+
@property
|
|
159
|
+
def additional_keys(self) -> list[str]:
|
|
160
|
+
return list(self.additional_properties.keys())
|
|
161
|
+
|
|
162
|
+
def __getitem__(self, key: str) -> Any:
|
|
163
|
+
return self.additional_properties[key]
|
|
164
|
+
|
|
165
|
+
def __setitem__(self, key: str, value: Any) -> None:
|
|
166
|
+
self.additional_properties[key] = value
|
|
167
|
+
|
|
168
|
+
def __delitem__(self, key: str) -> None:
|
|
169
|
+
del self.additional_properties[key]
|
|
170
|
+
|
|
171
|
+
def __contains__(self, key: str) -> bool:
|
|
172
|
+
return key in self.additional_properties
|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
from collections.abc import Mapping
|
|
2
|
+
from typing import Any, TypeVar, Union, cast
|
|
3
|
+
|
|
4
|
+
from attrs import define as _attrs_define
|
|
5
|
+
from attrs import field as _attrs_field
|
|
6
|
+
|
|
7
|
+
from ..types import UNSET, Unset
|
|
8
|
+
|
|
9
|
+
T = TypeVar("T", bound="AgentServiceCreateRequest")
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
@_attrs_define
|
|
13
|
+
class AgentServiceCreateRequest:
|
|
14
|
+
"""
|
|
15
|
+
Attributes:
|
|
16
|
+
name (str):
|
|
17
|
+
mode (Union[None, Unset, str]):
|
|
18
|
+
"""
|
|
19
|
+
|
|
20
|
+
name: str
|
|
21
|
+
mode: Union[None, Unset, str] = UNSET
|
|
22
|
+
additional_properties: dict[str, Any] = _attrs_field(init=False, factory=dict)
|
|
23
|
+
|
|
24
|
+
def to_dict(self) -> dict[str, Any]:
|
|
25
|
+
name = self.name
|
|
26
|
+
|
|
27
|
+
mode: Union[None, Unset, str]
|
|
28
|
+
if isinstance(self.mode, Unset):
|
|
29
|
+
mode = UNSET
|
|
30
|
+
else:
|
|
31
|
+
mode = self.mode
|
|
32
|
+
|
|
33
|
+
field_dict: dict[str, Any] = {}
|
|
34
|
+
field_dict.update(self.additional_properties)
|
|
35
|
+
field_dict.update(
|
|
36
|
+
{
|
|
37
|
+
"name": name,
|
|
38
|
+
}
|
|
39
|
+
)
|
|
40
|
+
if mode is not UNSET:
|
|
41
|
+
field_dict["mode"] = mode
|
|
42
|
+
|
|
43
|
+
return field_dict
|
|
44
|
+
|
|
45
|
+
@classmethod
|
|
46
|
+
def from_dict(cls: type[T], src_dict: Mapping[str, Any]) -> T:
|
|
47
|
+
d = dict(src_dict)
|
|
48
|
+
name = d.pop("name")
|
|
49
|
+
|
|
50
|
+
def _parse_mode(data: object) -> Union[None, Unset, str]:
|
|
51
|
+
if data is None:
|
|
52
|
+
return data
|
|
53
|
+
if isinstance(data, Unset):
|
|
54
|
+
return data
|
|
55
|
+
return cast(Union[None, Unset, str], data)
|
|
56
|
+
|
|
57
|
+
mode = _parse_mode(d.pop("mode", UNSET))
|
|
58
|
+
|
|
59
|
+
agent_service_create_request = cls(
|
|
60
|
+
name=name,
|
|
61
|
+
mode=mode,
|
|
62
|
+
)
|
|
63
|
+
|
|
64
|
+
agent_service_create_request.additional_properties = d
|
|
65
|
+
return agent_service_create_request
|
|
66
|
+
|
|
67
|
+
@property
|
|
68
|
+
def additional_keys(self) -> list[str]:
|
|
69
|
+
return list(self.additional_properties.keys())
|
|
70
|
+
|
|
71
|
+
def __getitem__(self, key: str) -> Any:
|
|
72
|
+
return self.additional_properties[key]
|
|
73
|
+
|
|
74
|
+
def __setitem__(self, key: str, value: Any) -> None:
|
|
75
|
+
self.additional_properties[key] = value
|
|
76
|
+
|
|
77
|
+
def __delitem__(self, key: str) -> None:
|
|
78
|
+
del self.additional_properties[key]
|
|
79
|
+
|
|
80
|
+
def __contains__(self, key: str) -> bool:
|
|
81
|
+
return key in self.additional_properties
|
|
@@ -0,0 +1,59 @@
|
|
|
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
|
+
T = TypeVar("T", bound="AgentServiceStatisticsRequest")
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
@_attrs_define
|
|
11
|
+
class AgentServiceStatisticsRequest:
|
|
12
|
+
"""
|
|
13
|
+
Attributes:
|
|
14
|
+
statistics (Any): Statistics data to be stored for the service
|
|
15
|
+
"""
|
|
16
|
+
|
|
17
|
+
statistics: Any
|
|
18
|
+
additional_properties: dict[str, Any] = _attrs_field(init=False, factory=dict)
|
|
19
|
+
|
|
20
|
+
def to_dict(self) -> dict[str, Any]:
|
|
21
|
+
statistics = self.statistics
|
|
22
|
+
|
|
23
|
+
field_dict: dict[str, Any] = {}
|
|
24
|
+
field_dict.update(self.additional_properties)
|
|
25
|
+
field_dict.update(
|
|
26
|
+
{
|
|
27
|
+
"statistics": statistics,
|
|
28
|
+
}
|
|
29
|
+
)
|
|
30
|
+
|
|
31
|
+
return field_dict
|
|
32
|
+
|
|
33
|
+
@classmethod
|
|
34
|
+
def from_dict(cls: type[T], src_dict: Mapping[str, Any]) -> T:
|
|
35
|
+
d = dict(src_dict)
|
|
36
|
+
statistics = d.pop("statistics")
|
|
37
|
+
|
|
38
|
+
agent_service_statistics_request = cls(
|
|
39
|
+
statistics=statistics,
|
|
40
|
+
)
|
|
41
|
+
|
|
42
|
+
agent_service_statistics_request.additional_properties = d
|
|
43
|
+
return agent_service_statistics_request
|
|
44
|
+
|
|
45
|
+
@property
|
|
46
|
+
def additional_keys(self) -> list[str]:
|
|
47
|
+
return list(self.additional_properties.keys())
|
|
48
|
+
|
|
49
|
+
def __getitem__(self, key: str) -> Any:
|
|
50
|
+
return self.additional_properties[key]
|
|
51
|
+
|
|
52
|
+
def __setitem__(self, key: str, value: Any) -> None:
|
|
53
|
+
self.additional_properties[key] = value
|
|
54
|
+
|
|
55
|
+
def __delitem__(self, key: str) -> None:
|
|
56
|
+
del self.additional_properties[key]
|
|
57
|
+
|
|
58
|
+
def __contains__(self, key: str) -> bool:
|
|
59
|
+
return key in self.additional_properties
|
|
@@ -12,6 +12,7 @@ if TYPE_CHECKING:
|
|
|
12
12
|
from ..models.base_provider_plan_future_prices import BaseProviderPlanFuturePrices
|
|
13
13
|
from ..models.base_provider_plan_prices import BaseProviderPlanPrices
|
|
14
14
|
from ..models.base_provider_plan_quotas import BaseProviderPlanQuotas
|
|
15
|
+
from ..models.nested_plan_component import NestedPlanComponent
|
|
15
16
|
from ..models.organization_group import OrganizationGroup
|
|
16
17
|
|
|
17
18
|
|
|
@@ -37,6 +38,7 @@ class BaseProviderPlan:
|
|
|
37
38
|
switch_price (Union[Unset, float]):
|
|
38
39
|
backend_id (Union[Unset, str]):
|
|
39
40
|
organization_groups (Union[Unset, list['OrganizationGroup']]):
|
|
41
|
+
components (Union[Unset, list['NestedPlanComponent']]):
|
|
40
42
|
prices (Union[Unset, BaseProviderPlanPrices]):
|
|
41
43
|
future_prices (Union[Unset, BaseProviderPlanFuturePrices]):
|
|
42
44
|
quotas (Union[Unset, BaseProviderPlanQuotas]):
|
|
@@ -59,6 +61,7 @@ class BaseProviderPlan:
|
|
|
59
61
|
switch_price: Union[Unset, float] = UNSET
|
|
60
62
|
backend_id: Union[Unset, str] = UNSET
|
|
61
63
|
organization_groups: Union[Unset, list["OrganizationGroup"]] = UNSET
|
|
64
|
+
components: Union[Unset, list["NestedPlanComponent"]] = UNSET
|
|
62
65
|
prices: Union[Unset, "BaseProviderPlanPrices"] = UNSET
|
|
63
66
|
future_prices: Union[Unset, "BaseProviderPlanFuturePrices"] = UNSET
|
|
64
67
|
quotas: Union[Unset, "BaseProviderPlanQuotas"] = UNSET
|
|
@@ -109,6 +112,13 @@ class BaseProviderPlan:
|
|
|
109
112
|
organization_groups_item = organization_groups_item_data.to_dict()
|
|
110
113
|
organization_groups.append(organization_groups_item)
|
|
111
114
|
|
|
115
|
+
components: Union[Unset, list[dict[str, Any]]] = UNSET
|
|
116
|
+
if not isinstance(self.components, Unset):
|
|
117
|
+
components = []
|
|
118
|
+
for components_item_data in self.components:
|
|
119
|
+
components_item = components_item_data.to_dict()
|
|
120
|
+
components.append(components_item)
|
|
121
|
+
|
|
112
122
|
prices: Union[Unset, dict[str, Any]] = UNSET
|
|
113
123
|
if not isinstance(self.prices, Unset):
|
|
114
124
|
prices = self.prices.to_dict()
|
|
@@ -158,6 +168,8 @@ class BaseProviderPlan:
|
|
|
158
168
|
field_dict["backend_id"] = backend_id
|
|
159
169
|
if organization_groups is not UNSET:
|
|
160
170
|
field_dict["organization_groups"] = organization_groups
|
|
171
|
+
if components is not UNSET:
|
|
172
|
+
field_dict["components"] = components
|
|
161
173
|
if prices is not UNSET:
|
|
162
174
|
field_dict["prices"] = prices
|
|
163
175
|
if future_prices is not UNSET:
|
|
@@ -178,6 +190,7 @@ class BaseProviderPlan:
|
|
|
178
190
|
from ..models.base_provider_plan_future_prices import BaseProviderPlanFuturePrices
|
|
179
191
|
from ..models.base_provider_plan_prices import BaseProviderPlanPrices
|
|
180
192
|
from ..models.base_provider_plan_quotas import BaseProviderPlanQuotas
|
|
193
|
+
from ..models.nested_plan_component import NestedPlanComponent
|
|
181
194
|
from ..models.organization_group import OrganizationGroup
|
|
182
195
|
|
|
183
196
|
d = dict(src_dict)
|
|
@@ -231,6 +244,13 @@ class BaseProviderPlan:
|
|
|
231
244
|
|
|
232
245
|
organization_groups.append(organization_groups_item)
|
|
233
246
|
|
|
247
|
+
components = []
|
|
248
|
+
_components = d.pop("components", UNSET)
|
|
249
|
+
for components_item_data in _components or []:
|
|
250
|
+
components_item = NestedPlanComponent.from_dict(components_item_data)
|
|
251
|
+
|
|
252
|
+
components.append(components_item)
|
|
253
|
+
|
|
234
254
|
_prices = d.pop("prices", UNSET)
|
|
235
255
|
prices: Union[Unset, BaseProviderPlanPrices]
|
|
236
256
|
if isinstance(_prices, Unset):
|
|
@@ -273,6 +293,7 @@ class BaseProviderPlan:
|
|
|
273
293
|
switch_price=switch_price,
|
|
274
294
|
backend_id=backend_id,
|
|
275
295
|
organization_groups=organization_groups,
|
|
296
|
+
components=components,
|
|
276
297
|
prices=prices,
|
|
277
298
|
future_prices=future_prices,
|
|
278
299
|
quotas=quotas,
|
|
@@ -12,6 +12,7 @@ if TYPE_CHECKING:
|
|
|
12
12
|
from ..models.base_public_plan_future_prices import BasePublicPlanFuturePrices
|
|
13
13
|
from ..models.base_public_plan_prices import BasePublicPlanPrices
|
|
14
14
|
from ..models.base_public_plan_quotas import BasePublicPlanQuotas
|
|
15
|
+
from ..models.nested_plan_component import NestedPlanComponent
|
|
15
16
|
from ..models.organization_group import OrganizationGroup
|
|
16
17
|
|
|
17
18
|
|
|
@@ -37,6 +38,7 @@ class BasePublicPlan:
|
|
|
37
38
|
switch_price (Union[Unset, float]):
|
|
38
39
|
backend_id (Union[Unset, str]):
|
|
39
40
|
organization_groups (Union[Unset, list['OrganizationGroup']]):
|
|
41
|
+
components (Union[Unset, list['NestedPlanComponent']]):
|
|
40
42
|
prices (Union[Unset, BasePublicPlanPrices]):
|
|
41
43
|
future_prices (Union[Unset, BasePublicPlanFuturePrices]):
|
|
42
44
|
quotas (Union[Unset, BasePublicPlanQuotas]):
|
|
@@ -59,6 +61,7 @@ class BasePublicPlan:
|
|
|
59
61
|
switch_price: Union[Unset, float] = UNSET
|
|
60
62
|
backend_id: Union[Unset, str] = UNSET
|
|
61
63
|
organization_groups: Union[Unset, list["OrganizationGroup"]] = UNSET
|
|
64
|
+
components: Union[Unset, list["NestedPlanComponent"]] = UNSET
|
|
62
65
|
prices: Union[Unset, "BasePublicPlanPrices"] = UNSET
|
|
63
66
|
future_prices: Union[Unset, "BasePublicPlanFuturePrices"] = UNSET
|
|
64
67
|
quotas: Union[Unset, "BasePublicPlanQuotas"] = UNSET
|
|
@@ -109,6 +112,13 @@ class BasePublicPlan:
|
|
|
109
112
|
organization_groups_item = organization_groups_item_data.to_dict()
|
|
110
113
|
organization_groups.append(organization_groups_item)
|
|
111
114
|
|
|
115
|
+
components: Union[Unset, list[dict[str, Any]]] = UNSET
|
|
116
|
+
if not isinstance(self.components, Unset):
|
|
117
|
+
components = []
|
|
118
|
+
for components_item_data in self.components:
|
|
119
|
+
components_item = components_item_data.to_dict()
|
|
120
|
+
components.append(components_item)
|
|
121
|
+
|
|
112
122
|
prices: Union[Unset, dict[str, Any]] = UNSET
|
|
113
123
|
if not isinstance(self.prices, Unset):
|
|
114
124
|
prices = self.prices.to_dict()
|
|
@@ -158,6 +168,8 @@ class BasePublicPlan:
|
|
|
158
168
|
field_dict["backend_id"] = backend_id
|
|
159
169
|
if organization_groups is not UNSET:
|
|
160
170
|
field_dict["organization_groups"] = organization_groups
|
|
171
|
+
if components is not UNSET:
|
|
172
|
+
field_dict["components"] = components
|
|
161
173
|
if prices is not UNSET:
|
|
162
174
|
field_dict["prices"] = prices
|
|
163
175
|
if future_prices is not UNSET:
|
|
@@ -178,6 +190,7 @@ class BasePublicPlan:
|
|
|
178
190
|
from ..models.base_public_plan_future_prices import BasePublicPlanFuturePrices
|
|
179
191
|
from ..models.base_public_plan_prices import BasePublicPlanPrices
|
|
180
192
|
from ..models.base_public_plan_quotas import BasePublicPlanQuotas
|
|
193
|
+
from ..models.nested_plan_component import NestedPlanComponent
|
|
181
194
|
from ..models.organization_group import OrganizationGroup
|
|
182
195
|
|
|
183
196
|
d = dict(src_dict)
|
|
@@ -231,6 +244,13 @@ class BasePublicPlan:
|
|
|
231
244
|
|
|
232
245
|
organization_groups.append(organization_groups_item)
|
|
233
246
|
|
|
247
|
+
components = []
|
|
248
|
+
_components = d.pop("components", UNSET)
|
|
249
|
+
for components_item_data in _components or []:
|
|
250
|
+
components_item = NestedPlanComponent.from_dict(components_item_data)
|
|
251
|
+
|
|
252
|
+
components.append(components_item)
|
|
253
|
+
|
|
234
254
|
_prices = d.pop("prices", UNSET)
|
|
235
255
|
prices: Union[Unset, BasePublicPlanPrices]
|
|
236
256
|
if isinstance(_prices, Unset):
|
|
@@ -273,6 +293,7 @@ class BasePublicPlan:
|
|
|
273
293
|
switch_price=switch_price,
|
|
274
294
|
backend_id=backend_id,
|
|
275
295
|
organization_groups=organization_groups,
|
|
296
|
+
components=components,
|
|
276
297
|
prices=prices,
|
|
277
298
|
future_prices=future_prices,
|
|
278
299
|
quotas=quotas,
|
|
@@ -37,6 +37,7 @@ class BookingOfferingsListFieldItem(str, Enum):
|
|
|
37
37
|
PARENT_DESCRIPTION = "parent_description"
|
|
38
38
|
PARENT_NAME = "parent_name"
|
|
39
39
|
PARENT_UUID = "parent_uuid"
|
|
40
|
+
PARTITIONS = "partitions"
|
|
40
41
|
PAUSED_REASON = "paused_reason"
|
|
41
42
|
PLANS = "plans"
|
|
42
43
|
PLUGIN_OPTIONS = "plugin_options"
|
|
@@ -55,6 +56,7 @@ class BookingOfferingsListFieldItem(str, Enum):
|
|
|
55
56
|
SCREENSHOTS = "screenshots"
|
|
56
57
|
SHARED = "shared"
|
|
57
58
|
SLUG = "slug"
|
|
59
|
+
SOFTWARE_CATALOGS = "software_catalogs"
|
|
58
60
|
STATE = "state"
|
|
59
61
|
THUMBNAIL = "thumbnail"
|
|
60
62
|
TOTAL_COST = "total_cost"
|
|
@@ -37,6 +37,7 @@ class BookingOfferingsRetrieveFieldItem(str, Enum):
|
|
|
37
37
|
PARENT_DESCRIPTION = "parent_description"
|
|
38
38
|
PARENT_NAME = "parent_name"
|
|
39
39
|
PARENT_UUID = "parent_uuid"
|
|
40
|
+
PARTITIONS = "partitions"
|
|
40
41
|
PAUSED_REASON = "paused_reason"
|
|
41
42
|
PLANS = "plans"
|
|
42
43
|
PLUGIN_OPTIONS = "plugin_options"
|
|
@@ -55,6 +56,7 @@ class BookingOfferingsRetrieveFieldItem(str, Enum):
|
|
|
55
56
|
SCREENSHOTS = "screenshots"
|
|
56
57
|
SHARED = "shared"
|
|
57
58
|
SLUG = "slug"
|
|
59
|
+
SOFTWARE_CATALOGS = "software_catalogs"
|
|
58
60
|
STATE = "state"
|
|
59
61
|
THUMBNAIL = "thumbnail"
|
|
60
62
|
TOTAL_COST = "total_cost"
|
|
@@ -17,6 +17,7 @@ if TYPE_CHECKING:
|
|
|
17
17
|
from ..models.booking_resource_current_usages import BookingResourceCurrentUsages
|
|
18
18
|
from ..models.booking_resource_limit_usage import BookingResourceLimitUsage
|
|
19
19
|
from ..models.booking_resource_limits import BookingResourceLimits
|
|
20
|
+
from ..models.booking_resource_renewal_date_type_0 import BookingResourceRenewalDateType0
|
|
20
21
|
from ..models.booking_slot import BookingSlot
|
|
21
22
|
from ..models.nested_endpoint import NestedEndpoint
|
|
22
23
|
from ..models.order_details import OrderDetails
|
|
@@ -109,6 +110,7 @@ class BookingResource:
|
|
|
109
110
|
customer_slug (Union[Unset, str]):
|
|
110
111
|
user_requires_reconsent (Union[Unset, bool]): Check if the current user needs to re-consent for this resource's
|
|
111
112
|
offering.
|
|
113
|
+
renewal_date (Union['BookingResourceRenewalDateType0', None, Unset]):
|
|
112
114
|
created_by (Union[Unset, str]):
|
|
113
115
|
created_by_username (Union[Unset, str]): Required. 128 characters or fewer. Lowercase letters, numbers and
|
|
114
116
|
@/./+/-/_ characters
|
|
@@ -195,6 +197,7 @@ class BookingResource:
|
|
|
195
197
|
project_slug: Union[Unset, str] = UNSET
|
|
196
198
|
customer_slug: Union[Unset, str] = UNSET
|
|
197
199
|
user_requires_reconsent: Union[Unset, bool] = UNSET
|
|
200
|
+
renewal_date: Union["BookingResourceRenewalDateType0", None, Unset] = UNSET
|
|
198
201
|
created_by: Union[Unset, str] = UNSET
|
|
199
202
|
created_by_username: Union[Unset, str] = UNSET
|
|
200
203
|
created_by_full_name: Union[Unset, str] = UNSET
|
|
@@ -205,6 +208,7 @@ class BookingResource:
|
|
|
205
208
|
additional_properties: dict[str, Any] = _attrs_field(init=False, factory=dict)
|
|
206
209
|
|
|
207
210
|
def to_dict(self) -> dict[str, Any]:
|
|
211
|
+
from ..models.booking_resource_renewal_date_type_0 import BookingResourceRenewalDateType0
|
|
208
212
|
from ..models.order_details import OrderDetails
|
|
209
213
|
|
|
210
214
|
offering = self.offering
|
|
@@ -467,6 +471,14 @@ class BookingResource:
|
|
|
467
471
|
|
|
468
472
|
user_requires_reconsent = self.user_requires_reconsent
|
|
469
473
|
|
|
474
|
+
renewal_date: Union[None, Unset, dict[str, Any]]
|
|
475
|
+
if isinstance(self.renewal_date, Unset):
|
|
476
|
+
renewal_date = UNSET
|
|
477
|
+
elif isinstance(self.renewal_date, BookingResourceRenewalDateType0):
|
|
478
|
+
renewal_date = self.renewal_date.to_dict()
|
|
479
|
+
else:
|
|
480
|
+
renewal_date = self.renewal_date
|
|
481
|
+
|
|
470
482
|
created_by = self.created_by
|
|
471
483
|
|
|
472
484
|
created_by_username = self.created_by_username
|
|
@@ -639,6 +651,8 @@ class BookingResource:
|
|
|
639
651
|
field_dict["customer_slug"] = customer_slug
|
|
640
652
|
if user_requires_reconsent is not UNSET:
|
|
641
653
|
field_dict["user_requires_reconsent"] = user_requires_reconsent
|
|
654
|
+
if renewal_date is not UNSET:
|
|
655
|
+
field_dict["renewal_date"] = renewal_date
|
|
642
656
|
if created_by is not UNSET:
|
|
643
657
|
field_dict["created_by"] = created_by
|
|
644
658
|
if created_by_username is not UNSET:
|
|
@@ -663,6 +677,7 @@ class BookingResource:
|
|
|
663
677
|
from ..models.booking_resource_current_usages import BookingResourceCurrentUsages
|
|
664
678
|
from ..models.booking_resource_limit_usage import BookingResourceLimitUsage
|
|
665
679
|
from ..models.booking_resource_limits import BookingResourceLimits
|
|
680
|
+
from ..models.booking_resource_renewal_date_type_0 import BookingResourceRenewalDateType0
|
|
666
681
|
from ..models.booking_slot import BookingSlot
|
|
667
682
|
from ..models.nested_endpoint import NestedEndpoint
|
|
668
683
|
from ..models.order_details import OrderDetails
|
|
@@ -1059,6 +1074,23 @@ class BookingResource:
|
|
|
1059
1074
|
|
|
1060
1075
|
user_requires_reconsent = d.pop("user_requires_reconsent", UNSET)
|
|
1061
1076
|
|
|
1077
|
+
def _parse_renewal_date(data: object) -> Union["BookingResourceRenewalDateType0", None, Unset]:
|
|
1078
|
+
if data is None:
|
|
1079
|
+
return data
|
|
1080
|
+
if isinstance(data, Unset):
|
|
1081
|
+
return data
|
|
1082
|
+
try:
|
|
1083
|
+
if not isinstance(data, dict):
|
|
1084
|
+
raise TypeError()
|
|
1085
|
+
renewal_date_type_0 = BookingResourceRenewalDateType0.from_dict(data)
|
|
1086
|
+
|
|
1087
|
+
return renewal_date_type_0
|
|
1088
|
+
except: # noqa: E722
|
|
1089
|
+
pass
|
|
1090
|
+
return cast(Union["BookingResourceRenewalDateType0", None, Unset], data)
|
|
1091
|
+
|
|
1092
|
+
renewal_date = _parse_renewal_date(d.pop("renewal_date", UNSET))
|
|
1093
|
+
|
|
1062
1094
|
created_by = d.pop("created_by", UNSET)
|
|
1063
1095
|
|
|
1064
1096
|
created_by_username = d.pop("created_by_username", UNSET)
|
|
@@ -1154,6 +1186,7 @@ class BookingResource:
|
|
|
1154
1186
|
project_slug=project_slug,
|
|
1155
1187
|
customer_slug=customer_slug,
|
|
1156
1188
|
user_requires_reconsent=user_requires_reconsent,
|
|
1189
|
+
renewal_date=renewal_date,
|
|
1157
1190
|
created_by=created_by,
|
|
1158
1191
|
created_by_username=created_by_username,
|
|
1159
1192
|
created_by_full_name=created_by_full_name,
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
import datetime
|
|
2
|
+
from collections.abc import Mapping
|
|
3
|
+
from typing import Any, TypeVar
|
|
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
|
+
T = TypeVar("T", bound="BookingResourceRenewalDateType0")
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
@_attrs_define
|
|
13
|
+
class BookingResourceRenewalDateType0:
|
|
14
|
+
""" """
|
|
15
|
+
|
|
16
|
+
additional_properties: dict[str, datetime.date] = _attrs_field(init=False, factory=dict)
|
|
17
|
+
|
|
18
|
+
def to_dict(self) -> dict[str, Any]:
|
|
19
|
+
field_dict: dict[str, Any] = {}
|
|
20
|
+
for prop_name, prop in self.additional_properties.items():
|
|
21
|
+
field_dict[prop_name] = prop.isoformat()
|
|
22
|
+
|
|
23
|
+
return field_dict
|
|
24
|
+
|
|
25
|
+
@classmethod
|
|
26
|
+
def from_dict(cls: type[T], src_dict: Mapping[str, Any]) -> T:
|
|
27
|
+
d = dict(src_dict)
|
|
28
|
+
booking_resource_renewal_date_type_0 = cls()
|
|
29
|
+
|
|
30
|
+
additional_properties = {}
|
|
31
|
+
for prop_name, prop_dict in d.items():
|
|
32
|
+
additional_property = isoparse(prop_dict).date()
|
|
33
|
+
|
|
34
|
+
additional_properties[prop_name] = additional_property
|
|
35
|
+
|
|
36
|
+
booking_resource_renewal_date_type_0.additional_properties = additional_properties
|
|
37
|
+
return booking_resource_renewal_date_type_0
|
|
38
|
+
|
|
39
|
+
@property
|
|
40
|
+
def additional_keys(self) -> list[str]:
|
|
41
|
+
return list(self.additional_properties.keys())
|
|
42
|
+
|
|
43
|
+
def __getitem__(self, key: str) -> datetime.date:
|
|
44
|
+
return self.additional_properties[key]
|
|
45
|
+
|
|
46
|
+
def __setitem__(self, key: str, value: datetime.date) -> None:
|
|
47
|
+
self.additional_properties[key] = value
|
|
48
|
+
|
|
49
|
+
def __delitem__(self, key: str) -> None:
|
|
50
|
+
del self.additional_properties[key]
|
|
51
|
+
|
|
52
|
+
def __contains__(self, key: str) -> bool:
|
|
53
|
+
return key in self.additional_properties
|
|
@@ -71,6 +71,7 @@ class BookingResourcesListFieldItem(str, Enum):
|
|
|
71
71
|
PROVIDER_NAME = "provider_name"
|
|
72
72
|
PROVIDER_SLUG = "provider_slug"
|
|
73
73
|
PROVIDER_UUID = "provider_uuid"
|
|
74
|
+
RENEWAL_DATE = "renewal_date"
|
|
74
75
|
REPORT = "report"
|
|
75
76
|
RESOURCE_TYPE = "resource_type"
|
|
76
77
|
RESOURCE_UUID = "resource_uuid"
|
|
@@ -71,6 +71,7 @@ class BookingResourcesRetrieveFieldItem(str, Enum):
|
|
|
71
71
|
PROVIDER_NAME = "provider_name"
|
|
72
72
|
PROVIDER_SLUG = "provider_slug"
|
|
73
73
|
PROVIDER_UUID = "provider_uuid"
|
|
74
|
+
RENEWAL_DATE = "renewal_date"
|
|
74
75
|
REPORT = "report"
|
|
75
76
|
RESOURCE_TYPE = "resource_type"
|
|
76
77
|
RESOURCE_UUID = "resource_uuid"
|