Class: Com::Vmware::Vapi::Metadata::Cli::Command::GenericType
- Inherits:
-
VAPI::Bindings::VapiEnum
- Object
- VAPI::Bindings::VapiEnum
- Com::Vmware::Vapi::Metadata::Cli::Command::GenericType
- Defined in:
- /build/mts/release/bora-4571906/build/sdk/aggregated-bindings/ruby/com/vmware/vapi/metadata/cli.rb
Overview
The ``Com::Vmware::Vapi::Metadata::Cli::Command::GenericType`` enumerated type defines generic types supported by ``Com::Vmware::Vapi::Metadata::Cli::Command`` class . See :attr:`Com::Vmware::Vapi::Metadata::Cli::Command::OptionInfo.generic` .
Constant Summary
- NONE =
GenericType.new('NONE')
- OPTIONAL =
GenericType.new('OPTIONAL')
- LIST =
GenericType.new('LIST')
- OPTIONAL_LIST =
GenericType.new('OPTIONAL_LIST')
- LIST_OPTIONAL =
GenericType.new('LIST_OPTIONAL')
Instance Attribute Summary (collapse)
-
- (Com::Vmware::Vapi::Metadata::Cli::Command::GenericType) list
Input parameter is a list.
-
- (Com::Vmware::Vapi::Metadata::Cli::Command::GenericType) list_optional
Input parameter is a list of optionals.
-
- (Com::Vmware::Vapi::Metadata::Cli::Command::GenericType) none
Default case.
-
- (Com::Vmware::Vapi::Metadata::Cli::Command::GenericType) optional
Input parameter is an optional.
-
- (Com::Vmware::Vapi::Metadata::Cli::Command::GenericType) optional_list
Input parameter is an optional of type list.
Class Method Summary (collapse)
-
+ (VAPI::Bindings::EnumType) binding_type
Holds (gets or creates) the binding type metadata for this enumeration type.
-
+ (GenericType) from_string(value)
Converts from a string value (perhaps off the wire) to an instance of this enum type.
Instance Attribute Details
- (Com::Vmware::Vapi::Metadata::Cli::Command::GenericType) list
Input parameter is a list.
470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 |
# File '/build/mts/release/bora-4571906/build/sdk/aggregated-bindings/ruby/com/vmware/vapi/metadata/cli.rb', line 470 class GenericType < 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.vapi.metadata.cli.command.generic_type', GenericType) 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 [GenericType] 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 GenericType.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::Vapi::Metadata::Cli::Command::GenericType] # Default case. NONE = GenericType.new('NONE') # @!attribute [rw] optional # @return [Com::Vmware::Vapi::Metadata::Cli::Command::GenericType] # Input parameter is an optional. OPTIONAL = GenericType.new('OPTIONAL') # @!attribute [rw] list # @return [Com::Vmware::Vapi::Metadata::Cli::Command::GenericType] # Input parameter is a list. LIST = GenericType.new('LIST') # @!attribute [rw] optional_list # @return [Com::Vmware::Vapi::Metadata::Cli::Command::GenericType] # Input parameter is an optional of type list. # # New in vSphere 6.5. OPTIONAL_LIST = GenericType.new('OPTIONAL_LIST') # @!attribute [rw] list_optional # @return [Com::Vmware::Vapi::Metadata::Cli::Command::GenericType] # Input parameter is a list of optionals. # # New in vSphere 6.5. LIST_OPTIONAL = GenericType.new('LIST_OPTIONAL') end |
- (Com::Vmware::Vapi::Metadata::Cli::Command::GenericType) list_optional
Input parameter is a list of optionals.
New in vSphere 6.5.
470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 |
# File '/build/mts/release/bora-4571906/build/sdk/aggregated-bindings/ruby/com/vmware/vapi/metadata/cli.rb', line 470 class GenericType < 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.vapi.metadata.cli.command.generic_type', GenericType) 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 [GenericType] 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 GenericType.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::Vapi::Metadata::Cli::Command::GenericType] # Default case. NONE = GenericType.new('NONE') # @!attribute [rw] optional # @return [Com::Vmware::Vapi::Metadata::Cli::Command::GenericType] # Input parameter is an optional. OPTIONAL = GenericType.new('OPTIONAL') # @!attribute [rw] list # @return [Com::Vmware::Vapi::Metadata::Cli::Command::GenericType] # Input parameter is a list. LIST = GenericType.new('LIST') # @!attribute [rw] optional_list # @return [Com::Vmware::Vapi::Metadata::Cli::Command::GenericType] # Input parameter is an optional of type list. # # New in vSphere 6.5. OPTIONAL_LIST = GenericType.new('OPTIONAL_LIST') # @!attribute [rw] list_optional # @return [Com::Vmware::Vapi::Metadata::Cli::Command::GenericType] # Input parameter is a list of optionals. # # New in vSphere 6.5. LIST_OPTIONAL = GenericType.new('LIST_OPTIONAL') end |
- (Com::Vmware::Vapi::Metadata::Cli::Command::GenericType) none
Default case.
470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 |
# File '/build/mts/release/bora-4571906/build/sdk/aggregated-bindings/ruby/com/vmware/vapi/metadata/cli.rb', line 470 class GenericType < 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.vapi.metadata.cli.command.generic_type', GenericType) 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 [GenericType] 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 GenericType.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::Vapi::Metadata::Cli::Command::GenericType] # Default case. NONE = GenericType.new('NONE') # @!attribute [rw] optional # @return [Com::Vmware::Vapi::Metadata::Cli::Command::GenericType] # Input parameter is an optional. OPTIONAL = GenericType.new('OPTIONAL') # @!attribute [rw] list # @return [Com::Vmware::Vapi::Metadata::Cli::Command::GenericType] # Input parameter is a list. LIST = GenericType.new('LIST') # @!attribute [rw] optional_list # @return [Com::Vmware::Vapi::Metadata::Cli::Command::GenericType] # Input parameter is an optional of type list. # # New in vSphere 6.5. OPTIONAL_LIST = GenericType.new('OPTIONAL_LIST') # @!attribute [rw] list_optional # @return [Com::Vmware::Vapi::Metadata::Cli::Command::GenericType] # Input parameter is a list of optionals. # # New in vSphere 6.5. LIST_OPTIONAL = GenericType.new('LIST_OPTIONAL') end |
- (Com::Vmware::Vapi::Metadata::Cli::Command::GenericType) optional
Input parameter is an optional.
470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 |
# File '/build/mts/release/bora-4571906/build/sdk/aggregated-bindings/ruby/com/vmware/vapi/metadata/cli.rb', line 470 class GenericType < 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.vapi.metadata.cli.command.generic_type', GenericType) 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 [GenericType] 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 GenericType.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::Vapi::Metadata::Cli::Command::GenericType] # Default case. NONE = GenericType.new('NONE') # @!attribute [rw] optional # @return [Com::Vmware::Vapi::Metadata::Cli::Command::GenericType] # Input parameter is an optional. OPTIONAL = GenericType.new('OPTIONAL') # @!attribute [rw] list # @return [Com::Vmware::Vapi::Metadata::Cli::Command::GenericType] # Input parameter is a list. LIST = GenericType.new('LIST') # @!attribute [rw] optional_list # @return [Com::Vmware::Vapi::Metadata::Cli::Command::GenericType] # Input parameter is an optional of type list. # # New in vSphere 6.5. OPTIONAL_LIST = GenericType.new('OPTIONAL_LIST') # @!attribute [rw] list_optional # @return [Com::Vmware::Vapi::Metadata::Cli::Command::GenericType] # Input parameter is a list of optionals. # # New in vSphere 6.5. LIST_OPTIONAL = GenericType.new('LIST_OPTIONAL') end |
- (Com::Vmware::Vapi::Metadata::Cli::Command::GenericType) optional_list
Input parameter is an optional of type list.
New in vSphere 6.5.
470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 |
# File '/build/mts/release/bora-4571906/build/sdk/aggregated-bindings/ruby/com/vmware/vapi/metadata/cli.rb', line 470 class GenericType < 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.vapi.metadata.cli.command.generic_type', GenericType) 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 [GenericType] 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 GenericType.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::Vapi::Metadata::Cli::Command::GenericType] # Default case. NONE = GenericType.new('NONE') # @!attribute [rw] optional # @return [Com::Vmware::Vapi::Metadata::Cli::Command::GenericType] # Input parameter is an optional. OPTIONAL = GenericType.new('OPTIONAL') # @!attribute [rw] list # @return [Com::Vmware::Vapi::Metadata::Cli::Command::GenericType] # Input parameter is a list. LIST = GenericType.new('LIST') # @!attribute [rw] optional_list # @return [Com::Vmware::Vapi::Metadata::Cli::Command::GenericType] # Input parameter is an optional of type list. # # New in vSphere 6.5. OPTIONAL_LIST = GenericType.new('OPTIONAL_LIST') # @!attribute [rw] list_optional # @return [Com::Vmware::Vapi::Metadata::Cli::Command::GenericType] # Input parameter is a list of optionals. # # New in vSphere 6.5. LIST_OPTIONAL = GenericType.new('LIST_OPTIONAL') end |
Class Method Details
+ (VAPI::Bindings::EnumType) binding_type
Holds (gets or creates) the binding type metadata for this enumeration type.
476 477 478 479 480 |
# File '/build/mts/release/bora-4571906/build/sdk/aggregated-bindings/ruby/com/vmware/vapi/metadata/cli.rb', line 476 def binding_type @binding_type ||= VAPI::Bindings::EnumType.new( 'com.vmware.vapi.metadata.cli.command.generic_type', GenericType) end |
+ (GenericType) from_string(value)
Converts from a string value (perhaps off the wire) to an instance of this enum type.
487 488 489 490 491 492 493 |
# File '/build/mts/release/bora-4571906/build/sdk/aggregated-bindings/ruby/com/vmware/vapi/metadata/cli.rb', line 487 def from_string(value) begin const_get(value) rescue NameError GenericType.new('UNKNOWN', value) end end |