Skip to content

Commit 6b81077

Browse files
SDK version 21.4.0.149 generated
1 parent c54c7df commit 6b81077

File tree

3 files changed

+13
-5
lines changed

3 files changed

+13
-5
lines changed

sdk/AsposeEmailCloudSdk/models/ai_name_component.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -146,6 +146,10 @@ def score(self, score: float):
146146
"""
147147
if score is None:
148148
raise ValueError("Invalid value for `score`, must not be `None`")
149+
if score is not None and score > 1.0:
150+
raise ValueError("Invalid value for `score`, must be a value less than or equal to `1.0`")
151+
if score is not None and score < 0.0:
152+
raise ValueError("Invalid value for `score`, must be a value greater than or equal to `0.0`")
149153
self._score = score
150154

151155
@property
@@ -168,6 +172,10 @@ def position(self, position: int):
168172
"""
169173
if position is None:
170174
raise ValueError("Invalid value for `position`, must not be `None`")
175+
if position is not None and position > 2147483647:
176+
raise ValueError("Invalid value for `position`, must be a value less than or equal to `2147483647`")
177+
if position is not None and position < 0:
178+
raise ValueError("Invalid value for `position`, must be a value greater than or equal to `0`")
171179
self._position = position
172180

173181
def to_dict(self):

sdk/docs/AiNameGenderizeRequest.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,10 @@ Request model for AiNameApi.genderize
77
Name | Type | Description | Notes
88
---- | ---- | ----------- | -----
99
**name** |**str** |A name to genderize. |
10-
**language** |**str** |An ISO-639 code of the language; either 639-1 or 639-3 (e.g. \"it\" or \"ita\" for Italian). |[optional] [default to ]
11-
**location** |**str** |A geographic code such as an ISO-3166 two letter country code, for example \"FR\" for France. |[optional] [default to ]
12-
**encoding** |**str** |A character encoding name. |[optional] [default to ]
13-
**script** |**str** |A writing system code; starts with the ISO-15924 script name. |[optional] [default to ]
10+
**language** |**str** |An ISO-639 code of the language; either 639-1 or 639-3 (e.g. \"it\" or \"ita\" for Italian). |[optional]
11+
**location** |**str** |A geographic code such as an ISO-3166 two letter country code, for example \"FR\" for France. |[optional]
12+
**encoding** |**str** |A character encoding name. |[optional]
13+
**script** |**str** |A writing system code; starts with the ISO-15924 script name. |[optional]
1414
**style** |**str** |Name writing style. Enum, available values: Formal, Informal, Legal, Academic |[optional] [default to 0]
1515

1616
## Example

sdk/setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
from setuptools import setup, find_packages # noqa: H301
99

1010
NAME = "aspose-email-cloud"
11-
VERSION = "21.4.0.140"
11+
VERSION = "21.4.0.149"
1212
# To install the library, run the following
1313
#
1414
# python setup.py install

0 commit comments

Comments
 (0)