Documentation
¶
Index ¶
- type Client
- func (a *Client) GetTenantWorkforce(params *GetTenantWorkforceParams, authInfo runtime.ClientAuthInfoWriter, ...) (*GetTenantWorkforceOK, error)
- func (a *Client) SetTenantWorkforce(params *SetTenantWorkforceParams, authInfo runtime.ClientAuthInfoWriter, ...) (*SetTenantWorkforceNoContent, error)
- func (a *Client) SetTransport(transport runtime.ClientTransport)
- type ClientOption
- type ClientService
- type GetTenantWorkforceForbidden
- func (o *GetTenantWorkforceForbidden) Code() int
- func (o *GetTenantWorkforceForbidden) Error() string
- func (o *GetTenantWorkforceForbidden) GetPayload() *models.Error
- func (o *GetTenantWorkforceForbidden) IsClientError() bool
- func (o *GetTenantWorkforceForbidden) IsCode(code int) bool
- func (o *GetTenantWorkforceForbidden) IsRedirect() bool
- func (o *GetTenantWorkforceForbidden) IsServerError() bool
- func (o *GetTenantWorkforceForbidden) IsSuccess() bool
- func (o *GetTenantWorkforceForbidden) String() string
- type GetTenantWorkforceNotFound
- func (o *GetTenantWorkforceNotFound) Code() int
- func (o *GetTenantWorkforceNotFound) Error() string
- func (o *GetTenantWorkforceNotFound) GetPayload() *models.Error
- func (o *GetTenantWorkforceNotFound) IsClientError() bool
- func (o *GetTenantWorkforceNotFound) IsCode(code int) bool
- func (o *GetTenantWorkforceNotFound) IsRedirect() bool
- func (o *GetTenantWorkforceNotFound) IsServerError() bool
- func (o *GetTenantWorkforceNotFound) IsSuccess() bool
- func (o *GetTenantWorkforceNotFound) String() string
- type GetTenantWorkforceOK
- func (o *GetTenantWorkforceOK) Code() int
- func (o *GetTenantWorkforceOK) Error() string
- func (o *GetTenantWorkforceOK) GetPayload() *models.WorkforceSettings
- func (o *GetTenantWorkforceOK) IsClientError() bool
- func (o *GetTenantWorkforceOK) IsCode(code int) bool
- func (o *GetTenantWorkforceOK) IsRedirect() bool
- func (o *GetTenantWorkforceOK) IsServerError() bool
- func (o *GetTenantWorkforceOK) IsSuccess() bool
- func (o *GetTenantWorkforceOK) String() string
- type GetTenantWorkforceParams
- func NewGetTenantWorkforceParams() *GetTenantWorkforceParams
- func NewGetTenantWorkforceParamsWithContext(ctx context.Context) *GetTenantWorkforceParams
- func NewGetTenantWorkforceParamsWithHTTPClient(client *http.Client) *GetTenantWorkforceParams
- func NewGetTenantWorkforceParamsWithTimeout(timeout time.Duration) *GetTenantWorkforceParams
- func (o *GetTenantWorkforceParams) SetContext(ctx context.Context)
- func (o *GetTenantWorkforceParams) SetDefaults()
- func (o *GetTenantWorkforceParams) SetHTTPClient(client *http.Client)
- func (o *GetTenantWorkforceParams) SetTid(tid string)
- func (o *GetTenantWorkforceParams) SetTimeout(timeout time.Duration)
- func (o *GetTenantWorkforceParams) WithContext(ctx context.Context) *GetTenantWorkforceParams
- func (o *GetTenantWorkforceParams) WithDefaults() *GetTenantWorkforceParams
- func (o *GetTenantWorkforceParams) WithHTTPClient(client *http.Client) *GetTenantWorkforceParams
- func (o *GetTenantWorkforceParams) WithTid(tid string) *GetTenantWorkforceParams
- func (o *GetTenantWorkforceParams) WithTimeout(timeout time.Duration) *GetTenantWorkforceParams
- func (o *GetTenantWorkforceParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type GetTenantWorkforceReader
- type GetTenantWorkforceTooManyRequests
- func (o *GetTenantWorkforceTooManyRequests) Code() int
- func (o *GetTenantWorkforceTooManyRequests) Error() string
- func (o *GetTenantWorkforceTooManyRequests) GetPayload() *models.Error
- func (o *GetTenantWorkforceTooManyRequests) IsClientError() bool
- func (o *GetTenantWorkforceTooManyRequests) IsCode(code int) bool
- func (o *GetTenantWorkforceTooManyRequests) IsRedirect() bool
- func (o *GetTenantWorkforceTooManyRequests) IsServerError() bool
- func (o *GetTenantWorkforceTooManyRequests) IsSuccess() bool
- func (o *GetTenantWorkforceTooManyRequests) String() string
- type GetTenantWorkforceUnauthorized
- func (o *GetTenantWorkforceUnauthorized) Code() int
- func (o *GetTenantWorkforceUnauthorized) Error() string
- func (o *GetTenantWorkforceUnauthorized) GetPayload() *models.Error
- func (o *GetTenantWorkforceUnauthorized) IsClientError() bool
- func (o *GetTenantWorkforceUnauthorized) IsCode(code int) bool
- func (o *GetTenantWorkforceUnauthorized) IsRedirect() bool
- func (o *GetTenantWorkforceUnauthorized) IsServerError() bool
- func (o *GetTenantWorkforceUnauthorized) IsSuccess() bool
- func (o *GetTenantWorkforceUnauthorized) String() string
- type SetTenantWorkforceBadRequest
- func (o *SetTenantWorkforceBadRequest) Code() int
- func (o *SetTenantWorkforceBadRequest) Error() string
- func (o *SetTenantWorkforceBadRequest) GetPayload() *models.Error
- func (o *SetTenantWorkforceBadRequest) IsClientError() bool
- func (o *SetTenantWorkforceBadRequest) IsCode(code int) bool
- func (o *SetTenantWorkforceBadRequest) IsRedirect() bool
- func (o *SetTenantWorkforceBadRequest) IsServerError() bool
- func (o *SetTenantWorkforceBadRequest) IsSuccess() bool
- func (o *SetTenantWorkforceBadRequest) String() string
- type SetTenantWorkforceForbidden
- func (o *SetTenantWorkforceForbidden) Code() int
- func (o *SetTenantWorkforceForbidden) Error() string
- func (o *SetTenantWorkforceForbidden) GetPayload() *models.Error
- func (o *SetTenantWorkforceForbidden) IsClientError() bool
- func (o *SetTenantWorkforceForbidden) IsCode(code int) bool
- func (o *SetTenantWorkforceForbidden) IsRedirect() bool
- func (o *SetTenantWorkforceForbidden) IsServerError() bool
- func (o *SetTenantWorkforceForbidden) IsSuccess() bool
- func (o *SetTenantWorkforceForbidden) String() string
- type SetTenantWorkforceNoContent
- func (o *SetTenantWorkforceNoContent) Code() int
- func (o *SetTenantWorkforceNoContent) Error() string
- func (o *SetTenantWorkforceNoContent) IsClientError() bool
- func (o *SetTenantWorkforceNoContent) IsCode(code int) bool
- func (o *SetTenantWorkforceNoContent) IsRedirect() bool
- func (o *SetTenantWorkforceNoContent) IsServerError() bool
- func (o *SetTenantWorkforceNoContent) IsSuccess() bool
- func (o *SetTenantWorkforceNoContent) String() string
- type SetTenantWorkforceNotFound
- func (o *SetTenantWorkforceNotFound) Code() int
- func (o *SetTenantWorkforceNotFound) Error() string
- func (o *SetTenantWorkforceNotFound) GetPayload() *models.Error
- func (o *SetTenantWorkforceNotFound) IsClientError() bool
- func (o *SetTenantWorkforceNotFound) IsCode(code int) bool
- func (o *SetTenantWorkforceNotFound) IsRedirect() bool
- func (o *SetTenantWorkforceNotFound) IsServerError() bool
- func (o *SetTenantWorkforceNotFound) IsSuccess() bool
- func (o *SetTenantWorkforceNotFound) String() string
- type SetTenantWorkforceParams
- func NewSetTenantWorkforceParams() *SetTenantWorkforceParams
- func NewSetTenantWorkforceParamsWithContext(ctx context.Context) *SetTenantWorkforceParams
- func NewSetTenantWorkforceParamsWithHTTPClient(client *http.Client) *SetTenantWorkforceParams
- func NewSetTenantWorkforceParamsWithTimeout(timeout time.Duration) *SetTenantWorkforceParams
- func (o *SetTenantWorkforceParams) SetContext(ctx context.Context)
- func (o *SetTenantWorkforceParams) SetDefaults()
- func (o *SetTenantWorkforceParams) SetHTTPClient(client *http.Client)
- func (o *SetTenantWorkforceParams) SetSetTenantWorkforce(setTenantWorkforce *models.WorkforceSettings)
- func (o *SetTenantWorkforceParams) SetTid(tid string)
- func (o *SetTenantWorkforceParams) SetTimeout(timeout time.Duration)
- func (o *SetTenantWorkforceParams) WithContext(ctx context.Context) *SetTenantWorkforceParams
- func (o *SetTenantWorkforceParams) WithDefaults() *SetTenantWorkforceParams
- func (o *SetTenantWorkforceParams) WithHTTPClient(client *http.Client) *SetTenantWorkforceParams
- func (o *SetTenantWorkforceParams) WithSetTenantWorkforce(setTenantWorkforce *models.WorkforceSettings) *SetTenantWorkforceParams
- func (o *SetTenantWorkforceParams) WithTid(tid string) *SetTenantWorkforceParams
- func (o *SetTenantWorkforceParams) WithTimeout(timeout time.Duration) *SetTenantWorkforceParams
- func (o *SetTenantWorkforceParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type SetTenantWorkforceReader
- type SetTenantWorkforceTooManyRequests
- func (o *SetTenantWorkforceTooManyRequests) Code() int
- func (o *SetTenantWorkforceTooManyRequests) Error() string
- func (o *SetTenantWorkforceTooManyRequests) GetPayload() *models.Error
- func (o *SetTenantWorkforceTooManyRequests) IsClientError() bool
- func (o *SetTenantWorkforceTooManyRequests) IsCode(code int) bool
- func (o *SetTenantWorkforceTooManyRequests) IsRedirect() bool
- func (o *SetTenantWorkforceTooManyRequests) IsServerError() bool
- func (o *SetTenantWorkforceTooManyRequests) IsSuccess() bool
- func (o *SetTenantWorkforceTooManyRequests) String() string
- type SetTenantWorkforceUnauthorized
- func (o *SetTenantWorkforceUnauthorized) Code() int
- func (o *SetTenantWorkforceUnauthorized) Error() string
- func (o *SetTenantWorkforceUnauthorized) GetPayload() *models.Error
- func (o *SetTenantWorkforceUnauthorized) IsClientError() bool
- func (o *SetTenantWorkforceUnauthorized) IsCode(code int) bool
- func (o *SetTenantWorkforceUnauthorized) IsRedirect() bool
- func (o *SetTenantWorkforceUnauthorized) IsServerError() bool
- func (o *SetTenantWorkforceUnauthorized) IsSuccess() bool
- func (o *SetTenantWorkforceUnauthorized) String() string
- type SetTenantWorkforceUnprocessableEntity
- func (o *SetTenantWorkforceUnprocessableEntity) Code() int
- func (o *SetTenantWorkforceUnprocessableEntity) Error() string
- func (o *SetTenantWorkforceUnprocessableEntity) GetPayload() *models.Error
- func (o *SetTenantWorkforceUnprocessableEntity) IsClientError() bool
- func (o *SetTenantWorkforceUnprocessableEntity) IsCode(code int) bool
- func (o *SetTenantWorkforceUnprocessableEntity) IsRedirect() bool
- func (o *SetTenantWorkforceUnprocessableEntity) IsServerError() bool
- func (o *SetTenantWorkforceUnprocessableEntity) IsSuccess() bool
- func (o *SetTenantWorkforceUnprocessableEntity) String() string
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 workforce API
func (*Client) GetTenantWorkforce ¶
func (a *Client) GetTenantWorkforce(params *GetTenantWorkforceParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetTenantWorkforceOK, error)
GetTenantWorkforce gets tenant workforce settings
func (*Client) SetTenantWorkforce ¶
func (a *Client) SetTenantWorkforce(params *SetTenantWorkforceParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*SetTenantWorkforceNoContent, error)
SetTenantWorkforce sets tenant workforce settings
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 may be used to customize the behavior of Client methods.
type ClientService ¶
type ClientService interface {
GetTenantWorkforce(params *GetTenantWorkforceParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetTenantWorkforceOK, error)
SetTenantWorkforce(params *SetTenantWorkforceParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*SetTenantWorkforceNoContent, 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 workforce API client.
func NewClientWithBasicAuth ¶
func NewClientWithBasicAuth(host, basePath, scheme, user, password string) ClientService
New creates a new workforce API client with basic auth credentials. It takes the following parameters: - host: http host (github.com). - basePath: any base path for the API client ("/v1", "/v3"). - scheme: http scheme ("http", "https"). - user: user for basic authentication header. - password: password for basic authentication header.
func NewClientWithBearerToken ¶
func NewClientWithBearerToken(host, basePath, scheme, bearerToken string) ClientService
New creates a new workforce API client with a bearer token for authentication. It takes the following parameters: - host: http host (github.com). - basePath: any base path for the API client ("/v1", "/v3"). - scheme: http scheme ("http", "https"). - bearerToken: bearer token for Bearer authentication header.
type GetTenantWorkforceForbidden ¶
GetTenantWorkforceForbidden describes a response with status code 403, with default header values.
Forbidden
func NewGetTenantWorkforceForbidden ¶
func NewGetTenantWorkforceForbidden() *GetTenantWorkforceForbidden
NewGetTenantWorkforceForbidden creates a GetTenantWorkforceForbidden with default headers values
func (*GetTenantWorkforceForbidden) Code ¶
func (o *GetTenantWorkforceForbidden) Code() int
Code gets the status code for the get tenant workforce forbidden response
func (*GetTenantWorkforceForbidden) Error ¶
func (o *GetTenantWorkforceForbidden) Error() string
func (*GetTenantWorkforceForbidden) GetPayload ¶
func (o *GetTenantWorkforceForbidden) GetPayload() *models.Error
func (*GetTenantWorkforceForbidden) IsClientError ¶
func (o *GetTenantWorkforceForbidden) IsClientError() bool
IsClientError returns true when this get tenant workforce forbidden response has a 4xx status code
func (*GetTenantWorkforceForbidden) IsCode ¶
func (o *GetTenantWorkforceForbidden) IsCode(code int) bool
IsCode returns true when this get tenant workforce forbidden response a status code equal to that given
func (*GetTenantWorkforceForbidden) IsRedirect ¶
func (o *GetTenantWorkforceForbidden) IsRedirect() bool
IsRedirect returns true when this get tenant workforce forbidden response has a 3xx status code
func (*GetTenantWorkforceForbidden) IsServerError ¶
func (o *GetTenantWorkforceForbidden) IsServerError() bool
IsServerError returns true when this get tenant workforce forbidden response has a 5xx status code
func (*GetTenantWorkforceForbidden) IsSuccess ¶
func (o *GetTenantWorkforceForbidden) IsSuccess() bool
IsSuccess returns true when this get tenant workforce forbidden response has a 2xx status code
func (*GetTenantWorkforceForbidden) String ¶
func (o *GetTenantWorkforceForbidden) String() string
type GetTenantWorkforceNotFound ¶
GetTenantWorkforceNotFound describes a response with status code 404, with default header values.
Not found
func NewGetTenantWorkforceNotFound ¶
func NewGetTenantWorkforceNotFound() *GetTenantWorkforceNotFound
NewGetTenantWorkforceNotFound creates a GetTenantWorkforceNotFound with default headers values
func (*GetTenantWorkforceNotFound) Code ¶
func (o *GetTenantWorkforceNotFound) Code() int
Code gets the status code for the get tenant workforce not found response
func (*GetTenantWorkforceNotFound) Error ¶
func (o *GetTenantWorkforceNotFound) Error() string
func (*GetTenantWorkforceNotFound) GetPayload ¶
func (o *GetTenantWorkforceNotFound) GetPayload() *models.Error
func (*GetTenantWorkforceNotFound) IsClientError ¶
func (o *GetTenantWorkforceNotFound) IsClientError() bool
IsClientError returns true when this get tenant workforce not found response has a 4xx status code
func (*GetTenantWorkforceNotFound) IsCode ¶
func (o *GetTenantWorkforceNotFound) IsCode(code int) bool
IsCode returns true when this get tenant workforce not found response a status code equal to that given
func (*GetTenantWorkforceNotFound) IsRedirect ¶
func (o *GetTenantWorkforceNotFound) IsRedirect() bool
IsRedirect returns true when this get tenant workforce not found response has a 3xx status code
func (*GetTenantWorkforceNotFound) IsServerError ¶
func (o *GetTenantWorkforceNotFound) IsServerError() bool
IsServerError returns true when this get tenant workforce not found response has a 5xx status code
func (*GetTenantWorkforceNotFound) IsSuccess ¶
func (o *GetTenantWorkforceNotFound) IsSuccess() bool
IsSuccess returns true when this get tenant workforce not found response has a 2xx status code
func (*GetTenantWorkforceNotFound) String ¶
func (o *GetTenantWorkforceNotFound) String() string
type GetTenantWorkforceOK ¶
type GetTenantWorkforceOK struct {
Payload *models.WorkforceSettings
}
GetTenantWorkforceOK describes a response with status code 200, with default header values.
Get tenant workforce settings
func NewGetTenantWorkforceOK ¶
func NewGetTenantWorkforceOK() *GetTenantWorkforceOK
NewGetTenantWorkforceOK creates a GetTenantWorkforceOK with default headers values
func (*GetTenantWorkforceOK) Code ¶
func (o *GetTenantWorkforceOK) Code() int
Code gets the status code for the get tenant workforce o k response
func (*GetTenantWorkforceOK) Error ¶
func (o *GetTenantWorkforceOK) Error() string
func (*GetTenantWorkforceOK) GetPayload ¶
func (o *GetTenantWorkforceOK) GetPayload() *models.WorkforceSettings
func (*GetTenantWorkforceOK) IsClientError ¶
func (o *GetTenantWorkforceOK) IsClientError() bool
IsClientError returns true when this get tenant workforce o k response has a 4xx status code
func (*GetTenantWorkforceOK) IsCode ¶
func (o *GetTenantWorkforceOK) IsCode(code int) bool
IsCode returns true when this get tenant workforce o k response a status code equal to that given
func (*GetTenantWorkforceOK) IsRedirect ¶
func (o *GetTenantWorkforceOK) IsRedirect() bool
IsRedirect returns true when this get tenant workforce o k response has a 3xx status code
func (*GetTenantWorkforceOK) IsServerError ¶
func (o *GetTenantWorkforceOK) IsServerError() bool
IsServerError returns true when this get tenant workforce o k response has a 5xx status code
func (*GetTenantWorkforceOK) IsSuccess ¶
func (o *GetTenantWorkforceOK) IsSuccess() bool
IsSuccess returns true when this get tenant workforce o k response has a 2xx status code
func (*GetTenantWorkforceOK) String ¶
func (o *GetTenantWorkforceOK) String() string
type GetTenantWorkforceParams ¶
type GetTenantWorkforceParams struct {
/* Tid.
Tenant id
Default: "default"
*/
Tid string
Context context.Context
HTTPClient *http.Client
// contains filtered or unexported fields
}
GetTenantWorkforceParams contains all the parameters to send to the API endpoint
for the get tenant workforce operation. Typically these are written to a http.Request.
func NewGetTenantWorkforceParams ¶
func NewGetTenantWorkforceParams() *GetTenantWorkforceParams
NewGetTenantWorkforceParams creates a new GetTenantWorkforceParams 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 NewGetTenantWorkforceParamsWithContext ¶
func NewGetTenantWorkforceParamsWithContext(ctx context.Context) *GetTenantWorkforceParams
NewGetTenantWorkforceParamsWithContext creates a new GetTenantWorkforceParams object with the ability to set a context for a request.
func NewGetTenantWorkforceParamsWithHTTPClient ¶
func NewGetTenantWorkforceParamsWithHTTPClient(client *http.Client) *GetTenantWorkforceParams
NewGetTenantWorkforceParamsWithHTTPClient creates a new GetTenantWorkforceParams object with the ability to set a custom HTTPClient for a request.
func NewGetTenantWorkforceParamsWithTimeout ¶
func NewGetTenantWorkforceParamsWithTimeout(timeout time.Duration) *GetTenantWorkforceParams
NewGetTenantWorkforceParamsWithTimeout creates a new GetTenantWorkforceParams object with the ability to set a timeout on a request.
func (*GetTenantWorkforceParams) SetContext ¶
func (o *GetTenantWorkforceParams) SetContext(ctx context.Context)
SetContext adds the context to the get tenant workforce params
func (*GetTenantWorkforceParams) SetDefaults ¶
func (o *GetTenantWorkforceParams) SetDefaults()
SetDefaults hydrates default values in the get tenant workforce params (not the query body).
All values with no default are reset to their zero value.
func (*GetTenantWorkforceParams) SetHTTPClient ¶
func (o *GetTenantWorkforceParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the get tenant workforce params
func (*GetTenantWorkforceParams) SetTid ¶
func (o *GetTenantWorkforceParams) SetTid(tid string)
SetTid adds the tid to the get tenant workforce params
func (*GetTenantWorkforceParams) SetTimeout ¶
func (o *GetTenantWorkforceParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the get tenant workforce params
func (*GetTenantWorkforceParams) WithContext ¶
func (o *GetTenantWorkforceParams) WithContext(ctx context.Context) *GetTenantWorkforceParams
WithContext adds the context to the get tenant workforce params
func (*GetTenantWorkforceParams) WithDefaults ¶
func (o *GetTenantWorkforceParams) WithDefaults() *GetTenantWorkforceParams
WithDefaults hydrates default values in the get tenant workforce params (not the query body).
All values with no default are reset to their zero value.
func (*GetTenantWorkforceParams) WithHTTPClient ¶
func (o *GetTenantWorkforceParams) WithHTTPClient(client *http.Client) *GetTenantWorkforceParams
WithHTTPClient adds the HTTPClient to the get tenant workforce params
func (*GetTenantWorkforceParams) WithTid ¶
func (o *GetTenantWorkforceParams) WithTid(tid string) *GetTenantWorkforceParams
WithTid adds the tid to the get tenant workforce params
func (*GetTenantWorkforceParams) WithTimeout ¶
func (o *GetTenantWorkforceParams) WithTimeout(timeout time.Duration) *GetTenantWorkforceParams
WithTimeout adds the timeout to the get tenant workforce params
func (*GetTenantWorkforceParams) WriteToRequest ¶
func (o *GetTenantWorkforceParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type GetTenantWorkforceReader ¶
type GetTenantWorkforceReader struct {
// contains filtered or unexported fields
}
GetTenantWorkforceReader is a Reader for the GetTenantWorkforce structure.
func (*GetTenantWorkforceReader) ReadResponse ¶
func (o *GetTenantWorkforceReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type GetTenantWorkforceTooManyRequests ¶
GetTenantWorkforceTooManyRequests describes a response with status code 429, with default header values.
Too many requests
func NewGetTenantWorkforceTooManyRequests ¶
func NewGetTenantWorkforceTooManyRequests() *GetTenantWorkforceTooManyRequests
NewGetTenantWorkforceTooManyRequests creates a GetTenantWorkforceTooManyRequests with default headers values
func (*GetTenantWorkforceTooManyRequests) Code ¶
func (o *GetTenantWorkforceTooManyRequests) Code() int
Code gets the status code for the get tenant workforce too many requests response
func (*GetTenantWorkforceTooManyRequests) Error ¶
func (o *GetTenantWorkforceTooManyRequests) Error() string
func (*GetTenantWorkforceTooManyRequests) GetPayload ¶
func (o *GetTenantWorkforceTooManyRequests) GetPayload() *models.Error
func (*GetTenantWorkforceTooManyRequests) IsClientError ¶
func (o *GetTenantWorkforceTooManyRequests) IsClientError() bool
IsClientError returns true when this get tenant workforce too many requests response has a 4xx status code
func (*GetTenantWorkforceTooManyRequests) IsCode ¶
func (o *GetTenantWorkforceTooManyRequests) IsCode(code int) bool
IsCode returns true when this get tenant workforce too many requests response a status code equal to that given
func (*GetTenantWorkforceTooManyRequests) IsRedirect ¶
func (o *GetTenantWorkforceTooManyRequests) IsRedirect() bool
IsRedirect returns true when this get tenant workforce too many requests response has a 3xx status code
func (*GetTenantWorkforceTooManyRequests) IsServerError ¶
func (o *GetTenantWorkforceTooManyRequests) IsServerError() bool
IsServerError returns true when this get tenant workforce too many requests response has a 5xx status code
func (*GetTenantWorkforceTooManyRequests) IsSuccess ¶
func (o *GetTenantWorkforceTooManyRequests) IsSuccess() bool
IsSuccess returns true when this get tenant workforce too many requests response has a 2xx status code
func (*GetTenantWorkforceTooManyRequests) String ¶
func (o *GetTenantWorkforceTooManyRequests) String() string
type GetTenantWorkforceUnauthorized ¶
type GetTenantWorkforceUnauthorized struct {
}
GetTenantWorkforceUnauthorized describes a response with status code 401, with default header values.
Unauthorized
func NewGetTenantWorkforceUnauthorized ¶
func NewGetTenantWorkforceUnauthorized() *GetTenantWorkforceUnauthorized
NewGetTenantWorkforceUnauthorized creates a GetTenantWorkforceUnauthorized with default headers values
func (*GetTenantWorkforceUnauthorized) Code ¶
func (o *GetTenantWorkforceUnauthorized) Code() int
Code gets the status code for the get tenant workforce unauthorized response
func (*GetTenantWorkforceUnauthorized) Error ¶
func (o *GetTenantWorkforceUnauthorized) Error() string
func (*GetTenantWorkforceUnauthorized) GetPayload ¶
func (o *GetTenantWorkforceUnauthorized) GetPayload() *models.Error
func (*GetTenantWorkforceUnauthorized) IsClientError ¶
func (o *GetTenantWorkforceUnauthorized) IsClientError() bool
IsClientError returns true when this get tenant workforce unauthorized response has a 4xx status code
func (*GetTenantWorkforceUnauthorized) IsCode ¶
func (o *GetTenantWorkforceUnauthorized) IsCode(code int) bool
IsCode returns true when this get tenant workforce unauthorized response a status code equal to that given
func (*GetTenantWorkforceUnauthorized) IsRedirect ¶
func (o *GetTenantWorkforceUnauthorized) IsRedirect() bool
IsRedirect returns true when this get tenant workforce unauthorized response has a 3xx status code
func (*GetTenantWorkforceUnauthorized) IsServerError ¶
func (o *GetTenantWorkforceUnauthorized) IsServerError() bool
IsServerError returns true when this get tenant workforce unauthorized response has a 5xx status code
func (*GetTenantWorkforceUnauthorized) IsSuccess ¶
func (o *GetTenantWorkforceUnauthorized) IsSuccess() bool
IsSuccess returns true when this get tenant workforce unauthorized response has a 2xx status code
func (*GetTenantWorkforceUnauthorized) String ¶
func (o *GetTenantWorkforceUnauthorized) String() string
type SetTenantWorkforceBadRequest ¶
SetTenantWorkforceBadRequest describes a response with status code 400, with default header values.
Bad request
func NewSetTenantWorkforceBadRequest ¶
func NewSetTenantWorkforceBadRequest() *SetTenantWorkforceBadRequest
NewSetTenantWorkforceBadRequest creates a SetTenantWorkforceBadRequest with default headers values
func (*SetTenantWorkforceBadRequest) Code ¶
func (o *SetTenantWorkforceBadRequest) Code() int
Code gets the status code for the set tenant workforce bad request response
func (*SetTenantWorkforceBadRequest) Error ¶
func (o *SetTenantWorkforceBadRequest) Error() string
func (*SetTenantWorkforceBadRequest) GetPayload ¶
func (o *SetTenantWorkforceBadRequest) GetPayload() *models.Error
func (*SetTenantWorkforceBadRequest) IsClientError ¶
func (o *SetTenantWorkforceBadRequest) IsClientError() bool
IsClientError returns true when this set tenant workforce bad request response has a 4xx status code
func (*SetTenantWorkforceBadRequest) IsCode ¶
func (o *SetTenantWorkforceBadRequest) IsCode(code int) bool
IsCode returns true when this set tenant workforce bad request response a status code equal to that given
func (*SetTenantWorkforceBadRequest) IsRedirect ¶
func (o *SetTenantWorkforceBadRequest) IsRedirect() bool
IsRedirect returns true when this set tenant workforce bad request response has a 3xx status code
func (*SetTenantWorkforceBadRequest) IsServerError ¶
func (o *SetTenantWorkforceBadRequest) IsServerError() bool
IsServerError returns true when this set tenant workforce bad request response has a 5xx status code
func (*SetTenantWorkforceBadRequest) IsSuccess ¶
func (o *SetTenantWorkforceBadRequest) IsSuccess() bool
IsSuccess returns true when this set tenant workforce bad request response has a 2xx status code
func (*SetTenantWorkforceBadRequest) String ¶
func (o *SetTenantWorkforceBadRequest) String() string
type SetTenantWorkforceForbidden ¶
SetTenantWorkforceForbidden describes a response with status code 403, with default header values.
Forbidden
func NewSetTenantWorkforceForbidden ¶
func NewSetTenantWorkforceForbidden() *SetTenantWorkforceForbidden
NewSetTenantWorkforceForbidden creates a SetTenantWorkforceForbidden with default headers values
func (*SetTenantWorkforceForbidden) Code ¶
func (o *SetTenantWorkforceForbidden) Code() int
Code gets the status code for the set tenant workforce forbidden response
func (*SetTenantWorkforceForbidden) Error ¶
func (o *SetTenantWorkforceForbidden) Error() string
func (*SetTenantWorkforceForbidden) GetPayload ¶
func (o *SetTenantWorkforceForbidden) GetPayload() *models.Error
func (*SetTenantWorkforceForbidden) IsClientError ¶
func (o *SetTenantWorkforceForbidden) IsClientError() bool
IsClientError returns true when this set tenant workforce forbidden response has a 4xx status code
func (*SetTenantWorkforceForbidden) IsCode ¶
func (o *SetTenantWorkforceForbidden) IsCode(code int) bool
IsCode returns true when this set tenant workforce forbidden response a status code equal to that given
func (*SetTenantWorkforceForbidden) IsRedirect ¶
func (o *SetTenantWorkforceForbidden) IsRedirect() bool
IsRedirect returns true when this set tenant workforce forbidden response has a 3xx status code
func (*SetTenantWorkforceForbidden) IsServerError ¶
func (o *SetTenantWorkforceForbidden) IsServerError() bool
IsServerError returns true when this set tenant workforce forbidden response has a 5xx status code
func (*SetTenantWorkforceForbidden) IsSuccess ¶
func (o *SetTenantWorkforceForbidden) IsSuccess() bool
IsSuccess returns true when this set tenant workforce forbidden response has a 2xx status code
func (*SetTenantWorkforceForbidden) String ¶
func (o *SetTenantWorkforceForbidden) String() string
type SetTenantWorkforceNoContent ¶
type SetTenantWorkforceNoContent struct {
}
SetTenantWorkforceNoContent describes a response with status code 204, with default header values.
tenant workforce settings
func NewSetTenantWorkforceNoContent ¶
func NewSetTenantWorkforceNoContent() *SetTenantWorkforceNoContent
NewSetTenantWorkforceNoContent creates a SetTenantWorkforceNoContent with default headers values
func (*SetTenantWorkforceNoContent) Code ¶
func (o *SetTenantWorkforceNoContent) Code() int
Code gets the status code for the set tenant workforce no content response
func (*SetTenantWorkforceNoContent) Error ¶
func (o *SetTenantWorkforceNoContent) Error() string
func (*SetTenantWorkforceNoContent) IsClientError ¶
func (o *SetTenantWorkforceNoContent) IsClientError() bool
IsClientError returns true when this set tenant workforce no content response has a 4xx status code
func (*SetTenantWorkforceNoContent) IsCode ¶
func (o *SetTenantWorkforceNoContent) IsCode(code int) bool
IsCode returns true when this set tenant workforce no content response a status code equal to that given
func (*SetTenantWorkforceNoContent) IsRedirect ¶
func (o *SetTenantWorkforceNoContent) IsRedirect() bool
IsRedirect returns true when this set tenant workforce no content response has a 3xx status code
func (*SetTenantWorkforceNoContent) IsServerError ¶
func (o *SetTenantWorkforceNoContent) IsServerError() bool
IsServerError returns true when this set tenant workforce no content response has a 5xx status code
func (*SetTenantWorkforceNoContent) IsSuccess ¶
func (o *SetTenantWorkforceNoContent) IsSuccess() bool
IsSuccess returns true when this set tenant workforce no content response has a 2xx status code
func (*SetTenantWorkforceNoContent) String ¶
func (o *SetTenantWorkforceNoContent) String() string
type SetTenantWorkforceNotFound ¶
SetTenantWorkforceNotFound describes a response with status code 404, with default header values.
Not found
func NewSetTenantWorkforceNotFound ¶
func NewSetTenantWorkforceNotFound() *SetTenantWorkforceNotFound
NewSetTenantWorkforceNotFound creates a SetTenantWorkforceNotFound with default headers values
func (*SetTenantWorkforceNotFound) Code ¶
func (o *SetTenantWorkforceNotFound) Code() int
Code gets the status code for the set tenant workforce not found response
func (*SetTenantWorkforceNotFound) Error ¶
func (o *SetTenantWorkforceNotFound) Error() string
func (*SetTenantWorkforceNotFound) GetPayload ¶
func (o *SetTenantWorkforceNotFound) GetPayload() *models.Error
func (*SetTenantWorkforceNotFound) IsClientError ¶
func (o *SetTenantWorkforceNotFound) IsClientError() bool
IsClientError returns true when this set tenant workforce not found response has a 4xx status code
func (*SetTenantWorkforceNotFound) IsCode ¶
func (o *SetTenantWorkforceNotFound) IsCode(code int) bool
IsCode returns true when this set tenant workforce not found response a status code equal to that given
func (*SetTenantWorkforceNotFound) IsRedirect ¶
func (o *SetTenantWorkforceNotFound) IsRedirect() bool
IsRedirect returns true when this set tenant workforce not found response has a 3xx status code
func (*SetTenantWorkforceNotFound) IsServerError ¶
func (o *SetTenantWorkforceNotFound) IsServerError() bool
IsServerError returns true when this set tenant workforce not found response has a 5xx status code
func (*SetTenantWorkforceNotFound) IsSuccess ¶
func (o *SetTenantWorkforceNotFound) IsSuccess() bool
IsSuccess returns true when this set tenant workforce not found response has a 2xx status code
func (*SetTenantWorkforceNotFound) String ¶
func (o *SetTenantWorkforceNotFound) String() string
type SetTenantWorkforceParams ¶
type SetTenantWorkforceParams struct {
// SetTenantWorkforce.
SetTenantWorkforce *models.WorkforceSettings
/* Tid.
Tenant id
Default: "default"
*/
Tid string
Context context.Context
HTTPClient *http.Client
// contains filtered or unexported fields
}
SetTenantWorkforceParams contains all the parameters to send to the API endpoint
for the set tenant workforce operation. Typically these are written to a http.Request.
func NewSetTenantWorkforceParams ¶
func NewSetTenantWorkforceParams() *SetTenantWorkforceParams
NewSetTenantWorkforceParams creates a new SetTenantWorkforceParams 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 NewSetTenantWorkforceParamsWithContext ¶
func NewSetTenantWorkforceParamsWithContext(ctx context.Context) *SetTenantWorkforceParams
NewSetTenantWorkforceParamsWithContext creates a new SetTenantWorkforceParams object with the ability to set a context for a request.
func NewSetTenantWorkforceParamsWithHTTPClient ¶
func NewSetTenantWorkforceParamsWithHTTPClient(client *http.Client) *SetTenantWorkforceParams
NewSetTenantWorkforceParamsWithHTTPClient creates a new SetTenantWorkforceParams object with the ability to set a custom HTTPClient for a request.
func NewSetTenantWorkforceParamsWithTimeout ¶
func NewSetTenantWorkforceParamsWithTimeout(timeout time.Duration) *SetTenantWorkforceParams
NewSetTenantWorkforceParamsWithTimeout creates a new SetTenantWorkforceParams object with the ability to set a timeout on a request.
func (*SetTenantWorkforceParams) SetContext ¶
func (o *SetTenantWorkforceParams) SetContext(ctx context.Context)
SetContext adds the context to the set tenant workforce params
func (*SetTenantWorkforceParams) SetDefaults ¶
func (o *SetTenantWorkforceParams) SetDefaults()
SetDefaults hydrates default values in the set tenant workforce params (not the query body).
All values with no default are reset to their zero value.
func (*SetTenantWorkforceParams) SetHTTPClient ¶
func (o *SetTenantWorkforceParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the set tenant workforce params
func (*SetTenantWorkforceParams) SetSetTenantWorkforce ¶
func (o *SetTenantWorkforceParams) SetSetTenantWorkforce(setTenantWorkforce *models.WorkforceSettings)
SetSetTenantWorkforce adds the setTenantWorkforce to the set tenant workforce params
func (*SetTenantWorkforceParams) SetTid ¶
func (o *SetTenantWorkforceParams) SetTid(tid string)
SetTid adds the tid to the set tenant workforce params
func (*SetTenantWorkforceParams) SetTimeout ¶
func (o *SetTenantWorkforceParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the set tenant workforce params
func (*SetTenantWorkforceParams) WithContext ¶
func (o *SetTenantWorkforceParams) WithContext(ctx context.Context) *SetTenantWorkforceParams
WithContext adds the context to the set tenant workforce params
func (*SetTenantWorkforceParams) WithDefaults ¶
func (o *SetTenantWorkforceParams) WithDefaults() *SetTenantWorkforceParams
WithDefaults hydrates default values in the set tenant workforce params (not the query body).
All values with no default are reset to their zero value.
func (*SetTenantWorkforceParams) WithHTTPClient ¶
func (o *SetTenantWorkforceParams) WithHTTPClient(client *http.Client) *SetTenantWorkforceParams
WithHTTPClient adds the HTTPClient to the set tenant workforce params
func (*SetTenantWorkforceParams) WithSetTenantWorkforce ¶
func (o *SetTenantWorkforceParams) WithSetTenantWorkforce(setTenantWorkforce *models.WorkforceSettings) *SetTenantWorkforceParams
WithSetTenantWorkforce adds the setTenantWorkforce to the set tenant workforce params
func (*SetTenantWorkforceParams) WithTid ¶
func (o *SetTenantWorkforceParams) WithTid(tid string) *SetTenantWorkforceParams
WithTid adds the tid to the set tenant workforce params
func (*SetTenantWorkforceParams) WithTimeout ¶
func (o *SetTenantWorkforceParams) WithTimeout(timeout time.Duration) *SetTenantWorkforceParams
WithTimeout adds the timeout to the set tenant workforce params
func (*SetTenantWorkforceParams) WriteToRequest ¶
func (o *SetTenantWorkforceParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type SetTenantWorkforceReader ¶
type SetTenantWorkforceReader struct {
// contains filtered or unexported fields
}
SetTenantWorkforceReader is a Reader for the SetTenantWorkforce structure.
func (*SetTenantWorkforceReader) ReadResponse ¶
func (o *SetTenantWorkforceReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type SetTenantWorkforceTooManyRequests ¶
SetTenantWorkforceTooManyRequests describes a response with status code 429, with default header values.
Too many requests
func NewSetTenantWorkforceTooManyRequests ¶
func NewSetTenantWorkforceTooManyRequests() *SetTenantWorkforceTooManyRequests
NewSetTenantWorkforceTooManyRequests creates a SetTenantWorkforceTooManyRequests with default headers values
func (*SetTenantWorkforceTooManyRequests) Code ¶
func (o *SetTenantWorkforceTooManyRequests) Code() int
Code gets the status code for the set tenant workforce too many requests response
func (*SetTenantWorkforceTooManyRequests) Error ¶
func (o *SetTenantWorkforceTooManyRequests) Error() string
func (*SetTenantWorkforceTooManyRequests) GetPayload ¶
func (o *SetTenantWorkforceTooManyRequests) GetPayload() *models.Error
func (*SetTenantWorkforceTooManyRequests) IsClientError ¶
func (o *SetTenantWorkforceTooManyRequests) IsClientError() bool
IsClientError returns true when this set tenant workforce too many requests response has a 4xx status code
func (*SetTenantWorkforceTooManyRequests) IsCode ¶
func (o *SetTenantWorkforceTooManyRequests) IsCode(code int) bool
IsCode returns true when this set tenant workforce too many requests response a status code equal to that given
func (*SetTenantWorkforceTooManyRequests) IsRedirect ¶
func (o *SetTenantWorkforceTooManyRequests) IsRedirect() bool
IsRedirect returns true when this set tenant workforce too many requests response has a 3xx status code
func (*SetTenantWorkforceTooManyRequests) IsServerError ¶
func (o *SetTenantWorkforceTooManyRequests) IsServerError() bool
IsServerError returns true when this set tenant workforce too many requests response has a 5xx status code
func (*SetTenantWorkforceTooManyRequests) IsSuccess ¶
func (o *SetTenantWorkforceTooManyRequests) IsSuccess() bool
IsSuccess returns true when this set tenant workforce too many requests response has a 2xx status code
func (*SetTenantWorkforceTooManyRequests) String ¶
func (o *SetTenantWorkforceTooManyRequests) String() string
type SetTenantWorkforceUnauthorized ¶
type SetTenantWorkforceUnauthorized struct {
}
SetTenantWorkforceUnauthorized describes a response with status code 401, with default header values.
Unauthorized
func NewSetTenantWorkforceUnauthorized ¶
func NewSetTenantWorkforceUnauthorized() *SetTenantWorkforceUnauthorized
NewSetTenantWorkforceUnauthorized creates a SetTenantWorkforceUnauthorized with default headers values
func (*SetTenantWorkforceUnauthorized) Code ¶
func (o *SetTenantWorkforceUnauthorized) Code() int
Code gets the status code for the set tenant workforce unauthorized response
func (*SetTenantWorkforceUnauthorized) Error ¶
func (o *SetTenantWorkforceUnauthorized) Error() string
func (*SetTenantWorkforceUnauthorized) GetPayload ¶
func (o *SetTenantWorkforceUnauthorized) GetPayload() *models.Error
func (*SetTenantWorkforceUnauthorized) IsClientError ¶
func (o *SetTenantWorkforceUnauthorized) IsClientError() bool
IsClientError returns true when this set tenant workforce unauthorized response has a 4xx status code
func (*SetTenantWorkforceUnauthorized) IsCode ¶
func (o *SetTenantWorkforceUnauthorized) IsCode(code int) bool
IsCode returns true when this set tenant workforce unauthorized response a status code equal to that given
func (*SetTenantWorkforceUnauthorized) IsRedirect ¶
func (o *SetTenantWorkforceUnauthorized) IsRedirect() bool
IsRedirect returns true when this set tenant workforce unauthorized response has a 3xx status code
func (*SetTenantWorkforceUnauthorized) IsServerError ¶
func (o *SetTenantWorkforceUnauthorized) IsServerError() bool
IsServerError returns true when this set tenant workforce unauthorized response has a 5xx status code
func (*SetTenantWorkforceUnauthorized) IsSuccess ¶
func (o *SetTenantWorkforceUnauthorized) IsSuccess() bool
IsSuccess returns true when this set tenant workforce unauthorized response has a 2xx status code
func (*SetTenantWorkforceUnauthorized) String ¶
func (o *SetTenantWorkforceUnauthorized) String() string
type SetTenantWorkforceUnprocessableEntity ¶
SetTenantWorkforceUnprocessableEntity describes a response with status code 422, with default header values.
Unprocessable entity
func NewSetTenantWorkforceUnprocessableEntity ¶
func NewSetTenantWorkforceUnprocessableEntity() *SetTenantWorkforceUnprocessableEntity
NewSetTenantWorkforceUnprocessableEntity creates a SetTenantWorkforceUnprocessableEntity with default headers values
func (*SetTenantWorkforceUnprocessableEntity) Code ¶
func (o *SetTenantWorkforceUnprocessableEntity) Code() int
Code gets the status code for the set tenant workforce unprocessable entity response
func (*SetTenantWorkforceUnprocessableEntity) Error ¶
func (o *SetTenantWorkforceUnprocessableEntity) Error() string
func (*SetTenantWorkforceUnprocessableEntity) GetPayload ¶
func (o *SetTenantWorkforceUnprocessableEntity) GetPayload() *models.Error
func (*SetTenantWorkforceUnprocessableEntity) IsClientError ¶
func (o *SetTenantWorkforceUnprocessableEntity) IsClientError() bool
IsClientError returns true when this set tenant workforce unprocessable entity response has a 4xx status code
func (*SetTenantWorkforceUnprocessableEntity) IsCode ¶
func (o *SetTenantWorkforceUnprocessableEntity) IsCode(code int) bool
IsCode returns true when this set tenant workforce unprocessable entity response a status code equal to that given
func (*SetTenantWorkforceUnprocessableEntity) IsRedirect ¶
func (o *SetTenantWorkforceUnprocessableEntity) IsRedirect() bool
IsRedirect returns true when this set tenant workforce unprocessable entity response has a 3xx status code
func (*SetTenantWorkforceUnprocessableEntity) IsServerError ¶
func (o *SetTenantWorkforceUnprocessableEntity) IsServerError() bool
IsServerError returns true when this set tenant workforce unprocessable entity response has a 5xx status code
func (*SetTenantWorkforceUnprocessableEntity) IsSuccess ¶
func (o *SetTenantWorkforceUnprocessableEntity) IsSuccess() bool
IsSuccess returns true when this set tenant workforce unprocessable entity response has a 2xx status code
func (*SetTenantWorkforceUnprocessableEntity) String ¶
func (o *SetTenantWorkforceUnprocessableEntity) String() string