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

endpoint

package
v0.1.24 Latest Latest
Warning

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

Go to latest
Published: Sep 7, 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 AddAPIDefault added in v0.1.18

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

AddAPIDefault handles this case with default header values.

Unknown error

func NewAddAPIDefault added in v0.1.18

func NewAddAPIDefault(code int) *AddAPIDefault

NewAddAPIDefault creates a AddAPIDefault with default headers values

func (*AddAPIDefault) Code added in v0.1.18

func (o *AddAPIDefault) Code() int

Code gets the status code for the add API default response

func (*AddAPIDefault) Error added in v0.1.18

func (o *AddAPIDefault) Error() string

type AddAPIForbidden added in v0.1.18

type AddAPIForbidden struct {
	Payload *v1.Error
}

AddAPIForbidden handles this case with default header values.

access to this resource is forbidden

func NewAddAPIForbidden added in v0.1.18

func NewAddAPIForbidden() *AddAPIForbidden

NewAddAPIForbidden creates a AddAPIForbidden with default headers values

func (*AddAPIForbidden) Error added in v0.1.18

func (o *AddAPIForbidden) 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 DeleteAPIDefault added in v0.1.18

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

DeleteAPIDefault handles this case with default header values.

Unknown error

func NewDeleteAPIDefault added in v0.1.18

func NewDeleteAPIDefault(code int) *DeleteAPIDefault

NewDeleteAPIDefault creates a DeleteAPIDefault with default headers values

func (*DeleteAPIDefault) Code added in v0.1.18

func (o *DeleteAPIDefault) Code() int

Code gets the status code for the delete API default response

func (*DeleteAPIDefault) Error added in v0.1.18

func (o *DeleteAPIDefault) Error() string

type DeleteAPIForbidden added in v0.1.18

type DeleteAPIForbidden struct {
	Payload *v1.Error
}

DeleteAPIForbidden handles this case with default header values.

access to this resource is forbidden

func NewDeleteAPIForbidden added in v0.1.18

func NewDeleteAPIForbidden() *DeleteAPIForbidden

NewDeleteAPIForbidden creates a DeleteAPIForbidden with default headers values

func (*DeleteAPIForbidden) Error added in v0.1.18

func (o *DeleteAPIForbidden) Error() string

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 DeleteAPIUnauthorized added in v0.1.18

type DeleteAPIUnauthorized struct {
	Payload *v1.Error
}

DeleteAPIUnauthorized handles this case with default header values.

Unauthorized Request

func NewDeleteAPIUnauthorized added in v0.1.18

func NewDeleteAPIUnauthorized() *DeleteAPIUnauthorized

NewDeleteAPIUnauthorized creates a DeleteAPIUnauthorized with default headers values

func (*DeleteAPIUnauthorized) Error added in v0.1.18

func (o *DeleteAPIUnauthorized) Error() string

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 GetAPIDefault added in v0.1.18

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

GetAPIDefault handles this case with default header values.

Unknown error

func NewGetAPIDefault added in v0.1.18

func NewGetAPIDefault(code int) *GetAPIDefault

NewGetAPIDefault creates a GetAPIDefault with default headers values

func (*GetAPIDefault) Code added in v0.1.18

func (o *GetAPIDefault) Code() int

Code gets the status code for the get API default response

func (*GetAPIDefault) Error added in v0.1.18

func (o *GetAPIDefault) Error() string

type GetAPIForbidden added in v0.1.18

type GetAPIForbidden struct {
	Payload *v1.Error
}

GetAPIForbidden handles this case with default header values.

access to this resource is forbidden

func NewGetAPIForbidden added in v0.1.18

func NewGetAPIForbidden() *GetAPIForbidden

NewGetAPIForbidden creates a GetAPIForbidden with default headers values

func (*GetAPIForbidden) Error added in v0.1.18

func (o *GetAPIForbidden) 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 GetAPIUnauthorized added in v0.1.18

type GetAPIUnauthorized struct {
	Payload *v1.Error
}

GetAPIUnauthorized handles this case with default header values.

Unauthorized Request

func NewGetAPIUnauthorized added in v0.1.18

func NewGetAPIUnauthorized() *GetAPIUnauthorized

NewGetAPIUnauthorized creates a GetAPIUnauthorized with default headers values

func (*GetAPIUnauthorized) Error added in v0.1.18

func (o *GetAPIUnauthorized) Error() string

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 GetApisForbidden added in v0.1.18

type GetApisForbidden struct {
	Payload *v1.Error
}

GetApisForbidden handles this case with default header values.

access to this resource is forbidden

func NewGetApisForbidden added in v0.1.18

func NewGetApisForbidden() *GetApisForbidden

NewGetApisForbidden creates a GetApisForbidden with default headers values

func (*GetApisForbidden) Error added in v0.1.18

func (o *GetApisForbidden) Error() string

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 GetApisUnauthorized added in v0.1.18

type GetApisUnauthorized struct {
	Payload *v1.Error
}

GetApisUnauthorized handles this case with default header values.

Unauthorized Request

func NewGetApisUnauthorized added in v0.1.18

func NewGetApisUnauthorized() *GetApisUnauthorized

NewGetApisUnauthorized creates a GetApisUnauthorized with default headers values

func (*GetApisUnauthorized) Error added in v0.1.18

func (o *GetApisUnauthorized) Error() string

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 UpdateAPIDefault added in v0.1.18

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

UpdateAPIDefault handles this case with default header values.

Unknown error

func NewUpdateAPIDefault added in v0.1.18

func NewUpdateAPIDefault(code int) *UpdateAPIDefault

NewUpdateAPIDefault creates a UpdateAPIDefault with default headers values

func (*UpdateAPIDefault) Code added in v0.1.18

func (o *UpdateAPIDefault) Code() int

Code gets the status code for the update API default response

func (*UpdateAPIDefault) Error added in v0.1.18

func (o *UpdateAPIDefault) Error() string

type UpdateAPIForbidden added in v0.1.18

type UpdateAPIForbidden struct {
	Payload *v1.Error
}

UpdateAPIForbidden handles this case with default header values.

access to this resource is forbidden

func NewUpdateAPIForbidden added in v0.1.18

func NewUpdateAPIForbidden() *UpdateAPIForbidden

NewUpdateAPIForbidden creates a UpdateAPIForbidden with default headers values

func (*UpdateAPIForbidden) Error added in v0.1.18

func (o *UpdateAPIForbidden) Error() string

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.

type UpdateAPIUnauthorized added in v0.1.18

type UpdateAPIUnauthorized struct {
	Payload *v1.Error
}

UpdateAPIUnauthorized handles this case with default header values.

Unauthorized Request

func NewUpdateAPIUnauthorized added in v0.1.18

func NewUpdateAPIUnauthorized() *UpdateAPIUnauthorized

NewUpdateAPIUnauthorized creates a UpdateAPIUnauthorized with default headers values

func (*UpdateAPIUnauthorized) Error added in v0.1.18

func (o *UpdateAPIUnauthorized) Error() string

Jump to

Keyboard shortcuts

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