specification

package
v1.1.6 Latest Latest
Warning

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

Go to latest
Published: Oct 11, 2023 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 specification API

func (*Client) GetSpecification

func (a *Client) GetSpecification(params *GetSpecificationParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetSpecificationOK, error)

GetSpecification data plane API specification

Return Data Plane API OpenAPI specification

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 {
	GetSpecification(params *GetSpecificationParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetSpecificationOK, 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 specification API client.

type GetSpecificationDefault

type GetSpecificationDefault struct {

	/* Configuration file version
	 */
	ConfigurationVersion string

	Payload *models.Error
	// contains filtered or unexported fields
}

GetSpecificationDefault describes a response with status code -1, with default header values.

General Error

func NewGetSpecificationDefault

func NewGetSpecificationDefault(code int) *GetSpecificationDefault

NewGetSpecificationDefault creates a GetSpecificationDefault with default headers values

func (*GetSpecificationDefault) Code

func (o *GetSpecificationDefault) Code() int

Code gets the status code for the get specification default response

func (*GetSpecificationDefault) Error

func (o *GetSpecificationDefault) Error() string

func (*GetSpecificationDefault) GetPayload

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

func (*GetSpecificationDefault) IsClientError added in v1.1.0

func (o *GetSpecificationDefault) IsClientError() bool

IsClientError returns true when this get specification default response has a 4xx status code

func (*GetSpecificationDefault) IsCode added in v1.1.0

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

IsCode returns true when this get specification default response a status code equal to that given

func (*GetSpecificationDefault) IsRedirect added in v1.1.0

func (o *GetSpecificationDefault) IsRedirect() bool

IsRedirect returns true when this get specification default response has a 3xx status code

func (*GetSpecificationDefault) IsServerError added in v1.1.0

func (o *GetSpecificationDefault) IsServerError() bool

IsServerError returns true when this get specification default response has a 5xx status code

func (*GetSpecificationDefault) IsSuccess added in v1.1.0

func (o *GetSpecificationDefault) IsSuccess() bool

IsSuccess returns true when this get specification default response has a 2xx status code

func (*GetSpecificationDefault) String added in v1.1.0

func (o *GetSpecificationDefault) String() string

type GetSpecificationOK

type GetSpecificationOK struct {
	Payload interface{}
}

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

Success

func NewGetSpecificationOK

func NewGetSpecificationOK() *GetSpecificationOK

NewGetSpecificationOK creates a GetSpecificationOK with default headers values

func (*GetSpecificationOK) Code added in v1.1.5

func (o *GetSpecificationOK) Code() int

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

func (*GetSpecificationOK) Error

func (o *GetSpecificationOK) Error() string

func (*GetSpecificationOK) GetPayload

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

func (*GetSpecificationOK) IsClientError added in v1.1.0

func (o *GetSpecificationOK) IsClientError() bool

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

func (*GetSpecificationOK) IsCode added in v1.1.0

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

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

func (*GetSpecificationOK) IsRedirect added in v1.1.0

func (o *GetSpecificationOK) IsRedirect() bool

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

func (*GetSpecificationOK) IsServerError added in v1.1.0

func (o *GetSpecificationOK) IsServerError() bool

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

func (*GetSpecificationOK) IsSuccess added in v1.1.0

func (o *GetSpecificationOK) IsSuccess() bool

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

func (*GetSpecificationOK) String added in v1.1.0

func (o *GetSpecificationOK) String() string

type GetSpecificationParams

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

GetSpecificationParams contains all the parameters to send to the API endpoint

for the get specification operation.

Typically these are written to a http.Request.

func NewGetSpecificationParams

func NewGetSpecificationParams() *GetSpecificationParams

NewGetSpecificationParams creates a new GetSpecificationParams 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 NewGetSpecificationParamsWithContext

func NewGetSpecificationParamsWithContext(ctx context.Context) *GetSpecificationParams

NewGetSpecificationParamsWithContext creates a new GetSpecificationParams object with the ability to set a context for a request.

func NewGetSpecificationParamsWithHTTPClient

func NewGetSpecificationParamsWithHTTPClient(client *http.Client) *GetSpecificationParams

NewGetSpecificationParamsWithHTTPClient creates a new GetSpecificationParams object with the ability to set a custom HTTPClient for a request.

func NewGetSpecificationParamsWithTimeout

func NewGetSpecificationParamsWithTimeout(timeout time.Duration) *GetSpecificationParams

NewGetSpecificationParamsWithTimeout creates a new GetSpecificationParams object with the ability to set a timeout on a request.

func (*GetSpecificationParams) SetContext

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

SetContext adds the context to the get specification params

func (*GetSpecificationParams) SetDefaults

func (o *GetSpecificationParams) SetDefaults()

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

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

func (*GetSpecificationParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get specification params

func (*GetSpecificationParams) SetTimeout

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

SetTimeout adds the timeout to the get specification params

func (*GetSpecificationParams) WithContext

WithContext adds the context to the get specification params

func (*GetSpecificationParams) WithDefaults

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

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

func (*GetSpecificationParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the get specification params

func (*GetSpecificationParams) WithTimeout

WithTimeout adds the timeout to the get specification params

func (*GetSpecificationParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type GetSpecificationReader

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

GetSpecificationReader is a Reader for the GetSpecification structure.

func (*GetSpecificationReader) ReadResponse

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

ReadResponse reads a server response into the received o.

Jump to

Keyboard shortcuts

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