// WithLogoutChallenge adds the logoutChallenge to the get logout request params
550784
func (o *GetLogoutRequestParams) WithLogoutChallenge(logoutChallenge string) *GetLogoutRequestParams {
	o.SetLogoutChallenge(logoutChallenge)
	return o
}
413048
func (o *GetLogoutRequestParams) WithHTTPClient(client *http.Client) *GetLogoutRequestParams {
	o.SetHTTPClient(client)
	return o
}
880380
func (o *GetFqdnCacheParams) WithTimeout(timeout time.Duration) *GetFqdnCacheParams {
	o.SetTimeout(timeout)
	return o
}
1348300
func WithDialTimeout(timeout time.Duration) LoggerOption {
	return func(cfg *JSONLoggerConfig) {
		cfg.DialTimeout = timeout
	}
}
1360671
func (o *Oauth2TokenParams) WithTimeout(timeout time.Duration) *Oauth2TokenParams {
	o.SetTimeout(timeout)
	return o
}
117238
func (o *OauthAuthParams) WithTimeout(timeout time.Duration) *OauthAuthParams {
	o.SetTimeout(timeout)
	return o
}
1265925
func WithError(err error) LogEntry {
	return &logEntry{log.WithField(logrus.ErrorKey, err)}
}
460475
func (o *GetLoginRequestParams) WithLoginChallenge(loginChallenge string) *GetLoginRequestParams {
	o.SetLoginChallenge(loginChallenge)
	return o
}
964081
func (d *IdentifyDispatch) OnLogout() {
	d.Lock()
	defer d.Unlock()
	d.listeners = nil
}
1072678
func (o *PatchEndpointIDConfigParams) WithTimeout(timeout time.Duration) *PatchEndpointIDConfigParams {
	o.SetTimeout(timeout)
	return o
}
876375
func (o *PatchEndpointIDParams) WithTimeout(timeout time.Duration) *PatchEndpointIDParams {
	o.SetTimeout(timeout)
	return o
}
267181
func (_class SessionClass) Logout(sessionID SessionRef) (_err error) {
	_method := "session.logout"
	_sessionIDArg, _err := convertSessionRefToXen(fmt.Sprintf("%s(%s)", _method, "session_id"), sessionID)
	if _err != nil {
		return
	}
	_, _err =  _class.client.APICall(_method, _sessionIDArg)
	return
}
111842
func (o *RejectLogoutRequestParams) WithLogoutChallenge(logoutChallenge string) *RejectLogoutRequestParams {
	o.SetLogoutChallenge(logoutChallenge)
	return o
}
1219684
func (c *Client) Logout(ctx context.Context) error {
	req := internal.URL(c, internal.SessionPath).Request(http.MethodDelete)
	return c.Do(ctx, req, nil)
}
8739
func WithSessionTimeout(timeout string) ClientOptionFunc {
	return func(c *Client) error {
		if timeout == "" {
			c.sessionTimeout = DefaultTimeout
			return nil
		}

		t, err := time.ParseDuration(timeout)
		if err != nil {
			return client.InvalidTimeoutError{Timeout: timeout}
		}
		c.sessionTimeout = t
		return nil
	}
}
971892
func (o *DisconnectUserParams) WithTimeout(timeout time.Duration) *DisconnectUserParams {
	o.SetTimeout(timeout)
	return o
}
586510
func WithTimeout(timeoutType fab.TimeoutType, timeout time.Duration) RequestOption {
	return func(ctx context.Client, o *requestOptions) error {
		if o.Timeouts == nil {
			o.Timeouts = make(map[fab.TimeoutType]time.Duration)
		}
		o.Timeouts[timeoutType] = timeout
		return nil
	}
}