|
| 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, 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 GsaBulkInfo(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 | + "data": "list[GsaBulkResponseItem]", |
| 65 | + } |
| 66 | + |
| 67 | + attribute_map: dict[str, str] = { |
| 68 | + "data": "data", |
| 69 | + } |
| 70 | + |
| 71 | + subtype_mapping: dict[str, str] = { |
| 72 | + "data": "GsaBulkResponseItem", |
| 73 | + } |
| 74 | + |
| 75 | + discriminator: Optional[str] = None |
| 76 | + |
| 77 | + def __init__( |
| 78 | + self, |
| 79 | + *, |
| 80 | + data: "list[GsaBulkResponseItem]", |
| 81 | + ) -> None: |
| 82 | + """GsaBulkInfo - a model defined in Swagger |
| 83 | +
|
| 84 | + Parameters |
| 85 | + ---------- |
| 86 | + data: list[GsaBulkResponseItem] |
| 87 | + """ |
| 88 | + self._data: list[GsaBulkResponseItem] |
| 89 | + |
| 90 | + self.data = data |
| 91 | + |
| 92 | + @property |
| 93 | + def data(self) -> "list[GsaBulkResponseItem]": |
| 94 | + """Gets the data of this GsaBulkInfo. |
| 95 | +
|
| 96 | + Returns |
| 97 | + ------- |
| 98 | + list[GsaBulkResponseItem] |
| 99 | + The data of this GsaBulkInfo. |
| 100 | + """ |
| 101 | + return self._data |
| 102 | + |
| 103 | + @data.setter |
| 104 | + def data(self, data: "list[GsaBulkResponseItem]") -> None: |
| 105 | + """Sets the data of this GsaBulkInfo. |
| 106 | +
|
| 107 | + Parameters |
| 108 | + ---------- |
| 109 | + data: list[GsaBulkResponseItem] |
| 110 | + The data of this GsaBulkInfo. |
| 111 | + """ |
| 112 | + # Field is not nullable |
| 113 | + if data is None: |
| 114 | + raise ValueError("Invalid value for 'data', must not be 'None'") |
| 115 | + # Field is required |
| 116 | + if data is Unset: # type: ignore[comparison-overlap, unused-ignore] |
| 117 | + raise ValueError("Invalid value for 'data', must not be 'Unset'") |
| 118 | + self._data = data |
| 119 | + |
| 120 | + @classmethod |
| 121 | + def get_real_child_model(cls, data: dict[str, str]) -> str: |
| 122 | + """Raises a NotImplementedError for a type without a discriminator defined. |
| 123 | +
|
| 124 | + Parameters |
| 125 | + ---------- |
| 126 | + data: ModelBase |
| 127 | + Object representing a subclass of this class |
| 128 | +
|
| 129 | + Raises |
| 130 | + ------ |
| 131 | + NotImplementedError |
| 132 | + This class has no discriminator, and hence no subclasses |
| 133 | + """ |
| 134 | + raise NotImplementedError() |
| 135 | + |
| 136 | + def __repr__(self) -> str: |
| 137 | + """For 'print' and 'pprint'""" |
| 138 | + return self.to_str() |
| 139 | + |
| 140 | + def __eq__(self, other: Any) -> bool: |
| 141 | + """Returns true if both objects are equal""" |
| 142 | + if not isinstance(other, GsaBulkInfo): |
| 143 | + return False |
| 144 | + |
| 145 | + return self.__dict__ == other.__dict__ |
| 146 | + |
| 147 | + def __ne__(self, other: Any) -> bool: |
| 148 | + """Returns true if both objects are not equal""" |
| 149 | + return not self == other |
0 commit comments