Skip to content

Commit 85a22ea

Browse files
Generate edge
1 parent b7bc6f6 commit 85a22ea

File tree

2 files changed

+1
-216
lines changed

2 files changed

+1
-216
lines changed

services/edge/oas_commit

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
23892ef8e96d845bad401827264d44b690a28abe
1+
7387ad1600ca8bb2a3f15a5df04cd5831d75852f

services/edge/src/stackit/edge/api/default_api.py

Lines changed: 0 additions & 215 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@
1111
Do not edit the class manually.
1212
""" # noqa: E501
1313

14-
import warnings
1514
from typing import Any, Dict, List, Optional, Tuple, Union
1615
from uuid import UUID
1716

@@ -2878,220 +2877,6 @@ def _list_instances_serialize(
28782877
_request_auth=_request_auth,
28792878
)
28802879

2881-
@validate_call
2882-
def list_plans_global(
2883-
self,
2884-
_request_timeout: Union[
2885-
None,
2886-
Annotated[StrictFloat, Field(gt=0)],
2887-
Tuple[Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]],
2888-
] = None,
2889-
_request_auth: Optional[Dict[StrictStr, Any]] = None,
2890-
_content_type: Optional[StrictStr] = None,
2891-
_headers: Optional[Dict[StrictStr, Any]] = None,
2892-
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
2893-
) -> PlanList:
2894-
"""(Deprecated) list_plans_global
2895-
2896-
DEPRECATED: Will be removed at the 28 of february 2026. Use list-plans-project instead.
2897-
2898-
:param _request_timeout: timeout setting for this request. If one
2899-
number provided, it will be total request
2900-
timeout. It can also be a pair (tuple) of
2901-
(connection, read) timeouts.
2902-
:type _request_timeout: int, tuple(int, int), optional
2903-
:param _request_auth: set to override the auth_settings for an a single
2904-
request; this effectively ignores the
2905-
authentication in the spec for a single request.
2906-
:type _request_auth: dict, optional
2907-
:param _content_type: force content-type for the request.
2908-
:type _content_type: str, Optional
2909-
:param _headers: set to override the headers for a single
2910-
request; this effectively ignores the headers
2911-
in the spec for a single request.
2912-
:type _headers: dict, optional
2913-
:param _host_index: set to override the host_index for a single
2914-
request; this effectively ignores the host_index
2915-
in the spec for a single request.
2916-
:type _host_index: int, optional
2917-
:return: Returns the result object.
2918-
""" # noqa: E501
2919-
warnings.warn("GET /v1beta1/plans is deprecated.", DeprecationWarning)
2920-
2921-
_param = self._list_plans_global_serialize(
2922-
_request_auth=_request_auth, _content_type=_content_type, _headers=_headers, _host_index=_host_index
2923-
)
2924-
2925-
_response_types_map: Dict[str, Optional[str]] = {
2926-
"200": "PlanList",
2927-
"400": "BadRequest",
2928-
"401": "UnauthorizedRequest",
2929-
"500": None,
2930-
}
2931-
response_data = self.api_client.call_api(*_param, _request_timeout=_request_timeout)
2932-
response_data.read()
2933-
return self.api_client.response_deserialize(
2934-
response_data=response_data,
2935-
response_types_map=_response_types_map,
2936-
).data
2937-
2938-
@validate_call
2939-
def list_plans_global_with_http_info(
2940-
self,
2941-
_request_timeout: Union[
2942-
None,
2943-
Annotated[StrictFloat, Field(gt=0)],
2944-
Tuple[Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]],
2945-
] = None,
2946-
_request_auth: Optional[Dict[StrictStr, Any]] = None,
2947-
_content_type: Optional[StrictStr] = None,
2948-
_headers: Optional[Dict[StrictStr, Any]] = None,
2949-
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
2950-
) -> ApiResponse[PlanList]:
2951-
"""(Deprecated) list_plans_global
2952-
2953-
DEPRECATED: Will be removed at the 28 of february 2026. Use list-plans-project instead.
2954-
2955-
:param _request_timeout: timeout setting for this request. If one
2956-
number provided, it will be total request
2957-
timeout. It can also be a pair (tuple) of
2958-
(connection, read) timeouts.
2959-
:type _request_timeout: int, tuple(int, int), optional
2960-
:param _request_auth: set to override the auth_settings for an a single
2961-
request; this effectively ignores the
2962-
authentication in the spec for a single request.
2963-
:type _request_auth: dict, optional
2964-
:param _content_type: force content-type for the request.
2965-
:type _content_type: str, Optional
2966-
:param _headers: set to override the headers for a single
2967-
request; this effectively ignores the headers
2968-
in the spec for a single request.
2969-
:type _headers: dict, optional
2970-
:param _host_index: set to override the host_index for a single
2971-
request; this effectively ignores the host_index
2972-
in the spec for a single request.
2973-
:type _host_index: int, optional
2974-
:return: Returns the result object.
2975-
""" # noqa: E501
2976-
warnings.warn("GET /v1beta1/plans is deprecated.", DeprecationWarning)
2977-
2978-
_param = self._list_plans_global_serialize(
2979-
_request_auth=_request_auth, _content_type=_content_type, _headers=_headers, _host_index=_host_index
2980-
)
2981-
2982-
_response_types_map: Dict[str, Optional[str]] = {
2983-
"200": "PlanList",
2984-
"400": "BadRequest",
2985-
"401": "UnauthorizedRequest",
2986-
"500": None,
2987-
}
2988-
response_data = self.api_client.call_api(*_param, _request_timeout=_request_timeout)
2989-
response_data.read()
2990-
return self.api_client.response_deserialize(
2991-
response_data=response_data,
2992-
response_types_map=_response_types_map,
2993-
)
2994-
2995-
@validate_call
2996-
def list_plans_global_without_preload_content(
2997-
self,
2998-
_request_timeout: Union[
2999-
None,
3000-
Annotated[StrictFloat, Field(gt=0)],
3001-
Tuple[Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]],
3002-
] = None,
3003-
_request_auth: Optional[Dict[StrictStr, Any]] = None,
3004-
_content_type: Optional[StrictStr] = None,
3005-
_headers: Optional[Dict[StrictStr, Any]] = None,
3006-
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
3007-
) -> RESTResponseType:
3008-
"""(Deprecated) list_plans_global
3009-
3010-
DEPRECATED: Will be removed at the 28 of february 2026. Use list-plans-project instead.
3011-
3012-
:param _request_timeout: timeout setting for this request. If one
3013-
number provided, it will be total request
3014-
timeout. It can also be a pair (tuple) of
3015-
(connection, read) timeouts.
3016-
:type _request_timeout: int, tuple(int, int), optional
3017-
:param _request_auth: set to override the auth_settings for an a single
3018-
request; this effectively ignores the
3019-
authentication in the spec for a single request.
3020-
:type _request_auth: dict, optional
3021-
:param _content_type: force content-type for the request.
3022-
:type _content_type: str, Optional
3023-
:param _headers: set to override the headers for a single
3024-
request; this effectively ignores the headers
3025-
in the spec for a single request.
3026-
:type _headers: dict, optional
3027-
:param _host_index: set to override the host_index for a single
3028-
request; this effectively ignores the host_index
3029-
in the spec for a single request.
3030-
:type _host_index: int, optional
3031-
:return: Returns the result object.
3032-
""" # noqa: E501
3033-
warnings.warn("GET /v1beta1/plans is deprecated.", DeprecationWarning)
3034-
3035-
_param = self._list_plans_global_serialize(
3036-
_request_auth=_request_auth, _content_type=_content_type, _headers=_headers, _host_index=_host_index
3037-
)
3038-
3039-
_response_types_map: Dict[str, Optional[str]] = {
3040-
"200": "PlanList",
3041-
"400": "BadRequest",
3042-
"401": "UnauthorizedRequest",
3043-
"500": None,
3044-
}
3045-
response_data = self.api_client.call_api(*_param, _request_timeout=_request_timeout)
3046-
return response_data.response
3047-
3048-
def _list_plans_global_serialize(
3049-
self,
3050-
_request_auth,
3051-
_content_type,
3052-
_headers,
3053-
_host_index,
3054-
) -> RequestSerialized:
3055-
3056-
_host = None
3057-
3058-
_collection_formats: Dict[str, str] = {}
3059-
3060-
_path_params: Dict[str, str] = {}
3061-
_query_params: List[Tuple[str, str]] = []
3062-
_header_params: Dict[str, Optional[str]] = _headers or {}
3063-
_form_params: List[Tuple[str, str]] = []
3064-
_files: Dict[str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]] = {}
3065-
_body_params: Optional[bytes] = None
3066-
3067-
# process the path parameters
3068-
# process the query parameters
3069-
# process the header parameters
3070-
# process the form parameters
3071-
# process the body parameter
3072-
3073-
# set the HTTP header `Accept`
3074-
if "Accept" not in _header_params:
3075-
_header_params["Accept"] = self.api_client.select_header_accept(["application/json"])
3076-
3077-
# authentication setting
3078-
_auth_settings: List[str] = []
3079-
3080-
return self.api_client.param_serialize(
3081-
method="GET",
3082-
resource_path="/v1beta1/plans",
3083-
path_params=_path_params,
3084-
query_params=_query_params,
3085-
header_params=_header_params,
3086-
body=_body_params,
3087-
post_params=_form_params,
3088-
files=_files,
3089-
auth_settings=_auth_settings,
3090-
collection_formats=_collection_formats,
3091-
_host=_host,
3092-
_request_auth=_request_auth,
3093-
)
3094-
30952880
@validate_call
30962881
def list_plans_project(
30972882
self,

0 commit comments

Comments
 (0)