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