<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic issue retrieving data types in vSphere Management SDK Discussions</title>
    <link>https://communities.vmware.com/t5/vSphere-Management-SDK/issue-retrieving-data-types/m-p/248226#M1116</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, I have a problem trying to retrive the data type of an object. I use the VMUtils::find_device method to get the cdrom especification.Then I need to obtain the backing data type (VirtualCdromRemoteAtapiBackingInfo or VirtualCdromIsoBackingInfo) but I don't know how to retrieve this info from $cdrom_spec-&amp;amp;gt;backing.  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The value of $cdrom_spec is:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code"&gt;
$VAR1 = bless( {
 'deviceChange' =&amp;gt; [
                     bless( {
                              'operation' =&amp;gt; bless( {
                                                      'val' =&amp;gt; 'remove'
                                                    }, 'VirtualDeviceConfigSpecOperation' ),
                              'device' =&amp;gt; bless( {
                                                   'connectable' =&amp;gt; bless( {
                                                                             'allowGuestControl' =&amp;gt; 0,
                                                                             'connected' =&amp;gt; 0,
                                                                             'startConnected' =&amp;gt; 1
                                                                           }, 'VirtualDeviceConnectInfo' ),
                                                   'backing' =&amp;gt; bless( {
                                                                         'fileName' =&amp;gt; ''
                                                                       }, 'VirtualCdromIsoBackingInfo' ),
                                                   'unitNumber' =&amp;gt; 0,
                                                   'controllerKey' =&amp;gt; 200,
                                                   'key' =&amp;gt; 3000
                                                 }, 'VirtualCdrom' )
                            }, 'VirtualDeviceConfigSpec' )
                   ]
}, 'VirtualMachineConfigSpec' );
&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Does anybody know how could I retrieve the backing data type.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 17 Apr 2009 11:27:36 GMT</pubDate>
    <dc:creator>Humphry</dc:creator>
    <dc:date>2009-04-17T11:27:36Z</dc:date>
    <item>
      <title>issue retrieving data types</title>
      <link>https://communities.vmware.com/t5/vSphere-Management-SDK/issue-retrieving-data-types/m-p/248226#M1116</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, I have a problem trying to retrive the data type of an object. I use the VMUtils::find_device method to get the cdrom especification.Then I need to obtain the backing data type (VirtualCdromRemoteAtapiBackingInfo or VirtualCdromIsoBackingInfo) but I don't know how to retrieve this info from $cdrom_spec-&amp;amp;gt;backing.  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The value of $cdrom_spec is:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code"&gt;
$VAR1 = bless( {
 'deviceChange' =&amp;gt; [
                     bless( {
                              'operation' =&amp;gt; bless( {
                                                      'val' =&amp;gt; 'remove'
                                                    }, 'VirtualDeviceConfigSpecOperation' ),
                              'device' =&amp;gt; bless( {
                                                   'connectable' =&amp;gt; bless( {
                                                                             'allowGuestControl' =&amp;gt; 0,
                                                                             'connected' =&amp;gt; 0,
                                                                             'startConnected' =&amp;gt; 1
                                                                           }, 'VirtualDeviceConnectInfo' ),
                                                   'backing' =&amp;gt; bless( {
                                                                         'fileName' =&amp;gt; ''
                                                                       }, 'VirtualCdromIsoBackingInfo' ),
                                                   'unitNumber' =&amp;gt; 0,
                                                   'controllerKey' =&amp;gt; 200,
                                                   'key' =&amp;gt; 3000
                                                 }, 'VirtualCdrom' )
                            }, 'VirtualDeviceConfigSpec' )
                   ]
}, 'VirtualMachineConfigSpec' );
&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Does anybody know how could I retrieve the backing data type.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Apr 2009 11:27:36 GMT</pubDate>
      <guid>https://communities.vmware.com/t5/vSphere-Management-SDK/issue-retrieving-data-types/m-p/248226#M1116</guid>
      <dc:creator>Humphry</dc:creator>
      <dc:date>2009-04-17T11:27:36Z</dc:date>
    </item>
    <item>
      <title>Re: issue retrieving data types</title>
      <link>https://communities.vmware.com/t5/vSphere-Management-SDK/issue-retrieving-data-types/m-p/248227#M1117</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In perl, you can use "ref" to find out the type of thing being referenced. Here, it will be as follows:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;amp;gt; print ref($cdrom_spec-&amp;amp;gt;backing);&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Apr 2009 11:57:24 GMT</pubDate>
      <guid>https://communities.vmware.com/t5/vSphere-Management-SDK/issue-retrieving-data-types/m-p/248227#M1117</guid>
      <dc:creator>njain</dc:creator>
      <dc:date>2009-04-17T11:57:24Z</dc:date>
    </item>
    <item>
      <title>Re: issue retrieving data types</title>
      <link>https://communities.vmware.com/t5/vSphere-Management-SDK/issue-retrieving-data-types/m-p/248228#M1118</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thanks njain, it works great!!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Apr 2009 12:05:36 GMT</pubDate>
      <guid>https://communities.vmware.com/t5/vSphere-Management-SDK/issue-retrieving-data-types/m-p/248228#M1118</guid>
      <dc:creator>Humphry</dc:creator>
      <dc:date>2009-04-17T12:05:36Z</dc:date>
    </item>
  </channel>
</rss>

