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
|
@@ -1,9 +1,11 @@
|
|
|
1
|
+
import datetime
|
|
1
2
|
from collections.abc import Mapping
|
|
2
3
|
from typing import TYPE_CHECKING, Any, TypeVar, Union, cast
|
|
3
4
|
from uuid import UUID
|
|
4
5
|
|
|
5
6
|
from attrs import define as _attrs_define
|
|
6
7
|
from attrs import field as _attrs_field
|
|
8
|
+
from dateutil.parser import isoparse
|
|
7
9
|
|
|
8
10
|
from ..models.requested_offering_states import RequestedOfferingStates
|
|
9
11
|
from ..types import UNSET, Unset
|
|
@@ -33,6 +35,7 @@ class RequestedOffering:
|
|
|
33
35
|
plan_details (BasePublicPlan):
|
|
34
36
|
options (OfferingOptions):
|
|
35
37
|
components (list['OfferingComponent']):
|
|
38
|
+
created (datetime.datetime):
|
|
36
39
|
url (str):
|
|
37
40
|
approved_by (Union[None, str]):
|
|
38
41
|
created_by (Union[None, str]):
|
|
@@ -55,6 +58,7 @@ class RequestedOffering:
|
|
|
55
58
|
plan_details: "BasePublicPlan"
|
|
56
59
|
options: "OfferingOptions"
|
|
57
60
|
components: list["OfferingComponent"]
|
|
61
|
+
created: datetime.datetime
|
|
58
62
|
url: str
|
|
59
63
|
approved_by: Union[None, str]
|
|
60
64
|
created_by: Union[None, str]
|
|
@@ -93,6 +97,8 @@ class RequestedOffering:
|
|
|
93
97
|
components_item = components_item_data.to_dict()
|
|
94
98
|
components.append(components_item)
|
|
95
99
|
|
|
100
|
+
created = self.created.isoformat()
|
|
101
|
+
|
|
96
102
|
url = self.url
|
|
97
103
|
|
|
98
104
|
approved_by: Union[None, str]
|
|
@@ -131,6 +137,7 @@ class RequestedOffering:
|
|
|
131
137
|
"plan_details": plan_details,
|
|
132
138
|
"options": options,
|
|
133
139
|
"components": components,
|
|
140
|
+
"created": created,
|
|
134
141
|
"url": url,
|
|
135
142
|
"approved_by": approved_by,
|
|
136
143
|
"created_by": created_by,
|
|
@@ -183,6 +190,8 @@ class RequestedOffering:
|
|
|
183
190
|
|
|
184
191
|
components.append(components_item)
|
|
185
192
|
|
|
193
|
+
created = isoparse(d.pop("created"))
|
|
194
|
+
|
|
186
195
|
url = d.pop("url")
|
|
187
196
|
|
|
188
197
|
def _parse_approved_by(data: object) -> Union[None, str]:
|
|
@@ -229,6 +238,7 @@ class RequestedOffering:
|
|
|
229
238
|
plan_details=plan_details,
|
|
230
239
|
options=options,
|
|
231
240
|
components=components,
|
|
241
|
+
created=created,
|
|
232
242
|
url=url,
|
|
233
243
|
approved_by=approved_by,
|
|
234
244
|
created_by=created_by,
|
|
@@ -4,27 +4,27 @@ 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="ResourceResponseStatus")
|
|
8
8
|
|
|
9
9
|
|
|
10
10
|
@_attrs_define
|
|
11
|
-
class
|
|
11
|
+
class ResourceResponseStatus:
|
|
12
12
|
"""
|
|
13
13
|
Attributes:
|
|
14
|
-
|
|
14
|
+
status (str):
|
|
15
15
|
"""
|
|
16
16
|
|
|
17
|
-
|
|
17
|
+
status: str
|
|
18
18
|
additional_properties: dict[str, Any] = _attrs_field(init=False, factory=dict)
|
|
19
19
|
|
|
20
20
|
def to_dict(self) -> dict[str, Any]:
|
|
21
|
-
|
|
21
|
+
status = self.status
|
|
22
22
|
|
|
23
23
|
field_dict: dict[str, Any] = {}
|
|
24
24
|
field_dict.update(self.additional_properties)
|
|
25
25
|
field_dict.update(
|
|
26
26
|
{
|
|
27
|
-
"
|
|
27
|
+
"status": status,
|
|
28
28
|
}
|
|
29
29
|
)
|
|
30
30
|
|
|
@@ -33,14 +33,14 @@ class ResourceSetLimits:
|
|
|
33
33
|
@classmethod
|
|
34
34
|
def from_dict(cls: type[T], src_dict: Mapping[str, Any]) -> T:
|
|
35
35
|
d = dict(src_dict)
|
|
36
|
-
|
|
36
|
+
status = d.pop("status")
|
|
37
37
|
|
|
38
|
-
|
|
39
|
-
|
|
38
|
+
resource_response_status = cls(
|
|
39
|
+
status=status,
|
|
40
40
|
)
|
|
41
41
|
|
|
42
|
-
|
|
43
|
-
return
|
|
42
|
+
resource_response_status.additional_properties = d
|
|
43
|
+
return resource_response_status
|
|
44
44
|
|
|
45
45
|
@property
|
|
46
46
|
def additional_keys(self) -> list[str]:
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import datetime
|
|
2
2
|
from collections.abc import Mapping
|
|
3
|
-
from typing import Any, TypeVar
|
|
3
|
+
from typing import Any, TypeVar
|
|
4
4
|
from uuid import UUID
|
|
5
5
|
|
|
6
6
|
from attrs import define as _attrs_define
|
|
@@ -8,7 +8,6 @@ from attrs import field as _attrs_field
|
|
|
8
8
|
from dateutil.parser import isoparse
|
|
9
9
|
|
|
10
10
|
from ..models.agreement_type_enum import AgreementTypeEnum
|
|
11
|
-
from ..types import UNSET, Unset
|
|
12
11
|
|
|
13
12
|
T = TypeVar("T", bound="UserAgreement")
|
|
14
13
|
|
|
@@ -19,18 +18,18 @@ class UserAgreement:
|
|
|
19
18
|
Attributes:
|
|
20
19
|
url (str):
|
|
21
20
|
uuid (UUID):
|
|
21
|
+
content (str):
|
|
22
22
|
agreement_type (AgreementTypeEnum):
|
|
23
23
|
created (datetime.datetime):
|
|
24
24
|
modified (datetime.datetime):
|
|
25
|
-
content (Union[Unset, str]):
|
|
26
25
|
"""
|
|
27
26
|
|
|
28
27
|
url: str
|
|
29
28
|
uuid: UUID
|
|
29
|
+
content: str
|
|
30
30
|
agreement_type: AgreementTypeEnum
|
|
31
31
|
created: datetime.datetime
|
|
32
32
|
modified: datetime.datetime
|
|
33
|
-
content: Union[Unset, str] = UNSET
|
|
34
33
|
additional_properties: dict[str, Any] = _attrs_field(init=False, factory=dict)
|
|
35
34
|
|
|
36
35
|
def to_dict(self) -> dict[str, Any]:
|
|
@@ -38,27 +37,26 @@ class UserAgreement:
|
|
|
38
37
|
|
|
39
38
|
uuid = str(self.uuid)
|
|
40
39
|
|
|
40
|
+
content = self.content
|
|
41
|
+
|
|
41
42
|
agreement_type = self.agreement_type.value
|
|
42
43
|
|
|
43
44
|
created = self.created.isoformat()
|
|
44
45
|
|
|
45
46
|
modified = self.modified.isoformat()
|
|
46
47
|
|
|
47
|
-
content = self.content
|
|
48
|
-
|
|
49
48
|
field_dict: dict[str, Any] = {}
|
|
50
49
|
field_dict.update(self.additional_properties)
|
|
51
50
|
field_dict.update(
|
|
52
51
|
{
|
|
53
52
|
"url": url,
|
|
54
53
|
"uuid": uuid,
|
|
54
|
+
"content": content,
|
|
55
55
|
"agreement_type": agreement_type,
|
|
56
56
|
"created": created,
|
|
57
57
|
"modified": modified,
|
|
58
58
|
}
|
|
59
59
|
)
|
|
60
|
-
if content is not UNSET:
|
|
61
|
-
field_dict["content"] = content
|
|
62
60
|
|
|
63
61
|
return field_dict
|
|
64
62
|
|
|
@@ -69,21 +67,21 @@ class UserAgreement:
|
|
|
69
67
|
|
|
70
68
|
uuid = UUID(d.pop("uuid"))
|
|
71
69
|
|
|
70
|
+
content = d.pop("content")
|
|
71
|
+
|
|
72
72
|
agreement_type = AgreementTypeEnum(d.pop("agreement_type"))
|
|
73
73
|
|
|
74
74
|
created = isoparse(d.pop("created"))
|
|
75
75
|
|
|
76
76
|
modified = isoparse(d.pop("modified"))
|
|
77
77
|
|
|
78
|
-
content = d.pop("content", UNSET)
|
|
79
|
-
|
|
80
78
|
user_agreement = cls(
|
|
81
79
|
url=url,
|
|
82
80
|
uuid=uuid,
|
|
81
|
+
content=content,
|
|
83
82
|
agreement_type=agreement_type,
|
|
84
83
|
created=created,
|
|
85
84
|
modified=modified,
|
|
86
|
-
content=content,
|
|
87
85
|
)
|
|
88
86
|
|
|
89
87
|
user_agreement.additional_properties = d
|
|
@@ -1,11 +1,10 @@
|
|
|
1
1
|
from collections.abc import Mapping
|
|
2
|
-
from typing import Any, TypeVar
|
|
2
|
+
from typing import Any, TypeVar
|
|
3
3
|
|
|
4
4
|
from attrs import define as _attrs_define
|
|
5
5
|
from attrs import field as _attrs_field
|
|
6
6
|
|
|
7
7
|
from ..models.agreement_type_enum import AgreementTypeEnum
|
|
8
|
-
from ..types import UNSET, Unset
|
|
9
8
|
|
|
10
9
|
T = TypeVar("T", bound="UserAgreementRequest")
|
|
11
10
|
|
|
@@ -14,41 +13,40 @@ T = TypeVar("T", bound="UserAgreementRequest")
|
|
|
14
13
|
class UserAgreementRequest:
|
|
15
14
|
"""
|
|
16
15
|
Attributes:
|
|
16
|
+
content (str):
|
|
17
17
|
agreement_type (AgreementTypeEnum):
|
|
18
|
-
content (Union[Unset, str]):
|
|
19
18
|
"""
|
|
20
19
|
|
|
20
|
+
content: str
|
|
21
21
|
agreement_type: AgreementTypeEnum
|
|
22
|
-
content: Union[Unset, str] = UNSET
|
|
23
22
|
additional_properties: dict[str, Any] = _attrs_field(init=False, factory=dict)
|
|
24
23
|
|
|
25
24
|
def to_dict(self) -> dict[str, Any]:
|
|
26
|
-
agreement_type = self.agreement_type.value
|
|
27
|
-
|
|
28
25
|
content = self.content
|
|
29
26
|
|
|
27
|
+
agreement_type = self.agreement_type.value
|
|
28
|
+
|
|
30
29
|
field_dict: dict[str, Any] = {}
|
|
31
30
|
field_dict.update(self.additional_properties)
|
|
32
31
|
field_dict.update(
|
|
33
32
|
{
|
|
33
|
+
"content": content,
|
|
34
34
|
"agreement_type": agreement_type,
|
|
35
35
|
}
|
|
36
36
|
)
|
|
37
|
-
if content is not UNSET:
|
|
38
|
-
field_dict["content"] = content
|
|
39
37
|
|
|
40
38
|
return field_dict
|
|
41
39
|
|
|
42
40
|
@classmethod
|
|
43
41
|
def from_dict(cls: type[T], src_dict: Mapping[str, Any]) -> T:
|
|
44
42
|
d = dict(src_dict)
|
|
45
|
-
|
|
43
|
+
content = d.pop("content")
|
|
46
44
|
|
|
47
|
-
|
|
45
|
+
agreement_type = AgreementTypeEnum(d.pop("agreement_type"))
|
|
48
46
|
|
|
49
47
|
user_agreement_request = cls(
|
|
50
|
-
agreement_type=agreement_type,
|
|
51
48
|
content=content,
|
|
49
|
+
agreement_type=agreement_type,
|
|
52
50
|
)
|
|
53
51
|
|
|
54
52
|
user_agreement_request.additional_properties = d
|