Sha256: a76cea998c47605806f2b6ff4587b9f371654fce832fbd44d6b4ff7b9adcc341

Contents?: true

Size: 1.59 KB

Versions: 2

Compression:

Stored size: 1.59 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::CDN::Mgmt::V2020_09_01
  module Models
    #
    # An action for the delivery rule.
    #
    class DeliveryRuleAction

      include MsRestAzure

      @@discriminatorMap = Hash.new
      @@discriminatorMap["UrlRedirect"] = "UrlRedirectAction"
      @@discriminatorMap["UrlSigning"] = "UrlSigningAction"
      @@discriminatorMap["OriginGroupOverride"] = "OriginGroupOverrideAction"
      @@discriminatorMap["UrlRewrite"] = "UrlRewriteAction"
      @@discriminatorMap["ModifyRequestHeader"] = "DeliveryRuleRequestHeaderAction"
      @@discriminatorMap["ModifyResponseHeader"] = "DeliveryRuleResponseHeaderAction"
      @@discriminatorMap["CacheExpiration"] = "DeliveryRuleCacheExpirationAction"
      @@discriminatorMap["CacheKeyQueryString"] = "DeliveryRuleCacheKeyQueryStringAction"

      def initialize
        @name = "DeliveryRuleAction"
      end

      attr_accessor :name


      #
      # Mapper for DeliveryRuleAction class as Ruby Hash.
      # This will be used for serialization/deserialization.
      #
      def self.mapper()
        {
          client_side_validation: true,
          required: false,
          serialized_name: 'DeliveryRuleAction',
          type: {
            name: 'Composite',
            polymorphic_discriminator: 'name',
            uber_parent: 'DeliveryRuleAction',
            class_name: 'DeliveryRuleAction',
            model_properties: {
            }
          }
        }
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
azure_mgmt_cdn-0.18.2 lib/2020-09-01/generated/azure_mgmt_cdn/models/delivery_rule_action.rb
azure_mgmt_cdn-0.18.1 lib/2020-09-01/generated/azure_mgmt_cdn/models/delivery_rule_action.rb