sdkms.v1.models.fpe_date_part module
Fortanix DSM REST API
This is a set of REST APIs for accessing the Fortanix Data Security Manager. This includes APIs for managing accounts, and for performing cryptographic and key management operations.
OpenAPI spec version: 1.0.0-20200608 Contact: support@fortanix.com Generated by: https://github.com/swagger-api/swagger-codegen.git
Licensed under the Apache License, Version 2.0 (the “License”); you may not use this file except in compliance with the License. You may obtain a copy of the License at
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an “AS IS” BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
- class sdkms.v1.models.fpe_date_part.FpeDatePart(name)[source]
Bases:
BaseEnumObjectPossible date-related constraint types that do not form a complete date (by themselves) for a complex tokenization data type. The part should be a numeric encrypted part that is guaranteed to either preserve all of its digits or preserve none of them, and cannot be involved in any Luhn-check constraints. Day and Month parts must have their `min_length` fields be at least 1 and their `max_length` field be exactly 2. Additionally, any leading zeros should be removed (unless required due to length restrictions). Year parts must be two to five digits long.
Enumeration values:
FpeDatePart.MONTH = "month" FpeDatePart.DAY = "day" FpeDatePart.YEAR = "year"
This class doesnt use python standard enumeration since they dont support unknown values.
This is an object of type BaseEnumObject and provides similar functionality as a String Enumeration:
Get a standard instance of enum: FpeDatePart.FOO or FpeDatePart("FOO") Get non standard instance of enum: FpeDatePart("BAR") Enum instance to String value: FpeDatePart.FOO.value , FpeDatePart.FOO.name (Gives "FOO") Equality: FpeDatePart.FOO == FpeDatePart("FOO") , FpeDatePart.FOO != FpeDatePart.BAR Provides str func: str(FpeDatePart.FOO) == "FpeDatePart.FOO"
Also the class maintains a static dict of values. hence FpeDatePart.FOO and FpeDatePart(“FOO”) are really backed by same data.
- DAY = <sdkms.v1.models.fpe_date_part.FpeDatePart.__FpeDatePart object>
- MONTH = <sdkms.v1.models.fpe_date_part.FpeDatePart.__FpeDatePart object>
- YEAR = <sdkms.v1.models.fpe_date_part.FpeDatePart.__FpeDatePart object>
dictionary that keeps the enum value mapping for static access
- property name
- property value