Sha256: 43205c9a799aa9e6d65c525155300d64e11caedc6eee08d976fbb6c93159c82b

Contents?: true

Size: 1.82 KB

Versions: 4

Compression:

Stored size: 1.82 KB

Contents

# 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_preview
  module Models
    #
    # A condition to be satisfied for an action to be executed.
    #
    class Trigger

      include MsRestAzure

      # @return [Integer] Percentage of lifetime at which to trigger. Value
      # should be between 1 and 99.
      attr_accessor :lifetime_percentage

      # @return [Integer] Days before expiry to attempt renewal. Value should
      # be between 1 and validity_in_months multiplied by 27. If
      # validity_in_months is 36, then value should be between 1 and 972 (36 *
      # 27).
      attr_accessor :days_before_expiry


      #
      # Mapper for Trigger class as Ruby Hash.
      # This will be used for serialization/deserialization.
      #
      def self.mapper()
        {
          client_side_validation: true,
          required: false,
          serialized_name: 'Trigger',
          type: {
            name: 'Composite',
            class_name: 'Trigger',
            model_properties: {
              lifetime_percentage: {
                client_side_validation: true,
                required: false,
                serialized_name: 'lifetime_percentage',
                constraints: {
                  InclusiveMaximum: 99,
                  InclusiveMinimum: 1
                },
                type: {
                  name: 'Number'
                }
              },
              days_before_expiry: {
                client_side_validation: true,
                required: false,
                serialized_name: 'days_before_expiry',
                type: {
                  name: 'Number'
                }
              }
            }
          }
        }
      end
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
azure_key_vault-0.19.1 lib/7.1-preview/generated/azure_key_vault/models/trigger.rb
azure_key_vault-0.19.0 lib/7.1-preview/generated/azure_key_vault/models/trigger.rb
azure_key_vault-0.18.1 lib/7.1-preview/generated/azure_key_vault/models/trigger.rb
azure_key_vault-0.18.0 lib/7.1-preview/generated/azure_key_vault/models/trigger.rb