fog-vsphere 3.6.5 → 3.6.6

Sign up to get free protection for your applications and to get access to all the features.
Files changed (89) hide show
  1. checksums.yaml +4 -4
  2. data/lib/fog/vsphere/compute.rb +12 -0
  3. data/lib/fog/vsphere/models/compute/nvmecontroller.rb +24 -0
  4. data/lib/fog/vsphere/models/compute/scsicontroller.rb +5 -1
  5. data/lib/fog/vsphere/models/compute/server.rb +33 -18
  6. data/lib/fog/vsphere/models/compute/volume.rb +1 -2
  7. data/lib/fog/vsphere/requests/compute/create_vm.rb +11 -4
  8. data/lib/fog/vsphere/requests/compute/get_vm_first_nvme_controller.rb +21 -0
  9. data/lib/fog/vsphere/requests/compute/list_vm_nvme_controllers.rb +29 -0
  10. data/lib/fog/vsphere/requests/compute/vm_clone.rb +1 -1
  11. data/lib/fog/vsphere/version.rb +1 -1
  12. data/tests/class_from_string_tests.rb +33 -0
  13. data/tests/compute_tests.rb +53 -0
  14. data/tests/fixtures/vcr_cassettes/6_7/create_folder.yml +609 -0
  15. data/tests/fixtures/vcr_cassettes/6_7/folder_destroy.yml +823 -0
  16. data/tests/fixtures/vcr_cassettes/6_7/get_cluster.yml +663 -0
  17. data/tests/fixtures/vcr_cassettes/6_7/get_compute_resource.yml +1046 -0
  18. data/tests/fixtures/vcr_cassettes/6_7/get_datacenter.yml +498 -0
  19. data/tests/fixtures/vcr_cassettes/6_7/get_folder.yml +2038 -0
  20. data/tests/fixtures/vcr_cassettes/6_7/get_host.yml +386 -0
  21. data/tests/fixtures/vcr_cassettes/6_7/get_network.yml +932 -0
  22. data/tests/fixtures/vcr_cassettes/6_7/get_storage_pod.yml +225 -0
  23. data/tests/fixtures/vcr_cassettes/6_7/get_template.yml +329 -0
  24. data/tests/fixtures/vcr_cassettes/6_7/get_virtual_machine.yml +329 -0
  25. data/tests/fixtures/vcr_cassettes/6_7/get_vm_first_nvme_controller.yml +105 -0
  26. data/tests/fixtures/vcr_cassettes/6_7/get_vm_first_sata_controller.yml +209 -0
  27. data/tests/fixtures/vcr_cassettes/6_7/get_vm_first_scsi_controller.yml +111 -0
  28. data/tests/fixtures/vcr_cassettes/6_7/shared.yml +164 -0
  29. data/tests/helper.rb +6 -0
  30. data/tests/helpers/mock_helper.rb +9 -0
  31. data/tests/models/compute/cluster_tests.rb +18 -0
  32. data/tests/models/compute/hosts_tests.rb +11 -0
  33. data/tests/models/compute/rules_tests.rb +28 -0
  34. data/tests/models/compute/server_tests.rb +74 -0
  35. data/tests/models/compute/server_unit_tests.rb +13 -0
  36. data/tests/models/compute/servers_tests.rb +14 -0
  37. data/tests/models/compute/ticket_tests.rb +12 -0
  38. data/tests/models/compute/tickets_tests.rb +8 -0
  39. data/tests/requests/compute/create_folder_tests.rb +19 -0
  40. data/tests/requests/compute/current_time_tests.rb +10 -0
  41. data/tests/requests/compute/folder_destroy_tests.rb +39 -0
  42. data/tests/requests/compute/get_cluster_tests.rb +19 -0
  43. data/tests/requests/compute/get_compute_resource_tests.rb +19 -0
  44. data/tests/requests/compute/get_datacenter_tests.rb +19 -0
  45. data/tests/requests/compute/get_folder_tests.rb +28 -0
  46. data/tests/requests/compute/get_host_tests.rb +19 -0
  47. data/tests/requests/compute/get_network_tests.rb +78 -0
  48. data/tests/requests/compute/get_storage_pod_tests.rb +19 -0
  49. data/tests/requests/compute/get_template_tests.rb +19 -0
  50. data/tests/requests/compute/get_virtual_machine_tests.rb +19 -0
  51. data/tests/requests/compute/get_vm_first_nvme_controller_tests.rb +19 -0
  52. data/tests/requests/compute/get_vm_first_sata_controller_tests.rb +19 -0
  53. data/tests/requests/compute/get_vm_first_scsi_controller_tests.rb +19 -0
  54. data/tests/requests/compute/list_child_snapshots_tests.rb +9 -0
  55. data/tests/requests/compute/list_clusters_tests.rb +10 -0
  56. data/tests/requests/compute/list_datastores_tests.rb +17 -0
  57. data/tests/requests/compute/list_hosts_tests.rb +10 -0
  58. data/tests/requests/compute/list_networks_tests.rb +17 -0
  59. data/tests/requests/compute/list_storage_pods_test.rb +9 -0
  60. data/tests/requests/compute/list_virtual_machines_tests.rb +34 -0
  61. data/tests/requests/compute/list_vm_cdroms_tests.rb +9 -0
  62. data/tests/requests/compute/list_vm_snapshots_tests.rb +9 -0
  63. data/tests/requests/compute/modify_vm_cdrom_tests.rb +20 -0
  64. data/tests/requests/compute/revert_to_snapshot_tests.rb +13 -0
  65. data/tests/requests/compute/set_vm_customvalue_tests.rb +18 -0
  66. data/tests/requests/compute/update_vm_tests.rb +13 -0
  67. data/tests/requests/compute/vm_clone_tests.rb +55 -0
  68. data/tests/requests/compute/vm_config_vnc_tests.rb +18 -0
  69. data/tests/requests/compute/vm_destroy_tests.rb +14 -0
  70. data/tests/requests/compute/vm_migrate_tests.rb +15 -0
  71. data/tests/requests/compute/vm_power_off_tests.rb +24 -0
  72. data/tests/requests/compute/vm_power_on_tests.rb +15 -0
  73. data/tests/requests/compute/vm_reboot_tests.rb +24 -0
  74. data/tests/requests/compute/vm_reconfig_cdrom_tests.rb +14 -0
  75. data/tests/requests/compute/vm_reconfig_cpus_tests.rb +17 -0
  76. data/tests/requests/compute/vm_reconfig_hardware_tests.rb +17 -0
  77. data/tests/requests/compute/vm_reconfig_memory_tests.rb +17 -0
  78. data/tests/requests/compute/vm_suspend_tests.rb +23 -0
  79. data/tests/requests/compute/vm_take_snapshot_tests.rb +17 -0
  80. data/tests/test_helper.rb +74 -0
  81. metadata +152 -19
  82. data/.github/workflows/ruby.yml +0 -42
  83. data/.gitignore +0 -25
  84. data/.rubocop.yml +0 -44
  85. data/.rubocop_todo.yml +0 -614
  86. data/CONTRIBUTING.md +0 -55
  87. data/Gemfile +0 -5
  88. data/Jenkinsfile +0 -10
  89. data/fog-vsphere.gemspec +0 -39
@@ -0,0 +1,609 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: post
5
+ uri: https://<%= vsphere_server %>/sdk
6
+ body:
7
+ encoding: UTF-8
8
+ string: <env:Envelope xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:env="http://schemas.xmlsoap.org/soap/envelope/"
9
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><env:Body><RetrieveProperties
10
+ xmlns="urn:vim25"><_this type="PropertyCollector">propertyCollector</_this><specSet
11
+ xsi:type="PropertyFilterSpec"><propSet xsi:type="PropertySpec"><type>Folder</type><pathSet>childEntity</pathSet></propSet><objectSet
12
+ xsi:type="ObjectSpec"><obj type="Folder">group-d1</obj></objectSet></specSet></RetrieveProperties></env:Body></env:Envelope>
13
+ headers:
14
+ Content-Type:
15
+ - text/xml; charset=utf-8
16
+ Soapaction:
17
+ - urn:vim25/6.7
18
+ Cookie:
19
+ - vmware_soap_session="0f1d530a6c49a96a4e0a69811581f6f016de5136"; Path=/; HttpOnly;
20
+ Secure;
21
+ Accept-Encoding:
22
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
23
+ Accept:
24
+ - "*/*"
25
+ User-Agent:
26
+ - Ruby
27
+ response:
28
+ status:
29
+ code: 200
30
+ message: OK
31
+ headers:
32
+ Date:
33
+ - Tue, 16 Apr 2019 11:09:09 GMT
34
+ Cache-Control:
35
+ - no-cache
36
+ Connection:
37
+ - Keep-Alive
38
+ Content-Type:
39
+ - text/xml; charset=utf-8
40
+ X-Frame-Options:
41
+ - DENY
42
+ Content-Length:
43
+ - '666'
44
+ body:
45
+ encoding: UTF-8
46
+ string: |-
47
+ <?xml version="1.0" encoding="UTF-8"?>
48
+ <soapenv:Envelope xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/"
49
+ xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
50
+ xmlns:xsd="http://www.w3.org/2001/XMLSchema"
51
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
52
+ <soapenv:Body>
53
+ <RetrievePropertiesResponse xmlns="urn:vim25"><returnval><obj type="Folder">group-d1</obj><propSet><name>childEntity</name><val xsi:type="ArrayOfManagedObjectReference"><ManagedObjectReference type="Datacenter" xsi:type="ManagedObjectReference">datacenter-2</ManagedObjectReference></val></propSet></returnval></RetrievePropertiesResponse>
54
+ </soapenv:Body>
55
+ </soapenv:Envelope>
56
+ http_version:
57
+ recorded_at: Tue, 16 Apr 2019 11:09:09 GMT
58
+ - request:
59
+ method: post
60
+ uri: https://<%= vsphere_server %>/sdk
61
+ body:
62
+ encoding: UTF-8
63
+ string: <env:Envelope xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:env="http://schemas.xmlsoap.org/soap/envelope/"
64
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><env:Body><RetrieveProperties
65
+ xmlns="urn:vim25"><_this type="PropertyCollector">propertyCollector</_this><specSet
66
+ xsi:type="PropertyFilterSpec"><propSet xsi:type="PropertySpec"><type>Datacenter</type><pathSet>name</pathSet></propSet><objectSet
67
+ xsi:type="ObjectSpec"><obj type="Datacenter">datacenter-2</obj></objectSet></specSet></RetrieveProperties></env:Body></env:Envelope>
68
+ headers:
69
+ Content-Type:
70
+ - text/xml; charset=utf-8
71
+ Soapaction:
72
+ - urn:vim25/6.7
73
+ Cookie:
74
+ - vmware_soap_session="0f1d530a6c49a96a4e0a69811581f6f016de5136"; Path=/; HttpOnly;
75
+ Secure;
76
+ Accept-Encoding:
77
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
78
+ Accept:
79
+ - "*/*"
80
+ User-Agent:
81
+ - Ruby
82
+ response:
83
+ status:
84
+ code: 200
85
+ message: OK
86
+ headers:
87
+ Date:
88
+ - Tue, 16 Apr 2019 11:09:09 GMT
89
+ Cache-Control:
90
+ - no-cache
91
+ Connection:
92
+ - Keep-Alive
93
+ Content-Type:
94
+ - text/xml; charset=utf-8
95
+ X-Frame-Options:
96
+ - DENY
97
+ Content-Length:
98
+ - '538'
99
+ body:
100
+ encoding: UTF-8
101
+ string: |-
102
+ <?xml version="1.0" encoding="UTF-8"?>
103
+ <soapenv:Envelope xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/"
104
+ xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
105
+ xmlns:xsd="http://www.w3.org/2001/XMLSchema"
106
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
107
+ <soapenv:Body>
108
+ <RetrievePropertiesResponse xmlns="urn:vim25"><returnval><obj type="Datacenter">datacenter-2</obj><propSet><name>name</name><val xsi:type="xsd:string">BRQ</val></propSet></returnval></RetrievePropertiesResponse>
109
+ </soapenv:Body>
110
+ </soapenv:Envelope>
111
+ http_version:
112
+ recorded_at: Tue, 16 Apr 2019 11:09:09 GMT
113
+ - request:
114
+ method: post
115
+ uri: https://<%= vsphere_server %>/sdk
116
+ body:
117
+ encoding: UTF-8
118
+ string: <env:Envelope xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:env="http://schemas.xmlsoap.org/soap/envelope/"
119
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><env:Body><RetrieveProperties
120
+ xmlns="urn:vim25"><_this type="PropertyCollector">propertyCollector</_this><specSet
121
+ xsi:type="PropertyFilterSpec"><propSet xsi:type="PropertySpec"><type>Datacenter</type><pathSet>vmFolder</pathSet></propSet><objectSet
122
+ xsi:type="ObjectSpec"><obj type="Datacenter">datacenter-2</obj></objectSet></specSet></RetrieveProperties></env:Body></env:Envelope>
123
+ headers:
124
+ Content-Type:
125
+ - text/xml; charset=utf-8
126
+ Soapaction:
127
+ - urn:vim25/6.7
128
+ Cookie:
129
+ - vmware_soap_session="0f1d530a6c49a96a4e0a69811581f6f016de5136"; Path=/; HttpOnly;
130
+ Secure;
131
+ Accept-Encoding:
132
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
133
+ Accept:
134
+ - "*/*"
135
+ User-Agent:
136
+ - Ruby
137
+ response:
138
+ status:
139
+ code: 200
140
+ message: OK
141
+ headers:
142
+ Date:
143
+ - Tue, 16 Apr 2019 11:09:09 GMT
144
+ Cache-Control:
145
+ - no-cache
146
+ Connection:
147
+ - Keep-Alive
148
+ Content-Type:
149
+ - text/xml; charset=utf-8
150
+ X-Frame-Options:
151
+ - DENY
152
+ Content-Length:
153
+ - '573'
154
+ body:
155
+ encoding: UTF-8
156
+ string: |-
157
+ <?xml version="1.0" encoding="UTF-8"?>
158
+ <soapenv:Envelope xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/"
159
+ xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
160
+ xmlns:xsd="http://www.w3.org/2001/XMLSchema"
161
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
162
+ <soapenv:Body>
163
+ <RetrievePropertiesResponse xmlns="urn:vim25"><returnval><obj type="Datacenter">datacenter-2</obj><propSet><name>vmFolder</name><val type="Folder" xsi:type="ManagedObjectReference">group-v3</val></propSet></returnval></RetrievePropertiesResponse>
164
+ </soapenv:Body>
165
+ </soapenv:Envelope>
166
+ http_version:
167
+ recorded_at: Tue, 16 Apr 2019 11:09:09 GMT
168
+ - request:
169
+ method: post
170
+ uri: https://<%= vsphere_server %>/sdk
171
+ body:
172
+ encoding: UTF-8
173
+ string: <env:Envelope xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:env="http://schemas.xmlsoap.org/soap/envelope/"
174
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><env:Body><RetrieveProperties
175
+ xmlns="urn:vim25"><_this type="PropertyCollector">propertyCollector</_this><specSet
176
+ xsi:type="PropertyFilterSpec"><propSet xsi:type="PropertySpec"><type>ManagedEntity</type><pathSet>name</pathSet><pathSet>parent</pathSet></propSet><objectSet
177
+ xsi:type="ObjectSpec"><obj type="Folder">group-v3</obj><selectSet xsi:type="TraversalSpec"><name>tsME</name><type>ManagedEntity</type><path>parent</path><skip>0</skip><selectSet
178
+ xsi:type="SelectionSpec"><name>tsME</name></selectSet></selectSet></objectSet></specSet></RetrieveProperties></env:Body></env:Envelope>
179
+ headers:
180
+ Content-Type:
181
+ - text/xml; charset=utf-8
182
+ Soapaction:
183
+ - urn:vim25/6.7
184
+ Cookie:
185
+ - vmware_soap_session="0f1d530a6c49a96a4e0a69811581f6f016de5136"; Path=/; HttpOnly;
186
+ Secure;
187
+ Accept-Encoding:
188
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
189
+ Accept:
190
+ - "*/*"
191
+ User-Agent:
192
+ - Ruby
193
+ response:
194
+ status:
195
+ code: 200
196
+ message: OK
197
+ headers:
198
+ Date:
199
+ - Tue, 16 Apr 2019 11:09:09 GMT
200
+ Cache-Control:
201
+ - no-cache
202
+ Connection:
203
+ - Keep-Alive
204
+ Content-Type:
205
+ - text/xml; charset=utf-8
206
+ X-Frame-Options:
207
+ - DENY
208
+ Content-Length:
209
+ - '1019'
210
+ body:
211
+ encoding: UTF-8
212
+ string: |-
213
+ <?xml version="1.0" encoding="UTF-8"?>
214
+ <soapenv:Envelope xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/"
215
+ xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
216
+ xmlns:xsd="http://www.w3.org/2001/XMLSchema"
217
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
218
+ <soapenv:Body>
219
+ <RetrievePropertiesResponse xmlns="urn:vim25"><returnval><obj type="Folder">group-v3</obj><propSet><name>name</name><val xsi:type="xsd:string">vm</val></propSet><propSet><name>parent</name><val type="Datacenter" xsi:type="ManagedObjectReference">datacenter-2</val></propSet></returnval><returnval><obj type="Datacenter">datacenter-2</obj><propSet><name>name</name><val xsi:type="xsd:string">BRQ</val></propSet><propSet><name>parent</name><val type="Folder" xsi:type="ManagedObjectReference">group-d1</val></propSet></returnval><returnval><obj type="Folder">group-d1</obj><propSet><name>name</name><val xsi:type="xsd:string">Datacenters</val></propSet></returnval></RetrievePropertiesResponse>
220
+ </soapenv:Body>
221
+ </soapenv:Envelope>
222
+ http_version:
223
+ recorded_at: Tue, 16 Apr 2019 11:09:09 GMT
224
+ - request:
225
+ method: post
226
+ uri: https://<%= vsphere_server %>/sdk
227
+ body:
228
+ encoding: UTF-8
229
+ string: <env:Envelope xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:env="http://schemas.xmlsoap.org/soap/envelope/"
230
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><env:Body><RetrieveProperties
231
+ xmlns="urn:vim25"><_this type="PropertyCollector">propertyCollector</_this><specSet
232
+ xsi:type="PropertyFilterSpec"><propSet xsi:type="PropertySpec"><type>ManagedEntity</type><pathSet>name</pathSet><pathSet>parent</pathSet></propSet><objectSet
233
+ xsi:type="ObjectSpec"><obj type="Folder">group-v3</obj><selectSet xsi:type="TraversalSpec"><name>tsME</name><type>ManagedEntity</type><path>parent</path><skip>0</skip><selectSet
234
+ xsi:type="SelectionSpec"><name>tsME</name></selectSet></selectSet></objectSet></specSet></RetrieveProperties></env:Body></env:Envelope>
235
+ headers:
236
+ Content-Type:
237
+ - text/xml; charset=utf-8
238
+ Soapaction:
239
+ - urn:vim25/6.7
240
+ Cookie:
241
+ - vmware_soap_session="0f1d530a6c49a96a4e0a69811581f6f016de5136"; Path=/; HttpOnly;
242
+ Secure;
243
+ Accept-Encoding:
244
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
245
+ Accept:
246
+ - "*/*"
247
+ User-Agent:
248
+ - Ruby
249
+ response:
250
+ status:
251
+ code: 200
252
+ message: OK
253
+ headers:
254
+ Date:
255
+ - Tue, 16 Apr 2019 11:09:09 GMT
256
+ Cache-Control:
257
+ - no-cache
258
+ Connection:
259
+ - Keep-Alive
260
+ Content-Type:
261
+ - text/xml; charset=utf-8
262
+ X-Frame-Options:
263
+ - DENY
264
+ Content-Length:
265
+ - '1019'
266
+ body:
267
+ encoding: UTF-8
268
+ string: |-
269
+ <?xml version="1.0" encoding="UTF-8"?>
270
+ <soapenv:Envelope xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/"
271
+ xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
272
+ xmlns:xsd="http://www.w3.org/2001/XMLSchema"
273
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
274
+ <soapenv:Body>
275
+ <RetrievePropertiesResponse xmlns="urn:vim25"><returnval><obj type="Folder">group-v3</obj><propSet><name>name</name><val xsi:type="xsd:string">vm</val></propSet><propSet><name>parent</name><val type="Datacenter" xsi:type="ManagedObjectReference">datacenter-2</val></propSet></returnval><returnval><obj type="Datacenter">datacenter-2</obj><propSet><name>name</name><val xsi:type="xsd:string">BRQ</val></propSet><propSet><name>parent</name><val type="Folder" xsi:type="ManagedObjectReference">group-d1</val></propSet></returnval><returnval><obj type="Folder">group-d1</obj><propSet><name>name</name><val xsi:type="xsd:string">Datacenters</val></propSet></returnval></RetrievePropertiesResponse>
276
+ </soapenv:Body>
277
+ </soapenv:Envelope>
278
+ http_version:
279
+ recorded_at: Tue, 16 Apr 2019 11:09:09 GMT
280
+ - request:
281
+ method: post
282
+ uri: https://<%= vsphere_server %>/sdk
283
+ body:
284
+ encoding: UTF-8
285
+ string: <env:Envelope xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:env="http://schemas.xmlsoap.org/soap/envelope/"
286
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><env:Body><CreateFolder
287
+ xmlns="urn:vim25"><_this type="Folder">group-v3</_this><name>TestFolder</name></CreateFolder></env:Body></env:Envelope>
288
+ headers:
289
+ Content-Type:
290
+ - text/xml; charset=utf-8
291
+ Soapaction:
292
+ - urn:vim25/6.7
293
+ Cookie:
294
+ - vmware_soap_session="0f1d530a6c49a96a4e0a69811581f6f016de5136"; Path=/; HttpOnly;
295
+ Secure;
296
+ Accept-Encoding:
297
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
298
+ Accept:
299
+ - "*/*"
300
+ User-Agent:
301
+ - Ruby
302
+ response:
303
+ status:
304
+ code: 200
305
+ message: OK
306
+ headers:
307
+ Date:
308
+ - Tue, 16 Apr 2019 11:09:09 GMT
309
+ Cache-Control:
310
+ - no-cache
311
+ Connection:
312
+ - Keep-Alive
313
+ Content-Type:
314
+ - text/xml; charset=utf-8
315
+ X-Frame-Options:
316
+ - DENY
317
+ Content-Length:
318
+ - '436'
319
+ body:
320
+ encoding: UTF-8
321
+ string: |-
322
+ <?xml version="1.0" encoding="UTF-8"?>
323
+ <soapenv:Envelope xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/"
324
+ xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
325
+ xmlns:xsd="http://www.w3.org/2001/XMLSchema"
326
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
327
+ <soapenv:Body>
328
+ <CreateFolderResponse xmlns="urn:vim25"><returnval type="Folder">group-v48</returnval></CreateFolderResponse>
329
+ </soapenv:Body>
330
+ </soapenv:Envelope>
331
+ http_version:
332
+ recorded_at: Tue, 16 Apr 2019 11:09:09 GMT
333
+ - request:
334
+ method: post
335
+ uri: https://<%= vsphere_server %>/sdk
336
+ body:
337
+ encoding: UTF-8
338
+ string: <env:Envelope xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:env="http://schemas.xmlsoap.org/soap/envelope/"
339
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><env:Body><RetrieveProperties
340
+ xmlns="urn:vim25"><_this type="PropertyCollector">propertyCollector</_this><specSet
341
+ xsi:type="PropertyFilterSpec"><propSet xsi:type="PropertySpec"><type>ManagedEntity</type><pathSet>name</pathSet><pathSet>parent</pathSet></propSet><objectSet
342
+ xsi:type="ObjectSpec"><obj type="Folder">group-v48</obj><selectSet xsi:type="TraversalSpec"><name>tsME</name><type>ManagedEntity</type><path>parent</path><skip>0</skip><selectSet
343
+ xsi:type="SelectionSpec"><name>tsME</name></selectSet></selectSet></objectSet></specSet></RetrieveProperties></env:Body></env:Envelope>
344
+ headers:
345
+ Content-Type:
346
+ - text/xml; charset=utf-8
347
+ Soapaction:
348
+ - urn:vim25/6.7
349
+ Cookie:
350
+ - vmware_soap_session="0f1d530a6c49a96a4e0a69811581f6f016de5136"; Path=/; HttpOnly;
351
+ Secure;
352
+ Accept-Encoding:
353
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
354
+ Accept:
355
+ - "*/*"
356
+ User-Agent:
357
+ - Ruby
358
+ response:
359
+ status:
360
+ code: 200
361
+ message: OK
362
+ headers:
363
+ Date:
364
+ - Tue, 16 Apr 2019 11:09:09 GMT
365
+ Cache-Control:
366
+ - no-cache
367
+ Connection:
368
+ - Keep-Alive
369
+ Content-Type:
370
+ - text/xml; charset=utf-8
371
+ X-Frame-Options:
372
+ - DENY
373
+ Content-Length:
374
+ - '1260'
375
+ body:
376
+ encoding: UTF-8
377
+ string: |-
378
+ <?xml version="1.0" encoding="UTF-8"?>
379
+ <soapenv:Envelope xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/"
380
+ xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
381
+ xmlns:xsd="http://www.w3.org/2001/XMLSchema"
382
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
383
+ <soapenv:Body>
384
+ <RetrievePropertiesResponse xmlns="urn:vim25"><returnval><obj type="Folder">group-v48</obj><propSet><name>name</name><val xsi:type="xsd:string">TestFolder</val></propSet><propSet><name>parent</name><val type="Folder" xsi:type="ManagedObjectReference">group-v3</val></propSet></returnval><returnval><obj type="Folder">group-v3</obj><propSet><name>name</name><val xsi:type="xsd:string">vm</val></propSet><propSet><name>parent</name><val type="Datacenter" xsi:type="ManagedObjectReference">datacenter-2</val></propSet></returnval><returnval><obj type="Datacenter">datacenter-2</obj><propSet><name>name</name><val xsi:type="xsd:string">BRQ</val></propSet><propSet><name>parent</name><val type="Folder" xsi:type="ManagedObjectReference">group-d1</val></propSet></returnval><returnval><obj type="Folder">group-d1</obj><propSet><name>name</name><val xsi:type="xsd:string">Datacenters</val></propSet></returnval></RetrievePropertiesResponse>
385
+ </soapenv:Body>
386
+ </soapenv:Envelope>
387
+ http_version:
388
+ recorded_at: Tue, 16 Apr 2019 11:09:09 GMT
389
+ - request:
390
+ method: post
391
+ uri: https://<%= vsphere_server %>/sdk
392
+ body:
393
+ encoding: UTF-8
394
+ string: <env:Envelope xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:env="http://schemas.xmlsoap.org/soap/envelope/"
395
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><env:Body><RetrieveProperties
396
+ xmlns="urn:vim25"><_this type="PropertyCollector">propertyCollector</_this><specSet
397
+ xsi:type="PropertyFilterSpec"><propSet xsi:type="PropertySpec"><type>Folder</type><pathSet>name</pathSet></propSet><objectSet
398
+ xsi:type="ObjectSpec"><obj type="Folder">group-d1</obj></objectSet></specSet></RetrieveProperties></env:Body></env:Envelope>
399
+ headers:
400
+ Content-Type:
401
+ - text/xml; charset=utf-8
402
+ Soapaction:
403
+ - urn:vim25/6.7
404
+ Cookie:
405
+ - vmware_soap_session="0f1d530a6c49a96a4e0a69811581f6f016de5136"; Path=/; HttpOnly;
406
+ Secure;
407
+ Accept-Encoding:
408
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
409
+ Accept:
410
+ - "*/*"
411
+ User-Agent:
412
+ - Ruby
413
+ response:
414
+ status:
415
+ code: 200
416
+ message: OK
417
+ headers:
418
+ Date:
419
+ - Tue, 16 Apr 2019 11:09:09 GMT
420
+ Cache-Control:
421
+ - no-cache
422
+ Connection:
423
+ - Keep-Alive
424
+ Content-Type:
425
+ - text/xml; charset=utf-8
426
+ X-Frame-Options:
427
+ - DENY
428
+ Content-Length:
429
+ - '538'
430
+ body:
431
+ encoding: UTF-8
432
+ string: |-
433
+ <?xml version="1.0" encoding="UTF-8"?>
434
+ <soapenv:Envelope xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/"
435
+ xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
436
+ xmlns:xsd="http://www.w3.org/2001/XMLSchema"
437
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
438
+ <soapenv:Body>
439
+ <RetrievePropertiesResponse xmlns="urn:vim25"><returnval><obj type="Folder">group-d1</obj><propSet><name>name</name><val xsi:type="xsd:string">Datacenters</val></propSet></returnval></RetrievePropertiesResponse>
440
+ </soapenv:Body>
441
+ </soapenv:Envelope>
442
+ http_version:
443
+ recorded_at: Tue, 16 Apr 2019 11:09:10 GMT
444
+ - request:
445
+ method: post
446
+ uri: https://<%= vsphere_server %>/sdk
447
+ body:
448
+ encoding: UTF-8
449
+ string: <env:Envelope xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:env="http://schemas.xmlsoap.org/soap/envelope/"
450
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><env:Body><RetrieveProperties
451
+ xmlns="urn:vim25"><_this type="PropertyCollector">propertyCollector</_this><specSet
452
+ xsi:type="PropertyFilterSpec"><propSet xsi:type="PropertySpec"><type>Datacenter</type><pathSet>name</pathSet></propSet><objectSet
453
+ xsi:type="ObjectSpec"><obj type="Datacenter">datacenter-2</obj></objectSet></specSet></RetrieveProperties></env:Body></env:Envelope>
454
+ headers:
455
+ Content-Type:
456
+ - text/xml; charset=utf-8
457
+ Soapaction:
458
+ - urn:vim25/6.7
459
+ Cookie:
460
+ - vmware_soap_session="0f1d530a6c49a96a4e0a69811581f6f016de5136"; Path=/; HttpOnly;
461
+ Secure;
462
+ Accept-Encoding:
463
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
464
+ Accept:
465
+ - "*/*"
466
+ User-Agent:
467
+ - Ruby
468
+ response:
469
+ status:
470
+ code: 200
471
+ message: OK
472
+ headers:
473
+ Date:
474
+ - Tue, 16 Apr 2019 11:09:09 GMT
475
+ Cache-Control:
476
+ - no-cache
477
+ Connection:
478
+ - Keep-Alive
479
+ Content-Type:
480
+ - text/xml; charset=utf-8
481
+ X-Frame-Options:
482
+ - DENY
483
+ Content-Length:
484
+ - '538'
485
+ body:
486
+ encoding: UTF-8
487
+ string: |-
488
+ <?xml version="1.0" encoding="UTF-8"?>
489
+ <soapenv:Envelope xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/"
490
+ xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
491
+ xmlns:xsd="http://www.w3.org/2001/XMLSchema"
492
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
493
+ <soapenv:Body>
494
+ <RetrievePropertiesResponse xmlns="urn:vim25"><returnval><obj type="Datacenter">datacenter-2</obj><propSet><name>name</name><val xsi:type="xsd:string">BRQ</val></propSet></returnval></RetrievePropertiesResponse>
495
+ </soapenv:Body>
496
+ </soapenv:Envelope>
497
+ http_version:
498
+ recorded_at: Tue, 16 Apr 2019 11:09:10 GMT
499
+ - request:
500
+ method: post
501
+ uri: https://<%= vsphere_server %>/sdk
502
+ body:
503
+ encoding: UTF-8
504
+ string: <env:Envelope xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:env="http://schemas.xmlsoap.org/soap/envelope/"
505
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><env:Body><RetrieveProperties
506
+ xmlns="urn:vim25"><_this type="PropertyCollector">propertyCollector</_this><specSet
507
+ xsi:type="PropertyFilterSpec"><propSet xsi:type="PropertySpec"><type>Folder</type><pathSet>name</pathSet></propSet><objectSet
508
+ xsi:type="ObjectSpec"><obj type="Folder">group-v3</obj></objectSet></specSet></RetrieveProperties></env:Body></env:Envelope>
509
+ headers:
510
+ Content-Type:
511
+ - text/xml; charset=utf-8
512
+ Soapaction:
513
+ - urn:vim25/6.7
514
+ Cookie:
515
+ - vmware_soap_session="0f1d530a6c49a96a4e0a69811581f6f016de5136"; Path=/; HttpOnly;
516
+ Secure;
517
+ Accept-Encoding:
518
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
519
+ Accept:
520
+ - "*/*"
521
+ User-Agent:
522
+ - Ruby
523
+ response:
524
+ status:
525
+ code: 200
526
+ message: OK
527
+ headers:
528
+ Date:
529
+ - Tue, 16 Apr 2019 11:09:09 GMT
530
+ Cache-Control:
531
+ - no-cache
532
+ Connection:
533
+ - Keep-Alive
534
+ Content-Type:
535
+ - text/xml; charset=utf-8
536
+ X-Frame-Options:
537
+ - DENY
538
+ Content-Length:
539
+ - '529'
540
+ body:
541
+ encoding: UTF-8
542
+ string: |-
543
+ <?xml version="1.0" encoding="UTF-8"?>
544
+ <soapenv:Envelope xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/"
545
+ xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
546
+ xmlns:xsd="http://www.w3.org/2001/XMLSchema"
547
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
548
+ <soapenv:Body>
549
+ <RetrievePropertiesResponse xmlns="urn:vim25"><returnval><obj type="Folder">group-v3</obj><propSet><name>name</name><val xsi:type="xsd:string">vm</val></propSet></returnval></RetrievePropertiesResponse>
550
+ </soapenv:Body>
551
+ </soapenv:Envelope>
552
+ http_version:
553
+ recorded_at: Tue, 16 Apr 2019 11:09:10 GMT
554
+ - request:
555
+ method: post
556
+ uri: https://<%= vsphere_server %>/sdk
557
+ body:
558
+ encoding: UTF-8
559
+ string: <env:Envelope xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:env="http://schemas.xmlsoap.org/soap/envelope/"
560
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><env:Body><RetrieveProperties
561
+ xmlns="urn:vim25"><_this type="PropertyCollector">propertyCollector</_this><specSet
562
+ xsi:type="PropertyFilterSpec"><propSet xsi:type="PropertySpec"><type>Folder</type><pathSet>name</pathSet></propSet><objectSet
563
+ xsi:type="ObjectSpec"><obj type="Folder">group-v48</obj></objectSet></specSet></RetrieveProperties></env:Body></env:Envelope>
564
+ headers:
565
+ Content-Type:
566
+ - text/xml; charset=utf-8
567
+ Soapaction:
568
+ - urn:vim25/6.7
569
+ Cookie:
570
+ - vmware_soap_session="0f1d530a6c49a96a4e0a69811581f6f016de5136"; Path=/; HttpOnly;
571
+ Secure;
572
+ Accept-Encoding:
573
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
574
+ Accept:
575
+ - "*/*"
576
+ User-Agent:
577
+ - Ruby
578
+ response:
579
+ status:
580
+ code: 200
581
+ message: OK
582
+ headers:
583
+ Date:
584
+ - Tue, 16 Apr 2019 11:09:09 GMT
585
+ Cache-Control:
586
+ - no-cache
587
+ Connection:
588
+ - Keep-Alive
589
+ Content-Type:
590
+ - text/xml; charset=utf-8
591
+ X-Frame-Options:
592
+ - DENY
593
+ Content-Length:
594
+ - '538'
595
+ body:
596
+ encoding: UTF-8
597
+ string: |-
598
+ <?xml version="1.0" encoding="UTF-8"?>
599
+ <soapenv:Envelope xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/"
600
+ xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
601
+ xmlns:xsd="http://www.w3.org/2001/XMLSchema"
602
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
603
+ <soapenv:Body>
604
+ <RetrievePropertiesResponse xmlns="urn:vim25"><returnval><obj type="Folder">group-v48</obj><propSet><name>name</name><val xsi:type="xsd:string">TestFolder</val></propSet></returnval></RetrievePropertiesResponse>
605
+ </soapenv:Body>
606
+ </soapenv:Envelope>
607
+ http_version:
608
+ recorded_at: Tue, 16 Apr 2019 11:09:10 GMT
609
+ recorded_with: VCR 4.0.0