1# coding=utf-8
2# --------------------------------------------------------------------------
3# Copyright (c) Microsoft Corporation. All rights reserved.
4# Licensed under the MIT License. See License.txt in the project root for
5# license information.
6#
7# Code generated by Microsoft (R) AutoRest Code Generator.
8# Changes may cause incorrect behavior and will be lost if the code is
9# regenerated.
10# --------------------------------------------------------------------------
11
12from msrest.serialization import Model
13
14
15class KeyProperties(Model):
16    """Properties of the key pair backing a certificate.
17
18    :param exportable: Indicates if the private key can be exported.
19    :type exportable: bool
20    :param key_type: The key type.
21    :type key_type: str
22    :param key_size: The key size in bits. For example: 2048, 3072, or 4096
23     for RSA.
24    :type key_size: int
25    :param reuse_key: Indicates if the same key pair will be used on
26     certificate renewal.
27    :type reuse_key: bool
28    """
29
30    _attribute_map = {
31        'exportable': {'key': 'exportable', 'type': 'bool'},
32        'key_type': {'key': 'kty', 'type': 'str'},
33        'key_size': {'key': 'key_size', 'type': 'int'},
34        'reuse_key': {'key': 'reuse_key', 'type': 'bool'},
35    }
36
37    def __init__(self, *, exportable: bool=None, key_type: str=None, key_size: int=None, reuse_key: bool=None, **kwargs) -> None:
38        super(KeyProperties, self).__init__(**kwargs)
39        self.exportable = exportable
40        self.key_type = key_type
41        self.key_size = key_size
42        self.reuse_key = reuse_key
43