agent

package
v0.0.0-...-16eaebb Latest Latest
Warning

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

Go to latest
Published: Jan 31, 2025 License: GPL-3.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 agent API

func (*Client) PutAPI5AgentBridge

func (a *Client) PutAPI5AgentBridge(params *PutAPI5AgentBridgeParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*PutApi5AgentBridgeOK, error)

PutAPI5AgentBridge registers a bridge

Register a bridge. This endpoint allows "menshen agent" processes running on bridges to register themselves.

func (*Client) PutAPI5AgentGateway

func (a *Client) PutAPI5AgentGateway(params *PutAPI5AgentGatewayParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*PutApi5AgentGatewayOK, error)

PutAPI5AgentGateway registers a gateway

Register a gateway. This endpoint allows "menshen agent" processes running on gateways to register themselves.

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 {
	PutAPI5AgentBridge(params *PutAPI5AgentBridgeParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*PutApi5AgentBridgeOK, error)

	PutAPI5AgentGateway(params *PutAPI5AgentGatewayParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*PutApi5AgentGatewayOK, 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 PutAPI5AgentBridgeParams

type PutAPI5AgentBridgeParams struct {

	/* Bridge.

	   bridge
	*/
	Bridge *models.ModelsBridge

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

PutAPI5AgentBridgeParams contains all the parameters to send to the API endpoint

for the put API 5 agent bridge operation.

Typically these are written to a http.Request.

func NewPutAPI5AgentBridgeParams

func NewPutAPI5AgentBridgeParams() *PutAPI5AgentBridgeParams

NewPutAPI5AgentBridgeParams creates a new PutAPI5AgentBridgeParams 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 NewPutAPI5AgentBridgeParamsWithContext

func NewPutAPI5AgentBridgeParamsWithContext(ctx context.Context) *PutAPI5AgentBridgeParams

NewPutAPI5AgentBridgeParamsWithContext creates a new PutAPI5AgentBridgeParams object with the ability to set a context for a request.

func NewPutAPI5AgentBridgeParamsWithHTTPClient

func NewPutAPI5AgentBridgeParamsWithHTTPClient(client *http.Client) *PutAPI5AgentBridgeParams

NewPutAPI5AgentBridgeParamsWithHTTPClient creates a new PutAPI5AgentBridgeParams object with the ability to set a custom HTTPClient for a request.

func NewPutAPI5AgentBridgeParamsWithTimeout

func NewPutAPI5AgentBridgeParamsWithTimeout(timeout time.Duration) *PutAPI5AgentBridgeParams

NewPutAPI5AgentBridgeParamsWithTimeout creates a new PutAPI5AgentBridgeParams object with the ability to set a timeout on a request.

func (*PutAPI5AgentBridgeParams) SetBridge

func (o *PutAPI5AgentBridgeParams) SetBridge(bridge *models.ModelsBridge)

SetBridge adds the bridge to the put API 5 agent bridge params

func (*PutAPI5AgentBridgeParams) SetContext

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

SetContext adds the context to the put API 5 agent bridge params

func (*PutAPI5AgentBridgeParams) SetDefaults

func (o *PutAPI5AgentBridgeParams) SetDefaults()

SetDefaults hydrates default values in the put API 5 agent bridge params (not the query body).

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

func (*PutAPI5AgentBridgeParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the put API 5 agent bridge params

func (*PutAPI5AgentBridgeParams) SetTimeout

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

SetTimeout adds the timeout to the put API 5 agent bridge params

func (*PutAPI5AgentBridgeParams) WithBridge

WithBridge adds the bridge to the put API 5 agent bridge params

func (*PutAPI5AgentBridgeParams) WithContext

WithContext adds the context to the put API 5 agent bridge params

func (*PutAPI5AgentBridgeParams) WithDefaults

WithDefaults hydrates default values in the put API 5 agent bridge params (not the query body).

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

func (*PutAPI5AgentBridgeParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the put API 5 agent bridge params

func (*PutAPI5AgentBridgeParams) WithTimeout

WithTimeout adds the timeout to the put API 5 agent bridge params

func (*PutAPI5AgentBridgeParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type PutAPI5AgentBridgeReader

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

PutAPI5AgentBridgeReader is a Reader for the PutAPI5AgentBridge structure.

func (*PutAPI5AgentBridgeReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type PutAPI5AgentGatewayParams

type PutAPI5AgentGatewayParams struct {

	/* Gateway.

	   gateway
	*/
	Gateway *models.ModelsGateway

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

PutAPI5AgentGatewayParams contains all the parameters to send to the API endpoint

for the put API 5 agent gateway operation.

Typically these are written to a http.Request.

func NewPutAPI5AgentGatewayParams

func NewPutAPI5AgentGatewayParams() *PutAPI5AgentGatewayParams

NewPutAPI5AgentGatewayParams creates a new PutAPI5AgentGatewayParams 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 NewPutAPI5AgentGatewayParamsWithContext

func NewPutAPI5AgentGatewayParamsWithContext(ctx context.Context) *PutAPI5AgentGatewayParams

NewPutAPI5AgentGatewayParamsWithContext creates a new PutAPI5AgentGatewayParams object with the ability to set a context for a request.

func NewPutAPI5AgentGatewayParamsWithHTTPClient

func NewPutAPI5AgentGatewayParamsWithHTTPClient(client *http.Client) *PutAPI5AgentGatewayParams

NewPutAPI5AgentGatewayParamsWithHTTPClient creates a new PutAPI5AgentGatewayParams object with the ability to set a custom HTTPClient for a request.

func NewPutAPI5AgentGatewayParamsWithTimeout

func NewPutAPI5AgentGatewayParamsWithTimeout(timeout time.Duration) *PutAPI5AgentGatewayParams

NewPutAPI5AgentGatewayParamsWithTimeout creates a new PutAPI5AgentGatewayParams object with the ability to set a timeout on a request.

func (*PutAPI5AgentGatewayParams) SetContext

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

SetContext adds the context to the put API 5 agent gateway params

func (*PutAPI5AgentGatewayParams) SetDefaults

func (o *PutAPI5AgentGatewayParams) SetDefaults()

SetDefaults hydrates default values in the put API 5 agent gateway params (not the query body).

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

func (*PutAPI5AgentGatewayParams) SetGateway

func (o *PutAPI5AgentGatewayParams) SetGateway(gateway *models.ModelsGateway)

SetGateway adds the gateway to the put API 5 agent gateway params

func (*PutAPI5AgentGatewayParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the put API 5 agent gateway params

func (*PutAPI5AgentGatewayParams) SetTimeout

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

SetTimeout adds the timeout to the put API 5 agent gateway params

func (*PutAPI5AgentGatewayParams) WithContext

WithContext adds the context to the put API 5 agent gateway params

func (*PutAPI5AgentGatewayParams) WithDefaults

WithDefaults hydrates default values in the put API 5 agent gateway params (not the query body).

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

func (*PutAPI5AgentGatewayParams) WithGateway

WithGateway adds the gateway to the put API 5 agent gateway params

func (*PutAPI5AgentGatewayParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the put API 5 agent gateway params

func (*PutAPI5AgentGatewayParams) WithTimeout

WithTimeout adds the timeout to the put API 5 agent gateway params

func (*PutAPI5AgentGatewayParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type PutAPI5AgentGatewayReader

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

PutAPI5AgentGatewayReader is a Reader for the PutAPI5AgentGateway structure.

func (*PutAPI5AgentGatewayReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type PutApi5AgentBridgeBadRequest

type PutApi5AgentBridgeBadRequest struct {
	Payload interface{}
}

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

Bad Request

func NewPutApi5AgentBridgeBadRequest

func NewPutApi5AgentBridgeBadRequest() *PutApi5AgentBridgeBadRequest

NewPutApi5AgentBridgeBadRequest creates a PutApi5AgentBridgeBadRequest with default headers values

func (*PutApi5AgentBridgeBadRequest) Code

Code gets the status code for the put api5 agent bridge bad request response

func (*PutApi5AgentBridgeBadRequest) Error

func (*PutApi5AgentBridgeBadRequest) GetPayload

func (o *PutApi5AgentBridgeBadRequest) GetPayload() interface{}

func (*PutApi5AgentBridgeBadRequest) IsClientError

func (o *PutApi5AgentBridgeBadRequest) IsClientError() bool

IsClientError returns true when this put api5 agent bridge bad request response has a 4xx status code

func (*PutApi5AgentBridgeBadRequest) IsCode

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

IsCode returns true when this put api5 agent bridge bad request response a status code equal to that given

func (*PutApi5AgentBridgeBadRequest) IsRedirect

func (o *PutApi5AgentBridgeBadRequest) IsRedirect() bool

IsRedirect returns true when this put api5 agent bridge bad request response has a 3xx status code

func (*PutApi5AgentBridgeBadRequest) IsServerError

func (o *PutApi5AgentBridgeBadRequest) IsServerError() bool

IsServerError returns true when this put api5 agent bridge bad request response has a 5xx status code

func (*PutApi5AgentBridgeBadRequest) IsSuccess

func (o *PutApi5AgentBridgeBadRequest) IsSuccess() bool

IsSuccess returns true when this put api5 agent bridge bad request response has a 2xx status code

func (*PutApi5AgentBridgeBadRequest) String

type PutApi5AgentBridgeInternalServerError

type PutApi5AgentBridgeInternalServerError struct {
	Payload interface{}
}

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

Internal Server Error

func NewPutApi5AgentBridgeInternalServerError

func NewPutApi5AgentBridgeInternalServerError() *PutApi5AgentBridgeInternalServerError

NewPutApi5AgentBridgeInternalServerError creates a PutApi5AgentBridgeInternalServerError with default headers values

func (*PutApi5AgentBridgeInternalServerError) Code

Code gets the status code for the put api5 agent bridge internal server error response

func (*PutApi5AgentBridgeInternalServerError) Error

func (*PutApi5AgentBridgeInternalServerError) GetPayload

func (o *PutApi5AgentBridgeInternalServerError) GetPayload() interface{}

func (*PutApi5AgentBridgeInternalServerError) IsClientError

func (o *PutApi5AgentBridgeInternalServerError) IsClientError() bool

IsClientError returns true when this put api5 agent bridge internal server error response has a 4xx status code

func (*PutApi5AgentBridgeInternalServerError) IsCode

IsCode returns true when this put api5 agent bridge internal server error response a status code equal to that given

func (*PutApi5AgentBridgeInternalServerError) IsRedirect

IsRedirect returns true when this put api5 agent bridge internal server error response has a 3xx status code

func (*PutApi5AgentBridgeInternalServerError) IsServerError

func (o *PutApi5AgentBridgeInternalServerError) IsServerError() bool

IsServerError returns true when this put api5 agent bridge internal server error response has a 5xx status code

func (*PutApi5AgentBridgeInternalServerError) IsSuccess

IsSuccess returns true when this put api5 agent bridge internal server error response has a 2xx status code

func (*PutApi5AgentBridgeInternalServerError) String

type PutApi5AgentBridgeNotFound

type PutApi5AgentBridgeNotFound struct {
	Payload interface{}
}

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

Not Found

func NewPutApi5AgentBridgeNotFound

func NewPutApi5AgentBridgeNotFound() *PutApi5AgentBridgeNotFound

NewPutApi5AgentBridgeNotFound creates a PutApi5AgentBridgeNotFound with default headers values

func (*PutApi5AgentBridgeNotFound) Code

func (o *PutApi5AgentBridgeNotFound) Code() int

Code gets the status code for the put api5 agent bridge not found response

func (*PutApi5AgentBridgeNotFound) Error

func (*PutApi5AgentBridgeNotFound) GetPayload

func (o *PutApi5AgentBridgeNotFound) GetPayload() interface{}

func (*PutApi5AgentBridgeNotFound) IsClientError

func (o *PutApi5AgentBridgeNotFound) IsClientError() bool

IsClientError returns true when this put api5 agent bridge not found response has a 4xx status code

func (*PutApi5AgentBridgeNotFound) IsCode

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

IsCode returns true when this put api5 agent bridge not found response a status code equal to that given

func (*PutApi5AgentBridgeNotFound) IsRedirect

func (o *PutApi5AgentBridgeNotFound) IsRedirect() bool

IsRedirect returns true when this put api5 agent bridge not found response has a 3xx status code

func (*PutApi5AgentBridgeNotFound) IsServerError

func (o *PutApi5AgentBridgeNotFound) IsServerError() bool

IsServerError returns true when this put api5 agent bridge not found response has a 5xx status code

func (*PutApi5AgentBridgeNotFound) IsSuccess

func (o *PutApi5AgentBridgeNotFound) IsSuccess() bool

IsSuccess returns true when this put api5 agent bridge not found response has a 2xx status code

func (*PutApi5AgentBridgeNotFound) String

func (o *PutApi5AgentBridgeNotFound) String() string

type PutApi5AgentBridgeOK

type PutApi5AgentBridgeOK struct {
	Payload *models.ModelsBridge
}

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

OK

func NewPutApi5AgentBridgeOK

func NewPutApi5AgentBridgeOK() *PutApi5AgentBridgeOK

NewPutApi5AgentBridgeOK creates a PutApi5AgentBridgeOK with default headers values

func (*PutApi5AgentBridgeOK) Code

func (o *PutApi5AgentBridgeOK) Code() int

Code gets the status code for the put api5 agent bridge o k response

func (*PutApi5AgentBridgeOK) Error

func (o *PutApi5AgentBridgeOK) Error() string

func (*PutApi5AgentBridgeOK) GetPayload

func (o *PutApi5AgentBridgeOK) GetPayload() *models.ModelsBridge

func (*PutApi5AgentBridgeOK) IsClientError

func (o *PutApi5AgentBridgeOK) IsClientError() bool

IsClientError returns true when this put api5 agent bridge o k response has a 4xx status code

func (*PutApi5AgentBridgeOK) IsCode

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

IsCode returns true when this put api5 agent bridge o k response a status code equal to that given

func (*PutApi5AgentBridgeOK) IsRedirect

func (o *PutApi5AgentBridgeOK) IsRedirect() bool

IsRedirect returns true when this put api5 agent bridge o k response has a 3xx status code

func (*PutApi5AgentBridgeOK) IsServerError

func (o *PutApi5AgentBridgeOK) IsServerError() bool

IsServerError returns true when this put api5 agent bridge o k response has a 5xx status code

func (*PutApi5AgentBridgeOK) IsSuccess

func (o *PutApi5AgentBridgeOK) IsSuccess() bool

IsSuccess returns true when this put api5 agent bridge o k response has a 2xx status code

func (*PutApi5AgentBridgeOK) String

func (o *PutApi5AgentBridgeOK) String() string

type PutApi5AgentGatewayBadRequest

type PutApi5AgentGatewayBadRequest struct {
	Payload interface{}
}

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

Bad Request

func NewPutApi5AgentGatewayBadRequest

func NewPutApi5AgentGatewayBadRequest() *PutApi5AgentGatewayBadRequest

NewPutApi5AgentGatewayBadRequest creates a PutApi5AgentGatewayBadRequest with default headers values

func (*PutApi5AgentGatewayBadRequest) Code

Code gets the status code for the put api5 agent gateway bad request response

func (*PutApi5AgentGatewayBadRequest) Error

func (*PutApi5AgentGatewayBadRequest) GetPayload

func (o *PutApi5AgentGatewayBadRequest) GetPayload() interface{}

func (*PutApi5AgentGatewayBadRequest) IsClientError

func (o *PutApi5AgentGatewayBadRequest) IsClientError() bool

IsClientError returns true when this put api5 agent gateway bad request response has a 4xx status code

func (*PutApi5AgentGatewayBadRequest) IsCode

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

IsCode returns true when this put api5 agent gateway bad request response a status code equal to that given

func (*PutApi5AgentGatewayBadRequest) IsRedirect

func (o *PutApi5AgentGatewayBadRequest) IsRedirect() bool

IsRedirect returns true when this put api5 agent gateway bad request response has a 3xx status code

func (*PutApi5AgentGatewayBadRequest) IsServerError

func (o *PutApi5AgentGatewayBadRequest) IsServerError() bool

IsServerError returns true when this put api5 agent gateway bad request response has a 5xx status code

func (*PutApi5AgentGatewayBadRequest) IsSuccess

func (o *PutApi5AgentGatewayBadRequest) IsSuccess() bool

IsSuccess returns true when this put api5 agent gateway bad request response has a 2xx status code

func (*PutApi5AgentGatewayBadRequest) String

type PutApi5AgentGatewayInternalServerError

type PutApi5AgentGatewayInternalServerError struct {
	Payload interface{}
}

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

Internal Server Error

func NewPutApi5AgentGatewayInternalServerError

func NewPutApi5AgentGatewayInternalServerError() *PutApi5AgentGatewayInternalServerError

NewPutApi5AgentGatewayInternalServerError creates a PutApi5AgentGatewayInternalServerError with default headers values

func (*PutApi5AgentGatewayInternalServerError) Code

Code gets the status code for the put api5 agent gateway internal server error response

func (*PutApi5AgentGatewayInternalServerError) Error

func (*PutApi5AgentGatewayInternalServerError) GetPayload

func (o *PutApi5AgentGatewayInternalServerError) GetPayload() interface{}

func (*PutApi5AgentGatewayInternalServerError) IsClientError

func (o *PutApi5AgentGatewayInternalServerError) IsClientError() bool

IsClientError returns true when this put api5 agent gateway internal server error response has a 4xx status code

func (*PutApi5AgentGatewayInternalServerError) IsCode

IsCode returns true when this put api5 agent gateway internal server error response a status code equal to that given

func (*PutApi5AgentGatewayInternalServerError) IsRedirect

IsRedirect returns true when this put api5 agent gateway internal server error response has a 3xx status code

func (*PutApi5AgentGatewayInternalServerError) IsServerError

func (o *PutApi5AgentGatewayInternalServerError) IsServerError() bool

IsServerError returns true when this put api5 agent gateway internal server error response has a 5xx status code

func (*PutApi5AgentGatewayInternalServerError) IsSuccess

IsSuccess returns true when this put api5 agent gateway internal server error response has a 2xx status code

func (*PutApi5AgentGatewayInternalServerError) String

type PutApi5AgentGatewayNotFound

type PutApi5AgentGatewayNotFound struct {
	Payload interface{}
}

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

Not Found

func NewPutApi5AgentGatewayNotFound

func NewPutApi5AgentGatewayNotFound() *PutApi5AgentGatewayNotFound

NewPutApi5AgentGatewayNotFound creates a PutApi5AgentGatewayNotFound with default headers values

func (*PutApi5AgentGatewayNotFound) Code

func (o *PutApi5AgentGatewayNotFound) Code() int

Code gets the status code for the put api5 agent gateway not found response

func (*PutApi5AgentGatewayNotFound) Error

func (*PutApi5AgentGatewayNotFound) GetPayload

func (o *PutApi5AgentGatewayNotFound) GetPayload() interface{}

func (*PutApi5AgentGatewayNotFound) IsClientError

func (o *PutApi5AgentGatewayNotFound) IsClientError() bool

IsClientError returns true when this put api5 agent gateway not found response has a 4xx status code

func (*PutApi5AgentGatewayNotFound) IsCode

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

IsCode returns true when this put api5 agent gateway not found response a status code equal to that given

func (*PutApi5AgentGatewayNotFound) IsRedirect

func (o *PutApi5AgentGatewayNotFound) IsRedirect() bool

IsRedirect returns true when this put api5 agent gateway not found response has a 3xx status code

func (*PutApi5AgentGatewayNotFound) IsServerError

func (o *PutApi5AgentGatewayNotFound) IsServerError() bool

IsServerError returns true when this put api5 agent gateway not found response has a 5xx status code

func (*PutApi5AgentGatewayNotFound) IsSuccess

func (o *PutApi5AgentGatewayNotFound) IsSuccess() bool

IsSuccess returns true when this put api5 agent gateway not found response has a 2xx status code

func (*PutApi5AgentGatewayNotFound) String

func (o *PutApi5AgentGatewayNotFound) String() string

type PutApi5AgentGatewayOK

type PutApi5AgentGatewayOK struct {
	Payload *models.ModelsGateway
}

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

OK

func NewPutApi5AgentGatewayOK

func NewPutApi5AgentGatewayOK() *PutApi5AgentGatewayOK

NewPutApi5AgentGatewayOK creates a PutApi5AgentGatewayOK with default headers values

func (*PutApi5AgentGatewayOK) Code

func (o *PutApi5AgentGatewayOK) Code() int

Code gets the status code for the put api5 agent gateway o k response

func (*PutApi5AgentGatewayOK) Error

func (o *PutApi5AgentGatewayOK) Error() string

func (*PutApi5AgentGatewayOK) GetPayload

func (o *PutApi5AgentGatewayOK) GetPayload() *models.ModelsGateway

func (*PutApi5AgentGatewayOK) IsClientError

func (o *PutApi5AgentGatewayOK) IsClientError() bool

IsClientError returns true when this put api5 agent gateway o k response has a 4xx status code

func (*PutApi5AgentGatewayOK) IsCode

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

IsCode returns true when this put api5 agent gateway o k response a status code equal to that given

func (*PutApi5AgentGatewayOK) IsRedirect

func (o *PutApi5AgentGatewayOK) IsRedirect() bool

IsRedirect returns true when this put api5 agent gateway o k response has a 3xx status code

func (*PutApi5AgentGatewayOK) IsServerError

func (o *PutApi5AgentGatewayOK) IsServerError() bool

IsServerError returns true when this put api5 agent gateway o k response has a 5xx status code

func (*PutApi5AgentGatewayOK) IsSuccess

func (o *PutApi5AgentGatewayOK) IsSuccess() bool

IsSuccess returns true when this put api5 agent gateway o k response has a 2xx status code

func (*PutApi5AgentGatewayOK) String

func (o *PutApi5AgentGatewayOK) String() string

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
JackTT - Gopher 🇻🇳