Documentation ¶
Index ¶
- type Client
- func (a *Client) CreateServiceAccount(params *CreateServiceAccountParams, authInfo runtime.ClientAuthInfoWriter, ...) (*CreateServiceAccountCreated, error)
- func (a *Client) CreateToken(params *CreateTokenParams, authInfo runtime.ClientAuthInfoWriter, ...) (*CreateTokenOK, error)
- func (a *Client) DeleteServiceAccount(params *DeleteServiceAccountParams, authInfo runtime.ClientAuthInfoWriter, ...) (*DeleteServiceAccountOK, error)
- func (a *Client) DeleteToken(params *DeleteTokenParams, authInfo runtime.ClientAuthInfoWriter, ...) (*DeleteTokenOK, error)
- func (a *Client) ListTokens(params *ListTokensParams, authInfo runtime.ClientAuthInfoWriter, ...) (*ListTokensOK, error)
- func (a *Client) RetrieveServiceAccount(params *RetrieveServiceAccountParams, authInfo runtime.ClientAuthInfoWriter, ...) (*RetrieveServiceAccountOK, error)
- func (a *Client) SearchOrgServiceAccountsWithPaging(params *SearchOrgServiceAccountsWithPagingParams, ...) (*SearchOrgServiceAccountsWithPagingOK, error)
- func (a *Client) SetTransport(transport runtime.ClientTransport)
- func (a *Client) UpdateServiceAccount(params *UpdateServiceAccountParams, authInfo runtime.ClientAuthInfoWriter, ...) (*UpdateServiceAccountOK, error)
- type ClientOption
- type ClientService
- type CreateServiceAccountBadRequest
- type CreateServiceAccountCreated
- type CreateServiceAccountForbidden
- type CreateServiceAccountInternalServerError
- 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
- type CreateTokenBadRequest
- type CreateTokenConflict
- type CreateTokenForbidden
- type CreateTokenInternalServerError
- type CreateTokenNotFound
- type CreateTokenOK
- 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
- type DeleteServiceAccountBadRequest
- type DeleteServiceAccountForbidden
- type DeleteServiceAccountInternalServerError
- type DeleteServiceAccountOK
- 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
- type DeleteTokenBadRequest
- type DeleteTokenForbidden
- type DeleteTokenInternalServerError
- type DeleteTokenNotFound
- type DeleteTokenOK
- 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
- type ListTokensBadRequest
- type ListTokensForbidden
- type ListTokensInternalServerError
- type ListTokensOK
- 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
- type RetrieveServiceAccountBadRequest
- type RetrieveServiceAccountForbidden
- type RetrieveServiceAccountInternalServerError
- type RetrieveServiceAccountNotFound
- type RetrieveServiceAccountOK
- 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
- type SearchOrgServiceAccountsWithPagingForbidden
- type SearchOrgServiceAccountsWithPagingInternalServerError
- type SearchOrgServiceAccountsWithPagingOK
- 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
- type UpdateServiceAccountBadRequest
- type UpdateServiceAccountForbidden
- type UpdateServiceAccountInternalServerError
- type UpdateServiceAccountNotFound
- type UpdateServiceAccountOK
- 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
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, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*CreateServiceAccountCreated, error)
CreateServiceAccount creates 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:write` scope: `serviceaccounts:*`
Requires basic authentication and that the authenticated user is a Grafana Admin.
func (*Client) CreateToken ¶
func (a *Client) CreateToken(params *CreateTokenParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*CreateTokenOK, error)
CreateToken creates new token adds a token to a 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:write` scope: `serviceaccounts:id:1` (single service account)
func (*Client) DeleteServiceAccount ¶
func (a *Client) DeleteServiceAccount(params *DeleteServiceAccountParams, authInfo runtime.ClientAuthInfoWriter, 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) DeleteToken ¶
func (a *Client) DeleteToken(params *DeleteTokenParams, authInfo runtime.ClientAuthInfoWriter, 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) ListTokens ¶
func (a *Client) ListTokens(params *ListTokensParams, authInfo runtime.ClientAuthInfoWriter, 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) RetrieveServiceAccount ¶
func (a *Client) RetrieveServiceAccount(params *RetrieveServiceAccountParams, authInfo runtime.ClientAuthInfoWriter, 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) SearchOrgServiceAccountsWithPaging ¶
func (a *Client) SearchOrgServiceAccountsWithPaging(params *SearchOrgServiceAccountsWithPagingParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*SearchOrgServiceAccountsWithPagingOK, error)
SearchOrgServiceAccountsWithPaging searches service accounts with paging 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:*`
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, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*UpdateServiceAccountOK, error)
UpdateServiceAccount updates 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:write` scope: `serviceaccounts:id:1` (single service account)
type ClientOption ¶
type ClientOption func(*runtime.ClientOperation)
ClientOption is the option for Client methods
type ClientService ¶
type ClientService interface { CreateServiceAccount(params *CreateServiceAccountParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*CreateServiceAccountCreated, error) CreateToken(params *CreateTokenParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*CreateTokenOK, error) DeleteServiceAccount(params *DeleteServiceAccountParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DeleteServiceAccountOK, error) DeleteToken(params *DeleteTokenParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DeleteTokenOK, error) ListTokens(params *ListTokensParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ListTokensOK, error) RetrieveServiceAccount(params *RetrieveServiceAccountParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*RetrieveServiceAccountOK, error) SearchOrgServiceAccountsWithPaging(params *SearchOrgServiceAccountsWithPagingParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*SearchOrgServiceAccountsWithPagingOK, error) UpdateServiceAccount(params *UpdateServiceAccountParams, authInfo runtime.ClientAuthInfoWriter, 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) Error ¶
func (o *CreateServiceAccountBadRequest) Error() string
func (*CreateServiceAccountBadRequest) GetPayload ¶
func (o *CreateServiceAccountBadRequest) GetPayload() *models.ErrorResponseBody
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) Error ¶
func (o *CreateServiceAccountCreated) Error() string
func (*CreateServiceAccountCreated) GetPayload ¶
func (o *CreateServiceAccountCreated) GetPayload() *models.ServiceAccountDTO
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) Error ¶
func (o *CreateServiceAccountForbidden) Error() string
func (*CreateServiceAccountForbidden) GetPayload ¶
func (o *CreateServiceAccountForbidden) GetPayload() *models.ErrorResponseBody
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) Error ¶
func (o *CreateServiceAccountInternalServerError) Error() string
func (*CreateServiceAccountInternalServerError) GetPayload ¶
func (o *CreateServiceAccountInternalServerError) GetPayload() *models.ErrorResponseBody
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) Error ¶
func (o *CreateServiceAccountUnauthorized) Error() string
func (*CreateServiceAccountUnauthorized) GetPayload ¶
func (o *CreateServiceAccountUnauthorized) GetPayload() *models.ErrorResponseBody
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) Error ¶
func (o *CreateTokenBadRequest) Error() string
func (*CreateTokenBadRequest) GetPayload ¶
func (o *CreateTokenBadRequest) GetPayload() *models.ErrorResponseBody
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) Error ¶
func (o *CreateTokenConflict) Error() string
func (*CreateTokenConflict) GetPayload ¶
func (o *CreateTokenConflict) GetPayload() *models.ErrorResponseBody
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) Error ¶
func (o *CreateTokenForbidden) Error() string
func (*CreateTokenForbidden) GetPayload ¶
func (o *CreateTokenForbidden) GetPayload() *models.ErrorResponseBody
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) Error ¶
func (o *CreateTokenInternalServerError) Error() string
func (*CreateTokenInternalServerError) GetPayload ¶
func (o *CreateTokenInternalServerError) GetPayload() *models.ErrorResponseBody
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) Error ¶
func (o *CreateTokenNotFound) Error() string
func (*CreateTokenNotFound) GetPayload ¶
func (o *CreateTokenNotFound) GetPayload() *models.ErrorResponseBody
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) Error ¶
func (o *CreateTokenOK) Error() string
func (*CreateTokenOK) GetPayload ¶
func (o *CreateTokenOK) GetPayload() *models.NewAPIKeyResult
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) Error ¶
func (o *CreateTokenUnauthorized) Error() string
func (*CreateTokenUnauthorized) GetPayload ¶
func (o *CreateTokenUnauthorized) GetPayload() *models.ErrorResponseBody
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) Error ¶
func (o *DeleteServiceAccountBadRequest) Error() string
func (*DeleteServiceAccountBadRequest) GetPayload ¶
func (o *DeleteServiceAccountBadRequest) GetPayload() *models.ErrorResponseBody
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) Error ¶
func (o *DeleteServiceAccountForbidden) Error() string
func (*DeleteServiceAccountForbidden) GetPayload ¶
func (o *DeleteServiceAccountForbidden) GetPayload() *models.ErrorResponseBody
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) Error ¶
func (o *DeleteServiceAccountInternalServerError) Error() string
func (*DeleteServiceAccountInternalServerError) GetPayload ¶
func (o *DeleteServiceAccountInternalServerError) GetPayload() *models.ErrorResponseBody
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) Error ¶
func (o *DeleteServiceAccountOK) Error() string
func (*DeleteServiceAccountOK) GetPayload ¶
func (o *DeleteServiceAccountOK) GetPayload() *models.SuccessResponseBody
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) Error ¶
func (o *DeleteServiceAccountUnauthorized) Error() string
func (*DeleteServiceAccountUnauthorized) GetPayload ¶
func (o *DeleteServiceAccountUnauthorized) GetPayload() *models.ErrorResponseBody
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) Error ¶
func (o *DeleteTokenBadRequest) Error() string
func (*DeleteTokenBadRequest) GetPayload ¶
func (o *DeleteTokenBadRequest) GetPayload() *models.ErrorResponseBody
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) Error ¶
func (o *DeleteTokenForbidden) Error() string
func (*DeleteTokenForbidden) GetPayload ¶
func (o *DeleteTokenForbidden) GetPayload() *models.ErrorResponseBody
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) Error ¶
func (o *DeleteTokenInternalServerError) Error() string
func (*DeleteTokenInternalServerError) GetPayload ¶
func (o *DeleteTokenInternalServerError) GetPayload() *models.ErrorResponseBody
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) Error ¶
func (o *DeleteTokenNotFound) Error() string
func (*DeleteTokenNotFound) GetPayload ¶
func (o *DeleteTokenNotFound) GetPayload() *models.ErrorResponseBody
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) Error ¶
func (o *DeleteTokenOK) Error() string
func (*DeleteTokenOK) GetPayload ¶
func (o *DeleteTokenOK) GetPayload() *models.SuccessResponseBody
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) Error ¶
func (o *DeleteTokenUnauthorized) Error() string
func (*DeleteTokenUnauthorized) GetPayload ¶
func (o *DeleteTokenUnauthorized) GetPayload() *models.ErrorResponseBody
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) Error ¶
func (o *ListTokensBadRequest) Error() string
func (*ListTokensBadRequest) GetPayload ¶
func (o *ListTokensBadRequest) GetPayload() *models.ErrorResponseBody
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) Error ¶
func (o *ListTokensForbidden) Error() string
func (*ListTokensForbidden) GetPayload ¶
func (o *ListTokensForbidden) GetPayload() *models.ErrorResponseBody
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) Error ¶
func (o *ListTokensInternalServerError) Error() string
func (*ListTokensInternalServerError) GetPayload ¶
func (o *ListTokensInternalServerError) GetPayload() *models.ErrorResponseBody
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) Error ¶
func (o *ListTokensOK) Error() string
func (*ListTokensOK) GetPayload ¶
func (o *ListTokensOK) GetPayload() *models.TokenDTO
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) Error ¶
func (o *ListTokensUnauthorized) Error() string
func (*ListTokensUnauthorized) GetPayload ¶
func (o *ListTokensUnauthorized) GetPayload() *models.ErrorResponseBody
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) Error ¶
func (o *RetrieveServiceAccountBadRequest) Error() string
func (*RetrieveServiceAccountBadRequest) GetPayload ¶
func (o *RetrieveServiceAccountBadRequest) GetPayload() *models.ErrorResponseBody
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) Error ¶
func (o *RetrieveServiceAccountForbidden) Error() string
func (*RetrieveServiceAccountForbidden) GetPayload ¶
func (o *RetrieveServiceAccountForbidden) GetPayload() *models.ErrorResponseBody
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) Error ¶
func (o *RetrieveServiceAccountInternalServerError) Error() string
func (*RetrieveServiceAccountInternalServerError) GetPayload ¶
func (o *RetrieveServiceAccountInternalServerError) GetPayload() *models.ErrorResponseBody
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) Error ¶
func (o *RetrieveServiceAccountNotFound) Error() string
func (*RetrieveServiceAccountNotFound) GetPayload ¶
func (o *RetrieveServiceAccountNotFound) GetPayload() *models.ErrorResponseBody
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) Error ¶
func (o *RetrieveServiceAccountOK) Error() string
func (*RetrieveServiceAccountOK) GetPayload ¶
func (o *RetrieveServiceAccountOK) GetPayload() *models.ServiceAccountDTO
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) Error ¶
func (o *RetrieveServiceAccountUnauthorized) Error() string
func (*RetrieveServiceAccountUnauthorized) GetPayload ¶
func (o *RetrieveServiceAccountUnauthorized) GetPayload() *models.ErrorResponseBody
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) Error ¶
func (o *SearchOrgServiceAccountsWithPagingForbidden) Error() string
func (*SearchOrgServiceAccountsWithPagingForbidden) GetPayload ¶
func (o *SearchOrgServiceAccountsWithPagingForbidden) GetPayload() *models.ErrorResponseBody
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) Error ¶
func (o *SearchOrgServiceAccountsWithPagingInternalServerError) Error() string
func (*SearchOrgServiceAccountsWithPagingInternalServerError) GetPayload ¶
func (o *SearchOrgServiceAccountsWithPagingInternalServerError) GetPayload() *models.ErrorResponseBody
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) Error ¶
func (o *SearchOrgServiceAccountsWithPagingOK) Error() string
func (*SearchOrgServiceAccountsWithPagingOK) GetPayload ¶
func (o *SearchOrgServiceAccountsWithPagingOK) GetPayload() *models.SearchOrgServiceAccountsResult
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) Error ¶
func (o *SearchOrgServiceAccountsWithPagingUnauthorized) Error() string
func (*SearchOrgServiceAccountsWithPagingUnauthorized) GetPayload ¶
func (o *SearchOrgServiceAccountsWithPagingUnauthorized) GetPayload() *models.ErrorResponseBody
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) Error ¶
func (o *UpdateServiceAccountBadRequest) Error() string
func (*UpdateServiceAccountBadRequest) GetPayload ¶
func (o *UpdateServiceAccountBadRequest) GetPayload() *models.ErrorResponseBody
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) Error ¶
func (o *UpdateServiceAccountForbidden) Error() string
func (*UpdateServiceAccountForbidden) GetPayload ¶
func (o *UpdateServiceAccountForbidden) GetPayload() *models.ErrorResponseBody
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) Error ¶
func (o *UpdateServiceAccountInternalServerError) Error() string
func (*UpdateServiceAccountInternalServerError) GetPayload ¶
func (o *UpdateServiceAccountInternalServerError) GetPayload() *models.ErrorResponseBody
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) Error ¶
func (o *UpdateServiceAccountNotFound) Error() string
func (*UpdateServiceAccountNotFound) GetPayload ¶
func (o *UpdateServiceAccountNotFound) GetPayload() *models.ErrorResponseBody
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) Error ¶
func (o *UpdateServiceAccountOK) Error() string
func (*UpdateServiceAccountOK) GetPayload ¶
func (o *UpdateServiceAccountOK) GetPayload() *models.UpdateServiceAccountOKBody
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) Error ¶
func (o *UpdateServiceAccountUnauthorized) Error() string
func (*UpdateServiceAccountUnauthorized) GetPayload ¶
func (o *UpdateServiceAccountUnauthorized) GetPayload() *models.ErrorResponseBody
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