waldur-api-client 7.8.4__py3-none-any.whl → 7.8.5__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/backend_resources/backend_resources_import_resource.py +3 -3
- waldur_api_client/api/booking_resources/booking_resources_count.py +90 -0
- waldur_api_client/api/booking_resources/booking_resources_list.py +90 -0
- waldur_api_client/api/call_managing_organisations/call_managing_organisations_add_user.py +17 -10
- waldur_api_client/api/customers/customers_add_user.py +17 -10
- waldur_api_client/api/marketplace_component_usages/marketplace_component_usages_count.py +30 -0
- waldur_api_client/api/marketplace_component_usages/marketplace_component_usages_list.py +30 -0
- waldur_api_client/api/marketplace_customer_component_usage_policies/__init__.py +1 -0
- waldur_api_client/api/marketplace_customer_component_usage_policies/marketplace_customer_component_usage_policies_actions_count.py +125 -0
- waldur_api_client/api/marketplace_customer_component_usage_policies/marketplace_customer_component_usage_policies_actions_retrieve.py +119 -0
- waldur_api_client/api/marketplace_customer_component_usage_policies/marketplace_customer_component_usage_policies_count.py +239 -0
- waldur_api_client/api/marketplace_customer_component_usage_policies/marketplace_customer_component_usage_policies_create.py +152 -0
- waldur_api_client/api/marketplace_customer_component_usage_policies/marketplace_customer_component_usage_policies_destroy.py +89 -0
- waldur_api_client/api/marketplace_customer_component_usage_policies/marketplace_customer_component_usage_policies_list.py +242 -0
- waldur_api_client/api/marketplace_customer_component_usage_policies/marketplace_customer_component_usage_policies_partial_update.py +166 -0
- waldur_api_client/api/marketplace_customer_component_usage_policies/marketplace_customer_component_usage_policies_retrieve.py +144 -0
- waldur_api_client/api/marketplace_customer_component_usage_policies/marketplace_customer_component_usage_policies_update.py +166 -0
- waldur_api_client/api/marketplace_orders/marketplace_orders_set_backend_id.py +105 -0
- waldur_api_client/api/marketplace_plans/marketplace_plans_update_discounts.py +123 -0
- waldur_api_client/api/marketplace_provider_offerings/marketplace_provider_offerings_add_partition.py +168 -0
- waldur_api_client/api/marketplace_provider_offerings/marketplace_provider_offerings_add_software_catalog.py +168 -0
- waldur_api_client/api/marketplace_provider_offerings/marketplace_provider_offerings_add_user.py +19 -10
- waldur_api_client/api/marketplace_provider_offerings/marketplace_provider_offerings_component_stats_list.py +15 -0
- waldur_api_client/api/marketplace_provider_offerings/marketplace_provider_offerings_costs_list.py +15 -0
- waldur_api_client/api/marketplace_provider_offerings/marketplace_provider_offerings_count.py +15 -0
- waldur_api_client/api/marketplace_provider_offerings/marketplace_provider_offerings_create_offering_component.py +1 -1
- waldur_api_client/api/marketplace_provider_offerings/marketplace_provider_offerings_customers_list.py +15 -0
- waldur_api_client/api/marketplace_provider_offerings/marketplace_provider_offerings_groups_count.py +15 -0
- waldur_api_client/api/marketplace_provider_offerings/marketplace_provider_offerings_groups_list.py +15 -0
- waldur_api_client/api/marketplace_provider_offerings/marketplace_provider_offerings_list.py +15 -0
- waldur_api_client/api/marketplace_provider_offerings/marketplace_provider_offerings_remove_partition.py +107 -0
- waldur_api_client/api/marketplace_provider_offerings/marketplace_provider_offerings_remove_software_catalog.py +107 -0
- waldur_api_client/api/marketplace_provider_offerings/marketplace_provider_offerings_update_partition_partial_update.py +168 -0
- waldur_api_client/api/marketplace_provider_offerings/marketplace_provider_offerings_update_software_catalog_partial_update.py +168 -0
- waldur_api_client/api/marketplace_provider_resources/marketplace_provider_resources_count.py +90 -0
- waldur_api_client/api/marketplace_provider_resources/marketplace_provider_resources_list.py +90 -0
- waldur_api_client/api/marketplace_provider_resources/marketplace_provider_resources_set_downscaled.py +107 -0
- waldur_api_client/api/marketplace_provider_resources/marketplace_provider_resources_set_paused.py +107 -0
- waldur_api_client/api/marketplace_provider_resources/marketplace_provider_resources_set_restrict_member_access.py +107 -0
- waldur_api_client/api/marketplace_public_offerings/marketplace_public_offerings_count.py +15 -0
- waldur_api_client/api/marketplace_public_offerings/marketplace_public_offerings_list.py +15 -0
- waldur_api_client/api/marketplace_resources/marketplace_resources_count.py +90 -0
- waldur_api_client/api/marketplace_resources/marketplace_resources_list.py +90 -0
- waldur_api_client/api/marketplace_resources/marketplace_resources_set_downscaled.py +107 -0
- waldur_api_client/api/marketplace_resources/marketplace_resources_set_paused.py +107 -0
- waldur_api_client/api/marketplace_resources/marketplace_resources_set_restrict_member_access.py +107 -0
- waldur_api_client/api/marketplace_service_providers/marketplace_service_providers_add_user.py +17 -10
- waldur_api_client/api/marketplace_service_providers/marketplace_service_providers_customer_projects_list.py +15 -0
- waldur_api_client/api/marketplace_service_providers/marketplace_service_providers_offerings_list.py +15 -0
- waldur_api_client/api/marketplace_service_providers/marketplace_service_providers_projects_list.py +14 -24
- waldur_api_client/api/marketplace_service_providers/marketplace_service_providers_set_offerings_username.py +8 -67
- waldur_api_client/api/marketplace_site_agent_identities/__init__.py +1 -0
- waldur_api_client/api/marketplace_site_agent_identities/marketplace_site_agent_identities_count.py +240 -0
- waldur_api_client/api/marketplace_site_agent_identities/marketplace_site_agent_identities_create.py +148 -0
- waldur_api_client/api/marketplace_site_agent_identities/marketplace_site_agent_identities_destroy.py +89 -0
- waldur_api_client/api/marketplace_site_agent_identities/marketplace_site_agent_identities_list.py +241 -0
- waldur_api_client/api/marketplace_site_agent_identities/marketplace_site_agent_identities_register_event_subscription.py +176 -0
- waldur_api_client/api/marketplace_site_agent_identities/marketplace_site_agent_identities_register_service.py +170 -0
- waldur_api_client/api/marketplace_site_agent_identities/marketplace_site_agent_identities_retrieve.py +140 -0
- waldur_api_client/api/marketplace_site_agent_identities/marketplace_site_agent_identities_update.py +162 -0
- waldur_api_client/api/marketplace_site_agent_processors/__init__.py +1 -0
- waldur_api_client/api/marketplace_site_agent_processors/marketplace_site_agent_processors_count.py +240 -0
- waldur_api_client/api/marketplace_site_agent_processors/marketplace_site_agent_processors_list.py +241 -0
- waldur_api_client/api/marketplace_site_agent_processors/marketplace_site_agent_processors_retrieve.py +142 -0
- waldur_api_client/api/marketplace_site_agent_services/__init__.py +1 -0
- waldur_api_client/api/marketplace_site_agent_services/marketplace_site_agent_services_count.py +229 -0
- waldur_api_client/api/marketplace_site_agent_services/marketplace_site_agent_services_list.py +230 -0
- waldur_api_client/api/marketplace_site_agent_services/marketplace_site_agent_services_register_processor.py +172 -0
- waldur_api_client/api/marketplace_site_agent_services/marketplace_site_agent_services_retrieve.py +140 -0
- waldur_api_client/api/marketplace_site_agent_services/marketplace_site_agent_services_set_statistics.py +166 -0
- waldur_api_client/api/marketplace_software_catalogs/__init__.py +1 -0
- waldur_api_client/api/marketplace_software_catalogs/marketplace_software_catalogs_count.py +225 -0
- waldur_api_client/api/marketplace_software_catalogs/marketplace_software_catalogs_create.py +150 -0
- waldur_api_client/api/marketplace_software_catalogs/marketplace_software_catalogs_destroy.py +89 -0
- waldur_api_client/api/marketplace_software_catalogs/marketplace_software_catalogs_list.py +226 -0
- waldur_api_client/api/marketplace_software_catalogs/marketplace_software_catalogs_partial_update.py +164 -0
- waldur_api_client/api/marketplace_software_catalogs/marketplace_software_catalogs_retrieve.py +142 -0
- waldur_api_client/api/marketplace_software_catalogs/marketplace_software_catalogs_update.py +164 -0
- waldur_api_client/api/marketplace_software_packages/__init__.py +1 -0
- waldur_api_client/api/marketplace_software_packages/marketplace_software_packages_count.py +352 -0
- waldur_api_client/api/marketplace_software_packages/marketplace_software_packages_create.py +150 -0
- waldur_api_client/api/marketplace_software_packages/marketplace_software_packages_destroy.py +89 -0
- waldur_api_client/api/marketplace_software_packages/marketplace_software_packages_list.py +353 -0
- waldur_api_client/api/marketplace_software_packages/marketplace_software_packages_partial_update.py +164 -0
- waldur_api_client/api/marketplace_software_packages/marketplace_software_packages_retrieve.py +142 -0
- waldur_api_client/api/marketplace_software_packages/marketplace_software_packages_update.py +164 -0
- waldur_api_client/api/marketplace_software_targets/__init__.py +1 -0
- waldur_api_client/api/marketplace_software_targets/marketplace_software_targets_count.py +313 -0
- waldur_api_client/api/marketplace_software_targets/marketplace_software_targets_create.py +117 -0
- waldur_api_client/api/marketplace_software_targets/marketplace_software_targets_destroy.py +89 -0
- waldur_api_client/api/marketplace_software_targets/marketplace_software_targets_list.py +314 -0
- waldur_api_client/api/marketplace_software_targets/marketplace_software_targets_partial_update.py +142 -0
- waldur_api_client/api/marketplace_software_targets/marketplace_software_targets_retrieve.py +142 -0
- waldur_api_client/api/marketplace_software_targets/marketplace_software_targets_update.py +142 -0
- waldur_api_client/api/marketplace_software_versions/__init__.py +1 -0
- waldur_api_client/api/marketplace_software_versions/marketplace_software_versions_count.py +310 -0
- waldur_api_client/api/marketplace_software_versions/marketplace_software_versions_create.py +117 -0
- waldur_api_client/api/marketplace_software_versions/marketplace_software_versions_destroy.py +89 -0
- waldur_api_client/api/marketplace_software_versions/marketplace_software_versions_list.py +311 -0
- waldur_api_client/api/marketplace_software_versions/marketplace_software_versions_partial_update.py +142 -0
- waldur_api_client/api/marketplace_software_versions/marketplace_software_versions_retrieve.py +142 -0
- waldur_api_client/api/marketplace_software_versions/marketplace_software_versions_update.py +142 -0
- waldur_api_client/api/onboarding_justifications/onboarding_justifications_approve.py +168 -0
- waldur_api_client/api/onboarding_justifications/onboarding_justifications_reject.py +168 -0
- waldur_api_client/api/projects/projects_add_user.py +17 -10
- waldur_api_client/api/projects/projects_count.py +30 -0
- waldur_api_client/api/projects/projects_list.py +30 -0
- waldur_api_client/api/projects/projects_move_project.py +19 -10
- waldur_api_client/api/projects/projects_recover.py +166 -0
- waldur_api_client/api/proposal_proposals/proposal_proposals_add_user.py +17 -10
- waldur_api_client/api/proposal_protected_calls/proposal_protected_calls_add_user.py +17 -10
- waldur_api_client/api/remote_waldur_api/remote_waldur_api_pull_resource_robot_accounts.py +88 -0
- waldur_api_client/models/__init__.py +152 -4
- waldur_api_client/models/agent_event_subscription_create_request.py +71 -0
- waldur_api_client/models/agent_identity.py +211 -0
- waldur_api_client/models/agent_identity_request.py +157 -0
- waldur_api_client/models/agent_processor.py +170 -0
- waldur_api_client/models/agent_processor_create_request.py +89 -0
- waldur_api_client/models/agent_service.py +172 -0
- waldur_api_client/models/agent_service_create_request.py +81 -0
- waldur_api_client/models/agent_service_state.py +10 -0
- waldur_api_client/models/agent_service_statistics_request.py +59 -0
- waldur_api_client/models/base_provider_plan.py +21 -0
- waldur_api_client/models/base_public_plan.py +21 -0
- waldur_api_client/models/booking_offerings_list_field_item.py +2 -0
- waldur_api_client/models/booking_offerings_retrieve_field_item.py +2 -0
- waldur_api_client/models/booking_resource.py +33 -0
- waldur_api_client/models/booking_resource_renewal_date_type_0.py +53 -0
- waldur_api_client/models/booking_resources_list_field_item.py +1 -0
- waldur_api_client/models/booking_resources_retrieve_field_item.py +1 -0
- waldur_api_client/models/call_managing_organisations_add_user_response_400.py +65 -0
- waldur_api_client/models/constance_settings.py +81 -45
- waldur_api_client/models/constance_settings_request.py +81 -45
- waldur_api_client/models/constance_settings_request_form.py +81 -45
- waldur_api_client/models/constance_settings_request_multipart.py +134 -71
- waldur_api_client/models/customer_component_usage_policy.py +175 -0
- waldur_api_client/models/customer_component_usage_policy_request.py +102 -0
- waldur_api_client/models/customers_add_user_response_400.py +65 -0
- waldur_api_client/models/discount_config_request.py +91 -0
- waldur_api_client/models/discounts_update_request.py +65 -0
- waldur_api_client/models/discounts_update_request_discounts.py +57 -0
- waldur_api_client/models/issue.py +0 -25
- waldur_api_client/models/managed_rancher_cluster_resources_list_field_item.py +1 -0
- waldur_api_client/models/managed_rancher_cluster_resources_retrieve_field_item.py +1 -0
- waldur_api_client/models/marketplace_orders_count_state_item.py +1 -0
- waldur_api_client/models/marketplace_orders_list_field_item.py +2 -0
- waldur_api_client/models/marketplace_orders_list_state_item.py +1 -0
- waldur_api_client/models/marketplace_orders_retrieve_field_item.py +2 -0
- waldur_api_client/models/marketplace_provider_offerings_add_user_response_400.py +65 -0
- waldur_api_client/models/marketplace_provider_offerings_list_course_accounts_retrieve_field_item.py +2 -0
- waldur_api_client/models/marketplace_provider_offerings_list_customer_service_accounts_retrieve_field_item.py +2 -0
- waldur_api_client/models/marketplace_provider_offerings_list_field_item.py +2 -0
- waldur_api_client/models/marketplace_provider_offerings_list_project_service_accounts_retrieve_field_item.py +2 -0
- waldur_api_client/models/marketplace_provider_offerings_retrieve_field_item.py +2 -0
- waldur_api_client/models/marketplace_provider_offerings_stats_retrieve_field_item.py +2 -0
- waldur_api_client/models/marketplace_provider_offerings_user_has_resource_access_retrieve_field_item.py +2 -0
- waldur_api_client/models/marketplace_provider_resources_details_retrieve_field_item.py +1 -0
- waldur_api_client/models/marketplace_provider_resources_list_field_item.py +1 -0
- waldur_api_client/models/marketplace_provider_resources_retrieve_field_item.py +1 -0
- waldur_api_client/models/marketplace_public_offerings_list_field_item.py +2 -0
- waldur_api_client/models/marketplace_public_offerings_retrieve_field_item.py +2 -0
- waldur_api_client/models/marketplace_resources_details_retrieve_field_item.py +1 -0
- waldur_api_client/models/marketplace_resources_list_field_item.py +1 -0
- waldur_api_client/models/marketplace_resources_retrieve_field_item.py +1 -0
- waldur_api_client/models/marketplace_service_providers_add_user_response_400.py +65 -0
- waldur_api_client/models/marketplace_site_agent_services_count_state_item.py +10 -0
- waldur_api_client/models/marketplace_site_agent_services_list_state_item.py +10 -0
- waldur_api_client/models/marketplace_software_catalogs_count_o_item.py +15 -0
- waldur_api_client/models/marketplace_software_catalogs_list_o_item.py +15 -0
- waldur_api_client/models/marketplace_software_packages_count_o_item.py +17 -0
- waldur_api_client/models/marketplace_software_packages_list_o_item.py +17 -0
- waldur_api_client/models/marketplace_software_targets_count_o_item.py +15 -0
- waldur_api_client/models/marketplace_software_targets_list_o_item.py +15 -0
- waldur_api_client/models/marketplace_software_versions_count_o_item.py +15 -0
- waldur_api_client/models/marketplace_software_versions_list_o_item.py +15 -0
- waldur_api_client/models/merged_plugin_options.py +47 -8
- waldur_api_client/models/merged_plugin_options_request.py +47 -8
- waldur_api_client/models/nested_agent_processor.py +154 -0
- waldur_api_client/models/nested_agent_service.py +134 -0
- waldur_api_client/models/nested_agent_service_request.py +90 -0
- waldur_api_client/models/nested_customer_usage_policy_component.py +103 -0
- waldur_api_client/models/nested_customer_usage_policy_component_request.py +87 -0
- waldur_api_client/models/nested_partition.py +412 -0
- waldur_api_client/models/nested_partition_request.py +397 -0
- waldur_api_client/models/nested_plan_component.py +155 -0
- waldur_api_client/models/nested_plan_component_request.py +128 -0
- waldur_api_client/models/nested_software_catalog.py +134 -0
- waldur_api_client/models/nested_software_catalog_catalog.py +86 -0
- waldur_api_client/models/nested_software_catalog_partition.py +86 -0
- waldur_api_client/models/nested_software_catalog_request.py +68 -0
- waldur_api_client/models/nested_software_target.py +84 -0
- waldur_api_client/models/nested_software_target_request.py +75 -0
- waldur_api_client/models/nested_software_version.py +124 -0
- waldur_api_client/models/nested_software_version_request.py +93 -0
- waldur_api_client/models/observable_object_type_enum.py +14 -0
- waldur_api_client/models/offering.py +42 -0
- waldur_api_client/models/offering_create.py +36 -0
- waldur_api_client/models/offering_partition.py +440 -0
- waldur_api_client/models/offering_partition_request.py +406 -0
- waldur_api_client/models/offering_software_catalog.py +176 -0
- waldur_api_client/models/offering_software_catalog_request.py +118 -0
- waldur_api_client/models/onboarding_justification.py +35 -6
- waldur_api_client/models/onboarding_justification_create_request.py +8 -5
- waldur_api_client/models/onboarding_justification_request.py +20 -6
- waldur_api_client/models/onboarding_justification_review_request.py +59 -0
- waldur_api_client/models/order_backend_id_request.py +59 -0
- waldur_api_client/models/order_details.py +39 -0
- waldur_api_client/models/order_state.py +1 -0
- waldur_api_client/models/patched_customer_component_usage_policy_request.py +104 -0
- waldur_api_client/models/patched_offering_partition_request.py +412 -0
- waldur_api_client/models/patched_offering_software_catalog_update_request.py +131 -0
- waldur_api_client/models/patched_onboarding_justification_request.py +16 -5
- waldur_api_client/models/patched_project_request.py +9 -0
- waldur_api_client/models/patched_project_request_form.py +9 -0
- waldur_api_client/models/patched_project_request_multipart.py +12 -0
- waldur_api_client/models/patched_software_catalog_request.py +86 -0
- waldur_api_client/models/patched_software_package_request.py +86 -0
- waldur_api_client/models/plan_component.py +40 -0
- waldur_api_client/models/project.py +27 -0
- waldur_api_client/models/project_recovery_request.py +70 -0
- waldur_api_client/models/project_request.py +9 -0
- waldur_api_client/models/project_request_form.py +9 -0
- waldur_api_client/models/project_request_multipart.py +12 -0
- waldur_api_client/models/project_user.py +21 -4
- waldur_api_client/models/projects_add_user_response_400.py +65 -0
- waldur_api_client/models/projects_list_field_item.py +3 -0
- waldur_api_client/models/projects_move_project_response_400.py +65 -0
- waldur_api_client/models/projects_retrieve_field_item.py +3 -0
- waldur_api_client/models/proposal_proposals_add_user_response_400.py +65 -0
- waldur_api_client/models/proposal_protected_calls_add_user_response_400.py +65 -0
- waldur_api_client/models/provider_offering_details.py +42 -0
- waldur_api_client/models/provider_plan_details.py +18 -0
- waldur_api_client/models/public_offering_details.py +42 -0
- waldur_api_client/models/remote_resource_order_remote_state_enum.py +1 -0
- waldur_api_client/models/{set_offerings_username.py → remove_partition_request.py} +11 -19
- waldur_api_client/models/remove_software_catalog_request.py +60 -0
- waldur_api_client/models/resource.py +33 -0
- waldur_api_client/models/resource_downscaled_request.py +59 -0
- waldur_api_client/models/resource_paused_request.py +59 -0
- waldur_api_client/models/resource_renewal_date_type_0.py +53 -0
- waldur_api_client/models/resource_restrict_member_access_request.py +59 -0
- waldur_api_client/models/software_catalog.py +130 -0
- waldur_api_client/models/software_catalog_request.py +87 -0
- waldur_api_client/models/software_catalog_uuid.py +60 -0
- waldur_api_client/models/software_package.py +168 -0
- waldur_api_client/models/software_package_request.py +87 -0
- waldur_api_client/models/software_target.py +110 -0
- waldur_api_client/models/software_version.py +135 -0
- waldur_api_client/models/user.py +20 -0
- waldur_api_client/models/users_list_field_item.py +1 -0
- waldur_api_client/models/users_me_retrieve_field_item.py +1 -0
- waldur_api_client/models/users_retrieve_field_item.py +1 -0
- {waldur_api_client-7.8.4.dist-info → waldur_api_client-7.8.5.dist-info}/METADATA +1 -1
- {waldur_api_client-7.8.4.dist-info → waldur_api_client-7.8.5.dist-info}/RECORD +256 -103
- waldur_api_client/models/marketplace_service_providers_projects_list_field_item.py +0 -37
- {waldur_api_client-7.8.4.dist-info → waldur_api_client-7.8.5.dist-info}/WHEEL +0 -0
- {waldur_api_client-7.8.4.dist-info → waldur_api_client-7.8.5.dist-info}/licenses/LICENSE +0 -0
|
@@ -26,6 +26,8 @@ def _get_kwargs(
|
|
|
26
26
|
customer_native_name: Union[Unset, str] = UNSET,
|
|
27
27
|
description: Union[Unset, str] = UNSET,
|
|
28
28
|
field: Union[Unset, list[ProjectsListFieldItem]] = UNSET,
|
|
29
|
+
include_terminated: Union[Unset, bool] = UNSET,
|
|
30
|
+
is_removed: Union[Unset, bool] = UNSET,
|
|
29
31
|
modified: Union[Unset, datetime.datetime] = UNSET,
|
|
30
32
|
name: Union[Unset, str] = UNSET,
|
|
31
33
|
name_exact: Union[Unset, str] = UNSET,
|
|
@@ -76,6 +78,10 @@ def _get_kwargs(
|
|
|
76
78
|
|
|
77
79
|
params["field"] = json_field
|
|
78
80
|
|
|
81
|
+
params["include_terminated"] = include_terminated
|
|
82
|
+
|
|
83
|
+
params["is_removed"] = is_removed
|
|
84
|
+
|
|
79
85
|
json_modified: Union[Unset, str] = UNSET
|
|
80
86
|
if not isinstance(modified, Unset):
|
|
81
87
|
json_modified = modified.isoformat()
|
|
@@ -151,6 +157,8 @@ def sync_detailed(
|
|
|
151
157
|
customer_native_name: Union[Unset, str] = UNSET,
|
|
152
158
|
description: Union[Unset, str] = UNSET,
|
|
153
159
|
field: Union[Unset, list[ProjectsListFieldItem]] = UNSET,
|
|
160
|
+
include_terminated: Union[Unset, bool] = UNSET,
|
|
161
|
+
is_removed: Union[Unset, bool] = UNSET,
|
|
154
162
|
modified: Union[Unset, datetime.datetime] = UNSET,
|
|
155
163
|
name: Union[Unset, str] = UNSET,
|
|
156
164
|
name_exact: Union[Unset, str] = UNSET,
|
|
@@ -174,6 +182,8 @@ def sync_detailed(
|
|
|
174
182
|
customer_native_name (Union[Unset, str]):
|
|
175
183
|
description (Union[Unset, str]):
|
|
176
184
|
field (Union[Unset, list[ProjectsListFieldItem]]):
|
|
185
|
+
include_terminated (Union[Unset, bool]):
|
|
186
|
+
is_removed (Union[Unset, bool]):
|
|
177
187
|
modified (Union[Unset, datetime.datetime]):
|
|
178
188
|
name (Union[Unset, str]):
|
|
179
189
|
name_exact (Union[Unset, str]):
|
|
@@ -203,6 +213,8 @@ def sync_detailed(
|
|
|
203
213
|
customer_native_name=customer_native_name,
|
|
204
214
|
description=description,
|
|
205
215
|
field=field,
|
|
216
|
+
include_terminated=include_terminated,
|
|
217
|
+
is_removed=is_removed,
|
|
206
218
|
modified=modified,
|
|
207
219
|
name=name,
|
|
208
220
|
name_exact=name_exact,
|
|
@@ -234,6 +246,8 @@ def sync(
|
|
|
234
246
|
customer_native_name: Union[Unset, str] = UNSET,
|
|
235
247
|
description: Union[Unset, str] = UNSET,
|
|
236
248
|
field: Union[Unset, list[ProjectsListFieldItem]] = UNSET,
|
|
249
|
+
include_terminated: Union[Unset, bool] = UNSET,
|
|
250
|
+
is_removed: Union[Unset, bool] = UNSET,
|
|
237
251
|
modified: Union[Unset, datetime.datetime] = UNSET,
|
|
238
252
|
name: Union[Unset, str] = UNSET,
|
|
239
253
|
name_exact: Union[Unset, str] = UNSET,
|
|
@@ -257,6 +271,8 @@ def sync(
|
|
|
257
271
|
customer_native_name (Union[Unset, str]):
|
|
258
272
|
description (Union[Unset, str]):
|
|
259
273
|
field (Union[Unset, list[ProjectsListFieldItem]]):
|
|
274
|
+
include_terminated (Union[Unset, bool]):
|
|
275
|
+
is_removed (Union[Unset, bool]):
|
|
260
276
|
modified (Union[Unset, datetime.datetime]):
|
|
261
277
|
name (Union[Unset, str]):
|
|
262
278
|
name_exact (Union[Unset, str]):
|
|
@@ -287,6 +303,8 @@ def sync(
|
|
|
287
303
|
customer_native_name=customer_native_name,
|
|
288
304
|
description=description,
|
|
289
305
|
field=field,
|
|
306
|
+
include_terminated=include_terminated,
|
|
307
|
+
is_removed=is_removed,
|
|
290
308
|
modified=modified,
|
|
291
309
|
name=name,
|
|
292
310
|
name_exact=name_exact,
|
|
@@ -312,6 +330,8 @@ async def asyncio_detailed(
|
|
|
312
330
|
customer_native_name: Union[Unset, str] = UNSET,
|
|
313
331
|
description: Union[Unset, str] = UNSET,
|
|
314
332
|
field: Union[Unset, list[ProjectsListFieldItem]] = UNSET,
|
|
333
|
+
include_terminated: Union[Unset, bool] = UNSET,
|
|
334
|
+
is_removed: Union[Unset, bool] = UNSET,
|
|
315
335
|
modified: Union[Unset, datetime.datetime] = UNSET,
|
|
316
336
|
name: Union[Unset, str] = UNSET,
|
|
317
337
|
name_exact: Union[Unset, str] = UNSET,
|
|
@@ -335,6 +355,8 @@ async def asyncio_detailed(
|
|
|
335
355
|
customer_native_name (Union[Unset, str]):
|
|
336
356
|
description (Union[Unset, str]):
|
|
337
357
|
field (Union[Unset, list[ProjectsListFieldItem]]):
|
|
358
|
+
include_terminated (Union[Unset, bool]):
|
|
359
|
+
is_removed (Union[Unset, bool]):
|
|
338
360
|
modified (Union[Unset, datetime.datetime]):
|
|
339
361
|
name (Union[Unset, str]):
|
|
340
362
|
name_exact (Union[Unset, str]):
|
|
@@ -364,6 +386,8 @@ async def asyncio_detailed(
|
|
|
364
386
|
customer_native_name=customer_native_name,
|
|
365
387
|
description=description,
|
|
366
388
|
field=field,
|
|
389
|
+
include_terminated=include_terminated,
|
|
390
|
+
is_removed=is_removed,
|
|
367
391
|
modified=modified,
|
|
368
392
|
name=name,
|
|
369
393
|
name_exact=name_exact,
|
|
@@ -393,6 +417,8 @@ async def asyncio(
|
|
|
393
417
|
customer_native_name: Union[Unset, str] = UNSET,
|
|
394
418
|
description: Union[Unset, str] = UNSET,
|
|
395
419
|
field: Union[Unset, list[ProjectsListFieldItem]] = UNSET,
|
|
420
|
+
include_terminated: Union[Unset, bool] = UNSET,
|
|
421
|
+
is_removed: Union[Unset, bool] = UNSET,
|
|
396
422
|
modified: Union[Unset, datetime.datetime] = UNSET,
|
|
397
423
|
name: Union[Unset, str] = UNSET,
|
|
398
424
|
name_exact: Union[Unset, str] = UNSET,
|
|
@@ -416,6 +442,8 @@ async def asyncio(
|
|
|
416
442
|
customer_native_name (Union[Unset, str]):
|
|
417
443
|
description (Union[Unset, str]):
|
|
418
444
|
field (Union[Unset, list[ProjectsListFieldItem]]):
|
|
445
|
+
include_terminated (Union[Unset, bool]):
|
|
446
|
+
is_removed (Union[Unset, bool]):
|
|
419
447
|
modified (Union[Unset, datetime.datetime]):
|
|
420
448
|
name (Union[Unset, str]):
|
|
421
449
|
name_exact (Union[Unset, str]):
|
|
@@ -447,6 +475,8 @@ async def asyncio(
|
|
|
447
475
|
customer_native_name=customer_native_name,
|
|
448
476
|
description=description,
|
|
449
477
|
field=field,
|
|
478
|
+
include_terminated=include_terminated,
|
|
479
|
+
is_removed=is_removed,
|
|
450
480
|
modified=modified,
|
|
451
481
|
name=name,
|
|
452
482
|
name_exact=name_exact,
|
|
@@ -8,6 +8,7 @@ from ... import errors
|
|
|
8
8
|
from ...client import AuthenticatedClient, Client
|
|
9
9
|
from ...models.move_project_request import MoveProjectRequest
|
|
10
10
|
from ...models.project import Project
|
|
11
|
+
from ...models.projects_move_project_response_400 import ProjectsMoveProjectResponse400
|
|
11
12
|
from ...types import Response
|
|
12
13
|
|
|
13
14
|
|
|
@@ -31,15 +32,23 @@ def _get_kwargs(
|
|
|
31
32
|
return _kwargs
|
|
32
33
|
|
|
33
34
|
|
|
34
|
-
def _parse_response(
|
|
35
|
+
def _parse_response(
|
|
36
|
+
*, client: Union[AuthenticatedClient, Client], response: httpx.Response
|
|
37
|
+
) -> Union[Project, ProjectsMoveProjectResponse400]:
|
|
35
38
|
if response.status_code == 200:
|
|
36
39
|
response_200 = Project.from_dict(response.json())
|
|
37
40
|
|
|
38
41
|
return response_200
|
|
42
|
+
if response.status_code == 400:
|
|
43
|
+
response_400 = ProjectsMoveProjectResponse400.from_dict(response.json())
|
|
44
|
+
|
|
45
|
+
return response_400
|
|
39
46
|
raise errors.UnexpectedStatus(response.status_code, response.content)
|
|
40
47
|
|
|
41
48
|
|
|
42
|
-
def _build_response(
|
|
49
|
+
def _build_response(
|
|
50
|
+
*, client: Union[AuthenticatedClient, Client], response: httpx.Response
|
|
51
|
+
) -> Response[Union[Project, ProjectsMoveProjectResponse400]]:
|
|
43
52
|
return Response(
|
|
44
53
|
status_code=HTTPStatus(response.status_code),
|
|
45
54
|
content=response.content,
|
|
@@ -53,7 +62,7 @@ def sync_detailed(
|
|
|
53
62
|
*,
|
|
54
63
|
client: AuthenticatedClient,
|
|
55
64
|
body: MoveProjectRequest,
|
|
56
|
-
) -> Response[Project]:
|
|
65
|
+
) -> Response[Union[Project, ProjectsMoveProjectResponse400]]:
|
|
57
66
|
"""
|
|
58
67
|
Args:
|
|
59
68
|
uuid (UUID):
|
|
@@ -64,7 +73,7 @@ def sync_detailed(
|
|
|
64
73
|
httpx.TimeoutException: If the request takes longer than Client.timeout.
|
|
65
74
|
|
|
66
75
|
Returns:
|
|
67
|
-
Response[Project]
|
|
76
|
+
Response[Union[Project, ProjectsMoveProjectResponse400]]
|
|
68
77
|
"""
|
|
69
78
|
|
|
70
79
|
kwargs = _get_kwargs(
|
|
@@ -84,7 +93,7 @@ def sync(
|
|
|
84
93
|
*,
|
|
85
94
|
client: AuthenticatedClient,
|
|
86
95
|
body: MoveProjectRequest,
|
|
87
|
-
) -> Project:
|
|
96
|
+
) -> Union[Project, ProjectsMoveProjectResponse400]:
|
|
88
97
|
"""
|
|
89
98
|
Args:
|
|
90
99
|
uuid (UUID):
|
|
@@ -95,7 +104,7 @@ def sync(
|
|
|
95
104
|
httpx.TimeoutException: If the request takes longer than Client.timeout.
|
|
96
105
|
|
|
97
106
|
Returns:
|
|
98
|
-
Project
|
|
107
|
+
Union[Project, ProjectsMoveProjectResponse400]
|
|
99
108
|
"""
|
|
100
109
|
|
|
101
110
|
return sync_detailed(
|
|
@@ -110,7 +119,7 @@ async def asyncio_detailed(
|
|
|
110
119
|
*,
|
|
111
120
|
client: AuthenticatedClient,
|
|
112
121
|
body: MoveProjectRequest,
|
|
113
|
-
) -> Response[Project]:
|
|
122
|
+
) -> Response[Union[Project, ProjectsMoveProjectResponse400]]:
|
|
114
123
|
"""
|
|
115
124
|
Args:
|
|
116
125
|
uuid (UUID):
|
|
@@ -121,7 +130,7 @@ async def asyncio_detailed(
|
|
|
121
130
|
httpx.TimeoutException: If the request takes longer than Client.timeout.
|
|
122
131
|
|
|
123
132
|
Returns:
|
|
124
|
-
Response[Project]
|
|
133
|
+
Response[Union[Project, ProjectsMoveProjectResponse400]]
|
|
125
134
|
"""
|
|
126
135
|
|
|
127
136
|
kwargs = _get_kwargs(
|
|
@@ -139,7 +148,7 @@ async def asyncio(
|
|
|
139
148
|
*,
|
|
140
149
|
client: AuthenticatedClient,
|
|
141
150
|
body: MoveProjectRequest,
|
|
142
|
-
) -> Project:
|
|
151
|
+
) -> Union[Project, ProjectsMoveProjectResponse400]:
|
|
143
152
|
"""
|
|
144
153
|
Args:
|
|
145
154
|
uuid (UUID):
|
|
@@ -150,7 +159,7 @@ async def asyncio(
|
|
|
150
159
|
httpx.TimeoutException: If the request takes longer than Client.timeout.
|
|
151
160
|
|
|
152
161
|
Returns:
|
|
153
|
-
Project
|
|
162
|
+
Union[Project, ProjectsMoveProjectResponse400]
|
|
154
163
|
"""
|
|
155
164
|
|
|
156
165
|
return (
|
|
@@ -0,0 +1,166 @@
|
|
|
1
|
+
from http import HTTPStatus
|
|
2
|
+
from typing import Any, Union
|
|
3
|
+
from uuid import UUID
|
|
4
|
+
|
|
5
|
+
import httpx
|
|
6
|
+
|
|
7
|
+
from ... import errors
|
|
8
|
+
from ...client import AuthenticatedClient, Client
|
|
9
|
+
from ...models.project import Project
|
|
10
|
+
from ...models.project_recovery_request import ProjectRecoveryRequest
|
|
11
|
+
from ...types import Response
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
def _get_kwargs(
|
|
15
|
+
uuid: UUID,
|
|
16
|
+
*,
|
|
17
|
+
body: ProjectRecoveryRequest,
|
|
18
|
+
) -> dict[str, Any]:
|
|
19
|
+
headers: dict[str, Any] = {}
|
|
20
|
+
|
|
21
|
+
_kwargs: dict[str, Any] = {
|
|
22
|
+
"method": "post",
|
|
23
|
+
"url": f"/api/projects/{uuid}/recover/",
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
_kwargs["json"] = body.to_dict()
|
|
27
|
+
|
|
28
|
+
headers["Content-Type"] = "application/json"
|
|
29
|
+
|
|
30
|
+
_kwargs["headers"] = headers
|
|
31
|
+
return _kwargs
|
|
32
|
+
|
|
33
|
+
|
|
34
|
+
def _parse_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> Project:
|
|
35
|
+
if response.status_code == 200:
|
|
36
|
+
response_200 = Project.from_dict(response.json())
|
|
37
|
+
|
|
38
|
+
return response_200
|
|
39
|
+
raise errors.UnexpectedStatus(response.status_code, response.content)
|
|
40
|
+
|
|
41
|
+
|
|
42
|
+
def _build_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> Response[Project]:
|
|
43
|
+
return Response(
|
|
44
|
+
status_code=HTTPStatus(response.status_code),
|
|
45
|
+
content=response.content,
|
|
46
|
+
headers=response.headers,
|
|
47
|
+
parsed=_parse_response(client=client, response=response),
|
|
48
|
+
)
|
|
49
|
+
|
|
50
|
+
|
|
51
|
+
def sync_detailed(
|
|
52
|
+
uuid: UUID,
|
|
53
|
+
*,
|
|
54
|
+
client: AuthenticatedClient,
|
|
55
|
+
body: ProjectRecoveryRequest,
|
|
56
|
+
) -> Response[Project]:
|
|
57
|
+
"""Recover a soft-deleted project with team member restoration
|
|
58
|
+
|
|
59
|
+
Args:
|
|
60
|
+
uuid (UUID):
|
|
61
|
+
body (ProjectRecoveryRequest):
|
|
62
|
+
|
|
63
|
+
Raises:
|
|
64
|
+
errors.UnexpectedStatus: If the server returns an undocumented status code.
|
|
65
|
+
httpx.TimeoutException: If the request takes longer than Client.timeout.
|
|
66
|
+
|
|
67
|
+
Returns:
|
|
68
|
+
Response[Project]
|
|
69
|
+
"""
|
|
70
|
+
|
|
71
|
+
kwargs = _get_kwargs(
|
|
72
|
+
uuid=uuid,
|
|
73
|
+
body=body,
|
|
74
|
+
)
|
|
75
|
+
|
|
76
|
+
response = client.get_httpx_client().request(
|
|
77
|
+
**kwargs,
|
|
78
|
+
)
|
|
79
|
+
|
|
80
|
+
return _build_response(client=client, response=response)
|
|
81
|
+
|
|
82
|
+
|
|
83
|
+
def sync(
|
|
84
|
+
uuid: UUID,
|
|
85
|
+
*,
|
|
86
|
+
client: AuthenticatedClient,
|
|
87
|
+
body: ProjectRecoveryRequest,
|
|
88
|
+
) -> Project:
|
|
89
|
+
"""Recover a soft-deleted project with team member restoration
|
|
90
|
+
|
|
91
|
+
Args:
|
|
92
|
+
uuid (UUID):
|
|
93
|
+
body (ProjectRecoveryRequest):
|
|
94
|
+
|
|
95
|
+
Raises:
|
|
96
|
+
errors.UnexpectedStatus: If the server returns an undocumented status code.
|
|
97
|
+
httpx.TimeoutException: If the request takes longer than Client.timeout.
|
|
98
|
+
|
|
99
|
+
Returns:
|
|
100
|
+
Project
|
|
101
|
+
"""
|
|
102
|
+
|
|
103
|
+
return sync_detailed(
|
|
104
|
+
uuid=uuid,
|
|
105
|
+
client=client,
|
|
106
|
+
body=body,
|
|
107
|
+
).parsed
|
|
108
|
+
|
|
109
|
+
|
|
110
|
+
async def asyncio_detailed(
|
|
111
|
+
uuid: UUID,
|
|
112
|
+
*,
|
|
113
|
+
client: AuthenticatedClient,
|
|
114
|
+
body: ProjectRecoveryRequest,
|
|
115
|
+
) -> Response[Project]:
|
|
116
|
+
"""Recover a soft-deleted project with team member restoration
|
|
117
|
+
|
|
118
|
+
Args:
|
|
119
|
+
uuid (UUID):
|
|
120
|
+
body (ProjectRecoveryRequest):
|
|
121
|
+
|
|
122
|
+
Raises:
|
|
123
|
+
errors.UnexpectedStatus: If the server returns an undocumented status code.
|
|
124
|
+
httpx.TimeoutException: If the request takes longer than Client.timeout.
|
|
125
|
+
|
|
126
|
+
Returns:
|
|
127
|
+
Response[Project]
|
|
128
|
+
"""
|
|
129
|
+
|
|
130
|
+
kwargs = _get_kwargs(
|
|
131
|
+
uuid=uuid,
|
|
132
|
+
body=body,
|
|
133
|
+
)
|
|
134
|
+
|
|
135
|
+
response = await client.get_async_httpx_client().request(**kwargs)
|
|
136
|
+
|
|
137
|
+
return _build_response(client=client, response=response)
|
|
138
|
+
|
|
139
|
+
|
|
140
|
+
async def asyncio(
|
|
141
|
+
uuid: UUID,
|
|
142
|
+
*,
|
|
143
|
+
client: AuthenticatedClient,
|
|
144
|
+
body: ProjectRecoveryRequest,
|
|
145
|
+
) -> Project:
|
|
146
|
+
"""Recover a soft-deleted project with team member restoration
|
|
147
|
+
|
|
148
|
+
Args:
|
|
149
|
+
uuid (UUID):
|
|
150
|
+
body (ProjectRecoveryRequest):
|
|
151
|
+
|
|
152
|
+
Raises:
|
|
153
|
+
errors.UnexpectedStatus: If the server returns an undocumented status code.
|
|
154
|
+
httpx.TimeoutException: If the request takes longer than Client.timeout.
|
|
155
|
+
|
|
156
|
+
Returns:
|
|
157
|
+
Project
|
|
158
|
+
"""
|
|
159
|
+
|
|
160
|
+
return (
|
|
161
|
+
await asyncio_detailed(
|
|
162
|
+
uuid=uuid,
|
|
163
|
+
client=client,
|
|
164
|
+
body=body,
|
|
165
|
+
)
|
|
166
|
+
).parsed
|
|
@@ -6,6 +6,7 @@ import httpx
|
|
|
6
6
|
|
|
7
7
|
from ... import errors
|
|
8
8
|
from ...client import AuthenticatedClient, Client
|
|
9
|
+
from ...models.proposal_proposals_add_user_response_400 import ProposalProposalsAddUserResponse400
|
|
9
10
|
from ...models.user_role_create_request import UserRoleCreateRequest
|
|
10
11
|
from ...models.user_role_expiration_time import UserRoleExpirationTime
|
|
11
12
|
from ...types import Response
|
|
@@ -31,17 +32,23 @@ def _get_kwargs(
|
|
|
31
32
|
return _kwargs
|
|
32
33
|
|
|
33
34
|
|
|
34
|
-
def _parse_response(
|
|
35
|
+
def _parse_response(
|
|
36
|
+
*, client: Union[AuthenticatedClient, Client], response: httpx.Response
|
|
37
|
+
) -> Union[ProposalProposalsAddUserResponse400, UserRoleExpirationTime]:
|
|
35
38
|
if response.status_code == 201:
|
|
36
39
|
response_201 = UserRoleExpirationTime.from_dict(response.json())
|
|
37
40
|
|
|
38
41
|
return response_201
|
|
42
|
+
if response.status_code == 400:
|
|
43
|
+
response_400 = ProposalProposalsAddUserResponse400.from_dict(response.json())
|
|
44
|
+
|
|
45
|
+
return response_400
|
|
39
46
|
raise errors.UnexpectedStatus(response.status_code, response.content)
|
|
40
47
|
|
|
41
48
|
|
|
42
49
|
def _build_response(
|
|
43
50
|
*, client: Union[AuthenticatedClient, Client], response: httpx.Response
|
|
44
|
-
) -> Response[UserRoleExpirationTime]:
|
|
51
|
+
) -> Response[Union[ProposalProposalsAddUserResponse400, UserRoleExpirationTime]]:
|
|
45
52
|
return Response(
|
|
46
53
|
status_code=HTTPStatus(response.status_code),
|
|
47
54
|
content=response.content,
|
|
@@ -55,7 +62,7 @@ def sync_detailed(
|
|
|
55
62
|
*,
|
|
56
63
|
client: AuthenticatedClient,
|
|
57
64
|
body: UserRoleCreateRequest,
|
|
58
|
-
) -> Response[UserRoleExpirationTime]:
|
|
65
|
+
) -> Response[Union[ProposalProposalsAddUserResponse400, UserRoleExpirationTime]]:
|
|
59
66
|
"""
|
|
60
67
|
Args:
|
|
61
68
|
uuid (UUID):
|
|
@@ -66,7 +73,7 @@ def sync_detailed(
|
|
|
66
73
|
httpx.TimeoutException: If the request takes longer than Client.timeout.
|
|
67
74
|
|
|
68
75
|
Returns:
|
|
69
|
-
Response[UserRoleExpirationTime]
|
|
76
|
+
Response[Union[ProposalProposalsAddUserResponse400, UserRoleExpirationTime]]
|
|
70
77
|
"""
|
|
71
78
|
|
|
72
79
|
kwargs = _get_kwargs(
|
|
@@ -86,7 +93,7 @@ def sync(
|
|
|
86
93
|
*,
|
|
87
94
|
client: AuthenticatedClient,
|
|
88
95
|
body: UserRoleCreateRequest,
|
|
89
|
-
) -> UserRoleExpirationTime:
|
|
96
|
+
) -> Union[ProposalProposalsAddUserResponse400, UserRoleExpirationTime]:
|
|
90
97
|
"""
|
|
91
98
|
Args:
|
|
92
99
|
uuid (UUID):
|
|
@@ -97,7 +104,7 @@ def sync(
|
|
|
97
104
|
httpx.TimeoutException: If the request takes longer than Client.timeout.
|
|
98
105
|
|
|
99
106
|
Returns:
|
|
100
|
-
UserRoleExpirationTime
|
|
107
|
+
Union[ProposalProposalsAddUserResponse400, UserRoleExpirationTime]
|
|
101
108
|
"""
|
|
102
109
|
|
|
103
110
|
return sync_detailed(
|
|
@@ -112,7 +119,7 @@ async def asyncio_detailed(
|
|
|
112
119
|
*,
|
|
113
120
|
client: AuthenticatedClient,
|
|
114
121
|
body: UserRoleCreateRequest,
|
|
115
|
-
) -> Response[UserRoleExpirationTime]:
|
|
122
|
+
) -> Response[Union[ProposalProposalsAddUserResponse400, UserRoleExpirationTime]]:
|
|
116
123
|
"""
|
|
117
124
|
Args:
|
|
118
125
|
uuid (UUID):
|
|
@@ -123,7 +130,7 @@ async def asyncio_detailed(
|
|
|
123
130
|
httpx.TimeoutException: If the request takes longer than Client.timeout.
|
|
124
131
|
|
|
125
132
|
Returns:
|
|
126
|
-
Response[UserRoleExpirationTime]
|
|
133
|
+
Response[Union[ProposalProposalsAddUserResponse400, UserRoleExpirationTime]]
|
|
127
134
|
"""
|
|
128
135
|
|
|
129
136
|
kwargs = _get_kwargs(
|
|
@@ -141,7 +148,7 @@ async def asyncio(
|
|
|
141
148
|
*,
|
|
142
149
|
client: AuthenticatedClient,
|
|
143
150
|
body: UserRoleCreateRequest,
|
|
144
|
-
) -> UserRoleExpirationTime:
|
|
151
|
+
) -> Union[ProposalProposalsAddUserResponse400, UserRoleExpirationTime]:
|
|
145
152
|
"""
|
|
146
153
|
Args:
|
|
147
154
|
uuid (UUID):
|
|
@@ -152,7 +159,7 @@ async def asyncio(
|
|
|
152
159
|
httpx.TimeoutException: If the request takes longer than Client.timeout.
|
|
153
160
|
|
|
154
161
|
Returns:
|
|
155
|
-
UserRoleExpirationTime
|
|
162
|
+
Union[ProposalProposalsAddUserResponse400, UserRoleExpirationTime]
|
|
156
163
|
"""
|
|
157
164
|
|
|
158
165
|
return (
|
|
@@ -6,6 +6,7 @@ import httpx
|
|
|
6
6
|
|
|
7
7
|
from ... import errors
|
|
8
8
|
from ...client import AuthenticatedClient, Client
|
|
9
|
+
from ...models.proposal_protected_calls_add_user_response_400 import ProposalProtectedCallsAddUserResponse400
|
|
9
10
|
from ...models.user_role_create_request import UserRoleCreateRequest
|
|
10
11
|
from ...models.user_role_expiration_time import UserRoleExpirationTime
|
|
11
12
|
from ...types import Response
|
|
@@ -31,17 +32,23 @@ def _get_kwargs(
|
|
|
31
32
|
return _kwargs
|
|
32
33
|
|
|
33
34
|
|
|
34
|
-
def _parse_response(
|
|
35
|
+
def _parse_response(
|
|
36
|
+
*, client: Union[AuthenticatedClient, Client], response: httpx.Response
|
|
37
|
+
) -> Union[ProposalProtectedCallsAddUserResponse400, UserRoleExpirationTime]:
|
|
35
38
|
if response.status_code == 201:
|
|
36
39
|
response_201 = UserRoleExpirationTime.from_dict(response.json())
|
|
37
40
|
|
|
38
41
|
return response_201
|
|
42
|
+
if response.status_code == 400:
|
|
43
|
+
response_400 = ProposalProtectedCallsAddUserResponse400.from_dict(response.json())
|
|
44
|
+
|
|
45
|
+
return response_400
|
|
39
46
|
raise errors.UnexpectedStatus(response.status_code, response.content)
|
|
40
47
|
|
|
41
48
|
|
|
42
49
|
def _build_response(
|
|
43
50
|
*, client: Union[AuthenticatedClient, Client], response: httpx.Response
|
|
44
|
-
) -> Response[UserRoleExpirationTime]:
|
|
51
|
+
) -> Response[Union[ProposalProtectedCallsAddUserResponse400, UserRoleExpirationTime]]:
|
|
45
52
|
return Response(
|
|
46
53
|
status_code=HTTPStatus(response.status_code),
|
|
47
54
|
content=response.content,
|
|
@@ -55,7 +62,7 @@ def sync_detailed(
|
|
|
55
62
|
*,
|
|
56
63
|
client: AuthenticatedClient,
|
|
57
64
|
body: UserRoleCreateRequest,
|
|
58
|
-
) -> Response[UserRoleExpirationTime]:
|
|
65
|
+
) -> Response[Union[ProposalProtectedCallsAddUserResponse400, UserRoleExpirationTime]]:
|
|
59
66
|
"""
|
|
60
67
|
Args:
|
|
61
68
|
uuid (UUID):
|
|
@@ -66,7 +73,7 @@ def sync_detailed(
|
|
|
66
73
|
httpx.TimeoutException: If the request takes longer than Client.timeout.
|
|
67
74
|
|
|
68
75
|
Returns:
|
|
69
|
-
Response[UserRoleExpirationTime]
|
|
76
|
+
Response[Union[ProposalProtectedCallsAddUserResponse400, UserRoleExpirationTime]]
|
|
70
77
|
"""
|
|
71
78
|
|
|
72
79
|
kwargs = _get_kwargs(
|
|
@@ -86,7 +93,7 @@ def sync(
|
|
|
86
93
|
*,
|
|
87
94
|
client: AuthenticatedClient,
|
|
88
95
|
body: UserRoleCreateRequest,
|
|
89
|
-
) -> UserRoleExpirationTime:
|
|
96
|
+
) -> Union[ProposalProtectedCallsAddUserResponse400, UserRoleExpirationTime]:
|
|
90
97
|
"""
|
|
91
98
|
Args:
|
|
92
99
|
uuid (UUID):
|
|
@@ -97,7 +104,7 @@ def sync(
|
|
|
97
104
|
httpx.TimeoutException: If the request takes longer than Client.timeout.
|
|
98
105
|
|
|
99
106
|
Returns:
|
|
100
|
-
UserRoleExpirationTime
|
|
107
|
+
Union[ProposalProtectedCallsAddUserResponse400, UserRoleExpirationTime]
|
|
101
108
|
"""
|
|
102
109
|
|
|
103
110
|
return sync_detailed(
|
|
@@ -112,7 +119,7 @@ async def asyncio_detailed(
|
|
|
112
119
|
*,
|
|
113
120
|
client: AuthenticatedClient,
|
|
114
121
|
body: UserRoleCreateRequest,
|
|
115
|
-
) -> Response[UserRoleExpirationTime]:
|
|
122
|
+
) -> Response[Union[ProposalProtectedCallsAddUserResponse400, UserRoleExpirationTime]]:
|
|
116
123
|
"""
|
|
117
124
|
Args:
|
|
118
125
|
uuid (UUID):
|
|
@@ -123,7 +130,7 @@ async def asyncio_detailed(
|
|
|
123
130
|
httpx.TimeoutException: If the request takes longer than Client.timeout.
|
|
124
131
|
|
|
125
132
|
Returns:
|
|
126
|
-
Response[UserRoleExpirationTime]
|
|
133
|
+
Response[Union[ProposalProtectedCallsAddUserResponse400, UserRoleExpirationTime]]
|
|
127
134
|
"""
|
|
128
135
|
|
|
129
136
|
kwargs = _get_kwargs(
|
|
@@ -141,7 +148,7 @@ async def asyncio(
|
|
|
141
148
|
*,
|
|
142
149
|
client: AuthenticatedClient,
|
|
143
150
|
body: UserRoleCreateRequest,
|
|
144
|
-
) -> UserRoleExpirationTime:
|
|
151
|
+
) -> Union[ProposalProtectedCallsAddUserResponse400, UserRoleExpirationTime]:
|
|
145
152
|
"""
|
|
146
153
|
Args:
|
|
147
154
|
uuid (UUID):
|
|
@@ -152,7 +159,7 @@ async def asyncio(
|
|
|
152
159
|
httpx.TimeoutException: If the request takes longer than Client.timeout.
|
|
153
160
|
|
|
154
161
|
Returns:
|
|
155
|
-
UserRoleExpirationTime
|
|
162
|
+
Union[ProposalProtectedCallsAddUserResponse400, UserRoleExpirationTime]
|
|
156
163
|
"""
|
|
157
164
|
|
|
158
165
|
return (
|
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
from http import HTTPStatus
|
|
2
|
+
from typing import Any, Union
|
|
3
|
+
|
|
4
|
+
import httpx
|
|
5
|
+
|
|
6
|
+
from ... import errors
|
|
7
|
+
from ...client import AuthenticatedClient, Client
|
|
8
|
+
from ...types import Response
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
def _get_kwargs(
|
|
12
|
+
uuid: str,
|
|
13
|
+
) -> dict[str, Any]:
|
|
14
|
+
_kwargs: dict[str, Any] = {
|
|
15
|
+
"method": "post",
|
|
16
|
+
"url": f"/api/remote-waldur-api/pull_resource_robot_accounts/{uuid}/",
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
return _kwargs
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
def _parse_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> Any:
|
|
23
|
+
if response.status_code == 200:
|
|
24
|
+
return None
|
|
25
|
+
raise errors.UnexpectedStatus(response.status_code, response.content)
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
def _build_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> Response[Any]:
|
|
29
|
+
return Response(
|
|
30
|
+
status_code=HTTPStatus(response.status_code),
|
|
31
|
+
content=response.content,
|
|
32
|
+
headers=response.headers,
|
|
33
|
+
parsed=_parse_response(client=client, response=response),
|
|
34
|
+
)
|
|
35
|
+
|
|
36
|
+
|
|
37
|
+
def sync_detailed(
|
|
38
|
+
uuid: str,
|
|
39
|
+
*,
|
|
40
|
+
client: AuthenticatedClient,
|
|
41
|
+
) -> Response[Any]:
|
|
42
|
+
"""
|
|
43
|
+
Args:
|
|
44
|
+
uuid (str):
|
|
45
|
+
|
|
46
|
+
Raises:
|
|
47
|
+
errors.UnexpectedStatus: If the server returns an undocumented status code.
|
|
48
|
+
httpx.TimeoutException: If the request takes longer than Client.timeout.
|
|
49
|
+
|
|
50
|
+
Returns:
|
|
51
|
+
Response[Any]
|
|
52
|
+
"""
|
|
53
|
+
|
|
54
|
+
kwargs = _get_kwargs(
|
|
55
|
+
uuid=uuid,
|
|
56
|
+
)
|
|
57
|
+
|
|
58
|
+
response = client.get_httpx_client().request(
|
|
59
|
+
**kwargs,
|
|
60
|
+
)
|
|
61
|
+
|
|
62
|
+
return _build_response(client=client, response=response)
|
|
63
|
+
|
|
64
|
+
|
|
65
|
+
async def asyncio_detailed(
|
|
66
|
+
uuid: str,
|
|
67
|
+
*,
|
|
68
|
+
client: AuthenticatedClient,
|
|
69
|
+
) -> Response[Any]:
|
|
70
|
+
"""
|
|
71
|
+
Args:
|
|
72
|
+
uuid (str):
|
|
73
|
+
|
|
74
|
+
Raises:
|
|
75
|
+
errors.UnexpectedStatus: If the server returns an undocumented status code.
|
|
76
|
+
httpx.TimeoutException: If the request takes longer than Client.timeout.
|
|
77
|
+
|
|
78
|
+
Returns:
|
|
79
|
+
Response[Any]
|
|
80
|
+
"""
|
|
81
|
+
|
|
82
|
+
kwargs = _get_kwargs(
|
|
83
|
+
uuid=uuid,
|
|
84
|
+
)
|
|
85
|
+
|
|
86
|
+
response = await client.get_async_httpx_client().request(**kwargs)
|
|
87
|
+
|
|
88
|
+
return _build_response(client=client, response=response)
|