Documentation ¶
Index ¶
- type Client
- func (a *Client) CreateServiceAccount(params *CreateServiceAccountParams, opts ...ClientOption) (*CreateServiceAccountCreated, error)
- func (a *Client) CreateToken(params *CreateTokenParams, opts ...ClientOption) (*CreateTokenOK, error)
- func (a *Client) DeleteServiceAccount(serviceAccountID int64, opts ...ClientOption) (*DeleteServiceAccountOK, error)
- func (a *Client) DeleteServiceAccountWithParams(params *DeleteServiceAccountParams, opts ...ClientOption) (*DeleteServiceAccountOK, error)
- func (a *Client) DeleteToken(tokenID int64, serviceAccountID int64, opts ...ClientOption) (*DeleteTokenOK, error)
- func (a *Client) DeleteTokenWithParams(params *DeleteTokenParams, opts ...ClientOption) (*DeleteTokenOK, error)
- func (a *Client) ListTokens(serviceAccountID int64, opts ...ClientOption) (*ListTokensOK, error)
- func (a *Client) ListTokensWithParams(params *ListTokensParams, opts ...ClientOption) (*ListTokensOK, error)
- func (a *Client) RetrieveServiceAccount(serviceAccountID int64, opts ...ClientOption) (*RetrieveServiceAccountOK, error)
- func (a *Client) RetrieveServiceAccountWithParams(params *RetrieveServiceAccountParams, opts ...ClientOption) (*RetrieveServiceAccountOK, error)
- func (a *Client) SearchOrgServiceAccountsWithPaging(params *SearchOrgServiceAccountsWithPagingParams, opts ...ClientOption) (*SearchOrgServiceAccountsWithPagingOK, error)
- func (a *Client) SetTransport(transport runtime.ClientTransport)
- func (a *Client) UpdateServiceAccount(params *UpdateServiceAccountParams, opts ...ClientOption) (*UpdateServiceAccountOK, error)
- type ClientOption
- type ClientService
- type CreateServiceAccountBadRequest
- func (o *CreateServiceAccountBadRequest) Code() int
- func (o *CreateServiceAccountBadRequest) Error() string
- func (o *CreateServiceAccountBadRequest) GetPayload() *models.ErrorResponseBody
- func (o *CreateServiceAccountBadRequest) IsClientError() bool
- func (o *CreateServiceAccountBadRequest) IsCode(code int) bool
- func (o *CreateServiceAccountBadRequest) IsRedirect() bool
- func (o *CreateServiceAccountBadRequest) IsServerError() bool
- func (o *CreateServiceAccountBadRequest) IsSuccess() bool
- func (o *CreateServiceAccountBadRequest) String() string
- type CreateServiceAccountCreated
- func (o *CreateServiceAccountCreated) Code() int
- func (o *CreateServiceAccountCreated) Error() string
- func (o *CreateServiceAccountCreated) GetPayload() *models.ServiceAccountDTO
- func (o *CreateServiceAccountCreated) IsClientError() bool
- func (o *CreateServiceAccountCreated) IsCode(code int) bool
- func (o *CreateServiceAccountCreated) IsRedirect() bool
- func (o *CreateServiceAccountCreated) IsServerError() bool
- func (o *CreateServiceAccountCreated) IsSuccess() bool
- func (o *CreateServiceAccountCreated) String() string
- type CreateServiceAccountForbidden
- func (o *CreateServiceAccountForbidden) Code() int
- func (o *CreateServiceAccountForbidden) Error() string
- func (o *CreateServiceAccountForbidden) GetPayload() *models.ErrorResponseBody
- func (o *CreateServiceAccountForbidden) IsClientError() bool
- func (o *CreateServiceAccountForbidden) IsCode(code int) bool
- func (o *CreateServiceAccountForbidden) IsRedirect() bool
- func (o *CreateServiceAccountForbidden) IsServerError() bool
- func (o *CreateServiceAccountForbidden) IsSuccess() bool
- func (o *CreateServiceAccountForbidden) String() string
- type CreateServiceAccountInternalServerError
- func (o *CreateServiceAccountInternalServerError) Code() int
- func (o *CreateServiceAccountInternalServerError) Error() string
- func (o *CreateServiceAccountInternalServerError) GetPayload() *models.ErrorResponseBody
- func (o *CreateServiceAccountInternalServerError) IsClientError() bool
- func (o *CreateServiceAccountInternalServerError) IsCode(code int) bool
- func (o *CreateServiceAccountInternalServerError) IsRedirect() bool
- func (o *CreateServiceAccountInternalServerError) IsServerError() bool
- func (o *CreateServiceAccountInternalServerError) IsSuccess() bool
- func (o *CreateServiceAccountInternalServerError) String() string
- type CreateServiceAccountParams
- func NewCreateServiceAccountParams() *CreateServiceAccountParams
- func NewCreateServiceAccountParamsWithContext(ctx context.Context) *CreateServiceAccountParams
- func NewCreateServiceAccountParamsWithHTTPClient(client *http.Client) *CreateServiceAccountParams
- func NewCreateServiceAccountParamsWithTimeout(timeout time.Duration) *CreateServiceAccountParams
- func (o *CreateServiceAccountParams) SetBody(body *models.CreateServiceAccountForm)
- func (o *CreateServiceAccountParams) SetContext(ctx context.Context)
- func (o *CreateServiceAccountParams) SetDefaults()
- func (o *CreateServiceAccountParams) SetHTTPClient(client *http.Client)
- func (o *CreateServiceAccountParams) SetTimeout(timeout time.Duration)
- func (o *CreateServiceAccountParams) WithBody(body *models.CreateServiceAccountForm) *CreateServiceAccountParams
- func (o *CreateServiceAccountParams) WithContext(ctx context.Context) *CreateServiceAccountParams
- func (o *CreateServiceAccountParams) WithDefaults() *CreateServiceAccountParams
- func (o *CreateServiceAccountParams) WithHTTPClient(client *http.Client) *CreateServiceAccountParams
- func (o *CreateServiceAccountParams) WithTimeout(timeout time.Duration) *CreateServiceAccountParams
- func (o *CreateServiceAccountParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type CreateServiceAccountReader
- type CreateServiceAccountUnauthorized
- func (o *CreateServiceAccountUnauthorized) Code() int
- func (o *CreateServiceAccountUnauthorized) Error() string
- func (o *CreateServiceAccountUnauthorized) GetPayload() *models.ErrorResponseBody
- func (o *CreateServiceAccountUnauthorized) IsClientError() bool
- func (o *CreateServiceAccountUnauthorized) IsCode(code int) bool
- func (o *CreateServiceAccountUnauthorized) IsRedirect() bool
- func (o *CreateServiceAccountUnauthorized) IsServerError() bool
- func (o *CreateServiceAccountUnauthorized) IsSuccess() bool
- func (o *CreateServiceAccountUnauthorized) String() string
- type CreateTokenBadRequest
- func (o *CreateTokenBadRequest) Code() int
- func (o *CreateTokenBadRequest) Error() string
- func (o *CreateTokenBadRequest) GetPayload() *models.ErrorResponseBody
- func (o *CreateTokenBadRequest) IsClientError() bool
- func (o *CreateTokenBadRequest) IsCode(code int) bool
- func (o *CreateTokenBadRequest) IsRedirect() bool
- func (o *CreateTokenBadRequest) IsServerError() bool
- func (o *CreateTokenBadRequest) IsSuccess() bool
- func (o *CreateTokenBadRequest) String() string
- type CreateTokenConflict
- func (o *CreateTokenConflict) Code() int
- func (o *CreateTokenConflict) Error() string
- func (o *CreateTokenConflict) GetPayload() *models.ErrorResponseBody
- func (o *CreateTokenConflict) IsClientError() bool
- func (o *CreateTokenConflict) IsCode(code int) bool
- func (o *CreateTokenConflict) IsRedirect() bool
- func (o *CreateTokenConflict) IsServerError() bool
- func (o *CreateTokenConflict) IsSuccess() bool
- func (o *CreateTokenConflict) String() string
- type CreateTokenForbidden
- func (o *CreateTokenForbidden) Code() int
- func (o *CreateTokenForbidden) Error() string
- func (o *CreateTokenForbidden) GetPayload() *models.ErrorResponseBody
- func (o *CreateTokenForbidden) IsClientError() bool
- func (o *CreateTokenForbidden) IsCode(code int) bool
- func (o *CreateTokenForbidden) IsRedirect() bool
- func (o *CreateTokenForbidden) IsServerError() bool
- func (o *CreateTokenForbidden) IsSuccess() bool
- func (o *CreateTokenForbidden) String() string
- type CreateTokenInternalServerError
- func (o *CreateTokenInternalServerError) Code() int
- func (o *CreateTokenInternalServerError) Error() string
- func (o *CreateTokenInternalServerError) GetPayload() *models.ErrorResponseBody
- func (o *CreateTokenInternalServerError) IsClientError() bool
- func (o *CreateTokenInternalServerError) IsCode(code int) bool
- func (o *CreateTokenInternalServerError) IsRedirect() bool
- func (o *CreateTokenInternalServerError) IsServerError() bool
- func (o *CreateTokenInternalServerError) IsSuccess() bool
- func (o *CreateTokenInternalServerError) String() string
- type CreateTokenNotFound
- func (o *CreateTokenNotFound) Code() int
- func (o *CreateTokenNotFound) Error() string
- func (o *CreateTokenNotFound) GetPayload() *models.ErrorResponseBody
- func (o *CreateTokenNotFound) IsClientError() bool
- func (o *CreateTokenNotFound) IsCode(code int) bool
- func (o *CreateTokenNotFound) IsRedirect() bool
- func (o *CreateTokenNotFound) IsServerError() bool
- func (o *CreateTokenNotFound) IsSuccess() bool
- func (o *CreateTokenNotFound) String() string
- type CreateTokenOK
- func (o *CreateTokenOK) Code() int
- func (o *CreateTokenOK) Error() string
- func (o *CreateTokenOK) GetPayload() *models.NewAPIKeyResult
- func (o *CreateTokenOK) IsClientError() bool
- func (o *CreateTokenOK) IsCode(code int) bool
- func (o *CreateTokenOK) IsRedirect() bool
- func (o *CreateTokenOK) IsServerError() bool
- func (o *CreateTokenOK) IsSuccess() bool
- func (o *CreateTokenOK) String() string
- type CreateTokenParams
- func (o *CreateTokenParams) SetBody(body *models.AddServiceAccountTokenCommand)
- func (o *CreateTokenParams) SetContext(ctx context.Context)
- func (o *CreateTokenParams) SetDefaults()
- func (o *CreateTokenParams) SetHTTPClient(client *http.Client)
- func (o *CreateTokenParams) SetServiceAccountID(serviceAccountID int64)
- func (o *CreateTokenParams) SetTimeout(timeout time.Duration)
- func (o *CreateTokenParams) WithBody(body *models.AddServiceAccountTokenCommand) *CreateTokenParams
- func (o *CreateTokenParams) WithContext(ctx context.Context) *CreateTokenParams
- func (o *CreateTokenParams) WithDefaults() *CreateTokenParams
- func (o *CreateTokenParams) WithHTTPClient(client *http.Client) *CreateTokenParams
- func (o *CreateTokenParams) WithServiceAccountID(serviceAccountID int64) *CreateTokenParams
- func (o *CreateTokenParams) WithTimeout(timeout time.Duration) *CreateTokenParams
- func (o *CreateTokenParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type CreateTokenReader
- type CreateTokenUnauthorized
- func (o *CreateTokenUnauthorized) Code() int
- func (o *CreateTokenUnauthorized) Error() string
- func (o *CreateTokenUnauthorized) GetPayload() *models.ErrorResponseBody
- func (o *CreateTokenUnauthorized) IsClientError() bool
- func (o *CreateTokenUnauthorized) IsCode(code int) bool
- func (o *CreateTokenUnauthorized) IsRedirect() bool
- func (o *CreateTokenUnauthorized) IsServerError() bool
- func (o *CreateTokenUnauthorized) IsSuccess() bool
- func (o *CreateTokenUnauthorized) String() string
- type DeleteServiceAccountBadRequest
- func (o *DeleteServiceAccountBadRequest) Code() int
- func (o *DeleteServiceAccountBadRequest) Error() string
- func (o *DeleteServiceAccountBadRequest) GetPayload() *models.ErrorResponseBody
- func (o *DeleteServiceAccountBadRequest) IsClientError() bool
- func (o *DeleteServiceAccountBadRequest) IsCode(code int) bool
- func (o *DeleteServiceAccountBadRequest) IsRedirect() bool
- func (o *DeleteServiceAccountBadRequest) IsServerError() bool
- func (o *DeleteServiceAccountBadRequest) IsSuccess() bool
- func (o *DeleteServiceAccountBadRequest) String() string
- type DeleteServiceAccountForbidden
- func (o *DeleteServiceAccountForbidden) Code() int
- func (o *DeleteServiceAccountForbidden) Error() string
- func (o *DeleteServiceAccountForbidden) GetPayload() *models.ErrorResponseBody
- func (o *DeleteServiceAccountForbidden) IsClientError() bool
- func (o *DeleteServiceAccountForbidden) IsCode(code int) bool
- func (o *DeleteServiceAccountForbidden) IsRedirect() bool
- func (o *DeleteServiceAccountForbidden) IsServerError() bool
- func (o *DeleteServiceAccountForbidden) IsSuccess() bool
- func (o *DeleteServiceAccountForbidden) String() string
- type DeleteServiceAccountInternalServerError
- func (o *DeleteServiceAccountInternalServerError) Code() int
- func (o *DeleteServiceAccountInternalServerError) Error() string
- func (o *DeleteServiceAccountInternalServerError) GetPayload() *models.ErrorResponseBody
- func (o *DeleteServiceAccountInternalServerError) IsClientError() bool
- func (o *DeleteServiceAccountInternalServerError) IsCode(code int) bool
- func (o *DeleteServiceAccountInternalServerError) IsRedirect() bool
- func (o *DeleteServiceAccountInternalServerError) IsServerError() bool
- func (o *DeleteServiceAccountInternalServerError) IsSuccess() bool
- func (o *DeleteServiceAccountInternalServerError) String() string
- type DeleteServiceAccountOK
- func (o *DeleteServiceAccountOK) Code() int
- func (o *DeleteServiceAccountOK) Error() string
- func (o *DeleteServiceAccountOK) GetPayload() *models.SuccessResponseBody
- func (o *DeleteServiceAccountOK) IsClientError() bool
- func (o *DeleteServiceAccountOK) IsCode(code int) bool
- func (o *DeleteServiceAccountOK) IsRedirect() bool
- func (o *DeleteServiceAccountOK) IsServerError() bool
- func (o *DeleteServiceAccountOK) IsSuccess() bool
- func (o *DeleteServiceAccountOK) String() string
- type DeleteServiceAccountParams
- func NewDeleteServiceAccountParams() *DeleteServiceAccountParams
- func NewDeleteServiceAccountParamsWithContext(ctx context.Context) *DeleteServiceAccountParams
- func NewDeleteServiceAccountParamsWithHTTPClient(client *http.Client) *DeleteServiceAccountParams
- func NewDeleteServiceAccountParamsWithTimeout(timeout time.Duration) *DeleteServiceAccountParams
- func (o *DeleteServiceAccountParams) SetContext(ctx context.Context)
- func (o *DeleteServiceAccountParams) SetDefaults()
- func (o *DeleteServiceAccountParams) SetHTTPClient(client *http.Client)
- func (o *DeleteServiceAccountParams) SetServiceAccountID(serviceAccountID int64)
- func (o *DeleteServiceAccountParams) SetTimeout(timeout time.Duration)
- func (o *DeleteServiceAccountParams) WithContext(ctx context.Context) *DeleteServiceAccountParams
- func (o *DeleteServiceAccountParams) WithDefaults() *DeleteServiceAccountParams
- func (o *DeleteServiceAccountParams) WithHTTPClient(client *http.Client) *DeleteServiceAccountParams
- func (o *DeleteServiceAccountParams) WithServiceAccountID(serviceAccountID int64) *DeleteServiceAccountParams
- func (o *DeleteServiceAccountParams) WithTimeout(timeout time.Duration) *DeleteServiceAccountParams
- func (o *DeleteServiceAccountParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type DeleteServiceAccountReader
- type DeleteServiceAccountUnauthorized
- func (o *DeleteServiceAccountUnauthorized) Code() int
- func (o *DeleteServiceAccountUnauthorized) Error() string
- func (o *DeleteServiceAccountUnauthorized) GetPayload() *models.ErrorResponseBody
- func (o *DeleteServiceAccountUnauthorized) IsClientError() bool
- func (o *DeleteServiceAccountUnauthorized) IsCode(code int) bool
- func (o *DeleteServiceAccountUnauthorized) IsRedirect() bool
- func (o *DeleteServiceAccountUnauthorized) IsServerError() bool
- func (o *DeleteServiceAccountUnauthorized) IsSuccess() bool
- func (o *DeleteServiceAccountUnauthorized) String() string
- type DeleteTokenBadRequest
- func (o *DeleteTokenBadRequest) Code() int
- func (o *DeleteTokenBadRequest) Error() string
- func (o *DeleteTokenBadRequest) GetPayload() *models.ErrorResponseBody
- func (o *DeleteTokenBadRequest) IsClientError() bool
- func (o *DeleteTokenBadRequest) IsCode(code int) bool
- func (o *DeleteTokenBadRequest) IsRedirect() bool
- func (o *DeleteTokenBadRequest) IsServerError() bool
- func (o *DeleteTokenBadRequest) IsSuccess() bool
- func (o *DeleteTokenBadRequest) String() string
- type DeleteTokenForbidden
- func (o *DeleteTokenForbidden) Code() int
- func (o *DeleteTokenForbidden) Error() string
- func (o *DeleteTokenForbidden) GetPayload() *models.ErrorResponseBody
- func (o *DeleteTokenForbidden) IsClientError() bool
- func (o *DeleteTokenForbidden) IsCode(code int) bool
- func (o *DeleteTokenForbidden) IsRedirect() bool
- func (o *DeleteTokenForbidden) IsServerError() bool
- func (o *DeleteTokenForbidden) IsSuccess() bool
- func (o *DeleteTokenForbidden) String() string
- type DeleteTokenInternalServerError
- func (o *DeleteTokenInternalServerError) Code() int
- func (o *DeleteTokenInternalServerError) Error() string
- func (o *DeleteTokenInternalServerError) GetPayload() *models.ErrorResponseBody
- func (o *DeleteTokenInternalServerError) IsClientError() bool
- func (o *DeleteTokenInternalServerError) IsCode(code int) bool
- func (o *DeleteTokenInternalServerError) IsRedirect() bool
- func (o *DeleteTokenInternalServerError) IsServerError() bool
- func (o *DeleteTokenInternalServerError) IsSuccess() bool
- func (o *DeleteTokenInternalServerError) String() string
- type DeleteTokenNotFound
- func (o *DeleteTokenNotFound) Code() int
- func (o *DeleteTokenNotFound) Error() string
- func (o *DeleteTokenNotFound) GetPayload() *models.ErrorResponseBody
- func (o *DeleteTokenNotFound) IsClientError() bool
- func (o *DeleteTokenNotFound) IsCode(code int) bool
- func (o *DeleteTokenNotFound) IsRedirect() bool
- func (o *DeleteTokenNotFound) IsServerError() bool
- func (o *DeleteTokenNotFound) IsSuccess() bool
- func (o *DeleteTokenNotFound) String() string
- type DeleteTokenOK
- func (o *DeleteTokenOK) Code() int
- func (o *DeleteTokenOK) Error() string
- func (o *DeleteTokenOK) GetPayload() *models.SuccessResponseBody
- func (o *DeleteTokenOK) IsClientError() bool
- func (o *DeleteTokenOK) IsCode(code int) bool
- func (o *DeleteTokenOK) IsRedirect() bool
- func (o *DeleteTokenOK) IsServerError() bool
- func (o *DeleteTokenOK) IsSuccess() bool
- func (o *DeleteTokenOK) String() string
- type DeleteTokenParams
- func (o *DeleteTokenParams) SetContext(ctx context.Context)
- func (o *DeleteTokenParams) SetDefaults()
- func (o *DeleteTokenParams) SetHTTPClient(client *http.Client)
- func (o *DeleteTokenParams) SetServiceAccountID(serviceAccountID int64)
- func (o *DeleteTokenParams) SetTimeout(timeout time.Duration)
- func (o *DeleteTokenParams) SetTokenID(tokenID int64)
- func (o *DeleteTokenParams) WithContext(ctx context.Context) *DeleteTokenParams
- func (o *DeleteTokenParams) WithDefaults() *DeleteTokenParams
- func (o *DeleteTokenParams) WithHTTPClient(client *http.Client) *DeleteTokenParams
- func (o *DeleteTokenParams) WithServiceAccountID(serviceAccountID int64) *DeleteTokenParams
- func (o *DeleteTokenParams) WithTimeout(timeout time.Duration) *DeleteTokenParams
- func (o *DeleteTokenParams) WithTokenID(tokenID int64) *DeleteTokenParams
- func (o *DeleteTokenParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type DeleteTokenReader
- type DeleteTokenUnauthorized
- func (o *DeleteTokenUnauthorized) Code() int
- func (o *DeleteTokenUnauthorized) Error() string
- func (o *DeleteTokenUnauthorized) GetPayload() *models.ErrorResponseBody
- func (o *DeleteTokenUnauthorized) IsClientError() bool
- func (o *DeleteTokenUnauthorized) IsCode(code int) bool
- func (o *DeleteTokenUnauthorized) IsRedirect() bool
- func (o *DeleteTokenUnauthorized) IsServerError() bool
- func (o *DeleteTokenUnauthorized) IsSuccess() bool
- func (o *DeleteTokenUnauthorized) String() string
- type ListTokensBadRequest
- func (o *ListTokensBadRequest) Code() int
- func (o *ListTokensBadRequest) Error() string
- func (o *ListTokensBadRequest) GetPayload() *models.ErrorResponseBody
- func (o *ListTokensBadRequest) IsClientError() bool
- func (o *ListTokensBadRequest) IsCode(code int) bool
- func (o *ListTokensBadRequest) IsRedirect() bool
- func (o *ListTokensBadRequest) IsServerError() bool
- func (o *ListTokensBadRequest) IsSuccess() bool
- func (o *ListTokensBadRequest) String() string
- type ListTokensForbidden
- func (o *ListTokensForbidden) Code() int
- func (o *ListTokensForbidden) Error() string
- func (o *ListTokensForbidden) GetPayload() *models.ErrorResponseBody
- func (o *ListTokensForbidden) IsClientError() bool
- func (o *ListTokensForbidden) IsCode(code int) bool
- func (o *ListTokensForbidden) IsRedirect() bool
- func (o *ListTokensForbidden) IsServerError() bool
- func (o *ListTokensForbidden) IsSuccess() bool
- func (o *ListTokensForbidden) String() string
- type ListTokensInternalServerError
- func (o *ListTokensInternalServerError) Code() int
- func (o *ListTokensInternalServerError) Error() string
- func (o *ListTokensInternalServerError) GetPayload() *models.ErrorResponseBody
- func (o *ListTokensInternalServerError) IsClientError() bool
- func (o *ListTokensInternalServerError) IsCode(code int) bool
- func (o *ListTokensInternalServerError) IsRedirect() bool
- func (o *ListTokensInternalServerError) IsServerError() bool
- func (o *ListTokensInternalServerError) IsSuccess() bool
- func (o *ListTokensInternalServerError) String() string
- type ListTokensOK
- func (o *ListTokensOK) Code() int
- func (o *ListTokensOK) Error() string
- func (o *ListTokensOK) GetPayload() []*models.TokenDTO
- func (o *ListTokensOK) IsClientError() bool
- func (o *ListTokensOK) IsCode(code int) bool
- func (o *ListTokensOK) IsRedirect() bool
- func (o *ListTokensOK) IsServerError() bool
- func (o *ListTokensOK) IsSuccess() bool
- func (o *ListTokensOK) String() string
- type ListTokensParams
- func (o *ListTokensParams) SetContext(ctx context.Context)
- func (o *ListTokensParams) SetDefaults()
- func (o *ListTokensParams) SetHTTPClient(client *http.Client)
- func (o *ListTokensParams) SetServiceAccountID(serviceAccountID int64)
- func (o *ListTokensParams) SetTimeout(timeout time.Duration)
- func (o *ListTokensParams) WithContext(ctx context.Context) *ListTokensParams
- func (o *ListTokensParams) WithDefaults() *ListTokensParams
- func (o *ListTokensParams) WithHTTPClient(client *http.Client) *ListTokensParams
- func (o *ListTokensParams) WithServiceAccountID(serviceAccountID int64) *ListTokensParams
- func (o *ListTokensParams) WithTimeout(timeout time.Duration) *ListTokensParams
- func (o *ListTokensParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type ListTokensReader
- type ListTokensUnauthorized
- func (o *ListTokensUnauthorized) Code() int
- func (o *ListTokensUnauthorized) Error() string
- func (o *ListTokensUnauthorized) GetPayload() *models.ErrorResponseBody
- func (o *ListTokensUnauthorized) IsClientError() bool
- func (o *ListTokensUnauthorized) IsCode(code int) bool
- func (o *ListTokensUnauthorized) IsRedirect() bool
- func (o *ListTokensUnauthorized) IsServerError() bool
- func (o *ListTokensUnauthorized) IsSuccess() bool
- func (o *ListTokensUnauthorized) String() string
- type RetrieveServiceAccountBadRequest
- func (o *RetrieveServiceAccountBadRequest) Code() int
- func (o *RetrieveServiceAccountBadRequest) Error() string
- func (o *RetrieveServiceAccountBadRequest) GetPayload() *models.ErrorResponseBody
- func (o *RetrieveServiceAccountBadRequest) IsClientError() bool
- func (o *RetrieveServiceAccountBadRequest) IsCode(code int) bool
- func (o *RetrieveServiceAccountBadRequest) IsRedirect() bool
- func (o *RetrieveServiceAccountBadRequest) IsServerError() bool
- func (o *RetrieveServiceAccountBadRequest) IsSuccess() bool
- func (o *RetrieveServiceAccountBadRequest) String() string
- type RetrieveServiceAccountForbidden
- func (o *RetrieveServiceAccountForbidden) Code() int
- func (o *RetrieveServiceAccountForbidden) Error() string
- func (o *RetrieveServiceAccountForbidden) GetPayload() *models.ErrorResponseBody
- func (o *RetrieveServiceAccountForbidden) IsClientError() bool
- func (o *RetrieveServiceAccountForbidden) IsCode(code int) bool
- func (o *RetrieveServiceAccountForbidden) IsRedirect() bool
- func (o *RetrieveServiceAccountForbidden) IsServerError() bool
- func (o *RetrieveServiceAccountForbidden) IsSuccess() bool
- func (o *RetrieveServiceAccountForbidden) String() string
- type RetrieveServiceAccountInternalServerError
- func (o *RetrieveServiceAccountInternalServerError) Code() int
- func (o *RetrieveServiceAccountInternalServerError) Error() string
- func (o *RetrieveServiceAccountInternalServerError) GetPayload() *models.ErrorResponseBody
- func (o *RetrieveServiceAccountInternalServerError) IsClientError() bool
- func (o *RetrieveServiceAccountInternalServerError) IsCode(code int) bool
- func (o *RetrieveServiceAccountInternalServerError) IsRedirect() bool
- func (o *RetrieveServiceAccountInternalServerError) IsServerError() bool
- func (o *RetrieveServiceAccountInternalServerError) IsSuccess() bool
- func (o *RetrieveServiceAccountInternalServerError) String() string
- type RetrieveServiceAccountNotFound
- func (o *RetrieveServiceAccountNotFound) Code() int
- func (o *RetrieveServiceAccountNotFound) Error() string
- func (o *RetrieveServiceAccountNotFound) GetPayload() *models.ErrorResponseBody
- func (o *RetrieveServiceAccountNotFound) IsClientError() bool
- func (o *RetrieveServiceAccountNotFound) IsCode(code int) bool
- func (o *RetrieveServiceAccountNotFound) IsRedirect() bool
- func (o *RetrieveServiceAccountNotFound) IsServerError() bool
- func (o *RetrieveServiceAccountNotFound) IsSuccess() bool
- func (o *RetrieveServiceAccountNotFound) String() string
- type RetrieveServiceAccountOK
- func (o *RetrieveServiceAccountOK) Code() int
- func (o *RetrieveServiceAccountOK) Error() string
- func (o *RetrieveServiceAccountOK) GetPayload() *models.ServiceAccountDTO
- func (o *RetrieveServiceAccountOK) IsClientError() bool
- func (o *RetrieveServiceAccountOK) IsCode(code int) bool
- func (o *RetrieveServiceAccountOK) IsRedirect() bool
- func (o *RetrieveServiceAccountOK) IsServerError() bool
- func (o *RetrieveServiceAccountOK) IsSuccess() bool
- func (o *RetrieveServiceAccountOK) String() string
- type RetrieveServiceAccountParams
- func NewRetrieveServiceAccountParams() *RetrieveServiceAccountParams
- func NewRetrieveServiceAccountParamsWithContext(ctx context.Context) *RetrieveServiceAccountParams
- func NewRetrieveServiceAccountParamsWithHTTPClient(client *http.Client) *RetrieveServiceAccountParams
- func NewRetrieveServiceAccountParamsWithTimeout(timeout time.Duration) *RetrieveServiceAccountParams
- func (o *RetrieveServiceAccountParams) SetContext(ctx context.Context)
- func (o *RetrieveServiceAccountParams) SetDefaults()
- func (o *RetrieveServiceAccountParams) SetHTTPClient(client *http.Client)
- func (o *RetrieveServiceAccountParams) SetServiceAccountID(serviceAccountID int64)
- func (o *RetrieveServiceAccountParams) SetTimeout(timeout time.Duration)
- func (o *RetrieveServiceAccountParams) WithContext(ctx context.Context) *RetrieveServiceAccountParams
- func (o *RetrieveServiceAccountParams) WithDefaults() *RetrieveServiceAccountParams
- func (o *RetrieveServiceAccountParams) WithHTTPClient(client *http.Client) *RetrieveServiceAccountParams
- func (o *RetrieveServiceAccountParams) WithServiceAccountID(serviceAccountID int64) *RetrieveServiceAccountParams
- func (o *RetrieveServiceAccountParams) WithTimeout(timeout time.Duration) *RetrieveServiceAccountParams
- func (o *RetrieveServiceAccountParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type RetrieveServiceAccountReader
- type RetrieveServiceAccountUnauthorized
- func (o *RetrieveServiceAccountUnauthorized) Code() int
- func (o *RetrieveServiceAccountUnauthorized) Error() string
- func (o *RetrieveServiceAccountUnauthorized) GetPayload() *models.ErrorResponseBody
- func (o *RetrieveServiceAccountUnauthorized) IsClientError() bool
- func (o *RetrieveServiceAccountUnauthorized) IsCode(code int) bool
- func (o *RetrieveServiceAccountUnauthorized) IsRedirect() bool
- func (o *RetrieveServiceAccountUnauthorized) IsServerError() bool
- func (o *RetrieveServiceAccountUnauthorized) IsSuccess() bool
- func (o *RetrieveServiceAccountUnauthorized) String() string
- type SearchOrgServiceAccountsWithPagingForbidden
- func (o *SearchOrgServiceAccountsWithPagingForbidden) Code() int
- func (o *SearchOrgServiceAccountsWithPagingForbidden) Error() string
- func (o *SearchOrgServiceAccountsWithPagingForbidden) GetPayload() *models.ErrorResponseBody
- func (o *SearchOrgServiceAccountsWithPagingForbidden) IsClientError() bool
- func (o *SearchOrgServiceAccountsWithPagingForbidden) IsCode(code int) bool
- func (o *SearchOrgServiceAccountsWithPagingForbidden) IsRedirect() bool
- func (o *SearchOrgServiceAccountsWithPagingForbidden) IsServerError() bool
- func (o *SearchOrgServiceAccountsWithPagingForbidden) IsSuccess() bool
- func (o *SearchOrgServiceAccountsWithPagingForbidden) String() string
- type SearchOrgServiceAccountsWithPagingInternalServerError
- func (o *SearchOrgServiceAccountsWithPagingInternalServerError) Code() int
- func (o *SearchOrgServiceAccountsWithPagingInternalServerError) Error() string
- func (o *SearchOrgServiceAccountsWithPagingInternalServerError) GetPayload() *models.ErrorResponseBody
- func (o *SearchOrgServiceAccountsWithPagingInternalServerError) IsClientError() bool
- func (o *SearchOrgServiceAccountsWithPagingInternalServerError) IsCode(code int) bool
- func (o *SearchOrgServiceAccountsWithPagingInternalServerError) IsRedirect() bool
- func (o *SearchOrgServiceAccountsWithPagingInternalServerError) IsServerError() bool
- func (o *SearchOrgServiceAccountsWithPagingInternalServerError) IsSuccess() bool
- func (o *SearchOrgServiceAccountsWithPagingInternalServerError) String() string
- type SearchOrgServiceAccountsWithPagingOK
- func (o *SearchOrgServiceAccountsWithPagingOK) Code() int
- func (o *SearchOrgServiceAccountsWithPagingOK) Error() string
- func (o *SearchOrgServiceAccountsWithPagingOK) GetPayload() *models.SearchOrgServiceAccountsResult
- func (o *SearchOrgServiceAccountsWithPagingOK) IsClientError() bool
- func (o *SearchOrgServiceAccountsWithPagingOK) IsCode(code int) bool
- func (o *SearchOrgServiceAccountsWithPagingOK) IsRedirect() bool
- func (o *SearchOrgServiceAccountsWithPagingOK) IsServerError() bool
- func (o *SearchOrgServiceAccountsWithPagingOK) IsSuccess() bool
- func (o *SearchOrgServiceAccountsWithPagingOK) String() string
- type SearchOrgServiceAccountsWithPagingParams
- func NewSearchOrgServiceAccountsWithPagingParams() *SearchOrgServiceAccountsWithPagingParams
- func NewSearchOrgServiceAccountsWithPagingParamsWithContext(ctx context.Context) *SearchOrgServiceAccountsWithPagingParams
- func NewSearchOrgServiceAccountsWithPagingParamsWithHTTPClient(client *http.Client) *SearchOrgServiceAccountsWithPagingParams
- func NewSearchOrgServiceAccountsWithPagingParamsWithTimeout(timeout time.Duration) *SearchOrgServiceAccountsWithPagingParams
- func (o *SearchOrgServiceAccountsWithPagingParams) SetContext(ctx context.Context)
- func (o *SearchOrgServiceAccountsWithPagingParams) SetDefaults()
- func (o *SearchOrgServiceAccountsWithPagingParams) SetDisabled(disabled *bool)
- func (o *SearchOrgServiceAccountsWithPagingParams) SetExpiredTokens(expiredTokens *bool)
- func (o *SearchOrgServiceAccountsWithPagingParams) SetHTTPClient(client *http.Client)
- func (o *SearchOrgServiceAccountsWithPagingParams) SetPage(page *int64)
- func (o *SearchOrgServiceAccountsWithPagingParams) SetPerpage(perpage *int64)
- func (o *SearchOrgServiceAccountsWithPagingParams) SetQuery(query *string)
- func (o *SearchOrgServiceAccountsWithPagingParams) SetTimeout(timeout time.Duration)
- func (o *SearchOrgServiceAccountsWithPagingParams) WithContext(ctx context.Context) *SearchOrgServiceAccountsWithPagingParams
- func (o *SearchOrgServiceAccountsWithPagingParams) WithDefaults() *SearchOrgServiceAccountsWithPagingParams
- func (o *SearchOrgServiceAccountsWithPagingParams) WithDisabled(disabled *bool) *SearchOrgServiceAccountsWithPagingParams
- func (o *SearchOrgServiceAccountsWithPagingParams) WithExpiredTokens(expiredTokens *bool) *SearchOrgServiceAccountsWithPagingParams
- func (o *SearchOrgServiceAccountsWithPagingParams) WithHTTPClient(client *http.Client) *SearchOrgServiceAccountsWithPagingParams
- func (o *SearchOrgServiceAccountsWithPagingParams) WithPage(page *int64) *SearchOrgServiceAccountsWithPagingParams
- func (o *SearchOrgServiceAccountsWithPagingParams) WithPerpage(perpage *int64) *SearchOrgServiceAccountsWithPagingParams
- func (o *SearchOrgServiceAccountsWithPagingParams) WithQuery(query *string) *SearchOrgServiceAccountsWithPagingParams
- func (o *SearchOrgServiceAccountsWithPagingParams) WithTimeout(timeout time.Duration) *SearchOrgServiceAccountsWithPagingParams
- func (o *SearchOrgServiceAccountsWithPagingParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type SearchOrgServiceAccountsWithPagingReader
- type SearchOrgServiceAccountsWithPagingUnauthorized
- func (o *SearchOrgServiceAccountsWithPagingUnauthorized) Code() int
- func (o *SearchOrgServiceAccountsWithPagingUnauthorized) Error() string
- func (o *SearchOrgServiceAccountsWithPagingUnauthorized) GetPayload() *models.ErrorResponseBody
- func (o *SearchOrgServiceAccountsWithPagingUnauthorized) IsClientError() bool
- func (o *SearchOrgServiceAccountsWithPagingUnauthorized) IsCode(code int) bool
- func (o *SearchOrgServiceAccountsWithPagingUnauthorized) IsRedirect() bool
- func (o *SearchOrgServiceAccountsWithPagingUnauthorized) IsServerError() bool
- func (o *SearchOrgServiceAccountsWithPagingUnauthorized) IsSuccess() bool
- func (o *SearchOrgServiceAccountsWithPagingUnauthorized) String() string
- type UpdateServiceAccountBadRequest
- func (o *UpdateServiceAccountBadRequest) Code() int
- func (o *UpdateServiceAccountBadRequest) Error() string
- func (o *UpdateServiceAccountBadRequest) GetPayload() *models.ErrorResponseBody
- func (o *UpdateServiceAccountBadRequest) IsClientError() bool
- func (o *UpdateServiceAccountBadRequest) IsCode(code int) bool
- func (o *UpdateServiceAccountBadRequest) IsRedirect() bool
- func (o *UpdateServiceAccountBadRequest) IsServerError() bool
- func (o *UpdateServiceAccountBadRequest) IsSuccess() bool
- func (o *UpdateServiceAccountBadRequest) String() string
- type UpdateServiceAccountForbidden
- func (o *UpdateServiceAccountForbidden) Code() int
- func (o *UpdateServiceAccountForbidden) Error() string
- func (o *UpdateServiceAccountForbidden) GetPayload() *models.ErrorResponseBody
- func (o *UpdateServiceAccountForbidden) IsClientError() bool
- func (o *UpdateServiceAccountForbidden) IsCode(code int) bool
- func (o *UpdateServiceAccountForbidden) IsRedirect() bool
- func (o *UpdateServiceAccountForbidden) IsServerError() bool
- func (o *UpdateServiceAccountForbidden) IsSuccess() bool
- func (o *UpdateServiceAccountForbidden) String() string
- type UpdateServiceAccountInternalServerError
- func (o *UpdateServiceAccountInternalServerError) Code() int
- func (o *UpdateServiceAccountInternalServerError) Error() string
- func (o *UpdateServiceAccountInternalServerError) GetPayload() *models.ErrorResponseBody
- func (o *UpdateServiceAccountInternalServerError) IsClientError() bool
- func (o *UpdateServiceAccountInternalServerError) IsCode(code int) bool
- func (o *UpdateServiceAccountInternalServerError) IsRedirect() bool
- func (o *UpdateServiceAccountInternalServerError) IsServerError() bool
- func (o *UpdateServiceAccountInternalServerError) IsSuccess() bool
- func (o *UpdateServiceAccountInternalServerError) String() string
- type UpdateServiceAccountNotFound
- func (o *UpdateServiceAccountNotFound) Code() int
- func (o *UpdateServiceAccountNotFound) Error() string
- func (o *UpdateServiceAccountNotFound) GetPayload() *models.ErrorResponseBody
- func (o *UpdateServiceAccountNotFound) IsClientError() bool
- func (o *UpdateServiceAccountNotFound) IsCode(code int) bool
- func (o *UpdateServiceAccountNotFound) IsRedirect() bool
- func (o *UpdateServiceAccountNotFound) IsServerError() bool
- func (o *UpdateServiceAccountNotFound) IsSuccess() bool
- func (o *UpdateServiceAccountNotFound) String() string
- type UpdateServiceAccountOK
- func (o *UpdateServiceAccountOK) Code() int
- func (o *UpdateServiceAccountOK) Error() string
- func (o *UpdateServiceAccountOK) GetPayload() *models.UpdateServiceAccountOKBody
- func (o *UpdateServiceAccountOK) IsClientError() bool
- func (o *UpdateServiceAccountOK) IsCode(code int) bool
- func (o *UpdateServiceAccountOK) IsRedirect() bool
- func (o *UpdateServiceAccountOK) IsServerError() bool
- func (o *UpdateServiceAccountOK) IsSuccess() bool
- func (o *UpdateServiceAccountOK) String() string
- type UpdateServiceAccountParams
- func NewUpdateServiceAccountParams() *UpdateServiceAccountParams
- func NewUpdateServiceAccountParamsWithContext(ctx context.Context) *UpdateServiceAccountParams
- func NewUpdateServiceAccountParamsWithHTTPClient(client *http.Client) *UpdateServiceAccountParams
- func NewUpdateServiceAccountParamsWithTimeout(timeout time.Duration) *UpdateServiceAccountParams
- func (o *UpdateServiceAccountParams) SetBody(body *models.UpdateServiceAccountForm)
- func (o *UpdateServiceAccountParams) SetContext(ctx context.Context)
- func (o *UpdateServiceAccountParams) SetDefaults()
- func (o *UpdateServiceAccountParams) SetHTTPClient(client *http.Client)
- func (o *UpdateServiceAccountParams) SetServiceAccountID(serviceAccountID int64)
- func (o *UpdateServiceAccountParams) SetTimeout(timeout time.Duration)
- func (o *UpdateServiceAccountParams) WithBody(body *models.UpdateServiceAccountForm) *UpdateServiceAccountParams
- func (o *UpdateServiceAccountParams) WithContext(ctx context.Context) *UpdateServiceAccountParams
- func (o *UpdateServiceAccountParams) WithDefaults() *UpdateServiceAccountParams
- func (o *UpdateServiceAccountParams) WithHTTPClient(client *http.Client) *UpdateServiceAccountParams
- func (o *UpdateServiceAccountParams) WithServiceAccountID(serviceAccountID int64) *UpdateServiceAccountParams
- func (o *UpdateServiceAccountParams) WithTimeout(timeout time.Duration) *UpdateServiceAccountParams
- func (o *UpdateServiceAccountParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type UpdateServiceAccountReader
- type UpdateServiceAccountUnauthorized
- func (o *UpdateServiceAccountUnauthorized) Code() int
- func (o *UpdateServiceAccountUnauthorized) Error() string
- func (o *UpdateServiceAccountUnauthorized) GetPayload() *models.ErrorResponseBody
- func (o *UpdateServiceAccountUnauthorized) IsClientError() bool
- func (o *UpdateServiceAccountUnauthorized) IsCode(code int) bool
- func (o *UpdateServiceAccountUnauthorized) IsRedirect() bool
- func (o *UpdateServiceAccountUnauthorized) IsServerError() bool
- func (o *UpdateServiceAccountUnauthorized) IsSuccess() bool
- func (o *UpdateServiceAccountUnauthorized) String() string
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 ¶
func (o *CreateServiceAccountBadRequest) Code() int
Code gets the status code for the create service account bad request response
func (*CreateServiceAccountBadRequest) Error ¶
func (o *CreateServiceAccountBadRequest) Error() string
func (*CreateServiceAccountBadRequest) GetPayload ¶
func (o *CreateServiceAccountBadRequest) GetPayload() *models.ErrorResponseBody
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 ¶
func (o *CreateServiceAccountBadRequest) String() 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 (o *CreateServiceAccountCreated) Error() string
func (*CreateServiceAccountCreated) GetPayload ¶
func (o *CreateServiceAccountCreated) GetPayload() *models.ServiceAccountDTO
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 ¶
func (o *CreateServiceAccountForbidden) Code() int
Code gets the status code for the create service account forbidden response
func (*CreateServiceAccountForbidden) Error ¶
func (o *CreateServiceAccountForbidden) Error() string
func (*CreateServiceAccountForbidden) GetPayload ¶
func (o *CreateServiceAccountForbidden) GetPayload() *models.ErrorResponseBody
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 ¶
func (o *CreateServiceAccountForbidden) String() 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 ¶
func (o *CreateServiceAccountInternalServerError) Code() int
Code gets the status code for the create service account internal server error response
func (*CreateServiceAccountInternalServerError) Error ¶
func (o *CreateServiceAccountInternalServerError) Error() string
func (*CreateServiceAccountInternalServerError) GetPayload ¶
func (o *CreateServiceAccountInternalServerError) GetPayload() *models.ErrorResponseBody
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 ¶
func (o *CreateServiceAccountInternalServerError) IsCode(code int) bool
IsCode returns true when this create service account internal server error response a status code equal to that given
func (*CreateServiceAccountInternalServerError) IsRedirect ¶
func (o *CreateServiceAccountInternalServerError) IsRedirect() bool
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 ¶
func (o *CreateServiceAccountInternalServerError) IsSuccess() bool
IsSuccess returns true when this create service account internal server error response has a 2xx status code
func (*CreateServiceAccountInternalServerError) String ¶
func (o *CreateServiceAccountInternalServerError) String() 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 ¶
func (o *CreateServiceAccountParams) SetBody(body *models.CreateServiceAccountForm)
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 ¶
func (o *CreateServiceAccountParams) WithBody(body *models.CreateServiceAccountForm) *CreateServiceAccountParams
WithBody adds the body to the create service account params
func (*CreateServiceAccountParams) WithContext ¶
func (o *CreateServiceAccountParams) WithContext(ctx context.Context) *CreateServiceAccountParams
WithContext adds the context to the create service account params
func (*CreateServiceAccountParams) WithDefaults ¶
func (o *CreateServiceAccountParams) WithDefaults() *CreateServiceAccountParams
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 ¶
func (o *CreateServiceAccountParams) WithHTTPClient(client *http.Client) *CreateServiceAccountParams
WithHTTPClient adds the HTTPClient to the create service account params
func (*CreateServiceAccountParams) WithTimeout ¶
func (o *CreateServiceAccountParams) WithTimeout(timeout time.Duration) *CreateServiceAccountParams
WithTimeout adds the timeout to the create service account params
func (*CreateServiceAccountParams) WriteToRequest ¶
func (o *CreateServiceAccountParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
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 {
}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 ¶
func (o *CreateServiceAccountUnauthorized) Code() int
Code gets the status code for the create service account unauthorized response
func (*CreateServiceAccountUnauthorized) Error ¶
func (o *CreateServiceAccountUnauthorized) Error() string
func (*CreateServiceAccountUnauthorized) GetPayload ¶
func (o *CreateServiceAccountUnauthorized) GetPayload() *models.ErrorResponseBody
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 ¶
func (o *CreateServiceAccountUnauthorized) String() 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 (o *CreateTokenBadRequest) GetPayload() *models.ErrorResponseBody
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 (o *CreateTokenForbidden) GetPayload() *models.ErrorResponseBody
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 ¶
func (o *CreateTokenInternalServerError) Code() int
Code gets the status code for the create token internal server error response
func (*CreateTokenInternalServerError) Error ¶
func (o *CreateTokenInternalServerError) Error() string
func (*CreateTokenInternalServerError) GetPayload ¶
func (o *CreateTokenInternalServerError) GetPayload() *models.ErrorResponseBody
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 ¶
func (o *CreateTokenInternalServerError) String() 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 ¶
func (o *CreateTokenParams) SetBody(body *models.AddServiceAccountTokenCommand)
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 ¶
func (o *CreateTokenParams) WithBody(body *models.AddServiceAccountTokenCommand) *CreateTokenParams
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 {
}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 (o *CreateTokenUnauthorized) GetPayload() *models.ErrorResponseBody
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 ¶
func (o *DeleteServiceAccountBadRequest) Code() int
Code gets the status code for the delete service account bad request response
func (*DeleteServiceAccountBadRequest) Error ¶
func (o *DeleteServiceAccountBadRequest) Error() string
func (*DeleteServiceAccountBadRequest) GetPayload ¶
func (o *DeleteServiceAccountBadRequest) GetPayload() *models.ErrorResponseBody
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 ¶
func (o *DeleteServiceAccountBadRequest) String() 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 ¶
func (o *DeleteServiceAccountForbidden) Code() int
Code gets the status code for the delete service account forbidden response
func (*DeleteServiceAccountForbidden) Error ¶
func (o *DeleteServiceAccountForbidden) Error() string
func (*DeleteServiceAccountForbidden) GetPayload ¶
func (o *DeleteServiceAccountForbidden) GetPayload() *models.ErrorResponseBody
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 ¶
func (o *DeleteServiceAccountForbidden) String() 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 ¶
func (o *DeleteServiceAccountInternalServerError) Code() int
Code gets the status code for the delete service account internal server error response
func (*DeleteServiceAccountInternalServerError) Error ¶
func (o *DeleteServiceAccountInternalServerError) Error() string
func (*DeleteServiceAccountInternalServerError) GetPayload ¶
func (o *DeleteServiceAccountInternalServerError) GetPayload() *models.ErrorResponseBody
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 ¶
func (o *DeleteServiceAccountInternalServerError) IsCode(code int) bool
IsCode returns true when this delete service account internal server error response a status code equal to that given
func (*DeleteServiceAccountInternalServerError) IsRedirect ¶
func (o *DeleteServiceAccountInternalServerError) IsRedirect() bool
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 ¶
func (o *DeleteServiceAccountInternalServerError) IsSuccess() bool
IsSuccess returns true when this delete service account internal server error response has a 2xx status code
func (*DeleteServiceAccountInternalServerError) String ¶
func (o *DeleteServiceAccountInternalServerError) String() 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 (o *DeleteServiceAccountOK) GetPayload() *models.SuccessResponseBody
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 ¶
func (o *DeleteServiceAccountParams) WithContext(ctx context.Context) *DeleteServiceAccountParams
WithContext adds the context to the delete service account params
func (*DeleteServiceAccountParams) WithDefaults ¶
func (o *DeleteServiceAccountParams) WithDefaults() *DeleteServiceAccountParams
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 ¶
func (o *DeleteServiceAccountParams) WithHTTPClient(client *http.Client) *DeleteServiceAccountParams
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 ¶
func (o *DeleteServiceAccountParams) WithTimeout(timeout time.Duration) *DeleteServiceAccountParams
WithTimeout adds the timeout to the delete service account params
func (*DeleteServiceAccountParams) WriteToRequest ¶
func (o *DeleteServiceAccountParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
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 {
}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 ¶
func (o *DeleteServiceAccountUnauthorized) Code() int
Code gets the status code for the delete service account unauthorized response
func (*DeleteServiceAccountUnauthorized) Error ¶
func (o *DeleteServiceAccountUnauthorized) Error() string
func (*DeleteServiceAccountUnauthorized) GetPayload ¶
func (o *DeleteServiceAccountUnauthorized) GetPayload() *models.ErrorResponseBody
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 ¶
func (o *DeleteServiceAccountUnauthorized) String() 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 (o *DeleteTokenBadRequest) GetPayload() *models.ErrorResponseBody
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 (o *DeleteTokenForbidden) GetPayload() *models.ErrorResponseBody
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 ¶
func (o *DeleteTokenInternalServerError) Code() int
Code gets the status code for the delete token internal server error response
func (*DeleteTokenInternalServerError) Error ¶
func (o *DeleteTokenInternalServerError) Error() string
func (*DeleteTokenInternalServerError) GetPayload ¶
func (o *DeleteTokenInternalServerError) GetPayload() *models.ErrorResponseBody
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 ¶
func (o *DeleteTokenInternalServerError) String() 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 {
}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 (o *DeleteTokenUnauthorized) GetPayload() *models.ErrorResponseBody
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 (o *ListTokensBadRequest) GetPayload() *models.ErrorResponseBody
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 ¶
func (o *ListTokensInternalServerError) Code() int
Code gets the status code for the list tokens internal server error response
func (*ListTokensInternalServerError) Error ¶
func (o *ListTokensInternalServerError) Error() string
func (*ListTokensInternalServerError) GetPayload ¶
func (o *ListTokensInternalServerError) GetPayload() *models.ErrorResponseBody
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 ¶
func (o *ListTokensInternalServerError) String() string
type ListTokensOK ¶
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 {
}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 (o *ListTokensUnauthorized) GetPayload() *models.ErrorResponseBody
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 ¶
func (o *RetrieveServiceAccountBadRequest) Code() int
Code gets the status code for the retrieve service account bad request response
func (*RetrieveServiceAccountBadRequest) Error ¶
func (o *RetrieveServiceAccountBadRequest) Error() string
func (*RetrieveServiceAccountBadRequest) GetPayload ¶
func (o *RetrieveServiceAccountBadRequest) GetPayload() *models.ErrorResponseBody
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 ¶
func (o *RetrieveServiceAccountBadRequest) String() 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 ¶
func (o *RetrieveServiceAccountForbidden) Code() int
Code gets the status code for the retrieve service account forbidden response
func (*RetrieveServiceAccountForbidden) Error ¶
func (o *RetrieveServiceAccountForbidden) Error() string
func (*RetrieveServiceAccountForbidden) GetPayload ¶
func (o *RetrieveServiceAccountForbidden) GetPayload() *models.ErrorResponseBody
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 ¶
func (o *RetrieveServiceAccountForbidden) String() 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 ¶
func (o *RetrieveServiceAccountInternalServerError) Code() int
Code gets the status code for the retrieve service account internal server error response
func (*RetrieveServiceAccountInternalServerError) Error ¶
func (o *RetrieveServiceAccountInternalServerError) Error() string
func (*RetrieveServiceAccountInternalServerError) GetPayload ¶
func (o *RetrieveServiceAccountInternalServerError) GetPayload() *models.ErrorResponseBody
func (*RetrieveServiceAccountInternalServerError) IsClientError ¶
func (o *RetrieveServiceAccountInternalServerError) IsClientError() bool
IsClientError returns true when this retrieve service account internal server error response has a 4xx status code
func (*RetrieveServiceAccountInternalServerError) IsCode ¶
func (o *RetrieveServiceAccountInternalServerError) IsCode(code int) bool
IsCode returns true when this retrieve service account internal server error response a status code equal to that given
func (*RetrieveServiceAccountInternalServerError) IsRedirect ¶
func (o *RetrieveServiceAccountInternalServerError) IsRedirect() bool
IsRedirect returns true when this retrieve service account internal server error response has a 3xx status code
func (*RetrieveServiceAccountInternalServerError) IsServerError ¶
func (o *RetrieveServiceAccountInternalServerError) IsServerError() bool
IsServerError returns true when this retrieve service account internal server error response has a 5xx status code
func (*RetrieveServiceAccountInternalServerError) IsSuccess ¶
func (o *RetrieveServiceAccountInternalServerError) IsSuccess() bool
IsSuccess returns true when this retrieve service account internal server error response has a 2xx status code
func (*RetrieveServiceAccountInternalServerError) String ¶
func (o *RetrieveServiceAccountInternalServerError) String() 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 ¶
func (o *RetrieveServiceAccountNotFound) Code() int
Code gets the status code for the retrieve service account not found response
func (*RetrieveServiceAccountNotFound) Error ¶
func (o *RetrieveServiceAccountNotFound) Error() string
func (*RetrieveServiceAccountNotFound) GetPayload ¶
func (o *RetrieveServiceAccountNotFound) GetPayload() *models.ErrorResponseBody
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 ¶
func (o *RetrieveServiceAccountNotFound) String() 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 (o *RetrieveServiceAccountOK) GetPayload() *models.ServiceAccountDTO
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 ¶
func (o *RetrieveServiceAccountParams) WithContext(ctx context.Context) *RetrieveServiceAccountParams
WithContext adds the context to the retrieve service account params
func (*RetrieveServiceAccountParams) WithDefaults ¶
func (o *RetrieveServiceAccountParams) WithDefaults() *RetrieveServiceAccountParams
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 ¶
func (o *RetrieveServiceAccountParams) WithHTTPClient(client *http.Client) *RetrieveServiceAccountParams
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 ¶
func (o *RetrieveServiceAccountParams) WithTimeout(timeout time.Duration) *RetrieveServiceAccountParams
WithTimeout adds the timeout to the retrieve service account params
func (*RetrieveServiceAccountParams) WriteToRequest ¶
func (o *RetrieveServiceAccountParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
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 {
}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 ¶
func (o *RetrieveServiceAccountUnauthorized) Code() int
Code gets the status code for the retrieve service account unauthorized response
func (*RetrieveServiceAccountUnauthorized) Error ¶
func (o *RetrieveServiceAccountUnauthorized) Error() string
func (*RetrieveServiceAccountUnauthorized) GetPayload ¶
func (o *RetrieveServiceAccountUnauthorized) GetPayload() *models.ErrorResponseBody
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 ¶
func (o *RetrieveServiceAccountUnauthorized) IsCode(code int) bool
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 ¶
func (o *RetrieveServiceAccountUnauthorized) IsSuccess() bool
IsSuccess returns true when this retrieve service account unauthorized response has a 2xx status code
func (*RetrieveServiceAccountUnauthorized) String ¶
func (o *RetrieveServiceAccountUnauthorized) String() 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 ¶
func (o *SearchOrgServiceAccountsWithPagingForbidden) Code() int
Code gets the status code for the search org service accounts with paging forbidden response
func (*SearchOrgServiceAccountsWithPagingForbidden) Error ¶
func (o *SearchOrgServiceAccountsWithPagingForbidden) Error() string
func (*SearchOrgServiceAccountsWithPagingForbidden) GetPayload ¶
func (o *SearchOrgServiceAccountsWithPagingForbidden) GetPayload() *models.ErrorResponseBody
func (*SearchOrgServiceAccountsWithPagingForbidden) IsClientError ¶
func (o *SearchOrgServiceAccountsWithPagingForbidden) IsClientError() bool
IsClientError returns true when this search org service accounts with paging forbidden response has a 4xx status code
func (*SearchOrgServiceAccountsWithPagingForbidden) IsCode ¶
func (o *SearchOrgServiceAccountsWithPagingForbidden) IsCode(code int) bool
IsCode returns true when this search org service accounts with paging forbidden response a status code equal to that given
func (*SearchOrgServiceAccountsWithPagingForbidden) IsRedirect ¶
func (o *SearchOrgServiceAccountsWithPagingForbidden) IsRedirect() bool
IsRedirect returns true when this search org service accounts with paging forbidden response has a 3xx status code
func (*SearchOrgServiceAccountsWithPagingForbidden) IsServerError ¶
func (o *SearchOrgServiceAccountsWithPagingForbidden) IsServerError() bool
IsServerError returns true when this search org service accounts with paging forbidden response has a 5xx status code
func (*SearchOrgServiceAccountsWithPagingForbidden) IsSuccess ¶
func (o *SearchOrgServiceAccountsWithPagingForbidden) IsSuccess() bool
IsSuccess returns true when this search org service accounts with paging forbidden response has a 2xx status code
func (*SearchOrgServiceAccountsWithPagingForbidden) String ¶
func (o *SearchOrgServiceAccountsWithPagingForbidden) String() 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 ¶
func (o *SearchOrgServiceAccountsWithPagingInternalServerError) Code() int
Code gets the status code for the search org service accounts with paging internal server error response
func (*SearchOrgServiceAccountsWithPagingInternalServerError) Error ¶
func (o *SearchOrgServiceAccountsWithPagingInternalServerError) Error() string
func (*SearchOrgServiceAccountsWithPagingInternalServerError) GetPayload ¶
func (o *SearchOrgServiceAccountsWithPagingInternalServerError) GetPayload() *models.ErrorResponseBody
func (*SearchOrgServiceAccountsWithPagingInternalServerError) IsClientError ¶
func (o *SearchOrgServiceAccountsWithPagingInternalServerError) IsClientError() bool
IsClientError returns true when this search org service accounts with paging internal server error response has a 4xx status code
func (*SearchOrgServiceAccountsWithPagingInternalServerError) IsCode ¶
func (o *SearchOrgServiceAccountsWithPagingInternalServerError) IsCode(code int) bool
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 ¶
func (o *SearchOrgServiceAccountsWithPagingInternalServerError) IsRedirect() bool
IsRedirect returns true when this search org service accounts with paging internal server error response has a 3xx status code
func (*SearchOrgServiceAccountsWithPagingInternalServerError) IsServerError ¶
func (o *SearchOrgServiceAccountsWithPagingInternalServerError) IsServerError() bool
IsServerError returns true when this search org service accounts with paging internal server error response has a 5xx status code
func (*SearchOrgServiceAccountsWithPagingInternalServerError) IsSuccess ¶
func (o *SearchOrgServiceAccountsWithPagingInternalServerError) IsSuccess() bool
IsSuccess returns true when this search org service accounts with paging internal server error response has a 2xx status code
func (*SearchOrgServiceAccountsWithPagingInternalServerError) String ¶
func (o *SearchOrgServiceAccountsWithPagingInternalServerError) String() 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 ¶
func (o *SearchOrgServiceAccountsWithPagingOK) Code() int
Code gets the status code for the search org service accounts with paging Ok response
func (*SearchOrgServiceAccountsWithPagingOK) Error ¶
func (o *SearchOrgServiceAccountsWithPagingOK) Error() string
func (*SearchOrgServiceAccountsWithPagingOK) GetPayload ¶
func (o *SearchOrgServiceAccountsWithPagingOK) GetPayload() *models.SearchOrgServiceAccountsResult
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 ¶
func (o *SearchOrgServiceAccountsWithPagingOK) IsCode(code int) bool
IsCode returns true when this search org service accounts with paging Ok response a status code equal to that given
func (*SearchOrgServiceAccountsWithPagingOK) IsRedirect ¶
func (o *SearchOrgServiceAccountsWithPagingOK) IsRedirect() bool
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 ¶
func (o *SearchOrgServiceAccountsWithPagingOK) IsSuccess() bool
IsSuccess returns true when this search org service accounts with paging Ok response has a 2xx status code
func (*SearchOrgServiceAccountsWithPagingOK) String ¶
func (o *SearchOrgServiceAccountsWithPagingOK) String() 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 ¶
func (o *SearchOrgServiceAccountsWithPagingParams) SetContext(ctx context.Context)
SetContext adds the context to the search org service accounts with paging params
func (*SearchOrgServiceAccountsWithPagingParams) SetDefaults ¶
func (o *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 ¶
func (o *SearchOrgServiceAccountsWithPagingParams) SetPage(page *int64)
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 ¶
func (o *SearchOrgServiceAccountsWithPagingParams) SetQuery(query *string)
SetQuery adds the query to the search org service accounts with paging params
func (*SearchOrgServiceAccountsWithPagingParams) SetTimeout ¶
func (o *SearchOrgServiceAccountsWithPagingParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the search org service accounts with paging params
func (*SearchOrgServiceAccountsWithPagingParams) WithContext ¶
func (o *SearchOrgServiceAccountsWithPagingParams) WithContext(ctx context.Context) *SearchOrgServiceAccountsWithPagingParams
WithContext adds the context to the search org service accounts with paging params
func (*SearchOrgServiceAccountsWithPagingParams) WithDefaults ¶
func (o *SearchOrgServiceAccountsWithPagingParams) WithDefaults() *SearchOrgServiceAccountsWithPagingParams
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 ¶
func (o *SearchOrgServiceAccountsWithPagingParams) WithDisabled(disabled *bool) *SearchOrgServiceAccountsWithPagingParams
WithDisabled adds the disabled to the search org service accounts with paging params
func (*SearchOrgServiceAccountsWithPagingParams) WithExpiredTokens ¶
func (o *SearchOrgServiceAccountsWithPagingParams) WithExpiredTokens(expiredTokens *bool) *SearchOrgServiceAccountsWithPagingParams
WithExpiredTokens adds the expiredTokens to the search org service accounts with paging params
func (*SearchOrgServiceAccountsWithPagingParams) WithHTTPClient ¶
func (o *SearchOrgServiceAccountsWithPagingParams) WithHTTPClient(client *http.Client) *SearchOrgServiceAccountsWithPagingParams
WithHTTPClient adds the HTTPClient to the search org service accounts with paging params
func (*SearchOrgServiceAccountsWithPagingParams) WithPage ¶
func (o *SearchOrgServiceAccountsWithPagingParams) WithPage(page *int64) *SearchOrgServiceAccountsWithPagingParams
WithPage adds the page to the search org service accounts with paging params
func (*SearchOrgServiceAccountsWithPagingParams) WithPerpage ¶
func (o *SearchOrgServiceAccountsWithPagingParams) WithPerpage(perpage *int64) *SearchOrgServiceAccountsWithPagingParams
WithPerpage adds the perpage to the search org service accounts with paging params
func (*SearchOrgServiceAccountsWithPagingParams) WithQuery ¶
func (o *SearchOrgServiceAccountsWithPagingParams) WithQuery(query *string) *SearchOrgServiceAccountsWithPagingParams
WithQuery adds the query to the search org service accounts with paging params
func (*SearchOrgServiceAccountsWithPagingParams) WithTimeout ¶
func (o *SearchOrgServiceAccountsWithPagingParams) WithTimeout(timeout time.Duration) *SearchOrgServiceAccountsWithPagingParams
WithTimeout adds the timeout to the search org service accounts with paging params
func (*SearchOrgServiceAccountsWithPagingParams) WriteToRequest ¶
func (o *SearchOrgServiceAccountsWithPagingParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
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 {
}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 ¶
func (o *SearchOrgServiceAccountsWithPagingUnauthorized) Code() int
Code gets the status code for the search org service accounts with paging unauthorized response
func (*SearchOrgServiceAccountsWithPagingUnauthorized) Error ¶
func (o *SearchOrgServiceAccountsWithPagingUnauthorized) Error() string
func (*SearchOrgServiceAccountsWithPagingUnauthorized) GetPayload ¶
func (o *SearchOrgServiceAccountsWithPagingUnauthorized) GetPayload() *models.ErrorResponseBody
func (*SearchOrgServiceAccountsWithPagingUnauthorized) IsClientError ¶
func (o *SearchOrgServiceAccountsWithPagingUnauthorized) IsClientError() bool
IsClientError returns true when this search org service accounts with paging unauthorized response has a 4xx status code
func (*SearchOrgServiceAccountsWithPagingUnauthorized) IsCode ¶
func (o *SearchOrgServiceAccountsWithPagingUnauthorized) IsCode(code int) bool
IsCode returns true when this search org service accounts with paging unauthorized response a status code equal to that given
func (*SearchOrgServiceAccountsWithPagingUnauthorized) IsRedirect ¶
func (o *SearchOrgServiceAccountsWithPagingUnauthorized) IsRedirect() bool
IsRedirect returns true when this search org service accounts with paging unauthorized response has a 3xx status code
func (*SearchOrgServiceAccountsWithPagingUnauthorized) IsServerError ¶
func (o *SearchOrgServiceAccountsWithPagingUnauthorized) IsServerError() bool
IsServerError returns true when this search org service accounts with paging unauthorized response has a 5xx status code
func (*SearchOrgServiceAccountsWithPagingUnauthorized) IsSuccess ¶
func (o *SearchOrgServiceAccountsWithPagingUnauthorized) IsSuccess() bool
IsSuccess returns true when this search org service accounts with paging unauthorized response has a 2xx status code
func (*SearchOrgServiceAccountsWithPagingUnauthorized) String ¶
func (o *SearchOrgServiceAccountsWithPagingUnauthorized) String() 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 ¶
func (o *UpdateServiceAccountBadRequest) Code() int
Code gets the status code for the update service account bad request response
func (*UpdateServiceAccountBadRequest) Error ¶
func (o *UpdateServiceAccountBadRequest) Error() string
func (*UpdateServiceAccountBadRequest) GetPayload ¶
func (o *UpdateServiceAccountBadRequest) GetPayload() *models.ErrorResponseBody
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 ¶
func (o *UpdateServiceAccountBadRequest) String() 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 ¶
func (o *UpdateServiceAccountForbidden) Code() int
Code gets the status code for the update service account forbidden response
func (*UpdateServiceAccountForbidden) Error ¶
func (o *UpdateServiceAccountForbidden) Error() string
func (*UpdateServiceAccountForbidden) GetPayload ¶
func (o *UpdateServiceAccountForbidden) GetPayload() *models.ErrorResponseBody
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 ¶
func (o *UpdateServiceAccountForbidden) String() 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 ¶
func (o *UpdateServiceAccountInternalServerError) Code() int
Code gets the status code for the update service account internal server error response
func (*UpdateServiceAccountInternalServerError) Error ¶
func (o *UpdateServiceAccountInternalServerError) Error() string
func (*UpdateServiceAccountInternalServerError) GetPayload ¶
func (o *UpdateServiceAccountInternalServerError) GetPayload() *models.ErrorResponseBody
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 ¶
func (o *UpdateServiceAccountInternalServerError) IsCode(code int) bool
IsCode returns true when this update service account internal server error response a status code equal to that given
func (*UpdateServiceAccountInternalServerError) IsRedirect ¶
func (o *UpdateServiceAccountInternalServerError) IsRedirect() bool
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 ¶
func (o *UpdateServiceAccountInternalServerError) IsSuccess() bool
IsSuccess returns true when this update service account internal server error response has a 2xx status code
func (*UpdateServiceAccountInternalServerError) String ¶
func (o *UpdateServiceAccountInternalServerError) String() 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 ¶
func (o *UpdateServiceAccountNotFound) Code() int
Code gets the status code for the update service account not found response
func (*UpdateServiceAccountNotFound) Error ¶
func (o *UpdateServiceAccountNotFound) Error() string
func (*UpdateServiceAccountNotFound) GetPayload ¶
func (o *UpdateServiceAccountNotFound) GetPayload() *models.ErrorResponseBody
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 ¶
func (o *UpdateServiceAccountNotFound) String() 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 (o *UpdateServiceAccountOK) GetPayload() *models.UpdateServiceAccountOKBody
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 ¶
func (o *UpdateServiceAccountParams) SetBody(body *models.UpdateServiceAccountForm)
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 ¶
func (o *UpdateServiceAccountParams) WithBody(body *models.UpdateServiceAccountForm) *UpdateServiceAccountParams
WithBody adds the body to the update service account params
func (*UpdateServiceAccountParams) WithContext ¶
func (o *UpdateServiceAccountParams) WithContext(ctx context.Context) *UpdateServiceAccountParams
WithContext adds the context to the update service account params
func (*UpdateServiceAccountParams) WithDefaults ¶
func (o *UpdateServiceAccountParams) WithDefaults() *UpdateServiceAccountParams
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 ¶
func (o *UpdateServiceAccountParams) WithHTTPClient(client *http.Client) *UpdateServiceAccountParams
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 ¶
func (o *UpdateServiceAccountParams) WithTimeout(timeout time.Duration) *UpdateServiceAccountParams
WithTimeout adds the timeout to the update service account params
func (*UpdateServiceAccountParams) WriteToRequest ¶
func (o *UpdateServiceAccountParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
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 {
}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 ¶
func (o *UpdateServiceAccountUnauthorized) Code() int
Code gets the status code for the update service account unauthorized response
func (*UpdateServiceAccountUnauthorized) Error ¶
func (o *UpdateServiceAccountUnauthorized) Error() string
func (*UpdateServiceAccountUnauthorized) GetPayload ¶
func (o *UpdateServiceAccountUnauthorized) GetPayload() *models.ErrorResponseBody
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 ¶
func (o *UpdateServiceAccountUnauthorized) String() string
Source Files ¶
- create_service_account_parameters.go
- create_service_account_responses.go
- create_token_parameters.go
- create_token_responses.go
- delete_service_account_parameters.go
- delete_service_account_responses.go
- delete_token_parameters.go
- delete_token_responses.go
- list_tokens_parameters.go
- list_tokens_responses.go
- retrieve_service_account_parameters.go
- retrieve_service_account_responses.go
- search_org_service_accounts_with_paging_parameters.go
- search_org_service_accounts_with_paging_responses.go
- service_accounts_client.go
- update_service_account_parameters.go
- update_service_account_responses.go