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
waldur_api_client/api/marketplace_resources/marketplace_resources_set_restrict_member_access.py
ADDED
|
@@ -0,0 +1,107 @@
|
|
|
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.resource_restrict_member_access_request import ResourceRestrictMemberAccessRequest
|
|
10
|
+
from ...types import Response
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
def _get_kwargs(
|
|
14
|
+
uuid: UUID,
|
|
15
|
+
*,
|
|
16
|
+
body: ResourceRestrictMemberAccessRequest,
|
|
17
|
+
) -> dict[str, Any]:
|
|
18
|
+
headers: dict[str, Any] = {}
|
|
19
|
+
|
|
20
|
+
_kwargs: dict[str, Any] = {
|
|
21
|
+
"method": "post",
|
|
22
|
+
"url": f"/api/marketplace-resources/{uuid}/set_restrict_member_access/",
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
_kwargs["json"] = body.to_dict()
|
|
26
|
+
|
|
27
|
+
headers["Content-Type"] = "application/json"
|
|
28
|
+
|
|
29
|
+
_kwargs["headers"] = headers
|
|
30
|
+
return _kwargs
|
|
31
|
+
|
|
32
|
+
|
|
33
|
+
def _parse_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> Any:
|
|
34
|
+
if response.status_code == 200:
|
|
35
|
+
return None
|
|
36
|
+
raise errors.UnexpectedStatus(response.status_code, response.content)
|
|
37
|
+
|
|
38
|
+
|
|
39
|
+
def _build_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> Response[Any]:
|
|
40
|
+
return Response(
|
|
41
|
+
status_code=HTTPStatus(response.status_code),
|
|
42
|
+
content=response.content,
|
|
43
|
+
headers=response.headers,
|
|
44
|
+
parsed=_parse_response(client=client, response=response),
|
|
45
|
+
)
|
|
46
|
+
|
|
47
|
+
|
|
48
|
+
def sync_detailed(
|
|
49
|
+
uuid: UUID,
|
|
50
|
+
*,
|
|
51
|
+
client: AuthenticatedClient,
|
|
52
|
+
body: ResourceRestrictMemberAccessRequest,
|
|
53
|
+
) -> Response[Any]:
|
|
54
|
+
"""Set restrict_member_access flag for resource.
|
|
55
|
+
|
|
56
|
+
Args:
|
|
57
|
+
uuid (UUID):
|
|
58
|
+
body (ResourceRestrictMemberAccessRequest):
|
|
59
|
+
|
|
60
|
+
Raises:
|
|
61
|
+
errors.UnexpectedStatus: If the server returns an undocumented status code.
|
|
62
|
+
httpx.TimeoutException: If the request takes longer than Client.timeout.
|
|
63
|
+
|
|
64
|
+
Returns:
|
|
65
|
+
Response[Any]
|
|
66
|
+
"""
|
|
67
|
+
|
|
68
|
+
kwargs = _get_kwargs(
|
|
69
|
+
uuid=uuid,
|
|
70
|
+
body=body,
|
|
71
|
+
)
|
|
72
|
+
|
|
73
|
+
response = client.get_httpx_client().request(
|
|
74
|
+
**kwargs,
|
|
75
|
+
)
|
|
76
|
+
|
|
77
|
+
return _build_response(client=client, response=response)
|
|
78
|
+
|
|
79
|
+
|
|
80
|
+
async def asyncio_detailed(
|
|
81
|
+
uuid: UUID,
|
|
82
|
+
*,
|
|
83
|
+
client: AuthenticatedClient,
|
|
84
|
+
body: ResourceRestrictMemberAccessRequest,
|
|
85
|
+
) -> Response[Any]:
|
|
86
|
+
"""Set restrict_member_access flag for resource.
|
|
87
|
+
|
|
88
|
+
Args:
|
|
89
|
+
uuid (UUID):
|
|
90
|
+
body (ResourceRestrictMemberAccessRequest):
|
|
91
|
+
|
|
92
|
+
Raises:
|
|
93
|
+
errors.UnexpectedStatus: If the server returns an undocumented status code.
|
|
94
|
+
httpx.TimeoutException: If the request takes longer than Client.timeout.
|
|
95
|
+
|
|
96
|
+
Returns:
|
|
97
|
+
Response[Any]
|
|
98
|
+
"""
|
|
99
|
+
|
|
100
|
+
kwargs = _get_kwargs(
|
|
101
|
+
uuid=uuid,
|
|
102
|
+
body=body,
|
|
103
|
+
)
|
|
104
|
+
|
|
105
|
+
response = await client.get_async_httpx_client().request(**kwargs)
|
|
106
|
+
|
|
107
|
+
return _build_response(client=client, response=response)
|
waldur_api_client/api/marketplace_service_providers/marketplace_service_providers_add_user.py
CHANGED
|
@@ -6,6 +6,7 @@ import httpx
|
|
|
6
6
|
|
|
7
7
|
from ... import errors
|
|
8
8
|
from ...client import AuthenticatedClient, Client
|
|
9
|
+
from ...models.marketplace_service_providers_add_user_response_400 import MarketplaceServiceProvidersAddUserResponse400
|
|
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[MarketplaceServiceProvidersAddUserResponse400, 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 = MarketplaceServiceProvidersAddUserResponse400.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[MarketplaceServiceProvidersAddUserResponse400, 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[MarketplaceServiceProvidersAddUserResponse400, 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[MarketplaceServiceProvidersAddUserResponse400, 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[MarketplaceServiceProvidersAddUserResponse400, 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[MarketplaceServiceProvidersAddUserResponse400, 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[MarketplaceServiceProvidersAddUserResponse400, 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[MarketplaceServiceProvidersAddUserResponse400, 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[MarketplaceServiceProvidersAddUserResponse400, 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[MarketplaceServiceProvidersAddUserResponse400, UserRoleExpirationTime]
|
|
156
163
|
"""
|
|
157
164
|
|
|
158
165
|
return (
|
|
@@ -31,6 +31,7 @@ def _get_kwargs(
|
|
|
31
31
|
customer_native_name: Union[Unset, str] = UNSET,
|
|
32
32
|
description: Union[Unset, str] = UNSET,
|
|
33
33
|
field: Union[Unset, list[MarketplaceServiceProvidersCustomerProjectsListFieldItem]] = UNSET,
|
|
34
|
+
is_removed: Union[Unset, bool] = UNSET,
|
|
34
35
|
modified: Union[Unset, datetime.datetime] = UNSET,
|
|
35
36
|
name: Union[Unset, str] = UNSET,
|
|
36
37
|
name_exact: Union[Unset, str] = UNSET,
|
|
@@ -81,6 +82,8 @@ def _get_kwargs(
|
|
|
81
82
|
|
|
82
83
|
params["field"] = json_field
|
|
83
84
|
|
|
85
|
+
params["is_removed"] = is_removed
|
|
86
|
+
|
|
84
87
|
json_modified: Union[Unset, str] = UNSET
|
|
85
88
|
if not isinstance(modified, Unset):
|
|
86
89
|
json_modified = modified.isoformat()
|
|
@@ -159,6 +162,7 @@ def sync_detailed(
|
|
|
159
162
|
customer_native_name: Union[Unset, str] = UNSET,
|
|
160
163
|
description: Union[Unset, str] = UNSET,
|
|
161
164
|
field: Union[Unset, list[MarketplaceServiceProvidersCustomerProjectsListFieldItem]] = UNSET,
|
|
165
|
+
is_removed: Union[Unset, bool] = UNSET,
|
|
162
166
|
modified: Union[Unset, datetime.datetime] = UNSET,
|
|
163
167
|
name: Union[Unset, str] = UNSET,
|
|
164
168
|
name_exact: Union[Unset, str] = UNSET,
|
|
@@ -183,6 +187,7 @@ def sync_detailed(
|
|
|
183
187
|
customer_native_name (Union[Unset, str]):
|
|
184
188
|
description (Union[Unset, str]):
|
|
185
189
|
field (Union[Unset, list[MarketplaceServiceProvidersCustomerProjectsListFieldItem]]):
|
|
190
|
+
is_removed (Union[Unset, bool]):
|
|
186
191
|
modified (Union[Unset, datetime.datetime]):
|
|
187
192
|
name (Union[Unset, str]):
|
|
188
193
|
name_exact (Union[Unset, str]):
|
|
@@ -213,6 +218,7 @@ def sync_detailed(
|
|
|
213
218
|
customer_native_name=customer_native_name,
|
|
214
219
|
description=description,
|
|
215
220
|
field=field,
|
|
221
|
+
is_removed=is_removed,
|
|
216
222
|
modified=modified,
|
|
217
223
|
name=name,
|
|
218
224
|
name_exact=name_exact,
|
|
@@ -245,6 +251,7 @@ def sync(
|
|
|
245
251
|
customer_native_name: Union[Unset, str] = UNSET,
|
|
246
252
|
description: Union[Unset, str] = UNSET,
|
|
247
253
|
field: Union[Unset, list[MarketplaceServiceProvidersCustomerProjectsListFieldItem]] = UNSET,
|
|
254
|
+
is_removed: Union[Unset, bool] = UNSET,
|
|
248
255
|
modified: Union[Unset, datetime.datetime] = UNSET,
|
|
249
256
|
name: Union[Unset, str] = UNSET,
|
|
250
257
|
name_exact: Union[Unset, str] = UNSET,
|
|
@@ -269,6 +276,7 @@ def sync(
|
|
|
269
276
|
customer_native_name (Union[Unset, str]):
|
|
270
277
|
description (Union[Unset, str]):
|
|
271
278
|
field (Union[Unset, list[MarketplaceServiceProvidersCustomerProjectsListFieldItem]]):
|
|
279
|
+
is_removed (Union[Unset, bool]):
|
|
272
280
|
modified (Union[Unset, datetime.datetime]):
|
|
273
281
|
name (Union[Unset, str]):
|
|
274
282
|
name_exact (Union[Unset, str]):
|
|
@@ -300,6 +308,7 @@ def sync(
|
|
|
300
308
|
customer_native_name=customer_native_name,
|
|
301
309
|
description=description,
|
|
302
310
|
field=field,
|
|
311
|
+
is_removed=is_removed,
|
|
303
312
|
modified=modified,
|
|
304
313
|
name=name,
|
|
305
314
|
name_exact=name_exact,
|
|
@@ -326,6 +335,7 @@ async def asyncio_detailed(
|
|
|
326
335
|
customer_native_name: Union[Unset, str] = UNSET,
|
|
327
336
|
description: Union[Unset, str] = UNSET,
|
|
328
337
|
field: Union[Unset, list[MarketplaceServiceProvidersCustomerProjectsListFieldItem]] = UNSET,
|
|
338
|
+
is_removed: Union[Unset, bool] = UNSET,
|
|
329
339
|
modified: Union[Unset, datetime.datetime] = UNSET,
|
|
330
340
|
name: Union[Unset, str] = UNSET,
|
|
331
341
|
name_exact: Union[Unset, str] = UNSET,
|
|
@@ -350,6 +360,7 @@ async def asyncio_detailed(
|
|
|
350
360
|
customer_native_name (Union[Unset, str]):
|
|
351
361
|
description (Union[Unset, str]):
|
|
352
362
|
field (Union[Unset, list[MarketplaceServiceProvidersCustomerProjectsListFieldItem]]):
|
|
363
|
+
is_removed (Union[Unset, bool]):
|
|
353
364
|
modified (Union[Unset, datetime.datetime]):
|
|
354
365
|
name (Union[Unset, str]):
|
|
355
366
|
name_exact (Union[Unset, str]):
|
|
@@ -380,6 +391,7 @@ async def asyncio_detailed(
|
|
|
380
391
|
customer_native_name=customer_native_name,
|
|
381
392
|
description=description,
|
|
382
393
|
field=field,
|
|
394
|
+
is_removed=is_removed,
|
|
383
395
|
modified=modified,
|
|
384
396
|
name=name,
|
|
385
397
|
name_exact=name_exact,
|
|
@@ -410,6 +422,7 @@ async def asyncio(
|
|
|
410
422
|
customer_native_name: Union[Unset, str] = UNSET,
|
|
411
423
|
description: Union[Unset, str] = UNSET,
|
|
412
424
|
field: Union[Unset, list[MarketplaceServiceProvidersCustomerProjectsListFieldItem]] = UNSET,
|
|
425
|
+
is_removed: Union[Unset, bool] = UNSET,
|
|
413
426
|
modified: Union[Unset, datetime.datetime] = UNSET,
|
|
414
427
|
name: Union[Unset, str] = UNSET,
|
|
415
428
|
name_exact: Union[Unset, str] = UNSET,
|
|
@@ -434,6 +447,7 @@ async def asyncio(
|
|
|
434
447
|
customer_native_name (Union[Unset, str]):
|
|
435
448
|
description (Union[Unset, str]):
|
|
436
449
|
field (Union[Unset, list[MarketplaceServiceProvidersCustomerProjectsListFieldItem]]):
|
|
450
|
+
is_removed (Union[Unset, bool]):
|
|
437
451
|
modified (Union[Unset, datetime.datetime]):
|
|
438
452
|
name (Union[Unset, str]):
|
|
439
453
|
name_exact (Union[Unset, str]):
|
|
@@ -466,6 +480,7 @@ async def asyncio(
|
|
|
466
480
|
customer_native_name=customer_native_name,
|
|
467
481
|
description=description,
|
|
468
482
|
field=field,
|
|
483
|
+
is_removed=is_removed,
|
|
469
484
|
modified=modified,
|
|
470
485
|
name=name,
|
|
471
486
|
name_exact=name_exact,
|
waldur_api_client/api/marketplace_service_providers/marketplace_service_providers_offerings_list.py
CHANGED
|
@@ -52,6 +52,7 @@ def _get_kwargs(
|
|
|
52
52
|
state: Union[Unset, list[MarketplaceServiceProvidersOfferingsListStateItem]] = UNSET,
|
|
53
53
|
type_: Union[Unset, list[str]] = UNSET,
|
|
54
54
|
user_has_consent: Union[Unset, bool] = UNSET,
|
|
55
|
+
user_has_offering_user: Union[Unset, bool] = UNSET,
|
|
55
56
|
uuid_list: Union[Unset, str] = UNSET,
|
|
56
57
|
) -> dict[str, Any]:
|
|
57
58
|
params: dict[str, Any] = {}
|
|
@@ -183,6 +184,8 @@ def _get_kwargs(
|
|
|
183
184
|
|
|
184
185
|
params["user_has_consent"] = user_has_consent
|
|
185
186
|
|
|
187
|
+
params["user_has_offering_user"] = user_has_offering_user
|
|
188
|
+
|
|
186
189
|
params["uuid_list"] = uuid_list
|
|
187
190
|
|
|
188
191
|
params = {k: v for k, v in params.items() if v is not UNSET and v is not None}
|
|
@@ -257,6 +260,7 @@ def sync_detailed(
|
|
|
257
260
|
state: Union[Unset, list[MarketplaceServiceProvidersOfferingsListStateItem]] = UNSET,
|
|
258
261
|
type_: Union[Unset, list[str]] = UNSET,
|
|
259
262
|
user_has_consent: Union[Unset, bool] = UNSET,
|
|
263
|
+
user_has_offering_user: Union[Unset, bool] = UNSET,
|
|
260
264
|
uuid_list: Union[Unset, str] = UNSET,
|
|
261
265
|
) -> Response[list["ProviderOffering"]]:
|
|
262
266
|
"""Return offerings of service provider.
|
|
@@ -294,6 +298,7 @@ def sync_detailed(
|
|
|
294
298
|
state (Union[Unset, list[MarketplaceServiceProvidersOfferingsListStateItem]]):
|
|
295
299
|
type_ (Union[Unset, list[str]]):
|
|
296
300
|
user_has_consent (Union[Unset, bool]):
|
|
301
|
+
user_has_offering_user (Union[Unset, bool]):
|
|
297
302
|
uuid_list (Union[Unset, str]):
|
|
298
303
|
|
|
299
304
|
Raises:
|
|
@@ -337,6 +342,7 @@ def sync_detailed(
|
|
|
337
342
|
state=state,
|
|
338
343
|
type_=type_,
|
|
339
344
|
user_has_consent=user_has_consent,
|
|
345
|
+
user_has_offering_user=user_has_offering_user,
|
|
340
346
|
uuid_list=uuid_list,
|
|
341
347
|
)
|
|
342
348
|
|
|
@@ -382,6 +388,7 @@ def sync(
|
|
|
382
388
|
state: Union[Unset, list[MarketplaceServiceProvidersOfferingsListStateItem]] = UNSET,
|
|
383
389
|
type_: Union[Unset, list[str]] = UNSET,
|
|
384
390
|
user_has_consent: Union[Unset, bool] = UNSET,
|
|
391
|
+
user_has_offering_user: Union[Unset, bool] = UNSET,
|
|
385
392
|
uuid_list: Union[Unset, str] = UNSET,
|
|
386
393
|
) -> list["ProviderOffering"]:
|
|
387
394
|
"""Return offerings of service provider.
|
|
@@ -419,6 +426,7 @@ def sync(
|
|
|
419
426
|
state (Union[Unset, list[MarketplaceServiceProvidersOfferingsListStateItem]]):
|
|
420
427
|
type_ (Union[Unset, list[str]]):
|
|
421
428
|
user_has_consent (Union[Unset, bool]):
|
|
429
|
+
user_has_offering_user (Union[Unset, bool]):
|
|
422
430
|
uuid_list (Union[Unset, str]):
|
|
423
431
|
|
|
424
432
|
Raises:
|
|
@@ -463,6 +471,7 @@ def sync(
|
|
|
463
471
|
state=state,
|
|
464
472
|
type_=type_,
|
|
465
473
|
user_has_consent=user_has_consent,
|
|
474
|
+
user_has_offering_user=user_has_offering_user,
|
|
466
475
|
uuid_list=uuid_list,
|
|
467
476
|
).parsed
|
|
468
477
|
|
|
@@ -502,6 +511,7 @@ async def asyncio_detailed(
|
|
|
502
511
|
state: Union[Unset, list[MarketplaceServiceProvidersOfferingsListStateItem]] = UNSET,
|
|
503
512
|
type_: Union[Unset, list[str]] = UNSET,
|
|
504
513
|
user_has_consent: Union[Unset, bool] = UNSET,
|
|
514
|
+
user_has_offering_user: Union[Unset, bool] = UNSET,
|
|
505
515
|
uuid_list: Union[Unset, str] = UNSET,
|
|
506
516
|
) -> Response[list["ProviderOffering"]]:
|
|
507
517
|
"""Return offerings of service provider.
|
|
@@ -539,6 +549,7 @@ async def asyncio_detailed(
|
|
|
539
549
|
state (Union[Unset, list[MarketplaceServiceProvidersOfferingsListStateItem]]):
|
|
540
550
|
type_ (Union[Unset, list[str]]):
|
|
541
551
|
user_has_consent (Union[Unset, bool]):
|
|
552
|
+
user_has_offering_user (Union[Unset, bool]):
|
|
542
553
|
uuid_list (Union[Unset, str]):
|
|
543
554
|
|
|
544
555
|
Raises:
|
|
@@ -582,6 +593,7 @@ async def asyncio_detailed(
|
|
|
582
593
|
state=state,
|
|
583
594
|
type_=type_,
|
|
584
595
|
user_has_consent=user_has_consent,
|
|
596
|
+
user_has_offering_user=user_has_offering_user,
|
|
585
597
|
uuid_list=uuid_list,
|
|
586
598
|
)
|
|
587
599
|
|
|
@@ -625,6 +637,7 @@ async def asyncio(
|
|
|
625
637
|
state: Union[Unset, list[MarketplaceServiceProvidersOfferingsListStateItem]] = UNSET,
|
|
626
638
|
type_: Union[Unset, list[str]] = UNSET,
|
|
627
639
|
user_has_consent: Union[Unset, bool] = UNSET,
|
|
640
|
+
user_has_offering_user: Union[Unset, bool] = UNSET,
|
|
628
641
|
uuid_list: Union[Unset, str] = UNSET,
|
|
629
642
|
) -> list["ProviderOffering"]:
|
|
630
643
|
"""Return offerings of service provider.
|
|
@@ -662,6 +675,7 @@ async def asyncio(
|
|
|
662
675
|
state (Union[Unset, list[MarketplaceServiceProvidersOfferingsListStateItem]]):
|
|
663
676
|
type_ (Union[Unset, list[str]]):
|
|
664
677
|
user_has_consent (Union[Unset, bool]):
|
|
678
|
+
user_has_offering_user (Union[Unset, bool]):
|
|
665
679
|
uuid_list (Union[Unset, str]):
|
|
666
680
|
|
|
667
681
|
Raises:
|
|
@@ -707,6 +721,7 @@ async def asyncio(
|
|
|
707
721
|
state=state,
|
|
708
722
|
type_=type_,
|
|
709
723
|
user_has_consent=user_has_consent,
|
|
724
|
+
user_has_offering_user=user_has_offering_user,
|
|
710
725
|
uuid_list=uuid_list,
|
|
711
726
|
)
|
|
712
727
|
).parsed
|
waldur_api_client/api/marketplace_service_providers/marketplace_service_providers_projects_list.py
CHANGED
|
@@ -7,9 +7,6 @@ import httpx
|
|
|
7
7
|
|
|
8
8
|
from ... import errors
|
|
9
9
|
from ...client import AuthenticatedClient, Client
|
|
10
|
-
from ...models.marketplace_service_providers_projects_list_field_item import (
|
|
11
|
-
MarketplaceServiceProvidersProjectsListFieldItem,
|
|
12
|
-
)
|
|
13
10
|
from ...models.marketplace_service_providers_projects_list_o_item import MarketplaceServiceProvidersProjectsListOItem
|
|
14
11
|
from ...models.project import Project
|
|
15
12
|
from ...types import UNSET, Response, Unset
|
|
@@ -28,7 +25,7 @@ def _get_kwargs(
|
|
|
28
25
|
customer_name: Union[Unset, str] = UNSET,
|
|
29
26
|
customer_native_name: Union[Unset, str] = UNSET,
|
|
30
27
|
description: Union[Unset, str] = UNSET,
|
|
31
|
-
|
|
28
|
+
is_removed: Union[Unset, bool] = UNSET,
|
|
32
29
|
modified: Union[Unset, datetime.datetime] = UNSET,
|
|
33
30
|
name: Union[Unset, str] = UNSET,
|
|
34
31
|
name_exact: Union[Unset, str] = UNSET,
|
|
@@ -70,14 +67,7 @@ def _get_kwargs(
|
|
|
70
67
|
|
|
71
68
|
params["description"] = description
|
|
72
69
|
|
|
73
|
-
|
|
74
|
-
if not isinstance(field, Unset):
|
|
75
|
-
json_field = []
|
|
76
|
-
for field_item_data in field:
|
|
77
|
-
field_item = field_item_data.value
|
|
78
|
-
json_field.append(field_item)
|
|
79
|
-
|
|
80
|
-
params["field"] = json_field
|
|
70
|
+
params["is_removed"] = is_removed
|
|
81
71
|
|
|
82
72
|
json_modified: Union[Unset, str] = UNSET
|
|
83
73
|
if not isinstance(modified, Unset):
|
|
@@ -154,7 +144,7 @@ def sync_detailed(
|
|
|
154
144
|
customer_name: Union[Unset, str] = UNSET,
|
|
155
145
|
customer_native_name: Union[Unset, str] = UNSET,
|
|
156
146
|
description: Union[Unset, str] = UNSET,
|
|
157
|
-
|
|
147
|
+
is_removed: Union[Unset, bool] = UNSET,
|
|
158
148
|
modified: Union[Unset, datetime.datetime] = UNSET,
|
|
159
149
|
name: Union[Unset, str] = UNSET,
|
|
160
150
|
name_exact: Union[Unset, str] = UNSET,
|
|
@@ -178,7 +168,7 @@ def sync_detailed(
|
|
|
178
168
|
customer_name (Union[Unset, str]):
|
|
179
169
|
customer_native_name (Union[Unset, str]):
|
|
180
170
|
description (Union[Unset, str]):
|
|
181
|
-
|
|
171
|
+
is_removed (Union[Unset, bool]):
|
|
182
172
|
modified (Union[Unset, datetime.datetime]):
|
|
183
173
|
name (Union[Unset, str]):
|
|
184
174
|
name_exact (Union[Unset, str]):
|
|
@@ -208,7 +198,7 @@ def sync_detailed(
|
|
|
208
198
|
customer_name=customer_name,
|
|
209
199
|
customer_native_name=customer_native_name,
|
|
210
200
|
description=description,
|
|
211
|
-
|
|
201
|
+
is_removed=is_removed,
|
|
212
202
|
modified=modified,
|
|
213
203
|
name=name,
|
|
214
204
|
name_exact=name_exact,
|
|
@@ -240,7 +230,7 @@ def sync(
|
|
|
240
230
|
customer_name: Union[Unset, str] = UNSET,
|
|
241
231
|
customer_native_name: Union[Unset, str] = UNSET,
|
|
242
232
|
description: Union[Unset, str] = UNSET,
|
|
243
|
-
|
|
233
|
+
is_removed: Union[Unset, bool] = UNSET,
|
|
244
234
|
modified: Union[Unset, datetime.datetime] = UNSET,
|
|
245
235
|
name: Union[Unset, str] = UNSET,
|
|
246
236
|
name_exact: Union[Unset, str] = UNSET,
|
|
@@ -264,7 +254,7 @@ def sync(
|
|
|
264
254
|
customer_name (Union[Unset, str]):
|
|
265
255
|
customer_native_name (Union[Unset, str]):
|
|
266
256
|
description (Union[Unset, str]):
|
|
267
|
-
|
|
257
|
+
is_removed (Union[Unset, bool]):
|
|
268
258
|
modified (Union[Unset, datetime.datetime]):
|
|
269
259
|
name (Union[Unset, str]):
|
|
270
260
|
name_exact (Union[Unset, str]):
|
|
@@ -295,7 +285,7 @@ def sync(
|
|
|
295
285
|
customer_name=customer_name,
|
|
296
286
|
customer_native_name=customer_native_name,
|
|
297
287
|
description=description,
|
|
298
|
-
|
|
288
|
+
is_removed=is_removed,
|
|
299
289
|
modified=modified,
|
|
300
290
|
name=name,
|
|
301
291
|
name_exact=name_exact,
|
|
@@ -321,7 +311,7 @@ async def asyncio_detailed(
|
|
|
321
311
|
customer_name: Union[Unset, str] = UNSET,
|
|
322
312
|
customer_native_name: Union[Unset, str] = UNSET,
|
|
323
313
|
description: Union[Unset, str] = UNSET,
|
|
324
|
-
|
|
314
|
+
is_removed: Union[Unset, bool] = UNSET,
|
|
325
315
|
modified: Union[Unset, datetime.datetime] = UNSET,
|
|
326
316
|
name: Union[Unset, str] = UNSET,
|
|
327
317
|
name_exact: Union[Unset, str] = UNSET,
|
|
@@ -345,7 +335,7 @@ async def asyncio_detailed(
|
|
|
345
335
|
customer_name (Union[Unset, str]):
|
|
346
336
|
customer_native_name (Union[Unset, str]):
|
|
347
337
|
description (Union[Unset, str]):
|
|
348
|
-
|
|
338
|
+
is_removed (Union[Unset, bool]):
|
|
349
339
|
modified (Union[Unset, datetime.datetime]):
|
|
350
340
|
name (Union[Unset, str]):
|
|
351
341
|
name_exact (Union[Unset, str]):
|
|
@@ -375,7 +365,7 @@ async def asyncio_detailed(
|
|
|
375
365
|
customer_name=customer_name,
|
|
376
366
|
customer_native_name=customer_native_name,
|
|
377
367
|
description=description,
|
|
378
|
-
|
|
368
|
+
is_removed=is_removed,
|
|
379
369
|
modified=modified,
|
|
380
370
|
name=name,
|
|
381
371
|
name_exact=name_exact,
|
|
@@ -405,7 +395,7 @@ async def asyncio(
|
|
|
405
395
|
customer_name: Union[Unset, str] = UNSET,
|
|
406
396
|
customer_native_name: Union[Unset, str] = UNSET,
|
|
407
397
|
description: Union[Unset, str] = UNSET,
|
|
408
|
-
|
|
398
|
+
is_removed: Union[Unset, bool] = UNSET,
|
|
409
399
|
modified: Union[Unset, datetime.datetime] = UNSET,
|
|
410
400
|
name: Union[Unset, str] = UNSET,
|
|
411
401
|
name_exact: Union[Unset, str] = UNSET,
|
|
@@ -429,7 +419,7 @@ async def asyncio(
|
|
|
429
419
|
customer_name (Union[Unset, str]):
|
|
430
420
|
customer_native_name (Union[Unset, str]):
|
|
431
421
|
description (Union[Unset, str]):
|
|
432
|
-
|
|
422
|
+
is_removed (Union[Unset, bool]):
|
|
433
423
|
modified (Union[Unset, datetime.datetime]):
|
|
434
424
|
name (Union[Unset, str]):
|
|
435
425
|
name_exact (Union[Unset, str]):
|
|
@@ -461,7 +451,7 @@ async def asyncio(
|
|
|
461
451
|
customer_name=customer_name,
|
|
462
452
|
customer_native_name=customer_native_name,
|
|
463
453
|
description=description,
|
|
464
|
-
|
|
454
|
+
is_removed=is_removed,
|
|
465
455
|
modified=modified,
|
|
466
456
|
name=name,
|
|
467
457
|
name_exact=name_exact,
|
|
@@ -6,7 +6,6 @@ import httpx
|
|
|
6
6
|
|
|
7
7
|
from ... import errors
|
|
8
8
|
from ...client import AuthenticatedClient, Client
|
|
9
|
-
from ...models.set_offerings_username import SetOfferingsUsername
|
|
10
9
|
from ...models.set_offerings_username_request import SetOfferingsUsernameRequest
|
|
11
10
|
from ...types import Response
|
|
12
11
|
|
|
@@ -31,17 +30,13 @@ def _get_kwargs(
|
|
|
31
30
|
return _kwargs
|
|
32
31
|
|
|
33
32
|
|
|
34
|
-
def _parse_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) ->
|
|
35
|
-
if response.status_code ==
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
return response_200
|
|
33
|
+
def _parse_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> Any:
|
|
34
|
+
if response.status_code == 201:
|
|
35
|
+
return None
|
|
39
36
|
raise errors.UnexpectedStatus(response.status_code, response.content)
|
|
40
37
|
|
|
41
38
|
|
|
42
|
-
def _build_response(
|
|
43
|
-
*, client: Union[AuthenticatedClient, Client], response: httpx.Response
|
|
44
|
-
) -> Response[SetOfferingsUsername]:
|
|
39
|
+
def _build_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> Response[Any]:
|
|
45
40
|
return Response(
|
|
46
41
|
status_code=HTTPStatus(response.status_code),
|
|
47
42
|
content=response.content,
|
|
@@ -55,7 +50,7 @@ def sync_detailed(
|
|
|
55
50
|
*,
|
|
56
51
|
client: AuthenticatedClient,
|
|
57
52
|
body: SetOfferingsUsernameRequest,
|
|
58
|
-
) -> Response[
|
|
53
|
+
) -> Response[Any]:
|
|
59
54
|
"""
|
|
60
55
|
Args:
|
|
61
56
|
uuid (UUID):
|
|
@@ -66,7 +61,7 @@ def sync_detailed(
|
|
|
66
61
|
httpx.TimeoutException: If the request takes longer than Client.timeout.
|
|
67
62
|
|
|
68
63
|
Returns:
|
|
69
|
-
Response[
|
|
64
|
+
Response[Any]
|
|
70
65
|
"""
|
|
71
66
|
|
|
72
67
|
kwargs = _get_kwargs(
|
|
@@ -81,38 +76,12 @@ def sync_detailed(
|
|
|
81
76
|
return _build_response(client=client, response=response)
|
|
82
77
|
|
|
83
78
|
|
|
84
|
-
def sync(
|
|
85
|
-
uuid: UUID,
|
|
86
|
-
*,
|
|
87
|
-
client: AuthenticatedClient,
|
|
88
|
-
body: SetOfferingsUsernameRequest,
|
|
89
|
-
) -> SetOfferingsUsername:
|
|
90
|
-
"""
|
|
91
|
-
Args:
|
|
92
|
-
uuid (UUID):
|
|
93
|
-
body (SetOfferingsUsernameRequest):
|
|
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
|
-
SetOfferingsUsername
|
|
101
|
-
"""
|
|
102
|
-
|
|
103
|
-
return sync_detailed(
|
|
104
|
-
uuid=uuid,
|
|
105
|
-
client=client,
|
|
106
|
-
body=body,
|
|
107
|
-
).parsed
|
|
108
|
-
|
|
109
|
-
|
|
110
79
|
async def asyncio_detailed(
|
|
111
80
|
uuid: UUID,
|
|
112
81
|
*,
|
|
113
82
|
client: AuthenticatedClient,
|
|
114
83
|
body: SetOfferingsUsernameRequest,
|
|
115
|
-
) -> Response[
|
|
84
|
+
) -> Response[Any]:
|
|
116
85
|
"""
|
|
117
86
|
Args:
|
|
118
87
|
uuid (UUID):
|
|
@@ -123,7 +92,7 @@ async def asyncio_detailed(
|
|
|
123
92
|
httpx.TimeoutException: If the request takes longer than Client.timeout.
|
|
124
93
|
|
|
125
94
|
Returns:
|
|
126
|
-
Response[
|
|
95
|
+
Response[Any]
|
|
127
96
|
"""
|
|
128
97
|
|
|
129
98
|
kwargs = _get_kwargs(
|
|
@@ -134,31 +103,3 @@ async def asyncio_detailed(
|
|
|
134
103
|
response = await client.get_async_httpx_client().request(**kwargs)
|
|
135
104
|
|
|
136
105
|
return _build_response(client=client, response=response)
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
async def asyncio(
|
|
140
|
-
uuid: UUID,
|
|
141
|
-
*,
|
|
142
|
-
client: AuthenticatedClient,
|
|
143
|
-
body: SetOfferingsUsernameRequest,
|
|
144
|
-
) -> SetOfferingsUsername:
|
|
145
|
-
"""
|
|
146
|
-
Args:
|
|
147
|
-
uuid (UUID):
|
|
148
|
-
body (SetOfferingsUsernameRequest):
|
|
149
|
-
|
|
150
|
-
Raises:
|
|
151
|
-
errors.UnexpectedStatus: If the server returns an undocumented status code.
|
|
152
|
-
httpx.TimeoutException: If the request takes longer than Client.timeout.
|
|
153
|
-
|
|
154
|
-
Returns:
|
|
155
|
-
SetOfferingsUsername
|
|
156
|
-
"""
|
|
157
|
-
|
|
158
|
-
return (
|
|
159
|
-
await asyncio_detailed(
|
|
160
|
-
uuid=uuid,
|
|
161
|
-
client=client,
|
|
162
|
-
body=body,
|
|
163
|
-
)
|
|
164
|
-
).parsed
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"""Contains endpoint functions for accessing the API"""
|