waldur-api-client 7.6.5__py3-none-any.whl → 7.6.8__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/access_subnets/access_subnets_list.py +8 -4
- waldur_api_client/api/admin_announcements/admin_announcements_list.py +8 -4
- waldur_api_client/api/auth_tokens/auth_tokens_list.py +8 -4
- waldur_api_client/api/autoprovisioning_rule_plans/autoprovisioning_rule_plans_list.py +8 -4
- waldur_api_client/api/autoprovisioning_rules/autoprovisioning_rules_list.py +8 -4
- waldur_api_client/api/aws_images/aws_images_list.py +8 -4
- waldur_api_client/api/aws_instances/aws_instances_list.py +8 -4
- waldur_api_client/api/aws_regions/aws_regions_list.py +8 -4
- waldur_api_client/api/aws_sizes/aws_sizes_list.py +8 -4
- waldur_api_client/api/aws_volumes/aws_volumes_list.py +8 -4
- waldur_api_client/api/azure_images/azure_images_list.py +8 -4
- waldur_api_client/api/azure_locations/azure_locations_list.py +8 -4
- waldur_api_client/api/azure_public_ips/azure_public_ips_list.py +8 -4
- waldur_api_client/api/azure_resource_groups/azure_resource_groups_list.py +8 -4
- waldur_api_client/api/azure_sizes/azure_sizes_list.py +8 -4
- waldur_api_client/api/azure_sql_databases/azure_sql_databases_list.py +8 -4
- waldur_api_client/api/azure_sql_servers/azure_sql_servers_list.py +8 -4
- waldur_api_client/api/azure_virtualmachines/azure_virtualmachines_list.py +8 -4
- waldur_api_client/api/backend_resource_requests/__init__.py +1 -0
- waldur_api_client/api/backend_resource_requests/backend_resource_requests_create.py +150 -0
- waldur_api_client/api/backend_resource_requests/backend_resource_requests_list.py +313 -0
- waldur_api_client/api/backend_resource_requests/backend_resource_requests_retrieve.py +142 -0
- waldur_api_client/api/backend_resource_requests/backend_resource_requests_set_done.py +144 -0
- waldur_api_client/api/backend_resource_requests/backend_resource_requests_set_erred.py +166 -0
- waldur_api_client/api/backend_resource_requests/backend_resource_requests_start_processing.py +146 -0
- waldur_api_client/api/backend_resources/__init__.py +1 -0
- waldur_api_client/api/backend_resources/backend_resources_create.py +150 -0
- waldur_api_client/api/backend_resources/backend_resources_destroy.py +89 -0
- waldur_api_client/api/backend_resources/backend_resources_import_resource.py +162 -0
- waldur_api_client/api/backend_resources/backend_resources_list.py +315 -0
- waldur_api_client/api/backend_resources/backend_resources_retrieve.py +142 -0
- waldur_api_client/api/booking_offerings/booking_offerings_list.py +8 -4
- waldur_api_client/api/booking_resources/booking_resources_list.py +8 -4
- waldur_api_client/api/broadcast_message_templates/broadcast_message_templates_list.py +8 -4
- waldur_api_client/api/broadcast_messages/broadcast_messages_list.py +8 -4
- waldur_api_client/api/call_managing_organisations/call_managing_organisations_list.py +8 -4
- waldur_api_client/api/call_rounds/call_rounds_list.py +8 -4
- waldur_api_client/api/component_user_usage_limits/component_user_usage_limits_list.py +8 -4
- waldur_api_client/api/customer_credits/customer_credits_list.py +8 -4
- waldur_api_client/api/customer_permissions_reviews/customer_permissions_reviews_list.py +8 -4
- waldur_api_client/api/digitalocean_droplets/digitalocean_droplets_list.py +8 -4
- waldur_api_client/api/digitalocean_images/digitalocean_images_list.py +8 -4
- waldur_api_client/api/digitalocean_regions/digitalocean_regions_list.py +8 -4
- waldur_api_client/api/digitalocean_sizes/digitalocean_sizes_list.py +8 -4
- waldur_api_client/api/email_logs/email_logs_list.py +8 -4
- waldur_api_client/api/event_subscriptions/event_subscriptions_list.py +8 -4
- waldur_api_client/api/events/events_list.py +8 -4
- waldur_api_client/api/events_stats/events_stats_list.py +8 -4
- waldur_api_client/api/financial_reports/financial_reports_list.py +8 -4
- waldur_api_client/api/freeipa_profiles/freeipa_profiles_list.py +8 -4
- waldur_api_client/api/google_auth/google_auth_list.py +8 -4
- waldur_api_client/api/hooks/hooks_list.py +4 -2
- waldur_api_client/api/hooks_email/hooks_email_list.py +8 -4
- waldur_api_client/api/hooks_web/hooks_web_list.py +8 -4
- waldur_api_client/api/identity_providers/identity_providers_list.py +8 -4
- waldur_api_client/api/invoice_items/invoice_items_list.py +8 -4
- waldur_api_client/api/invoices/invoices_list.py +8 -4
- waldur_api_client/api/keycloak_groups/keycloak_groups_list.py +8 -4
- waldur_api_client/api/keycloak_user_group_memberships/keycloak_user_group_memberships_list.py +8 -4
- waldur_api_client/api/keys/keys_list.py +8 -4
- waldur_api_client/api/lexis_links/lexis_links_list.py +8 -4
- waldur_api_client/api/marketplace_categories/marketplace_categories_list.py +8 -4
- waldur_api_client/api/marketplace_category_columns/marketplace_category_columns_list.py +8 -4
- waldur_api_client/api/marketplace_category_component_usages/marketplace_category_component_usages_list.py +8 -4
- waldur_api_client/api/marketplace_category_components/marketplace_category_components_list.py +8 -4
- waldur_api_client/api/marketplace_category_groups/marketplace_category_groups_list.py +8 -4
- waldur_api_client/api/marketplace_category_help_articles/marketplace_category_help_articles_list.py +8 -4
- waldur_api_client/api/marketplace_checklists/marketplace_checklists_answers_list.py +8 -4
- waldur_api_client/api/marketplace_checklists/marketplace_checklists_list.py +8 -4
- waldur_api_client/api/marketplace_checklists/marketplace_checklists_questions_list.py +8 -4
- waldur_api_client/api/marketplace_checklists/marketplace_checklists_user_answers_list.py +8 -4
- waldur_api_client/api/marketplace_checklists_categories/marketplace_checklists_categories_checklists_list.py +8 -4
- waldur_api_client/api/marketplace_checklists_categories/marketplace_checklists_categories_list.py +8 -4
- waldur_api_client/api/marketplace_component_usages/marketplace_component_usages_list.py +8 -4
- waldur_api_client/api/marketplace_component_user_usages/marketplace_component_user_usages_list.py +8 -4
- waldur_api_client/api/marketplace_customer_estimated_cost_policies/marketplace_customer_estimated_cost_policies_list.py +8 -4
- waldur_api_client/api/marketplace_customer_service_accounts/marketplace_customer_service_accounts_list.py +8 -4
- waldur_api_client/api/marketplace_integration_statuses/marketplace_integration_statuses_list.py +8 -4
- waldur_api_client/api/marketplace_offering_estimated_cost_policies/marketplace_offering_estimated_cost_policies_list.py +8 -4
- waldur_api_client/api/marketplace_offering_files/marketplace_offering_files_list.py +8 -4
- waldur_api_client/api/marketplace_offering_permissions/marketplace_offering_permissions_list.py +18 -17
- waldur_api_client/api/marketplace_offering_permissions_log/marketplace_offering_permissions_log_list.py +18 -17
- waldur_api_client/api/marketplace_offering_referrals/marketplace_offering_referrals_list.py +8 -4
- waldur_api_client/api/marketplace_offering_usage_policies/marketplace_offering_usage_policies_list.py +8 -4
- waldur_api_client/api/marketplace_offering_user_roles/marketplace_offering_user_roles_list.py +8 -4
- waldur_api_client/api/marketplace_offering_users/marketplace_offering_users_list.py +8 -4
- waldur_api_client/api/marketplace_orders/marketplace_orders_list.py +8 -4
- waldur_api_client/api/marketplace_plan_components/marketplace_plan_components_list.py +8 -4
- waldur_api_client/api/marketplace_plans/marketplace_plans_list.py +8 -4
- waldur_api_client/api/marketplace_project_estimated_cost_policies/marketplace_project_estimated_cost_policies_list.py +8 -4
- waldur_api_client/api/marketplace_project_service_accounts/marketplace_project_service_accounts_list.py +8 -4
- waldur_api_client/api/marketplace_project_update_requests/marketplace_project_update_requests_list.py +8 -4
- waldur_api_client/api/marketplace_provider_offerings/marketplace_provider_offerings_component_stats_list.py +10 -13
- waldur_api_client/api/marketplace_provider_offerings/marketplace_provider_offerings_costs_list.py +10 -13
- waldur_api_client/api/marketplace_provider_offerings/marketplace_provider_offerings_customers_list.py +10 -13
- waldur_api_client/api/marketplace_provider_offerings/marketplace_provider_offerings_groups_list.py +10 -13
- waldur_api_client/api/marketplace_provider_offerings/marketplace_provider_offerings_list.py +18 -17
- waldur_api_client/api/marketplace_provider_offerings/marketplace_provider_offerings_refresh_offering_usernames.py +20 -16
- waldur_api_client/api/marketplace_provider_resources/marketplace_provider_resources_list.py +8 -4
- waldur_api_client/api/marketplace_provider_resources/marketplace_provider_resources_set_as_erred.py +11 -68
- waldur_api_client/api/marketplace_provider_resources/marketplace_provider_resources_set_backend_id.py +20 -16
- waldur_api_client/api/marketplace_provider_resources/marketplace_provider_resources_set_backend_metadata.py +12 -12
- waldur_api_client/api/marketplace_provider_resources/marketplace_provider_resources_set_limits.py +12 -12
- waldur_api_client/api/marketplace_provider_resources/marketplace_provider_resources_submit_report.py +20 -16
- waldur_api_client/api/marketplace_public_offerings/marketplace_public_offerings_list.py +18 -17
- waldur_api_client/api/marketplace_remote_synchronisations/marketplace_remote_synchronisations_list.py +8 -4
- waldur_api_client/api/marketplace_resource_users/marketplace_resource_users_list.py +8 -4
- waldur_api_client/api/marketplace_resources/marketplace_resources_list.py +8 -4
- waldur_api_client/api/marketplace_resources/marketplace_resources_update_options.py +20 -16
- waldur_api_client/api/marketplace_robot_accounts/marketplace_robot_accounts_list.py +8 -4
- waldur_api_client/api/marketplace_screenshots/marketplace_screenshots_list.py +8 -4
- waldur_api_client/api/marketplace_script_async_dry_run/marketplace_script_async_dry_run_list.py +8 -4
- waldur_api_client/api/marketplace_sections/marketplace_sections_list.py +8 -4
- 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_list.py +8 -4
- waldur_api_client/api/marketplace_service_providers/marketplace_service_providers_offerings_list.py +10 -13
- waldur_api_client/api/marketplace_service_providers/marketplace_service_providers_project_permissions_list.py +10 -13
- waldur_api_client/api/marketplace_service_providers/marketplace_service_providers_projects_list.py +15 -0
- waldur_api_client/api/notification_messages/notification_messages_list.py +8 -4
- waldur_api_client/api/notification_messages_templates/notification_messages_templates_list.py +8 -4
- waldur_api_client/api/openstack_backups/openstack_backups_list.py +8 -4
- waldur_api_client/api/openstack_flavors/openstack_flavors_list.py +26 -4
- waldur_api_client/api/openstack_images/openstack_images_list.py +26 -4
- waldur_api_client/api/openstack_instance_availability_zones/openstack_instance_availability_zones_list.py +8 -4
- waldur_api_client/api/openstack_instances/openstack_instances_list.py +8 -4
- waldur_api_client/api/openstack_marketplace_tenants/openstack_marketplace_tenants_list.py +8 -4
- waldur_api_client/api/openstack_migrations/openstack_migrations_list.py +8 -4
- waldur_api_client/api/openstack_network_rbac_policies/openstack_network_rbac_policies_list.py +8 -4
- waldur_api_client/api/openstack_networks/openstack_networks_list.py +8 -4
- waldur_api_client/api/openstack_ports/openstack_ports_list.py +8 -4
- waldur_api_client/api/openstack_routers/openstack_routers_list.py +8 -4
- waldur_api_client/api/openstack_security_groups/openstack_security_groups_list.py +8 -4
- waldur_api_client/api/openstack_server_groups/openstack_server_groups_list.py +8 -4
- waldur_api_client/api/openstack_snapshots/openstack_snapshots_list.py +8 -4
- waldur_api_client/api/openstack_subnets/openstack_subnets_list.py +8 -4
- waldur_api_client/api/openstack_tenants/openstack_tenants_list.py +8 -4
- waldur_api_client/api/openstack_volume_availability_zones/openstack_volume_availability_zones_list.py +8 -4
- waldur_api_client/api/openstack_volume_types/openstack_volume_types_list.py +26 -4
- waldur_api_client/api/openstack_volumes/openstack_volumes_list.py +8 -4
- waldur_api_client/api/organization_groups/organization_groups_list.py +8 -4
- waldur_api_client/api/payment_profiles/payment_profiles_list.py +8 -4
- waldur_api_client/api/payments/payments_list.py +8 -4
- waldur_api_client/api/project_credits/project_credits_list.py +8 -4
- waldur_api_client/api/project_types/project_types_list.py +8 -4
- waldur_api_client/api/projects/projects_list.py +23 -4
- waldur_api_client/api/promotions_campaigns/promotions_campaigns_list.py +8 -4
- waldur_api_client/api/proposal_proposals/proposal_proposals_list.py +8 -4
- waldur_api_client/api/proposal_protected_calls/proposal_protected_calls_list.py +8 -4
- waldur_api_client/api/proposal_public_calls/proposal_public_calls_list.py +8 -4
- waldur_api_client/api/proposal_requested_offerings/proposal_requested_offerings_list.py +8 -4
- waldur_api_client/api/proposal_requested_resources/proposal_requested_resources_list.py +8 -4
- waldur_api_client/api/proposal_reviews/proposal_reviews_list.py +8 -4
- waldur_api_client/api/provider_invoice_items/provider_invoice_items_list.py +8 -4
- waldur_api_client/api/rancher_apps/rancher_apps_list.py +8 -4
- waldur_api_client/api/rancher_catalogs/rancher_catalogs_list.py +8 -4
- waldur_api_client/api/rancher_cluster_security_groups/rancher_cluster_security_groups_list.py +8 -4
- waldur_api_client/api/rancher_cluster_templates/rancher_cluster_templates_list.py +8 -4
- waldur_api_client/api/rancher_clusters/rancher_clusters_list.py +8 -4
- waldur_api_client/api/rancher_hpas/rancher_hpas_list.py +8 -4
- waldur_api_client/api/rancher_ingresses/rancher_ingresses_list.py +8 -4
- waldur_api_client/api/rancher_namespaces/rancher_namespaces_list.py +8 -4
- waldur_api_client/api/rancher_nodes/rancher_nodes_list.py +8 -4
- waldur_api_client/api/rancher_projects/rancher_projects_list.py +8 -4
- waldur_api_client/api/rancher_role_templates/rancher_role_templates_list.py +8 -4
- waldur_api_client/api/rancher_services/rancher_services_list.py +8 -4
- waldur_api_client/api/rancher_templates/rancher_templates_list.py +8 -4
- waldur_api_client/api/rancher_users/rancher_users_list.py +8 -4
- waldur_api_client/api/rancher_workloads/rancher_workloads_list.py +8 -4
- waldur_api_client/api/roles/roles_list.py +8 -4
- waldur_api_client/api/service_settings/service_settings_list.py +18 -17
- waldur_api_client/api/slurm_allocation_user_usage/slurm_allocation_user_usage_list.py +8 -4
- waldur_api_client/api/slurm_allocations/slurm_allocations_list.py +8 -4
- waldur_api_client/api/slurm_associations/slurm_associations_list.py +8 -4
- waldur_api_client/api/slurm_jobs/slurm_jobs_list.py +8 -4
- waldur_api_client/api/support_attachments/support_attachments_list.py +8 -4
- waldur_api_client/api/support_comments/support_comments_list.py +8 -4
- waldur_api_client/api/support_feedbacks/support_feedbacks_list.py +8 -4
- waldur_api_client/api/support_issues/support_issues_list.py +8 -4
- waldur_api_client/api/support_priorities/support_priorities_list.py +8 -4
- waldur_api_client/api/support_templates/support_templates_list.py +8 -4
- waldur_api_client/api/support_users/support_users_list.py +8 -4
- waldur_api_client/api/user_agreements/user_agreements_list.py +8 -4
- waldur_api_client/api/user_group_invitations/user_group_invitations_list.py +8 -4
- waldur_api_client/api/user_invitations/user_invitations_list.py +8 -4
- waldur_api_client/api/user_permission_requests/user_permission_requests_list.py +8 -4
- waldur_api_client/api/user_permissions/user_permissions_list.py +18 -17
- waldur_api_client/api/users/users_list.py +8 -4
- waldur_api_client/api/vmware_clusters/vmware_clusters_list.py +8 -4
- waldur_api_client/api/vmware_datastores/vmware_datastores_list.py +8 -4
- waldur_api_client/api/vmware_disks/vmware_disks_list.py +8 -4
- waldur_api_client/api/vmware_folders/vmware_folders_list.py +8 -4
- waldur_api_client/api/vmware_networks/vmware_networks_list.py +8 -4
- waldur_api_client/api/vmware_ports/vmware_ports_list.py +8 -4
- waldur_api_client/api/vmware_templates/vmware_templates_list.py +8 -4
- waldur_api_client/api/vmware_virtual_machine/vmware_virtual_machine_list.py +8 -4
- waldur_api_client/models/__init__.py +28 -16
- waldur_api_client/models/backend_resource.py +162 -0
- waldur_api_client/models/{resource_backend_id.py → backend_resource_import_request.py} +21 -13
- waldur_api_client/models/backend_resource_req.py +162 -0
- waldur_api_client/models/{resource_backend_metadata.py → backend_resource_req_request.py} +12 -11
- waldur_api_client/models/backend_resource_req_state_enum.py +11 -0
- waldur_api_client/models/backend_resource_request.py +96 -0
- waldur_api_client/models/{resource_set_state_erred.py → backend_resource_request_set_erred_request.py} +5 -5
- waldur_api_client/models/backend_resource_requests_list_o_item.py +9 -0
- waldur_api_client/models/backend_resource_requests_list_state_item.py +11 -0
- waldur_api_client/models/{order_details_attributes.py → backend_resource_requests_set_done_response_200.py} +6 -6
- waldur_api_client/models/{resource_options.py → backend_resource_requests_set_erred_response_200.py} +7 -22
- waldur_api_client/models/backend_resource_requests_start_processing_response_200.py +44 -0
- waldur_api_client/models/backend_resources_list_o_item.py +9 -0
- waldur_api_client/models/constance_settings.py +9 -0
- waldur_api_client/models/constance_settings_request.py +9 -0
- waldur_api_client/models/customer.py +0 -21
- waldur_api_client/models/customers_list_field_item.py +0 -1
- waldur_api_client/models/customers_retrieve_field_item.py +0 -1
- waldur_api_client/models/event_types_enum.py +5 -0
- waldur_api_client/models/merged_plugin_options.py +20 -0
- waldur_api_client/models/merged_plugin_options_request.py +20 -0
- waldur_api_client/models/nested_requested_offering.py +18 -0
- waldur_api_client/models/order_details.py +4 -14
- waldur_api_client/models/provider_requested_offering.py +10 -0
- waldur_api_client/models/requested_offering.py +10 -0
- waldur_api_client/models/{resource_set_limits.py → resource_response_status.py} +11 -11
- waldur_api_client/models/user_agreement.py +9 -11
- waldur_api_client/models/user_agreement_request.py +9 -11
- {waldur_api_client-7.6.5.dist-info → waldur_api_client-7.6.8.dist-info}/METADATA +1 -1
- {waldur_api_client-7.6.5.dist-info → waldur_api_client-7.6.8.dist-info}/RECORD +228 -209
- waldur_api_client/models/permission_project.py +0 -147
- waldur_api_client/models/resource_report.py +0 -73
- {waldur_api_client-7.6.5.dist-info → waldur_api_client-7.6.8.dist-info}/LICENSE +0 -0
- {waldur_api_client-7.6.5.dist-info → waldur_api_client-7.6.8.dist-info}/WHEEL +0 -0
|
@@ -0,0 +1,162 @@
|
|
|
1
|
+
import datetime
|
|
2
|
+
from collections.abc import Mapping
|
|
3
|
+
from typing import Any, TypeVar, Union
|
|
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 ..types import UNSET, Unset
|
|
11
|
+
|
|
12
|
+
T = TypeVar("T", bound="BackendResource")
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
@_attrs_define
|
|
16
|
+
class BackendResource:
|
|
17
|
+
"""
|
|
18
|
+
Attributes:
|
|
19
|
+
url (str):
|
|
20
|
+
uuid (UUID):
|
|
21
|
+
name (str):
|
|
22
|
+
created (datetime.datetime):
|
|
23
|
+
modified (datetime.datetime):
|
|
24
|
+
project (UUID):
|
|
25
|
+
project_name (str):
|
|
26
|
+
project_url (str):
|
|
27
|
+
offering (UUID):
|
|
28
|
+
offering_name (str):
|
|
29
|
+
offering_url (str):
|
|
30
|
+
backend_id (Union[Unset, str]):
|
|
31
|
+
backend_metadata (Union[Unset, Any]):
|
|
32
|
+
"""
|
|
33
|
+
|
|
34
|
+
url: str
|
|
35
|
+
uuid: UUID
|
|
36
|
+
name: str
|
|
37
|
+
created: datetime.datetime
|
|
38
|
+
modified: datetime.datetime
|
|
39
|
+
project: UUID
|
|
40
|
+
project_name: str
|
|
41
|
+
project_url: str
|
|
42
|
+
offering: UUID
|
|
43
|
+
offering_name: str
|
|
44
|
+
offering_url: str
|
|
45
|
+
backend_id: Union[Unset, str] = UNSET
|
|
46
|
+
backend_metadata: Union[Unset, Any] = UNSET
|
|
47
|
+
additional_properties: dict[str, Any] = _attrs_field(init=False, factory=dict)
|
|
48
|
+
|
|
49
|
+
def to_dict(self) -> dict[str, Any]:
|
|
50
|
+
url = self.url
|
|
51
|
+
|
|
52
|
+
uuid = str(self.uuid)
|
|
53
|
+
|
|
54
|
+
name = self.name
|
|
55
|
+
|
|
56
|
+
created = self.created.isoformat()
|
|
57
|
+
|
|
58
|
+
modified = self.modified.isoformat()
|
|
59
|
+
|
|
60
|
+
project = str(self.project)
|
|
61
|
+
|
|
62
|
+
project_name = self.project_name
|
|
63
|
+
|
|
64
|
+
project_url = self.project_url
|
|
65
|
+
|
|
66
|
+
offering = str(self.offering)
|
|
67
|
+
|
|
68
|
+
offering_name = self.offering_name
|
|
69
|
+
|
|
70
|
+
offering_url = self.offering_url
|
|
71
|
+
|
|
72
|
+
backend_id = self.backend_id
|
|
73
|
+
|
|
74
|
+
backend_metadata = self.backend_metadata
|
|
75
|
+
|
|
76
|
+
field_dict: dict[str, Any] = {}
|
|
77
|
+
field_dict.update(self.additional_properties)
|
|
78
|
+
field_dict.update(
|
|
79
|
+
{
|
|
80
|
+
"url": url,
|
|
81
|
+
"uuid": uuid,
|
|
82
|
+
"name": name,
|
|
83
|
+
"created": created,
|
|
84
|
+
"modified": modified,
|
|
85
|
+
"project": project,
|
|
86
|
+
"project_name": project_name,
|
|
87
|
+
"project_url": project_url,
|
|
88
|
+
"offering": offering,
|
|
89
|
+
"offering_name": offering_name,
|
|
90
|
+
"offering_url": offering_url,
|
|
91
|
+
}
|
|
92
|
+
)
|
|
93
|
+
if backend_id is not UNSET:
|
|
94
|
+
field_dict["backend_id"] = backend_id
|
|
95
|
+
if backend_metadata is not UNSET:
|
|
96
|
+
field_dict["backend_metadata"] = backend_metadata
|
|
97
|
+
|
|
98
|
+
return field_dict
|
|
99
|
+
|
|
100
|
+
@classmethod
|
|
101
|
+
def from_dict(cls: type[T], src_dict: Mapping[str, Any]) -> T:
|
|
102
|
+
d = dict(src_dict)
|
|
103
|
+
url = d.pop("url")
|
|
104
|
+
|
|
105
|
+
uuid = UUID(d.pop("uuid"))
|
|
106
|
+
|
|
107
|
+
name = d.pop("name")
|
|
108
|
+
|
|
109
|
+
created = isoparse(d.pop("created"))
|
|
110
|
+
|
|
111
|
+
modified = isoparse(d.pop("modified"))
|
|
112
|
+
|
|
113
|
+
project = UUID(d.pop("project"))
|
|
114
|
+
|
|
115
|
+
project_name = d.pop("project_name")
|
|
116
|
+
|
|
117
|
+
project_url = d.pop("project_url")
|
|
118
|
+
|
|
119
|
+
offering = UUID(d.pop("offering"))
|
|
120
|
+
|
|
121
|
+
offering_name = d.pop("offering_name")
|
|
122
|
+
|
|
123
|
+
offering_url = d.pop("offering_url")
|
|
124
|
+
|
|
125
|
+
backend_id = d.pop("backend_id", UNSET)
|
|
126
|
+
|
|
127
|
+
backend_metadata = d.pop("backend_metadata", UNSET)
|
|
128
|
+
|
|
129
|
+
backend_resource = cls(
|
|
130
|
+
url=url,
|
|
131
|
+
uuid=uuid,
|
|
132
|
+
name=name,
|
|
133
|
+
created=created,
|
|
134
|
+
modified=modified,
|
|
135
|
+
project=project,
|
|
136
|
+
project_name=project_name,
|
|
137
|
+
project_url=project_url,
|
|
138
|
+
offering=offering,
|
|
139
|
+
offering_name=offering_name,
|
|
140
|
+
offering_url=offering_url,
|
|
141
|
+
backend_id=backend_id,
|
|
142
|
+
backend_metadata=backend_metadata,
|
|
143
|
+
)
|
|
144
|
+
|
|
145
|
+
backend_resource.additional_properties = d
|
|
146
|
+
return backend_resource
|
|
147
|
+
|
|
148
|
+
@property
|
|
149
|
+
def additional_keys(self) -> list[str]:
|
|
150
|
+
return list(self.additional_properties.keys())
|
|
151
|
+
|
|
152
|
+
def __getitem__(self, key: str) -> Any:
|
|
153
|
+
return self.additional_properties[key]
|
|
154
|
+
|
|
155
|
+
def __setitem__(self, key: str, value: Any) -> None:
|
|
156
|
+
self.additional_properties[key] = value
|
|
157
|
+
|
|
158
|
+
def __delitem__(self, key: str) -> None:
|
|
159
|
+
del self.additional_properties[key]
|
|
160
|
+
|
|
161
|
+
def __contains__(self, key: str) -> bool:
|
|
162
|
+
return key in self.additional_properties
|
|
@@ -1,46 +1,54 @@
|
|
|
1
1
|
from collections.abc import Mapping
|
|
2
2
|
from typing import Any, TypeVar, Union
|
|
3
|
+
from uuid import UUID
|
|
3
4
|
|
|
4
5
|
from attrs import define as _attrs_define
|
|
5
6
|
from attrs import field as _attrs_field
|
|
6
7
|
|
|
7
8
|
from ..types import UNSET, Unset
|
|
8
9
|
|
|
9
|
-
T = TypeVar("T", bound="
|
|
10
|
+
T = TypeVar("T", bound="BackendResourceImportRequest")
|
|
10
11
|
|
|
11
12
|
|
|
12
13
|
@_attrs_define
|
|
13
|
-
class
|
|
14
|
+
class BackendResourceImportRequest:
|
|
14
15
|
"""
|
|
15
16
|
Attributes:
|
|
16
|
-
|
|
17
|
+
plan (Union[Unset, UUID]):
|
|
17
18
|
"""
|
|
18
19
|
|
|
19
|
-
|
|
20
|
+
plan: Union[Unset, UUID] = UNSET
|
|
20
21
|
additional_properties: dict[str, Any] = _attrs_field(init=False, factory=dict)
|
|
21
22
|
|
|
22
23
|
def to_dict(self) -> dict[str, Any]:
|
|
23
|
-
|
|
24
|
+
plan: Union[Unset, str] = UNSET
|
|
25
|
+
if not isinstance(self.plan, Unset):
|
|
26
|
+
plan = str(self.plan)
|
|
24
27
|
|
|
25
28
|
field_dict: dict[str, Any] = {}
|
|
26
29
|
field_dict.update(self.additional_properties)
|
|
27
30
|
field_dict.update({})
|
|
28
|
-
if
|
|
29
|
-
field_dict["
|
|
31
|
+
if plan is not UNSET:
|
|
32
|
+
field_dict["plan"] = plan
|
|
30
33
|
|
|
31
34
|
return field_dict
|
|
32
35
|
|
|
33
36
|
@classmethod
|
|
34
37
|
def from_dict(cls: type[T], src_dict: Mapping[str, Any]) -> T:
|
|
35
38
|
d = dict(src_dict)
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
39
|
+
_plan = d.pop("plan", UNSET)
|
|
40
|
+
plan: Union[Unset, UUID]
|
|
41
|
+
if isinstance(_plan, Unset):
|
|
42
|
+
plan = UNSET
|
|
43
|
+
else:
|
|
44
|
+
plan = UUID(_plan)
|
|
45
|
+
|
|
46
|
+
backend_resource_import_request = cls(
|
|
47
|
+
plan=plan,
|
|
40
48
|
)
|
|
41
49
|
|
|
42
|
-
|
|
43
|
-
return
|
|
50
|
+
backend_resource_import_request.additional_properties = d
|
|
51
|
+
return backend_resource_import_request
|
|
44
52
|
|
|
45
53
|
@property
|
|
46
54
|
def additional_keys(self) -> list[str]:
|
|
@@ -0,0 +1,162 @@
|
|
|
1
|
+
import datetime
|
|
2
|
+
from collections.abc import Mapping
|
|
3
|
+
from typing import 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.backend_resource_req_state_enum import BackendResourceReqStateEnum
|
|
11
|
+
|
|
12
|
+
T = TypeVar("T", bound="BackendResourceReq")
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
@_attrs_define
|
|
16
|
+
class BackendResourceReq:
|
|
17
|
+
"""
|
|
18
|
+
Attributes:
|
|
19
|
+
url (str):
|
|
20
|
+
created (datetime.datetime):
|
|
21
|
+
modified (datetime.datetime):
|
|
22
|
+
started (Union[None, datetime.datetime]): Time when request processing started
|
|
23
|
+
finished (Union[None, datetime.datetime]): Time when request processing finished
|
|
24
|
+
state (BackendResourceReqStateEnum):
|
|
25
|
+
offering (UUID):
|
|
26
|
+
offering_name (str):
|
|
27
|
+
offering_url (str):
|
|
28
|
+
"""
|
|
29
|
+
|
|
30
|
+
url: str
|
|
31
|
+
created: datetime.datetime
|
|
32
|
+
modified: datetime.datetime
|
|
33
|
+
started: Union[None, datetime.datetime]
|
|
34
|
+
finished: Union[None, datetime.datetime]
|
|
35
|
+
state: BackendResourceReqStateEnum
|
|
36
|
+
offering: UUID
|
|
37
|
+
offering_name: str
|
|
38
|
+
offering_url: str
|
|
39
|
+
additional_properties: dict[str, Any] = _attrs_field(init=False, factory=dict)
|
|
40
|
+
|
|
41
|
+
def to_dict(self) -> dict[str, Any]:
|
|
42
|
+
url = self.url
|
|
43
|
+
|
|
44
|
+
created = self.created.isoformat()
|
|
45
|
+
|
|
46
|
+
modified = self.modified.isoformat()
|
|
47
|
+
|
|
48
|
+
started: Union[None, str]
|
|
49
|
+
if isinstance(self.started, datetime.datetime):
|
|
50
|
+
started = self.started.isoformat()
|
|
51
|
+
else:
|
|
52
|
+
started = self.started
|
|
53
|
+
|
|
54
|
+
finished: Union[None, str]
|
|
55
|
+
if isinstance(self.finished, datetime.datetime):
|
|
56
|
+
finished = self.finished.isoformat()
|
|
57
|
+
else:
|
|
58
|
+
finished = self.finished
|
|
59
|
+
|
|
60
|
+
state = self.state.value
|
|
61
|
+
|
|
62
|
+
offering = str(self.offering)
|
|
63
|
+
|
|
64
|
+
offering_name = self.offering_name
|
|
65
|
+
|
|
66
|
+
offering_url = self.offering_url
|
|
67
|
+
|
|
68
|
+
field_dict: dict[str, Any] = {}
|
|
69
|
+
field_dict.update(self.additional_properties)
|
|
70
|
+
field_dict.update(
|
|
71
|
+
{
|
|
72
|
+
"url": url,
|
|
73
|
+
"created": created,
|
|
74
|
+
"modified": modified,
|
|
75
|
+
"started": started,
|
|
76
|
+
"finished": finished,
|
|
77
|
+
"state": state,
|
|
78
|
+
"offering": offering,
|
|
79
|
+
"offering_name": offering_name,
|
|
80
|
+
"offering_url": offering_url,
|
|
81
|
+
}
|
|
82
|
+
)
|
|
83
|
+
|
|
84
|
+
return field_dict
|
|
85
|
+
|
|
86
|
+
@classmethod
|
|
87
|
+
def from_dict(cls: type[T], src_dict: Mapping[str, Any]) -> T:
|
|
88
|
+
d = dict(src_dict)
|
|
89
|
+
url = d.pop("url")
|
|
90
|
+
|
|
91
|
+
created = isoparse(d.pop("created"))
|
|
92
|
+
|
|
93
|
+
modified = isoparse(d.pop("modified"))
|
|
94
|
+
|
|
95
|
+
def _parse_started(data: object) -> Union[None, datetime.datetime]:
|
|
96
|
+
if data is None:
|
|
97
|
+
return data
|
|
98
|
+
try:
|
|
99
|
+
if not isinstance(data, str):
|
|
100
|
+
raise TypeError()
|
|
101
|
+
started_type_0 = isoparse(data)
|
|
102
|
+
|
|
103
|
+
return started_type_0
|
|
104
|
+
except: # noqa: E722
|
|
105
|
+
pass
|
|
106
|
+
return cast(Union[None, datetime.datetime], data)
|
|
107
|
+
|
|
108
|
+
started = _parse_started(d.pop("started"))
|
|
109
|
+
|
|
110
|
+
def _parse_finished(data: object) -> Union[None, datetime.datetime]:
|
|
111
|
+
if data is None:
|
|
112
|
+
return data
|
|
113
|
+
try:
|
|
114
|
+
if not isinstance(data, str):
|
|
115
|
+
raise TypeError()
|
|
116
|
+
finished_type_0 = isoparse(data)
|
|
117
|
+
|
|
118
|
+
return finished_type_0
|
|
119
|
+
except: # noqa: E722
|
|
120
|
+
pass
|
|
121
|
+
return cast(Union[None, datetime.datetime], data)
|
|
122
|
+
|
|
123
|
+
finished = _parse_finished(d.pop("finished"))
|
|
124
|
+
|
|
125
|
+
state = BackendResourceReqStateEnum(d.pop("state"))
|
|
126
|
+
|
|
127
|
+
offering = UUID(d.pop("offering"))
|
|
128
|
+
|
|
129
|
+
offering_name = d.pop("offering_name")
|
|
130
|
+
|
|
131
|
+
offering_url = d.pop("offering_url")
|
|
132
|
+
|
|
133
|
+
backend_resource_req = cls(
|
|
134
|
+
url=url,
|
|
135
|
+
created=created,
|
|
136
|
+
modified=modified,
|
|
137
|
+
started=started,
|
|
138
|
+
finished=finished,
|
|
139
|
+
state=state,
|
|
140
|
+
offering=offering,
|
|
141
|
+
offering_name=offering_name,
|
|
142
|
+
offering_url=offering_url,
|
|
143
|
+
)
|
|
144
|
+
|
|
145
|
+
backend_resource_req.additional_properties = d
|
|
146
|
+
return backend_resource_req
|
|
147
|
+
|
|
148
|
+
@property
|
|
149
|
+
def additional_keys(self) -> list[str]:
|
|
150
|
+
return list(self.additional_properties.keys())
|
|
151
|
+
|
|
152
|
+
def __getitem__(self, key: str) -> Any:
|
|
153
|
+
return self.additional_properties[key]
|
|
154
|
+
|
|
155
|
+
def __setitem__(self, key: str, value: Any) -> None:
|
|
156
|
+
self.additional_properties[key] = value
|
|
157
|
+
|
|
158
|
+
def __delitem__(self, key: str) -> None:
|
|
159
|
+
del self.additional_properties[key]
|
|
160
|
+
|
|
161
|
+
def __contains__(self, key: str) -> bool:
|
|
162
|
+
return key in self.additional_properties
|
|
@@ -1,30 +1,31 @@
|
|
|
1
1
|
from collections.abc import Mapping
|
|
2
2
|
from typing import Any, TypeVar
|
|
3
|
+
from uuid import UUID
|
|
3
4
|
|
|
4
5
|
from attrs import define as _attrs_define
|
|
5
6
|
from attrs import field as _attrs_field
|
|
6
7
|
|
|
7
|
-
T = TypeVar("T", bound="
|
|
8
|
+
T = TypeVar("T", bound="BackendResourceReqRequest")
|
|
8
9
|
|
|
9
10
|
|
|
10
11
|
@_attrs_define
|
|
11
|
-
class
|
|
12
|
+
class BackendResourceReqRequest:
|
|
12
13
|
"""
|
|
13
14
|
Attributes:
|
|
14
|
-
|
|
15
|
+
offering (UUID):
|
|
15
16
|
"""
|
|
16
17
|
|
|
17
|
-
|
|
18
|
+
offering: UUID
|
|
18
19
|
additional_properties: dict[str, Any] = _attrs_field(init=False, factory=dict)
|
|
19
20
|
|
|
20
21
|
def to_dict(self) -> dict[str, Any]:
|
|
21
|
-
|
|
22
|
+
offering = str(self.offering)
|
|
22
23
|
|
|
23
24
|
field_dict: dict[str, Any] = {}
|
|
24
25
|
field_dict.update(self.additional_properties)
|
|
25
26
|
field_dict.update(
|
|
26
27
|
{
|
|
27
|
-
"
|
|
28
|
+
"offering": offering,
|
|
28
29
|
}
|
|
29
30
|
)
|
|
30
31
|
|
|
@@ -33,14 +34,14 @@ class ResourceBackendMetadata:
|
|
|
33
34
|
@classmethod
|
|
34
35
|
def from_dict(cls: type[T], src_dict: Mapping[str, Any]) -> T:
|
|
35
36
|
d = dict(src_dict)
|
|
36
|
-
|
|
37
|
+
offering = UUID(d.pop("offering"))
|
|
37
38
|
|
|
38
|
-
|
|
39
|
-
|
|
39
|
+
backend_resource_req_request = cls(
|
|
40
|
+
offering=offering,
|
|
40
41
|
)
|
|
41
42
|
|
|
42
|
-
|
|
43
|
-
return
|
|
43
|
+
backend_resource_req_request.additional_properties = d
|
|
44
|
+
return backend_resource_req_request
|
|
44
45
|
|
|
45
46
|
@property
|
|
46
47
|
def additional_keys(self) -> list[str]:
|
|
@@ -0,0 +1,96 @@
|
|
|
1
|
+
from collections.abc import Mapping
|
|
2
|
+
from typing import Any, TypeVar, Union
|
|
3
|
+
from uuid import UUID
|
|
4
|
+
|
|
5
|
+
from attrs import define as _attrs_define
|
|
6
|
+
from attrs import field as _attrs_field
|
|
7
|
+
|
|
8
|
+
from ..types import UNSET, Unset
|
|
9
|
+
|
|
10
|
+
T = TypeVar("T", bound="BackendResourceRequest")
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
@_attrs_define
|
|
14
|
+
class BackendResourceRequest:
|
|
15
|
+
"""
|
|
16
|
+
Attributes:
|
|
17
|
+
name (str):
|
|
18
|
+
project (UUID):
|
|
19
|
+
offering (UUID):
|
|
20
|
+
backend_id (Union[Unset, str]):
|
|
21
|
+
backend_metadata (Union[Unset, Any]):
|
|
22
|
+
"""
|
|
23
|
+
|
|
24
|
+
name: str
|
|
25
|
+
project: UUID
|
|
26
|
+
offering: UUID
|
|
27
|
+
backend_id: Union[Unset, str] = UNSET
|
|
28
|
+
backend_metadata: Union[Unset, Any] = UNSET
|
|
29
|
+
additional_properties: dict[str, Any] = _attrs_field(init=False, factory=dict)
|
|
30
|
+
|
|
31
|
+
def to_dict(self) -> dict[str, Any]:
|
|
32
|
+
name = self.name
|
|
33
|
+
|
|
34
|
+
project = str(self.project)
|
|
35
|
+
|
|
36
|
+
offering = str(self.offering)
|
|
37
|
+
|
|
38
|
+
backend_id = self.backend_id
|
|
39
|
+
|
|
40
|
+
backend_metadata = self.backend_metadata
|
|
41
|
+
|
|
42
|
+
field_dict: dict[str, Any] = {}
|
|
43
|
+
field_dict.update(self.additional_properties)
|
|
44
|
+
field_dict.update(
|
|
45
|
+
{
|
|
46
|
+
"name": name,
|
|
47
|
+
"project": project,
|
|
48
|
+
"offering": offering,
|
|
49
|
+
}
|
|
50
|
+
)
|
|
51
|
+
if backend_id is not UNSET:
|
|
52
|
+
field_dict["backend_id"] = backend_id
|
|
53
|
+
if backend_metadata is not UNSET:
|
|
54
|
+
field_dict["backend_metadata"] = backend_metadata
|
|
55
|
+
|
|
56
|
+
return field_dict
|
|
57
|
+
|
|
58
|
+
@classmethod
|
|
59
|
+
def from_dict(cls: type[T], src_dict: Mapping[str, Any]) -> T:
|
|
60
|
+
d = dict(src_dict)
|
|
61
|
+
name = d.pop("name")
|
|
62
|
+
|
|
63
|
+
project = UUID(d.pop("project"))
|
|
64
|
+
|
|
65
|
+
offering = UUID(d.pop("offering"))
|
|
66
|
+
|
|
67
|
+
backend_id = d.pop("backend_id", UNSET)
|
|
68
|
+
|
|
69
|
+
backend_metadata = d.pop("backend_metadata", UNSET)
|
|
70
|
+
|
|
71
|
+
backend_resource_request = cls(
|
|
72
|
+
name=name,
|
|
73
|
+
project=project,
|
|
74
|
+
offering=offering,
|
|
75
|
+
backend_id=backend_id,
|
|
76
|
+
backend_metadata=backend_metadata,
|
|
77
|
+
)
|
|
78
|
+
|
|
79
|
+
backend_resource_request.additional_properties = d
|
|
80
|
+
return backend_resource_request
|
|
81
|
+
|
|
82
|
+
@property
|
|
83
|
+
def additional_keys(self) -> list[str]:
|
|
84
|
+
return list(self.additional_properties.keys())
|
|
85
|
+
|
|
86
|
+
def __getitem__(self, key: str) -> Any:
|
|
87
|
+
return self.additional_properties[key]
|
|
88
|
+
|
|
89
|
+
def __setitem__(self, key: str, value: Any) -> None:
|
|
90
|
+
self.additional_properties[key] = value
|
|
91
|
+
|
|
92
|
+
def __delitem__(self, key: str) -> None:
|
|
93
|
+
del self.additional_properties[key]
|
|
94
|
+
|
|
95
|
+
def __contains__(self, key: str) -> bool:
|
|
96
|
+
return key in self.additional_properties
|
|
@@ -6,11 +6,11 @@ from attrs import field as _attrs_field
|
|
|
6
6
|
|
|
7
7
|
from ..types import UNSET, Unset
|
|
8
8
|
|
|
9
|
-
T = TypeVar("T", bound="
|
|
9
|
+
T = TypeVar("T", bound="BackendResourceRequestSetErredRequest")
|
|
10
10
|
|
|
11
11
|
|
|
12
12
|
@_attrs_define
|
|
13
|
-
class
|
|
13
|
+
class BackendResourceRequestSetErredRequest:
|
|
14
14
|
"""
|
|
15
15
|
Attributes:
|
|
16
16
|
error_message (Union[Unset, str]):
|
|
@@ -43,13 +43,13 @@ class ResourceSetStateErred:
|
|
|
43
43
|
|
|
44
44
|
error_traceback = d.pop("error_traceback", UNSET)
|
|
45
45
|
|
|
46
|
-
|
|
46
|
+
backend_resource_request_set_erred_request = cls(
|
|
47
47
|
error_message=error_message,
|
|
48
48
|
error_traceback=error_traceback,
|
|
49
49
|
)
|
|
50
50
|
|
|
51
|
-
|
|
52
|
-
return
|
|
51
|
+
backend_resource_request_set_erred_request.additional_properties = d
|
|
52
|
+
return backend_resource_request_set_erred_request
|
|
53
53
|
|
|
54
54
|
@property
|
|
55
55
|
def additional_keys(self) -> list[str]:
|
|
@@ -4,12 +4,12 @@ from typing import Any, TypeVar
|
|
|
4
4
|
from attrs import define as _attrs_define
|
|
5
5
|
from attrs import field as _attrs_field
|
|
6
6
|
|
|
7
|
-
T = TypeVar("T", bound="
|
|
7
|
+
T = TypeVar("T", bound="BackendResourceRequestsSetDoneResponse200")
|
|
8
8
|
|
|
9
9
|
|
|
10
10
|
@_attrs_define
|
|
11
|
-
class
|
|
12
|
-
"""
|
|
11
|
+
class BackendResourceRequestsSetDoneResponse200:
|
|
12
|
+
""" """
|
|
13
13
|
|
|
14
14
|
additional_properties: dict[str, Any] = _attrs_field(init=False, factory=dict)
|
|
15
15
|
|
|
@@ -22,10 +22,10 @@ class OrderDetailsAttributes:
|
|
|
22
22
|
@classmethod
|
|
23
23
|
def from_dict(cls: type[T], src_dict: Mapping[str, Any]) -> T:
|
|
24
24
|
d = dict(src_dict)
|
|
25
|
-
|
|
25
|
+
backend_resource_requests_set_done_response_200 = cls()
|
|
26
26
|
|
|
27
|
-
|
|
28
|
-
return
|
|
27
|
+
backend_resource_requests_set_done_response_200.additional_properties = d
|
|
28
|
+
return backend_resource_requests_set_done_response_200
|
|
29
29
|
|
|
30
30
|
@property
|
|
31
31
|
def additional_keys(self) -> list[str]:
|