Skip to content

Commit 720b164

Browse files
Generate iaasalpha
1 parent 539e311 commit 720b164

38 files changed

+420
-51
lines changed

services/iaasalpha/src/stackit/iaasalpha/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
# flake8: noqa
44

55
"""
6-
IaaS-API
6+
STACKIT IaaS API
77
88
This API allows you to create and modify IaaS resources.
99

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

Lines changed: 332 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# coding: utf-8
22

33
"""
4-
IaaS-API
4+
STACKIT IaaS API
55
66
This API allows you to create and modify IaaS resources.
77
@@ -3282,6 +3282,337 @@ def _list_networks_serialize(
32823282
_request_auth=_request_auth,
32833283
)
32843284

3285+
@validate_call
3286+
def list_networks_of_routing_table(
3287+
self,
3288+
organization_id: Annotated[
3289+
str,
3290+
Field(
3291+
min_length=36, strict=True, max_length=36, description="The identifier (ID) of a STACKIT Organization."
3292+
),
3293+
],
3294+
area_id: Annotated[
3295+
str,
3296+
Field(
3297+
min_length=36, strict=True, max_length=36, description="The identifier (ID) of a STACKIT Network Area."
3298+
),
3299+
],
3300+
region: Annotated[StrictStr, Field(description="The STACKIT Region of the resources.")],
3301+
routing_table_id: Annotated[
3302+
str,
3303+
Field(
3304+
min_length=36, strict=True, max_length=36, description="The identifier (ID) of a STACKIT Routing Table."
3305+
),
3306+
],
3307+
_request_timeout: Union[
3308+
None,
3309+
Annotated[StrictFloat, Field(gt=0)],
3310+
Tuple[Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]],
3311+
] = None,
3312+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
3313+
_content_type: Optional[StrictStr] = None,
3314+
_headers: Optional[Dict[StrictStr, Any]] = None,
3315+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
3316+
) -> NetworkListResponse:
3317+
"""List all networks in a routing table.
3318+
3319+
Get a list of all networks in a routing table.
3320+
3321+
:param organization_id: The identifier (ID) of a STACKIT Organization. (required)
3322+
:type organization_id: str
3323+
:param area_id: The identifier (ID) of a STACKIT Network Area. (required)
3324+
:type area_id: str
3325+
:param region: The STACKIT Region of the resources. (required)
3326+
:type region: str
3327+
:param routing_table_id: The identifier (ID) of a STACKIT Routing Table. (required)
3328+
:type routing_table_id: str
3329+
:param _request_timeout: timeout setting for this request. If one
3330+
number provided, it will be total request
3331+
timeout. It can also be a pair (tuple) of
3332+
(connection, read) timeouts.
3333+
:type _request_timeout: int, tuple(int, int), optional
3334+
:param _request_auth: set to override the auth_settings for an a single
3335+
request; this effectively ignores the
3336+
authentication in the spec for a single request.
3337+
:type _request_auth: dict, optional
3338+
:param _content_type: force content-type for the request.
3339+
:type _content_type: str, Optional
3340+
:param _headers: set to override the headers for a single
3341+
request; this effectively ignores the headers
3342+
in the spec for a single request.
3343+
:type _headers: dict, optional
3344+
:param _host_index: set to override the host_index for a single
3345+
request; this effectively ignores the host_index
3346+
in the spec for a single request.
3347+
:type _host_index: int, optional
3348+
:return: Returns the result object.
3349+
""" # noqa: E501
3350+
3351+
_param = self._list_networks_of_routing_table_serialize(
3352+
organization_id=organization_id,
3353+
area_id=area_id,
3354+
region=region,
3355+
routing_table_id=routing_table_id,
3356+
_request_auth=_request_auth,
3357+
_content_type=_content_type,
3358+
_headers=_headers,
3359+
_host_index=_host_index,
3360+
)
3361+
3362+
_response_types_map: Dict[str, Optional[str]] = {
3363+
"200": "NetworkListResponse",
3364+
"400": "Error",
3365+
"401": "Error",
3366+
"403": "Error",
3367+
"404": "Error",
3368+
"500": "Error",
3369+
}
3370+
response_data = self.api_client.call_api(*_param, _request_timeout=_request_timeout)
3371+
response_data.read()
3372+
return self.api_client.response_deserialize(
3373+
response_data=response_data,
3374+
response_types_map=_response_types_map,
3375+
).data
3376+
3377+
@validate_call
3378+
def list_networks_of_routing_table_with_http_info(
3379+
self,
3380+
organization_id: Annotated[
3381+
str,
3382+
Field(
3383+
min_length=36, strict=True, max_length=36, description="The identifier (ID) of a STACKIT Organization."
3384+
),
3385+
],
3386+
area_id: Annotated[
3387+
str,
3388+
Field(
3389+
min_length=36, strict=True, max_length=36, description="The identifier (ID) of a STACKIT Network Area."
3390+
),
3391+
],
3392+
region: Annotated[StrictStr, Field(description="The STACKIT Region of the resources.")],
3393+
routing_table_id: Annotated[
3394+
str,
3395+
Field(
3396+
min_length=36, strict=True, max_length=36, description="The identifier (ID) of a STACKIT Routing Table."
3397+
),
3398+
],
3399+
_request_timeout: Union[
3400+
None,
3401+
Annotated[StrictFloat, Field(gt=0)],
3402+
Tuple[Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]],
3403+
] = None,
3404+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
3405+
_content_type: Optional[StrictStr] = None,
3406+
_headers: Optional[Dict[StrictStr, Any]] = None,
3407+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
3408+
) -> ApiResponse[NetworkListResponse]:
3409+
"""List all networks in a routing table.
3410+
3411+
Get a list of all networks in a routing table.
3412+
3413+
:param organization_id: The identifier (ID) of a STACKIT Organization. (required)
3414+
:type organization_id: str
3415+
:param area_id: The identifier (ID) of a STACKIT Network Area. (required)
3416+
:type area_id: str
3417+
:param region: The STACKIT Region of the resources. (required)
3418+
:type region: str
3419+
:param routing_table_id: The identifier (ID) of a STACKIT Routing Table. (required)
3420+
:type routing_table_id: str
3421+
:param _request_timeout: timeout setting for this request. If one
3422+
number provided, it will be total request
3423+
timeout. It can also be a pair (tuple) of
3424+
(connection, read) timeouts.
3425+
:type _request_timeout: int, tuple(int, int), optional
3426+
:param _request_auth: set to override the auth_settings for an a single
3427+
request; this effectively ignores the
3428+
authentication in the spec for a single request.
3429+
:type _request_auth: dict, optional
3430+
:param _content_type: force content-type for the request.
3431+
:type _content_type: str, Optional
3432+
:param _headers: set to override the headers for a single
3433+
request; this effectively ignores the headers
3434+
in the spec for a single request.
3435+
:type _headers: dict, optional
3436+
:param _host_index: set to override the host_index for a single
3437+
request; this effectively ignores the host_index
3438+
in the spec for a single request.
3439+
:type _host_index: int, optional
3440+
:return: Returns the result object.
3441+
""" # noqa: E501
3442+
3443+
_param = self._list_networks_of_routing_table_serialize(
3444+
organization_id=organization_id,
3445+
area_id=area_id,
3446+
region=region,
3447+
routing_table_id=routing_table_id,
3448+
_request_auth=_request_auth,
3449+
_content_type=_content_type,
3450+
_headers=_headers,
3451+
_host_index=_host_index,
3452+
)
3453+
3454+
_response_types_map: Dict[str, Optional[str]] = {
3455+
"200": "NetworkListResponse",
3456+
"400": "Error",
3457+
"401": "Error",
3458+
"403": "Error",
3459+
"404": "Error",
3460+
"500": "Error",
3461+
}
3462+
response_data = self.api_client.call_api(*_param, _request_timeout=_request_timeout)
3463+
response_data.read()
3464+
return self.api_client.response_deserialize(
3465+
response_data=response_data,
3466+
response_types_map=_response_types_map,
3467+
)
3468+
3469+
@validate_call
3470+
def list_networks_of_routing_table_without_preload_content(
3471+
self,
3472+
organization_id: Annotated[
3473+
str,
3474+
Field(
3475+
min_length=36, strict=True, max_length=36, description="The identifier (ID) of a STACKIT Organization."
3476+
),
3477+
],
3478+
area_id: Annotated[
3479+
str,
3480+
Field(
3481+
min_length=36, strict=True, max_length=36, description="The identifier (ID) of a STACKIT Network Area."
3482+
),
3483+
],
3484+
region: Annotated[StrictStr, Field(description="The STACKIT Region of the resources.")],
3485+
routing_table_id: Annotated[
3486+
str,
3487+
Field(
3488+
min_length=36, strict=True, max_length=36, description="The identifier (ID) of a STACKIT Routing Table."
3489+
),
3490+
],
3491+
_request_timeout: Union[
3492+
None,
3493+
Annotated[StrictFloat, Field(gt=0)],
3494+
Tuple[Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]],
3495+
] = None,
3496+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
3497+
_content_type: Optional[StrictStr] = None,
3498+
_headers: Optional[Dict[StrictStr, Any]] = None,
3499+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
3500+
) -> RESTResponseType:
3501+
"""List all networks in a routing table.
3502+
3503+
Get a list of all networks in a routing table.
3504+
3505+
:param organization_id: The identifier (ID) of a STACKIT Organization. (required)
3506+
:type organization_id: str
3507+
:param area_id: The identifier (ID) of a STACKIT Network Area. (required)
3508+
:type area_id: str
3509+
:param region: The STACKIT Region of the resources. (required)
3510+
:type region: str
3511+
:param routing_table_id: The identifier (ID) of a STACKIT Routing Table. (required)
3512+
:type routing_table_id: str
3513+
:param _request_timeout: timeout setting for this request. If one
3514+
number provided, it will be total request
3515+
timeout. It can also be a pair (tuple) of
3516+
(connection, read) timeouts.
3517+
:type _request_timeout: int, tuple(int, int), optional
3518+
:param _request_auth: set to override the auth_settings for an a single
3519+
request; this effectively ignores the
3520+
authentication in the spec for a single request.
3521+
:type _request_auth: dict, optional
3522+
:param _content_type: force content-type for the request.
3523+
:type _content_type: str, Optional
3524+
:param _headers: set to override the headers for a single
3525+
request; this effectively ignores the headers
3526+
in the spec for a single request.
3527+
:type _headers: dict, optional
3528+
:param _host_index: set to override the host_index for a single
3529+
request; this effectively ignores the host_index
3530+
in the spec for a single request.
3531+
:type _host_index: int, optional
3532+
:return: Returns the result object.
3533+
""" # noqa: E501
3534+
3535+
_param = self._list_networks_of_routing_table_serialize(
3536+
organization_id=organization_id,
3537+
area_id=area_id,
3538+
region=region,
3539+
routing_table_id=routing_table_id,
3540+
_request_auth=_request_auth,
3541+
_content_type=_content_type,
3542+
_headers=_headers,
3543+
_host_index=_host_index,
3544+
)
3545+
3546+
_response_types_map: Dict[str, Optional[str]] = {
3547+
"200": "NetworkListResponse",
3548+
"400": "Error",
3549+
"401": "Error",
3550+
"403": "Error",
3551+
"404": "Error",
3552+
"500": "Error",
3553+
}
3554+
response_data = self.api_client.call_api(*_param, _request_timeout=_request_timeout)
3555+
return response_data.response
3556+
3557+
def _list_networks_of_routing_table_serialize(
3558+
self,
3559+
organization_id,
3560+
area_id,
3561+
region,
3562+
routing_table_id,
3563+
_request_auth,
3564+
_content_type,
3565+
_headers,
3566+
_host_index,
3567+
) -> RequestSerialized:
3568+
3569+
_host = None
3570+
3571+
_collection_formats: Dict[str, str] = {}
3572+
3573+
_path_params: Dict[str, str] = {}
3574+
_query_params: List[Tuple[str, str]] = []
3575+
_header_params: Dict[str, Optional[str]] = _headers or {}
3576+
_form_params: List[Tuple[str, str]] = []
3577+
_files: Dict[str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]] = {}
3578+
_body_params: Optional[bytes] = None
3579+
3580+
# process the path parameters
3581+
if organization_id is not None:
3582+
_path_params["organizationId"] = organization_id
3583+
if area_id is not None:
3584+
_path_params["areaId"] = area_id
3585+
if region is not None:
3586+
_path_params["region"] = region
3587+
if routing_table_id is not None:
3588+
_path_params["routingTableId"] = routing_table_id
3589+
# process the query parameters
3590+
# process the header parameters
3591+
# process the form parameters
3592+
# process the body parameter
3593+
3594+
# set the HTTP header `Accept`
3595+
if "Accept" not in _header_params:
3596+
_header_params["Accept"] = self.api_client.select_header_accept(["application/json"])
3597+
3598+
# authentication setting
3599+
_auth_settings: List[str] = []
3600+
3601+
return self.api_client.param_serialize(
3602+
method="GET",
3603+
resource_path="/v2alpha1/organizations/{organizationId}/network-areas/{areaId}/regions/{region}/routing-tables/{routingTableId}/networks",
3604+
path_params=_path_params,
3605+
query_params=_query_params,
3606+
header_params=_header_params,
3607+
body=_body_params,
3608+
post_params=_form_params,
3609+
files=_files,
3610+
auth_settings=_auth_settings,
3611+
collection_formats=_collection_formats,
3612+
_host=_host,
3613+
_request_auth=_request_auth,
3614+
)
3615+
32853616
@validate_call
32863617
def list_routes_of_routing_table(
32873618
self,

services/iaasalpha/src/stackit/iaasalpha/api_client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# coding: utf-8
22

33
"""
4-
IaaS-API
4+
STACKIT IaaS API
55
66
This API allows you to create and modify IaaS resources.
77

services/iaasalpha/src/stackit/iaasalpha/configuration.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# coding: utf-8
22

33
"""
4-
IaaS-API
4+
STACKIT IaaS API
55
66
This API allows you to create and modify IaaS resources.
77

services/iaasalpha/src/stackit/iaasalpha/exceptions.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# coding: utf-8
22

33
"""
4-
IaaS-API
4+
STACKIT IaaS API
55
66
This API allows you to create and modify IaaS resources.
77

services/iaasalpha/src/stackit/iaasalpha/models/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
# flake8: noqa
44
"""
5-
IaaS-API
5+
STACKIT IaaS API
66
77
This API allows you to create and modify IaaS resources.
88

0 commit comments

Comments
 (0)