Skip to content

Commit a69a545

Browse files
authored
Prepare for 2026 R2 development (#631)
Co-authored-by: Andy-Grigg <Andy-Grigg@users.noreply.github.com>
1 parent fcc05ff commit a69a545

File tree

1,209 files changed

+377220
-4
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

1,209 files changed

+377220
-4
lines changed

ansys-grantami-serverapi-openapi/pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ build-backend = "poetry.core.masonry.api"
55
[tool.poetry]
66
name = "ansys-grantami-serverapi-openapi"
77
description = "Autogenerated client library for the Granta MI Server API."
8-
version = "5.1.0.dev897"
8+
version = "5.2.0.dev900"
99
license = "MIT"
1010
authors = ["ANSYS, Inc. <pyansys.core@ansys.com>"]
1111
maintainers = ["ANSYS, Inc. <pyansys.core@ansys.com>"]

ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,4 +20,4 @@
2020
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
2121
# SOFTWARE.
2222

23-
__version__ = "5.1.0.dev897"
23+
__version__ = "5.2.0.dev900"

ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/v2026r2/__init__.py

Lines changed: 2734 additions & 0 deletions
Large diffs are not rendered by default.
Lines changed: 140 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,140 @@
1+
# Copyright (C) 2023 - 2025 ANSYS, Inc. and/or its affiliates.
2+
# SPDX-License-Identifier: MIT
3+
#
4+
#
5+
# Permission is hereby granted, free of charge, to any person obtaining a copy
6+
# of this software and associated documentation files (the "Software"), to deal
7+
# in the Software without restriction, including without limitation the rights
8+
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
# copies of the Software, and to permit persons to whom the Software is
10+
# furnished to do so, subject to the following conditions:
11+
#
12+
# The above copyright notice and this permission notice shall be included in all
13+
# copies or substantial portions of the Software.
14+
#
15+
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
# SOFTWARE.
22+
23+
# flake8: noqa
24+
25+
# import API ABC
26+
from ansys.openapi.common import ApiBase
27+
28+
# import apis into api package
29+
from .activity_log_api import ActivityLogApi
30+
from .aggregation_api import AggregationApi
31+
from .blob_infos_api import BlobInfosApi
32+
from .blobs_api import BlobsApi
33+
from .bulk_api import BulkApi
34+
from .data_api import DataApi
35+
from .data_export_api import DataExportApi
36+
from .data_updater_api import DataUpdaterApi
37+
from .database_api import DatabaseApi
38+
from .graph_api import GraphApi
39+
from .help_location_api import HelpLocationApi
40+
from .identities_api import IdentitiesApi
41+
from .integration_api import IntegrationApi
42+
from .job_queue_api import JobQueueApi
43+
from .license_api import LicenseApi
44+
from .list_audit_log_api import ListAuditLogApi
45+
from .list_item_api import ListItemApi
46+
from .list_management_api import ListManagementApi
47+
from .list_permissions_api import ListPermissionsApi
48+
from .metrics_api import MetricsApi
49+
from .permission_based_access_control_api import PermissionBasedAccessControlApi
50+
from .record_links_api import RecordLinksApi
51+
from .records___record_histories_api import RecordsRecordHistoriesApi
52+
from .records___record_versions_api import RecordsRecordVersionsApi
53+
from .schema___attributes_api import SchemaAttributesApi
54+
from .schema___configurations_api import SchemaConfigurationsApi
55+
from .schema___constants_api import SchemaConstantsApi
56+
from .schema___data_rules_api import SchemaDataRulesApi
57+
from .schema___databases_api import SchemaDatabasesApi
58+
from .schema___discrete_types___discrete_values_api import SchemaDiscreteTypesDiscreteValuesApi
59+
from .schema___discrete_types_api import SchemaDiscreteTypesApi
60+
from .schema___display_names_api import SchemaDisplayNamesApi
61+
from .schema___exporters_api import SchemaExportersApi
62+
from .schema___expressions_api import SchemaExpressionsApi
63+
from .schema___global_standard_names_api import SchemaGlobalStandardNamesApi
64+
from .schema___help_files_api import SchemaHelpFilesApi
65+
from .schema___home_pages_api import SchemaHomePagesApi
66+
from .schema___layout_sections_api import SchemaLayoutSectionsApi
67+
from .schema___layouts_api import SchemaLayoutsApi
68+
from .schema___parameters_api import SchemaParametersApi
69+
from .schema___profile_tables_api import SchemaProfileTablesApi
70+
from .schema___profiles_api import SchemaProfilesApi
71+
from .schema___record_link_groups_api import SchemaRecordLinkGroupsApi
72+
from .schema___replacement_strings_api import SchemaReplacementStringsApi
73+
from .schema___search_masks_api import SchemaSearchMasksApi
74+
from .schema___search_templates_api import SchemaSearchTemplatesApi
75+
from .schema___security_groups_api import SchemaSecurityGroupsApi
76+
from .schema___standard_names_api import SchemaStandardNamesApi
77+
from .schema___subsets_api import SchemaSubsetsApi
78+
from .schema___tables_api import SchemaTablesApi
79+
from .schema___units_api import SchemaUnitsApi
80+
from .schema_api import SchemaApi
81+
from .search_api import SearchApi
82+
from .status_api import StatusApi
83+
84+
__all__ = [
85+
"ApiBase",
86+
"ActivityLogApi",
87+
"AggregationApi",
88+
"BlobInfosApi",
89+
"BlobsApi",
90+
"BulkApi",
91+
"DataApi",
92+
"DataExportApi",
93+
"DataUpdaterApi",
94+
"DatabaseApi",
95+
"GraphApi",
96+
"HelpLocationApi",
97+
"IdentitiesApi",
98+
"IntegrationApi",
99+
"JobQueueApi",
100+
"LicenseApi",
101+
"ListAuditLogApi",
102+
"ListItemApi",
103+
"ListManagementApi",
104+
"ListPermissionsApi",
105+
"MetricsApi",
106+
"PermissionBasedAccessControlApi",
107+
"RecordLinksApi",
108+
"RecordsRecordHistoriesApi",
109+
"RecordsRecordVersionsApi",
110+
"SchemaApi",
111+
"SchemaAttributesApi",
112+
"SchemaConfigurationsApi",
113+
"SchemaConstantsApi",
114+
"SchemaDataRulesApi",
115+
"SchemaDatabasesApi",
116+
"SchemaDiscreteTypesDiscreteValuesApi",
117+
"SchemaDiscreteTypesApi",
118+
"SchemaDisplayNamesApi",
119+
"SchemaExportersApi",
120+
"SchemaExpressionsApi",
121+
"SchemaGlobalStandardNamesApi",
122+
"SchemaHelpFilesApi",
123+
"SchemaHomePagesApi",
124+
"SchemaLayoutSectionsApi",
125+
"SchemaLayoutsApi",
126+
"SchemaParametersApi",
127+
"SchemaProfileTablesApi",
128+
"SchemaProfilesApi",
129+
"SchemaRecordLinkGroupsApi",
130+
"SchemaReplacementStringsApi",
131+
"SchemaSearchMasksApi",
132+
"SchemaSearchTemplatesApi",
133+
"SchemaSecurityGroupsApi",
134+
"SchemaStandardNamesApi",
135+
"SchemaSubsetsApi",
136+
"SchemaTablesApi",
137+
"SchemaUnitsApi",
138+
"SearchApi",
139+
"StatusApi",
140+
]
Lines changed: 149 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,149 @@
1+
# Copyright (C) 2023 - 2025 ANSYS, Inc. and/or its affiliates.
2+
# SPDX-License-Identifier: MIT
3+
#
4+
#
5+
# Permission is hereby granted, free of charge, to any person obtaining a copy
6+
# of this software and associated documentation files (the "Software"), to deal
7+
# in the Software without restriction, including without limitation the rights
8+
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
# copies of the Software, and to permit persons to whom the Software is
10+
# furnished to do so, subject to the following conditions:
11+
#
12+
# The above copyright notice and this permission notice shall be included in all
13+
# copies or substantial portions of the Software.
14+
#
15+
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
# SOFTWARE.
22+
23+
"""
24+
MI Server API
25+
26+
No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
27+
28+
OpenAPI spec version: v1
29+
30+
Generated by: https://github.com/swagger-api/swagger-codegen.git
31+
"""
32+
33+
import re # noqa: F401
34+
from typing import TYPE_CHECKING, Any, BinaryIO, Optional # noqa: F401
35+
36+
from . import ApiBase
37+
38+
if TYPE_CHECKING:
39+
import pathlib
40+
41+
from ..models import *
42+
43+
44+
class ActivityLogApi(ApiBase):
45+
"""NOTE: This class is auto generated by the swagger code generator program.
46+
47+
Do not edit the class manually.
48+
Ref: https://github.com/swagger-api/swagger-codegen
49+
"""
50+
51+
def get_entries(
52+
self,
53+
*,
54+
body: "Optional[GsaActivityLogEntriesFilter]" = None,
55+
page_size: "Optional[int]" = 1000,
56+
page: "Optional[int]" = 1,
57+
) -> "GsaActivityLogEntriesInfo | None":
58+
"""Get filtered activity log entries, ordered from newest to oldest.
59+
60+
This method makes a synchronous HTTP request.
61+
62+
Parameters
63+
----------
64+
body: GsaActivityLogEntriesFilter
65+
Filter object used to narrow down the entries to return.
66+
page_size: int
67+
Page size. Defaults to 1 000. The limit is 10 000.
68+
page: int
69+
Page number. Defaults to 1.
70+
71+
Returns
72+
-------
73+
GsaActivityLogEntriesInfo | None
74+
"""
75+
data = self._get_entries_with_http_info(body, page_size, page, _return_http_data_only=True)
76+
return data # type: ignore[no-any-return]
77+
78+
def _get_entries_with_http_info(
79+
self,
80+
body: "Optional[GsaActivityLogEntriesFilter]" = None,
81+
page_size: "Optional[int]" = 1000,
82+
page: "Optional[int]" = 1,
83+
**kwargs: Any,
84+
) -> Any:
85+
all_params = [
86+
"body",
87+
"page_size",
88+
"page",
89+
"_return_http_data_only",
90+
"_preload_content",
91+
"_request_timeout",
92+
]
93+
94+
params = locals()
95+
for key, val in params["kwargs"].items():
96+
if key not in all_params:
97+
raise TypeError(f"Got an unexpected keyword argument '{key}' to method get_entries")
98+
params[key] = val
99+
del params["kwargs"]
100+
101+
collection_formats: dict[str, Any] = {}
102+
103+
path_params: dict[str, Any] = {}
104+
105+
query_params: list[Any] = []
106+
if "page_size" in params and page_size is not None:
107+
query_params.append(("pageSize", params["page_size"]))
108+
if "page" in params and page is not None:
109+
query_params.append(("page", params["page"]))
110+
111+
header_params: dict[str, Any] = {}
112+
113+
form_params: list[Any] = []
114+
local_var_files: dict[str, Any] = {}
115+
116+
body_params = None
117+
if "body" in params and body is not None:
118+
body_params = params["body"]
119+
# HTTP header 'Accept'
120+
header_params["Accept"] = self.api_client.select_header_accept(
121+
["text/plain", "application/json", "text/json"]
122+
)
123+
124+
# HTTP header 'Content-Type'
125+
header_params["Content-Type"] = self.api_client.select_header_content_type(
126+
["application/json-patch+json", "application/json", "text/json", "application/*+json"]
127+
)
128+
129+
response_type_map: dict[int, Optional[str]] = {
130+
200: "GsaActivityLogEntriesInfo",
131+
400: None,
132+
403: None,
133+
}
134+
135+
return self.api_client.call_api(
136+
"/v1alpha/activity-log/entries",
137+
"POST",
138+
path_params,
139+
query_params,
140+
header_params,
141+
body=body_params,
142+
post_params=form_params,
143+
files=local_var_files,
144+
_return_http_data_only=params.get("_return_http_data_only"),
145+
_preload_content=params.get("_preload_content", True),
146+
_request_timeout=params.get("_request_timeout"),
147+
collection_formats=collection_formats,
148+
response_type_map=response_type_map,
149+
)

0 commit comments

Comments
 (0)