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
waldur_api_client/api/openstack_network_rbac_policies/openstack_network_rbac_policies_create.py
ADDED
|
@@ -0,0 +1,154 @@
|
|
|
1
|
+
from http import HTTPStatus
|
|
2
|
+
from typing import Any, Union
|
|
3
|
+
|
|
4
|
+
import httpx
|
|
5
|
+
|
|
6
|
+
from ... import errors
|
|
7
|
+
from ...client import AuthenticatedClient, Client
|
|
8
|
+
from ...models.network_rbac_policy import NetworkRBACPolicy
|
|
9
|
+
from ...models.network_rbac_policy_request import NetworkRBACPolicyRequest
|
|
10
|
+
from ...types import Response
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
def _get_kwargs(
|
|
14
|
+
*,
|
|
15
|
+
body: NetworkRBACPolicyRequest,
|
|
16
|
+
) -> dict[str, Any]:
|
|
17
|
+
headers: dict[str, Any] = {}
|
|
18
|
+
|
|
19
|
+
_kwargs: dict[str, Any] = {
|
|
20
|
+
"method": "post",
|
|
21
|
+
"url": "/api/openstack-network-rbac-policies/",
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
_kwargs["json"] = body.to_dict()
|
|
25
|
+
|
|
26
|
+
headers["Content-Type"] = "application/json"
|
|
27
|
+
|
|
28
|
+
_kwargs["headers"] = headers
|
|
29
|
+
return _kwargs
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
def _parse_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> NetworkRBACPolicy:
|
|
33
|
+
if response.status_code == 201:
|
|
34
|
+
response_201 = NetworkRBACPolicy.from_dict(response.json())
|
|
35
|
+
|
|
36
|
+
return response_201
|
|
37
|
+
raise errors.UnexpectedStatus(response.status_code, response.content)
|
|
38
|
+
|
|
39
|
+
|
|
40
|
+
def _build_response(
|
|
41
|
+
*, client: Union[AuthenticatedClient, Client], response: httpx.Response
|
|
42
|
+
) -> Response[NetworkRBACPolicy]:
|
|
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
|
+
*,
|
|
53
|
+
client: AuthenticatedClient,
|
|
54
|
+
body: NetworkRBACPolicyRequest,
|
|
55
|
+
) -> Response[NetworkRBACPolicy]:
|
|
56
|
+
"""Create RBAC policy for the network
|
|
57
|
+
|
|
58
|
+
Args:
|
|
59
|
+
body (NetworkRBACPolicyRequest):
|
|
60
|
+
|
|
61
|
+
Raises:
|
|
62
|
+
errors.UnexpectedStatus: If the server returns an undocumented status code.
|
|
63
|
+
httpx.TimeoutException: If the request takes longer than Client.timeout.
|
|
64
|
+
|
|
65
|
+
Returns:
|
|
66
|
+
Response[NetworkRBACPolicy]
|
|
67
|
+
"""
|
|
68
|
+
|
|
69
|
+
kwargs = _get_kwargs(
|
|
70
|
+
body=body,
|
|
71
|
+
)
|
|
72
|
+
|
|
73
|
+
response = client.get_httpx_client().request(
|
|
74
|
+
**kwargs,
|
|
75
|
+
)
|
|
76
|
+
|
|
77
|
+
return _build_response(client=client, response=response)
|
|
78
|
+
|
|
79
|
+
|
|
80
|
+
def sync(
|
|
81
|
+
*,
|
|
82
|
+
client: AuthenticatedClient,
|
|
83
|
+
body: NetworkRBACPolicyRequest,
|
|
84
|
+
) -> NetworkRBACPolicy:
|
|
85
|
+
"""Create RBAC policy for the network
|
|
86
|
+
|
|
87
|
+
Args:
|
|
88
|
+
body (NetworkRBACPolicyRequest):
|
|
89
|
+
|
|
90
|
+
Raises:
|
|
91
|
+
errors.UnexpectedStatus: If the server returns an undocumented status code.
|
|
92
|
+
httpx.TimeoutException: If the request takes longer than Client.timeout.
|
|
93
|
+
|
|
94
|
+
Returns:
|
|
95
|
+
NetworkRBACPolicy
|
|
96
|
+
"""
|
|
97
|
+
|
|
98
|
+
return sync_detailed(
|
|
99
|
+
client=client,
|
|
100
|
+
body=body,
|
|
101
|
+
).parsed
|
|
102
|
+
|
|
103
|
+
|
|
104
|
+
async def asyncio_detailed(
|
|
105
|
+
*,
|
|
106
|
+
client: AuthenticatedClient,
|
|
107
|
+
body: NetworkRBACPolicyRequest,
|
|
108
|
+
) -> Response[NetworkRBACPolicy]:
|
|
109
|
+
"""Create RBAC policy for the network
|
|
110
|
+
|
|
111
|
+
Args:
|
|
112
|
+
body (NetworkRBACPolicyRequest):
|
|
113
|
+
|
|
114
|
+
Raises:
|
|
115
|
+
errors.UnexpectedStatus: If the server returns an undocumented status code.
|
|
116
|
+
httpx.TimeoutException: If the request takes longer than Client.timeout.
|
|
117
|
+
|
|
118
|
+
Returns:
|
|
119
|
+
Response[NetworkRBACPolicy]
|
|
120
|
+
"""
|
|
121
|
+
|
|
122
|
+
kwargs = _get_kwargs(
|
|
123
|
+
body=body,
|
|
124
|
+
)
|
|
125
|
+
|
|
126
|
+
response = await client.get_async_httpx_client().request(**kwargs)
|
|
127
|
+
|
|
128
|
+
return _build_response(client=client, response=response)
|
|
129
|
+
|
|
130
|
+
|
|
131
|
+
async def asyncio(
|
|
132
|
+
*,
|
|
133
|
+
client: AuthenticatedClient,
|
|
134
|
+
body: NetworkRBACPolicyRequest,
|
|
135
|
+
) -> NetworkRBACPolicy:
|
|
136
|
+
"""Create RBAC policy for the network
|
|
137
|
+
|
|
138
|
+
Args:
|
|
139
|
+
body (NetworkRBACPolicyRequest):
|
|
140
|
+
|
|
141
|
+
Raises:
|
|
142
|
+
errors.UnexpectedStatus: If the server returns an undocumented status code.
|
|
143
|
+
httpx.TimeoutException: If the request takes longer than Client.timeout.
|
|
144
|
+
|
|
145
|
+
Returns:
|
|
146
|
+
NetworkRBACPolicy
|
|
147
|
+
"""
|
|
148
|
+
|
|
149
|
+
return (
|
|
150
|
+
await asyncio_detailed(
|
|
151
|
+
client=client,
|
|
152
|
+
body=body,
|
|
153
|
+
)
|
|
154
|
+
).parsed
|
waldur_api_client/api/openstack_network_rbac_policies/openstack_network_rbac_policies_destroy.py
ADDED
|
@@ -0,0 +1,91 @@
|
|
|
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 ...types import Response
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
def _get_kwargs(
|
|
13
|
+
uuid: UUID,
|
|
14
|
+
) -> dict[str, Any]:
|
|
15
|
+
_kwargs: dict[str, Any] = {
|
|
16
|
+
"method": "delete",
|
|
17
|
+
"url": f"/api/openstack-network-rbac-policies/{uuid}/",
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
return _kwargs
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
def _parse_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> Any:
|
|
24
|
+
if response.status_code == 204:
|
|
25
|
+
return None
|
|
26
|
+
raise errors.UnexpectedStatus(response.status_code, response.content)
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
def _build_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> Response[Any]:
|
|
30
|
+
return Response(
|
|
31
|
+
status_code=HTTPStatus(response.status_code),
|
|
32
|
+
content=response.content,
|
|
33
|
+
headers=response.headers,
|
|
34
|
+
parsed=_parse_response(client=client, response=response),
|
|
35
|
+
)
|
|
36
|
+
|
|
37
|
+
|
|
38
|
+
def sync_detailed(
|
|
39
|
+
uuid: UUID,
|
|
40
|
+
*,
|
|
41
|
+
client: AuthenticatedClient,
|
|
42
|
+
) -> Response[Any]:
|
|
43
|
+
"""Delete RBAC policy for the network
|
|
44
|
+
|
|
45
|
+
Args:
|
|
46
|
+
uuid (UUID):
|
|
47
|
+
|
|
48
|
+
Raises:
|
|
49
|
+
errors.UnexpectedStatus: If the server returns an undocumented status code.
|
|
50
|
+
httpx.TimeoutException: If the request takes longer than Client.timeout.
|
|
51
|
+
|
|
52
|
+
Returns:
|
|
53
|
+
Response[Any]
|
|
54
|
+
"""
|
|
55
|
+
|
|
56
|
+
kwargs = _get_kwargs(
|
|
57
|
+
uuid=uuid,
|
|
58
|
+
)
|
|
59
|
+
|
|
60
|
+
response = client.get_httpx_client().request(
|
|
61
|
+
**kwargs,
|
|
62
|
+
)
|
|
63
|
+
|
|
64
|
+
return _build_response(client=client, response=response)
|
|
65
|
+
|
|
66
|
+
|
|
67
|
+
async def asyncio_detailed(
|
|
68
|
+
uuid: UUID,
|
|
69
|
+
*,
|
|
70
|
+
client: AuthenticatedClient,
|
|
71
|
+
) -> Response[Any]:
|
|
72
|
+
"""Delete RBAC policy for the network
|
|
73
|
+
|
|
74
|
+
Args:
|
|
75
|
+
uuid (UUID):
|
|
76
|
+
|
|
77
|
+
Raises:
|
|
78
|
+
errors.UnexpectedStatus: If the server returns an undocumented status code.
|
|
79
|
+
httpx.TimeoutException: If the request takes longer than Client.timeout.
|
|
80
|
+
|
|
81
|
+
Returns:
|
|
82
|
+
Response[Any]
|
|
83
|
+
"""
|
|
84
|
+
|
|
85
|
+
kwargs = _get_kwargs(
|
|
86
|
+
uuid=uuid,
|
|
87
|
+
)
|
|
88
|
+
|
|
89
|
+
response = await client.get_async_httpx_client().request(**kwargs)
|
|
90
|
+
|
|
91
|
+
return _build_response(client=client, response=response)
|
waldur_api_client/api/openstack_network_rbac_policies/openstack_network_rbac_policies_list.py
CHANGED
|
@@ -20,6 +20,8 @@ def _get_kwargs(
|
|
|
20
20
|
policy_type: Union[Unset, OpenstackNetworkRbacPoliciesListPolicyType] = UNSET,
|
|
21
21
|
target_tenant: Union[Unset, str] = UNSET,
|
|
22
22
|
target_tenant_uuid: Union[Unset, UUID] = UNSET,
|
|
23
|
+
tenant: Union[Unset, str] = UNSET,
|
|
24
|
+
tenant_uuid: Union[Unset, UUID] = UNSET,
|
|
23
25
|
) -> dict[str, Any]:
|
|
24
26
|
params: dict[str, Any] = {}
|
|
25
27
|
|
|
@@ -47,6 +49,13 @@ def _get_kwargs(
|
|
|
47
49
|
json_target_tenant_uuid = str(target_tenant_uuid)
|
|
48
50
|
params["target_tenant_uuid"] = json_target_tenant_uuid
|
|
49
51
|
|
|
52
|
+
params["tenant"] = tenant
|
|
53
|
+
|
|
54
|
+
json_tenant_uuid: Union[Unset, str] = UNSET
|
|
55
|
+
if not isinstance(tenant_uuid, Unset):
|
|
56
|
+
json_tenant_uuid = str(tenant_uuid)
|
|
57
|
+
params["tenant_uuid"] = json_tenant_uuid
|
|
58
|
+
|
|
50
59
|
params = {k: v for k, v in params.items() if v is not UNSET and v is not None}
|
|
51
60
|
|
|
52
61
|
_kwargs: dict[str, Any] = {
|
|
@@ -94,6 +103,8 @@ def sync_detailed(
|
|
|
94
103
|
policy_type: Union[Unset, OpenstackNetworkRbacPoliciesListPolicyType] = UNSET,
|
|
95
104
|
target_tenant: Union[Unset, str] = UNSET,
|
|
96
105
|
target_tenant_uuid: Union[Unset, UUID] = UNSET,
|
|
106
|
+
tenant: Union[Unset, str] = UNSET,
|
|
107
|
+
tenant_uuid: Union[Unset, UUID] = UNSET,
|
|
97
108
|
) -> Response[list["NetworkRBACPolicy"]]:
|
|
98
109
|
"""Mixin to optimize HEAD requests for DRF views bypassing serializer processing
|
|
99
110
|
|
|
@@ -105,6 +116,8 @@ def sync_detailed(
|
|
|
105
116
|
policy_type (Union[Unset, OpenstackNetworkRbacPoliciesListPolicyType]):
|
|
106
117
|
target_tenant (Union[Unset, str]):
|
|
107
118
|
target_tenant_uuid (Union[Unset, UUID]):
|
|
119
|
+
tenant (Union[Unset, str]):
|
|
120
|
+
tenant_uuid (Union[Unset, UUID]):
|
|
108
121
|
|
|
109
122
|
Raises:
|
|
110
123
|
errors.UnexpectedStatus: If the server returns an undocumented status code.
|
|
@@ -122,6 +135,8 @@ def sync_detailed(
|
|
|
122
135
|
policy_type=policy_type,
|
|
123
136
|
target_tenant=target_tenant,
|
|
124
137
|
target_tenant_uuid=target_tenant_uuid,
|
|
138
|
+
tenant=tenant,
|
|
139
|
+
tenant_uuid=tenant_uuid,
|
|
125
140
|
)
|
|
126
141
|
|
|
127
142
|
response = client.get_httpx_client().request(
|
|
@@ -141,6 +156,8 @@ def sync(
|
|
|
141
156
|
policy_type: Union[Unset, OpenstackNetworkRbacPoliciesListPolicyType] = UNSET,
|
|
142
157
|
target_tenant: Union[Unset, str] = UNSET,
|
|
143
158
|
target_tenant_uuid: Union[Unset, UUID] = UNSET,
|
|
159
|
+
tenant: Union[Unset, str] = UNSET,
|
|
160
|
+
tenant_uuid: Union[Unset, UUID] = UNSET,
|
|
144
161
|
) -> list["NetworkRBACPolicy"]:
|
|
145
162
|
"""Mixin to optimize HEAD requests for DRF views bypassing serializer processing
|
|
146
163
|
|
|
@@ -152,6 +169,8 @@ def sync(
|
|
|
152
169
|
policy_type (Union[Unset, OpenstackNetworkRbacPoliciesListPolicyType]):
|
|
153
170
|
target_tenant (Union[Unset, str]):
|
|
154
171
|
target_tenant_uuid (Union[Unset, UUID]):
|
|
172
|
+
tenant (Union[Unset, str]):
|
|
173
|
+
tenant_uuid (Union[Unset, UUID]):
|
|
155
174
|
|
|
156
175
|
Raises:
|
|
157
176
|
errors.UnexpectedStatus: If the server returns an undocumented status code.
|
|
@@ -170,6 +189,8 @@ def sync(
|
|
|
170
189
|
policy_type=policy_type,
|
|
171
190
|
target_tenant=target_tenant,
|
|
172
191
|
target_tenant_uuid=target_tenant_uuid,
|
|
192
|
+
tenant=tenant,
|
|
193
|
+
tenant_uuid=tenant_uuid,
|
|
173
194
|
).parsed
|
|
174
195
|
|
|
175
196
|
|
|
@@ -183,6 +204,8 @@ async def asyncio_detailed(
|
|
|
183
204
|
policy_type: Union[Unset, OpenstackNetworkRbacPoliciesListPolicyType] = UNSET,
|
|
184
205
|
target_tenant: Union[Unset, str] = UNSET,
|
|
185
206
|
target_tenant_uuid: Union[Unset, UUID] = UNSET,
|
|
207
|
+
tenant: Union[Unset, str] = UNSET,
|
|
208
|
+
tenant_uuid: Union[Unset, UUID] = UNSET,
|
|
186
209
|
) -> Response[list["NetworkRBACPolicy"]]:
|
|
187
210
|
"""Mixin to optimize HEAD requests for DRF views bypassing serializer processing
|
|
188
211
|
|
|
@@ -194,6 +217,8 @@ async def asyncio_detailed(
|
|
|
194
217
|
policy_type (Union[Unset, OpenstackNetworkRbacPoliciesListPolicyType]):
|
|
195
218
|
target_tenant (Union[Unset, str]):
|
|
196
219
|
target_tenant_uuid (Union[Unset, UUID]):
|
|
220
|
+
tenant (Union[Unset, str]):
|
|
221
|
+
tenant_uuid (Union[Unset, UUID]):
|
|
197
222
|
|
|
198
223
|
Raises:
|
|
199
224
|
errors.UnexpectedStatus: If the server returns an undocumented status code.
|
|
@@ -211,6 +236,8 @@ async def asyncio_detailed(
|
|
|
211
236
|
policy_type=policy_type,
|
|
212
237
|
target_tenant=target_tenant,
|
|
213
238
|
target_tenant_uuid=target_tenant_uuid,
|
|
239
|
+
tenant=tenant,
|
|
240
|
+
tenant_uuid=tenant_uuid,
|
|
214
241
|
)
|
|
215
242
|
|
|
216
243
|
response = await client.get_async_httpx_client().request(**kwargs)
|
|
@@ -228,6 +255,8 @@ async def asyncio(
|
|
|
228
255
|
policy_type: Union[Unset, OpenstackNetworkRbacPoliciesListPolicyType] = UNSET,
|
|
229
256
|
target_tenant: Union[Unset, str] = UNSET,
|
|
230
257
|
target_tenant_uuid: Union[Unset, UUID] = UNSET,
|
|
258
|
+
tenant: Union[Unset, str] = UNSET,
|
|
259
|
+
tenant_uuid: Union[Unset, UUID] = UNSET,
|
|
231
260
|
) -> list["NetworkRBACPolicy"]:
|
|
232
261
|
"""Mixin to optimize HEAD requests for DRF views bypassing serializer processing
|
|
233
262
|
|
|
@@ -239,6 +268,8 @@ async def asyncio(
|
|
|
239
268
|
policy_type (Union[Unset, OpenstackNetworkRbacPoliciesListPolicyType]):
|
|
240
269
|
target_tenant (Union[Unset, str]):
|
|
241
270
|
target_tenant_uuid (Union[Unset, UUID]):
|
|
271
|
+
tenant (Union[Unset, str]):
|
|
272
|
+
tenant_uuid (Union[Unset, UUID]):
|
|
242
273
|
|
|
243
274
|
Raises:
|
|
244
275
|
errors.UnexpectedStatus: If the server returns an undocumented status code.
|
|
@@ -258,5 +289,7 @@ async def asyncio(
|
|
|
258
289
|
policy_type=policy_type,
|
|
259
290
|
target_tenant=target_tenant,
|
|
260
291
|
target_tenant_uuid=target_tenant_uuid,
|
|
292
|
+
tenant=tenant,
|
|
293
|
+
tenant_uuid=tenant_uuid,
|
|
261
294
|
)
|
|
262
295
|
).parsed
|
|
@@ -0,0 +1,164 @@
|
|
|
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.network_rbac_policy import NetworkRBACPolicy
|
|
10
|
+
from ...models.patched_network_rbac_policy_request import PatchedNetworkRBACPolicyRequest
|
|
11
|
+
from ...types import Response
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
def _get_kwargs(
|
|
15
|
+
uuid: UUID,
|
|
16
|
+
*,
|
|
17
|
+
body: PatchedNetworkRBACPolicyRequest,
|
|
18
|
+
) -> dict[str, Any]:
|
|
19
|
+
headers: dict[str, Any] = {}
|
|
20
|
+
|
|
21
|
+
_kwargs: dict[str, Any] = {
|
|
22
|
+
"method": "patch",
|
|
23
|
+
"url": f"/api/openstack-network-rbac-policies/{uuid}/",
|
|
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) -> NetworkRBACPolicy:
|
|
35
|
+
if response.status_code == 200:
|
|
36
|
+
response_200 = NetworkRBACPolicy.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[NetworkRBACPolicy]:
|
|
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: PatchedNetworkRBACPolicyRequest,
|
|
58
|
+
) -> Response[NetworkRBACPolicy]:
|
|
59
|
+
"""
|
|
60
|
+
Args:
|
|
61
|
+
uuid (UUID):
|
|
62
|
+
body (PatchedNetworkRBACPolicyRequest):
|
|
63
|
+
|
|
64
|
+
Raises:
|
|
65
|
+
errors.UnexpectedStatus: If the server returns an undocumented status code.
|
|
66
|
+
httpx.TimeoutException: If the request takes longer than Client.timeout.
|
|
67
|
+
|
|
68
|
+
Returns:
|
|
69
|
+
Response[NetworkRBACPolicy]
|
|
70
|
+
"""
|
|
71
|
+
|
|
72
|
+
kwargs = _get_kwargs(
|
|
73
|
+
uuid=uuid,
|
|
74
|
+
body=body,
|
|
75
|
+
)
|
|
76
|
+
|
|
77
|
+
response = client.get_httpx_client().request(
|
|
78
|
+
**kwargs,
|
|
79
|
+
)
|
|
80
|
+
|
|
81
|
+
return _build_response(client=client, response=response)
|
|
82
|
+
|
|
83
|
+
|
|
84
|
+
def sync(
|
|
85
|
+
uuid: UUID,
|
|
86
|
+
*,
|
|
87
|
+
client: AuthenticatedClient,
|
|
88
|
+
body: PatchedNetworkRBACPolicyRequest,
|
|
89
|
+
) -> NetworkRBACPolicy:
|
|
90
|
+
"""
|
|
91
|
+
Args:
|
|
92
|
+
uuid (UUID):
|
|
93
|
+
body (PatchedNetworkRBACPolicyRequest):
|
|
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
|
+
NetworkRBACPolicy
|
|
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: PatchedNetworkRBACPolicyRequest,
|
|
115
|
+
) -> Response[NetworkRBACPolicy]:
|
|
116
|
+
"""
|
|
117
|
+
Args:
|
|
118
|
+
uuid (UUID):
|
|
119
|
+
body (PatchedNetworkRBACPolicyRequest):
|
|
120
|
+
|
|
121
|
+
Raises:
|
|
122
|
+
errors.UnexpectedStatus: If the server returns an undocumented status code.
|
|
123
|
+
httpx.TimeoutException: If the request takes longer than Client.timeout.
|
|
124
|
+
|
|
125
|
+
Returns:
|
|
126
|
+
Response[NetworkRBACPolicy]
|
|
127
|
+
"""
|
|
128
|
+
|
|
129
|
+
kwargs = _get_kwargs(
|
|
130
|
+
uuid=uuid,
|
|
131
|
+
body=body,
|
|
132
|
+
)
|
|
133
|
+
|
|
134
|
+
response = await client.get_async_httpx_client().request(**kwargs)
|
|
135
|
+
|
|
136
|
+
return _build_response(client=client, response=response)
|
|
137
|
+
|
|
138
|
+
|
|
139
|
+
async def asyncio(
|
|
140
|
+
uuid: UUID,
|
|
141
|
+
*,
|
|
142
|
+
client: AuthenticatedClient,
|
|
143
|
+
body: PatchedNetworkRBACPolicyRequest,
|
|
144
|
+
) -> NetworkRBACPolicy:
|
|
145
|
+
"""
|
|
146
|
+
Args:
|
|
147
|
+
uuid (UUID):
|
|
148
|
+
body (PatchedNetworkRBACPolicyRequest):
|
|
149
|
+
|
|
150
|
+
Raises:
|
|
151
|
+
errors.UnexpectedStatus: If the server returns an undocumented status code.
|
|
152
|
+
httpx.TimeoutException: If the request takes longer than Client.timeout.
|
|
153
|
+
|
|
154
|
+
Returns:
|
|
155
|
+
NetworkRBACPolicy
|
|
156
|
+
"""
|
|
157
|
+
|
|
158
|
+
return (
|
|
159
|
+
await asyncio_detailed(
|
|
160
|
+
uuid=uuid,
|
|
161
|
+
client=client,
|
|
162
|
+
body=body,
|
|
163
|
+
)
|
|
164
|
+
).parsed
|
waldur_api_client/api/openstack_network_rbac_policies/openstack_network_rbac_policies_update.py
ADDED
|
@@ -0,0 +1,164 @@
|
|
|
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.network_rbac_policy import NetworkRBACPolicy
|
|
10
|
+
from ...models.network_rbac_policy_request import NetworkRBACPolicyRequest
|
|
11
|
+
from ...types import Response
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
def _get_kwargs(
|
|
15
|
+
uuid: UUID,
|
|
16
|
+
*,
|
|
17
|
+
body: NetworkRBACPolicyRequest,
|
|
18
|
+
) -> dict[str, Any]:
|
|
19
|
+
headers: dict[str, Any] = {}
|
|
20
|
+
|
|
21
|
+
_kwargs: dict[str, Any] = {
|
|
22
|
+
"method": "put",
|
|
23
|
+
"url": f"/api/openstack-network-rbac-policies/{uuid}/",
|
|
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) -> NetworkRBACPolicy:
|
|
35
|
+
if response.status_code == 200:
|
|
36
|
+
response_200 = NetworkRBACPolicy.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[NetworkRBACPolicy]:
|
|
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: NetworkRBACPolicyRequest,
|
|
58
|
+
) -> Response[NetworkRBACPolicy]:
|
|
59
|
+
"""
|
|
60
|
+
Args:
|
|
61
|
+
uuid (UUID):
|
|
62
|
+
body (NetworkRBACPolicyRequest):
|
|
63
|
+
|
|
64
|
+
Raises:
|
|
65
|
+
errors.UnexpectedStatus: If the server returns an undocumented status code.
|
|
66
|
+
httpx.TimeoutException: If the request takes longer than Client.timeout.
|
|
67
|
+
|
|
68
|
+
Returns:
|
|
69
|
+
Response[NetworkRBACPolicy]
|
|
70
|
+
"""
|
|
71
|
+
|
|
72
|
+
kwargs = _get_kwargs(
|
|
73
|
+
uuid=uuid,
|
|
74
|
+
body=body,
|
|
75
|
+
)
|
|
76
|
+
|
|
77
|
+
response = client.get_httpx_client().request(
|
|
78
|
+
**kwargs,
|
|
79
|
+
)
|
|
80
|
+
|
|
81
|
+
return _build_response(client=client, response=response)
|
|
82
|
+
|
|
83
|
+
|
|
84
|
+
def sync(
|
|
85
|
+
uuid: UUID,
|
|
86
|
+
*,
|
|
87
|
+
client: AuthenticatedClient,
|
|
88
|
+
body: NetworkRBACPolicyRequest,
|
|
89
|
+
) -> NetworkRBACPolicy:
|
|
90
|
+
"""
|
|
91
|
+
Args:
|
|
92
|
+
uuid (UUID):
|
|
93
|
+
body (NetworkRBACPolicyRequest):
|
|
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
|
+
NetworkRBACPolicy
|
|
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: NetworkRBACPolicyRequest,
|
|
115
|
+
) -> Response[NetworkRBACPolicy]:
|
|
116
|
+
"""
|
|
117
|
+
Args:
|
|
118
|
+
uuid (UUID):
|
|
119
|
+
body (NetworkRBACPolicyRequest):
|
|
120
|
+
|
|
121
|
+
Raises:
|
|
122
|
+
errors.UnexpectedStatus: If the server returns an undocumented status code.
|
|
123
|
+
httpx.TimeoutException: If the request takes longer than Client.timeout.
|
|
124
|
+
|
|
125
|
+
Returns:
|
|
126
|
+
Response[NetworkRBACPolicy]
|
|
127
|
+
"""
|
|
128
|
+
|
|
129
|
+
kwargs = _get_kwargs(
|
|
130
|
+
uuid=uuid,
|
|
131
|
+
body=body,
|
|
132
|
+
)
|
|
133
|
+
|
|
134
|
+
response = await client.get_async_httpx_client().request(**kwargs)
|
|
135
|
+
|
|
136
|
+
return _build_response(client=client, response=response)
|
|
137
|
+
|
|
138
|
+
|
|
139
|
+
async def asyncio(
|
|
140
|
+
uuid: UUID,
|
|
141
|
+
*,
|
|
142
|
+
client: AuthenticatedClient,
|
|
143
|
+
body: NetworkRBACPolicyRequest,
|
|
144
|
+
) -> NetworkRBACPolicy:
|
|
145
|
+
"""
|
|
146
|
+
Args:
|
|
147
|
+
uuid (UUID):
|
|
148
|
+
body (NetworkRBACPolicyRequest):
|
|
149
|
+
|
|
150
|
+
Raises:
|
|
151
|
+
errors.UnexpectedStatus: If the server returns an undocumented status code.
|
|
152
|
+
httpx.TimeoutException: If the request takes longer than Client.timeout.
|
|
153
|
+
|
|
154
|
+
Returns:
|
|
155
|
+
NetworkRBACPolicy
|
|
156
|
+
"""
|
|
157
|
+
|
|
158
|
+
return (
|
|
159
|
+
await asyncio_detailed(
|
|
160
|
+
uuid=uuid,
|
|
161
|
+
client=client,
|
|
162
|
+
body=body,
|
|
163
|
+
)
|
|
164
|
+
).parsed
|