agent

package
v2.5.3 Latest Latest
Warning

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

Go to latest
Published: Jul 10, 2026 License: Apache-2.0 Imports: 14 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 agent API

func (*Client) GetAgents

func (a *Client) GetAgents(params *GetAgentsParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetAgentsOK, error)

GetAgents lists agents

Lists all registered Archer agents. This is an administrative endpoint.

func (*Client) GetAgentsAgentHost

func (a *Client) GetAgentsAgentHost(params *GetAgentsAgentHostParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetAgentsAgentHostOK, error)

GetAgentsAgentHost shows agent details

Shows details for a specific agent.

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 {
	GetAgents(params *GetAgentsParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetAgentsOK, error)

	GetAgentsAgentHost(params *GetAgentsAgentHostParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetAgentsAgentHostOK, 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 agent API client.

func NewClientWithBasicAuth

func NewClientWithBasicAuth(host, basePath, scheme, user, password string) ClientService

New creates a new agent 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 agent 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 GetAgentsAgentHostForbidden

type GetAgentsAgentHostForbidden struct {
}

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

Forbidden

func NewGetAgentsAgentHostForbidden

func NewGetAgentsAgentHostForbidden() *GetAgentsAgentHostForbidden

NewGetAgentsAgentHostForbidden creates a GetAgentsAgentHostForbidden with default headers values

func (*GetAgentsAgentHostForbidden) Code

func (o *GetAgentsAgentHostForbidden) Code() int

Code gets the status code for the get agents agent host forbidden response

func (*GetAgentsAgentHostForbidden) Error

func (*GetAgentsAgentHostForbidden) IsClientError

func (o *GetAgentsAgentHostForbidden) IsClientError() bool

IsClientError returns true when this get agents agent host forbidden response has a 4xx status code

func (*GetAgentsAgentHostForbidden) IsCode

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

IsCode returns true when this get agents agent host forbidden response a status code equal to that given

func (*GetAgentsAgentHostForbidden) IsRedirect

func (o *GetAgentsAgentHostForbidden) IsRedirect() bool

IsRedirect returns true when this get agents agent host forbidden response has a 3xx status code

func (*GetAgentsAgentHostForbidden) IsServerError

func (o *GetAgentsAgentHostForbidden) IsServerError() bool

IsServerError returns true when this get agents agent host forbidden response has a 5xx status code

func (*GetAgentsAgentHostForbidden) IsSuccess

func (o *GetAgentsAgentHostForbidden) IsSuccess() bool

IsSuccess returns true when this get agents agent host forbidden response has a 2xx status code

func (*GetAgentsAgentHostForbidden) String

func (o *GetAgentsAgentHostForbidden) String() string

type GetAgentsAgentHostNotFound

type GetAgentsAgentHostNotFound struct {
	Payload *models.Error
}

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

Not Found

func NewGetAgentsAgentHostNotFound

func NewGetAgentsAgentHostNotFound() *GetAgentsAgentHostNotFound

NewGetAgentsAgentHostNotFound creates a GetAgentsAgentHostNotFound with default headers values

func (*GetAgentsAgentHostNotFound) Code

func (o *GetAgentsAgentHostNotFound) Code() int

Code gets the status code for the get agents agent host not found response

func (*GetAgentsAgentHostNotFound) Error

func (*GetAgentsAgentHostNotFound) GetPayload

func (o *GetAgentsAgentHostNotFound) GetPayload() *models.Error

func (*GetAgentsAgentHostNotFound) IsClientError

func (o *GetAgentsAgentHostNotFound) IsClientError() bool

IsClientError returns true when this get agents agent host not found response has a 4xx status code

func (*GetAgentsAgentHostNotFound) IsCode

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

IsCode returns true when this get agents agent host not found response a status code equal to that given

func (*GetAgentsAgentHostNotFound) IsRedirect

func (o *GetAgentsAgentHostNotFound) IsRedirect() bool

IsRedirect returns true when this get agents agent host not found response has a 3xx status code

func (*GetAgentsAgentHostNotFound) IsServerError

func (o *GetAgentsAgentHostNotFound) IsServerError() bool

IsServerError returns true when this get agents agent host not found response has a 5xx status code

func (*GetAgentsAgentHostNotFound) IsSuccess

func (o *GetAgentsAgentHostNotFound) IsSuccess() bool

IsSuccess returns true when this get agents agent host not found response has a 2xx status code

func (*GetAgentsAgentHostNotFound) String

func (o *GetAgentsAgentHostNotFound) String() string

type GetAgentsAgentHostOK

type GetAgentsAgentHostOK struct {
	Payload *models.Agent
}

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

Agent details.

func NewGetAgentsAgentHostOK

func NewGetAgentsAgentHostOK() *GetAgentsAgentHostOK

NewGetAgentsAgentHostOK creates a GetAgentsAgentHostOK with default headers values

func (*GetAgentsAgentHostOK) Code

func (o *GetAgentsAgentHostOK) Code() int

Code gets the status code for the get agents agent host o k response

func (*GetAgentsAgentHostOK) Error

func (o *GetAgentsAgentHostOK) Error() string

func (*GetAgentsAgentHostOK) GetPayload

func (o *GetAgentsAgentHostOK) GetPayload() *models.Agent

func (*GetAgentsAgentHostOK) IsClientError

func (o *GetAgentsAgentHostOK) IsClientError() bool

IsClientError returns true when this get agents agent host o k response has a 4xx status code

func (*GetAgentsAgentHostOK) IsCode

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

IsCode returns true when this get agents agent host o k response a status code equal to that given

func (*GetAgentsAgentHostOK) IsRedirect

func (o *GetAgentsAgentHostOK) IsRedirect() bool

IsRedirect returns true when this get agents agent host o k response has a 3xx status code

func (*GetAgentsAgentHostOK) IsServerError

func (o *GetAgentsAgentHostOK) IsServerError() bool

IsServerError returns true when this get agents agent host o k response has a 5xx status code

func (*GetAgentsAgentHostOK) IsSuccess

func (o *GetAgentsAgentHostOK) IsSuccess() bool

IsSuccess returns true when this get agents agent host o k response has a 2xx status code

func (*GetAgentsAgentHostOK) String

func (o *GetAgentsAgentHostOK) String() string

type GetAgentsAgentHostParams

type GetAgentsAgentHostParams struct {

	/* AgentHost.

	   The hostname of the agent
	*/
	AgentHost string

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

GetAgentsAgentHostParams contains all the parameters to send to the API endpoint

for the get agents agent host operation.

Typically these are written to a http.Request.

func NewGetAgentsAgentHostParams

func NewGetAgentsAgentHostParams() *GetAgentsAgentHostParams

NewGetAgentsAgentHostParams creates a new GetAgentsAgentHostParams 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 NewGetAgentsAgentHostParamsWithContext

func NewGetAgentsAgentHostParamsWithContext(ctx context.Context) *GetAgentsAgentHostParams

NewGetAgentsAgentHostParamsWithContext creates a new GetAgentsAgentHostParams object with the ability to set a context for a request.

func NewGetAgentsAgentHostParamsWithHTTPClient

func NewGetAgentsAgentHostParamsWithHTTPClient(client *http.Client) *GetAgentsAgentHostParams

NewGetAgentsAgentHostParamsWithHTTPClient creates a new GetAgentsAgentHostParams object with the ability to set a custom HTTPClient for a request.

func NewGetAgentsAgentHostParamsWithTimeout

func NewGetAgentsAgentHostParamsWithTimeout(timeout time.Duration) *GetAgentsAgentHostParams

NewGetAgentsAgentHostParamsWithTimeout creates a new GetAgentsAgentHostParams object with the ability to set a timeout on a request.

func (*GetAgentsAgentHostParams) SetAgentHost

func (o *GetAgentsAgentHostParams) SetAgentHost(agentHost string)

SetAgentHost adds the agentHost to the get agents agent host params

func (*GetAgentsAgentHostParams) SetContext

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

SetContext adds the context to the get agents agent host params

func (*GetAgentsAgentHostParams) SetDefaults

func (o *GetAgentsAgentHostParams) SetDefaults()

SetDefaults hydrates default values in the get agents agent host params (not the query body).

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

func (*GetAgentsAgentHostParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get agents agent host params

func (*GetAgentsAgentHostParams) SetTimeout

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

SetTimeout adds the timeout to the get agents agent host params

func (*GetAgentsAgentHostParams) WithAgentHost

func (o *GetAgentsAgentHostParams) WithAgentHost(agentHost string) *GetAgentsAgentHostParams

WithAgentHost adds the agentHost to the get agents agent host params

func (*GetAgentsAgentHostParams) WithContext

WithContext adds the context to the get agents agent host params

func (*GetAgentsAgentHostParams) WithDefaults

WithDefaults hydrates default values in the get agents agent host params (not the query body).

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

func (*GetAgentsAgentHostParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the get agents agent host params

func (*GetAgentsAgentHostParams) WithTimeout

WithTimeout adds the timeout to the get agents agent host params

func (*GetAgentsAgentHostParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type GetAgentsAgentHostReader

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

GetAgentsAgentHostReader is a Reader for the GetAgentsAgentHost structure.

func (*GetAgentsAgentHostReader) ReadResponse

func (o *GetAgentsAgentHostReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (any, error)

ReadResponse reads a server response into the received o.

type GetAgentsAgentHostUnauthorized

type GetAgentsAgentHostUnauthorized struct {
	Payload *models.Error
}

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

Unauthorized

func NewGetAgentsAgentHostUnauthorized

func NewGetAgentsAgentHostUnauthorized() *GetAgentsAgentHostUnauthorized

NewGetAgentsAgentHostUnauthorized creates a GetAgentsAgentHostUnauthorized with default headers values

func (*GetAgentsAgentHostUnauthorized) Code

Code gets the status code for the get agents agent host unauthorized response

func (*GetAgentsAgentHostUnauthorized) Error

func (*GetAgentsAgentHostUnauthorized) GetPayload

func (o *GetAgentsAgentHostUnauthorized) GetPayload() *models.Error

func (*GetAgentsAgentHostUnauthorized) IsClientError

func (o *GetAgentsAgentHostUnauthorized) IsClientError() bool

IsClientError returns true when this get agents agent host unauthorized response has a 4xx status code

func (*GetAgentsAgentHostUnauthorized) IsCode

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

IsCode returns true when this get agents agent host unauthorized response a status code equal to that given

func (*GetAgentsAgentHostUnauthorized) IsRedirect

func (o *GetAgentsAgentHostUnauthorized) IsRedirect() bool

IsRedirect returns true when this get agents agent host unauthorized response has a 3xx status code

func (*GetAgentsAgentHostUnauthorized) IsServerError

func (o *GetAgentsAgentHostUnauthorized) IsServerError() bool

IsServerError returns true when this get agents agent host unauthorized response has a 5xx status code

func (*GetAgentsAgentHostUnauthorized) IsSuccess

func (o *GetAgentsAgentHostUnauthorized) IsSuccess() bool

IsSuccess returns true when this get agents agent host unauthorized response has a 2xx status code

func (*GetAgentsAgentHostUnauthorized) String

type GetAgentsAgentHostUnprocessableEntity

type GetAgentsAgentHostUnprocessableEntity struct {
	Payload *models.Error
}

GetAgentsAgentHostUnprocessableEntity describes a response with status code 422, with default header values.

Unprocessable Content

func NewGetAgentsAgentHostUnprocessableEntity

func NewGetAgentsAgentHostUnprocessableEntity() *GetAgentsAgentHostUnprocessableEntity

NewGetAgentsAgentHostUnprocessableEntity creates a GetAgentsAgentHostUnprocessableEntity with default headers values

func (*GetAgentsAgentHostUnprocessableEntity) Code

Code gets the status code for the get agents agent host unprocessable entity response

func (*GetAgentsAgentHostUnprocessableEntity) Error

func (*GetAgentsAgentHostUnprocessableEntity) GetPayload

func (*GetAgentsAgentHostUnprocessableEntity) IsClientError

func (o *GetAgentsAgentHostUnprocessableEntity) IsClientError() bool

IsClientError returns true when this get agents agent host unprocessable entity response has a 4xx status code

func (*GetAgentsAgentHostUnprocessableEntity) IsCode

IsCode returns true when this get agents agent host unprocessable entity response a status code equal to that given

func (*GetAgentsAgentHostUnprocessableEntity) IsRedirect

IsRedirect returns true when this get agents agent host unprocessable entity response has a 3xx status code

func (*GetAgentsAgentHostUnprocessableEntity) IsServerError

func (o *GetAgentsAgentHostUnprocessableEntity) IsServerError() bool

IsServerError returns true when this get agents agent host unprocessable entity response has a 5xx status code

func (*GetAgentsAgentHostUnprocessableEntity) IsSuccess

IsSuccess returns true when this get agents agent host unprocessable entity response has a 2xx status code

func (*GetAgentsAgentHostUnprocessableEntity) String

type GetAgentsBadRequest

type GetAgentsBadRequest struct {
	Payload *models.Error
}

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

Bad request

func NewGetAgentsBadRequest

func NewGetAgentsBadRequest() *GetAgentsBadRequest

NewGetAgentsBadRequest creates a GetAgentsBadRequest with default headers values

func (*GetAgentsBadRequest) Code

func (o *GetAgentsBadRequest) Code() int

Code gets the status code for the get agents bad request response

func (*GetAgentsBadRequest) Error

func (o *GetAgentsBadRequest) Error() string

func (*GetAgentsBadRequest) GetPayload

func (o *GetAgentsBadRequest) GetPayload() *models.Error

func (*GetAgentsBadRequest) IsClientError

func (o *GetAgentsBadRequest) IsClientError() bool

IsClientError returns true when this get agents bad request response has a 4xx status code

func (*GetAgentsBadRequest) IsCode

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

IsCode returns true when this get agents bad request response a status code equal to that given

func (*GetAgentsBadRequest) IsRedirect

func (o *GetAgentsBadRequest) IsRedirect() bool

IsRedirect returns true when this get agents bad request response has a 3xx status code

func (*GetAgentsBadRequest) IsServerError

func (o *GetAgentsBadRequest) IsServerError() bool

IsServerError returns true when this get agents bad request response has a 5xx status code

func (*GetAgentsBadRequest) IsSuccess

func (o *GetAgentsBadRequest) IsSuccess() bool

IsSuccess returns true when this get agents bad request response has a 2xx status code

func (*GetAgentsBadRequest) String

func (o *GetAgentsBadRequest) String() string

type GetAgentsForbidden

type GetAgentsForbidden struct {
}

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

Forbidden

func NewGetAgentsForbidden

func NewGetAgentsForbidden() *GetAgentsForbidden

NewGetAgentsForbidden creates a GetAgentsForbidden with default headers values

func (*GetAgentsForbidden) Code

func (o *GetAgentsForbidden) Code() int

Code gets the status code for the get agents forbidden response

func (*GetAgentsForbidden) Error

func (o *GetAgentsForbidden) Error() string

func (*GetAgentsForbidden) IsClientError

func (o *GetAgentsForbidden) IsClientError() bool

IsClientError returns true when this get agents forbidden response has a 4xx status code

func (*GetAgentsForbidden) IsCode

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

IsCode returns true when this get agents forbidden response a status code equal to that given

func (*GetAgentsForbidden) IsRedirect

func (o *GetAgentsForbidden) IsRedirect() bool

IsRedirect returns true when this get agents forbidden response has a 3xx status code

func (*GetAgentsForbidden) IsServerError

func (o *GetAgentsForbidden) IsServerError() bool

IsServerError returns true when this get agents forbidden response has a 5xx status code

func (*GetAgentsForbidden) IsSuccess

func (o *GetAgentsForbidden) IsSuccess() bool

IsSuccess returns true when this get agents forbidden response has a 2xx status code

func (*GetAgentsForbidden) String

func (o *GetAgentsForbidden) String() string

type GetAgentsOK

type GetAgentsOK struct {
	Payload *GetAgentsOKBody
}

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

An array of agents.

func NewGetAgentsOK

func NewGetAgentsOK() *GetAgentsOK

NewGetAgentsOK creates a GetAgentsOK with default headers values

func (*GetAgentsOK) Code

func (o *GetAgentsOK) Code() int

Code gets the status code for the get agents o k response

func (*GetAgentsOK) Error

func (o *GetAgentsOK) Error() string

func (*GetAgentsOK) GetPayload

func (o *GetAgentsOK) GetPayload() *GetAgentsOKBody

func (*GetAgentsOK) IsClientError

func (o *GetAgentsOK) IsClientError() bool

IsClientError returns true when this get agents o k response has a 4xx status code

func (*GetAgentsOK) IsCode

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

IsCode returns true when this get agents o k response a status code equal to that given

func (*GetAgentsOK) IsRedirect

func (o *GetAgentsOK) IsRedirect() bool

IsRedirect returns true when this get agents o k response has a 3xx status code

func (*GetAgentsOK) IsServerError

func (o *GetAgentsOK) IsServerError() bool

IsServerError returns true when this get agents o k response has a 5xx status code

func (*GetAgentsOK) IsSuccess

func (o *GetAgentsOK) IsSuccess() bool

IsSuccess returns true when this get agents o k response has a 2xx status code

func (*GetAgentsOK) String

func (o *GetAgentsOK) String() string

type GetAgentsOKBody

type GetAgentsOKBody struct {

	// items
	Items []*models.Agent `json:"items"`

	// links
	Links []*models.Link `json:"links,omitempty"`
}

GetAgentsOKBody get agents o k body swagger:model GetAgentsOKBody

func (*GetAgentsOKBody) ContextValidate

func (o *GetAgentsOKBody) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this get agents o k body based on the context it is used

func (*GetAgentsOKBody) MarshalBinary

func (o *GetAgentsOKBody) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*GetAgentsOKBody) UnmarshalBinary

func (o *GetAgentsOKBody) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*GetAgentsOKBody) Validate

func (o *GetAgentsOKBody) Validate(formats strfmt.Registry) error

Validate validates this get agents o k body

type GetAgentsParams

type GetAgentsParams struct {
	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

GetAgentsParams contains all the parameters to send to the API endpoint

for the get agents operation.

Typically these are written to a http.Request.

func NewGetAgentsParams

func NewGetAgentsParams() *GetAgentsParams

NewGetAgentsParams creates a new GetAgentsParams 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 NewGetAgentsParamsWithContext

func NewGetAgentsParamsWithContext(ctx context.Context) *GetAgentsParams

NewGetAgentsParamsWithContext creates a new GetAgentsParams object with the ability to set a context for a request.

func NewGetAgentsParamsWithHTTPClient

func NewGetAgentsParamsWithHTTPClient(client *http.Client) *GetAgentsParams

NewGetAgentsParamsWithHTTPClient creates a new GetAgentsParams object with the ability to set a custom HTTPClient for a request.

func NewGetAgentsParamsWithTimeout

func NewGetAgentsParamsWithTimeout(timeout time.Duration) *GetAgentsParams

NewGetAgentsParamsWithTimeout creates a new GetAgentsParams object with the ability to set a timeout on a request.

func (*GetAgentsParams) SetContext

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

SetContext adds the context to the get agents params

func (*GetAgentsParams) SetDefaults

func (o *GetAgentsParams) SetDefaults()

SetDefaults hydrates default values in the get agents params (not the query body).

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

func (*GetAgentsParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get agents params

func (*GetAgentsParams) SetTimeout

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

SetTimeout adds the timeout to the get agents params

func (*GetAgentsParams) WithContext

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

WithContext adds the context to the get agents params

func (*GetAgentsParams) WithDefaults

func (o *GetAgentsParams) WithDefaults() *GetAgentsParams

WithDefaults hydrates default values in the get agents params (not the query body).

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

func (*GetAgentsParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the get agents params

func (*GetAgentsParams) WithTimeout

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

WithTimeout adds the timeout to the get agents params

func (*GetAgentsParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type GetAgentsReader

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

GetAgentsReader is a Reader for the GetAgents structure.

func (*GetAgentsReader) ReadResponse

func (o *GetAgentsReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (any, error)

ReadResponse reads a server response into the received o.

type GetAgentsUnauthorized

type GetAgentsUnauthorized struct {
	Payload *models.Error
}

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

Unauthorized

func NewGetAgentsUnauthorized

func NewGetAgentsUnauthorized() *GetAgentsUnauthorized

NewGetAgentsUnauthorized creates a GetAgentsUnauthorized with default headers values

func (*GetAgentsUnauthorized) Code

func (o *GetAgentsUnauthorized) Code() int

Code gets the status code for the get agents unauthorized response

func (*GetAgentsUnauthorized) Error

func (o *GetAgentsUnauthorized) Error() string

func (*GetAgentsUnauthorized) GetPayload

func (o *GetAgentsUnauthorized) GetPayload() *models.Error

func (*GetAgentsUnauthorized) IsClientError

func (o *GetAgentsUnauthorized) IsClientError() bool

IsClientError returns true when this get agents unauthorized response has a 4xx status code

func (*GetAgentsUnauthorized) IsCode

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

IsCode returns true when this get agents unauthorized response a status code equal to that given

func (*GetAgentsUnauthorized) IsRedirect

func (o *GetAgentsUnauthorized) IsRedirect() bool

IsRedirect returns true when this get agents unauthorized response has a 3xx status code

func (*GetAgentsUnauthorized) IsServerError

func (o *GetAgentsUnauthorized) IsServerError() bool

IsServerError returns true when this get agents unauthorized response has a 5xx status code

func (*GetAgentsUnauthorized) IsSuccess

func (o *GetAgentsUnauthorized) IsSuccess() bool

IsSuccess returns true when this get agents unauthorized response has a 2xx status code

func (*GetAgentsUnauthorized) String

func (o *GetAgentsUnauthorized) String() string

type GetAgentsUnprocessableEntity

type GetAgentsUnprocessableEntity struct {
	Payload *models.Error
}

GetAgentsUnprocessableEntity describes a response with status code 422, with default header values.

Unprocessable Content

func NewGetAgentsUnprocessableEntity

func NewGetAgentsUnprocessableEntity() *GetAgentsUnprocessableEntity

NewGetAgentsUnprocessableEntity creates a GetAgentsUnprocessableEntity with default headers values

func (*GetAgentsUnprocessableEntity) Code

Code gets the status code for the get agents unprocessable entity response

func (*GetAgentsUnprocessableEntity) Error

func (*GetAgentsUnprocessableEntity) GetPayload

func (o *GetAgentsUnprocessableEntity) GetPayload() *models.Error

func (*GetAgentsUnprocessableEntity) IsClientError

func (o *GetAgentsUnprocessableEntity) IsClientError() bool

IsClientError returns true when this get agents unprocessable entity response has a 4xx status code

func (*GetAgentsUnprocessableEntity) IsCode

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

IsCode returns true when this get agents unprocessable entity response a status code equal to that given

func (*GetAgentsUnprocessableEntity) IsRedirect

func (o *GetAgentsUnprocessableEntity) IsRedirect() bool

IsRedirect returns true when this get agents unprocessable entity response has a 3xx status code

func (*GetAgentsUnprocessableEntity) IsServerError

func (o *GetAgentsUnprocessableEntity) IsServerError() bool

IsServerError returns true when this get agents unprocessable entity response has a 5xx status code

func (*GetAgentsUnprocessableEntity) IsSuccess

func (o *GetAgentsUnprocessableEntity) IsSuccess() bool

IsSuccess returns true when this get agents unprocessable entity response has a 2xx status code

func (*GetAgentsUnprocessableEntity) String

Jump to

Keyboard shortcuts

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