waldur-api-client 7.8.2__py3-none-any.whl → 7.8.4__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of waldur-api-client might be problematic. Click here for more details.
- waldur_api_client/api/booking_resources/booking_resources_count.py +18 -0
- waldur_api_client/api/booking_resources/booking_resources_list.py +18 -0
- waldur_api_client/api/marketplace_offering_users/marketplace_offering_users_checklist_template_count.py +125 -0
- waldur_api_client/api/marketplace_offering_users/marketplace_offering_users_checklist_template_retrieve.py +126 -0
- waldur_api_client/api/marketplace_project_update_requests/marketplace_project_update_requests_count.py +18 -18
- waldur_api_client/api/marketplace_project_update_requests/marketplace_project_update_requests_list.py +18 -18
- waldur_api_client/api/marketplace_provider_offerings/marketplace_provider_offerings_tos_stats_retrieve.py +146 -0
- waldur_api_client/api/marketplace_provider_resources/marketplace_provider_resources_count.py +18 -0
- waldur_api_client/api/marketplace_provider_resources/marketplace_provider_resources_list.py +18 -0
- waldur_api_client/api/marketplace_provider_resources/marketplace_provider_resources_move_resource.py +22 -0
- waldur_api_client/api/marketplace_provider_resources/marketplace_provider_resources_update_options.py +168 -0
- waldur_api_client/api/marketplace_resources/marketplace_resources_count.py +18 -0
- waldur_api_client/api/marketplace_resources/marketplace_resources_list.py +18 -0
- waldur_api_client/api/marketplace_resources/marketplace_resources_move_resource.py +22 -0
- waldur_api_client/api/marketplace_resources/marketplace_resources_renew.py +166 -0
- waldur_api_client/api/marketplace_service_providers/service_provider_checklists_summary.py +189 -0
- waldur_api_client/api/onboarding/__init__.py +1 -0
- waldur_api_client/api/onboarding/onboarding_supported_countries_retrieve.py +74 -0
- waldur_api_client/api/onboarding_justifications/__init__.py +1 -0
- waldur_api_client/api/onboarding_justifications/onboarding_justifications_attach_document.py +211 -0
- waldur_api_client/api/onboarding_justifications/onboarding_justifications_count.py +172 -0
- waldur_api_client/api/onboarding_justifications/onboarding_justifications_create.py +150 -0
- waldur_api_client/api/onboarding_justifications/onboarding_justifications_create_justification.py +154 -0
- waldur_api_client/api/onboarding_justifications/onboarding_justifications_destroy.py +89 -0
- waldur_api_client/api/onboarding_justifications/onboarding_justifications_list.py +175 -0
- waldur_api_client/api/onboarding_justifications/onboarding_justifications_partial_update.py +164 -0
- waldur_api_client/api/onboarding_justifications/onboarding_justifications_retrieve.py +142 -0
- waldur_api_client/api/onboarding_justifications/onboarding_justifications_update.py +164 -0
- waldur_api_client/api/onboarding_verifications/__init__.py +1 -0
- waldur_api_client/api/onboarding_verifications/onboarding_verifications_count.py +172 -0
- waldur_api_client/api/onboarding_verifications/onboarding_verifications_create.py +150 -0
- waldur_api_client/api/onboarding_verifications/onboarding_verifications_create_customer.py +144 -0
- waldur_api_client/api/onboarding_verifications/onboarding_verifications_destroy.py +89 -0
- waldur_api_client/api/onboarding_verifications/onboarding_verifications_list.py +175 -0
- waldur_api_client/api/onboarding_verifications/onboarding_verifications_partial_update.py +164 -0
- waldur_api_client/api/onboarding_verifications/onboarding_verifications_retrieve.py +142 -0
- waldur_api_client/api/onboarding_verifications/onboarding_verifications_update.py +164 -0
- waldur_api_client/api/onboarding_verifications/onboarding_verifications_validate_company.py +154 -0
- waldur_api_client/api/openstack_backups/openstack_backups_restore.py +10 -10
- waldur_api_client/api/openstack_network_rbac_policies/openstack_network_rbac_policies_count.py +33 -0
- waldur_api_client/api/openstack_network_rbac_policies/openstack_network_rbac_policies_create.py +154 -0
- waldur_api_client/api/openstack_network_rbac_policies/openstack_network_rbac_policies_destroy.py +91 -0
- waldur_api_client/api/openstack_network_rbac_policies/openstack_network_rbac_policies_list.py +33 -0
- waldur_api_client/api/openstack_network_rbac_policies/openstack_network_rbac_policies_partial_update.py +164 -0
- waldur_api_client/api/openstack_network_rbac_policies/openstack_network_rbac_policies_update.py +164 -0
- waldur_api_client/api/openstack_networks/openstack_networks_rbac_policy_create.py +24 -22
- waldur_api_client/api/projects/projects_checklist_template_count.py +125 -0
- waldur_api_client/api/projects/projects_checklist_template_retrieve.py +126 -0
- waldur_api_client/api/proposal_proposals/proposal_proposals_checklist_template_count.py +125 -0
- waldur_api_client/api/proposal_proposals/proposal_proposals_checklist_template_retrieve.py +126 -0
- waldur_api_client/api/proposal_protected_calls/proposal_protected_calls_offerings_list.py +15 -0
- waldur_api_client/api/rancher_services/rancher_services_create.py +22 -22
- waldur_api_client/models/__init__.py +88 -10
- waldur_api_client/models/azure_sql_server_create_order_attributes.py +5 -10
- waldur_api_client/models/azure_virtual_machine_create_order_attributes.py +7 -12
- waldur_api_client/models/booking_resource.py +9 -34
- waldur_api_client/models/booking_resources_list_field_item.py +1 -3
- waldur_api_client/models/booking_resources_retrieve_field_item.py +1 -3
- waldur_api_client/models/call_round.py +4 -4
- waldur_api_client/models/checklist_template.py +99 -0
- waldur_api_client/models/checklist_template_checklist.py +44 -0
- waldur_api_client/models/constance_settings.py +54 -0
- waldur_api_client/models/constance_settings_request.py +54 -0
- waldur_api_client/models/constance_settings_request_form.py +54 -0
- waldur_api_client/models/constance_settings_request_multipart.py +99 -0
- waldur_api_client/models/customer.py +9 -0
- waldur_api_client/models/customers_list_field_item.py +1 -0
- waldur_api_client/models/customers_retrieve_field_item.py +1 -0
- waldur_api_client/models/deprecated_network_rbac_policy.py +137 -0
- waldur_api_client/models/deprecated_network_rbac_policy_request.py +78 -0
- waldur_api_client/models/event_groups_enum.py +1 -0
- waldur_api_client/models/event_types_enum.py +3 -0
- waldur_api_client/models/generic_order_attributes.py +1 -2
- waldur_api_client/models/managed_rancher_cluster_resources_list_field_item.py +1 -3
- waldur_api_client/models/managed_rancher_cluster_resources_retrieve_field_item.py +1 -3
- waldur_api_client/models/marketplace_orders_list_field_item.py +1 -3
- waldur_api_client/models/marketplace_orders_retrieve_field_item.py +1 -3
- waldur_api_client/models/marketplace_provider_resources_details_retrieve_field_item.py +1 -3
- waldur_api_client/models/marketplace_provider_resources_list_field_item.py +1 -3
- waldur_api_client/models/marketplace_provider_resources_retrieve_field_item.py +1 -3
- waldur_api_client/models/marketplace_resources_details_retrieve_field_item.py +1 -3
- waldur_api_client/models/marketplace_resources_list_field_item.py +1 -3
- waldur_api_client/models/marketplace_resources_retrieve_field_item.py +1 -3
- waldur_api_client/models/marketplace_robot_accounts_list_field_item.py +2 -1
- waldur_api_client/models/marketplace_robot_accounts_retrieve_field_item.py +2 -1
- waldur_api_client/models/marketplace_service_providers_projects_list_field_item.py +1 -0
- waldur_api_client/models/merged_plugin_options.py +27 -0
- waldur_api_client/models/merged_plugin_options_request.py +27 -0
- waldur_api_client/models/move_resource_request.py +65 -0
- waldur_api_client/models/nested_round.py +5 -5
- waldur_api_client/models/network_rbac_policy_request.py +8 -0
- waldur_api_client/models/notification.py +9 -9
- waldur_api_client/models/{notification_context_fields.py → notification_context_schema.py} +6 -6
- waldur_api_client/models/notification_template_detail_serializers.py +9 -3
- waldur_api_client/models/offering_component.py +79 -0
- waldur_api_client/models/offering_component_request.py +80 -0
- waldur_api_client/models/onboarding_company_validation_request_request.py +88 -0
- waldur_api_client/models/onboarding_justification.py +183 -0
- waldur_api_client/models/onboarding_justification_create_request.py +68 -0
- waldur_api_client/models/onboarding_justification_documentation.py +108 -0
- waldur_api_client/models/onboarding_justification_documentation_request.py +84 -0
- waldur_api_client/models/onboarding_justification_documentation_request_form.py +84 -0
- waldur_api_client/models/onboarding_justification_documentation_request_multipart.py +98 -0
- waldur_api_client/models/onboarding_justification_request.py +75 -0
- waldur_api_client/models/onboarding_verification.py +250 -0
- waldur_api_client/models/onboarding_verification_request.py +128 -0
- waldur_api_client/models/onboarding_verification_status_enum.py +12 -0
- waldur_api_client/models/open_stack_backup_restoration.py +3 -5
- waldur_api_client/models/open_stack_backup_restoration_create_request.py +141 -0
- waldur_api_client/models/open_stack_backup_restoration_request.py +22 -30
- waldur_api_client/models/open_stack_create_floating_ip_request.py +89 -0
- waldur_api_client/models/open_stack_create_port_request.py +104 -0
- waldur_api_client/models/open_stack_instance.py +13 -29
- waldur_api_client/models/open_stack_instance_create_order_attributes.py +67 -54
- waldur_api_client/models/open_stack_instance_floating_i_ps_update_request.py +5 -5
- waldur_api_client/models/open_stack_instance_ports_update_request.py +5 -5
- waldur_api_client/models/open_stack_instance_request.py +1 -67
- waldur_api_client/models/open_stack_nested_port_request.py +0 -9
- waldur_api_client/models/{open_stack_nested_security_group_request.py → open_stack_security_group_hyperlink_request.py} +14 -14
- waldur_api_client/models/open_stack_server_group_hyperlink_request.py +59 -0
- waldur_api_client/models/open_stack_tenant_create_order_attributes.py +9 -14
- waldur_api_client/models/open_stack_volume_create_order_attributes.py +8 -13
- waldur_api_client/models/openstack_instances_list_field_item.py +0 -7
- waldur_api_client/models/openstack_instances_retrieve_field_item.py +0 -7
- waldur_api_client/models/order_create.py +8 -0
- waldur_api_client/models/order_details.py +9 -34
- waldur_api_client/models/patched_network_rbac_policy_request.py +85 -0
- waldur_api_client/models/patched_onboarding_justification_request.py +77 -0
- waldur_api_client/models/patched_onboarding_verification_request.py +128 -0
- waldur_api_client/models/patched_open_stack_instance_request.py +1 -67
- waldur_api_client/models/patched_project_credit_request.py +13 -0
- waldur_api_client/models/patched_project_request.py +1 -2
- waldur_api_client/models/patched_project_request_form.py +1 -2
- waldur_api_client/models/patched_project_request_multipart.py +1 -2
- waldur_api_client/models/project.py +10 -2
- waldur_api_client/models/project_credit.py +13 -0
- waldur_api_client/models/project_credit_request.py +13 -0
- waldur_api_client/models/{rancher_nested_security_group.py → project_hyperlink_request.py} +5 -5
- waldur_api_client/models/project_request.py +1 -2
- waldur_api_client/models/project_request_form.py +1 -2
- waldur_api_client/models/project_request_multipart.py +1 -2
- waldur_api_client/models/projects_list_field_item.py +1 -0
- waldur_api_client/models/projects_retrieve_field_item.py +1 -0
- waldur_api_client/models/protected_round.py +4 -4
- waldur_api_client/models/question.py +102 -0
- waldur_api_client/models/{open_stack_data_volume.py → question_options.py} +27 -29
- waldur_api_client/models/rancher_clusters_list_field_item.py +0 -1
- waldur_api_client/models/rancher_clusters_retrieve_field_item.py +0 -1
- waldur_api_client/models/rancher_service_create.py +508 -0
- waldur_api_client/models/rancher_service_create_marketplace_offering_plugin_options_type_0.py +44 -0
- waldur_api_client/models/rancher_service_create_request.py +185 -0
- waldur_api_client/models/rancher_service_request.py +16 -19
- waldur_api_client/models/rancher_workload_create.py +59 -0
- waldur_api_client/models/rancher_workload_create_request.py +59 -0
- waldur_api_client/models/resource.py +9 -34
- waldur_api_client/models/resource_renew_request.py +83 -0
- waldur_api_client/models/resource_renew_request_limits.py +44 -0
- waldur_api_client/models/robot_account_details.py +22 -13
- waldur_api_client/models/{status_enum.py → round_status.py} +1 -1
- waldur_api_client/models/service_provider_checklist_summary.py +98 -0
- waldur_api_client/models/slurm_invoices_slurm_package_create_order_attributes.py +4 -9
- waldur_api_client/models/time_series_to_s_data.py +69 -0
- waldur_api_client/models/to_s_consent_dashboard.py +155 -0
- waldur_api_client/models/update_offering_component_request.py +79 -0
- waldur_api_client/models/v_mware_virtual_machine_create_order_attributes.py +11 -16
- waldur_api_client/models/validation_decision_enum.py +10 -0
- waldur_api_client/models/validation_method_enum.py +8 -0
- waldur_api_client/models/version_adoption.py +67 -0
- waldur_api_client/models/vmware_nested_network.py +0 -25
- waldur_api_client/models/vmware_nested_network_request.py +6 -14
- {waldur_api_client-7.8.2.dist-info → waldur_api_client-7.8.4.dist-info}/METADATA +1 -1
- {waldur_api_client-7.8.2.dist-info → waldur_api_client-7.8.4.dist-info}/RECORD +174 -101
- {waldur_api_client-7.8.2.dist-info → waldur_api_client-7.8.4.dist-info}/WHEEL +0 -0
- {waldur_api_client-7.8.2.dist-info → waldur_api_client-7.8.4.dist-info}/licenses/LICENSE +0 -0
|
@@ -14,11 +14,11 @@ from ...types import UNSET, Response, Unset
|
|
|
14
14
|
def _get_kwargs(
|
|
15
15
|
*,
|
|
16
16
|
customer_uuid: Union[Unset, UUID] = UNSET,
|
|
17
|
-
offering_customer_uuid: Union[Unset, UUID] = UNSET,
|
|
18
17
|
offering_uuid: Union[Unset, UUID] = UNSET,
|
|
19
18
|
page: Union[Unset, int] = UNSET,
|
|
20
19
|
page_size: Union[Unset, int] = UNSET,
|
|
21
20
|
project_uuid: Union[Unset, UUID] = UNSET,
|
|
21
|
+
provider_uuid: Union[Unset, UUID] = UNSET,
|
|
22
22
|
state: Union[Unset, list[MarketplaceProjectUpdateRequestsListStateItem]] = UNSET,
|
|
23
23
|
) -> dict[str, Any]:
|
|
24
24
|
params: dict[str, Any] = {}
|
|
@@ -28,11 +28,6 @@ def _get_kwargs(
|
|
|
28
28
|
json_customer_uuid = str(customer_uuid)
|
|
29
29
|
params["customer_uuid"] = json_customer_uuid
|
|
30
30
|
|
|
31
|
-
json_offering_customer_uuid: Union[Unset, str] = UNSET
|
|
32
|
-
if not isinstance(offering_customer_uuid, Unset):
|
|
33
|
-
json_offering_customer_uuid = str(offering_customer_uuid)
|
|
34
|
-
params["offering_customer_uuid"] = json_offering_customer_uuid
|
|
35
|
-
|
|
36
31
|
json_offering_uuid: Union[Unset, str] = UNSET
|
|
37
32
|
if not isinstance(offering_uuid, Unset):
|
|
38
33
|
json_offering_uuid = str(offering_uuid)
|
|
@@ -47,6 +42,11 @@ def _get_kwargs(
|
|
|
47
42
|
json_project_uuid = str(project_uuid)
|
|
48
43
|
params["project_uuid"] = json_project_uuid
|
|
49
44
|
|
|
45
|
+
json_provider_uuid: Union[Unset, str] = UNSET
|
|
46
|
+
if not isinstance(provider_uuid, Unset):
|
|
47
|
+
json_provider_uuid = str(provider_uuid)
|
|
48
|
+
params["provider_uuid"] = json_provider_uuid
|
|
49
|
+
|
|
50
50
|
json_state: Union[Unset, list[str]] = UNSET
|
|
51
51
|
if not isinstance(state, Unset):
|
|
52
52
|
json_state = []
|
|
@@ -97,22 +97,22 @@ def sync_detailed(
|
|
|
97
97
|
*,
|
|
98
98
|
client: AuthenticatedClient,
|
|
99
99
|
customer_uuid: Union[Unset, UUID] = UNSET,
|
|
100
|
-
offering_customer_uuid: Union[Unset, UUID] = UNSET,
|
|
101
100
|
offering_uuid: Union[Unset, UUID] = UNSET,
|
|
102
101
|
page: Union[Unset, int] = UNSET,
|
|
103
102
|
page_size: Union[Unset, int] = UNSET,
|
|
104
103
|
project_uuid: Union[Unset, UUID] = UNSET,
|
|
104
|
+
provider_uuid: Union[Unset, UUID] = UNSET,
|
|
105
105
|
state: Union[Unset, list[MarketplaceProjectUpdateRequestsListStateItem]] = UNSET,
|
|
106
106
|
) -> Response[list["RemoteProjectUpdateRequest"]]:
|
|
107
107
|
"""Mixin to optimize HEAD requests for DRF views bypassing serializer processing
|
|
108
108
|
|
|
109
109
|
Args:
|
|
110
110
|
customer_uuid (Union[Unset, UUID]):
|
|
111
|
-
offering_customer_uuid (Union[Unset, UUID]):
|
|
112
111
|
offering_uuid (Union[Unset, UUID]):
|
|
113
112
|
page (Union[Unset, int]):
|
|
114
113
|
page_size (Union[Unset, int]):
|
|
115
114
|
project_uuid (Union[Unset, UUID]):
|
|
115
|
+
provider_uuid (Union[Unset, UUID]):
|
|
116
116
|
state (Union[Unset, list[MarketplaceProjectUpdateRequestsListStateItem]]):
|
|
117
117
|
|
|
118
118
|
Raises:
|
|
@@ -125,11 +125,11 @@ def sync_detailed(
|
|
|
125
125
|
|
|
126
126
|
kwargs = _get_kwargs(
|
|
127
127
|
customer_uuid=customer_uuid,
|
|
128
|
-
offering_customer_uuid=offering_customer_uuid,
|
|
129
128
|
offering_uuid=offering_uuid,
|
|
130
129
|
page=page,
|
|
131
130
|
page_size=page_size,
|
|
132
131
|
project_uuid=project_uuid,
|
|
132
|
+
provider_uuid=provider_uuid,
|
|
133
133
|
state=state,
|
|
134
134
|
)
|
|
135
135
|
|
|
@@ -144,22 +144,22 @@ def sync(
|
|
|
144
144
|
*,
|
|
145
145
|
client: AuthenticatedClient,
|
|
146
146
|
customer_uuid: Union[Unset, UUID] = UNSET,
|
|
147
|
-
offering_customer_uuid: Union[Unset, UUID] = UNSET,
|
|
148
147
|
offering_uuid: Union[Unset, UUID] = UNSET,
|
|
149
148
|
page: Union[Unset, int] = UNSET,
|
|
150
149
|
page_size: Union[Unset, int] = UNSET,
|
|
151
150
|
project_uuid: Union[Unset, UUID] = UNSET,
|
|
151
|
+
provider_uuid: Union[Unset, UUID] = UNSET,
|
|
152
152
|
state: Union[Unset, list[MarketplaceProjectUpdateRequestsListStateItem]] = UNSET,
|
|
153
153
|
) -> list["RemoteProjectUpdateRequest"]:
|
|
154
154
|
"""Mixin to optimize HEAD requests for DRF views bypassing serializer processing
|
|
155
155
|
|
|
156
156
|
Args:
|
|
157
157
|
customer_uuid (Union[Unset, UUID]):
|
|
158
|
-
offering_customer_uuid (Union[Unset, UUID]):
|
|
159
158
|
offering_uuid (Union[Unset, UUID]):
|
|
160
159
|
page (Union[Unset, int]):
|
|
161
160
|
page_size (Union[Unset, int]):
|
|
162
161
|
project_uuid (Union[Unset, UUID]):
|
|
162
|
+
provider_uuid (Union[Unset, UUID]):
|
|
163
163
|
state (Union[Unset, list[MarketplaceProjectUpdateRequestsListStateItem]]):
|
|
164
164
|
|
|
165
165
|
Raises:
|
|
@@ -173,11 +173,11 @@ def sync(
|
|
|
173
173
|
return sync_detailed(
|
|
174
174
|
client=client,
|
|
175
175
|
customer_uuid=customer_uuid,
|
|
176
|
-
offering_customer_uuid=offering_customer_uuid,
|
|
177
176
|
offering_uuid=offering_uuid,
|
|
178
177
|
page=page,
|
|
179
178
|
page_size=page_size,
|
|
180
179
|
project_uuid=project_uuid,
|
|
180
|
+
provider_uuid=provider_uuid,
|
|
181
181
|
state=state,
|
|
182
182
|
).parsed
|
|
183
183
|
|
|
@@ -186,22 +186,22 @@ async def asyncio_detailed(
|
|
|
186
186
|
*,
|
|
187
187
|
client: AuthenticatedClient,
|
|
188
188
|
customer_uuid: Union[Unset, UUID] = UNSET,
|
|
189
|
-
offering_customer_uuid: Union[Unset, UUID] = UNSET,
|
|
190
189
|
offering_uuid: Union[Unset, UUID] = UNSET,
|
|
191
190
|
page: Union[Unset, int] = UNSET,
|
|
192
191
|
page_size: Union[Unset, int] = UNSET,
|
|
193
192
|
project_uuid: Union[Unset, UUID] = UNSET,
|
|
193
|
+
provider_uuid: Union[Unset, UUID] = UNSET,
|
|
194
194
|
state: Union[Unset, list[MarketplaceProjectUpdateRequestsListStateItem]] = UNSET,
|
|
195
195
|
) -> Response[list["RemoteProjectUpdateRequest"]]:
|
|
196
196
|
"""Mixin to optimize HEAD requests for DRF views bypassing serializer processing
|
|
197
197
|
|
|
198
198
|
Args:
|
|
199
199
|
customer_uuid (Union[Unset, UUID]):
|
|
200
|
-
offering_customer_uuid (Union[Unset, UUID]):
|
|
201
200
|
offering_uuid (Union[Unset, UUID]):
|
|
202
201
|
page (Union[Unset, int]):
|
|
203
202
|
page_size (Union[Unset, int]):
|
|
204
203
|
project_uuid (Union[Unset, UUID]):
|
|
204
|
+
provider_uuid (Union[Unset, UUID]):
|
|
205
205
|
state (Union[Unset, list[MarketplaceProjectUpdateRequestsListStateItem]]):
|
|
206
206
|
|
|
207
207
|
Raises:
|
|
@@ -214,11 +214,11 @@ async def asyncio_detailed(
|
|
|
214
214
|
|
|
215
215
|
kwargs = _get_kwargs(
|
|
216
216
|
customer_uuid=customer_uuid,
|
|
217
|
-
offering_customer_uuid=offering_customer_uuid,
|
|
218
217
|
offering_uuid=offering_uuid,
|
|
219
218
|
page=page,
|
|
220
219
|
page_size=page_size,
|
|
221
220
|
project_uuid=project_uuid,
|
|
221
|
+
provider_uuid=provider_uuid,
|
|
222
222
|
state=state,
|
|
223
223
|
)
|
|
224
224
|
|
|
@@ -231,22 +231,22 @@ async def asyncio(
|
|
|
231
231
|
*,
|
|
232
232
|
client: AuthenticatedClient,
|
|
233
233
|
customer_uuid: Union[Unset, UUID] = UNSET,
|
|
234
|
-
offering_customer_uuid: Union[Unset, UUID] = UNSET,
|
|
235
234
|
offering_uuid: Union[Unset, UUID] = UNSET,
|
|
236
235
|
page: Union[Unset, int] = UNSET,
|
|
237
236
|
page_size: Union[Unset, int] = UNSET,
|
|
238
237
|
project_uuid: Union[Unset, UUID] = UNSET,
|
|
238
|
+
provider_uuid: Union[Unset, UUID] = UNSET,
|
|
239
239
|
state: Union[Unset, list[MarketplaceProjectUpdateRequestsListStateItem]] = UNSET,
|
|
240
240
|
) -> list["RemoteProjectUpdateRequest"]:
|
|
241
241
|
"""Mixin to optimize HEAD requests for DRF views bypassing serializer processing
|
|
242
242
|
|
|
243
243
|
Args:
|
|
244
244
|
customer_uuid (Union[Unset, UUID]):
|
|
245
|
-
offering_customer_uuid (Union[Unset, UUID]):
|
|
246
245
|
offering_uuid (Union[Unset, UUID]):
|
|
247
246
|
page (Union[Unset, int]):
|
|
248
247
|
page_size (Union[Unset, int]):
|
|
249
248
|
project_uuid (Union[Unset, UUID]):
|
|
249
|
+
provider_uuid (Union[Unset, UUID]):
|
|
250
250
|
state (Union[Unset, list[MarketplaceProjectUpdateRequestsListStateItem]]):
|
|
251
251
|
|
|
252
252
|
Raises:
|
|
@@ -261,11 +261,11 @@ async def asyncio(
|
|
|
261
261
|
await asyncio_detailed(
|
|
262
262
|
client=client,
|
|
263
263
|
customer_uuid=customer_uuid,
|
|
264
|
-
offering_customer_uuid=offering_customer_uuid,
|
|
265
264
|
offering_uuid=offering_uuid,
|
|
266
265
|
page=page,
|
|
267
266
|
page_size=page_size,
|
|
268
267
|
project_uuid=project_uuid,
|
|
268
|
+
provider_uuid=provider_uuid,
|
|
269
269
|
state=state,
|
|
270
270
|
)
|
|
271
271
|
).parsed
|
|
@@ -0,0 +1,146 @@
|
|
|
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.to_s_consent_dashboard import ToSConsentDashboard
|
|
10
|
+
from ...types import Response
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
def _get_kwargs(
|
|
14
|
+
uuid: UUID,
|
|
15
|
+
) -> dict[str, Any]:
|
|
16
|
+
_kwargs: dict[str, Any] = {
|
|
17
|
+
"method": "get",
|
|
18
|
+
"url": f"/api/marketplace-provider-offerings/{uuid}/tos_stats/",
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
return _kwargs
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
def _parse_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> ToSConsentDashboard:
|
|
25
|
+
if response.status_code == 200:
|
|
26
|
+
response_200 = ToSConsentDashboard.from_dict(response.json())
|
|
27
|
+
|
|
28
|
+
return response_200
|
|
29
|
+
raise errors.UnexpectedStatus(response.status_code, response.content)
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
def _build_response(
|
|
33
|
+
*, client: Union[AuthenticatedClient, Client], response: httpx.Response
|
|
34
|
+
) -> Response[ToSConsentDashboard]:
|
|
35
|
+
return Response(
|
|
36
|
+
status_code=HTTPStatus(response.status_code),
|
|
37
|
+
content=response.content,
|
|
38
|
+
headers=response.headers,
|
|
39
|
+
parsed=_parse_response(client=client, response=response),
|
|
40
|
+
)
|
|
41
|
+
|
|
42
|
+
|
|
43
|
+
def sync_detailed(
|
|
44
|
+
uuid: UUID,
|
|
45
|
+
*,
|
|
46
|
+
client: AuthenticatedClient,
|
|
47
|
+
) -> Response[ToSConsentDashboard]:
|
|
48
|
+
"""Return comprehensive ToS consent statistics for this offering.
|
|
49
|
+
|
|
50
|
+
Args:
|
|
51
|
+
uuid (UUID):
|
|
52
|
+
|
|
53
|
+
Raises:
|
|
54
|
+
errors.UnexpectedStatus: If the server returns an undocumented status code.
|
|
55
|
+
httpx.TimeoutException: If the request takes longer than Client.timeout.
|
|
56
|
+
|
|
57
|
+
Returns:
|
|
58
|
+
Response[ToSConsentDashboard]
|
|
59
|
+
"""
|
|
60
|
+
|
|
61
|
+
kwargs = _get_kwargs(
|
|
62
|
+
uuid=uuid,
|
|
63
|
+
)
|
|
64
|
+
|
|
65
|
+
response = client.get_httpx_client().request(
|
|
66
|
+
**kwargs,
|
|
67
|
+
)
|
|
68
|
+
|
|
69
|
+
return _build_response(client=client, response=response)
|
|
70
|
+
|
|
71
|
+
|
|
72
|
+
def sync(
|
|
73
|
+
uuid: UUID,
|
|
74
|
+
*,
|
|
75
|
+
client: AuthenticatedClient,
|
|
76
|
+
) -> ToSConsentDashboard:
|
|
77
|
+
"""Return comprehensive ToS consent statistics for this offering.
|
|
78
|
+
|
|
79
|
+
Args:
|
|
80
|
+
uuid (UUID):
|
|
81
|
+
|
|
82
|
+
Raises:
|
|
83
|
+
errors.UnexpectedStatus: If the server returns an undocumented status code.
|
|
84
|
+
httpx.TimeoutException: If the request takes longer than Client.timeout.
|
|
85
|
+
|
|
86
|
+
Returns:
|
|
87
|
+
ToSConsentDashboard
|
|
88
|
+
"""
|
|
89
|
+
|
|
90
|
+
return sync_detailed(
|
|
91
|
+
uuid=uuid,
|
|
92
|
+
client=client,
|
|
93
|
+
).parsed
|
|
94
|
+
|
|
95
|
+
|
|
96
|
+
async def asyncio_detailed(
|
|
97
|
+
uuid: UUID,
|
|
98
|
+
*,
|
|
99
|
+
client: AuthenticatedClient,
|
|
100
|
+
) -> Response[ToSConsentDashboard]:
|
|
101
|
+
"""Return comprehensive ToS consent statistics for this offering.
|
|
102
|
+
|
|
103
|
+
Args:
|
|
104
|
+
uuid (UUID):
|
|
105
|
+
|
|
106
|
+
Raises:
|
|
107
|
+
errors.UnexpectedStatus: If the server returns an undocumented status code.
|
|
108
|
+
httpx.TimeoutException: If the request takes longer than Client.timeout.
|
|
109
|
+
|
|
110
|
+
Returns:
|
|
111
|
+
Response[ToSConsentDashboard]
|
|
112
|
+
"""
|
|
113
|
+
|
|
114
|
+
kwargs = _get_kwargs(
|
|
115
|
+
uuid=uuid,
|
|
116
|
+
)
|
|
117
|
+
|
|
118
|
+
response = await client.get_async_httpx_client().request(**kwargs)
|
|
119
|
+
|
|
120
|
+
return _build_response(client=client, response=response)
|
|
121
|
+
|
|
122
|
+
|
|
123
|
+
async def asyncio(
|
|
124
|
+
uuid: UUID,
|
|
125
|
+
*,
|
|
126
|
+
client: AuthenticatedClient,
|
|
127
|
+
) -> ToSConsentDashboard:
|
|
128
|
+
"""Return comprehensive ToS consent statistics for this offering.
|
|
129
|
+
|
|
130
|
+
Args:
|
|
131
|
+
uuid (UUID):
|
|
132
|
+
|
|
133
|
+
Raises:
|
|
134
|
+
errors.UnexpectedStatus: If the server returns an undocumented status code.
|
|
135
|
+
httpx.TimeoutException: If the request takes longer than Client.timeout.
|
|
136
|
+
|
|
137
|
+
Returns:
|
|
138
|
+
ToSConsentDashboard
|
|
139
|
+
"""
|
|
140
|
+
|
|
141
|
+
return (
|
|
142
|
+
await asyncio_detailed(
|
|
143
|
+
uuid=uuid,
|
|
144
|
+
client=client,
|
|
145
|
+
)
|
|
146
|
+
).parsed
|
waldur_api_client/api/marketplace_provider_resources/marketplace_provider_resources_count.py
CHANGED
|
@@ -36,6 +36,7 @@ def _get_kwargs(
|
|
|
36
36
|
page_size: Union[Unset, int] = UNSET,
|
|
37
37
|
parent_offering_uuid: Union[Unset, UUID] = UNSET,
|
|
38
38
|
paused: Union[Unset, bool] = UNSET,
|
|
39
|
+
plan_uuid: Union[Unset, UUID] = UNSET,
|
|
39
40
|
project_name: Union[Unset, str] = UNSET,
|
|
40
41
|
project_uuid: Union[Unset, UUID] = UNSET,
|
|
41
42
|
provider_uuid: Union[Unset, UUID] = UNSET,
|
|
@@ -125,6 +126,11 @@ def _get_kwargs(
|
|
|
125
126
|
|
|
126
127
|
params["paused"] = paused
|
|
127
128
|
|
|
129
|
+
json_plan_uuid: Union[Unset, str] = UNSET
|
|
130
|
+
if not isinstance(plan_uuid, Unset):
|
|
131
|
+
json_plan_uuid = str(plan_uuid)
|
|
132
|
+
params["plan_uuid"] = json_plan_uuid
|
|
133
|
+
|
|
128
134
|
params["project_name"] = project_name
|
|
129
135
|
|
|
130
136
|
json_project_uuid: Union[Unset, str] = UNSET
|
|
@@ -219,6 +225,7 @@ def sync_detailed(
|
|
|
219
225
|
page_size: Union[Unset, int] = UNSET,
|
|
220
226
|
parent_offering_uuid: Union[Unset, UUID] = UNSET,
|
|
221
227
|
paused: Union[Unset, bool] = UNSET,
|
|
228
|
+
plan_uuid: Union[Unset, UUID] = UNSET,
|
|
222
229
|
project_name: Union[Unset, str] = UNSET,
|
|
223
230
|
project_uuid: Union[Unset, UUID] = UNSET,
|
|
224
231
|
provider_uuid: Union[Unset, UUID] = UNSET,
|
|
@@ -254,6 +261,7 @@ def sync_detailed(
|
|
|
254
261
|
page_size (Union[Unset, int]):
|
|
255
262
|
parent_offering_uuid (Union[Unset, UUID]):
|
|
256
263
|
paused (Union[Unset, bool]):
|
|
264
|
+
plan_uuid (Union[Unset, UUID]):
|
|
257
265
|
project_name (Union[Unset, str]):
|
|
258
266
|
project_uuid (Union[Unset, UUID]):
|
|
259
267
|
provider_uuid (Union[Unset, UUID]):
|
|
@@ -295,6 +303,7 @@ def sync_detailed(
|
|
|
295
303
|
page_size=page_size,
|
|
296
304
|
parent_offering_uuid=parent_offering_uuid,
|
|
297
305
|
paused=paused,
|
|
306
|
+
plan_uuid=plan_uuid,
|
|
298
307
|
project_name=project_name,
|
|
299
308
|
project_uuid=project_uuid,
|
|
300
309
|
provider_uuid=provider_uuid,
|
|
@@ -338,6 +347,7 @@ def sync(
|
|
|
338
347
|
page_size: Union[Unset, int] = UNSET,
|
|
339
348
|
parent_offering_uuid: Union[Unset, UUID] = UNSET,
|
|
340
349
|
paused: Union[Unset, bool] = UNSET,
|
|
350
|
+
plan_uuid: Union[Unset, UUID] = UNSET,
|
|
341
351
|
project_name: Union[Unset, str] = UNSET,
|
|
342
352
|
project_uuid: Union[Unset, UUID] = UNSET,
|
|
343
353
|
provider_uuid: Union[Unset, UUID] = UNSET,
|
|
@@ -373,6 +383,7 @@ def sync(
|
|
|
373
383
|
page_size (Union[Unset, int]):
|
|
374
384
|
parent_offering_uuid (Union[Unset, UUID]):
|
|
375
385
|
paused (Union[Unset, bool]):
|
|
386
|
+
plan_uuid (Union[Unset, UUID]):
|
|
376
387
|
project_name (Union[Unset, str]):
|
|
377
388
|
project_uuid (Union[Unset, UUID]):
|
|
378
389
|
provider_uuid (Union[Unset, UUID]):
|
|
@@ -415,6 +426,7 @@ def sync(
|
|
|
415
426
|
page_size=page_size,
|
|
416
427
|
parent_offering_uuid=parent_offering_uuid,
|
|
417
428
|
paused=paused,
|
|
429
|
+
plan_uuid=plan_uuid,
|
|
418
430
|
project_name=project_name,
|
|
419
431
|
project_uuid=project_uuid,
|
|
420
432
|
provider_uuid=provider_uuid,
|
|
@@ -452,6 +464,7 @@ async def asyncio_detailed(
|
|
|
452
464
|
page_size: Union[Unset, int] = UNSET,
|
|
453
465
|
parent_offering_uuid: Union[Unset, UUID] = UNSET,
|
|
454
466
|
paused: Union[Unset, bool] = UNSET,
|
|
467
|
+
plan_uuid: Union[Unset, UUID] = UNSET,
|
|
455
468
|
project_name: Union[Unset, str] = UNSET,
|
|
456
469
|
project_uuid: Union[Unset, UUID] = UNSET,
|
|
457
470
|
provider_uuid: Union[Unset, UUID] = UNSET,
|
|
@@ -487,6 +500,7 @@ async def asyncio_detailed(
|
|
|
487
500
|
page_size (Union[Unset, int]):
|
|
488
501
|
parent_offering_uuid (Union[Unset, UUID]):
|
|
489
502
|
paused (Union[Unset, bool]):
|
|
503
|
+
plan_uuid (Union[Unset, UUID]):
|
|
490
504
|
project_name (Union[Unset, str]):
|
|
491
505
|
project_uuid (Union[Unset, UUID]):
|
|
492
506
|
provider_uuid (Union[Unset, UUID]):
|
|
@@ -528,6 +542,7 @@ async def asyncio_detailed(
|
|
|
528
542
|
page_size=page_size,
|
|
529
543
|
parent_offering_uuid=parent_offering_uuid,
|
|
530
544
|
paused=paused,
|
|
545
|
+
plan_uuid=plan_uuid,
|
|
531
546
|
project_name=project_name,
|
|
532
547
|
project_uuid=project_uuid,
|
|
533
548
|
provider_uuid=provider_uuid,
|
|
@@ -569,6 +584,7 @@ async def asyncio(
|
|
|
569
584
|
page_size: Union[Unset, int] = UNSET,
|
|
570
585
|
parent_offering_uuid: Union[Unset, UUID] = UNSET,
|
|
571
586
|
paused: Union[Unset, bool] = UNSET,
|
|
587
|
+
plan_uuid: Union[Unset, UUID] = UNSET,
|
|
572
588
|
project_name: Union[Unset, str] = UNSET,
|
|
573
589
|
project_uuid: Union[Unset, UUID] = UNSET,
|
|
574
590
|
provider_uuid: Union[Unset, UUID] = UNSET,
|
|
@@ -604,6 +620,7 @@ async def asyncio(
|
|
|
604
620
|
page_size (Union[Unset, int]):
|
|
605
621
|
parent_offering_uuid (Union[Unset, UUID]):
|
|
606
622
|
paused (Union[Unset, bool]):
|
|
623
|
+
plan_uuid (Union[Unset, UUID]):
|
|
607
624
|
project_name (Union[Unset, str]):
|
|
608
625
|
project_uuid (Union[Unset, UUID]):
|
|
609
626
|
provider_uuid (Union[Unset, UUID]):
|
|
@@ -647,6 +664,7 @@ async def asyncio(
|
|
|
647
664
|
page_size=page_size,
|
|
648
665
|
parent_offering_uuid=parent_offering_uuid,
|
|
649
666
|
paused=paused,
|
|
667
|
+
plan_uuid=plan_uuid,
|
|
650
668
|
project_name=project_name,
|
|
651
669
|
project_uuid=project_uuid,
|
|
652
670
|
provider_uuid=provider_uuid,
|
|
@@ -39,6 +39,7 @@ def _get_kwargs(
|
|
|
39
39
|
page_size: Union[Unset, int] = UNSET,
|
|
40
40
|
parent_offering_uuid: Union[Unset, UUID] = UNSET,
|
|
41
41
|
paused: Union[Unset, bool] = UNSET,
|
|
42
|
+
plan_uuid: Union[Unset, UUID] = UNSET,
|
|
42
43
|
project_name: Union[Unset, str] = UNSET,
|
|
43
44
|
project_uuid: Union[Unset, UUID] = UNSET,
|
|
44
45
|
provider_uuid: Union[Unset, UUID] = UNSET,
|
|
@@ -137,6 +138,11 @@ def _get_kwargs(
|
|
|
137
138
|
|
|
138
139
|
params["paused"] = paused
|
|
139
140
|
|
|
141
|
+
json_plan_uuid: Union[Unset, str] = UNSET
|
|
142
|
+
if not isinstance(plan_uuid, Unset):
|
|
143
|
+
json_plan_uuid = str(plan_uuid)
|
|
144
|
+
params["plan_uuid"] = json_plan_uuid
|
|
145
|
+
|
|
140
146
|
params["project_name"] = project_name
|
|
141
147
|
|
|
142
148
|
json_project_uuid: Union[Unset, str] = UNSET
|
|
@@ -232,6 +238,7 @@ def sync_detailed(
|
|
|
232
238
|
page_size: Union[Unset, int] = UNSET,
|
|
233
239
|
parent_offering_uuid: Union[Unset, UUID] = UNSET,
|
|
234
240
|
paused: Union[Unset, bool] = UNSET,
|
|
241
|
+
plan_uuid: Union[Unset, UUID] = UNSET,
|
|
235
242
|
project_name: Union[Unset, str] = UNSET,
|
|
236
243
|
project_uuid: Union[Unset, UUID] = UNSET,
|
|
237
244
|
provider_uuid: Union[Unset, UUID] = UNSET,
|
|
@@ -268,6 +275,7 @@ def sync_detailed(
|
|
|
268
275
|
page_size (Union[Unset, int]):
|
|
269
276
|
parent_offering_uuid (Union[Unset, UUID]):
|
|
270
277
|
paused (Union[Unset, bool]):
|
|
278
|
+
plan_uuid (Union[Unset, UUID]):
|
|
271
279
|
project_name (Union[Unset, str]):
|
|
272
280
|
project_uuid (Union[Unset, UUID]):
|
|
273
281
|
provider_uuid (Union[Unset, UUID]):
|
|
@@ -310,6 +318,7 @@ def sync_detailed(
|
|
|
310
318
|
page_size=page_size,
|
|
311
319
|
parent_offering_uuid=parent_offering_uuid,
|
|
312
320
|
paused=paused,
|
|
321
|
+
plan_uuid=plan_uuid,
|
|
313
322
|
project_name=project_name,
|
|
314
323
|
project_uuid=project_uuid,
|
|
315
324
|
provider_uuid=provider_uuid,
|
|
@@ -354,6 +363,7 @@ def sync(
|
|
|
354
363
|
page_size: Union[Unset, int] = UNSET,
|
|
355
364
|
parent_offering_uuid: Union[Unset, UUID] = UNSET,
|
|
356
365
|
paused: Union[Unset, bool] = UNSET,
|
|
366
|
+
plan_uuid: Union[Unset, UUID] = UNSET,
|
|
357
367
|
project_name: Union[Unset, str] = UNSET,
|
|
358
368
|
project_uuid: Union[Unset, UUID] = UNSET,
|
|
359
369
|
provider_uuid: Union[Unset, UUID] = UNSET,
|
|
@@ -390,6 +400,7 @@ def sync(
|
|
|
390
400
|
page_size (Union[Unset, int]):
|
|
391
401
|
parent_offering_uuid (Union[Unset, UUID]):
|
|
392
402
|
paused (Union[Unset, bool]):
|
|
403
|
+
plan_uuid (Union[Unset, UUID]):
|
|
393
404
|
project_name (Union[Unset, str]):
|
|
394
405
|
project_uuid (Union[Unset, UUID]):
|
|
395
406
|
provider_uuid (Union[Unset, UUID]):
|
|
@@ -433,6 +444,7 @@ def sync(
|
|
|
433
444
|
page_size=page_size,
|
|
434
445
|
parent_offering_uuid=parent_offering_uuid,
|
|
435
446
|
paused=paused,
|
|
447
|
+
plan_uuid=plan_uuid,
|
|
436
448
|
project_name=project_name,
|
|
437
449
|
project_uuid=project_uuid,
|
|
438
450
|
provider_uuid=provider_uuid,
|
|
@@ -471,6 +483,7 @@ async def asyncio_detailed(
|
|
|
471
483
|
page_size: Union[Unset, int] = UNSET,
|
|
472
484
|
parent_offering_uuid: Union[Unset, UUID] = UNSET,
|
|
473
485
|
paused: Union[Unset, bool] = UNSET,
|
|
486
|
+
plan_uuid: Union[Unset, UUID] = UNSET,
|
|
474
487
|
project_name: Union[Unset, str] = UNSET,
|
|
475
488
|
project_uuid: Union[Unset, UUID] = UNSET,
|
|
476
489
|
provider_uuid: Union[Unset, UUID] = UNSET,
|
|
@@ -507,6 +520,7 @@ async def asyncio_detailed(
|
|
|
507
520
|
page_size (Union[Unset, int]):
|
|
508
521
|
parent_offering_uuid (Union[Unset, UUID]):
|
|
509
522
|
paused (Union[Unset, bool]):
|
|
523
|
+
plan_uuid (Union[Unset, UUID]):
|
|
510
524
|
project_name (Union[Unset, str]):
|
|
511
525
|
project_uuid (Union[Unset, UUID]):
|
|
512
526
|
provider_uuid (Union[Unset, UUID]):
|
|
@@ -549,6 +563,7 @@ async def asyncio_detailed(
|
|
|
549
563
|
page_size=page_size,
|
|
550
564
|
parent_offering_uuid=parent_offering_uuid,
|
|
551
565
|
paused=paused,
|
|
566
|
+
plan_uuid=plan_uuid,
|
|
552
567
|
project_name=project_name,
|
|
553
568
|
project_uuid=project_uuid,
|
|
554
569
|
provider_uuid=provider_uuid,
|
|
@@ -591,6 +606,7 @@ async def asyncio(
|
|
|
591
606
|
page_size: Union[Unset, int] = UNSET,
|
|
592
607
|
parent_offering_uuid: Union[Unset, UUID] = UNSET,
|
|
593
608
|
paused: Union[Unset, bool] = UNSET,
|
|
609
|
+
plan_uuid: Union[Unset, UUID] = UNSET,
|
|
594
610
|
project_name: Union[Unset, str] = UNSET,
|
|
595
611
|
project_uuid: Union[Unset, UUID] = UNSET,
|
|
596
612
|
provider_uuid: Union[Unset, UUID] = UNSET,
|
|
@@ -627,6 +643,7 @@ async def asyncio(
|
|
|
627
643
|
page_size (Union[Unset, int]):
|
|
628
644
|
parent_offering_uuid (Union[Unset, UUID]):
|
|
629
645
|
paused (Union[Unset, bool]):
|
|
646
|
+
plan_uuid (Union[Unset, UUID]):
|
|
630
647
|
project_name (Union[Unset, str]):
|
|
631
648
|
project_uuid (Union[Unset, UUID]):
|
|
632
649
|
provider_uuid (Union[Unset, UUID]):
|
|
@@ -671,6 +688,7 @@ async def asyncio(
|
|
|
671
688
|
page_size=page_size,
|
|
672
689
|
parent_offering_uuid=parent_offering_uuid,
|
|
673
690
|
paused=paused,
|
|
691
|
+
plan_uuid=plan_uuid,
|
|
674
692
|
project_name=project_name,
|
|
675
693
|
project_uuid=project_uuid,
|
|
676
694
|
provider_uuid=provider_uuid,
|
waldur_api_client/api/marketplace_provider_resources/marketplace_provider_resources_move_resource.py
CHANGED
|
@@ -6,18 +6,28 @@ import httpx
|
|
|
6
6
|
|
|
7
7
|
from ... import errors
|
|
8
8
|
from ...client import AuthenticatedClient, Client
|
|
9
|
+
from ...models.move_resource_request import MoveResourceRequest
|
|
9
10
|
from ...models.resource import Resource
|
|
10
11
|
from ...types import Response
|
|
11
12
|
|
|
12
13
|
|
|
13
14
|
def _get_kwargs(
|
|
14
15
|
uuid: UUID,
|
|
16
|
+
*,
|
|
17
|
+
body: MoveResourceRequest,
|
|
15
18
|
) -> dict[str, Any]:
|
|
19
|
+
headers: dict[str, Any] = {}
|
|
20
|
+
|
|
16
21
|
_kwargs: dict[str, Any] = {
|
|
17
22
|
"method": "post",
|
|
18
23
|
"url": f"/api/marketplace-provider-resources/{uuid}/move_resource/",
|
|
19
24
|
}
|
|
20
25
|
|
|
26
|
+
_kwargs["json"] = body.to_dict()
|
|
27
|
+
|
|
28
|
+
headers["Content-Type"] = "application/json"
|
|
29
|
+
|
|
30
|
+
_kwargs["headers"] = headers
|
|
21
31
|
return _kwargs
|
|
22
32
|
|
|
23
33
|
|
|
@@ -42,11 +52,13 @@ def sync_detailed(
|
|
|
42
52
|
uuid: UUID,
|
|
43
53
|
*,
|
|
44
54
|
client: AuthenticatedClient,
|
|
55
|
+
body: MoveResourceRequest,
|
|
45
56
|
) -> Response[Resource]:
|
|
46
57
|
"""Move resource to another project.
|
|
47
58
|
|
|
48
59
|
Args:
|
|
49
60
|
uuid (UUID):
|
|
61
|
+
body (MoveResourceRequest):
|
|
50
62
|
|
|
51
63
|
Raises:
|
|
52
64
|
errors.UnexpectedStatus: If the server returns an undocumented status code.
|
|
@@ -58,6 +70,7 @@ def sync_detailed(
|
|
|
58
70
|
|
|
59
71
|
kwargs = _get_kwargs(
|
|
60
72
|
uuid=uuid,
|
|
73
|
+
body=body,
|
|
61
74
|
)
|
|
62
75
|
|
|
63
76
|
response = client.get_httpx_client().request(
|
|
@@ -71,11 +84,13 @@ def sync(
|
|
|
71
84
|
uuid: UUID,
|
|
72
85
|
*,
|
|
73
86
|
client: AuthenticatedClient,
|
|
87
|
+
body: MoveResourceRequest,
|
|
74
88
|
) -> Resource:
|
|
75
89
|
"""Move resource to another project.
|
|
76
90
|
|
|
77
91
|
Args:
|
|
78
92
|
uuid (UUID):
|
|
93
|
+
body (MoveResourceRequest):
|
|
79
94
|
|
|
80
95
|
Raises:
|
|
81
96
|
errors.UnexpectedStatus: If the server returns an undocumented status code.
|
|
@@ -88,6 +103,7 @@ def sync(
|
|
|
88
103
|
return sync_detailed(
|
|
89
104
|
uuid=uuid,
|
|
90
105
|
client=client,
|
|
106
|
+
body=body,
|
|
91
107
|
).parsed
|
|
92
108
|
|
|
93
109
|
|
|
@@ -95,11 +111,13 @@ async def asyncio_detailed(
|
|
|
95
111
|
uuid: UUID,
|
|
96
112
|
*,
|
|
97
113
|
client: AuthenticatedClient,
|
|
114
|
+
body: MoveResourceRequest,
|
|
98
115
|
) -> Response[Resource]:
|
|
99
116
|
"""Move resource to another project.
|
|
100
117
|
|
|
101
118
|
Args:
|
|
102
119
|
uuid (UUID):
|
|
120
|
+
body (MoveResourceRequest):
|
|
103
121
|
|
|
104
122
|
Raises:
|
|
105
123
|
errors.UnexpectedStatus: If the server returns an undocumented status code.
|
|
@@ -111,6 +129,7 @@ async def asyncio_detailed(
|
|
|
111
129
|
|
|
112
130
|
kwargs = _get_kwargs(
|
|
113
131
|
uuid=uuid,
|
|
132
|
+
body=body,
|
|
114
133
|
)
|
|
115
134
|
|
|
116
135
|
response = await client.get_async_httpx_client().request(**kwargs)
|
|
@@ -122,11 +141,13 @@ async def asyncio(
|
|
|
122
141
|
uuid: UUID,
|
|
123
142
|
*,
|
|
124
143
|
client: AuthenticatedClient,
|
|
144
|
+
body: MoveResourceRequest,
|
|
125
145
|
) -> Resource:
|
|
126
146
|
"""Move resource to another project.
|
|
127
147
|
|
|
128
148
|
Args:
|
|
129
149
|
uuid (UUID):
|
|
150
|
+
body (MoveResourceRequest):
|
|
130
151
|
|
|
131
152
|
Raises:
|
|
132
153
|
errors.UnexpectedStatus: If the server returns an undocumented status code.
|
|
@@ -140,5 +161,6 @@ async def asyncio(
|
|
|
140
161
|
await asyncio_detailed(
|
|
141
162
|
uuid=uuid,
|
|
142
163
|
client=client,
|
|
164
|
+
body=body,
|
|
143
165
|
)
|
|
144
166
|
).parsed
|