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
@@ -0,0 +1,428 @@
|
|
1
|
+
module VCloudSdk
|
2
|
+
module Xml
|
3
|
+
VCLOUD_NAMESPACE = "http://www.vmware.com/vcloud/v1.5"
|
4
|
+
|
5
|
+
OVF = "http://schemas.dmtf.org/ovf/envelope/1"
|
6
|
+
|
7
|
+
RASD = "http://schemas.dmtf.org/wbem/wscim/1/cim-schema/2/" +
|
8
|
+
"CIM_ResourceAllocationSettingData"
|
9
|
+
|
10
|
+
# http://blogs.vmware.com/vapp/2009/11/virtual-hardware-in-ovf-part-1.html
|
11
|
+
HARDWARE_TYPE = {
|
12
|
+
:CPU => "3",
|
13
|
+
:MEMORY => "4",
|
14
|
+
:SCSI_CONTROLLER => "6",
|
15
|
+
:NIC => "10",
|
16
|
+
:HARD_DISK => "17"
|
17
|
+
}
|
18
|
+
|
19
|
+
RASD_TYPES = {
|
20
|
+
:RESOURCE_TYPE => "ResourceType",
|
21
|
+
:HOST_RESOURCE => "HostResource",
|
22
|
+
:INSTANCE_ID => "InstanceID",
|
23
|
+
:RESOURCE_SUB_TYPE => "ResourceSubType",
|
24
|
+
:ADDRESS_ON_PARENT => "AddressOnParent",
|
25
|
+
:ADDRESS => "Address",
|
26
|
+
:CONNECTION => "Connection",
|
27
|
+
:PARENT => "Parent"
|
28
|
+
}
|
29
|
+
|
30
|
+
RESOURCE_SUB_TYPE = {
|
31
|
+
:VMXNET3 => "VMXNET3"
|
32
|
+
}
|
33
|
+
|
34
|
+
BUS_SUB_TYPE = {
|
35
|
+
:LSILOGIC => "lsilogic"
|
36
|
+
}
|
37
|
+
|
38
|
+
IMAGE_TYPES = {
|
39
|
+
:ISO => "iso",
|
40
|
+
:FLOPPY => "floppy"
|
41
|
+
}
|
42
|
+
|
43
|
+
IP_ADDRESSING_MODE = {
|
44
|
+
:NONE => "NONE",
|
45
|
+
:MANUAL => "MANUAL",
|
46
|
+
:POOL => "POOL",
|
47
|
+
:DHCP => "DHCP"
|
48
|
+
}
|
49
|
+
|
50
|
+
FENCE_MODES = {
|
51
|
+
:BRIDGED => "bridged",
|
52
|
+
:ISOLATED => "isolated",
|
53
|
+
:NAT_ROUTED => "natRouted"
|
54
|
+
}
|
55
|
+
|
56
|
+
HOST_RESOURCE_ATTRIBUTE = {
|
57
|
+
:CAPACITY => "capacity",
|
58
|
+
:BUS_SUB_TYPE => "busSubType",
|
59
|
+
:BUS_TYPE => "busType",
|
60
|
+
:DISK => "disk"
|
61
|
+
}
|
62
|
+
|
63
|
+
TASK_STATUS = {
|
64
|
+
:QUEUED => "queued",
|
65
|
+
:RUNNING => "running",
|
66
|
+
:SUCCESS => "success",
|
67
|
+
:ERROR => "error",
|
68
|
+
:CANCELED => "canceled",
|
69
|
+
:PRE_RUNNING => "pre-running",
|
70
|
+
:ABORTED => "aborted"
|
71
|
+
}
|
72
|
+
|
73
|
+
MAX_DISK_ID = 15
|
74
|
+
|
75
|
+
MEDIA_TYPE = {
|
76
|
+
:ENTITY => "application/vnd.vmware.vcloud.entity+xml",
|
77
|
+
:ORGANIZATION => "application/vnd.vmware.vcloud.org+xml",
|
78
|
+
:ORGANIZATION_LIST => "application/vnd.vmware.vcloud.orgList+xml",
|
79
|
+
:VDC => "application/vnd.vmware.vcloud.vdc+xml",
|
80
|
+
:UPLOAD_VAPP_TEMPLATE_PARAMS =>
|
81
|
+
"application/vnd.vmware.vcloud.uploadVAppTemplateParams+xml",
|
82
|
+
:INSTANTIATE_OVF_PARAMS =>
|
83
|
+
"application/vnd.vmware.vcloud.instantiateOvfParams+xml",
|
84
|
+
:INSTANTIATE_VAPP_TEMPLATE_PARAMS =>
|
85
|
+
"application/vnd.vmware.vcloud.instantiateVAppTemplateParams+xml",
|
86
|
+
:CLONE_VAPP_PARAMS =>
|
87
|
+
"application/vnd.vmware.vcloud.cloneVAppParams+xml",
|
88
|
+
:CLONE_VAPP_TEMPLATE_PARAMS =>
|
89
|
+
"application/vnd.vmware.vcloud.cloneVAppTemplateParams+xml",
|
90
|
+
:CLONE_MEDIA_PARAMS =>
|
91
|
+
"application/vnd.vmware.vcloud.cloneMediaParams+xml",
|
92
|
+
:DEPLOY_VAPP_PARAMS =>
|
93
|
+
"application/vnd.vmware.vcloud.deployVAppParams+xml",
|
94
|
+
:UNDEPLOY_VAPP_PARAMS =>
|
95
|
+
"application/vnd.vmware.vcloud.undeployVAppParams+xml",
|
96
|
+
:UNDEPLOY_VAPP_PARAMS_EXTENDED =>
|
97
|
+
"application/vnd.vmware.vcloud.undeployVAppParamsExtended+xml",
|
98
|
+
:CAPTURE_VAPP_PARAMS =>
|
99
|
+
"application/vnd.vmware.vcloud.captureVAppParams+xml",
|
100
|
+
:COMPOSE_VAPP_PARAMS =>
|
101
|
+
"application/vnd.vmware.vcloud.composeVAppParams+xml",
|
102
|
+
:VAPP_TEMPLATE => "application/vnd.vmware.vcloud.vAppTemplate+xml",
|
103
|
+
:VAPP => "application/vnd.vmware.vcloud.vApp+xml",
|
104
|
+
:VM => "application/vnd.vmware.vcloud.vm+xml",
|
105
|
+
:VMS => "application/vnd.vmware.vcloud.vms+xml",
|
106
|
+
:MEDIA => "application/vnd.vmware.vcloud.media+xml",
|
107
|
+
:VAPP_NETWORK => "application/vnd.vmware.vcloud.vAppNetwork+xml",
|
108
|
+
:ORG_NETWORK => "application/vnd.vmware.vcloud.orgNetwork+xml",
|
109
|
+
:NETWORK => "application/vnd.vmware.vcloud.network+xml",
|
110
|
+
:TASK => "application/vnd.vmware.vcloud.task+xml",
|
111
|
+
:TASKS_LIST => "application/vnd.vmware.vcloud.tasksList+xml",
|
112
|
+
:CATALOG => "application/vnd.vmware.vcloud.catalog+xml",
|
113
|
+
:CATALOG_ITEM => "application/vnd.vmware.vcloud.catalogItem+xml",
|
114
|
+
:ERROR => "application/vnd.vmware.vcloud.error+xml",
|
115
|
+
:SCREEN_TICKET => "application/vnd.vmware.vcloud.screenTicket+xml",
|
116
|
+
:CONTROL_ACCESS => "application/vnd.vmware.vcloud.controlAccess+xml",
|
117
|
+
:MEDIA_INSERT_EJECT_PARAMS =>
|
118
|
+
"application/vnd.vmware.vcloud.mediaInsertOrEjectParams+xml",
|
119
|
+
:QUESTION => "application/vnd.vmware.vcloud.vmPendingQuestion+xml",
|
120
|
+
:ANSWER => "application/vnd.vmware.vcloud.vmPendingAnswer+xml",
|
121
|
+
:RECOMPOSE_VAPP_PARAMS =>
|
122
|
+
"application/vnd.vmware.vcloud.recomposeVAppParams+xml",
|
123
|
+
:RELOCATE_VM_PARAMS =>
|
124
|
+
"application/vnd.vmware.vcloud.relocateVmParams+xml",
|
125
|
+
:OWNER => "application/vnd.vmware.vcloud.owner+xml",
|
126
|
+
:REFERENCES => "application/vnd.vmware.vcloud.query.references+xml",
|
127
|
+
:RECORDS => "application/vnd.vmware.vcloud.query.records+xml",
|
128
|
+
:IDRECORDS => "application/vnd.vmware.vcloud.query.idrecords+xml",
|
129
|
+
:QUERY_LIST => "application/vnd.vmware.vcloud.query.queryList+xml",
|
130
|
+
:SESSION => "application/vnd.vmware.vcloud.session+xml",
|
131
|
+
:SHADOW_VMS => "application/vnd.vmware.vcloud.shadowVms+xml",
|
132
|
+
:METADATA => "application/vnd.vmware.vcloud.metadata+xml",
|
133
|
+
:METADATA_ITEM_VALUE =>
|
134
|
+
"application/vnd.vmware.vcloud.metadata.value+xml",
|
135
|
+
:ENTITY_REFERENCE =>
|
136
|
+
"application/vnd.vmware.vcloud.entity.reference+xml",
|
137
|
+
:DISK => "application/vnd.vmware.vcloud.disk+xml",
|
138
|
+
:DISK_CREATE_PARAMS =>
|
139
|
+
"application/vnd.vmware.vcloud.diskCreateParams+xml",
|
140
|
+
:DISK_ATTACH_DETACH_PARAMS =>
|
141
|
+
"application/vnd.vmware.vcloud.diskAttachOrDetachParams+xml",
|
142
|
+
:VDC_STORAGE_CLASS =>
|
143
|
+
"application/vnd.vmware.vcloud.vdcStorageClass+xml",
|
144
|
+
:VDC_STORAGE_PROFILE =>
|
145
|
+
"application/vnd.vmware.vcloud.vdcStorageProfile+xml",
|
146
|
+
:ALLOCATED_NETWORK_IPS =>
|
147
|
+
"application/vnd.vmware.vcloud.allocatedNetworkAddress+xml",
|
148
|
+
:LEASE_SETTINGS_SECTION =>
|
149
|
+
"application/vnd.vmware.vcloud.leaseSettingsSection+xml",
|
150
|
+
:STARTUP_SECTION =>
|
151
|
+
"application/vnd.vmware.vcloud.startupSection+xml",
|
152
|
+
:NETWORK_SECTION =>
|
153
|
+
"application/vnd.vmware.vcloud.networkSection+xml",
|
154
|
+
:NETWORK_CONFIG_SECTION =>
|
155
|
+
"application/vnd.vmware.vcloud.networkConfigSection+xml",
|
156
|
+
:PRODUCT_SECTIONS =>
|
157
|
+
"application/vnd.vmware.vcloud.productSections+xml",
|
158
|
+
:NETWORK_CONNECTION_SECTION =>
|
159
|
+
"application/vnd.vmware.vcloud.networkConnectionSection+xml",
|
160
|
+
:OPERATING_SYSTEM_SECTION =>
|
161
|
+
"application/vnd.vmware.vcloud.operatingSystemSection+xml",
|
162
|
+
:VIRTUAL_HARDWARE_SECTION =>
|
163
|
+
"application/vnd.vmware.vcloud.virtualHardwareSection+xml",
|
164
|
+
:RUNTIME_INFO_SECTION =>
|
165
|
+
"application/vnd.vmware.vcloud.runtimeInfoSection+xml",
|
166
|
+
:GUEST_CUSTOMIZATION_SECTION =>
|
167
|
+
"application/vnd.vmware.vcloud.guestCustomizationSection+xml",
|
168
|
+
:CUSTOMIZATION_SECTION =>
|
169
|
+
"application/vnd.vmware.vcloud.customizationSection+xml",
|
170
|
+
:RASD_ITEM => "application/vnd.vmware.vcloud.rasdItem+xml",
|
171
|
+
:RASD_ITEMS_LIST => "application/vnd.vmware.vcloud.rasdItemsList+xml",
|
172
|
+
:OVF => "text/xml",
|
173
|
+
:APPLICATION_XML => "application/*+xml"
|
174
|
+
}
|
175
|
+
|
176
|
+
ADMIN_MEDIA_TYPE = {
|
177
|
+
:ADMIN_MEDIA_TYPE_PREFIX => "application/vnd.vmware.admin.",
|
178
|
+
:VCLOUD => "application/vnd.vmware.admin.vcloud+xml",
|
179
|
+
:PROVIDER_VDC => "application/vnd.vmware.admin.providervdc+xml",
|
180
|
+
:ADMIN_VDC => "application/vnd.vmware.admin.vdc+xml",
|
181
|
+
:VDC => "application/vnd.vmware.vcloud.vdc+xml",
|
182
|
+
:VAPP_TEMPLATE => "application/vnd.vmware.vcloud.vAppTemplate+xml",
|
183
|
+
:VAPP => "application/vnd.vmware.vcloud.vApp+xml",
|
184
|
+
:VM => "application/vnd.vmware.vcloud.vm+xml",
|
185
|
+
:MEDIA => "application/vnd.vmware.vcloud.media+xml",
|
186
|
+
:SYSTEM_ADMIN_ORGANIZATION =>
|
187
|
+
"application/vnd.vmware.admin.systemOrganization+xml",
|
188
|
+
:ADMIN_ORGANIZATION => "application/vnd.vmware.admin.organization+xml",
|
189
|
+
:ORGANIZATION => "application/vnd.vmware.vcloud.org+xml",
|
190
|
+
:TASKS_LIST => "application/vnd.vmware.vcloud.tasksList+xml",
|
191
|
+
:USER => "application/vnd.vmware.admin.user+xml",
|
192
|
+
:GROUP => "application/vnd.vmware.admin.group+xml",
|
193
|
+
:ROLE => "application/vnd.vmware.admin.role+xml",
|
194
|
+
:RIGHT => "application/vnd.vmware.admin.right+xml",
|
195
|
+
:ADMIN_CATALOG => "application/vnd.vmware.admin.catalog+xml",
|
196
|
+
:CATALOG => "application/vnd.vmware.vcloud.catalog+xml",
|
197
|
+
:ADMIN_CATALOG_ITEM => "application/vnd.vmware.admin.catalogItem+xml",
|
198
|
+
:CATALOG_ITEM => "application/vnd.vmware.vcloud.catalogItem+xml",
|
199
|
+
:ADMIN_NETWORK => "application/vnd.vmware.admin.network+xml",
|
200
|
+
:NETWORK => "application/vnd.vmware.vcloud.network+xml",
|
201
|
+
:NETWORK_POOL => "application/vnd.vmware.admin.networkPool+xml",
|
202
|
+
:CATALOG_PUBLISH =>
|
203
|
+
"application/vnd.vmware.admin.publishCatalogParams+xml",
|
204
|
+
:OWNER => "application/vnd.vmware.vcloud.owner+xml",
|
205
|
+
:ORG_SETTINGS => "application/vnd.vmware.admin.orgSettings+xml",
|
206
|
+
:VAPP_TEMPLATE_LEASE_SETTINGS =>
|
207
|
+
"application/vnd.vmware.admin.vAppTemplateLeaseSettings+xml",
|
208
|
+
:VAPP_LEASE_SETTINGS =>
|
209
|
+
"application/vnd.vmware.admin.vAppLeaseSettings+xml",
|
210
|
+
:EMAIL_SETTINGS =>
|
211
|
+
"application/vnd.vmware.admin.organizationEmailSettings+xml",
|
212
|
+
:GENERAL_SETTINGS =>
|
213
|
+
"application/vnd.vmware.admin.organizationGeneralSettings+xml",
|
214
|
+
:ORGANIZATION_PASSWORD_POLICY_SETTINGS =>
|
215
|
+
"application/vnd.vmware.admin.organizationPasswordPolicySettings+xml",
|
216
|
+
}
|
217
|
+
|
218
|
+
XML_TYPE = {
|
219
|
+
:ADMINALLOCATEDEXTIPRECORD => "AdminAllocatedExtIpRecord",
|
220
|
+
:ADMINCATALOG => "AdminCatalog",
|
221
|
+
:ADMINCATALOGITEMRECORD => "AdminCatalogItemRecord",
|
222
|
+
:ADMINCATALOGRECORD => "AdminCatalogRecord",
|
223
|
+
:ADMINGROUPRECORD => "AdminGroupRecord",
|
224
|
+
:ADMINMEDIARECORD => "AdminMediaRecord",
|
225
|
+
:ADMINORG => "AdminOrg",
|
226
|
+
:ADMINORGNETWORKRECORD => "AdminOrgNetworkRecord",
|
227
|
+
:ADMINSHADOWVMRECORD => "AdminShadowVmRecord",
|
228
|
+
:ADMINTASKRECORD => "AdminTaskRecord",
|
229
|
+
:ADMINUSERRECORD => "AdminUserRecord",
|
230
|
+
:ADMINVAPPNETWORKRECORD => "AdminVAppNetworkRecord",
|
231
|
+
:ADMINVAPPRECORD => "AdminVAppRecord",
|
232
|
+
:ADMINVAPPREFERENCE => "AdminVAppReference",
|
233
|
+
:ADMINVAPPREFERENCES => "AdminVAppReferences",
|
234
|
+
:ADMINVAPPTEMPLATERECORD => "AdminVAppTemplateRecord",
|
235
|
+
:ADMINVDC => "AdminVdc",
|
236
|
+
:ADMINVDCRECORD => "AdminVdcRecord",
|
237
|
+
:ADMINVDCREFERENCE => "AdminVdcReference",
|
238
|
+
:ADMINVDCREFERENCES => "AdminVdcReferences",
|
239
|
+
:ADMINVMRECORD => "AdminVmRecord",
|
240
|
+
:ALLEULASACCEPTED => "AllEULAsAccepted",
|
241
|
+
:ALLOCATEDEXTIPRECORD => "AllocatedExtIpRecord",
|
242
|
+
:BLOCKINGTASKRECORD => "BlockingTaskRecord",
|
243
|
+
:BLOCKINGTASKREFERENCE => "BlockingTaskReference",
|
244
|
+
:BLOCKINGTASKREFERENCES => "BlockingTaskReferences",
|
245
|
+
:CAPTUREVAPPPARAMS => "CaptureVAppParams",
|
246
|
+
:CATALOG => "Catalog",
|
247
|
+
:CATALOGITEM => "CatalogItem",
|
248
|
+
:CATALOGITEMRECORD => "CatalogItemRecord",
|
249
|
+
:CATALOGITEMREFERENCE => "CatalogItemReference",
|
250
|
+
:CATALOGITEMREFERENCES => "CatalogItemReferences",
|
251
|
+
:CATALOGRECORD => "CatalogRecord",
|
252
|
+
:CATALOGREFERENCE => "CatalogReference",
|
253
|
+
:CATALOGREFERENCES => "CatalogReferences",
|
254
|
+
:CELLRECORD => "CellRecord",
|
255
|
+
:CLONEMEDIAPARAMS => "CloneMediaParams",
|
256
|
+
:CLONEVAPPPARAMS => "CloneVAppParams",
|
257
|
+
:CLONEVAPPTEMPLATEPARAMS => "CloneVAppTemplateParams",
|
258
|
+
:COMPOSEVAPPPARAMS => "ComposeVAppParams",
|
259
|
+
:CONTROLACCESSPARAMS => "ControlAccessParams",
|
260
|
+
:CUSTOMIZATIONSECTION => "CustomizationSection",
|
261
|
+
:DATASTOREPROVIDERVDCRELATIONRECORD =>
|
262
|
+
"DatastoreProviderVdcRelationRecord",
|
263
|
+
:DATASTORERECORD => "DatastoreRecord",
|
264
|
+
:DATASTOREREFERENCE => "DatastoreReference",
|
265
|
+
:DATASTOREREFERENCES => "DatastoreReferences",
|
266
|
+
:DEPLOYVAPPPARAMS => "DeployVAppParams",
|
267
|
+
:DHCPSERVICE => "DhcpService",
|
268
|
+
:DVSWITCHRECORD => "DvSwitchRecord",
|
269
|
+
:ENTITY => "Entity",
|
270
|
+
:ERROR => "Error",
|
271
|
+
:EVENTRECORD => "EventRecord",
|
272
|
+
:EXTERNALNETWORK => "ExternalNetwork",
|
273
|
+
:FILE => "File",
|
274
|
+
:FIREWALLSERVICE => "FirewallService",
|
275
|
+
:GENERALORGSETTINGS => "GeneralOrgSettings",
|
276
|
+
:GROUP => "Group",
|
277
|
+
:GROUPRECORD => "GroupRecord",
|
278
|
+
:GROUPREFERENCE => "GroupReference",
|
279
|
+
:GROUPREFERENCES => "GroupReferences",
|
280
|
+
:GUESTCUSTOMIZATIONSECTION => "GuestCustomizationSection",
|
281
|
+
:HOSTRECORD => "HostRecord",
|
282
|
+
:HOSTREFERENCE => "HostReference",
|
283
|
+
:HOSTREFERENCES => "HostReferences",
|
284
|
+
:INSTANTIATEOVFPARAMS => "InstantiateOvfParams",
|
285
|
+
:INSTANTIATEVAPPTEMPLATEPARAMS => "InstantiateVAppTemplateParams",
|
286
|
+
:IPSECVPNLOCALPEER => "IpsecVpnLocalPeer",
|
287
|
+
:IPSECVPNPEER => "IpsecVpnPeer",
|
288
|
+
:IPSECVPNREMOTEPEER => "IpsecVpnRemotePeer",
|
289
|
+
:IPSECVPNSERVICE => "IpsecVpnService",
|
290
|
+
:IPSECVPNTHIRDPARTYPEER => "IpsecVpnThirdPartyPeer",
|
291
|
+
:ITEM => "Item",
|
292
|
+
:LEASESETTINGSSECTION => "LeaseSettingsSection",
|
293
|
+
:LINK => "Link",
|
294
|
+
:MEDIA => "Media",
|
295
|
+
:MEDIAINSERTOREJECTPARAMS => "MediaInsertOrEjectParams",
|
296
|
+
:MEDIARECORD => "MediaRecord",
|
297
|
+
:MEDIAREFERENCE => "MediaReference",
|
298
|
+
:MEDIAREFERENCES => "MediaReferences",
|
299
|
+
:METADATA => "Metadata",
|
300
|
+
:METADATAVALUE => "MetadataValue",
|
301
|
+
:NATSERVICE => "NatService",
|
302
|
+
:NETWORKASSIGNMENT => "NetworkAssignment",
|
303
|
+
:NETWORKCONFIGSECTION => "NetworkConfigSection",
|
304
|
+
:NETWORKCONNECTION => "NetworkConnection",
|
305
|
+
:NETWORKCONNECTIONSECTION => "NetworkConnectionSection",
|
306
|
+
:NETWORKPOOLRECORD => "NetworkPoolRecord",
|
307
|
+
:NETWORKPOOLREFERENCE => "NetworkPoolReference",
|
308
|
+
:NETWORKPOOLREFERENCES => "NetworkPoolReferences",
|
309
|
+
:NETWORKRECORD => "NetworkRecord",
|
310
|
+
:NETWORKREFERENCE => "NetworkReference",
|
311
|
+
:NETWORKREFERENCES => "NetworkReferences",
|
312
|
+
:NETWORKSERVICE => "NetworkService",
|
313
|
+
:ORG => "Org",
|
314
|
+
:ORGEMAILSETTINGS => "OrgEmailSettings",
|
315
|
+
:ORGLIST => "OrgList",
|
316
|
+
:ORGNETWORK => "OrgNetwork",
|
317
|
+
:ORGNETWORKRECORD => "OrgNetworkRecord",
|
318
|
+
:ORGNETWORKREFERENCE => "OrgNetworkReference",
|
319
|
+
:ORGNETWORKREFERENCES => "OrgNetworkReferences",
|
320
|
+
:ORGPASSWORDPOLICYSETTINGS => "OrgPasswordPolicySettings",
|
321
|
+
:ORGRECORD => "OrgRecord",
|
322
|
+
:ORGREFERENCE => "OrgReference",
|
323
|
+
:ORGREFERENCES => "OrgReferences",
|
324
|
+
:ORGSETTINGS => "OrgSettings",
|
325
|
+
:ORGVAPPTEMPLATELEASESETTINGS => "OrgVAppTemplateLeaseSettings",
|
326
|
+
:ORGVDCRECORD => "OrgVdcRecord",
|
327
|
+
:ORGVDCREFERENCE => "OrgVdcReference",
|
328
|
+
:ORGVDCREFERENCES => "OrgVdcReferences",
|
329
|
+
:ORGVDCRESOURCEPOOLRELATIONRECORD => "OrgVdcResourcePoolRelationRecord",
|
330
|
+
:OWNER => "Owner",
|
331
|
+
:PORTGROUPRECORD => "PortgroupRecord",
|
332
|
+
:PRODUCTSECTIONLIST => "ProductSectionList",
|
333
|
+
:PROVIDERVDC => "ProviderVdc",
|
334
|
+
:PROVIDERVDCRESOURCEPOOLRELATIONRECORD =>
|
335
|
+
"ProviderVdcResourcePoolRelationRecord",
|
336
|
+
:PUBLISHCATALOGPARAMS => "PublishCatalogParams",
|
337
|
+
:QUERYLIST => "QueryList",
|
338
|
+
:QUERYRESULTRECORDS => "QueryResultRecords",
|
339
|
+
:RASDITEMSLIST => "RasdItemsList",
|
340
|
+
:RECOMPOSEVAPPPARAMS => "RecomposeVAppParams",
|
341
|
+
:RECORD => "Record",
|
342
|
+
:REFERENCE => "Reference",
|
343
|
+
:REFERENCES => "References",
|
344
|
+
:RELOCATEPARAMS => "RelocateParams",
|
345
|
+
:RESOURCEENTITY => "ResourceEntity",
|
346
|
+
:RESOURCEPOOLRECORD => "ResourcePoolRecord",
|
347
|
+
:RIGHT => "Right",
|
348
|
+
:RIGHTRECORD => "RightRecord",
|
349
|
+
:RIGHTREFERENCE => "RightReference",
|
350
|
+
:RIGHTREFERENCES => "RightReferences",
|
351
|
+
:ROLE => "Role",
|
352
|
+
:ROLERECORD => "RoleRecord",
|
353
|
+
:ROLEREFERENCE => "RoleReference",
|
354
|
+
:ROLEREFERENCES => "RoleReferences",
|
355
|
+
:RUNTIMEINFOSECTION => "RuntimeInfoSection",
|
356
|
+
:SCREENTICKET => "ScreenTicket",
|
357
|
+
:SESSION => "Session",
|
358
|
+
:SHADOWVMREFERENCES => "ShadowVMReferences",
|
359
|
+
:STATICROUTINGSERVICE => "StaticRoutingService",
|
360
|
+
:STRANDEDUSERRECORD => "StrandedUserRecord",
|
361
|
+
:TASK => "Task",
|
362
|
+
:TASKRECORD => "TaskRecord",
|
363
|
+
:TASKREFERENCE => "TaskReference",
|
364
|
+
:TASKREFERENCES => "TaskReferences",
|
365
|
+
:TASKSLIST => "TasksList",
|
366
|
+
:UNDEPLOYVAPPPARAMS => "UndeployVAppParams",
|
367
|
+
:UPLOADVAPPTEMPLATEPARAMS => "UploadVAppTemplateParams",
|
368
|
+
:USER => "User",
|
369
|
+
:USERRECORD => "UserRecord",
|
370
|
+
:USERREFERENCE => "UserReference",
|
371
|
+
:USERREFERENCES => "UserReferences",
|
372
|
+
:VAPP => "VApp",
|
373
|
+
:VAPPLEASESETTINGS => "VAppLeaseSettings",
|
374
|
+
:VAPPNETWORK => "VAppNetwork",
|
375
|
+
:VAPPNETWORKRECORD => "VAppNetworkRecord",
|
376
|
+
:VAPPNETWORKREFERENCE => "VAppNetworkReference",
|
377
|
+
:VAPPNETWORKREFERENCES => "VAppNetworkReferences",
|
378
|
+
:VAPPORGNETWORKRELATIONRECORD => "VAppOrgNetworkRelationRecord",
|
379
|
+
:VAPPORGNETWORKRELATIONREFERENCE => "VAppOrgNetworkRelationReference",
|
380
|
+
:VAPPORGNETWORKRELATIONREFERENCES => "VAppOrgNetworkRelationReferences",
|
381
|
+
:VAPPRECORD => "VAppRecord",
|
382
|
+
:VAPPREFERENCE => "VAppReference",
|
383
|
+
:VAPPREFERENCES => "VAppReferences",
|
384
|
+
:VAPPTEMPLATE => "VAppTemplate",
|
385
|
+
:VAPPTEMPLATERECORD => "VAppTemplateRecord",
|
386
|
+
:VAPPTEMPLATEREFERENCE => "VAppTemplateReference",
|
387
|
+
:VAPPTEMPLATEREFERENCES => "VAppTemplateReferences",
|
388
|
+
:VCLOUD => "VCloud",
|
389
|
+
:VDC => "Vdc",
|
390
|
+
:VDCREFERENCES => "VdcReferences",
|
391
|
+
:VIRTUALCENTERRECORD => "VirtualCenterRecord",
|
392
|
+
:VIRTUALCENTERREFERENCE => "VirtualCenterReference",
|
393
|
+
:VIRTUALCENTERREFERENCES => "VirtualCenterReferences",
|
394
|
+
:VM => "Vm",
|
395
|
+
:VMPENDINGQUESTION => "VmPendingQuestion",
|
396
|
+
:VMQUESTIONANSWER => "VmQuestionAnswer",
|
397
|
+
:VMRECORD => "VMRecord",
|
398
|
+
:VMREFERENCE => "VMReference",
|
399
|
+
:VMREFERENCES => "VMReferences",
|
400
|
+
:VMWPROVIDERVDCRECORD => "VMWProviderVdcRecord",
|
401
|
+
:VMWPROVIDERVDCREFERENCE => "VMWProviderVdcReference",
|
402
|
+
:VMWPROVIDERVDCREFERENCES => "VMWProviderVdcReferences"
|
403
|
+
}
|
404
|
+
|
405
|
+
RESOURCE_ENTITY_STATUS = {
|
406
|
+
:FAILED_CREATION => -1,
|
407
|
+
:UNRESOLVED => 0,
|
408
|
+
:RESOLVED => 1,
|
409
|
+
:DEPLOYED => 2,
|
410
|
+
:SUSPENDED => 3,
|
411
|
+
:POWERED_ON => 4,
|
412
|
+
:WAITING_FOR_INPUT => 5,
|
413
|
+
:UNKNOWN => 6,
|
414
|
+
:UNRECOGNIZED => 7,
|
415
|
+
:POWERED_OFF => 8,
|
416
|
+
:INCONSISTENT_STATE => 9,
|
417
|
+
:MIXED => 10,
|
418
|
+
:DESCRIPTOR_PENDING => 11,
|
419
|
+
:COPYING_CONTENTS => 12,
|
420
|
+
:DISK_CONTENTS_PENDING => 13,
|
421
|
+
:QUARANTINED => 14,
|
422
|
+
:QUARANTINE_EXPIRED => 15,
|
423
|
+
:REJECTED => 16,
|
424
|
+
:TRANSFER_TIMEOUT => 17
|
425
|
+
}
|
426
|
+
|
427
|
+
end
|
428
|
+
end
|