clients

package
v0.0.0-...-7b99a6d Latest Latest
Warning

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

Go to latest
Published: Jan 29, 2024 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 clients API

func (*Client) ListClientsWithAccess

func (a *Client) ListClientsWithAccess(params *ListClientsWithAccessParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ListClientsWithAccessOK, error)

ListClientsWithAccess lists clients that user shared data with

Each client contains list of scopes that user agreed to.

func (*Client) RevokeClientAccess

func (a *Client) RevokeClientAccess(params *RevokeClientAccessParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*RevokeClientAccessNoContent, error)

RevokeClientAccess revokes client access

Upon removal client won't be able to use user data anymore.

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 {
	ListClientsWithAccess(params *ListClientsWithAccessParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ListClientsWithAccessOK, error)

	RevokeClientAccess(params *RevokeClientAccessParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*RevokeClientAccessNoContent, 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 clients API client.

type ListClientsWithAccessForbidden

type ListClientsWithAccessForbidden struct {
	Payload *models.Error
}

ListClientsWithAccessForbidden describes a response with status code 403, with default header values.

Forbidden

func NewListClientsWithAccessForbidden

func NewListClientsWithAccessForbidden() *ListClientsWithAccessForbidden

NewListClientsWithAccessForbidden creates a ListClientsWithAccessForbidden with default headers values

func (*ListClientsWithAccessForbidden) Code

Code gets the status code for the list clients with access forbidden response

func (*ListClientsWithAccessForbidden) Error

func (*ListClientsWithAccessForbidden) GetPayload

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

func (*ListClientsWithAccessForbidden) IsClientError

func (o *ListClientsWithAccessForbidden) IsClientError() bool

IsClientError returns true when this list clients with access forbidden response has a 4xx status code

func (*ListClientsWithAccessForbidden) IsCode

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

IsCode returns true when this list clients with access forbidden response a status code equal to that given

func (*ListClientsWithAccessForbidden) IsRedirect

func (o *ListClientsWithAccessForbidden) IsRedirect() bool

IsRedirect returns true when this list clients with access forbidden response has a 3xx status code

func (*ListClientsWithAccessForbidden) IsServerError

func (o *ListClientsWithAccessForbidden) IsServerError() bool

IsServerError returns true when this list clients with access forbidden response has a 5xx status code

func (*ListClientsWithAccessForbidden) IsSuccess

func (o *ListClientsWithAccessForbidden) IsSuccess() bool

IsSuccess returns true when this list clients with access forbidden response has a 2xx status code

func (*ListClientsWithAccessForbidden) String

type ListClientsWithAccessNotFound

type ListClientsWithAccessNotFound struct {
	Payload *models.Error
}

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

Not found

func NewListClientsWithAccessNotFound

func NewListClientsWithAccessNotFound() *ListClientsWithAccessNotFound

NewListClientsWithAccessNotFound creates a ListClientsWithAccessNotFound with default headers values

func (*ListClientsWithAccessNotFound) Code

Code gets the status code for the list clients with access not found response

func (*ListClientsWithAccessNotFound) Error

func (*ListClientsWithAccessNotFound) GetPayload

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

func (*ListClientsWithAccessNotFound) IsClientError

func (o *ListClientsWithAccessNotFound) IsClientError() bool

IsClientError returns true when this list clients with access not found response has a 4xx status code

func (*ListClientsWithAccessNotFound) IsCode

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

IsCode returns true when this list clients with access not found response a status code equal to that given

func (*ListClientsWithAccessNotFound) IsRedirect

func (o *ListClientsWithAccessNotFound) IsRedirect() bool

IsRedirect returns true when this list clients with access not found response has a 3xx status code

func (*ListClientsWithAccessNotFound) IsServerError

func (o *ListClientsWithAccessNotFound) IsServerError() bool

IsServerError returns true when this list clients with access not found response has a 5xx status code

func (*ListClientsWithAccessNotFound) IsSuccess

func (o *ListClientsWithAccessNotFound) IsSuccess() bool

IsSuccess returns true when this list clients with access not found response has a 2xx status code

func (*ListClientsWithAccessNotFound) String

type ListClientsWithAccessOK

type ListClientsWithAccessOK struct {
	Payload *models.ListClientsWithAccess
}

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

Clients with access

func NewListClientsWithAccessOK

func NewListClientsWithAccessOK() *ListClientsWithAccessOK

NewListClientsWithAccessOK creates a ListClientsWithAccessOK with default headers values

func (*ListClientsWithAccessOK) Code

func (o *ListClientsWithAccessOK) Code() int

Code gets the status code for the list clients with access o k response

func (*ListClientsWithAccessOK) Error

func (o *ListClientsWithAccessOK) Error() string

func (*ListClientsWithAccessOK) GetPayload

func (*ListClientsWithAccessOK) IsClientError

func (o *ListClientsWithAccessOK) IsClientError() bool

IsClientError returns true when this list clients with access o k response has a 4xx status code

func (*ListClientsWithAccessOK) IsCode

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

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

func (*ListClientsWithAccessOK) IsRedirect

func (o *ListClientsWithAccessOK) IsRedirect() bool

IsRedirect returns true when this list clients with access o k response has a 3xx status code

func (*ListClientsWithAccessOK) IsServerError

func (o *ListClientsWithAccessOK) IsServerError() bool

IsServerError returns true when this list clients with access o k response has a 5xx status code

func (*ListClientsWithAccessOK) IsSuccess

func (o *ListClientsWithAccessOK) IsSuccess() bool

IsSuccess returns true when this list clients with access o k response has a 2xx status code

func (*ListClientsWithAccessOK) String

func (o *ListClientsWithAccessOK) String() string

type ListClientsWithAccessParams

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

ListClientsWithAccessParams contains all the parameters to send to the API endpoint

for the list clients with access operation.

Typically these are written to a http.Request.

func NewListClientsWithAccessParams

func NewListClientsWithAccessParams() *ListClientsWithAccessParams

NewListClientsWithAccessParams creates a new ListClientsWithAccessParams 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 NewListClientsWithAccessParamsWithContext

func NewListClientsWithAccessParamsWithContext(ctx context.Context) *ListClientsWithAccessParams

NewListClientsWithAccessParamsWithContext creates a new ListClientsWithAccessParams object with the ability to set a context for a request.

func NewListClientsWithAccessParamsWithHTTPClient

func NewListClientsWithAccessParamsWithHTTPClient(client *http.Client) *ListClientsWithAccessParams

NewListClientsWithAccessParamsWithHTTPClient creates a new ListClientsWithAccessParams object with the ability to set a custom HTTPClient for a request.

func NewListClientsWithAccessParamsWithTimeout

func NewListClientsWithAccessParamsWithTimeout(timeout time.Duration) *ListClientsWithAccessParams

NewListClientsWithAccessParamsWithTimeout creates a new ListClientsWithAccessParams object with the ability to set a timeout on a request.

func (*ListClientsWithAccessParams) SetContext

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

SetContext adds the context to the list clients with access params

func (*ListClientsWithAccessParams) SetDefaults

func (o *ListClientsWithAccessParams) SetDefaults()

SetDefaults hydrates default values in the list clients with access params (not the query body).

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

func (*ListClientsWithAccessParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the list clients with access params

func (*ListClientsWithAccessParams) SetTimeout

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

SetTimeout adds the timeout to the list clients with access params

func (*ListClientsWithAccessParams) WithContext

WithContext adds the context to the list clients with access params

func (*ListClientsWithAccessParams) WithDefaults

WithDefaults hydrates default values in the list clients with access params (not the query body).

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

func (*ListClientsWithAccessParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the list clients with access params

func (*ListClientsWithAccessParams) WithTimeout

WithTimeout adds the timeout to the list clients with access params

func (*ListClientsWithAccessParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type ListClientsWithAccessReader

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

ListClientsWithAccessReader is a Reader for the ListClientsWithAccess structure.

func (*ListClientsWithAccessReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type ListClientsWithAccessTooManyRequests

type ListClientsWithAccessTooManyRequests struct {
	Payload *models.Error
}

ListClientsWithAccessTooManyRequests describes a response with status code 429, with default header values.

Too many requests

func NewListClientsWithAccessTooManyRequests

func NewListClientsWithAccessTooManyRequests() *ListClientsWithAccessTooManyRequests

NewListClientsWithAccessTooManyRequests creates a ListClientsWithAccessTooManyRequests with default headers values

func (*ListClientsWithAccessTooManyRequests) Code

Code gets the status code for the list clients with access too many requests response

func (*ListClientsWithAccessTooManyRequests) Error

func (*ListClientsWithAccessTooManyRequests) GetPayload

func (*ListClientsWithAccessTooManyRequests) IsClientError

func (o *ListClientsWithAccessTooManyRequests) IsClientError() bool

IsClientError returns true when this list clients with access too many requests response has a 4xx status code

func (*ListClientsWithAccessTooManyRequests) IsCode

IsCode returns true when this list clients with access too many requests response a status code equal to that given

func (*ListClientsWithAccessTooManyRequests) IsRedirect

IsRedirect returns true when this list clients with access too many requests response has a 3xx status code

func (*ListClientsWithAccessTooManyRequests) IsServerError

func (o *ListClientsWithAccessTooManyRequests) IsServerError() bool

IsServerError returns true when this list clients with access too many requests response has a 5xx status code

func (*ListClientsWithAccessTooManyRequests) IsSuccess

IsSuccess returns true when this list clients with access too many requests response has a 2xx status code

func (*ListClientsWithAccessTooManyRequests) String

type ListClientsWithAccessUnauthorized

type ListClientsWithAccessUnauthorized struct {
	Payload *models.Error
}

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

Unauthorized

func NewListClientsWithAccessUnauthorized

func NewListClientsWithAccessUnauthorized() *ListClientsWithAccessUnauthorized

NewListClientsWithAccessUnauthorized creates a ListClientsWithAccessUnauthorized with default headers values

func (*ListClientsWithAccessUnauthorized) Code

Code gets the status code for the list clients with access unauthorized response

func (*ListClientsWithAccessUnauthorized) Error

func (*ListClientsWithAccessUnauthorized) GetPayload

func (*ListClientsWithAccessUnauthorized) IsClientError

func (o *ListClientsWithAccessUnauthorized) IsClientError() bool

IsClientError returns true when this list clients with access unauthorized response has a 4xx status code

func (*ListClientsWithAccessUnauthorized) IsCode

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

IsCode returns true when this list clients with access unauthorized response a status code equal to that given

func (*ListClientsWithAccessUnauthorized) IsRedirect

func (o *ListClientsWithAccessUnauthorized) IsRedirect() bool

IsRedirect returns true when this list clients with access unauthorized response has a 3xx status code

func (*ListClientsWithAccessUnauthorized) IsServerError

func (o *ListClientsWithAccessUnauthorized) IsServerError() bool

IsServerError returns true when this list clients with access unauthorized response has a 5xx status code

func (*ListClientsWithAccessUnauthorized) IsSuccess

func (o *ListClientsWithAccessUnauthorized) IsSuccess() bool

IsSuccess returns true when this list clients with access unauthorized response has a 2xx status code

func (*ListClientsWithAccessUnauthorized) String

type RevokeClientAccessForbidden

type RevokeClientAccessForbidden struct {
	Payload *models.Error
}

RevokeClientAccessForbidden describes a response with status code 403, with default header values.

Forbidden

func NewRevokeClientAccessForbidden

func NewRevokeClientAccessForbidden() *RevokeClientAccessForbidden

NewRevokeClientAccessForbidden creates a RevokeClientAccessForbidden with default headers values

func (*RevokeClientAccessForbidden) Code

func (o *RevokeClientAccessForbidden) Code() int

Code gets the status code for the revoke client access forbidden response

func (*RevokeClientAccessForbidden) Error

func (*RevokeClientAccessForbidden) GetPayload

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

func (*RevokeClientAccessForbidden) IsClientError

func (o *RevokeClientAccessForbidden) IsClientError() bool

IsClientError returns true when this revoke client access forbidden response has a 4xx status code

func (*RevokeClientAccessForbidden) IsCode

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

IsCode returns true when this revoke client access forbidden response a status code equal to that given

func (*RevokeClientAccessForbidden) IsRedirect

func (o *RevokeClientAccessForbidden) IsRedirect() bool

IsRedirect returns true when this revoke client access forbidden response has a 3xx status code

func (*RevokeClientAccessForbidden) IsServerError

func (o *RevokeClientAccessForbidden) IsServerError() bool

IsServerError returns true when this revoke client access forbidden response has a 5xx status code

func (*RevokeClientAccessForbidden) IsSuccess

func (o *RevokeClientAccessForbidden) IsSuccess() bool

IsSuccess returns true when this revoke client access forbidden response has a 2xx status code

func (*RevokeClientAccessForbidden) String

func (o *RevokeClientAccessForbidden) String() string

type RevokeClientAccessNoContent

type RevokeClientAccessNoContent struct {
}

RevokeClientAccessNoContent describes a response with status code 204, with default header values.

Client access has been revoked

func NewRevokeClientAccessNoContent

func NewRevokeClientAccessNoContent() *RevokeClientAccessNoContent

NewRevokeClientAccessNoContent creates a RevokeClientAccessNoContent with default headers values

func (*RevokeClientAccessNoContent) Code

func (o *RevokeClientAccessNoContent) Code() int

Code gets the status code for the revoke client access no content response

func (*RevokeClientAccessNoContent) Error

func (*RevokeClientAccessNoContent) IsClientError

func (o *RevokeClientAccessNoContent) IsClientError() bool

IsClientError returns true when this revoke client access no content response has a 4xx status code

func (*RevokeClientAccessNoContent) IsCode

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

IsCode returns true when this revoke client access no content response a status code equal to that given

func (*RevokeClientAccessNoContent) IsRedirect

func (o *RevokeClientAccessNoContent) IsRedirect() bool

IsRedirect returns true when this revoke client access no content response has a 3xx status code

func (*RevokeClientAccessNoContent) IsServerError

func (o *RevokeClientAccessNoContent) IsServerError() bool

IsServerError returns true when this revoke client access no content response has a 5xx status code

func (*RevokeClientAccessNoContent) IsSuccess

func (o *RevokeClientAccessNoContent) IsSuccess() bool

IsSuccess returns true when this revoke client access no content response has a 2xx status code

func (*RevokeClientAccessNoContent) String

func (o *RevokeClientAccessNoContent) String() string

type RevokeClientAccessParams

type RevokeClientAccessParams struct {

	/* Cid.

	   Client id

	   Default: "default"
	*/
	Cid string

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

RevokeClientAccessParams contains all the parameters to send to the API endpoint

for the revoke client access operation.

Typically these are written to a http.Request.

func NewRevokeClientAccessParams

func NewRevokeClientAccessParams() *RevokeClientAccessParams

NewRevokeClientAccessParams creates a new RevokeClientAccessParams 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 NewRevokeClientAccessParamsWithContext

func NewRevokeClientAccessParamsWithContext(ctx context.Context) *RevokeClientAccessParams

NewRevokeClientAccessParamsWithContext creates a new RevokeClientAccessParams object with the ability to set a context for a request.

func NewRevokeClientAccessParamsWithHTTPClient

func NewRevokeClientAccessParamsWithHTTPClient(client *http.Client) *RevokeClientAccessParams

NewRevokeClientAccessParamsWithHTTPClient creates a new RevokeClientAccessParams object with the ability to set a custom HTTPClient for a request.

func NewRevokeClientAccessParamsWithTimeout

func NewRevokeClientAccessParamsWithTimeout(timeout time.Duration) *RevokeClientAccessParams

NewRevokeClientAccessParamsWithTimeout creates a new RevokeClientAccessParams object with the ability to set a timeout on a request.

func (*RevokeClientAccessParams) SetCid

func (o *RevokeClientAccessParams) SetCid(cid string)

SetCid adds the cid to the revoke client access params

func (*RevokeClientAccessParams) SetContext

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

SetContext adds the context to the revoke client access params

func (*RevokeClientAccessParams) SetDefaults

func (o *RevokeClientAccessParams) SetDefaults()

SetDefaults hydrates default values in the revoke client access params (not the query body).

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

func (*RevokeClientAccessParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the revoke client access params

func (*RevokeClientAccessParams) SetTimeout

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

SetTimeout adds the timeout to the revoke client access params

func (*RevokeClientAccessParams) WithCid

WithCid adds the cid to the revoke client access params

func (*RevokeClientAccessParams) WithContext

WithContext adds the context to the revoke client access params

func (*RevokeClientAccessParams) WithDefaults

WithDefaults hydrates default values in the revoke client access params (not the query body).

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

func (*RevokeClientAccessParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the revoke client access params

func (*RevokeClientAccessParams) WithTimeout

WithTimeout adds the timeout to the revoke client access params

func (*RevokeClientAccessParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type RevokeClientAccessReader

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

RevokeClientAccessReader is a Reader for the RevokeClientAccess structure.

func (*RevokeClientAccessReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type RevokeClientAccessTooManyRequests

type RevokeClientAccessTooManyRequests struct {
	Payload *models.Error
}

RevokeClientAccessTooManyRequests describes a response with status code 429, with default header values.

Too many requests

func NewRevokeClientAccessTooManyRequests

func NewRevokeClientAccessTooManyRequests() *RevokeClientAccessTooManyRequests

NewRevokeClientAccessTooManyRequests creates a RevokeClientAccessTooManyRequests with default headers values

func (*RevokeClientAccessTooManyRequests) Code

Code gets the status code for the revoke client access too many requests response

func (*RevokeClientAccessTooManyRequests) Error

func (*RevokeClientAccessTooManyRequests) GetPayload

func (*RevokeClientAccessTooManyRequests) IsClientError

func (o *RevokeClientAccessTooManyRequests) IsClientError() bool

IsClientError returns true when this revoke client access too many requests response has a 4xx status code

func (*RevokeClientAccessTooManyRequests) IsCode

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

IsCode returns true when this revoke client access too many requests response a status code equal to that given

func (*RevokeClientAccessTooManyRequests) IsRedirect

func (o *RevokeClientAccessTooManyRequests) IsRedirect() bool

IsRedirect returns true when this revoke client access too many requests response has a 3xx status code

func (*RevokeClientAccessTooManyRequests) IsServerError

func (o *RevokeClientAccessTooManyRequests) IsServerError() bool

IsServerError returns true when this revoke client access too many requests response has a 5xx status code

func (*RevokeClientAccessTooManyRequests) IsSuccess

func (o *RevokeClientAccessTooManyRequests) IsSuccess() bool

IsSuccess returns true when this revoke client access too many requests response has a 2xx status code

func (*RevokeClientAccessTooManyRequests) String

type RevokeClientAccessUnauthorized

type RevokeClientAccessUnauthorized struct {
	Payload *models.Error
}

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

Unauthorized

func NewRevokeClientAccessUnauthorized

func NewRevokeClientAccessUnauthorized() *RevokeClientAccessUnauthorized

NewRevokeClientAccessUnauthorized creates a RevokeClientAccessUnauthorized with default headers values

func (*RevokeClientAccessUnauthorized) Code

Code gets the status code for the revoke client access unauthorized response

func (*RevokeClientAccessUnauthorized) Error

func (*RevokeClientAccessUnauthorized) GetPayload

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

func (*RevokeClientAccessUnauthorized) IsClientError

func (o *RevokeClientAccessUnauthorized) IsClientError() bool

IsClientError returns true when this revoke client access unauthorized response has a 4xx status code

func (*RevokeClientAccessUnauthorized) IsCode

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

IsCode returns true when this revoke client access unauthorized response a status code equal to that given

func (*RevokeClientAccessUnauthorized) IsRedirect

func (o *RevokeClientAccessUnauthorized) IsRedirect() bool

IsRedirect returns true when this revoke client access unauthorized response has a 3xx status code

func (*RevokeClientAccessUnauthorized) IsServerError

func (o *RevokeClientAccessUnauthorized) IsServerError() bool

IsServerError returns true when this revoke client access unauthorized response has a 5xx status code

func (*RevokeClientAccessUnauthorized) IsSuccess

func (o *RevokeClientAccessUnauthorized) IsSuccess() bool

IsSuccess returns true when this revoke client access unauthorized response has a 2xx status code

func (*RevokeClientAccessUnauthorized) String

Jump to

Keyboard shortcuts

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