link

package
v0.22.10 Latest Latest
Warning

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

Go to latest
Published: Jan 12, 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 link API

func (a *Client) DeleteLink(params *DeleteLinkParams, opts ...ClientOption) (*DeleteLinkOK, error)

DeleteLink deletes a link

Delete a link by id. Requires admin access.

func (a *Client) DetailLink(params *DetailLinkParams, opts ...ClientOption) (*DetailLinkOK, error)

DetailLink retrieves a single link

Retrieves a single link by id. Requires admin access.

func (a *Client) ListLinks(params *ListLinksParams, opts ...ClientOption) (*ListLinksOK, error)

ListLinks lists links

Retrieves a list of link resources; does not supports filtering, sorting, or pagination. Requires admin access.

func (a *Client) PatchLink(params *PatchLinkParams, opts ...ClientOption) (*PatchLinkOK, error)

PatchLink updates the supplied fields on a link

Update the supplied fields on a link. Requires admin access.

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 {
	DeleteLink(params *DeleteLinkParams, opts ...ClientOption) (*DeleteLinkOK, error)

	DetailLink(params *DetailLinkParams, opts ...ClientOption) (*DetailLinkOK, error)

	ListLinks(params *ListLinksParams, opts ...ClientOption) (*ListLinksOK, error)

	PatchLink(params *PatchLinkParams, opts ...ClientOption) (*PatchLinkOK, 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 link API client.

type DeleteLinkBadRequest added in v0.17.121

type DeleteLinkBadRequest struct {
	Payload *rest_model.APIErrorEnvelope
}

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

The supplied request contains invalid fields or could not be parsed (json and non-json bodies). The error's code, message, and cause fields can be inspected for further information

func NewDeleteLinkBadRequest added in v0.17.121

func NewDeleteLinkBadRequest() *DeleteLinkBadRequest

NewDeleteLinkBadRequest creates a DeleteLinkBadRequest with default headers values

func (*DeleteLinkBadRequest) Error added in v0.17.121

func (o *DeleteLinkBadRequest) Error() string

func (*DeleteLinkBadRequest) GetPayload added in v0.17.121

func (*DeleteLinkBadRequest) IsClientError added in v0.21.38

func (o *DeleteLinkBadRequest) IsClientError() bool

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

func (*DeleteLinkBadRequest) IsCode added in v0.21.38

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

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

func (*DeleteLinkBadRequest) IsRedirect added in v0.21.38

func (o *DeleteLinkBadRequest) IsRedirect() bool

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

func (*DeleteLinkBadRequest) IsServerError added in v0.21.38

func (o *DeleteLinkBadRequest) IsServerError() bool

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

func (*DeleteLinkBadRequest) IsSuccess added in v0.21.38

func (o *DeleteLinkBadRequest) IsSuccess() bool

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

func (*DeleteLinkBadRequest) String added in v0.21.38

func (o *DeleteLinkBadRequest) String() string

type DeleteLinkOK added in v0.17.121

type DeleteLinkOK struct {
	Payload *rest_model.Empty
}

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

The delete request was successful and the resource has been removed

func NewDeleteLinkOK added in v0.17.121

func NewDeleteLinkOK() *DeleteLinkOK

NewDeleteLinkOK creates a DeleteLinkOK with default headers values

func (*DeleteLinkOK) Error added in v0.17.121

func (o *DeleteLinkOK) Error() string

func (*DeleteLinkOK) GetPayload added in v0.17.121

func (o *DeleteLinkOK) GetPayload() *rest_model.Empty

func (*DeleteLinkOK) IsClientError added in v0.21.38

func (o *DeleteLinkOK) IsClientError() bool

IsClientError returns true when this delete link o k response has a 4xx status code

func (*DeleteLinkOK) IsCode added in v0.21.38

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

IsCode returns true when this delete link o k response a status code equal to that given

func (*DeleteLinkOK) IsRedirect added in v0.21.38

func (o *DeleteLinkOK) IsRedirect() bool

IsRedirect returns true when this delete link o k response has a 3xx status code

func (*DeleteLinkOK) IsServerError added in v0.21.38

func (o *DeleteLinkOK) IsServerError() bool

IsServerError returns true when this delete link o k response has a 5xx status code

func (*DeleteLinkOK) IsSuccess added in v0.21.38

func (o *DeleteLinkOK) IsSuccess() bool

IsSuccess returns true when this delete link o k response has a 2xx status code

func (*DeleteLinkOK) String added in v0.21.38

func (o *DeleteLinkOK) String() string

type DeleteLinkParams added in v0.17.121

type DeleteLinkParams struct {

	/* ID.

	   The id of the requested resource
	*/
	ID string

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

DeleteLinkParams contains all the parameters to send to the API endpoint

for the delete link operation.

Typically these are written to a http.Request.

func NewDeleteLinkParams added in v0.17.121

func NewDeleteLinkParams() *DeleteLinkParams

NewDeleteLinkParams creates a new DeleteLinkParams 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 NewDeleteLinkParamsWithContext added in v0.17.121

func NewDeleteLinkParamsWithContext(ctx context.Context) *DeleteLinkParams

NewDeleteLinkParamsWithContext creates a new DeleteLinkParams object with the ability to set a context for a request.

func NewDeleteLinkParamsWithHTTPClient added in v0.17.121

func NewDeleteLinkParamsWithHTTPClient(client *http.Client) *DeleteLinkParams

NewDeleteLinkParamsWithHTTPClient creates a new DeleteLinkParams object with the ability to set a custom HTTPClient for a request.

func NewDeleteLinkParamsWithTimeout added in v0.17.121

func NewDeleteLinkParamsWithTimeout(timeout time.Duration) *DeleteLinkParams

NewDeleteLinkParamsWithTimeout creates a new DeleteLinkParams object with the ability to set a timeout on a request.

func (*DeleteLinkParams) SetContext added in v0.17.121

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

SetContext adds the context to the delete link params

func (*DeleteLinkParams) SetDefaults added in v0.17.121

func (o *DeleteLinkParams) SetDefaults()

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

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

func (*DeleteLinkParams) SetHTTPClient added in v0.17.121

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

SetHTTPClient adds the HTTPClient to the delete link params

func (*DeleteLinkParams) SetID added in v0.17.121

func (o *DeleteLinkParams) SetID(id string)

SetID adds the id to the delete link params

func (*DeleteLinkParams) SetTimeout added in v0.17.121

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

SetTimeout adds the timeout to the delete link params

func (*DeleteLinkParams) WithContext added in v0.17.121

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

WithContext adds the context to the delete link params

func (*DeleteLinkParams) WithDefaults added in v0.17.121

func (o *DeleteLinkParams) WithDefaults() *DeleteLinkParams

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

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

func (*DeleteLinkParams) WithHTTPClient added in v0.17.121

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

WithHTTPClient adds the HTTPClient to the delete link params

func (*DeleteLinkParams) WithID added in v0.17.121

func (o *DeleteLinkParams) WithID(id string) *DeleteLinkParams

WithID adds the id to the delete link params

func (*DeleteLinkParams) WithTimeout added in v0.17.121

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

WithTimeout adds the timeout to the delete link params

func (*DeleteLinkParams) WriteToRequest added in v0.17.121

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

WriteToRequest writes these params to a swagger request

type DeleteLinkReader added in v0.17.121

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

DeleteLinkReader is a Reader for the DeleteLink structure.

func (*DeleteLinkReader) ReadResponse added in v0.17.121

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

ReadResponse reads a server response into the received o.

type DeleteLinkUnauthorized added in v0.17.121

type DeleteLinkUnauthorized struct {
	Payload *rest_model.APIErrorEnvelope
}

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

The currently supplied session does not have the correct access rights to request this resource

func NewDeleteLinkUnauthorized added in v0.17.121

func NewDeleteLinkUnauthorized() *DeleteLinkUnauthorized

NewDeleteLinkUnauthorized creates a DeleteLinkUnauthorized with default headers values

func (*DeleteLinkUnauthorized) Error added in v0.17.121

func (o *DeleteLinkUnauthorized) Error() string

func (*DeleteLinkUnauthorized) GetPayload added in v0.17.121

func (*DeleteLinkUnauthorized) IsClientError added in v0.21.38

func (o *DeleteLinkUnauthorized) IsClientError() bool

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

func (*DeleteLinkUnauthorized) IsCode added in v0.21.38

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

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

func (*DeleteLinkUnauthorized) IsRedirect added in v0.21.38

func (o *DeleteLinkUnauthorized) IsRedirect() bool

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

func (*DeleteLinkUnauthorized) IsServerError added in v0.21.38

func (o *DeleteLinkUnauthorized) IsServerError() bool

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

func (*DeleteLinkUnauthorized) IsSuccess added in v0.21.38

func (o *DeleteLinkUnauthorized) IsSuccess() bool

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

func (*DeleteLinkUnauthorized) String added in v0.21.38

func (o *DeleteLinkUnauthorized) String() string

type DetailLinkNotFound

type DetailLinkNotFound struct {
	Payload *rest_model.APIErrorEnvelope
}

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

The requested resource does not exist

func NewDetailLinkNotFound

func NewDetailLinkNotFound() *DetailLinkNotFound

NewDetailLinkNotFound creates a DetailLinkNotFound with default headers values

func (*DetailLinkNotFound) Error

func (o *DetailLinkNotFound) Error() string

func (*DetailLinkNotFound) GetPayload

func (*DetailLinkNotFound) IsClientError added in v0.21.38

func (o *DetailLinkNotFound) IsClientError() bool

IsClientError returns true when this detail link not found response has a 4xx status code

func (*DetailLinkNotFound) IsCode added in v0.21.38

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

IsCode returns true when this detail link not found response a status code equal to that given

func (*DetailLinkNotFound) IsRedirect added in v0.21.38

func (o *DetailLinkNotFound) IsRedirect() bool

IsRedirect returns true when this detail link not found response has a 3xx status code

func (*DetailLinkNotFound) IsServerError added in v0.21.38

func (o *DetailLinkNotFound) IsServerError() bool

IsServerError returns true when this detail link not found response has a 5xx status code

func (*DetailLinkNotFound) IsSuccess added in v0.21.38

func (o *DetailLinkNotFound) IsSuccess() bool

IsSuccess returns true when this detail link not found response has a 2xx status code

func (*DetailLinkNotFound) String added in v0.21.38

func (o *DetailLinkNotFound) String() string

type DetailLinkOK

type DetailLinkOK struct {
	Payload *rest_model.DetailLinkEnvelope
}

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

A single link

func NewDetailLinkOK

func NewDetailLinkOK() *DetailLinkOK

NewDetailLinkOK creates a DetailLinkOK with default headers values

func (*DetailLinkOK) Error

func (o *DetailLinkOK) Error() string

func (*DetailLinkOK) GetPayload

func (o *DetailLinkOK) GetPayload() *rest_model.DetailLinkEnvelope

func (*DetailLinkOK) IsClientError added in v0.21.38

func (o *DetailLinkOK) IsClientError() bool

IsClientError returns true when this detail link o k response has a 4xx status code

func (*DetailLinkOK) IsCode added in v0.21.38

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

IsCode returns true when this detail link o k response a status code equal to that given

func (*DetailLinkOK) IsRedirect added in v0.21.38

func (o *DetailLinkOK) IsRedirect() bool

IsRedirect returns true when this detail link o k response has a 3xx status code

func (*DetailLinkOK) IsServerError added in v0.21.38

func (o *DetailLinkOK) IsServerError() bool

IsServerError returns true when this detail link o k response has a 5xx status code

func (*DetailLinkOK) IsSuccess added in v0.21.38

func (o *DetailLinkOK) IsSuccess() bool

IsSuccess returns true when this detail link o k response has a 2xx status code

func (*DetailLinkOK) String added in v0.21.38

func (o *DetailLinkOK) String() string

type DetailLinkParams

type DetailLinkParams struct {

	/* ID.

	   The id of the requested resource
	*/
	ID string

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

DetailLinkParams contains all the parameters to send to the API endpoint

for the detail link operation.

Typically these are written to a http.Request.

func NewDetailLinkParams

func NewDetailLinkParams() *DetailLinkParams

NewDetailLinkParams creates a new DetailLinkParams 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 NewDetailLinkParamsWithContext

func NewDetailLinkParamsWithContext(ctx context.Context) *DetailLinkParams

NewDetailLinkParamsWithContext creates a new DetailLinkParams object with the ability to set a context for a request.

func NewDetailLinkParamsWithHTTPClient

func NewDetailLinkParamsWithHTTPClient(client *http.Client) *DetailLinkParams

NewDetailLinkParamsWithHTTPClient creates a new DetailLinkParams object with the ability to set a custom HTTPClient for a request.

func NewDetailLinkParamsWithTimeout

func NewDetailLinkParamsWithTimeout(timeout time.Duration) *DetailLinkParams

NewDetailLinkParamsWithTimeout creates a new DetailLinkParams object with the ability to set a timeout on a request.

func (*DetailLinkParams) SetContext

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

SetContext adds the context to the detail link params

func (*DetailLinkParams) SetDefaults

func (o *DetailLinkParams) SetDefaults()

SetDefaults hydrates default values in the detail link params (not the query body).

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

func (*DetailLinkParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the detail link params

func (*DetailLinkParams) SetID

func (o *DetailLinkParams) SetID(id string)

SetID adds the id to the detail link params

func (*DetailLinkParams) SetTimeout

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

SetTimeout adds the timeout to the detail link params

func (*DetailLinkParams) WithContext

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

WithContext adds the context to the detail link params

func (*DetailLinkParams) WithDefaults

func (o *DetailLinkParams) WithDefaults() *DetailLinkParams

WithDefaults hydrates default values in the detail link params (not the query body).

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

func (*DetailLinkParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the detail link params

func (*DetailLinkParams) WithID

func (o *DetailLinkParams) WithID(id string) *DetailLinkParams

WithID adds the id to the detail link params

func (*DetailLinkParams) WithTimeout

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

WithTimeout adds the timeout to the detail link params

func (*DetailLinkParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type DetailLinkReader

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

DetailLinkReader is a Reader for the DetailLink structure.

func (*DetailLinkReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type DetailLinkUnauthorized

type DetailLinkUnauthorized struct {
	Payload *rest_model.APIErrorEnvelope
}

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

The currently supplied session does not have the correct access rights to request this resource

func NewDetailLinkUnauthorized

func NewDetailLinkUnauthorized() *DetailLinkUnauthorized

NewDetailLinkUnauthorized creates a DetailLinkUnauthorized with default headers values

func (*DetailLinkUnauthorized) Error

func (o *DetailLinkUnauthorized) Error() string

func (*DetailLinkUnauthorized) GetPayload

func (*DetailLinkUnauthorized) IsClientError added in v0.21.38

func (o *DetailLinkUnauthorized) IsClientError() bool

IsClientError returns true when this detail link unauthorized response has a 4xx status code

func (*DetailLinkUnauthorized) IsCode added in v0.21.38

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

IsCode returns true when this detail link unauthorized response a status code equal to that given

func (*DetailLinkUnauthorized) IsRedirect added in v0.21.38

func (o *DetailLinkUnauthorized) IsRedirect() bool

IsRedirect returns true when this detail link unauthorized response has a 3xx status code

func (*DetailLinkUnauthorized) IsServerError added in v0.21.38

func (o *DetailLinkUnauthorized) IsServerError() bool

IsServerError returns true when this detail link unauthorized response has a 5xx status code

func (*DetailLinkUnauthorized) IsSuccess added in v0.21.38

func (o *DetailLinkUnauthorized) IsSuccess() bool

IsSuccess returns true when this detail link unauthorized response has a 2xx status code

func (*DetailLinkUnauthorized) String added in v0.21.38

func (o *DetailLinkUnauthorized) String() string

type ListLinksOK

type ListLinksOK struct {
	Payload *rest_model.ListLinksEnvelope
}

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

A list of links

func NewListLinksOK

func NewListLinksOK() *ListLinksOK

NewListLinksOK creates a ListLinksOK with default headers values

func (*ListLinksOK) Error

func (o *ListLinksOK) Error() string

func (*ListLinksOK) GetPayload

func (o *ListLinksOK) GetPayload() *rest_model.ListLinksEnvelope

func (*ListLinksOK) IsClientError added in v0.21.38

func (o *ListLinksOK) IsClientError() bool

IsClientError returns true when this list links o k response has a 4xx status code

func (*ListLinksOK) IsCode added in v0.21.38

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

IsCode returns true when this list links o k response a status code equal to that given

func (*ListLinksOK) IsRedirect added in v0.21.38

func (o *ListLinksOK) IsRedirect() bool

IsRedirect returns true when this list links o k response has a 3xx status code

func (*ListLinksOK) IsServerError added in v0.21.38

func (o *ListLinksOK) IsServerError() bool

IsServerError returns true when this list links o k response has a 5xx status code

func (*ListLinksOK) IsSuccess added in v0.21.38

func (o *ListLinksOK) IsSuccess() bool

IsSuccess returns true when this list links o k response has a 2xx status code

func (*ListLinksOK) String added in v0.21.38

func (o *ListLinksOK) String() string

type ListLinksParams

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

ListLinksParams contains all the parameters to send to the API endpoint

for the list links operation.

Typically these are written to a http.Request.

func NewListLinksParams

func NewListLinksParams() *ListLinksParams

NewListLinksParams creates a new ListLinksParams 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 NewListLinksParamsWithContext

func NewListLinksParamsWithContext(ctx context.Context) *ListLinksParams

NewListLinksParamsWithContext creates a new ListLinksParams object with the ability to set a context for a request.

func NewListLinksParamsWithHTTPClient

func NewListLinksParamsWithHTTPClient(client *http.Client) *ListLinksParams

NewListLinksParamsWithHTTPClient creates a new ListLinksParams object with the ability to set a custom HTTPClient for a request.

func NewListLinksParamsWithTimeout

func NewListLinksParamsWithTimeout(timeout time.Duration) *ListLinksParams

NewListLinksParamsWithTimeout creates a new ListLinksParams object with the ability to set a timeout on a request.

func (*ListLinksParams) SetContext

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

SetContext adds the context to the list links params

func (*ListLinksParams) SetDefaults

func (o *ListLinksParams) SetDefaults()

SetDefaults hydrates default values in the list links params (not the query body).

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

func (*ListLinksParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the list links params

func (*ListLinksParams) SetTimeout

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

SetTimeout adds the timeout to the list links params

func (*ListLinksParams) WithContext

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

WithContext adds the context to the list links params

func (*ListLinksParams) WithDefaults

func (o *ListLinksParams) WithDefaults() *ListLinksParams

WithDefaults hydrates default values in the list links params (not the query body).

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

func (*ListLinksParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the list links params

func (*ListLinksParams) WithTimeout

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

WithTimeout adds the timeout to the list links params

func (*ListLinksParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type ListLinksReader

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

ListLinksReader is a Reader for the ListLinks structure.

func (*ListLinksReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type ListLinksUnauthorized

type ListLinksUnauthorized struct {
	Payload *rest_model.APIErrorEnvelope
}

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

The currently supplied session does not have the correct access rights to request this resource

func NewListLinksUnauthorized

func NewListLinksUnauthorized() *ListLinksUnauthorized

NewListLinksUnauthorized creates a ListLinksUnauthorized with default headers values

func (*ListLinksUnauthorized) Error

func (o *ListLinksUnauthorized) Error() string

func (*ListLinksUnauthorized) GetPayload

func (*ListLinksUnauthorized) IsClientError added in v0.21.38

func (o *ListLinksUnauthorized) IsClientError() bool

IsClientError returns true when this list links unauthorized response has a 4xx status code

func (*ListLinksUnauthorized) IsCode added in v0.21.38

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

IsCode returns true when this list links unauthorized response a status code equal to that given

func (*ListLinksUnauthorized) IsRedirect added in v0.21.38

func (o *ListLinksUnauthorized) IsRedirect() bool

IsRedirect returns true when this list links unauthorized response has a 3xx status code

func (*ListLinksUnauthorized) IsServerError added in v0.21.38

func (o *ListLinksUnauthorized) IsServerError() bool

IsServerError returns true when this list links unauthorized response has a 5xx status code

func (*ListLinksUnauthorized) IsSuccess added in v0.21.38

func (o *ListLinksUnauthorized) IsSuccess() bool

IsSuccess returns true when this list links unauthorized response has a 2xx status code

func (*ListLinksUnauthorized) String added in v0.21.38

func (o *ListLinksUnauthorized) String() string

type PatchLinkBadRequest

type PatchLinkBadRequest struct {
	Payload *rest_model.APIErrorEnvelope
}

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

The supplied request contains invalid fields or could not be parsed (json and non-json bodies). The error's code, message, and cause fields can be inspected for further information

func NewPatchLinkBadRequest

func NewPatchLinkBadRequest() *PatchLinkBadRequest

NewPatchLinkBadRequest creates a PatchLinkBadRequest with default headers values

func (*PatchLinkBadRequest) Error

func (o *PatchLinkBadRequest) Error() string

func (*PatchLinkBadRequest) GetPayload

func (*PatchLinkBadRequest) IsClientError added in v0.21.38

func (o *PatchLinkBadRequest) IsClientError() bool

IsClientError returns true when this patch link bad request response has a 4xx status code

func (*PatchLinkBadRequest) IsCode added in v0.21.38

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

IsCode returns true when this patch link bad request response a status code equal to that given

func (*PatchLinkBadRequest) IsRedirect added in v0.21.38

func (o *PatchLinkBadRequest) IsRedirect() bool

IsRedirect returns true when this patch link bad request response has a 3xx status code

func (*PatchLinkBadRequest) IsServerError added in v0.21.38

func (o *PatchLinkBadRequest) IsServerError() bool

IsServerError returns true when this patch link bad request response has a 5xx status code

func (*PatchLinkBadRequest) IsSuccess added in v0.21.38

func (o *PatchLinkBadRequest) IsSuccess() bool

IsSuccess returns true when this patch link bad request response has a 2xx status code

func (*PatchLinkBadRequest) String added in v0.21.38

func (o *PatchLinkBadRequest) String() string

type PatchLinkNotFound

type PatchLinkNotFound struct {
	Payload *rest_model.APIErrorEnvelope
}

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

The requested resource does not exist

func NewPatchLinkNotFound

func NewPatchLinkNotFound() *PatchLinkNotFound

NewPatchLinkNotFound creates a PatchLinkNotFound with default headers values

func (*PatchLinkNotFound) Error

func (o *PatchLinkNotFound) Error() string

func (*PatchLinkNotFound) GetPayload

func (*PatchLinkNotFound) IsClientError added in v0.21.38

func (o *PatchLinkNotFound) IsClientError() bool

IsClientError returns true when this patch link not found response has a 4xx status code

func (*PatchLinkNotFound) IsCode added in v0.21.38

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

IsCode returns true when this patch link not found response a status code equal to that given

func (*PatchLinkNotFound) IsRedirect added in v0.21.38

func (o *PatchLinkNotFound) IsRedirect() bool

IsRedirect returns true when this patch link not found response has a 3xx status code

func (*PatchLinkNotFound) IsServerError added in v0.21.38

func (o *PatchLinkNotFound) IsServerError() bool

IsServerError returns true when this patch link not found response has a 5xx status code

func (*PatchLinkNotFound) IsSuccess added in v0.21.38

func (o *PatchLinkNotFound) IsSuccess() bool

IsSuccess returns true when this patch link not found response has a 2xx status code

func (*PatchLinkNotFound) String added in v0.21.38

func (o *PatchLinkNotFound) String() string

type PatchLinkOK

type PatchLinkOK struct {
	Payload *rest_model.Empty
}

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

The patch request was successful and the resource has been altered

func NewPatchLinkOK

func NewPatchLinkOK() *PatchLinkOK

NewPatchLinkOK creates a PatchLinkOK with default headers values

func (*PatchLinkOK) Error

func (o *PatchLinkOK) Error() string

func (*PatchLinkOK) GetPayload

func (o *PatchLinkOK) GetPayload() *rest_model.Empty

func (*PatchLinkOK) IsClientError added in v0.21.38

func (o *PatchLinkOK) IsClientError() bool

IsClientError returns true when this patch link o k response has a 4xx status code

func (*PatchLinkOK) IsCode added in v0.21.38

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

IsCode returns true when this patch link o k response a status code equal to that given

func (*PatchLinkOK) IsRedirect added in v0.21.38

func (o *PatchLinkOK) IsRedirect() bool

IsRedirect returns true when this patch link o k response has a 3xx status code

func (*PatchLinkOK) IsServerError added in v0.21.38

func (o *PatchLinkOK) IsServerError() bool

IsServerError returns true when this patch link o k response has a 5xx status code

func (*PatchLinkOK) IsSuccess added in v0.21.38

func (o *PatchLinkOK) IsSuccess() bool

IsSuccess returns true when this patch link o k response has a 2xx status code

func (*PatchLinkOK) String added in v0.21.38

func (o *PatchLinkOK) String() string

type PatchLinkParams

type PatchLinkParams struct {

	/* ID.

	   The id of the requested resource
	*/
	ID string

	/* Link.

	   A link patch object
	*/
	Link *rest_model.LinkPatch

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

PatchLinkParams contains all the parameters to send to the API endpoint

for the patch link operation.

Typically these are written to a http.Request.

func NewPatchLinkParams

func NewPatchLinkParams() *PatchLinkParams

NewPatchLinkParams creates a new PatchLinkParams 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 NewPatchLinkParamsWithContext

func NewPatchLinkParamsWithContext(ctx context.Context) *PatchLinkParams

NewPatchLinkParamsWithContext creates a new PatchLinkParams object with the ability to set a context for a request.

func NewPatchLinkParamsWithHTTPClient

func NewPatchLinkParamsWithHTTPClient(client *http.Client) *PatchLinkParams

NewPatchLinkParamsWithHTTPClient creates a new PatchLinkParams object with the ability to set a custom HTTPClient for a request.

func NewPatchLinkParamsWithTimeout

func NewPatchLinkParamsWithTimeout(timeout time.Duration) *PatchLinkParams

NewPatchLinkParamsWithTimeout creates a new PatchLinkParams object with the ability to set a timeout on a request.

func (*PatchLinkParams) SetContext

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

SetContext adds the context to the patch link params

func (*PatchLinkParams) SetDefaults

func (o *PatchLinkParams) SetDefaults()

SetDefaults hydrates default values in the patch link params (not the query body).

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

func (*PatchLinkParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the patch link params

func (*PatchLinkParams) SetID

func (o *PatchLinkParams) SetID(id string)

SetID adds the id to the patch link params

func (o *PatchLinkParams) SetLink(link *rest_model.LinkPatch)

SetLink adds the link to the patch link params

func (*PatchLinkParams) SetTimeout

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

SetTimeout adds the timeout to the patch link params

func (*PatchLinkParams) WithContext

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

WithContext adds the context to the patch link params

func (*PatchLinkParams) WithDefaults

func (o *PatchLinkParams) WithDefaults() *PatchLinkParams

WithDefaults hydrates default values in the patch link params (not the query body).

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

func (*PatchLinkParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the patch link params

func (*PatchLinkParams) WithID

func (o *PatchLinkParams) WithID(id string) *PatchLinkParams

WithID adds the id to the patch link params

WithLink adds the link to the patch link params

func (*PatchLinkParams) WithTimeout

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

WithTimeout adds the timeout to the patch link params

func (*PatchLinkParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type PatchLinkReader

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

PatchLinkReader is a Reader for the PatchLink structure.

func (*PatchLinkReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type PatchLinkUnauthorized

type PatchLinkUnauthorized struct {
	Payload *rest_model.APIErrorEnvelope
}

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

The currently supplied session does not have the correct access rights to request this resource

func NewPatchLinkUnauthorized

func NewPatchLinkUnauthorized() *PatchLinkUnauthorized

NewPatchLinkUnauthorized creates a PatchLinkUnauthorized with default headers values

func (*PatchLinkUnauthorized) Error

func (o *PatchLinkUnauthorized) Error() string

func (*PatchLinkUnauthorized) GetPayload

func (*PatchLinkUnauthorized) IsClientError added in v0.21.38

func (o *PatchLinkUnauthorized) IsClientError() bool

IsClientError returns true when this patch link unauthorized response has a 4xx status code

func (*PatchLinkUnauthorized) IsCode added in v0.21.38

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

IsCode returns true when this patch link unauthorized response a status code equal to that given

func (*PatchLinkUnauthorized) IsRedirect added in v0.21.38

func (o *PatchLinkUnauthorized) IsRedirect() bool

IsRedirect returns true when this patch link unauthorized response has a 3xx status code

func (*PatchLinkUnauthorized) IsServerError added in v0.21.38

func (o *PatchLinkUnauthorized) IsServerError() bool

IsServerError returns true when this patch link unauthorized response has a 5xx status code

func (*PatchLinkUnauthorized) IsSuccess added in v0.21.38

func (o *PatchLinkUnauthorized) IsSuccess() bool

IsSuccess returns true when this patch link unauthorized response has a 2xx status code

func (*PatchLinkUnauthorized) String added in v0.21.38

func (o *PatchLinkUnauthorized) String() string

Jump to

Keyboard shortcuts

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