1# coding: utf-8
2# Copyright (c) 2016, 2021, Oracle and/or its affiliates.  All rights reserved.
3# This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license.
4
5from .platform_config import PlatformConfig
6from oci.util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel  # noqa: F401
7from oci.decorators import init_model_state_from_kwargs
8
9
10@init_model_state_from_kwargs
11class AmdRomeBmPlatformConfig(PlatformConfig):
12    """
13    The platform configuration of a bare metal instance that uses the AMD Rome platform.
14    """
15
16    def __init__(self, **kwargs):
17        """
18        Initializes a new AmdRomeBmPlatformConfig object with values from keyword arguments. The default value of the :py:attr:`~oci.core.models.AmdRomeBmPlatformConfig.type` attribute
19        of this class is ``AMD_ROME_BM`` and it should not be changed.
20        The following keyword arguments are supported (corresponding to the getters/setters of this class):
21
22        :param type:
23            The value to assign to the type property of this AmdRomeBmPlatformConfig.
24            Allowed values for this property are: "AMD_MILAN_BM", "AMD_ROME_BM", "INTEL_SKYLAKE_BM", "AMD_VM", "INTEL_VM"
25        :type type: str
26
27        :param is_secure_boot_enabled:
28            The value to assign to the is_secure_boot_enabled property of this AmdRomeBmPlatformConfig.
29        :type is_secure_boot_enabled: bool
30
31        :param is_trusted_platform_module_enabled:
32            The value to assign to the is_trusted_platform_module_enabled property of this AmdRomeBmPlatformConfig.
33        :type is_trusted_platform_module_enabled: bool
34
35        :param is_measured_boot_enabled:
36            The value to assign to the is_measured_boot_enabled property of this AmdRomeBmPlatformConfig.
37        :type is_measured_boot_enabled: bool
38
39        """
40        self.swagger_types = {
41            'type': 'str',
42            'is_secure_boot_enabled': 'bool',
43            'is_trusted_platform_module_enabled': 'bool',
44            'is_measured_boot_enabled': 'bool'
45        }
46
47        self.attribute_map = {
48            'type': 'type',
49            'is_secure_boot_enabled': 'isSecureBootEnabled',
50            'is_trusted_platform_module_enabled': 'isTrustedPlatformModuleEnabled',
51            'is_measured_boot_enabled': 'isMeasuredBootEnabled'
52        }
53
54        self._type = None
55        self._is_secure_boot_enabled = None
56        self._is_trusted_platform_module_enabled = None
57        self._is_measured_boot_enabled = None
58        self._type = 'AMD_ROME_BM'
59
60    def __repr__(self):
61        return formatted_flat_dict(self)
62
63    def __eq__(self, other):
64        if other is None:
65            return False
66
67        return self.__dict__ == other.__dict__
68
69    def __ne__(self, other):
70        return not self == other
71