Skip to content

Commit f5686c2

Browse files
stackit-pipelineFyusel
authored andcommitted
Generate sqlserverflex
1 parent 90bc2b5 commit f5686c2

File tree

1 file changed

+0
-232
lines changed

1 file changed

+0
-232
lines changed

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

Lines changed: 0 additions & 232 deletions
Original file line numberDiff line numberDiff line change
@@ -5980,238 +5980,6 @@ def _reset_user_serialize(
59805980
_request_auth=_request_auth,
59815981
)
59825982

5983-
@validate_call
5984-
def terminate_project(
5985-
self,
5986-
project_id: Annotated[StrictStr, Field(description="Project ID")],
5987-
_request_timeout: Union[
5988-
None,
5989-
Annotated[StrictFloat, Field(gt=0)],
5990-
Tuple[Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]],
5991-
] = None,
5992-
_request_auth: Optional[Dict[StrictStr, Any]] = None,
5993-
_content_type: Optional[StrictStr] = None,
5994-
_headers: Optional[Dict[StrictStr, Any]] = None,
5995-
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
5996-
) -> None:
5997-
"""Terminate the Project
5998-
5999-
Termination is the deletion of a whole project which causes the deletion of all instances for this project. Only System with permission system.databases-project.remove is able to call this resource
6000-
6001-
:param project_id: Project ID (required)
6002-
:type project_id: str
6003-
:param _request_timeout: timeout setting for this request. If one
6004-
number provided, it will be total request
6005-
timeout. It can also be a pair (tuple) of
6006-
(connection, read) timeouts.
6007-
:type _request_timeout: int, tuple(int, int), optional
6008-
:param _request_auth: set to override the auth_settings for an a single
6009-
request; this effectively ignores the
6010-
authentication in the spec for a single request.
6011-
:type _request_auth: dict, optional
6012-
:param _content_type: force content-type for the request.
6013-
:type _content_type: str, Optional
6014-
:param _headers: set to override the headers for a single
6015-
request; this effectively ignores the headers
6016-
in the spec for a single request.
6017-
:type _headers: dict, optional
6018-
:param _host_index: set to override the host_index for a single
6019-
request; this effectively ignores the host_index
6020-
in the spec for a single request.
6021-
:type _host_index: int, optional
6022-
:return: Returns the result object.
6023-
""" # noqa: E501 docstring might be too long
6024-
6025-
_param = self._terminate_project_serialize(
6026-
project_id=project_id,
6027-
_request_auth=_request_auth,
6028-
_content_type=_content_type,
6029-
_headers=_headers,
6030-
_host_index=_host_index,
6031-
)
6032-
6033-
_response_types_map: Dict[str, Optional[str]] = {
6034-
"202": None,
6035-
"405": None,
6036-
"500": "InstanceError",
6037-
}
6038-
response_data = self.api_client.call_api(*_param, _request_timeout=_request_timeout)
6039-
response_data.read()
6040-
return self.api_client.response_deserialize(
6041-
response_data=response_data,
6042-
response_types_map=_response_types_map,
6043-
).data
6044-
6045-
@validate_call
6046-
def terminate_project_with_http_info(
6047-
self,
6048-
project_id: Annotated[StrictStr, Field(description="Project ID")],
6049-
_request_timeout: Union[
6050-
None,
6051-
Annotated[StrictFloat, Field(gt=0)],
6052-
Tuple[Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]],
6053-
] = None,
6054-
_request_auth: Optional[Dict[StrictStr, Any]] = None,
6055-
_content_type: Optional[StrictStr] = None,
6056-
_headers: Optional[Dict[StrictStr, Any]] = None,
6057-
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
6058-
) -> ApiResponse[None]:
6059-
"""Terminate the Project
6060-
6061-
Termination is the deletion of a whole project which causes the deletion of all instances for this project. Only System with permission system.databases-project.remove is able to call this resource
6062-
6063-
:param project_id: Project ID (required)
6064-
:type project_id: str
6065-
:param _request_timeout: timeout setting for this request. If one
6066-
number provided, it will be total request
6067-
timeout. It can also be a pair (tuple) of
6068-
(connection, read) timeouts.
6069-
:type _request_timeout: int, tuple(int, int), optional
6070-
:param _request_auth: set to override the auth_settings for an a single
6071-
request; this effectively ignores the
6072-
authentication in the spec for a single request.
6073-
:type _request_auth: dict, optional
6074-
:param _content_type: force content-type for the request.
6075-
:type _content_type: str, Optional
6076-
:param _headers: set to override the headers for a single
6077-
request; this effectively ignores the headers
6078-
in the spec for a single request.
6079-
:type _headers: dict, optional
6080-
:param _host_index: set to override the host_index for a single
6081-
request; this effectively ignores the host_index
6082-
in the spec for a single request.
6083-
:type _host_index: int, optional
6084-
:return: Returns the result object.
6085-
""" # noqa: E501 docstring might be too long
6086-
6087-
_param = self._terminate_project_serialize(
6088-
project_id=project_id,
6089-
_request_auth=_request_auth,
6090-
_content_type=_content_type,
6091-
_headers=_headers,
6092-
_host_index=_host_index,
6093-
)
6094-
6095-
_response_types_map: Dict[str, Optional[str]] = {
6096-
"202": None,
6097-
"405": None,
6098-
"500": "InstanceError",
6099-
}
6100-
response_data = self.api_client.call_api(*_param, _request_timeout=_request_timeout)
6101-
response_data.read()
6102-
return self.api_client.response_deserialize(
6103-
response_data=response_data,
6104-
response_types_map=_response_types_map,
6105-
)
6106-
6107-
@validate_call
6108-
def terminate_project_without_preload_content(
6109-
self,
6110-
project_id: Annotated[StrictStr, Field(description="Project ID")],
6111-
_request_timeout: Union[
6112-
None,
6113-
Annotated[StrictFloat, Field(gt=0)],
6114-
Tuple[Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]],
6115-
] = None,
6116-
_request_auth: Optional[Dict[StrictStr, Any]] = None,
6117-
_content_type: Optional[StrictStr] = None,
6118-
_headers: Optional[Dict[StrictStr, Any]] = None,
6119-
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
6120-
) -> RESTResponseType:
6121-
"""Terminate the Project
6122-
6123-
Termination is the deletion of a whole project which causes the deletion of all instances for this project. Only System with permission system.databases-project.remove is able to call this resource
6124-
6125-
:param project_id: Project ID (required)
6126-
:type project_id: str
6127-
:param _request_timeout: timeout setting for this request. If one
6128-
number provided, it will be total request
6129-
timeout. It can also be a pair (tuple) of
6130-
(connection, read) timeouts.
6131-
:type _request_timeout: int, tuple(int, int), optional
6132-
:param _request_auth: set to override the auth_settings for an a single
6133-
request; this effectively ignores the
6134-
authentication in the spec for a single request.
6135-
:type _request_auth: dict, optional
6136-
:param _content_type: force content-type for the request.
6137-
:type _content_type: str, Optional
6138-
:param _headers: set to override the headers for a single
6139-
request; this effectively ignores the headers
6140-
in the spec for a single request.
6141-
:type _headers: dict, optional
6142-
:param _host_index: set to override the host_index for a single
6143-
request; this effectively ignores the host_index
6144-
in the spec for a single request.
6145-
:type _host_index: int, optional
6146-
:return: Returns the result object.
6147-
""" # noqa: E501 docstring might be too long
6148-
6149-
_param = self._terminate_project_serialize(
6150-
project_id=project_id,
6151-
_request_auth=_request_auth,
6152-
_content_type=_content_type,
6153-
_headers=_headers,
6154-
_host_index=_host_index,
6155-
)
6156-
6157-
_response_types_map: Dict[str, Optional[str]] = {
6158-
"202": None,
6159-
"405": None,
6160-
"500": "InstanceError",
6161-
}
6162-
response_data = self.api_client.call_api(*_param, _request_timeout=_request_timeout)
6163-
return response_data.response
6164-
6165-
def _terminate_project_serialize(
6166-
self,
6167-
project_id,
6168-
_request_auth,
6169-
_content_type,
6170-
_headers,
6171-
_host_index,
6172-
) -> RequestSerialized:
6173-
6174-
_host = None
6175-
6176-
_collection_formats: Dict[str, str] = {}
6177-
6178-
_path_params: Dict[str, str] = {}
6179-
_query_params: List[Tuple[str, str]] = []
6180-
_header_params: Dict[str, Optional[str]] = _headers or {}
6181-
_form_params: List[Tuple[str, str]] = []
6182-
_files: Dict[str, Union[str, bytes]] = {}
6183-
_body_params: Optional[bytes] = None
6184-
6185-
# process the path parameters
6186-
if project_id is not None:
6187-
_path_params["projectId"] = project_id
6188-
# process the query parameters
6189-
# process the header parameters
6190-
# process the form parameters
6191-
# process the body parameter
6192-
6193-
# set the HTTP header `Accept`
6194-
if "Accept" not in _header_params:
6195-
_header_params["Accept"] = self.api_client.select_header_accept(["application/json"])
6196-
6197-
# authentication setting
6198-
_auth_settings: List[str] = []
6199-
6200-
return self.api_client.param_serialize(
6201-
method="DELETE",
6202-
resource_path="/v1/projects/{projectId}",
6203-
path_params=_path_params,
6204-
query_params=_query_params,
6205-
header_params=_header_params,
6206-
body=_body_params,
6207-
post_params=_form_params,
6208-
files=_files,
6209-
auth_settings=_auth_settings,
6210-
collection_formats=_collection_formats,
6211-
_host=_host,
6212-
_request_auth=_request_auth,
6213-
)
6214-
62155983
@validate_call
62165984
def trigger_database_backup(
62175985
self,

0 commit comments

Comments
 (0)