waldur-api-client 7.7.6__py3-none-any.whl → 7.7.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/booking_resources/booking_resources_count.py +34 -11
- waldur_api_client/api/booking_resources/booking_resources_list.py +34 -11
- waldur_api_client/api/customer_permissions_reviews/customer_permissions_reviews_count.py +19 -0
- waldur_api_client/api/customer_permissions_reviews/customer_permissions_reviews_list.py +19 -0
- waldur_api_client/api/customers/customers_project_metadata_compliance_details_list.py +189 -0
- waldur_api_client/api/customers/customers_project_metadata_compliance_overview_list.py +189 -0
- waldur_api_client/api/customers/customers_project_metadata_compliance_projects_list.py +187 -0
- waldur_api_client/api/customers/customers_project_metadata_question_answers_list.py +187 -0
- waldur_api_client/api/customers/customers_users_list.py +141 -53
- waldur_api_client/api/invoices/invoices_items_retrieve.py +20 -0
- waldur_api_client/api/managed_rancher_cluster_resources/__init__.py +1 -0
- waldur_api_client/api/managed_rancher_cluster_resources/managed_rancher_cluster_resources_add_node.py +162 -0
- waldur_api_client/api/managed_rancher_cluster_resources/managed_rancher_cluster_resources_count.py +172 -0
- waldur_api_client/api/managed_rancher_cluster_resources/managed_rancher_cluster_resources_list.py +196 -0
- waldur_api_client/api/managed_rancher_cluster_resources/managed_rancher_cluster_resources_retrieve.py +171 -0
- waldur_api_client/api/marketplace_course_accounts/__init__.py +1 -0
- waldur_api_client/api/marketplace_course_accounts/marketplace_course_accounts_count.py +244 -0
- waldur_api_client/api/marketplace_course_accounts/marketplace_course_accounts_create.py +148 -0
- waldur_api_client/api/marketplace_course_accounts/marketplace_course_accounts_create_bulk.py +152 -0
- waldur_api_client/api/marketplace_course_accounts/marketplace_course_accounts_destroy.py +89 -0
- waldur_api_client/api/marketplace_course_accounts/marketplace_course_accounts_list.py +245 -0
- waldur_api_client/api/marketplace_course_accounts/marketplace_course_accounts_retrieve.py +140 -0
- waldur_api_client/api/marketplace_customer_service_accounts/marketplace_customer_service_accounts_count.py +25 -0
- waldur_api_client/api/marketplace_customer_service_accounts/marketplace_customer_service_accounts_list.py +25 -0
- waldur_api_client/api/marketplace_integration_statuses/marketplace_integration_statuses_count.py +34 -11
- waldur_api_client/api/marketplace_integration_statuses/marketplace_integration_statuses_list.py +34 -11
- waldur_api_client/api/marketplace_offering_files/marketplace_offering_files_count.py +34 -11
- waldur_api_client/api/marketplace_offering_files/marketplace_offering_files_list.py +34 -11
- waldur_api_client/api/marketplace_offering_terms_of_service/__init__.py +1 -0
- waldur_api_client/api/marketplace_offering_terms_of_service/marketplace_offering_terms_of_service_count.py +274 -0
- waldur_api_client/api/marketplace_offering_terms_of_service/marketplace_offering_terms_of_service_create.py +152 -0
- waldur_api_client/api/marketplace_offering_terms_of_service/marketplace_offering_terms_of_service_destroy.py +89 -0
- waldur_api_client/api/marketplace_offering_terms_of_service/marketplace_offering_terms_of_service_list.py +277 -0
- waldur_api_client/api/marketplace_offering_terms_of_service/marketplace_offering_terms_of_service_partial_update.py +164 -0
- waldur_api_client/api/marketplace_offering_terms_of_service/marketplace_offering_terms_of_service_retrieve.py +142 -0
- waldur_api_client/api/marketplace_offering_terms_of_service/marketplace_offering_terms_of_service_update.py +164 -0
- waldur_api_client/api/marketplace_offering_user_roles/marketplace_offering_user_roles_count.py +34 -11
- waldur_api_client/api/marketplace_offering_user_roles/marketplace_offering_user_roles_list.py +34 -11
- waldur_api_client/api/marketplace_offering_users/marketplace_offering_users_count.py +34 -11
- waldur_api_client/api/marketplace_offering_users/marketplace_offering_users_list.py +34 -11
- waldur_api_client/api/marketplace_orders/marketplace_orders_count.py +19 -0
- waldur_api_client/api/marketplace_orders/marketplace_orders_list.py +19 -0
- waldur_api_client/api/marketplace_plans/marketplace_plans_count.py +19 -0
- waldur_api_client/api/marketplace_plans/marketplace_plans_list.py +19 -0
- waldur_api_client/api/marketplace_plans/marketplace_plans_usage_stats_count.py +19 -0
- waldur_api_client/api/marketplace_plans/marketplace_plans_usage_stats_list.py +19 -0
- waldur_api_client/api/marketplace_project_service_accounts/marketplace_project_service_accounts_count.py +25 -0
- waldur_api_client/api/marketplace_project_service_accounts/marketplace_project_service_accounts_list.py +25 -0
- waldur_api_client/api/marketplace_provider_resources/marketplace_provider_resources_count.py +34 -11
- waldur_api_client/api/marketplace_provider_resources/marketplace_provider_resources_list.py +34 -11
- waldur_api_client/api/marketplace_resources/marketplace_resources_count.py +34 -11
- waldur_api_client/api/marketplace_resources/marketplace_resources_list.py +34 -11
- waldur_api_client/api/marketplace_screenshots/marketplace_screenshots_count.py +34 -11
- waldur_api_client/api/marketplace_screenshots/marketplace_screenshots_list.py +34 -11
- waldur_api_client/api/marketplace_service_providers/marketplace_service_providers_course_accounts_list.py +284 -0
- waldur_api_client/api/marketplace_service_providers/marketplace_service_providers_project_service_accounts_list.py +29 -0
- waldur_api_client/api/marketplace_user_offering_consents/__init__.py +1 -0
- waldur_api_client/api/marketplace_user_offering_consents/marketplace_user_offering_consents_count.py +307 -0
- waldur_api_client/api/marketplace_user_offering_consents/marketplace_user_offering_consents_create.py +152 -0
- waldur_api_client/api/marketplace_user_offering_consents/marketplace_user_offering_consents_destroy.py +89 -0
- waldur_api_client/api/marketplace_user_offering_consents/marketplace_user_offering_consents_list.py +310 -0
- waldur_api_client/api/marketplace_user_offering_consents/marketplace_user_offering_consents_partial_update.py +164 -0
- waldur_api_client/api/marketplace_user_offering_consents/marketplace_user_offering_consents_retrieve.py +142 -0
- waldur_api_client/api/marketplace_user_offering_consents/marketplace_user_offering_consents_revoke.py +146 -0
- waldur_api_client/api/marketplace_user_offering_consents/marketplace_user_offering_consents_update.py +164 -0
- waldur_api_client/api/project_permissions_reviews/__init__.py +1 -0
- waldur_api_client/api/project_permissions_reviews/project_permissions_reviews_close.py +91 -0
- waldur_api_client/api/project_permissions_reviews/project_permissions_reviews_count.py +266 -0
- waldur_api_client/api/project_permissions_reviews/project_permissions_reviews_list.py +269 -0
- waldur_api_client/api/project_permissions_reviews/project_permissions_reviews_retrieve.py +142 -0
- waldur_api_client/api/projects/projects_other_users_list.py +98 -23
- waldur_api_client/api/projects/projects_sync_user_roles.py +10 -9
- waldur_api_client/api/remote_waldur_api/remote_waldur_api_remote_resource_order_status_retrieve.py +145 -0
- waldur_api_client/api/remote_waldur_api/remote_waldur_api_remote_resource_status_retrieve.py +147 -0
- waldur_api_client/api/remote_waldur_api/remote_waldur_api_remote_resource_team_status_list.py +188 -0
- waldur_api_client/api/support_issue_statuses/__init__.py +1 -0
- waldur_api_client/api/support_issue_statuses/support_issue_statuses_count.py +172 -0
- waldur_api_client/api/support_issue_statuses/support_issue_statuses_create.py +148 -0
- waldur_api_client/api/support_issue_statuses/support_issue_statuses_destroy.py +89 -0
- waldur_api_client/api/support_issue_statuses/support_issue_statuses_list.py +173 -0
- waldur_api_client/api/support_issue_statuses/support_issue_statuses_partial_update.py +162 -0
- waldur_api_client/api/support_issue_statuses/support_issue_statuses_retrieve.py +140 -0
- waldur_api_client/api/support_issue_statuses/support_issue_statuses_update.py +162 -0
- waldur_api_client/api/user_group_invitations/user_group_invitations_submit_request.py +12 -12
- waldur_api_client/api/user_invitations/user_invitations_count.py +30 -0
- waldur_api_client/api/user_invitations/user_invitations_list.py +30 -0
- waldur_api_client/api/user_permission_requests/user_permission_requests_cancel_request.py +146 -0
- waldur_api_client/models/__init__.py +136 -2
- waldur_api_client/models/azure_sql_server_create_order_attributes.py +3 -0
- waldur_api_client/models/azure_virtual_machine_create_order_attributes.py +3 -0
- waldur_api_client/models/booking_offerings_list_field_item.py +0 -2
- waldur_api_client/models/booking_offerings_retrieve_field_item.py +0 -2
- waldur_api_client/models/booking_resource.py +10 -9
- waldur_api_client/models/booking_resources_list_field_item.py +1 -1
- waldur_api_client/models/booking_resources_retrieve_field_item.py +1 -1
- waldur_api_client/models/cancel_request_response.py +75 -0
- waldur_api_client/models/checklist_info.py +76 -0
- waldur_api_client/models/compliance_overview.py +91 -0
- waldur_api_client/models/constance_settings.py +9 -0
- waldur_api_client/models/constance_settings_request.py +9 -0
- waldur_api_client/models/course_account.py +188 -0
- waldur_api_client/models/course_account_create_nested.py +68 -0
- waldur_api_client/models/course_account_create_nested_request.py +68 -0
- waldur_api_client/models/course_account_request.py +89 -0
- waldur_api_client/models/course_accounts_bulk_create.py +82 -0
- waldur_api_client/models/course_accounts_bulk_create_request.py +82 -0
- waldur_api_client/models/customer.py +90 -0
- waldur_api_client/models/customer_permission_review.py +16 -16
- waldur_api_client/models/customer_request.py +9 -0
- waldur_api_client/models/customer_service_account.py +9 -0
- waldur_api_client/models/customers_list_field_item.py +5 -0
- waldur_api_client/models/customers_retrieve_field_item.py +5 -0
- waldur_api_client/models/customers_users_list_o.py +9 -0
- waldur_api_client/models/customers_users_list_organization_role_item_type_0.py +10 -0
- waldur_api_client/models/customers_users_list_project_role_item_type_0.py +10 -0
- waldur_api_client/models/dependency_logic_operator_enum.py +9 -0
- waldur_api_client/models/event_subscription.py +1 -1
- waldur_api_client/models/event_types_enum.py +4 -0
- waldur_api_client/models/generic_order_attributes.py +69 -0
- waldur_api_client/models/google_auth_authorize_retrieve_field_item.py +1 -0
- waldur_api_client/models/google_auth_list_field_item.py +1 -0
- waldur_api_client/models/google_auth_retrieve_field_item.py +1 -0
- waldur_api_client/models/google_credentials.py +9 -0
- waldur_api_client/models/group_invitation.py +33 -0
- waldur_api_client/models/group_invitation_request.py +10 -0
- waldur_api_client/models/invitation.py +9 -0
- waldur_api_client/models/invoices_items_retrieve_o.py +15 -0
- waldur_api_client/models/issue_status.py +103 -0
- waldur_api_client/models/issue_status_request.py +78 -0
- waldur_api_client/models/issue_status_type_enum.py +9 -0
- waldur_api_client/models/kind_enum.py +10 -0
- waldur_api_client/models/maintenance_announcement.py +8 -0
- waldur_api_client/models/managed_rancher_cluster_resources_list_field_item.py +82 -0
- waldur_api_client/models/managed_rancher_cluster_resources_retrieve_field_item.py +82 -0
- waldur_api_client/models/managed_rancher_create_node_request.py +186 -0
- waldur_api_client/models/marketplace_course_accounts_count_state_item.py +10 -0
- waldur_api_client/models/marketplace_course_accounts_list_state_item.py +10 -0
- waldur_api_client/models/marketplace_customer_service_accounts_count_state_item.py +10 -0
- waldur_api_client/models/marketplace_customer_service_accounts_list_state_item.py +10 -0
- waldur_api_client/models/marketplace_offering_terms_of_service_count_o_item.py +13 -0
- waldur_api_client/models/marketplace_offering_terms_of_service_list_o_item.py +13 -0
- waldur_api_client/models/marketplace_orders_list_field_item.py +1 -1
- waldur_api_client/models/marketplace_orders_retrieve_field_item.py +1 -1
- waldur_api_client/models/marketplace_project_service_accounts_count_state_item.py +10 -0
- waldur_api_client/models/marketplace_project_service_accounts_list_state_item.py +10 -0
- waldur_api_client/models/marketplace_provider_offerings_list_customer_service_accounts_retrieve_field_item.py +0 -2
- waldur_api_client/models/marketplace_provider_offerings_list_field_item.py +0 -2
- waldur_api_client/models/marketplace_provider_offerings_list_project_service_accounts_retrieve_field_item.py +0 -2
- waldur_api_client/models/marketplace_provider_offerings_retrieve_field_item.py +0 -2
- waldur_api_client/models/marketplace_provider_offerings_stats_retrieve_field_item.py +0 -2
- waldur_api_client/models/marketplace_provider_offerings_user_has_resource_access_retrieve_field_item.py +0 -2
- waldur_api_client/models/marketplace_provider_resources_details_retrieve_field_item.py +1 -1
- waldur_api_client/models/marketplace_provider_resources_list_field_item.py +1 -1
- waldur_api_client/models/marketplace_provider_resources_retrieve_field_item.py +1 -1
- waldur_api_client/models/marketplace_public_offerings_list_field_item.py +0 -2
- waldur_api_client/models/marketplace_public_offerings_retrieve_field_item.py +0 -2
- waldur_api_client/models/marketplace_rancher_create_order_attributes.py +3 -0
- waldur_api_client/models/marketplace_resources_details_retrieve_field_item.py +1 -1
- waldur_api_client/models/marketplace_resources_list_field_item.py +1 -1
- waldur_api_client/models/marketplace_resources_retrieve_field_item.py +1 -1
- waldur_api_client/models/marketplace_service_providers_course_accounts_list_state_item.py +10 -0
- waldur_api_client/models/marketplace_service_providers_list_field_item.py +1 -0
- waldur_api_client/models/marketplace_service_providers_project_service_accounts_list_state_item.py +10 -0
- waldur_api_client/models/marketplace_service_providers_projects_list_field_item.py +1 -0
- waldur_api_client/models/marketplace_service_providers_retrieve_field_item.py +1 -0
- waldur_api_client/models/marketplace_user_offering_consents_count_o_item.py +15 -0
- waldur_api_client/models/marketplace_user_offering_consents_list_o_item.py +15 -0
- waldur_api_client/models/nested_security_group_rule.py +223 -0
- waldur_api_client/models/nested_security_group_rule_request.py +188 -0
- waldur_api_client/models/offering.py +0 -18
- waldur_api_client/models/offering_create.py +0 -18
- waldur_api_client/models/offering_create_request.py +0 -18
- waldur_api_client/models/offering_overview_update_request.py +0 -18
- waldur_api_client/models/offering_terms_of_service.py +142 -0
- waldur_api_client/models/offering_terms_of_service_create.py +107 -0
- waldur_api_client/models/offering_terms_of_service_create_request.py +107 -0
- waldur_api_client/models/offering_terms_of_service_request.py +96 -0
- waldur_api_client/models/open_stack_backup_restoration_request.py +0 -22
- waldur_api_client/models/open_stack_fixed_ip.py +13 -3
- waldur_api_client/models/open_stack_fixed_ip_request.py +7 -2
- waldur_api_client/models/open_stack_instance_create_order_attributes.py +23 -20
- waldur_api_client/models/open_stack_nested_security_group.py +53 -1
- waldur_api_client/models/open_stack_network.py +20 -0
- waldur_api_client/models/open_stack_port_ip_update_request.py +6 -2
- waldur_api_client/models/open_stack_security_group_rule_update_request.py +4 -4
- waldur_api_client/models/open_stack_static_route.py +13 -4
- waldur_api_client/models/open_stack_static_route_request.py +7 -3
- waldur_api_client/models/open_stack_sub_net.py +15 -2
- waldur_api_client/models/open_stack_sub_net_allocation_pool.py +27 -8
- waldur_api_client/models/open_stack_sub_net_allocation_pool_request.py +14 -5
- waldur_api_client/models/open_stack_sub_net_request.py +15 -2
- waldur_api_client/models/open_stack_tenant.py +38 -0
- waldur_api_client/models/open_stack_tenant_create_order_attributes.py +21 -0
- waldur_api_client/models/open_stack_volume_create_order_attributes.py +3 -0
- waldur_api_client/models/openstack_networks_list_field_item.py +1 -0
- waldur_api_client/models/openstack_networks_retrieve_field_item.py +1 -0
- waldur_api_client/models/openstack_tenants_list_field_item.py +3 -0
- waldur_api_client/models/openstack_tenants_retrieve_field_item.py +3 -0
- waldur_api_client/models/order_create.py +0 -8
- waldur_api_client/models/order_create_request.py +23 -7
- waldur_api_client/models/order_details.py +0 -9
- waldur_api_client/models/patched_customer_request.py +9 -0
- waldur_api_client/models/patched_issue_status_request.py +76 -0
- waldur_api_client/models/patched_offering_terms_of_service_request.py +96 -0
- waldur_api_client/models/patched_open_stack_sub_net_request.py +15 -2
- waldur_api_client/models/patched_project_request.py +17 -0
- waldur_api_client/models/patched_question_admin_request.py +17 -0
- waldur_api_client/models/patched_rancher_service_request.py +1 -1
- waldur_api_client/models/patched_user_offering_consent_request.py +59 -0
- waldur_api_client/models/permission_project.py +147 -0
- waldur_api_client/models/permission_request.py +16 -0
- waldur_api_client/models/project.py +17 -0
- waldur_api_client/models/project_answer.py +122 -0
- waldur_api_client/models/project_detail.py +133 -0
- waldur_api_client/models/project_details_response.py +115 -0
- waldur_api_client/models/project_permission_review.py +166 -0
- waldur_api_client/models/project_permissions_reviews_count_o_item.py +11 -0
- waldur_api_client/models/project_permissions_reviews_list_o_item.py +11 -0
- waldur_api_client/models/project_request.py +17 -0
- waldur_api_client/models/project_service_account.py +9 -0
- waldur_api_client/models/projects_list_field_item.py +1 -0
- waldur_api_client/models/projects_other_users_list_o.py +9 -0
- waldur_api_client/models/projects_retrieve_field_item.py +1 -0
- waldur_api_client/models/proposal.py +8 -0
- waldur_api_client/models/proposal_review.py +8 -0
- waldur_api_client/models/provider_offering_details.py +0 -18
- waldur_api_client/models/provider_offering_details_request.py +0 -18
- waldur_api_client/models/public_offering_details.py +0 -18
- waldur_api_client/models/question_admin.py +17 -0
- waldur_api_client/models/question_admin_request.py +17 -0
- waldur_api_client/models/question_answer.py +176 -0
- waldur_api_client/models/question_answer_project_answers_item.py +44 -0
- waldur_api_client/models/question_answer_question_options_item.py +44 -0
- waldur_api_client/models/rancher_nested_public_ip.py +25 -7
- waldur_api_client/models/rancher_service.py +1 -1
- waldur_api_client/models/rancher_service_request.py +1 -1
- waldur_api_client/models/remote_resource_order.py +88 -0
- waldur_api_client/models/remote_resource_order_remote_state_enum.py +15 -0
- waldur_api_client/models/remote_resource_sync_status.py +123 -0
- waldur_api_client/models/{robot_account_states.py → remote_resource_sync_status_remote_state_enum.py} +1 -1
- waldur_api_client/models/remote_resource_team_member.py +85 -0
- waldur_api_client/models/resource.py +10 -9
- waldur_api_client/models/rmq_connection.py +8 -3
- waldur_api_client/models/rmq_subscription.py +7 -3
- waldur_api_client/models/robot_account.py +9 -17
- waldur_api_client/models/robot_account_details.py +9 -17
- waldur_api_client/models/service_account_state.py +10 -0
- waldur_api_client/models/service_provider.py +9 -0
- waldur_api_client/models/slurm_invoices_slurm_package_create_order_attributes.py +3 -0
- waldur_api_client/models/submit_request_response.py +75 -0
- waldur_api_client/models/sync_status_enum.py +10 -0
- waldur_api_client/models/user_offering_consent.py +202 -0
- waldur_api_client/models/user_offering_consent_create.py +60 -0
- waldur_api_client/models/user_offering_consent_create_request.py +60 -0
- waldur_api_client/models/user_offering_consent_request.py +59 -0
- waldur_api_client/models/v_mware_virtual_machine_create_order_attributes.py +3 -0
- waldur_api_client/models/visible_invitation_details.py +9 -0
- {waldur_api_client-7.7.6.dist-info → waldur_api_client-7.7.8.dist-info}/METADATA +1 -1
- {waldur_api_client-7.7.6.dist-info → waldur_api_client-7.7.8.dist-info}/RECORD +261 -145
- {waldur_api_client-7.7.6.dist-info → waldur_api_client-7.7.8.dist-info}/LICENSE +0 -0
- {waldur_api_client-7.7.6.dist-info → waldur_api_client-7.7.8.dist-info}/WHEEL +0 -0
|
@@ -22,6 +22,7 @@ class PatchedCustomerRequest:
|
|
|
22
22
|
name (Union[Unset, str]):
|
|
23
23
|
native_name (Union[Unset, str]):
|
|
24
24
|
abbreviation (Union[Unset, str]):
|
|
25
|
+
description (Union[Unset, str]):
|
|
25
26
|
contact_details (Union[Unset, str]):
|
|
26
27
|
email (Union[Unset, str]):
|
|
27
28
|
phone_number (Union[Unset, str]):
|
|
@@ -42,6 +43,7 @@ class PatchedCustomerRequest:
|
|
|
42
43
|
name: Union[Unset, str] = UNSET
|
|
43
44
|
native_name: Union[Unset, str] = UNSET
|
|
44
45
|
abbreviation: Union[Unset, str] = UNSET
|
|
46
|
+
description: Union[Unset, str] = UNSET
|
|
45
47
|
contact_details: Union[Unset, str] = UNSET
|
|
46
48
|
email: Union[Unset, str] = UNSET
|
|
47
49
|
phone_number: Union[Unset, str] = UNSET
|
|
@@ -75,6 +77,8 @@ class PatchedCustomerRequest:
|
|
|
75
77
|
|
|
76
78
|
abbreviation = self.abbreviation
|
|
77
79
|
|
|
80
|
+
description = self.description
|
|
81
|
+
|
|
78
82
|
contact_details = self.contact_details
|
|
79
83
|
|
|
80
84
|
email = self.email
|
|
@@ -128,6 +132,8 @@ class PatchedCustomerRequest:
|
|
|
128
132
|
field_dict["native_name"] = native_name
|
|
129
133
|
if abbreviation is not UNSET:
|
|
130
134
|
field_dict["abbreviation"] = abbreviation
|
|
135
|
+
if description is not UNSET:
|
|
136
|
+
field_dict["description"] = description
|
|
131
137
|
if contact_details is not UNSET:
|
|
132
138
|
field_dict["contact_details"] = contact_details
|
|
133
139
|
if email is not UNSET:
|
|
@@ -185,6 +191,8 @@ class PatchedCustomerRequest:
|
|
|
185
191
|
|
|
186
192
|
abbreviation = d.pop("abbreviation", UNSET)
|
|
187
193
|
|
|
194
|
+
description = d.pop("description", UNSET)
|
|
195
|
+
|
|
188
196
|
contact_details = d.pop("contact_details", UNSET)
|
|
189
197
|
|
|
190
198
|
email = d.pop("email", UNSET)
|
|
@@ -248,6 +256,7 @@ class PatchedCustomerRequest:
|
|
|
248
256
|
name=name,
|
|
249
257
|
native_name=native_name,
|
|
250
258
|
abbreviation=abbreviation,
|
|
259
|
+
description=description,
|
|
251
260
|
contact_details=contact_details,
|
|
252
261
|
email=email,
|
|
253
262
|
phone_number=phone_number,
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
from collections.abc import Mapping
|
|
2
|
+
from typing import Any, TypeVar, Union
|
|
3
|
+
|
|
4
|
+
from attrs import define as _attrs_define
|
|
5
|
+
from attrs import field as _attrs_field
|
|
6
|
+
|
|
7
|
+
from ..models.issue_status_type_enum import IssueStatusTypeEnum
|
|
8
|
+
from ..types import UNSET, Unset
|
|
9
|
+
|
|
10
|
+
T = TypeVar("T", bound="PatchedIssueStatusRequest")
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
@_attrs_define
|
|
14
|
+
class PatchedIssueStatusRequest:
|
|
15
|
+
"""
|
|
16
|
+
Attributes:
|
|
17
|
+
name (Union[Unset, str]): Status name in Jira.
|
|
18
|
+
type_ (Union[Unset, IssueStatusTypeEnum]):
|
|
19
|
+
"""
|
|
20
|
+
|
|
21
|
+
name: Union[Unset, str] = UNSET
|
|
22
|
+
type_: Union[Unset, IssueStatusTypeEnum] = UNSET
|
|
23
|
+
additional_properties: dict[str, Any] = _attrs_field(init=False, factory=dict)
|
|
24
|
+
|
|
25
|
+
def to_dict(self) -> dict[str, Any]:
|
|
26
|
+
name = self.name
|
|
27
|
+
|
|
28
|
+
type_: Union[Unset, int] = UNSET
|
|
29
|
+
if not isinstance(self.type_, Unset):
|
|
30
|
+
type_ = self.type_.value
|
|
31
|
+
|
|
32
|
+
field_dict: dict[str, Any] = {}
|
|
33
|
+
field_dict.update(self.additional_properties)
|
|
34
|
+
field_dict.update({})
|
|
35
|
+
if name is not UNSET:
|
|
36
|
+
field_dict["name"] = name
|
|
37
|
+
if type_ is not UNSET:
|
|
38
|
+
field_dict["type"] = type_
|
|
39
|
+
|
|
40
|
+
return field_dict
|
|
41
|
+
|
|
42
|
+
@classmethod
|
|
43
|
+
def from_dict(cls: type[T], src_dict: Mapping[str, Any]) -> T:
|
|
44
|
+
d = dict(src_dict)
|
|
45
|
+
name = d.pop("name", UNSET)
|
|
46
|
+
|
|
47
|
+
_type_ = d.pop("type", UNSET)
|
|
48
|
+
type_: Union[Unset, IssueStatusTypeEnum]
|
|
49
|
+
if isinstance(_type_, Unset):
|
|
50
|
+
type_ = UNSET
|
|
51
|
+
else:
|
|
52
|
+
type_ = IssueStatusTypeEnum(_type_)
|
|
53
|
+
|
|
54
|
+
patched_issue_status_request = cls(
|
|
55
|
+
name=name,
|
|
56
|
+
type_=type_,
|
|
57
|
+
)
|
|
58
|
+
|
|
59
|
+
patched_issue_status_request.additional_properties = d
|
|
60
|
+
return patched_issue_status_request
|
|
61
|
+
|
|
62
|
+
@property
|
|
63
|
+
def additional_keys(self) -> list[str]:
|
|
64
|
+
return list(self.additional_properties.keys())
|
|
65
|
+
|
|
66
|
+
def __getitem__(self, key: str) -> Any:
|
|
67
|
+
return self.additional_properties[key]
|
|
68
|
+
|
|
69
|
+
def __setitem__(self, key: str, value: Any) -> None:
|
|
70
|
+
self.additional_properties[key] = value
|
|
71
|
+
|
|
72
|
+
def __delitem__(self, key: str) -> None:
|
|
73
|
+
del self.additional_properties[key]
|
|
74
|
+
|
|
75
|
+
def __contains__(self, key: str) -> bool:
|
|
76
|
+
return key in self.additional_properties
|
|
@@ -0,0 +1,96 @@
|
|
|
1
|
+
from collections.abc import Mapping
|
|
2
|
+
from typing import 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
|
+
T = TypeVar("T", bound="PatchedOfferingTermsOfServiceRequest")
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
@_attrs_define
|
|
13
|
+
class PatchedOfferingTermsOfServiceRequest:
|
|
14
|
+
"""
|
|
15
|
+
Attributes:
|
|
16
|
+
terms_of_service (Union[Unset, str]):
|
|
17
|
+
terms_of_service_link (Union[Unset, str]):
|
|
18
|
+
version (Union[Unset, str]):
|
|
19
|
+
is_active (Union[Unset, bool]):
|
|
20
|
+
requires_reconsent (Union[Unset, bool]): If True, user will be asked to re-consent to the terms of service when
|
|
21
|
+
the terms of service are updated.
|
|
22
|
+
"""
|
|
23
|
+
|
|
24
|
+
terms_of_service: Union[Unset, str] = UNSET
|
|
25
|
+
terms_of_service_link: Union[Unset, str] = UNSET
|
|
26
|
+
version: Union[Unset, str] = UNSET
|
|
27
|
+
is_active: Union[Unset, bool] = UNSET
|
|
28
|
+
requires_reconsent: Union[Unset, bool] = UNSET
|
|
29
|
+
additional_properties: dict[str, Any] = _attrs_field(init=False, factory=dict)
|
|
30
|
+
|
|
31
|
+
def to_dict(self) -> dict[str, Any]:
|
|
32
|
+
terms_of_service = self.terms_of_service
|
|
33
|
+
|
|
34
|
+
terms_of_service_link = self.terms_of_service_link
|
|
35
|
+
|
|
36
|
+
version = self.version
|
|
37
|
+
|
|
38
|
+
is_active = self.is_active
|
|
39
|
+
|
|
40
|
+
requires_reconsent = self.requires_reconsent
|
|
41
|
+
|
|
42
|
+
field_dict: dict[str, Any] = {}
|
|
43
|
+
field_dict.update(self.additional_properties)
|
|
44
|
+
field_dict.update({})
|
|
45
|
+
if terms_of_service is not UNSET:
|
|
46
|
+
field_dict["terms_of_service"] = terms_of_service
|
|
47
|
+
if terms_of_service_link is not UNSET:
|
|
48
|
+
field_dict["terms_of_service_link"] = terms_of_service_link
|
|
49
|
+
if version is not UNSET:
|
|
50
|
+
field_dict["version"] = version
|
|
51
|
+
if is_active is not UNSET:
|
|
52
|
+
field_dict["is_active"] = is_active
|
|
53
|
+
if requires_reconsent is not UNSET:
|
|
54
|
+
field_dict["requires_reconsent"] = requires_reconsent
|
|
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
|
+
terms_of_service = d.pop("terms_of_service", UNSET)
|
|
62
|
+
|
|
63
|
+
terms_of_service_link = d.pop("terms_of_service_link", UNSET)
|
|
64
|
+
|
|
65
|
+
version = d.pop("version", UNSET)
|
|
66
|
+
|
|
67
|
+
is_active = d.pop("is_active", UNSET)
|
|
68
|
+
|
|
69
|
+
requires_reconsent = d.pop("requires_reconsent", UNSET)
|
|
70
|
+
|
|
71
|
+
patched_offering_terms_of_service_request = cls(
|
|
72
|
+
terms_of_service=terms_of_service,
|
|
73
|
+
terms_of_service_link=terms_of_service_link,
|
|
74
|
+
version=version,
|
|
75
|
+
is_active=is_active,
|
|
76
|
+
requires_reconsent=requires_reconsent,
|
|
77
|
+
)
|
|
78
|
+
|
|
79
|
+
patched_offering_terms_of_service_request.additional_properties = d
|
|
80
|
+
return patched_offering_terms_of_service_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
|
|
@@ -62,7 +62,11 @@ class PatchedOpenStackSubNetRequest:
|
|
|
62
62
|
|
|
63
63
|
dns_nameservers: Union[Unset, list[str]] = UNSET
|
|
64
64
|
if not isinstance(self.dns_nameservers, Unset):
|
|
65
|
-
dns_nameservers =
|
|
65
|
+
dns_nameservers = []
|
|
66
|
+
for dns_nameservers_item_data in self.dns_nameservers:
|
|
67
|
+
dns_nameservers_item: str
|
|
68
|
+
dns_nameservers_item = dns_nameservers_item_data
|
|
69
|
+
dns_nameservers.append(dns_nameservers_item)
|
|
66
70
|
|
|
67
71
|
host_routes: Union[Unset, list[dict[str, Any]]] = UNSET
|
|
68
72
|
if not isinstance(self.host_routes, Unset):
|
|
@@ -123,7 +127,16 @@ class PatchedOpenStackSubNetRequest:
|
|
|
123
127
|
|
|
124
128
|
allocation_pools.append(allocation_pools_item)
|
|
125
129
|
|
|
126
|
-
dns_nameservers =
|
|
130
|
+
dns_nameservers = []
|
|
131
|
+
_dns_nameservers = d.pop("dns_nameservers", UNSET)
|
|
132
|
+
for dns_nameservers_item_data in _dns_nameservers or []:
|
|
133
|
+
|
|
134
|
+
def _parse_dns_nameservers_item(data: object) -> str:
|
|
135
|
+
return cast(str, data)
|
|
136
|
+
|
|
137
|
+
dns_nameservers_item = _parse_dns_nameservers_item(dns_nameservers_item_data)
|
|
138
|
+
|
|
139
|
+
dns_nameservers.append(dns_nameservers_item)
|
|
127
140
|
|
|
128
141
|
host_routes = []
|
|
129
142
|
_host_routes = d.pop("host_routes", UNSET)
|
|
@@ -9,6 +9,7 @@ from dateutil.parser import isoparse
|
|
|
9
9
|
|
|
10
10
|
from .. import types
|
|
11
11
|
from ..models.blank_enum import BlankEnum
|
|
12
|
+
from ..models.kind_enum import KindEnum
|
|
12
13
|
from ..models.oecd_fos_2007_code_enum import OecdFos2007CodeEnum
|
|
13
14
|
from ..types import UNSET, File, Unset
|
|
14
15
|
|
|
@@ -30,6 +31,7 @@ class PatchedProjectRequest:
|
|
|
30
31
|
oecd_fos_2007_code (Union[BlankEnum, None, OecdFos2007CodeEnum, Unset]):
|
|
31
32
|
is_industry (Union[Unset, bool]):
|
|
32
33
|
image (Union[File, None, Unset]):
|
|
34
|
+
kind (Union[Unset, KindEnum]):
|
|
33
35
|
"""
|
|
34
36
|
|
|
35
37
|
name: Union[Unset, str] = UNSET
|
|
@@ -42,6 +44,7 @@ class PatchedProjectRequest:
|
|
|
42
44
|
oecd_fos_2007_code: Union[BlankEnum, None, OecdFos2007CodeEnum, Unset] = UNSET
|
|
43
45
|
is_industry: Union[Unset, bool] = UNSET
|
|
44
46
|
image: Union[File, None, Unset] = UNSET
|
|
47
|
+
kind: Union[Unset, KindEnum] = UNSET
|
|
45
48
|
additional_properties: dict[str, Any] = _attrs_field(init=False, factory=dict)
|
|
46
49
|
|
|
47
50
|
def to_dict(self) -> dict[str, Any]:
|
|
@@ -96,6 +99,10 @@ class PatchedProjectRequest:
|
|
|
96
99
|
else:
|
|
97
100
|
image = self.image
|
|
98
101
|
|
|
102
|
+
kind: Union[Unset, str] = UNSET
|
|
103
|
+
if not isinstance(self.kind, Unset):
|
|
104
|
+
kind = self.kind.value
|
|
105
|
+
|
|
99
106
|
field_dict: dict[str, Any] = {}
|
|
100
107
|
field_dict.update(self.additional_properties)
|
|
101
108
|
field_dict.update({})
|
|
@@ -119,6 +126,8 @@ class PatchedProjectRequest:
|
|
|
119
126
|
field_dict["is_industry"] = is_industry
|
|
120
127
|
if image is not UNSET:
|
|
121
128
|
field_dict["image"] = image
|
|
129
|
+
if kind is not UNSET:
|
|
130
|
+
field_dict["kind"] = kind
|
|
122
131
|
|
|
123
132
|
return field_dict
|
|
124
133
|
|
|
@@ -220,6 +229,13 @@ class PatchedProjectRequest:
|
|
|
220
229
|
|
|
221
230
|
image = _parse_image(d.pop("image", UNSET))
|
|
222
231
|
|
|
232
|
+
_kind = d.pop("kind", UNSET)
|
|
233
|
+
kind: Union[Unset, KindEnum]
|
|
234
|
+
if isinstance(_kind, Unset):
|
|
235
|
+
kind = UNSET
|
|
236
|
+
else:
|
|
237
|
+
kind = KindEnum(_kind)
|
|
238
|
+
|
|
223
239
|
patched_project_request = cls(
|
|
224
240
|
name=name,
|
|
225
241
|
customer=customer,
|
|
@@ -231,6 +247,7 @@ class PatchedProjectRequest:
|
|
|
231
247
|
oecd_fos_2007_code=oecd_fos_2007_code,
|
|
232
248
|
is_industry=is_industry,
|
|
233
249
|
image=image,
|
|
250
|
+
kind=kind,
|
|
234
251
|
)
|
|
235
252
|
|
|
236
253
|
patched_project_request.additional_properties = d
|
|
@@ -6,6 +6,7 @@ from attrs import field as _attrs_field
|
|
|
6
6
|
|
|
7
7
|
from ..models.blank_enum import BlankEnum
|
|
8
8
|
from ..models.checklist_operators import ChecklistOperators
|
|
9
|
+
from ..models.dependency_logic_operator_enum import DependencyLogicOperatorEnum
|
|
9
10
|
from ..models.question_type_enum import QuestionTypeEnum
|
|
10
11
|
from ..types import UNSET, Unset
|
|
11
12
|
|
|
@@ -32,6 +33,7 @@ class PatchedQuestionAdminRequest:
|
|
|
32
33
|
is conditional on answer matching guidance_answer_value with guidance_operator
|
|
33
34
|
min_value (Union[None, Unset, str]): Minimum value allowed for NUMBER type questions
|
|
34
35
|
max_value (Union[None, Unset, str]): Maximum value allowed for NUMBER type questions
|
|
36
|
+
dependency_logic_operator (Union[Unset, DependencyLogicOperatorEnum]):
|
|
35
37
|
"""
|
|
36
38
|
|
|
37
39
|
description: Union[Unset, str] = UNSET
|
|
@@ -48,6 +50,7 @@ class PatchedQuestionAdminRequest:
|
|
|
48
50
|
always_show_guidance: Union[Unset, bool] = UNSET
|
|
49
51
|
min_value: Union[None, Unset, str] = UNSET
|
|
50
52
|
max_value: Union[None, Unset, str] = UNSET
|
|
53
|
+
dependency_logic_operator: Union[Unset, DependencyLogicOperatorEnum] = UNSET
|
|
51
54
|
additional_properties: dict[str, Any] = _attrs_field(init=False, factory=dict)
|
|
52
55
|
|
|
53
56
|
def to_dict(self) -> dict[str, Any]:
|
|
@@ -101,6 +104,10 @@ class PatchedQuestionAdminRequest:
|
|
|
101
104
|
else:
|
|
102
105
|
max_value = self.max_value
|
|
103
106
|
|
|
107
|
+
dependency_logic_operator: Union[Unset, str] = UNSET
|
|
108
|
+
if not isinstance(self.dependency_logic_operator, Unset):
|
|
109
|
+
dependency_logic_operator = self.dependency_logic_operator.value
|
|
110
|
+
|
|
104
111
|
field_dict: dict[str, Any] = {}
|
|
105
112
|
field_dict.update(self.additional_properties)
|
|
106
113
|
field_dict.update({})
|
|
@@ -132,6 +139,8 @@ class PatchedQuestionAdminRequest:
|
|
|
132
139
|
field_dict["min_value"] = min_value
|
|
133
140
|
if max_value is not UNSET:
|
|
134
141
|
field_dict["max_value"] = max_value
|
|
142
|
+
if dependency_logic_operator is not UNSET:
|
|
143
|
+
field_dict["dependency_logic_operator"] = dependency_logic_operator
|
|
135
144
|
|
|
136
145
|
return field_dict
|
|
137
146
|
|
|
@@ -219,6 +228,13 @@ class PatchedQuestionAdminRequest:
|
|
|
219
228
|
|
|
220
229
|
max_value = _parse_max_value(d.pop("max_value", UNSET))
|
|
221
230
|
|
|
231
|
+
_dependency_logic_operator = d.pop("dependency_logic_operator", UNSET)
|
|
232
|
+
dependency_logic_operator: Union[Unset, DependencyLogicOperatorEnum]
|
|
233
|
+
if isinstance(_dependency_logic_operator, Unset):
|
|
234
|
+
dependency_logic_operator = UNSET
|
|
235
|
+
else:
|
|
236
|
+
dependency_logic_operator = DependencyLogicOperatorEnum(_dependency_logic_operator)
|
|
237
|
+
|
|
222
238
|
patched_question_admin_request = cls(
|
|
223
239
|
description=description,
|
|
224
240
|
user_guidance=user_guidance,
|
|
@@ -234,6 +250,7 @@ class PatchedQuestionAdminRequest:
|
|
|
234
250
|
always_show_guidance=always_show_guidance,
|
|
235
251
|
min_value=min_value,
|
|
236
252
|
max_value=max_value,
|
|
253
|
+
dependency_logic_operator=dependency_logic_operator,
|
|
237
254
|
)
|
|
238
255
|
|
|
239
256
|
patched_question_admin_request.additional_properties = d
|
|
@@ -26,7 +26,7 @@ class PatchedRancherServiceRequest:
|
|
|
26
26
|
backend_id (Union[Unset, str]):
|
|
27
27
|
runtime_state (Union[Unset, str]):
|
|
28
28
|
namespace (Union[Unset, str]):
|
|
29
|
-
cluster_ip (Union[None, Unset, str]):
|
|
29
|
+
cluster_ip (Union[None, Unset, str]): An IPv4 or IPv6 address.
|
|
30
30
|
selector (Union[Unset, Any]):
|
|
31
31
|
target_workloads (Union[Unset, list['RancherNestedWorkloadRequest']]):
|
|
32
32
|
"""
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
from collections.abc import Mapping
|
|
2
|
+
from typing import 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
|
+
T = TypeVar("T", bound="PatchedUserOfferingConsentRequest")
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
@_attrs_define
|
|
13
|
+
class PatchedUserOfferingConsentRequest:
|
|
14
|
+
"""
|
|
15
|
+
Attributes:
|
|
16
|
+
version (Union[Unset, str]):
|
|
17
|
+
"""
|
|
18
|
+
|
|
19
|
+
version: Union[Unset, str] = UNSET
|
|
20
|
+
additional_properties: dict[str, Any] = _attrs_field(init=False, factory=dict)
|
|
21
|
+
|
|
22
|
+
def to_dict(self) -> dict[str, Any]:
|
|
23
|
+
version = self.version
|
|
24
|
+
|
|
25
|
+
field_dict: dict[str, Any] = {}
|
|
26
|
+
field_dict.update(self.additional_properties)
|
|
27
|
+
field_dict.update({})
|
|
28
|
+
if version is not UNSET:
|
|
29
|
+
field_dict["version"] = version
|
|
30
|
+
|
|
31
|
+
return field_dict
|
|
32
|
+
|
|
33
|
+
@classmethod
|
|
34
|
+
def from_dict(cls: type[T], src_dict: Mapping[str, Any]) -> T:
|
|
35
|
+
d = dict(src_dict)
|
|
36
|
+
version = d.pop("version", UNSET)
|
|
37
|
+
|
|
38
|
+
patched_user_offering_consent_request = cls(
|
|
39
|
+
version=version,
|
|
40
|
+
)
|
|
41
|
+
|
|
42
|
+
patched_user_offering_consent_request.additional_properties = d
|
|
43
|
+
return patched_user_offering_consent_request
|
|
44
|
+
|
|
45
|
+
@property
|
|
46
|
+
def additional_keys(self) -> list[str]:
|
|
47
|
+
return list(self.additional_properties.keys())
|
|
48
|
+
|
|
49
|
+
def __getitem__(self, key: str) -> Any:
|
|
50
|
+
return self.additional_properties[key]
|
|
51
|
+
|
|
52
|
+
def __setitem__(self, key: str, value: Any) -> None:
|
|
53
|
+
self.additional_properties[key] = value
|
|
54
|
+
|
|
55
|
+
def __delitem__(self, key: str) -> None:
|
|
56
|
+
del self.additional_properties[key]
|
|
57
|
+
|
|
58
|
+
def __contains__(self, key: str) -> bool:
|
|
59
|
+
return key in self.additional_properties
|
|
@@ -0,0 +1,147 @@
|
|
|
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 ..types import UNSET, Unset
|
|
11
|
+
|
|
12
|
+
T = TypeVar("T", bound="PermissionProject")
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
@_attrs_define
|
|
16
|
+
class PermissionProject:
|
|
17
|
+
"""
|
|
18
|
+
Attributes:
|
|
19
|
+
url (Union[Unset, str]):
|
|
20
|
+
uuid (Union[Unset, UUID]):
|
|
21
|
+
name (Union[Unset, str]):
|
|
22
|
+
image (Union[None, Unset, str]):
|
|
23
|
+
resource_count (Union[Unset, int]):
|
|
24
|
+
end_date (Union[None, Unset, datetime.date]): The date is inclusive. Once reached, all project resource will be
|
|
25
|
+
scheduled for termination.
|
|
26
|
+
"""
|
|
27
|
+
|
|
28
|
+
url: Union[Unset, str] = UNSET
|
|
29
|
+
uuid: Union[Unset, UUID] = UNSET
|
|
30
|
+
name: Union[Unset, str] = UNSET
|
|
31
|
+
image: Union[None, Unset, str] = UNSET
|
|
32
|
+
resource_count: Union[Unset, int] = UNSET
|
|
33
|
+
end_date: Union[None, Unset, datetime.date] = UNSET
|
|
34
|
+
additional_properties: dict[str, Any] = _attrs_field(init=False, factory=dict)
|
|
35
|
+
|
|
36
|
+
def to_dict(self) -> dict[str, Any]:
|
|
37
|
+
url = self.url
|
|
38
|
+
|
|
39
|
+
uuid: Union[Unset, str] = UNSET
|
|
40
|
+
if not isinstance(self.uuid, Unset):
|
|
41
|
+
uuid = str(self.uuid)
|
|
42
|
+
|
|
43
|
+
name = self.name
|
|
44
|
+
|
|
45
|
+
image: Union[None, Unset, str]
|
|
46
|
+
if isinstance(self.image, Unset):
|
|
47
|
+
image = UNSET
|
|
48
|
+
else:
|
|
49
|
+
image = self.image
|
|
50
|
+
|
|
51
|
+
resource_count = self.resource_count
|
|
52
|
+
|
|
53
|
+
end_date: Union[None, Unset, str]
|
|
54
|
+
if isinstance(self.end_date, Unset):
|
|
55
|
+
end_date = UNSET
|
|
56
|
+
elif isinstance(self.end_date, datetime.date):
|
|
57
|
+
end_date = self.end_date.isoformat()
|
|
58
|
+
else:
|
|
59
|
+
end_date = self.end_date
|
|
60
|
+
|
|
61
|
+
field_dict: dict[str, Any] = {}
|
|
62
|
+
field_dict.update(self.additional_properties)
|
|
63
|
+
field_dict.update({})
|
|
64
|
+
if url is not UNSET:
|
|
65
|
+
field_dict["url"] = url
|
|
66
|
+
if uuid is not UNSET:
|
|
67
|
+
field_dict["uuid"] = uuid
|
|
68
|
+
if name is not UNSET:
|
|
69
|
+
field_dict["name"] = name
|
|
70
|
+
if image is not UNSET:
|
|
71
|
+
field_dict["image"] = image
|
|
72
|
+
if resource_count is not UNSET:
|
|
73
|
+
field_dict["resource_count"] = resource_count
|
|
74
|
+
if end_date is not UNSET:
|
|
75
|
+
field_dict["end_date"] = end_date
|
|
76
|
+
|
|
77
|
+
return field_dict
|
|
78
|
+
|
|
79
|
+
@classmethod
|
|
80
|
+
def from_dict(cls: type[T], src_dict: Mapping[str, Any]) -> T:
|
|
81
|
+
d = dict(src_dict)
|
|
82
|
+
url = d.pop("url", UNSET)
|
|
83
|
+
|
|
84
|
+
_uuid = d.pop("uuid", UNSET)
|
|
85
|
+
uuid: Union[Unset, UUID]
|
|
86
|
+
if isinstance(_uuid, Unset):
|
|
87
|
+
uuid = UNSET
|
|
88
|
+
else:
|
|
89
|
+
uuid = UUID(_uuid)
|
|
90
|
+
|
|
91
|
+
name = d.pop("name", UNSET)
|
|
92
|
+
|
|
93
|
+
def _parse_image(data: object) -> Union[None, Unset, str]:
|
|
94
|
+
if data is None:
|
|
95
|
+
return data
|
|
96
|
+
if isinstance(data, Unset):
|
|
97
|
+
return data
|
|
98
|
+
return cast(Union[None, Unset, str], data)
|
|
99
|
+
|
|
100
|
+
image = _parse_image(d.pop("image", UNSET))
|
|
101
|
+
|
|
102
|
+
resource_count = d.pop("resource_count", UNSET)
|
|
103
|
+
|
|
104
|
+
def _parse_end_date(data: object) -> Union[None, Unset, datetime.date]:
|
|
105
|
+
if data is None:
|
|
106
|
+
return data
|
|
107
|
+
if isinstance(data, Unset):
|
|
108
|
+
return data
|
|
109
|
+
try:
|
|
110
|
+
if not isinstance(data, str):
|
|
111
|
+
raise TypeError()
|
|
112
|
+
end_date_type_0 = isoparse(data).date()
|
|
113
|
+
|
|
114
|
+
return end_date_type_0
|
|
115
|
+
except: # noqa: E722
|
|
116
|
+
pass
|
|
117
|
+
return cast(Union[None, Unset, datetime.date], data)
|
|
118
|
+
|
|
119
|
+
end_date = _parse_end_date(d.pop("end_date", UNSET))
|
|
120
|
+
|
|
121
|
+
permission_project = cls(
|
|
122
|
+
url=url,
|
|
123
|
+
uuid=uuid,
|
|
124
|
+
name=name,
|
|
125
|
+
image=image,
|
|
126
|
+
resource_count=resource_count,
|
|
127
|
+
end_date=end_date,
|
|
128
|
+
)
|
|
129
|
+
|
|
130
|
+
permission_project.additional_properties = d
|
|
131
|
+
return permission_project
|
|
132
|
+
|
|
133
|
+
@property
|
|
134
|
+
def additional_keys(self) -> list[str]:
|
|
135
|
+
return list(self.additional_properties.keys())
|
|
136
|
+
|
|
137
|
+
def __getitem__(self, key: str) -> Any:
|
|
138
|
+
return self.additional_properties[key]
|
|
139
|
+
|
|
140
|
+
def __setitem__(self, key: str, value: Any) -> None:
|
|
141
|
+
self.additional_properties[key] = value
|
|
142
|
+
|
|
143
|
+
def __delitem__(self, key: str) -> None:
|
|
144
|
+
del self.additional_properties[key]
|
|
145
|
+
|
|
146
|
+
def __contains__(self, key: str) -> bool:
|
|
147
|
+
return key in self.additional_properties
|
|
@@ -23,6 +23,7 @@ class PermissionRequest:
|
|
|
23
23
|
created (datetime.datetime):
|
|
24
24
|
created_by_full_name (str):
|
|
25
25
|
created_by_username (str):
|
|
26
|
+
created_by_email (str):
|
|
26
27
|
reviewed_by_full_name (str):
|
|
27
28
|
reviewed_by_username (str):
|
|
28
29
|
reviewed_at (Union[None, datetime.datetime]): Timestamp when the review was completed
|
|
@@ -32,6 +33,7 @@ class PermissionRequest:
|
|
|
32
33
|
customer_name (str):
|
|
33
34
|
role_name (str):
|
|
34
35
|
role_description (str):
|
|
36
|
+
project_name_template (str):
|
|
35
37
|
review_comment (Union[None, Unset, str]): Optional comment provided during review
|
|
36
38
|
"""
|
|
37
39
|
|
|
@@ -42,6 +44,7 @@ class PermissionRequest:
|
|
|
42
44
|
created: datetime.datetime
|
|
43
45
|
created_by_full_name: str
|
|
44
46
|
created_by_username: str
|
|
47
|
+
created_by_email: str
|
|
45
48
|
reviewed_by_full_name: str
|
|
46
49
|
reviewed_by_username: str
|
|
47
50
|
reviewed_at: Union[None, datetime.datetime]
|
|
@@ -51,6 +54,7 @@ class PermissionRequest:
|
|
|
51
54
|
customer_name: str
|
|
52
55
|
role_name: str
|
|
53
56
|
role_description: str
|
|
57
|
+
project_name_template: str
|
|
54
58
|
review_comment: Union[None, Unset, str] = UNSET
|
|
55
59
|
additional_properties: dict[str, Any] = _attrs_field(init=False, factory=dict)
|
|
56
60
|
|
|
@@ -69,6 +73,8 @@ class PermissionRequest:
|
|
|
69
73
|
|
|
70
74
|
created_by_username = self.created_by_username
|
|
71
75
|
|
|
76
|
+
created_by_email = self.created_by_email
|
|
77
|
+
|
|
72
78
|
reviewed_by_full_name = self.reviewed_by_full_name
|
|
73
79
|
|
|
74
80
|
reviewed_by_username = self.reviewed_by_username
|
|
@@ -91,6 +97,8 @@ class PermissionRequest:
|
|
|
91
97
|
|
|
92
98
|
role_description = self.role_description
|
|
93
99
|
|
|
100
|
+
project_name_template = self.project_name_template
|
|
101
|
+
|
|
94
102
|
review_comment: Union[None, Unset, str]
|
|
95
103
|
if isinstance(self.review_comment, Unset):
|
|
96
104
|
review_comment = UNSET
|
|
@@ -108,6 +116,7 @@ class PermissionRequest:
|
|
|
108
116
|
"created": created,
|
|
109
117
|
"created_by_full_name": created_by_full_name,
|
|
110
118
|
"created_by_username": created_by_username,
|
|
119
|
+
"created_by_email": created_by_email,
|
|
111
120
|
"reviewed_by_full_name": reviewed_by_full_name,
|
|
112
121
|
"reviewed_by_username": reviewed_by_username,
|
|
113
122
|
"reviewed_at": reviewed_at,
|
|
@@ -117,6 +126,7 @@ class PermissionRequest:
|
|
|
117
126
|
"customer_name": customer_name,
|
|
118
127
|
"role_name": role_name,
|
|
119
128
|
"role_description": role_description,
|
|
129
|
+
"project_name_template": project_name_template,
|
|
120
130
|
}
|
|
121
131
|
)
|
|
122
132
|
if review_comment is not UNSET:
|
|
@@ -141,6 +151,8 @@ class PermissionRequest:
|
|
|
141
151
|
|
|
142
152
|
created_by_username = d.pop("created_by_username")
|
|
143
153
|
|
|
154
|
+
created_by_email = d.pop("created_by_email")
|
|
155
|
+
|
|
144
156
|
reviewed_by_full_name = d.pop("reviewed_by_full_name")
|
|
145
157
|
|
|
146
158
|
reviewed_by_username = d.pop("reviewed_by_username")
|
|
@@ -172,6 +184,8 @@ class PermissionRequest:
|
|
|
172
184
|
|
|
173
185
|
role_description = d.pop("role_description")
|
|
174
186
|
|
|
187
|
+
project_name_template = d.pop("project_name_template")
|
|
188
|
+
|
|
175
189
|
def _parse_review_comment(data: object) -> Union[None, Unset, str]:
|
|
176
190
|
if data is None:
|
|
177
191
|
return data
|
|
@@ -189,6 +203,7 @@ class PermissionRequest:
|
|
|
189
203
|
created=created,
|
|
190
204
|
created_by_full_name=created_by_full_name,
|
|
191
205
|
created_by_username=created_by_username,
|
|
206
|
+
created_by_email=created_by_email,
|
|
192
207
|
reviewed_by_full_name=reviewed_by_full_name,
|
|
193
208
|
reviewed_by_username=reviewed_by_username,
|
|
194
209
|
reviewed_at=reviewed_at,
|
|
@@ -198,6 +213,7 @@ class PermissionRequest:
|
|
|
198
213
|
customer_name=customer_name,
|
|
199
214
|
role_name=role_name,
|
|
200
215
|
role_description=role_description,
|
|
216
|
+
project_name_template=project_name_template,
|
|
201
217
|
review_comment=review_comment,
|
|
202
218
|
)
|
|
203
219
|
|