code: func NewCdromSubresource(client *govmomi.Client, rdd resourceDataDiff, d, old map[string]interface{}, idx int) *CdromSubresource {
  	sr := &CdromSubresource{
  		Subresource: &Subresource{
  			schema:  CdromSubresourceSchema(),
  			client:  client,
  			srtype:  subresourceTypeCdrom,
  			data:    d,
  			olddata: old,
  			rdd:     rdd,
  		},
  	}
  	sr.Index = idx
  	return sr
  }
docs: // NewCdromSubresource returns a subresource populated with all of the necessary
  // fields.