gateways

package
v0.0.0-...-7b99a6d Latest Latest
Warning

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

Go to latest
Published: Jan 29, 2024 License: Apache-2.0 Imports: 10 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 gateways API

func (*Client) GetGatewayConfiguration

func (a *Client) GetGatewayConfiguration(params *GetGatewayConfigurationParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetGatewayConfigurationOK, error)

GetGatewayConfiguration gets configuration for a gateway

This endpoint is used by api authorizers to fetch rules, policies and services to protect.

func (*Client) PushGatewayRequests

func (a *Client) PushGatewayRequests(params *PushGatewayRequestsParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*PushGatewayRequestsOK, error)

PushGatewayRequests pushes gateway request

Push gateway request.

func (*Client) SetGatewayConfiguration

func (a *Client) SetGatewayConfiguration(params *SetGatewayConfigurationParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*SetGatewayConfigurationOK, error)

SetGatewayConfiguration sets configuration for a gateway

This endpoint is used to push apis protected by api gateway to acp.

func (*Client) SetTransport

func (a *Client) SetTransport(transport runtime.ClientTransport)

SetTransport changes the transport on the client

type ClientOption

type ClientOption func(*runtime.ClientOperation)

ClientOption is the option for Client methods

type ClientService

type ClientService interface {
	GetGatewayConfiguration(params *GetGatewayConfigurationParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetGatewayConfigurationOK, error)

	PushGatewayRequests(params *PushGatewayRequestsParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*PushGatewayRequestsOK, error)

	SetGatewayConfiguration(params *SetGatewayConfigurationParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*SetGatewayConfigurationOK, 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 gateways API client.

type GetGatewayConfigurationForbidden

type GetGatewayConfigurationForbidden struct {
	Payload *models.Error
}

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

Forbidden

func NewGetGatewayConfigurationForbidden

func NewGetGatewayConfigurationForbidden() *GetGatewayConfigurationForbidden

NewGetGatewayConfigurationForbidden creates a GetGatewayConfigurationForbidden with default headers values

func (*GetGatewayConfigurationForbidden) Code

Code gets the status code for the get gateway configuration forbidden response

func (*GetGatewayConfigurationForbidden) Error

func (*GetGatewayConfigurationForbidden) GetPayload

func (*GetGatewayConfigurationForbidden) IsClientError

func (o *GetGatewayConfigurationForbidden) IsClientError() bool

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

func (*GetGatewayConfigurationForbidden) IsCode

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

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

func (*GetGatewayConfigurationForbidden) IsRedirect

func (o *GetGatewayConfigurationForbidden) IsRedirect() bool

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

func (*GetGatewayConfigurationForbidden) IsServerError

func (o *GetGatewayConfigurationForbidden) IsServerError() bool

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

func (*GetGatewayConfigurationForbidden) IsSuccess

func (o *GetGatewayConfigurationForbidden) IsSuccess() bool

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

func (*GetGatewayConfigurationForbidden) String

type GetGatewayConfigurationNotFound

type GetGatewayConfigurationNotFound struct {
	Payload *models.Error
}

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

Not found

func NewGetGatewayConfigurationNotFound

func NewGetGatewayConfigurationNotFound() *GetGatewayConfigurationNotFound

NewGetGatewayConfigurationNotFound creates a GetGatewayConfigurationNotFound with default headers values

func (*GetGatewayConfigurationNotFound) Code

Code gets the status code for the get gateway configuration not found response

func (*GetGatewayConfigurationNotFound) Error

func (*GetGatewayConfigurationNotFound) GetPayload

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

func (*GetGatewayConfigurationNotFound) IsClientError

func (o *GetGatewayConfigurationNotFound) IsClientError() bool

IsClientError returns true when this get gateway configuration not found response has a 4xx status code

func (*GetGatewayConfigurationNotFound) IsCode

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

IsCode returns true when this get gateway configuration not found response a status code equal to that given

func (*GetGatewayConfigurationNotFound) IsRedirect

func (o *GetGatewayConfigurationNotFound) IsRedirect() bool

IsRedirect returns true when this get gateway configuration not found response has a 3xx status code

func (*GetGatewayConfigurationNotFound) IsServerError

func (o *GetGatewayConfigurationNotFound) IsServerError() bool

IsServerError returns true when this get gateway configuration not found response has a 5xx status code

func (*GetGatewayConfigurationNotFound) IsSuccess

func (o *GetGatewayConfigurationNotFound) IsSuccess() bool

IsSuccess returns true when this get gateway configuration not found response has a 2xx status code

func (*GetGatewayConfigurationNotFound) String

type GetGatewayConfigurationOK

type GetGatewayConfigurationOK struct {
	Payload *models.GatewayConfiguration
}

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

Gateway configuration

func NewGetGatewayConfigurationOK

func NewGetGatewayConfigurationOK() *GetGatewayConfigurationOK

NewGetGatewayConfigurationOK creates a GetGatewayConfigurationOK with default headers values

func (*GetGatewayConfigurationOK) Code

func (o *GetGatewayConfigurationOK) Code() int

Code gets the status code for the get gateway configuration o k response

func (*GetGatewayConfigurationOK) Error

func (o *GetGatewayConfigurationOK) Error() string

func (*GetGatewayConfigurationOK) GetPayload

func (*GetGatewayConfigurationOK) IsClientError

func (o *GetGatewayConfigurationOK) IsClientError() bool

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

func (*GetGatewayConfigurationOK) IsCode

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

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

func (*GetGatewayConfigurationOK) IsRedirect

func (o *GetGatewayConfigurationOK) IsRedirect() bool

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

func (*GetGatewayConfigurationOK) IsServerError

func (o *GetGatewayConfigurationOK) IsServerError() bool

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

func (*GetGatewayConfigurationOK) IsSuccess

func (o *GetGatewayConfigurationOK) IsSuccess() bool

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

func (*GetGatewayConfigurationOK) String

func (o *GetGatewayConfigurationOK) String() string

type GetGatewayConfigurationParams

type GetGatewayConfigurationParams struct {

	/* AuthorizerVersion.

	   Authorizer version

	   Default: "latest"
	*/
	AuthorizerVersion *string

	/* ServerID.

	   Server id
	*/
	ServerID *string

	/* TenantID.

	   Tenant id
	*/
	TenantID *string

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

GetGatewayConfigurationParams contains all the parameters to send to the API endpoint

for the get gateway configuration operation.

Typically these are written to a http.Request.

func NewGetGatewayConfigurationParams

func NewGetGatewayConfigurationParams() *GetGatewayConfigurationParams

NewGetGatewayConfigurationParams creates a new GetGatewayConfigurationParams 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 NewGetGatewayConfigurationParamsWithContext

func NewGetGatewayConfigurationParamsWithContext(ctx context.Context) *GetGatewayConfigurationParams

NewGetGatewayConfigurationParamsWithContext creates a new GetGatewayConfigurationParams object with the ability to set a context for a request.

func NewGetGatewayConfigurationParamsWithHTTPClient

func NewGetGatewayConfigurationParamsWithHTTPClient(client *http.Client) *GetGatewayConfigurationParams

NewGetGatewayConfigurationParamsWithHTTPClient creates a new GetGatewayConfigurationParams object with the ability to set a custom HTTPClient for a request.

func NewGetGatewayConfigurationParamsWithTimeout

func NewGetGatewayConfigurationParamsWithTimeout(timeout time.Duration) *GetGatewayConfigurationParams

NewGetGatewayConfigurationParamsWithTimeout creates a new GetGatewayConfigurationParams object with the ability to set a timeout on a request.

func (*GetGatewayConfigurationParams) SetAuthorizerVersion

func (o *GetGatewayConfigurationParams) SetAuthorizerVersion(authorizerVersion *string)

SetAuthorizerVersion adds the authorizerVersion to the get gateway configuration params

func (*GetGatewayConfigurationParams) SetContext

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

SetContext adds the context to the get gateway configuration params

func (*GetGatewayConfigurationParams) SetDefaults

func (o *GetGatewayConfigurationParams) SetDefaults()

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

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

func (*GetGatewayConfigurationParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get gateway configuration params

func (*GetGatewayConfigurationParams) SetServerID

func (o *GetGatewayConfigurationParams) SetServerID(serverID *string)

SetServerID adds the serverId to the get gateway configuration params

func (*GetGatewayConfigurationParams) SetTenantID

func (o *GetGatewayConfigurationParams) SetTenantID(tenantID *string)

SetTenantID adds the tenantId to the get gateway configuration params

func (*GetGatewayConfigurationParams) SetTimeout

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

SetTimeout adds the timeout to the get gateway configuration params

func (*GetGatewayConfigurationParams) WithAuthorizerVersion

func (o *GetGatewayConfigurationParams) WithAuthorizerVersion(authorizerVersion *string) *GetGatewayConfigurationParams

WithAuthorizerVersion adds the authorizerVersion to the get gateway configuration params

func (*GetGatewayConfigurationParams) WithContext

WithContext adds the context to the get gateway configuration params

func (*GetGatewayConfigurationParams) WithDefaults

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

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

func (*GetGatewayConfigurationParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the get gateway configuration params

func (*GetGatewayConfigurationParams) WithServerID

WithServerID adds the serverID to the get gateway configuration params

func (*GetGatewayConfigurationParams) WithTenantID

WithTenantID adds the tenantID to the get gateway configuration params

func (*GetGatewayConfigurationParams) WithTimeout

WithTimeout adds the timeout to the get gateway configuration params

func (*GetGatewayConfigurationParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type GetGatewayConfigurationReader

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

GetGatewayConfigurationReader is a Reader for the GetGatewayConfiguration structure.

func (*GetGatewayConfigurationReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type GetGatewayConfigurationTooManyRequests

type GetGatewayConfigurationTooManyRequests struct {
	Payload *models.Error
}

GetGatewayConfigurationTooManyRequests describes a response with status code 429, with default header values.

Too many requests

func NewGetGatewayConfigurationTooManyRequests

func NewGetGatewayConfigurationTooManyRequests() *GetGatewayConfigurationTooManyRequests

NewGetGatewayConfigurationTooManyRequests creates a GetGatewayConfigurationTooManyRequests with default headers values

func (*GetGatewayConfigurationTooManyRequests) Code

Code gets the status code for the get gateway configuration too many requests response

func (*GetGatewayConfigurationTooManyRequests) Error

func (*GetGatewayConfigurationTooManyRequests) GetPayload

func (*GetGatewayConfigurationTooManyRequests) IsClientError

func (o *GetGatewayConfigurationTooManyRequests) IsClientError() bool

IsClientError returns true when this get gateway configuration too many requests response has a 4xx status code

func (*GetGatewayConfigurationTooManyRequests) IsCode

IsCode returns true when this get gateway configuration too many requests response a status code equal to that given

func (*GetGatewayConfigurationTooManyRequests) IsRedirect

IsRedirect returns true when this get gateway configuration too many requests response has a 3xx status code

func (*GetGatewayConfigurationTooManyRequests) IsServerError

func (o *GetGatewayConfigurationTooManyRequests) IsServerError() bool

IsServerError returns true when this get gateway configuration too many requests response has a 5xx status code

func (*GetGatewayConfigurationTooManyRequests) IsSuccess

IsSuccess returns true when this get gateway configuration too many requests response has a 2xx status code

func (*GetGatewayConfigurationTooManyRequests) String

type GetGatewayConfigurationUnauthorized

type GetGatewayConfigurationUnauthorized struct {
	Payload *models.Error
}

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

Unauthorized

func NewGetGatewayConfigurationUnauthorized

func NewGetGatewayConfigurationUnauthorized() *GetGatewayConfigurationUnauthorized

NewGetGatewayConfigurationUnauthorized creates a GetGatewayConfigurationUnauthorized with default headers values

func (*GetGatewayConfigurationUnauthorized) Code

Code gets the status code for the get gateway configuration unauthorized response

func (*GetGatewayConfigurationUnauthorized) Error

func (*GetGatewayConfigurationUnauthorized) GetPayload

func (*GetGatewayConfigurationUnauthorized) IsClientError

func (o *GetGatewayConfigurationUnauthorized) IsClientError() bool

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

func (*GetGatewayConfigurationUnauthorized) IsCode

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

func (*GetGatewayConfigurationUnauthorized) IsRedirect

func (o *GetGatewayConfigurationUnauthorized) IsRedirect() bool

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

func (*GetGatewayConfigurationUnauthorized) IsServerError

func (o *GetGatewayConfigurationUnauthorized) IsServerError() bool

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

func (*GetGatewayConfigurationUnauthorized) IsSuccess

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

func (*GetGatewayConfigurationUnauthorized) String

type PushGatewayRequestsForbidden

type PushGatewayRequestsForbidden struct {
	Payload *models.Error
}

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

Forbidden

func NewPushGatewayRequestsForbidden

func NewPushGatewayRequestsForbidden() *PushGatewayRequestsForbidden

NewPushGatewayRequestsForbidden creates a PushGatewayRequestsForbidden with default headers values

func (*PushGatewayRequestsForbidden) Code

Code gets the status code for the push gateway requests forbidden response

func (*PushGatewayRequestsForbidden) Error

func (*PushGatewayRequestsForbidden) GetPayload

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

func (*PushGatewayRequestsForbidden) IsClientError

func (o *PushGatewayRequestsForbidden) IsClientError() bool

IsClientError returns true when this push gateway requests forbidden response has a 4xx status code

func (*PushGatewayRequestsForbidden) IsCode

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

IsCode returns true when this push gateway requests forbidden response a status code equal to that given

func (*PushGatewayRequestsForbidden) IsRedirect

func (o *PushGatewayRequestsForbidden) IsRedirect() bool

IsRedirect returns true when this push gateway requests forbidden response has a 3xx status code

func (*PushGatewayRequestsForbidden) IsServerError

func (o *PushGatewayRequestsForbidden) IsServerError() bool

IsServerError returns true when this push gateway requests forbidden response has a 5xx status code

func (*PushGatewayRequestsForbidden) IsSuccess

func (o *PushGatewayRequestsForbidden) IsSuccess() bool

IsSuccess returns true when this push gateway requests forbidden response has a 2xx status code

func (*PushGatewayRequestsForbidden) String

type PushGatewayRequestsNotFound

type PushGatewayRequestsNotFound struct {
	Payload *models.Error
}

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

Not found

func NewPushGatewayRequestsNotFound

func NewPushGatewayRequestsNotFound() *PushGatewayRequestsNotFound

NewPushGatewayRequestsNotFound creates a PushGatewayRequestsNotFound with default headers values

func (*PushGatewayRequestsNotFound) Code

func (o *PushGatewayRequestsNotFound) Code() int

Code gets the status code for the push gateway requests not found response

func (*PushGatewayRequestsNotFound) Error

func (*PushGatewayRequestsNotFound) GetPayload

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

func (*PushGatewayRequestsNotFound) IsClientError

func (o *PushGatewayRequestsNotFound) IsClientError() bool

IsClientError returns true when this push gateway requests not found response has a 4xx status code

func (*PushGatewayRequestsNotFound) IsCode

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

IsCode returns true when this push gateway requests not found response a status code equal to that given

func (*PushGatewayRequestsNotFound) IsRedirect

func (o *PushGatewayRequestsNotFound) IsRedirect() bool

IsRedirect returns true when this push gateway requests not found response has a 3xx status code

func (*PushGatewayRequestsNotFound) IsServerError

func (o *PushGatewayRequestsNotFound) IsServerError() bool

IsServerError returns true when this push gateway requests not found response has a 5xx status code

func (*PushGatewayRequestsNotFound) IsSuccess

func (o *PushGatewayRequestsNotFound) IsSuccess() bool

IsSuccess returns true when this push gateway requests not found response has a 2xx status code

func (*PushGatewayRequestsNotFound) String

func (o *PushGatewayRequestsNotFound) String() string

type PushGatewayRequestsOK

type PushGatewayRequestsOK struct {
	Payload *models.GatewayRequestsEventsResponse
}

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

Gateway requests events response

func NewPushGatewayRequestsOK

func NewPushGatewayRequestsOK() *PushGatewayRequestsOK

NewPushGatewayRequestsOK creates a PushGatewayRequestsOK with default headers values

func (*PushGatewayRequestsOK) Code

func (o *PushGatewayRequestsOK) Code() int

Code gets the status code for the push gateway requests o k response

func (*PushGatewayRequestsOK) Error

func (o *PushGatewayRequestsOK) Error() string

func (*PushGatewayRequestsOK) GetPayload

func (*PushGatewayRequestsOK) IsClientError

func (o *PushGatewayRequestsOK) IsClientError() bool

IsClientError returns true when this push gateway requests o k response has a 4xx status code

func (*PushGatewayRequestsOK) IsCode

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

IsCode returns true when this push gateway requests o k response a status code equal to that given

func (*PushGatewayRequestsOK) IsRedirect

func (o *PushGatewayRequestsOK) IsRedirect() bool

IsRedirect returns true when this push gateway requests o k response has a 3xx status code

func (*PushGatewayRequestsOK) IsServerError

func (o *PushGatewayRequestsOK) IsServerError() bool

IsServerError returns true when this push gateway requests o k response has a 5xx status code

func (*PushGatewayRequestsOK) IsSuccess

func (o *PushGatewayRequestsOK) IsSuccess() bool

IsSuccess returns true when this push gateway requests o k response has a 2xx status code

func (*PushGatewayRequestsOK) String

func (o *PushGatewayRequestsOK) String() string

type PushGatewayRequestsParams

type PushGatewayRequestsParams struct {

	// GatewayRequestEvents.
	GatewayRequestEvents *models.GatewayRequestEvents

	/* AuthorizerVersion.

	   Authorizer version

	   Default: "latest"
	*/
	AuthorizerVersion *string

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

PushGatewayRequestsParams contains all the parameters to send to the API endpoint

for the push gateway requests operation.

Typically these are written to a http.Request.

func NewPushGatewayRequestsParams

func NewPushGatewayRequestsParams() *PushGatewayRequestsParams

NewPushGatewayRequestsParams creates a new PushGatewayRequestsParams 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 NewPushGatewayRequestsParamsWithContext

func NewPushGatewayRequestsParamsWithContext(ctx context.Context) *PushGatewayRequestsParams

NewPushGatewayRequestsParamsWithContext creates a new PushGatewayRequestsParams object with the ability to set a context for a request.

func NewPushGatewayRequestsParamsWithHTTPClient

func NewPushGatewayRequestsParamsWithHTTPClient(client *http.Client) *PushGatewayRequestsParams

NewPushGatewayRequestsParamsWithHTTPClient creates a new PushGatewayRequestsParams object with the ability to set a custom HTTPClient for a request.

func NewPushGatewayRequestsParamsWithTimeout

func NewPushGatewayRequestsParamsWithTimeout(timeout time.Duration) *PushGatewayRequestsParams

NewPushGatewayRequestsParamsWithTimeout creates a new PushGatewayRequestsParams object with the ability to set a timeout on a request.

func (*PushGatewayRequestsParams) SetAuthorizerVersion

func (o *PushGatewayRequestsParams) SetAuthorizerVersion(authorizerVersion *string)

SetAuthorizerVersion adds the authorizerVersion to the push gateway requests params

func (*PushGatewayRequestsParams) SetContext

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

SetContext adds the context to the push gateway requests params

func (*PushGatewayRequestsParams) SetDefaults

func (o *PushGatewayRequestsParams) SetDefaults()

SetDefaults hydrates default values in the push gateway requests params (not the query body).

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

func (*PushGatewayRequestsParams) SetGatewayRequestEvents

func (o *PushGatewayRequestsParams) SetGatewayRequestEvents(gatewayRequestEvents *models.GatewayRequestEvents)

SetGatewayRequestEvents adds the gatewayRequestEvents to the push gateway requests params

func (*PushGatewayRequestsParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the push gateway requests params

func (*PushGatewayRequestsParams) SetTimeout

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

SetTimeout adds the timeout to the push gateway requests params

func (*PushGatewayRequestsParams) WithAuthorizerVersion

func (o *PushGatewayRequestsParams) WithAuthorizerVersion(authorizerVersion *string) *PushGatewayRequestsParams

WithAuthorizerVersion adds the authorizerVersion to the push gateway requests params

func (*PushGatewayRequestsParams) WithContext

WithContext adds the context to the push gateway requests params

func (*PushGatewayRequestsParams) WithDefaults

WithDefaults hydrates default values in the push gateway requests params (not the query body).

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

func (*PushGatewayRequestsParams) WithGatewayRequestEvents

func (o *PushGatewayRequestsParams) WithGatewayRequestEvents(gatewayRequestEvents *models.GatewayRequestEvents) *PushGatewayRequestsParams

WithGatewayRequestEvents adds the gatewayRequestEvents to the push gateway requests params

func (*PushGatewayRequestsParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the push gateway requests params

func (*PushGatewayRequestsParams) WithTimeout

WithTimeout adds the timeout to the push gateway requests params

func (*PushGatewayRequestsParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type PushGatewayRequestsReader

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

PushGatewayRequestsReader is a Reader for the PushGatewayRequests structure.

func (*PushGatewayRequestsReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type PushGatewayRequestsTooManyRequests

type PushGatewayRequestsTooManyRequests struct {
	Payload *models.Error
}

PushGatewayRequestsTooManyRequests describes a response with status code 429, with default header values.

Too many requests

func NewPushGatewayRequestsTooManyRequests

func NewPushGatewayRequestsTooManyRequests() *PushGatewayRequestsTooManyRequests

NewPushGatewayRequestsTooManyRequests creates a PushGatewayRequestsTooManyRequests with default headers values

func (*PushGatewayRequestsTooManyRequests) Code

Code gets the status code for the push gateway requests too many requests response

func (*PushGatewayRequestsTooManyRequests) Error

func (*PushGatewayRequestsTooManyRequests) GetPayload

func (*PushGatewayRequestsTooManyRequests) IsClientError

func (o *PushGatewayRequestsTooManyRequests) IsClientError() bool

IsClientError returns true when this push gateway requests too many requests response has a 4xx status code

func (*PushGatewayRequestsTooManyRequests) IsCode

IsCode returns true when this push gateway requests too many requests response a status code equal to that given

func (*PushGatewayRequestsTooManyRequests) IsRedirect

func (o *PushGatewayRequestsTooManyRequests) IsRedirect() bool

IsRedirect returns true when this push gateway requests too many requests response has a 3xx status code

func (*PushGatewayRequestsTooManyRequests) IsServerError

func (o *PushGatewayRequestsTooManyRequests) IsServerError() bool

IsServerError returns true when this push gateway requests too many requests response has a 5xx status code

func (*PushGatewayRequestsTooManyRequests) IsSuccess

IsSuccess returns true when this push gateway requests too many requests response has a 2xx status code

func (*PushGatewayRequestsTooManyRequests) String

type PushGatewayRequestsUnauthorized

type PushGatewayRequestsUnauthorized struct {
	Payload *models.Error
}

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

Unauthorized

func NewPushGatewayRequestsUnauthorized

func NewPushGatewayRequestsUnauthorized() *PushGatewayRequestsUnauthorized

NewPushGatewayRequestsUnauthorized creates a PushGatewayRequestsUnauthorized with default headers values

func (*PushGatewayRequestsUnauthorized) Code

Code gets the status code for the push gateway requests unauthorized response

func (*PushGatewayRequestsUnauthorized) Error

func (*PushGatewayRequestsUnauthorized) GetPayload

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

func (*PushGatewayRequestsUnauthorized) IsClientError

func (o *PushGatewayRequestsUnauthorized) IsClientError() bool

IsClientError returns true when this push gateway requests unauthorized response has a 4xx status code

func (*PushGatewayRequestsUnauthorized) IsCode

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

IsCode returns true when this push gateway requests unauthorized response a status code equal to that given

func (*PushGatewayRequestsUnauthorized) IsRedirect

func (o *PushGatewayRequestsUnauthorized) IsRedirect() bool

IsRedirect returns true when this push gateway requests unauthorized response has a 3xx status code

func (*PushGatewayRequestsUnauthorized) IsServerError

func (o *PushGatewayRequestsUnauthorized) IsServerError() bool

IsServerError returns true when this push gateway requests unauthorized response has a 5xx status code

func (*PushGatewayRequestsUnauthorized) IsSuccess

func (o *PushGatewayRequestsUnauthorized) IsSuccess() bool

IsSuccess returns true when this push gateway requests unauthorized response has a 2xx status code

func (*PushGatewayRequestsUnauthorized) String

type SetGatewayConfigurationConflict

type SetGatewayConfigurationConflict struct {
	Payload *models.Error
}

SetGatewayConfigurationConflict describes a response with status code 409, with default header values.

Conflict

func NewSetGatewayConfigurationConflict

func NewSetGatewayConfigurationConflict() *SetGatewayConfigurationConflict

NewSetGatewayConfigurationConflict creates a SetGatewayConfigurationConflict with default headers values

func (*SetGatewayConfigurationConflict) Code

Code gets the status code for the set gateway configuration conflict response

func (*SetGatewayConfigurationConflict) Error

func (*SetGatewayConfigurationConflict) GetPayload

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

func (*SetGatewayConfigurationConflict) IsClientError

func (o *SetGatewayConfigurationConflict) IsClientError() bool

IsClientError returns true when this set gateway configuration conflict response has a 4xx status code

func (*SetGatewayConfigurationConflict) IsCode

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

IsCode returns true when this set gateway configuration conflict response a status code equal to that given

func (*SetGatewayConfigurationConflict) IsRedirect

func (o *SetGatewayConfigurationConflict) IsRedirect() bool

IsRedirect returns true when this set gateway configuration conflict response has a 3xx status code

func (*SetGatewayConfigurationConflict) IsServerError

func (o *SetGatewayConfigurationConflict) IsServerError() bool

IsServerError returns true when this set gateway configuration conflict response has a 5xx status code

func (*SetGatewayConfigurationConflict) IsSuccess

func (o *SetGatewayConfigurationConflict) IsSuccess() bool

IsSuccess returns true when this set gateway configuration conflict response has a 2xx status code

func (*SetGatewayConfigurationConflict) String

type SetGatewayConfigurationForbidden

type SetGatewayConfigurationForbidden struct {
	Payload *models.Error
}

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

Forbidden

func NewSetGatewayConfigurationForbidden

func NewSetGatewayConfigurationForbidden() *SetGatewayConfigurationForbidden

NewSetGatewayConfigurationForbidden creates a SetGatewayConfigurationForbidden with default headers values

func (*SetGatewayConfigurationForbidden) Code

Code gets the status code for the set gateway configuration forbidden response

func (*SetGatewayConfigurationForbidden) Error

func (*SetGatewayConfigurationForbidden) GetPayload

func (*SetGatewayConfigurationForbidden) IsClientError

func (o *SetGatewayConfigurationForbidden) IsClientError() bool

IsClientError returns true when this set gateway configuration forbidden response has a 4xx status code

func (*SetGatewayConfigurationForbidden) IsCode

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

IsCode returns true when this set gateway configuration forbidden response a status code equal to that given

func (*SetGatewayConfigurationForbidden) IsRedirect

func (o *SetGatewayConfigurationForbidden) IsRedirect() bool

IsRedirect returns true when this set gateway configuration forbidden response has a 3xx status code

func (*SetGatewayConfigurationForbidden) IsServerError

func (o *SetGatewayConfigurationForbidden) IsServerError() bool

IsServerError returns true when this set gateway configuration forbidden response has a 5xx status code

func (*SetGatewayConfigurationForbidden) IsSuccess

func (o *SetGatewayConfigurationForbidden) IsSuccess() bool

IsSuccess returns true when this set gateway configuration forbidden response has a 2xx status code

func (*SetGatewayConfigurationForbidden) String

type SetGatewayConfigurationNotFound

type SetGatewayConfigurationNotFound struct {
	Payload *models.Error
}

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

Not found

func NewSetGatewayConfigurationNotFound

func NewSetGatewayConfigurationNotFound() *SetGatewayConfigurationNotFound

NewSetGatewayConfigurationNotFound creates a SetGatewayConfigurationNotFound with default headers values

func (*SetGatewayConfigurationNotFound) Code

Code gets the status code for the set gateway configuration not found response

func (*SetGatewayConfigurationNotFound) Error

func (*SetGatewayConfigurationNotFound) GetPayload

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

func (*SetGatewayConfigurationNotFound) IsClientError

func (o *SetGatewayConfigurationNotFound) IsClientError() bool

IsClientError returns true when this set gateway configuration not found response has a 4xx status code

func (*SetGatewayConfigurationNotFound) IsCode

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

IsCode returns true when this set gateway configuration not found response a status code equal to that given

func (*SetGatewayConfigurationNotFound) IsRedirect

func (o *SetGatewayConfigurationNotFound) IsRedirect() bool

IsRedirect returns true when this set gateway configuration not found response has a 3xx status code

func (*SetGatewayConfigurationNotFound) IsServerError

func (o *SetGatewayConfigurationNotFound) IsServerError() bool

IsServerError returns true when this set gateway configuration not found response has a 5xx status code

func (*SetGatewayConfigurationNotFound) IsSuccess

func (o *SetGatewayConfigurationNotFound) IsSuccess() bool

IsSuccess returns true when this set gateway configuration not found response has a 2xx status code

func (*SetGatewayConfigurationNotFound) String

type SetGatewayConfigurationOK

type SetGatewayConfigurationOK struct {
	Payload *models.SetGatewayConfigurationResponse
}

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

Set gateway configuration response

func NewSetGatewayConfigurationOK

func NewSetGatewayConfigurationOK() *SetGatewayConfigurationOK

NewSetGatewayConfigurationOK creates a SetGatewayConfigurationOK with default headers values

func (*SetGatewayConfigurationOK) Code

func (o *SetGatewayConfigurationOK) Code() int

Code gets the status code for the set gateway configuration o k response

func (*SetGatewayConfigurationOK) Error

func (o *SetGatewayConfigurationOK) Error() string

func (*SetGatewayConfigurationOK) GetPayload

func (*SetGatewayConfigurationOK) IsClientError

func (o *SetGatewayConfigurationOK) IsClientError() bool

IsClientError returns true when this set gateway configuration o k response has a 4xx status code

func (*SetGatewayConfigurationOK) IsCode

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

IsCode returns true when this set gateway configuration o k response a status code equal to that given

func (*SetGatewayConfigurationOK) IsRedirect

func (o *SetGatewayConfigurationOK) IsRedirect() bool

IsRedirect returns true when this set gateway configuration o k response has a 3xx status code

func (*SetGatewayConfigurationOK) IsServerError

func (o *SetGatewayConfigurationOK) IsServerError() bool

IsServerError returns true when this set gateway configuration o k response has a 5xx status code

func (*SetGatewayConfigurationOK) IsSuccess

func (o *SetGatewayConfigurationOK) IsSuccess() bool

IsSuccess returns true when this set gateway configuration o k response has a 2xx status code

func (*SetGatewayConfigurationOK) String

func (o *SetGatewayConfigurationOK) String() string

type SetGatewayConfigurationParams

type SetGatewayConfigurationParams struct {

	// SetGatewayConfigurationRequest.
	SetGatewayConfigurationRequest *models.SetGatewayConfigurationRequest

	/* AuthorizerVersion.

	   Authorizer version

	   Default: "latest"
	*/
	AuthorizerVersion *string

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

SetGatewayConfigurationParams contains all the parameters to send to the API endpoint

for the set gateway configuration operation.

Typically these are written to a http.Request.

func NewSetGatewayConfigurationParams

func NewSetGatewayConfigurationParams() *SetGatewayConfigurationParams

NewSetGatewayConfigurationParams creates a new SetGatewayConfigurationParams 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 NewSetGatewayConfigurationParamsWithContext

func NewSetGatewayConfigurationParamsWithContext(ctx context.Context) *SetGatewayConfigurationParams

NewSetGatewayConfigurationParamsWithContext creates a new SetGatewayConfigurationParams object with the ability to set a context for a request.

func NewSetGatewayConfigurationParamsWithHTTPClient

func NewSetGatewayConfigurationParamsWithHTTPClient(client *http.Client) *SetGatewayConfigurationParams

NewSetGatewayConfigurationParamsWithHTTPClient creates a new SetGatewayConfigurationParams object with the ability to set a custom HTTPClient for a request.

func NewSetGatewayConfigurationParamsWithTimeout

func NewSetGatewayConfigurationParamsWithTimeout(timeout time.Duration) *SetGatewayConfigurationParams

NewSetGatewayConfigurationParamsWithTimeout creates a new SetGatewayConfigurationParams object with the ability to set a timeout on a request.

func (*SetGatewayConfigurationParams) SetAuthorizerVersion

func (o *SetGatewayConfigurationParams) SetAuthorizerVersion(authorizerVersion *string)

SetAuthorizerVersion adds the authorizerVersion to the set gateway configuration params

func (*SetGatewayConfigurationParams) SetContext

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

SetContext adds the context to the set gateway configuration params

func (*SetGatewayConfigurationParams) SetDefaults

func (o *SetGatewayConfigurationParams) SetDefaults()

SetDefaults hydrates default values in the set gateway configuration params (not the query body).

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

func (*SetGatewayConfigurationParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the set gateway configuration params

func (*SetGatewayConfigurationParams) SetSetGatewayConfigurationRequest

func (o *SetGatewayConfigurationParams) SetSetGatewayConfigurationRequest(setGatewayConfigurationRequest *models.SetGatewayConfigurationRequest)

SetSetGatewayConfigurationRequest adds the setGatewayConfigurationRequest to the set gateway configuration params

func (*SetGatewayConfigurationParams) SetTimeout

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

SetTimeout adds the timeout to the set gateway configuration params

func (*SetGatewayConfigurationParams) WithAuthorizerVersion

func (o *SetGatewayConfigurationParams) WithAuthorizerVersion(authorizerVersion *string) *SetGatewayConfigurationParams

WithAuthorizerVersion adds the authorizerVersion to the set gateway configuration params

func (*SetGatewayConfigurationParams) WithContext

WithContext adds the context to the set gateway configuration params

func (*SetGatewayConfigurationParams) WithDefaults

WithDefaults hydrates default values in the set gateway configuration params (not the query body).

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

func (*SetGatewayConfigurationParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the set gateway configuration params

func (*SetGatewayConfigurationParams) WithSetGatewayConfigurationRequest

func (o *SetGatewayConfigurationParams) WithSetGatewayConfigurationRequest(setGatewayConfigurationRequest *models.SetGatewayConfigurationRequest) *SetGatewayConfigurationParams

WithSetGatewayConfigurationRequest adds the setGatewayConfigurationRequest to the set gateway configuration params

func (*SetGatewayConfigurationParams) WithTimeout

WithTimeout adds the timeout to the set gateway configuration params

func (*SetGatewayConfigurationParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type SetGatewayConfigurationReader

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

SetGatewayConfigurationReader is a Reader for the SetGatewayConfiguration structure.

func (*SetGatewayConfigurationReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type SetGatewayConfigurationTooManyRequests

type SetGatewayConfigurationTooManyRequests struct {
	Payload *models.Error
}

SetGatewayConfigurationTooManyRequests describes a response with status code 429, with default header values.

Too many requests

func NewSetGatewayConfigurationTooManyRequests

func NewSetGatewayConfigurationTooManyRequests() *SetGatewayConfigurationTooManyRequests

NewSetGatewayConfigurationTooManyRequests creates a SetGatewayConfigurationTooManyRequests with default headers values

func (*SetGatewayConfigurationTooManyRequests) Code

Code gets the status code for the set gateway configuration too many requests response

func (*SetGatewayConfigurationTooManyRequests) Error

func (*SetGatewayConfigurationTooManyRequests) GetPayload

func (*SetGatewayConfigurationTooManyRequests) IsClientError

func (o *SetGatewayConfigurationTooManyRequests) IsClientError() bool

IsClientError returns true when this set gateway configuration too many requests response has a 4xx status code

func (*SetGatewayConfigurationTooManyRequests) IsCode

IsCode returns true when this set gateway configuration too many requests response a status code equal to that given

func (*SetGatewayConfigurationTooManyRequests) IsRedirect

IsRedirect returns true when this set gateway configuration too many requests response has a 3xx status code

func (*SetGatewayConfigurationTooManyRequests) IsServerError

func (o *SetGatewayConfigurationTooManyRequests) IsServerError() bool

IsServerError returns true when this set gateway configuration too many requests response has a 5xx status code

func (*SetGatewayConfigurationTooManyRequests) IsSuccess

IsSuccess returns true when this set gateway configuration too many requests response has a 2xx status code

func (*SetGatewayConfigurationTooManyRequests) String

type SetGatewayConfigurationUnauthorized

type SetGatewayConfigurationUnauthorized struct {
	Payload *models.Error
}

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

Unauthorized

func NewSetGatewayConfigurationUnauthorized

func NewSetGatewayConfigurationUnauthorized() *SetGatewayConfigurationUnauthorized

NewSetGatewayConfigurationUnauthorized creates a SetGatewayConfigurationUnauthorized with default headers values

func (*SetGatewayConfigurationUnauthorized) Code

Code gets the status code for the set gateway configuration unauthorized response

func (*SetGatewayConfigurationUnauthorized) Error

func (*SetGatewayConfigurationUnauthorized) GetPayload

func (*SetGatewayConfigurationUnauthorized) IsClientError

func (o *SetGatewayConfigurationUnauthorized) IsClientError() bool

IsClientError returns true when this set gateway configuration unauthorized response has a 4xx status code

func (*SetGatewayConfigurationUnauthorized) IsCode

IsCode returns true when this set gateway configuration unauthorized response a status code equal to that given

func (*SetGatewayConfigurationUnauthorized) IsRedirect

func (o *SetGatewayConfigurationUnauthorized) IsRedirect() bool

IsRedirect returns true when this set gateway configuration unauthorized response has a 3xx status code

func (*SetGatewayConfigurationUnauthorized) IsServerError

func (o *SetGatewayConfigurationUnauthorized) IsServerError() bool

IsServerError returns true when this set gateway configuration unauthorized response has a 5xx status code

func (*SetGatewayConfigurationUnauthorized) IsSuccess

IsSuccess returns true when this set gateway configuration unauthorized response has a 2xx status code

func (*SetGatewayConfigurationUnauthorized) String

type SetGatewayConfigurationUnprocessableEntity

type SetGatewayConfigurationUnprocessableEntity struct {
	Payload *models.Error
}

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

Unprocessable entity

func NewSetGatewayConfigurationUnprocessableEntity

func NewSetGatewayConfigurationUnprocessableEntity() *SetGatewayConfigurationUnprocessableEntity

NewSetGatewayConfigurationUnprocessableEntity creates a SetGatewayConfigurationUnprocessableEntity with default headers values

func (*SetGatewayConfigurationUnprocessableEntity) Code

Code gets the status code for the set gateway configuration unprocessable entity response

func (*SetGatewayConfigurationUnprocessableEntity) Error

func (*SetGatewayConfigurationUnprocessableEntity) GetPayload

func (*SetGatewayConfigurationUnprocessableEntity) IsClientError

IsClientError returns true when this set gateway configuration unprocessable entity response has a 4xx status code

func (*SetGatewayConfigurationUnprocessableEntity) IsCode

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

func (*SetGatewayConfigurationUnprocessableEntity) IsRedirect

IsRedirect returns true when this set gateway configuration unprocessable entity response has a 3xx status code

func (*SetGatewayConfigurationUnprocessableEntity) IsServerError

IsServerError returns true when this set gateway configuration unprocessable entity response has a 5xx status code

func (*SetGatewayConfigurationUnprocessableEntity) IsSuccess

IsSuccess returns true when this set gateway configuration unprocessable entity response has a 2xx status code

func (*SetGatewayConfigurationUnprocessableEntity) String

Jump to

Keyboard shortcuts

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