Skip to content

Commit

Permalink
Generate Client Library code - Automated
Browse files Browse the repository at this point in the history
  • Loading branch information
pyansys-ci-bot authored and actions-user committed Feb 18, 2025
1 parent 7c89855 commit ef59437
Show file tree
Hide file tree
Showing 7 changed files with 438 additions and 8 deletions.
14 changes: 7 additions & 7 deletions ansys-grantami-serverapi-openapi/poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion ansys-grantami-serverapi-openapi/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ build-backend = "poetry.core.masonry.api"
[tool.poetry]
name = "ansys-grantami-serverapi-openapi"
description = "Autogenerated client library for the Granta MI Server API."
version = "5.0.0.dev429"
version = "5.0.0.dev431"
license = "MIT"
authors = ["ANSYS, Inc. <pyansys.core@ansys.com>"]
maintainers = ["ANSYS, Inc. <pyansys.core@ansys.com>"]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,7 @@
from .api.schema_api import SchemaApi
from .api.search_api import SearchApi
from .api.selection_searches_api import SelectionSearchesApi
from .api.server_manager_api import ServerManagerApi
from .api.status_api import StatusApi
from .models.attributes_attributeguidimportfile_body1 import AttributesAttributeguidimportfileBody1

Expand Down Expand Up @@ -887,6 +888,7 @@
from .models.gsa_slim_typed_attribute import GsaSlimTypedAttribute
from .models.gsa_slim_unit import GsaSlimUnit
from .models.gsa_slim_unit_system import GsaSlimUnitSystem
from .models.gsa_smtp_properties import GsaSmtpProperties
from .models.gsa_sort_criterion import GsaSortCriterion
from .models.gsa_sort_criterion_type import GsaSortCriterionType
from .models.gsa_sort_direction import GsaSortDirection
Expand Down Expand Up @@ -1105,6 +1107,7 @@
"SchemaUnitsApi",
"SearchApi",
"SelectionSearchesApi",
"ServerManagerApi",
"StatusApi",
"AttributesAttributeguidimportfileBody",
"AttributesAttributeguidimportfileBody1",
Expand Down Expand Up @@ -1804,6 +1807,7 @@
"GsaSlimTypedAttribute",
"GsaSlimUnit",
"GsaSlimUnitSystem",
"GsaSmtpProperties",
"GsaSortCriterion",
"GsaSortCriterionType",
"GsaSortDirection",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@
from .schema_api import SchemaApi
from .search_api import SearchApi
from .selection_searches_api import SelectionSearchesApi
from .server_manager_api import ServerManagerApi
from .status_api import StatusApi

__all__ = [
Expand Down Expand Up @@ -116,5 +117,6 @@
"SchemaUnitsApi",
"SearchApi",
"SelectionSearchesApi",
"ServerManagerApi",
"StatusApi",
]
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,
)
Original file line number Diff line number Diff line change
Expand Up @@ -805,6 +805,7 @@
from .gsa_slim_typed_attribute import GsaSlimTypedAttribute
from .gsa_slim_unit import GsaSlimUnit
from .gsa_slim_unit_system import GsaSlimUnitSystem
from .gsa_smtp_properties import GsaSmtpProperties
from .gsa_sort_criterion import GsaSortCriterion
from .gsa_sort_criterion_type import GsaSortCriterionType
from .gsa_sort_direction import GsaSortDirection
Expand Down Expand Up @@ -1677,6 +1678,7 @@
"GsaSlimTypedAttribute",
"GsaSlimUnit",
"GsaSlimUnitSystem",
"GsaSmtpProperties",
"GsaSortCriterion",
"GsaSortCriterionType",
"GsaSortDirection",
Expand Down
Loading

0 comments on commit ef59437

Please sign in to comment.