vsphere/internal/virtualdevice/virtual_machine_cdrom_subresource.go
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
}
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
}
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 }
// NewCdromSubresource returns a subresource populated with all of the necessary
// fields.
NewCdromSubresource returns a subresource populated with all of the necessary fields .