azure_mgmt_cdn 0.7.0 → 0.8.0
Sign up to get free protection for your applications and to get access to all the features.
- 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
|
|
@@ -37,21 +37,21 @@ module Azure::ARM::CDN
|
|
37
37
|
model_properties: {
|
38
38
|
name_available: {
|
39
39
|
required: false,
|
40
|
-
serialized_name: '
|
40
|
+
serialized_name: 'nameAvailable',
|
41
41
|
type: {
|
42
42
|
name: 'Boolean'
|
43
43
|
}
|
44
44
|
},
|
45
45
|
reason: {
|
46
46
|
required: false,
|
47
|
-
serialized_name: '
|
47
|
+
serialized_name: 'reason',
|
48
48
|
type: {
|
49
49
|
name: 'String'
|
50
50
|
}
|
51
51
|
},
|
52
52
|
message: {
|
53
53
|
required: false,
|
54
|
-
serialized_name: '
|
54
|
+
serialized_name: 'message',
|
55
55
|
type: {
|
56
56
|
name: 'String'
|
57
57
|
}
|
@@ -1,14 +1,14 @@
|
|
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 CustomDomain represents a mapping between a user
|
10
|
-
# name and a CDN endpoint. This is to use custom domain names to
|
11
|
-
#
|
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.
|
12
12
|
#
|
13
13
|
class CustomDomain < MsRestAzure::Resource
|
14
14
|
|
@@ -22,8 +22,13 @@ module Azure::ARM::CDN
|
|
22
22
|
# domain. Possible values include: 'Creating', 'Active', 'Deleting'
|
23
23
|
attr_accessor :resource_state
|
24
24
|
|
25
|
-
# @return [
|
26
|
-
#
|
25
|
+
# @return [String] Special validation or data may be required when
|
26
|
+
# delivering CDN to some regions due to local compliance reasons. (e.g.
|
27
|
+
# ICP license number of a custom domain is required to deliver content in
|
28
|
+
# China.)
|
29
|
+
attr_accessor :validation_data
|
30
|
+
|
31
|
+
# @return [String] Provisioning status of the custom domain.
|
27
32
|
attr_accessor :provisioning_state
|
28
33
|
|
29
34
|
|
@@ -63,6 +68,27 @@ module Azure::ARM::CDN
|
|
63
68
|
name: 'String'
|
64
69
|
}
|
65
70
|
},
|
71
|
+
location: {
|
72
|
+
required: true,
|
73
|
+
serialized_name: 'location',
|
74
|
+
type: {
|
75
|
+
name: 'String'
|
76
|
+
}
|
77
|
+
},
|
78
|
+
tags: {
|
79
|
+
required: false,
|
80
|
+
serialized_name: 'tags',
|
81
|
+
type: {
|
82
|
+
name: 'Dictionary',
|
83
|
+
value: {
|
84
|
+
required: false,
|
85
|
+
serialized_name: 'StringElementType',
|
86
|
+
type: {
|
87
|
+
name: 'String'
|
88
|
+
}
|
89
|
+
}
|
90
|
+
}
|
91
|
+
},
|
66
92
|
host_name: {
|
67
93
|
required: true,
|
68
94
|
serialized_name: 'properties.hostName',
|
@@ -75,16 +101,22 @@ module Azure::ARM::CDN
|
|
75
101
|
read_only: true,
|
76
102
|
serialized_name: 'properties.resourceState',
|
77
103
|
type: {
|
78
|
-
name: '
|
79
|
-
|
104
|
+
name: 'String'
|
105
|
+
}
|
106
|
+
},
|
107
|
+
validation_data: {
|
108
|
+
required: false,
|
109
|
+
serialized_name: 'properties.validationData',
|
110
|
+
type: {
|
111
|
+
name: 'String'
|
80
112
|
}
|
81
113
|
},
|
82
114
|
provisioning_state: {
|
83
115
|
required: false,
|
116
|
+
read_only: true,
|
84
117
|
serialized_name: 'properties.provisioningState',
|
85
118
|
type: {
|
86
|
-
name: '
|
87
|
-
module: 'ProvisioningState'
|
119
|
+
name: 'String'
|
88
120
|
}
|
89
121
|
}
|
90
122
|
}
|
@@ -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 custom domains. It contains a list of
|
10
|
+
# custom domain objects and a URL link to get the next set of results.
|
10
11
|
#
|
11
12
|
class CustomDomainListResult
|
12
13
|
|
@@ -16,6 +17,41 @@ module Azure::ARM::CDN
|
|
16
17
|
# endpoint.
|
17
18
|
attr_accessor :value
|
18
19
|
|
20
|
+
# @return [String] URL to get the next set of custom domain objects 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<CustomDomain>] 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 [CustomDomainListResult] 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 CustomDomainListResult 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,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
|
+
# The customDomain JSON object required for custom domain creation or
|
10
|
+
# update.
|
10
11
|
#
|
11
12
|
class CustomDomainParameters
|
12
13
|
|
@@ -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
|
+
# Origins to be added when creating a CDN endpoint.
|
10
10
|
#
|
11
11
|
class DeepCreatedOrigin
|
12
12
|
|
@@ -57,6 +57,10 @@ module Azure::ARM::CDN
|
|
57
57
|
http_port: {
|
58
58
|
required: false,
|
59
59
|
serialized_name: 'properties.httpPort',
|
60
|
+
constraints: {
|
61
|
+
InclusiveMaximum: 65535,
|
62
|
+
InclusiveMinimum: 1
|
63
|
+
},
|
60
64
|
type: {
|
61
65
|
name: 'Number'
|
62
66
|
}
|
@@ -64,6 +68,10 @@ module Azure::ARM::CDN
|
|
64
68
|
https_port: {
|
65
69
|
required: false,
|
66
70
|
serialized_name: 'properties.httpsPort',
|
71
|
+
constraints: {
|
72
|
+
InclusiveMaximum: 65535,
|
73
|
+
InclusiveMinimum: 1
|
74
|
+
},
|
67
75
|
type: {
|
68
76
|
name: 'Number'
|
69
77
|
}
|
@@ -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
|
|
@@ -7,44 +7,40 @@ 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
|
11
|
-
#
|
12
|
-
#
|
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.
|
13
13
|
#
|
14
|
-
class Endpoint <
|
14
|
+
class Endpoint < MsRestAzure::Resource
|
15
15
|
|
16
16
|
include MsRestAzure
|
17
17
|
|
18
|
-
# @return [String] The host name of the endpoint {endpointName}.{DNSZone}
|
19
|
-
attr_accessor :host_name
|
20
|
-
|
21
18
|
# @return [String] The host header the CDN provider will send along with
|
22
|
-
# content requests to origins. The default value is the host name of
|
23
|
-
#
|
19
|
+
# content requests to origins. The default value is the host name of the
|
20
|
+
# origin.
|
24
21
|
attr_accessor :origin_host_header
|
25
22
|
|
26
23
|
# @return [String] The path used for origin requests.
|
27
24
|
attr_accessor :origin_path
|
28
25
|
|
29
|
-
# @return [Array<String>] List of content types on which compression
|
30
|
-
#
|
31
|
-
# 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.
|
32
28
|
attr_accessor :content_types_to_compress
|
33
29
|
|
34
|
-
# @return [Boolean] Indicates whether
|
35
|
-
#
|
36
|
-
# transferred from
|
37
|
-
# requested content must be larger than 1 byte and smaller than 1 MB.
|
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.
|
38
34
|
attr_accessor :is_compression_enabled
|
39
35
|
|
40
36
|
# @return [Boolean] Indicates whether HTTP traffic is allowed on the
|
41
|
-
# endpoint. Default value is true. At least one protocol (HTTP or
|
42
|
-
#
|
37
|
+
# endpoint. Default value is true. At least one protocol (HTTP or HTTPS)
|
38
|
+
# must be allowed.
|
43
39
|
attr_accessor :is_http_allowed
|
44
40
|
|
45
|
-
# @return [Boolean] Indicates whether
|
46
|
-
# endpoint. Default value is true. At least one protocol (HTTP or
|
47
|
-
#
|
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.
|
48
44
|
attr_accessor :is_https_allowed
|
49
45
|
|
50
46
|
# @return [QueryStringCachingBehavior] Defines the query string caching
|
@@ -52,18 +48,29 @@ module Azure::ARM::CDN
|
|
52
48
|
# 'BypassCaching', 'UseQueryString', 'NotSet'
|
53
49
|
attr_accessor :query_string_caching_behavior
|
54
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
|
+
|
60
|
+
# @return [String] The host name of the endpoint {endpointName}.{DNSZone}
|
61
|
+
attr_accessor :host_name
|
62
|
+
|
55
63
|
# @return [Array<DeepCreatedOrigin>] The set of origins for the CDN
|
56
|
-
# endpoint. When multiple origins exist, the first origin will be used
|
57
|
-
#
|
64
|
+
# endpoint. When multiple origins exist, the first origin will be used as
|
65
|
+
# primary and rest will be used as failover options.
|
58
66
|
attr_accessor :origins
|
59
67
|
|
60
68
|
# @return [EndpointResourceState] Resource status of the endpoint.
|
61
|
-
# Possible values include: 'Creating', 'Deleting', 'Running',
|
62
|
-
# '
|
69
|
+
# Possible values include: 'Creating', 'Deleting', 'Running', 'Starting',
|
70
|
+
# 'Stopped', 'Stopping'
|
63
71
|
attr_accessor :resource_state
|
64
72
|
|
65
|
-
# @return [
|
66
|
-
# Possible values include: 'Creating', 'Succeeded', 'Failed'
|
73
|
+
# @return [String] Provisioning status of the endpoint.
|
67
74
|
attr_accessor :provisioning_state
|
68
75
|
|
69
76
|
|
@@ -111,7 +118,7 @@ module Azure::ARM::CDN
|
|
111
118
|
}
|
112
119
|
},
|
113
120
|
tags: {
|
114
|
-
required:
|
121
|
+
required: false,
|
115
122
|
serialized_name: 'tags',
|
116
123
|
type: {
|
117
124
|
name: 'Dictionary',
|
@@ -124,14 +131,6 @@ module Azure::ARM::CDN
|
|
124
131
|
}
|
125
132
|
}
|
126
133
|
},
|
127
|
-
host_name: {
|
128
|
-
required: false,
|
129
|
-
read_only: true,
|
130
|
-
serialized_name: 'properties.hostName',
|
131
|
-
type: {
|
132
|
-
name: 'String'
|
133
|
-
}
|
134
|
-
},
|
135
134
|
origin_host_header: {
|
136
135
|
required: false,
|
137
136
|
serialized_name: 'properties.originHostHeader',
|
@@ -189,8 +188,38 @@ module Azure::ARM::CDN
|
|
189
188
|
module: 'QueryStringCachingBehavior'
|
190
189
|
}
|
191
190
|
},
|
192
|
-
|
191
|
+
optimization_type: {
|
193
192
|
required: false,
|
193
|
+
serialized_name: 'properties.optimizationType',
|
194
|
+
type: {
|
195
|
+
name: 'String'
|
196
|
+
}
|
197
|
+
},
|
198
|
+
geo_filters: {
|
199
|
+
required: false,
|
200
|
+
serialized_name: 'properties.geoFilters',
|
201
|
+
type: {
|
202
|
+
name: 'Sequence',
|
203
|
+
element: {
|
204
|
+
required: false,
|
205
|
+
serialized_name: 'GeoFilterElementType',
|
206
|
+
type: {
|
207
|
+
name: 'Composite',
|
208
|
+
class_name: 'GeoFilter'
|
209
|
+
}
|
210
|
+
}
|
211
|
+
}
|
212
|
+
},
|
213
|
+
host_name: {
|
214
|
+
required: false,
|
215
|
+
read_only: true,
|
216
|
+
serialized_name: 'properties.hostName',
|
217
|
+
type: {
|
218
|
+
name: 'String'
|
219
|
+
}
|
220
|
+
},
|
221
|
+
origins: {
|
222
|
+
required: true,
|
194
223
|
serialized_name: 'properties.origins',
|
195
224
|
type: {
|
196
225
|
name: 'Sequence',
|
@@ -209,16 +238,15 @@ module Azure::ARM::CDN
|
|
209
238
|
read_only: true,
|
210
239
|
serialized_name: 'properties.resourceState',
|
211
240
|
type: {
|
212
|
-
name: '
|
213
|
-
module: 'EndpointResourceState'
|
241
|
+
name: 'String'
|
214
242
|
}
|
215
243
|
},
|
216
244
|
provisioning_state: {
|
217
245
|
required: false,
|
246
|
+
read_only: true,
|
218
247
|
serialized_name: 'properties.provisioningState',
|
219
248
|
type: {
|
220
|
-
name: '
|
221
|
-
module: 'ProvisioningState'
|
249
|
+
name: 'String'
|
222
250
|
}
|
223
251
|
}
|
224
252
|
}
|
@@ -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 endpoints. It contains a list of endpoint
|
10
|
+
# objects and a URL link to get the the next set of results.
|
10
11
|
#
|
11
12
|
class EndpointListResult
|
12
13
|
|
@@ -15,6 +16,41 @@ module Azure::ARM::CDN
|
|
15
16
|
# @return [Array<Endpoint>] List of CDN endpoints within a profile
|
16
17
|
attr_accessor :value
|
17
18
|
|
19
|
+
# @return [String] URL to get the next set of endpoint objects if there
|
20
|
+
# are 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<Endpoint>] 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 [EndpointListResult] 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 EndpointListResult 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
|
}
|