Class Cmpi::CMPIInstance
In: ../cmpi.i
cmpi.rb
Parent: Object

Methods

Attributes

typemap  [RW] 

Public Instance methods

[](p1)

Alias for get

[]=(p1, p2, p3)

Alias for set

get a named property value Property access in Ruby: data = instance[:propname] # access by name (symbol) data = instance["propname"] # access by name (string) data = instance[1] # access by index

See get_property_at to retrieve property name and value

Get property by name

Gets a Property name and value defined by its index.

 index: Position in the internal Data array.

Allow Instance.Property and Instance.Property=

Generates an ObjectPath out of the namespace, classname and

   key propeties of this Instance.
objectpath=(p1)

Alias for set_objectpath

Gets the number of properties contained in this Instance.

Property setting in Ruby

  set property of Instance by name and type

instance[:propname] = data # set by name (symbol) instance[:propname, data] = CMPI::uint16 # set by name (symbol) instance["propname"] = data # set by name (string)

Replaces the ObjectPath of the instance.

   The passed objectpath shall contain the namespace, classname,
    as well as all keys for the specified instance.

Adds/replaces a named Property.

  name: Entry name.
  value: Address of value structure.
  type: Value type.

Directs CMPI to ignore any setProperty operations for this

         instance for any properties not in this list.
  properties: If not NULL, the members of the array define one
          or more Property names to be accepted by setProperty operations.

Add/replace a named Property value and origin

  name: is a string containing the Property name.
  value: points to a CMPIValue structure containing the value
         to be assigned to the Property.
  type: is a CMPIType structure defining the type of the value.
  origin: specifies the instance origin.  If NULL, then
          no origin is attached to  the property
size()

Alias for property_count

[Validate]