class Azure::CDN::Mgmt::V2020_09_01::Models::CacheExpirationActionParameters

Defines the parameters for the cache expiration action.

Attributes

cache_behavior[RW]

@return [CacheBehavior] Caching behavior for the requests. Possible values include: 'BypassCache', 'Override', 'SetIfMissing'

cache_duration[RW]

@return [String] The duration for which the content needs to be cached. Allowed format is [d.]hh:mm:ss

cache_type[RW]

@return [String] The level at which the content needs to be cached. Default value: 'All' .

odatatype[RW]

@return [String] . Default value: '#Microsoft.Azure.Cdn.Models.DeliveryRuleCacheExpirationActionParameters' .

Private Class Methods

mapper() click to toggle source

Mapper for CacheExpirationActionParameters class as Ruby Hash. This will be used for serialization/deserialization.

# File lib/2020-09-01/generated/azure_mgmt_cdn/models/cache_expiration_action_parameters.rb, line 37
def self.mapper()
  {
    client_side_validation: true,
    required: false,
    serialized_name: 'CacheExpirationActionParameters',
    type: {
      name: 'Composite',
      class_name: 'CacheExpirationActionParameters',
      model_properties: {
        odatatype: {
          client_side_validation: true,
          required: true,
          is_constant: true,
          serialized_name: '@odata\\.type',
          default_value: '#Microsoft.Azure.Cdn.Models.DeliveryRuleCacheExpirationActionParameters',
          type: {
            name: 'String'
          }
        },
        cache_behavior: {
          client_side_validation: true,
          required: true,
          serialized_name: 'cacheBehavior',
          type: {
            name: 'String'
          }
        },
        cache_type: {
          client_side_validation: true,
          required: true,
          is_constant: true,
          serialized_name: 'cacheType',
          default_value: 'All',
          type: {
            name: 'String'
          }
        },
        cache_duration: {
          client_side_validation: true,
          required: false,
          serialized_name: 'cacheDuration',
          type: {
            name: 'String'
          }
        }
      }
    }
  }
end