Sha256: 320797e82c161dbf88b766d2aa3b1c6bb4f84519a53e0c5dad0dbf5479322311

Contents?: true

Size: 1.82 KB

Versions: 10

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::V2016_10_01
  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

10 entries across 10 versions & 1 rubygems

Version Path
azure_key_vault-0.19.1 lib/2016-10-01/generated/azure_key_vault/models/trigger.rb
azure_key_vault-0.19.0 lib/2016-10-01/generated/azure_key_vault/models/trigger.rb
azure_key_vault-0.18.1 lib/2016-10-01/generated/azure_key_vault/models/trigger.rb
azure_key_vault-0.18.0 lib/2016-10-01/generated/azure_key_vault/models/trigger.rb
azure_key_vault-0.17.4 lib/2016-10-01/generated/azure_key_vault/models/trigger.rb
azure_key_vault-0.17.3 lib/2016-10-01/generated/azure_key_vault/models/trigger.rb
azure_key_vault-0.17.2 lib/2016-10-01/generated/azure_key_vault/models/trigger.rb
azure_key_vault-0.17.1 lib/2016-10-01/generated/azure_key_vault/models/trigger.rb
azure_key_vault-0.17.0 lib/2016-10-01/generated/azure_key_vault/models/trigger.rb
azure_key_vault-0.16.0 lib/2016-10-01/generated/azure_key_vault/models/trigger.rb