Class: Com::Vmware::Appliance::Techpreview::Localaccounts::User::UserPasswordStatus

Inherits:
VAPI::Bindings::VapiEnum
  • Object
show all
Defined in:
/build/mts/release/bora-4571906/build/sdk/aggregated-bindings/ruby/com/vmware/appliance/techpreview/localaccounts.rb

Overview

``Com::Vmware::Appliance::Techpreview::Localaccounts::User::UserPasswordStatus`` enumerated type Defines state of user password

Constant Summary

NOTSET =
UserPasswordStatus.new('NOTSET')
EXPIRED =
UserPasswordStatus.new('EXPIRED')
VALID =
UserPasswordStatus.new('VALID')

Instance Attribute Summary (collapse)

Class Method Summary (collapse)

Instance Attribute Details

- (Com::Vmware::Appliance::Techpreview::Localaccounts::User::UserPasswordStatus) expired

The password has expired.



412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
# File '/build/mts/release/bora-4571906/build/sdk/aggregated-bindings/ruby/com/vmware/appliance/techpreview/localaccounts.rb', line 412

class UserPasswordStatus < 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.appliance.techpreview.localaccounts.user.user_password_status',
                UserPasswordStatus)
        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 [UserPasswordStatus] 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
                UserPasswordStatus.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] notset
    #     @return [Com::Vmware::Appliance::Techpreview::Localaccounts::User::UserPasswordStatus]
    #     No password has been set
    NOTSET = UserPasswordStatus.new('NOTSET')

    # @!attribute [rw] expired
    #     @return [Com::Vmware::Appliance::Techpreview::Localaccounts::User::UserPasswordStatus]
    #     The password has expired.
    EXPIRED = UserPasswordStatus.new('EXPIRED')

    # @!attribute [rw] valid
    #     @return [Com::Vmware::Appliance::Techpreview::Localaccounts::User::UserPasswordStatus]
    #     The password is still valid.
    VALID = UserPasswordStatus.new('VALID')

end

- (Com::Vmware::Appliance::Techpreview::Localaccounts::User::UserPasswordStatus) notset

No password has been set



412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
# File '/build/mts/release/bora-4571906/build/sdk/aggregated-bindings/ruby/com/vmware/appliance/techpreview/localaccounts.rb', line 412

class UserPasswordStatus < 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.appliance.techpreview.localaccounts.user.user_password_status',
                UserPasswordStatus)
        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 [UserPasswordStatus] 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
                UserPasswordStatus.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] notset
    #     @return [Com::Vmware::Appliance::Techpreview::Localaccounts::User::UserPasswordStatus]
    #     No password has been set
    NOTSET = UserPasswordStatus.new('NOTSET')

    # @!attribute [rw] expired
    #     @return [Com::Vmware::Appliance::Techpreview::Localaccounts::User::UserPasswordStatus]
    #     The password has expired.
    EXPIRED = UserPasswordStatus.new('EXPIRED')

    # @!attribute [rw] valid
    #     @return [Com::Vmware::Appliance::Techpreview::Localaccounts::User::UserPasswordStatus]
    #     The password is still valid.
    VALID = UserPasswordStatus.new('VALID')

end

- (Com::Vmware::Appliance::Techpreview::Localaccounts::User::UserPasswordStatus) valid

The password is still valid.



412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
# File '/build/mts/release/bora-4571906/build/sdk/aggregated-bindings/ruby/com/vmware/appliance/techpreview/localaccounts.rb', line 412

class UserPasswordStatus < 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.appliance.techpreview.localaccounts.user.user_password_status',
                UserPasswordStatus)
        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 [UserPasswordStatus] 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
                UserPasswordStatus.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] notset
    #     @return [Com::Vmware::Appliance::Techpreview::Localaccounts::User::UserPasswordStatus]
    #     No password has been set
    NOTSET = UserPasswordStatus.new('NOTSET')

    # @!attribute [rw] expired
    #     @return [Com::Vmware::Appliance::Techpreview::Localaccounts::User::UserPasswordStatus]
    #     The password has expired.
    EXPIRED = UserPasswordStatus.new('EXPIRED')

    # @!attribute [rw] valid
    #     @return [Com::Vmware::Appliance::Techpreview::Localaccounts::User::UserPasswordStatus]
    #     The password is still valid.
    VALID = UserPasswordStatus.new('VALID')

end

Class Method Details

+ (VAPI::Bindings::EnumType) binding_type

Holds (gets or creates) the binding type metadata for this enumeration type.

Returns:

  • (VAPI::Bindings::EnumType)

    the binding type



418
419
420
421
422
# File '/build/mts/release/bora-4571906/build/sdk/aggregated-bindings/ruby/com/vmware/appliance/techpreview/localaccounts.rb', line 418

def binding_type
    @binding_type ||= VAPI::Bindings::EnumType.new(
        'com.vmware.appliance.techpreview.localaccounts.user.user_password_status',
        UserPasswordStatus)
end

+ (UserPasswordStatus) from_string(value)

Converts from a string value (perhaps off the wire) to an instance of this enum type.

Parameters:

  • value (String)

    the actual value of the enum instance

Returns:

  • (UserPasswordStatus)

    the instance found for the value, otherwise an unknown instance will be built for the value



429
430
431
432
433
434
435
# File '/build/mts/release/bora-4571906/build/sdk/aggregated-bindings/ruby/com/vmware/appliance/techpreview/localaccounts.rb', line 429

def from_string(value)
    begin
        const_get(value)
    rescue NameError
        UserPasswordStatus.new('UNKNOWN', value)
    end
end