Class: Com::Vmware::Vcenter::Host::CreateSpec
- Inherits:
-
VAPI::Bindings::VapiStruct
- Object
- VAPI::Bindings::VapiStruct
- Com::Vmware::Vcenter::Host::CreateSpec
- Defined in:
- /build/mts/release/bora-4571906/build/sdk/aggregated-bindings/ruby/com/vmware/vcenter.rb
Overview
The ``Com::Vmware::Vcenter::Host::CreateSpec`` class defines the information used to create a host.
Defined Under Namespace
Classes: ThumbprintVerification
Instance Attribute Summary (collapse)
-
- (String?) folder
Host and cluster folder in which the new standalone host should be created.
-
- (Boolean?) force_add
Whether host should be added to the vCenter Server even if it is being managed by another vCenter Server.
-
- (String) hostname
The IP address or DNS resolvable name of the host.
-
- (String) password
The password for the administrator account on the host.
-
- (Fixnum?) port
The port of the host.
-
- (String) thumbprint
The thumbprint of the SSL certificate, which the host is expected to have.
-
- (Com::Vmware::Vcenter::Host::CreateSpec::ThumbprintVerification) thumbprint_verification
Type of host’s SSL certificate verification to be done.
-
- (String) user_name
The administrator account on the host.
Class Method Summary (collapse)
-
+ (VAPI::Bindings::StructType) binding_type
Holds (gets or creates) the binding type metadata for this structure type.
Instance Method Summary (collapse)
-
- (CreateSpec) initialize(ruby_values = nil, struct_value = nil)
constructor
Constructs a new instance.
Constructor Details
- (CreateSpec) initialize(ruby_values = nil, struct_value = nil)
Constructs a new instance.
1595 1596 1597 |
# File '/build/mts/release/bora-4571906/build/sdk/aggregated-bindings/ruby/com/vmware/vcenter.rb', line 1595 def initialize(ruby_values=nil, struct_value=nil) super(self.class.binding_type, ruby_values, struct_value) end |
Instance Attribute Details
- (String?) folder
Host and cluster folder in which the new standalone host should be created. This field is currently required. In the future, if this field is nil , the system will attempt to choose a suitable folder for the host; if a folder cannot be chosen, the host creation operation will fail.
1558 1559 1560 1561 1562 1563 1564 1565 1566 1567 1568 1569 1570 1571 1572 1573 1574 1575 1576 1577 1578 1579 1580 1581 1582 1583 1584 1585 1586 1587 1588 1589 1590 1591 1592 1593 1594 1595 1596 1597 1598 1599 1600 1601 1602 1603 1604 1605 1606 1607 1608 1609 1610 1611 1612 1613 1614 1615 1616 1617 1618 1619 1620 1621 1622 1623 1624 1625 1626 1627 1628 1629 1630 1631 1632 1633 1634 1635 1636 1637 1638 1639 1640 1641 1642 1643 1644 1645 1646 1647 1648 1649 1650 1651 1652 1653 1654 1655 1656 1657 |
# File '/build/mts/release/bora-4571906/build/sdk/aggregated-bindings/ruby/com/vmware/vcenter.rb', line 1558 class CreateSpec < VAPI::Bindings::VapiStruct class << self # Holds (gets or creates) the binding type metadata for this structure type. # @scope class # @return [VAPI::Bindings::StructType] the binding type def binding_type @binding_type ||= VAPI::Bindings::StructType.new( 'com.vmware.vcenter.host.create_spec', { 'hostname' => VAPI::Bindings::StringType.instance, 'port' => VAPI::Bindings::OptionalType.new(VAPI::Bindings::IntegerType.instance), 'user_name' => VAPI::Bindings::StringType.instance, 'password' => VAPI::Bindings::SecretType.instance, 'folder' => VAPI::Bindings::OptionalType.new(VAPI::Bindings::IdType.new), 'thumbprint_verification' => VAPI::Bindings::ReferenceType.new('Com::Vmware::Vcenter::Host::CreateSpec::ThumbprintVerification'), 'thumbprint' => VAPI::Bindings::OptionalType.new(VAPI::Bindings::StringType.instance), 'force_add' => VAPI::Bindings::OptionalType.new(VAPI::Bindings::BooleanType.instance), }, CreateSpec, false, nil) end end attr_accessor :hostname, :port, :user_name, :password, :folder, :thumbprint_verification, :thumbprint, :force_add # Constructs a new instance. # @param ruby_values [Hash] a map of initial property values (optional) # @param struct_value [VAPI::Data::StructValue] a raw StructValue from the wire (optional) def initialize(ruby_values=nil, struct_value=nil) super(self.class.binding_type, ruby_values, struct_value) end # The ``Com::Vmware::Vcenter::Host::CreateSpec::ThumbprintVerification`` enumerated type defines the thumbprint verification schemes for a host's SSL certificate. # @!attribute [rw] none # @return [Com::Vmware::Vcenter::Host::CreateSpec::ThumbprintVerification] # Accept the host's thumbprint without verifying it. # @!attribute [rw] thumbprint # @return [Com::Vmware::Vcenter::Host::CreateSpec::ThumbprintVerification] # Host's SSL certificate verified by checking its thumbprint against the specified thumbprint. class ThumbprintVerification < VAPI::Bindings::VapiEnum class << self # Holds (gets or creates) the binding type metadata for this enumeration type. # @scope class # @return [VAPI::Bindings::EnumType] the binding type def binding_type @binding_type ||= VAPI::Bindings::EnumType.new( 'com.vmware.vcenter.host.create_spec.thumbprint_verification', ThumbprintVerification) end # Converts from a string value (perhaps off the wire) to an instance # of this enum type. # @param value [String] the actual value of the enum instance # @return [ThumbprintVerification] the instance found for the value, otherwise # an unknown instance will be built for the value def from_string(value) begin const_get(value) rescue NameError ThumbprintVerification.new('UNKNOWN', value) end end end private # Constructs a new instance. # @param value [String] the actual value of the enum instance # @param unknown [String] the unknown value when value is 'UKNOWN' def initialize(value, unknown=nil) super(self.class.binding_type, value, unknown) end public # @!attribute [rw] none # @return [Com::Vmware::Vcenter::Host::CreateSpec::ThumbprintVerification] # Accept the host's thumbprint without verifying it. NONE = ThumbprintVerification.new('NONE') # @!attribute [rw] thumbprint # @return [Com::Vmware::Vcenter::Host::CreateSpec::ThumbprintVerification] # Host's SSL certificate verified by checking its thumbprint against the specified thumbprint. THUMBPRINT = ThumbprintVerification.new('THUMBPRINT') end end |
- (Boolean?) force_add
Whether host should be added to the vCenter Server even if it is being managed by another vCenter Server. The original vCenterServer loses connection to the host. If nil , forceAdd is default to false.
1558 1559 1560 1561 1562 1563 1564 1565 1566 1567 1568 1569 1570 1571 1572 1573 1574 1575 1576 1577 1578 1579 1580 1581 1582 1583 1584 1585 1586 1587 1588 1589 1590 1591 1592 1593 1594 1595 1596 1597 1598 1599 1600 1601 1602 1603 1604 1605 1606 1607 1608 1609 1610 1611 1612 1613 1614 1615 1616 1617 1618 1619 1620 1621 1622 1623 1624 1625 1626 1627 1628 1629 1630 1631 1632 1633 1634 1635 1636 1637 1638 1639 1640 1641 1642 1643 1644 1645 1646 1647 1648 1649 1650 1651 1652 1653 1654 1655 1656 1657 |
# File '/build/mts/release/bora-4571906/build/sdk/aggregated-bindings/ruby/com/vmware/vcenter.rb', line 1558 class CreateSpec < VAPI::Bindings::VapiStruct class << self # Holds (gets or creates) the binding type metadata for this structure type. # @scope class # @return [VAPI::Bindings::StructType] the binding type def binding_type @binding_type ||= VAPI::Bindings::StructType.new( 'com.vmware.vcenter.host.create_spec', { 'hostname' => VAPI::Bindings::StringType.instance, 'port' => VAPI::Bindings::OptionalType.new(VAPI::Bindings::IntegerType.instance), 'user_name' => VAPI::Bindings::StringType.instance, 'password' => VAPI::Bindings::SecretType.instance, 'folder' => VAPI::Bindings::OptionalType.new(VAPI::Bindings::IdType.new), 'thumbprint_verification' => VAPI::Bindings::ReferenceType.new('Com::Vmware::Vcenter::Host::CreateSpec::ThumbprintVerification'), 'thumbprint' => VAPI::Bindings::OptionalType.new(VAPI::Bindings::StringType.instance), 'force_add' => VAPI::Bindings::OptionalType.new(VAPI::Bindings::BooleanType.instance), }, CreateSpec, false, nil) end end attr_accessor :hostname, :port, :user_name, :password, :folder, :thumbprint_verification, :thumbprint, :force_add # Constructs a new instance. # @param ruby_values [Hash] a map of initial property values (optional) # @param struct_value [VAPI::Data::StructValue] a raw StructValue from the wire (optional) def initialize(ruby_values=nil, struct_value=nil) super(self.class.binding_type, ruby_values, struct_value) end # The ``Com::Vmware::Vcenter::Host::CreateSpec::ThumbprintVerification`` enumerated type defines the thumbprint verification schemes for a host's SSL certificate. # @!attribute [rw] none # @return [Com::Vmware::Vcenter::Host::CreateSpec::ThumbprintVerification] # Accept the host's thumbprint without verifying it. # @!attribute [rw] thumbprint # @return [Com::Vmware::Vcenter::Host::CreateSpec::ThumbprintVerification] # Host's SSL certificate verified by checking its thumbprint against the specified thumbprint. class ThumbprintVerification < VAPI::Bindings::VapiEnum class << self # Holds (gets or creates) the binding type metadata for this enumeration type. # @scope class # @return [VAPI::Bindings::EnumType] the binding type def binding_type @binding_type ||= VAPI::Bindings::EnumType.new( 'com.vmware.vcenter.host.create_spec.thumbprint_verification', ThumbprintVerification) end # Converts from a string value (perhaps off the wire) to an instance # of this enum type. # @param value [String] the actual value of the enum instance # @return [ThumbprintVerification] the instance found for the value, otherwise # an unknown instance will be built for the value def from_string(value) begin const_get(value) rescue NameError ThumbprintVerification.new('UNKNOWN', value) end end end private # Constructs a new instance. # @param value [String] the actual value of the enum instance # @param unknown [String] the unknown value when value is 'UKNOWN' def initialize(value, unknown=nil) super(self.class.binding_type, value, unknown) end public # @!attribute [rw] none # @return [Com::Vmware::Vcenter::Host::CreateSpec::ThumbprintVerification] # Accept the host's thumbprint without verifying it. NONE = ThumbprintVerification.new('NONE') # @!attribute [rw] thumbprint # @return [Com::Vmware::Vcenter::Host::CreateSpec::ThumbprintVerification] # Host's SSL certificate verified by checking its thumbprint against the specified thumbprint. THUMBPRINT = ThumbprintVerification.new('THUMBPRINT') end end |
- (String) hostname
The IP address or DNS resolvable name of the host.
1558 1559 1560 1561 1562 1563 1564 1565 1566 1567 1568 1569 1570 1571 1572 1573 1574 1575 1576 1577 1578 1579 1580 1581 1582 1583 1584 1585 1586 1587 1588 1589 1590 1591 1592 1593 1594 1595 1596 1597 1598 1599 1600 1601 1602 1603 1604 1605 1606 1607 1608 1609 1610 1611 1612 1613 1614 1615 1616 1617 1618 1619 1620 1621 1622 1623 1624 1625 1626 1627 1628 1629 1630 1631 1632 1633 1634 1635 1636 1637 1638 1639 1640 1641 1642 1643 1644 1645 1646 1647 1648 1649 1650 1651 1652 1653 1654 1655 1656 1657 |
# File '/build/mts/release/bora-4571906/build/sdk/aggregated-bindings/ruby/com/vmware/vcenter.rb', line 1558 class CreateSpec < VAPI::Bindings::VapiStruct class << self # Holds (gets or creates) the binding type metadata for this structure type. # @scope class # @return [VAPI::Bindings::StructType] the binding type def binding_type @binding_type ||= VAPI::Bindings::StructType.new( 'com.vmware.vcenter.host.create_spec', { 'hostname' => VAPI::Bindings::StringType.instance, 'port' => VAPI::Bindings::OptionalType.new(VAPI::Bindings::IntegerType.instance), 'user_name' => VAPI::Bindings::StringType.instance, 'password' => VAPI::Bindings::SecretType.instance, 'folder' => VAPI::Bindings::OptionalType.new(VAPI::Bindings::IdType.new), 'thumbprint_verification' => VAPI::Bindings::ReferenceType.new('Com::Vmware::Vcenter::Host::CreateSpec::ThumbprintVerification'), 'thumbprint' => VAPI::Bindings::OptionalType.new(VAPI::Bindings::StringType.instance), 'force_add' => VAPI::Bindings::OptionalType.new(VAPI::Bindings::BooleanType.instance), }, CreateSpec, false, nil) end end attr_accessor :hostname, :port, :user_name, :password, :folder, :thumbprint_verification, :thumbprint, :force_add # Constructs a new instance. # @param ruby_values [Hash] a map of initial property values (optional) # @param struct_value [VAPI::Data::StructValue] a raw StructValue from the wire (optional) def initialize(ruby_values=nil, struct_value=nil) super(self.class.binding_type, ruby_values, struct_value) end # The ``Com::Vmware::Vcenter::Host::CreateSpec::ThumbprintVerification`` enumerated type defines the thumbprint verification schemes for a host's SSL certificate. # @!attribute [rw] none # @return [Com::Vmware::Vcenter::Host::CreateSpec::ThumbprintVerification] # Accept the host's thumbprint without verifying it. # @!attribute [rw] thumbprint # @return [Com::Vmware::Vcenter::Host::CreateSpec::ThumbprintVerification] # Host's SSL certificate verified by checking its thumbprint against the specified thumbprint. class ThumbprintVerification < VAPI::Bindings::VapiEnum class << self # Holds (gets or creates) the binding type metadata for this enumeration type. # @scope class # @return [VAPI::Bindings::EnumType] the binding type def binding_type @binding_type ||= VAPI::Bindings::EnumType.new( 'com.vmware.vcenter.host.create_spec.thumbprint_verification', ThumbprintVerification) end # Converts from a string value (perhaps off the wire) to an instance # of this enum type. # @param value [String] the actual value of the enum instance # @return [ThumbprintVerification] the instance found for the value, otherwise # an unknown instance will be built for the value def from_string(value) begin const_get(value) rescue NameError ThumbprintVerification.new('UNKNOWN', value) end end end private # Constructs a new instance. # @param value [String] the actual value of the enum instance # @param unknown [String] the unknown value when value is 'UKNOWN' def initialize(value, unknown=nil) super(self.class.binding_type, value, unknown) end public # @!attribute [rw] none # @return [Com::Vmware::Vcenter::Host::CreateSpec::ThumbprintVerification] # Accept the host's thumbprint without verifying it. NONE = ThumbprintVerification.new('NONE') # @!attribute [rw] thumbprint # @return [Com::Vmware::Vcenter::Host::CreateSpec::ThumbprintVerification] # Host's SSL certificate verified by checking its thumbprint against the specified thumbprint. THUMBPRINT = ThumbprintVerification.new('THUMBPRINT') end end |
- (String) password
The password for the administrator account on the host.
1558 1559 1560 1561 1562 1563 1564 1565 1566 1567 1568 1569 1570 1571 1572 1573 1574 1575 1576 1577 1578 1579 1580 1581 1582 1583 1584 1585 1586 1587 1588 1589 1590 1591 1592 1593 1594 1595 1596 1597 1598 1599 1600 1601 1602 1603 1604 1605 1606 1607 1608 1609 1610 1611 1612 1613 1614 1615 1616 1617 1618 1619 1620 1621 1622 1623 1624 1625 1626 1627 1628 1629 1630 1631 1632 1633 1634 1635 1636 1637 1638 1639 1640 1641 1642 1643 1644 1645 1646 1647 1648 1649 1650 1651 1652 1653 1654 1655 1656 1657 |
# File '/build/mts/release/bora-4571906/build/sdk/aggregated-bindings/ruby/com/vmware/vcenter.rb', line 1558 class CreateSpec < VAPI::Bindings::VapiStruct class << self # Holds (gets or creates) the binding type metadata for this structure type. # @scope class # @return [VAPI::Bindings::StructType] the binding type def binding_type @binding_type ||= VAPI::Bindings::StructType.new( 'com.vmware.vcenter.host.create_spec', { 'hostname' => VAPI::Bindings::StringType.instance, 'port' => VAPI::Bindings::OptionalType.new(VAPI::Bindings::IntegerType.instance), 'user_name' => VAPI::Bindings::StringType.instance, 'password' => VAPI::Bindings::SecretType.instance, 'folder' => VAPI::Bindings::OptionalType.new(VAPI::Bindings::IdType.new), 'thumbprint_verification' => VAPI::Bindings::ReferenceType.new('Com::Vmware::Vcenter::Host::CreateSpec::ThumbprintVerification'), 'thumbprint' => VAPI::Bindings::OptionalType.new(VAPI::Bindings::StringType.instance), 'force_add' => VAPI::Bindings::OptionalType.new(VAPI::Bindings::BooleanType.instance), }, CreateSpec, false, nil) end end attr_accessor :hostname, :port, :user_name, :password, :folder, :thumbprint_verification, :thumbprint, :force_add # Constructs a new instance. # @param ruby_values [Hash] a map of initial property values (optional) # @param struct_value [VAPI::Data::StructValue] a raw StructValue from the wire (optional) def initialize(ruby_values=nil, struct_value=nil) super(self.class.binding_type, ruby_values, struct_value) end # The ``Com::Vmware::Vcenter::Host::CreateSpec::ThumbprintVerification`` enumerated type defines the thumbprint verification schemes for a host's SSL certificate. # @!attribute [rw] none # @return [Com::Vmware::Vcenter::Host::CreateSpec::ThumbprintVerification] # Accept the host's thumbprint without verifying it. # @!attribute [rw] thumbprint # @return [Com::Vmware::Vcenter::Host::CreateSpec::ThumbprintVerification] # Host's SSL certificate verified by checking its thumbprint against the specified thumbprint. class ThumbprintVerification < VAPI::Bindings::VapiEnum class << self # Holds (gets or creates) the binding type metadata for this enumeration type. # @scope class # @return [VAPI::Bindings::EnumType] the binding type def binding_type @binding_type ||= VAPI::Bindings::EnumType.new( 'com.vmware.vcenter.host.create_spec.thumbprint_verification', ThumbprintVerification) end # Converts from a string value (perhaps off the wire) to an instance # of this enum type. # @param value [String] the actual value of the enum instance # @return [ThumbprintVerification] the instance found for the value, otherwise # an unknown instance will be built for the value def from_string(value) begin const_get(value) rescue NameError ThumbprintVerification.new('UNKNOWN', value) end end end private # Constructs a new instance. # @param value [String] the actual value of the enum instance # @param unknown [String] the unknown value when value is 'UKNOWN' def initialize(value, unknown=nil) super(self.class.binding_type, value, unknown) end public # @!attribute [rw] none # @return [Com::Vmware::Vcenter::Host::CreateSpec::ThumbprintVerification] # Accept the host's thumbprint without verifying it. NONE = ThumbprintVerification.new('NONE') # @!attribute [rw] thumbprint # @return [Com::Vmware::Vcenter::Host::CreateSpec::ThumbprintVerification] # Host's SSL certificate verified by checking its thumbprint against the specified thumbprint. THUMBPRINT = ThumbprintVerification.new('THUMBPRINT') end end |
- (Fixnum?) port
The port of the host. If nil , port 443 will be used.
1558 1559 1560 1561 1562 1563 1564 1565 1566 1567 1568 1569 1570 1571 1572 1573 1574 1575 1576 1577 1578 1579 1580 1581 1582 1583 1584 1585 1586 1587 1588 1589 1590 1591 1592 1593 1594 1595 1596 1597 1598 1599 1600 1601 1602 1603 1604 1605 1606 1607 1608 1609 1610 1611 1612 1613 1614 1615 1616 1617 1618 1619 1620 1621 1622 1623 1624 1625 1626 1627 1628 1629 1630 1631 1632 1633 1634 1635 1636 1637 1638 1639 1640 1641 1642 1643 1644 1645 1646 1647 1648 1649 1650 1651 1652 1653 1654 1655 1656 1657 |
# File '/build/mts/release/bora-4571906/build/sdk/aggregated-bindings/ruby/com/vmware/vcenter.rb', line 1558 class CreateSpec < VAPI::Bindings::VapiStruct class << self # Holds (gets or creates) the binding type metadata for this structure type. # @scope class # @return [VAPI::Bindings::StructType] the binding type def binding_type @binding_type ||= VAPI::Bindings::StructType.new( 'com.vmware.vcenter.host.create_spec', { 'hostname' => VAPI::Bindings::StringType.instance, 'port' => VAPI::Bindings::OptionalType.new(VAPI::Bindings::IntegerType.instance), 'user_name' => VAPI::Bindings::StringType.instance, 'password' => VAPI::Bindings::SecretType.instance, 'folder' => VAPI::Bindings::OptionalType.new(VAPI::Bindings::IdType.new), 'thumbprint_verification' => VAPI::Bindings::ReferenceType.new('Com::Vmware::Vcenter::Host::CreateSpec::ThumbprintVerification'), 'thumbprint' => VAPI::Bindings::OptionalType.new(VAPI::Bindings::StringType.instance), 'force_add' => VAPI::Bindings::OptionalType.new(VAPI::Bindings::BooleanType.instance), }, CreateSpec, false, nil) end end attr_accessor :hostname, :port, :user_name, :password, :folder, :thumbprint_verification, :thumbprint, :force_add # Constructs a new instance. # @param ruby_values [Hash] a map of initial property values (optional) # @param struct_value [VAPI::Data::StructValue] a raw StructValue from the wire (optional) def initialize(ruby_values=nil, struct_value=nil) super(self.class.binding_type, ruby_values, struct_value) end # The ``Com::Vmware::Vcenter::Host::CreateSpec::ThumbprintVerification`` enumerated type defines the thumbprint verification schemes for a host's SSL certificate. # @!attribute [rw] none # @return [Com::Vmware::Vcenter::Host::CreateSpec::ThumbprintVerification] # Accept the host's thumbprint without verifying it. # @!attribute [rw] thumbprint # @return [Com::Vmware::Vcenter::Host::CreateSpec::ThumbprintVerification] # Host's SSL certificate verified by checking its thumbprint against the specified thumbprint. class ThumbprintVerification < VAPI::Bindings::VapiEnum class << self # Holds (gets or creates) the binding type metadata for this enumeration type. # @scope class # @return [VAPI::Bindings::EnumType] the binding type def binding_type @binding_type ||= VAPI::Bindings::EnumType.new( 'com.vmware.vcenter.host.create_spec.thumbprint_verification', ThumbprintVerification) end # Converts from a string value (perhaps off the wire) to an instance # of this enum type. # @param value [String] the actual value of the enum instance # @return [ThumbprintVerification] the instance found for the value, otherwise # an unknown instance will be built for the value def from_string(value) begin const_get(value) rescue NameError ThumbprintVerification.new('UNKNOWN', value) end end end private # Constructs a new instance. # @param value [String] the actual value of the enum instance # @param unknown [String] the unknown value when value is 'UKNOWN' def initialize(value, unknown=nil) super(self.class.binding_type, value, unknown) end public # @!attribute [rw] none # @return [Com::Vmware::Vcenter::Host::CreateSpec::ThumbprintVerification] # Accept the host's thumbprint without verifying it. NONE = ThumbprintVerification.new('NONE') # @!attribute [rw] thumbprint # @return [Com::Vmware::Vcenter::Host::CreateSpec::ThumbprintVerification] # Host's SSL certificate verified by checking its thumbprint against the specified thumbprint. THUMBPRINT = ThumbprintVerification.new('THUMBPRINT') end end |
- (String) thumbprint
The thumbprint of the SSL certificate, which the host is expected to have. The thumbprint is always computed using the SHA1 hash and is the string representation of that hash in the format: xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx where, ‘x’ represents a hexadecimal digit. This field is optional and it is only relevant when the value of ``thumbprintVerification`` is :attr:`Com::Vmware::Vcenter::Host::CreateSpec::ThumbprintVerification.THUMBPRINT` .
1558 1559 1560 1561 1562 1563 1564 1565 1566 1567 1568 1569 1570 1571 1572 1573 1574 1575 1576 1577 1578 1579 1580 1581 1582 1583 1584 1585 1586 1587 1588 1589 1590 1591 1592 1593 1594 1595 1596 1597 1598 1599 1600 1601 1602 1603 1604 1605 1606 1607 1608 1609 1610 1611 1612 1613 1614 1615 1616 1617 1618 1619 1620 1621 1622 1623 1624 1625 1626 1627 1628 1629 1630 1631 1632 1633 1634 1635 1636 1637 1638 1639 1640 1641 1642 1643 1644 1645 1646 1647 1648 1649 1650 1651 1652 1653 1654 1655 1656 1657 |
# File '/build/mts/release/bora-4571906/build/sdk/aggregated-bindings/ruby/com/vmware/vcenter.rb', line 1558 class CreateSpec < VAPI::Bindings::VapiStruct class << self # Holds (gets or creates) the binding type metadata for this structure type. # @scope class # @return [VAPI::Bindings::StructType] the binding type def binding_type @binding_type ||= VAPI::Bindings::StructType.new( 'com.vmware.vcenter.host.create_spec', { 'hostname' => VAPI::Bindings::StringType.instance, 'port' => VAPI::Bindings::OptionalType.new(VAPI::Bindings::IntegerType.instance), 'user_name' => VAPI::Bindings::StringType.instance, 'password' => VAPI::Bindings::SecretType.instance, 'folder' => VAPI::Bindings::OptionalType.new(VAPI::Bindings::IdType.new), 'thumbprint_verification' => VAPI::Bindings::ReferenceType.new('Com::Vmware::Vcenter::Host::CreateSpec::ThumbprintVerification'), 'thumbprint' => VAPI::Bindings::OptionalType.new(VAPI::Bindings::StringType.instance), 'force_add' => VAPI::Bindings::OptionalType.new(VAPI::Bindings::BooleanType.instance), }, CreateSpec, false, nil) end end attr_accessor :hostname, :port, :user_name, :password, :folder, :thumbprint_verification, :thumbprint, :force_add # Constructs a new instance. # @param ruby_values [Hash] a map of initial property values (optional) # @param struct_value [VAPI::Data::StructValue] a raw StructValue from the wire (optional) def initialize(ruby_values=nil, struct_value=nil) super(self.class.binding_type, ruby_values, struct_value) end # The ``Com::Vmware::Vcenter::Host::CreateSpec::ThumbprintVerification`` enumerated type defines the thumbprint verification schemes for a host's SSL certificate. # @!attribute [rw] none # @return [Com::Vmware::Vcenter::Host::CreateSpec::ThumbprintVerification] # Accept the host's thumbprint without verifying it. # @!attribute [rw] thumbprint # @return [Com::Vmware::Vcenter::Host::CreateSpec::ThumbprintVerification] # Host's SSL certificate verified by checking its thumbprint against the specified thumbprint. class ThumbprintVerification < VAPI::Bindings::VapiEnum class << self # Holds (gets or creates) the binding type metadata for this enumeration type. # @scope class # @return [VAPI::Bindings::EnumType] the binding type def binding_type @binding_type ||= VAPI::Bindings::EnumType.new( 'com.vmware.vcenter.host.create_spec.thumbprint_verification', ThumbprintVerification) end # Converts from a string value (perhaps off the wire) to an instance # of this enum type. # @param value [String] the actual value of the enum instance # @return [ThumbprintVerification] the instance found for the value, otherwise # an unknown instance will be built for the value def from_string(value) begin const_get(value) rescue NameError ThumbprintVerification.new('UNKNOWN', value) end end end private # Constructs a new instance. # @param value [String] the actual value of the enum instance # @param unknown [String] the unknown value when value is 'UKNOWN' def initialize(value, unknown=nil) super(self.class.binding_type, value, unknown) end public # @!attribute [rw] none # @return [Com::Vmware::Vcenter::Host::CreateSpec::ThumbprintVerification] # Accept the host's thumbprint without verifying it. NONE = ThumbprintVerification.new('NONE') # @!attribute [rw] thumbprint # @return [Com::Vmware::Vcenter::Host::CreateSpec::ThumbprintVerification] # Host's SSL certificate verified by checking its thumbprint against the specified thumbprint. THUMBPRINT = ThumbprintVerification.new('THUMBPRINT') end end |
- (Com::Vmware::Vcenter::Host::CreateSpec::ThumbprintVerification) thumbprint_verification
Type of host’s SSL certificate verification to be done.
1558 1559 1560 1561 1562 1563 1564 1565 1566 1567 1568 1569 1570 1571 1572 1573 1574 1575 1576 1577 1578 1579 1580 1581 1582 1583 1584 1585 1586 1587 1588 1589 1590 1591 1592 1593 1594 1595 1596 1597 1598 1599 1600 1601 1602 1603 1604 1605 1606 1607 1608 1609 1610 1611 1612 1613 1614 1615 1616 1617 1618 1619 1620 1621 1622 1623 1624 1625 1626 1627 1628 1629 1630 1631 1632 1633 1634 1635 1636 1637 1638 1639 1640 1641 1642 1643 1644 1645 1646 1647 1648 1649 1650 1651 1652 1653 1654 1655 1656 1657 |
# File '/build/mts/release/bora-4571906/build/sdk/aggregated-bindings/ruby/com/vmware/vcenter.rb', line 1558 class CreateSpec < VAPI::Bindings::VapiStruct class << self # Holds (gets or creates) the binding type metadata for this structure type. # @scope class # @return [VAPI::Bindings::StructType] the binding type def binding_type @binding_type ||= VAPI::Bindings::StructType.new( 'com.vmware.vcenter.host.create_spec', { 'hostname' => VAPI::Bindings::StringType.instance, 'port' => VAPI::Bindings::OptionalType.new(VAPI::Bindings::IntegerType.instance), 'user_name' => VAPI::Bindings::StringType.instance, 'password' => VAPI::Bindings::SecretType.instance, 'folder' => VAPI::Bindings::OptionalType.new(VAPI::Bindings::IdType.new), 'thumbprint_verification' => VAPI::Bindings::ReferenceType.new('Com::Vmware::Vcenter::Host::CreateSpec::ThumbprintVerification'), 'thumbprint' => VAPI::Bindings::OptionalType.new(VAPI::Bindings::StringType.instance), 'force_add' => VAPI::Bindings::OptionalType.new(VAPI::Bindings::BooleanType.instance), }, CreateSpec, false, nil) end end attr_accessor :hostname, :port, :user_name, :password, :folder, :thumbprint_verification, :thumbprint, :force_add # Constructs a new instance. # @param ruby_values [Hash] a map of initial property values (optional) # @param struct_value [VAPI::Data::StructValue] a raw StructValue from the wire (optional) def initialize(ruby_values=nil, struct_value=nil) super(self.class.binding_type, ruby_values, struct_value) end # The ``Com::Vmware::Vcenter::Host::CreateSpec::ThumbprintVerification`` enumerated type defines the thumbprint verification schemes for a host's SSL certificate. # @!attribute [rw] none # @return [Com::Vmware::Vcenter::Host::CreateSpec::ThumbprintVerification] # Accept the host's thumbprint without verifying it. # @!attribute [rw] thumbprint # @return [Com::Vmware::Vcenter::Host::CreateSpec::ThumbprintVerification] # Host's SSL certificate verified by checking its thumbprint against the specified thumbprint. class ThumbprintVerification < VAPI::Bindings::VapiEnum class << self # Holds (gets or creates) the binding type metadata for this enumeration type. # @scope class # @return [VAPI::Bindings::EnumType] the binding type def binding_type @binding_type ||= VAPI::Bindings::EnumType.new( 'com.vmware.vcenter.host.create_spec.thumbprint_verification', ThumbprintVerification) end # Converts from a string value (perhaps off the wire) to an instance # of this enum type. # @param value [String] the actual value of the enum instance # @return [ThumbprintVerification] the instance found for the value, otherwise # an unknown instance will be built for the value def from_string(value) begin const_get(value) rescue NameError ThumbprintVerification.new('UNKNOWN', value) end end end private # Constructs a new instance. # @param value [String] the actual value of the enum instance # @param unknown [String] the unknown value when value is 'UKNOWN' def initialize(value, unknown=nil) super(self.class.binding_type, value, unknown) end public # @!attribute [rw] none # @return [Com::Vmware::Vcenter::Host::CreateSpec::ThumbprintVerification] # Accept the host's thumbprint without verifying it. NONE = ThumbprintVerification.new('NONE') # @!attribute [rw] thumbprint # @return [Com::Vmware::Vcenter::Host::CreateSpec::ThumbprintVerification] # Host's SSL certificate verified by checking its thumbprint against the specified thumbprint. THUMBPRINT = ThumbprintVerification.new('THUMBPRINT') end end |
- (String) user_name
The administrator account on the host.
1558 1559 1560 1561 1562 1563 1564 1565 1566 1567 1568 1569 1570 1571 1572 1573 1574 1575 1576 1577 1578 1579 1580 1581 1582 1583 1584 1585 1586 1587 1588 1589 1590 1591 1592 1593 1594 1595 1596 1597 1598 1599 1600 1601 1602 1603 1604 1605 1606 1607 1608 1609 1610 1611 1612 1613 1614 1615 1616 1617 1618 1619 1620 1621 1622 1623 1624 1625 1626 1627 1628 1629 1630 1631 1632 1633 1634 1635 1636 1637 1638 1639 1640 1641 1642 1643 1644 1645 1646 1647 1648 1649 1650 1651 1652 1653 1654 1655 1656 1657 |
# File '/build/mts/release/bora-4571906/build/sdk/aggregated-bindings/ruby/com/vmware/vcenter.rb', line 1558 class CreateSpec < VAPI::Bindings::VapiStruct class << self # Holds (gets or creates) the binding type metadata for this structure type. # @scope class # @return [VAPI::Bindings::StructType] the binding type def binding_type @binding_type ||= VAPI::Bindings::StructType.new( 'com.vmware.vcenter.host.create_spec', { 'hostname' => VAPI::Bindings::StringType.instance, 'port' => VAPI::Bindings::OptionalType.new(VAPI::Bindings::IntegerType.instance), 'user_name' => VAPI::Bindings::StringType.instance, 'password' => VAPI::Bindings::SecretType.instance, 'folder' => VAPI::Bindings::OptionalType.new(VAPI::Bindings::IdType.new), 'thumbprint_verification' => VAPI::Bindings::ReferenceType.new('Com::Vmware::Vcenter::Host::CreateSpec::ThumbprintVerification'), 'thumbprint' => VAPI::Bindings::OptionalType.new(VAPI::Bindings::StringType.instance), 'force_add' => VAPI::Bindings::OptionalType.new(VAPI::Bindings::BooleanType.instance), }, CreateSpec, false, nil) end end attr_accessor :hostname, :port, :user_name, :password, :folder, :thumbprint_verification, :thumbprint, :force_add # Constructs a new instance. # @param ruby_values [Hash] a map of initial property values (optional) # @param struct_value [VAPI::Data::StructValue] a raw StructValue from the wire (optional) def initialize(ruby_values=nil, struct_value=nil) super(self.class.binding_type, ruby_values, struct_value) end # The ``Com::Vmware::Vcenter::Host::CreateSpec::ThumbprintVerification`` enumerated type defines the thumbprint verification schemes for a host's SSL certificate. # @!attribute [rw] none # @return [Com::Vmware::Vcenter::Host::CreateSpec::ThumbprintVerification] # Accept the host's thumbprint without verifying it. # @!attribute [rw] thumbprint # @return [Com::Vmware::Vcenter::Host::CreateSpec::ThumbprintVerification] # Host's SSL certificate verified by checking its thumbprint against the specified thumbprint. class ThumbprintVerification < VAPI::Bindings::VapiEnum class << self # Holds (gets or creates) the binding type metadata for this enumeration type. # @scope class # @return [VAPI::Bindings::EnumType] the binding type def binding_type @binding_type ||= VAPI::Bindings::EnumType.new( 'com.vmware.vcenter.host.create_spec.thumbprint_verification', ThumbprintVerification) end # Converts from a string value (perhaps off the wire) to an instance # of this enum type. # @param value [String] the actual value of the enum instance # @return [ThumbprintVerification] the instance found for the value, otherwise # an unknown instance will be built for the value def from_string(value) begin const_get(value) rescue NameError ThumbprintVerification.new('UNKNOWN', value) end end end private # Constructs a new instance. # @param value [String] the actual value of the enum instance # @param unknown [String] the unknown value when value is 'UKNOWN' def initialize(value, unknown=nil) super(self.class.binding_type, value, unknown) end public # @!attribute [rw] none # @return [Com::Vmware::Vcenter::Host::CreateSpec::ThumbprintVerification] # Accept the host's thumbprint without verifying it. NONE = ThumbprintVerification.new('NONE') # @!attribute [rw] thumbprint # @return [Com::Vmware::Vcenter::Host::CreateSpec::ThumbprintVerification] # Host's SSL certificate verified by checking its thumbprint against the specified thumbprint. THUMBPRINT = ThumbprintVerification.new('THUMBPRINT') end end |
Class Method Details
+ (VAPI::Bindings::StructType) binding_type
Holds (gets or creates) the binding type metadata for this structure type.
1564 1565 1566 1567 1568 1569 1570 1571 1572 1573 1574 1575 1576 1577 1578 1579 1580 |
# File '/build/mts/release/bora-4571906/build/sdk/aggregated-bindings/ruby/com/vmware/vcenter.rb', line 1564 def binding_type @binding_type ||= VAPI::Bindings::StructType.new( 'com.vmware.vcenter.host.create_spec', { 'hostname' => VAPI::Bindings::StringType.instance, 'port' => VAPI::Bindings::OptionalType.new(VAPI::Bindings::IntegerType.instance), 'user_name' => VAPI::Bindings::StringType.instance, 'password' => VAPI::Bindings::SecretType.instance, 'folder' => VAPI::Bindings::OptionalType.new(VAPI::Bindings::IdType.new), 'thumbprint_verification' => VAPI::Bindings::ReferenceType.new('Com::Vmware::Vcenter::Host::CreateSpec::ThumbprintVerification'), 'thumbprint' => VAPI::Bindings::OptionalType.new(VAPI::Bindings::StringType.instance), 'force_add' => VAPI::Bindings::OptionalType.new(VAPI::Bindings::BooleanType.instance), }, CreateSpec, false, nil) end |