Documentation
¶
Index ¶
- type Client
- func (a *Client) GetV1CurrentUser(params *GetV1CurrentUserParams, authInfo runtime.ClientAuthInfoWriter, ...) (*GetV1CurrentUserOK, error)
- func (a *Client) GetV1Users(params *GetV1UsersParams, authInfo runtime.ClientAuthInfoWriter, ...) (*GetV1UsersOK, error)
- func (a *Client) GetV1UsersID(params *GetV1UsersIDParams, authInfo runtime.ClientAuthInfoWriter, ...) (*GetV1UsersIDOK, error)
- func (a *Client) SetTransport(transport runtime.ClientTransport)
- type ClientOption
- type ClientService
- type GetV1CurrentUserOK
- func (o *GetV1CurrentUserOK) Error() string
- func (o *GetV1CurrentUserOK) GetPayload() *models.CurrentUserEntity
- func (o *GetV1CurrentUserOK) IsClientError() bool
- func (o *GetV1CurrentUserOK) IsCode(code int) bool
- func (o *GetV1CurrentUserOK) IsRedirect() bool
- func (o *GetV1CurrentUserOK) IsServerError() bool
- func (o *GetV1CurrentUserOK) IsSuccess() bool
- func (o *GetV1CurrentUserOK) String() string
- type GetV1CurrentUserParams
- func NewGetV1CurrentUserParams() *GetV1CurrentUserParams
- func NewGetV1CurrentUserParamsWithContext(ctx context.Context) *GetV1CurrentUserParams
- func NewGetV1CurrentUserParamsWithHTTPClient(client *http.Client) *GetV1CurrentUserParams
- func NewGetV1CurrentUserParamsWithTimeout(timeout time.Duration) *GetV1CurrentUserParams
- func (o *GetV1CurrentUserParams) SetContext(ctx context.Context)
- func (o *GetV1CurrentUserParams) SetDefaults()
- func (o *GetV1CurrentUserParams) SetHTTPClient(client *http.Client)
- func (o *GetV1CurrentUserParams) SetTimeout(timeout time.Duration)
- func (o *GetV1CurrentUserParams) WithContext(ctx context.Context) *GetV1CurrentUserParams
- func (o *GetV1CurrentUserParams) WithDefaults() *GetV1CurrentUserParams
- func (o *GetV1CurrentUserParams) WithHTTPClient(client *http.Client) *GetV1CurrentUserParams
- func (o *GetV1CurrentUserParams) WithTimeout(timeout time.Duration) *GetV1CurrentUserParams
- func (o *GetV1CurrentUserParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type GetV1CurrentUserReader
- type GetV1UsersIDOK
- func (o *GetV1UsersIDOK) Error() string
- func (o *GetV1UsersIDOK) GetPayload() *models.UserEntity
- func (o *GetV1UsersIDOK) IsClientError() bool
- func (o *GetV1UsersIDOK) IsCode(code int) bool
- func (o *GetV1UsersIDOK) IsRedirect() bool
- func (o *GetV1UsersIDOK) IsServerError() bool
- func (o *GetV1UsersIDOK) IsSuccess() bool
- func (o *GetV1UsersIDOK) String() string
- type GetV1UsersIDParams
- func (o *GetV1UsersIDParams) SetContext(ctx context.Context)
- func (o *GetV1UsersIDParams) SetDefaults()
- func (o *GetV1UsersIDParams) SetHTTPClient(client *http.Client)
- func (o *GetV1UsersIDParams) SetID(id string)
- func (o *GetV1UsersIDParams) SetTimeout(timeout time.Duration)
- func (o *GetV1UsersIDParams) WithContext(ctx context.Context) *GetV1UsersIDParams
- func (o *GetV1UsersIDParams) WithDefaults() *GetV1UsersIDParams
- func (o *GetV1UsersIDParams) WithHTTPClient(client *http.Client) *GetV1UsersIDParams
- func (o *GetV1UsersIDParams) WithID(id string) *GetV1UsersIDParams
- func (o *GetV1UsersIDParams) WithTimeout(timeout time.Duration) *GetV1UsersIDParams
- func (o *GetV1UsersIDParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type GetV1UsersIDReader
- type GetV1UsersIDServicesOK
- func (o *GetV1UsersIDServicesOK) Error() string
- func (o *GetV1UsersIDServicesOK) GetPayload() []*models.TeamEntityPaginated
- func (o *GetV1UsersIDServicesOK) IsClientError() bool
- func (o *GetV1UsersIDServicesOK) IsCode(code int) bool
- func (o *GetV1UsersIDServicesOK) IsRedirect() bool
- func (o *GetV1UsersIDServicesOK) IsServerError() bool
- func (o *GetV1UsersIDServicesOK) IsSuccess() bool
- func (o *GetV1UsersIDServicesOK) String() string
- type GetV1UsersIDServicesParams
- func NewGetV1UsersIDServicesParams() *GetV1UsersIDServicesParams
- func NewGetV1UsersIDServicesParamsWithContext(ctx context.Context) *GetV1UsersIDServicesParams
- func NewGetV1UsersIDServicesParamsWithHTTPClient(client *http.Client) *GetV1UsersIDServicesParams
- func NewGetV1UsersIDServicesParamsWithTimeout(timeout time.Duration) *GetV1UsersIDServicesParams
- func (o *GetV1UsersIDServicesParams) SetContext(ctx context.Context)
- func (o *GetV1UsersIDServicesParams) SetDefaults()
- func (o *GetV1UsersIDServicesParams) SetHTTPClient(client *http.Client)
- func (o *GetV1UsersIDServicesParams) SetID(id string)
- func (o *GetV1UsersIDServicesParams) SetPage(page *int32)
- func (o *GetV1UsersIDServicesParams) SetPerPage(perPage *int32)
- func (o *GetV1UsersIDServicesParams) SetTimeout(timeout time.Duration)
- func (o *GetV1UsersIDServicesParams) WithContext(ctx context.Context) *GetV1UsersIDServicesParams
- func (o *GetV1UsersIDServicesParams) WithDefaults() *GetV1UsersIDServicesParams
- func (o *GetV1UsersIDServicesParams) WithHTTPClient(client *http.Client) *GetV1UsersIDServicesParams
- func (o *GetV1UsersIDServicesParams) WithID(id string) *GetV1UsersIDServicesParams
- func (o *GetV1UsersIDServicesParams) WithPage(page *int32) *GetV1UsersIDServicesParams
- func (o *GetV1UsersIDServicesParams) WithPerPage(perPage *int32) *GetV1UsersIDServicesParams
- func (o *GetV1UsersIDServicesParams) WithTimeout(timeout time.Duration) *GetV1UsersIDServicesParams
- func (o *GetV1UsersIDServicesParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type GetV1UsersIDServicesReader
- type GetV1UsersOK
- func (o *GetV1UsersOK) Error() string
- func (o *GetV1UsersOK) GetPayload() *models.UserEntityPaginated
- func (o *GetV1UsersOK) IsClientError() bool
- func (o *GetV1UsersOK) IsCode(code int) bool
- func (o *GetV1UsersOK) IsRedirect() bool
- func (o *GetV1UsersOK) IsServerError() bool
- func (o *GetV1UsersOK) IsSuccess() bool
- func (o *GetV1UsersOK) String() string
- type GetV1UsersParams
- func (o *GetV1UsersParams) SetContext(ctx context.Context)
- func (o *GetV1UsersParams) SetDefaults()
- func (o *GetV1UsersParams) SetHTTPClient(client *http.Client)
- func (o *GetV1UsersParams) SetName(name *string)
- func (o *GetV1UsersParams) SetPage(page *int32)
- func (o *GetV1UsersParams) SetPerPage(perPage *int32)
- func (o *GetV1UsersParams) SetQuery(query *string)
- func (o *GetV1UsersParams) SetTimeout(timeout time.Duration)
- func (o *GetV1UsersParams) WithContext(ctx context.Context) *GetV1UsersParams
- func (o *GetV1UsersParams) WithDefaults() *GetV1UsersParams
- func (o *GetV1UsersParams) WithHTTPClient(client *http.Client) *GetV1UsersParams
- func (o *GetV1UsersParams) WithName(name *string) *GetV1UsersParams
- func (o *GetV1UsersParams) WithPage(page *int32) *GetV1UsersParams
- func (o *GetV1UsersParams) WithPerPage(perPage *int32) *GetV1UsersParams
- func (o *GetV1UsersParams) WithQuery(query *string) *GetV1UsersParams
- func (o *GetV1UsersParams) WithTimeout(timeout time.Duration) *GetV1UsersParams
- func (o *GetV1UsersParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type GetV1UsersReader
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client for users API
func (*Client) GetV1CurrentUser ¶
func (a *Client) GetV1CurrentUser(params *GetV1CurrentUserParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetV1CurrentUserOK, error)
GetV1CurrentUser gets the currently authenticated user
Retrieve the current user
func (*Client) GetV1Users ¶
func (a *Client) GetV1Users(params *GetV1UsersParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetV1UsersOK, error)
GetV1Users lists users
Retrieve a list of all users in an organization
func (*Client) GetV1UsersID ¶
func (a *Client) GetV1UsersID(params *GetV1UsersIDParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetV1UsersIDOK, error)
GetV1UsersID gets a user
Retrieve a single user by ID
func (*Client) SetTransport ¶
func (a *Client) SetTransport(transport runtime.ClientTransport)
SetTransport changes the transport on the client
type ClientOption ¶
type ClientOption func(*runtime.ClientOperation)
ClientOption is the option for Client methods
type ClientService ¶
type ClientService interface {
GetV1CurrentUser(params *GetV1CurrentUserParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetV1CurrentUserOK, error)
GetV1Users(params *GetV1UsersParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetV1UsersOK, error)
GetV1UsersID(params *GetV1UsersIDParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetV1UsersIDOK, error)
SetTransport(transport runtime.ClientTransport)
}
ClientService is the interface for Client methods
func New ¶
func New(transport runtime.ClientTransport, formats strfmt.Registry) ClientService
New creates a new users API client.
type GetV1CurrentUserOK ¶
type GetV1CurrentUserOK struct {
Payload *models.CurrentUserEntity
}
GetV1CurrentUserOK describes a response with status code 200, with default header values.
Retrieve the current user
func NewGetV1CurrentUserOK ¶
func NewGetV1CurrentUserOK() *GetV1CurrentUserOK
NewGetV1CurrentUserOK creates a GetV1CurrentUserOK with default headers values
func (*GetV1CurrentUserOK) Error ¶
func (o *GetV1CurrentUserOK) Error() string
func (*GetV1CurrentUserOK) GetPayload ¶
func (o *GetV1CurrentUserOK) GetPayload() *models.CurrentUserEntity
func (*GetV1CurrentUserOK) IsClientError ¶
func (o *GetV1CurrentUserOK) IsClientError() bool
IsClientError returns true when this get v1 current user o k response has a 4xx status code
func (*GetV1CurrentUserOK) IsCode ¶
func (o *GetV1CurrentUserOK) IsCode(code int) bool
IsCode returns true when this get v1 current user o k response a status code equal to that given
func (*GetV1CurrentUserOK) IsRedirect ¶
func (o *GetV1CurrentUserOK) IsRedirect() bool
IsRedirect returns true when this get v1 current user o k response has a 3xx status code
func (*GetV1CurrentUserOK) IsServerError ¶
func (o *GetV1CurrentUserOK) IsServerError() bool
IsServerError returns true when this get v1 current user o k response has a 5xx status code
func (*GetV1CurrentUserOK) IsSuccess ¶
func (o *GetV1CurrentUserOK) IsSuccess() bool
IsSuccess returns true when this get v1 current user o k response has a 2xx status code
func (*GetV1CurrentUserOK) String ¶
func (o *GetV1CurrentUserOK) String() string
type GetV1CurrentUserParams ¶
type GetV1CurrentUserParams struct {
Context context.Context
HTTPClient *http.Client
// contains filtered or unexported fields
}
GetV1CurrentUserParams contains all the parameters to send to the API endpoint
for the get v1 current user operation. Typically these are written to a http.Request.
func NewGetV1CurrentUserParams ¶
func NewGetV1CurrentUserParams() *GetV1CurrentUserParams
NewGetV1CurrentUserParams creates a new GetV1CurrentUserParams 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 NewGetV1CurrentUserParamsWithContext ¶
func NewGetV1CurrentUserParamsWithContext(ctx context.Context) *GetV1CurrentUserParams
NewGetV1CurrentUserParamsWithContext creates a new GetV1CurrentUserParams object with the ability to set a context for a request.
func NewGetV1CurrentUserParamsWithHTTPClient ¶
func NewGetV1CurrentUserParamsWithHTTPClient(client *http.Client) *GetV1CurrentUserParams
NewGetV1CurrentUserParamsWithHTTPClient creates a new GetV1CurrentUserParams object with the ability to set a custom HTTPClient for a request.
func NewGetV1CurrentUserParamsWithTimeout ¶
func NewGetV1CurrentUserParamsWithTimeout(timeout time.Duration) *GetV1CurrentUserParams
NewGetV1CurrentUserParamsWithTimeout creates a new GetV1CurrentUserParams object with the ability to set a timeout on a request.
func (*GetV1CurrentUserParams) SetContext ¶
func (o *GetV1CurrentUserParams) SetContext(ctx context.Context)
SetContext adds the context to the get v1 current user params
func (*GetV1CurrentUserParams) SetDefaults ¶
func (o *GetV1CurrentUserParams) SetDefaults()
SetDefaults hydrates default values in the get v1 current user params (not the query body).
All values with no default are reset to their zero value.
func (*GetV1CurrentUserParams) SetHTTPClient ¶
func (o *GetV1CurrentUserParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the get v1 current user params
func (*GetV1CurrentUserParams) SetTimeout ¶
func (o *GetV1CurrentUserParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the get v1 current user params
func (*GetV1CurrentUserParams) WithContext ¶
func (o *GetV1CurrentUserParams) WithContext(ctx context.Context) *GetV1CurrentUserParams
WithContext adds the context to the get v1 current user params
func (*GetV1CurrentUserParams) WithDefaults ¶
func (o *GetV1CurrentUserParams) WithDefaults() *GetV1CurrentUserParams
WithDefaults hydrates default values in the get v1 current user params (not the query body).
All values with no default are reset to their zero value.
func (*GetV1CurrentUserParams) WithHTTPClient ¶
func (o *GetV1CurrentUserParams) WithHTTPClient(client *http.Client) *GetV1CurrentUserParams
WithHTTPClient adds the HTTPClient to the get v1 current user params
func (*GetV1CurrentUserParams) WithTimeout ¶
func (o *GetV1CurrentUserParams) WithTimeout(timeout time.Duration) *GetV1CurrentUserParams
WithTimeout adds the timeout to the get v1 current user params
func (*GetV1CurrentUserParams) WriteToRequest ¶
func (o *GetV1CurrentUserParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type GetV1CurrentUserReader ¶
type GetV1CurrentUserReader struct {
// contains filtered or unexported fields
}
GetV1CurrentUserReader is a Reader for the GetV1CurrentUser structure.
func (*GetV1CurrentUserReader) ReadResponse ¶
func (o *GetV1CurrentUserReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type GetV1UsersIDOK ¶
type GetV1UsersIDOK struct {
Payload *models.UserEntity
}
GetV1UsersIDOK describes a response with status code 200, with default header values.
Retrieve a single user by ID
func NewGetV1UsersIDOK ¶
func NewGetV1UsersIDOK() *GetV1UsersIDOK
NewGetV1UsersIDOK creates a GetV1UsersIDOK with default headers values
func (*GetV1UsersIDOK) Error ¶
func (o *GetV1UsersIDOK) Error() string
func (*GetV1UsersIDOK) GetPayload ¶
func (o *GetV1UsersIDOK) GetPayload() *models.UserEntity
func (*GetV1UsersIDOK) IsClientError ¶
func (o *GetV1UsersIDOK) IsClientError() bool
IsClientError returns true when this get v1 users Id o k response has a 4xx status code
func (*GetV1UsersIDOK) IsCode ¶
func (o *GetV1UsersIDOK) IsCode(code int) bool
IsCode returns true when this get v1 users Id o k response a status code equal to that given
func (*GetV1UsersIDOK) IsRedirect ¶
func (o *GetV1UsersIDOK) IsRedirect() bool
IsRedirect returns true when this get v1 users Id o k response has a 3xx status code
func (*GetV1UsersIDOK) IsServerError ¶
func (o *GetV1UsersIDOK) IsServerError() bool
IsServerError returns true when this get v1 users Id o k response has a 5xx status code
func (*GetV1UsersIDOK) IsSuccess ¶
func (o *GetV1UsersIDOK) IsSuccess() bool
IsSuccess returns true when this get v1 users Id o k response has a 2xx status code
func (*GetV1UsersIDOK) String ¶
func (o *GetV1UsersIDOK) String() string
type GetV1UsersIDParams ¶
type GetV1UsersIDParams struct {
// ID.
ID string
Context context.Context
HTTPClient *http.Client
// contains filtered or unexported fields
}
GetV1UsersIDParams contains all the parameters to send to the API endpoint
for the get v1 users Id operation. Typically these are written to a http.Request.
func NewGetV1UsersIDParams ¶
func NewGetV1UsersIDParams() *GetV1UsersIDParams
NewGetV1UsersIDParams creates a new GetV1UsersIDParams 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 NewGetV1UsersIDParamsWithContext ¶
func NewGetV1UsersIDParamsWithContext(ctx context.Context) *GetV1UsersIDParams
NewGetV1UsersIDParamsWithContext creates a new GetV1UsersIDParams object with the ability to set a context for a request.
func NewGetV1UsersIDParamsWithHTTPClient ¶
func NewGetV1UsersIDParamsWithHTTPClient(client *http.Client) *GetV1UsersIDParams
NewGetV1UsersIDParamsWithHTTPClient creates a new GetV1UsersIDParams object with the ability to set a custom HTTPClient for a request.
func NewGetV1UsersIDParamsWithTimeout ¶
func NewGetV1UsersIDParamsWithTimeout(timeout time.Duration) *GetV1UsersIDParams
NewGetV1UsersIDParamsWithTimeout creates a new GetV1UsersIDParams object with the ability to set a timeout on a request.
func (*GetV1UsersIDParams) SetContext ¶
func (o *GetV1UsersIDParams) SetContext(ctx context.Context)
SetContext adds the context to the get v1 users Id params
func (*GetV1UsersIDParams) SetDefaults ¶
func (o *GetV1UsersIDParams) SetDefaults()
SetDefaults hydrates default values in the get v1 users Id params (not the query body).
All values with no default are reset to their zero value.
func (*GetV1UsersIDParams) SetHTTPClient ¶
func (o *GetV1UsersIDParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the get v1 users Id params
func (*GetV1UsersIDParams) SetID ¶
func (o *GetV1UsersIDParams) SetID(id string)
SetID adds the id to the get v1 users Id params
func (*GetV1UsersIDParams) SetTimeout ¶
func (o *GetV1UsersIDParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the get v1 users Id params
func (*GetV1UsersIDParams) WithContext ¶
func (o *GetV1UsersIDParams) WithContext(ctx context.Context) *GetV1UsersIDParams
WithContext adds the context to the get v1 users Id params
func (*GetV1UsersIDParams) WithDefaults ¶
func (o *GetV1UsersIDParams) WithDefaults() *GetV1UsersIDParams
WithDefaults hydrates default values in the get v1 users Id params (not the query body).
All values with no default are reset to their zero value.
func (*GetV1UsersIDParams) WithHTTPClient ¶
func (o *GetV1UsersIDParams) WithHTTPClient(client *http.Client) *GetV1UsersIDParams
WithHTTPClient adds the HTTPClient to the get v1 users Id params
func (*GetV1UsersIDParams) WithID ¶
func (o *GetV1UsersIDParams) WithID(id string) *GetV1UsersIDParams
WithID adds the id to the get v1 users Id params
func (*GetV1UsersIDParams) WithTimeout ¶
func (o *GetV1UsersIDParams) WithTimeout(timeout time.Duration) *GetV1UsersIDParams
WithTimeout adds the timeout to the get v1 users Id params
func (*GetV1UsersIDParams) WriteToRequest ¶
func (o *GetV1UsersIDParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type GetV1UsersIDReader ¶
type GetV1UsersIDReader struct {
// contains filtered or unexported fields
}
GetV1UsersIDReader is a Reader for the GetV1UsersID structure.
func (*GetV1UsersIDReader) ReadResponse ¶
func (o *GetV1UsersIDReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type GetV1UsersIDServicesOK ¶
type GetV1UsersIDServicesOK struct {
Payload []*models.TeamEntityPaginated
}
GetV1UsersIDServicesOK describes a response with status code 200, with default header values.
Retrieves a list of services owned by the teams a user is on
func NewGetV1UsersIDServicesOK ¶
func NewGetV1UsersIDServicesOK() *GetV1UsersIDServicesOK
NewGetV1UsersIDServicesOK creates a GetV1UsersIDServicesOK with default headers values
func (*GetV1UsersIDServicesOK) Error ¶
func (o *GetV1UsersIDServicesOK) Error() string
func (*GetV1UsersIDServicesOK) GetPayload ¶
func (o *GetV1UsersIDServicesOK) GetPayload() []*models.TeamEntityPaginated
func (*GetV1UsersIDServicesOK) IsClientError ¶
func (o *GetV1UsersIDServicesOK) IsClientError() bool
IsClientError returns true when this get v1 users Id services o k response has a 4xx status code
func (*GetV1UsersIDServicesOK) IsCode ¶
func (o *GetV1UsersIDServicesOK) IsCode(code int) bool
IsCode returns true when this get v1 users Id services o k response a status code equal to that given
func (*GetV1UsersIDServicesOK) IsRedirect ¶
func (o *GetV1UsersIDServicesOK) IsRedirect() bool
IsRedirect returns true when this get v1 users Id services o k response has a 3xx status code
func (*GetV1UsersIDServicesOK) IsServerError ¶
func (o *GetV1UsersIDServicesOK) IsServerError() bool
IsServerError returns true when this get v1 users Id services o k response has a 5xx status code
func (*GetV1UsersIDServicesOK) IsSuccess ¶
func (o *GetV1UsersIDServicesOK) IsSuccess() bool
IsSuccess returns true when this get v1 users Id services o k response has a 2xx status code
func (*GetV1UsersIDServicesOK) String ¶
func (o *GetV1UsersIDServicesOK) String() string
type GetV1UsersIDServicesParams ¶
type GetV1UsersIDServicesParams struct {
// ID.
ID string
// Page.
//
// Format: int32
Page *int32
// PerPage.
//
// Format: int32
PerPage *int32
Context context.Context
HTTPClient *http.Client
// contains filtered or unexported fields
}
GetV1UsersIDServicesParams contains all the parameters to send to the API endpoint
for the get v1 users Id services operation. Typically these are written to a http.Request.
func NewGetV1UsersIDServicesParams ¶
func NewGetV1UsersIDServicesParams() *GetV1UsersIDServicesParams
NewGetV1UsersIDServicesParams creates a new GetV1UsersIDServicesParams 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 NewGetV1UsersIDServicesParamsWithContext ¶
func NewGetV1UsersIDServicesParamsWithContext(ctx context.Context) *GetV1UsersIDServicesParams
NewGetV1UsersIDServicesParamsWithContext creates a new GetV1UsersIDServicesParams object with the ability to set a context for a request.
func NewGetV1UsersIDServicesParamsWithHTTPClient ¶
func NewGetV1UsersIDServicesParamsWithHTTPClient(client *http.Client) *GetV1UsersIDServicesParams
NewGetV1UsersIDServicesParamsWithHTTPClient creates a new GetV1UsersIDServicesParams object with the ability to set a custom HTTPClient for a request.
func NewGetV1UsersIDServicesParamsWithTimeout ¶
func NewGetV1UsersIDServicesParamsWithTimeout(timeout time.Duration) *GetV1UsersIDServicesParams
NewGetV1UsersIDServicesParamsWithTimeout creates a new GetV1UsersIDServicesParams object with the ability to set a timeout on a request.
func (*GetV1UsersIDServicesParams) SetContext ¶
func (o *GetV1UsersIDServicesParams) SetContext(ctx context.Context)
SetContext adds the context to the get v1 users Id services params
func (*GetV1UsersIDServicesParams) SetDefaults ¶
func (o *GetV1UsersIDServicesParams) SetDefaults()
SetDefaults hydrates default values in the get v1 users Id services params (not the query body).
All values with no default are reset to their zero value.
func (*GetV1UsersIDServicesParams) SetHTTPClient ¶
func (o *GetV1UsersIDServicesParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the get v1 users Id services params
func (*GetV1UsersIDServicesParams) SetID ¶
func (o *GetV1UsersIDServicesParams) SetID(id string)
SetID adds the id to the get v1 users Id services params
func (*GetV1UsersIDServicesParams) SetPage ¶
func (o *GetV1UsersIDServicesParams) SetPage(page *int32)
SetPage adds the page to the get v1 users Id services params
func (*GetV1UsersIDServicesParams) SetPerPage ¶
func (o *GetV1UsersIDServicesParams) SetPerPage(perPage *int32)
SetPerPage adds the perPage to the get v1 users Id services params
func (*GetV1UsersIDServicesParams) SetTimeout ¶
func (o *GetV1UsersIDServicesParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the get v1 users Id services params
func (*GetV1UsersIDServicesParams) WithContext ¶
func (o *GetV1UsersIDServicesParams) WithContext(ctx context.Context) *GetV1UsersIDServicesParams
WithContext adds the context to the get v1 users Id services params
func (*GetV1UsersIDServicesParams) WithDefaults ¶
func (o *GetV1UsersIDServicesParams) WithDefaults() *GetV1UsersIDServicesParams
WithDefaults hydrates default values in the get v1 users Id services params (not the query body).
All values with no default are reset to their zero value.
func (*GetV1UsersIDServicesParams) WithHTTPClient ¶
func (o *GetV1UsersIDServicesParams) WithHTTPClient(client *http.Client) *GetV1UsersIDServicesParams
WithHTTPClient adds the HTTPClient to the get v1 users Id services params
func (*GetV1UsersIDServicesParams) WithID ¶
func (o *GetV1UsersIDServicesParams) WithID(id string) *GetV1UsersIDServicesParams
WithID adds the id to the get v1 users Id services params
func (*GetV1UsersIDServicesParams) WithPage ¶
func (o *GetV1UsersIDServicesParams) WithPage(page *int32) *GetV1UsersIDServicesParams
WithPage adds the page to the get v1 users Id services params
func (*GetV1UsersIDServicesParams) WithPerPage ¶
func (o *GetV1UsersIDServicesParams) WithPerPage(perPage *int32) *GetV1UsersIDServicesParams
WithPerPage adds the perPage to the get v1 users Id services params
func (*GetV1UsersIDServicesParams) WithTimeout ¶
func (o *GetV1UsersIDServicesParams) WithTimeout(timeout time.Duration) *GetV1UsersIDServicesParams
WithTimeout adds the timeout to the get v1 users Id services params
func (*GetV1UsersIDServicesParams) WriteToRequest ¶
func (o *GetV1UsersIDServicesParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type GetV1UsersIDServicesReader ¶
type GetV1UsersIDServicesReader struct {
// contains filtered or unexported fields
}
GetV1UsersIDServicesReader is a Reader for the GetV1UsersIDServices structure.
func (*GetV1UsersIDServicesReader) ReadResponse ¶
func (o *GetV1UsersIDServicesReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type GetV1UsersOK ¶
type GetV1UsersOK struct {
Payload *models.UserEntityPaginated
}
GetV1UsersOK describes a response with status code 200, with default header values.
Retrieve a list of all users in an organization
func NewGetV1UsersOK ¶
func NewGetV1UsersOK() *GetV1UsersOK
NewGetV1UsersOK creates a GetV1UsersOK with default headers values
func (*GetV1UsersOK) Error ¶
func (o *GetV1UsersOK) Error() string
func (*GetV1UsersOK) GetPayload ¶
func (o *GetV1UsersOK) GetPayload() *models.UserEntityPaginated
func (*GetV1UsersOK) IsClientError ¶
func (o *GetV1UsersOK) IsClientError() bool
IsClientError returns true when this get v1 users o k response has a 4xx status code
func (*GetV1UsersOK) IsCode ¶
func (o *GetV1UsersOK) IsCode(code int) bool
IsCode returns true when this get v1 users o k response a status code equal to that given
func (*GetV1UsersOK) IsRedirect ¶
func (o *GetV1UsersOK) IsRedirect() bool
IsRedirect returns true when this get v1 users o k response has a 3xx status code
func (*GetV1UsersOK) IsServerError ¶
func (o *GetV1UsersOK) IsServerError() bool
IsServerError returns true when this get v1 users o k response has a 5xx status code
func (*GetV1UsersOK) IsSuccess ¶
func (o *GetV1UsersOK) IsSuccess() bool
IsSuccess returns true when this get v1 users o k response has a 2xx status code
func (*GetV1UsersOK) String ¶
func (o *GetV1UsersOK) String() string
type GetV1UsersParams ¶
type GetV1UsersParams struct {
/* Name.
Text string of a query to filter users by name
*/
Name *string
// Page.
//
// Format: int32
Page *int32
// PerPage.
//
// Format: int32
PerPage *int32
/* Query.
Text string of a query to filter users by name or email
*/
Query *string
Context context.Context
HTTPClient *http.Client
// contains filtered or unexported fields
}
GetV1UsersParams contains all the parameters to send to the API endpoint
for the get v1 users operation. Typically these are written to a http.Request.
func NewGetV1UsersParams ¶
func NewGetV1UsersParams() *GetV1UsersParams
NewGetV1UsersParams creates a new GetV1UsersParams 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 NewGetV1UsersParamsWithContext ¶
func NewGetV1UsersParamsWithContext(ctx context.Context) *GetV1UsersParams
NewGetV1UsersParamsWithContext creates a new GetV1UsersParams object with the ability to set a context for a request.
func NewGetV1UsersParamsWithHTTPClient ¶
func NewGetV1UsersParamsWithHTTPClient(client *http.Client) *GetV1UsersParams
NewGetV1UsersParamsWithHTTPClient creates a new GetV1UsersParams object with the ability to set a custom HTTPClient for a request.
func NewGetV1UsersParamsWithTimeout ¶
func NewGetV1UsersParamsWithTimeout(timeout time.Duration) *GetV1UsersParams
NewGetV1UsersParamsWithTimeout creates a new GetV1UsersParams object with the ability to set a timeout on a request.
func (*GetV1UsersParams) SetContext ¶
func (o *GetV1UsersParams) SetContext(ctx context.Context)
SetContext adds the context to the get v1 users params
func (*GetV1UsersParams) SetDefaults ¶
func (o *GetV1UsersParams) SetDefaults()
SetDefaults hydrates default values in the get v1 users params (not the query body).
All values with no default are reset to their zero value.
func (*GetV1UsersParams) SetHTTPClient ¶
func (o *GetV1UsersParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the get v1 users params
func (*GetV1UsersParams) SetName ¶
func (o *GetV1UsersParams) SetName(name *string)
SetName adds the name to the get v1 users params
func (*GetV1UsersParams) SetPage ¶
func (o *GetV1UsersParams) SetPage(page *int32)
SetPage adds the page to the get v1 users params
func (*GetV1UsersParams) SetPerPage ¶
func (o *GetV1UsersParams) SetPerPage(perPage *int32)
SetPerPage adds the perPage to the get v1 users params
func (*GetV1UsersParams) SetQuery ¶
func (o *GetV1UsersParams) SetQuery(query *string)
SetQuery adds the query to the get v1 users params
func (*GetV1UsersParams) SetTimeout ¶
func (o *GetV1UsersParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the get v1 users params
func (*GetV1UsersParams) WithContext ¶
func (o *GetV1UsersParams) WithContext(ctx context.Context) *GetV1UsersParams
WithContext adds the context to the get v1 users params
func (*GetV1UsersParams) WithDefaults ¶
func (o *GetV1UsersParams) WithDefaults() *GetV1UsersParams
WithDefaults hydrates default values in the get v1 users params (not the query body).
All values with no default are reset to their zero value.
func (*GetV1UsersParams) WithHTTPClient ¶
func (o *GetV1UsersParams) WithHTTPClient(client *http.Client) *GetV1UsersParams
WithHTTPClient adds the HTTPClient to the get v1 users params
func (*GetV1UsersParams) WithName ¶
func (o *GetV1UsersParams) WithName(name *string) *GetV1UsersParams
WithName adds the name to the get v1 users params
func (*GetV1UsersParams) WithPage ¶
func (o *GetV1UsersParams) WithPage(page *int32) *GetV1UsersParams
WithPage adds the page to the get v1 users params
func (*GetV1UsersParams) WithPerPage ¶
func (o *GetV1UsersParams) WithPerPage(perPage *int32) *GetV1UsersParams
WithPerPage adds the perPage to the get v1 users params
func (*GetV1UsersParams) WithQuery ¶
func (o *GetV1UsersParams) WithQuery(query *string) *GetV1UsersParams
WithQuery adds the query to the get v1 users params
func (*GetV1UsersParams) WithTimeout ¶
func (o *GetV1UsersParams) WithTimeout(timeout time.Duration) *GetV1UsersParams
WithTimeout adds the timeout to the get v1 users params
func (*GetV1UsersParams) WriteToRequest ¶
func (o *GetV1UsersParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type GetV1UsersReader ¶
type GetV1UsersReader struct {
// contains filtered or unexported fields
}
GetV1UsersReader is a Reader for the GetV1Users structure.
func (*GetV1UsersReader) ReadResponse ¶
func (o *GetV1UsersReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.