Class: Azure::CDN::Mgmt::V2015_06_01::Models::EndpointUpdateParameters

Inherits:
Object
  • Object
show all
Includes:
MsRestAzure
Defined in:
lib/2015-06-01/generated/azure_mgmt_cdn/models/endpoint_update_parameters.rb

Overview

Endpoint properties required for new endpoint creation.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Attribute Details

#content_types_to_compressArray<String>

be applied. The value for the elements should be a valid MIME type.

Returns:

  • (Array<String>)

    List of content types on which compression will



28
29
30
# File 'lib/2015-06-01/generated/azure_mgmt_cdn/models/endpoint_update_parameters.rb', line 28

def content_types_to_compress
  @content_types_to_compress
end

#is_compression_enabledBoolean

Default value is false. If compression is enabled, the content transferred from the CDN endpoint to the end user will be compressed. The requested content must be larger than 1 byte and smaller than 1 MB.

Returns:

  • (Boolean)

    Indicates whether content compression is enabled.



34
35
36
# File 'lib/2015-06-01/generated/azure_mgmt_cdn/models/endpoint_update_parameters.rb', line 34

def is_compression_enabled
  @is_compression_enabled
end

#is_http_allowedBoolean

endpoint. Default value is true. At least one protocol (HTTP or HTTPS) must be allowed.

Returns:

  • (Boolean)

    Indicates whether HTTP traffic is allowed on the



39
40
41
# File 'lib/2015-06-01/generated/azure_mgmt_cdn/models/endpoint_update_parameters.rb', line 39

def is_http_allowed
  @is_http_allowed
end

#is_https_allowedBoolean

endpoint. Default value is true. At least one protocol (HTTP or HTTPS) must be allowed.

Returns:

  • (Boolean)

    Indicates whether HTTPS traffic is allowed on the



44
45
46
# File 'lib/2015-06-01/generated/azure_mgmt_cdn/models/endpoint_update_parameters.rb', line 44

def is_https_allowed
  @is_https_allowed
end

#origin_host_headerString

content requests to origins. The default value is the host name of the origin.

Returns:

  • (String)

    The host header the CDN provider will send along with



21
22
23
# File 'lib/2015-06-01/generated/azure_mgmt_cdn/models/endpoint_update_parameters.rb', line 21

def origin_host_header
  @origin_host_header
end

#origin_pathString

Returns The path used for origin requests.

Returns:

  • (String)

    The path used for origin requests.



24
25
26
# File 'lib/2015-06-01/generated/azure_mgmt_cdn/models/endpoint_update_parameters.rb', line 24

def origin_path
  @origin_path
end

#query_string_caching_behaviorQueryStringCachingBehavior

behavior. Possible values include: ‘IgnoreQueryString’, ‘BypassCaching’, ‘UseQueryString’, ‘NotSet’

Returns:



49
50
51
# File 'lib/2015-06-01/generated/azure_mgmt_cdn/models/endpoint_update_parameters.rb', line 49

def query_string_caching_behavior
  @query_string_caching_behavior
end

#tagsHash{String => String}

Returns Endpoint tags.

Returns:

  • (Hash{String => String})

    Endpoint tags



16
17
18
# File 'lib/2015-06-01/generated/azure_mgmt_cdn/models/endpoint_update_parameters.rb', line 16

def tags
  @tags
end

Class Method Details

.mapperObject

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



56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
# File 'lib/2015-06-01/generated/azure_mgmt_cdn/models/endpoint_update_parameters.rb', line 56

def self.mapper()
  {
    required: false,
    serialized_name: 'EndpointUpdateParameters',
    type: {
      name: 'Composite',
      class_name: 'EndpointUpdateParameters',
      model_properties: {
        tags: {
          required: false,
          serialized_name: 'tags',
          type: {
            name: 'Dictionary',
            value: {
                required: false,
                serialized_name: 'StringElementType',
                type: {
                  name: 'String'
                }
            }
          }
        },
        origin_host_header: {
          required: false,
          serialized_name: 'properties.originHostHeader',
          type: {
            name: 'String'
          }
        },
        origin_path: {
          required: false,
          serialized_name: 'properties.originPath',
          type: {
            name: 'String'
          }
        },
        content_types_to_compress: {
          required: false,
          serialized_name: 'properties.contentTypesToCompress',
          type: {
            name: 'Sequence',
            element: {
                required: false,
                serialized_name: 'StringElementType',
                type: {
                  name: 'String'
                }
            }
          }
        },
        is_compression_enabled: {
          required: false,
          serialized_name: 'properties.isCompressionEnabled',
          type: {
            name: 'Boolean'
          }
        },
        is_http_allowed: {
          required: false,
          serialized_name: 'properties.isHttpAllowed',
          type: {
            name: 'Boolean'
          }
        },
        is_https_allowed: {
          required: false,
          serialized_name: 'properties.isHttpsAllowed',
          type: {
            name: 'Boolean'
          }
        },
        query_string_caching_behavior: {
          required: false,
          serialized_name: 'properties.queryStringCachingBehavior',
          type: {
            name: 'Enum',
            module: 'QueryStringCachingBehavior'
          }
        }
      }
    }
  }
end