waldur-api-client 0.2.0__py3-none-any.whl → 7.6.7__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of waldur-api-client might be problematic. Click here for more details.
- waldur_api_client/api/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/__init__.py +1 -0
- waldur_api_client/api/autoprovisioning_rule_plans/autoprovisioning_rule_plans_create.py +148 -0
- waldur_api_client/api/autoprovisioning_rule_plans/autoprovisioning_rule_plans_destroy.py +89 -0
- waldur_api_client/api/autoprovisioning_rule_plans/autoprovisioning_rule_plans_list.py +173 -0
- waldur_api_client/api/autoprovisioning_rule_plans/autoprovisioning_rule_plans_partial_update.py +162 -0
- waldur_api_client/api/autoprovisioning_rule_plans/autoprovisioning_rule_plans_retrieve.py +140 -0
- waldur_api_client/api/autoprovisioning_rule_plans/autoprovisioning_rule_plans_update.py +162 -0
- waldur_api_client/api/autoprovisioning_rules/__init__.py +1 -0
- waldur_api_client/api/autoprovisioning_rules/autoprovisioning_rules_create.py +148 -0
- waldur_api_client/api/autoprovisioning_rules/autoprovisioning_rules_destroy.py +89 -0
- waldur_api_client/api/autoprovisioning_rules/autoprovisioning_rules_list.py +171 -0
- waldur_api_client/api/autoprovisioning_rules/autoprovisioning_rules_partial_update.py +162 -0
- waldur_api_client/api/autoprovisioning_rules/autoprovisioning_rules_retrieve.py +140 -0
- waldur_api_client/api/autoprovisioning_rules/autoprovisioning_rules_update.py +162 -0
- 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/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 +25 -13
- waldur_api_client/api/marketplace_provider_offerings/marketplace_provider_offerings_costs_list.py +25 -13
- waldur_api_client/api/marketplace_provider_offerings/marketplace_provider_offerings_customers_list.py +25 -13
- waldur_api_client/api/marketplace_provider_offerings/marketplace_provider_offerings_groups_list.py +25 -13
- waldur_api_client/api/marketplace_provider_offerings/marketplace_provider_offerings_list.py +33 -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 +33 -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_list.py +8 -4
- waldur_api_client/api/marketplace_service_providers/marketplace_service_providers_offerings_list.py +25 -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_users_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 +8 -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 +23 -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 +26 -14
- waldur_api_client/models/constance_settings.py +18 -0
- waldur_api_client/models/constance_settings_request.py +18 -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 +1 -0
- waldur_api_client/models/identity_provider.py +11 -11
- waldur_api_client/models/identity_provider_request.py +11 -11
- waldur_api_client/models/merged_plugin_options.py +27 -0
- waldur_api_client/models/merged_plugin_options_request.py +27 -0
- waldur_api_client/models/nested_requested_offering.py +18 -0
- waldur_api_client/models/patched_identity_provider_request.py +11 -11
- waldur_api_client/models/patched_rule_plans_request.py +108 -0
- waldur_api_client/models/{resource_backend_metadata.py → patched_rule_plans_request_attributes.py} +6 -21
- waldur_api_client/models/{resource_options.py → patched_rule_plans_request_limits.py} +7 -22
- waldur_api_client/models/patched_rule_request.py +101 -0
- waldur_api_client/models/provider_requested_offering.py +10 -0
- waldur_api_client/models/rancher_cluster.py +11 -0
- waldur_api_client/models/rancher_clusters_list_field_item.py +1 -0
- waldur_api_client/models/rancher_clusters_retrieve_field_item.py +1 -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/rule.py +128 -0
- waldur_api_client/models/rule_plans.py +126 -0
- waldur_api_client/models/{resource_backend_id.py → rule_plans_attributes.py} +7 -22
- waldur_api_client/models/rule_plans_limits.py +44 -0
- waldur_api_client/models/rule_plans_request.py +109 -0
- waldur_api_client/models/rule_plans_request_attributes.py +44 -0
- waldur_api_client/models/rule_plans_request_limits.py +44 -0
- waldur_api_client/models/rule_request.py +103 -0
- {waldur_api_client-0.2.0.dist-info → waldur_api_client-7.6.7.dist-info}/METADATA +1 -1
- {waldur_api_client-0.2.0.dist-info → waldur_api_client-7.6.7.dist-info}/RECORD +228 -208
- waldur_api_client/models/permission_project.py +0 -147
- waldur_api_client/models/resource_report.py +0 -73
- waldur_api_client/models/resource_set_state_erred.py +0 -68
- {waldur_api_client-0.2.0.dist-info → waldur_api_client-7.6.7.dist-info}/LICENSE +0 -0
- {waldur_api_client-0.2.0.dist-info → waldur_api_client-7.6.7.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]:
|
|
@@ -0,0 +1,128 @@
|
|
|
1
|
+
from collections.abc import Mapping
|
|
2
|
+
from typing import Any, TypeVar, Union, cast
|
|
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="Rule")
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
@_attrs_define
|
|
14
|
+
class Rule:
|
|
15
|
+
"""
|
|
16
|
+
Attributes:
|
|
17
|
+
uuid (UUID):
|
|
18
|
+
url (str):
|
|
19
|
+
customer (str):
|
|
20
|
+
plans (list[str]):
|
|
21
|
+
user_affiliations (Union[Unset, list[str]]):
|
|
22
|
+
user_email_patterns (Union[Unset, list[str]]):
|
|
23
|
+
project_role (Union[None, Unset, str]):
|
|
24
|
+
"""
|
|
25
|
+
|
|
26
|
+
uuid: UUID
|
|
27
|
+
url: str
|
|
28
|
+
customer: str
|
|
29
|
+
plans: list[str]
|
|
30
|
+
user_affiliations: Union[Unset, list[str]] = UNSET
|
|
31
|
+
user_email_patterns: Union[Unset, list[str]] = UNSET
|
|
32
|
+
project_role: Union[None, Unset, str] = UNSET
|
|
33
|
+
additional_properties: dict[str, Any] = _attrs_field(init=False, factory=dict)
|
|
34
|
+
|
|
35
|
+
def to_dict(self) -> dict[str, Any]:
|
|
36
|
+
uuid = str(self.uuid)
|
|
37
|
+
|
|
38
|
+
url = self.url
|
|
39
|
+
|
|
40
|
+
customer = self.customer
|
|
41
|
+
|
|
42
|
+
plans = self.plans
|
|
43
|
+
|
|
44
|
+
user_affiliations: Union[Unset, list[str]] = UNSET
|
|
45
|
+
if not isinstance(self.user_affiliations, Unset):
|
|
46
|
+
user_affiliations = self.user_affiliations
|
|
47
|
+
|
|
48
|
+
user_email_patterns: Union[Unset, list[str]] = UNSET
|
|
49
|
+
if not isinstance(self.user_email_patterns, Unset):
|
|
50
|
+
user_email_patterns = self.user_email_patterns
|
|
51
|
+
|
|
52
|
+
project_role: Union[None, Unset, str]
|
|
53
|
+
if isinstance(self.project_role, Unset):
|
|
54
|
+
project_role = UNSET
|
|
55
|
+
else:
|
|
56
|
+
project_role = self.project_role
|
|
57
|
+
|
|
58
|
+
field_dict: dict[str, Any] = {}
|
|
59
|
+
field_dict.update(self.additional_properties)
|
|
60
|
+
field_dict.update(
|
|
61
|
+
{
|
|
62
|
+
"uuid": uuid,
|
|
63
|
+
"url": url,
|
|
64
|
+
"customer": customer,
|
|
65
|
+
"plans": plans,
|
|
66
|
+
}
|
|
67
|
+
)
|
|
68
|
+
if user_affiliations is not UNSET:
|
|
69
|
+
field_dict["user_affiliations"] = user_affiliations
|
|
70
|
+
if user_email_patterns is not UNSET:
|
|
71
|
+
field_dict["user_email_patterns"] = user_email_patterns
|
|
72
|
+
if project_role is not UNSET:
|
|
73
|
+
field_dict["project_role"] = project_role
|
|
74
|
+
|
|
75
|
+
return field_dict
|
|
76
|
+
|
|
77
|
+
@classmethod
|
|
78
|
+
def from_dict(cls: type[T], src_dict: Mapping[str, Any]) -> T:
|
|
79
|
+
d = dict(src_dict)
|
|
80
|
+
uuid = UUID(d.pop("uuid"))
|
|
81
|
+
|
|
82
|
+
url = d.pop("url")
|
|
83
|
+
|
|
84
|
+
customer = d.pop("customer")
|
|
85
|
+
|
|
86
|
+
plans = cast(list[str], d.pop("plans"))
|
|
87
|
+
|
|
88
|
+
user_affiliations = cast(list[str], d.pop("user_affiliations", UNSET))
|
|
89
|
+
|
|
90
|
+
user_email_patterns = cast(list[str], d.pop("user_email_patterns", UNSET))
|
|
91
|
+
|
|
92
|
+
def _parse_project_role(data: object) -> Union[None, Unset, str]:
|
|
93
|
+
if data is None:
|
|
94
|
+
return data
|
|
95
|
+
if isinstance(data, Unset):
|
|
96
|
+
return data
|
|
97
|
+
return cast(Union[None, Unset, str], data)
|
|
98
|
+
|
|
99
|
+
project_role = _parse_project_role(d.pop("project_role", UNSET))
|
|
100
|
+
|
|
101
|
+
rule = cls(
|
|
102
|
+
uuid=uuid,
|
|
103
|
+
url=url,
|
|
104
|
+
customer=customer,
|
|
105
|
+
plans=plans,
|
|
106
|
+
user_affiliations=user_affiliations,
|
|
107
|
+
user_email_patterns=user_email_patterns,
|
|
108
|
+
project_role=project_role,
|
|
109
|
+
)
|
|
110
|
+
|
|
111
|
+
rule.additional_properties = d
|
|
112
|
+
return rule
|
|
113
|
+
|
|
114
|
+
@property
|
|
115
|
+
def additional_keys(self) -> list[str]:
|
|
116
|
+
return list(self.additional_properties.keys())
|
|
117
|
+
|
|
118
|
+
def __getitem__(self, key: str) -> Any:
|
|
119
|
+
return self.additional_properties[key]
|
|
120
|
+
|
|
121
|
+
def __setitem__(self, key: str, value: Any) -> None:
|
|
122
|
+
self.additional_properties[key] = value
|
|
123
|
+
|
|
124
|
+
def __delitem__(self, key: str) -> None:
|
|
125
|
+
del self.additional_properties[key]
|
|
126
|
+
|
|
127
|
+
def __contains__(self, key: str) -> bool:
|
|
128
|
+
return key in self.additional_properties
|
|
@@ -0,0 +1,126 @@
|
|
|
1
|
+
from collections.abc import Mapping
|
|
2
|
+
from typing import TYPE_CHECKING, 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
|
+
if TYPE_CHECKING:
|
|
11
|
+
from ..models.rule_plans_attributes import RulePlansAttributes
|
|
12
|
+
from ..models.rule_plans_limits import RulePlansLimits
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
T = TypeVar("T", bound="RulePlans")
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
@_attrs_define
|
|
19
|
+
class RulePlans:
|
|
20
|
+
"""
|
|
21
|
+
Attributes:
|
|
22
|
+
uuid (UUID):
|
|
23
|
+
url (str):
|
|
24
|
+
rule (str):
|
|
25
|
+
plan (str):
|
|
26
|
+
attributes (Union[Unset, RulePlansAttributes]):
|
|
27
|
+
limits (Union[Unset, RulePlansLimits]):
|
|
28
|
+
"""
|
|
29
|
+
|
|
30
|
+
uuid: UUID
|
|
31
|
+
url: str
|
|
32
|
+
rule: str
|
|
33
|
+
plan: str
|
|
34
|
+
attributes: Union[Unset, "RulePlansAttributes"] = UNSET
|
|
35
|
+
limits: Union[Unset, "RulePlansLimits"] = UNSET
|
|
36
|
+
additional_properties: dict[str, Any] = _attrs_field(init=False, factory=dict)
|
|
37
|
+
|
|
38
|
+
def to_dict(self) -> dict[str, Any]:
|
|
39
|
+
uuid = str(self.uuid)
|
|
40
|
+
|
|
41
|
+
url = self.url
|
|
42
|
+
|
|
43
|
+
rule = self.rule
|
|
44
|
+
|
|
45
|
+
plan = self.plan
|
|
46
|
+
|
|
47
|
+
attributes: Union[Unset, dict[str, Any]] = UNSET
|
|
48
|
+
if not isinstance(self.attributes, Unset):
|
|
49
|
+
attributes = self.attributes.to_dict()
|
|
50
|
+
|
|
51
|
+
limits: Union[Unset, dict[str, Any]] = UNSET
|
|
52
|
+
if not isinstance(self.limits, Unset):
|
|
53
|
+
limits = self.limits.to_dict()
|
|
54
|
+
|
|
55
|
+
field_dict: dict[str, Any] = {}
|
|
56
|
+
field_dict.update(self.additional_properties)
|
|
57
|
+
field_dict.update(
|
|
58
|
+
{
|
|
59
|
+
"uuid": uuid,
|
|
60
|
+
"url": url,
|
|
61
|
+
"rule": rule,
|
|
62
|
+
"plan": plan,
|
|
63
|
+
}
|
|
64
|
+
)
|
|
65
|
+
if attributes is not UNSET:
|
|
66
|
+
field_dict["attributes"] = attributes
|
|
67
|
+
if limits is not UNSET:
|
|
68
|
+
field_dict["limits"] = limits
|
|
69
|
+
|
|
70
|
+
return field_dict
|
|
71
|
+
|
|
72
|
+
@classmethod
|
|
73
|
+
def from_dict(cls: type[T], src_dict: Mapping[str, Any]) -> T:
|
|
74
|
+
from ..models.rule_plans_attributes import RulePlansAttributes
|
|
75
|
+
from ..models.rule_plans_limits import RulePlansLimits
|
|
76
|
+
|
|
77
|
+
d = dict(src_dict)
|
|
78
|
+
uuid = UUID(d.pop("uuid"))
|
|
79
|
+
|
|
80
|
+
url = d.pop("url")
|
|
81
|
+
|
|
82
|
+
rule = d.pop("rule")
|
|
83
|
+
|
|
84
|
+
plan = d.pop("plan")
|
|
85
|
+
|
|
86
|
+
_attributes = d.pop("attributes", UNSET)
|
|
87
|
+
attributes: Union[Unset, RulePlansAttributes]
|
|
88
|
+
if isinstance(_attributes, Unset):
|
|
89
|
+
attributes = UNSET
|
|
90
|
+
else:
|
|
91
|
+
attributes = RulePlansAttributes.from_dict(_attributes)
|
|
92
|
+
|
|
93
|
+
_limits = d.pop("limits", UNSET)
|
|
94
|
+
limits: Union[Unset, RulePlansLimits]
|
|
95
|
+
if isinstance(_limits, Unset):
|
|
96
|
+
limits = UNSET
|
|
97
|
+
else:
|
|
98
|
+
limits = RulePlansLimits.from_dict(_limits)
|
|
99
|
+
|
|
100
|
+
rule_plans = cls(
|
|
101
|
+
uuid=uuid,
|
|
102
|
+
url=url,
|
|
103
|
+
rule=rule,
|
|
104
|
+
plan=plan,
|
|
105
|
+
attributes=attributes,
|
|
106
|
+
limits=limits,
|
|
107
|
+
)
|
|
108
|
+
|
|
109
|
+
rule_plans.additional_properties = d
|
|
110
|
+
return rule_plans
|
|
111
|
+
|
|
112
|
+
@property
|
|
113
|
+
def additional_keys(self) -> list[str]:
|
|
114
|
+
return list(self.additional_properties.keys())
|
|
115
|
+
|
|
116
|
+
def __getitem__(self, key: str) -> Any:
|
|
117
|
+
return self.additional_properties[key]
|
|
118
|
+
|
|
119
|
+
def __setitem__(self, key: str, value: Any) -> None:
|
|
120
|
+
self.additional_properties[key] = value
|
|
121
|
+
|
|
122
|
+
def __delitem__(self, key: str) -> None:
|
|
123
|
+
del self.additional_properties[key]
|
|
124
|
+
|
|
125
|
+
def __contains__(self, key: str) -> bool:
|
|
126
|
+
return key in self.additional_properties
|
|
@@ -1,46 +1,31 @@
|
|
|
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
|
-
|
|
8
|
-
|
|
9
|
-
T = TypeVar("T", bound="ResourceBackendID")
|
|
7
|
+
T = TypeVar("T", bound="RulePlansAttributes")
|
|
10
8
|
|
|
11
9
|
|
|
12
10
|
@_attrs_define
|
|
13
|
-
class
|
|
14
|
-
"""
|
|
15
|
-
Attributes:
|
|
16
|
-
backend_id (Union[Unset, str]):
|
|
17
|
-
"""
|
|
11
|
+
class RulePlansAttributes:
|
|
12
|
+
""" """
|
|
18
13
|
|
|
19
|
-
backend_id: Union[Unset, str] = UNSET
|
|
20
14
|
additional_properties: dict[str, Any] = _attrs_field(init=False, factory=dict)
|
|
21
15
|
|
|
22
16
|
def to_dict(self) -> dict[str, Any]:
|
|
23
|
-
backend_id = self.backend_id
|
|
24
|
-
|
|
25
17
|
field_dict: dict[str, Any] = {}
|
|
26
18
|
field_dict.update(self.additional_properties)
|
|
27
|
-
field_dict.update({})
|
|
28
|
-
if backend_id is not UNSET:
|
|
29
|
-
field_dict["backend_id"] = backend_id
|
|
30
19
|
|
|
31
20
|
return field_dict
|
|
32
21
|
|
|
33
22
|
@classmethod
|
|
34
23
|
def from_dict(cls: type[T], src_dict: Mapping[str, Any]) -> T:
|
|
35
24
|
d = dict(src_dict)
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
resource_backend_id = cls(
|
|
39
|
-
backend_id=backend_id,
|
|
40
|
-
)
|
|
25
|
+
rule_plans_attributes = cls()
|
|
41
26
|
|
|
42
|
-
|
|
43
|
-
return
|
|
27
|
+
rule_plans_attributes.additional_properties = d
|
|
28
|
+
return rule_plans_attributes
|
|
44
29
|
|
|
45
30
|
@property
|
|
46
31
|
def additional_keys(self) -> list[str]:
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
from collections.abc import Mapping
|
|
2
|
+
from typing import Any, TypeVar
|
|
3
|
+
|
|
4
|
+
from attrs import define as _attrs_define
|
|
5
|
+
from attrs import field as _attrs_field
|
|
6
|
+
|
|
7
|
+
T = TypeVar("T", bound="RulePlansLimits")
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
@_attrs_define
|
|
11
|
+
class RulePlansLimits:
|
|
12
|
+
""" """
|
|
13
|
+
|
|
14
|
+
additional_properties: dict[str, Any] = _attrs_field(init=False, factory=dict)
|
|
15
|
+
|
|
16
|
+
def to_dict(self) -> dict[str, Any]:
|
|
17
|
+
field_dict: dict[str, Any] = {}
|
|
18
|
+
field_dict.update(self.additional_properties)
|
|
19
|
+
|
|
20
|
+
return field_dict
|
|
21
|
+
|
|
22
|
+
@classmethod
|
|
23
|
+
def from_dict(cls: type[T], src_dict: Mapping[str, Any]) -> T:
|
|
24
|
+
d = dict(src_dict)
|
|
25
|
+
rule_plans_limits = cls()
|
|
26
|
+
|
|
27
|
+
rule_plans_limits.additional_properties = d
|
|
28
|
+
return rule_plans_limits
|
|
29
|
+
|
|
30
|
+
@property
|
|
31
|
+
def additional_keys(self) -> list[str]:
|
|
32
|
+
return list(self.additional_properties.keys())
|
|
33
|
+
|
|
34
|
+
def __getitem__(self, key: str) -> Any:
|
|
35
|
+
return self.additional_properties[key]
|
|
36
|
+
|
|
37
|
+
def __setitem__(self, key: str, value: Any) -> None:
|
|
38
|
+
self.additional_properties[key] = value
|
|
39
|
+
|
|
40
|
+
def __delitem__(self, key: str) -> None:
|
|
41
|
+
del self.additional_properties[key]
|
|
42
|
+
|
|
43
|
+
def __contains__(self, key: str) -> bool:
|
|
44
|
+
return key in self.additional_properties
|
|
@@ -0,0 +1,109 @@
|
|
|
1
|
+
from collections.abc import Mapping
|
|
2
|
+
from typing import TYPE_CHECKING, Any, TypeVar, Union
|
|
3
|
+
|
|
4
|
+
from attrs import define as _attrs_define
|
|
5
|
+
from attrs import field as _attrs_field
|
|
6
|
+
|
|
7
|
+
from ..types import UNSET, Unset
|
|
8
|
+
|
|
9
|
+
if TYPE_CHECKING:
|
|
10
|
+
from ..models.rule_plans_request_attributes import RulePlansRequestAttributes
|
|
11
|
+
from ..models.rule_plans_request_limits import RulePlansRequestLimits
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
T = TypeVar("T", bound="RulePlansRequest")
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
@_attrs_define
|
|
18
|
+
class RulePlansRequest:
|
|
19
|
+
"""
|
|
20
|
+
Attributes:
|
|
21
|
+
rule (str):
|
|
22
|
+
plan (str):
|
|
23
|
+
attributes (Union[Unset, RulePlansRequestAttributes]):
|
|
24
|
+
limits (Union[Unset, RulePlansRequestLimits]):
|
|
25
|
+
"""
|
|
26
|
+
|
|
27
|
+
rule: str
|
|
28
|
+
plan: str
|
|
29
|
+
attributes: Union[Unset, "RulePlansRequestAttributes"] = UNSET
|
|
30
|
+
limits: Union[Unset, "RulePlansRequestLimits"] = UNSET
|
|
31
|
+
additional_properties: dict[str, Any] = _attrs_field(init=False, factory=dict)
|
|
32
|
+
|
|
33
|
+
def to_dict(self) -> dict[str, Any]:
|
|
34
|
+
rule = self.rule
|
|
35
|
+
|
|
36
|
+
plan = self.plan
|
|
37
|
+
|
|
38
|
+
attributes: Union[Unset, dict[str, Any]] = UNSET
|
|
39
|
+
if not isinstance(self.attributes, Unset):
|
|
40
|
+
attributes = self.attributes.to_dict()
|
|
41
|
+
|
|
42
|
+
limits: Union[Unset, dict[str, Any]] = UNSET
|
|
43
|
+
if not isinstance(self.limits, Unset):
|
|
44
|
+
limits = self.limits.to_dict()
|
|
45
|
+
|
|
46
|
+
field_dict: dict[str, Any] = {}
|
|
47
|
+
field_dict.update(self.additional_properties)
|
|
48
|
+
field_dict.update(
|
|
49
|
+
{
|
|
50
|
+
"rule": rule,
|
|
51
|
+
"plan": plan,
|
|
52
|
+
}
|
|
53
|
+
)
|
|
54
|
+
if attributes is not UNSET:
|
|
55
|
+
field_dict["attributes"] = attributes
|
|
56
|
+
if limits is not UNSET:
|
|
57
|
+
field_dict["limits"] = limits
|
|
58
|
+
|
|
59
|
+
return field_dict
|
|
60
|
+
|
|
61
|
+
@classmethod
|
|
62
|
+
def from_dict(cls: type[T], src_dict: Mapping[str, Any]) -> T:
|
|
63
|
+
from ..models.rule_plans_request_attributes import RulePlansRequestAttributes
|
|
64
|
+
from ..models.rule_plans_request_limits import RulePlansRequestLimits
|
|
65
|
+
|
|
66
|
+
d = dict(src_dict)
|
|
67
|
+
rule = d.pop("rule")
|
|
68
|
+
|
|
69
|
+
plan = d.pop("plan")
|
|
70
|
+
|
|
71
|
+
_attributes = d.pop("attributes", UNSET)
|
|
72
|
+
attributes: Union[Unset, RulePlansRequestAttributes]
|
|
73
|
+
if isinstance(_attributes, Unset):
|
|
74
|
+
attributes = UNSET
|
|
75
|
+
else:
|
|
76
|
+
attributes = RulePlansRequestAttributes.from_dict(_attributes)
|
|
77
|
+
|
|
78
|
+
_limits = d.pop("limits", UNSET)
|
|
79
|
+
limits: Union[Unset, RulePlansRequestLimits]
|
|
80
|
+
if isinstance(_limits, Unset):
|
|
81
|
+
limits = UNSET
|
|
82
|
+
else:
|
|
83
|
+
limits = RulePlansRequestLimits.from_dict(_limits)
|
|
84
|
+
|
|
85
|
+
rule_plans_request = cls(
|
|
86
|
+
rule=rule,
|
|
87
|
+
plan=plan,
|
|
88
|
+
attributes=attributes,
|
|
89
|
+
limits=limits,
|
|
90
|
+
)
|
|
91
|
+
|
|
92
|
+
rule_plans_request.additional_properties = d
|
|
93
|
+
return rule_plans_request
|
|
94
|
+
|
|
95
|
+
@property
|
|
96
|
+
def additional_keys(self) -> list[str]:
|
|
97
|
+
return list(self.additional_properties.keys())
|
|
98
|
+
|
|
99
|
+
def __getitem__(self, key: str) -> Any:
|
|
100
|
+
return self.additional_properties[key]
|
|
101
|
+
|
|
102
|
+
def __setitem__(self, key: str, value: Any) -> None:
|
|
103
|
+
self.additional_properties[key] = value
|
|
104
|
+
|
|
105
|
+
def __delitem__(self, key: str) -> None:
|
|
106
|
+
del self.additional_properties[key]
|
|
107
|
+
|
|
108
|
+
def __contains__(self, key: str) -> bool:
|
|
109
|
+
return key in self.additional_properties
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
from collections.abc import Mapping
|
|
2
|
+
from typing import Any, TypeVar
|
|
3
|
+
|
|
4
|
+
from attrs import define as _attrs_define
|
|
5
|
+
from attrs import field as _attrs_field
|
|
6
|
+
|
|
7
|
+
T = TypeVar("T", bound="RulePlansRequestAttributes")
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
@_attrs_define
|
|
11
|
+
class RulePlansRequestAttributes:
|
|
12
|
+
""" """
|
|
13
|
+
|
|
14
|
+
additional_properties: dict[str, Any] = _attrs_field(init=False, factory=dict)
|
|
15
|
+
|
|
16
|
+
def to_dict(self) -> dict[str, Any]:
|
|
17
|
+
field_dict: dict[str, Any] = {}
|
|
18
|
+
field_dict.update(self.additional_properties)
|
|
19
|
+
|
|
20
|
+
return field_dict
|
|
21
|
+
|
|
22
|
+
@classmethod
|
|
23
|
+
def from_dict(cls: type[T], src_dict: Mapping[str, Any]) -> T:
|
|
24
|
+
d = dict(src_dict)
|
|
25
|
+
rule_plans_request_attributes = cls()
|
|
26
|
+
|
|
27
|
+
rule_plans_request_attributes.additional_properties = d
|
|
28
|
+
return rule_plans_request_attributes
|
|
29
|
+
|
|
30
|
+
@property
|
|
31
|
+
def additional_keys(self) -> list[str]:
|
|
32
|
+
return list(self.additional_properties.keys())
|
|
33
|
+
|
|
34
|
+
def __getitem__(self, key: str) -> Any:
|
|
35
|
+
return self.additional_properties[key]
|
|
36
|
+
|
|
37
|
+
def __setitem__(self, key: str, value: Any) -> None:
|
|
38
|
+
self.additional_properties[key] = value
|
|
39
|
+
|
|
40
|
+
def __delitem__(self, key: str) -> None:
|
|
41
|
+
del self.additional_properties[key]
|
|
42
|
+
|
|
43
|
+
def __contains__(self, key: str) -> bool:
|
|
44
|
+
return key in self.additional_properties
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
from collections.abc import Mapping
|
|
2
|
+
from typing import Any, TypeVar
|
|
3
|
+
|
|
4
|
+
from attrs import define as _attrs_define
|
|
5
|
+
from attrs import field as _attrs_field
|
|
6
|
+
|
|
7
|
+
T = TypeVar("T", bound="RulePlansRequestLimits")
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
@_attrs_define
|
|
11
|
+
class RulePlansRequestLimits:
|
|
12
|
+
""" """
|
|
13
|
+
|
|
14
|
+
additional_properties: dict[str, Any] = _attrs_field(init=False, factory=dict)
|
|
15
|
+
|
|
16
|
+
def to_dict(self) -> dict[str, Any]:
|
|
17
|
+
field_dict: dict[str, Any] = {}
|
|
18
|
+
field_dict.update(self.additional_properties)
|
|
19
|
+
|
|
20
|
+
return field_dict
|
|
21
|
+
|
|
22
|
+
@classmethod
|
|
23
|
+
def from_dict(cls: type[T], src_dict: Mapping[str, Any]) -> T:
|
|
24
|
+
d = dict(src_dict)
|
|
25
|
+
rule_plans_request_limits = cls()
|
|
26
|
+
|
|
27
|
+
rule_plans_request_limits.additional_properties = d
|
|
28
|
+
return rule_plans_request_limits
|
|
29
|
+
|
|
30
|
+
@property
|
|
31
|
+
def additional_keys(self) -> list[str]:
|
|
32
|
+
return list(self.additional_properties.keys())
|
|
33
|
+
|
|
34
|
+
def __getitem__(self, key: str) -> Any:
|
|
35
|
+
return self.additional_properties[key]
|
|
36
|
+
|
|
37
|
+
def __setitem__(self, key: str, value: Any) -> None:
|
|
38
|
+
self.additional_properties[key] = value
|
|
39
|
+
|
|
40
|
+
def __delitem__(self, key: str) -> None:
|
|
41
|
+
del self.additional_properties[key]
|
|
42
|
+
|
|
43
|
+
def __contains__(self, key: str) -> bool:
|
|
44
|
+
return key in self.additional_properties
|