VMware vSphere Automation SDK Perl The VMware vSphere Automation SDK for Perl supports the client-side vSphere Automation API for access to vSphere services and capabilities

- Main Page
- Classes
- Files

- Class List
- Class Index
- Class Hierarchy
- Class Members

All Classes Files Functions
List of all members
Com::Vmware::Vapi::Std::Errors::InvalidElementType Class Reference
Inheritance diagram for Com::Vmware::Vapi::Std::Errors::InvalidElementType:

## Avaliable Methods
public method | new ()

## Detailed Description

The `Com::Vmware::Vapi::Std::Errors::InvalidElementType` error indicates that the server was unable to fulfil the request because an element of a specific type cannot be a member of particular group.

This error could be reported, for example, if an attempt is made to put an element into the wrong type of container.

Examples:

- Attempt to put a virtual machine into a folder that can only contain hosts.
- Attempt to attach a SCSI virtual disk to an IDE port.

Counterexamples:

- A parameter has a value that is not of the expected type. The class Com::Vmware::Vapi::Std::Errors::InvalidArgument error would be used instead.

## Member Function Documentation

public method Com::Vmware::Vapi::Std::Errors::InvalidElementType::new | ( |  | ) |

Constructor to initialize the Com::Vmware::Vapi::Std::Errors::InvalidElementType structure

Return values

  Blessed | object

Code:
click to view
# Number of lines of code in new: 14
sub new {
my ($class, %args) = @_;
$class = ref($class) || $class;
my $validatorList = [];
my $self = $class->SUPER::new('validator_list' => $validatorList, %args);
$self->set_binding_class('binding_class' => 'Com::Vmware::Vapi::Std::Errors::InvalidElementType');
$self->set_binding_name('name' => 'com.vmware.vapi.std.errors.invalid_element_type');
bless $self, $class;
return $self;
}

The documentation for this class was generated from the following file:

- Com/Vmware/Vapi/Std/Errors/InvalidElementType.pm