Skip to content
Open
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 @@ -8,7 +8,7 @@ module-name = "ansys.grantami.serverapi_openapi"
[project]
name = "ansys-grantami-serverapi-openapi"
description = "Autogenerated client library for the Granta MI Server API."
version = "5.2.0.dev1208"
version = "5.2.0.dev1234"
license = "MIT"
requires-python = ">=3.10"
authors = [
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.2.0.dev1208"
__version__ = "5.2.0.dev1234"
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,9 @@ class GrantaMISearchRecordPropertyFakeAttributeNumbers(Enum):
RECORDNAME_IDENTITY_4_GUID_00000001_0000_0000_0000_000000000000_ = (
'{"name":"RecordName","identity":-4,"guid":"00000001 - 0000-0000 - 0000-000000000000"}'
)
RECORDMODIFIEDBY_IDENTITY_3_GUID_00000009_0000_0000_0000_000000000000_ = '{"name":"RecordModifiedBy","identity":-3,"guid":"00000009 - 0000-0000 - 0000-000000000000"}'
RECORDMODIFIEDBY_IDENTITY_3_GUID_00000009_0000_0000_0000_000000000000_ = (
'{"name":"RecordModifiedBy","identity":-3,"guid":"00000009 - 0000-0000 - 0000-000000000000"}'
)
RECORDCREATEDBY_IDENTITY_2_GUID_00000008_0000_0000_0000_000000000000_ = (
'{"name":"RecordCreatedBy","identity":-2,"guid":"00000008 - 0000-0000 - 0000-000000000000"}'
)
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,9 @@ class GrantaMIRecordPropertyFakeAttributeIdentities(Enum):
RECORDNAME_IDENTITY_4_GUID_00000001_0000_0000_0000_000000000000_ = (
'{"name":"RecordName","identity":-4,"guid":"00000001 - 0000-0000 - 0000-000000000000"}'
)
RECORDMODIFIEDBY_IDENTITY_3_GUID_00000009_0000_0000_0000_000000000000_ = '{"name":"RecordModifiedBy","identity":-3,"guid":"00000009 - 0000-0000 - 0000-000000000000"}'
RECORDMODIFIEDBY_IDENTITY_3_GUID_00000009_0000_0000_0000_000000000000_ = (
'{"name":"RecordModifiedBy","identity":-3,"guid":"00000009 - 0000-0000 - 0000-000000000000"}'
)
RECORDCREATEDBY_IDENTITY_2_GUID_00000008_0000_0000_0000_000000000000_ = (
'{"name":"RecordCreatedBy","identity":-2,"guid":"00000008 - 0000-0000 - 0000-000000000000"}'
)
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,9 @@ class GrantaMIRecordPropertyFakeAttributeIdentities(Enum):
RECORDNAME_IDENTITY_4_GUID_00000001_0000_0000_0000_000000000000_ = (
'{"name":"RecordName","identity":-4,"guid":"00000001 - 0000-0000 - 0000-000000000000"}'
)
RECORDMODIFIEDBY_IDENTITY_3_GUID_00000009_0000_0000_0000_000000000000_ = '{"name":"RecordModifiedBy","identity":-3,"guid":"00000009 - 0000-0000 - 0000-000000000000"}'
RECORDMODIFIEDBY_IDENTITY_3_GUID_00000009_0000_0000_0000_000000000000_ = (
'{"name":"RecordModifiedBy","identity":-3,"guid":"00000009 - 0000-0000 - 0000-000000000000"}'
)
RECORDCREATEDBY_IDENTITY_2_GUID_00000008_0000_0000_0000_000000000000_ = (
'{"name":"RecordCreatedBy","identity":-2,"guid":"00000008 - 0000-0000 - 0000-000000000000"}'
)
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,9 @@ class GrantaMIRecordPropertyFakeAttributeIdentities(Enum):
RECORDNAME_IDENTITY_4_GUID_00000001_0000_0000_0000_000000000000_ = (
'{"name":"RecordName","identity":-4,"guid":"00000001 - 0000-0000 - 0000-000000000000"}'
)
RECORDMODIFIEDBY_IDENTITY_3_GUID_00000009_0000_0000_0000_000000000000_ = '{"name":"RecordModifiedBy","identity":-3,"guid":"00000009 - 0000-0000 - 0000-000000000000"}'
RECORDMODIFIEDBY_IDENTITY_3_GUID_00000009_0000_0000_0000_000000000000_ = (
'{"name":"RecordModifiedBy","identity":-3,"guid":"00000009 - 0000-0000 - 0000-000000000000"}'
)
RECORDCREATEDBY_IDENTITY_2_GUID_00000008_0000_0000_0000_000000000000_ = (
'{"name":"RecordCreatedBy","identity":-2,"guid":"00000008 - 0000-0000 - 0000-000000000000"}'
)
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,9 @@ class GrantaMIRecordPropertyFakeAttributeIdentities(Enum):
RECORDNAME_IDENTITY_4_GUID_00000001_0000_0000_0000_000000000000_ = (
'{"name":"RecordName","identity":-4,"guid":"00000001 - 0000-0000 - 0000-000000000000"}'
)
RECORDMODIFIEDBY_IDENTITY_3_GUID_00000009_0000_0000_0000_000000000000_ = '{"name":"RecordModifiedBy","identity":-3,"guid":"00000009 - 0000-0000 - 0000-000000000000"}'
RECORDMODIFIEDBY_IDENTITY_3_GUID_00000009_0000_0000_0000_000000000000_ = (
'{"name":"RecordModifiedBy","identity":-3,"guid":"00000009 - 0000-0000 - 0000-000000000000"}'
)
RECORDCREATEDBY_IDENTITY_2_GUID_00000008_0000_0000_0000_000000000000_ = (
'{"name":"RecordCreatedBy","identity":-2,"guid":"00000008 - 0000-0000 - 0000-000000000000"}'
)
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,9 @@ class GrantaMIRecordPropertyFakeAttributeIdentities(Enum):
RECORDNAME_IDENTITY_4_GUID_00000001_0000_0000_0000_000000000000_ = (
'{"name":"RecordName","identity":-4,"guid":"00000001 - 0000-0000 - 0000-000000000000"}'
)
RECORDMODIFIEDBY_IDENTITY_3_GUID_00000009_0000_0000_0000_000000000000_ = '{"name":"RecordModifiedBy","identity":-3,"guid":"00000009 - 0000-0000 - 0000-000000000000"}'
RECORDMODIFIEDBY_IDENTITY_3_GUID_00000009_0000_0000_0000_000000000000_ = (
'{"name":"RecordModifiedBy","identity":-3,"guid":"00000009 - 0000-0000 - 0000-000000000000"}'
)
RECORDCREATEDBY_IDENTITY_2_GUID_00000008_0000_0000_0000_000000000000_ = (
'{"name":"RecordCreatedBy","identity":-2,"guid":"00000008 - 0000-0000 - 0000-000000000000"}'
)
Original file line number Diff line number Diff line change
Expand Up @@ -126,3 +126,4 @@ class GsaErrorCode(Enum):
ATTRIBUTEUPDATE = "attributeUpdate"
PERMISSIONBASEDACCESSCONTROLAGGREGATION = "permissionBasedAccessControlAggregation"
SCHEMAVALIDATION = "schemaValidation"
SIMILARITYNODATA = "similarityNoData"
Original file line number Diff line number Diff line change
Expand Up @@ -78,17 +78,17 @@ def __init__(
self,
*,
record_guid: "str | Unset_Type" = Unset,
score: "float | Unset_Type" = Unset,
score: "float | None | Unset_Type" = Unset,
) -> None:
"""GsaFindSimilarResult - a model defined in Swagger

Parameters
----------
record_guid: str, optional
score: float, optional
score: float | None, optional
"""
self._record_guid: str | Unset_Type = Unset
self._score: float | Unset_Type = Unset
self._score: float | None | Unset_Type = Unset

if record_guid is not Unset:
self.record_guid = record_guid
Expand Down Expand Up @@ -121,28 +121,25 @@ def record_guid(self, record_guid: "str | Unset_Type") -> None:
self._record_guid = record_guid

@property
def score(self) -> "float | Unset_Type":
def score(self) -> "float | None | Unset_Type":
"""Gets the score of this GsaFindSimilarResult.

Returns
-------
float | Unset_Type
float | None | Unset_Type
The score of this GsaFindSimilarResult.
"""
return self._score

@score.setter
def score(self, score: "float | Unset_Type") -> None:
def score(self, score: "float | None | Unset_Type") -> None:
"""Sets the score of this GsaFindSimilarResult.

Parameters
----------
score: float | Unset_Type
score: float | None | Unset_Type
The score of this GsaFindSimilarResult.
"""
# Field is not nullable
if score is None:
raise ValueError("Invalid value for 'score', must not be 'None'")
self._score = score

@classmethod
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -63,17 +63,17 @@ class GsaPermission(ModelBase):
swagger_types: dict[str, str] = {
"guid": "str",
"name": "str",
"role": "str",
"description": "str",
"role": "str",
"set_message": "str",
"unset_message": "str",
}

attribute_map: dict[str, str] = {
"guid": "guid",
"name": "name",
"role": "role",
"description": "description",
"role": "role",
"set_message": "setMessage",
"unset_message": "unsetMessage",
}
Expand All @@ -87,8 +87,8 @@ def __init__(
*,
guid: "str",
name: "str",
role: "str",
description: "str | None | Unset_Type" = Unset,
role: "str | None | Unset_Type" = Unset,
set_message: "str | None | Unset_Type" = Unset,
unset_message: "str | None | Unset_Type" = Unset,
) -> None:
Expand All @@ -98,19 +98,20 @@ def __init__(
----------
guid: str
name: str
role: str
description: str | None, optional
role: str | None, optional
set_message: str | None, optional
unset_message: str | None, optional
"""
self._role: str
self._role: str | None | Unset_Type = Unset
self._description: str | None | Unset_Type = Unset
self._set_message: str | None | Unset_Type = Unset
self._unset_message: str | None | Unset_Type = Unset
self._name: str
self._guid: str

self.role = role
if role is not Unset:
self.role = role
if description is not Unset:
self.description = description
if set_message is not Unset:
Expand All @@ -121,31 +122,25 @@ def __init__(
self.guid = guid

@property
def role(self) -> "str":
def role(self) -> "str | None | Unset_Type":
"""Gets the role of this GsaPermission.

Returns
-------
str
str | None | Unset_Type
The role of this GsaPermission.
"""
return self._role

@role.setter
def role(self, role: "str") -> None:
def role(self, role: "str | None | Unset_Type") -> None:
"""Sets the role of this GsaPermission.

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

@property
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -70,14 +70,18 @@ class GsaTableAccessControlEntity(GsaAccessControlEntity):
swagger_types: dict[str, str] = {
"entity_type": "GsaAccessControlEntityType",
"table_guid": "str",
"latest_version_filter": "list[GsaVersionControlMode]",
}

attribute_map: dict[str, str] = {
"entity_type": "entityType",
"table_guid": "tableGuid",
"latest_version_filter": "latestVersionFilter",
}

subtype_mapping: dict[str, str] = {}
subtype_mapping: dict[str, str] = {
"latestVersionFilter": "GsaVersionControlMode",
}

discriminator: Optional[str] = None

Expand All @@ -86,18 +90,23 @@ def __init__(
*,
entity_type: "GsaAccessControlEntityType" = GsaAccessControlEntityType.TABLE,
table_guid: "str",
latest_version_filter: "list[GsaVersionControlMode] | None | Unset_Type" = Unset,
) -> None:
"""GsaTableAccessControlEntity - a model defined in Swagger

Parameters
----------
entity_type: GsaAccessControlEntityType
table_guid: str
latest_version_filter: list[GsaVersionControlMode] | None, optional
"""
super().__init__(entity_type=entity_type)
self._table_guid: str
self._latest_version_filter: list[GsaVersionControlMode] | None | Unset_Type = Unset

self.table_guid = table_guid
if latest_version_filter is not Unset:
self.latest_version_filter = latest_version_filter

@property
def table_guid(self) -> "str":
Expand Down Expand Up @@ -127,6 +136,32 @@ def table_guid(self, table_guid: "str") -> None:
raise ValueError("Invalid value for 'table_guid', must not be 'Unset'")
self._table_guid = table_guid

@property
def latest_version_filter(self) -> "list[GsaVersionControlMode] | None | Unset_Type":
"""Gets the latest_version_filter of this GsaTableAccessControlEntity.
Optional. If set, only include versions of the table that match this filter: - read: include only the latest version in read mode - write: include only the latest version in write mode - read and write: include the latest versions in read or write mode - empty: include versions that are not the latest in read or write mode If not set, include all versions

Returns
-------
list[GsaVersionControlMode] | None | Unset_Type
The latest_version_filter of this GsaTableAccessControlEntity.
"""
return self._latest_version_filter

@latest_version_filter.setter
def latest_version_filter(
self, latest_version_filter: "list[GsaVersionControlMode] | None | Unset_Type"
) -> None:
"""Sets the latest_version_filter of this GsaTableAccessControlEntity.
Optional. If set, only include versions of the table that match this filter: - read: include only the latest version in read mode - write: include only the latest version in write mode - read and write: include the latest versions in read or write mode - empty: include versions that are not the latest in read or write mode If not set, include all versions

Parameters
----------
latest_version_filter: list[GsaVersionControlMode] | None | Unset_Type
The latest_version_filter of this GsaTableAccessControlEntity.
"""
self._latest_version_filter = latest_version_filter

@classmethod
def get_real_child_model(cls, data: dict[str, str]) -> str:
"""Raises a NotImplementedError for a type without a discriminator defined.
Expand Down
4 changes: 2 additions & 2 deletions ansys-grantami-serverapi-openapi/uv.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading
Loading