azure_mgmt_cdn 0.15.2 → 0.16.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (154) hide show
  1. checksums.yaml +4 -4
  2. data/lib/2015-06-01/generated/azure_mgmt_cdn/cdn_management_client.rb +4 -1
  3. data/lib/2015-06-01/generated/azure_mgmt_cdn/custom_domains.rb +38 -37
  4. data/lib/2015-06-01/generated/azure_mgmt_cdn/endpoints.rb +88 -88
  5. data/lib/2015-06-01/generated/azure_mgmt_cdn/name_availability.rb +6 -7
  6. data/lib/2015-06-01/generated/azure_mgmt_cdn/operations.rb +6 -5
  7. data/lib/2015-06-01/generated/azure_mgmt_cdn/origins.rb +42 -41
  8. data/lib/2015-06-01/generated/azure_mgmt_cdn/profiles.rb +54 -51
  9. data/lib/2016-04-02/generated/azure_mgmt_cdn.rb +70 -0
  10. data/lib/2016-04-02/generated/azure_mgmt_cdn/cdn_management_client.rb +151 -0
  11. data/lib/2016-04-02/generated/azure_mgmt_cdn/custom_domains.rb +719 -0
  12. data/lib/2016-04-02/generated/azure_mgmt_cdn/endpoints.rb +1456 -0
  13. data/lib/2016-04-02/generated/azure_mgmt_cdn/models/check_name_availability_input.rb +60 -0
  14. data/lib/2016-04-02/generated/azure_mgmt_cdn/models/check_name_availability_output.rb +69 -0
  15. data/lib/2016-04-02/generated/azure_mgmt_cdn/models/custom_domain.rb +103 -0
  16. data/lib/2016-04-02/generated/azure_mgmt_cdn/models/custom_domain_list_result.rb +57 -0
  17. data/lib/2016-04-02/generated/azure_mgmt_cdn/models/custom_domain_parameters.rb +47 -0
  18. data/lib/2016-04-02/generated/azure_mgmt_cdn/models/custom_domain_resource_state.rb +17 -0
  19. data/lib/2016-04-02/generated/azure_mgmt_cdn/models/deep_created_origin.rb +82 -0
  20. data/lib/2016-04-02/generated/azure_mgmt_cdn/models/endpoint.rb +249 -0
  21. data/lib/2016-04-02/generated/azure_mgmt_cdn/models/endpoint_create_parameters.rb +185 -0
  22. data/lib/2016-04-02/generated/azure_mgmt_cdn/models/endpoint_list_result.rb +56 -0
  23. data/lib/2016-04-02/generated/azure_mgmt_cdn/models/endpoint_resource_state.rb +20 -0
  24. data/lib/2016-04-02/generated/azure_mgmt_cdn/models/endpoint_update_parameters.rb +152 -0
  25. data/lib/2016-04-02/generated/azure_mgmt_cdn/models/error_response.rb +58 -0
  26. data/lib/2016-04-02/generated/azure_mgmt_cdn/models/load_parameters.rb +55 -0
  27. data/lib/2016-04-02/generated/azure_mgmt_cdn/models/operation.rb +58 -0
  28. data/lib/2016-04-02/generated/azure_mgmt_cdn/models/operation_display.rb +70 -0
  29. data/lib/2016-04-02/generated/azure_mgmt_cdn/models/operation_list_result.rb +57 -0
  30. data/lib/2016-04-02/generated/azure_mgmt_cdn/models/origin.rb +128 -0
  31. data/lib/2016-04-02/generated/azure_mgmt_cdn/models/origin_list_result.rb +56 -0
  32. data/lib/2016-04-02/generated/azure_mgmt_cdn/models/origin_parameters.rb +71 -0
  33. data/lib/2016-04-02/generated/azure_mgmt_cdn/models/origin_resource_state.rb +17 -0
  34. data/lib/2016-04-02/generated/azure_mgmt_cdn/models/profile.rb +128 -0
  35. data/lib/2016-04-02/generated/azure_mgmt_cdn/models/profile_create_parameters.rb +77 -0
  36. data/lib/2016-04-02/generated/azure_mgmt_cdn/models/profile_list_result.rb +56 -0
  37. data/lib/2016-04-02/generated/azure_mgmt_cdn/models/profile_resource_state.rb +18 -0
  38. data/lib/2016-04-02/generated/azure_mgmt_cdn/models/profile_update_parameters.rb +54 -0
  39. data/lib/2016-04-02/generated/azure_mgmt_cdn/models/provisioning_state.rb +17 -0
  40. data/lib/2016-04-02/generated/azure_mgmt_cdn/models/purge_parameters.rb +55 -0
  41. data/lib/2016-04-02/generated/azure_mgmt_cdn/models/query_string_caching_behavior.rb +18 -0
  42. data/lib/2016-04-02/generated/azure_mgmt_cdn/models/resource.rb +72 -0
  43. data/lib/2016-04-02/generated/azure_mgmt_cdn/models/resource_type.rb +15 -0
  44. data/lib/2016-04-02/generated/azure_mgmt_cdn/models/sku.rb +49 -0
  45. data/lib/2016-04-02/generated/azure_mgmt_cdn/models/sku_name.rb +18 -0
  46. data/lib/2016-04-02/generated/azure_mgmt_cdn/models/sso_uri.rb +46 -0
  47. data/lib/2016-04-02/generated/azure_mgmt_cdn/models/tracked_resource.rb +92 -0
  48. data/lib/2016-04-02/generated/azure_mgmt_cdn/models/validate_custom_domain_input.rb +47 -0
  49. data/lib/2016-04-02/generated/azure_mgmt_cdn/models/validate_custom_domain_output.rb +70 -0
  50. data/lib/2016-04-02/generated/azure_mgmt_cdn/module_definition.rb +9 -0
  51. data/lib/2016-04-02/generated/azure_mgmt_cdn/name_availability.rb +130 -0
  52. data/lib/2016-04-02/generated/azure_mgmt_cdn/operations.rb +110 -0
  53. data/lib/2016-04-02/generated/azure_mgmt_cdn/origins.rb +778 -0
  54. data/lib/2016-04-02/generated/azure_mgmt_cdn/profiles.rb +899 -0
  55. data/lib/2016-10-02/generated/azure_mgmt_cdn/cdn_management_client.rb +46 -38
  56. data/lib/2016-10-02/generated/azure_mgmt_cdn/custom_domains.rb +53 -48
  57. data/lib/2016-10-02/generated/azure_mgmt_cdn/edge_nodes.rb +15 -13
  58. data/lib/2016-10-02/generated/azure_mgmt_cdn/endpoints.rb +112 -109
  59. data/lib/2016-10-02/generated/azure_mgmt_cdn/origins.rb +31 -29
  60. data/lib/2016-10-02/generated/azure_mgmt_cdn/profiles.rb +93 -85
  61. data/lib/2017-04-02/generated/azure_mgmt_cdn.rb +18 -16
  62. data/lib/2017-04-02/generated/azure_mgmt_cdn/cdn_management_client.rb +16 -15
  63. data/lib/2017-04-02/generated/azure_mgmt_cdn/custom_domains.rb +53 -48
  64. data/lib/2017-04-02/generated/azure_mgmt_cdn/edge_nodes.rb +15 -13
  65. data/lib/2017-04-02/generated/azure_mgmt_cdn/endpoints.rb +136 -113
  66. data/lib/2017-04-02/generated/azure_mgmt_cdn/models/custom_domain.rb +1 -25
  67. data/lib/2017-04-02/generated/azure_mgmt_cdn/models/edge_node.rb +1 -25
  68. data/lib/2017-04-02/generated/azure_mgmt_cdn/models/endpoint.rb +6 -3
  69. data/lib/2017-04-02/generated/azure_mgmt_cdn/models/endpoint_update_parameters.rb +5 -2
  70. data/lib/2017-04-02/generated/azure_mgmt_cdn/models/origin.rb +1 -1
  71. data/lib/2017-04-02/generated/azure_mgmt_cdn/models/profile.rb +1 -1
  72. data/lib/2017-04-02/generated/azure_mgmt_cdn/models/profile_update_parameters.rb +1 -1
  73. data/lib/2017-04-02/generated/azure_mgmt_cdn/models/proxy_resource.rb +63 -0
  74. data/lib/2017-04-02/generated/azure_mgmt_cdn/models/resource.rb +1 -31
  75. data/lib/2017-04-02/generated/azure_mgmt_cdn/models/tracked_resource.rb +92 -0
  76. data/lib/2017-04-02/generated/azure_mgmt_cdn/operations.rb +15 -13
  77. data/lib/2017-04-02/generated/azure_mgmt_cdn/origins.rb +31 -29
  78. data/lib/2017-04-02/generated/azure_mgmt_cdn/profiles.rb +93 -85
  79. data/lib/2017-04-02/generated/azure_mgmt_cdn/resource_usage_operations.rb +15 -13
  80. data/lib/2017-10-12/generated/azure_mgmt_cdn.rb +93 -0
  81. data/lib/2017-10-12/generated/azure_mgmt_cdn/cdn_management_client.rb +358 -0
  82. data/lib/2017-10-12/generated/azure_mgmt_cdn/custom_domains.rb +970 -0
  83. data/lib/2017-10-12/generated/azure_mgmt_cdn/edge_nodes.rb +223 -0
  84. data/lib/2017-10-12/generated/azure_mgmt_cdn/endpoints.rb +1922 -0
  85. data/lib/2017-10-12/generated/azure_mgmt_cdn/models/cache_expiration_action_parameters.rb +89 -0
  86. data/lib/2017-10-12/generated/azure_mgmt_cdn/models/check_name_availability_input.rb +60 -0
  87. data/lib/2017-10-12/generated/azure_mgmt_cdn/models/check_name_availability_output.rb +72 -0
  88. data/lib/2017-10-12/generated/azure_mgmt_cdn/models/cidr_ip_address.rb +57 -0
  89. data/lib/2017-10-12/generated/azure_mgmt_cdn/models/custom_domain.rb +148 -0
  90. data/lib/2017-10-12/generated/azure_mgmt_cdn/models/custom_domain_list_result.rb +102 -0
  91. data/lib/2017-10-12/generated/azure_mgmt_cdn/models/custom_domain_parameters.rb +48 -0
  92. data/lib/2017-10-12/generated/azure_mgmt_cdn/models/custom_domain_resource_state.rb +17 -0
  93. data/lib/2017-10-12/generated/azure_mgmt_cdn/models/custom_https_provisioning_state.rb +19 -0
  94. data/lib/2017-10-12/generated/azure_mgmt_cdn/models/custom_https_provisioning_substate.rb +24 -0
  95. data/lib/2017-10-12/generated/azure_mgmt_cdn/models/deep_created_origin.rb +91 -0
  96. data/lib/2017-10-12/generated/azure_mgmt_cdn/models/delivery_rule.rb +96 -0
  97. data/lib/2017-10-12/generated/azure_mgmt_cdn/models/delivery_rule_action.rb +46 -0
  98. data/lib/2017-10-12/generated/azure_mgmt_cdn/models/delivery_rule_cache_expiration_action.rb +64 -0
  99. data/lib/2017-10-12/generated/azure_mgmt_cdn/models/delivery_rule_condition.rb +47 -0
  100. data/lib/2017-10-12/generated/azure_mgmt_cdn/models/delivery_rule_url_file_extension_condition.rb +64 -0
  101. data/lib/2017-10-12/generated/azure_mgmt_cdn/models/delivery_rule_url_path_condition.rb +64 -0
  102. data/lib/2017-10-12/generated/azure_mgmt_cdn/models/edge_node.rb +83 -0
  103. data/lib/2017-10-12/generated/azure_mgmt_cdn/models/edgenode_result.rb +101 -0
  104. data/lib/2017-10-12/generated/azure_mgmt_cdn/models/endpoint.rb +318 -0
  105. data/lib/2017-10-12/generated/azure_mgmt_cdn/models/endpoint_list_result.rb +101 -0
  106. data/lib/2017-10-12/generated/azure_mgmt_cdn/models/endpoint_properties_update_parameters_delivery_policy.rb +67 -0
  107. data/lib/2017-10-12/generated/azure_mgmt_cdn/models/endpoint_resource_state.rb +20 -0
  108. data/lib/2017-10-12/generated/azure_mgmt_cdn/models/endpoint_update_parameters.rb +223 -0
  109. data/lib/2017-10-12/generated/azure_mgmt_cdn/models/error_response.rb +60 -0
  110. data/lib/2017-10-12/generated/azure_mgmt_cdn/models/geo_filter.rb +80 -0
  111. data/lib/2017-10-12/generated/azure_mgmt_cdn/models/geo_filter_actions.rb +16 -0
  112. data/lib/2017-10-12/generated/azure_mgmt_cdn/models/ip_address_group.rb +86 -0
  113. data/lib/2017-10-12/generated/azure_mgmt_cdn/models/load_parameters.rb +55 -0
  114. data/lib/2017-10-12/generated/azure_mgmt_cdn/models/operation.rb +59 -0
  115. data/lib/2017-10-12/generated/azure_mgmt_cdn/models/operation_display.rb +72 -0
  116. data/lib/2017-10-12/generated/azure_mgmt_cdn/models/operations_list_result.rb +102 -0
  117. data/lib/2017-10-12/generated/azure_mgmt_cdn/models/optimization_type.rb +19 -0
  118. data/lib/2017-10-12/generated/azure_mgmt_cdn/models/origin.rb +158 -0
  119. data/lib/2017-10-12/generated/azure_mgmt_cdn/models/origin_list_result.rb +101 -0
  120. data/lib/2017-10-12/generated/azure_mgmt_cdn/models/origin_resource_state.rb +17 -0
  121. data/lib/2017-10-12/generated/azure_mgmt_cdn/models/origin_update_parameters.rb +79 -0
  122. data/lib/2017-10-12/generated/azure_mgmt_cdn/models/profile.rb +125 -0
  123. data/lib/2017-10-12/generated/azure_mgmt_cdn/models/profile_list_result.rb +101 -0
  124. data/lib/2017-10-12/generated/azure_mgmt_cdn/models/profile_resource_state.rb +18 -0
  125. data/lib/2017-10-12/generated/azure_mgmt_cdn/models/profile_update_parameters.rb +54 -0
  126. data/lib/2017-10-12/generated/azure_mgmt_cdn/models/proxy_resource.rb +63 -0
  127. data/lib/2017-10-12/generated/azure_mgmt_cdn/models/purge_parameters.rb +55 -0
  128. data/lib/2017-10-12/generated/azure_mgmt_cdn/models/query_string_caching_behavior.rb +18 -0
  129. data/lib/2017-10-12/generated/azure_mgmt_cdn/models/resource.rb +71 -0
  130. data/lib/2017-10-12/generated/azure_mgmt_cdn/models/resource_type.rb +15 -0
  131. data/lib/2017-10-12/generated/azure_mgmt_cdn/models/resource_usage.rb +83 -0
  132. data/lib/2017-10-12/generated/azure_mgmt_cdn/models/resource_usage_list_result.rb +100 -0
  133. data/lib/2017-10-12/generated/azure_mgmt_cdn/models/sku.rb +49 -0
  134. data/lib/2017-10-12/generated/azure_mgmt_cdn/models/sku_name.rb +19 -0
  135. data/lib/2017-10-12/generated/azure_mgmt_cdn/models/sso_uri.rb +48 -0
  136. data/lib/2017-10-12/generated/azure_mgmt_cdn/models/supported_optimization_types_list_result.rb +56 -0
  137. data/lib/2017-10-12/generated/azure_mgmt_cdn/models/tracked_resource.rb +92 -0
  138. data/lib/2017-10-12/generated/azure_mgmt_cdn/models/url_file_extension_condition_parameters.rb +70 -0
  139. data/lib/2017-10-12/generated/azure_mgmt_cdn/models/url_path_condition_parameters.rb +72 -0
  140. data/lib/2017-10-12/generated/azure_mgmt_cdn/models/validate_custom_domain_input.rb +47 -0
  141. data/lib/2017-10-12/generated/azure_mgmt_cdn/models/validate_custom_domain_output.rb +72 -0
  142. data/lib/2017-10-12/generated/azure_mgmt_cdn/models/validate_probe_input.rb +46 -0
  143. data/lib/2017-10-12/generated/azure_mgmt_cdn/models/validate_probe_output.rb +73 -0
  144. data/lib/2017-10-12/generated/azure_mgmt_cdn/module_definition.rb +9 -0
  145. data/lib/2017-10-12/generated/azure_mgmt_cdn/operations.rb +217 -0
  146. data/lib/2017-10-12/generated/azure_mgmt_cdn/origins.rb +556 -0
  147. data/lib/2017-10-12/generated/azure_mgmt_cdn/profiles.rb +1460 -0
  148. data/lib/2017-10-12/generated/azure_mgmt_cdn/resource_usage_operations.rb +226 -0
  149. data/lib/azure_mgmt_cdn.rb +2 -0
  150. data/lib/profiles/latest/cdn_latest_profile_client.rb +28 -9
  151. data/lib/profiles/latest/cdn_module_definition.rb +0 -1
  152. data/lib/profiles/latest/modules/cdn_profile_module.rb +277 -210
  153. data/lib/version.rb +1 -1
  154. metadata +119 -2
@@ -0,0 +1,185 @@
1
+ # encoding: utf-8
2
+ # Code generated by Microsoft (R) AutoRest Code Generator.
3
+ # Changes may cause incorrect behavior and will be lost if the code is
4
+ # regenerated.
5
+
6
+ module Azure::CDN::Mgmt::V2016_04_02
7
+ module Models
8
+ #
9
+ # Endpoint properties required for new endpoint creation.
10
+ #
11
+ class EndpointCreateParameters
12
+
13
+ include MsRestAzure
14
+
15
+ # @return [String] Endpoint location
16
+ attr_accessor :location
17
+
18
+ # @return [Hash{String => String}] Endpoint tags
19
+ attr_accessor :tags
20
+
21
+ # @return [String] The host header CDN provider will send along with
22
+ # content requests to origins. The default value is the host name of the
23
+ # origin.
24
+ attr_accessor :origin_host_header
25
+
26
+ # @return [String] The path used for origin requests.
27
+ attr_accessor :origin_path
28
+
29
+ # @return [Array<String>] List of content types on which compression will
30
+ # be applied. The value for the elements should be a valid MIME type.
31
+ attr_accessor :content_types_to_compress
32
+
33
+ # @return [Boolean] Indicates whether content compression is enabled.
34
+ # Default value is false. If compression is enabled, the content
35
+ # transferred from the CDN endpoint to the end user will be compressed.
36
+ # The requested content must be larger than 1 byte and smaller than 1 MB.
37
+ attr_accessor :is_compression_enabled
38
+
39
+ # @return [Boolean] Indicates whether HTTP traffic is allowed on the
40
+ # endpoint. Default value is true. At least one protocol (HTTP or HTTPS)
41
+ # must be allowed.
42
+ attr_accessor :is_http_allowed
43
+
44
+ # @return [Boolean] Indicates whether https traffic is allowed on the
45
+ # endpoint. Default value is true. At least one protocol (HTTP or HTTPS)
46
+ # must be allowed.
47
+ attr_accessor :is_https_allowed
48
+
49
+ # @return [QueryStringCachingBehavior] Defines the query string caching
50
+ # behavior. Possible values include: 'IgnoreQueryString',
51
+ # 'BypassCaching', 'UseQueryString', 'NotSet'
52
+ attr_accessor :query_string_caching_behavior
53
+
54
+ # @return [Array<DeepCreatedOrigin>] The set of origins for the CDN
55
+ # endpoint. When multiple origins exist, the first origin will be used as
56
+ # primary and rest will be used as failover options.
57
+ attr_accessor :origins
58
+
59
+
60
+ #
61
+ # Mapper for EndpointCreateParameters class as Ruby Hash.
62
+ # This will be used for serialization/deserialization.
63
+ #
64
+ def self.mapper()
65
+ {
66
+ client_side_validation: true,
67
+ required: false,
68
+ serialized_name: 'EndpointCreateParameters',
69
+ type: {
70
+ name: 'Composite',
71
+ class_name: 'EndpointCreateParameters',
72
+ model_properties: {
73
+ location: {
74
+ client_side_validation: true,
75
+ required: true,
76
+ serialized_name: 'location',
77
+ type: {
78
+ name: 'String'
79
+ }
80
+ },
81
+ tags: {
82
+ client_side_validation: true,
83
+ required: false,
84
+ serialized_name: 'tags',
85
+ type: {
86
+ name: 'Dictionary',
87
+ value: {
88
+ client_side_validation: true,
89
+ required: false,
90
+ serialized_name: 'StringElementType',
91
+ type: {
92
+ name: 'String'
93
+ }
94
+ }
95
+ }
96
+ },
97
+ origin_host_header: {
98
+ client_side_validation: true,
99
+ required: false,
100
+ serialized_name: 'properties.originHostHeader',
101
+ type: {
102
+ name: 'String'
103
+ }
104
+ },
105
+ origin_path: {
106
+ client_side_validation: true,
107
+ required: false,
108
+ serialized_name: 'properties.originPath',
109
+ type: {
110
+ name: 'String'
111
+ }
112
+ },
113
+ content_types_to_compress: {
114
+ client_side_validation: true,
115
+ required: false,
116
+ serialized_name: 'properties.contentTypesToCompress',
117
+ type: {
118
+ name: 'Sequence',
119
+ element: {
120
+ client_side_validation: true,
121
+ required: false,
122
+ serialized_name: 'StringElementType',
123
+ type: {
124
+ name: 'String'
125
+ }
126
+ }
127
+ }
128
+ },
129
+ is_compression_enabled: {
130
+ client_side_validation: true,
131
+ required: false,
132
+ serialized_name: 'properties.isCompressionEnabled',
133
+ type: {
134
+ name: 'Boolean'
135
+ }
136
+ },
137
+ is_http_allowed: {
138
+ client_side_validation: true,
139
+ required: false,
140
+ serialized_name: 'properties.isHttpAllowed',
141
+ type: {
142
+ name: 'Boolean'
143
+ }
144
+ },
145
+ is_https_allowed: {
146
+ client_side_validation: true,
147
+ required: false,
148
+ serialized_name: 'properties.isHttpsAllowed',
149
+ type: {
150
+ name: 'Boolean'
151
+ }
152
+ },
153
+ query_string_caching_behavior: {
154
+ client_side_validation: true,
155
+ required: false,
156
+ serialized_name: 'properties.queryStringCachingBehavior',
157
+ type: {
158
+ name: 'Enum',
159
+ module: 'QueryStringCachingBehavior'
160
+ }
161
+ },
162
+ origins: {
163
+ client_side_validation: true,
164
+ required: true,
165
+ serialized_name: 'properties.origins',
166
+ type: {
167
+ name: 'Sequence',
168
+ element: {
169
+ client_side_validation: true,
170
+ required: false,
171
+ serialized_name: 'DeepCreatedOriginElementType',
172
+ type: {
173
+ name: 'Composite',
174
+ class_name: 'DeepCreatedOrigin'
175
+ }
176
+ }
177
+ }
178
+ }
179
+ }
180
+ }
181
+ }
182
+ end
183
+ end
184
+ end
185
+ end
@@ -0,0 +1,56 @@
1
+ # encoding: utf-8
2
+ # Code generated by Microsoft (R) AutoRest Code Generator.
3
+ # Changes may cause incorrect behavior and will be lost if the code is
4
+ # regenerated.
5
+
6
+ module Azure::CDN::Mgmt::V2016_04_02
7
+ module Models
8
+ #
9
+ # Model object.
10
+ #
11
+ #
12
+ class EndpointListResult
13
+
14
+ include MsRestAzure
15
+
16
+ # @return [Array<Endpoint>] List of CDN endpoints within a profile
17
+ attr_accessor :value
18
+
19
+
20
+ #
21
+ # Mapper for EndpointListResult class as Ruby Hash.
22
+ # This will be used for serialization/deserialization.
23
+ #
24
+ def self.mapper()
25
+ {
26
+ client_side_validation: true,
27
+ required: false,
28
+ serialized_name: 'EndpointListResult',
29
+ type: {
30
+ name: 'Composite',
31
+ class_name: 'EndpointListResult',
32
+ model_properties: {
33
+ value: {
34
+ client_side_validation: true,
35
+ required: false,
36
+ serialized_name: 'value',
37
+ type: {
38
+ name: 'Sequence',
39
+ element: {
40
+ client_side_validation: true,
41
+ required: false,
42
+ serialized_name: 'EndpointElementType',
43
+ type: {
44
+ name: 'Composite',
45
+ class_name: 'Endpoint'
46
+ }
47
+ }
48
+ }
49
+ }
50
+ }
51
+ }
52
+ }
53
+ end
54
+ end
55
+ end
56
+ end
@@ -0,0 +1,20 @@
1
+ # encoding: utf-8
2
+ # Code generated by Microsoft (R) AutoRest Code Generator.
3
+ # Changes may cause incorrect behavior and will be lost if the code is
4
+ # regenerated.
5
+
6
+ module Azure::CDN::Mgmt::V2016_04_02
7
+ module Models
8
+ #
9
+ # Defines values for EndpointResourceState
10
+ #
11
+ module EndpointResourceState
12
+ Creating = "Creating"
13
+ Deleting = "Deleting"
14
+ Running = "Running"
15
+ Starting = "Starting"
16
+ Stopped = "Stopped"
17
+ Stopping = "Stopping"
18
+ end
19
+ end
20
+ end
@@ -0,0 +1,152 @@
1
+ # encoding: utf-8
2
+ # Code generated by Microsoft (R) AutoRest Code Generator.
3
+ # Changes may cause incorrect behavior and will be lost if the code is
4
+ # regenerated.
5
+
6
+ module Azure::CDN::Mgmt::V2016_04_02
7
+ module Models
8
+ #
9
+ # Endpoint properties required for new endpoint creation.
10
+ #
11
+ class EndpointUpdateParameters
12
+
13
+ include MsRestAzure
14
+
15
+ # @return [Hash{String => String}] Endpoint tags
16
+ attr_accessor :tags
17
+
18
+ # @return [String] The host header the CDN provider will send along with
19
+ # content requests to origins. The default value is the host name of the
20
+ # origin.
21
+ attr_accessor :origin_host_header
22
+
23
+ # @return [String] The path used for origin requests.
24
+ attr_accessor :origin_path
25
+
26
+ # @return [Array<String>] List of content types on which compression will
27
+ # be applied. The value for the elements should be a valid MIME type.
28
+ attr_accessor :content_types_to_compress
29
+
30
+ # @return [Boolean] Indicates whether content compression is enabled.
31
+ # Default value is false. If compression is enabled, the content
32
+ # transferred from the CDN endpoint to the end user will be compressed.
33
+ # The requested content must be larger than 1 byte and smaller than 1 MB.
34
+ attr_accessor :is_compression_enabled
35
+
36
+ # @return [Boolean] Indicates whether HTTP traffic is allowed on the
37
+ # endpoint. Default value is true. At least one protocol (HTTP or HTTPS)
38
+ # must be allowed.
39
+ attr_accessor :is_http_allowed
40
+
41
+ # @return [Boolean] Indicates whether HTTPS traffic is allowed on the
42
+ # endpoint. Default value is true. At least one protocol (HTTP or HTTPS)
43
+ # must be allowed.
44
+ attr_accessor :is_https_allowed
45
+
46
+ # @return [QueryStringCachingBehavior] Defines the query string caching
47
+ # behavior. Possible values include: 'IgnoreQueryString',
48
+ # 'BypassCaching', 'UseQueryString', 'NotSet'
49
+ attr_accessor :query_string_caching_behavior
50
+
51
+
52
+ #
53
+ # Mapper for EndpointUpdateParameters class as Ruby Hash.
54
+ # This will be used for serialization/deserialization.
55
+ #
56
+ def self.mapper()
57
+ {
58
+ client_side_validation: true,
59
+ required: false,
60
+ serialized_name: 'EndpointUpdateParameters',
61
+ type: {
62
+ name: 'Composite',
63
+ class_name: 'EndpointUpdateParameters',
64
+ model_properties: {
65
+ tags: {
66
+ client_side_validation: true,
67
+ required: false,
68
+ serialized_name: 'tags',
69
+ type: {
70
+ name: 'Dictionary',
71
+ value: {
72
+ client_side_validation: true,
73
+ required: false,
74
+ serialized_name: 'StringElementType',
75
+ type: {
76
+ name: 'String'
77
+ }
78
+ }
79
+ }
80
+ },
81
+ origin_host_header: {
82
+ client_side_validation: true,
83
+ required: false,
84
+ serialized_name: 'properties.originHostHeader',
85
+ type: {
86
+ name: 'String'
87
+ }
88
+ },
89
+ origin_path: {
90
+ client_side_validation: true,
91
+ required: false,
92
+ serialized_name: 'properties.originPath',
93
+ type: {
94
+ name: 'String'
95
+ }
96
+ },
97
+ content_types_to_compress: {
98
+ client_side_validation: true,
99
+ required: false,
100
+ serialized_name: 'properties.contentTypesToCompress',
101
+ type: {
102
+ name: 'Sequence',
103
+ element: {
104
+ client_side_validation: true,
105
+ required: false,
106
+ serialized_name: 'StringElementType',
107
+ type: {
108
+ name: 'String'
109
+ }
110
+ }
111
+ }
112
+ },
113
+ is_compression_enabled: {
114
+ client_side_validation: true,
115
+ required: false,
116
+ serialized_name: 'properties.isCompressionEnabled',
117
+ type: {
118
+ name: 'Boolean'
119
+ }
120
+ },
121
+ is_http_allowed: {
122
+ client_side_validation: true,
123
+ required: false,
124
+ serialized_name: 'properties.isHttpAllowed',
125
+ type: {
126
+ name: 'Boolean'
127
+ }
128
+ },
129
+ is_https_allowed: {
130
+ client_side_validation: true,
131
+ required: false,
132
+ serialized_name: 'properties.isHttpsAllowed',
133
+ type: {
134
+ name: 'Boolean'
135
+ }
136
+ },
137
+ query_string_caching_behavior: {
138
+ client_side_validation: true,
139
+ required: false,
140
+ serialized_name: 'properties.queryStringCachingBehavior',
141
+ type: {
142
+ name: 'Enum',
143
+ module: 'QueryStringCachingBehavior'
144
+ }
145
+ }
146
+ }
147
+ }
148
+ }
149
+ end
150
+ end
151
+ end
152
+ end
@@ -0,0 +1,58 @@
1
+ # encoding: utf-8
2
+ # Code generated by Microsoft (R) AutoRest Code Generator.
3
+ # Changes may cause incorrect behavior and will be lost if the code is
4
+ # regenerated.
5
+
6
+ module Azure::CDN::Mgmt::V2016_04_02
7
+ module Models
8
+ #
9
+ # Model object.
10
+ #
11
+ #
12
+ class ErrorResponse
13
+
14
+ include MsRestAzure
15
+
16
+ # @return [String] Error code
17
+ attr_accessor :code
18
+
19
+ # @return [String] Error message indicating why the operation failed.
20
+ attr_accessor :message
21
+
22
+
23
+ #
24
+ # Mapper for ErrorResponse class as Ruby Hash.
25
+ # This will be used for serialization/deserialization.
26
+ #
27
+ def self.mapper()
28
+ {
29
+ client_side_validation: true,
30
+ required: false,
31
+ serialized_name: 'ErrorResponse',
32
+ type: {
33
+ name: 'Composite',
34
+ class_name: 'ErrorResponse',
35
+ model_properties: {
36
+ code: {
37
+ client_side_validation: true,
38
+ required: false,
39
+ serialized_name: 'code',
40
+ type: {
41
+ name: 'String'
42
+ }
43
+ },
44
+ message: {
45
+ client_side_validation: true,
46
+ required: false,
47
+ serialized_name: 'message',
48
+ type: {
49
+ name: 'String'
50
+ }
51
+ }
52
+ }
53
+ }
54
+ }
55
+ end
56
+ end
57
+ end
58
+ end