func expandHostNasVolumeSpec(d *schema.ResourceData) *types.HostNasVolumeSpec {
	obj := &types.HostNasVolumeSpec{
		AccessMode:      d.Get("access_mode").(string),
		LocalPath:       d.Get("name").(string),
		RemoteHost:      structure.SliceInterfacesToStrings(d.Get("remote_hosts").([]interface{}))[0],
		RemoteHostNames: structure.SliceInterfacesToStrings(d.Get("remote_hosts").([]interface{})),
		RemotePath:      d.Get("remote_path").(string),
		SecurityType:    d.Get("security_type").(string),
		Type:            d.Get("type").(string),
	}

	return obj
}
func expandHostNasVolumeSpec(d *schema.ResourceData) *types.HostNasVolumeSpec {
	obj := &types.HostNasVolumeSpec{
		AccessMode:      d.Get("access_mode").(string),
		LocalPath:       d.Get("name").(string),
		RemoteHost:      structure.SliceInterfacesToStrings(d.Get("remote_hosts").([]interface{}))[0],
		RemoteHostNames: structure.SliceInterfacesToStrings(d.Get("remote_hosts").([]interface{})),
		RemotePath:      d.Get("remote_path").(string),
		SecurityType:    d.Get("security_type").(string),
		Type:            d.Get("type").(string),
	}

	return obj
}
func expandHostNasVolumeSpec ( d * schema . ResourceData ) * types . HostNasVolumeSpec { obj := & types . HostNasVolumeSpec { AccessMode : d . Get ( " " ) . ( string ) , LocalPath : d . Get ( " " ) . ( string ) , RemoteHost : structure . SliceInterfacesToStrings ( d . Get ( " " ) . ( [ ] interface { } ) ) [ 0 ] , RemoteHostNames : structure . SliceInterfacesToStrings ( d . Get ( " " ) . ( [ ] interface { } ) ) , RemotePath : d . Get ( " " ) . ( string ) , SecurityType : d . Get ( " " ) . ( string ) , Type : d . Get ( " " ) . ( string ) , } return obj }
// expandHostNasVolumeSpec reads certain ResourceData keys and returns a
// HostNasVolumeSpec.
expandHostNasVolumeSpec reads certain ResourceData keys and returns a HostNasVolumeSpec .