service_accounts

package
v0.0.0-...-4958bdd Latest Latest
Warning

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

Go to latest
Published: Mar 25, 2024 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 service accounts API

func (*Client) CreateServiceAccount

func (a *Client) CreateServiceAccount(params *CreateServiceAccountParams, opts ...ClientOption) (*CreateServiceAccountCreated, error)

func (*Client) CreateToken

func (a *Client) CreateToken(params *CreateTokenParams, opts ...ClientOption) (*CreateTokenOK, error)

func (*Client) DeleteServiceAccount

func (a *Client) DeleteServiceAccount(serviceAccountID int64, opts ...ClientOption) (*DeleteServiceAccountOK, error)

DeleteServiceAccount deletes service account

Required permissions (See note in the [introduction](https://grafana.com/docs/grafana/latest/developers/http_api/serviceaccount/#service-account-api) for an explanation): action: `serviceaccounts:delete` scope: `serviceaccounts:id:1` (single service account)

func (*Client) DeleteServiceAccountWithParams

func (a *Client) DeleteServiceAccountWithParams(params *DeleteServiceAccountParams, opts ...ClientOption) (*DeleteServiceAccountOK, error)

func (*Client) DeleteToken

func (a *Client) DeleteToken(tokenID int64, serviceAccountID int64, opts ...ClientOption) (*DeleteTokenOK, error)

DeleteToken deletes token deletes service account tokens

Required permissions (See note in the [introduction](https://grafana.com/docs/grafana/latest/developers/http_api/serviceaccount/#service-account-api) for an explanation): action: `serviceaccounts:write` scope: `serviceaccounts:id:1` (single service account)

Requires basic authentication and that the authenticated user is a Grafana Admin.

func (*Client) DeleteTokenWithParams

func (a *Client) DeleteTokenWithParams(params *DeleteTokenParams, opts ...ClientOption) (*DeleteTokenOK, error)

func (*Client) ListTokens

func (a *Client) ListTokens(serviceAccountID int64, opts ...ClientOption) (*ListTokensOK, error)

ListTokens gets service account tokens

Required permissions (See note in the [introduction](https://grafana.com/docs/grafana/latest/developers/http_api/serviceaccount/#service-account-api) for an explanation): action: `serviceaccounts:read` scope: `global:serviceaccounts:id:1` (single service account)

Requires basic authentication and that the authenticated user is a Grafana Admin.

func (*Client) ListTokensWithParams

func (a *Client) ListTokensWithParams(params *ListTokensParams, opts ...ClientOption) (*ListTokensOK, error)

func (*Client) RetrieveServiceAccount

func (a *Client) RetrieveServiceAccount(serviceAccountID int64, opts ...ClientOption) (*RetrieveServiceAccountOK, error)

RetrieveServiceAccount gets single serviceaccount by Id

Required permissions (See note in the [introduction](https://grafana.com/docs/grafana/latest/developers/http_api/serviceaccount/#service-account-api) for an explanation): action: `serviceaccounts:read` scope: `serviceaccounts:id:1` (single service account)

func (*Client) RetrieveServiceAccountWithParams

func (a *Client) RetrieveServiceAccountWithParams(params *RetrieveServiceAccountParams, opts ...ClientOption) (*RetrieveServiceAccountOK, error)

func (*Client) SearchOrgServiceAccountsWithPaging

func (a *Client) SearchOrgServiceAccountsWithPaging(params *SearchOrgServiceAccountsWithPagingParams, opts ...ClientOption) (*SearchOrgServiceAccountsWithPagingOK, error)

func (*Client) SetTransport

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

SetTransport changes the transport on the client

func (*Client) UpdateServiceAccount

func (a *Client) UpdateServiceAccount(params *UpdateServiceAccountParams, opts ...ClientOption) (*UpdateServiceAccountOK, error)

type ClientOption

type ClientOption func(*runtime.ClientOperation)

ClientOption is the option for Client methods

func WithAuthInfo

func WithAuthInfo(authInfo runtime.ClientAuthInfoWriter) ClientOption

WithAuthInfo changes the transport on the client

type ClientService

type ClientService interface {
	CreateServiceAccount(params *CreateServiceAccountParams, opts ...ClientOption) (*CreateServiceAccountCreated, error)

	CreateToken(params *CreateTokenParams, opts ...ClientOption) (*CreateTokenOK, error)

	DeleteServiceAccount(serviceAccountID int64, opts ...ClientOption) (*DeleteServiceAccountOK, error)
	DeleteServiceAccountWithParams(params *DeleteServiceAccountParams, opts ...ClientOption) (*DeleteServiceAccountOK, error)

	DeleteToken(tokenID int64, serviceAccountID int64, opts ...ClientOption) (*DeleteTokenOK, error)
	DeleteTokenWithParams(params *DeleteTokenParams, opts ...ClientOption) (*DeleteTokenOK, error)

	ListTokens(serviceAccountID int64, opts ...ClientOption) (*ListTokensOK, error)
	ListTokensWithParams(params *ListTokensParams, opts ...ClientOption) (*ListTokensOK, error)

	RetrieveServiceAccount(serviceAccountID int64, opts ...ClientOption) (*RetrieveServiceAccountOK, error)
	RetrieveServiceAccountWithParams(params *RetrieveServiceAccountParams, opts ...ClientOption) (*RetrieveServiceAccountOK, error)

	SearchOrgServiceAccountsWithPaging(params *SearchOrgServiceAccountsWithPagingParams, opts ...ClientOption) (*SearchOrgServiceAccountsWithPagingOK, error)

	UpdateServiceAccount(params *UpdateServiceAccountParams, opts ...ClientOption) (*UpdateServiceAccountOK, 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 service accounts API client.

type CreateServiceAccountBadRequest

type CreateServiceAccountBadRequest struct {
	Payload *models.ErrorResponseBody
}

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

BadRequestError is returned when the request is invalid and it cannot be processed.

func NewCreateServiceAccountBadRequest

func NewCreateServiceAccountBadRequest() *CreateServiceAccountBadRequest

NewCreateServiceAccountBadRequest creates a CreateServiceAccountBadRequest with default headers values

func (*CreateServiceAccountBadRequest) Code

Code gets the status code for the create service account bad request response

func (*CreateServiceAccountBadRequest) Error

func (*CreateServiceAccountBadRequest) GetPayload

func (*CreateServiceAccountBadRequest) IsClientError

func (o *CreateServiceAccountBadRequest) IsClientError() bool

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

func (*CreateServiceAccountBadRequest) IsCode

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

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

func (*CreateServiceAccountBadRequest) IsRedirect

func (o *CreateServiceAccountBadRequest) IsRedirect() bool

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

func (*CreateServiceAccountBadRequest) IsServerError

func (o *CreateServiceAccountBadRequest) IsServerError() bool

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

func (*CreateServiceAccountBadRequest) IsSuccess

func (o *CreateServiceAccountBadRequest) IsSuccess() bool

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

func (*CreateServiceAccountBadRequest) String

type CreateServiceAccountCreated

type CreateServiceAccountCreated struct {
	Payload *models.ServiceAccountDTO
}

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

(empty)

func NewCreateServiceAccountCreated

func NewCreateServiceAccountCreated() *CreateServiceAccountCreated

NewCreateServiceAccountCreated creates a CreateServiceAccountCreated with default headers values

func (*CreateServiceAccountCreated) Code

func (o *CreateServiceAccountCreated) Code() int

Code gets the status code for the create service account created response

func (*CreateServiceAccountCreated) Error

func (*CreateServiceAccountCreated) GetPayload

func (*CreateServiceAccountCreated) IsClientError

func (o *CreateServiceAccountCreated) IsClientError() bool

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

func (*CreateServiceAccountCreated) IsCode

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

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

func (*CreateServiceAccountCreated) IsRedirect

func (o *CreateServiceAccountCreated) IsRedirect() bool

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

func (*CreateServiceAccountCreated) IsServerError

func (o *CreateServiceAccountCreated) IsServerError() bool

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

func (*CreateServiceAccountCreated) IsSuccess

func (o *CreateServiceAccountCreated) IsSuccess() bool

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

func (*CreateServiceAccountCreated) String

func (o *CreateServiceAccountCreated) String() string

type CreateServiceAccountForbidden

type CreateServiceAccountForbidden struct {
	Payload *models.ErrorResponseBody
}

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

ForbiddenError is returned if the user/token has insufficient permissions to access the requested resource.

func NewCreateServiceAccountForbidden

func NewCreateServiceAccountForbidden() *CreateServiceAccountForbidden

NewCreateServiceAccountForbidden creates a CreateServiceAccountForbidden with default headers values

func (*CreateServiceAccountForbidden) Code

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

func (*CreateServiceAccountForbidden) Error

func (*CreateServiceAccountForbidden) GetPayload

func (*CreateServiceAccountForbidden) IsClientError

func (o *CreateServiceAccountForbidden) IsClientError() bool

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

func (*CreateServiceAccountForbidden) IsCode

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

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

func (*CreateServiceAccountForbidden) IsRedirect

func (o *CreateServiceAccountForbidden) IsRedirect() bool

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

func (*CreateServiceAccountForbidden) IsServerError

func (o *CreateServiceAccountForbidden) IsServerError() bool

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

func (*CreateServiceAccountForbidden) IsSuccess

func (o *CreateServiceAccountForbidden) IsSuccess() bool

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

func (*CreateServiceAccountForbidden) String

type CreateServiceAccountInternalServerError

type CreateServiceAccountInternalServerError struct {
	Payload *models.ErrorResponseBody
}

CreateServiceAccountInternalServerError describes a response with status code 500, with default header values.

InternalServerError is a general error indicating something went wrong internally.

func NewCreateServiceAccountInternalServerError

func NewCreateServiceAccountInternalServerError() *CreateServiceAccountInternalServerError

NewCreateServiceAccountInternalServerError creates a CreateServiceAccountInternalServerError with default headers values

func (*CreateServiceAccountInternalServerError) Code

Code gets the status code for the create service account internal server error response

func (*CreateServiceAccountInternalServerError) Error

func (*CreateServiceAccountInternalServerError) GetPayload

func (*CreateServiceAccountInternalServerError) IsClientError

func (o *CreateServiceAccountInternalServerError) IsClientError() bool

IsClientError returns true when this create service account internal server error response has a 4xx status code

func (*CreateServiceAccountInternalServerError) IsCode

IsCode returns true when this create service account internal server error response a status code equal to that given

func (*CreateServiceAccountInternalServerError) IsRedirect

IsRedirect returns true when this create service account internal server error response has a 3xx status code

func (*CreateServiceAccountInternalServerError) IsServerError

func (o *CreateServiceAccountInternalServerError) IsServerError() bool

IsServerError returns true when this create service account internal server error response has a 5xx status code

func (*CreateServiceAccountInternalServerError) IsSuccess

IsSuccess returns true when this create service account internal server error response has a 2xx status code

func (*CreateServiceAccountInternalServerError) String

type CreateServiceAccountParams

type CreateServiceAccountParams struct {

	// Body.
	Body *models.CreateServiceAccountForm

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

CreateServiceAccountParams contains all the parameters to send to the API endpoint

for the create service account operation.

Typically these are written to a http.Request.

func NewCreateServiceAccountParams

func NewCreateServiceAccountParams() *CreateServiceAccountParams

NewCreateServiceAccountParams creates a new CreateServiceAccountParams 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 NewCreateServiceAccountParamsWithContext

func NewCreateServiceAccountParamsWithContext(ctx context.Context) *CreateServiceAccountParams

NewCreateServiceAccountParamsWithContext creates a new CreateServiceAccountParams object with the ability to set a context for a request.

func NewCreateServiceAccountParamsWithHTTPClient

func NewCreateServiceAccountParamsWithHTTPClient(client *http.Client) *CreateServiceAccountParams

NewCreateServiceAccountParamsWithHTTPClient creates a new CreateServiceAccountParams object with the ability to set a custom HTTPClient for a request.

func NewCreateServiceAccountParamsWithTimeout

func NewCreateServiceAccountParamsWithTimeout(timeout time.Duration) *CreateServiceAccountParams

NewCreateServiceAccountParamsWithTimeout creates a new CreateServiceAccountParams object with the ability to set a timeout on a request.

func (*CreateServiceAccountParams) SetBody

SetBody adds the body to the create service account params

func (*CreateServiceAccountParams) SetContext

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

SetContext adds the context to the create service account params

func (*CreateServiceAccountParams) SetDefaults

func (o *CreateServiceAccountParams) SetDefaults()

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

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

func (*CreateServiceAccountParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the create service account params

func (*CreateServiceAccountParams) SetTimeout

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

SetTimeout adds the timeout to the create service account params

func (*CreateServiceAccountParams) WithBody

WithBody adds the body to the create service account params

func (*CreateServiceAccountParams) WithContext

WithContext adds the context to the create service account params

func (*CreateServiceAccountParams) WithDefaults

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

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

func (*CreateServiceAccountParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the create service account params

func (*CreateServiceAccountParams) WithTimeout

WithTimeout adds the timeout to the create service account params

func (*CreateServiceAccountParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type CreateServiceAccountReader

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

CreateServiceAccountReader is a Reader for the CreateServiceAccount structure.

func (*CreateServiceAccountReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type CreateServiceAccountUnauthorized

type CreateServiceAccountUnauthorized struct {
	Payload *models.ErrorResponseBody
}

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

UnauthorizedError is returned when the request is not authenticated.

func NewCreateServiceAccountUnauthorized

func NewCreateServiceAccountUnauthorized() *CreateServiceAccountUnauthorized

NewCreateServiceAccountUnauthorized creates a CreateServiceAccountUnauthorized with default headers values

func (*CreateServiceAccountUnauthorized) Code

Code gets the status code for the create service account unauthorized response

func (*CreateServiceAccountUnauthorized) Error

func (*CreateServiceAccountUnauthorized) GetPayload

func (*CreateServiceAccountUnauthorized) IsClientError

func (o *CreateServiceAccountUnauthorized) IsClientError() bool

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

func (*CreateServiceAccountUnauthorized) IsCode

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

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

func (*CreateServiceAccountUnauthorized) IsRedirect

func (o *CreateServiceAccountUnauthorized) IsRedirect() bool

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

func (*CreateServiceAccountUnauthorized) IsServerError

func (o *CreateServiceAccountUnauthorized) IsServerError() bool

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

func (*CreateServiceAccountUnauthorized) IsSuccess

func (o *CreateServiceAccountUnauthorized) IsSuccess() bool

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

func (*CreateServiceAccountUnauthorized) String

type CreateTokenBadRequest

type CreateTokenBadRequest struct {
	Payload *models.ErrorResponseBody
}

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

BadRequestError is returned when the request is invalid and it cannot be processed.

func NewCreateTokenBadRequest

func NewCreateTokenBadRequest() *CreateTokenBadRequest

NewCreateTokenBadRequest creates a CreateTokenBadRequest with default headers values

func (*CreateTokenBadRequest) Code

func (o *CreateTokenBadRequest) Code() int

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

func (*CreateTokenBadRequest) Error

func (o *CreateTokenBadRequest) Error() string

func (*CreateTokenBadRequest) GetPayload

func (*CreateTokenBadRequest) IsClientError

func (o *CreateTokenBadRequest) IsClientError() bool

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

func (*CreateTokenBadRequest) IsCode

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

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

func (*CreateTokenBadRequest) IsRedirect

func (o *CreateTokenBadRequest) IsRedirect() bool

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

func (*CreateTokenBadRequest) IsServerError

func (o *CreateTokenBadRequest) IsServerError() bool

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

func (*CreateTokenBadRequest) IsSuccess

func (o *CreateTokenBadRequest) IsSuccess() bool

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

func (*CreateTokenBadRequest) String

func (o *CreateTokenBadRequest) String() string

type CreateTokenConflict

type CreateTokenConflict struct {
	Payload *models.ErrorResponseBody
}

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

ConflictError

func NewCreateTokenConflict

func NewCreateTokenConflict() *CreateTokenConflict

NewCreateTokenConflict creates a CreateTokenConflict with default headers values

func (*CreateTokenConflict) Code

func (o *CreateTokenConflict) Code() int

Code gets the status code for the create token conflict response

func (*CreateTokenConflict) Error

func (o *CreateTokenConflict) Error() string

func (*CreateTokenConflict) GetPayload

func (o *CreateTokenConflict) GetPayload() *models.ErrorResponseBody

func (*CreateTokenConflict) IsClientError

func (o *CreateTokenConflict) IsClientError() bool

IsClientError returns true when this create token conflict response has a 4xx status code

func (*CreateTokenConflict) IsCode

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

IsCode returns true when this create token conflict response a status code equal to that given

func (*CreateTokenConflict) IsRedirect

func (o *CreateTokenConflict) IsRedirect() bool

IsRedirect returns true when this create token conflict response has a 3xx status code

func (*CreateTokenConflict) IsServerError

func (o *CreateTokenConflict) IsServerError() bool

IsServerError returns true when this create token conflict response has a 5xx status code

func (*CreateTokenConflict) IsSuccess

func (o *CreateTokenConflict) IsSuccess() bool

IsSuccess returns true when this create token conflict response has a 2xx status code

func (*CreateTokenConflict) String

func (o *CreateTokenConflict) String() string

type CreateTokenForbidden

type CreateTokenForbidden struct {
	Payload *models.ErrorResponseBody
}

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

ForbiddenError is returned if the user/token has insufficient permissions to access the requested resource.

func NewCreateTokenForbidden

func NewCreateTokenForbidden() *CreateTokenForbidden

NewCreateTokenForbidden creates a CreateTokenForbidden with default headers values

func (*CreateTokenForbidden) Code

func (o *CreateTokenForbidden) Code() int

Code gets the status code for the create token forbidden response

func (*CreateTokenForbidden) Error

func (o *CreateTokenForbidden) Error() string

func (*CreateTokenForbidden) GetPayload

func (*CreateTokenForbidden) IsClientError

func (o *CreateTokenForbidden) IsClientError() bool

IsClientError returns true when this create token forbidden response has a 4xx status code

func (*CreateTokenForbidden) IsCode

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

IsCode returns true when this create token forbidden response a status code equal to that given

func (*CreateTokenForbidden) IsRedirect

func (o *CreateTokenForbidden) IsRedirect() bool

IsRedirect returns true when this create token forbidden response has a 3xx status code

func (*CreateTokenForbidden) IsServerError

func (o *CreateTokenForbidden) IsServerError() bool

IsServerError returns true when this create token forbidden response has a 5xx status code

func (*CreateTokenForbidden) IsSuccess

func (o *CreateTokenForbidden) IsSuccess() bool

IsSuccess returns true when this create token forbidden response has a 2xx status code

func (*CreateTokenForbidden) String

func (o *CreateTokenForbidden) String() string

type CreateTokenInternalServerError

type CreateTokenInternalServerError struct {
	Payload *models.ErrorResponseBody
}

CreateTokenInternalServerError describes a response with status code 500, with default header values.

InternalServerError is a general error indicating something went wrong internally.

func NewCreateTokenInternalServerError

func NewCreateTokenInternalServerError() *CreateTokenInternalServerError

NewCreateTokenInternalServerError creates a CreateTokenInternalServerError with default headers values

func (*CreateTokenInternalServerError) Code

Code gets the status code for the create token internal server error response

func (*CreateTokenInternalServerError) Error

func (*CreateTokenInternalServerError) GetPayload

func (*CreateTokenInternalServerError) IsClientError

func (o *CreateTokenInternalServerError) IsClientError() bool

IsClientError returns true when this create token internal server error response has a 4xx status code

func (*CreateTokenInternalServerError) IsCode

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

IsCode returns true when this create token internal server error response a status code equal to that given

func (*CreateTokenInternalServerError) IsRedirect

func (o *CreateTokenInternalServerError) IsRedirect() bool

IsRedirect returns true when this create token internal server error response has a 3xx status code

func (*CreateTokenInternalServerError) IsServerError

func (o *CreateTokenInternalServerError) IsServerError() bool

IsServerError returns true when this create token internal server error response has a 5xx status code

func (*CreateTokenInternalServerError) IsSuccess

func (o *CreateTokenInternalServerError) IsSuccess() bool

IsSuccess returns true when this create token internal server error response has a 2xx status code

func (*CreateTokenInternalServerError) String

type CreateTokenNotFound

type CreateTokenNotFound struct {
	Payload *models.ErrorResponseBody
}

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

NotFoundError is returned when the requested resource was not found.

func NewCreateTokenNotFound

func NewCreateTokenNotFound() *CreateTokenNotFound

NewCreateTokenNotFound creates a CreateTokenNotFound with default headers values

func (*CreateTokenNotFound) Code

func (o *CreateTokenNotFound) Code() int

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

func (*CreateTokenNotFound) Error

func (o *CreateTokenNotFound) Error() string

func (*CreateTokenNotFound) GetPayload

func (o *CreateTokenNotFound) GetPayload() *models.ErrorResponseBody

func (*CreateTokenNotFound) IsClientError

func (o *CreateTokenNotFound) IsClientError() bool

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

func (*CreateTokenNotFound) IsCode

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

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

func (*CreateTokenNotFound) IsRedirect

func (o *CreateTokenNotFound) IsRedirect() bool

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

func (*CreateTokenNotFound) IsServerError

func (o *CreateTokenNotFound) IsServerError() bool

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

func (*CreateTokenNotFound) IsSuccess

func (o *CreateTokenNotFound) IsSuccess() bool

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

func (*CreateTokenNotFound) String

func (o *CreateTokenNotFound) String() string

type CreateTokenOK

type CreateTokenOK struct {
	Payload *models.NewAPIKeyResult
}

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

(empty)

func NewCreateTokenOK

func NewCreateTokenOK() *CreateTokenOK

NewCreateTokenOK creates a CreateTokenOK with default headers values

func (*CreateTokenOK) Code

func (o *CreateTokenOK) Code() int

Code gets the status code for the create token Ok response

func (*CreateTokenOK) Error

func (o *CreateTokenOK) Error() string

func (*CreateTokenOK) GetPayload

func (o *CreateTokenOK) GetPayload() *models.NewAPIKeyResult

func (*CreateTokenOK) IsClientError

func (o *CreateTokenOK) IsClientError() bool

IsClientError returns true when this create token Ok response has a 4xx status code

func (*CreateTokenOK) IsCode

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

IsCode returns true when this create token Ok response a status code equal to that given

func (*CreateTokenOK) IsRedirect

func (o *CreateTokenOK) IsRedirect() bool

IsRedirect returns true when this create token Ok response has a 3xx status code

func (*CreateTokenOK) IsServerError

func (o *CreateTokenOK) IsServerError() bool

IsServerError returns true when this create token Ok response has a 5xx status code

func (*CreateTokenOK) IsSuccess

func (o *CreateTokenOK) IsSuccess() bool

IsSuccess returns true when this create token Ok response has a 2xx status code

func (*CreateTokenOK) String

func (o *CreateTokenOK) String() string

type CreateTokenParams

type CreateTokenParams struct {

	// Body.
	Body *models.AddServiceAccountTokenCommand

	// ServiceAccountID.
	//
	// Format: int64
	ServiceAccountID int64

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

CreateTokenParams contains all the parameters to send to the API endpoint

for the create token operation.

Typically these are written to a http.Request.

func NewCreateTokenParams

func NewCreateTokenParams() *CreateTokenParams

NewCreateTokenParams creates a new CreateTokenParams 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 NewCreateTokenParamsWithContext

func NewCreateTokenParamsWithContext(ctx context.Context) *CreateTokenParams

NewCreateTokenParamsWithContext creates a new CreateTokenParams object with the ability to set a context for a request.

func NewCreateTokenParamsWithHTTPClient

func NewCreateTokenParamsWithHTTPClient(client *http.Client) *CreateTokenParams

NewCreateTokenParamsWithHTTPClient creates a new CreateTokenParams object with the ability to set a custom HTTPClient for a request.

func NewCreateTokenParamsWithTimeout

func NewCreateTokenParamsWithTimeout(timeout time.Duration) *CreateTokenParams

NewCreateTokenParamsWithTimeout creates a new CreateTokenParams object with the ability to set a timeout on a request.

func (*CreateTokenParams) SetBody

SetBody adds the body to the create token params

func (*CreateTokenParams) SetContext

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

SetContext adds the context to the create token params

func (*CreateTokenParams) SetDefaults

func (o *CreateTokenParams) SetDefaults()

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

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

func (*CreateTokenParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the create token params

func (*CreateTokenParams) SetServiceAccountID

func (o *CreateTokenParams) SetServiceAccountID(serviceAccountID int64)

SetServiceAccountID adds the serviceAccountId to the create token params

func (*CreateTokenParams) SetTimeout

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

SetTimeout adds the timeout to the create token params

func (*CreateTokenParams) WithBody

WithBody adds the body to the create token params

func (*CreateTokenParams) WithContext

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

WithContext adds the context to the create token params

func (*CreateTokenParams) WithDefaults

func (o *CreateTokenParams) WithDefaults() *CreateTokenParams

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

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

func (*CreateTokenParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the create token params

func (*CreateTokenParams) WithServiceAccountID

func (o *CreateTokenParams) WithServiceAccountID(serviceAccountID int64) *CreateTokenParams

WithServiceAccountID adds the serviceAccountID to the create token params

func (*CreateTokenParams) WithTimeout

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

WithTimeout adds the timeout to the create token params

func (*CreateTokenParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type CreateTokenReader

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

CreateTokenReader is a Reader for the CreateToken structure.

func (*CreateTokenReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type CreateTokenUnauthorized

type CreateTokenUnauthorized struct {
	Payload *models.ErrorResponseBody
}

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

UnauthorizedError is returned when the request is not authenticated.

func NewCreateTokenUnauthorized

func NewCreateTokenUnauthorized() *CreateTokenUnauthorized

NewCreateTokenUnauthorized creates a CreateTokenUnauthorized with default headers values

func (*CreateTokenUnauthorized) Code

func (o *CreateTokenUnauthorized) Code() int

Code gets the status code for the create token unauthorized response

func (*CreateTokenUnauthorized) Error

func (o *CreateTokenUnauthorized) Error() string

func (*CreateTokenUnauthorized) GetPayload

func (*CreateTokenUnauthorized) IsClientError

func (o *CreateTokenUnauthorized) IsClientError() bool

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

func (*CreateTokenUnauthorized) IsCode

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

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

func (*CreateTokenUnauthorized) IsRedirect

func (o *CreateTokenUnauthorized) IsRedirect() bool

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

func (*CreateTokenUnauthorized) IsServerError

func (o *CreateTokenUnauthorized) IsServerError() bool

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

func (*CreateTokenUnauthorized) IsSuccess

func (o *CreateTokenUnauthorized) IsSuccess() bool

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

func (*CreateTokenUnauthorized) String

func (o *CreateTokenUnauthorized) String() string

type DeleteServiceAccountBadRequest

type DeleteServiceAccountBadRequest struct {
	Payload *models.ErrorResponseBody
}

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

BadRequestError is returned when the request is invalid and it cannot be processed.

func NewDeleteServiceAccountBadRequest

func NewDeleteServiceAccountBadRequest() *DeleteServiceAccountBadRequest

NewDeleteServiceAccountBadRequest creates a DeleteServiceAccountBadRequest with default headers values

func (*DeleteServiceAccountBadRequest) Code

Code gets the status code for the delete service account bad request response

func (*DeleteServiceAccountBadRequest) Error

func (*DeleteServiceAccountBadRequest) GetPayload

func (*DeleteServiceAccountBadRequest) IsClientError

func (o *DeleteServiceAccountBadRequest) IsClientError() bool

IsClientError returns true when this delete service account bad request response has a 4xx status code

func (*DeleteServiceAccountBadRequest) IsCode

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

IsCode returns true when this delete service account bad request response a status code equal to that given

func (*DeleteServiceAccountBadRequest) IsRedirect

func (o *DeleteServiceAccountBadRequest) IsRedirect() bool

IsRedirect returns true when this delete service account bad request response has a 3xx status code

func (*DeleteServiceAccountBadRequest) IsServerError

func (o *DeleteServiceAccountBadRequest) IsServerError() bool

IsServerError returns true when this delete service account bad request response has a 5xx status code

func (*DeleteServiceAccountBadRequest) IsSuccess

func (o *DeleteServiceAccountBadRequest) IsSuccess() bool

IsSuccess returns true when this delete service account bad request response has a 2xx status code

func (*DeleteServiceAccountBadRequest) String

type DeleteServiceAccountForbidden

type DeleteServiceAccountForbidden struct {
	Payload *models.ErrorResponseBody
}

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

ForbiddenError is returned if the user/token has insufficient permissions to access the requested resource.

func NewDeleteServiceAccountForbidden

func NewDeleteServiceAccountForbidden() *DeleteServiceAccountForbidden

NewDeleteServiceAccountForbidden creates a DeleteServiceAccountForbidden with default headers values

func (*DeleteServiceAccountForbidden) Code

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

func (*DeleteServiceAccountForbidden) Error

func (*DeleteServiceAccountForbidden) GetPayload

func (*DeleteServiceAccountForbidden) IsClientError

func (o *DeleteServiceAccountForbidden) IsClientError() bool

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

func (*DeleteServiceAccountForbidden) IsCode

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

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

func (*DeleteServiceAccountForbidden) IsRedirect

func (o *DeleteServiceAccountForbidden) IsRedirect() bool

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

func (*DeleteServiceAccountForbidden) IsServerError

func (o *DeleteServiceAccountForbidden) IsServerError() bool

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

func (*DeleteServiceAccountForbidden) IsSuccess

func (o *DeleteServiceAccountForbidden) IsSuccess() bool

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

func (*DeleteServiceAccountForbidden) String

type DeleteServiceAccountInternalServerError

type DeleteServiceAccountInternalServerError struct {
	Payload *models.ErrorResponseBody
}

DeleteServiceAccountInternalServerError describes a response with status code 500, with default header values.

InternalServerError is a general error indicating something went wrong internally.

func NewDeleteServiceAccountInternalServerError

func NewDeleteServiceAccountInternalServerError() *DeleteServiceAccountInternalServerError

NewDeleteServiceAccountInternalServerError creates a DeleteServiceAccountInternalServerError with default headers values

func (*DeleteServiceAccountInternalServerError) Code

Code gets the status code for the delete service account internal server error response

func (*DeleteServiceAccountInternalServerError) Error

func (*DeleteServiceAccountInternalServerError) GetPayload

func (*DeleteServiceAccountInternalServerError) IsClientError

func (o *DeleteServiceAccountInternalServerError) IsClientError() bool

IsClientError returns true when this delete service account internal server error response has a 4xx status code

func (*DeleteServiceAccountInternalServerError) IsCode

IsCode returns true when this delete service account internal server error response a status code equal to that given

func (*DeleteServiceAccountInternalServerError) IsRedirect

IsRedirect returns true when this delete service account internal server error response has a 3xx status code

func (*DeleteServiceAccountInternalServerError) IsServerError

func (o *DeleteServiceAccountInternalServerError) IsServerError() bool

IsServerError returns true when this delete service account internal server error response has a 5xx status code

func (*DeleteServiceAccountInternalServerError) IsSuccess

IsSuccess returns true when this delete service account internal server error response has a 2xx status code

func (*DeleteServiceAccountInternalServerError) String

type DeleteServiceAccountOK

type DeleteServiceAccountOK struct {
	Payload *models.SuccessResponseBody
}

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

An OKResponse is returned if the request was successful.

func NewDeleteServiceAccountOK

func NewDeleteServiceAccountOK() *DeleteServiceAccountOK

NewDeleteServiceAccountOK creates a DeleteServiceAccountOK with default headers values

func (*DeleteServiceAccountOK) Code

func (o *DeleteServiceAccountOK) Code() int

Code gets the status code for the delete service account Ok response

func (*DeleteServiceAccountOK) Error

func (o *DeleteServiceAccountOK) Error() string

func (*DeleteServiceAccountOK) GetPayload

func (*DeleteServiceAccountOK) IsClientError

func (o *DeleteServiceAccountOK) IsClientError() bool

IsClientError returns true when this delete service account Ok response has a 4xx status code

func (*DeleteServiceAccountOK) IsCode

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

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

func (*DeleteServiceAccountOK) IsRedirect

func (o *DeleteServiceAccountOK) IsRedirect() bool

IsRedirect returns true when this delete service account Ok response has a 3xx status code

func (*DeleteServiceAccountOK) IsServerError

func (o *DeleteServiceAccountOK) IsServerError() bool

IsServerError returns true when this delete service account Ok response has a 5xx status code

func (*DeleteServiceAccountOK) IsSuccess

func (o *DeleteServiceAccountOK) IsSuccess() bool

IsSuccess returns true when this delete service account Ok response has a 2xx status code

func (*DeleteServiceAccountOK) String

func (o *DeleteServiceAccountOK) String() string

type DeleteServiceAccountParams

type DeleteServiceAccountParams struct {

	// ServiceAccountID.
	//
	// Format: int64
	ServiceAccountID int64

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

DeleteServiceAccountParams contains all the parameters to send to the API endpoint

for the delete service account operation.

Typically these are written to a http.Request.

func NewDeleteServiceAccountParams

func NewDeleteServiceAccountParams() *DeleteServiceAccountParams

NewDeleteServiceAccountParams creates a new DeleteServiceAccountParams 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 NewDeleteServiceAccountParamsWithContext

func NewDeleteServiceAccountParamsWithContext(ctx context.Context) *DeleteServiceAccountParams

NewDeleteServiceAccountParamsWithContext creates a new DeleteServiceAccountParams object with the ability to set a context for a request.

func NewDeleteServiceAccountParamsWithHTTPClient

func NewDeleteServiceAccountParamsWithHTTPClient(client *http.Client) *DeleteServiceAccountParams

NewDeleteServiceAccountParamsWithHTTPClient creates a new DeleteServiceAccountParams object with the ability to set a custom HTTPClient for a request.

func NewDeleteServiceAccountParamsWithTimeout

func NewDeleteServiceAccountParamsWithTimeout(timeout time.Duration) *DeleteServiceAccountParams

NewDeleteServiceAccountParamsWithTimeout creates a new DeleteServiceAccountParams object with the ability to set a timeout on a request.

func (*DeleteServiceAccountParams) SetContext

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

SetContext adds the context to the delete service account params

func (*DeleteServiceAccountParams) SetDefaults

func (o *DeleteServiceAccountParams) SetDefaults()

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

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

func (*DeleteServiceAccountParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the delete service account params

func (*DeleteServiceAccountParams) SetServiceAccountID

func (o *DeleteServiceAccountParams) SetServiceAccountID(serviceAccountID int64)

SetServiceAccountID adds the serviceAccountId to the delete service account params

func (*DeleteServiceAccountParams) SetTimeout

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

SetTimeout adds the timeout to the delete service account params

func (*DeleteServiceAccountParams) WithContext

WithContext adds the context to the delete service account params

func (*DeleteServiceAccountParams) WithDefaults

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

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

func (*DeleteServiceAccountParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the delete service account params

func (*DeleteServiceAccountParams) WithServiceAccountID

func (o *DeleteServiceAccountParams) WithServiceAccountID(serviceAccountID int64) *DeleteServiceAccountParams

WithServiceAccountID adds the serviceAccountID to the delete service account params

func (*DeleteServiceAccountParams) WithTimeout

WithTimeout adds the timeout to the delete service account params

func (*DeleteServiceAccountParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type DeleteServiceAccountReader

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

DeleteServiceAccountReader is a Reader for the DeleteServiceAccount structure.

func (*DeleteServiceAccountReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type DeleteServiceAccountUnauthorized

type DeleteServiceAccountUnauthorized struct {
	Payload *models.ErrorResponseBody
}

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

UnauthorizedError is returned when the request is not authenticated.

func NewDeleteServiceAccountUnauthorized

func NewDeleteServiceAccountUnauthorized() *DeleteServiceAccountUnauthorized

NewDeleteServiceAccountUnauthorized creates a DeleteServiceAccountUnauthorized with default headers values

func (*DeleteServiceAccountUnauthorized) Code

Code gets the status code for the delete service account unauthorized response

func (*DeleteServiceAccountUnauthorized) Error

func (*DeleteServiceAccountUnauthorized) GetPayload

func (*DeleteServiceAccountUnauthorized) IsClientError

func (o *DeleteServiceAccountUnauthorized) IsClientError() bool

IsClientError returns true when this delete service account unauthorized response has a 4xx status code

func (*DeleteServiceAccountUnauthorized) IsCode

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

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

func (*DeleteServiceAccountUnauthorized) IsRedirect

func (o *DeleteServiceAccountUnauthorized) IsRedirect() bool

IsRedirect returns true when this delete service account unauthorized response has a 3xx status code

func (*DeleteServiceAccountUnauthorized) IsServerError

func (o *DeleteServiceAccountUnauthorized) IsServerError() bool

IsServerError returns true when this delete service account unauthorized response has a 5xx status code

func (*DeleteServiceAccountUnauthorized) IsSuccess

func (o *DeleteServiceAccountUnauthorized) IsSuccess() bool

IsSuccess returns true when this delete service account unauthorized response has a 2xx status code

func (*DeleteServiceAccountUnauthorized) String

type DeleteTokenBadRequest

type DeleteTokenBadRequest struct {
	Payload *models.ErrorResponseBody
}

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

BadRequestError is returned when the request is invalid and it cannot be processed.

func NewDeleteTokenBadRequest

func NewDeleteTokenBadRequest() *DeleteTokenBadRequest

NewDeleteTokenBadRequest creates a DeleteTokenBadRequest with default headers values

func (*DeleteTokenBadRequest) Code

func (o *DeleteTokenBadRequest) Code() int

Code gets the status code for the delete token bad request response

func (*DeleteTokenBadRequest) Error

func (o *DeleteTokenBadRequest) Error() string

func (*DeleteTokenBadRequest) GetPayload

func (*DeleteTokenBadRequest) IsClientError

func (o *DeleteTokenBadRequest) IsClientError() bool

IsClientError returns true when this delete token bad request response has a 4xx status code

func (*DeleteTokenBadRequest) IsCode

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

IsCode returns true when this delete token bad request response a status code equal to that given

func (*DeleteTokenBadRequest) IsRedirect

func (o *DeleteTokenBadRequest) IsRedirect() bool

IsRedirect returns true when this delete token bad request response has a 3xx status code

func (*DeleteTokenBadRequest) IsServerError

func (o *DeleteTokenBadRequest) IsServerError() bool

IsServerError returns true when this delete token bad request response has a 5xx status code

func (*DeleteTokenBadRequest) IsSuccess

func (o *DeleteTokenBadRequest) IsSuccess() bool

IsSuccess returns true when this delete token bad request response has a 2xx status code

func (*DeleteTokenBadRequest) String

func (o *DeleteTokenBadRequest) String() string

type DeleteTokenForbidden

type DeleteTokenForbidden struct {
	Payload *models.ErrorResponseBody
}

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

ForbiddenError is returned if the user/token has insufficient permissions to access the requested resource.

func NewDeleteTokenForbidden

func NewDeleteTokenForbidden() *DeleteTokenForbidden

NewDeleteTokenForbidden creates a DeleteTokenForbidden with default headers values

func (*DeleteTokenForbidden) Code

func (o *DeleteTokenForbidden) Code() int

Code gets the status code for the delete token forbidden response

func (*DeleteTokenForbidden) Error

func (o *DeleteTokenForbidden) Error() string

func (*DeleteTokenForbidden) GetPayload

func (*DeleteTokenForbidden) IsClientError

func (o *DeleteTokenForbidden) IsClientError() bool

IsClientError returns true when this delete token forbidden response has a 4xx status code

func (*DeleteTokenForbidden) IsCode

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

IsCode returns true when this delete token forbidden response a status code equal to that given

func (*DeleteTokenForbidden) IsRedirect

func (o *DeleteTokenForbidden) IsRedirect() bool

IsRedirect returns true when this delete token forbidden response has a 3xx status code

func (*DeleteTokenForbidden) IsServerError

func (o *DeleteTokenForbidden) IsServerError() bool

IsServerError returns true when this delete token forbidden response has a 5xx status code

func (*DeleteTokenForbidden) IsSuccess

func (o *DeleteTokenForbidden) IsSuccess() bool

IsSuccess returns true when this delete token forbidden response has a 2xx status code

func (*DeleteTokenForbidden) String

func (o *DeleteTokenForbidden) String() string

type DeleteTokenInternalServerError

type DeleteTokenInternalServerError struct {
	Payload *models.ErrorResponseBody
}

DeleteTokenInternalServerError describes a response with status code 500, with default header values.

InternalServerError is a general error indicating something went wrong internally.

func NewDeleteTokenInternalServerError

func NewDeleteTokenInternalServerError() *DeleteTokenInternalServerError

NewDeleteTokenInternalServerError creates a DeleteTokenInternalServerError with default headers values

func (*DeleteTokenInternalServerError) Code

Code gets the status code for the delete token internal server error response

func (*DeleteTokenInternalServerError) Error

func (*DeleteTokenInternalServerError) GetPayload

func (*DeleteTokenInternalServerError) IsClientError

func (o *DeleteTokenInternalServerError) IsClientError() bool

IsClientError returns true when this delete token internal server error response has a 4xx status code

func (*DeleteTokenInternalServerError) IsCode

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

IsCode returns true when this delete token internal server error response a status code equal to that given

func (*DeleteTokenInternalServerError) IsRedirect

func (o *DeleteTokenInternalServerError) IsRedirect() bool

IsRedirect returns true when this delete token internal server error response has a 3xx status code

func (*DeleteTokenInternalServerError) IsServerError

func (o *DeleteTokenInternalServerError) IsServerError() bool

IsServerError returns true when this delete token internal server error response has a 5xx status code

func (*DeleteTokenInternalServerError) IsSuccess

func (o *DeleteTokenInternalServerError) IsSuccess() bool

IsSuccess returns true when this delete token internal server error response has a 2xx status code

func (*DeleteTokenInternalServerError) String

type DeleteTokenNotFound

type DeleteTokenNotFound struct {
	Payload *models.ErrorResponseBody
}

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

NotFoundError is returned when the requested resource was not found.

func NewDeleteTokenNotFound

func NewDeleteTokenNotFound() *DeleteTokenNotFound

NewDeleteTokenNotFound creates a DeleteTokenNotFound with default headers values

func (*DeleteTokenNotFound) Code

func (o *DeleteTokenNotFound) Code() int

Code gets the status code for the delete token not found response

func (*DeleteTokenNotFound) Error

func (o *DeleteTokenNotFound) Error() string

func (*DeleteTokenNotFound) GetPayload

func (o *DeleteTokenNotFound) GetPayload() *models.ErrorResponseBody

func (*DeleteTokenNotFound) IsClientError

func (o *DeleteTokenNotFound) IsClientError() bool

IsClientError returns true when this delete token not found response has a 4xx status code

func (*DeleteTokenNotFound) IsCode

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

IsCode returns true when this delete token not found response a status code equal to that given

func (*DeleteTokenNotFound) IsRedirect

func (o *DeleteTokenNotFound) IsRedirect() bool

IsRedirect returns true when this delete token not found response has a 3xx status code

func (*DeleteTokenNotFound) IsServerError

func (o *DeleteTokenNotFound) IsServerError() bool

IsServerError returns true when this delete token not found response has a 5xx status code

func (*DeleteTokenNotFound) IsSuccess

func (o *DeleteTokenNotFound) IsSuccess() bool

IsSuccess returns true when this delete token not found response has a 2xx status code

func (*DeleteTokenNotFound) String

func (o *DeleteTokenNotFound) String() string

type DeleteTokenOK

type DeleteTokenOK struct {
	Payload *models.SuccessResponseBody
}

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

An OKResponse is returned if the request was successful.

func NewDeleteTokenOK

func NewDeleteTokenOK() *DeleteTokenOK

NewDeleteTokenOK creates a DeleteTokenOK with default headers values

func (*DeleteTokenOK) Code

func (o *DeleteTokenOK) Code() int

Code gets the status code for the delete token Ok response

func (*DeleteTokenOK) Error

func (o *DeleteTokenOK) Error() string

func (*DeleteTokenOK) GetPayload

func (o *DeleteTokenOK) GetPayload() *models.SuccessResponseBody

func (*DeleteTokenOK) IsClientError

func (o *DeleteTokenOK) IsClientError() bool

IsClientError returns true when this delete token Ok response has a 4xx status code

func (*DeleteTokenOK) IsCode

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

IsCode returns true when this delete token Ok response a status code equal to that given

func (*DeleteTokenOK) IsRedirect

func (o *DeleteTokenOK) IsRedirect() bool

IsRedirect returns true when this delete token Ok response has a 3xx status code

func (*DeleteTokenOK) IsServerError

func (o *DeleteTokenOK) IsServerError() bool

IsServerError returns true when this delete token Ok response has a 5xx status code

func (*DeleteTokenOK) IsSuccess

func (o *DeleteTokenOK) IsSuccess() bool

IsSuccess returns true when this delete token Ok response has a 2xx status code

func (*DeleteTokenOK) String

func (o *DeleteTokenOK) String() string

type DeleteTokenParams

type DeleteTokenParams struct {

	// ServiceAccountID.
	//
	// Format: int64
	ServiceAccountID int64

	// TokenID.
	//
	// Format: int64
	TokenID int64

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

DeleteTokenParams contains all the parameters to send to the API endpoint

for the delete token operation.

Typically these are written to a http.Request.

func NewDeleteTokenParams

func NewDeleteTokenParams() *DeleteTokenParams

NewDeleteTokenParams creates a new DeleteTokenParams 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 NewDeleteTokenParamsWithContext

func NewDeleteTokenParamsWithContext(ctx context.Context) *DeleteTokenParams

NewDeleteTokenParamsWithContext creates a new DeleteTokenParams object with the ability to set a context for a request.

func NewDeleteTokenParamsWithHTTPClient

func NewDeleteTokenParamsWithHTTPClient(client *http.Client) *DeleteTokenParams

NewDeleteTokenParamsWithHTTPClient creates a new DeleteTokenParams object with the ability to set a custom HTTPClient for a request.

func NewDeleteTokenParamsWithTimeout

func NewDeleteTokenParamsWithTimeout(timeout time.Duration) *DeleteTokenParams

NewDeleteTokenParamsWithTimeout creates a new DeleteTokenParams object with the ability to set a timeout on a request.

func (*DeleteTokenParams) SetContext

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

SetContext adds the context to the delete token params

func (*DeleteTokenParams) SetDefaults

func (o *DeleteTokenParams) SetDefaults()

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

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

func (*DeleteTokenParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the delete token params

func (*DeleteTokenParams) SetServiceAccountID

func (o *DeleteTokenParams) SetServiceAccountID(serviceAccountID int64)

SetServiceAccountID adds the serviceAccountId to the delete token params

func (*DeleteTokenParams) SetTimeout

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

SetTimeout adds the timeout to the delete token params

func (*DeleteTokenParams) SetTokenID

func (o *DeleteTokenParams) SetTokenID(tokenID int64)

SetTokenID adds the tokenId to the delete token params

func (*DeleteTokenParams) WithContext

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

WithContext adds the context to the delete token params

func (*DeleteTokenParams) WithDefaults

func (o *DeleteTokenParams) WithDefaults() *DeleteTokenParams

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

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

func (*DeleteTokenParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the delete token params

func (*DeleteTokenParams) WithServiceAccountID

func (o *DeleteTokenParams) WithServiceAccountID(serviceAccountID int64) *DeleteTokenParams

WithServiceAccountID adds the serviceAccountID to the delete token params

func (*DeleteTokenParams) WithTimeout

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

WithTimeout adds the timeout to the delete token params

func (*DeleteTokenParams) WithTokenID

func (o *DeleteTokenParams) WithTokenID(tokenID int64) *DeleteTokenParams

WithTokenID adds the tokenID to the delete token params

func (*DeleteTokenParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type DeleteTokenReader

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

DeleteTokenReader is a Reader for the DeleteToken structure.

func (*DeleteTokenReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type DeleteTokenUnauthorized

type DeleteTokenUnauthorized struct {
	Payload *models.ErrorResponseBody
}

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

UnauthorizedError is returned when the request is not authenticated.

func NewDeleteTokenUnauthorized

func NewDeleteTokenUnauthorized() *DeleteTokenUnauthorized

NewDeleteTokenUnauthorized creates a DeleteTokenUnauthorized with default headers values

func (*DeleteTokenUnauthorized) Code

func (o *DeleteTokenUnauthorized) Code() int

Code gets the status code for the delete token unauthorized response

func (*DeleteTokenUnauthorized) Error

func (o *DeleteTokenUnauthorized) Error() string

func (*DeleteTokenUnauthorized) GetPayload

func (*DeleteTokenUnauthorized) IsClientError

func (o *DeleteTokenUnauthorized) IsClientError() bool

IsClientError returns true when this delete token unauthorized response has a 4xx status code

func (*DeleteTokenUnauthorized) IsCode

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

IsCode returns true when this delete token unauthorized response a status code equal to that given

func (*DeleteTokenUnauthorized) IsRedirect

func (o *DeleteTokenUnauthorized) IsRedirect() bool

IsRedirect returns true when this delete token unauthorized response has a 3xx status code

func (*DeleteTokenUnauthorized) IsServerError

func (o *DeleteTokenUnauthorized) IsServerError() bool

IsServerError returns true when this delete token unauthorized response has a 5xx status code

func (*DeleteTokenUnauthorized) IsSuccess

func (o *DeleteTokenUnauthorized) IsSuccess() bool

IsSuccess returns true when this delete token unauthorized response has a 2xx status code

func (*DeleteTokenUnauthorized) String

func (o *DeleteTokenUnauthorized) String() string

type ListTokensBadRequest

type ListTokensBadRequest struct {
	Payload *models.ErrorResponseBody
}

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

BadRequestError is returned when the request is invalid and it cannot be processed.

func NewListTokensBadRequest

func NewListTokensBadRequest() *ListTokensBadRequest

NewListTokensBadRequest creates a ListTokensBadRequest with default headers values

func (*ListTokensBadRequest) Code

func (o *ListTokensBadRequest) Code() int

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

func (*ListTokensBadRequest) Error

func (o *ListTokensBadRequest) Error() string

func (*ListTokensBadRequest) GetPayload

func (*ListTokensBadRequest) IsClientError

func (o *ListTokensBadRequest) IsClientError() bool

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

func (*ListTokensBadRequest) IsCode

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

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

func (*ListTokensBadRequest) IsRedirect

func (o *ListTokensBadRequest) IsRedirect() bool

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

func (*ListTokensBadRequest) IsServerError

func (o *ListTokensBadRequest) IsServerError() bool

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

func (*ListTokensBadRequest) IsSuccess

func (o *ListTokensBadRequest) IsSuccess() bool

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

func (*ListTokensBadRequest) String

func (o *ListTokensBadRequest) String() string

type ListTokensForbidden

type ListTokensForbidden struct {
	Payload *models.ErrorResponseBody
}

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

ForbiddenError is returned if the user/token has insufficient permissions to access the requested resource.

func NewListTokensForbidden

func NewListTokensForbidden() *ListTokensForbidden

NewListTokensForbidden creates a ListTokensForbidden with default headers values

func (*ListTokensForbidden) Code

func (o *ListTokensForbidden) Code() int

Code gets the status code for the list tokens forbidden response

func (*ListTokensForbidden) Error

func (o *ListTokensForbidden) Error() string

func (*ListTokensForbidden) GetPayload

func (o *ListTokensForbidden) GetPayload() *models.ErrorResponseBody

func (*ListTokensForbidden) IsClientError

func (o *ListTokensForbidden) IsClientError() bool

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

func (*ListTokensForbidden) IsCode

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

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

func (*ListTokensForbidden) IsRedirect

func (o *ListTokensForbidden) IsRedirect() bool

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

func (*ListTokensForbidden) IsServerError

func (o *ListTokensForbidden) IsServerError() bool

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

func (*ListTokensForbidden) IsSuccess

func (o *ListTokensForbidden) IsSuccess() bool

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

func (*ListTokensForbidden) String

func (o *ListTokensForbidden) String() string

type ListTokensInternalServerError

type ListTokensInternalServerError struct {
	Payload *models.ErrorResponseBody
}

ListTokensInternalServerError describes a response with status code 500, with default header values.

InternalServerError is a general error indicating something went wrong internally.

func NewListTokensInternalServerError

func NewListTokensInternalServerError() *ListTokensInternalServerError

NewListTokensInternalServerError creates a ListTokensInternalServerError with default headers values

func (*ListTokensInternalServerError) Code

Code gets the status code for the list tokens internal server error response

func (*ListTokensInternalServerError) Error

func (*ListTokensInternalServerError) GetPayload

func (*ListTokensInternalServerError) IsClientError

func (o *ListTokensInternalServerError) IsClientError() bool

IsClientError returns true when this list tokens internal server error response has a 4xx status code

func (*ListTokensInternalServerError) IsCode

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

IsCode returns true when this list tokens internal server error response a status code equal to that given

func (*ListTokensInternalServerError) IsRedirect

func (o *ListTokensInternalServerError) IsRedirect() bool

IsRedirect returns true when this list tokens internal server error response has a 3xx status code

func (*ListTokensInternalServerError) IsServerError

func (o *ListTokensInternalServerError) IsServerError() bool

IsServerError returns true when this list tokens internal server error response has a 5xx status code

func (*ListTokensInternalServerError) IsSuccess

func (o *ListTokensInternalServerError) IsSuccess() bool

IsSuccess returns true when this list tokens internal server error response has a 2xx status code

func (*ListTokensInternalServerError) String

type ListTokensOK

type ListTokensOK struct {
	Payload []*models.TokenDTO
}

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

(empty)

func NewListTokensOK

func NewListTokensOK() *ListTokensOK

NewListTokensOK creates a ListTokensOK with default headers values

func (*ListTokensOK) Code

func (o *ListTokensOK) Code() int

Code gets the status code for the list tokens Ok response

func (*ListTokensOK) Error

func (o *ListTokensOK) Error() string

func (*ListTokensOK) GetPayload

func (o *ListTokensOK) GetPayload() []*models.TokenDTO

func (*ListTokensOK) IsClientError

func (o *ListTokensOK) IsClientError() bool

IsClientError returns true when this list tokens Ok response has a 4xx status code

func (*ListTokensOK) IsCode

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

IsCode returns true when this list tokens Ok response a status code equal to that given

func (*ListTokensOK) IsRedirect

func (o *ListTokensOK) IsRedirect() bool

IsRedirect returns true when this list tokens Ok response has a 3xx status code

func (*ListTokensOK) IsServerError

func (o *ListTokensOK) IsServerError() bool

IsServerError returns true when this list tokens Ok response has a 5xx status code

func (*ListTokensOK) IsSuccess

func (o *ListTokensOK) IsSuccess() bool

IsSuccess returns true when this list tokens Ok response has a 2xx status code

func (*ListTokensOK) String

func (o *ListTokensOK) String() string

type ListTokensParams

type ListTokensParams struct {

	// ServiceAccountID.
	//
	// Format: int64
	ServiceAccountID int64

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

ListTokensParams contains all the parameters to send to the API endpoint

for the list tokens operation.

Typically these are written to a http.Request.

func NewListTokensParams

func NewListTokensParams() *ListTokensParams

NewListTokensParams creates a new ListTokensParams 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 NewListTokensParamsWithContext

func NewListTokensParamsWithContext(ctx context.Context) *ListTokensParams

NewListTokensParamsWithContext creates a new ListTokensParams object with the ability to set a context for a request.

func NewListTokensParamsWithHTTPClient

func NewListTokensParamsWithHTTPClient(client *http.Client) *ListTokensParams

NewListTokensParamsWithHTTPClient creates a new ListTokensParams object with the ability to set a custom HTTPClient for a request.

func NewListTokensParamsWithTimeout

func NewListTokensParamsWithTimeout(timeout time.Duration) *ListTokensParams

NewListTokensParamsWithTimeout creates a new ListTokensParams object with the ability to set a timeout on a request.

func (*ListTokensParams) SetContext

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

SetContext adds the context to the list tokens params

func (*ListTokensParams) SetDefaults

func (o *ListTokensParams) SetDefaults()

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

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

func (*ListTokensParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the list tokens params

func (*ListTokensParams) SetServiceAccountID

func (o *ListTokensParams) SetServiceAccountID(serviceAccountID int64)

SetServiceAccountID adds the serviceAccountId to the list tokens params

func (*ListTokensParams) SetTimeout

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

SetTimeout adds the timeout to the list tokens params

func (*ListTokensParams) WithContext

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

WithContext adds the context to the list tokens params

func (*ListTokensParams) WithDefaults

func (o *ListTokensParams) WithDefaults() *ListTokensParams

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

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

func (*ListTokensParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the list tokens params

func (*ListTokensParams) WithServiceAccountID

func (o *ListTokensParams) WithServiceAccountID(serviceAccountID int64) *ListTokensParams

WithServiceAccountID adds the serviceAccountID to the list tokens params

func (*ListTokensParams) WithTimeout

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

WithTimeout adds the timeout to the list tokens params

func (*ListTokensParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type ListTokensReader

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

ListTokensReader is a Reader for the ListTokens structure.

func (*ListTokensReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type ListTokensUnauthorized

type ListTokensUnauthorized struct {
	Payload *models.ErrorResponseBody
}

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

UnauthorizedError is returned when the request is not authenticated.

func NewListTokensUnauthorized

func NewListTokensUnauthorized() *ListTokensUnauthorized

NewListTokensUnauthorized creates a ListTokensUnauthorized with default headers values

func (*ListTokensUnauthorized) Code

func (o *ListTokensUnauthorized) Code() int

Code gets the status code for the list tokens unauthorized response

func (*ListTokensUnauthorized) Error

func (o *ListTokensUnauthorized) Error() string

func (*ListTokensUnauthorized) GetPayload

func (*ListTokensUnauthorized) IsClientError

func (o *ListTokensUnauthorized) IsClientError() bool

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

func (*ListTokensUnauthorized) IsCode

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

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

func (*ListTokensUnauthorized) IsRedirect

func (o *ListTokensUnauthorized) IsRedirect() bool

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

func (*ListTokensUnauthorized) IsServerError

func (o *ListTokensUnauthorized) IsServerError() bool

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

func (*ListTokensUnauthorized) IsSuccess

func (o *ListTokensUnauthorized) IsSuccess() bool

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

func (*ListTokensUnauthorized) String

func (o *ListTokensUnauthorized) String() string

type RetrieveServiceAccountBadRequest

type RetrieveServiceAccountBadRequest struct {
	Payload *models.ErrorResponseBody
}

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

BadRequestError is returned when the request is invalid and it cannot be processed.

func NewRetrieveServiceAccountBadRequest

func NewRetrieveServiceAccountBadRequest() *RetrieveServiceAccountBadRequest

NewRetrieveServiceAccountBadRequest creates a RetrieveServiceAccountBadRequest with default headers values

func (*RetrieveServiceAccountBadRequest) Code

Code gets the status code for the retrieve service account bad request response

func (*RetrieveServiceAccountBadRequest) Error

func (*RetrieveServiceAccountBadRequest) GetPayload

func (*RetrieveServiceAccountBadRequest) IsClientError

func (o *RetrieveServiceAccountBadRequest) IsClientError() bool

IsClientError returns true when this retrieve service account bad request response has a 4xx status code

func (*RetrieveServiceAccountBadRequest) IsCode

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

IsCode returns true when this retrieve service account bad request response a status code equal to that given

func (*RetrieveServiceAccountBadRequest) IsRedirect

func (o *RetrieveServiceAccountBadRequest) IsRedirect() bool

IsRedirect returns true when this retrieve service account bad request response has a 3xx status code

func (*RetrieveServiceAccountBadRequest) IsServerError

func (o *RetrieveServiceAccountBadRequest) IsServerError() bool

IsServerError returns true when this retrieve service account bad request response has a 5xx status code

func (*RetrieveServiceAccountBadRequest) IsSuccess

func (o *RetrieveServiceAccountBadRequest) IsSuccess() bool

IsSuccess returns true when this retrieve service account bad request response has a 2xx status code

func (*RetrieveServiceAccountBadRequest) String

type RetrieveServiceAccountForbidden

type RetrieveServiceAccountForbidden struct {
	Payload *models.ErrorResponseBody
}

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

ForbiddenError is returned if the user/token has insufficient permissions to access the requested resource.

func NewRetrieveServiceAccountForbidden

func NewRetrieveServiceAccountForbidden() *RetrieveServiceAccountForbidden

NewRetrieveServiceAccountForbidden creates a RetrieveServiceAccountForbidden with default headers values

func (*RetrieveServiceAccountForbidden) Code

Code gets the status code for the retrieve service account forbidden response

func (*RetrieveServiceAccountForbidden) Error

func (*RetrieveServiceAccountForbidden) GetPayload

func (*RetrieveServiceAccountForbidden) IsClientError

func (o *RetrieveServiceAccountForbidden) IsClientError() bool

IsClientError returns true when this retrieve service account forbidden response has a 4xx status code

func (*RetrieveServiceAccountForbidden) IsCode

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

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

func (*RetrieveServiceAccountForbidden) IsRedirect

func (o *RetrieveServiceAccountForbidden) IsRedirect() bool

IsRedirect returns true when this retrieve service account forbidden response has a 3xx status code

func (*RetrieveServiceAccountForbidden) IsServerError

func (o *RetrieveServiceAccountForbidden) IsServerError() bool

IsServerError returns true when this retrieve service account forbidden response has a 5xx status code

func (*RetrieveServiceAccountForbidden) IsSuccess

func (o *RetrieveServiceAccountForbidden) IsSuccess() bool

IsSuccess returns true when this retrieve service account forbidden response has a 2xx status code

func (*RetrieveServiceAccountForbidden) String

type RetrieveServiceAccountInternalServerError

type RetrieveServiceAccountInternalServerError struct {
	Payload *models.ErrorResponseBody
}

RetrieveServiceAccountInternalServerError describes a response with status code 500, with default header values.

InternalServerError is a general error indicating something went wrong internally.

func NewRetrieveServiceAccountInternalServerError

func NewRetrieveServiceAccountInternalServerError() *RetrieveServiceAccountInternalServerError

NewRetrieveServiceAccountInternalServerError creates a RetrieveServiceAccountInternalServerError with default headers values

func (*RetrieveServiceAccountInternalServerError) Code

Code gets the status code for the retrieve service account internal server error response

func (*RetrieveServiceAccountInternalServerError) Error

func (*RetrieveServiceAccountInternalServerError) GetPayload

func (*RetrieveServiceAccountInternalServerError) IsClientError

IsClientError returns true when this retrieve service account internal server error response has a 4xx status code

func (*RetrieveServiceAccountInternalServerError) IsCode

IsCode returns true when this retrieve service account internal server error response a status code equal to that given

func (*RetrieveServiceAccountInternalServerError) IsRedirect

IsRedirect returns true when this retrieve service account internal server error response has a 3xx status code

func (*RetrieveServiceAccountInternalServerError) IsServerError

IsServerError returns true when this retrieve service account internal server error response has a 5xx status code

func (*RetrieveServiceAccountInternalServerError) IsSuccess

IsSuccess returns true when this retrieve service account internal server error response has a 2xx status code

func (*RetrieveServiceAccountInternalServerError) String

type RetrieveServiceAccountNotFound

type RetrieveServiceAccountNotFound struct {
	Payload *models.ErrorResponseBody
}

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

NotFoundError is returned when the requested resource was not found.

func NewRetrieveServiceAccountNotFound

func NewRetrieveServiceAccountNotFound() *RetrieveServiceAccountNotFound

NewRetrieveServiceAccountNotFound creates a RetrieveServiceAccountNotFound with default headers values

func (*RetrieveServiceAccountNotFound) Code

Code gets the status code for the retrieve service account not found response

func (*RetrieveServiceAccountNotFound) Error

func (*RetrieveServiceAccountNotFound) GetPayload

func (*RetrieveServiceAccountNotFound) IsClientError

func (o *RetrieveServiceAccountNotFound) IsClientError() bool

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

func (*RetrieveServiceAccountNotFound) IsCode

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

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

func (*RetrieveServiceAccountNotFound) IsRedirect

func (o *RetrieveServiceAccountNotFound) IsRedirect() bool

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

func (*RetrieveServiceAccountNotFound) IsServerError

func (o *RetrieveServiceAccountNotFound) IsServerError() bool

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

func (*RetrieveServiceAccountNotFound) IsSuccess

func (o *RetrieveServiceAccountNotFound) IsSuccess() bool

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

func (*RetrieveServiceAccountNotFound) String

type RetrieveServiceAccountOK

type RetrieveServiceAccountOK struct {
	Payload *models.ServiceAccountDTO
}

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

(empty)

func NewRetrieveServiceAccountOK

func NewRetrieveServiceAccountOK() *RetrieveServiceAccountOK

NewRetrieveServiceAccountOK creates a RetrieveServiceAccountOK with default headers values

func (*RetrieveServiceAccountOK) Code

func (o *RetrieveServiceAccountOK) Code() int

Code gets the status code for the retrieve service account Ok response

func (*RetrieveServiceAccountOK) Error

func (o *RetrieveServiceAccountOK) Error() string

func (*RetrieveServiceAccountOK) GetPayload

func (*RetrieveServiceAccountOK) IsClientError

func (o *RetrieveServiceAccountOK) IsClientError() bool

IsClientError returns true when this retrieve service account Ok response has a 4xx status code

func (*RetrieveServiceAccountOK) IsCode

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

IsCode returns true when this retrieve service account Ok response a status code equal to that given

func (*RetrieveServiceAccountOK) IsRedirect

func (o *RetrieveServiceAccountOK) IsRedirect() bool

IsRedirect returns true when this retrieve service account Ok response has a 3xx status code

func (*RetrieveServiceAccountOK) IsServerError

func (o *RetrieveServiceAccountOK) IsServerError() bool

IsServerError returns true when this retrieve service account Ok response has a 5xx status code

func (*RetrieveServiceAccountOK) IsSuccess

func (o *RetrieveServiceAccountOK) IsSuccess() bool

IsSuccess returns true when this retrieve service account Ok response has a 2xx status code

func (*RetrieveServiceAccountOK) String

func (o *RetrieveServiceAccountOK) String() string

type RetrieveServiceAccountParams

type RetrieveServiceAccountParams struct {

	// ServiceAccountID.
	//
	// Format: int64
	ServiceAccountID int64

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

RetrieveServiceAccountParams contains all the parameters to send to the API endpoint

for the retrieve service account operation.

Typically these are written to a http.Request.

func NewRetrieveServiceAccountParams

func NewRetrieveServiceAccountParams() *RetrieveServiceAccountParams

NewRetrieveServiceAccountParams creates a new RetrieveServiceAccountParams 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 NewRetrieveServiceAccountParamsWithContext

func NewRetrieveServiceAccountParamsWithContext(ctx context.Context) *RetrieveServiceAccountParams

NewRetrieveServiceAccountParamsWithContext creates a new RetrieveServiceAccountParams object with the ability to set a context for a request.

func NewRetrieveServiceAccountParamsWithHTTPClient

func NewRetrieveServiceAccountParamsWithHTTPClient(client *http.Client) *RetrieveServiceAccountParams

NewRetrieveServiceAccountParamsWithHTTPClient creates a new RetrieveServiceAccountParams object with the ability to set a custom HTTPClient for a request.

func NewRetrieveServiceAccountParamsWithTimeout

func NewRetrieveServiceAccountParamsWithTimeout(timeout time.Duration) *RetrieveServiceAccountParams

NewRetrieveServiceAccountParamsWithTimeout creates a new RetrieveServiceAccountParams object with the ability to set a timeout on a request.

func (*RetrieveServiceAccountParams) SetContext

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

SetContext adds the context to the retrieve service account params

func (*RetrieveServiceAccountParams) SetDefaults

func (o *RetrieveServiceAccountParams) SetDefaults()

SetDefaults hydrates default values in the retrieve service account params (not the query body).

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

func (*RetrieveServiceAccountParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the retrieve service account params

func (*RetrieveServiceAccountParams) SetServiceAccountID

func (o *RetrieveServiceAccountParams) SetServiceAccountID(serviceAccountID int64)

SetServiceAccountID adds the serviceAccountId to the retrieve service account params

func (*RetrieveServiceAccountParams) SetTimeout

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

SetTimeout adds the timeout to the retrieve service account params

func (*RetrieveServiceAccountParams) WithContext

WithContext adds the context to the retrieve service account params

func (*RetrieveServiceAccountParams) WithDefaults

WithDefaults hydrates default values in the retrieve service account params (not the query body).

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

func (*RetrieveServiceAccountParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the retrieve service account params

func (*RetrieveServiceAccountParams) WithServiceAccountID

func (o *RetrieveServiceAccountParams) WithServiceAccountID(serviceAccountID int64) *RetrieveServiceAccountParams

WithServiceAccountID adds the serviceAccountID to the retrieve service account params

func (*RetrieveServiceAccountParams) WithTimeout

WithTimeout adds the timeout to the retrieve service account params

func (*RetrieveServiceAccountParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type RetrieveServiceAccountReader

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

RetrieveServiceAccountReader is a Reader for the RetrieveServiceAccount structure.

func (*RetrieveServiceAccountReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type RetrieveServiceAccountUnauthorized

type RetrieveServiceAccountUnauthorized struct {
	Payload *models.ErrorResponseBody
}

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

UnauthorizedError is returned when the request is not authenticated.

func NewRetrieveServiceAccountUnauthorized

func NewRetrieveServiceAccountUnauthorized() *RetrieveServiceAccountUnauthorized

NewRetrieveServiceAccountUnauthorized creates a RetrieveServiceAccountUnauthorized with default headers values

func (*RetrieveServiceAccountUnauthorized) Code

Code gets the status code for the retrieve service account unauthorized response

func (*RetrieveServiceAccountUnauthorized) Error

func (*RetrieveServiceAccountUnauthorized) GetPayload

func (*RetrieveServiceAccountUnauthorized) IsClientError

func (o *RetrieveServiceAccountUnauthorized) IsClientError() bool

IsClientError returns true when this retrieve service account unauthorized response has a 4xx status code

func (*RetrieveServiceAccountUnauthorized) IsCode

IsCode returns true when this retrieve service account unauthorized response a status code equal to that given

func (*RetrieveServiceAccountUnauthorized) IsRedirect

func (o *RetrieveServiceAccountUnauthorized) IsRedirect() bool

IsRedirect returns true when this retrieve service account unauthorized response has a 3xx status code

func (*RetrieveServiceAccountUnauthorized) IsServerError

func (o *RetrieveServiceAccountUnauthorized) IsServerError() bool

IsServerError returns true when this retrieve service account unauthorized response has a 5xx status code

func (*RetrieveServiceAccountUnauthorized) IsSuccess

IsSuccess returns true when this retrieve service account unauthorized response has a 2xx status code

func (*RetrieveServiceAccountUnauthorized) String

type SearchOrgServiceAccountsWithPagingForbidden

type SearchOrgServiceAccountsWithPagingForbidden struct {
	Payload *models.ErrorResponseBody
}

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

ForbiddenError is returned if the user/token has insufficient permissions to access the requested resource.

func NewSearchOrgServiceAccountsWithPagingForbidden

func NewSearchOrgServiceAccountsWithPagingForbidden() *SearchOrgServiceAccountsWithPagingForbidden

NewSearchOrgServiceAccountsWithPagingForbidden creates a SearchOrgServiceAccountsWithPagingForbidden with default headers values

func (*SearchOrgServiceAccountsWithPagingForbidden) Code

Code gets the status code for the search org service accounts with paging forbidden response

func (*SearchOrgServiceAccountsWithPagingForbidden) Error

func (*SearchOrgServiceAccountsWithPagingForbidden) GetPayload

func (*SearchOrgServiceAccountsWithPagingForbidden) IsClientError

IsClientError returns true when this search org service accounts with paging forbidden response has a 4xx status code

func (*SearchOrgServiceAccountsWithPagingForbidden) IsCode

IsCode returns true when this search org service accounts with paging forbidden response a status code equal to that given

func (*SearchOrgServiceAccountsWithPagingForbidden) IsRedirect

IsRedirect returns true when this search org service accounts with paging forbidden response has a 3xx status code

func (*SearchOrgServiceAccountsWithPagingForbidden) IsServerError

IsServerError returns true when this search org service accounts with paging forbidden response has a 5xx status code

func (*SearchOrgServiceAccountsWithPagingForbidden) IsSuccess

IsSuccess returns true when this search org service accounts with paging forbidden response has a 2xx status code

func (*SearchOrgServiceAccountsWithPagingForbidden) String

type SearchOrgServiceAccountsWithPagingInternalServerError

type SearchOrgServiceAccountsWithPagingInternalServerError struct {
	Payload *models.ErrorResponseBody
}

SearchOrgServiceAccountsWithPagingInternalServerError describes a response with status code 500, with default header values.

InternalServerError is a general error indicating something went wrong internally.

func NewSearchOrgServiceAccountsWithPagingInternalServerError

func NewSearchOrgServiceAccountsWithPagingInternalServerError() *SearchOrgServiceAccountsWithPagingInternalServerError

NewSearchOrgServiceAccountsWithPagingInternalServerError creates a SearchOrgServiceAccountsWithPagingInternalServerError with default headers values

func (*SearchOrgServiceAccountsWithPagingInternalServerError) Code

Code gets the status code for the search org service accounts with paging internal server error response

func (*SearchOrgServiceAccountsWithPagingInternalServerError) Error

func (*SearchOrgServiceAccountsWithPagingInternalServerError) GetPayload

func (*SearchOrgServiceAccountsWithPagingInternalServerError) IsClientError

IsClientError returns true when this search org service accounts with paging internal server error response has a 4xx status code

func (*SearchOrgServiceAccountsWithPagingInternalServerError) IsCode

IsCode returns true when this search org service accounts with paging internal server error response a status code equal to that given

func (*SearchOrgServiceAccountsWithPagingInternalServerError) IsRedirect

IsRedirect returns true when this search org service accounts with paging internal server error response has a 3xx status code

func (*SearchOrgServiceAccountsWithPagingInternalServerError) IsServerError

IsServerError returns true when this search org service accounts with paging internal server error response has a 5xx status code

func (*SearchOrgServiceAccountsWithPagingInternalServerError) IsSuccess

IsSuccess returns true when this search org service accounts with paging internal server error response has a 2xx status code

func (*SearchOrgServiceAccountsWithPagingInternalServerError) String

type SearchOrgServiceAccountsWithPagingOK

type SearchOrgServiceAccountsWithPagingOK struct {
	Payload *models.SearchOrgServiceAccountsResult
}

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

(empty)

func NewSearchOrgServiceAccountsWithPagingOK

func NewSearchOrgServiceAccountsWithPagingOK() *SearchOrgServiceAccountsWithPagingOK

NewSearchOrgServiceAccountsWithPagingOK creates a SearchOrgServiceAccountsWithPagingOK with default headers values

func (*SearchOrgServiceAccountsWithPagingOK) Code

Code gets the status code for the search org service accounts with paging Ok response

func (*SearchOrgServiceAccountsWithPagingOK) Error

func (*SearchOrgServiceAccountsWithPagingOK) GetPayload

func (*SearchOrgServiceAccountsWithPagingOK) IsClientError

func (o *SearchOrgServiceAccountsWithPagingOK) IsClientError() bool

IsClientError returns true when this search org service accounts with paging Ok response has a 4xx status code

func (*SearchOrgServiceAccountsWithPagingOK) IsCode

IsCode returns true when this search org service accounts with paging Ok response a status code equal to that given

func (*SearchOrgServiceAccountsWithPagingOK) IsRedirect

IsRedirect returns true when this search org service accounts with paging Ok response has a 3xx status code

func (*SearchOrgServiceAccountsWithPagingOK) IsServerError

func (o *SearchOrgServiceAccountsWithPagingOK) IsServerError() bool

IsServerError returns true when this search org service accounts with paging Ok response has a 5xx status code

func (*SearchOrgServiceAccountsWithPagingOK) IsSuccess

IsSuccess returns true when this search org service accounts with paging Ok response has a 2xx status code

func (*SearchOrgServiceAccountsWithPagingOK) String

type SearchOrgServiceAccountsWithPagingParams

type SearchOrgServiceAccountsWithPagingParams struct {

	// Disabled.
	Disabled *bool

	// ExpiredTokens.
	ExpiredTokens *bool

	/* Page.

	   The default value is 1.

	   Format: int64
	*/
	Page *int64

	/* Perpage.

	   The default value is 1000.

	   Format: int64
	*/
	Perpage *int64

	/* Query.

	     It will return results where the query value is contained in one of the name.
	Query values with spaces need to be URL encoded.
	*/
	Query *string

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

SearchOrgServiceAccountsWithPagingParams contains all the parameters to send to the API endpoint

for the search org service accounts with paging operation.

Typically these are written to a http.Request.

func NewSearchOrgServiceAccountsWithPagingParams

func NewSearchOrgServiceAccountsWithPagingParams() *SearchOrgServiceAccountsWithPagingParams

NewSearchOrgServiceAccountsWithPagingParams creates a new SearchOrgServiceAccountsWithPagingParams 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 NewSearchOrgServiceAccountsWithPagingParamsWithContext

func NewSearchOrgServiceAccountsWithPagingParamsWithContext(ctx context.Context) *SearchOrgServiceAccountsWithPagingParams

NewSearchOrgServiceAccountsWithPagingParamsWithContext creates a new SearchOrgServiceAccountsWithPagingParams object with the ability to set a context for a request.

func NewSearchOrgServiceAccountsWithPagingParamsWithHTTPClient

func NewSearchOrgServiceAccountsWithPagingParamsWithHTTPClient(client *http.Client) *SearchOrgServiceAccountsWithPagingParams

NewSearchOrgServiceAccountsWithPagingParamsWithHTTPClient creates a new SearchOrgServiceAccountsWithPagingParams object with the ability to set a custom HTTPClient for a request.

func NewSearchOrgServiceAccountsWithPagingParamsWithTimeout

func NewSearchOrgServiceAccountsWithPagingParamsWithTimeout(timeout time.Duration) *SearchOrgServiceAccountsWithPagingParams

NewSearchOrgServiceAccountsWithPagingParamsWithTimeout creates a new SearchOrgServiceAccountsWithPagingParams object with the ability to set a timeout on a request.

func (*SearchOrgServiceAccountsWithPagingParams) SetContext

SetContext adds the context to the search org service accounts with paging params

func (*SearchOrgServiceAccountsWithPagingParams) SetDefaults

SetDefaults hydrates default values in the search org service accounts with paging params (not the query body).

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

func (*SearchOrgServiceAccountsWithPagingParams) SetDisabled

func (o *SearchOrgServiceAccountsWithPagingParams) SetDisabled(disabled *bool)

SetDisabled adds the disabled to the search org service accounts with paging params

func (*SearchOrgServiceAccountsWithPagingParams) SetExpiredTokens

func (o *SearchOrgServiceAccountsWithPagingParams) SetExpiredTokens(expiredTokens *bool)

SetExpiredTokens adds the expiredTokens to the search org service accounts with paging params

func (*SearchOrgServiceAccountsWithPagingParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the search org service accounts with paging params

func (*SearchOrgServiceAccountsWithPagingParams) SetPage

SetPage adds the page to the search org service accounts with paging params

func (*SearchOrgServiceAccountsWithPagingParams) SetPerpage

func (o *SearchOrgServiceAccountsWithPagingParams) SetPerpage(perpage *int64)

SetPerpage adds the perpage to the search org service accounts with paging params

func (*SearchOrgServiceAccountsWithPagingParams) SetQuery

SetQuery adds the query to the search org service accounts with paging params

func (*SearchOrgServiceAccountsWithPagingParams) SetTimeout

SetTimeout adds the timeout to the search org service accounts with paging params

func (*SearchOrgServiceAccountsWithPagingParams) WithContext

WithContext adds the context to the search org service accounts with paging params

func (*SearchOrgServiceAccountsWithPagingParams) WithDefaults

WithDefaults hydrates default values in the search org service accounts with paging params (not the query body).

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

func (*SearchOrgServiceAccountsWithPagingParams) WithDisabled

WithDisabled adds the disabled to the search org service accounts with paging params

func (*SearchOrgServiceAccountsWithPagingParams) WithExpiredTokens

WithExpiredTokens adds the expiredTokens to the search org service accounts with paging params

func (*SearchOrgServiceAccountsWithPagingParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the search org service accounts with paging params

func (*SearchOrgServiceAccountsWithPagingParams) WithPage

WithPage adds the page to the search org service accounts with paging params

func (*SearchOrgServiceAccountsWithPagingParams) WithPerpage

WithPerpage adds the perpage to the search org service accounts with paging params

func (*SearchOrgServiceAccountsWithPagingParams) WithQuery

WithQuery adds the query to the search org service accounts with paging params

func (*SearchOrgServiceAccountsWithPagingParams) WithTimeout

WithTimeout adds the timeout to the search org service accounts with paging params

func (*SearchOrgServiceAccountsWithPagingParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type SearchOrgServiceAccountsWithPagingReader

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

SearchOrgServiceAccountsWithPagingReader is a Reader for the SearchOrgServiceAccountsWithPaging structure.

func (*SearchOrgServiceAccountsWithPagingReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type SearchOrgServiceAccountsWithPagingUnauthorized

type SearchOrgServiceAccountsWithPagingUnauthorized struct {
	Payload *models.ErrorResponseBody
}

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

UnauthorizedError is returned when the request is not authenticated.

func NewSearchOrgServiceAccountsWithPagingUnauthorized

func NewSearchOrgServiceAccountsWithPagingUnauthorized() *SearchOrgServiceAccountsWithPagingUnauthorized

NewSearchOrgServiceAccountsWithPagingUnauthorized creates a SearchOrgServiceAccountsWithPagingUnauthorized with default headers values

func (*SearchOrgServiceAccountsWithPagingUnauthorized) Code

Code gets the status code for the search org service accounts with paging unauthorized response

func (*SearchOrgServiceAccountsWithPagingUnauthorized) Error

func (*SearchOrgServiceAccountsWithPagingUnauthorized) GetPayload

func (*SearchOrgServiceAccountsWithPagingUnauthorized) IsClientError

IsClientError returns true when this search org service accounts with paging unauthorized response has a 4xx status code

func (*SearchOrgServiceAccountsWithPagingUnauthorized) IsCode

IsCode returns true when this search org service accounts with paging unauthorized response a status code equal to that given

func (*SearchOrgServiceAccountsWithPagingUnauthorized) IsRedirect

IsRedirect returns true when this search org service accounts with paging unauthorized response has a 3xx status code

func (*SearchOrgServiceAccountsWithPagingUnauthorized) IsServerError

IsServerError returns true when this search org service accounts with paging unauthorized response has a 5xx status code

func (*SearchOrgServiceAccountsWithPagingUnauthorized) IsSuccess

IsSuccess returns true when this search org service accounts with paging unauthorized response has a 2xx status code

func (*SearchOrgServiceAccountsWithPagingUnauthorized) String

type UpdateServiceAccountBadRequest

type UpdateServiceAccountBadRequest struct {
	Payload *models.ErrorResponseBody
}

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

BadRequestError is returned when the request is invalid and it cannot be processed.

func NewUpdateServiceAccountBadRequest

func NewUpdateServiceAccountBadRequest() *UpdateServiceAccountBadRequest

NewUpdateServiceAccountBadRequest creates a UpdateServiceAccountBadRequest with default headers values

func (*UpdateServiceAccountBadRequest) Code

Code gets the status code for the update service account bad request response

func (*UpdateServiceAccountBadRequest) Error

func (*UpdateServiceAccountBadRequest) GetPayload

func (*UpdateServiceAccountBadRequest) IsClientError

func (o *UpdateServiceAccountBadRequest) IsClientError() bool

IsClientError returns true when this update service account bad request response has a 4xx status code

func (*UpdateServiceAccountBadRequest) IsCode

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

IsCode returns true when this update service account bad request response a status code equal to that given

func (*UpdateServiceAccountBadRequest) IsRedirect

func (o *UpdateServiceAccountBadRequest) IsRedirect() bool

IsRedirect returns true when this update service account bad request response has a 3xx status code

func (*UpdateServiceAccountBadRequest) IsServerError

func (o *UpdateServiceAccountBadRequest) IsServerError() bool

IsServerError returns true when this update service account bad request response has a 5xx status code

func (*UpdateServiceAccountBadRequest) IsSuccess

func (o *UpdateServiceAccountBadRequest) IsSuccess() bool

IsSuccess returns true when this update service account bad request response has a 2xx status code

func (*UpdateServiceAccountBadRequest) String

type UpdateServiceAccountForbidden

type UpdateServiceAccountForbidden struct {
	Payload *models.ErrorResponseBody
}

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

ForbiddenError is returned if the user/token has insufficient permissions to access the requested resource.

func NewUpdateServiceAccountForbidden

func NewUpdateServiceAccountForbidden() *UpdateServiceAccountForbidden

NewUpdateServiceAccountForbidden creates a UpdateServiceAccountForbidden with default headers values

func (*UpdateServiceAccountForbidden) Code

Code gets the status code for the update service account forbidden response

func (*UpdateServiceAccountForbidden) Error

func (*UpdateServiceAccountForbidden) GetPayload

func (*UpdateServiceAccountForbidden) IsClientError

func (o *UpdateServiceAccountForbidden) IsClientError() bool

IsClientError returns true when this update service account forbidden response has a 4xx status code

func (*UpdateServiceAccountForbidden) IsCode

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

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

func (*UpdateServiceAccountForbidden) IsRedirect

func (o *UpdateServiceAccountForbidden) IsRedirect() bool

IsRedirect returns true when this update service account forbidden response has a 3xx status code

func (*UpdateServiceAccountForbidden) IsServerError

func (o *UpdateServiceAccountForbidden) IsServerError() bool

IsServerError returns true when this update service account forbidden response has a 5xx status code

func (*UpdateServiceAccountForbidden) IsSuccess

func (o *UpdateServiceAccountForbidden) IsSuccess() bool

IsSuccess returns true when this update service account forbidden response has a 2xx status code

func (*UpdateServiceAccountForbidden) String

type UpdateServiceAccountInternalServerError

type UpdateServiceAccountInternalServerError struct {
	Payload *models.ErrorResponseBody
}

UpdateServiceAccountInternalServerError describes a response with status code 500, with default header values.

InternalServerError is a general error indicating something went wrong internally.

func NewUpdateServiceAccountInternalServerError

func NewUpdateServiceAccountInternalServerError() *UpdateServiceAccountInternalServerError

NewUpdateServiceAccountInternalServerError creates a UpdateServiceAccountInternalServerError with default headers values

func (*UpdateServiceAccountInternalServerError) Code

Code gets the status code for the update service account internal server error response

func (*UpdateServiceAccountInternalServerError) Error

func (*UpdateServiceAccountInternalServerError) GetPayload

func (*UpdateServiceAccountInternalServerError) IsClientError

func (o *UpdateServiceAccountInternalServerError) IsClientError() bool

IsClientError returns true when this update service account internal server error response has a 4xx status code

func (*UpdateServiceAccountInternalServerError) IsCode

IsCode returns true when this update service account internal server error response a status code equal to that given

func (*UpdateServiceAccountInternalServerError) IsRedirect

IsRedirect returns true when this update service account internal server error response has a 3xx status code

func (*UpdateServiceAccountInternalServerError) IsServerError

func (o *UpdateServiceAccountInternalServerError) IsServerError() bool

IsServerError returns true when this update service account internal server error response has a 5xx status code

func (*UpdateServiceAccountInternalServerError) IsSuccess

IsSuccess returns true when this update service account internal server error response has a 2xx status code

func (*UpdateServiceAccountInternalServerError) String

type UpdateServiceAccountNotFound

type UpdateServiceAccountNotFound struct {
	Payload *models.ErrorResponseBody
}

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

NotFoundError is returned when the requested resource was not found.

func NewUpdateServiceAccountNotFound

func NewUpdateServiceAccountNotFound() *UpdateServiceAccountNotFound

NewUpdateServiceAccountNotFound creates a UpdateServiceAccountNotFound with default headers values

func (*UpdateServiceAccountNotFound) Code

Code gets the status code for the update service account not found response

func (*UpdateServiceAccountNotFound) Error

func (*UpdateServiceAccountNotFound) GetPayload

func (*UpdateServiceAccountNotFound) IsClientError

func (o *UpdateServiceAccountNotFound) IsClientError() bool

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

func (*UpdateServiceAccountNotFound) IsCode

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

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

func (*UpdateServiceAccountNotFound) IsRedirect

func (o *UpdateServiceAccountNotFound) IsRedirect() bool

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

func (*UpdateServiceAccountNotFound) IsServerError

func (o *UpdateServiceAccountNotFound) IsServerError() bool

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

func (*UpdateServiceAccountNotFound) IsSuccess

func (o *UpdateServiceAccountNotFound) IsSuccess() bool

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

func (*UpdateServiceAccountNotFound) String

type UpdateServiceAccountOK

type UpdateServiceAccountOK struct {
	Payload *models.UpdateServiceAccountOKBody
}

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

(empty)

func NewUpdateServiceAccountOK

func NewUpdateServiceAccountOK() *UpdateServiceAccountOK

NewUpdateServiceAccountOK creates a UpdateServiceAccountOK with default headers values

func (*UpdateServiceAccountOK) Code

func (o *UpdateServiceAccountOK) Code() int

Code gets the status code for the update service account Ok response

func (*UpdateServiceAccountOK) Error

func (o *UpdateServiceAccountOK) Error() string

func (*UpdateServiceAccountOK) GetPayload

func (*UpdateServiceAccountOK) IsClientError

func (o *UpdateServiceAccountOK) IsClientError() bool

IsClientError returns true when this update service account Ok response has a 4xx status code

func (*UpdateServiceAccountOK) IsCode

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

IsCode returns true when this update service account Ok response a status code equal to that given

func (*UpdateServiceAccountOK) IsRedirect

func (o *UpdateServiceAccountOK) IsRedirect() bool

IsRedirect returns true when this update service account Ok response has a 3xx status code

func (*UpdateServiceAccountOK) IsServerError

func (o *UpdateServiceAccountOK) IsServerError() bool

IsServerError returns true when this update service account Ok response has a 5xx status code

func (*UpdateServiceAccountOK) IsSuccess

func (o *UpdateServiceAccountOK) IsSuccess() bool

IsSuccess returns true when this update service account Ok response has a 2xx status code

func (*UpdateServiceAccountOK) String

func (o *UpdateServiceAccountOK) String() string

type UpdateServiceAccountParams

type UpdateServiceAccountParams struct {

	// Body.
	Body *models.UpdateServiceAccountForm

	// ServiceAccountID.
	//
	// Format: int64
	ServiceAccountID int64

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

UpdateServiceAccountParams contains all the parameters to send to the API endpoint

for the update service account operation.

Typically these are written to a http.Request.

func NewUpdateServiceAccountParams

func NewUpdateServiceAccountParams() *UpdateServiceAccountParams

NewUpdateServiceAccountParams creates a new UpdateServiceAccountParams 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 NewUpdateServiceAccountParamsWithContext

func NewUpdateServiceAccountParamsWithContext(ctx context.Context) *UpdateServiceAccountParams

NewUpdateServiceAccountParamsWithContext creates a new UpdateServiceAccountParams object with the ability to set a context for a request.

func NewUpdateServiceAccountParamsWithHTTPClient

func NewUpdateServiceAccountParamsWithHTTPClient(client *http.Client) *UpdateServiceAccountParams

NewUpdateServiceAccountParamsWithHTTPClient creates a new UpdateServiceAccountParams object with the ability to set a custom HTTPClient for a request.

func NewUpdateServiceAccountParamsWithTimeout

func NewUpdateServiceAccountParamsWithTimeout(timeout time.Duration) *UpdateServiceAccountParams

NewUpdateServiceAccountParamsWithTimeout creates a new UpdateServiceAccountParams object with the ability to set a timeout on a request.

func (*UpdateServiceAccountParams) SetBody

SetBody adds the body to the update service account params

func (*UpdateServiceAccountParams) SetContext

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

SetContext adds the context to the update service account params

func (*UpdateServiceAccountParams) SetDefaults

func (o *UpdateServiceAccountParams) SetDefaults()

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

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

func (*UpdateServiceAccountParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the update service account params

func (*UpdateServiceAccountParams) SetServiceAccountID

func (o *UpdateServiceAccountParams) SetServiceAccountID(serviceAccountID int64)

SetServiceAccountID adds the serviceAccountId to the update service account params

func (*UpdateServiceAccountParams) SetTimeout

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

SetTimeout adds the timeout to the update service account params

func (*UpdateServiceAccountParams) WithBody

WithBody adds the body to the update service account params

func (*UpdateServiceAccountParams) WithContext

WithContext adds the context to the update service account params

func (*UpdateServiceAccountParams) WithDefaults

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

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

func (*UpdateServiceAccountParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the update service account params

func (*UpdateServiceAccountParams) WithServiceAccountID

func (o *UpdateServiceAccountParams) WithServiceAccountID(serviceAccountID int64) *UpdateServiceAccountParams

WithServiceAccountID adds the serviceAccountID to the update service account params

func (*UpdateServiceAccountParams) WithTimeout

WithTimeout adds the timeout to the update service account params

func (*UpdateServiceAccountParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type UpdateServiceAccountReader

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

UpdateServiceAccountReader is a Reader for the UpdateServiceAccount structure.

func (*UpdateServiceAccountReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type UpdateServiceAccountUnauthorized

type UpdateServiceAccountUnauthorized struct {
	Payload *models.ErrorResponseBody
}

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

UnauthorizedError is returned when the request is not authenticated.

func NewUpdateServiceAccountUnauthorized

func NewUpdateServiceAccountUnauthorized() *UpdateServiceAccountUnauthorized

NewUpdateServiceAccountUnauthorized creates a UpdateServiceAccountUnauthorized with default headers values

func (*UpdateServiceAccountUnauthorized) Code

Code gets the status code for the update service account unauthorized response

func (*UpdateServiceAccountUnauthorized) Error

func (*UpdateServiceAccountUnauthorized) GetPayload

func (*UpdateServiceAccountUnauthorized) IsClientError

func (o *UpdateServiceAccountUnauthorized) IsClientError() bool

IsClientError returns true when this update service account unauthorized response has a 4xx status code

func (*UpdateServiceAccountUnauthorized) IsCode

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

IsCode returns true when this update service account unauthorized response a status code equal to that given

func (*UpdateServiceAccountUnauthorized) IsRedirect

func (o *UpdateServiceAccountUnauthorized) IsRedirect() bool

IsRedirect returns true when this update service account unauthorized response has a 3xx status code

func (*UpdateServiceAccountUnauthorized) IsServerError

func (o *UpdateServiceAccountUnauthorized) IsServerError() bool

IsServerError returns true when this update service account unauthorized response has a 5xx status code

func (*UpdateServiceAccountUnauthorized) IsSuccess

func (o *UpdateServiceAccountUnauthorized) IsSuccess() bool

IsSuccess returns true when this update service account unauthorized response has a 2xx status code

func (*UpdateServiceAccountUnauthorized) String

Jump to

Keyboard shortcuts

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