# encoding: utf-8
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.

module Azure::KeyVault::V7_1
  module Models
    #
    # The key operations parameters.
    #
    class KeySignParameters

      include MsRestAzure

      # @return [JsonWebKeySignatureAlgorithm] The signing/verification
      # algorithm identifier. For more information on possible algorithm types,
      # see JsonWebKeySignatureAlgorithm. Possible values include: 'PS256',
      # 'PS384', 'PS512', 'RS256', 'RS384', 'RS512', 'RSNULL', 'ES256',
      # 'ES384', 'ES512', 'ES256K'
      attr_accessor :algorithm

      # @return
      attr_accessor :value


      #
      # Mapper for KeySignParameters class as Ruby Hash.
      # This will be used for serialization/deserialization.
      #
      def self.mapper()
        {
          client_side_validation: true,
          required: false,
          serialized_name: 'KeySignParameters',
          type: {
            name: 'Composite',
            class_name: 'KeySignParameters',
            model_properties: {
              algorithm: {
                client_side_validation: true,
                required: true,
                serialized_name: 'alg',
                constraints: {
                  MinLength: 1
                },
                type: {
                  name: 'String'
                }
              },
              value: {
                client_side_validation: true,
                required: true,
                serialized_name: 'value',
                type: {
                  name: 'Base64Url'
                }
              }
            }
          }
        }
      end
    end
  end
end
