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 KeySignParameters(Model):
16    """The key operations parameters.
17
18    All required parameters must be populated in order to send to Azure.
19
20    :param algorithm: Required. The signing/verification algorithm identifier.
21     For more information on possible algorithm types, see
22     JsonWebKeySignatureAlgorithm. Possible values include: 'PS256', 'PS384',
23     'PS512', 'RS256', 'RS384', 'RS512', 'RSNULL', 'ES256', 'ES384', 'ES512',
24     'ECDSA256'
25    :type algorithm: str or
26     ~azure.keyvault.v2016_10_01.models.JsonWebKeySignatureAlgorithm
27    :param value: Required.
28    :type value: bytes
29    """
30
31    _validation = {
32        'algorithm': {'required': True, 'min_length': 1},
33        'value': {'required': True},
34    }
35
36    _attribute_map = {
37        'algorithm': {'key': 'alg', 'type': 'str'},
38        'value': {'key': 'value', 'type': 'base64'},
39    }
40
41    def __init__(self, **kwargs):
42        super(KeySignParameters, self).__init__(**kwargs)
43        self.algorithm = kwargs.get('algorithm', None)
44        self.value = kwargs.get('value', None)
45