link

package
v0.24.19 Latest Latest
Warning

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

Go to latest
Published: Aug 30, 2023 License: Apache-2.0 Imports: 10 Imported by: 1

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

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

func NewDeleteLinkBadRequest() *DeleteLinkBadRequest

NewDeleteLinkBadRequest creates a DeleteLinkBadRequest with default headers values

func (*DeleteLinkBadRequest) Code

func (o *DeleteLinkBadRequest) Code() int

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

func (*DeleteLinkBadRequest) Error

func (o *DeleteLinkBadRequest) Error() string

func (*DeleteLinkBadRequest) GetPayload

func (*DeleteLinkBadRequest) IsClientError

func (o *DeleteLinkBadRequest) IsClientError() bool

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

func (*DeleteLinkBadRequest) IsCode

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

func (o *DeleteLinkBadRequest) IsRedirect() bool

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

func (*DeleteLinkBadRequest) IsServerError

func (o *DeleteLinkBadRequest) IsServerError() bool

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

func (*DeleteLinkBadRequest) IsSuccess

func (o *DeleteLinkBadRequest) IsSuccess() bool

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

func (*DeleteLinkBadRequest) String

func (o *DeleteLinkBadRequest) String() string

type DeleteLinkOK

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

func NewDeleteLinkOK() *DeleteLinkOK

NewDeleteLinkOK creates a DeleteLinkOK with default headers values

func (*DeleteLinkOK) Code

func (o *DeleteLinkOK) Code() int

Code gets the status code for the delete link o k response

func (*DeleteLinkOK) Error

func (o *DeleteLinkOK) Error() string

func (*DeleteLinkOK) GetPayload

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

func (*DeleteLinkOK) IsClientError

func (o *DeleteLinkOK) IsClientError() bool

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

func (*DeleteLinkOK) IsCode

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

func (o *DeleteLinkOK) IsRedirect() bool

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

func (*DeleteLinkOK) IsServerError

func (o *DeleteLinkOK) IsServerError() bool

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

func (*DeleteLinkOK) IsSuccess

func (o *DeleteLinkOK) IsSuccess() bool

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

func (*DeleteLinkOK) String

func (o *DeleteLinkOK) String() string

type DeleteLinkParams

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

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

func NewDeleteLinkParamsWithContext(ctx context.Context) *DeleteLinkParams

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

func NewDeleteLinkParamsWithHTTPClient

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

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

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

SetContext adds the context to the delete link params

func (*DeleteLinkParams) SetDefaults

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

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

SetHTTPClient adds the HTTPClient to the delete link params

func (*DeleteLinkParams) SetID

func (o *DeleteLinkParams) SetID(id string)

SetID adds the id to the delete link params

func (*DeleteLinkParams) SetTimeout

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

SetTimeout adds the timeout to the delete link params

func (*DeleteLinkParams) WithContext

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

WithContext adds the context to the delete link params

func (*DeleteLinkParams) WithDefaults

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

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

WithHTTPClient adds the HTTPClient to the delete link params

func (*DeleteLinkParams) WithID

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

WithID adds the id to the delete link params

func (*DeleteLinkParams) WithTimeout

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

WithTimeout adds the timeout to the delete link params

func (*DeleteLinkParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type DeleteLinkReader

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

DeleteLinkReader is a Reader for the DeleteLink structure.

func (*DeleteLinkReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type DeleteLinkUnauthorized

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

func NewDeleteLinkUnauthorized() *DeleteLinkUnauthorized

NewDeleteLinkUnauthorized creates a DeleteLinkUnauthorized with default headers values

func (*DeleteLinkUnauthorized) Code

func (o *DeleteLinkUnauthorized) Code() int

Code gets the status code for the delete link unauthorized response

func (*DeleteLinkUnauthorized) Error

func (o *DeleteLinkUnauthorized) Error() string

func (*DeleteLinkUnauthorized) GetPayload

func (*DeleteLinkUnauthorized) IsClientError

func (o *DeleteLinkUnauthorized) IsClientError() bool

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

func (*DeleteLinkUnauthorized) IsCode

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

func (o *DeleteLinkUnauthorized) IsRedirect() bool

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

func (*DeleteLinkUnauthorized) IsServerError

func (o *DeleteLinkUnauthorized) IsServerError() bool

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

func (*DeleteLinkUnauthorized) IsSuccess

func (o *DeleteLinkUnauthorized) IsSuccess() bool

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

func (*DeleteLinkUnauthorized) String

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) Code

func (o *DetailLinkNotFound) Code() int

Code gets the status code for the detail link not found response

func (*DetailLinkNotFound) Error

func (o *DetailLinkNotFound) Error() string

func (*DetailLinkNotFound) GetPayload

func (*DetailLinkNotFound) IsClientError

func (o *DetailLinkNotFound) IsClientError() bool

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

func (*DetailLinkNotFound) IsCode

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

func (o *DetailLinkNotFound) IsRedirect() bool

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

func (*DetailLinkNotFound) IsServerError

func (o *DetailLinkNotFound) IsServerError() bool

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

func (*DetailLinkNotFound) IsSuccess

func (o *DetailLinkNotFound) IsSuccess() bool

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

func (*DetailLinkNotFound) String

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) Code

func (o *DetailLinkOK) Code() int

Code gets the status code for the detail link o k response

func (*DetailLinkOK) Error

func (o *DetailLinkOK) Error() string

func (*DetailLinkOK) GetPayload

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

func (*DetailLinkOK) IsClientError

func (o *DetailLinkOK) IsClientError() bool

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

func (*DetailLinkOK) IsCode

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

func (o *DetailLinkOK) IsRedirect() bool

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

func (*DetailLinkOK) IsServerError

func (o *DetailLinkOK) IsServerError() bool

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

func (*DetailLinkOK) IsSuccess

func (o *DetailLinkOK) IsSuccess() bool

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

func (*DetailLinkOK) String

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) Code

func (o *DetailLinkUnauthorized) Code() int

Code gets the status code for the detail link unauthorized response

func (*DetailLinkUnauthorized) Error

func (o *DetailLinkUnauthorized) Error() string

func (*DetailLinkUnauthorized) GetPayload

func (*DetailLinkUnauthorized) IsClientError

func (o *DetailLinkUnauthorized) IsClientError() bool

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

func (*DetailLinkUnauthorized) IsCode

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

func (o *DetailLinkUnauthorized) IsRedirect() bool

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

func (*DetailLinkUnauthorized) IsServerError

func (o *DetailLinkUnauthorized) IsServerError() bool

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

func (*DetailLinkUnauthorized) IsSuccess

func (o *DetailLinkUnauthorized) IsSuccess() bool

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

func (*DetailLinkUnauthorized) String

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) Code

func (o *ListLinksOK) Code() int

Code gets the status code for the list links o k response

func (*ListLinksOK) Error

func (o *ListLinksOK) Error() string

func (*ListLinksOK) GetPayload

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

func (*ListLinksOK) IsClientError

func (o *ListLinksOK) IsClientError() bool

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

func (*ListLinksOK) IsCode

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

func (o *ListLinksOK) IsRedirect() bool

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

func (*ListLinksOK) IsServerError

func (o *ListLinksOK) IsServerError() bool

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

func (*ListLinksOK) IsSuccess

func (o *ListLinksOK) IsSuccess() bool

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

func (*ListLinksOK) String

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) Code

func (o *ListLinksUnauthorized) Code() int

Code gets the status code for the list links unauthorized response

func (*ListLinksUnauthorized) Error

func (o *ListLinksUnauthorized) Error() string

func (*ListLinksUnauthorized) GetPayload

func (*ListLinksUnauthorized) IsClientError

func (o *ListLinksUnauthorized) IsClientError() bool

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

func (*ListLinksUnauthorized) IsCode

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

func (o *ListLinksUnauthorized) IsRedirect() bool

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

func (*ListLinksUnauthorized) IsServerError

func (o *ListLinksUnauthorized) IsServerError() bool

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

func (*ListLinksUnauthorized) IsSuccess

func (o *ListLinksUnauthorized) IsSuccess() bool

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

func (*ListLinksUnauthorized) String

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) Code

func (o *PatchLinkBadRequest) Code() int

Code gets the status code for the patch link bad request response

func (*PatchLinkBadRequest) Error

func (o *PatchLinkBadRequest) Error() string

func (*PatchLinkBadRequest) GetPayload

func (*PatchLinkBadRequest) IsClientError

func (o *PatchLinkBadRequest) IsClientError() bool

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

func (*PatchLinkBadRequest) IsCode

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

func (o *PatchLinkBadRequest) IsRedirect() bool

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

func (*PatchLinkBadRequest) IsServerError

func (o *PatchLinkBadRequest) IsServerError() bool

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

func (*PatchLinkBadRequest) IsSuccess

func (o *PatchLinkBadRequest) IsSuccess() bool

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

func (*PatchLinkBadRequest) String

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) Code

func (o *PatchLinkNotFound) Code() int

Code gets the status code for the patch link not found response

func (*PatchLinkNotFound) Error

func (o *PatchLinkNotFound) Error() string

func (*PatchLinkNotFound) GetPayload

func (*PatchLinkNotFound) IsClientError

func (o *PatchLinkNotFound) IsClientError() bool

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

func (*PatchLinkNotFound) IsCode

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

func (o *PatchLinkNotFound) IsRedirect() bool

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

func (*PatchLinkNotFound) IsServerError

func (o *PatchLinkNotFound) IsServerError() bool

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

func (*PatchLinkNotFound) IsSuccess

func (o *PatchLinkNotFound) IsSuccess() bool

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

func (*PatchLinkNotFound) String

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) Code

func (o *PatchLinkOK) Code() int

Code gets the status code for the patch link o k response

func (*PatchLinkOK) Error

func (o *PatchLinkOK) Error() string

func (*PatchLinkOK) GetPayload

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

func (*PatchLinkOK) IsClientError

func (o *PatchLinkOK) IsClientError() bool

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

func (*PatchLinkOK) IsCode

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

func (o *PatchLinkOK) IsRedirect() bool

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

func (*PatchLinkOK) IsServerError

func (o *PatchLinkOK) IsServerError() bool

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

func (*PatchLinkOK) IsSuccess

func (o *PatchLinkOK) IsSuccess() bool

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

func (*PatchLinkOK) String

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) Code

func (o *PatchLinkUnauthorized) Code() int

Code gets the status code for the patch link unauthorized response

func (*PatchLinkUnauthorized) Error

func (o *PatchLinkUnauthorized) Error() string

func (*PatchLinkUnauthorized) GetPayload

func (*PatchLinkUnauthorized) IsClientError

func (o *PatchLinkUnauthorized) IsClientError() bool

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

func (*PatchLinkUnauthorized) IsCode

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

func (o *PatchLinkUnauthorized) IsRedirect() bool

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

func (*PatchLinkUnauthorized) IsServerError

func (o *PatchLinkUnauthorized) IsServerError() bool

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

func (*PatchLinkUnauthorized) IsSuccess

func (o *PatchLinkUnauthorized) IsSuccess() bool

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

func (*PatchLinkUnauthorized) String

func (o *PatchLinkUnauthorized) String() string

Jump to

Keyboard shortcuts

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