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 CreateMacsecKey(object):
12    """
13    Defines the secret `OCID`__s held in Vault that represent the MACsec key.
14
15    __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm
16    """
17
18    def __init__(self, **kwargs):
19        """
20        Initializes a new CreateMacsecKey object with values from keyword arguments.
21        The following keyword arguments are supported (corresponding to the getters/setters of this class):
22
23        :param connectivity_association_name_secret_id:
24            The value to assign to the connectivity_association_name_secret_id property of this CreateMacsecKey.
25        :type connectivity_association_name_secret_id: str
26
27        :param connectivity_association_key_secret_id:
28            The value to assign to the connectivity_association_key_secret_id property of this CreateMacsecKey.
29        :type connectivity_association_key_secret_id: str
30
31        """
32        self.swagger_types = {
33            'connectivity_association_name_secret_id': 'str',
34            'connectivity_association_key_secret_id': 'str'
35        }
36
37        self.attribute_map = {
38            'connectivity_association_name_secret_id': 'connectivityAssociationNameSecretId',
39            'connectivity_association_key_secret_id': 'connectivityAssociationKeySecretId'
40        }
41
42        self._connectivity_association_name_secret_id = None
43        self._connectivity_association_key_secret_id = None
44
45    @property
46    def connectivity_association_name_secret_id(self):
47        """
48        **[Required]** Gets the connectivity_association_name_secret_id of this CreateMacsecKey.
49        Secret `OCID`__ containing the Connectivity association Key Name (CKN) of this MACsec key.
50
51        NOTE: Only the latest secret version will be used.
52
53        __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm
54
55
56        :return: The connectivity_association_name_secret_id of this CreateMacsecKey.
57        :rtype: str
58        """
59        return self._connectivity_association_name_secret_id
60
61    @connectivity_association_name_secret_id.setter
62    def connectivity_association_name_secret_id(self, connectivity_association_name_secret_id):
63        """
64        Sets the connectivity_association_name_secret_id of this CreateMacsecKey.
65        Secret `OCID`__ containing the Connectivity association Key Name (CKN) of this MACsec key.
66
67        NOTE: Only the latest secret version will be used.
68
69        __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm
70
71
72        :param connectivity_association_name_secret_id: The connectivity_association_name_secret_id of this CreateMacsecKey.
73        :type: str
74        """
75        self._connectivity_association_name_secret_id = connectivity_association_name_secret_id
76
77    @property
78    def connectivity_association_key_secret_id(self):
79        """
80        **[Required]** Gets the connectivity_association_key_secret_id of this CreateMacsecKey.
81        Secret `OCID`__ containing the Connectivity Association Key (CAK) of this MACsec key.
82
83        NOTE: Only the latest secret version will be used.
84
85        __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm
86
87
88        :return: The connectivity_association_key_secret_id of this CreateMacsecKey.
89        :rtype: str
90        """
91        return self._connectivity_association_key_secret_id
92
93    @connectivity_association_key_secret_id.setter
94    def connectivity_association_key_secret_id(self, connectivity_association_key_secret_id):
95        """
96        Sets the connectivity_association_key_secret_id of this CreateMacsecKey.
97        Secret `OCID`__ containing the Connectivity Association Key (CAK) of this MACsec key.
98
99        NOTE: Only the latest secret version will be used.
100
101        __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm
102
103
104        :param connectivity_association_key_secret_id: The connectivity_association_key_secret_id of this CreateMacsecKey.
105        :type: str
106        """
107        self._connectivity_association_key_secret_id = connectivity_association_key_secret_id
108
109    def __repr__(self):
110        return formatted_flat_dict(self)
111
112    def __eq__(self, other):
113        if other is None:
114            return False
115
116        return self.__dict__ == other.__dict__
117
118    def __ne__(self, other):
119        return not self == other
120