Skip to content
Merged
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
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
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.1.0.dev897"
version = "5.2.0.dev900"
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 @@ -20,4 +20,4 @@
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
# SOFTWARE.

__version__ = "5.1.0.dev897"
__version__ = "5.2.0.dev900"

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
@@ -0,0 +1,140 @@
# 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.

# flake8: noqa

# import API ABC
from ansys.openapi.common import ApiBase

# import apis into api package
from .activity_log_api import ActivityLogApi
from .aggregation_api import AggregationApi
from .blob_infos_api import BlobInfosApi
from .blobs_api import BlobsApi
from .bulk_api import BulkApi
from .data_api import DataApi
from .data_export_api import DataExportApi
from .data_updater_api import DataUpdaterApi
from .database_api import DatabaseApi
from .graph_api import GraphApi
from .help_location_api import HelpLocationApi
from .identities_api import IdentitiesApi
from .integration_api import IntegrationApi
from .job_queue_api import JobQueueApi
from .license_api import LicenseApi
from .list_audit_log_api import ListAuditLogApi
from .list_item_api import ListItemApi
from .list_management_api import ListManagementApi
from .list_permissions_api import ListPermissionsApi
from .metrics_api import MetricsApi
from .permission_based_access_control_api import PermissionBasedAccessControlApi
from .record_links_api import RecordLinksApi
from .records___record_histories_api import RecordsRecordHistoriesApi
from .records___record_versions_api import RecordsRecordVersionsApi
from .schema___attributes_api import SchemaAttributesApi
from .schema___configurations_api import SchemaConfigurationsApi
from .schema___constants_api import SchemaConstantsApi
from .schema___data_rules_api import SchemaDataRulesApi
from .schema___databases_api import SchemaDatabasesApi
from .schema___discrete_types___discrete_values_api import SchemaDiscreteTypesDiscreteValuesApi
from .schema___discrete_types_api import SchemaDiscreteTypesApi
from .schema___display_names_api import SchemaDisplayNamesApi
from .schema___exporters_api import SchemaExportersApi
from .schema___expressions_api import SchemaExpressionsApi
from .schema___global_standard_names_api import SchemaGlobalStandardNamesApi
from .schema___help_files_api import SchemaHelpFilesApi
from .schema___home_pages_api import SchemaHomePagesApi
from .schema___layout_sections_api import SchemaLayoutSectionsApi
from .schema___layouts_api import SchemaLayoutsApi
from .schema___parameters_api import SchemaParametersApi
from .schema___profile_tables_api import SchemaProfileTablesApi
from .schema___profiles_api import SchemaProfilesApi
from .schema___record_link_groups_api import SchemaRecordLinkGroupsApi
from .schema___replacement_strings_api import SchemaReplacementStringsApi
from .schema___search_masks_api import SchemaSearchMasksApi
from .schema___search_templates_api import SchemaSearchTemplatesApi
from .schema___security_groups_api import SchemaSecurityGroupsApi
from .schema___standard_names_api import SchemaStandardNamesApi
from .schema___subsets_api import SchemaSubsetsApi
from .schema___tables_api import SchemaTablesApi
from .schema___units_api import SchemaUnitsApi
from .schema_api import SchemaApi
from .search_api import SearchApi
from .status_api import StatusApi

__all__ = [
"ApiBase",
"ActivityLogApi",
"AggregationApi",
"BlobInfosApi",
"BlobsApi",
"BulkApi",
"DataApi",
"DataExportApi",
"DataUpdaterApi",
"DatabaseApi",
"GraphApi",
"HelpLocationApi",
"IdentitiesApi",
"IntegrationApi",
"JobQueueApi",
"LicenseApi",
"ListAuditLogApi",
"ListItemApi",
"ListManagementApi",
"ListPermissionsApi",
"MetricsApi",
"PermissionBasedAccessControlApi",
"RecordLinksApi",
"RecordsRecordHistoriesApi",
"RecordsRecordVersionsApi",
"SchemaApi",
"SchemaAttributesApi",
"SchemaConfigurationsApi",
"SchemaConstantsApi",
"SchemaDataRulesApi",
"SchemaDatabasesApi",
"SchemaDiscreteTypesDiscreteValuesApi",
"SchemaDiscreteTypesApi",
"SchemaDisplayNamesApi",
"SchemaExportersApi",
"SchemaExpressionsApi",
"SchemaGlobalStandardNamesApi",
"SchemaHelpFilesApi",
"SchemaHomePagesApi",
"SchemaLayoutSectionsApi",
"SchemaLayoutsApi",
"SchemaParametersApi",
"SchemaProfileTablesApi",
"SchemaProfilesApi",
"SchemaRecordLinkGroupsApi",
"SchemaReplacementStringsApi",
"SchemaSearchMasksApi",
"SchemaSearchTemplatesApi",
"SchemaSecurityGroupsApi",
"SchemaStandardNamesApi",
"SchemaSubsetsApi",
"SchemaTablesApi",
"SchemaUnitsApi",
"SearchApi",
"StatusApi",
]
Original file line number Diff line number Diff line change
@@ -0,0 +1,149 @@
# 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 # noqa: F401

from . import ApiBase

if TYPE_CHECKING:
import pathlib

from ..models import *


class ActivityLogApi(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_entries(
self,
*,
body: "Optional[GsaActivityLogEntriesFilter]" = None,
page_size: "Optional[int]" = 1000,
page: "Optional[int]" = 1,
) -> "GsaActivityLogEntriesInfo | None":
"""Get filtered activity log entries, ordered from newest to oldest.

This method makes a synchronous HTTP request.

Parameters
----------
body: GsaActivityLogEntriesFilter
Filter object used to narrow down the entries to return.
page_size: int
Page size. Defaults to 1 000. The limit is 10 000.
page: int
Page number. Defaults to 1.

Returns
-------
GsaActivityLogEntriesInfo | None
"""
data = self._get_entries_with_http_info(body, page_size, page, _return_http_data_only=True)
return data # type: ignore[no-any-return]

def _get_entries_with_http_info(
self,
body: "Optional[GsaActivityLogEntriesFilter]" = None,
page_size: "Optional[int]" = 1000,
page: "Optional[int]" = 1,
**kwargs: Any,
) -> Any:
all_params = [
"body",
"page_size",
"page",
"_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_entries")
params[key] = val
del params["kwargs"]

collection_formats: dict[str, Any] = {}

path_params: dict[str, Any] = {}

query_params: list[Any] = []
if "page_size" in params and page_size is not None:
query_params.append(("pageSize", params["page_size"]))
if "page" in params and page is not None:
query_params.append(("page", params["page"]))

header_params: dict[str, Any] = {}

form_params: list[Any] = []
local_var_files: dict[str, Any] = {}

body_params = None
if "body" in params and body is not None:
body_params = params["body"]
# HTTP header 'Accept'
header_params["Accept"] = self.api_client.select_header_accept(
["text/plain", "application/json", "text/json"]
)

# HTTP header 'Content-Type'
header_params["Content-Type"] = self.api_client.select_header_content_type(
["application/json-patch+json", "application/json", "text/json", "application/*+json"]
)

response_type_map: dict[int, Optional[str]] = {
200: "GsaActivityLogEntriesInfo",
400: None,
403: None,
}

return self.api_client.call_api(
"/v1alpha/activity-log/entries",
"POST",
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,
)
Loading