-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Generate Client Library code - Automated
- Loading branch information
1 parent
7c89855
commit ef59437
Showing
7 changed files
with
438 additions
and
8 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
110 changes: 110 additions & 0 deletions
110
...grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/api/server_manager_api.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,110 @@ | ||
# Copyright (C) 2023 - 2025 ANSYS, Inc. and/or its affiliates. | ||
# SPDX-License-Identifier: MIT | ||
# | ||
# | ||
# Permission is hereby granted, free of charge, to any person obtaining a copy | ||
# of this software and associated documentation files (the "Software"), to deal | ||
# in the Software without restriction, including without limitation the rights | ||
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | ||
# copies of the Software, and to permit persons to whom the Software is | ||
# furnished to do so, subject to the following conditions: | ||
# | ||
# The above copyright notice and this permission notice shall be included in all | ||
# copies or substantial portions of the Software. | ||
# | ||
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | ||
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | ||
# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER | ||
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, | ||
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE | ||
# SOFTWARE. | ||
|
||
""" | ||
MI Server API | ||
No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) | ||
OpenAPI spec version: v1 | ||
Generated by: https://github.com/swagger-api/swagger-codegen.git | ||
""" | ||
|
||
import re # noqa: F401 | ||
from typing import TYPE_CHECKING, Any, BinaryIO, Optional, Union # noqa: F401 | ||
|
||
from . import ApiBase | ||
|
||
if TYPE_CHECKING: | ||
import pathlib | ||
|
||
from ..models import * | ||
|
||
|
||
class ServerManagerApi(ApiBase): | ||
"""NOTE: This class is auto generated by the swagger code generator program. | ||
Do not edit the class manually. | ||
Ref: https://github.com/swagger-api/swagger-codegen | ||
""" | ||
|
||
def get_smtp_properties(self) -> "GsaSmtpProperties": | ||
"""get_smtp_properties | ||
This method makes a synchronous HTTP request. | ||
Returns | ||
------- | ||
GsaSmtpProperties | ||
""" | ||
data = self._get_smtp_properties_with_http_info(_return_http_data_only=True) | ||
return data # type: ignore[no-any-return] | ||
|
||
def _get_smtp_properties_with_http_info(self, **kwargs: Any) -> Any: | ||
all_params = ["_return_http_data_only", "_preload_content", "_request_timeout"] | ||
|
||
params = locals() | ||
for key, val in params["kwargs"].items(): | ||
if key not in all_params: | ||
raise TypeError( | ||
f"Got an unexpected keyword argument '{key}' to method get_smtp_properties" | ||
) | ||
params[key] = val | ||
del params["kwargs"] | ||
|
||
collection_formats: dict[str, Any] = {} | ||
|
||
path_params: dict[str, Any] = {} | ||
|
||
query_params: list[Any] = [] | ||
|
||
header_params: dict[str, Any] = {} | ||
|
||
form_params: list[Any] = [] | ||
local_var_files: dict[str, Any] = {} | ||
|
||
body_params = None | ||
# HTTP header 'Accept' | ||
header_params["Accept"] = self.api_client.select_header_accept( | ||
["text/plain", "application/json", "text/json"] | ||
) | ||
|
||
response_type_map: dict[int, Optional[str]] = { | ||
200: "GsaSmtpProperties", | ||
} | ||
|
||
return self.api_client.call_api( | ||
"/v1alpha/serverManager/email", | ||
"GET", | ||
path_params, | ||
query_params, | ||
header_params, | ||
body=body_params, | ||
post_params=form_params, | ||
files=local_var_files, | ||
_return_http_data_only=params.get("_return_http_data_only"), | ||
_preload_content=params.get("_preload_content", True), | ||
_request_timeout=params.get("_request_timeout"), | ||
collection_formats=collection_formats, | ||
response_type_map=response_type_map, | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.