installation_tokens

package
v0.2.16 Latest Latest
Warning

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

Go to latest
Published: Dec 13, 2021 License: MIT Imports: 11 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AuditEventsQueryBadRequest

type AuditEventsQueryBadRequest struct {

	/* Request limit per minute.
	 */
	XRateLimitLimit int64

	/* The number of requests remaining for the sliding one minute window.
	 */
	XRateLimitRemaining int64

	Payload *models.MsaReplyMetaOnly
}
AuditEventsQueryBadRequest describes a response with status code 400, with default header values.

Bad Request

func NewAuditEventsQueryBadRequest

func NewAuditEventsQueryBadRequest() *AuditEventsQueryBadRequest

NewAuditEventsQueryBadRequest creates a AuditEventsQueryBadRequest with default headers values

func (*AuditEventsQueryBadRequest) Error

func (*AuditEventsQueryBadRequest) GetPayload

type AuditEventsQueryDefault

type AuditEventsQueryDefault struct {
	Payload *models.MsaQueryResponse
	// contains filtered or unexported fields
}
AuditEventsQueryDefault describes a response with status code -1, with default header values.

OK

func NewAuditEventsQueryDefault

func NewAuditEventsQueryDefault(code int) *AuditEventsQueryDefault

NewAuditEventsQueryDefault creates a AuditEventsQueryDefault with default headers values

func (*AuditEventsQueryDefault) Code

func (o *AuditEventsQueryDefault) Code() int

Code gets the status code for the audit events query default response

func (*AuditEventsQueryDefault) Error

func (o *AuditEventsQueryDefault) Error() string

func (*AuditEventsQueryDefault) GetPayload

type AuditEventsQueryForbidden

type AuditEventsQueryForbidden struct {

	/* Request limit per minute.
	 */
	XRateLimitLimit int64

	/* The number of requests remaining for the sliding one minute window.
	 */
	XRateLimitRemaining int64

	Payload *models.MsaReplyMetaOnly
}
AuditEventsQueryForbidden describes a response with status code 403, with default header values.

Forbidden

func NewAuditEventsQueryForbidden

func NewAuditEventsQueryForbidden() *AuditEventsQueryForbidden

NewAuditEventsQueryForbidden creates a AuditEventsQueryForbidden with default headers values

func (*AuditEventsQueryForbidden) Error

func (o *AuditEventsQueryForbidden) Error() string

func (*AuditEventsQueryForbidden) GetPayload

type AuditEventsQueryInternalServerError

type AuditEventsQueryInternalServerError struct {

	/* Request limit per minute.
	 */
	XRateLimitLimit int64

	/* The number of requests remaining for the sliding one minute window.
	 */
	XRateLimitRemaining int64

	Payload *models.MsaReplyMetaOnly
}
AuditEventsQueryInternalServerError describes a response with status code 500, with default header values.

Internal Server Error

func NewAuditEventsQueryInternalServerError

func NewAuditEventsQueryInternalServerError() *AuditEventsQueryInternalServerError

NewAuditEventsQueryInternalServerError creates a AuditEventsQueryInternalServerError with default headers values

func (*AuditEventsQueryInternalServerError) Error

func (*AuditEventsQueryInternalServerError) GetPayload

type AuditEventsQueryOK

type AuditEventsQueryOK struct {

	/* Request limit per minute.
	 */
	XRateLimitLimit int64

	/* The number of requests remaining for the sliding one minute window.
	 */
	XRateLimitRemaining int64

	Payload *models.MsaQueryResponse
}
AuditEventsQueryOK describes a response with status code 200, with default header values.

OK

func NewAuditEventsQueryOK

func NewAuditEventsQueryOK() *AuditEventsQueryOK

NewAuditEventsQueryOK creates a AuditEventsQueryOK with default headers values

func (*AuditEventsQueryOK) Error

func (o *AuditEventsQueryOK) Error() string

func (*AuditEventsQueryOK) GetPayload

func (o *AuditEventsQueryOK) GetPayload() *models.MsaQueryResponse

type AuditEventsQueryParams

type AuditEventsQueryParams struct {

	/* Filter.

	   The filter expression that should be used to limit the results (e.g., `action:'token_create'`).
	*/
	Filter *string

	/* Limit.

	   The maximum records to return. [1-1000]. Defaults to 50.
	*/
	Limit *int64

	/* Offset.

	   The offset to start retrieving records from.
	*/
	Offset *int64

	/* Sort.

	   The property to sort by (e.g. timestamp.desc).
	*/
	Sort *string

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

AuditEventsQueryParams contains all the parameters to send to the API endpoint

for the audit events query operation.

Typically these are written to a http.Request.

func NewAuditEventsQueryParams

func NewAuditEventsQueryParams() *AuditEventsQueryParams

NewAuditEventsQueryParams creates a new AuditEventsQueryParams 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 NewAuditEventsQueryParamsWithContext

func NewAuditEventsQueryParamsWithContext(ctx context.Context) *AuditEventsQueryParams

NewAuditEventsQueryParamsWithContext creates a new AuditEventsQueryParams object with the ability to set a context for a request.

func NewAuditEventsQueryParamsWithHTTPClient

func NewAuditEventsQueryParamsWithHTTPClient(client *http.Client) *AuditEventsQueryParams

NewAuditEventsQueryParamsWithHTTPClient creates a new AuditEventsQueryParams object with the ability to set a custom HTTPClient for a request.

func NewAuditEventsQueryParamsWithTimeout

func NewAuditEventsQueryParamsWithTimeout(timeout time.Duration) *AuditEventsQueryParams

NewAuditEventsQueryParamsWithTimeout creates a new AuditEventsQueryParams object with the ability to set a timeout on a request.

func (*AuditEventsQueryParams) SetContext

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

SetContext adds the context to the audit events query params

func (*AuditEventsQueryParams) SetDefaults

func (o *AuditEventsQueryParams) SetDefaults()

SetDefaults hydrates default values in the audit events query params (not the query body).

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

func (*AuditEventsQueryParams) SetFilter

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

SetFilter adds the filter to the audit events query params

func (*AuditEventsQueryParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the audit events query params

func (*AuditEventsQueryParams) SetLimit

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

SetLimit adds the limit to the audit events query params

func (*AuditEventsQueryParams) SetOffset

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

SetOffset adds the offset to the audit events query params

func (*AuditEventsQueryParams) SetSort

func (o *AuditEventsQueryParams) SetSort(sort *string)

SetSort adds the sort to the audit events query params

func (*AuditEventsQueryParams) SetTimeout

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

SetTimeout adds the timeout to the audit events query params

func (*AuditEventsQueryParams) WithContext

WithContext adds the context to the audit events query params

func (*AuditEventsQueryParams) WithDefaults

WithDefaults hydrates default values in the audit events query params (not the query body).

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

func (*AuditEventsQueryParams) WithFilter

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

WithFilter adds the filter to the audit events query params

func (*AuditEventsQueryParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the audit events query params

func (*AuditEventsQueryParams) WithLimit

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

WithLimit adds the limit to the audit events query params

func (*AuditEventsQueryParams) WithOffset

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

WithOffset adds the offset to the audit events query params

func (*AuditEventsQueryParams) WithSort

WithSort adds the sort to the audit events query params

func (*AuditEventsQueryParams) WithTimeout

WithTimeout adds the timeout to the audit events query params

func (*AuditEventsQueryParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type AuditEventsQueryReader

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

AuditEventsQueryReader is a Reader for the AuditEventsQuery structure.

func (*AuditEventsQueryReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type AuditEventsQueryTooManyRequests

type AuditEventsQueryTooManyRequests struct {

	/* Request limit per minute.
	 */
	XRateLimitLimit int64

	/* The number of requests remaining for the sliding one minute window.
	 */
	XRateLimitRemaining int64

	/* Too many requests, retry after this time (as milliseconds since epoch)
	 */
	XRateLimitRetryAfter int64

	Payload *models.MsaReplyMetaOnly
}
AuditEventsQueryTooManyRequests describes a response with status code 429, with default header values.

Too Many Requests

func NewAuditEventsQueryTooManyRequests

func NewAuditEventsQueryTooManyRequests() *AuditEventsQueryTooManyRequests

NewAuditEventsQueryTooManyRequests creates a AuditEventsQueryTooManyRequests with default headers values

func (*AuditEventsQueryTooManyRequests) Error

func (*AuditEventsQueryTooManyRequests) GetPayload

type AuditEventsReadBadRequest

type AuditEventsReadBadRequest struct {

	/* Request limit per minute.
	 */
	XRateLimitLimit int64

	/* The number of requests remaining for the sliding one minute window.
	 */
	XRateLimitRemaining int64

	Payload *models.MsaReplyMetaOnly
}
AuditEventsReadBadRequest describes a response with status code 400, with default header values.

Bad Request

func NewAuditEventsReadBadRequest

func NewAuditEventsReadBadRequest() *AuditEventsReadBadRequest

NewAuditEventsReadBadRequest creates a AuditEventsReadBadRequest with default headers values

func (*AuditEventsReadBadRequest) Error

func (o *AuditEventsReadBadRequest) Error() string

func (*AuditEventsReadBadRequest) GetPayload

type AuditEventsReadDefault

type AuditEventsReadDefault struct {
	Payload *models.APIAuditEventDetailsResponseV1
	// contains filtered or unexported fields
}
AuditEventsReadDefault describes a response with status code -1, with default header values.

OK

func NewAuditEventsReadDefault

func NewAuditEventsReadDefault(code int) *AuditEventsReadDefault

NewAuditEventsReadDefault creates a AuditEventsReadDefault with default headers values

func (*AuditEventsReadDefault) Code

func (o *AuditEventsReadDefault) Code() int

Code gets the status code for the audit events read default response

func (*AuditEventsReadDefault) Error

func (o *AuditEventsReadDefault) Error() string

func (*AuditEventsReadDefault) GetPayload

type AuditEventsReadForbidden

type AuditEventsReadForbidden struct {

	/* Request limit per minute.
	 */
	XRateLimitLimit int64

	/* The number of requests remaining for the sliding one minute window.
	 */
	XRateLimitRemaining int64

	Payload *models.MsaReplyMetaOnly
}
AuditEventsReadForbidden describes a response with status code 403, with default header values.

Forbidden

func NewAuditEventsReadForbidden

func NewAuditEventsReadForbidden() *AuditEventsReadForbidden

NewAuditEventsReadForbidden creates a AuditEventsReadForbidden with default headers values

func (*AuditEventsReadForbidden) Error

func (o *AuditEventsReadForbidden) Error() string

func (*AuditEventsReadForbidden) GetPayload

type AuditEventsReadInternalServerError

type AuditEventsReadInternalServerError struct {

	/* Request limit per minute.
	 */
	XRateLimitLimit int64

	/* The number of requests remaining for the sliding one minute window.
	 */
	XRateLimitRemaining int64

	Payload *models.MsaReplyMetaOnly
}
AuditEventsReadInternalServerError describes a response with status code 500, with default header values.

Internal Server Error

func NewAuditEventsReadInternalServerError

func NewAuditEventsReadInternalServerError() *AuditEventsReadInternalServerError

NewAuditEventsReadInternalServerError creates a AuditEventsReadInternalServerError with default headers values

func (*AuditEventsReadInternalServerError) Error

func (*AuditEventsReadInternalServerError) GetPayload

type AuditEventsReadOK

type AuditEventsReadOK struct {

	/* Request limit per minute.
	 */
	XRateLimitLimit int64

	/* The number of requests remaining for the sliding one minute window.
	 */
	XRateLimitRemaining int64

	Payload *models.APIAuditEventDetailsResponseV1
}
AuditEventsReadOK describes a response with status code 200, with default header values.

OK

func NewAuditEventsReadOK

func NewAuditEventsReadOK() *AuditEventsReadOK

NewAuditEventsReadOK creates a AuditEventsReadOK with default headers values

func (*AuditEventsReadOK) Error

func (o *AuditEventsReadOK) Error() string

func (*AuditEventsReadOK) GetPayload

type AuditEventsReadParams

type AuditEventsReadParams struct {

	/* Ids.

	   IDs of audit events to retrieve details for
	*/
	Ids []string

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

AuditEventsReadParams contains all the parameters to send to the API endpoint

for the audit events read operation.

Typically these are written to a http.Request.

func NewAuditEventsReadParams

func NewAuditEventsReadParams() *AuditEventsReadParams

NewAuditEventsReadParams creates a new AuditEventsReadParams 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 NewAuditEventsReadParamsWithContext

func NewAuditEventsReadParamsWithContext(ctx context.Context) *AuditEventsReadParams

NewAuditEventsReadParamsWithContext creates a new AuditEventsReadParams object with the ability to set a context for a request.

func NewAuditEventsReadParamsWithHTTPClient

func NewAuditEventsReadParamsWithHTTPClient(client *http.Client) *AuditEventsReadParams

NewAuditEventsReadParamsWithHTTPClient creates a new AuditEventsReadParams object with the ability to set a custom HTTPClient for a request.

func NewAuditEventsReadParamsWithTimeout

func NewAuditEventsReadParamsWithTimeout(timeout time.Duration) *AuditEventsReadParams

NewAuditEventsReadParamsWithTimeout creates a new AuditEventsReadParams object with the ability to set a timeout on a request.

func (*AuditEventsReadParams) SetContext

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

SetContext adds the context to the audit events read params

func (*AuditEventsReadParams) SetDefaults

func (o *AuditEventsReadParams) SetDefaults()

SetDefaults hydrates default values in the audit events read params (not the query body).

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

func (*AuditEventsReadParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the audit events read params

func (*AuditEventsReadParams) SetIds

func (o *AuditEventsReadParams) SetIds(ids []string)

SetIds adds the ids to the audit events read params

func (*AuditEventsReadParams) SetTimeout

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

SetTimeout adds the timeout to the audit events read params

func (*AuditEventsReadParams) WithContext

WithContext adds the context to the audit events read params

func (*AuditEventsReadParams) WithDefaults

func (o *AuditEventsReadParams) WithDefaults() *AuditEventsReadParams

WithDefaults hydrates default values in the audit events read params (not the query body).

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

func (*AuditEventsReadParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the audit events read params

func (*AuditEventsReadParams) WithIds

WithIds adds the ids to the audit events read params

func (*AuditEventsReadParams) WithTimeout

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

WithTimeout adds the timeout to the audit events read params

func (*AuditEventsReadParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type AuditEventsReadReader

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

AuditEventsReadReader is a Reader for the AuditEventsRead structure.

func (*AuditEventsReadReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type AuditEventsReadTooManyRequests

type AuditEventsReadTooManyRequests struct {

	/* Request limit per minute.
	 */
	XRateLimitLimit int64

	/* The number of requests remaining for the sliding one minute window.
	 */
	XRateLimitRemaining int64

	/* Too many requests, retry after this time (as milliseconds since epoch)
	 */
	XRateLimitRetryAfter int64

	Payload *models.MsaReplyMetaOnly
}
AuditEventsReadTooManyRequests describes a response with status code 429, with default header values.

Too Many Requests

func NewAuditEventsReadTooManyRequests

func NewAuditEventsReadTooManyRequests() *AuditEventsReadTooManyRequests

NewAuditEventsReadTooManyRequests creates a AuditEventsReadTooManyRequests with default headers values

func (*AuditEventsReadTooManyRequests) Error

func (*AuditEventsReadTooManyRequests) GetPayload

type Client

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

Client for installation tokens API

func (*Client) AuditEventsQuery

func (a *Client) AuditEventsQuery(params *AuditEventsQueryParams, opts ...ClientOption) (*AuditEventsQueryOK, error)

AuditEventsQuery searches for audit events by providing an f q l filter and paging details

func (*Client) AuditEventsRead

func (a *Client) AuditEventsRead(params *AuditEventsReadParams, opts ...ClientOption) (*AuditEventsReadOK, error)

AuditEventsRead gets the details of one or more audit events by id

func (*Client) CustomerSettingsRead

func (a *Client) CustomerSettingsRead(params *CustomerSettingsReadParams, opts ...ClientOption) (*CustomerSettingsReadOK, error)

CustomerSettingsRead checks current installation token settings

func (*Client) SetTransport

func (a *Client) SetTransport(transport runtime.ClientTransport)

SetTransport changes the transport on the client

func (*Client) TokensCreate

func (a *Client) TokensCreate(params *TokensCreateParams, opts ...ClientOption) (*TokensCreateCreated, error)

TokensCreate creates a token

func (*Client) TokensDelete

func (a *Client) TokensDelete(params *TokensDeleteParams, opts ...ClientOption) (*TokensDeleteOK, error)

TokensDelete deletes a token immediately to revoke a token use p a t c h installation tokens entities tokens v1 instead

func (*Client) TokensQuery

func (a *Client) TokensQuery(params *TokensQueryParams, opts ...ClientOption) (*TokensQueryOK, error)

TokensQuery searches for tokens by providing an f q l filter and paging details

func (*Client) TokensRead

func (a *Client) TokensRead(params *TokensReadParams, opts ...ClientOption) (*TokensReadOK, error)

TokensRead gets the details of one or more tokens by id

func (*Client) TokensUpdate

func (a *Client) TokensUpdate(params *TokensUpdateParams, opts ...ClientOption) (*TokensUpdateOK, error)

TokensUpdate updates one or more tokens use this endpoint to edit labels change expiration revoke or restore

type ClientOption

type ClientOption func(*runtime.ClientOperation)

ClientOption is the option for Client methods

type ClientService

type ClientService interface {
	AuditEventsQuery(params *AuditEventsQueryParams, opts ...ClientOption) (*AuditEventsQueryOK, error)

	AuditEventsRead(params *AuditEventsReadParams, opts ...ClientOption) (*AuditEventsReadOK, error)

	CustomerSettingsRead(params *CustomerSettingsReadParams, opts ...ClientOption) (*CustomerSettingsReadOK, error)

	TokensCreate(params *TokensCreateParams, opts ...ClientOption) (*TokensCreateCreated, error)

	TokensDelete(params *TokensDeleteParams, opts ...ClientOption) (*TokensDeleteOK, error)

	TokensQuery(params *TokensQueryParams, opts ...ClientOption) (*TokensQueryOK, error)

	TokensRead(params *TokensReadParams, opts ...ClientOption) (*TokensReadOK, error)

	TokensUpdate(params *TokensUpdateParams, opts ...ClientOption) (*TokensUpdateOK, 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 installation tokens API client.

type CustomerSettingsReadBadRequest

type CustomerSettingsReadBadRequest struct {

	/* Request limit per minute.
	 */
	XRateLimitLimit int64

	/* The number of requests remaining for the sliding one minute window.
	 */
	XRateLimitRemaining int64

	Payload *models.MsaReplyMetaOnly
}
CustomerSettingsReadBadRequest describes a response with status code 400, with default header values.

Bad Request

func NewCustomerSettingsReadBadRequest

func NewCustomerSettingsReadBadRequest() *CustomerSettingsReadBadRequest

NewCustomerSettingsReadBadRequest creates a CustomerSettingsReadBadRequest with default headers values

func (*CustomerSettingsReadBadRequest) Error

func (*CustomerSettingsReadBadRequest) GetPayload

type CustomerSettingsReadDefault

type CustomerSettingsReadDefault struct {
	Payload *models.APICustomerSettingsResponseV1
	// contains filtered or unexported fields
}
CustomerSettingsReadDefault describes a response with status code -1, with default header values.

OK

func NewCustomerSettingsReadDefault

func NewCustomerSettingsReadDefault(code int) *CustomerSettingsReadDefault

NewCustomerSettingsReadDefault creates a CustomerSettingsReadDefault with default headers values

func (*CustomerSettingsReadDefault) Code

func (o *CustomerSettingsReadDefault) Code() int

Code gets the status code for the customer settings read default response

func (*CustomerSettingsReadDefault) Error

func (*CustomerSettingsReadDefault) GetPayload

type CustomerSettingsReadForbidden

type CustomerSettingsReadForbidden struct {

	/* Request limit per minute.
	 */
	XRateLimitLimit int64

	/* The number of requests remaining for the sliding one minute window.
	 */
	XRateLimitRemaining int64

	Payload *models.MsaReplyMetaOnly
}
CustomerSettingsReadForbidden describes a response with status code 403, with default header values.

Forbidden

func NewCustomerSettingsReadForbidden

func NewCustomerSettingsReadForbidden() *CustomerSettingsReadForbidden

NewCustomerSettingsReadForbidden creates a CustomerSettingsReadForbidden with default headers values

func (*CustomerSettingsReadForbidden) Error

func (*CustomerSettingsReadForbidden) GetPayload

type CustomerSettingsReadInternalServerError

type CustomerSettingsReadInternalServerError struct {

	/* Request limit per minute.
	 */
	XRateLimitLimit int64

	/* The number of requests remaining for the sliding one minute window.
	 */
	XRateLimitRemaining int64

	Payload *models.MsaReplyMetaOnly
}
CustomerSettingsReadInternalServerError describes a response with status code 500, with default header values.

Internal Server Error

func NewCustomerSettingsReadInternalServerError

func NewCustomerSettingsReadInternalServerError() *CustomerSettingsReadInternalServerError

NewCustomerSettingsReadInternalServerError creates a CustomerSettingsReadInternalServerError with default headers values

func (*CustomerSettingsReadInternalServerError) Error

func (*CustomerSettingsReadInternalServerError) GetPayload

type CustomerSettingsReadOK

type CustomerSettingsReadOK struct {

	/* Request limit per minute.
	 */
	XRateLimitLimit int64

	/* The number of requests remaining for the sliding one minute window.
	 */
	XRateLimitRemaining int64

	Payload *models.APICustomerSettingsResponseV1
}
CustomerSettingsReadOK describes a response with status code 200, with default header values.

OK

func NewCustomerSettingsReadOK

func NewCustomerSettingsReadOK() *CustomerSettingsReadOK

NewCustomerSettingsReadOK creates a CustomerSettingsReadOK with default headers values

func (*CustomerSettingsReadOK) Error

func (o *CustomerSettingsReadOK) Error() string

func (*CustomerSettingsReadOK) GetPayload

type CustomerSettingsReadParams

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

CustomerSettingsReadParams contains all the parameters to send to the API endpoint

for the customer settings read operation.

Typically these are written to a http.Request.

func NewCustomerSettingsReadParams

func NewCustomerSettingsReadParams() *CustomerSettingsReadParams

NewCustomerSettingsReadParams creates a new CustomerSettingsReadParams 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 NewCustomerSettingsReadParamsWithContext

func NewCustomerSettingsReadParamsWithContext(ctx context.Context) *CustomerSettingsReadParams

NewCustomerSettingsReadParamsWithContext creates a new CustomerSettingsReadParams object with the ability to set a context for a request.

func NewCustomerSettingsReadParamsWithHTTPClient

func NewCustomerSettingsReadParamsWithHTTPClient(client *http.Client) *CustomerSettingsReadParams

NewCustomerSettingsReadParamsWithHTTPClient creates a new CustomerSettingsReadParams object with the ability to set a custom HTTPClient for a request.

func NewCustomerSettingsReadParamsWithTimeout

func NewCustomerSettingsReadParamsWithTimeout(timeout time.Duration) *CustomerSettingsReadParams

NewCustomerSettingsReadParamsWithTimeout creates a new CustomerSettingsReadParams object with the ability to set a timeout on a request.

func (*CustomerSettingsReadParams) SetContext

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

SetContext adds the context to the customer settings read params

func (*CustomerSettingsReadParams) SetDefaults

func (o *CustomerSettingsReadParams) SetDefaults()

SetDefaults hydrates default values in the customer settings read params (not the query body).

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

func (*CustomerSettingsReadParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the customer settings read params

func (*CustomerSettingsReadParams) SetTimeout

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

SetTimeout adds the timeout to the customer settings read params

func (*CustomerSettingsReadParams) WithContext

WithContext adds the context to the customer settings read params

func (*CustomerSettingsReadParams) WithDefaults

WithDefaults hydrates default values in the customer settings read params (not the query body).

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

func (*CustomerSettingsReadParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the customer settings read params

func (*CustomerSettingsReadParams) WithTimeout

WithTimeout adds the timeout to the customer settings read params

func (*CustomerSettingsReadParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type CustomerSettingsReadReader

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

CustomerSettingsReadReader is a Reader for the CustomerSettingsRead structure.

func (*CustomerSettingsReadReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type CustomerSettingsReadTooManyRequests

type CustomerSettingsReadTooManyRequests struct {

	/* Request limit per minute.
	 */
	XRateLimitLimit int64

	/* The number of requests remaining for the sliding one minute window.
	 */
	XRateLimitRemaining int64

	/* Too many requests, retry after this time (as milliseconds since epoch)
	 */
	XRateLimitRetryAfter int64

	Payload *models.MsaReplyMetaOnly
}
CustomerSettingsReadTooManyRequests describes a response with status code 429, with default header values.

Too Many Requests

func NewCustomerSettingsReadTooManyRequests

func NewCustomerSettingsReadTooManyRequests() *CustomerSettingsReadTooManyRequests

NewCustomerSettingsReadTooManyRequests creates a CustomerSettingsReadTooManyRequests with default headers values

func (*CustomerSettingsReadTooManyRequests) Error

func (*CustomerSettingsReadTooManyRequests) GetPayload

type TokensCreateBadRequest

type TokensCreateBadRequest struct {

	/* Request limit per minute.
	 */
	XRateLimitLimit int64

	/* The number of requests remaining for the sliding one minute window.
	 */
	XRateLimitRemaining int64

	Payload *models.MsaReplyMetaOnly
}
TokensCreateBadRequest describes a response with status code 400, with default header values.

Bad Request

func NewTokensCreateBadRequest

func NewTokensCreateBadRequest() *TokensCreateBadRequest

NewTokensCreateBadRequest creates a TokensCreateBadRequest with default headers values

func (*TokensCreateBadRequest) Error

func (o *TokensCreateBadRequest) Error() string

func (*TokensCreateBadRequest) GetPayload

type TokensCreateCreated

type TokensCreateCreated struct {

	/* Request limit per minute.
	 */
	XRateLimitLimit int64

	/* The number of requests remaining for the sliding one minute window.
	 */
	XRateLimitRemaining int64

	Payload *models.APITokenDetailsResponseV1
}
TokensCreateCreated describes a response with status code 201, with default header values.

Created

func NewTokensCreateCreated

func NewTokensCreateCreated() *TokensCreateCreated

NewTokensCreateCreated creates a TokensCreateCreated with default headers values

func (*TokensCreateCreated) Error

func (o *TokensCreateCreated) Error() string

func (*TokensCreateCreated) GetPayload

type TokensCreateForbidden

type TokensCreateForbidden struct {

	/* Request limit per minute.
	 */
	XRateLimitLimit int64

	/* The number of requests remaining for the sliding one minute window.
	 */
	XRateLimitRemaining int64

	Payload *models.MsaReplyMetaOnly
}
TokensCreateForbidden describes a response with status code 403, with default header values.

Forbidden

func NewTokensCreateForbidden

func NewTokensCreateForbidden() *TokensCreateForbidden

NewTokensCreateForbidden creates a TokensCreateForbidden with default headers values

func (*TokensCreateForbidden) Error

func (o *TokensCreateForbidden) Error() string

func (*TokensCreateForbidden) GetPayload

type TokensCreateInternalServerError

type TokensCreateInternalServerError struct {

	/* Request limit per minute.
	 */
	XRateLimitLimit int64

	/* The number of requests remaining for the sliding one minute window.
	 */
	XRateLimitRemaining int64

	Payload *models.MsaReplyMetaOnly
}
TokensCreateInternalServerError describes a response with status code 500, with default header values.

Internal Server Error

func NewTokensCreateInternalServerError

func NewTokensCreateInternalServerError() *TokensCreateInternalServerError

NewTokensCreateInternalServerError creates a TokensCreateInternalServerError with default headers values

func (*TokensCreateInternalServerError) Error

func (*TokensCreateInternalServerError) GetPayload

type TokensCreateParams

type TokensCreateParams struct {

	// Body.
	Body *models.APITokenCreateRequestV1

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

TokensCreateParams contains all the parameters to send to the API endpoint

for the tokens create operation.

Typically these are written to a http.Request.

func NewTokensCreateParams

func NewTokensCreateParams() *TokensCreateParams

NewTokensCreateParams creates a new TokensCreateParams 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 NewTokensCreateParamsWithContext

func NewTokensCreateParamsWithContext(ctx context.Context) *TokensCreateParams

NewTokensCreateParamsWithContext creates a new TokensCreateParams object with the ability to set a context for a request.

func NewTokensCreateParamsWithHTTPClient

func NewTokensCreateParamsWithHTTPClient(client *http.Client) *TokensCreateParams

NewTokensCreateParamsWithHTTPClient creates a new TokensCreateParams object with the ability to set a custom HTTPClient for a request.

func NewTokensCreateParamsWithTimeout

func NewTokensCreateParamsWithTimeout(timeout time.Duration) *TokensCreateParams

NewTokensCreateParamsWithTimeout creates a new TokensCreateParams object with the ability to set a timeout on a request.

func (*TokensCreateParams) SetBody

SetBody adds the body to the tokens create params

func (*TokensCreateParams) SetContext

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

SetContext adds the context to the tokens create params

func (*TokensCreateParams) SetDefaults

func (o *TokensCreateParams) SetDefaults()

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

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

func (*TokensCreateParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the tokens create params

func (*TokensCreateParams) SetTimeout

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

SetTimeout adds the timeout to the tokens create params

func (*TokensCreateParams) WithBody

WithBody adds the body to the tokens create params

func (*TokensCreateParams) WithContext

WithContext adds the context to the tokens create params

func (*TokensCreateParams) WithDefaults

func (o *TokensCreateParams) WithDefaults() *TokensCreateParams

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

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

func (*TokensCreateParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the tokens create params

func (*TokensCreateParams) WithTimeout

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

WithTimeout adds the timeout to the tokens create params

func (*TokensCreateParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type TokensCreateReader

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

TokensCreateReader is a Reader for the TokensCreate structure.

func (*TokensCreateReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type TokensCreateTooManyRequests

type TokensCreateTooManyRequests struct {

	/* Request limit per minute.
	 */
	XRateLimitLimit int64

	/* The number of requests remaining for the sliding one minute window.
	 */
	XRateLimitRemaining int64

	/* Too many requests, retry after this time (as milliseconds since epoch)
	 */
	XRateLimitRetryAfter int64

	Payload *models.MsaReplyMetaOnly
}
TokensCreateTooManyRequests describes a response with status code 429, with default header values.

Too Many Requests

func NewTokensCreateTooManyRequests

func NewTokensCreateTooManyRequests() *TokensCreateTooManyRequests

NewTokensCreateTooManyRequests creates a TokensCreateTooManyRequests with default headers values

func (*TokensCreateTooManyRequests) Error

func (*TokensCreateTooManyRequests) GetPayload

type TokensDeleteBadRequest

type TokensDeleteBadRequest struct {

	/* Request limit per minute.
	 */
	XRateLimitLimit int64

	/* The number of requests remaining for the sliding one minute window.
	 */
	XRateLimitRemaining int64

	Payload *models.MsaReplyMetaOnly
}
TokensDeleteBadRequest describes a response with status code 400, with default header values.

Bad Request

func NewTokensDeleteBadRequest

func NewTokensDeleteBadRequest() *TokensDeleteBadRequest

NewTokensDeleteBadRequest creates a TokensDeleteBadRequest with default headers values

func (*TokensDeleteBadRequest) Error

func (o *TokensDeleteBadRequest) Error() string

func (*TokensDeleteBadRequest) GetPayload

type TokensDeleteDefault

type TokensDeleteDefault struct {
	Payload *models.MsaReplyMetaOnly
	// contains filtered or unexported fields
}
TokensDeleteDefault describes a response with status code -1, with default header values.

OK

func NewTokensDeleteDefault

func NewTokensDeleteDefault(code int) *TokensDeleteDefault

NewTokensDeleteDefault creates a TokensDeleteDefault with default headers values

func (*TokensDeleteDefault) Code

func (o *TokensDeleteDefault) Code() int

Code gets the status code for the tokens delete default response

func (*TokensDeleteDefault) Error

func (o *TokensDeleteDefault) Error() string

func (*TokensDeleteDefault) GetPayload

func (o *TokensDeleteDefault) GetPayload() *models.MsaReplyMetaOnly

type TokensDeleteForbidden

type TokensDeleteForbidden struct {

	/* Request limit per minute.
	 */
	XRateLimitLimit int64

	/* The number of requests remaining for the sliding one minute window.
	 */
	XRateLimitRemaining int64

	Payload *models.MsaReplyMetaOnly
}
TokensDeleteForbidden describes a response with status code 403, with default header values.

Forbidden

func NewTokensDeleteForbidden

func NewTokensDeleteForbidden() *TokensDeleteForbidden

NewTokensDeleteForbidden creates a TokensDeleteForbidden with default headers values

func (*TokensDeleteForbidden) Error

func (o *TokensDeleteForbidden) Error() string

func (*TokensDeleteForbidden) GetPayload

type TokensDeleteInternalServerError

type TokensDeleteInternalServerError struct {

	/* Request limit per minute.
	 */
	XRateLimitLimit int64

	/* The number of requests remaining for the sliding one minute window.
	 */
	XRateLimitRemaining int64

	Payload *models.MsaReplyMetaOnly
}
TokensDeleteInternalServerError describes a response with status code 500, with default header values.

Internal Server Error

func NewTokensDeleteInternalServerError

func NewTokensDeleteInternalServerError() *TokensDeleteInternalServerError

NewTokensDeleteInternalServerError creates a TokensDeleteInternalServerError with default headers values

func (*TokensDeleteInternalServerError) Error

func (*TokensDeleteInternalServerError) GetPayload

type TokensDeleteNotFound

type TokensDeleteNotFound struct {

	/* Request limit per minute.
	 */
	XRateLimitLimit int64

	/* The number of requests remaining for the sliding one minute window.
	 */
	XRateLimitRemaining int64

	Payload *models.MsaQueryResponse
}
TokensDeleteNotFound describes a response with status code 404, with default header values.

Not Found

func NewTokensDeleteNotFound

func NewTokensDeleteNotFound() *TokensDeleteNotFound

NewTokensDeleteNotFound creates a TokensDeleteNotFound with default headers values

func (*TokensDeleteNotFound) Error

func (o *TokensDeleteNotFound) Error() string

func (*TokensDeleteNotFound) GetPayload

func (o *TokensDeleteNotFound) GetPayload() *models.MsaQueryResponse

type TokensDeleteOK

type TokensDeleteOK struct {

	/* Request limit per minute.
	 */
	XRateLimitLimit int64

	/* The number of requests remaining for the sliding one minute window.
	 */
	XRateLimitRemaining int64

	Payload *models.MsaReplyMetaOnly
}
TokensDeleteOK describes a response with status code 200, with default header values.

OK

func NewTokensDeleteOK

func NewTokensDeleteOK() *TokensDeleteOK

NewTokensDeleteOK creates a TokensDeleteOK with default headers values

func (*TokensDeleteOK) Error

func (o *TokensDeleteOK) Error() string

func (*TokensDeleteOK) GetPayload

func (o *TokensDeleteOK) GetPayload() *models.MsaReplyMetaOnly

type TokensDeleteParams

type TokensDeleteParams struct {

	/* Ids.

	   The token ids to delete.
	*/
	Ids []string

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

TokensDeleteParams contains all the parameters to send to the API endpoint

for the tokens delete operation.

Typically these are written to a http.Request.

func NewTokensDeleteParams

func NewTokensDeleteParams() *TokensDeleteParams

NewTokensDeleteParams creates a new TokensDeleteParams 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 NewTokensDeleteParamsWithContext

func NewTokensDeleteParamsWithContext(ctx context.Context) *TokensDeleteParams

NewTokensDeleteParamsWithContext creates a new TokensDeleteParams object with the ability to set a context for a request.

func NewTokensDeleteParamsWithHTTPClient

func NewTokensDeleteParamsWithHTTPClient(client *http.Client) *TokensDeleteParams

NewTokensDeleteParamsWithHTTPClient creates a new TokensDeleteParams object with the ability to set a custom HTTPClient for a request.

func NewTokensDeleteParamsWithTimeout

func NewTokensDeleteParamsWithTimeout(timeout time.Duration) *TokensDeleteParams

NewTokensDeleteParamsWithTimeout creates a new TokensDeleteParams object with the ability to set a timeout on a request.

func (*TokensDeleteParams) SetContext

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

SetContext adds the context to the tokens delete params

func (*TokensDeleteParams) SetDefaults

func (o *TokensDeleteParams) SetDefaults()

SetDefaults hydrates default values in the tokens delete params (not the query body).

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

func (*TokensDeleteParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the tokens delete params

func (*TokensDeleteParams) SetIds

func (o *TokensDeleteParams) SetIds(ids []string)

SetIds adds the ids to the tokens delete params

func (*TokensDeleteParams) SetTimeout

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

SetTimeout adds the timeout to the tokens delete params

func (*TokensDeleteParams) WithContext

WithContext adds the context to the tokens delete params

func (*TokensDeleteParams) WithDefaults

func (o *TokensDeleteParams) WithDefaults() *TokensDeleteParams

WithDefaults hydrates default values in the tokens delete params (not the query body).

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

func (*TokensDeleteParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the tokens delete params

func (*TokensDeleteParams) WithIds

func (o *TokensDeleteParams) WithIds(ids []string) *TokensDeleteParams

WithIds adds the ids to the tokens delete params

func (*TokensDeleteParams) WithTimeout

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

WithTimeout adds the timeout to the tokens delete params

func (*TokensDeleteParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type TokensDeleteReader

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

TokensDeleteReader is a Reader for the TokensDelete structure.

func (*TokensDeleteReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type TokensDeleteTooManyRequests

type TokensDeleteTooManyRequests struct {

	/* Request limit per minute.
	 */
	XRateLimitLimit int64

	/* The number of requests remaining for the sliding one minute window.
	 */
	XRateLimitRemaining int64

	/* Too many requests, retry after this time (as milliseconds since epoch)
	 */
	XRateLimitRetryAfter int64

	Payload *models.MsaReplyMetaOnly
}
TokensDeleteTooManyRequests describes a response with status code 429, with default header values.

Too Many Requests

func NewTokensDeleteTooManyRequests

func NewTokensDeleteTooManyRequests() *TokensDeleteTooManyRequests

NewTokensDeleteTooManyRequests creates a TokensDeleteTooManyRequests with default headers values

func (*TokensDeleteTooManyRequests) Error

func (*TokensDeleteTooManyRequests) GetPayload

type TokensQueryBadRequest

type TokensQueryBadRequest struct {

	/* Request limit per minute.
	 */
	XRateLimitLimit int64

	/* The number of requests remaining for the sliding one minute window.
	 */
	XRateLimitRemaining int64

	Payload *models.MsaReplyMetaOnly
}
TokensQueryBadRequest describes a response with status code 400, with default header values.

Bad Request

func NewTokensQueryBadRequest

func NewTokensQueryBadRequest() *TokensQueryBadRequest

NewTokensQueryBadRequest creates a TokensQueryBadRequest with default headers values

func (*TokensQueryBadRequest) Error

func (o *TokensQueryBadRequest) Error() string

func (*TokensQueryBadRequest) GetPayload

type TokensQueryDefault

type TokensQueryDefault struct {
	Payload *models.MsaQueryResponse
	// contains filtered or unexported fields
}
TokensQueryDefault describes a response with status code -1, with default header values.

OK

func NewTokensQueryDefault

func NewTokensQueryDefault(code int) *TokensQueryDefault

NewTokensQueryDefault creates a TokensQueryDefault with default headers values

func (*TokensQueryDefault) Code

func (o *TokensQueryDefault) Code() int

Code gets the status code for the tokens query default response

func (*TokensQueryDefault) Error

func (o *TokensQueryDefault) Error() string

func (*TokensQueryDefault) GetPayload

func (o *TokensQueryDefault) GetPayload() *models.MsaQueryResponse

type TokensQueryForbidden

type TokensQueryForbidden struct {

	/* Request limit per minute.
	 */
	XRateLimitLimit int64

	/* The number of requests remaining for the sliding one minute window.
	 */
	XRateLimitRemaining int64

	Payload *models.MsaReplyMetaOnly
}
TokensQueryForbidden describes a response with status code 403, with default header values.

Forbidden

func NewTokensQueryForbidden

func NewTokensQueryForbidden() *TokensQueryForbidden

NewTokensQueryForbidden creates a TokensQueryForbidden with default headers values

func (*TokensQueryForbidden) Error

func (o *TokensQueryForbidden) Error() string

func (*TokensQueryForbidden) GetPayload

func (o *TokensQueryForbidden) GetPayload() *models.MsaReplyMetaOnly

type TokensQueryInternalServerError

type TokensQueryInternalServerError struct {

	/* Request limit per minute.
	 */
	XRateLimitLimit int64

	/* The number of requests remaining for the sliding one minute window.
	 */
	XRateLimitRemaining int64

	Payload *models.MsaReplyMetaOnly
}
TokensQueryInternalServerError describes a response with status code 500, with default header values.

Internal Server Error

func NewTokensQueryInternalServerError

func NewTokensQueryInternalServerError() *TokensQueryInternalServerError

NewTokensQueryInternalServerError creates a TokensQueryInternalServerError with default headers values

func (*TokensQueryInternalServerError) Error

func (*TokensQueryInternalServerError) GetPayload

type TokensQueryOK

type TokensQueryOK struct {

	/* Request limit per minute.
	 */
	XRateLimitLimit int64

	/* The number of requests remaining for the sliding one minute window.
	 */
	XRateLimitRemaining int64

	Payload *models.MsaQueryResponse
}
TokensQueryOK describes a response with status code 200, with default header values.

OK

func NewTokensQueryOK

func NewTokensQueryOK() *TokensQueryOK

NewTokensQueryOK creates a TokensQueryOK with default headers values

func (*TokensQueryOK) Error

func (o *TokensQueryOK) Error() string

func (*TokensQueryOK) GetPayload

func (o *TokensQueryOK) GetPayload() *models.MsaQueryResponse

type TokensQueryParams

type TokensQueryParams struct {

	/* Filter.

	   The filter expression that should be used to limit the results (e.g., `status:'valid'`).
	*/
	Filter *string

	/* Limit.

	   The maximum records to return. [1-1000]. Defaults to 50.
	*/
	Limit *int64

	/* Offset.

	   The offset to start retrieving records from.
	*/
	Offset *int64

	/* Sort.

	   The property to sort by (e.g. created_timestamp.desc).
	*/
	Sort *string

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

TokensQueryParams contains all the parameters to send to the API endpoint

for the tokens query operation.

Typically these are written to a http.Request.

func NewTokensQueryParams

func NewTokensQueryParams() *TokensQueryParams

NewTokensQueryParams creates a new TokensQueryParams 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 NewTokensQueryParamsWithContext

func NewTokensQueryParamsWithContext(ctx context.Context) *TokensQueryParams

NewTokensQueryParamsWithContext creates a new TokensQueryParams object with the ability to set a context for a request.

func NewTokensQueryParamsWithHTTPClient

func NewTokensQueryParamsWithHTTPClient(client *http.Client) *TokensQueryParams

NewTokensQueryParamsWithHTTPClient creates a new TokensQueryParams object with the ability to set a custom HTTPClient for a request.

func NewTokensQueryParamsWithTimeout

func NewTokensQueryParamsWithTimeout(timeout time.Duration) *TokensQueryParams

NewTokensQueryParamsWithTimeout creates a new TokensQueryParams object with the ability to set a timeout on a request.

func (*TokensQueryParams) SetContext

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

SetContext adds the context to the tokens query params

func (*TokensQueryParams) SetDefaults

func (o *TokensQueryParams) SetDefaults()

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

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

func (*TokensQueryParams) SetFilter

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

SetFilter adds the filter to the tokens query params

func (*TokensQueryParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the tokens query params

func (*TokensQueryParams) SetLimit

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

SetLimit adds the limit to the tokens query params

func (*TokensQueryParams) SetOffset

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

SetOffset adds the offset to the tokens query params

func (*TokensQueryParams) SetSort

func (o *TokensQueryParams) SetSort(sort *string)

SetSort adds the sort to the tokens query params

func (*TokensQueryParams) SetTimeout

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

SetTimeout adds the timeout to the tokens query params

func (*TokensQueryParams) WithContext

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

WithContext adds the context to the tokens query params

func (*TokensQueryParams) WithDefaults

func (o *TokensQueryParams) WithDefaults() *TokensQueryParams

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

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

func (*TokensQueryParams) WithFilter

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

WithFilter adds the filter to the tokens query params

func (*TokensQueryParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the tokens query params

func (*TokensQueryParams) WithLimit

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

WithLimit adds the limit to the tokens query params

func (*TokensQueryParams) WithOffset

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

WithOffset adds the offset to the tokens query params

func (*TokensQueryParams) WithSort

func (o *TokensQueryParams) WithSort(sort *string) *TokensQueryParams

WithSort adds the sort to the tokens query params

func (*TokensQueryParams) WithTimeout

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

WithTimeout adds the timeout to the tokens query params

func (*TokensQueryParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type TokensQueryReader

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

TokensQueryReader is a Reader for the TokensQuery structure.

func (*TokensQueryReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type TokensQueryTooManyRequests

type TokensQueryTooManyRequests struct {

	/* Request limit per minute.
	 */
	XRateLimitLimit int64

	/* The number of requests remaining for the sliding one minute window.
	 */
	XRateLimitRemaining int64

	/* Too many requests, retry after this time (as milliseconds since epoch)
	 */
	XRateLimitRetryAfter int64

	Payload *models.MsaReplyMetaOnly
}
TokensQueryTooManyRequests describes a response with status code 429, with default header values.

Too Many Requests

func NewTokensQueryTooManyRequests

func NewTokensQueryTooManyRequests() *TokensQueryTooManyRequests

NewTokensQueryTooManyRequests creates a TokensQueryTooManyRequests with default headers values

func (*TokensQueryTooManyRequests) Error

func (*TokensQueryTooManyRequests) GetPayload

type TokensReadBadRequest

type TokensReadBadRequest struct {

	/* Request limit per minute.
	 */
	XRateLimitLimit int64

	/* The number of requests remaining for the sliding one minute window.
	 */
	XRateLimitRemaining int64

	Payload *models.MsaReplyMetaOnly
}
TokensReadBadRequest describes a response with status code 400, with default header values.

Bad Request

func NewTokensReadBadRequest

func NewTokensReadBadRequest() *TokensReadBadRequest

NewTokensReadBadRequest creates a TokensReadBadRequest with default headers values

func (*TokensReadBadRequest) Error

func (o *TokensReadBadRequest) Error() string

func (*TokensReadBadRequest) GetPayload

func (o *TokensReadBadRequest) GetPayload() *models.MsaReplyMetaOnly

type TokensReadDefault

type TokensReadDefault struct {
	Payload *models.APITokenDetailsResponseV1
	// contains filtered or unexported fields
}
TokensReadDefault describes a response with status code -1, with default header values.

OK

func NewTokensReadDefault

func NewTokensReadDefault(code int) *TokensReadDefault

NewTokensReadDefault creates a TokensReadDefault with default headers values

func (*TokensReadDefault) Code

func (o *TokensReadDefault) Code() int

Code gets the status code for the tokens read default response

func (*TokensReadDefault) Error

func (o *TokensReadDefault) Error() string

func (*TokensReadDefault) GetPayload

type TokensReadForbidden

type TokensReadForbidden struct {

	/* Request limit per minute.
	 */
	XRateLimitLimit int64

	/* The number of requests remaining for the sliding one minute window.
	 */
	XRateLimitRemaining int64

	Payload *models.MsaReplyMetaOnly
}
TokensReadForbidden describes a response with status code 403, with default header values.

Forbidden

func NewTokensReadForbidden

func NewTokensReadForbidden() *TokensReadForbidden

NewTokensReadForbidden creates a TokensReadForbidden with default headers values

func (*TokensReadForbidden) Error

func (o *TokensReadForbidden) Error() string

func (*TokensReadForbidden) GetPayload

func (o *TokensReadForbidden) GetPayload() *models.MsaReplyMetaOnly

type TokensReadInternalServerError

type TokensReadInternalServerError struct {

	/* Request limit per minute.
	 */
	XRateLimitLimit int64

	/* The number of requests remaining for the sliding one minute window.
	 */
	XRateLimitRemaining int64

	Payload *models.MsaReplyMetaOnly
}
TokensReadInternalServerError describes a response with status code 500, with default header values.

Internal Server Error

func NewTokensReadInternalServerError

func NewTokensReadInternalServerError() *TokensReadInternalServerError

NewTokensReadInternalServerError creates a TokensReadInternalServerError with default headers values

func (*TokensReadInternalServerError) Error

func (*TokensReadInternalServerError) GetPayload

type TokensReadOK

type TokensReadOK struct {

	/* Request limit per minute.
	 */
	XRateLimitLimit int64

	/* The number of requests remaining for the sliding one minute window.
	 */
	XRateLimitRemaining int64

	Payload *models.APITokenDetailsResponseV1
}
TokensReadOK describes a response with status code 200, with default header values.

OK

func NewTokensReadOK

func NewTokensReadOK() *TokensReadOK

NewTokensReadOK creates a TokensReadOK with default headers values

func (*TokensReadOK) Error

func (o *TokensReadOK) Error() string

func (*TokensReadOK) GetPayload

type TokensReadParams

type TokensReadParams struct {

	/* Ids.

	   IDs of tokens to retrieve details for
	*/
	Ids []string

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

TokensReadParams contains all the parameters to send to the API endpoint

for the tokens read operation.

Typically these are written to a http.Request.

func NewTokensReadParams

func NewTokensReadParams() *TokensReadParams

NewTokensReadParams creates a new TokensReadParams 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 NewTokensReadParamsWithContext

func NewTokensReadParamsWithContext(ctx context.Context) *TokensReadParams

NewTokensReadParamsWithContext creates a new TokensReadParams object with the ability to set a context for a request.

func NewTokensReadParamsWithHTTPClient

func NewTokensReadParamsWithHTTPClient(client *http.Client) *TokensReadParams

NewTokensReadParamsWithHTTPClient creates a new TokensReadParams object with the ability to set a custom HTTPClient for a request.

func NewTokensReadParamsWithTimeout

func NewTokensReadParamsWithTimeout(timeout time.Duration) *TokensReadParams

NewTokensReadParamsWithTimeout creates a new TokensReadParams object with the ability to set a timeout on a request.

func (*TokensReadParams) SetContext

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

SetContext adds the context to the tokens read params

func (*TokensReadParams) SetDefaults

func (o *TokensReadParams) SetDefaults()

SetDefaults hydrates default values in the tokens read params (not the query body).

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

func (*TokensReadParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the tokens read params

func (*TokensReadParams) SetIds

func (o *TokensReadParams) SetIds(ids []string)

SetIds adds the ids to the tokens read params

func (*TokensReadParams) SetTimeout

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

SetTimeout adds the timeout to the tokens read params

func (*TokensReadParams) WithContext

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

WithContext adds the context to the tokens read params

func (*TokensReadParams) WithDefaults

func (o *TokensReadParams) WithDefaults() *TokensReadParams

WithDefaults hydrates default values in the tokens read params (not the query body).

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

func (*TokensReadParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the tokens read params

func (*TokensReadParams) WithIds

func (o *TokensReadParams) WithIds(ids []string) *TokensReadParams

WithIds adds the ids to the tokens read params

func (*TokensReadParams) WithTimeout

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

WithTimeout adds the timeout to the tokens read params

func (*TokensReadParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type TokensReadReader

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

TokensReadReader is a Reader for the TokensRead structure.

func (*TokensReadReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type TokensReadTooManyRequests

type TokensReadTooManyRequests struct {

	/* Request limit per minute.
	 */
	XRateLimitLimit int64

	/* The number of requests remaining for the sliding one minute window.
	 */
	XRateLimitRemaining int64

	/* Too many requests, retry after this time (as milliseconds since epoch)
	 */
	XRateLimitRetryAfter int64

	Payload *models.MsaReplyMetaOnly
}
TokensReadTooManyRequests describes a response with status code 429, with default header values.

Too Many Requests

func NewTokensReadTooManyRequests

func NewTokensReadTooManyRequests() *TokensReadTooManyRequests

NewTokensReadTooManyRequests creates a TokensReadTooManyRequests with default headers values

func (*TokensReadTooManyRequests) Error

func (o *TokensReadTooManyRequests) Error() string

func (*TokensReadTooManyRequests) GetPayload

type TokensUpdateBadRequest

type TokensUpdateBadRequest struct {

	/* Request limit per minute.
	 */
	XRateLimitLimit int64

	/* The number of requests remaining for the sliding one minute window.
	 */
	XRateLimitRemaining int64

	Payload *models.MsaReplyMetaOnly
}
TokensUpdateBadRequest describes a response with status code 400, with default header values.

Bad Request

func NewTokensUpdateBadRequest

func NewTokensUpdateBadRequest() *TokensUpdateBadRequest

NewTokensUpdateBadRequest creates a TokensUpdateBadRequest with default headers values

func (*TokensUpdateBadRequest) Error

func (o *TokensUpdateBadRequest) Error() string

func (*TokensUpdateBadRequest) GetPayload

type TokensUpdateDefault

type TokensUpdateDefault struct {
	Payload *models.MsaQueryResponse
	// contains filtered or unexported fields
}
TokensUpdateDefault describes a response with status code -1, with default header values.

OK

func NewTokensUpdateDefault

func NewTokensUpdateDefault(code int) *TokensUpdateDefault

NewTokensUpdateDefault creates a TokensUpdateDefault with default headers values

func (*TokensUpdateDefault) Code

func (o *TokensUpdateDefault) Code() int

Code gets the status code for the tokens update default response

func (*TokensUpdateDefault) Error

func (o *TokensUpdateDefault) Error() string

func (*TokensUpdateDefault) GetPayload

func (o *TokensUpdateDefault) GetPayload() *models.MsaQueryResponse

type TokensUpdateForbidden

type TokensUpdateForbidden struct {

	/* Request limit per minute.
	 */
	XRateLimitLimit int64

	/* The number of requests remaining for the sliding one minute window.
	 */
	XRateLimitRemaining int64

	Payload *models.MsaReplyMetaOnly
}
TokensUpdateForbidden describes a response with status code 403, with default header values.

Forbidden

func NewTokensUpdateForbidden

func NewTokensUpdateForbidden() *TokensUpdateForbidden

NewTokensUpdateForbidden creates a TokensUpdateForbidden with default headers values

func (*TokensUpdateForbidden) Error

func (o *TokensUpdateForbidden) Error() string

func (*TokensUpdateForbidden) GetPayload

type TokensUpdateInternalServerError

type TokensUpdateInternalServerError struct {

	/* Request limit per minute.
	 */
	XRateLimitLimit int64

	/* The number of requests remaining for the sliding one minute window.
	 */
	XRateLimitRemaining int64

	Payload *models.MsaReplyMetaOnly
}
TokensUpdateInternalServerError describes a response with status code 500, with default header values.

Internal Server Error

func NewTokensUpdateInternalServerError

func NewTokensUpdateInternalServerError() *TokensUpdateInternalServerError

NewTokensUpdateInternalServerError creates a TokensUpdateInternalServerError with default headers values

func (*TokensUpdateInternalServerError) Error

func (*TokensUpdateInternalServerError) GetPayload

type TokensUpdateNotFound

type TokensUpdateNotFound struct {

	/* Request limit per minute.
	 */
	XRateLimitLimit int64

	/* The number of requests remaining for the sliding one minute window.
	 */
	XRateLimitRemaining int64

	Payload *models.MsaQueryResponse
}
TokensUpdateNotFound describes a response with status code 404, with default header values.

Not Found

func NewTokensUpdateNotFound

func NewTokensUpdateNotFound() *TokensUpdateNotFound

NewTokensUpdateNotFound creates a TokensUpdateNotFound with default headers values

func (*TokensUpdateNotFound) Error

func (o *TokensUpdateNotFound) Error() string

func (*TokensUpdateNotFound) GetPayload

func (o *TokensUpdateNotFound) GetPayload() *models.MsaQueryResponse

type TokensUpdateOK

type TokensUpdateOK struct {

	/* Request limit per minute.
	 */
	XRateLimitLimit int64

	/* The number of requests remaining for the sliding one minute window.
	 */
	XRateLimitRemaining int64

	Payload *models.MsaQueryResponse
}
TokensUpdateOK describes a response with status code 200, with default header values.

OK

func NewTokensUpdateOK

func NewTokensUpdateOK() *TokensUpdateOK

NewTokensUpdateOK creates a TokensUpdateOK with default headers values

func (*TokensUpdateOK) Error

func (o *TokensUpdateOK) Error() string

func (*TokensUpdateOK) GetPayload

func (o *TokensUpdateOK) GetPayload() *models.MsaQueryResponse

type TokensUpdateParams

type TokensUpdateParams struct {

	// Body.
	Body *models.APITokenPatchRequestV1

	/* Ids.

	   The token ids to update.
	*/
	Ids []string

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

TokensUpdateParams contains all the parameters to send to the API endpoint

for the tokens update operation.

Typically these are written to a http.Request.

func NewTokensUpdateParams

func NewTokensUpdateParams() *TokensUpdateParams

NewTokensUpdateParams creates a new TokensUpdateParams 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 NewTokensUpdateParamsWithContext

func NewTokensUpdateParamsWithContext(ctx context.Context) *TokensUpdateParams

NewTokensUpdateParamsWithContext creates a new TokensUpdateParams object with the ability to set a context for a request.

func NewTokensUpdateParamsWithHTTPClient

func NewTokensUpdateParamsWithHTTPClient(client *http.Client) *TokensUpdateParams

NewTokensUpdateParamsWithHTTPClient creates a new TokensUpdateParams object with the ability to set a custom HTTPClient for a request.

func NewTokensUpdateParamsWithTimeout

func NewTokensUpdateParamsWithTimeout(timeout time.Duration) *TokensUpdateParams

NewTokensUpdateParamsWithTimeout creates a new TokensUpdateParams object with the ability to set a timeout on a request.

func (*TokensUpdateParams) SetBody

SetBody adds the body to the tokens update params

func (*TokensUpdateParams) SetContext

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

SetContext adds the context to the tokens update params

func (*TokensUpdateParams) SetDefaults

func (o *TokensUpdateParams) SetDefaults()

SetDefaults hydrates default values in the tokens update params (not the query body).

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

func (*TokensUpdateParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the tokens update params

func (*TokensUpdateParams) SetIds

func (o *TokensUpdateParams) SetIds(ids []string)

SetIds adds the ids to the tokens update params

func (*TokensUpdateParams) SetTimeout

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

SetTimeout adds the timeout to the tokens update params

func (*TokensUpdateParams) WithBody

WithBody adds the body to the tokens update params

func (*TokensUpdateParams) WithContext

WithContext adds the context to the tokens update params

func (*TokensUpdateParams) WithDefaults

func (o *TokensUpdateParams) WithDefaults() *TokensUpdateParams

WithDefaults hydrates default values in the tokens update params (not the query body).

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

func (*TokensUpdateParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the tokens update params

func (*TokensUpdateParams) WithIds

func (o *TokensUpdateParams) WithIds(ids []string) *TokensUpdateParams

WithIds adds the ids to the tokens update params

func (*TokensUpdateParams) WithTimeout

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

WithTimeout adds the timeout to the tokens update params

func (*TokensUpdateParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type TokensUpdateReader

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

TokensUpdateReader is a Reader for the TokensUpdate structure.

func (*TokensUpdateReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type TokensUpdateTooManyRequests

type TokensUpdateTooManyRequests struct {

	/* Request limit per minute.
	 */
	XRateLimitLimit int64

	/* The number of requests remaining for the sliding one minute window.
	 */
	XRateLimitRemaining int64

	/* Too many requests, retry after this time (as milliseconds since epoch)
	 */
	XRateLimitRetryAfter int64

	Payload *models.MsaReplyMetaOnly
}
TokensUpdateTooManyRequests describes a response with status code 429, with default header values.

Too Many Requests

func NewTokensUpdateTooManyRequests

func NewTokensUpdateTooManyRequests() *TokensUpdateTooManyRequests

NewTokensUpdateTooManyRequests creates a TokensUpdateTooManyRequests with default headers values

func (*TokensUpdateTooManyRequests) Error

func (*TokensUpdateTooManyRequests) GetPayload

Jump to

Keyboard shortcuts

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