consents

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: 11 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 consents API

func (*Client) GrantConsent

func (a *Client) GrantConsent(params *GrantConsentParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GrantConsentCreated, error)
GrantConsent grants privacy consent

Consent id must be provided in the request body.

When a user grants consent which was already granted, it does not result in an error but it silently skipped instead.

func (*Client) ListPrivacyLedgerEvents

func (a *Client) ListPrivacyLedgerEvents(params *ListPrivacyLedgerEventsParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ListPrivacyLedgerEventsOK, error)

ListPrivacyLedgerEvents lists privacy ledger events

It is possible to provide time constraints using from and to query params.

func (*Client) ListUserConsents

func (a *Client) ListUserConsents(params *ListUserConsentsParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ListUserConsentsOK, error)

ListUserConsents lists consents

If you want to list only specific consents, provide consent identifiers in query params.

func (*Client) ListUserConsentsByAction

func (a *Client) ListUserConsentsByAction(params *ListUserConsentsByActionParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ListUserConsentsByActionOK, error)
ListUserConsentsByAction lists consents by action

Returns any possible required consents that the app should ask the User about.

The response includes a list of consents (including the ones user already agreed to). Inclusion of the consents which the user already agreed to can be used to inform the user what he already agreed to.

func (*Client) PatchConsentGrants

func (a *Client) PatchConsentGrants(params *PatchConsentGrantsParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*PatchConsentGrantsCreated, error)
PatchConsentGrants patches consent grants

This is a non-standardized PATCH request.

Allows to update multiple consents approval in one API call.

See ConsentGrantPatchRequest object for more information.

func (*Client) RevokeConsent

func (a *Client) RevokeConsent(params *RevokeConsentParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*RevokeConsentOK, error)
RevokeConsent revokes privacy consent

This API can be used to withdraw a consent which user previously gave.

Consent id must be provided in the request body.

When consent has the can_be_withdrawn flag set to false the API fails with an error saying that the consent cannot be revoked. This flag is useful for scenarios in which the application cannot function without the consent from a User.

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 {
	GrantConsent(params *GrantConsentParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GrantConsentCreated, error)

	ListPrivacyLedgerEvents(params *ListPrivacyLedgerEventsParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ListPrivacyLedgerEventsOK, error)

	ListUserConsents(params *ListUserConsentsParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ListUserConsentsOK, error)

	ListUserConsentsByAction(params *ListUserConsentsByActionParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ListUserConsentsByActionOK, error)

	PatchConsentGrants(params *PatchConsentGrantsParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*PatchConsentGrantsCreated, error)

	RevokeConsent(params *RevokeConsentParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*RevokeConsentOK, 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 consents API client.

type GrantConsentConflict

type GrantConsentConflict struct {
	Payload *models.Error
}

GrantConsentConflict describes a response with status code 409, with default header values.

Conflict

func NewGrantConsentConflict

func NewGrantConsentConflict() *GrantConsentConflict

NewGrantConsentConflict creates a GrantConsentConflict with default headers values

func (*GrantConsentConflict) Code

func (o *GrantConsentConflict) Code() int

Code gets the status code for the grant consent conflict response

func (*GrantConsentConflict) Error

func (o *GrantConsentConflict) Error() string

func (*GrantConsentConflict) GetPayload

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

func (*GrantConsentConflict) IsClientError

func (o *GrantConsentConflict) IsClientError() bool

IsClientError returns true when this grant consent conflict response has a 4xx status code

func (*GrantConsentConflict) IsCode

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

IsCode returns true when this grant consent conflict response a status code equal to that given

func (*GrantConsentConflict) IsRedirect

func (o *GrantConsentConflict) IsRedirect() bool

IsRedirect returns true when this grant consent conflict response has a 3xx status code

func (*GrantConsentConflict) IsServerError

func (o *GrantConsentConflict) IsServerError() bool

IsServerError returns true when this grant consent conflict response has a 5xx status code

func (*GrantConsentConflict) IsSuccess

func (o *GrantConsentConflict) IsSuccess() bool

IsSuccess returns true when this grant consent conflict response has a 2xx status code

func (*GrantConsentConflict) String

func (o *GrantConsentConflict) String() string

type GrantConsentCreated

type GrantConsentCreated struct {
	Payload *models.ConsentGrant
}

GrantConsentCreated describes a response with status code 201, with default header values.

Consent grant

func NewGrantConsentCreated

func NewGrantConsentCreated() *GrantConsentCreated

NewGrantConsentCreated creates a GrantConsentCreated with default headers values

func (*GrantConsentCreated) Code

func (o *GrantConsentCreated) Code() int

Code gets the status code for the grant consent created response

func (*GrantConsentCreated) Error

func (o *GrantConsentCreated) Error() string

func (*GrantConsentCreated) GetPayload

func (o *GrantConsentCreated) GetPayload() *models.ConsentGrant

func (*GrantConsentCreated) IsClientError

func (o *GrantConsentCreated) IsClientError() bool

IsClientError returns true when this grant consent created response has a 4xx status code

func (*GrantConsentCreated) IsCode

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

IsCode returns true when this grant consent created response a status code equal to that given

func (*GrantConsentCreated) IsRedirect

func (o *GrantConsentCreated) IsRedirect() bool

IsRedirect returns true when this grant consent created response has a 3xx status code

func (*GrantConsentCreated) IsServerError

func (o *GrantConsentCreated) IsServerError() bool

IsServerError returns true when this grant consent created response has a 5xx status code

func (*GrantConsentCreated) IsSuccess

func (o *GrantConsentCreated) IsSuccess() bool

IsSuccess returns true when this grant consent created response has a 2xx status code

func (*GrantConsentCreated) String

func (o *GrantConsentCreated) String() string

type GrantConsentForbidden

type GrantConsentForbidden struct {
	Payload *models.Error
}

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

Forbidden

func NewGrantConsentForbidden

func NewGrantConsentForbidden() *GrantConsentForbidden

NewGrantConsentForbidden creates a GrantConsentForbidden with default headers values

func (*GrantConsentForbidden) Code

func (o *GrantConsentForbidden) Code() int

Code gets the status code for the grant consent forbidden response

func (*GrantConsentForbidden) Error

func (o *GrantConsentForbidden) Error() string

func (*GrantConsentForbidden) GetPayload

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

func (*GrantConsentForbidden) IsClientError

func (o *GrantConsentForbidden) IsClientError() bool

IsClientError returns true when this grant consent forbidden response has a 4xx status code

func (*GrantConsentForbidden) IsCode

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

IsCode returns true when this grant consent forbidden response a status code equal to that given

func (*GrantConsentForbidden) IsRedirect

func (o *GrantConsentForbidden) IsRedirect() bool

IsRedirect returns true when this grant consent forbidden response has a 3xx status code

func (*GrantConsentForbidden) IsServerError

func (o *GrantConsentForbidden) IsServerError() bool

IsServerError returns true when this grant consent forbidden response has a 5xx status code

func (*GrantConsentForbidden) IsSuccess

func (o *GrantConsentForbidden) IsSuccess() bool

IsSuccess returns true when this grant consent forbidden response has a 2xx status code

func (*GrantConsentForbidden) String

func (o *GrantConsentForbidden) String() string

type GrantConsentNotFound

type GrantConsentNotFound struct {
	Payload *models.Error
}

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

Not found

func NewGrantConsentNotFound

func NewGrantConsentNotFound() *GrantConsentNotFound

NewGrantConsentNotFound creates a GrantConsentNotFound with default headers values

func (*GrantConsentNotFound) Code

func (o *GrantConsentNotFound) Code() int

Code gets the status code for the grant consent not found response

func (*GrantConsentNotFound) Error

func (o *GrantConsentNotFound) Error() string

func (*GrantConsentNotFound) GetPayload

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

func (*GrantConsentNotFound) IsClientError

func (o *GrantConsentNotFound) IsClientError() bool

IsClientError returns true when this grant consent not found response has a 4xx status code

func (*GrantConsentNotFound) IsCode

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

IsCode returns true when this grant consent not found response a status code equal to that given

func (*GrantConsentNotFound) IsRedirect

func (o *GrantConsentNotFound) IsRedirect() bool

IsRedirect returns true when this grant consent not found response has a 3xx status code

func (*GrantConsentNotFound) IsServerError

func (o *GrantConsentNotFound) IsServerError() bool

IsServerError returns true when this grant consent not found response has a 5xx status code

func (*GrantConsentNotFound) IsSuccess

func (o *GrantConsentNotFound) IsSuccess() bool

IsSuccess returns true when this grant consent not found response has a 2xx status code

func (*GrantConsentNotFound) String

func (o *GrantConsentNotFound) String() string

type GrantConsentParams

type GrantConsentParams struct {

	// ConsentGrant.
	ConsentGrant *models.ConsentGrantRequest

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

GrantConsentParams contains all the parameters to send to the API endpoint

for the grant consent operation.

Typically these are written to a http.Request.

func NewGrantConsentParams

func NewGrantConsentParams() *GrantConsentParams

NewGrantConsentParams creates a new GrantConsentParams 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 NewGrantConsentParamsWithContext

func NewGrantConsentParamsWithContext(ctx context.Context) *GrantConsentParams

NewGrantConsentParamsWithContext creates a new GrantConsentParams object with the ability to set a context for a request.

func NewGrantConsentParamsWithHTTPClient

func NewGrantConsentParamsWithHTTPClient(client *http.Client) *GrantConsentParams

NewGrantConsentParamsWithHTTPClient creates a new GrantConsentParams object with the ability to set a custom HTTPClient for a request.

func NewGrantConsentParamsWithTimeout

func NewGrantConsentParamsWithTimeout(timeout time.Duration) *GrantConsentParams

NewGrantConsentParamsWithTimeout creates a new GrantConsentParams object with the ability to set a timeout on a request.

func (*GrantConsentParams) SetConsentGrant

func (o *GrantConsentParams) SetConsentGrant(consentGrant *models.ConsentGrantRequest)

SetConsentGrant adds the consentGrant to the grant consent params

func (*GrantConsentParams) SetContext

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

SetContext adds the context to the grant consent params

func (*GrantConsentParams) SetDefaults

func (o *GrantConsentParams) SetDefaults()

SetDefaults hydrates default values in the grant consent params (not the query body).

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

func (*GrantConsentParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the grant consent params

func (*GrantConsentParams) SetTimeout

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

SetTimeout adds the timeout to the grant consent params

func (*GrantConsentParams) WithConsentGrant

func (o *GrantConsentParams) WithConsentGrant(consentGrant *models.ConsentGrantRequest) *GrantConsentParams

WithConsentGrant adds the consentGrant to the grant consent params

func (*GrantConsentParams) WithContext

WithContext adds the context to the grant consent params

func (*GrantConsentParams) WithDefaults

func (o *GrantConsentParams) WithDefaults() *GrantConsentParams

WithDefaults hydrates default values in the grant consent params (not the query body).

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

func (*GrantConsentParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the grant consent params

func (*GrantConsentParams) WithTimeout

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

WithTimeout adds the timeout to the grant consent params

func (*GrantConsentParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type GrantConsentReader

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

GrantConsentReader is a Reader for the GrantConsent structure.

func (*GrantConsentReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type GrantConsentTooManyRequests

type GrantConsentTooManyRequests struct {
	Payload *models.Error
}

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

Too many requests

func NewGrantConsentTooManyRequests

func NewGrantConsentTooManyRequests() *GrantConsentTooManyRequests

NewGrantConsentTooManyRequests creates a GrantConsentTooManyRequests with default headers values

func (*GrantConsentTooManyRequests) Code

func (o *GrantConsentTooManyRequests) Code() int

Code gets the status code for the grant consent too many requests response

func (*GrantConsentTooManyRequests) Error

func (*GrantConsentTooManyRequests) GetPayload

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

func (*GrantConsentTooManyRequests) IsClientError

func (o *GrantConsentTooManyRequests) IsClientError() bool

IsClientError returns true when this grant consent too many requests response has a 4xx status code

func (*GrantConsentTooManyRequests) IsCode

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

IsCode returns true when this grant consent too many requests response a status code equal to that given

func (*GrantConsentTooManyRequests) IsRedirect

func (o *GrantConsentTooManyRequests) IsRedirect() bool

IsRedirect returns true when this grant consent too many requests response has a 3xx status code

func (*GrantConsentTooManyRequests) IsServerError

func (o *GrantConsentTooManyRequests) IsServerError() bool

IsServerError returns true when this grant consent too many requests response has a 5xx status code

func (*GrantConsentTooManyRequests) IsSuccess

func (o *GrantConsentTooManyRequests) IsSuccess() bool

IsSuccess returns true when this grant consent too many requests response has a 2xx status code

func (*GrantConsentTooManyRequests) String

func (o *GrantConsentTooManyRequests) String() string

type GrantConsentUnauthorized

type GrantConsentUnauthorized struct {
	Payload *models.Error
}

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

Unauthorized

func NewGrantConsentUnauthorized

func NewGrantConsentUnauthorized() *GrantConsentUnauthorized

NewGrantConsentUnauthorized creates a GrantConsentUnauthorized with default headers values

func (*GrantConsentUnauthorized) Code

func (o *GrantConsentUnauthorized) Code() int

Code gets the status code for the grant consent unauthorized response

func (*GrantConsentUnauthorized) Error

func (o *GrantConsentUnauthorized) Error() string

func (*GrantConsentUnauthorized) GetPayload

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

func (*GrantConsentUnauthorized) IsClientError

func (o *GrantConsentUnauthorized) IsClientError() bool

IsClientError returns true when this grant consent unauthorized response has a 4xx status code

func (*GrantConsentUnauthorized) IsCode

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

IsCode returns true when this grant consent unauthorized response a status code equal to that given

func (*GrantConsentUnauthorized) IsRedirect

func (o *GrantConsentUnauthorized) IsRedirect() bool

IsRedirect returns true when this grant consent unauthorized response has a 3xx status code

func (*GrantConsentUnauthorized) IsServerError

func (o *GrantConsentUnauthorized) IsServerError() bool

IsServerError returns true when this grant consent unauthorized response has a 5xx status code

func (*GrantConsentUnauthorized) IsSuccess

func (o *GrantConsentUnauthorized) IsSuccess() bool

IsSuccess returns true when this grant consent unauthorized response has a 2xx status code

func (*GrantConsentUnauthorized) String

func (o *GrantConsentUnauthorized) String() string

type GrantConsentUnprocessableEntity

type GrantConsentUnprocessableEntity struct {
	Payload *models.Error
}

GrantConsentUnprocessableEntity describes a response with status code 422, with default header values.

Unprocessable entity

func NewGrantConsentUnprocessableEntity

func NewGrantConsentUnprocessableEntity() *GrantConsentUnprocessableEntity

NewGrantConsentUnprocessableEntity creates a GrantConsentUnprocessableEntity with default headers values

func (*GrantConsentUnprocessableEntity) Code

Code gets the status code for the grant consent unprocessable entity response

func (*GrantConsentUnprocessableEntity) Error

func (*GrantConsentUnprocessableEntity) GetPayload

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

func (*GrantConsentUnprocessableEntity) IsClientError

func (o *GrantConsentUnprocessableEntity) IsClientError() bool

IsClientError returns true when this grant consent unprocessable entity response has a 4xx status code

func (*GrantConsentUnprocessableEntity) IsCode

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

IsCode returns true when this grant consent unprocessable entity response a status code equal to that given

func (*GrantConsentUnprocessableEntity) IsRedirect

func (o *GrantConsentUnprocessableEntity) IsRedirect() bool

IsRedirect returns true when this grant consent unprocessable entity response has a 3xx status code

func (*GrantConsentUnprocessableEntity) IsServerError

func (o *GrantConsentUnprocessableEntity) IsServerError() bool

IsServerError returns true when this grant consent unprocessable entity response has a 5xx status code

func (*GrantConsentUnprocessableEntity) IsSuccess

func (o *GrantConsentUnprocessableEntity) IsSuccess() bool

IsSuccess returns true when this grant consent unprocessable entity response has a 2xx status code

func (*GrantConsentUnprocessableEntity) String

type ListPrivacyLedgerEventsForbidden

type ListPrivacyLedgerEventsForbidden struct {
	Payload *models.Error
}

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

Forbidden

func NewListPrivacyLedgerEventsForbidden

func NewListPrivacyLedgerEventsForbidden() *ListPrivacyLedgerEventsForbidden

NewListPrivacyLedgerEventsForbidden creates a ListPrivacyLedgerEventsForbidden with default headers values

func (*ListPrivacyLedgerEventsForbidden) Code

Code gets the status code for the list privacy ledger events forbidden response

func (*ListPrivacyLedgerEventsForbidden) Error

func (*ListPrivacyLedgerEventsForbidden) GetPayload

func (*ListPrivacyLedgerEventsForbidden) IsClientError

func (o *ListPrivacyLedgerEventsForbidden) IsClientError() bool

IsClientError returns true when this list privacy ledger events forbidden response has a 4xx status code

func (*ListPrivacyLedgerEventsForbidden) IsCode

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

IsCode returns true when this list privacy ledger events forbidden response a status code equal to that given

func (*ListPrivacyLedgerEventsForbidden) IsRedirect

func (o *ListPrivacyLedgerEventsForbidden) IsRedirect() bool

IsRedirect returns true when this list privacy ledger events forbidden response has a 3xx status code

func (*ListPrivacyLedgerEventsForbidden) IsServerError

func (o *ListPrivacyLedgerEventsForbidden) IsServerError() bool

IsServerError returns true when this list privacy ledger events forbidden response has a 5xx status code

func (*ListPrivacyLedgerEventsForbidden) IsSuccess

func (o *ListPrivacyLedgerEventsForbidden) IsSuccess() bool

IsSuccess returns true when this list privacy ledger events forbidden response has a 2xx status code

func (*ListPrivacyLedgerEventsForbidden) String

type ListPrivacyLedgerEventsNotFound

type ListPrivacyLedgerEventsNotFound struct {
	Payload *models.Error
}

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

Not found

func NewListPrivacyLedgerEventsNotFound

func NewListPrivacyLedgerEventsNotFound() *ListPrivacyLedgerEventsNotFound

NewListPrivacyLedgerEventsNotFound creates a ListPrivacyLedgerEventsNotFound with default headers values

func (*ListPrivacyLedgerEventsNotFound) Code

Code gets the status code for the list privacy ledger events not found response

func (*ListPrivacyLedgerEventsNotFound) Error

func (*ListPrivacyLedgerEventsNotFound) GetPayload

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

func (*ListPrivacyLedgerEventsNotFound) IsClientError

func (o *ListPrivacyLedgerEventsNotFound) IsClientError() bool

IsClientError returns true when this list privacy ledger events not found response has a 4xx status code

func (*ListPrivacyLedgerEventsNotFound) IsCode

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

IsCode returns true when this list privacy ledger events not found response a status code equal to that given

func (*ListPrivacyLedgerEventsNotFound) IsRedirect

func (o *ListPrivacyLedgerEventsNotFound) IsRedirect() bool

IsRedirect returns true when this list privacy ledger events not found response has a 3xx status code

func (*ListPrivacyLedgerEventsNotFound) IsServerError

func (o *ListPrivacyLedgerEventsNotFound) IsServerError() bool

IsServerError returns true when this list privacy ledger events not found response has a 5xx status code

func (*ListPrivacyLedgerEventsNotFound) IsSuccess

func (o *ListPrivacyLedgerEventsNotFound) IsSuccess() bool

IsSuccess returns true when this list privacy ledger events not found response has a 2xx status code

func (*ListPrivacyLedgerEventsNotFound) String

type ListPrivacyLedgerEventsOK

type ListPrivacyLedgerEventsOK struct {
	Payload *models.PrivacyLedgerEvents
}

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

Privacy ledger events

func NewListPrivacyLedgerEventsOK

func NewListPrivacyLedgerEventsOK() *ListPrivacyLedgerEventsOK

NewListPrivacyLedgerEventsOK creates a ListPrivacyLedgerEventsOK with default headers values

func (*ListPrivacyLedgerEventsOK) Code

func (o *ListPrivacyLedgerEventsOK) Code() int

Code gets the status code for the list privacy ledger events o k response

func (*ListPrivacyLedgerEventsOK) Error

func (o *ListPrivacyLedgerEventsOK) Error() string

func (*ListPrivacyLedgerEventsOK) GetPayload

func (*ListPrivacyLedgerEventsOK) IsClientError

func (o *ListPrivacyLedgerEventsOK) IsClientError() bool

IsClientError returns true when this list privacy ledger events o k response has a 4xx status code

func (*ListPrivacyLedgerEventsOK) IsCode

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

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

func (*ListPrivacyLedgerEventsOK) IsRedirect

func (o *ListPrivacyLedgerEventsOK) IsRedirect() bool

IsRedirect returns true when this list privacy ledger events o k response has a 3xx status code

func (*ListPrivacyLedgerEventsOK) IsServerError

func (o *ListPrivacyLedgerEventsOK) IsServerError() bool

IsServerError returns true when this list privacy ledger events o k response has a 5xx status code

func (*ListPrivacyLedgerEventsOK) IsSuccess

func (o *ListPrivacyLedgerEventsOK) IsSuccess() bool

IsSuccess returns true when this list privacy ledger events o k response has a 2xx status code

func (*ListPrivacyLedgerEventsOK) String

func (o *ListPrivacyLedgerEventsOK) String() string

type ListPrivacyLedgerEventsParams

type ListPrivacyLedgerEventsParams struct {

	/* From.

	   Query events from timestamp (default 0)

	   Format: int64
	*/
	From *int64

	/* To.

	   Query events to timestamp (default current time)

	   Format: int64
	*/
	To *int64

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

ListPrivacyLedgerEventsParams contains all the parameters to send to the API endpoint

for the list privacy ledger events operation.

Typically these are written to a http.Request.

func NewListPrivacyLedgerEventsParams

func NewListPrivacyLedgerEventsParams() *ListPrivacyLedgerEventsParams

NewListPrivacyLedgerEventsParams creates a new ListPrivacyLedgerEventsParams 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 NewListPrivacyLedgerEventsParamsWithContext

func NewListPrivacyLedgerEventsParamsWithContext(ctx context.Context) *ListPrivacyLedgerEventsParams

NewListPrivacyLedgerEventsParamsWithContext creates a new ListPrivacyLedgerEventsParams object with the ability to set a context for a request.

func NewListPrivacyLedgerEventsParamsWithHTTPClient

func NewListPrivacyLedgerEventsParamsWithHTTPClient(client *http.Client) *ListPrivacyLedgerEventsParams

NewListPrivacyLedgerEventsParamsWithHTTPClient creates a new ListPrivacyLedgerEventsParams object with the ability to set a custom HTTPClient for a request.

func NewListPrivacyLedgerEventsParamsWithTimeout

func NewListPrivacyLedgerEventsParamsWithTimeout(timeout time.Duration) *ListPrivacyLedgerEventsParams

NewListPrivacyLedgerEventsParamsWithTimeout creates a new ListPrivacyLedgerEventsParams object with the ability to set a timeout on a request.

func (*ListPrivacyLedgerEventsParams) SetContext

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

SetContext adds the context to the list privacy ledger events params

func (*ListPrivacyLedgerEventsParams) SetDefaults

func (o *ListPrivacyLedgerEventsParams) SetDefaults()

SetDefaults hydrates default values in the list privacy ledger events params (not the query body).

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

func (*ListPrivacyLedgerEventsParams) SetFrom

func (o *ListPrivacyLedgerEventsParams) SetFrom(from *int64)

SetFrom adds the from to the list privacy ledger events params

func (*ListPrivacyLedgerEventsParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the list privacy ledger events params

func (*ListPrivacyLedgerEventsParams) SetTimeout

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

SetTimeout adds the timeout to the list privacy ledger events params

func (*ListPrivacyLedgerEventsParams) SetTo

func (o *ListPrivacyLedgerEventsParams) SetTo(to *int64)

SetTo adds the to to the list privacy ledger events params

func (*ListPrivacyLedgerEventsParams) WithContext

WithContext adds the context to the list privacy ledger events params

func (*ListPrivacyLedgerEventsParams) WithDefaults

WithDefaults hydrates default values in the list privacy ledger events params (not the query body).

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

func (*ListPrivacyLedgerEventsParams) WithFrom

WithFrom adds the from to the list privacy ledger events params

func (*ListPrivacyLedgerEventsParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the list privacy ledger events params

func (*ListPrivacyLedgerEventsParams) WithTimeout

WithTimeout adds the timeout to the list privacy ledger events params

func (*ListPrivacyLedgerEventsParams) WithTo

WithTo adds the to to the list privacy ledger events params

func (*ListPrivacyLedgerEventsParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type ListPrivacyLedgerEventsReader

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

ListPrivacyLedgerEventsReader is a Reader for the ListPrivacyLedgerEvents structure.

func (*ListPrivacyLedgerEventsReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type ListPrivacyLedgerEventsTooManyRequests

type ListPrivacyLedgerEventsTooManyRequests struct {
	Payload *models.Error
}

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

Too many requests

func NewListPrivacyLedgerEventsTooManyRequests

func NewListPrivacyLedgerEventsTooManyRequests() *ListPrivacyLedgerEventsTooManyRequests

NewListPrivacyLedgerEventsTooManyRequests creates a ListPrivacyLedgerEventsTooManyRequests with default headers values

func (*ListPrivacyLedgerEventsTooManyRequests) Code

Code gets the status code for the list privacy ledger events too many requests response

func (*ListPrivacyLedgerEventsTooManyRequests) Error

func (*ListPrivacyLedgerEventsTooManyRequests) GetPayload

func (*ListPrivacyLedgerEventsTooManyRequests) IsClientError

func (o *ListPrivacyLedgerEventsTooManyRequests) IsClientError() bool

IsClientError returns true when this list privacy ledger events too many requests response has a 4xx status code

func (*ListPrivacyLedgerEventsTooManyRequests) IsCode

IsCode returns true when this list privacy ledger events too many requests response a status code equal to that given

func (*ListPrivacyLedgerEventsTooManyRequests) IsRedirect

IsRedirect returns true when this list privacy ledger events too many requests response has a 3xx status code

func (*ListPrivacyLedgerEventsTooManyRequests) IsServerError

func (o *ListPrivacyLedgerEventsTooManyRequests) IsServerError() bool

IsServerError returns true when this list privacy ledger events too many requests response has a 5xx status code

func (*ListPrivacyLedgerEventsTooManyRequests) IsSuccess

IsSuccess returns true when this list privacy ledger events too many requests response has a 2xx status code

func (*ListPrivacyLedgerEventsTooManyRequests) String

type ListPrivacyLedgerEventsUnauthorized

type ListPrivacyLedgerEventsUnauthorized struct {
	Payload *models.Error
}

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

Unauthorized

func NewListPrivacyLedgerEventsUnauthorized

func NewListPrivacyLedgerEventsUnauthorized() *ListPrivacyLedgerEventsUnauthorized

NewListPrivacyLedgerEventsUnauthorized creates a ListPrivacyLedgerEventsUnauthorized with default headers values

func (*ListPrivacyLedgerEventsUnauthorized) Code

Code gets the status code for the list privacy ledger events unauthorized response

func (*ListPrivacyLedgerEventsUnauthorized) Error

func (*ListPrivacyLedgerEventsUnauthorized) GetPayload

func (*ListPrivacyLedgerEventsUnauthorized) IsClientError

func (o *ListPrivacyLedgerEventsUnauthorized) IsClientError() bool

IsClientError returns true when this list privacy ledger events unauthorized response has a 4xx status code

func (*ListPrivacyLedgerEventsUnauthorized) IsCode

IsCode returns true when this list privacy ledger events unauthorized response a status code equal to that given

func (*ListPrivacyLedgerEventsUnauthorized) IsRedirect

func (o *ListPrivacyLedgerEventsUnauthorized) IsRedirect() bool

IsRedirect returns true when this list privacy ledger events unauthorized response has a 3xx status code

func (*ListPrivacyLedgerEventsUnauthorized) IsServerError

func (o *ListPrivacyLedgerEventsUnauthorized) IsServerError() bool

IsServerError returns true when this list privacy ledger events unauthorized response has a 5xx status code

func (*ListPrivacyLedgerEventsUnauthorized) IsSuccess

IsSuccess returns true when this list privacy ledger events unauthorized response has a 2xx status code

func (*ListPrivacyLedgerEventsUnauthorized) String

type ListUserConsentsByActionForbidden

type ListUserConsentsByActionForbidden struct {
	Payload *models.Error
}

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

Forbidden

func NewListUserConsentsByActionForbidden

func NewListUserConsentsByActionForbidden() *ListUserConsentsByActionForbidden

NewListUserConsentsByActionForbidden creates a ListUserConsentsByActionForbidden with default headers values

func (*ListUserConsentsByActionForbidden) Code

Code gets the status code for the list user consents by action forbidden response

func (*ListUserConsentsByActionForbidden) Error

func (*ListUserConsentsByActionForbidden) GetPayload

func (*ListUserConsentsByActionForbidden) IsClientError

func (o *ListUserConsentsByActionForbidden) IsClientError() bool

IsClientError returns true when this list user consents by action forbidden response has a 4xx status code

func (*ListUserConsentsByActionForbidden) IsCode

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

IsCode returns true when this list user consents by action forbidden response a status code equal to that given

func (*ListUserConsentsByActionForbidden) IsRedirect

func (o *ListUserConsentsByActionForbidden) IsRedirect() bool

IsRedirect returns true when this list user consents by action forbidden response has a 3xx status code

func (*ListUserConsentsByActionForbidden) IsServerError

func (o *ListUserConsentsByActionForbidden) IsServerError() bool

IsServerError returns true when this list user consents by action forbidden response has a 5xx status code

func (*ListUserConsentsByActionForbidden) IsSuccess

func (o *ListUserConsentsByActionForbidden) IsSuccess() bool

IsSuccess returns true when this list user consents by action forbidden response has a 2xx status code

func (*ListUserConsentsByActionForbidden) String

type ListUserConsentsByActionNotFound

type ListUserConsentsByActionNotFound struct {
	Payload *models.Error
}

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

Not found

func NewListUserConsentsByActionNotFound

func NewListUserConsentsByActionNotFound() *ListUserConsentsByActionNotFound

NewListUserConsentsByActionNotFound creates a ListUserConsentsByActionNotFound with default headers values

func (*ListUserConsentsByActionNotFound) Code

Code gets the status code for the list user consents by action not found response

func (*ListUserConsentsByActionNotFound) Error

func (*ListUserConsentsByActionNotFound) GetPayload

func (*ListUserConsentsByActionNotFound) IsClientError

func (o *ListUserConsentsByActionNotFound) IsClientError() bool

IsClientError returns true when this list user consents by action not found response has a 4xx status code

func (*ListUserConsentsByActionNotFound) IsCode

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

IsCode returns true when this list user consents by action not found response a status code equal to that given

func (*ListUserConsentsByActionNotFound) IsRedirect

func (o *ListUserConsentsByActionNotFound) IsRedirect() bool

IsRedirect returns true when this list user consents by action not found response has a 3xx status code

func (*ListUserConsentsByActionNotFound) IsServerError

func (o *ListUserConsentsByActionNotFound) IsServerError() bool

IsServerError returns true when this list user consents by action not found response has a 5xx status code

func (*ListUserConsentsByActionNotFound) IsSuccess

func (o *ListUserConsentsByActionNotFound) IsSuccess() bool

IsSuccess returns true when this list user consents by action not found response has a 2xx status code

func (*ListUserConsentsByActionNotFound) String

type ListUserConsentsByActionOK

type ListUserConsentsByActionOK struct {
	Payload *models.ConsentsWithGrants
}

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

Consents with grants

func NewListUserConsentsByActionOK

func NewListUserConsentsByActionOK() *ListUserConsentsByActionOK

NewListUserConsentsByActionOK creates a ListUserConsentsByActionOK with default headers values

func (*ListUserConsentsByActionOK) Code

func (o *ListUserConsentsByActionOK) Code() int

Code gets the status code for the list user consents by action o k response

func (*ListUserConsentsByActionOK) Error

func (*ListUserConsentsByActionOK) GetPayload

func (*ListUserConsentsByActionOK) IsClientError

func (o *ListUserConsentsByActionOK) IsClientError() bool

IsClientError returns true when this list user consents by action o k response has a 4xx status code

func (*ListUserConsentsByActionOK) IsCode

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

IsCode returns true when this list user consents by action o k response a status code equal to that given

func (*ListUserConsentsByActionOK) IsRedirect

func (o *ListUserConsentsByActionOK) IsRedirect() bool

IsRedirect returns true when this list user consents by action o k response has a 3xx status code

func (*ListUserConsentsByActionOK) IsServerError

func (o *ListUserConsentsByActionOK) IsServerError() bool

IsServerError returns true when this list user consents by action o k response has a 5xx status code

func (*ListUserConsentsByActionOK) IsSuccess

func (o *ListUserConsentsByActionOK) IsSuccess() bool

IsSuccess returns true when this list user consents by action o k response has a 2xx status code

func (*ListUserConsentsByActionOK) String

func (o *ListUserConsentsByActionOK) String() string

type ListUserConsentsByActionParams

type ListUserConsentsByActionParams struct {

	/* Action.

	   Consent action id

	   Default: "default"
	*/
	Action string

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

ListUserConsentsByActionParams contains all the parameters to send to the API endpoint

for the list user consents by action operation.

Typically these are written to a http.Request.

func NewListUserConsentsByActionParams

func NewListUserConsentsByActionParams() *ListUserConsentsByActionParams

NewListUserConsentsByActionParams creates a new ListUserConsentsByActionParams 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 NewListUserConsentsByActionParamsWithContext

func NewListUserConsentsByActionParamsWithContext(ctx context.Context) *ListUserConsentsByActionParams

NewListUserConsentsByActionParamsWithContext creates a new ListUserConsentsByActionParams object with the ability to set a context for a request.

func NewListUserConsentsByActionParamsWithHTTPClient

func NewListUserConsentsByActionParamsWithHTTPClient(client *http.Client) *ListUserConsentsByActionParams

NewListUserConsentsByActionParamsWithHTTPClient creates a new ListUserConsentsByActionParams object with the ability to set a custom HTTPClient for a request.

func NewListUserConsentsByActionParamsWithTimeout

func NewListUserConsentsByActionParamsWithTimeout(timeout time.Duration) *ListUserConsentsByActionParams

NewListUserConsentsByActionParamsWithTimeout creates a new ListUserConsentsByActionParams object with the ability to set a timeout on a request.

func (*ListUserConsentsByActionParams) SetAction

func (o *ListUserConsentsByActionParams) SetAction(action string)

SetAction adds the action to the list user consents by action params

func (*ListUserConsentsByActionParams) SetContext

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

SetContext adds the context to the list user consents by action params

func (*ListUserConsentsByActionParams) SetDefaults

func (o *ListUserConsentsByActionParams) SetDefaults()

SetDefaults hydrates default values in the list user consents by action params (not the query body).

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

func (*ListUserConsentsByActionParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the list user consents by action params

func (*ListUserConsentsByActionParams) SetTimeout

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

SetTimeout adds the timeout to the list user consents by action params

func (*ListUserConsentsByActionParams) WithAction

WithAction adds the action to the list user consents by action params

func (*ListUserConsentsByActionParams) WithContext

WithContext adds the context to the list user consents by action params

func (*ListUserConsentsByActionParams) WithDefaults

WithDefaults hydrates default values in the list user consents by action params (not the query body).

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

func (*ListUserConsentsByActionParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the list user consents by action params

func (*ListUserConsentsByActionParams) WithTimeout

WithTimeout adds the timeout to the list user consents by action params

func (*ListUserConsentsByActionParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type ListUserConsentsByActionReader

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

ListUserConsentsByActionReader is a Reader for the ListUserConsentsByAction structure.

func (*ListUserConsentsByActionReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type ListUserConsentsByActionTooManyRequests

type ListUserConsentsByActionTooManyRequests struct {
	Payload *models.Error
}

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

Too many requests

func NewListUserConsentsByActionTooManyRequests

func NewListUserConsentsByActionTooManyRequests() *ListUserConsentsByActionTooManyRequests

NewListUserConsentsByActionTooManyRequests creates a ListUserConsentsByActionTooManyRequests with default headers values

func (*ListUserConsentsByActionTooManyRequests) Code

Code gets the status code for the list user consents by action too many requests response

func (*ListUserConsentsByActionTooManyRequests) Error

func (*ListUserConsentsByActionTooManyRequests) GetPayload

func (*ListUserConsentsByActionTooManyRequests) IsClientError

func (o *ListUserConsentsByActionTooManyRequests) IsClientError() bool

IsClientError returns true when this list user consents by action too many requests response has a 4xx status code

func (*ListUserConsentsByActionTooManyRequests) IsCode

IsCode returns true when this list user consents by action too many requests response a status code equal to that given

func (*ListUserConsentsByActionTooManyRequests) IsRedirect

IsRedirect returns true when this list user consents by action too many requests response has a 3xx status code

func (*ListUserConsentsByActionTooManyRequests) IsServerError

func (o *ListUserConsentsByActionTooManyRequests) IsServerError() bool

IsServerError returns true when this list user consents by action too many requests response has a 5xx status code

func (*ListUserConsentsByActionTooManyRequests) IsSuccess

IsSuccess returns true when this list user consents by action too many requests response has a 2xx status code

func (*ListUserConsentsByActionTooManyRequests) String

type ListUserConsentsByActionUnauthorized

type ListUserConsentsByActionUnauthorized struct {
	Payload *models.Error
}

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

Unauthorized

func NewListUserConsentsByActionUnauthorized

func NewListUserConsentsByActionUnauthorized() *ListUserConsentsByActionUnauthorized

NewListUserConsentsByActionUnauthorized creates a ListUserConsentsByActionUnauthorized with default headers values

func (*ListUserConsentsByActionUnauthorized) Code

Code gets the status code for the list user consents by action unauthorized response

func (*ListUserConsentsByActionUnauthorized) Error

func (*ListUserConsentsByActionUnauthorized) GetPayload

func (*ListUserConsentsByActionUnauthorized) IsClientError

func (o *ListUserConsentsByActionUnauthorized) IsClientError() bool

IsClientError returns true when this list user consents by action unauthorized response has a 4xx status code

func (*ListUserConsentsByActionUnauthorized) IsCode

IsCode returns true when this list user consents by action unauthorized response a status code equal to that given

func (*ListUserConsentsByActionUnauthorized) IsRedirect

IsRedirect returns true when this list user consents by action unauthorized response has a 3xx status code

func (*ListUserConsentsByActionUnauthorized) IsServerError

func (o *ListUserConsentsByActionUnauthorized) IsServerError() bool

IsServerError returns true when this list user consents by action unauthorized response has a 5xx status code

func (*ListUserConsentsByActionUnauthorized) IsSuccess

IsSuccess returns true when this list user consents by action unauthorized response has a 2xx status code

func (*ListUserConsentsByActionUnauthorized) String

type ListUserConsentsForbidden

type ListUserConsentsForbidden struct {
	Payload *models.Error
}

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

Forbidden

func NewListUserConsentsForbidden

func NewListUserConsentsForbidden() *ListUserConsentsForbidden

NewListUserConsentsForbidden creates a ListUserConsentsForbidden with default headers values

func (*ListUserConsentsForbidden) Code

func (o *ListUserConsentsForbidden) Code() int

Code gets the status code for the list user consents forbidden response

func (*ListUserConsentsForbidden) Error

func (o *ListUserConsentsForbidden) Error() string

func (*ListUserConsentsForbidden) GetPayload

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

func (*ListUserConsentsForbidden) IsClientError

func (o *ListUserConsentsForbidden) IsClientError() bool

IsClientError returns true when this list user consents forbidden response has a 4xx status code

func (*ListUserConsentsForbidden) IsCode

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

IsCode returns true when this list user consents forbidden response a status code equal to that given

func (*ListUserConsentsForbidden) IsRedirect

func (o *ListUserConsentsForbidden) IsRedirect() bool

IsRedirect returns true when this list user consents forbidden response has a 3xx status code

func (*ListUserConsentsForbidden) IsServerError

func (o *ListUserConsentsForbidden) IsServerError() bool

IsServerError returns true when this list user consents forbidden response has a 5xx status code

func (*ListUserConsentsForbidden) IsSuccess

func (o *ListUserConsentsForbidden) IsSuccess() bool

IsSuccess returns true when this list user consents forbidden response has a 2xx status code

func (*ListUserConsentsForbidden) String

func (o *ListUserConsentsForbidden) String() string

type ListUserConsentsNotFound

type ListUserConsentsNotFound struct {
	Payload *models.Error
}

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

Not found

func NewListUserConsentsNotFound

func NewListUserConsentsNotFound() *ListUserConsentsNotFound

NewListUserConsentsNotFound creates a ListUserConsentsNotFound with default headers values

func (*ListUserConsentsNotFound) Code

func (o *ListUserConsentsNotFound) Code() int

Code gets the status code for the list user consents not found response

func (*ListUserConsentsNotFound) Error

func (o *ListUserConsentsNotFound) Error() string

func (*ListUserConsentsNotFound) GetPayload

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

func (*ListUserConsentsNotFound) IsClientError

func (o *ListUserConsentsNotFound) IsClientError() bool

IsClientError returns true when this list user consents not found response has a 4xx status code

func (*ListUserConsentsNotFound) IsCode

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

IsCode returns true when this list user consents not found response a status code equal to that given

func (*ListUserConsentsNotFound) IsRedirect

func (o *ListUserConsentsNotFound) IsRedirect() bool

IsRedirect returns true when this list user consents not found response has a 3xx status code

func (*ListUserConsentsNotFound) IsServerError

func (o *ListUserConsentsNotFound) IsServerError() bool

IsServerError returns true when this list user consents not found response has a 5xx status code

func (*ListUserConsentsNotFound) IsSuccess

func (o *ListUserConsentsNotFound) IsSuccess() bool

IsSuccess returns true when this list user consents not found response has a 2xx status code

func (*ListUserConsentsNotFound) String

func (o *ListUserConsentsNotFound) String() string

type ListUserConsentsOK

type ListUserConsentsOK struct {
	Payload *models.ConsentsWithGrants
}

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

Consents with grants

func NewListUserConsentsOK

func NewListUserConsentsOK() *ListUserConsentsOK

NewListUserConsentsOK creates a ListUserConsentsOK with default headers values

func (*ListUserConsentsOK) Code

func (o *ListUserConsentsOK) Code() int

Code gets the status code for the list user consents o k response

func (*ListUserConsentsOK) Error

func (o *ListUserConsentsOK) Error() string

func (*ListUserConsentsOK) GetPayload

func (o *ListUserConsentsOK) GetPayload() *models.ConsentsWithGrants

func (*ListUserConsentsOK) IsClientError

func (o *ListUserConsentsOK) IsClientError() bool

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

func (*ListUserConsentsOK) IsCode

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

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

func (*ListUserConsentsOK) IsRedirect

func (o *ListUserConsentsOK) IsRedirect() bool

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

func (*ListUserConsentsOK) IsServerError

func (o *ListUserConsentsOK) IsServerError() bool

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

func (*ListUserConsentsOK) IsSuccess

func (o *ListUserConsentsOK) IsSuccess() bool

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

func (*ListUserConsentsOK) String

func (o *ListUserConsentsOK) String() string

type ListUserConsentsParams

type ListUserConsentsParams struct {

	/* ConsentID.

	   optional identifiers of consents to be returned
	*/
	ConsentID []string

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

ListUserConsentsParams contains all the parameters to send to the API endpoint

for the list user consents operation.

Typically these are written to a http.Request.

func NewListUserConsentsParams

func NewListUserConsentsParams() *ListUserConsentsParams

NewListUserConsentsParams creates a new ListUserConsentsParams 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 NewListUserConsentsParamsWithContext

func NewListUserConsentsParamsWithContext(ctx context.Context) *ListUserConsentsParams

NewListUserConsentsParamsWithContext creates a new ListUserConsentsParams object with the ability to set a context for a request.

func NewListUserConsentsParamsWithHTTPClient

func NewListUserConsentsParamsWithHTTPClient(client *http.Client) *ListUserConsentsParams

NewListUserConsentsParamsWithHTTPClient creates a new ListUserConsentsParams object with the ability to set a custom HTTPClient for a request.

func NewListUserConsentsParamsWithTimeout

func NewListUserConsentsParamsWithTimeout(timeout time.Duration) *ListUserConsentsParams

NewListUserConsentsParamsWithTimeout creates a new ListUserConsentsParams object with the ability to set a timeout on a request.

func (*ListUserConsentsParams) SetConsentID

func (o *ListUserConsentsParams) SetConsentID(consentID []string)

SetConsentID adds the consentId to the list user consents params

func (*ListUserConsentsParams) SetContext

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

SetContext adds the context to the list user consents params

func (*ListUserConsentsParams) SetDefaults

func (o *ListUserConsentsParams) SetDefaults()

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

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

func (*ListUserConsentsParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the list user consents params

func (*ListUserConsentsParams) SetTimeout

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

SetTimeout adds the timeout to the list user consents params

func (*ListUserConsentsParams) WithConsentID

func (o *ListUserConsentsParams) WithConsentID(consentID []string) *ListUserConsentsParams

WithConsentID adds the consentID to the list user consents params

func (*ListUserConsentsParams) WithContext

WithContext adds the context to the list user consents params

func (*ListUserConsentsParams) WithDefaults

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

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

func (*ListUserConsentsParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the list user consents params

func (*ListUserConsentsParams) WithTimeout

WithTimeout adds the timeout to the list user consents params

func (*ListUserConsentsParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type ListUserConsentsReader

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

ListUserConsentsReader is a Reader for the ListUserConsents structure.

func (*ListUserConsentsReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type ListUserConsentsTooManyRequests

type ListUserConsentsTooManyRequests struct {
	Payload *models.Error
}

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

Too many requests

func NewListUserConsentsTooManyRequests

func NewListUserConsentsTooManyRequests() *ListUserConsentsTooManyRequests

NewListUserConsentsTooManyRequests creates a ListUserConsentsTooManyRequests with default headers values

func (*ListUserConsentsTooManyRequests) Code

Code gets the status code for the list user consents too many requests response

func (*ListUserConsentsTooManyRequests) Error

func (*ListUserConsentsTooManyRequests) GetPayload

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

func (*ListUserConsentsTooManyRequests) IsClientError

func (o *ListUserConsentsTooManyRequests) IsClientError() bool

IsClientError returns true when this list user consents too many requests response has a 4xx status code

func (*ListUserConsentsTooManyRequests) IsCode

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

IsCode returns true when this list user consents too many requests response a status code equal to that given

func (*ListUserConsentsTooManyRequests) IsRedirect

func (o *ListUserConsentsTooManyRequests) IsRedirect() bool

IsRedirect returns true when this list user consents too many requests response has a 3xx status code

func (*ListUserConsentsTooManyRequests) IsServerError

func (o *ListUserConsentsTooManyRequests) IsServerError() bool

IsServerError returns true when this list user consents too many requests response has a 5xx status code

func (*ListUserConsentsTooManyRequests) IsSuccess

func (o *ListUserConsentsTooManyRequests) IsSuccess() bool

IsSuccess returns true when this list user consents too many requests response has a 2xx status code

func (*ListUserConsentsTooManyRequests) String

type ListUserConsentsUnauthorized

type ListUserConsentsUnauthorized struct {
	Payload *models.Error
}

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

Unauthorized

func NewListUserConsentsUnauthorized

func NewListUserConsentsUnauthorized() *ListUserConsentsUnauthorized

NewListUserConsentsUnauthorized creates a ListUserConsentsUnauthorized with default headers values

func (*ListUserConsentsUnauthorized) Code

Code gets the status code for the list user consents unauthorized response

func (*ListUserConsentsUnauthorized) Error

func (*ListUserConsentsUnauthorized) GetPayload

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

func (*ListUserConsentsUnauthorized) IsClientError

func (o *ListUserConsentsUnauthorized) IsClientError() bool

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

func (*ListUserConsentsUnauthorized) IsCode

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

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

func (*ListUserConsentsUnauthorized) IsRedirect

func (o *ListUserConsentsUnauthorized) IsRedirect() bool

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

func (*ListUserConsentsUnauthorized) IsServerError

func (o *ListUserConsentsUnauthorized) IsServerError() bool

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

func (*ListUserConsentsUnauthorized) IsSuccess

func (o *ListUserConsentsUnauthorized) IsSuccess() bool

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

func (*ListUserConsentsUnauthorized) String

type PatchConsentGrantsConflict

type PatchConsentGrantsConflict struct {
	Payload *models.Error
}

PatchConsentGrantsConflict describes a response with status code 409, with default header values.

Conflict

func NewPatchConsentGrantsConflict

func NewPatchConsentGrantsConflict() *PatchConsentGrantsConflict

NewPatchConsentGrantsConflict creates a PatchConsentGrantsConflict with default headers values

func (*PatchConsentGrantsConflict) Code

func (o *PatchConsentGrantsConflict) Code() int

Code gets the status code for the patch consent grants conflict response

func (*PatchConsentGrantsConflict) Error

func (*PatchConsentGrantsConflict) GetPayload

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

func (*PatchConsentGrantsConflict) IsClientError

func (o *PatchConsentGrantsConflict) IsClientError() bool

IsClientError returns true when this patch consent grants conflict response has a 4xx status code

func (*PatchConsentGrantsConflict) IsCode

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

IsCode returns true when this patch consent grants conflict response a status code equal to that given

func (*PatchConsentGrantsConflict) IsRedirect

func (o *PatchConsentGrantsConflict) IsRedirect() bool

IsRedirect returns true when this patch consent grants conflict response has a 3xx status code

func (*PatchConsentGrantsConflict) IsServerError

func (o *PatchConsentGrantsConflict) IsServerError() bool

IsServerError returns true when this patch consent grants conflict response has a 5xx status code

func (*PatchConsentGrantsConflict) IsSuccess

func (o *PatchConsentGrantsConflict) IsSuccess() bool

IsSuccess returns true when this patch consent grants conflict response has a 2xx status code

func (*PatchConsentGrantsConflict) String

func (o *PatchConsentGrantsConflict) String() string

type PatchConsentGrantsCreated

type PatchConsentGrantsCreated struct {
	Payload *models.ConsentGrantPatchResponse
}

PatchConsentGrantsCreated describes a response with status code 201, with default header values.

Consent grant patch

func NewPatchConsentGrantsCreated

func NewPatchConsentGrantsCreated() *PatchConsentGrantsCreated

NewPatchConsentGrantsCreated creates a PatchConsentGrantsCreated with default headers values

func (*PatchConsentGrantsCreated) Code

func (o *PatchConsentGrantsCreated) Code() int

Code gets the status code for the patch consent grants created response

func (*PatchConsentGrantsCreated) Error

func (o *PatchConsentGrantsCreated) Error() string

func (*PatchConsentGrantsCreated) GetPayload

func (*PatchConsentGrantsCreated) IsClientError

func (o *PatchConsentGrantsCreated) IsClientError() bool

IsClientError returns true when this patch consent grants created response has a 4xx status code

func (*PatchConsentGrantsCreated) IsCode

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

IsCode returns true when this patch consent grants created response a status code equal to that given

func (*PatchConsentGrantsCreated) IsRedirect

func (o *PatchConsentGrantsCreated) IsRedirect() bool

IsRedirect returns true when this patch consent grants created response has a 3xx status code

func (*PatchConsentGrantsCreated) IsServerError

func (o *PatchConsentGrantsCreated) IsServerError() bool

IsServerError returns true when this patch consent grants created response has a 5xx status code

func (*PatchConsentGrantsCreated) IsSuccess

func (o *PatchConsentGrantsCreated) IsSuccess() bool

IsSuccess returns true when this patch consent grants created response has a 2xx status code

func (*PatchConsentGrantsCreated) String

func (o *PatchConsentGrantsCreated) String() string

type PatchConsentGrantsForbidden

type PatchConsentGrantsForbidden struct {
	Payload *models.Error
}

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

Forbidden

func NewPatchConsentGrantsForbidden

func NewPatchConsentGrantsForbidden() *PatchConsentGrantsForbidden

NewPatchConsentGrantsForbidden creates a PatchConsentGrantsForbidden with default headers values

func (*PatchConsentGrantsForbidden) Code

func (o *PatchConsentGrantsForbidden) Code() int

Code gets the status code for the patch consent grants forbidden response

func (*PatchConsentGrantsForbidden) Error

func (*PatchConsentGrantsForbidden) GetPayload

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

func (*PatchConsentGrantsForbidden) IsClientError

func (o *PatchConsentGrantsForbidden) IsClientError() bool

IsClientError returns true when this patch consent grants forbidden response has a 4xx status code

func (*PatchConsentGrantsForbidden) IsCode

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

IsCode returns true when this patch consent grants forbidden response a status code equal to that given

func (*PatchConsentGrantsForbidden) IsRedirect

func (o *PatchConsentGrantsForbidden) IsRedirect() bool

IsRedirect returns true when this patch consent grants forbidden response has a 3xx status code

func (*PatchConsentGrantsForbidden) IsServerError

func (o *PatchConsentGrantsForbidden) IsServerError() bool

IsServerError returns true when this patch consent grants forbidden response has a 5xx status code

func (*PatchConsentGrantsForbidden) IsSuccess

func (o *PatchConsentGrantsForbidden) IsSuccess() bool

IsSuccess returns true when this patch consent grants forbidden response has a 2xx status code

func (*PatchConsentGrantsForbidden) String

func (o *PatchConsentGrantsForbidden) String() string

type PatchConsentGrantsNotFound

type PatchConsentGrantsNotFound struct {
	Payload *models.Error
}

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

Not found

func NewPatchConsentGrantsNotFound

func NewPatchConsentGrantsNotFound() *PatchConsentGrantsNotFound

NewPatchConsentGrantsNotFound creates a PatchConsentGrantsNotFound with default headers values

func (*PatchConsentGrantsNotFound) Code

func (o *PatchConsentGrantsNotFound) Code() int

Code gets the status code for the patch consent grants not found response

func (*PatchConsentGrantsNotFound) Error

func (*PatchConsentGrantsNotFound) GetPayload

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

func (*PatchConsentGrantsNotFound) IsClientError

func (o *PatchConsentGrantsNotFound) IsClientError() bool

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

func (*PatchConsentGrantsNotFound) IsCode

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

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

func (*PatchConsentGrantsNotFound) IsRedirect

func (o *PatchConsentGrantsNotFound) IsRedirect() bool

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

func (*PatchConsentGrantsNotFound) IsServerError

func (o *PatchConsentGrantsNotFound) IsServerError() bool

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

func (*PatchConsentGrantsNotFound) IsSuccess

func (o *PatchConsentGrantsNotFound) IsSuccess() bool

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

func (*PatchConsentGrantsNotFound) String

func (o *PatchConsentGrantsNotFound) String() string

type PatchConsentGrantsParams

type PatchConsentGrantsParams struct {

	// ConsentGrantPatchRequest.
	ConsentGrantPatchRequest *models.ConsentGrantPatchRequest

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

PatchConsentGrantsParams contains all the parameters to send to the API endpoint

for the patch consent grants operation.

Typically these are written to a http.Request.

func NewPatchConsentGrantsParams

func NewPatchConsentGrantsParams() *PatchConsentGrantsParams

NewPatchConsentGrantsParams creates a new PatchConsentGrantsParams 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 NewPatchConsentGrantsParamsWithContext

func NewPatchConsentGrantsParamsWithContext(ctx context.Context) *PatchConsentGrantsParams

NewPatchConsentGrantsParamsWithContext creates a new PatchConsentGrantsParams object with the ability to set a context for a request.

func NewPatchConsentGrantsParamsWithHTTPClient

func NewPatchConsentGrantsParamsWithHTTPClient(client *http.Client) *PatchConsentGrantsParams

NewPatchConsentGrantsParamsWithHTTPClient creates a new PatchConsentGrantsParams object with the ability to set a custom HTTPClient for a request.

func NewPatchConsentGrantsParamsWithTimeout

func NewPatchConsentGrantsParamsWithTimeout(timeout time.Duration) *PatchConsentGrantsParams

NewPatchConsentGrantsParamsWithTimeout creates a new PatchConsentGrantsParams object with the ability to set a timeout on a request.

func (*PatchConsentGrantsParams) SetConsentGrantPatchRequest

func (o *PatchConsentGrantsParams) SetConsentGrantPatchRequest(consentGrantPatchRequest *models.ConsentGrantPatchRequest)

SetConsentGrantPatchRequest adds the consentGrantPatchRequest to the patch consent grants params

func (*PatchConsentGrantsParams) SetContext

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

SetContext adds the context to the patch consent grants params

func (*PatchConsentGrantsParams) SetDefaults

func (o *PatchConsentGrantsParams) SetDefaults()

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

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

func (*PatchConsentGrantsParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the patch consent grants params

func (*PatchConsentGrantsParams) SetTimeout

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

SetTimeout adds the timeout to the patch consent grants params

func (*PatchConsentGrantsParams) WithConsentGrantPatchRequest

func (o *PatchConsentGrantsParams) WithConsentGrantPatchRequest(consentGrantPatchRequest *models.ConsentGrantPatchRequest) *PatchConsentGrantsParams

WithConsentGrantPatchRequest adds the consentGrantPatchRequest to the patch consent grants params

func (*PatchConsentGrantsParams) WithContext

WithContext adds the context to the patch consent grants params

func (*PatchConsentGrantsParams) WithDefaults

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

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

func (*PatchConsentGrantsParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the patch consent grants params

func (*PatchConsentGrantsParams) WithTimeout

WithTimeout adds the timeout to the patch consent grants params

func (*PatchConsentGrantsParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type PatchConsentGrantsReader

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

PatchConsentGrantsReader is a Reader for the PatchConsentGrants structure.

func (*PatchConsentGrantsReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type PatchConsentGrantsTooManyRequests

type PatchConsentGrantsTooManyRequests struct {
	Payload *models.Error
}

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

Too many requests

func NewPatchConsentGrantsTooManyRequests

func NewPatchConsentGrantsTooManyRequests() *PatchConsentGrantsTooManyRequests

NewPatchConsentGrantsTooManyRequests creates a PatchConsentGrantsTooManyRequests with default headers values

func (*PatchConsentGrantsTooManyRequests) Code

Code gets the status code for the patch consent grants too many requests response

func (*PatchConsentGrantsTooManyRequests) Error

func (*PatchConsentGrantsTooManyRequests) GetPayload

func (*PatchConsentGrantsTooManyRequests) IsClientError

func (o *PatchConsentGrantsTooManyRequests) IsClientError() bool

IsClientError returns true when this patch consent grants too many requests response has a 4xx status code

func (*PatchConsentGrantsTooManyRequests) IsCode

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

IsCode returns true when this patch consent grants too many requests response a status code equal to that given

func (*PatchConsentGrantsTooManyRequests) IsRedirect

func (o *PatchConsentGrantsTooManyRequests) IsRedirect() bool

IsRedirect returns true when this patch consent grants too many requests response has a 3xx status code

func (*PatchConsentGrantsTooManyRequests) IsServerError

func (o *PatchConsentGrantsTooManyRequests) IsServerError() bool

IsServerError returns true when this patch consent grants too many requests response has a 5xx status code

func (*PatchConsentGrantsTooManyRequests) IsSuccess

func (o *PatchConsentGrantsTooManyRequests) IsSuccess() bool

IsSuccess returns true when this patch consent grants too many requests response has a 2xx status code

func (*PatchConsentGrantsTooManyRequests) String

type PatchConsentGrantsUnauthorized

type PatchConsentGrantsUnauthorized struct {
	Payload *models.Error
}

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

Unauthorized

func NewPatchConsentGrantsUnauthorized

func NewPatchConsentGrantsUnauthorized() *PatchConsentGrantsUnauthorized

NewPatchConsentGrantsUnauthorized creates a PatchConsentGrantsUnauthorized with default headers values

func (*PatchConsentGrantsUnauthorized) Code

Code gets the status code for the patch consent grants unauthorized response

func (*PatchConsentGrantsUnauthorized) Error

func (*PatchConsentGrantsUnauthorized) GetPayload

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

func (*PatchConsentGrantsUnauthorized) IsClientError

func (o *PatchConsentGrantsUnauthorized) IsClientError() bool

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

func (*PatchConsentGrantsUnauthorized) IsCode

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

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

func (*PatchConsentGrantsUnauthorized) IsRedirect

func (o *PatchConsentGrantsUnauthorized) IsRedirect() bool

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

func (*PatchConsentGrantsUnauthorized) IsServerError

func (o *PatchConsentGrantsUnauthorized) IsServerError() bool

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

func (*PatchConsentGrantsUnauthorized) IsSuccess

func (o *PatchConsentGrantsUnauthorized) IsSuccess() bool

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

func (*PatchConsentGrantsUnauthorized) String

type PatchConsentGrantsUnprocessableEntity

type PatchConsentGrantsUnprocessableEntity struct {
	Payload *models.Error
}

PatchConsentGrantsUnprocessableEntity describes a response with status code 422, with default header values.

Unprocessable entity

func NewPatchConsentGrantsUnprocessableEntity

func NewPatchConsentGrantsUnprocessableEntity() *PatchConsentGrantsUnprocessableEntity

NewPatchConsentGrantsUnprocessableEntity creates a PatchConsentGrantsUnprocessableEntity with default headers values

func (*PatchConsentGrantsUnprocessableEntity) Code

Code gets the status code for the patch consent grants unprocessable entity response

func (*PatchConsentGrantsUnprocessableEntity) Error

func (*PatchConsentGrantsUnprocessableEntity) GetPayload

func (*PatchConsentGrantsUnprocessableEntity) IsClientError

func (o *PatchConsentGrantsUnprocessableEntity) IsClientError() bool

IsClientError returns true when this patch consent grants unprocessable entity response has a 4xx status code

func (*PatchConsentGrantsUnprocessableEntity) IsCode

IsCode returns true when this patch consent grants unprocessable entity response a status code equal to that given

func (*PatchConsentGrantsUnprocessableEntity) IsRedirect

IsRedirect returns true when this patch consent grants unprocessable entity response has a 3xx status code

func (*PatchConsentGrantsUnprocessableEntity) IsServerError

func (o *PatchConsentGrantsUnprocessableEntity) IsServerError() bool

IsServerError returns true when this patch consent grants unprocessable entity response has a 5xx status code

func (*PatchConsentGrantsUnprocessableEntity) IsSuccess

IsSuccess returns true when this patch consent grants unprocessable entity response has a 2xx status code

func (*PatchConsentGrantsUnprocessableEntity) String

type RevokeConsentForbidden

type RevokeConsentForbidden struct {
	Payload *models.Error
}

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

Forbidden

func NewRevokeConsentForbidden

func NewRevokeConsentForbidden() *RevokeConsentForbidden

NewRevokeConsentForbidden creates a RevokeConsentForbidden with default headers values

func (*RevokeConsentForbidden) Code

func (o *RevokeConsentForbidden) Code() int

Code gets the status code for the revoke consent forbidden response

func (*RevokeConsentForbidden) Error

func (o *RevokeConsentForbidden) Error() string

func (*RevokeConsentForbidden) GetPayload

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

func (*RevokeConsentForbidden) IsClientError

func (o *RevokeConsentForbidden) IsClientError() bool

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

func (*RevokeConsentForbidden) IsCode

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

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

func (*RevokeConsentForbidden) IsRedirect

func (o *RevokeConsentForbidden) IsRedirect() bool

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

func (*RevokeConsentForbidden) IsServerError

func (o *RevokeConsentForbidden) IsServerError() bool

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

func (*RevokeConsentForbidden) IsSuccess

func (o *RevokeConsentForbidden) IsSuccess() bool

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

func (*RevokeConsentForbidden) String

func (o *RevokeConsentForbidden) String() string

type RevokeConsentNotFound

type RevokeConsentNotFound struct {
	Payload *models.Error
}

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

Not found

func NewRevokeConsentNotFound

func NewRevokeConsentNotFound() *RevokeConsentNotFound

NewRevokeConsentNotFound creates a RevokeConsentNotFound with default headers values

func (*RevokeConsentNotFound) Code

func (o *RevokeConsentNotFound) Code() int

Code gets the status code for the revoke consent not found response

func (*RevokeConsentNotFound) Error

func (o *RevokeConsentNotFound) Error() string

func (*RevokeConsentNotFound) GetPayload

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

func (*RevokeConsentNotFound) IsClientError

func (o *RevokeConsentNotFound) IsClientError() bool

IsClientError returns true when this revoke consent not found response has a 4xx status code

func (*RevokeConsentNotFound) IsCode

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

IsCode returns true when this revoke consent not found response a status code equal to that given

func (*RevokeConsentNotFound) IsRedirect

func (o *RevokeConsentNotFound) IsRedirect() bool

IsRedirect returns true when this revoke consent not found response has a 3xx status code

func (*RevokeConsentNotFound) IsServerError

func (o *RevokeConsentNotFound) IsServerError() bool

IsServerError returns true when this revoke consent not found response has a 5xx status code

func (*RevokeConsentNotFound) IsSuccess

func (o *RevokeConsentNotFound) IsSuccess() bool

IsSuccess returns true when this revoke consent not found response has a 2xx status code

func (*RevokeConsentNotFound) String

func (o *RevokeConsentNotFound) String() string

type RevokeConsentOK

type RevokeConsentOK struct {
	Payload *models.ConsentGrant
}

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

Consent grant

func NewRevokeConsentOK

func NewRevokeConsentOK() *RevokeConsentOK

NewRevokeConsentOK creates a RevokeConsentOK with default headers values

func (*RevokeConsentOK) Code

func (o *RevokeConsentOK) Code() int

Code gets the status code for the revoke consent o k response

func (*RevokeConsentOK) Error

func (o *RevokeConsentOK) Error() string

func (*RevokeConsentOK) GetPayload

func (o *RevokeConsentOK) GetPayload() *models.ConsentGrant

func (*RevokeConsentOK) IsClientError

func (o *RevokeConsentOK) IsClientError() bool

IsClientError returns true when this revoke consent o k response has a 4xx status code

func (*RevokeConsentOK) IsCode

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

IsCode returns true when this revoke consent o k response a status code equal to that given

func (*RevokeConsentOK) IsRedirect

func (o *RevokeConsentOK) IsRedirect() bool

IsRedirect returns true when this revoke consent o k response has a 3xx status code

func (*RevokeConsentOK) IsServerError

func (o *RevokeConsentOK) IsServerError() bool

IsServerError returns true when this revoke consent o k response has a 5xx status code

func (*RevokeConsentOK) IsSuccess

func (o *RevokeConsentOK) IsSuccess() bool

IsSuccess returns true when this revoke consent o k response has a 2xx status code

func (*RevokeConsentOK) String

func (o *RevokeConsentOK) String() string

type RevokeConsentParams

type RevokeConsentParams struct {

	// ConsentGrant.
	ConsentGrant *models.ConsentGrantRequest

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

RevokeConsentParams contains all the parameters to send to the API endpoint

for the revoke consent operation.

Typically these are written to a http.Request.

func NewRevokeConsentParams

func NewRevokeConsentParams() *RevokeConsentParams

NewRevokeConsentParams creates a new RevokeConsentParams 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 NewRevokeConsentParamsWithContext

func NewRevokeConsentParamsWithContext(ctx context.Context) *RevokeConsentParams

NewRevokeConsentParamsWithContext creates a new RevokeConsentParams object with the ability to set a context for a request.

func NewRevokeConsentParamsWithHTTPClient

func NewRevokeConsentParamsWithHTTPClient(client *http.Client) *RevokeConsentParams

NewRevokeConsentParamsWithHTTPClient creates a new RevokeConsentParams object with the ability to set a custom HTTPClient for a request.

func NewRevokeConsentParamsWithTimeout

func NewRevokeConsentParamsWithTimeout(timeout time.Duration) *RevokeConsentParams

NewRevokeConsentParamsWithTimeout creates a new RevokeConsentParams object with the ability to set a timeout on a request.

func (*RevokeConsentParams) SetConsentGrant

func (o *RevokeConsentParams) SetConsentGrant(consentGrant *models.ConsentGrantRequest)

SetConsentGrant adds the consentGrant to the revoke consent params

func (*RevokeConsentParams) SetContext

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

SetContext adds the context to the revoke consent params

func (*RevokeConsentParams) SetDefaults

func (o *RevokeConsentParams) SetDefaults()

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

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

func (*RevokeConsentParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the revoke consent params

func (*RevokeConsentParams) SetTimeout

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

SetTimeout adds the timeout to the revoke consent params

func (*RevokeConsentParams) WithConsentGrant

func (o *RevokeConsentParams) WithConsentGrant(consentGrant *models.ConsentGrantRequest) *RevokeConsentParams

WithConsentGrant adds the consentGrant to the revoke consent params

func (*RevokeConsentParams) WithContext

WithContext adds the context to the revoke consent params

func (*RevokeConsentParams) WithDefaults

func (o *RevokeConsentParams) WithDefaults() *RevokeConsentParams

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

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

func (*RevokeConsentParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the revoke consent params

func (*RevokeConsentParams) WithTimeout

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

WithTimeout adds the timeout to the revoke consent params

func (*RevokeConsentParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type RevokeConsentReader

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

RevokeConsentReader is a Reader for the RevokeConsent structure.

func (*RevokeConsentReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type RevokeConsentTooManyRequests

type RevokeConsentTooManyRequests struct {
	Payload *models.Error
}

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

Too many requests

func NewRevokeConsentTooManyRequests

func NewRevokeConsentTooManyRequests() *RevokeConsentTooManyRequests

NewRevokeConsentTooManyRequests creates a RevokeConsentTooManyRequests with default headers values

func (*RevokeConsentTooManyRequests) Code

Code gets the status code for the revoke consent too many requests response

func (*RevokeConsentTooManyRequests) Error

func (*RevokeConsentTooManyRequests) GetPayload

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

func (*RevokeConsentTooManyRequests) IsClientError

func (o *RevokeConsentTooManyRequests) IsClientError() bool

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

func (*RevokeConsentTooManyRequests) IsCode

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

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

func (*RevokeConsentTooManyRequests) IsRedirect

func (o *RevokeConsentTooManyRequests) IsRedirect() bool

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

func (*RevokeConsentTooManyRequests) IsServerError

func (o *RevokeConsentTooManyRequests) IsServerError() bool

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

func (*RevokeConsentTooManyRequests) IsSuccess

func (o *RevokeConsentTooManyRequests) IsSuccess() bool

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

func (*RevokeConsentTooManyRequests) String

type RevokeConsentUnauthorized

type RevokeConsentUnauthorized struct {
	Payload *models.Error
}

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

Unauthorized

func NewRevokeConsentUnauthorized

func NewRevokeConsentUnauthorized() *RevokeConsentUnauthorized

NewRevokeConsentUnauthorized creates a RevokeConsentUnauthorized with default headers values

func (*RevokeConsentUnauthorized) Code

func (o *RevokeConsentUnauthorized) Code() int

Code gets the status code for the revoke consent unauthorized response

func (*RevokeConsentUnauthorized) Error

func (o *RevokeConsentUnauthorized) Error() string

func (*RevokeConsentUnauthorized) GetPayload

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

func (*RevokeConsentUnauthorized) IsClientError

func (o *RevokeConsentUnauthorized) IsClientError() bool

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

func (*RevokeConsentUnauthorized) IsCode

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

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

func (*RevokeConsentUnauthorized) IsRedirect

func (o *RevokeConsentUnauthorized) IsRedirect() bool

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

func (*RevokeConsentUnauthorized) IsServerError

func (o *RevokeConsentUnauthorized) IsServerError() bool

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

func (*RevokeConsentUnauthorized) IsSuccess

func (o *RevokeConsentUnauthorized) IsSuccess() bool

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

func (*RevokeConsentUnauthorized) String

func (o *RevokeConsentUnauthorized) String() string

type RevokeConsentUnprocessableEntity

type RevokeConsentUnprocessableEntity struct {
	Payload *models.Error
}

RevokeConsentUnprocessableEntity describes a response with status code 422, with default header values.

Unprocessable entity

func NewRevokeConsentUnprocessableEntity

func NewRevokeConsentUnprocessableEntity() *RevokeConsentUnprocessableEntity

NewRevokeConsentUnprocessableEntity creates a RevokeConsentUnprocessableEntity with default headers values

func (*RevokeConsentUnprocessableEntity) Code

Code gets the status code for the revoke consent unprocessable entity response

func (*RevokeConsentUnprocessableEntity) Error

func (*RevokeConsentUnprocessableEntity) GetPayload

func (*RevokeConsentUnprocessableEntity) IsClientError

func (o *RevokeConsentUnprocessableEntity) IsClientError() bool

IsClientError returns true when this revoke consent unprocessable entity response has a 4xx status code

func (*RevokeConsentUnprocessableEntity) IsCode

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

IsCode returns true when this revoke consent unprocessable entity response a status code equal to that given

func (*RevokeConsentUnprocessableEntity) IsRedirect

func (o *RevokeConsentUnprocessableEntity) IsRedirect() bool

IsRedirect returns true when this revoke consent unprocessable entity response has a 3xx status code

func (*RevokeConsentUnprocessableEntity) IsServerError

func (o *RevokeConsentUnprocessableEntity) IsServerError() bool

IsServerError returns true when this revoke consent unprocessable entity response has a 5xx status code

func (*RevokeConsentUnprocessableEntity) IsSuccess

func (o *RevokeConsentUnprocessableEntity) IsSuccess() bool

IsSuccess returns true when this revoke consent unprocessable entity response has a 2xx status code

func (*RevokeConsentUnprocessableEntity) String

Jump to

Keyboard shortcuts

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