bosh_vcloud_cpi 0.4.9 → 0.5.0
Sign up to get free protection for your applications and to get access to all the features.
- data/README.md +69 -0
- data/lib/cloud/vcloud/cache.rb +20 -0
- data/lib/cloud/vcloud/cloud.rb +253 -535
- data/lib/cloud/vcloud/errors.rb +9 -0
- data/lib/cloud/vcloud/file_uploader.rb +39 -0
- data/lib/cloud/vcloud/steps/add_catalog_item.rb +28 -0
- data/lib/cloud/vcloud/steps/add_networks.rb +40 -0
- data/lib/cloud/vcloud/steps/attach_detach_disk.rb +15 -0
- data/lib/cloud/vcloud/steps/create_disk.rb +29 -0
- data/lib/cloud/vcloud/steps/create_media.rb +41 -0
- data/lib/cloud/vcloud/steps/create_template.rb +27 -0
- data/lib/cloud/vcloud/steps/create_update_agent_env.rb +66 -0
- data/lib/cloud/vcloud/steps/delete.rb +12 -0
- data/lib/cloud/vcloud/steps/delete_catalog_media.rb +23 -0
- data/lib/cloud/vcloud/steps/delete_unused_networks.rb +20 -0
- data/lib/cloud/vcloud/steps/discard_suspended_state.rb +15 -0
- data/lib/cloud/vcloud/steps/eject_catalog_media.rb +29 -0
- data/lib/cloud/vcloud/steps/insert_catalog_media.rb +26 -0
- data/lib/cloud/vcloud/steps/instantiate.rb +59 -0
- data/lib/cloud/vcloud/steps/load_agent_env.rb +14 -0
- data/lib/cloud/vcloud/steps/poweroff.rb +21 -0
- data/lib/cloud/vcloud/steps/poweron.rb +17 -0
- data/lib/cloud/vcloud/steps/reboot.rb +13 -0
- data/lib/cloud/vcloud/steps/recompose.rb +19 -0
- data/lib/cloud/vcloud/steps/reconfigure_vm.rb +35 -0
- data/lib/cloud/vcloud/steps/save_agent_env.rb +43 -0
- data/lib/cloud/vcloud/steps/stemcell_info.rb +20 -0
- data/lib/cloud/vcloud/steps/undeploy.rb +19 -0
- data/lib/cloud/vcloud/steps/upload_media_files.rb +18 -0
- data/lib/cloud/vcloud/steps/upload_template_files.rb +29 -0
- data/lib/cloud/vcloud/steps.rb +100 -0
- data/lib/cloud/vcloud/vcd_client.rb +284 -0
- data/lib/cloud/vcloud/version.rb +1 -1
- data/lib/cloud/vcloud/xml/constants.rb +428 -0
- data/lib/cloud/vcloud/xml/wrapper.rb +292 -0
- data/lib/cloud/vcloud/xml/wrapper_classes/admin_catalog.rb +20 -0
- data/lib/cloud/vcloud/xml/wrapper_classes/admin_org.rb +15 -0
- data/lib/cloud/vcloud/xml/wrapper_classes/catalog.rb +20 -0
- data/lib/cloud/vcloud/xml/wrapper_classes/catalog_item.rb +27 -0
- data/lib/cloud/vcloud/xml/wrapper_classes/disk.rb +42 -0
- data/lib/cloud/vcloud/xml/wrapper_classes/disk_attach_or_detach_params.rb +12 -0
- data/lib/cloud/vcloud/xml/wrapper_classes/disk_create_params.rb +47 -0
- data/lib/cloud/vcloud/xml/wrapper_classes/entity.rb +11 -0
- data/lib/cloud/vcloud/xml/wrapper_classes/file.rb +11 -0
- data/lib/cloud/vcloud/xml/wrapper_classes/hard_disk_item_wrapper.rb +56 -0
- data/lib/cloud/vcloud/xml/wrapper_classes/instantiate_vapp_template_params.rb +71 -0
- data/lib/cloud/vcloud/xml/wrapper_classes/ip_scope.rb +55 -0
- data/lib/cloud/vcloud/xml/wrapper_classes/item.rb +32 -0
- data/lib/cloud/vcloud/xml/wrapper_classes/link_wrapper.rb +39 -0
- data/lib/cloud/vcloud/xml/wrapper_classes/media.rb +57 -0
- data/lib/cloud/vcloud/xml/wrapper_classes/media_insert_or_eject_params.rb +17 -0
- data/lib/cloud/vcloud/xml/wrapper_classes/metadata_value.rb +15 -0
- data/lib/cloud/vcloud/xml/wrapper_classes/network.rb +15 -0
- data/lib/cloud/vcloud/xml/wrapper_classes/network_config.rb +27 -0
- data/lib/cloud/vcloud/xml/wrapper_classes/network_config_section.rb +25 -0
- data/lib/cloud/vcloud/xml/wrapper_classes/network_connection.rb +71 -0
- data/lib/cloud/vcloud/xml/wrapper_classes/network_connection_section.rb +67 -0
- data/lib/cloud/vcloud/xml/wrapper_classes/nic_item_wrapper.rb +89 -0
- data/lib/cloud/vcloud/xml/wrapper_classes/org.rb +21 -0
- data/lib/cloud/vcloud/xml/wrapper_classes/org_network.rb +19 -0
- data/lib/cloud/vcloud/xml/wrapper_classes/org_vdc_network.rb +11 -0
- data/lib/cloud/vcloud/xml/wrapper_classes/recompose_vapp_wrapper.rb +51 -0
- data/lib/cloud/vcloud/xml/wrapper_classes/session.rb +24 -0
- data/lib/cloud/vcloud/xml/wrapper_classes/supported_versions.rb +19 -0
- data/lib/cloud/vcloud/xml/wrapper_classes/task.rb +32 -0
- data/lib/cloud/vcloud/xml/wrapper_classes/upload_vapp_template_params.rb +11 -0
- data/lib/cloud/vcloud/xml/wrapper_classes/vapp.rb +77 -0
- data/lib/cloud/vcloud/xml/wrapper_classes/vapp_template.rb +17 -0
- data/lib/cloud/vcloud/xml/wrapper_classes/vcloud.rb +15 -0
- data/lib/cloud/vcloud/xml/wrapper_classes/vdc.rb +59 -0
- data/lib/cloud/vcloud/xml/wrapper_classes/vdc_storage_profile.rb +15 -0
- data/lib/cloud/vcloud/xml/wrapper_classes/virtual_hardware_section.rb +68 -0
- data/lib/cloud/vcloud/xml/wrapper_classes/vm.rb +212 -0
- data/lib/cloud/vcloud/xml/xml_templates/AdminAllocatedExtIpRecord.xml +1 -0
- data/lib/cloud/vcloud/xml/xml_templates/AdminCatalog.xml +1 -0
- data/lib/cloud/vcloud/xml/xml_templates/AdminCatalogItemRecord.xml +1 -0
- data/lib/cloud/vcloud/xml/xml_templates/AdminCatalogRecord.xml +1 -0
- data/lib/cloud/vcloud/xml/xml_templates/AdminGroupRecord.xml +1 -0
- data/lib/cloud/vcloud/xml/xml_templates/AdminMediaRecord.xml +1 -0
- data/lib/cloud/vcloud/xml/xml_templates/AdminOrg.xml +1 -0
- data/lib/cloud/vcloud/xml/xml_templates/AdminOrgNetworkRecord.xml +1 -0
- data/lib/cloud/vcloud/xml/xml_templates/AdminShadowVmRecord.xml +1 -0
- data/lib/cloud/vcloud/xml/xml_templates/AdminTaskRecord.xml +1 -0
- data/lib/cloud/vcloud/xml/xml_templates/AdminUserRecord.xml +1 -0
- data/lib/cloud/vcloud/xml/xml_templates/AdminVAppNetworkRecord.xml +1 -0
- data/lib/cloud/vcloud/xml/xml_templates/AdminVAppRecord.xml +1 -0
- data/lib/cloud/vcloud/xml/xml_templates/AdminVAppReference.xml +1 -0
- data/lib/cloud/vcloud/xml/xml_templates/AdminVAppReferences.xml +1 -0
- data/lib/cloud/vcloud/xml/xml_templates/AdminVAppTemplateRecord.xml +1 -0
- data/lib/cloud/vcloud/xml/xml_templates/AdminVdc.xml +1 -0
- data/lib/cloud/vcloud/xml/xml_templates/AdminVdcRecord.xml +1 -0
- data/lib/cloud/vcloud/xml/xml_templates/AdminVdcReference.xml +1 -0
- data/lib/cloud/vcloud/xml/xml_templates/AdminVdcReferences.xml +1 -0
- data/lib/cloud/vcloud/xml/xml_templates/AdminVmRecord.xml +1 -0
- data/lib/cloud/vcloud/xml/xml_templates/AllEULAsAccepted.xml +1 -0
- data/lib/cloud/vcloud/xml/xml_templates/AllocatedExtIpRecord.xml +1 -0
- data/lib/cloud/vcloud/xml/xml_templates/BlockingTaskRecord.xml +1 -0
- data/lib/cloud/vcloud/xml/xml_templates/BlockingTaskReference.xml +1 -0
- data/lib/cloud/vcloud/xml/xml_templates/BlockingTaskReferences.xml +1 -0
- data/lib/cloud/vcloud/xml/xml_templates/CaptureVAppParams.xml +1 -0
- data/lib/cloud/vcloud/xml/xml_templates/Catalog.xml +1 -0
- data/lib/cloud/vcloud/xml/xml_templates/CatalogItem.xml +1 -0
- data/lib/cloud/vcloud/xml/xml_templates/CatalogItemRecord.xml +1 -0
- data/lib/cloud/vcloud/xml/xml_templates/CatalogItemReference.xml +1 -0
- data/lib/cloud/vcloud/xml/xml_templates/CatalogItemReferences.xml +1 -0
- data/lib/cloud/vcloud/xml/xml_templates/CatalogRecord.xml +1 -0
- data/lib/cloud/vcloud/xml/xml_templates/CatalogReference.xml +1 -0
- data/lib/cloud/vcloud/xml/xml_templates/CatalogReferences.xml +1 -0
- data/lib/cloud/vcloud/xml/xml_templates/CellRecord.xml +1 -0
- data/lib/cloud/vcloud/xml/xml_templates/CloneMediaParams.xml +1 -0
- data/lib/cloud/vcloud/xml/xml_templates/CloneVAppParams.xml +1 -0
- data/lib/cloud/vcloud/xml/xml_templates/CloneVAppTemplateParams.xml +1 -0
- data/lib/cloud/vcloud/xml/xml_templates/ComposeVAppParams.xml +17 -0
- data/lib/cloud/vcloud/xml/xml_templates/ControlAccessParams.xml +1 -0
- data/lib/cloud/vcloud/xml/xml_templates/CustomizationSection.xml +1 -0
- data/lib/cloud/vcloud/xml/xml_templates/DatastoreProviderVdcRelationRecord.xml +1 -0
- data/lib/cloud/vcloud/xml/xml_templates/DatastoreRecord.xml +1 -0
- data/lib/cloud/vcloud/xml/xml_templates/DatastoreReference.xml +1 -0
- data/lib/cloud/vcloud/xml/xml_templates/DatastoreReferences.xml +1 -0
- data/lib/cloud/vcloud/xml/xml_templates/DeployVAppParams.xml +1 -0
- data/lib/cloud/vcloud/xml/xml_templates/DhcpService.xml +1 -0
- data/lib/cloud/vcloud/xml/xml_templates/DiskAttachOrDetachParams.xml +5 -0
- data/lib/cloud/vcloud/xml/xml_templates/DiskCreateParams.xml +9 -0
- data/lib/cloud/vcloud/xml/xml_templates/DvSwitchRecord.xml +1 -0
- data/lib/cloud/vcloud/xml/xml_templates/Entity.xml +1 -0
- data/lib/cloud/vcloud/xml/xml_templates/Error.xml +1 -0
- data/lib/cloud/vcloud/xml/xml_templates/EventRecord.xml +1 -0
- data/lib/cloud/vcloud/xml/xml_templates/ExternalNetwork.xml +1 -0
- data/lib/cloud/vcloud/xml/xml_templates/File.xml +1 -0
- data/lib/cloud/vcloud/xml/xml_templates/FirewallService.xml +1 -0
- data/lib/cloud/vcloud/xml/xml_templates/GeneralOrgSettings.xml +1 -0
- data/lib/cloud/vcloud/xml/xml_templates/Group.xml +1 -0
- data/lib/cloud/vcloud/xml/xml_templates/GroupRecord.xml +1 -0
- data/lib/cloud/vcloud/xml/xml_templates/GroupReference.xml +1 -0
- data/lib/cloud/vcloud/xml/xml_templates/GroupReferences.xml +1 -0
- data/lib/cloud/vcloud/xml/xml_templates/GuestCustomizationSection.xml +1 -0
- data/lib/cloud/vcloud/xml/xml_templates/HostRecord.xml +1 -0
- data/lib/cloud/vcloud/xml/xml_templates/HostReference.xml +1 -0
- data/lib/cloud/vcloud/xml/xml_templates/HostReferences.xml +1 -0
- data/lib/cloud/vcloud/xml/xml_templates/InstantiateOvfParams.xml +1 -0
- data/lib/cloud/vcloud/xml/xml_templates/InstantiateVAppTemplateParams.xml +1 -0
- data/lib/cloud/vcloud/xml/xml_templates/IpScope.xml +12 -0
- data/lib/cloud/vcloud/xml/xml_templates/IpsecVpnLocalPeer.xml +1 -0
- data/lib/cloud/vcloud/xml/xml_templates/IpsecVpnPeer.xml +1 -0
- data/lib/cloud/vcloud/xml/xml_templates/IpsecVpnRemotePeer.xml +1 -0
- data/lib/cloud/vcloud/xml/xml_templates/IpsecVpnService.xml +1 -0
- data/lib/cloud/vcloud/xml/xml_templates/IpsecVpnThirdPartyPeer.xml +1 -0
- data/lib/cloud/vcloud/xml/xml_templates/Item.xml +3 -0
- data/lib/cloud/vcloud/xml/xml_templates/ItemVcd.xml +5 -0
- data/lib/cloud/vcloud/xml/xml_templates/LeaseSettingsSection.xml +1 -0
- data/lib/cloud/vcloud/xml/xml_templates/Link.xml +1 -0
- data/lib/cloud/vcloud/xml/xml_templates/Media.xml +5 -0
- data/lib/cloud/vcloud/xml/xml_templates/MediaInsertOrEjectParams.xml +4 -0
- data/lib/cloud/vcloud/xml/xml_templates/MediaRecord.xml +1 -0
- data/lib/cloud/vcloud/xml/xml_templates/MediaReference.xml +1 -0
- data/lib/cloud/vcloud/xml/xml_templates/MediaReferences.xml +1 -0
- data/lib/cloud/vcloud/xml/xml_templates/Metadata.xml +5 -0
- data/lib/cloud/vcloud/xml/xml_templates/MetadataEntry.xml +7 -0
- data/lib/cloud/vcloud/xml/xml_templates/MetadataValue.xml +8 -0
- data/lib/cloud/vcloud/xml/xml_templates/NatService.xml +1 -0
- data/lib/cloud/vcloud/xml/xml_templates/Network.xml +4 -0
- data/lib/cloud/vcloud/xml/xml_templates/NetworkAssignment.xml +1 -0
- data/lib/cloud/vcloud/xml/xml_templates/NetworkConfig.xml +21 -0
- data/lib/cloud/vcloud/xml/xml_templates/NetworkConfigSection.xml +1 -0
- data/lib/cloud/vcloud/xml/xml_templates/NetworkConnection.xml +11 -0
- data/lib/cloud/vcloud/xml/xml_templates/NetworkConnectionSection.xml +1 -0
- data/lib/cloud/vcloud/xml/xml_templates/NetworkPoolRecord.xml +1 -0
- data/lib/cloud/vcloud/xml/xml_templates/NetworkPoolReference.xml +1 -0
- data/lib/cloud/vcloud/xml/xml_templates/NetworkPoolReferences.xml +1 -0
- data/lib/cloud/vcloud/xml/xml_templates/NetworkRecord.xml +1 -0
- data/lib/cloud/vcloud/xml/xml_templates/NetworkReference.xml +1 -0
- data/lib/cloud/vcloud/xml/xml_templates/NetworkReferences.xml +1 -0
- data/lib/cloud/vcloud/xml/xml_templates/NetworkService.xml +1 -0
- data/lib/cloud/vcloud/xml/xml_templates/Org.xml +1 -0
- data/lib/cloud/vcloud/xml/xml_templates/OrgEmailSettings.xml +1 -0
- data/lib/cloud/vcloud/xml/xml_templates/OrgList.xml +1 -0
- data/lib/cloud/vcloud/xml/xml_templates/OrgNetwork.xml +1 -0
- data/lib/cloud/vcloud/xml/xml_templates/OrgNetworkRecord.xml +1 -0
- data/lib/cloud/vcloud/xml/xml_templates/OrgNetworkReference.xml +1 -0
- data/lib/cloud/vcloud/xml/xml_templates/OrgNetworkReferences.xml +1 -0
- data/lib/cloud/vcloud/xml/xml_templates/OrgPasswordPolicySettings.xml +1 -0
- data/lib/cloud/vcloud/xml/xml_templates/OrgRecord.xml +1 -0
- data/lib/cloud/vcloud/xml/xml_templates/OrgReference.xml +1 -0
- data/lib/cloud/vcloud/xml/xml_templates/OrgReferences.xml +1 -0
- data/lib/cloud/vcloud/xml/xml_templates/OrgSettings.xml +1 -0
- data/lib/cloud/vcloud/xml/xml_templates/OrgVAppTemplateLeaseSettings.xml +1 -0
- data/lib/cloud/vcloud/xml/xml_templates/OrgVdcNetwork.xml +1 -0
- data/lib/cloud/vcloud/xml/xml_templates/OrgVdcRecord.xml +1 -0
- data/lib/cloud/vcloud/xml/xml_templates/OrgVdcReference.xml +1 -0
- data/lib/cloud/vcloud/xml/xml_templates/OrgVdcReferences.xml +1 -0
- data/lib/cloud/vcloud/xml/xml_templates/OrgVdcResourcePoolRelationRecord.xml +1 -0
- data/lib/cloud/vcloud/xml/xml_templates/Owner.xml +1 -0
- data/lib/cloud/vcloud/xml/xml_templates/PortgroupRecord.xml +1 -0
- data/lib/cloud/vcloud/xml/xml_templates/ProductSectionList.xml +1 -0
- data/lib/cloud/vcloud/xml/xml_templates/ProviderVdc.xml +1 -0
- data/lib/cloud/vcloud/xml/xml_templates/ProviderVdcResourcePoolRelationRecord.xml +1 -0
- data/lib/cloud/vcloud/xml/xml_templates/PublishCatalogParams.xml +1 -0
- data/lib/cloud/vcloud/xml/xml_templates/QueryList.xml +1 -0
- data/lib/cloud/vcloud/xml/xml_templates/QueryResultRecords.xml +1 -0
- data/lib/cloud/vcloud/xml/xml_templates/RasdItemsList.xml +1 -0
- data/lib/cloud/vcloud/xml/xml_templates/RecomposeVAppParams.xml +17 -0
- data/lib/cloud/vcloud/xml/xml_templates/Record.xml +1 -0
- data/lib/cloud/vcloud/xml/xml_templates/Reference.xml +1 -0
- data/lib/cloud/vcloud/xml/xml_templates/References.xml +1 -0
- data/lib/cloud/vcloud/xml/xml_templates/RelocateParams.xml +1 -0
- data/lib/cloud/vcloud/xml/xml_templates/ResourceEntity.xml +1 -0
- data/lib/cloud/vcloud/xml/xml_templates/ResourcePoolRecord.xml +1 -0
- data/lib/cloud/vcloud/xml/xml_templates/Right.xml +1 -0
- data/lib/cloud/vcloud/xml/xml_templates/RightRecord.xml +1 -0
- data/lib/cloud/vcloud/xml/xml_templates/RightReference.xml +1 -0
- data/lib/cloud/vcloud/xml/xml_templates/RightReferences.xml +1 -0
- data/lib/cloud/vcloud/xml/xml_templates/Role.xml +1 -0
- data/lib/cloud/vcloud/xml/xml_templates/RoleRecord.xml +1 -0
- data/lib/cloud/vcloud/xml/xml_templates/RoleReference.xml +1 -0
- data/lib/cloud/vcloud/xml/xml_templates/RoleReferences.xml +1 -0
- data/lib/cloud/vcloud/xml/xml_templates/RuntimeInfoSection.xml +1 -0
- data/lib/cloud/vcloud/xml/xml_templates/ScreenTicket.xml +1 -0
- data/lib/cloud/vcloud/xml/xml_templates/Session.xml +1 -0
- data/lib/cloud/vcloud/xml/xml_templates/ShadowVMReferences.xml +1 -0
- data/lib/cloud/vcloud/xml/xml_templates/StaticRoutingService.xml +1 -0
- data/lib/cloud/vcloud/xml/xml_templates/StrandedUserRecord.xml +1 -0
- data/lib/cloud/vcloud/xml/xml_templates/Task.xml +0 -0
- data/lib/cloud/vcloud/xml/xml_templates/TaskRecord.xml +1 -0
- data/lib/cloud/vcloud/xml/xml_templates/TaskReference.xml +1 -0
- data/lib/cloud/vcloud/xml/xml_templates/TaskReferences.xml +1 -0
- data/lib/cloud/vcloud/xml/xml_templates/TasksList.xml +1 -0
- data/lib/cloud/vcloud/xml/xml_templates/UndeployVAppParams.xml +1 -0
- data/lib/cloud/vcloud/xml/xml_templates/UploadVAppTemplateParams.xml +1 -0
- data/lib/cloud/vcloud/xml/xml_templates/User.xml +1 -0
- data/lib/cloud/vcloud/xml/xml_templates/UserRecord.xml +1 -0
- data/lib/cloud/vcloud/xml/xml_templates/UserReference.xml +1 -0
- data/lib/cloud/vcloud/xml/xml_templates/UserReferences.xml +1 -0
- data/lib/cloud/vcloud/xml/xml_templates/VApp.xml +1 -0
- data/lib/cloud/vcloud/xml/xml_templates/VAppLeaseSettings.xml +1 -0
- data/lib/cloud/vcloud/xml/xml_templates/VAppNetwork.xml +1 -0
- data/lib/cloud/vcloud/xml/xml_templates/VAppNetworkRecord.xml +1 -0
- data/lib/cloud/vcloud/xml/xml_templates/VAppNetworkReference.xml +1 -0
- data/lib/cloud/vcloud/xml/xml_templates/VAppNetworkReferences.xml +1 -0
- data/lib/cloud/vcloud/xml/xml_templates/VAppOrgNetworkRelationRecord.xml +1 -0
- data/lib/cloud/vcloud/xml/xml_templates/VAppOrgNetworkRelationReference.xml +1 -0
- data/lib/cloud/vcloud/xml/xml_templates/VAppOrgNetworkRelationReferences.xml +1 -0
- data/lib/cloud/vcloud/xml/xml_templates/VAppRecord.xml +1 -0
- data/lib/cloud/vcloud/xml/xml_templates/VAppReference.xml +1 -0
- data/lib/cloud/vcloud/xml/xml_templates/VAppReferences.xml +1 -0
- data/lib/cloud/vcloud/xml/xml_templates/VAppTemplate.xml +1 -0
- data/lib/cloud/vcloud/xml/xml_templates/VAppTemplateRecord.xml +1 -0
- data/lib/cloud/vcloud/xml/xml_templates/VAppTemplateReference.xml +1 -0
- data/lib/cloud/vcloud/xml/xml_templates/VAppTemplateReferences.xml +1 -0
- data/lib/cloud/vcloud/xml/xml_templates/VCloud.xml +1 -0
- data/lib/cloud/vcloud/xml/xml_templates/VMRecord.xml +1 -0
- data/lib/cloud/vcloud/xml/xml_templates/VMReference.xml +1 -0
- data/lib/cloud/vcloud/xml/xml_templates/VMReferences.xml +1 -0
- data/lib/cloud/vcloud/xml/xml_templates/VMWProviderVdcRecord.xml +1 -0
- data/lib/cloud/vcloud/xml/xml_templates/VMWProviderVdcReference.xml +1 -0
- data/lib/cloud/vcloud/xml/xml_templates/VMWProviderVdcReferences.xml +1 -0
- data/lib/cloud/vcloud/xml/xml_templates/Vdc.xml +1 -0
- data/lib/cloud/vcloud/xml/xml_templates/VdcReferences.xml +1 -0
- data/lib/cloud/vcloud/xml/xml_templates/VdcStorageProfile.xml +1 -0
- data/lib/cloud/vcloud/xml/xml_templates/VirtualCenterRecord.xml +1 -0
- data/lib/cloud/vcloud/xml/xml_templates/VirtualCenterReference.xml +1 -0
- data/lib/cloud/vcloud/xml/xml_templates/VirtualCenterReferences.xml +1 -0
- data/lib/cloud/vcloud/xml/xml_templates/Vm.xml +1 -0
- data/lib/cloud/vcloud/xml/xml_templates/VmPendingQuestion.xml +1 -0
- data/lib/cloud/vcloud/xml/xml_templates/VmQuestionAnswer.xml +1 -0
- data/lib/cloud/vcloud/xml/xml_templates/generate_dictionary.rb +8 -0
- data/lib/cloud/vcloud.rb +3 -7
- metadata +384 -88
- data/README +0 -26
- data/Rakefile +0 -50
- data/lib/cloud/vcloud/const.rb +0 -27
- data/lib/cloud/vcloud/util.rb +0 -23
- data/spec/assets/test-deployment-manifest.yml +0 -183
- data/spec/assets/test-director-config.yml +0 -73
- data/spec/assets/valid_stemcell.tgz +0 -0
- data/spec/spec_helper.rb +0 -135
- data/spec/unit/cloud_spec.rb +0 -506
metadata
CHANGED
@@ -1,129 +1,425 @@
|
|
1
|
-
--- !ruby/object:Gem::Specification
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
2
|
name: bosh_vcloud_cpi
|
3
|
-
version: !ruby/object:Gem::Version
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.5.0
|
4
5
|
prerelease:
|
5
|
-
version: 0.4.9
|
6
6
|
platform: ruby
|
7
|
-
authors:
|
7
|
+
authors:
|
8
8
|
- VMware
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
- !ruby/object:Gem::Dependency
|
12
|
+
date: 2013-11-05 00:00:00.000000000 Z
|
13
|
+
dependencies:
|
14
|
+
- !ruby/object:Gem::Dependency
|
16
15
|
name: bosh_common
|
17
|
-
requirement:
|
16
|
+
requirement: !ruby/object:Gem::Requirement
|
18
17
|
none: false
|
19
|
-
requirements:
|
20
|
-
- -
|
21
|
-
- !ruby/object:Gem::Version
|
22
|
-
version:
|
18
|
+
requirements:
|
19
|
+
- - ~>
|
20
|
+
- !ruby/object:Gem::Version
|
21
|
+
version: 1.5.0.pre3
|
23
22
|
type: :runtime
|
24
23
|
prerelease: false
|
25
|
-
version_requirements:
|
26
|
-
|
24
|
+
version_requirements: !ruby/object:Gem::Requirement
|
25
|
+
none: false
|
26
|
+
requirements:
|
27
|
+
- - ~>
|
28
|
+
- !ruby/object:Gem::Version
|
29
|
+
version: 1.5.0.pre3
|
30
|
+
- !ruby/object:Gem::Dependency
|
27
31
|
name: bosh_cpi
|
28
|
-
requirement:
|
32
|
+
requirement: !ruby/object:Gem::Requirement
|
29
33
|
none: false
|
30
|
-
requirements:
|
31
|
-
- -
|
32
|
-
- !ruby/object:Gem::Version
|
33
|
-
version: 0.
|
34
|
+
requirements:
|
35
|
+
- - ~>
|
36
|
+
- !ruby/object:Gem::Version
|
37
|
+
version: 1.5.0.pre3
|
34
38
|
type: :runtime
|
35
39
|
prerelease: false
|
36
|
-
version_requirements:
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
+
version_requirements: !ruby/object:Gem::Requirement
|
41
|
+
none: false
|
42
|
+
requirements:
|
43
|
+
- - ~>
|
44
|
+
- !ruby/object:Gem::Version
|
45
|
+
version: 1.5.0.pre3
|
46
|
+
- !ruby/object:Gem::Dependency
|
47
|
+
name: yajl-ruby
|
48
|
+
requirement: !ruby/object:Gem::Requirement
|
40
49
|
none: false
|
41
|
-
requirements:
|
42
|
-
- -
|
43
|
-
- !ruby/object:Gem::Version
|
44
|
-
version:
|
50
|
+
requirements:
|
51
|
+
- - ! '>='
|
52
|
+
- !ruby/object:Gem::Version
|
53
|
+
version: 0.8.2
|
45
54
|
type: :runtime
|
46
55
|
prerelease: false
|
47
|
-
version_requirements:
|
48
|
-
|
49
|
-
|
50
|
-
|
56
|
+
version_requirements: !ruby/object:Gem::Requirement
|
57
|
+
none: false
|
58
|
+
requirements:
|
59
|
+
- - ! '>='
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: 0.8.2
|
62
|
+
- !ruby/object:Gem::Dependency
|
63
|
+
name: builder
|
64
|
+
requirement: !ruby/object:Gem::Requirement
|
51
65
|
none: false
|
52
|
-
requirements:
|
53
|
-
- -
|
54
|
-
- !ruby/object:Gem::Version
|
55
|
-
version:
|
66
|
+
requirements:
|
67
|
+
- - ~>
|
68
|
+
- !ruby/object:Gem::Version
|
69
|
+
version: 3.1.4
|
56
70
|
type: :runtime
|
57
71
|
prerelease: false
|
58
|
-
version_requirements:
|
59
|
-
- !ruby/object:Gem::Dependency
|
60
|
-
name: yajl-ruby
|
61
|
-
requirement: &id005 !ruby/object:Gem::Requirement
|
72
|
+
version_requirements: !ruby/object:Gem::Requirement
|
62
73
|
none: false
|
63
|
-
requirements:
|
64
|
-
- -
|
65
|
-
- !ruby/object:Gem::Version
|
66
|
-
version:
|
74
|
+
requirements:
|
75
|
+
- - ~>
|
76
|
+
- !ruby/object:Gem::Version
|
77
|
+
version: 3.1.4
|
78
|
+
- !ruby/object:Gem::Dependency
|
79
|
+
name: httpclient
|
80
|
+
requirement: !ruby/object:Gem::Requirement
|
81
|
+
none: false
|
82
|
+
requirements:
|
83
|
+
- - '='
|
84
|
+
- !ruby/object:Gem::Version
|
85
|
+
version: 2.2.4
|
67
86
|
type: :runtime
|
68
87
|
prerelease: false
|
69
|
-
version_requirements:
|
70
|
-
|
71
|
-
|
72
|
-
|
88
|
+
version_requirements: !ruby/object:Gem::Requirement
|
89
|
+
none: false
|
90
|
+
requirements:
|
91
|
+
- - '='
|
92
|
+
- !ruby/object:Gem::Version
|
93
|
+
version: 2.2.4
|
94
|
+
- !ruby/object:Gem::Dependency
|
95
|
+
name: rest-client
|
96
|
+
requirement: !ruby/object:Gem::Requirement
|
97
|
+
none: false
|
98
|
+
requirements:
|
99
|
+
- - ~>
|
100
|
+
- !ruby/object:Gem::Version
|
101
|
+
version: 1.6.7
|
102
|
+
type: :runtime
|
103
|
+
prerelease: false
|
104
|
+
version_requirements: !ruby/object:Gem::Requirement
|
105
|
+
none: false
|
106
|
+
requirements:
|
107
|
+
- - ~>
|
108
|
+
- !ruby/object:Gem::Version
|
109
|
+
version: 1.6.7
|
110
|
+
- !ruby/object:Gem::Dependency
|
111
|
+
name: nokogiri
|
112
|
+
requirement: !ruby/object:Gem::Requirement
|
113
|
+
none: false
|
114
|
+
requirements:
|
115
|
+
- - ~>
|
116
|
+
- !ruby/object:Gem::Version
|
117
|
+
version: 1.5.6
|
118
|
+
type: :runtime
|
119
|
+
prerelease: false
|
120
|
+
version_requirements: !ruby/object:Gem::Requirement
|
121
|
+
none: false
|
122
|
+
requirements:
|
123
|
+
- - ~>
|
124
|
+
- !ruby/object:Gem::Version
|
125
|
+
version: 1.5.6
|
126
|
+
description: ! 'BOSH vCloud CPI
|
73
127
|
|
128
|
+
6c277e'
|
129
|
+
email: vchs-cf@rbcon.com
|
130
|
+
executables: []
|
74
131
|
extensions: []
|
75
|
-
|
76
132
|
extra_rdoc_files: []
|
77
|
-
|
78
|
-
files:
|
133
|
+
files:
|
79
134
|
- lib/cloud/vcloud.rb
|
135
|
+
- lib/cloud/vcloud/cache.rb
|
80
136
|
- lib/cloud/vcloud/cloud.rb
|
81
|
-
- lib/cloud/vcloud/
|
82
|
-
- lib/cloud/vcloud/
|
137
|
+
- lib/cloud/vcloud/errors.rb
|
138
|
+
- lib/cloud/vcloud/file_uploader.rb
|
139
|
+
- lib/cloud/vcloud/steps.rb
|
140
|
+
- lib/cloud/vcloud/steps/add_catalog_item.rb
|
141
|
+
- lib/cloud/vcloud/steps/add_networks.rb
|
142
|
+
- lib/cloud/vcloud/steps/attach_detach_disk.rb
|
143
|
+
- lib/cloud/vcloud/steps/create_disk.rb
|
144
|
+
- lib/cloud/vcloud/steps/create_media.rb
|
145
|
+
- lib/cloud/vcloud/steps/create_template.rb
|
146
|
+
- lib/cloud/vcloud/steps/create_update_agent_env.rb
|
147
|
+
- lib/cloud/vcloud/steps/delete.rb
|
148
|
+
- lib/cloud/vcloud/steps/delete_catalog_media.rb
|
149
|
+
- lib/cloud/vcloud/steps/delete_unused_networks.rb
|
150
|
+
- lib/cloud/vcloud/steps/discard_suspended_state.rb
|
151
|
+
- lib/cloud/vcloud/steps/eject_catalog_media.rb
|
152
|
+
- lib/cloud/vcloud/steps/insert_catalog_media.rb
|
153
|
+
- lib/cloud/vcloud/steps/instantiate.rb
|
154
|
+
- lib/cloud/vcloud/steps/load_agent_env.rb
|
155
|
+
- lib/cloud/vcloud/steps/poweroff.rb
|
156
|
+
- lib/cloud/vcloud/steps/poweron.rb
|
157
|
+
- lib/cloud/vcloud/steps/reboot.rb
|
158
|
+
- lib/cloud/vcloud/steps/recompose.rb
|
159
|
+
- lib/cloud/vcloud/steps/reconfigure_vm.rb
|
160
|
+
- lib/cloud/vcloud/steps/save_agent_env.rb
|
161
|
+
- lib/cloud/vcloud/steps/stemcell_info.rb
|
162
|
+
- lib/cloud/vcloud/steps/undeploy.rb
|
163
|
+
- lib/cloud/vcloud/steps/upload_media_files.rb
|
164
|
+
- lib/cloud/vcloud/steps/upload_template_files.rb
|
165
|
+
- lib/cloud/vcloud/vcd_client.rb
|
83
166
|
- lib/cloud/vcloud/version.rb
|
84
|
-
-
|
85
|
-
-
|
86
|
-
-
|
87
|
-
-
|
88
|
-
-
|
89
|
-
-
|
90
|
-
-
|
91
|
-
|
92
|
-
|
93
|
-
|
167
|
+
- lib/cloud/vcloud/xml/constants.rb
|
168
|
+
- lib/cloud/vcloud/xml/wrapper.rb
|
169
|
+
- lib/cloud/vcloud/xml/wrapper_classes/admin_catalog.rb
|
170
|
+
- lib/cloud/vcloud/xml/wrapper_classes/admin_org.rb
|
171
|
+
- lib/cloud/vcloud/xml/wrapper_classes/catalog.rb
|
172
|
+
- lib/cloud/vcloud/xml/wrapper_classes/catalog_item.rb
|
173
|
+
- lib/cloud/vcloud/xml/wrapper_classes/disk.rb
|
174
|
+
- lib/cloud/vcloud/xml/wrapper_classes/disk_attach_or_detach_params.rb
|
175
|
+
- lib/cloud/vcloud/xml/wrapper_classes/disk_create_params.rb
|
176
|
+
- lib/cloud/vcloud/xml/wrapper_classes/entity.rb
|
177
|
+
- lib/cloud/vcloud/xml/wrapper_classes/file.rb
|
178
|
+
- lib/cloud/vcloud/xml/wrapper_classes/hard_disk_item_wrapper.rb
|
179
|
+
- lib/cloud/vcloud/xml/wrapper_classes/instantiate_vapp_template_params.rb
|
180
|
+
- lib/cloud/vcloud/xml/wrapper_classes/ip_scope.rb
|
181
|
+
- lib/cloud/vcloud/xml/wrapper_classes/item.rb
|
182
|
+
- lib/cloud/vcloud/xml/wrapper_classes/link_wrapper.rb
|
183
|
+
- lib/cloud/vcloud/xml/wrapper_classes/media.rb
|
184
|
+
- lib/cloud/vcloud/xml/wrapper_classes/media_insert_or_eject_params.rb
|
185
|
+
- lib/cloud/vcloud/xml/wrapper_classes/metadata_value.rb
|
186
|
+
- lib/cloud/vcloud/xml/wrapper_classes/network.rb
|
187
|
+
- lib/cloud/vcloud/xml/wrapper_classes/network_config.rb
|
188
|
+
- lib/cloud/vcloud/xml/wrapper_classes/network_config_section.rb
|
189
|
+
- lib/cloud/vcloud/xml/wrapper_classes/network_connection.rb
|
190
|
+
- lib/cloud/vcloud/xml/wrapper_classes/network_connection_section.rb
|
191
|
+
- lib/cloud/vcloud/xml/wrapper_classes/nic_item_wrapper.rb
|
192
|
+
- lib/cloud/vcloud/xml/wrapper_classes/org.rb
|
193
|
+
- lib/cloud/vcloud/xml/wrapper_classes/org_network.rb
|
194
|
+
- lib/cloud/vcloud/xml/wrapper_classes/org_vdc_network.rb
|
195
|
+
- lib/cloud/vcloud/xml/wrapper_classes/recompose_vapp_wrapper.rb
|
196
|
+
- lib/cloud/vcloud/xml/wrapper_classes/session.rb
|
197
|
+
- lib/cloud/vcloud/xml/wrapper_classes/supported_versions.rb
|
198
|
+
- lib/cloud/vcloud/xml/wrapper_classes/task.rb
|
199
|
+
- lib/cloud/vcloud/xml/wrapper_classes/upload_vapp_template_params.rb
|
200
|
+
- lib/cloud/vcloud/xml/wrapper_classes/vapp.rb
|
201
|
+
- lib/cloud/vcloud/xml/wrapper_classes/vapp_template.rb
|
202
|
+
- lib/cloud/vcloud/xml/wrapper_classes/vcloud.rb
|
203
|
+
- lib/cloud/vcloud/xml/wrapper_classes/vdc.rb
|
204
|
+
- lib/cloud/vcloud/xml/wrapper_classes/vdc_storage_profile.rb
|
205
|
+
- lib/cloud/vcloud/xml/wrapper_classes/virtual_hardware_section.rb
|
206
|
+
- lib/cloud/vcloud/xml/wrapper_classes/vm.rb
|
207
|
+
- lib/cloud/vcloud/xml/xml_templates/AdminAllocatedExtIpRecord.xml
|
208
|
+
- lib/cloud/vcloud/xml/xml_templates/AdminCatalog.xml
|
209
|
+
- lib/cloud/vcloud/xml/xml_templates/AdminCatalogItemRecord.xml
|
210
|
+
- lib/cloud/vcloud/xml/xml_templates/AdminCatalogRecord.xml
|
211
|
+
- lib/cloud/vcloud/xml/xml_templates/AdminGroupRecord.xml
|
212
|
+
- lib/cloud/vcloud/xml/xml_templates/AdminMediaRecord.xml
|
213
|
+
- lib/cloud/vcloud/xml/xml_templates/AdminOrg.xml
|
214
|
+
- lib/cloud/vcloud/xml/xml_templates/AdminOrgNetworkRecord.xml
|
215
|
+
- lib/cloud/vcloud/xml/xml_templates/AdminShadowVmRecord.xml
|
216
|
+
- lib/cloud/vcloud/xml/xml_templates/AdminTaskRecord.xml
|
217
|
+
- lib/cloud/vcloud/xml/xml_templates/AdminUserRecord.xml
|
218
|
+
- lib/cloud/vcloud/xml/xml_templates/AdminVAppNetworkRecord.xml
|
219
|
+
- lib/cloud/vcloud/xml/xml_templates/AdminVAppRecord.xml
|
220
|
+
- lib/cloud/vcloud/xml/xml_templates/AdminVAppReference.xml
|
221
|
+
- lib/cloud/vcloud/xml/xml_templates/AdminVAppReferences.xml
|
222
|
+
- lib/cloud/vcloud/xml/xml_templates/AdminVAppTemplateRecord.xml
|
223
|
+
- lib/cloud/vcloud/xml/xml_templates/AdminVdc.xml
|
224
|
+
- lib/cloud/vcloud/xml/xml_templates/AdminVdcRecord.xml
|
225
|
+
- lib/cloud/vcloud/xml/xml_templates/AdminVdcReference.xml
|
226
|
+
- lib/cloud/vcloud/xml/xml_templates/AdminVdcReferences.xml
|
227
|
+
- lib/cloud/vcloud/xml/xml_templates/AdminVmRecord.xml
|
228
|
+
- lib/cloud/vcloud/xml/xml_templates/AllEULAsAccepted.xml
|
229
|
+
- lib/cloud/vcloud/xml/xml_templates/AllocatedExtIpRecord.xml
|
230
|
+
- lib/cloud/vcloud/xml/xml_templates/BlockingTaskRecord.xml
|
231
|
+
- lib/cloud/vcloud/xml/xml_templates/BlockingTaskReference.xml
|
232
|
+
- lib/cloud/vcloud/xml/xml_templates/BlockingTaskReferences.xml
|
233
|
+
- lib/cloud/vcloud/xml/xml_templates/CaptureVAppParams.xml
|
234
|
+
- lib/cloud/vcloud/xml/xml_templates/Catalog.xml
|
235
|
+
- lib/cloud/vcloud/xml/xml_templates/CatalogItem.xml
|
236
|
+
- lib/cloud/vcloud/xml/xml_templates/CatalogItemRecord.xml
|
237
|
+
- lib/cloud/vcloud/xml/xml_templates/CatalogItemReference.xml
|
238
|
+
- lib/cloud/vcloud/xml/xml_templates/CatalogItemReferences.xml
|
239
|
+
- lib/cloud/vcloud/xml/xml_templates/CatalogRecord.xml
|
240
|
+
- lib/cloud/vcloud/xml/xml_templates/CatalogReference.xml
|
241
|
+
- lib/cloud/vcloud/xml/xml_templates/CatalogReferences.xml
|
242
|
+
- lib/cloud/vcloud/xml/xml_templates/CellRecord.xml
|
243
|
+
- lib/cloud/vcloud/xml/xml_templates/CloneMediaParams.xml
|
244
|
+
- lib/cloud/vcloud/xml/xml_templates/CloneVAppParams.xml
|
245
|
+
- lib/cloud/vcloud/xml/xml_templates/CloneVAppTemplateParams.xml
|
246
|
+
- lib/cloud/vcloud/xml/xml_templates/ComposeVAppParams.xml
|
247
|
+
- lib/cloud/vcloud/xml/xml_templates/ControlAccessParams.xml
|
248
|
+
- lib/cloud/vcloud/xml/xml_templates/CustomizationSection.xml
|
249
|
+
- lib/cloud/vcloud/xml/xml_templates/DatastoreProviderVdcRelationRecord.xml
|
250
|
+
- lib/cloud/vcloud/xml/xml_templates/DatastoreRecord.xml
|
251
|
+
- lib/cloud/vcloud/xml/xml_templates/DatastoreReference.xml
|
252
|
+
- lib/cloud/vcloud/xml/xml_templates/DatastoreReferences.xml
|
253
|
+
- lib/cloud/vcloud/xml/xml_templates/DeployVAppParams.xml
|
254
|
+
- lib/cloud/vcloud/xml/xml_templates/DhcpService.xml
|
255
|
+
- lib/cloud/vcloud/xml/xml_templates/DiskAttachOrDetachParams.xml
|
256
|
+
- lib/cloud/vcloud/xml/xml_templates/DiskCreateParams.xml
|
257
|
+
- lib/cloud/vcloud/xml/xml_templates/DvSwitchRecord.xml
|
258
|
+
- lib/cloud/vcloud/xml/xml_templates/Entity.xml
|
259
|
+
- lib/cloud/vcloud/xml/xml_templates/Error.xml
|
260
|
+
- lib/cloud/vcloud/xml/xml_templates/EventRecord.xml
|
261
|
+
- lib/cloud/vcloud/xml/xml_templates/ExternalNetwork.xml
|
262
|
+
- lib/cloud/vcloud/xml/xml_templates/File.xml
|
263
|
+
- lib/cloud/vcloud/xml/xml_templates/FirewallService.xml
|
264
|
+
- lib/cloud/vcloud/xml/xml_templates/GeneralOrgSettings.xml
|
265
|
+
- lib/cloud/vcloud/xml/xml_templates/Group.xml
|
266
|
+
- lib/cloud/vcloud/xml/xml_templates/GroupRecord.xml
|
267
|
+
- lib/cloud/vcloud/xml/xml_templates/GroupReference.xml
|
268
|
+
- lib/cloud/vcloud/xml/xml_templates/GroupReferences.xml
|
269
|
+
- lib/cloud/vcloud/xml/xml_templates/GuestCustomizationSection.xml
|
270
|
+
- lib/cloud/vcloud/xml/xml_templates/HostRecord.xml
|
271
|
+
- lib/cloud/vcloud/xml/xml_templates/HostReference.xml
|
272
|
+
- lib/cloud/vcloud/xml/xml_templates/HostReferences.xml
|
273
|
+
- lib/cloud/vcloud/xml/xml_templates/InstantiateOvfParams.xml
|
274
|
+
- lib/cloud/vcloud/xml/xml_templates/InstantiateVAppTemplateParams.xml
|
275
|
+
- lib/cloud/vcloud/xml/xml_templates/IpScope.xml
|
276
|
+
- lib/cloud/vcloud/xml/xml_templates/IpsecVpnLocalPeer.xml
|
277
|
+
- lib/cloud/vcloud/xml/xml_templates/IpsecVpnPeer.xml
|
278
|
+
- lib/cloud/vcloud/xml/xml_templates/IpsecVpnRemotePeer.xml
|
279
|
+
- lib/cloud/vcloud/xml/xml_templates/IpsecVpnService.xml
|
280
|
+
- lib/cloud/vcloud/xml/xml_templates/IpsecVpnThirdPartyPeer.xml
|
281
|
+
- lib/cloud/vcloud/xml/xml_templates/Item.xml
|
282
|
+
- lib/cloud/vcloud/xml/xml_templates/ItemVcd.xml
|
283
|
+
- lib/cloud/vcloud/xml/xml_templates/LeaseSettingsSection.xml
|
284
|
+
- lib/cloud/vcloud/xml/xml_templates/Link.xml
|
285
|
+
- lib/cloud/vcloud/xml/xml_templates/Media.xml
|
286
|
+
- lib/cloud/vcloud/xml/xml_templates/MediaInsertOrEjectParams.xml
|
287
|
+
- lib/cloud/vcloud/xml/xml_templates/MediaRecord.xml
|
288
|
+
- lib/cloud/vcloud/xml/xml_templates/MediaReference.xml
|
289
|
+
- lib/cloud/vcloud/xml/xml_templates/MediaReferences.xml
|
290
|
+
- lib/cloud/vcloud/xml/xml_templates/Metadata.xml
|
291
|
+
- lib/cloud/vcloud/xml/xml_templates/MetadataEntry.xml
|
292
|
+
- lib/cloud/vcloud/xml/xml_templates/MetadataValue.xml
|
293
|
+
- lib/cloud/vcloud/xml/xml_templates/NatService.xml
|
294
|
+
- lib/cloud/vcloud/xml/xml_templates/Network.xml
|
295
|
+
- lib/cloud/vcloud/xml/xml_templates/NetworkAssignment.xml
|
296
|
+
- lib/cloud/vcloud/xml/xml_templates/NetworkConfig.xml
|
297
|
+
- lib/cloud/vcloud/xml/xml_templates/NetworkConfigSection.xml
|
298
|
+
- lib/cloud/vcloud/xml/xml_templates/NetworkConnection.xml
|
299
|
+
- lib/cloud/vcloud/xml/xml_templates/NetworkConnectionSection.xml
|
300
|
+
- lib/cloud/vcloud/xml/xml_templates/NetworkPoolRecord.xml
|
301
|
+
- lib/cloud/vcloud/xml/xml_templates/NetworkPoolReference.xml
|
302
|
+
- lib/cloud/vcloud/xml/xml_templates/NetworkPoolReferences.xml
|
303
|
+
- lib/cloud/vcloud/xml/xml_templates/NetworkRecord.xml
|
304
|
+
- lib/cloud/vcloud/xml/xml_templates/NetworkReference.xml
|
305
|
+
- lib/cloud/vcloud/xml/xml_templates/NetworkReferences.xml
|
306
|
+
- lib/cloud/vcloud/xml/xml_templates/NetworkService.xml
|
307
|
+
- lib/cloud/vcloud/xml/xml_templates/Org.xml
|
308
|
+
- lib/cloud/vcloud/xml/xml_templates/OrgEmailSettings.xml
|
309
|
+
- lib/cloud/vcloud/xml/xml_templates/OrgList.xml
|
310
|
+
- lib/cloud/vcloud/xml/xml_templates/OrgNetwork.xml
|
311
|
+
- lib/cloud/vcloud/xml/xml_templates/OrgNetworkRecord.xml
|
312
|
+
- lib/cloud/vcloud/xml/xml_templates/OrgNetworkReference.xml
|
313
|
+
- lib/cloud/vcloud/xml/xml_templates/OrgNetworkReferences.xml
|
314
|
+
- lib/cloud/vcloud/xml/xml_templates/OrgPasswordPolicySettings.xml
|
315
|
+
- lib/cloud/vcloud/xml/xml_templates/OrgRecord.xml
|
316
|
+
- lib/cloud/vcloud/xml/xml_templates/OrgReference.xml
|
317
|
+
- lib/cloud/vcloud/xml/xml_templates/OrgReferences.xml
|
318
|
+
- lib/cloud/vcloud/xml/xml_templates/OrgSettings.xml
|
319
|
+
- lib/cloud/vcloud/xml/xml_templates/OrgVAppTemplateLeaseSettings.xml
|
320
|
+
- lib/cloud/vcloud/xml/xml_templates/OrgVdcNetwork.xml
|
321
|
+
- lib/cloud/vcloud/xml/xml_templates/OrgVdcRecord.xml
|
322
|
+
- lib/cloud/vcloud/xml/xml_templates/OrgVdcReference.xml
|
323
|
+
- lib/cloud/vcloud/xml/xml_templates/OrgVdcReferences.xml
|
324
|
+
- lib/cloud/vcloud/xml/xml_templates/OrgVdcResourcePoolRelationRecord.xml
|
325
|
+
- lib/cloud/vcloud/xml/xml_templates/Owner.xml
|
326
|
+
- lib/cloud/vcloud/xml/xml_templates/PortgroupRecord.xml
|
327
|
+
- lib/cloud/vcloud/xml/xml_templates/ProductSectionList.xml
|
328
|
+
- lib/cloud/vcloud/xml/xml_templates/ProviderVdc.xml
|
329
|
+
- lib/cloud/vcloud/xml/xml_templates/ProviderVdcResourcePoolRelationRecord.xml
|
330
|
+
- lib/cloud/vcloud/xml/xml_templates/PublishCatalogParams.xml
|
331
|
+
- lib/cloud/vcloud/xml/xml_templates/QueryList.xml
|
332
|
+
- lib/cloud/vcloud/xml/xml_templates/QueryResultRecords.xml
|
333
|
+
- lib/cloud/vcloud/xml/xml_templates/RasdItemsList.xml
|
334
|
+
- lib/cloud/vcloud/xml/xml_templates/RecomposeVAppParams.xml
|
335
|
+
- lib/cloud/vcloud/xml/xml_templates/Record.xml
|
336
|
+
- lib/cloud/vcloud/xml/xml_templates/Reference.xml
|
337
|
+
- lib/cloud/vcloud/xml/xml_templates/References.xml
|
338
|
+
- lib/cloud/vcloud/xml/xml_templates/RelocateParams.xml
|
339
|
+
- lib/cloud/vcloud/xml/xml_templates/ResourceEntity.xml
|
340
|
+
- lib/cloud/vcloud/xml/xml_templates/ResourcePoolRecord.xml
|
341
|
+
- lib/cloud/vcloud/xml/xml_templates/Right.xml
|
342
|
+
- lib/cloud/vcloud/xml/xml_templates/RightRecord.xml
|
343
|
+
- lib/cloud/vcloud/xml/xml_templates/RightReference.xml
|
344
|
+
- lib/cloud/vcloud/xml/xml_templates/RightReferences.xml
|
345
|
+
- lib/cloud/vcloud/xml/xml_templates/Role.xml
|
346
|
+
- lib/cloud/vcloud/xml/xml_templates/RoleRecord.xml
|
347
|
+
- lib/cloud/vcloud/xml/xml_templates/RoleReference.xml
|
348
|
+
- lib/cloud/vcloud/xml/xml_templates/RoleReferences.xml
|
349
|
+
- lib/cloud/vcloud/xml/xml_templates/RuntimeInfoSection.xml
|
350
|
+
- lib/cloud/vcloud/xml/xml_templates/ScreenTicket.xml
|
351
|
+
- lib/cloud/vcloud/xml/xml_templates/Session.xml
|
352
|
+
- lib/cloud/vcloud/xml/xml_templates/ShadowVMReferences.xml
|
353
|
+
- lib/cloud/vcloud/xml/xml_templates/StaticRoutingService.xml
|
354
|
+
- lib/cloud/vcloud/xml/xml_templates/StrandedUserRecord.xml
|
355
|
+
- lib/cloud/vcloud/xml/xml_templates/Task.xml
|
356
|
+
- lib/cloud/vcloud/xml/xml_templates/TaskRecord.xml
|
357
|
+
- lib/cloud/vcloud/xml/xml_templates/TaskReference.xml
|
358
|
+
- lib/cloud/vcloud/xml/xml_templates/TaskReferences.xml
|
359
|
+
- lib/cloud/vcloud/xml/xml_templates/TasksList.xml
|
360
|
+
- lib/cloud/vcloud/xml/xml_templates/UndeployVAppParams.xml
|
361
|
+
- lib/cloud/vcloud/xml/xml_templates/UploadVAppTemplateParams.xml
|
362
|
+
- lib/cloud/vcloud/xml/xml_templates/User.xml
|
363
|
+
- lib/cloud/vcloud/xml/xml_templates/UserRecord.xml
|
364
|
+
- lib/cloud/vcloud/xml/xml_templates/UserReference.xml
|
365
|
+
- lib/cloud/vcloud/xml/xml_templates/UserReferences.xml
|
366
|
+
- lib/cloud/vcloud/xml/xml_templates/VApp.xml
|
367
|
+
- lib/cloud/vcloud/xml/xml_templates/VAppLeaseSettings.xml
|
368
|
+
- lib/cloud/vcloud/xml/xml_templates/VAppNetwork.xml
|
369
|
+
- lib/cloud/vcloud/xml/xml_templates/VAppNetworkRecord.xml
|
370
|
+
- lib/cloud/vcloud/xml/xml_templates/VAppNetworkReference.xml
|
371
|
+
- lib/cloud/vcloud/xml/xml_templates/VAppNetworkReferences.xml
|
372
|
+
- lib/cloud/vcloud/xml/xml_templates/VAppOrgNetworkRelationRecord.xml
|
373
|
+
- lib/cloud/vcloud/xml/xml_templates/VAppOrgNetworkRelationReference.xml
|
374
|
+
- lib/cloud/vcloud/xml/xml_templates/VAppOrgNetworkRelationReferences.xml
|
375
|
+
- lib/cloud/vcloud/xml/xml_templates/VAppRecord.xml
|
376
|
+
- lib/cloud/vcloud/xml/xml_templates/VAppReference.xml
|
377
|
+
- lib/cloud/vcloud/xml/xml_templates/VAppReferences.xml
|
378
|
+
- lib/cloud/vcloud/xml/xml_templates/VAppTemplate.xml
|
379
|
+
- lib/cloud/vcloud/xml/xml_templates/VAppTemplateRecord.xml
|
380
|
+
- lib/cloud/vcloud/xml/xml_templates/VAppTemplateReference.xml
|
381
|
+
- lib/cloud/vcloud/xml/xml_templates/VAppTemplateReferences.xml
|
382
|
+
- lib/cloud/vcloud/xml/xml_templates/VCloud.xml
|
383
|
+
- lib/cloud/vcloud/xml/xml_templates/VMRecord.xml
|
384
|
+
- lib/cloud/vcloud/xml/xml_templates/VMReference.xml
|
385
|
+
- lib/cloud/vcloud/xml/xml_templates/VMReferences.xml
|
386
|
+
- lib/cloud/vcloud/xml/xml_templates/VMWProviderVdcRecord.xml
|
387
|
+
- lib/cloud/vcloud/xml/xml_templates/VMWProviderVdcReference.xml
|
388
|
+
- lib/cloud/vcloud/xml/xml_templates/VMWProviderVdcReferences.xml
|
389
|
+
- lib/cloud/vcloud/xml/xml_templates/Vdc.xml
|
390
|
+
- lib/cloud/vcloud/xml/xml_templates/VdcReferences.xml
|
391
|
+
- lib/cloud/vcloud/xml/xml_templates/VdcStorageProfile.xml
|
392
|
+
- lib/cloud/vcloud/xml/xml_templates/VirtualCenterRecord.xml
|
393
|
+
- lib/cloud/vcloud/xml/xml_templates/VirtualCenterReference.xml
|
394
|
+
- lib/cloud/vcloud/xml/xml_templates/VirtualCenterReferences.xml
|
395
|
+
- lib/cloud/vcloud/xml/xml_templates/Vm.xml
|
396
|
+
- lib/cloud/vcloud/xml/xml_templates/VmPendingQuestion.xml
|
397
|
+
- lib/cloud/vcloud/xml/xml_templates/VmQuestionAnswer.xml
|
398
|
+
- lib/cloud/vcloud/xml/xml_templates/generate_dictionary.rb
|
399
|
+
- README.md
|
400
|
+
homepage: https://github.com/vchs/bosh_vcloud_cpi
|
401
|
+
licenses:
|
402
|
+
- Apache 2.0
|
94
403
|
post_install_message:
|
95
404
|
rdoc_options: []
|
96
|
-
|
97
|
-
require_paths:
|
405
|
+
require_paths:
|
98
406
|
- lib
|
99
|
-
required_ruby_version: !ruby/object:Gem::Requirement
|
407
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
100
408
|
none: false
|
101
|
-
requirements:
|
102
|
-
- -
|
103
|
-
- !ruby/object:Gem::Version
|
104
|
-
|
105
|
-
|
106
|
-
- 0
|
107
|
-
version: "0"
|
108
|
-
required_rubygems_version: !ruby/object:Gem::Requirement
|
409
|
+
requirements:
|
410
|
+
- - ! '>='
|
411
|
+
- !ruby/object:Gem::Version
|
412
|
+
version: 1.9.3
|
413
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
109
414
|
none: false
|
110
|
-
requirements:
|
111
|
-
- -
|
112
|
-
- !ruby/object:Gem::Version
|
113
|
-
|
114
|
-
segments:
|
115
|
-
- 0
|
116
|
-
version: "0"
|
415
|
+
requirements:
|
416
|
+
- - ! '>='
|
417
|
+
- !ruby/object:Gem::Version
|
418
|
+
version: '0'
|
117
419
|
requirements: []
|
118
|
-
|
119
420
|
rubyforge_project:
|
120
421
|
rubygems_version: 1.8.24
|
121
422
|
signing_key:
|
122
423
|
specification_version: 3
|
123
424
|
summary: BOSH vCloud CPI
|
124
|
-
test_files:
|
125
|
-
- spec/assets/test-deployment-manifest.yml
|
126
|
-
- spec/assets/test-director-config.yml
|
127
|
-
- spec/assets/valid_stemcell.tgz
|
128
|
-
- spec/spec_helper.rb
|
129
|
-
- spec/unit/cloud_spec.rb
|
425
|
+
test_files: []
|
data/README
DELETED
@@ -1,26 +0,0 @@
|
|
1
|
-
BOSH vCloud Cloud Provider
|
2
|
-
|
3
|
-
A BOSH CPI implementation for a vCloud Director backed infrastructure cloud.
|
4
|
-
|
5
|
-
Use the vSphere MICRO BOSH and BOSH stemcells when targetting vCloud Director.
|
6
|
-
|
7
|
-
In order to target a vCloud Director instance, BOSH must be set to use
|
8
|
-
the vCloud plugin configuration as shown below. Follow the same process
|
9
|
-
as when targetting vSphere but replacing the cloud plugin configuration.
|
10
|
-
|
11
|
-
-------------------------------------------------------------
|
12
|
-
plugin: vcloud
|
13
|
-
vcds:
|
14
|
-
- url: <VCD url> (e.g. http://1.2.3.4)
|
15
|
-
user: <VCD user> (e.g. orgadmin)
|
16
|
-
password: <>
|
17
|
-
entities:
|
18
|
-
organization: <Organization name>
|
19
|
-
virtual_datacenter: <VDC name>
|
20
|
-
vapp_catalog: <Organization catalog name>
|
21
|
-
media_catalog: <Organization catalog name>
|
22
|
-
vm_metadata_key: cf-agent-env
|
23
|
-
description: <Text associated with Cloud Foundry VMs>
|
24
|
-
-------------------------------------------------------------
|
25
|
-
|
26
|
-
BOSH requires vCloud Director version 5.1 or newer.
|
data/Rakefile
DELETED
@@ -1,50 +0,0 @@
|
|
1
|
-
# Copyright (c) 2009-2012 VMware, Inc.
|
2
|
-
|
3
|
-
$:.unshift(File.expand_path("../../rake", __FILE__))
|
4
|
-
|
5
|
-
ENV["BUNDLE_GEMFILE"] ||= File.expand_path("../Gemfile", __FILE__)
|
6
|
-
|
7
|
-
require "rubygems"
|
8
|
-
require "bundler"
|
9
|
-
Bundler.setup(:default, :test)
|
10
|
-
|
11
|
-
require "rake"
|
12
|
-
begin
|
13
|
-
require "rspec/core/rake_task"
|
14
|
-
rescue LoadError
|
15
|
-
end
|
16
|
-
|
17
|
-
require "bundler_task"
|
18
|
-
require "ci_task"
|
19
|
-
|
20
|
-
gem_helper = Bundler::GemHelper.new(Dir.pwd)
|
21
|
-
|
22
|
-
desc "Build vCloud CPI gem into the pkg directory"
|
23
|
-
task "build" do
|
24
|
-
gem_helper.build_gem
|
25
|
-
end
|
26
|
-
|
27
|
-
desc "Build and install vCloud CPI into system gems"
|
28
|
-
task "install" do
|
29
|
-
Rake::Task["bundler:install"].invoke
|
30
|
-
gem_helper.install_gem
|
31
|
-
end
|
32
|
-
|
33
|
-
BundlerTask.new
|
34
|
-
|
35
|
-
if defined?(RSpec)
|
36
|
-
namespace :spec do
|
37
|
-
desc "Run Unit Tests"
|
38
|
-
rspec_task = RSpec::Core::RakeTask.new(:unit) do |t|
|
39
|
-
t.pattern = "spec/unit/**/*_spec.rb"
|
40
|
-
t.rspec_opts = %w(--format progress --colour)
|
41
|
-
end
|
42
|
-
|
43
|
-
CiTask.new do |task|
|
44
|
-
task.rspec_task = rspec_task
|
45
|
-
end
|
46
|
-
end
|
47
|
-
|
48
|
-
desc "Run tests"
|
49
|
-
task :spec => %w(spec:unit)
|
50
|
-
end
|
data/lib/cloud/vcloud/const.rb
DELETED
@@ -1,27 +0,0 @@
|
|
1
|
-
module VCloudCloud
|
2
|
-
|
3
|
-
VM_NIC_LIMIT = 10
|
4
|
-
|
5
|
-
# control options
|
6
|
-
RETRIES_DEFAULT = 5
|
7
|
-
RETRIES_UPLOAD_VAPP_FILES = 7
|
8
|
-
RETRIES_CPI = 3
|
9
|
-
DELAY = 1
|
10
|
-
TIMELIMIT_DEFAULT = 1200
|
11
|
-
TIMELIMIT_DELETE_VAPP_TEMPLATE = 1200
|
12
|
-
TIMELIMIT_DELETE_VAPP = 1200
|
13
|
-
TIMELIMIT_DELETE_MEDIA = 1200
|
14
|
-
TIMELIMIT_INSTANTIATE_VAPP_TEMPLATE = 3000
|
15
|
-
TIMELIMIT_POWER_ON = 6000
|
16
|
-
TIMELIMIT_POWER_OFF = 6000
|
17
|
-
TIMELIMIT_UNDEPLOY = 7200
|
18
|
-
TIMELIMIT_PROCESS_DESCRIPTOR_VAPP_TEMPLATE = 3000
|
19
|
-
TIMELIMIT_HTTP_REQUEST = 240
|
20
|
-
BACKOFF = 2
|
21
|
-
REST_THROTTLE_MIN = 0
|
22
|
-
REST_THROTTLE_MAX = 1
|
23
|
-
|
24
|
-
# debug option
|
25
|
-
DEBUG_DELETE_VAPP = true
|
26
|
-
|
27
|
-
end
|
data/lib/cloud/vcloud/util.rb
DELETED
@@ -1,23 +0,0 @@
|
|
1
|
-
module VCloudCloud
|
2
|
-
|
3
|
-
class Util
|
4
|
-
class << self
|
5
|
-
|
6
|
-
def retry_operation(op, attempts, backoff, &b)
|
7
|
-
attempts.times do |attempt|
|
8
|
-
begin
|
9
|
-
return b.call
|
10
|
-
rescue VCloudSdk::ApiError => e
|
11
|
-
raise e if attempt >= attempts-1
|
12
|
-
delay = backoff ** attempt
|
13
|
-
Bosh::Clouds.Config.logger.error("Retry-attempt #{attempt+1}/" +
|
14
|
-
"#{attempts} failed to #{op}, retrying in #{delay} seconds.\t#{e}")
|
15
|
-
sleep (delay)
|
16
|
-
end
|
17
|
-
end
|
18
|
-
end
|
19
|
-
|
20
|
-
end
|
21
|
-
end
|
22
|
-
|
23
|
-
end
|