azure_mgmt_cdn 0.8.0 → 0.9.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (29) hide show
  1. checksums.yaml +4 -4
  2. data/lib/generated/azure_mgmt_cdn/cdn_management_client.rb +268 -14
  3. data/lib/generated/azure_mgmt_cdn/custom_domains.rb +28 -28
  4. data/lib/generated/azure_mgmt_cdn/edge_nodes.rb +109 -0
  5. data/lib/generated/azure_mgmt_cdn/endpoints.rb +306 -60
  6. data/lib/generated/azure_mgmt_cdn/models/cidr_ip_address.rb +54 -0
  7. data/lib/generated/azure_mgmt_cdn/models/custom_domain.rb +3 -5
  8. data/lib/generated/azure_mgmt_cdn/models/deep_created_origin.rb +3 -3
  9. data/lib/generated/azure_mgmt_cdn/models/edge_node.rb +97 -0
  10. data/lib/generated/azure_mgmt_cdn/models/edgenode_result.rb +53 -0
  11. data/lib/generated/azure_mgmt_cdn/models/endpoint.rb +22 -21
  12. data/lib/generated/azure_mgmt_cdn/models/endpoint_update_parameters.rb +16 -15
  13. data/lib/generated/azure_mgmt_cdn/models/geo_filter.rb +5 -5
  14. data/lib/generated/azure_mgmt_cdn/models/ip_address_group.rb +80 -0
  15. data/lib/generated/azure_mgmt_cdn/models/load_parameters.rb +3 -3
  16. data/lib/generated/azure_mgmt_cdn/models/profile.rb +2 -1
  17. data/lib/generated/azure_mgmt_cdn/models/profile_update_parameters.rb +1 -1
  18. data/lib/generated/azure_mgmt_cdn/models/purge_parameters.rb +1 -1
  19. data/lib/generated/azure_mgmt_cdn/models/resource_usage.rb +74 -0
  20. data/lib/generated/azure_mgmt_cdn/models/resource_usage_list_result.rb +94 -0
  21. data/lib/generated/azure_mgmt_cdn/models/sku.rb +2 -1
  22. data/lib/generated/azure_mgmt_cdn/models/sso_uri.rb +2 -2
  23. data/lib/generated/azure_mgmt_cdn/models/validate_custom_domain_input.rb +1 -1
  24. data/lib/generated/azure_mgmt_cdn/models/validate_custom_domain_output.rb +1 -1
  25. data/lib/generated/azure_mgmt_cdn/origins.rb +14 -14
  26. data/lib/generated/azure_mgmt_cdn/profiles.rb +230 -22
  27. data/lib/generated/azure_mgmt_cdn/version.rb +1 -1
  28. data/lib/generated/azure_mgmt_cdn.rb +21 -14
  29. metadata +11 -4
@@ -0,0 +1,54 @@
1
+ # encoding: utf-8
2
+ # Code generated by Microsoft (R) AutoRest Code Generator 1.0.0.0
3
+ # Changes may cause incorrect behavior and will be lost if the code is
4
+ # regenerated.
5
+
6
+ module Azure::ARM::CDN
7
+ module Models
8
+ #
9
+ # CIDR Ip address
10
+ #
11
+ class CidrIpAddress
12
+
13
+ include MsRestAzure
14
+
15
+ # @return [String] Ip adress itself.
16
+ attr_accessor :base_ip_address
17
+
18
+ # @return [Integer] The length of the prefix of the ip address.
19
+ attr_accessor :prefix_length
20
+
21
+
22
+ #
23
+ # Mapper for CidrIpAddress class as Ruby Hash.
24
+ # This will be used for serialization/deserialization.
25
+ #
26
+ def self.mapper()
27
+ {
28
+ required: false,
29
+ serialized_name: 'cidrIpAddress',
30
+ type: {
31
+ name: 'Composite',
32
+ class_name: 'CidrIpAddress',
33
+ model_properties: {
34
+ base_ip_address: {
35
+ required: false,
36
+ serialized_name: 'baseIpAddress',
37
+ type: {
38
+ name: 'String'
39
+ }
40
+ },
41
+ prefix_length: {
42
+ required: false,
43
+ serialized_name: 'prefixLength',
44
+ type: {
45
+ name: 'Number'
46
+ }
47
+ }
48
+ }
49
+ }
50
+ }
51
+ end
52
+ end
53
+ end
54
+ end
@@ -6,9 +6,7 @@
6
6
  module Azure::ARM::CDN
7
7
  module Models
8
8
  #
9
- # CDN CustomDomain represents a mapping between a user-specified domain
10
- # name and a CDN endpoint. This is to use custom domain names to represent
11
- # the URLs for branding purposes.
9
+ # Customer provided domain for branding purposes, e.g. www.consoto.com.
12
10
  #
13
11
  class CustomDomain < MsRestAzure::Resource
14
12
 
@@ -23,9 +21,9 @@ module Azure::ARM::CDN
23
21
  attr_accessor :resource_state
24
22
 
25
23
  # @return [String] Special validation or data may be required when
26
- # delivering CDN to some regions due to local compliance reasons. (e.g.
24
+ # delivering CDN to some regions due to local compliance reasons. E.g.
27
25
  # ICP license number of a custom domain is required to deliver content in
28
- # China.)
26
+ # China.
29
27
  attr_accessor :validation_data
30
28
 
31
29
  # @return [String] Provisioning status of the custom domain.
@@ -6,7 +6,7 @@
6
6
  module Azure::ARM::CDN
7
7
  module Models
8
8
  #
9
- # Origins to be added when creating a CDN endpoint.
9
+ # Origin to be added when creating a CDN endpoint.
10
10
  #
11
11
  class DeepCreatedOrigin
12
12
 
@@ -15,8 +15,8 @@ module Azure::ARM::CDN
15
15
  # @return [String] Origin name
16
16
  attr_accessor :name
17
17
 
18
- # @return [String] The address of the origin. Domain names, IPv4
19
- # addresses, and IPv6 addresses are supported.
18
+ # @return [String] The address of the origin. It can be a domain names,
19
+ # IPv4 address, or IPv6 address.
20
20
  attr_accessor :host_name
21
21
 
22
22
  # @return [Integer] The value of the HTTP port. Must be between 1 and
@@ -0,0 +1,97 @@
1
+ # encoding: utf-8
2
+ # Code generated by Microsoft (R) AutoRest Code Generator 1.0.0.0
3
+ # Changes may cause incorrect behavior and will be lost if the code is
4
+ # regenerated.
5
+
6
+ module Azure::ARM::CDN
7
+ module Models
8
+ #
9
+ # Edge node of CDN service.
10
+ #
11
+ class EdgeNode < MsRestAzure::Resource
12
+
13
+ include MsRestAzure
14
+
15
+ # @return [Array<IpAddressGroup>] List of ip address groups.
16
+ attr_accessor :ip_address_groups
17
+
18
+
19
+ #
20
+ # Mapper for EdgeNode class as Ruby Hash.
21
+ # This will be used for serialization/deserialization.
22
+ #
23
+ def self.mapper()
24
+ {
25
+ required: false,
26
+ serialized_name: 'EdgeNode',
27
+ type: {
28
+ name: 'Composite',
29
+ class_name: 'EdgeNode',
30
+ model_properties: {
31
+ id: {
32
+ required: false,
33
+ read_only: true,
34
+ serialized_name: 'id',
35
+ type: {
36
+ name: 'String'
37
+ }
38
+ },
39
+ name: {
40
+ required: false,
41
+ read_only: true,
42
+ serialized_name: 'name',
43
+ type: {
44
+ name: 'String'
45
+ }
46
+ },
47
+ type: {
48
+ required: false,
49
+ read_only: true,
50
+ serialized_name: 'type',
51
+ type: {
52
+ name: 'String'
53
+ }
54
+ },
55
+ location: {
56
+ required: true,
57
+ serialized_name: 'location',
58
+ type: {
59
+ name: 'String'
60
+ }
61
+ },
62
+ tags: {
63
+ required: false,
64
+ serialized_name: 'tags',
65
+ type: {
66
+ name: 'Dictionary',
67
+ value: {
68
+ required: false,
69
+ serialized_name: 'StringElementType',
70
+ type: {
71
+ name: 'String'
72
+ }
73
+ }
74
+ }
75
+ },
76
+ ip_address_groups: {
77
+ required: true,
78
+ serialized_name: 'properties.ipAddressGroups',
79
+ type: {
80
+ name: 'Sequence',
81
+ element: {
82
+ required: false,
83
+ serialized_name: 'IpAddressGroupElementType',
84
+ type: {
85
+ name: 'Composite',
86
+ class_name: 'IpAddressGroup'
87
+ }
88
+ }
89
+ }
90
+ }
91
+ }
92
+ }
93
+ }
94
+ end
95
+ end
96
+ end
97
+ end
@@ -0,0 +1,53 @@
1
+ # encoding: utf-8
2
+ # Code generated by Microsoft (R) AutoRest Code Generator 1.0.0.0
3
+ # Changes may cause incorrect behavior and will be lost if the code is
4
+ # regenerated.
5
+
6
+ module Azure::ARM::CDN
7
+ module Models
8
+ #
9
+ # Result of the request to list CDN edgenodes. It contains a list of ip
10
+ # address group and a URL link to get the next set of results.
11
+ #
12
+ class EdgenodeResult
13
+
14
+ include MsRestAzure
15
+
16
+ # @return [Array<EdgeNode>] Edge node of CDN service.
17
+ attr_accessor :value
18
+
19
+
20
+ #
21
+ # Mapper for EdgenodeResult class as Ruby Hash.
22
+ # This will be used for serialization/deserialization.
23
+ #
24
+ def self.mapper()
25
+ {
26
+ required: false,
27
+ serialized_name: 'EdgenodeResult',
28
+ type: {
29
+ name: 'Composite',
30
+ class_name: 'EdgenodeResult',
31
+ model_properties: {
32
+ value: {
33
+ required: false,
34
+ serialized_name: 'value',
35
+ type: {
36
+ name: 'Sequence',
37
+ element: {
38
+ required: false,
39
+ serialized_name: 'EdgeNodeElementType',
40
+ type: {
41
+ name: 'Composite',
42
+ class_name: 'EdgeNode'
43
+ }
44
+ }
45
+ }
46
+ }
47
+ }
48
+ }
49
+ }
50
+ end
51
+ end
52
+ end
53
+ end
@@ -7,30 +7,30 @@ module Azure::ARM::CDN
7
7
  module Models
8
8
  #
9
9
  # CDN endpoint is the entity within a CDN profile containing configuration
10
- # information regarding caching behaviors and origins. The CDN endpoint is
11
- # exposed using the URL format <endpointname>.azureedge.net by default, but
12
- # custom domains can also be created.
10
+ # information such as origin, protocol, content caching and delivery
11
+ # behavior. The CDN endpoint uses the URL format
12
+ # <endpointname>.azureedge.net.
13
13
  #
14
14
  class Endpoint < MsRestAzure::Resource
15
15
 
16
16
  include MsRestAzure
17
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.
18
+ # @return [String] The host header CDN sends along with content requests
19
+ # to origin. The default value is the host name of the origin.
21
20
  attr_accessor :origin_host_header
22
21
 
23
- # @return [String] The path used for origin requests.
22
+ # @return [String] The path used when CDN sends request to origin.
24
23
  attr_accessor :origin_path
25
24
 
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.
25
+ # @return [Array<String>] List of content types on which compression
26
+ # applies. The value should be a valid MIME type.
28
27
  attr_accessor :content_types_to_compress
29
28
 
30
- # @return [Boolean] Indicates whether content compression is enabled. The
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.
29
+ # @return [Boolean] Indicates whether content compression is enabled on
30
+ # CDN. Default value is false. If compression is enabled, content will be
31
+ # served as compressed if user requests for a compressed version. Content
32
+ # won't be compressed on CDN when requested content is smaller than 1
33
+ # byte or larger than 1 MB.
34
34
  attr_accessor :is_compression_enabled
35
35
 
36
36
  # @return [Boolean] Indicates whether HTTP traffic is allowed on the
@@ -49,20 +49,21 @@ module Azure::ARM::CDN
49
49
  attr_accessor :query_string_caching_behavior
50
50
 
51
51
  # @return [String] Customer can specify what scenario they want this CDN
52
- # endpoint to optimize. (e.g. Download, Media services, and etc.) With
53
- # this information we can apply scenario driven optimization.
52
+ # endpoint to optimize, e.g. Download, Media services. With this
53
+ # information we can apply scenario driven optimization.
54
54
  attr_accessor :optimization_type
55
55
 
56
- # @return [Array<GeoFilter>] The list of geo filters for the CDN
57
- # endpoint.
56
+ # @return [Array<GeoFilter>] List of rules defining user geo access
57
+ # within a CDN endpoint. Each geo filter defines an acess rule to a
58
+ # specified path or content, e.g. block APAC for path /pictures/
58
59
  attr_accessor :geo_filters
59
60
 
60
- # @return [String] The host name of the endpoint {endpointName}.{DNSZone}
61
+ # @return [String] The host name of the endpoint structured as
62
+ # {endpointName}.{DNSZone}, e.g. consoto.azureedge.net
61
63
  attr_accessor :host_name
62
64
 
63
- # @return [Array<DeepCreatedOrigin>] The set of origins for the CDN
64
- # endpoint. When multiple origins exist, the first origin will be used as
65
- # primary and rest will be used as failover options.
65
+ # @return [Array<DeepCreatedOrigin>] The source of the content being
66
+ # delivered via CDN.
66
67
  attr_accessor :origins
67
68
 
68
69
  # @return [EndpointResourceState] Resource status of the endpoint.
@@ -6,7 +6,7 @@
6
6
  module Azure::ARM::CDN
7
7
  module Models
8
8
  #
9
- # Endpoint properties required for new endpoint creation.
9
+ # Properties required to create a new endpoint.
10
10
  #
11
11
  class EndpointUpdateParameters
12
12
 
@@ -15,22 +15,22 @@ module Azure::ARM::CDN
15
15
  # @return [Hash{String => String}] Endpoint tags.
16
16
  attr_accessor :tags
17
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.
18
+ # @return [String] The host header CDN sends along with content requests
19
+ # to origin. The default value is the host name of the origin.
21
20
  attr_accessor :origin_host_header
22
21
 
23
- # @return [String] The path used for origin requests.
22
+ # @return [String] The path used when CDN sends request to origin.
24
23
  attr_accessor :origin_path
25
24
 
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.
25
+ # @return [Array<String>] List of content types on which compression
26
+ # applies. The value should be a valid MIME type.
28
27
  attr_accessor :content_types_to_compress
29
28
 
30
- # @return [Boolean] Indicates whether content compression is enabled. The
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.
29
+ # @return [Boolean] Indicates whether content compression is enabled on
30
+ # CDN. Default value is false. If compression is enabled, content will be
31
+ # served as compressed if user requests for a compressed version. Content
32
+ # won't be compressed on CDN when requested content is smaller than 1
33
+ # byte or larger than 1 MB.
34
34
  attr_accessor :is_compression_enabled
35
35
 
36
36
  # @return [Boolean] Indicates whether HTTP traffic is allowed on the
@@ -49,12 +49,13 @@ module Azure::ARM::CDN
49
49
  attr_accessor :query_string_caching_behavior
50
50
 
51
51
  # @return [String] Customer can specify what scenario they want this CDN
52
- # endpoint to optimize. (e.g. Download, Media services, and etc.) With
53
- # this information we can apply scenario driven optimization.
52
+ # endpoint to optimize, e.g. Download, Media services. With this
53
+ # information we can apply scenario driven optimization.
54
54
  attr_accessor :optimization_type
55
55
 
56
- # @return [Array<GeoFilter>] The list of geo filters for the CDN
57
- # endpoint.
56
+ # @return [Array<GeoFilter>] List of rules defining user geo access
57
+ # within a CDN endpoint. Each geo filter defines an acess rule to a
58
+ # specified path or content, e.g. block APAC for path /pictures/
58
59
  attr_accessor :geo_filters
59
60
 
60
61
 
@@ -6,7 +6,7 @@
6
6
  module Azure::ARM::CDN
7
7
  module Models
8
8
  #
9
- # Geo filter of a CDN endpoint.
9
+ # Rules defining user geo access within a CDN endpoint.
10
10
  #
11
11
  class GeoFilter
12
12
 
@@ -16,12 +16,12 @@ module Azure::ARM::CDN
16
16
  # '/mypictures', '/mypicture/kitty.jpg', and etc.)
17
17
  attr_accessor :relative_path
18
18
 
19
- # @return [GeoFilterActions] Action of the geo filter. Possible values
20
- # include: 'Block', 'Allow'
19
+ # @return [GeoFilterActions] Action of the geo filter, i.e. allow or
20
+ # block access. Possible values include: 'Block', 'Allow'
21
21
  attr_accessor :action
22
22
 
23
- # @return [Array<String>] Two letter country codes of the geo filter.
24
- # (e.g. AU, MX, and etc.)
23
+ # @return [Array<String>] Two letter country codes defining user country
24
+ # access in a geo filter, e.g. AU, MX, US.
25
25
  attr_accessor :country_codes
26
26
 
27
27
 
@@ -0,0 +1,80 @@
1
+ # encoding: utf-8
2
+ # Code generated by Microsoft (R) AutoRest Code Generator 1.0.0.0
3
+ # Changes may cause incorrect behavior and will be lost if the code is
4
+ # regenerated.
5
+
6
+ module Azure::ARM::CDN
7
+ module Models
8
+ #
9
+ # CDN Ip address group
10
+ #
11
+ class IpAddressGroup
12
+
13
+ include MsRestAzure
14
+
15
+ # @return [String] The delivery region of the ip address group
16
+ attr_accessor :delivery_region
17
+
18
+ # @return [Array<CidrIpAddress>] The list of ip v4 addresses.
19
+ attr_accessor :ipv4addresses
20
+
21
+ # @return [Array<CidrIpAddress>] The list of ip v6 addresses.
22
+ attr_accessor :ipv6addresses
23
+
24
+
25
+ #
26
+ # Mapper for IpAddressGroup class as Ruby Hash.
27
+ # This will be used for serialization/deserialization.
28
+ #
29
+ def self.mapper()
30
+ {
31
+ required: false,
32
+ serialized_name: 'IpAddressGroup',
33
+ type: {
34
+ name: 'Composite',
35
+ class_name: 'IpAddressGroup',
36
+ model_properties: {
37
+ delivery_region: {
38
+ required: false,
39
+ serialized_name: 'deliveryRegion',
40
+ type: {
41
+ name: 'String'
42
+ }
43
+ },
44
+ ipv4addresses: {
45
+ required: false,
46
+ serialized_name: 'ipv4Addresses',
47
+ type: {
48
+ name: 'Sequence',
49
+ element: {
50
+ required: false,
51
+ serialized_name: 'CidrIpAddressElementType',
52
+ type: {
53
+ name: 'Composite',
54
+ class_name: 'CidrIpAddress'
55
+ }
56
+ }
57
+ }
58
+ },
59
+ ipv6addresses: {
60
+ required: false,
61
+ serialized_name: 'ipv6Addresses',
62
+ type: {
63
+ name: 'Sequence',
64
+ element: {
65
+ required: false,
66
+ serialized_name: 'CidrIpAddressElementType',
67
+ type: {
68
+ name: 'Composite',
69
+ class_name: 'CidrIpAddress'
70
+ }
71
+ }
72
+ }
73
+ }
74
+ }
75
+ }
76
+ }
77
+ end
78
+ end
79
+ end
80
+ end
@@ -6,14 +6,14 @@
6
6
  module Azure::ARM::CDN
7
7
  module Models
8
8
  #
9
- # Parameters required for endpoint load.
9
+ # Parameters required for content load.
10
10
  #
11
11
  class LoadParameters
12
12
 
13
13
  include MsRestAzure
14
14
 
15
- # @return [Array<String>] The path to the content to be loaded. Should
16
- # describe a file path.
15
+ # @return [Array<String>] The path to the content to be loaded. Path
16
+ # should be a relative file URL of the origin.
17
17
  attr_accessor :content_paths
18
18
 
19
19
 
@@ -15,7 +15,8 @@ module Azure::ARM::CDN
15
15
 
16
16
  include MsRestAzure
17
17
 
18
- # @return [Sku] The SKU (pricing tier) of the CDN profile.
18
+ # @return [Sku] The pricing tier (defines a CDN provider, feature list
19
+ # and rate) of the CDN profile.
19
20
  attr_accessor :sku
20
21
 
21
22
  # @return [ProfileResourceState] Resource status of the profile. Possible
@@ -6,7 +6,7 @@
6
6
  module Azure::ARM::CDN
7
7
  module Models
8
8
  #
9
- # Profile properties required for profile update.
9
+ # Properties required to update a profile.
10
10
  #
11
11
  class ProfileUpdateParameters
12
12
 
@@ -6,7 +6,7 @@
6
6
  module Azure::ARM::CDN
7
7
  module Models
8
8
  #
9
- # Parameters required for endpoint purge.
9
+ # Parameters required for content purge.
10
10
  #
11
11
  class PurgeParameters
12
12
 
@@ -0,0 +1,74 @@
1
+ # encoding: utf-8
2
+ # Code generated by Microsoft (R) AutoRest Code Generator 1.0.0.0
3
+ # Changes may cause incorrect behavior and will be lost if the code is
4
+ # regenerated.
5
+
6
+ module Azure::ARM::CDN
7
+ module Models
8
+ #
9
+ # Output of check resource usage API.
10
+ #
11
+ class ResourceUsage
12
+
13
+ include MsRestAzure
14
+
15
+ # @return [String] Resource type of the usages.
16
+ attr_accessor :resource_type
17
+
18
+ # @return [String] Unit of the usage. e.g. Count.
19
+ attr_accessor :unit
20
+
21
+ # @return [Integer] Actual value of the resource type.
22
+ attr_accessor :current_value
23
+
24
+ # @return [Integer] Quota of the resource type.
25
+ attr_accessor :limit
26
+
27
+
28
+ #
29
+ # Mapper for ResourceUsage class as Ruby Hash.
30
+ # This will be used for serialization/deserialization.
31
+ #
32
+ def self.mapper()
33
+ {
34
+ required: false,
35
+ serialized_name: 'ResourceUsage',
36
+ type: {
37
+ name: 'Composite',
38
+ class_name: 'ResourceUsage',
39
+ model_properties: {
40
+ resource_type: {
41
+ required: false,
42
+ serialized_name: 'resourceType',
43
+ type: {
44
+ name: 'String'
45
+ }
46
+ },
47
+ unit: {
48
+ required: false,
49
+ serialized_name: 'unit',
50
+ type: {
51
+ name: 'String'
52
+ }
53
+ },
54
+ current_value: {
55
+ required: false,
56
+ serialized_name: 'currentValue',
57
+ type: {
58
+ name: 'Number'
59
+ }
60
+ },
61
+ limit: {
62
+ required: false,
63
+ serialized_name: 'limit',
64
+ type: {
65
+ name: 'Number'
66
+ }
67
+ }
68
+ }
69
+ }
70
+ }
71
+ end
72
+ end
73
+ end
74
+ end