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
5
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 KerberosDetails(object):
12    """
13    Details about the Kerberos principals.
14    """
15
16    def __init__(self, **kwargs):
17        """
18        Initializes a new KerberosDetails object with values from keyword arguments.
19        The following keyword arguments are supported (corresponding to the getters/setters of this class):
20
21        :param principal_name:
22            The value to assign to the principal_name property of this KerberosDetails.
23        :type principal_name: str
24
25        :param keytab_file:
26            The value to assign to the keytab_file property of this KerberosDetails.
27        :type keytab_file: str
28
29        """
30        self.swagger_types = {
31            'principal_name': 'str',
32            'keytab_file': 'str'
33        }
34
35        self.attribute_map = {
36            'principal_name': 'principalName',
37            'keytab_file': 'keytabFile'
38        }
39
40        self._principal_name = None
41        self._keytab_file = None
42
43    @property
44    def principal_name(self):
45        """
46        **[Required]** Gets the principal_name of this KerberosDetails.
47        Name of the Kerberos principal.
48
49
50        :return: The principal_name of this KerberosDetails.
51        :rtype: str
52        """
53        return self._principal_name
54
55    @principal_name.setter
56    def principal_name(self, principal_name):
57        """
58        Sets the principal_name of this KerberosDetails.
59        Name of the Kerberos principal.
60
61
62        :param principal_name: The principal_name of this KerberosDetails.
63        :type: str
64        """
65        self._principal_name = principal_name
66
67    @property
68    def keytab_file(self):
69        """
70        **[Required]** Gets the keytab_file of this KerberosDetails.
71        Location of the keytab file
72
73
74        :return: The keytab_file of this KerberosDetails.
75        :rtype: str
76        """
77        return self._keytab_file
78
79    @keytab_file.setter
80    def keytab_file(self, keytab_file):
81        """
82        Sets the keytab_file of this KerberosDetails.
83        Location of the keytab file
84
85
86        :param keytab_file: The keytab_file of this KerberosDetails.
87        :type: str
88        """
89        self._keytab_file = keytab_file
90
91    def __repr__(self):
92        return formatted_flat_dict(self)
93
94    def __eq__(self, other):
95        if other is None:
96            return False
97
98        return self.__dict__ == other.__dict__
99
100    def __ne__(self, other):
101        return not self == other
102