azure_mgmt_cdn 0.7.0 → 0.8.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/generated/azure_mgmt_cdn.rb +16 -20
- data/lib/generated/azure_mgmt_cdn/cdn_management_client.rb +362 -11
- data/lib/generated/azure_mgmt_cdn/custom_domains.rb +240 -234
- data/lib/generated/azure_mgmt_cdn/endpoints.rb +735 -572
- data/lib/generated/azure_mgmt_cdn/models/check_name_availability_input.rb +1 -1
- data/lib/generated/azure_mgmt_cdn/models/check_name_availability_output.rb +4 -4
- data/lib/generated/azure_mgmt_cdn/models/custom_domain.rb +42 -10
- data/lib/generated/azure_mgmt_cdn/models/custom_domain_list_result.rb +45 -2
- data/lib/generated/azure_mgmt_cdn/models/custom_domain_parameters.rb +3 -2
- data/lib/generated/azure_mgmt_cdn/models/custom_domain_resource_state.rb +1 -1
- data/lib/generated/azure_mgmt_cdn/models/deep_created_origin.rb +10 -2
- data/lib/generated/azure_mgmt_cdn/models/endpoint.rb +70 -42
- data/lib/generated/azure_mgmt_cdn/models/endpoint_list_result.rb +45 -2
- data/lib/generated/azure_mgmt_cdn/models/endpoint_resource_state.rb +1 -1
- data/lib/generated/azure_mgmt_cdn/models/endpoint_update_parameters.rb +44 -15
- data/lib/generated/azure_mgmt_cdn/models/error_response.rb +4 -3
- data/lib/generated/azure_mgmt_cdn/models/geo_filter.rb +75 -0
- data/lib/generated/azure_mgmt_cdn/models/geo_filter_actions.rb +16 -0
- data/lib/generated/azure_mgmt_cdn/models/load_parameters.rb +1 -1
- data/lib/generated/azure_mgmt_cdn/models/operation.rb +2 -2
- data/lib/generated/azure_mgmt_cdn/models/operation_display.rb +4 -4
- data/lib/generated/azure_mgmt_cdn/models/operation_list_result.rb +45 -2
- data/lib/generated/azure_mgmt_cdn/models/origin.rb +38 -11
- data/lib/generated/azure_mgmt_cdn/models/origin_list_result.rb +45 -2
- data/lib/generated/azure_mgmt_cdn/models/origin_resource_state.rb +1 -1
- data/lib/generated/azure_mgmt_cdn/models/{origin_parameters.rb → origin_update_parameters.rb} +14 -6
- data/lib/generated/azure_mgmt_cdn/models/profile.rb +13 -15
- data/lib/generated/azure_mgmt_cdn/models/profile_list_result.rb +45 -2
- data/lib/generated/azure_mgmt_cdn/models/profile_resource_state.rb +1 -1
- data/lib/generated/azure_mgmt_cdn/models/profile_update_parameters.rb +1 -1
- data/lib/generated/azure_mgmt_cdn/models/purge_parameters.rb +1 -1
- data/lib/generated/azure_mgmt_cdn/models/query_string_caching_behavior.rb +1 -1
- data/lib/generated/azure_mgmt_cdn/models/resource_type.rb +1 -1
- data/lib/generated/azure_mgmt_cdn/models/sku.rb +3 -4
- data/lib/generated/azure_mgmt_cdn/models/sku_name.rb +2 -1
- data/lib/generated/azure_mgmt_cdn/models/sso_uri.rb +1 -1
- data/lib/generated/azure_mgmt_cdn/models/validate_custom_domain_input.rb +1 -1
- data/lib/generated/azure_mgmt_cdn/models/validate_custom_domain_output.rb +1 -1
- data/lib/generated/azure_mgmt_cdn/module_definition.rb +1 -1
- data/lib/generated/azure_mgmt_cdn/origins.rb +154 -387
- data/lib/generated/azure_mgmt_cdn/profiles.rb +480 -257
- data/lib/generated/azure_mgmt_cdn/version.rb +2 -2
- metadata +7 -11
- data/lib/generated/azure_mgmt_cdn/models/endpoint_create_parameters.rb +0 -173
- data/lib/generated/azure_mgmt_cdn/models/profile_create_parameters.rb +0 -72
- data/lib/generated/azure_mgmt_cdn/models/provisioning_state.rb +0 -17
- data/lib/generated/azure_mgmt_cdn/models/tracked_resource.rb +0 -85
- data/lib/generated/azure_mgmt_cdn/name_availability.rb +0 -133
- data/lib/generated/azure_mgmt_cdn/operations.rb +0 -111
@@ -1,5 +1,5 @@
|
|
1
1
|
# encoding: utf-8
|
2
|
-
# Code generated by Microsoft (R) AutoRest Code Generator 0.
|
2
|
+
# Code generated by Microsoft (R) AutoRest Code Generator 1.0.0.0
|
3
3
|
# Changes may cause incorrect behavior and will be lost if the code is
|
4
4
|
# regenerated.
|
5
5
|
|
@@ -12,37 +12,35 @@ module Azure::ARM::CDN
|
|
12
12
|
|
13
13
|
include MsRestAzure
|
14
14
|
|
15
|
-
# @return [Hash{String => String}] Endpoint tags
|
15
|
+
# @return [Hash{String => String}] Endpoint tags.
|
16
16
|
attr_accessor :tags
|
17
17
|
|
18
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
|
20
|
-
#
|
19
|
+
# content requests to origins. The default value is the host name of the
|
20
|
+
# origin.
|
21
21
|
attr_accessor :origin_host_header
|
22
22
|
|
23
23
|
# @return [String] The path used for origin requests.
|
24
24
|
attr_accessor :origin_path
|
25
25
|
|
26
|
-
# @return [Array<String>] List of content types on which compression
|
27
|
-
#
|
28
|
-
# type.
|
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.
|
29
28
|
attr_accessor :content_types_to_compress
|
30
29
|
|
31
|
-
# @return [Boolean] Indicates whether content compression is enabled.
|
32
|
-
#
|
30
|
+
# @return [Boolean] Indicates whether content compression is enabled. The
|
31
|
+
# default value is false. If compression is enabled, the content
|
33
32
|
# transferred from the CDN endpoint to the end user will be compressed.
|
34
|
-
# The requested content must be larger than 1 byte and smaller than 1
|
35
|
-
# MB.
|
33
|
+
# The requested content must be larger than 1 byte and smaller than 1 MB.
|
36
34
|
attr_accessor :is_compression_enabled
|
37
35
|
|
38
36
|
# @return [Boolean] Indicates whether HTTP traffic is allowed on the
|
39
|
-
# endpoint. Default value is true. At least one protocol (HTTP or
|
40
|
-
#
|
37
|
+
# endpoint. Default value is true. At least one protocol (HTTP or HTTPS)
|
38
|
+
# must be allowed.
|
41
39
|
attr_accessor :is_http_allowed
|
42
40
|
|
43
41
|
# @return [Boolean] Indicates whether HTTPS traffic is allowed on the
|
44
|
-
# endpoint. Default value is true. At least one protocol (HTTP or
|
45
|
-
#
|
42
|
+
# endpoint. Default value is true. At least one protocol (HTTP or HTTPS)
|
43
|
+
# must be allowed.
|
46
44
|
attr_accessor :is_https_allowed
|
47
45
|
|
48
46
|
# @return [QueryStringCachingBehavior] Defines the query string caching
|
@@ -50,6 +48,15 @@ module Azure::ARM::CDN
|
|
50
48
|
# 'BypassCaching', 'UseQueryString', 'NotSet'
|
51
49
|
attr_accessor :query_string_caching_behavior
|
52
50
|
|
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.
|
54
|
+
attr_accessor :optimization_type
|
55
|
+
|
56
|
+
# @return [Array<GeoFilter>] The list of geo filters for the CDN
|
57
|
+
# endpoint.
|
58
|
+
attr_accessor :geo_filters
|
59
|
+
|
53
60
|
|
54
61
|
#
|
55
62
|
# Mapper for EndpointUpdateParameters class as Ruby Hash.
|
@@ -133,6 +140,28 @@ module Azure::ARM::CDN
|
|
133
140
|
name: 'Enum',
|
134
141
|
module: 'QueryStringCachingBehavior'
|
135
142
|
}
|
143
|
+
},
|
144
|
+
optimization_type: {
|
145
|
+
required: false,
|
146
|
+
serialized_name: 'properties.optimizationType',
|
147
|
+
type: {
|
148
|
+
name: 'String'
|
149
|
+
}
|
150
|
+
},
|
151
|
+
geo_filters: {
|
152
|
+
required: false,
|
153
|
+
serialized_name: 'properties.geoFilters',
|
154
|
+
type: {
|
155
|
+
name: 'Sequence',
|
156
|
+
element: {
|
157
|
+
required: false,
|
158
|
+
serialized_name: 'GeoFilterElementType',
|
159
|
+
type: {
|
160
|
+
name: 'Composite',
|
161
|
+
class_name: 'GeoFilter'
|
162
|
+
}
|
163
|
+
}
|
164
|
+
}
|
136
165
|
}
|
137
166
|
}
|
138
167
|
}
|
@@ -1,18 +1,19 @@
|
|
1
1
|
# encoding: utf-8
|
2
|
-
# Code generated by Microsoft (R) AutoRest Code Generator 0.
|
2
|
+
# Code generated by Microsoft (R) AutoRest Code Generator 1.0.0.0
|
3
3
|
# Changes may cause incorrect behavior and will be lost if the code is
|
4
4
|
# regenerated.
|
5
5
|
|
6
6
|
module Azure::ARM::CDN
|
7
7
|
module Models
|
8
8
|
#
|
9
|
-
#
|
9
|
+
# Error reponse indicates CDN service is not able to process the incoming
|
10
|
+
# request. The reason is provided in the error message.
|
10
11
|
#
|
11
12
|
class ErrorResponse
|
12
13
|
|
13
14
|
include MsRestAzure
|
14
15
|
|
15
|
-
# @return [String] Error code
|
16
|
+
# @return [String] Error code.
|
16
17
|
attr_accessor :code
|
17
18
|
|
18
19
|
# @return [String] Error message indicating why the operation failed.
|
@@ -0,0 +1,75 @@
|
|
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
|
+
# Geo filter of a CDN endpoint.
|
10
|
+
#
|
11
|
+
class GeoFilter
|
12
|
+
|
13
|
+
include MsRestAzure
|
14
|
+
|
15
|
+
# @return [String] Relative path applicable to geo filter. (e.g.
|
16
|
+
# '/mypictures', '/mypicture/kitty.jpg', and etc.)
|
17
|
+
attr_accessor :relative_path
|
18
|
+
|
19
|
+
# @return [GeoFilterActions] Action of the geo filter. Possible values
|
20
|
+
# include: 'Block', 'Allow'
|
21
|
+
attr_accessor :action
|
22
|
+
|
23
|
+
# @return [Array<String>] Two letter country codes of the geo filter.
|
24
|
+
# (e.g. AU, MX, and etc.)
|
25
|
+
attr_accessor :country_codes
|
26
|
+
|
27
|
+
|
28
|
+
#
|
29
|
+
# Mapper for GeoFilter class as Ruby Hash.
|
30
|
+
# This will be used for serialization/deserialization.
|
31
|
+
#
|
32
|
+
def self.mapper()
|
33
|
+
{
|
34
|
+
required: false,
|
35
|
+
serialized_name: 'GeoFilter',
|
36
|
+
type: {
|
37
|
+
name: 'Composite',
|
38
|
+
class_name: 'GeoFilter',
|
39
|
+
model_properties: {
|
40
|
+
relative_path: {
|
41
|
+
required: true,
|
42
|
+
serialized_name: 'relativePath',
|
43
|
+
type: {
|
44
|
+
name: 'String'
|
45
|
+
}
|
46
|
+
},
|
47
|
+
action: {
|
48
|
+
required: true,
|
49
|
+
serialized_name: 'action',
|
50
|
+
type: {
|
51
|
+
name: 'Enum',
|
52
|
+
module: 'GeoFilterActions'
|
53
|
+
}
|
54
|
+
},
|
55
|
+
country_codes: {
|
56
|
+
required: true,
|
57
|
+
serialized_name: 'countryCodes',
|
58
|
+
type: {
|
59
|
+
name: 'Sequence',
|
60
|
+
element: {
|
61
|
+
required: false,
|
62
|
+
serialized_name: 'StringElementType',
|
63
|
+
type: {
|
64
|
+
name: 'String'
|
65
|
+
}
|
66
|
+
}
|
67
|
+
}
|
68
|
+
}
|
69
|
+
}
|
70
|
+
}
|
71
|
+
}
|
72
|
+
end
|
73
|
+
end
|
74
|
+
end
|
75
|
+
end
|
@@ -0,0 +1,16 @@
|
|
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
|
+
# Defines values for GeoFilterActions
|
10
|
+
#
|
11
|
+
module GeoFilterActions
|
12
|
+
Block = "Block"
|
13
|
+
Allow = "Allow"
|
14
|
+
end
|
15
|
+
end
|
16
|
+
end
|
@@ -1,5 +1,5 @@
|
|
1
1
|
# encoding: utf-8
|
2
|
-
# Code generated by Microsoft (R) AutoRest Code Generator 0.
|
2
|
+
# Code generated by Microsoft (R) AutoRest Code Generator 1.0.0.0
|
3
3
|
# Changes may cause incorrect behavior and will be lost if the code is
|
4
4
|
# regenerated.
|
5
5
|
|
@@ -15,7 +15,7 @@ module Azure::ARM::CDN
|
|
15
15
|
# @return [String] Operation name: {provider}/{resource}/{operation}
|
16
16
|
attr_accessor :name
|
17
17
|
|
18
|
-
# @return [OperationDisplay]
|
18
|
+
# @return [OperationDisplay] The object that represents the operation.
|
19
19
|
attr_accessor :display
|
20
20
|
|
21
21
|
|
@@ -1,12 +1,12 @@
|
|
1
1
|
# encoding: utf-8
|
2
|
-
# Code generated by Microsoft (R) AutoRest Code Generator 0.
|
2
|
+
# Code generated by Microsoft (R) AutoRest Code Generator 1.0.0.0
|
3
3
|
# Changes may cause incorrect behavior and will be lost if the code is
|
4
4
|
# regenerated.
|
5
5
|
|
6
6
|
module Azure::ARM::CDN
|
7
7
|
module Models
|
8
8
|
#
|
9
|
-
#
|
9
|
+
# The object that represents the operation.
|
10
10
|
#
|
11
11
|
class OperationDisplay
|
12
12
|
|
@@ -15,8 +15,8 @@ module Azure::ARM::CDN
|
|
15
15
|
# @return [String] Service provider: Microsoft.Cdn
|
16
16
|
attr_accessor :provider
|
17
17
|
|
18
|
-
# @return [String] Resource on which the operation is performed:
|
19
|
-
#
|
18
|
+
# @return [String] Resource on which the operation is performed: Profile,
|
19
|
+
# endpoint, etc.
|
20
20
|
attr_accessor :resource
|
21
21
|
|
22
22
|
# @return [String] Operation type: Read, write, delete, etc.
|
@@ -1,12 +1,13 @@
|
|
1
1
|
# encoding: utf-8
|
2
|
-
# Code generated by Microsoft (R) AutoRest Code Generator 0.
|
2
|
+
# Code generated by Microsoft (R) AutoRest Code Generator 1.0.0.0
|
3
3
|
# Changes may cause incorrect behavior and will be lost if the code is
|
4
4
|
# regenerated.
|
5
5
|
|
6
6
|
module Azure::ARM::CDN
|
7
7
|
module Models
|
8
8
|
#
|
9
|
-
#
|
9
|
+
# Result of the request to list CDN operations. It contains a list of
|
10
|
+
# operations and a URL link to get the next set of results.
|
10
11
|
#
|
11
12
|
class OperationListResult
|
12
13
|
|
@@ -16,6 +17,41 @@ module Azure::ARM::CDN
|
|
16
17
|
# resource provider.
|
17
18
|
attr_accessor :value
|
18
19
|
|
20
|
+
# @return [String] URL to get the next set of operation list results if
|
21
|
+
# there are any.
|
22
|
+
attr_accessor :next_link
|
23
|
+
|
24
|
+
# return [Proc] with next page method call.
|
25
|
+
attr_accessor :next_method
|
26
|
+
|
27
|
+
#
|
28
|
+
# Gets the rest of the items for the request, enabling auto-pagination.
|
29
|
+
#
|
30
|
+
# @return [Array<Operation>] operation results.
|
31
|
+
#
|
32
|
+
def get_all_items
|
33
|
+
items = @value
|
34
|
+
page = self
|
35
|
+
while page.next_link != nil do
|
36
|
+
page = page.get_next_page
|
37
|
+
items.concat(page.value)
|
38
|
+
end
|
39
|
+
items
|
40
|
+
end
|
41
|
+
|
42
|
+
#
|
43
|
+
# Gets the next page of results.
|
44
|
+
#
|
45
|
+
# @return [OperationListResult] with next page content.
|
46
|
+
#
|
47
|
+
def get_next_page
|
48
|
+
response = @next_method.call(@next_link).value! unless @next_method.nil?
|
49
|
+
unless response.nil?
|
50
|
+
@next_link = response.body.next_link
|
51
|
+
@value = response.body.value
|
52
|
+
self
|
53
|
+
end
|
54
|
+
end
|
19
55
|
|
20
56
|
#
|
21
57
|
# Mapper for OperationListResult class as Ruby Hash.
|
@@ -43,6 +79,13 @@ module Azure::ARM::CDN
|
|
43
79
|
}
|
44
80
|
}
|
45
81
|
}
|
82
|
+
},
|
83
|
+
next_link: {
|
84
|
+
required: false,
|
85
|
+
serialized_name: 'nextLink',
|
86
|
+
type: {
|
87
|
+
name: 'String'
|
88
|
+
}
|
46
89
|
}
|
47
90
|
}
|
48
91
|
}
|
@@ -1,15 +1,15 @@
|
|
1
1
|
# encoding: utf-8
|
2
|
-
# Code generated by Microsoft (R) AutoRest Code Generator 0.
|
2
|
+
# Code generated by Microsoft (R) AutoRest Code Generator 1.0.0.0
|
3
3
|
# Changes may cause incorrect behavior and will be lost if the code is
|
4
4
|
# regenerated.
|
5
5
|
|
6
6
|
module Azure::ARM::CDN
|
7
7
|
module Models
|
8
8
|
#
|
9
|
-
# CDN origin is the source of the content being delivered via CDN. When
|
10
|
-
#
|
11
|
-
#
|
12
|
-
#
|
9
|
+
# CDN origin is the source of the content being delivered via CDN. When the
|
10
|
+
# edge nodes represented by an endpoint do not have the requested content
|
11
|
+
# cached, they attempt to fetch it from one or more of the configured
|
12
|
+
# origins.
|
13
13
|
#
|
14
14
|
class Origin < MsRestAzure::Resource
|
15
15
|
|
@@ -31,8 +31,7 @@ module Azure::ARM::CDN
|
|
31
31
|
# values include: 'Creating', 'Active', 'Deleting'
|
32
32
|
attr_accessor :resource_state
|
33
33
|
|
34
|
-
# @return [
|
35
|
-
# Possible values include: 'Creating', 'Succeeded', 'Failed'
|
34
|
+
# @return [String] Provisioning status of the origin.
|
36
35
|
attr_accessor :provisioning_state
|
37
36
|
|
38
37
|
|
@@ -72,6 +71,27 @@ module Azure::ARM::CDN
|
|
72
71
|
name: 'String'
|
73
72
|
}
|
74
73
|
},
|
74
|
+
location: {
|
75
|
+
required: true,
|
76
|
+
serialized_name: 'location',
|
77
|
+
type: {
|
78
|
+
name: 'String'
|
79
|
+
}
|
80
|
+
},
|
81
|
+
tags: {
|
82
|
+
required: false,
|
83
|
+
serialized_name: 'tags',
|
84
|
+
type: {
|
85
|
+
name: 'Dictionary',
|
86
|
+
value: {
|
87
|
+
required: false,
|
88
|
+
serialized_name: 'StringElementType',
|
89
|
+
type: {
|
90
|
+
name: 'String'
|
91
|
+
}
|
92
|
+
}
|
93
|
+
}
|
94
|
+
},
|
75
95
|
host_name: {
|
76
96
|
required: true,
|
77
97
|
serialized_name: 'properties.hostName',
|
@@ -82,6 +102,10 @@ module Azure::ARM::CDN
|
|
82
102
|
http_port: {
|
83
103
|
required: false,
|
84
104
|
serialized_name: 'properties.httpPort',
|
105
|
+
constraints: {
|
106
|
+
InclusiveMaximum: 65535,
|
107
|
+
InclusiveMinimum: 1
|
108
|
+
},
|
85
109
|
type: {
|
86
110
|
name: 'Number'
|
87
111
|
}
|
@@ -89,6 +113,10 @@ module Azure::ARM::CDN
|
|
89
113
|
https_port: {
|
90
114
|
required: false,
|
91
115
|
serialized_name: 'properties.httpsPort',
|
116
|
+
constraints: {
|
117
|
+
InclusiveMaximum: 65535,
|
118
|
+
InclusiveMinimum: 1
|
119
|
+
},
|
92
120
|
type: {
|
93
121
|
name: 'Number'
|
94
122
|
}
|
@@ -98,16 +126,15 @@ module Azure::ARM::CDN
|
|
98
126
|
read_only: true,
|
99
127
|
serialized_name: 'properties.resourceState',
|
100
128
|
type: {
|
101
|
-
name: '
|
102
|
-
module: 'OriginResourceState'
|
129
|
+
name: 'String'
|
103
130
|
}
|
104
131
|
},
|
105
132
|
provisioning_state: {
|
106
133
|
required: false,
|
134
|
+
read_only: true,
|
107
135
|
serialized_name: 'properties.provisioningState',
|
108
136
|
type: {
|
109
|
-
name: '
|
110
|
-
module: 'ProvisioningState'
|
137
|
+
name: 'String'
|
111
138
|
}
|
112
139
|
}
|
113
140
|
}
|
@@ -1,12 +1,13 @@
|
|
1
1
|
# encoding: utf-8
|
2
|
-
# Code generated by Microsoft (R) AutoRest Code Generator 0.
|
2
|
+
# Code generated by Microsoft (R) AutoRest Code Generator 1.0.0.0
|
3
3
|
# Changes may cause incorrect behavior and will be lost if the code is
|
4
4
|
# regenerated.
|
5
5
|
|
6
6
|
module Azure::ARM::CDN
|
7
7
|
module Models
|
8
8
|
#
|
9
|
-
#
|
9
|
+
# Result of the request to list origins. It contains a list of origin
|
10
|
+
# objects and a URL link to get the next set of results.
|
10
11
|
#
|
11
12
|
class OriginListResult
|
12
13
|
|
@@ -15,6 +16,41 @@ module Azure::ARM::CDN
|
|
15
16
|
# @return [Array<Origin>] List of CDN origins within an endpoint
|
16
17
|
attr_accessor :value
|
17
18
|
|
19
|
+
# @return [String] URL to get the next set of origin objects if there are
|
20
|
+
# any.
|
21
|
+
attr_accessor :next_link
|
22
|
+
|
23
|
+
# return [Proc] with next page method call.
|
24
|
+
attr_accessor :next_method
|
25
|
+
|
26
|
+
#
|
27
|
+
# Gets the rest of the items for the request, enabling auto-pagination.
|
28
|
+
#
|
29
|
+
# @return [Array<Origin>] operation results.
|
30
|
+
#
|
31
|
+
def get_all_items
|
32
|
+
items = @value
|
33
|
+
page = self
|
34
|
+
while page.next_link != nil do
|
35
|
+
page = page.get_next_page
|
36
|
+
items.concat(page.value)
|
37
|
+
end
|
38
|
+
items
|
39
|
+
end
|
40
|
+
|
41
|
+
#
|
42
|
+
# Gets the next page of results.
|
43
|
+
#
|
44
|
+
# @return [OriginListResult] with next page content.
|
45
|
+
#
|
46
|
+
def get_next_page
|
47
|
+
response = @next_method.call(@next_link).value! unless @next_method.nil?
|
48
|
+
unless response.nil?
|
49
|
+
@next_link = response.body.next_link
|
50
|
+
@value = response.body.value
|
51
|
+
self
|
52
|
+
end
|
53
|
+
end
|
18
54
|
|
19
55
|
#
|
20
56
|
# Mapper for OriginListResult class as Ruby Hash.
|
@@ -42,6 +78,13 @@ module Azure::ARM::CDN
|
|
42
78
|
}
|
43
79
|
}
|
44
80
|
}
|
81
|
+
},
|
82
|
+
next_link: {
|
83
|
+
required: false,
|
84
|
+
serialized_name: 'nextLink',
|
85
|
+
type: {
|
86
|
+
name: 'String'
|
87
|
+
}
|
45
88
|
}
|
46
89
|
}
|
47
90
|
}
|