vsphere/distributed_virtual_switch_structure.go
func flattenSliceOfDvsHostInfrastructureTrafficResource(d *schema.ResourceData, s []types.DvsHostInfrastructureTrafficResource) error {
	for _, v := range s {
		if err := flattenDvsHostInfrastructureTrafficResource(d, v, v.Key); err != nil {
			return err
		}
	}
	return nil
}
func flattenSliceOfDvsHostInfrastructureTrafficResource(d *schema.ResourceData, s []types.DvsHostInfrastructureTrafficResource) error {
	for _, v := range s {
		if err := flattenDvsHostInfrastructureTrafficResource(d, v, v.Key); err != nil {
			return err
		}
	}
	return nil
}
func flattenSliceOfDvsHostInfrastructureTrafficResource ( d * schema . ResourceData , s [ ] types . DvsHostInfrastructureTrafficResource ) error { for _ , v := range s { if err := flattenDvsHostInfrastructureTrafficResource ( d , v , v . Key ) ; err != nil { return err } } return nil }
// flattenSliceOfDvsHostInfrastructureTrafficResource reads in the supplied network I/O control allocation entries supplied via a respective DVSConfigInfo field and sets the appropriate keys in the supplied ResourceData.
flattenSliceOfDvsHostInfrastructureTrafficResource reads in the supplied network I / O control allocation entries supplied via a respective DVSConfigInfo field and sets the appropriate keys in the supplied ResourceData .