Skip to content

Commit

Permalink
SDK regenerated by CI server [ci skip]
Browse files Browse the repository at this point in the history
  • Loading branch information
dynabic-billing-team committed Sep 13, 2024
1 parent 8160a62 commit e1fabba
Showing 1 changed file with 1 addition and 11 deletions.
12 changes: 1 addition & 11 deletions asposewordscloud/models/signature.py
Original file line number Diff line number Diff line change
Expand Up @@ -175,15 +175,7 @@ def signature_type(self, signature_type):
:param signature_type: The signature_type of this Signature. # noqa: E501
:type: str
"""
allowed_values = ["Unknown", "CryptoApi", "XmlDsig"] # noqa: E501
if not signature_type.isdigit():
if signature_type not in allowed_values:
raise ValueError(
"Invalid value for `signature_type` ({0}), must be one of {1}" # noqa: E501
.format(signature_type, allowed_values))
self._signature_type = signature_type
else:
self._signature_type = allowed_values[int(signature_type) if six.PY3 else long(signature_type)]
self._signature_type = signature_type

@property
def signature_value(self):
Expand Down Expand Up @@ -259,8 +251,6 @@ def validate(self):
"""Validate all required properties in model"""
if self._is_valid is None:
raise ValueError("Property IsValid in Signature is required.") # noqa: E501
if self._signature_type is None:
raise ValueError("Property SignatureType in Signature is required.") # noqa: E501
if self._sign_time is None:
raise ValueError("Property SignTime in Signature is required.") # noqa: E501

Expand Down

0 comments on commit e1fabba

Please sign in to comment.