waldur-api-client 0.2.0__py3-none-any.whl → 7.6.5__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of waldur-api-client might be problematic. Click here for more details.
- waldur_api_client/api/autoprovisioning_rule_plans/__init__.py +1 -0
- waldur_api_client/api/autoprovisioning_rule_plans/autoprovisioning_rule_plans_create.py +148 -0
- waldur_api_client/api/autoprovisioning_rule_plans/autoprovisioning_rule_plans_destroy.py +89 -0
- waldur_api_client/api/autoprovisioning_rule_plans/autoprovisioning_rule_plans_list.py +169 -0
- waldur_api_client/api/autoprovisioning_rule_plans/autoprovisioning_rule_plans_partial_update.py +162 -0
- waldur_api_client/api/autoprovisioning_rule_plans/autoprovisioning_rule_plans_retrieve.py +140 -0
- waldur_api_client/api/autoprovisioning_rule_plans/autoprovisioning_rule_plans_update.py +162 -0
- waldur_api_client/api/autoprovisioning_rules/__init__.py +1 -0
- waldur_api_client/api/autoprovisioning_rules/autoprovisioning_rules_create.py +148 -0
- waldur_api_client/api/autoprovisioning_rules/autoprovisioning_rules_destroy.py +89 -0
- waldur_api_client/api/autoprovisioning_rules/autoprovisioning_rules_list.py +167 -0
- waldur_api_client/api/autoprovisioning_rules/autoprovisioning_rules_partial_update.py +162 -0
- waldur_api_client/api/autoprovisioning_rules/autoprovisioning_rules_retrieve.py +140 -0
- waldur_api_client/api/autoprovisioning_rules/autoprovisioning_rules_update.py +162 -0
- waldur_api_client/api/marketplace_provider_offerings/marketplace_provider_offerings_component_stats_list.py +15 -0
- waldur_api_client/api/marketplace_provider_offerings/marketplace_provider_offerings_costs_list.py +15 -0
- waldur_api_client/api/marketplace_provider_offerings/marketplace_provider_offerings_customers_list.py +15 -0
- waldur_api_client/api/marketplace_provider_offerings/marketplace_provider_offerings_groups_list.py +15 -0
- waldur_api_client/api/marketplace_provider_offerings/marketplace_provider_offerings_list.py +15 -0
- waldur_api_client/api/marketplace_public_offerings/marketplace_public_offerings_list.py +15 -0
- waldur_api_client/api/marketplace_service_providers/marketplace_service_providers_offerings_list.py +15 -0
- waldur_api_client/api/marketplace_service_providers/marketplace_service_providers_users_list.py +15 -0
- waldur_api_client/api/users/users_list.py +15 -0
- waldur_api_client/models/__init__.py +24 -0
- waldur_api_client/models/constance_settings.py +9 -0
- waldur_api_client/models/constance_settings_request.py +9 -0
- waldur_api_client/models/identity_provider.py +11 -11
- waldur_api_client/models/identity_provider_request.py +11 -11
- 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/patched_identity_provider_request.py +11 -11
- waldur_api_client/models/patched_rule_plans_request.py +108 -0
- waldur_api_client/models/patched_rule_plans_request_attributes.py +44 -0
- waldur_api_client/models/patched_rule_plans_request_limits.py +44 -0
- waldur_api_client/models/patched_rule_request.py +101 -0
- waldur_api_client/models/rancher_cluster.py +11 -0
- waldur_api_client/models/rancher_clusters_list_field_item.py +1 -0
- waldur_api_client/models/rancher_clusters_retrieve_field_item.py +1 -0
- waldur_api_client/models/rule.py +128 -0
- waldur_api_client/models/rule_plans.py +126 -0
- waldur_api_client/models/rule_plans_attributes.py +44 -0
- waldur_api_client/models/rule_plans_limits.py +44 -0
- waldur_api_client/models/rule_plans_request.py +109 -0
- waldur_api_client/models/rule_plans_request_attributes.py +44 -0
- waldur_api_client/models/rule_plans_request_limits.py +44 -0
- waldur_api_client/models/rule_request.py +103 -0
- {waldur_api_client-0.2.0.dist-info → waldur_api_client-7.6.5.dist-info}/METADATA +1 -1
- {waldur_api_client-0.2.0.dist-info → waldur_api_client-7.6.5.dist-info}/RECORD +50 -24
- {waldur_api_client-0.2.0.dist-info → waldur_api_client-7.6.5.dist-info}/LICENSE +0 -0
- {waldur_api_client-0.2.0.dist-info → waldur_api_client-7.6.5.dist-info}/WHEEL +0 -0
|
@@ -0,0 +1,162 @@
|
|
|
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.patched_rule_request import PatchedRuleRequest
|
|
10
|
+
from ...models.rule import Rule
|
|
11
|
+
from ...types import Response
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
def _get_kwargs(
|
|
15
|
+
uuid: UUID,
|
|
16
|
+
*,
|
|
17
|
+
body: PatchedRuleRequest,
|
|
18
|
+
) -> dict[str, Any]:
|
|
19
|
+
headers: dict[str, Any] = {}
|
|
20
|
+
|
|
21
|
+
_kwargs: dict[str, Any] = {
|
|
22
|
+
"method": "patch",
|
|
23
|
+
"url": f"/api/autoprovisioning-rules/{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) -> Rule:
|
|
35
|
+
if response.status_code == 200:
|
|
36
|
+
response_200 = Rule.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[Rule]:
|
|
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: PatchedRuleRequest,
|
|
56
|
+
) -> Response[Rule]:
|
|
57
|
+
"""
|
|
58
|
+
Args:
|
|
59
|
+
uuid (UUID):
|
|
60
|
+
body (PatchedRuleRequest):
|
|
61
|
+
|
|
62
|
+
Raises:
|
|
63
|
+
errors.UnexpectedStatus: If the server returns an undocumented status code.
|
|
64
|
+
httpx.TimeoutException: If the request takes longer than Client.timeout.
|
|
65
|
+
|
|
66
|
+
Returns:
|
|
67
|
+
Response[Rule]
|
|
68
|
+
"""
|
|
69
|
+
|
|
70
|
+
kwargs = _get_kwargs(
|
|
71
|
+
uuid=uuid,
|
|
72
|
+
body=body,
|
|
73
|
+
)
|
|
74
|
+
|
|
75
|
+
response = client.get_httpx_client().request(
|
|
76
|
+
**kwargs,
|
|
77
|
+
)
|
|
78
|
+
|
|
79
|
+
return _build_response(client=client, response=response)
|
|
80
|
+
|
|
81
|
+
|
|
82
|
+
def sync(
|
|
83
|
+
uuid: UUID,
|
|
84
|
+
*,
|
|
85
|
+
client: AuthenticatedClient,
|
|
86
|
+
body: PatchedRuleRequest,
|
|
87
|
+
) -> Rule:
|
|
88
|
+
"""
|
|
89
|
+
Args:
|
|
90
|
+
uuid (UUID):
|
|
91
|
+
body (PatchedRuleRequest):
|
|
92
|
+
|
|
93
|
+
Raises:
|
|
94
|
+
errors.UnexpectedStatus: If the server returns an undocumented status code.
|
|
95
|
+
httpx.TimeoutException: If the request takes longer than Client.timeout.
|
|
96
|
+
|
|
97
|
+
Returns:
|
|
98
|
+
Rule
|
|
99
|
+
"""
|
|
100
|
+
|
|
101
|
+
return sync_detailed(
|
|
102
|
+
uuid=uuid,
|
|
103
|
+
client=client,
|
|
104
|
+
body=body,
|
|
105
|
+
).parsed
|
|
106
|
+
|
|
107
|
+
|
|
108
|
+
async def asyncio_detailed(
|
|
109
|
+
uuid: UUID,
|
|
110
|
+
*,
|
|
111
|
+
client: AuthenticatedClient,
|
|
112
|
+
body: PatchedRuleRequest,
|
|
113
|
+
) -> Response[Rule]:
|
|
114
|
+
"""
|
|
115
|
+
Args:
|
|
116
|
+
uuid (UUID):
|
|
117
|
+
body (PatchedRuleRequest):
|
|
118
|
+
|
|
119
|
+
Raises:
|
|
120
|
+
errors.UnexpectedStatus: If the server returns an undocumented status code.
|
|
121
|
+
httpx.TimeoutException: If the request takes longer than Client.timeout.
|
|
122
|
+
|
|
123
|
+
Returns:
|
|
124
|
+
Response[Rule]
|
|
125
|
+
"""
|
|
126
|
+
|
|
127
|
+
kwargs = _get_kwargs(
|
|
128
|
+
uuid=uuid,
|
|
129
|
+
body=body,
|
|
130
|
+
)
|
|
131
|
+
|
|
132
|
+
response = await client.get_async_httpx_client().request(**kwargs)
|
|
133
|
+
|
|
134
|
+
return _build_response(client=client, response=response)
|
|
135
|
+
|
|
136
|
+
|
|
137
|
+
async def asyncio(
|
|
138
|
+
uuid: UUID,
|
|
139
|
+
*,
|
|
140
|
+
client: AuthenticatedClient,
|
|
141
|
+
body: PatchedRuleRequest,
|
|
142
|
+
) -> Rule:
|
|
143
|
+
"""
|
|
144
|
+
Args:
|
|
145
|
+
uuid (UUID):
|
|
146
|
+
body (PatchedRuleRequest):
|
|
147
|
+
|
|
148
|
+
Raises:
|
|
149
|
+
errors.UnexpectedStatus: If the server returns an undocumented status code.
|
|
150
|
+
httpx.TimeoutException: If the request takes longer than Client.timeout.
|
|
151
|
+
|
|
152
|
+
Returns:
|
|
153
|
+
Rule
|
|
154
|
+
"""
|
|
155
|
+
|
|
156
|
+
return (
|
|
157
|
+
await asyncio_detailed(
|
|
158
|
+
uuid=uuid,
|
|
159
|
+
client=client,
|
|
160
|
+
body=body,
|
|
161
|
+
)
|
|
162
|
+
).parsed
|
|
@@ -0,0 +1,140 @@
|
|
|
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.rule import Rule
|
|
10
|
+
from ...types import Response
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
def _get_kwargs(
|
|
14
|
+
uuid: UUID,
|
|
15
|
+
) -> dict[str, Any]:
|
|
16
|
+
_kwargs: dict[str, Any] = {
|
|
17
|
+
"method": "get",
|
|
18
|
+
"url": f"/api/autoprovisioning-rules/{uuid}/",
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
return _kwargs
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
def _parse_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> Rule:
|
|
25
|
+
if response.status_code == 200:
|
|
26
|
+
response_200 = Rule.from_dict(response.json())
|
|
27
|
+
|
|
28
|
+
return response_200
|
|
29
|
+
raise errors.UnexpectedStatus(response.status_code, response.content)
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
def _build_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> Response[Rule]:
|
|
33
|
+
return Response(
|
|
34
|
+
status_code=HTTPStatus(response.status_code),
|
|
35
|
+
content=response.content,
|
|
36
|
+
headers=response.headers,
|
|
37
|
+
parsed=_parse_response(client=client, response=response),
|
|
38
|
+
)
|
|
39
|
+
|
|
40
|
+
|
|
41
|
+
def sync_detailed(
|
|
42
|
+
uuid: UUID,
|
|
43
|
+
*,
|
|
44
|
+
client: AuthenticatedClient,
|
|
45
|
+
) -> Response[Rule]:
|
|
46
|
+
"""
|
|
47
|
+
Args:
|
|
48
|
+
uuid (UUID):
|
|
49
|
+
|
|
50
|
+
Raises:
|
|
51
|
+
errors.UnexpectedStatus: If the server returns an undocumented status code.
|
|
52
|
+
httpx.TimeoutException: If the request takes longer than Client.timeout.
|
|
53
|
+
|
|
54
|
+
Returns:
|
|
55
|
+
Response[Rule]
|
|
56
|
+
"""
|
|
57
|
+
|
|
58
|
+
kwargs = _get_kwargs(
|
|
59
|
+
uuid=uuid,
|
|
60
|
+
)
|
|
61
|
+
|
|
62
|
+
response = client.get_httpx_client().request(
|
|
63
|
+
**kwargs,
|
|
64
|
+
)
|
|
65
|
+
|
|
66
|
+
return _build_response(client=client, response=response)
|
|
67
|
+
|
|
68
|
+
|
|
69
|
+
def sync(
|
|
70
|
+
uuid: UUID,
|
|
71
|
+
*,
|
|
72
|
+
client: AuthenticatedClient,
|
|
73
|
+
) -> Rule:
|
|
74
|
+
"""
|
|
75
|
+
Args:
|
|
76
|
+
uuid (UUID):
|
|
77
|
+
|
|
78
|
+
Raises:
|
|
79
|
+
errors.UnexpectedStatus: If the server returns an undocumented status code.
|
|
80
|
+
httpx.TimeoutException: If the request takes longer than Client.timeout.
|
|
81
|
+
|
|
82
|
+
Returns:
|
|
83
|
+
Rule
|
|
84
|
+
"""
|
|
85
|
+
|
|
86
|
+
return sync_detailed(
|
|
87
|
+
uuid=uuid,
|
|
88
|
+
client=client,
|
|
89
|
+
).parsed
|
|
90
|
+
|
|
91
|
+
|
|
92
|
+
async def asyncio_detailed(
|
|
93
|
+
uuid: UUID,
|
|
94
|
+
*,
|
|
95
|
+
client: AuthenticatedClient,
|
|
96
|
+
) -> Response[Rule]:
|
|
97
|
+
"""
|
|
98
|
+
Args:
|
|
99
|
+
uuid (UUID):
|
|
100
|
+
|
|
101
|
+
Raises:
|
|
102
|
+
errors.UnexpectedStatus: If the server returns an undocumented status code.
|
|
103
|
+
httpx.TimeoutException: If the request takes longer than Client.timeout.
|
|
104
|
+
|
|
105
|
+
Returns:
|
|
106
|
+
Response[Rule]
|
|
107
|
+
"""
|
|
108
|
+
|
|
109
|
+
kwargs = _get_kwargs(
|
|
110
|
+
uuid=uuid,
|
|
111
|
+
)
|
|
112
|
+
|
|
113
|
+
response = await client.get_async_httpx_client().request(**kwargs)
|
|
114
|
+
|
|
115
|
+
return _build_response(client=client, response=response)
|
|
116
|
+
|
|
117
|
+
|
|
118
|
+
async def asyncio(
|
|
119
|
+
uuid: UUID,
|
|
120
|
+
*,
|
|
121
|
+
client: AuthenticatedClient,
|
|
122
|
+
) -> Rule:
|
|
123
|
+
"""
|
|
124
|
+
Args:
|
|
125
|
+
uuid (UUID):
|
|
126
|
+
|
|
127
|
+
Raises:
|
|
128
|
+
errors.UnexpectedStatus: If the server returns an undocumented status code.
|
|
129
|
+
httpx.TimeoutException: If the request takes longer than Client.timeout.
|
|
130
|
+
|
|
131
|
+
Returns:
|
|
132
|
+
Rule
|
|
133
|
+
"""
|
|
134
|
+
|
|
135
|
+
return (
|
|
136
|
+
await asyncio_detailed(
|
|
137
|
+
uuid=uuid,
|
|
138
|
+
client=client,
|
|
139
|
+
)
|
|
140
|
+
).parsed
|
|
@@ -0,0 +1,162 @@
|
|
|
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.rule import Rule
|
|
10
|
+
from ...models.rule_request import RuleRequest
|
|
11
|
+
from ...types import Response
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
def _get_kwargs(
|
|
15
|
+
uuid: UUID,
|
|
16
|
+
*,
|
|
17
|
+
body: RuleRequest,
|
|
18
|
+
) -> dict[str, Any]:
|
|
19
|
+
headers: dict[str, Any] = {}
|
|
20
|
+
|
|
21
|
+
_kwargs: dict[str, Any] = {
|
|
22
|
+
"method": "put",
|
|
23
|
+
"url": f"/api/autoprovisioning-rules/{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) -> Rule:
|
|
35
|
+
if response.status_code == 200:
|
|
36
|
+
response_200 = Rule.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[Rule]:
|
|
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: RuleRequest,
|
|
56
|
+
) -> Response[Rule]:
|
|
57
|
+
"""
|
|
58
|
+
Args:
|
|
59
|
+
uuid (UUID):
|
|
60
|
+
body (RuleRequest):
|
|
61
|
+
|
|
62
|
+
Raises:
|
|
63
|
+
errors.UnexpectedStatus: If the server returns an undocumented status code.
|
|
64
|
+
httpx.TimeoutException: If the request takes longer than Client.timeout.
|
|
65
|
+
|
|
66
|
+
Returns:
|
|
67
|
+
Response[Rule]
|
|
68
|
+
"""
|
|
69
|
+
|
|
70
|
+
kwargs = _get_kwargs(
|
|
71
|
+
uuid=uuid,
|
|
72
|
+
body=body,
|
|
73
|
+
)
|
|
74
|
+
|
|
75
|
+
response = client.get_httpx_client().request(
|
|
76
|
+
**kwargs,
|
|
77
|
+
)
|
|
78
|
+
|
|
79
|
+
return _build_response(client=client, response=response)
|
|
80
|
+
|
|
81
|
+
|
|
82
|
+
def sync(
|
|
83
|
+
uuid: UUID,
|
|
84
|
+
*,
|
|
85
|
+
client: AuthenticatedClient,
|
|
86
|
+
body: RuleRequest,
|
|
87
|
+
) -> Rule:
|
|
88
|
+
"""
|
|
89
|
+
Args:
|
|
90
|
+
uuid (UUID):
|
|
91
|
+
body (RuleRequest):
|
|
92
|
+
|
|
93
|
+
Raises:
|
|
94
|
+
errors.UnexpectedStatus: If the server returns an undocumented status code.
|
|
95
|
+
httpx.TimeoutException: If the request takes longer than Client.timeout.
|
|
96
|
+
|
|
97
|
+
Returns:
|
|
98
|
+
Rule
|
|
99
|
+
"""
|
|
100
|
+
|
|
101
|
+
return sync_detailed(
|
|
102
|
+
uuid=uuid,
|
|
103
|
+
client=client,
|
|
104
|
+
body=body,
|
|
105
|
+
).parsed
|
|
106
|
+
|
|
107
|
+
|
|
108
|
+
async def asyncio_detailed(
|
|
109
|
+
uuid: UUID,
|
|
110
|
+
*,
|
|
111
|
+
client: AuthenticatedClient,
|
|
112
|
+
body: RuleRequest,
|
|
113
|
+
) -> Response[Rule]:
|
|
114
|
+
"""
|
|
115
|
+
Args:
|
|
116
|
+
uuid (UUID):
|
|
117
|
+
body (RuleRequest):
|
|
118
|
+
|
|
119
|
+
Raises:
|
|
120
|
+
errors.UnexpectedStatus: If the server returns an undocumented status code.
|
|
121
|
+
httpx.TimeoutException: If the request takes longer than Client.timeout.
|
|
122
|
+
|
|
123
|
+
Returns:
|
|
124
|
+
Response[Rule]
|
|
125
|
+
"""
|
|
126
|
+
|
|
127
|
+
kwargs = _get_kwargs(
|
|
128
|
+
uuid=uuid,
|
|
129
|
+
body=body,
|
|
130
|
+
)
|
|
131
|
+
|
|
132
|
+
response = await client.get_async_httpx_client().request(**kwargs)
|
|
133
|
+
|
|
134
|
+
return _build_response(client=client, response=response)
|
|
135
|
+
|
|
136
|
+
|
|
137
|
+
async def asyncio(
|
|
138
|
+
uuid: UUID,
|
|
139
|
+
*,
|
|
140
|
+
client: AuthenticatedClient,
|
|
141
|
+
body: RuleRequest,
|
|
142
|
+
) -> Rule:
|
|
143
|
+
"""
|
|
144
|
+
Args:
|
|
145
|
+
uuid (UUID):
|
|
146
|
+
body (RuleRequest):
|
|
147
|
+
|
|
148
|
+
Raises:
|
|
149
|
+
errors.UnexpectedStatus: If the server returns an undocumented status code.
|
|
150
|
+
httpx.TimeoutException: If the request takes longer than Client.timeout.
|
|
151
|
+
|
|
152
|
+
Returns:
|
|
153
|
+
Rule
|
|
154
|
+
"""
|
|
155
|
+
|
|
156
|
+
return (
|
|
157
|
+
await asyncio_detailed(
|
|
158
|
+
uuid=uuid,
|
|
159
|
+
client=client,
|
|
160
|
+
body=body,
|
|
161
|
+
)
|
|
162
|
+
).parsed
|
|
@@ -49,6 +49,7 @@ def _get_kwargs(
|
|
|
49
49
|
start: Union[Unset, str] = UNSET,
|
|
50
50
|
state: Union[Unset, list[MarketplaceProviderOfferingsComponentStatsListStateItem]] = UNSET,
|
|
51
51
|
type_: Union[Unset, list[str]] = UNSET,
|
|
52
|
+
uuid_list: Union[Unset, str] = UNSET,
|
|
52
53
|
) -> dict[str, Any]:
|
|
53
54
|
params: dict[str, Any] = {}
|
|
54
55
|
|
|
@@ -171,6 +172,8 @@ def _get_kwargs(
|
|
|
171
172
|
|
|
172
173
|
params["type"] = json_type_
|
|
173
174
|
|
|
175
|
+
params["uuid_list"] = uuid_list
|
|
176
|
+
|
|
174
177
|
params = {k: v for k, v in params.items() if v is not UNSET and v is not None}
|
|
175
178
|
|
|
176
179
|
_kwargs: dict[str, Any] = {
|
|
@@ -241,6 +244,7 @@ def sync_detailed(
|
|
|
241
244
|
start: Union[Unset, str] = UNSET,
|
|
242
245
|
state: Union[Unset, list[MarketplaceProviderOfferingsComponentStatsListStateItem]] = UNSET,
|
|
243
246
|
type_: Union[Unset, list[str]] = UNSET,
|
|
247
|
+
uuid_list: Union[Unset, str] = UNSET,
|
|
244
248
|
) -> Response[list["OfferingComponentStat"]]:
|
|
245
249
|
"""Get statistics for offering components.
|
|
246
250
|
|
|
@@ -275,6 +279,7 @@ def sync_detailed(
|
|
|
275
279
|
start (Union[Unset, str]):
|
|
276
280
|
state (Union[Unset, list[MarketplaceProviderOfferingsComponentStatsListStateItem]]):
|
|
277
281
|
type_ (Union[Unset, list[str]]):
|
|
282
|
+
uuid_list (Union[Unset, str]):
|
|
278
283
|
|
|
279
284
|
Raises:
|
|
280
285
|
errors.UnexpectedStatus: If the server returns an undocumented status code.
|
|
@@ -315,6 +320,7 @@ def sync_detailed(
|
|
|
315
320
|
start=start,
|
|
316
321
|
state=state,
|
|
317
322
|
type_=type_,
|
|
323
|
+
uuid_list=uuid_list,
|
|
318
324
|
)
|
|
319
325
|
|
|
320
326
|
response = client.get_httpx_client().request(
|
|
@@ -357,6 +363,7 @@ def sync(
|
|
|
357
363
|
start: Union[Unset, str] = UNSET,
|
|
358
364
|
state: Union[Unset, list[MarketplaceProviderOfferingsComponentStatsListStateItem]] = UNSET,
|
|
359
365
|
type_: Union[Unset, list[str]] = UNSET,
|
|
366
|
+
uuid_list: Union[Unset, str] = UNSET,
|
|
360
367
|
) -> list["OfferingComponentStat"]:
|
|
361
368
|
"""Get statistics for offering components.
|
|
362
369
|
|
|
@@ -391,6 +398,7 @@ def sync(
|
|
|
391
398
|
start (Union[Unset, str]):
|
|
392
399
|
state (Union[Unset, list[MarketplaceProviderOfferingsComponentStatsListStateItem]]):
|
|
393
400
|
type_ (Union[Unset, list[str]]):
|
|
401
|
+
uuid_list (Union[Unset, str]):
|
|
394
402
|
|
|
395
403
|
Raises:
|
|
396
404
|
errors.UnexpectedStatus: If the server returns an undocumented status code.
|
|
@@ -432,6 +440,7 @@ def sync(
|
|
|
432
440
|
start=start,
|
|
433
441
|
state=state,
|
|
434
442
|
type_=type_,
|
|
443
|
+
uuid_list=uuid_list,
|
|
435
444
|
).parsed
|
|
436
445
|
|
|
437
446
|
|
|
@@ -468,6 +477,7 @@ async def asyncio_detailed(
|
|
|
468
477
|
start: Union[Unset, str] = UNSET,
|
|
469
478
|
state: Union[Unset, list[MarketplaceProviderOfferingsComponentStatsListStateItem]] = UNSET,
|
|
470
479
|
type_: Union[Unset, list[str]] = UNSET,
|
|
480
|
+
uuid_list: Union[Unset, str] = UNSET,
|
|
471
481
|
) -> Response[list["OfferingComponentStat"]]:
|
|
472
482
|
"""Get statistics for offering components.
|
|
473
483
|
|
|
@@ -502,6 +512,7 @@ async def asyncio_detailed(
|
|
|
502
512
|
start (Union[Unset, str]):
|
|
503
513
|
state (Union[Unset, list[MarketplaceProviderOfferingsComponentStatsListStateItem]]):
|
|
504
514
|
type_ (Union[Unset, list[str]]):
|
|
515
|
+
uuid_list (Union[Unset, str]):
|
|
505
516
|
|
|
506
517
|
Raises:
|
|
507
518
|
errors.UnexpectedStatus: If the server returns an undocumented status code.
|
|
@@ -542,6 +553,7 @@ async def asyncio_detailed(
|
|
|
542
553
|
start=start,
|
|
543
554
|
state=state,
|
|
544
555
|
type_=type_,
|
|
556
|
+
uuid_list=uuid_list,
|
|
545
557
|
)
|
|
546
558
|
|
|
547
559
|
response = await client.get_async_httpx_client().request(**kwargs)
|
|
@@ -582,6 +594,7 @@ async def asyncio(
|
|
|
582
594
|
start: Union[Unset, str] = UNSET,
|
|
583
595
|
state: Union[Unset, list[MarketplaceProviderOfferingsComponentStatsListStateItem]] = UNSET,
|
|
584
596
|
type_: Union[Unset, list[str]] = UNSET,
|
|
597
|
+
uuid_list: Union[Unset, str] = UNSET,
|
|
585
598
|
) -> list["OfferingComponentStat"]:
|
|
586
599
|
"""Get statistics for offering components.
|
|
587
600
|
|
|
@@ -616,6 +629,7 @@ async def asyncio(
|
|
|
616
629
|
start (Union[Unset, str]):
|
|
617
630
|
state (Union[Unset, list[MarketplaceProviderOfferingsComponentStatsListStateItem]]):
|
|
618
631
|
type_ (Union[Unset, list[str]]):
|
|
632
|
+
uuid_list (Union[Unset, str]):
|
|
619
633
|
|
|
620
634
|
Raises:
|
|
621
635
|
errors.UnexpectedStatus: If the server returns an undocumented status code.
|
|
@@ -658,5 +672,6 @@ async def asyncio(
|
|
|
658
672
|
start=start,
|
|
659
673
|
state=state,
|
|
660
674
|
type_=type_,
|
|
675
|
+
uuid_list=uuid_list,
|
|
661
676
|
)
|
|
662
677
|
).parsed
|
waldur_api_client/api/marketplace_provider_offerings/marketplace_provider_offerings_costs_list.py
CHANGED
|
@@ -48,6 +48,7 @@ def _get_kwargs(
|
|
|
48
48
|
start: Union[Unset, str] = UNSET,
|
|
49
49
|
state: Union[Unset, list[MarketplaceProviderOfferingsCostsListStateItem]] = UNSET,
|
|
50
50
|
type_: Union[Unset, list[str]] = UNSET,
|
|
51
|
+
uuid_list: Union[Unset, str] = UNSET,
|
|
51
52
|
) -> dict[str, Any]:
|
|
52
53
|
params: dict[str, Any] = {}
|
|
53
54
|
|
|
@@ -172,6 +173,8 @@ def _get_kwargs(
|
|
|
172
173
|
|
|
173
174
|
params["type"] = json_type_
|
|
174
175
|
|
|
176
|
+
params["uuid_list"] = uuid_list
|
|
177
|
+
|
|
175
178
|
params = {k: v for k, v in params.items() if v is not UNSET and v is not None}
|
|
176
179
|
|
|
177
180
|
_kwargs: dict[str, Any] = {
|
|
@@ -243,6 +246,7 @@ def sync_detailed(
|
|
|
243
246
|
start: Union[Unset, str] = UNSET,
|
|
244
247
|
state: Union[Unset, list[MarketplaceProviderOfferingsCostsListStateItem]] = UNSET,
|
|
245
248
|
type_: Union[Unset, list[str]] = UNSET,
|
|
249
|
+
uuid_list: Union[Unset, str] = UNSET,
|
|
246
250
|
) -> Response[list["ProviderOfferingCosts"]]:
|
|
247
251
|
"""Get costs for offering.
|
|
248
252
|
|
|
@@ -278,6 +282,7 @@ def sync_detailed(
|
|
|
278
282
|
start (Union[Unset, str]):
|
|
279
283
|
state (Union[Unset, list[MarketplaceProviderOfferingsCostsListStateItem]]):
|
|
280
284
|
type_ (Union[Unset, list[str]]):
|
|
285
|
+
uuid_list (Union[Unset, str]):
|
|
281
286
|
|
|
282
287
|
Raises:
|
|
283
288
|
errors.UnexpectedStatus: If the server returns an undocumented status code.
|
|
@@ -319,6 +324,7 @@ def sync_detailed(
|
|
|
319
324
|
start=start,
|
|
320
325
|
state=state,
|
|
321
326
|
type_=type_,
|
|
327
|
+
uuid_list=uuid_list,
|
|
322
328
|
)
|
|
323
329
|
|
|
324
330
|
response = client.get_httpx_client().request(
|
|
@@ -362,6 +368,7 @@ def sync(
|
|
|
362
368
|
start: Union[Unset, str] = UNSET,
|
|
363
369
|
state: Union[Unset, list[MarketplaceProviderOfferingsCostsListStateItem]] = UNSET,
|
|
364
370
|
type_: Union[Unset, list[str]] = UNSET,
|
|
371
|
+
uuid_list: Union[Unset, str] = UNSET,
|
|
365
372
|
) -> list["ProviderOfferingCosts"]:
|
|
366
373
|
"""Get costs for offering.
|
|
367
374
|
|
|
@@ -397,6 +404,7 @@ def sync(
|
|
|
397
404
|
start (Union[Unset, str]):
|
|
398
405
|
state (Union[Unset, list[MarketplaceProviderOfferingsCostsListStateItem]]):
|
|
399
406
|
type_ (Union[Unset, list[str]]):
|
|
407
|
+
uuid_list (Union[Unset, str]):
|
|
400
408
|
|
|
401
409
|
Raises:
|
|
402
410
|
errors.UnexpectedStatus: If the server returns an undocumented status code.
|
|
@@ -439,6 +447,7 @@ def sync(
|
|
|
439
447
|
start=start,
|
|
440
448
|
state=state,
|
|
441
449
|
type_=type_,
|
|
450
|
+
uuid_list=uuid_list,
|
|
442
451
|
).parsed
|
|
443
452
|
|
|
444
453
|
|
|
@@ -476,6 +485,7 @@ async def asyncio_detailed(
|
|
|
476
485
|
start: Union[Unset, str] = UNSET,
|
|
477
486
|
state: Union[Unset, list[MarketplaceProviderOfferingsCostsListStateItem]] = UNSET,
|
|
478
487
|
type_: Union[Unset, list[str]] = UNSET,
|
|
488
|
+
uuid_list: Union[Unset, str] = UNSET,
|
|
479
489
|
) -> Response[list["ProviderOfferingCosts"]]:
|
|
480
490
|
"""Get costs for offering.
|
|
481
491
|
|
|
@@ -511,6 +521,7 @@ async def asyncio_detailed(
|
|
|
511
521
|
start (Union[Unset, str]):
|
|
512
522
|
state (Union[Unset, list[MarketplaceProviderOfferingsCostsListStateItem]]):
|
|
513
523
|
type_ (Union[Unset, list[str]]):
|
|
524
|
+
uuid_list (Union[Unset, str]):
|
|
514
525
|
|
|
515
526
|
Raises:
|
|
516
527
|
errors.UnexpectedStatus: If the server returns an undocumented status code.
|
|
@@ -552,6 +563,7 @@ async def asyncio_detailed(
|
|
|
552
563
|
start=start,
|
|
553
564
|
state=state,
|
|
554
565
|
type_=type_,
|
|
566
|
+
uuid_list=uuid_list,
|
|
555
567
|
)
|
|
556
568
|
|
|
557
569
|
response = await client.get_async_httpx_client().request(**kwargs)
|
|
@@ -593,6 +605,7 @@ async def asyncio(
|
|
|
593
605
|
start: Union[Unset, str] = UNSET,
|
|
594
606
|
state: Union[Unset, list[MarketplaceProviderOfferingsCostsListStateItem]] = UNSET,
|
|
595
607
|
type_: Union[Unset, list[str]] = UNSET,
|
|
608
|
+
uuid_list: Union[Unset, str] = UNSET,
|
|
596
609
|
) -> list["ProviderOfferingCosts"]:
|
|
597
610
|
"""Get costs for offering.
|
|
598
611
|
|
|
@@ -628,6 +641,7 @@ async def asyncio(
|
|
|
628
641
|
start (Union[Unset, str]):
|
|
629
642
|
state (Union[Unset, list[MarketplaceProviderOfferingsCostsListStateItem]]):
|
|
630
643
|
type_ (Union[Unset, list[str]]):
|
|
644
|
+
uuid_list (Union[Unset, str]):
|
|
631
645
|
|
|
632
646
|
Raises:
|
|
633
647
|
errors.UnexpectedStatus: If the server returns an undocumented status code.
|
|
@@ -671,5 +685,6 @@ async def asyncio(
|
|
|
671
685
|
start=start,
|
|
672
686
|
state=state,
|
|
673
687
|
type_=type_,
|
|
688
|
+
uuid_list=uuid_list,
|
|
674
689
|
)
|
|
675
690
|
).parsed
|