Skip to content

Commit 71720f5

Browse files
Update Swagger.json (16545029440) (#482)
Co-authored-by: Andy Grigg <[email protected]> Co-authored-by: Andy-Grigg <[email protected]>
1 parent c33cf92 commit 71720f5

File tree

8 files changed

+1107
-639
lines changed

8 files changed

+1107
-639
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.dev686"
8+
version = "5.1.0.dev692"
99
license = "MIT"
1010
authors = ["ANSYS, Inc. <[email protected]>"]
1111
maintainers = ["ANSYS, Inc. <[email protected]>"]

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.dev686"
23+
__version__ = "5.1.0.dev692"

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

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -886,6 +886,8 @@
886886
GsaNumericRestrictedInterpolationParameterErrorDetail,
887887
)
888888
from .models.gsa_object_identifier import GsaObjectIdentifier
889+
from .models.gsa_orphaned_search_index import GsaOrphanedSearchIndex
890+
from .models.gsa_orphaned_search_indexes_info import GsaOrphanedSearchIndexesInfo
889891
from .models.gsa_pagination_links import GsaPaginationLinks
890892
from .models.gsa_paging_options import GsaPagingOptions
891893
from .models.gsa_parameter import GsaParameter
@@ -2041,6 +2043,8 @@
20412043
"GsaNumericParameterValue",
20422044
"GsaNumericRestrictedInterpolationParameterErrorDetail",
20432045
"GsaObjectIdentifier",
2046+
"GsaOrphanedSearchIndex",
2047+
"GsaOrphanedSearchIndexesInfo",
20442048
"GsaPaginationLinks",
20452049
"GsaPagingOptions",
20462050
"GsaParameter",

ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/v2026r1/api/status_api.py

Lines changed: 62 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -181,6 +181,68 @@ def _get_database_status_with_http_info(self, database_key: "str", **kwargs: Any
181181
response_type_map=response_type_map,
182182
)
183183

184+
def get_orphaned_search_indexes(self) -> "GsaOrphanedSearchIndexesInfo | None":
185+
"""Returns information about orphaned search indexes
186+
187+
This method makes a synchronous HTTP request.
188+
189+
Returns
190+
-------
191+
GsaOrphanedSearchIndexesInfo | None
192+
"""
193+
data = self._get_orphaned_search_indexes_with_http_info(_return_http_data_only=True)
194+
return data # type: ignore[no-any-return]
195+
196+
def _get_orphaned_search_indexes_with_http_info(self, **kwargs: Any) -> Any:
197+
all_params = ["_return_http_data_only", "_preload_content", "_request_timeout"]
198+
199+
params = locals()
200+
for key, val in params["kwargs"].items():
201+
if key not in all_params:
202+
raise TypeError(
203+
f"Got an unexpected keyword argument '{key}' to method get_orphaned_search_indexes"
204+
)
205+
params[key] = val
206+
del params["kwargs"]
207+
208+
collection_formats: dict[str, Any] = {}
209+
210+
path_params: dict[str, Any] = {}
211+
212+
query_params: list[Any] = []
213+
214+
header_params: dict[str, Any] = {}
215+
216+
form_params: list[Any] = []
217+
local_var_files: dict[str, Any] = {}
218+
219+
body_params = None
220+
# HTTP header 'Accept'
221+
header_params["Accept"] = self.api_client.select_header_accept(
222+
["text/plain", "application/json", "text/json"]
223+
)
224+
225+
response_type_map: dict[int, Optional[str]] = {
226+
200: "GsaOrphanedSearchIndexesInfo",
227+
403: None,
228+
}
229+
230+
return self.api_client.call_api(
231+
"/v1alpha/status/orphanedSearchIndexes",
232+
"GET",
233+
path_params,
234+
query_params,
235+
header_params,
236+
body=body_params,
237+
post_params=form_params,
238+
files=local_var_files,
239+
_return_http_data_only=params.get("_return_http_data_only"),
240+
_preload_content=params.get("_preload_content", True),
241+
_request_timeout=params.get("_request_timeout"),
242+
collection_formats=collection_formats,
243+
response_type_map=response_type_map,
244+
)
245+
184246
def get_search_cluster_status(self) -> "GsaSearchClusterStatus":
185247
"""Returns disk status information for the search cluster
186248

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

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -783,6 +783,8 @@
783783
GsaNumericRestrictedInterpolationParameterErrorDetail,
784784
)
785785
from .gsa_object_identifier import GsaObjectIdentifier
786+
from .gsa_orphaned_search_index import GsaOrphanedSearchIndex
787+
from .gsa_orphaned_search_indexes_info import GsaOrphanedSearchIndexesInfo
786788
from .gsa_pagination_links import GsaPaginationLinks
787789
from .gsa_paging_options import GsaPagingOptions
788790
from .gsa_parameter import GsaParameter
@@ -1880,6 +1882,8 @@
18801882
"GsaNumericParameterValue",
18811883
"GsaNumericRestrictedInterpolationParameterErrorDetail",
18821884
"GsaObjectIdentifier",
1885+
"GsaOrphanedSearchIndex",
1886+
"GsaOrphanedSearchIndexesInfo",
18831887
"GsaPaginationLinks",
18841888
"GsaPagingOptions",
18851889
"GsaParameter",
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,147 @@
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 ModelBase, Unset, Unset_Type
37+
38+
if TYPE_CHECKING:
39+
from datetime import datetime
40+
import pathlib
41+
42+
from . import *
43+
44+
45+
class GsaOrphanedSearchIndex(ModelBase):
46+
"""NOTE: This class is auto generated by the swagger code generator program.
47+
48+
Do not edit the class manually.
49+
"""
50+
51+
"""
52+
Attributes
53+
----------
54+
swagger_types: dict[str, str]
55+
The key is attribute name and the value is attribute type.
56+
attribute_map: dict[str, str]
57+
The key is attribute name and the value is json key in definition.
58+
subtype_mapping: dict[str, str]
59+
The key is the unmangled property name and the value is the corresponding type.
60+
discriminator: Optional[str]
61+
Name of the property used as discriminator for subtypes.
62+
"""
63+
swagger_types: dict[str, str] = {
64+
"index_name": "str",
65+
}
66+
67+
attribute_map: dict[str, str] = {
68+
"index_name": "indexName",
69+
}
70+
71+
subtype_mapping: dict[str, str] = {}
72+
73+
discriminator: Optional[str] = None
74+
75+
def __init__(
76+
self,
77+
*,
78+
index_name: "str",
79+
) -> None:
80+
"""GsaOrphanedSearchIndex - a model defined in Swagger
81+
82+
Parameters
83+
----------
84+
index_name: str
85+
"""
86+
self._index_name: str
87+
88+
self.index_name = index_name
89+
90+
@property
91+
def index_name(self) -> "str":
92+
"""Gets the index_name of this GsaOrphanedSearchIndex.
93+
94+
Returns
95+
-------
96+
str
97+
The index_name of this GsaOrphanedSearchIndex.
98+
"""
99+
return self._index_name
100+
101+
@index_name.setter
102+
def index_name(self, index_name: "str") -> None:
103+
"""Sets the index_name of this GsaOrphanedSearchIndex.
104+
105+
Parameters
106+
----------
107+
index_name: str
108+
The index_name of this GsaOrphanedSearchIndex.
109+
"""
110+
# Field is not nullable
111+
if index_name is None:
112+
raise ValueError("Invalid value for 'index_name', must not be 'None'")
113+
# Field is required
114+
if index_name is Unset: # type: ignore[comparison-overlap, unused-ignore]
115+
raise ValueError("Invalid value for 'index_name', must not be 'Unset'")
116+
self._index_name = index_name
117+
118+
@classmethod
119+
def get_real_child_model(cls, data: dict[str, str]) -> str:
120+
"""Raises a NotImplementedError for a type without a discriminator defined.
121+
122+
Parameters
123+
----------
124+
data: ModelBase
125+
Object representing a subclass of this class
126+
127+
Raises
128+
------
129+
NotImplementedError
130+
This class has no discriminator, and hence no subclasses
131+
"""
132+
raise NotImplementedError()
133+
134+
def __repr__(self) -> str:
135+
"""For 'print' and 'pprint'"""
136+
return self.to_str()
137+
138+
def __eq__(self, other: Any) -> bool:
139+
"""Returns true if both objects are equal"""
140+
if not isinstance(other, GsaOrphanedSearchIndex):
141+
return False
142+
143+
return self.__dict__ == other.__dict__
144+
145+
def __ne__(self, other: Any) -> bool:
146+
"""Returns true if both objects are not equal"""
147+
return not self == other

0 commit comments

Comments
 (0)