class Azure::CDN::Mgmt::V2017_10_12::Models::CacheExpirationActionParameters
Defines the parameters for the cache expiration action.
Attributes
cache_behavior[RW]
@return [Enum] Caching behavior for the requests that include query strings. 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' .
Public Class Methods
mapper()
click to toggle source
Mapper for CacheExpirationActionParameters
class as Ruby Hash. This will be used for serialization/deserialization.
# File lib/2017-10-12/generated/azure_mgmt_cdn/models/cache_expiration_action_parameters.rb, line 38 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