Skip to content
Merged
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
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
from enum import Enum

from typing import Optional

from box_sdk_gen.internal.base_object import BaseObject

from box_sdk_gen.box.errors import BoxSDKError
Expand All @@ -12,22 +14,22 @@ class SignRequestSignerInputCustomValidationValidationTypeField(str, Enum):
class SignRequestSignerInputCustomValidation(BaseObject):
def __init__(
self,
custom_regex: str,
custom_error_message: str,
*,
validation_type: SignRequestSignerInputCustomValidationValidationTypeField = SignRequestSignerInputCustomValidationValidationTypeField.CUSTOM,
custom_regex: Optional[str] = None,
custom_error_message: Optional[str] = None,
**kwargs
):
"""
:param custom_regex: Regular expression used for validation.
:type custom_regex: str
:param custom_error_message: Error message shown if input fails custom regular expression validation.
:type custom_error_message: str
:param validation_type: Defines the validation format for the text input as custom.
A custom regular expression is used for validation., defaults to SignRequestSignerInputCustomValidationValidationTypeField.CUSTOM
:type validation_type: SignRequestSignerInputCustomValidationValidationTypeField, optional
:param custom_regex: Regular expression used for validation., defaults to None
:type custom_regex: Optional[str], optional
:param custom_error_message: Error message shown if input fails custom regular expression validation., defaults to None
:type custom_error_message: Optional[str], optional
"""
super().__init__(**kwargs)
self.validation_type = validation_type
self.custom_regex = custom_regex
self.custom_error_message = custom_error_message
self.validation_type = validation_type