ApiVersions#

class ansys.geometry.core.connection.backend.ApiVersions(*args, **kwds)#

Bases: enum.Enum

Provides an enum for all the compatibles API versions.

Overview#

parse_input

Convert an input to an ApiVersions enum.

Import detail#

from ansys.geometry.core.connection.backend import ApiVersions

Attribute detail#

ApiVersions.V_21 = 21#
ApiVersions.V_22 = 22#
ApiVersions.V_231 = 231#
ApiVersions.V_232 = 232#
ApiVersions.V_241 = 241#
ApiVersions.V_242 = 242#

Method detail#

static ApiVersions.parse_input(version: int | str | ApiVersions) ApiVersions#

Convert an input to an ApiVersions enum.

Parameters:
versionint | str | ApiVersions

The version to convert to an ApiVersions enum.

Returns:
ApiVersions

The version as an ApiVersions enum.