vsphere/distributed_virtual_switch_structure.go
func expandSliceOfDvsHostInfrastructureTrafficResource(d *schema.ResourceData) []types.DvsHostInfrastructureTrafficResource {
	var s []types.DvsHostInfrastructureTrafficResource
	for _, key := range infrastructureTrafficClassValues {
		v := expandDvsHostInfrastructureTrafficResource(d, key)
		if v != nil {
			s = append(s, *v)
		}
	}
	return s
}
func expandSliceOfDvsHostInfrastructureTrafficResource(d *schema.ResourceData) []types.DvsHostInfrastructureTrafficResource {
	var s []types.DvsHostInfrastructureTrafficResource
	for _, key := range infrastructureTrafficClassValues {
		v := expandDvsHostInfrastructureTrafficResource(d, key)
		if v != nil {
			s = append(s, *v)
		}
	}
	return s
}
// expandSliceOfDvsHostInfrastructureTrafficResource expands all network I/O
// control resource entries that are currently supported in API, and returns a
// slice of DvsHostInfrastructureTrafficResource.