waldur-api-client 7.7.5__py3-none-any.whl → 7.7.6__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/marketplace_offering_users/marketplace_offering_users_checklist_retrieve.py +154 -0
- waldur_api_client/api/marketplace_offering_users/marketplace_offering_users_checklist_review_retrieve.py +154 -0
- waldur_api_client/api/marketplace_offering_users/marketplace_offering_users_completion_review_status_retrieve.py +154 -0
- waldur_api_client/api/marketplace_offering_users/marketplace_offering_users_completion_status_retrieve.py +154 -0
- waldur_api_client/api/marketplace_offering_users/marketplace_offering_users_submit_answers.py +179 -0
- waldur_api_client/api/marketplace_robot_accounts/marketplace_robot_accounts_list.py +23 -0
- waldur_api_client/api/marketplace_robot_accounts/marketplace_robot_accounts_retrieve.py +30 -1
- waldur_api_client/api/marketplace_service_providers/marketplace_service_providers_project_service_accounts_list.py +276 -0
- waldur_api_client/api/marketplace_service_providers/service_provider_compliance_overview.py +189 -0
- waldur_api_client/api/marketplace_service_providers/service_provider_offering_users_compliance.py +222 -0
- waldur_api_client/api/public_maintenance_announcements/__init__.py +1 -0
- waldur_api_client/api/public_maintenance_announcements/public_maintenance_announcements_count.py +325 -0
- waldur_api_client/api/public_maintenance_announcements/public_maintenance_announcements_list.py +328 -0
- waldur_api_client/api/public_maintenance_announcements/public_maintenance_announcements_retrieve.py +144 -0
- waldur_api_client/models/__init__.py +56 -4
- waldur_api_client/models/admin_announcement.py +109 -1
- waldur_api_client/models/admin_announcement_maintenance_affected_offerings_item.py +103 -0
- waldur_api_client/models/admin_announcements_list_field_item.py +8 -0
- waldur_api_client/models/admin_announcements_retrieve_field_item.py +8 -0
- waldur_api_client/models/azure_sql_server_create_order_attributes.py +80 -0
- waldur_api_client/models/azure_virtual_machine_create_order_attributes.py +96 -0
- waldur_api_client/models/basic_user.py +30 -21
- waldur_api_client/models/booking_offerings_list_field_item.py +1 -0
- waldur_api_client/models/booking_offerings_retrieve_field_item.py +1 -0
- waldur_api_client/models/create_router.py +1 -1
- waldur_api_client/models/create_router_request.py +1 -1
- waldur_api_client/models/customer.py +0 -30
- waldur_api_client/models/customers_list_field_item.py +0 -2
- waldur_api_client/models/customers_retrieve_field_item.py +0 -2
- waldur_api_client/models/fingerprint.py +19 -17
- waldur_api_client/models/instance_flavor_change_request.py +1 -1
- waldur_api_client/models/marketplace_managed_rancher_create_order_attributes.py +144 -0
- waldur_api_client/models/marketplace_provider_offerings_list_customer_service_accounts_retrieve_field_item.py +1 -0
- waldur_api_client/models/marketplace_provider_offerings_list_field_item.py +1 -0
- waldur_api_client/models/marketplace_provider_offerings_list_project_service_accounts_retrieve_field_item.py +1 -0
- waldur_api_client/models/marketplace_provider_offerings_retrieve_field_item.py +1 -0
- waldur_api_client/models/marketplace_provider_offerings_stats_retrieve_field_item.py +1 -0
- waldur_api_client/models/marketplace_provider_offerings_user_has_resource_access_retrieve_field_item.py +1 -0
- waldur_api_client/models/marketplace_public_offerings_list_field_item.py +1 -0
- waldur_api_client/models/marketplace_public_offerings_retrieve_field_item.py +1 -0
- waldur_api_client/models/marketplace_rancher_create_order_attributes.py +142 -0
- waldur_api_client/models/marketplace_robot_accounts_list_field_item.py +32 -0
- waldur_api_client/models/marketplace_robot_accounts_retrieve_field_item.py +32 -0
- waldur_api_client/models/offering.py +9 -0
- waldur_api_client/models/offering_create.py +8 -0
- waldur_api_client/models/open_stack_backend_instance.py +2 -2
- waldur_api_client/models/open_stack_backend_volumes.py +3 -3
- waldur_api_client/models/open_stack_backup.py +1 -1
- waldur_api_client/models/open_stack_backup_restoration.py +8 -5
- waldur_api_client/models/open_stack_backup_restoration_request.py +28 -3
- waldur_api_client/models/open_stack_fixed_ip.py +2 -2
- waldur_api_client/models/open_stack_fixed_ip_request.py +2 -2
- waldur_api_client/models/open_stack_floating_ip.py +5 -4
- waldur_api_client/models/open_stack_instance.py +17 -15
- waldur_api_client/models/open_stack_instance_allowed_address_pairs_update_request.py +3 -2
- waldur_api_client/models/open_stack_instance_availability_zone.py +1 -1
- waldur_api_client/models/open_stack_instance_create_order_attributes.py +280 -0
- waldur_api_client/models/open_stack_instance_request.py +4 -3
- waldur_api_client/models/open_stack_instance_security_groups_update_request.py +1 -1
- waldur_api_client/models/open_stack_nested_floating_ip.py +3 -3
- waldur_api_client/models/open_stack_nested_instance.py +1 -1
- waldur_api_client/models/open_stack_nested_port.py +5 -5
- waldur_api_client/models/open_stack_nested_port_request.py +1 -1
- waldur_api_client/models/open_stack_nested_security_group.py +1 -53
- waldur_api_client/models/open_stack_nested_security_group_request.py +59 -0
- waldur_api_client/models/open_stack_nested_sub_net.py +4 -4
- waldur_api_client/models/open_stack_nested_sub_net_request.py +4 -4
- waldur_api_client/models/open_stack_nested_volume.py +3 -3
- waldur_api_client/models/open_stack_nested_volume_request.py +3 -3
- waldur_api_client/models/open_stack_network.py +3 -3
- waldur_api_client/models/open_stack_port.py +10 -9
- waldur_api_client/models/open_stack_port_ip_update_request.py +2 -2
- waldur_api_client/models/open_stack_port_request.py +3 -3
- waldur_api_client/models/open_stack_router.py +2 -2
- waldur_api_client/models/open_stack_router_interface_request.py +4 -2
- waldur_api_client/models/open_stack_security_group_rule_create.py +6 -5
- waldur_api_client/models/open_stack_security_group_rule_create_request.py +6 -5
- waldur_api_client/models/open_stack_security_group_rule_update_request.py +6 -5
- waldur_api_client/models/open_stack_server_group.py +2 -1
- waldur_api_client/models/open_stack_server_group_request.py +2 -1
- waldur_api_client/models/open_stack_snapshot.py +2 -2
- waldur_api_client/models/open_stack_snapshot_restoration.py +1 -1
- waldur_api_client/models/open_stack_sub_net.py +5 -5
- waldur_api_client/models/open_stack_sub_net_request.py +2 -2
- waldur_api_client/models/open_stack_tenant.py +3 -3
- waldur_api_client/models/open_stack_tenant_create_order_attributes.py +109 -0
- waldur_api_client/models/open_stack_volume.py +9 -9
- waldur_api_client/models/open_stack_volume_create_order_attributes.py +152 -0
- waldur_api_client/models/open_stack_volume_request.py +1 -1
- waldur_api_client/models/order_create_request.py +165 -4
- waldur_api_client/models/patched_open_stack_instance_request.py +4 -3
- waldur_api_client/models/patched_open_stack_server_group_request.py +2 -1
- waldur_api_client/models/patched_open_stack_sub_net_request.py +2 -2
- waldur_api_client/models/patched_open_stack_volume_request.py +1 -1
- waldur_api_client/models/permission_request.py +2 -2
- waldur_api_client/models/provider_offering_details.py +9 -0
- waldur_api_client/models/public_maintenance_announcement.py +217 -0
- waldur_api_client/models/public_maintenance_announcement_state_enum.py +10 -0
- waldur_api_client/models/public_maintenance_announcements_count_o_item.py +15 -0
- waldur_api_client/models/public_maintenance_announcements_count_state_item.py +12 -0
- waldur_api_client/models/public_maintenance_announcements_list_o_item.py +15 -0
- waldur_api_client/models/public_maintenance_announcements_list_state_item.py +12 -0
- waldur_api_client/models/public_offering_details.py +9 -0
- waldur_api_client/models/rancher_cluster_security_group_rule.py +5 -4
- waldur_api_client/models/rancher_cluster_security_group_rule_request.py +5 -4
- waldur_api_client/models/remote_project_update_request.py +2 -2
- waldur_api_client/models/robot_account_details.py +226 -144
- waldur_api_client/models/service_provider_compliance_overview.py +122 -0
- waldur_api_client/models/service_provider_offering_user_compliance.py +179 -0
- waldur_api_client/models/service_provider_offering_user_compliance_state_enum.py +17 -0
- waldur_api_client/models/slurm_invoices_slurm_package_create_order_attributes.py +72 -0
- waldur_api_client/models/v_mware_virtual_machine_create_order_attributes.py +225 -0
- waldur_api_client/models/v_mware_virtual_machine_create_order_attributes_guest_os_type_1.py +155 -0
- waldur_api_client/models/v_mware_virtual_machine_create_order_attributes_guest_os_type_2_type_1.py +155 -0
- waldur_api_client/models/v_mware_virtual_machine_create_order_attributes_guest_os_type_3_type_1.py +155 -0
- waldur_api_client/models/volume_attach_request.py +1 -1
- {waldur_api_client-7.7.5.dist-info → waldur_api_client-7.7.6.dist-info}/METADATA +1 -1
- {waldur_api_client-7.7.5.dist-info → waldur_api_client-7.7.6.dist-info}/RECORD +120 -85
- waldur_api_client/models/nested_security_group_rule.py +0 -222
- waldur_api_client/models/nested_security_group_rule_request.py +0 -187
- {waldur_api_client-7.7.5.dist-info → waldur_api_client-7.7.6.dist-info}/LICENSE +0 -0
- {waldur_api_client-7.7.5.dist-info → waldur_api_client-7.7.6.dist-info}/WHEEL +0 -0
|
@@ -0,0 +1,179 @@
|
|
|
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.answer_submit_request import AnswerSubmitRequest
|
|
10
|
+
from ...models.answer_submit_response import AnswerSubmitResponse
|
|
11
|
+
from ...types import Response
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
def _get_kwargs(
|
|
15
|
+
uuid: UUID,
|
|
16
|
+
*,
|
|
17
|
+
body: list["AnswerSubmitRequest"],
|
|
18
|
+
) -> dict[str, Any]:
|
|
19
|
+
headers: dict[str, Any] = {}
|
|
20
|
+
|
|
21
|
+
_kwargs: dict[str, Any] = {
|
|
22
|
+
"method": "post",
|
|
23
|
+
"url": f"/api/marketplace-offering-users/{uuid}/submit_answers/",
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
_kwargs["json"] = []
|
|
27
|
+
for body_item_data in body:
|
|
28
|
+
body_item = body_item_data.to_dict()
|
|
29
|
+
_kwargs["json"].append(body_item)
|
|
30
|
+
|
|
31
|
+
headers["Content-Type"] = "application/json"
|
|
32
|
+
|
|
33
|
+
_kwargs["headers"] = headers
|
|
34
|
+
return _kwargs
|
|
35
|
+
|
|
36
|
+
|
|
37
|
+
def _parse_response(
|
|
38
|
+
*, client: Union[AuthenticatedClient, Client], response: httpx.Response
|
|
39
|
+
) -> Union[AnswerSubmitResponse, Any]:
|
|
40
|
+
if response.status_code == 200:
|
|
41
|
+
response_200 = AnswerSubmitResponse.from_dict(response.json())
|
|
42
|
+
|
|
43
|
+
return response_200
|
|
44
|
+
if response.status_code == 400:
|
|
45
|
+
response_400 = response.json()
|
|
46
|
+
return response_400
|
|
47
|
+
if response.status_code == 404:
|
|
48
|
+
response_404 = response.json()
|
|
49
|
+
return response_404
|
|
50
|
+
raise errors.UnexpectedStatus(response.status_code, response.content)
|
|
51
|
+
|
|
52
|
+
|
|
53
|
+
def _build_response(
|
|
54
|
+
*, client: Union[AuthenticatedClient, Client], response: httpx.Response
|
|
55
|
+
) -> Response[Union[AnswerSubmitResponse, Any]]:
|
|
56
|
+
return Response(
|
|
57
|
+
status_code=HTTPStatus(response.status_code),
|
|
58
|
+
content=response.content,
|
|
59
|
+
headers=response.headers,
|
|
60
|
+
parsed=_parse_response(client=client, response=response),
|
|
61
|
+
)
|
|
62
|
+
|
|
63
|
+
|
|
64
|
+
def sync_detailed(
|
|
65
|
+
uuid: UUID,
|
|
66
|
+
*,
|
|
67
|
+
client: AuthenticatedClient,
|
|
68
|
+
body: list["AnswerSubmitRequest"],
|
|
69
|
+
) -> Response[Union[AnswerSubmitResponse, Any]]:
|
|
70
|
+
"""Submit checklist answers.
|
|
71
|
+
|
|
72
|
+
Args:
|
|
73
|
+
uuid (UUID):
|
|
74
|
+
body (list['AnswerSubmitRequest']):
|
|
75
|
+
|
|
76
|
+
Raises:
|
|
77
|
+
errors.UnexpectedStatus: If the server returns an undocumented status code.
|
|
78
|
+
httpx.TimeoutException: If the request takes longer than Client.timeout.
|
|
79
|
+
|
|
80
|
+
Returns:
|
|
81
|
+
Response[Union[AnswerSubmitResponse, Any]]
|
|
82
|
+
"""
|
|
83
|
+
|
|
84
|
+
kwargs = _get_kwargs(
|
|
85
|
+
uuid=uuid,
|
|
86
|
+
body=body,
|
|
87
|
+
)
|
|
88
|
+
|
|
89
|
+
response = client.get_httpx_client().request(
|
|
90
|
+
**kwargs,
|
|
91
|
+
)
|
|
92
|
+
|
|
93
|
+
return _build_response(client=client, response=response)
|
|
94
|
+
|
|
95
|
+
|
|
96
|
+
def sync(
|
|
97
|
+
uuid: UUID,
|
|
98
|
+
*,
|
|
99
|
+
client: AuthenticatedClient,
|
|
100
|
+
body: list["AnswerSubmitRequest"],
|
|
101
|
+
) -> Union[AnswerSubmitResponse, Any]:
|
|
102
|
+
"""Submit checklist answers.
|
|
103
|
+
|
|
104
|
+
Args:
|
|
105
|
+
uuid (UUID):
|
|
106
|
+
body (list['AnswerSubmitRequest']):
|
|
107
|
+
|
|
108
|
+
Raises:
|
|
109
|
+
errors.UnexpectedStatus: If the server returns an undocumented status code.
|
|
110
|
+
httpx.TimeoutException: If the request takes longer than Client.timeout.
|
|
111
|
+
|
|
112
|
+
Returns:
|
|
113
|
+
Union[AnswerSubmitResponse, Any]
|
|
114
|
+
"""
|
|
115
|
+
|
|
116
|
+
return sync_detailed(
|
|
117
|
+
uuid=uuid,
|
|
118
|
+
client=client,
|
|
119
|
+
body=body,
|
|
120
|
+
).parsed
|
|
121
|
+
|
|
122
|
+
|
|
123
|
+
async def asyncio_detailed(
|
|
124
|
+
uuid: UUID,
|
|
125
|
+
*,
|
|
126
|
+
client: AuthenticatedClient,
|
|
127
|
+
body: list["AnswerSubmitRequest"],
|
|
128
|
+
) -> Response[Union[AnswerSubmitResponse, Any]]:
|
|
129
|
+
"""Submit checklist answers.
|
|
130
|
+
|
|
131
|
+
Args:
|
|
132
|
+
uuid (UUID):
|
|
133
|
+
body (list['AnswerSubmitRequest']):
|
|
134
|
+
|
|
135
|
+
Raises:
|
|
136
|
+
errors.UnexpectedStatus: If the server returns an undocumented status code.
|
|
137
|
+
httpx.TimeoutException: If the request takes longer than Client.timeout.
|
|
138
|
+
|
|
139
|
+
Returns:
|
|
140
|
+
Response[Union[AnswerSubmitResponse, Any]]
|
|
141
|
+
"""
|
|
142
|
+
|
|
143
|
+
kwargs = _get_kwargs(
|
|
144
|
+
uuid=uuid,
|
|
145
|
+
body=body,
|
|
146
|
+
)
|
|
147
|
+
|
|
148
|
+
response = await client.get_async_httpx_client().request(**kwargs)
|
|
149
|
+
|
|
150
|
+
return _build_response(client=client, response=response)
|
|
151
|
+
|
|
152
|
+
|
|
153
|
+
async def asyncio(
|
|
154
|
+
uuid: UUID,
|
|
155
|
+
*,
|
|
156
|
+
client: AuthenticatedClient,
|
|
157
|
+
body: list["AnswerSubmitRequest"],
|
|
158
|
+
) -> Union[AnswerSubmitResponse, Any]:
|
|
159
|
+
"""Submit checklist answers.
|
|
160
|
+
|
|
161
|
+
Args:
|
|
162
|
+
uuid (UUID):
|
|
163
|
+
body (list['AnswerSubmitRequest']):
|
|
164
|
+
|
|
165
|
+
Raises:
|
|
166
|
+
errors.UnexpectedStatus: If the server returns an undocumented status code.
|
|
167
|
+
httpx.TimeoutException: If the request takes longer than Client.timeout.
|
|
168
|
+
|
|
169
|
+
Returns:
|
|
170
|
+
Union[AnswerSubmitResponse, Any]
|
|
171
|
+
"""
|
|
172
|
+
|
|
173
|
+
return (
|
|
174
|
+
await asyncio_detailed(
|
|
175
|
+
uuid=uuid,
|
|
176
|
+
client=client,
|
|
177
|
+
body=body,
|
|
178
|
+
)
|
|
179
|
+
).parsed
|
|
@@ -7,6 +7,7 @@ import httpx
|
|
|
7
7
|
|
|
8
8
|
from ... import errors
|
|
9
9
|
from ...client import AuthenticatedClient, Client
|
|
10
|
+
from ...models.marketplace_robot_accounts_list_field_item import MarketplaceRobotAccountsListFieldItem
|
|
10
11
|
from ...models.marketplace_robot_accounts_list_state import MarketplaceRobotAccountsListState
|
|
11
12
|
from ...models.robot_account_details import RobotAccountDetails
|
|
12
13
|
from ...types import UNSET, Response, Unset
|
|
@@ -16,6 +17,7 @@ def _get_kwargs(
|
|
|
16
17
|
*,
|
|
17
18
|
created: Union[Unset, datetime.datetime] = UNSET,
|
|
18
19
|
customer_uuid: Union[Unset, UUID] = UNSET,
|
|
20
|
+
field: Union[Unset, list[MarketplaceRobotAccountsListFieldItem]] = UNSET,
|
|
19
21
|
modified: Union[Unset, datetime.datetime] = UNSET,
|
|
20
22
|
page: Union[Unset, int] = UNSET,
|
|
21
23
|
page_size: Union[Unset, int] = UNSET,
|
|
@@ -38,6 +40,15 @@ def _get_kwargs(
|
|
|
38
40
|
json_customer_uuid = str(customer_uuid)
|
|
39
41
|
params["customer_uuid"] = json_customer_uuid
|
|
40
42
|
|
|
43
|
+
json_field: Union[Unset, list[str]] = UNSET
|
|
44
|
+
if not isinstance(field, Unset):
|
|
45
|
+
json_field = []
|
|
46
|
+
for field_item_data in field:
|
|
47
|
+
field_item = field_item_data.value
|
|
48
|
+
json_field.append(field_item)
|
|
49
|
+
|
|
50
|
+
params["field"] = json_field
|
|
51
|
+
|
|
41
52
|
json_modified: Union[Unset, str] = UNSET
|
|
42
53
|
if not isinstance(modified, Unset):
|
|
43
54
|
json_modified = modified.isoformat()
|
|
@@ -114,6 +125,7 @@ def sync_detailed(
|
|
|
114
125
|
client: AuthenticatedClient,
|
|
115
126
|
created: Union[Unset, datetime.datetime] = UNSET,
|
|
116
127
|
customer_uuid: Union[Unset, UUID] = UNSET,
|
|
128
|
+
field: Union[Unset, list[MarketplaceRobotAccountsListFieldItem]] = UNSET,
|
|
117
129
|
modified: Union[Unset, datetime.datetime] = UNSET,
|
|
118
130
|
page: Union[Unset, int] = UNSET,
|
|
119
131
|
page_size: Union[Unset, int] = UNSET,
|
|
@@ -129,6 +141,7 @@ def sync_detailed(
|
|
|
129
141
|
Args:
|
|
130
142
|
created (Union[Unset, datetime.datetime]):
|
|
131
143
|
customer_uuid (Union[Unset, UUID]):
|
|
144
|
+
field (Union[Unset, list[MarketplaceRobotAccountsListFieldItem]]):
|
|
132
145
|
modified (Union[Unset, datetime.datetime]):
|
|
133
146
|
page (Union[Unset, int]):
|
|
134
147
|
page_size (Union[Unset, int]):
|
|
@@ -150,6 +163,7 @@ def sync_detailed(
|
|
|
150
163
|
kwargs = _get_kwargs(
|
|
151
164
|
created=created,
|
|
152
165
|
customer_uuid=customer_uuid,
|
|
166
|
+
field=field,
|
|
153
167
|
modified=modified,
|
|
154
168
|
page=page,
|
|
155
169
|
page_size=page_size,
|
|
@@ -173,6 +187,7 @@ def sync(
|
|
|
173
187
|
client: AuthenticatedClient,
|
|
174
188
|
created: Union[Unset, datetime.datetime] = UNSET,
|
|
175
189
|
customer_uuid: Union[Unset, UUID] = UNSET,
|
|
190
|
+
field: Union[Unset, list[MarketplaceRobotAccountsListFieldItem]] = UNSET,
|
|
176
191
|
modified: Union[Unset, datetime.datetime] = UNSET,
|
|
177
192
|
page: Union[Unset, int] = UNSET,
|
|
178
193
|
page_size: Union[Unset, int] = UNSET,
|
|
@@ -188,6 +203,7 @@ def sync(
|
|
|
188
203
|
Args:
|
|
189
204
|
created (Union[Unset, datetime.datetime]):
|
|
190
205
|
customer_uuid (Union[Unset, UUID]):
|
|
206
|
+
field (Union[Unset, list[MarketplaceRobotAccountsListFieldItem]]):
|
|
191
207
|
modified (Union[Unset, datetime.datetime]):
|
|
192
208
|
page (Union[Unset, int]):
|
|
193
209
|
page_size (Union[Unset, int]):
|
|
@@ -210,6 +226,7 @@ def sync(
|
|
|
210
226
|
client=client,
|
|
211
227
|
created=created,
|
|
212
228
|
customer_uuid=customer_uuid,
|
|
229
|
+
field=field,
|
|
213
230
|
modified=modified,
|
|
214
231
|
page=page,
|
|
215
232
|
page_size=page_size,
|
|
@@ -227,6 +244,7 @@ async def asyncio_detailed(
|
|
|
227
244
|
client: AuthenticatedClient,
|
|
228
245
|
created: Union[Unset, datetime.datetime] = UNSET,
|
|
229
246
|
customer_uuid: Union[Unset, UUID] = UNSET,
|
|
247
|
+
field: Union[Unset, list[MarketplaceRobotAccountsListFieldItem]] = UNSET,
|
|
230
248
|
modified: Union[Unset, datetime.datetime] = UNSET,
|
|
231
249
|
page: Union[Unset, int] = UNSET,
|
|
232
250
|
page_size: Union[Unset, int] = UNSET,
|
|
@@ -242,6 +260,7 @@ async def asyncio_detailed(
|
|
|
242
260
|
Args:
|
|
243
261
|
created (Union[Unset, datetime.datetime]):
|
|
244
262
|
customer_uuid (Union[Unset, UUID]):
|
|
263
|
+
field (Union[Unset, list[MarketplaceRobotAccountsListFieldItem]]):
|
|
245
264
|
modified (Union[Unset, datetime.datetime]):
|
|
246
265
|
page (Union[Unset, int]):
|
|
247
266
|
page_size (Union[Unset, int]):
|
|
@@ -263,6 +282,7 @@ async def asyncio_detailed(
|
|
|
263
282
|
kwargs = _get_kwargs(
|
|
264
283
|
created=created,
|
|
265
284
|
customer_uuid=customer_uuid,
|
|
285
|
+
field=field,
|
|
266
286
|
modified=modified,
|
|
267
287
|
page=page,
|
|
268
288
|
page_size=page_size,
|
|
@@ -284,6 +304,7 @@ async def asyncio(
|
|
|
284
304
|
client: AuthenticatedClient,
|
|
285
305
|
created: Union[Unset, datetime.datetime] = UNSET,
|
|
286
306
|
customer_uuid: Union[Unset, UUID] = UNSET,
|
|
307
|
+
field: Union[Unset, list[MarketplaceRobotAccountsListFieldItem]] = UNSET,
|
|
287
308
|
modified: Union[Unset, datetime.datetime] = UNSET,
|
|
288
309
|
page: Union[Unset, int] = UNSET,
|
|
289
310
|
page_size: Union[Unset, int] = UNSET,
|
|
@@ -299,6 +320,7 @@ async def asyncio(
|
|
|
299
320
|
Args:
|
|
300
321
|
created (Union[Unset, datetime.datetime]):
|
|
301
322
|
customer_uuid (Union[Unset, UUID]):
|
|
323
|
+
field (Union[Unset, list[MarketplaceRobotAccountsListFieldItem]]):
|
|
302
324
|
modified (Union[Unset, datetime.datetime]):
|
|
303
325
|
page (Union[Unset, int]):
|
|
304
326
|
page_size (Union[Unset, int]):
|
|
@@ -322,6 +344,7 @@ async def asyncio(
|
|
|
322
344
|
client=client,
|
|
323
345
|
created=created,
|
|
324
346
|
customer_uuid=customer_uuid,
|
|
347
|
+
field=field,
|
|
325
348
|
modified=modified,
|
|
326
349
|
page=page,
|
|
327
350
|
page_size=page_size,
|
|
@@ -6,16 +6,33 @@ import httpx
|
|
|
6
6
|
|
|
7
7
|
from ... import errors
|
|
8
8
|
from ...client import AuthenticatedClient, Client
|
|
9
|
+
from ...models.marketplace_robot_accounts_retrieve_field_item import MarketplaceRobotAccountsRetrieveFieldItem
|
|
9
10
|
from ...models.robot_account_details import RobotAccountDetails
|
|
10
|
-
from ...types import Response
|
|
11
|
+
from ...types import UNSET, Response, Unset
|
|
11
12
|
|
|
12
13
|
|
|
13
14
|
def _get_kwargs(
|
|
14
15
|
uuid: UUID,
|
|
16
|
+
*,
|
|
17
|
+
field: Union[Unset, list[MarketplaceRobotAccountsRetrieveFieldItem]] = UNSET,
|
|
15
18
|
) -> dict[str, Any]:
|
|
19
|
+
params: dict[str, Any] = {}
|
|
20
|
+
|
|
21
|
+
json_field: Union[Unset, list[str]] = UNSET
|
|
22
|
+
if not isinstance(field, Unset):
|
|
23
|
+
json_field = []
|
|
24
|
+
for field_item_data in field:
|
|
25
|
+
field_item = field_item_data.value
|
|
26
|
+
json_field.append(field_item)
|
|
27
|
+
|
|
28
|
+
params["field"] = json_field
|
|
29
|
+
|
|
30
|
+
params = {k: v for k, v in params.items() if v is not UNSET and v is not None}
|
|
31
|
+
|
|
16
32
|
_kwargs: dict[str, Any] = {
|
|
17
33
|
"method": "get",
|
|
18
34
|
"url": f"/api/marketplace-robot-accounts/{uuid}/",
|
|
35
|
+
"params": params,
|
|
19
36
|
}
|
|
20
37
|
|
|
21
38
|
return _kwargs
|
|
@@ -44,10 +61,12 @@ def sync_detailed(
|
|
|
44
61
|
uuid: UUID,
|
|
45
62
|
*,
|
|
46
63
|
client: AuthenticatedClient,
|
|
64
|
+
field: Union[Unset, list[MarketplaceRobotAccountsRetrieveFieldItem]] = UNSET,
|
|
47
65
|
) -> Response[RobotAccountDetails]:
|
|
48
66
|
"""
|
|
49
67
|
Args:
|
|
50
68
|
uuid (UUID):
|
|
69
|
+
field (Union[Unset, list[MarketplaceRobotAccountsRetrieveFieldItem]]):
|
|
51
70
|
|
|
52
71
|
Raises:
|
|
53
72
|
errors.UnexpectedStatus: If the server returns an undocumented status code.
|
|
@@ -59,6 +78,7 @@ def sync_detailed(
|
|
|
59
78
|
|
|
60
79
|
kwargs = _get_kwargs(
|
|
61
80
|
uuid=uuid,
|
|
81
|
+
field=field,
|
|
62
82
|
)
|
|
63
83
|
|
|
64
84
|
response = client.get_httpx_client().request(
|
|
@@ -72,10 +92,12 @@ def sync(
|
|
|
72
92
|
uuid: UUID,
|
|
73
93
|
*,
|
|
74
94
|
client: AuthenticatedClient,
|
|
95
|
+
field: Union[Unset, list[MarketplaceRobotAccountsRetrieveFieldItem]] = UNSET,
|
|
75
96
|
) -> RobotAccountDetails:
|
|
76
97
|
"""
|
|
77
98
|
Args:
|
|
78
99
|
uuid (UUID):
|
|
100
|
+
field (Union[Unset, list[MarketplaceRobotAccountsRetrieveFieldItem]]):
|
|
79
101
|
|
|
80
102
|
Raises:
|
|
81
103
|
errors.UnexpectedStatus: If the server returns an undocumented status code.
|
|
@@ -88,6 +110,7 @@ def sync(
|
|
|
88
110
|
return sync_detailed(
|
|
89
111
|
uuid=uuid,
|
|
90
112
|
client=client,
|
|
113
|
+
field=field,
|
|
91
114
|
).parsed
|
|
92
115
|
|
|
93
116
|
|
|
@@ -95,10 +118,12 @@ async def asyncio_detailed(
|
|
|
95
118
|
uuid: UUID,
|
|
96
119
|
*,
|
|
97
120
|
client: AuthenticatedClient,
|
|
121
|
+
field: Union[Unset, list[MarketplaceRobotAccountsRetrieveFieldItem]] = UNSET,
|
|
98
122
|
) -> Response[RobotAccountDetails]:
|
|
99
123
|
"""
|
|
100
124
|
Args:
|
|
101
125
|
uuid (UUID):
|
|
126
|
+
field (Union[Unset, list[MarketplaceRobotAccountsRetrieveFieldItem]]):
|
|
102
127
|
|
|
103
128
|
Raises:
|
|
104
129
|
errors.UnexpectedStatus: If the server returns an undocumented status code.
|
|
@@ -110,6 +135,7 @@ async def asyncio_detailed(
|
|
|
110
135
|
|
|
111
136
|
kwargs = _get_kwargs(
|
|
112
137
|
uuid=uuid,
|
|
138
|
+
field=field,
|
|
113
139
|
)
|
|
114
140
|
|
|
115
141
|
response = await client.get_async_httpx_client().request(**kwargs)
|
|
@@ -121,10 +147,12 @@ async def asyncio(
|
|
|
121
147
|
uuid: UUID,
|
|
122
148
|
*,
|
|
123
149
|
client: AuthenticatedClient,
|
|
150
|
+
field: Union[Unset, list[MarketplaceRobotAccountsRetrieveFieldItem]] = UNSET,
|
|
124
151
|
) -> RobotAccountDetails:
|
|
125
152
|
"""
|
|
126
153
|
Args:
|
|
127
154
|
uuid (UUID):
|
|
155
|
+
field (Union[Unset, list[MarketplaceRobotAccountsRetrieveFieldItem]]):
|
|
128
156
|
|
|
129
157
|
Raises:
|
|
130
158
|
errors.UnexpectedStatus: If the server returns an undocumented status code.
|
|
@@ -138,5 +166,6 @@ async def asyncio(
|
|
|
138
166
|
await asyncio_detailed(
|
|
139
167
|
uuid=uuid,
|
|
140
168
|
client=client,
|
|
169
|
+
field=field,
|
|
141
170
|
)
|
|
142
171
|
).parsed
|
|
@@ -0,0 +1,276 @@
|
|
|
1
|
+
from http import HTTPStatus
|
|
2
|
+
from typing import Any, Union
|
|
3
|
+
from uuid import UUID
|
|
4
|
+
|
|
5
|
+
import httpx
|
|
6
|
+
|
|
7
|
+
from ... import errors
|
|
8
|
+
from ...client import AuthenticatedClient, Client
|
|
9
|
+
from ...models.project_service_account import ProjectServiceAccount
|
|
10
|
+
from ...types import UNSET, Response, Unset
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
def _get_kwargs(
|
|
14
|
+
service_provider_uuid: UUID,
|
|
15
|
+
*,
|
|
16
|
+
email: Union[Unset, str] = UNSET,
|
|
17
|
+
page: Union[Unset, int] = UNSET,
|
|
18
|
+
page_size: Union[Unset, int] = UNSET,
|
|
19
|
+
project: Union[Unset, str] = UNSET,
|
|
20
|
+
project_uuid: Union[Unset, UUID] = UNSET,
|
|
21
|
+
username: Union[Unset, str] = UNSET,
|
|
22
|
+
) -> dict[str, Any]:
|
|
23
|
+
params: dict[str, Any] = {}
|
|
24
|
+
|
|
25
|
+
params["email"] = email
|
|
26
|
+
|
|
27
|
+
params["page"] = page
|
|
28
|
+
|
|
29
|
+
params["page_size"] = page_size
|
|
30
|
+
|
|
31
|
+
params["project"] = project
|
|
32
|
+
|
|
33
|
+
json_project_uuid: Union[Unset, str] = UNSET
|
|
34
|
+
if not isinstance(project_uuid, Unset):
|
|
35
|
+
json_project_uuid = str(project_uuid)
|
|
36
|
+
params["project_uuid"] = json_project_uuid
|
|
37
|
+
|
|
38
|
+
params["username"] = username
|
|
39
|
+
|
|
40
|
+
params = {k: v for k, v in params.items() if v is not UNSET and v is not None}
|
|
41
|
+
|
|
42
|
+
_kwargs: dict[str, Any] = {
|
|
43
|
+
"method": "get",
|
|
44
|
+
"url": f"/api/marketplace-service-providers/{service_provider_uuid}/project_service_accounts/",
|
|
45
|
+
"params": params,
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
return _kwargs
|
|
49
|
+
|
|
50
|
+
|
|
51
|
+
def _parse_response(
|
|
52
|
+
*, client: Union[AuthenticatedClient, Client], response: httpx.Response
|
|
53
|
+
) -> list["ProjectServiceAccount"]:
|
|
54
|
+
if response.status_code == 200:
|
|
55
|
+
response_200 = []
|
|
56
|
+
_response_200 = response.json()
|
|
57
|
+
for response_200_item_data in _response_200:
|
|
58
|
+
response_200_item = ProjectServiceAccount.from_dict(response_200_item_data)
|
|
59
|
+
|
|
60
|
+
response_200.append(response_200_item)
|
|
61
|
+
|
|
62
|
+
return response_200
|
|
63
|
+
raise errors.UnexpectedStatus(response.status_code, response.content)
|
|
64
|
+
|
|
65
|
+
|
|
66
|
+
def _build_response(
|
|
67
|
+
*, client: Union[AuthenticatedClient, Client], response: httpx.Response
|
|
68
|
+
) -> Response[list["ProjectServiceAccount"]]:
|
|
69
|
+
return Response(
|
|
70
|
+
status_code=HTTPStatus(response.status_code),
|
|
71
|
+
content=response.content,
|
|
72
|
+
headers=response.headers,
|
|
73
|
+
parsed=_parse_response(client=client, response=response),
|
|
74
|
+
)
|
|
75
|
+
|
|
76
|
+
|
|
77
|
+
def sync_detailed(
|
|
78
|
+
service_provider_uuid: UUID,
|
|
79
|
+
*,
|
|
80
|
+
client: AuthenticatedClient,
|
|
81
|
+
email: Union[Unset, str] = UNSET,
|
|
82
|
+
page: Union[Unset, int] = UNSET,
|
|
83
|
+
page_size: Union[Unset, int] = UNSET,
|
|
84
|
+
project: Union[Unset, str] = UNSET,
|
|
85
|
+
project_uuid: Union[Unset, UUID] = UNSET,
|
|
86
|
+
username: Union[Unset, str] = UNSET,
|
|
87
|
+
) -> Response[list["ProjectServiceAccount"]]:
|
|
88
|
+
"""Return project service accounts that have access to resources managed by the provider.
|
|
89
|
+
|
|
90
|
+
Checks for:
|
|
91
|
+
- Projects with active service provider's resources
|
|
92
|
+
- Service accounts with non-blank usernames
|
|
93
|
+
|
|
94
|
+
|
|
95
|
+
|
|
96
|
+
Args:
|
|
97
|
+
service_provider_uuid (UUID):
|
|
98
|
+
email (Union[Unset, str]):
|
|
99
|
+
page (Union[Unset, int]):
|
|
100
|
+
page_size (Union[Unset, int]):
|
|
101
|
+
project (Union[Unset, str]):
|
|
102
|
+
project_uuid (Union[Unset, UUID]):
|
|
103
|
+
username (Union[Unset, str]):
|
|
104
|
+
|
|
105
|
+
Raises:
|
|
106
|
+
errors.UnexpectedStatus: If the server returns an undocumented status code.
|
|
107
|
+
httpx.TimeoutException: If the request takes longer than Client.timeout.
|
|
108
|
+
|
|
109
|
+
Returns:
|
|
110
|
+
Response[list['ProjectServiceAccount']]
|
|
111
|
+
"""
|
|
112
|
+
|
|
113
|
+
kwargs = _get_kwargs(
|
|
114
|
+
service_provider_uuid=service_provider_uuid,
|
|
115
|
+
email=email,
|
|
116
|
+
page=page,
|
|
117
|
+
page_size=page_size,
|
|
118
|
+
project=project,
|
|
119
|
+
project_uuid=project_uuid,
|
|
120
|
+
username=username,
|
|
121
|
+
)
|
|
122
|
+
|
|
123
|
+
response = client.get_httpx_client().request(
|
|
124
|
+
**kwargs,
|
|
125
|
+
)
|
|
126
|
+
|
|
127
|
+
return _build_response(client=client, response=response)
|
|
128
|
+
|
|
129
|
+
|
|
130
|
+
def sync(
|
|
131
|
+
service_provider_uuid: UUID,
|
|
132
|
+
*,
|
|
133
|
+
client: AuthenticatedClient,
|
|
134
|
+
email: Union[Unset, str] = UNSET,
|
|
135
|
+
page: Union[Unset, int] = UNSET,
|
|
136
|
+
page_size: Union[Unset, int] = UNSET,
|
|
137
|
+
project: Union[Unset, str] = UNSET,
|
|
138
|
+
project_uuid: Union[Unset, UUID] = UNSET,
|
|
139
|
+
username: Union[Unset, str] = UNSET,
|
|
140
|
+
) -> list["ProjectServiceAccount"]:
|
|
141
|
+
"""Return project service accounts that have access to resources managed by the provider.
|
|
142
|
+
|
|
143
|
+
Checks for:
|
|
144
|
+
- Projects with active service provider's resources
|
|
145
|
+
- Service accounts with non-blank usernames
|
|
146
|
+
|
|
147
|
+
|
|
148
|
+
|
|
149
|
+
Args:
|
|
150
|
+
service_provider_uuid (UUID):
|
|
151
|
+
email (Union[Unset, str]):
|
|
152
|
+
page (Union[Unset, int]):
|
|
153
|
+
page_size (Union[Unset, int]):
|
|
154
|
+
project (Union[Unset, str]):
|
|
155
|
+
project_uuid (Union[Unset, UUID]):
|
|
156
|
+
username (Union[Unset, str]):
|
|
157
|
+
|
|
158
|
+
Raises:
|
|
159
|
+
errors.UnexpectedStatus: If the server returns an undocumented status code.
|
|
160
|
+
httpx.TimeoutException: If the request takes longer than Client.timeout.
|
|
161
|
+
|
|
162
|
+
Returns:
|
|
163
|
+
list['ProjectServiceAccount']
|
|
164
|
+
"""
|
|
165
|
+
|
|
166
|
+
return sync_detailed(
|
|
167
|
+
service_provider_uuid=service_provider_uuid,
|
|
168
|
+
client=client,
|
|
169
|
+
email=email,
|
|
170
|
+
page=page,
|
|
171
|
+
page_size=page_size,
|
|
172
|
+
project=project,
|
|
173
|
+
project_uuid=project_uuid,
|
|
174
|
+
username=username,
|
|
175
|
+
).parsed
|
|
176
|
+
|
|
177
|
+
|
|
178
|
+
async def asyncio_detailed(
|
|
179
|
+
service_provider_uuid: UUID,
|
|
180
|
+
*,
|
|
181
|
+
client: AuthenticatedClient,
|
|
182
|
+
email: Union[Unset, str] = UNSET,
|
|
183
|
+
page: Union[Unset, int] = UNSET,
|
|
184
|
+
page_size: Union[Unset, int] = UNSET,
|
|
185
|
+
project: Union[Unset, str] = UNSET,
|
|
186
|
+
project_uuid: Union[Unset, UUID] = UNSET,
|
|
187
|
+
username: Union[Unset, str] = UNSET,
|
|
188
|
+
) -> Response[list["ProjectServiceAccount"]]:
|
|
189
|
+
"""Return project service accounts that have access to resources managed by the provider.
|
|
190
|
+
|
|
191
|
+
Checks for:
|
|
192
|
+
- Projects with active service provider's resources
|
|
193
|
+
- Service accounts with non-blank usernames
|
|
194
|
+
|
|
195
|
+
|
|
196
|
+
|
|
197
|
+
Args:
|
|
198
|
+
service_provider_uuid (UUID):
|
|
199
|
+
email (Union[Unset, str]):
|
|
200
|
+
page (Union[Unset, int]):
|
|
201
|
+
page_size (Union[Unset, int]):
|
|
202
|
+
project (Union[Unset, str]):
|
|
203
|
+
project_uuid (Union[Unset, UUID]):
|
|
204
|
+
username (Union[Unset, str]):
|
|
205
|
+
|
|
206
|
+
Raises:
|
|
207
|
+
errors.UnexpectedStatus: If the server returns an undocumented status code.
|
|
208
|
+
httpx.TimeoutException: If the request takes longer than Client.timeout.
|
|
209
|
+
|
|
210
|
+
Returns:
|
|
211
|
+
Response[list['ProjectServiceAccount']]
|
|
212
|
+
"""
|
|
213
|
+
|
|
214
|
+
kwargs = _get_kwargs(
|
|
215
|
+
service_provider_uuid=service_provider_uuid,
|
|
216
|
+
email=email,
|
|
217
|
+
page=page,
|
|
218
|
+
page_size=page_size,
|
|
219
|
+
project=project,
|
|
220
|
+
project_uuid=project_uuid,
|
|
221
|
+
username=username,
|
|
222
|
+
)
|
|
223
|
+
|
|
224
|
+
response = await client.get_async_httpx_client().request(**kwargs)
|
|
225
|
+
|
|
226
|
+
return _build_response(client=client, response=response)
|
|
227
|
+
|
|
228
|
+
|
|
229
|
+
async def asyncio(
|
|
230
|
+
service_provider_uuid: UUID,
|
|
231
|
+
*,
|
|
232
|
+
client: AuthenticatedClient,
|
|
233
|
+
email: Union[Unset, str] = UNSET,
|
|
234
|
+
page: Union[Unset, int] = UNSET,
|
|
235
|
+
page_size: Union[Unset, int] = UNSET,
|
|
236
|
+
project: Union[Unset, str] = UNSET,
|
|
237
|
+
project_uuid: Union[Unset, UUID] = UNSET,
|
|
238
|
+
username: Union[Unset, str] = UNSET,
|
|
239
|
+
) -> list["ProjectServiceAccount"]:
|
|
240
|
+
"""Return project service accounts that have access to resources managed by the provider.
|
|
241
|
+
|
|
242
|
+
Checks for:
|
|
243
|
+
- Projects with active service provider's resources
|
|
244
|
+
- Service accounts with non-blank usernames
|
|
245
|
+
|
|
246
|
+
|
|
247
|
+
|
|
248
|
+
Args:
|
|
249
|
+
service_provider_uuid (UUID):
|
|
250
|
+
email (Union[Unset, str]):
|
|
251
|
+
page (Union[Unset, int]):
|
|
252
|
+
page_size (Union[Unset, int]):
|
|
253
|
+
project (Union[Unset, str]):
|
|
254
|
+
project_uuid (Union[Unset, UUID]):
|
|
255
|
+
username (Union[Unset, str]):
|
|
256
|
+
|
|
257
|
+
Raises:
|
|
258
|
+
errors.UnexpectedStatus: If the server returns an undocumented status code.
|
|
259
|
+
httpx.TimeoutException: If the request takes longer than Client.timeout.
|
|
260
|
+
|
|
261
|
+
Returns:
|
|
262
|
+
list['ProjectServiceAccount']
|
|
263
|
+
"""
|
|
264
|
+
|
|
265
|
+
return (
|
|
266
|
+
await asyncio_detailed(
|
|
267
|
+
service_provider_uuid=service_provider_uuid,
|
|
268
|
+
client=client,
|
|
269
|
+
email=email,
|
|
270
|
+
page=page,
|
|
271
|
+
page_size=page_size,
|
|
272
|
+
project=project,
|
|
273
|
+
project_uuid=project_uuid,
|
|
274
|
+
username=username,
|
|
275
|
+
)
|
|
276
|
+
).parsed
|