Help us shape the future of Go! Take the 2026 Go Developer Survey

endpoint

package
v0.1.17 Latest Latest
Warning

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

Go to latest
Published: Jun 13, 2018 License: Apache-2.0 Imports: 11 Imported by: 8

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AddAPIBadRequest

type AddAPIBadRequest struct {
	Payload *v1.Error
}

AddAPIBadRequest handles this case with default header values.

Invalid Input

func NewAddAPIBadRequest

func NewAddAPIBadRequest() *AddAPIBadRequest

NewAddAPIBadRequest creates a AddAPIBadRequest with default headers values

func (*AddAPIBadRequest) Error

func (o *AddAPIBadRequest) Error() string

type AddAPIConflict added in v0.1.13

type AddAPIConflict struct {
	Payload *v1.Error
}

AddAPIConflict handles this case with default header values.

Already Exists

func NewAddAPIConflict added in v0.1.13

func NewAddAPIConflict() *AddAPIConflict

NewAddAPIConflict creates a AddAPIConflict with default headers values

func (*AddAPIConflict) Error added in v0.1.13

func (o *AddAPIConflict) Error() string

type AddAPIInternalServerError

type AddAPIInternalServerError struct {
	Payload *v1.Error
}

AddAPIInternalServerError handles this case with default header values.

Internal Error

func NewAddAPIInternalServerError

func NewAddAPIInternalServerError() *AddAPIInternalServerError

NewAddAPIInternalServerError creates a AddAPIInternalServerError with default headers values

func (*AddAPIInternalServerError) Error

func (o *AddAPIInternalServerError) Error() string

type AddAPIOK

type AddAPIOK struct {
	Payload *v1.API
}

AddAPIOK handles this case with default header values.

API created

func NewAddAPIOK

func NewAddAPIOK() *AddAPIOK

NewAddAPIOK creates a AddAPIOK with default headers values

func (*AddAPIOK) Error

func (o *AddAPIOK) Error() string

type AddAPIParams

type AddAPIParams struct {

	/*XDispatchOrg*/
	XDispatchOrg string
	/*Body
	  API object

	*/
	Body *v1.API

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

AddAPIParams contains all the parameters to send to the API endpoint for the add API operation typically these are written to a http.Request

func NewAddAPIParams

func NewAddAPIParams() *AddAPIParams

NewAddAPIParams creates a new AddAPIParams object with the default values initialized.

func NewAddAPIParamsWithContext

func NewAddAPIParamsWithContext(ctx context.Context) *AddAPIParams

NewAddAPIParamsWithContext creates a new AddAPIParams object with the default values initialized, and the ability to set a context for a request

func NewAddAPIParamsWithHTTPClient

func NewAddAPIParamsWithHTTPClient(client *http.Client) *AddAPIParams

NewAddAPIParamsWithHTTPClient creates a new AddAPIParams object with the default values initialized, and the ability to set a custom HTTPClient for a request

func NewAddAPIParamsWithTimeout

func NewAddAPIParamsWithTimeout(timeout time.Duration) *AddAPIParams

NewAddAPIParamsWithTimeout creates a new AddAPIParams object with the default values initialized, and the ability to set a timeout on a request

func (*AddAPIParams) SetBody

func (o *AddAPIParams) SetBody(body *v1.API)

SetBody adds the body to the add API params

func (*AddAPIParams) SetContext

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

SetContext adds the context to the add API params

func (*AddAPIParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the add API params

func (*AddAPIParams) SetTimeout

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

SetTimeout adds the timeout to the add API params

func (*AddAPIParams) SetXDispatchOrg added in v0.1.16

func (o *AddAPIParams) SetXDispatchOrg(xDispatchOrg string)

SetXDispatchOrg adds the xDispatchOrg to the add API params

func (*AddAPIParams) WithBody

func (o *AddAPIParams) WithBody(body *v1.API) *AddAPIParams

WithBody adds the body to the add API params

func (*AddAPIParams) WithContext

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

WithContext adds the context to the add API params

func (*AddAPIParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the add API params

func (*AddAPIParams) WithTimeout

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

WithTimeout adds the timeout to the add API params

func (*AddAPIParams) WithXDispatchOrg added in v0.1.16

func (o *AddAPIParams) WithXDispatchOrg(xDispatchOrg string) *AddAPIParams

WithXDispatchOrg adds the xDispatchOrg to the add API params

func (*AddAPIParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type AddAPIReader

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

AddAPIReader is a Reader for the AddAPI structure.

func (*AddAPIReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type AddAPIUnauthorized

type AddAPIUnauthorized struct {
	Payload *v1.Error
}

AddAPIUnauthorized handles this case with default header values.

Unauthorized Request

func NewAddAPIUnauthorized

func NewAddAPIUnauthorized() *AddAPIUnauthorized

NewAddAPIUnauthorized creates a AddAPIUnauthorized with default headers values

func (*AddAPIUnauthorized) Error

func (o *AddAPIUnauthorized) Error() string

type Client

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

Client for endpoint API

func New

func New(transport runtime.ClientTransport, formats strfmt.Registry) *Client

New creates a new endpoint API client.

func (*Client) AddAPI

func (a *Client) AddAPI(params *AddAPIParams, authInfo runtime.ClientAuthInfoWriter) (*AddAPIOK, error)

AddAPI adds a new API

func (*Client) DeleteAPI

func (a *Client) DeleteAPI(params *DeleteAPIParams, authInfo runtime.ClientAuthInfoWriter) (*DeleteAPIOK, error)

DeleteAPI deletes an API

func (*Client) GetAPI

func (a *Client) GetAPI(params *GetAPIParams, authInfo runtime.ClientAuthInfoWriter) (*GetAPIOK, error)

GetAPI finds API by name

get an API by name

func (*Client) GetApis

func (a *Client) GetApis(params *GetApisParams, authInfo runtime.ClientAuthInfoWriter) (*GetApisOK, error)

GetApis lists all existing apis

func (*Client) SetTransport

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

SetTransport changes the transport on the client

func (*Client) UpdateAPI

func (a *Client) UpdateAPI(params *UpdateAPIParams, authInfo runtime.ClientAuthInfoWriter) (*UpdateAPIOK, error)

UpdateAPI updates an API

type DeleteAPIBadRequest

type DeleteAPIBadRequest struct {
	Payload *v1.Error
}

DeleteAPIBadRequest handles this case with default header values.

Invalid Name supplied

func NewDeleteAPIBadRequest

func NewDeleteAPIBadRequest() *DeleteAPIBadRequest

NewDeleteAPIBadRequest creates a DeleteAPIBadRequest with default headers values

func (*DeleteAPIBadRequest) Error

func (o *DeleteAPIBadRequest) Error() string

type DeleteAPIInternalServerError

type DeleteAPIInternalServerError struct {
	Payload *v1.Error
}

DeleteAPIInternalServerError handles this case with default header values.

Internal error

func NewDeleteAPIInternalServerError

func NewDeleteAPIInternalServerError() *DeleteAPIInternalServerError

NewDeleteAPIInternalServerError creates a DeleteAPIInternalServerError with default headers values

func (*DeleteAPIInternalServerError) Error

type DeleteAPINotFound

type DeleteAPINotFound struct {
	Payload *v1.Error
}

DeleteAPINotFound handles this case with default header values.

API not found

func NewDeleteAPINotFound

func NewDeleteAPINotFound() *DeleteAPINotFound

NewDeleteAPINotFound creates a DeleteAPINotFound with default headers values

func (*DeleteAPINotFound) Error

func (o *DeleteAPINotFound) Error() string

type DeleteAPIOK

type DeleteAPIOK struct {
	Payload *v1.API
}

DeleteAPIOK handles this case with default header values.

Successful operation

func NewDeleteAPIOK

func NewDeleteAPIOK() *DeleteAPIOK

NewDeleteAPIOK creates a DeleteAPIOK with default headers values

func (*DeleteAPIOK) Error

func (o *DeleteAPIOK) Error() string

type DeleteAPIParams

type DeleteAPIParams struct {

	/*XDispatchOrg*/
	XDispatchOrg string
	/*API
	  Name of API to work on

	*/
	API string
	/*Tags
	  Filter based on tags

	*/
	Tags []string

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

DeleteAPIParams contains all the parameters to send to the API endpoint for the delete API operation typically these are written to a http.Request

func NewDeleteAPIParams

func NewDeleteAPIParams() *DeleteAPIParams

NewDeleteAPIParams creates a new DeleteAPIParams object with the default values initialized.

func NewDeleteAPIParamsWithContext

func NewDeleteAPIParamsWithContext(ctx context.Context) *DeleteAPIParams

NewDeleteAPIParamsWithContext creates a new DeleteAPIParams object with the default values initialized, and the ability to set a context for a request

func NewDeleteAPIParamsWithHTTPClient

func NewDeleteAPIParamsWithHTTPClient(client *http.Client) *DeleteAPIParams

NewDeleteAPIParamsWithHTTPClient creates a new DeleteAPIParams object with the default values initialized, and the ability to set a custom HTTPClient for a request

func NewDeleteAPIParamsWithTimeout

func NewDeleteAPIParamsWithTimeout(timeout time.Duration) *DeleteAPIParams

NewDeleteAPIParamsWithTimeout creates a new DeleteAPIParams object with the default values initialized, and the ability to set a timeout on a request

func (*DeleteAPIParams) SetAPI

func (o *DeleteAPIParams) SetAPI(api string)

SetAPI adds the api to the delete API params

func (*DeleteAPIParams) SetContext

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

SetContext adds the context to the delete API params

func (*DeleteAPIParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the delete API params

func (*DeleteAPIParams) SetTags added in v0.1.13

func (o *DeleteAPIParams) SetTags(tags []string)

SetTags adds the tags to the delete API params

func (*DeleteAPIParams) SetTimeout

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

SetTimeout adds the timeout to the delete API params

func (*DeleteAPIParams) SetXDispatchOrg added in v0.1.16

func (o *DeleteAPIParams) SetXDispatchOrg(xDispatchOrg string)

SetXDispatchOrg adds the xDispatchOrg to the delete API params

func (*DeleteAPIParams) WithAPI

func (o *DeleteAPIParams) WithAPI(api string) *DeleteAPIParams

WithAPI adds the api to the delete API params

func (*DeleteAPIParams) WithContext

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

WithContext adds the context to the delete API params

func (*DeleteAPIParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the delete API params

func (*DeleteAPIParams) WithTags added in v0.1.13

func (o *DeleteAPIParams) WithTags(tags []string) *DeleteAPIParams

WithTags adds the tags to the delete API params

func (*DeleteAPIParams) WithTimeout

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

WithTimeout adds the timeout to the delete API params

func (*DeleteAPIParams) WithXDispatchOrg added in v0.1.16

func (o *DeleteAPIParams) WithXDispatchOrg(xDispatchOrg string) *DeleteAPIParams

WithXDispatchOrg adds the xDispatchOrg to the delete API params

func (*DeleteAPIParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type DeleteAPIReader

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

DeleteAPIReader is a Reader for the DeleteAPI structure.

func (*DeleteAPIReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type GetAPIBadRequest

type GetAPIBadRequest struct {
	Payload *v1.Error
}

GetAPIBadRequest handles this case with default header values.

Invalid Name supplied

func NewGetAPIBadRequest

func NewGetAPIBadRequest() *GetAPIBadRequest

NewGetAPIBadRequest creates a GetAPIBadRequest with default headers values

func (*GetAPIBadRequest) Error

func (o *GetAPIBadRequest) Error() string

type GetAPIInternalServerError

type GetAPIInternalServerError struct {
	Payload *v1.Error
}

GetAPIInternalServerError handles this case with default header values.

Internal error

func NewGetAPIInternalServerError

func NewGetAPIInternalServerError() *GetAPIInternalServerError

NewGetAPIInternalServerError creates a GetAPIInternalServerError with default headers values

func (*GetAPIInternalServerError) Error

func (o *GetAPIInternalServerError) Error() string

type GetAPINotFound

type GetAPINotFound struct {
	Payload *v1.Error
}

GetAPINotFound handles this case with default header values.

API not found

func NewGetAPINotFound

func NewGetAPINotFound() *GetAPINotFound

NewGetAPINotFound creates a GetAPINotFound with default headers values

func (*GetAPINotFound) Error

func (o *GetAPINotFound) Error() string

type GetAPIOK

type GetAPIOK struct {
	Payload *v1.API
}

GetAPIOK handles this case with default header values.

Successful operation

func NewGetAPIOK

func NewGetAPIOK() *GetAPIOK

NewGetAPIOK creates a GetAPIOK with default headers values

func (*GetAPIOK) Error

func (o *GetAPIOK) Error() string

type GetAPIParams

type GetAPIParams struct {

	/*XDispatchOrg*/
	XDispatchOrg string
	/*API
	  Name of API to work on

	*/
	API string
	/*Tags
	  Filter based on tags

	*/
	Tags []string

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

GetAPIParams contains all the parameters to send to the API endpoint for the get API operation typically these are written to a http.Request

func NewGetAPIParams

func NewGetAPIParams() *GetAPIParams

NewGetAPIParams creates a new GetAPIParams object with the default values initialized.

func NewGetAPIParamsWithContext

func NewGetAPIParamsWithContext(ctx context.Context) *GetAPIParams

NewGetAPIParamsWithContext creates a new GetAPIParams object with the default values initialized, and the ability to set a context for a request

func NewGetAPIParamsWithHTTPClient

func NewGetAPIParamsWithHTTPClient(client *http.Client) *GetAPIParams

NewGetAPIParamsWithHTTPClient creates a new GetAPIParams object with the default values initialized, and the ability to set a custom HTTPClient for a request

func NewGetAPIParamsWithTimeout

func NewGetAPIParamsWithTimeout(timeout time.Duration) *GetAPIParams

NewGetAPIParamsWithTimeout creates a new GetAPIParams object with the default values initialized, and the ability to set a timeout on a request

func (*GetAPIParams) SetAPI

func (o *GetAPIParams) SetAPI(api string)

SetAPI adds the api to the get API params

func (*GetAPIParams) SetContext

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

SetContext adds the context to the get API params

func (*GetAPIParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get API params

func (*GetAPIParams) SetTags added in v0.1.13

func (o *GetAPIParams) SetTags(tags []string)

SetTags adds the tags to the get API params

func (*GetAPIParams) SetTimeout

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

SetTimeout adds the timeout to the get API params

func (*GetAPIParams) SetXDispatchOrg added in v0.1.16

func (o *GetAPIParams) SetXDispatchOrg(xDispatchOrg string)

SetXDispatchOrg adds the xDispatchOrg to the get API params

func (*GetAPIParams) WithAPI

func (o *GetAPIParams) WithAPI(api string) *GetAPIParams

WithAPI adds the api to the get API params

func (*GetAPIParams) WithContext

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

WithContext adds the context to the get API params

func (*GetAPIParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the get API params

func (*GetAPIParams) WithTags added in v0.1.13

func (o *GetAPIParams) WithTags(tags []string) *GetAPIParams

WithTags adds the tags to the get API params

func (*GetAPIParams) WithTimeout

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

WithTimeout adds the timeout to the get API params

func (*GetAPIParams) WithXDispatchOrg added in v0.1.16

func (o *GetAPIParams) WithXDispatchOrg(xDispatchOrg string) *GetAPIParams

WithXDispatchOrg adds the xDispatchOrg to the get API params

func (*GetAPIParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type GetAPIReader

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

GetAPIReader is a Reader for the GetAPI structure.

func (*GetAPIReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type GetApisDefault

type GetApisDefault struct {
	Payload *v1.Error
	// contains filtered or unexported fields
}

GetApisDefault handles this case with default header values.

Unexpected Error

func NewGetApisDefault

func NewGetApisDefault(code int) *GetApisDefault

NewGetApisDefault creates a GetApisDefault with default headers values

func (*GetApisDefault) Code

func (o *GetApisDefault) Code() int

Code gets the status code for the get apis default response

func (*GetApisDefault) Error

func (o *GetApisDefault) Error() string

type GetApisInternalServerError

type GetApisInternalServerError struct {
	Payload *v1.Error
}

GetApisInternalServerError handles this case with default header values.

Internal Error

func NewGetApisInternalServerError

func NewGetApisInternalServerError() *GetApisInternalServerError

NewGetApisInternalServerError creates a GetApisInternalServerError with default headers values

func (*GetApisInternalServerError) Error

type GetApisOK

type GetApisOK struct {
	Payload []*v1.API
}

GetApisOK handles this case with default header values.

Successful operation

func NewGetApisOK

func NewGetApisOK() *GetApisOK

NewGetApisOK creates a GetApisOK with default headers values

func (*GetApisOK) Error

func (o *GetApisOK) Error() string

type GetApisParams

type GetApisParams struct {

	/*XDispatchOrg*/
	XDispatchOrg string
	/*Function
	  Filter based on function names

	*/
	Function *string
	/*Tags
	  Filter based on tags

	*/
	Tags []string

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

GetApisParams contains all the parameters to send to the API endpoint for the get apis operation typically these are written to a http.Request

func NewGetApisParams

func NewGetApisParams() *GetApisParams

NewGetApisParams creates a new GetApisParams object with the default values initialized.

func NewGetApisParamsWithContext

func NewGetApisParamsWithContext(ctx context.Context) *GetApisParams

NewGetApisParamsWithContext creates a new GetApisParams object with the default values initialized, and the ability to set a context for a request

func NewGetApisParamsWithHTTPClient

func NewGetApisParamsWithHTTPClient(client *http.Client) *GetApisParams

NewGetApisParamsWithHTTPClient creates a new GetApisParams object with the default values initialized, and the ability to set a custom HTTPClient for a request

func NewGetApisParamsWithTimeout

func NewGetApisParamsWithTimeout(timeout time.Duration) *GetApisParams

NewGetApisParamsWithTimeout creates a new GetApisParams object with the default values initialized, and the ability to set a timeout on a request

func (*GetApisParams) SetContext

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

SetContext adds the context to the get apis params

func (*GetApisParams) SetFunction

func (o *GetApisParams) SetFunction(function *string)

SetFunction adds the function to the get apis params

func (*GetApisParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get apis params

func (*GetApisParams) SetTags

func (o *GetApisParams) SetTags(tags []string)

SetTags adds the tags to the get apis params

func (*GetApisParams) SetTimeout

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

SetTimeout adds the timeout to the get apis params

func (*GetApisParams) SetXDispatchOrg added in v0.1.16

func (o *GetApisParams) SetXDispatchOrg(xDispatchOrg string)

SetXDispatchOrg adds the xDispatchOrg to the get apis params

func (*GetApisParams) WithContext

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

WithContext adds the context to the get apis params

func (*GetApisParams) WithFunction

func (o *GetApisParams) WithFunction(function *string) *GetApisParams

WithFunction adds the function to the get apis params

func (*GetApisParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the get apis params

func (*GetApisParams) WithTags

func (o *GetApisParams) WithTags(tags []string) *GetApisParams

WithTags adds the tags to the get apis params

func (*GetApisParams) WithTimeout

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

WithTimeout adds the timeout to the get apis params

func (*GetApisParams) WithXDispatchOrg added in v0.1.16

func (o *GetApisParams) WithXDispatchOrg(xDispatchOrg string) *GetApisParams

WithXDispatchOrg adds the xDispatchOrg to the get apis params

func (*GetApisParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type GetApisReader

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

GetApisReader is a Reader for the GetApis structure.

func (*GetApisReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type UpdateAPIBadRequest

type UpdateAPIBadRequest struct {
	Payload *v1.Error
}

UpdateAPIBadRequest handles this case with default header values.

Invalid input

func NewUpdateAPIBadRequest

func NewUpdateAPIBadRequest() *UpdateAPIBadRequest

NewUpdateAPIBadRequest creates a UpdateAPIBadRequest with default headers values

func (*UpdateAPIBadRequest) Error

func (o *UpdateAPIBadRequest) Error() string

type UpdateAPIInternalServerError

type UpdateAPIInternalServerError struct {
	Payload *v1.Error
}

UpdateAPIInternalServerError handles this case with default header values.

Internal error

func NewUpdateAPIInternalServerError

func NewUpdateAPIInternalServerError() *UpdateAPIInternalServerError

NewUpdateAPIInternalServerError creates a UpdateAPIInternalServerError with default headers values

func (*UpdateAPIInternalServerError) Error

type UpdateAPINotFound

type UpdateAPINotFound struct {
	Payload *v1.Error
}

UpdateAPINotFound handles this case with default header values.

API not found

func NewUpdateAPINotFound

func NewUpdateAPINotFound() *UpdateAPINotFound

NewUpdateAPINotFound creates a UpdateAPINotFound with default headers values

func (*UpdateAPINotFound) Error

func (o *UpdateAPINotFound) Error() string

type UpdateAPIOK

type UpdateAPIOK struct {
	Payload *v1.API
}

UpdateAPIOK handles this case with default header values.

Successful update

func NewUpdateAPIOK

func NewUpdateAPIOK() *UpdateAPIOK

NewUpdateAPIOK creates a UpdateAPIOK with default headers values

func (*UpdateAPIOK) Error

func (o *UpdateAPIOK) Error() string

type UpdateAPIParams

type UpdateAPIParams struct {

	/*XDispatchOrg*/
	XDispatchOrg string
	/*API
	  Name of API to work on

	*/
	API string
	/*Body
	  API object

	*/
	Body *v1.API
	/*Tags
	  Filter based on tags

	*/
	Tags []string

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

UpdateAPIParams contains all the parameters to send to the API endpoint for the update API operation typically these are written to a http.Request

func NewUpdateAPIParams

func NewUpdateAPIParams() *UpdateAPIParams

NewUpdateAPIParams creates a new UpdateAPIParams object with the default values initialized.

func NewUpdateAPIParamsWithContext

func NewUpdateAPIParamsWithContext(ctx context.Context) *UpdateAPIParams

NewUpdateAPIParamsWithContext creates a new UpdateAPIParams object with the default values initialized, and the ability to set a context for a request

func NewUpdateAPIParamsWithHTTPClient

func NewUpdateAPIParamsWithHTTPClient(client *http.Client) *UpdateAPIParams

NewUpdateAPIParamsWithHTTPClient creates a new UpdateAPIParams object with the default values initialized, and the ability to set a custom HTTPClient for a request

func NewUpdateAPIParamsWithTimeout

func NewUpdateAPIParamsWithTimeout(timeout time.Duration) *UpdateAPIParams

NewUpdateAPIParamsWithTimeout creates a new UpdateAPIParams object with the default values initialized, and the ability to set a timeout on a request

func (*UpdateAPIParams) SetAPI

func (o *UpdateAPIParams) SetAPI(api string)

SetAPI adds the api to the update API params

func (*UpdateAPIParams) SetBody

func (o *UpdateAPIParams) SetBody(body *v1.API)

SetBody adds the body to the update API params

func (*UpdateAPIParams) SetContext

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

SetContext adds the context to the update API params

func (*UpdateAPIParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the update API params

func (*UpdateAPIParams) SetTags added in v0.1.13

func (o *UpdateAPIParams) SetTags(tags []string)

SetTags adds the tags to the update API params

func (*UpdateAPIParams) SetTimeout

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

SetTimeout adds the timeout to the update API params

func (*UpdateAPIParams) SetXDispatchOrg added in v0.1.16

func (o *UpdateAPIParams) SetXDispatchOrg(xDispatchOrg string)

SetXDispatchOrg adds the xDispatchOrg to the update API params

func (*UpdateAPIParams) WithAPI

func (o *UpdateAPIParams) WithAPI(api string) *UpdateAPIParams

WithAPI adds the api to the update API params

func (*UpdateAPIParams) WithBody

func (o *UpdateAPIParams) WithBody(body *v1.API) *UpdateAPIParams

WithBody adds the body to the update API params

func (*UpdateAPIParams) WithContext

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

WithContext adds the context to the update API params

func (*UpdateAPIParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the update API params

func (*UpdateAPIParams) WithTags added in v0.1.13

func (o *UpdateAPIParams) WithTags(tags []string) *UpdateAPIParams

WithTags adds the tags to the update API params

func (*UpdateAPIParams) WithTimeout

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

WithTimeout adds the timeout to the update API params

func (*UpdateAPIParams) WithXDispatchOrg added in v0.1.16

func (o *UpdateAPIParams) WithXDispatchOrg(xDispatchOrg string) *UpdateAPIParams

WithXDispatchOrg adds the xDispatchOrg to the update API params

func (*UpdateAPIParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type UpdateAPIReader

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

UpdateAPIReader is a Reader for the UpdateAPI structure.

func (*UpdateAPIReader) ReadResponse

func (o *UpdateAPIReader) 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