api_keys

package
v0.3.8 Latest Latest
Warning

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

Go to latest
Published: Jul 29, 2026 License: Apache-2.0 Imports: 12 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 api keys API

func (*Client) CreateServiceAccountAPIKey

func (a *Client) CreateServiceAccountAPIKey(params *CreateServiceAccountAPIKeyParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*CreateServiceAccountAPIKeyOK, error)

CreateServiceAccountAPIKey creates a service account API key

Create an API key bound to a service account (admin only). The token is returned once.

func (*Client) DeleteServiceAccountAPIKey

func (a *Client) DeleteServiceAccountAPIKey(params *DeleteServiceAccountAPIKeyParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DeleteServiceAccountAPIKeyOK, error)

DeleteServiceAccountAPIKey deletes a service account API key

Delete a service-account-bound API key (admin only). The key must belong to the SA in the path.

func (*Client) ListServiceAccountAPIKeys

func (a *Client) ListServiceAccountAPIKeys(params *ListServiceAccountAPIKeysParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ListServiceAccountAPIKeysOK, error)

ListServiceAccountAPIKeys lists a service account s API keys

List the API keys bound to a service account (admin only).

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 {
	CreateServiceAccountAPIKey(params *CreateServiceAccountAPIKeyParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*CreateServiceAccountAPIKeyOK, error)

	DeleteServiceAccountAPIKey(params *DeleteServiceAccountAPIKeyParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DeleteServiceAccountAPIKeyOK, error)

	ListServiceAccountAPIKeys(params *ListServiceAccountAPIKeysParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ListServiceAccountAPIKeysOK, 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 api keys API client.

func NewClientWithBasicAuth

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

New creates a new api keys 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 api keys 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 CreateServiceAccountAPIKeyForbidden

type CreateServiceAccountAPIKeyForbidden struct {
	Payload *models.ErrorResponse
}

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

Forbidden

func NewCreateServiceAccountAPIKeyForbidden

func NewCreateServiceAccountAPIKeyForbidden() *CreateServiceAccountAPIKeyForbidden

NewCreateServiceAccountAPIKeyForbidden creates a CreateServiceAccountAPIKeyForbidden with default headers values

func (*CreateServiceAccountAPIKeyForbidden) Code

Code gets the status code for the create service account Api key forbidden response

func (*CreateServiceAccountAPIKeyForbidden) Error

func (*CreateServiceAccountAPIKeyForbidden) GetPayload

func (*CreateServiceAccountAPIKeyForbidden) IsClientError

func (o *CreateServiceAccountAPIKeyForbidden) IsClientError() bool

IsClientError returns true when this create service account Api key forbidden response has a 4xx status code

func (*CreateServiceAccountAPIKeyForbidden) IsCode

IsCode returns true when this create service account Api key forbidden response a status code equal to that given

func (*CreateServiceAccountAPIKeyForbidden) IsRedirect

func (o *CreateServiceAccountAPIKeyForbidden) IsRedirect() bool

IsRedirect returns true when this create service account Api key forbidden response has a 3xx status code

func (*CreateServiceAccountAPIKeyForbidden) IsServerError

func (o *CreateServiceAccountAPIKeyForbidden) IsServerError() bool

IsServerError returns true when this create service account Api key forbidden response has a 5xx status code

func (*CreateServiceAccountAPIKeyForbidden) IsSuccess

IsSuccess returns true when this create service account Api key forbidden response has a 2xx status code

func (*CreateServiceAccountAPIKeyForbidden) String

type CreateServiceAccountAPIKeyNotFound

type CreateServiceAccountAPIKeyNotFound struct {
	Payload *models.ErrorResponse
}

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

Not Found

func NewCreateServiceAccountAPIKeyNotFound

func NewCreateServiceAccountAPIKeyNotFound() *CreateServiceAccountAPIKeyNotFound

NewCreateServiceAccountAPIKeyNotFound creates a CreateServiceAccountAPIKeyNotFound with default headers values

func (*CreateServiceAccountAPIKeyNotFound) Code

Code gets the status code for the create service account Api key not found response

func (*CreateServiceAccountAPIKeyNotFound) Error

func (*CreateServiceAccountAPIKeyNotFound) GetPayload

func (*CreateServiceAccountAPIKeyNotFound) IsClientError

func (o *CreateServiceAccountAPIKeyNotFound) IsClientError() bool

IsClientError returns true when this create service account Api key not found response has a 4xx status code

func (*CreateServiceAccountAPIKeyNotFound) IsCode

IsCode returns true when this create service account Api key not found response a status code equal to that given

func (*CreateServiceAccountAPIKeyNotFound) IsRedirect

func (o *CreateServiceAccountAPIKeyNotFound) IsRedirect() bool

IsRedirect returns true when this create service account Api key not found response has a 3xx status code

func (*CreateServiceAccountAPIKeyNotFound) IsServerError

func (o *CreateServiceAccountAPIKeyNotFound) IsServerError() bool

IsServerError returns true when this create service account Api key not found response has a 5xx status code

func (*CreateServiceAccountAPIKeyNotFound) IsSuccess

IsSuccess returns true when this create service account Api key not found response has a 2xx status code

func (*CreateServiceAccountAPIKeyNotFound) String

type CreateServiceAccountAPIKeyOK

type CreateServiceAccountAPIKeyOK struct {
	Payload *models.APIKey
}

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

OK

func NewCreateServiceAccountAPIKeyOK

func NewCreateServiceAccountAPIKeyOK() *CreateServiceAccountAPIKeyOK

NewCreateServiceAccountAPIKeyOK creates a CreateServiceAccountAPIKeyOK with default headers values

func (*CreateServiceAccountAPIKeyOK) Code

Code gets the status code for the create service account Api key o k response

func (*CreateServiceAccountAPIKeyOK) Error

func (*CreateServiceAccountAPIKeyOK) GetPayload

func (o *CreateServiceAccountAPIKeyOK) GetPayload() *models.APIKey

func (*CreateServiceAccountAPIKeyOK) IsClientError

func (o *CreateServiceAccountAPIKeyOK) IsClientError() bool

IsClientError returns true when this create service account Api key o k response has a 4xx status code

func (*CreateServiceAccountAPIKeyOK) IsCode

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

IsCode returns true when this create service account Api key o k response a status code equal to that given

func (*CreateServiceAccountAPIKeyOK) IsRedirect

func (o *CreateServiceAccountAPIKeyOK) IsRedirect() bool

IsRedirect returns true when this create service account Api key o k response has a 3xx status code

func (*CreateServiceAccountAPIKeyOK) IsServerError

func (o *CreateServiceAccountAPIKeyOK) IsServerError() bool

IsServerError returns true when this create service account Api key o k response has a 5xx status code

func (*CreateServiceAccountAPIKeyOK) IsSuccess

func (o *CreateServiceAccountAPIKeyOK) IsSuccess() bool

IsSuccess returns true when this create service account Api key o k response has a 2xx status code

func (*CreateServiceAccountAPIKeyOK) String

type CreateServiceAccountAPIKeyParams

type CreateServiceAccountAPIKeyParams struct {

	/* Data.

	   Optional description
	*/
	Data *models.CreateAPIKeyRequest

	/* OrgName.

	   Signadot Org Name
	*/
	OrgName string

	/* ServiceAccountName.

	   Service Account Name
	*/
	ServiceAccountName string

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

CreateServiceAccountAPIKeyParams contains all the parameters to send to the API endpoint

for the create service account api key operation.

Typically these are written to a http.Request.

func NewCreateServiceAccountAPIKeyParams

func NewCreateServiceAccountAPIKeyParams() *CreateServiceAccountAPIKeyParams

NewCreateServiceAccountAPIKeyParams creates a new CreateServiceAccountAPIKeyParams 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 NewCreateServiceAccountAPIKeyParamsWithContext

func NewCreateServiceAccountAPIKeyParamsWithContext(ctx context.Context) *CreateServiceAccountAPIKeyParams

NewCreateServiceAccountAPIKeyParamsWithContext creates a new CreateServiceAccountAPIKeyParams object with the ability to set a context for a request.

func NewCreateServiceAccountAPIKeyParamsWithHTTPClient

func NewCreateServiceAccountAPIKeyParamsWithHTTPClient(client *http.Client) *CreateServiceAccountAPIKeyParams

NewCreateServiceAccountAPIKeyParamsWithHTTPClient creates a new CreateServiceAccountAPIKeyParams object with the ability to set a custom HTTPClient for a request.

func NewCreateServiceAccountAPIKeyParamsWithTimeout

func NewCreateServiceAccountAPIKeyParamsWithTimeout(timeout time.Duration) *CreateServiceAccountAPIKeyParams

NewCreateServiceAccountAPIKeyParamsWithTimeout creates a new CreateServiceAccountAPIKeyParams object with the ability to set a timeout on a request.

func (*CreateServiceAccountAPIKeyParams) SetContext

SetContext adds the context to the create service account api key params

func (*CreateServiceAccountAPIKeyParams) SetData

SetData adds the data to the create service account api key params

func (*CreateServiceAccountAPIKeyParams) SetDefaults

func (o *CreateServiceAccountAPIKeyParams) SetDefaults()

SetDefaults hydrates default values in the create service account api key params (not the query body).

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

func (*CreateServiceAccountAPIKeyParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the create service account api key params

func (*CreateServiceAccountAPIKeyParams) SetOrgName

func (o *CreateServiceAccountAPIKeyParams) SetOrgName(orgName string)

SetOrgName adds the orgName to the create service account api key params

func (*CreateServiceAccountAPIKeyParams) SetServiceAccountName

func (o *CreateServiceAccountAPIKeyParams) SetServiceAccountName(serviceAccountName string)

SetServiceAccountName adds the serviceAccountName to the create service account api key params

func (*CreateServiceAccountAPIKeyParams) SetTimeout

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

SetTimeout adds the timeout to the create service account api key params

func (*CreateServiceAccountAPIKeyParams) WithContext

WithContext adds the context to the create service account api key params

func (*CreateServiceAccountAPIKeyParams) WithData

WithData adds the data to the create service account api key params

func (*CreateServiceAccountAPIKeyParams) WithDefaults

WithDefaults hydrates default values in the create service account api key params (not the query body).

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

func (*CreateServiceAccountAPIKeyParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the create service account api key params

func (*CreateServiceAccountAPIKeyParams) WithOrgName

WithOrgName adds the orgName to the create service account api key params

func (*CreateServiceAccountAPIKeyParams) WithServiceAccountName

func (o *CreateServiceAccountAPIKeyParams) WithServiceAccountName(serviceAccountName string) *CreateServiceAccountAPIKeyParams

WithServiceAccountName adds the serviceAccountName to the create service account api key params

func (*CreateServiceAccountAPIKeyParams) WithTimeout

WithTimeout adds the timeout to the create service account api key params

func (*CreateServiceAccountAPIKeyParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type CreateServiceAccountAPIKeyReader

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

CreateServiceAccountAPIKeyReader is a Reader for the CreateServiceAccountAPIKey structure.

func (*CreateServiceAccountAPIKeyReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type DeleteServiceAccountAPIKeyForbidden

type DeleteServiceAccountAPIKeyForbidden struct {
	Payload *models.ErrorResponse
}

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

Forbidden

func NewDeleteServiceAccountAPIKeyForbidden

func NewDeleteServiceAccountAPIKeyForbidden() *DeleteServiceAccountAPIKeyForbidden

NewDeleteServiceAccountAPIKeyForbidden creates a DeleteServiceAccountAPIKeyForbidden with default headers values

func (*DeleteServiceAccountAPIKeyForbidden) Code

Code gets the status code for the delete service account Api key forbidden response

func (*DeleteServiceAccountAPIKeyForbidden) Error

func (*DeleteServiceAccountAPIKeyForbidden) GetPayload

func (*DeleteServiceAccountAPIKeyForbidden) IsClientError

func (o *DeleteServiceAccountAPIKeyForbidden) IsClientError() bool

IsClientError returns true when this delete service account Api key forbidden response has a 4xx status code

func (*DeleteServiceAccountAPIKeyForbidden) IsCode

IsCode returns true when this delete service account Api key forbidden response a status code equal to that given

func (*DeleteServiceAccountAPIKeyForbidden) IsRedirect

func (o *DeleteServiceAccountAPIKeyForbidden) IsRedirect() bool

IsRedirect returns true when this delete service account Api key forbidden response has a 3xx status code

func (*DeleteServiceAccountAPIKeyForbidden) IsServerError

func (o *DeleteServiceAccountAPIKeyForbidden) IsServerError() bool

IsServerError returns true when this delete service account Api key forbidden response has a 5xx status code

func (*DeleteServiceAccountAPIKeyForbidden) IsSuccess

IsSuccess returns true when this delete service account Api key forbidden response has a 2xx status code

func (*DeleteServiceAccountAPIKeyForbidden) String

type DeleteServiceAccountAPIKeyNotFound

type DeleteServiceAccountAPIKeyNotFound struct {
	Payload *models.ErrorResponse
}

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

Not Found

func NewDeleteServiceAccountAPIKeyNotFound

func NewDeleteServiceAccountAPIKeyNotFound() *DeleteServiceAccountAPIKeyNotFound

NewDeleteServiceAccountAPIKeyNotFound creates a DeleteServiceAccountAPIKeyNotFound with default headers values

func (*DeleteServiceAccountAPIKeyNotFound) Code

Code gets the status code for the delete service account Api key not found response

func (*DeleteServiceAccountAPIKeyNotFound) Error

func (*DeleteServiceAccountAPIKeyNotFound) GetPayload

func (*DeleteServiceAccountAPIKeyNotFound) IsClientError

func (o *DeleteServiceAccountAPIKeyNotFound) IsClientError() bool

IsClientError returns true when this delete service account Api key not found response has a 4xx status code

func (*DeleteServiceAccountAPIKeyNotFound) IsCode

IsCode returns true when this delete service account Api key not found response a status code equal to that given

func (*DeleteServiceAccountAPIKeyNotFound) IsRedirect

func (o *DeleteServiceAccountAPIKeyNotFound) IsRedirect() bool

IsRedirect returns true when this delete service account Api key not found response has a 3xx status code

func (*DeleteServiceAccountAPIKeyNotFound) IsServerError

func (o *DeleteServiceAccountAPIKeyNotFound) IsServerError() bool

IsServerError returns true when this delete service account Api key not found response has a 5xx status code

func (*DeleteServiceAccountAPIKeyNotFound) IsSuccess

IsSuccess returns true when this delete service account Api key not found response has a 2xx status code

func (*DeleteServiceAccountAPIKeyNotFound) String

type DeleteServiceAccountAPIKeyOK

type DeleteServiceAccountAPIKeyOK struct {
	Payload models.EmptyResponse
}

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

OK

func NewDeleteServiceAccountAPIKeyOK

func NewDeleteServiceAccountAPIKeyOK() *DeleteServiceAccountAPIKeyOK

NewDeleteServiceAccountAPIKeyOK creates a DeleteServiceAccountAPIKeyOK with default headers values

func (*DeleteServiceAccountAPIKeyOK) Code

Code gets the status code for the delete service account Api key o k response

func (*DeleteServiceAccountAPIKeyOK) Error

func (*DeleteServiceAccountAPIKeyOK) GetPayload

func (*DeleteServiceAccountAPIKeyOK) IsClientError

func (o *DeleteServiceAccountAPIKeyOK) IsClientError() bool

IsClientError returns true when this delete service account Api key o k response has a 4xx status code

func (*DeleteServiceAccountAPIKeyOK) IsCode

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

IsCode returns true when this delete service account Api key o k response a status code equal to that given

func (*DeleteServiceAccountAPIKeyOK) IsRedirect

func (o *DeleteServiceAccountAPIKeyOK) IsRedirect() bool

IsRedirect returns true when this delete service account Api key o k response has a 3xx status code

func (*DeleteServiceAccountAPIKeyOK) IsServerError

func (o *DeleteServiceAccountAPIKeyOK) IsServerError() bool

IsServerError returns true when this delete service account Api key o k response has a 5xx status code

func (*DeleteServiceAccountAPIKeyOK) IsSuccess

func (o *DeleteServiceAccountAPIKeyOK) IsSuccess() bool

IsSuccess returns true when this delete service account Api key o k response has a 2xx status code

func (*DeleteServiceAccountAPIKeyOK) String

type DeleteServiceAccountAPIKeyParams

type DeleteServiceAccountAPIKeyParams struct {

	/* APIKeyID.

	   API key public ID
	*/
	APIKeyID string

	/* OrgName.

	   Signadot Org Name
	*/
	OrgName string

	/* ServiceAccountName.

	   Service Account Name
	*/
	ServiceAccountName string

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

DeleteServiceAccountAPIKeyParams contains all the parameters to send to the API endpoint

for the delete service account api key operation.

Typically these are written to a http.Request.

func NewDeleteServiceAccountAPIKeyParams

func NewDeleteServiceAccountAPIKeyParams() *DeleteServiceAccountAPIKeyParams

NewDeleteServiceAccountAPIKeyParams creates a new DeleteServiceAccountAPIKeyParams 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 NewDeleteServiceAccountAPIKeyParamsWithContext

func NewDeleteServiceAccountAPIKeyParamsWithContext(ctx context.Context) *DeleteServiceAccountAPIKeyParams

NewDeleteServiceAccountAPIKeyParamsWithContext creates a new DeleteServiceAccountAPIKeyParams object with the ability to set a context for a request.

func NewDeleteServiceAccountAPIKeyParamsWithHTTPClient

func NewDeleteServiceAccountAPIKeyParamsWithHTTPClient(client *http.Client) *DeleteServiceAccountAPIKeyParams

NewDeleteServiceAccountAPIKeyParamsWithHTTPClient creates a new DeleteServiceAccountAPIKeyParams object with the ability to set a custom HTTPClient for a request.

func NewDeleteServiceAccountAPIKeyParamsWithTimeout

func NewDeleteServiceAccountAPIKeyParamsWithTimeout(timeout time.Duration) *DeleteServiceAccountAPIKeyParams

NewDeleteServiceAccountAPIKeyParamsWithTimeout creates a new DeleteServiceAccountAPIKeyParams object with the ability to set a timeout on a request.

func (*DeleteServiceAccountAPIKeyParams) SetAPIKeyID

func (o *DeleteServiceAccountAPIKeyParams) SetAPIKeyID(apiKeyID string)

SetAPIKeyID adds the apiKeyId to the delete service account api key params

func (*DeleteServiceAccountAPIKeyParams) SetContext

SetContext adds the context to the delete service account api key params

func (*DeleteServiceAccountAPIKeyParams) SetDefaults

func (o *DeleteServiceAccountAPIKeyParams) SetDefaults()

SetDefaults hydrates default values in the delete service account api key params (not the query body).

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

func (*DeleteServiceAccountAPIKeyParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the delete service account api key params

func (*DeleteServiceAccountAPIKeyParams) SetOrgName

func (o *DeleteServiceAccountAPIKeyParams) SetOrgName(orgName string)

SetOrgName adds the orgName to the delete service account api key params

func (*DeleteServiceAccountAPIKeyParams) SetServiceAccountName

func (o *DeleteServiceAccountAPIKeyParams) SetServiceAccountName(serviceAccountName string)

SetServiceAccountName adds the serviceAccountName to the delete service account api key params

func (*DeleteServiceAccountAPIKeyParams) SetTimeout

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

SetTimeout adds the timeout to the delete service account api key params

func (*DeleteServiceAccountAPIKeyParams) WithAPIKeyID

WithAPIKeyID adds the apiKeyID to the delete service account api key params

func (*DeleteServiceAccountAPIKeyParams) WithContext

WithContext adds the context to the delete service account api key params

func (*DeleteServiceAccountAPIKeyParams) WithDefaults

WithDefaults hydrates default values in the delete service account api key params (not the query body).

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

func (*DeleteServiceAccountAPIKeyParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the delete service account api key params

func (*DeleteServiceAccountAPIKeyParams) WithOrgName

WithOrgName adds the orgName to the delete service account api key params

func (*DeleteServiceAccountAPIKeyParams) WithServiceAccountName

func (o *DeleteServiceAccountAPIKeyParams) WithServiceAccountName(serviceAccountName string) *DeleteServiceAccountAPIKeyParams

WithServiceAccountName adds the serviceAccountName to the delete service account api key params

func (*DeleteServiceAccountAPIKeyParams) WithTimeout

WithTimeout adds the timeout to the delete service account api key params

func (*DeleteServiceAccountAPIKeyParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type DeleteServiceAccountAPIKeyReader

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

DeleteServiceAccountAPIKeyReader is a Reader for the DeleteServiceAccountAPIKey structure.

func (*DeleteServiceAccountAPIKeyReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type ListServiceAccountAPIKeysForbidden

type ListServiceAccountAPIKeysForbidden struct {
	Payload *models.ErrorResponse
}

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

Forbidden

func NewListServiceAccountAPIKeysForbidden

func NewListServiceAccountAPIKeysForbidden() *ListServiceAccountAPIKeysForbidden

NewListServiceAccountAPIKeysForbidden creates a ListServiceAccountAPIKeysForbidden with default headers values

func (*ListServiceAccountAPIKeysForbidden) Code

Code gets the status code for the list service account Api keys forbidden response

func (*ListServiceAccountAPIKeysForbidden) Error

func (*ListServiceAccountAPIKeysForbidden) GetPayload

func (*ListServiceAccountAPIKeysForbidden) IsClientError

func (o *ListServiceAccountAPIKeysForbidden) IsClientError() bool

IsClientError returns true when this list service account Api keys forbidden response has a 4xx status code

func (*ListServiceAccountAPIKeysForbidden) IsCode

IsCode returns true when this list service account Api keys forbidden response a status code equal to that given

func (*ListServiceAccountAPIKeysForbidden) IsRedirect

func (o *ListServiceAccountAPIKeysForbidden) IsRedirect() bool

IsRedirect returns true when this list service account Api keys forbidden response has a 3xx status code

func (*ListServiceAccountAPIKeysForbidden) IsServerError

func (o *ListServiceAccountAPIKeysForbidden) IsServerError() bool

IsServerError returns true when this list service account Api keys forbidden response has a 5xx status code

func (*ListServiceAccountAPIKeysForbidden) IsSuccess

IsSuccess returns true when this list service account Api keys forbidden response has a 2xx status code

func (*ListServiceAccountAPIKeysForbidden) String

type ListServiceAccountAPIKeysNotFound

type ListServiceAccountAPIKeysNotFound struct {
	Payload *models.ErrorResponse
}

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

Not Found

func NewListServiceAccountAPIKeysNotFound

func NewListServiceAccountAPIKeysNotFound() *ListServiceAccountAPIKeysNotFound

NewListServiceAccountAPIKeysNotFound creates a ListServiceAccountAPIKeysNotFound with default headers values

func (*ListServiceAccountAPIKeysNotFound) Code

Code gets the status code for the list service account Api keys not found response

func (*ListServiceAccountAPIKeysNotFound) Error

func (*ListServiceAccountAPIKeysNotFound) GetPayload

func (*ListServiceAccountAPIKeysNotFound) IsClientError

func (o *ListServiceAccountAPIKeysNotFound) IsClientError() bool

IsClientError returns true when this list service account Api keys not found response has a 4xx status code

func (*ListServiceAccountAPIKeysNotFound) IsCode

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

IsCode returns true when this list service account Api keys not found response a status code equal to that given

func (*ListServiceAccountAPIKeysNotFound) IsRedirect

func (o *ListServiceAccountAPIKeysNotFound) IsRedirect() bool

IsRedirect returns true when this list service account Api keys not found response has a 3xx status code

func (*ListServiceAccountAPIKeysNotFound) IsServerError

func (o *ListServiceAccountAPIKeysNotFound) IsServerError() bool

IsServerError returns true when this list service account Api keys not found response has a 5xx status code

func (*ListServiceAccountAPIKeysNotFound) IsSuccess

func (o *ListServiceAccountAPIKeysNotFound) IsSuccess() bool

IsSuccess returns true when this list service account Api keys not found response has a 2xx status code

func (*ListServiceAccountAPIKeysNotFound) String

type ListServiceAccountAPIKeysOK

type ListServiceAccountAPIKeysOK struct {
	Payload *models.ListAPIKeysResponse
}

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

OK

func NewListServiceAccountAPIKeysOK

func NewListServiceAccountAPIKeysOK() *ListServiceAccountAPIKeysOK

NewListServiceAccountAPIKeysOK creates a ListServiceAccountAPIKeysOK with default headers values

func (*ListServiceAccountAPIKeysOK) Code

func (o *ListServiceAccountAPIKeysOK) Code() int

Code gets the status code for the list service account Api keys o k response

func (*ListServiceAccountAPIKeysOK) Error

func (*ListServiceAccountAPIKeysOK) GetPayload

func (*ListServiceAccountAPIKeysOK) IsClientError

func (o *ListServiceAccountAPIKeysOK) IsClientError() bool

IsClientError returns true when this list service account Api keys o k response has a 4xx status code

func (*ListServiceAccountAPIKeysOK) IsCode

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

IsCode returns true when this list service account Api keys o k response a status code equal to that given

func (*ListServiceAccountAPIKeysOK) IsRedirect

func (o *ListServiceAccountAPIKeysOK) IsRedirect() bool

IsRedirect returns true when this list service account Api keys o k response has a 3xx status code

func (*ListServiceAccountAPIKeysOK) IsServerError

func (o *ListServiceAccountAPIKeysOK) IsServerError() bool

IsServerError returns true when this list service account Api keys o k response has a 5xx status code

func (*ListServiceAccountAPIKeysOK) IsSuccess

func (o *ListServiceAccountAPIKeysOK) IsSuccess() bool

IsSuccess returns true when this list service account Api keys o k response has a 2xx status code

func (*ListServiceAccountAPIKeysOK) String

func (o *ListServiceAccountAPIKeysOK) String() string

type ListServiceAccountAPIKeysParams

type ListServiceAccountAPIKeysParams struct {

	/* OrgName.

	   Signadot Org Name
	*/
	OrgName string

	/* ServiceAccountName.

	   Service Account Name
	*/
	ServiceAccountName string

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

ListServiceAccountAPIKeysParams contains all the parameters to send to the API endpoint

for the list service account api keys operation.

Typically these are written to a http.Request.

func NewListServiceAccountAPIKeysParams

func NewListServiceAccountAPIKeysParams() *ListServiceAccountAPIKeysParams

NewListServiceAccountAPIKeysParams creates a new ListServiceAccountAPIKeysParams 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 NewListServiceAccountAPIKeysParamsWithContext

func NewListServiceAccountAPIKeysParamsWithContext(ctx context.Context) *ListServiceAccountAPIKeysParams

NewListServiceAccountAPIKeysParamsWithContext creates a new ListServiceAccountAPIKeysParams object with the ability to set a context for a request.

func NewListServiceAccountAPIKeysParamsWithHTTPClient

func NewListServiceAccountAPIKeysParamsWithHTTPClient(client *http.Client) *ListServiceAccountAPIKeysParams

NewListServiceAccountAPIKeysParamsWithHTTPClient creates a new ListServiceAccountAPIKeysParams object with the ability to set a custom HTTPClient for a request.

func NewListServiceAccountAPIKeysParamsWithTimeout

func NewListServiceAccountAPIKeysParamsWithTimeout(timeout time.Duration) *ListServiceAccountAPIKeysParams

NewListServiceAccountAPIKeysParamsWithTimeout creates a new ListServiceAccountAPIKeysParams object with the ability to set a timeout on a request.

func (*ListServiceAccountAPIKeysParams) SetContext

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

SetContext adds the context to the list service account api keys params

func (*ListServiceAccountAPIKeysParams) SetDefaults

func (o *ListServiceAccountAPIKeysParams) SetDefaults()

SetDefaults hydrates default values in the list service account api keys params (not the query body).

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

func (*ListServiceAccountAPIKeysParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the list service account api keys params

func (*ListServiceAccountAPIKeysParams) SetOrgName

func (o *ListServiceAccountAPIKeysParams) SetOrgName(orgName string)

SetOrgName adds the orgName to the list service account api keys params

func (*ListServiceAccountAPIKeysParams) SetServiceAccountName

func (o *ListServiceAccountAPIKeysParams) SetServiceAccountName(serviceAccountName string)

SetServiceAccountName adds the serviceAccountName to the list service account api keys params

func (*ListServiceAccountAPIKeysParams) SetTimeout

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

SetTimeout adds the timeout to the list service account api keys params

func (*ListServiceAccountAPIKeysParams) WithContext

WithContext adds the context to the list service account api keys params

func (*ListServiceAccountAPIKeysParams) WithDefaults

WithDefaults hydrates default values in the list service account api keys params (not the query body).

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

func (*ListServiceAccountAPIKeysParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the list service account api keys params

func (*ListServiceAccountAPIKeysParams) WithOrgName

WithOrgName adds the orgName to the list service account api keys params

func (*ListServiceAccountAPIKeysParams) WithServiceAccountName

func (o *ListServiceAccountAPIKeysParams) WithServiceAccountName(serviceAccountName string) *ListServiceAccountAPIKeysParams

WithServiceAccountName adds the serviceAccountName to the list service account api keys params

func (*ListServiceAccountAPIKeysParams) WithTimeout

WithTimeout adds the timeout to the list service account api keys params

func (*ListServiceAccountAPIKeysParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type ListServiceAccountAPIKeysReader

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

ListServiceAccountAPIKeysReader is a Reader for the ListServiceAccountAPIKeys structure.

func (*ListServiceAccountAPIKeysReader) ReadResponse

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

ReadResponse reads a server response into the received o.

Jump to

Keyboard shortcuts

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