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,225 @@
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="b69228e738041f3cd2ec0333a935c055f82314d6"; 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 23:35:07 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 23:35:07 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="b69228e738041f3cd2ec0333a935c055f82314d6"; 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 23:35:07 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 23:35:07 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>datastoreFolder</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="b69228e738041f3cd2ec0333a935c055f82314d6"; 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 23:35:07 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
+ - '580'
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>datastoreFolder</name><val type="Folder" xsi:type="ManagedObjectReference">group-s5</val></propSet></returnval></RetrievePropertiesResponse>
164
+ </soapenv:Body>
165
+ </soapenv:Envelope>
166
+ http_version:
167
+ recorded_at: Tue, 16 Apr 2019 23:35:08 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>StoragePod</type><pathSet>name</pathSet><pathSet>summary.freeSpace</pathSet><pathSet>summary.capacity</pathSet></propSet><objectSet
177
+ xsi:type="ObjectSpec"><obj type="Folder">group-s5</obj><skip>1</skip><selectSet
178
+ xsi:type="TraversalSpec"><name>FolderTraversalSpec</name><type>Folder</type><path>childEntity</path><skip>0</skip><selectSet
179
+ xsi:type="SelectionSpec"><name>FolderTraversalSpec</name></selectSet></selectSet></objectSet></specSet></RetrieveProperties></env:Body></env:Envelope>
180
+ headers:
181
+ Content-Type:
182
+ - text/xml; charset=utf-8
183
+ Soapaction:
184
+ - urn:vim25/6.7
185
+ Cookie:
186
+ - vmware_soap_session="b69228e738041f3cd2ec0333a935c055f82314d6"; Path=/; HttpOnly;
187
+ Secure;
188
+ Accept-Encoding:
189
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
190
+ Accept:
191
+ - "*/*"
192
+ User-Agent:
193
+ - Ruby
194
+ response:
195
+ status:
196
+ code: 200
197
+ message: OK
198
+ headers:
199
+ Date:
200
+ - Tue, 16 Apr 2019 23:35:07 GMT
201
+ Cache-Control:
202
+ - no-cache
203
+ Connection:
204
+ - Keep-Alive
205
+ Content-Type:
206
+ - text/xml; charset=utf-8
207
+ X-Frame-Options:
208
+ - DENY
209
+ Content-Length:
210
+ - '1051'
211
+ body:
212
+ encoding: UTF-8
213
+ string: |-
214
+ <?xml version="1.0" encoding="UTF-8"?>
215
+ <soapenv:Envelope xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/"
216
+ xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
217
+ xmlns:xsd="http://www.w3.org/2001/XMLSchema"
218
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
219
+ <soapenv:Body>
220
+ <RetrievePropertiesResponse xmlns="urn:vim25"><returnval><obj type="StoragePod">group-p26</obj><propSet><name>name</name><val xsi:type="xsd:string">storagePod1</val></propSet><propSet><name>summary.capacity</name><val xsi:type="xsd:long">992137445376</val></propSet><propSet><name>summary.freeSpace</name><val xsi:type="xsd:long">570560610304</val></propSet></returnval><returnval><obj type="StoragePod">group-p27</obj><propSet><name>name</name><val xsi:type="xsd:string">devNullNoDRS</val></propSet><propSet><name>summary.capacity</name><val xsi:type="xsd:long">499826819072</val></propSet><propSet><name>summary.freeSpace</name><val xsi:type="xsd:long">491827232768</val></propSet></returnval></RetrievePropertiesResponse>
221
+ </soapenv:Body>
222
+ </soapenv:Envelope>
223
+ http_version:
224
+ recorded_at: Tue, 16 Apr 2019 23:35:08 GMT
225
+ recorded_with: VCR 4.0.0
@@ -0,0 +1,329 @@
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="10a04d729f95767ee586aceb5072b3d8c1f0ef6c"; 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
+ - Wed, 17 Apr 2019 00:25:32 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: Wed, 17 Apr 2019 00:25:33 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="10a04d729f95767ee586aceb5072b3d8c1f0ef6c"; 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
+ - Wed, 17 Apr 2019 00:25:32 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: Wed, 17 Apr 2019 00:25:33 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><FindByUuid
120
+ xmlns="urn:vim25"><_this type="SearchIndex">SearchIndex</_this><datacenter
121
+ type="Datacenter">datacenter-2</datacenter><uuid>500e2be9-4762-1f52-5e7c-f37444be5f6e</uuid><vmSearch>1</vmSearch><instanceUuid>1</instanceUuid></FindByUuid></env:Body></env:Envelope>
122
+ headers:
123
+ Content-Type:
124
+ - text/xml; charset=utf-8
125
+ Soapaction:
126
+ - urn:vim25/6.7
127
+ Cookie:
128
+ - vmware_soap_session="10a04d729f95767ee586aceb5072b3d8c1f0ef6c"; Path=/; HttpOnly;
129
+ Secure;
130
+ Accept-Encoding:
131
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
132
+ Accept:
133
+ - "*/*"
134
+ User-Agent:
135
+ - Ruby
136
+ response:
137
+ status:
138
+ code: 200
139
+ message: OK
140
+ headers:
141
+ Date:
142
+ - Wed, 17 Apr 2019 00:25:32 GMT
143
+ Cache-Control:
144
+ - no-cache
145
+ Connection:
146
+ - Keep-Alive
147
+ Content-Type:
148
+ - text/xml; charset=utf-8
149
+ X-Frame-Options:
150
+ - DENY
151
+ Content-Length:
152
+ - '436'
153
+ body:
154
+ encoding: UTF-8
155
+ string: |-
156
+ <?xml version="1.0" encoding="UTF-8"?>
157
+ <soapenv:Envelope xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/"
158
+ xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
159
+ xmlns:xsd="http://www.w3.org/2001/XMLSchema"
160
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
161
+ <soapenv:Body>
162
+ <FindByUuidResponse xmlns="urn:vim25"><returnval type="VirtualMachine">vm-52</returnval></FindByUuidResponse>
163
+ </soapenv:Body>
164
+ </soapenv:Envelope>
165
+ http_version:
166
+ recorded_at: Wed, 17 Apr 2019 00:25:33 GMT
167
+ - request:
168
+ method: post
169
+ uri: https://<%= vsphere_server %>/sdk
170
+ body:
171
+ encoding: UTF-8
172
+ string: <env:Envelope xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:env="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><env:Body><RetrieveProperties xmlns="urn:vim25"><_this type="PropertyCollector">propertyCollector</_this><specSet xsi:type="PropertyFilterSpec"><propSet xsi:type="PropertySpec"><type>VirtualMachine</type><pathSet>config.instanceUuid</pathSet><pathSet>name</pathSet><pathSet>config.uuid</pathSet><pathSet>config.template</pathSet><pathSet>parent</pathSet><pathSet>summary.guest.hostName</pathSet><pathSet>summary.guest.guestFullName</pathSet><pathSet>guest.ipAddress</pathSet><pathSet>runtime.powerState</pathSet><pathSet>runtime.connectionState</pathSet><pathSet>runtime.host</pathSet><pathSet>guest.toolsStatus</pathSet><pathSet>guest.toolsVersionStatus</pathSet><pathSet>config.hardware.memoryMB</pathSet><pathSet>config.hardware.numCPU</pathSet><pathSet>config.hardware.device</pathSet><pathSet>guest.disk</pathSet><pathSet>config.hardware.numCoresPerSocket</pathSet><pathSet>overallStatus</pathSet><pathSet>config.guestId</pathSet><pathSet>config.version</pathSet><pathSet>config.cpuHotAddEnabled</pathSet><pathSet>config.memoryHotAddEnabled</pathSet><pathSet>config.firmware</pathSet><pathSet>config.bootOptions.bootOrder</pathSet><pathSet>config.annotation</pathSet><pathSet>config.extraConfig</pathSet></propSet><objectSet xsi:type="ObjectSpec"><obj type="VirtualMachine">vm-52</obj></objectSet></specSet></RetrieveProperties></env:Body></env:Envelope>
173
+ headers:
174
+ Content-Type:
175
+ - text/xml; charset=utf-8
176
+ Soapaction:
177
+ - urn:vim25/6.7
178
+ Cookie:
179
+ - vmware_soap_session="10a04d729f95767ee586aceb5072b3d8c1f0ef6c"; Path=/; HttpOnly;
180
+ Secure;
181
+ Accept-Encoding:
182
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
183
+ Accept:
184
+ - "*/*"
185
+ User-Agent:
186
+ - Ruby
187
+ response:
188
+ status:
189
+ code: 200
190
+ message: OK
191
+ headers:
192
+ Date:
193
+ - Wed, 17 Apr 2019 00:25:33 GMT
194
+ Cache-Control:
195
+ - no-cache
196
+ Connection:
197
+ - Keep-Alive
198
+ Content-Type:
199
+ - text/xml; charset=utf-8
200
+ X-Frame-Options:
201
+ - DENY
202
+ Content-Length:
203
+ - '2876'
204
+ body:
205
+ encoding: UTF-8
206
+ string: |-
207
+ <?xml version="1.0" encoding="UTF-8"?>
208
+ <soapenv:Envelope xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/"
209
+ xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
210
+ xmlns:xsd="http://www.w3.org/2001/XMLSchema"
211
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
212
+ <soapenv:Body>
213
+ <RetrievePropertiesResponse xmlns="urn:vim25"><returnval><obj type="VirtualMachine">vm-52</obj><propSet><name>config.annotation</name><val xsi:type="xsd:string"></val></propSet><propSet><name>config.bootOptions.bootOrder</name><val xsi:type="ArrayOfVirtualMachineBootOptionsBootableDevice"><VirtualMachineBootOptionsBootableDevice xsi:type="VirtualMachineBootOptionsBootableEthernetDevice"><deviceKey>4000</deviceKey></VirtualMachineBootOptionsBootableDevice><VirtualMachineBootOptionsBootableDevice xsi:type="VirtualMachineBootOptionsBootableDiskDevice"><deviceKey>2000</deviceKey></VirtualMachineBootOptionsBootableDevice></val></propSet><propSet><name>config.cpuHotAddEnabled</name><val xsi:type="xsd:boolean">true</val></propSet><propSet><name>config.firmware</name><val xsi:type="xsd:string">bios</val></propSet><propSet><name>config.guestId</name><val xsi:type="xsd:string">fedora64Guest</val></propSet><propSet><name>config.hardware.memoryMB</name><val xsi:type="xsd:int">2048</val></propSet><propSet><name>config.hardware.numCPU</name><val xsi:type="xsd:int">1</val></propSet><propSet><name>config.hardware.numCoresPerSocket</name><val xsi:type="xsd:int">1</val></propSet><propSet><name>config.instanceUuid</name><val xsi:type="xsd:string">500e2be9-4762-1f52-5e7c-f37444be5f6e</val></propSet><propSet><name>config.memoryHotAddEnabled</name><val xsi:type="xsd:boolean">true</val></propSet><propSet><name>config.template</name><val xsi:type="xsd:boolean">true</val></propSet><propSet><name>config.uuid</name><val xsi:type="xsd:string">420e0a6b-03a8-9901-aa8d-0413295de262</val></propSet><propSet><name>config.version</name><val xsi:type="xsd:string">vmx-13</val></propSet><propSet><name>guest.toolsStatus</name><val xsi:type="VirtualMachineToolsStatus">toolsNotRunning</val></propSet><propSet><name>guest.toolsVersionStatus</name><val xsi:type="xsd:string">guestToolsUnmanaged</val></propSet><propSet><name>name</name><val xsi:type="xsd:string">fedora29</val></propSet><propSet><name>overallStatus</name><val xsi:type="ManagedEntityStatus">green</val></propSet><propSet><name>parent</name><val type="Folder" xsi:type="ManagedObjectReference">group-v3</val></propSet><propSet><name>runtime.connectionState</name><val xsi:type="VirtualMachineConnectionState">connected</val></propSet><propSet><name>runtime.host</name><val type="HostSystem" xsi:type="ManagedObjectReference">host-9</val></propSet><propSet><name>runtime.powerState</name><val xsi:type="VirtualMachinePowerState">poweredOff</val></propSet></returnval></RetrievePropertiesResponse>
214
+ </soapenv:Body>
215
+ </soapenv:Envelope>
216
+ http_version:
217
+ recorded_at: Wed, 17 Apr 2019 00:25:33 GMT
218
+ - request:
219
+ method: post
220
+ uri: https://<%= vsphere_server %>/sdk
221
+ body:
222
+ encoding: UTF-8
223
+ string: <env:Envelope xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:env="http://schemas.xmlsoap.org/soap/envelope/"
224
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><env:Body><RetrieveProperties
225
+ xmlns="urn:vim25"><_this type="PropertyCollector">propertyCollector</_this><specSet
226
+ xsi:type="PropertyFilterSpec"><propSet xsi:type="PropertySpec"><type>HostSystem</type><pathSet>name</pathSet></propSet><objectSet
227
+ xsi:type="ObjectSpec"><obj type="HostSystem">host-9</obj></objectSet></specSet></RetrieveProperties></env:Body></env:Envelope>
228
+ headers:
229
+ Content-Type:
230
+ - text/xml; charset=utf-8
231
+ Soapaction:
232
+ - urn:vim25/6.7
233
+ Cookie:
234
+ - vmware_soap_session="10a04d729f95767ee586aceb5072b3d8c1f0ef6c"; Path=/; HttpOnly;
235
+ Secure;
236
+ Accept-Encoding:
237
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
238
+ Accept:
239
+ - "*/*"
240
+ User-Agent:
241
+ - Ruby
242
+ response:
243
+ status:
244
+ code: 200
245
+ message: OK
246
+ headers:
247
+ Date:
248
+ - Wed, 17 Apr 2019 00:25:33 GMT
249
+ Cache-Control:
250
+ - no-cache
251
+ Connection:
252
+ - Keep-Alive
253
+ Content-Type:
254
+ - text/xml; charset=utf-8
255
+ X-Frame-Options:
256
+ - DENY
257
+ Content-Length:
258
+ - '568'
259
+ body:
260
+ encoding: UTF-8
261
+ string: |-
262
+ <?xml version="1.0" encoding="UTF-8"?>
263
+ <soapenv:Envelope xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/"
264
+ xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
265
+ xmlns:xsd="http://www.w3.org/2001/XMLSchema"
266
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
267
+ <soapenv:Body>
268
+ <RetrievePropertiesResponse xmlns="urn:vim25"><returnval><obj type="HostSystem">host-9</obj><propSet><name>name</name><val xsi:type="xsd:string">esxi.example.com</val></propSet></returnval></RetrievePropertiesResponse>
269
+ </soapenv:Body>
270
+ </soapenv:Envelope>
271
+ http_version:
272
+ recorded_at: Wed, 17 Apr 2019 00:25:33 GMT
273
+ - request:
274
+ method: post
275
+ uri: https://<%= vsphere_server %>/sdk
276
+ body:
277
+ encoding: UTF-8
278
+ string: <env:Envelope xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:env="http://schemas.xmlsoap.org/soap/envelope/"
279
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><env:Body><RetrieveProperties
280
+ xmlns="urn:vim25"><_this type="PropertyCollector">propertyCollector</_this><specSet
281
+ xsi:type="PropertyFilterSpec"><propSet xsi:type="PropertySpec"><type>ManagedEntity</type><pathSet>name</pathSet><pathSet>parent</pathSet></propSet><objectSet
282
+ 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
283
+ xsi:type="SelectionSpec"><name>tsME</name></selectSet></selectSet></objectSet></specSet></RetrieveProperties></env:Body></env:Envelope>
284
+ headers:
285
+ Content-Type:
286
+ - text/xml; charset=utf-8
287
+ Soapaction:
288
+ - urn:vim25/6.7
289
+ Cookie:
290
+ - vmware_soap_session="10a04d729f95767ee586aceb5072b3d8c1f0ef6c"; Path=/; HttpOnly;
291
+ Secure;
292
+ Accept-Encoding:
293
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
294
+ Accept:
295
+ - "*/*"
296
+ User-Agent:
297
+ - Ruby
298
+ response:
299
+ status:
300
+ code: 200
301
+ message: OK
302
+ headers:
303
+ Date:
304
+ - Wed, 17 Apr 2019 00:25:33 GMT
305
+ Cache-Control:
306
+ - no-cache
307
+ Connection:
308
+ - Keep-Alive
309
+ Content-Type:
310
+ - text/xml; charset=utf-8
311
+ X-Frame-Options:
312
+ - DENY
313
+ Content-Length:
314
+ - '1019'
315
+ body:
316
+ encoding: UTF-8
317
+ string: |-
318
+ <?xml version="1.0" encoding="UTF-8"?>
319
+ <soapenv:Envelope xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/"
320
+ xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
321
+ xmlns:xsd="http://www.w3.org/2001/XMLSchema"
322
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
323
+ <soapenv:Body>
324
+ <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>
325
+ </soapenv:Body>
326
+ </soapenv:Envelope>
327
+ http_version:
328
+ recorded_at: Wed, 17 Apr 2019 00:25:33 GMT
329
+ recorded_with: VCR 4.0.0