Skip to content

Commit f7ab24f

Browse files
Update Swagger.json (12129979265) (#267)
Co-authored-by: pyansys-ci-bot <pyansys-ci-bot@users.noreply.github.com>
1 parent 06e22b0 commit f7ab24f

File tree

7 files changed

+975
-508
lines changed

7 files changed

+975
-508
lines changed

ansys-grantami-serverapi-openapi/pyproject.toml

+1-1
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 = "4.0.0.dev334"
8+
version = "4.0.0.dev336"
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

+2
Original file line numberDiff line numberDiff line change
@@ -705,6 +705,7 @@
705705
from .models.gsa_query_data_rule import GsaQueryDataRule
706706
from .models.gsa_query_data_rule_properties import GsaQueryDataRuleProperties
707707
from .models.gsa_query_discrete_type import GsaQueryDiscreteType
708+
from .models.gsa_query_discrete_type_filter import GsaQueryDiscreteTypeFilter
708709
from .models.gsa_query_discrete_type_properties import GsaQueryDiscreteTypeProperties
709710
from .models.gsa_query_discrete_types_info import GsaQueryDiscreteTypesInfo
710711
from .models.gsa_query_discrete_types_request import GsaQueryDiscreteTypesRequest
@@ -1610,6 +1611,7 @@
16101611
"GsaQueryDataRule",
16111612
"GsaQueryDataRuleProperties",
16121613
"GsaQueryDiscreteType",
1614+
"GsaQueryDiscreteTypeFilter",
16131615
"GsaQueryDiscreteTypeProperties",
16141616
"GsaQueryDiscreteTypesInfo",
16151617
"GsaQueryDiscreteTypesRequest",

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

+2
Original file line numberDiff line numberDiff line change
@@ -631,6 +631,7 @@
631631
from .gsa_query_data_rule import GsaQueryDataRule
632632
from .gsa_query_data_rule_properties import GsaQueryDataRuleProperties
633633
from .gsa_query_discrete_type import GsaQueryDiscreteType
634+
from .gsa_query_discrete_type_filter import GsaQueryDiscreteTypeFilter
634635
from .gsa_query_discrete_type_properties import GsaQueryDiscreteTypeProperties
635636
from .gsa_query_discrete_types_info import GsaQueryDiscreteTypesInfo
636637
from .gsa_query_discrete_types_request import GsaQueryDiscreteTypesRequest
@@ -1487,6 +1488,7 @@
14871488
"GsaQueryDataRule",
14881489
"GsaQueryDataRuleProperties",
14891490
"GsaQueryDiscreteType",
1491+
"GsaQueryDiscreteTypeFilter",
14901492
"GsaQueryDiscreteTypeProperties",
14911493
"GsaQueryDiscreteTypesInfo",
14921494
"GsaQueryDiscreteTypesRequest",

ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/gsa_query_attribute_filter.py

+31
Original file line numberDiff line numberDiff line change
@@ -61,11 +61,13 @@ class GsaQueryAttributeFilter(ModelBase):
6161
Name of the property used as discriminator for subtypes.
6262
"""
6363
swagger_types: dict[str, str] = {
64+
"guid": "list[str]",
6465
"name": "list[str]",
6566
"type": "list[GsaAttributeType]",
6667
}
6768

6869
attribute_map: dict[str, str] = {
70+
"guid": "guid",
6971
"name": "name",
7072
"type": "type",
7173
}
@@ -79,23 +81,28 @@ class GsaQueryAttributeFilter(ModelBase):
7981
def __init__(
8082
self,
8183
*,
84+
guid: "Union[list[str], None, Unset_Type]" = Unset,
8285
name: "Union[list[str], None, Unset_Type]" = Unset,
8386
type: "Union[list[GsaAttributeType], None, Unset_Type]" = Unset,
8487
) -> None:
8588
"""GsaQueryAttributeFilter - a model defined in Swagger
8689
8790
Parameters
8891
----------
92+
guid: list[str], optional
8993
name: list[str], optional
9094
type: list[GsaAttributeType], optional
9195
"""
9296
self._type: Union[list[GsaAttributeType], None, Unset_Type] = Unset
9397
self._name: Union[list[str], None, Unset_Type] = Unset
98+
self._guid: Union[list[str], None, Unset_Type] = Unset
9499

95100
if type is not Unset:
96101
self.type = type
97102
if name is not Unset:
98103
self.name = name
104+
if guid is not Unset:
105+
self.guid = guid
99106

100107
@property
101108
def type(self) -> "Union[list[GsaAttributeType], None, Unset_Type]":
@@ -145,6 +152,30 @@ def name(self, name: "Union[list[str], None, Unset_Type]") -> None:
145152
"""
146153
self._name = name
147154

155+
@property
156+
def guid(self) -> "Union[list[str], None, Unset_Type]":
157+
"""Gets the guid of this GsaQueryAttributeFilter.
158+
If set, attribute GUID must match any of these GUIDs.
159+
160+
Returns
161+
-------
162+
Union[list[str], None, Unset_Type]
163+
The guid of this GsaQueryAttributeFilter.
164+
"""
165+
return self._guid
166+
167+
@guid.setter
168+
def guid(self, guid: "Union[list[str], None, Unset_Type]") -> None:
169+
"""Sets the guid of this GsaQueryAttributeFilter.
170+
If set, attribute GUID must match any of these GUIDs.
171+
172+
Parameters
173+
----------
174+
guid: Union[list[str], None, Unset_Type]
175+
The guid of this GsaQueryAttributeFilter.
176+
"""
177+
self._guid = guid
178+
148179
@classmethod
149180
def get_real_child_model(cls, data: dict[str, str]) -> str:
150181
"""Raises a NotImplementedError for a type without a discriminator defined.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,175 @@
1+
# Copyright (C) 2023 - 2024 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, Union # 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 GsaQueryDiscreteTypeFilter(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+
"guid": "list[str]",
65+
"name": "list[str]",
66+
}
67+
68+
attribute_map: dict[str, str] = {
69+
"guid": "guid",
70+
"name": "name",
71+
}
72+
73+
subtype_mapping: dict[str, str] = {}
74+
75+
discriminator: Optional[str] = None
76+
77+
def __init__(
78+
self,
79+
*,
80+
guid: "Union[list[str], None, Unset_Type]" = Unset,
81+
name: "Union[list[str], None, Unset_Type]" = Unset,
82+
) -> None:
83+
"""GsaQueryDiscreteTypeFilter - a model defined in Swagger
84+
85+
Parameters
86+
----------
87+
guid: list[str], optional
88+
name: list[str], optional
89+
"""
90+
self._name: Union[list[str], None, Unset_Type] = Unset
91+
self._guid: Union[list[str], None, Unset_Type] = Unset
92+
93+
if name is not Unset:
94+
self.name = name
95+
if guid is not Unset:
96+
self.guid = guid
97+
98+
@property
99+
def name(self) -> "Union[list[str], None, Unset_Type]":
100+
"""Gets the name of this GsaQueryDiscreteTypeFilter.
101+
If set, discrete type name must match any of these names.
102+
103+
Returns
104+
-------
105+
Union[list[str], None, Unset_Type]
106+
The name of this GsaQueryDiscreteTypeFilter.
107+
"""
108+
return self._name
109+
110+
@name.setter
111+
def name(self, name: "Union[list[str], None, Unset_Type]") -> None:
112+
"""Sets the name of this GsaQueryDiscreteTypeFilter.
113+
If set, discrete type name must match any of these names.
114+
115+
Parameters
116+
----------
117+
name: Union[list[str], None, Unset_Type]
118+
The name of this GsaQueryDiscreteTypeFilter.
119+
"""
120+
self._name = name
121+
122+
@property
123+
def guid(self) -> "Union[list[str], None, Unset_Type]":
124+
"""Gets the guid of this GsaQueryDiscreteTypeFilter.
125+
If set, discrete type GUID must match any of these GUIDs.
126+
127+
Returns
128+
-------
129+
Union[list[str], None, Unset_Type]
130+
The guid of this GsaQueryDiscreteTypeFilter.
131+
"""
132+
return self._guid
133+
134+
@guid.setter
135+
def guid(self, guid: "Union[list[str], None, Unset_Type]") -> None:
136+
"""Sets the guid of this GsaQueryDiscreteTypeFilter.
137+
If set, discrete type GUID must match any of these GUIDs.
138+
139+
Parameters
140+
----------
141+
guid: Union[list[str], None, Unset_Type]
142+
The guid of this GsaQueryDiscreteTypeFilter.
143+
"""
144+
self._guid = guid
145+
146+
@classmethod
147+
def get_real_child_model(cls, data: dict[str, str]) -> str:
148+
"""Raises a NotImplementedError for a type without a discriminator defined.
149+
150+
Parameters
151+
----------
152+
data: ModelBase
153+
Object representing a subclass of this class
154+
155+
Raises
156+
------
157+
NotImplementedError
158+
This class has no discriminator, and hence no subclasses
159+
"""
160+
raise NotImplementedError()
161+
162+
def __repr__(self) -> str:
163+
"""For 'print' and 'pprint'"""
164+
return self.to_str()
165+
166+
def __eq__(self, other: Any) -> bool:
167+
"""Returns true if both objects are equal"""
168+
if not isinstance(other, GsaQueryDiscreteTypeFilter):
169+
return False
170+
171+
return self.__dict__ == other.__dict__
172+
173+
def __ne__(self, other: Any) -> bool:
174+
"""Returns true if both objects are not equal"""
175+
return not self == other

ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/gsa_query_discrete_types_request.py

+33
Original file line numberDiff line numberDiff line change
@@ -62,14 +62,17 @@ class GsaQueryDiscreteTypesRequest(ModelBase):
6262
"""
6363
swagger_types: dict[str, str] = {
6464
"properties": "GsaQueryDiscreteTypeProperties",
65+
"filter": "GsaQueryDiscreteTypeFilter",
6566
}
6667

6768
attribute_map: dict[str, str] = {
6869
"properties": "properties",
70+
"filter": "filter",
6971
}
7072

7173
subtype_mapping: dict[str, str] = {
7274
"properties": "GsaQueryDiscreteTypeProperties",
75+
"filter": "GsaQueryDiscreteTypeFilter",
7376
}
7477

7578
discriminator: Optional[str] = None
@@ -78,16 +81,21 @@ def __init__(
7881
self,
7982
*,
8083
properties: "GsaQueryDiscreteTypeProperties",
84+
filter: "Union[GsaQueryDiscreteTypeFilter, Unset_Type]" = Unset,
8185
) -> None:
8286
"""GsaQueryDiscreteTypesRequest - a model defined in Swagger
8387
8488
Parameters
8589
----------
8690
properties: GsaQueryDiscreteTypeProperties
91+
filter: GsaQueryDiscreteTypeFilter, optional
8792
"""
8893
self._properties: GsaQueryDiscreteTypeProperties
94+
self._filter: Union[GsaQueryDiscreteTypeFilter, Unset_Type] = Unset
8995

9096
self.properties = properties
97+
if filter is not Unset:
98+
self.filter = filter
9199

92100
@property
93101
def properties(self) -> "GsaQueryDiscreteTypeProperties":
@@ -117,6 +125,31 @@ def properties(self, properties: "GsaQueryDiscreteTypeProperties") -> None:
117125
raise ValueError("Invalid value for 'properties', must not be 'Unset'")
118126
self._properties = properties
119127

128+
@property
129+
def filter(self) -> "Union[GsaQueryDiscreteTypeFilter, Unset_Type]":
130+
"""Gets the filter of this GsaQueryDiscreteTypesRequest.
131+
132+
Returns
133+
-------
134+
Union[GsaQueryDiscreteTypeFilter, Unset_Type]
135+
The filter of this GsaQueryDiscreteTypesRequest.
136+
"""
137+
return self._filter
138+
139+
@filter.setter
140+
def filter(self, filter: "Union[GsaQueryDiscreteTypeFilter, Unset_Type]") -> None:
141+
"""Sets the filter of this GsaQueryDiscreteTypesRequest.
142+
143+
Parameters
144+
----------
145+
filter: Union[GsaQueryDiscreteTypeFilter, Unset_Type]
146+
The filter of this GsaQueryDiscreteTypesRequest.
147+
"""
148+
# Field is not nullable
149+
if filter is None:
150+
raise ValueError("Invalid value for 'filter', must not be 'None'")
151+
self._filter = filter
152+
120153
@classmethod
121154
def get_real_child_model(cls, data: dict[str, str]) -> str:
122155
"""Raises a NotImplementedError for a type without a discriminator defined.

0 commit comments

Comments
 (0)