code: func (_m *APIClient) SwarmUpdate(ctx context.Context, version swarm.Version, _a2 swarm.Spec, flags swarm.UpdateFlags) error {
  	ret := _m.Called(ctx, version, _a2, flags)
  
  	var r0 error
  	if rf, ok := ret.Get(0).(func(context.Context, swarm.Version, swarm.Spec, swarm.UpdateFlags) error); ok {
  		r0 = rf(ctx, version, _a2, flags)
  	} else {
  		r0 = ret.Error(0)
  	}
  
  	return r0
  }
docs: // SwarmUpdate provides a mock function with given fields: ctx, version, _a2, flags