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,106 @@
|
|
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 properties of a resource cost item.
|
10
|
+
#
|
11
|
+
class ResourceCostProperties
|
12
|
+
|
13
|
+
include MsRestAzure
|
14
|
+
|
15
|
+
# @return [String] The name of the resource.
|
16
|
+
attr_accessor :resourcename
|
17
|
+
|
18
|
+
# @return [String] The name of the resource group.
|
19
|
+
attr_accessor :resource_group_name
|
20
|
+
|
21
|
+
# @return [Float] The cost component of the resource cost item.
|
22
|
+
attr_accessor :resource_cost
|
23
|
+
|
24
|
+
# @return [String] The email address of the owner of the resource
|
25
|
+
attr_accessor :owner
|
26
|
+
|
27
|
+
# @return [String] The category of the resource. For VM this will be set
|
28
|
+
# to its size, for storage account it will be set to standard or premium
|
29
|
+
attr_accessor :category
|
30
|
+
|
31
|
+
# @return [Boolean] Whether the resource still exists or not
|
32
|
+
attr_accessor :exists
|
33
|
+
|
34
|
+
# @return [String] The logical resource type (ex. virtualmachine,
|
35
|
+
# storageaccount)
|
36
|
+
attr_accessor :resource_type
|
37
|
+
|
38
|
+
|
39
|
+
#
|
40
|
+
# Mapper for ResourceCostProperties class as Ruby Hash.
|
41
|
+
# This will be used for serialization/deserialization.
|
42
|
+
#
|
43
|
+
def self.mapper()
|
44
|
+
{
|
45
|
+
required: false,
|
46
|
+
serialized_name: 'ResourceCostProperties',
|
47
|
+
type: {
|
48
|
+
name: 'Composite',
|
49
|
+
class_name: 'ResourceCostProperties',
|
50
|
+
model_properties: {
|
51
|
+
resourcename: {
|
52
|
+
required: false,
|
53
|
+
serialized_name: 'resourcename',
|
54
|
+
type: {
|
55
|
+
name: 'String'
|
56
|
+
}
|
57
|
+
},
|
58
|
+
resource_group_name: {
|
59
|
+
required: false,
|
60
|
+
serialized_name: 'resourceGroupName',
|
61
|
+
type: {
|
62
|
+
name: 'String'
|
63
|
+
}
|
64
|
+
},
|
65
|
+
resource_cost: {
|
66
|
+
required: false,
|
67
|
+
serialized_name: 'resourceCost',
|
68
|
+
type: {
|
69
|
+
name: 'Double'
|
70
|
+
}
|
71
|
+
},
|
72
|
+
owner: {
|
73
|
+
required: false,
|
74
|
+
serialized_name: 'owner',
|
75
|
+
type: {
|
76
|
+
name: 'String'
|
77
|
+
}
|
78
|
+
},
|
79
|
+
category: {
|
80
|
+
required: false,
|
81
|
+
serialized_name: 'category',
|
82
|
+
type: {
|
83
|
+
name: 'String'
|
84
|
+
}
|
85
|
+
},
|
86
|
+
exists: {
|
87
|
+
required: false,
|
88
|
+
serialized_name: 'exists',
|
89
|
+
type: {
|
90
|
+
name: 'Boolean'
|
91
|
+
}
|
92
|
+
},
|
93
|
+
resource_type: {
|
94
|
+
required: false,
|
95
|
+
serialized_name: 'resourceType',
|
96
|
+
type: {
|
97
|
+
name: 'String'
|
98
|
+
}
|
99
|
+
}
|
100
|
+
}
|
101
|
+
}
|
102
|
+
}
|
103
|
+
end
|
104
|
+
end
|
105
|
+
end
|
106
|
+
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 ResponseWithContinuationArtifact
|
12
|
+
|
13
|
+
include MsRestAzure
|
14
|
+
|
15
|
+
# @return [Array<Artifact>] 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<Artifact>] 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 [ResponseWithContinuationArtifact] 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 ResponseWithContinuationArtifact 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[Artifact]',
|
61
|
+
type: {
|
62
|
+
name: 'Composite',
|
63
|
+
class_name: 'ResponseWithContinuationArtifact',
|
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: 'ArtifactElementType',
|
73
|
+
type: {
|
74
|
+
name: 'Composite',
|
75
|
+
class_name: 'Artifact'
|
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_artifact_source.rb
ADDED
@@ -0,0 +1,94 @@
|
|
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 ResponseWithContinuationArtifactSource
|
12
|
+
|
13
|
+
include MsRestAzure
|
14
|
+
|
15
|
+
# @return [Array<ArtifactSource>] 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<ArtifactSource>] 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 [ResponseWithContinuationArtifactSource] 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 ResponseWithContinuationArtifactSource class as Ruby Hash.
|
56
|
+
# This will be used for serialization/deserialization.
|
57
|
+
#
|
58
|
+
def self.mapper()
|
59
|
+
{
|
60
|
+
required: false,
|
61
|
+
serialized_name: 'ResponseWithContinuation[ArtifactSource]',
|
62
|
+
type: {
|
63
|
+
name: 'Composite',
|
64
|
+
class_name: 'ResponseWithContinuationArtifactSource',
|
65
|
+
model_properties: {
|
66
|
+
value: {
|
67
|
+
required: false,
|
68
|
+
serialized_name: 'value',
|
69
|
+
type: {
|
70
|
+
name: 'Sequence',
|
71
|
+
element: {
|
72
|
+
required: false,
|
73
|
+
serialized_name: 'ArtifactSourceElementType',
|
74
|
+
type: {
|
75
|
+
name: 'Composite',
|
76
|
+
class_name: 'ArtifactSource'
|
77
|
+
}
|
78
|
+
}
|
79
|
+
}
|
80
|
+
},
|
81
|
+
next_link: {
|
82
|
+
required: false,
|
83
|
+
serialized_name: 'nextLink',
|
84
|
+
type: {
|
85
|
+
name: 'String'
|
86
|
+
}
|
87
|
+
}
|
88
|
+
}
|
89
|
+
}
|
90
|
+
}
|
91
|
+
end
|
92
|
+
end
|
93
|
+
end
|
94
|
+
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 ResponseWithContinuationCustomImage
|
12
|
+
|
13
|
+
include MsRestAzure
|
14
|
+
|
15
|
+
# @return [Array<CustomImage>] 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<CustomImage>] 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 [ResponseWithContinuationCustomImage] 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 ResponseWithContinuationCustomImage 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[CustomImage]',
|
61
|
+
type: {
|
62
|
+
name: 'Composite',
|
63
|
+
class_name: 'ResponseWithContinuationCustomImage',
|
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: 'CustomImageElementType',
|
73
|
+
type: {
|
74
|
+
name: 'Composite',
|
75
|
+
class_name: 'CustomImage'
|
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 ResponseWithContinuationFormula
|
12
|
+
|
13
|
+
include MsRestAzure
|
14
|
+
|
15
|
+
# @return [Array<Formula>] 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<Formula>] 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 [ResponseWithContinuationFormula] 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 ResponseWithContinuationFormula 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[Formula]',
|
61
|
+
type: {
|
62
|
+
name: 'Composite',
|
63
|
+
class_name: 'ResponseWithContinuationFormula',
|
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: 'FormulaElementType',
|
73
|
+
type: {
|
74
|
+
name: 'Composite',
|
75
|
+
class_name: 'Formula'
|
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
|