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
|
@@ -18,22 +18,22 @@ class CustomerPermissionReview:
|
|
|
18
18
|
uuid (UUID):
|
|
19
19
|
reviewer_full_name (Union[None, str]):
|
|
20
20
|
reviewer_uuid (Union[None, UUID]):
|
|
21
|
-
customer_uuid (UUID):
|
|
22
|
-
customer_name (str):
|
|
23
21
|
is_pending (bool):
|
|
24
22
|
created (datetime.datetime):
|
|
25
23
|
closed (Union[None, datetime.datetime]):
|
|
24
|
+
customer_uuid (UUID):
|
|
25
|
+
customer_name (str):
|
|
26
26
|
"""
|
|
27
27
|
|
|
28
28
|
url: str
|
|
29
29
|
uuid: UUID
|
|
30
30
|
reviewer_full_name: Union[None, str]
|
|
31
31
|
reviewer_uuid: Union[None, UUID]
|
|
32
|
-
customer_uuid: UUID
|
|
33
|
-
customer_name: str
|
|
34
32
|
is_pending: bool
|
|
35
33
|
created: datetime.datetime
|
|
36
34
|
closed: Union[None, datetime.datetime]
|
|
35
|
+
customer_uuid: UUID
|
|
36
|
+
customer_name: str
|
|
37
37
|
additional_properties: dict[str, Any] = _attrs_field(init=False, factory=dict)
|
|
38
38
|
|
|
39
39
|
def to_dict(self) -> dict[str, Any]:
|
|
@@ -50,10 +50,6 @@ class CustomerPermissionReview:
|
|
|
50
50
|
else:
|
|
51
51
|
reviewer_uuid = self.reviewer_uuid
|
|
52
52
|
|
|
53
|
-
customer_uuid = str(self.customer_uuid)
|
|
54
|
-
|
|
55
|
-
customer_name = self.customer_name
|
|
56
|
-
|
|
57
53
|
is_pending = self.is_pending
|
|
58
54
|
|
|
59
55
|
created = self.created.isoformat()
|
|
@@ -64,6 +60,10 @@ class CustomerPermissionReview:
|
|
|
64
60
|
else:
|
|
65
61
|
closed = self.closed
|
|
66
62
|
|
|
63
|
+
customer_uuid = str(self.customer_uuid)
|
|
64
|
+
|
|
65
|
+
customer_name = self.customer_name
|
|
66
|
+
|
|
67
67
|
field_dict: dict[str, Any] = {}
|
|
68
68
|
field_dict.update(self.additional_properties)
|
|
69
69
|
field_dict.update(
|
|
@@ -72,11 +72,11 @@ class CustomerPermissionReview:
|
|
|
72
72
|
"uuid": uuid,
|
|
73
73
|
"reviewer_full_name": reviewer_full_name,
|
|
74
74
|
"reviewer_uuid": reviewer_uuid,
|
|
75
|
-
"customer_uuid": customer_uuid,
|
|
76
|
-
"customer_name": customer_name,
|
|
77
75
|
"is_pending": is_pending,
|
|
78
76
|
"created": created,
|
|
79
77
|
"closed": closed,
|
|
78
|
+
"customer_uuid": customer_uuid,
|
|
79
|
+
"customer_name": customer_name,
|
|
80
80
|
}
|
|
81
81
|
)
|
|
82
82
|
|
|
@@ -111,10 +111,6 @@ class CustomerPermissionReview:
|
|
|
111
111
|
|
|
112
112
|
reviewer_uuid = _parse_reviewer_uuid(d.pop("reviewer_uuid"))
|
|
113
113
|
|
|
114
|
-
customer_uuid = UUID(d.pop("customer_uuid"))
|
|
115
|
-
|
|
116
|
-
customer_name = d.pop("customer_name")
|
|
117
|
-
|
|
118
114
|
is_pending = d.pop("is_pending")
|
|
119
115
|
|
|
120
116
|
created = isoparse(d.pop("created"))
|
|
@@ -134,16 +130,20 @@ class CustomerPermissionReview:
|
|
|
134
130
|
|
|
135
131
|
closed = _parse_closed(d.pop("closed"))
|
|
136
132
|
|
|
133
|
+
customer_uuid = UUID(d.pop("customer_uuid"))
|
|
134
|
+
|
|
135
|
+
customer_name = d.pop("customer_name")
|
|
136
|
+
|
|
137
137
|
customer_permission_review = cls(
|
|
138
138
|
url=url,
|
|
139
139
|
uuid=uuid,
|
|
140
140
|
reviewer_full_name=reviewer_full_name,
|
|
141
141
|
reviewer_uuid=reviewer_uuid,
|
|
142
|
-
customer_uuid=customer_uuid,
|
|
143
|
-
customer_name=customer_name,
|
|
144
142
|
is_pending=is_pending,
|
|
145
143
|
created=created,
|
|
146
144
|
closed=closed,
|
|
145
|
+
customer_uuid=customer_uuid,
|
|
146
|
+
customer_name=customer_name,
|
|
147
147
|
)
|
|
148
148
|
|
|
149
149
|
customer_permission_review.additional_properties = d
|
|
@@ -22,6 +22,7 @@ class CustomerRequest:
|
|
|
22
22
|
image (Union[File, None, Unset]):
|
|
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 CustomerRequest:
|
|
|
42
43
|
image: Union[File, None, Unset] = 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 CustomerRequest:
|
|
|
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
|
|
@@ -130,6 +134,8 @@ class CustomerRequest:
|
|
|
130
134
|
field_dict["native_name"] = native_name
|
|
131
135
|
if abbreviation is not UNSET:
|
|
132
136
|
field_dict["abbreviation"] = abbreviation
|
|
137
|
+
if description is not UNSET:
|
|
138
|
+
field_dict["description"] = description
|
|
133
139
|
if contact_details is not UNSET:
|
|
134
140
|
field_dict["contact_details"] = contact_details
|
|
135
141
|
if email is not UNSET:
|
|
@@ -187,6 +193,8 @@ class CustomerRequest:
|
|
|
187
193
|
|
|
188
194
|
abbreviation = d.pop("abbreviation", UNSET)
|
|
189
195
|
|
|
196
|
+
description = d.pop("description", UNSET)
|
|
197
|
+
|
|
190
198
|
contact_details = d.pop("contact_details", UNSET)
|
|
191
199
|
|
|
192
200
|
email = d.pop("email", UNSET)
|
|
@@ -250,6 +258,7 @@ class CustomerRequest:
|
|
|
250
258
|
image=image,
|
|
251
259
|
native_name=native_name,
|
|
252
260
|
abbreviation=abbreviation,
|
|
261
|
+
description=description,
|
|
253
262
|
contact_details=contact_details,
|
|
254
263
|
email=email,
|
|
255
264
|
phone_number=phone_number,
|
|
@@ -7,6 +7,7 @@ from attrs import define as _attrs_define
|
|
|
7
7
|
from attrs import field as _attrs_field
|
|
8
8
|
from dateutil.parser import isoparse
|
|
9
9
|
|
|
10
|
+
from ..models.service_account_state import ServiceAccountState
|
|
10
11
|
from ..types import UNSET, Unset
|
|
11
12
|
|
|
12
13
|
T = TypeVar("T", bound="CustomerServiceAccount")
|
|
@@ -21,6 +22,7 @@ class CustomerServiceAccount:
|
|
|
21
22
|
created (datetime.datetime):
|
|
22
23
|
modified (datetime.datetime):
|
|
23
24
|
error_message (str):
|
|
25
|
+
state (ServiceAccountState):
|
|
24
26
|
token (Union[None, str]):
|
|
25
27
|
expires_at (Union[None, str]):
|
|
26
28
|
customer (UUID):
|
|
@@ -38,6 +40,7 @@ class CustomerServiceAccount:
|
|
|
38
40
|
created: datetime.datetime
|
|
39
41
|
modified: datetime.datetime
|
|
40
42
|
error_message: str
|
|
43
|
+
state: ServiceAccountState
|
|
41
44
|
token: Union[None, str]
|
|
42
45
|
expires_at: Union[None, str]
|
|
43
46
|
customer: UUID
|
|
@@ -61,6 +64,8 @@ class CustomerServiceAccount:
|
|
|
61
64
|
|
|
62
65
|
error_message = self.error_message
|
|
63
66
|
|
|
67
|
+
state = self.state.value
|
|
68
|
+
|
|
64
69
|
token: Union[None, str]
|
|
65
70
|
token = self.token
|
|
66
71
|
|
|
@@ -92,6 +97,7 @@ class CustomerServiceAccount:
|
|
|
92
97
|
"created": created,
|
|
93
98
|
"modified": modified,
|
|
94
99
|
"error_message": error_message,
|
|
100
|
+
"state": state,
|
|
95
101
|
"token": token,
|
|
96
102
|
"expires_at": expires_at,
|
|
97
103
|
"customer": customer,
|
|
@@ -125,6 +131,8 @@ class CustomerServiceAccount:
|
|
|
125
131
|
|
|
126
132
|
error_message = d.pop("error_message")
|
|
127
133
|
|
|
134
|
+
state = ServiceAccountState(d.pop("state"))
|
|
135
|
+
|
|
128
136
|
def _parse_token(data: object) -> Union[None, str]:
|
|
129
137
|
if data is None:
|
|
130
138
|
return data
|
|
@@ -161,6 +169,7 @@ class CustomerServiceAccount:
|
|
|
161
169
|
created=created,
|
|
162
170
|
modified=modified,
|
|
163
171
|
error_message=error_message,
|
|
172
|
+
state=state,
|
|
164
173
|
token=token,
|
|
165
174
|
expires_at=expires_at,
|
|
166
175
|
customer=customer,
|
|
@@ -21,6 +21,7 @@ class CustomersListFieldItem(str, Enum):
|
|
|
21
21
|
CUSTOMER_CREDIT = "customer_credit"
|
|
22
22
|
CUSTOMER_UNALLOCATED_CREDIT = "customer_unallocated_credit"
|
|
23
23
|
DEFAULT_TAX_PERCENT = "default_tax_percent"
|
|
24
|
+
DESCRIPTION = "description"
|
|
24
25
|
DISPLAY_NAME = "display_name"
|
|
25
26
|
DOMAIN = "domain"
|
|
26
27
|
EMAIL = "email"
|
|
@@ -32,16 +33,20 @@ class CustomersListFieldItem(str, Enum):
|
|
|
32
33
|
MAX_SERVICE_ACCOUNTS = "max_service_accounts"
|
|
33
34
|
NAME = "name"
|
|
34
35
|
NATIVE_NAME = "native_name"
|
|
36
|
+
ORGANIZATION_GROUPS = "organization_groups"
|
|
35
37
|
PAYMENT_PROFILES = "payment_profiles"
|
|
36
38
|
PHONE_NUMBER = "phone_number"
|
|
37
39
|
POSTAL = "postal"
|
|
40
|
+
PROJECTS = "projects"
|
|
38
41
|
PROJECTS_COUNT = "projects_count"
|
|
42
|
+
PROJECT_METADATA_CHECKLIST = "project_metadata_checklist"
|
|
39
43
|
REGISTRATION_CODE = "registration_code"
|
|
40
44
|
SERVICE_PROVIDER = "service_provider"
|
|
41
45
|
SERVICE_PROVIDER_UUID = "service_provider_uuid"
|
|
42
46
|
SLUG = "slug"
|
|
43
47
|
SPONSOR_NUMBER = "sponsor_number"
|
|
44
48
|
URL = "url"
|
|
49
|
+
USERS_COUNT = "users_count"
|
|
45
50
|
UUID = "uuid"
|
|
46
51
|
VAT_CODE = "vat_code"
|
|
47
52
|
|
|
@@ -21,6 +21,7 @@ class CustomersRetrieveFieldItem(str, Enum):
|
|
|
21
21
|
CUSTOMER_CREDIT = "customer_credit"
|
|
22
22
|
CUSTOMER_UNALLOCATED_CREDIT = "customer_unallocated_credit"
|
|
23
23
|
DEFAULT_TAX_PERCENT = "default_tax_percent"
|
|
24
|
+
DESCRIPTION = "description"
|
|
24
25
|
DISPLAY_NAME = "display_name"
|
|
25
26
|
DOMAIN = "domain"
|
|
26
27
|
EMAIL = "email"
|
|
@@ -32,16 +33,20 @@ class CustomersRetrieveFieldItem(str, Enum):
|
|
|
32
33
|
MAX_SERVICE_ACCOUNTS = "max_service_accounts"
|
|
33
34
|
NAME = "name"
|
|
34
35
|
NATIVE_NAME = "native_name"
|
|
36
|
+
ORGANIZATION_GROUPS = "organization_groups"
|
|
35
37
|
PAYMENT_PROFILES = "payment_profiles"
|
|
36
38
|
PHONE_NUMBER = "phone_number"
|
|
37
39
|
POSTAL = "postal"
|
|
40
|
+
PROJECTS = "projects"
|
|
38
41
|
PROJECTS_COUNT = "projects_count"
|
|
42
|
+
PROJECT_METADATA_CHECKLIST = "project_metadata_checklist"
|
|
39
43
|
REGISTRATION_CODE = "registration_code"
|
|
40
44
|
SERVICE_PROVIDER = "service_provider"
|
|
41
45
|
SERVICE_PROVIDER_UUID = "service_provider_uuid"
|
|
42
46
|
SLUG = "slug"
|
|
43
47
|
SPONSOR_NUMBER = "sponsor_number"
|
|
44
48
|
URL = "url"
|
|
49
|
+
USERS_COUNT = "users_count"
|
|
45
50
|
UUID = "uuid"
|
|
46
51
|
VAT_CODE = "vat_code"
|
|
47
52
|
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
from enum import Enum
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
class CustomersUsersListOrganizationRoleItemType0(str, Enum):
|
|
5
|
+
CUSTOMER_MANAGER = "CUSTOMER.MANAGER"
|
|
6
|
+
CUSTOMER_OWNER = "CUSTOMER.OWNER"
|
|
7
|
+
CUSTOMER_SUPPORT = "CUSTOMER.SUPPORT"
|
|
8
|
+
|
|
9
|
+
def __str__(self) -> str:
|
|
10
|
+
return str(self.value)
|
|
@@ -24,7 +24,7 @@ class EventSubscription:
|
|
|
24
24
|
user_full_name (str):
|
|
25
25
|
created (datetime.datetime):
|
|
26
26
|
modified (datetime.datetime):
|
|
27
|
-
source_ip (Union[None, str]):
|
|
27
|
+
source_ip (Union[None, str]): An IPv4 or IPv6 address.
|
|
28
28
|
description (Union[Unset, str]):
|
|
29
29
|
observable_objects (Union[Unset, Any]):
|
|
30
30
|
"""
|
|
@@ -22,6 +22,8 @@ class EventTypesEnum(str, Enum):
|
|
|
22
22
|
CREATE_OF_CREDIT_BY_STAFF = "create_of_credit_by_staff"
|
|
23
23
|
CUSTOMER_CREATION_SUCCEEDED = "customer_creation_succeeded"
|
|
24
24
|
CUSTOMER_DELETION_SUCCEEDED = "customer_deletion_succeeded"
|
|
25
|
+
CUSTOMER_PERMISSION_REVIEW_CLOSED = "customer_permission_review_closed"
|
|
26
|
+
CUSTOMER_PERMISSION_REVIEW_CREATED = "customer_permission_review_created"
|
|
25
27
|
CUSTOMER_UPDATE_SUCCEEDED = "customer_update_succeeded"
|
|
26
28
|
CUSTOM_NOTIFICATION = "custom_notification"
|
|
27
29
|
DROPLET_RESIZE_SCHEDULED = "droplet_resize_scheduled"
|
|
@@ -141,6 +143,8 @@ class EventTypesEnum(str, Enum):
|
|
|
141
143
|
PROJECT_CREATION_SUCCEEDED = "project_creation_succeeded"
|
|
142
144
|
PROJECT_DELETION_SUCCEEDED = "project_deletion_succeeded"
|
|
143
145
|
PROJECT_DELETION_TRIGGERED = "project_deletion_triggered"
|
|
146
|
+
PROJECT_PERMISSION_REVIEW_CLOSED = "project_permission_review_closed"
|
|
147
|
+
PROJECT_PERMISSION_REVIEW_CREATED = "project_permission_review_created"
|
|
144
148
|
PROJECT_UPDATE_REQUEST_APPROVED = "project_update_request_approved"
|
|
145
149
|
PROJECT_UPDATE_REQUEST_CREATED = "project_update_request_created"
|
|
146
150
|
PROJECT_UPDATE_REQUEST_REJECTED = "project_update_request_rejected"
|
|
@@ -0,0 +1,69 @@
|
|
|
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="GenericOrderAttributes")
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
@_attrs_define
|
|
13
|
+
class GenericOrderAttributes:
|
|
14
|
+
"""A generic JSON object for offerings without a predefined schema. Allows any key-value pairs.
|
|
15
|
+
|
|
16
|
+
Attributes:
|
|
17
|
+
name (Union[Unset, str]): The name of the resource to be created. Will be displayed in the portal.
|
|
18
|
+
description (Union[Unset, str]): A free-form description for the resource.
|
|
19
|
+
"""
|
|
20
|
+
|
|
21
|
+
name: Union[Unset, str] = UNSET
|
|
22
|
+
description: Union[Unset, str] = 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
|
+
description = self.description
|
|
29
|
+
|
|
30
|
+
field_dict: dict[str, Any] = {}
|
|
31
|
+
field_dict.update(self.additional_properties)
|
|
32
|
+
field_dict.update({})
|
|
33
|
+
if name is not UNSET:
|
|
34
|
+
field_dict["name"] = name
|
|
35
|
+
if description is not UNSET:
|
|
36
|
+
field_dict["description"] = description
|
|
37
|
+
|
|
38
|
+
return field_dict
|
|
39
|
+
|
|
40
|
+
@classmethod
|
|
41
|
+
def from_dict(cls: type[T], src_dict: Mapping[str, Any]) -> T:
|
|
42
|
+
d = dict(src_dict)
|
|
43
|
+
name = d.pop("name", UNSET)
|
|
44
|
+
|
|
45
|
+
description = d.pop("description", UNSET)
|
|
46
|
+
|
|
47
|
+
generic_order_attributes = cls(
|
|
48
|
+
name=name,
|
|
49
|
+
description=description,
|
|
50
|
+
)
|
|
51
|
+
|
|
52
|
+
generic_order_attributes.additional_properties = d
|
|
53
|
+
return generic_order_attributes
|
|
54
|
+
|
|
55
|
+
@property
|
|
56
|
+
def additional_keys(self) -> list[str]:
|
|
57
|
+
return list(self.additional_properties.keys())
|
|
58
|
+
|
|
59
|
+
def __getitem__(self, key: str) -> Any:
|
|
60
|
+
return self.additional_properties[key]
|
|
61
|
+
|
|
62
|
+
def __setitem__(self, key: str, value: Any) -> None:
|
|
63
|
+
self.additional_properties[key] = value
|
|
64
|
+
|
|
65
|
+
def __delitem__(self, key: str) -> None:
|
|
66
|
+
del self.additional_properties[key]
|
|
67
|
+
|
|
68
|
+
def __contains__(self, key: str) -> bool:
|
|
69
|
+
return key in self.additional_properties
|
|
@@ -14,6 +14,7 @@ class GoogleAuthAuthorizeRetrieveFieldItem(str, Enum):
|
|
|
14
14
|
CUSTOMER_SLUG = "customer_slug"
|
|
15
15
|
CUSTOMER_UUID = "customer_uuid"
|
|
16
16
|
DESCRIPTION = "description"
|
|
17
|
+
ENABLE_NOTIFICATIONS = "enable_notifications"
|
|
17
18
|
GOOGLE_AUTH_URL = "google_auth_url"
|
|
18
19
|
IMAGE = "image"
|
|
19
20
|
OFFERING_COUNT = "offering_count"
|
|
@@ -14,6 +14,7 @@ class GoogleAuthListFieldItem(str, Enum):
|
|
|
14
14
|
CUSTOMER_SLUG = "customer_slug"
|
|
15
15
|
CUSTOMER_UUID = "customer_uuid"
|
|
16
16
|
DESCRIPTION = "description"
|
|
17
|
+
ENABLE_NOTIFICATIONS = "enable_notifications"
|
|
17
18
|
GOOGLE_AUTH_URL = "google_auth_url"
|
|
18
19
|
IMAGE = "image"
|
|
19
20
|
OFFERING_COUNT = "offering_count"
|
|
@@ -14,6 +14,7 @@ class GoogleAuthRetrieveFieldItem(str, Enum):
|
|
|
14
14
|
CUSTOMER_SLUG = "customer_slug"
|
|
15
15
|
CUSTOMER_UUID = "customer_uuid"
|
|
16
16
|
DESCRIPTION = "description"
|
|
17
|
+
ENABLE_NOTIFICATIONS = "enable_notifications"
|
|
17
18
|
GOOGLE_AUTH_URL = "google_auth_url"
|
|
18
19
|
IMAGE = "image"
|
|
19
20
|
OFFERING_COUNT = "offering_count"
|
|
@@ -24,6 +24,7 @@ class GoogleCredentials:
|
|
|
24
24
|
uuid (Union[Unset, UUID]):
|
|
25
25
|
created (Union[Unset, datetime.datetime]):
|
|
26
26
|
description (Union[Unset, str]):
|
|
27
|
+
enable_notifications (Union[Unset, bool]):
|
|
27
28
|
customer (Union[Unset, str]):
|
|
28
29
|
customer_name (Union[Unset, str]):
|
|
29
30
|
customer_uuid (Union[Unset, UUID]):
|
|
@@ -44,6 +45,7 @@ class GoogleCredentials:
|
|
|
44
45
|
uuid: Union[Unset, UUID] = UNSET
|
|
45
46
|
created: Union[Unset, datetime.datetime] = UNSET
|
|
46
47
|
description: Union[Unset, str] = UNSET
|
|
48
|
+
enable_notifications: Union[Unset, bool] = UNSET
|
|
47
49
|
customer: Union[Unset, str] = UNSET
|
|
48
50
|
customer_name: Union[Unset, str] = UNSET
|
|
49
51
|
customer_uuid: Union[Unset, UUID] = UNSET
|
|
@@ -73,6 +75,8 @@ class GoogleCredentials:
|
|
|
73
75
|
|
|
74
76
|
description = self.description
|
|
75
77
|
|
|
78
|
+
enable_notifications = self.enable_notifications
|
|
79
|
+
|
|
76
80
|
customer = self.customer
|
|
77
81
|
|
|
78
82
|
customer_name = self.customer_name
|
|
@@ -123,6 +127,8 @@ class GoogleCredentials:
|
|
|
123
127
|
field_dict["created"] = created
|
|
124
128
|
if description is not UNSET:
|
|
125
129
|
field_dict["description"] = description
|
|
130
|
+
if enable_notifications is not UNSET:
|
|
131
|
+
field_dict["enable_notifications"] = enable_notifications
|
|
126
132
|
if customer is not UNSET:
|
|
127
133
|
field_dict["customer"] = customer
|
|
128
134
|
if customer_name is not UNSET:
|
|
@@ -177,6 +183,8 @@ class GoogleCredentials:
|
|
|
177
183
|
|
|
178
184
|
description = d.pop("description", UNSET)
|
|
179
185
|
|
|
186
|
+
enable_notifications = d.pop("enable_notifications", UNSET)
|
|
187
|
+
|
|
180
188
|
customer = d.pop("customer", UNSET)
|
|
181
189
|
|
|
182
190
|
customer_name = d.pop("customer_name", UNSET)
|
|
@@ -227,6 +235,7 @@ class GoogleCredentials:
|
|
|
227
235
|
uuid=uuid,
|
|
228
236
|
created=created,
|
|
229
237
|
description=description,
|
|
238
|
+
enable_notifications=enable_notifications,
|
|
230
239
|
customer=customer,
|
|
231
240
|
customer_name=customer_name,
|
|
232
241
|
customer_uuid=customer_uuid,
|
|
@@ -18,6 +18,8 @@ class GroupInvitation:
|
|
|
18
18
|
Attributes:
|
|
19
19
|
scope_uuid (UUID):
|
|
20
20
|
scope_name (str):
|
|
21
|
+
scope_description (str): Get the description field from the scope if it exists.
|
|
22
|
+
Returns empty string if scope doesn't have a description field.
|
|
21
23
|
scope_type (Union[None, str]):
|
|
22
24
|
customer_uuid (UUID):
|
|
23
25
|
customer_name (str):
|
|
@@ -31,6 +33,9 @@ class GroupInvitation:
|
|
|
31
33
|
created (datetime.datetime):
|
|
32
34
|
expires (datetime.datetime):
|
|
33
35
|
is_active (bool):
|
|
36
|
+
scope_image (Union[None, str]):
|
|
37
|
+
is_public (Union[Unset, bool]): Allow non-authenticated users to see and accept this invitation. Only staff can
|
|
38
|
+
create public invitations.
|
|
34
39
|
auto_create_project (Union[Unset, bool]): Create project and grant project permissions instead of customer
|
|
35
40
|
permissions
|
|
36
41
|
project_name_template (Union[None, Unset, str]): Template for project name. Supports {username}, {email},
|
|
@@ -42,6 +47,7 @@ class GroupInvitation:
|
|
|
42
47
|
|
|
43
48
|
scope_uuid: UUID
|
|
44
49
|
scope_name: str
|
|
50
|
+
scope_description: str
|
|
45
51
|
scope_type: Union[None, str]
|
|
46
52
|
customer_uuid: UUID
|
|
47
53
|
customer_name: str
|
|
@@ -55,6 +61,8 @@ class GroupInvitation:
|
|
|
55
61
|
created: datetime.datetime
|
|
56
62
|
expires: datetime.datetime
|
|
57
63
|
is_active: bool
|
|
64
|
+
scope_image: Union[None, str]
|
|
65
|
+
is_public: Union[Unset, bool] = UNSET
|
|
58
66
|
auto_create_project: Union[Unset, bool] = UNSET
|
|
59
67
|
project_name_template: Union[None, Unset, str] = UNSET
|
|
60
68
|
project_role: Union[None, UUID, Unset] = UNSET
|
|
@@ -67,6 +75,8 @@ class GroupInvitation:
|
|
|
67
75
|
|
|
68
76
|
scope_name = self.scope_name
|
|
69
77
|
|
|
78
|
+
scope_description = self.scope_description
|
|
79
|
+
|
|
70
80
|
scope_type: Union[None, str]
|
|
71
81
|
scope_type = self.scope_type
|
|
72
82
|
|
|
@@ -94,6 +104,11 @@ class GroupInvitation:
|
|
|
94
104
|
|
|
95
105
|
is_active = self.is_active
|
|
96
106
|
|
|
107
|
+
scope_image: Union[None, str]
|
|
108
|
+
scope_image = self.scope_image
|
|
109
|
+
|
|
110
|
+
is_public = self.is_public
|
|
111
|
+
|
|
97
112
|
auto_create_project = self.auto_create_project
|
|
98
113
|
|
|
99
114
|
project_name_template: Union[None, Unset, str]
|
|
@@ -120,6 +135,7 @@ class GroupInvitation:
|
|
|
120
135
|
{
|
|
121
136
|
"scope_uuid": scope_uuid,
|
|
122
137
|
"scope_name": scope_name,
|
|
138
|
+
"scope_description": scope_description,
|
|
123
139
|
"scope_type": scope_type,
|
|
124
140
|
"customer_uuid": customer_uuid,
|
|
125
141
|
"customer_name": customer_name,
|
|
@@ -133,8 +149,11 @@ class GroupInvitation:
|
|
|
133
149
|
"created": created,
|
|
134
150
|
"expires": expires,
|
|
135
151
|
"is_active": is_active,
|
|
152
|
+
"scope_image": scope_image,
|
|
136
153
|
}
|
|
137
154
|
)
|
|
155
|
+
if is_public is not UNSET:
|
|
156
|
+
field_dict["is_public"] = is_public
|
|
138
157
|
if auto_create_project is not UNSET:
|
|
139
158
|
field_dict["auto_create_project"] = auto_create_project
|
|
140
159
|
if project_name_template is not UNSET:
|
|
@@ -155,6 +174,8 @@ class GroupInvitation:
|
|
|
155
174
|
|
|
156
175
|
scope_name = d.pop("scope_name")
|
|
157
176
|
|
|
177
|
+
scope_description = d.pop("scope_description")
|
|
178
|
+
|
|
158
179
|
def _parse_scope_type(data: object) -> Union[None, str]:
|
|
159
180
|
if data is None:
|
|
160
181
|
return data
|
|
@@ -186,6 +207,15 @@ class GroupInvitation:
|
|
|
186
207
|
|
|
187
208
|
is_active = d.pop("is_active")
|
|
188
209
|
|
|
210
|
+
def _parse_scope_image(data: object) -> Union[None, str]:
|
|
211
|
+
if data is None:
|
|
212
|
+
return data
|
|
213
|
+
return cast(Union[None, str], data)
|
|
214
|
+
|
|
215
|
+
scope_image = _parse_scope_image(d.pop("scope_image"))
|
|
216
|
+
|
|
217
|
+
is_public = d.pop("is_public", UNSET)
|
|
218
|
+
|
|
189
219
|
auto_create_project = d.pop("auto_create_project", UNSET)
|
|
190
220
|
|
|
191
221
|
def _parse_project_name_template(data: object) -> Union[None, Unset, str]:
|
|
@@ -221,6 +251,7 @@ class GroupInvitation:
|
|
|
221
251
|
group_invitation = cls(
|
|
222
252
|
scope_uuid=scope_uuid,
|
|
223
253
|
scope_name=scope_name,
|
|
254
|
+
scope_description=scope_description,
|
|
224
255
|
scope_type=scope_type,
|
|
225
256
|
customer_uuid=customer_uuid,
|
|
226
257
|
customer_name=customer_name,
|
|
@@ -234,6 +265,8 @@ class GroupInvitation:
|
|
|
234
265
|
created=created,
|
|
235
266
|
expires=expires,
|
|
236
267
|
is_active=is_active,
|
|
268
|
+
scope_image=scope_image,
|
|
269
|
+
is_public=is_public,
|
|
237
270
|
auto_create_project=auto_create_project,
|
|
238
271
|
project_name_template=project_name_template,
|
|
239
272
|
project_role=project_role,
|
|
@@ -16,6 +16,8 @@ class GroupInvitationRequest:
|
|
|
16
16
|
Attributes:
|
|
17
17
|
role (UUID):
|
|
18
18
|
scope (str):
|
|
19
|
+
is_public (Union[Unset, bool]): Allow non-authenticated users to see and accept this invitation. Only staff can
|
|
20
|
+
create public invitations.
|
|
19
21
|
auto_create_project (Union[Unset, bool]): Create project and grant project permissions instead of customer
|
|
20
22
|
permissions
|
|
21
23
|
project_name_template (Union[None, Unset, str]): Template for project name. Supports {username}, {email},
|
|
@@ -27,6 +29,7 @@ class GroupInvitationRequest:
|
|
|
27
29
|
|
|
28
30
|
role: UUID
|
|
29
31
|
scope: str
|
|
32
|
+
is_public: Union[Unset, bool] = UNSET
|
|
30
33
|
auto_create_project: Union[Unset, bool] = UNSET
|
|
31
34
|
project_name_template: Union[None, Unset, str] = UNSET
|
|
32
35
|
project_role: Union[None, UUID, Unset] = UNSET
|
|
@@ -39,6 +42,8 @@ class GroupInvitationRequest:
|
|
|
39
42
|
|
|
40
43
|
scope = self.scope
|
|
41
44
|
|
|
45
|
+
is_public = self.is_public
|
|
46
|
+
|
|
42
47
|
auto_create_project = self.auto_create_project
|
|
43
48
|
|
|
44
49
|
project_name_template: Union[None, Unset, str]
|
|
@@ -67,6 +72,8 @@ class GroupInvitationRequest:
|
|
|
67
72
|
"scope": scope,
|
|
68
73
|
}
|
|
69
74
|
)
|
|
75
|
+
if is_public is not UNSET:
|
|
76
|
+
field_dict["is_public"] = is_public
|
|
70
77
|
if auto_create_project is not UNSET:
|
|
71
78
|
field_dict["auto_create_project"] = auto_create_project
|
|
72
79
|
if project_name_template is not UNSET:
|
|
@@ -87,6 +94,8 @@ class GroupInvitationRequest:
|
|
|
87
94
|
|
|
88
95
|
scope = d.pop("scope")
|
|
89
96
|
|
|
97
|
+
is_public = d.pop("is_public", UNSET)
|
|
98
|
+
|
|
90
99
|
auto_create_project = d.pop("auto_create_project", UNSET)
|
|
91
100
|
|
|
92
101
|
def _parse_project_name_template(data: object) -> Union[None, Unset, str]:
|
|
@@ -122,6 +131,7 @@ class GroupInvitationRequest:
|
|
|
122
131
|
group_invitation_request = cls(
|
|
123
132
|
role=role,
|
|
124
133
|
scope=scope,
|
|
134
|
+
is_public=is_public,
|
|
125
135
|
auto_create_project=auto_create_project,
|
|
126
136
|
project_name_template=project_name_template,
|
|
127
137
|
project_role=project_role,
|