sdkms.v1.models.server_mode 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.server_mode.ServerMode(name)[source]
Bases:
BaseEnumObjectServer mode.
Enumeration values:
ServerMode.SOFTWARE = "Software" ServerMode.SGX = "Sgx"
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: ServerMode.FOO or ServerMode("FOO") Get non standard instance of enum: ServerMode("BAR") Enum instance to String value: ServerMode.FOO.value , ServerMode.FOO.name (Gives "FOO") Equality: ServerMode.FOO == ServerMode("FOO") , ServerMode.FOO != ServerMode.BAR Provides str func: str(ServerMode.FOO) == "ServerMode.FOO"
Also the class maintains a static dict of values. hence ServerMode.FOO and ServerMode(“FOO”) are really backed by same data.
- SGX = <sdkms.v1.models.server_mode.ServerMode.__ServerMode object>
dictionary that keeps the enum value mapping for static access
- SOFTWARE = <sdkms.v1.models.server_mode.ServerMode.__ServerMode object>
- property name
- property value