azure_mgmt_devtestlabs 0.4.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.rspec +3 -0
- data/LICENSE.txt +21 -0
- data/Rakefile +5 -0
- data/azure_mgmt_devtestlabs.gemspec +34 -0
- data/lib/azure_mgmt_devtestlabs.rb +5 -0
- data/lib/generated/azure_mgmt_devtestlabs.rb +103 -0
- data/lib/generated/azure_mgmt_devtestlabs/artifact_operations.rb +477 -0
- data/lib/generated/azure_mgmt_devtestlabs/artifact_source_operations.rb +669 -0
- data/lib/generated/azure_mgmt_devtestlabs/cost_operations.rb +124 -0
- data/lib/generated/azure_mgmt_devtestlabs/custom_image_operations.rb +648 -0
- data/lib/generated/azure_mgmt_devtestlabs/dev_test_labs_client.rb +110 -0
- data/lib/generated/azure_mgmt_devtestlabs/formula_operations.rb +608 -0
- data/lib/generated/azure_mgmt_devtestlabs/gallery_image_operations.rb +252 -0
- data/lib/generated/azure_mgmt_devtestlabs/lab_operations.rb +1403 -0
- data/lib/generated/azure_mgmt_devtestlabs/models/apply_artifacts_request.rb +53 -0
- data/lib/generated/azure_mgmt_devtestlabs/models/arm_template_info.rb +54 -0
- data/lib/generated/azure_mgmt_devtestlabs/models/artifact.rb +151 -0
- data/lib/generated/azure_mgmt_devtestlabs/models/artifact_deployment_status_properties.rb +66 -0
- data/lib/generated/azure_mgmt_devtestlabs/models/artifact_install_properties.rb +63 -0
- data/lib/generated/azure_mgmt_devtestlabs/models/artifact_parameter_properties.rb +54 -0
- data/lib/generated/azure_mgmt_devtestlabs/models/artifact_source.rb +183 -0
- data/lib/generated/azure_mgmt_devtestlabs/models/cost.rb +139 -0
- data/lib/generated/azure_mgmt_devtestlabs/models/cost_per_day_properties.rb +65 -0
- data/lib/generated/azure_mgmt_devtestlabs/models/custom_image.rb +164 -0
- data/lib/generated/azure_mgmt_devtestlabs/models/custom_image_os_type.rb +17 -0
- data/lib/generated/azure_mgmt_devtestlabs/models/custom_image_properties_custom.rb +65 -0
- data/lib/generated/azure_mgmt_devtestlabs/models/custom_image_properties_from_vm.rb +66 -0
- data/lib/generated/azure_mgmt_devtestlabs/models/day_details.rb +44 -0
- data/lib/generated/azure_mgmt_devtestlabs/models/enable_status.rb +16 -0
- data/lib/generated/azure_mgmt_devtestlabs/models/evaluate_policies_properties.rb +64 -0
- data/lib/generated/azure_mgmt_devtestlabs/models/evaluate_policies_request.rb +52 -0
- data/lib/generated/azure_mgmt_devtestlabs/models/evaluate_policies_response.rb +52 -0
- data/lib/generated/azure_mgmt_devtestlabs/models/formula.rb +174 -0
- data/lib/generated/azure_mgmt_devtestlabs/models/formula_properties_from_vm.rb +45 -0
- data/lib/generated/azure_mgmt_devtestlabs/models/gallery_image.rb +153 -0
- data/lib/generated/azure_mgmt_devtestlabs/models/gallery_image_reference.rb +84 -0
- data/lib/generated/azure_mgmt_devtestlabs/models/generate_arm_template_request.rb +72 -0
- data/lib/generated/azure_mgmt_devtestlabs/models/generate_upload_uri_parameter.rb +44 -0
- data/lib/generated/azure_mgmt_devtestlabs/models/generate_upload_uri_response.rb +44 -0
- data/lib/generated/azure_mgmt_devtestlabs/models/hour_details.rb +44 -0
- data/lib/generated/azure_mgmt_devtestlabs/models/lab.rb +162 -0
- data/lib/generated/azure_mgmt_devtestlabs/models/lab_cost_type.rb +17 -0
- data/lib/generated/azure_mgmt_devtestlabs/models/lab_storage_type.rb +16 -0
- data/lib/generated/azure_mgmt_devtestlabs/models/lab_vhd.rb +44 -0
- data/lib/generated/azure_mgmt_devtestlabs/models/lab_virtual_machine.rb +321 -0
- data/lib/generated/azure_mgmt_devtestlabs/models/linux_os_info.rb +46 -0
- data/lib/generated/azure_mgmt_devtestlabs/models/linux_os_state.rb +17 -0
- data/lib/generated/azure_mgmt_devtestlabs/models/parameter_info.rb +54 -0
- data/lib/generated/azure_mgmt_devtestlabs/models/policy.rb +175 -0
- data/lib/generated/azure_mgmt_devtestlabs/models/policy_evaluator_type.rb +16 -0
- data/lib/generated/azure_mgmt_devtestlabs/models/policy_fact_name.rb +19 -0
- data/lib/generated/azure_mgmt_devtestlabs/models/policy_set_result.rb +63 -0
- data/lib/generated/azure_mgmt_devtestlabs/models/policy_status.rb +16 -0
- data/lib/generated/azure_mgmt_devtestlabs/models/policy_violation.rb +54 -0
- data/lib/generated/azure_mgmt_devtestlabs/models/resource_cost_properties.rb +106 -0
- data/lib/generated/azure_mgmt_devtestlabs/models/response_with_continuation_artifact.rb +93 -0
- data/lib/generated/azure_mgmt_devtestlabs/models/response_with_continuation_artifact_source.rb +94 -0
- data/lib/generated/azure_mgmt_devtestlabs/models/response_with_continuation_custom_image.rb +93 -0
- data/lib/generated/azure_mgmt_devtestlabs/models/response_with_continuation_formula.rb +93 -0
- data/lib/generated/azure_mgmt_devtestlabs/models/response_with_continuation_gallery_image.rb +93 -0
- data/lib/generated/azure_mgmt_devtestlabs/models/response_with_continuation_lab.rb +93 -0
- data/lib/generated/azure_mgmt_devtestlabs/models/response_with_continuation_lab_vhd.rb +93 -0
- data/lib/generated/azure_mgmt_devtestlabs/models/response_with_continuation_lab_virtual_machine.rb +95 -0
- data/lib/generated/azure_mgmt_devtestlabs/models/response_with_continuation_policy.rb +93 -0
- data/lib/generated/azure_mgmt_devtestlabs/models/response_with_continuation_schedule.rb +93 -0
- data/lib/generated/azure_mgmt_devtestlabs/models/response_with_continuation_virtual_network.rb +94 -0
- data/lib/generated/azure_mgmt_devtestlabs/models/schedule.rb +175 -0
- data/lib/generated/azure_mgmt_devtestlabs/models/source_control_type.rb +16 -0
- data/lib/generated/azure_mgmt_devtestlabs/models/subnet.rb +65 -0
- data/lib/generated/azure_mgmt_devtestlabs/models/subnet_override.rb +78 -0
- data/lib/generated/azure_mgmt_devtestlabs/models/subscription_notification.rb +67 -0
- data/lib/generated/azure_mgmt_devtestlabs/models/subscription_notification_properties.rb +44 -0
- data/lib/generated/azure_mgmt_devtestlabs/models/subscription_notification_state.rb +20 -0
- data/lib/generated/azure_mgmt_devtestlabs/models/usage_permission_type.rb +17 -0
- data/lib/generated/azure_mgmt_devtestlabs/models/virtual_network.rb +169 -0
- data/lib/generated/azure_mgmt_devtestlabs/models/week_details.rb +61 -0
- data/lib/generated/azure_mgmt_devtestlabs/models/windows_os_info.rb +45 -0
- data/lib/generated/azure_mgmt_devtestlabs/models/windows_os_state.rb +17 -0
- data/lib/generated/azure_mgmt_devtestlabs/module_definition.rb +8 -0
- data/lib/generated/azure_mgmt_devtestlabs/policy_operations.rb +690 -0
- data/lib/generated/azure_mgmt_devtestlabs/policy_set.rb +137 -0
- data/lib/generated/azure_mgmt_devtestlabs/schedule_operations.rb +796 -0
- data/lib/generated/azure_mgmt_devtestlabs/version.rb +8 -0
- data/lib/generated/azure_mgmt_devtestlabs/virtual_machine.rb +1155 -0
- data/lib/generated/azure_mgmt_devtestlabs/virtual_network_operations.rb +759 -0
- metadata +199 -0
@@ -0,0 +1,93 @@
|
|
1
|
+
# encoding: utf-8
|
2
|
+
# Code generated by Microsoft (R) AutoRest Code Generator 0.17.0.0
|
3
|
+
# Changes may cause incorrect behavior and will be lost if the code is
|
4
|
+
# regenerated.
|
5
|
+
|
6
|
+
module Azure::ARM::DevTestLabs
|
7
|
+
module Models
|
8
|
+
#
|
9
|
+
# The response of a list operation.
|
10
|
+
#
|
11
|
+
class ResponseWithContinuationGalleryImage
|
12
|
+
|
13
|
+
include MsRestAzure
|
14
|
+
|
15
|
+
# @return [Array<GalleryImage>] Results of the list operation.
|
16
|
+
attr_accessor :value
|
17
|
+
|
18
|
+
# @return [String] Link for next set of results.
|
19
|
+
attr_accessor :next_link
|
20
|
+
|
21
|
+
# return [Proc] with next page method call.
|
22
|
+
attr_accessor :next_method
|
23
|
+
|
24
|
+
#
|
25
|
+
# Gets the rest of the items for the request, enabling auto-pagination.
|
26
|
+
#
|
27
|
+
# @return [Array<GalleryImage>] operation results.
|
28
|
+
#
|
29
|
+
def get_all_items
|
30
|
+
items = @value
|
31
|
+
page = self
|
32
|
+
while page.next_link != nil do
|
33
|
+
page = page.get_next_page
|
34
|
+
items.concat(page.value)
|
35
|
+
end
|
36
|
+
items
|
37
|
+
end
|
38
|
+
|
39
|
+
#
|
40
|
+
# Gets the next page of results.
|
41
|
+
#
|
42
|
+
# @return [ResponseWithContinuationGalleryImage] with next page content.
|
43
|
+
#
|
44
|
+
def get_next_page
|
45
|
+
response = @next_method.call(@next_link).value! unless @next_method.nil?
|
46
|
+
unless response.nil?
|
47
|
+
@next_link = response.body.next_link
|
48
|
+
@value = response.body.value
|
49
|
+
self
|
50
|
+
end
|
51
|
+
end
|
52
|
+
|
53
|
+
#
|
54
|
+
# Mapper for ResponseWithContinuationGalleryImage class as Ruby Hash.
|
55
|
+
# This will be used for serialization/deserialization.
|
56
|
+
#
|
57
|
+
def self.mapper()
|
58
|
+
{
|
59
|
+
required: false,
|
60
|
+
serialized_name: 'ResponseWithContinuation[GalleryImage]',
|
61
|
+
type: {
|
62
|
+
name: 'Composite',
|
63
|
+
class_name: 'ResponseWithContinuationGalleryImage',
|
64
|
+
model_properties: {
|
65
|
+
value: {
|
66
|
+
required: false,
|
67
|
+
serialized_name: 'value',
|
68
|
+
type: {
|
69
|
+
name: 'Sequence',
|
70
|
+
element: {
|
71
|
+
required: false,
|
72
|
+
serialized_name: 'GalleryImageElementType',
|
73
|
+
type: {
|
74
|
+
name: 'Composite',
|
75
|
+
class_name: 'GalleryImage'
|
76
|
+
}
|
77
|
+
}
|
78
|
+
}
|
79
|
+
},
|
80
|
+
next_link: {
|
81
|
+
required: false,
|
82
|
+
serialized_name: 'nextLink',
|
83
|
+
type: {
|
84
|
+
name: 'String'
|
85
|
+
}
|
86
|
+
}
|
87
|
+
}
|
88
|
+
}
|
89
|
+
}
|
90
|
+
end
|
91
|
+
end
|
92
|
+
end
|
93
|
+
end
|
@@ -0,0 +1,93 @@
|
|
1
|
+
# encoding: utf-8
|
2
|
+
# Code generated by Microsoft (R) AutoRest Code Generator 0.17.0.0
|
3
|
+
# Changes may cause incorrect behavior and will be lost if the code is
|
4
|
+
# regenerated.
|
5
|
+
|
6
|
+
module Azure::ARM::DevTestLabs
|
7
|
+
module Models
|
8
|
+
#
|
9
|
+
# The response of a list operation.
|
10
|
+
#
|
11
|
+
class ResponseWithContinuationLab
|
12
|
+
|
13
|
+
include MsRestAzure
|
14
|
+
|
15
|
+
# @return [Array<Lab>] Results of the list operation.
|
16
|
+
attr_accessor :value
|
17
|
+
|
18
|
+
# @return [String] Link for next set of results.
|
19
|
+
attr_accessor :next_link
|
20
|
+
|
21
|
+
# return [Proc] with next page method call.
|
22
|
+
attr_accessor :next_method
|
23
|
+
|
24
|
+
#
|
25
|
+
# Gets the rest of the items for the request, enabling auto-pagination.
|
26
|
+
#
|
27
|
+
# @return [Array<Lab>] operation results.
|
28
|
+
#
|
29
|
+
def get_all_items
|
30
|
+
items = @value
|
31
|
+
page = self
|
32
|
+
while page.next_link != nil do
|
33
|
+
page = page.get_next_page
|
34
|
+
items.concat(page.value)
|
35
|
+
end
|
36
|
+
items
|
37
|
+
end
|
38
|
+
|
39
|
+
#
|
40
|
+
# Gets the next page of results.
|
41
|
+
#
|
42
|
+
# @return [ResponseWithContinuationLab] with next page content.
|
43
|
+
#
|
44
|
+
def get_next_page
|
45
|
+
response = @next_method.call(@next_link).value! unless @next_method.nil?
|
46
|
+
unless response.nil?
|
47
|
+
@next_link = response.body.next_link
|
48
|
+
@value = response.body.value
|
49
|
+
self
|
50
|
+
end
|
51
|
+
end
|
52
|
+
|
53
|
+
#
|
54
|
+
# Mapper for ResponseWithContinuationLab class as Ruby Hash.
|
55
|
+
# This will be used for serialization/deserialization.
|
56
|
+
#
|
57
|
+
def self.mapper()
|
58
|
+
{
|
59
|
+
required: false,
|
60
|
+
serialized_name: 'ResponseWithContinuation[Lab]',
|
61
|
+
type: {
|
62
|
+
name: 'Composite',
|
63
|
+
class_name: 'ResponseWithContinuationLab',
|
64
|
+
model_properties: {
|
65
|
+
value: {
|
66
|
+
required: false,
|
67
|
+
serialized_name: 'value',
|
68
|
+
type: {
|
69
|
+
name: 'Sequence',
|
70
|
+
element: {
|
71
|
+
required: false,
|
72
|
+
serialized_name: 'LabElementType',
|
73
|
+
type: {
|
74
|
+
name: 'Composite',
|
75
|
+
class_name: 'Lab'
|
76
|
+
}
|
77
|
+
}
|
78
|
+
}
|
79
|
+
},
|
80
|
+
next_link: {
|
81
|
+
required: false,
|
82
|
+
serialized_name: 'nextLink',
|
83
|
+
type: {
|
84
|
+
name: 'String'
|
85
|
+
}
|
86
|
+
}
|
87
|
+
}
|
88
|
+
}
|
89
|
+
}
|
90
|
+
end
|
91
|
+
end
|
92
|
+
end
|
93
|
+
end
|
@@ -0,0 +1,93 @@
|
|
1
|
+
# encoding: utf-8
|
2
|
+
# Code generated by Microsoft (R) AutoRest Code Generator 0.17.0.0
|
3
|
+
# Changes may cause incorrect behavior and will be lost if the code is
|
4
|
+
# regenerated.
|
5
|
+
|
6
|
+
module Azure::ARM::DevTestLabs
|
7
|
+
module Models
|
8
|
+
#
|
9
|
+
# The response of a list operation.
|
10
|
+
#
|
11
|
+
class ResponseWithContinuationLabVhd
|
12
|
+
|
13
|
+
include MsRestAzure
|
14
|
+
|
15
|
+
# @return [Array<LabVhd>] Results of the list operation.
|
16
|
+
attr_accessor :value
|
17
|
+
|
18
|
+
# @return [String] Link for next set of results.
|
19
|
+
attr_accessor :next_link
|
20
|
+
|
21
|
+
# return [Proc] with next page method call.
|
22
|
+
attr_accessor :next_method
|
23
|
+
|
24
|
+
#
|
25
|
+
# Gets the rest of the items for the request, enabling auto-pagination.
|
26
|
+
#
|
27
|
+
# @return [Array<LabVhd>] operation results.
|
28
|
+
#
|
29
|
+
def get_all_items
|
30
|
+
items = @value
|
31
|
+
page = self
|
32
|
+
while page.next_link != nil do
|
33
|
+
page = page.get_next_page
|
34
|
+
items.concat(page.value)
|
35
|
+
end
|
36
|
+
items
|
37
|
+
end
|
38
|
+
|
39
|
+
#
|
40
|
+
# Gets the next page of results.
|
41
|
+
#
|
42
|
+
# @return [ResponseWithContinuationLabVhd] with next page content.
|
43
|
+
#
|
44
|
+
def get_next_page
|
45
|
+
response = @next_method.call(@next_link).value! unless @next_method.nil?
|
46
|
+
unless response.nil?
|
47
|
+
@next_link = response.body.next_link
|
48
|
+
@value = response.body.value
|
49
|
+
self
|
50
|
+
end
|
51
|
+
end
|
52
|
+
|
53
|
+
#
|
54
|
+
# Mapper for ResponseWithContinuationLabVhd class as Ruby Hash.
|
55
|
+
# This will be used for serialization/deserialization.
|
56
|
+
#
|
57
|
+
def self.mapper()
|
58
|
+
{
|
59
|
+
required: false,
|
60
|
+
serialized_name: 'ResponseWithContinuation[LabVhd]',
|
61
|
+
type: {
|
62
|
+
name: 'Composite',
|
63
|
+
class_name: 'ResponseWithContinuationLabVhd',
|
64
|
+
model_properties: {
|
65
|
+
value: {
|
66
|
+
required: false,
|
67
|
+
serialized_name: 'value',
|
68
|
+
type: {
|
69
|
+
name: 'Sequence',
|
70
|
+
element: {
|
71
|
+
required: false,
|
72
|
+
serialized_name: 'LabVhdElementType',
|
73
|
+
type: {
|
74
|
+
name: 'Composite',
|
75
|
+
class_name: 'LabVhd'
|
76
|
+
}
|
77
|
+
}
|
78
|
+
}
|
79
|
+
},
|
80
|
+
next_link: {
|
81
|
+
required: false,
|
82
|
+
serialized_name: 'nextLink',
|
83
|
+
type: {
|
84
|
+
name: 'String'
|
85
|
+
}
|
86
|
+
}
|
87
|
+
}
|
88
|
+
}
|
89
|
+
}
|
90
|
+
end
|
91
|
+
end
|
92
|
+
end
|
93
|
+
end
|
data/lib/generated/azure_mgmt_devtestlabs/models/response_with_continuation_lab_virtual_machine.rb
ADDED
@@ -0,0 +1,95 @@
|
|
1
|
+
# encoding: utf-8
|
2
|
+
# Code generated by Microsoft (R) AutoRest Code Generator 0.17.0.0
|
3
|
+
# Changes may cause incorrect behavior and will be lost if the code is
|
4
|
+
# regenerated.
|
5
|
+
|
6
|
+
module Azure::ARM::DevTestLabs
|
7
|
+
module Models
|
8
|
+
#
|
9
|
+
# The response of a list operation.
|
10
|
+
#
|
11
|
+
class ResponseWithContinuationLabVirtualMachine
|
12
|
+
|
13
|
+
include MsRestAzure
|
14
|
+
|
15
|
+
# @return [Array<LabVirtualMachine>] Results of the list operation.
|
16
|
+
attr_accessor :value
|
17
|
+
|
18
|
+
# @return [String] Link for next set of results.
|
19
|
+
attr_accessor :next_link
|
20
|
+
|
21
|
+
# return [Proc] with next page method call.
|
22
|
+
attr_accessor :next_method
|
23
|
+
|
24
|
+
#
|
25
|
+
# Gets the rest of the items for the request, enabling auto-pagination.
|
26
|
+
#
|
27
|
+
# @return [Array<LabVirtualMachine>] operation results.
|
28
|
+
#
|
29
|
+
def get_all_items
|
30
|
+
items = @value
|
31
|
+
page = self
|
32
|
+
while page.next_link != nil do
|
33
|
+
page = page.get_next_page
|
34
|
+
items.concat(page.value)
|
35
|
+
end
|
36
|
+
items
|
37
|
+
end
|
38
|
+
|
39
|
+
#
|
40
|
+
# Gets the next page of results.
|
41
|
+
#
|
42
|
+
# @return [ResponseWithContinuationLabVirtualMachine] with next page
|
43
|
+
# content.
|
44
|
+
#
|
45
|
+
def get_next_page
|
46
|
+
response = @next_method.call(@next_link).value! unless @next_method.nil?
|
47
|
+
unless response.nil?
|
48
|
+
@next_link = response.body.next_link
|
49
|
+
@value = response.body.value
|
50
|
+
self
|
51
|
+
end
|
52
|
+
end
|
53
|
+
|
54
|
+
#
|
55
|
+
# Mapper for ResponseWithContinuationLabVirtualMachine class as Ruby
|
56
|
+
# Hash.
|
57
|
+
# This will be used for serialization/deserialization.
|
58
|
+
#
|
59
|
+
def self.mapper()
|
60
|
+
{
|
61
|
+
required: false,
|
62
|
+
serialized_name: 'ResponseWithContinuation[LabVirtualMachine]',
|
63
|
+
type: {
|
64
|
+
name: 'Composite',
|
65
|
+
class_name: 'ResponseWithContinuationLabVirtualMachine',
|
66
|
+
model_properties: {
|
67
|
+
value: {
|
68
|
+
required: false,
|
69
|
+
serialized_name: 'value',
|
70
|
+
type: {
|
71
|
+
name: 'Sequence',
|
72
|
+
element: {
|
73
|
+
required: false,
|
74
|
+
serialized_name: 'LabVirtualMachineElementType',
|
75
|
+
type: {
|
76
|
+
name: 'Composite',
|
77
|
+
class_name: 'LabVirtualMachine'
|
78
|
+
}
|
79
|
+
}
|
80
|
+
}
|
81
|
+
},
|
82
|
+
next_link: {
|
83
|
+
required: false,
|
84
|
+
serialized_name: 'nextLink',
|
85
|
+
type: {
|
86
|
+
name: 'String'
|
87
|
+
}
|
88
|
+
}
|
89
|
+
}
|
90
|
+
}
|
91
|
+
}
|
92
|
+
end
|
93
|
+
end
|
94
|
+
end
|
95
|
+
end
|
@@ -0,0 +1,93 @@
|
|
1
|
+
# encoding: utf-8
|
2
|
+
# Code generated by Microsoft (R) AutoRest Code Generator 0.17.0.0
|
3
|
+
# Changes may cause incorrect behavior and will be lost if the code is
|
4
|
+
# regenerated.
|
5
|
+
|
6
|
+
module Azure::ARM::DevTestLabs
|
7
|
+
module Models
|
8
|
+
#
|
9
|
+
# The response of a list operation.
|
10
|
+
#
|
11
|
+
class ResponseWithContinuationPolicy
|
12
|
+
|
13
|
+
include MsRestAzure
|
14
|
+
|
15
|
+
# @return [Array<Policy>] Results of the list operation.
|
16
|
+
attr_accessor :value
|
17
|
+
|
18
|
+
# @return [String] Link for next set of results.
|
19
|
+
attr_accessor :next_link
|
20
|
+
|
21
|
+
# return [Proc] with next page method call.
|
22
|
+
attr_accessor :next_method
|
23
|
+
|
24
|
+
#
|
25
|
+
# Gets the rest of the items for the request, enabling auto-pagination.
|
26
|
+
#
|
27
|
+
# @return [Array<Policy>] operation results.
|
28
|
+
#
|
29
|
+
def get_all_items
|
30
|
+
items = @value
|
31
|
+
page = self
|
32
|
+
while page.next_link != nil do
|
33
|
+
page = page.get_next_page
|
34
|
+
items.concat(page.value)
|
35
|
+
end
|
36
|
+
items
|
37
|
+
end
|
38
|
+
|
39
|
+
#
|
40
|
+
# Gets the next page of results.
|
41
|
+
#
|
42
|
+
# @return [ResponseWithContinuationPolicy] with next page content.
|
43
|
+
#
|
44
|
+
def get_next_page
|
45
|
+
response = @next_method.call(@next_link).value! unless @next_method.nil?
|
46
|
+
unless response.nil?
|
47
|
+
@next_link = response.body.next_link
|
48
|
+
@value = response.body.value
|
49
|
+
self
|
50
|
+
end
|
51
|
+
end
|
52
|
+
|
53
|
+
#
|
54
|
+
# Mapper for ResponseWithContinuationPolicy class as Ruby Hash.
|
55
|
+
# This will be used for serialization/deserialization.
|
56
|
+
#
|
57
|
+
def self.mapper()
|
58
|
+
{
|
59
|
+
required: false,
|
60
|
+
serialized_name: 'ResponseWithContinuation[Policy]',
|
61
|
+
type: {
|
62
|
+
name: 'Composite',
|
63
|
+
class_name: 'ResponseWithContinuationPolicy',
|
64
|
+
model_properties: {
|
65
|
+
value: {
|
66
|
+
required: false,
|
67
|
+
serialized_name: 'value',
|
68
|
+
type: {
|
69
|
+
name: 'Sequence',
|
70
|
+
element: {
|
71
|
+
required: false,
|
72
|
+
serialized_name: 'PolicyElementType',
|
73
|
+
type: {
|
74
|
+
name: 'Composite',
|
75
|
+
class_name: 'Policy'
|
76
|
+
}
|
77
|
+
}
|
78
|
+
}
|
79
|
+
},
|
80
|
+
next_link: {
|
81
|
+
required: false,
|
82
|
+
serialized_name: 'nextLink',
|
83
|
+
type: {
|
84
|
+
name: 'String'
|
85
|
+
}
|
86
|
+
}
|
87
|
+
}
|
88
|
+
}
|
89
|
+
}
|
90
|
+
end
|
91
|
+
end
|
92
|
+
end
|
93
|
+
end
|