Fog::Compute::VcloudDirector::Mock
F

Very high overall complexity: 2499

module Fog
  module Compute
    class VcloudDirector
      class Real
        # List all supported versions.
Found in Fog::Compute::VcloudDirector::Mock - About 3 wks to fix

When classes take on too many responsibilities, they grow. A large number of instance variables or methods can make a class hard to understand. Large classes tend to have lower cohesion and higher churn.

Often large classes have methods that do not operate on all of the class state. Identifying the groups of data that are used together can point to seams to split out additional collaborator classes or value objects.

Another trick is to look for repeated prefixes or suffixes in method and variable names, or repeated parameter names, and use them to guide extractions.

Refactorings

Further Reading

Very complex method in #fetch_items

                  {:MediaType=>"application/vnd.vmware.vcloud.tasksList+xml",
                   :ComplexTypeName=>"TasksListType",
                   :SchemaLocation=>
                    "http://#{@host}#{@path}/v1.5/schema/master.xsd"},
                  {:MediaType=>"application/vnd.vmware.admin.amqpSettingsTest+xml",
Found in Fog::Compute::VcloudDirector::Mock - About 5 days to fix

Long or complex methods can make code harder to understand. In most circumstances, methods are best as a small chunk of code (the "how") with a clear, understandable name (the "what"). Long methods can also lead to duplication, as it's harder to reuse logic that is tightly coupled to surrounding code.

Refactorings

Read More

Very complex method in #all_types

                   :ComplexTypeName=>"VimServerType",
                   :SchemaLocation=>
                    "http://#{@host}#{@path}/v1.5/schema/vmwextensions.xsd"},
                  {:MediaType=>"application/vnd.vmware.vcloud.leaseSettingsSection+xml",
                   :ComplexTypeName=>"LeaseSettingsSectionType",
Found in Fog::Compute::VcloudDirector::Mock - About 1 day to fix

Long or complex methods can make code harder to understand. In most circumstances, methods are best as a small chunk of code (the "how") with a clear, understandable name (the "what"). Long methods can also lead to duplication, as it's harder to reuse logic that is tightly coupled to surrounding code.

Refactorings

Read More

Very complex method in #get_vdc

                :LoginUrl=>make_href("sessions"),
                :MediaTypeMapping=>
                 [{:MediaType=>
                    "application/vnd.vmware.vcloud.instantiateVAppTemplateParams+xml",
                   :ComplexTypeName=>"InstantiateVAppTemplateParamsType",
Found in Fog::Compute::VcloudDirector::Mock - About 1 day to fix

Long or complex methods can make code harder to understand. In most circumstances, methods are best as a small chunk of code (the "how") with a clear, understandable name (the "what"). Long methods can also lead to duplication, as it's harder to reuse logic that is tightly coupled to surrounding code.

Refactorings

Read More

Very complex method in #post_create_org_vdc_network

                  {:MediaType=>"application/vnd.vmware.admin.host+xml",
                   :ComplexTypeName=>"HostType",
                   :SchemaLocation=>
                    "http://#{@host}#{@path}/v1.5/schema/vmwextensions.xsd"},
                  {:MediaType=>"application/vnd.vmware.vcloud.catalogItem+xml",
Found in Fog::Compute::VcloudDirector::Mock - About 1 day to fix

Long or complex methods can make code harder to understand. In most circumstances, methods are best as a small chunk of code (the "how") with a clear, understandable name (the "what"). Long methods can also lead to duplication, as it's harder to reuse logic that is tightly coupled to surrounding code.

Refactorings

Read More

Very complex method in #put_network

                  {:MediaType=>"application/vnd.vmware.admin.host+xml",
                   :ComplexTypeName=>"HostType",
                   :SchemaLocation=>
                    "http://#{@host}#{@path}/v1.5/schema/vmwextensions.xsd"},
                  {:MediaType=>"application/vnd.vmware.vcloud.catalogItem+xml",
Found in Fog::Compute::VcloudDirector::Mock - About 1 day to fix

Long or complex methods can make code harder to understand. In most circumstances, methods are best as a small chunk of code (the "how") with a clear, understandable name (the "what"). Long methods can also lead to duplication, as it's harder to reuse logic that is tightly coupled to surrounding code.

Refactorings

Read More

Complex method in #post_reconfigure_vm

                    "http://#{@host}#{@path}/v1.5/schema/master.xsd"},
                  {:MediaType=>"application/vnd.vmware.admin.vdc+xml",
                   :ComplexTypeName=>"AdminVdcType",
                   :SchemaLocation=>
                    "http://#{@host}#{@path}/v1.5/schema/master.xsd"},
Found in Fog::Compute::VcloudDirector::Mock - About 6 hrs to fix

Long or complex methods can make code harder to understand. In most circumstances, methods are best as a small chunk of code (the "how") with a clear, understandable name (the "what"). Long methods can also lead to duplication, as it's harder to reuse logic that is tightly coupled to surrounding code.

Refactorings

Read More

Complex method in #media_body

                   :ComplexTypeName=>"RelocateParamsType",
                   :SchemaLocation=>
                    "http://#{@host}#{@path}/v1.5/schema/master.xsd"},
                  {:MediaType=>"application/vnd.vmware.vcloud.org+xml",
                   :ComplexTypeName=>"OrgType",
Found in Fog::Compute::VcloudDirector::Mock - About 6 hrs to fix

Long or complex methods can make code harder to understand. In most circumstances, methods are best as a small chunk of code (the "how") with a clear, understandable name (the "what"). Long methods can also lead to duplication, as it's harder to reuse logic that is tightly coupled to surrounding code.

Refactorings

Read More

Complex method in #instantiate_vapp_template

                   :SchemaLocation=>
                    "http://#{@host}#{@path}/v1.5/schema/vmwextensions.xsd"},
                  {:MediaType=>"application/vnd.vmware.vcloud.catalog+xml",
                   :ComplexTypeName=>"CatalogType",
                   :SchemaLocation=>
Found in Fog::Compute::VcloudDirector::Mock - About 6 hrs to fix

Long or complex methods can make code harder to understand. In most circumstances, methods are best as a small chunk of code (the "how") with a clear, understandable name (the "what"). Long methods can also lead to duplication, as it's harder to reuse logic that is tightly coupled to surrounding code.

Refactorings

Read More

Complex method in #get_organization

             :VersionInfo=>
              [{:Version=>"1.5",
                :LoginUrl=>make_href("sessions"),
                :MediaTypeMapping=>
                 [{:MediaType=>
Found in Fog::Compute::VcloudDirector::Mock - About 5 hrs to fix

Long or complex methods can make code harder to understand. In most circumstances, methods are best as a small chunk of code (the "how") with a clear, understandable name (the "what"). Long methods can also lead to duplication, as it's harder to reuse logic that is tightly coupled to surrounding code.

Refactorings

Read More

Complex method in #task_body

                  {:MediaType=>"application/vnd.vmware.vcloud.undeployVAppParams+xml",
                   :ComplexTypeName=>"UndeployVAppParamsType",
                   :SchemaLocation=>
                    "http://#{@host}#{@path}/v1.5/schema/master.xsd"},
                  {:MediaType=>"application/vnd.vmware.admin.vdcReferences+xml",
Found in Fog::Compute::VcloudDirector::Mock - About 5 hrs to fix

Long or complex methods can make code harder to understand. In most circumstances, methods are best as a small chunk of code (the "how") with a clear, understandable name (the "what"). Long methods can also lead to duplication, as it's harder to reuse logic that is tightly coupled to surrounding code.

Refactorings

Read More

Complex method in #post_upload_media

                   :SchemaLocation=>
                    "http://#{@host}#{@path}/v1.5/schema/master.xsd"},
                  {:MediaType=>
                    "application/vnd.vmware.admin.vmwExternalNetworkReferences+xml",
                   :ComplexTypeName=>"VMWExternalNetworkReferencesType",
Found in Fog::Compute::VcloudDirector::Mock - About 5 hrs to fix

Long or complex methods can make code harder to understand. In most circumstances, methods are best as a small chunk of code (the "how") with a clear, understandable name (the "what"). Long methods can also lead to duplication, as it's harder to reuse logic that is tightly coupled to surrounding code.

Refactorings

Read More

Complex method in #get_edge_gateway

                  {:MediaType=>"application/vnd.vmware.vcloud.org+xml",
                   :ComplexTypeName=>"OrgType",
                   :SchemaLocation=>
                    "http://#{@host}#{@path}/v1.5/schema/master.xsd"},
                  {:MediaType=>
Found in Fog::Compute::VcloudDirector::Mock - About 5 hrs to fix

Long or complex methods can make code harder to understand. In most circumstances, methods are best as a small chunk of code (the "how") with a clear, understandable name (the "what"). Long methods can also lead to duplication, as it's harder to reuse logic that is tightly coupled to surrounding code.

Refactorings

Read More

Complex method in #data

                   :ComplexTypeName=>"OrgLdapSettingsType",
                   :SchemaLocation=>
                    "http://#{@host}#{@path}/v1.5/schema/master.xsd"},
                  {:MediaType=>
                    "application/vnd.vmware.vcloud.networkConnectionSection+xml",
Found in Fog::Compute::VcloudDirector::Mock - About 5 hrs to fix

Long or complex methods can make code harder to understand. In most circumstances, methods are best as a small chunk of code (the "how") with a clear, understandable name (the "what"). Long methods can also lead to duplication, as it's harder to reuse logic that is tightly coupled to surrounding code.

Refactorings

Read More

Complex method in #disk_body

                   :SchemaLocation=>
                    "http://#{@host}#{@path}/v1.5/schema/master.xsd"},
                  {:MediaType=>"application/vnd.vmware.admin.host+xml",
                   :ComplexTypeName=>"HostType",
                   :SchemaLocation=>
Found in Fog::Compute::VcloudDirector::Mock - About 4 hrs to fix

Long or complex methods can make code harder to understand. In most circumstances, methods are best as a small chunk of code (the "how") with a clear, understandable name (the "what"). Long methods can also lead to duplication, as it's harder to reuse logic that is tightly coupled to surrounding code.

Refactorings

Read More

Complex method in #post_upload_disk

                   :SchemaLocation=>
                    "http://#{@host}#{@path}/v1.5/schema/master.xsd"},
                  {:MediaType=>"application/vnd.vmware.admin.vdc+xml",
                   :ComplexTypeName=>"AdminVdcType",
                   :SchemaLocation=>
Found in Fog::Compute::VcloudDirector::Mock - About 4 hrs to fix

Long or complex methods can make code harder to understand. In most circumstances, methods are best as a small chunk of code (the "how") with a clear, understandable name (the "what"). Long methods can also lead to duplication, as it's harder to reuse logic that is tightly coupled to surrounding code.

Refactorings

Read More

Complex method in #get_vms_in_lease_from_query

                  {:MediaType=>
                    "application/vnd.vmware.admin.importVmIntoExistingVAppParams+xml",
                   :ComplexTypeName=>"ImportVmIntoExistingVAppParamsType",
                   :SchemaLocation=>
                    "http://#{@host}#{@path}/v1.5/schema/vmwextensions.xsd"},
Found in Fog::Compute::VcloudDirector::Mock - About 3 hrs to fix

Long or complex methods can make code harder to understand. In most circumstances, methods are best as a small chunk of code (the "how") with a clear, understandable name (the "what"). Long methods can also lead to duplication, as it's harder to reuse logic that is tightly coupled to surrounding code.

Refactorings

Read More

Complex method in #post_clone_media

                    "http://#{@host}#{@path}/v1.5/schema/master.xsd"},
                  {:MediaType=>"application/vnd.vmware.vcloud.org+xml",
                   :ComplexTypeName=>"OrgType",
                   :SchemaLocation=>
                    "http://#{@host}#{@path}/v1.5/schema/master.xsd"},
Found in Fog::Compute::VcloudDirector::Mock - About 3 hrs to fix

Long or complex methods can make code harder to understand. In most circumstances, methods are best as a small chunk of code (the "how") with a clear, understandable name (the "what"). Long methods can also lead to duplication, as it's harder to reuse logic that is tightly coupled to surrounding code.

Refactorings

Read More

Complex method in #get_execute_query

                   :ComplexTypeName=>"UndeployVAppParamsType",
                   :SchemaLocation=>
                    "http://#{@host}#{@path}/v1.5/schema/master.xsd"},
                  {:MediaType=>"application/vnd.vmware.admin.vdcReferences+xml",
                   :ComplexTypeName=>"VdcReferencesType",
Found in Fog::Compute::VcloudDirector::Mock - About 3 hrs to fix

Long or complex methods can make code harder to understand. In most circumstances, methods are best as a small chunk of code (the "how") with a clear, understandable name (the "what"). Long methods can also lead to duplication, as it's harder to reuse logic that is tightly coupled to surrounding code.

Refactorings

Read More

Complex method in #put_network_connection_system_section_vapp

                   :SchemaLocation=>
                    "http://#{@host}#{@path}/v1.5/schema/vmwextensions.xsd"},
                  {:MediaType=>"application/vnd.vmware.vcloud.undeployVAppParams+xml",
                   :ComplexTypeName=>"UndeployVAppParamsType",
                   :SchemaLocation=>
Found in Fog::Compute::VcloudDirector::Mock - About 3 hrs to fix

Long or complex methods can make code harder to understand. In most circumstances, methods are best as a small chunk of code (the "how") with a clear, understandable name (the "what"). Long methods can also lead to duplication, as it's harder to reuse logic that is tightly coupled to surrounding code.

Refactorings

Read More

Complex method in #post_update_vapp_metadata

                   :ComplexTypeName=>"RelocateParamsType",
                   :SchemaLocation=>
                    "http://#{@host}#{@path}/v1.5/schema/master.xsd"},
                  {:MediaType=>"application/vnd.vmware.vcloud.org+xml",
                   :ComplexTypeName=>"OrgType",
Found in Fog::Compute::VcloudDirector::Mock - About 3 hrs to fix

Long or complex methods can make code harder to understand. In most circumstances, methods are best as a small chunk of code (the "how") with a clear, understandable name (the "what"). Long methods can also lead to duplication, as it's harder to reuse logic that is tightly coupled to surrounding code.

Refactorings

Read More

Complex method in #get_network_complete

             :VersionInfo=>
              [{:Version=>"1.5",
                :LoginUrl=>make_href("sessions"),
                :MediaTypeMapping=>
                 [{:MediaType=>
Found in Fog::Compute::VcloudDirector::Mock - About 3 hrs to fix

Long or complex methods can make code harder to understand. In most circumstances, methods are best as a small chunk of code (the "how") with a clear, understandable name (the "what"). Long methods can also lead to duplication, as it's harder to reuse logic that is tightly coupled to surrounding code.

Refactorings

Read More

Complex method in #post_power_on_vapp

                   :ComplexTypeName=>"InstantiateVAppTemplateParamsType",
                   :SchemaLocation=>
                    "http://#{@host}#{@path}/v1.5/schema/master.xsd"},
                  {:MediaType=>"application/vnd.vmware.admin.vmwProviderVdcReferences+xml",
                   :ComplexTypeName=>"VMWProviderVdcReferencesType",
Found in Fog::Compute::VcloudDirector::Mock - About 3 hrs to fix

Long or complex methods can make code harder to understand. In most circumstances, methods are best as a small chunk of code (the "how") with a clear, understandable name (the "what"). Long methods can also lead to duplication, as it's harder to reuse logic that is tightly coupled to surrounding code.

Refactorings

Read More

Complex method in #post_instantiate_vapp_template

                    "http://#{@host}#{@path}/v1.5/schema/vmwextensions.xsd"},
                  {:MediaType=>"application/vnd.vmware.vcloud.vApp+xml",
                   :ComplexTypeName=>"VAppType",
                   :SchemaLocation=>
                    "http://#{@host}#{@path}/v1.5/schema/master.xsd"},
Found in Fog::Compute::VcloudDirector::Mock - About 2 hrs to fix

Long or complex methods can make code harder to understand. In most circumstances, methods are best as a small chunk of code (the "how") with a clear, understandable name (the "what"). Long methods can also lead to duplication, as it's harder to reuse logic that is tightly coupled to surrounding code.

Refactorings

Read More

Complex method in #put_cpu

                   :ComplexTypeName=>"OrgType",
                   :SchemaLocation=>
                    "http://#{@host}#{@path}/v1.5/schema/master.xsd"},
                  {:MediaType=>
                    "application/vnd.vmware.admin.vmwExternalNetworkReferences+xml",
Found in Fog::Compute::VcloudDirector::Mock - About 2 hrs to fix

Long or complex methods can make code harder to understand. In most circumstances, methods are best as a small chunk of code (the "how") with a clear, understandable name (the "what"). Long methods can also lead to duplication, as it's harder to reuse logic that is tightly coupled to surrounding code.

Refactorings

Read More

Complex method in #put_memory

                   :ComplexTypeName=>"OrgType",
                   :SchemaLocation=>
                    "http://#{@host}#{@path}/v1.5/schema/master.xsd"},
                  {:MediaType=>
                    "application/vnd.vmware.admin.vmwExternalNetworkReferences+xml",
Found in Fog::Compute::VcloudDirector::Mock - About 2 hrs to fix

Long or complex methods can make code harder to understand. In most circumstances, methods are best as a small chunk of code (the "how") with a clear, understandable name (the "what"). Long methods can also lead to duplication, as it's harder to reuse logic that is tightly coupled to surrounding code.

Refactorings

Read More

Complex method in #put_vm

                   :ComplexTypeName=>"VMWProviderVdcReferencesType",
                   :SchemaLocation=>
                    "http://#{@host}#{@path}/v1.5/schema/vmwextensions.xsd"},
                  {:MediaType=>"application/vnd.vmware.vcloud.customizationSection+xml",
                   :ComplexTypeName=>"CustomizationSectionType",
Found in Fog::Compute::VcloudDirector::Mock - About 2 hrs to fix

Long or complex methods can make code harder to understand. In most circumstances, methods are best as a small chunk of code (the "how") with a clear, understandable name (the "what"). Long methods can also lead to duplication, as it's harder to reuse logic that is tightly coupled to surrounding code.

Refactorings

Read More

Complex method in #get_current_session

                  {:MediaType=>"application/vnd.vmware.vcloud.customizationSection+xml",
                   :ComplexTypeName=>"CustomizationSectionType",
                   :SchemaLocation=>
                    "http://#{@host}#{@path}/v1.5/schema/master.xsd"},
                  {:MediaType=>"application/vnd.vmware.admin.prepareHostParams+xml",
Found in Fog::Compute::VcloudDirector::Mock - About 2 hrs to fix

Long or complex methods can make code harder to understand. In most circumstances, methods are best as a small chunk of code (the "how") with a clear, understandable name (the "what"). Long methods can also lead to duplication, as it's harder to reuse logic that is tightly coupled to surrounding code.

Refactorings

Read More

Complex method in #process_task

                    "http://#{@host}#{@path}/v1.5/schema/vmwextensions.xsd"},
                  {:MediaType=>"application/vnd.vmware.admin.operationLimitsSettings+xml",
                   :ComplexTypeName=>"OrgOperationLimitsSettingsType",
                   :SchemaLocation=>
                    "http://#{@host}#{@path}/v1.5/schema/master.xsd"},
Found in Fog::Compute::VcloudDirector::Mock - About 1 hr to fix

Long or complex methods can make code harder to understand. In most circumstances, methods are best as a small chunk of code (the "how") with a clear, understandable name (the "what"). Long methods can also lead to duplication, as it's harder to reuse logic that is tightly coupled to surrounding code.

Refactorings

Read More

Complex method in #post_configure_edge_gateway_services

                    "http://#{@host}#{@path}/v1.5/schema/master.xsd"},
                  {:MediaType=>"application/vnd.vmware.admin.vmwProviderVdcReferences+xml",
                   :ComplexTypeName=>"VMWProviderVdcReferencesType",
                   :SchemaLocation=>
                    "http://#{@host}#{@path}/v1.5/schema/vmwextensions.xsd"},
Found in Fog::Compute::VcloudDirector::Mock - About 1 hr to fix

Long or complex methods can make code harder to understand. In most circumstances, methods are best as a small chunk of code (the "how") with a clear, understandable name (the "what"). Long methods can also lead to duplication, as it's harder to reuse logic that is tightly coupled to surrounding code.

Refactorings

Read More

Complex method in #put_vapp_metadata_item_metadata

                   :ComplexTypeName=>"RelocateParamsType",
                   :SchemaLocation=>
                    "http://#{@host}#{@path}/v1.5/schema/master.xsd"},
                  {:MediaType=>"application/vnd.vmware.vcloud.org+xml",
                   :ComplexTypeName=>"OrgType",
Found in Fog::Compute::VcloudDirector::Mock - About 1 hr to fix

Long or complex methods can make code harder to understand. In most circumstances, methods are best as a small chunk of code (the "how") with a clear, understandable name (the "what"). Long methods can also lead to duplication, as it's harder to reuse logic that is tightly coupled to surrounding code.

Refactorings

Read More

Complex method in #get_org_vdc_gateways

                :MediaTypeMapping=>
                 [{:MediaType=>
                    "application/vnd.vmware.vcloud.instantiateVAppTemplateParams+xml",
                   :ComplexTypeName=>"InstantiateVAppTemplateParamsType",
                   :SchemaLocation=>
Found in Fog::Compute::VcloudDirector::Mock - About 1 hr to fix

Long or complex methods can make code harder to understand. In most circumstances, methods are best as a small chunk of code (the "how") with a clear, understandable name (the "what"). Long methods can also lead to duplication, as it's harder to reuse logic that is tightly coupled to surrounding code.

Refactorings

Read More

Complex method in #delete_media

                   :SchemaLocation=>
                    "http://#{@host}#{@path}/v1.5/schema/master.xsd"},
                  {:MediaType=>"application/vnd.vmware.vcloud.recomposeVAppParams+xml",
                   :ComplexTypeName=>"RecomposeVAppParamsType",
                   :SchemaLocation=>
Found in Fog::Compute::VcloudDirector::Mock - About 1 hr to fix

Long or complex methods can make code harder to understand. In most circumstances, methods are best as a small chunk of code (the "how") with a clear, understandable name (the "what"). Long methods can also lead to duplication, as it's harder to reuse logic that is tightly coupled to surrounding code.

Refactorings

Read More

Complex method in #get_network

                :MediaTypeMapping=>
                 [{:MediaType=>
                    "application/vnd.vmware.vcloud.instantiateVAppTemplateParams+xml",
                   :ComplexTypeName=>"InstantiateVAppTemplateParamsType",
                   :SchemaLocation=>
Found in Fog::Compute::VcloudDirector::Mock - About 1 hr to fix

Long or complex methods can make code harder to understand. In most circumstances, methods are best as a small chunk of code (the "how") with a clear, understandable name (the "what"). Long methods can also lead to duplication, as it's harder to reuse logic that is tightly coupled to surrounding code.

Refactorings

Read More

Complex method in #get_mock_vm_body

                   :SchemaLocation=>
                    "http://#{@host}#{@path}/v1.5/schema/master.xsd"},
                  {:MediaType=>"application/vnd.vmware.vcloud.org+xml",
                   :ComplexTypeName=>"OrgType",
                   :SchemaLocation=>
Found in Fog::Compute::VcloudDirector::Mock - About 1 hr to fix

Long or complex methods can make code harder to understand. In most circumstances, methods are best as a small chunk of code (the "how") with a clear, understandable name (the "what"). Long methods can also lead to duplication, as it's harder to reuse logic that is tightly coupled to surrounding code.

Refactorings

Read More

Complex method in #get_vdc_storage_class

                   :ComplexTypeName=>"PrepareHostParamsType",
                   :SchemaLocation=>
                    "http://#{@host}#{@path}/v1.5/schema/vmwextensions.xsd"},
                  {:MediaType=>"application/vnd.vmware.vcloud.relocateVmParams+xml",
                   :ComplexTypeName=>"RelocateParamsType",
Found in Fog::Compute::VcloudDirector::Mock - About 1 hr to fix

Long or complex methods can make code harder to understand. In most circumstances, methods are best as a small chunk of code (the "how") with a clear, understandable name (the "what"). Long methods can also lead to duplication, as it's harder to reuse logic that is tightly coupled to surrounding code.

Refactorings

Read More

Similar code found in 1 other location

module Fog
  module Compute
    class VcloudDirector
      class Real
        # List all supported versions.
Found in Fog::Compute::VcloudDirector::Mock and 1 other location - About 4 days to fix
lib/fog/vcloud_director/requests/compute/get_vm.rb on lines 2..68

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Refactorings

Further Reading

Similar code found in 1 other location

module Fog
  module Compute
    class VcloudDirector
      class Real
        # List all supported versions.
Found in Fog::Compute::VcloudDirector::Mock and 1 other location - About 4 days to fix
lib/fog/vcloud_director/requests/compute/get_template_vm.rb on lines 2..68

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Refactorings

Further Reading

Identical code found in 1 other location

module Fog
  module Compute
    class VcloudDirector
      class Real
        # List all supported versions.
Found in Fog::Compute::VcloudDirector::Mock and 1 other location - About 3 days to fix
lib/fog/vcloud_director/requests/compute/post_create_org_vdc_network.rb on lines 111..129

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Refactorings

Further Reading

Identical code found in 1 other location

module Fog
  module Compute
    class VcloudDirector
      class Real
        # List all supported versions.
Found in Fog::Compute::VcloudDirector::Mock and 1 other location - About 3 days to fix
lib/fog/vcloud_director/requests/compute/put_network.rb on lines 113..131

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Refactorings

Further Reading

Similar code found in 1 other location

module Fog
  module Compute
    class VcloudDirector
      class Real
        # List all supported versions.
Found in Fog::Compute::VcloudDirector::Mock and 1 other location - About 2 days to fix
lib/fog/vcloud_director/requests/compute/get_memory_rasd_item.rb on lines 2..57

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Refactorings

Further Reading

Similar code found in 1 other location

module Fog
  module Compute
    class VcloudDirector
      class Real
        # List all supported versions.
Found in Fog::Compute::VcloudDirector::Mock and 1 other location - About 2 days to fix
lib/fog/vcloud_director/requests/compute/get_cpu_rasd_item.rb on lines 2..58

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Refactorings

Further Reading

Similar code found in 1 other location

module Fog
  module Compute
    class VcloudDirector
      class Real
        # List all supported versions.
Found in Fog::Compute::VcloudDirector::Mock and 1 other location - About 1 day to fix
lib/fog/vcloud_director/requests/compute/delete_disk.rb on lines 2..55

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Refactorings

Further Reading

Similar code found in 1 other location

module Fog
  module Compute
    class VcloudDirector
      class Real
        # List all supported versions.
Found in Fog::Compute::VcloudDirector::Mock and 1 other location - About 1 day to fix
lib/fog/vcloud_director/requests/compute/delete_network.rb on lines 2..57

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Refactorings

Further Reading

Identical code found in 3 other locations

module Fog
  module Compute
    class VcloudDirector
      class Real
        # List all supported versions.
Found in Fog::Compute::VcloudDirector::Mock and 3 other locations - About 1 day to fix
lib/fog/vcloud_director/requests/compute/get_current_session.rb on lines 74..78
lib/fog/vcloud_director/requests/compute/get_organizations.rb on lines 43..47
lib/fog/vcloud_director/requests/compute/get_vcloud.rb on lines 67..71

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Refactorings

Further Reading

Identical code found in 3 other locations

module Fog
  module Compute
    class VcloudDirector
      class Real
        # List all supported versions.
Found in Fog::Compute::VcloudDirector::Mock and 3 other locations - About 1 day to fix
lib/fog/vcloud_director/requests/compute/get_organization.rb on lines 91..95
lib/fog/vcloud_director/requests/compute/get_organizations.rb on lines 43..47
lib/fog/vcloud_director/requests/compute/get_vcloud.rb on lines 67..71

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Refactorings

Further Reading

Identical code found in 1 other location

module Fog
  module Compute
    class VcloudDirector
      class Real
        # List all supported versions.
Found in Fog::Compute::VcloudDirector::Mock and 1 other location - About 6 hrs to fix
lib/fog/vcloud_director/requests/compute/put_vapp_metadata_item_metadata.rb on lines 52..54

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Refactorings

Further Reading

Similar code found in 1 other location

module Fog
  module Compute
    class VcloudDirector
      class Real
        # List all supported versions.
Found in Fog::Compute::VcloudDirector::Mock and 1 other location - About 5 hrs to fix
lib/fog/vcloud_director/requests/compute/get_lease_settings_section_vapp.rb on lines 26..40

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Refactorings

Further Reading

Similar code found in 1 other location

module Fog
  module Compute
    class VcloudDirector
      class Real
        # List all supported versions.
Found in Fog::Compute::VcloudDirector::Mock and 1 other location - About 5 hrs to fix
lib/fog/vcloud_director/requests/compute/get_vapp_owner.rb on lines 25..39

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Refactorings

Further Reading

Similar code found in 10 other locations

module Fog
  module Compute
    class VcloudDirector
      class Real
        # List all supported versions.
Found in Fog::Compute::VcloudDirector::Mock and 10 other locations - About 5 hrs to fix
lib/fog/vcloud_director/requests/compute/get_supported_systems_info.rb on lines 36..52
lib/fog/vcloud_director/requests/compute/get_supported_systems_info.rb on lines 70..86
lib/fog/vcloud_director/requests/compute/get_supported_systems_info.rb on lines 90..106
lib/fog/vcloud_director/requests/compute/get_supported_systems_info.rb on lines 107..123
lib/fog/vcloud_director/requests/compute/get_supported_systems_info.rb on lines 124..140
lib/fog/vcloud_director/requests/compute/get_supported_systems_info.rb on lines 141..157
lib/fog/vcloud_director/requests/compute/get_supported_systems_info.rb on lines 158..174
lib/fog/vcloud_director/requests/compute/get_supported_systems_info.rb on lines 175..191
lib/fog/vcloud_director/requests/compute/get_supported_systems_info.rb on lines 195..211
lib/fog/vcloud_director/requests/compute/get_supported_systems_info.rb on lines 212..228

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Refactorings

Further Reading

Similar code found in 10 other locations

module Fog
  module Compute
    class VcloudDirector
      class Real
        # List all supported versions.
Found in Fog::Compute::VcloudDirector::Mock and 10 other locations - About 5 hrs to fix
lib/fog/vcloud_director/requests/compute/get_supported_systems_info.rb on lines 53..69
lib/fog/vcloud_director/requests/compute/get_supported_systems_info.rb on lines 70..86
lib/fog/vcloud_director/requests/compute/get_supported_systems_info.rb on lines 90..106
lib/fog/vcloud_director/requests/compute/get_supported_systems_info.rb on lines 107..123
lib/fog/vcloud_director/requests/compute/get_supported_systems_info.rb on lines 124..140
lib/fog/vcloud_director/requests/compute/get_supported_systems_info.rb on lines 141..157
lib/fog/vcloud_director/requests/compute/get_supported_systems_info.rb on lines 158..174
lib/fog/vcloud_director/requests/compute/get_supported_systems_info.rb on lines 175..191
lib/fog/vcloud_director/requests/compute/get_supported_systems_info.rb on lines 195..211
lib/fog/vcloud_director/requests/compute/get_supported_systems_info.rb on lines 212..228

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Refactorings

Further Reading

Similar code found in 10 other locations

module Fog
  module Compute
    class VcloudDirector
      class Real
        # List all supported versions.
Found in Fog::Compute::VcloudDirector::Mock and 10 other locations - About 5 hrs to fix
lib/fog/vcloud_director/requests/compute/get_supported_systems_info.rb on lines 36..52
lib/fog/vcloud_director/requests/compute/get_supported_systems_info.rb on lines 53..69
lib/fog/vcloud_director/requests/compute/get_supported_systems_info.rb on lines 90..106
lib/fog/vcloud_director/requests/compute/get_supported_systems_info.rb on lines 107..123
lib/fog/vcloud_director/requests/compute/get_supported_systems_info.rb on lines 124..140
lib/fog/vcloud_director/requests/compute/get_supported_systems_info.rb on lines 141..157
lib/fog/vcloud_director/requests/compute/get_supported_systems_info.rb on lines 158..174
lib/fog/vcloud_director/requests/compute/get_supported_systems_info.rb on lines 175..191
lib/fog/vcloud_director/requests/compute/get_supported_systems_info.rb on lines 195..211
lib/fog/vcloud_director/requests/compute/get_supported_systems_info.rb on lines 212..228

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Refactorings

Further Reading

Similar code found in 10 other locations

module Fog
  module Compute
    class VcloudDirector
      class Real
        # List all supported versions.
Found in Fog::Compute::VcloudDirector::Mock and 10 other locations - About 5 hrs to fix
lib/fog/vcloud_director/requests/compute/get_supported_systems_info.rb on lines 36..52
lib/fog/vcloud_director/requests/compute/get_supported_systems_info.rb on lines 53..69
lib/fog/vcloud_director/requests/compute/get_supported_systems_info.rb on lines 70..86
lib/fog/vcloud_director/requests/compute/get_supported_systems_info.rb on lines 90..106
lib/fog/vcloud_director/requests/compute/get_supported_systems_info.rb on lines 107..123
lib/fog/vcloud_director/requests/compute/get_supported_systems_info.rb on lines 141..157
lib/fog/vcloud_director/requests/compute/get_supported_systems_info.rb on lines 158..174
lib/fog/vcloud_director/requests/compute/get_supported_systems_info.rb on lines 175..191
lib/fog/vcloud_director/requests/compute/get_supported_systems_info.rb on lines 195..211
lib/fog/vcloud_director/requests/compute/get_supported_systems_info.rb on lines 212..228

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Refactorings

Further Reading

Similar code found in 10 other locations

module Fog
  module Compute
    class VcloudDirector
      class Real
        # List all supported versions.
Found in Fog::Compute::VcloudDirector::Mock and 10 other locations - About 5 hrs to fix
lib/fog/vcloud_director/requests/compute/get_supported_systems_info.rb on lines 36..52
lib/fog/vcloud_director/requests/compute/get_supported_systems_info.rb on lines 53..69
lib/fog/vcloud_director/requests/compute/get_supported_systems_info.rb on lines 70..86
lib/fog/vcloud_director/requests/compute/get_supported_systems_info.rb on lines 90..106
lib/fog/vcloud_director/requests/compute/get_supported_systems_info.rb on lines 124..140
lib/fog/vcloud_director/requests/compute/get_supported_systems_info.rb on lines 141..157
lib/fog/vcloud_director/requests/compute/get_supported_systems_info.rb on lines 158..174
lib/fog/vcloud_director/requests/compute/get_supported_systems_info.rb on lines 175..191
lib/fog/vcloud_director/requests/compute/get_supported_systems_info.rb on lines 195..211
lib/fog/vcloud_director/requests/compute/get_supported_systems_info.rb on lines 212..228

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Refactorings

Further Reading

Similar code found in 10 other locations

module Fog
  module Compute
    class VcloudDirector
      class Real
        # List all supported versions.
Found in Fog::Compute::VcloudDirector::Mock and 10 other locations - About 5 hrs to fix
lib/fog/vcloud_director/requests/compute/get_supported_systems_info.rb on lines 36..52
lib/fog/vcloud_director/requests/compute/get_supported_systems_info.rb on lines 53..69
lib/fog/vcloud_director/requests/compute/get_supported_systems_info.rb on lines 70..86
lib/fog/vcloud_director/requests/compute/get_supported_systems_info.rb on lines 90..106
lib/fog/vcloud_director/requests/compute/get_supported_systems_info.rb on lines 107..123
lib/fog/vcloud_director/requests/compute/get_supported_systems_info.rb on lines 124..140
lib/fog/vcloud_director/requests/compute/get_supported_systems_info.rb on lines 158..174
lib/fog/vcloud_director/requests/compute/get_supported_systems_info.rb on lines 175..191
lib/fog/vcloud_director/requests/compute/get_supported_systems_info.rb on lines 195..211
lib/fog/vcloud_director/requests/compute/get_supported_systems_info.rb on lines 212..228

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Refactorings

Further Reading

Similar code found in 10 other locations

module Fog
  module Compute
    class VcloudDirector
      class Real
        # List all supported versions.
Found in Fog::Compute::VcloudDirector::Mock and 10 other locations - About 5 hrs to fix
lib/fog/vcloud_director/requests/compute/get_supported_systems_info.rb on lines 36..52
lib/fog/vcloud_director/requests/compute/get_supported_systems_info.rb on lines 53..69
lib/fog/vcloud_director/requests/compute/get_supported_systems_info.rb on lines 70..86
lib/fog/vcloud_director/requests/compute/get_supported_systems_info.rb on lines 90..106
lib/fog/vcloud_director/requests/compute/get_supported_systems_info.rb on lines 107..123
lib/fog/vcloud_director/requests/compute/get_supported_systems_info.rb on lines 124..140
lib/fog/vcloud_director/requests/compute/get_supported_systems_info.rb on lines 141..157
lib/fog/vcloud_director/requests/compute/get_supported_systems_info.rb on lines 158..174
lib/fog/vcloud_director/requests/compute/get_supported_systems_info.rb on lines 175..191
lib/fog/vcloud_director/requests/compute/get_supported_systems_info.rb on lines 212..228

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Refactorings

Further Reading

Similar code found in 10 other locations

module Fog
  module Compute
    class VcloudDirector
      class Real
        # List all supported versions.
Found in Fog::Compute::VcloudDirector::Mock and 10 other locations - About 5 hrs to fix
lib/fog/vcloud_director/requests/compute/get_supported_systems_info.rb on lines 36..52
lib/fog/vcloud_director/requests/compute/get_supported_systems_info.rb on lines 53..69
lib/fog/vcloud_director/requests/compute/get_supported_systems_info.rb on lines 70..86
lib/fog/vcloud_director/requests/compute/get_supported_systems_info.rb on lines 90..106
lib/fog/vcloud_director/requests/compute/get_supported_systems_info.rb on lines 107..123
lib/fog/vcloud_director/requests/compute/get_supported_systems_info.rb on lines 124..140
lib/fog/vcloud_director/requests/compute/get_supported_systems_info.rb on lines 141..157
lib/fog/vcloud_director/requests/compute/get_supported_systems_info.rb on lines 158..174
lib/fog/vcloud_director/requests/compute/get_supported_systems_info.rb on lines 175..191
lib/fog/vcloud_director/requests/compute/get_supported_systems_info.rb on lines 195..211

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Refactorings

Further Reading

Similar code found in 10 other locations

module Fog
  module Compute
    class VcloudDirector
      class Real
        # List all supported versions.
Found in Fog::Compute::VcloudDirector::Mock and 10 other locations - About 5 hrs to fix
lib/fog/vcloud_director/requests/compute/get_supported_systems_info.rb on lines 36..52
lib/fog/vcloud_director/requests/compute/get_supported_systems_info.rb on lines 53..69
lib/fog/vcloud_director/requests/compute/get_supported_systems_info.rb on lines 70..86
lib/fog/vcloud_director/requests/compute/get_supported_systems_info.rb on lines 107..123
lib/fog/vcloud_director/requests/compute/get_supported_systems_info.rb on lines 124..140
lib/fog/vcloud_director/requests/compute/get_supported_systems_info.rb on lines 141..157
lib/fog/vcloud_director/requests/compute/get_supported_systems_info.rb on lines 158..174
lib/fog/vcloud_director/requests/compute/get_supported_systems_info.rb on lines 175..191
lib/fog/vcloud_director/requests/compute/get_supported_systems_info.rb on lines 195..211
lib/fog/vcloud_director/requests/compute/get_supported_systems_info.rb on lines 212..228

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Refactorings

Further Reading

Similar code found in 10 other locations

module Fog
  module Compute
    class VcloudDirector
      class Real
        # List all supported versions.
Found in Fog::Compute::VcloudDirector::Mock and 10 other locations - About 5 hrs to fix
lib/fog/vcloud_director/requests/compute/get_supported_systems_info.rb on lines 36..52
lib/fog/vcloud_director/requests/compute/get_supported_systems_info.rb on lines 53..69
lib/fog/vcloud_director/requests/compute/get_supported_systems_info.rb on lines 70..86
lib/fog/vcloud_director/requests/compute/get_supported_systems_info.rb on lines 90..106
lib/fog/vcloud_director/requests/compute/get_supported_systems_info.rb on lines 107..123
lib/fog/vcloud_director/requests/compute/get_supported_systems_info.rb on lines 124..140
lib/fog/vcloud_director/requests/compute/get_supported_systems_info.rb on lines 141..157
lib/fog/vcloud_director/requests/compute/get_supported_systems_info.rb on lines 158..174
lib/fog/vcloud_director/requests/compute/get_supported_systems_info.rb on lines 195..211
lib/fog/vcloud_director/requests/compute/get_supported_systems_info.rb on lines 212..228

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Refactorings

Further Reading

Similar code found in 10 other locations

module Fog
  module Compute
    class VcloudDirector
      class Real
        # List all supported versions.
Found in Fog::Compute::VcloudDirector::Mock and 10 other locations - About 5 hrs to fix
lib/fog/vcloud_director/requests/compute/get_supported_systems_info.rb on lines 36..52
lib/fog/vcloud_director/requests/compute/get_supported_systems_info.rb on lines 53..69
lib/fog/vcloud_director/requests/compute/get_supported_systems_info.rb on lines 70..86
lib/fog/vcloud_director/requests/compute/get_supported_systems_info.rb on lines 90..106
lib/fog/vcloud_director/requests/compute/get_supported_systems_info.rb on lines 107..123
lib/fog/vcloud_director/requests/compute/get_supported_systems_info.rb on lines 124..140
lib/fog/vcloud_director/requests/compute/get_supported_systems_info.rb on lines 141..157
lib/fog/vcloud_director/requests/compute/get_supported_systems_info.rb on lines 175..191
lib/fog/vcloud_director/requests/compute/get_supported_systems_info.rb on lines 195..211
lib/fog/vcloud_director/requests/compute/get_supported_systems_info.rb on lines 212..228

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Refactorings

Further Reading

Similar code found in 1 other location

module Fog
  module Compute
    class VcloudDirector
      class Real
        # List all supported versions.
Found in Fog::Compute::VcloudDirector::Mock and 1 other location - About 4 hrs to fix
lib/fog/vcloud_director/requests/compute/post_clone_vapp_template.rb on lines 29..37

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Refactorings

Further Reading

Similar code found in 1 other location

module Fog
  module Compute
    class VcloudDirector
      class Real
        # List all supported versions.
Found in Fog::Compute::VcloudDirector::Mock and 1 other location - About 4 hrs to fix
lib/fog/vcloud_director/requests/compute/get_disk.rb on lines 109..115

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Refactorings

Further Reading

Similar code found in 1 other location

module Fog
  module Compute
    class VcloudDirector
      class Real
        # List all supported versions.
Found in Fog::Compute::VcloudDirector::Mock and 1 other location - About 4 hrs to fix
lib/fog/vcloud_director/requests/compute/get_media.rb on lines 97..103

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Refactorings

Further Reading

Similar code found in 3 other locations

module Fog
  module Compute
    class VcloudDirector
      class Real
        # List all supported versions.
Found in Fog::Compute::VcloudDirector::Mock and 3 other locations - About 3 hrs to fix
lib/fog/vcloud_director/requests/compute/get_catalog.rb on lines 4..24
lib/fog/vcloud_director/requests/compute/get_media.rb on lines 4..24
lib/fog/vcloud_director/requests/compute/get_vapp.rb on lines 4..22

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Refactorings

Further Reading

Similar code found in 3 other locations

module Fog
  module Compute
    class VcloudDirector
      class Real
        # List all supported versions.
Found in Fog::Compute::VcloudDirector::Mock and 3 other locations - About 3 hrs to fix
lib/fog/vcloud_director/requests/compute/get_catalog.rb on lines 4..24
lib/fog/vcloud_director/requests/compute/get_media.rb on lines 4..24
lib/fog/vcloud_director/requests/compute/get_organization.rb on lines 4..24

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Refactorings

Further Reading

Similar code found in 3 other locations

module Fog
  module Compute
    class VcloudDirector
      class Real
        # List all supported versions.
Found in Fog::Compute::VcloudDirector::Mock and 3 other locations - About 3 hrs to fix
lib/fog/vcloud_director/requests/compute/get_catalog.rb on lines 4..24
lib/fog/vcloud_director/requests/compute/get_organization.rb on lines 4..24
lib/fog/vcloud_director/requests/compute/get_vapp.rb on lines 4..22

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Refactorings

Further Reading

Similar code found in 3 other locations

module Fog
  module Compute
    class VcloudDirector
      class Real
        # List all supported versions.
Found in Fog::Compute::VcloudDirector::Mock and 3 other locations - About 3 hrs to fix
lib/fog/vcloud_director/requests/compute/get_media.rb on lines 4..24
lib/fog/vcloud_director/requests/compute/get_organization.rb on lines 4..24
lib/fog/vcloud_director/requests/compute/get_vapp.rb on lines 4..22

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Refactorings

Further Reading

Similar code found in 2 other locations

module Fog
  module Compute
    class VcloudDirector
      class Real
        # List all supported versions.
Found in Fog::Compute::VcloudDirector::Mock and 2 other locations - About 3 hrs to fix
lib/fog/vcloud_director/requests/compute/get_vm_pending_question.rb on lines 4..29
lib/fog/vcloud_director/requests/compute/get_vms_disk_attached_to.rb on lines 4..22

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Refactorings

Further Reading

Similar code found in 2 other locations

module Fog
  module Compute
    class VcloudDirector
      class Real
        # List all supported versions.
Found in Fog::Compute::VcloudDirector::Mock and 2 other locations - About 3 hrs to fix
lib/fog/vcloud_director/requests/compute/get_vm_customization.rb on lines 4..26
lib/fog/vcloud_director/requests/compute/get_vm_disks.rb on lines 4..26

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Refactorings

Further Reading

Similar code found in 1 other location

module Fog
  module Compute
    class VcloudDirector
      class Real
        # List all supported versions.
Found in Fog::Compute::VcloudDirector::Mock and 1 other location - About 3 hrs to fix
lib/fog/vcloud_director/requests/compute/post_create_org_vdc_network.rb on lines 136..141

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Refactorings

Further Reading

Similar code found in 1 other location

module Fog
  module Compute
    class VcloudDirector
      class Real
        # List all supported versions.
Found in Fog::Compute::VcloudDirector::Mock and 1 other location - About 3 hrs to fix
lib/fog/vcloud_director/requests/compute/put_network.rb on lines 138..143

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Refactorings

Further Reading

Similar code found in 1 other location

module Fog
  module Compute
    class VcloudDirector
      class Real
        # List all supported versions.
Found in Fog::Compute::VcloudDirector::Mock and 1 other location - About 3 hrs to fix
lib/fog/vcloud_director/requests/compute/get_organization.rb on lines 77..84

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Refactorings

Further Reading

Similar code found in 1 other location

module Fog
  module Compute
    class VcloudDirector
      class Real
        # List all supported versions.
Found in Fog::Compute::VcloudDirector::Mock and 1 other location - About 3 hrs to fix
lib/fog/vcloud_director/requests/compute/get_organization.rb on lines 70..77

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Refactorings

Further Reading

Similar code found in 1 other location

module Fog
  module Compute
    class VcloudDirector
      class Real
        # List all supported versions.
Found in Fog::Compute::VcloudDirector::Mock and 1 other location - About 3 hrs to fix
lib/fog/vcloud_director/requests/compute/post_power_off_vapp.rb on lines 4..31

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Refactorings

Further Reading

Similar code found in 1 other location

module Fog
  module Compute
    class VcloudDirector
      class Real
        # List all supported versions.
Found in Fog::Compute::VcloudDirector::Mock and 1 other location - About 3 hrs to fix
lib/fog/vcloud_director/requests/compute/post_upload_disk.rb on lines 100..105

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Refactorings

Further Reading

Similar code found in 1 other location

module Fog
  module Compute
    class VcloudDirector
      class Real
        # List all supported versions.
Found in Fog::Compute::VcloudDirector::Mock and 1 other location - About 3 hrs to fix
lib/fog/vcloud_director/requests/compute/put_guest_customization_section_vapp.rb on lines 60..71

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Refactorings

Further Reading

Similar code found in 1 other location

module Fog
  module Compute
    class VcloudDirector
      class Real
        # List all supported versions.
Found in Fog::Compute::VcloudDirector::Mock and 1 other location - About 3 hrs to fix
lib/fog/vcloud_director/requests/compute/post_clone_media.rb on lines 39..46

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Refactorings

Further Reading

Similar code found in 1 other location

module Fog
  module Compute
    class VcloudDirector
      class Real
        # List all supported versions.
Found in Fog::Compute::VcloudDirector::Mock and 1 other location - About 3 hrs to fix
lib/fog/vcloud_director/requests/compute/post_upload_media.rb on lines 42..49

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Refactorings

Further Reading

Similar code found in 2 other locations

module Fog
  module Compute
    class VcloudDirector
      class Real
        # List all supported versions.
Found in Fog::Compute::VcloudDirector::Mock and 2 other locations - About 3 hrs to fix
tests/vcloud/requests/compute/disk_configure_tests.rb on lines 9..18
tests/vcloud/requests/compute/disk_configure_tests.rb on lines 87..96

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Refactorings

Further Reading

Similar code found in 2 other locations

module Fog
  module Compute
    class VcloudDirector
      class Real
        # List all supported versions.
Found in Fog::Compute::VcloudDirector::Mock and 2 other locations - About 2 hrs to fix
lib/fog/vcloud_director/requests/compute/put_network.rb on lines 56..63
lib/fog/vcloud_director/requests/compute/put_vapp_name_and_description.rb on lines 24..31

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Refactorings

Further Reading

Similar code found in 2 other locations

module Fog
  module Compute
    class VcloudDirector
      class Real
        # List all supported versions.
Found in Fog::Compute::VcloudDirector::Mock and 2 other locations - About 2 hrs to fix
lib/fog/vcloud_director/requests/compute/put_vapp_name_and_description.rb on lines 24..31
lib/fog/vcloud_director/requests/compute/put_vm.rb on lines 26..33

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Refactorings

Further Reading

Similar code found in 1 other location

module Fog
  module Compute
    class VcloudDirector
      class Real
        # List all supported versions.
Found in Fog::Compute::VcloudDirector::Mock and 1 other location - About 2 hrs to fix
lib/fog/vcloud_director/requests/compute/get_task_list.rb on lines 105..107

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Refactorings

Further Reading

Similar code found in 1 other location

module Fog
  module Compute
    class VcloudDirector
      class Real
        # List all supported versions.
Found in Fog::Compute::VcloudDirector::Mock and 1 other location - About 2 hrs to fix
lib/fog/vcloud_director/compute.rb on lines 511..513

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Refactorings

Further Reading

Similar code found in 1 other location

module Fog
  module Compute
    class VcloudDirector
      class Real
        # List all supported versions.
Found in Fog::Compute::VcloudDirector::Mock and 1 other location - About 2 hrs to fix
lib/fog/vcloud_director/compute.rb on lines 506..508

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Refactorings

Further Reading

There are no issues that match your filters.

module Fog
  module Compute
    class VcloudDirector
      class Real
        # List all supported versions.
        #
        # @return [Excon::Response]
        #   * body<~Hash>:
        #
        # @see http://pubs.vmware.com/vcd-55/topic/com.vmware.vcloud.api.reference.doc_55/doc/operations/GET-SupportedVersions.html
        # @since vCloud API version 0.9
        def get_supported_versions
          @connection.request(
            :expects    => 200,
            :idempotent => true,
            :method     => 'GET',
            :parser     => Fog::ToHashDocument.new,
            :path       => "#{@path}/versions"
          )
        end
      end

      class Mock
        def get_supported_versions
          body =
            {:xmlns=>"http://www.vmware.com/vcloud/versions",
             :xmlns_xsi=>xmlns_xsi,
             :xsi_schemaLocation=>xsi_schema_location,
             :VersionInfo=>
              [{:Version=>"1.5",
                :LoginUrl=>make_href("sessions"),
                :MediaTypeMapping=>
                 [{:MediaType=>
                    "application/vnd.vmware.vcloud.instantiateVAppTemplateParams+xml",
                   :ComplexTypeName=>"InstantiateVAppTemplateParamsType",
                   :SchemaLocation=>
                    "http://#{@host}#{@path}/v1.5/schema/master.xsd"},
                  {:MediaType=>"application/vnd.vmware.admin.vmwProviderVdcReferences+xml",
                   :ComplexTypeName=>"VMWProviderVdcReferencesType",
                   :SchemaLocation=>
                    "http://#{@host}#{@path}/v1.5/schema/vmwextensions.xsd"},
                  {:MediaType=>"application/vnd.vmware.vcloud.customizationSection+xml",
                   :ComplexTypeName=>"CustomizationSectionType",
                   :SchemaLocation=>
                    "http://#{@host}#{@path}/v1.5/schema/master.xsd"},
                  {:MediaType=>"application/vnd.vmware.admin.prepareHostParams+xml",
                   :ComplexTypeName=>"PrepareHostParamsType",
                   :SchemaLocation=>
                    "http://#{@host}#{@path}/v1.5/schema/vmwextensions.xsd"},
                  {:MediaType=>"application/vnd.vmware.vcloud.relocateVmParams+xml",
                   :ComplexTypeName=>"RelocateParamsType",
                   :SchemaLocation=>
                    "http://#{@host}#{@path}/v1.5/schema/master.xsd"},
                  {:MediaType=>"application/vnd.vmware.vcloud.org+xml",
                   :ComplexTypeName=>"OrgType",
                   :SchemaLocation=>
                    "http://#{@host}#{@path}/v1.5/schema/master.xsd"},
                  {:MediaType=>
                    "application/vnd.vmware.admin.vmwExternalNetworkReferences+xml",
                   :ComplexTypeName=>"VMWExternalNetworkReferencesType",
                   :SchemaLocation=>
                    "http://#{@host}#{@path}/v1.5/schema/vmwextensions.xsd"},
                  {:MediaType=>
                    "application/vnd.vmware.vcloud.networkConnectionSection+xml",
                   :ComplexTypeName=>"NetworkConnectionSectionType",
                   :SchemaLocation=>
                    "http://#{@host}#{@path}/v1.5/schema/master.xsd"},
                  {:MediaType=>"application/vnd.vmware.admin.host+xml",
                   :ComplexTypeName=>"HostType",
                   :SchemaLocation=>
                    "http://#{@host}#{@path}/v1.5/schema/vmwextensions.xsd"},
                  {:MediaType=>"application/vnd.vmware.vcloud.catalogItem+xml",
                   :ComplexTypeName=>"CatalogItemType",
                   :SchemaLocation=>
                    "http://#{@host}#{@path}/v1.5/schema/master.xsd"},
                  {:MediaType=>"application/vnd.vmware.vcloud.owner+xml",
                   :ComplexTypeName=>"OwnerType",
                   :SchemaLocation=>
                    "http://#{@host}#{@path}/v1.5/schema/master.xsd"},
                  {:MediaType=>"application/vnd.vmware.vcloud.vdc+xml",
                   :ComplexTypeName=>"VdcType",
                   :SchemaLocation=>
                    "http://#{@host}#{@path}/v1.5/schema/master.xsd"},
                  {:MediaType=>"application/vnd.vmware.admin.vdc+xml",
                   :ComplexTypeName=>"AdminVdcType",
                   :SchemaLocation=>
                    "http://#{@host}#{@path}/v1.5/schema/master.xsd"},
                  {:MediaType=>"application/vnd.vmware.admin.catalog+xml",
                   :ComplexTypeName=>"AdminCatalogType",
                   :SchemaLocation=>
                    "http://#{@host}#{@path}/v1.5/schema/master.xsd"},
                  {:MediaType=>"application/vnd.vmware.vcloud.recomposeVAppParams+xml",
                   :ComplexTypeName=>"RecomposeVAppParamsType",
                   :SchemaLocation=>
                    "http://#{@host}#{@path}/v1.5/schema/master.xsd"},
                  {:MediaType=>
                    "application/vnd.vmware.admin.importVmIntoExistingVAppParams+xml",
                   :ComplexTypeName=>"ImportVmIntoExistingVAppParamsType",
                   :SchemaLocation=>
                    "http://#{@host}#{@path}/v1.5/schema/vmwextensions.xsd"},
                  {:MediaType=>
                    "application/vnd.vmware.admin.taskExtensionRequestUpdateProgressOperationParams+xml",
                   :ComplexTypeName=>"TaskExtensionRequestUpdateProgressParamsType",
                   :SchemaLocation=>
                    "http://#{@host}#{@path}/v1.5/schema/vmwextensions.xsd"},
                  {:MediaType=>"application/vnd.vmware.vcloud.catalog+xml",
                   :ComplexTypeName=>"CatalogType",
                   :SchemaLocation=>
                    "http://#{@host}#{@path}/v1.5/schema/master.xsd"},
                  {:MediaType=>"application/vnd.vmware.vcloud.cloneVAppTemplateParams+xml",
                   :ComplexTypeName=>"CloneVAppTemplateParamsType",
                   :SchemaLocation=>
                    "http://#{@host}#{@path}/v1.5/schema/master.xsd"},
                  {:MediaType=>"application/vnd.vmware.admin.providervdc+xml",
                   :ComplexTypeName=>"ProviderVdcType",
                   :SchemaLocation=>
                    "http://#{@host}#{@path}/v1.5/schema/master.xsd"},
                  {:MediaType=>"application/vnd.vmware.admin.vmsObjectRefsList+xml",
                   :ComplexTypeName=>"VmObjectRefsListType",
                   :SchemaLocation=>
                    "http://#{@host}#{@path}/v1.5/schema/vmwextensions.xsd"},
                  {:MediaType=>"application/vnd.vmware.vcloud.undeployVAppParams+xml",
                   :ComplexTypeName=>"UndeployVAppParamsType",
                   :SchemaLocation=>
                    "http://#{@host}#{@path}/v1.5/schema/master.xsd"},
                  {:MediaType=>"application/vnd.vmware.admin.vdcReferences+xml",
                   :ComplexTypeName=>"VdcReferencesType",
                   :SchemaLocation=>
                    "http://#{@host}#{@path}/v1.5/schema/master.xsd"},
                  {:MediaType=>
                    "application/vnd.vmware.admin.systemPasswordPolicySettings+xml",
                   :ComplexTypeName=>"SystemPasswordPolicySettingsType",
                   :SchemaLocation=>
                    "http://#{@host}#{@path}/v1.5/schema/vmwextensions.xsd"},
                  {:MediaType=>"application/vnd.vmware.vcloud.vApp+xml",
                   :ComplexTypeName=>"VAppType",
                   :SchemaLocation=>
                    "http://#{@host}#{@path}/v1.5/schema/master.xsd"},
                  {:MediaType=>"application/vnd.vmware.admin.taskExtensionRequest+xml",
                   :ComplexTypeName=>"TaskExtensionRequestType",
                   :SchemaLocation=>
                    "http://#{@host}#{@path}/v1.5/schema/vmwextensions.xsd"},
                  {:MediaType=>"application/vnd.vmware.admin.vimServerNetworks+xml",
                   :ComplexTypeName=>"VimObjectRefListType",
                   :SchemaLocation=>
                    "http://#{@host}#{@path}/v1.5/schema/vmwextensions.xsd"},
                  {:MediaType=>"application/vnd.vmware.admin.vmwprovidervdc+xml",
                   :ComplexTypeName=>"VMWProviderVdcType",
                   :SchemaLocation=>
                    "http://#{@host}#{@path}/v1.5/schema/vmwextensions.xsd"},
                  {:MediaType=>"application/vnd.vmware.admin.orgSettings+xml",
                   :ComplexTypeName=>"OrgSettingsType",
                   :SchemaLocation=>
                    "http://#{@host}#{@path}/v1.5/schema/master.xsd"},
                  {:MediaType=>"application/vnd.vmware.vcloud.captureVAppParams+xml",
                   :ComplexTypeName=>"CaptureVAppParamsType",
                   :SchemaLocation=>
                    "http://#{@host}#{@path}/v1.5/schema/master.xsd"},
                  {:MediaType=>"application/vnd.vmware.vcloud.screenTicket+xml",
                   :ComplexTypeName=>"ScreenTicketType",
                   :SchemaLocation=>
                    "http://#{@host}#{@path}/v1.5/schema/master.xsd"},
                  {:MediaType=>"application/vnd.vmware.vcloud.runtimeInfoSection+xml",
                   :ComplexTypeName=>"RuntimeInfoSectionType",
                   :SchemaLocation=>
                    "http://#{@host}#{@path}/v1.5/schema/master.xsd"},
                  {:MediaType=>"application/vnd.vmware.vcloud.tasksList+xml",
                   :ComplexTypeName=>"TasksListType",
                   :SchemaLocation=>
                    "http://#{@host}#{@path}/v1.5/schema/master.xsd"},
                  {:MediaType=>"application/vnd.vmware.admin.amqpSettingsTest+xml",
                   :ComplexTypeName=>"AmqpSettingsTestType",
                   :SchemaLocation=>
                    "http://#{@host}#{@path}/v1.5/schema/vmwextensions.xsd"},
                  {:MediaType=>"application/vnd.vmware.admin.extensionSettings+xml",
                   :ComplexTypeName=>"TaskExtensionSettingsType",
                   :SchemaLocation=>
                    "http://#{@host}#{@path}/v1.5/schema/vmwextensions.xsd"},
                  {:MediaType=>
                    "application/vnd.vmware.admin.importVmAsVAppTemplateParams+xml",
                   :ComplexTypeName=>"ImportVmAsVAppTemplateParamsType",
                   :SchemaLocation=>
                    "http://#{@host}#{@path}/v1.5/schema/vmwextensions.xsd"},
                  {:MediaType=>
                    "application/vnd.vmware.admin.organizationGeneralSettings+xml",
                   :ComplexTypeName=>"OrgGeneralSettingsType",
                   :SchemaLocation=>
                    "http://#{@host}#{@path}/v1.5/schema/master.xsd"},
                  {:MediaType=>"application/vnd.vmware.admin.registerVimServerParams+xml",
                   :ComplexTypeName=>"RegisterVimServerParamsType",
                   :SchemaLocation=>
                    "http://#{@host}#{@path}/v1.5/schema/vmwextensions.xsd"},
                  {:MediaType=>"application/vnd.vmware.admin.network+xml",
                   :ComplexTypeName=>"OrgNetworkType",
                   :SchemaLocation=>
                    "http://#{@host}#{@path}/v1.5/schema/master.xsd"},
                  {:MediaType=>
                    "application/vnd.vmware.vcloud.uploadVAppTemplateParams+xml",
                   :ComplexTypeName=>"UploadVAppTemplateParamsType",
                   :SchemaLocation=>
                    "http://#{@host}#{@path}/v1.5/schema/master.xsd"},
                  {:MediaType=>"application/vnd.vmware.admin.datastore+xml",
                   :ComplexTypeName=>"DatastoreType",
                   :SchemaLocation=>
                    "http://#{@host}#{@path}/v1.5/schema/vmwextensions.xsd"},
                  {:MediaType=>"application/vnd.vmware.vcloud.metadata+xml",
                   :ComplexTypeName=>"MetadataType",
                   :SchemaLocation=>
                    "http://#{@host}#{@path}/v1.5/schema/master.xsd"},
                  {:MediaType=>"application/vnd.vmware.admin.licensingReportList+xml",
                   :ComplexTypeName=>"LicensingReportListType",
                   :SchemaLocation=>
                    "http://#{@host}#{@path}/v1.5/schema/vmwextensions.xsd"},
                  {:MediaType=>"application/vnd.vmware.admin.vmwNetworkPool+xml",
                   :ComplexTypeName=>"VMWNetworkPoolType",
                   :SchemaLocation=>
                    "http://#{@host}#{@path}/v1.5/schema/vmwextensions.xsd"},
                  {:MediaType=>"application/vnd.vmware.admin.systemSettings+xml",
                   :ComplexTypeName=>"SystemSettingsType",
                   :SchemaLocation=>
                    "http://#{@host}#{@path}/v1.5/schema/vmwextensions.xsd"},
                  {:MediaType=>"application/vnd.vmware.admin.vmwHostReferences+xml",
                   :ComplexTypeName=>"VMWHostReferencesType",
                   :SchemaLocation=>
                    "http://#{@host}#{@path}/v1.5/schema/vmwextensions.xsd"},
                  {:MediaType=>
                    "application/vnd.vmware.admin.taskExtensionRequestOperationParams+xml",
                   :ComplexTypeName=>"TaskExtensionRequestOperationParamsType",
                   :SchemaLocation=>
                    "http://#{@host}#{@path}/v1.5/schema/vmwextensions.xsd"},
                  {:MediaType=>"application/vnd.vmware.vcloud.metadata.value+xml",
                   :ComplexTypeName=>"MetadataValueType",
                   :SchemaLocation=>
                    "http://#{@host}#{@path}/v1.5/schema/master.xsd"},
                  {:MediaType=>"application/vnd.vmware.admin.taskOperationList+xml",
                   :ComplexTypeName=>"TaskOperationListType",
                   :SchemaLocation=>
                    "http://#{@host}#{@path}/v1.5/schema/master.xsd"},
                  {:MediaType=>"application/vnd.vmware.vcloud.media+xml",
                   :ComplexTypeName=>"MediaType",
                   :SchemaLocation=>
                    "http://#{@host}#{@path}/v1.5/schema/master.xsd"},
                  {:MediaType=>"application/vnd.vmware.vcloud.productSections+xml",
                   :ComplexTypeName=>"ProductSectionListType",
                   :SchemaLocation=>
                    "http://#{@host}#{@path}/v1.5/schema/master.xsd"},
                  {:MediaType=>"application/vnd.vmware.admin.amqpSettings+xml",
                   :ComplexTypeName=>"AmqpSettingsType",
                   :SchemaLocation=>
                    "http://#{@host}#{@path}/v1.5/schema/vmwextensions.xsd"},
                  {:MediaType=>"application/vnd.vmware.vcloud.vAppTemplate+xml",
                   :ComplexTypeName=>"VAppTemplateType",
                   :SchemaLocation=>
                    "http://#{@host}#{@path}/v1.5/schema/master.xsd"},
                  {:MediaType=>"application/vnd.vmware.vcloud.deployVAppParams+xml",
                   :ComplexTypeName=>"DeployVAppParamsType",
                   :SchemaLocation=>
                    "http://#{@host}#{@path}/v1.5/schema/master.xsd"},
                  {:MediaType=>
                    "application/vnd.vmware.admin.importVmIntoExistingVAppTemplateParams+xml",
                   :ComplexTypeName=>"ImportVmIntoExistingVAppTemplateParamsType",
                   :SchemaLocation=>
                    "http://#{@host}#{@path}/v1.5/schema/vmwextensions.xsd"},
                  {:MediaType=>"application/vnd.vmware.admin.resourcePoolList+xml",
                   :ComplexTypeName=>"ResourcePoolListType",
                   :SchemaLocation=>
                    "http://#{@host}#{@path}/v1.5/schema/vmwextensions.xsd"},
                  {:MediaType=>"application/vnd.vmware.vcloud.networkConfigSection+xml",
                   :ComplexTypeName=>"NetworkConfigSectionType",
                   :SchemaLocation=>
                    "http://#{@host}#{@path}/v1.5/schema/master.xsd"},
                  {:MediaType=>
                    "application/vnd.vmware.admin.OrganizationVdcResourcePoolSet+xml",
                   :ComplexTypeName=>"OrganizationResourcePoolSetType",
                   :SchemaLocation=>
                    "http://#{@host}#{@path}/v1.5/schema/vmwextensions.xsd"},
                  {:MediaType=>
                    "application/vnd.vmware.admin.organizationPasswordPolicySettings+xml",
                   :ComplexTypeName=>"OrgPasswordPolicySettingsType",
                   :SchemaLocation=>
                    "http://#{@host}#{@path}/v1.5/schema/master.xsd"},
                  {:MediaType=>"application/vnd.vmware.admin.publishCatalogParams+xml",
                   :ComplexTypeName=>"PublishCatalogParamsType",
                   :SchemaLocation=>
                    "http://#{@host}#{@path}/v1.5/schema/master.xsd"},
                  {:MediaType=>"application/vnd.vmware.admin.vmwExtension+xml",
                   :ComplexTypeName=>"VMWExtensionType",
                   :SchemaLocation=>
                    "http://#{@host}#{@path}/v1.5/schema/vmwextensions.xsd"},
                  {:MediaType=>
                    "application/vnd.vmware.vcloud.mediaInsertOrEjectParams+xml",
                   :ComplexTypeName=>"MediaInsertOrEjectParamsType",
                   :SchemaLocation=>
                    "http://#{@host}#{@path}/v1.5/schema/master.xsd"},
                  {:MediaType=>"application/vnd.vmware.vcloud.vmPendingQuestion+xml",
                   :ComplexTypeName=>"VmPendingQuestionType",
                   :SchemaLocation=>
                    "http://#{@host}#{@path}/v1.5/schema/master.xsd"},
                  {:MediaType=>"application/vnd.vmware.admin.notificationsSettings+xml",
                   :ComplexTypeName=>"NotificationsSettingsType",
                   :SchemaLocation=>
                    "http://#{@host}#{@path}/v1.5/schema/vmwextensions.xsd"},
                  {:MediaType=>"application/vnd.vmware.admin.ldapUserSettings+xml",
                   :ComplexTypeName=>"LdapUserAttributesType",
                   :SchemaLocation=>
                    "http://#{@host}#{@path}/v1.5/schema/vmwextensions.xsd"},
                  {:MediaType=>"application/vnd.vmware.admin.right+xml",
                   :ComplexTypeName=>"RightType",
                   :SchemaLocation=>
                    "http://#{@host}#{@path}/v1.5/schema/master.xsd"},
                  {:MediaType=>"application/vnd.vmware.admin.ldapSettings+xml",
                   :ComplexTypeName=>"LdapSettingsType",
                   :SchemaLocation=>
                    "http://#{@host}#{@path}/v1.5/schema/vmwextensions.xsd"},
                  {:MediaType=>"application/vnd.vmware.admin.organization+xml",
                   :ComplexTypeName=>"AdminOrgType",
                   :SchemaLocation=>
                    "http://#{@host}#{@path}/v1.5/schema/master.xsd"},
                  {:MediaType=>"application/vnd.vmware.vcloud.orgList+xml",
                   :ComplexTypeName=>"OrgListType",
                   :SchemaLocation=>
                    "http://#{@host}#{@path}/v1.5/schema/master.xsd"},
                  {:MediaType=>
                    "application/vnd.vmware.admin.vAppTemplateLeaseSettings+xml",
                   :ComplexTypeName=>"OrgVAppTemplateLeaseSettingsType",
                   :SchemaLocation=>
                    "http://#{@host}#{@path}/v1.5/schema/master.xsd"},
                  {:MediaType=>"application/vnd.vmware.admin.vmwVimServerReferences+xml",
                   :ComplexTypeName=>"VMWVimServerReferencesType",
                   :SchemaLocation=>
                    "http://#{@host}#{@path}/v1.5/schema/vmwextensions.xsd"},
                  {:MediaType=>"application/vnd.vmware.admin.vmwexternalnet+xml",
                   :ComplexTypeName=>"VMWExternalNetworkType",
                   :SchemaLocation=>
                    "http://#{@host}#{@path}/v1.5/schema/vmwextensions.xsd"},
                  {:MediaType=>"application/vnd.vmware.vcloud.entity+xml",
                   :ComplexTypeName=>"EntityType",
                   :SchemaLocation=>
                    "http://#{@host}#{@path}/v1.5/schema/master.xsd"},
                  {:MediaType=>"application/vnd.vmware.vcloud.cloneMediaParams+xml",
                   :ComplexTypeName=>"CloneMediaParamsType",
                   :SchemaLocation=>
                    "http://#{@host}#{@path}/v1.5/schema/master.xsd"},
                  {:MediaType=>"application/vnd.vmware.admin.licensingReport+xml",
                   :ComplexTypeName=>"LicensingReportType",
                   :SchemaLocation=>
                    "http://#{@host}#{@path}/v1.5/schema/vmwextensions.xsd"},
                  {:MediaType=>"application/vnd.vmware.admin.importMediaParams+xml",
                   :ComplexTypeName=>"ImportMediaParamsType",
                   :SchemaLocation=>
                    "http://#{@host}#{@path}/v1.5/schema/vmwextensions.xsd"},
                  {:MediaType=>
                    "application/vnd.vmware.admin.resourcePoolSetUpdateParams+xml",
                   :ComplexTypeName=>"UpdateResourcePoolSetParamsType",
                   :SchemaLocation=>
                    "http://#{@host}#{@path}/v1.5/schema/vmwextensions.xsd"},
                  {:MediaType=>"application/vnd.vmware.admin.taskExtensionRequestList+xml",
                   :ComplexTypeName=>"ReferencesType",
                   :SchemaLocation=>
                    "http://#{@host}#{@path}/v1.5/schema/master.xsd"},
                  {:MediaType=>"application/vnd.vmware.vcloud.vmPendingAnswer+xml",
                   :ComplexTypeName=>"VmQuestionAnswerType",
                   :SchemaLocation=>
                    "http://#{@host}#{@path}/v1.5/schema/master.xsd"},
                  {:MediaType=>"application/vnd.vmware.vcloud.rasdItemsList+xml",
                   :ComplexTypeName=>"RasdItemsListType",
                   :SchemaLocation=>
                    "http://#{@host}#{@path}/v1.5/schema/master.xsd"},
                  {:MediaType=>"application/vnd.vmware.admin.generalSettings+xml",
                   :ComplexTypeName=>"GeneralSettingsType",
                   :SchemaLocation=>
                    "http://#{@host}#{@path}/v1.5/schema/vmwextensions.xsd"},
                  {:MediaType=>"application/vnd.vmware.admin.vmwNetworkPoolReferences+xml",
                   :ComplexTypeName=>"VMWNetworkPoolReferencesType",
                   :SchemaLocation=>
                    "http://#{@host}#{@path}/v1.5/schema/vmwextensions.xsd"},
                  {:MediaType=>"application/vnd.vmware.admin.group+xml",
                   :ComplexTypeName=>"GroupType",
                   :SchemaLocation=>
                    "http://#{@host}#{@path}/v1.5/schema/master.xsd"},
                  {:MediaType=>"application/vnd.vmware.vcloud.controlAccess+xml",
                   :ComplexTypeName=>"ControlAccessParamsType",
                   :SchemaLocation=>
                    "http://#{@host}#{@path}/v1.5/schema/master.xsd"},
                  {:MediaType=>"application/vnd.vmware.admin.ldapGroupSettings+xml",
                   :ComplexTypeName=>"LdapGroupAttributesType",
                   :SchemaLocation=>
                    "http://#{@host}#{@path}/v1.5/schema/vmwextensions.xsd"},
                  {:MediaType=>"application/vnd.vmware.admin.user+xml",
                   :ComplexTypeName=>"UserType",
                   :SchemaLocation=>
                    "http://#{@host}#{@path}/v1.5/schema/master.xsd"},
                  {:MediaType=>"application/vnd.vmware.admin.vcloud+xml",
                   :ComplexTypeName=>"VCloudType",
                   :SchemaLocation=>
                    "http://#{@host}#{@path}/v1.5/schema/master.xsd"},
                  {:MediaType=>"application/vnd.vmware.admin.uberAdminSettings+xml",
                   :ComplexTypeName=>"UberAdminSettingsType",
                   :SchemaLocation=>
                    "http://#{@host}#{@path}/v1.5/schema/vmwextensions.xsd"},
                  {:MediaType=>"application/vnd.vmware.admin.vmwvirtualcenter+xml",
                   :ComplexTypeName=>"VimServerType",
                   :SchemaLocation=>
                    "http://#{@host}#{@path}/v1.5/schema/vmwextensions.xsd"},
                  {:MediaType=>"application/vnd.vmware.vcloud.leaseSettingsSection+xml",
                   :ComplexTypeName=>"LeaseSettingsSectionType",
                   :SchemaLocation=>
                    "http://#{@host}#{@path}/v1.5/schema/master.xsd"},
                  {:MediaType=>"application/vnd.vmware.vcloud.composeVAppParams+xml",
                   :ComplexTypeName=>"ComposeVAppParamsType",
                   :SchemaLocation=>
                    "http://#{@host}#{@path}/v1.5/schema/master.xsd"},
                  {:MediaType=>
                    "application/vnd.vmware.admin.organizationEmailSettings+xml",
                   :ComplexTypeName=>"OrgEmailSettingsType",
                   :SchemaLocation=>
                    "http://#{@host}#{@path}/v1.5/schema/master.xsd"},
                  {:MediaType=>"application/vnd.vmware.vcloud.vm+xml",
                   :ComplexTypeName=>"VmType",
                   :SchemaLocation=>
                    "http://#{@host}#{@path}/v1.5/schema/master.xsd"},
                  {:MediaType=>
                    "application/vnd.vmware.admin.vmwProviderVdcResourcePoolSet+xml",
                   :ComplexTypeName=>"VMWProviderVdcResourcePoolSetType",
                   :SchemaLocation=>
                    "http://#{@host}#{@path}/v1.5/schema/vmwextensions.xsd"},
                  {:MediaType=>"application/vnd.vmware.vcloud.cloneVAppParams+xml",
                   :ComplexTypeName=>"CloneVAppParamsType",
                   :SchemaLocation=>
                    "http://#{@host}#{@path}/v1.5/schema/master.xsd"},
                  {:MediaType=>
                    "application/vnd.vmware.vcloud.guestCustomizationSection+xml",
                   :ComplexTypeName=>"GuestCustomizationSectionType",
                   :SchemaLocation=>
                    "http://#{@host}#{@path}/v1.5/schema/master.xsd"},
                  {:MediaType=>"application/vnd.vmware.vcloud.task+xml",
                   :ComplexTypeName=>"TaskType",
                   :SchemaLocation=>
                    "http://#{@host}#{@path}/v1.5/schema/master.xsd"},
                  {:MediaType=>"application/vnd.vmware.vcloud.session+xml",
                   :ComplexTypeName=>"SessionType",
                   :SchemaLocation=>
                    "http://#{@host}#{@path}/v1.5/schema/master.xsd"},
                  {:MediaType=>"application/vnd.vmware.admin.vAppLeaseSettings+xml",
                   :ComplexTypeName=>"OrgLeaseSettingsType",
                   :SchemaLocation=>
                    "http://#{@host}#{@path}/v1.5/schema/master.xsd"},
                  {:MediaType=>"application/vnd.vmware.admin.importVmAsVAppParams+xml",
                   :ComplexTypeName=>"ImportVmAsVAppParamsType",
                   :SchemaLocation=>
                    "http://#{@host}#{@path}/v1.5/schema/vmwextensions.xsd"},
                  {:MediaType=>"application/vnd.vmware.admin.role+xml",
                   :ComplexTypeName=>"RoleType",
                   :SchemaLocation=>
                    "http://#{@host}#{@path}/v1.5/schema/master.xsd"},
                  {:MediaType=>"application/vnd.vmware.vcloud.rasdItem+xml",
                   :ComplexTypeName=>"RASD_Type",
                   :SchemaLocation=>
                    "http://#{@host}#{@path}/v1.5/schema/master.xsd"},
                  {:MediaType=>"application/vnd.vmware.vcloud.startupSection+xml",
                   :ComplexTypeName=>"StartupSection_Type",
                   :SchemaLocation=>
                    "http://schemas.dmtf.org/ovf/envelope/1/dsp8023_1.1.0.xsd"},
                  {:MediaType=>"application/vnd.vmware.vcloud.virtualHardwareSection+xml",
                   :ComplexTypeName=>"VirtualHardwareSection_Type",
                   :SchemaLocation=>
                    "http://schemas.dmtf.org/ovf/envelope/1/dsp8023_1.1.0.xsd"},
                  {:MediaType=>"application/vnd.vmware.vcloud.operatingSystemSection+xml",
                   :ComplexTypeName=>"OperatingSystemSection_Type",
                   :SchemaLocation=>
                    "http://schemas.dmtf.org/ovf/envelope/1/dsp8023_1.1.0.xsd"},
                  {:MediaType=>"application/vnd.vmware.vcloud.networkSection+xml",
                   :ComplexTypeName=>"NetworkSection_Type",
                   :SchemaLocation=>
                    "http://schemas.dmtf.org/ovf/envelope/1/dsp8023_1.1.0.xsd"},
                  {:MediaType=>"application/vnd.vmware.vcloud.vAppNetwork+xml",
                   :ComplexTypeName=>"VAppNetworkType",
                   :SchemaLocation=>
                    "http://#{@host}#{@path}/v1.5/schema/master.xsd"},
                  {:MediaType=>"application/vnd.vmware.vcloud.network+xml",
                   :ComplexTypeName=>"NetworkType",
                   :SchemaLocation=>
                    "http://#{@host}#{@path}/v1.5/schema/master.xsd"},
                  {:MediaType=>"application/vnd.vmware.vcloud.orgNetwork+xml",
                   :ComplexTypeName=>"OrgNetworkType",
                   :SchemaLocation=>
                    "http://#{@host}#{@path}/v1.5/schema/master.xsd"},
                  {:MediaType=>"application/vnd.vmware.admin.vmwexternalnet+xml",
                   :ComplexTypeName=>"VMWExternalNetworkType",
                   :SchemaLocation=>
                    "http://#{@host}#{@path}/v1.5/schema/vmwextensions.xsd"}]},
               {:Version=>"5.1",
                :LoginUrl=>make_href("sessions"),
                :MediaTypeMapping=>
                 [{:MediaType=>
                    "application/vnd.vmware.vcloud.instantiateVAppTemplateParams+xml",
                   :ComplexTypeName=>"InstantiateVAppTemplateParamsType",
                   :SchemaLocation=>
                    "http://#{@host}#{@path}/v1.5/schema/master.xsd"},
                  {:MediaType=>"application/vnd.vmware.admin.vmwprovidervdc+xml",
                   :ComplexTypeName=>"MergeParamsType",
                   :SchemaLocation=>
                    "http://#{@host}#{@path}/v1.5/schema/vmwextensions.xsd"},
                  {:MediaType=>
                    "application/vnd.vmware.admin.organizationFederationSettings+xml",
                   :ComplexTypeName=>"OrgFederationSettingsType",
                   :SchemaLocation=>
                    "http://#{@host}#{@path}/v1.5/schema/master.xsd"},
                  {:MediaType=>"application/vnd.vmware.admin.emailSettings+xml",
                   :ComplexTypeName=>"EmailSettingsType",
                   :SchemaLocation=>
                    "http://#{@host}#{@path}/v1.5/schema/vmwextensions.xsd"},
                  {:MediaType=>"application/vnd.vmware.admin.prepareHostParams+xml",
                   :ComplexTypeName=>"PrepareHostParamsType",
                   :SchemaLocation=>
                    "http://#{@host}#{@path}/v1.5/schema/vmwextensions.xsd"},
                  {:MediaType=>"application/vnd.vmware.vcloud.org+xml",
                   :ComplexTypeName=>"OrgType",
                   :SchemaLocation=>
                    "http://#{@host}#{@path}/v1.5/schema/master.xsd"},
                  {:MediaType=>"application/vnd.vmware.admin.aclRule+xml",
                   :ComplexTypeName=>"AclRuleType",
                   :SchemaLocation=>
                    "http://#{@host}#{@path}/v1.5/schema/vmwextensions.xsd"},
                  {:MediaType=>"application/vnd.vmware.admin.organizationLdapSettings+xml",
                   :ComplexTypeName=>"OrgLdapSettingsType",
                   :SchemaLocation=>
                    "http://#{@host}#{@path}/v1.5/schema/master.xsd"},
                  {:MediaType=>
                    "application/vnd.vmware.vcloud.networkConnectionSection+xml",
                   :ComplexTypeName=>"NetworkConnectionSectionType",
                   :SchemaLocation=>
                    "http://#{@host}#{@path}/v1.5/schema/master.xsd"},
                  {:MediaType=>"application/vnd.vmware.vcloud.owner+xml",
                   :ComplexTypeName=>"OwnerType",
                   :SchemaLocation=>
                    "http://#{@host}#{@path}/v1.5/schema/master.xsd"},
                  {:MediaType=>"application/vnd.vmware.admin.vdc+xml",
                   :ComplexTypeName=>"AdminVdcType",
                   :SchemaLocation=>
                    "http://#{@host}#{@path}/v1.5/schema/master.xsd"},
                  {:MediaType=>
                    "application/vnd.vmware.admin.importVmIntoExistingVAppParams+xml",
                   :ComplexTypeName=>"ImportVmIntoExistingVAppParamsType",
                   :SchemaLocation=>
                    "http://#{@host}#{@path}/v1.5/schema/vmwextensions.xsd"},
                  {:MediaType=>"application/vnd.vmware.vcloud.catalog+xml",
                   :ComplexTypeName=>"CatalogType",
                   :SchemaLocation=>
                    "http://#{@host}#{@path}/v1.5/schema/master.xsd"},
                  {:MediaType=>"application/vnd.vmware.vcloud.cloneVAppTemplateParams+xml",
                   :ComplexTypeName=>"CloneVAppTemplateParamsType",
                   :SchemaLocation=>
                    "http://#{@host}#{@path}/v1.5/schema/master.xsd"},
                  {:MediaType=>"application/vnd.vmware.admin.createVdcParams+xml",
                   :ComplexTypeName=>"CreateVdcParamsType",
                   :SchemaLocation=>
                    "http://#{@host}#{@path}/v1.5/schema/master.xsd"},
                  {:MediaType=>"application/vnd.vmware.admin.vmsObjectRefsList+xml",
                   :ComplexTypeName=>"VmObjectRefsListType",
                   :SchemaLocation=>
                    "http://#{@host}#{@path}/v1.5/schema/vmwextensions.xsd"},
                  {:MediaType=>"application/vnd.vmware.vcloud.undeployVAppParams+xml",
                   :ComplexTypeName=>"UndeployVAppParamsType",
                   :SchemaLocation=>
                    "http://#{@host}#{@path}/v1.5/schema/master.xsd"},
                  {:MediaType=>"application/vnd.vmware.vcloud.createSnapshotParams+xml",
                   :ComplexTypeName=>"CreateSnapshotParamsType",
                   :SchemaLocation=>
                    "http://#{@host}#{@path}/v1.5/schema/master.xsd"},
                  {:MediaType=>"application/vnd.vmware.admin.blockingTask+xml",
                   :ComplexTypeName=>"BlockingTaskType",
                   :SchemaLocation=>
                    "http://#{@host}#{@path}/v1.5/schema/vmwextensions.xsd"},
                  {:MediaType=>"application/vnd.vmware.admin.vmwPvdcStorageProfile+xml",
                   :ComplexTypeName=>"VMWProviderVdcStorageProfileType",
                   :SchemaLocation=>
                    "http://#{@host}#{@path}/v1.5/schema/vmwextensions.xsd"},
                  {:MediaType=>"application/vnd.vmware.vcloud.allocatedNetworkAddress+xml",
                   :ComplexTypeName=>"AllocatedIpAddressesType",
                   :SchemaLocation=>
                    "http://#{@host}#{@path}/v1.5/schema/master.xsd"},
                  {:MediaType=>"application/vnd.vmware.admin.vimServerNetworks+xml",
                   :ComplexTypeName=>"VimObjectRefListType",
                   :SchemaLocation=>
                    "http://#{@host}#{@path}/v1.5/schema/vmwextensions.xsd"},
                  {:MediaType=>
                    "application/vnd.vmware.admin.blockingTaskOperationParams+xml",
                   :ComplexTypeName=>"BlockingTaskOperationParamsType",
                   :SchemaLocation=>
                    "http://#{@host}#{@path}/v1.5/schema/vmwextensions.xsd"},
                  {:MediaType=>
                    "application/vnd.vmware.admin.updateProviderVdcStorageProfiles+xml",
                   :ComplexTypeName=>"UpdateProviderVdcStorageProfilesParamsType",
                   :SchemaLocation=>
                    "http://#{@host}#{@path}/v1.5/schema/vmwextensions.xsd"},
                  {:MediaType=>"application/vnd.vmware.admin.bundleUploadSocket+xml",
                   :ComplexTypeName=>"BundleUploadSocketType",
                   :SchemaLocation=>
                    "http://#{@host}#{@path}/v1.5/schema/vmwextensions.xsd"},
                  {:MediaType=>"application/vnd.vmware.admin.gateway+xml",
                   :ComplexTypeName=>"GatewayType",
                   :SchemaLocation=>
                    "http://#{@host}#{@path}/v1.5/schema/master.xsd"},
                  {:MediaType=>"application/vnd.vmware.vcloud.screenTicket+xml",
                   :ComplexTypeName=>"ScreenTicketType",
                   :SchemaLocation=>
                    "http://#{@host}#{@path}/v1.5/schema/master.xsd"},
                  {:MediaType=>"application/vnd.vmware.admin.resourceClassAction+xml",
                   :ComplexTypeName=>"ResourceClassActionType",
                   :SchemaLocation=>
                    "http://#{@host}#{@path}/v1.5/schema/vmwextensions.xsd"},
                  {:MediaType=>"application/vnd.vmware.admin.event+xml",
                   :ComplexTypeName=>"EventType",
                   :SchemaLocation=>
                    "http://#{@host}#{@path}/v1.5/schema/master.xsd"},
                  {:MediaType=>"application/vnd.vmware.vcloud.tasksList+xml",
                   :ComplexTypeName=>"TasksListType",
                   :SchemaLocation=>
                    "http://#{@host}#{@path}/v1.5/schema/master.xsd"},
                  {:MediaType=>"application/vnd.vmware.admin.migrateVmParams+xml",
                   :ComplexTypeName=>"MigrateParamsType",
                   :SchemaLocation=>
                    "http://#{@host}#{@path}/v1.5/schema/vmwextensions.xsd"},
                  {:MediaType=>"application/vnd.vmware.vcloud.diskCreateParams+xml",
                   :ComplexTypeName=>"DiskCreateParamsType",
                   :SchemaLocation=>
                    "http://#{@host}#{@path}/v1.5/schema/master.xsd"},
                  {:MediaType=>"application/vnd.vmware.vcloud.registerVAppParams+xml",
                   :ComplexTypeName=>"RegisterVAppParamsType",
                   :SchemaLocation=>
                    "http://#{@host}#{@path}/v1.5/schema/master.xsd"},
                  {:MediaType=>
                    "application/vnd.vmware.admin.organizationGeneralSettings+xml",
                   :ComplexTypeName=>"OrgGeneralSettingsType",
                   :SchemaLocation=>
                    "http://#{@host}#{@path}/v1.5/schema/master.xsd"},
                  {:MediaType=>"application/vnd.vmware.admin.registerVimServerParams+xml",
                   :ComplexTypeName=>"RegisterVimServerParamsType",
                   :SchemaLocation=>
                    "http://#{@host}#{@path}/v1.5/schema/vmwextensions.xsd"},
                  {:MediaType=>"application/vnd.vmware.admin.datastore+xml",
                   :ComplexTypeName=>"DatastoreType",
                   :SchemaLocation=>
                    "http://#{@host}#{@path}/v1.5/schema/vmwextensions.xsd"},
                  {:MediaType=>
                    "application/vnd.vmware.vcloud.diskAttachOrDetachParams+xml",
                   :ComplexTypeName=>"DiskAttachOrDetachParamsType",
                   :SchemaLocation=>
                    "http://#{@host}#{@path}/v1.5/schema/master.xsd"},
                  {:MediaType=>"application/vnd.vmware.admin.updateRightsParams+xml",
                   :ComplexTypeName=>"UpdateRightsParamsType",
                   :SchemaLocation=>
                    "http://#{@host}#{@path}/v1.5/schema/vmwextensions.xsd"},
                  {:MediaType=>"application/vnd.vmware.vcloud.metadata+xml",
                   :ComplexTypeName=>"MetadataType",
                   :SchemaLocation=>
                    "http://#{@host}#{@path}/v1.5/schema/master.xsd"},
                  {:MediaType=>"application/vnd.vmware.admin.vdcStorageProfile+xml",
                   :ComplexTypeName=>"AdminVdcStorageProfileType",
                   :SchemaLocation=>
                    "http://#{@host}#{@path}/v1.5/schema/master.xsd"},
                  {:MediaType=>"application/vnd.vmware.admin.systemSettings+xml",
                   :ComplexTypeName=>"SystemSettingsType",
                   :SchemaLocation=>
                    "http://#{@host}#{@path}/v1.5/schema/vmwextensions.xsd"},
                  {:MediaType=>"application/vnd.vmware.admin.vmwHostReferences+xml",
                   :ComplexTypeName=>"VMWHostReferencesType",
                   :SchemaLocation=>
                    "http://#{@host}#{@path}/v1.5/schema/vmwextensions.xsd"},
                  {:MediaType=>"application/vnd.vmware.admin.userEntityRights+xml",
                   :ComplexTypeName=>"UserEntityRightsType",
                   :SchemaLocation=>
                    "http://#{@host}#{@path}/v1.5/schema/vmwextensions.xsd"},
                  {:MediaType=>"application/vnd.vmware.vcloud.metadata.value+xml",
                   :ComplexTypeName=>"MetadataValueType",
                   :SchemaLocation=>
                    "http://#{@host}#{@path}/v1.5/schema/master.xsd"},
                  {:MediaType=>"application/vnd.vmware.vcloud.media+xml",
                   :ComplexTypeName=>"MediaType",
                   :SchemaLocation=>
                    "http://#{@host}#{@path}/v1.5/schema/master.xsd"},
                  {:MediaType=>"application/vnd.vmware.admin.brandingSettings+xml",
                   :ComplexTypeName=>"BrandingSettingsType",
                   :SchemaLocation=>
                    "http://#{@host}#{@path}/v1.5/schema/vmwextensions.xsd"},
                  {:MediaType=>"application/vnd.vmware.admin.updateVdcStorageProfiles+xml",
                   :ComplexTypeName=>"UpdateVdcStorageProfilesType",
                   :SchemaLocation=>
                    "http://#{@host}#{@path}/v1.5/schema/master.xsd"},
                  {:MediaType=>"application/vnd.vmware.admin.amqpSettings+xml",
                   :ComplexTypeName=>"AmqpSettingsType",
                   :SchemaLocation=>
                    "http://#{@host}#{@path}/v1.5/schema/vmwextensions.xsd"},
                  {:MediaType=>"application/vnd.vmware.admin.resourceClass+xml",
                   :ComplexTypeName=>"ResourceClassType",
                   :SchemaLocation=>
                    "http://#{@host}#{@path}/v1.5/schema/vmwextensions.xsd"},
                  {:MediaType=>"application/vnd.vmware.vcloud.deployVAppParams+xml",
                   :ComplexTypeName=>"DeployVAppParamsType",
                   :SchemaLocation=>
                    "http://#{@host}#{@path}/v1.5/schema/master.xsd"},
                  {:MediaType=>"application/vnd.vmware.admin.resourcePoolList+xml",
                   :ComplexTypeName=>"ResourcePoolListType",
                   :SchemaLocation=>
                    "http://#{@host}#{@path}/v1.5/schema/vmwextensions.xsd"},
                  {:MediaType=>"application/vnd.vmware.vcloud.vdcStorageProfile+xml",
                   :ComplexTypeName=>"VdcStorageProfileType",
                   :SchemaLocation=>
                    "http://#{@host}#{@path}/v1.5/schema/master.xsd"},
                  {:MediaType=>"application/vnd.vmware.vcloud.networkConfigSection+xml",
                   :ComplexTypeName=>"NetworkConfigSectionType",
                   :SchemaLocation=>
                    "http://#{@host}#{@path}/v1.5/schema/master.xsd"},
                  {:MediaType=>
                    "application/vnd.vmware.admin.OrganizationVdcResourcePoolSet+xml",
                   :ComplexTypeName=>"OrganizationResourcePoolSetType",
                   :SchemaLocation=>
                    "http://#{@host}#{@path}/v1.5/schema/vmwextensions.xsd"},
                  {:MediaType=>"application/vnd.vmware.admin.createProviderVdcParams+xml",
                   :ComplexTypeName=>"VMWProviderVdcParamsType",
                   :SchemaLocation=>
                    "http://#{@host}#{@path}/v1.5/schema/vmwextensions.xsd"},
                  {:MediaType=>"application/vnd.vmware.admin.publishCatalogParams+xml",
                   :ComplexTypeName=>"PublishCatalogParamsType",
                   :SchemaLocation=>
                    "http://#{@host}#{@path}/v1.5/schema/master.xsd"},
                  {:MediaType=>"application/vnd.vmware.admin.vmwExtension+xml",
                   :ComplexTypeName=>"VMWExtensionType",
                   :SchemaLocation=>
                    "http://#{@host}#{@path}/v1.5/schema/vmwextensions.xsd"},
                  {:MediaType=>"application/vnd.vmware.admin.notificationsSettings+xml",
                   :ComplexTypeName=>"NotificationsSettingsType",
                   :SchemaLocation=>
                    "http://#{@host}#{@path}/v1.5/schema/vmwextensions.xsd"},
                  {:MediaType=>"application/vnd.vmware.admin.right+xml",
                   :ComplexTypeName=>"RightType",
                   :SchemaLocation=>
                    "http://#{@host}#{@path}/v1.5/schema/master.xsd"},
                  {:MediaType=>"application/vnd.vmware.vcloud.supportedSystemsInfo+xml",
                   :ComplexTypeName=>"SupportedOperatingSystemsInfoType",
                   :SchemaLocation=>
                    "http://#{@host}#{@path}/v1.5/schema/master.xsd"},
                  {:MediaType=>"application/vnd.vmware.vm.complianceResult+xml",
                   :ComplexTypeName=>"ComplianceResultType",
                   :SchemaLocation=>
                    "http://#{@host}#{@path}/v1.5/schema/master.xsd"},
                  {:MediaType=>"application/vnd.vmware.vcloud.orgList+xml",
                   :ComplexTypeName=>"OrgListType",
                   :SchemaLocation=>
                    "http://#{@host}#{@path}/v1.5/schema/master.xsd"},
                  {:MediaType=>"application/vnd.vmware.admin.vmwVimServerReferences+xml",
                   :ComplexTypeName=>"VMWVimServerReferencesType",
                   :SchemaLocation=>
                    "http://#{@host}#{@path}/v1.5/schema/vmwextensions.xsd"},
                  {:MediaType=>"application/vnd.vmware.admin.vmwexternalnet+xml",
                   :ComplexTypeName=>"VMWExternalNetworkType",
                   :SchemaLocation=>
                    "http://#{@host}#{@path}/v1.5/schema/vmwextensions.xsd"},
                  {:MediaType=>"application/vnd.vmware.vcloud.entity+xml",
                   :ComplexTypeName=>"EntityType",
                   :SchemaLocation=>
                    "http://#{@host}#{@path}/v1.5/schema/master.xsd"},
                  {:MediaType=>"application/vnd.vmware.vcloud.cloneMediaParams+xml",
                   :ComplexTypeName=>"CloneMediaParamsType",
                   :SchemaLocation=>
                    "http://#{@host}#{@path}/v1.5/schema/master.xsd"},
                  {:MediaType=>"application/vnd.vmware.admin.licensingReport+xml",
                   :ComplexTypeName=>"LicensingReportType",
                   :SchemaLocation=>
                    "http://#{@host}#{@path}/v1.5/schema/vmwextensions.xsd"},
                  {:MediaType=>"application/vnd.vmware.admin.apiDefinition+xml",
                   :ComplexTypeName=>"ApiDefinitionType",
                   :SchemaLocation=>
                    "http://#{@host}#{@path}/v1.5/schema/vmwextensions.xsd"},
                  {:MediaType=>"application/vnd.vmware.admin.vshieldmanager+xml",
                   :ComplexTypeName=>"ShieldManagerType",
                   :SchemaLocation=>
                    "http://#{@host}#{@path}/v1.5/schema/vmwextensions.xsd"},
                  {:MediaType=>"application/vnd.vmware.admin.blockingTaskList+xml",
                   :ComplexTypeName=>"ReferencesType",
                   :SchemaLocation=>
                    "http://#{@host}#{@path}/v1.5/schema/master.xsd"},
                  {:MediaType=>"application/vnd.vmware.vcloud.vmPendingAnswer+xml",
                   :ComplexTypeName=>"VmQuestionAnswerType",
                   :SchemaLocation=>
                    "http://#{@host}#{@path}/v1.5/schema/master.xsd"},
                  {:MediaType=>"application/vnd.vmware.vcloud.rasdItemsList+xml",
                   :ComplexTypeName=>"RasdItemsListType",
                   :SchemaLocation=>
                    "http://#{@host}#{@path}/v1.5/schema/master.xsd"},
                  {:MediaType=>"application/vnd.vmware.admin.generalSettings+xml",
                   :ComplexTypeName=>"GeneralSettingsType",
                   :SchemaLocation=>
                    "http://#{@host}#{@path}/v1.5/schema/vmwextensions.xsd"},
                  {:MediaType=>"application/vnd.vmware.admin.group+xml",
                   :ComplexTypeName=>"GroupType",
                   :SchemaLocation=>
                    "http://#{@host}#{@path}/v1.5/schema/master.xsd"},
                  {:MediaType=>"application/vnd.vmware.vcloud.controlAccess+xml",
                   :ComplexTypeName=>"ControlAccessParamsType",
                   :SchemaLocation=>
                    "http://#{@host}#{@path}/v1.5/schema/master.xsd"},
                  {:MediaType=>"application/vnd.vmware.admin.user+xml",
                   :ComplexTypeName=>"UserType",
                   :SchemaLocation=>
                    "http://#{@host}#{@path}/v1.5/schema/master.xsd"},
                  {:MediaType=>"application/vnd.vmware.admin.vmwvirtualcenter+xml",
                   :ComplexTypeName=>"VimServerType",
                   :SchemaLocation=>
                    "http://#{@host}#{@path}/v1.5/schema/vmwextensions.xsd"},
                  {:MediaType=>"application/vnd.vmware.admin.strandedItem+xml",
                   :ComplexTypeName=>"StrandedItemType",
                   :SchemaLocation=>
                    "http://#{@host}#{@path}/v1.5/schema/vmwextensions.xsd"},
                  {:MediaType=>"application/vnd.vmware.vcloud.leaseSettingsSection+xml",
                   :ComplexTypeName=>"LeaseSettingsSectionType",
                   :SchemaLocation=>
                    "http://#{@host}#{@path}/v1.5/schema/master.xsd"},
                  {:MediaType=>
                    "application/vnd.vmware.admin.organizationEmailSettings+xml",
                   :ComplexTypeName=>"OrgEmailSettingsType",
                   :SchemaLocation=>
                    "http://#{@host}#{@path}/v1.5/schema/master.xsd"},
                  {:MediaType=>"application/vnd.vmware.vcloud.cloneVAppParams+xml",
                   :ComplexTypeName=>"CloneVAppParamsType",
                   :SchemaLocation=>
                    "http://#{@host}#{@path}/v1.5/schema/master.xsd"},
                  {:MediaType=>"application/vnd.vmware.vcloud.task+xml",
                   :ComplexTypeName=>"TaskType",
                   :SchemaLocation=>
                    "http://#{@host}#{@path}/v1.5/schema/master.xsd"},
                  {:MediaType=>"application/vnd.vmware.admin.vAppLeaseSettings+xml",
                   :ComplexTypeName=>"OrgLeaseSettingsType",
                   :SchemaLocation=>
                    "http://#{@host}#{@path}/v1.5/schema/master.xsd"},
                  {:MediaType=>"application/vnd.vmware.admin.role+xml",
                   :ComplexTypeName=>"RoleType",
                   :SchemaLocation=>
                    "http://#{@host}#{@path}/v1.5/schema/master.xsd"},
                  {:MediaType=>"application/vnd.vmware.admin.vmwProviderVdcReferences+xml",
                   :ComplexTypeName=>"VMWProviderVdcReferencesType",
                   :SchemaLocation=>
                    "http://#{@host}#{@path}/v1.5/schema/vmwextensions.xsd"},
                  {:MediaType=>"application/vnd.vmware.vcloud.customizationSection+xml",
                   :ComplexTypeName=>"CustomizationSectionType",
                   :SchemaLocation=>
                    "http://#{@host}#{@path}/v1.5/schema/master.xsd"},
                  {:MediaType=>"application/vnd.vmware.admin.service+xml",
                   :ComplexTypeName=>"ServiceType",
                   :SchemaLocation=>
                    "http://#{@host}#{@path}/v1.5/schema/vmwextensions.xsd"},
                  {:MediaType=>"application/vnd.vmware.vcloud.relocateVmParams+xml",
                   :ComplexTypeName=>"RelocateParamsType",
                   :SchemaLocation=>
                    "http://#{@host}#{@path}/v1.5/schema/master.xsd"},
                  {:MediaType=>"application/vnd.vmware.admin.rights+xml",
                   :ComplexTypeName=>"RightRefsType",
                   :SchemaLocation=>
                    "http://#{@host}#{@path}/v1.5/schema/vmwextensions.xsd"},
                  {:MediaType=>
                    "application/vnd.vmware.admin.vmwExternalNetworkReferences+xml",
                   :ComplexTypeName=>"VMWExternalNetworkReferencesType",
                   :SchemaLocation=>
                    "http://#{@host}#{@path}/v1.5/schema/vmwextensions.xsd"},
                  {:MediaType=>"application/vnd.vmware.vcloud.disk+xml",
                   :ComplexTypeName=>"DiskType",
                   :SchemaLocation=>
                    "http://#{@host}#{@path}/v1.5/schema/master.xsd"},
                  {:MediaType=>"application/vnd.vmware.admin.kerberosSettings+xml",
                   :ComplexTypeName=>"KerberosSettingsType",
                   :SchemaLocation=>
                    "http://#{@host}#{@path}/v1.5/schema/vmwextensions.xsd"},
                  {:MediaType=>"application/vnd.vmware.admin.operationLimitsSettings+xml",
                   :ComplexTypeName=>"OrgOperationLimitsSettingsType",
                   :SchemaLocation=>
                    "http://#{@host}#{@path}/v1.5/schema/master.xsd"},
                  {:MediaType=>"application/vnd.vmware.admin.host+xml",
                   :ComplexTypeName=>"HostType",
                   :SchemaLocation=>
                    "http://#{@host}#{@path}/v1.5/schema/vmwextensions.xsd"},
                  {:MediaType=>"application/vnd.vmware.vcloud.catalogItem+xml",
                   :ComplexTypeName=>"CatalogItemType",
                   :SchemaLocation=>
                    "http://#{@host}#{@path}/v1.5/schema/master.xsd"},
                  {:MediaType=>"application/vnd.vmware.admin.entityReferences+xml",
                   :ComplexTypeName=>"EntityReferencesType",
                   :SchemaLocation=>
                    "http://#{@host}#{@path}/v1.5/schema/vmwextensions.xsd"},
                  {:MediaType=>"application/vnd.vmware.vcloud.vdc+xml",
                   :ComplexTypeName=>"VdcType",
                   :SchemaLocation=>
                    "http://#{@host}#{@path}/v1.5/schema/master.xsd"},
                  {:MediaType=>"application/vnd.vmware.admin.catalog+xml",
                   :ComplexTypeName=>"AdminCatalogType",
                   :SchemaLocation=>
                    "http://#{@host}#{@path}/v1.5/schema/master.xsd"},
                  {:MediaType=>"application/vnd.vmware.vcloud.recomposeVAppParams+xml",
                   :ComplexTypeName=>"RecomposeVAppParamsType",
                   :SchemaLocation=>
                    "http://#{@host}#{@path}/v1.5/schema/master.xsd"},
                  {:MediaType=>"application/vnd.vmware.admin.orgVdcNetwork+xml",
                   :ComplexTypeName=>"OrgVdcNetworkType",
                   :SchemaLocation=>
                    "http://#{@host}#{@path}/v1.5/schema/master.xsd"},
                  {:MediaType=>"application/vnd.vmware.admin.providervdc+xml",
                   :ComplexTypeName=>"ProviderVdcType",
                   :SchemaLocation=>
                    "http://#{@host}#{@path}/v1.5/schema/master.xsd"},
                  {:MediaType=>
                    "application/vnd.vmware.admin.blockingTaskUpdateProgressOperationParams+xml",
                   :ComplexTypeName=>"BlockingTaskUpdateProgressParamsType",
                   :SchemaLocation=>
                    "http://#{@host}#{@path}/v1.5/schema/vmwextensions.xsd"},
                  {:MediaType=>"application/vnd.vmware.admin.vdcReferences+xml",
                   :ComplexTypeName=>"VdcReferencesType",
                   :SchemaLocation=>
                    "http://#{@host}#{@path}/v1.5/schema/master.xsd"},
                  {:MediaType=>
                    "application/vnd.vmware.admin.systemPasswordPolicySettings+xml",
                   :ComplexTypeName=>"SystemPasswordPolicySettingsType",
                   :SchemaLocation=>
                    "http://#{@host}#{@path}/v1.5/schema/vmwextensions.xsd"},
                  {:MediaType=>"application/vnd.vmware.vcloud.vApp+xml",
                   :ComplexTypeName=>"VAppType",
                   :SchemaLocation=>
                    "http://#{@host}#{@path}/v1.5/schema/master.xsd"},
                  {:MediaType=>"application/vnd.vmware.admin.vmwprovidervdc+xml",
                   :ComplexTypeName=>"VMWProviderVdcType",
                   :SchemaLocation=>
                    "http://#{@host}#{@path}/v1.5/schema/vmwextensions.xsd"},
                  {:MediaType=>"application/vnd.vmware.vcloud.vms+xml",
                   :ComplexTypeName=>"VmsType",
                   :SchemaLocation=>
                    "http://#{@host}#{@path}/v1.5/schema/master.xsd"},
                  {:MediaType=>"application/vnd.vmware.admin.orgSettings+xml",
                   :ComplexTypeName=>"OrgSettingsType",
                   :SchemaLocation=>
                    "http://#{@host}#{@path}/v1.5/schema/master.xsd"},
                  {:MediaType=>"application/vnd.vmware.admin.apiFilter+xml",
                   :ComplexTypeName=>"ApiFilterType",
                   :SchemaLocation=>
                    "http://#{@host}#{@path}/v1.5/schema/vmwextensions.xsd"},
                  {:MediaType=>"application/vnd.vmware.vcloud.captureVAppParams+xml",
                   :ComplexTypeName=>"CaptureVAppParamsType",
                   :SchemaLocation=>
                    "http://#{@host}#{@path}/v1.5/schema/master.xsd"},
                  {:MediaType=>"application/vnd.vmware.vcloud.vmCapabilitiesSection+xml",
                   :ComplexTypeName=>"VmCapabilitiesType",
                   :SchemaLocation=>
                    "http://#{@host}#{@path}/v1.5/schema/master.xsd"},
                  {:MediaType=>"application/vnd.vmware.vcloud.runtimeInfoSection+xml",
                   :ComplexTypeName=>"RuntimeInfoSectionType",
                   :SchemaLocation=>
                    "http://#{@host}#{@path}/v1.5/schema/master.xsd"},
                  {:MediaType=>"application/vnd.vmware.admin.amqpSettingsTest+xml",
                   :ComplexTypeName=>"AmqpSettingsTestType",
                   :SchemaLocation=>
                    "http://#{@host}#{@path}/v1.5/schema/vmwextensions.xsd"},
                  {:MediaType=>
                    "application/vnd.vmware.admin.importVmAsVAppTemplateParams+xml",
                   :ComplexTypeName=>"ImportVmAsVAppTemplateParamsType",
                   :SchemaLocation=>
                    "http://#{@host}#{@path}/v1.5/schema/vmwextensions.xsd"},
                  {:MediaType=>
                    "application/vnd.vmware.admin.guestPersonalizationSettings+xml",
                   :ComplexTypeName=>"OrgGuestPersonalizationSettingsType",
                   :SchemaLocation=>
                    "http://#{@host}#{@path}/v1.5/schema/master.xsd"},
                  {:MediaType=>"application/vnd.vmware.admin.orgNetwork+xml",
                   :ComplexTypeName=>"OrgNetworkType",
                   :SchemaLocation=>
                    "http://#{@host}#{@path}/v1.5/schema/master.xsd"},
                  {:MediaType=>"application/vnd.vmware.admin.fileDescriptor+xml",
                   :ComplexTypeName=>"FileDescriptorType",
                   :SchemaLocation=>
                    "http://#{@host}#{@path}/v1.5/schema/vmwextensions.xsd"},
                  {:MediaType=>
                    "application/vnd.vmware.vcloud.uploadVAppTemplateParams+xml",
                   :ComplexTypeName=>"UploadVAppTemplateParamsType",
                   :SchemaLocation=>
                    "http://#{@host}#{@path}/v1.5/schema/master.xsd"},
                  {:MediaType=>"application/vnd.vmware.admin.licensingReportList+xml",
                   :ComplexTypeName=>"LicensingReportListType",
                   :SchemaLocation=>
                    "http://#{@host}#{@path}/v1.5/schema/vmwextensions.xsd"},
                  {:MediaType=>"application/vnd.vmware.admin.vmwNetworkPool+xml",
                   :ComplexTypeName=>"VMWNetworkPoolType",
                   :SchemaLocation=>
                    "http://#{@host}#{@path}/v1.5/schema/vmwextensions.xsd"},
                  {:MediaType=>"application/vnd.vmware.admin.taskOperationList+xml",
                   :ComplexTypeName=>"TaskOperationListType",
                   :SchemaLocation=>
                    "http://#{@host}#{@path}/v1.5/schema/master.xsd"},
                  {:MediaType=>"application/vnd.vmware.admin.vSphereWebClientUrl+xml",
                   :ComplexTypeName=>"VSphereWebClientUrlType",
                   :SchemaLocation=>
                    "http://#{@host}#{@path}/v1.5/schema/vmwextensions.xsd"},
                  {:MediaType=>"application/vnd.vmware.vcloud.productSections+xml",
                   :ComplexTypeName=>"ProductSectionListType",
                   :SchemaLocation=>
                    "http://#{@host}#{@path}/v1.5/schema/master.xsd"},
                  {:MediaType=>"application/vnd.vmware.admin.blockingTaskSettings+xml",
                   :ComplexTypeName=>"BlockingTaskSettingsType",
                   :SchemaLocation=>
                    "http://#{@host}#{@path}/v1.5/schema/vmwextensions.xsd"},
                  {:MediaType=>"application/vnd.vmware.vcloud.vAppTemplate+xml",
                   :ComplexTypeName=>"VAppTemplateType",
                   :SchemaLocation=>
                    "http://#{@host}#{@path}/v1.5/schema/master.xsd"},
                  {:MediaType=>
                    "application/vnd.vmware.admin.organizationPasswordPolicySettings+xml",
                   :ComplexTypeName=>"OrgPasswordPolicySettingsType",
                   :SchemaLocation=>
                    "http://#{@host}#{@path}/v1.5/schema/master.xsd"},
                  {:MediaType=>
                    "application/vnd.vmware.vcloud.mediaInsertOrEjectParams+xml",
                   :ComplexTypeName=>"MediaInsertOrEjectParamsType",
                   :SchemaLocation=>
                    "http://#{@host}#{@path}/v1.5/schema/master.xsd"},
                  {:MediaType=>"application/vnd.vmware.vcloud.vmPendingQuestion+xml",
                   :ComplexTypeName=>"VmPendingQuestionType",
                   :SchemaLocation=>
                    "http://#{@host}#{@path}/v1.5/schema/master.xsd"},
                  {:MediaType=>"application/vnd.vmware.admin.organization+xml",
                   :ComplexTypeName=>"AdminOrgType",
                   :SchemaLocation=>
                    "http://#{@host}#{@path}/v1.5/schema/master.xsd"},
                  {:MediaType=>"application/vnd.vmware.admin.ldapSettings+xml",
                   :ComplexTypeName=>"LdapSettingsType",
                   :SchemaLocation=>
                    "http://#{@host}#{@path}/v1.5/schema/vmwextensions.xsd"},
                  {:MediaType=>"application/vnd.vmware.vcloud.snapshotSection+xml",
                   :ComplexTypeName=>"SnapshotSectionType",
                   :SchemaLocation=>
                    "http://#{@host}#{@path}/v1.5/schema/master.xsd"},
                  {:MediaType=>
                    "application/vnd.vmware.admin.vAppTemplateLeaseSettings+xml",
                   :ComplexTypeName=>"OrgVAppTemplateLeaseSettingsType",
                   :SchemaLocation=>
                    "http://#{@host}#{@path}/v1.5/schema/master.xsd"},
                  {:MediaType=>"application/vnd.vmware.admin.importMediaParams+xml",
                   :ComplexTypeName=>"ImportMediaParamsType",
                   :SchemaLocation=>
                    "http://#{@host}#{@path}/v1.5/schema/vmwextensions.xsd"},
                  {:MediaType=>
                    "application/vnd.vmware.admin.resourcePoolSetUpdateParams+xml",
                   :ComplexTypeName=>"UpdateResourcePoolSetParamsType",
                   :SchemaLocation=>
                    "http://#{@host}#{@path}/v1.5/schema/vmwextensions.xsd"},
                  {:MediaType=>"application/vnd.vmware.admin.licenseSettings+xml",
                   :ComplexTypeName=>"LicenseType",
                   :SchemaLocation=>
                    "http://#{@host}#{@path}/v1.5/schema/vmwextensions.xsd"},
                  {:MediaType=>"application/vnd.vmware.admin.bundleUploadParams+xml",
                   :ComplexTypeName=>"BundleUploadParamsType",
                   :SchemaLocation=>
                    "http://#{@host}#{@path}/v1.5/schema/vmwextensions.xsd"},
                  {:MediaType=>"application/vnd.vmware.admin.vmwNetworkPoolReferences+xml",
                   :ComplexTypeName=>"VMWNetworkPoolReferencesType",
                   :SchemaLocation=>
                    "http://#{@host}#{@path}/v1.5/schema/vmwextensions.xsd"},
                  {:MediaType=>"application/vnd.vmware.admin.vcloud+xml",
                   :ComplexTypeName=>"VCloudType",
                   :SchemaLocation=>
                    "http://#{@host}#{@path}/v1.5/schema/master.xsd"},
                  {:MediaType=>"application/vnd.vmware.admin.serviceResource+xml",
                   :ComplexTypeName=>"ServiceResourceType",
                   :SchemaLocation=>
                    "http://#{@host}#{@path}/v1.5/schema/vmwextensions.xsd"},
                  {:MediaType=>"application/vnd.vmware.vcloud.composeVAppParams+xml",
                   :ComplexTypeName=>"ComposeVAppParamsType",
                   :SchemaLocation=>
                    "http://#{@host}#{@path}/v1.5/schema/master.xsd"},
                  {:MediaType=>
                    "application/vnd.vmware.admin.vmwProviderVdcResourcePool+xml",
                   :ComplexTypeName=>"VMWProviderVdcResourcePoolSetType",
                   :SchemaLocation=>
                    "http://#{@host}#{@path}/v1.5/schema/vmwextensions.xsd"},
                  {:MediaType=>"application/vnd.vmware.vcloud.vm+xml",
                   :ComplexTypeName=>"VmType",
                   :SchemaLocation=>
                    "http://#{@host}#{@path}/v1.5/schema/master.xsd"},
                  {:MediaType=>
                    "application/vnd.vmware.vcloud.guestCustomizationSection+xml",
                   :ComplexTypeName=>"GuestCustomizationSectionType",
                   :SchemaLocation=>
                    "http://#{@host}#{@path}/v1.5/schema/master.xsd"},
                  {:MediaType=>"application/vnd.vmware.vcloud.session+xml",
                   :ComplexTypeName=>"SessionType",
                   :SchemaLocation=>
                    "http://#{@host}#{@path}/v1.5/schema/master.xsd"},
                  {:MediaType=>"application/vnd.vmware.admin.pvdcStorageProfile+xml",
                   :ComplexTypeName=>"ProviderVdcStorageProfileType",
                   :SchemaLocation=>
                    "http://#{@host}#{@path}/v1.5/schema/master.xsd"},
                  {:MediaType=>"application/vnd.vmware.admin.vmwStorageProfiles+xml",
                   :ComplexTypeName=>"VMWStorageProfilesType",
                   :SchemaLocation=>
                    "http://#{@host}#{@path}/v1.5/schema/vmwextensions.xsd"},
                  {:MediaType=>"application/vnd.vmware.admin.importVmAsVAppParams+xml",
                   :ComplexTypeName=>"ImportVmAsVAppParamsType",
                   :SchemaLocation=>
                    "http://#{@host}#{@path}/v1.5/schema/vmwextensions.xsd"},
                  {:MediaType=>"application/vnd.vmware.admin.serviceLink+xml",
                   :ComplexTypeName=>"ServiceLinkType",
                   :SchemaLocation=>
                    "http://#{@host}#{@path}/v1.5/schema/vmwextensions.xsd"},
                  {:MediaType=>"application/vnd.vmware.vcloud.enableDownloadParams+xml",
                   :ComplexTypeName=>"EnableDownloadParamsType",
                   :SchemaLocation=>
                    "http://#{@host}#{@path}/v1.5/schema/master.xsd"},
                  {:MediaType=>"application/vnd.vmware.vcloud.rasdItem+xml",
                   :ComplexTypeName=>"RASD_Type",
                   :SchemaLocation=>
                    "http://#{@host}#{@path}/v1.5/schema/master.xsd"},
                  {:MediaType=>"application/vnd.vmware.vcloud.startupSection+xml",
                   :ComplexTypeName=>"StartupSection_Type",
                   :SchemaLocation=>
                    "http://schemas.dmtf.org/ovf/envelope/1/dsp8023_1.1.0.xsd"},
                  {:MediaType=>"application/vnd.vmware.vcloud.virtualHardwareSection+xml",
                   :ComplexTypeName=>"VirtualHardwareSection_Type",
                   :SchemaLocation=>
                    "http://schemas.dmtf.org/ovf/envelope/1/dsp8023_1.1.0.xsd"},
                  {:MediaType=>"application/vnd.vmware.vcloud.operatingSystemSection+xml",
                   :ComplexTypeName=>"OperatingSystemSection_Type",
                   :SchemaLocation=>
                    "http://schemas.dmtf.org/ovf/envelope/1/dsp8023_1.1.0.xsd"},
                  {:MediaType=>"application/vnd.vmware.vcloud.networkSection+xml",
                   :ComplexTypeName=>"NetworkSection_Type",
                   :SchemaLocation=>
                    "http://schemas.dmtf.org/ovf/envelope/1/dsp8023_1.1.0.xsd"},
                  {:MediaType=>"application/vnd.vmware.vcloud.vAppNetwork+xml",
                   :ComplexTypeName=>"VAppNetworkType",
                   :SchemaLocation=>
                    "http://#{@host}#{@path}/v1.5/schema/master.xsd"},
                  {:MediaType=>"application/vnd.vmware.vcloud.network+xml",
                   :ComplexTypeName=>"NetworkType",
                   :SchemaLocation=>
                    "http://#{@host}#{@path}/v1.5/schema/master.xsd"},
                  {:MediaType=>"application/vnd.vmware.vcloud.orgNetwork+xml",
                   :ComplexTypeName=>"OrgNetworkType",
                   :SchemaLocation=>
                    "http://#{@host}#{@path}/v1.5/schema/master.xsd"},
                  {:MediaType=>"application/vnd.vmware.admin.vmwexternalnet+xml",
                   :ComplexTypeName=>"VMWExternalNetworkType",
                   :SchemaLocation=>
                    "http://#{@host}#{@path}/v1.5/schema/vmwextensions.xsd"}]}]}

          Excon::Response.new(
            :body => body,
            :headers => {'Content-Type' => 'text/xml'},
            :status => 200
          )
        end
      end
    end
  end
end

Size

Lines of code
1150