azure_mgmt_vmware_cloudsimple 0.17.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/LICENSE.txt +21 -0
- data/lib/2019-04-01/generated/azure_mgmt_vmware_cloudsimple.rb +82 -0
- data/lib/2019-04-01/generated/azure_mgmt_vmware_cloudsimple/dedicated_cloud_nodes.rb +945 -0
- data/lib/2019-04-01/generated/azure_mgmt_vmware_cloudsimple/dedicated_cloud_services.rb +932 -0
- data/lib/2019-04-01/generated/azure_mgmt_vmware_cloudsimple/models/aggregation_type.rb +16 -0
- data/lib/2019-04-01/generated/azure_mgmt_vmware_cloudsimple/models/available_operation.rb +99 -0
- data/lib/2019-04-01/generated/azure_mgmt_vmware_cloudsimple/models/available_operation_display.rb +79 -0
- data/lib/2019-04-01/generated/azure_mgmt_vmware_cloudsimple/models/available_operation_display_property_service_specification_metrics_item.rb +94 -0
- data/lib/2019-04-01/generated/azure_mgmt_vmware_cloudsimple/models/available_operation_display_property_service_specification_metrics_list.rb +60 -0
- data/lib/2019-04-01/generated/azure_mgmt_vmware_cloudsimple/models/available_operations_list_response.rb +99 -0
- data/lib/2019-04-01/generated/azure_mgmt_vmware_cloudsimple/models/csrperror.rb +47 -0
- data/lib/2019-04-01/generated/azure_mgmt_vmware_cloudsimple/models/csrperror_body.rb +91 -0
- data/lib/2019-04-01/generated/azure_mgmt_vmware_cloudsimple/models/dedicated_cloud_node.rb +293 -0
- data/lib/2019-04-01/generated/azure_mgmt_vmware_cloudsimple/models/dedicated_cloud_node_list_response.rb +99 -0
- data/lib/2019-04-01/generated/azure_mgmt_vmware_cloudsimple/models/dedicated_cloud_service.rb +154 -0
- data/lib/2019-04-01/generated/azure_mgmt_vmware_cloudsimple/models/dedicated_cloud_service_list_response.rb +99 -0
- data/lib/2019-04-01/generated/azure_mgmt_vmware_cloudsimple/models/disk_independence_mode.rb +17 -0
- data/lib/2019-04-01/generated/azure_mgmt_vmware_cloudsimple/models/guest_ostype.rb +17 -0
- data/lib/2019-04-01/generated/azure_mgmt_vmware_cloudsimple/models/nictype.rb +20 -0
- data/lib/2019-04-01/generated/azure_mgmt_vmware_cloudsimple/models/node_status.rb +16 -0
- data/lib/2019-04-01/generated/azure_mgmt_vmware_cloudsimple/models/onboarding_status.rb +18 -0
- data/lib/2019-04-01/generated/azure_mgmt_vmware_cloudsimple/models/operation_error.rb +57 -0
- data/lib/2019-04-01/generated/azure_mgmt_vmware_cloudsimple/models/operation_origin.rb +17 -0
- data/lib/2019-04-01/generated/azure_mgmt_vmware_cloudsimple/models/operation_resource.rb +107 -0
- data/lib/2019-04-01/generated/azure_mgmt_vmware_cloudsimple/models/patch_payload.rb +54 -0
- data/lib/2019-04-01/generated/azure_mgmt_vmware_cloudsimple/models/private_cloud.rb +382 -0
- data/lib/2019-04-01/generated/azure_mgmt_vmware_cloudsimple/models/private_cloud_list.rb +98 -0
- data/lib/2019-04-01/generated/azure_mgmt_vmware_cloudsimple/models/private_cloud_resource_type.rb +15 -0
- data/lib/2019-04-01/generated/azure_mgmt_vmware_cloudsimple/models/resource_pool.rb +106 -0
- data/lib/2019-04-01/generated/azure_mgmt_vmware_cloudsimple/models/resource_pools_list_response.rb +98 -0
- data/lib/2019-04-01/generated/azure_mgmt_vmware_cloudsimple/models/sku.rb +93 -0
- data/lib/2019-04-01/generated/azure_mgmt_vmware_cloudsimple/models/sku_availability.rb +124 -0
- data/lib/2019-04-01/generated/azure_mgmt_vmware_cloudsimple/models/sku_availability_list_response.rb +99 -0
- data/lib/2019-04-01/generated/azure_mgmt_vmware_cloudsimple/models/stop_mode.rb +18 -0
- data/lib/2019-04-01/generated/azure_mgmt_vmware_cloudsimple/models/usage.rb +87 -0
- data/lib/2019-04-01/generated/azure_mgmt_vmware_cloudsimple/models/usage_count.rb +20 -0
- data/lib/2019-04-01/generated/azure_mgmt_vmware_cloudsimple/models/usage_list_response.rb +99 -0
- data/lib/2019-04-01/generated/azure_mgmt_vmware_cloudsimple/models/usage_name.rb +58 -0
- data/lib/2019-04-01/generated/azure_mgmt_vmware_cloudsimple/models/virtual_disk.rb +94 -0
- data/lib/2019-04-01/generated/azure_mgmt_vmware_cloudsimple/models/virtual_disk_controller.rb +84 -0
- data/lib/2019-04-01/generated/azure_mgmt_vmware_cloudsimple/models/virtual_machine.rb +388 -0
- data/lib/2019-04-01/generated/azure_mgmt_vmware_cloudsimple/models/virtual_machine_list_response.rb +98 -0
- data/lib/2019-04-01/generated/azure_mgmt_vmware_cloudsimple/models/virtual_machine_status.rb +20 -0
- data/lib/2019-04-01/generated/azure_mgmt_vmware_cloudsimple/models/virtual_machine_stop_mode.rb +49 -0
- data/lib/2019-04-01/generated/azure_mgmt_vmware_cloudsimple/models/virtual_machine_template.rb +283 -0
- data/lib/2019-04-01/generated/azure_mgmt_vmware_cloudsimple/models/virtual_machine_template_list_response.rb +98 -0
- data/lib/2019-04-01/generated/azure_mgmt_vmware_cloudsimple/models/virtual_network.rb +106 -0
- data/lib/2019-04-01/generated/azure_mgmt_vmware_cloudsimple/models/virtual_network_list_response.rb +98 -0
- data/lib/2019-04-01/generated/azure_mgmt_vmware_cloudsimple/models/virtual_nic.rb +124 -0
- data/lib/2019-04-01/generated/azure_mgmt_vmware_cloudsimple/module_definition.rb +9 -0
- data/lib/2019-04-01/generated/azure_mgmt_vmware_cloudsimple/operations.rb +335 -0
- data/lib/2019-04-01/generated/azure_mgmt_vmware_cloudsimple/private_clouds.rb +340 -0
- data/lib/2019-04-01/generated/azure_mgmt_vmware_cloudsimple/resource_pools.rb +349 -0
- data/lib/2019-04-01/generated/azure_mgmt_vmware_cloudsimple/skus_availability.rb +248 -0
- data/lib/2019-04-01/generated/azure_mgmt_vmware_cloudsimple/usages.rb +248 -0
- data/lib/2019-04-01/generated/azure_mgmt_vmware_cloudsimple/virtual_machine_templates.rb +361 -0
- data/lib/2019-04-01/generated/azure_mgmt_vmware_cloudsimple/virtual_machines.rb +1326 -0
- data/lib/2019-04-01/generated/azure_mgmt_vmware_cloudsimple/virtual_networks.rb +358 -0
- data/lib/2019-04-01/generated/azure_mgmt_vmware_cloudsimple/vmware_cloud_simple_client.rb +170 -0
- data/lib/azure_mgmt_vmware_cloudsimple.rb +6 -0
- data/lib/module_definition.rb +7 -0
- data/lib/profiles/latest/modules/vmwarecloudsimple_profile_module.rb +259 -0
- data/lib/profiles/latest/vmwarecloudsimple_latest_profile_client.rb +40 -0
- data/lib/profiles/latest/vmwarecloudsimple_module_definition.rb +8 -0
- data/lib/version.rb +7 -0
- metadata +182 -0
@@ -0,0 +1,388 @@
|
|
1
|
+
# encoding: utf-8
|
2
|
+
# Code generated by Microsoft (R) AutoRest Code Generator.
|
3
|
+
# Changes may cause incorrect behavior and will be lost if the code is
|
4
|
+
# regenerated.
|
5
|
+
|
6
|
+
module Azure::VMwareCloudSimple::Mgmt::V2019_04_01
|
7
|
+
module Models
|
8
|
+
#
|
9
|
+
# Virtual machine model
|
10
|
+
#
|
11
|
+
class VirtualMachine
|
12
|
+
|
13
|
+
include MsRestAzure
|
14
|
+
|
15
|
+
# @return [String]
|
16
|
+
# /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/virtualMachines/{virtualMachineName}
|
17
|
+
attr_accessor :id
|
18
|
+
|
19
|
+
# @return [String] Azure region
|
20
|
+
attr_accessor :location
|
21
|
+
|
22
|
+
# @return [String] {virtualMachineName}
|
23
|
+
attr_accessor :name
|
24
|
+
|
25
|
+
# @return [Integer] The amount of memory
|
26
|
+
attr_accessor :amount_of_ram
|
27
|
+
|
28
|
+
# @return [Array<VirtualDiskController>] The list of Virtual Disks'
|
29
|
+
# Controllers
|
30
|
+
attr_accessor :controllers
|
31
|
+
|
32
|
+
# @return [Array<VirtualDisk>] The list of Virtual Disks
|
33
|
+
attr_accessor :disks
|
34
|
+
|
35
|
+
# @return [String] The DNS name of Virtual Machine in VCenter
|
36
|
+
attr_accessor :dnsname
|
37
|
+
|
38
|
+
# @return [Boolean] Expose Guest OS or not
|
39
|
+
attr_accessor :expose_to_guest_vm
|
40
|
+
|
41
|
+
# @return [String] The path to virtual machine folder in VCenter
|
42
|
+
attr_accessor :folder
|
43
|
+
|
44
|
+
# @return [String] The name of Guest OS
|
45
|
+
attr_accessor :guest_os
|
46
|
+
|
47
|
+
# @return [GuestOSType] The Guest OS type. Possible values include:
|
48
|
+
# 'linux', 'windows', 'other'
|
49
|
+
attr_accessor :guest_ostype
|
50
|
+
|
51
|
+
# @return [Array<VirtualNic>] The list of Virtual NICs
|
52
|
+
attr_accessor :nics
|
53
|
+
|
54
|
+
# @return [Integer] The number of CPU cores
|
55
|
+
attr_accessor :number_of_cores
|
56
|
+
|
57
|
+
# @return [String] Password for login
|
58
|
+
attr_accessor :password
|
59
|
+
|
60
|
+
# @return [String] Private Cloud Id
|
61
|
+
attr_accessor :private_cloud_id
|
62
|
+
|
63
|
+
# @return [String] The provisioning status of the resource
|
64
|
+
attr_accessor :provisioning_state
|
65
|
+
|
66
|
+
# @return [String] The public ip of Virtual Machine
|
67
|
+
attr_accessor :public_ip
|
68
|
+
|
69
|
+
# @return [ResourcePool] Virtual Machines Resource Pool
|
70
|
+
attr_accessor :resource_pool
|
71
|
+
|
72
|
+
# @return [VirtualMachineStatus] The status of Virtual machine. Possible
|
73
|
+
# values include: 'running', 'suspended', 'poweredoff', 'updating',
|
74
|
+
# 'deallocating', 'deleting'
|
75
|
+
attr_accessor :status
|
76
|
+
|
77
|
+
# @return [String] Virtual Machine Template Id
|
78
|
+
attr_accessor :template_id
|
79
|
+
|
80
|
+
# @return [String] Username for login
|
81
|
+
attr_accessor :username
|
82
|
+
|
83
|
+
# @return [Array<String>] The list of Virtual VSphere Networks
|
84
|
+
attr_accessor :v_sphere_networks
|
85
|
+
|
86
|
+
# @return [String] The internal id of Virtual Machine in VCenter
|
87
|
+
attr_accessor :vm_id
|
88
|
+
|
89
|
+
# @return [String] VMware tools version
|
90
|
+
attr_accessor :vmwaretools
|
91
|
+
|
92
|
+
# @return [Hash{String => String}] The list of tags
|
93
|
+
attr_accessor :tags
|
94
|
+
|
95
|
+
# @return [String] {resourceProviderNamespace}/{resourceType}
|
96
|
+
attr_accessor :type
|
97
|
+
|
98
|
+
|
99
|
+
#
|
100
|
+
# Mapper for VirtualMachine class as Ruby Hash.
|
101
|
+
# This will be used for serialization/deserialization.
|
102
|
+
#
|
103
|
+
def self.mapper()
|
104
|
+
{
|
105
|
+
client_side_validation: true,
|
106
|
+
required: false,
|
107
|
+
serialized_name: 'VirtualMachine',
|
108
|
+
type: {
|
109
|
+
name: 'Composite',
|
110
|
+
class_name: 'VirtualMachine',
|
111
|
+
model_properties: {
|
112
|
+
id: {
|
113
|
+
client_side_validation: true,
|
114
|
+
required: false,
|
115
|
+
read_only: true,
|
116
|
+
serialized_name: 'id',
|
117
|
+
type: {
|
118
|
+
name: 'String'
|
119
|
+
}
|
120
|
+
},
|
121
|
+
location: {
|
122
|
+
client_side_validation: true,
|
123
|
+
required: true,
|
124
|
+
serialized_name: 'location',
|
125
|
+
type: {
|
126
|
+
name: 'String'
|
127
|
+
}
|
128
|
+
},
|
129
|
+
name: {
|
130
|
+
client_side_validation: true,
|
131
|
+
required: false,
|
132
|
+
read_only: true,
|
133
|
+
serialized_name: 'name',
|
134
|
+
constraints: {
|
135
|
+
Pattern: '^[-a-zA-Z0-9]+$'
|
136
|
+
},
|
137
|
+
type: {
|
138
|
+
name: 'String'
|
139
|
+
}
|
140
|
+
},
|
141
|
+
amount_of_ram: {
|
142
|
+
client_side_validation: true,
|
143
|
+
required: true,
|
144
|
+
serialized_name: 'properties.amountOfRam',
|
145
|
+
type: {
|
146
|
+
name: 'Number'
|
147
|
+
}
|
148
|
+
},
|
149
|
+
controllers: {
|
150
|
+
client_side_validation: true,
|
151
|
+
required: false,
|
152
|
+
read_only: true,
|
153
|
+
serialized_name: 'properties.controllers',
|
154
|
+
type: {
|
155
|
+
name: 'Sequence',
|
156
|
+
element: {
|
157
|
+
client_side_validation: true,
|
158
|
+
required: false,
|
159
|
+
serialized_name: 'VirtualDiskControllerElementType',
|
160
|
+
type: {
|
161
|
+
name: 'Composite',
|
162
|
+
class_name: 'VirtualDiskController'
|
163
|
+
}
|
164
|
+
}
|
165
|
+
}
|
166
|
+
},
|
167
|
+
disks: {
|
168
|
+
client_side_validation: true,
|
169
|
+
required: false,
|
170
|
+
serialized_name: 'properties.disks',
|
171
|
+
type: {
|
172
|
+
name: 'Sequence',
|
173
|
+
element: {
|
174
|
+
client_side_validation: true,
|
175
|
+
required: false,
|
176
|
+
serialized_name: 'VirtualDiskElementType',
|
177
|
+
type: {
|
178
|
+
name: 'Composite',
|
179
|
+
class_name: 'VirtualDisk'
|
180
|
+
}
|
181
|
+
}
|
182
|
+
}
|
183
|
+
},
|
184
|
+
dnsname: {
|
185
|
+
client_side_validation: true,
|
186
|
+
required: false,
|
187
|
+
read_only: true,
|
188
|
+
serialized_name: 'properties.dnsname',
|
189
|
+
type: {
|
190
|
+
name: 'String'
|
191
|
+
}
|
192
|
+
},
|
193
|
+
expose_to_guest_vm: {
|
194
|
+
client_side_validation: true,
|
195
|
+
required: false,
|
196
|
+
serialized_name: 'properties.exposeToGuestVM',
|
197
|
+
type: {
|
198
|
+
name: 'Boolean'
|
199
|
+
}
|
200
|
+
},
|
201
|
+
folder: {
|
202
|
+
client_side_validation: true,
|
203
|
+
required: false,
|
204
|
+
read_only: true,
|
205
|
+
serialized_name: 'properties.folder',
|
206
|
+
type: {
|
207
|
+
name: 'String'
|
208
|
+
}
|
209
|
+
},
|
210
|
+
guest_os: {
|
211
|
+
client_side_validation: true,
|
212
|
+
required: false,
|
213
|
+
read_only: true,
|
214
|
+
serialized_name: 'properties.guestOS',
|
215
|
+
type: {
|
216
|
+
name: 'String'
|
217
|
+
}
|
218
|
+
},
|
219
|
+
guest_ostype: {
|
220
|
+
client_side_validation: true,
|
221
|
+
required: false,
|
222
|
+
read_only: true,
|
223
|
+
serialized_name: 'properties.guestOSType',
|
224
|
+
type: {
|
225
|
+
name: 'Enum',
|
226
|
+
module: 'GuestOSType'
|
227
|
+
}
|
228
|
+
},
|
229
|
+
nics: {
|
230
|
+
client_side_validation: true,
|
231
|
+
required: false,
|
232
|
+
serialized_name: 'properties.nics',
|
233
|
+
type: {
|
234
|
+
name: 'Sequence',
|
235
|
+
element: {
|
236
|
+
client_side_validation: true,
|
237
|
+
required: false,
|
238
|
+
serialized_name: 'VirtualNicElementType',
|
239
|
+
type: {
|
240
|
+
name: 'Composite',
|
241
|
+
class_name: 'VirtualNic'
|
242
|
+
}
|
243
|
+
}
|
244
|
+
}
|
245
|
+
},
|
246
|
+
number_of_cores: {
|
247
|
+
client_side_validation: true,
|
248
|
+
required: true,
|
249
|
+
serialized_name: 'properties.numberOfCores',
|
250
|
+
type: {
|
251
|
+
name: 'Number'
|
252
|
+
}
|
253
|
+
},
|
254
|
+
password: {
|
255
|
+
client_side_validation: true,
|
256
|
+
required: false,
|
257
|
+
serialized_name: 'properties.password',
|
258
|
+
type: {
|
259
|
+
name: 'String'
|
260
|
+
}
|
261
|
+
},
|
262
|
+
private_cloud_id: {
|
263
|
+
client_side_validation: true,
|
264
|
+
required: true,
|
265
|
+
serialized_name: 'properties.privateCloudId',
|
266
|
+
type: {
|
267
|
+
name: 'String'
|
268
|
+
}
|
269
|
+
},
|
270
|
+
provisioning_state: {
|
271
|
+
client_side_validation: true,
|
272
|
+
required: false,
|
273
|
+
read_only: true,
|
274
|
+
serialized_name: 'properties.provisioningState',
|
275
|
+
type: {
|
276
|
+
name: 'String'
|
277
|
+
}
|
278
|
+
},
|
279
|
+
public_ip: {
|
280
|
+
client_side_validation: true,
|
281
|
+
required: false,
|
282
|
+
read_only: true,
|
283
|
+
serialized_name: 'properties.publicIP',
|
284
|
+
type: {
|
285
|
+
name: 'String'
|
286
|
+
}
|
287
|
+
},
|
288
|
+
resource_pool: {
|
289
|
+
client_side_validation: true,
|
290
|
+
required: false,
|
291
|
+
serialized_name: 'properties.resourcePool',
|
292
|
+
type: {
|
293
|
+
name: 'Composite',
|
294
|
+
class_name: 'ResourcePool'
|
295
|
+
}
|
296
|
+
},
|
297
|
+
status: {
|
298
|
+
client_side_validation: true,
|
299
|
+
required: false,
|
300
|
+
read_only: true,
|
301
|
+
serialized_name: 'properties.status',
|
302
|
+
type: {
|
303
|
+
name: 'Enum',
|
304
|
+
module: 'VirtualMachineStatus'
|
305
|
+
}
|
306
|
+
},
|
307
|
+
template_id: {
|
308
|
+
client_side_validation: true,
|
309
|
+
required: false,
|
310
|
+
serialized_name: 'properties.templateId',
|
311
|
+
type: {
|
312
|
+
name: 'String'
|
313
|
+
}
|
314
|
+
},
|
315
|
+
username: {
|
316
|
+
client_side_validation: true,
|
317
|
+
required: false,
|
318
|
+
serialized_name: 'properties.username',
|
319
|
+
type: {
|
320
|
+
name: 'String'
|
321
|
+
}
|
322
|
+
},
|
323
|
+
v_sphere_networks: {
|
324
|
+
client_side_validation: true,
|
325
|
+
required: false,
|
326
|
+
serialized_name: 'properties.vSphereNetworks',
|
327
|
+
type: {
|
328
|
+
name: 'Sequence',
|
329
|
+
element: {
|
330
|
+
client_side_validation: true,
|
331
|
+
required: false,
|
332
|
+
serialized_name: 'StringElementType',
|
333
|
+
type: {
|
334
|
+
name: 'String'
|
335
|
+
}
|
336
|
+
}
|
337
|
+
}
|
338
|
+
},
|
339
|
+
vm_id: {
|
340
|
+
client_side_validation: true,
|
341
|
+
required: false,
|
342
|
+
read_only: true,
|
343
|
+
serialized_name: 'properties.vmId',
|
344
|
+
type: {
|
345
|
+
name: 'String'
|
346
|
+
}
|
347
|
+
},
|
348
|
+
vmwaretools: {
|
349
|
+
client_side_validation: true,
|
350
|
+
required: false,
|
351
|
+
read_only: true,
|
352
|
+
serialized_name: 'properties.vmwaretools',
|
353
|
+
type: {
|
354
|
+
name: 'String'
|
355
|
+
}
|
356
|
+
},
|
357
|
+
tags: {
|
358
|
+
client_side_validation: true,
|
359
|
+
required: false,
|
360
|
+
serialized_name: 'tags',
|
361
|
+
type: {
|
362
|
+
name: 'Dictionary',
|
363
|
+
value: {
|
364
|
+
client_side_validation: true,
|
365
|
+
required: false,
|
366
|
+
serialized_name: 'StringElementType',
|
367
|
+
type: {
|
368
|
+
name: 'String'
|
369
|
+
}
|
370
|
+
}
|
371
|
+
}
|
372
|
+
},
|
373
|
+
type: {
|
374
|
+
client_side_validation: true,
|
375
|
+
required: false,
|
376
|
+
read_only: true,
|
377
|
+
serialized_name: 'type',
|
378
|
+
type: {
|
379
|
+
name: 'String'
|
380
|
+
}
|
381
|
+
}
|
382
|
+
}
|
383
|
+
}
|
384
|
+
}
|
385
|
+
end
|
386
|
+
end
|
387
|
+
end
|
388
|
+
end
|
data/lib/2019-04-01/generated/azure_mgmt_vmware_cloudsimple/models/virtual_machine_list_response.rb
ADDED
@@ -0,0 +1,98 @@
|
|
1
|
+
# encoding: utf-8
|
2
|
+
# Code generated by Microsoft (R) AutoRest Code Generator.
|
3
|
+
# Changes may cause incorrect behavior and will be lost if the code is
|
4
|
+
# regenerated.
|
5
|
+
|
6
|
+
module Azure::VMwareCloudSimple::Mgmt::V2019_04_01
|
7
|
+
module Models
|
8
|
+
#
|
9
|
+
# List of virtual machines
|
10
|
+
#
|
11
|
+
class VirtualMachineListResponse
|
12
|
+
|
13
|
+
include MsRestAzure
|
14
|
+
|
15
|
+
include MsRest::JSONable
|
16
|
+
# @return [String] Link for next list of VirtualMachines
|
17
|
+
attr_accessor :next_link
|
18
|
+
|
19
|
+
# @return [Array<VirtualMachine>] Results of the VirtualMachine list
|
20
|
+
attr_accessor :value
|
21
|
+
|
22
|
+
# return [Proc] with next page method call.
|
23
|
+
attr_accessor :next_method
|
24
|
+
|
25
|
+
#
|
26
|
+
# Gets the rest of the items for the request, enabling auto-pagination.
|
27
|
+
#
|
28
|
+
# @return [Array<VirtualMachine>] operation results.
|
29
|
+
#
|
30
|
+
def get_all_items
|
31
|
+
items = @value
|
32
|
+
page = self
|
33
|
+
while page.next_link != nil && !page.next_link.strip.empty? do
|
34
|
+
page = page.get_next_page
|
35
|
+
items.concat(page.value)
|
36
|
+
end
|
37
|
+
items
|
38
|
+
end
|
39
|
+
|
40
|
+
#
|
41
|
+
# Gets the next page of results.
|
42
|
+
#
|
43
|
+
# @return [VirtualMachineListResponse] with next page 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 VirtualMachineListResponse class as Ruby Hash.
|
56
|
+
# This will be used for serialization/deserialization.
|
57
|
+
#
|
58
|
+
def self.mapper()
|
59
|
+
{
|
60
|
+
client_side_validation: true,
|
61
|
+
required: false,
|
62
|
+
serialized_name: 'VirtualMachineListResponse',
|
63
|
+
type: {
|
64
|
+
name: 'Composite',
|
65
|
+
class_name: 'VirtualMachineListResponse',
|
66
|
+
model_properties: {
|
67
|
+
next_link: {
|
68
|
+
client_side_validation: true,
|
69
|
+
required: false,
|
70
|
+
serialized_name: 'nextLink',
|
71
|
+
type: {
|
72
|
+
name: 'String'
|
73
|
+
}
|
74
|
+
},
|
75
|
+
value: {
|
76
|
+
client_side_validation: true,
|
77
|
+
required: false,
|
78
|
+
serialized_name: 'value',
|
79
|
+
type: {
|
80
|
+
name: 'Sequence',
|
81
|
+
element: {
|
82
|
+
client_side_validation: true,
|
83
|
+
required: false,
|
84
|
+
serialized_name: 'VirtualMachineElementType',
|
85
|
+
type: {
|
86
|
+
name: 'Composite',
|
87
|
+
class_name: 'VirtualMachine'
|
88
|
+
}
|
89
|
+
}
|
90
|
+
}
|
91
|
+
}
|
92
|
+
}
|
93
|
+
}
|
94
|
+
}
|
95
|
+
end
|
96
|
+
end
|
97
|
+
end
|
98
|
+
end
|