Class: Com::Vmware::Vapi::Std::DynamicID

Inherits:
VAPI::Bindings::VapiStruct
  • Object
show all
Defined in:
/build/mts/release/bora-4571906/build/sdk/aggregated-bindings/ruby/com/vmware/vapi/std.rb

Overview

The ``Com::Vmware::Vapi::Std::DynamicID`` class represents an identifier for a resource of an arbitrary type.

Instance Attribute Summary (collapse)

Class Method Summary (collapse)

Instance Method Summary (collapse)

Constructor Details

- (DynamicID) initialize(ruby_values = nil, struct_value = nil)

Constructs a new instance.

Parameters:

  • ruby_values (Hash) (defaults to: nil)

    a map of initial property values (optional)

  • struct_value (VAPI::Data::StructValue) (defaults to: nil)

    a raw StructValue from the wire (optional)



92
93
94
# File '/build/mts/release/bora-4571906/build/sdk/aggregated-bindings/ruby/com/vmware/vapi/std.rb', line 92

def initialize(ruby_values=nil, struct_value=nil)
    super(self.class.binding_type, ruby_values, struct_value)
end

Instance Attribute Details

- (String) id

The identifier for a resource whose type is specified by :attr:`Com::Vmware::Vapi::Std::DynamicID.type` .

Returns:

  • (String)


67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
# File '/build/mts/release/bora-4571906/build/sdk/aggregated-bindings/ruby/com/vmware/vapi/std.rb', line 67

class DynamicID < 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.vapi.std.dynamic_ID',
                {
                    'type' => VAPI::Bindings::StringType.instance,
                    'id' => VAPI::Bindings::IdType.new(resource_types=[], resource_type_field_name="type"),
                },
                DynamicID,
                false,
                nil)
        end
    end

    attr_accessor :type,
                  :id

    # 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
end

- (String) type

The type of resource being identified (for example ``com.acme.Person`` ).


  Classs  that contain  methods  for creating and deleting resources typically contain a  constant  specifying the resource type for the resources being created and deleted. The API metamodel metadata  classs  include a  class  that allows retrieving all the known resource types.

Returns:

  • (String)


67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
# File '/build/mts/release/bora-4571906/build/sdk/aggregated-bindings/ruby/com/vmware/vapi/std.rb', line 67

class DynamicID < 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.vapi.std.dynamic_ID',
                {
                    'type' => VAPI::Bindings::StringType.instance,
                    'id' => VAPI::Bindings::IdType.new(resource_types=[], resource_type_field_name="type"),
                },
                DynamicID,
                false,
                nil)
        end
    end

    attr_accessor :type,
                  :id

    # 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
end

Class Method Details

+ (VAPI::Bindings::StructType) binding_type

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

Returns:

  • (VAPI::Bindings::StructType)

    the binding type



73
74
75
76
77
78
79
80
81
82
83
# File '/build/mts/release/bora-4571906/build/sdk/aggregated-bindings/ruby/com/vmware/vapi/std.rb', line 73

def binding_type
    @binding_type ||= VAPI::Bindings::StructType.new(
        'com.vmware.vapi.std.dynamic_ID',
        {
            'type' => VAPI::Bindings::StringType.instance,
            'id' => VAPI::Bindings::IdType.new(resource_types=[], resource_type_field_name="type"),
        },
        DynamicID,
        false,
        nil)
end