revocation

package
v0.28.1 Latest Latest
Warning

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

Go to latest
Published: Apr 14, 2026 License: Apache-2.0 Imports: 13 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 revocation API

func (*Client) CreateRevocation

func (a *Client) CreateRevocation(params *CreateRevocationParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*CreateRevocationCreated, error)

CreateRevocation creates a revocation

Creates a revocation entry. Requires admin access.

func (*Client) DetailRevocation

func (a *Client) DetailRevocation(params *DetailRevocationParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DetailRevocationOK, error)

DetailRevocation retrieves a single revocation

Retrieves a single revocation by id. Requires admin access.

func (*Client) ListRevocations

func (a *Client) ListRevocations(params *ListRevocationsParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ListRevocationsOK, error)

ListRevocations lists revocations

Retrieves a list of revocations

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 may be used to customize the behavior of Client methods.

type ClientService

type ClientService interface {
	CreateRevocation(params *CreateRevocationParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*CreateRevocationCreated, error)

	DetailRevocation(params *DetailRevocationParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DetailRevocationOK, error)

	ListRevocations(params *ListRevocationsParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ListRevocationsOK, 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 revocation API client.

func NewClientWithBasicAuth

func NewClientWithBasicAuth(host, basePath, scheme, user, password string) ClientService

New creates a new revocation API client with basic auth credentials. It takes the following parameters: - host: http host (github.com). - basePath: any base path for the API client ("/v1", "/v3"). - scheme: http scheme ("http", "https"). - user: user for basic authentication header. - password: password for basic authentication header.

func NewClientWithBearerToken

func NewClientWithBearerToken(host, basePath, scheme, bearerToken string) ClientService

New creates a new revocation API client with a bearer token for authentication. It takes the following parameters: - host: http host (github.com). - basePath: any base path for the API client ("/v1", "/v3"). - scheme: http scheme ("http", "https"). - bearerToken: bearer token for Bearer authentication header.

type CreateRevocationBadRequest

type CreateRevocationBadRequest struct {

	/* Denotes different type of security token related information
	 */
	WWWAuthenticate []string

	Payload *rest_model.APIErrorEnvelope
}

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

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

func NewCreateRevocationBadRequest

func NewCreateRevocationBadRequest() *CreateRevocationBadRequest

NewCreateRevocationBadRequest creates a CreateRevocationBadRequest with default headers values

func (*CreateRevocationBadRequest) Code

func (o *CreateRevocationBadRequest) Code() int

Code gets the status code for the create revocation bad request response

func (*CreateRevocationBadRequest) Error

func (*CreateRevocationBadRequest) GetPayload

func (*CreateRevocationBadRequest) IsClientError

func (o *CreateRevocationBadRequest) IsClientError() bool

IsClientError returns true when this create revocation bad request response has a 4xx status code

func (*CreateRevocationBadRequest) IsCode

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

IsCode returns true when this create revocation bad request response a status code equal to that given

func (*CreateRevocationBadRequest) IsRedirect

func (o *CreateRevocationBadRequest) IsRedirect() bool

IsRedirect returns true when this create revocation bad request response has a 3xx status code

func (*CreateRevocationBadRequest) IsServerError

func (o *CreateRevocationBadRequest) IsServerError() bool

IsServerError returns true when this create revocation bad request response has a 5xx status code

func (*CreateRevocationBadRequest) IsSuccess

func (o *CreateRevocationBadRequest) IsSuccess() bool

IsSuccess returns true when this create revocation bad request response has a 2xx status code

func (*CreateRevocationBadRequest) String

func (o *CreateRevocationBadRequest) String() string

type CreateRevocationCreated

type CreateRevocationCreated struct {

	/* Denotes different type of security token related information
	 */
	WWWAuthenticate []string

	Payload *rest_model.CreateEnvelope
}

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

The create request was successful and the resource has been added at the following location

func NewCreateRevocationCreated

func NewCreateRevocationCreated() *CreateRevocationCreated

NewCreateRevocationCreated creates a CreateRevocationCreated with default headers values

func (*CreateRevocationCreated) Code

func (o *CreateRevocationCreated) Code() int

Code gets the status code for the create revocation created response

func (*CreateRevocationCreated) Error

func (o *CreateRevocationCreated) Error() string

func (*CreateRevocationCreated) GetPayload

func (*CreateRevocationCreated) IsClientError

func (o *CreateRevocationCreated) IsClientError() bool

IsClientError returns true when this create revocation created response has a 4xx status code

func (*CreateRevocationCreated) IsCode

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

IsCode returns true when this create revocation created response a status code equal to that given

func (*CreateRevocationCreated) IsRedirect

func (o *CreateRevocationCreated) IsRedirect() bool

IsRedirect returns true when this create revocation created response has a 3xx status code

func (*CreateRevocationCreated) IsServerError

func (o *CreateRevocationCreated) IsServerError() bool

IsServerError returns true when this create revocation created response has a 5xx status code

func (*CreateRevocationCreated) IsSuccess

func (o *CreateRevocationCreated) IsSuccess() bool

IsSuccess returns true when this create revocation created response has a 2xx status code

func (*CreateRevocationCreated) String

func (o *CreateRevocationCreated) String() string

type CreateRevocationNotFound

type CreateRevocationNotFound struct {

	/* Denotes different type of security token related information
	 */
	WWWAuthenticate []string

	Payload *rest_model.APIErrorEnvelope
}

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

The requested resource does not exist

func NewCreateRevocationNotFound

func NewCreateRevocationNotFound() *CreateRevocationNotFound

NewCreateRevocationNotFound creates a CreateRevocationNotFound with default headers values

func (*CreateRevocationNotFound) Code

func (o *CreateRevocationNotFound) Code() int

Code gets the status code for the create revocation not found response

func (*CreateRevocationNotFound) Error

func (o *CreateRevocationNotFound) Error() string

func (*CreateRevocationNotFound) GetPayload

func (*CreateRevocationNotFound) IsClientError

func (o *CreateRevocationNotFound) IsClientError() bool

IsClientError returns true when this create revocation not found response has a 4xx status code

func (*CreateRevocationNotFound) IsCode

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

IsCode returns true when this create revocation not found response a status code equal to that given

func (*CreateRevocationNotFound) IsRedirect

func (o *CreateRevocationNotFound) IsRedirect() bool

IsRedirect returns true when this create revocation not found response has a 3xx status code

func (*CreateRevocationNotFound) IsServerError

func (o *CreateRevocationNotFound) IsServerError() bool

IsServerError returns true when this create revocation not found response has a 5xx status code

func (*CreateRevocationNotFound) IsSuccess

func (o *CreateRevocationNotFound) IsSuccess() bool

IsSuccess returns true when this create revocation not found response has a 2xx status code

func (*CreateRevocationNotFound) String

func (o *CreateRevocationNotFound) String() string

type CreateRevocationParams

type CreateRevocationParams struct {

	/* Revocation.

	   A Revocation to create
	*/
	Revocation *rest_model.RevocationCreate

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

CreateRevocationParams contains all the parameters to send to the API endpoint

for the create revocation operation.

Typically these are written to a http.Request.

func NewCreateRevocationParams

func NewCreateRevocationParams() *CreateRevocationParams

NewCreateRevocationParams creates a new CreateRevocationParams 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 NewCreateRevocationParamsWithContext

func NewCreateRevocationParamsWithContext(ctx context.Context) *CreateRevocationParams

NewCreateRevocationParamsWithContext creates a new CreateRevocationParams object with the ability to set a context for a request.

func NewCreateRevocationParamsWithHTTPClient

func NewCreateRevocationParamsWithHTTPClient(client *http.Client) *CreateRevocationParams

NewCreateRevocationParamsWithHTTPClient creates a new CreateRevocationParams object with the ability to set a custom HTTPClient for a request.

func NewCreateRevocationParamsWithTimeout

func NewCreateRevocationParamsWithTimeout(timeout time.Duration) *CreateRevocationParams

NewCreateRevocationParamsWithTimeout creates a new CreateRevocationParams object with the ability to set a timeout on a request.

func (*CreateRevocationParams) SetContext

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

SetContext adds the context to the create revocation params

func (*CreateRevocationParams) SetDefaults

func (o *CreateRevocationParams) SetDefaults()

SetDefaults hydrates default values in the create revocation params (not the query body).

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

func (*CreateRevocationParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the create revocation params

func (*CreateRevocationParams) SetRevocation

func (o *CreateRevocationParams) SetRevocation(revocation *rest_model.RevocationCreate)

SetRevocation adds the revocation to the create revocation params

func (*CreateRevocationParams) SetTimeout

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

SetTimeout adds the timeout to the create revocation params

func (*CreateRevocationParams) WithContext

WithContext adds the context to the create revocation params

func (*CreateRevocationParams) WithDefaults

WithDefaults hydrates default values in the create revocation params (not the query body).

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

func (*CreateRevocationParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the create revocation params

func (*CreateRevocationParams) WithRevocation

WithRevocation adds the revocation to the create revocation params

func (*CreateRevocationParams) WithTimeout

WithTimeout adds the timeout to the create revocation params

func (*CreateRevocationParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type CreateRevocationReader

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

CreateRevocationReader is a Reader for the CreateRevocation structure.

func (*CreateRevocationReader) ReadResponse

func (o *CreateRevocationReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (any, error)

ReadResponse reads a server response into the received o.

type CreateRevocationServiceUnavailable

type CreateRevocationServiceUnavailable struct {

	/* Denotes different type of security token related information
	 */
	WWWAuthenticate []string

	Payload *rest_model.APIErrorEnvelope
}

CreateRevocationServiceUnavailable describes a response with status code 503, with default header values.

The request could not be completed due to the server being busy or in a temporarily bad state

func NewCreateRevocationServiceUnavailable

func NewCreateRevocationServiceUnavailable() *CreateRevocationServiceUnavailable

NewCreateRevocationServiceUnavailable creates a CreateRevocationServiceUnavailable with default headers values

func (*CreateRevocationServiceUnavailable) Code

Code gets the status code for the create revocation service unavailable response

func (*CreateRevocationServiceUnavailable) Error

func (*CreateRevocationServiceUnavailable) GetPayload

func (*CreateRevocationServiceUnavailable) IsClientError

func (o *CreateRevocationServiceUnavailable) IsClientError() bool

IsClientError returns true when this create revocation service unavailable response has a 4xx status code

func (*CreateRevocationServiceUnavailable) IsCode

IsCode returns true when this create revocation service unavailable response a status code equal to that given

func (*CreateRevocationServiceUnavailable) IsRedirect

func (o *CreateRevocationServiceUnavailable) IsRedirect() bool

IsRedirect returns true when this create revocation service unavailable response has a 3xx status code

func (*CreateRevocationServiceUnavailable) IsServerError

func (o *CreateRevocationServiceUnavailable) IsServerError() bool

IsServerError returns true when this create revocation service unavailable response has a 5xx status code

func (*CreateRevocationServiceUnavailable) IsSuccess

IsSuccess returns true when this create revocation service unavailable response has a 2xx status code

func (*CreateRevocationServiceUnavailable) String

type CreateRevocationTooManyRequests

type CreateRevocationTooManyRequests struct {

	/* Denotes different type of security token related information
	 */
	WWWAuthenticate []string

	Payload *rest_model.APIErrorEnvelope
}

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

The resource requested is rate limited and the rate limit has been exceeded

func NewCreateRevocationTooManyRequests

func NewCreateRevocationTooManyRequests() *CreateRevocationTooManyRequests

NewCreateRevocationTooManyRequests creates a CreateRevocationTooManyRequests with default headers values

func (*CreateRevocationTooManyRequests) Code

Code gets the status code for the create revocation too many requests response

func (*CreateRevocationTooManyRequests) Error

func (*CreateRevocationTooManyRequests) GetPayload

func (*CreateRevocationTooManyRequests) IsClientError

func (o *CreateRevocationTooManyRequests) IsClientError() bool

IsClientError returns true when this create revocation too many requests response has a 4xx status code

func (*CreateRevocationTooManyRequests) IsCode

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

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

func (*CreateRevocationTooManyRequests) IsRedirect

func (o *CreateRevocationTooManyRequests) IsRedirect() bool

IsRedirect returns true when this create revocation too many requests response has a 3xx status code

func (*CreateRevocationTooManyRequests) IsServerError

func (o *CreateRevocationTooManyRequests) IsServerError() bool

IsServerError returns true when this create revocation too many requests response has a 5xx status code

func (*CreateRevocationTooManyRequests) IsSuccess

func (o *CreateRevocationTooManyRequests) IsSuccess() bool

IsSuccess returns true when this create revocation too many requests response has a 2xx status code

func (*CreateRevocationTooManyRequests) String

type CreateRevocationUnauthorized

type CreateRevocationUnauthorized struct {

	/* Denotes different type of security token related information
	 */
	WWWAuthenticate []string

	Payload *rest_model.APIErrorEnvelope
}

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

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

func NewCreateRevocationUnauthorized

func NewCreateRevocationUnauthorized() *CreateRevocationUnauthorized

NewCreateRevocationUnauthorized creates a CreateRevocationUnauthorized with default headers values

func (*CreateRevocationUnauthorized) Code

Code gets the status code for the create revocation unauthorized response

func (*CreateRevocationUnauthorized) Error

func (*CreateRevocationUnauthorized) GetPayload

func (*CreateRevocationUnauthorized) IsClientError

func (o *CreateRevocationUnauthorized) IsClientError() bool

IsClientError returns true when this create revocation unauthorized response has a 4xx status code

func (*CreateRevocationUnauthorized) IsCode

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

IsCode returns true when this create revocation unauthorized response a status code equal to that given

func (*CreateRevocationUnauthorized) IsRedirect

func (o *CreateRevocationUnauthorized) IsRedirect() bool

IsRedirect returns true when this create revocation unauthorized response has a 3xx status code

func (*CreateRevocationUnauthorized) IsServerError

func (o *CreateRevocationUnauthorized) IsServerError() bool

IsServerError returns true when this create revocation unauthorized response has a 5xx status code

func (*CreateRevocationUnauthorized) IsSuccess

func (o *CreateRevocationUnauthorized) IsSuccess() bool

IsSuccess returns true when this create revocation unauthorized response has a 2xx status code

func (*CreateRevocationUnauthorized) String

type DetailRevocationNotFound

type DetailRevocationNotFound struct {

	/* Denotes different type of security token related information
	 */
	WWWAuthenticate []string

	Payload *rest_model.APIErrorEnvelope
}

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

The requested resource does not exist

func NewDetailRevocationNotFound

func NewDetailRevocationNotFound() *DetailRevocationNotFound

NewDetailRevocationNotFound creates a DetailRevocationNotFound with default headers values

func (*DetailRevocationNotFound) Code

func (o *DetailRevocationNotFound) Code() int

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

func (*DetailRevocationNotFound) Error

func (o *DetailRevocationNotFound) Error() string

func (*DetailRevocationNotFound) GetPayload

func (*DetailRevocationNotFound) IsClientError

func (o *DetailRevocationNotFound) IsClientError() bool

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

func (*DetailRevocationNotFound) IsCode

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

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

func (*DetailRevocationNotFound) IsRedirect

func (o *DetailRevocationNotFound) IsRedirect() bool

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

func (*DetailRevocationNotFound) IsServerError

func (o *DetailRevocationNotFound) IsServerError() bool

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

func (*DetailRevocationNotFound) IsSuccess

func (o *DetailRevocationNotFound) IsSuccess() bool

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

func (*DetailRevocationNotFound) String

func (o *DetailRevocationNotFound) String() string

type DetailRevocationOK

type DetailRevocationOK struct {

	/* Denotes different type of security token related information
	 */
	WWWAuthenticate []string

	Payload *rest_model.DetailRevocationEnvelope
}

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

A singular Revocation resource

func NewDetailRevocationOK

func NewDetailRevocationOK() *DetailRevocationOK

NewDetailRevocationOK creates a DetailRevocationOK with default headers values

func (*DetailRevocationOK) Code

func (o *DetailRevocationOK) Code() int

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

func (*DetailRevocationOK) Error

func (o *DetailRevocationOK) Error() string

func (*DetailRevocationOK) GetPayload

func (*DetailRevocationOK) IsClientError

func (o *DetailRevocationOK) IsClientError() bool

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

func (*DetailRevocationOK) IsCode

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

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

func (*DetailRevocationOK) IsRedirect

func (o *DetailRevocationOK) IsRedirect() bool

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

func (*DetailRevocationOK) IsServerError

func (o *DetailRevocationOK) IsServerError() bool

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

func (*DetailRevocationOK) IsSuccess

func (o *DetailRevocationOK) IsSuccess() bool

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

func (*DetailRevocationOK) String

func (o *DetailRevocationOK) String() string

type DetailRevocationParams

type DetailRevocationParams struct {

	/* ID.

	   The id of the requested resource
	*/
	ID string

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

DetailRevocationParams contains all the parameters to send to the API endpoint

for the detail revocation operation.

Typically these are written to a http.Request.

func NewDetailRevocationParams

func NewDetailRevocationParams() *DetailRevocationParams

NewDetailRevocationParams creates a new DetailRevocationParams 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 NewDetailRevocationParamsWithContext

func NewDetailRevocationParamsWithContext(ctx context.Context) *DetailRevocationParams

NewDetailRevocationParamsWithContext creates a new DetailRevocationParams object with the ability to set a context for a request.

func NewDetailRevocationParamsWithHTTPClient

func NewDetailRevocationParamsWithHTTPClient(client *http.Client) *DetailRevocationParams

NewDetailRevocationParamsWithHTTPClient creates a new DetailRevocationParams object with the ability to set a custom HTTPClient for a request.

func NewDetailRevocationParamsWithTimeout

func NewDetailRevocationParamsWithTimeout(timeout time.Duration) *DetailRevocationParams

NewDetailRevocationParamsWithTimeout creates a new DetailRevocationParams object with the ability to set a timeout on a request.

func (*DetailRevocationParams) SetContext

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

SetContext adds the context to the detail revocation params

func (*DetailRevocationParams) SetDefaults

func (o *DetailRevocationParams) SetDefaults()

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

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

func (*DetailRevocationParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the detail revocation params

func (*DetailRevocationParams) SetID

func (o *DetailRevocationParams) SetID(id string)

SetID adds the id to the detail revocation params

func (*DetailRevocationParams) SetTimeout

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

SetTimeout adds the timeout to the detail revocation params

func (*DetailRevocationParams) WithContext

WithContext adds the context to the detail revocation params

func (*DetailRevocationParams) WithDefaults

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

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

func (*DetailRevocationParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the detail revocation params

func (*DetailRevocationParams) WithID

WithID adds the id to the detail revocation params

func (*DetailRevocationParams) WithTimeout

WithTimeout adds the timeout to the detail revocation params

func (*DetailRevocationParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type DetailRevocationReader

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

DetailRevocationReader is a Reader for the DetailRevocation structure.

func (*DetailRevocationReader) ReadResponse

func (o *DetailRevocationReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (any, error)

ReadResponse reads a server response into the received o.

type DetailRevocationServiceUnavailable

type DetailRevocationServiceUnavailable struct {

	/* Denotes different type of security token related information
	 */
	WWWAuthenticate []string

	Payload *rest_model.APIErrorEnvelope
}

DetailRevocationServiceUnavailable describes a response with status code 503, with default header values.

The request could not be completed due to the server being busy or in a temporarily bad state

func NewDetailRevocationServiceUnavailable

func NewDetailRevocationServiceUnavailable() *DetailRevocationServiceUnavailable

NewDetailRevocationServiceUnavailable creates a DetailRevocationServiceUnavailable with default headers values

func (*DetailRevocationServiceUnavailable) Code

Code gets the status code for the detail revocation service unavailable response

func (*DetailRevocationServiceUnavailable) Error

func (*DetailRevocationServiceUnavailable) GetPayload

func (*DetailRevocationServiceUnavailable) IsClientError

func (o *DetailRevocationServiceUnavailable) IsClientError() bool

IsClientError returns true when this detail revocation service unavailable response has a 4xx status code

func (*DetailRevocationServiceUnavailable) IsCode

IsCode returns true when this detail revocation service unavailable response a status code equal to that given

func (*DetailRevocationServiceUnavailable) IsRedirect

func (o *DetailRevocationServiceUnavailable) IsRedirect() bool

IsRedirect returns true when this detail revocation service unavailable response has a 3xx status code

func (*DetailRevocationServiceUnavailable) IsServerError

func (o *DetailRevocationServiceUnavailable) IsServerError() bool

IsServerError returns true when this detail revocation service unavailable response has a 5xx status code

func (*DetailRevocationServiceUnavailable) IsSuccess

IsSuccess returns true when this detail revocation service unavailable response has a 2xx status code

func (*DetailRevocationServiceUnavailable) String

type DetailRevocationTooManyRequests

type DetailRevocationTooManyRequests struct {

	/* Denotes different type of security token related information
	 */
	WWWAuthenticate []string

	Payload *rest_model.APIErrorEnvelope
}

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

The resource requested is rate limited and the rate limit has been exceeded

func NewDetailRevocationTooManyRequests

func NewDetailRevocationTooManyRequests() *DetailRevocationTooManyRequests

NewDetailRevocationTooManyRequests creates a DetailRevocationTooManyRequests with default headers values

func (*DetailRevocationTooManyRequests) Code

Code gets the status code for the detail revocation too many requests response

func (*DetailRevocationTooManyRequests) Error

func (*DetailRevocationTooManyRequests) GetPayload

func (*DetailRevocationTooManyRequests) IsClientError

func (o *DetailRevocationTooManyRequests) IsClientError() bool

IsClientError returns true when this detail revocation too many requests response has a 4xx status code

func (*DetailRevocationTooManyRequests) IsCode

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

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

func (*DetailRevocationTooManyRequests) IsRedirect

func (o *DetailRevocationTooManyRequests) IsRedirect() bool

IsRedirect returns true when this detail revocation too many requests response has a 3xx status code

func (*DetailRevocationTooManyRequests) IsServerError

func (o *DetailRevocationTooManyRequests) IsServerError() bool

IsServerError returns true when this detail revocation too many requests response has a 5xx status code

func (*DetailRevocationTooManyRequests) IsSuccess

func (o *DetailRevocationTooManyRequests) IsSuccess() bool

IsSuccess returns true when this detail revocation too many requests response has a 2xx status code

func (*DetailRevocationTooManyRequests) String

type DetailRevocationUnauthorized

type DetailRevocationUnauthorized struct {

	/* Denotes different type of security token related information
	 */
	WWWAuthenticate []string

	Payload *rest_model.APIErrorEnvelope
}

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

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

func NewDetailRevocationUnauthorized

func NewDetailRevocationUnauthorized() *DetailRevocationUnauthorized

NewDetailRevocationUnauthorized creates a DetailRevocationUnauthorized with default headers values

func (*DetailRevocationUnauthorized) Code

Code gets the status code for the detail revocation unauthorized response

func (*DetailRevocationUnauthorized) Error

func (*DetailRevocationUnauthorized) GetPayload

func (*DetailRevocationUnauthorized) IsClientError

func (o *DetailRevocationUnauthorized) IsClientError() bool

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

func (*DetailRevocationUnauthorized) IsCode

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

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

func (*DetailRevocationUnauthorized) IsRedirect

func (o *DetailRevocationUnauthorized) IsRedirect() bool

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

func (*DetailRevocationUnauthorized) IsServerError

func (o *DetailRevocationUnauthorized) IsServerError() bool

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

func (*DetailRevocationUnauthorized) IsSuccess

func (o *DetailRevocationUnauthorized) IsSuccess() bool

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

func (*DetailRevocationUnauthorized) String

type ListRevocationsBadRequest

type ListRevocationsBadRequest struct {

	/* Denotes different type of security token related information
	 */
	WWWAuthenticate []string

	Payload *rest_model.APIErrorEnvelope
}

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

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

func NewListRevocationsBadRequest

func NewListRevocationsBadRequest() *ListRevocationsBadRequest

NewListRevocationsBadRequest creates a ListRevocationsBadRequest with default headers values

func (*ListRevocationsBadRequest) Code

func (o *ListRevocationsBadRequest) Code() int

Code gets the status code for the list revocations bad request response

func (*ListRevocationsBadRequest) Error

func (o *ListRevocationsBadRequest) Error() string

func (*ListRevocationsBadRequest) GetPayload

func (*ListRevocationsBadRequest) IsClientError

func (o *ListRevocationsBadRequest) IsClientError() bool

IsClientError returns true when this list revocations bad request response has a 4xx status code

func (*ListRevocationsBadRequest) IsCode

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

IsCode returns true when this list revocations bad request response a status code equal to that given

func (*ListRevocationsBadRequest) IsRedirect

func (o *ListRevocationsBadRequest) IsRedirect() bool

IsRedirect returns true when this list revocations bad request response has a 3xx status code

func (*ListRevocationsBadRequest) IsServerError

func (o *ListRevocationsBadRequest) IsServerError() bool

IsServerError returns true when this list revocations bad request response has a 5xx status code

func (*ListRevocationsBadRequest) IsSuccess

func (o *ListRevocationsBadRequest) IsSuccess() bool

IsSuccess returns true when this list revocations bad request response has a 2xx status code

func (*ListRevocationsBadRequest) String

func (o *ListRevocationsBadRequest) String() string

type ListRevocationsOK

type ListRevocationsOK struct {

	/* Denotes different type of security token related information
	 */
	WWWAuthenticate []string

	Payload *rest_model.ListRevocationsEnvelope
}

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

A list of revocations

func NewListRevocationsOK

func NewListRevocationsOK() *ListRevocationsOK

NewListRevocationsOK creates a ListRevocationsOK with default headers values

func (*ListRevocationsOK) Code

func (o *ListRevocationsOK) Code() int

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

func (*ListRevocationsOK) Error

func (o *ListRevocationsOK) Error() string

func (*ListRevocationsOK) GetPayload

func (*ListRevocationsOK) IsClientError

func (o *ListRevocationsOK) IsClientError() bool

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

func (*ListRevocationsOK) IsCode

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

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

func (*ListRevocationsOK) IsRedirect

func (o *ListRevocationsOK) IsRedirect() bool

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

func (*ListRevocationsOK) IsServerError

func (o *ListRevocationsOK) IsServerError() bool

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

func (*ListRevocationsOK) IsSuccess

func (o *ListRevocationsOK) IsSuccess() bool

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

func (*ListRevocationsOK) String

func (o *ListRevocationsOK) String() string

type ListRevocationsParams

type ListRevocationsParams struct {

	// Filter.
	Filter *string

	// Limit.
	Limit *int64

	// Offset.
	Offset *int64

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

ListRevocationsParams contains all the parameters to send to the API endpoint

for the list revocations operation.

Typically these are written to a http.Request.

func NewListRevocationsParams

func NewListRevocationsParams() *ListRevocationsParams

NewListRevocationsParams creates a new ListRevocationsParams 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 NewListRevocationsParamsWithContext

func NewListRevocationsParamsWithContext(ctx context.Context) *ListRevocationsParams

NewListRevocationsParamsWithContext creates a new ListRevocationsParams object with the ability to set a context for a request.

func NewListRevocationsParamsWithHTTPClient

func NewListRevocationsParamsWithHTTPClient(client *http.Client) *ListRevocationsParams

NewListRevocationsParamsWithHTTPClient creates a new ListRevocationsParams object with the ability to set a custom HTTPClient for a request.

func NewListRevocationsParamsWithTimeout

func NewListRevocationsParamsWithTimeout(timeout time.Duration) *ListRevocationsParams

NewListRevocationsParamsWithTimeout creates a new ListRevocationsParams object with the ability to set a timeout on a request.

func (*ListRevocationsParams) SetContext

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

SetContext adds the context to the list revocations params

func (*ListRevocationsParams) SetDefaults

func (o *ListRevocationsParams) SetDefaults()

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

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

func (*ListRevocationsParams) SetFilter

func (o *ListRevocationsParams) SetFilter(filter *string)

SetFilter adds the filter to the list revocations params

func (*ListRevocationsParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the list revocations params

func (*ListRevocationsParams) SetLimit

func (o *ListRevocationsParams) SetLimit(limit *int64)

SetLimit adds the limit to the list revocations params

func (*ListRevocationsParams) SetOffset

func (o *ListRevocationsParams) SetOffset(offset *int64)

SetOffset adds the offset to the list revocations params

func (*ListRevocationsParams) SetTimeout

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

SetTimeout adds the timeout to the list revocations params

func (*ListRevocationsParams) WithContext

WithContext adds the context to the list revocations params

func (*ListRevocationsParams) WithDefaults

func (o *ListRevocationsParams) WithDefaults() *ListRevocationsParams

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

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

func (*ListRevocationsParams) WithFilter

func (o *ListRevocationsParams) WithFilter(filter *string) *ListRevocationsParams

WithFilter adds the filter to the list revocations params

func (*ListRevocationsParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the list revocations params

func (*ListRevocationsParams) WithLimit

func (o *ListRevocationsParams) WithLimit(limit *int64) *ListRevocationsParams

WithLimit adds the limit to the list revocations params

func (*ListRevocationsParams) WithOffset

func (o *ListRevocationsParams) WithOffset(offset *int64) *ListRevocationsParams

WithOffset adds the offset to the list revocations params

func (*ListRevocationsParams) WithTimeout

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

WithTimeout adds the timeout to the list revocations params

func (*ListRevocationsParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type ListRevocationsReader

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

ListRevocationsReader is a Reader for the ListRevocations structure.

func (*ListRevocationsReader) ReadResponse

func (o *ListRevocationsReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (any, error)

ReadResponse reads a server response into the received o.

type ListRevocationsServiceUnavailable

type ListRevocationsServiceUnavailable struct {

	/* Denotes different type of security token related information
	 */
	WWWAuthenticate []string

	Payload *rest_model.APIErrorEnvelope
}

ListRevocationsServiceUnavailable describes a response with status code 503, with default header values.

The request could not be completed due to the server being busy or in a temporarily bad state

func NewListRevocationsServiceUnavailable

func NewListRevocationsServiceUnavailable() *ListRevocationsServiceUnavailable

NewListRevocationsServiceUnavailable creates a ListRevocationsServiceUnavailable with default headers values

func (*ListRevocationsServiceUnavailable) Code

Code gets the status code for the list revocations service unavailable response

func (*ListRevocationsServiceUnavailable) Error

func (*ListRevocationsServiceUnavailable) GetPayload

func (*ListRevocationsServiceUnavailable) IsClientError

func (o *ListRevocationsServiceUnavailable) IsClientError() bool

IsClientError returns true when this list revocations service unavailable response has a 4xx status code

func (*ListRevocationsServiceUnavailable) IsCode

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

IsCode returns true when this list revocations service unavailable response a status code equal to that given

func (*ListRevocationsServiceUnavailable) IsRedirect

func (o *ListRevocationsServiceUnavailable) IsRedirect() bool

IsRedirect returns true when this list revocations service unavailable response has a 3xx status code

func (*ListRevocationsServiceUnavailable) IsServerError

func (o *ListRevocationsServiceUnavailable) IsServerError() bool

IsServerError returns true when this list revocations service unavailable response has a 5xx status code

func (*ListRevocationsServiceUnavailable) IsSuccess

func (o *ListRevocationsServiceUnavailable) IsSuccess() bool

IsSuccess returns true when this list revocations service unavailable response has a 2xx status code

func (*ListRevocationsServiceUnavailable) String

type ListRevocationsTooManyRequests

type ListRevocationsTooManyRequests struct {

	/* Denotes different type of security token related information
	 */
	WWWAuthenticate []string

	Payload *rest_model.APIErrorEnvelope
}

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

The resource requested is rate limited and the rate limit has been exceeded

func NewListRevocationsTooManyRequests

func NewListRevocationsTooManyRequests() *ListRevocationsTooManyRequests

NewListRevocationsTooManyRequests creates a ListRevocationsTooManyRequests with default headers values

func (*ListRevocationsTooManyRequests) Code

Code gets the status code for the list revocations too many requests response

func (*ListRevocationsTooManyRequests) Error

func (*ListRevocationsTooManyRequests) GetPayload

func (*ListRevocationsTooManyRequests) IsClientError

func (o *ListRevocationsTooManyRequests) IsClientError() bool

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

func (*ListRevocationsTooManyRequests) IsCode

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

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

func (*ListRevocationsTooManyRequests) IsRedirect

func (o *ListRevocationsTooManyRequests) IsRedirect() bool

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

func (*ListRevocationsTooManyRequests) IsServerError

func (o *ListRevocationsTooManyRequests) IsServerError() bool

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

func (*ListRevocationsTooManyRequests) IsSuccess

func (o *ListRevocationsTooManyRequests) IsSuccess() bool

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

func (*ListRevocationsTooManyRequests) String

type ListRevocationsUnauthorized

type ListRevocationsUnauthorized struct {

	/* Denotes different type of security token related information
	 */
	WWWAuthenticate []string

	Payload *rest_model.APIErrorEnvelope
}

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

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

func NewListRevocationsUnauthorized

func NewListRevocationsUnauthorized() *ListRevocationsUnauthorized

NewListRevocationsUnauthorized creates a ListRevocationsUnauthorized with default headers values

func (*ListRevocationsUnauthorized) Code

func (o *ListRevocationsUnauthorized) Code() int

Code gets the status code for the list revocations unauthorized response

func (*ListRevocationsUnauthorized) Error

func (*ListRevocationsUnauthorized) GetPayload

func (*ListRevocationsUnauthorized) IsClientError

func (o *ListRevocationsUnauthorized) IsClientError() bool

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

func (*ListRevocationsUnauthorized) IsCode

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

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

func (*ListRevocationsUnauthorized) IsRedirect

func (o *ListRevocationsUnauthorized) IsRedirect() bool

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

func (*ListRevocationsUnauthorized) IsServerError

func (o *ListRevocationsUnauthorized) IsServerError() bool

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

func (*ListRevocationsUnauthorized) IsSuccess

func (o *ListRevocationsUnauthorized) IsSuccess() bool

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

func (*ListRevocationsUnauthorized) String

func (o *ListRevocationsUnauthorized) String() string

Jump to

Keyboard shortcuts

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