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 VaultUsage(object): 12 """ 13 VaultUsage model. 14 """ 15 16 def __init__(self, **kwargs): 17 """ 18 Initializes a new VaultUsage object with values from keyword arguments. 19 The following keyword arguments are supported (corresponding to the getters/setters of this class): 20 21 :param key_count: 22 The value to assign to the key_count property of this VaultUsage. 23 :type key_count: int 24 25 :param key_version_count: 26 The value to assign to the key_version_count property of this VaultUsage. 27 :type key_version_count: int 28 29 :param software_key_count: 30 The value to assign to the software_key_count property of this VaultUsage. 31 :type software_key_count: int 32 33 :param software_key_version_count: 34 The value to assign to the software_key_version_count property of this VaultUsage. 35 :type software_key_version_count: int 36 37 """ 38 self.swagger_types = { 39 'key_count': 'int', 40 'key_version_count': 'int', 41 'software_key_count': 'int', 42 'software_key_version_count': 'int' 43 } 44 45 self.attribute_map = { 46 'key_count': 'keyCount', 47 'key_version_count': 'keyVersionCount', 48 'software_key_count': 'softwareKeyCount', 49 'software_key_version_count': 'softwareKeyVersionCount' 50 } 51 52 self._key_count = None 53 self._key_version_count = None 54 self._software_key_count = None 55 self._software_key_version_count = None 56 57 @property 58 def key_count(self): 59 """ 60 **[Required]** Gets the key_count of this VaultUsage. 61 The number of keys in this vault that persist on a hardware security module (HSM), across all compartments, excluding keys in a `DELETED` state. 62 63 64 :return: The key_count of this VaultUsage. 65 :rtype: int 66 """ 67 return self._key_count 68 69 @key_count.setter 70 def key_count(self, key_count): 71 """ 72 Sets the key_count of this VaultUsage. 73 The number of keys in this vault that persist on a hardware security module (HSM), across all compartments, excluding keys in a `DELETED` state. 74 75 76 :param key_count: The key_count of this VaultUsage. 77 :type: int 78 """ 79 self._key_count = key_count 80 81 @property 82 def key_version_count(self): 83 """ 84 **[Required]** Gets the key_version_count of this VaultUsage. 85 The number of key versions in this vault that persist on a hardware security module (HSM), across all compartments, excluding key versions in a `DELETED` state. 86 87 88 :return: The key_version_count of this VaultUsage. 89 :rtype: int 90 """ 91 return self._key_version_count 92 93 @key_version_count.setter 94 def key_version_count(self, key_version_count): 95 """ 96 Sets the key_version_count of this VaultUsage. 97 The number of key versions in this vault that persist on a hardware security module (HSM), across all compartments, excluding key versions in a `DELETED` state. 98 99 100 :param key_version_count: The key_version_count of this VaultUsage. 101 :type: int 102 """ 103 self._key_version_count = key_version_count 104 105 @property 106 def software_key_count(self): 107 """ 108 Gets the software_key_count of this VaultUsage. 109 The number of keys in this vault that persist on the server, across all compartments, excluding keys in a `DELETED` state. 110 111 112 :return: The software_key_count of this VaultUsage. 113 :rtype: int 114 """ 115 return self._software_key_count 116 117 @software_key_count.setter 118 def software_key_count(self, software_key_count): 119 """ 120 Sets the software_key_count of this VaultUsage. 121 The number of keys in this vault that persist on the server, across all compartments, excluding keys in a `DELETED` state. 122 123 124 :param software_key_count: The software_key_count of this VaultUsage. 125 :type: int 126 """ 127 self._software_key_count = software_key_count 128 129 @property 130 def software_key_version_count(self): 131 """ 132 Gets the software_key_version_count of this VaultUsage. 133 The number of key versions in this vault that persist on the server, across all compartments, excluding key versions in a `DELETED` state. 134 135 136 :return: The software_key_version_count of this VaultUsage. 137 :rtype: int 138 """ 139 return self._software_key_version_count 140 141 @software_key_version_count.setter 142 def software_key_version_count(self, software_key_version_count): 143 """ 144 Sets the software_key_version_count of this VaultUsage. 145 The number of key versions in this vault that persist on the server, across all compartments, excluding key versions in a `DELETED` state. 146 147 148 :param software_key_version_count: The software_key_version_count of this VaultUsage. 149 :type: int 150 """ 151 self._software_key_version_count = software_key_version_count 152 153 def __repr__(self): 154 return formatted_flat_dict(self) 155 156 def __eq__(self, other): 157 if other is None: 158 return False 159 160 return self.__dict__ == other.__dict__ 161 162 def __ne__(self, other): 163 return not self == other 164