ldap

package
v0.29.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 24, 2023 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type API

type API interface {
	/*
	   ImportLdapUser imports selected available ldap users

	   This endpoint adds the selected available ldap users to harbor based on related configuration parameters from the system. System will try to guess the user email address and realname, add to harbor user information. If have errors when import user, will return the list of importing failed uid and the failed reason.
	*/
	ImportLdapUser(ctx context.Context, params *ImportLdapUserParams) (*ImportLdapUserOK, error)
	/*
	   PingLdap pings available ldap service

	   This endpoint ping the available ldap service for test related configuration parameters.
	*/
	PingLdap(ctx context.Context, params *PingLdapParams) (*PingLdapOK, error)
	/*
	   SearchLdapGroup searches available ldap groups

	   This endpoint searches the available ldap groups based on related configuration parameters. support to search by groupname or groupdn.
	*/
	SearchLdapGroup(ctx context.Context, params *SearchLdapGroupParams) (*SearchLdapGroupOK, error)
	/*
	   SearchLdapUser searches available ldap users

	   This endpoint searches the available ldap users based on related configuration parameters. Support searched by input ladp configuration, load configuration from the system and specific filter.
	*/
	SearchLdapUser(ctx context.Context, params *SearchLdapUserParams) (*SearchLdapUserOK, error)
}

API is the interface of the ldap client

type Client

type Client struct {
	// contains filtered or unexported fields
}

Client for ldap API

func New

func New(transport runtime.ClientTransport, formats strfmt.Registry, authInfo runtime.ClientAuthInfoWriter) *Client

New creates a new ldap API client.

func (*Client) ImportLdapUser

func (a *Client) ImportLdapUser(ctx context.Context, params *ImportLdapUserParams) (*ImportLdapUserOK, error)

ImportLdapUser imports selected available ldap users

This endpoint adds the selected available ldap users to harbor based on related configuration parameters from the system. System will try to guess the user email address and realname, add to harbor user information. If have errors when import user, will return the list of importing failed uid and the failed reason.

func (*Client) PingLdap

func (a *Client) PingLdap(ctx context.Context, params *PingLdapParams) (*PingLdapOK, error)

PingLdap pings available ldap service

This endpoint ping the available ldap service for test related configuration parameters.

func (*Client) SearchLdapGroup

func (a *Client) SearchLdapGroup(ctx context.Context, params *SearchLdapGroupParams) (*SearchLdapGroupOK, error)

SearchLdapGroup searches available ldap groups

This endpoint searches the available ldap groups based on related configuration parameters. support to search by groupname or groupdn.

func (*Client) SearchLdapUser

func (a *Client) SearchLdapUser(ctx context.Context, params *SearchLdapUserParams) (*SearchLdapUserOK, error)

SearchLdapUser searches available ldap users

This endpoint searches the available ldap users based on related configuration parameters. Support searched by input ladp configuration, load configuration from the system and specific filter.

type ImportLdapUserBadRequest

type ImportLdapUserBadRequest struct {

	/* The ID of the corresponding request for the response
	 */
	XRequestID string

	Payload *models.Errors
}

ImportLdapUserBadRequest describes a response with status code 400, with default header values.

Bad request

func NewImportLdapUserBadRequest

func NewImportLdapUserBadRequest() *ImportLdapUserBadRequest

NewImportLdapUserBadRequest creates a ImportLdapUserBadRequest with default headers values

func (*ImportLdapUserBadRequest) Error

func (o *ImportLdapUserBadRequest) Error() string

func (*ImportLdapUserBadRequest) GetPayload

func (o *ImportLdapUserBadRequest) GetPayload() *models.Errors

func (*ImportLdapUserBadRequest) IsClientError

func (o *ImportLdapUserBadRequest) IsClientError() bool

IsClientError returns true when this import ldap user bad request response has a 4xx status code

func (*ImportLdapUserBadRequest) IsCode

func (o *ImportLdapUserBadRequest) IsCode(code int) bool

IsCode returns true when this import ldap user bad request response a status code equal to that given

func (*ImportLdapUserBadRequest) IsRedirect

func (o *ImportLdapUserBadRequest) IsRedirect() bool

IsRedirect returns true when this import ldap user bad request response has a 3xx status code

func (*ImportLdapUserBadRequest) IsServerError

func (o *ImportLdapUserBadRequest) IsServerError() bool

IsServerError returns true when this import ldap user bad request response has a 5xx status code

func (*ImportLdapUserBadRequest) IsSuccess

func (o *ImportLdapUserBadRequest) IsSuccess() bool

IsSuccess returns true when this import ldap user bad request response has a 2xx status code

func (*ImportLdapUserBadRequest) String

func (o *ImportLdapUserBadRequest) String() string

type ImportLdapUserForbidden

type ImportLdapUserForbidden struct {

	/* The ID of the corresponding request for the response
	 */
	XRequestID string

	Payload *models.Errors
}

ImportLdapUserForbidden describes a response with status code 403, with default header values.

Forbidden

func NewImportLdapUserForbidden

func NewImportLdapUserForbidden() *ImportLdapUserForbidden

NewImportLdapUserForbidden creates a ImportLdapUserForbidden with default headers values

func (*ImportLdapUserForbidden) Error

func (o *ImportLdapUserForbidden) Error() string

func (*ImportLdapUserForbidden) GetPayload

func (o *ImportLdapUserForbidden) GetPayload() *models.Errors

func (*ImportLdapUserForbidden) IsClientError

func (o *ImportLdapUserForbidden) IsClientError() bool

IsClientError returns true when this import ldap user forbidden response has a 4xx status code

func (*ImportLdapUserForbidden) IsCode

func (o *ImportLdapUserForbidden) IsCode(code int) bool

IsCode returns true when this import ldap user forbidden response a status code equal to that given

func (*ImportLdapUserForbidden) IsRedirect

func (o *ImportLdapUserForbidden) IsRedirect() bool

IsRedirect returns true when this import ldap user forbidden response has a 3xx status code

func (*ImportLdapUserForbidden) IsServerError

func (o *ImportLdapUserForbidden) IsServerError() bool

IsServerError returns true when this import ldap user forbidden response has a 5xx status code

func (*ImportLdapUserForbidden) IsSuccess

func (o *ImportLdapUserForbidden) IsSuccess() bool

IsSuccess returns true when this import ldap user forbidden response has a 2xx status code

func (*ImportLdapUserForbidden) String

func (o *ImportLdapUserForbidden) String() string

type ImportLdapUserInternalServerError

type ImportLdapUserInternalServerError struct {

	/* The ID of the corresponding request for the response
	 */
	XRequestID string

	Payload *models.Errors
}

ImportLdapUserInternalServerError describes a response with status code 500, with default header values.

Internal server error

func NewImportLdapUserInternalServerError

func NewImportLdapUserInternalServerError() *ImportLdapUserInternalServerError

NewImportLdapUserInternalServerError creates a ImportLdapUserInternalServerError with default headers values

func (*ImportLdapUserInternalServerError) Error

func (*ImportLdapUserInternalServerError) GetPayload

func (*ImportLdapUserInternalServerError) IsClientError

func (o *ImportLdapUserInternalServerError) IsClientError() bool

IsClientError returns true when this import ldap user internal server error response has a 4xx status code

func (*ImportLdapUserInternalServerError) IsCode

func (o *ImportLdapUserInternalServerError) IsCode(code int) bool

IsCode returns true when this import ldap user internal server error response a status code equal to that given

func (*ImportLdapUserInternalServerError) IsRedirect

func (o *ImportLdapUserInternalServerError) IsRedirect() bool

IsRedirect returns true when this import ldap user internal server error response has a 3xx status code

func (*ImportLdapUserInternalServerError) IsServerError

func (o *ImportLdapUserInternalServerError) IsServerError() bool

IsServerError returns true when this import ldap user internal server error response has a 5xx status code

func (*ImportLdapUserInternalServerError) IsSuccess

func (o *ImportLdapUserInternalServerError) IsSuccess() bool

IsSuccess returns true when this import ldap user internal server error response has a 2xx status code

func (*ImportLdapUserInternalServerError) String

type ImportLdapUserNotFound

type ImportLdapUserNotFound struct {
	Payload []*models.LdapFailedImportUser
}

ImportLdapUserNotFound describes a response with status code 404, with default header values.

Failed import some users.

func NewImportLdapUserNotFound

func NewImportLdapUserNotFound() *ImportLdapUserNotFound

NewImportLdapUserNotFound creates a ImportLdapUserNotFound with default headers values

func (*ImportLdapUserNotFound) Error

func (o *ImportLdapUserNotFound) Error() string

func (*ImportLdapUserNotFound) GetPayload

func (*ImportLdapUserNotFound) IsClientError

func (o *ImportLdapUserNotFound) IsClientError() bool

IsClientError returns true when this import ldap user not found response has a 4xx status code

func (*ImportLdapUserNotFound) IsCode

func (o *ImportLdapUserNotFound) IsCode(code int) bool

IsCode returns true when this import ldap user not found response a status code equal to that given

func (*ImportLdapUserNotFound) IsRedirect

func (o *ImportLdapUserNotFound) IsRedirect() bool

IsRedirect returns true when this import ldap user not found response has a 3xx status code

func (*ImportLdapUserNotFound) IsServerError

func (o *ImportLdapUserNotFound) IsServerError() bool

IsServerError returns true when this import ldap user not found response has a 5xx status code

func (*ImportLdapUserNotFound) IsSuccess

func (o *ImportLdapUserNotFound) IsSuccess() bool

IsSuccess returns true when this import ldap user not found response has a 2xx status code

func (*ImportLdapUserNotFound) String

func (o *ImportLdapUserNotFound) String() string

type ImportLdapUserOK

type ImportLdapUserOK struct {
}

ImportLdapUserOK describes a response with status code 200, with default header values.

Add ldap users successfully.

func NewImportLdapUserOK

func NewImportLdapUserOK() *ImportLdapUserOK

NewImportLdapUserOK creates a ImportLdapUserOK with default headers values

func (*ImportLdapUserOK) Error

func (o *ImportLdapUserOK) Error() string

func (*ImportLdapUserOK) IsClientError

func (o *ImportLdapUserOK) IsClientError() bool

IsClientError returns true when this import ldap user o k response has a 4xx status code

func (*ImportLdapUserOK) IsCode

func (o *ImportLdapUserOK) IsCode(code int) bool

IsCode returns true when this import ldap user o k response a status code equal to that given

func (*ImportLdapUserOK) IsRedirect

func (o *ImportLdapUserOK) IsRedirect() bool

IsRedirect returns true when this import ldap user o k response has a 3xx status code

func (*ImportLdapUserOK) IsServerError

func (o *ImportLdapUserOK) IsServerError() bool

IsServerError returns true when this import ldap user o k response has a 5xx status code

func (*ImportLdapUserOK) IsSuccess

func (o *ImportLdapUserOK) IsSuccess() bool

IsSuccess returns true when this import ldap user o k response has a 2xx status code

func (*ImportLdapUserOK) String

func (o *ImportLdapUserOK) String() string

type ImportLdapUserParams

type ImportLdapUserParams struct {

	/* XRequestID.

	   An unique ID for the request
	*/
	XRequestID *string

	/* UIDList.

	   The uid listed for importing. This list will check users validity of ldap service based on configuration from the system.
	*/
	UIDList *models.LdapImportUsers

	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

ImportLdapUserParams contains all the parameters to send to the API endpoint

for the import ldap user operation.

Typically these are written to a http.Request.

func NewImportLdapUserParams

func NewImportLdapUserParams() *ImportLdapUserParams

NewImportLdapUserParams creates a new ImportLdapUserParams object, with the default timeout for this client.

Default values are not hydrated, since defaults are normally applied by the API server side.

To enforce default values in parameter, use SetDefaults or WithDefaults.

func NewImportLdapUserParamsWithContext

func NewImportLdapUserParamsWithContext(ctx context.Context) *ImportLdapUserParams

NewImportLdapUserParamsWithContext creates a new ImportLdapUserParams object with the ability to set a context for a request.

func NewImportLdapUserParamsWithHTTPClient

func NewImportLdapUserParamsWithHTTPClient(client *http.Client) *ImportLdapUserParams

NewImportLdapUserParamsWithHTTPClient creates a new ImportLdapUserParams object with the ability to set a custom HTTPClient for a request.

func NewImportLdapUserParamsWithTimeout

func NewImportLdapUserParamsWithTimeout(timeout time.Duration) *ImportLdapUserParams

NewImportLdapUserParamsWithTimeout creates a new ImportLdapUserParams object with the ability to set a timeout on a request.

func (*ImportLdapUserParams) SetContext

func (o *ImportLdapUserParams) SetContext(ctx context.Context)

SetContext adds the context to the import ldap user params

func (*ImportLdapUserParams) SetDefaults

func (o *ImportLdapUserParams) SetDefaults()

SetDefaults hydrates default values in the import ldap user params (not the query body).

All values with no default are reset to their zero value.

func (*ImportLdapUserParams) SetHTTPClient

func (o *ImportLdapUserParams) SetHTTPClient(client *http.Client)

SetHTTPClient adds the HTTPClient to the import ldap user params

func (*ImportLdapUserParams) SetTimeout

func (o *ImportLdapUserParams) SetTimeout(timeout time.Duration)

SetTimeout adds the timeout to the import ldap user params

func (*ImportLdapUserParams) SetUIDList

func (o *ImportLdapUserParams) SetUIDList(uIDList *models.LdapImportUsers)

SetUIDList adds the uidList to the import ldap user params

func (*ImportLdapUserParams) SetXRequestID

func (o *ImportLdapUserParams) SetXRequestID(xRequestID *string)

SetXRequestID adds the xRequestId to the import ldap user params

func (*ImportLdapUserParams) WithContext

WithContext adds the context to the import ldap user params

func (*ImportLdapUserParams) WithDefaults

func (o *ImportLdapUserParams) WithDefaults() *ImportLdapUserParams

WithDefaults hydrates default values in the import ldap user params (not the query body).

All values with no default are reset to their zero value.

func (*ImportLdapUserParams) WithHTTPClient

func (o *ImportLdapUserParams) WithHTTPClient(client *http.Client) *ImportLdapUserParams

WithHTTPClient adds the HTTPClient to the import ldap user params

func (*ImportLdapUserParams) WithTimeout

func (o *ImportLdapUserParams) WithTimeout(timeout time.Duration) *ImportLdapUserParams

WithTimeout adds the timeout to the import ldap user params

func (*ImportLdapUserParams) WithUIDList

WithUIDList adds the uIDList to the import ldap user params

func (*ImportLdapUserParams) WithXRequestID

func (o *ImportLdapUserParams) WithXRequestID(xRequestID *string) *ImportLdapUserParams

WithXRequestID adds the xRequestID to the import ldap user params

func (*ImportLdapUserParams) WriteToRequest

func (o *ImportLdapUserParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error

WriteToRequest writes these params to a swagger request

type ImportLdapUserReader

type ImportLdapUserReader struct {
	// contains filtered or unexported fields
}

ImportLdapUserReader is a Reader for the ImportLdapUser structure.

func (*ImportLdapUserReader) ReadResponse

func (o *ImportLdapUserReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)

ReadResponse reads a server response into the received o.

type ImportLdapUserUnauthorized

type ImportLdapUserUnauthorized struct {

	/* The ID of the corresponding request for the response
	 */
	XRequestID string

	Payload *models.Errors
}

ImportLdapUserUnauthorized describes a response with status code 401, with default header values.

Unauthorized

func NewImportLdapUserUnauthorized

func NewImportLdapUserUnauthorized() *ImportLdapUserUnauthorized

NewImportLdapUserUnauthorized creates a ImportLdapUserUnauthorized with default headers values

func (*ImportLdapUserUnauthorized) Error

func (*ImportLdapUserUnauthorized) GetPayload

func (o *ImportLdapUserUnauthorized) GetPayload() *models.Errors

func (*ImportLdapUserUnauthorized) IsClientError

func (o *ImportLdapUserUnauthorized) IsClientError() bool

IsClientError returns true when this import ldap user unauthorized response has a 4xx status code

func (*ImportLdapUserUnauthorized) IsCode

func (o *ImportLdapUserUnauthorized) IsCode(code int) bool

IsCode returns true when this import ldap user unauthorized response a status code equal to that given

func (*ImportLdapUserUnauthorized) IsRedirect

func (o *ImportLdapUserUnauthorized) IsRedirect() bool

IsRedirect returns true when this import ldap user unauthorized response has a 3xx status code

func (*ImportLdapUserUnauthorized) IsServerError

func (o *ImportLdapUserUnauthorized) IsServerError() bool

IsServerError returns true when this import ldap user unauthorized response has a 5xx status code

func (*ImportLdapUserUnauthorized) IsSuccess

func (o *ImportLdapUserUnauthorized) IsSuccess() bool

IsSuccess returns true when this import ldap user unauthorized response has a 2xx status code

func (*ImportLdapUserUnauthorized) String

func (o *ImportLdapUserUnauthorized) String() string

type PingLdapBadRequest

type PingLdapBadRequest struct {

	/* The ID of the corresponding request for the response
	 */
	XRequestID string

	Payload *models.Errors
}

PingLdapBadRequest describes a response with status code 400, with default header values.

Bad request

func NewPingLdapBadRequest

func NewPingLdapBadRequest() *PingLdapBadRequest

NewPingLdapBadRequest creates a PingLdapBadRequest with default headers values

func (*PingLdapBadRequest) Error

func (o *PingLdapBadRequest) Error() string

func (*PingLdapBadRequest) GetPayload

func (o *PingLdapBadRequest) GetPayload() *models.Errors

func (*PingLdapBadRequest) IsClientError

func (o *PingLdapBadRequest) IsClientError() bool

IsClientError returns true when this ping ldap bad request response has a 4xx status code

func (*PingLdapBadRequest) IsCode

func (o *PingLdapBadRequest) IsCode(code int) bool

IsCode returns true when this ping ldap bad request response a status code equal to that given

func (*PingLdapBadRequest) IsRedirect

func (o *PingLdapBadRequest) IsRedirect() bool

IsRedirect returns true when this ping ldap bad request response has a 3xx status code

func (*PingLdapBadRequest) IsServerError

func (o *PingLdapBadRequest) IsServerError() bool

IsServerError returns true when this ping ldap bad request response has a 5xx status code

func (*PingLdapBadRequest) IsSuccess

func (o *PingLdapBadRequest) IsSuccess() bool

IsSuccess returns true when this ping ldap bad request response has a 2xx status code

func (*PingLdapBadRequest) String

func (o *PingLdapBadRequest) String() string

type PingLdapForbidden

type PingLdapForbidden struct {

	/* The ID of the corresponding request for the response
	 */
	XRequestID string

	Payload *models.Errors
}

PingLdapForbidden describes a response with status code 403, with default header values.

Forbidden

func NewPingLdapForbidden

func NewPingLdapForbidden() *PingLdapForbidden

NewPingLdapForbidden creates a PingLdapForbidden with default headers values

func (*PingLdapForbidden) Error

func (o *PingLdapForbidden) Error() string

func (*PingLdapForbidden) GetPayload

func (o *PingLdapForbidden) GetPayload() *models.Errors

func (*PingLdapForbidden) IsClientError

func (o *PingLdapForbidden) IsClientError() bool

IsClientError returns true when this ping ldap forbidden response has a 4xx status code

func (*PingLdapForbidden) IsCode

func (o *PingLdapForbidden) IsCode(code int) bool

IsCode returns true when this ping ldap forbidden response a status code equal to that given

func (*PingLdapForbidden) IsRedirect

func (o *PingLdapForbidden) IsRedirect() bool

IsRedirect returns true when this ping ldap forbidden response has a 3xx status code

func (*PingLdapForbidden) IsServerError

func (o *PingLdapForbidden) IsServerError() bool

IsServerError returns true when this ping ldap forbidden response has a 5xx status code

func (*PingLdapForbidden) IsSuccess

func (o *PingLdapForbidden) IsSuccess() bool

IsSuccess returns true when this ping ldap forbidden response has a 2xx status code

func (*PingLdapForbidden) String

func (o *PingLdapForbidden) String() string

type PingLdapInternalServerError

type PingLdapInternalServerError struct {

	/* The ID of the corresponding request for the response
	 */
	XRequestID string

	Payload *models.Errors
}

PingLdapInternalServerError describes a response with status code 500, with default header values.

Internal server error

func NewPingLdapInternalServerError

func NewPingLdapInternalServerError() *PingLdapInternalServerError

NewPingLdapInternalServerError creates a PingLdapInternalServerError with default headers values

func (*PingLdapInternalServerError) Error

func (*PingLdapInternalServerError) GetPayload

func (o *PingLdapInternalServerError) GetPayload() *models.Errors

func (*PingLdapInternalServerError) IsClientError

func (o *PingLdapInternalServerError) IsClientError() bool

IsClientError returns true when this ping ldap internal server error response has a 4xx status code

func (*PingLdapInternalServerError) IsCode

func (o *PingLdapInternalServerError) IsCode(code int) bool

IsCode returns true when this ping ldap internal server error response a status code equal to that given

func (*PingLdapInternalServerError) IsRedirect

func (o *PingLdapInternalServerError) IsRedirect() bool

IsRedirect returns true when this ping ldap internal server error response has a 3xx status code

func (*PingLdapInternalServerError) IsServerError

func (o *PingLdapInternalServerError) IsServerError() bool

IsServerError returns true when this ping ldap internal server error response has a 5xx status code

func (*PingLdapInternalServerError) IsSuccess

func (o *PingLdapInternalServerError) IsSuccess() bool

IsSuccess returns true when this ping ldap internal server error response has a 2xx status code

func (*PingLdapInternalServerError) String

func (o *PingLdapInternalServerError) String() string

type PingLdapOK

type PingLdapOK struct {
	Payload *models.LdapPingResult
}

PingLdapOK describes a response with status code 200, with default header values.

Ping ldap service successfully.

func NewPingLdapOK

func NewPingLdapOK() *PingLdapOK

NewPingLdapOK creates a PingLdapOK with default headers values

func (*PingLdapOK) Error

func (o *PingLdapOK) Error() string

func (*PingLdapOK) GetPayload

func (o *PingLdapOK) GetPayload() *models.LdapPingResult

func (*PingLdapOK) IsClientError

func (o *PingLdapOK) IsClientError() bool

IsClientError returns true when this ping ldap o k response has a 4xx status code

func (*PingLdapOK) IsCode

func (o *PingLdapOK) IsCode(code int) bool

IsCode returns true when this ping ldap o k response a status code equal to that given

func (*PingLdapOK) IsRedirect

func (o *PingLdapOK) IsRedirect() bool

IsRedirect returns true when this ping ldap o k response has a 3xx status code

func (*PingLdapOK) IsServerError

func (o *PingLdapOK) IsServerError() bool

IsServerError returns true when this ping ldap o k response has a 5xx status code

func (*PingLdapOK) IsSuccess

func (o *PingLdapOK) IsSuccess() bool

IsSuccess returns true when this ping ldap o k response has a 2xx status code

func (*PingLdapOK) String

func (o *PingLdapOK) String() string

type PingLdapParams

type PingLdapParams struct {

	/* XRequestID.

	   An unique ID for the request
	*/
	XRequestID *string

	/* Ldapconf.

	   ldap configuration. support input ldap service configuration. If it is a empty request, will load current configuration from the system.
	*/
	Ldapconf *models.LdapConf

	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

PingLdapParams contains all the parameters to send to the API endpoint

for the ping ldap operation.

Typically these are written to a http.Request.

func NewPingLdapParams

func NewPingLdapParams() *PingLdapParams

NewPingLdapParams creates a new PingLdapParams object, with the default timeout for this client.

Default values are not hydrated, since defaults are normally applied by the API server side.

To enforce default values in parameter, use SetDefaults or WithDefaults.

func NewPingLdapParamsWithContext

func NewPingLdapParamsWithContext(ctx context.Context) *PingLdapParams

NewPingLdapParamsWithContext creates a new PingLdapParams object with the ability to set a context for a request.

func NewPingLdapParamsWithHTTPClient

func NewPingLdapParamsWithHTTPClient(client *http.Client) *PingLdapParams

NewPingLdapParamsWithHTTPClient creates a new PingLdapParams object with the ability to set a custom HTTPClient for a request.

func NewPingLdapParamsWithTimeout

func NewPingLdapParamsWithTimeout(timeout time.Duration) *PingLdapParams

NewPingLdapParamsWithTimeout creates a new PingLdapParams object with the ability to set a timeout on a request.

func (*PingLdapParams) SetContext

func (o *PingLdapParams) SetContext(ctx context.Context)

SetContext adds the context to the ping ldap params

func (*PingLdapParams) SetDefaults

func (o *PingLdapParams) SetDefaults()

SetDefaults hydrates default values in the ping ldap params (not the query body).

All values with no default are reset to their zero value.

func (*PingLdapParams) SetHTTPClient

func (o *PingLdapParams) SetHTTPClient(client *http.Client)

SetHTTPClient adds the HTTPClient to the ping ldap params

func (*PingLdapParams) SetLdapconf

func (o *PingLdapParams) SetLdapconf(ldapconf *models.LdapConf)

SetLdapconf adds the ldapconf to the ping ldap params

func (*PingLdapParams) SetTimeout

func (o *PingLdapParams) SetTimeout(timeout time.Duration)

SetTimeout adds the timeout to the ping ldap params

func (*PingLdapParams) SetXRequestID

func (o *PingLdapParams) SetXRequestID(xRequestID *string)

SetXRequestID adds the xRequestId to the ping ldap params

func (*PingLdapParams) WithContext

func (o *PingLdapParams) WithContext(ctx context.Context) *PingLdapParams

WithContext adds the context to the ping ldap params

func (*PingLdapParams) WithDefaults

func (o *PingLdapParams) WithDefaults() *PingLdapParams

WithDefaults hydrates default values in the ping ldap params (not the query body).

All values with no default are reset to their zero value.

func (*PingLdapParams) WithHTTPClient

func (o *PingLdapParams) WithHTTPClient(client *http.Client) *PingLdapParams

WithHTTPClient adds the HTTPClient to the ping ldap params

func (*PingLdapParams) WithLdapconf

func (o *PingLdapParams) WithLdapconf(ldapconf *models.LdapConf) *PingLdapParams

WithLdapconf adds the ldapconf to the ping ldap params

func (*PingLdapParams) WithTimeout

func (o *PingLdapParams) WithTimeout(timeout time.Duration) *PingLdapParams

WithTimeout adds the timeout to the ping ldap params

func (*PingLdapParams) WithXRequestID

func (o *PingLdapParams) WithXRequestID(xRequestID *string) *PingLdapParams

WithXRequestID adds the xRequestID to the ping ldap params

func (*PingLdapParams) WriteToRequest

func (o *PingLdapParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error

WriteToRequest writes these params to a swagger request

type PingLdapReader

type PingLdapReader struct {
	// contains filtered or unexported fields
}

PingLdapReader is a Reader for the PingLdap structure.

func (*PingLdapReader) ReadResponse

func (o *PingLdapReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)

ReadResponse reads a server response into the received o.

type PingLdapUnauthorized

type PingLdapUnauthorized struct {

	/* The ID of the corresponding request for the response
	 */
	XRequestID string

	Payload *models.Errors
}

PingLdapUnauthorized describes a response with status code 401, with default header values.

Unauthorized

func NewPingLdapUnauthorized

func NewPingLdapUnauthorized() *PingLdapUnauthorized

NewPingLdapUnauthorized creates a PingLdapUnauthorized with default headers values

func (*PingLdapUnauthorized) Error

func (o *PingLdapUnauthorized) Error() string

func (*PingLdapUnauthorized) GetPayload

func (o *PingLdapUnauthorized) GetPayload() *models.Errors

func (*PingLdapUnauthorized) IsClientError

func (o *PingLdapUnauthorized) IsClientError() bool

IsClientError returns true when this ping ldap unauthorized response has a 4xx status code

func (*PingLdapUnauthorized) IsCode

func (o *PingLdapUnauthorized) IsCode(code int) bool

IsCode returns true when this ping ldap unauthorized response a status code equal to that given

func (*PingLdapUnauthorized) IsRedirect

func (o *PingLdapUnauthorized) IsRedirect() bool

IsRedirect returns true when this ping ldap unauthorized response has a 3xx status code

func (*PingLdapUnauthorized) IsServerError

func (o *PingLdapUnauthorized) IsServerError() bool

IsServerError returns true when this ping ldap unauthorized response has a 5xx status code

func (*PingLdapUnauthorized) IsSuccess

func (o *PingLdapUnauthorized) IsSuccess() bool

IsSuccess returns true when this ping ldap unauthorized response has a 2xx status code

func (*PingLdapUnauthorized) String

func (o *PingLdapUnauthorized) String() string

type SearchLdapGroupBadRequest

type SearchLdapGroupBadRequest struct {

	/* The ID of the corresponding request for the response
	 */
	XRequestID string

	Payload *models.Errors
}

SearchLdapGroupBadRequest describes a response with status code 400, with default header values.

Bad request

func NewSearchLdapGroupBadRequest

func NewSearchLdapGroupBadRequest() *SearchLdapGroupBadRequest

NewSearchLdapGroupBadRequest creates a SearchLdapGroupBadRequest with default headers values

func (*SearchLdapGroupBadRequest) Error

func (o *SearchLdapGroupBadRequest) Error() string

func (*SearchLdapGroupBadRequest) GetPayload

func (o *SearchLdapGroupBadRequest) GetPayload() *models.Errors

func (*SearchLdapGroupBadRequest) IsClientError

func (o *SearchLdapGroupBadRequest) IsClientError() bool

IsClientError returns true when this search ldap group bad request response has a 4xx status code

func (*SearchLdapGroupBadRequest) IsCode

func (o *SearchLdapGroupBadRequest) IsCode(code int) bool

IsCode returns true when this search ldap group bad request response a status code equal to that given

func (*SearchLdapGroupBadRequest) IsRedirect

func (o *SearchLdapGroupBadRequest) IsRedirect() bool

IsRedirect returns true when this search ldap group bad request response has a 3xx status code

func (*SearchLdapGroupBadRequest) IsServerError

func (o *SearchLdapGroupBadRequest) IsServerError() bool

IsServerError returns true when this search ldap group bad request response has a 5xx status code

func (*SearchLdapGroupBadRequest) IsSuccess

func (o *SearchLdapGroupBadRequest) IsSuccess() bool

IsSuccess returns true when this search ldap group bad request response has a 2xx status code

func (*SearchLdapGroupBadRequest) String

func (o *SearchLdapGroupBadRequest) String() string

type SearchLdapGroupForbidden

type SearchLdapGroupForbidden struct {

	/* The ID of the corresponding request for the response
	 */
	XRequestID string

	Payload *models.Errors
}

SearchLdapGroupForbidden describes a response with status code 403, with default header values.

Forbidden

func NewSearchLdapGroupForbidden

func NewSearchLdapGroupForbidden() *SearchLdapGroupForbidden

NewSearchLdapGroupForbidden creates a SearchLdapGroupForbidden with default headers values

func (*SearchLdapGroupForbidden) Error

func (o *SearchLdapGroupForbidden) Error() string

func (*SearchLdapGroupForbidden) GetPayload

func (o *SearchLdapGroupForbidden) GetPayload() *models.Errors

func (*SearchLdapGroupForbidden) IsClientError

func (o *SearchLdapGroupForbidden) IsClientError() bool

IsClientError returns true when this search ldap group forbidden response has a 4xx status code

func (*SearchLdapGroupForbidden) IsCode

func (o *SearchLdapGroupForbidden) IsCode(code int) bool

IsCode returns true when this search ldap group forbidden response a status code equal to that given

func (*SearchLdapGroupForbidden) IsRedirect

func (o *SearchLdapGroupForbidden) IsRedirect() bool

IsRedirect returns true when this search ldap group forbidden response has a 3xx status code

func (*SearchLdapGroupForbidden) IsServerError

func (o *SearchLdapGroupForbidden) IsServerError() bool

IsServerError returns true when this search ldap group forbidden response has a 5xx status code

func (*SearchLdapGroupForbidden) IsSuccess

func (o *SearchLdapGroupForbidden) IsSuccess() bool

IsSuccess returns true when this search ldap group forbidden response has a 2xx status code

func (*SearchLdapGroupForbidden) String

func (o *SearchLdapGroupForbidden) String() string

type SearchLdapGroupInternalServerError

type SearchLdapGroupInternalServerError struct {

	/* The ID of the corresponding request for the response
	 */
	XRequestID string

	Payload *models.Errors
}

SearchLdapGroupInternalServerError describes a response with status code 500, with default header values.

Internal server error

func NewSearchLdapGroupInternalServerError

func NewSearchLdapGroupInternalServerError() *SearchLdapGroupInternalServerError

NewSearchLdapGroupInternalServerError creates a SearchLdapGroupInternalServerError with default headers values

func (*SearchLdapGroupInternalServerError) Error

func (*SearchLdapGroupInternalServerError) GetPayload

func (*SearchLdapGroupInternalServerError) IsClientError

func (o *SearchLdapGroupInternalServerError) IsClientError() bool

IsClientError returns true when this search ldap group internal server error response has a 4xx status code

func (*SearchLdapGroupInternalServerError) IsCode

IsCode returns true when this search ldap group internal server error response a status code equal to that given

func (*SearchLdapGroupInternalServerError) IsRedirect

func (o *SearchLdapGroupInternalServerError) IsRedirect() bool

IsRedirect returns true when this search ldap group internal server error response has a 3xx status code

func (*SearchLdapGroupInternalServerError) IsServerError

func (o *SearchLdapGroupInternalServerError) IsServerError() bool

IsServerError returns true when this search ldap group internal server error response has a 5xx status code

func (*SearchLdapGroupInternalServerError) IsSuccess

IsSuccess returns true when this search ldap group internal server error response has a 2xx status code

func (*SearchLdapGroupInternalServerError) String

type SearchLdapGroupOK

type SearchLdapGroupOK struct {
	Payload []*models.UserGroup
}

SearchLdapGroupOK describes a response with status code 200, with default header values.

Search ldap group successfully.

func NewSearchLdapGroupOK

func NewSearchLdapGroupOK() *SearchLdapGroupOK

NewSearchLdapGroupOK creates a SearchLdapGroupOK with default headers values

func (*SearchLdapGroupOK) Error

func (o *SearchLdapGroupOK) Error() string

func (*SearchLdapGroupOK) GetPayload

func (o *SearchLdapGroupOK) GetPayload() []*models.UserGroup

func (*SearchLdapGroupOK) IsClientError

func (o *SearchLdapGroupOK) IsClientError() bool

IsClientError returns true when this search ldap group o k response has a 4xx status code

func (*SearchLdapGroupOK) IsCode

func (o *SearchLdapGroupOK) IsCode(code int) bool

IsCode returns true when this search ldap group o k response a status code equal to that given

func (*SearchLdapGroupOK) IsRedirect

func (o *SearchLdapGroupOK) IsRedirect() bool

IsRedirect returns true when this search ldap group o k response has a 3xx status code

func (*SearchLdapGroupOK) IsServerError

func (o *SearchLdapGroupOK) IsServerError() bool

IsServerError returns true when this search ldap group o k response has a 5xx status code

func (*SearchLdapGroupOK) IsSuccess

func (o *SearchLdapGroupOK) IsSuccess() bool

IsSuccess returns true when this search ldap group o k response has a 2xx status code

func (*SearchLdapGroupOK) String

func (o *SearchLdapGroupOK) String() string

type SearchLdapGroupParams

type SearchLdapGroupParams struct {

	/* XRequestID.

	   An unique ID for the request
	*/
	XRequestID *string

	/* Groupdn.

	   The LDAP group DN
	*/
	Groupdn *string

	/* Groupname.

	   Ldap group name
	*/
	Groupname *string

	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

SearchLdapGroupParams contains all the parameters to send to the API endpoint

for the search ldap group operation.

Typically these are written to a http.Request.

func NewSearchLdapGroupParams

func NewSearchLdapGroupParams() *SearchLdapGroupParams

NewSearchLdapGroupParams creates a new SearchLdapGroupParams object, with the default timeout for this client.

Default values are not hydrated, since defaults are normally applied by the API server side.

To enforce default values in parameter, use SetDefaults or WithDefaults.

func NewSearchLdapGroupParamsWithContext

func NewSearchLdapGroupParamsWithContext(ctx context.Context) *SearchLdapGroupParams

NewSearchLdapGroupParamsWithContext creates a new SearchLdapGroupParams object with the ability to set a context for a request.

func NewSearchLdapGroupParamsWithHTTPClient

func NewSearchLdapGroupParamsWithHTTPClient(client *http.Client) *SearchLdapGroupParams

NewSearchLdapGroupParamsWithHTTPClient creates a new SearchLdapGroupParams object with the ability to set a custom HTTPClient for a request.

func NewSearchLdapGroupParamsWithTimeout

func NewSearchLdapGroupParamsWithTimeout(timeout time.Duration) *SearchLdapGroupParams

NewSearchLdapGroupParamsWithTimeout creates a new SearchLdapGroupParams object with the ability to set a timeout on a request.

func (*SearchLdapGroupParams) SetContext

func (o *SearchLdapGroupParams) SetContext(ctx context.Context)

SetContext adds the context to the search ldap group params

func (*SearchLdapGroupParams) SetDefaults

func (o *SearchLdapGroupParams) SetDefaults()

SetDefaults hydrates default values in the search ldap group params (not the query body).

All values with no default are reset to their zero value.

func (*SearchLdapGroupParams) SetGroupdn

func (o *SearchLdapGroupParams) SetGroupdn(groupdn *string)

SetGroupdn adds the groupdn to the search ldap group params

func (*SearchLdapGroupParams) SetGroupname

func (o *SearchLdapGroupParams) SetGroupname(groupname *string)

SetGroupname adds the groupname to the search ldap group params

func (*SearchLdapGroupParams) SetHTTPClient

func (o *SearchLdapGroupParams) SetHTTPClient(client *http.Client)

SetHTTPClient adds the HTTPClient to the search ldap group params

func (*SearchLdapGroupParams) SetTimeout

func (o *SearchLdapGroupParams) SetTimeout(timeout time.Duration)

SetTimeout adds the timeout to the search ldap group params

func (*SearchLdapGroupParams) SetXRequestID

func (o *SearchLdapGroupParams) SetXRequestID(xRequestID *string)

SetXRequestID adds the xRequestId to the search ldap group params

func (*SearchLdapGroupParams) WithContext

WithContext adds the context to the search ldap group params

func (*SearchLdapGroupParams) WithDefaults

func (o *SearchLdapGroupParams) WithDefaults() *SearchLdapGroupParams

WithDefaults hydrates default values in the search ldap group params (not the query body).

All values with no default are reset to their zero value.

func (*SearchLdapGroupParams) WithGroupdn

func (o *SearchLdapGroupParams) WithGroupdn(groupdn *string) *SearchLdapGroupParams

WithGroupdn adds the groupdn to the search ldap group params

func (*SearchLdapGroupParams) WithGroupname

func (o *SearchLdapGroupParams) WithGroupname(groupname *string) *SearchLdapGroupParams

WithGroupname adds the groupname to the search ldap group params

func (*SearchLdapGroupParams) WithHTTPClient

func (o *SearchLdapGroupParams) WithHTTPClient(client *http.Client) *SearchLdapGroupParams

WithHTTPClient adds the HTTPClient to the search ldap group params

func (*SearchLdapGroupParams) WithTimeout

func (o *SearchLdapGroupParams) WithTimeout(timeout time.Duration) *SearchLdapGroupParams

WithTimeout adds the timeout to the search ldap group params

func (*SearchLdapGroupParams) WithXRequestID

func (o *SearchLdapGroupParams) WithXRequestID(xRequestID *string) *SearchLdapGroupParams

WithXRequestID adds the xRequestID to the search ldap group params

func (*SearchLdapGroupParams) WriteToRequest

func (o *SearchLdapGroupParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error

WriteToRequest writes these params to a swagger request

type SearchLdapGroupReader

type SearchLdapGroupReader struct {
	// contains filtered or unexported fields
}

SearchLdapGroupReader is a Reader for the SearchLdapGroup structure.

func (*SearchLdapGroupReader) ReadResponse

func (o *SearchLdapGroupReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)

ReadResponse reads a server response into the received o.

type SearchLdapGroupUnauthorized

type SearchLdapGroupUnauthorized struct {

	/* The ID of the corresponding request for the response
	 */
	XRequestID string

	Payload *models.Errors
}

SearchLdapGroupUnauthorized describes a response with status code 401, with default header values.

Unauthorized

func NewSearchLdapGroupUnauthorized

func NewSearchLdapGroupUnauthorized() *SearchLdapGroupUnauthorized

NewSearchLdapGroupUnauthorized creates a SearchLdapGroupUnauthorized with default headers values

func (*SearchLdapGroupUnauthorized) Error

func (*SearchLdapGroupUnauthorized) GetPayload

func (o *SearchLdapGroupUnauthorized) GetPayload() *models.Errors

func (*SearchLdapGroupUnauthorized) IsClientError

func (o *SearchLdapGroupUnauthorized) IsClientError() bool

IsClientError returns true when this search ldap group unauthorized response has a 4xx status code

func (*SearchLdapGroupUnauthorized) IsCode

func (o *SearchLdapGroupUnauthorized) IsCode(code int) bool

IsCode returns true when this search ldap group unauthorized response a status code equal to that given

func (*SearchLdapGroupUnauthorized) IsRedirect

func (o *SearchLdapGroupUnauthorized) IsRedirect() bool

IsRedirect returns true when this search ldap group unauthorized response has a 3xx status code

func (*SearchLdapGroupUnauthorized) IsServerError

func (o *SearchLdapGroupUnauthorized) IsServerError() bool

IsServerError returns true when this search ldap group unauthorized response has a 5xx status code

func (*SearchLdapGroupUnauthorized) IsSuccess

func (o *SearchLdapGroupUnauthorized) IsSuccess() bool

IsSuccess returns true when this search ldap group unauthorized response has a 2xx status code

func (*SearchLdapGroupUnauthorized) String

func (o *SearchLdapGroupUnauthorized) String() string

type SearchLdapUserBadRequest

type SearchLdapUserBadRequest struct {

	/* The ID of the corresponding request for the response
	 */
	XRequestID string

	Payload *models.Errors
}

SearchLdapUserBadRequest describes a response with status code 400, with default header values.

Bad request

func NewSearchLdapUserBadRequest

func NewSearchLdapUserBadRequest() *SearchLdapUserBadRequest

NewSearchLdapUserBadRequest creates a SearchLdapUserBadRequest with default headers values

func (*SearchLdapUserBadRequest) Error

func (o *SearchLdapUserBadRequest) Error() string

func (*SearchLdapUserBadRequest) GetPayload

func (o *SearchLdapUserBadRequest) GetPayload() *models.Errors

func (*SearchLdapUserBadRequest) IsClientError

func (o *SearchLdapUserBadRequest) IsClientError() bool

IsClientError returns true when this search ldap user bad request response has a 4xx status code

func (*SearchLdapUserBadRequest) IsCode

func (o *SearchLdapUserBadRequest) IsCode(code int) bool

IsCode returns true when this search ldap user bad request response a status code equal to that given

func (*SearchLdapUserBadRequest) IsRedirect

func (o *SearchLdapUserBadRequest) IsRedirect() bool

IsRedirect returns true when this search ldap user bad request response has a 3xx status code

func (*SearchLdapUserBadRequest) IsServerError

func (o *SearchLdapUserBadRequest) IsServerError() bool

IsServerError returns true when this search ldap user bad request response has a 5xx status code

func (*SearchLdapUserBadRequest) IsSuccess

func (o *SearchLdapUserBadRequest) IsSuccess() bool

IsSuccess returns true when this search ldap user bad request response has a 2xx status code

func (*SearchLdapUserBadRequest) String

func (o *SearchLdapUserBadRequest) String() string

type SearchLdapUserForbidden

type SearchLdapUserForbidden struct {

	/* The ID of the corresponding request for the response
	 */
	XRequestID string

	Payload *models.Errors
}

SearchLdapUserForbidden describes a response with status code 403, with default header values.

Forbidden

func NewSearchLdapUserForbidden

func NewSearchLdapUserForbidden() *SearchLdapUserForbidden

NewSearchLdapUserForbidden creates a SearchLdapUserForbidden with default headers values

func (*SearchLdapUserForbidden) Error

func (o *SearchLdapUserForbidden) Error() string

func (*SearchLdapUserForbidden) GetPayload

func (o *SearchLdapUserForbidden) GetPayload() *models.Errors

func (*SearchLdapUserForbidden) IsClientError

func (o *SearchLdapUserForbidden) IsClientError() bool

IsClientError returns true when this search ldap user forbidden response has a 4xx status code

func (*SearchLdapUserForbidden) IsCode

func (o *SearchLdapUserForbidden) IsCode(code int) bool

IsCode returns true when this search ldap user forbidden response a status code equal to that given

func (*SearchLdapUserForbidden) IsRedirect

func (o *SearchLdapUserForbidden) IsRedirect() bool

IsRedirect returns true when this search ldap user forbidden response has a 3xx status code

func (*SearchLdapUserForbidden) IsServerError

func (o *SearchLdapUserForbidden) IsServerError() bool

IsServerError returns true when this search ldap user forbidden response has a 5xx status code

func (*SearchLdapUserForbidden) IsSuccess

func (o *SearchLdapUserForbidden) IsSuccess() bool

IsSuccess returns true when this search ldap user forbidden response has a 2xx status code

func (*SearchLdapUserForbidden) String

func (o *SearchLdapUserForbidden) String() string

type SearchLdapUserInternalServerError

type SearchLdapUserInternalServerError struct {

	/* The ID of the corresponding request for the response
	 */
	XRequestID string

	Payload *models.Errors
}

SearchLdapUserInternalServerError describes a response with status code 500, with default header values.

Internal server error

func NewSearchLdapUserInternalServerError

func NewSearchLdapUserInternalServerError() *SearchLdapUserInternalServerError

NewSearchLdapUserInternalServerError creates a SearchLdapUserInternalServerError with default headers values

func (*SearchLdapUserInternalServerError) Error

func (*SearchLdapUserInternalServerError) GetPayload

func (*SearchLdapUserInternalServerError) IsClientError

func (o *SearchLdapUserInternalServerError) IsClientError() bool

IsClientError returns true when this search ldap user internal server error response has a 4xx status code

func (*SearchLdapUserInternalServerError) IsCode

func (o *SearchLdapUserInternalServerError) IsCode(code int) bool

IsCode returns true when this search ldap user internal server error response a status code equal to that given

func (*SearchLdapUserInternalServerError) IsRedirect

func (o *SearchLdapUserInternalServerError) IsRedirect() bool

IsRedirect returns true when this search ldap user internal server error response has a 3xx status code

func (*SearchLdapUserInternalServerError) IsServerError

func (o *SearchLdapUserInternalServerError) IsServerError() bool

IsServerError returns true when this search ldap user internal server error response has a 5xx status code

func (*SearchLdapUserInternalServerError) IsSuccess

func (o *SearchLdapUserInternalServerError) IsSuccess() bool

IsSuccess returns true when this search ldap user internal server error response has a 2xx status code

func (*SearchLdapUserInternalServerError) String

type SearchLdapUserOK

type SearchLdapUserOK struct {
	Payload []*models.LdapUser
}

SearchLdapUserOK describes a response with status code 200, with default header values.

Search ldap users successfully.

func NewSearchLdapUserOK

func NewSearchLdapUserOK() *SearchLdapUserOK

NewSearchLdapUserOK creates a SearchLdapUserOK with default headers values

func (*SearchLdapUserOK) Error

func (o *SearchLdapUserOK) Error() string

func (*SearchLdapUserOK) GetPayload

func (o *SearchLdapUserOK) GetPayload() []*models.LdapUser

func (*SearchLdapUserOK) IsClientError

func (o *SearchLdapUserOK) IsClientError() bool

IsClientError returns true when this search ldap user o k response has a 4xx status code

func (*SearchLdapUserOK) IsCode

func (o *SearchLdapUserOK) IsCode(code int) bool

IsCode returns true when this search ldap user o k response a status code equal to that given

func (*SearchLdapUserOK) IsRedirect

func (o *SearchLdapUserOK) IsRedirect() bool

IsRedirect returns true when this search ldap user o k response has a 3xx status code

func (*SearchLdapUserOK) IsServerError

func (o *SearchLdapUserOK) IsServerError() bool

IsServerError returns true when this search ldap user o k response has a 5xx status code

func (*SearchLdapUserOK) IsSuccess

func (o *SearchLdapUserOK) IsSuccess() bool

IsSuccess returns true when this search ldap user o k response has a 2xx status code

func (*SearchLdapUserOK) String

func (o *SearchLdapUserOK) String() string

type SearchLdapUserParams

type SearchLdapUserParams struct {

	/* XRequestID.

	   An unique ID for the request
	*/
	XRequestID *string

	/* Username.

	   Registered user ID
	*/
	Username *string

	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

SearchLdapUserParams contains all the parameters to send to the API endpoint

for the search ldap user operation.

Typically these are written to a http.Request.

func NewSearchLdapUserParams

func NewSearchLdapUserParams() *SearchLdapUserParams

NewSearchLdapUserParams creates a new SearchLdapUserParams object, with the default timeout for this client.

Default values are not hydrated, since defaults are normally applied by the API server side.

To enforce default values in parameter, use SetDefaults or WithDefaults.

func NewSearchLdapUserParamsWithContext

func NewSearchLdapUserParamsWithContext(ctx context.Context) *SearchLdapUserParams

NewSearchLdapUserParamsWithContext creates a new SearchLdapUserParams object with the ability to set a context for a request.

func NewSearchLdapUserParamsWithHTTPClient

func NewSearchLdapUserParamsWithHTTPClient(client *http.Client) *SearchLdapUserParams

NewSearchLdapUserParamsWithHTTPClient creates a new SearchLdapUserParams object with the ability to set a custom HTTPClient for a request.

func NewSearchLdapUserParamsWithTimeout

func NewSearchLdapUserParamsWithTimeout(timeout time.Duration) *SearchLdapUserParams

NewSearchLdapUserParamsWithTimeout creates a new SearchLdapUserParams object with the ability to set a timeout on a request.

func (*SearchLdapUserParams) SetContext

func (o *SearchLdapUserParams) SetContext(ctx context.Context)

SetContext adds the context to the search ldap user params

func (*SearchLdapUserParams) SetDefaults

func (o *SearchLdapUserParams) SetDefaults()

SetDefaults hydrates default values in the search ldap user params (not the query body).

All values with no default are reset to their zero value.

func (*SearchLdapUserParams) SetHTTPClient

func (o *SearchLdapUserParams) SetHTTPClient(client *http.Client)

SetHTTPClient adds the HTTPClient to the search ldap user params

func (*SearchLdapUserParams) SetTimeout

func (o *SearchLdapUserParams) SetTimeout(timeout time.Duration)

SetTimeout adds the timeout to the search ldap user params

func (*SearchLdapUserParams) SetUsername

func (o *SearchLdapUserParams) SetUsername(username *string)

SetUsername adds the username to the search ldap user params

func (*SearchLdapUserParams) SetXRequestID

func (o *SearchLdapUserParams) SetXRequestID(xRequestID *string)

SetXRequestID adds the xRequestId to the search ldap user params

func (*SearchLdapUserParams) WithContext

WithContext adds the context to the search ldap user params

func (*SearchLdapUserParams) WithDefaults

func (o *SearchLdapUserParams) WithDefaults() *SearchLdapUserParams

WithDefaults hydrates default values in the search ldap user params (not the query body).

All values with no default are reset to their zero value.

func (*SearchLdapUserParams) WithHTTPClient

func (o *SearchLdapUserParams) WithHTTPClient(client *http.Client) *SearchLdapUserParams

WithHTTPClient adds the HTTPClient to the search ldap user params

func (*SearchLdapUserParams) WithTimeout

func (o *SearchLdapUserParams) WithTimeout(timeout time.Duration) *SearchLdapUserParams

WithTimeout adds the timeout to the search ldap user params

func (*SearchLdapUserParams) WithUsername

func (o *SearchLdapUserParams) WithUsername(username *string) *SearchLdapUserParams

WithUsername adds the username to the search ldap user params

func (*SearchLdapUserParams) WithXRequestID

func (o *SearchLdapUserParams) WithXRequestID(xRequestID *string) *SearchLdapUserParams

WithXRequestID adds the xRequestID to the search ldap user params

func (*SearchLdapUserParams) WriteToRequest

func (o *SearchLdapUserParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error

WriteToRequest writes these params to a swagger request

type SearchLdapUserReader

type SearchLdapUserReader struct {
	// contains filtered or unexported fields
}

SearchLdapUserReader is a Reader for the SearchLdapUser structure.

func (*SearchLdapUserReader) ReadResponse

func (o *SearchLdapUserReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)

ReadResponse reads a server response into the received o.

type SearchLdapUserUnauthorized

type SearchLdapUserUnauthorized struct {

	/* The ID of the corresponding request for the response
	 */
	XRequestID string

	Payload *models.Errors
}

SearchLdapUserUnauthorized describes a response with status code 401, with default header values.

Unauthorized

func NewSearchLdapUserUnauthorized

func NewSearchLdapUserUnauthorized() *SearchLdapUserUnauthorized

NewSearchLdapUserUnauthorized creates a SearchLdapUserUnauthorized with default headers values

func (*SearchLdapUserUnauthorized) Error

func (*SearchLdapUserUnauthorized) GetPayload

func (o *SearchLdapUserUnauthorized) GetPayload() *models.Errors

func (*SearchLdapUserUnauthorized) IsClientError

func (o *SearchLdapUserUnauthorized) IsClientError() bool

IsClientError returns true when this search ldap user unauthorized response has a 4xx status code

func (*SearchLdapUserUnauthorized) IsCode

func (o *SearchLdapUserUnauthorized) IsCode(code int) bool

IsCode returns true when this search ldap user unauthorized response a status code equal to that given

func (*SearchLdapUserUnauthorized) IsRedirect

func (o *SearchLdapUserUnauthorized) IsRedirect() bool

IsRedirect returns true when this search ldap user unauthorized response has a 3xx status code

func (*SearchLdapUserUnauthorized) IsServerError

func (o *SearchLdapUserUnauthorized) IsServerError() bool

IsServerError returns true when this search ldap user unauthorized response has a 5xx status code

func (*SearchLdapUserUnauthorized) IsSuccess

func (o *SearchLdapUserUnauthorized) IsSuccess() bool

IsSuccess returns true when this search ldap user unauthorized response has a 2xx status code

func (*SearchLdapUserUnauthorized) String

func (o *SearchLdapUserUnauthorized) String() string

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL