code: func (o *NamedPorts) SetPorts(v []int) *NamedPorts {
  	if o.Ports = v; o.Ports == nil {
  		o.nullFields = append(o.nullFields, "Ports")
  	}
  	return o
  }
docs: // SetPorts sets the list of ports in the NamedPorts