operations

package
v1.9.10 Latest Latest
Warning

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

Go to latest
Published: Sep 3, 2024 License: MPL-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func WithAcceptApplicationJSON

func WithAcceptApplicationJSON(r *runtime.ClientOperation)

WithAcceptApplicationJSON sets the Accept header to "application/json".

func WithAcceptApplicationXML

func WithAcceptApplicationXML(r *runtime.ClientOperation)

WithAcceptApplicationXML sets the Accept header to "application/xml".

func WithContentTypeApplicationJSON

func WithContentTypeApplicationJSON(r *runtime.ClientOperation)

WithContentTypeApplicationJSON sets the Content-Type header to "application/json".

func WithContentTypeApplicationXML

func WithContentTypeApplicationXML(r *runtime.ClientOperation)

WithContentTypeApplicationXML sets the Content-Type header to "application/xml".

Types

type Client

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

Client for operations API

func (*Client) CreateConfig

func (a *Client) CreateConfig(params *CreateConfigParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*CreateConfigCreated, error)

CreateConfig creates v p n config

func (*Client) DeleteConfig

func (a *Client) DeleteConfig(params *DeleteConfigParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DeleteConfigNoContent, error)

DeleteConfig deletes v p n config

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.

func WithAccept

func WithAccept(mime string) ClientOption

WithAccept allows the client to force the Accept header to negotiate a specific Producer from the server.

You may use this option to set arbitrary extensions to your MIME media type.

func WithContentType

func WithContentType(mime string) ClientOption

WithContentType allows the client to force the Content-Type header to negotiate a specific Consumer from the server.

You may use this option to set arbitrary extensions to your MIME media type.

type ClientService

type ClientService interface {
	CreateConfig(params *CreateConfigParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*CreateConfigCreated, error)

	DeleteConfig(params *DeleteConfigParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DeleteConfigNoContent, 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 operations API client.

func NewClientWithBasicAuth

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

New creates a new operations 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 operations 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 CreateConfigBadRequest

type CreateConfigBadRequest struct {
	Payload *models.Error
}

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

Bad Request

func NewCreateConfigBadRequest

func NewCreateConfigBadRequest() *CreateConfigBadRequest

NewCreateConfigBadRequest creates a CreateConfigBadRequest with default headers values

func (*CreateConfigBadRequest) Code

func (o *CreateConfigBadRequest) Code() int

Code gets the status code for the create config bad request response

func (*CreateConfigBadRequest) Error

func (o *CreateConfigBadRequest) Error() string

func (*CreateConfigBadRequest) GetPayload

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

func (*CreateConfigBadRequest) IsClientError

func (o *CreateConfigBadRequest) IsClientError() bool

IsClientError returns true when this create config bad request response has a 4xx status code

func (*CreateConfigBadRequest) IsCode

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

IsCode returns true when this create config bad request response a status code equal to that given

func (*CreateConfigBadRequest) IsRedirect

func (o *CreateConfigBadRequest) IsRedirect() bool

IsRedirect returns true when this create config bad request response has a 3xx status code

func (*CreateConfigBadRequest) IsServerError

func (o *CreateConfigBadRequest) IsServerError() bool

IsServerError returns true when this create config bad request response has a 5xx status code

func (*CreateConfigBadRequest) IsSuccess

func (o *CreateConfigBadRequest) IsSuccess() bool

IsSuccess returns true when this create config bad request response has a 2xx status code

func (*CreateConfigBadRequest) String

func (o *CreateConfigBadRequest) String() string

type CreateConfigCreated

type CreateConfigCreated struct {
	Payload *models.VPNConfig
}

CreateConfigCreated describes a response with status code 201, with default header values.

Created

func NewCreateConfigCreated

func NewCreateConfigCreated() *CreateConfigCreated

NewCreateConfigCreated creates a CreateConfigCreated with default headers values

func (*CreateConfigCreated) Code

func (o *CreateConfigCreated) Code() int

Code gets the status code for the create config created response

func (*CreateConfigCreated) Error

func (o *CreateConfigCreated) Error() string

func (*CreateConfigCreated) GetPayload

func (o *CreateConfigCreated) GetPayload() *models.VPNConfig

func (*CreateConfigCreated) IsClientError

func (o *CreateConfigCreated) IsClientError() bool

IsClientError returns true when this create config created response has a 4xx status code

func (*CreateConfigCreated) IsCode

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

IsCode returns true when this create config created response a status code equal to that given

func (*CreateConfigCreated) IsRedirect

func (o *CreateConfigCreated) IsRedirect() bool

IsRedirect returns true when this create config created response has a 3xx status code

func (*CreateConfigCreated) IsServerError

func (o *CreateConfigCreated) IsServerError() bool

IsServerError returns true when this create config created response has a 5xx status code

func (*CreateConfigCreated) IsSuccess

func (o *CreateConfigCreated) IsSuccess() bool

IsSuccess returns true when this create config created response has a 2xx status code

func (*CreateConfigCreated) String

func (o *CreateConfigCreated) String() string

type CreateConfigInternalServerError

type CreateConfigInternalServerError struct {
	Payload *models.Error
}

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

Internal Server Error

func NewCreateConfigInternalServerError

func NewCreateConfigInternalServerError() *CreateConfigInternalServerError

NewCreateConfigInternalServerError creates a CreateConfigInternalServerError with default headers values

func (*CreateConfigInternalServerError) Code

Code gets the status code for the create config internal server error response

func (*CreateConfigInternalServerError) Error

func (*CreateConfigInternalServerError) GetPayload

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

func (*CreateConfigInternalServerError) IsClientError

func (o *CreateConfigInternalServerError) IsClientError() bool

IsClientError returns true when this create config internal server error response has a 4xx status code

func (*CreateConfigInternalServerError) IsCode

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

IsCode returns true when this create config internal server error response a status code equal to that given

func (*CreateConfigInternalServerError) IsRedirect

func (o *CreateConfigInternalServerError) IsRedirect() bool

IsRedirect returns true when this create config internal server error response has a 3xx status code

func (*CreateConfigInternalServerError) IsServerError

func (o *CreateConfigInternalServerError) IsServerError() bool

IsServerError returns true when this create config internal server error response has a 5xx status code

func (*CreateConfigInternalServerError) IsSuccess

func (o *CreateConfigInternalServerError) IsSuccess() bool

IsSuccess returns true when this create config internal server error response has a 2xx status code

func (*CreateConfigInternalServerError) String

type CreateConfigParams

type CreateConfigParams struct {

	/* Body.

	   Config data
	*/
	Body *models.CreateConfigRequest

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

CreateConfigParams contains all the parameters to send to the API endpoint

for the create config operation.

Typically these are written to a http.Request.

func NewCreateConfigParams

func NewCreateConfigParams() *CreateConfigParams

NewCreateConfigParams creates a new CreateConfigParams 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 NewCreateConfigParamsWithContext

func NewCreateConfigParamsWithContext(ctx context.Context) *CreateConfigParams

NewCreateConfigParamsWithContext creates a new CreateConfigParams object with the ability to set a context for a request.

func NewCreateConfigParamsWithHTTPClient

func NewCreateConfigParamsWithHTTPClient(client *http.Client) *CreateConfigParams

NewCreateConfigParamsWithHTTPClient creates a new CreateConfigParams object with the ability to set a custom HTTPClient for a request.

func NewCreateConfigParamsWithTimeout

func NewCreateConfigParamsWithTimeout(timeout time.Duration) *CreateConfigParams

NewCreateConfigParamsWithTimeout creates a new CreateConfigParams object with the ability to set a timeout on a request.

func (*CreateConfigParams) SetBody

func (o *CreateConfigParams) SetBody(body *models.CreateConfigRequest)

SetBody adds the body to the create config params

func (*CreateConfigParams) SetContext

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

SetContext adds the context to the create config params

func (*CreateConfigParams) SetDefaults

func (o *CreateConfigParams) SetDefaults()

SetDefaults hydrates default values in the create config params (not the query body).

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

func (*CreateConfigParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the create config params

func (*CreateConfigParams) SetTimeout

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

SetTimeout adds the timeout to the create config params

func (*CreateConfigParams) WithBody

WithBody adds the body to the create config params

func (*CreateConfigParams) WithContext

WithContext adds the context to the create config params

func (*CreateConfigParams) WithDefaults

func (o *CreateConfigParams) WithDefaults() *CreateConfigParams

WithDefaults hydrates default values in the create config params (not the query body).

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

func (*CreateConfigParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the create config params

func (*CreateConfigParams) WithTimeout

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

WithTimeout adds the timeout to the create config params

func (*CreateConfigParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type CreateConfigReader

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

CreateConfigReader is a Reader for the CreateConfig structure.

func (*CreateConfigReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type CreateConfigServiceUnavailable

type CreateConfigServiceUnavailable struct {
	Payload *models.ServiceTemporarilyUnavailable
}

CreateConfigServiceUnavailable describes a response with status code 503, with default header values.

Service Temporarily Unavailable

func NewCreateConfigServiceUnavailable

func NewCreateConfigServiceUnavailable() *CreateConfigServiceUnavailable

NewCreateConfigServiceUnavailable creates a CreateConfigServiceUnavailable with default headers values

func (*CreateConfigServiceUnavailable) Code

Code gets the status code for the create config service unavailable response

func (*CreateConfigServiceUnavailable) Error

func (*CreateConfigServiceUnavailable) GetPayload

func (*CreateConfigServiceUnavailable) IsClientError

func (o *CreateConfigServiceUnavailable) IsClientError() bool

IsClientError returns true when this create config service unavailable response has a 4xx status code

func (*CreateConfigServiceUnavailable) IsCode

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

IsCode returns true when this create config service unavailable response a status code equal to that given

func (*CreateConfigServiceUnavailable) IsRedirect

func (o *CreateConfigServiceUnavailable) IsRedirect() bool

IsRedirect returns true when this create config service unavailable response has a 3xx status code

func (*CreateConfigServiceUnavailable) IsServerError

func (o *CreateConfigServiceUnavailable) IsServerError() bool

IsServerError returns true when this create config service unavailable response has a 5xx status code

func (*CreateConfigServiceUnavailable) IsSuccess

func (o *CreateConfigServiceUnavailable) IsSuccess() bool

IsSuccess returns true when this create config service unavailable response has a 2xx status code

func (*CreateConfigServiceUnavailable) String

type CreateConfigUnauthorized

type CreateConfigUnauthorized struct {
	Payload *models.Error
}

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

Unauthorized

func NewCreateConfigUnauthorized

func NewCreateConfigUnauthorized() *CreateConfigUnauthorized

NewCreateConfigUnauthorized creates a CreateConfigUnauthorized with default headers values

func (*CreateConfigUnauthorized) Code

func (o *CreateConfigUnauthorized) Code() int

Code gets the status code for the create config unauthorized response

func (*CreateConfigUnauthorized) Error

func (o *CreateConfigUnauthorized) Error() string

func (*CreateConfigUnauthorized) GetPayload

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

func (*CreateConfigUnauthorized) IsClientError

func (o *CreateConfigUnauthorized) IsClientError() bool

IsClientError returns true when this create config unauthorized response has a 4xx status code

func (*CreateConfigUnauthorized) IsCode

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

IsCode returns true when this create config unauthorized response a status code equal to that given

func (*CreateConfigUnauthorized) IsRedirect

func (o *CreateConfigUnauthorized) IsRedirect() bool

IsRedirect returns true when this create config unauthorized response has a 3xx status code

func (*CreateConfigUnauthorized) IsServerError

func (o *CreateConfigUnauthorized) IsServerError() bool

IsServerError returns true when this create config unauthorized response has a 5xx status code

func (*CreateConfigUnauthorized) IsSuccess

func (o *CreateConfigUnauthorized) IsSuccess() bool

IsSuccess returns true when this create config unauthorized response has a 2xx status code

func (*CreateConfigUnauthorized) String

func (o *CreateConfigUnauthorized) String() string

type DeleteConfigBadRequest

type DeleteConfigBadRequest struct {
	Payload *models.Error
}

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

Bad Request

func NewDeleteConfigBadRequest

func NewDeleteConfigBadRequest() *DeleteConfigBadRequest

NewDeleteConfigBadRequest creates a DeleteConfigBadRequest with default headers values

func (*DeleteConfigBadRequest) Code

func (o *DeleteConfigBadRequest) Code() int

Code gets the status code for the delete config bad request response

func (*DeleteConfigBadRequest) Error

func (o *DeleteConfigBadRequest) Error() string

func (*DeleteConfigBadRequest) GetPayload

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

func (*DeleteConfigBadRequest) IsClientError

func (o *DeleteConfigBadRequest) IsClientError() bool

IsClientError returns true when this delete config bad request response has a 4xx status code

func (*DeleteConfigBadRequest) IsCode

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

IsCode returns true when this delete config bad request response a status code equal to that given

func (*DeleteConfigBadRequest) IsRedirect

func (o *DeleteConfigBadRequest) IsRedirect() bool

IsRedirect returns true when this delete config bad request response has a 3xx status code

func (*DeleteConfigBadRequest) IsServerError

func (o *DeleteConfigBadRequest) IsServerError() bool

IsServerError returns true when this delete config bad request response has a 5xx status code

func (*DeleteConfigBadRequest) IsSuccess

func (o *DeleteConfigBadRequest) IsSuccess() bool

IsSuccess returns true when this delete config bad request response has a 2xx status code

func (*DeleteConfigBadRequest) String

func (o *DeleteConfigBadRequest) String() string

type DeleteConfigBody

type DeleteConfigBody struct {

	// Brigade ID
	// Required: true
	// Format: uuid
	BrigadeID *strfmt.UUID `json:"brigadeID"`
}

DeleteConfigBody delete config body swagger:model DeleteConfigBody

func (*DeleteConfigBody) ContextValidate

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

ContextValidate validates this delete config body based on context it is used

func (*DeleteConfigBody) MarshalBinary

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

MarshalBinary interface implementation

func (*DeleteConfigBody) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*DeleteConfigBody) Validate

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

Validate validates this delete config body

type DeleteConfigInternalServerError

type DeleteConfigInternalServerError struct {
	Payload *models.Error
}

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

Internal Server Error

func NewDeleteConfigInternalServerError

func NewDeleteConfigInternalServerError() *DeleteConfigInternalServerError

NewDeleteConfigInternalServerError creates a DeleteConfigInternalServerError with default headers values

func (*DeleteConfigInternalServerError) Code

Code gets the status code for the delete config internal server error response

func (*DeleteConfigInternalServerError) Error

func (*DeleteConfigInternalServerError) GetPayload

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

func (*DeleteConfigInternalServerError) IsClientError

func (o *DeleteConfigInternalServerError) IsClientError() bool

IsClientError returns true when this delete config internal server error response has a 4xx status code

func (*DeleteConfigInternalServerError) IsCode

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

IsCode returns true when this delete config internal server error response a status code equal to that given

func (*DeleteConfigInternalServerError) IsRedirect

func (o *DeleteConfigInternalServerError) IsRedirect() bool

IsRedirect returns true when this delete config internal server error response has a 3xx status code

func (*DeleteConfigInternalServerError) IsServerError

func (o *DeleteConfigInternalServerError) IsServerError() bool

IsServerError returns true when this delete config internal server error response has a 5xx status code

func (*DeleteConfigInternalServerError) IsSuccess

func (o *DeleteConfigInternalServerError) IsSuccess() bool

IsSuccess returns true when this delete config internal server error response has a 2xx status code

func (*DeleteConfigInternalServerError) String

type DeleteConfigNoContent

type DeleteConfigNoContent struct {
}

DeleteConfigNoContent describes a response with status code 204, with default header values.

No Content

func NewDeleteConfigNoContent

func NewDeleteConfigNoContent() *DeleteConfigNoContent

NewDeleteConfigNoContent creates a DeleteConfigNoContent with default headers values

func (*DeleteConfigNoContent) Code

func (o *DeleteConfigNoContent) Code() int

Code gets the status code for the delete config no content response

func (*DeleteConfigNoContent) Error

func (o *DeleteConfigNoContent) Error() string

func (*DeleteConfigNoContent) IsClientError

func (o *DeleteConfigNoContent) IsClientError() bool

IsClientError returns true when this delete config no content response has a 4xx status code

func (*DeleteConfigNoContent) IsCode

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

IsCode returns true when this delete config no content response a status code equal to that given

func (*DeleteConfigNoContent) IsRedirect

func (o *DeleteConfigNoContent) IsRedirect() bool

IsRedirect returns true when this delete config no content response has a 3xx status code

func (*DeleteConfigNoContent) IsServerError

func (o *DeleteConfigNoContent) IsServerError() bool

IsServerError returns true when this delete config no content response has a 5xx status code

func (*DeleteConfigNoContent) IsSuccess

func (o *DeleteConfigNoContent) IsSuccess() bool

IsSuccess returns true when this delete config no content response has a 2xx status code

func (*DeleteConfigNoContent) String

func (o *DeleteConfigNoContent) String() string

type DeleteConfigParams

type DeleteConfigParams struct {

	/* Body.

	   Brigade ID
	*/
	Body DeleteConfigBody

	/* ConfigID.

	   Config ID
	*/
	ConfigID string

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

DeleteConfigParams contains all the parameters to send to the API endpoint

for the delete config operation.

Typically these are written to a http.Request.

func NewDeleteConfigParams

func NewDeleteConfigParams() *DeleteConfigParams

NewDeleteConfigParams creates a new DeleteConfigParams 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 NewDeleteConfigParamsWithContext

func NewDeleteConfigParamsWithContext(ctx context.Context) *DeleteConfigParams

NewDeleteConfigParamsWithContext creates a new DeleteConfigParams object with the ability to set a context for a request.

func NewDeleteConfigParamsWithHTTPClient

func NewDeleteConfigParamsWithHTTPClient(client *http.Client) *DeleteConfigParams

NewDeleteConfigParamsWithHTTPClient creates a new DeleteConfigParams object with the ability to set a custom HTTPClient for a request.

func NewDeleteConfigParamsWithTimeout

func NewDeleteConfigParamsWithTimeout(timeout time.Duration) *DeleteConfigParams

NewDeleteConfigParamsWithTimeout creates a new DeleteConfigParams object with the ability to set a timeout on a request.

func (*DeleteConfigParams) SetBody

func (o *DeleteConfigParams) SetBody(body DeleteConfigBody)

SetBody adds the body to the delete config params

func (*DeleteConfigParams) SetConfigID

func (o *DeleteConfigParams) SetConfigID(configID string)

SetConfigID adds the configId to the delete config params

func (*DeleteConfigParams) SetContext

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

SetContext adds the context to the delete config params

func (*DeleteConfigParams) SetDefaults

func (o *DeleteConfigParams) SetDefaults()

SetDefaults hydrates default values in the delete config params (not the query body).

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

func (*DeleteConfigParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the delete config params

func (*DeleteConfigParams) SetTimeout

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

SetTimeout adds the timeout to the delete config params

func (*DeleteConfigParams) WithBody

WithBody adds the body to the delete config params

func (*DeleteConfigParams) WithConfigID

func (o *DeleteConfigParams) WithConfigID(configID string) *DeleteConfigParams

WithConfigID adds the configID to the delete config params

func (*DeleteConfigParams) WithContext

WithContext adds the context to the delete config params

func (*DeleteConfigParams) WithDefaults

func (o *DeleteConfigParams) WithDefaults() *DeleteConfigParams

WithDefaults hydrates default values in the delete config params (not the query body).

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

func (*DeleteConfigParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the delete config params

func (*DeleteConfigParams) WithTimeout

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

WithTimeout adds the timeout to the delete config params

func (*DeleteConfigParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type DeleteConfigReader

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

DeleteConfigReader is a Reader for the DeleteConfig structure.

func (*DeleteConfigReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type DeleteConfigServiceUnavailable

type DeleteConfigServiceUnavailable struct {
	Payload *models.ServiceTemporarilyUnavailable
}

DeleteConfigServiceUnavailable describes a response with status code 503, with default header values.

Service Temporarily Unavailable

func NewDeleteConfigServiceUnavailable

func NewDeleteConfigServiceUnavailable() *DeleteConfigServiceUnavailable

NewDeleteConfigServiceUnavailable creates a DeleteConfigServiceUnavailable with default headers values

func (*DeleteConfigServiceUnavailable) Code

Code gets the status code for the delete config service unavailable response

func (*DeleteConfigServiceUnavailable) Error

func (*DeleteConfigServiceUnavailable) GetPayload

func (*DeleteConfigServiceUnavailable) IsClientError

func (o *DeleteConfigServiceUnavailable) IsClientError() bool

IsClientError returns true when this delete config service unavailable response has a 4xx status code

func (*DeleteConfigServiceUnavailable) IsCode

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

IsCode returns true when this delete config service unavailable response a status code equal to that given

func (*DeleteConfigServiceUnavailable) IsRedirect

func (o *DeleteConfigServiceUnavailable) IsRedirect() bool

IsRedirect returns true when this delete config service unavailable response has a 3xx status code

func (*DeleteConfigServiceUnavailable) IsServerError

func (o *DeleteConfigServiceUnavailable) IsServerError() bool

IsServerError returns true when this delete config service unavailable response has a 5xx status code

func (*DeleteConfigServiceUnavailable) IsSuccess

func (o *DeleteConfigServiceUnavailable) IsSuccess() bool

IsSuccess returns true when this delete config service unavailable response has a 2xx status code

func (*DeleteConfigServiceUnavailable) String

type DeleteConfigUnauthorized

type DeleteConfigUnauthorized struct {
	Payload *models.Error
}

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

Unauthorized

func NewDeleteConfigUnauthorized

func NewDeleteConfigUnauthorized() *DeleteConfigUnauthorized

NewDeleteConfigUnauthorized creates a DeleteConfigUnauthorized with default headers values

func (*DeleteConfigUnauthorized) Code

func (o *DeleteConfigUnauthorized) Code() int

Code gets the status code for the delete config unauthorized response

func (*DeleteConfigUnauthorized) Error

func (o *DeleteConfigUnauthorized) Error() string

func (*DeleteConfigUnauthorized) GetPayload

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

func (*DeleteConfigUnauthorized) IsClientError

func (o *DeleteConfigUnauthorized) IsClientError() bool

IsClientError returns true when this delete config unauthorized response has a 4xx status code

func (*DeleteConfigUnauthorized) IsCode

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

IsCode returns true when this delete config unauthorized response a status code equal to that given

func (*DeleteConfigUnauthorized) IsRedirect

func (o *DeleteConfigUnauthorized) IsRedirect() bool

IsRedirect returns true when this delete config unauthorized response has a 3xx status code

func (*DeleteConfigUnauthorized) IsServerError

func (o *DeleteConfigUnauthorized) IsServerError() bool

IsServerError returns true when this delete config unauthorized response has a 5xx status code

func (*DeleteConfigUnauthorized) IsSuccess

func (o *DeleteConfigUnauthorized) IsSuccess() bool

IsSuccess returns true when this delete config unauthorized response has a 2xx status code

func (*DeleteConfigUnauthorized) String

func (o *DeleteConfigUnauthorized) String() string

Jump to

Keyboard shortcuts

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