Skip to content

Update Swagger.json (16545029440) #482

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Jul 28, 2025
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
Jump to file
Failed to load files.
Loading
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.dev686"
version = "5.1.0.dev692"
license = "MIT"
authors = ["ANSYS, Inc. <[email protected]>"]
maintainers = ["ANSYS, Inc. <[email protected]>"]
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.dev686"
__version__ = "5.1.0.dev692"
Original file line number Diff line number Diff line change
Expand Up @@ -886,6 +886,8 @@
GsaNumericRestrictedInterpolationParameterErrorDetail,
)
from .models.gsa_object_identifier import GsaObjectIdentifier
from .models.gsa_orphaned_search_index import GsaOrphanedSearchIndex
from .models.gsa_orphaned_search_indexes_info import GsaOrphanedSearchIndexesInfo
from .models.gsa_pagination_links import GsaPaginationLinks
from .models.gsa_paging_options import GsaPagingOptions
from .models.gsa_parameter import GsaParameter
Expand Down Expand Up @@ -2041,6 +2043,8 @@
"GsaNumericParameterValue",
"GsaNumericRestrictedInterpolationParameterErrorDetail",
"GsaObjectIdentifier",
"GsaOrphanedSearchIndex",
"GsaOrphanedSearchIndexesInfo",
"GsaPaginationLinks",
"GsaPagingOptions",
"GsaParameter",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -181,6 +181,68 @@ def _get_database_status_with_http_info(self, database_key: "str", **kwargs: Any
response_type_map=response_type_map,
)

def get_orphaned_search_indexes(self) -> "GsaOrphanedSearchIndexesInfo | None":
"""Returns information about orphaned search indexes

This method makes a synchronous HTTP request.

Returns
-------
GsaOrphanedSearchIndexesInfo | None
"""
data = self._get_orphaned_search_indexes_with_http_info(_return_http_data_only=True)
return data # type: ignore[no-any-return]

def _get_orphaned_search_indexes_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_orphaned_search_indexes"
)
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: "GsaOrphanedSearchIndexesInfo",
403: None,
}

return self.api_client.call_api(
"/v1alpha/status/orphanedSearchIndexes",
"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,
)

def get_search_cluster_status(self) -> "GsaSearchClusterStatus":
"""Returns disk status information for the search cluster

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -783,6 +783,8 @@
GsaNumericRestrictedInterpolationParameterErrorDetail,
)
from .gsa_object_identifier import GsaObjectIdentifier
from .gsa_orphaned_search_index import GsaOrphanedSearchIndex
from .gsa_orphaned_search_indexes_info import GsaOrphanedSearchIndexesInfo
from .gsa_pagination_links import GsaPaginationLinks
from .gsa_paging_options import GsaPagingOptions
from .gsa_parameter import GsaParameter
Expand Down Expand Up @@ -1880,6 +1882,8 @@
"GsaNumericParameterValue",
"GsaNumericRestrictedInterpolationParameterErrorDetail",
"GsaObjectIdentifier",
"GsaOrphanedSearchIndex",
"GsaOrphanedSearchIndexesInfo",
"GsaPaginationLinks",
"GsaPagingOptions",
"GsaParameter",
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,147 @@
# 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 ModelBase, Unset, Unset_Type

if TYPE_CHECKING:
from datetime import datetime
import pathlib

from . import *


class GsaOrphanedSearchIndex(ModelBase):
"""NOTE: This class is auto generated by the swagger code generator program.

Do not edit the class manually.
"""

"""
Attributes
----------
swagger_types: dict[str, str]
The key is attribute name and the value is attribute type.
attribute_map: dict[str, str]
The key is attribute name and the value is json key in definition.
subtype_mapping: dict[str, str]
The key is the unmangled property name and the value is the corresponding type.
discriminator: Optional[str]
Name of the property used as discriminator for subtypes.
"""
swagger_types: dict[str, str] = {
"index_name": "str",
}

attribute_map: dict[str, str] = {
"index_name": "indexName",
}

subtype_mapping: dict[str, str] = {}

discriminator: Optional[str] = None

def __init__(
self,
*,
index_name: "str",
) -> None:
"""GsaOrphanedSearchIndex - a model defined in Swagger

Parameters
----------
index_name: str
"""
self._index_name: str

self.index_name = index_name

@property
def index_name(self) -> "str":
"""Gets the index_name of this GsaOrphanedSearchIndex.

Returns
-------
str
The index_name of this GsaOrphanedSearchIndex.
"""
return self._index_name

@index_name.setter
def index_name(self, index_name: "str") -> None:
"""Sets the index_name of this GsaOrphanedSearchIndex.

Parameters
----------
index_name: str
The index_name of this GsaOrphanedSearchIndex.
"""
# Field is not nullable
if index_name is None:
raise ValueError("Invalid value for 'index_name', must not be 'None'")
# Field is required
if index_name is Unset: # type: ignore[comparison-overlap, unused-ignore]
raise ValueError("Invalid value for 'index_name', must not be 'Unset'")
self._index_name = index_name

@classmethod
def get_real_child_model(cls, data: dict[str, str]) -> str:
"""Raises a NotImplementedError for a type without a discriminator defined.

Parameters
----------
data: ModelBase
Object representing a subclass of this class

Raises
------
NotImplementedError
This class has no discriminator, and hence no subclasses
"""
raise NotImplementedError()

def __repr__(self) -> str:
"""For 'print' and 'pprint'"""
return self.to_str()

def __eq__(self, other: Any) -> bool:
"""Returns true if both objects are equal"""
if not isinstance(other, GsaOrphanedSearchIndex):
return False

return self.__dict__ == other.__dict__

def __ne__(self, other: Any) -> bool:
"""Returns true if both objects are not equal"""
return not self == other
Loading