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.

Files changed (174) hide show
  1. waldur_api_client/api/booking_resources/booking_resources_count.py +18 -0
  2. waldur_api_client/api/booking_resources/booking_resources_list.py +18 -0
  3. waldur_api_client/api/marketplace_offering_users/marketplace_offering_users_checklist_template_count.py +125 -0
  4. waldur_api_client/api/marketplace_offering_users/marketplace_offering_users_checklist_template_retrieve.py +126 -0
  5. waldur_api_client/api/marketplace_project_update_requests/marketplace_project_update_requests_count.py +18 -18
  6. waldur_api_client/api/marketplace_project_update_requests/marketplace_project_update_requests_list.py +18 -18
  7. waldur_api_client/api/marketplace_provider_offerings/marketplace_provider_offerings_tos_stats_retrieve.py +146 -0
  8. waldur_api_client/api/marketplace_provider_resources/marketplace_provider_resources_count.py +18 -0
  9. waldur_api_client/api/marketplace_provider_resources/marketplace_provider_resources_list.py +18 -0
  10. waldur_api_client/api/marketplace_provider_resources/marketplace_provider_resources_move_resource.py +22 -0
  11. waldur_api_client/api/marketplace_provider_resources/marketplace_provider_resources_update_options.py +168 -0
  12. waldur_api_client/api/marketplace_resources/marketplace_resources_count.py +18 -0
  13. waldur_api_client/api/marketplace_resources/marketplace_resources_list.py +18 -0
  14. waldur_api_client/api/marketplace_resources/marketplace_resources_move_resource.py +22 -0
  15. waldur_api_client/api/marketplace_resources/marketplace_resources_renew.py +166 -0
  16. waldur_api_client/api/marketplace_service_providers/service_provider_checklists_summary.py +189 -0
  17. waldur_api_client/api/onboarding/__init__.py +1 -0
  18. waldur_api_client/api/onboarding/onboarding_supported_countries_retrieve.py +74 -0
  19. waldur_api_client/api/onboarding_justifications/__init__.py +1 -0
  20. waldur_api_client/api/onboarding_justifications/onboarding_justifications_attach_document.py +211 -0
  21. waldur_api_client/api/onboarding_justifications/onboarding_justifications_count.py +172 -0
  22. waldur_api_client/api/onboarding_justifications/onboarding_justifications_create.py +150 -0
  23. waldur_api_client/api/onboarding_justifications/onboarding_justifications_create_justification.py +154 -0
  24. waldur_api_client/api/onboarding_justifications/onboarding_justifications_destroy.py +89 -0
  25. waldur_api_client/api/onboarding_justifications/onboarding_justifications_list.py +175 -0
  26. waldur_api_client/api/onboarding_justifications/onboarding_justifications_partial_update.py +164 -0
  27. waldur_api_client/api/onboarding_justifications/onboarding_justifications_retrieve.py +142 -0
  28. waldur_api_client/api/onboarding_justifications/onboarding_justifications_update.py +164 -0
  29. waldur_api_client/api/onboarding_verifications/__init__.py +1 -0
  30. waldur_api_client/api/onboarding_verifications/onboarding_verifications_count.py +172 -0
  31. waldur_api_client/api/onboarding_verifications/onboarding_verifications_create.py +150 -0
  32. waldur_api_client/api/onboarding_verifications/onboarding_verifications_create_customer.py +144 -0
  33. waldur_api_client/api/onboarding_verifications/onboarding_verifications_destroy.py +89 -0
  34. waldur_api_client/api/onboarding_verifications/onboarding_verifications_list.py +175 -0
  35. waldur_api_client/api/onboarding_verifications/onboarding_verifications_partial_update.py +164 -0
  36. waldur_api_client/api/onboarding_verifications/onboarding_verifications_retrieve.py +142 -0
  37. waldur_api_client/api/onboarding_verifications/onboarding_verifications_update.py +164 -0
  38. waldur_api_client/api/onboarding_verifications/onboarding_verifications_validate_company.py +154 -0
  39. waldur_api_client/api/openstack_backups/openstack_backups_restore.py +10 -10
  40. waldur_api_client/api/openstack_network_rbac_policies/openstack_network_rbac_policies_count.py +33 -0
  41. waldur_api_client/api/openstack_network_rbac_policies/openstack_network_rbac_policies_create.py +154 -0
  42. waldur_api_client/api/openstack_network_rbac_policies/openstack_network_rbac_policies_destroy.py +91 -0
  43. waldur_api_client/api/openstack_network_rbac_policies/openstack_network_rbac_policies_list.py +33 -0
  44. waldur_api_client/api/openstack_network_rbac_policies/openstack_network_rbac_policies_partial_update.py +164 -0
  45. waldur_api_client/api/openstack_network_rbac_policies/openstack_network_rbac_policies_update.py +164 -0
  46. waldur_api_client/api/openstack_networks/openstack_networks_rbac_policy_create.py +24 -22
  47. waldur_api_client/api/projects/projects_checklist_template_count.py +125 -0
  48. waldur_api_client/api/projects/projects_checklist_template_retrieve.py +126 -0
  49. waldur_api_client/api/proposal_proposals/proposal_proposals_checklist_template_count.py +125 -0
  50. waldur_api_client/api/proposal_proposals/proposal_proposals_checklist_template_retrieve.py +126 -0
  51. waldur_api_client/api/proposal_protected_calls/proposal_protected_calls_offerings_list.py +15 -0
  52. waldur_api_client/api/rancher_services/rancher_services_create.py +22 -22
  53. waldur_api_client/models/__init__.py +88 -10
  54. waldur_api_client/models/azure_sql_server_create_order_attributes.py +5 -10
  55. waldur_api_client/models/azure_virtual_machine_create_order_attributes.py +7 -12
  56. waldur_api_client/models/booking_resource.py +9 -34
  57. waldur_api_client/models/booking_resources_list_field_item.py +1 -3
  58. waldur_api_client/models/booking_resources_retrieve_field_item.py +1 -3
  59. waldur_api_client/models/call_round.py +4 -4
  60. waldur_api_client/models/checklist_template.py +99 -0
  61. waldur_api_client/models/checklist_template_checklist.py +44 -0
  62. waldur_api_client/models/constance_settings.py +54 -0
  63. waldur_api_client/models/constance_settings_request.py +54 -0
  64. waldur_api_client/models/constance_settings_request_form.py +54 -0
  65. waldur_api_client/models/constance_settings_request_multipart.py +99 -0
  66. waldur_api_client/models/customer.py +9 -0
  67. waldur_api_client/models/customers_list_field_item.py +1 -0
  68. waldur_api_client/models/customers_retrieve_field_item.py +1 -0
  69. waldur_api_client/models/deprecated_network_rbac_policy.py +137 -0
  70. waldur_api_client/models/deprecated_network_rbac_policy_request.py +78 -0
  71. waldur_api_client/models/event_groups_enum.py +1 -0
  72. waldur_api_client/models/event_types_enum.py +3 -0
  73. waldur_api_client/models/generic_order_attributes.py +1 -2
  74. waldur_api_client/models/managed_rancher_cluster_resources_list_field_item.py +1 -3
  75. waldur_api_client/models/managed_rancher_cluster_resources_retrieve_field_item.py +1 -3
  76. waldur_api_client/models/marketplace_orders_list_field_item.py +1 -3
  77. waldur_api_client/models/marketplace_orders_retrieve_field_item.py +1 -3
  78. waldur_api_client/models/marketplace_provider_resources_details_retrieve_field_item.py +1 -3
  79. waldur_api_client/models/marketplace_provider_resources_list_field_item.py +1 -3
  80. waldur_api_client/models/marketplace_provider_resources_retrieve_field_item.py +1 -3
  81. waldur_api_client/models/marketplace_resources_details_retrieve_field_item.py +1 -3
  82. waldur_api_client/models/marketplace_resources_list_field_item.py +1 -3
  83. waldur_api_client/models/marketplace_resources_retrieve_field_item.py +1 -3
  84. waldur_api_client/models/marketplace_robot_accounts_list_field_item.py +2 -1
  85. waldur_api_client/models/marketplace_robot_accounts_retrieve_field_item.py +2 -1
  86. waldur_api_client/models/marketplace_service_providers_projects_list_field_item.py +1 -0
  87. waldur_api_client/models/merged_plugin_options.py +27 -0
  88. waldur_api_client/models/merged_plugin_options_request.py +27 -0
  89. waldur_api_client/models/move_resource_request.py +65 -0
  90. waldur_api_client/models/nested_round.py +5 -5
  91. waldur_api_client/models/network_rbac_policy_request.py +8 -0
  92. waldur_api_client/models/notification.py +9 -9
  93. waldur_api_client/models/{notification_context_fields.py → notification_context_schema.py} +6 -6
  94. waldur_api_client/models/notification_template_detail_serializers.py +9 -3
  95. waldur_api_client/models/offering_component.py +79 -0
  96. waldur_api_client/models/offering_component_request.py +80 -0
  97. waldur_api_client/models/onboarding_company_validation_request_request.py +88 -0
  98. waldur_api_client/models/onboarding_justification.py +183 -0
  99. waldur_api_client/models/onboarding_justification_create_request.py +68 -0
  100. waldur_api_client/models/onboarding_justification_documentation.py +108 -0
  101. waldur_api_client/models/onboarding_justification_documentation_request.py +84 -0
  102. waldur_api_client/models/onboarding_justification_documentation_request_form.py +84 -0
  103. waldur_api_client/models/onboarding_justification_documentation_request_multipart.py +98 -0
  104. waldur_api_client/models/onboarding_justification_request.py +75 -0
  105. waldur_api_client/models/onboarding_verification.py +250 -0
  106. waldur_api_client/models/onboarding_verification_request.py +128 -0
  107. waldur_api_client/models/onboarding_verification_status_enum.py +12 -0
  108. waldur_api_client/models/open_stack_backup_restoration.py +3 -5
  109. waldur_api_client/models/open_stack_backup_restoration_create_request.py +141 -0
  110. waldur_api_client/models/open_stack_backup_restoration_request.py +22 -30
  111. waldur_api_client/models/open_stack_create_floating_ip_request.py +89 -0
  112. waldur_api_client/models/open_stack_create_port_request.py +104 -0
  113. waldur_api_client/models/open_stack_instance.py +13 -29
  114. waldur_api_client/models/open_stack_instance_create_order_attributes.py +67 -54
  115. waldur_api_client/models/open_stack_instance_floating_i_ps_update_request.py +5 -5
  116. waldur_api_client/models/open_stack_instance_ports_update_request.py +5 -5
  117. waldur_api_client/models/open_stack_instance_request.py +1 -67
  118. waldur_api_client/models/open_stack_nested_port_request.py +0 -9
  119. waldur_api_client/models/{open_stack_nested_security_group_request.py → open_stack_security_group_hyperlink_request.py} +14 -14
  120. waldur_api_client/models/open_stack_server_group_hyperlink_request.py +59 -0
  121. waldur_api_client/models/open_stack_tenant_create_order_attributes.py +9 -14
  122. waldur_api_client/models/open_stack_volume_create_order_attributes.py +8 -13
  123. waldur_api_client/models/openstack_instances_list_field_item.py +0 -7
  124. waldur_api_client/models/openstack_instances_retrieve_field_item.py +0 -7
  125. waldur_api_client/models/order_create.py +8 -0
  126. waldur_api_client/models/order_details.py +9 -34
  127. waldur_api_client/models/patched_network_rbac_policy_request.py +85 -0
  128. waldur_api_client/models/patched_onboarding_justification_request.py +77 -0
  129. waldur_api_client/models/patched_onboarding_verification_request.py +128 -0
  130. waldur_api_client/models/patched_open_stack_instance_request.py +1 -67
  131. waldur_api_client/models/patched_project_credit_request.py +13 -0
  132. waldur_api_client/models/patched_project_request.py +1 -2
  133. waldur_api_client/models/patched_project_request_form.py +1 -2
  134. waldur_api_client/models/patched_project_request_multipart.py +1 -2
  135. waldur_api_client/models/project.py +10 -2
  136. waldur_api_client/models/project_credit.py +13 -0
  137. waldur_api_client/models/project_credit_request.py +13 -0
  138. waldur_api_client/models/{rancher_nested_security_group.py → project_hyperlink_request.py} +5 -5
  139. waldur_api_client/models/project_request.py +1 -2
  140. waldur_api_client/models/project_request_form.py +1 -2
  141. waldur_api_client/models/project_request_multipart.py +1 -2
  142. waldur_api_client/models/projects_list_field_item.py +1 -0
  143. waldur_api_client/models/projects_retrieve_field_item.py +1 -0
  144. waldur_api_client/models/protected_round.py +4 -4
  145. waldur_api_client/models/question.py +102 -0
  146. waldur_api_client/models/{open_stack_data_volume.py → question_options.py} +27 -29
  147. waldur_api_client/models/rancher_clusters_list_field_item.py +0 -1
  148. waldur_api_client/models/rancher_clusters_retrieve_field_item.py +0 -1
  149. waldur_api_client/models/rancher_service_create.py +508 -0
  150. waldur_api_client/models/rancher_service_create_marketplace_offering_plugin_options_type_0.py +44 -0
  151. waldur_api_client/models/rancher_service_create_request.py +185 -0
  152. waldur_api_client/models/rancher_service_request.py +16 -19
  153. waldur_api_client/models/rancher_workload_create.py +59 -0
  154. waldur_api_client/models/rancher_workload_create_request.py +59 -0
  155. waldur_api_client/models/resource.py +9 -34
  156. waldur_api_client/models/resource_renew_request.py +83 -0
  157. waldur_api_client/models/resource_renew_request_limits.py +44 -0
  158. waldur_api_client/models/robot_account_details.py +22 -13
  159. waldur_api_client/models/{status_enum.py → round_status.py} +1 -1
  160. waldur_api_client/models/service_provider_checklist_summary.py +98 -0
  161. waldur_api_client/models/slurm_invoices_slurm_package_create_order_attributes.py +4 -9
  162. waldur_api_client/models/time_series_to_s_data.py +69 -0
  163. waldur_api_client/models/to_s_consent_dashboard.py +155 -0
  164. waldur_api_client/models/update_offering_component_request.py +79 -0
  165. waldur_api_client/models/v_mware_virtual_machine_create_order_attributes.py +11 -16
  166. waldur_api_client/models/validation_decision_enum.py +10 -0
  167. waldur_api_client/models/validation_method_enum.py +8 -0
  168. waldur_api_client/models/version_adoption.py +67 -0
  169. waldur_api_client/models/vmware_nested_network.py +0 -25
  170. waldur_api_client/models/vmware_nested_network_request.py +6 -14
  171. {waldur_api_client-7.8.2.dist-info → waldur_api_client-7.8.4.dist-info}/METADATA +1 -1
  172. {waldur_api_client-7.8.2.dist-info → waldur_api_client-7.8.4.dist-info}/RECORD +174 -101
  173. {waldur_api_client-7.8.2.dist-info → waldur_api_client-7.8.4.dist-info}/WHEEL +0 -0
  174. {waldur_api_client-7.8.2.dist-info → waldur_api_client-7.8.4.dist-info}/licenses/LICENSE +0 -0
@@ -0,0 +1,168 @@
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_options_request import ResourceOptionsRequest
10
+ from ...models.resource_response_status import ResourceResponseStatus
11
+ from ...types import Response
12
+
13
+
14
+ def _get_kwargs(
15
+ uuid: UUID,
16
+ *,
17
+ body: ResourceOptionsRequest,
18
+ ) -> dict[str, Any]:
19
+ headers: dict[str, Any] = {}
20
+
21
+ _kwargs: dict[str, Any] = {
22
+ "method": "post",
23
+ "url": f"/api/marketplace-provider-resources/{uuid}/update_options/",
24
+ }
25
+
26
+ _kwargs["json"] = body.to_dict()
27
+
28
+ headers["Content-Type"] = "application/json"
29
+
30
+ _kwargs["headers"] = headers
31
+ return _kwargs
32
+
33
+
34
+ def _parse_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> ResourceResponseStatus:
35
+ if response.status_code == 200:
36
+ response_200 = ResourceResponseStatus.from_dict(response.json())
37
+
38
+ return response_200
39
+ raise errors.UnexpectedStatus(response.status_code, response.content)
40
+
41
+
42
+ def _build_response(
43
+ *, client: Union[AuthenticatedClient, Client], response: httpx.Response
44
+ ) -> Response[ResourceResponseStatus]:
45
+ return Response(
46
+ status_code=HTTPStatus(response.status_code),
47
+ content=response.content,
48
+ headers=response.headers,
49
+ parsed=_parse_response(client=client, response=response),
50
+ )
51
+
52
+
53
+ def sync_detailed(
54
+ uuid: UUID,
55
+ *,
56
+ client: AuthenticatedClient,
57
+ body: ResourceOptionsRequest,
58
+ ) -> Response[ResourceResponseStatus]:
59
+ """Update resource options.
60
+
61
+ Args:
62
+ uuid (UUID):
63
+ body (ResourceOptionsRequest):
64
+
65
+ Raises:
66
+ errors.UnexpectedStatus: If the server returns an undocumented status code.
67
+ httpx.TimeoutException: If the request takes longer than Client.timeout.
68
+
69
+ Returns:
70
+ Response[ResourceResponseStatus]
71
+ """
72
+
73
+ kwargs = _get_kwargs(
74
+ uuid=uuid,
75
+ body=body,
76
+ )
77
+
78
+ response = client.get_httpx_client().request(
79
+ **kwargs,
80
+ )
81
+
82
+ return _build_response(client=client, response=response)
83
+
84
+
85
+ def sync(
86
+ uuid: UUID,
87
+ *,
88
+ client: AuthenticatedClient,
89
+ body: ResourceOptionsRequest,
90
+ ) -> ResourceResponseStatus:
91
+ """Update resource options.
92
+
93
+ Args:
94
+ uuid (UUID):
95
+ body (ResourceOptionsRequest):
96
+
97
+ Raises:
98
+ errors.UnexpectedStatus: If the server returns an undocumented status code.
99
+ httpx.TimeoutException: If the request takes longer than Client.timeout.
100
+
101
+ Returns:
102
+ ResourceResponseStatus
103
+ """
104
+
105
+ return sync_detailed(
106
+ uuid=uuid,
107
+ client=client,
108
+ body=body,
109
+ ).parsed
110
+
111
+
112
+ async def asyncio_detailed(
113
+ uuid: UUID,
114
+ *,
115
+ client: AuthenticatedClient,
116
+ body: ResourceOptionsRequest,
117
+ ) -> Response[ResourceResponseStatus]:
118
+ """Update resource options.
119
+
120
+ Args:
121
+ uuid (UUID):
122
+ body (ResourceOptionsRequest):
123
+
124
+ Raises:
125
+ errors.UnexpectedStatus: If the server returns an undocumented status code.
126
+ httpx.TimeoutException: If the request takes longer than Client.timeout.
127
+
128
+ Returns:
129
+ Response[ResourceResponseStatus]
130
+ """
131
+
132
+ kwargs = _get_kwargs(
133
+ uuid=uuid,
134
+ body=body,
135
+ )
136
+
137
+ response = await client.get_async_httpx_client().request(**kwargs)
138
+
139
+ return _build_response(client=client, response=response)
140
+
141
+
142
+ async def asyncio(
143
+ uuid: UUID,
144
+ *,
145
+ client: AuthenticatedClient,
146
+ body: ResourceOptionsRequest,
147
+ ) -> ResourceResponseStatus:
148
+ """Update resource options.
149
+
150
+ Args:
151
+ uuid (UUID):
152
+ body (ResourceOptionsRequest):
153
+
154
+ Raises:
155
+ errors.UnexpectedStatus: If the server returns an undocumented status code.
156
+ httpx.TimeoutException: If the request takes longer than Client.timeout.
157
+
158
+ Returns:
159
+ ResourceResponseStatus
160
+ """
161
+
162
+ return (
163
+ await asyncio_detailed(
164
+ uuid=uuid,
165
+ client=client,
166
+ body=body,
167
+ )
168
+ ).parsed
@@ -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,
@@ -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-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
@@ -0,0 +1,166 @@
1
+ from http import HTTPStatus
2
+ from typing import Any, Union
3
+ from uuid import UUID
4
+
5
+ import httpx
6
+
7
+ from ... import errors
8
+ from ...client import AuthenticatedClient, Client
9
+ from ...models.order_uuid import OrderUUID
10
+ from ...models.resource_renew_request import ResourceRenewRequest
11
+ from ...types import Response
12
+
13
+
14
+ def _get_kwargs(
15
+ uuid: UUID,
16
+ *,
17
+ body: ResourceRenewRequest,
18
+ ) -> dict[str, Any]:
19
+ headers: dict[str, Any] = {}
20
+
21
+ _kwargs: dict[str, Any] = {
22
+ "method": "post",
23
+ "url": f"/api/marketplace-resources/{uuid}/renew/",
24
+ }
25
+
26
+ _kwargs["json"] = body.to_dict()
27
+
28
+ headers["Content-Type"] = "application/json"
29
+
30
+ _kwargs["headers"] = headers
31
+ return _kwargs
32
+
33
+
34
+ def _parse_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> OrderUUID:
35
+ if response.status_code == 200:
36
+ response_200 = OrderUUID.from_dict(response.json())
37
+
38
+ return response_200
39
+ raise errors.UnexpectedStatus(response.status_code, response.content)
40
+
41
+
42
+ def _build_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> Response[OrderUUID]:
43
+ return Response(
44
+ status_code=HTTPStatus(response.status_code),
45
+ content=response.content,
46
+ headers=response.headers,
47
+ parsed=_parse_response(client=client, response=response),
48
+ )
49
+
50
+
51
+ def sync_detailed(
52
+ uuid: UUID,
53
+ *,
54
+ client: AuthenticatedClient,
55
+ body: ResourceRenewRequest,
56
+ ) -> Response[OrderUUID]:
57
+ """Create a renewal order for a prepaid resource.
58
+
59
+ Args:
60
+ uuid (UUID):
61
+ body (ResourceRenewRequest):
62
+
63
+ Raises:
64
+ errors.UnexpectedStatus: If the server returns an undocumented status code.
65
+ httpx.TimeoutException: If the request takes longer than Client.timeout.
66
+
67
+ Returns:
68
+ Response[OrderUUID]
69
+ """
70
+
71
+ kwargs = _get_kwargs(
72
+ uuid=uuid,
73
+ body=body,
74
+ )
75
+
76
+ response = client.get_httpx_client().request(
77
+ **kwargs,
78
+ )
79
+
80
+ return _build_response(client=client, response=response)
81
+
82
+
83
+ def sync(
84
+ uuid: UUID,
85
+ *,
86
+ client: AuthenticatedClient,
87
+ body: ResourceRenewRequest,
88
+ ) -> OrderUUID:
89
+ """Create a renewal order for a prepaid resource.
90
+
91
+ Args:
92
+ uuid (UUID):
93
+ body (ResourceRenewRequest):
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
+ OrderUUID
101
+ """
102
+
103
+ return sync_detailed(
104
+ uuid=uuid,
105
+ client=client,
106
+ body=body,
107
+ ).parsed
108
+
109
+
110
+ async def asyncio_detailed(
111
+ uuid: UUID,
112
+ *,
113
+ client: AuthenticatedClient,
114
+ body: ResourceRenewRequest,
115
+ ) -> Response[OrderUUID]:
116
+ """Create a renewal order for a prepaid resource.
117
+
118
+ Args:
119
+ uuid (UUID):
120
+ body (ResourceRenewRequest):
121
+
122
+ Raises:
123
+ errors.UnexpectedStatus: If the server returns an undocumented status code.
124
+ httpx.TimeoutException: If the request takes longer than Client.timeout.
125
+
126
+ Returns:
127
+ Response[OrderUUID]
128
+ """
129
+
130
+ kwargs = _get_kwargs(
131
+ uuid=uuid,
132
+ body=body,
133
+ )
134
+
135
+ response = await client.get_async_httpx_client().request(**kwargs)
136
+
137
+ return _build_response(client=client, response=response)
138
+
139
+
140
+ async def asyncio(
141
+ uuid: UUID,
142
+ *,
143
+ client: AuthenticatedClient,
144
+ body: ResourceRenewRequest,
145
+ ) -> OrderUUID:
146
+ """Create a renewal order for a prepaid resource.
147
+
148
+ Args:
149
+ uuid (UUID):
150
+ body (ResourceRenewRequest):
151
+
152
+ Raises:
153
+ errors.UnexpectedStatus: If the server returns an undocumented status code.
154
+ httpx.TimeoutException: If the request takes longer than Client.timeout.
155
+
156
+ Returns:
157
+ OrderUUID
158
+ """
159
+
160
+ return (
161
+ await asyncio_detailed(
162
+ uuid=uuid,
163
+ client=client,
164
+ body=body,
165
+ )
166
+ ).parsed