workforce

package
v0.0.0-...-9ad40bb Latest Latest
Warning

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

Go to latest
Published: Nov 16, 2025 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

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

type GetTenantWorkforceForbidden struct {
	Payload *models.Error
}

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 (*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

type GetTenantWorkforceNotFound struct {
	Payload *models.Error
}

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 (*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 (*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

WithContext adds the context to the get tenant workforce params

func (*GetTenantWorkforceParams) WithDefaults

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

WithTid adds the tid to the get tenant workforce params

func (*GetTenantWorkforceParams) WithTimeout

WithTimeout adds the timeout to the get tenant workforce params

func (*GetTenantWorkforceParams) WriteToRequest

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

type GetTenantWorkforceTooManyRequests struct {
	Payload *models.Error
}

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

Code gets the status code for the get tenant workforce too many requests response

func (*GetTenantWorkforceTooManyRequests) Error

func (*GetTenantWorkforceTooManyRequests) GetPayload

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

type GetTenantWorkforceUnauthorized

type GetTenantWorkforceUnauthorized struct {
	Payload *models.Error
}

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

Code gets the status code for the get tenant workforce unauthorized response

func (*GetTenantWorkforceUnauthorized) Error

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

type SetTenantWorkforceBadRequest

type SetTenantWorkforceBadRequest struct {
	Payload *models.Error
}

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

Code gets the status code for the set tenant workforce bad request response

func (*SetTenantWorkforceBadRequest) Error

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

type SetTenantWorkforceForbidden

type SetTenantWorkforceForbidden struct {
	Payload *models.Error
}

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 (*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 (*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

type SetTenantWorkforceNotFound struct {
	Payload *models.Error
}

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 (*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

WithContext adds the context to the set tenant workforce params

func (*SetTenantWorkforceParams) WithDefaults

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

WithTid adds the tid to the set tenant workforce params

func (*SetTenantWorkforceParams) WithTimeout

WithTimeout adds the timeout to the set tenant workforce params

func (*SetTenantWorkforceParams) WriteToRequest

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

type SetTenantWorkforceTooManyRequests struct {
	Payload *models.Error
}

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

Code gets the status code for the set tenant workforce too many requests response

func (*SetTenantWorkforceTooManyRequests) Error

func (*SetTenantWorkforceTooManyRequests) GetPayload

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

type SetTenantWorkforceUnauthorized

type SetTenantWorkforceUnauthorized struct {
	Payload *models.Error
}

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

Code gets the status code for the set tenant workforce unauthorized response

func (*SetTenantWorkforceUnauthorized) Error

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

type SetTenantWorkforceUnprocessableEntity

type SetTenantWorkforceUnprocessableEntity struct {
	Payload *models.Error
}

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

Code gets the status code for the set tenant workforce unprocessable entity response

func (*SetTenantWorkforceUnprocessableEntity) Error

func (*SetTenantWorkforceUnprocessableEntity) GetPayload

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

IsCode returns true when this set tenant workforce unprocessable entity response a status code equal to that given

func (*SetTenantWorkforceUnprocessableEntity) IsRedirect

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

IsSuccess returns true when this set tenant workforce unprocessable entity response has a 2xx status code

func (*SetTenantWorkforceUnprocessableEntity) String

Jump to

Keyboard shortcuts

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