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,93 @@
|
|
|
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 ..types import UNSET, Unset
|
|
10
|
+
|
|
11
|
+
T = TypeVar("T", bound="NestedSoftwareVersionRequest")
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
@_attrs_define
|
|
15
|
+
class NestedSoftwareVersionRequest:
|
|
16
|
+
"""
|
|
17
|
+
Attributes:
|
|
18
|
+
version (str):
|
|
19
|
+
release_date (Union[None, Unset, datetime.date]):
|
|
20
|
+
"""
|
|
21
|
+
|
|
22
|
+
version: str
|
|
23
|
+
release_date: Union[None, Unset, datetime.date] = UNSET
|
|
24
|
+
additional_properties: dict[str, Any] = _attrs_field(init=False, factory=dict)
|
|
25
|
+
|
|
26
|
+
def to_dict(self) -> dict[str, Any]:
|
|
27
|
+
version = self.version
|
|
28
|
+
|
|
29
|
+
release_date: Union[None, Unset, str]
|
|
30
|
+
if isinstance(self.release_date, Unset):
|
|
31
|
+
release_date = UNSET
|
|
32
|
+
elif isinstance(self.release_date, datetime.date):
|
|
33
|
+
release_date = self.release_date.isoformat()
|
|
34
|
+
else:
|
|
35
|
+
release_date = self.release_date
|
|
36
|
+
|
|
37
|
+
field_dict: dict[str, Any] = {}
|
|
38
|
+
field_dict.update(self.additional_properties)
|
|
39
|
+
field_dict.update(
|
|
40
|
+
{
|
|
41
|
+
"version": version,
|
|
42
|
+
}
|
|
43
|
+
)
|
|
44
|
+
if release_date is not UNSET:
|
|
45
|
+
field_dict["release_date"] = release_date
|
|
46
|
+
|
|
47
|
+
return field_dict
|
|
48
|
+
|
|
49
|
+
@classmethod
|
|
50
|
+
def from_dict(cls: type[T], src_dict: Mapping[str, Any]) -> T:
|
|
51
|
+
d = dict(src_dict)
|
|
52
|
+
version = d.pop("version")
|
|
53
|
+
|
|
54
|
+
def _parse_release_date(data: object) -> Union[None, Unset, datetime.date]:
|
|
55
|
+
if data is None:
|
|
56
|
+
return data
|
|
57
|
+
if isinstance(data, Unset):
|
|
58
|
+
return data
|
|
59
|
+
try:
|
|
60
|
+
if not isinstance(data, str):
|
|
61
|
+
raise TypeError()
|
|
62
|
+
release_date_type_0 = isoparse(data).date()
|
|
63
|
+
|
|
64
|
+
return release_date_type_0
|
|
65
|
+
except: # noqa: E722
|
|
66
|
+
pass
|
|
67
|
+
return cast(Union[None, Unset, datetime.date], data)
|
|
68
|
+
|
|
69
|
+
release_date = _parse_release_date(d.pop("release_date", UNSET))
|
|
70
|
+
|
|
71
|
+
nested_software_version_request = cls(
|
|
72
|
+
version=version,
|
|
73
|
+
release_date=release_date,
|
|
74
|
+
)
|
|
75
|
+
|
|
76
|
+
nested_software_version_request.additional_properties = d
|
|
77
|
+
return nested_software_version_request
|
|
78
|
+
|
|
79
|
+
@property
|
|
80
|
+
def additional_keys(self) -> list[str]:
|
|
81
|
+
return list(self.additional_properties.keys())
|
|
82
|
+
|
|
83
|
+
def __getitem__(self, key: str) -> Any:
|
|
84
|
+
return self.additional_properties[key]
|
|
85
|
+
|
|
86
|
+
def __setitem__(self, key: str, value: Any) -> None:
|
|
87
|
+
self.additional_properties[key] = value
|
|
88
|
+
|
|
89
|
+
def __delitem__(self, key: str) -> None:
|
|
90
|
+
del self.additional_properties[key]
|
|
91
|
+
|
|
92
|
+
def __contains__(self, key: str) -> bool:
|
|
93
|
+
return key in self.additional_properties
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
from enum import Enum
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
class ObservableObjectTypeEnum(str, Enum):
|
|
5
|
+
COURSE_ACCOUNT = "course_account"
|
|
6
|
+
IMPORTABLE_RESOURCES = "importable_resources"
|
|
7
|
+
OFFERING_USER = "offering_user"
|
|
8
|
+
ORDER = "order"
|
|
9
|
+
RESOURCE = "resource"
|
|
10
|
+
SERVICE_ACCOUNT = "service_account"
|
|
11
|
+
USER_ROLE = "user_role"
|
|
12
|
+
|
|
13
|
+
def __str__(self) -> str:
|
|
14
|
+
return str(self.value)
|
|
@@ -19,8 +19,10 @@ if TYPE_CHECKING:
|
|
|
19
19
|
from ..models.merged_plugin_options import MergedPluginOptions
|
|
20
20
|
from ..models.nested_endpoint import NestedEndpoint
|
|
21
21
|
from ..models.nested_offering_file import NestedOfferingFile
|
|
22
|
+
from ..models.nested_partition import NestedPartition
|
|
22
23
|
from ..models.nested_role import NestedRole
|
|
23
24
|
from ..models.nested_screenshot import NestedScreenshot
|
|
25
|
+
from ..models.nested_software_catalog import NestedSoftwareCatalog
|
|
24
26
|
from ..models.offering_attributes import OfferingAttributes
|
|
25
27
|
from ..models.offering_component import OfferingComponent
|
|
26
28
|
from ..models.offering_options import OfferingOptions
|
|
@@ -45,6 +47,8 @@ class Offering:
|
|
|
45
47
|
privacy_policy_link (Union[Unset, str]):
|
|
46
48
|
access_url (Union[Unset, str]): Publicly accessible offering access URL
|
|
47
49
|
endpoints (Union[Unset, list['NestedEndpoint']]):
|
|
50
|
+
software_catalogs (Union[Unset, list['NestedSoftwareCatalog']]):
|
|
51
|
+
partitions (Union[Unset, list['NestedPartition']]):
|
|
48
52
|
roles (Union[Unset, list['NestedRole']]):
|
|
49
53
|
customer (Union[None, Unset, str]):
|
|
50
54
|
customer_uuid (Union[None, UUID, Unset]):
|
|
@@ -110,6 +114,8 @@ class Offering:
|
|
|
110
114
|
privacy_policy_link: Union[Unset, str] = UNSET
|
|
111
115
|
access_url: Union[Unset, str] = UNSET
|
|
112
116
|
endpoints: Union[Unset, list["NestedEndpoint"]] = UNSET
|
|
117
|
+
software_catalogs: Union[Unset, list["NestedSoftwareCatalog"]] = UNSET
|
|
118
|
+
partitions: Union[Unset, list["NestedPartition"]] = UNSET
|
|
113
119
|
roles: Union[Unset, list["NestedRole"]] = UNSET
|
|
114
120
|
customer: Union[None, Unset, str] = UNSET
|
|
115
121
|
customer_uuid: Union[None, UUID, Unset] = UNSET
|
|
@@ -195,6 +201,20 @@ class Offering:
|
|
|
195
201
|
endpoints_item = endpoints_item_data.to_dict()
|
|
196
202
|
endpoints.append(endpoints_item)
|
|
197
203
|
|
|
204
|
+
software_catalogs: Union[Unset, list[dict[str, Any]]] = UNSET
|
|
205
|
+
if not isinstance(self.software_catalogs, Unset):
|
|
206
|
+
software_catalogs = []
|
|
207
|
+
for software_catalogs_item_data in self.software_catalogs:
|
|
208
|
+
software_catalogs_item = software_catalogs_item_data.to_dict()
|
|
209
|
+
software_catalogs.append(software_catalogs_item)
|
|
210
|
+
|
|
211
|
+
partitions: Union[Unset, list[dict[str, Any]]] = UNSET
|
|
212
|
+
if not isinstance(self.partitions, Unset):
|
|
213
|
+
partitions = []
|
|
214
|
+
for partitions_item_data in self.partitions:
|
|
215
|
+
partitions_item = partitions_item_data.to_dict()
|
|
216
|
+
partitions.append(partitions_item)
|
|
217
|
+
|
|
198
218
|
roles: Union[Unset, list[dict[str, Any]]] = UNSET
|
|
199
219
|
if not isinstance(self.roles, Unset):
|
|
200
220
|
roles = []
|
|
@@ -475,6 +495,10 @@ class Offering:
|
|
|
475
495
|
field_dict["access_url"] = access_url
|
|
476
496
|
if endpoints is not UNSET:
|
|
477
497
|
field_dict["endpoints"] = endpoints
|
|
498
|
+
if software_catalogs is not UNSET:
|
|
499
|
+
field_dict["software_catalogs"] = software_catalogs
|
|
500
|
+
if partitions is not UNSET:
|
|
501
|
+
field_dict["partitions"] = partitions
|
|
478
502
|
if roles is not UNSET:
|
|
479
503
|
field_dict["roles"] = roles
|
|
480
504
|
if customer is not UNSET:
|
|
@@ -591,8 +615,10 @@ class Offering:
|
|
|
591
615
|
from ..models.merged_plugin_options import MergedPluginOptions
|
|
592
616
|
from ..models.nested_endpoint import NestedEndpoint
|
|
593
617
|
from ..models.nested_offering_file import NestedOfferingFile
|
|
618
|
+
from ..models.nested_partition import NestedPartition
|
|
594
619
|
from ..models.nested_role import NestedRole
|
|
595
620
|
from ..models.nested_screenshot import NestedScreenshot
|
|
621
|
+
from ..models.nested_software_catalog import NestedSoftwareCatalog
|
|
596
622
|
from ..models.offering_attributes import OfferingAttributes
|
|
597
623
|
from ..models.offering_component import OfferingComponent
|
|
598
624
|
from ..models.offering_options import OfferingOptions
|
|
@@ -635,6 +661,20 @@ class Offering:
|
|
|
635
661
|
|
|
636
662
|
endpoints.append(endpoints_item)
|
|
637
663
|
|
|
664
|
+
software_catalogs = []
|
|
665
|
+
_software_catalogs = d.pop("software_catalogs", UNSET)
|
|
666
|
+
for software_catalogs_item_data in _software_catalogs or []:
|
|
667
|
+
software_catalogs_item = NestedSoftwareCatalog.from_dict(software_catalogs_item_data)
|
|
668
|
+
|
|
669
|
+
software_catalogs.append(software_catalogs_item)
|
|
670
|
+
|
|
671
|
+
partitions = []
|
|
672
|
+
_partitions = d.pop("partitions", UNSET)
|
|
673
|
+
for partitions_item_data in _partitions or []:
|
|
674
|
+
partitions_item = NestedPartition.from_dict(partitions_item_data)
|
|
675
|
+
|
|
676
|
+
partitions.append(partitions_item)
|
|
677
|
+
|
|
638
678
|
roles = []
|
|
639
679
|
_roles = d.pop("roles", UNSET)
|
|
640
680
|
for roles_item_data in _roles or []:
|
|
@@ -1034,6 +1074,8 @@ class Offering:
|
|
|
1034
1074
|
privacy_policy_link=privacy_policy_link,
|
|
1035
1075
|
access_url=access_url,
|
|
1036
1076
|
endpoints=endpoints,
|
|
1077
|
+
software_catalogs=software_catalogs,
|
|
1078
|
+
partitions=partitions,
|
|
1037
1079
|
roles=roles,
|
|
1038
1080
|
customer=customer,
|
|
1039
1081
|
customer_uuid=customer_uuid,
|
|
@@ -19,8 +19,10 @@ if TYPE_CHECKING:
|
|
|
19
19
|
from ..models.merged_secret_options import MergedSecretOptions
|
|
20
20
|
from ..models.nested_endpoint import NestedEndpoint
|
|
21
21
|
from ..models.nested_offering_file import NestedOfferingFile
|
|
22
|
+
from ..models.nested_partition import NestedPartition
|
|
22
23
|
from ..models.nested_role import NestedRole
|
|
23
24
|
from ..models.nested_screenshot import NestedScreenshot
|
|
25
|
+
from ..models.nested_software_catalog import NestedSoftwareCatalog
|
|
24
26
|
from ..models.offering_component import OfferingComponent
|
|
25
27
|
from ..models.offering_create_service_attributes import OfferingCreateServiceAttributes
|
|
26
28
|
from ..models.offering_options import OfferingOptions
|
|
@@ -40,6 +42,8 @@ class OfferingCreate:
|
|
|
40
42
|
created (datetime.datetime):
|
|
41
43
|
name (str):
|
|
42
44
|
endpoints (list['NestedEndpoint']):
|
|
45
|
+
software_catalogs (list['NestedSoftwareCatalog']):
|
|
46
|
+
partitions (list['NestedPartition']):
|
|
43
47
|
roles (list['NestedRole']):
|
|
44
48
|
customer_uuid (Union[None, UUID]):
|
|
45
49
|
customer_name (Union[None, str]):
|
|
@@ -105,6 +109,8 @@ class OfferingCreate:
|
|
|
105
109
|
created: datetime.datetime
|
|
106
110
|
name: str
|
|
107
111
|
endpoints: list["NestedEndpoint"]
|
|
112
|
+
software_catalogs: list["NestedSoftwareCatalog"]
|
|
113
|
+
partitions: list["NestedPartition"]
|
|
108
114
|
roles: list["NestedRole"]
|
|
109
115
|
customer_uuid: Union[None, UUID]
|
|
110
116
|
customer_name: Union[None, str]
|
|
@@ -179,6 +185,16 @@ class OfferingCreate:
|
|
|
179
185
|
endpoints_item = endpoints_item_data.to_dict()
|
|
180
186
|
endpoints.append(endpoints_item)
|
|
181
187
|
|
|
188
|
+
software_catalogs = []
|
|
189
|
+
for software_catalogs_item_data in self.software_catalogs:
|
|
190
|
+
software_catalogs_item = software_catalogs_item_data.to_dict()
|
|
191
|
+
software_catalogs.append(software_catalogs_item)
|
|
192
|
+
|
|
193
|
+
partitions = []
|
|
194
|
+
for partitions_item_data in self.partitions:
|
|
195
|
+
partitions_item = partitions_item_data.to_dict()
|
|
196
|
+
partitions.append(partitions_item)
|
|
197
|
+
|
|
182
198
|
roles = []
|
|
183
199
|
for roles_item_data in self.roles:
|
|
184
200
|
roles_item = roles_item_data.to_dict()
|
|
@@ -396,6 +412,8 @@ class OfferingCreate:
|
|
|
396
412
|
"created": created,
|
|
397
413
|
"name": name,
|
|
398
414
|
"endpoints": endpoints,
|
|
415
|
+
"software_catalogs": software_catalogs,
|
|
416
|
+
"partitions": partitions,
|
|
399
417
|
"roles": roles,
|
|
400
418
|
"customer_uuid": customer_uuid,
|
|
401
419
|
"customer_name": customer_name,
|
|
@@ -491,8 +509,10 @@ class OfferingCreate:
|
|
|
491
509
|
from ..models.merged_secret_options import MergedSecretOptions
|
|
492
510
|
from ..models.nested_endpoint import NestedEndpoint
|
|
493
511
|
from ..models.nested_offering_file import NestedOfferingFile
|
|
512
|
+
from ..models.nested_partition import NestedPartition
|
|
494
513
|
from ..models.nested_role import NestedRole
|
|
495
514
|
from ..models.nested_screenshot import NestedScreenshot
|
|
515
|
+
from ..models.nested_software_catalog import NestedSoftwareCatalog
|
|
496
516
|
from ..models.offering_component import OfferingComponent
|
|
497
517
|
from ..models.offering_create_service_attributes import OfferingCreateServiceAttributes
|
|
498
518
|
from ..models.offering_options import OfferingOptions
|
|
@@ -515,6 +535,20 @@ class OfferingCreate:
|
|
|
515
535
|
|
|
516
536
|
endpoints.append(endpoints_item)
|
|
517
537
|
|
|
538
|
+
software_catalogs = []
|
|
539
|
+
_software_catalogs = d.pop("software_catalogs")
|
|
540
|
+
for software_catalogs_item_data in _software_catalogs:
|
|
541
|
+
software_catalogs_item = NestedSoftwareCatalog.from_dict(software_catalogs_item_data)
|
|
542
|
+
|
|
543
|
+
software_catalogs.append(software_catalogs_item)
|
|
544
|
+
|
|
545
|
+
partitions = []
|
|
546
|
+
_partitions = d.pop("partitions")
|
|
547
|
+
for partitions_item_data in _partitions:
|
|
548
|
+
partitions_item = NestedPartition.from_dict(partitions_item_data)
|
|
549
|
+
|
|
550
|
+
partitions.append(partitions_item)
|
|
551
|
+
|
|
518
552
|
roles = []
|
|
519
553
|
_roles = d.pop("roles")
|
|
520
554
|
for roles_item_data in _roles:
|
|
@@ -864,6 +898,8 @@ class OfferingCreate:
|
|
|
864
898
|
created=created,
|
|
865
899
|
name=name,
|
|
866
900
|
endpoints=endpoints,
|
|
901
|
+
software_catalogs=software_catalogs,
|
|
902
|
+
partitions=partitions,
|
|
867
903
|
roles=roles,
|
|
868
904
|
customer_uuid=customer_uuid,
|
|
869
905
|
customer_name=customer_name,
|