Skip to content

Generator: Update SDK /services/git #1885

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
68 changes: 47 additions & 21 deletions services/git/src/stackit/git/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,35 +12,61 @@
Generated by OpenAPI Generator (https://openapi-generator.tech)

Do not edit the class manually.
""" # noqa: E501 docstring might be too long
""" # noqa: E501


__version__ = "1.0.0"

# Define package exports
__all__ = [
"DefaultApi",
"ApiResponse",
"ApiClient",
"HostConfiguration",
"OpenApiException",
"ApiTypeError",
"ApiValueError",
"ApiKeyError",
"ApiAttributeError",
"ApiException",
"CreateInstancePayload",
"Flavor",
"GenericErrorResponse",
"Instance",
"InternalServerErrorResponse",
"ListFlavors",
"ListInstances",
"UnauthorizedResponse",
]

# import apis into sdk package
from stackit.git.api.default_api import DefaultApi
from stackit.git.api_client import ApiClient
from stackit.git.api.default_api import DefaultApi as DefaultApi
from stackit.git.api_client import ApiClient as ApiClient

# import ApiClient
from stackit.git.api_response import ApiResponse
from stackit.git.configuration import HostConfiguration
from stackit.git.exceptions import (
ApiAttributeError,
ApiException,
ApiKeyError,
ApiTypeError,
ApiValueError,
OpenApiException,
)
from stackit.git.api_response import ApiResponse as ApiResponse
from stackit.git.configuration import HostConfiguration as HostConfiguration
from stackit.git.exceptions import ApiAttributeError as ApiAttributeError
from stackit.git.exceptions import ApiException as ApiException
from stackit.git.exceptions import ApiKeyError as ApiKeyError
from stackit.git.exceptions import ApiTypeError as ApiTypeError
from stackit.git.exceptions import ApiValueError as ApiValueError
from stackit.git.exceptions import OpenApiException as OpenApiException

# import models into sdk package
from stackit.git.models.create_instance_payload import CreateInstancePayload
from stackit.git.models.flavor import Flavor
from stackit.git.models.generic_error_response import GenericErrorResponse
from stackit.git.models.instance import Instance
from stackit.git.models.create_instance_payload import (
CreateInstancePayload as CreateInstancePayload,
)
from stackit.git.models.flavor import Flavor as Flavor
from stackit.git.models.generic_error_response import (
GenericErrorResponse as GenericErrorResponse,
)
from stackit.git.models.instance import Instance as Instance
from stackit.git.models.internal_server_error_response import (
InternalServerErrorResponse,
InternalServerErrorResponse as InternalServerErrorResponse,
)
from stackit.git.models.list_flavors import ListFlavors as ListFlavors
from stackit.git.models.list_instances import ListInstances as ListInstances
from stackit.git.models.unauthorized_response import (
UnauthorizedResponse as UnauthorizedResponse,
)
from stackit.git.models.list_flavors import ListFlavors
from stackit.git.models.list_instances import ListInstances
from stackit.git.models.unauthorized_response import UnauthorizedResponse
87 changes: 33 additions & 54 deletions services/git/src/stackit/git/api/default_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
Generated by OpenAPI Generator (https://openapi-generator.tech)

Do not edit the class manually.
""" # noqa: E501 docstring might be too long
""" # noqa: E501

from typing import Any, Dict, List, Optional, Tuple, Union

Expand Down Expand Up @@ -89,7 +89,7 @@ def create_instance(
in the spec for a single request.
:type _host_index: int, optional
:return: Returns the result object.
""" # noqa: E501 docstring might be too long
""" # noqa: E501

_param = self._create_instance_serialize(
project_id=project_id,
Expand Down Expand Up @@ -157,7 +157,7 @@ def create_instance_with_http_info(
in the spec for a single request.
:type _host_index: int, optional
:return: Returns the result object.
""" # noqa: E501 docstring might be too long
""" # noqa: E501

_param = self._create_instance_serialize(
project_id=project_id,
Expand Down Expand Up @@ -225,7 +225,7 @@ def create_instance_without_preload_content(
in the spec for a single request.
:type _host_index: int, optional
:return: Returns the result object.
""" # noqa: E501 docstring might be too long
""" # noqa: E501

_param = self._create_instance_serialize(
project_id=project_id,
Expand Down Expand Up @@ -264,7 +264,7 @@ def _create_instance_serialize(
_query_params: List[Tuple[str, str]] = []
_header_params: Dict[str, Optional[str]] = _headers or {}
_form_params: List[Tuple[str, str]] = []
_files: Dict[str, Union[str, bytes]] = {}
_files: Dict[str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]] = {}
_body_params: Optional[bytes] = None

# process the path parameters
Expand Down Expand Up @@ -352,7 +352,7 @@ def delete_instance(
in the spec for a single request.
:type _host_index: int, optional
:return: Returns the result object.
""" # noqa: E501 docstring might be too long
""" # noqa: E501

_param = self._delete_instance_serialize(
project_id=project_id,
Expand Down Expand Up @@ -423,7 +423,7 @@ def delete_instance_with_http_info(
in the spec for a single request.
:type _host_index: int, optional
:return: Returns the result object.
""" # noqa: E501 docstring might be too long
""" # noqa: E501

_param = self._delete_instance_serialize(
project_id=project_id,
Expand Down Expand Up @@ -494,7 +494,7 @@ def delete_instance_without_preload_content(
in the spec for a single request.
:type _host_index: int, optional
:return: Returns the result object.
""" # noqa: E501 docstring might be too long
""" # noqa: E501

_param = self._delete_instance_serialize(
project_id=project_id,
Expand Down Expand Up @@ -534,7 +534,7 @@ def _delete_instance_serialize(
_query_params: List[Tuple[str, str]] = []
_header_params: Dict[str, Optional[str]] = _headers or {}
_form_params: List[Tuple[str, str]] = []
_files: Dict[str, Union[str, bytes]] = {}
_files: Dict[str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]] = {}
_body_params: Optional[bytes] = None

# process the path parameters
Expand Down Expand Up @@ -614,7 +614,7 @@ def get_instance(
in the spec for a single request.
:type _host_index: int, optional
:return: Returns the result object.
""" # noqa: E501 docstring might be too long
""" # noqa: E501

_param = self._get_instance_serialize(
project_id=project_id,
Expand Down Expand Up @@ -684,7 +684,7 @@ def get_instance_with_http_info(
in the spec for a single request.
:type _host_index: int, optional
:return: Returns the result object.
""" # noqa: E501 docstring might be too long
""" # noqa: E501

_param = self._get_instance_serialize(
project_id=project_id,
Expand Down Expand Up @@ -754,7 +754,7 @@ def get_instance_without_preload_content(
in the spec for a single request.
:type _host_index: int, optional
:return: Returns the result object.
""" # noqa: E501 docstring might be too long
""" # noqa: E501

_param = self._get_instance_serialize(
project_id=project_id,
Expand Down Expand Up @@ -793,7 +793,7 @@ def _get_instance_serialize(
_query_params: List[Tuple[str, str]] = []
_header_params: Dict[str, Optional[str]] = _headers or {}
_form_params: List[Tuple[str, str]] = []
_files: Dict[str, Union[str, bytes]] = {}
_files: Dict[str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]] = {}
_body_params: Optional[bytes] = None

# process the path parameters
Expand Down Expand Up @@ -831,14 +831,7 @@ def _get_instance_serialize(
@validate_call
def list_flavors(
self,
project_id: Annotated[
str,
Field(
strict=True,
max_length=36,
description="The STACKIT portal project UUID the STACKIT Git instance is part of.",
),
],
project_id: Annotated[str, Field(min_length=36, strict=True, max_length=36, description="Project identifier.")],
_request_timeout: Union[
None,
Annotated[StrictFloat, Field(gt=0)],
Expand All @@ -853,7 +846,7 @@ def list_flavors(

Provides detailed information about possible Git Flavors.

:param project_id: The STACKIT portal project UUID the STACKIT Git instance is part of. (required)
:param project_id: Project identifier. (required)
:type project_id: str
:param _request_timeout: timeout setting for this request. If one
number provided, it will be total request
Expand All @@ -875,7 +868,7 @@ def list_flavors(
in the spec for a single request.
:type _host_index: int, optional
:return: Returns the result object.
""" # noqa: E501 docstring might be too long
""" # noqa: E501

_param = self._list_flavors_serialize(
project_id=project_id,
Expand All @@ -887,10 +880,10 @@ def list_flavors(

_response_types_map: Dict[str, Optional[str]] = {
"200": "ListFlavors",
"400": None,
"400": "GenericErrorResponse",
"401": "UnauthorizedResponse",
"404": None,
"500": "InternalServerErrorResponse",
"500": "GenericErrorResponse",
}
response_data = self.api_client.call_api(*_param, _request_timeout=_request_timeout)
response_data.read()
Expand All @@ -902,14 +895,7 @@ def list_flavors(
@validate_call
def list_flavors_with_http_info(
self,
project_id: Annotated[
str,
Field(
strict=True,
max_length=36,
description="The STACKIT portal project UUID the STACKIT Git instance is part of.",
),
],
project_id: Annotated[str, Field(min_length=36, strict=True, max_length=36, description="Project identifier.")],
_request_timeout: Union[
None,
Annotated[StrictFloat, Field(gt=0)],
Expand All @@ -924,7 +910,7 @@ def list_flavors_with_http_info(

Provides detailed information about possible Git Flavors.

:param project_id: The STACKIT portal project UUID the STACKIT Git instance is part of. (required)
:param project_id: Project identifier. (required)
:type project_id: str
:param _request_timeout: timeout setting for this request. If one
number provided, it will be total request
Expand All @@ -946,7 +932,7 @@ def list_flavors_with_http_info(
in the spec for a single request.
:type _host_index: int, optional
:return: Returns the result object.
""" # noqa: E501 docstring might be too long
""" # noqa: E501

_param = self._list_flavors_serialize(
project_id=project_id,
Expand All @@ -958,10 +944,10 @@ def list_flavors_with_http_info(

_response_types_map: Dict[str, Optional[str]] = {
"200": "ListFlavors",
"400": None,
"400": "GenericErrorResponse",
"401": "UnauthorizedResponse",
"404": None,
"500": "InternalServerErrorResponse",
"500": "GenericErrorResponse",
}
response_data = self.api_client.call_api(*_param, _request_timeout=_request_timeout)
response_data.read()
Expand All @@ -973,14 +959,7 @@ def list_flavors_with_http_info(
@validate_call
def list_flavors_without_preload_content(
self,
project_id: Annotated[
str,
Field(
strict=True,
max_length=36,
description="The STACKIT portal project UUID the STACKIT Git instance is part of.",
),
],
project_id: Annotated[str, Field(min_length=36, strict=True, max_length=36, description="Project identifier.")],
_request_timeout: Union[
None,
Annotated[StrictFloat, Field(gt=0)],
Expand All @@ -995,7 +974,7 @@ def list_flavors_without_preload_content(

Provides detailed information about possible Git Flavors.

:param project_id: The STACKIT portal project UUID the STACKIT Git instance is part of. (required)
:param project_id: Project identifier. (required)
:type project_id: str
:param _request_timeout: timeout setting for this request. If one
number provided, it will be total request
Expand All @@ -1017,7 +996,7 @@ def list_flavors_without_preload_content(
in the spec for a single request.
:type _host_index: int, optional
:return: Returns the result object.
""" # noqa: E501 docstring might be too long
""" # noqa: E501

_param = self._list_flavors_serialize(
project_id=project_id,
Expand All @@ -1029,10 +1008,10 @@ def list_flavors_without_preload_content(

_response_types_map: Dict[str, Optional[str]] = {
"200": "ListFlavors",
"400": None,
"400": "GenericErrorResponse",
"401": "UnauthorizedResponse",
"404": None,
"500": "InternalServerErrorResponse",
"500": "GenericErrorResponse",
}
response_data = self.api_client.call_api(*_param, _request_timeout=_request_timeout)
return response_data.response
Expand All @@ -1054,7 +1033,7 @@ def _list_flavors_serialize(
_query_params: List[Tuple[str, str]] = []
_header_params: Dict[str, Optional[str]] = _headers or {}
_form_params: List[Tuple[str, str]] = []
_files: Dict[str, Union[str, bytes]] = {}
_files: Dict[str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]] = {}
_body_params: Optional[bytes] = None

# process the path parameters
Expand Down Expand Up @@ -1127,7 +1106,7 @@ def list_instances(
in the spec for a single request.
:type _host_index: int, optional
:return: Returns the result object.
""" # noqa: E501 docstring might be too long
""" # noqa: E501

_param = self._list_instances_serialize(
project_id=project_id,
Expand Down Expand Up @@ -1190,7 +1169,7 @@ def list_instances_with_http_info(
in the spec for a single request.
:type _host_index: int, optional
:return: Returns the result object.
""" # noqa: E501 docstring might be too long
""" # noqa: E501

_param = self._list_instances_serialize(
project_id=project_id,
Expand Down Expand Up @@ -1253,7 +1232,7 @@ def list_instances_without_preload_content(
in the spec for a single request.
:type _host_index: int, optional
:return: Returns the result object.
""" # noqa: E501 docstring might be too long
""" # noqa: E501

_param = self._list_instances_serialize(
project_id=project_id,
Expand Down Expand Up @@ -1289,7 +1268,7 @@ def _list_instances_serialize(
_query_params: List[Tuple[str, str]] = []
_header_params: Dict[str, Optional[str]] = _headers or {}
_form_params: List[Tuple[str, str]] = []
_files: Dict[str, Union[str, bytes]] = {}
_files: Dict[str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]] = {}
_body_params: Optional[bytes] = None

# process the path parameters
Expand Down
Loading
Loading