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 KeyOperationsParameters(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. algorithm identifier. Possible values include:
21     'RSA-OAEP', 'RSA-OAEP-256', 'RSA1_5'
22    :type algorithm: str or
23     ~azure.keyvault.v2016_10_01.models.JsonWebKeyEncryptionAlgorithm
24    :param value: Required.
25    :type value: bytes
26    """
27
28    _validation = {
29        'algorithm': {'required': True, 'min_length': 1},
30        'value': {'required': True},
31    }
32
33    _attribute_map = {
34        'algorithm': {'key': 'alg', 'type': 'str'},
35        'value': {'key': 'value', 'type': 'base64'},
36    }
37
38    def __init__(self, *, algorithm, value: bytes, **kwargs) -> None:
39        super(KeyOperationsParameters, self).__init__(**kwargs)
40        self.algorithm = algorithm
41        self.value = value
42