Documentation
¶
Overview ¶
Package apiclient provides primitives to interact with the openapi HTTP API.
Code generated by github.com/oapi-codegen/oapi-codegen/v2 version v2.8.0 DO NOT EDIT.
Index ¶
- func NewAcceptRouteSuggestionRequest(server string, suggestionId SuggestionId, ...) (*http.Request, error)
- func NewAcceptRouteSuggestionRequestWithBody(server string, suggestionId SuggestionId, contentType string, body io.Reader) (*http.Request, error)
- func NewAcknowledgeAlertGroupRequest(server string, alertGroupId AlertGroupId) (*http.Request, error)
- func NewAnswerReminderRequest(server string, alertGroupId AlertGroupId) (*http.Request, error)
- func NewBeginTotpEnrolmentRequest(server string) (*http.Request, error)
- func NewBridgeEventRequest(server string, connectionId ConnectionId, params *BridgeEventParams, ...) (*http.Request, error)
- func NewBridgeEventRequestWithBody(server string, connectionId ConnectionId, params *BridgeEventParams, ...) (*http.Request, error)
- func NewChangePasswordRequest(server string, body ChangePasswordJSONRequestBody) (*http.Request, error)
- func NewChangePasswordRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewCheckConnectionDraftRequest(server string, body CheckConnectionDraftJSONRequestBody) (*http.Request, error)
- func NewCheckConnectionDraftRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewCheckConnectionRequest(server string, connectionId ConnectionId, body CheckConnectionJSONRequestBody) (*http.Request, error)
- func NewCheckConnectionRequestWithBody(server string, connectionId ConnectionId, contentType string, body io.Reader) (*http.Request, error)
- func NewCheckDestinationRequest(server string, destinationId DestinationId) (*http.Request, error)
- func NewCheckOidcSettingsRequest(server string) (*http.Request, error)
- func NewCompleteOidcLinkRequest(server string, params *CompleteOidcLinkParams) (*http.Request, error)
- func NewCompleteOidcSignInRequest(server string, params *CompleteOidcSignInParams) (*http.Request, error)
- func NewCompletePasswordSetupRequest(server string, body CompletePasswordSetupJSONRequestBody) (*http.Request, error)
- func NewCompletePasswordSetupRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewConfirmBridgeLinkRequest(server string, body ConfirmBridgeLinkJSONRequestBody) (*http.Request, error)
- func NewConfirmBridgeLinkRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewConfirmMattermostLinkRequest(server string, body ConfirmMattermostLinkJSONRequestBody) (*http.Request, error)
- func NewConfirmMattermostLinkRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewConfirmSlackLinkRequest(server string, body ConfirmSlackLinkJSONRequestBody) (*http.Request, error)
- func NewConfirmSlackLinkRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewConfirmTotpEnrolmentRequest(server string, body ConfirmTotpEnrolmentJSONRequestBody) (*http.Request, error)
- func NewConfirmTotpEnrolmentRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewConvertUserToLocalRequest(server string, userId UserId) (*http.Request, error)
- func NewCreateAlertGroupNoteRequest(server string, alertGroupId AlertGroupId, ...) (*http.Request, error)
- func NewCreateAlertGroupNoteRequestWithBody(server string, alertGroupId AlertGroupId, contentType string, body io.Reader) (*http.Request, error)
- func NewCreateConnectionRequest(server string, body CreateConnectionJSONRequestBody) (*http.Request, error)
- func NewCreateConnectionRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewCreateDestinationRequest(server string, body CreateDestinationJSONRequestBody) (*http.Request, error)
- func NewCreateDestinationRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewCreateIntegrationRequest(server string, body CreateIntegrationJSONRequestBody) (*http.Request, error)
- func NewCreateIntegrationRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewCreateIntegrationTokenRequest(server string, integrationId IntegrationId, ...) (*http.Request, error)
- func NewCreateIntegrationTokenRequestWithBody(server string, integrationId IntegrationId, contentType string, body io.Reader) (*http.Request, error)
- func NewCreateLinkRuleRequest(server string, body CreateLinkRuleJSONRequestBody) (*http.Request, error)
- func NewCreateLinkRuleRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewCreateLookupTableRequest(server string, body CreateLookupTableJSONRequestBody) (*http.Request, error)
- func NewCreateLookupTableRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewCreatePasswordSetupLinkRequest(server string, userId UserId) (*http.Request, error)
- func NewCreatePersonalAccessTokenRequest(server string, body CreatePersonalAccessTokenJSONRequestBody) (*http.Request, error)
- func NewCreatePersonalAccessTokenRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewCreateRouteRequest(server string, body CreateRouteJSONRequestBody) (*http.Request, error)
- func NewCreateRouteRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewCreateServiceAccountRequest(server string, body CreateServiceAccountJSONRequestBody) (*http.Request, error)
- func NewCreateServiceAccountRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewCreateServiceAccountTokenRequest(server string, serviceAccountId ServiceAccountId, ...) (*http.Request, error)
- func NewCreateServiceAccountTokenRequestWithBody(server string, serviceAccountId ServiceAccountId, contentType string, ...) (*http.Request, error)
- func NewCreateSessionRequest(server string, body CreateSessionJSONRequestBody) (*http.Request, error)
- func NewCreateSessionRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewCreateUserRequest(server string, body CreateUserJSONRequestBody) (*http.Request, error)
- func NewCreateUserRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewDeleteConnectionRequest(server string, connectionId ConnectionId, params *DeleteConnectionParams) (*http.Request, error)
- func NewDeleteCurrentSessionRequest(server string) (*http.Request, error)
- func NewDeleteDestinationRequest(server string, destinationId DestinationId, params *DeleteDestinationParams) (*http.Request, error)
- func NewDeleteDestinationSecretRequest(server string, destinationId DestinationId, secretName SecretName, ...) (*http.Request, error)
- func NewDeleteIntegrationRequest(server string, integrationId IntegrationId, params *DeleteIntegrationParams) (*http.Request, error)
- func NewDeleteLinkRuleRequest(server string, linkRuleId LinkRuleId, params *DeleteLinkRuleParams) (*http.Request, error)
- func NewDeleteLookupTableRequest(server string, lookupTableId LookupTableId, params *DeleteLookupTableParams) (*http.Request, error)
- func NewDeleteMyAccountLinkRequest(server string, accountLinkId AccountLinkId) (*http.Request, error)
- func NewDeleteMySessionsRequest(server string) (*http.Request, error)
- func NewDeleteRouteRequest(server string, routeId RouteId, params *DeleteRouteParams) (*http.Request, error)
- func NewDeleteServiceAccountRequest(server string, serviceAccountId ServiceAccountId, ...) (*http.Request, error)
- func NewDeleteUserAccountLinkRequest(server string, userId UserId, accountLinkId AccountLinkId) (*http.Request, error)
- func NewDeleteUserRequest(server string, userId UserId, params *DeleteUserParams) (*http.Request, error)
- func NewDeliverAlertGroupEventWebhookRequest(targetURL string, params *DeliverAlertGroupEventParams, ...) (*http.Request, error)
- func NewDeliverAlertGroupEventWebhookRequestWithBody(targetURL string, params *DeliverAlertGroupEventParams, contentType string, ...) (*http.Request, error)
- func NewDisableServiceAccountRequest(server string, serviceAccountId ServiceAccountId) (*http.Request, error)
- func NewDisableUserRequest(server string, userId UserId) (*http.Request, error)
- func NewDismissRouteSuggestionRequest(server string, suggestionId SuggestionId) (*http.Request, error)
- func NewEnableServiceAccountRequest(server string, serviceAccountId ServiceAccountId) (*http.Request, error)
- func NewEnableUserRequest(server string, userId UserId) (*http.Request, error)
- func NewGenerateSigningSecretRequest(server string, destinationId DestinationId) (*http.Request, error)
- func NewGetAlertGroupCountsRequest(server string, params *GetAlertGroupCountsParams) (*http.Request, error)
- func NewGetAlertGroupRequest(server string, alertGroupId AlertGroupId) (*http.Request, error)
- func NewGetAlertGroupStatisticsRequest(server string, params *GetAlertGroupStatisticsParams) (*http.Request, error)
- func NewGetAlertGroupTimelineRequest(server string, alertGroupId AlertGroupId, params *GetAlertGroupTimelineParams) (*http.Request, error)
- func NewGetConnectionRequest(server string, connectionId ConnectionId) (*http.Request, error)
- func NewGetCurrentSessionRequest(server string) (*http.Request, error)
- func NewGetDestinationRequest(server string, destinationId DestinationId) (*http.Request, error)
- func NewGetIntegrationRequest(server string, integrationId IntegrationId) (*http.Request, error)
- func NewGetKeyringRequest(server string) (*http.Request, error)
- func NewGetLinkRuleRequest(server string, linkRuleId LinkRuleId) (*http.Request, error)
- func NewGetLookupTableRequest(server string, lookupTableId LookupTableId) (*http.Request, error)
- func NewGetMeRequest(server string) (*http.Request, error)
- func NewGetMyTotpRequest(server string) (*http.Request, error)
- func NewGetOidcSettingsRequest(server string) (*http.Request, error)
- func NewGetOpenApiSpecRequest(server string) (*http.Request, error)
- func NewGetOrganizationRequest(server string) (*http.Request, error)
- func NewGetOutboundPolicyRequest(server string) (*http.Request, error)
- func NewGetRequestRecordRequest(server string, requestRecordId RequestRecordId) (*http.Request, error)
- func NewGetRouteRequest(server string, routeId RouteId) (*http.Request, error)
- func NewGetServiceAccountRequest(server string, serviceAccountId ServiceAccountId) (*http.Request, error)
- func NewGetSignInOptionsRequest(server string) (*http.Request, error)
- func NewGetSigningSecretRequest(server string, destinationId DestinationId) (*http.Request, error)
- func NewGetStoredSnapshotRequest(server string, storedSnapshotId StoredSnapshotId) (*http.Request, error)
- func NewGetSystemStatusRequest(server string) (*http.Request, error)
- func NewGetUserRequest(server string, userId UserId) (*http.Request, error)
- func NewHeartbeatGetRequest(server string) (*http.Request, error)
- func NewHeartbeatGetWithPathTokenRequest(server string, ingestToken IngestTokenInPath) (*http.Request, error)
- func NewHeartbeatPostRequest(server string) (*http.Request, error)
- func NewHeartbeatPostWithPathTokenRequest(server string, ingestToken IngestTokenInPath) (*http.Request, error)
- func NewIngestSnapshotRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewIngestSnapshotWithPathTokenRequestWithBody(server string, ingestToken IngestTokenInPath, contentType string, ...) (*http.Request, error)
- func NewListAlertGroupAlertsRequest(server string, alertGroupId AlertGroupId, params *ListAlertGroupAlertsParams) (*http.Request, error)
- func NewListAlertGroupDeliveriesRequest(server string, alertGroupId AlertGroupId) (*http.Request, error)
- func NewListAlertGroupNotesRequest(server string, alertGroupId AlertGroupId, params *ListAlertGroupNotesParams) (*http.Request, error)
- func NewListAlertGroupsRequest(server string, params *ListAlertGroupsParams) (*http.Request, error)
- func NewListAlertmanagerRoutesRequest(server string, integrationId IntegrationId) (*http.Request, error)
- func NewListAuditLogRequest(server string, params *ListAuditLogParams) (*http.Request, error)
- func NewListConnectionChannelsRequest(server string, connectionId ConnectionId, params *ListConnectionChannelsParams) (*http.Request, error)
- func NewListConnectionsRequest(server string, params *ListConnectionsParams) (*http.Request, error)
- func NewListDestinationSecretsRequest(server string, destinationId DestinationId) (*http.Request, error)
- func NewListDestinationsRequest(server string, params *ListDestinationsParams) (*http.Request, error)
- func NewListIntegrationAlertsRequest(server string, integrationId IntegrationId, ...) (*http.Request, error)
- func NewListIntegrationTokensRequest(server string, integrationId IntegrationId) (*http.Request, error)
- func NewListIntegrationsRequest(server string, params *ListIntegrationsParams) (*http.Request, error)
- func NewListLinkRulesRequest(server string, params *ListLinkRulesParams) (*http.Request, error)
- func NewListLinkableConnectionsRequest(server string) (*http.Request, error)
- func NewListLookupTablesRequest(server string, params *ListLookupTablesParams) (*http.Request, error)
- func NewListMyAccountLinksRequest(server string) (*http.Request, error)
- func NewListMySessionsRequest(server string) (*http.Request, error)
- func NewListPersonalAccessTokensRequest(server string) (*http.Request, error)
- func NewListRelatedAlertGroupsRequest(server string, alertGroupId AlertGroupId, params *ListRelatedAlertGroupsParams) (*http.Request, error)
- func NewListRequestLogRequest(server string, params *ListRequestLogParams) (*http.Request, error)
- func NewListRolesRequest(server string) (*http.Request, error)
- func NewListRouteProfilesRequest(server string) (*http.Request, error)
- func NewListRouteSuggestionsRequest(server string) (*http.Request, error)
- func NewListRoutesRequest(server string) (*http.Request, error)
- func NewListServiceAccountTokensRequest(server string, serviceAccountId ServiceAccountId) (*http.Request, error)
- func NewListServiceAccountsRequest(server string, params *ListServiceAccountsParams) (*http.Request, error)
- func NewListSeverityValuesRequest(server string) (*http.Request, error)
- func NewListSnoozePresetsRequest(server string, params *ListSnoozePresetsParams) (*http.Request, error)
- func NewListStoredSnapshotsRequest(server string, params *ListStoredSnapshotsParams) (*http.Request, error)
- func NewListSystemNoticesRequest(server string) (*http.Request, error)
- func NewListUserAccountLinksRequest(server string, userId UserId) (*http.Request, error)
- func NewListUserDirectoryRequest(server string, params *ListUserDirectoryParams) (*http.Request, error)
- func NewListUsersRequest(server string, params *ListUsersParams) (*http.Request, error)
- func NewMattermostActionRequest(server string, connectionId ConnectionId, body MattermostActionJSONRequestBody) (*http.Request, error)
- func NewMattermostActionRequestWithBody(server string, connectionId ConnectionId, contentType string, body io.Reader) (*http.Request, error)
- func NewMoveOpenAlertGroupsRequest(server string, routeId RouteId) (*http.Request, error)
- func NewPreviewDestinationRequest(server string, destinationId DestinationId, ...) (*http.Request, error)
- func NewPreviewDestinationRequestWithBody(server string, destinationId DestinationId, contentType string, body io.Reader) (*http.Request, error)
- func NewPreviewGroupKeyRequest(server string, body PreviewGroupKeyJSONRequestBody) (*http.Request, error)
- func NewPreviewGroupKeyRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewPreviewTemplateRequest(server string, body PreviewTemplateJSONRequestBody) (*http.Request, error)
- func NewPreviewTemplateRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewRegenerateTotpRecoveryCodesRequest(server string, body RegenerateTotpRecoveryCodesJSONRequestBody) (*http.Request, error)
- func NewRegenerateTotpRecoveryCodesRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewRemoveTotpRequest(server string, body RemoveTotpJSONRequestBody) (*http.Request, error)
- func NewRemoveTotpRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewReorderRoutesRequest(server string, params *ReorderRoutesParams, body ReorderRoutesJSONRequestBody) (*http.Request, error)
- func NewReorderRoutesRequestWithBody(server string, params *ReorderRoutesParams, contentType string, body io.Reader) (*http.Request, error)
- func NewResetUserTotpRequest(server string, userId UserId) (*http.Request, error)
- func NewResolveAlertGroupRequest(server string, alertGroupId AlertGroupId, ...) (*http.Request, error)
- func NewResolveAlertGroupRequestWithBody(server string, alertGroupId AlertGroupId, contentType string, body io.Reader) (*http.Request, error)
- func NewRetirePreviousSigningSecretRequest(server string, destinationId DestinationId) (*http.Request, error)
- func NewRevokeIntegrationTokenRequest(server string, integrationId IntegrationId, ...) (*http.Request, error)
- func NewRevokePersonalAccessTokenRequest(server string, tokenId TokenId) (*http.Request, error)
- func NewRevokeServiceAccountTokenRequest(server string, serviceAccountId ServiceAccountId, tokenId TokenId) (*http.Request, error)
- func NewRunBulkCommandRequest(server string, body RunBulkCommandJSONRequestBody) (*http.Request, error)
- func NewRunBulkCommandRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewSetDestinationSecretRequest(server string, destinationId DestinationId, secretName SecretName, ...) (*http.Request, error)
- func NewSetDestinationSecretRequestWithBody(server string, destinationId DestinationId, secretName SecretName, ...) (*http.Request, error)
- func NewSlackInteractionRequestWithBody(server string, connectionId ConnectionId, params *SlackInteractionParams, ...) (*http.Request, error)
- func NewSlackInteractionRequestWithFormdataBody(server string, connectionId ConnectionId, params *SlackInteractionParams, ...) (*http.Request, error)
- func NewSnoozeAlertGroupRequest(server string, alertGroupId AlertGroupId, body SnoozeAlertGroupJSONRequestBody) (*http.Request, error)
- func NewSnoozeAlertGroupRequestWithBody(server string, alertGroupId AlertGroupId, contentType string, body io.Reader) (*http.Request, error)
- func NewStartBridgeCodeLinkRequest(server string, body StartBridgeCodeLinkJSONRequestBody) (*http.Request, error)
- func NewStartBridgeCodeLinkRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewStartBridgeLinkRequest(server string, body StartBridgeLinkJSONRequestBody) (*http.Request, error)
- func NewStartBridgeLinkRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewStartMattermostLinkRequest(server string, body StartMattermostLinkJSONRequestBody) (*http.Request, error)
- func NewStartMattermostLinkRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewStartOidcLinkRequest(server string) (*http.Request, error)
- func NewStartOidcSignInRequest(server string, params *StartOidcSignInParams) (*http.Request, error)
- func NewStartSlackLinkRequest(server string, body StartSlackLinkJSONRequestBody) (*http.Request, error)
- func NewStartSlackLinkRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewStartTelegramLinkRequest(server string, body StartTelegramLinkJSONRequestBody) (*http.Request, error)
- func NewStartTelegramLinkRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewStreamLiveUpdatesRequest(server string) (*http.Request, error)
- func NewSubmitSessionTotpRequest(server string, body SubmitSessionTotpJSONRequestBody) (*http.Request, error)
- func NewSubmitSessionTotpRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewTelegramWebhookRequest(server string, connectionId ConnectionId, body TelegramWebhookJSONRequestBody) (*http.Request, error)
- func NewTelegramWebhookRequestWithBody(server string, connectionId ConnectionId, contentType string, body io.Reader) (*http.Request, error)
- func NewTestDestinationRequest(server string, destinationId DestinationId, ...) (*http.Request, error)
- func NewTestDestinationRequestWithBody(server string, destinationId DestinationId, contentType string, body io.Reader) (*http.Request, error)
- func NewUnacknowledgeAlertGroupRequest(server string, alertGroupId AlertGroupId) (*http.Request, error)
- func NewUnresolveAlertGroupRequest(server string, alertGroupId AlertGroupId) (*http.Request, error)
- func NewUnsnoozeAlertGroupRequest(server string, alertGroupId AlertGroupId) (*http.Request, error)
- func NewUpdateConnectionRequest(server string, connectionId ConnectionId, params *UpdateConnectionParams, ...) (*http.Request, error)
- func NewUpdateConnectionRequestWithBody(server string, connectionId ConnectionId, params *UpdateConnectionParams, ...) (*http.Request, error)
- func NewUpdateDestinationRequest(server string, destinationId DestinationId, params *UpdateDestinationParams, ...) (*http.Request, error)
- func NewUpdateDestinationRequestWithBody(server string, destinationId DestinationId, params *UpdateDestinationParams, ...) (*http.Request, error)
- func NewUpdateIntegrationRequest(server string, integrationId IntegrationId, params *UpdateIntegrationParams, ...) (*http.Request, error)
- func NewUpdateIntegrationRequestWithBody(server string, integrationId IntegrationId, params *UpdateIntegrationParams, ...) (*http.Request, error)
- func NewUpdateLinkRuleRequest(server string, linkRuleId LinkRuleId, params *UpdateLinkRuleParams, ...) (*http.Request, error)
- func NewUpdateLinkRuleRequestWithBody(server string, linkRuleId LinkRuleId, params *UpdateLinkRuleParams, ...) (*http.Request, error)
- func NewUpdateLookupTableRequest(server string, lookupTableId LookupTableId, params *UpdateLookupTableParams, ...) (*http.Request, error)
- func NewUpdateLookupTableRequestWithBody(server string, lookupTableId LookupTableId, params *UpdateLookupTableParams, ...) (*http.Request, error)
- func NewUpdateMeRequest(server string, body UpdateMeJSONRequestBody) (*http.Request, error)
- func NewUpdateMeRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewUpdateOidcSettingsRequest(server string, params *UpdateOidcSettingsParams, ...) (*http.Request, error)
- func NewUpdateOidcSettingsRequestWithBody(server string, params *UpdateOidcSettingsParams, contentType string, ...) (*http.Request, error)
- func NewUpdateOrganizationRequest(server string, params *UpdateOrganizationParams, ...) (*http.Request, error)
- func NewUpdateOrganizationRequestWithBody(server string, params *UpdateOrganizationParams, contentType string, ...) (*http.Request, error)
- func NewUpdateOutboundPolicyRequest(server string, params *UpdateOutboundPolicyParams, ...) (*http.Request, error)
- func NewUpdateOutboundPolicyRequestWithBody(server string, params *UpdateOutboundPolicyParams, contentType string, ...) (*http.Request, error)
- func NewUpdateRouteRequest(server string, routeId RouteId, params *UpdateRouteParams, ...) (*http.Request, error)
- func NewUpdateRouteRequestWithBody(server string, routeId RouteId, params *UpdateRouteParams, contentType string, ...) (*http.Request, error)
- func NewUpdateServiceAccountRequest(server string, serviceAccountId ServiceAccountId, ...) (*http.Request, error)
- func NewUpdateServiceAccountRequestWithBody(server string, serviceAccountId ServiceAccountId, ...) (*http.Request, error)
- func NewUpdateUserRequest(server string, userId UserId, params *UpdateUserParams, ...) (*http.Request, error)
- func NewUpdateUserRequestWithBody(server string, userId UserId, params *UpdateUserParams, contentType string, ...) (*http.Request, error)
- type AcceptRouteSuggestionJSONRequestBody
- type AcceptRouteSuggestionResponse
- func (r AcceptRouteSuggestionResponse) ContentType() string
- func (r AcceptRouteSuggestionResponse) GetApplicationproblemJSON400() *BadRequest
- func (r AcceptRouteSuggestionResponse) GetApplicationproblemJSON401() *Unauthorized
- func (r AcceptRouteSuggestionResponse) GetApplicationproblemJSON403() *Forbidden
- func (r AcceptRouteSuggestionResponse) GetApplicationproblemJSON404() *NotFound
- func (r AcceptRouteSuggestionResponse) GetApplicationproblemJSON409() *Conflict
- func (r AcceptRouteSuggestionResponse) GetApplicationproblemJSON422() *Unprocessable
- func (r AcceptRouteSuggestionResponse) GetApplicationproblemJSON429() *TooManyRequests
- func (r AcceptRouteSuggestionResponse) GetBody() []byte
- func (r AcceptRouteSuggestionResponse) GetJSON201() *Route
- func (r AcceptRouteSuggestionResponse) Status() string
- func (r AcceptRouteSuggestionResponse) StatusCode() int
- type AcceptRouteSuggestionResponse201Headers
- type AcceptRouteSuggestionResponse429Headers
- type AccountLink
- type AccountLinkId
- type AccountLinkList
- type AckTimeoutPolicy
- type AcknowledgeAlertGroupResponse
- func (r AcknowledgeAlertGroupResponse) ContentType() string
- func (r AcknowledgeAlertGroupResponse) GetApplicationproblemJSON401() *Unauthorized
- func (r AcknowledgeAlertGroupResponse) GetApplicationproblemJSON403() *Forbidden
- func (r AcknowledgeAlertGroupResponse) GetApplicationproblemJSON404() *NotFound
- func (r AcknowledgeAlertGroupResponse) GetApplicationproblemJSON409() *Conflict
- func (r AcknowledgeAlertGroupResponse) GetApplicationproblemJSON429() *TooManyRequests
- func (r AcknowledgeAlertGroupResponse) GetBody() []byte
- func (r AcknowledgeAlertGroupResponse) GetJSON200() *CommandResult
- func (r AcknowledgeAlertGroupResponse) Status() string
- func (r AcknowledgeAlertGroupResponse) StatusCode() int
- type AcknowledgeAlertGroupResponse429Headers
- type ActiveStorm
- type ActorKind
- type ActorRef
- type ActorRefKind
- type AgDeliveryProblem
- type AgIntegration
- type AgLabelColumns
- type AgNumber
- type AgOwner
- type AgQuery
- type AgReopened
- type AgResolveReason
- type AgResolvedBy
- type AgRoute
- type AgSeverity
- type AgSnoozedNoEnd
- type AgSort
- type AgStatus
- type AgUnclaimed
- type AgUrgent
- type AlertGroup
- type AlertGroupAlert
- type AlertGroupAlertList
- type AlertGroupCounts
- type AlertGroupDelivery
- type AlertGroupDeliveryList
- type AlertGroupId
- type AlertGroupLink
- type AlertGroupLinkKind
- type AlertGroupList
- type AlertGroupNotice
- type AlertGroupNoticeKind
- type AlertGroupRef
- type AlertGroupStatistics
- type AlertGroupStatisticsGroupBy
- type AlertGroupStatisticsItem
- type AlertGroupStatus
- type AlertState
- type AlertmanagerAlert
- type AlertmanagerRoute
- type AlertmanagerRouteList
- type AlertmanagerWebhook
- type AnswerReminderResponse
- func (r AnswerReminderResponse) ContentType() string
- func (r AnswerReminderResponse) GetApplicationproblemJSON401() *Unauthorized
- func (r AnswerReminderResponse) GetApplicationproblemJSON403() *Forbidden
- func (r AnswerReminderResponse) GetApplicationproblemJSON404() *NotFound
- func (r AnswerReminderResponse) GetApplicationproblemJSON409() *Conflict
- func (r AnswerReminderResponse) GetApplicationproblemJSON429() *TooManyRequests
- func (r AnswerReminderResponse) GetBody() []byte
- func (r AnswerReminderResponse) GetJSON200() *CommandResult
- func (r AnswerReminderResponse) Status() string
- func (r AnswerReminderResponse) StatusCode() int
- type AnswerReminderResponse429Headers
- type AuditActor
- type AuditActorKind
- type AuditDiffEntry
- type AuditEntry
- type AuditEntryList
- type BadRequest
- type BeginTotpEnrolmentResponse
- func (r BeginTotpEnrolmentResponse) ContentType() string
- func (r BeginTotpEnrolmentResponse) GetApplicationproblemJSON401() *Unauthorized
- func (r BeginTotpEnrolmentResponse) GetApplicationproblemJSON403() *Forbidden
- func (r BeginTotpEnrolmentResponse) GetApplicationproblemJSON409() *Conflict
- func (r BeginTotpEnrolmentResponse) GetApplicationproblemJSON429() *TooManyRequests
- func (r BeginTotpEnrolmentResponse) GetBody() []byte
- func (r BeginTotpEnrolmentResponse) GetJSON201() *TotpEnrolment
- func (r BeginTotpEnrolmentResponse) Status() string
- func (r BeginTotpEnrolmentResponse) StatusCode() int
- type BeginTotpEnrolmentResponse429Headers
- type BridgeAccountLinkEvent
- type BridgeButtonStyle
- type BridgeCapabilities
- type BridgeCapabilitiesPrivateAnswers
- type BridgeCapabilitiesThreadMessages
- type BridgeCodeLinkRequest
- type BridgeCodeLinkStarted
- type BridgeConnection
- type BridgeConnectionBase
- type BridgeConnectionBaseType
- type BridgeConnectionDraft
- type BridgeConnectionDraftType
- type BridgeConnectionInput
- type BridgeConnectionInputType
- type BridgeConnectionType
- type BridgeDestination
- type BridgeDestinationInput
- type BridgeDestinationInputType
- type BridgeDestinationType
- type BridgeEvent
- func (t BridgeEvent) AsBridgeAccountLinkEvent() (BridgeAccountLinkEvent, error)
- func (t BridgeEvent) AsBridgeMessageDeletedEvent() (BridgeMessageDeletedEvent, error)
- func (t BridgeEvent) AsBridgePressEvent() (BridgePressEvent, error)
- func (t BridgeEvent) AsBridgeThreadMessageEvent() (BridgeThreadMessageEvent, error)
- func (t BridgeEvent) Discriminator() (string, error)
- func (t *BridgeEvent) FromBridgeAccountLinkEvent(v BridgeAccountLinkEvent) error
- func (t *BridgeEvent) FromBridgeMessageDeletedEvent(v BridgeMessageDeletedEvent) error
- func (t *BridgeEvent) FromBridgePressEvent(v BridgePressEvent) error
- func (t *BridgeEvent) FromBridgeThreadMessageEvent(v BridgeThreadMessageEvent) error
- func (t BridgeEvent) MarshalJSON() ([]byte, error)
- func (t *BridgeEvent) MergeBridgeAccountLinkEvent(v BridgeAccountLinkEvent) error
- func (t *BridgeEvent) MergeBridgeMessageDeletedEvent(v BridgeMessageDeletedEvent) error
- func (t *BridgeEvent) MergeBridgePressEvent(v BridgePressEvent) error
- func (t *BridgeEvent) MergeBridgeThreadMessageEvent(v BridgeThreadMessageEvent) error
- func (t *BridgeEvent) UnmarshalJSON(b []byte) error
- func (t BridgeEvent) ValueByDiscriminator() (interface{}, error)
- type BridgeEventBase
- type BridgeEventDelivery
- type BridgeEventJSONRequestBody
- type BridgeEventParams
- type BridgeEventResponse
- func (r BridgeEventResponse) ContentType() string
- func (r BridgeEventResponse) GetApplicationproblemJSON400() *BadRequest
- func (r BridgeEventResponse) GetApplicationproblemJSON401() *Unauthorized
- func (r BridgeEventResponse) GetApplicationproblemJSON500() *InternalError
- func (r BridgeEventResponse) GetBody() []byte
- func (r BridgeEventResponse) Status() string
- func (r BridgeEventResponse) StatusCode() int
- type BridgeInfo
- type BridgeInfoEventDelivery
- type BridgeInfoProtocolVersion
- type BridgeInfoUserLookup
- type BridgeLimits
- type BridgeLinkConfirm
- type BridgeLinkRequest
- type BridgeLinkStart
- type BridgeMessageDeletedEvent
- type BridgePerson
- type BridgePressEvent
- type BridgeThreadMessageEvent
- type BrokenDestination
- type BulkCommandItem
- type BulkCommandRequest
- type BulkCommandRequestCommand
- type BulkCommandResult
- type BulkOutcome
- type ChangePasswordJSONRequestBody
- type ChangePasswordResponse
- func (r ChangePasswordResponse) ContentType() string
- func (r ChangePasswordResponse) GetApplicationproblemJSON400() *BadRequest
- func (r ChangePasswordResponse) GetApplicationproblemJSON401() *Unauthorized
- func (r ChangePasswordResponse) GetApplicationproblemJSON403() *Forbidden
- func (r ChangePasswordResponse) GetApplicationproblemJSON409() *Conflict
- func (r ChangePasswordResponse) GetApplicationproblemJSON422() *Unprocessable
- func (r ChangePasswordResponse) GetApplicationproblemJSON429() *TooManyRequests
- func (r ChangePasswordResponse) GetBody() []byte
- func (r ChangePasswordResponse) Status() string
- func (r ChangePasswordResponse) StatusCode() int
- type ChangePasswordResponse429Headers
- type CheckConnectionDraftJSONRequestBody
- type CheckConnectionDraftResponse
- func (r CheckConnectionDraftResponse) ContentType() string
- func (r CheckConnectionDraftResponse) GetApplicationproblemJSON400() *BadRequest
- func (r CheckConnectionDraftResponse) GetApplicationproblemJSON401() *Unauthorized
- func (r CheckConnectionDraftResponse) GetApplicationproblemJSON403() *Forbidden
- func (r CheckConnectionDraftResponse) GetApplicationproblemJSON422() *Unprocessable
- func (r CheckConnectionDraftResponse) GetApplicationproblemJSON429() *TooManyRequests
- func (r CheckConnectionDraftResponse) GetApplicationproblemJSON503() *Limited
- func (r CheckConnectionDraftResponse) GetBody() []byte
- func (r CheckConnectionDraftResponse) GetJSON200() *ConnectionCheckResult
- func (r CheckConnectionDraftResponse) Status() string
- func (r CheckConnectionDraftResponse) StatusCode() int
- type CheckConnectionDraftResponse429Headers
- type CheckConnectionDraftResponse503Headers
- type CheckConnectionJSONRequestBody
- type CheckConnectionResponse
- func (r CheckConnectionResponse) ContentType() string
- func (r CheckConnectionResponse) GetApplicationproblemJSON400() *BadRequest
- func (r CheckConnectionResponse) GetApplicationproblemJSON401() *Unauthorized
- func (r CheckConnectionResponse) GetApplicationproblemJSON403() *Forbidden
- func (r CheckConnectionResponse) GetApplicationproblemJSON404() *NotFound
- func (r CheckConnectionResponse) GetApplicationproblemJSON429() *TooManyRequests
- func (r CheckConnectionResponse) GetApplicationproblemJSON503() *Limited
- func (r CheckConnectionResponse) GetBody() []byte
- func (r CheckConnectionResponse) GetJSON200() *ConnectionCheckResult
- func (r CheckConnectionResponse) Status() string
- func (r CheckConnectionResponse) StatusCode() int
- type CheckConnectionResponse429Headers
- type CheckConnectionResponse503Headers
- type CheckDestinationResponse
- func (r CheckDestinationResponse) ContentType() string
- func (r CheckDestinationResponse) GetApplicationproblemJSON401() *Unauthorized
- func (r CheckDestinationResponse) GetApplicationproblemJSON403() *Forbidden
- func (r CheckDestinationResponse) GetApplicationproblemJSON404() *NotFound
- func (r CheckDestinationResponse) GetApplicationproblemJSON422() *Unprocessable
- func (r CheckDestinationResponse) GetApplicationproblemJSON429() *TooManyRequests
- func (r CheckDestinationResponse) GetApplicationproblemJSON503() *Limited
- func (r CheckDestinationResponse) GetBody() []byte
- func (r CheckDestinationResponse) GetJSON200() *DestinationCheckResult
- func (r CheckDestinationResponse) Status() string
- func (r CheckDestinationResponse) StatusCode() int
- type CheckDestinationResponse429Headers
- type CheckDestinationResponse503Headers
- type CheckOidcSettingsResponse
- func (r CheckOidcSettingsResponse) ContentType() string
- func (r CheckOidcSettingsResponse) GetApplicationproblemJSON401() *Unauthorized
- func (r CheckOidcSettingsResponse) GetApplicationproblemJSON403() *Forbidden
- func (r CheckOidcSettingsResponse) GetApplicationproblemJSON429() *TooManyRequests
- func (r CheckOidcSettingsResponse) GetBody() []byte
- func (r CheckOidcSettingsResponse) GetJSON200() *OidcCheckResult
- func (r CheckOidcSettingsResponse) Status() string
- func (r CheckOidcSettingsResponse) StatusCode() int
- type CheckOidcSettingsResponse429Headers
- type Client
- func (c *Client) AcceptRouteSuggestion(ctx context.Context, suggestionId SuggestionId, ...) (*http.Response, error)
- func (c *Client) AcceptRouteSuggestionWithBody(ctx context.Context, suggestionId SuggestionId, contentType string, ...) (*http.Response, error)
- func (c *Client) AcknowledgeAlertGroup(ctx context.Context, alertGroupId AlertGroupId, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) AnswerReminder(ctx context.Context, alertGroupId AlertGroupId, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) BeginTotpEnrolment(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) BridgeEvent(ctx context.Context, connectionId ConnectionId, params *BridgeEventParams, ...) (*http.Response, error)
- func (c *Client) BridgeEventWithBody(ctx context.Context, connectionId ConnectionId, params *BridgeEventParams, ...) (*http.Response, error)
- func (c *Client) ChangePassword(ctx context.Context, body ChangePasswordJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) ChangePasswordWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) CheckConnection(ctx context.Context, connectionId ConnectionId, ...) (*http.Response, error)
- func (c *Client) CheckConnectionDraft(ctx context.Context, body CheckConnectionDraftJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) CheckConnectionDraftWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) CheckConnectionWithBody(ctx context.Context, connectionId ConnectionId, contentType string, ...) (*http.Response, error)
- func (c *Client) CheckDestination(ctx context.Context, destinationId DestinationId, ...) (*http.Response, error)
- func (c *Client) CheckOidcSettings(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) CompleteOidcLink(ctx context.Context, params *CompleteOidcLinkParams, ...) (*http.Response, error)
- func (c *Client) CompleteOidcSignIn(ctx context.Context, params *CompleteOidcSignInParams, ...) (*http.Response, error)
- func (c *Client) CompletePasswordSetup(ctx context.Context, body CompletePasswordSetupJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) CompletePasswordSetupWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) ConfirmBridgeLink(ctx context.Context, body ConfirmBridgeLinkJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) ConfirmBridgeLinkWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) ConfirmMattermostLink(ctx context.Context, body ConfirmMattermostLinkJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) ConfirmMattermostLinkWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) ConfirmSlackLink(ctx context.Context, body ConfirmSlackLinkJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) ConfirmSlackLinkWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) ConfirmTotpEnrolment(ctx context.Context, body ConfirmTotpEnrolmentJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) ConfirmTotpEnrolmentWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) ConvertUserToLocal(ctx context.Context, userId UserId, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) CreateAlertGroupNote(ctx context.Context, alertGroupId AlertGroupId, ...) (*http.Response, error)
- func (c *Client) CreateAlertGroupNoteWithBody(ctx context.Context, alertGroupId AlertGroupId, contentType string, ...) (*http.Response, error)
- func (c *Client) CreateConnection(ctx context.Context, body CreateConnectionJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) CreateConnectionWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) CreateDestination(ctx context.Context, body CreateDestinationJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) CreateDestinationWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) CreateIntegration(ctx context.Context, body CreateIntegrationJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) CreateIntegrationToken(ctx context.Context, integrationId IntegrationId, ...) (*http.Response, error)
- func (c *Client) CreateIntegrationTokenWithBody(ctx context.Context, integrationId IntegrationId, contentType string, ...) (*http.Response, error)
- func (c *Client) CreateIntegrationWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) CreateLinkRule(ctx context.Context, body CreateLinkRuleJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) CreateLinkRuleWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) CreateLookupTable(ctx context.Context, body CreateLookupTableJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) CreateLookupTableWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) CreatePasswordSetupLink(ctx context.Context, userId UserId, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) CreatePersonalAccessToken(ctx context.Context, body CreatePersonalAccessTokenJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) CreatePersonalAccessTokenWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) CreateRoute(ctx context.Context, body CreateRouteJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) CreateRouteWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) CreateServiceAccount(ctx context.Context, body CreateServiceAccountJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) CreateServiceAccountToken(ctx context.Context, serviceAccountId ServiceAccountId, ...) (*http.Response, error)
- func (c *Client) CreateServiceAccountTokenWithBody(ctx context.Context, serviceAccountId ServiceAccountId, contentType string, ...) (*http.Response, error)
- func (c *Client) CreateServiceAccountWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) CreateSession(ctx context.Context, body CreateSessionJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) CreateSessionWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) CreateUser(ctx context.Context, body CreateUserJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) CreateUserWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) DeleteConnection(ctx context.Context, connectionId ConnectionId, params *DeleteConnectionParams, ...) (*http.Response, error)
- func (c *Client) DeleteCurrentSession(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) DeleteDestination(ctx context.Context, destinationId DestinationId, ...) (*http.Response, error)
- func (c *Client) DeleteDestinationSecret(ctx context.Context, destinationId DestinationId, secretName SecretName, ...) (*http.Response, error)
- func (c *Client) DeleteIntegration(ctx context.Context, integrationId IntegrationId, ...) (*http.Response, error)
- func (c *Client) DeleteLinkRule(ctx context.Context, linkRuleId LinkRuleId, params *DeleteLinkRuleParams, ...) (*http.Response, error)
- func (c *Client) DeleteLookupTable(ctx context.Context, lookupTableId LookupTableId, ...) (*http.Response, error)
- func (c *Client) DeleteMyAccountLink(ctx context.Context, accountLinkId AccountLinkId, ...) (*http.Response, error)
- func (c *Client) DeleteMySessions(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) DeleteRoute(ctx context.Context, routeId RouteId, params *DeleteRouteParams, ...) (*http.Response, error)
- func (c *Client) DeleteServiceAccount(ctx context.Context, serviceAccountId ServiceAccountId, ...) (*http.Response, error)
- func (c *Client) DeleteUser(ctx context.Context, userId UserId, params *DeleteUserParams, ...) (*http.Response, error)
- func (c *Client) DeleteUserAccountLink(ctx context.Context, userId UserId, accountLinkId AccountLinkId, ...) (*http.Response, error)
- func (c *Client) DisableServiceAccount(ctx context.Context, serviceAccountId ServiceAccountId, ...) (*http.Response, error)
- func (c *Client) DisableUser(ctx context.Context, userId UserId, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) DismissRouteSuggestion(ctx context.Context, suggestionId SuggestionId, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) EnableServiceAccount(ctx context.Context, serviceAccountId ServiceAccountId, ...) (*http.Response, error)
- func (c *Client) EnableUser(ctx context.Context, userId UserId, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) GenerateSigningSecret(ctx context.Context, destinationId DestinationId, ...) (*http.Response, error)
- func (c *Client) GetAlertGroup(ctx context.Context, alertGroupId AlertGroupId, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) GetAlertGroupCounts(ctx context.Context, params *GetAlertGroupCountsParams, ...) (*http.Response, error)
- func (c *Client) GetAlertGroupStatistics(ctx context.Context, params *GetAlertGroupStatisticsParams, ...) (*http.Response, error)
- func (c *Client) GetAlertGroupTimeline(ctx context.Context, alertGroupId AlertGroupId, ...) (*http.Response, error)
- func (c *Client) GetConnection(ctx context.Context, connectionId ConnectionId, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) GetCurrentSession(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) GetDestination(ctx context.Context, destinationId DestinationId, ...) (*http.Response, error)
- func (c *Client) GetIntegration(ctx context.Context, integrationId IntegrationId, ...) (*http.Response, error)
- func (c *Client) GetKeyring(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) GetLinkRule(ctx context.Context, linkRuleId LinkRuleId, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) GetLookupTable(ctx context.Context, lookupTableId LookupTableId, ...) (*http.Response, error)
- func (c *Client) GetMe(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) GetMyTotp(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) GetOidcSettings(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) GetOpenApiSpec(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) GetOrganization(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) GetOutboundPolicy(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) GetRequestRecord(ctx context.Context, requestRecordId RequestRecordId, ...) (*http.Response, error)
- func (c *Client) GetRoute(ctx context.Context, routeId RouteId, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) GetServiceAccount(ctx context.Context, serviceAccountId ServiceAccountId, ...) (*http.Response, error)
- func (c *Client) GetSignInOptions(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) GetSigningSecret(ctx context.Context, destinationId DestinationId, ...) (*http.Response, error)
- func (c *Client) GetStoredSnapshot(ctx context.Context, storedSnapshotId StoredSnapshotId, ...) (*http.Response, error)
- func (c *Client) GetSystemStatus(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) GetUser(ctx context.Context, userId UserId, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) HeartbeatGet(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) HeartbeatGetWithPathToken(ctx context.Context, ingestToken IngestTokenInPath, ...) (*http.Response, error)
- func (c *Client) HeartbeatPost(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) HeartbeatPostWithPathToken(ctx context.Context, ingestToken IngestTokenInPath, ...) (*http.Response, error)
- func (c *Client) IngestSnapshotWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) IngestSnapshotWithPathTokenWithBody(ctx context.Context, ingestToken IngestTokenInPath, contentType string, ...) (*http.Response, error)
- func (c *Client) ListAlertGroupAlerts(ctx context.Context, alertGroupId AlertGroupId, ...) (*http.Response, error)
- func (c *Client) ListAlertGroupDeliveries(ctx context.Context, alertGroupId AlertGroupId, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) ListAlertGroupNotes(ctx context.Context, alertGroupId AlertGroupId, ...) (*http.Response, error)
- func (c *Client) ListAlertGroups(ctx context.Context, params *ListAlertGroupsParams, ...) (*http.Response, error)
- func (c *Client) ListAlertmanagerRoutes(ctx context.Context, integrationId IntegrationId, ...) (*http.Response, error)
- func (c *Client) ListAuditLog(ctx context.Context, params *ListAuditLogParams, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) ListConnectionChannels(ctx context.Context, connectionId ConnectionId, ...) (*http.Response, error)
- func (c *Client) ListConnections(ctx context.Context, params *ListConnectionsParams, ...) (*http.Response, error)
- func (c *Client) ListDestinationSecrets(ctx context.Context, destinationId DestinationId, ...) (*http.Response, error)
- func (c *Client) ListDestinations(ctx context.Context, params *ListDestinationsParams, ...) (*http.Response, error)
- func (c *Client) ListIntegrationAlerts(ctx context.Context, integrationId IntegrationId, ...) (*http.Response, error)
- func (c *Client) ListIntegrationTokens(ctx context.Context, integrationId IntegrationId, ...) (*http.Response, error)
- func (c *Client) ListIntegrations(ctx context.Context, params *ListIntegrationsParams, ...) (*http.Response, error)
- func (c *Client) ListLinkRules(ctx context.Context, params *ListLinkRulesParams, ...) (*http.Response, error)
- func (c *Client) ListLinkableConnections(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) ListLookupTables(ctx context.Context, params *ListLookupTablesParams, ...) (*http.Response, error)
- func (c *Client) ListMyAccountLinks(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) ListMySessions(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) ListPersonalAccessTokens(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) ListRelatedAlertGroups(ctx context.Context, alertGroupId AlertGroupId, ...) (*http.Response, error)
- func (c *Client) ListRequestLog(ctx context.Context, params *ListRequestLogParams, ...) (*http.Response, error)
- func (c *Client) ListRoles(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) ListRouteProfiles(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) ListRouteSuggestions(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) ListRoutes(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) ListServiceAccountTokens(ctx context.Context, serviceAccountId ServiceAccountId, ...) (*http.Response, error)
- func (c *Client) ListServiceAccounts(ctx context.Context, params *ListServiceAccountsParams, ...) (*http.Response, error)
- func (c *Client) ListSeverityValues(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) ListSnoozePresets(ctx context.Context, params *ListSnoozePresetsParams, ...) (*http.Response, error)
- func (c *Client) ListStoredSnapshots(ctx context.Context, params *ListStoredSnapshotsParams, ...) (*http.Response, error)
- func (c *Client) ListSystemNotices(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) ListUserAccountLinks(ctx context.Context, userId UserId, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) ListUserDirectory(ctx context.Context, params *ListUserDirectoryParams, ...) (*http.Response, error)
- func (c *Client) ListUsers(ctx context.Context, params *ListUsersParams, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) MattermostAction(ctx context.Context, connectionId ConnectionId, ...) (*http.Response, error)
- func (c *Client) MattermostActionWithBody(ctx context.Context, connectionId ConnectionId, contentType string, ...) (*http.Response, error)
- func (c *Client) MoveOpenAlertGroups(ctx context.Context, routeId RouteId, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) PreviewDestination(ctx context.Context, destinationId DestinationId, ...) (*http.Response, error)
- func (c *Client) PreviewDestinationWithBody(ctx context.Context, destinationId DestinationId, contentType string, ...) (*http.Response, error)
- func (c *Client) PreviewGroupKey(ctx context.Context, body PreviewGroupKeyJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) PreviewGroupKeyWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) PreviewTemplate(ctx context.Context, body PreviewTemplateJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) PreviewTemplateWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) RegenerateTotpRecoveryCodes(ctx context.Context, body RegenerateTotpRecoveryCodesJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) RegenerateTotpRecoveryCodesWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) RemoveTotp(ctx context.Context, body RemoveTotpJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) RemoveTotpWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) ReorderRoutes(ctx context.Context, params *ReorderRoutesParams, ...) (*http.Response, error)
- func (c *Client) ReorderRoutesWithBody(ctx context.Context, params *ReorderRoutesParams, contentType string, ...) (*http.Response, error)
- func (c *Client) ResetUserTotp(ctx context.Context, userId UserId, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) ResolveAlertGroup(ctx context.Context, alertGroupId AlertGroupId, ...) (*http.Response, error)
- func (c *Client) ResolveAlertGroupWithBody(ctx context.Context, alertGroupId AlertGroupId, contentType string, ...) (*http.Response, error)
- func (c *Client) RetirePreviousSigningSecret(ctx context.Context, destinationId DestinationId, ...) (*http.Response, error)
- func (c *Client) RevokeIntegrationToken(ctx context.Context, integrationId IntegrationId, ...) (*http.Response, error)
- func (c *Client) RevokePersonalAccessToken(ctx context.Context, tokenId TokenId, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) RevokeServiceAccountToken(ctx context.Context, serviceAccountId ServiceAccountId, tokenId TokenId, ...) (*http.Response, error)
- func (c *Client) RunBulkCommand(ctx context.Context, body RunBulkCommandJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) RunBulkCommandWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) SetDestinationSecret(ctx context.Context, destinationId DestinationId, secretName SecretName, ...) (*http.Response, error)
- func (c *Client) SetDestinationSecretWithBody(ctx context.Context, destinationId DestinationId, secretName SecretName, ...) (*http.Response, error)
- func (c *Client) SlackInteractionWithBody(ctx context.Context, connectionId ConnectionId, params *SlackInteractionParams, ...) (*http.Response, error)
- func (c *Client) SlackInteractionWithFormdataBody(ctx context.Context, connectionId ConnectionId, params *SlackInteractionParams, ...) (*http.Response, error)
- func (c *Client) SnoozeAlertGroup(ctx context.Context, alertGroupId AlertGroupId, ...) (*http.Response, error)
- func (c *Client) SnoozeAlertGroupWithBody(ctx context.Context, alertGroupId AlertGroupId, contentType string, ...) (*http.Response, error)
- func (c *Client) StartBridgeCodeLink(ctx context.Context, body StartBridgeCodeLinkJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) StartBridgeCodeLinkWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) StartBridgeLink(ctx context.Context, body StartBridgeLinkJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) StartBridgeLinkWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) StartMattermostLink(ctx context.Context, body StartMattermostLinkJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) StartMattermostLinkWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) StartOidcLink(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) StartOidcSignIn(ctx context.Context, params *StartOidcSignInParams, ...) (*http.Response, error)
- func (c *Client) StartSlackLink(ctx context.Context, body StartSlackLinkJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) StartSlackLinkWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) StartTelegramLink(ctx context.Context, body StartTelegramLinkJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) StartTelegramLinkWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) StreamLiveUpdates(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) SubmitSessionTotp(ctx context.Context, body SubmitSessionTotpJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) SubmitSessionTotpWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) TelegramWebhook(ctx context.Context, connectionId ConnectionId, ...) (*http.Response, error)
- func (c *Client) TelegramWebhookWithBody(ctx context.Context, connectionId ConnectionId, contentType string, ...) (*http.Response, error)
- func (c *Client) TestDestination(ctx context.Context, destinationId DestinationId, ...) (*http.Response, error)
- func (c *Client) TestDestinationWithBody(ctx context.Context, destinationId DestinationId, contentType string, ...) (*http.Response, error)
- func (c *Client) UnacknowledgeAlertGroup(ctx context.Context, alertGroupId AlertGroupId, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) UnresolveAlertGroup(ctx context.Context, alertGroupId AlertGroupId, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) UnsnoozeAlertGroup(ctx context.Context, alertGroupId AlertGroupId, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) UpdateConnection(ctx context.Context, connectionId ConnectionId, params *UpdateConnectionParams, ...) (*http.Response, error)
- func (c *Client) UpdateConnectionWithBody(ctx context.Context, connectionId ConnectionId, params *UpdateConnectionParams, ...) (*http.Response, error)
- func (c *Client) UpdateDestination(ctx context.Context, destinationId DestinationId, ...) (*http.Response, error)
- func (c *Client) UpdateDestinationWithBody(ctx context.Context, destinationId DestinationId, ...) (*http.Response, error)
- func (c *Client) UpdateIntegration(ctx context.Context, integrationId IntegrationId, ...) (*http.Response, error)
- func (c *Client) UpdateIntegrationWithBody(ctx context.Context, integrationId IntegrationId, ...) (*http.Response, error)
- func (c *Client) UpdateLinkRule(ctx context.Context, linkRuleId LinkRuleId, params *UpdateLinkRuleParams, ...) (*http.Response, error)
- func (c *Client) UpdateLinkRuleWithBody(ctx context.Context, linkRuleId LinkRuleId, params *UpdateLinkRuleParams, ...) (*http.Response, error)
- func (c *Client) UpdateLookupTable(ctx context.Context, lookupTableId LookupTableId, ...) (*http.Response, error)
- func (c *Client) UpdateLookupTableWithBody(ctx context.Context, lookupTableId LookupTableId, ...) (*http.Response, error)
- func (c *Client) UpdateMe(ctx context.Context, body UpdateMeJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) UpdateMeWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) UpdateOidcSettings(ctx context.Context, params *UpdateOidcSettingsParams, ...) (*http.Response, error)
- func (c *Client) UpdateOidcSettingsWithBody(ctx context.Context, params *UpdateOidcSettingsParams, contentType string, ...) (*http.Response, error)
- func (c *Client) UpdateOrganization(ctx context.Context, params *UpdateOrganizationParams, ...) (*http.Response, error)
- func (c *Client) UpdateOrganizationWithBody(ctx context.Context, params *UpdateOrganizationParams, contentType string, ...) (*http.Response, error)
- func (c *Client) UpdateOutboundPolicy(ctx context.Context, params *UpdateOutboundPolicyParams, ...) (*http.Response, error)
- func (c *Client) UpdateOutboundPolicyWithBody(ctx context.Context, params *UpdateOutboundPolicyParams, contentType string, ...) (*http.Response, error)
- func (c *Client) UpdateRoute(ctx context.Context, routeId RouteId, params *UpdateRouteParams, ...) (*http.Response, error)
- func (c *Client) UpdateRouteWithBody(ctx context.Context, routeId RouteId, params *UpdateRouteParams, ...) (*http.Response, error)
- func (c *Client) UpdateServiceAccount(ctx context.Context, serviceAccountId ServiceAccountId, ...) (*http.Response, error)
- func (c *Client) UpdateServiceAccountWithBody(ctx context.Context, serviceAccountId ServiceAccountId, ...) (*http.Response, error)
- func (c *Client) UpdateUser(ctx context.Context, userId UserId, params *UpdateUserParams, ...) (*http.Response, error)
- func (c *Client) UpdateUserWithBody(ctx context.Context, userId UserId, params *UpdateUserParams, ...) (*http.Response, error)
- type ClientInterface
- type ClientOption
- type ClientWithResponses
- func (c *ClientWithResponses) AcceptRouteSuggestionWithBodyWithResponse(ctx context.Context, suggestionId SuggestionId, contentType string, ...) (*AcceptRouteSuggestionResponse, error)
- func (c *ClientWithResponses) AcceptRouteSuggestionWithResponse(ctx context.Context, suggestionId SuggestionId, ...) (*AcceptRouteSuggestionResponse, error)
- func (c *ClientWithResponses) AcknowledgeAlertGroupWithResponse(ctx context.Context, alertGroupId AlertGroupId, reqEditors ...RequestEditorFn) (*AcknowledgeAlertGroupResponse, error)
- func (c *ClientWithResponses) AnswerReminderWithResponse(ctx context.Context, alertGroupId AlertGroupId, reqEditors ...RequestEditorFn) (*AnswerReminderResponse, error)
- func (c *ClientWithResponses) BeginTotpEnrolmentWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*BeginTotpEnrolmentResponse, error)
- func (c *ClientWithResponses) BridgeEventWithBodyWithResponse(ctx context.Context, connectionId ConnectionId, params *BridgeEventParams, ...) (*BridgeEventResponse, error)
- func (c *ClientWithResponses) BridgeEventWithResponse(ctx context.Context, connectionId ConnectionId, params *BridgeEventParams, ...) (*BridgeEventResponse, error)
- func (c *ClientWithResponses) ChangePasswordWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*ChangePasswordResponse, error)
- func (c *ClientWithResponses) ChangePasswordWithResponse(ctx context.Context, body ChangePasswordJSONRequestBody, ...) (*ChangePasswordResponse, error)
- func (c *ClientWithResponses) CheckConnectionDraftWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*CheckConnectionDraftResponse, error)
- func (c *ClientWithResponses) CheckConnectionDraftWithResponse(ctx context.Context, body CheckConnectionDraftJSONRequestBody, ...) (*CheckConnectionDraftResponse, error)
- func (c *ClientWithResponses) CheckConnectionWithBodyWithResponse(ctx context.Context, connectionId ConnectionId, contentType string, ...) (*CheckConnectionResponse, error)
- func (c *ClientWithResponses) CheckConnectionWithResponse(ctx context.Context, connectionId ConnectionId, ...) (*CheckConnectionResponse, error)
- func (c *ClientWithResponses) CheckDestinationWithResponse(ctx context.Context, destinationId DestinationId, ...) (*CheckDestinationResponse, error)
- func (c *ClientWithResponses) CheckOidcSettingsWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*CheckOidcSettingsResponse, error)
- func (c *ClientWithResponses) CompleteOidcLinkWithResponse(ctx context.Context, params *CompleteOidcLinkParams, ...) (*CompleteOidcLinkResponse, error)
- func (c *ClientWithResponses) CompleteOidcSignInWithResponse(ctx context.Context, params *CompleteOidcSignInParams, ...) (*CompleteOidcSignInResponse, error)
- func (c *ClientWithResponses) CompletePasswordSetupWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*CompletePasswordSetupResponse, error)
- func (c *ClientWithResponses) CompletePasswordSetupWithResponse(ctx context.Context, body CompletePasswordSetupJSONRequestBody, ...) (*CompletePasswordSetupResponse, error)
- func (c *ClientWithResponses) ConfirmBridgeLinkWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*ConfirmBridgeLinkResponse, error)
- func (c *ClientWithResponses) ConfirmBridgeLinkWithResponse(ctx context.Context, body ConfirmBridgeLinkJSONRequestBody, ...) (*ConfirmBridgeLinkResponse, error)
- func (c *ClientWithResponses) ConfirmMattermostLinkWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*ConfirmMattermostLinkResponse, error)
- func (c *ClientWithResponses) ConfirmMattermostLinkWithResponse(ctx context.Context, body ConfirmMattermostLinkJSONRequestBody, ...) (*ConfirmMattermostLinkResponse, error)
- func (c *ClientWithResponses) ConfirmSlackLinkWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*ConfirmSlackLinkResponse, error)
- func (c *ClientWithResponses) ConfirmSlackLinkWithResponse(ctx context.Context, body ConfirmSlackLinkJSONRequestBody, ...) (*ConfirmSlackLinkResponse, error)
- func (c *ClientWithResponses) ConfirmTotpEnrolmentWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*ConfirmTotpEnrolmentResponse, error)
- func (c *ClientWithResponses) ConfirmTotpEnrolmentWithResponse(ctx context.Context, body ConfirmTotpEnrolmentJSONRequestBody, ...) (*ConfirmTotpEnrolmentResponse, error)
- func (c *ClientWithResponses) ConvertUserToLocalWithResponse(ctx context.Context, userId UserId, reqEditors ...RequestEditorFn) (*ConvertUserToLocalResponse, error)
- func (c *ClientWithResponses) CreateAlertGroupNoteWithBodyWithResponse(ctx context.Context, alertGroupId AlertGroupId, contentType string, ...) (*CreateAlertGroupNoteResponse, error)
- func (c *ClientWithResponses) CreateAlertGroupNoteWithResponse(ctx context.Context, alertGroupId AlertGroupId, ...) (*CreateAlertGroupNoteResponse, error)
- func (c *ClientWithResponses) CreateConnectionWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*CreateConnectionResponse, error)
- func (c *ClientWithResponses) CreateConnectionWithResponse(ctx context.Context, body CreateConnectionJSONRequestBody, ...) (*CreateConnectionResponse, error)
- func (c *ClientWithResponses) CreateDestinationWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*CreateDestinationResponse, error)
- func (c *ClientWithResponses) CreateDestinationWithResponse(ctx context.Context, body CreateDestinationJSONRequestBody, ...) (*CreateDestinationResponse, error)
- func (c *ClientWithResponses) CreateIntegrationTokenWithBodyWithResponse(ctx context.Context, integrationId IntegrationId, contentType string, ...) (*CreateIntegrationTokenResponse, error)
- func (c *ClientWithResponses) CreateIntegrationTokenWithResponse(ctx context.Context, integrationId IntegrationId, ...) (*CreateIntegrationTokenResponse, error)
- func (c *ClientWithResponses) CreateIntegrationWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*CreateIntegrationResponse, error)
- func (c *ClientWithResponses) CreateIntegrationWithResponse(ctx context.Context, body CreateIntegrationJSONRequestBody, ...) (*CreateIntegrationResponse, error)
- func (c *ClientWithResponses) CreateLinkRuleWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*CreateLinkRuleResponse, error)
- func (c *ClientWithResponses) CreateLinkRuleWithResponse(ctx context.Context, body CreateLinkRuleJSONRequestBody, ...) (*CreateLinkRuleResponse, error)
- func (c *ClientWithResponses) CreateLookupTableWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*CreateLookupTableResponse, error)
- func (c *ClientWithResponses) CreateLookupTableWithResponse(ctx context.Context, body CreateLookupTableJSONRequestBody, ...) (*CreateLookupTableResponse, error)
- func (c *ClientWithResponses) CreatePasswordSetupLinkWithResponse(ctx context.Context, userId UserId, reqEditors ...RequestEditorFn) (*CreatePasswordSetupLinkResponse, error)
- func (c *ClientWithResponses) CreatePersonalAccessTokenWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*CreatePersonalAccessTokenResponse, error)
- func (c *ClientWithResponses) CreatePersonalAccessTokenWithResponse(ctx context.Context, body CreatePersonalAccessTokenJSONRequestBody, ...) (*CreatePersonalAccessTokenResponse, error)
- func (c *ClientWithResponses) CreateRouteWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*CreateRouteResponse, error)
- func (c *ClientWithResponses) CreateRouteWithResponse(ctx context.Context, body CreateRouteJSONRequestBody, ...) (*CreateRouteResponse, error)
- func (c *ClientWithResponses) CreateServiceAccountTokenWithBodyWithResponse(ctx context.Context, serviceAccountId ServiceAccountId, contentType string, ...) (*CreateServiceAccountTokenResponse, error)
- func (c *ClientWithResponses) CreateServiceAccountTokenWithResponse(ctx context.Context, serviceAccountId ServiceAccountId, ...) (*CreateServiceAccountTokenResponse, error)
- func (c *ClientWithResponses) CreateServiceAccountWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*CreateServiceAccountResponse, error)
- func (c *ClientWithResponses) CreateServiceAccountWithResponse(ctx context.Context, body CreateServiceAccountJSONRequestBody, ...) (*CreateServiceAccountResponse, error)
- func (c *ClientWithResponses) CreateSessionWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*CreateSessionResponse, error)
- func (c *ClientWithResponses) CreateSessionWithResponse(ctx context.Context, body CreateSessionJSONRequestBody, ...) (*CreateSessionResponse, error)
- func (c *ClientWithResponses) CreateUserWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*CreateUserResponse, error)
- func (c *ClientWithResponses) CreateUserWithResponse(ctx context.Context, body CreateUserJSONRequestBody, ...) (*CreateUserResponse, error)
- func (c *ClientWithResponses) DeleteConnectionWithResponse(ctx context.Context, connectionId ConnectionId, params *DeleteConnectionParams, ...) (*DeleteConnectionResponse, error)
- func (c *ClientWithResponses) DeleteCurrentSessionWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*DeleteCurrentSessionResponse, error)
- func (c *ClientWithResponses) DeleteDestinationSecretWithResponse(ctx context.Context, destinationId DestinationId, secretName SecretName, ...) (*DeleteDestinationSecretResponse, error)
- func (c *ClientWithResponses) DeleteDestinationWithResponse(ctx context.Context, destinationId DestinationId, ...) (*DeleteDestinationResponse, error)
- func (c *ClientWithResponses) DeleteIntegrationWithResponse(ctx context.Context, integrationId IntegrationId, ...) (*DeleteIntegrationResponse, error)
- func (c *ClientWithResponses) DeleteLinkRuleWithResponse(ctx context.Context, linkRuleId LinkRuleId, params *DeleteLinkRuleParams, ...) (*DeleteLinkRuleResponse, error)
- func (c *ClientWithResponses) DeleteLookupTableWithResponse(ctx context.Context, lookupTableId LookupTableId, ...) (*DeleteLookupTableResponse, error)
- func (c *ClientWithResponses) DeleteMyAccountLinkWithResponse(ctx context.Context, accountLinkId AccountLinkId, ...) (*DeleteMyAccountLinkResponse, error)
- func (c *ClientWithResponses) DeleteMySessionsWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*DeleteMySessionsResponse, error)
- func (c *ClientWithResponses) DeleteRouteWithResponse(ctx context.Context, routeId RouteId, params *DeleteRouteParams, ...) (*DeleteRouteResponse, error)
- func (c *ClientWithResponses) DeleteServiceAccountWithResponse(ctx context.Context, serviceAccountId ServiceAccountId, ...) (*DeleteServiceAccountResponse, error)
- func (c *ClientWithResponses) DeleteUserAccountLinkWithResponse(ctx context.Context, userId UserId, accountLinkId AccountLinkId, ...) (*DeleteUserAccountLinkResponse, error)
- func (c *ClientWithResponses) DeleteUserWithResponse(ctx context.Context, userId UserId, params *DeleteUserParams, ...) (*DeleteUserResponse, error)
- func (c *ClientWithResponses) DisableServiceAccountWithResponse(ctx context.Context, serviceAccountId ServiceAccountId, ...) (*DisableServiceAccountResponse, error)
- func (c *ClientWithResponses) DisableUserWithResponse(ctx context.Context, userId UserId, reqEditors ...RequestEditorFn) (*DisableUserResponse, error)
- func (c *ClientWithResponses) DismissRouteSuggestionWithResponse(ctx context.Context, suggestionId SuggestionId, reqEditors ...RequestEditorFn) (*DismissRouteSuggestionResponse, error)
- func (c *ClientWithResponses) EnableServiceAccountWithResponse(ctx context.Context, serviceAccountId ServiceAccountId, ...) (*EnableServiceAccountResponse, error)
- func (c *ClientWithResponses) EnableUserWithResponse(ctx context.Context, userId UserId, reqEditors ...RequestEditorFn) (*EnableUserResponse, error)
- func (c *ClientWithResponses) GenerateSigningSecretWithResponse(ctx context.Context, destinationId DestinationId, ...) (*GenerateSigningSecretResponse, error)
- func (c *ClientWithResponses) GetAlertGroupCountsWithResponse(ctx context.Context, params *GetAlertGroupCountsParams, ...) (*GetAlertGroupCountsResponse, error)
- func (c *ClientWithResponses) GetAlertGroupStatisticsWithResponse(ctx context.Context, params *GetAlertGroupStatisticsParams, ...) (*GetAlertGroupStatisticsResponse, error)
- func (c *ClientWithResponses) GetAlertGroupTimelineWithResponse(ctx context.Context, alertGroupId AlertGroupId, ...) (*GetAlertGroupTimelineResponse, error)
- func (c *ClientWithResponses) GetAlertGroupWithResponse(ctx context.Context, alertGroupId AlertGroupId, reqEditors ...RequestEditorFn) (*GetAlertGroupResponse, error)
- func (c *ClientWithResponses) GetConnectionWithResponse(ctx context.Context, connectionId ConnectionId, reqEditors ...RequestEditorFn) (*GetConnectionResponse, error)
- func (c *ClientWithResponses) GetCurrentSessionWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetCurrentSessionResponse, error)
- func (c *ClientWithResponses) GetDestinationWithResponse(ctx context.Context, destinationId DestinationId, ...) (*GetDestinationResponse, error)
- func (c *ClientWithResponses) GetIntegrationWithResponse(ctx context.Context, integrationId IntegrationId, ...) (*GetIntegrationResponse, error)
- func (c *ClientWithResponses) GetKeyringWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetKeyringResponse, error)
- func (c *ClientWithResponses) GetLinkRuleWithResponse(ctx context.Context, linkRuleId LinkRuleId, reqEditors ...RequestEditorFn) (*GetLinkRuleResponse, error)
- func (c *ClientWithResponses) GetLookupTableWithResponse(ctx context.Context, lookupTableId LookupTableId, ...) (*GetLookupTableResponse, error)
- func (c *ClientWithResponses) GetMeWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetMeResponse, error)
- func (c *ClientWithResponses) GetMyTotpWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetMyTotpResponse, error)
- func (c *ClientWithResponses) GetOidcSettingsWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetOidcSettingsResponse, error)
- func (c *ClientWithResponses) GetOpenApiSpecWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetOpenApiSpecResponse, error)
- func (c *ClientWithResponses) GetOrganizationWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetOrganizationResponse, error)
- func (c *ClientWithResponses) GetOutboundPolicyWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetOutboundPolicyResponse, error)
- func (c *ClientWithResponses) GetRequestRecordWithResponse(ctx context.Context, requestRecordId RequestRecordId, ...) (*GetRequestRecordResponse, error)
- func (c *ClientWithResponses) GetRouteWithResponse(ctx context.Context, routeId RouteId, reqEditors ...RequestEditorFn) (*GetRouteResponse, error)
- func (c *ClientWithResponses) GetServiceAccountWithResponse(ctx context.Context, serviceAccountId ServiceAccountId, ...) (*GetServiceAccountResponse, error)
- func (c *ClientWithResponses) GetSignInOptionsWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetSignInOptionsResponse, error)
- func (c *ClientWithResponses) GetSigningSecretWithResponse(ctx context.Context, destinationId DestinationId, ...) (*GetSigningSecretResponse, error)
- func (c *ClientWithResponses) GetStoredSnapshotWithResponse(ctx context.Context, storedSnapshotId StoredSnapshotId, ...) (*GetStoredSnapshotResponse, error)
- func (c *ClientWithResponses) GetSystemStatusWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetSystemStatusResponse, error)
- func (c *ClientWithResponses) GetUserWithResponse(ctx context.Context, userId UserId, reqEditors ...RequestEditorFn) (*GetUserResponse, error)
- func (c *ClientWithResponses) HeartbeatGetWithPathTokenWithResponse(ctx context.Context, ingestToken IngestTokenInPath, ...) (*HeartbeatGetWithPathTokenResponse, error)
- func (c *ClientWithResponses) HeartbeatGetWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*HeartbeatGetResponse, error)
- func (c *ClientWithResponses) HeartbeatPostWithPathTokenWithResponse(ctx context.Context, ingestToken IngestTokenInPath, ...) (*HeartbeatPostWithPathTokenResponse, error)
- func (c *ClientWithResponses) HeartbeatPostWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*HeartbeatPostResponse, error)
- func (c *ClientWithResponses) IngestSnapshotWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*IngestSnapshotResponse, error)
- func (c *ClientWithResponses) IngestSnapshotWithPathTokenWithBodyWithResponse(ctx context.Context, ingestToken IngestTokenInPath, contentType string, ...) (*IngestSnapshotWithPathTokenResponse, error)
- func (c *ClientWithResponses) ListAlertGroupAlertsWithResponse(ctx context.Context, alertGroupId AlertGroupId, ...) (*ListAlertGroupAlertsResponse, error)
- func (c *ClientWithResponses) ListAlertGroupDeliveriesWithResponse(ctx context.Context, alertGroupId AlertGroupId, reqEditors ...RequestEditorFn) (*ListAlertGroupDeliveriesResponse, error)
- func (c *ClientWithResponses) ListAlertGroupNotesWithResponse(ctx context.Context, alertGroupId AlertGroupId, ...) (*ListAlertGroupNotesResponse, error)
- func (c *ClientWithResponses) ListAlertGroupsWithResponse(ctx context.Context, params *ListAlertGroupsParams, ...) (*ListAlertGroupsResponse, error)
- func (c *ClientWithResponses) ListAlertmanagerRoutesWithResponse(ctx context.Context, integrationId IntegrationId, ...) (*ListAlertmanagerRoutesResponse, error)
- func (c *ClientWithResponses) ListAuditLogWithResponse(ctx context.Context, params *ListAuditLogParams, reqEditors ...RequestEditorFn) (*ListAuditLogResponse, error)
- func (c *ClientWithResponses) ListConnectionChannelsWithResponse(ctx context.Context, connectionId ConnectionId, ...) (*ListConnectionChannelsResponse, error)
- func (c *ClientWithResponses) ListConnectionsWithResponse(ctx context.Context, params *ListConnectionsParams, ...) (*ListConnectionsResponse, error)
- func (c *ClientWithResponses) ListDestinationSecretsWithResponse(ctx context.Context, destinationId DestinationId, ...) (*ListDestinationSecretsResponse, error)
- func (c *ClientWithResponses) ListDestinationsWithResponse(ctx context.Context, params *ListDestinationsParams, ...) (*ListDestinationsResponse, error)
- func (c *ClientWithResponses) ListIntegrationAlertsWithResponse(ctx context.Context, integrationId IntegrationId, ...) (*ListIntegrationAlertsResponse, error)
- func (c *ClientWithResponses) ListIntegrationTokensWithResponse(ctx context.Context, integrationId IntegrationId, ...) (*ListIntegrationTokensResponse, error)
- func (c *ClientWithResponses) ListIntegrationsWithResponse(ctx context.Context, params *ListIntegrationsParams, ...) (*ListIntegrationsResponse, error)
- func (c *ClientWithResponses) ListLinkRulesWithResponse(ctx context.Context, params *ListLinkRulesParams, ...) (*ListLinkRulesResponse, error)
- func (c *ClientWithResponses) ListLinkableConnectionsWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*ListLinkableConnectionsResponse, error)
- func (c *ClientWithResponses) ListLookupTablesWithResponse(ctx context.Context, params *ListLookupTablesParams, ...) (*ListLookupTablesResponse, error)
- func (c *ClientWithResponses) ListMyAccountLinksWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*ListMyAccountLinksResponse, error)
- func (c *ClientWithResponses) ListMySessionsWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*ListMySessionsResponse, error)
- func (c *ClientWithResponses) ListPersonalAccessTokensWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*ListPersonalAccessTokensResponse, error)
- func (c *ClientWithResponses) ListRelatedAlertGroupsWithResponse(ctx context.Context, alertGroupId AlertGroupId, ...) (*ListRelatedAlertGroupsResponse, error)
- func (c *ClientWithResponses) ListRequestLogWithResponse(ctx context.Context, params *ListRequestLogParams, ...) (*ListRequestLogResponse, error)
- func (c *ClientWithResponses) ListRolesWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*ListRolesResponse, error)
- func (c *ClientWithResponses) ListRouteProfilesWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*ListRouteProfilesResponse, error)
- func (c *ClientWithResponses) ListRouteSuggestionsWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*ListRouteSuggestionsResponse, error)
- func (c *ClientWithResponses) ListRoutesWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*ListRoutesResponse, error)
- func (c *ClientWithResponses) ListServiceAccountTokensWithResponse(ctx context.Context, serviceAccountId ServiceAccountId, ...) (*ListServiceAccountTokensResponse, error)
- func (c *ClientWithResponses) ListServiceAccountsWithResponse(ctx context.Context, params *ListServiceAccountsParams, ...) (*ListServiceAccountsResponse, error)
- func (c *ClientWithResponses) ListSeverityValuesWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*ListSeverityValuesResponse, error)
- func (c *ClientWithResponses) ListSnoozePresetsWithResponse(ctx context.Context, params *ListSnoozePresetsParams, ...) (*ListSnoozePresetsResponse, error)
- func (c *ClientWithResponses) ListStoredSnapshotsWithResponse(ctx context.Context, params *ListStoredSnapshotsParams, ...) (*ListStoredSnapshotsResponse, error)
- func (c *ClientWithResponses) ListSystemNoticesWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*ListSystemNoticesResponse, error)
- func (c *ClientWithResponses) ListUserAccountLinksWithResponse(ctx context.Context, userId UserId, reqEditors ...RequestEditorFn) (*ListUserAccountLinksResponse, error)
- func (c *ClientWithResponses) ListUserDirectoryWithResponse(ctx context.Context, params *ListUserDirectoryParams, ...) (*ListUserDirectoryResponse, error)
- func (c *ClientWithResponses) ListUsersWithResponse(ctx context.Context, params *ListUsersParams, reqEditors ...RequestEditorFn) (*ListUsersResponse, error)
- func (c *ClientWithResponses) MattermostActionWithBodyWithResponse(ctx context.Context, connectionId ConnectionId, contentType string, ...) (*MattermostActionResponse, error)
- func (c *ClientWithResponses) MattermostActionWithResponse(ctx context.Context, connectionId ConnectionId, ...) (*MattermostActionResponse, error)
- func (c *ClientWithResponses) MoveOpenAlertGroupsWithResponse(ctx context.Context, routeId RouteId, reqEditors ...RequestEditorFn) (*MoveOpenAlertGroupsResponse, error)
- func (c *ClientWithResponses) PreviewDestinationWithBodyWithResponse(ctx context.Context, destinationId DestinationId, contentType string, ...) (*PreviewDestinationResponse, error)
- func (c *ClientWithResponses) PreviewDestinationWithResponse(ctx context.Context, destinationId DestinationId, ...) (*PreviewDestinationResponse, error)
- func (c *ClientWithResponses) PreviewGroupKeyWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*PreviewGroupKeyResponse, error)
- func (c *ClientWithResponses) PreviewGroupKeyWithResponse(ctx context.Context, body PreviewGroupKeyJSONRequestBody, ...) (*PreviewGroupKeyResponse, error)
- func (c *ClientWithResponses) PreviewTemplateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*PreviewTemplateResponse, error)
- func (c *ClientWithResponses) PreviewTemplateWithResponse(ctx context.Context, body PreviewTemplateJSONRequestBody, ...) (*PreviewTemplateResponse, error)
- func (c *ClientWithResponses) RegenerateTotpRecoveryCodesWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*RegenerateTotpRecoveryCodesResponse, error)
- func (c *ClientWithResponses) RegenerateTotpRecoveryCodesWithResponse(ctx context.Context, body RegenerateTotpRecoveryCodesJSONRequestBody, ...) (*RegenerateTotpRecoveryCodesResponse, error)
- func (c *ClientWithResponses) RemoveTotpWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*RemoveTotpResponse, error)
- func (c *ClientWithResponses) RemoveTotpWithResponse(ctx context.Context, body RemoveTotpJSONRequestBody, ...) (*RemoveTotpResponse, error)
- func (c *ClientWithResponses) ReorderRoutesWithBodyWithResponse(ctx context.Context, params *ReorderRoutesParams, contentType string, ...) (*ReorderRoutesResponse, error)
- func (c *ClientWithResponses) ReorderRoutesWithResponse(ctx context.Context, params *ReorderRoutesParams, ...) (*ReorderRoutesResponse, error)
- func (c *ClientWithResponses) ResetUserTotpWithResponse(ctx context.Context, userId UserId, reqEditors ...RequestEditorFn) (*ResetUserTotpResponse, error)
- func (c *ClientWithResponses) ResolveAlertGroupWithBodyWithResponse(ctx context.Context, alertGroupId AlertGroupId, contentType string, ...) (*ResolveAlertGroupResponse, error)
- func (c *ClientWithResponses) ResolveAlertGroupWithResponse(ctx context.Context, alertGroupId AlertGroupId, ...) (*ResolveAlertGroupResponse, error)
- func (c *ClientWithResponses) RetirePreviousSigningSecretWithResponse(ctx context.Context, destinationId DestinationId, ...) (*RetirePreviousSigningSecretResponse, error)
- func (c *ClientWithResponses) RevokeIntegrationTokenWithResponse(ctx context.Context, integrationId IntegrationId, ...) (*RevokeIntegrationTokenResponse, error)
- func (c *ClientWithResponses) RevokePersonalAccessTokenWithResponse(ctx context.Context, tokenId TokenId, reqEditors ...RequestEditorFn) (*RevokePersonalAccessTokenResponse, error)
- func (c *ClientWithResponses) RevokeServiceAccountTokenWithResponse(ctx context.Context, serviceAccountId ServiceAccountId, tokenId TokenId, ...) (*RevokeServiceAccountTokenResponse, error)
- func (c *ClientWithResponses) RunBulkCommandWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*RunBulkCommandResponse, error)
- func (c *ClientWithResponses) RunBulkCommandWithResponse(ctx context.Context, body RunBulkCommandJSONRequestBody, ...) (*RunBulkCommandResponse, error)
- func (c *ClientWithResponses) SetDestinationSecretWithBodyWithResponse(ctx context.Context, destinationId DestinationId, secretName SecretName, ...) (*SetDestinationSecretResponse, error)
- func (c *ClientWithResponses) SetDestinationSecretWithResponse(ctx context.Context, destinationId DestinationId, secretName SecretName, ...) (*SetDestinationSecretResponse, error)
- func (c *ClientWithResponses) SlackInteractionWithBodyWithResponse(ctx context.Context, connectionId ConnectionId, params *SlackInteractionParams, ...) (*SlackInteractionResponse, error)
- func (c *ClientWithResponses) SlackInteractionWithFormdataBodyWithResponse(ctx context.Context, connectionId ConnectionId, params *SlackInteractionParams, ...) (*SlackInteractionResponse, error)
- func (c *ClientWithResponses) SnoozeAlertGroupWithBodyWithResponse(ctx context.Context, alertGroupId AlertGroupId, contentType string, ...) (*SnoozeAlertGroupResponse, error)
- func (c *ClientWithResponses) SnoozeAlertGroupWithResponse(ctx context.Context, alertGroupId AlertGroupId, ...) (*SnoozeAlertGroupResponse, error)
- func (c *ClientWithResponses) StartBridgeCodeLinkWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*StartBridgeCodeLinkResponse, error)
- func (c *ClientWithResponses) StartBridgeCodeLinkWithResponse(ctx context.Context, body StartBridgeCodeLinkJSONRequestBody, ...) (*StartBridgeCodeLinkResponse, error)
- func (c *ClientWithResponses) StartBridgeLinkWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*StartBridgeLinkResponse, error)
- func (c *ClientWithResponses) StartBridgeLinkWithResponse(ctx context.Context, body StartBridgeLinkJSONRequestBody, ...) (*StartBridgeLinkResponse, error)
- func (c *ClientWithResponses) StartMattermostLinkWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*StartMattermostLinkResponse, error)
- func (c *ClientWithResponses) StartMattermostLinkWithResponse(ctx context.Context, body StartMattermostLinkJSONRequestBody, ...) (*StartMattermostLinkResponse, error)
- func (c *ClientWithResponses) StartOidcLinkWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*StartOidcLinkResponse, error)
- func (c *ClientWithResponses) StartOidcSignInWithResponse(ctx context.Context, params *StartOidcSignInParams, ...) (*StartOidcSignInResponse, error)
- func (c *ClientWithResponses) StartSlackLinkWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*StartSlackLinkResponse, error)
- func (c *ClientWithResponses) StartSlackLinkWithResponse(ctx context.Context, body StartSlackLinkJSONRequestBody, ...) (*StartSlackLinkResponse, error)
- func (c *ClientWithResponses) StartTelegramLinkWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*StartTelegramLinkResponse, error)
- func (c *ClientWithResponses) StartTelegramLinkWithResponse(ctx context.Context, body StartTelegramLinkJSONRequestBody, ...) (*StartTelegramLinkResponse, error)
- func (c *ClientWithResponses) StreamLiveUpdatesWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*StreamLiveUpdatesResponse, error)
- func (c *ClientWithResponses) SubmitSessionTotpWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*SubmitSessionTotpResponse, error)
- func (c *ClientWithResponses) SubmitSessionTotpWithResponse(ctx context.Context, body SubmitSessionTotpJSONRequestBody, ...) (*SubmitSessionTotpResponse, error)
- func (c *ClientWithResponses) TelegramWebhookWithBodyWithResponse(ctx context.Context, connectionId ConnectionId, contentType string, ...) (*TelegramWebhookResponse, error)
- func (c *ClientWithResponses) TelegramWebhookWithResponse(ctx context.Context, connectionId ConnectionId, ...) (*TelegramWebhookResponse, error)
- func (c *ClientWithResponses) TestDestinationWithBodyWithResponse(ctx context.Context, destinationId DestinationId, contentType string, ...) (*TestDestinationResponse, error)
- func (c *ClientWithResponses) TestDestinationWithResponse(ctx context.Context, destinationId DestinationId, ...) (*TestDestinationResponse, error)
- func (c *ClientWithResponses) UnacknowledgeAlertGroupWithResponse(ctx context.Context, alertGroupId AlertGroupId, reqEditors ...RequestEditorFn) (*UnacknowledgeAlertGroupResponse, error)
- func (c *ClientWithResponses) UnresolveAlertGroupWithResponse(ctx context.Context, alertGroupId AlertGroupId, reqEditors ...RequestEditorFn) (*UnresolveAlertGroupResponse, error)
- func (c *ClientWithResponses) UnsnoozeAlertGroupWithResponse(ctx context.Context, alertGroupId AlertGroupId, reqEditors ...RequestEditorFn) (*UnsnoozeAlertGroupResponse, error)
- func (c *ClientWithResponses) UpdateConnectionWithBodyWithResponse(ctx context.Context, connectionId ConnectionId, params *UpdateConnectionParams, ...) (*UpdateConnectionResponse, error)
- func (c *ClientWithResponses) UpdateConnectionWithResponse(ctx context.Context, connectionId ConnectionId, params *UpdateConnectionParams, ...) (*UpdateConnectionResponse, error)
- func (c *ClientWithResponses) UpdateDestinationWithBodyWithResponse(ctx context.Context, destinationId DestinationId, ...) (*UpdateDestinationResponse, error)
- func (c *ClientWithResponses) UpdateDestinationWithResponse(ctx context.Context, destinationId DestinationId, ...) (*UpdateDestinationResponse, error)
- func (c *ClientWithResponses) UpdateIntegrationWithBodyWithResponse(ctx context.Context, integrationId IntegrationId, ...) (*UpdateIntegrationResponse, error)
- func (c *ClientWithResponses) UpdateIntegrationWithResponse(ctx context.Context, integrationId IntegrationId, ...) (*UpdateIntegrationResponse, error)
- func (c *ClientWithResponses) UpdateLinkRuleWithBodyWithResponse(ctx context.Context, linkRuleId LinkRuleId, params *UpdateLinkRuleParams, ...) (*UpdateLinkRuleResponse, error)
- func (c *ClientWithResponses) UpdateLinkRuleWithResponse(ctx context.Context, linkRuleId LinkRuleId, params *UpdateLinkRuleParams, ...) (*UpdateLinkRuleResponse, error)
- func (c *ClientWithResponses) UpdateLookupTableWithBodyWithResponse(ctx context.Context, lookupTableId LookupTableId, ...) (*UpdateLookupTableResponse, error)
- func (c *ClientWithResponses) UpdateLookupTableWithResponse(ctx context.Context, lookupTableId LookupTableId, ...) (*UpdateLookupTableResponse, error)
- func (c *ClientWithResponses) UpdateMeWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*UpdateMeResponse, error)
- func (c *ClientWithResponses) UpdateMeWithResponse(ctx context.Context, body UpdateMeJSONRequestBody, ...) (*UpdateMeResponse, error)
- func (c *ClientWithResponses) UpdateOidcSettingsWithBodyWithResponse(ctx context.Context, params *UpdateOidcSettingsParams, contentType string, ...) (*UpdateOidcSettingsResponse, error)
- func (c *ClientWithResponses) UpdateOidcSettingsWithResponse(ctx context.Context, params *UpdateOidcSettingsParams, ...) (*UpdateOidcSettingsResponse, error)
- func (c *ClientWithResponses) UpdateOrganizationWithBodyWithResponse(ctx context.Context, params *UpdateOrganizationParams, contentType string, ...) (*UpdateOrganizationResponse, error)
- func (c *ClientWithResponses) UpdateOrganizationWithResponse(ctx context.Context, params *UpdateOrganizationParams, ...) (*UpdateOrganizationResponse, error)
- func (c *ClientWithResponses) UpdateOutboundPolicyWithBodyWithResponse(ctx context.Context, params *UpdateOutboundPolicyParams, contentType string, ...) (*UpdateOutboundPolicyResponse, error)
- func (c *ClientWithResponses) UpdateOutboundPolicyWithResponse(ctx context.Context, params *UpdateOutboundPolicyParams, ...) (*UpdateOutboundPolicyResponse, error)
- func (c *ClientWithResponses) UpdateRouteWithBodyWithResponse(ctx context.Context, routeId RouteId, params *UpdateRouteParams, ...) (*UpdateRouteResponse, error)
- func (c *ClientWithResponses) UpdateRouteWithResponse(ctx context.Context, routeId RouteId, params *UpdateRouteParams, ...) (*UpdateRouteResponse, error)
- func (c *ClientWithResponses) UpdateServiceAccountWithBodyWithResponse(ctx context.Context, serviceAccountId ServiceAccountId, ...) (*UpdateServiceAccountResponse, error)
- func (c *ClientWithResponses) UpdateServiceAccountWithResponse(ctx context.Context, serviceAccountId ServiceAccountId, ...) (*UpdateServiceAccountResponse, error)
- func (c *ClientWithResponses) UpdateUserWithBodyWithResponse(ctx context.Context, userId UserId, params *UpdateUserParams, ...) (*UpdateUserResponse, error)
- func (c *ClientWithResponses) UpdateUserWithResponse(ctx context.Context, userId UserId, params *UpdateUserParams, ...) (*UpdateUserResponse, error)
- type ClientWithResponsesInterface
- type CommandName
- type CommandOutcome
- type CommandResult
- type CompleteOidcLinkParams
- type CompleteOidcLinkResponse
- type CompleteOidcLinkResponse302Headers
- type CompleteOidcLinkResponse429Headers
- type CompleteOidcSignInParams
- type CompleteOidcSignInResponse
- type CompleteOidcSignInResponse302Headers
- type CompleteOidcSignInResponse429Headers
- type CompletePasswordSetupJSONRequestBody
- type CompletePasswordSetupResponse
- func (r CompletePasswordSetupResponse) ContentType() string
- func (r CompletePasswordSetupResponse) GetApplicationproblemJSON400() *BadRequest
- func (r CompletePasswordSetupResponse) GetApplicationproblemJSON403() *Forbidden
- func (r CompletePasswordSetupResponse) GetApplicationproblemJSON404() *NotFound
- func (r CompletePasswordSetupResponse) GetApplicationproblemJSON410() *Gone
- func (r CompletePasswordSetupResponse) GetApplicationproblemJSON422() *Unprocessable
- func (r CompletePasswordSetupResponse) GetApplicationproblemJSON429() *TooManyRequests
- func (r CompletePasswordSetupResponse) GetBody() []byte
- func (r CompletePasswordSetupResponse) Status() string
- func (r CompletePasswordSetupResponse) StatusCode() int
- type CompletePasswordSetupResponse429Headers
- type ConfirmBridgeLinkJSONRequestBody
- type ConfirmBridgeLinkResponse
- func (r ConfirmBridgeLinkResponse) ContentType() string
- func (r ConfirmBridgeLinkResponse) GetApplicationproblemJSON400() *BadRequest
- func (r ConfirmBridgeLinkResponse) GetApplicationproblemJSON401() *Unauthorized
- func (r ConfirmBridgeLinkResponse) GetApplicationproblemJSON403() *Forbidden
- func (r ConfirmBridgeLinkResponse) GetApplicationproblemJSON404() *NotFound
- func (r ConfirmBridgeLinkResponse) GetApplicationproblemJSON409() *Conflict
- func (r ConfirmBridgeLinkResponse) GetApplicationproblemJSON422() *Unprocessable
- func (r ConfirmBridgeLinkResponse) GetApplicationproblemJSON429() *TooManyRequests
- func (r ConfirmBridgeLinkResponse) GetBody() []byte
- func (r ConfirmBridgeLinkResponse) GetJSON201() *AccountLink
- func (r ConfirmBridgeLinkResponse) Status() string
- func (r ConfirmBridgeLinkResponse) StatusCode() int
- type ConfirmBridgeLinkResponse429Headers
- type ConfirmMattermostLinkJSONRequestBody
- type ConfirmMattermostLinkResponse
- func (r ConfirmMattermostLinkResponse) ContentType() string
- func (r ConfirmMattermostLinkResponse) GetApplicationproblemJSON400() *BadRequest
- func (r ConfirmMattermostLinkResponse) GetApplicationproblemJSON401() *Unauthorized
- func (r ConfirmMattermostLinkResponse) GetApplicationproblemJSON403() *Forbidden
- func (r ConfirmMattermostLinkResponse) GetApplicationproblemJSON404() *NotFound
- func (r ConfirmMattermostLinkResponse) GetApplicationproblemJSON409() *Conflict
- func (r ConfirmMattermostLinkResponse) GetApplicationproblemJSON422() *Unprocessable
- func (r ConfirmMattermostLinkResponse) GetApplicationproblemJSON429() *TooManyRequests
- func (r ConfirmMattermostLinkResponse) GetApplicationproblemJSON503() *Limited
- func (r ConfirmMattermostLinkResponse) GetBody() []byte
- func (r ConfirmMattermostLinkResponse) GetJSON201() *AccountLink
- func (r ConfirmMattermostLinkResponse) Status() string
- func (r ConfirmMattermostLinkResponse) StatusCode() int
- type ConfirmMattermostLinkResponse429Headers
- type ConfirmMattermostLinkResponse503Headers
- type ConfirmSlackLinkJSONRequestBody
- type ConfirmSlackLinkResponse
- func (r ConfirmSlackLinkResponse) ContentType() string
- func (r ConfirmSlackLinkResponse) GetApplicationproblemJSON400() *BadRequest
- func (r ConfirmSlackLinkResponse) GetApplicationproblemJSON401() *Unauthorized
- func (r ConfirmSlackLinkResponse) GetApplicationproblemJSON403() *Forbidden
- func (r ConfirmSlackLinkResponse) GetApplicationproblemJSON404() *NotFound
- func (r ConfirmSlackLinkResponse) GetApplicationproblemJSON409() *Conflict
- func (r ConfirmSlackLinkResponse) GetApplicationproblemJSON422() *Unprocessable
- func (r ConfirmSlackLinkResponse) GetApplicationproblemJSON429() *TooManyRequests
- func (r ConfirmSlackLinkResponse) GetApplicationproblemJSON503() *Limited
- func (r ConfirmSlackLinkResponse) GetBody() []byte
- func (r ConfirmSlackLinkResponse) GetJSON201() *AccountLink
- func (r ConfirmSlackLinkResponse) Status() string
- func (r ConfirmSlackLinkResponse) StatusCode() int
- type ConfirmSlackLinkResponse429Headers
- type ConfirmSlackLinkResponse503Headers
- type ConfirmTotpEnrolmentJSONRequestBody
- type ConfirmTotpEnrolmentResponse
- func (r ConfirmTotpEnrolmentResponse) ContentType() string
- func (r ConfirmTotpEnrolmentResponse) GetApplicationproblemJSON400() *BadRequest
- func (r ConfirmTotpEnrolmentResponse) GetApplicationproblemJSON401() *Unauthorized
- func (r ConfirmTotpEnrolmentResponse) GetApplicationproblemJSON403() *Forbidden
- func (r ConfirmTotpEnrolmentResponse) GetApplicationproblemJSON409() *Conflict
- func (r ConfirmTotpEnrolmentResponse) GetApplicationproblemJSON422() *Unprocessable
- func (r ConfirmTotpEnrolmentResponse) GetApplicationproblemJSON429() *TooManyRequests
- func (r ConfirmTotpEnrolmentResponse) GetBody() []byte
- func (r ConfirmTotpEnrolmentResponse) GetJSON200() *TotpRecoveryCodes
- func (r ConfirmTotpEnrolmentResponse) Status() string
- func (r ConfirmTotpEnrolmentResponse) StatusCode() int
- type ConfirmTotpEnrolmentResponse429Headers
- type Conflict
- type Connection
- func (t Connection) AsBridgeConnection() (BridgeConnection, error)
- func (t Connection) AsMattermostConnection() (MattermostConnection, error)
- func (t Connection) AsSlackConnection() (SlackConnection, error)
- func (t Connection) AsTelegramConnection() (TelegramConnection, error)
- func (t Connection) Discriminator() (string, error)
- func (t *Connection) FromBridgeConnection(v BridgeConnection) error
- func (t *Connection) FromMattermostConnection(v MattermostConnection) error
- func (t *Connection) FromSlackConnection(v SlackConnection) error
- func (t *Connection) FromTelegramConnection(v TelegramConnection) error
- func (t Connection) MarshalJSON() ([]byte, error)
- func (t *Connection) MergeBridgeConnection(v BridgeConnection) error
- func (t *Connection) MergeMattermostConnection(v MattermostConnection) error
- func (t *Connection) MergeSlackConnection(v SlackConnection) error
- func (t *Connection) MergeTelegramConnection(v TelegramConnection) error
- func (t *Connection) UnmarshalJSON(b []byte) error
- func (t Connection) ValueByDiscriminator() (interface{}, error)
- type ConnectionChannelList
- func (t ConnectionChannelList) AsMattermostChannelList() (MattermostChannelList, error)
- func (t ConnectionChannelList) AsSlackChannelList() (SlackChannelList, error)
- func (t *ConnectionChannelList) FromMattermostChannelList(v MattermostChannelList) error
- func (t *ConnectionChannelList) FromSlackChannelList(v SlackChannelList) error
- func (t ConnectionChannelList) MarshalJSON() ([]byte, error)
- func (t *ConnectionChannelList) MergeMattermostChannelList(v MattermostChannelList) error
- func (t *ConnectionChannelList) MergeSlackChannelList(v SlackChannelList) error
- func (t *ConnectionChannelList) UnmarshalJSON(b []byte) error
- type ConnectionCheckRequest
- type ConnectionCheckResult
- type ConnectionCheckResultWarnings
- type ConnectionCheckStep
- type ConnectionCheckStepName
- type ConnectionDraft
- func (t ConnectionDraft) AsBridgeConnectionDraft() (BridgeConnectionDraft, error)
- func (t ConnectionDraft) AsMattermostConnectionDraft() (MattermostConnectionDraft, error)
- func (t ConnectionDraft) AsSlackConnectionDraft() (SlackConnectionDraft, error)
- func (t ConnectionDraft) AsTelegramConnectionDraft() (TelegramConnectionDraft, error)
- func (t ConnectionDraft) Discriminator() (string, error)
- func (t *ConnectionDraft) FromBridgeConnectionDraft(v BridgeConnectionDraft) error
- func (t *ConnectionDraft) FromMattermostConnectionDraft(v MattermostConnectionDraft) error
- func (t *ConnectionDraft) FromSlackConnectionDraft(v SlackConnectionDraft) error
- func (t *ConnectionDraft) FromTelegramConnectionDraft(v TelegramConnectionDraft) error
- func (t ConnectionDraft) MarshalJSON() ([]byte, error)
- func (t *ConnectionDraft) MergeBridgeConnectionDraft(v BridgeConnectionDraft) error
- func (t *ConnectionDraft) MergeMattermostConnectionDraft(v MattermostConnectionDraft) error
- func (t *ConnectionDraft) MergeSlackConnectionDraft(v SlackConnectionDraft) error
- func (t *ConnectionDraft) MergeTelegramConnectionDraft(v TelegramConnectionDraft) error
- func (t *ConnectionDraft) UnmarshalJSON(b []byte) error
- func (t ConnectionDraft) ValueByDiscriminator() (interface{}, error)
- type ConnectionId
- type ConnectionInput
- func (t ConnectionInput) AsBridgeConnectionInput() (BridgeConnectionInput, error)
- func (t ConnectionInput) AsMattermostConnectionInput() (MattermostConnectionInput, error)
- func (t ConnectionInput) AsSlackConnectionInput() (SlackConnectionInput, error)
- func (t ConnectionInput) AsTelegramConnectionInput() (TelegramConnectionInput, error)
- func (t ConnectionInput) Discriminator() (string, error)
- func (t *ConnectionInput) FromBridgeConnectionInput(v BridgeConnectionInput) error
- func (t *ConnectionInput) FromMattermostConnectionInput(v MattermostConnectionInput) error
- func (t *ConnectionInput) FromSlackConnectionInput(v SlackConnectionInput) error
- func (t *ConnectionInput) FromTelegramConnectionInput(v TelegramConnectionInput) error
- func (t ConnectionInput) MarshalJSON() ([]byte, error)
- func (t *ConnectionInput) MergeBridgeConnectionInput(v BridgeConnectionInput) error
- func (t *ConnectionInput) MergeMattermostConnectionInput(v MattermostConnectionInput) error
- func (t *ConnectionInput) MergeSlackConnectionInput(v SlackConnectionInput) error
- func (t *ConnectionInput) MergeTelegramConnectionInput(v TelegramConnectionInput) error
- func (t *ConnectionInput) UnmarshalJSON(b []byte) error
- func (t ConnectionInput) ValueByDiscriminator() (interface{}, error)
- type ConnectionList
- type ConnectionPath
- type ConnectionType
- type ConvertUserToLocalResponse
- func (r ConvertUserToLocalResponse) ContentType() string
- func (r ConvertUserToLocalResponse) GetApplicationproblemJSON401() *Unauthorized
- func (r ConvertUserToLocalResponse) GetApplicationproblemJSON403() *Forbidden
- func (r ConvertUserToLocalResponse) GetApplicationproblemJSON404() *NotFound
- func (r ConvertUserToLocalResponse) GetApplicationproblemJSON409() *Conflict
- func (r ConvertUserToLocalResponse) GetApplicationproblemJSON429() *TooManyRequests
- func (r ConvertUserToLocalResponse) GetBody() []byte
- func (r ConvertUserToLocalResponse) GetJSON200() *UserCreated
- func (r ConvertUserToLocalResponse) Status() string
- func (r ConvertUserToLocalResponse) StatusCode() int
- type ConvertUserToLocalResponse429Headers
- type CreateAlertGroupNoteJSONRequestBody
- type CreateAlertGroupNoteResponse
- func (r CreateAlertGroupNoteResponse) ContentType() string
- func (r CreateAlertGroupNoteResponse) GetApplicationproblemJSON400() *BadRequest
- func (r CreateAlertGroupNoteResponse) GetApplicationproblemJSON401() *Unauthorized
- func (r CreateAlertGroupNoteResponse) GetApplicationproblemJSON403() *Forbidden
- func (r CreateAlertGroupNoteResponse) GetApplicationproblemJSON404() *NotFound
- func (r CreateAlertGroupNoteResponse) GetApplicationproblemJSON422() *Unprocessable
- func (r CreateAlertGroupNoteResponse) GetApplicationproblemJSON429() *TooManyRequests
- func (r CreateAlertGroupNoteResponse) GetBody() []byte
- func (r CreateAlertGroupNoteResponse) GetJSON201() *Note
- func (r CreateAlertGroupNoteResponse) Status() string
- func (r CreateAlertGroupNoteResponse) StatusCode() int
- type CreateAlertGroupNoteResponse429Headers
- type CreateConnectionJSONRequestBody
- type CreateConnectionResponse
- func (r CreateConnectionResponse) ContentType() string
- func (r CreateConnectionResponse) GetApplicationproblemJSON400() *BadRequest
- func (r CreateConnectionResponse) GetApplicationproblemJSON401() *Unauthorized
- func (r CreateConnectionResponse) GetApplicationproblemJSON403() *Forbidden
- func (r CreateConnectionResponse) GetApplicationproblemJSON409() *Conflict
- func (r CreateConnectionResponse) GetApplicationproblemJSON422() *Unprocessable
- func (r CreateConnectionResponse) GetApplicationproblemJSON429() *TooManyRequests
- func (r CreateConnectionResponse) GetBody() []byte
- func (r CreateConnectionResponse) GetJSON201() *Connection
- func (r CreateConnectionResponse) Status() string
- func (r CreateConnectionResponse) StatusCode() int
- type CreateConnectionResponse201Headers
- type CreateConnectionResponse429Headers
- type CreateDestinationJSONRequestBody
- type CreateDestinationResponse
- func (r CreateDestinationResponse) ContentType() string
- func (r CreateDestinationResponse) GetApplicationproblemJSON400() *BadRequest
- func (r CreateDestinationResponse) GetApplicationproblemJSON401() *Unauthorized
- func (r CreateDestinationResponse) GetApplicationproblemJSON403() *Forbidden
- func (r CreateDestinationResponse) GetApplicationproblemJSON409() *Conflict
- func (r CreateDestinationResponse) GetApplicationproblemJSON422() *Unprocessable
- func (r CreateDestinationResponse) GetApplicationproblemJSON429() *TooManyRequests
- func (r CreateDestinationResponse) GetApplicationproblemJSON503() *Limited
- func (r CreateDestinationResponse) GetBody() []byte
- func (r CreateDestinationResponse) GetJSON201() *DestinationCreated
- func (r CreateDestinationResponse) Status() string
- func (r CreateDestinationResponse) StatusCode() int
- type CreateDestinationResponse201Headers
- type CreateDestinationResponse429Headers
- type CreateDestinationResponse503Headers
- type CreateIntegrationJSONRequestBody
- type CreateIntegrationResponse
- func (r CreateIntegrationResponse) ContentType() string
- func (r CreateIntegrationResponse) GetApplicationproblemJSON400() *BadRequest
- func (r CreateIntegrationResponse) GetApplicationproblemJSON401() *Unauthorized
- func (r CreateIntegrationResponse) GetApplicationproblemJSON403() *Forbidden
- func (r CreateIntegrationResponse) GetApplicationproblemJSON409() *Conflict
- func (r CreateIntegrationResponse) GetApplicationproblemJSON422() *Unprocessable
- func (r CreateIntegrationResponse) GetApplicationproblemJSON429() *TooManyRequests
- func (r CreateIntegrationResponse) GetBody() []byte
- func (r CreateIntegrationResponse) GetJSON201() *Integration
- func (r CreateIntegrationResponse) Status() string
- func (r CreateIntegrationResponse) StatusCode() int
- type CreateIntegrationResponse201Headers
- type CreateIntegrationResponse429Headers
- type CreateIntegrationTokenJSONRequestBody
- type CreateIntegrationTokenResponse
- func (r CreateIntegrationTokenResponse) ContentType() string
- func (r CreateIntegrationTokenResponse) GetApplicationproblemJSON400() *BadRequest
- func (r CreateIntegrationTokenResponse) GetApplicationproblemJSON401() *Unauthorized
- func (r CreateIntegrationTokenResponse) GetApplicationproblemJSON403() *Forbidden
- func (r CreateIntegrationTokenResponse) GetApplicationproblemJSON404() *NotFound
- func (r CreateIntegrationTokenResponse) GetApplicationproblemJSON409() *Conflict
- func (r CreateIntegrationTokenResponse) GetApplicationproblemJSON422() *Unprocessable
- func (r CreateIntegrationTokenResponse) GetApplicationproblemJSON429() *TooManyRequests
- func (r CreateIntegrationTokenResponse) GetBody() []byte
- func (r CreateIntegrationTokenResponse) GetJSON201() *IntegrationTokenCreated
- func (r CreateIntegrationTokenResponse) Status() string
- func (r CreateIntegrationTokenResponse) StatusCode() int
- type CreateIntegrationTokenResponse429Headers
- type CreateLinkRuleJSONRequestBody
- type CreateLinkRuleResponse
- func (r CreateLinkRuleResponse) ContentType() string
- func (r CreateLinkRuleResponse) GetApplicationproblemJSON400() *BadRequest
- func (r CreateLinkRuleResponse) GetApplicationproblemJSON401() *Unauthorized
- func (r CreateLinkRuleResponse) GetApplicationproblemJSON403() *Forbidden
- func (r CreateLinkRuleResponse) GetApplicationproblemJSON409() *Conflict
- func (r CreateLinkRuleResponse) GetApplicationproblemJSON422() *Unprocessable
- func (r CreateLinkRuleResponse) GetApplicationproblemJSON429() *TooManyRequests
- func (r CreateLinkRuleResponse) GetBody() []byte
- func (r CreateLinkRuleResponse) GetJSON201() *LinkRule
- func (r CreateLinkRuleResponse) Status() string
- func (r CreateLinkRuleResponse) StatusCode() int
- type CreateLinkRuleResponse201Headers
- type CreateLinkRuleResponse429Headers
- type CreateLookupTableJSONRequestBody
- type CreateLookupTableResponse
- func (r CreateLookupTableResponse) ContentType() string
- func (r CreateLookupTableResponse) GetApplicationproblemJSON400() *BadRequest
- func (r CreateLookupTableResponse) GetApplicationproblemJSON401() *Unauthorized
- func (r CreateLookupTableResponse) GetApplicationproblemJSON403() *Forbidden
- func (r CreateLookupTableResponse) GetApplicationproblemJSON409() *Conflict
- func (r CreateLookupTableResponse) GetApplicationproblemJSON422() *Unprocessable
- func (r CreateLookupTableResponse) GetApplicationproblemJSON429() *TooManyRequests
- func (r CreateLookupTableResponse) GetBody() []byte
- func (r CreateLookupTableResponse) GetJSON201() *LookupTable
- func (r CreateLookupTableResponse) Status() string
- func (r CreateLookupTableResponse) StatusCode() int
- type CreateLookupTableResponse201Headers
- type CreateLookupTableResponse429Headers
- type CreatePasswordSetupLinkResponse
- func (r CreatePasswordSetupLinkResponse) ContentType() string
- func (r CreatePasswordSetupLinkResponse) GetApplicationproblemJSON401() *Unauthorized
- func (r CreatePasswordSetupLinkResponse) GetApplicationproblemJSON403() *Forbidden
- func (r CreatePasswordSetupLinkResponse) GetApplicationproblemJSON404() *NotFound
- func (r CreatePasswordSetupLinkResponse) GetApplicationproblemJSON409() *Conflict
- func (r CreatePasswordSetupLinkResponse) GetApplicationproblemJSON429() *TooManyRequests
- func (r CreatePasswordSetupLinkResponse) GetBody() []byte
- func (r CreatePasswordSetupLinkResponse) GetJSON201() *PasswordSetupLink
- func (r CreatePasswordSetupLinkResponse) Status() string
- func (r CreatePasswordSetupLinkResponse) StatusCode() int
- type CreatePasswordSetupLinkResponse429Headers
- type CreatePersonalAccessTokenJSONRequestBody
- type CreatePersonalAccessTokenResponse
- func (r CreatePersonalAccessTokenResponse) ContentType() string
- func (r CreatePersonalAccessTokenResponse) GetApplicationproblemJSON400() *BadRequest
- func (r CreatePersonalAccessTokenResponse) GetApplicationproblemJSON401() *Unauthorized
- func (r CreatePersonalAccessTokenResponse) GetApplicationproblemJSON403() *Forbidden
- func (r CreatePersonalAccessTokenResponse) GetApplicationproblemJSON422() *Unprocessable
- func (r CreatePersonalAccessTokenResponse) GetApplicationproblemJSON429() *TooManyRequests
- func (r CreatePersonalAccessTokenResponse) GetBody() []byte
- func (r CreatePersonalAccessTokenResponse) GetJSON201() *PersonalAccessTokenCreated
- func (r CreatePersonalAccessTokenResponse) Status() string
- func (r CreatePersonalAccessTokenResponse) StatusCode() int
- type CreatePersonalAccessTokenResponse429Headers
- type CreateRouteJSONRequestBody
- type CreateRouteResponse
- func (r CreateRouteResponse) ContentType() string
- func (r CreateRouteResponse) GetApplicationproblemJSON400() *BadRequest
- func (r CreateRouteResponse) GetApplicationproblemJSON401() *Unauthorized
- func (r CreateRouteResponse) GetApplicationproblemJSON403() *Forbidden
- func (r CreateRouteResponse) GetApplicationproblemJSON409() *Conflict
- func (r CreateRouteResponse) GetApplicationproblemJSON422() *Unprocessable
- func (r CreateRouteResponse) GetApplicationproblemJSON429() *TooManyRequests
- func (r CreateRouteResponse) GetBody() []byte
- func (r CreateRouteResponse) GetJSON201() *Route
- func (r CreateRouteResponse) Status() string
- func (r CreateRouteResponse) StatusCode() int
- type CreateRouteResponse201Headers
- type CreateRouteResponse429Headers
- type CreateServiceAccountJSONRequestBody
- type CreateServiceAccountResponse
- func (r CreateServiceAccountResponse) ContentType() string
- func (r CreateServiceAccountResponse) GetApplicationproblemJSON400() *BadRequest
- func (r CreateServiceAccountResponse) GetApplicationproblemJSON401() *Unauthorized
- func (r CreateServiceAccountResponse) GetApplicationproblemJSON403() *Forbidden
- func (r CreateServiceAccountResponse) GetApplicationproblemJSON409() *Conflict
- func (r CreateServiceAccountResponse) GetApplicationproblemJSON422() *Unprocessable
- func (r CreateServiceAccountResponse) GetApplicationproblemJSON429() *TooManyRequests
- func (r CreateServiceAccountResponse) GetBody() []byte
- func (r CreateServiceAccountResponse) GetJSON201() *ServiceAccount
- func (r CreateServiceAccountResponse) Status() string
- func (r CreateServiceAccountResponse) StatusCode() int
- type CreateServiceAccountResponse201Headers
- type CreateServiceAccountResponse429Headers
- type CreateServiceAccountTokenJSONRequestBody
- type CreateServiceAccountTokenResponse
- func (r CreateServiceAccountTokenResponse) ContentType() string
- func (r CreateServiceAccountTokenResponse) GetApplicationproblemJSON400() *BadRequest
- func (r CreateServiceAccountTokenResponse) GetApplicationproblemJSON401() *Unauthorized
- func (r CreateServiceAccountTokenResponse) GetApplicationproblemJSON403() *Forbidden
- func (r CreateServiceAccountTokenResponse) GetApplicationproblemJSON404() *NotFound
- func (r CreateServiceAccountTokenResponse) GetApplicationproblemJSON422() *Unprocessable
- func (r CreateServiceAccountTokenResponse) GetApplicationproblemJSON429() *TooManyRequests
- func (r CreateServiceAccountTokenResponse) GetBody() []byte
- func (r CreateServiceAccountTokenResponse) GetJSON201() *ServiceAccountTokenCreated
- func (r CreateServiceAccountTokenResponse) Status() string
- func (r CreateServiceAccountTokenResponse) StatusCode() int
- type CreateServiceAccountTokenResponse429Headers
- type CreateSessionJSONRequestBody
- type CreateSessionResponse
- func (r CreateSessionResponse) ContentType() string
- func (r CreateSessionResponse) GetApplicationproblemJSON400() *BadRequest
- func (r CreateSessionResponse) GetApplicationproblemJSON401() *Unauthorized
- func (r CreateSessionResponse) GetApplicationproblemJSON403() *Forbidden
- func (r CreateSessionResponse) GetApplicationproblemJSON429() *TooManyRequests
- func (r CreateSessionResponse) GetBody() []byte
- func (r CreateSessionResponse) GetJSON201() *Session
- func (r CreateSessionResponse) Status() string
- func (r CreateSessionResponse) StatusCode() int
- type CreateSessionResponse429Headers
- type CreateUserJSONRequestBody
- type CreateUserResponse
- func (r CreateUserResponse) ContentType() string
- func (r CreateUserResponse) GetApplicationproblemJSON400() *BadRequest
- func (r CreateUserResponse) GetApplicationproblemJSON401() *Unauthorized
- func (r CreateUserResponse) GetApplicationproblemJSON403() *Forbidden
- func (r CreateUserResponse) GetApplicationproblemJSON409() *Conflict
- func (r CreateUserResponse) GetApplicationproblemJSON422() *Unprocessable
- func (r CreateUserResponse) GetApplicationproblemJSON429() *TooManyRequests
- func (r CreateUserResponse) GetBody() []byte
- func (r CreateUserResponse) GetJSON201() *UserCreated
- func (r CreateUserResponse) Status() string
- func (r CreateUserResponse) StatusCode() int
- type CreateUserResponse201Headers
- type CreateUserResponse429Headers
- type Cursor
- type DeleteConnectionParams
- type DeleteConnectionResponse
- func (r DeleteConnectionResponse) ContentType() string
- func (r DeleteConnectionResponse) GetApplicationproblemJSON401() *Unauthorized
- func (r DeleteConnectionResponse) GetApplicationproblemJSON403() *Forbidden
- func (r DeleteConnectionResponse) GetApplicationproblemJSON404() *NotFound
- func (r DeleteConnectionResponse) GetApplicationproblemJSON409() *Conflict
- func (r DeleteConnectionResponse) GetApplicationproblemJSON412() *PreconditionFailed
- func (r DeleteConnectionResponse) GetApplicationproblemJSON429() *TooManyRequests
- func (r DeleteConnectionResponse) GetBody() []byte
- func (r DeleteConnectionResponse) Status() string
- func (r DeleteConnectionResponse) StatusCode() int
- type DeleteConnectionResponse429Headers
- type DeleteCurrentSessionResponse
- func (r DeleteCurrentSessionResponse) ContentType() string
- func (r DeleteCurrentSessionResponse) GetApplicationproblemJSON401() *Unauthorized
- func (r DeleteCurrentSessionResponse) GetApplicationproblemJSON403() *Forbidden
- func (r DeleteCurrentSessionResponse) GetApplicationproblemJSON429() *TooManyRequests
- func (r DeleteCurrentSessionResponse) GetBody() []byte
- func (r DeleteCurrentSessionResponse) Status() string
- func (r DeleteCurrentSessionResponse) StatusCode() int
- type DeleteCurrentSessionResponse429Headers
- type DeleteDestinationParams
- type DeleteDestinationResponse
- func (r DeleteDestinationResponse) ContentType() string
- func (r DeleteDestinationResponse) GetApplicationproblemJSON401() *Unauthorized
- func (r DeleteDestinationResponse) GetApplicationproblemJSON403() *Forbidden
- func (r DeleteDestinationResponse) GetApplicationproblemJSON404() *NotFound
- func (r DeleteDestinationResponse) GetApplicationproblemJSON412() *PreconditionFailed
- func (r DeleteDestinationResponse) GetApplicationproblemJSON429() *TooManyRequests
- func (r DeleteDestinationResponse) GetBody() []byte
- func (r DeleteDestinationResponse) Status() string
- func (r DeleteDestinationResponse) StatusCode() int
- type DeleteDestinationResponse429Headers
- type DeleteDestinationSecretParams
- type DeleteDestinationSecretResponse
- func (r DeleteDestinationSecretResponse) ContentType() string
- func (r DeleteDestinationSecretResponse) GetApplicationproblemJSON401() *Unauthorized
- func (r DeleteDestinationSecretResponse) GetApplicationproblemJSON403() *Forbidden
- func (r DeleteDestinationSecretResponse) GetApplicationproblemJSON404() *NotFound
- func (r DeleteDestinationSecretResponse) GetApplicationproblemJSON409() *Conflict
- func (r DeleteDestinationSecretResponse) GetApplicationproblemJSON412() *PreconditionFailed
- func (r DeleteDestinationSecretResponse) GetApplicationproblemJSON429() *TooManyRequests
- func (r DeleteDestinationSecretResponse) GetBody() []byte
- func (r DeleteDestinationSecretResponse) Status() string
- func (r DeleteDestinationSecretResponse) StatusCode() int
- type DeleteDestinationSecretResponse429Headers
- type DeleteIntegrationParams
- type DeleteIntegrationResponse
- func (r DeleteIntegrationResponse) ContentType() string
- func (r DeleteIntegrationResponse) GetApplicationproblemJSON401() *Unauthorized
- func (r DeleteIntegrationResponse) GetApplicationproblemJSON403() *Forbidden
- func (r DeleteIntegrationResponse) GetApplicationproblemJSON404() *NotFound
- func (r DeleteIntegrationResponse) GetApplicationproblemJSON409() *Conflict
- func (r DeleteIntegrationResponse) GetApplicationproblemJSON412() *PreconditionFailed
- func (r DeleteIntegrationResponse) GetApplicationproblemJSON429() *TooManyRequests
- func (r DeleteIntegrationResponse) GetBody() []byte
- func (r DeleteIntegrationResponse) Status() string
- func (r DeleteIntegrationResponse) StatusCode() int
- type DeleteIntegrationResponse429Headers
- type DeleteLinkRuleParams
- type DeleteLinkRuleResponse
- func (r DeleteLinkRuleResponse) ContentType() string
- func (r DeleteLinkRuleResponse) GetApplicationproblemJSON401() *Unauthorized
- func (r DeleteLinkRuleResponse) GetApplicationproblemJSON403() *Forbidden
- func (r DeleteLinkRuleResponse) GetApplicationproblemJSON404() *NotFound
- func (r DeleteLinkRuleResponse) GetApplicationproblemJSON409() *Conflict
- func (r DeleteLinkRuleResponse) GetApplicationproblemJSON412() *PreconditionFailed
- func (r DeleteLinkRuleResponse) GetApplicationproblemJSON429() *TooManyRequests
- func (r DeleteLinkRuleResponse) GetBody() []byte
- func (r DeleteLinkRuleResponse) Status() string
- func (r DeleteLinkRuleResponse) StatusCode() int
- type DeleteLinkRuleResponse429Headers
- type DeleteLookupTableParams
- type DeleteLookupTableResponse
- func (r DeleteLookupTableResponse) ContentType() string
- func (r DeleteLookupTableResponse) GetApplicationproblemJSON401() *Unauthorized
- func (r DeleteLookupTableResponse) GetApplicationproblemJSON403() *Forbidden
- func (r DeleteLookupTableResponse) GetApplicationproblemJSON404() *NotFound
- func (r DeleteLookupTableResponse) GetApplicationproblemJSON409() *Conflict
- func (r DeleteLookupTableResponse) GetApplicationproblemJSON412() *PreconditionFailed
- func (r DeleteLookupTableResponse) GetApplicationproblemJSON429() *TooManyRequests
- func (r DeleteLookupTableResponse) GetBody() []byte
- func (r DeleteLookupTableResponse) Status() string
- func (r DeleteLookupTableResponse) StatusCode() int
- type DeleteLookupTableResponse429Headers
- type DeleteMyAccountLinkResponse
- func (r DeleteMyAccountLinkResponse) ContentType() string
- func (r DeleteMyAccountLinkResponse) GetApplicationproblemJSON401() *Unauthorized
- func (r DeleteMyAccountLinkResponse) GetApplicationproblemJSON403() *Forbidden
- func (r DeleteMyAccountLinkResponse) GetApplicationproblemJSON404() *NotFound
- func (r DeleteMyAccountLinkResponse) GetApplicationproblemJSON429() *TooManyRequests
- func (r DeleteMyAccountLinkResponse) GetBody() []byte
- func (r DeleteMyAccountLinkResponse) Status() string
- func (r DeleteMyAccountLinkResponse) StatusCode() int
- type DeleteMyAccountLinkResponse429Headers
- type DeleteMySessionsResponse
- func (r DeleteMySessionsResponse) ContentType() string
- func (r DeleteMySessionsResponse) GetApplicationproblemJSON401() *Unauthorized
- func (r DeleteMySessionsResponse) GetApplicationproblemJSON403() *Forbidden
- func (r DeleteMySessionsResponse) GetApplicationproblemJSON429() *TooManyRequests
- func (r DeleteMySessionsResponse) GetBody() []byte
- func (r DeleteMySessionsResponse) Status() string
- func (r DeleteMySessionsResponse) StatusCode() int
- type DeleteMySessionsResponse429Headers
- type DeleteRouteParams
- type DeleteRouteResponse
- func (r DeleteRouteResponse) ContentType() string
- func (r DeleteRouteResponse) GetApplicationproblemJSON401() *Unauthorized
- func (r DeleteRouteResponse) GetApplicationproblemJSON403() *Forbidden
- func (r DeleteRouteResponse) GetApplicationproblemJSON404() *NotFound
- func (r DeleteRouteResponse) GetApplicationproblemJSON409() *Conflict
- func (r DeleteRouteResponse) GetApplicationproblemJSON412() *PreconditionFailed
- func (r DeleteRouteResponse) GetApplicationproblemJSON429() *TooManyRequests
- func (r DeleteRouteResponse) GetBody() []byte
- func (r DeleteRouteResponse) Status() string
- func (r DeleteRouteResponse) StatusCode() int
- type DeleteRouteResponse429Headers
- type DeleteServiceAccountParams
- type DeleteServiceAccountResponse
- func (r DeleteServiceAccountResponse) ContentType() string
- func (r DeleteServiceAccountResponse) GetApplicationproblemJSON401() *Unauthorized
- func (r DeleteServiceAccountResponse) GetApplicationproblemJSON403() *Forbidden
- func (r DeleteServiceAccountResponse) GetApplicationproblemJSON404() *NotFound
- func (r DeleteServiceAccountResponse) GetApplicationproblemJSON412() *PreconditionFailed
- func (r DeleteServiceAccountResponse) GetApplicationproblemJSON429() *TooManyRequests
- func (r DeleteServiceAccountResponse) GetBody() []byte
- func (r DeleteServiceAccountResponse) Status() string
- func (r DeleteServiceAccountResponse) StatusCode() int
- type DeleteServiceAccountResponse429Headers
- type DeleteUserAccountLinkResponse
- func (r DeleteUserAccountLinkResponse) ContentType() string
- func (r DeleteUserAccountLinkResponse) GetApplicationproblemJSON401() *Unauthorized
- func (r DeleteUserAccountLinkResponse) GetApplicationproblemJSON403() *Forbidden
- func (r DeleteUserAccountLinkResponse) GetApplicationproblemJSON404() *NotFound
- func (r DeleteUserAccountLinkResponse) GetApplicationproblemJSON429() *TooManyRequests
- func (r DeleteUserAccountLinkResponse) GetBody() []byte
- func (r DeleteUserAccountLinkResponse) Status() string
- func (r DeleteUserAccountLinkResponse) StatusCode() int
- type DeleteUserAccountLinkResponse429Headers
- type DeleteUserParams
- type DeleteUserResponse
- func (r DeleteUserResponse) ContentType() string
- func (r DeleteUserResponse) GetApplicationproblemJSON401() *Unauthorized
- func (r DeleteUserResponse) GetApplicationproblemJSON403() *Forbidden
- func (r DeleteUserResponse) GetApplicationproblemJSON404() *NotFound
- func (r DeleteUserResponse) GetApplicationproblemJSON409() *Conflict
- func (r DeleteUserResponse) GetApplicationproblemJSON412() *PreconditionFailed
- func (r DeleteUserResponse) GetApplicationproblemJSON429() *TooManyRequests
- func (r DeleteUserResponse) GetBody() []byte
- func (r DeleteUserResponse) Status() string
- func (r DeleteUserResponse) StatusCode() int
- type DeleteUserResponse429Headers
- type DeliverAlertGroupEventJSONRequestBody
- type DeliverAlertGroupEventParams
- type DeliveryErrorClass
- type DeliveryEventKind
- type DeliveryState
- type Destination
- func (t Destination) AsBridgeDestination() (BridgeDestination, error)
- func (t Destination) AsMattermostDestination() (MattermostDestination, error)
- func (t Destination) AsSlackDestination() (SlackDestination, error)
- func (t Destination) AsTelegramDestination() (TelegramDestination, error)
- func (t Destination) AsWebhookDestination() (WebhookDestination, error)
- func (t Destination) Discriminator() (string, error)
- func (t *Destination) FromBridgeDestination(v BridgeDestination) error
- func (t *Destination) FromMattermostDestination(v MattermostDestination) error
- func (t *Destination) FromSlackDestination(v SlackDestination) error
- func (t *Destination) FromTelegramDestination(v TelegramDestination) error
- func (t *Destination) FromWebhookDestination(v WebhookDestination) error
- func (t Destination) MarshalJSON() ([]byte, error)
- func (t *Destination) MergeBridgeDestination(v BridgeDestination) error
- func (t *Destination) MergeMattermostDestination(v MattermostDestination) error
- func (t *Destination) MergeSlackDestination(v SlackDestination) error
- func (t *Destination) MergeTelegramDestination(v TelegramDestination) error
- func (t *Destination) MergeWebhookDestination(v WebhookDestination) error
- func (t *Destination) UnmarshalJSON(b []byte) error
- func (t Destination) ValueByDiscriminator() (interface{}, error)
- type DestinationCheckItem
- type DestinationCheckItemName
- type DestinationCheckResult
- type DestinationCreated
- type DestinationHealth
- type DestinationId
- type DestinationInput
- func (t DestinationInput) AsBridgeDestinationInput() (BridgeDestinationInput, error)
- func (t DestinationInput) AsMattermostDestinationInput() (MattermostDestinationInput, error)
- func (t DestinationInput) AsSlackDestinationInput() (SlackDestinationInput, error)
- func (t DestinationInput) AsTelegramDestinationInput() (TelegramDestinationInput, error)
- func (t DestinationInput) AsWebhookDestinationInput() (WebhookDestinationInput, error)
- func (t DestinationInput) Discriminator() (string, error)
- func (t *DestinationInput) FromBridgeDestinationInput(v BridgeDestinationInput) error
- func (t *DestinationInput) FromMattermostDestinationInput(v MattermostDestinationInput) error
- func (t *DestinationInput) FromSlackDestinationInput(v SlackDestinationInput) error
- func (t *DestinationInput) FromTelegramDestinationInput(v TelegramDestinationInput) error
- func (t *DestinationInput) FromWebhookDestinationInput(v WebhookDestinationInput) error
- func (t DestinationInput) MarshalJSON() ([]byte, error)
- func (t *DestinationInput) MergeBridgeDestinationInput(v BridgeDestinationInput) error
- func (t *DestinationInput) MergeMattermostDestinationInput(v MattermostDestinationInput) error
- func (t *DestinationInput) MergeSlackDestinationInput(v SlackDestinationInput) error
- func (t *DestinationInput) MergeTelegramDestinationInput(v TelegramDestinationInput) error
- func (t *DestinationInput) MergeWebhookDestinationInput(v WebhookDestinationInput) error
- func (t *DestinationInput) UnmarshalJSON(b []byte) error
- func (t DestinationInput) ValueByDiscriminator() (interface{}, error)
- type DestinationList
- type DestinationPreview
- type DestinationPreviewItem
- type DestinationPreviewItemFormat
- type DestinationPreviewItemName
- type DestinationPreviewRequest
- type DestinationReadFields
- type DestinationRef
- type DestinationSecret
- type DestinationSecretInput
- type DestinationSecretList
- type DestinationTestRequest
- type DestinationTestResult
- type DestinationType
- type DestinationWarning
- type DestinationWarningKind
- type DisableServiceAccountResponse
- func (r DisableServiceAccountResponse) ContentType() string
- func (r DisableServiceAccountResponse) GetApplicationproblemJSON401() *Unauthorized
- func (r DisableServiceAccountResponse) GetApplicationproblemJSON403() *Forbidden
- func (r DisableServiceAccountResponse) GetApplicationproblemJSON404() *NotFound
- func (r DisableServiceAccountResponse) GetApplicationproblemJSON409() *Conflict
- func (r DisableServiceAccountResponse) GetApplicationproblemJSON429() *TooManyRequests
- func (r DisableServiceAccountResponse) GetBody() []byte
- func (r DisableServiceAccountResponse) GetJSON200() *ServiceAccount
- func (r DisableServiceAccountResponse) Status() string
- func (r DisableServiceAccountResponse) StatusCode() int
- type DisableServiceAccountResponse429Headers
- type DisableUserResponse
- func (r DisableUserResponse) ContentType() string
- func (r DisableUserResponse) GetApplicationproblemJSON401() *Unauthorized
- func (r DisableUserResponse) GetApplicationproblemJSON403() *Forbidden
- func (r DisableUserResponse) GetApplicationproblemJSON404() *NotFound
- func (r DisableUserResponse) GetApplicationproblemJSON409() *Conflict
- func (r DisableUserResponse) GetApplicationproblemJSON429() *TooManyRequests
- func (r DisableUserResponse) GetBody() []byte
- func (r DisableUserResponse) GetJSON200() *User
- func (r DisableUserResponse) Status() string
- func (r DisableUserResponse) StatusCode() int
- type DisableUserResponse429Headers
- type DismissRouteSuggestionResponse
- func (r DismissRouteSuggestionResponse) ContentType() string
- func (r DismissRouteSuggestionResponse) GetApplicationproblemJSON401() *Unauthorized
- func (r DismissRouteSuggestionResponse) GetApplicationproblemJSON403() *Forbidden
- func (r DismissRouteSuggestionResponse) GetApplicationproblemJSON404() *NotFound
- func (r DismissRouteSuggestionResponse) GetApplicationproblemJSON409() *Conflict
- func (r DismissRouteSuggestionResponse) GetApplicationproblemJSON429() *TooManyRequests
- func (r DismissRouteSuggestionResponse) GetBody() []byte
- func (r DismissRouteSuggestionResponse) Status() string
- func (r DismissRouteSuggestionResponse) StatusCode() int
- type DismissRouteSuggestionResponse429Headers
- type DurationStats
- type EnableServiceAccountResponse
- func (r EnableServiceAccountResponse) ContentType() string
- func (r EnableServiceAccountResponse) GetApplicationproblemJSON401() *Unauthorized
- func (r EnableServiceAccountResponse) GetApplicationproblemJSON403() *Forbidden
- func (r EnableServiceAccountResponse) GetApplicationproblemJSON404() *NotFound
- func (r EnableServiceAccountResponse) GetApplicationproblemJSON409() *Conflict
- func (r EnableServiceAccountResponse) GetApplicationproblemJSON429() *TooManyRequests
- func (r EnableServiceAccountResponse) GetBody() []byte
- func (r EnableServiceAccountResponse) GetJSON200() *ServiceAccount
- func (r EnableServiceAccountResponse) Status() string
- func (r EnableServiceAccountResponse) StatusCode() int
- type EnableServiceAccountResponse429Headers
- type EnableUserResponse
- func (r EnableUserResponse) ContentType() string
- func (r EnableUserResponse) GetApplicationproblemJSON401() *Unauthorized
- func (r EnableUserResponse) GetApplicationproblemJSON403() *Forbidden
- func (r EnableUserResponse) GetApplicationproblemJSON404() *NotFound
- func (r EnableUserResponse) GetApplicationproblemJSON409() *Conflict
- func (r EnableUserResponse) GetApplicationproblemJSON429() *TooManyRequests
- func (r EnableUserResponse) GetBody() []byte
- func (r EnableUserResponse) GetJSON200() *User
- func (r EnableUserResponse) Status() string
- func (r EnableUserResponse) StatusCode() int
- type EnableUserResponse429Headers
- type EntityRef
- type ExtractionRule
- type Forbidden
- type From
- type GenerateSigningSecretResponse
- func (r GenerateSigningSecretResponse) ContentType() string
- func (r GenerateSigningSecretResponse) GetApplicationproblemJSON401() *Unauthorized
- func (r GenerateSigningSecretResponse) GetApplicationproblemJSON403() *Forbidden
- func (r GenerateSigningSecretResponse) GetApplicationproblemJSON404() *NotFound
- func (r GenerateSigningSecretResponse) GetApplicationproblemJSON409() *Conflict
- func (r GenerateSigningSecretResponse) GetApplicationproblemJSON429() *TooManyRequests
- func (r GenerateSigningSecretResponse) GetBody() []byte
- func (r GenerateSigningSecretResponse) GetJSON201() *SigningSecretGenerated
- func (r GenerateSigningSecretResponse) Status() string
- func (r GenerateSigningSecretResponse) StatusCode() int
- type GenerateSigningSecretResponse429Headers
- type GetAlertGroupCountsParams
- type GetAlertGroupCountsResponse
- func (r GetAlertGroupCountsResponse) ContentType() string
- func (r GetAlertGroupCountsResponse) GetApplicationproblemJSON400() *BadRequest
- func (r GetAlertGroupCountsResponse) GetApplicationproblemJSON401() *Unauthorized
- func (r GetAlertGroupCountsResponse) GetApplicationproblemJSON403() *Forbidden
- func (r GetAlertGroupCountsResponse) GetApplicationproblemJSON422() *Unprocessable
- func (r GetAlertGroupCountsResponse) GetApplicationproblemJSON429() *TooManyRequests
- func (r GetAlertGroupCountsResponse) GetBody() []byte
- func (r GetAlertGroupCountsResponse) GetJSON200() *AlertGroupCounts
- func (r GetAlertGroupCountsResponse) Status() string
- func (r GetAlertGroupCountsResponse) StatusCode() int
- type GetAlertGroupCountsResponse429Headers
- type GetAlertGroupResponse
- func (r GetAlertGroupResponse) ContentType() string
- func (r GetAlertGroupResponse) GetApplicationproblemJSON401() *Unauthorized
- func (r GetAlertGroupResponse) GetApplicationproblemJSON403() *Forbidden
- func (r GetAlertGroupResponse) GetApplicationproblemJSON404() *NotFound
- func (r GetAlertGroupResponse) GetApplicationproblemJSON429() *TooManyRequests
- func (r GetAlertGroupResponse) GetBody() []byte
- func (r GetAlertGroupResponse) GetJSON200() *AlertGroup
- func (r GetAlertGroupResponse) Status() string
- func (r GetAlertGroupResponse) StatusCode() int
- type GetAlertGroupResponse429Headers
- type GetAlertGroupStatisticsParams
- type GetAlertGroupStatisticsParamsGroupBy
- type GetAlertGroupStatisticsResponse
- func (r GetAlertGroupStatisticsResponse) ContentType() string
- func (r GetAlertGroupStatisticsResponse) GetApplicationproblemJSON400() *BadRequest
- func (r GetAlertGroupStatisticsResponse) GetApplicationproblemJSON401() *Unauthorized
- func (r GetAlertGroupStatisticsResponse) GetApplicationproblemJSON403() *Forbidden
- func (r GetAlertGroupStatisticsResponse) GetApplicationproblemJSON404() *NotFound
- func (r GetAlertGroupStatisticsResponse) GetApplicationproblemJSON422() *Unprocessable
- func (r GetAlertGroupStatisticsResponse) GetApplicationproblemJSON429() *TooManyRequests
- func (r GetAlertGroupStatisticsResponse) GetBody() []byte
- func (r GetAlertGroupStatisticsResponse) GetJSON200() *AlertGroupStatistics
- func (r GetAlertGroupStatisticsResponse) Status() string
- func (r GetAlertGroupStatisticsResponse) StatusCode() int
- type GetAlertGroupStatisticsResponse429Headers
- type GetAlertGroupTimelineParams
- type GetAlertGroupTimelineParamsOrder
- type GetAlertGroupTimelineResponse
- func (r GetAlertGroupTimelineResponse) ContentType() string
- func (r GetAlertGroupTimelineResponse) GetApplicationproblemJSON400() *BadRequest
- func (r GetAlertGroupTimelineResponse) GetApplicationproblemJSON401() *Unauthorized
- func (r GetAlertGroupTimelineResponse) GetApplicationproblemJSON403() *Forbidden
- func (r GetAlertGroupTimelineResponse) GetApplicationproblemJSON404() *NotFound
- func (r GetAlertGroupTimelineResponse) GetApplicationproblemJSON429() *TooManyRequests
- func (r GetAlertGroupTimelineResponse) GetBody() []byte
- func (r GetAlertGroupTimelineResponse) GetJSON200() *TimelineEntryList
- func (r GetAlertGroupTimelineResponse) Status() string
- func (r GetAlertGroupTimelineResponse) StatusCode() int
- type GetAlertGroupTimelineResponse429Headers
- type GetConnectionResponse
- func (r GetConnectionResponse) ContentType() string
- func (r GetConnectionResponse) GetApplicationproblemJSON401() *Unauthorized
- func (r GetConnectionResponse) GetApplicationproblemJSON403() *Forbidden
- func (r GetConnectionResponse) GetApplicationproblemJSON404() *NotFound
- func (r GetConnectionResponse) GetApplicationproblemJSON429() *TooManyRequests
- func (r GetConnectionResponse) GetBody() []byte
- func (r GetConnectionResponse) GetJSON200() *Connection
- func (r GetConnectionResponse) Status() string
- func (r GetConnectionResponse) StatusCode() int
- type GetConnectionResponse200Headers
- type GetConnectionResponse429Headers
- type GetCurrentSessionResponse
- func (r GetCurrentSessionResponse) ContentType() string
- func (r GetCurrentSessionResponse) GetApplicationproblemJSON401() *Unauthorized
- func (r GetCurrentSessionResponse) GetApplicationproblemJSON403() *Forbidden
- func (r GetCurrentSessionResponse) GetApplicationproblemJSON429() *TooManyRequests
- func (r GetCurrentSessionResponse) GetBody() []byte
- func (r GetCurrentSessionResponse) GetJSON200() *Session
- func (r GetCurrentSessionResponse) Status() string
- func (r GetCurrentSessionResponse) StatusCode() int
- type GetCurrentSessionResponse429Headers
- type GetDestinationResponse
- func (r GetDestinationResponse) ContentType() string
- func (r GetDestinationResponse) GetApplicationproblemJSON401() *Unauthorized
- func (r GetDestinationResponse) GetApplicationproblemJSON403() *Forbidden
- func (r GetDestinationResponse) GetApplicationproblemJSON404() *NotFound
- func (r GetDestinationResponse) GetApplicationproblemJSON429() *TooManyRequests
- func (r GetDestinationResponse) GetBody() []byte
- func (r GetDestinationResponse) GetJSON200() *Destination
- func (r GetDestinationResponse) Status() string
- func (r GetDestinationResponse) StatusCode() int
- type GetDestinationResponse200Headers
- type GetDestinationResponse429Headers
- type GetIntegrationResponse
- func (r GetIntegrationResponse) ContentType() string
- func (r GetIntegrationResponse) GetApplicationproblemJSON401() *Unauthorized
- func (r GetIntegrationResponse) GetApplicationproblemJSON403() *Forbidden
- func (r GetIntegrationResponse) GetApplicationproblemJSON404() *NotFound
- func (r GetIntegrationResponse) GetApplicationproblemJSON429() *TooManyRequests
- func (r GetIntegrationResponse) GetBody() []byte
- func (r GetIntegrationResponse) GetJSON200() *Integration
- func (r GetIntegrationResponse) Status() string
- func (r GetIntegrationResponse) StatusCode() int
- type GetIntegrationResponse200Headers
- type GetIntegrationResponse429Headers
- type GetKeyringResponse
- func (r GetKeyringResponse) ContentType() string
- func (r GetKeyringResponse) GetApplicationproblemJSON401() *Unauthorized
- func (r GetKeyringResponse) GetApplicationproblemJSON403() *Forbidden
- func (r GetKeyringResponse) GetApplicationproblemJSON429() *TooManyRequests
- func (r GetKeyringResponse) GetBody() []byte
- func (r GetKeyringResponse) GetJSON200() *Keyring
- func (r GetKeyringResponse) Status() string
- func (r GetKeyringResponse) StatusCode() int
- type GetKeyringResponse429Headers
- type GetLinkRuleResponse
- func (r GetLinkRuleResponse) ContentType() string
- func (r GetLinkRuleResponse) GetApplicationproblemJSON401() *Unauthorized
- func (r GetLinkRuleResponse) GetApplicationproblemJSON403() *Forbidden
- func (r GetLinkRuleResponse) GetApplicationproblemJSON404() *NotFound
- func (r GetLinkRuleResponse) GetApplicationproblemJSON429() *TooManyRequests
- func (r GetLinkRuleResponse) GetBody() []byte
- func (r GetLinkRuleResponse) GetJSON200() *LinkRule
- func (r GetLinkRuleResponse) Status() string
- func (r GetLinkRuleResponse) StatusCode() int
- type GetLinkRuleResponse200Headers
- type GetLinkRuleResponse429Headers
- type GetLookupTableResponse
- func (r GetLookupTableResponse) ContentType() string
- func (r GetLookupTableResponse) GetApplicationproblemJSON401() *Unauthorized
- func (r GetLookupTableResponse) GetApplicationproblemJSON403() *Forbidden
- func (r GetLookupTableResponse) GetApplicationproblemJSON404() *NotFound
- func (r GetLookupTableResponse) GetApplicationproblemJSON429() *TooManyRequests
- func (r GetLookupTableResponse) GetBody() []byte
- func (r GetLookupTableResponse) GetJSON200() *LookupTable
- func (r GetLookupTableResponse) Status() string
- func (r GetLookupTableResponse) StatusCode() int
- type GetLookupTableResponse200Headers
- type GetLookupTableResponse429Headers
- type GetMeResponse
- func (r GetMeResponse) ContentType() string
- func (r GetMeResponse) GetApplicationproblemJSON401() *Unauthorized
- func (r GetMeResponse) GetApplicationproblemJSON403() *Forbidden
- func (r GetMeResponse) GetApplicationproblemJSON429() *TooManyRequests
- func (r GetMeResponse) GetBody() []byte
- func (r GetMeResponse) GetJSON200() *Me
- func (r GetMeResponse) Status() string
- func (r GetMeResponse) StatusCode() int
- type GetMeResponse429Headers
- type GetMyTotpResponse
- func (r GetMyTotpResponse) ContentType() string
- func (r GetMyTotpResponse) GetApplicationproblemJSON401() *Unauthorized
- func (r GetMyTotpResponse) GetApplicationproblemJSON403() *Forbidden
- func (r GetMyTotpResponse) GetApplicationproblemJSON429() *TooManyRequests
- func (r GetMyTotpResponse) GetBody() []byte
- func (r GetMyTotpResponse) GetJSON200() *TotpStatus
- func (r GetMyTotpResponse) Status() string
- func (r GetMyTotpResponse) StatusCode() int
- type GetMyTotpResponse429Headers
- type GetOidcSettingsResponse
- func (r GetOidcSettingsResponse) ContentType() string
- func (r GetOidcSettingsResponse) GetApplicationproblemJSON401() *Unauthorized
- func (r GetOidcSettingsResponse) GetApplicationproblemJSON403() *Forbidden
- func (r GetOidcSettingsResponse) GetApplicationproblemJSON429() *TooManyRequests
- func (r GetOidcSettingsResponse) GetBody() []byte
- func (r GetOidcSettingsResponse) GetJSON200() *OidcSettings
- func (r GetOidcSettingsResponse) Status() string
- func (r GetOidcSettingsResponse) StatusCode() int
- type GetOidcSettingsResponse200Headers
- type GetOidcSettingsResponse429Headers
- type GetOpenApiSpecResponse
- type GetOrganizationResponse
- func (r GetOrganizationResponse) ContentType() string
- func (r GetOrganizationResponse) GetApplicationproblemJSON401() *Unauthorized
- func (r GetOrganizationResponse) GetApplicationproblemJSON403() *Forbidden
- func (r GetOrganizationResponse) GetApplicationproblemJSON429() *TooManyRequests
- func (r GetOrganizationResponse) GetBody() []byte
- func (r GetOrganizationResponse) GetJSON200() *Organization
- func (r GetOrganizationResponse) Status() string
- func (r GetOrganizationResponse) StatusCode() int
- type GetOrganizationResponse200Headers
- type GetOrganizationResponse429Headers
- type GetOutboundPolicyResponse
- func (r GetOutboundPolicyResponse) ContentType() string
- func (r GetOutboundPolicyResponse) GetApplicationproblemJSON401() *Unauthorized
- func (r GetOutboundPolicyResponse) GetApplicationproblemJSON403() *Forbidden
- func (r GetOutboundPolicyResponse) GetApplicationproblemJSON429() *TooManyRequests
- func (r GetOutboundPolicyResponse) GetBody() []byte
- func (r GetOutboundPolicyResponse) GetJSON200() *OutboundPolicy
- func (r GetOutboundPolicyResponse) Status() string
- func (r GetOutboundPolicyResponse) StatusCode() int
- type GetOutboundPolicyResponse200Headers
- type GetOutboundPolicyResponse429Headers
- type GetRequestRecordResponse
- func (r GetRequestRecordResponse) ContentType() string
- func (r GetRequestRecordResponse) GetApplicationproblemJSON401() *Unauthorized
- func (r GetRequestRecordResponse) GetApplicationproblemJSON403() *Forbidden
- func (r GetRequestRecordResponse) GetApplicationproblemJSON404() *NotFound
- func (r GetRequestRecordResponse) GetApplicationproblemJSON429() *TooManyRequests
- func (r GetRequestRecordResponse) GetBody() []byte
- func (r GetRequestRecordResponse) GetJSON200() *RequestRecord
- func (r GetRequestRecordResponse) Status() string
- func (r GetRequestRecordResponse) StatusCode() int
- type GetRequestRecordResponse429Headers
- type GetRouteResponse
- func (r GetRouteResponse) ContentType() string
- func (r GetRouteResponse) GetApplicationproblemJSON401() *Unauthorized
- func (r GetRouteResponse) GetApplicationproblemJSON403() *Forbidden
- func (r GetRouteResponse) GetApplicationproblemJSON404() *NotFound
- func (r GetRouteResponse) GetApplicationproblemJSON429() *TooManyRequests
- func (r GetRouteResponse) GetBody() []byte
- func (r GetRouteResponse) GetJSON200() *Route
- func (r GetRouteResponse) Status() string
- func (r GetRouteResponse) StatusCode() int
- type GetRouteResponse200Headers
- type GetRouteResponse429Headers
- type GetServiceAccountResponse
- func (r GetServiceAccountResponse) ContentType() string
- func (r GetServiceAccountResponse) GetApplicationproblemJSON401() *Unauthorized
- func (r GetServiceAccountResponse) GetApplicationproblemJSON403() *Forbidden
- func (r GetServiceAccountResponse) GetApplicationproblemJSON404() *NotFound
- func (r GetServiceAccountResponse) GetApplicationproblemJSON429() *TooManyRequests
- func (r GetServiceAccountResponse) GetBody() []byte
- func (r GetServiceAccountResponse) GetJSON200() *ServiceAccount
- func (r GetServiceAccountResponse) Status() string
- func (r GetServiceAccountResponse) StatusCode() int
- type GetServiceAccountResponse200Headers
- type GetServiceAccountResponse429Headers
- type GetSignInOptionsResponse
- func (r GetSignInOptionsResponse) ContentType() string
- func (r GetSignInOptionsResponse) GetApplicationproblemJSON429() *TooManyRequests
- func (r GetSignInOptionsResponse) GetBody() []byte
- func (r GetSignInOptionsResponse) GetJSON200() *SignInOptions
- func (r GetSignInOptionsResponse) Status() string
- func (r GetSignInOptionsResponse) StatusCode() int
- type GetSignInOptionsResponse429Headers
- type GetSigningSecretResponse
- func (r GetSigningSecretResponse) ContentType() string
- func (r GetSigningSecretResponse) GetApplicationproblemJSON401() *Unauthorized
- func (r GetSigningSecretResponse) GetApplicationproblemJSON403() *Forbidden
- func (r GetSigningSecretResponse) GetApplicationproblemJSON404() *NotFound
- func (r GetSigningSecretResponse) GetApplicationproblemJSON409() *Conflict
- func (r GetSigningSecretResponse) GetApplicationproblemJSON429() *TooManyRequests
- func (r GetSigningSecretResponse) GetBody() []byte
- func (r GetSigningSecretResponse) GetJSON200() *SigningSecretStatus
- func (r GetSigningSecretResponse) Status() string
- func (r GetSigningSecretResponse) StatusCode() int
- type GetSigningSecretResponse429Headers
- type GetStoredSnapshotResponse
- func (r GetStoredSnapshotResponse) ContentType() string
- func (r GetStoredSnapshotResponse) GetApplicationproblemJSON401() *Unauthorized
- func (r GetStoredSnapshotResponse) GetApplicationproblemJSON403() *Forbidden
- func (r GetStoredSnapshotResponse) GetApplicationproblemJSON404() *NotFound
- func (r GetStoredSnapshotResponse) GetApplicationproblemJSON429() *TooManyRequests
- func (r GetStoredSnapshotResponse) GetBody() []byte
- func (r GetStoredSnapshotResponse) GetJSON200() *StoredSnapshot
- func (r GetStoredSnapshotResponse) Status() string
- func (r GetStoredSnapshotResponse) StatusCode() int
- type GetStoredSnapshotResponse429Headers
- type GetSystemStatusResponse
- func (r GetSystemStatusResponse) ContentType() string
- func (r GetSystemStatusResponse) GetApplicationproblemJSON401() *Unauthorized
- func (r GetSystemStatusResponse) GetApplicationproblemJSON403() *Forbidden
- func (r GetSystemStatusResponse) GetApplicationproblemJSON429() *TooManyRequests
- func (r GetSystemStatusResponse) GetBody() []byte
- func (r GetSystemStatusResponse) GetJSON200() *SystemStatus
- func (r GetSystemStatusResponse) Status() string
- func (r GetSystemStatusResponse) StatusCode() int
- type GetSystemStatusResponse429Headers
- type GetUserResponse
- func (r GetUserResponse) ContentType() string
- func (r GetUserResponse) GetApplicationproblemJSON401() *Unauthorized
- func (r GetUserResponse) GetApplicationproblemJSON403() *Forbidden
- func (r GetUserResponse) GetApplicationproblemJSON404() *NotFound
- func (r GetUserResponse) GetApplicationproblemJSON429() *TooManyRequests
- func (r GetUserResponse) GetBody() []byte
- func (r GetUserResponse) GetJSON200() *User
- func (r GetUserResponse) Status() string
- func (r GetUserResponse) StatusCode() int
- type GetUserResponse200Headers
- type GetUserResponse429Headers
- type Gone
- type GroupKeyPreview
- type GroupKeyPreviewExample
- type GroupKeyPreviewRequest
- type GroupKeyPreviewSide
- type HeaderTemplate
- type HealthState
- type HeartbeatGetResponse
- type HeartbeatGetWithPathTokenResponse
- func (r HeartbeatGetWithPathTokenResponse) ContentType() string
- func (r HeartbeatGetWithPathTokenResponse) GetApplicationproblemJSON401() *Unauthorized
- func (r HeartbeatGetWithPathTokenResponse) GetBody() []byte
- func (r HeartbeatGetWithPathTokenResponse) Status() string
- func (r HeartbeatGetWithPathTokenResponse) StatusCode() int
- type HeartbeatInfo
- type HeartbeatPostResponse
- type HeartbeatPostWithPathTokenResponse
- func (r HeartbeatPostWithPathTokenResponse) ContentType() string
- func (r HeartbeatPostWithPathTokenResponse) GetApplicationproblemJSON401() *Unauthorized
- func (r HeartbeatPostWithPathTokenResponse) GetBody() []byte
- func (r HeartbeatPostWithPathTokenResponse) Status() string
- func (r HeartbeatPostWithPathTokenResponse) StatusCode() int
- type HeartbeatSettingsInput
- type HeartbeatState
- type HintEvent
- type HintEventType
- type HttpHeaders
- type HttpRequestDoer
- type IfMatch
- type IfMatchOptional
- type IngestSnapshotResponse
- func (r IngestSnapshotResponse) ContentType() string
- func (r IngestSnapshotResponse) GetApplicationproblemJSON401() *Unauthorized
- func (r IngestSnapshotResponse) GetApplicationproblemJSON413() *PayloadTooLarge
- func (r IngestSnapshotResponse) GetApplicationproblemJSON500() *InternalError
- func (r IngestSnapshotResponse) GetBody() []byte
- func (r IngestSnapshotResponse) Status() string
- func (r IngestSnapshotResponse) StatusCode() int
- type IngestSnapshotWithPathTokenResponse
- func (r IngestSnapshotWithPathTokenResponse) ContentType() string
- func (r IngestSnapshotWithPathTokenResponse) GetApplicationproblemJSON401() *Unauthorized
- func (r IngestSnapshotWithPathTokenResponse) GetApplicationproblemJSON413() *PayloadTooLarge
- func (r IngestSnapshotWithPathTokenResponse) GetApplicationproblemJSON500() *InternalError
- func (r IngestSnapshotWithPathTokenResponse) GetBody() []byte
- func (r IngestSnapshotWithPathTokenResponse) Status() string
- func (r IngestSnapshotWithPathTokenResponse) StatusCode() int
- type IngestTokenInPath
- type Integration
- type IntegrationAlert
- type IntegrationAlertList
- type IntegrationAttention
- type IntegrationAttentionIssue
- type IntegrationBase
- type IntegrationBaseConnectionMode
- type IntegrationConnectionMode
- type IntegrationId
- type IntegrationInput
- type IntegrationInputConnectionMode
- type IntegrationList
- type IntegrationToken
- type IntegrationTokenCreate
- type IntegrationTokenCreated
- type IntegrationTokenId
- type IntegrationTokenList
- type IntegrationWarning
- type IntegrationWarningKind
- type InternalError
- type Keyring
- type KeyringKey
- type KeyringKeyState
- type LabelMatchers
- type Labels
- type Language
- type LifecycleEvent
- type Limit
- type Limited
- type Limiter
- type LinkHandleKind
- type LinkRule
- type LinkRuleBase
- type LinkRuleId
- type LinkRuleList
- type LinkRuleScope
- type LinkRuleScopeType
- type LinkableConnection
- type LinkableConnectionLinkMethods
- type LinkableConnectionList
- type ListAlertGroupAlertsParams
- type ListAlertGroupAlertsResponse
- func (r ListAlertGroupAlertsResponse) ContentType() string
- func (r ListAlertGroupAlertsResponse) GetApplicationproblemJSON400() *BadRequest
- func (r ListAlertGroupAlertsResponse) GetApplicationproblemJSON401() *Unauthorized
- func (r ListAlertGroupAlertsResponse) GetApplicationproblemJSON403() *Forbidden
- func (r ListAlertGroupAlertsResponse) GetApplicationproblemJSON404() *NotFound
- func (r ListAlertGroupAlertsResponse) GetApplicationproblemJSON429() *TooManyRequests
- func (r ListAlertGroupAlertsResponse) GetBody() []byte
- func (r ListAlertGroupAlertsResponse) GetJSON200() *AlertGroupAlertList
- func (r ListAlertGroupAlertsResponse) Status() string
- func (r ListAlertGroupAlertsResponse) StatusCode() int
- type ListAlertGroupAlertsResponse429Headers
- type ListAlertGroupDeliveriesResponse
- func (r ListAlertGroupDeliveriesResponse) ContentType() string
- func (r ListAlertGroupDeliveriesResponse) GetApplicationproblemJSON401() *Unauthorized
- func (r ListAlertGroupDeliveriesResponse) GetApplicationproblemJSON403() *Forbidden
- func (r ListAlertGroupDeliveriesResponse) GetApplicationproblemJSON404() *NotFound
- func (r ListAlertGroupDeliveriesResponse) GetApplicationproblemJSON429() *TooManyRequests
- func (r ListAlertGroupDeliveriesResponse) GetBody() []byte
- func (r ListAlertGroupDeliveriesResponse) GetJSON200() *AlertGroupDeliveryList
- func (r ListAlertGroupDeliveriesResponse) Status() string
- func (r ListAlertGroupDeliveriesResponse) StatusCode() int
- type ListAlertGroupDeliveriesResponse429Headers
- type ListAlertGroupNotesParams
- type ListAlertGroupNotesResponse
- func (r ListAlertGroupNotesResponse) ContentType() string
- func (r ListAlertGroupNotesResponse) GetApplicationproblemJSON400() *BadRequest
- func (r ListAlertGroupNotesResponse) GetApplicationproblemJSON401() *Unauthorized
- func (r ListAlertGroupNotesResponse) GetApplicationproblemJSON403() *Forbidden
- func (r ListAlertGroupNotesResponse) GetApplicationproblemJSON404() *NotFound
- func (r ListAlertGroupNotesResponse) GetApplicationproblemJSON429() *TooManyRequests
- func (r ListAlertGroupNotesResponse) GetBody() []byte
- func (r ListAlertGroupNotesResponse) GetJSON200() *NoteList
- func (r ListAlertGroupNotesResponse) Status() string
- func (r ListAlertGroupNotesResponse) StatusCode() int
- type ListAlertGroupNotesResponse429Headers
- type ListAlertGroupsParams
- type ListAlertGroupsParamsSort
- type ListAlertGroupsResponse
- func (r ListAlertGroupsResponse) ContentType() string
- func (r ListAlertGroupsResponse) GetApplicationproblemJSON400() *BadRequest
- func (r ListAlertGroupsResponse) GetApplicationproblemJSON401() *Unauthorized
- func (r ListAlertGroupsResponse) GetApplicationproblemJSON403() *Forbidden
- func (r ListAlertGroupsResponse) GetApplicationproblemJSON422() *Unprocessable
- func (r ListAlertGroupsResponse) GetApplicationproblemJSON429() *TooManyRequests
- func (r ListAlertGroupsResponse) GetBody() []byte
- func (r ListAlertGroupsResponse) GetJSON200() *AlertGroupList
- func (r ListAlertGroupsResponse) Status() string
- func (r ListAlertGroupsResponse) StatusCode() int
- type ListAlertGroupsResponse429Headers
- type ListAlertmanagerRoutesResponse
- func (r ListAlertmanagerRoutesResponse) ContentType() string
- func (r ListAlertmanagerRoutesResponse) GetApplicationproblemJSON401() *Unauthorized
- func (r ListAlertmanagerRoutesResponse) GetApplicationproblemJSON403() *Forbidden
- func (r ListAlertmanagerRoutesResponse) GetApplicationproblemJSON404() *NotFound
- func (r ListAlertmanagerRoutesResponse) GetApplicationproblemJSON429() *TooManyRequests
- func (r ListAlertmanagerRoutesResponse) GetBody() []byte
- func (r ListAlertmanagerRoutesResponse) GetJSON200() *AlertmanagerRouteList
- func (r ListAlertmanagerRoutesResponse) Status() string
- func (r ListAlertmanagerRoutesResponse) StatusCode() int
- type ListAlertmanagerRoutesResponse429Headers
- type ListAuditLogParams
- type ListAuditLogResponse
- func (r ListAuditLogResponse) ContentType() string
- func (r ListAuditLogResponse) GetApplicationproblemJSON400() *BadRequest
- func (r ListAuditLogResponse) GetApplicationproblemJSON401() *Unauthorized
- func (r ListAuditLogResponse) GetApplicationproblemJSON403() *Forbidden
- func (r ListAuditLogResponse) GetApplicationproblemJSON429() *TooManyRequests
- func (r ListAuditLogResponse) GetBody() []byte
- func (r ListAuditLogResponse) GetJSON200() *AuditEntryList
- func (r ListAuditLogResponse) Status() string
- func (r ListAuditLogResponse) StatusCode() int
- type ListAuditLogResponse429Headers
- type ListConnectionChannelsParams
- type ListConnectionChannelsResponse
- func (r ListConnectionChannelsResponse) ContentType() string
- func (r ListConnectionChannelsResponse) GetApplicationproblemJSON400() *BadRequest
- func (r ListConnectionChannelsResponse) GetApplicationproblemJSON401() *Unauthorized
- func (r ListConnectionChannelsResponse) GetApplicationproblemJSON403() *Forbidden
- func (r ListConnectionChannelsResponse) GetApplicationproblemJSON404() *NotFound
- func (r ListConnectionChannelsResponse) GetApplicationproblemJSON409() *Conflict
- func (r ListConnectionChannelsResponse) GetApplicationproblemJSON429() *TooManyRequests
- func (r ListConnectionChannelsResponse) GetApplicationproblemJSON503() *Limited
- func (r ListConnectionChannelsResponse) GetBody() []byte
- func (r ListConnectionChannelsResponse) GetJSON200() *ConnectionChannelList
- func (r ListConnectionChannelsResponse) Status() string
- func (r ListConnectionChannelsResponse) StatusCode() int
- type ListConnectionChannelsResponse429Headers
- type ListConnectionChannelsResponse503Headers
- type ListConnectionsParams
- type ListConnectionsResponse
- func (r ListConnectionsResponse) ContentType() string
- func (r ListConnectionsResponse) GetApplicationproblemJSON400() *BadRequest
- func (r ListConnectionsResponse) GetApplicationproblemJSON401() *Unauthorized
- func (r ListConnectionsResponse) GetApplicationproblemJSON403() *Forbidden
- func (r ListConnectionsResponse) GetApplicationproblemJSON429() *TooManyRequests
- func (r ListConnectionsResponse) GetBody() []byte
- func (r ListConnectionsResponse) GetJSON200() *ConnectionList
- func (r ListConnectionsResponse) Status() string
- func (r ListConnectionsResponse) StatusCode() int
- type ListConnectionsResponse429Headers
- type ListDestinationSecretsResponse
- func (r ListDestinationSecretsResponse) ContentType() string
- func (r ListDestinationSecretsResponse) GetApplicationproblemJSON401() *Unauthorized
- func (r ListDestinationSecretsResponse) GetApplicationproblemJSON403() *Forbidden
- func (r ListDestinationSecretsResponse) GetApplicationproblemJSON404() *NotFound
- func (r ListDestinationSecretsResponse) GetApplicationproblemJSON409() *Conflict
- func (r ListDestinationSecretsResponse) GetApplicationproblemJSON429() *TooManyRequests
- func (r ListDestinationSecretsResponse) GetBody() []byte
- func (r ListDestinationSecretsResponse) GetJSON200() *DestinationSecretList
- func (r ListDestinationSecretsResponse) Status() string
- func (r ListDestinationSecretsResponse) StatusCode() int
- type ListDestinationSecretsResponse200Headers
- type ListDestinationSecretsResponse429Headers
- type ListDestinationsParams
- type ListDestinationsResponse
- func (r ListDestinationsResponse) ContentType() string
- func (r ListDestinationsResponse) GetApplicationproblemJSON400() *BadRequest
- func (r ListDestinationsResponse) GetApplicationproblemJSON401() *Unauthorized
- func (r ListDestinationsResponse) GetApplicationproblemJSON403() *Forbidden
- func (r ListDestinationsResponse) GetApplicationproblemJSON429() *TooManyRequests
- func (r ListDestinationsResponse) GetBody() []byte
- func (r ListDestinationsResponse) GetJSON200() *DestinationList
- func (r ListDestinationsResponse) Status() string
- func (r ListDestinationsResponse) StatusCode() int
- type ListDestinationsResponse429Headers
- type ListIntegrationAlertsParams
- type ListIntegrationAlertsParamsSort
- type ListIntegrationAlertsResponse
- func (r ListIntegrationAlertsResponse) ContentType() string
- func (r ListIntegrationAlertsResponse) GetApplicationproblemJSON400() *BadRequest
- func (r ListIntegrationAlertsResponse) GetApplicationproblemJSON401() *Unauthorized
- func (r ListIntegrationAlertsResponse) GetApplicationproblemJSON403() *Forbidden
- func (r ListIntegrationAlertsResponse) GetApplicationproblemJSON404() *NotFound
- func (r ListIntegrationAlertsResponse) GetApplicationproblemJSON429() *TooManyRequests
- func (r ListIntegrationAlertsResponse) GetBody() []byte
- func (r ListIntegrationAlertsResponse) GetJSON200() *IntegrationAlertList
- func (r ListIntegrationAlertsResponse) Status() string
- func (r ListIntegrationAlertsResponse) StatusCode() int
- type ListIntegrationAlertsResponse429Headers
- type ListIntegrationTokensResponse
- func (r ListIntegrationTokensResponse) ContentType() string
- func (r ListIntegrationTokensResponse) GetApplicationproblemJSON401() *Unauthorized
- func (r ListIntegrationTokensResponse) GetApplicationproblemJSON403() *Forbidden
- func (r ListIntegrationTokensResponse) GetApplicationproblemJSON404() *NotFound
- func (r ListIntegrationTokensResponse) GetApplicationproblemJSON429() *TooManyRequests
- func (r ListIntegrationTokensResponse) GetBody() []byte
- func (r ListIntegrationTokensResponse) GetJSON200() *IntegrationTokenList
- func (r ListIntegrationTokensResponse) Status() string
- func (r ListIntegrationTokensResponse) StatusCode() int
- type ListIntegrationTokensResponse429Headers
- type ListIntegrationsParams
- type ListIntegrationsResponse
- func (r ListIntegrationsResponse) ContentType() string
- func (r ListIntegrationsResponse) GetApplicationproblemJSON400() *BadRequest
- func (r ListIntegrationsResponse) GetApplicationproblemJSON401() *Unauthorized
- func (r ListIntegrationsResponse) GetApplicationproblemJSON403() *Forbidden
- func (r ListIntegrationsResponse) GetApplicationproblemJSON429() *TooManyRequests
- func (r ListIntegrationsResponse) GetBody() []byte
- func (r ListIntegrationsResponse) GetJSON200() *IntegrationList
- func (r ListIntegrationsResponse) Status() string
- func (r ListIntegrationsResponse) StatusCode() int
- type ListIntegrationsResponse429Headers
- type ListLinkRulesParams
- type ListLinkRulesResponse
- func (r ListLinkRulesResponse) ContentType() string
- func (r ListLinkRulesResponse) GetApplicationproblemJSON400() *BadRequest
- func (r ListLinkRulesResponse) GetApplicationproblemJSON401() *Unauthorized
- func (r ListLinkRulesResponse) GetApplicationproblemJSON403() *Forbidden
- func (r ListLinkRulesResponse) GetApplicationproblemJSON429() *TooManyRequests
- func (r ListLinkRulesResponse) GetBody() []byte
- func (r ListLinkRulesResponse) GetJSON200() *LinkRuleList
- func (r ListLinkRulesResponse) Status() string
- func (r ListLinkRulesResponse) StatusCode() int
- type ListLinkRulesResponse429Headers
- type ListLinkableConnectionsResponse
- func (r ListLinkableConnectionsResponse) ContentType() string
- func (r ListLinkableConnectionsResponse) GetApplicationproblemJSON401() *Unauthorized
- func (r ListLinkableConnectionsResponse) GetApplicationproblemJSON403() *Forbidden
- func (r ListLinkableConnectionsResponse) GetApplicationproblemJSON429() *TooManyRequests
- func (r ListLinkableConnectionsResponse) GetBody() []byte
- func (r ListLinkableConnectionsResponse) GetJSON200() *LinkableConnectionList
- func (r ListLinkableConnectionsResponse) Status() string
- func (r ListLinkableConnectionsResponse) StatusCode() int
- type ListLinkableConnectionsResponse429Headers
- type ListLookupTablesParams
- type ListLookupTablesResponse
- func (r ListLookupTablesResponse) ContentType() string
- func (r ListLookupTablesResponse) GetApplicationproblemJSON400() *BadRequest
- func (r ListLookupTablesResponse) GetApplicationproblemJSON401() *Unauthorized
- func (r ListLookupTablesResponse) GetApplicationproblemJSON403() *Forbidden
- func (r ListLookupTablesResponse) GetApplicationproblemJSON429() *TooManyRequests
- func (r ListLookupTablesResponse) GetBody() []byte
- func (r ListLookupTablesResponse) GetJSON200() *LookupTableList
- func (r ListLookupTablesResponse) Status() string
- func (r ListLookupTablesResponse) StatusCode() int
- type ListLookupTablesResponse429Headers
- type ListMyAccountLinksResponse
- func (r ListMyAccountLinksResponse) ContentType() string
- func (r ListMyAccountLinksResponse) GetApplicationproblemJSON401() *Unauthorized
- func (r ListMyAccountLinksResponse) GetApplicationproblemJSON403() *Forbidden
- func (r ListMyAccountLinksResponse) GetApplicationproblemJSON429() *TooManyRequests
- func (r ListMyAccountLinksResponse) GetBody() []byte
- func (r ListMyAccountLinksResponse) GetJSON200() *AccountLinkList
- func (r ListMyAccountLinksResponse) Status() string
- func (r ListMyAccountLinksResponse) StatusCode() int
- type ListMyAccountLinksResponse429Headers
- type ListMySessionsResponse
- func (r ListMySessionsResponse) ContentType() string
- func (r ListMySessionsResponse) GetApplicationproblemJSON401() *Unauthorized
- func (r ListMySessionsResponse) GetApplicationproblemJSON403() *Forbidden
- func (r ListMySessionsResponse) GetApplicationproblemJSON429() *TooManyRequests
- func (r ListMySessionsResponse) GetBody() []byte
- func (r ListMySessionsResponse) GetJSON200() *SessionInfoList
- func (r ListMySessionsResponse) Status() string
- func (r ListMySessionsResponse) StatusCode() int
- type ListMySessionsResponse429Headers
- type ListPersonalAccessTokensResponse
- func (r ListPersonalAccessTokensResponse) ContentType() string
- func (r ListPersonalAccessTokensResponse) GetApplicationproblemJSON401() *Unauthorized
- func (r ListPersonalAccessTokensResponse) GetApplicationproblemJSON403() *Forbidden
- func (r ListPersonalAccessTokensResponse) GetApplicationproblemJSON429() *TooManyRequests
- func (r ListPersonalAccessTokensResponse) GetBody() []byte
- func (r ListPersonalAccessTokensResponse) GetJSON200() *PersonalAccessTokenList
- func (r ListPersonalAccessTokensResponse) Status() string
- func (r ListPersonalAccessTokensResponse) StatusCode() int
- type ListPersonalAccessTokensResponse429Headers
- type ListRelatedAlertGroupsParams
- type ListRelatedAlertGroupsResponse
- func (r ListRelatedAlertGroupsResponse) ContentType() string
- func (r ListRelatedAlertGroupsResponse) GetApplicationproblemJSON400() *BadRequest
- func (r ListRelatedAlertGroupsResponse) GetApplicationproblemJSON401() *Unauthorized
- func (r ListRelatedAlertGroupsResponse) GetApplicationproblemJSON403() *Forbidden
- func (r ListRelatedAlertGroupsResponse) GetApplicationproblemJSON404() *NotFound
- func (r ListRelatedAlertGroupsResponse) GetApplicationproblemJSON429() *TooManyRequests
- func (r ListRelatedAlertGroupsResponse) GetBody() []byte
- func (r ListRelatedAlertGroupsResponse) GetJSON200() *RelatedAlertGroupList
- func (r ListRelatedAlertGroupsResponse) Status() string
- func (r ListRelatedAlertGroupsResponse) StatusCode() int
- type ListRelatedAlertGroupsResponse429Headers
- type ListRequestLogParams
- type ListRequestLogParamsStatusClass
- type ListRequestLogResponse
- func (r ListRequestLogResponse) ContentType() string
- func (r ListRequestLogResponse) GetApplicationproblemJSON400() *BadRequest
- func (r ListRequestLogResponse) GetApplicationproblemJSON401() *Unauthorized
- func (r ListRequestLogResponse) GetApplicationproblemJSON403() *Forbidden
- func (r ListRequestLogResponse) GetApplicationproblemJSON404() *NotFound
- func (r ListRequestLogResponse) GetApplicationproblemJSON422() *Unprocessable
- func (r ListRequestLogResponse) GetApplicationproblemJSON429() *TooManyRequests
- func (r ListRequestLogResponse) GetBody() []byte
- func (r ListRequestLogResponse) GetJSON200() *RequestLogList
- func (r ListRequestLogResponse) Status() string
- func (r ListRequestLogResponse) StatusCode() int
- type ListRequestLogResponse429Headers
- type ListRolesResponse
- func (r ListRolesResponse) ContentType() string
- func (r ListRolesResponse) GetApplicationproblemJSON401() *Unauthorized
- func (r ListRolesResponse) GetApplicationproblemJSON403() *Forbidden
- func (r ListRolesResponse) GetApplicationproblemJSON429() *TooManyRequests
- func (r ListRolesResponse) GetBody() []byte
- func (r ListRolesResponse) GetJSON200() *RoleList
- func (r ListRolesResponse) Status() string
- func (r ListRolesResponse) StatusCode() int
- type ListRolesResponse429Headers
- type ListRouteProfilesResponse
- func (r ListRouteProfilesResponse) ContentType() string
- func (r ListRouteProfilesResponse) GetApplicationproblemJSON401() *Unauthorized
- func (r ListRouteProfilesResponse) GetApplicationproblemJSON403() *Forbidden
- func (r ListRouteProfilesResponse) GetApplicationproblemJSON429() *TooManyRequests
- func (r ListRouteProfilesResponse) GetBody() []byte
- func (r ListRouteProfilesResponse) GetJSON200() *RouteProfileList
- func (r ListRouteProfilesResponse) Status() string
- func (r ListRouteProfilesResponse) StatusCode() int
- type ListRouteProfilesResponse429Headers
- type ListRouteSuggestionsResponse
- func (r ListRouteSuggestionsResponse) ContentType() string
- func (r ListRouteSuggestionsResponse) GetApplicationproblemJSON401() *Unauthorized
- func (r ListRouteSuggestionsResponse) GetApplicationproblemJSON403() *Forbidden
- func (r ListRouteSuggestionsResponse) GetApplicationproblemJSON429() *TooManyRequests
- func (r ListRouteSuggestionsResponse) GetBody() []byte
- func (r ListRouteSuggestionsResponse) GetJSON200() *RouteSuggestionList
- func (r ListRouteSuggestionsResponse) Status() string
- func (r ListRouteSuggestionsResponse) StatusCode() int
- type ListRouteSuggestionsResponse429Headers
- type ListRoutesResponse
- func (r ListRoutesResponse) ContentType() string
- func (r ListRoutesResponse) GetApplicationproblemJSON401() *Unauthorized
- func (r ListRoutesResponse) GetApplicationproblemJSON403() *Forbidden
- func (r ListRoutesResponse) GetApplicationproblemJSON429() *TooManyRequests
- func (r ListRoutesResponse) GetBody() []byte
- func (r ListRoutesResponse) GetJSON200() *RouteList
- func (r ListRoutesResponse) Status() string
- func (r ListRoutesResponse) StatusCode() int
- type ListRoutesResponse200Headers
- type ListRoutesResponse429Headers
- type ListServiceAccountTokensResponse
- func (r ListServiceAccountTokensResponse) ContentType() string
- func (r ListServiceAccountTokensResponse) GetApplicationproblemJSON401() *Unauthorized
- func (r ListServiceAccountTokensResponse) GetApplicationproblemJSON403() *Forbidden
- func (r ListServiceAccountTokensResponse) GetApplicationproblemJSON404() *NotFound
- func (r ListServiceAccountTokensResponse) GetApplicationproblemJSON429() *TooManyRequests
- func (r ListServiceAccountTokensResponse) GetBody() []byte
- func (r ListServiceAccountTokensResponse) GetJSON200() *ServiceAccountTokenList
- func (r ListServiceAccountTokensResponse) Status() string
- func (r ListServiceAccountTokensResponse) StatusCode() int
- type ListServiceAccountTokensResponse429Headers
- type ListServiceAccountsParams
- type ListServiceAccountsResponse
- func (r ListServiceAccountsResponse) ContentType() string
- func (r ListServiceAccountsResponse) GetApplicationproblemJSON400() *BadRequest
- func (r ListServiceAccountsResponse) GetApplicationproblemJSON401() *Unauthorized
- func (r ListServiceAccountsResponse) GetApplicationproblemJSON403() *Forbidden
- func (r ListServiceAccountsResponse) GetApplicationproblemJSON429() *TooManyRequests
- func (r ListServiceAccountsResponse) GetBody() []byte
- func (r ListServiceAccountsResponse) GetJSON200() *ServiceAccountList
- func (r ListServiceAccountsResponse) Status() string
- func (r ListServiceAccountsResponse) StatusCode() int
- type ListServiceAccountsResponse429Headers
- type ListSeverityValuesResponse
- func (r ListSeverityValuesResponse) ContentType() string
- func (r ListSeverityValuesResponse) GetApplicationproblemJSON401() *Unauthorized
- func (r ListSeverityValuesResponse) GetApplicationproblemJSON403() *Forbidden
- func (r ListSeverityValuesResponse) GetApplicationproblemJSON429() *TooManyRequests
- func (r ListSeverityValuesResponse) GetBody() []byte
- func (r ListSeverityValuesResponse) GetJSON200() *SeverityValueList
- func (r ListSeverityValuesResponse) Status() string
- func (r ListSeverityValuesResponse) StatusCode() int
- type ListSeverityValuesResponse429Headers
- type ListSnoozePresetsParams
- type ListSnoozePresetsResponse
- func (r ListSnoozePresetsResponse) ContentType() string
- func (r ListSnoozePresetsResponse) GetApplicationproblemJSON401() *Unauthorized
- func (r ListSnoozePresetsResponse) GetApplicationproblemJSON403() *Forbidden
- func (r ListSnoozePresetsResponse) GetApplicationproblemJSON422() *Unprocessable
- func (r ListSnoozePresetsResponse) GetApplicationproblemJSON429() *TooManyRequests
- func (r ListSnoozePresetsResponse) GetBody() []byte
- func (r ListSnoozePresetsResponse) GetJSON200() *SnoozePresetList
- func (r ListSnoozePresetsResponse) Status() string
- func (r ListSnoozePresetsResponse) StatusCode() int
- type ListSnoozePresetsResponse429Headers
- type ListStoredSnapshotsParams
- type ListStoredSnapshotsResponse
- func (r ListStoredSnapshotsResponse) ContentType() string
- func (r ListStoredSnapshotsResponse) GetApplicationproblemJSON400() *BadRequest
- func (r ListStoredSnapshotsResponse) GetApplicationproblemJSON401() *Unauthorized
- func (r ListStoredSnapshotsResponse) GetApplicationproblemJSON403() *Forbidden
- func (r ListStoredSnapshotsResponse) GetApplicationproblemJSON429() *TooManyRequests
- func (r ListStoredSnapshotsResponse) GetBody() []byte
- func (r ListStoredSnapshotsResponse) GetJSON200() *StoredSnapshotList
- func (r ListStoredSnapshotsResponse) Status() string
- func (r ListStoredSnapshotsResponse) StatusCode() int
- type ListStoredSnapshotsResponse429Headers
- type ListSystemNoticesResponse
- func (r ListSystemNoticesResponse) ContentType() string
- func (r ListSystemNoticesResponse) GetApplicationproblemJSON401() *Unauthorized
- func (r ListSystemNoticesResponse) GetApplicationproblemJSON403() *Forbidden
- func (r ListSystemNoticesResponse) GetApplicationproblemJSON429() *TooManyRequests
- func (r ListSystemNoticesResponse) GetBody() []byte
- func (r ListSystemNoticesResponse) GetJSON200() *SystemNoticeList
- func (r ListSystemNoticesResponse) Status() string
- func (r ListSystemNoticesResponse) StatusCode() int
- type ListSystemNoticesResponse429Headers
- type ListUserAccountLinksResponse
- func (r ListUserAccountLinksResponse) ContentType() string
- func (r ListUserAccountLinksResponse) GetApplicationproblemJSON401() *Unauthorized
- func (r ListUserAccountLinksResponse) GetApplicationproblemJSON403() *Forbidden
- func (r ListUserAccountLinksResponse) GetApplicationproblemJSON404() *NotFound
- func (r ListUserAccountLinksResponse) GetApplicationproblemJSON429() *TooManyRequests
- func (r ListUserAccountLinksResponse) GetBody() []byte
- func (r ListUserAccountLinksResponse) GetJSON200() *AccountLinkList
- func (r ListUserAccountLinksResponse) Status() string
- func (r ListUserAccountLinksResponse) StatusCode() int
- type ListUserAccountLinksResponse429Headers
- type ListUserDirectoryParams
- type ListUserDirectoryResponse
- func (r ListUserDirectoryResponse) ContentType() string
- func (r ListUserDirectoryResponse) GetApplicationproblemJSON400() *BadRequest
- func (r ListUserDirectoryResponse) GetApplicationproblemJSON401() *Unauthorized
- func (r ListUserDirectoryResponse) GetApplicationproblemJSON403() *Forbidden
- func (r ListUserDirectoryResponse) GetApplicationproblemJSON429() *TooManyRequests
- func (r ListUserDirectoryResponse) GetBody() []byte
- func (r ListUserDirectoryResponse) GetJSON200() *UserDirectoryList
- func (r ListUserDirectoryResponse) Status() string
- func (r ListUserDirectoryResponse) StatusCode() int
- type ListUserDirectoryResponse429Headers
- type ListUsersParams
- type ListUsersResponse
- func (r ListUsersResponse) ContentType() string
- func (r ListUsersResponse) GetApplicationproblemJSON400() *BadRequest
- func (r ListUsersResponse) GetApplicationproblemJSON401() *Unauthorized
- func (r ListUsersResponse) GetApplicationproblemJSON403() *Forbidden
- func (r ListUsersResponse) GetApplicationproblemJSON429() *TooManyRequests
- func (r ListUsersResponse) GetBody() []byte
- func (r ListUsersResponse) GetJSON200() *UserList
- func (r ListUsersResponse) Status() string
- func (r ListUsersResponse) StatusCode() int
- type ListUsersResponse429Headers
- type LookupEntry
- type LookupTable
- type LookupTableBase
- type LookupTableId
- type LookupTableList
- type Loudness
- type Matcher
- type MatcherOp
- type MattermostActionAnswer
- type MattermostActionContext
- type MattermostActionJSONRequestBody
- type MattermostActionRequest
- type MattermostActionResponse
- type MattermostChannel
- type MattermostChannelList
- type MattermostChannelType
- type MattermostConnection
- type MattermostConnectionBase
- type MattermostConnectionBaseType
- type MattermostConnectionDraft
- type MattermostConnectionDraftType
- type MattermostConnectionInput
- type MattermostConnectionInputType
- type MattermostConnectionType
- type MattermostDestination
- type MattermostDestinationInput
- type MattermostDestinationInputType
- type MattermostDestinationType
- type MattermostLinkConfirm
- type MattermostLinkRequest
- type MattermostLinkStarted
- type Me
- type MeUpdate
- type MentionName
- type MentionSetting
- type MentionSettingEveryone
- type MentionSettings
- type Messenger
- type MoveOpenAlertGroupsResponse
- func (r MoveOpenAlertGroupsResponse) ContentType() string
- func (r MoveOpenAlertGroupsResponse) GetApplicationproblemJSON401() *Unauthorized
- func (r MoveOpenAlertGroupsResponse) GetApplicationproblemJSON403() *Forbidden
- func (r MoveOpenAlertGroupsResponse) GetApplicationproblemJSON404() *NotFound
- func (r MoveOpenAlertGroupsResponse) GetApplicationproblemJSON409() *Conflict
- func (r MoveOpenAlertGroupsResponse) GetApplicationproblemJSON429() *TooManyRequests
- func (r MoveOpenAlertGroupsResponse) GetBody() []byte
- func (r MoveOpenAlertGroupsResponse) GetJSON200() *MovedAlertGroups
- func (r MoveOpenAlertGroupsResponse) Status() string
- func (r MoveOpenAlertGroupsResponse) StatusCode() int
- type MoveOpenAlertGroupsResponse429Headers
- type MovedAlertGroups
- type NextNotice
- type NextNoticeKind
- type NotFound
- type NotImplemented
- type Note
- type NoteInput
- type NoteList
- type NullableAlertGroupStatus
- type NullableCheckKind
- type NullableConnectionCheckCode
- type NullableDestinationCheckCode
- type NullableHttpHeaders
- type NullableLanguage
- type NullableOutgoingHeartbeatErrorClass
- type NullablePublicId
- type NullableRequestErrorClass
- type NullableRequestErrorCode
- type NullableResolveReason
- type NullableStatusChangeReason
- type NullableTestStepErrorCode
- type OidcCheckResult
- type OidcGroupMapping
- type OidcLinkStart
- type OidcSettings
- type OidcSettingsBase
- type OidcSettingsInput
- type OidcUnmatchedRole
- type OidcWarning
- type OidcWarningKind
- type Organization
- type OrganizationBase
- type OrganizationInput
- type OutboundPolicy
- type OutboundPolicyPolicy
- type OutgoingHeartbeatResult
- type OutgoingWebhookEvent
- type OutgoingWebhookEventVersion
- type PasswordChange
- type PasswordSetup
- type PasswordSetupLink
- type PayloadTooLarge
- type Permission
- type PersonalAccessToken
- type PersonalAccessTokenCreate
- type PersonalAccessTokenCreated
- type PersonalAccessTokenList
- type PreconditionFailed
- type PreconditionRequired
- type PreviewDestinationJSONRequestBody
- type PreviewDestinationResponse
- func (r PreviewDestinationResponse) ContentType() string
- func (r PreviewDestinationResponse) GetApplicationproblemJSON400() *BadRequest
- func (r PreviewDestinationResponse) GetApplicationproblemJSON401() *Unauthorized
- func (r PreviewDestinationResponse) GetApplicationproblemJSON403() *Forbidden
- func (r PreviewDestinationResponse) GetApplicationproblemJSON404() *NotFound
- func (r PreviewDestinationResponse) GetApplicationproblemJSON422() *Unprocessable
- func (r PreviewDestinationResponse) GetApplicationproblemJSON429() *TooManyRequests
- func (r PreviewDestinationResponse) GetApplicationproblemJSON501() *NotImplemented
- func (r PreviewDestinationResponse) GetBody() []byte
- func (r PreviewDestinationResponse) GetJSON200() *DestinationPreview
- func (r PreviewDestinationResponse) Status() string
- func (r PreviewDestinationResponse) StatusCode() int
- type PreviewDestinationResponse429Headers
- type PreviewGroupKeyJSONRequestBody
- type PreviewGroupKeyResponse
- func (r PreviewGroupKeyResponse) ContentType() string
- func (r PreviewGroupKeyResponse) GetApplicationproblemJSON400() *BadRequest
- func (r PreviewGroupKeyResponse) GetApplicationproblemJSON401() *Unauthorized
- func (r PreviewGroupKeyResponse) GetApplicationproblemJSON403() *Forbidden
- func (r PreviewGroupKeyResponse) GetApplicationproblemJSON404() *NotFound
- func (r PreviewGroupKeyResponse) GetApplicationproblemJSON422() *Unprocessable
- func (r PreviewGroupKeyResponse) GetApplicationproblemJSON429() *TooManyRequests
- func (r PreviewGroupKeyResponse) GetBody() []byte
- func (r PreviewGroupKeyResponse) GetJSON200() *GroupKeyPreview
- func (r PreviewGroupKeyResponse) Status() string
- func (r PreviewGroupKeyResponse) StatusCode() int
- type PreviewGroupKeyResponse429Headers
- type PreviewTemplateJSONRequestBody
- type PreviewTemplateResponse
- func (r PreviewTemplateResponse) ContentType() string
- func (r PreviewTemplateResponse) GetApplicationproblemJSON400() *BadRequest
- func (r PreviewTemplateResponse) GetApplicationproblemJSON401() *Unauthorized
- func (r PreviewTemplateResponse) GetApplicationproblemJSON403() *Forbidden
- func (r PreviewTemplateResponse) GetApplicationproblemJSON404() *NotFound
- func (r PreviewTemplateResponse) GetApplicationproblemJSON429() *TooManyRequests
- func (r PreviewTemplateResponse) GetBody() []byte
- func (r PreviewTemplateResponse) GetJSON200() *TemplatePreviewResult
- func (r PreviewTemplateResponse) Status() string
- func (r PreviewTemplateResponse) StatusCode() int
- type PreviewTemplateResponse429Headers
- type Problem
- type ProblemError
- type ProxyConfig
- type ProxyConfigInput
- type ProxyType
- type PublicId
- type QueueDepth
- type RegenerateTotpRecoveryCodesJSONRequestBody
- type RegenerateTotpRecoveryCodesResponse
- func (r RegenerateTotpRecoveryCodesResponse) ContentType() string
- func (r RegenerateTotpRecoveryCodesResponse) GetApplicationproblemJSON400() *BadRequest
- func (r RegenerateTotpRecoveryCodesResponse) GetApplicationproblemJSON401() *Unauthorized
- func (r RegenerateTotpRecoveryCodesResponse) GetApplicationproblemJSON403() *Forbidden
- func (r RegenerateTotpRecoveryCodesResponse) GetApplicationproblemJSON409() *Conflict
- func (r RegenerateTotpRecoveryCodesResponse) GetApplicationproblemJSON422() *Unprocessable
- func (r RegenerateTotpRecoveryCodesResponse) GetApplicationproblemJSON429() *TooManyRequests
- func (r RegenerateTotpRecoveryCodesResponse) GetBody() []byte
- func (r RegenerateTotpRecoveryCodesResponse) GetJSON200() *TotpRecoveryCodes
- func (r RegenerateTotpRecoveryCodesResponse) Status() string
- func (r RegenerateTotpRecoveryCodesResponse) StatusCode() int
- type RegenerateTotpRecoveryCodesResponse429Headers
- type RelatedAlertGroup
- type RelatedAlertGroupList
- type RemindersPolicy
- type RemoveTotpJSONRequestBody
- type RemoveTotpResponse
- func (r RemoveTotpResponse) ContentType() string
- func (r RemoveTotpResponse) GetApplicationproblemJSON400() *BadRequest
- func (r RemoveTotpResponse) GetApplicationproblemJSON401() *Unauthorized
- func (r RemoveTotpResponse) GetApplicationproblemJSON403() *Forbidden
- func (r RemoveTotpResponse) GetApplicationproblemJSON404() *NotFound
- func (r RemoveTotpResponse) GetApplicationproblemJSON429() *TooManyRequests
- func (r RemoveTotpResponse) GetBody() []byte
- func (r RemoveTotpResponse) Status() string
- func (r RemoveTotpResponse) StatusCode() int
- type RemoveTotpResponse429Headers
- type RenderedRequest
- type ReorderRoutesJSONRequestBody
- type ReorderRoutesParams
- type ReorderRoutesResponse
- func (r ReorderRoutesResponse) ContentType() string
- func (r ReorderRoutesResponse) GetApplicationproblemJSON400() *BadRequest
- func (r ReorderRoutesResponse) GetApplicationproblemJSON401() *Unauthorized
- func (r ReorderRoutesResponse) GetApplicationproblemJSON403() *Forbidden
- func (r ReorderRoutesResponse) GetApplicationproblemJSON409() *Conflict
- func (r ReorderRoutesResponse) GetApplicationproblemJSON412() *PreconditionFailed
- func (r ReorderRoutesResponse) GetApplicationproblemJSON422() *Unprocessable
- func (r ReorderRoutesResponse) GetApplicationproblemJSON428() *PreconditionRequired
- func (r ReorderRoutesResponse) GetApplicationproblemJSON429() *TooManyRequests
- func (r ReorderRoutesResponse) GetBody() []byte
- func (r ReorderRoutesResponse) GetJSON200() *RouteList
- func (r ReorderRoutesResponse) Status() string
- func (r ReorderRoutesResponse) StatusCode() int
- type ReorderRoutesResponse200Headers
- type ReorderRoutesResponse429Headers
- type ReplicaStatus
- type RequestDirection
- type RequestEditorFn
- type RequestLogList
- type RequestRecord
- type RequestRecordId
- type RequestRecordSummary
- type RequestTemplate
- type RequestTemplateMethod
- type ResetUserTotpResponse
- func (r ResetUserTotpResponse) ContentType() string
- func (r ResetUserTotpResponse) GetApplicationproblemJSON401() *Unauthorized
- func (r ResetUserTotpResponse) GetApplicationproblemJSON403() *Forbidden
- func (r ResetUserTotpResponse) GetApplicationproblemJSON404() *NotFound
- func (r ResetUserTotpResponse) GetApplicationproblemJSON429() *TooManyRequests
- func (r ResetUserTotpResponse) GetBody() []byte
- func (r ResetUserTotpResponse) Status() string
- func (r ResetUserTotpResponse) StatusCode() int
- type ResetUserTotpResponse429Headers
- type ResolveAlertGroupJSONRequestBody
- type ResolveAlertGroupResponse
- func (r ResolveAlertGroupResponse) ContentType() string
- func (r ResolveAlertGroupResponse) GetApplicationproblemJSON400() *BadRequest
- func (r ResolveAlertGroupResponse) GetApplicationproblemJSON401() *Unauthorized
- func (r ResolveAlertGroupResponse) GetApplicationproblemJSON403() *Forbidden
- func (r ResolveAlertGroupResponse) GetApplicationproblemJSON404() *NotFound
- func (r ResolveAlertGroupResponse) GetApplicationproblemJSON409() *Conflict
- func (r ResolveAlertGroupResponse) GetApplicationproblemJSON422() *Unprocessable
- func (r ResolveAlertGroupResponse) GetApplicationproblemJSON429() *TooManyRequests
- func (r ResolveAlertGroupResponse) GetBody() []byte
- func (r ResolveAlertGroupResponse) GetJSON200() *CommandResult
- func (r ResolveAlertGroupResponse) Status() string
- func (r ResolveAlertGroupResponse) StatusCode() int
- type ResolveAlertGroupResponse429Headers
- type ResolveReason
- type ResolveRequest
- type ResolvedBy
- type ResolverKind
- type RetentionSettings
- type RetirePreviousSigningSecretResponse
- func (r RetirePreviousSigningSecretResponse) ContentType() string
- func (r RetirePreviousSigningSecretResponse) GetApplicationproblemJSON401() *Unauthorized
- func (r RetirePreviousSigningSecretResponse) GetApplicationproblemJSON403() *Forbidden
- func (r RetirePreviousSigningSecretResponse) GetApplicationproblemJSON404() *NotFound
- func (r RetirePreviousSigningSecretResponse) GetApplicationproblemJSON409() *Conflict
- func (r RetirePreviousSigningSecretResponse) GetApplicationproblemJSON429() *TooManyRequests
- func (r RetirePreviousSigningSecretResponse) GetBody() []byte
- func (r RetirePreviousSigningSecretResponse) Status() string
- func (r RetirePreviousSigningSecretResponse) StatusCode() int
- type RetirePreviousSigningSecretResponse429Headers
- type RevokeIntegrationTokenResponse
- func (r RevokeIntegrationTokenResponse) ContentType() string
- func (r RevokeIntegrationTokenResponse) GetApplicationproblemJSON401() *Unauthorized
- func (r RevokeIntegrationTokenResponse) GetApplicationproblemJSON403() *Forbidden
- func (r RevokeIntegrationTokenResponse) GetApplicationproblemJSON404() *NotFound
- func (r RevokeIntegrationTokenResponse) GetApplicationproblemJSON429() *TooManyRequests
- func (r RevokeIntegrationTokenResponse) GetBody() []byte
- func (r RevokeIntegrationTokenResponse) Status() string
- func (r RevokeIntegrationTokenResponse) StatusCode() int
- type RevokeIntegrationTokenResponse429Headers
- type RevokePersonalAccessTokenResponse
- func (r RevokePersonalAccessTokenResponse) ContentType() string
- func (r RevokePersonalAccessTokenResponse) GetApplicationproblemJSON401() *Unauthorized
- func (r RevokePersonalAccessTokenResponse) GetApplicationproblemJSON403() *Forbidden
- func (r RevokePersonalAccessTokenResponse) GetApplicationproblemJSON404() *NotFound
- func (r RevokePersonalAccessTokenResponse) GetApplicationproblemJSON429() *TooManyRequests
- func (r RevokePersonalAccessTokenResponse) GetBody() []byte
- func (r RevokePersonalAccessTokenResponse) Status() string
- func (r RevokePersonalAccessTokenResponse) StatusCode() int
- type RevokePersonalAccessTokenResponse429Headers
- type RevokeServiceAccountTokenResponse
- func (r RevokeServiceAccountTokenResponse) ContentType() string
- func (r RevokeServiceAccountTokenResponse) GetApplicationproblemJSON401() *Unauthorized
- func (r RevokeServiceAccountTokenResponse) GetApplicationproblemJSON403() *Forbidden
- func (r RevokeServiceAccountTokenResponse) GetApplicationproblemJSON404() *NotFound
- func (r RevokeServiceAccountTokenResponse) GetApplicationproblemJSON429() *TooManyRequests
- func (r RevokeServiceAccountTokenResponse) GetBody() []byte
- func (r RevokeServiceAccountTokenResponse) Status() string
- func (r RevokeServiceAccountTokenResponse) StatusCode() int
- type RevokeServiceAccountTokenResponse429Headers
- type Role
- type RoleList
- type RoleName
- type Route
- type RouteId
- type RouteInput
- type RouteList
- type RouteOrder
- type RoutePolicy
- type RouteProfile
- type RouteProfileId
- type RouteProfileList
- type RouteStorm
- type RouteSuggestion
- type RouteSuggestionAcceptance
- type RouteSuggestionId
- type RouteSuggestionList
- type RouteTemplates
- type RunBulkCommandJSONRequestBody
- type RunBulkCommandResponse
- func (r RunBulkCommandResponse) ContentType() string
- func (r RunBulkCommandResponse) GetApplicationproblemJSON400() *BadRequest
- func (r RunBulkCommandResponse) GetApplicationproblemJSON401() *Unauthorized
- func (r RunBulkCommandResponse) GetApplicationproblemJSON403() *Forbidden
- func (r RunBulkCommandResponse) GetApplicationproblemJSON422() *Unprocessable
- func (r RunBulkCommandResponse) GetApplicationproblemJSON429() *TooManyRequests
- func (r RunBulkCommandResponse) GetBody() []byte
- func (r RunBulkCommandResponse) GetJSON200() *BulkCommandResult
- func (r RunBulkCommandResponse) Status() string
- func (r RunBulkCommandResponse) StatusCode() int
- type RunBulkCommandResponse429Headers
- type SecretName
- type SecretStatus
- type ServiceAccount
- type ServiceAccountId
- type ServiceAccountInput
- type ServiceAccountList
- type ServiceAccountStatus
- type ServiceAccountToken
- type ServiceAccountTokenCreate
- type ServiceAccountTokenCreated
- type ServiceAccountTokenList
- type Session
- type SessionCreate
- type SessionInfo
- type SessionInfoList
- type SessionMethod
- type SessionState
- type SessionTotp
- type SetDestinationSecretJSONRequestBody
- type SetDestinationSecretParams
- type SetDestinationSecretResponse
- func (r SetDestinationSecretResponse) ContentType() string
- func (r SetDestinationSecretResponse) GetApplicationproblemJSON400() *BadRequest
- func (r SetDestinationSecretResponse) GetApplicationproblemJSON401() *Unauthorized
- func (r SetDestinationSecretResponse) GetApplicationproblemJSON403() *Forbidden
- func (r SetDestinationSecretResponse) GetApplicationproblemJSON404() *NotFound
- func (r SetDestinationSecretResponse) GetApplicationproblemJSON409() *Conflict
- func (r SetDestinationSecretResponse) GetApplicationproblemJSON412() *PreconditionFailed
- func (r SetDestinationSecretResponse) GetApplicationproblemJSON422() *Unprocessable
- func (r SetDestinationSecretResponse) GetApplicationproblemJSON429() *TooManyRequests
- func (r SetDestinationSecretResponse) GetBody() []byte
- func (r SetDestinationSecretResponse) GetJSON200() *DestinationSecret
- func (r SetDestinationSecretResponse) Status() string
- func (r SetDestinationSecretResponse) StatusCode() int
- type SetDestinationSecretResponse200Headers
- type SetDestinationSecretResponse429Headers
- type SeverityLevel
- type SeverityLevelStyle
- type SeverityMappingEntry
- type SeverityValue
- type SeverityValueList
- type SignInOptions
- type SigningSecretGenerated
- type SigningSecretStatus
- type SlackChannel
- type SlackChannelList
- type SlackCheckInfo
- type SlackConnection
- type SlackConnectionBase
- type SlackConnectionBaseType
- type SlackConnectionDraft
- type SlackConnectionDraftType
- type SlackConnectionInput
- type SlackConnectionInputType
- type SlackConnectionType
- type SlackDestination
- type SlackDestinationInput
- type SlackDestinationInputType
- type SlackDestinationType
- type SlackEventMode
- type SlackInteractionForm
- type SlackInteractionFormdataRequestBody
- type SlackInteractionParams
- type SlackInteractionResponse
- func (r SlackInteractionResponse) ContentType() string
- func (r SlackInteractionResponse) GetApplicationproblemJSON400() *BadRequest
- func (r SlackInteractionResponse) GetApplicationproblemJSON401() *Unauthorized
- func (r SlackInteractionResponse) GetApplicationproblemJSON500() *InternalError
- func (r SlackInteractionResponse) GetBody() []byte
- func (r SlackInteractionResponse) Status() string
- func (r SlackInteractionResponse) StatusCode() int
- type SlackLinkConfirm
- type SlackLinkRequest
- type SlackLinkStarted
- type SlackSocketStatus
- type SnapshotState
- type SnoozeAlertGroupJSONRequestBody
- type SnoozeAlertGroupResponse
- func (r SnoozeAlertGroupResponse) ContentType() string
- func (r SnoozeAlertGroupResponse) GetApplicationproblemJSON400() *BadRequest
- func (r SnoozeAlertGroupResponse) GetApplicationproblemJSON401() *Unauthorized
- func (r SnoozeAlertGroupResponse) GetApplicationproblemJSON403() *Forbidden
- func (r SnoozeAlertGroupResponse) GetApplicationproblemJSON404() *NotFound
- func (r SnoozeAlertGroupResponse) GetApplicationproblemJSON409() *Conflict
- func (r SnoozeAlertGroupResponse) GetApplicationproblemJSON422() *Unprocessable
- func (r SnoozeAlertGroupResponse) GetApplicationproblemJSON429() *TooManyRequests
- func (r SnoozeAlertGroupResponse) GetBody() []byte
- func (r SnoozeAlertGroupResponse) GetJSON200() *CommandResult
- func (r SnoozeAlertGroupResponse) Status() string
- func (r SnoozeAlertGroupResponse) StatusCode() int
- type SnoozeAlertGroupResponse429Headers
- type SnoozePreset
- type SnoozePresetEnd
- type SnoozePresetList
- type SnoozeRequest
- type SnoozeRequestNoEnd
- type StartBridgeCodeLinkJSONRequestBody
- type StartBridgeCodeLinkResponse
- func (r StartBridgeCodeLinkResponse) ContentType() string
- func (r StartBridgeCodeLinkResponse) GetApplicationproblemJSON400() *BadRequest
- func (r StartBridgeCodeLinkResponse) GetApplicationproblemJSON401() *Unauthorized
- func (r StartBridgeCodeLinkResponse) GetApplicationproblemJSON403() *Forbidden
- func (r StartBridgeCodeLinkResponse) GetApplicationproblemJSON409() *Conflict
- func (r StartBridgeCodeLinkResponse) GetApplicationproblemJSON422() *Unprocessable
- func (r StartBridgeCodeLinkResponse) GetApplicationproblemJSON429() *TooManyRequests
- func (r StartBridgeCodeLinkResponse) GetApplicationproblemJSON503() *Limited
- func (r StartBridgeCodeLinkResponse) GetBody() []byte
- func (r StartBridgeCodeLinkResponse) GetJSON202() *BridgeCodeLinkStarted
- func (r StartBridgeCodeLinkResponse) Status() string
- func (r StartBridgeCodeLinkResponse) StatusCode() int
- type StartBridgeCodeLinkResponse429Headers
- type StartBridgeCodeLinkResponse503Headers
- type StartBridgeLinkJSONRequestBody
- type StartBridgeLinkResponse
- func (r StartBridgeLinkResponse) ContentType() string
- func (r StartBridgeLinkResponse) GetApplicationproblemJSON400() *BadRequest
- func (r StartBridgeLinkResponse) GetApplicationproblemJSON401() *Unauthorized
- func (r StartBridgeLinkResponse) GetApplicationproblemJSON403() *Forbidden
- func (r StartBridgeLinkResponse) GetApplicationproblemJSON422() *Unprocessable
- func (r StartBridgeLinkResponse) GetApplicationproblemJSON429() *TooManyRequests
- func (r StartBridgeLinkResponse) GetBody() []byte
- func (r StartBridgeLinkResponse) GetJSON201() *BridgeLinkStart
- func (r StartBridgeLinkResponse) Status() string
- func (r StartBridgeLinkResponse) StatusCode() int
- type StartBridgeLinkResponse429Headers
- type StartMattermostLinkJSONRequestBody
- type StartMattermostLinkResponse
- func (r StartMattermostLinkResponse) ContentType() string
- func (r StartMattermostLinkResponse) GetApplicationproblemJSON400() *BadRequest
- func (r StartMattermostLinkResponse) GetApplicationproblemJSON401() *Unauthorized
- func (r StartMattermostLinkResponse) GetApplicationproblemJSON403() *Forbidden
- func (r StartMattermostLinkResponse) GetApplicationproblemJSON404() *NotFound
- func (r StartMattermostLinkResponse) GetApplicationproblemJSON409() *Conflict
- func (r StartMattermostLinkResponse) GetApplicationproblemJSON422() *Unprocessable
- func (r StartMattermostLinkResponse) GetApplicationproblemJSON429() *TooManyRequests
- func (r StartMattermostLinkResponse) GetApplicationproblemJSON503() *Limited
- func (r StartMattermostLinkResponse) GetBody() []byte
- func (r StartMattermostLinkResponse) GetJSON202() *MattermostLinkStarted
- func (r StartMattermostLinkResponse) Status() string
- func (r StartMattermostLinkResponse) StatusCode() int
- type StartMattermostLinkResponse429Headers
- type StartMattermostLinkResponse503Headers
- type StartOidcLinkResponse
- func (r StartOidcLinkResponse) ContentType() string
- func (r StartOidcLinkResponse) GetApplicationproblemJSON401() *Unauthorized
- func (r StartOidcLinkResponse) GetApplicationproblemJSON403() *Forbidden
- func (r StartOidcLinkResponse) GetApplicationproblemJSON409() *Conflict
- func (r StartOidcLinkResponse) GetApplicationproblemJSON429() *TooManyRequests
- func (r StartOidcLinkResponse) GetBody() []byte
- func (r StartOidcLinkResponse) GetJSON201() *OidcLinkStart
- func (r StartOidcLinkResponse) Status() string
- func (r StartOidcLinkResponse) StatusCode() int
- type StartOidcLinkResponse429Headers
- type StartOidcSignInParams
- type StartOidcSignInResponse
- func (r StartOidcSignInResponse) ContentType() string
- func (r StartOidcSignInResponse) GetApplicationproblemJSON409() *Conflict
- func (r StartOidcSignInResponse) GetApplicationproblemJSON429() *TooManyRequests
- func (r StartOidcSignInResponse) GetBody() []byte
- func (r StartOidcSignInResponse) Status() string
- func (r StartOidcSignInResponse) StatusCode() int
- type StartOidcSignInResponse302Headers
- type StartOidcSignInResponse429Headers
- type StartSlackLinkJSONRequestBody
- type StartSlackLinkResponse
- func (r StartSlackLinkResponse) ContentType() string
- func (r StartSlackLinkResponse) GetApplicationproblemJSON400() *BadRequest
- func (r StartSlackLinkResponse) GetApplicationproblemJSON401() *Unauthorized
- func (r StartSlackLinkResponse) GetApplicationproblemJSON403() *Forbidden
- func (r StartSlackLinkResponse) GetApplicationproblemJSON409() *Conflict
- func (r StartSlackLinkResponse) GetApplicationproblemJSON422() *Unprocessable
- func (r StartSlackLinkResponse) GetApplicationproblemJSON429() *TooManyRequests
- func (r StartSlackLinkResponse) GetApplicationproblemJSON503() *Limited
- func (r StartSlackLinkResponse) GetBody() []byte
- func (r StartSlackLinkResponse) GetJSON202() *SlackLinkStarted
- func (r StartSlackLinkResponse) Status() string
- func (r StartSlackLinkResponse) StatusCode() int
- type StartSlackLinkResponse429Headers
- type StartSlackLinkResponse503Headers
- type StartTelegramLinkJSONRequestBody
- type StartTelegramLinkResponse
- func (r StartTelegramLinkResponse) ContentType() string
- func (r StartTelegramLinkResponse) GetApplicationproblemJSON400() *BadRequest
- func (r StartTelegramLinkResponse) GetApplicationproblemJSON401() *Unauthorized
- func (r StartTelegramLinkResponse) GetApplicationproblemJSON403() *Forbidden
- func (r StartTelegramLinkResponse) GetApplicationproblemJSON409() *Conflict
- func (r StartTelegramLinkResponse) GetApplicationproblemJSON422() *Unprocessable
- func (r StartTelegramLinkResponse) GetApplicationproblemJSON429() *TooManyRequests
- func (r StartTelegramLinkResponse) GetApplicationproblemJSON503() *Limited
- func (r StartTelegramLinkResponse) GetBody() []byte
- func (r StartTelegramLinkResponse) GetJSON201() *TelegramLinkStart
- func (r StartTelegramLinkResponse) Status() string
- func (r StartTelegramLinkResponse) StatusCode() int
- type StartTelegramLinkResponse429Headers
- type StartTelegramLinkResponse503Headers
- type StatisticsDay
- type StoredSnapshot
- type StoredSnapshotBodyEncoding
- type StoredSnapshotId
- type StoredSnapshotList
- type StoredSnapshotSummary
- type StreamLiveUpdatesResponse
- func (r StreamLiveUpdatesResponse) ContentType() string
- func (r StreamLiveUpdatesResponse) GetApplicationproblemJSON401() *Unauthorized
- func (r StreamLiveUpdatesResponse) GetApplicationproblemJSON403() *Forbidden
- func (r StreamLiveUpdatesResponse) GetApplicationproblemJSON429() *TooManyRequests
- func (r StreamLiveUpdatesResponse) GetBody() []byte
- func (r StreamLiveUpdatesResponse) Status() string
- func (r StreamLiveUpdatesResponse) StatusCode() int
- type StreamLiveUpdatesResponse200Headers
- type StreamLiveUpdatesResponse429Headers
- type SubmitSessionTotpJSONRequestBody
- type SubmitSessionTotpResponse
- func (r SubmitSessionTotpResponse) ContentType() string
- func (r SubmitSessionTotpResponse) GetApplicationproblemJSON400() *BadRequest
- func (r SubmitSessionTotpResponse) GetApplicationproblemJSON401() *Unauthorized
- func (r SubmitSessionTotpResponse) GetApplicationproblemJSON403() *Forbidden
- func (r SubmitSessionTotpResponse) GetApplicationproblemJSON409() *Conflict
- func (r SubmitSessionTotpResponse) GetApplicationproblemJSON422() *Unprocessable
- func (r SubmitSessionTotpResponse) GetApplicationproblemJSON429() *TooManyRequests
- func (r SubmitSessionTotpResponse) GetBody() []byte
- func (r SubmitSessionTotpResponse) GetJSON200() *Session
- func (r SubmitSessionTotpResponse) Status() string
- func (r SubmitSessionTotpResponse) StatusCode() int
- type SubmitSessionTotpResponse429Headers
- type SuggestionId
- type SystemNotice
- type SystemNoticeAudience
- type SystemNoticeKind
- type SystemNoticeList
- type SystemStatus
- type TelegramConnection
- type TelegramConnectionBase
- type TelegramConnectionBaseType
- type TelegramConnectionDraft
- type TelegramConnectionDraftType
- type TelegramConnectionInput
- type TelegramConnectionInputType
- type TelegramConnectionType
- type TelegramConnectionWarnings
- type TelegramDestination
- type TelegramDestinationInput
- type TelegramDestinationInputType
- type TelegramDestinationType
- type TelegramLinkRequest
- type TelegramLinkStart
- type TelegramUpdate
- type TelegramUpdateMode
- type TelegramWebhookJSONRequestBody
- type TelegramWebhookResponse
- func (r TelegramWebhookResponse) ContentType() string
- func (r TelegramWebhookResponse) GetApplicationproblemJSON400() *BadRequest
- func (r TelegramWebhookResponse) GetApplicationproblemJSON401() *Unauthorized
- func (r TelegramWebhookResponse) GetBody() []byte
- func (r TelegramWebhookResponse) Status() string
- func (r TelegramWebhookResponse) StatusCode() int
- type TemplateErrorEntry
- type TemplateErrorEntrySubjectKind
- type TemplateErrorState
- type TemplateErrorStateFallback
- type TemplateKind
- type TemplatePreviewRequest
- type TemplatePreviewRequestFormat
- type TemplatePreviewResult
- type TemplatePreviewResultFormat
- type TemplatePreviewResultSample
- type TestDestinationJSONRequestBody
- type TestDestinationResponse
- func (r TestDestinationResponse) ContentType() string
- func (r TestDestinationResponse) GetApplicationproblemJSON400() *BadRequest
- func (r TestDestinationResponse) GetApplicationproblemJSON401() *Unauthorized
- func (r TestDestinationResponse) GetApplicationproblemJSON403() *Forbidden
- func (r TestDestinationResponse) GetApplicationproblemJSON404() *NotFound
- func (r TestDestinationResponse) GetApplicationproblemJSON422() *Unprocessable
- func (r TestDestinationResponse) GetApplicationproblemJSON429() *TooManyRequests
- func (r TestDestinationResponse) GetApplicationproblemJSON501() *NotImplemented
- func (r TestDestinationResponse) GetBody() []byte
- func (r TestDestinationResponse) GetJSON200() *DestinationTestResult
- func (r TestDestinationResponse) Status() string
- func (r TestDestinationResponse) StatusCode() int
- type TestDestinationResponse429Headers
- type TestSource
- type TestSourceKind
- type TestStep
- type TestStepName
- type TimelineActor
- type TimelineAlertsEntry
- type TimelineAlertsEntryKind
- type TimelineDeliveryEntry
- type TimelineDeliveryEntryKind
- type TimelineEntry
- func (t TimelineEntry) AsTimelineAlertsEntry() (TimelineAlertsEntry, error)
- func (t TimelineEntry) AsTimelineDeliveryEntry() (TimelineDeliveryEntry, error)
- func (t TimelineEntry) AsTimelineNoteEntry() (TimelineNoteEntry, error)
- func (t TimelineEntry) AsTimelineStatusEntry() (TimelineStatusEntry, error)
- func (t TimelineEntry) AsTimelineSystemEntry() (TimelineSystemEntry, error)
- func (t TimelineEntry) AsTimelineTimersEntry() (TimelineTimersEntry, error)
- func (t TimelineEntry) Discriminator() (string, error)
- func (t *TimelineEntry) FromTimelineAlertsEntry(v TimelineAlertsEntry) error
- func (t *TimelineEntry) FromTimelineDeliveryEntry(v TimelineDeliveryEntry) error
- func (t *TimelineEntry) FromTimelineNoteEntry(v TimelineNoteEntry) error
- func (t *TimelineEntry) FromTimelineStatusEntry(v TimelineStatusEntry) error
- func (t *TimelineEntry) FromTimelineSystemEntry(v TimelineSystemEntry) error
- func (t *TimelineEntry) FromTimelineTimersEntry(v TimelineTimersEntry) error
- func (t TimelineEntry) MarshalJSON() ([]byte, error)
- func (t *TimelineEntry) MergeTimelineAlertsEntry(v TimelineAlertsEntry) error
- func (t *TimelineEntry) MergeTimelineDeliveryEntry(v TimelineDeliveryEntry) error
- func (t *TimelineEntry) MergeTimelineNoteEntry(v TimelineNoteEntry) error
- func (t *TimelineEntry) MergeTimelineStatusEntry(v TimelineStatusEntry) error
- func (t *TimelineEntry) MergeTimelineSystemEntry(v TimelineSystemEntry) error
- func (t *TimelineEntry) MergeTimelineTimersEntry(v TimelineTimersEntry) error
- func (t *TimelineEntry) UnmarshalJSON(b []byte) error
- func (t TimelineEntry) ValueByDiscriminator() (interface{}, error)
- type TimelineEntryBase
- type TimelineEntryList
- type TimelineKind
- type TimelineLifecycleFields
- type TimelineNoteEntry
- type TimelineNoteEntryKind
- type TimelineStatusEntry
- type TimelineStatusEntryKind
- type TimelineSystemEntry
- type TimelineSystemEntryKind
- type TimelineSystemEntrySystemEvent
- type TimelineTimersEntry
- type TimelineTimersEntryKind
- type To
- type TokenId
- type TooManyRequests
- type TotpCode
- type TotpEnrolment
- type TotpPolicy
- type TotpRecoveryCodes
- type TotpRemoval
- type TotpStatus
- type Transport
- type UnacknowledgeAlertGroupResponse
- func (r UnacknowledgeAlertGroupResponse) ContentType() string
- func (r UnacknowledgeAlertGroupResponse) GetApplicationproblemJSON401() *Unauthorized
- func (r UnacknowledgeAlertGroupResponse) GetApplicationproblemJSON403() *Forbidden
- func (r UnacknowledgeAlertGroupResponse) GetApplicationproblemJSON404() *NotFound
- func (r UnacknowledgeAlertGroupResponse) GetApplicationproblemJSON409() *Conflict
- func (r UnacknowledgeAlertGroupResponse) GetApplicationproblemJSON429() *TooManyRequests
- func (r UnacknowledgeAlertGroupResponse) GetBody() []byte
- func (r UnacknowledgeAlertGroupResponse) GetJSON200() *CommandResult
- func (r UnacknowledgeAlertGroupResponse) Status() string
- func (r UnacknowledgeAlertGroupResponse) StatusCode() int
- type UnacknowledgeAlertGroupResponse429Headers
- type Unauthorized
- type Unprocessable
- type UnresolveAlertGroupResponse
- func (r UnresolveAlertGroupResponse) ContentType() string
- func (r UnresolveAlertGroupResponse) GetApplicationproblemJSON401() *Unauthorized
- func (r UnresolveAlertGroupResponse) GetApplicationproblemJSON403() *Forbidden
- func (r UnresolveAlertGroupResponse) GetApplicationproblemJSON404() *NotFound
- func (r UnresolveAlertGroupResponse) GetApplicationproblemJSON409() *Conflict
- func (r UnresolveAlertGroupResponse) GetApplicationproblemJSON429() *TooManyRequests
- func (r UnresolveAlertGroupResponse) GetBody() []byte
- func (r UnresolveAlertGroupResponse) GetJSON200() *CommandResult
- func (r UnresolveAlertGroupResponse) Status() string
- func (r UnresolveAlertGroupResponse) StatusCode() int
- type UnresolveAlertGroupResponse429Headers
- type UnsnoozeAlertGroupResponse
- func (r UnsnoozeAlertGroupResponse) ContentType() string
- func (r UnsnoozeAlertGroupResponse) GetApplicationproblemJSON401() *Unauthorized
- func (r UnsnoozeAlertGroupResponse) GetApplicationproblemJSON403() *Forbidden
- func (r UnsnoozeAlertGroupResponse) GetApplicationproblemJSON404() *NotFound
- func (r UnsnoozeAlertGroupResponse) GetApplicationproblemJSON409() *Conflict
- func (r UnsnoozeAlertGroupResponse) GetApplicationproblemJSON429() *TooManyRequests
- func (r UnsnoozeAlertGroupResponse) GetBody() []byte
- func (r UnsnoozeAlertGroupResponse) GetJSON200() *CommandResult
- func (r UnsnoozeAlertGroupResponse) Status() string
- func (r UnsnoozeAlertGroupResponse) StatusCode() int
- type UnsnoozeAlertGroupResponse429Headers
- type UpdateConnectionJSONRequestBody
- type UpdateConnectionParams
- type UpdateConnectionResponse
- func (r UpdateConnectionResponse) ContentType() string
- func (r UpdateConnectionResponse) GetApplicationproblemJSON400() *BadRequest
- func (r UpdateConnectionResponse) GetApplicationproblemJSON401() *Unauthorized
- func (r UpdateConnectionResponse) GetApplicationproblemJSON403() *Forbidden
- func (r UpdateConnectionResponse) GetApplicationproblemJSON404() *NotFound
- func (r UpdateConnectionResponse) GetApplicationproblemJSON409() *Conflict
- func (r UpdateConnectionResponse) GetApplicationproblemJSON412() *PreconditionFailed
- func (r UpdateConnectionResponse) GetApplicationproblemJSON422() *Unprocessable
- func (r UpdateConnectionResponse) GetApplicationproblemJSON428() *PreconditionRequired
- func (r UpdateConnectionResponse) GetApplicationproblemJSON429() *TooManyRequests
- func (r UpdateConnectionResponse) GetBody() []byte
- func (r UpdateConnectionResponse) GetJSON200() *Connection
- func (r UpdateConnectionResponse) Status() string
- func (r UpdateConnectionResponse) StatusCode() int
- type UpdateConnectionResponse200Headers
- type UpdateConnectionResponse429Headers
- type UpdateDestinationJSONRequestBody
- type UpdateDestinationParams
- type UpdateDestinationResponse
- func (r UpdateDestinationResponse) ContentType() string
- func (r UpdateDestinationResponse) GetApplicationproblemJSON400() *BadRequest
- func (r UpdateDestinationResponse) GetApplicationproblemJSON401() *Unauthorized
- func (r UpdateDestinationResponse) GetApplicationproblemJSON403() *Forbidden
- func (r UpdateDestinationResponse) GetApplicationproblemJSON404() *NotFound
- func (r UpdateDestinationResponse) GetApplicationproblemJSON409() *Conflict
- func (r UpdateDestinationResponse) GetApplicationproblemJSON412() *PreconditionFailed
- func (r UpdateDestinationResponse) GetApplicationproblemJSON422() *Unprocessable
- func (r UpdateDestinationResponse) GetApplicationproblemJSON428() *PreconditionRequired
- func (r UpdateDestinationResponse) GetApplicationproblemJSON429() *TooManyRequests
- func (r UpdateDestinationResponse) GetApplicationproblemJSON503() *Limited
- func (r UpdateDestinationResponse) GetBody() []byte
- func (r UpdateDestinationResponse) GetJSON200() *Destination
- func (r UpdateDestinationResponse) Status() string
- func (r UpdateDestinationResponse) StatusCode() int
- type UpdateDestinationResponse200Headers
- type UpdateDestinationResponse429Headers
- type UpdateDestinationResponse503Headers
- type UpdateIntegrationJSONRequestBody
- type UpdateIntegrationParams
- type UpdateIntegrationResponse
- func (r UpdateIntegrationResponse) ContentType() string
- func (r UpdateIntegrationResponse) GetApplicationproblemJSON400() *BadRequest
- func (r UpdateIntegrationResponse) GetApplicationproblemJSON401() *Unauthorized
- func (r UpdateIntegrationResponse) GetApplicationproblemJSON403() *Forbidden
- func (r UpdateIntegrationResponse) GetApplicationproblemJSON404() *NotFound
- func (r UpdateIntegrationResponse) GetApplicationproblemJSON409() *Conflict
- func (r UpdateIntegrationResponse) GetApplicationproblemJSON412() *PreconditionFailed
- func (r UpdateIntegrationResponse) GetApplicationproblemJSON422() *Unprocessable
- func (r UpdateIntegrationResponse) GetApplicationproblemJSON428() *PreconditionRequired
- func (r UpdateIntegrationResponse) GetApplicationproblemJSON429() *TooManyRequests
- func (r UpdateIntegrationResponse) GetBody() []byte
- func (r UpdateIntegrationResponse) GetJSON200() *Integration
- func (r UpdateIntegrationResponse) Status() string
- func (r UpdateIntegrationResponse) StatusCode() int
- type UpdateIntegrationResponse200Headers
- type UpdateIntegrationResponse429Headers
- type UpdateLinkRuleJSONRequestBody
- type UpdateLinkRuleParams
- type UpdateLinkRuleResponse
- func (r UpdateLinkRuleResponse) ContentType() string
- func (r UpdateLinkRuleResponse) GetApplicationproblemJSON400() *BadRequest
- func (r UpdateLinkRuleResponse) GetApplicationproblemJSON401() *Unauthorized
- func (r UpdateLinkRuleResponse) GetApplicationproblemJSON403() *Forbidden
- func (r UpdateLinkRuleResponse) GetApplicationproblemJSON404() *NotFound
- func (r UpdateLinkRuleResponse) GetApplicationproblemJSON409() *Conflict
- func (r UpdateLinkRuleResponse) GetApplicationproblemJSON412() *PreconditionFailed
- func (r UpdateLinkRuleResponse) GetApplicationproblemJSON422() *Unprocessable
- func (r UpdateLinkRuleResponse) GetApplicationproblemJSON428() *PreconditionRequired
- func (r UpdateLinkRuleResponse) GetApplicationproblemJSON429() *TooManyRequests
- func (r UpdateLinkRuleResponse) GetBody() []byte
- func (r UpdateLinkRuleResponse) GetJSON200() *LinkRule
- func (r UpdateLinkRuleResponse) Status() string
- func (r UpdateLinkRuleResponse) StatusCode() int
- type UpdateLinkRuleResponse200Headers
- type UpdateLinkRuleResponse429Headers
- type UpdateLookupTableJSONRequestBody
- type UpdateLookupTableParams
- type UpdateLookupTableResponse
- func (r UpdateLookupTableResponse) ContentType() string
- func (r UpdateLookupTableResponse) GetApplicationproblemJSON400() *BadRequest
- func (r UpdateLookupTableResponse) GetApplicationproblemJSON401() *Unauthorized
- func (r UpdateLookupTableResponse) GetApplicationproblemJSON403() *Forbidden
- func (r UpdateLookupTableResponse) GetApplicationproblemJSON404() *NotFound
- func (r UpdateLookupTableResponse) GetApplicationproblemJSON409() *Conflict
- func (r UpdateLookupTableResponse) GetApplicationproblemJSON412() *PreconditionFailed
- func (r UpdateLookupTableResponse) GetApplicationproblemJSON422() *Unprocessable
- func (r UpdateLookupTableResponse) GetApplicationproblemJSON428() *PreconditionRequired
- func (r UpdateLookupTableResponse) GetApplicationproblemJSON429() *TooManyRequests
- func (r UpdateLookupTableResponse) GetBody() []byte
- func (r UpdateLookupTableResponse) GetJSON200() *LookupTable
- func (r UpdateLookupTableResponse) Status() string
- func (r UpdateLookupTableResponse) StatusCode() int
- type UpdateLookupTableResponse200Headers
- type UpdateLookupTableResponse429Headers
- type UpdateMeJSONRequestBody
- type UpdateMeResponse
- func (r UpdateMeResponse) ContentType() string
- func (r UpdateMeResponse) GetApplicationproblemJSON400() *BadRequest
- func (r UpdateMeResponse) GetApplicationproblemJSON401() *Unauthorized
- func (r UpdateMeResponse) GetApplicationproblemJSON403() *Forbidden
- func (r UpdateMeResponse) GetApplicationproblemJSON422() *Unprocessable
- func (r UpdateMeResponse) GetApplicationproblemJSON429() *TooManyRequests
- func (r UpdateMeResponse) GetBody() []byte
- func (r UpdateMeResponse) GetJSON200() *Me
- func (r UpdateMeResponse) Status() string
- func (r UpdateMeResponse) StatusCode() int
- type UpdateMeResponse429Headers
- type UpdateOidcSettingsJSONRequestBody
- type UpdateOidcSettingsParams
- type UpdateOidcSettingsResponse
- func (r UpdateOidcSettingsResponse) ContentType() string
- func (r UpdateOidcSettingsResponse) GetApplicationproblemJSON400() *BadRequest
- func (r UpdateOidcSettingsResponse) GetApplicationproblemJSON401() *Unauthorized
- func (r UpdateOidcSettingsResponse) GetApplicationproblemJSON403() *Forbidden
- func (r UpdateOidcSettingsResponse) GetApplicationproblemJSON412() *PreconditionFailed
- func (r UpdateOidcSettingsResponse) GetApplicationproblemJSON422() *Unprocessable
- func (r UpdateOidcSettingsResponse) GetApplicationproblemJSON428() *PreconditionRequired
- func (r UpdateOidcSettingsResponse) GetApplicationproblemJSON429() *TooManyRequests
- func (r UpdateOidcSettingsResponse) GetBody() []byte
- func (r UpdateOidcSettingsResponse) GetJSON200() *OidcSettings
- func (r UpdateOidcSettingsResponse) Status() string
- func (r UpdateOidcSettingsResponse) StatusCode() int
- type UpdateOidcSettingsResponse200Headers
- type UpdateOidcSettingsResponse429Headers
- type UpdateOrganizationJSONRequestBody
- type UpdateOrganizationParams
- type UpdateOrganizationResponse
- func (r UpdateOrganizationResponse) ContentType() string
- func (r UpdateOrganizationResponse) GetApplicationproblemJSON400() *BadRequest
- func (r UpdateOrganizationResponse) GetApplicationproblemJSON401() *Unauthorized
- func (r UpdateOrganizationResponse) GetApplicationproblemJSON403() *Forbidden
- func (r UpdateOrganizationResponse) GetApplicationproblemJSON412() *PreconditionFailed
- func (r UpdateOrganizationResponse) GetApplicationproblemJSON422() *Unprocessable
- func (r UpdateOrganizationResponse) GetApplicationproblemJSON428() *PreconditionRequired
- func (r UpdateOrganizationResponse) GetApplicationproblemJSON429() *TooManyRequests
- func (r UpdateOrganizationResponse) GetBody() []byte
- func (r UpdateOrganizationResponse) GetJSON200() *Organization
- func (r UpdateOrganizationResponse) Status() string
- func (r UpdateOrganizationResponse) StatusCode() int
- type UpdateOrganizationResponse200Headers
- type UpdateOrganizationResponse429Headers
- type UpdateOutboundPolicyJSONRequestBody
- type UpdateOutboundPolicyParams
- type UpdateOutboundPolicyResponse
- func (r UpdateOutboundPolicyResponse) ContentType() string
- func (r UpdateOutboundPolicyResponse) GetApplicationproblemJSON400() *BadRequest
- func (r UpdateOutboundPolicyResponse) GetApplicationproblemJSON401() *Unauthorized
- func (r UpdateOutboundPolicyResponse) GetApplicationproblemJSON403() *Forbidden
- func (r UpdateOutboundPolicyResponse) GetApplicationproblemJSON412() *PreconditionFailed
- func (r UpdateOutboundPolicyResponse) GetApplicationproblemJSON422() *Unprocessable
- func (r UpdateOutboundPolicyResponse) GetApplicationproblemJSON428() *PreconditionRequired
- func (r UpdateOutboundPolicyResponse) GetApplicationproblemJSON429() *TooManyRequests
- func (r UpdateOutboundPolicyResponse) GetBody() []byte
- func (r UpdateOutboundPolicyResponse) GetJSON200() *OutboundPolicy
- func (r UpdateOutboundPolicyResponse) Status() string
- func (r UpdateOutboundPolicyResponse) StatusCode() int
- type UpdateOutboundPolicyResponse200Headers
- type UpdateOutboundPolicyResponse429Headers
- type UpdateRouteJSONRequestBody
- type UpdateRouteParams
- type UpdateRouteResponse
- func (r UpdateRouteResponse) ContentType() string
- func (r UpdateRouteResponse) GetApplicationproblemJSON400() *BadRequest
- func (r UpdateRouteResponse) GetApplicationproblemJSON401() *Unauthorized
- func (r UpdateRouteResponse) GetApplicationproblemJSON403() *Forbidden
- func (r UpdateRouteResponse) GetApplicationproblemJSON404() *NotFound
- func (r UpdateRouteResponse) GetApplicationproblemJSON409() *Conflict
- func (r UpdateRouteResponse) GetApplicationproblemJSON412() *PreconditionFailed
- func (r UpdateRouteResponse) GetApplicationproblemJSON422() *Unprocessable
- func (r UpdateRouteResponse) GetApplicationproblemJSON428() *PreconditionRequired
- func (r UpdateRouteResponse) GetApplicationproblemJSON429() *TooManyRequests
- func (r UpdateRouteResponse) GetBody() []byte
- func (r UpdateRouteResponse) GetJSON200() *Route
- func (r UpdateRouteResponse) Status() string
- func (r UpdateRouteResponse) StatusCode() int
- type UpdateRouteResponse200Headers
- type UpdateRouteResponse429Headers
- type UpdateServiceAccountJSONRequestBody
- type UpdateServiceAccountParams
- type UpdateServiceAccountResponse
- func (r UpdateServiceAccountResponse) ContentType() string
- func (r UpdateServiceAccountResponse) GetApplicationproblemJSON400() *BadRequest
- func (r UpdateServiceAccountResponse) GetApplicationproblemJSON401() *Unauthorized
- func (r UpdateServiceAccountResponse) GetApplicationproblemJSON403() *Forbidden
- func (r UpdateServiceAccountResponse) GetApplicationproblemJSON404() *NotFound
- func (r UpdateServiceAccountResponse) GetApplicationproblemJSON409() *Conflict
- func (r UpdateServiceAccountResponse) GetApplicationproblemJSON412() *PreconditionFailed
- func (r UpdateServiceAccountResponse) GetApplicationproblemJSON422() *Unprocessable
- func (r UpdateServiceAccountResponse) GetApplicationproblemJSON428() *PreconditionRequired
- func (r UpdateServiceAccountResponse) GetApplicationproblemJSON429() *TooManyRequests
- func (r UpdateServiceAccountResponse) GetBody() []byte
- func (r UpdateServiceAccountResponse) GetJSON200() *ServiceAccount
- func (r UpdateServiceAccountResponse) Status() string
- func (r UpdateServiceAccountResponse) StatusCode() int
- type UpdateServiceAccountResponse200Headers
- type UpdateServiceAccountResponse429Headers
- type UpdateUserJSONRequestBody
- type UpdateUserParams
- type UpdateUserResponse
- func (r UpdateUserResponse) ContentType() string
- func (r UpdateUserResponse) GetApplicationproblemJSON400() *BadRequest
- func (r UpdateUserResponse) GetApplicationproblemJSON401() *Unauthorized
- func (r UpdateUserResponse) GetApplicationproblemJSON403() *Forbidden
- func (r UpdateUserResponse) GetApplicationproblemJSON404() *NotFound
- func (r UpdateUserResponse) GetApplicationproblemJSON409() *Conflict
- func (r UpdateUserResponse) GetApplicationproblemJSON412() *PreconditionFailed
- func (r UpdateUserResponse) GetApplicationproblemJSON422() *Unprocessable
- func (r UpdateUserResponse) GetApplicationproblemJSON428() *PreconditionRequired
- func (r UpdateUserResponse) GetApplicationproblemJSON429() *TooManyRequests
- func (r UpdateUserResponse) GetBody() []byte
- func (r UpdateUserResponse) GetJSON200() *User
- func (r UpdateUserResponse) Status() string
- func (r UpdateUserResponse) StatusCode() int
- type UpdateUserResponse200Headers
- type UpdateUserResponse429Headers
- type User
- type UserCreate
- type UserCreated
- type UserDirectoryList
- type UserId
- type UserList
- type UserRef
- type UserSignInMethod
- type UserSource
- type UserStatus
- type UserUpdate
- type WebhookActor
- type WebhookAlert
- type WebhookAlertGroup
- type WebhookDestination
- type WebhookDestinationBase
- type WebhookDestinationBaseMode
- type WebhookDestinationBaseType
- type WebhookDestinationInput
- type WebhookDestinationInputMode
- type WebhookDestinationInputType
- type WebhookDestinationMode
- type WebhookDestinationType
- type WebhookEventName
- type WebhookEventsConfig
- type WebhookInitiator
- func (p *WebhookInitiator) DeliverAlertGroupEvent(ctx context.Context, targetURL string, params *DeliverAlertGroupEventParams, ...) (*http.Response, error)
- func (p *WebhookInitiator) DeliverAlertGroupEventWithBody(ctx context.Context, targetURL string, params *DeliverAlertGroupEventParams, ...) (*http.Response, error)
- type WebhookInitiatorInterface
- type WebhookInitiatorOption
- type WebhookMentionTarget
- type WebhookMentionTargetType
- type WebhookTemplateConfig
- type WebhookUser
- type Weekday
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewAcceptRouteSuggestionRequest ¶
func NewAcceptRouteSuggestionRequest(server string, suggestionId SuggestionId, body AcceptRouteSuggestionJSONRequestBody) (*http.Request, error)
NewAcceptRouteSuggestionRequest calls the generic AcceptRouteSuggestion builder with application/json body
func NewAcceptRouteSuggestionRequestWithBody ¶
func NewAcceptRouteSuggestionRequestWithBody(server string, suggestionId SuggestionId, contentType string, body io.Reader) (*http.Request, error)
NewAcceptRouteSuggestionRequestWithBody constructs an http.Request for the AcceptRouteSuggestion method, with any body, and a specified content type
func NewAcknowledgeAlertGroupRequest ¶
func NewAcknowledgeAlertGroupRequest(server string, alertGroupId AlertGroupId) (*http.Request, error)
NewAcknowledgeAlertGroupRequest constructs an http.Request for the AcknowledgeAlertGroup method
func NewAnswerReminderRequest ¶
func NewAnswerReminderRequest(server string, alertGroupId AlertGroupId) (*http.Request, error)
NewAnswerReminderRequest constructs an http.Request for the AnswerReminder method
func NewBeginTotpEnrolmentRequest ¶
NewBeginTotpEnrolmentRequest constructs an http.Request for the BeginTotpEnrolment method
func NewBridgeEventRequest ¶
func NewBridgeEventRequest(server string, connectionId ConnectionId, params *BridgeEventParams, body BridgeEventJSONRequestBody) (*http.Request, error)
NewBridgeEventRequest calls the generic BridgeEvent builder with application/json body
func NewBridgeEventRequestWithBody ¶
func NewBridgeEventRequestWithBody(server string, connectionId ConnectionId, params *BridgeEventParams, contentType string, body io.Reader) (*http.Request, error)
NewBridgeEventRequestWithBody constructs an http.Request for the BridgeEvent method, with any body, and a specified content type
func NewChangePasswordRequest ¶
func NewChangePasswordRequest(server string, body ChangePasswordJSONRequestBody) (*http.Request, error)
NewChangePasswordRequest calls the generic ChangePassword builder with application/json body
func NewChangePasswordRequestWithBody ¶
func NewChangePasswordRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
NewChangePasswordRequestWithBody constructs an http.Request for the ChangePassword method, with any body, and a specified content type
func NewCheckConnectionDraftRequest ¶
func NewCheckConnectionDraftRequest(server string, body CheckConnectionDraftJSONRequestBody) (*http.Request, error)
NewCheckConnectionDraftRequest calls the generic CheckConnectionDraft builder with application/json body
func NewCheckConnectionDraftRequestWithBody ¶
func NewCheckConnectionDraftRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
NewCheckConnectionDraftRequestWithBody constructs an http.Request for the CheckConnectionDraft method, with any body, and a specified content type
func NewCheckConnectionRequest ¶
func NewCheckConnectionRequest(server string, connectionId ConnectionId, body CheckConnectionJSONRequestBody) (*http.Request, error)
NewCheckConnectionRequest calls the generic CheckConnection builder with application/json body
func NewCheckConnectionRequestWithBody ¶
func NewCheckConnectionRequestWithBody(server string, connectionId ConnectionId, contentType string, body io.Reader) (*http.Request, error)
NewCheckConnectionRequestWithBody constructs an http.Request for the CheckConnection method, with any body, and a specified content type
func NewCheckDestinationRequest ¶
func NewCheckDestinationRequest(server string, destinationId DestinationId) (*http.Request, error)
NewCheckDestinationRequest constructs an http.Request for the CheckDestination method
func NewCheckOidcSettingsRequest ¶
NewCheckOidcSettingsRequest constructs an http.Request for the CheckOidcSettings method
func NewCompleteOidcLinkRequest ¶
func NewCompleteOidcLinkRequest(server string, params *CompleteOidcLinkParams) (*http.Request, error)
NewCompleteOidcLinkRequest constructs an http.Request for the CompleteOidcLink method
func NewCompleteOidcSignInRequest ¶
func NewCompleteOidcSignInRequest(server string, params *CompleteOidcSignInParams) (*http.Request, error)
NewCompleteOidcSignInRequest constructs an http.Request for the CompleteOidcSignIn method
func NewCompletePasswordSetupRequest ¶
func NewCompletePasswordSetupRequest(server string, body CompletePasswordSetupJSONRequestBody) (*http.Request, error)
NewCompletePasswordSetupRequest calls the generic CompletePasswordSetup builder with application/json body
func NewCompletePasswordSetupRequestWithBody ¶
func NewCompletePasswordSetupRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
NewCompletePasswordSetupRequestWithBody constructs an http.Request for the CompletePasswordSetup method, with any body, and a specified content type
func NewConfirmBridgeLinkRequest ¶
func NewConfirmBridgeLinkRequest(server string, body ConfirmBridgeLinkJSONRequestBody) (*http.Request, error)
NewConfirmBridgeLinkRequest calls the generic ConfirmBridgeLink builder with application/json body
func NewConfirmBridgeLinkRequestWithBody ¶
func NewConfirmBridgeLinkRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
NewConfirmBridgeLinkRequestWithBody constructs an http.Request for the ConfirmBridgeLink method, with any body, and a specified content type
func NewConfirmMattermostLinkRequest ¶
func NewConfirmMattermostLinkRequest(server string, body ConfirmMattermostLinkJSONRequestBody) (*http.Request, error)
NewConfirmMattermostLinkRequest calls the generic ConfirmMattermostLink builder with application/json body
func NewConfirmMattermostLinkRequestWithBody ¶
func NewConfirmMattermostLinkRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
NewConfirmMattermostLinkRequestWithBody constructs an http.Request for the ConfirmMattermostLink method, with any body, and a specified content type
func NewConfirmSlackLinkRequest ¶
func NewConfirmSlackLinkRequest(server string, body ConfirmSlackLinkJSONRequestBody) (*http.Request, error)
NewConfirmSlackLinkRequest calls the generic ConfirmSlackLink builder with application/json body
func NewConfirmSlackLinkRequestWithBody ¶
func NewConfirmSlackLinkRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
NewConfirmSlackLinkRequestWithBody constructs an http.Request for the ConfirmSlackLink method, with any body, and a specified content type
func NewConfirmTotpEnrolmentRequest ¶
func NewConfirmTotpEnrolmentRequest(server string, body ConfirmTotpEnrolmentJSONRequestBody) (*http.Request, error)
NewConfirmTotpEnrolmentRequest calls the generic ConfirmTotpEnrolment builder with application/json body
func NewConfirmTotpEnrolmentRequestWithBody ¶
func NewConfirmTotpEnrolmentRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
NewConfirmTotpEnrolmentRequestWithBody constructs an http.Request for the ConfirmTotpEnrolment method, with any body, and a specified content type
func NewConvertUserToLocalRequest ¶
NewConvertUserToLocalRequest constructs an http.Request for the ConvertUserToLocal method
func NewCreateAlertGroupNoteRequest ¶
func NewCreateAlertGroupNoteRequest(server string, alertGroupId AlertGroupId, body CreateAlertGroupNoteJSONRequestBody) (*http.Request, error)
NewCreateAlertGroupNoteRequest calls the generic CreateAlertGroupNote builder with application/json body
func NewCreateAlertGroupNoteRequestWithBody ¶
func NewCreateAlertGroupNoteRequestWithBody(server string, alertGroupId AlertGroupId, contentType string, body io.Reader) (*http.Request, error)
NewCreateAlertGroupNoteRequestWithBody constructs an http.Request for the CreateAlertGroupNote method, with any body, and a specified content type
func NewCreateConnectionRequest ¶
func NewCreateConnectionRequest(server string, body CreateConnectionJSONRequestBody) (*http.Request, error)
NewCreateConnectionRequest calls the generic CreateConnection builder with application/json body
func NewCreateConnectionRequestWithBody ¶
func NewCreateConnectionRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
NewCreateConnectionRequestWithBody constructs an http.Request for the CreateConnection method, with any body, and a specified content type
func NewCreateDestinationRequest ¶
func NewCreateDestinationRequest(server string, body CreateDestinationJSONRequestBody) (*http.Request, error)
NewCreateDestinationRequest calls the generic CreateDestination builder with application/json body
func NewCreateDestinationRequestWithBody ¶
func NewCreateDestinationRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
NewCreateDestinationRequestWithBody constructs an http.Request for the CreateDestination method, with any body, and a specified content type
func NewCreateIntegrationRequest ¶
func NewCreateIntegrationRequest(server string, body CreateIntegrationJSONRequestBody) (*http.Request, error)
NewCreateIntegrationRequest calls the generic CreateIntegration builder with application/json body
func NewCreateIntegrationRequestWithBody ¶
func NewCreateIntegrationRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
NewCreateIntegrationRequestWithBody constructs an http.Request for the CreateIntegration method, with any body, and a specified content type
func NewCreateIntegrationTokenRequest ¶
func NewCreateIntegrationTokenRequest(server string, integrationId IntegrationId, body CreateIntegrationTokenJSONRequestBody) (*http.Request, error)
NewCreateIntegrationTokenRequest calls the generic CreateIntegrationToken builder with application/json body
func NewCreateIntegrationTokenRequestWithBody ¶
func NewCreateIntegrationTokenRequestWithBody(server string, integrationId IntegrationId, contentType string, body io.Reader) (*http.Request, error)
NewCreateIntegrationTokenRequestWithBody constructs an http.Request for the CreateIntegrationToken method, with any body, and a specified content type
func NewCreateLinkRuleRequest ¶
func NewCreateLinkRuleRequest(server string, body CreateLinkRuleJSONRequestBody) (*http.Request, error)
NewCreateLinkRuleRequest calls the generic CreateLinkRule builder with application/json body
func NewCreateLinkRuleRequestWithBody ¶
func NewCreateLinkRuleRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
NewCreateLinkRuleRequestWithBody constructs an http.Request for the CreateLinkRule method, with any body, and a specified content type
func NewCreateLookupTableRequest ¶
func NewCreateLookupTableRequest(server string, body CreateLookupTableJSONRequestBody) (*http.Request, error)
NewCreateLookupTableRequest calls the generic CreateLookupTable builder with application/json body
func NewCreateLookupTableRequestWithBody ¶
func NewCreateLookupTableRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
NewCreateLookupTableRequestWithBody constructs an http.Request for the CreateLookupTable method, with any body, and a specified content type
func NewCreatePasswordSetupLinkRequest ¶
NewCreatePasswordSetupLinkRequest constructs an http.Request for the CreatePasswordSetupLink method
func NewCreatePersonalAccessTokenRequest ¶
func NewCreatePersonalAccessTokenRequest(server string, body CreatePersonalAccessTokenJSONRequestBody) (*http.Request, error)
NewCreatePersonalAccessTokenRequest calls the generic CreatePersonalAccessToken builder with application/json body
func NewCreatePersonalAccessTokenRequestWithBody ¶
func NewCreatePersonalAccessTokenRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
NewCreatePersonalAccessTokenRequestWithBody constructs an http.Request for the CreatePersonalAccessToken method, with any body, and a specified content type
func NewCreateRouteRequest ¶
func NewCreateRouteRequest(server string, body CreateRouteJSONRequestBody) (*http.Request, error)
NewCreateRouteRequest calls the generic CreateRoute builder with application/json body
func NewCreateRouteRequestWithBody ¶
func NewCreateRouteRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
NewCreateRouteRequestWithBody constructs an http.Request for the CreateRoute method, with any body, and a specified content type
func NewCreateServiceAccountRequest ¶
func NewCreateServiceAccountRequest(server string, body CreateServiceAccountJSONRequestBody) (*http.Request, error)
NewCreateServiceAccountRequest calls the generic CreateServiceAccount builder with application/json body
func NewCreateServiceAccountRequestWithBody ¶
func NewCreateServiceAccountRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
NewCreateServiceAccountRequestWithBody constructs an http.Request for the CreateServiceAccount method, with any body, and a specified content type
func NewCreateServiceAccountTokenRequest ¶
func NewCreateServiceAccountTokenRequest(server string, serviceAccountId ServiceAccountId, body CreateServiceAccountTokenJSONRequestBody) (*http.Request, error)
NewCreateServiceAccountTokenRequest calls the generic CreateServiceAccountToken builder with application/json body
func NewCreateServiceAccountTokenRequestWithBody ¶
func NewCreateServiceAccountTokenRequestWithBody(server string, serviceAccountId ServiceAccountId, contentType string, body io.Reader) (*http.Request, error)
NewCreateServiceAccountTokenRequestWithBody constructs an http.Request for the CreateServiceAccountToken method, with any body, and a specified content type
func NewCreateSessionRequest ¶
func NewCreateSessionRequest(server string, body CreateSessionJSONRequestBody) (*http.Request, error)
NewCreateSessionRequest calls the generic CreateSession builder with application/json body
func NewCreateSessionRequestWithBody ¶
func NewCreateSessionRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
NewCreateSessionRequestWithBody constructs an http.Request for the CreateSession method, with any body, and a specified content type
func NewCreateUserRequest ¶
func NewCreateUserRequest(server string, body CreateUserJSONRequestBody) (*http.Request, error)
NewCreateUserRequest calls the generic CreateUser builder with application/json body
func NewCreateUserRequestWithBody ¶
func NewCreateUserRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
NewCreateUserRequestWithBody constructs an http.Request for the CreateUser method, with any body, and a specified content type
func NewDeleteConnectionRequest ¶
func NewDeleteConnectionRequest(server string, connectionId ConnectionId, params *DeleteConnectionParams) (*http.Request, error)
NewDeleteConnectionRequest constructs an http.Request for the DeleteConnection method
func NewDeleteCurrentSessionRequest ¶
NewDeleteCurrentSessionRequest constructs an http.Request for the DeleteCurrentSession method
func NewDeleteDestinationRequest ¶
func NewDeleteDestinationRequest(server string, destinationId DestinationId, params *DeleteDestinationParams) (*http.Request, error)
NewDeleteDestinationRequest constructs an http.Request for the DeleteDestination method
func NewDeleteDestinationSecretRequest ¶
func NewDeleteDestinationSecretRequest(server string, destinationId DestinationId, secretName SecretName, params *DeleteDestinationSecretParams) (*http.Request, error)
NewDeleteDestinationSecretRequest constructs an http.Request for the DeleteDestinationSecret method
func NewDeleteIntegrationRequest ¶
func NewDeleteIntegrationRequest(server string, integrationId IntegrationId, params *DeleteIntegrationParams) (*http.Request, error)
NewDeleteIntegrationRequest constructs an http.Request for the DeleteIntegration method
func NewDeleteLinkRuleRequest ¶
func NewDeleteLinkRuleRequest(server string, linkRuleId LinkRuleId, params *DeleteLinkRuleParams) (*http.Request, error)
NewDeleteLinkRuleRequest constructs an http.Request for the DeleteLinkRule method
func NewDeleteLookupTableRequest ¶
func NewDeleteLookupTableRequest(server string, lookupTableId LookupTableId, params *DeleteLookupTableParams) (*http.Request, error)
NewDeleteLookupTableRequest constructs an http.Request for the DeleteLookupTable method
func NewDeleteMyAccountLinkRequest ¶
func NewDeleteMyAccountLinkRequest(server string, accountLinkId AccountLinkId) (*http.Request, error)
NewDeleteMyAccountLinkRequest constructs an http.Request for the DeleteMyAccountLink method
func NewDeleteMySessionsRequest ¶
NewDeleteMySessionsRequest constructs an http.Request for the DeleteMySessions method
func NewDeleteRouteRequest ¶
func NewDeleteRouteRequest(server string, routeId RouteId, params *DeleteRouteParams) (*http.Request, error)
NewDeleteRouteRequest constructs an http.Request for the DeleteRoute method
func NewDeleteServiceAccountRequest ¶
func NewDeleteServiceAccountRequest(server string, serviceAccountId ServiceAccountId, params *DeleteServiceAccountParams) (*http.Request, error)
NewDeleteServiceAccountRequest constructs an http.Request for the DeleteServiceAccount method
func NewDeleteUserAccountLinkRequest ¶
func NewDeleteUserAccountLinkRequest(server string, userId UserId, accountLinkId AccountLinkId) (*http.Request, error)
NewDeleteUserAccountLinkRequest constructs an http.Request for the DeleteUserAccountLink method
func NewDeleteUserRequest ¶
func NewDeleteUserRequest(server string, userId UserId, params *DeleteUserParams) (*http.Request, error)
NewDeleteUserRequest constructs an http.Request for the DeleteUser method
func NewDeliverAlertGroupEventWebhookRequest ¶
func NewDeliverAlertGroupEventWebhookRequest(targetURL string, params *DeliverAlertGroupEventParams, body DeliverAlertGroupEventJSONRequestBody) (*http.Request, error)
NewDeliverAlertGroupEventWebhookRequest builds a application/json POST request for the alertGroupEvent webhook
func NewDeliverAlertGroupEventWebhookRequestWithBody ¶
func NewDeliverAlertGroupEventWebhookRequestWithBody(targetURL string, params *DeliverAlertGroupEventParams, contentType string, body io.Reader) (*http.Request, error)
NewDeliverAlertGroupEventWebhookRequestWithBody builds a POST request for the alertGroupEvent webhook with any body
func NewDisableServiceAccountRequest ¶
func NewDisableServiceAccountRequest(server string, serviceAccountId ServiceAccountId) (*http.Request, error)
NewDisableServiceAccountRequest constructs an http.Request for the DisableServiceAccount method
func NewDisableUserRequest ¶
NewDisableUserRequest constructs an http.Request for the DisableUser method
func NewDismissRouteSuggestionRequest ¶
func NewDismissRouteSuggestionRequest(server string, suggestionId SuggestionId) (*http.Request, error)
NewDismissRouteSuggestionRequest constructs an http.Request for the DismissRouteSuggestion method
func NewEnableServiceAccountRequest ¶
func NewEnableServiceAccountRequest(server string, serviceAccountId ServiceAccountId) (*http.Request, error)
NewEnableServiceAccountRequest constructs an http.Request for the EnableServiceAccount method
func NewEnableUserRequest ¶
NewEnableUserRequest constructs an http.Request for the EnableUser method
func NewGenerateSigningSecretRequest ¶
func NewGenerateSigningSecretRequest(server string, destinationId DestinationId) (*http.Request, error)
NewGenerateSigningSecretRequest constructs an http.Request for the GenerateSigningSecret method
func NewGetAlertGroupCountsRequest ¶
func NewGetAlertGroupCountsRequest(server string, params *GetAlertGroupCountsParams) (*http.Request, error)
NewGetAlertGroupCountsRequest constructs an http.Request for the GetAlertGroupCounts method
func NewGetAlertGroupRequest ¶
func NewGetAlertGroupRequest(server string, alertGroupId AlertGroupId) (*http.Request, error)
NewGetAlertGroupRequest constructs an http.Request for the GetAlertGroup method
func NewGetAlertGroupStatisticsRequest ¶
func NewGetAlertGroupStatisticsRequest(server string, params *GetAlertGroupStatisticsParams) (*http.Request, error)
NewGetAlertGroupStatisticsRequest constructs an http.Request for the GetAlertGroupStatistics method
func NewGetAlertGroupTimelineRequest ¶
func NewGetAlertGroupTimelineRequest(server string, alertGroupId AlertGroupId, params *GetAlertGroupTimelineParams) (*http.Request, error)
NewGetAlertGroupTimelineRequest constructs an http.Request for the GetAlertGroupTimeline method
func NewGetConnectionRequest ¶
func NewGetConnectionRequest(server string, connectionId ConnectionId) (*http.Request, error)
NewGetConnectionRequest constructs an http.Request for the GetConnection method
func NewGetCurrentSessionRequest ¶
NewGetCurrentSessionRequest constructs an http.Request for the GetCurrentSession method
func NewGetDestinationRequest ¶
func NewGetDestinationRequest(server string, destinationId DestinationId) (*http.Request, error)
NewGetDestinationRequest constructs an http.Request for the GetDestination method
func NewGetIntegrationRequest ¶
func NewGetIntegrationRequest(server string, integrationId IntegrationId) (*http.Request, error)
NewGetIntegrationRequest constructs an http.Request for the GetIntegration method
func NewGetKeyringRequest ¶
NewGetKeyringRequest constructs an http.Request for the GetKeyring method
func NewGetLinkRuleRequest ¶
func NewGetLinkRuleRequest(server string, linkRuleId LinkRuleId) (*http.Request, error)
NewGetLinkRuleRequest constructs an http.Request for the GetLinkRule method
func NewGetLookupTableRequest ¶
func NewGetLookupTableRequest(server string, lookupTableId LookupTableId) (*http.Request, error)
NewGetLookupTableRequest constructs an http.Request for the GetLookupTable method
func NewGetMeRequest ¶
NewGetMeRequest constructs an http.Request for the GetMe method
func NewGetMyTotpRequest ¶
NewGetMyTotpRequest constructs an http.Request for the GetMyTotp method
func NewGetOidcSettingsRequest ¶
NewGetOidcSettingsRequest constructs an http.Request for the GetOidcSettings method
func NewGetOpenApiSpecRequest ¶
NewGetOpenApiSpecRequest constructs an http.Request for the GetOpenApiSpec method
func NewGetOrganizationRequest ¶
NewGetOrganizationRequest constructs an http.Request for the GetOrganization method
func NewGetOutboundPolicyRequest ¶
NewGetOutboundPolicyRequest constructs an http.Request for the GetOutboundPolicy method
func NewGetRequestRecordRequest ¶
func NewGetRequestRecordRequest(server string, requestRecordId RequestRecordId) (*http.Request, error)
NewGetRequestRecordRequest constructs an http.Request for the GetRequestRecord method
func NewGetRouteRequest ¶
NewGetRouteRequest constructs an http.Request for the GetRoute method
func NewGetServiceAccountRequest ¶
func NewGetServiceAccountRequest(server string, serviceAccountId ServiceAccountId) (*http.Request, error)
NewGetServiceAccountRequest constructs an http.Request for the GetServiceAccount method
func NewGetSignInOptionsRequest ¶
NewGetSignInOptionsRequest constructs an http.Request for the GetSignInOptions method
func NewGetSigningSecretRequest ¶
func NewGetSigningSecretRequest(server string, destinationId DestinationId) (*http.Request, error)
NewGetSigningSecretRequest constructs an http.Request for the GetSigningSecret method
func NewGetStoredSnapshotRequest ¶
func NewGetStoredSnapshotRequest(server string, storedSnapshotId StoredSnapshotId) (*http.Request, error)
NewGetStoredSnapshotRequest constructs an http.Request for the GetStoredSnapshot method
func NewGetSystemStatusRequest ¶
NewGetSystemStatusRequest constructs an http.Request for the GetSystemStatus method
func NewGetUserRequest ¶
NewGetUserRequest constructs an http.Request for the GetUser method
func NewHeartbeatGetRequest ¶
NewHeartbeatGetRequest constructs an http.Request for the HeartbeatGet method
func NewHeartbeatGetWithPathTokenRequest ¶
func NewHeartbeatGetWithPathTokenRequest(server string, ingestToken IngestTokenInPath) (*http.Request, error)
NewHeartbeatGetWithPathTokenRequest constructs an http.Request for the HeartbeatGetWithPathToken method
func NewHeartbeatPostRequest ¶
NewHeartbeatPostRequest constructs an http.Request for the HeartbeatPost method
func NewHeartbeatPostWithPathTokenRequest ¶
func NewHeartbeatPostWithPathTokenRequest(server string, ingestToken IngestTokenInPath) (*http.Request, error)
NewHeartbeatPostWithPathTokenRequest constructs an http.Request for the HeartbeatPostWithPathToken method
func NewIngestSnapshotRequestWithBody ¶
func NewIngestSnapshotRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
NewIngestSnapshotRequestWithBody constructs an http.Request for the IngestSnapshot method, with any body, and a specified content type
func NewIngestSnapshotWithPathTokenRequestWithBody ¶
func NewIngestSnapshotWithPathTokenRequestWithBody(server string, ingestToken IngestTokenInPath, contentType string, body io.Reader) (*http.Request, error)
NewIngestSnapshotWithPathTokenRequestWithBody constructs an http.Request for the IngestSnapshotWithPathToken method, with any body, and a specified content type
func NewListAlertGroupAlertsRequest ¶
func NewListAlertGroupAlertsRequest(server string, alertGroupId AlertGroupId, params *ListAlertGroupAlertsParams) (*http.Request, error)
NewListAlertGroupAlertsRequest constructs an http.Request for the ListAlertGroupAlerts method
func NewListAlertGroupDeliveriesRequest ¶
func NewListAlertGroupDeliveriesRequest(server string, alertGroupId AlertGroupId) (*http.Request, error)
NewListAlertGroupDeliveriesRequest constructs an http.Request for the ListAlertGroupDeliveries method
func NewListAlertGroupNotesRequest ¶
func NewListAlertGroupNotesRequest(server string, alertGroupId AlertGroupId, params *ListAlertGroupNotesParams) (*http.Request, error)
NewListAlertGroupNotesRequest constructs an http.Request for the ListAlertGroupNotes method
func NewListAlertGroupsRequest ¶
func NewListAlertGroupsRequest(server string, params *ListAlertGroupsParams) (*http.Request, error)
NewListAlertGroupsRequest constructs an http.Request for the ListAlertGroups method
func NewListAlertmanagerRoutesRequest ¶
func NewListAlertmanagerRoutesRequest(server string, integrationId IntegrationId) (*http.Request, error)
NewListAlertmanagerRoutesRequest constructs an http.Request for the ListAlertmanagerRoutes method
func NewListAuditLogRequest ¶
func NewListAuditLogRequest(server string, params *ListAuditLogParams) (*http.Request, error)
NewListAuditLogRequest constructs an http.Request for the ListAuditLog method
func NewListConnectionChannelsRequest ¶
func NewListConnectionChannelsRequest(server string, connectionId ConnectionId, params *ListConnectionChannelsParams) (*http.Request, error)
NewListConnectionChannelsRequest constructs an http.Request for the ListConnectionChannels method
func NewListConnectionsRequest ¶
func NewListConnectionsRequest(server string, params *ListConnectionsParams) (*http.Request, error)
NewListConnectionsRequest constructs an http.Request for the ListConnections method
func NewListDestinationSecretsRequest ¶
func NewListDestinationSecretsRequest(server string, destinationId DestinationId) (*http.Request, error)
NewListDestinationSecretsRequest constructs an http.Request for the ListDestinationSecrets method
func NewListDestinationsRequest ¶
func NewListDestinationsRequest(server string, params *ListDestinationsParams) (*http.Request, error)
NewListDestinationsRequest constructs an http.Request for the ListDestinations method
func NewListIntegrationAlertsRequest ¶
func NewListIntegrationAlertsRequest(server string, integrationId IntegrationId, params *ListIntegrationAlertsParams) (*http.Request, error)
NewListIntegrationAlertsRequest constructs an http.Request for the ListIntegrationAlerts method
func NewListIntegrationTokensRequest ¶
func NewListIntegrationTokensRequest(server string, integrationId IntegrationId) (*http.Request, error)
NewListIntegrationTokensRequest constructs an http.Request for the ListIntegrationTokens method
func NewListIntegrationsRequest ¶
func NewListIntegrationsRequest(server string, params *ListIntegrationsParams) (*http.Request, error)
NewListIntegrationsRequest constructs an http.Request for the ListIntegrations method
func NewListLinkRulesRequest ¶
func NewListLinkRulesRequest(server string, params *ListLinkRulesParams) (*http.Request, error)
NewListLinkRulesRequest constructs an http.Request for the ListLinkRules method
func NewListLinkableConnectionsRequest ¶
NewListLinkableConnectionsRequest constructs an http.Request for the ListLinkableConnections method
func NewListLookupTablesRequest ¶
func NewListLookupTablesRequest(server string, params *ListLookupTablesParams) (*http.Request, error)
NewListLookupTablesRequest constructs an http.Request for the ListLookupTables method
func NewListMyAccountLinksRequest ¶
NewListMyAccountLinksRequest constructs an http.Request for the ListMyAccountLinks method
func NewListMySessionsRequest ¶
NewListMySessionsRequest constructs an http.Request for the ListMySessions method
func NewListPersonalAccessTokensRequest ¶
NewListPersonalAccessTokensRequest constructs an http.Request for the ListPersonalAccessTokens method
func NewListRelatedAlertGroupsRequest ¶
func NewListRelatedAlertGroupsRequest(server string, alertGroupId AlertGroupId, params *ListRelatedAlertGroupsParams) (*http.Request, error)
NewListRelatedAlertGroupsRequest constructs an http.Request for the ListRelatedAlertGroups method
func NewListRequestLogRequest ¶
func NewListRequestLogRequest(server string, params *ListRequestLogParams) (*http.Request, error)
NewListRequestLogRequest constructs an http.Request for the ListRequestLog method
func NewListRolesRequest ¶
NewListRolesRequest constructs an http.Request for the ListRoles method
func NewListRouteProfilesRequest ¶
NewListRouteProfilesRequest constructs an http.Request for the ListRouteProfiles method
func NewListRouteSuggestionsRequest ¶
NewListRouteSuggestionsRequest constructs an http.Request for the ListRouteSuggestions method
func NewListRoutesRequest ¶
NewListRoutesRequest constructs an http.Request for the ListRoutes method
func NewListServiceAccountTokensRequest ¶
func NewListServiceAccountTokensRequest(server string, serviceAccountId ServiceAccountId) (*http.Request, error)
NewListServiceAccountTokensRequest constructs an http.Request for the ListServiceAccountTokens method
func NewListServiceAccountsRequest ¶
func NewListServiceAccountsRequest(server string, params *ListServiceAccountsParams) (*http.Request, error)
NewListServiceAccountsRequest constructs an http.Request for the ListServiceAccounts method
func NewListSeverityValuesRequest ¶
NewListSeverityValuesRequest constructs an http.Request for the ListSeverityValues method
func NewListSnoozePresetsRequest ¶
func NewListSnoozePresetsRequest(server string, params *ListSnoozePresetsParams) (*http.Request, error)
NewListSnoozePresetsRequest constructs an http.Request for the ListSnoozePresets method
func NewListStoredSnapshotsRequest ¶
func NewListStoredSnapshotsRequest(server string, params *ListStoredSnapshotsParams) (*http.Request, error)
NewListStoredSnapshotsRequest constructs an http.Request for the ListStoredSnapshots method
func NewListSystemNoticesRequest ¶
NewListSystemNoticesRequest constructs an http.Request for the ListSystemNotices method
func NewListUserAccountLinksRequest ¶
NewListUserAccountLinksRequest constructs an http.Request for the ListUserAccountLinks method
func NewListUserDirectoryRequest ¶
func NewListUserDirectoryRequest(server string, params *ListUserDirectoryParams) (*http.Request, error)
NewListUserDirectoryRequest constructs an http.Request for the ListUserDirectory method
func NewListUsersRequest ¶
func NewListUsersRequest(server string, params *ListUsersParams) (*http.Request, error)
NewListUsersRequest constructs an http.Request for the ListUsers method
func NewMattermostActionRequest ¶
func NewMattermostActionRequest(server string, connectionId ConnectionId, body MattermostActionJSONRequestBody) (*http.Request, error)
NewMattermostActionRequest calls the generic MattermostAction builder with application/json body
func NewMattermostActionRequestWithBody ¶
func NewMattermostActionRequestWithBody(server string, connectionId ConnectionId, contentType string, body io.Reader) (*http.Request, error)
NewMattermostActionRequestWithBody constructs an http.Request for the MattermostAction method, with any body, and a specified content type
func NewMoveOpenAlertGroupsRequest ¶
NewMoveOpenAlertGroupsRequest constructs an http.Request for the MoveOpenAlertGroups method
func NewPreviewDestinationRequest ¶
func NewPreviewDestinationRequest(server string, destinationId DestinationId, body PreviewDestinationJSONRequestBody) (*http.Request, error)
NewPreviewDestinationRequest calls the generic PreviewDestination builder with application/json body
func NewPreviewDestinationRequestWithBody ¶
func NewPreviewDestinationRequestWithBody(server string, destinationId DestinationId, contentType string, body io.Reader) (*http.Request, error)
NewPreviewDestinationRequestWithBody constructs an http.Request for the PreviewDestination method, with any body, and a specified content type
func NewPreviewGroupKeyRequest ¶
func NewPreviewGroupKeyRequest(server string, body PreviewGroupKeyJSONRequestBody) (*http.Request, error)
NewPreviewGroupKeyRequest calls the generic PreviewGroupKey builder with application/json body
func NewPreviewGroupKeyRequestWithBody ¶
func NewPreviewGroupKeyRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
NewPreviewGroupKeyRequestWithBody constructs an http.Request for the PreviewGroupKey method, with any body, and a specified content type
func NewPreviewTemplateRequest ¶
func NewPreviewTemplateRequest(server string, body PreviewTemplateJSONRequestBody) (*http.Request, error)
NewPreviewTemplateRequest calls the generic PreviewTemplate builder with application/json body
func NewPreviewTemplateRequestWithBody ¶
func NewPreviewTemplateRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
NewPreviewTemplateRequestWithBody constructs an http.Request for the PreviewTemplate method, with any body, and a specified content type
func NewRegenerateTotpRecoveryCodesRequest ¶
func NewRegenerateTotpRecoveryCodesRequest(server string, body RegenerateTotpRecoveryCodesJSONRequestBody) (*http.Request, error)
NewRegenerateTotpRecoveryCodesRequest calls the generic RegenerateTotpRecoveryCodes builder with application/json body
func NewRegenerateTotpRecoveryCodesRequestWithBody ¶
func NewRegenerateTotpRecoveryCodesRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
NewRegenerateTotpRecoveryCodesRequestWithBody constructs an http.Request for the RegenerateTotpRecoveryCodes method, with any body, and a specified content type
func NewRemoveTotpRequest ¶
func NewRemoveTotpRequest(server string, body RemoveTotpJSONRequestBody) (*http.Request, error)
NewRemoveTotpRequest calls the generic RemoveTotp builder with application/json body
func NewRemoveTotpRequestWithBody ¶
func NewRemoveTotpRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
NewRemoveTotpRequestWithBody constructs an http.Request for the RemoveTotp method, with any body, and a specified content type
func NewReorderRoutesRequest ¶
func NewReorderRoutesRequest(server string, params *ReorderRoutesParams, body ReorderRoutesJSONRequestBody) (*http.Request, error)
NewReorderRoutesRequest calls the generic ReorderRoutes builder with application/json body
func NewReorderRoutesRequestWithBody ¶
func NewReorderRoutesRequestWithBody(server string, params *ReorderRoutesParams, contentType string, body io.Reader) (*http.Request, error)
NewReorderRoutesRequestWithBody constructs an http.Request for the ReorderRoutes method, with any body, and a specified content type
func NewResetUserTotpRequest ¶
NewResetUserTotpRequest constructs an http.Request for the ResetUserTotp method
func NewResolveAlertGroupRequest ¶
func NewResolveAlertGroupRequest(server string, alertGroupId AlertGroupId, body ResolveAlertGroupJSONRequestBody) (*http.Request, error)
NewResolveAlertGroupRequest calls the generic ResolveAlertGroup builder with application/json body
func NewResolveAlertGroupRequestWithBody ¶
func NewResolveAlertGroupRequestWithBody(server string, alertGroupId AlertGroupId, contentType string, body io.Reader) (*http.Request, error)
NewResolveAlertGroupRequestWithBody constructs an http.Request for the ResolveAlertGroup method, with any body, and a specified content type
func NewRetirePreviousSigningSecretRequest ¶
func NewRetirePreviousSigningSecretRequest(server string, destinationId DestinationId) (*http.Request, error)
NewRetirePreviousSigningSecretRequest constructs an http.Request for the RetirePreviousSigningSecret method
func NewRevokeIntegrationTokenRequest ¶
func NewRevokeIntegrationTokenRequest(server string, integrationId IntegrationId, integrationTokenId IntegrationTokenId) (*http.Request, error)
NewRevokeIntegrationTokenRequest constructs an http.Request for the RevokeIntegrationToken method
func NewRevokePersonalAccessTokenRequest ¶
NewRevokePersonalAccessTokenRequest constructs an http.Request for the RevokePersonalAccessToken method
func NewRevokeServiceAccountTokenRequest ¶
func NewRevokeServiceAccountTokenRequest(server string, serviceAccountId ServiceAccountId, tokenId TokenId) (*http.Request, error)
NewRevokeServiceAccountTokenRequest constructs an http.Request for the RevokeServiceAccountToken method
func NewRunBulkCommandRequest ¶
func NewRunBulkCommandRequest(server string, body RunBulkCommandJSONRequestBody) (*http.Request, error)
NewRunBulkCommandRequest calls the generic RunBulkCommand builder with application/json body
func NewRunBulkCommandRequestWithBody ¶
func NewRunBulkCommandRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
NewRunBulkCommandRequestWithBody constructs an http.Request for the RunBulkCommand method, with any body, and a specified content type
func NewSetDestinationSecretRequest ¶
func NewSetDestinationSecretRequest(server string, destinationId DestinationId, secretName SecretName, params *SetDestinationSecretParams, body SetDestinationSecretJSONRequestBody) (*http.Request, error)
NewSetDestinationSecretRequest calls the generic SetDestinationSecret builder with application/json body
func NewSetDestinationSecretRequestWithBody ¶
func NewSetDestinationSecretRequestWithBody(server string, destinationId DestinationId, secretName SecretName, params *SetDestinationSecretParams, contentType string, body io.Reader) (*http.Request, error)
NewSetDestinationSecretRequestWithBody constructs an http.Request for the SetDestinationSecret method, with any body, and a specified content type
func NewSlackInteractionRequestWithBody ¶
func NewSlackInteractionRequestWithBody(server string, connectionId ConnectionId, params *SlackInteractionParams, contentType string, body io.Reader) (*http.Request, error)
NewSlackInteractionRequestWithBody constructs an http.Request for the SlackInteraction method, with any body, and a specified content type
func NewSlackInteractionRequestWithFormdataBody ¶
func NewSlackInteractionRequestWithFormdataBody(server string, connectionId ConnectionId, params *SlackInteractionParams, body SlackInteractionFormdataRequestBody) (*http.Request, error)
NewSlackInteractionRequestWithFormdataBody calls the generic SlackInteraction builder with application/x-www-form-urlencoded body
func NewSnoozeAlertGroupRequest ¶
func NewSnoozeAlertGroupRequest(server string, alertGroupId AlertGroupId, body SnoozeAlertGroupJSONRequestBody) (*http.Request, error)
NewSnoozeAlertGroupRequest calls the generic SnoozeAlertGroup builder with application/json body
func NewSnoozeAlertGroupRequestWithBody ¶
func NewSnoozeAlertGroupRequestWithBody(server string, alertGroupId AlertGroupId, contentType string, body io.Reader) (*http.Request, error)
NewSnoozeAlertGroupRequestWithBody constructs an http.Request for the SnoozeAlertGroup method, with any body, and a specified content type
func NewStartBridgeCodeLinkRequest ¶
func NewStartBridgeCodeLinkRequest(server string, body StartBridgeCodeLinkJSONRequestBody) (*http.Request, error)
NewStartBridgeCodeLinkRequest calls the generic StartBridgeCodeLink builder with application/json body
func NewStartBridgeCodeLinkRequestWithBody ¶
func NewStartBridgeCodeLinkRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
NewStartBridgeCodeLinkRequestWithBody constructs an http.Request for the StartBridgeCodeLink method, with any body, and a specified content type
func NewStartBridgeLinkRequest ¶
func NewStartBridgeLinkRequest(server string, body StartBridgeLinkJSONRequestBody) (*http.Request, error)
NewStartBridgeLinkRequest calls the generic StartBridgeLink builder with application/json body
func NewStartBridgeLinkRequestWithBody ¶
func NewStartBridgeLinkRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
NewStartBridgeLinkRequestWithBody constructs an http.Request for the StartBridgeLink method, with any body, and a specified content type
func NewStartMattermostLinkRequest ¶
func NewStartMattermostLinkRequest(server string, body StartMattermostLinkJSONRequestBody) (*http.Request, error)
NewStartMattermostLinkRequest calls the generic StartMattermostLink builder with application/json body
func NewStartMattermostLinkRequestWithBody ¶
func NewStartMattermostLinkRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
NewStartMattermostLinkRequestWithBody constructs an http.Request for the StartMattermostLink method, with any body, and a specified content type
func NewStartOidcLinkRequest ¶
NewStartOidcLinkRequest constructs an http.Request for the StartOidcLink method
func NewStartOidcSignInRequest ¶
func NewStartOidcSignInRequest(server string, params *StartOidcSignInParams) (*http.Request, error)
NewStartOidcSignInRequest constructs an http.Request for the StartOidcSignIn method
func NewStartSlackLinkRequest ¶
func NewStartSlackLinkRequest(server string, body StartSlackLinkJSONRequestBody) (*http.Request, error)
NewStartSlackLinkRequest calls the generic StartSlackLink builder with application/json body
func NewStartSlackLinkRequestWithBody ¶
func NewStartSlackLinkRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
NewStartSlackLinkRequestWithBody constructs an http.Request for the StartSlackLink method, with any body, and a specified content type
func NewStartTelegramLinkRequest ¶
func NewStartTelegramLinkRequest(server string, body StartTelegramLinkJSONRequestBody) (*http.Request, error)
NewStartTelegramLinkRequest calls the generic StartTelegramLink builder with application/json body
func NewStartTelegramLinkRequestWithBody ¶
func NewStartTelegramLinkRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
NewStartTelegramLinkRequestWithBody constructs an http.Request for the StartTelegramLink method, with any body, and a specified content type
func NewStreamLiveUpdatesRequest ¶
NewStreamLiveUpdatesRequest constructs an http.Request for the StreamLiveUpdates method
func NewSubmitSessionTotpRequest ¶
func NewSubmitSessionTotpRequest(server string, body SubmitSessionTotpJSONRequestBody) (*http.Request, error)
NewSubmitSessionTotpRequest calls the generic SubmitSessionTotp builder with application/json body
func NewSubmitSessionTotpRequestWithBody ¶
func NewSubmitSessionTotpRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
NewSubmitSessionTotpRequestWithBody constructs an http.Request for the SubmitSessionTotp method, with any body, and a specified content type
func NewTelegramWebhookRequest ¶
func NewTelegramWebhookRequest(server string, connectionId ConnectionId, body TelegramWebhookJSONRequestBody) (*http.Request, error)
NewTelegramWebhookRequest calls the generic TelegramWebhook builder with application/json body
func NewTelegramWebhookRequestWithBody ¶
func NewTelegramWebhookRequestWithBody(server string, connectionId ConnectionId, contentType string, body io.Reader) (*http.Request, error)
NewTelegramWebhookRequestWithBody constructs an http.Request for the TelegramWebhook method, with any body, and a specified content type
func NewTestDestinationRequest ¶
func NewTestDestinationRequest(server string, destinationId DestinationId, body TestDestinationJSONRequestBody) (*http.Request, error)
NewTestDestinationRequest calls the generic TestDestination builder with application/json body
func NewTestDestinationRequestWithBody ¶
func NewTestDestinationRequestWithBody(server string, destinationId DestinationId, contentType string, body io.Reader) (*http.Request, error)
NewTestDestinationRequestWithBody constructs an http.Request for the TestDestination method, with any body, and a specified content type
func NewUnacknowledgeAlertGroupRequest ¶
func NewUnacknowledgeAlertGroupRequest(server string, alertGroupId AlertGroupId) (*http.Request, error)
NewUnacknowledgeAlertGroupRequest constructs an http.Request for the UnacknowledgeAlertGroup method
func NewUnresolveAlertGroupRequest ¶
func NewUnresolveAlertGroupRequest(server string, alertGroupId AlertGroupId) (*http.Request, error)
NewUnresolveAlertGroupRequest constructs an http.Request for the UnresolveAlertGroup method
func NewUnsnoozeAlertGroupRequest ¶
func NewUnsnoozeAlertGroupRequest(server string, alertGroupId AlertGroupId) (*http.Request, error)
NewUnsnoozeAlertGroupRequest constructs an http.Request for the UnsnoozeAlertGroup method
func NewUpdateConnectionRequest ¶
func NewUpdateConnectionRequest(server string, connectionId ConnectionId, params *UpdateConnectionParams, body UpdateConnectionJSONRequestBody) (*http.Request, error)
NewUpdateConnectionRequest calls the generic UpdateConnection builder with application/json body
func NewUpdateConnectionRequestWithBody ¶
func NewUpdateConnectionRequestWithBody(server string, connectionId ConnectionId, params *UpdateConnectionParams, contentType string, body io.Reader) (*http.Request, error)
NewUpdateConnectionRequestWithBody constructs an http.Request for the UpdateConnection method, with any body, and a specified content type
func NewUpdateDestinationRequest ¶
func NewUpdateDestinationRequest(server string, destinationId DestinationId, params *UpdateDestinationParams, body UpdateDestinationJSONRequestBody) (*http.Request, error)
NewUpdateDestinationRequest calls the generic UpdateDestination builder with application/json body
func NewUpdateDestinationRequestWithBody ¶
func NewUpdateDestinationRequestWithBody(server string, destinationId DestinationId, params *UpdateDestinationParams, contentType string, body io.Reader) (*http.Request, error)
NewUpdateDestinationRequestWithBody constructs an http.Request for the UpdateDestination method, with any body, and a specified content type
func NewUpdateIntegrationRequest ¶
func NewUpdateIntegrationRequest(server string, integrationId IntegrationId, params *UpdateIntegrationParams, body UpdateIntegrationJSONRequestBody) (*http.Request, error)
NewUpdateIntegrationRequest calls the generic UpdateIntegration builder with application/json body
func NewUpdateIntegrationRequestWithBody ¶
func NewUpdateIntegrationRequestWithBody(server string, integrationId IntegrationId, params *UpdateIntegrationParams, contentType string, body io.Reader) (*http.Request, error)
NewUpdateIntegrationRequestWithBody constructs an http.Request for the UpdateIntegration method, with any body, and a specified content type
func NewUpdateLinkRuleRequest ¶
func NewUpdateLinkRuleRequest(server string, linkRuleId LinkRuleId, params *UpdateLinkRuleParams, body UpdateLinkRuleJSONRequestBody) (*http.Request, error)
NewUpdateLinkRuleRequest calls the generic UpdateLinkRule builder with application/json body
func NewUpdateLinkRuleRequestWithBody ¶
func NewUpdateLinkRuleRequestWithBody(server string, linkRuleId LinkRuleId, params *UpdateLinkRuleParams, contentType string, body io.Reader) (*http.Request, error)
NewUpdateLinkRuleRequestWithBody constructs an http.Request for the UpdateLinkRule method, with any body, and a specified content type
func NewUpdateLookupTableRequest ¶
func NewUpdateLookupTableRequest(server string, lookupTableId LookupTableId, params *UpdateLookupTableParams, body UpdateLookupTableJSONRequestBody) (*http.Request, error)
NewUpdateLookupTableRequest calls the generic UpdateLookupTable builder with application/json body
func NewUpdateLookupTableRequestWithBody ¶
func NewUpdateLookupTableRequestWithBody(server string, lookupTableId LookupTableId, params *UpdateLookupTableParams, contentType string, body io.Reader) (*http.Request, error)
NewUpdateLookupTableRequestWithBody constructs an http.Request for the UpdateLookupTable method, with any body, and a specified content type
func NewUpdateMeRequest ¶
func NewUpdateMeRequest(server string, body UpdateMeJSONRequestBody) (*http.Request, error)
NewUpdateMeRequest calls the generic UpdateMe builder with application/json body
func NewUpdateMeRequestWithBody ¶
func NewUpdateMeRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
NewUpdateMeRequestWithBody constructs an http.Request for the UpdateMe method, with any body, and a specified content type
func NewUpdateOidcSettingsRequest ¶
func NewUpdateOidcSettingsRequest(server string, params *UpdateOidcSettingsParams, body UpdateOidcSettingsJSONRequestBody) (*http.Request, error)
NewUpdateOidcSettingsRequest calls the generic UpdateOidcSettings builder with application/json body
func NewUpdateOidcSettingsRequestWithBody ¶
func NewUpdateOidcSettingsRequestWithBody(server string, params *UpdateOidcSettingsParams, contentType string, body io.Reader) (*http.Request, error)
NewUpdateOidcSettingsRequestWithBody constructs an http.Request for the UpdateOidcSettings method, with any body, and a specified content type
func NewUpdateOrganizationRequest ¶
func NewUpdateOrganizationRequest(server string, params *UpdateOrganizationParams, body UpdateOrganizationJSONRequestBody) (*http.Request, error)
NewUpdateOrganizationRequest calls the generic UpdateOrganization builder with application/json body
func NewUpdateOrganizationRequestWithBody ¶
func NewUpdateOrganizationRequestWithBody(server string, params *UpdateOrganizationParams, contentType string, body io.Reader) (*http.Request, error)
NewUpdateOrganizationRequestWithBody constructs an http.Request for the UpdateOrganization method, with any body, and a specified content type
func NewUpdateOutboundPolicyRequest ¶
func NewUpdateOutboundPolicyRequest(server string, params *UpdateOutboundPolicyParams, body UpdateOutboundPolicyJSONRequestBody) (*http.Request, error)
NewUpdateOutboundPolicyRequest calls the generic UpdateOutboundPolicy builder with application/json body
func NewUpdateOutboundPolicyRequestWithBody ¶
func NewUpdateOutboundPolicyRequestWithBody(server string, params *UpdateOutboundPolicyParams, contentType string, body io.Reader) (*http.Request, error)
NewUpdateOutboundPolicyRequestWithBody constructs an http.Request for the UpdateOutboundPolicy method, with any body, and a specified content type
func NewUpdateRouteRequest ¶
func NewUpdateRouteRequest(server string, routeId RouteId, params *UpdateRouteParams, body UpdateRouteJSONRequestBody) (*http.Request, error)
NewUpdateRouteRequest calls the generic UpdateRoute builder with application/json body
func NewUpdateRouteRequestWithBody ¶
func NewUpdateRouteRequestWithBody(server string, routeId RouteId, params *UpdateRouteParams, contentType string, body io.Reader) (*http.Request, error)
NewUpdateRouteRequestWithBody constructs an http.Request for the UpdateRoute method, with any body, and a specified content type
func NewUpdateServiceAccountRequest ¶
func NewUpdateServiceAccountRequest(server string, serviceAccountId ServiceAccountId, params *UpdateServiceAccountParams, body UpdateServiceAccountJSONRequestBody) (*http.Request, error)
NewUpdateServiceAccountRequest calls the generic UpdateServiceAccount builder with application/json body
func NewUpdateServiceAccountRequestWithBody ¶
func NewUpdateServiceAccountRequestWithBody(server string, serviceAccountId ServiceAccountId, params *UpdateServiceAccountParams, contentType string, body io.Reader) (*http.Request, error)
NewUpdateServiceAccountRequestWithBody constructs an http.Request for the UpdateServiceAccount method, with any body, and a specified content type
func NewUpdateUserRequest ¶
func NewUpdateUserRequest(server string, userId UserId, params *UpdateUserParams, body UpdateUserJSONRequestBody) (*http.Request, error)
NewUpdateUserRequest calls the generic UpdateUser builder with application/json body
func NewUpdateUserRequestWithBody ¶
func NewUpdateUserRequestWithBody(server string, userId UserId, params *UpdateUserParams, contentType string, body io.Reader) (*http.Request, error)
NewUpdateUserRequestWithBody constructs an http.Request for the UpdateUser method, with any body, and a specified content type
Types ¶
type AcceptRouteSuggestionJSONRequestBody ¶
type AcceptRouteSuggestionJSONRequestBody = RouteSuggestionAcceptance
AcceptRouteSuggestionJSONRequestBody defines body for AcceptRouteSuggestion for application/json ContentType.
type AcceptRouteSuggestionResponse ¶
type AcceptRouteSuggestionResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON201 the response for an HTTP 201 `application/json` response
JSON201 *Route
// ApplicationproblemJSON400 the response for an HTTP 400 `application/problem+json` response
ApplicationproblemJSON400 *BadRequest
// ApplicationproblemJSON401 the response for an HTTP 401 `application/problem+json` response
ApplicationproblemJSON401 *Unauthorized
// ApplicationproblemJSON403 the response for an HTTP 403 `application/problem+json` response
ApplicationproblemJSON403 *Forbidden
// ApplicationproblemJSON404 the response for an HTTP 404 `application/problem+json` response
ApplicationproblemJSON404 *NotFound
// ApplicationproblemJSON409 the response for an HTTP 409 `application/problem+json` response
ApplicationproblemJSON409 *Conflict
// ApplicationproblemJSON422 the response for an HTTP 422 `application/problem+json` response
ApplicationproblemJSON422 *Unprocessable
// ApplicationproblemJSON429 the response for an HTTP 429 `application/problem+json` response
ApplicationproblemJSON429 *TooManyRequests
// Headers201 the parsed response headers for an HTTP 201 response
Headers201 *AcceptRouteSuggestionResponse201Headers
// Headers429 the parsed response headers for an HTTP 429 response
Headers429 *AcceptRouteSuggestionResponse429Headers
}
func ParseAcceptRouteSuggestionResponse ¶
func ParseAcceptRouteSuggestionResponse(rsp *http.Response) (*AcceptRouteSuggestionResponse, error)
ParseAcceptRouteSuggestionResponse parses an HTTP response from a AcceptRouteSuggestionWithResponse call
func (AcceptRouteSuggestionResponse) ContentType ¶
func (r AcceptRouteSuggestionResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (AcceptRouteSuggestionResponse) GetApplicationproblemJSON400 ¶
func (r AcceptRouteSuggestionResponse) GetApplicationproblemJSON400() *BadRequest
GetApplicationproblemJSON400 returns the response for an HTTP 400 `application/problem+json` response
func (AcceptRouteSuggestionResponse) GetApplicationproblemJSON401 ¶
func (r AcceptRouteSuggestionResponse) GetApplicationproblemJSON401() *Unauthorized
GetApplicationproblemJSON401 returns the response for an HTTP 401 `application/problem+json` response
func (AcceptRouteSuggestionResponse) GetApplicationproblemJSON403 ¶
func (r AcceptRouteSuggestionResponse) GetApplicationproblemJSON403() *Forbidden
GetApplicationproblemJSON403 returns the response for an HTTP 403 `application/problem+json` response
func (AcceptRouteSuggestionResponse) GetApplicationproblemJSON404 ¶
func (r AcceptRouteSuggestionResponse) GetApplicationproblemJSON404() *NotFound
GetApplicationproblemJSON404 returns the response for an HTTP 404 `application/problem+json` response
func (AcceptRouteSuggestionResponse) GetApplicationproblemJSON409 ¶
func (r AcceptRouteSuggestionResponse) GetApplicationproblemJSON409() *Conflict
GetApplicationproblemJSON409 returns the response for an HTTP 409 `application/problem+json` response
func (AcceptRouteSuggestionResponse) GetApplicationproblemJSON422 ¶
func (r AcceptRouteSuggestionResponse) GetApplicationproblemJSON422() *Unprocessable
GetApplicationproblemJSON422 returns the response for an HTTP 422 `application/problem+json` response
func (AcceptRouteSuggestionResponse) GetApplicationproblemJSON429 ¶
func (r AcceptRouteSuggestionResponse) GetApplicationproblemJSON429() *TooManyRequests
GetApplicationproblemJSON429 returns the response for an HTTP 429 `application/problem+json` response
func (AcceptRouteSuggestionResponse) GetBody ¶
func (r AcceptRouteSuggestionResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (AcceptRouteSuggestionResponse) GetJSON201 ¶
func (r AcceptRouteSuggestionResponse) GetJSON201() *Route
GetJSON201 returns the response for an HTTP 201 `application/json` response
func (AcceptRouteSuggestionResponse) Status ¶
func (r AcceptRouteSuggestionResponse) Status() string
Status returns HTTPResponse.Status
func (AcceptRouteSuggestionResponse) StatusCode ¶
func (r AcceptRouteSuggestionResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type AcceptRouteSuggestionResponse201Headers ¶
AcceptRouteSuggestionResponse201Headers the declared response headers of an HTTP 201 response for AcceptRouteSuggestion
type AcceptRouteSuggestionResponse429Headers ¶
type AcceptRouteSuggestionResponse429Headers struct {
RetryAfter *int
}
AcceptRouteSuggestionResponse429Headers the declared response headers of an HTTP 429 response for AcceptRouteSuggestion
type AccountLink ¶
type AccountLink struct {
// Connection The Connection the link was made through; Mattermost, Bridge and Slack links belong to it.
Connection *EntityRef `json:"connection,omitempty"`
CreatedAt time.Time `json:"created_at"`
// DisplayName Set on Bridge and Slack links; the account's name as the bridge reported it, or a Slack account's `profile.display_name`, else `profile.real_name`, which Mentions and footers show.
DisplayName *string `json:"display_name,omitempty"`
ExternalId string `json:"external_id"`
// Id Opaque public identifier (`public_id`): a type prefix of one or two letters followed by 12 random characters of Crockford base32 (`0`–`9` and `A`–`Z` without `I`, `L`, `O` and `U`; 60 bits), such as `AGK7M3QX9P2RTA` for an Alert Group. Prefixes use the same letters and differ per type: `AG` Alert Group, `AE` Audit log entry, `AK` Account link, `AR` Account link request, `CN` Connection, `CR` check run, `DE` delivery event, `DS` Destination, `KR` Link rule, `NE` Note, `NK` Integration token, `NT` Integration, `PT` Personal access token, `RG` Organization, `RQ` record of the Request log, `RT` Route, `SA` Service account, `SN` session, `SR` User, `SS` Stored Snapshot, `ST` Service account token, `TB` Lookup table, `TE` Timeline entry. Responses always carry the canonical upper-case form. Input is case-insensitive and normalized before lookup — `O` reads as `0`, `I` and `L` as `1` — so the pattern also admits lower case and those letters. People refer to Alert Groups by `#N`, never by `public_id`.
Id PublicId `json:"id"`
LastUsedAt nullable.Nullable[time.Time] `json:"last_used_at,omitempty"`
Messenger Messenger `json:"messenger"`
// Username The account's username; for a Bridge link, the handle the bridge reported; for a Slack link, the account's `name`.
Username nullable.Nullable[string] `json:"username,omitempty"`
}
AccountLink defines model for AccountLink.
type AccountLinkId ¶
type AccountLinkId = PublicId
AccountLinkId Opaque public identifier (`public_id`): a type prefix of one or two letters followed by 12 random characters of Crockford base32 (`0`–`9` and `A`–`Z` without `I`, `L`, `O` and `U`; 60 bits), such as `AGK7M3QX9P2RTA` for an Alert Group. Prefixes use the same letters and differ per type: `AG` Alert Group, `AE` Audit log entry, `AK` Account link, `AR` Account link request, `CN` Connection, `CR` check run, `DE` delivery event, `DS` Destination, `KR` Link rule, `NE` Note, `NK` Integration token, `NT` Integration, `PT` Personal access token, `RG` Organization, `RQ` record of the Request log, `RT` Route, `SA` Service account, `SN` session, `SR` User, `SS` Stored Snapshot, `ST` Service account token, `TB` Lookup table, `TE` Timeline entry. Responses always carry the canonical upper-case form. Input is case-insensitive and normalized before lookup — `O` reads as `0`, `I` and `L` as `1` — so the pattern also admits lower case and those letters. People refer to Alert Groups by `#N`, never by `public_id`.
type AccountLinkList ¶
type AccountLinkList struct {
Items []AccountLink `json:"items"`
}
AccountLinkList defines model for AccountLinkList.
type AckTimeoutPolicy ¶
type AckTimeoutPolicy struct {
Enabled bool `json:"enabled"`
// FirstIntervalSeconds Notices come at F, 3F and 7F after the start (intervals double, at most three).
FirstIntervalSeconds int `json:"first_interval_seconds"`
}
AckTimeoutPolicy defines model for AckTimeoutPolicy.
type AcknowledgeAlertGroupResponse ¶
type AcknowledgeAlertGroupResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *CommandResult
// ApplicationproblemJSON401 the response for an HTTP 401 `application/problem+json` response
ApplicationproblemJSON401 *Unauthorized
// ApplicationproblemJSON403 the response for an HTTP 403 `application/problem+json` response
ApplicationproblemJSON403 *Forbidden
// ApplicationproblemJSON404 the response for an HTTP 404 `application/problem+json` response
ApplicationproblemJSON404 *NotFound
// ApplicationproblemJSON409 the response for an HTTP 409 `application/problem+json` response
ApplicationproblemJSON409 *Conflict
// ApplicationproblemJSON429 the response for an HTTP 429 `application/problem+json` response
ApplicationproblemJSON429 *TooManyRequests
// Headers429 the parsed response headers for an HTTP 429 response
Headers429 *AcknowledgeAlertGroupResponse429Headers
}
func ParseAcknowledgeAlertGroupResponse ¶
func ParseAcknowledgeAlertGroupResponse(rsp *http.Response) (*AcknowledgeAlertGroupResponse, error)
ParseAcknowledgeAlertGroupResponse parses an HTTP response from a AcknowledgeAlertGroupWithResponse call
func (AcknowledgeAlertGroupResponse) ContentType ¶
func (r AcknowledgeAlertGroupResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (AcknowledgeAlertGroupResponse) GetApplicationproblemJSON401 ¶
func (r AcknowledgeAlertGroupResponse) GetApplicationproblemJSON401() *Unauthorized
GetApplicationproblemJSON401 returns the response for an HTTP 401 `application/problem+json` response
func (AcknowledgeAlertGroupResponse) GetApplicationproblemJSON403 ¶
func (r AcknowledgeAlertGroupResponse) GetApplicationproblemJSON403() *Forbidden
GetApplicationproblemJSON403 returns the response for an HTTP 403 `application/problem+json` response
func (AcknowledgeAlertGroupResponse) GetApplicationproblemJSON404 ¶
func (r AcknowledgeAlertGroupResponse) GetApplicationproblemJSON404() *NotFound
GetApplicationproblemJSON404 returns the response for an HTTP 404 `application/problem+json` response
func (AcknowledgeAlertGroupResponse) GetApplicationproblemJSON409 ¶
func (r AcknowledgeAlertGroupResponse) GetApplicationproblemJSON409() *Conflict
GetApplicationproblemJSON409 returns the response for an HTTP 409 `application/problem+json` response
func (AcknowledgeAlertGroupResponse) GetApplicationproblemJSON429 ¶
func (r AcknowledgeAlertGroupResponse) GetApplicationproblemJSON429() *TooManyRequests
GetApplicationproblemJSON429 returns the response for an HTTP 429 `application/problem+json` response
func (AcknowledgeAlertGroupResponse) GetBody ¶
func (r AcknowledgeAlertGroupResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (AcknowledgeAlertGroupResponse) GetJSON200 ¶
func (r AcknowledgeAlertGroupResponse) GetJSON200() *CommandResult
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (AcknowledgeAlertGroupResponse) Status ¶
func (r AcknowledgeAlertGroupResponse) Status() string
Status returns HTTPResponse.Status
func (AcknowledgeAlertGroupResponse) StatusCode ¶
func (r AcknowledgeAlertGroupResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type AcknowledgeAlertGroupResponse429Headers ¶
type AcknowledgeAlertGroupResponse429Headers struct {
RetryAfter *int
}
AcknowledgeAlertGroupResponse429Headers the declared response headers of an HTTP 429 response for AcknowledgeAlertGroup
type ActiveStorm ¶
type ActiveStorm struct {
AlertGroupCount int `json:"alert_group_count"`
Route EntityRef `json:"route"`
Since time.Time `json:"since"`
}
ActiveStorm defines model for ActiveStorm.
type ActorKind ¶
type ActorKind string
ActorKind defines model for ActorKind.
type ActorRef ¶
type ActorRef struct {
// Deactivated The user or Service account was deleted; the UI shows "(deactivated)".
Deactivated bool `json:"deactivated"`
// Id Opaque public identifier (`public_id`): a type prefix of one or two letters followed by 12 random characters of Crockford base32 (`0`–`9` and `A`–`Z` without `I`, `L`, `O` and `U`; 60 bits), such as `AGK7M3QX9P2RTA` for an Alert Group. Prefixes use the same letters and differ per type: `AG` Alert Group, `AE` Audit log entry, `AK` Account link, `AR` Account link request, `CN` Connection, `CR` check run, `DE` delivery event, `DS` Destination, `KR` Link rule, `NE` Note, `NK` Integration token, `NT` Integration, `PT` Personal access token, `RG` Organization, `RQ` record of the Request log, `RT` Route, `SA` Service account, `SN` session, `SR` User, `SS` Stored Snapshot, `ST` Service account token, `TB` Lookup table, `TE` Timeline entry. Responses always carry the canonical upper-case form. Input is case-insensitive and normalized before lookup — `O` reads as `0`, `I` and `L` as `1` — so the pattern also admits lower case and those letters. People refer to Alert Groups by `#N`, never by `public_id`.
Id PublicId `json:"id"`
Kind ActorRefKind `json:"kind"`
// Login Users only.
Login *string `json:"login,omitempty"`
Name string `json:"name"`
}
ActorRef Who resolved an Alert Group or wrote a Note: a User or a Service account. An Owner is always a User (`UserRef`), because a Service account cannot become an Owner.
type ActorRefKind ¶
type ActorRefKind string
ActorRefKind defines model for ActorRef.Kind.
const ( ActorRefKindServiceAccount ActorRefKind = "service_account" ActorRefKindUser ActorRefKind = "user" )
Defines values for ActorRefKind.
func (ActorRefKind) Valid ¶
func (e ActorRefKind) Valid() bool
Valid indicates whether the value is a known member of the ActorRefKind enum.
type AgDeliveryProblem ¶
type AgDeliveryProblem = bool
AgDeliveryProblem defines model for AgDeliveryProblem.
type AgLabelColumns ¶
type AgLabelColumns = []string
AgLabelColumns defines model for AgLabelColumns.
type AgResolvedBy ¶
type AgResolvedBy = ResolverKind
AgResolvedBy Who resolved an Alert Group: a person or the system.
type AgSort ¶
type AgSort string
AgSort defines model for AgSort.
type AlertGroup ¶
type AlertGroup struct {
// AllowedCommands Commands the current status allows for the caller's Permissions and identity; Acknowledge on another user's Alert Group is a Takeover. A Service account is not offered `acknowledge` or `still_on_it`.
AllowedCommands []CommandName `json:"allowed_commands"`
// CommonAnnotations Label names and values.
CommonAnnotations *Labels `json:"common_annotations,omitempty"`
// CommonLabels Label names and values.
CommonLabels *Labels `json:"common_labels,omitempty"`
// DeliveryProblem Any Destination is Not delivered, waiting for a Broken Destination, deleted in the messenger or has a Thread not attached.
DeliveryProblem bool `json:"delivery_problem"`
// DetailsRemoved Alerts and Timeline were removed by retention; only the summary row and its Notes remain.
DetailsRemoved *bool `json:"details_removed,omitempty"`
FiringAlertCount int `json:"firing_alert_count"`
// GroupLabels Label names and values.
GroupLabels *Labels `json:"group_labels,omitempty"`
// Id Opaque public identifier (`public_id`): a type prefix of one or two letters followed by 12 random characters of Crockford base32 (`0`–`9` and `A`–`Z` without `I`, `L`, `O` and `U`; 60 bits), such as `AGK7M3QX9P2RTA` for an Alert Group. Prefixes use the same letters and differ per type: `AG` Alert Group, `AE` Audit log entry, `AK` Account link, `AR` Account link request, `CN` Connection, `CR` check run, `DE` delivery event, `DS` Destination, `KR` Link rule, `NE` Note, `NK` Integration token, `NT` Integration, `PT` Personal access token, `RG` Organization, `RQ` record of the Request log, `RT` Route, `SA` Service account, `SN` session, `SR` User, `SS` Stored Snapshot, `ST` Service account token, `TB` Lookup table, `TE` Timeline entry. Responses always carry the canonical upper-case form. Input is case-insensitive and normalized before lookup — `O` reads as `0`, `I` and `L` as `1` — so the pattern also admits lower case and those letters. People refer to Alert Groups by `#N`, never by `public_id`.
Id PublicId `json:"id"`
Integrations []EntityRef `json:"integrations"`
// LabelValues Values of the labels requested with `label_columns`, when all Alerts share them.
LabelValues *Labels `json:"label_values,omitempty"`
LastChangedAt time.Time `json:"last_changed_at"`
Links *[]AlertGroupLink `json:"links,omitempty"`
// NextNotice The next scheduled ack timeout notice or Reminder.
NextNotice *NextNotice `json:"next_notice,omitempty"`
Notices *[]AlertGroupNotice `json:"notices,omitempty"`
// Number The `#N`, assigned per Organization without gaps.
Number int `json:"number"`
// Owner Set while acknowledged. Always a User: a Service account cannot become an Owner; a Personal access token acts as its User.
Owner *UserRef `json:"owner,omitempty"`
ReopenCount int `json:"reopen_count"`
// Resolution Set when resolved.
Resolution *ResolvedBy `json:"resolution,omitempty"`
ResolvedAlertCount int `json:"resolved_alert_count"`
ResolvedAt nullable.Nullable[time.Time] `json:"resolved_at,omitempty"`
Route EntityRef `json:"route"`
SeverityLevel SeverityLevel `json:"severity_level"`
// SnoozeUntil Null while snoozed means no end.
SnoozeUntil nullable.Nullable[time.Time] `json:"snooze_until,omitempty"`
// SnoozedBy Set while snoozed: who set the current Snooze, a User or a Service account ("Snoozed by" in the Root message). Stored on the Alert Group by Snooze, restored with the Snooze by a Reopen into snoozed, and cleared when the Snooze ends.
SnoozedBy *ActorRef `json:"snoozed_by,omitempty"`
StartedAt time.Time `json:"started_at"`
Status AlertGroupStatus `json:"status"`
Summary nullable.Nullable[string] `json:"summary,omitempty"`
Title string `json:"title"`
Unclaimed bool `json:"unclaimed"`
Urgent bool `json:"urgent"`
}
AlertGroup defines model for AlertGroup.
type AlertGroupAlert ¶
type AlertGroupAlert struct {
AlertmanagerGroups []string `json:"alertmanager_groups"`
// Annotations Label names and values.
Annotations *Labels `json:"annotations,omitempty"`
Fingerprint string `json:"fingerprint"`
Integration *EntityRef `json:"integration,omitempty"`
// Labels Label names and values.
Labels Labels `json:"labels"`
LastSeenAt time.Time `json:"last_seen_at"`
// ResolveReason Why an Alert resolved; null while it fires.
ResolveReason nullable.Nullable[NullableResolveReason] `json:"resolve_reason,omitempty"`
ResolveReasonText nullable.Nullable[string] `json:"resolve_reason_text,omitempty"`
ResolvedAt nullable.Nullable[time.Time] `json:"resolved_at,omitempty"`
// SourceUrl The Alert's `generatorURL`.
SourceUrl nullable.Nullable[string] `json:"source_url,omitempty"`
StartsAt time.Time `json:"starts_at"`
State AlertState `json:"state"`
}
AlertGroupAlert defines model for AlertGroupAlert.
type AlertGroupAlertList ¶
type AlertGroupAlertList struct {
Items []AlertGroupAlert `json:"items"`
NextCursor nullable.Nullable[string] `json:"next_cursor"`
}
AlertGroupAlertList defines model for AlertGroupAlertList.
type AlertGroupCounts ¶
type AlertGroupCounts struct {
Acknowledged int `json:"acknowledged"`
All int `json:"all"`
Firing int `json:"firing"`
Resolved int `json:"resolved"`
Snoozed int `json:"snoozed"`
}
AlertGroupCounts Alert Groups matching the other filters, per status tab. The default tab Open is the sum of `firing`, `acknowledged` and `snoozed`.
type AlertGroupDelivery ¶
type AlertGroupDelivery struct {
Destination DestinationRef `json:"destination"`
// Error Provider error text of Not delivered. Secrets, the Signing secret and tokens are masked. Untrusted: render as plain text.
Error nullable.Nullable[string] `json:"error,omitempty"`
// MessageUrl Link to the Root message where the messenger provides one.
MessageUrl nullable.Nullable[string] `json:"message_url,omitempty"`
// PastEditWindow The Root message is past its bridge's edit window (C-22.FR-9) while the delivery is pending or delivered. Muster no longer edits it and posts a new Root message on the next change of status. Always false for other Destination types.
PastEditWindow bool `json:"past_edit_window"`
PossibleDuplicate bool `json:"possible_duplicate"`
// State `waiting_for_broken_destination` — derived, never stored: a `pending` delivery whose Destination is Broken; `withheld` — never posted to this Destination: the Alert Group resolved while a Storm summary stood for it or while the Destination was Broken; `retired` — no longer updated there after its final edit, because the Destination left the Route or was deleted.
State DeliveryState `json:"state"`
ThreadNotAttached bool `json:"thread_not_attached"`
UpdatedAt *time.Time `json:"updated_at,omitempty"`
}
AlertGroupDelivery defines model for AlertGroupDelivery.
type AlertGroupDeliveryList ¶
type AlertGroupDeliveryList struct {
Items []AlertGroupDelivery `json:"items"`
}
AlertGroupDeliveryList defines model for AlertGroupDeliveryList.
type AlertGroupId ¶
type AlertGroupId = PublicId
AlertGroupId Opaque public identifier (`public_id`): a type prefix of one or two letters followed by 12 random characters of Crockford base32 (`0`–`9` and `A`–`Z` without `I`, `L`, `O` and `U`; 60 bits), such as `AGK7M3QX9P2RTA` for an Alert Group. Prefixes use the same letters and differ per type: `AG` Alert Group, `AE` Audit log entry, `AK` Account link, `AR` Account link request, `CN` Connection, `CR` check run, `DE` delivery event, `DS` Destination, `KR` Link rule, `NE` Note, `NK` Integration token, `NT` Integration, `PT` Personal access token, `RG` Organization, `RQ` record of the Request log, `RT` Route, `SA` Service account, `SN` session, `SR` User, `SS` Stored Snapshot, `ST` Service account token, `TB` Lookup table, `TE` Timeline entry. Responses always carry the canonical upper-case form. Input is case-insensitive and normalized before lookup — `O` reads as `0`, `I` and `L` as `1` — so the pattern also admits lower case and those letters. People refer to Alert Groups by `#N`, never by `public_id`.
type AlertGroupLink ¶
type AlertGroupLink struct {
// Kind `runbook` and `dashboard` come from the `runbook_url` and `dashboard_url` annotations, `source` from the `generatorURL` of a firing Alert, `link_rule` from a Link rule (see `link_rule_id`).
Kind AlertGroupLinkKind `json:"kind"`
// LinkRuleId The `public_id` of the Link rule; set only for the kind `link_rule`.
LinkRuleId *PublicId `json:"link_rule_id,omitempty"`
// Name The name of a `link_rule` link — the rule's name, followed by `: ` and the label value for the scope `label_value` — or the English name of a built-in link (`Runbook`, `Dashboard`, `Source`).
Name string `json:"name"`
Url string `json:"url"`
}
AlertGroupLink One link of an Alert Group. `kind` says where it comes from, so a client can name the built-in links in its own language and tell them from a Link rule that has the same name.
type AlertGroupLinkKind ¶
type AlertGroupLinkKind string
AlertGroupLinkKind `runbook` and `dashboard` come from the `runbook_url` and `dashboard_url` annotations, `source` from the `generatorURL` of a firing Alert, `link_rule` from a Link rule (see `link_rule_id`).
const ( AlertGroupLinkKindDashboard AlertGroupLinkKind = "dashboard" AlertGroupLinkKindLinkRule AlertGroupLinkKind = "link_rule" AlertGroupLinkKindRunbook AlertGroupLinkKind = "runbook" AlertGroupLinkKindSource AlertGroupLinkKind = "source" )
Defines values for AlertGroupLinkKind.
func (AlertGroupLinkKind) Valid ¶
func (e AlertGroupLinkKind) Valid() bool
Valid indicates whether the value is a known member of the AlertGroupLinkKind enum.
type AlertGroupList ¶
type AlertGroupList struct {
Items []AlertGroup `json:"items"`
NextCursor nullable.Nullable[string] `json:"next_cursor"`
}
AlertGroupList defines model for AlertGroupList.
type AlertGroupNotice ¶
type AlertGroupNotice struct {
Count nullable.Nullable[int] `json:"count,omitempty"`
Kind AlertGroupNoticeKind `json:"kind"`
// Label The Instance label that changed, for `replacement`.
Label nullable.Nullable[string] `json:"label,omitempty"`
// RelatedAlertGroup For `newer_alert_group_exists`: the open Alert Group of the same Route and Group key values that takes part in grouping, shown as a link in place of Unresolve.
RelatedAlertGroup *AlertGroupRef `json:"related_alert_group,omitempty"`
// ResolvedNumber The `#N` of the manually resolved Alert Group, for `firing_again_after_manual_resolve`.
ResolvedNumber nullable.Nullable[int] `json:"resolved_number,omitempty"`
RetentionDays nullable.Nullable[int] `json:"retention_days,omitempty"`
}
AlertGroupNotice A banner for the Alert Group page; the UI owns the wording.
type AlertGroupNoticeKind ¶
type AlertGroupNoticeKind string
AlertGroupNoticeKind defines model for AlertGroupNotice.Kind.
const ( AlertsStillFiring AlertGroupNoticeKind = "alerts_still_firing" DetailsRemoved AlertGroupNoticeKind = "details_removed" FiringAgainAfterManualResolve AlertGroupNoticeKind = "firing_again_after_manual_resolve" NewerAlertGroupExists AlertGroupNoticeKind = "newer_alert_group_exists" Replacement AlertGroupNoticeKind = "replacement" )
Defines values for AlertGroupNoticeKind.
func (AlertGroupNoticeKind) Valid ¶
func (e AlertGroupNoticeKind) Valid() bool
Valid indicates whether the value is a known member of the AlertGroupNoticeKind enum.
type AlertGroupRef ¶
type AlertGroupRef struct {
// Id Opaque public identifier (`public_id`): a type prefix of one or two letters followed by 12 random characters of Crockford base32 (`0`–`9` and `A`–`Z` without `I`, `L`, `O` and `U`; 60 bits), such as `AGK7M3QX9P2RTA` for an Alert Group. Prefixes use the same letters and differ per type: `AG` Alert Group, `AE` Audit log entry, `AK` Account link, `AR` Account link request, `CN` Connection, `CR` check run, `DE` delivery event, `DS` Destination, `KR` Link rule, `NE` Note, `NK` Integration token, `NT` Integration, `PT` Personal access token, `RG` Organization, `RQ` record of the Request log, `RT` Route, `SA` Service account, `SN` session, `SR` User, `SS` Stored Snapshot, `ST` Service account token, `TB` Lookup table, `TE` Timeline entry. Responses always carry the canonical upper-case form. Input is case-insensitive and normalized before lookup — `O` reads as `0`, `I` and `L` as `1` — so the pattern also admits lower case and those letters. People refer to Alert Groups by `#N`, never by `public_id`.
Id PublicId `json:"id"`
// Number The `#N` of the Alert Group.
Number int `json:"number"`
}
AlertGroupRef defines model for AlertGroupRef.
type AlertGroupStatistics ¶
type AlertGroupStatistics struct {
From time.Time `json:"from"`
GroupBy AlertGroupStatisticsGroupBy `json:"group_by"`
Items []AlertGroupStatisticsItem `json:"items"`
To time.Time `json:"to"`
}
AlertGroupStatistics defines model for AlertGroupStatistics.
type AlertGroupStatisticsGroupBy ¶
type AlertGroupStatisticsGroupBy string
AlertGroupStatisticsGroupBy defines model for AlertGroupStatistics.GroupBy.
const ( AlertGroupStatisticsGroupByIntegration AlertGroupStatisticsGroupBy = "integration" AlertGroupStatisticsGroupByRoute AlertGroupStatisticsGroupBy = "route" )
Defines values for AlertGroupStatisticsGroupBy.
func (AlertGroupStatisticsGroupBy) Valid ¶
func (e AlertGroupStatisticsGroupBy) Valid() bool
Valid indicates whether the value is a known member of the AlertGroupStatisticsGroupBy enum.
type AlertGroupStatisticsItem ¶
type AlertGroupStatisticsItem struct {
AlertGroupCount int `json:"alert_group_count"`
PerDay []StatisticsDay `json:"per_day"`
Subject EntityRef `json:"subject"`
// TimeToAcknowledge From the start of each Alert Group to its first acknowledgement. Takeover, Unacknowledge and Reopen do not change it; Alert Groups resolved without ever being acknowledged are left out, so `count` may be lower than `alert_group_count`.
TimeToAcknowledge DurationStats `json:"time_to_acknowledge"`
TimeToResolve DurationStats `json:"time_to_resolve"`
}
AlertGroupStatisticsItem defines model for AlertGroupStatisticsItem.
type AlertGroupStatus ¶
type AlertGroupStatus string
AlertGroupStatus defines model for AlertGroupStatus.
const ( AlertGroupStatusAcknowledged AlertGroupStatus = "acknowledged" AlertGroupStatusFiring AlertGroupStatus = "firing" AlertGroupStatusResolved AlertGroupStatus = "resolved" AlertGroupStatusSnoozed AlertGroupStatus = "snoozed" )
Defines values for AlertGroupStatus.
func (AlertGroupStatus) Valid ¶
func (e AlertGroupStatus) Valid() bool
Valid indicates whether the value is a known member of the AlertGroupStatus enum.
type AlertState ¶
type AlertState string
AlertState defines model for AlertState.
const ( AlertStateFiring AlertState = "firing" AlertStateResolved AlertState = "resolved" )
Defines values for AlertState.
func (AlertState) Valid ¶
func (e AlertState) Valid() bool
Valid indicates whether the value is a known member of the AlertState enum.
type AlertmanagerAlert ¶
type AlertmanagerAlert struct {
// Annotations Label names and values.
Annotations *Labels `json:"annotations,omitempty"`
// EndsAt RFC 3339; Alertmanager sends `0001-01-01T00:00:00Z` for firing alerts.
EndsAt *string `json:"endsAt,omitempty"`
Fingerprint *string `json:"fingerprint,omitempty"`
GeneratorURL *string `json:"generatorURL,omitempty"`
// Labels Label names and values.
Labels Labels `json:"labels"`
StartsAt time.Time `json:"startsAt"`
Status AlertState `json:"status"`
AdditionalProperties map[string]interface{} `json:"-"`
}
AlertmanagerAlert defines model for AlertmanagerAlert.
func (AlertmanagerAlert) Get ¶
func (a AlertmanagerAlert) Get(fieldName string) (value interface{}, found bool)
Getter for additional properties for AlertmanagerAlert. Returns the specified element and whether it was found
func (AlertmanagerAlert) MarshalJSON ¶
func (a AlertmanagerAlert) MarshalJSON() ([]byte, error)
Override default JSON handling for AlertmanagerAlert to handle AdditionalProperties
func (*AlertmanagerAlert) Set ¶
func (a *AlertmanagerAlert) Set(fieldName string, value interface{})
Setter for additional properties for AlertmanagerAlert
func (*AlertmanagerAlert) UnmarshalJSON ¶
func (a *AlertmanagerAlert) UnmarshalJSON(b []byte) error
Override default JSON handling for AlertmanagerAlert to handle AdditionalProperties
type AlertmanagerRoute ¶
type AlertmanagerRoute struct {
LearnedRepeatIntervalSeconds nullable.Nullable[int] `json:"learned_repeat_interval_seconds,omitempty"`
LongIntervalWarning bool `json:"long_interval_warning"`
// RecommendedSnippet Route snippet with a recommended repeat interval, set with `long_interval_warning`.
RecommendedSnippet nullable.Nullable[string] `json:"recommended_snippet,omitempty"`
// ResolveByAbsenceAfterSeconds Time to resolve by absence (`processing.stale_after_factor` times the interval, or `processing.stale_after_unlearned`).
ResolveByAbsenceAfterSeconds nullable.Nullable[int] `json:"resolve_by_absence_after_seconds,omitempty"`
RoutePath string `json:"route_path"`
TruncatedGroupCount int `json:"truncated_group_count"`
}
AlertmanagerRoute An Alertmanager route Muster learned from the `groupKey` of Snapshots.
type AlertmanagerRouteList ¶
type AlertmanagerRouteList struct {
Items []AlertmanagerRoute `json:"items"`
}
AlertmanagerRouteList defines model for AlertmanagerRouteList.
type AlertmanagerWebhook ¶
type AlertmanagerWebhook struct {
Alerts []AlertmanagerAlert `json:"alerts"`
// CommonAnnotations Label names and values.
CommonAnnotations *Labels `json:"commonAnnotations,omitempty"`
// CommonLabels Label names and values.
CommonLabels *Labels `json:"commonLabels,omitempty"`
ExternalURL *string `json:"externalURL,omitempty"`
GroupKey string `json:"groupKey"`
// GroupLabels Label names and values.
GroupLabels *Labels `json:"groupLabels,omitempty"`
// NotificationReason Present in newer Alertmanager versions; one value marks a repeat. Grafana does not send it, and its repeats are learned from identical Snapshots.
NotificationReason *string `json:"notification_reason,omitempty"`
// OrgId The id of the Grafana organization. Only Grafana's webhook contact point sends it, and a Snapshot whose `orgId` is present and not null is a Snapshot from Grafana. Grafana computes `status` from the alerts it lists, so a truncated Snapshot from Grafana with `status: resolved` resolves only the Alerts it lists as resolved, and the Alerts it leaves out stay firing; an untruncated one, like Alertmanager's, resolves its whole Alertmanager group.
OrgId *int `json:"orgId,omitempty"`
Receiver *string `json:"receiver,omitempty"`
Status AlertState `json:"status"`
// TruncatedAlerts Number of alerts left out because of Alertmanager's `max_alerts`, or because of Max alerts of Grafana's webhook contact point.
TruncatedAlerts *int `json:"truncatedAlerts,omitempty"`
// Version `"4"` from Alertmanager, `"1"` from Grafana's webhook contact point. Not read.
Version *string `json:"version,omitempty"`
AdditionalProperties map[string]interface{} `json:"-"`
}
AlertmanagerWebhook Alertmanager webhook payload, a Snapshot, as Muster expects to read it during processing: the payload of Alertmanager (version 4), and the payload of the webhook contact point of Grafana Alerting (version `"1"`), whose built-in Alertmanager sends the same format with additions. Fields this schema does not name are ignored, Grafana's `title`, `message`, `state` and `appVersion` and its per-alert fields included. It documents the payload only: the ingestion endpoints do not validate against it and store the body as received, so a payload that differs in details, or is not JSON at all, is a processing error of that Snapshot, never a rejected request.
func (AlertmanagerWebhook) Get ¶
func (a AlertmanagerWebhook) Get(fieldName string) (value interface{}, found bool)
Getter for additional properties for AlertmanagerWebhook. Returns the specified element and whether it was found
func (AlertmanagerWebhook) MarshalJSON ¶
func (a AlertmanagerWebhook) MarshalJSON() ([]byte, error)
Override default JSON handling for AlertmanagerWebhook to handle AdditionalProperties
func (*AlertmanagerWebhook) Set ¶
func (a *AlertmanagerWebhook) Set(fieldName string, value interface{})
Setter for additional properties for AlertmanagerWebhook
func (*AlertmanagerWebhook) UnmarshalJSON ¶
func (a *AlertmanagerWebhook) UnmarshalJSON(b []byte) error
Override default JSON handling for AlertmanagerWebhook to handle AdditionalProperties
type AnswerReminderResponse ¶
type AnswerReminderResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *CommandResult
// ApplicationproblemJSON401 the response for an HTTP 401 `application/problem+json` response
ApplicationproblemJSON401 *Unauthorized
// ApplicationproblemJSON403 the response for an HTTP 403 `application/problem+json` response
ApplicationproblemJSON403 *Forbidden
// ApplicationproblemJSON404 the response for an HTTP 404 `application/problem+json` response
ApplicationproblemJSON404 *NotFound
// ApplicationproblemJSON409 the response for an HTTP 409 `application/problem+json` response
ApplicationproblemJSON409 *Conflict
// ApplicationproblemJSON429 the response for an HTTP 429 `application/problem+json` response
ApplicationproblemJSON429 *TooManyRequests
// Headers429 the parsed response headers for an HTTP 429 response
Headers429 *AnswerReminderResponse429Headers
}
func ParseAnswerReminderResponse ¶
func ParseAnswerReminderResponse(rsp *http.Response) (*AnswerReminderResponse, error)
ParseAnswerReminderResponse parses an HTTP response from a AnswerReminderWithResponse call
func (AnswerReminderResponse) ContentType ¶
func (r AnswerReminderResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (AnswerReminderResponse) GetApplicationproblemJSON401 ¶
func (r AnswerReminderResponse) GetApplicationproblemJSON401() *Unauthorized
GetApplicationproblemJSON401 returns the response for an HTTP 401 `application/problem+json` response
func (AnswerReminderResponse) GetApplicationproblemJSON403 ¶
func (r AnswerReminderResponse) GetApplicationproblemJSON403() *Forbidden
GetApplicationproblemJSON403 returns the response for an HTTP 403 `application/problem+json` response
func (AnswerReminderResponse) GetApplicationproblemJSON404 ¶
func (r AnswerReminderResponse) GetApplicationproblemJSON404() *NotFound
GetApplicationproblemJSON404 returns the response for an HTTP 404 `application/problem+json` response
func (AnswerReminderResponse) GetApplicationproblemJSON409 ¶
func (r AnswerReminderResponse) GetApplicationproblemJSON409() *Conflict
GetApplicationproblemJSON409 returns the response for an HTTP 409 `application/problem+json` response
func (AnswerReminderResponse) GetApplicationproblemJSON429 ¶
func (r AnswerReminderResponse) GetApplicationproblemJSON429() *TooManyRequests
GetApplicationproblemJSON429 returns the response for an HTTP 429 `application/problem+json` response
func (AnswerReminderResponse) GetBody ¶
func (r AnswerReminderResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (AnswerReminderResponse) GetJSON200 ¶
func (r AnswerReminderResponse) GetJSON200() *CommandResult
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (AnswerReminderResponse) Status ¶
func (r AnswerReminderResponse) Status() string
Status returns HTTPResponse.Status
func (AnswerReminderResponse) StatusCode ¶
func (r AnswerReminderResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type AnswerReminderResponse429Headers ¶
type AnswerReminderResponse429Headers struct {
RetryAfter *int
}
AnswerReminderResponse429Headers the declared response headers of an HTTP 429 response for AnswerReminder
type AuditActor ¶
type AuditActor struct {
// Id A `public_id` in the format of `PublicId`, or null.
Id nullable.Nullable[NullablePublicId] `json:"id,omitempty"`
Kind AuditActorKind `json:"kind"`
// Name Current name; `deleted-user-<id>` for deleted users.
Name string `json:"name"`
}
AuditActor defines model for AuditActor.
type AuditActorKind ¶
type AuditActorKind string
AuditActorKind defines model for AuditActor.Kind.
const ( AuditActorKindBootstrap AuditActorKind = "bootstrap" AuditActorKindCli AuditActorKind = "cli" AuditActorKindServiceAccount AuditActorKind = "service_account" AuditActorKindSystem AuditActorKind = "system" AuditActorKindUser AuditActorKind = "user" )
Defines values for AuditActorKind.
func (AuditActorKind) Valid ¶
func (e AuditActorKind) Valid() bool
Valid indicates whether the value is a known member of the AuditActorKind enum.
type AuditDiffEntry ¶
type AuditDiffEntry struct {
// After New value; any JSON type.
After interface{} `json:"after,omitempty"`
// Before Previous value; any JSON type.
Before interface{} `json:"before,omitempty"`
Pointer string `json:"pointer"`
SecretChanged *bool `json:"secret_changed,omitempty"`
}
AuditDiffEntry One changed field. For Secrets only `secret_changed` is true and no values are present.
type AuditEntry ¶
type AuditEntry struct {
// Action Stable action type such as `integration.update`, `alert_group.acknowledge`, `alert_group.takeover`, `auth.sign_in`, `auth.sign_in_refused`, `token.issue`, `account_link.link_rejected`.
Action string `json:"action"`
Actor AuditActor `json:"actor"`
At time.Time `json:"at"`
// Details Action-specific context, for example the groups a refused OIDC sign-in carried. Never contains Secrets.
Details *map[string]interface{} `json:"details,omitempty"`
Diff *[]AuditDiffEntry `json:"diff,omitempty"`
// Id Opaque public identifier (`public_id`): a type prefix of one or two letters followed by 12 random characters of Crockford base32 (`0`–`9` and `A`–`Z` without `I`, `L`, `O` and `U`; 60 bits), such as `AGK7M3QX9P2RTA` for an Alert Group. Prefixes use the same letters and differ per type: `AG` Alert Group, `AE` Audit log entry, `AK` Account link, `AR` Account link request, `CN` Connection, `CR` check run, `DE` delivery event, `DS` Destination, `KR` Link rule, `NE` Note, `NK` Integration token, `NT` Integration, `PT` Personal access token, `RG` Organization, `RQ` record of the Request log, `RT` Route, `SA` Service account, `SN` session, `SR` User, `SS` Stored Snapshot, `ST` Service account token, `TB` Lookup table, `TE` Timeline entry. Responses always carry the canonical upper-case form. Input is case-insensitive and normalized before lookup — `O` reads as `0`, `I` and `L` as `1` — so the pattern also admits lower case and those letters. People refer to Alert Groups by `#N`, never by `public_id`.
Id PublicId `json:"id"`
ResourceId nullable.Nullable[string] `json:"resource_id,omitempty"`
ResourceName nullable.Nullable[string] `json:"resource_name,omitempty"`
ResourceType nullable.Nullable[string] `json:"resource_type,omitempty"`
// TokenId A `public_id` in the format of `PublicId`, or null.
TokenId nullable.Nullable[NullablePublicId] `json:"token_id,omitempty"`
TokenName nullable.Nullable[string] `json:"token_name,omitempty"`
// Transport How a Command or change reached Muster. `bridge` marks presses and Text commands through a Bridge Connection; `slack` marks presses through a Slack Connection; `cli` marks audited CLI commands (`--actor`); `system` marks transitions Muster starts on its own.
Transport Transport `json:"transport"`
}
AuditEntry defines model for AuditEntry.
type AuditEntryList ¶
type AuditEntryList struct {
Items []AuditEntry `json:"items"`
NextCursor nullable.Nullable[string] `json:"next_cursor"`
}
AuditEntryList defines model for AuditEntryList.
type BadRequest ¶
type BadRequest = Problem
BadRequest RFC 9457 problem details, served as `application/problem+json`. `type` is a stable URI under `https://muster-io.github.io/muster/problems/`; clients branch on `type`, `code` and `errors[].code`, never on `title` or `detail`. Validation errors raised by the request-validation middleware and by the strict server are mapped to this schema by one function. Every `code` is listed in `x-problem-codes`.
type BeginTotpEnrolmentResponse ¶
type BeginTotpEnrolmentResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON201 the response for an HTTP 201 `application/json` response
JSON201 *TotpEnrolment
// ApplicationproblemJSON401 the response for an HTTP 401 `application/problem+json` response
ApplicationproblemJSON401 *Unauthorized
// ApplicationproblemJSON403 the response for an HTTP 403 `application/problem+json` response
ApplicationproblemJSON403 *Forbidden
// ApplicationproblemJSON409 the response for an HTTP 409 `application/problem+json` response
ApplicationproblemJSON409 *Conflict
// ApplicationproblemJSON429 the response for an HTTP 429 `application/problem+json` response
ApplicationproblemJSON429 *TooManyRequests
// Headers429 the parsed response headers for an HTTP 429 response
Headers429 *BeginTotpEnrolmentResponse429Headers
}
func ParseBeginTotpEnrolmentResponse ¶
func ParseBeginTotpEnrolmentResponse(rsp *http.Response) (*BeginTotpEnrolmentResponse, error)
ParseBeginTotpEnrolmentResponse parses an HTTP response from a BeginTotpEnrolmentWithResponse call
func (BeginTotpEnrolmentResponse) ContentType ¶
func (r BeginTotpEnrolmentResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (BeginTotpEnrolmentResponse) GetApplicationproblemJSON401 ¶
func (r BeginTotpEnrolmentResponse) GetApplicationproblemJSON401() *Unauthorized
GetApplicationproblemJSON401 returns the response for an HTTP 401 `application/problem+json` response
func (BeginTotpEnrolmentResponse) GetApplicationproblemJSON403 ¶
func (r BeginTotpEnrolmentResponse) GetApplicationproblemJSON403() *Forbidden
GetApplicationproblemJSON403 returns the response for an HTTP 403 `application/problem+json` response
func (BeginTotpEnrolmentResponse) GetApplicationproblemJSON409 ¶
func (r BeginTotpEnrolmentResponse) GetApplicationproblemJSON409() *Conflict
GetApplicationproblemJSON409 returns the response for an HTTP 409 `application/problem+json` response
func (BeginTotpEnrolmentResponse) GetApplicationproblemJSON429 ¶
func (r BeginTotpEnrolmentResponse) GetApplicationproblemJSON429() *TooManyRequests
GetApplicationproblemJSON429 returns the response for an HTTP 429 `application/problem+json` response
func (BeginTotpEnrolmentResponse) GetBody ¶
func (r BeginTotpEnrolmentResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (BeginTotpEnrolmentResponse) GetJSON201 ¶
func (r BeginTotpEnrolmentResponse) GetJSON201() *TotpEnrolment
GetJSON201 returns the response for an HTTP 201 `application/json` response
func (BeginTotpEnrolmentResponse) Status ¶
func (r BeginTotpEnrolmentResponse) Status() string
Status returns HTTPResponse.Status
func (BeginTotpEnrolmentResponse) StatusCode ¶
func (r BeginTotpEnrolmentResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type BeginTotpEnrolmentResponse429Headers ¶
type BeginTotpEnrolmentResponse429Headers struct {
RetryAfter *int
}
BeginTotpEnrolmentResponse429Headers the declared response headers of an HTTP 429 response for BeginTotpEnrolment
type BridgeAccountLinkEvent ¶
type BridgeAccountLinkEvent struct {
// Id Stable across retries and polls; Muster handles each id of a Connection once. Printable ASCII without spaces, so that it can travel as the `webhook-id` header.
Id string `json:"id"`
// OccurredAt When it happened in the messenger, or when the bridge learned of it.
OccurredAt time.Time `json:"occurred_at"`
Token string `json:"token"`
Type interface{} `json:"type"`
// User A messenger account as a bridge names it, a copy of the schema `Person` of the Bridge protocol.
User BridgePerson `json:"user"`
}
BridgeAccountLinkEvent defines model for BridgeAccountLinkEvent.
type BridgeButtonStyle ¶
type BridgeButtonStyle string
BridgeButtonStyle A hint; the bridge maps it to the closest style its messenger has, or shows a plain button.
const ( Danger BridgeButtonStyle = "danger" Neutral BridgeButtonStyle = "neutral" Primary BridgeButtonStyle = "primary" Success BridgeButtonStyle = "success" )
Defines values for BridgeButtonStyle.
func (BridgeButtonStyle) Valid ¶
func (e BridgeButtonStyle) Valid() bool
Valid indicates whether the value is a known member of the BridgeButtonStyle enum.
type BridgeCapabilities ¶
type BridgeCapabilities struct {
// Buttons The bridge shows buttons and reports presses on them.
Buttons *struct {
DataMaxBytes int `json:"data_max_bytes"`
// MaxPerMessage Muster sends at most this many, dropping Snooze buttons first: the Snooze presets, then the durations from the longest.
MaxPerMessage int `json:"max_per_message"`
MaxPerRow int `json:"max_per_row"`
// Styles The style hints the messenger can show as such; the bridge maps the others to the closest one, or shows a plain button.
Styles []BridgeButtonStyle `json:"styles"`
} `json:"buttons,omitempty"`
// Delete The bot can delete its own messages (unused by Muster L1).
Delete *struct {
MaxAgeSeconds nullable.Nullable[int] `json:"max_age_seconds"`
} `json:"delete,omitempty"`
// DeletionEvents The bridge reports `message_deleted` when a message of the bot is deleted in the messenger.
DeletionEvents *bool `json:"deletion_events,omitempty"`
// DirectMessages The bot can send direct messages, which Account links by code need.
DirectMessages *struct {
// BotCanStart Whether the bot can write to a person who never wrote to it.
BotCanStart bool `json:"bot_can_start"`
} `json:"direct_messages,omitempty"`
// NativeMentions Mention markers become the messenger's own mentions, which notify the person.
NativeMentions *bool `json:"native_mentions,omitempty"`
// PrivateAnswers How the bridge can show an answer to one person only: an ephemeral message, a pop-up (short plain text), or both.
PrivateAnswers *[]BridgeCapabilitiesPrivateAnswers `json:"private_answers,omitempty"`
// QuietMessages The messenger can post a new message without notifying anyone (`notify` false).
QuietMessages *bool `json:"quiet_messages,omitempty"`
// StatusColor The messenger can colour a message by `color`; otherwise the bridge shows `emoji`.
StatusColor *bool `json:"status_color,omitempty"`
// ThreadMessages The bridge reports people's messages in Threads of the bot's messages — every one, or only those that mention the bot. Text commands need it.
ThreadMessages *BridgeCapabilitiesThreadMessages `json:"thread_messages,omitempty"`
}
BridgeCapabilities The optional features of the bridge. A missing member means the feature is not offered.
type BridgeCapabilitiesPrivateAnswers ¶
type BridgeCapabilitiesPrivateAnswers string
BridgeCapabilitiesPrivateAnswers defines model for BridgeCapabilities.PrivateAnswers.
const ( Ephemeral BridgeCapabilitiesPrivateAnswers = "ephemeral" Popup BridgeCapabilitiesPrivateAnswers = "popup" )
Defines values for BridgeCapabilitiesPrivateAnswers.
func (BridgeCapabilitiesPrivateAnswers) Valid ¶
func (e BridgeCapabilitiesPrivateAnswers) Valid() bool
Valid indicates whether the value is a known member of the BridgeCapabilitiesPrivateAnswers enum.
type BridgeCapabilitiesThreadMessages ¶
type BridgeCapabilitiesThreadMessages string
BridgeCapabilitiesThreadMessages The bridge reports people's messages in Threads of the bot's messages — every one, or only those that mention the bot. Text commands need it.
const ( BridgeCapabilitiesThreadMessagesAll BridgeCapabilitiesThreadMessages = "all" BridgeCapabilitiesThreadMessagesMentionsOnly BridgeCapabilitiesThreadMessages = "mentions_only" )
Defines values for BridgeCapabilitiesThreadMessages.
func (BridgeCapabilitiesThreadMessages) Valid ¶
func (e BridgeCapabilitiesThreadMessages) Valid() bool
Valid indicates whether the value is a known member of the BridgeCapabilitiesThreadMessages enum.
type BridgeCodeLinkRequest ¶
type BridgeCodeLinkRequest struct {
// ConnectionId Opaque public identifier (`public_id`): a type prefix of one or two letters followed by 12 random characters of Crockford base32 (`0`–`9` and `A`–`Z` without `I`, `L`, `O` and `U`; 60 bits), such as `AGK7M3QX9P2RTA` for an Alert Group. Prefixes use the same letters and differ per type: `AG` Alert Group, `AE` Audit log entry, `AK` Account link, `AR` Account link request, `CN` Connection, `CR` check run, `DE` delivery event, `DS` Destination, `KR` Link rule, `NE` Note, `NK` Integration token, `NT` Integration, `PT` Personal access token, `RG` Organization, `RQ` record of the Request log, `RT` Route, `SA` Service account, `SN` session, `SR` User, `SS` Stored Snapshot, `ST` Service account token, `TB` Lookup table, `TE` Timeline entry. Responses always carry the canonical upper-case form. Input is case-insensitive and normalized before lookup — `O` reads as `0`, `I` and `L` as `1` — so the pattern also admits lower case and those letters. People refer to Alert Groups by `#N`, never by `public_id`.
ConnectionId PublicId `json:"connection_id"`
// Handle The handle of the account to link, of the kind the Connection's `handle_kind` names.
Handle string `json:"handle"`
}
BridgeCodeLinkRequest defines model for BridgeCodeLinkRequest.
type BridgeCodeLinkStarted ¶
type BridgeCodeLinkStarted struct {
AttemptsRemaining int `json:"attempts_remaining"`
ExpiresAt time.Time `json:"expires_at"`
// RequestId Opaque public identifier (`public_id`): a type prefix of one or two letters followed by 12 random characters of Crockford base32 (`0`–`9` and `A`–`Z` without `I`, `L`, `O` and `U`; 60 bits), such as `AGK7M3QX9P2RTA` for an Alert Group. Prefixes use the same letters and differ per type: `AG` Alert Group, `AE` Audit log entry, `AK` Account link, `AR` Account link request, `CN` Connection, `CR` check run, `DE` delivery event, `DS` Destination, `KR` Link rule, `NE` Note, `NK` Integration token, `NT` Integration, `PT` Personal access token, `RG` Organization, `RQ` record of the Request log, `RT` Route, `SA` Service account, `SN` session, `SR` User, `SS` Stored Snapshot, `ST` Service account token, `TB` Lookup table, `TE` Timeline entry. Responses always carry the canonical upper-case form. Input is case-insensitive and normalized before lookup — `O` reads as `0`, `I` and `L` as `1` — so the pattern also admits lower case and those letters. People refer to Alert Groups by `#N`, never by `public_id`.
RequestId PublicId `json:"request_id"`
}
BridgeCodeLinkStarted defines model for BridgeCodeLinkStarted.
type BridgeConnection ¶
type BridgeConnection struct {
// BaseUrl Absolute http(s) URL of the bridge without query, fragment or user information; a path prefix is allowed and a trailing `/` is dropped. Requests go to `<base>/v1/…` with the token as `Authorization: Bearer`, only to this address.
BaseUrl string `json:"base_url"`
// BotTokenStatus What a read shows instead of a Secret. The value itself is never returned.
BotTokenStatus SecretStatus `json:"bot_token_status"`
// CallbackUrl `bridgeEvent` at `MUSTER_INGEST_URL` (`<MUSTER_INGEST_URL>/api/v1/callbacks/bridge/<id>`), where a bridge in push mode posts events signed with the push secret.
CallbackUrl *string `json:"callback_url,omitempty"`
CreatedAt time.Time `json:"created_at"`
// DestinationCount A Connection used by Destinations cannot be deleted.
DestinationCount int `json:"destination_count"`
// Etag The same value as the `ETag` header; send it as `If-Match` on the next update. Lets a client update an item of a list without reading it again.
Etag *string `json:"etag,omitempty"`
// EventDelivery How a Bridge Connection receives events (`connection.bridge.event_delivery`): `poll` — Muster polls the bridge from the Leader; `push` — the bridge posts each event to the Connection's `callback_url`, signed with the push secret.
EventDelivery BridgeEventDelivery `json:"event_delivery"`
// Id Opaque public identifier (`public_id`): a type prefix of one or two letters followed by 12 random characters of Crockford base32 (`0`–`9` and `A`–`Z` without `I`, `L`, `O` and `U`; 60 bits), such as `AGK7M3QX9P2RTA` for an Alert Group. Prefixes use the same letters and differ per type: `AG` Alert Group, `AE` Audit log entry, `AK` Account link, `AR` Account link request, `CN` Connection, `CR` check run, `DE` delivery event, `DS` Destination, `KR` Link rule, `NE` Note, `NK` Integration token, `NT` Integration, `PT` Personal access token, `RG` Organization, `RQ` record of the Request log, `RT` Route, `SA` Service account, `SN` session, `SR` User, `SS` Stored Snapshot, `ST` Service account token, `TB` Lookup table, `TE` Timeline entry. Responses always carry the canonical upper-case form. Input is case-insensitive and normalized before lookup — `O` reads as `0`, `I` and `L` as `1` — so the pattern also admits lower case and those letters. People refer to Alert Groups by `#N`, never by `public_id`.
Id PublicId `json:"id"`
// Info The last `info` a Connection check read, with the members of `BridgeInfo`; Muster stores the whole answer, and members this version does not know are not returned. Null before the first check and after the base URL or the token changed.
Info nullable.Nullable[BridgeInfo] `json:"info,omitempty"`
// InfoReadAt When Muster read `info`; null while `info` is null.
InfoReadAt nullable.Nullable[time.Time] `json:"info_read_at,omitempty"`
// Limiter A rate limit of `limit` calls per `per_seconds`.
Limiter Limiter `json:"limiter"`
Name string `json:"name"`
// Proxy Per-client proxy as read. The password is a Secret.
Proxy ProxyConfig `json:"proxy"`
// PushSecretStatus What a read shows instead of a Secret. The value itself is never returned.
PushSecretStatus SecretStatus `json:"push_secret_status"`
Type BridgeConnectionType `json:"type"`
}
BridgeConnection defines model for BridgeConnection.
type BridgeConnectionBase ¶
type BridgeConnectionBase struct {
// BaseUrl Absolute http(s) URL of the bridge without query, fragment or user information; a path prefix is allowed and a trailing `/` is dropped. Requests go to `<base>/v1/…` with the token as `Authorization: Bearer`, only to this address.
BaseUrl string `json:"base_url"`
// EventDelivery How a Bridge Connection receives events (`connection.bridge.event_delivery`): `poll` — Muster polls the bridge from the Leader; `push` — the bridge posts each event to the Connection's `callback_url`, signed with the push secret.
EventDelivery BridgeEventDelivery `json:"event_delivery"`
// Limiter A rate limit of `limit` calls per `per_seconds`.
Limiter Limiter `json:"limiter"`
Name string `json:"name"`
Type BridgeConnectionBaseType `json:"type"`
}
BridgeConnectionBase defines model for BridgeConnectionBase.
type BridgeConnectionBaseType ¶
type BridgeConnectionBaseType string
BridgeConnectionBaseType defines model for BridgeConnectionBase.Type.
const (
BridgeConnectionBaseTypeBridge BridgeConnectionBaseType = "bridge"
)
Defines values for BridgeConnectionBaseType.
func (BridgeConnectionBaseType) Valid ¶
func (e BridgeConnectionBaseType) Valid() bool
Valid indicates whether the value is a known member of the BridgeConnectionBaseType enum.
type BridgeConnectionDraft ¶
type BridgeConnectionDraft struct {
// BaseUrl The bridge's base URL as `BridgeConnectionBase` takes it.
BaseUrl string `json:"base_url"`
// BotToken A token typed in the form, sent only to `base_url`. Omit it to use the stored token of `connection_id`, which goes only to its saved base URL through its saved proxy.
BotToken *string `json:"bot_token,omitempty"`
// ConnectionId The saved Bridge Connection that the form edits; omit it for a new one. An omitted `proxy` is its saved proxy, and no proxy without it.
ConnectionId *PublicId `json:"connection_id,omitempty"`
// EventDelivery How a Bridge Connection receives events (`connection.bridge.event_delivery`): `poll` — Muster polls the bridge from the Leader; `push` — the bridge posts each event to the Connection's `callback_url`, signed with the push secret.
EventDelivery BridgeEventDelivery `json:"event_delivery"`
// Proxy Per-client proxy as written. Omitting `password` keeps the stored one; `null` clears it.
Proxy *ProxyConfigInput `json:"proxy,omitempty"`
Type BridgeConnectionDraftType `json:"type"`
}
BridgeConnectionDraft A Bridge Connection as its form holds it, for `checkConnectionDraft`; the push secret is not checked.
type BridgeConnectionDraftType ¶
type BridgeConnectionDraftType string
BridgeConnectionDraftType defines model for BridgeConnectionDraft.Type.
const (
BridgeConnectionDraftTypeBridge BridgeConnectionDraftType = "bridge"
)
Defines values for BridgeConnectionDraftType.
func (BridgeConnectionDraftType) Valid ¶
func (e BridgeConnectionDraftType) Valid() bool
Valid indicates whether the value is a known member of the BridgeConnectionDraftType enum.
type BridgeConnectionInput ¶
type BridgeConnectionInput struct {
// BaseUrl Absolute http(s) URL of the bridge without query, fragment or user information; a path prefix is allowed and a trailing `/` is dropped. Requests go to `<base>/v1/…` with the token as `Authorization: Bearer`, only to this address.
BaseUrl string `json:"base_url"`
// BotToken Write-only Secret. Omit on update to keep the stored one; a new `base_url` needs it again.
BotToken *string `json:"bot_token,omitempty"`
// EventDelivery How a Bridge Connection receives events (`connection.bridge.event_delivery`): `poll` — Muster polls the bridge from the Leader; `push` — the bridge posts each event to the Connection's `callback_url`, signed with the push secret.
EventDelivery BridgeEventDelivery `json:"event_delivery"`
// Limiter A rate limit of `limit` calls per `per_seconds`.
Limiter Limiter `json:"limiter"`
Name string `json:"name"`
// Proxy Per-client proxy as written. Omitting `password` keeps the stored one; `null` clears it.
Proxy ProxyConfigInput `json:"proxy"`
// PushSecret Write-only Secret in the Standard Webhooks form, `whsec_` and base64; required with `event_delivery` `push`. Omit on update to keep the stored one; a save in `poll` clears it.
PushSecret *string `json:"push_secret,omitempty"`
Type BridgeConnectionInputType `json:"type"`
}
BridgeConnectionInput defines model for BridgeConnectionInput.
type BridgeConnectionInputType ¶
type BridgeConnectionInputType string
BridgeConnectionInputType defines model for BridgeConnectionInput.Type.
const (
BridgeConnectionInputTypeBridge BridgeConnectionInputType = "bridge"
)
Defines values for BridgeConnectionInputType.
func (BridgeConnectionInputType) Valid ¶
func (e BridgeConnectionInputType) Valid() bool
Valid indicates whether the value is a known member of the BridgeConnectionInputType enum.
type BridgeConnectionType ¶
type BridgeConnectionType string
BridgeConnectionType defines model for BridgeConnection.Type.
const (
BridgeConnectionTypeBridge BridgeConnectionType = "bridge"
)
Defines values for BridgeConnectionType.
func (BridgeConnectionType) Valid ¶
func (e BridgeConnectionType) Valid() bool
Valid indicates whether the value is a known member of the BridgeConnectionType enum.
type BridgeDestination ¶
type BridgeDestination struct {
// ChannelId The channel as its messenger names it, an opaque string of up to 512 characters; surrounding white space is trimmed.
ChannelId string `json:"channel_id"`
// ChannelName The channel's name as the bridge's `checkChannel` answered it when the Destination was last saved. Untrusted text from the bridge.
ChannelName nullable.Nullable[string] `json:"channel_name,omitempty"`
// ConnectionId A Bridge Connection.
ConnectionId PublicId `json:"connection_id"`
CreatedAt time.Time `json:"created_at"`
// Etag The same value as the `ETag` header; send it as `If-Match` on the next update. Lets a client update an item of a list without reading it again.
Etag *string `json:"etag,omitempty"`
Health DestinationHealth `json:"health"`
// Id Opaque public identifier (`public_id`): a type prefix of one or two letters followed by 12 random characters of Crockford base32 (`0`–`9` and `A`–`Z` without `I`, `L`, `O` and `U`; 60 bits), such as `AGK7M3QX9P2RTA` for an Alert Group. Prefixes use the same letters and differ per type: `AG` Alert Group, `AE` Audit log entry, `AK` Account link, `AR` Account link request, `CN` Connection, `CR` check run, `DE` delivery event, `DS` Destination, `KR` Link rule, `NE` Note, `NK` Integration token, `NT` Integration, `PT` Personal access token, `RG` Organization, `RQ` record of the Request log, `RT` Route, `SA` Service account, `SN` session, `SR` User, `SS` Stored Snapshot, `ST` Service account token, `TB` Lookup table, `TE` Timeline entry. Responses always carry the canonical upper-case form. Input is case-insensitive and normalized before lookup — `O` reads as `0`, `I` and `L` as `1` — so the pattern also admits lower case and those letters. People refer to Alert Groups by `#N`, never by `public_id`.
Id PublicId `json:"id"`
// Limiter `destination.bridge.limiter`: the form proposes 30 requests per minute, sends and edits together, or half of the Connection's `info.limits.send_per_second_per_channel` when its info has it.
Limiter Limiter `json:"limiter"`
// Mentions Nobody or chosen users; everyone in the chat and messenger groups are refused with `unsupported`.
Mentions MentionSettings `json:"mentions"`
Name string `json:"name"`
Routes []EntityRef `json:"routes"`
TemplateError *TemplateErrorState `json:"template_error,omitempty"`
Type BridgeDestinationType `json:"type"`
}
BridgeDestination defines model for BridgeDestination.
type BridgeDestinationInput ¶
type BridgeDestinationInput struct {
// ChannelId The channel as its messenger names it, an opaque string of up to 512 characters; surrounding white space is trimmed.
ChannelId string `json:"channel_id"`
// ConnectionId A Bridge Connection.
ConnectionId PublicId `json:"connection_id"`
// Limiter `destination.bridge.limiter`: the form proposes 30 requests per minute, sends and edits together, or half of the Connection's `info.limits.send_per_second_per_channel` when its info has it.
Limiter Limiter `json:"limiter"`
// Mentions Nobody or chosen users; everyone in the chat and messenger groups are refused with `unsupported`.
Mentions MentionSettings `json:"mentions"`
Name string `json:"name"`
Type BridgeDestinationInputType `json:"type"`
}
BridgeDestinationInput A Bridge Destination (C-22.FR-3) is a channel of the bridge's messenger, named by its id. Saving it runs the bridge's `checkChannel`, which posts nothing, and keeps the channel's name the bridge answers.
type BridgeDestinationInputType ¶
type BridgeDestinationInputType string
BridgeDestinationInputType defines model for BridgeDestinationInput.Type.
const (
BridgeDestinationInputTypeBridge BridgeDestinationInputType = "bridge"
)
Defines values for BridgeDestinationInputType.
func (BridgeDestinationInputType) Valid ¶
func (e BridgeDestinationInputType) Valid() bool
Valid indicates whether the value is a known member of the BridgeDestinationInputType enum.
type BridgeDestinationType ¶
type BridgeDestinationType string
BridgeDestinationType defines model for BridgeDestination.Type.
const (
BridgeDestinationTypeBridge BridgeDestinationType = "bridge"
)
Defines values for BridgeDestinationType.
func (BridgeDestinationType) Valid ¶
func (e BridgeDestinationType) Valid() bool
Valid indicates whether the value is a known member of the BridgeDestinationType enum.
type BridgeEvent ¶
type BridgeEvent struct {
// contains filtered or unexported fields
}
BridgeEvent An event of a bridge, pushed by `bridgeEvent`; a copy of the schema `Event` of the Bridge protocol (`api/bridge.yaml`). `type` selects the variant.
func (BridgeEvent) AsBridgeAccountLinkEvent ¶
func (t BridgeEvent) AsBridgeAccountLinkEvent() (BridgeAccountLinkEvent, error)
AsBridgeAccountLinkEvent returns the union data inside the BridgeEvent as a BridgeAccountLinkEvent
func (BridgeEvent) AsBridgeMessageDeletedEvent ¶
func (t BridgeEvent) AsBridgeMessageDeletedEvent() (BridgeMessageDeletedEvent, error)
AsBridgeMessageDeletedEvent returns the union data inside the BridgeEvent as a BridgeMessageDeletedEvent
func (BridgeEvent) AsBridgePressEvent ¶
func (t BridgeEvent) AsBridgePressEvent() (BridgePressEvent, error)
AsBridgePressEvent returns the union data inside the BridgeEvent as a BridgePressEvent
func (BridgeEvent) AsBridgeThreadMessageEvent ¶
func (t BridgeEvent) AsBridgeThreadMessageEvent() (BridgeThreadMessageEvent, error)
AsBridgeThreadMessageEvent returns the union data inside the BridgeEvent as a BridgeThreadMessageEvent
func (BridgeEvent) Discriminator ¶
func (t BridgeEvent) Discriminator() (string, error)
func (*BridgeEvent) FromBridgeAccountLinkEvent ¶
func (t *BridgeEvent) FromBridgeAccountLinkEvent(v BridgeAccountLinkEvent) error
FromBridgeAccountLinkEvent overwrites any union data inside the BridgeEvent as the provided BridgeAccountLinkEvent
func (*BridgeEvent) FromBridgeMessageDeletedEvent ¶
func (t *BridgeEvent) FromBridgeMessageDeletedEvent(v BridgeMessageDeletedEvent) error
FromBridgeMessageDeletedEvent overwrites any union data inside the BridgeEvent as the provided BridgeMessageDeletedEvent
func (*BridgeEvent) FromBridgePressEvent ¶
func (t *BridgeEvent) FromBridgePressEvent(v BridgePressEvent) error
FromBridgePressEvent overwrites any union data inside the BridgeEvent as the provided BridgePressEvent
func (*BridgeEvent) FromBridgeThreadMessageEvent ¶
func (t *BridgeEvent) FromBridgeThreadMessageEvent(v BridgeThreadMessageEvent) error
FromBridgeThreadMessageEvent overwrites any union data inside the BridgeEvent as the provided BridgeThreadMessageEvent
func (BridgeEvent) MarshalJSON ¶
func (t BridgeEvent) MarshalJSON() ([]byte, error)
func (*BridgeEvent) MergeBridgeAccountLinkEvent ¶
func (t *BridgeEvent) MergeBridgeAccountLinkEvent(v BridgeAccountLinkEvent) error
MergeBridgeAccountLinkEvent performs a merge with any union data inside the BridgeEvent, using the provided BridgeAccountLinkEvent
func (*BridgeEvent) MergeBridgeMessageDeletedEvent ¶
func (t *BridgeEvent) MergeBridgeMessageDeletedEvent(v BridgeMessageDeletedEvent) error
MergeBridgeMessageDeletedEvent performs a merge with any union data inside the BridgeEvent, using the provided BridgeMessageDeletedEvent
func (*BridgeEvent) MergeBridgePressEvent ¶
func (t *BridgeEvent) MergeBridgePressEvent(v BridgePressEvent) error
MergeBridgePressEvent performs a merge with any union data inside the BridgeEvent, using the provided BridgePressEvent
func (*BridgeEvent) MergeBridgeThreadMessageEvent ¶
func (t *BridgeEvent) MergeBridgeThreadMessageEvent(v BridgeThreadMessageEvent) error
MergeBridgeThreadMessageEvent performs a merge with any union data inside the BridgeEvent, using the provided BridgeThreadMessageEvent
func (*BridgeEvent) UnmarshalJSON ¶
func (t *BridgeEvent) UnmarshalJSON(b []byte) error
func (BridgeEvent) ValueByDiscriminator ¶
func (t BridgeEvent) ValueByDiscriminator() (interface{}, error)
type BridgeEventBase ¶
type BridgeEventBase struct {
// Id Stable across retries and polls; Muster handles each id of a Connection once. Printable ASCII without spaces, so that it can travel as the `webhook-id` header.
Id string `json:"id"`
// OccurredAt When it happened in the messenger, or when the bridge learned of it.
OccurredAt time.Time `json:"occurred_at"`
Type string `json:"type"`
}
BridgeEventBase The members of every Bridge event, a copy of the schema `EventBase` of the Bridge protocol.
type BridgeEventDelivery ¶
type BridgeEventDelivery string
BridgeEventDelivery How a Bridge Connection receives events (`connection.bridge.event_delivery`): `poll` — Muster polls the bridge from the Leader; `push` — the bridge posts each event to the Connection's `callback_url`, signed with the push secret.
const ( BridgeEventDeliveryPoll BridgeEventDelivery = "poll" BridgeEventDeliveryPush BridgeEventDelivery = "push" )
Defines values for BridgeEventDelivery.
func (BridgeEventDelivery) Valid ¶
func (e BridgeEventDelivery) Valid() bool
Valid indicates whether the value is a known member of the BridgeEventDelivery enum.
type BridgeEventJSONRequestBody ¶
type BridgeEventJSONRequestBody = BridgeEvent
BridgeEventJSONRequestBody defines body for BridgeEvent for application/json ContentType.
type BridgeEventParams ¶
type BridgeEventParams struct {
// WebhookId The event's `id`, kept across retries.
WebhookId string `json:"webhook-id"`
// WebhookTimestamp Unix time of this attempt, in seconds.
WebhookTimestamp string `json:"webhook-timestamp"`
// WebhookSignature `v1,<base64 HMAC-SHA256>`; several signatures separated by spaces are allowed while a secret is rotated.
WebhookSignature string `json:"webhook-signature"`
}
BridgeEventParams defines parameters for BridgeEvent.
type BridgeEventResponse ¶
type BridgeEventResponse struct {
Body []byte
HTTPResponse *http.Response
// ApplicationproblemJSON400 the response for an HTTP 400 `application/problem+json` response
ApplicationproblemJSON400 *BadRequest
// ApplicationproblemJSON401 the response for an HTTP 401 `application/problem+json` response
ApplicationproblemJSON401 *Unauthorized
// ApplicationproblemJSON500 the response for an HTTP 500 `application/problem+json` response
ApplicationproblemJSON500 *InternalError
}
func ParseBridgeEventResponse ¶
func ParseBridgeEventResponse(rsp *http.Response) (*BridgeEventResponse, error)
ParseBridgeEventResponse parses an HTTP response from a BridgeEventWithResponse call
func (BridgeEventResponse) ContentType ¶
func (r BridgeEventResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (BridgeEventResponse) GetApplicationproblemJSON400 ¶
func (r BridgeEventResponse) GetApplicationproblemJSON400() *BadRequest
GetApplicationproblemJSON400 returns the response for an HTTP 400 `application/problem+json` response
func (BridgeEventResponse) GetApplicationproblemJSON401 ¶
func (r BridgeEventResponse) GetApplicationproblemJSON401() *Unauthorized
GetApplicationproblemJSON401 returns the response for an HTTP 401 `application/problem+json` response
func (BridgeEventResponse) GetApplicationproblemJSON500 ¶
func (r BridgeEventResponse) GetApplicationproblemJSON500() *InternalError
GetApplicationproblemJSON500 returns the response for an HTTP 500 `application/problem+json` response
func (BridgeEventResponse) GetBody ¶
func (r BridgeEventResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (BridgeEventResponse) Status ¶
func (r BridgeEventResponse) Status() string
Status returns HTTPResponse.Status
func (BridgeEventResponse) StatusCode ¶
func (r BridgeEventResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type BridgeInfo ¶
type BridgeInfo struct {
Bridge struct {
Name string `json:"name"`
Version string `json:"version"`
} `json:"bridge"`
// Capabilities The optional features of the bridge. A missing member means the feature is not offered.
Capabilities BridgeCapabilities `json:"capabilities"`
// EventDelivery The event delivery modes the bridge offers; each Connection chooses one.
EventDelivery []BridgeInfoEventDelivery `json:"event_delivery"`
// Limits The limits of the bridge, a copy of the schema `Limits` of the Bridge protocol.
Limits BridgeLimits `json:"limits"`
// LinkUrlTemplate An `http` or `https` link that opens a chat with the bot and hands it the Account link token, with `{token}` where the token goes.
LinkUrlTemplate nullable.Nullable[string] `json:"link_url_template,omitempty"`
Messenger struct {
// Name The messenger's name as people know it; Muster shows it on the Connection and the Destinations.
Name string `json:"name"`
} `json:"messenger"`
// ProtocolVersion The major version of this protocol the bridge speaks.
ProtocolVersion BridgeInfoProtocolVersion `json:"protocol_version"`
// UserLookup What a person enters to be found for an Account link by code, and what `findUsers` searches by. `none` offers only the token sent to the bot.
UserLookup BridgeInfoUserLookup `json:"user_lookup"`
}
BridgeInfo The `info` of a bridge, a copy of the schema `Info` of the Bridge protocol (`api/bridge.yaml`).
type BridgeInfoEventDelivery ¶
type BridgeInfoEventDelivery string
BridgeInfoEventDelivery defines model for BridgeInfo.EventDelivery.
const ( BridgeInfoEventDeliveryPoll BridgeInfoEventDelivery = "poll" BridgeInfoEventDeliveryPush BridgeInfoEventDelivery = "push" )
Defines values for BridgeInfoEventDelivery.
func (BridgeInfoEventDelivery) Valid ¶
func (e BridgeInfoEventDelivery) Valid() bool
Valid indicates whether the value is a known member of the BridgeInfoEventDelivery enum.
type BridgeInfoProtocolVersion ¶
type BridgeInfoProtocolVersion string
BridgeInfoProtocolVersion The major version of this protocol the bridge speaks.
const (
BridgeInfoProtocolVersionN1 BridgeInfoProtocolVersion = "1"
)
Defines values for BridgeInfoProtocolVersion.
func (BridgeInfoProtocolVersion) Valid ¶
func (e BridgeInfoProtocolVersion) Valid() bool
Valid indicates whether the value is a known member of the BridgeInfoProtocolVersion enum.
type BridgeInfoUserLookup ¶
type BridgeInfoUserLookup string
BridgeInfoUserLookup What a person enters to be found for an Account link by code, and what `findUsers` searches by. `none` offers only the token sent to the bot.
const ( BridgeInfoUserLookupEmail BridgeInfoUserLookup = "email" BridgeInfoUserLookupLogin BridgeInfoUserLookup = "login" BridgeInfoUserLookupNone BridgeInfoUserLookup = "none" BridgeInfoUserLookupUserId BridgeInfoUserLookup = "user_id" BridgeInfoUserLookupUsername BridgeInfoUserLookup = "username" )
Defines values for BridgeInfoUserLookup.
func (BridgeInfoUserLookup) Valid ¶
func (e BridgeInfoUserLookup) Valid() bool
Valid indicates whether the value is a known member of the BridgeInfoUserLookup enum.
type BridgeLimits ¶
type BridgeLimits struct {
// EditMaxAgeSeconds How long after posting the bot can still edit a message; `null` when edits never expire. Muster stops editing a minute earlier.
EditMaxAgeSeconds nullable.Nullable[int] `json:"edit_max_age_seconds"`
// MaxBodyLength The longest `body`, in Unicode code points of the CommonMark Muster sends, that the bridge always accepts for a post and for an edit alike, after its own rendering.
MaxBodyLength int `json:"max_body_length"`
// SendPerSecond A hint for the Connection limiter, over all channels of the bot.
SendPerSecond *float32 `json:"send_per_second,omitempty"`
// SendPerSecondPerChannel A hint for the Destination limiter; `rate_limited` stays the truth.
SendPerSecondPerChannel *float32 `json:"send_per_second_per_channel,omitempty"`
}
BridgeLimits The limits of the bridge, a copy of the schema `Limits` of the Bridge protocol.
type BridgeLinkConfirm ¶
type BridgeLinkConfirm struct {
// Code The code the bot sent as a direct message.
Code *string `json:"code,omitempty"`
// RequestId Opaque public identifier (`public_id`): a type prefix of one or two letters followed by 12 random characters of Crockford base32 (`0`–`9` and `A`–`Z` without `I`, `L`, `O` and `U`; 60 bits), such as `AGK7M3QX9P2RTA` for an Alert Group. Prefixes use the same letters and differ per type: `AG` Alert Group, `AE` Audit log entry, `AK` Account link, `AR` Account link request, `CN` Connection, `CR` check run, `DE` delivery event, `DS` Destination, `KR` Link rule, `NE` Note, `NK` Integration token, `NT` Integration, `PT` Personal access token, `RG` Organization, `RQ` record of the Request log, `RT` Route, `SA` Service account, `SN` session, `SR` User, `SS` Stored Snapshot, `ST` Service account token, `TB` Lookup table, `TE` Timeline entry. Responses always carry the canonical upper-case form. Input is case-insensitive and normalized before lookup — `O` reads as `0`, `I` and `L` as `1` — so the pattern also admits lower case and those letters. People refer to Alert Groups by `#N`, never by `public_id`.
RequestId PublicId `json:"request_id"`
}
BridgeLinkConfirm defines model for BridgeLinkConfirm.
type BridgeLinkRequest ¶
type BridgeLinkRequest struct {
// ConnectionId Opaque public identifier (`public_id`): a type prefix of one or two letters followed by 12 random characters of Crockford base32 (`0`–`9` and `A`–`Z` without `I`, `L`, `O` and `U`; 60 bits), such as `AGK7M3QX9P2RTA` for an Alert Group. Prefixes use the same letters and differ per type: `AG` Alert Group, `AE` Audit log entry, `AK` Account link, `AR` Account link request, `CN` Connection, `CR` check run, `DE` delivery event, `DS` Destination, `KR` Link rule, `NE` Note, `NK` Integration token, `NT` Integration, `PT` Personal access token, `RG` Organization, `RQ` record of the Request log, `RT` Route, `SA` Service account, `SN` session, `SR` User, `SS` Stored Snapshot, `ST` Service account token, `TB` Lookup table, `TE` Timeline entry. Responses always carry the canonical upper-case form. Input is case-insensitive and normalized before lookup — `O` reads as `0`, `I` and `L` as `1` — so the pattern also admits lower case and those letters. People refer to Alert Groups by `#N`, never by `public_id`.
ConnectionId PublicId `json:"connection_id"`
}
BridgeLinkRequest defines model for BridgeLinkRequest.
type BridgeLinkStart ¶
type BridgeLinkStart struct {
ExpiresAt time.Time `json:"expires_at"`
// LinkUrl The bridge's `link_url_template` with the token, which opens a chat with the bot and hands it the token; null without a template.
LinkUrl nullable.Nullable[string] `json:"link_url"`
// Token Send it to the bot in a direct message. Single use and bound to the User and the Connection.
Token string `json:"token"`
}
BridgeLinkStart defines model for BridgeLinkStart.
type BridgeMessageDeletedEvent ¶
type BridgeMessageDeletedEvent struct {
// Id Stable across retries and polls; Muster handles each id of a Connection once. Printable ASCII without spaces, so that it can travel as the `webhook-id` header.
Id string `json:"id"`
MessageId string `json:"message_id"`
// OccurredAt When it happened in the messenger, or when the bridge learned of it.
OccurredAt time.Time `json:"occurred_at"`
Type interface{} `json:"type"`
}
BridgeMessageDeletedEvent defines model for BridgeMessageDeletedEvent.
type BridgePerson ¶
type BridgePerson struct {
DisplayName string `json:"display_name"`
// ExternalId The account's stable id in the messenger.
ExternalId string `json:"external_id"`
// Handle The account's handle of the kind `user_lookup` declares, when the bridge knows it.
Handle nullable.Nullable[string] `json:"handle,omitempty"`
}
BridgePerson A messenger account as a bridge names it, a copy of the schema `Person` of the Bridge protocol.
type BridgePressEvent ¶
type BridgePressEvent struct {
// Data The button's `data`, unchanged.
Data string `json:"data"`
// Id Stable across retries and polls; Muster handles each id of a Connection once. Printable ASCII without spaces, so that it can travel as the `webhook-id` header.
Id string `json:"id"`
// MessageId The message the button belongs to, a Root message or a Thread reply.
MessageId string `json:"message_id"`
// OccurredAt When it happened in the messenger, or when the bridge learned of it.
OccurredAt time.Time `json:"occurred_at"`
Type interface{} `json:"type"`
// User A messenger account as a bridge names it, a copy of the schema `Person` of the Bridge protocol.
User BridgePerson `json:"user"`
}
BridgePressEvent defines model for BridgePressEvent.
type BridgeThreadMessageEvent ¶
type BridgeThreadMessageEvent struct {
// Id Stable across retries and polls; Muster handles each id of a Connection once. Printable ASCII without spaces, so that it can travel as the `webhook-id` header.
Id string `json:"id"`
// MessageId The message whose Thread it is in, usually a Root message, never the id of a reply.
MessageId string `json:"message_id"`
// OccurredAt When it happened in the messenger, or when the bridge learned of it.
OccurredAt time.Time `json:"occurred_at"`
// Text The message as plain text, mentions of the bot removed.
Text string `json:"text"`
ThreadRef nullable.Nullable[string] `json:"thread_ref"`
Type interface{} `json:"type"`
// User A messenger account as a bridge names it, a copy of the schema `Person` of the Bridge protocol.
User BridgePerson `json:"user"`
}
BridgeThreadMessageEvent defines model for BridgeThreadMessageEvent.
type BrokenDestination ¶
type BrokenDestination struct {
Destination EntityRef `json:"destination"`
Reason string `json:"reason"`
Since time.Time `json:"since"`
}
BrokenDestination defines model for BrokenDestination.
type BulkCommandItem ¶
type BulkCommandItem struct {
// AlertGroupId Opaque public identifier (`public_id`): a type prefix of one or two letters followed by 12 random characters of Crockford base32 (`0`–`9` and `A`–`Z` without `I`, `L`, `O` and `U`; 60 bits), such as `AGK7M3QX9P2RTA` for an Alert Group. Prefixes use the same letters and differ per type: `AG` Alert Group, `AE` Audit log entry, `AK` Account link, `AR` Account link request, `CN` Connection, `CR` check run, `DE` delivery event, `DS` Destination, `KR` Link rule, `NE` Note, `NK` Integration token, `NT` Integration, `PT` Personal access token, `RG` Organization, `RQ` record of the Request log, `RT` Route, `SA` Service account, `SN` session, `SR` User, `SS` Stored Snapshot, `ST` Service account token, `TB` Lookup table, `TE` Timeline entry. Responses always carry the canonical upper-case form. Input is case-insensitive and normalized before lookup — `O` reads as `0`, `I` and `L` as `1` — so the pattern also admits lower case and those letters. People refer to Alert Groups by `#N`, never by `public_id`.
AlertGroupId PublicId `json:"alert_group_id"`
// Code Stable code of a result other than `done` and `unchanged`: with `refused`, a `command-refused` code such as `already_resolved` or `owner_must_be_user` (Acknowledge by a Service account); with `skipped`, `owned_by_other` for an Acknowledge skipped because another user owns the Alert Group; with `failed`, `not_found` for an id that names no Alert Group the caller may see.
Code nullable.Nullable[string] `json:"code,omitempty"`
// Message For example "skipped: owned by Alice".
Message nullable.Nullable[string] `json:"message,omitempty"`
Number nullable.Nullable[int] `json:"number,omitempty"`
Outcome BulkOutcome `json:"outcome"`
}
BulkCommandItem defines model for BulkCommandItem.
type BulkCommandRequest ¶
type BulkCommandRequest struct {
// AlertGroupIds At most `alert_group.bulk_max`.
AlertGroupIds []PublicId `json:"alert_group_ids"`
Command BulkCommandRequestCommand `json:"command"`
// Note For `resolve`; optional.
Note *string `json:"note,omitempty"`
// Snooze Required for `snooze`.
Snooze *SnoozeRequest `json:"snooze,omitempty"`
}
BulkCommandRequest A Command on up to `alert_group.bulk_max` Alert Groups. Arguments belong to their command: `snooze` for `snooze`, `note` for `resolve`; others are ignored.
type BulkCommandRequestCommand ¶
type BulkCommandRequestCommand string
BulkCommandRequestCommand defines model for BulkCommandRequest.Command.
const ( BulkCommandRequestCommandAcknowledge BulkCommandRequestCommand = "acknowledge" BulkCommandRequestCommandResolve BulkCommandRequestCommand = "resolve" BulkCommandRequestCommandSnooze BulkCommandRequestCommand = "snooze" BulkCommandRequestCommandUnsnooze BulkCommandRequestCommand = "unsnooze" )
Defines values for BulkCommandRequestCommand.
func (BulkCommandRequestCommand) Valid ¶
func (e BulkCommandRequestCommand) Valid() bool
Valid indicates whether the value is a known member of the BulkCommandRequestCommand enum.
type BulkCommandResult ¶
type BulkCommandResult struct {
Results []BulkCommandItem `json:"results"`
}
BulkCommandResult One outcome per Alert Group; a refusal never stops the others.
type BulkOutcome ¶
type BulkOutcome string
BulkOutcome defines model for BulkOutcome.
const ( BulkOutcomeDone BulkOutcome = "done" BulkOutcomeFailed BulkOutcome = "failed" BulkOutcomeRefused BulkOutcome = "refused" BulkOutcomeSkipped BulkOutcome = "skipped" BulkOutcomeUnchanged BulkOutcome = "unchanged" )
Defines values for BulkOutcome.
func (BulkOutcome) Valid ¶
func (e BulkOutcome) Valid() bool
Valid indicates whether the value is a known member of the BulkOutcome enum.
type ChangePasswordJSONRequestBody ¶
type ChangePasswordJSONRequestBody = PasswordChange
ChangePasswordJSONRequestBody defines body for ChangePassword for application/json ContentType.
type ChangePasswordResponse ¶
type ChangePasswordResponse struct {
Body []byte
HTTPResponse *http.Response
// ApplicationproblemJSON400 the response for an HTTP 400 `application/problem+json` response
ApplicationproblemJSON400 *BadRequest
// ApplicationproblemJSON401 the response for an HTTP 401 `application/problem+json` response
ApplicationproblemJSON401 *Unauthorized
// ApplicationproblemJSON403 the response for an HTTP 403 `application/problem+json` response
ApplicationproblemJSON403 *Forbidden
// ApplicationproblemJSON409 the response for an HTTP 409 `application/problem+json` response
ApplicationproblemJSON409 *Conflict
// ApplicationproblemJSON422 the response for an HTTP 422 `application/problem+json` response
ApplicationproblemJSON422 *Unprocessable
// ApplicationproblemJSON429 the response for an HTTP 429 `application/problem+json` response
ApplicationproblemJSON429 *TooManyRequests
// Headers429 the parsed response headers for an HTTP 429 response
Headers429 *ChangePasswordResponse429Headers
}
func ParseChangePasswordResponse ¶
func ParseChangePasswordResponse(rsp *http.Response) (*ChangePasswordResponse, error)
ParseChangePasswordResponse parses an HTTP response from a ChangePasswordWithResponse call
func (ChangePasswordResponse) ContentType ¶
func (r ChangePasswordResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (ChangePasswordResponse) GetApplicationproblemJSON400 ¶
func (r ChangePasswordResponse) GetApplicationproblemJSON400() *BadRequest
GetApplicationproblemJSON400 returns the response for an HTTP 400 `application/problem+json` response
func (ChangePasswordResponse) GetApplicationproblemJSON401 ¶
func (r ChangePasswordResponse) GetApplicationproblemJSON401() *Unauthorized
GetApplicationproblemJSON401 returns the response for an HTTP 401 `application/problem+json` response
func (ChangePasswordResponse) GetApplicationproblemJSON403 ¶
func (r ChangePasswordResponse) GetApplicationproblemJSON403() *Forbidden
GetApplicationproblemJSON403 returns the response for an HTTP 403 `application/problem+json` response
func (ChangePasswordResponse) GetApplicationproblemJSON409 ¶
func (r ChangePasswordResponse) GetApplicationproblemJSON409() *Conflict
GetApplicationproblemJSON409 returns the response for an HTTP 409 `application/problem+json` response
func (ChangePasswordResponse) GetApplicationproblemJSON422 ¶
func (r ChangePasswordResponse) GetApplicationproblemJSON422() *Unprocessable
GetApplicationproblemJSON422 returns the response for an HTTP 422 `application/problem+json` response
func (ChangePasswordResponse) GetApplicationproblemJSON429 ¶
func (r ChangePasswordResponse) GetApplicationproblemJSON429() *TooManyRequests
GetApplicationproblemJSON429 returns the response for an HTTP 429 `application/problem+json` response
func (ChangePasswordResponse) GetBody ¶
func (r ChangePasswordResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (ChangePasswordResponse) Status ¶
func (r ChangePasswordResponse) Status() string
Status returns HTTPResponse.Status
func (ChangePasswordResponse) StatusCode ¶
func (r ChangePasswordResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type ChangePasswordResponse429Headers ¶
type ChangePasswordResponse429Headers struct {
RetryAfter *int
}
ChangePasswordResponse429Headers the declared response headers of an HTTP 429 response for ChangePassword
type CheckConnectionDraftJSONRequestBody ¶
type CheckConnectionDraftJSONRequestBody = ConnectionDraft
CheckConnectionDraftJSONRequestBody defines body for CheckConnectionDraft for application/json ContentType.
type CheckConnectionDraftResponse ¶
type CheckConnectionDraftResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *ConnectionCheckResult
// ApplicationproblemJSON400 the response for an HTTP 400 `application/problem+json` response
ApplicationproblemJSON400 *BadRequest
// ApplicationproblemJSON401 the response for an HTTP 401 `application/problem+json` response
ApplicationproblemJSON401 *Unauthorized
// ApplicationproblemJSON403 the response for an HTTP 403 `application/problem+json` response
ApplicationproblemJSON403 *Forbidden
// ApplicationproblemJSON422 the response for an HTTP 422 `application/problem+json` response
ApplicationproblemJSON422 *Unprocessable
// ApplicationproblemJSON429 the response for an HTTP 429 `application/problem+json` response
ApplicationproblemJSON429 *TooManyRequests
// ApplicationproblemJSON503 the response for an HTTP 503 `application/problem+json` response
ApplicationproblemJSON503 *Limited
// Headers429 the parsed response headers for an HTTP 429 response
Headers429 *CheckConnectionDraftResponse429Headers
// Headers503 the parsed response headers for an HTTP 503 response
Headers503 *CheckConnectionDraftResponse503Headers
}
func ParseCheckConnectionDraftResponse ¶
func ParseCheckConnectionDraftResponse(rsp *http.Response) (*CheckConnectionDraftResponse, error)
ParseCheckConnectionDraftResponse parses an HTTP response from a CheckConnectionDraftWithResponse call
func (CheckConnectionDraftResponse) ContentType ¶
func (r CheckConnectionDraftResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (CheckConnectionDraftResponse) GetApplicationproblemJSON400 ¶
func (r CheckConnectionDraftResponse) GetApplicationproblemJSON400() *BadRequest
GetApplicationproblemJSON400 returns the response for an HTTP 400 `application/problem+json` response
func (CheckConnectionDraftResponse) GetApplicationproblemJSON401 ¶
func (r CheckConnectionDraftResponse) GetApplicationproblemJSON401() *Unauthorized
GetApplicationproblemJSON401 returns the response for an HTTP 401 `application/problem+json` response
func (CheckConnectionDraftResponse) GetApplicationproblemJSON403 ¶
func (r CheckConnectionDraftResponse) GetApplicationproblemJSON403() *Forbidden
GetApplicationproblemJSON403 returns the response for an HTTP 403 `application/problem+json` response
func (CheckConnectionDraftResponse) GetApplicationproblemJSON422 ¶
func (r CheckConnectionDraftResponse) GetApplicationproblemJSON422() *Unprocessable
GetApplicationproblemJSON422 returns the response for an HTTP 422 `application/problem+json` response
func (CheckConnectionDraftResponse) GetApplicationproblemJSON429 ¶
func (r CheckConnectionDraftResponse) GetApplicationproblemJSON429() *TooManyRequests
GetApplicationproblemJSON429 returns the response for an HTTP 429 `application/problem+json` response
func (CheckConnectionDraftResponse) GetApplicationproblemJSON503 ¶
func (r CheckConnectionDraftResponse) GetApplicationproblemJSON503() *Limited
GetApplicationproblemJSON503 returns the response for an HTTP 503 `application/problem+json` response
func (CheckConnectionDraftResponse) GetBody ¶
func (r CheckConnectionDraftResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (CheckConnectionDraftResponse) GetJSON200 ¶
func (r CheckConnectionDraftResponse) GetJSON200() *ConnectionCheckResult
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (CheckConnectionDraftResponse) Status ¶
func (r CheckConnectionDraftResponse) Status() string
Status returns HTTPResponse.Status
func (CheckConnectionDraftResponse) StatusCode ¶
func (r CheckConnectionDraftResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type CheckConnectionDraftResponse429Headers ¶
type CheckConnectionDraftResponse429Headers struct {
RetryAfter *int
}
CheckConnectionDraftResponse429Headers the declared response headers of an HTTP 429 response for CheckConnectionDraft
type CheckConnectionDraftResponse503Headers ¶
type CheckConnectionDraftResponse503Headers struct {
RetryAfter *int
}
CheckConnectionDraftResponse503Headers the declared response headers of an HTTP 503 response for CheckConnectionDraft
type CheckConnectionJSONRequestBody ¶
type CheckConnectionJSONRequestBody = ConnectionCheckRequest
CheckConnectionJSONRequestBody defines body for CheckConnection for application/json ContentType.
type CheckConnectionResponse ¶
type CheckConnectionResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *ConnectionCheckResult
// ApplicationproblemJSON400 the response for an HTTP 400 `application/problem+json` response
ApplicationproblemJSON400 *BadRequest
// ApplicationproblemJSON401 the response for an HTTP 401 `application/problem+json` response
ApplicationproblemJSON401 *Unauthorized
// ApplicationproblemJSON403 the response for an HTTP 403 `application/problem+json` response
ApplicationproblemJSON403 *Forbidden
// ApplicationproblemJSON404 the response for an HTTP 404 `application/problem+json` response
ApplicationproblemJSON404 *NotFound
// ApplicationproblemJSON429 the response for an HTTP 429 `application/problem+json` response
ApplicationproblemJSON429 *TooManyRequests
// ApplicationproblemJSON503 the response for an HTTP 503 `application/problem+json` response
ApplicationproblemJSON503 *Limited
// Headers429 the parsed response headers for an HTTP 429 response
Headers429 *CheckConnectionResponse429Headers
// Headers503 the parsed response headers for an HTTP 503 response
Headers503 *CheckConnectionResponse503Headers
}
func ParseCheckConnectionResponse ¶
func ParseCheckConnectionResponse(rsp *http.Response) (*CheckConnectionResponse, error)
ParseCheckConnectionResponse parses an HTTP response from a CheckConnectionWithResponse call
func (CheckConnectionResponse) ContentType ¶
func (r CheckConnectionResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (CheckConnectionResponse) GetApplicationproblemJSON400 ¶
func (r CheckConnectionResponse) GetApplicationproblemJSON400() *BadRequest
GetApplicationproblemJSON400 returns the response for an HTTP 400 `application/problem+json` response
func (CheckConnectionResponse) GetApplicationproblemJSON401 ¶
func (r CheckConnectionResponse) GetApplicationproblemJSON401() *Unauthorized
GetApplicationproblemJSON401 returns the response for an HTTP 401 `application/problem+json` response
func (CheckConnectionResponse) GetApplicationproblemJSON403 ¶
func (r CheckConnectionResponse) GetApplicationproblemJSON403() *Forbidden
GetApplicationproblemJSON403 returns the response for an HTTP 403 `application/problem+json` response
func (CheckConnectionResponse) GetApplicationproblemJSON404 ¶
func (r CheckConnectionResponse) GetApplicationproblemJSON404() *NotFound
GetApplicationproblemJSON404 returns the response for an HTTP 404 `application/problem+json` response
func (CheckConnectionResponse) GetApplicationproblemJSON429 ¶
func (r CheckConnectionResponse) GetApplicationproblemJSON429() *TooManyRequests
GetApplicationproblemJSON429 returns the response for an HTTP 429 `application/problem+json` response
func (CheckConnectionResponse) GetApplicationproblemJSON503 ¶
func (r CheckConnectionResponse) GetApplicationproblemJSON503() *Limited
GetApplicationproblemJSON503 returns the response for an HTTP 503 `application/problem+json` response
func (CheckConnectionResponse) GetBody ¶
func (r CheckConnectionResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (CheckConnectionResponse) GetJSON200 ¶
func (r CheckConnectionResponse) GetJSON200() *ConnectionCheckResult
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (CheckConnectionResponse) Status ¶
func (r CheckConnectionResponse) Status() string
Status returns HTTPResponse.Status
func (CheckConnectionResponse) StatusCode ¶
func (r CheckConnectionResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type CheckConnectionResponse429Headers ¶
type CheckConnectionResponse429Headers struct {
RetryAfter *int
}
CheckConnectionResponse429Headers the declared response headers of an HTTP 429 response for CheckConnection
type CheckConnectionResponse503Headers ¶
type CheckConnectionResponse503Headers struct {
RetryAfter *int
}
CheckConnectionResponse503Headers the declared response headers of an HTTP 503 response for CheckConnection
type CheckDestinationResponse ¶
type CheckDestinationResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *DestinationCheckResult
// ApplicationproblemJSON401 the response for an HTTP 401 `application/problem+json` response
ApplicationproblemJSON401 *Unauthorized
// ApplicationproblemJSON403 the response for an HTTP 403 `application/problem+json` response
ApplicationproblemJSON403 *Forbidden
// ApplicationproblemJSON404 the response for an HTTP 404 `application/problem+json` response
ApplicationproblemJSON404 *NotFound
// ApplicationproblemJSON422 the response for an HTTP 422 `application/problem+json` response
ApplicationproblemJSON422 *Unprocessable
// ApplicationproblemJSON429 the response for an HTTP 429 `application/problem+json` response
ApplicationproblemJSON429 *TooManyRequests
// ApplicationproblemJSON503 the response for an HTTP 503 `application/problem+json` response
ApplicationproblemJSON503 *Limited
// Headers429 the parsed response headers for an HTTP 429 response
Headers429 *CheckDestinationResponse429Headers
// Headers503 the parsed response headers for an HTTP 503 response
Headers503 *CheckDestinationResponse503Headers
}
func ParseCheckDestinationResponse ¶
func ParseCheckDestinationResponse(rsp *http.Response) (*CheckDestinationResponse, error)
ParseCheckDestinationResponse parses an HTTP response from a CheckDestinationWithResponse call
func (CheckDestinationResponse) ContentType ¶
func (r CheckDestinationResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (CheckDestinationResponse) GetApplicationproblemJSON401 ¶
func (r CheckDestinationResponse) GetApplicationproblemJSON401() *Unauthorized
GetApplicationproblemJSON401 returns the response for an HTTP 401 `application/problem+json` response
func (CheckDestinationResponse) GetApplicationproblemJSON403 ¶
func (r CheckDestinationResponse) GetApplicationproblemJSON403() *Forbidden
GetApplicationproblemJSON403 returns the response for an HTTP 403 `application/problem+json` response
func (CheckDestinationResponse) GetApplicationproblemJSON404 ¶
func (r CheckDestinationResponse) GetApplicationproblemJSON404() *NotFound
GetApplicationproblemJSON404 returns the response for an HTTP 404 `application/problem+json` response
func (CheckDestinationResponse) GetApplicationproblemJSON422 ¶
func (r CheckDestinationResponse) GetApplicationproblemJSON422() *Unprocessable
GetApplicationproblemJSON422 returns the response for an HTTP 422 `application/problem+json` response
func (CheckDestinationResponse) GetApplicationproblemJSON429 ¶
func (r CheckDestinationResponse) GetApplicationproblemJSON429() *TooManyRequests
GetApplicationproblemJSON429 returns the response for an HTTP 429 `application/problem+json` response
func (CheckDestinationResponse) GetApplicationproblemJSON503 ¶
func (r CheckDestinationResponse) GetApplicationproblemJSON503() *Limited
GetApplicationproblemJSON503 returns the response for an HTTP 503 `application/problem+json` response
func (CheckDestinationResponse) GetBody ¶
func (r CheckDestinationResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (CheckDestinationResponse) GetJSON200 ¶
func (r CheckDestinationResponse) GetJSON200() *DestinationCheckResult
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (CheckDestinationResponse) Status ¶
func (r CheckDestinationResponse) Status() string
Status returns HTTPResponse.Status
func (CheckDestinationResponse) StatusCode ¶
func (r CheckDestinationResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type CheckDestinationResponse429Headers ¶
type CheckDestinationResponse429Headers struct {
RetryAfter *int
}
CheckDestinationResponse429Headers the declared response headers of an HTTP 429 response for CheckDestination
type CheckDestinationResponse503Headers ¶
type CheckDestinationResponse503Headers struct {
RetryAfter *int
}
CheckDestinationResponse503Headers the declared response headers of an HTTP 503 response for CheckDestination
type CheckOidcSettingsResponse ¶
type CheckOidcSettingsResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *OidcCheckResult
// ApplicationproblemJSON401 the response for an HTTP 401 `application/problem+json` response
ApplicationproblemJSON401 *Unauthorized
// ApplicationproblemJSON403 the response for an HTTP 403 `application/problem+json` response
ApplicationproblemJSON403 *Forbidden
// ApplicationproblemJSON429 the response for an HTTP 429 `application/problem+json` response
ApplicationproblemJSON429 *TooManyRequests
// Headers429 the parsed response headers for an HTTP 429 response
Headers429 *CheckOidcSettingsResponse429Headers
}
func ParseCheckOidcSettingsResponse ¶
func ParseCheckOidcSettingsResponse(rsp *http.Response) (*CheckOidcSettingsResponse, error)
ParseCheckOidcSettingsResponse parses an HTTP response from a CheckOidcSettingsWithResponse call
func (CheckOidcSettingsResponse) ContentType ¶
func (r CheckOidcSettingsResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (CheckOidcSettingsResponse) GetApplicationproblemJSON401 ¶
func (r CheckOidcSettingsResponse) GetApplicationproblemJSON401() *Unauthorized
GetApplicationproblemJSON401 returns the response for an HTTP 401 `application/problem+json` response
func (CheckOidcSettingsResponse) GetApplicationproblemJSON403 ¶
func (r CheckOidcSettingsResponse) GetApplicationproblemJSON403() *Forbidden
GetApplicationproblemJSON403 returns the response for an HTTP 403 `application/problem+json` response
func (CheckOidcSettingsResponse) GetApplicationproblemJSON429 ¶
func (r CheckOidcSettingsResponse) GetApplicationproblemJSON429() *TooManyRequests
GetApplicationproblemJSON429 returns the response for an HTTP 429 `application/problem+json` response
func (CheckOidcSettingsResponse) GetBody ¶
func (r CheckOidcSettingsResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (CheckOidcSettingsResponse) GetJSON200 ¶
func (r CheckOidcSettingsResponse) GetJSON200() *OidcCheckResult
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (CheckOidcSettingsResponse) Status ¶
func (r CheckOidcSettingsResponse) Status() string
Status returns HTTPResponse.Status
func (CheckOidcSettingsResponse) StatusCode ¶
func (r CheckOidcSettingsResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type CheckOidcSettingsResponse429Headers ¶
type CheckOidcSettingsResponse429Headers struct {
RetryAfter *int
}
CheckOidcSettingsResponse429Headers the declared response headers of an HTTP 429 response for CheckOidcSettings
type Client ¶
type Client struct {
// The endpoint of the server conforming to this interface, with scheme,
// https://api.deepmap.com for example. This can contain a path relative
// to the server, such as https://api.deepmap.com/dev-test, and all the
// paths in the swagger spec will be appended to the server.
Server string
// Doer for performing requests, typically a *http.Client with any
// customized settings, such as certificate chains.
Client HttpRequestDoer
// A list of callbacks for modifying requests which are generated before sending over
// the network.
RequestEditors []RequestEditorFn
}
Client which conforms to the OpenAPI3 specification for this service.
func NewClient ¶
func NewClient(server string, opts ...ClientOption) (*Client, error)
Creates a new Client, with reasonable defaults
func (*Client) AcceptRouteSuggestion ¶
func (c *Client) AcceptRouteSuggestion(ctx context.Context, suggestionId SuggestionId, body AcceptRouteSuggestionJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
AcceptRouteSuggestion Accept a Route suggestion
Creates the suggested Route at the top of the list; the Route for `internal_alerts` goes directly below the last Route other than the Default route that already takes an Internal alert, such as the Route for `MusterHeartbeatLost`, and at the top when none does. `409` (`suggestion_obsolete`) when it no longer applies: a matching Route exists now, it was accepted already, or no Destination exists for `internal_alerts`; `422` (`required` at `/destination_ids`) when `internal_alerts` is accepted without Destinations.
Takes a body of the `application/json` content type.
Corresponds with POST /route-suggestions/{suggestion_id}/accept (the `AcceptRouteSuggestion` operationId).
func (*Client) AcceptRouteSuggestionWithBody ¶
func (c *Client) AcceptRouteSuggestionWithBody(ctx context.Context, suggestionId SuggestionId, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
AcceptRouteSuggestionWithBody Accept a Route suggestion
Creates the suggested Route at the top of the list; the Route for `internal_alerts` goes directly below the last Route other than the Default route that already takes an Internal alert, such as the Route for `MusterHeartbeatLost`, and at the top when none does. `409` (`suggestion_obsolete`) when it no longer applies: a matching Route exists now, it was accepted already, or no Destination exists for `internal_alerts`; `422` (`required` at `/destination_ids`) when `internal_alerts` is accepted without Destinations.
Takes any type of body and a specified content type.
Corresponds with POST /route-suggestions/{suggestion_id}/accept (the `AcceptRouteSuggestion` operationId).
func (*Client) AcknowledgeAlertGroup ¶
func (c *Client) AcknowledgeAlertGroup(ctx context.Context, alertGroupId AlertGroupId, reqEditors ...RequestEditorFn) (*http.Response, error)
AcknowledgeAlertGroup Acknowledge
From firing or snoozed: the caller becomes the Owner and a Snooze ends. By the current Owner it changes nothing (`outcome` `unchanged`). By another user it is a Takeover: ownership moves, a Loud event mentions the previous Owner. A Personal access token acts as its User and may; a Service account token cannot become an Owner and is refused with `409` `command-refused` and the code `owner_must_be_user`. Other refusals: `already_resolved`.
Corresponds with POST /alert-groups/{alert_group_id}/acknowledge (the `AcknowledgeAlertGroup` operationId).
func (*Client) AnswerReminder ¶
func (c *Client) AnswerReminder(ctx context.Context, alertGroupId AlertGroupId, reqEditors ...RequestEditorFn) (*http.Response, error)
AnswerReminder Answer a Reminder with "Still on it"
Owner only. Recorded in the Timeline like a press in a messenger; it does not reset the Reminder interval. Refused with `409` `command-refused` and the codes `not_owner`, `no_reminder_pending` and, for a Service account token, `owner_must_be_user`.
Corresponds with POST /alert-groups/{alert_group_id}/still-on-it (the `AnswerReminder` operationId).
func (*Client) BeginTotpEnrolment ¶
func (c *Client) BeginTotpEnrolment(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
BeginTotpEnrolment Begin TOTP enrolment
Returns the seed and the `otpauth` URI once. Enrolment completes when `confirmTotpEnrolment` receives a first code. Allowed in the session state `totp_enrolment_required`. `409` (`totp_already_enrolled`) when TOTP is already on. Web session only.
Corresponds with POST /me/totp (the `BeginTotpEnrolment` operationId).
func (*Client) BridgeEvent ¶
func (c *Client) BridgeEvent(ctx context.Context, connectionId ConnectionId, params *BridgeEventParams, body BridgeEventJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
BridgeEvent Receive a Bridge event (push event delivery)
Used only when the Bridge Connection's event delivery mode is `push`: the bridge posts each event, one per request, signed as Standard Webhooks specifies with the Connection's push secret. Muster verifies `webhook-signature` — `v1,` followed by the base64 of HMAC-SHA256 over `<webhook-id>.<webhook-timestamp>.<body>` with the decoded secret, any of several signatures separated by spaces — in constant time, refuses a `webhook-timestamp` further than `bridge.push_tolerance` from its real clock, and requires `webhook-id` to equal the event's `id`. It handles each event `id` of a Connection once within `bridge.event_dedup_window`, answers the person behind the event, when it does, before it answers `204`, and answers `204` also for an `id` it handled before. A bad signature, a timestamp out of range, an unknown or deleted Connection and a Connection in poll mode are all answered `401` and change nothing, so the endpoint reveals nothing about which Connections exist; a body that is no event of the Bridge protocol, or whose `id` is not `webhook-id`, is answered `400`, and the bridge drops it; an event whose handling failed is answered `500`, is not recorded as handled, and the bridge sends it again. Request validation does not answer `400` here: the handler decides every answer.
Takes a body of the `application/json` content type.
Corresponds with POST /callbacks/bridge/{connection_id} (the `BridgeEvent` operationId).
func (*Client) BridgeEventWithBody ¶
func (c *Client) BridgeEventWithBody(ctx context.Context, connectionId ConnectionId, params *BridgeEventParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
BridgeEventWithBody Receive a Bridge event (push event delivery)
Used only when the Bridge Connection's event delivery mode is `push`: the bridge posts each event, one per request, signed as Standard Webhooks specifies with the Connection's push secret. Muster verifies `webhook-signature` — `v1,` followed by the base64 of HMAC-SHA256 over `<webhook-id>.<webhook-timestamp>.<body>` with the decoded secret, any of several signatures separated by spaces — in constant time, refuses a `webhook-timestamp` further than `bridge.push_tolerance` from its real clock, and requires `webhook-id` to equal the event's `id`. It handles each event `id` of a Connection once within `bridge.event_dedup_window`, answers the person behind the event, when it does, before it answers `204`, and answers `204` also for an `id` it handled before. A bad signature, a timestamp out of range, an unknown or deleted Connection and a Connection in poll mode are all answered `401` and change nothing, so the endpoint reveals nothing about which Connections exist; a body that is no event of the Bridge protocol, or whose `id` is not `webhook-id`, is answered `400`, and the bridge drops it; an event whose handling failed is answered `500`, is not recorded as handled, and the bridge sends it again. Request validation does not answer `400` here: the handler decides every answer.
Takes any type of body and a specified content type.
Corresponds with POST /callbacks/bridge/{connection_id} (the `BridgeEvent` operationId).
func (*Client) ChangePassword ¶
func (c *Client) ChangePassword(ctx context.Context, body ChangePasswordJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
ChangePassword Change own password
Ends all other sessions of the user. Local users only (`409` `local_user_only` otherwise). Web session only.
Takes a body of the `application/json` content type.
Corresponds with PUT /me/password (the `ChangePassword` operationId).
func (*Client) ChangePasswordWithBody ¶
func (c *Client) ChangePasswordWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
ChangePasswordWithBody Change own password
Ends all other sessions of the user. Local users only (`409` `local_user_only` otherwise). Web session only.
Takes any type of body and a specified content type.
Corresponds with PUT /me/password (the `ChangePassword` operationId).
func (*Client) CheckConnection ¶
func (c *Client) CheckConnection(ctx context.Context, connectionId ConnectionId, body CheckConnectionJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
CheckConnection Check a Connection
Mattermost verifies the token and returns the bot's name. Telegram works in steps and reports the latency and path of each: a dry probe without the token, `getMe`, `getWebhookInfo`. With `base_url` in the body only the dry probe runs against that unsaved address, without the token: a stored token is sent only to the saved address of its Connection, through its saved proxy; `checkConnectionDraft` checks an unsaved address with the token typed again. A Bridge Connection is checked in two steps: `info` calls `getInfo` of the Bridge protocol with the token, and a passing `info` is stored on the Connection and returned as `info`; `event_delivery` checks that the bridge offers the Connection's event delivery mode. A Slack Connection is checked in steps: `token` calls `auth.test` with the bot token and finds the bot and the workspace; `scopes` reads the `x-oauth-scopes` of that answer, which must name `chat:write`, `channels:read`, `groups:read`, `im:write`, `users:read` and `users:read.email`; in `socket` mode `app_token` calls `auth.test` with the app-level token and `bots.info` with the bot token, whose app ids must be equal. A passing check stores what it found and returns it as `slack`. Runs on the interactive path: when no limiter token is free within `delivery.interactive_budget`, the answer is `503` with `Retry-After`.
Takes a body of the `application/json` content type.
Corresponds with POST /connections/{connection_id}/checks (the `CheckConnection` operationId).
func (*Client) CheckConnectionDraft ¶
func (c *Client) CheckConnectionDraft(ctx context.Context, body CheckConnectionDraftJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
CheckConnectionDraft Check a Connection before saving it
Checks a draft of a Connection of any type, as its form holds it — the address, the bot token typed in the form, the proxy and, for a Bridge, the event delivery mode, for Slack the event mode and the app-level token — with the steps and step codes of `checkConnection`, and stores nothing: no Connection, no bot name, no `info`, no workspace or app, no Audit log entry. Which token goes where: a `bot_token` in the draft is sent to the address in the draft; without one, the stored token of `connection_id` is sent only when the draft's address, normalized as a save normalizes it, and its proxy are the saved ones; otherwise only the dry probe of the type runs, without any token, and the other steps are reported skipped — Mattermost `GET <server_url>/api/v4/system/ping`, Telegram `GET <bot_api_base_url>/bot0:x/getMe`, a Bridge `GET <base_url>/v1/info`, Slack `POST https://slack.com/api/auth.test` without `Authorization`. Slack's address is fixed, so only the proxy of a Slack draft can differ from the saved one; its step `app_token`, in `socket` mode, runs only with a bot token, and with an `app_token` in the draft or the stored one of `connection_id` on the saved proxy, and is reported skipped otherwise. A stored proxy password is used only with the saved proxy type and address. A `connection_id` that names no Connection, a deleted one or one of another type answers `422` `unknown_id` at `/connection_id`; an address or a proxy that a save would refuse answers `422` at its pointer. Runs on the interactive path: a draft with a `connection_id` takes its limiter token from that Connection, and when none is free within `delivery.interactive_budget` the answer is `503` with `Retry-After`; a draft of a new Connection has no limiter and waits for none.
Takes a body of the `application/json` content type.
Corresponds with POST /connections/checks (the `CheckConnectionDraft` operationId).
func (*Client) CheckConnectionDraftWithBody ¶
func (c *Client) CheckConnectionDraftWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
CheckConnectionDraftWithBody Check a Connection before saving it
Checks a draft of a Connection of any type, as its form holds it — the address, the bot token typed in the form, the proxy and, for a Bridge, the event delivery mode, for Slack the event mode and the app-level token — with the steps and step codes of `checkConnection`, and stores nothing: no Connection, no bot name, no `info`, no workspace or app, no Audit log entry. Which token goes where: a `bot_token` in the draft is sent to the address in the draft; without one, the stored token of `connection_id` is sent only when the draft's address, normalized as a save normalizes it, and its proxy are the saved ones; otherwise only the dry probe of the type runs, without any token, and the other steps are reported skipped — Mattermost `GET <server_url>/api/v4/system/ping`, Telegram `GET <bot_api_base_url>/bot0:x/getMe`, a Bridge `GET <base_url>/v1/info`, Slack `POST https://slack.com/api/auth.test` without `Authorization`. Slack's address is fixed, so only the proxy of a Slack draft can differ from the saved one; its step `app_token`, in `socket` mode, runs only with a bot token, and with an `app_token` in the draft or the stored one of `connection_id` on the saved proxy, and is reported skipped otherwise. A stored proxy password is used only with the saved proxy type and address. A `connection_id` that names no Connection, a deleted one or one of another type answers `422` `unknown_id` at `/connection_id`; an address or a proxy that a save would refuse answers `422` at its pointer. Runs on the interactive path: a draft with a `connection_id` takes its limiter token from that Connection, and when none is free within `delivery.interactive_budget` the answer is `503` with `Retry-After`; a draft of a new Connection has no limiter and waits for none.
Takes any type of body and a specified content type.
Corresponds with POST /connections/checks (the `CheckConnectionDraft` operationId).
func (*Client) CheckConnectionWithBody ¶
func (c *Client) CheckConnectionWithBody(ctx context.Context, connectionId ConnectionId, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
CheckConnectionWithBody Check a Connection
Mattermost verifies the token and returns the bot's name. Telegram works in steps and reports the latency and path of each: a dry probe without the token, `getMe`, `getWebhookInfo`. With `base_url` in the body only the dry probe runs against that unsaved address, without the token: a stored token is sent only to the saved address of its Connection, through its saved proxy; `checkConnectionDraft` checks an unsaved address with the token typed again. A Bridge Connection is checked in two steps: `info` calls `getInfo` of the Bridge protocol with the token, and a passing `info` is stored on the Connection and returned as `info`; `event_delivery` checks that the bridge offers the Connection's event delivery mode. A Slack Connection is checked in steps: `token` calls `auth.test` with the bot token and finds the bot and the workspace; `scopes` reads the `x-oauth-scopes` of that answer, which must name `chat:write`, `channels:read`, `groups:read`, `im:write`, `users:read` and `users:read.email`; in `socket` mode `app_token` calls `auth.test` with the app-level token and `bots.info` with the bot token, whose app ids must be equal. A passing check stores what it found and returns it as `slack`. Runs on the interactive path: when no limiter token is free within `delivery.interactive_budget`, the answer is `503` with `Retry-After`.
Takes any type of body and a specified content type.
Corresponds with POST /connections/{connection_id}/checks (the `CheckConnection` operationId).
func (*Client) CheckDestination ¶
func (c *Client) CheckDestination(ctx context.Context, destinationId DestinationId, reqEditors ...RequestEditorFn) (*http.Response, error)
CheckDestination Run the Destination check
Verifies that Muster can still reach and post to the Destination without sending a message: Mattermost token and channel membership; Telegram `getChat` for the channel, its discussion group from `linked_chat_id`, and `getChatMember` for the bot in both; Bridge `checkChannel`; Slack `conversations.info` (item `channel`). A success ends the Broken state. Not available for outgoing webhooks (`422` with `check_not_supported`). Runs on the interactive path: when no limiter token is free within `delivery.interactive_budget`, the answer is `503` with `Retry-After`.
Corresponds with POST /destinations/{destination_id}/checks (the `CheckDestination` operationId).
func (*Client) CheckOidcSettings ¶
func (c *Client) CheckOidcSettings(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
CheckOidcSettings Check the connection to the identity provider
Fetches discovery through the outbound HTTP package, with the saved proxy, and reports whether the groups claim is advertised. While no sign-in has seen the claim in an ID token or userinfo since the groups claim, the issuer, the client ID or the scopes last changed, a claim discovery does not list raises the warning `groups_claim_missing` and a listed one clears it; once a sign-in has seen it, the check changes nothing.
Corresponds with POST /oidc-settings/checks (the `CheckOidcSettings` operationId).
func (*Client) CompleteOidcLink ¶
func (c *Client) CompleteOidcLink(ctx context.Context, params *CompleteOidcLinkParams, reqEditors ...RequestEditorFn) (*http.Response, error)
CompleteOidcLink Complete linking an OIDC identity
Redirect target of the identity provider for a link started by `startOidcLink`; register `MUSTER_PUBLIC_URL/api/v1/me/oidc-identity/callback` at the identity provider next to the sign-in callback. Every outcome is a `302` to the profile page. On success the identity (issuer and subject) is added to the account of the web session that started the link and the password is removed; an offline token granted by the link flow is kept on the user, as at sign-in; this session continues as an OIDC session, the user's other sessions end, and the Audit log records it; the redirect goes to `/profile`. A failure redirects to `/profile?error=<code>`, with one of `identity_linked_elsewhere` (the identity belongs to another user; the Audit log records the refusal), `no_access` (the identity's groups map to no Role and there is no Role for unmatched users, so the account could not sign in through OIDC; the redirect is `/profile?error=no_access` and the Audit log records the refusal with the groups), `oidc_disabled`, `invalid_request` (bad or missing `state`, `code` or `nonce`, no web session, or a `state` started by another session) and `idp_error`.
Corresponds with GET /me/oidc-identity/callback (the `CompleteOidcLink` operationId).
func (*Client) CompleteOidcSignIn ¶
func (c *Client) CompleteOidcSignIn(ctx context.Context, params *CompleteOidcSignInParams, reqEditors ...RequestEditorFn) (*http.Response, error)
CompleteOidcSignIn Complete OIDC sign-in
Redirect target of the identity provider. Every outcome is a `302` to the SPA, so the browser never shows a raw error. On success it sets the session cookie (state `active`, or `totp_required` when the user has TOTP and the identity provider did not assert multi-factor authentication) and redirects to the `return_to` of the start or to `/`. The first sign-in of a new identity creates the user, with the login taken from `preferred_username`, else the email, else `sub`. Accounts are never merged by login or email; an identity reaches an existing account only by linking it from that account's profile (`startOidcLink`). A failure redirects to `/sign-in?error=<code>` with one of `no_access` (the person is in no mapped group; the Audit log records the groups from the claim), `login_taken` (a new identity's login belongs to an existing account; the page says "An account with this login already exists. Sign in with it and link OIDC in your profile.", and the Audit log records the refusal), `account_disabled`, `oidc_disabled`, `invalid_request` (bad or missing `state`, `code` or `nonce`) and `idp_error` (the identity provider or the back channel failed).
Corresponds with GET /sessions/oidc/callback (the `CompleteOidcSignIn` operationId).
func (*Client) CompletePasswordSetup ¶
func (c *Client) CompletePasswordSetup(ctx context.Context, body CompletePasswordSetupJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
CompletePasswordSetup Set a password from a setup link
Uses the single-use token of a password setup link (the link carries it in the URL fragment, so it reaches neither server logs nor referrers). The user is then asked to enrol TOTP if the policy requires it. An unknown token is `404`; a token past `auth.password_setup_link_ttl` is `410` (`link_expired`); one already used or replaced by a newer link is `410` (`link_used`). Like the sign-in, a request that a browser marks as cross-site is `403` (`csrf_invalid`).
Takes a body of the `application/json` content type.
Corresponds with POST /password-setups (the `CompletePasswordSetup` operationId).
func (*Client) CompletePasswordSetupWithBody ¶
func (c *Client) CompletePasswordSetupWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
CompletePasswordSetupWithBody Set a password from a setup link
Uses the single-use token of a password setup link (the link carries it in the URL fragment, so it reaches neither server logs nor referrers). The user is then asked to enrol TOTP if the policy requires it. An unknown token is `404`; a token past `auth.password_setup_link_ttl` is `410` (`link_expired`); one already used or replaced by a newer link is `410` (`link_used`). Like the sign-in, a request that a browser marks as cross-site is `403` (`csrf_invalid`).
Takes any type of body and a specified content type.
Corresponds with POST /password-setups (the `CompletePasswordSetup` operationId).
func (*Client) ConfirmBridgeLink ¶
func (c *Client) ConfirmBridgeLink(ctx context.Context, body ConfirmBridgeLinkJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
ConfirmBridgeLink Confirm a Bridge link with the code
At most 5 attempts (`account_link.bridge_code`); after that the code is void. A wrong code, and a request that is void, used or expired or whose Connection was deleted, answer `422` `link_code_invalid` at `/code`, never saying which, with `attempts_remaining`: the codes the request still takes, 0 once it takes none; a request of another User, or one that is not a Bridge code request, is `404`. The link stores the account's `external_id`, `display_name` and handle as the bridge reported them. No direct message confirms it, and no bridge is called. No operation starts a link for another User, whatever the caller's Role.
Takes a body of the `application/json` content type.
Corresponds with POST /me/account-links/bridge/confirmation (the `ConfirmBridgeLink` operationId).
func (*Client) ConfirmBridgeLinkWithBody ¶
func (c *Client) ConfirmBridgeLinkWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
ConfirmBridgeLinkWithBody Confirm a Bridge link with the code
At most 5 attempts (`account_link.bridge_code`); after that the code is void. A wrong code, and a request that is void, used or expired or whose Connection was deleted, answer `422` `link_code_invalid` at `/code`, never saying which, with `attempts_remaining`: the codes the request still takes, 0 once it takes none; a request of another User, or one that is not a Bridge code request, is `404`. The link stores the account's `external_id`, `display_name` and handle as the bridge reported them. No direct message confirms it, and no bridge is called. No operation starts a link for another User, whatever the caller's Role.
Takes any type of body and a specified content type.
Corresponds with POST /me/account-links/bridge/confirmation (the `ConfirmBridgeLink` operationId).
func (*Client) ConfirmMattermostLink ¶
func (c *Client) ConfirmMattermostLink(ctx context.Context, body ConfirmMattermostLinkJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
ConfirmMattermostLink Confirm a Mattermost link with the code
At most 5 attempts; after that the code is void. A wrong code, and a request that is void, used or expired, answer `422` `link_code_invalid` at `/code`, never saying which, with `attempts_remaining`: the codes the request still takes, 0 once it takes none; a request of another User is `404`. Runs on the interactive path: when no limiter token is free within `delivery.interactive_budget`, the answer is `503` with `Retry-After`. No operation starts a link for another User, whatever the caller's Role.
Takes a body of the `application/json` content type.
Corresponds with POST /me/account-links/mattermost/confirmation (the `ConfirmMattermostLink` operationId).
func (*Client) ConfirmMattermostLinkWithBody ¶
func (c *Client) ConfirmMattermostLinkWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
ConfirmMattermostLinkWithBody Confirm a Mattermost link with the code
At most 5 attempts; after that the code is void. A wrong code, and a request that is void, used or expired, answer `422` `link_code_invalid` at `/code`, never saying which, with `attempts_remaining`: the codes the request still takes, 0 once it takes none; a request of another User is `404`. Runs on the interactive path: when no limiter token is free within `delivery.interactive_budget`, the answer is `503` with `Retry-After`. No operation starts a link for another User, whatever the caller's Role.
Takes any type of body and a specified content type.
Corresponds with POST /me/account-links/mattermost/confirmation (the `ConfirmMattermostLink` operationId).
func (*Client) ConfirmSlackLink ¶
func (c *Client) ConfirmSlackLink(ctx context.Context, body ConfirmSlackLinkJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
ConfirmSlackLink Confirm a Slack link with the code
At most 5 attempts (`account_link.slack_code`); after that the code is void. A wrong code, and a request that is void, used or expired or whose Connection was deleted, answer `422` `link_code_invalid` at `/code`, never saying which, with `attempts_remaining`: the codes the request still takes, 0 once it takes none; a request of another User, or one that is not a Slack request, is `404`. The link stores the account's user id as `external_id`, its `name` as `username`, and its `profile.display_name`, else `profile.real_name`, as `display_name`, which Mentions and the footer use; a second link of the User through the same Connection replaces the first. The bot then confirms "Linked to Muster user {name}" by direct message; a confirmation that fails is only logged. Runs on the interactive path: when no limiter token is free within `delivery.interactive_budget`, or Slack answers `429`, the answer is `503` with `Retry-After`. No operation starts a link for another User, whatever the caller's Role.
Takes a body of the `application/json` content type.
Corresponds with POST /me/account-links/slack/confirmation (the `ConfirmSlackLink` operationId).
func (*Client) ConfirmSlackLinkWithBody ¶
func (c *Client) ConfirmSlackLinkWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
ConfirmSlackLinkWithBody Confirm a Slack link with the code
At most 5 attempts (`account_link.slack_code`); after that the code is void. A wrong code, and a request that is void, used or expired or whose Connection was deleted, answer `422` `link_code_invalid` at `/code`, never saying which, with `attempts_remaining`: the codes the request still takes, 0 once it takes none; a request of another User, or one that is not a Slack request, is `404`. The link stores the account's user id as `external_id`, its `name` as `username`, and its `profile.display_name`, else `profile.real_name`, as `display_name`, which Mentions and the footer use; a second link of the User through the same Connection replaces the first. The bot then confirms "Linked to Muster user {name}" by direct message; a confirmation that fails is only logged. Runs on the interactive path: when no limiter token is free within `delivery.interactive_budget`, or Slack answers `429`, the answer is `503` with `Retry-After`. No operation starts a link for another User, whatever the caller's Role.
Takes any type of body and a specified content type.
Corresponds with POST /me/account-links/slack/confirmation (the `ConfirmSlackLink` operationId).
func (*Client) ConfirmTotpEnrolment ¶
func (c *Client) ConfirmTotpEnrolment(ctx context.Context, body ConfirmTotpEnrolmentJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
ConfirmTotpEnrolment Confirm TOTP enrolment
Confirms with a first code and issues `auth.totp_recovery_codes` single-use recovery codes, shown once. Allowed in the session state `totp_enrolment_required`. `409` (`totp_enrolment_not_started`) without a begun enrolment, `totp_already_enrolled` if already confirmed. Web session only.
Takes a body of the `application/json` content type.
Corresponds with POST /me/totp/confirmation (the `ConfirmTotpEnrolment` operationId).
func (*Client) ConfirmTotpEnrolmentWithBody ¶
func (c *Client) ConfirmTotpEnrolmentWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
ConfirmTotpEnrolmentWithBody Confirm TOTP enrolment
Confirms with a first code and issues `auth.totp_recovery_codes` single-use recovery codes, shown once. Allowed in the session state `totp_enrolment_required`. `409` (`totp_enrolment_not_started`) without a begun enrolment, `totp_already_enrolled` if already confirmed. Web session only.
Takes any type of body and a specified content type.
Corresponds with POST /me/totp/confirmation (the `ConfirmTotpEnrolment` operationId).
func (*Client) ConvertUserToLocal ¶
func (c *Client) ConvertUserToLocal(ctx context.Context, userId UserId, reqEditors ...RequestEditorFn) (*http.Response, error)
ConvertUserToLocal Convert an OIDC account to local
Removes the OIDC identity of an account that signs in through OIDC — created through OIDC or linked — and ends its sessions; the response carries a password setup link, as at user creation, and the Audit log records the conversion. The account keeps its TOTP enrolment and, once the password is set, signs in only with it. `409` with `oidc_not_linked` when the account does not sign in through OIDC.
Corresponds with POST /users/{user_id}/convert-to-local (the `ConvertUserToLocal` operationId).
func (*Client) CreateAlertGroupNote ¶
func (c *Client) CreateAlertGroupNote(ctx context.Context, alertGroupId AlertGroupId, body CreateAlertGroupNoteJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
CreateAlertGroupNote Add a Note
Adds a Note. Service accounts may add Notes; the author is shown as the Service account.
Takes a body of the `application/json` content type.
Corresponds with POST /alert-groups/{alert_group_id}/notes (the `CreateAlertGroupNote` operationId).
func (*Client) CreateAlertGroupNoteWithBody ¶
func (c *Client) CreateAlertGroupNoteWithBody(ctx context.Context, alertGroupId AlertGroupId, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
CreateAlertGroupNoteWithBody Add a Note
Adds a Note. Service accounts may add Notes; the author is shown as the Service account.
Takes any type of body and a specified content type.
Corresponds with POST /alert-groups/{alert_group_id}/notes (the `CreateAlertGroupNote` operationId).
func (*Client) CreateConnection ¶
func (c *Client) CreateConnection(ctx context.Context, body CreateConnectionJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
CreateConnection Create Connection
`type` selects Mattermost, Telegram, Bridge or Slack. The bot token, the push secret, the app-level token and the Slack signing secret are write-only Secrets.
Takes a body of the `application/json` content type.
Corresponds with POST /connections (the `CreateConnection` operationId).
func (*Client) CreateConnectionWithBody ¶
func (c *Client) CreateConnectionWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
CreateConnectionWithBody Create Connection
`type` selects Mattermost, Telegram, Bridge or Slack. The bot token, the push secret, the app-level token and the Slack signing secret are write-only Secrets.
Takes any type of body and a specified content type.
Corresponds with POST /connections (the `CreateConnection` operationId).
func (*Client) CreateDestination ¶
func (c *Client) CreateDestination(ctx context.Context, body CreateDestinationJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
CreateDestination Create Destination
`type` selects Mattermost, Telegram, outgoing webhook, Bridge or Slack. Saving a Mattermost, Telegram, Bridge or Slack Destination runs the Destination check through the interactive path and refuses one that fails it with `422` `validation-failed` and `destination_check_failed`. Creating an outgoing webhook Destination also generates its Signing secret, returned once in `signing_secret` (`null` for the other types). Routes attach Destinations through `destination_ids`.
Takes a body of the `application/json` content type.
Corresponds with POST /destinations (the `CreateDestination` operationId).
func (*Client) CreateDestinationWithBody ¶
func (c *Client) CreateDestinationWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
CreateDestinationWithBody Create Destination
`type` selects Mattermost, Telegram, outgoing webhook, Bridge or Slack. Saving a Mattermost, Telegram, Bridge or Slack Destination runs the Destination check through the interactive path and refuses one that fails it with `422` `validation-failed` and `destination_check_failed`. Creating an outgoing webhook Destination also generates its Signing secret, returned once in `signing_secret` (`null` for the other types). Routes attach Destinations through `destination_ids`.
Takes any type of body and a specified content type.
Corresponds with POST /destinations (the `CreateDestination` operationId).
func (*Client) CreateIntegration ¶
func (c *Client) CreateIntegration(ctx context.Context, body CreateIntegrationJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
CreateIntegration Create Integration
Takes a body of the `application/json` content type.
Corresponds with POST /integrations (the `CreateIntegration` operationId).
func (*Client) CreateIntegrationToken ¶
func (c *Client) CreateIntegrationToken(ctx context.Context, integrationId IntegrationId, body CreateIntegrationTokenJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
CreateIntegrationToken Create an Integration token
The token allows ingestion and Heartbeat and nothing else. The value and the ready Alertmanager snippet that contains it are returned once; a new snippet means a new token.
Takes a body of the `application/json` content type.
Corresponds with POST /integrations/{integration_id}/tokens (the `CreateIntegrationToken` operationId).
func (*Client) CreateIntegrationTokenWithBody ¶
func (c *Client) CreateIntegrationTokenWithBody(ctx context.Context, integrationId IntegrationId, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
CreateIntegrationTokenWithBody Create an Integration token
The token allows ingestion and Heartbeat and nothing else. The value and the ready Alertmanager snippet that contains it are returned once; a new snippet means a new token.
Takes any type of body and a specified content type.
Corresponds with POST /integrations/{integration_id}/tokens (the `CreateIntegrationToken` operationId).
func (*Client) CreateIntegrationWithBody ¶
func (c *Client) CreateIntegrationWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
CreateIntegrationWithBody Create Integration
Takes any type of body and a specified content type.
Corresponds with POST /integrations (the `CreateIntegration` operationId).
func (*Client) CreateLinkRule ¶
func (c *Client) CreateLinkRule(ctx context.Context, body CreateLinkRuleJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
CreateLinkRule Create LinkRule
Takes a body of the `application/json` content type.
Corresponds with POST /link-rules (the `CreateLinkRule` operationId).
func (*Client) CreateLinkRuleWithBody ¶
func (c *Client) CreateLinkRuleWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
CreateLinkRuleWithBody Create LinkRule
Takes any type of body and a specified content type.
Corresponds with POST /link-rules (the `CreateLinkRule` operationId).
func (*Client) CreateLookupTable ¶
func (c *Client) CreateLookupTable(ctx context.Context, body CreateLookupTableJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
CreateLookupTable Create LookupTable
Takes a body of the `application/json` content type.
Corresponds with POST /lookup-tables (the `CreateLookupTable` operationId).
func (*Client) CreateLookupTableWithBody ¶
func (c *Client) CreateLookupTableWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
CreateLookupTableWithBody Create LookupTable
Takes any type of body and a specified content type.
Corresponds with POST /lookup-tables (the `CreateLookupTable` operationId).
func (*Client) CreatePasswordSetupLink ¶
func (c *Client) CreatePasswordSetupLink(ctx context.Context, userId UserId, reqEditors ...RequestEditorFn) (*http.Response, error)
CreatePasswordSetupLink Issue a password setup link
Valid for `auth.password_setup_link_ttl`, single use. Only for an account that signs in with a password (`409` `local_user_only` for an OIDC account; convert it with `convertUserToLocal`).
Corresponds with POST /users/{user_id}/password-setup-links (the `CreatePasswordSetupLink` operationId).
func (*Client) CreatePersonalAccessToken ¶
func (c *Client) CreatePersonalAccessToken(ctx context.Context, body CreatePersonalAccessTokenJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
CreatePersonalAccessToken Create a Personal access token
Shows the token once. Its Permissions must be a subset of the Permissions the caller holds now (`422` `permission_not_held` on `/permissions/<i>`). Web session only: a token can never mint another token.
Takes a body of the `application/json` content type.
Corresponds with POST /me/personal-access-tokens (the `CreatePersonalAccessToken` operationId).
func (*Client) CreatePersonalAccessTokenWithBody ¶
func (c *Client) CreatePersonalAccessTokenWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
CreatePersonalAccessTokenWithBody Create a Personal access token
Shows the token once. Its Permissions must be a subset of the Permissions the caller holds now (`422` `permission_not_held` on `/permissions/<i>`). Web session only: a token can never mint another token.
Takes any type of body and a specified content type.
Corresponds with POST /me/personal-access-tokens (the `CreatePersonalAccessToken` operationId).
func (*Client) CreateRoute ¶
func (c *Client) CreateRoute(ctx context.Context, body CreateRouteJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
CreateRoute Create a Route
Inserted before the Default route. Fields omitted from `policy` are not defaulted: fetch a profile with `listRouteProfiles` to pre-fill the form. Templates are parsed and dry-run against recent Stored Snapshots; a template that fails is refused with `422` and the error position.
Takes a body of the `application/json` content type.
Corresponds with POST /routes (the `CreateRoute` operationId).
func (*Client) CreateRouteWithBody ¶
func (c *Client) CreateRouteWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
CreateRouteWithBody Create a Route
Inserted before the Default route. Fields omitted from `policy` are not defaulted: fetch a profile with `listRouteProfiles` to pre-fill the form. Templates are parsed and dry-run against recent Stored Snapshots; a template that fails is refused with `422` and the error position.
Takes any type of body and a specified content type.
Corresponds with POST /routes (the `CreateRoute` operationId).
func (*Client) CreateServiceAccount ¶
func (c *Client) CreateServiceAccount(ctx context.Context, body CreateServiceAccountJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
CreateServiceAccount Create a Service account
A token may only assign a Role whose Permissions it holds itself (`422` `permission_not_held` at `/role`).
Takes a body of the `application/json` content type.
Corresponds with POST /service-accounts (the `CreateServiceAccount` operationId).
func (*Client) CreateServiceAccountToken ¶
func (c *Client) CreateServiceAccountToken(ctx context.Context, serviceAccountId ServiceAccountId, body CreateServiceAccountTokenJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
CreateServiceAccountToken Create a Service account token
Shows the token once. Web session only: a token can never mint another token.
Takes a body of the `application/json` content type.
Corresponds with POST /service-accounts/{service_account_id}/tokens (the `CreateServiceAccountToken` operationId).
func (*Client) CreateServiceAccountTokenWithBody ¶
func (c *Client) CreateServiceAccountTokenWithBody(ctx context.Context, serviceAccountId ServiceAccountId, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
CreateServiceAccountTokenWithBody Create a Service account token
Shows the token once. Web session only: a token can never mint another token.
Takes any type of body and a specified content type.
Corresponds with POST /service-accounts/{service_account_id}/tokens (the `CreateServiceAccountToken` operationId).
func (*Client) CreateServiceAccountWithBody ¶
func (c *Client) CreateServiceAccountWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
CreateServiceAccountWithBody Create a Service account
A token may only assign a Role whose Permissions it holds itself (`422` `permission_not_held` at `/role`).
Takes any type of body and a specified content type.
Corresponds with POST /service-accounts (the `CreateServiceAccount` operationId).
func (*Client) CreateSession ¶
func (c *Client) CreateSession(ctx context.Context, body CreateSessionJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
CreateSession Sign in with a local account
Creates a session cookie (`HttpOnly; Secure; SameSite=Lax`) and returns the CSRF token. If the user has TOTP and the request carries neither `totp_code` nor `recovery_code`, the session starts in the state `totp_required` and `POST /sessions/current/totp` completes it. Under a TOTP policy that covers a user without TOTP the state is `totp_enrolment_required`. A wrong login, password or code is `401` (`invalid_credentials`) without saying which one was wrong. Failed attempts slow down per account and per source address (`429` with `Retry-After`). A request a browser marks as cross-site (`Sec-Fetch-Site` set to `cross-site`) is refused with `403` (`csrf_invalid`).
Takes a body of the `application/json` content type.
Corresponds with POST /sessions (the `CreateSession` operationId).
func (*Client) CreateSessionWithBody ¶
func (c *Client) CreateSessionWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
CreateSessionWithBody Sign in with a local account
Creates a session cookie (`HttpOnly; Secure; SameSite=Lax`) and returns the CSRF token. If the user has TOTP and the request carries neither `totp_code` nor `recovery_code`, the session starts in the state `totp_required` and `POST /sessions/current/totp` completes it. Under a TOTP policy that covers a user without TOTP the state is `totp_enrolment_required`. A wrong login, password or code is `401` (`invalid_credentials`) without saying which one was wrong. Failed attempts slow down per account and per source address (`429` with `Retry-After`). A request a browser marks as cross-site (`Sec-Fetch-Site` set to `cross-site`) is refused with `403` (`csrf_invalid`).
Takes any type of body and a specified content type.
Corresponds with POST /sessions (the `CreateSession` operationId).
func (*Client) CreateUser ¶
func (c *Client) CreateUser(ctx context.Context, body CreateUserJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
CreateUser Create a local user
Returns a single-use password setup link; Muster sends no email. A token may only assign a Role whose Permissions it holds itself (`422` `permission_not_held` at `/role`).
Takes a body of the `application/json` content type.
Corresponds with POST /users (the `CreateUser` operationId).
func (*Client) CreateUserWithBody ¶
func (c *Client) CreateUserWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
CreateUserWithBody Create a local user
Returns a single-use password setup link; Muster sends no email. A token may only assign a Role whose Permissions it holds itself (`422` `permission_not_held` at `/role`).
Takes any type of body and a specified content type.
Corresponds with POST /users (the `CreateUser` operationId).
func (*Client) DeleteConnection ¶
func (c *Client) DeleteConnection(ctx context.Context, connectionId ConnectionId, params *DeleteConnectionParams, reqEditors ...RequestEditorFn) (*http.Response, error)
DeleteConnection Delete Connection
A Connection used by Destinations cannot be deleted: `409` (`in_use`). Deleted Destinations do not count; deleting the Connection abandons the final edits still pending for them, which end as Not delivered.
Corresponds with DELETE /connections/{connection_id} (the `DeleteConnection` operationId).
func (*Client) DeleteCurrentSession ¶
func (c *Client) DeleteCurrentSession(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
DeleteCurrentSession Sign out
Ends the session, in any state.
Corresponds with DELETE /sessions/current (the `DeleteCurrentSession` operationId).
func (*Client) DeleteDestination ¶
func (c *Client) DeleteDestination(ctx context.Context, destinationId DestinationId, params *DeleteDestinationParams, reqEditors ...RequestEditorFn) (*http.Response, error)
DeleteDestination Delete Destination
Always allowed: the Destination leaves every Route, and open Root messages get one final edit "No longer updated here" and nothing after; then the Destination's secrets are wiped. An outgoing webhook in events mode has no Root message: its queued events are abandoned and end as Not delivered, no final event is sent, and its secrets are wiped at once (in mode `both`, after the final edits of the template mode). It is a soft delete: the Destination is kept for history and no longer counts as using its Connection. There is no `409`; a stale `If-Match` is `412`.
Corresponds with DELETE /destinations/{destination_id} (the `DeleteDestination` operationId).
func (*Client) DeleteDestinationSecret ¶
func (c *Client) DeleteDestinationSecret(ctx context.Context, destinationId DestinationId, secretName SecretName, params *DeleteDestinationSecretParams, reqEditors ...RequestEditorFn) (*http.Response, error)
DeleteDestinationSecret Delete a Secret of a webhook Destination
`If-Match`, when given, is compared with the ETag of `listDestinationSecrets`.
Corresponds with DELETE /destinations/{destination_id}/secrets/{secret_name} (the `DeleteDestinationSecret` operationId).
func (*Client) DeleteIntegration ¶
func (c *Client) DeleteIntegration(ctx context.Context, integrationId IntegrationId, params *DeleteIntegrationParams, reqEditors ...RequestEditorFn) (*http.Response, error)
DeleteIntegration Delete Integration
Soft delete: its tokens stop working at once, its open Alerts are resolved with the reason "Integration {name} deleted", its Internal alerts are resolved, and its open Alert Groups are resolved. The built-in Integration cannot be deleted (`409`, `builtin_immutable`).
Corresponds with DELETE /integrations/{integration_id} (the `DeleteIntegration` operationId).
func (*Client) DeleteLinkRule ¶
func (c *Client) DeleteLinkRule(ctx context.Context, linkRuleId LinkRuleId, params *DeleteLinkRuleParams, reqEditors ...RequestEditorFn) (*http.Response, error)
DeleteLinkRule Delete LinkRule
The built-in "Explore" rule cannot be deleted (`409`).
Corresponds with DELETE /link-rules/{link_rule_id} (the `DeleteLinkRule` operationId).
func (*Client) DeleteLookupTable ¶
func (c *Client) DeleteLookupTable(ctx context.Context, lookupTableId LookupTableId, params *DeleteLookupTableParams, reqEditors ...RequestEditorFn) (*http.Response, error)
DeleteLookupTable Delete LookupTable
Refused with `409` (`in_use`) while the URL template of a Link rule reads the table by its name, `link_rules` naming the rules.
Corresponds with DELETE /lookup-tables/{lookup_table_id} (the `DeleteLookupTable` operationId).
func (*Client) DeleteMyAccountLink ¶
func (c *Client) DeleteMyAccountLink(ctx context.Context, accountLinkId AccountLinkId, reqEditors ...RequestEditorFn) (*http.Response, error)
DeleteMyAccountLink Unlink an own messenger account
Unlinks one of the caller's own messenger accounts. Web session only: a token gets `403` (`session_required`).
Corresponds with DELETE /me/account-links/{account_link_id} (the `DeleteMyAccountLink` operationId).
func (*Client) DeleteMySessions ¶
func (c *Client) DeleteMySessions(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
DeleteMySessions Sign out everywhere
Ends every session of the user, the current one included. Web session only.
Corresponds with DELETE /me/sessions (the `DeleteMySessions` operationId).
func (*Client) DeleteRoute ¶
func (c *Client) DeleteRoute(ctx context.Context, routeId RouteId, params *DeleteRouteParams, reqEditors ...RequestEditorFn) (*http.Response, error)
DeleteRoute Delete a Route
Refused with `409` `default-route-immutable` for the Default route and with `409` `route-has-open-alert-groups` (carrying `open_alert_group_count`) while open Alert Groups remain; move them first with `moveOpenAlertGroups`.
Corresponds with DELETE /routes/{route_id} (the `DeleteRoute` operationId).
func (*Client) DeleteServiceAccount ¶
func (c *Client) DeleteServiceAccount(ctx context.Context, serviceAccountId ServiceAccountId, params *DeleteServiceAccountParams, reqEditors ...RequestEditorFn) (*http.Response, error)
DeleteServiceAccount Delete a Service account
Revokes its tokens.
Corresponds with DELETE /service-accounts/{service_account_id} (the `DeleteServiceAccount` operationId).
func (*Client) DeleteUser ¶
func (c *Client) DeleteUser(ctx context.Context, userId UserId, params *DeleteUserParams, reqEditors ...RequestEditorFn) (*http.Response, error)
DeleteUser Delete a user
Deactivates and pseudonymizes: the name becomes `deleted-user-<id>`, the email is erased, sessions end, tokens are revoked and Account links are removed. Every acknowledged Alert Group the user owns becomes firing without an Owner, with an `unacknowledged` Timeline entry by the system and the reason `owner_deleted`. Audit log rows are never changed. The last active Admin cannot be deleted (`409` `last_admin`).
Corresponds with DELETE /users/{user_id} (the `DeleteUser` operationId).
func (*Client) DeleteUserAccountLink ¶
func (c *Client) DeleteUserAccountLink(ctx context.Context, userId UserId, accountLinkId AccountLinkId, reqEditors ...RequestEditorFn) (*http.Response, error)
DeleteUserAccountLink Remove a user's Account link
Admins can remove any link but cannot create one for someone else. An Admin's own link is removed from the web session only; with a token the answer is `403` (`session_required`).
Corresponds with DELETE /users/{user_id}/account-links/{account_link_id} (the `DeleteUserAccountLink` operationId).
func (*Client) DisableServiceAccount ¶
func (c *Client) DisableServiceAccount(ctx context.Context, serviceAccountId ServiceAccountId, reqEditors ...RequestEditorFn) (*http.Response, error)
DisableServiceAccount Disable a Service account
Its tokens stop working until the account is enabled again.
Corresponds with POST /service-accounts/{service_account_id}/disable (the `DisableServiceAccount` operationId).
func (*Client) DisableUser ¶
func (c *Client) DisableUser(ctx context.Context, userId UserId, reqEditors ...RequestEditorFn) (*http.Response, error)
DisableUser Disable a user
Ends the user's sessions; tokens stop working until the user is enabled again. Every acknowledged Alert Group the user owns becomes firing without an Owner, with an `unacknowledged` Timeline entry by the system and the reason `owner_disabled`; enabling the user again gives no acknowledgement back. The last active Admin cannot be disabled (`409` `last_admin`).
Corresponds with POST /users/{user_id}/disable (the `DisableUser` operationId).
func (*Client) DismissRouteSuggestion ¶
func (c *Client) DismissRouteSuggestion(ctx context.Context, suggestionId SuggestionId, reqEditors ...RequestEditorFn) (*http.Response, error)
DismissRouteSuggestion Dismiss a Route suggestion
Remembered for the calling user only, so Service account tokens get `403` (`service_account_not_allowed`). `409` (`suggestion_obsolete`) when it no longer applies.
Corresponds with POST /route-suggestions/{suggestion_id}/dismiss (the `DismissRouteSuggestion` operationId).
func (*Client) EnableServiceAccount ¶
func (c *Client) EnableServiceAccount(ctx context.Context, serviceAccountId ServiceAccountId, reqEditors ...RequestEditorFn) (*http.Response, error)
EnableServiceAccount Enable a Service account
Makes a disabled Service account usable again; its tokens work again.
Corresponds with POST /service-accounts/{service_account_id}/enable (the `EnableServiceAccount` operationId).
func (*Client) EnableUser ¶
func (c *Client) EnableUser(ctx context.Context, userId UserId, reqEditors ...RequestEditorFn) (*http.Response, error)
EnableUser Enable a user
Corresponds with POST /users/{user_id}/enable (the `EnableUser` operationId).
func (*Client) GenerateSigningSecret ¶
func (c *Client) GenerateSigningSecret(ctx context.Context, destinationId DestinationId, reqEditors ...RequestEditorFn) (*http.Response, error)
GenerateSigningSecret Regenerate the Signing secret
The first Signing secret is generated when the Destination is created. This returns a new one, once; requests then carry signatures with both the new and the previous secret until `retirePreviousSigningSecret`.
Corresponds with POST /destinations/{destination_id}/signing-secret (the `GenerateSigningSecret` operationId).
func (*Client) GetAlertGroup ¶
func (c *Client) GetAlertGroup(ctx context.Context, alertGroupId AlertGroupId, reqEditors ...RequestEditorFn) (*http.Response, error)
GetAlertGroup Read an Alert Group
An Alert Group whose details were removed by retention opens as its summary with the notice `details_removed`; its Notes stay until the summary row is removed.
Corresponds with GET /alert-groups/{alert_group_id} (the `GetAlertGroup` operationId).
func (*Client) GetAlertGroupCounts ¶
func (c *Client) GetAlertGroupCounts(ctx context.Context, params *GetAlertGroupCountsParams, reqEditors ...RequestEditorFn) (*http.Response, error)
GetAlertGroupCounts Count Alert Groups per status
Counts per status tab for the same filters as `listAlertGroups`, `status` excluded.
Corresponds with GET /alert-group-counts (the `GetAlertGroupCounts` operationId).
func (*Client) GetAlertGroupStatistics ¶
func (c *Client) GetAlertGroupStatistics(ctx context.Context, params *GetAlertGroupStatisticsParams, reqEditors ...RequestEditorFn) (*http.Response, error)
GetAlertGroupStatistics Read Alert Group statistics
Number of Alert Groups, time to acknowledge and time to resolve (median and 95th percentile), as totals and per day of start, from the summary rows, one item per Route or per Integration as `group_by` says. Narrow it with `route` or `integration` ids (the one that matches `group_by`); without them every Route or Integration is returned. An Alert Group with Alerts from several Integrations counts for each.
Corresponds with GET /alert-group-statistics (the `GetAlertGroupStatistics` operationId).
func (*Client) GetAlertGroupTimeline ¶
func (c *Client) GetAlertGroupTimeline(ctx context.Context, alertGroupId AlertGroupId, params *GetAlertGroupTimelineParams, reqEditors ...RequestEditorFn) (*http.Response, error)
GetAlertGroupTimeline Read the Timeline of an Alert Group
Entries of all kinds, with delivery events merged in by time as the kind `delivery`. Lifecycle events carry `event`, `loudness` and `mentions`. Notes are kept as long as the summary row, so after the details were removed by retention the Timeline still returns them.
Corresponds with GET /alert-groups/{alert_group_id}/timeline (the `GetAlertGroupTimeline` operationId).
func (*Client) GetConnection ¶
func (c *Client) GetConnection(ctx context.Context, connectionId ConnectionId, reqEditors ...RequestEditorFn) (*http.Response, error)
GetConnection Read Connection
Corresponds with GET /connections/{connection_id} (the `GetConnection` operationId).
func (*Client) GetCurrentSession ¶
func (c *Client) GetCurrentSession(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
GetCurrentSession Read the current session
Returns the session in any state, including the CSRF token the SPA sends on mutating requests.
Corresponds with GET /sessions/current (the `GetCurrentSession` operationId).
func (*Client) GetDestination ¶
func (c *Client) GetDestination(ctx context.Context, destinationId DestinationId, reqEditors ...RequestEditorFn) (*http.Response, error)
GetDestination Read Destination
Corresponds with GET /destinations/{destination_id} (the `GetDestination` operationId).
func (*Client) GetIntegration ¶
func (c *Client) GetIntegration(ctx context.Context, integrationId IntegrationId, reqEditors ...RequestEditorFn) (*http.Response, error)
GetIntegration Read Integration
Corresponds with GET /integrations/{integration_id} (the `GetIntegration` operationId).
func (*Client) GetKeyring ¶
func (c *Client) GetKeyring(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
GetKeyring Read the Keyring status
Every key id in the environment, which is active, which live replicas hold which, and whether anything still depends on an older key. Activation is the CLI command `muster secrets rotate-key --activate <id> --actor <name>`.
Corresponds with GET /organization/keyring (the `GetKeyring` operationId).
func (*Client) GetLinkRule ¶
func (c *Client) GetLinkRule(ctx context.Context, linkRuleId LinkRuleId, reqEditors ...RequestEditorFn) (*http.Response, error)
GetLinkRule Read LinkRule
Corresponds with GET /link-rules/{link_rule_id} (the `GetLinkRule` operationId).
func (*Client) GetLookupTable ¶
func (c *Client) GetLookupTable(ctx context.Context, lookupTableId LookupTableId, reqEditors ...RequestEditorFn) (*http.Response, error)
GetLookupTable Read LookupTable
Corresponds with GET /lookup-tables/{lookup_table_id} (the `GetLookupTable` operationId).
func (*Client) GetMe ¶
GetMe Read own profile
The caller and the effective Permissions, narrowed by the token if one is used. Service account tokens get `403` (`service_account_not_allowed`).
Corresponds with GET /me (the `GetMe` operationId).
func (*Client) GetMyTotp ¶
func (c *Client) GetMyTotp(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
GetMyTotp Read own TOTP status
Whether TOTP is enrolled, a first code is awaited, and how many recovery codes remain. Service account tokens get `403` (`service_account_not_allowed`).
Corresponds with GET /me/totp (the `GetMyTotp` operationId).
func (*Client) GetOidcSettings ¶
func (c *Client) GetOidcSettings(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
GetOidcSettings Read OIDC settings
The client secret is never returned; `client_secret_status` shows whether it is set and when it changed.
Corresponds with GET /oidc-settings (the `GetOidcSettings` operationId).
func (*Client) GetOpenApiSpec ¶
func (c *Client) GetOpenApiSpec(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
GetOpenApiSpec Read this specification
The specification the binary was built from, as checked in at `api/openapi.yaml`.
Corresponds with GET /openapi.yaml (the `GetOpenApiSpec` operationId).
func (*Client) GetOrganization ¶
func (c *Client) GetOrganization(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
GetOrganization Read the Organization
Readable by every signed-in identity (the basic read of the Organization needs no Permission). Secrets (the outgoing heartbeat URL, proxy passwords) show only `set` and `updated_at`.
Corresponds with GET /organization (the `GetOrganization` operationId).
func (*Client) GetOutboundPolicy ¶
func (c *Client) GetOutboundPolicy(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
GetOutboundPolicy Read the outbound address policy
The outbound address policy with the rules that always apply. Needs `organization:read`.
Corresponds with GET /organization/outbound-policy (the `GetOutboundPolicy` operationId).
func (*Client) GetRequestRecord ¶
func (c *Client) GetRequestRecord(ctx context.Context, requestRecordId RequestRecordId, reqEditors ...RequestEditorFn) (*http.Response, error)
GetRequestRecord Read a record of the Request log
One record with its headers and bodies, masked. The caller needs the Permission of the record's owner, `connections:read` for a Connection's record — even one listed through a messenger Destination with `destinations:read` — and `destinations:read` for an outgoing webhook's (`403` otherwise). A record past `request_log.max_age` or past the newest `request_log.max_records` of its owner, or whose owner is deleted, is `404`, as it is in no list. Headers, bodies and the error are untrusted text.
Corresponds with GET /request-log/{request_record_id} (the `GetRequestRecord` operationId).
func (*Client) GetRoute ¶
func (c *Client) GetRoute(ctx context.Context, routeId RouteId, reqEditors ...RequestEditorFn) (*http.Response, error)
GetRoute Read a Route
Corresponds with GET /routes/{route_id} (the `GetRoute` operationId).
func (*Client) GetServiceAccount ¶
func (c *Client) GetServiceAccount(ctx context.Context, serviceAccountId ServiceAccountId, reqEditors ...RequestEditorFn) (*http.Response, error)
GetServiceAccount Read a Service account
Corresponds with GET /service-accounts/{service_account_id} (the `GetServiceAccount` operationId).
func (*Client) GetSignInOptions ¶
func (c *Client) GetSignInOptions(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
GetSignInOptions Read sign-in options
Whether the sign-in page shows the OIDC button next to the local form. Local sign-in is always available; no setting turns it off. Carries no version or other detail about the installation.
Corresponds with GET /sign-in-options (the `GetSignInOptions` operationId).
func (*Client) GetSigningSecret ¶
func (c *Client) GetSigningSecret(ctx context.Context, destinationId DestinationId, reqEditors ...RequestEditorFn) (*http.Response, error)
GetSigningSecret Read the Signing secret status
`409` (`not_webhook_destination`) for a Destination that is not an outgoing webhook.
Corresponds with GET /destinations/{destination_id}/signing-secret (the `GetSigningSecret` operationId).
func (*Client) GetStoredSnapshot ¶
func (c *Client) GetStoredSnapshot(ctx context.Context, storedSnapshotId StoredSnapshotId, reqEditors ...RequestEditorFn) (*http.Response, error)
GetStoredSnapshot Read a Stored Snapshot as received
Corresponds with GET /stored-snapshots/{stored_snapshot_id} (the `GetStoredSnapshot` operationId).
func (*Client) GetSystemStatus ¶
func (c *Client) GetSystemStatus(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
GetSystemStatus Read the System status
Read-only: replicas and the Leader with their key ids, the recovery state, delivery queues, Broken Destinations, Integrations with Heartbeat lost or truncated Snapshots, template errors, active Storms and the last outgoing heartbeat.
Corresponds with GET /system-status (the `GetSystemStatus` operationId).
func (*Client) GetUser ¶
func (c *Client) GetUser(ctx context.Context, userId UserId, reqEditors ...RequestEditorFn) (*http.Response, error)
GetUser Read a user
Corresponds with GET /users/{user_id} (the `GetUser` operationId).
func (*Client) HeartbeatGet ¶
func (c *Client) HeartbeatGet(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
HeartbeatGet Heartbeat signal (GET)
Any request carrying one of the Integration's tokens counts as a signal; the body is ignored. The first signal moves the Heartbeat from waiting to live. While the Integration's Heartbeat is off, the request is answered `204` and nothing is recorded.
Corresponds with GET /heartbeat (the `HeartbeatGet` operationId).
func (*Client) HeartbeatGetWithPathToken ¶
func (c *Client) HeartbeatGetWithPathToken(ctx context.Context, ingestToken IngestTokenInPath, reqEditors ...RequestEditorFn) (*http.Response, error)
HeartbeatGetWithPathToken Heartbeat signal (GET, token in the path)
Corresponds with GET /heartbeat/{ingest_token} (the `HeartbeatGetWithPathToken` operationId).
func (*Client) HeartbeatPost ¶
func (c *Client) HeartbeatPost(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
HeartbeatPost Heartbeat signal (POST)
Any request carrying one of the Integration's tokens counts as a signal; the body is ignored. The first signal moves the Heartbeat from waiting to live. While the Integration's Heartbeat is off, the request is answered `204` and nothing is recorded.
Corresponds with POST /heartbeat (the `HeartbeatPost` operationId).
func (*Client) HeartbeatPostWithPathToken ¶
func (c *Client) HeartbeatPostWithPathToken(ctx context.Context, ingestToken IngestTokenInPath, reqEditors ...RequestEditorFn) (*http.Response, error)
HeartbeatPostWithPathToken Heartbeat signal (POST, token in the path)
Corresponds with POST /heartbeat/{ingest_token} (the `HeartbeatPostWithPathToken` operationId).
func (*Client) IngestSnapshotWithBody ¶
func (c *Client) IngestSnapshotWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
IngestSnapshotWithBody Receive an Alertmanager webhook
Checks the token, then the body size, stores the body as a Stored Snapshot exactly as received and answers `202` after the write commits, without waiting for processing. It never answers `400`: a body that is not JSON, or does not look like an Alertmanager payload, is stored and fails later as a processing error (log event, `muster_ingest_failed_snapshots_total`, Stored Snapshot state `failed`), because Alertmanager does not retry a `4xx` and the notification would be lost. Not rate-limited. Counted in `muster_ingest_requests_total` with the outcome `accepted`, `unauthorized` or `too_large`. The only `5xx` is a failed write, which Alertmanager retries. Ingestion is excluded from request validation by the spec: the handler reads the raw body and the generated types are not used for it.
Takes any type of body and a specified content type.
Corresponds with POST /ingest (the `IngestSnapshot` operationId).
func (*Client) IngestSnapshotWithPathTokenWithBody ¶
func (c *Client) IngestSnapshotWithPathTokenWithBody(ctx context.Context, ingestToken IngestTokenInPath, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
IngestSnapshotWithPathTokenWithBody Receive an Alertmanager webhook (token in the path)
For senders that cannot set a header. Identical to `ingestSnapshot`. Logs record the route pattern, never the path.
Takes any type of body and a specified content type.
Corresponds with POST /ingest/{ingest_token} (the `IngestSnapshotWithPathToken` operationId).
func (*Client) ListAlertGroupAlerts ¶
func (c *Client) ListAlertGroupAlerts(ctx context.Context, alertGroupId AlertGroupId, params *ListAlertGroupAlertsParams, reqEditors ...RequestEditorFn) (*http.Response, error)
ListAlertGroupAlerts List the Alerts of an Alert Group
Corresponds with GET /alert-groups/{alert_group_id}/alerts (the `ListAlertGroupAlerts` operationId).
func (*Client) ListAlertGroupDeliveries ¶
func (c *Client) ListAlertGroupDeliveries(ctx context.Context, alertGroupId AlertGroupId, reqEditors ...RequestEditorFn) (*http.Response, error)
ListAlertGroupDeliveries Read delivery state per Destination
Corresponds with GET /alert-groups/{alert_group_id}/deliveries (the `ListAlertGroupDeliveries` operationId).
func (*Client) ListAlertGroupNotes ¶
func (c *Client) ListAlertGroupNotes(ctx context.Context, alertGroupId AlertGroupId, params *ListAlertGroupNotesParams, reqEditors ...RequestEditorFn) (*http.Response, error)
ListAlertGroupNotes List Notes
Notes are kept as long as the Alert Group's summary row (`retention.alert_group_summaries`), also after its Alerts and Timeline were removed by retention, and are deleted with the summary row.
Corresponds with GET /alert-groups/{alert_group_id}/notes (the `ListAlertGroupNotes` operationId).
func (*Client) ListAlertGroups ¶
func (c *Client) ListAlertGroups(ctx context.Context, params *ListAlertGroupsParams, reqEditors ...RequestEditorFn) (*http.Response, error)
ListAlertGroups List Alert Groups
The main working list. Without `status` it returns open Alert Groups (firing, acknowledged, snoozed). Without `from` and `to` it covers the last `alert_group.list_range` (7 days) and selects Alert Groups whose lifetime overlaps the range, so one that has been firing for weeks is always included. Search matches `#N` and text in the title or `summary`. Changes arrive as `alert-group` and `alert-groups` hints.
Corresponds with GET /alert-groups (the `ListAlertGroups` operationId).
func (*Client) ListAlertmanagerRoutes ¶
func (c *Client) ListAlertmanagerRoutes(ctx context.Context, integrationId IntegrationId, reqEditors ...RequestEditorFn) (*http.Response, error)
ListAlertmanagerRoutes List learned Alertmanager routes
Routes taken from the `groupKey` of Snapshots, with the learned repeat interval and the resulting time to resolve by absence.
Corresponds with GET /integrations/{integration_id}/alertmanager-routes (the `ListAlertmanagerRoutes` operationId).
func (*Client) ListAuditLog ¶
func (c *Client) ListAuditLog(ctx context.Context, params *ListAuditLogParams, reqEditors ...RequestEditorFn) (*http.Response, error)
ListAuditLog List Audit log entries
Newest first. The log is append-only; configuration changes carry a before/after diff in which Secrets only show that they changed.
Corresponds with GET /audit-log (the `ListAuditLog` operationId).
func (*Client) ListConnectionChannels ¶
func (c *Client) ListConnectionChannels(ctx context.Context, connectionId ConnectionId, params *ListConnectionChannelsParams, reqEditors ...RequestEditorFn) (*http.Response, error)
ListConnectionChannels List channels visible to the bot
The channels of a Connection's bot for the channel picker of the Destination form. A Mattermost Connection answers `MattermostChannelList`: the bot's teams, `team_id` alone when given, and its channels in each. A Slack Connection answers `SlackChannelList`: the public and private channels the bot is a member of and that are not archived, read with `conversations.list` (`types=public_channel,private_channel`, `exclude_archived=true`, `limit=200`) page by page, at most 5 pages, `truncated` when more were left; it ignores `team_id`. A Telegram or Bridge Connection answers `409`: the Admin enters the channel. Requires `connections:write` because it calls out with the bot token. Runs on the interactive path: when no limiter token is free within `delivery.interactive_budget`, or Slack answers a page with `429`, the answer is `503` with `Retry-After`, Slack's own when it sent one, and nothing more is read.
Corresponds with GET /connections/{connection_id}/channels (the `ListConnectionChannels` operationId).
func (*Client) ListConnections ¶
func (c *Client) ListConnections(ctx context.Context, params *ListConnectionsParams, reqEditors ...RequestEditorFn) (*http.Response, error)
ListConnections List connections
Corresponds with GET /connections (the `ListConnections` operationId).
func (*Client) ListDestinationSecrets ¶
func (c *Client) ListDestinationSecrets(ctx context.Context, destinationId DestinationId, reqEditors ...RequestEditorFn) (*http.Response, error)
ListDestinationSecrets List the Secrets of a webhook Destination
Names with `set` and the time of the last change. Values are never returned. `409` (`not_webhook_destination`) for a Destination that is not an outgoing webhook.
Corresponds with GET /destinations/{destination_id}/secrets (the `ListDestinationSecrets` operationId).
func (*Client) ListDestinations ¶
func (c *Client) ListDestinations(ctx context.Context, params *ListDestinationsParams, reqEditors ...RequestEditorFn) (*http.Response, error)
ListDestinations List destinations
All types, with health. Outgoing webhook URL and header templates are shown with Secret references only.
Corresponds with GET /destinations (the `ListDestinations` operationId).
func (*Client) ListIntegrationAlerts ¶
func (c *Client) ListIntegrationAlerts(ctx context.Context, integrationId IntegrationId, params *ListIntegrationAlertsParams, reqEditors ...RequestEditorFn) (*http.Response, error)
ListIntegrationAlerts List the Alerts view of an Integration
The Alerts Muster currently tracks for the Integration. Resolved Alerts stay for `retention.alert_details`. Label filters follow the scheme of `label` on `listAlertGroups`.
Corresponds with GET /integrations/{integration_id}/alerts (the `ListIntegrationAlerts` operationId).
func (*Client) ListIntegrationTokens ¶
func (c *Client) ListIntegrationTokens(ctx context.Context, integrationId IntegrationId, reqEditors ...RequestEditorFn) (*http.Response, error)
ListIntegrationTokens List Integration tokens
Values are never returned.
Corresponds with GET /integrations/{integration_id}/tokens (the `ListIntegrationTokens` operationId).
func (*Client) ListIntegrations ¶
func (c *Client) ListIntegrations(ctx context.Context, params *ListIntegrationsParams, reqEditors ...RequestEditorFn) (*http.Response, error)
ListIntegrations List integrations
Includes the built-in "Muster" Integration, marked `builtin`.
Corresponds with GET /integrations (the `ListIntegrations` operationId).
func (*Client) ListLinkRules ¶
func (c *Client) ListLinkRules(ctx context.Context, params *ListLinkRulesParams, reqEditors ...RequestEditorFn) (*http.Response, error)
ListLinkRules List linkrules
Corresponds with GET /link-rules (the `ListLinkRules` operationId).
func (*Client) ListLinkableConnections ¶
func (c *Client) ListLinkableConnections(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
ListLinkableConnections List the Connections an account can be linked through
The profile's own short list of the Connections that are not deleted, for picking one when linking a messenger account. It needs no Permission, independently of `connections:read`, and shows only the id, the name and the messenger of each Connection, and for a Bridge Connection how an account can be linked through it — `link_methods` and `handle_kind`, from the Connection's last `info`. Service account tokens get `403` (`service_account_not_allowed`).
Corresponds with GET /me/account-links/connections (the `ListLinkableConnections` operationId).
func (*Client) ListLookupTables ¶
func (c *Client) ListLookupTables(ctx context.Context, params *ListLookupTablesParams, reqEditors ...RequestEditorFn) (*http.Response, error)
ListLookupTables List lookuptables
Corresponds with GET /lookup-tables (the `ListLookupTables` operationId).
func (*Client) ListMyAccountLinks ¶
func (c *Client) ListMyAccountLinks(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
ListMyAccountLinks List own Account links
Service account tokens get `403` (`service_account_not_allowed`).
Corresponds with GET /me/account-links (the `ListMyAccountLinks` operationId).
func (*Client) ListMySessions ¶
func (c *Client) ListMySessions(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
ListMySessions List own sessions
Sessions of the user, the current one marked.
Corresponds with GET /me/sessions (the `ListMySessions` operationId).
func (*Client) ListPersonalAccessTokens ¶
func (c *Client) ListPersonalAccessTokens(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
ListPersonalAccessTokens List own Personal access tokens
Values are never returned. Each token shows when and from which address it was last used. Service account tokens get `403` (`service_account_not_allowed`).
Corresponds with GET /me/personal-access-tokens (the `ListPersonalAccessTokens` operationId).
func (*Client) ListRelatedAlertGroups ¶
func (c *Client) ListRelatedAlertGroups(ctx context.Context, alertGroupId AlertGroupId, params *ListRelatedAlertGroupsParams, reqEditors ...RequestEditorFn) (*http.Response, error)
ListRelatedAlertGroups List previous Alert Groups with the same key
Alert Groups of the same Route with the same Group key values, newest first.
Corresponds with GET /alert-groups/{alert_group_id}/related (the `ListRelatedAlertGroups` operationId).
func (*Client) ListRequestLog ¶
func (c *Client) ListRequestLog(ctx context.Context, params *ListRequestLogParams, reqEditors ...RequestEditorFn) (*http.Response, error)
ListRequestLog List the Request log of a Connection, a Destination or a check run
The records of exactly one owner, or of one check run, newest first: `connection` lists every record of a Connection, `destination` every record of an outgoing webhook Destination or, for a messenger Destination, the records of its Connection that name it; `run` alone lists the records of that check run whose owner is a Connection or nobody — the checks before saving of new Connections — and beside an owner it narrows that owner's list. Neither an owner nor a run, or both owners, answer `422` with the code `one_of_required`. The caller needs `connections:read` to name a Connection or a run alone and `destinations:read` to name a Destination (`403` otherwise); an unknown or deleted owner is `404`. Only records newer than `request_log.max_age` and among the newest `request_log.max_records` of their owner are listed — a messenger Destination's within its Connection's — so a list never shows more than that bound. Each record is one attempt of a request: its URL as errors show it, its status, latency and path, without headers or bodies, which `getRequestRecord` reads.
Corresponds with GET /request-log (the `ListRequestLog` operationId).
func (*Client) ListRoles ¶
func (c *Client) ListRoles(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
ListRoles List Roles with their Permissions
Corresponds with GET /roles (the `ListRoles` operationId).
func (*Client) ListRouteProfiles ¶
func (c *Client) ListRouteProfiles(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
ListRouteProfiles List Route profiles
The two starting sets of Route settings, On-call and Informational, read from the built-in defaults. They only pre-fill the create form; they cannot be edited or stored.
Corresponds with GET /route-profiles (the `ListRouteProfiles` operationId).
func (*Client) ListRouteSuggestions ¶
func (c *Client) ListRouteSuggestions(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
ListRouteSuggestions List Route suggestions
A Route for `MusterHeartbeatLost` when an Integration has a Heartbeat and no Route other than the Default route matches it; from the first Destination on, a Route for `alertname=~"Muster.*"`. Dismissals are remembered per user.
Corresponds with GET /route-suggestions (the `ListRouteSuggestions` operationId).
func (*Client) ListRoutes ¶
func (c *Client) ListRoutes(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
ListRoutes List Routes in evaluation order
The first Route whose Matchers all match takes an Alert. The Default route is always last. The ETag covers the order and is what `reorderRoutes` expects in `If-Match`.
Corresponds with GET /routes (the `ListRoutes` operationId).
func (*Client) ListServiceAccountTokens ¶
func (c *Client) ListServiceAccountTokens(ctx context.Context, serviceAccountId ServiceAccountId, reqEditors ...RequestEditorFn) (*http.Response, error)
ListServiceAccountTokens List tokens of a Service account
Corresponds with GET /service-accounts/{service_account_id}/tokens (the `ListServiceAccountTokens` operationId).
func (*Client) ListServiceAccounts ¶
func (c *Client) ListServiceAccounts(ctx context.Context, params *ListServiceAccountsParams, reqEditors ...RequestEditorFn) (*http.Response, error)
ListServiceAccounts List Service accounts
Corresponds with GET /service-accounts (the `ListServiceAccounts` operationId).
func (*Client) ListSeverityValues ¶
func (c *Client) ListSeverityValues(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
ListSeverityValues List severity values seen
Values of the severity label seen in the last `organization.severity_values_window`, with counts, the most frequent first and at most 500 values; unmapped values count as warning.
Corresponds with GET /organization/severity-values (the `ListSeverityValues` operationId).
func (*Client) ListSnoozePresets ¶
func (c *Client) ListSnoozePresets(ctx context.Context, params *ListSnoozePresetsParams, reqEditors ...RequestEditorFn) (*http.Response, error)
ListSnoozePresets List the ends of the Snooze presets
The end that a Snooze with each Snooze preset would set now, in the order `tomorrow`, `week_start`, computed like the Snooze itself from `organization.workday_start` and `organization.week_start` on the business clock. The time zone is `time_zone` when given, else the profile time zone of the User the caller acts as, else the Organization's; the answer names the one it used. A time zone Muster does not know (or `Local`) is `422` `invalid_format` at `/query/time_zone`. It reads and changes nothing else.
Corresponds with GET /snooze-presets (the `ListSnoozePresets` operationId).
func (*Client) ListStoredSnapshots ¶
func (c *Client) ListStoredSnapshots(ctx context.Context, params *ListStoredSnapshotsParams, reqEditors ...RequestEditorFn) (*http.Response, error)
ListStoredSnapshots List Stored Snapshots
Kept for `retention.stored_snapshots`. Replay is the CLI command `muster ingest replay`.
Corresponds with GET /stored-snapshots (the `ListStoredSnapshots` operationId).
func (*Client) ListSystemNotices ¶
func (c *Client) ListSystemNotices(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
ListSystemNotices List active Organization-wide notices
"Recovering after downtime" for every signed-in user, "no replica is leading" for Admins. Changes arrive as `system-notices` hints.
Corresponds with GET /system-notices (the `ListSystemNotices` operationId).
func (*Client) ListUserAccountLinks ¶
func (c *Client) ListUserAccountLinks(ctx context.Context, userId UserId, reqEditors ...RequestEditorFn) (*http.Response, error)
ListUserAccountLinks List a user's Account links
Corresponds with GET /users/{user_id}/account-links (the `ListUserAccountLinks` operationId).
func (*Client) ListUserDirectory ¶
func (c *Client) ListUserDirectory(ctx context.Context, params *ListUserDirectoryParams, reqEditors ...RequestEditorFn) (*http.Response, error)
ListUserDirectory List users for pickers and filters
Name, login and whether the user is deactivated, for the Owner filter, Mention settings and other pickers. Includes deleted users, because their acknowledgements stay visible. Available to everyone who reads Alert Groups, unlike `listUsers`.
Corresponds with GET /user-directory (the `ListUserDirectory` operationId).
func (*Client) ListUsers ¶
func (c *Client) ListUsers(ctx context.Context, params *ListUsersParams, reqEditors ...RequestEditorFn) (*http.Response, error)
ListUsers List users
Corresponds with GET /users (the `ListUsers` operationId).
func (*Client) MattermostAction ¶
func (c *Client) MattermostAction(ctx context.Context, connectionId ConnectionId, body MattermostActionJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
MattermostAction Receive a Mattermost button press
Sent by the Mattermost server. Mattermost does not sign the request: Muster verifies the signed action id with the key it names, checks that `post_id` and `channel_id` belong to the post the id was issued for, maps `user_id` to a User through the Account link of this Connection and dispatches the Command with the Transport `mattermost`. Every request is answered with `200` and a JSON object, an unknown or deleted Connection, a bad signature and a body that is not JSON or does not match `MattermostActionRequest` included; request validation does not answer `400` here. Whatever the person who pressed must read — a refusal, a failure, "not linked", or "not verified" for a press on a post Muster delivered in that channel — goes first as a separate ephemeral post, shown in the channel view, and the answer is then an empty object. That post needs the `create_post_ephemeral` permission, which a bot with the role Member lacks; when it is refused, or fails in any other way, the answer carries the text as `ephemeral_text`, which Mattermost shows to that person alone in the Thread of the Root message and which needs no permission. Every other answer is an empty object, so the endpoint tells a caller nothing about which Connection ids exist. The answer never carries `update`: only the delivery worker edits the Root message.
Takes a body of the `application/json` content type.
Corresponds with POST /callbacks/mattermost/{connection_id} (the `MattermostAction` operationId).
func (*Client) MattermostActionWithBody ¶
func (c *Client) MattermostActionWithBody(ctx context.Context, connectionId ConnectionId, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
MattermostActionWithBody Receive a Mattermost button press
Sent by the Mattermost server. Mattermost does not sign the request: Muster verifies the signed action id with the key it names, checks that `post_id` and `channel_id` belong to the post the id was issued for, maps `user_id` to a User through the Account link of this Connection and dispatches the Command with the Transport `mattermost`. Every request is answered with `200` and a JSON object, an unknown or deleted Connection, a bad signature and a body that is not JSON or does not match `MattermostActionRequest` included; request validation does not answer `400` here. Whatever the person who pressed must read — a refusal, a failure, "not linked", or "not verified" for a press on a post Muster delivered in that channel — goes first as a separate ephemeral post, shown in the channel view, and the answer is then an empty object. That post needs the `create_post_ephemeral` permission, which a bot with the role Member lacks; when it is refused, or fails in any other way, the answer carries the text as `ephemeral_text`, which Mattermost shows to that person alone in the Thread of the Root message and which needs no permission. Every other answer is an empty object, so the endpoint tells a caller nothing about which Connection ids exist. The answer never carries `update`: only the delivery worker edits the Root message.
Takes any type of body and a specified content type.
Corresponds with POST /callbacks/mattermost/{connection_id} (the `MattermostAction` operationId).
func (*Client) MoveOpenAlertGroups ¶
func (c *Client) MoveOpenAlertGroups(ctx context.Context, routeId RouteId, reqEditors ...RequestEditorFn) (*http.Response, error)
MoveOpenAlertGroups Move open Alert Groups to the Default route
Adds a `moved_to_default_route` Timeline entry to each moved Alert Group. Afterwards the Route can be deleted. A moved Alert Group keeps its Group key values but takes no new Alerts and never reopens; it stays open until its Alerts resolve or a person resolves it.
Corresponds with POST /routes/{route_id}/move-open-alert-groups (the `MoveOpenAlertGroups` operationId).
func (*Client) PreviewDestination ¶
func (c *Client) PreviewDestination(ctx context.Context, destinationId DestinationId, body PreviewDestinationJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
PreviewDestination Preview a message or request
Renders the Root message or the webhook requests for a chosen Alert Group or the example without sending anything. For a Bridge Destination the item `message` is the envelope as Muster would post it, as JSON (format `json`). For a Slack Destination the item `message` is the body of `chat.postMessage` as JSON (format `json`), and its `request` that call with the bot token masked.
Takes a body of the `application/json` content type.
Corresponds with POST /destinations/{destination_id}/previews (the `PreviewDestination` operationId).
func (*Client) PreviewDestinationWithBody ¶
func (c *Client) PreviewDestinationWithBody(ctx context.Context, destinationId DestinationId, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
PreviewDestinationWithBody Preview a message or request
Renders the Root message or the webhook requests for a chosen Alert Group or the example without sending anything. For a Bridge Destination the item `message` is the envelope as Muster would post it, as JSON (format `json`). For a Slack Destination the item `message` is the body of `chat.postMessage` as JSON (format `json`), and its `request` that call with the bot token masked.
Takes any type of body and a specified content type.
Corresponds with POST /destinations/{destination_id}/previews (the `PreviewDestination` operationId).
func (*Client) PreviewGroupKey ¶
func (c *Client) PreviewGroupKey(ctx context.Context, body PreviewGroupKeyJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
PreviewGroupKey Preview a Group key
Counts the Alert Groups that the Stored Snapshots of the period would have produced with the current and with the proposed Group key.
Takes a body of the `application/json` content type.
Corresponds with POST /group-key-previews (the `PreviewGroupKey` operationId).
func (*Client) PreviewGroupKeyWithBody ¶
func (c *Client) PreviewGroupKeyWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
PreviewGroupKeyWithBody Preview a Group key
Counts the Alert Groups that the Stored Snapshots of the period would have produced with the current and with the proposed Group key.
Takes any type of body and a specified content type.
Corresponds with POST /group-key-previews (the `PreviewGroupKey` operationId).
func (*Client) PreviewTemplate ¶
func (c *Client) PreviewTemplate(ctx context.Context, body PreviewTemplateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
PreviewTemplate Render a template against a sample
Parses and renders a template in the sandbox against a recent Stored Snapshot, an Alert Group or a built-in example. Template errors are returned in `errors` with their position, not as a Problem, so an editor can show them next to the preview.
Takes a body of the `application/json` content type.
Corresponds with POST /template-previews (the `PreviewTemplate` operationId).
func (*Client) PreviewTemplateWithBody ¶
func (c *Client) PreviewTemplateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
PreviewTemplateWithBody Render a template against a sample
Parses and renders a template in the sandbox against a recent Stored Snapshot, an Alert Group or a built-in example. Template errors are returned in `errors` with their position, not as a Problem, so an editor can show them next to the preview.
Takes any type of body and a specified content type.
Corresponds with POST /template-previews (the `PreviewTemplate` operationId).
func (*Client) RegenerateTotpRecoveryCodes ¶
func (c *Client) RegenerateTotpRecoveryCodes(ctx context.Context, body RegenerateTotpRecoveryCodesJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
RegenerateTotpRecoveryCodes Regenerate recovery codes
Invalidates the previous codes. Requires a current TOTP code. Web session only.
Takes a body of the `application/json` content type.
Corresponds with POST /me/totp/recovery-codes (the `RegenerateTotpRecoveryCodes` operationId).
func (*Client) RegenerateTotpRecoveryCodesWithBody ¶
func (c *Client) RegenerateTotpRecoveryCodesWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
RegenerateTotpRecoveryCodesWithBody Regenerate recovery codes
Invalidates the previous codes. Requires a current TOTP code. Web session only.
Takes any type of body and a specified content type.
Corresponds with POST /me/totp/recovery-codes (the `RegenerateTotpRecoveryCodes` operationId).
func (*Client) RemoveTotp ¶
func (c *Client) RemoveTotp(ctx context.Context, body RemoveTotpJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
RemoveTotp Remove own TOTP
Needs proof that the person is at the keyboard: the current password (local users) or a current TOTP or recovery code. Under a TOTP policy that covers the user, the next sign-in demands enrolment again. A wrong proof is `401` (`invalid_credentials`). Web session only.
Takes a body of the `application/json` content type.
Corresponds with POST /me/totp/removal (the `RemoveTotp` operationId).
func (*Client) RemoveTotpWithBody ¶
func (c *Client) RemoveTotpWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
RemoveTotpWithBody Remove own TOTP
Needs proof that the person is at the keyboard: the current password (local users) or a current TOTP or recovery code. Under a TOTP policy that covers the user, the next sign-in demands enrolment again. A wrong proof is `401` (`invalid_credentials`). Web session only.
Takes any type of body and a specified content type.
Corresponds with POST /me/totp/removal (the `RemoveTotp` operationId).
func (*Client) ReorderRoutes ¶
func (c *Client) ReorderRoutes(ctx context.Context, params *ReorderRoutesParams, body ReorderRoutesJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
ReorderRoutes Reorder Routes
Replaces the order of all Routes except the Default route, which cannot be moved. `If-Match` carries the ETag of `listRoutes`; a stale one gets `412`. A list that contains the Default route is `409` (`default-route-immutable`); a set of ids that differs from the current set is `422` (`route_set_mismatch`).
Takes a body of the `application/json` content type.
Corresponds with PUT /route-order (the `ReorderRoutes` operationId).
func (*Client) ReorderRoutesWithBody ¶
func (c *Client) ReorderRoutesWithBody(ctx context.Context, params *ReorderRoutesParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
ReorderRoutesWithBody Reorder Routes
Replaces the order of all Routes except the Default route, which cannot be moved. `If-Match` carries the ETag of `listRoutes`; a stale one gets `412`. A list that contains the Default route is `409` (`default-route-immutable`); a set of ids that differs from the current set is `422` (`route_set_mismatch`).
Takes any type of body and a specified content type.
Corresponds with PUT /route-order (the `ReorderRoutes` operationId).
func (*Client) ResetUserTotp ¶
func (c *Client) ResetUserTotp(ctx context.Context, userId UserId, reqEditors ...RequestEditorFn) (*http.Response, error)
ResetUserTotp Reset a user's TOTP
Audited. The user enrols again at the next sign-in if the policy requires it.
Corresponds with POST /users/{user_id}/reset-totp (the `ResetUserTotp` operationId).
func (*Client) ResolveAlertGroup ¶
func (c *Client) ResolveAlertGroup(ctx context.Context, alertGroupId AlertGroupId, body ResolveAlertGroupJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
ResolveAlertGroup Resolve
Resolves by the user, with an optional Note recorded in the same request. Refused with the code `already_resolved`.
Takes a body of the `application/json` content type.
Corresponds with POST /alert-groups/{alert_group_id}/resolve (the `ResolveAlertGroup` operationId).
func (*Client) ResolveAlertGroupWithBody ¶
func (c *Client) ResolveAlertGroupWithBody(ctx context.Context, alertGroupId AlertGroupId, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
ResolveAlertGroupWithBody Resolve
Resolves by the user, with an optional Note recorded in the same request. Refused with the code `already_resolved`.
Takes any type of body and a specified content type.
Corresponds with POST /alert-groups/{alert_group_id}/resolve (the `ResolveAlertGroup` operationId).
func (*Client) RetirePreviousSigningSecret ¶
func (c *Client) RetirePreviousSigningSecret(ctx context.Context, destinationId DestinationId, reqEditors ...RequestEditorFn) (*http.Response, error)
RetirePreviousSigningSecret Retire the previous Signing secret
`409` (`not_webhook_destination`) for a Destination that is not an outgoing webhook.
Corresponds with DELETE /destinations/{destination_id}/signing-secret/previous (the `RetirePreviousSigningSecret` operationId).
func (*Client) RevokeIntegrationToken ¶
func (c *Client) RevokeIntegrationToken(ctx context.Context, integrationId IntegrationId, integrationTokenId IntegrationTokenId, reqEditors ...RequestEditorFn) (*http.Response, error)
RevokeIntegrationToken Revoke an Integration token
Corresponds with DELETE /integrations/{integration_id}/tokens/{integration_token_id} (the `RevokeIntegrationToken` operationId).
func (*Client) RevokePersonalAccessToken ¶
func (c *Client) RevokePersonalAccessToken(ctx context.Context, tokenId TokenId, reqEditors ...RequestEditorFn) (*http.Response, error)
RevokePersonalAccessToken Revoke a Personal access token
Revokes the token at once. Web session only.
Corresponds with DELETE /me/personal-access-tokens/{token_id} (the `RevokePersonalAccessToken` operationId).
func (*Client) RevokeServiceAccountToken ¶
func (c *Client) RevokeServiceAccountToken(ctx context.Context, serviceAccountId ServiceAccountId, tokenId TokenId, reqEditors ...RequestEditorFn) (*http.Response, error)
RevokeServiceAccountToken Revoke a Service account token
Revokes the token at once. Web session only: a token can never revoke a token.
Corresponds with DELETE /service-accounts/{service_account_id}/tokens/{token_id} (the `RevokeServiceAccountToken` operationId).
func (*Client) RunBulkCommand ¶
func (c *Client) RunBulkCommand(ctx context.Context, body RunBulkCommandJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
RunBulkCommand Run a Command on several Alert Groups
Acknowledge, Resolve, Snooze or Unsnooze on up to `alert_group.bulk_max` Alert Groups. Each goes through the dispatcher on its own, with its own Audit log and Timeline entry; a refusal never stops the others. Bulk Acknowledge skips Alert Groups another user owns and never makes a Takeover. `x-permission` lists alternatives: the caller needs the Permission of the chosen command (`acknowledge` needs `alert-groups:acknowledge`, `resolve` needs `alert-groups:resolve`, `snooze` and `unsnooze` need `alert-groups:snooze`). A bulk Snooze with a `preset` computes its end once, so every Alert Group gets the same end; the pointers of its problems start with `/snooze`.
Takes a body of the `application/json` content type.
Corresponds with POST /alert-groups/bulk-commands (the `RunBulkCommand` operationId).
func (*Client) RunBulkCommandWithBody ¶
func (c *Client) RunBulkCommandWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
RunBulkCommandWithBody Run a Command on several Alert Groups
Acknowledge, Resolve, Snooze or Unsnooze on up to `alert_group.bulk_max` Alert Groups. Each goes through the dispatcher on its own, with its own Audit log and Timeline entry; a refusal never stops the others. Bulk Acknowledge skips Alert Groups another user owns and never makes a Takeover. `x-permission` lists alternatives: the caller needs the Permission of the chosen command (`acknowledge` needs `alert-groups:acknowledge`, `resolve` needs `alert-groups:resolve`, `snooze` and `unsnooze` need `alert-groups:snooze`). A bulk Snooze with a `preset` computes its end once, so every Alert Group gets the same end; the pointers of its problems start with `/snooze`.
Takes any type of body and a specified content type.
Corresponds with POST /alert-groups/bulk-commands (the `RunBulkCommand` operationId).
func (*Client) SetDestinationSecret ¶
func (c *Client) SetDestinationSecret(ctx context.Context, destinationId DestinationId, secretName SecretName, params *SetDestinationSecretParams, body SetDestinationSecretJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
SetDestinationSecret Set a Secret of a webhook Destination
Creates or replaces the named Secret, referenced as `{{ .Secrets.<name> }}`. `If-Match`, when given, is compared with the ETag of `listDestinationSecrets`.
Takes a body of the `application/json` content type.
Corresponds with PUT /destinations/{destination_id}/secrets/{secret_name} (the `SetDestinationSecret` operationId).
func (*Client) SetDestinationSecretWithBody ¶
func (c *Client) SetDestinationSecretWithBody(ctx context.Context, destinationId DestinationId, secretName SecretName, params *SetDestinationSecretParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
SetDestinationSecretWithBody Set a Secret of a webhook Destination
Creates or replaces the named Secret, referenced as `{{ .Secrets.<name> }}`. `If-Match`, when given, is compared with the ETag of `listDestinationSecrets`.
Takes any type of body and a specified content type.
Corresponds with PUT /destinations/{destination_id}/secrets/{secret_name} (the `SetDestinationSecret` operationId).
func (*Client) SlackInteractionWithBody ¶
func (c *Client) SlackInteractionWithBody(ctx context.Context, connectionId ConnectionId, params *SlackInteractionParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
SlackInteractionWithBody Receive a Slack button press (http event mode)
Used only when the Slack Connection's event mode is `http`: Slack posts each interaction of the app, one per request, form-encoded with its JSON in `payload`. Muster reads the raw body, up to 1 MiB, before it parses the form, verifies `X-Slack-Signature` — `v0=` followed by the hex HMAC-SHA256 of `v0:<X-Slack-Request-Timestamp>:<raw body>` with the Connection's Slack signing secret — in constant time, and refuses an `X-Slack-Request-Timestamp` further than `slack.request_tolerance` from its real clock, either way. A missing or wrong signature, a timestamp out of range, an unknown or deleted Connection and a Connection in `socket` mode are all answered `401` with the same body and change nothing, so the endpoint reveals nothing about which Connections exist; a body over 1 MiB, or without a `payload` that is a JSON object, is answered `400`; a failure to read the Connection is answered `500`. Every other request is answered `200` with an empty body at once, before its press is handled, because Slack waits only 3 seconds: a `block_actions` press then runs its Command with the Transport `slack`, and the person who pressed is answered privately, with `chat.postEphemeral` or else the press's `response_url`, only when there is something to read; other kinds of interaction are ignored. Request validation does not answer here: the handler decides every answer.
Takes any type of body and a specified content type.
Corresponds with POST /callbacks/slack/{connection_id} (the `SlackInteraction` operationId).
func (*Client) SlackInteractionWithFormdataBody ¶
func (c *Client) SlackInteractionWithFormdataBody(ctx context.Context, connectionId ConnectionId, params *SlackInteractionParams, body SlackInteractionFormdataRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
SlackInteractionWithFormdataBody Receive a Slack button press (http event mode)
Used only when the Slack Connection's event mode is `http`: Slack posts each interaction of the app, one per request, form-encoded with its JSON in `payload`. Muster reads the raw body, up to 1 MiB, before it parses the form, verifies `X-Slack-Signature` — `v0=` followed by the hex HMAC-SHA256 of `v0:<X-Slack-Request-Timestamp>:<raw body>` with the Connection's Slack signing secret — in constant time, and refuses an `X-Slack-Request-Timestamp` further than `slack.request_tolerance` from its real clock, either way. A missing or wrong signature, a timestamp out of range, an unknown or deleted Connection and a Connection in `socket` mode are all answered `401` with the same body and change nothing, so the endpoint reveals nothing about which Connections exist; a body over 1 MiB, or without a `payload` that is a JSON object, is answered `400`; a failure to read the Connection is answered `500`. Every other request is answered `200` with an empty body at once, before its press is handled, because Slack waits only 3 seconds: a `block_actions` press then runs its Command with the Transport `slack`, and the person who pressed is answered privately, with `chat.postEphemeral` or else the press's `response_url`, only when there is something to read; other kinds of interaction are ignored. Request validation does not answer here: the handler decides every answer.
Takes a body of the `application/x-www-form-urlencoded` content type.
Corresponds with POST /callbacks/slack/{connection_id} (the `SlackInteraction` operationId).
func (*Client) SnoozeAlertGroup ¶
func (c *Client) SnoozeAlertGroup(ctx context.Context, alertGroupId AlertGroupId, body SnoozeAlertGroupJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
SnoozeAlertGroup Snooze
A Snooze until a future time (`until`), with no end (`no_end: true`) or until a Snooze preset (`preset`), chosen explicitly. A preset's end is computed when the Command runs and stored as an instant. Allowed from firing, acknowledged and snoozed.
Takes a body of the `application/json` content type.
Corresponds with POST /alert-groups/{alert_group_id}/snooze (the `SnoozeAlertGroup` operationId).
func (*Client) SnoozeAlertGroupWithBody ¶
func (c *Client) SnoozeAlertGroupWithBody(ctx context.Context, alertGroupId AlertGroupId, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
SnoozeAlertGroupWithBody Snooze
A Snooze until a future time (`until`), with no end (`no_end: true`) or until a Snooze preset (`preset`), chosen explicitly. A preset's end is computed when the Command runs and stored as an instant. Allowed from firing, acknowledged and snoozed.
Takes any type of body and a specified content type.
Corresponds with POST /alert-groups/{alert_group_id}/snooze (the `SnoozeAlertGroup` operationId).
func (*Client) StartBridgeCodeLink ¶
func (c *Client) StartBridgeCodeLink(ctx context.Context, body StartBridgeCodeLinkJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
StartBridgeCodeLink Start linking an account through a Bridge with a code
Where the Bridge Connection's `info` declares `direct_messages` with `bot_can_start` and a `user_lookup` other than `none`, the bridge finds the account with the `handle` the caller entered — of the kind `user_lookup` declares — with `findUsers`, and its bot sends a code with `sendDirectMessage`. Code requests are limited per requesting User and per target account (`429` `link_code_requests_exceeded` with `Retry-After`, `account_link.bridge_code_requests`); a request whose direct message failed still counts. Refused with `409` `code_not_offered` when the Connection's `info`, read again first when Muster's copy is older than `bridge.info_max_age`, offers no code or has never been read; with `409` `account_linked_elsewhere` when the account is linked to another User; and with `409` without a code when the bridge refuses a call. Runs on the interactive path: when no limiter token is free within `delivery.interactive_budget`, the answer is `503` with `Retry-After`. No operation starts a link for another User, whatever the caller's Role. A `connection_id` that names no Bridge Connection answers `422` `unknown_id` at `/connection_id`; a handle the bridge does not find answers `422` `handle_not_found` at `/handle`, and an account the bot cannot write to `422` `direct_message_refused` at `/handle`.
Takes a body of the `application/json` content type.
Corresponds with POST /me/account-links/bridge/codes (the `StartBridgeCodeLink` operationId).
func (*Client) StartBridgeCodeLinkWithBody ¶
func (c *Client) StartBridgeCodeLinkWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
StartBridgeCodeLinkWithBody Start linking an account through a Bridge with a code
Where the Bridge Connection's `info` declares `direct_messages` with `bot_can_start` and a `user_lookup` other than `none`, the bridge finds the account with the `handle` the caller entered — of the kind `user_lookup` declares — with `findUsers`, and its bot sends a code with `sendDirectMessage`. Code requests are limited per requesting User and per target account (`429` `link_code_requests_exceeded` with `Retry-After`, `account_link.bridge_code_requests`); a request whose direct message failed still counts. Refused with `409` `code_not_offered` when the Connection's `info`, read again first when Muster's copy is older than `bridge.info_max_age`, offers no code or has never been read; with `409` `account_linked_elsewhere` when the account is linked to another User; and with `409` without a code when the bridge refuses a call. Runs on the interactive path: when no limiter token is free within `delivery.interactive_budget`, the answer is `503` with `Retry-After`. No operation starts a link for another User, whatever the caller's Role. A `connection_id` that names no Bridge Connection answers `422` `unknown_id` at `/connection_id`; a handle the bridge does not find answers `422` `handle_not_found` at `/handle`, and an account the bot cannot write to `422` `direct_message_refused` at `/handle`.
Takes any type of body and a specified content type.
Corresponds with POST /me/account-links/bridge/codes (the `StartBridgeCodeLink` operationId).
func (*Client) StartBridgeLink ¶
func (c *Client) StartBridgeLink(ctx context.Context, body StartBridgeLinkJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
StartBridgeLink Start linking an account through a Bridge with a token
Returns a token to send to the bot of the Bridge Connection in a direct message: 32 random bytes in base64url, single-use, valid for `account_link.bridge_token_ttl` and bound to the User and the Connection. When the Connection's last `info` has a `link_url_template`, `link_url` is that template with the token in place of `{token}`, kept only when it is an absolute `http` or `https` link; otherwise it is null. The bridge reports the token with an `account_link` event, which completes the link and arrives as an `account-links` hint with the link's `public_id`. Only the signed-in web session can start a link (not a token). No operation starts a link for another User, whatever the caller's Role. A `connection_id` that names no Bridge Connection — missing, deleted or of another type — answers `422` `unknown_id` at `/connection_id`. Calls no bridge.
Takes a body of the `application/json` content type.
Corresponds with POST /me/account-links/bridge (the `StartBridgeLink` operationId).
func (*Client) StartBridgeLinkWithBody ¶
func (c *Client) StartBridgeLinkWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
StartBridgeLinkWithBody Start linking an account through a Bridge with a token
Returns a token to send to the bot of the Bridge Connection in a direct message: 32 random bytes in base64url, single-use, valid for `account_link.bridge_token_ttl` and bound to the User and the Connection. When the Connection's last `info` has a `link_url_template`, `link_url` is that template with the token in place of `{token}`, kept only when it is an absolute `http` or `https` link; otherwise it is null. The bridge reports the token with an `account_link` event, which completes the link and arrives as an `account-links` hint with the link's `public_id`. Only the signed-in web session can start a link (not a token). No operation starts a link for another User, whatever the caller's Role. A `connection_id` that names no Bridge Connection — missing, deleted or of another type — answers `422` `unknown_id` at `/connection_id`. Calls no bridge.
Takes any type of body and a specified content type.
Corresponds with POST /me/account-links/bridge (the `StartBridgeLink` operationId).
func (*Client) StartMattermostLink ¶
func (c *Client) StartMattermostLink(ctx context.Context, body StartMattermostLinkJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
StartMattermostLink Start linking a Mattermost account
The Connection's bot sends a direct message with a code to the `@username`. Code requests are limited per requesting User and per target account (`429` `link_code_requests_exceeded` with `Retry-After`). Refused with `409` if the account is already linked to another user (`account_linked_elsewhere`), or without a code when Mattermost refuses a call. Runs on the interactive path: when no limiter token is free within `delivery.interactive_budget`, the answer is `503` with `Retry-After`. No operation starts a link for another User, whatever the caller's Role. A `connection_id` that names no Mattermost Connection — missing, deleted or a Telegram one — answers `422` `unknown_id` at `/connection_id`; a username the Mattermost server does not know answers `422` `messenger_user_not_found` at `/username`.
Takes a body of the `application/json` content type.
Corresponds with POST /me/account-links/mattermost (the `StartMattermostLink` operationId).
func (*Client) StartMattermostLinkWithBody ¶
func (c *Client) StartMattermostLinkWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
StartMattermostLinkWithBody Start linking a Mattermost account
The Connection's bot sends a direct message with a code to the `@username`. Code requests are limited per requesting User and per target account (`429` `link_code_requests_exceeded` with `Retry-After`). Refused with `409` if the account is already linked to another user (`account_linked_elsewhere`), or without a code when Mattermost refuses a call. Runs on the interactive path: when no limiter token is free within `delivery.interactive_budget`, the answer is `503` with `Retry-After`. No operation starts a link for another User, whatever the caller's Role. A `connection_id` that names no Mattermost Connection — missing, deleted or a Telegram one — answers `422` `unknown_id` at `/connection_id`; a username the Mattermost server does not know answers `422` `messenger_user_not_found` at `/username`.
Takes any type of body and a specified content type.
Corresponds with POST /me/account-links/mattermost (the `StartMattermostLink` operationId).
func (*Client) StartOidcLink ¶
func (c *Client) StartOidcLink(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
StartOidcLink Start linking an OIDC identity
Starts linking the caller's account to an identity at the OIDC provider: returns the authorization URL (PKCE `S256`, `state` and `nonce`) that the SPA opens after warning "After linking you will sign in only through OIDC; your password will be removed." The `state` is bound to this web session, so the callback adds the identity only to the account that started the link. A successful link removes the password: the account then signs in only through OIDC, keeps its TOTP enrolment, and `oidc.sync_role` applies to it. There is no unlinking by the user; an Admin can convert the account back to local (`convertUserToLocal`). Web session only: a token gets `403` (`session_required`). `409` with `oidc_not_enabled` while OIDC is off, or `oidc_already_linked` when the account already signs in through OIDC.
Corresponds with POST /me/oidc-identity (the `StartOidcLink` operationId).
func (*Client) StartOidcSignIn ¶
func (c *Client) StartOidcSignIn(ctx context.Context, params *StartOidcSignInParams, reqEditors ...RequestEditorFn) (*http.Response, error)
StartOidcSignIn Start OIDC sign-in
Redirects the browser to the identity provider with PKCE (`S256`), `state` and `nonce`, all mandatory, requesting `openid` and the configured scopes, and `offline_access` when the IdP's discovery lists it in `scopes_supported` or publishes no `scopes_supported`; when the IdP grants it, the offline token is stored on the user, encrypted, replacing the previous one. Muster exchanges the code itself through the back channel. The redirect URI to register at the identity provider is `MUSTER_PUBLIC_URL/api/v1/sessions/oidc/callback`. `409` (`oidc_not_enabled`) while OIDC is off.
Corresponds with GET /sessions/oidc/start (the `StartOidcSignIn` operationId).
func (*Client) StartSlackLink ¶
func (c *Client) StartSlackLink(ctx context.Context, body StartSlackLinkJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
StartSlackLink Start linking a Slack account with a code
Looks up the account of the Slack Connection that the caller names in `handle`. An email — an `@` after at least one character with a dot after that `@` — is looked up with `users.lookupByEmail`, which ignores the letter case. Anything else is a name, a leading `@` dropped, compared with each account's `name` and `profile.display_name` regardless of case over the pages of `users.list`; deleted accounts, bots and Slackbot are left out. The bot then sends a code (`account_link.slack_code`) by direct message — `chat.postMessage` to the account's user id — with "You requested a link to Muster. Do not share this code.". Code requests are limited per requesting User and per target account (`429` `link_code_requests_exceeded` with `Retry-After`, `account_link.slack_code_requests`); a request whose direct message failed still counts. Refused with `409` `account_linked_elsewhere` when the account is linked to another User, with `409` `messages_tab_disabled` when Slack refuses the direct message because the Messages tab of the Slack app is off, and with `409` without a code when Slack refuses a call otherwise. Runs on the interactive path: when no limiter token is free within `delivery.interactive_budget`, or Slack answers `429`, the answer is `503` with `Retry-After`. No operation starts a link for another User, whatever the caller's Role. A `connection_id` that names no Slack Connection — missing, deleted or of another type — answers `422` `unknown_id` at `/connection_id`; no account answers `422` `handle_not_found` at `/handle`, several accounts with the name `422` `handle_ambiguous` at `/handle`, and an account the bot cannot write to (`cannot_dm_bot`, `user_not_found`, or `channel_not_found` for the user id) `422` `direct_message_refused` at `/handle`.
Takes a body of the `application/json` content type.
Corresponds with POST /me/account-links/slack (the `StartSlackLink` operationId).
func (*Client) StartSlackLinkWithBody ¶
func (c *Client) StartSlackLinkWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
StartSlackLinkWithBody Start linking a Slack account with a code
Looks up the account of the Slack Connection that the caller names in `handle`. An email — an `@` after at least one character with a dot after that `@` — is looked up with `users.lookupByEmail`, which ignores the letter case. Anything else is a name, a leading `@` dropped, compared with each account's `name` and `profile.display_name` regardless of case over the pages of `users.list`; deleted accounts, bots and Slackbot are left out. The bot then sends a code (`account_link.slack_code`) by direct message — `chat.postMessage` to the account's user id — with "You requested a link to Muster. Do not share this code.". Code requests are limited per requesting User and per target account (`429` `link_code_requests_exceeded` with `Retry-After`, `account_link.slack_code_requests`); a request whose direct message failed still counts. Refused with `409` `account_linked_elsewhere` when the account is linked to another User, with `409` `messages_tab_disabled` when Slack refuses the direct message because the Messages tab of the Slack app is off, and with `409` without a code when Slack refuses a call otherwise. Runs on the interactive path: when no limiter token is free within `delivery.interactive_budget`, or Slack answers `429`, the answer is `503` with `Retry-After`. No operation starts a link for another User, whatever the caller's Role. A `connection_id` that names no Slack Connection — missing, deleted or of another type — answers `422` `unknown_id` at `/connection_id`; no account answers `422` `handle_not_found` at `/handle`, several accounts with the name `422` `handle_ambiguous` at `/handle`, and an account the bot cannot write to (`cannot_dm_bot`, `user_not_found`, or `channel_not_found` for the user id) `422` `direct_message_refused` at `/handle`.
Takes any type of body and a specified content type.
Corresponds with POST /me/account-links/slack (the `StartSlackLink` operationId).
func (*Client) StartTelegramLink ¶
func (c *Client) StartTelegramLink(ctx context.Context, body StartTelegramLinkJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
StartTelegramLink Start linking a Telegram account
Returns a deep link `t.me/<bot>?start=<token>`; the token is single-use, valid for `account_link.telegram_token_ttl`. Pressing Start in Telegram completes the link and arrives as an `account-links` hint with the link's `public_id`. Only the signed-in web session can start a link (not a token). No operation starts a link for another User, whatever the caller's Role. A `connection_id` that names no Telegram Connection — missing, deleted or a Mattermost one — answers `422` `unknown_id` at `/connection_id`. When the bot's username is not known from the last Connection check, it is read with `getMe` on the interactive path: when no limiter token is free within `delivery.interactive_budget`, the answer is `503` with `Retry-After`, and when Telegram refuses the call, `409`.
Takes a body of the `application/json` content type.
Corresponds with POST /me/account-links/telegram (the `StartTelegramLink` operationId).
func (*Client) StartTelegramLinkWithBody ¶
func (c *Client) StartTelegramLinkWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
StartTelegramLinkWithBody Start linking a Telegram account
Returns a deep link `t.me/<bot>?start=<token>`; the token is single-use, valid for `account_link.telegram_token_ttl`. Pressing Start in Telegram completes the link and arrives as an `account-links` hint with the link's `public_id`. Only the signed-in web session can start a link (not a token). No operation starts a link for another User, whatever the caller's Role. A `connection_id` that names no Telegram Connection — missing, deleted or a Mattermost one — answers `422` `unknown_id` at `/connection_id`. When the bot's username is not known from the last Connection check, it is read with `getMe` on the interactive path: when no limiter token is free within `delivery.interactive_budget`, the answer is `503` with `Retry-After`, and when Telegram refuses the call, `409`.
Takes any type of body and a specified content type.
Corresponds with POST /me/account-links/telegram (the `StartTelegramLink` operationId).
func (*Client) StreamLiveUpdates ¶
func (c *Client) StreamLiveUpdates(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
StreamLiveUpdates Stream change hints
Server-sent events (`text/event-stream`). OpenAPI 3.1 cannot type event streams, so the events are described by `HintEvent`.
Each event has the name `hint`, an `id` line and a JSON `data` line `{type, id}`. A hint carries no data: the client re-reads through the API, so authorization stays in one place. The stream starts with `retry: 3000` (the reconnect delay in milliseconds) and a comment line (`: keepalive`) follows periodically. After a reconnect the client invalidates everything; `Last-Event-ID` is not replayed. When the session expires or is ended, the server closes the stream; the browser's reconnect then gets `401`, which makes `EventSource` stop for good, and the SPA goes to the sign-in page. The stream follows a web session; a token gets `403` (`session_required`).
Corresponds with GET /live-updates (the `StreamLiveUpdates` operationId).
func (*Client) SubmitSessionTotp ¶
func (c *Client) SubmitSessionTotp(ctx context.Context, body SubmitSessionTotpJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
SubmitSessionTotp Give the second factor
Completes a session in the state `totp_required` with a current TOTP code or a single-use recovery code; works the same after a local and an OIDC sign-in. A wrong code is `401` (`invalid_credentials`) and slows down like a wrong password; `409` (`totp_not_pending`) when the session is not waiting for a code.
Takes a body of the `application/json` content type.
Corresponds with POST /sessions/current/totp (the `SubmitSessionTotp` operationId).
func (*Client) SubmitSessionTotpWithBody ¶
func (c *Client) SubmitSessionTotpWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
SubmitSessionTotpWithBody Give the second factor
Completes a session in the state `totp_required` with a current TOTP code or a single-use recovery code; works the same after a local and an OIDC sign-in. A wrong code is `401` (`invalid_credentials`) and slows down like a wrong password; `409` (`totp_not_pending`) when the session is not waiting for a code.
Takes any type of body and a specified content type.
Corresponds with POST /sessions/current/totp (the `SubmitSessionTotp` operationId).
func (*Client) TelegramWebhook ¶
func (c *Client) TelegramWebhook(ctx context.Context, connectionId ConnectionId, body TelegramWebhookJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
TelegramWebhook Receive a Telegram update (webhook update mode)
Used only when the Connection's update mode is `webhook`. A request without the right secret token header, or for a Connection that does not exist or is not in webhook mode, is answered `401` and changes nothing.
Takes a body of the `application/json` content type.
Corresponds with POST /callbacks/telegram/{connection_id} (the `TelegramWebhook` operationId).
func (*Client) TelegramWebhookWithBody ¶
func (c *Client) TelegramWebhookWithBody(ctx context.Context, connectionId ConnectionId, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
TelegramWebhookWithBody Receive a Telegram update (webhook update mode)
Used only when the Connection's update mode is `webhook`. A request without the right secret token header, or for a Connection that does not exist or is not in webhook mode, is answered `401` and changes nothing.
Takes any type of body and a specified content type.
Corresponds with POST /callbacks/telegram/{connection_id} (the `TelegramWebhook` operationId).
func (*Client) TestDestination ¶
func (c *Client) TestDestination(ctx context.Context, destinationId DestinationId, body TestDestinationJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
TestDestination Send a test message
One "create" request marked "Test message", built from a recent Alert Group of one of the Destination's Routes or from a built-in example, through the interactive path. An outgoing webhook sends the `test` event in events mode and the "create" request in template mode, both when it uses both. Secrets and the Signing secret are masked in the result. Test messages are never reconciled and change no Alert Group. A successful test of a Broken Destination ends the Broken state. Audited. A step that could not get a limiter token in time ends with `error_class` `limited`. A Bridge Destination posts one test message of the kind `test` with `postMessage`. A Slack Destination posts one test message with `chat.postMessage`, the step `message` alone; a bot cannot press its own button, so the test cannot show that presses reach Muster.
Takes a body of the `application/json` content type.
Corresponds with POST /destinations/{destination_id}/tests (the `TestDestination` operationId).
func (*Client) TestDestinationWithBody ¶
func (c *Client) TestDestinationWithBody(ctx context.Context, destinationId DestinationId, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
TestDestinationWithBody Send a test message
One "create" request marked "Test message", built from a recent Alert Group of one of the Destination's Routes or from a built-in example, through the interactive path. An outgoing webhook sends the `test` event in events mode and the "create" request in template mode, both when it uses both. Secrets and the Signing secret are masked in the result. Test messages are never reconciled and change no Alert Group. A successful test of a Broken Destination ends the Broken state. Audited. A step that could not get a limiter token in time ends with `error_class` `limited`. A Bridge Destination posts one test message of the kind `test` with `postMessage`. A Slack Destination posts one test message with `chat.postMessage`, the step `message` alone; a bot cannot press its own button, so the test cannot show that presses reach Muster.
Takes any type of body and a specified content type.
Corresponds with POST /destinations/{destination_id}/tests (the `TestDestination` operationId).
func (*Client) UnacknowledgeAlertGroup ¶
func (c *Client) UnacknowledgeAlertGroup(ctx context.Context, alertGroupId AlertGroupId, reqEditors ...RequestEditorFn) (*http.Response, error)
UnacknowledgeAlertGroup Unacknowledge
Allowed to every user with the Permission, not only the Owner. The Alert Group becomes firing without an Owner. Refused with the code `not_acknowledged`.
Corresponds with POST /alert-groups/{alert_group_id}/unacknowledge (the `UnacknowledgeAlertGroup` operationId).
func (*Client) UnresolveAlertGroup ¶
func (c *Client) UnresolveAlertGroup(ctx context.Context, alertGroupId AlertGroupId, reqEditors ...RequestEditorFn) (*http.Response, error)
UnresolveAlertGroup Unresolve
Only for an Alert Group a person resolved; messengers never offer it. Refused, in this order, with the codes `not_resolved`, `resolved_automatically`, `route_deleted`, `newer_alert_group_exists` (see `related_alert_group`) and `all_alerts_resolved`.
Corresponds with POST /alert-groups/{alert_group_id}/unresolve (the `UnresolveAlertGroup` operationId).
func (*Client) UnsnoozeAlertGroup ¶
func (c *Client) UnsnoozeAlertGroup(ctx context.Context, alertGroupId AlertGroupId, reqEditors ...RequestEditorFn) (*http.Response, error)
UnsnoozeAlertGroup Unsnooze
The Alert Group becomes firing without an Owner. Refused with the code `not_snoozed`.
Corresponds with POST /alert-groups/{alert_group_id}/unsnooze (the `UnsnoozeAlertGroup` operationId).
func (*Client) UpdateConnection ¶
func (c *Client) UpdateConnection(ctx context.Context, connectionId ConnectionId, params *UpdateConnectionParams, body UpdateConnectionJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
UpdateConnection Update Connection
Replaces the writable fields. Requires `If-Match`; a stale ETag gets `412`. An omitted optional field keeps its stored value; an explicit `null` clears a nullable one. An omitted Secret field keeps the stored Secret.
Takes a body of the `application/json` content type.
Corresponds with PUT /connections/{connection_id} (the `UpdateConnection` operationId).
func (*Client) UpdateConnectionWithBody ¶
func (c *Client) UpdateConnectionWithBody(ctx context.Context, connectionId ConnectionId, params *UpdateConnectionParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
UpdateConnectionWithBody Update Connection
Replaces the writable fields. Requires `If-Match`; a stale ETag gets `412`. An omitted optional field keeps its stored value; an explicit `null` clears a nullable one. An omitted Secret field keeps the stored Secret.
Takes any type of body and a specified content type.
Corresponds with PUT /connections/{connection_id} (the `UpdateConnection` operationId).
func (*Client) UpdateDestination ¶
func (c *Client) UpdateDestination(ctx context.Context, destinationId DestinationId, params *UpdateDestinationParams, body UpdateDestinationJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
UpdateDestination Update Destination
Replaces the writable fields. Requires `If-Match`; a stale ETag gets `412`. An omitted optional field keeps its stored value; an explicit `null` clears a nullable one. An omitted Secret field keeps the stored Secret. `null` on a proxy `password` clears it. Saving a Mattermost, Telegram, Bridge or Slack Destination runs the Destination check as `createDestination` does and refuses a failing one with `destination_check_failed`.
Takes a body of the `application/json` content type.
Corresponds with PUT /destinations/{destination_id} (the `UpdateDestination` operationId).
func (*Client) UpdateDestinationWithBody ¶
func (c *Client) UpdateDestinationWithBody(ctx context.Context, destinationId DestinationId, params *UpdateDestinationParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
UpdateDestinationWithBody Update Destination
Replaces the writable fields. Requires `If-Match`; a stale ETag gets `412`. An omitted optional field keeps its stored value; an explicit `null` clears a nullable one. An omitted Secret field keeps the stored Secret. `null` on a proxy `password` clears it. Saving a Mattermost, Telegram, Bridge or Slack Destination runs the Destination check as `createDestination` does and refuses a failing one with `destination_check_failed`.
Takes any type of body and a specified content type.
Corresponds with PUT /destinations/{destination_id} (the `UpdateDestination` operationId).
func (*Client) UpdateIntegration ¶
func (c *Client) UpdateIntegration(ctx context.Context, integrationId IntegrationId, params *UpdateIntegrationParams, body UpdateIntegrationJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
UpdateIntegration Update Integration
Replaces the writable fields. Requires `If-Match`; a stale ETag gets `412`. An omitted optional field keeps its stored value; an explicit `null` clears a nullable one.
Takes a body of the `application/json` content type.
Corresponds with PUT /integrations/{integration_id} (the `UpdateIntegration` operationId).
func (*Client) UpdateIntegrationWithBody ¶
func (c *Client) UpdateIntegrationWithBody(ctx context.Context, integrationId IntegrationId, params *UpdateIntegrationParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
UpdateIntegrationWithBody Update Integration
Replaces the writable fields. Requires `If-Match`; a stale ETag gets `412`. An omitted optional field keeps its stored value; an explicit `null` clears a nullable one.
Takes any type of body and a specified content type.
Corresponds with PUT /integrations/{integration_id} (the `UpdateIntegration` operationId).
func (*Client) UpdateLinkRule ¶
func (c *Client) UpdateLinkRule(ctx context.Context, linkRuleId LinkRuleId, params *UpdateLinkRuleParams, body UpdateLinkRuleJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
UpdateLinkRule Update LinkRule
Replaces the writable fields. Requires `If-Match`; a stale ETag gets `412`. An omitted optional field keeps its stored value; an explicit `null` clears a nullable one.
Takes a body of the `application/json` content type.
Corresponds with PUT /link-rules/{link_rule_id} (the `UpdateLinkRule` operationId).
func (*Client) UpdateLinkRuleWithBody ¶
func (c *Client) UpdateLinkRuleWithBody(ctx context.Context, linkRuleId LinkRuleId, params *UpdateLinkRuleParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
UpdateLinkRuleWithBody Update LinkRule
Replaces the writable fields. Requires `If-Match`; a stale ETag gets `412`. An omitted optional field keeps its stored value; an explicit `null` clears a nullable one.
Takes any type of body and a specified content type.
Corresponds with PUT /link-rules/{link_rule_id} (the `UpdateLinkRule` operationId).
func (*Client) UpdateLookupTable ¶
func (c *Client) UpdateLookupTable(ctx context.Context, lookupTableId LookupTableId, params *UpdateLookupTableParams, body UpdateLookupTableJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
UpdateLookupTable Update LookupTable
Replaces the writable fields. Requires `If-Match`; a stale ETag gets `412`. An omitted optional field keeps its stored value; an explicit `null` clears a nullable one. A new name for a table that the URL template of a Link rule reads by its name is refused with `409` (`in_use`), `link_rules` naming the rules, since they would read nothing.
Takes a body of the `application/json` content type.
Corresponds with PUT /lookup-tables/{lookup_table_id} (the `UpdateLookupTable` operationId).
func (*Client) UpdateLookupTableWithBody ¶
func (c *Client) UpdateLookupTableWithBody(ctx context.Context, lookupTableId LookupTableId, params *UpdateLookupTableParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
UpdateLookupTableWithBody Update LookupTable
Replaces the writable fields. Requires `If-Match`; a stale ETag gets `412`. An omitted optional field keeps its stored value; an explicit `null` clears a nullable one. A new name for a table that the URL template of a Link rule reads by its name is refused with `409` (`in_use`), `link_rules` naming the rules, since they would read nothing.
Takes any type of body and a specified content type.
Corresponds with PUT /lookup-tables/{lookup_table_id} (the `UpdateLookupTable` operationId).
func (*Client) UpdateMe ¶
func (c *Client) UpdateMe(ctx context.Context, body UpdateMeJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
UpdateMe Update own profile
Changes name, time zone and language. Web session only.
Takes a body of the `application/json` content type.
Corresponds with PUT /me (the `UpdateMe` operationId).
func (*Client) UpdateMeWithBody ¶
func (c *Client) UpdateMeWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
UpdateMeWithBody Update own profile
Changes name, time zone and language. Web session only.
Takes any type of body and a specified content type.
Corresponds with PUT /me (the `UpdateMe` operationId).
func (*Client) UpdateOidcSettings ¶
func (c *Client) UpdateOidcSettings(ctx context.Context, params *UpdateOidcSettingsParams, body UpdateOidcSettingsJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
UpdateOidcSettings Update OIDC settings
Replaces the writable fields; omitted optional fields keep their value. Saving with an empty mapping and no Role for unmatched users returns the warning `nobody_can_sign_in` in the result. The Audit log diff shows only that the client secret changed.
Takes a body of the `application/json` content type.
Corresponds with PUT /oidc-settings (the `UpdateOidcSettings` operationId).
func (*Client) UpdateOidcSettingsWithBody ¶
func (c *Client) UpdateOidcSettingsWithBody(ctx context.Context, params *UpdateOidcSettingsParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
UpdateOidcSettingsWithBody Update OIDC settings
Replaces the writable fields; omitted optional fields keep their value. Saving with an empty mapping and no Role for unmatched users returns the warning `nobody_can_sign_in` in the result. The Audit log diff shows only that the client secret changed.
Takes any type of body and a specified content type.
Corresponds with PUT /oidc-settings (the `UpdateOidcSettings` operationId).
func (*Client) UpdateOrganization ¶
func (c *Client) UpdateOrganization(ctx context.Context, params *UpdateOrganizationParams, body UpdateOrganizationJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
UpdateOrganization Update the Organization
Replaces the writable fields. Requires `If-Match`; a stale ETag gets `412`. An omitted optional field keeps its stored value; an explicit `null` clears a nullable one. An omitted Secret field keeps the stored Secret. `null` on `outgoing_heartbeat.url` or a proxy `password` clears it. Every field is validated; an invalid one gets `422` at the full JSON pointer of the field, such as `/severity_styles/1/color` or `/retention/alert_details_days`, with `invalid_format`, `duplicate`, `required`, `too_short`, `too_long`, `out_of_range` or `retention_order`. A retention period or `oidc_token_grace_seconds` beyond its `maximum`, a `workday_start` that is not `HH:MM` on the 24-hour clock and a `week_start` that is not a day of the week are refused with `400` by request validation, `invalid_format` at `/workday_start` or `/week_start`; `out_of_range` and `invalid_format` are the second, defensive check of the same rules. A change is recorded in the Audit log as `organization.updated` with its before/after diff and announced with the `organization` hint; Severity levels and Instance labels apply to later evaluations only.
Takes a body of the `application/json` content type.
Corresponds with PUT /organization (the `UpdateOrganization` operationId).
func (*Client) UpdateOrganizationWithBody ¶
func (c *Client) UpdateOrganizationWithBody(ctx context.Context, params *UpdateOrganizationParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
UpdateOrganizationWithBody Update the Organization
Replaces the writable fields. Requires `If-Match`; a stale ETag gets `412`. An omitted optional field keeps its stored value; an explicit `null` clears a nullable one. An omitted Secret field keeps the stored Secret. `null` on `outgoing_heartbeat.url` or a proxy `password` clears it. Every field is validated; an invalid one gets `422` at the full JSON pointer of the field, such as `/severity_styles/1/color` or `/retention/alert_details_days`, with `invalid_format`, `duplicate`, `required`, `too_short`, `too_long`, `out_of_range` or `retention_order`. A retention period or `oidc_token_grace_seconds` beyond its `maximum`, a `workday_start` that is not `HH:MM` on the 24-hour clock and a `week_start` that is not a day of the week are refused with `400` by request validation, `invalid_format` at `/workday_start` or `/week_start`; `out_of_range` and `invalid_format` are the second, defensive check of the same rules. A change is recorded in the Audit log as `organization.updated` with its before/after diff and announced with the `organization` hint; Severity levels and Instance labels apply to later evaluations only.
Takes any type of body and a specified content type.
Corresponds with PUT /organization (the `UpdateOrganization` operationId).
func (*Client) UpdateOutboundPolicy ¶
func (c *Client) UpdateOutboundPolicy(ctx context.Context, params *UpdateOutboundPolicyParams, body UpdateOutboundPolicyJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
UpdateOutboundPolicy Update the outbound address policy
Replaces the policy and its lists. Requires `If-Match`; a stale ETag gets `412`. Each entry is a network in CIDR form or a bare address, a host name, or a domain written `*.example.org`; an entry that does not parse gets `422` with `invalid_format` and a repeated one `duplicate`, at `/allowed/<i>` or `/denied/<i>`. `always_blocked` is read-only and ignored. The change takes effect at once on every replica, idle pooled connections included, is recorded in the Audit log as `outbound_policy.updated` and is announced with the `organization` hint. Needs `organization:write`.
Takes a body of the `application/json` content type.
Corresponds with PUT /organization/outbound-policy (the `UpdateOutboundPolicy` operationId).
func (*Client) UpdateOutboundPolicyWithBody ¶
func (c *Client) UpdateOutboundPolicyWithBody(ctx context.Context, params *UpdateOutboundPolicyParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
UpdateOutboundPolicyWithBody Update the outbound address policy
Replaces the policy and its lists. Requires `If-Match`; a stale ETag gets `412`. Each entry is a network in CIDR form or a bare address, a host name, or a domain written `*.example.org`; an entry that does not parse gets `422` with `invalid_format` and a repeated one `duplicate`, at `/allowed/<i>` or `/denied/<i>`. `always_blocked` is read-only and ignored. The change takes effect at once on every replica, idle pooled connections included, is recorded in the Audit log as `outbound_policy.updated` and is announced with the `organization` hint. Needs `organization:write`.
Takes any type of body and a specified content type.
Corresponds with PUT /organization/outbound-policy (the `UpdateOutboundPolicy` operationId).
func (*Client) UpdateRoute ¶
func (c *Client) UpdateRoute(ctx context.Context, routeId RouteId, params *UpdateRouteParams, body UpdateRouteJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
UpdateRoute Update a Route
Replaces the writable fields. Requires `If-Match`; a stale ETag gets `412`. An omitted optional field keeps its stored value; an explicit `null` clears a nullable one.
Takes a body of the `application/json` content type.
Corresponds with PUT /routes/{route_id} (the `UpdateRoute` operationId).
func (*Client) UpdateRouteWithBody ¶
func (c *Client) UpdateRouteWithBody(ctx context.Context, routeId RouteId, params *UpdateRouteParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
UpdateRouteWithBody Update a Route
Replaces the writable fields. Requires `If-Match`; a stale ETag gets `412`. An omitted optional field keeps its stored value; an explicit `null` clears a nullable one.
Takes any type of body and a specified content type.
Corresponds with PUT /routes/{route_id} (the `UpdateRoute` operationId).
func (*Client) UpdateServiceAccount ¶
func (c *Client) UpdateServiceAccount(ctx context.Context, serviceAccountId ServiceAccountId, params *UpdateServiceAccountParams, body UpdateServiceAccountJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
UpdateServiceAccount Update a Service account
A token may only assign a Role whose Permissions it holds itself (`422` `permission_not_held` at `/role`).
Takes a body of the `application/json` content type.
Corresponds with PUT /service-accounts/{service_account_id} (the `UpdateServiceAccount` operationId).
func (*Client) UpdateServiceAccountWithBody ¶
func (c *Client) UpdateServiceAccountWithBody(ctx context.Context, serviceAccountId ServiceAccountId, params *UpdateServiceAccountParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
UpdateServiceAccountWithBody Update a Service account
A token may only assign a Role whose Permissions it holds itself (`422` `permission_not_held` at `/role`).
Takes any type of body and a specified content type.
Corresponds with PUT /service-accounts/{service_account_id} (the `UpdateServiceAccount` operationId).
func (*Client) UpdateUser ¶
func (c *Client) UpdateUser(ctx context.Context, userId UserId, params *UpdateUserParams, body UpdateUserJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
UpdateUser Update a user
Changes name, email and Role. A Role change ends the user's sessions. Refused with `409` (`role_locked`) for a Role change of an account that signs in through OIDC while OIDC and `oidc.sync_role` are both on, and with `409` (`last_admin`) when it would give the last active Admin a lower Role. A token may only assign a Role whose Permissions it holds itself (`422` `permission_not_held` at `/role`).
Takes a body of the `application/json` content type.
Corresponds with PUT /users/{user_id} (the `UpdateUser` operationId).
func (*Client) UpdateUserWithBody ¶
func (c *Client) UpdateUserWithBody(ctx context.Context, userId UserId, params *UpdateUserParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
UpdateUserWithBody Update a user
Changes name, email and Role. A Role change ends the user's sessions. Refused with `409` (`role_locked`) for a Role change of an account that signs in through OIDC while OIDC and `oidc.sync_role` are both on, and with `409` (`last_admin`) when it would give the last active Admin a lower Role. A token may only assign a Role whose Permissions it holds itself (`422` `permission_not_held` at `/role`).
Takes any type of body and a specified content type.
Corresponds with PUT /users/{user_id} (the `UpdateUser` operationId).
type ClientInterface ¶
type ClientInterface interface {
// GetAlertGroupCounts Count Alert Groups per status
//
// Counts per status tab for the same filters as `listAlertGroups`, `status` excluded.
//
// Corresponds with GET /alert-group-counts (the `GetAlertGroupCounts` operationId).
GetAlertGroupCounts(ctx context.Context, params *GetAlertGroupCountsParams, reqEditors ...RequestEditorFn) (*http.Response, error)
// GetAlertGroupStatistics Read Alert Group statistics
//
// Number of Alert Groups, time to acknowledge and time to resolve (median and 95th percentile), as totals and per day of start, from the summary rows, one item per Route or per Integration as `group_by` says. Narrow it with `route` or `integration` ids (the one that matches `group_by`); without them every Route or Integration is returned. An Alert Group with Alerts from several Integrations counts for each.
//
// Corresponds with GET /alert-group-statistics (the `GetAlertGroupStatistics` operationId).
GetAlertGroupStatistics(ctx context.Context, params *GetAlertGroupStatisticsParams, reqEditors ...RequestEditorFn) (*http.Response, error)
// ListAlertGroups List Alert Groups
//
// The main working list. Without `status` it returns open Alert Groups (firing, acknowledged, snoozed). Without `from` and `to` it covers the last `alert_group.list_range` (7 days) and selects Alert Groups whose lifetime overlaps the range, so one that has been firing for weeks is always included. Search matches `#N` and text in the title or `summary`. Changes arrive as `alert-group` and `alert-groups` hints.
//
// Corresponds with GET /alert-groups (the `ListAlertGroups` operationId).
ListAlertGroups(ctx context.Context, params *ListAlertGroupsParams, reqEditors ...RequestEditorFn) (*http.Response, error)
// RunBulkCommandWithBody Run a Command on several Alert Groups
//
// Acknowledge, Resolve, Snooze or Unsnooze on up to `alert_group.bulk_max` Alert Groups. Each goes through the dispatcher on its own, with its own Audit log and Timeline entry; a refusal never stops the others. Bulk Acknowledge skips Alert Groups another user owns and never makes a Takeover. `x-permission` lists alternatives: the caller needs the Permission of the chosen command (`acknowledge` needs `alert-groups:acknowledge`, `resolve` needs `alert-groups:resolve`, `snooze` and `unsnooze` need `alert-groups:snooze`). A bulk Snooze with a `preset` computes its end once, so every Alert Group gets the same end; the pointers of its problems start with `/snooze`.
//
// Takes any type of body and a specified content type.
//
// Corresponds with POST /alert-groups/bulk-commands (the `RunBulkCommand` operationId).
RunBulkCommandWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
// RunBulkCommand Run a Command on several Alert Groups
//
// Acknowledge, Resolve, Snooze or Unsnooze on up to `alert_group.bulk_max` Alert Groups. Each goes through the dispatcher on its own, with its own Audit log and Timeline entry; a refusal never stops the others. Bulk Acknowledge skips Alert Groups another user owns and never makes a Takeover. `x-permission` lists alternatives: the caller needs the Permission of the chosen command (`acknowledge` needs `alert-groups:acknowledge`, `resolve` needs `alert-groups:resolve`, `snooze` and `unsnooze` need `alert-groups:snooze`). A bulk Snooze with a `preset` computes its end once, so every Alert Group gets the same end; the pointers of its problems start with `/snooze`.
//
// Takes a body of the `application/json` content type.
//
// Corresponds with POST /alert-groups/bulk-commands (the `RunBulkCommand` operationId).
RunBulkCommand(ctx context.Context, body RunBulkCommandJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// GetAlertGroup Read an Alert Group
//
// An Alert Group whose details were removed by retention opens as its summary with the notice `details_removed`; its Notes stay until the summary row is removed.
//
// Corresponds with GET /alert-groups/{alert_group_id} (the `GetAlertGroup` operationId).
GetAlertGroup(ctx context.Context, alertGroupId AlertGroupId, reqEditors ...RequestEditorFn) (*http.Response, error)
// AcknowledgeAlertGroup Acknowledge
//
// From firing or snoozed: the caller becomes the Owner and a Snooze ends. By the current Owner it changes nothing (`outcome` `unchanged`). By another user it is a Takeover: ownership moves, a Loud event mentions the previous Owner. A Personal access token acts as its User and may; a Service account token cannot become an Owner and is refused with `409` `command-refused` and the code `owner_must_be_user`. Other refusals: `already_resolved`.
//
// Corresponds with POST /alert-groups/{alert_group_id}/acknowledge (the `AcknowledgeAlertGroup` operationId).
AcknowledgeAlertGroup(ctx context.Context, alertGroupId AlertGroupId, reqEditors ...RequestEditorFn) (*http.Response, error)
// ListAlertGroupAlerts List the Alerts of an Alert Group
//
// Corresponds with GET /alert-groups/{alert_group_id}/alerts (the `ListAlertGroupAlerts` operationId).
ListAlertGroupAlerts(ctx context.Context, alertGroupId AlertGroupId, params *ListAlertGroupAlertsParams, reqEditors ...RequestEditorFn) (*http.Response, error)
// ListAlertGroupDeliveries Read delivery state per Destination
//
// Corresponds with GET /alert-groups/{alert_group_id}/deliveries (the `ListAlertGroupDeliveries` operationId).
ListAlertGroupDeliveries(ctx context.Context, alertGroupId AlertGroupId, reqEditors ...RequestEditorFn) (*http.Response, error)
// ListAlertGroupNotes List Notes
//
// Notes are kept as long as the Alert Group's summary row (`retention.alert_group_summaries`), also after its Alerts and Timeline were removed by retention, and are deleted with the summary row.
//
// Corresponds with GET /alert-groups/{alert_group_id}/notes (the `ListAlertGroupNotes` operationId).
ListAlertGroupNotes(ctx context.Context, alertGroupId AlertGroupId, params *ListAlertGroupNotesParams, reqEditors ...RequestEditorFn) (*http.Response, error)
// CreateAlertGroupNoteWithBody Add a Note
//
// Adds a Note. Service accounts may add Notes; the author is shown as the Service account.
//
// Takes any type of body and a specified content type.
//
// Corresponds with POST /alert-groups/{alert_group_id}/notes (the `CreateAlertGroupNote` operationId).
CreateAlertGroupNoteWithBody(ctx context.Context, alertGroupId AlertGroupId, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
// CreateAlertGroupNote Add a Note
//
// Adds a Note. Service accounts may add Notes; the author is shown as the Service account.
//
// Takes a body of the `application/json` content type.
//
// Corresponds with POST /alert-groups/{alert_group_id}/notes (the `CreateAlertGroupNote` operationId).
CreateAlertGroupNote(ctx context.Context, alertGroupId AlertGroupId, body CreateAlertGroupNoteJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// ListRelatedAlertGroups List previous Alert Groups with the same key
//
// Alert Groups of the same Route with the same Group key values, newest first.
//
// Corresponds with GET /alert-groups/{alert_group_id}/related (the `ListRelatedAlertGroups` operationId).
ListRelatedAlertGroups(ctx context.Context, alertGroupId AlertGroupId, params *ListRelatedAlertGroupsParams, reqEditors ...RequestEditorFn) (*http.Response, error)
// ResolveAlertGroupWithBody Resolve
//
// Resolves by the user, with an optional Note recorded in the same request. Refused with the code `already_resolved`.
//
// Takes any type of body and a specified content type.
//
// Corresponds with POST /alert-groups/{alert_group_id}/resolve (the `ResolveAlertGroup` operationId).
ResolveAlertGroupWithBody(ctx context.Context, alertGroupId AlertGroupId, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
// ResolveAlertGroup Resolve
//
// Resolves by the user, with an optional Note recorded in the same request. Refused with the code `already_resolved`.
//
// Takes a body of the `application/json` content type.
//
// Corresponds with POST /alert-groups/{alert_group_id}/resolve (the `ResolveAlertGroup` operationId).
ResolveAlertGroup(ctx context.Context, alertGroupId AlertGroupId, body ResolveAlertGroupJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// SnoozeAlertGroupWithBody Snooze
//
// A Snooze until a future time (`until`), with no end (`no_end: true`) or until a Snooze preset (`preset`), chosen explicitly. A preset's end is computed when the Command runs and stored as an instant. Allowed from firing, acknowledged and snoozed.
//
// Takes any type of body and a specified content type.
//
// Corresponds with POST /alert-groups/{alert_group_id}/snooze (the `SnoozeAlertGroup` operationId).
SnoozeAlertGroupWithBody(ctx context.Context, alertGroupId AlertGroupId, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
// SnoozeAlertGroup Snooze
//
// A Snooze until a future time (`until`), with no end (`no_end: true`) or until a Snooze preset (`preset`), chosen explicitly. A preset's end is computed when the Command runs and stored as an instant. Allowed from firing, acknowledged and snoozed.
//
// Takes a body of the `application/json` content type.
//
// Corresponds with POST /alert-groups/{alert_group_id}/snooze (the `SnoozeAlertGroup` operationId).
SnoozeAlertGroup(ctx context.Context, alertGroupId AlertGroupId, body SnoozeAlertGroupJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// AnswerReminder Answer a Reminder with "Still on it"
//
// Owner only. Recorded in the Timeline like a press in a messenger; it does not reset the Reminder interval. Refused with `409` `command-refused` and the codes `not_owner`, `no_reminder_pending` and, for a Service account token, `owner_must_be_user`.
//
// Corresponds with POST /alert-groups/{alert_group_id}/still-on-it (the `AnswerReminder` operationId).
AnswerReminder(ctx context.Context, alertGroupId AlertGroupId, reqEditors ...RequestEditorFn) (*http.Response, error)
// GetAlertGroupTimeline Read the Timeline of an Alert Group
//
// Entries of all kinds, with delivery events merged in by time as the kind `delivery`. Lifecycle events carry `event`, `loudness` and `mentions`. Notes are kept as long as the summary row, so after the details were removed by retention the Timeline still returns them.
//
// Corresponds with GET /alert-groups/{alert_group_id}/timeline (the `GetAlertGroupTimeline` operationId).
GetAlertGroupTimeline(ctx context.Context, alertGroupId AlertGroupId, params *GetAlertGroupTimelineParams, reqEditors ...RequestEditorFn) (*http.Response, error)
// UnacknowledgeAlertGroup Unacknowledge
//
// Allowed to every user with the Permission, not only the Owner. The Alert Group becomes firing without an Owner. Refused with the code `not_acknowledged`.
//
// Corresponds with POST /alert-groups/{alert_group_id}/unacknowledge (the `UnacknowledgeAlertGroup` operationId).
UnacknowledgeAlertGroup(ctx context.Context, alertGroupId AlertGroupId, reqEditors ...RequestEditorFn) (*http.Response, error)
// UnresolveAlertGroup Unresolve
//
// Only for an Alert Group a person resolved; messengers never offer it. Refused, in this order, with the codes `not_resolved`, `resolved_automatically`, `route_deleted`, `newer_alert_group_exists` (see `related_alert_group`) and `all_alerts_resolved`.
//
// Corresponds with POST /alert-groups/{alert_group_id}/unresolve (the `UnresolveAlertGroup` operationId).
UnresolveAlertGroup(ctx context.Context, alertGroupId AlertGroupId, reqEditors ...RequestEditorFn) (*http.Response, error)
// UnsnoozeAlertGroup Unsnooze
//
// The Alert Group becomes firing without an Owner. Refused with the code `not_snoozed`.
//
// Corresponds with POST /alert-groups/{alert_group_id}/unsnooze (the `UnsnoozeAlertGroup` operationId).
UnsnoozeAlertGroup(ctx context.Context, alertGroupId AlertGroupId, reqEditors ...RequestEditorFn) (*http.Response, error)
// ListAuditLog List Audit log entries
//
// Newest first. The log is append-only; configuration changes carry a before/after diff in which Secrets only show that they changed.
//
// Corresponds with GET /audit-log (the `ListAuditLog` operationId).
ListAuditLog(ctx context.Context, params *ListAuditLogParams, reqEditors ...RequestEditorFn) (*http.Response, error)
// BridgeEventWithBody Receive a Bridge event (push event delivery)
//
// Used only when the Bridge Connection's event delivery mode is `push`: the bridge posts each event, one per request, signed as Standard Webhooks specifies with the Connection's push secret. Muster verifies `webhook-signature` — `v1,` followed by the base64 of HMAC-SHA256 over `<webhook-id>.<webhook-timestamp>.<body>` with the decoded secret, any of several signatures separated by spaces — in constant time, refuses a `webhook-timestamp` further than `bridge.push_tolerance` from its real clock, and requires `webhook-id` to equal the event's `id`. It handles each event `id` of a Connection once within `bridge.event_dedup_window`, answers the person behind the event, when it does, before it answers `204`, and answers `204` also for an `id` it handled before. A bad signature, a timestamp out of range, an unknown or deleted Connection and a Connection in poll mode are all answered `401` and change nothing, so the endpoint reveals nothing about which Connections exist; a body that is no event of the Bridge protocol, or whose `id` is not `webhook-id`, is answered `400`, and the bridge drops it; an event whose handling failed is answered `500`, is not recorded as handled, and the bridge sends it again. Request validation does not answer `400` here: the handler decides every answer.
//
// Takes any type of body and a specified content type.
//
// Corresponds with POST /callbacks/bridge/{connection_id} (the `BridgeEvent` operationId).
BridgeEventWithBody(ctx context.Context, connectionId ConnectionId, params *BridgeEventParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
// BridgeEvent Receive a Bridge event (push event delivery)
//
// Used only when the Bridge Connection's event delivery mode is `push`: the bridge posts each event, one per request, signed as Standard Webhooks specifies with the Connection's push secret. Muster verifies `webhook-signature` — `v1,` followed by the base64 of HMAC-SHA256 over `<webhook-id>.<webhook-timestamp>.<body>` with the decoded secret, any of several signatures separated by spaces — in constant time, refuses a `webhook-timestamp` further than `bridge.push_tolerance` from its real clock, and requires `webhook-id` to equal the event's `id`. It handles each event `id` of a Connection once within `bridge.event_dedup_window`, answers the person behind the event, when it does, before it answers `204`, and answers `204` also for an `id` it handled before. A bad signature, a timestamp out of range, an unknown or deleted Connection and a Connection in poll mode are all answered `401` and change nothing, so the endpoint reveals nothing about which Connections exist; a body that is no event of the Bridge protocol, or whose `id` is not `webhook-id`, is answered `400`, and the bridge drops it; an event whose handling failed is answered `500`, is not recorded as handled, and the bridge sends it again. Request validation does not answer `400` here: the handler decides every answer.
//
// Takes a body of the `application/json` content type.
//
// Corresponds with POST /callbacks/bridge/{connection_id} (the `BridgeEvent` operationId).
BridgeEvent(ctx context.Context, connectionId ConnectionId, params *BridgeEventParams, body BridgeEventJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// MattermostActionWithBody Receive a Mattermost button press
//
// Sent by the Mattermost server. Mattermost does not sign the request: Muster verifies the signed action id with the key it names, checks that `post_id` and `channel_id` belong to the post the id was issued for, maps `user_id` to a User through the Account link of this Connection and dispatches the Command with the Transport `mattermost`. Every request is answered with `200` and a JSON object, an unknown or deleted Connection, a bad signature and a body that is not JSON or does not match `MattermostActionRequest` included; request validation does not answer `400` here. Whatever the person who pressed must read — a refusal, a failure, "not linked", or "not verified" for a press on a post Muster delivered in that channel — goes first as a separate ephemeral post, shown in the channel view, and the answer is then an empty object. That post needs the `create_post_ephemeral` permission, which a bot with the role Member lacks; when it is refused, or fails in any other way, the answer carries the text as `ephemeral_text`, which Mattermost shows to that person alone in the Thread of the Root message and which needs no permission. Every other answer is an empty object, so the endpoint tells a caller nothing about which Connection ids exist. The answer never carries `update`: only the delivery worker edits the Root message.
//
// Takes any type of body and a specified content type.
//
// Corresponds with POST /callbacks/mattermost/{connection_id} (the `MattermostAction` operationId).
MattermostActionWithBody(ctx context.Context, connectionId ConnectionId, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
// MattermostAction Receive a Mattermost button press
//
// Sent by the Mattermost server. Mattermost does not sign the request: Muster verifies the signed action id with the key it names, checks that `post_id` and `channel_id` belong to the post the id was issued for, maps `user_id` to a User through the Account link of this Connection and dispatches the Command with the Transport `mattermost`. Every request is answered with `200` and a JSON object, an unknown or deleted Connection, a bad signature and a body that is not JSON or does not match `MattermostActionRequest` included; request validation does not answer `400` here. Whatever the person who pressed must read — a refusal, a failure, "not linked", or "not verified" for a press on a post Muster delivered in that channel — goes first as a separate ephemeral post, shown in the channel view, and the answer is then an empty object. That post needs the `create_post_ephemeral` permission, which a bot with the role Member lacks; when it is refused, or fails in any other way, the answer carries the text as `ephemeral_text`, which Mattermost shows to that person alone in the Thread of the Root message and which needs no permission. Every other answer is an empty object, so the endpoint tells a caller nothing about which Connection ids exist. The answer never carries `update`: only the delivery worker edits the Root message.
//
// Takes a body of the `application/json` content type.
//
// Corresponds with POST /callbacks/mattermost/{connection_id} (the `MattermostAction` operationId).
MattermostAction(ctx context.Context, connectionId ConnectionId, body MattermostActionJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// SlackInteractionWithBody Receive a Slack button press (http event mode)
//
// Used only when the Slack Connection's event mode is `http`: Slack posts each interaction of the app, one per request, form-encoded with its JSON in `payload`. Muster reads the raw body, up to 1 MiB, before it parses the form, verifies `X-Slack-Signature` — `v0=` followed by the hex HMAC-SHA256 of `v0:<X-Slack-Request-Timestamp>:<raw body>` with the Connection's Slack signing secret — in constant time, and refuses an `X-Slack-Request-Timestamp` further than `slack.request_tolerance` from its real clock, either way. A missing or wrong signature, a timestamp out of range, an unknown or deleted Connection and a Connection in `socket` mode are all answered `401` with the same body and change nothing, so the endpoint reveals nothing about which Connections exist; a body over 1 MiB, or without a `payload` that is a JSON object, is answered `400`; a failure to read the Connection is answered `500`. Every other request is answered `200` with an empty body at once, before its press is handled, because Slack waits only 3 seconds: a `block_actions` press then runs its Command with the Transport `slack`, and the person who pressed is answered privately, with `chat.postEphemeral` or else the press's `response_url`, only when there is something to read; other kinds of interaction are ignored. Request validation does not answer here: the handler decides every answer.
//
// Takes any type of body and a specified content type.
//
// Corresponds with POST /callbacks/slack/{connection_id} (the `SlackInteraction` operationId).
SlackInteractionWithBody(ctx context.Context, connectionId ConnectionId, params *SlackInteractionParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
// SlackInteractionWithFormdataBody Receive a Slack button press (http event mode)
//
// Used only when the Slack Connection's event mode is `http`: Slack posts each interaction of the app, one per request, form-encoded with its JSON in `payload`. Muster reads the raw body, up to 1 MiB, before it parses the form, verifies `X-Slack-Signature` — `v0=` followed by the hex HMAC-SHA256 of `v0:<X-Slack-Request-Timestamp>:<raw body>` with the Connection's Slack signing secret — in constant time, and refuses an `X-Slack-Request-Timestamp` further than `slack.request_tolerance` from its real clock, either way. A missing or wrong signature, a timestamp out of range, an unknown or deleted Connection and a Connection in `socket` mode are all answered `401` with the same body and change nothing, so the endpoint reveals nothing about which Connections exist; a body over 1 MiB, or without a `payload` that is a JSON object, is answered `400`; a failure to read the Connection is answered `500`. Every other request is answered `200` with an empty body at once, before its press is handled, because Slack waits only 3 seconds: a `block_actions` press then runs its Command with the Transport `slack`, and the person who pressed is answered privately, with `chat.postEphemeral` or else the press's `response_url`, only when there is something to read; other kinds of interaction are ignored. Request validation does not answer here: the handler decides every answer.
//
// Takes a body of the `application/x-www-form-urlencoded` content type.
//
// Corresponds with POST /callbacks/slack/{connection_id} (the `SlackInteraction` operationId).
SlackInteractionWithFormdataBody(ctx context.Context, connectionId ConnectionId, params *SlackInteractionParams, body SlackInteractionFormdataRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// TelegramWebhookWithBody Receive a Telegram update (webhook update mode)
//
// Used only when the Connection's update mode is `webhook`. A request without the right secret token header, or for a Connection that does not exist or is not in webhook mode, is answered `401` and changes nothing.
//
// Takes any type of body and a specified content type.
//
// Corresponds with POST /callbacks/telegram/{connection_id} (the `TelegramWebhook` operationId).
TelegramWebhookWithBody(ctx context.Context, connectionId ConnectionId, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
// TelegramWebhook Receive a Telegram update (webhook update mode)
//
// Used only when the Connection's update mode is `webhook`. A request without the right secret token header, or for a Connection that does not exist or is not in webhook mode, is answered `401` and changes nothing.
//
// Takes a body of the `application/json` content type.
//
// Corresponds with POST /callbacks/telegram/{connection_id} (the `TelegramWebhook` operationId).
TelegramWebhook(ctx context.Context, connectionId ConnectionId, body TelegramWebhookJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// ListConnections List connections
//
// Corresponds with GET /connections (the `ListConnections` operationId).
ListConnections(ctx context.Context, params *ListConnectionsParams, reqEditors ...RequestEditorFn) (*http.Response, error)
// CreateConnectionWithBody Create Connection
//
// `type` selects Mattermost, Telegram, Bridge or Slack. The bot token, the push secret, the app-level token and the Slack signing secret are write-only Secrets.
//
// Takes any type of body and a specified content type.
//
// Corresponds with POST /connections (the `CreateConnection` operationId).
CreateConnectionWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
// CreateConnection Create Connection
//
// `type` selects Mattermost, Telegram, Bridge or Slack. The bot token, the push secret, the app-level token and the Slack signing secret are write-only Secrets.
//
// Takes a body of the `application/json` content type.
//
// Corresponds with POST /connections (the `CreateConnection` operationId).
CreateConnection(ctx context.Context, body CreateConnectionJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// CheckConnectionDraftWithBody Check a Connection before saving it
//
// Checks a draft of a Connection of any type, as its form holds it — the address, the bot token typed in the form, the proxy and, for a Bridge, the event delivery mode, for Slack the event mode and the app-level token — with the steps and step codes of `checkConnection`, and stores nothing: no Connection, no bot name, no `info`, no workspace or app, no Audit log entry. Which token goes where: a `bot_token` in the draft is sent to the address in the draft; without one, the stored token of `connection_id` is sent only when the draft's address, normalized as a save normalizes it, and its proxy are the saved ones; otherwise only the dry probe of the type runs, without any token, and the other steps are reported skipped — Mattermost `GET <server_url>/api/v4/system/ping`, Telegram `GET <bot_api_base_url>/bot0:x/getMe`, a Bridge `GET <base_url>/v1/info`, Slack `POST https://slack.com/api/auth.test` without `Authorization`. Slack's address is fixed, so only the proxy of a Slack draft can differ from the saved one; its step `app_token`, in `socket` mode, runs only with a bot token, and with an `app_token` in the draft or the stored one of `connection_id` on the saved proxy, and is reported skipped otherwise. A stored proxy password is used only with the saved proxy type and address. A `connection_id` that names no Connection, a deleted one or one of another type answers `422` `unknown_id` at `/connection_id`; an address or a proxy that a save would refuse answers `422` at its pointer. Runs on the interactive path: a draft with a `connection_id` takes its limiter token from that Connection, and when none is free within `delivery.interactive_budget` the answer is `503` with `Retry-After`; a draft of a new Connection has no limiter and waits for none.
//
// Takes any type of body and a specified content type.
//
// Corresponds with POST /connections/checks (the `CheckConnectionDraft` operationId).
CheckConnectionDraftWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
// CheckConnectionDraft Check a Connection before saving it
//
// Checks a draft of a Connection of any type, as its form holds it — the address, the bot token typed in the form, the proxy and, for a Bridge, the event delivery mode, for Slack the event mode and the app-level token — with the steps and step codes of `checkConnection`, and stores nothing: no Connection, no bot name, no `info`, no workspace or app, no Audit log entry. Which token goes where: a `bot_token` in the draft is sent to the address in the draft; without one, the stored token of `connection_id` is sent only when the draft's address, normalized as a save normalizes it, and its proxy are the saved ones; otherwise only the dry probe of the type runs, without any token, and the other steps are reported skipped — Mattermost `GET <server_url>/api/v4/system/ping`, Telegram `GET <bot_api_base_url>/bot0:x/getMe`, a Bridge `GET <base_url>/v1/info`, Slack `POST https://slack.com/api/auth.test` without `Authorization`. Slack's address is fixed, so only the proxy of a Slack draft can differ from the saved one; its step `app_token`, in `socket` mode, runs only with a bot token, and with an `app_token` in the draft or the stored one of `connection_id` on the saved proxy, and is reported skipped otherwise. A stored proxy password is used only with the saved proxy type and address. A `connection_id` that names no Connection, a deleted one or one of another type answers `422` `unknown_id` at `/connection_id`; an address or a proxy that a save would refuse answers `422` at its pointer. Runs on the interactive path: a draft with a `connection_id` takes its limiter token from that Connection, and when none is free within `delivery.interactive_budget` the answer is `503` with `Retry-After`; a draft of a new Connection has no limiter and waits for none.
//
// Takes a body of the `application/json` content type.
//
// Corresponds with POST /connections/checks (the `CheckConnectionDraft` operationId).
CheckConnectionDraft(ctx context.Context, body CheckConnectionDraftJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// DeleteConnection Delete Connection
//
// A Connection used by Destinations cannot be deleted: `409` (`in_use`). Deleted Destinations do not count; deleting the Connection abandons the final edits still pending for them, which end as Not delivered.
//
// Corresponds with DELETE /connections/{connection_id} (the `DeleteConnection` operationId).
DeleteConnection(ctx context.Context, connectionId ConnectionId, params *DeleteConnectionParams, reqEditors ...RequestEditorFn) (*http.Response, error)
// GetConnection Read Connection
//
// Corresponds with GET /connections/{connection_id} (the `GetConnection` operationId).
GetConnection(ctx context.Context, connectionId ConnectionId, reqEditors ...RequestEditorFn) (*http.Response, error)
// UpdateConnectionWithBody Update Connection
//
// Replaces the writable fields. Requires `If-Match`; a stale ETag gets `412`. An omitted optional field keeps its stored value; an explicit `null` clears a nullable one. An omitted Secret field keeps the stored Secret.
//
// Takes any type of body and a specified content type.
//
// Corresponds with PUT /connections/{connection_id} (the `UpdateConnection` operationId).
UpdateConnectionWithBody(ctx context.Context, connectionId ConnectionId, params *UpdateConnectionParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
// UpdateConnection Update Connection
//
// Replaces the writable fields. Requires `If-Match`; a stale ETag gets `412`. An omitted optional field keeps its stored value; an explicit `null` clears a nullable one. An omitted Secret field keeps the stored Secret.
//
// Takes a body of the `application/json` content type.
//
// Corresponds with PUT /connections/{connection_id} (the `UpdateConnection` operationId).
UpdateConnection(ctx context.Context, connectionId ConnectionId, params *UpdateConnectionParams, body UpdateConnectionJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// ListConnectionChannels List channels visible to the bot
//
// The channels of a Connection's bot for the channel picker of the Destination form. A Mattermost Connection answers `MattermostChannelList`: the bot's teams, `team_id` alone when given, and its channels in each. A Slack Connection answers `SlackChannelList`: the public and private channels the bot is a member of and that are not archived, read with `conversations.list` (`types=public_channel,private_channel`, `exclude_archived=true`, `limit=200`) page by page, at most 5 pages, `truncated` when more were left; it ignores `team_id`. A Telegram or Bridge Connection answers `409`: the Admin enters the channel. Requires `connections:write` because it calls out with the bot token. Runs on the interactive path: when no limiter token is free within `delivery.interactive_budget`, or Slack answers a page with `429`, the answer is `503` with `Retry-After`, Slack's own when it sent one, and nothing more is read.
//
// Corresponds with GET /connections/{connection_id}/channels (the `ListConnectionChannels` operationId).
ListConnectionChannels(ctx context.Context, connectionId ConnectionId, params *ListConnectionChannelsParams, reqEditors ...RequestEditorFn) (*http.Response, error)
// CheckConnectionWithBody Check a Connection
//
// Mattermost verifies the token and returns the bot's name. Telegram works in steps and reports the latency and path of each: a dry probe without the token, `getMe`, `getWebhookInfo`. With `base_url` in the body only the dry probe runs against that unsaved address, without the token: a stored token is sent only to the saved address of its Connection, through its saved proxy; `checkConnectionDraft` checks an unsaved address with the token typed again. A Bridge Connection is checked in two steps: `info` calls `getInfo` of the Bridge protocol with the token, and a passing `info` is stored on the Connection and returned as `info`; `event_delivery` checks that the bridge offers the Connection's event delivery mode. A Slack Connection is checked in steps: `token` calls `auth.test` with the bot token and finds the bot and the workspace; `scopes` reads the `x-oauth-scopes` of that answer, which must name `chat:write`, `channels:read`, `groups:read`, `im:write`, `users:read` and `users:read.email`; in `socket` mode `app_token` calls `auth.test` with the app-level token and `bots.info` with the bot token, whose app ids must be equal. A passing check stores what it found and returns it as `slack`. Runs on the interactive path: when no limiter token is free within `delivery.interactive_budget`, the answer is `503` with `Retry-After`.
//
// Takes any type of body and a specified content type.
//
// Corresponds with POST /connections/{connection_id}/checks (the `CheckConnection` operationId).
CheckConnectionWithBody(ctx context.Context, connectionId ConnectionId, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
// CheckConnection Check a Connection
//
// Mattermost verifies the token and returns the bot's name. Telegram works in steps and reports the latency and path of each: a dry probe without the token, `getMe`, `getWebhookInfo`. With `base_url` in the body only the dry probe runs against that unsaved address, without the token: a stored token is sent only to the saved address of its Connection, through its saved proxy; `checkConnectionDraft` checks an unsaved address with the token typed again. A Bridge Connection is checked in two steps: `info` calls `getInfo` of the Bridge protocol with the token, and a passing `info` is stored on the Connection and returned as `info`; `event_delivery` checks that the bridge offers the Connection's event delivery mode. A Slack Connection is checked in steps: `token` calls `auth.test` with the bot token and finds the bot and the workspace; `scopes` reads the `x-oauth-scopes` of that answer, which must name `chat:write`, `channels:read`, `groups:read`, `im:write`, `users:read` and `users:read.email`; in `socket` mode `app_token` calls `auth.test` with the app-level token and `bots.info` with the bot token, whose app ids must be equal. A passing check stores what it found and returns it as `slack`. Runs on the interactive path: when no limiter token is free within `delivery.interactive_budget`, the answer is `503` with `Retry-After`.
//
// Takes a body of the `application/json` content type.
//
// Corresponds with POST /connections/{connection_id}/checks (the `CheckConnection` operationId).
CheckConnection(ctx context.Context, connectionId ConnectionId, body CheckConnectionJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// ListDestinations List destinations
//
// All types, with health. Outgoing webhook URL and header templates are shown with Secret references only.
//
// Corresponds with GET /destinations (the `ListDestinations` operationId).
ListDestinations(ctx context.Context, params *ListDestinationsParams, reqEditors ...RequestEditorFn) (*http.Response, error)
// CreateDestinationWithBody Create Destination
//
// `type` selects Mattermost, Telegram, outgoing webhook, Bridge or Slack. Saving a Mattermost, Telegram, Bridge or Slack Destination runs the Destination check through the interactive path and refuses one that fails it with `422` `validation-failed` and `destination_check_failed`. Creating an outgoing webhook Destination also generates its Signing secret, returned once in `signing_secret` (`null` for the other types). Routes attach Destinations through `destination_ids`.
//
// Takes any type of body and a specified content type.
//
// Corresponds with POST /destinations (the `CreateDestination` operationId).
CreateDestinationWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
// CreateDestination Create Destination
//
// `type` selects Mattermost, Telegram, outgoing webhook, Bridge or Slack. Saving a Mattermost, Telegram, Bridge or Slack Destination runs the Destination check through the interactive path and refuses one that fails it with `422` `validation-failed` and `destination_check_failed`. Creating an outgoing webhook Destination also generates its Signing secret, returned once in `signing_secret` (`null` for the other types). Routes attach Destinations through `destination_ids`.
//
// Takes a body of the `application/json` content type.
//
// Corresponds with POST /destinations (the `CreateDestination` operationId).
CreateDestination(ctx context.Context, body CreateDestinationJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// DeleteDestination Delete Destination
//
// Always allowed: the Destination leaves every Route, and open Root messages get one final edit "No longer updated here" and nothing after; then the Destination's secrets are wiped. An outgoing webhook in events mode has no Root message: its queued events are abandoned and end as Not delivered, no final event is sent, and its secrets are wiped at once (in mode `both`, after the final edits of the template mode). It is a soft delete: the Destination is kept for history and no longer counts as using its Connection. There is no `409`; a stale `If-Match` is `412`.
//
// Corresponds with DELETE /destinations/{destination_id} (the `DeleteDestination` operationId).
DeleteDestination(ctx context.Context, destinationId DestinationId, params *DeleteDestinationParams, reqEditors ...RequestEditorFn) (*http.Response, error)
// GetDestination Read Destination
//
// Corresponds with GET /destinations/{destination_id} (the `GetDestination` operationId).
GetDestination(ctx context.Context, destinationId DestinationId, reqEditors ...RequestEditorFn) (*http.Response, error)
// UpdateDestinationWithBody Update Destination
//
// Replaces the writable fields. Requires `If-Match`; a stale ETag gets `412`. An omitted optional field keeps its stored value; an explicit `null` clears a nullable one. An omitted Secret field keeps the stored Secret. `null` on a proxy `password` clears it. Saving a Mattermost, Telegram, Bridge or Slack Destination runs the Destination check as `createDestination` does and refuses a failing one with `destination_check_failed`.
//
// Takes any type of body and a specified content type.
//
// Corresponds with PUT /destinations/{destination_id} (the `UpdateDestination` operationId).
UpdateDestinationWithBody(ctx context.Context, destinationId DestinationId, params *UpdateDestinationParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
// UpdateDestination Update Destination
//
// Replaces the writable fields. Requires `If-Match`; a stale ETag gets `412`. An omitted optional field keeps its stored value; an explicit `null` clears a nullable one. An omitted Secret field keeps the stored Secret. `null` on a proxy `password` clears it. Saving a Mattermost, Telegram, Bridge or Slack Destination runs the Destination check as `createDestination` does and refuses a failing one with `destination_check_failed`.
//
// Takes a body of the `application/json` content type.
//
// Corresponds with PUT /destinations/{destination_id} (the `UpdateDestination` operationId).
UpdateDestination(ctx context.Context, destinationId DestinationId, params *UpdateDestinationParams, body UpdateDestinationJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// CheckDestination Run the Destination check
//
// Verifies that Muster can still reach and post to the Destination without sending a message: Mattermost token and channel membership; Telegram `getChat` for the channel, its discussion group from `linked_chat_id`, and `getChatMember` for the bot in both; Bridge `checkChannel`; Slack `conversations.info` (item `channel`). A success ends the Broken state. Not available for outgoing webhooks (`422` with `check_not_supported`). Runs on the interactive path: when no limiter token is free within `delivery.interactive_budget`, the answer is `503` with `Retry-After`.
//
// Corresponds with POST /destinations/{destination_id}/checks (the `CheckDestination` operationId).
CheckDestination(ctx context.Context, destinationId DestinationId, reqEditors ...RequestEditorFn) (*http.Response, error)
// PreviewDestinationWithBody Preview a message or request
//
// Renders the Root message or the webhook requests for a chosen Alert Group or the example without sending anything. For a Bridge Destination the item `message` is the envelope as Muster would post it, as JSON (format `json`). For a Slack Destination the item `message` is the body of `chat.postMessage` as JSON (format `json`), and its `request` that call with the bot token masked.
//
// Takes any type of body and a specified content type.
//
// Corresponds with POST /destinations/{destination_id}/previews (the `PreviewDestination` operationId).
PreviewDestinationWithBody(ctx context.Context, destinationId DestinationId, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
// PreviewDestination Preview a message or request
//
// Renders the Root message or the webhook requests for a chosen Alert Group or the example without sending anything. For a Bridge Destination the item `message` is the envelope as Muster would post it, as JSON (format `json`). For a Slack Destination the item `message` is the body of `chat.postMessage` as JSON (format `json`), and its `request` that call with the bot token masked.
//
// Takes a body of the `application/json` content type.
//
// Corresponds with POST /destinations/{destination_id}/previews (the `PreviewDestination` operationId).
PreviewDestination(ctx context.Context, destinationId DestinationId, body PreviewDestinationJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// ListDestinationSecrets List the Secrets of a webhook Destination
//
// Names with `set` and the time of the last change. Values are never returned. `409` (`not_webhook_destination`) for a Destination that is not an outgoing webhook.
//
// Corresponds with GET /destinations/{destination_id}/secrets (the `ListDestinationSecrets` operationId).
ListDestinationSecrets(ctx context.Context, destinationId DestinationId, reqEditors ...RequestEditorFn) (*http.Response, error)
// DeleteDestinationSecret Delete a Secret of a webhook Destination
//
// `If-Match`, when given, is compared with the ETag of `listDestinationSecrets`.
//
// Corresponds with DELETE /destinations/{destination_id}/secrets/{secret_name} (the `DeleteDestinationSecret` operationId).
DeleteDestinationSecret(ctx context.Context, destinationId DestinationId, secretName SecretName, params *DeleteDestinationSecretParams, reqEditors ...RequestEditorFn) (*http.Response, error)
// SetDestinationSecretWithBody Set a Secret of a webhook Destination
//
// Creates or replaces the named Secret, referenced as `{{ .Secrets.<name> }}`. `If-Match`, when given, is compared with the ETag of `listDestinationSecrets`.
//
// Takes any type of body and a specified content type.
//
// Corresponds with PUT /destinations/{destination_id}/secrets/{secret_name} (the `SetDestinationSecret` operationId).
SetDestinationSecretWithBody(ctx context.Context, destinationId DestinationId, secretName SecretName, params *SetDestinationSecretParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
// SetDestinationSecret Set a Secret of a webhook Destination
//
// Creates or replaces the named Secret, referenced as `{{ .Secrets.<name> }}`. `If-Match`, when given, is compared with the ETag of `listDestinationSecrets`.
//
// Takes a body of the `application/json` content type.
//
// Corresponds with PUT /destinations/{destination_id}/secrets/{secret_name} (the `SetDestinationSecret` operationId).
SetDestinationSecret(ctx context.Context, destinationId DestinationId, secretName SecretName, params *SetDestinationSecretParams, body SetDestinationSecretJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// GetSigningSecret Read the Signing secret status
//
// `409` (`not_webhook_destination`) for a Destination that is not an outgoing webhook.
//
// Corresponds with GET /destinations/{destination_id}/signing-secret (the `GetSigningSecret` operationId).
GetSigningSecret(ctx context.Context, destinationId DestinationId, reqEditors ...RequestEditorFn) (*http.Response, error)
// GenerateSigningSecret Regenerate the Signing secret
//
// The first Signing secret is generated when the Destination is created. This returns a new one, once; requests then carry signatures with both the new and the previous secret until `retirePreviousSigningSecret`.
//
// Corresponds with POST /destinations/{destination_id}/signing-secret (the `GenerateSigningSecret` operationId).
GenerateSigningSecret(ctx context.Context, destinationId DestinationId, reqEditors ...RequestEditorFn) (*http.Response, error)
// RetirePreviousSigningSecret Retire the previous Signing secret
//
// `409` (`not_webhook_destination`) for a Destination that is not an outgoing webhook.
//
// Corresponds with DELETE /destinations/{destination_id}/signing-secret/previous (the `RetirePreviousSigningSecret` operationId).
RetirePreviousSigningSecret(ctx context.Context, destinationId DestinationId, reqEditors ...RequestEditorFn) (*http.Response, error)
// TestDestinationWithBody Send a test message
//
// One "create" request marked "Test message", built from a recent Alert Group of one of the Destination's Routes or from a built-in example, through the interactive path. An outgoing webhook sends the `test` event in events mode and the "create" request in template mode, both when it uses both. Secrets and the Signing secret are masked in the result. Test messages are never reconciled and change no Alert Group. A successful test of a Broken Destination ends the Broken state. Audited. A step that could not get a limiter token in time ends with `error_class` `limited`. A Bridge Destination posts one test message of the kind `test` with `postMessage`. A Slack Destination posts one test message with `chat.postMessage`, the step `message` alone; a bot cannot press its own button, so the test cannot show that presses reach Muster.
//
// Takes any type of body and a specified content type.
//
// Corresponds with POST /destinations/{destination_id}/tests (the `TestDestination` operationId).
TestDestinationWithBody(ctx context.Context, destinationId DestinationId, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
// TestDestination Send a test message
//
// One "create" request marked "Test message", built from a recent Alert Group of one of the Destination's Routes or from a built-in example, through the interactive path. An outgoing webhook sends the `test` event in events mode and the "create" request in template mode, both when it uses both. Secrets and the Signing secret are masked in the result. Test messages are never reconciled and change no Alert Group. A successful test of a Broken Destination ends the Broken state. Audited. A step that could not get a limiter token in time ends with `error_class` `limited`. A Bridge Destination posts one test message of the kind `test` with `postMessage`. A Slack Destination posts one test message with `chat.postMessage`, the step `message` alone; a bot cannot press its own button, so the test cannot show that presses reach Muster.
//
// Takes a body of the `application/json` content type.
//
// Corresponds with POST /destinations/{destination_id}/tests (the `TestDestination` operationId).
TestDestination(ctx context.Context, destinationId DestinationId, body TestDestinationJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// PreviewGroupKeyWithBody Preview a Group key
//
// Counts the Alert Groups that the Stored Snapshots of the period would have produced with the current and with the proposed Group key.
//
// Takes any type of body and a specified content type.
//
// Corresponds with POST /group-key-previews (the `PreviewGroupKey` operationId).
PreviewGroupKeyWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
// PreviewGroupKey Preview a Group key
//
// Counts the Alert Groups that the Stored Snapshots of the period would have produced with the current and with the proposed Group key.
//
// Takes a body of the `application/json` content type.
//
// Corresponds with POST /group-key-previews (the `PreviewGroupKey` operationId).
PreviewGroupKey(ctx context.Context, body PreviewGroupKeyJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// HeartbeatGet Heartbeat signal (GET)
//
// Any request carrying one of the Integration's tokens counts as a signal; the body is ignored. The first signal moves the Heartbeat from waiting to live. While the Integration's Heartbeat is off, the request is answered `204` and nothing is recorded.
//
// Corresponds with GET /heartbeat (the `HeartbeatGet` operationId).
HeartbeatGet(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
// HeartbeatPost Heartbeat signal (POST)
//
// Any request carrying one of the Integration's tokens counts as a signal; the body is ignored. The first signal moves the Heartbeat from waiting to live. While the Integration's Heartbeat is off, the request is answered `204` and nothing is recorded.
//
// Corresponds with POST /heartbeat (the `HeartbeatPost` operationId).
HeartbeatPost(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
// HeartbeatGetWithPathToken Heartbeat signal (GET, token in the path)
//
// Corresponds with GET /heartbeat/{ingest_token} (the `HeartbeatGetWithPathToken` operationId).
HeartbeatGetWithPathToken(ctx context.Context, ingestToken IngestTokenInPath, reqEditors ...RequestEditorFn) (*http.Response, error)
// HeartbeatPostWithPathToken Heartbeat signal (POST, token in the path)
//
// Corresponds with POST /heartbeat/{ingest_token} (the `HeartbeatPostWithPathToken` operationId).
HeartbeatPostWithPathToken(ctx context.Context, ingestToken IngestTokenInPath, reqEditors ...RequestEditorFn) (*http.Response, error)
// IngestSnapshotWithBody Receive an Alertmanager webhook
//
// Checks the token, then the body size, stores the body as a Stored Snapshot exactly as received and answers `202` after the write commits, without waiting for processing. It never answers `400`: a body that is not JSON, or does not look like an Alertmanager payload, is stored and fails later as a processing error (log event, `muster_ingest_failed_snapshots_total`, Stored Snapshot state `failed`), because Alertmanager does not retry a `4xx` and the notification would be lost. Not rate-limited. Counted in `muster_ingest_requests_total` with the outcome `accepted`, `unauthorized` or `too_large`. The only `5xx` is a failed write, which Alertmanager retries. Ingestion is excluded from request validation by the spec: the handler reads the raw body and the generated types are not used for it.
//
// Takes any type of body and a specified content type.
//
// Corresponds with POST /ingest (the `IngestSnapshot` operationId).
IngestSnapshotWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
// IngestSnapshotWithPathTokenWithBody Receive an Alertmanager webhook (token in the path)
//
// For senders that cannot set a header. Identical to `ingestSnapshot`. Logs record the route pattern, never the path.
//
// Takes any type of body and a specified content type.
//
// Corresponds with POST /ingest/{ingest_token} (the `IngestSnapshotWithPathToken` operationId).
IngestSnapshotWithPathTokenWithBody(ctx context.Context, ingestToken IngestTokenInPath, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
// ListIntegrations List integrations
//
// Includes the built-in "Muster" Integration, marked `builtin`.
//
// Corresponds with GET /integrations (the `ListIntegrations` operationId).
ListIntegrations(ctx context.Context, params *ListIntegrationsParams, reqEditors ...RequestEditorFn) (*http.Response, error)
// CreateIntegrationWithBody Create Integration
//
// Takes any type of body and a specified content type.
//
// Corresponds with POST /integrations (the `CreateIntegration` operationId).
CreateIntegrationWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
// CreateIntegration Create Integration
//
// Takes a body of the `application/json` content type.
//
// Corresponds with POST /integrations (the `CreateIntegration` operationId).
CreateIntegration(ctx context.Context, body CreateIntegrationJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// DeleteIntegration Delete Integration
//
// Soft delete: its tokens stop working at once, its open Alerts are resolved with the reason "Integration {name} deleted", its Internal alerts are resolved, and its open Alert Groups are resolved. The built-in Integration cannot be deleted (`409`, `builtin_immutable`).
//
// Corresponds with DELETE /integrations/{integration_id} (the `DeleteIntegration` operationId).
DeleteIntegration(ctx context.Context, integrationId IntegrationId, params *DeleteIntegrationParams, reqEditors ...RequestEditorFn) (*http.Response, error)
// GetIntegration Read Integration
//
// Corresponds with GET /integrations/{integration_id} (the `GetIntegration` operationId).
GetIntegration(ctx context.Context, integrationId IntegrationId, reqEditors ...RequestEditorFn) (*http.Response, error)
// UpdateIntegrationWithBody Update Integration
//
// Replaces the writable fields. Requires `If-Match`; a stale ETag gets `412`. An omitted optional field keeps its stored value; an explicit `null` clears a nullable one.
//
// Takes any type of body and a specified content type.
//
// Corresponds with PUT /integrations/{integration_id} (the `UpdateIntegration` operationId).
UpdateIntegrationWithBody(ctx context.Context, integrationId IntegrationId, params *UpdateIntegrationParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
// UpdateIntegration Update Integration
//
// Replaces the writable fields. Requires `If-Match`; a stale ETag gets `412`. An omitted optional field keeps its stored value; an explicit `null` clears a nullable one.
//
// Takes a body of the `application/json` content type.
//
// Corresponds with PUT /integrations/{integration_id} (the `UpdateIntegration` operationId).
UpdateIntegration(ctx context.Context, integrationId IntegrationId, params *UpdateIntegrationParams, body UpdateIntegrationJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// ListAlertmanagerRoutes List learned Alertmanager routes
//
// Routes taken from the `groupKey` of Snapshots, with the learned repeat interval and the resulting time to resolve by absence.
//
// Corresponds with GET /integrations/{integration_id}/alertmanager-routes (the `ListAlertmanagerRoutes` operationId).
ListAlertmanagerRoutes(ctx context.Context, integrationId IntegrationId, reqEditors ...RequestEditorFn) (*http.Response, error)
// ListIntegrationAlerts List the Alerts view of an Integration
//
// The Alerts Muster currently tracks for the Integration. Resolved Alerts stay for `retention.alert_details`. Label filters follow the scheme of `label` on `listAlertGroups`.
//
// Corresponds with GET /integrations/{integration_id}/alerts (the `ListIntegrationAlerts` operationId).
ListIntegrationAlerts(ctx context.Context, integrationId IntegrationId, params *ListIntegrationAlertsParams, reqEditors ...RequestEditorFn) (*http.Response, error)
// ListIntegrationTokens List Integration tokens
//
// Values are never returned.
//
// Corresponds with GET /integrations/{integration_id}/tokens (the `ListIntegrationTokens` operationId).
ListIntegrationTokens(ctx context.Context, integrationId IntegrationId, reqEditors ...RequestEditorFn) (*http.Response, error)
// CreateIntegrationTokenWithBody Create an Integration token
//
// The token allows ingestion and Heartbeat and nothing else. The value and the ready Alertmanager snippet that contains it are returned once; a new snippet means a new token.
//
// Takes any type of body and a specified content type.
//
// Corresponds with POST /integrations/{integration_id}/tokens (the `CreateIntegrationToken` operationId).
CreateIntegrationTokenWithBody(ctx context.Context, integrationId IntegrationId, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
// CreateIntegrationToken Create an Integration token
//
// The token allows ingestion and Heartbeat and nothing else. The value and the ready Alertmanager snippet that contains it are returned once; a new snippet means a new token.
//
// Takes a body of the `application/json` content type.
//
// Corresponds with POST /integrations/{integration_id}/tokens (the `CreateIntegrationToken` operationId).
CreateIntegrationToken(ctx context.Context, integrationId IntegrationId, body CreateIntegrationTokenJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// RevokeIntegrationToken Revoke an Integration token
//
// Corresponds with DELETE /integrations/{integration_id}/tokens/{integration_token_id} (the `RevokeIntegrationToken` operationId).
RevokeIntegrationToken(ctx context.Context, integrationId IntegrationId, integrationTokenId IntegrationTokenId, reqEditors ...RequestEditorFn) (*http.Response, error)
// ListLinkRules List linkrules
//
// Corresponds with GET /link-rules (the `ListLinkRules` operationId).
ListLinkRules(ctx context.Context, params *ListLinkRulesParams, reqEditors ...RequestEditorFn) (*http.Response, error)
// CreateLinkRuleWithBody Create LinkRule
//
// Takes any type of body and a specified content type.
//
// Corresponds with POST /link-rules (the `CreateLinkRule` operationId).
CreateLinkRuleWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
// CreateLinkRule Create LinkRule
//
// Takes a body of the `application/json` content type.
//
// Corresponds with POST /link-rules (the `CreateLinkRule` operationId).
CreateLinkRule(ctx context.Context, body CreateLinkRuleJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// DeleteLinkRule Delete LinkRule
//
// The built-in "Explore" rule cannot be deleted (`409`).
//
// Corresponds with DELETE /link-rules/{link_rule_id} (the `DeleteLinkRule` operationId).
DeleteLinkRule(ctx context.Context, linkRuleId LinkRuleId, params *DeleteLinkRuleParams, reqEditors ...RequestEditorFn) (*http.Response, error)
// GetLinkRule Read LinkRule
//
// Corresponds with GET /link-rules/{link_rule_id} (the `GetLinkRule` operationId).
GetLinkRule(ctx context.Context, linkRuleId LinkRuleId, reqEditors ...RequestEditorFn) (*http.Response, error)
// UpdateLinkRuleWithBody Update LinkRule
//
// Replaces the writable fields. Requires `If-Match`; a stale ETag gets `412`. An omitted optional field keeps its stored value; an explicit `null` clears a nullable one.
//
// Takes any type of body and a specified content type.
//
// Corresponds with PUT /link-rules/{link_rule_id} (the `UpdateLinkRule` operationId).
UpdateLinkRuleWithBody(ctx context.Context, linkRuleId LinkRuleId, params *UpdateLinkRuleParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
// UpdateLinkRule Update LinkRule
//
// Replaces the writable fields. Requires `If-Match`; a stale ETag gets `412`. An omitted optional field keeps its stored value; an explicit `null` clears a nullable one.
//
// Takes a body of the `application/json` content type.
//
// Corresponds with PUT /link-rules/{link_rule_id} (the `UpdateLinkRule` operationId).
UpdateLinkRule(ctx context.Context, linkRuleId LinkRuleId, params *UpdateLinkRuleParams, body UpdateLinkRuleJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// StreamLiveUpdates Stream change hints
//
// Server-sent events (`text/event-stream`). OpenAPI 3.1 cannot type event streams, so the events are described by `HintEvent`.
//
// Each event has the name `hint`, an `id` line and a JSON `data` line `{type, id}`. A hint carries no data: the client re-reads through the API, so authorization stays in one place. The stream starts with `retry: 3000` (the reconnect delay in milliseconds) and a comment line (`: keepalive`) follows periodically. After a reconnect the client invalidates everything; `Last-Event-ID` is not replayed. When the session expires or is ended, the server closes the stream; the browser's reconnect then gets `401`, which makes `EventSource` stop for good, and the SPA goes to the sign-in page. The stream follows a web session; a token gets `403` (`session_required`).
//
// Corresponds with GET /live-updates (the `StreamLiveUpdates` operationId).
StreamLiveUpdates(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
// ListLookupTables List lookuptables
//
// Corresponds with GET /lookup-tables (the `ListLookupTables` operationId).
ListLookupTables(ctx context.Context, params *ListLookupTablesParams, reqEditors ...RequestEditorFn) (*http.Response, error)
// CreateLookupTableWithBody Create LookupTable
//
// Takes any type of body and a specified content type.
//
// Corresponds with POST /lookup-tables (the `CreateLookupTable` operationId).
CreateLookupTableWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
// CreateLookupTable Create LookupTable
//
// Takes a body of the `application/json` content type.
//
// Corresponds with POST /lookup-tables (the `CreateLookupTable` operationId).
CreateLookupTable(ctx context.Context, body CreateLookupTableJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// DeleteLookupTable Delete LookupTable
//
// Refused with `409` (`in_use`) while the URL template of a Link rule reads the table by its name, `link_rules` naming the rules.
//
// Corresponds with DELETE /lookup-tables/{lookup_table_id} (the `DeleteLookupTable` operationId).
DeleteLookupTable(ctx context.Context, lookupTableId LookupTableId, params *DeleteLookupTableParams, reqEditors ...RequestEditorFn) (*http.Response, error)
// GetLookupTable Read LookupTable
//
// Corresponds with GET /lookup-tables/{lookup_table_id} (the `GetLookupTable` operationId).
GetLookupTable(ctx context.Context, lookupTableId LookupTableId, reqEditors ...RequestEditorFn) (*http.Response, error)
// UpdateLookupTableWithBody Update LookupTable
//
// Replaces the writable fields. Requires `If-Match`; a stale ETag gets `412`. An omitted optional field keeps its stored value; an explicit `null` clears a nullable one. A new name for a table that the URL template of a Link rule reads by its name is refused with `409` (`in_use`), `link_rules` naming the rules, since they would read nothing.
//
// Takes any type of body and a specified content type.
//
// Corresponds with PUT /lookup-tables/{lookup_table_id} (the `UpdateLookupTable` operationId).
UpdateLookupTableWithBody(ctx context.Context, lookupTableId LookupTableId, params *UpdateLookupTableParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
// UpdateLookupTable Update LookupTable
//
// Replaces the writable fields. Requires `If-Match`; a stale ETag gets `412`. An omitted optional field keeps its stored value; an explicit `null` clears a nullable one. A new name for a table that the URL template of a Link rule reads by its name is refused with `409` (`in_use`), `link_rules` naming the rules, since they would read nothing.
//
// Takes a body of the `application/json` content type.
//
// Corresponds with PUT /lookup-tables/{lookup_table_id} (the `UpdateLookupTable` operationId).
UpdateLookupTable(ctx context.Context, lookupTableId LookupTableId, params *UpdateLookupTableParams, body UpdateLookupTableJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// GetMe Read own profile
//
// The caller and the effective Permissions, narrowed by the token if one is used. Service account tokens get `403` (`service_account_not_allowed`).
//
// Corresponds with GET /me (the `GetMe` operationId).
GetMe(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
// UpdateMeWithBody Update own profile
//
// Changes name, time zone and language. Web session only.
//
// Takes any type of body and a specified content type.
//
// Corresponds with PUT /me (the `UpdateMe` operationId).
UpdateMeWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
// UpdateMe Update own profile
//
// Changes name, time zone and language. Web session only.
//
// Takes a body of the `application/json` content type.
//
// Corresponds with PUT /me (the `UpdateMe` operationId).
UpdateMe(ctx context.Context, body UpdateMeJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// ListMyAccountLinks List own Account links
//
// Service account tokens get `403` (`service_account_not_allowed`).
//
// Corresponds with GET /me/account-links (the `ListMyAccountLinks` operationId).
ListMyAccountLinks(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
// StartBridgeLinkWithBody Start linking an account through a Bridge with a token
//
// Returns a token to send to the bot of the Bridge Connection in a direct message: 32 random bytes in base64url, single-use, valid for `account_link.bridge_token_ttl` and bound to the User and the Connection. When the Connection's last `info` has a `link_url_template`, `link_url` is that template with the token in place of `{token}`, kept only when it is an absolute `http` or `https` link; otherwise it is null. The bridge reports the token with an `account_link` event, which completes the link and arrives as an `account-links` hint with the link's `public_id`. Only the signed-in web session can start a link (not a token). No operation starts a link for another User, whatever the caller's Role. A `connection_id` that names no Bridge Connection — missing, deleted or of another type — answers `422` `unknown_id` at `/connection_id`. Calls no bridge.
//
// Takes any type of body and a specified content type.
//
// Corresponds with POST /me/account-links/bridge (the `StartBridgeLink` operationId).
StartBridgeLinkWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
// StartBridgeLink Start linking an account through a Bridge with a token
//
// Returns a token to send to the bot of the Bridge Connection in a direct message: 32 random bytes in base64url, single-use, valid for `account_link.bridge_token_ttl` and bound to the User and the Connection. When the Connection's last `info` has a `link_url_template`, `link_url` is that template with the token in place of `{token}`, kept only when it is an absolute `http` or `https` link; otherwise it is null. The bridge reports the token with an `account_link` event, which completes the link and arrives as an `account-links` hint with the link's `public_id`. Only the signed-in web session can start a link (not a token). No operation starts a link for another User, whatever the caller's Role. A `connection_id` that names no Bridge Connection — missing, deleted or of another type — answers `422` `unknown_id` at `/connection_id`. Calls no bridge.
//
// Takes a body of the `application/json` content type.
//
// Corresponds with POST /me/account-links/bridge (the `StartBridgeLink` operationId).
StartBridgeLink(ctx context.Context, body StartBridgeLinkJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// StartBridgeCodeLinkWithBody Start linking an account through a Bridge with a code
//
// Where the Bridge Connection's `info` declares `direct_messages` with `bot_can_start` and a `user_lookup` other than `none`, the bridge finds the account with the `handle` the caller entered — of the kind `user_lookup` declares — with `findUsers`, and its bot sends a code with `sendDirectMessage`. Code requests are limited per requesting User and per target account (`429` `link_code_requests_exceeded` with `Retry-After`, `account_link.bridge_code_requests`); a request whose direct message failed still counts. Refused with `409` `code_not_offered` when the Connection's `info`, read again first when Muster's copy is older than `bridge.info_max_age`, offers no code or has never been read; with `409` `account_linked_elsewhere` when the account is linked to another User; and with `409` without a code when the bridge refuses a call. Runs on the interactive path: when no limiter token is free within `delivery.interactive_budget`, the answer is `503` with `Retry-After`. No operation starts a link for another User, whatever the caller's Role. A `connection_id` that names no Bridge Connection answers `422` `unknown_id` at `/connection_id`; a handle the bridge does not find answers `422` `handle_not_found` at `/handle`, and an account the bot cannot write to `422` `direct_message_refused` at `/handle`.
//
// Takes any type of body and a specified content type.
//
// Corresponds with POST /me/account-links/bridge/codes (the `StartBridgeCodeLink` operationId).
StartBridgeCodeLinkWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
// StartBridgeCodeLink Start linking an account through a Bridge with a code
//
// Where the Bridge Connection's `info` declares `direct_messages` with `bot_can_start` and a `user_lookup` other than `none`, the bridge finds the account with the `handle` the caller entered — of the kind `user_lookup` declares — with `findUsers`, and its bot sends a code with `sendDirectMessage`. Code requests are limited per requesting User and per target account (`429` `link_code_requests_exceeded` with `Retry-After`, `account_link.bridge_code_requests`); a request whose direct message failed still counts. Refused with `409` `code_not_offered` when the Connection's `info`, read again first when Muster's copy is older than `bridge.info_max_age`, offers no code or has never been read; with `409` `account_linked_elsewhere` when the account is linked to another User; and with `409` without a code when the bridge refuses a call. Runs on the interactive path: when no limiter token is free within `delivery.interactive_budget`, the answer is `503` with `Retry-After`. No operation starts a link for another User, whatever the caller's Role. A `connection_id` that names no Bridge Connection answers `422` `unknown_id` at `/connection_id`; a handle the bridge does not find answers `422` `handle_not_found` at `/handle`, and an account the bot cannot write to `422` `direct_message_refused` at `/handle`.
//
// Takes a body of the `application/json` content type.
//
// Corresponds with POST /me/account-links/bridge/codes (the `StartBridgeCodeLink` operationId).
StartBridgeCodeLink(ctx context.Context, body StartBridgeCodeLinkJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// ConfirmBridgeLinkWithBody Confirm a Bridge link with the code
//
// At most 5 attempts (`account_link.bridge_code`); after that the code is void. A wrong code, and a request that is void, used or expired or whose Connection was deleted, answer `422` `link_code_invalid` at `/code`, never saying which, with `attempts_remaining`: the codes the request still takes, 0 once it takes none; a request of another User, or one that is not a Bridge code request, is `404`. The link stores the account's `external_id`, `display_name` and handle as the bridge reported them. No direct message confirms it, and no bridge is called. No operation starts a link for another User, whatever the caller's Role.
//
// Takes any type of body and a specified content type.
//
// Corresponds with POST /me/account-links/bridge/confirmation (the `ConfirmBridgeLink` operationId).
ConfirmBridgeLinkWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
// ConfirmBridgeLink Confirm a Bridge link with the code
//
// At most 5 attempts (`account_link.bridge_code`); after that the code is void. A wrong code, and a request that is void, used or expired or whose Connection was deleted, answer `422` `link_code_invalid` at `/code`, never saying which, with `attempts_remaining`: the codes the request still takes, 0 once it takes none; a request of another User, or one that is not a Bridge code request, is `404`. The link stores the account's `external_id`, `display_name` and handle as the bridge reported them. No direct message confirms it, and no bridge is called. No operation starts a link for another User, whatever the caller's Role.
//
// Takes a body of the `application/json` content type.
//
// Corresponds with POST /me/account-links/bridge/confirmation (the `ConfirmBridgeLink` operationId).
ConfirmBridgeLink(ctx context.Context, body ConfirmBridgeLinkJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// ListLinkableConnections List the Connections an account can be linked through
//
// The profile's own short list of the Connections that are not deleted, for picking one when linking a messenger account. It needs no Permission, independently of `connections:read`, and shows only the id, the name and the messenger of each Connection, and for a Bridge Connection how an account can be linked through it — `link_methods` and `handle_kind`, from the Connection's last `info`. Service account tokens get `403` (`service_account_not_allowed`).
//
// Corresponds with GET /me/account-links/connections (the `ListLinkableConnections` operationId).
ListLinkableConnections(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
// StartMattermostLinkWithBody Start linking a Mattermost account
//
// The Connection's bot sends a direct message with a code to the `@username`. Code requests are limited per requesting User and per target account (`429` `link_code_requests_exceeded` with `Retry-After`). Refused with `409` if the account is already linked to another user (`account_linked_elsewhere`), or without a code when Mattermost refuses a call. Runs on the interactive path: when no limiter token is free within `delivery.interactive_budget`, the answer is `503` with `Retry-After`. No operation starts a link for another User, whatever the caller's Role. A `connection_id` that names no Mattermost Connection — missing, deleted or a Telegram one — answers `422` `unknown_id` at `/connection_id`; a username the Mattermost server does not know answers `422` `messenger_user_not_found` at `/username`.
//
// Takes any type of body and a specified content type.
//
// Corresponds with POST /me/account-links/mattermost (the `StartMattermostLink` operationId).
StartMattermostLinkWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
// StartMattermostLink Start linking a Mattermost account
//
// The Connection's bot sends a direct message with a code to the `@username`. Code requests are limited per requesting User and per target account (`429` `link_code_requests_exceeded` with `Retry-After`). Refused with `409` if the account is already linked to another user (`account_linked_elsewhere`), or without a code when Mattermost refuses a call. Runs on the interactive path: when no limiter token is free within `delivery.interactive_budget`, the answer is `503` with `Retry-After`. No operation starts a link for another User, whatever the caller's Role. A `connection_id` that names no Mattermost Connection — missing, deleted or a Telegram one — answers `422` `unknown_id` at `/connection_id`; a username the Mattermost server does not know answers `422` `messenger_user_not_found` at `/username`.
//
// Takes a body of the `application/json` content type.
//
// Corresponds with POST /me/account-links/mattermost (the `StartMattermostLink` operationId).
StartMattermostLink(ctx context.Context, body StartMattermostLinkJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// ConfirmMattermostLinkWithBody Confirm a Mattermost link with the code
//
// At most 5 attempts; after that the code is void. A wrong code, and a request that is void, used or expired, answer `422` `link_code_invalid` at `/code`, never saying which, with `attempts_remaining`: the codes the request still takes, 0 once it takes none; a request of another User is `404`. Runs on the interactive path: when no limiter token is free within `delivery.interactive_budget`, the answer is `503` with `Retry-After`. No operation starts a link for another User, whatever the caller's Role.
//
// Takes any type of body and a specified content type.
//
// Corresponds with POST /me/account-links/mattermost/confirmation (the `ConfirmMattermostLink` operationId).
ConfirmMattermostLinkWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
// ConfirmMattermostLink Confirm a Mattermost link with the code
//
// At most 5 attempts; after that the code is void. A wrong code, and a request that is void, used or expired, answer `422` `link_code_invalid` at `/code`, never saying which, with `attempts_remaining`: the codes the request still takes, 0 once it takes none; a request of another User is `404`. Runs on the interactive path: when no limiter token is free within `delivery.interactive_budget`, the answer is `503` with `Retry-After`. No operation starts a link for another User, whatever the caller's Role.
//
// Takes a body of the `application/json` content type.
//
// Corresponds with POST /me/account-links/mattermost/confirmation (the `ConfirmMattermostLink` operationId).
ConfirmMattermostLink(ctx context.Context, body ConfirmMattermostLinkJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// StartSlackLinkWithBody Start linking a Slack account with a code
//
// Looks up the account of the Slack Connection that the caller names in `handle`. An email — an `@` after at least one character with a dot after that `@` — is looked up with `users.lookupByEmail`, which ignores the letter case. Anything else is a name, a leading `@` dropped, compared with each account's `name` and `profile.display_name` regardless of case over the pages of `users.list`; deleted accounts, bots and Slackbot are left out. The bot then sends a code (`account_link.slack_code`) by direct message — `chat.postMessage` to the account's user id — with "You requested a link to Muster. Do not share this code.". Code requests are limited per requesting User and per target account (`429` `link_code_requests_exceeded` with `Retry-After`, `account_link.slack_code_requests`); a request whose direct message failed still counts. Refused with `409` `account_linked_elsewhere` when the account is linked to another User, with `409` `messages_tab_disabled` when Slack refuses the direct message because the Messages tab of the Slack app is off, and with `409` without a code when Slack refuses a call otherwise. Runs on the interactive path: when no limiter token is free within `delivery.interactive_budget`, or Slack answers `429`, the answer is `503` with `Retry-After`. No operation starts a link for another User, whatever the caller's Role. A `connection_id` that names no Slack Connection — missing, deleted or of another type — answers `422` `unknown_id` at `/connection_id`; no account answers `422` `handle_not_found` at `/handle`, several accounts with the name `422` `handle_ambiguous` at `/handle`, and an account the bot cannot write to (`cannot_dm_bot`, `user_not_found`, or `channel_not_found` for the user id) `422` `direct_message_refused` at `/handle`.
//
// Takes any type of body and a specified content type.
//
// Corresponds with POST /me/account-links/slack (the `StartSlackLink` operationId).
StartSlackLinkWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
// StartSlackLink Start linking a Slack account with a code
//
// Looks up the account of the Slack Connection that the caller names in `handle`. An email — an `@` after at least one character with a dot after that `@` — is looked up with `users.lookupByEmail`, which ignores the letter case. Anything else is a name, a leading `@` dropped, compared with each account's `name` and `profile.display_name` regardless of case over the pages of `users.list`; deleted accounts, bots and Slackbot are left out. The bot then sends a code (`account_link.slack_code`) by direct message — `chat.postMessage` to the account's user id — with "You requested a link to Muster. Do not share this code.". Code requests are limited per requesting User and per target account (`429` `link_code_requests_exceeded` with `Retry-After`, `account_link.slack_code_requests`); a request whose direct message failed still counts. Refused with `409` `account_linked_elsewhere` when the account is linked to another User, with `409` `messages_tab_disabled` when Slack refuses the direct message because the Messages tab of the Slack app is off, and with `409` without a code when Slack refuses a call otherwise. Runs on the interactive path: when no limiter token is free within `delivery.interactive_budget`, or Slack answers `429`, the answer is `503` with `Retry-After`. No operation starts a link for another User, whatever the caller's Role. A `connection_id` that names no Slack Connection — missing, deleted or of another type — answers `422` `unknown_id` at `/connection_id`; no account answers `422` `handle_not_found` at `/handle`, several accounts with the name `422` `handle_ambiguous` at `/handle`, and an account the bot cannot write to (`cannot_dm_bot`, `user_not_found`, or `channel_not_found` for the user id) `422` `direct_message_refused` at `/handle`.
//
// Takes a body of the `application/json` content type.
//
// Corresponds with POST /me/account-links/slack (the `StartSlackLink` operationId).
StartSlackLink(ctx context.Context, body StartSlackLinkJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// ConfirmSlackLinkWithBody Confirm a Slack link with the code
//
// At most 5 attempts (`account_link.slack_code`); after that the code is void. A wrong code, and a request that is void, used or expired or whose Connection was deleted, answer `422` `link_code_invalid` at `/code`, never saying which, with `attempts_remaining`: the codes the request still takes, 0 once it takes none; a request of another User, or one that is not a Slack request, is `404`. The link stores the account's user id as `external_id`, its `name` as `username`, and its `profile.display_name`, else `profile.real_name`, as `display_name`, which Mentions and the footer use; a second link of the User through the same Connection replaces the first. The bot then confirms "Linked to Muster user {name}" by direct message; a confirmation that fails is only logged. Runs on the interactive path: when no limiter token is free within `delivery.interactive_budget`, or Slack answers `429`, the answer is `503` with `Retry-After`. No operation starts a link for another User, whatever the caller's Role.
//
// Takes any type of body and a specified content type.
//
// Corresponds with POST /me/account-links/slack/confirmation (the `ConfirmSlackLink` operationId).
ConfirmSlackLinkWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
// ConfirmSlackLink Confirm a Slack link with the code
//
// At most 5 attempts (`account_link.slack_code`); after that the code is void. A wrong code, and a request that is void, used or expired or whose Connection was deleted, answer `422` `link_code_invalid` at `/code`, never saying which, with `attempts_remaining`: the codes the request still takes, 0 once it takes none; a request of another User, or one that is not a Slack request, is `404`. The link stores the account's user id as `external_id`, its `name` as `username`, and its `profile.display_name`, else `profile.real_name`, as `display_name`, which Mentions and the footer use; a second link of the User through the same Connection replaces the first. The bot then confirms "Linked to Muster user {name}" by direct message; a confirmation that fails is only logged. Runs on the interactive path: when no limiter token is free within `delivery.interactive_budget`, or Slack answers `429`, the answer is `503` with `Retry-After`. No operation starts a link for another User, whatever the caller's Role.
//
// Takes a body of the `application/json` content type.
//
// Corresponds with POST /me/account-links/slack/confirmation (the `ConfirmSlackLink` operationId).
ConfirmSlackLink(ctx context.Context, body ConfirmSlackLinkJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// StartTelegramLinkWithBody Start linking a Telegram account
//
// Returns a deep link `t.me/<bot>?start=<token>`; the token is single-use, valid for `account_link.telegram_token_ttl`. Pressing Start in Telegram completes the link and arrives as an `account-links` hint with the link's `public_id`. Only the signed-in web session can start a link (not a token). No operation starts a link for another User, whatever the caller's Role. A `connection_id` that names no Telegram Connection — missing, deleted or a Mattermost one — answers `422` `unknown_id` at `/connection_id`. When the bot's username is not known from the last Connection check, it is read with `getMe` on the interactive path: when no limiter token is free within `delivery.interactive_budget`, the answer is `503` with `Retry-After`, and when Telegram refuses the call, `409`.
//
// Takes any type of body and a specified content type.
//
// Corresponds with POST /me/account-links/telegram (the `StartTelegramLink` operationId).
StartTelegramLinkWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
// StartTelegramLink Start linking a Telegram account
//
// Returns a deep link `t.me/<bot>?start=<token>`; the token is single-use, valid for `account_link.telegram_token_ttl`. Pressing Start in Telegram completes the link and arrives as an `account-links` hint with the link's `public_id`. Only the signed-in web session can start a link (not a token). No operation starts a link for another User, whatever the caller's Role. A `connection_id` that names no Telegram Connection — missing, deleted or a Mattermost one — answers `422` `unknown_id` at `/connection_id`. When the bot's username is not known from the last Connection check, it is read with `getMe` on the interactive path: when no limiter token is free within `delivery.interactive_budget`, the answer is `503` with `Retry-After`, and when Telegram refuses the call, `409`.
//
// Takes a body of the `application/json` content type.
//
// Corresponds with POST /me/account-links/telegram (the `StartTelegramLink` operationId).
StartTelegramLink(ctx context.Context, body StartTelegramLinkJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// DeleteMyAccountLink Unlink an own messenger account
//
// Unlinks one of the caller's own messenger accounts. Web session only: a token gets `403` (`session_required`).
//
// Corresponds with DELETE /me/account-links/{account_link_id} (the `DeleteMyAccountLink` operationId).
DeleteMyAccountLink(ctx context.Context, accountLinkId AccountLinkId, reqEditors ...RequestEditorFn) (*http.Response, error)
// StartOidcLink Start linking an OIDC identity
//
// Starts linking the caller's account to an identity at the OIDC provider: returns the authorization URL (PKCE `S256`, `state` and `nonce`) that the SPA opens after warning "After linking you will sign in only through OIDC; your password will be removed." The `state` is bound to this web session, so the callback adds the identity only to the account that started the link. A successful link removes the password: the account then signs in only through OIDC, keeps its TOTP enrolment, and `oidc.sync_role` applies to it. There is no unlinking by the user; an Admin can convert the account back to local (`convertUserToLocal`). Web session only: a token gets `403` (`session_required`). `409` with `oidc_not_enabled` while OIDC is off, or `oidc_already_linked` when the account already signs in through OIDC.
//
// Corresponds with POST /me/oidc-identity (the `StartOidcLink` operationId).
StartOidcLink(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
// CompleteOidcLink Complete linking an OIDC identity
//
// Redirect target of the identity provider for a link started by `startOidcLink`; register `MUSTER_PUBLIC_URL/api/v1/me/oidc-identity/callback` at the identity provider next to the sign-in callback. Every outcome is a `302` to the profile page. On success the identity (issuer and subject) is added to the account of the web session that started the link and the password is removed; an offline token granted by the link flow is kept on the user, as at sign-in; this session continues as an OIDC session, the user's other sessions end, and the Audit log records it; the redirect goes to `/profile`. A failure redirects to `/profile?error=<code>`, with one of `identity_linked_elsewhere` (the identity belongs to another user; the Audit log records the refusal), `no_access` (the identity's groups map to no Role and there is no Role for unmatched users, so the account could not sign in through OIDC; the redirect is `/profile?error=no_access` and the Audit log records the refusal with the groups), `oidc_disabled`, `invalid_request` (bad or missing `state`, `code` or `nonce`, no web session, or a `state` started by another session) and `idp_error`.
//
// Corresponds with GET /me/oidc-identity/callback (the `CompleteOidcLink` operationId).
CompleteOidcLink(ctx context.Context, params *CompleteOidcLinkParams, reqEditors ...RequestEditorFn) (*http.Response, error)
// ChangePasswordWithBody Change own password
//
// Ends all other sessions of the user. Local users only (`409` `local_user_only` otherwise). Web session only.
//
// Takes any type of body and a specified content type.
//
// Corresponds with PUT /me/password (the `ChangePassword` operationId).
ChangePasswordWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
// ChangePassword Change own password
//
// Ends all other sessions of the user. Local users only (`409` `local_user_only` otherwise). Web session only.
//
// Takes a body of the `application/json` content type.
//
// Corresponds with PUT /me/password (the `ChangePassword` operationId).
ChangePassword(ctx context.Context, body ChangePasswordJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// ListPersonalAccessTokens List own Personal access tokens
//
// Values are never returned. Each token shows when and from which address it was last used. Service account tokens get `403` (`service_account_not_allowed`).
//
// Corresponds with GET /me/personal-access-tokens (the `ListPersonalAccessTokens` operationId).
ListPersonalAccessTokens(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
// CreatePersonalAccessTokenWithBody Create a Personal access token
//
// Shows the token once. Its Permissions must be a subset of the Permissions the caller holds now (`422` `permission_not_held` on `/permissions/<i>`). Web session only: a token can never mint another token.
//
// Takes any type of body and a specified content type.
//
// Corresponds with POST /me/personal-access-tokens (the `CreatePersonalAccessToken` operationId).
CreatePersonalAccessTokenWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
// CreatePersonalAccessToken Create a Personal access token
//
// Shows the token once. Its Permissions must be a subset of the Permissions the caller holds now (`422` `permission_not_held` on `/permissions/<i>`). Web session only: a token can never mint another token.
//
// Takes a body of the `application/json` content type.
//
// Corresponds with POST /me/personal-access-tokens (the `CreatePersonalAccessToken` operationId).
CreatePersonalAccessToken(ctx context.Context, body CreatePersonalAccessTokenJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// RevokePersonalAccessToken Revoke a Personal access token
//
// Revokes the token at once. Web session only.
//
// Corresponds with DELETE /me/personal-access-tokens/{token_id} (the `RevokePersonalAccessToken` operationId).
RevokePersonalAccessToken(ctx context.Context, tokenId TokenId, reqEditors ...RequestEditorFn) (*http.Response, error)
// DeleteMySessions Sign out everywhere
//
// Ends every session of the user, the current one included. Web session only.
//
// Corresponds with DELETE /me/sessions (the `DeleteMySessions` operationId).
DeleteMySessions(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
// ListMySessions List own sessions
//
// Sessions of the user, the current one marked.
//
// Corresponds with GET /me/sessions (the `ListMySessions` operationId).
ListMySessions(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
// GetMyTotp Read own TOTP status
//
// Whether TOTP is enrolled, a first code is awaited, and how many recovery codes remain. Service account tokens get `403` (`service_account_not_allowed`).
//
// Corresponds with GET /me/totp (the `GetMyTotp` operationId).
GetMyTotp(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
// BeginTotpEnrolment Begin TOTP enrolment
//
// Returns the seed and the `otpauth` URI once. Enrolment completes when `confirmTotpEnrolment` receives a first code. Allowed in the session state `totp_enrolment_required`. `409` (`totp_already_enrolled`) when TOTP is already on. Web session only.
//
// Corresponds with POST /me/totp (the `BeginTotpEnrolment` operationId).
BeginTotpEnrolment(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
// ConfirmTotpEnrolmentWithBody Confirm TOTP enrolment
//
// Confirms with a first code and issues `auth.totp_recovery_codes` single-use recovery codes, shown once. Allowed in the session state `totp_enrolment_required`. `409` (`totp_enrolment_not_started`) without a begun enrolment, `totp_already_enrolled` if already confirmed. Web session only.
//
// Takes any type of body and a specified content type.
//
// Corresponds with POST /me/totp/confirmation (the `ConfirmTotpEnrolment` operationId).
ConfirmTotpEnrolmentWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
// ConfirmTotpEnrolment Confirm TOTP enrolment
//
// Confirms with a first code and issues `auth.totp_recovery_codes` single-use recovery codes, shown once. Allowed in the session state `totp_enrolment_required`. `409` (`totp_enrolment_not_started`) without a begun enrolment, `totp_already_enrolled` if already confirmed. Web session only.
//
// Takes a body of the `application/json` content type.
//
// Corresponds with POST /me/totp/confirmation (the `ConfirmTotpEnrolment` operationId).
ConfirmTotpEnrolment(ctx context.Context, body ConfirmTotpEnrolmentJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// RegenerateTotpRecoveryCodesWithBody Regenerate recovery codes
//
// Invalidates the previous codes. Requires a current TOTP code. Web session only.
//
// Takes any type of body and a specified content type.
//
// Corresponds with POST /me/totp/recovery-codes (the `RegenerateTotpRecoveryCodes` operationId).
RegenerateTotpRecoveryCodesWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
// RegenerateTotpRecoveryCodes Regenerate recovery codes
//
// Invalidates the previous codes. Requires a current TOTP code. Web session only.
//
// Takes a body of the `application/json` content type.
//
// Corresponds with POST /me/totp/recovery-codes (the `RegenerateTotpRecoveryCodes` operationId).
RegenerateTotpRecoveryCodes(ctx context.Context, body RegenerateTotpRecoveryCodesJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// RemoveTotpWithBody Remove own TOTP
//
// Needs proof that the person is at the keyboard: the current password (local users) or a current TOTP or recovery code. Under a TOTP policy that covers the user, the next sign-in demands enrolment again. A wrong proof is `401` (`invalid_credentials`). Web session only.
//
// Takes any type of body and a specified content type.
//
// Corresponds with POST /me/totp/removal (the `RemoveTotp` operationId).
RemoveTotpWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
// RemoveTotp Remove own TOTP
//
// Needs proof that the person is at the keyboard: the current password (local users) or a current TOTP or recovery code. Under a TOTP policy that covers the user, the next sign-in demands enrolment again. A wrong proof is `401` (`invalid_credentials`). Web session only.
//
// Takes a body of the `application/json` content type.
//
// Corresponds with POST /me/totp/removal (the `RemoveTotp` operationId).
RemoveTotp(ctx context.Context, body RemoveTotpJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// GetOidcSettings Read OIDC settings
//
// The client secret is never returned; `client_secret_status` shows whether it is set and when it changed.
//
// Corresponds with GET /oidc-settings (the `GetOidcSettings` operationId).
GetOidcSettings(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
// UpdateOidcSettingsWithBody Update OIDC settings
//
// Replaces the writable fields; omitted optional fields keep their value. Saving with an empty mapping and no Role for unmatched users returns the warning `nobody_can_sign_in` in the result. The Audit log diff shows only that the client secret changed.
//
// Takes any type of body and a specified content type.
//
// Corresponds with PUT /oidc-settings (the `UpdateOidcSettings` operationId).
UpdateOidcSettingsWithBody(ctx context.Context, params *UpdateOidcSettingsParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
// UpdateOidcSettings Update OIDC settings
//
// Replaces the writable fields; omitted optional fields keep their value. Saving with an empty mapping and no Role for unmatched users returns the warning `nobody_can_sign_in` in the result. The Audit log diff shows only that the client secret changed.
//
// Takes a body of the `application/json` content type.
//
// Corresponds with PUT /oidc-settings (the `UpdateOidcSettings` operationId).
UpdateOidcSettings(ctx context.Context, params *UpdateOidcSettingsParams, body UpdateOidcSettingsJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// CheckOidcSettings Check the connection to the identity provider
//
// Fetches discovery through the outbound HTTP package, with the saved proxy, and reports whether the groups claim is advertised. While no sign-in has seen the claim in an ID token or userinfo since the groups claim, the issuer, the client ID or the scopes last changed, a claim discovery does not list raises the warning `groups_claim_missing` and a listed one clears it; once a sign-in has seen it, the check changes nothing.
//
// Corresponds with POST /oidc-settings/checks (the `CheckOidcSettings` operationId).
CheckOidcSettings(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
// GetOpenApiSpec Read this specification
//
// The specification the binary was built from, as checked in at `api/openapi.yaml`.
//
// Corresponds with GET /openapi.yaml (the `GetOpenApiSpec` operationId).
GetOpenApiSpec(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
// GetOrganization Read the Organization
//
// Readable by every signed-in identity (the basic read of the Organization needs no Permission). Secrets (the outgoing heartbeat URL, proxy passwords) show only `set` and `updated_at`.
//
// Corresponds with GET /organization (the `GetOrganization` operationId).
GetOrganization(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
// UpdateOrganizationWithBody Update the Organization
//
// Replaces the writable fields. Requires `If-Match`; a stale ETag gets `412`. An omitted optional field keeps its stored value; an explicit `null` clears a nullable one. An omitted Secret field keeps the stored Secret. `null` on `outgoing_heartbeat.url` or a proxy `password` clears it. Every field is validated; an invalid one gets `422` at the full JSON pointer of the field, such as `/severity_styles/1/color` or `/retention/alert_details_days`, with `invalid_format`, `duplicate`, `required`, `too_short`, `too_long`, `out_of_range` or `retention_order`. A retention period or `oidc_token_grace_seconds` beyond its `maximum`, a `workday_start` that is not `HH:MM` on the 24-hour clock and a `week_start` that is not a day of the week are refused with `400` by request validation, `invalid_format` at `/workday_start` or `/week_start`; `out_of_range` and `invalid_format` are the second, defensive check of the same rules. A change is recorded in the Audit log as `organization.updated` with its before/after diff and announced with the `organization` hint; Severity levels and Instance labels apply to later evaluations only.
//
// Takes any type of body and a specified content type.
//
// Corresponds with PUT /organization (the `UpdateOrganization` operationId).
UpdateOrganizationWithBody(ctx context.Context, params *UpdateOrganizationParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
// UpdateOrganization Update the Organization
//
// Replaces the writable fields. Requires `If-Match`; a stale ETag gets `412`. An omitted optional field keeps its stored value; an explicit `null` clears a nullable one. An omitted Secret field keeps the stored Secret. `null` on `outgoing_heartbeat.url` or a proxy `password` clears it. Every field is validated; an invalid one gets `422` at the full JSON pointer of the field, such as `/severity_styles/1/color` or `/retention/alert_details_days`, with `invalid_format`, `duplicate`, `required`, `too_short`, `too_long`, `out_of_range` or `retention_order`. A retention period or `oidc_token_grace_seconds` beyond its `maximum`, a `workday_start` that is not `HH:MM` on the 24-hour clock and a `week_start` that is not a day of the week are refused with `400` by request validation, `invalid_format` at `/workday_start` or `/week_start`; `out_of_range` and `invalid_format` are the second, defensive check of the same rules. A change is recorded in the Audit log as `organization.updated` with its before/after diff and announced with the `organization` hint; Severity levels and Instance labels apply to later evaluations only.
//
// Takes a body of the `application/json` content type.
//
// Corresponds with PUT /organization (the `UpdateOrganization` operationId).
UpdateOrganization(ctx context.Context, params *UpdateOrganizationParams, body UpdateOrganizationJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// GetKeyring Read the Keyring status
//
// Every key id in the environment, which is active, which live replicas hold which, and whether anything still depends on an older key. Activation is the CLI command `muster secrets rotate-key --activate <id> --actor <name>`.
//
// Corresponds with GET /organization/keyring (the `GetKeyring` operationId).
GetKeyring(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
// GetOutboundPolicy Read the outbound address policy
//
// The outbound address policy with the rules that always apply. Needs `organization:read`.
//
// Corresponds with GET /organization/outbound-policy (the `GetOutboundPolicy` operationId).
GetOutboundPolicy(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
// UpdateOutboundPolicyWithBody Update the outbound address policy
//
// Replaces the policy and its lists. Requires `If-Match`; a stale ETag gets `412`. Each entry is a network in CIDR form or a bare address, a host name, or a domain written `*.example.org`; an entry that does not parse gets `422` with `invalid_format` and a repeated one `duplicate`, at `/allowed/<i>` or `/denied/<i>`. `always_blocked` is read-only and ignored. The change takes effect at once on every replica, idle pooled connections included, is recorded in the Audit log as `outbound_policy.updated` and is announced with the `organization` hint. Needs `organization:write`.
//
// Takes any type of body and a specified content type.
//
// Corresponds with PUT /organization/outbound-policy (the `UpdateOutboundPolicy` operationId).
UpdateOutboundPolicyWithBody(ctx context.Context, params *UpdateOutboundPolicyParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
// UpdateOutboundPolicy Update the outbound address policy
//
// Replaces the policy and its lists. Requires `If-Match`; a stale ETag gets `412`. Each entry is a network in CIDR form or a bare address, a host name, or a domain written `*.example.org`; an entry that does not parse gets `422` with `invalid_format` and a repeated one `duplicate`, at `/allowed/<i>` or `/denied/<i>`. `always_blocked` is read-only and ignored. The change takes effect at once on every replica, idle pooled connections included, is recorded in the Audit log as `outbound_policy.updated` and is announced with the `organization` hint. Needs `organization:write`.
//
// Takes a body of the `application/json` content type.
//
// Corresponds with PUT /organization/outbound-policy (the `UpdateOutboundPolicy` operationId).
UpdateOutboundPolicy(ctx context.Context, params *UpdateOutboundPolicyParams, body UpdateOutboundPolicyJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// ListSeverityValues List severity values seen
//
// Values of the severity label seen in the last `organization.severity_values_window`, with counts, the most frequent first and at most 500 values; unmapped values count as warning.
//
// Corresponds with GET /organization/severity-values (the `ListSeverityValues` operationId).
ListSeverityValues(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
// CompletePasswordSetupWithBody Set a password from a setup link
//
// Uses the single-use token of a password setup link (the link carries it in the URL fragment, so it reaches neither server logs nor referrers). The user is then asked to enrol TOTP if the policy requires it. An unknown token is `404`; a token past `auth.password_setup_link_ttl` is `410` (`link_expired`); one already used or replaced by a newer link is `410` (`link_used`). Like the sign-in, a request that a browser marks as cross-site is `403` (`csrf_invalid`).
//
// Takes any type of body and a specified content type.
//
// Corresponds with POST /password-setups (the `CompletePasswordSetup` operationId).
CompletePasswordSetupWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
// CompletePasswordSetup Set a password from a setup link
//
// Uses the single-use token of a password setup link (the link carries it in the URL fragment, so it reaches neither server logs nor referrers). The user is then asked to enrol TOTP if the policy requires it. An unknown token is `404`; a token past `auth.password_setup_link_ttl` is `410` (`link_expired`); one already used or replaced by a newer link is `410` (`link_used`). Like the sign-in, a request that a browser marks as cross-site is `403` (`csrf_invalid`).
//
// Takes a body of the `application/json` content type.
//
// Corresponds with POST /password-setups (the `CompletePasswordSetup` operationId).
CompletePasswordSetup(ctx context.Context, body CompletePasswordSetupJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// ListRequestLog List the Request log of a Connection, a Destination or a check run
//
// The records of exactly one owner, or of one check run, newest first: `connection` lists every record of a Connection, `destination` every record of an outgoing webhook Destination or, for a messenger Destination, the records of its Connection that name it; `run` alone lists the records of that check run whose owner is a Connection or nobody — the checks before saving of new Connections — and beside an owner it narrows that owner's list. Neither an owner nor a run, or both owners, answer `422` with the code `one_of_required`. The caller needs `connections:read` to name a Connection or a run alone and `destinations:read` to name a Destination (`403` otherwise); an unknown or deleted owner is `404`. Only records newer than `request_log.max_age` and among the newest `request_log.max_records` of their owner are listed — a messenger Destination's within its Connection's — so a list never shows more than that bound. Each record is one attempt of a request: its URL as errors show it, its status, latency and path, without headers or bodies, which `getRequestRecord` reads.
//
// Corresponds with GET /request-log (the `ListRequestLog` operationId).
ListRequestLog(ctx context.Context, params *ListRequestLogParams, reqEditors ...RequestEditorFn) (*http.Response, error)
// GetRequestRecord Read a record of the Request log
//
// One record with its headers and bodies, masked. The caller needs the Permission of the record's owner, `connections:read` for a Connection's record — even one listed through a messenger Destination with `destinations:read` — and `destinations:read` for an outgoing webhook's (`403` otherwise). A record past `request_log.max_age` or past the newest `request_log.max_records` of its owner, or whose owner is deleted, is `404`, as it is in no list. Headers, bodies and the error are untrusted text.
//
// Corresponds with GET /request-log/{request_record_id} (the `GetRequestRecord` operationId).
GetRequestRecord(ctx context.Context, requestRecordId RequestRecordId, reqEditors ...RequestEditorFn) (*http.Response, error)
// ListRoles List Roles with their Permissions
//
// Corresponds with GET /roles (the `ListRoles` operationId).
ListRoles(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
// ReorderRoutesWithBody Reorder Routes
//
// Replaces the order of all Routes except the Default route, which cannot be moved. `If-Match` carries the ETag of `listRoutes`; a stale one gets `412`. A list that contains the Default route is `409` (`default-route-immutable`); a set of ids that differs from the current set is `422` (`route_set_mismatch`).
//
// Takes any type of body and a specified content type.
//
// Corresponds with PUT /route-order (the `ReorderRoutes` operationId).
ReorderRoutesWithBody(ctx context.Context, params *ReorderRoutesParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
// ReorderRoutes Reorder Routes
//
// Replaces the order of all Routes except the Default route, which cannot be moved. `If-Match` carries the ETag of `listRoutes`; a stale one gets `412`. A list that contains the Default route is `409` (`default-route-immutable`); a set of ids that differs from the current set is `422` (`route_set_mismatch`).
//
// Takes a body of the `application/json` content type.
//
// Corresponds with PUT /route-order (the `ReorderRoutes` operationId).
ReorderRoutes(ctx context.Context, params *ReorderRoutesParams, body ReorderRoutesJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// ListRouteProfiles List Route profiles
//
// The two starting sets of Route settings, On-call and Informational, read from the built-in defaults. They only pre-fill the create form; they cannot be edited or stored.
//
// Corresponds with GET /route-profiles (the `ListRouteProfiles` operationId).
ListRouteProfiles(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
// ListRouteSuggestions List Route suggestions
//
// A Route for `MusterHeartbeatLost` when an Integration has a Heartbeat and no Route other than the Default route matches it; from the first Destination on, a Route for `alertname=~"Muster.*"`. Dismissals are remembered per user.
//
// Corresponds with GET /route-suggestions (the `ListRouteSuggestions` operationId).
ListRouteSuggestions(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
// AcceptRouteSuggestionWithBody Accept a Route suggestion
//
// Creates the suggested Route at the top of the list; the Route for `internal_alerts` goes directly below the last Route other than the Default route that already takes an Internal alert, such as the Route for `MusterHeartbeatLost`, and at the top when none does. `409` (`suggestion_obsolete`) when it no longer applies: a matching Route exists now, it was accepted already, or no Destination exists for `internal_alerts`; `422` (`required` at `/destination_ids`) when `internal_alerts` is accepted without Destinations.
//
// Takes any type of body and a specified content type.
//
// Corresponds with POST /route-suggestions/{suggestion_id}/accept (the `AcceptRouteSuggestion` operationId).
AcceptRouteSuggestionWithBody(ctx context.Context, suggestionId SuggestionId, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
// AcceptRouteSuggestion Accept a Route suggestion
//
// Creates the suggested Route at the top of the list; the Route for `internal_alerts` goes directly below the last Route other than the Default route that already takes an Internal alert, such as the Route for `MusterHeartbeatLost`, and at the top when none does. `409` (`suggestion_obsolete`) when it no longer applies: a matching Route exists now, it was accepted already, or no Destination exists for `internal_alerts`; `422` (`required` at `/destination_ids`) when `internal_alerts` is accepted without Destinations.
//
// Takes a body of the `application/json` content type.
//
// Corresponds with POST /route-suggestions/{suggestion_id}/accept (the `AcceptRouteSuggestion` operationId).
AcceptRouteSuggestion(ctx context.Context, suggestionId SuggestionId, body AcceptRouteSuggestionJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// DismissRouteSuggestion Dismiss a Route suggestion
//
// Remembered for the calling user only, so Service account tokens get `403` (`service_account_not_allowed`). `409` (`suggestion_obsolete`) when it no longer applies.
//
// Corresponds with POST /route-suggestions/{suggestion_id}/dismiss (the `DismissRouteSuggestion` operationId).
DismissRouteSuggestion(ctx context.Context, suggestionId SuggestionId, reqEditors ...RequestEditorFn) (*http.Response, error)
// ListRoutes List Routes in evaluation order
//
// The first Route whose Matchers all match takes an Alert. The Default route is always last. The ETag covers the order and is what `reorderRoutes` expects in `If-Match`.
//
// Corresponds with GET /routes (the `ListRoutes` operationId).
ListRoutes(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
// CreateRouteWithBody Create a Route
//
// Inserted before the Default route. Fields omitted from `policy` are not defaulted: fetch a profile with `listRouteProfiles` to pre-fill the form. Templates are parsed and dry-run against recent Stored Snapshots; a template that fails is refused with `422` and the error position.
//
// Takes any type of body and a specified content type.
//
// Corresponds with POST /routes (the `CreateRoute` operationId).
CreateRouteWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
// CreateRoute Create a Route
//
// Inserted before the Default route. Fields omitted from `policy` are not defaulted: fetch a profile with `listRouteProfiles` to pre-fill the form. Templates are parsed and dry-run against recent Stored Snapshots; a template that fails is refused with `422` and the error position.
//
// Takes a body of the `application/json` content type.
//
// Corresponds with POST /routes (the `CreateRoute` operationId).
CreateRoute(ctx context.Context, body CreateRouteJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// DeleteRoute Delete a Route
//
// Refused with `409` `default-route-immutable` for the Default route and with `409` `route-has-open-alert-groups` (carrying `open_alert_group_count`) while open Alert Groups remain; move them first with `moveOpenAlertGroups`.
//
// Corresponds with DELETE /routes/{route_id} (the `DeleteRoute` operationId).
DeleteRoute(ctx context.Context, routeId RouteId, params *DeleteRouteParams, reqEditors ...RequestEditorFn) (*http.Response, error)
// GetRoute Read a Route
//
// Corresponds with GET /routes/{route_id} (the `GetRoute` operationId).
GetRoute(ctx context.Context, routeId RouteId, reqEditors ...RequestEditorFn) (*http.Response, error)
// UpdateRouteWithBody Update a Route
//
// Replaces the writable fields. Requires `If-Match`; a stale ETag gets `412`. An omitted optional field keeps its stored value; an explicit `null` clears a nullable one.
//
// Takes any type of body and a specified content type.
//
// Corresponds with PUT /routes/{route_id} (the `UpdateRoute` operationId).
UpdateRouteWithBody(ctx context.Context, routeId RouteId, params *UpdateRouteParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
// UpdateRoute Update a Route
//
// Replaces the writable fields. Requires `If-Match`; a stale ETag gets `412`. An omitted optional field keeps its stored value; an explicit `null` clears a nullable one.
//
// Takes a body of the `application/json` content type.
//
// Corresponds with PUT /routes/{route_id} (the `UpdateRoute` operationId).
UpdateRoute(ctx context.Context, routeId RouteId, params *UpdateRouteParams, body UpdateRouteJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// MoveOpenAlertGroups Move open Alert Groups to the Default route
//
// Adds a `moved_to_default_route` Timeline entry to each moved Alert Group. Afterwards the Route can be deleted. A moved Alert Group keeps its Group key values but takes no new Alerts and never reopens; it stays open until its Alerts resolve or a person resolves it.
//
// Corresponds with POST /routes/{route_id}/move-open-alert-groups (the `MoveOpenAlertGroups` operationId).
MoveOpenAlertGroups(ctx context.Context, routeId RouteId, reqEditors ...RequestEditorFn) (*http.Response, error)
// ListServiceAccounts List Service accounts
//
// Corresponds with GET /service-accounts (the `ListServiceAccounts` operationId).
ListServiceAccounts(ctx context.Context, params *ListServiceAccountsParams, reqEditors ...RequestEditorFn) (*http.Response, error)
// CreateServiceAccountWithBody Create a Service account
//
// A token may only assign a Role whose Permissions it holds itself (`422` `permission_not_held` at `/role`).
//
// Takes any type of body and a specified content type.
//
// Corresponds with POST /service-accounts (the `CreateServiceAccount` operationId).
CreateServiceAccountWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
// CreateServiceAccount Create a Service account
//
// A token may only assign a Role whose Permissions it holds itself (`422` `permission_not_held` at `/role`).
//
// Takes a body of the `application/json` content type.
//
// Corresponds with POST /service-accounts (the `CreateServiceAccount` operationId).
CreateServiceAccount(ctx context.Context, body CreateServiceAccountJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// DeleteServiceAccount Delete a Service account
//
// Revokes its tokens.
//
// Corresponds with DELETE /service-accounts/{service_account_id} (the `DeleteServiceAccount` operationId).
DeleteServiceAccount(ctx context.Context, serviceAccountId ServiceAccountId, params *DeleteServiceAccountParams, reqEditors ...RequestEditorFn) (*http.Response, error)
// GetServiceAccount Read a Service account
//
// Corresponds with GET /service-accounts/{service_account_id} (the `GetServiceAccount` operationId).
GetServiceAccount(ctx context.Context, serviceAccountId ServiceAccountId, reqEditors ...RequestEditorFn) (*http.Response, error)
// UpdateServiceAccountWithBody Update a Service account
//
// A token may only assign a Role whose Permissions it holds itself (`422` `permission_not_held` at `/role`).
//
// Takes any type of body and a specified content type.
//
// Corresponds with PUT /service-accounts/{service_account_id} (the `UpdateServiceAccount` operationId).
UpdateServiceAccountWithBody(ctx context.Context, serviceAccountId ServiceAccountId, params *UpdateServiceAccountParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
// UpdateServiceAccount Update a Service account
//
// A token may only assign a Role whose Permissions it holds itself (`422` `permission_not_held` at `/role`).
//
// Takes a body of the `application/json` content type.
//
// Corresponds with PUT /service-accounts/{service_account_id} (the `UpdateServiceAccount` operationId).
UpdateServiceAccount(ctx context.Context, serviceAccountId ServiceAccountId, params *UpdateServiceAccountParams, body UpdateServiceAccountJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// DisableServiceAccount Disable a Service account
//
// Its tokens stop working until the account is enabled again.
//
// Corresponds with POST /service-accounts/{service_account_id}/disable (the `DisableServiceAccount` operationId).
DisableServiceAccount(ctx context.Context, serviceAccountId ServiceAccountId, reqEditors ...RequestEditorFn) (*http.Response, error)
// EnableServiceAccount Enable a Service account
//
// Makes a disabled Service account usable again; its tokens work again.
//
// Corresponds with POST /service-accounts/{service_account_id}/enable (the `EnableServiceAccount` operationId).
EnableServiceAccount(ctx context.Context, serviceAccountId ServiceAccountId, reqEditors ...RequestEditorFn) (*http.Response, error)
// ListServiceAccountTokens List tokens of a Service account
//
// Corresponds with GET /service-accounts/{service_account_id}/tokens (the `ListServiceAccountTokens` operationId).
ListServiceAccountTokens(ctx context.Context, serviceAccountId ServiceAccountId, reqEditors ...RequestEditorFn) (*http.Response, error)
// CreateServiceAccountTokenWithBody Create a Service account token
//
// Shows the token once. Web session only: a token can never mint another token.
//
// Takes any type of body and a specified content type.
//
// Corresponds with POST /service-accounts/{service_account_id}/tokens (the `CreateServiceAccountToken` operationId).
CreateServiceAccountTokenWithBody(ctx context.Context, serviceAccountId ServiceAccountId, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
// CreateServiceAccountToken Create a Service account token
//
// Shows the token once. Web session only: a token can never mint another token.
//
// Takes a body of the `application/json` content type.
//
// Corresponds with POST /service-accounts/{service_account_id}/tokens (the `CreateServiceAccountToken` operationId).
CreateServiceAccountToken(ctx context.Context, serviceAccountId ServiceAccountId, body CreateServiceAccountTokenJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// RevokeServiceAccountToken Revoke a Service account token
//
// Revokes the token at once. Web session only: a token can never revoke a token.
//
// Corresponds with DELETE /service-accounts/{service_account_id}/tokens/{token_id} (the `RevokeServiceAccountToken` operationId).
RevokeServiceAccountToken(ctx context.Context, serviceAccountId ServiceAccountId, tokenId TokenId, reqEditors ...RequestEditorFn) (*http.Response, error)
// CreateSessionWithBody Sign in with a local account
//
// Creates a session cookie (`HttpOnly; Secure; SameSite=Lax`) and returns the CSRF token. If the user has TOTP and the request carries neither `totp_code` nor `recovery_code`, the session starts in the state `totp_required` and `POST /sessions/current/totp` completes it. Under a TOTP policy that covers a user without TOTP the state is `totp_enrolment_required`. A wrong login, password or code is `401` (`invalid_credentials`) without saying which one was wrong. Failed attempts slow down per account and per source address (`429` with `Retry-After`). A request a browser marks as cross-site (`Sec-Fetch-Site` set to `cross-site`) is refused with `403` (`csrf_invalid`).
//
// Takes any type of body and a specified content type.
//
// Corresponds with POST /sessions (the `CreateSession` operationId).
CreateSessionWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
// CreateSession Sign in with a local account
//
// Creates a session cookie (`HttpOnly; Secure; SameSite=Lax`) and returns the CSRF token. If the user has TOTP and the request carries neither `totp_code` nor `recovery_code`, the session starts in the state `totp_required` and `POST /sessions/current/totp` completes it. Under a TOTP policy that covers a user without TOTP the state is `totp_enrolment_required`. A wrong login, password or code is `401` (`invalid_credentials`) without saying which one was wrong. Failed attempts slow down per account and per source address (`429` with `Retry-After`). A request a browser marks as cross-site (`Sec-Fetch-Site` set to `cross-site`) is refused with `403` (`csrf_invalid`).
//
// Takes a body of the `application/json` content type.
//
// Corresponds with POST /sessions (the `CreateSession` operationId).
CreateSession(ctx context.Context, body CreateSessionJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// DeleteCurrentSession Sign out
//
// Ends the session, in any state.
//
// Corresponds with DELETE /sessions/current (the `DeleteCurrentSession` operationId).
DeleteCurrentSession(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
// GetCurrentSession Read the current session
//
// Returns the session in any state, including the CSRF token the SPA sends on mutating requests.
//
// Corresponds with GET /sessions/current (the `GetCurrentSession` operationId).
GetCurrentSession(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
// SubmitSessionTotpWithBody Give the second factor
//
// Completes a session in the state `totp_required` with a current TOTP code or a single-use recovery code; works the same after a local and an OIDC sign-in. A wrong code is `401` (`invalid_credentials`) and slows down like a wrong password; `409` (`totp_not_pending`) when the session is not waiting for a code.
//
// Takes any type of body and a specified content type.
//
// Corresponds with POST /sessions/current/totp (the `SubmitSessionTotp` operationId).
SubmitSessionTotpWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
// SubmitSessionTotp Give the second factor
//
// Completes a session in the state `totp_required` with a current TOTP code or a single-use recovery code; works the same after a local and an OIDC sign-in. A wrong code is `401` (`invalid_credentials`) and slows down like a wrong password; `409` (`totp_not_pending`) when the session is not waiting for a code.
//
// Takes a body of the `application/json` content type.
//
// Corresponds with POST /sessions/current/totp (the `SubmitSessionTotp` operationId).
SubmitSessionTotp(ctx context.Context, body SubmitSessionTotpJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// CompleteOidcSignIn Complete OIDC sign-in
//
// Redirect target of the identity provider. Every outcome is a `302` to the SPA, so the browser never shows a raw error. On success it sets the session cookie (state `active`, or `totp_required` when the user has TOTP and the identity provider did not assert multi-factor authentication) and redirects to the `return_to` of the start or to `/`. The first sign-in of a new identity creates the user, with the login taken from `preferred_username`, else the email, else `sub`. Accounts are never merged by login or email; an identity reaches an existing account only by linking it from that account's profile (`startOidcLink`). A failure redirects to `/sign-in?error=<code>` with one of `no_access` (the person is in no mapped group; the Audit log records the groups from the claim), `login_taken` (a new identity's login belongs to an existing account; the page says "An account with this login already exists. Sign in with it and link OIDC in your profile.", and the Audit log records the refusal), `account_disabled`, `oidc_disabled`, `invalid_request` (bad or missing `state`, `code` or `nonce`) and `idp_error` (the identity provider or the back channel failed).
//
// Corresponds with GET /sessions/oidc/callback (the `CompleteOidcSignIn` operationId).
CompleteOidcSignIn(ctx context.Context, params *CompleteOidcSignInParams, reqEditors ...RequestEditorFn) (*http.Response, error)
// StartOidcSignIn Start OIDC sign-in
//
// Redirects the browser to the identity provider with PKCE (`S256`), `state` and `nonce`, all mandatory, requesting `openid` and the configured scopes, and `offline_access` when the IdP's discovery lists it in `scopes_supported` or publishes no `scopes_supported`; when the IdP grants it, the offline token is stored on the user, encrypted, replacing the previous one. Muster exchanges the code itself through the back channel. The redirect URI to register at the identity provider is `MUSTER_PUBLIC_URL/api/v1/sessions/oidc/callback`. `409` (`oidc_not_enabled`) while OIDC is off.
//
// Corresponds with GET /sessions/oidc/start (the `StartOidcSignIn` operationId).
StartOidcSignIn(ctx context.Context, params *StartOidcSignInParams, reqEditors ...RequestEditorFn) (*http.Response, error)
// GetSignInOptions Read sign-in options
//
// Whether the sign-in page shows the OIDC button next to the local form. Local sign-in is always available; no setting turns it off. Carries no version or other detail about the installation.
//
// Corresponds with GET /sign-in-options (the `GetSignInOptions` operationId).
GetSignInOptions(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
// ListSnoozePresets List the ends of the Snooze presets
//
// The end that a Snooze with each Snooze preset would set now, in the order `tomorrow`, `week_start`, computed like the Snooze itself from `organization.workday_start` and `organization.week_start` on the business clock. The time zone is `time_zone` when given, else the profile time zone of the User the caller acts as, else the Organization's; the answer names the one it used. A time zone Muster does not know (or `Local`) is `422` `invalid_format` at `/query/time_zone`. It reads and changes nothing else.
//
// Corresponds with GET /snooze-presets (the `ListSnoozePresets` operationId).
ListSnoozePresets(ctx context.Context, params *ListSnoozePresetsParams, reqEditors ...RequestEditorFn) (*http.Response, error)
// ListStoredSnapshots List Stored Snapshots
//
// Kept for `retention.stored_snapshots`. Replay is the CLI command `muster ingest replay`.
//
// Corresponds with GET /stored-snapshots (the `ListStoredSnapshots` operationId).
ListStoredSnapshots(ctx context.Context, params *ListStoredSnapshotsParams, reqEditors ...RequestEditorFn) (*http.Response, error)
// GetStoredSnapshot Read a Stored Snapshot as received
//
// Corresponds with GET /stored-snapshots/{stored_snapshot_id} (the `GetStoredSnapshot` operationId).
GetStoredSnapshot(ctx context.Context, storedSnapshotId StoredSnapshotId, reqEditors ...RequestEditorFn) (*http.Response, error)
// ListSystemNotices List active Organization-wide notices
//
// "Recovering after downtime" for every signed-in user, "no replica is leading" for Admins. Changes arrive as `system-notices` hints.
//
// Corresponds with GET /system-notices (the `ListSystemNotices` operationId).
ListSystemNotices(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
// GetSystemStatus Read the System status
//
// Read-only: replicas and the Leader with their key ids, the recovery state, delivery queues, Broken Destinations, Integrations with Heartbeat lost or truncated Snapshots, template errors, active Storms and the last outgoing heartbeat.
//
// Corresponds with GET /system-status (the `GetSystemStatus` operationId).
GetSystemStatus(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
// PreviewTemplateWithBody Render a template against a sample
//
// Parses and renders a template in the sandbox against a recent Stored Snapshot, an Alert Group or a built-in example. Template errors are returned in `errors` with their position, not as a Problem, so an editor can show them next to the preview.
//
// Takes any type of body and a specified content type.
//
// Corresponds with POST /template-previews (the `PreviewTemplate` operationId).
PreviewTemplateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
// PreviewTemplate Render a template against a sample
//
// Parses and renders a template in the sandbox against a recent Stored Snapshot, an Alert Group or a built-in example. Template errors are returned in `errors` with their position, not as a Problem, so an editor can show them next to the preview.
//
// Takes a body of the `application/json` content type.
//
// Corresponds with POST /template-previews (the `PreviewTemplate` operationId).
PreviewTemplate(ctx context.Context, body PreviewTemplateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// ListUserDirectory List users for pickers and filters
//
// Name, login and whether the user is deactivated, for the Owner filter, Mention settings and other pickers. Includes deleted users, because their acknowledgements stay visible. Available to everyone who reads Alert Groups, unlike `listUsers`.
//
// Corresponds with GET /user-directory (the `ListUserDirectory` operationId).
ListUserDirectory(ctx context.Context, params *ListUserDirectoryParams, reqEditors ...RequestEditorFn) (*http.Response, error)
// ListUsers List users
//
// Corresponds with GET /users (the `ListUsers` operationId).
ListUsers(ctx context.Context, params *ListUsersParams, reqEditors ...RequestEditorFn) (*http.Response, error)
// CreateUserWithBody Create a local user
//
// Returns a single-use password setup link; Muster sends no email. A token may only assign a Role whose Permissions it holds itself (`422` `permission_not_held` at `/role`).
//
// Takes any type of body and a specified content type.
//
// Corresponds with POST /users (the `CreateUser` operationId).
CreateUserWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
// CreateUser Create a local user
//
// Returns a single-use password setup link; Muster sends no email. A token may only assign a Role whose Permissions it holds itself (`422` `permission_not_held` at `/role`).
//
// Takes a body of the `application/json` content type.
//
// Corresponds with POST /users (the `CreateUser` operationId).
CreateUser(ctx context.Context, body CreateUserJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// DeleteUser Delete a user
//
// Deactivates and pseudonymizes: the name becomes `deleted-user-<id>`, the email is erased, sessions end, tokens are revoked and Account links are removed. Every acknowledged Alert Group the user owns becomes firing without an Owner, with an `unacknowledged` Timeline entry by the system and the reason `owner_deleted`. Audit log rows are never changed. The last active Admin cannot be deleted (`409` `last_admin`).
//
// Corresponds with DELETE /users/{user_id} (the `DeleteUser` operationId).
DeleteUser(ctx context.Context, userId UserId, params *DeleteUserParams, reqEditors ...RequestEditorFn) (*http.Response, error)
// GetUser Read a user
//
// Corresponds with GET /users/{user_id} (the `GetUser` operationId).
GetUser(ctx context.Context, userId UserId, reqEditors ...RequestEditorFn) (*http.Response, error)
// UpdateUserWithBody Update a user
//
// Changes name, email and Role. A Role change ends the user's sessions. Refused with `409` (`role_locked`) for a Role change of an account that signs in through OIDC while OIDC and `oidc.sync_role` are both on, and with `409` (`last_admin`) when it would give the last active Admin a lower Role. A token may only assign a Role whose Permissions it holds itself (`422` `permission_not_held` at `/role`).
//
// Takes any type of body and a specified content type.
//
// Corresponds with PUT /users/{user_id} (the `UpdateUser` operationId).
UpdateUserWithBody(ctx context.Context, userId UserId, params *UpdateUserParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
// UpdateUser Update a user
//
// Changes name, email and Role. A Role change ends the user's sessions. Refused with `409` (`role_locked`) for a Role change of an account that signs in through OIDC while OIDC and `oidc.sync_role` are both on, and with `409` (`last_admin`) when it would give the last active Admin a lower Role. A token may only assign a Role whose Permissions it holds itself (`422` `permission_not_held` at `/role`).
//
// Takes a body of the `application/json` content type.
//
// Corresponds with PUT /users/{user_id} (the `UpdateUser` operationId).
UpdateUser(ctx context.Context, userId UserId, params *UpdateUserParams, body UpdateUserJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// ListUserAccountLinks List a user's Account links
//
// Corresponds with GET /users/{user_id}/account-links (the `ListUserAccountLinks` operationId).
ListUserAccountLinks(ctx context.Context, userId UserId, reqEditors ...RequestEditorFn) (*http.Response, error)
// DeleteUserAccountLink Remove a user's Account link
//
// Admins can remove any link but cannot create one for someone else. An Admin's own link is removed from the web session only; with a token the answer is `403` (`session_required`).
//
// Corresponds with DELETE /users/{user_id}/account-links/{account_link_id} (the `DeleteUserAccountLink` operationId).
DeleteUserAccountLink(ctx context.Context, userId UserId, accountLinkId AccountLinkId, reqEditors ...RequestEditorFn) (*http.Response, error)
// ConvertUserToLocal Convert an OIDC account to local
//
// Removes the OIDC identity of an account that signs in through OIDC — created through OIDC or linked — and ends its sessions; the response carries a password setup link, as at user creation, and the Audit log records the conversion. The account keeps its TOTP enrolment and, once the password is set, signs in only with it. `409` with `oidc_not_linked` when the account does not sign in through OIDC.
//
// Corresponds with POST /users/{user_id}/convert-to-local (the `ConvertUserToLocal` operationId).
ConvertUserToLocal(ctx context.Context, userId UserId, reqEditors ...RequestEditorFn) (*http.Response, error)
// DisableUser Disable a user
//
// Ends the user's sessions; tokens stop working until the user is enabled again. Every acknowledged Alert Group the user owns becomes firing without an Owner, with an `unacknowledged` Timeline entry by the system and the reason `owner_disabled`; enabling the user again gives no acknowledgement back. The last active Admin cannot be disabled (`409` `last_admin`).
//
// Corresponds with POST /users/{user_id}/disable (the `DisableUser` operationId).
DisableUser(ctx context.Context, userId UserId, reqEditors ...RequestEditorFn) (*http.Response, error)
// EnableUser Enable a user
//
// Corresponds with POST /users/{user_id}/enable (the `EnableUser` operationId).
EnableUser(ctx context.Context, userId UserId, reqEditors ...RequestEditorFn) (*http.Response, error)
// CreatePasswordSetupLink Issue a password setup link
//
// Valid for `auth.password_setup_link_ttl`, single use. Only for an account that signs in with a password (`409` `local_user_only` for an OIDC account; convert it with `convertUserToLocal`).
//
// Corresponds with POST /users/{user_id}/password-setup-links (the `CreatePasswordSetupLink` operationId).
CreatePasswordSetupLink(ctx context.Context, userId UserId, reqEditors ...RequestEditorFn) (*http.Response, error)
// ResetUserTotp Reset a user's TOTP
//
// Audited. The user enrols again at the next sign-in if the policy requires it.
//
// Corresponds with POST /users/{user_id}/reset-totp (the `ResetUserTotp` operationId).
ResetUserTotp(ctx context.Context, userId UserId, reqEditors ...RequestEditorFn) (*http.Response, error)
}
The interface specification for the client above.
type ClientOption ¶
ClientOption allows setting custom parameters during construction
func WithHTTPClient ¶
func WithHTTPClient(doer HttpRequestDoer) ClientOption
WithHTTPClient allows overriding the default Doer, which is automatically created using http.Client. This is useful for tests.
func WithRequestEditorFn ¶
func WithRequestEditorFn(fn RequestEditorFn) ClientOption
WithRequestEditorFn allows setting up a callback function, which will be called right before sending the request. This can be used to mutate the request.
type ClientWithResponses ¶
type ClientWithResponses struct {
ClientInterface
}
ClientWithResponses builds on ClientInterface to offer response payloads
func NewClientWithResponses ¶
func NewClientWithResponses(server string, opts ...ClientOption) (*ClientWithResponses, error)
NewClientWithResponses creates a new ClientWithResponses, which wraps Client with return type handling
func (*ClientWithResponses) AcceptRouteSuggestionWithBodyWithResponse ¶
func (c *ClientWithResponses) AcceptRouteSuggestionWithBodyWithResponse(ctx context.Context, suggestionId SuggestionId, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*AcceptRouteSuggestionResponse, error)
AcceptRouteSuggestionWithBodyWithResponse Accept a Route suggestion
Creates the suggested Route at the top of the list; the Route for `internal_alerts` goes directly below the last Route other than the Default route that already takes an Internal alert, such as the Route for `MusterHeartbeatLost`, and at the top when none does. `409` (`suggestion_obsolete`) when it no longer applies: a matching Route exists now, it was accepted already, or no Destination exists for `internal_alerts`; `422` (`required` at `/destination_ids`) when `internal_alerts` is accepted without Destinations.
Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
Corresponds with POST /route-suggestions/{suggestion_id}/accept (the `AcceptRouteSuggestion` operationId).
func (*ClientWithResponses) AcceptRouteSuggestionWithResponse ¶
func (c *ClientWithResponses) AcceptRouteSuggestionWithResponse(ctx context.Context, suggestionId SuggestionId, body AcceptRouteSuggestionJSONRequestBody, reqEditors ...RequestEditorFn) (*AcceptRouteSuggestionResponse, error)
AcceptRouteSuggestionWithResponse Accept a Route suggestion
Creates the suggested Route at the top of the list; the Route for `internal_alerts` goes directly below the last Route other than the Default route that already takes an Internal alert, such as the Route for `MusterHeartbeatLost`, and at the top when none does. `409` (`suggestion_obsolete`) when it no longer applies: a matching Route exists now, it was accepted already, or no Destination exists for `internal_alerts`; `422` (`required` at `/destination_ids`) when `internal_alerts` is accepted without Destinations.
Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
Corresponds with POST /route-suggestions/{suggestion_id}/accept (the `AcceptRouteSuggestion` operationId).
func (*ClientWithResponses) AcknowledgeAlertGroupWithResponse ¶
func (c *ClientWithResponses) AcknowledgeAlertGroupWithResponse(ctx context.Context, alertGroupId AlertGroupId, reqEditors ...RequestEditorFn) (*AcknowledgeAlertGroupResponse, error)
AcknowledgeAlertGroupWithResponse Acknowledge
From firing or snoozed: the caller becomes the Owner and a Snooze ends. By the current Owner it changes nothing (`outcome` `unchanged`). By another user it is a Takeover: ownership moves, a Loud event mentions the previous Owner. A Personal access token acts as its User and may; a Service account token cannot become an Owner and is refused with `409` `command-refused` and the code `owner_must_be_user`. Other refusals: `already_resolved`.
Returns a wrapper object for the known response body format(s).
Corresponds with POST /alert-groups/{alert_group_id}/acknowledge (the `AcknowledgeAlertGroup` operationId).
func (*ClientWithResponses) AnswerReminderWithResponse ¶
func (c *ClientWithResponses) AnswerReminderWithResponse(ctx context.Context, alertGroupId AlertGroupId, reqEditors ...RequestEditorFn) (*AnswerReminderResponse, error)
AnswerReminderWithResponse Answer a Reminder with "Still on it"
Owner only. Recorded in the Timeline like a press in a messenger; it does not reset the Reminder interval. Refused with `409` `command-refused` and the codes `not_owner`, `no_reminder_pending` and, for a Service account token, `owner_must_be_user`.
Returns a wrapper object for the known response body format(s).
Corresponds with POST /alert-groups/{alert_group_id}/still-on-it (the `AnswerReminder` operationId).
func (*ClientWithResponses) BeginTotpEnrolmentWithResponse ¶
func (c *ClientWithResponses) BeginTotpEnrolmentWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*BeginTotpEnrolmentResponse, error)
BeginTotpEnrolmentWithResponse Begin TOTP enrolment
Returns the seed and the `otpauth` URI once. Enrolment completes when `confirmTotpEnrolment` receives a first code. Allowed in the session state `totp_enrolment_required`. `409` (`totp_already_enrolled`) when TOTP is already on. Web session only.
Returns a wrapper object for the known response body format(s).
Corresponds with POST /me/totp (the `BeginTotpEnrolment` operationId).
func (*ClientWithResponses) BridgeEventWithBodyWithResponse ¶
func (c *ClientWithResponses) BridgeEventWithBodyWithResponse(ctx context.Context, connectionId ConnectionId, params *BridgeEventParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*BridgeEventResponse, error)
BridgeEventWithBodyWithResponse Receive a Bridge event (push event delivery)
Used only when the Bridge Connection's event delivery mode is `push`: the bridge posts each event, one per request, signed as Standard Webhooks specifies with the Connection's push secret. Muster verifies `webhook-signature` — `v1,` followed by the base64 of HMAC-SHA256 over `<webhook-id>.<webhook-timestamp>.<body>` with the decoded secret, any of several signatures separated by spaces — in constant time, refuses a `webhook-timestamp` further than `bridge.push_tolerance` from its real clock, and requires `webhook-id` to equal the event's `id`. It handles each event `id` of a Connection once within `bridge.event_dedup_window`, answers the person behind the event, when it does, before it answers `204`, and answers `204` also for an `id` it handled before. A bad signature, a timestamp out of range, an unknown or deleted Connection and a Connection in poll mode are all answered `401` and change nothing, so the endpoint reveals nothing about which Connections exist; a body that is no event of the Bridge protocol, or whose `id` is not `webhook-id`, is answered `400`, and the bridge drops it; an event whose handling failed is answered `500`, is not recorded as handled, and the bridge sends it again. Request validation does not answer `400` here: the handler decides every answer.
Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
Corresponds with POST /callbacks/bridge/{connection_id} (the `BridgeEvent` operationId).
func (*ClientWithResponses) BridgeEventWithResponse ¶
func (c *ClientWithResponses) BridgeEventWithResponse(ctx context.Context, connectionId ConnectionId, params *BridgeEventParams, body BridgeEventJSONRequestBody, reqEditors ...RequestEditorFn) (*BridgeEventResponse, error)
BridgeEventWithResponse Receive a Bridge event (push event delivery)
Used only when the Bridge Connection's event delivery mode is `push`: the bridge posts each event, one per request, signed as Standard Webhooks specifies with the Connection's push secret. Muster verifies `webhook-signature` — `v1,` followed by the base64 of HMAC-SHA256 over `<webhook-id>.<webhook-timestamp>.<body>` with the decoded secret, any of several signatures separated by spaces — in constant time, refuses a `webhook-timestamp` further than `bridge.push_tolerance` from its real clock, and requires `webhook-id` to equal the event's `id`. It handles each event `id` of a Connection once within `bridge.event_dedup_window`, answers the person behind the event, when it does, before it answers `204`, and answers `204` also for an `id` it handled before. A bad signature, a timestamp out of range, an unknown or deleted Connection and a Connection in poll mode are all answered `401` and change nothing, so the endpoint reveals nothing about which Connections exist; a body that is no event of the Bridge protocol, or whose `id` is not `webhook-id`, is answered `400`, and the bridge drops it; an event whose handling failed is answered `500`, is not recorded as handled, and the bridge sends it again. Request validation does not answer `400` here: the handler decides every answer.
Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
Corresponds with POST /callbacks/bridge/{connection_id} (the `BridgeEvent` operationId).
func (*ClientWithResponses) ChangePasswordWithBodyWithResponse ¶
func (c *ClientWithResponses) ChangePasswordWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ChangePasswordResponse, error)
ChangePasswordWithBodyWithResponse Change own password
Ends all other sessions of the user. Local users only (`409` `local_user_only` otherwise). Web session only.
Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
Corresponds with PUT /me/password (the `ChangePassword` operationId).
func (*ClientWithResponses) ChangePasswordWithResponse ¶
func (c *ClientWithResponses) ChangePasswordWithResponse(ctx context.Context, body ChangePasswordJSONRequestBody, reqEditors ...RequestEditorFn) (*ChangePasswordResponse, error)
ChangePasswordWithResponse Change own password
Ends all other sessions of the user. Local users only (`409` `local_user_only` otherwise). Web session only.
Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
Corresponds with PUT /me/password (the `ChangePassword` operationId).
func (*ClientWithResponses) CheckConnectionDraftWithBodyWithResponse ¶
func (c *ClientWithResponses) CheckConnectionDraftWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CheckConnectionDraftResponse, error)
CheckConnectionDraftWithBodyWithResponse Check a Connection before saving it
Checks a draft of a Connection of any type, as its form holds it — the address, the bot token typed in the form, the proxy and, for a Bridge, the event delivery mode, for Slack the event mode and the app-level token — with the steps and step codes of `checkConnection`, and stores nothing: no Connection, no bot name, no `info`, no workspace or app, no Audit log entry. Which token goes where: a `bot_token` in the draft is sent to the address in the draft; without one, the stored token of `connection_id` is sent only when the draft's address, normalized as a save normalizes it, and its proxy are the saved ones; otherwise only the dry probe of the type runs, without any token, and the other steps are reported skipped — Mattermost `GET <server_url>/api/v4/system/ping`, Telegram `GET <bot_api_base_url>/bot0:x/getMe`, a Bridge `GET <base_url>/v1/info`, Slack `POST https://slack.com/api/auth.test` without `Authorization`. Slack's address is fixed, so only the proxy of a Slack draft can differ from the saved one; its step `app_token`, in `socket` mode, runs only with a bot token, and with an `app_token` in the draft or the stored one of `connection_id` on the saved proxy, and is reported skipped otherwise. A stored proxy password is used only with the saved proxy type and address. A `connection_id` that names no Connection, a deleted one or one of another type answers `422` `unknown_id` at `/connection_id`; an address or a proxy that a save would refuse answers `422` at its pointer. Runs on the interactive path: a draft with a `connection_id` takes its limiter token from that Connection, and when none is free within `delivery.interactive_budget` the answer is `503` with `Retry-After`; a draft of a new Connection has no limiter and waits for none.
Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
Corresponds with POST /connections/checks (the `CheckConnectionDraft` operationId).
func (*ClientWithResponses) CheckConnectionDraftWithResponse ¶
func (c *ClientWithResponses) CheckConnectionDraftWithResponse(ctx context.Context, body CheckConnectionDraftJSONRequestBody, reqEditors ...RequestEditorFn) (*CheckConnectionDraftResponse, error)
CheckConnectionDraftWithResponse Check a Connection before saving it
Checks a draft of a Connection of any type, as its form holds it — the address, the bot token typed in the form, the proxy and, for a Bridge, the event delivery mode, for Slack the event mode and the app-level token — with the steps and step codes of `checkConnection`, and stores nothing: no Connection, no bot name, no `info`, no workspace or app, no Audit log entry. Which token goes where: a `bot_token` in the draft is sent to the address in the draft; without one, the stored token of `connection_id` is sent only when the draft's address, normalized as a save normalizes it, and its proxy are the saved ones; otherwise only the dry probe of the type runs, without any token, and the other steps are reported skipped — Mattermost `GET <server_url>/api/v4/system/ping`, Telegram `GET <bot_api_base_url>/bot0:x/getMe`, a Bridge `GET <base_url>/v1/info`, Slack `POST https://slack.com/api/auth.test` without `Authorization`. Slack's address is fixed, so only the proxy of a Slack draft can differ from the saved one; its step `app_token`, in `socket` mode, runs only with a bot token, and with an `app_token` in the draft or the stored one of `connection_id` on the saved proxy, and is reported skipped otherwise. A stored proxy password is used only with the saved proxy type and address. A `connection_id` that names no Connection, a deleted one or one of another type answers `422` `unknown_id` at `/connection_id`; an address or a proxy that a save would refuse answers `422` at its pointer. Runs on the interactive path: a draft with a `connection_id` takes its limiter token from that Connection, and when none is free within `delivery.interactive_budget` the answer is `503` with `Retry-After`; a draft of a new Connection has no limiter and waits for none.
Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
Corresponds with POST /connections/checks (the `CheckConnectionDraft` operationId).
func (*ClientWithResponses) CheckConnectionWithBodyWithResponse ¶
func (c *ClientWithResponses) CheckConnectionWithBodyWithResponse(ctx context.Context, connectionId ConnectionId, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CheckConnectionResponse, error)
CheckConnectionWithBodyWithResponse Check a Connection
Mattermost verifies the token and returns the bot's name. Telegram works in steps and reports the latency and path of each: a dry probe without the token, `getMe`, `getWebhookInfo`. With `base_url` in the body only the dry probe runs against that unsaved address, without the token: a stored token is sent only to the saved address of its Connection, through its saved proxy; `checkConnectionDraft` checks an unsaved address with the token typed again. A Bridge Connection is checked in two steps: `info` calls `getInfo` of the Bridge protocol with the token, and a passing `info` is stored on the Connection and returned as `info`; `event_delivery` checks that the bridge offers the Connection's event delivery mode. A Slack Connection is checked in steps: `token` calls `auth.test` with the bot token and finds the bot and the workspace; `scopes` reads the `x-oauth-scopes` of that answer, which must name `chat:write`, `channels:read`, `groups:read`, `im:write`, `users:read` and `users:read.email`; in `socket` mode `app_token` calls `auth.test` with the app-level token and `bots.info` with the bot token, whose app ids must be equal. A passing check stores what it found and returns it as `slack`. Runs on the interactive path: when no limiter token is free within `delivery.interactive_budget`, the answer is `503` with `Retry-After`.
Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
Corresponds with POST /connections/{connection_id}/checks (the `CheckConnection` operationId).
func (*ClientWithResponses) CheckConnectionWithResponse ¶
func (c *ClientWithResponses) CheckConnectionWithResponse(ctx context.Context, connectionId ConnectionId, body CheckConnectionJSONRequestBody, reqEditors ...RequestEditorFn) (*CheckConnectionResponse, error)
CheckConnectionWithResponse Check a Connection
Mattermost verifies the token and returns the bot's name. Telegram works in steps and reports the latency and path of each: a dry probe without the token, `getMe`, `getWebhookInfo`. With `base_url` in the body only the dry probe runs against that unsaved address, without the token: a stored token is sent only to the saved address of its Connection, through its saved proxy; `checkConnectionDraft` checks an unsaved address with the token typed again. A Bridge Connection is checked in two steps: `info` calls `getInfo` of the Bridge protocol with the token, and a passing `info` is stored on the Connection and returned as `info`; `event_delivery` checks that the bridge offers the Connection's event delivery mode. A Slack Connection is checked in steps: `token` calls `auth.test` with the bot token and finds the bot and the workspace; `scopes` reads the `x-oauth-scopes` of that answer, which must name `chat:write`, `channels:read`, `groups:read`, `im:write`, `users:read` and `users:read.email`; in `socket` mode `app_token` calls `auth.test` with the app-level token and `bots.info` with the bot token, whose app ids must be equal. A passing check stores what it found and returns it as `slack`. Runs on the interactive path: when no limiter token is free within `delivery.interactive_budget`, the answer is `503` with `Retry-After`.
Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
Corresponds with POST /connections/{connection_id}/checks (the `CheckConnection` operationId).
func (*ClientWithResponses) CheckDestinationWithResponse ¶
func (c *ClientWithResponses) CheckDestinationWithResponse(ctx context.Context, destinationId DestinationId, reqEditors ...RequestEditorFn) (*CheckDestinationResponse, error)
CheckDestinationWithResponse Run the Destination check
Verifies that Muster can still reach and post to the Destination without sending a message: Mattermost token and channel membership; Telegram `getChat` for the channel, its discussion group from `linked_chat_id`, and `getChatMember` for the bot in both; Bridge `checkChannel`; Slack `conversations.info` (item `channel`). A success ends the Broken state. Not available for outgoing webhooks (`422` with `check_not_supported`). Runs on the interactive path: when no limiter token is free within `delivery.interactive_budget`, the answer is `503` with `Retry-After`.
Returns a wrapper object for the known response body format(s).
Corresponds with POST /destinations/{destination_id}/checks (the `CheckDestination` operationId).
func (*ClientWithResponses) CheckOidcSettingsWithResponse ¶
func (c *ClientWithResponses) CheckOidcSettingsWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*CheckOidcSettingsResponse, error)
CheckOidcSettingsWithResponse Check the connection to the identity provider
Fetches discovery through the outbound HTTP package, with the saved proxy, and reports whether the groups claim is advertised. While no sign-in has seen the claim in an ID token or userinfo since the groups claim, the issuer, the client ID or the scopes last changed, a claim discovery does not list raises the warning `groups_claim_missing` and a listed one clears it; once a sign-in has seen it, the check changes nothing.
Returns a wrapper object for the known response body format(s).
Corresponds with POST /oidc-settings/checks (the `CheckOidcSettings` operationId).
func (*ClientWithResponses) CompleteOidcLinkWithResponse ¶
func (c *ClientWithResponses) CompleteOidcLinkWithResponse(ctx context.Context, params *CompleteOidcLinkParams, reqEditors ...RequestEditorFn) (*CompleteOidcLinkResponse, error)
CompleteOidcLinkWithResponse Complete linking an OIDC identity
Redirect target of the identity provider for a link started by `startOidcLink`; register `MUSTER_PUBLIC_URL/api/v1/me/oidc-identity/callback` at the identity provider next to the sign-in callback. Every outcome is a `302` to the profile page. On success the identity (issuer and subject) is added to the account of the web session that started the link and the password is removed; an offline token granted by the link flow is kept on the user, as at sign-in; this session continues as an OIDC session, the user's other sessions end, and the Audit log records it; the redirect goes to `/profile`. A failure redirects to `/profile?error=<code>`, with one of `identity_linked_elsewhere` (the identity belongs to another user; the Audit log records the refusal), `no_access` (the identity's groups map to no Role and there is no Role for unmatched users, so the account could not sign in through OIDC; the redirect is `/profile?error=no_access` and the Audit log records the refusal with the groups), `oidc_disabled`, `invalid_request` (bad or missing `state`, `code` or `nonce`, no web session, or a `state` started by another session) and `idp_error`.
Returns a wrapper object for the known response body format(s).
Corresponds with GET /me/oidc-identity/callback (the `CompleteOidcLink` operationId).
func (*ClientWithResponses) CompleteOidcSignInWithResponse ¶
func (c *ClientWithResponses) CompleteOidcSignInWithResponse(ctx context.Context, params *CompleteOidcSignInParams, reqEditors ...RequestEditorFn) (*CompleteOidcSignInResponse, error)
CompleteOidcSignInWithResponse Complete OIDC sign-in
Redirect target of the identity provider. Every outcome is a `302` to the SPA, so the browser never shows a raw error. On success it sets the session cookie (state `active`, or `totp_required` when the user has TOTP and the identity provider did not assert multi-factor authentication) and redirects to the `return_to` of the start or to `/`. The first sign-in of a new identity creates the user, with the login taken from `preferred_username`, else the email, else `sub`. Accounts are never merged by login or email; an identity reaches an existing account only by linking it from that account's profile (`startOidcLink`). A failure redirects to `/sign-in?error=<code>` with one of `no_access` (the person is in no mapped group; the Audit log records the groups from the claim), `login_taken` (a new identity's login belongs to an existing account; the page says "An account with this login already exists. Sign in with it and link OIDC in your profile.", and the Audit log records the refusal), `account_disabled`, `oidc_disabled`, `invalid_request` (bad or missing `state`, `code` or `nonce`) and `idp_error` (the identity provider or the back channel failed).
Returns a wrapper object for the known response body format(s).
Corresponds with GET /sessions/oidc/callback (the `CompleteOidcSignIn` operationId).
func (*ClientWithResponses) CompletePasswordSetupWithBodyWithResponse ¶
func (c *ClientWithResponses) CompletePasswordSetupWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CompletePasswordSetupResponse, error)
CompletePasswordSetupWithBodyWithResponse Set a password from a setup link
Uses the single-use token of a password setup link (the link carries it in the URL fragment, so it reaches neither server logs nor referrers). The user is then asked to enrol TOTP if the policy requires it. An unknown token is `404`; a token past `auth.password_setup_link_ttl` is `410` (`link_expired`); one already used or replaced by a newer link is `410` (`link_used`). Like the sign-in, a request that a browser marks as cross-site is `403` (`csrf_invalid`).
Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
Corresponds with POST /password-setups (the `CompletePasswordSetup` operationId).
func (*ClientWithResponses) CompletePasswordSetupWithResponse ¶
func (c *ClientWithResponses) CompletePasswordSetupWithResponse(ctx context.Context, body CompletePasswordSetupJSONRequestBody, reqEditors ...RequestEditorFn) (*CompletePasswordSetupResponse, error)
CompletePasswordSetupWithResponse Set a password from a setup link
Uses the single-use token of a password setup link (the link carries it in the URL fragment, so it reaches neither server logs nor referrers). The user is then asked to enrol TOTP if the policy requires it. An unknown token is `404`; a token past `auth.password_setup_link_ttl` is `410` (`link_expired`); one already used or replaced by a newer link is `410` (`link_used`). Like the sign-in, a request that a browser marks as cross-site is `403` (`csrf_invalid`).
Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
Corresponds with POST /password-setups (the `CompletePasswordSetup` operationId).
func (*ClientWithResponses) ConfirmBridgeLinkWithBodyWithResponse ¶
func (c *ClientWithResponses) ConfirmBridgeLinkWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ConfirmBridgeLinkResponse, error)
ConfirmBridgeLinkWithBodyWithResponse Confirm a Bridge link with the code
At most 5 attempts (`account_link.bridge_code`); after that the code is void. A wrong code, and a request that is void, used or expired or whose Connection was deleted, answer `422` `link_code_invalid` at `/code`, never saying which, with `attempts_remaining`: the codes the request still takes, 0 once it takes none; a request of another User, or one that is not a Bridge code request, is `404`. The link stores the account's `external_id`, `display_name` and handle as the bridge reported them. No direct message confirms it, and no bridge is called. No operation starts a link for another User, whatever the caller's Role.
Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
Corresponds with POST /me/account-links/bridge/confirmation (the `ConfirmBridgeLink` operationId).
func (*ClientWithResponses) ConfirmBridgeLinkWithResponse ¶
func (c *ClientWithResponses) ConfirmBridgeLinkWithResponse(ctx context.Context, body ConfirmBridgeLinkJSONRequestBody, reqEditors ...RequestEditorFn) (*ConfirmBridgeLinkResponse, error)
ConfirmBridgeLinkWithResponse Confirm a Bridge link with the code
At most 5 attempts (`account_link.bridge_code`); after that the code is void. A wrong code, and a request that is void, used or expired or whose Connection was deleted, answer `422` `link_code_invalid` at `/code`, never saying which, with `attempts_remaining`: the codes the request still takes, 0 once it takes none; a request of another User, or one that is not a Bridge code request, is `404`. The link stores the account's `external_id`, `display_name` and handle as the bridge reported them. No direct message confirms it, and no bridge is called. No operation starts a link for another User, whatever the caller's Role.
Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
Corresponds with POST /me/account-links/bridge/confirmation (the `ConfirmBridgeLink` operationId).
func (*ClientWithResponses) ConfirmMattermostLinkWithBodyWithResponse ¶
func (c *ClientWithResponses) ConfirmMattermostLinkWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ConfirmMattermostLinkResponse, error)
ConfirmMattermostLinkWithBodyWithResponse Confirm a Mattermost link with the code
At most 5 attempts; after that the code is void. A wrong code, and a request that is void, used or expired, answer `422` `link_code_invalid` at `/code`, never saying which, with `attempts_remaining`: the codes the request still takes, 0 once it takes none; a request of another User is `404`. Runs on the interactive path: when no limiter token is free within `delivery.interactive_budget`, the answer is `503` with `Retry-After`. No operation starts a link for another User, whatever the caller's Role.
Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
Corresponds with POST /me/account-links/mattermost/confirmation (the `ConfirmMattermostLink` operationId).
func (*ClientWithResponses) ConfirmMattermostLinkWithResponse ¶
func (c *ClientWithResponses) ConfirmMattermostLinkWithResponse(ctx context.Context, body ConfirmMattermostLinkJSONRequestBody, reqEditors ...RequestEditorFn) (*ConfirmMattermostLinkResponse, error)
ConfirmMattermostLinkWithResponse Confirm a Mattermost link with the code
At most 5 attempts; after that the code is void. A wrong code, and a request that is void, used or expired, answer `422` `link_code_invalid` at `/code`, never saying which, with `attempts_remaining`: the codes the request still takes, 0 once it takes none; a request of another User is `404`. Runs on the interactive path: when no limiter token is free within `delivery.interactive_budget`, the answer is `503` with `Retry-After`. No operation starts a link for another User, whatever the caller's Role.
Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
Corresponds with POST /me/account-links/mattermost/confirmation (the `ConfirmMattermostLink` operationId).
func (*ClientWithResponses) ConfirmSlackLinkWithBodyWithResponse ¶
func (c *ClientWithResponses) ConfirmSlackLinkWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ConfirmSlackLinkResponse, error)
ConfirmSlackLinkWithBodyWithResponse Confirm a Slack link with the code
At most 5 attempts (`account_link.slack_code`); after that the code is void. A wrong code, and a request that is void, used or expired or whose Connection was deleted, answer `422` `link_code_invalid` at `/code`, never saying which, with `attempts_remaining`: the codes the request still takes, 0 once it takes none; a request of another User, or one that is not a Slack request, is `404`. The link stores the account's user id as `external_id`, its `name` as `username`, and its `profile.display_name`, else `profile.real_name`, as `display_name`, which Mentions and the footer use; a second link of the User through the same Connection replaces the first. The bot then confirms "Linked to Muster user {name}" by direct message; a confirmation that fails is only logged. Runs on the interactive path: when no limiter token is free within `delivery.interactive_budget`, or Slack answers `429`, the answer is `503` with `Retry-After`. No operation starts a link for another User, whatever the caller's Role.
Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
Corresponds with POST /me/account-links/slack/confirmation (the `ConfirmSlackLink` operationId).
func (*ClientWithResponses) ConfirmSlackLinkWithResponse ¶
func (c *ClientWithResponses) ConfirmSlackLinkWithResponse(ctx context.Context, body ConfirmSlackLinkJSONRequestBody, reqEditors ...RequestEditorFn) (*ConfirmSlackLinkResponse, error)
ConfirmSlackLinkWithResponse Confirm a Slack link with the code
At most 5 attempts (`account_link.slack_code`); after that the code is void. A wrong code, and a request that is void, used or expired or whose Connection was deleted, answer `422` `link_code_invalid` at `/code`, never saying which, with `attempts_remaining`: the codes the request still takes, 0 once it takes none; a request of another User, or one that is not a Slack request, is `404`. The link stores the account's user id as `external_id`, its `name` as `username`, and its `profile.display_name`, else `profile.real_name`, as `display_name`, which Mentions and the footer use; a second link of the User through the same Connection replaces the first. The bot then confirms "Linked to Muster user {name}" by direct message; a confirmation that fails is only logged. Runs on the interactive path: when no limiter token is free within `delivery.interactive_budget`, or Slack answers `429`, the answer is `503` with `Retry-After`. No operation starts a link for another User, whatever the caller's Role.
Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
Corresponds with POST /me/account-links/slack/confirmation (the `ConfirmSlackLink` operationId).
func (*ClientWithResponses) ConfirmTotpEnrolmentWithBodyWithResponse ¶
func (c *ClientWithResponses) ConfirmTotpEnrolmentWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ConfirmTotpEnrolmentResponse, error)
ConfirmTotpEnrolmentWithBodyWithResponse Confirm TOTP enrolment
Confirms with a first code and issues `auth.totp_recovery_codes` single-use recovery codes, shown once. Allowed in the session state `totp_enrolment_required`. `409` (`totp_enrolment_not_started`) without a begun enrolment, `totp_already_enrolled` if already confirmed. Web session only.
Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
Corresponds with POST /me/totp/confirmation (the `ConfirmTotpEnrolment` operationId).
func (*ClientWithResponses) ConfirmTotpEnrolmentWithResponse ¶
func (c *ClientWithResponses) ConfirmTotpEnrolmentWithResponse(ctx context.Context, body ConfirmTotpEnrolmentJSONRequestBody, reqEditors ...RequestEditorFn) (*ConfirmTotpEnrolmentResponse, error)
ConfirmTotpEnrolmentWithResponse Confirm TOTP enrolment
Confirms with a first code and issues `auth.totp_recovery_codes` single-use recovery codes, shown once. Allowed in the session state `totp_enrolment_required`. `409` (`totp_enrolment_not_started`) without a begun enrolment, `totp_already_enrolled` if already confirmed. Web session only.
Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
Corresponds with POST /me/totp/confirmation (the `ConfirmTotpEnrolment` operationId).
func (*ClientWithResponses) ConvertUserToLocalWithResponse ¶
func (c *ClientWithResponses) ConvertUserToLocalWithResponse(ctx context.Context, userId UserId, reqEditors ...RequestEditorFn) (*ConvertUserToLocalResponse, error)
ConvertUserToLocalWithResponse Convert an OIDC account to local
Removes the OIDC identity of an account that signs in through OIDC — created through OIDC or linked — and ends its sessions; the response carries a password setup link, as at user creation, and the Audit log records the conversion. The account keeps its TOTP enrolment and, once the password is set, signs in only with it. `409` with `oidc_not_linked` when the account does not sign in through OIDC.
Returns a wrapper object for the known response body format(s).
Corresponds with POST /users/{user_id}/convert-to-local (the `ConvertUserToLocal` operationId).
func (*ClientWithResponses) CreateAlertGroupNoteWithBodyWithResponse ¶
func (c *ClientWithResponses) CreateAlertGroupNoteWithBodyWithResponse(ctx context.Context, alertGroupId AlertGroupId, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateAlertGroupNoteResponse, error)
CreateAlertGroupNoteWithBodyWithResponse Add a Note
Adds a Note. Service accounts may add Notes; the author is shown as the Service account.
Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
Corresponds with POST /alert-groups/{alert_group_id}/notes (the `CreateAlertGroupNote` operationId).
func (*ClientWithResponses) CreateAlertGroupNoteWithResponse ¶
func (c *ClientWithResponses) CreateAlertGroupNoteWithResponse(ctx context.Context, alertGroupId AlertGroupId, body CreateAlertGroupNoteJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateAlertGroupNoteResponse, error)
CreateAlertGroupNoteWithResponse Add a Note
Adds a Note. Service accounts may add Notes; the author is shown as the Service account.
Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
Corresponds with POST /alert-groups/{alert_group_id}/notes (the `CreateAlertGroupNote` operationId).
func (*ClientWithResponses) CreateConnectionWithBodyWithResponse ¶
func (c *ClientWithResponses) CreateConnectionWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateConnectionResponse, error)
CreateConnectionWithBodyWithResponse Create Connection
`type` selects Mattermost, Telegram, Bridge or Slack. The bot token, the push secret, the app-level token and the Slack signing secret are write-only Secrets.
Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
Corresponds with POST /connections (the `CreateConnection` operationId).
func (*ClientWithResponses) CreateConnectionWithResponse ¶
func (c *ClientWithResponses) CreateConnectionWithResponse(ctx context.Context, body CreateConnectionJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateConnectionResponse, error)
CreateConnectionWithResponse Create Connection
`type` selects Mattermost, Telegram, Bridge or Slack. The bot token, the push secret, the app-level token and the Slack signing secret are write-only Secrets.
Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
Corresponds with POST /connections (the `CreateConnection` operationId).
func (*ClientWithResponses) CreateDestinationWithBodyWithResponse ¶
func (c *ClientWithResponses) CreateDestinationWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateDestinationResponse, error)
CreateDestinationWithBodyWithResponse Create Destination
`type` selects Mattermost, Telegram, outgoing webhook, Bridge or Slack. Saving a Mattermost, Telegram, Bridge or Slack Destination runs the Destination check through the interactive path and refuses one that fails it with `422` `validation-failed` and `destination_check_failed`. Creating an outgoing webhook Destination also generates its Signing secret, returned once in `signing_secret` (`null` for the other types). Routes attach Destinations through `destination_ids`.
Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
Corresponds with POST /destinations (the `CreateDestination` operationId).
func (*ClientWithResponses) CreateDestinationWithResponse ¶
func (c *ClientWithResponses) CreateDestinationWithResponse(ctx context.Context, body CreateDestinationJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateDestinationResponse, error)
CreateDestinationWithResponse Create Destination
`type` selects Mattermost, Telegram, outgoing webhook, Bridge or Slack. Saving a Mattermost, Telegram, Bridge or Slack Destination runs the Destination check through the interactive path and refuses one that fails it with `422` `validation-failed` and `destination_check_failed`. Creating an outgoing webhook Destination also generates its Signing secret, returned once in `signing_secret` (`null` for the other types). Routes attach Destinations through `destination_ids`.
Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
Corresponds with POST /destinations (the `CreateDestination` operationId).
func (*ClientWithResponses) CreateIntegrationTokenWithBodyWithResponse ¶
func (c *ClientWithResponses) CreateIntegrationTokenWithBodyWithResponse(ctx context.Context, integrationId IntegrationId, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateIntegrationTokenResponse, error)
CreateIntegrationTokenWithBodyWithResponse Create an Integration token
The token allows ingestion and Heartbeat and nothing else. The value and the ready Alertmanager snippet that contains it are returned once; a new snippet means a new token.
Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
Corresponds with POST /integrations/{integration_id}/tokens (the `CreateIntegrationToken` operationId).
func (*ClientWithResponses) CreateIntegrationTokenWithResponse ¶
func (c *ClientWithResponses) CreateIntegrationTokenWithResponse(ctx context.Context, integrationId IntegrationId, body CreateIntegrationTokenJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateIntegrationTokenResponse, error)
CreateIntegrationTokenWithResponse Create an Integration token
The token allows ingestion and Heartbeat and nothing else. The value and the ready Alertmanager snippet that contains it are returned once; a new snippet means a new token.
Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
Corresponds with POST /integrations/{integration_id}/tokens (the `CreateIntegrationToken` operationId).
func (*ClientWithResponses) CreateIntegrationWithBodyWithResponse ¶
func (c *ClientWithResponses) CreateIntegrationWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateIntegrationResponse, error)
CreateIntegrationWithBodyWithResponse Create Integration
Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
Corresponds with POST /integrations (the `CreateIntegration` operationId).
func (*ClientWithResponses) CreateIntegrationWithResponse ¶
func (c *ClientWithResponses) CreateIntegrationWithResponse(ctx context.Context, body CreateIntegrationJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateIntegrationResponse, error)
CreateIntegrationWithResponse Create Integration
Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
Corresponds with POST /integrations (the `CreateIntegration` operationId).
func (*ClientWithResponses) CreateLinkRuleWithBodyWithResponse ¶
func (c *ClientWithResponses) CreateLinkRuleWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateLinkRuleResponse, error)
CreateLinkRuleWithBodyWithResponse Create LinkRule
Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
Corresponds with POST /link-rules (the `CreateLinkRule` operationId).
func (*ClientWithResponses) CreateLinkRuleWithResponse ¶
func (c *ClientWithResponses) CreateLinkRuleWithResponse(ctx context.Context, body CreateLinkRuleJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateLinkRuleResponse, error)
CreateLinkRuleWithResponse Create LinkRule
Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
Corresponds with POST /link-rules (the `CreateLinkRule` operationId).
func (*ClientWithResponses) CreateLookupTableWithBodyWithResponse ¶
func (c *ClientWithResponses) CreateLookupTableWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateLookupTableResponse, error)
CreateLookupTableWithBodyWithResponse Create LookupTable
Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
Corresponds with POST /lookup-tables (the `CreateLookupTable` operationId).
func (*ClientWithResponses) CreateLookupTableWithResponse ¶
func (c *ClientWithResponses) CreateLookupTableWithResponse(ctx context.Context, body CreateLookupTableJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateLookupTableResponse, error)
CreateLookupTableWithResponse Create LookupTable
Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
Corresponds with POST /lookup-tables (the `CreateLookupTable` operationId).
func (*ClientWithResponses) CreatePasswordSetupLinkWithResponse ¶
func (c *ClientWithResponses) CreatePasswordSetupLinkWithResponse(ctx context.Context, userId UserId, reqEditors ...RequestEditorFn) (*CreatePasswordSetupLinkResponse, error)
CreatePasswordSetupLinkWithResponse Issue a password setup link
Valid for `auth.password_setup_link_ttl`, single use. Only for an account that signs in with a password (`409` `local_user_only` for an OIDC account; convert it with `convertUserToLocal`).
Returns a wrapper object for the known response body format(s).
Corresponds with POST /users/{user_id}/password-setup-links (the `CreatePasswordSetupLink` operationId).
func (*ClientWithResponses) CreatePersonalAccessTokenWithBodyWithResponse ¶
func (c *ClientWithResponses) CreatePersonalAccessTokenWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreatePersonalAccessTokenResponse, error)
CreatePersonalAccessTokenWithBodyWithResponse Create a Personal access token
Shows the token once. Its Permissions must be a subset of the Permissions the caller holds now (`422` `permission_not_held` on `/permissions/<i>`). Web session only: a token can never mint another token.
Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
Corresponds with POST /me/personal-access-tokens (the `CreatePersonalAccessToken` operationId).
func (*ClientWithResponses) CreatePersonalAccessTokenWithResponse ¶
func (c *ClientWithResponses) CreatePersonalAccessTokenWithResponse(ctx context.Context, body CreatePersonalAccessTokenJSONRequestBody, reqEditors ...RequestEditorFn) (*CreatePersonalAccessTokenResponse, error)
CreatePersonalAccessTokenWithResponse Create a Personal access token
Shows the token once. Its Permissions must be a subset of the Permissions the caller holds now (`422` `permission_not_held` on `/permissions/<i>`). Web session only: a token can never mint another token.
Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
Corresponds with POST /me/personal-access-tokens (the `CreatePersonalAccessToken` operationId).
func (*ClientWithResponses) CreateRouteWithBodyWithResponse ¶
func (c *ClientWithResponses) CreateRouteWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateRouteResponse, error)
CreateRouteWithBodyWithResponse Create a Route
Inserted before the Default route. Fields omitted from `policy` are not defaulted: fetch a profile with `listRouteProfiles` to pre-fill the form. Templates are parsed and dry-run against recent Stored Snapshots; a template that fails is refused with `422` and the error position.
Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
Corresponds with POST /routes (the `CreateRoute` operationId).
func (*ClientWithResponses) CreateRouteWithResponse ¶
func (c *ClientWithResponses) CreateRouteWithResponse(ctx context.Context, body CreateRouteJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateRouteResponse, error)
CreateRouteWithResponse Create a Route
Inserted before the Default route. Fields omitted from `policy` are not defaulted: fetch a profile with `listRouteProfiles` to pre-fill the form. Templates are parsed and dry-run against recent Stored Snapshots; a template that fails is refused with `422` and the error position.
Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
Corresponds with POST /routes (the `CreateRoute` operationId).
func (*ClientWithResponses) CreateServiceAccountTokenWithBodyWithResponse ¶
func (c *ClientWithResponses) CreateServiceAccountTokenWithBodyWithResponse(ctx context.Context, serviceAccountId ServiceAccountId, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateServiceAccountTokenResponse, error)
CreateServiceAccountTokenWithBodyWithResponse Create a Service account token
Shows the token once. Web session only: a token can never mint another token.
Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
Corresponds with POST /service-accounts/{service_account_id}/tokens (the `CreateServiceAccountToken` operationId).
func (*ClientWithResponses) CreateServiceAccountTokenWithResponse ¶
func (c *ClientWithResponses) CreateServiceAccountTokenWithResponse(ctx context.Context, serviceAccountId ServiceAccountId, body CreateServiceAccountTokenJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateServiceAccountTokenResponse, error)
CreateServiceAccountTokenWithResponse Create a Service account token
Shows the token once. Web session only: a token can never mint another token.
Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
Corresponds with POST /service-accounts/{service_account_id}/tokens (the `CreateServiceAccountToken` operationId).
func (*ClientWithResponses) CreateServiceAccountWithBodyWithResponse ¶
func (c *ClientWithResponses) CreateServiceAccountWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateServiceAccountResponse, error)
CreateServiceAccountWithBodyWithResponse Create a Service account
A token may only assign a Role whose Permissions it holds itself (`422` `permission_not_held` at `/role`).
Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
Corresponds with POST /service-accounts (the `CreateServiceAccount` operationId).
func (*ClientWithResponses) CreateServiceAccountWithResponse ¶
func (c *ClientWithResponses) CreateServiceAccountWithResponse(ctx context.Context, body CreateServiceAccountJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateServiceAccountResponse, error)
CreateServiceAccountWithResponse Create a Service account
A token may only assign a Role whose Permissions it holds itself (`422` `permission_not_held` at `/role`).
Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
Corresponds with POST /service-accounts (the `CreateServiceAccount` operationId).
func (*ClientWithResponses) CreateSessionWithBodyWithResponse ¶
func (c *ClientWithResponses) CreateSessionWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateSessionResponse, error)
CreateSessionWithBodyWithResponse Sign in with a local account
Creates a session cookie (`HttpOnly; Secure; SameSite=Lax`) and returns the CSRF token. If the user has TOTP and the request carries neither `totp_code` nor `recovery_code`, the session starts in the state `totp_required` and `POST /sessions/current/totp` completes it. Under a TOTP policy that covers a user without TOTP the state is `totp_enrolment_required`. A wrong login, password or code is `401` (`invalid_credentials`) without saying which one was wrong. Failed attempts slow down per account and per source address (`429` with `Retry-After`). A request a browser marks as cross-site (`Sec-Fetch-Site` set to `cross-site`) is refused with `403` (`csrf_invalid`).
Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
Corresponds with POST /sessions (the `CreateSession` operationId).
func (*ClientWithResponses) CreateSessionWithResponse ¶
func (c *ClientWithResponses) CreateSessionWithResponse(ctx context.Context, body CreateSessionJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateSessionResponse, error)
CreateSessionWithResponse Sign in with a local account
Creates a session cookie (`HttpOnly; Secure; SameSite=Lax`) and returns the CSRF token. If the user has TOTP and the request carries neither `totp_code` nor `recovery_code`, the session starts in the state `totp_required` and `POST /sessions/current/totp` completes it. Under a TOTP policy that covers a user without TOTP the state is `totp_enrolment_required`. A wrong login, password or code is `401` (`invalid_credentials`) without saying which one was wrong. Failed attempts slow down per account and per source address (`429` with `Retry-After`). A request a browser marks as cross-site (`Sec-Fetch-Site` set to `cross-site`) is refused with `403` (`csrf_invalid`).
Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
Corresponds with POST /sessions (the `CreateSession` operationId).
func (*ClientWithResponses) CreateUserWithBodyWithResponse ¶
func (c *ClientWithResponses) CreateUserWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateUserResponse, error)
CreateUserWithBodyWithResponse Create a local user
Returns a single-use password setup link; Muster sends no email. A token may only assign a Role whose Permissions it holds itself (`422` `permission_not_held` at `/role`).
Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
Corresponds with POST /users (the `CreateUser` operationId).
func (*ClientWithResponses) CreateUserWithResponse ¶
func (c *ClientWithResponses) CreateUserWithResponse(ctx context.Context, body CreateUserJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateUserResponse, error)
CreateUserWithResponse Create a local user
Returns a single-use password setup link; Muster sends no email. A token may only assign a Role whose Permissions it holds itself (`422` `permission_not_held` at `/role`).
Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
Corresponds with POST /users (the `CreateUser` operationId).
func (*ClientWithResponses) DeleteConnectionWithResponse ¶
func (c *ClientWithResponses) DeleteConnectionWithResponse(ctx context.Context, connectionId ConnectionId, params *DeleteConnectionParams, reqEditors ...RequestEditorFn) (*DeleteConnectionResponse, error)
DeleteConnectionWithResponse Delete Connection
A Connection used by Destinations cannot be deleted: `409` (`in_use`). Deleted Destinations do not count; deleting the Connection abandons the final edits still pending for them, which end as Not delivered.
Returns a wrapper object for the known response body format(s).
Corresponds with DELETE /connections/{connection_id} (the `DeleteConnection` operationId).
func (*ClientWithResponses) DeleteCurrentSessionWithResponse ¶
func (c *ClientWithResponses) DeleteCurrentSessionWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*DeleteCurrentSessionResponse, error)
DeleteCurrentSessionWithResponse Sign out
Ends the session, in any state.
Returns a wrapper object for the known response body format(s).
Corresponds with DELETE /sessions/current (the `DeleteCurrentSession` operationId).
func (*ClientWithResponses) DeleteDestinationSecretWithResponse ¶
func (c *ClientWithResponses) DeleteDestinationSecretWithResponse(ctx context.Context, destinationId DestinationId, secretName SecretName, params *DeleteDestinationSecretParams, reqEditors ...RequestEditorFn) (*DeleteDestinationSecretResponse, error)
DeleteDestinationSecretWithResponse Delete a Secret of a webhook Destination
`If-Match`, when given, is compared with the ETag of `listDestinationSecrets`.
Returns a wrapper object for the known response body format(s).
Corresponds with DELETE /destinations/{destination_id}/secrets/{secret_name} (the `DeleteDestinationSecret` operationId).
func (*ClientWithResponses) DeleteDestinationWithResponse ¶
func (c *ClientWithResponses) DeleteDestinationWithResponse(ctx context.Context, destinationId DestinationId, params *DeleteDestinationParams, reqEditors ...RequestEditorFn) (*DeleteDestinationResponse, error)
DeleteDestinationWithResponse Delete Destination
Always allowed: the Destination leaves every Route, and open Root messages get one final edit "No longer updated here" and nothing after; then the Destination's secrets are wiped. An outgoing webhook in events mode has no Root message: its queued events are abandoned and end as Not delivered, no final event is sent, and its secrets are wiped at once (in mode `both`, after the final edits of the template mode). It is a soft delete: the Destination is kept for history and no longer counts as using its Connection. There is no `409`; a stale `If-Match` is `412`.
Returns a wrapper object for the known response body format(s).
Corresponds with DELETE /destinations/{destination_id} (the `DeleteDestination` operationId).
func (*ClientWithResponses) DeleteIntegrationWithResponse ¶
func (c *ClientWithResponses) DeleteIntegrationWithResponse(ctx context.Context, integrationId IntegrationId, params *DeleteIntegrationParams, reqEditors ...RequestEditorFn) (*DeleteIntegrationResponse, error)
DeleteIntegrationWithResponse Delete Integration
Soft delete: its tokens stop working at once, its open Alerts are resolved with the reason "Integration {name} deleted", its Internal alerts are resolved, and its open Alert Groups are resolved. The built-in Integration cannot be deleted (`409`, `builtin_immutable`).
Returns a wrapper object for the known response body format(s).
Corresponds with DELETE /integrations/{integration_id} (the `DeleteIntegration` operationId).
func (*ClientWithResponses) DeleteLinkRuleWithResponse ¶
func (c *ClientWithResponses) DeleteLinkRuleWithResponse(ctx context.Context, linkRuleId LinkRuleId, params *DeleteLinkRuleParams, reqEditors ...RequestEditorFn) (*DeleteLinkRuleResponse, error)
DeleteLinkRuleWithResponse Delete LinkRule
The built-in "Explore" rule cannot be deleted (`409`).
Returns a wrapper object for the known response body format(s).
Corresponds with DELETE /link-rules/{link_rule_id} (the `DeleteLinkRule` operationId).
func (*ClientWithResponses) DeleteLookupTableWithResponse ¶
func (c *ClientWithResponses) DeleteLookupTableWithResponse(ctx context.Context, lookupTableId LookupTableId, params *DeleteLookupTableParams, reqEditors ...RequestEditorFn) (*DeleteLookupTableResponse, error)
DeleteLookupTableWithResponse Delete LookupTable
Refused with `409` (`in_use`) while the URL template of a Link rule reads the table by its name, `link_rules` naming the rules.
Returns a wrapper object for the known response body format(s).
Corresponds with DELETE /lookup-tables/{lookup_table_id} (the `DeleteLookupTable` operationId).
func (*ClientWithResponses) DeleteMyAccountLinkWithResponse ¶
func (c *ClientWithResponses) DeleteMyAccountLinkWithResponse(ctx context.Context, accountLinkId AccountLinkId, reqEditors ...RequestEditorFn) (*DeleteMyAccountLinkResponse, error)
DeleteMyAccountLinkWithResponse Unlink an own messenger account
Unlinks one of the caller's own messenger accounts. Web session only: a token gets `403` (`session_required`).
Returns a wrapper object for the known response body format(s).
Corresponds with DELETE /me/account-links/{account_link_id} (the `DeleteMyAccountLink` operationId).
func (*ClientWithResponses) DeleteMySessionsWithResponse ¶
func (c *ClientWithResponses) DeleteMySessionsWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*DeleteMySessionsResponse, error)
DeleteMySessionsWithResponse Sign out everywhere
Ends every session of the user, the current one included. Web session only.
Returns a wrapper object for the known response body format(s).
Corresponds with DELETE /me/sessions (the `DeleteMySessions` operationId).
func (*ClientWithResponses) DeleteRouteWithResponse ¶
func (c *ClientWithResponses) DeleteRouteWithResponse(ctx context.Context, routeId RouteId, params *DeleteRouteParams, reqEditors ...RequestEditorFn) (*DeleteRouteResponse, error)
DeleteRouteWithResponse Delete a Route
Refused with `409` `default-route-immutable` for the Default route and with `409` `route-has-open-alert-groups` (carrying `open_alert_group_count`) while open Alert Groups remain; move them first with `moveOpenAlertGroups`.
Returns a wrapper object for the known response body format(s).
Corresponds with DELETE /routes/{route_id} (the `DeleteRoute` operationId).
func (*ClientWithResponses) DeleteServiceAccountWithResponse ¶
func (c *ClientWithResponses) DeleteServiceAccountWithResponse(ctx context.Context, serviceAccountId ServiceAccountId, params *DeleteServiceAccountParams, reqEditors ...RequestEditorFn) (*DeleteServiceAccountResponse, error)
DeleteServiceAccountWithResponse Delete a Service account
Revokes its tokens.
Returns a wrapper object for the known response body format(s).
Corresponds with DELETE /service-accounts/{service_account_id} (the `DeleteServiceAccount` operationId).
func (*ClientWithResponses) DeleteUserAccountLinkWithResponse ¶
func (c *ClientWithResponses) DeleteUserAccountLinkWithResponse(ctx context.Context, userId UserId, accountLinkId AccountLinkId, reqEditors ...RequestEditorFn) (*DeleteUserAccountLinkResponse, error)
DeleteUserAccountLinkWithResponse Remove a user's Account link
Admins can remove any link but cannot create one for someone else. An Admin's own link is removed from the web session only; with a token the answer is `403` (`session_required`).
Returns a wrapper object for the known response body format(s).
Corresponds with DELETE /users/{user_id}/account-links/{account_link_id} (the `DeleteUserAccountLink` operationId).
func (*ClientWithResponses) DeleteUserWithResponse ¶
func (c *ClientWithResponses) DeleteUserWithResponse(ctx context.Context, userId UserId, params *DeleteUserParams, reqEditors ...RequestEditorFn) (*DeleteUserResponse, error)
DeleteUserWithResponse Delete a user
Deactivates and pseudonymizes: the name becomes `deleted-user-<id>`, the email is erased, sessions end, tokens are revoked and Account links are removed. Every acknowledged Alert Group the user owns becomes firing without an Owner, with an `unacknowledged` Timeline entry by the system and the reason `owner_deleted`. Audit log rows are never changed. The last active Admin cannot be deleted (`409` `last_admin`).
Returns a wrapper object for the known response body format(s).
Corresponds with DELETE /users/{user_id} (the `DeleteUser` operationId).
func (*ClientWithResponses) DisableServiceAccountWithResponse ¶
func (c *ClientWithResponses) DisableServiceAccountWithResponse(ctx context.Context, serviceAccountId ServiceAccountId, reqEditors ...RequestEditorFn) (*DisableServiceAccountResponse, error)
DisableServiceAccountWithResponse Disable a Service account
Its tokens stop working until the account is enabled again.
Returns a wrapper object for the known response body format(s).
Corresponds with POST /service-accounts/{service_account_id}/disable (the `DisableServiceAccount` operationId).
func (*ClientWithResponses) DisableUserWithResponse ¶
func (c *ClientWithResponses) DisableUserWithResponse(ctx context.Context, userId UserId, reqEditors ...RequestEditorFn) (*DisableUserResponse, error)
DisableUserWithResponse Disable a user
Ends the user's sessions; tokens stop working until the user is enabled again. Every acknowledged Alert Group the user owns becomes firing without an Owner, with an `unacknowledged` Timeline entry by the system and the reason `owner_disabled`; enabling the user again gives no acknowledgement back. The last active Admin cannot be disabled (`409` `last_admin`).
Returns a wrapper object for the known response body format(s).
Corresponds with POST /users/{user_id}/disable (the `DisableUser` operationId).
func (*ClientWithResponses) DismissRouteSuggestionWithResponse ¶
func (c *ClientWithResponses) DismissRouteSuggestionWithResponse(ctx context.Context, suggestionId SuggestionId, reqEditors ...RequestEditorFn) (*DismissRouteSuggestionResponse, error)
DismissRouteSuggestionWithResponse Dismiss a Route suggestion
Remembered for the calling user only, so Service account tokens get `403` (`service_account_not_allowed`). `409` (`suggestion_obsolete`) when it no longer applies.
Returns a wrapper object for the known response body format(s).
Corresponds with POST /route-suggestions/{suggestion_id}/dismiss (the `DismissRouteSuggestion` operationId).
func (*ClientWithResponses) EnableServiceAccountWithResponse ¶
func (c *ClientWithResponses) EnableServiceAccountWithResponse(ctx context.Context, serviceAccountId ServiceAccountId, reqEditors ...RequestEditorFn) (*EnableServiceAccountResponse, error)
EnableServiceAccountWithResponse Enable a Service account
Makes a disabled Service account usable again; its tokens work again.
Returns a wrapper object for the known response body format(s).
Corresponds with POST /service-accounts/{service_account_id}/enable (the `EnableServiceAccount` operationId).
func (*ClientWithResponses) EnableUserWithResponse ¶
func (c *ClientWithResponses) EnableUserWithResponse(ctx context.Context, userId UserId, reqEditors ...RequestEditorFn) (*EnableUserResponse, error)
EnableUserWithResponse Enable a user
Returns a wrapper object for the known response body format(s).
Corresponds with POST /users/{user_id}/enable (the `EnableUser` operationId).
func (*ClientWithResponses) GenerateSigningSecretWithResponse ¶
func (c *ClientWithResponses) GenerateSigningSecretWithResponse(ctx context.Context, destinationId DestinationId, reqEditors ...RequestEditorFn) (*GenerateSigningSecretResponse, error)
GenerateSigningSecretWithResponse Regenerate the Signing secret
The first Signing secret is generated when the Destination is created. This returns a new one, once; requests then carry signatures with both the new and the previous secret until `retirePreviousSigningSecret`.
Returns a wrapper object for the known response body format(s).
Corresponds with POST /destinations/{destination_id}/signing-secret (the `GenerateSigningSecret` operationId).
func (*ClientWithResponses) GetAlertGroupCountsWithResponse ¶
func (c *ClientWithResponses) GetAlertGroupCountsWithResponse(ctx context.Context, params *GetAlertGroupCountsParams, reqEditors ...RequestEditorFn) (*GetAlertGroupCountsResponse, error)
GetAlertGroupCountsWithResponse Count Alert Groups per status
Counts per status tab for the same filters as `listAlertGroups`, `status` excluded.
Returns a wrapper object for the known response body format(s).
Corresponds with GET /alert-group-counts (the `GetAlertGroupCounts` operationId).
func (*ClientWithResponses) GetAlertGroupStatisticsWithResponse ¶
func (c *ClientWithResponses) GetAlertGroupStatisticsWithResponse(ctx context.Context, params *GetAlertGroupStatisticsParams, reqEditors ...RequestEditorFn) (*GetAlertGroupStatisticsResponse, error)
GetAlertGroupStatisticsWithResponse Read Alert Group statistics
Number of Alert Groups, time to acknowledge and time to resolve (median and 95th percentile), as totals and per day of start, from the summary rows, one item per Route or per Integration as `group_by` says. Narrow it with `route` or `integration` ids (the one that matches `group_by`); without them every Route or Integration is returned. An Alert Group with Alerts from several Integrations counts for each.
Returns a wrapper object for the known response body format(s).
Corresponds with GET /alert-group-statistics (the `GetAlertGroupStatistics` operationId).
func (*ClientWithResponses) GetAlertGroupTimelineWithResponse ¶
func (c *ClientWithResponses) GetAlertGroupTimelineWithResponse(ctx context.Context, alertGroupId AlertGroupId, params *GetAlertGroupTimelineParams, reqEditors ...RequestEditorFn) (*GetAlertGroupTimelineResponse, error)
GetAlertGroupTimelineWithResponse Read the Timeline of an Alert Group
Entries of all kinds, with delivery events merged in by time as the kind `delivery`. Lifecycle events carry `event`, `loudness` and `mentions`. Notes are kept as long as the summary row, so after the details were removed by retention the Timeline still returns them.
Returns a wrapper object for the known response body format(s).
Corresponds with GET /alert-groups/{alert_group_id}/timeline (the `GetAlertGroupTimeline` operationId).
func (*ClientWithResponses) GetAlertGroupWithResponse ¶
func (c *ClientWithResponses) GetAlertGroupWithResponse(ctx context.Context, alertGroupId AlertGroupId, reqEditors ...RequestEditorFn) (*GetAlertGroupResponse, error)
GetAlertGroupWithResponse Read an Alert Group
An Alert Group whose details were removed by retention opens as its summary with the notice `details_removed`; its Notes stay until the summary row is removed.
Returns a wrapper object for the known response body format(s).
Corresponds with GET /alert-groups/{alert_group_id} (the `GetAlertGroup` operationId).
func (*ClientWithResponses) GetConnectionWithResponse ¶
func (c *ClientWithResponses) GetConnectionWithResponse(ctx context.Context, connectionId ConnectionId, reqEditors ...RequestEditorFn) (*GetConnectionResponse, error)
GetConnectionWithResponse Read Connection
Returns a wrapper object for the known response body format(s).
Corresponds with GET /connections/{connection_id} (the `GetConnection` operationId).
func (*ClientWithResponses) GetCurrentSessionWithResponse ¶
func (c *ClientWithResponses) GetCurrentSessionWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetCurrentSessionResponse, error)
GetCurrentSessionWithResponse Read the current session
Returns the session in any state, including the CSRF token the SPA sends on mutating requests.
Returns a wrapper object for the known response body format(s).
Corresponds with GET /sessions/current (the `GetCurrentSession` operationId).
func (*ClientWithResponses) GetDestinationWithResponse ¶
func (c *ClientWithResponses) GetDestinationWithResponse(ctx context.Context, destinationId DestinationId, reqEditors ...RequestEditorFn) (*GetDestinationResponse, error)
GetDestinationWithResponse Read Destination
Returns a wrapper object for the known response body format(s).
Corresponds with GET /destinations/{destination_id} (the `GetDestination` operationId).
func (*ClientWithResponses) GetIntegrationWithResponse ¶
func (c *ClientWithResponses) GetIntegrationWithResponse(ctx context.Context, integrationId IntegrationId, reqEditors ...RequestEditorFn) (*GetIntegrationResponse, error)
GetIntegrationWithResponse Read Integration
Returns a wrapper object for the known response body format(s).
Corresponds with GET /integrations/{integration_id} (the `GetIntegration` operationId).
func (*ClientWithResponses) GetKeyringWithResponse ¶
func (c *ClientWithResponses) GetKeyringWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetKeyringResponse, error)
GetKeyringWithResponse Read the Keyring status
Every key id in the environment, which is active, which live replicas hold which, and whether anything still depends on an older key. Activation is the CLI command `muster secrets rotate-key --activate <id> --actor <name>`.
Returns a wrapper object for the known response body format(s).
Corresponds with GET /organization/keyring (the `GetKeyring` operationId).
func (*ClientWithResponses) GetLinkRuleWithResponse ¶
func (c *ClientWithResponses) GetLinkRuleWithResponse(ctx context.Context, linkRuleId LinkRuleId, reqEditors ...RequestEditorFn) (*GetLinkRuleResponse, error)
GetLinkRuleWithResponse Read LinkRule
Returns a wrapper object for the known response body format(s).
Corresponds with GET /link-rules/{link_rule_id} (the `GetLinkRule` operationId).
func (*ClientWithResponses) GetLookupTableWithResponse ¶
func (c *ClientWithResponses) GetLookupTableWithResponse(ctx context.Context, lookupTableId LookupTableId, reqEditors ...RequestEditorFn) (*GetLookupTableResponse, error)
GetLookupTableWithResponse Read LookupTable
Returns a wrapper object for the known response body format(s).
Corresponds with GET /lookup-tables/{lookup_table_id} (the `GetLookupTable` operationId).
func (*ClientWithResponses) GetMeWithResponse ¶
func (c *ClientWithResponses) GetMeWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetMeResponse, error)
GetMeWithResponse Read own profile
The caller and the effective Permissions, narrowed by the token if one is used. Service account tokens get `403` (`service_account_not_allowed`).
Returns a wrapper object for the known response body format(s).
Corresponds with GET /me (the `GetMe` operationId).
func (*ClientWithResponses) GetMyTotpWithResponse ¶
func (c *ClientWithResponses) GetMyTotpWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetMyTotpResponse, error)
GetMyTotpWithResponse Read own TOTP status
Whether TOTP is enrolled, a first code is awaited, and how many recovery codes remain. Service account tokens get `403` (`service_account_not_allowed`).
Returns a wrapper object for the known response body format(s).
Corresponds with GET /me/totp (the `GetMyTotp` operationId).
func (*ClientWithResponses) GetOidcSettingsWithResponse ¶
func (c *ClientWithResponses) GetOidcSettingsWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetOidcSettingsResponse, error)
GetOidcSettingsWithResponse Read OIDC settings
The client secret is never returned; `client_secret_status` shows whether it is set and when it changed.
Returns a wrapper object for the known response body format(s).
Corresponds with GET /oidc-settings (the `GetOidcSettings` operationId).
func (*ClientWithResponses) GetOpenApiSpecWithResponse ¶
func (c *ClientWithResponses) GetOpenApiSpecWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetOpenApiSpecResponse, error)
GetOpenApiSpecWithResponse Read this specification
The specification the binary was built from, as checked in at `api/openapi.yaml`.
Returns a wrapper object for the known response body format(s).
Corresponds with GET /openapi.yaml (the `GetOpenApiSpec` operationId).
func (*ClientWithResponses) GetOrganizationWithResponse ¶
func (c *ClientWithResponses) GetOrganizationWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetOrganizationResponse, error)
GetOrganizationWithResponse Read the Organization
Readable by every signed-in identity (the basic read of the Organization needs no Permission). Secrets (the outgoing heartbeat URL, proxy passwords) show only `set` and `updated_at`.
Returns a wrapper object for the known response body format(s).
Corresponds with GET /organization (the `GetOrganization` operationId).
func (*ClientWithResponses) GetOutboundPolicyWithResponse ¶
func (c *ClientWithResponses) GetOutboundPolicyWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetOutboundPolicyResponse, error)
GetOutboundPolicyWithResponse Read the outbound address policy
The outbound address policy with the rules that always apply. Needs `organization:read`.
Returns a wrapper object for the known response body format(s).
Corresponds with GET /organization/outbound-policy (the `GetOutboundPolicy` operationId).
func (*ClientWithResponses) GetRequestRecordWithResponse ¶
func (c *ClientWithResponses) GetRequestRecordWithResponse(ctx context.Context, requestRecordId RequestRecordId, reqEditors ...RequestEditorFn) (*GetRequestRecordResponse, error)
GetRequestRecordWithResponse Read a record of the Request log
One record with its headers and bodies, masked. The caller needs the Permission of the record's owner, `connections:read` for a Connection's record — even one listed through a messenger Destination with `destinations:read` — and `destinations:read` for an outgoing webhook's (`403` otherwise). A record past `request_log.max_age` or past the newest `request_log.max_records` of its owner, or whose owner is deleted, is `404`, as it is in no list. Headers, bodies and the error are untrusted text.
Returns a wrapper object for the known response body format(s).
Corresponds with GET /request-log/{request_record_id} (the `GetRequestRecord` operationId).
func (*ClientWithResponses) GetRouteWithResponse ¶
func (c *ClientWithResponses) GetRouteWithResponse(ctx context.Context, routeId RouteId, reqEditors ...RequestEditorFn) (*GetRouteResponse, error)
GetRouteWithResponse Read a Route
Returns a wrapper object for the known response body format(s).
Corresponds with GET /routes/{route_id} (the `GetRoute` operationId).
func (*ClientWithResponses) GetServiceAccountWithResponse ¶
func (c *ClientWithResponses) GetServiceAccountWithResponse(ctx context.Context, serviceAccountId ServiceAccountId, reqEditors ...RequestEditorFn) (*GetServiceAccountResponse, error)
GetServiceAccountWithResponse Read a Service account
Returns a wrapper object for the known response body format(s).
Corresponds with GET /service-accounts/{service_account_id} (the `GetServiceAccount` operationId).
func (*ClientWithResponses) GetSignInOptionsWithResponse ¶
func (c *ClientWithResponses) GetSignInOptionsWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetSignInOptionsResponse, error)
GetSignInOptionsWithResponse Read sign-in options
Whether the sign-in page shows the OIDC button next to the local form. Local sign-in is always available; no setting turns it off. Carries no version or other detail about the installation.
Returns a wrapper object for the known response body format(s).
Corresponds with GET /sign-in-options (the `GetSignInOptions` operationId).
func (*ClientWithResponses) GetSigningSecretWithResponse ¶
func (c *ClientWithResponses) GetSigningSecretWithResponse(ctx context.Context, destinationId DestinationId, reqEditors ...RequestEditorFn) (*GetSigningSecretResponse, error)
GetSigningSecretWithResponse Read the Signing secret status
`409` (`not_webhook_destination`) for a Destination that is not an outgoing webhook.
Returns a wrapper object for the known response body format(s).
Corresponds with GET /destinations/{destination_id}/signing-secret (the `GetSigningSecret` operationId).
func (*ClientWithResponses) GetStoredSnapshotWithResponse ¶
func (c *ClientWithResponses) GetStoredSnapshotWithResponse(ctx context.Context, storedSnapshotId StoredSnapshotId, reqEditors ...RequestEditorFn) (*GetStoredSnapshotResponse, error)
GetStoredSnapshotWithResponse Read a Stored Snapshot as received
Returns a wrapper object for the known response body format(s).
Corresponds with GET /stored-snapshots/{stored_snapshot_id} (the `GetStoredSnapshot` operationId).
func (*ClientWithResponses) GetSystemStatusWithResponse ¶
func (c *ClientWithResponses) GetSystemStatusWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetSystemStatusResponse, error)
GetSystemStatusWithResponse Read the System status
Read-only: replicas and the Leader with their key ids, the recovery state, delivery queues, Broken Destinations, Integrations with Heartbeat lost or truncated Snapshots, template errors, active Storms and the last outgoing heartbeat.
Returns a wrapper object for the known response body format(s).
Corresponds with GET /system-status (the `GetSystemStatus` operationId).
func (*ClientWithResponses) GetUserWithResponse ¶
func (c *ClientWithResponses) GetUserWithResponse(ctx context.Context, userId UserId, reqEditors ...RequestEditorFn) (*GetUserResponse, error)
GetUserWithResponse Read a user
Returns a wrapper object for the known response body format(s).
Corresponds with GET /users/{user_id} (the `GetUser` operationId).
func (*ClientWithResponses) HeartbeatGetWithPathTokenWithResponse ¶
func (c *ClientWithResponses) HeartbeatGetWithPathTokenWithResponse(ctx context.Context, ingestToken IngestTokenInPath, reqEditors ...RequestEditorFn) (*HeartbeatGetWithPathTokenResponse, error)
HeartbeatGetWithPathTokenWithResponse Heartbeat signal (GET, token in the path)
Returns a wrapper object for the known response body format(s).
Corresponds with GET /heartbeat/{ingest_token} (the `HeartbeatGetWithPathToken` operationId).
func (*ClientWithResponses) HeartbeatGetWithResponse ¶
func (c *ClientWithResponses) HeartbeatGetWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*HeartbeatGetResponse, error)
HeartbeatGetWithResponse Heartbeat signal (GET)
Any request carrying one of the Integration's tokens counts as a signal; the body is ignored. The first signal moves the Heartbeat from waiting to live. While the Integration's Heartbeat is off, the request is answered `204` and nothing is recorded.
Returns a wrapper object for the known response body format(s).
Corresponds with GET /heartbeat (the `HeartbeatGet` operationId).
func (*ClientWithResponses) HeartbeatPostWithPathTokenWithResponse ¶
func (c *ClientWithResponses) HeartbeatPostWithPathTokenWithResponse(ctx context.Context, ingestToken IngestTokenInPath, reqEditors ...RequestEditorFn) (*HeartbeatPostWithPathTokenResponse, error)
HeartbeatPostWithPathTokenWithResponse Heartbeat signal (POST, token in the path)
Returns a wrapper object for the known response body format(s).
Corresponds with POST /heartbeat/{ingest_token} (the `HeartbeatPostWithPathToken` operationId).
func (*ClientWithResponses) HeartbeatPostWithResponse ¶
func (c *ClientWithResponses) HeartbeatPostWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*HeartbeatPostResponse, error)
HeartbeatPostWithResponse Heartbeat signal (POST)
Any request carrying one of the Integration's tokens counts as a signal; the body is ignored. The first signal moves the Heartbeat from waiting to live. While the Integration's Heartbeat is off, the request is answered `204` and nothing is recorded.
Returns a wrapper object for the known response body format(s).
Corresponds with POST /heartbeat (the `HeartbeatPost` operationId).
func (*ClientWithResponses) IngestSnapshotWithBodyWithResponse ¶
func (c *ClientWithResponses) IngestSnapshotWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*IngestSnapshotResponse, error)
IngestSnapshotWithBodyWithResponse Receive an Alertmanager webhook
Checks the token, then the body size, stores the body as a Stored Snapshot exactly as received and answers `202` after the write commits, without waiting for processing. It never answers `400`: a body that is not JSON, or does not look like an Alertmanager payload, is stored and fails later as a processing error (log event, `muster_ingest_failed_snapshots_total`, Stored Snapshot state `failed`), because Alertmanager does not retry a `4xx` and the notification would be lost. Not rate-limited. Counted in `muster_ingest_requests_total` with the outcome `accepted`, `unauthorized` or `too_large`. The only `5xx` is a failed write, which Alertmanager retries. Ingestion is excluded from request validation by the spec: the handler reads the raw body and the generated types are not used for it.
Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
Corresponds with POST /ingest (the `IngestSnapshot` operationId).
func (*ClientWithResponses) IngestSnapshotWithPathTokenWithBodyWithResponse ¶
func (c *ClientWithResponses) IngestSnapshotWithPathTokenWithBodyWithResponse(ctx context.Context, ingestToken IngestTokenInPath, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*IngestSnapshotWithPathTokenResponse, error)
IngestSnapshotWithPathTokenWithBodyWithResponse Receive an Alertmanager webhook (token in the path)
For senders that cannot set a header. Identical to `ingestSnapshot`. Logs record the route pattern, never the path.
Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
Corresponds with POST /ingest/{ingest_token} (the `IngestSnapshotWithPathToken` operationId).
func (*ClientWithResponses) ListAlertGroupAlertsWithResponse ¶
func (c *ClientWithResponses) ListAlertGroupAlertsWithResponse(ctx context.Context, alertGroupId AlertGroupId, params *ListAlertGroupAlertsParams, reqEditors ...RequestEditorFn) (*ListAlertGroupAlertsResponse, error)
ListAlertGroupAlertsWithResponse List the Alerts of an Alert Group
Returns a wrapper object for the known response body format(s).
Corresponds with GET /alert-groups/{alert_group_id}/alerts (the `ListAlertGroupAlerts` operationId).
func (*ClientWithResponses) ListAlertGroupDeliveriesWithResponse ¶
func (c *ClientWithResponses) ListAlertGroupDeliveriesWithResponse(ctx context.Context, alertGroupId AlertGroupId, reqEditors ...RequestEditorFn) (*ListAlertGroupDeliveriesResponse, error)
ListAlertGroupDeliveriesWithResponse Read delivery state per Destination
Returns a wrapper object for the known response body format(s).
Corresponds with GET /alert-groups/{alert_group_id}/deliveries (the `ListAlertGroupDeliveries` operationId).
func (*ClientWithResponses) ListAlertGroupNotesWithResponse ¶
func (c *ClientWithResponses) ListAlertGroupNotesWithResponse(ctx context.Context, alertGroupId AlertGroupId, params *ListAlertGroupNotesParams, reqEditors ...RequestEditorFn) (*ListAlertGroupNotesResponse, error)
ListAlertGroupNotesWithResponse List Notes
Notes are kept as long as the Alert Group's summary row (`retention.alert_group_summaries`), also after its Alerts and Timeline were removed by retention, and are deleted with the summary row.
Returns a wrapper object for the known response body format(s).
Corresponds with GET /alert-groups/{alert_group_id}/notes (the `ListAlertGroupNotes` operationId).
func (*ClientWithResponses) ListAlertGroupsWithResponse ¶
func (c *ClientWithResponses) ListAlertGroupsWithResponse(ctx context.Context, params *ListAlertGroupsParams, reqEditors ...RequestEditorFn) (*ListAlertGroupsResponse, error)
ListAlertGroupsWithResponse List Alert Groups
The main working list. Without `status` it returns open Alert Groups (firing, acknowledged, snoozed). Without `from` and `to` it covers the last `alert_group.list_range` (7 days) and selects Alert Groups whose lifetime overlaps the range, so one that has been firing for weeks is always included. Search matches `#N` and text in the title or `summary`. Changes arrive as `alert-group` and `alert-groups` hints.
Returns a wrapper object for the known response body format(s).
Corresponds with GET /alert-groups (the `ListAlertGroups` operationId).
func (*ClientWithResponses) ListAlertmanagerRoutesWithResponse ¶
func (c *ClientWithResponses) ListAlertmanagerRoutesWithResponse(ctx context.Context, integrationId IntegrationId, reqEditors ...RequestEditorFn) (*ListAlertmanagerRoutesResponse, error)
ListAlertmanagerRoutesWithResponse List learned Alertmanager routes
Routes taken from the `groupKey` of Snapshots, with the learned repeat interval and the resulting time to resolve by absence.
Returns a wrapper object for the known response body format(s).
Corresponds with GET /integrations/{integration_id}/alertmanager-routes (the `ListAlertmanagerRoutes` operationId).
func (*ClientWithResponses) ListAuditLogWithResponse ¶
func (c *ClientWithResponses) ListAuditLogWithResponse(ctx context.Context, params *ListAuditLogParams, reqEditors ...RequestEditorFn) (*ListAuditLogResponse, error)
ListAuditLogWithResponse List Audit log entries
Newest first. The log is append-only; configuration changes carry a before/after diff in which Secrets only show that they changed.
Returns a wrapper object for the known response body format(s).
Corresponds with GET /audit-log (the `ListAuditLog` operationId).
func (*ClientWithResponses) ListConnectionChannelsWithResponse ¶
func (c *ClientWithResponses) ListConnectionChannelsWithResponse(ctx context.Context, connectionId ConnectionId, params *ListConnectionChannelsParams, reqEditors ...RequestEditorFn) (*ListConnectionChannelsResponse, error)
ListConnectionChannelsWithResponse List channels visible to the bot
The channels of a Connection's bot for the channel picker of the Destination form. A Mattermost Connection answers `MattermostChannelList`: the bot's teams, `team_id` alone when given, and its channels in each. A Slack Connection answers `SlackChannelList`: the public and private channels the bot is a member of and that are not archived, read with `conversations.list` (`types=public_channel,private_channel`, `exclude_archived=true`, `limit=200`) page by page, at most 5 pages, `truncated` when more were left; it ignores `team_id`. A Telegram or Bridge Connection answers `409`: the Admin enters the channel. Requires `connections:write` because it calls out with the bot token. Runs on the interactive path: when no limiter token is free within `delivery.interactive_budget`, or Slack answers a page with `429`, the answer is `503` with `Retry-After`, Slack's own when it sent one, and nothing more is read.
Returns a wrapper object for the known response body format(s).
Corresponds with GET /connections/{connection_id}/channels (the `ListConnectionChannels` operationId).
func (*ClientWithResponses) ListConnectionsWithResponse ¶
func (c *ClientWithResponses) ListConnectionsWithResponse(ctx context.Context, params *ListConnectionsParams, reqEditors ...RequestEditorFn) (*ListConnectionsResponse, error)
ListConnectionsWithResponse List connections
Returns a wrapper object for the known response body format(s).
Corresponds with GET /connections (the `ListConnections` operationId).
func (*ClientWithResponses) ListDestinationSecretsWithResponse ¶
func (c *ClientWithResponses) ListDestinationSecretsWithResponse(ctx context.Context, destinationId DestinationId, reqEditors ...RequestEditorFn) (*ListDestinationSecretsResponse, error)
ListDestinationSecretsWithResponse List the Secrets of a webhook Destination
Names with `set` and the time of the last change. Values are never returned. `409` (`not_webhook_destination`) for a Destination that is not an outgoing webhook.
Returns a wrapper object for the known response body format(s).
Corresponds with GET /destinations/{destination_id}/secrets (the `ListDestinationSecrets` operationId).
func (*ClientWithResponses) ListDestinationsWithResponse ¶
func (c *ClientWithResponses) ListDestinationsWithResponse(ctx context.Context, params *ListDestinationsParams, reqEditors ...RequestEditorFn) (*ListDestinationsResponse, error)
ListDestinationsWithResponse List destinations
All types, with health. Outgoing webhook URL and header templates are shown with Secret references only.
Returns a wrapper object for the known response body format(s).
Corresponds with GET /destinations (the `ListDestinations` operationId).
func (*ClientWithResponses) ListIntegrationAlertsWithResponse ¶
func (c *ClientWithResponses) ListIntegrationAlertsWithResponse(ctx context.Context, integrationId IntegrationId, params *ListIntegrationAlertsParams, reqEditors ...RequestEditorFn) (*ListIntegrationAlertsResponse, error)
ListIntegrationAlertsWithResponse List the Alerts view of an Integration
The Alerts Muster currently tracks for the Integration. Resolved Alerts stay for `retention.alert_details`. Label filters follow the scheme of `label` on `listAlertGroups`.
Returns a wrapper object for the known response body format(s).
Corresponds with GET /integrations/{integration_id}/alerts (the `ListIntegrationAlerts` operationId).
func (*ClientWithResponses) ListIntegrationTokensWithResponse ¶
func (c *ClientWithResponses) ListIntegrationTokensWithResponse(ctx context.Context, integrationId IntegrationId, reqEditors ...RequestEditorFn) (*ListIntegrationTokensResponse, error)
ListIntegrationTokensWithResponse List Integration tokens
Values are never returned.
Returns a wrapper object for the known response body format(s).
Corresponds with GET /integrations/{integration_id}/tokens (the `ListIntegrationTokens` operationId).
func (*ClientWithResponses) ListIntegrationsWithResponse ¶
func (c *ClientWithResponses) ListIntegrationsWithResponse(ctx context.Context, params *ListIntegrationsParams, reqEditors ...RequestEditorFn) (*ListIntegrationsResponse, error)
ListIntegrationsWithResponse List integrations
Includes the built-in "Muster" Integration, marked `builtin`.
Returns a wrapper object for the known response body format(s).
Corresponds with GET /integrations (the `ListIntegrations` operationId).
func (*ClientWithResponses) ListLinkRulesWithResponse ¶
func (c *ClientWithResponses) ListLinkRulesWithResponse(ctx context.Context, params *ListLinkRulesParams, reqEditors ...RequestEditorFn) (*ListLinkRulesResponse, error)
ListLinkRulesWithResponse List linkrules
Returns a wrapper object for the known response body format(s).
Corresponds with GET /link-rules (the `ListLinkRules` operationId).
func (*ClientWithResponses) ListLinkableConnectionsWithResponse ¶
func (c *ClientWithResponses) ListLinkableConnectionsWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*ListLinkableConnectionsResponse, error)
ListLinkableConnectionsWithResponse List the Connections an account can be linked through
The profile's own short list of the Connections that are not deleted, for picking one when linking a messenger account. It needs no Permission, independently of `connections:read`, and shows only the id, the name and the messenger of each Connection, and for a Bridge Connection how an account can be linked through it — `link_methods` and `handle_kind`, from the Connection's last `info`. Service account tokens get `403` (`service_account_not_allowed`).
Returns a wrapper object for the known response body format(s).
Corresponds with GET /me/account-links/connections (the `ListLinkableConnections` operationId).
func (*ClientWithResponses) ListLookupTablesWithResponse ¶
func (c *ClientWithResponses) ListLookupTablesWithResponse(ctx context.Context, params *ListLookupTablesParams, reqEditors ...RequestEditorFn) (*ListLookupTablesResponse, error)
ListLookupTablesWithResponse List lookuptables
Returns a wrapper object for the known response body format(s).
Corresponds with GET /lookup-tables (the `ListLookupTables` operationId).
func (*ClientWithResponses) ListMyAccountLinksWithResponse ¶
func (c *ClientWithResponses) ListMyAccountLinksWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*ListMyAccountLinksResponse, error)
ListMyAccountLinksWithResponse List own Account links
Service account tokens get `403` (`service_account_not_allowed`).
Returns a wrapper object for the known response body format(s).
Corresponds with GET /me/account-links (the `ListMyAccountLinks` operationId).
func (*ClientWithResponses) ListMySessionsWithResponse ¶
func (c *ClientWithResponses) ListMySessionsWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*ListMySessionsResponse, error)
ListMySessionsWithResponse List own sessions
Sessions of the user, the current one marked.
Returns a wrapper object for the known response body format(s).
Corresponds with GET /me/sessions (the `ListMySessions` operationId).
func (*ClientWithResponses) ListPersonalAccessTokensWithResponse ¶
func (c *ClientWithResponses) ListPersonalAccessTokensWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*ListPersonalAccessTokensResponse, error)
ListPersonalAccessTokensWithResponse List own Personal access tokens
Values are never returned. Each token shows when and from which address it was last used. Service account tokens get `403` (`service_account_not_allowed`).
Returns a wrapper object for the known response body format(s).
Corresponds with GET /me/personal-access-tokens (the `ListPersonalAccessTokens` operationId).
func (*ClientWithResponses) ListRelatedAlertGroupsWithResponse ¶
func (c *ClientWithResponses) ListRelatedAlertGroupsWithResponse(ctx context.Context, alertGroupId AlertGroupId, params *ListRelatedAlertGroupsParams, reqEditors ...RequestEditorFn) (*ListRelatedAlertGroupsResponse, error)
ListRelatedAlertGroupsWithResponse List previous Alert Groups with the same key
Alert Groups of the same Route with the same Group key values, newest first.
Returns a wrapper object for the known response body format(s).
Corresponds with GET /alert-groups/{alert_group_id}/related (the `ListRelatedAlertGroups` operationId).
func (*ClientWithResponses) ListRequestLogWithResponse ¶
func (c *ClientWithResponses) ListRequestLogWithResponse(ctx context.Context, params *ListRequestLogParams, reqEditors ...RequestEditorFn) (*ListRequestLogResponse, error)
ListRequestLogWithResponse List the Request log of a Connection, a Destination or a check run
The records of exactly one owner, or of one check run, newest first: `connection` lists every record of a Connection, `destination` every record of an outgoing webhook Destination or, for a messenger Destination, the records of its Connection that name it; `run` alone lists the records of that check run whose owner is a Connection or nobody — the checks before saving of new Connections — and beside an owner it narrows that owner's list. Neither an owner nor a run, or both owners, answer `422` with the code `one_of_required`. The caller needs `connections:read` to name a Connection or a run alone and `destinations:read` to name a Destination (`403` otherwise); an unknown or deleted owner is `404`. Only records newer than `request_log.max_age` and among the newest `request_log.max_records` of their owner are listed — a messenger Destination's within its Connection's — so a list never shows more than that bound. Each record is one attempt of a request: its URL as errors show it, its status, latency and path, without headers or bodies, which `getRequestRecord` reads.
Returns a wrapper object for the known response body format(s).
Corresponds with GET /request-log (the `ListRequestLog` operationId).
func (*ClientWithResponses) ListRolesWithResponse ¶
func (c *ClientWithResponses) ListRolesWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*ListRolesResponse, error)
ListRolesWithResponse List Roles with their Permissions
Returns a wrapper object for the known response body format(s).
Corresponds with GET /roles (the `ListRoles` operationId).
func (*ClientWithResponses) ListRouteProfilesWithResponse ¶
func (c *ClientWithResponses) ListRouteProfilesWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*ListRouteProfilesResponse, error)
ListRouteProfilesWithResponse List Route profiles
The two starting sets of Route settings, On-call and Informational, read from the built-in defaults. They only pre-fill the create form; they cannot be edited or stored.
Returns a wrapper object for the known response body format(s).
Corresponds with GET /route-profiles (the `ListRouteProfiles` operationId).
func (*ClientWithResponses) ListRouteSuggestionsWithResponse ¶
func (c *ClientWithResponses) ListRouteSuggestionsWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*ListRouteSuggestionsResponse, error)
ListRouteSuggestionsWithResponse List Route suggestions
A Route for `MusterHeartbeatLost` when an Integration has a Heartbeat and no Route other than the Default route matches it; from the first Destination on, a Route for `alertname=~"Muster.*"`. Dismissals are remembered per user.
Returns a wrapper object for the known response body format(s).
Corresponds with GET /route-suggestions (the `ListRouteSuggestions` operationId).
func (*ClientWithResponses) ListRoutesWithResponse ¶
func (c *ClientWithResponses) ListRoutesWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*ListRoutesResponse, error)
ListRoutesWithResponse List Routes in evaluation order
The first Route whose Matchers all match takes an Alert. The Default route is always last. The ETag covers the order and is what `reorderRoutes` expects in `If-Match`.
Returns a wrapper object for the known response body format(s).
Corresponds with GET /routes (the `ListRoutes` operationId).
func (*ClientWithResponses) ListServiceAccountTokensWithResponse ¶
func (c *ClientWithResponses) ListServiceAccountTokensWithResponse(ctx context.Context, serviceAccountId ServiceAccountId, reqEditors ...RequestEditorFn) (*ListServiceAccountTokensResponse, error)
ListServiceAccountTokensWithResponse List tokens of a Service account
Returns a wrapper object for the known response body format(s).
Corresponds with GET /service-accounts/{service_account_id}/tokens (the `ListServiceAccountTokens` operationId).
func (*ClientWithResponses) ListServiceAccountsWithResponse ¶
func (c *ClientWithResponses) ListServiceAccountsWithResponse(ctx context.Context, params *ListServiceAccountsParams, reqEditors ...RequestEditorFn) (*ListServiceAccountsResponse, error)
ListServiceAccountsWithResponse List Service accounts
Returns a wrapper object for the known response body format(s).
Corresponds with GET /service-accounts (the `ListServiceAccounts` operationId).
func (*ClientWithResponses) ListSeverityValuesWithResponse ¶
func (c *ClientWithResponses) ListSeverityValuesWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*ListSeverityValuesResponse, error)
ListSeverityValuesWithResponse List severity values seen
Values of the severity label seen in the last `organization.severity_values_window`, with counts, the most frequent first and at most 500 values; unmapped values count as warning.
Returns a wrapper object for the known response body format(s).
Corresponds with GET /organization/severity-values (the `ListSeverityValues` operationId).
func (*ClientWithResponses) ListSnoozePresetsWithResponse ¶
func (c *ClientWithResponses) ListSnoozePresetsWithResponse(ctx context.Context, params *ListSnoozePresetsParams, reqEditors ...RequestEditorFn) (*ListSnoozePresetsResponse, error)
ListSnoozePresetsWithResponse List the ends of the Snooze presets
The end that a Snooze with each Snooze preset would set now, in the order `tomorrow`, `week_start`, computed like the Snooze itself from `organization.workday_start` and `organization.week_start` on the business clock. The time zone is `time_zone` when given, else the profile time zone of the User the caller acts as, else the Organization's; the answer names the one it used. A time zone Muster does not know (or `Local`) is `422` `invalid_format` at `/query/time_zone`. It reads and changes nothing else.
Returns a wrapper object for the known response body format(s).
Corresponds with GET /snooze-presets (the `ListSnoozePresets` operationId).
func (*ClientWithResponses) ListStoredSnapshotsWithResponse ¶
func (c *ClientWithResponses) ListStoredSnapshotsWithResponse(ctx context.Context, params *ListStoredSnapshotsParams, reqEditors ...RequestEditorFn) (*ListStoredSnapshotsResponse, error)
ListStoredSnapshotsWithResponse List Stored Snapshots
Kept for `retention.stored_snapshots`. Replay is the CLI command `muster ingest replay`.
Returns a wrapper object for the known response body format(s).
Corresponds with GET /stored-snapshots (the `ListStoredSnapshots` operationId).
func (*ClientWithResponses) ListSystemNoticesWithResponse ¶
func (c *ClientWithResponses) ListSystemNoticesWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*ListSystemNoticesResponse, error)
ListSystemNoticesWithResponse List active Organization-wide notices
"Recovering after downtime" for every signed-in user, "no replica is leading" for Admins. Changes arrive as `system-notices` hints.
Returns a wrapper object for the known response body format(s).
Corresponds with GET /system-notices (the `ListSystemNotices` operationId).
func (*ClientWithResponses) ListUserAccountLinksWithResponse ¶
func (c *ClientWithResponses) ListUserAccountLinksWithResponse(ctx context.Context, userId UserId, reqEditors ...RequestEditorFn) (*ListUserAccountLinksResponse, error)
ListUserAccountLinksWithResponse List a user's Account links
Returns a wrapper object for the known response body format(s).
Corresponds with GET /users/{user_id}/account-links (the `ListUserAccountLinks` operationId).
func (*ClientWithResponses) ListUserDirectoryWithResponse ¶
func (c *ClientWithResponses) ListUserDirectoryWithResponse(ctx context.Context, params *ListUserDirectoryParams, reqEditors ...RequestEditorFn) (*ListUserDirectoryResponse, error)
ListUserDirectoryWithResponse List users for pickers and filters
Name, login and whether the user is deactivated, for the Owner filter, Mention settings and other pickers. Includes deleted users, because their acknowledgements stay visible. Available to everyone who reads Alert Groups, unlike `listUsers`.
Returns a wrapper object for the known response body format(s).
Corresponds with GET /user-directory (the `ListUserDirectory` operationId).
func (*ClientWithResponses) ListUsersWithResponse ¶
func (c *ClientWithResponses) ListUsersWithResponse(ctx context.Context, params *ListUsersParams, reqEditors ...RequestEditorFn) (*ListUsersResponse, error)
ListUsersWithResponse List users
Returns a wrapper object for the known response body format(s).
Corresponds with GET /users (the `ListUsers` operationId).
func (*ClientWithResponses) MattermostActionWithBodyWithResponse ¶
func (c *ClientWithResponses) MattermostActionWithBodyWithResponse(ctx context.Context, connectionId ConnectionId, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*MattermostActionResponse, error)
MattermostActionWithBodyWithResponse Receive a Mattermost button press
Sent by the Mattermost server. Mattermost does not sign the request: Muster verifies the signed action id with the key it names, checks that `post_id` and `channel_id` belong to the post the id was issued for, maps `user_id` to a User through the Account link of this Connection and dispatches the Command with the Transport `mattermost`. Every request is answered with `200` and a JSON object, an unknown or deleted Connection, a bad signature and a body that is not JSON or does not match `MattermostActionRequest` included; request validation does not answer `400` here. Whatever the person who pressed must read — a refusal, a failure, "not linked", or "not verified" for a press on a post Muster delivered in that channel — goes first as a separate ephemeral post, shown in the channel view, and the answer is then an empty object. That post needs the `create_post_ephemeral` permission, which a bot with the role Member lacks; when it is refused, or fails in any other way, the answer carries the text as `ephemeral_text`, which Mattermost shows to that person alone in the Thread of the Root message and which needs no permission. Every other answer is an empty object, so the endpoint tells a caller nothing about which Connection ids exist. The answer never carries `update`: only the delivery worker edits the Root message.
Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
Corresponds with POST /callbacks/mattermost/{connection_id} (the `MattermostAction` operationId).
func (*ClientWithResponses) MattermostActionWithResponse ¶
func (c *ClientWithResponses) MattermostActionWithResponse(ctx context.Context, connectionId ConnectionId, body MattermostActionJSONRequestBody, reqEditors ...RequestEditorFn) (*MattermostActionResponse, error)
MattermostActionWithResponse Receive a Mattermost button press
Sent by the Mattermost server. Mattermost does not sign the request: Muster verifies the signed action id with the key it names, checks that `post_id` and `channel_id` belong to the post the id was issued for, maps `user_id` to a User through the Account link of this Connection and dispatches the Command with the Transport `mattermost`. Every request is answered with `200` and a JSON object, an unknown or deleted Connection, a bad signature and a body that is not JSON or does not match `MattermostActionRequest` included; request validation does not answer `400` here. Whatever the person who pressed must read — a refusal, a failure, "not linked", or "not verified" for a press on a post Muster delivered in that channel — goes first as a separate ephemeral post, shown in the channel view, and the answer is then an empty object. That post needs the `create_post_ephemeral` permission, which a bot with the role Member lacks; when it is refused, or fails in any other way, the answer carries the text as `ephemeral_text`, which Mattermost shows to that person alone in the Thread of the Root message and which needs no permission. Every other answer is an empty object, so the endpoint tells a caller nothing about which Connection ids exist. The answer never carries `update`: only the delivery worker edits the Root message.
Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
Corresponds with POST /callbacks/mattermost/{connection_id} (the `MattermostAction` operationId).
func (*ClientWithResponses) MoveOpenAlertGroupsWithResponse ¶
func (c *ClientWithResponses) MoveOpenAlertGroupsWithResponse(ctx context.Context, routeId RouteId, reqEditors ...RequestEditorFn) (*MoveOpenAlertGroupsResponse, error)
MoveOpenAlertGroupsWithResponse Move open Alert Groups to the Default route
Adds a `moved_to_default_route` Timeline entry to each moved Alert Group. Afterwards the Route can be deleted. A moved Alert Group keeps its Group key values but takes no new Alerts and never reopens; it stays open until its Alerts resolve or a person resolves it.
Returns a wrapper object for the known response body format(s).
Corresponds with POST /routes/{route_id}/move-open-alert-groups (the `MoveOpenAlertGroups` operationId).
func (*ClientWithResponses) PreviewDestinationWithBodyWithResponse ¶
func (c *ClientWithResponses) PreviewDestinationWithBodyWithResponse(ctx context.Context, destinationId DestinationId, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PreviewDestinationResponse, error)
PreviewDestinationWithBodyWithResponse Preview a message or request
Renders the Root message or the webhook requests for a chosen Alert Group or the example without sending anything. For a Bridge Destination the item `message` is the envelope as Muster would post it, as JSON (format `json`). For a Slack Destination the item `message` is the body of `chat.postMessage` as JSON (format `json`), and its `request` that call with the bot token masked.
Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
Corresponds with POST /destinations/{destination_id}/previews (the `PreviewDestination` operationId).
func (*ClientWithResponses) PreviewDestinationWithResponse ¶
func (c *ClientWithResponses) PreviewDestinationWithResponse(ctx context.Context, destinationId DestinationId, body PreviewDestinationJSONRequestBody, reqEditors ...RequestEditorFn) (*PreviewDestinationResponse, error)
PreviewDestinationWithResponse Preview a message or request
Renders the Root message or the webhook requests for a chosen Alert Group or the example without sending anything. For a Bridge Destination the item `message` is the envelope as Muster would post it, as JSON (format `json`). For a Slack Destination the item `message` is the body of `chat.postMessage` as JSON (format `json`), and its `request` that call with the bot token masked.
Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
Corresponds with POST /destinations/{destination_id}/previews (the `PreviewDestination` operationId).
func (*ClientWithResponses) PreviewGroupKeyWithBodyWithResponse ¶
func (c *ClientWithResponses) PreviewGroupKeyWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PreviewGroupKeyResponse, error)
PreviewGroupKeyWithBodyWithResponse Preview a Group key
Counts the Alert Groups that the Stored Snapshots of the period would have produced with the current and with the proposed Group key.
Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
Corresponds with POST /group-key-previews (the `PreviewGroupKey` operationId).
func (*ClientWithResponses) PreviewGroupKeyWithResponse ¶
func (c *ClientWithResponses) PreviewGroupKeyWithResponse(ctx context.Context, body PreviewGroupKeyJSONRequestBody, reqEditors ...RequestEditorFn) (*PreviewGroupKeyResponse, error)
PreviewGroupKeyWithResponse Preview a Group key
Counts the Alert Groups that the Stored Snapshots of the period would have produced with the current and with the proposed Group key.
Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
Corresponds with POST /group-key-previews (the `PreviewGroupKey` operationId).
func (*ClientWithResponses) PreviewTemplateWithBodyWithResponse ¶
func (c *ClientWithResponses) PreviewTemplateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PreviewTemplateResponse, error)
PreviewTemplateWithBodyWithResponse Render a template against a sample
Parses and renders a template in the sandbox against a recent Stored Snapshot, an Alert Group or a built-in example. Template errors are returned in `errors` with their position, not as a Problem, so an editor can show them next to the preview.
Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
Corresponds with POST /template-previews (the `PreviewTemplate` operationId).
func (*ClientWithResponses) PreviewTemplateWithResponse ¶
func (c *ClientWithResponses) PreviewTemplateWithResponse(ctx context.Context, body PreviewTemplateJSONRequestBody, reqEditors ...RequestEditorFn) (*PreviewTemplateResponse, error)
PreviewTemplateWithResponse Render a template against a sample
Parses and renders a template in the sandbox against a recent Stored Snapshot, an Alert Group or a built-in example. Template errors are returned in `errors` with their position, not as a Problem, so an editor can show them next to the preview.
Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
Corresponds with POST /template-previews (the `PreviewTemplate` operationId).
func (*ClientWithResponses) RegenerateTotpRecoveryCodesWithBodyWithResponse ¶
func (c *ClientWithResponses) RegenerateTotpRecoveryCodesWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*RegenerateTotpRecoveryCodesResponse, error)
RegenerateTotpRecoveryCodesWithBodyWithResponse Regenerate recovery codes
Invalidates the previous codes. Requires a current TOTP code. Web session only.
Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
Corresponds with POST /me/totp/recovery-codes (the `RegenerateTotpRecoveryCodes` operationId).
func (*ClientWithResponses) RegenerateTotpRecoveryCodesWithResponse ¶
func (c *ClientWithResponses) RegenerateTotpRecoveryCodesWithResponse(ctx context.Context, body RegenerateTotpRecoveryCodesJSONRequestBody, reqEditors ...RequestEditorFn) (*RegenerateTotpRecoveryCodesResponse, error)
RegenerateTotpRecoveryCodesWithResponse Regenerate recovery codes
Invalidates the previous codes. Requires a current TOTP code. Web session only.
Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
Corresponds with POST /me/totp/recovery-codes (the `RegenerateTotpRecoveryCodes` operationId).
func (*ClientWithResponses) RemoveTotpWithBodyWithResponse ¶
func (c *ClientWithResponses) RemoveTotpWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*RemoveTotpResponse, error)
RemoveTotpWithBodyWithResponse Remove own TOTP
Needs proof that the person is at the keyboard: the current password (local users) or a current TOTP or recovery code. Under a TOTP policy that covers the user, the next sign-in demands enrolment again. A wrong proof is `401` (`invalid_credentials`). Web session only.
Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
Corresponds with POST /me/totp/removal (the `RemoveTotp` operationId).
func (*ClientWithResponses) RemoveTotpWithResponse ¶
func (c *ClientWithResponses) RemoveTotpWithResponse(ctx context.Context, body RemoveTotpJSONRequestBody, reqEditors ...RequestEditorFn) (*RemoveTotpResponse, error)
RemoveTotpWithResponse Remove own TOTP
Needs proof that the person is at the keyboard: the current password (local users) or a current TOTP or recovery code. Under a TOTP policy that covers the user, the next sign-in demands enrolment again. A wrong proof is `401` (`invalid_credentials`). Web session only.
Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
Corresponds with POST /me/totp/removal (the `RemoveTotp` operationId).
func (*ClientWithResponses) ReorderRoutesWithBodyWithResponse ¶
func (c *ClientWithResponses) ReorderRoutesWithBodyWithResponse(ctx context.Context, params *ReorderRoutesParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ReorderRoutesResponse, error)
ReorderRoutesWithBodyWithResponse Reorder Routes
Replaces the order of all Routes except the Default route, which cannot be moved. `If-Match` carries the ETag of `listRoutes`; a stale one gets `412`. A list that contains the Default route is `409` (`default-route-immutable`); a set of ids that differs from the current set is `422` (`route_set_mismatch`).
Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
Corresponds with PUT /route-order (the `ReorderRoutes` operationId).
func (*ClientWithResponses) ReorderRoutesWithResponse ¶
func (c *ClientWithResponses) ReorderRoutesWithResponse(ctx context.Context, params *ReorderRoutesParams, body ReorderRoutesJSONRequestBody, reqEditors ...RequestEditorFn) (*ReorderRoutesResponse, error)
ReorderRoutesWithResponse Reorder Routes
Replaces the order of all Routes except the Default route, which cannot be moved. `If-Match` carries the ETag of `listRoutes`; a stale one gets `412`. A list that contains the Default route is `409` (`default-route-immutable`); a set of ids that differs from the current set is `422` (`route_set_mismatch`).
Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
Corresponds with PUT /route-order (the `ReorderRoutes` operationId).
func (*ClientWithResponses) ResetUserTotpWithResponse ¶
func (c *ClientWithResponses) ResetUserTotpWithResponse(ctx context.Context, userId UserId, reqEditors ...RequestEditorFn) (*ResetUserTotpResponse, error)
ResetUserTotpWithResponse Reset a user's TOTP
Audited. The user enrols again at the next sign-in if the policy requires it.
Returns a wrapper object for the known response body format(s).
Corresponds with POST /users/{user_id}/reset-totp (the `ResetUserTotp` operationId).
func (*ClientWithResponses) ResolveAlertGroupWithBodyWithResponse ¶
func (c *ClientWithResponses) ResolveAlertGroupWithBodyWithResponse(ctx context.Context, alertGroupId AlertGroupId, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ResolveAlertGroupResponse, error)
ResolveAlertGroupWithBodyWithResponse Resolve
Resolves by the user, with an optional Note recorded in the same request. Refused with the code `already_resolved`.
Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
Corresponds with POST /alert-groups/{alert_group_id}/resolve (the `ResolveAlertGroup` operationId).
func (*ClientWithResponses) ResolveAlertGroupWithResponse ¶
func (c *ClientWithResponses) ResolveAlertGroupWithResponse(ctx context.Context, alertGroupId AlertGroupId, body ResolveAlertGroupJSONRequestBody, reqEditors ...RequestEditorFn) (*ResolveAlertGroupResponse, error)
ResolveAlertGroupWithResponse Resolve
Resolves by the user, with an optional Note recorded in the same request. Refused with the code `already_resolved`.
Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
Corresponds with POST /alert-groups/{alert_group_id}/resolve (the `ResolveAlertGroup` operationId).
func (*ClientWithResponses) RetirePreviousSigningSecretWithResponse ¶
func (c *ClientWithResponses) RetirePreviousSigningSecretWithResponse(ctx context.Context, destinationId DestinationId, reqEditors ...RequestEditorFn) (*RetirePreviousSigningSecretResponse, error)
RetirePreviousSigningSecretWithResponse Retire the previous Signing secret
`409` (`not_webhook_destination`) for a Destination that is not an outgoing webhook.
Returns a wrapper object for the known response body format(s).
Corresponds with DELETE /destinations/{destination_id}/signing-secret/previous (the `RetirePreviousSigningSecret` operationId).
func (*ClientWithResponses) RevokeIntegrationTokenWithResponse ¶
func (c *ClientWithResponses) RevokeIntegrationTokenWithResponse(ctx context.Context, integrationId IntegrationId, integrationTokenId IntegrationTokenId, reqEditors ...RequestEditorFn) (*RevokeIntegrationTokenResponse, error)
RevokeIntegrationTokenWithResponse Revoke an Integration token
Returns a wrapper object for the known response body format(s).
Corresponds with DELETE /integrations/{integration_id}/tokens/{integration_token_id} (the `RevokeIntegrationToken` operationId).
func (*ClientWithResponses) RevokePersonalAccessTokenWithResponse ¶
func (c *ClientWithResponses) RevokePersonalAccessTokenWithResponse(ctx context.Context, tokenId TokenId, reqEditors ...RequestEditorFn) (*RevokePersonalAccessTokenResponse, error)
RevokePersonalAccessTokenWithResponse Revoke a Personal access token
Revokes the token at once. Web session only.
Returns a wrapper object for the known response body format(s).
Corresponds with DELETE /me/personal-access-tokens/{token_id} (the `RevokePersonalAccessToken` operationId).
func (*ClientWithResponses) RevokeServiceAccountTokenWithResponse ¶
func (c *ClientWithResponses) RevokeServiceAccountTokenWithResponse(ctx context.Context, serviceAccountId ServiceAccountId, tokenId TokenId, reqEditors ...RequestEditorFn) (*RevokeServiceAccountTokenResponse, error)
RevokeServiceAccountTokenWithResponse Revoke a Service account token
Revokes the token at once. Web session only: a token can never revoke a token.
Returns a wrapper object for the known response body format(s).
Corresponds with DELETE /service-accounts/{service_account_id}/tokens/{token_id} (the `RevokeServiceAccountToken` operationId).
func (*ClientWithResponses) RunBulkCommandWithBodyWithResponse ¶
func (c *ClientWithResponses) RunBulkCommandWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*RunBulkCommandResponse, error)
RunBulkCommandWithBodyWithResponse Run a Command on several Alert Groups
Acknowledge, Resolve, Snooze or Unsnooze on up to `alert_group.bulk_max` Alert Groups. Each goes through the dispatcher on its own, with its own Audit log and Timeline entry; a refusal never stops the others. Bulk Acknowledge skips Alert Groups another user owns and never makes a Takeover. `x-permission` lists alternatives: the caller needs the Permission of the chosen command (`acknowledge` needs `alert-groups:acknowledge`, `resolve` needs `alert-groups:resolve`, `snooze` and `unsnooze` need `alert-groups:snooze`). A bulk Snooze with a `preset` computes its end once, so every Alert Group gets the same end; the pointers of its problems start with `/snooze`.
Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
Corresponds with POST /alert-groups/bulk-commands (the `RunBulkCommand` operationId).
func (*ClientWithResponses) RunBulkCommandWithResponse ¶
func (c *ClientWithResponses) RunBulkCommandWithResponse(ctx context.Context, body RunBulkCommandJSONRequestBody, reqEditors ...RequestEditorFn) (*RunBulkCommandResponse, error)
RunBulkCommandWithResponse Run a Command on several Alert Groups
Acknowledge, Resolve, Snooze or Unsnooze on up to `alert_group.bulk_max` Alert Groups. Each goes through the dispatcher on its own, with its own Audit log and Timeline entry; a refusal never stops the others. Bulk Acknowledge skips Alert Groups another user owns and never makes a Takeover. `x-permission` lists alternatives: the caller needs the Permission of the chosen command (`acknowledge` needs `alert-groups:acknowledge`, `resolve` needs `alert-groups:resolve`, `snooze` and `unsnooze` need `alert-groups:snooze`). A bulk Snooze with a `preset` computes its end once, so every Alert Group gets the same end; the pointers of its problems start with `/snooze`.
Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
Corresponds with POST /alert-groups/bulk-commands (the `RunBulkCommand` operationId).
func (*ClientWithResponses) SetDestinationSecretWithBodyWithResponse ¶
func (c *ClientWithResponses) SetDestinationSecretWithBodyWithResponse(ctx context.Context, destinationId DestinationId, secretName SecretName, params *SetDestinationSecretParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*SetDestinationSecretResponse, error)
SetDestinationSecretWithBodyWithResponse Set a Secret of a webhook Destination
Creates or replaces the named Secret, referenced as `{{ .Secrets.<name> }}`. `If-Match`, when given, is compared with the ETag of `listDestinationSecrets`.
Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
Corresponds with PUT /destinations/{destination_id}/secrets/{secret_name} (the `SetDestinationSecret` operationId).
func (*ClientWithResponses) SetDestinationSecretWithResponse ¶
func (c *ClientWithResponses) SetDestinationSecretWithResponse(ctx context.Context, destinationId DestinationId, secretName SecretName, params *SetDestinationSecretParams, body SetDestinationSecretJSONRequestBody, reqEditors ...RequestEditorFn) (*SetDestinationSecretResponse, error)
SetDestinationSecretWithResponse Set a Secret of a webhook Destination
Creates or replaces the named Secret, referenced as `{{ .Secrets.<name> }}`. `If-Match`, when given, is compared with the ETag of `listDestinationSecrets`.
Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
Corresponds with PUT /destinations/{destination_id}/secrets/{secret_name} (the `SetDestinationSecret` operationId).
func (*ClientWithResponses) SlackInteractionWithBodyWithResponse ¶
func (c *ClientWithResponses) SlackInteractionWithBodyWithResponse(ctx context.Context, connectionId ConnectionId, params *SlackInteractionParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*SlackInteractionResponse, error)
SlackInteractionWithBodyWithResponse Receive a Slack button press (http event mode)
Used only when the Slack Connection's event mode is `http`: Slack posts each interaction of the app, one per request, form-encoded with its JSON in `payload`. Muster reads the raw body, up to 1 MiB, before it parses the form, verifies `X-Slack-Signature` — `v0=` followed by the hex HMAC-SHA256 of `v0:<X-Slack-Request-Timestamp>:<raw body>` with the Connection's Slack signing secret — in constant time, and refuses an `X-Slack-Request-Timestamp` further than `slack.request_tolerance` from its real clock, either way. A missing or wrong signature, a timestamp out of range, an unknown or deleted Connection and a Connection in `socket` mode are all answered `401` with the same body and change nothing, so the endpoint reveals nothing about which Connections exist; a body over 1 MiB, or without a `payload` that is a JSON object, is answered `400`; a failure to read the Connection is answered `500`. Every other request is answered `200` with an empty body at once, before its press is handled, because Slack waits only 3 seconds: a `block_actions` press then runs its Command with the Transport `slack`, and the person who pressed is answered privately, with `chat.postEphemeral` or else the press's `response_url`, only when there is something to read; other kinds of interaction are ignored. Request validation does not answer here: the handler decides every answer.
Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
Corresponds with POST /callbacks/slack/{connection_id} (the `SlackInteraction` operationId).
func (*ClientWithResponses) SlackInteractionWithFormdataBodyWithResponse ¶
func (c *ClientWithResponses) SlackInteractionWithFormdataBodyWithResponse(ctx context.Context, connectionId ConnectionId, params *SlackInteractionParams, body SlackInteractionFormdataRequestBody, reqEditors ...RequestEditorFn) (*SlackInteractionResponse, error)
SlackInteractionWithFormdataBodyWithResponse Receive a Slack button press (http event mode)
Used only when the Slack Connection's event mode is `http`: Slack posts each interaction of the app, one per request, form-encoded with its JSON in `payload`. Muster reads the raw body, up to 1 MiB, before it parses the form, verifies `X-Slack-Signature` — `v0=` followed by the hex HMAC-SHA256 of `v0:<X-Slack-Request-Timestamp>:<raw body>` with the Connection's Slack signing secret — in constant time, and refuses an `X-Slack-Request-Timestamp` further than `slack.request_tolerance` from its real clock, either way. A missing or wrong signature, a timestamp out of range, an unknown or deleted Connection and a Connection in `socket` mode are all answered `401` with the same body and change nothing, so the endpoint reveals nothing about which Connections exist; a body over 1 MiB, or without a `payload` that is a JSON object, is answered `400`; a failure to read the Connection is answered `500`. Every other request is answered `200` with an empty body at once, before its press is handled, because Slack waits only 3 seconds: a `block_actions` press then runs its Command with the Transport `slack`, and the person who pressed is answered privately, with `chat.postEphemeral` or else the press's `response_url`, only when there is something to read; other kinds of interaction are ignored. Request validation does not answer here: the handler decides every answer.
Takes a body of the `application/x-www-form-urlencoded` content type, and returns a wrapper object for the known response body format(s).
Corresponds with POST /callbacks/slack/{connection_id} (the `SlackInteraction` operationId).
func (*ClientWithResponses) SnoozeAlertGroupWithBodyWithResponse ¶
func (c *ClientWithResponses) SnoozeAlertGroupWithBodyWithResponse(ctx context.Context, alertGroupId AlertGroupId, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*SnoozeAlertGroupResponse, error)
SnoozeAlertGroupWithBodyWithResponse Snooze
A Snooze until a future time (`until`), with no end (`no_end: true`) or until a Snooze preset (`preset`), chosen explicitly. A preset's end is computed when the Command runs and stored as an instant. Allowed from firing, acknowledged and snoozed.
Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
Corresponds with POST /alert-groups/{alert_group_id}/snooze (the `SnoozeAlertGroup` operationId).
func (*ClientWithResponses) SnoozeAlertGroupWithResponse ¶
func (c *ClientWithResponses) SnoozeAlertGroupWithResponse(ctx context.Context, alertGroupId AlertGroupId, body SnoozeAlertGroupJSONRequestBody, reqEditors ...RequestEditorFn) (*SnoozeAlertGroupResponse, error)
SnoozeAlertGroupWithResponse Snooze
A Snooze until a future time (`until`), with no end (`no_end: true`) or until a Snooze preset (`preset`), chosen explicitly. A preset's end is computed when the Command runs and stored as an instant. Allowed from firing, acknowledged and snoozed.
Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
Corresponds with POST /alert-groups/{alert_group_id}/snooze (the `SnoozeAlertGroup` operationId).
func (*ClientWithResponses) StartBridgeCodeLinkWithBodyWithResponse ¶
func (c *ClientWithResponses) StartBridgeCodeLinkWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*StartBridgeCodeLinkResponse, error)
StartBridgeCodeLinkWithBodyWithResponse Start linking an account through a Bridge with a code
Where the Bridge Connection's `info` declares `direct_messages` with `bot_can_start` and a `user_lookup` other than `none`, the bridge finds the account with the `handle` the caller entered — of the kind `user_lookup` declares — with `findUsers`, and its bot sends a code with `sendDirectMessage`. Code requests are limited per requesting User and per target account (`429` `link_code_requests_exceeded` with `Retry-After`, `account_link.bridge_code_requests`); a request whose direct message failed still counts. Refused with `409` `code_not_offered` when the Connection's `info`, read again first when Muster's copy is older than `bridge.info_max_age`, offers no code or has never been read; with `409` `account_linked_elsewhere` when the account is linked to another User; and with `409` without a code when the bridge refuses a call. Runs on the interactive path: when no limiter token is free within `delivery.interactive_budget`, the answer is `503` with `Retry-After`. No operation starts a link for another User, whatever the caller's Role. A `connection_id` that names no Bridge Connection answers `422` `unknown_id` at `/connection_id`; a handle the bridge does not find answers `422` `handle_not_found` at `/handle`, and an account the bot cannot write to `422` `direct_message_refused` at `/handle`.
Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
Corresponds with POST /me/account-links/bridge/codes (the `StartBridgeCodeLink` operationId).
func (*ClientWithResponses) StartBridgeCodeLinkWithResponse ¶
func (c *ClientWithResponses) StartBridgeCodeLinkWithResponse(ctx context.Context, body StartBridgeCodeLinkJSONRequestBody, reqEditors ...RequestEditorFn) (*StartBridgeCodeLinkResponse, error)
StartBridgeCodeLinkWithResponse Start linking an account through a Bridge with a code
Where the Bridge Connection's `info` declares `direct_messages` with `bot_can_start` and a `user_lookup` other than `none`, the bridge finds the account with the `handle` the caller entered — of the kind `user_lookup` declares — with `findUsers`, and its bot sends a code with `sendDirectMessage`. Code requests are limited per requesting User and per target account (`429` `link_code_requests_exceeded` with `Retry-After`, `account_link.bridge_code_requests`); a request whose direct message failed still counts. Refused with `409` `code_not_offered` when the Connection's `info`, read again first when Muster's copy is older than `bridge.info_max_age`, offers no code or has never been read; with `409` `account_linked_elsewhere` when the account is linked to another User; and with `409` without a code when the bridge refuses a call. Runs on the interactive path: when no limiter token is free within `delivery.interactive_budget`, the answer is `503` with `Retry-After`. No operation starts a link for another User, whatever the caller's Role. A `connection_id` that names no Bridge Connection answers `422` `unknown_id` at `/connection_id`; a handle the bridge does not find answers `422` `handle_not_found` at `/handle`, and an account the bot cannot write to `422` `direct_message_refused` at `/handle`.
Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
Corresponds with POST /me/account-links/bridge/codes (the `StartBridgeCodeLink` operationId).
func (*ClientWithResponses) StartBridgeLinkWithBodyWithResponse ¶
func (c *ClientWithResponses) StartBridgeLinkWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*StartBridgeLinkResponse, error)
StartBridgeLinkWithBodyWithResponse Start linking an account through a Bridge with a token
Returns a token to send to the bot of the Bridge Connection in a direct message: 32 random bytes in base64url, single-use, valid for `account_link.bridge_token_ttl` and bound to the User and the Connection. When the Connection's last `info` has a `link_url_template`, `link_url` is that template with the token in place of `{token}`, kept only when it is an absolute `http` or `https` link; otherwise it is null. The bridge reports the token with an `account_link` event, which completes the link and arrives as an `account-links` hint with the link's `public_id`. Only the signed-in web session can start a link (not a token). No operation starts a link for another User, whatever the caller's Role. A `connection_id` that names no Bridge Connection — missing, deleted or of another type — answers `422` `unknown_id` at `/connection_id`. Calls no bridge.
Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
Corresponds with POST /me/account-links/bridge (the `StartBridgeLink` operationId).
func (*ClientWithResponses) StartBridgeLinkWithResponse ¶
func (c *ClientWithResponses) StartBridgeLinkWithResponse(ctx context.Context, body StartBridgeLinkJSONRequestBody, reqEditors ...RequestEditorFn) (*StartBridgeLinkResponse, error)
StartBridgeLinkWithResponse Start linking an account through a Bridge with a token
Returns a token to send to the bot of the Bridge Connection in a direct message: 32 random bytes in base64url, single-use, valid for `account_link.bridge_token_ttl` and bound to the User and the Connection. When the Connection's last `info` has a `link_url_template`, `link_url` is that template with the token in place of `{token}`, kept only when it is an absolute `http` or `https` link; otherwise it is null. The bridge reports the token with an `account_link` event, which completes the link and arrives as an `account-links` hint with the link's `public_id`. Only the signed-in web session can start a link (not a token). No operation starts a link for another User, whatever the caller's Role. A `connection_id` that names no Bridge Connection — missing, deleted or of another type — answers `422` `unknown_id` at `/connection_id`. Calls no bridge.
Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
Corresponds with POST /me/account-links/bridge (the `StartBridgeLink` operationId).
func (*ClientWithResponses) StartMattermostLinkWithBodyWithResponse ¶
func (c *ClientWithResponses) StartMattermostLinkWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*StartMattermostLinkResponse, error)
StartMattermostLinkWithBodyWithResponse Start linking a Mattermost account
The Connection's bot sends a direct message with a code to the `@username`. Code requests are limited per requesting User and per target account (`429` `link_code_requests_exceeded` with `Retry-After`). Refused with `409` if the account is already linked to another user (`account_linked_elsewhere`), or without a code when Mattermost refuses a call. Runs on the interactive path: when no limiter token is free within `delivery.interactive_budget`, the answer is `503` with `Retry-After`. No operation starts a link for another User, whatever the caller's Role. A `connection_id` that names no Mattermost Connection — missing, deleted or a Telegram one — answers `422` `unknown_id` at `/connection_id`; a username the Mattermost server does not know answers `422` `messenger_user_not_found` at `/username`.
Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
Corresponds with POST /me/account-links/mattermost (the `StartMattermostLink` operationId).
func (*ClientWithResponses) StartMattermostLinkWithResponse ¶
func (c *ClientWithResponses) StartMattermostLinkWithResponse(ctx context.Context, body StartMattermostLinkJSONRequestBody, reqEditors ...RequestEditorFn) (*StartMattermostLinkResponse, error)
StartMattermostLinkWithResponse Start linking a Mattermost account
The Connection's bot sends a direct message with a code to the `@username`. Code requests are limited per requesting User and per target account (`429` `link_code_requests_exceeded` with `Retry-After`). Refused with `409` if the account is already linked to another user (`account_linked_elsewhere`), or without a code when Mattermost refuses a call. Runs on the interactive path: when no limiter token is free within `delivery.interactive_budget`, the answer is `503` with `Retry-After`. No operation starts a link for another User, whatever the caller's Role. A `connection_id` that names no Mattermost Connection — missing, deleted or a Telegram one — answers `422` `unknown_id` at `/connection_id`; a username the Mattermost server does not know answers `422` `messenger_user_not_found` at `/username`.
Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
Corresponds with POST /me/account-links/mattermost (the `StartMattermostLink` operationId).
func (*ClientWithResponses) StartOidcLinkWithResponse ¶
func (c *ClientWithResponses) StartOidcLinkWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*StartOidcLinkResponse, error)
StartOidcLinkWithResponse Start linking an OIDC identity
Starts linking the caller's account to an identity at the OIDC provider: returns the authorization URL (PKCE `S256`, `state` and `nonce`) that the SPA opens after warning "After linking you will sign in only through OIDC; your password will be removed." The `state` is bound to this web session, so the callback adds the identity only to the account that started the link. A successful link removes the password: the account then signs in only through OIDC, keeps its TOTP enrolment, and `oidc.sync_role` applies to it. There is no unlinking by the user; an Admin can convert the account back to local (`convertUserToLocal`). Web session only: a token gets `403` (`session_required`). `409` with `oidc_not_enabled` while OIDC is off, or `oidc_already_linked` when the account already signs in through OIDC.
Returns a wrapper object for the known response body format(s).
Corresponds with POST /me/oidc-identity (the `StartOidcLink` operationId).
func (*ClientWithResponses) StartOidcSignInWithResponse ¶
func (c *ClientWithResponses) StartOidcSignInWithResponse(ctx context.Context, params *StartOidcSignInParams, reqEditors ...RequestEditorFn) (*StartOidcSignInResponse, error)
StartOidcSignInWithResponse Start OIDC sign-in
Redirects the browser to the identity provider with PKCE (`S256`), `state` and `nonce`, all mandatory, requesting `openid` and the configured scopes, and `offline_access` when the IdP's discovery lists it in `scopes_supported` or publishes no `scopes_supported`; when the IdP grants it, the offline token is stored on the user, encrypted, replacing the previous one. Muster exchanges the code itself through the back channel. The redirect URI to register at the identity provider is `MUSTER_PUBLIC_URL/api/v1/sessions/oidc/callback`. `409` (`oidc_not_enabled`) while OIDC is off.
Returns a wrapper object for the known response body format(s).
Corresponds with GET /sessions/oidc/start (the `StartOidcSignIn` operationId).
func (*ClientWithResponses) StartSlackLinkWithBodyWithResponse ¶
func (c *ClientWithResponses) StartSlackLinkWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*StartSlackLinkResponse, error)
StartSlackLinkWithBodyWithResponse Start linking a Slack account with a code
Looks up the account of the Slack Connection that the caller names in `handle`. An email — an `@` after at least one character with a dot after that `@` — is looked up with `users.lookupByEmail`, which ignores the letter case. Anything else is a name, a leading `@` dropped, compared with each account's `name` and `profile.display_name` regardless of case over the pages of `users.list`; deleted accounts, bots and Slackbot are left out. The bot then sends a code (`account_link.slack_code`) by direct message — `chat.postMessage` to the account's user id — with "You requested a link to Muster. Do not share this code.". Code requests are limited per requesting User and per target account (`429` `link_code_requests_exceeded` with `Retry-After`, `account_link.slack_code_requests`); a request whose direct message failed still counts. Refused with `409` `account_linked_elsewhere` when the account is linked to another User, with `409` `messages_tab_disabled` when Slack refuses the direct message because the Messages tab of the Slack app is off, and with `409` without a code when Slack refuses a call otherwise. Runs on the interactive path: when no limiter token is free within `delivery.interactive_budget`, or Slack answers `429`, the answer is `503` with `Retry-After`. No operation starts a link for another User, whatever the caller's Role. A `connection_id` that names no Slack Connection — missing, deleted or of another type — answers `422` `unknown_id` at `/connection_id`; no account answers `422` `handle_not_found` at `/handle`, several accounts with the name `422` `handle_ambiguous` at `/handle`, and an account the bot cannot write to (`cannot_dm_bot`, `user_not_found`, or `channel_not_found` for the user id) `422` `direct_message_refused` at `/handle`.
Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
Corresponds with POST /me/account-links/slack (the `StartSlackLink` operationId).
func (*ClientWithResponses) StartSlackLinkWithResponse ¶
func (c *ClientWithResponses) StartSlackLinkWithResponse(ctx context.Context, body StartSlackLinkJSONRequestBody, reqEditors ...RequestEditorFn) (*StartSlackLinkResponse, error)
StartSlackLinkWithResponse Start linking a Slack account with a code
Looks up the account of the Slack Connection that the caller names in `handle`. An email — an `@` after at least one character with a dot after that `@` — is looked up with `users.lookupByEmail`, which ignores the letter case. Anything else is a name, a leading `@` dropped, compared with each account's `name` and `profile.display_name` regardless of case over the pages of `users.list`; deleted accounts, bots and Slackbot are left out. The bot then sends a code (`account_link.slack_code`) by direct message — `chat.postMessage` to the account's user id — with "You requested a link to Muster. Do not share this code.". Code requests are limited per requesting User and per target account (`429` `link_code_requests_exceeded` with `Retry-After`, `account_link.slack_code_requests`); a request whose direct message failed still counts. Refused with `409` `account_linked_elsewhere` when the account is linked to another User, with `409` `messages_tab_disabled` when Slack refuses the direct message because the Messages tab of the Slack app is off, and with `409` without a code when Slack refuses a call otherwise. Runs on the interactive path: when no limiter token is free within `delivery.interactive_budget`, or Slack answers `429`, the answer is `503` with `Retry-After`. No operation starts a link for another User, whatever the caller's Role. A `connection_id` that names no Slack Connection — missing, deleted or of another type — answers `422` `unknown_id` at `/connection_id`; no account answers `422` `handle_not_found` at `/handle`, several accounts with the name `422` `handle_ambiguous` at `/handle`, and an account the bot cannot write to (`cannot_dm_bot`, `user_not_found`, or `channel_not_found` for the user id) `422` `direct_message_refused` at `/handle`.
Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
Corresponds with POST /me/account-links/slack (the `StartSlackLink` operationId).
func (*ClientWithResponses) StartTelegramLinkWithBodyWithResponse ¶
func (c *ClientWithResponses) StartTelegramLinkWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*StartTelegramLinkResponse, error)
StartTelegramLinkWithBodyWithResponse Start linking a Telegram account
Returns a deep link `t.me/<bot>?start=<token>`; the token is single-use, valid for `account_link.telegram_token_ttl`. Pressing Start in Telegram completes the link and arrives as an `account-links` hint with the link's `public_id`. Only the signed-in web session can start a link (not a token). No operation starts a link for another User, whatever the caller's Role. A `connection_id` that names no Telegram Connection — missing, deleted or a Mattermost one — answers `422` `unknown_id` at `/connection_id`. When the bot's username is not known from the last Connection check, it is read with `getMe` on the interactive path: when no limiter token is free within `delivery.interactive_budget`, the answer is `503` with `Retry-After`, and when Telegram refuses the call, `409`.
Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
Corresponds with POST /me/account-links/telegram (the `StartTelegramLink` operationId).
func (*ClientWithResponses) StartTelegramLinkWithResponse ¶
func (c *ClientWithResponses) StartTelegramLinkWithResponse(ctx context.Context, body StartTelegramLinkJSONRequestBody, reqEditors ...RequestEditorFn) (*StartTelegramLinkResponse, error)
StartTelegramLinkWithResponse Start linking a Telegram account
Returns a deep link `t.me/<bot>?start=<token>`; the token is single-use, valid for `account_link.telegram_token_ttl`. Pressing Start in Telegram completes the link and arrives as an `account-links` hint with the link's `public_id`. Only the signed-in web session can start a link (not a token). No operation starts a link for another User, whatever the caller's Role. A `connection_id` that names no Telegram Connection — missing, deleted or a Mattermost one — answers `422` `unknown_id` at `/connection_id`. When the bot's username is not known from the last Connection check, it is read with `getMe` on the interactive path: when no limiter token is free within `delivery.interactive_budget`, the answer is `503` with `Retry-After`, and when Telegram refuses the call, `409`.
Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
Corresponds with POST /me/account-links/telegram (the `StartTelegramLink` operationId).
func (*ClientWithResponses) StreamLiveUpdatesWithResponse ¶
func (c *ClientWithResponses) StreamLiveUpdatesWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*StreamLiveUpdatesResponse, error)
StreamLiveUpdatesWithResponse Stream change hints
Server-sent events (`text/event-stream`). OpenAPI 3.1 cannot type event streams, so the events are described by `HintEvent`.
Each event has the name `hint`, an `id` line and a JSON `data` line `{type, id}`. A hint carries no data: the client re-reads through the API, so authorization stays in one place. The stream starts with `retry: 3000` (the reconnect delay in milliseconds) and a comment line (`: keepalive`) follows periodically. After a reconnect the client invalidates everything; `Last-Event-ID` is not replayed. When the session expires or is ended, the server closes the stream; the browser's reconnect then gets `401`, which makes `EventSource` stop for good, and the SPA goes to the sign-in page. The stream follows a web session; a token gets `403` (`session_required`).
Returns a wrapper object for the known response body format(s).
Corresponds with GET /live-updates (the `StreamLiveUpdates` operationId).
func (*ClientWithResponses) SubmitSessionTotpWithBodyWithResponse ¶
func (c *ClientWithResponses) SubmitSessionTotpWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*SubmitSessionTotpResponse, error)
SubmitSessionTotpWithBodyWithResponse Give the second factor
Completes a session in the state `totp_required` with a current TOTP code or a single-use recovery code; works the same after a local and an OIDC sign-in. A wrong code is `401` (`invalid_credentials`) and slows down like a wrong password; `409` (`totp_not_pending`) when the session is not waiting for a code.
Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
Corresponds with POST /sessions/current/totp (the `SubmitSessionTotp` operationId).
func (*ClientWithResponses) SubmitSessionTotpWithResponse ¶
func (c *ClientWithResponses) SubmitSessionTotpWithResponse(ctx context.Context, body SubmitSessionTotpJSONRequestBody, reqEditors ...RequestEditorFn) (*SubmitSessionTotpResponse, error)
SubmitSessionTotpWithResponse Give the second factor
Completes a session in the state `totp_required` with a current TOTP code or a single-use recovery code; works the same after a local and an OIDC sign-in. A wrong code is `401` (`invalid_credentials`) and slows down like a wrong password; `409` (`totp_not_pending`) when the session is not waiting for a code.
Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
Corresponds with POST /sessions/current/totp (the `SubmitSessionTotp` operationId).
func (*ClientWithResponses) TelegramWebhookWithBodyWithResponse ¶
func (c *ClientWithResponses) TelegramWebhookWithBodyWithResponse(ctx context.Context, connectionId ConnectionId, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*TelegramWebhookResponse, error)
TelegramWebhookWithBodyWithResponse Receive a Telegram update (webhook update mode)
Used only when the Connection's update mode is `webhook`. A request without the right secret token header, or for a Connection that does not exist or is not in webhook mode, is answered `401` and changes nothing.
Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
Corresponds with POST /callbacks/telegram/{connection_id} (the `TelegramWebhook` operationId).
func (*ClientWithResponses) TelegramWebhookWithResponse ¶
func (c *ClientWithResponses) TelegramWebhookWithResponse(ctx context.Context, connectionId ConnectionId, body TelegramWebhookJSONRequestBody, reqEditors ...RequestEditorFn) (*TelegramWebhookResponse, error)
TelegramWebhookWithResponse Receive a Telegram update (webhook update mode)
Used only when the Connection's update mode is `webhook`. A request without the right secret token header, or for a Connection that does not exist or is not in webhook mode, is answered `401` and changes nothing.
Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
Corresponds with POST /callbacks/telegram/{connection_id} (the `TelegramWebhook` operationId).
func (*ClientWithResponses) TestDestinationWithBodyWithResponse ¶
func (c *ClientWithResponses) TestDestinationWithBodyWithResponse(ctx context.Context, destinationId DestinationId, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*TestDestinationResponse, error)
TestDestinationWithBodyWithResponse Send a test message
One "create" request marked "Test message", built from a recent Alert Group of one of the Destination's Routes or from a built-in example, through the interactive path. An outgoing webhook sends the `test` event in events mode and the "create" request in template mode, both when it uses both. Secrets and the Signing secret are masked in the result. Test messages are never reconciled and change no Alert Group. A successful test of a Broken Destination ends the Broken state. Audited. A step that could not get a limiter token in time ends with `error_class` `limited`. A Bridge Destination posts one test message of the kind `test` with `postMessage`. A Slack Destination posts one test message with `chat.postMessage`, the step `message` alone; a bot cannot press its own button, so the test cannot show that presses reach Muster.
Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
Corresponds with POST /destinations/{destination_id}/tests (the `TestDestination` operationId).
func (*ClientWithResponses) TestDestinationWithResponse ¶
func (c *ClientWithResponses) TestDestinationWithResponse(ctx context.Context, destinationId DestinationId, body TestDestinationJSONRequestBody, reqEditors ...RequestEditorFn) (*TestDestinationResponse, error)
TestDestinationWithResponse Send a test message
One "create" request marked "Test message", built from a recent Alert Group of one of the Destination's Routes or from a built-in example, through the interactive path. An outgoing webhook sends the `test` event in events mode and the "create" request in template mode, both when it uses both. Secrets and the Signing secret are masked in the result. Test messages are never reconciled and change no Alert Group. A successful test of a Broken Destination ends the Broken state. Audited. A step that could not get a limiter token in time ends with `error_class` `limited`. A Bridge Destination posts one test message of the kind `test` with `postMessage`. A Slack Destination posts one test message with `chat.postMessage`, the step `message` alone; a bot cannot press its own button, so the test cannot show that presses reach Muster.
Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
Corresponds with POST /destinations/{destination_id}/tests (the `TestDestination` operationId).
func (*ClientWithResponses) UnacknowledgeAlertGroupWithResponse ¶
func (c *ClientWithResponses) UnacknowledgeAlertGroupWithResponse(ctx context.Context, alertGroupId AlertGroupId, reqEditors ...RequestEditorFn) (*UnacknowledgeAlertGroupResponse, error)
UnacknowledgeAlertGroupWithResponse Unacknowledge
Allowed to every user with the Permission, not only the Owner. The Alert Group becomes firing without an Owner. Refused with the code `not_acknowledged`.
Returns a wrapper object for the known response body format(s).
Corresponds with POST /alert-groups/{alert_group_id}/unacknowledge (the `UnacknowledgeAlertGroup` operationId).
func (*ClientWithResponses) UnresolveAlertGroupWithResponse ¶
func (c *ClientWithResponses) UnresolveAlertGroupWithResponse(ctx context.Context, alertGroupId AlertGroupId, reqEditors ...RequestEditorFn) (*UnresolveAlertGroupResponse, error)
UnresolveAlertGroupWithResponse Unresolve
Only for an Alert Group a person resolved; messengers never offer it. Refused, in this order, with the codes `not_resolved`, `resolved_automatically`, `route_deleted`, `newer_alert_group_exists` (see `related_alert_group`) and `all_alerts_resolved`.
Returns a wrapper object for the known response body format(s).
Corresponds with POST /alert-groups/{alert_group_id}/unresolve (the `UnresolveAlertGroup` operationId).
func (*ClientWithResponses) UnsnoozeAlertGroupWithResponse ¶
func (c *ClientWithResponses) UnsnoozeAlertGroupWithResponse(ctx context.Context, alertGroupId AlertGroupId, reqEditors ...RequestEditorFn) (*UnsnoozeAlertGroupResponse, error)
UnsnoozeAlertGroupWithResponse Unsnooze
The Alert Group becomes firing without an Owner. Refused with the code `not_snoozed`.
Returns a wrapper object for the known response body format(s).
Corresponds with POST /alert-groups/{alert_group_id}/unsnooze (the `UnsnoozeAlertGroup` operationId).
func (*ClientWithResponses) UpdateConnectionWithBodyWithResponse ¶
func (c *ClientWithResponses) UpdateConnectionWithBodyWithResponse(ctx context.Context, connectionId ConnectionId, params *UpdateConnectionParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateConnectionResponse, error)
UpdateConnectionWithBodyWithResponse Update Connection
Replaces the writable fields. Requires `If-Match`; a stale ETag gets `412`. An omitted optional field keeps its stored value; an explicit `null` clears a nullable one. An omitted Secret field keeps the stored Secret.
Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
Corresponds with PUT /connections/{connection_id} (the `UpdateConnection` operationId).
func (*ClientWithResponses) UpdateConnectionWithResponse ¶
func (c *ClientWithResponses) UpdateConnectionWithResponse(ctx context.Context, connectionId ConnectionId, params *UpdateConnectionParams, body UpdateConnectionJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateConnectionResponse, error)
UpdateConnectionWithResponse Update Connection
Replaces the writable fields. Requires `If-Match`; a stale ETag gets `412`. An omitted optional field keeps its stored value; an explicit `null` clears a nullable one. An omitted Secret field keeps the stored Secret.
Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
Corresponds with PUT /connections/{connection_id} (the `UpdateConnection` operationId).
func (*ClientWithResponses) UpdateDestinationWithBodyWithResponse ¶
func (c *ClientWithResponses) UpdateDestinationWithBodyWithResponse(ctx context.Context, destinationId DestinationId, params *UpdateDestinationParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateDestinationResponse, error)
UpdateDestinationWithBodyWithResponse Update Destination
Replaces the writable fields. Requires `If-Match`; a stale ETag gets `412`. An omitted optional field keeps its stored value; an explicit `null` clears a nullable one. An omitted Secret field keeps the stored Secret. `null` on a proxy `password` clears it. Saving a Mattermost, Telegram, Bridge or Slack Destination runs the Destination check as `createDestination` does and refuses a failing one with `destination_check_failed`.
Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
Corresponds with PUT /destinations/{destination_id} (the `UpdateDestination` operationId).
func (*ClientWithResponses) UpdateDestinationWithResponse ¶
func (c *ClientWithResponses) UpdateDestinationWithResponse(ctx context.Context, destinationId DestinationId, params *UpdateDestinationParams, body UpdateDestinationJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateDestinationResponse, error)
UpdateDestinationWithResponse Update Destination
Replaces the writable fields. Requires `If-Match`; a stale ETag gets `412`. An omitted optional field keeps its stored value; an explicit `null` clears a nullable one. An omitted Secret field keeps the stored Secret. `null` on a proxy `password` clears it. Saving a Mattermost, Telegram, Bridge or Slack Destination runs the Destination check as `createDestination` does and refuses a failing one with `destination_check_failed`.
Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
Corresponds with PUT /destinations/{destination_id} (the `UpdateDestination` operationId).
func (*ClientWithResponses) UpdateIntegrationWithBodyWithResponse ¶
func (c *ClientWithResponses) UpdateIntegrationWithBodyWithResponse(ctx context.Context, integrationId IntegrationId, params *UpdateIntegrationParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateIntegrationResponse, error)
UpdateIntegrationWithBodyWithResponse Update Integration
Replaces the writable fields. Requires `If-Match`; a stale ETag gets `412`. An omitted optional field keeps its stored value; an explicit `null` clears a nullable one.
Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
Corresponds with PUT /integrations/{integration_id} (the `UpdateIntegration` operationId).
func (*ClientWithResponses) UpdateIntegrationWithResponse ¶
func (c *ClientWithResponses) UpdateIntegrationWithResponse(ctx context.Context, integrationId IntegrationId, params *UpdateIntegrationParams, body UpdateIntegrationJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateIntegrationResponse, error)
UpdateIntegrationWithResponse Update Integration
Replaces the writable fields. Requires `If-Match`; a stale ETag gets `412`. An omitted optional field keeps its stored value; an explicit `null` clears a nullable one.
Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
Corresponds with PUT /integrations/{integration_id} (the `UpdateIntegration` operationId).
func (*ClientWithResponses) UpdateLinkRuleWithBodyWithResponse ¶
func (c *ClientWithResponses) UpdateLinkRuleWithBodyWithResponse(ctx context.Context, linkRuleId LinkRuleId, params *UpdateLinkRuleParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateLinkRuleResponse, error)
UpdateLinkRuleWithBodyWithResponse Update LinkRule
Replaces the writable fields. Requires `If-Match`; a stale ETag gets `412`. An omitted optional field keeps its stored value; an explicit `null` clears a nullable one.
Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
Corresponds with PUT /link-rules/{link_rule_id} (the `UpdateLinkRule` operationId).
func (*ClientWithResponses) UpdateLinkRuleWithResponse ¶
func (c *ClientWithResponses) UpdateLinkRuleWithResponse(ctx context.Context, linkRuleId LinkRuleId, params *UpdateLinkRuleParams, body UpdateLinkRuleJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateLinkRuleResponse, error)
UpdateLinkRuleWithResponse Update LinkRule
Replaces the writable fields. Requires `If-Match`; a stale ETag gets `412`. An omitted optional field keeps its stored value; an explicit `null` clears a nullable one.
Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
Corresponds with PUT /link-rules/{link_rule_id} (the `UpdateLinkRule` operationId).
func (*ClientWithResponses) UpdateLookupTableWithBodyWithResponse ¶
func (c *ClientWithResponses) UpdateLookupTableWithBodyWithResponse(ctx context.Context, lookupTableId LookupTableId, params *UpdateLookupTableParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateLookupTableResponse, error)
UpdateLookupTableWithBodyWithResponse Update LookupTable
Replaces the writable fields. Requires `If-Match`; a stale ETag gets `412`. An omitted optional field keeps its stored value; an explicit `null` clears a nullable one. A new name for a table that the URL template of a Link rule reads by its name is refused with `409` (`in_use`), `link_rules` naming the rules, since they would read nothing.
Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
Corresponds with PUT /lookup-tables/{lookup_table_id} (the `UpdateLookupTable` operationId).
func (*ClientWithResponses) UpdateLookupTableWithResponse ¶
func (c *ClientWithResponses) UpdateLookupTableWithResponse(ctx context.Context, lookupTableId LookupTableId, params *UpdateLookupTableParams, body UpdateLookupTableJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateLookupTableResponse, error)
UpdateLookupTableWithResponse Update LookupTable
Replaces the writable fields. Requires `If-Match`; a stale ETag gets `412`. An omitted optional field keeps its stored value; an explicit `null` clears a nullable one. A new name for a table that the URL template of a Link rule reads by its name is refused with `409` (`in_use`), `link_rules` naming the rules, since they would read nothing.
Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
Corresponds with PUT /lookup-tables/{lookup_table_id} (the `UpdateLookupTable` operationId).
func (*ClientWithResponses) UpdateMeWithBodyWithResponse ¶
func (c *ClientWithResponses) UpdateMeWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateMeResponse, error)
UpdateMeWithBodyWithResponse Update own profile
Changes name, time zone and language. Web session only.
Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
Corresponds with PUT /me (the `UpdateMe` operationId).
func (*ClientWithResponses) UpdateMeWithResponse ¶
func (c *ClientWithResponses) UpdateMeWithResponse(ctx context.Context, body UpdateMeJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateMeResponse, error)
UpdateMeWithResponse Update own profile
Changes name, time zone and language. Web session only.
Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
Corresponds with PUT /me (the `UpdateMe` operationId).
func (*ClientWithResponses) UpdateOidcSettingsWithBodyWithResponse ¶
func (c *ClientWithResponses) UpdateOidcSettingsWithBodyWithResponse(ctx context.Context, params *UpdateOidcSettingsParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateOidcSettingsResponse, error)
UpdateOidcSettingsWithBodyWithResponse Update OIDC settings
Replaces the writable fields; omitted optional fields keep their value. Saving with an empty mapping and no Role for unmatched users returns the warning `nobody_can_sign_in` in the result. The Audit log diff shows only that the client secret changed.
Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
Corresponds with PUT /oidc-settings (the `UpdateOidcSettings` operationId).
func (*ClientWithResponses) UpdateOidcSettingsWithResponse ¶
func (c *ClientWithResponses) UpdateOidcSettingsWithResponse(ctx context.Context, params *UpdateOidcSettingsParams, body UpdateOidcSettingsJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateOidcSettingsResponse, error)
UpdateOidcSettingsWithResponse Update OIDC settings
Replaces the writable fields; omitted optional fields keep their value. Saving with an empty mapping and no Role for unmatched users returns the warning `nobody_can_sign_in` in the result. The Audit log diff shows only that the client secret changed.
Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
Corresponds with PUT /oidc-settings (the `UpdateOidcSettings` operationId).
func (*ClientWithResponses) UpdateOrganizationWithBodyWithResponse ¶
func (c *ClientWithResponses) UpdateOrganizationWithBodyWithResponse(ctx context.Context, params *UpdateOrganizationParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateOrganizationResponse, error)
UpdateOrganizationWithBodyWithResponse Update the Organization
Replaces the writable fields. Requires `If-Match`; a stale ETag gets `412`. An omitted optional field keeps its stored value; an explicit `null` clears a nullable one. An omitted Secret field keeps the stored Secret. `null` on `outgoing_heartbeat.url` or a proxy `password` clears it. Every field is validated; an invalid one gets `422` at the full JSON pointer of the field, such as `/severity_styles/1/color` or `/retention/alert_details_days`, with `invalid_format`, `duplicate`, `required`, `too_short`, `too_long`, `out_of_range` or `retention_order`. A retention period or `oidc_token_grace_seconds` beyond its `maximum`, a `workday_start` that is not `HH:MM` on the 24-hour clock and a `week_start` that is not a day of the week are refused with `400` by request validation, `invalid_format` at `/workday_start` or `/week_start`; `out_of_range` and `invalid_format` are the second, defensive check of the same rules. A change is recorded in the Audit log as `organization.updated` with its before/after diff and announced with the `organization` hint; Severity levels and Instance labels apply to later evaluations only.
Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
Corresponds with PUT /organization (the `UpdateOrganization` operationId).
func (*ClientWithResponses) UpdateOrganizationWithResponse ¶
func (c *ClientWithResponses) UpdateOrganizationWithResponse(ctx context.Context, params *UpdateOrganizationParams, body UpdateOrganizationJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateOrganizationResponse, error)
UpdateOrganizationWithResponse Update the Organization
Replaces the writable fields. Requires `If-Match`; a stale ETag gets `412`. An omitted optional field keeps its stored value; an explicit `null` clears a nullable one. An omitted Secret field keeps the stored Secret. `null` on `outgoing_heartbeat.url` or a proxy `password` clears it. Every field is validated; an invalid one gets `422` at the full JSON pointer of the field, such as `/severity_styles/1/color` or `/retention/alert_details_days`, with `invalid_format`, `duplicate`, `required`, `too_short`, `too_long`, `out_of_range` or `retention_order`. A retention period or `oidc_token_grace_seconds` beyond its `maximum`, a `workday_start` that is not `HH:MM` on the 24-hour clock and a `week_start` that is not a day of the week are refused with `400` by request validation, `invalid_format` at `/workday_start` or `/week_start`; `out_of_range` and `invalid_format` are the second, defensive check of the same rules. A change is recorded in the Audit log as `organization.updated` with its before/after diff and announced with the `organization` hint; Severity levels and Instance labels apply to later evaluations only.
Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
Corresponds with PUT /organization (the `UpdateOrganization` operationId).
func (*ClientWithResponses) UpdateOutboundPolicyWithBodyWithResponse ¶
func (c *ClientWithResponses) UpdateOutboundPolicyWithBodyWithResponse(ctx context.Context, params *UpdateOutboundPolicyParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateOutboundPolicyResponse, error)
UpdateOutboundPolicyWithBodyWithResponse Update the outbound address policy
Replaces the policy and its lists. Requires `If-Match`; a stale ETag gets `412`. Each entry is a network in CIDR form or a bare address, a host name, or a domain written `*.example.org`; an entry that does not parse gets `422` with `invalid_format` and a repeated one `duplicate`, at `/allowed/<i>` or `/denied/<i>`. `always_blocked` is read-only and ignored. The change takes effect at once on every replica, idle pooled connections included, is recorded in the Audit log as `outbound_policy.updated` and is announced with the `organization` hint. Needs `organization:write`.
Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
Corresponds with PUT /organization/outbound-policy (the `UpdateOutboundPolicy` operationId).
func (*ClientWithResponses) UpdateOutboundPolicyWithResponse ¶
func (c *ClientWithResponses) UpdateOutboundPolicyWithResponse(ctx context.Context, params *UpdateOutboundPolicyParams, body UpdateOutboundPolicyJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateOutboundPolicyResponse, error)
UpdateOutboundPolicyWithResponse Update the outbound address policy
Replaces the policy and its lists. Requires `If-Match`; a stale ETag gets `412`. Each entry is a network in CIDR form or a bare address, a host name, or a domain written `*.example.org`; an entry that does not parse gets `422` with `invalid_format` and a repeated one `duplicate`, at `/allowed/<i>` or `/denied/<i>`. `always_blocked` is read-only and ignored. The change takes effect at once on every replica, idle pooled connections included, is recorded in the Audit log as `outbound_policy.updated` and is announced with the `organization` hint. Needs `organization:write`.
Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
Corresponds with PUT /organization/outbound-policy (the `UpdateOutboundPolicy` operationId).
func (*ClientWithResponses) UpdateRouteWithBodyWithResponse ¶
func (c *ClientWithResponses) UpdateRouteWithBodyWithResponse(ctx context.Context, routeId RouteId, params *UpdateRouteParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateRouteResponse, error)
UpdateRouteWithBodyWithResponse Update a Route
Replaces the writable fields. Requires `If-Match`; a stale ETag gets `412`. An omitted optional field keeps its stored value; an explicit `null` clears a nullable one.
Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
Corresponds with PUT /routes/{route_id} (the `UpdateRoute` operationId).
func (*ClientWithResponses) UpdateRouteWithResponse ¶
func (c *ClientWithResponses) UpdateRouteWithResponse(ctx context.Context, routeId RouteId, params *UpdateRouteParams, body UpdateRouteJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateRouteResponse, error)
UpdateRouteWithResponse Update a Route
Replaces the writable fields. Requires `If-Match`; a stale ETag gets `412`. An omitted optional field keeps its stored value; an explicit `null` clears a nullable one.
Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
Corresponds with PUT /routes/{route_id} (the `UpdateRoute` operationId).
func (*ClientWithResponses) UpdateServiceAccountWithBodyWithResponse ¶
func (c *ClientWithResponses) UpdateServiceAccountWithBodyWithResponse(ctx context.Context, serviceAccountId ServiceAccountId, params *UpdateServiceAccountParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateServiceAccountResponse, error)
UpdateServiceAccountWithBodyWithResponse Update a Service account
A token may only assign a Role whose Permissions it holds itself (`422` `permission_not_held` at `/role`).
Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
Corresponds with PUT /service-accounts/{service_account_id} (the `UpdateServiceAccount` operationId).
func (*ClientWithResponses) UpdateServiceAccountWithResponse ¶
func (c *ClientWithResponses) UpdateServiceAccountWithResponse(ctx context.Context, serviceAccountId ServiceAccountId, params *UpdateServiceAccountParams, body UpdateServiceAccountJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateServiceAccountResponse, error)
UpdateServiceAccountWithResponse Update a Service account
A token may only assign a Role whose Permissions it holds itself (`422` `permission_not_held` at `/role`).
Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
Corresponds with PUT /service-accounts/{service_account_id} (the `UpdateServiceAccount` operationId).
func (*ClientWithResponses) UpdateUserWithBodyWithResponse ¶
func (c *ClientWithResponses) UpdateUserWithBodyWithResponse(ctx context.Context, userId UserId, params *UpdateUserParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateUserResponse, error)
UpdateUserWithBodyWithResponse Update a user
Changes name, email and Role. A Role change ends the user's sessions. Refused with `409` (`role_locked`) for a Role change of an account that signs in through OIDC while OIDC and `oidc.sync_role` are both on, and with `409` (`last_admin`) when it would give the last active Admin a lower Role. A token may only assign a Role whose Permissions it holds itself (`422` `permission_not_held` at `/role`).
Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
Corresponds with PUT /users/{user_id} (the `UpdateUser` operationId).
func (*ClientWithResponses) UpdateUserWithResponse ¶
func (c *ClientWithResponses) UpdateUserWithResponse(ctx context.Context, userId UserId, params *UpdateUserParams, body UpdateUserJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateUserResponse, error)
UpdateUserWithResponse Update a user
Changes name, email and Role. A Role change ends the user's sessions. Refused with `409` (`role_locked`) for a Role change of an account that signs in through OIDC while OIDC and `oidc.sync_role` are both on, and with `409` (`last_admin`) when it would give the last active Admin a lower Role. A token may only assign a Role whose Permissions it holds itself (`422` `permission_not_held` at `/role`).
Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
Corresponds with PUT /users/{user_id} (the `UpdateUser` operationId).
type ClientWithResponsesInterface ¶
type ClientWithResponsesInterface interface {
// GetAlertGroupCountsWithResponse Count Alert Groups per status
//
// Counts per status tab for the same filters as `listAlertGroups`, `status` excluded.
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with GET /alert-group-counts (the `GetAlertGroupCounts` operationId).
GetAlertGroupCountsWithResponse(ctx context.Context, params *GetAlertGroupCountsParams, reqEditors ...RequestEditorFn) (*GetAlertGroupCountsResponse, error)
// GetAlertGroupStatisticsWithResponse Read Alert Group statistics
//
// Number of Alert Groups, time to acknowledge and time to resolve (median and 95th percentile), as totals and per day of start, from the summary rows, one item per Route or per Integration as `group_by` says. Narrow it with `route` or `integration` ids (the one that matches `group_by`); without them every Route or Integration is returned. An Alert Group with Alerts from several Integrations counts for each.
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with GET /alert-group-statistics (the `GetAlertGroupStatistics` operationId).
GetAlertGroupStatisticsWithResponse(ctx context.Context, params *GetAlertGroupStatisticsParams, reqEditors ...RequestEditorFn) (*GetAlertGroupStatisticsResponse, error)
// ListAlertGroupsWithResponse List Alert Groups
//
// The main working list. Without `status` it returns open Alert Groups (firing, acknowledged, snoozed). Without `from` and `to` it covers the last `alert_group.list_range` (7 days) and selects Alert Groups whose lifetime overlaps the range, so one that has been firing for weeks is always included. Search matches `#N` and text in the title or `summary`. Changes arrive as `alert-group` and `alert-groups` hints.
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with GET /alert-groups (the `ListAlertGroups` operationId).
ListAlertGroupsWithResponse(ctx context.Context, params *ListAlertGroupsParams, reqEditors ...RequestEditorFn) (*ListAlertGroupsResponse, error)
// RunBulkCommandWithBodyWithResponse Run a Command on several Alert Groups
//
// Acknowledge, Resolve, Snooze or Unsnooze on up to `alert_group.bulk_max` Alert Groups. Each goes through the dispatcher on its own, with its own Audit log and Timeline entry; a refusal never stops the others. Bulk Acknowledge skips Alert Groups another user owns and never makes a Takeover. `x-permission` lists alternatives: the caller needs the Permission of the chosen command (`acknowledge` needs `alert-groups:acknowledge`, `resolve` needs `alert-groups:resolve`, `snooze` and `unsnooze` need `alert-groups:snooze`). A bulk Snooze with a `preset` computes its end once, so every Alert Group gets the same end; the pointers of its problems start with `/snooze`.
//
// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
//
// Corresponds with POST /alert-groups/bulk-commands (the `RunBulkCommand` operationId).
RunBulkCommandWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*RunBulkCommandResponse, error)
// RunBulkCommandWithResponse Run a Command on several Alert Groups
//
// Acknowledge, Resolve, Snooze or Unsnooze on up to `alert_group.bulk_max` Alert Groups. Each goes through the dispatcher on its own, with its own Audit log and Timeline entry; a refusal never stops the others. Bulk Acknowledge skips Alert Groups another user owns and never makes a Takeover. `x-permission` lists alternatives: the caller needs the Permission of the chosen command (`acknowledge` needs `alert-groups:acknowledge`, `resolve` needs `alert-groups:resolve`, `snooze` and `unsnooze` need `alert-groups:snooze`). A bulk Snooze with a `preset` computes its end once, so every Alert Group gets the same end; the pointers of its problems start with `/snooze`.
//
// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
//
// Corresponds with POST /alert-groups/bulk-commands (the `RunBulkCommand` operationId).
RunBulkCommandWithResponse(ctx context.Context, body RunBulkCommandJSONRequestBody, reqEditors ...RequestEditorFn) (*RunBulkCommandResponse, error)
// GetAlertGroupWithResponse Read an Alert Group
//
// An Alert Group whose details were removed by retention opens as its summary with the notice `details_removed`; its Notes stay until the summary row is removed.
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with GET /alert-groups/{alert_group_id} (the `GetAlertGroup` operationId).
GetAlertGroupWithResponse(ctx context.Context, alertGroupId AlertGroupId, reqEditors ...RequestEditorFn) (*GetAlertGroupResponse, error)
// AcknowledgeAlertGroupWithResponse Acknowledge
//
// From firing or snoozed: the caller becomes the Owner and a Snooze ends. By the current Owner it changes nothing (`outcome` `unchanged`). By another user it is a Takeover: ownership moves, a Loud event mentions the previous Owner. A Personal access token acts as its User and may; a Service account token cannot become an Owner and is refused with `409` `command-refused` and the code `owner_must_be_user`. Other refusals: `already_resolved`.
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with POST /alert-groups/{alert_group_id}/acknowledge (the `AcknowledgeAlertGroup` operationId).
AcknowledgeAlertGroupWithResponse(ctx context.Context, alertGroupId AlertGroupId, reqEditors ...RequestEditorFn) (*AcknowledgeAlertGroupResponse, error)
// ListAlertGroupAlertsWithResponse List the Alerts of an Alert Group
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with GET /alert-groups/{alert_group_id}/alerts (the `ListAlertGroupAlerts` operationId).
ListAlertGroupAlertsWithResponse(ctx context.Context, alertGroupId AlertGroupId, params *ListAlertGroupAlertsParams, reqEditors ...RequestEditorFn) (*ListAlertGroupAlertsResponse, error)
// ListAlertGroupDeliveriesWithResponse Read delivery state per Destination
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with GET /alert-groups/{alert_group_id}/deliveries (the `ListAlertGroupDeliveries` operationId).
ListAlertGroupDeliveriesWithResponse(ctx context.Context, alertGroupId AlertGroupId, reqEditors ...RequestEditorFn) (*ListAlertGroupDeliveriesResponse, error)
// ListAlertGroupNotesWithResponse List Notes
//
// Notes are kept as long as the Alert Group's summary row (`retention.alert_group_summaries`), also after its Alerts and Timeline were removed by retention, and are deleted with the summary row.
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with GET /alert-groups/{alert_group_id}/notes (the `ListAlertGroupNotes` operationId).
ListAlertGroupNotesWithResponse(ctx context.Context, alertGroupId AlertGroupId, params *ListAlertGroupNotesParams, reqEditors ...RequestEditorFn) (*ListAlertGroupNotesResponse, error)
// CreateAlertGroupNoteWithBodyWithResponse Add a Note
//
// Adds a Note. Service accounts may add Notes; the author is shown as the Service account.
//
// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
//
// Corresponds with POST /alert-groups/{alert_group_id}/notes (the `CreateAlertGroupNote` operationId).
CreateAlertGroupNoteWithBodyWithResponse(ctx context.Context, alertGroupId AlertGroupId, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateAlertGroupNoteResponse, error)
// CreateAlertGroupNoteWithResponse Add a Note
//
// Adds a Note. Service accounts may add Notes; the author is shown as the Service account.
//
// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
//
// Corresponds with POST /alert-groups/{alert_group_id}/notes (the `CreateAlertGroupNote` operationId).
CreateAlertGroupNoteWithResponse(ctx context.Context, alertGroupId AlertGroupId, body CreateAlertGroupNoteJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateAlertGroupNoteResponse, error)
// ListRelatedAlertGroupsWithResponse List previous Alert Groups with the same key
//
// Alert Groups of the same Route with the same Group key values, newest first.
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with GET /alert-groups/{alert_group_id}/related (the `ListRelatedAlertGroups` operationId).
ListRelatedAlertGroupsWithResponse(ctx context.Context, alertGroupId AlertGroupId, params *ListRelatedAlertGroupsParams, reqEditors ...RequestEditorFn) (*ListRelatedAlertGroupsResponse, error)
// ResolveAlertGroupWithBodyWithResponse Resolve
//
// Resolves by the user, with an optional Note recorded in the same request. Refused with the code `already_resolved`.
//
// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
//
// Corresponds with POST /alert-groups/{alert_group_id}/resolve (the `ResolveAlertGroup` operationId).
ResolveAlertGroupWithBodyWithResponse(ctx context.Context, alertGroupId AlertGroupId, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ResolveAlertGroupResponse, error)
// ResolveAlertGroupWithResponse Resolve
//
// Resolves by the user, with an optional Note recorded in the same request. Refused with the code `already_resolved`.
//
// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
//
// Corresponds with POST /alert-groups/{alert_group_id}/resolve (the `ResolveAlertGroup` operationId).
ResolveAlertGroupWithResponse(ctx context.Context, alertGroupId AlertGroupId, body ResolveAlertGroupJSONRequestBody, reqEditors ...RequestEditorFn) (*ResolveAlertGroupResponse, error)
// SnoozeAlertGroupWithBodyWithResponse Snooze
//
// A Snooze until a future time (`until`), with no end (`no_end: true`) or until a Snooze preset (`preset`), chosen explicitly. A preset's end is computed when the Command runs and stored as an instant. Allowed from firing, acknowledged and snoozed.
//
// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
//
// Corresponds with POST /alert-groups/{alert_group_id}/snooze (the `SnoozeAlertGroup` operationId).
SnoozeAlertGroupWithBodyWithResponse(ctx context.Context, alertGroupId AlertGroupId, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*SnoozeAlertGroupResponse, error)
// SnoozeAlertGroupWithResponse Snooze
//
// A Snooze until a future time (`until`), with no end (`no_end: true`) or until a Snooze preset (`preset`), chosen explicitly. A preset's end is computed when the Command runs and stored as an instant. Allowed from firing, acknowledged and snoozed.
//
// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
//
// Corresponds with POST /alert-groups/{alert_group_id}/snooze (the `SnoozeAlertGroup` operationId).
SnoozeAlertGroupWithResponse(ctx context.Context, alertGroupId AlertGroupId, body SnoozeAlertGroupJSONRequestBody, reqEditors ...RequestEditorFn) (*SnoozeAlertGroupResponse, error)
// AnswerReminderWithResponse Answer a Reminder with "Still on it"
//
// Owner only. Recorded in the Timeline like a press in a messenger; it does not reset the Reminder interval. Refused with `409` `command-refused` and the codes `not_owner`, `no_reminder_pending` and, for a Service account token, `owner_must_be_user`.
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with POST /alert-groups/{alert_group_id}/still-on-it (the `AnswerReminder` operationId).
AnswerReminderWithResponse(ctx context.Context, alertGroupId AlertGroupId, reqEditors ...RequestEditorFn) (*AnswerReminderResponse, error)
// GetAlertGroupTimelineWithResponse Read the Timeline of an Alert Group
//
// Entries of all kinds, with delivery events merged in by time as the kind `delivery`. Lifecycle events carry `event`, `loudness` and `mentions`. Notes are kept as long as the summary row, so after the details were removed by retention the Timeline still returns them.
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with GET /alert-groups/{alert_group_id}/timeline (the `GetAlertGroupTimeline` operationId).
GetAlertGroupTimelineWithResponse(ctx context.Context, alertGroupId AlertGroupId, params *GetAlertGroupTimelineParams, reqEditors ...RequestEditorFn) (*GetAlertGroupTimelineResponse, error)
// UnacknowledgeAlertGroupWithResponse Unacknowledge
//
// Allowed to every user with the Permission, not only the Owner. The Alert Group becomes firing without an Owner. Refused with the code `not_acknowledged`.
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with POST /alert-groups/{alert_group_id}/unacknowledge (the `UnacknowledgeAlertGroup` operationId).
UnacknowledgeAlertGroupWithResponse(ctx context.Context, alertGroupId AlertGroupId, reqEditors ...RequestEditorFn) (*UnacknowledgeAlertGroupResponse, error)
// UnresolveAlertGroupWithResponse Unresolve
//
// Only for an Alert Group a person resolved; messengers never offer it. Refused, in this order, with the codes `not_resolved`, `resolved_automatically`, `route_deleted`, `newer_alert_group_exists` (see `related_alert_group`) and `all_alerts_resolved`.
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with POST /alert-groups/{alert_group_id}/unresolve (the `UnresolveAlertGroup` operationId).
UnresolveAlertGroupWithResponse(ctx context.Context, alertGroupId AlertGroupId, reqEditors ...RequestEditorFn) (*UnresolveAlertGroupResponse, error)
// UnsnoozeAlertGroupWithResponse Unsnooze
//
// The Alert Group becomes firing without an Owner. Refused with the code `not_snoozed`.
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with POST /alert-groups/{alert_group_id}/unsnooze (the `UnsnoozeAlertGroup` operationId).
UnsnoozeAlertGroupWithResponse(ctx context.Context, alertGroupId AlertGroupId, reqEditors ...RequestEditorFn) (*UnsnoozeAlertGroupResponse, error)
// ListAuditLogWithResponse List Audit log entries
//
// Newest first. The log is append-only; configuration changes carry a before/after diff in which Secrets only show that they changed.
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with GET /audit-log (the `ListAuditLog` operationId).
ListAuditLogWithResponse(ctx context.Context, params *ListAuditLogParams, reqEditors ...RequestEditorFn) (*ListAuditLogResponse, error)
// BridgeEventWithBodyWithResponse Receive a Bridge event (push event delivery)
//
// Used only when the Bridge Connection's event delivery mode is `push`: the bridge posts each event, one per request, signed as Standard Webhooks specifies with the Connection's push secret. Muster verifies `webhook-signature` — `v1,` followed by the base64 of HMAC-SHA256 over `<webhook-id>.<webhook-timestamp>.<body>` with the decoded secret, any of several signatures separated by spaces — in constant time, refuses a `webhook-timestamp` further than `bridge.push_tolerance` from its real clock, and requires `webhook-id` to equal the event's `id`. It handles each event `id` of a Connection once within `bridge.event_dedup_window`, answers the person behind the event, when it does, before it answers `204`, and answers `204` also for an `id` it handled before. A bad signature, a timestamp out of range, an unknown or deleted Connection and a Connection in poll mode are all answered `401` and change nothing, so the endpoint reveals nothing about which Connections exist; a body that is no event of the Bridge protocol, or whose `id` is not `webhook-id`, is answered `400`, and the bridge drops it; an event whose handling failed is answered `500`, is not recorded as handled, and the bridge sends it again. Request validation does not answer `400` here: the handler decides every answer.
//
// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
//
// Corresponds with POST /callbacks/bridge/{connection_id} (the `BridgeEvent` operationId).
BridgeEventWithBodyWithResponse(ctx context.Context, connectionId ConnectionId, params *BridgeEventParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*BridgeEventResponse, error)
// BridgeEventWithResponse Receive a Bridge event (push event delivery)
//
// Used only when the Bridge Connection's event delivery mode is `push`: the bridge posts each event, one per request, signed as Standard Webhooks specifies with the Connection's push secret. Muster verifies `webhook-signature` — `v1,` followed by the base64 of HMAC-SHA256 over `<webhook-id>.<webhook-timestamp>.<body>` with the decoded secret, any of several signatures separated by spaces — in constant time, refuses a `webhook-timestamp` further than `bridge.push_tolerance` from its real clock, and requires `webhook-id` to equal the event's `id`. It handles each event `id` of a Connection once within `bridge.event_dedup_window`, answers the person behind the event, when it does, before it answers `204`, and answers `204` also for an `id` it handled before. A bad signature, a timestamp out of range, an unknown or deleted Connection and a Connection in poll mode are all answered `401` and change nothing, so the endpoint reveals nothing about which Connections exist; a body that is no event of the Bridge protocol, or whose `id` is not `webhook-id`, is answered `400`, and the bridge drops it; an event whose handling failed is answered `500`, is not recorded as handled, and the bridge sends it again. Request validation does not answer `400` here: the handler decides every answer.
//
// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
//
// Corresponds with POST /callbacks/bridge/{connection_id} (the `BridgeEvent` operationId).
BridgeEventWithResponse(ctx context.Context, connectionId ConnectionId, params *BridgeEventParams, body BridgeEventJSONRequestBody, reqEditors ...RequestEditorFn) (*BridgeEventResponse, error)
// MattermostActionWithBodyWithResponse Receive a Mattermost button press
//
// Sent by the Mattermost server. Mattermost does not sign the request: Muster verifies the signed action id with the key it names, checks that `post_id` and `channel_id` belong to the post the id was issued for, maps `user_id` to a User through the Account link of this Connection and dispatches the Command with the Transport `mattermost`. Every request is answered with `200` and a JSON object, an unknown or deleted Connection, a bad signature and a body that is not JSON or does not match `MattermostActionRequest` included; request validation does not answer `400` here. Whatever the person who pressed must read — a refusal, a failure, "not linked", or "not verified" for a press on a post Muster delivered in that channel — goes first as a separate ephemeral post, shown in the channel view, and the answer is then an empty object. That post needs the `create_post_ephemeral` permission, which a bot with the role Member lacks; when it is refused, or fails in any other way, the answer carries the text as `ephemeral_text`, which Mattermost shows to that person alone in the Thread of the Root message and which needs no permission. Every other answer is an empty object, so the endpoint tells a caller nothing about which Connection ids exist. The answer never carries `update`: only the delivery worker edits the Root message.
//
// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
//
// Corresponds with POST /callbacks/mattermost/{connection_id} (the `MattermostAction` operationId).
MattermostActionWithBodyWithResponse(ctx context.Context, connectionId ConnectionId, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*MattermostActionResponse, error)
// MattermostActionWithResponse Receive a Mattermost button press
//
// Sent by the Mattermost server. Mattermost does not sign the request: Muster verifies the signed action id with the key it names, checks that `post_id` and `channel_id` belong to the post the id was issued for, maps `user_id` to a User through the Account link of this Connection and dispatches the Command with the Transport `mattermost`. Every request is answered with `200` and a JSON object, an unknown or deleted Connection, a bad signature and a body that is not JSON or does not match `MattermostActionRequest` included; request validation does not answer `400` here. Whatever the person who pressed must read — a refusal, a failure, "not linked", or "not verified" for a press on a post Muster delivered in that channel — goes first as a separate ephemeral post, shown in the channel view, and the answer is then an empty object. That post needs the `create_post_ephemeral` permission, which a bot with the role Member lacks; when it is refused, or fails in any other way, the answer carries the text as `ephemeral_text`, which Mattermost shows to that person alone in the Thread of the Root message and which needs no permission. Every other answer is an empty object, so the endpoint tells a caller nothing about which Connection ids exist. The answer never carries `update`: only the delivery worker edits the Root message.
//
// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
//
// Corresponds with POST /callbacks/mattermost/{connection_id} (the `MattermostAction` operationId).
MattermostActionWithResponse(ctx context.Context, connectionId ConnectionId, body MattermostActionJSONRequestBody, reqEditors ...RequestEditorFn) (*MattermostActionResponse, error)
// SlackInteractionWithBodyWithResponse Receive a Slack button press (http event mode)
//
// Used only when the Slack Connection's event mode is `http`: Slack posts each interaction of the app, one per request, form-encoded with its JSON in `payload`. Muster reads the raw body, up to 1 MiB, before it parses the form, verifies `X-Slack-Signature` — `v0=` followed by the hex HMAC-SHA256 of `v0:<X-Slack-Request-Timestamp>:<raw body>` with the Connection's Slack signing secret — in constant time, and refuses an `X-Slack-Request-Timestamp` further than `slack.request_tolerance` from its real clock, either way. A missing or wrong signature, a timestamp out of range, an unknown or deleted Connection and a Connection in `socket` mode are all answered `401` with the same body and change nothing, so the endpoint reveals nothing about which Connections exist; a body over 1 MiB, or without a `payload` that is a JSON object, is answered `400`; a failure to read the Connection is answered `500`. Every other request is answered `200` with an empty body at once, before its press is handled, because Slack waits only 3 seconds: a `block_actions` press then runs its Command with the Transport `slack`, and the person who pressed is answered privately, with `chat.postEphemeral` or else the press's `response_url`, only when there is something to read; other kinds of interaction are ignored. Request validation does not answer here: the handler decides every answer.
//
// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
//
// Corresponds with POST /callbacks/slack/{connection_id} (the `SlackInteraction` operationId).
SlackInteractionWithBodyWithResponse(ctx context.Context, connectionId ConnectionId, params *SlackInteractionParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*SlackInteractionResponse, error)
// SlackInteractionWithFormdataBodyWithResponse Receive a Slack button press (http event mode)
//
// Used only when the Slack Connection's event mode is `http`: Slack posts each interaction of the app, one per request, form-encoded with its JSON in `payload`. Muster reads the raw body, up to 1 MiB, before it parses the form, verifies `X-Slack-Signature` — `v0=` followed by the hex HMAC-SHA256 of `v0:<X-Slack-Request-Timestamp>:<raw body>` with the Connection's Slack signing secret — in constant time, and refuses an `X-Slack-Request-Timestamp` further than `slack.request_tolerance` from its real clock, either way. A missing or wrong signature, a timestamp out of range, an unknown or deleted Connection and a Connection in `socket` mode are all answered `401` with the same body and change nothing, so the endpoint reveals nothing about which Connections exist; a body over 1 MiB, or without a `payload` that is a JSON object, is answered `400`; a failure to read the Connection is answered `500`. Every other request is answered `200` with an empty body at once, before its press is handled, because Slack waits only 3 seconds: a `block_actions` press then runs its Command with the Transport `slack`, and the person who pressed is answered privately, with `chat.postEphemeral` or else the press's `response_url`, only when there is something to read; other kinds of interaction are ignored. Request validation does not answer here: the handler decides every answer.
//
// Takes a body of the `application/x-www-form-urlencoded` content type, and returns a wrapper object for the known response body format(s).
//
// Corresponds with POST /callbacks/slack/{connection_id} (the `SlackInteraction` operationId).
SlackInteractionWithFormdataBodyWithResponse(ctx context.Context, connectionId ConnectionId, params *SlackInteractionParams, body SlackInteractionFormdataRequestBody, reqEditors ...RequestEditorFn) (*SlackInteractionResponse, error)
// TelegramWebhookWithBodyWithResponse Receive a Telegram update (webhook update mode)
//
// Used only when the Connection's update mode is `webhook`. A request without the right secret token header, or for a Connection that does not exist or is not in webhook mode, is answered `401` and changes nothing.
//
// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
//
// Corresponds with POST /callbacks/telegram/{connection_id} (the `TelegramWebhook` operationId).
TelegramWebhookWithBodyWithResponse(ctx context.Context, connectionId ConnectionId, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*TelegramWebhookResponse, error)
// TelegramWebhookWithResponse Receive a Telegram update (webhook update mode)
//
// Used only when the Connection's update mode is `webhook`. A request without the right secret token header, or for a Connection that does not exist or is not in webhook mode, is answered `401` and changes nothing.
//
// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
//
// Corresponds with POST /callbacks/telegram/{connection_id} (the `TelegramWebhook` operationId).
TelegramWebhookWithResponse(ctx context.Context, connectionId ConnectionId, body TelegramWebhookJSONRequestBody, reqEditors ...RequestEditorFn) (*TelegramWebhookResponse, error)
// ListConnectionsWithResponse List connections
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with GET /connections (the `ListConnections` operationId).
ListConnectionsWithResponse(ctx context.Context, params *ListConnectionsParams, reqEditors ...RequestEditorFn) (*ListConnectionsResponse, error)
// CreateConnectionWithBodyWithResponse Create Connection
//
// `type` selects Mattermost, Telegram, Bridge or Slack. The bot token, the push secret, the app-level token and the Slack signing secret are write-only Secrets.
//
// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
//
// Corresponds with POST /connections (the `CreateConnection` operationId).
CreateConnectionWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateConnectionResponse, error)
// CreateConnectionWithResponse Create Connection
//
// `type` selects Mattermost, Telegram, Bridge or Slack. The bot token, the push secret, the app-level token and the Slack signing secret are write-only Secrets.
//
// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
//
// Corresponds with POST /connections (the `CreateConnection` operationId).
CreateConnectionWithResponse(ctx context.Context, body CreateConnectionJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateConnectionResponse, error)
// CheckConnectionDraftWithBodyWithResponse Check a Connection before saving it
//
// Checks a draft of a Connection of any type, as its form holds it — the address, the bot token typed in the form, the proxy and, for a Bridge, the event delivery mode, for Slack the event mode and the app-level token — with the steps and step codes of `checkConnection`, and stores nothing: no Connection, no bot name, no `info`, no workspace or app, no Audit log entry. Which token goes where: a `bot_token` in the draft is sent to the address in the draft; without one, the stored token of `connection_id` is sent only when the draft's address, normalized as a save normalizes it, and its proxy are the saved ones; otherwise only the dry probe of the type runs, without any token, and the other steps are reported skipped — Mattermost `GET <server_url>/api/v4/system/ping`, Telegram `GET <bot_api_base_url>/bot0:x/getMe`, a Bridge `GET <base_url>/v1/info`, Slack `POST https://slack.com/api/auth.test` without `Authorization`. Slack's address is fixed, so only the proxy of a Slack draft can differ from the saved one; its step `app_token`, in `socket` mode, runs only with a bot token, and with an `app_token` in the draft or the stored one of `connection_id` on the saved proxy, and is reported skipped otherwise. A stored proxy password is used only with the saved proxy type and address. A `connection_id` that names no Connection, a deleted one or one of another type answers `422` `unknown_id` at `/connection_id`; an address or a proxy that a save would refuse answers `422` at its pointer. Runs on the interactive path: a draft with a `connection_id` takes its limiter token from that Connection, and when none is free within `delivery.interactive_budget` the answer is `503` with `Retry-After`; a draft of a new Connection has no limiter and waits for none.
//
// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
//
// Corresponds with POST /connections/checks (the `CheckConnectionDraft` operationId).
CheckConnectionDraftWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CheckConnectionDraftResponse, error)
// CheckConnectionDraftWithResponse Check a Connection before saving it
//
// Checks a draft of a Connection of any type, as its form holds it — the address, the bot token typed in the form, the proxy and, for a Bridge, the event delivery mode, for Slack the event mode and the app-level token — with the steps and step codes of `checkConnection`, and stores nothing: no Connection, no bot name, no `info`, no workspace or app, no Audit log entry. Which token goes where: a `bot_token` in the draft is sent to the address in the draft; without one, the stored token of `connection_id` is sent only when the draft's address, normalized as a save normalizes it, and its proxy are the saved ones; otherwise only the dry probe of the type runs, without any token, and the other steps are reported skipped — Mattermost `GET <server_url>/api/v4/system/ping`, Telegram `GET <bot_api_base_url>/bot0:x/getMe`, a Bridge `GET <base_url>/v1/info`, Slack `POST https://slack.com/api/auth.test` without `Authorization`. Slack's address is fixed, so only the proxy of a Slack draft can differ from the saved one; its step `app_token`, in `socket` mode, runs only with a bot token, and with an `app_token` in the draft or the stored one of `connection_id` on the saved proxy, and is reported skipped otherwise. A stored proxy password is used only with the saved proxy type and address. A `connection_id` that names no Connection, a deleted one or one of another type answers `422` `unknown_id` at `/connection_id`; an address or a proxy that a save would refuse answers `422` at its pointer. Runs on the interactive path: a draft with a `connection_id` takes its limiter token from that Connection, and when none is free within `delivery.interactive_budget` the answer is `503` with `Retry-After`; a draft of a new Connection has no limiter and waits for none.
//
// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
//
// Corresponds with POST /connections/checks (the `CheckConnectionDraft` operationId).
CheckConnectionDraftWithResponse(ctx context.Context, body CheckConnectionDraftJSONRequestBody, reqEditors ...RequestEditorFn) (*CheckConnectionDraftResponse, error)
// DeleteConnectionWithResponse Delete Connection
//
// A Connection used by Destinations cannot be deleted: `409` (`in_use`). Deleted Destinations do not count; deleting the Connection abandons the final edits still pending for them, which end as Not delivered.
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with DELETE /connections/{connection_id} (the `DeleteConnection` operationId).
DeleteConnectionWithResponse(ctx context.Context, connectionId ConnectionId, params *DeleteConnectionParams, reqEditors ...RequestEditorFn) (*DeleteConnectionResponse, error)
// GetConnectionWithResponse Read Connection
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with GET /connections/{connection_id} (the `GetConnection` operationId).
GetConnectionWithResponse(ctx context.Context, connectionId ConnectionId, reqEditors ...RequestEditorFn) (*GetConnectionResponse, error)
// UpdateConnectionWithBodyWithResponse Update Connection
//
// Replaces the writable fields. Requires `If-Match`; a stale ETag gets `412`. An omitted optional field keeps its stored value; an explicit `null` clears a nullable one. An omitted Secret field keeps the stored Secret.
//
// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
//
// Corresponds with PUT /connections/{connection_id} (the `UpdateConnection` operationId).
UpdateConnectionWithBodyWithResponse(ctx context.Context, connectionId ConnectionId, params *UpdateConnectionParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateConnectionResponse, error)
// UpdateConnectionWithResponse Update Connection
//
// Replaces the writable fields. Requires `If-Match`; a stale ETag gets `412`. An omitted optional field keeps its stored value; an explicit `null` clears a nullable one. An omitted Secret field keeps the stored Secret.
//
// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
//
// Corresponds with PUT /connections/{connection_id} (the `UpdateConnection` operationId).
UpdateConnectionWithResponse(ctx context.Context, connectionId ConnectionId, params *UpdateConnectionParams, body UpdateConnectionJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateConnectionResponse, error)
// ListConnectionChannelsWithResponse List channels visible to the bot
//
// The channels of a Connection's bot for the channel picker of the Destination form. A Mattermost Connection answers `MattermostChannelList`: the bot's teams, `team_id` alone when given, and its channels in each. A Slack Connection answers `SlackChannelList`: the public and private channels the bot is a member of and that are not archived, read with `conversations.list` (`types=public_channel,private_channel`, `exclude_archived=true`, `limit=200`) page by page, at most 5 pages, `truncated` when more were left; it ignores `team_id`. A Telegram or Bridge Connection answers `409`: the Admin enters the channel. Requires `connections:write` because it calls out with the bot token. Runs on the interactive path: when no limiter token is free within `delivery.interactive_budget`, or Slack answers a page with `429`, the answer is `503` with `Retry-After`, Slack's own when it sent one, and nothing more is read.
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with GET /connections/{connection_id}/channels (the `ListConnectionChannels` operationId).
ListConnectionChannelsWithResponse(ctx context.Context, connectionId ConnectionId, params *ListConnectionChannelsParams, reqEditors ...RequestEditorFn) (*ListConnectionChannelsResponse, error)
// CheckConnectionWithBodyWithResponse Check a Connection
//
// Mattermost verifies the token and returns the bot's name. Telegram works in steps and reports the latency and path of each: a dry probe without the token, `getMe`, `getWebhookInfo`. With `base_url` in the body only the dry probe runs against that unsaved address, without the token: a stored token is sent only to the saved address of its Connection, through its saved proxy; `checkConnectionDraft` checks an unsaved address with the token typed again. A Bridge Connection is checked in two steps: `info` calls `getInfo` of the Bridge protocol with the token, and a passing `info` is stored on the Connection and returned as `info`; `event_delivery` checks that the bridge offers the Connection's event delivery mode. A Slack Connection is checked in steps: `token` calls `auth.test` with the bot token and finds the bot and the workspace; `scopes` reads the `x-oauth-scopes` of that answer, which must name `chat:write`, `channels:read`, `groups:read`, `im:write`, `users:read` and `users:read.email`; in `socket` mode `app_token` calls `auth.test` with the app-level token and `bots.info` with the bot token, whose app ids must be equal. A passing check stores what it found and returns it as `slack`. Runs on the interactive path: when no limiter token is free within `delivery.interactive_budget`, the answer is `503` with `Retry-After`.
//
// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
//
// Corresponds with POST /connections/{connection_id}/checks (the `CheckConnection` operationId).
CheckConnectionWithBodyWithResponse(ctx context.Context, connectionId ConnectionId, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CheckConnectionResponse, error)
// CheckConnectionWithResponse Check a Connection
//
// Mattermost verifies the token and returns the bot's name. Telegram works in steps and reports the latency and path of each: a dry probe without the token, `getMe`, `getWebhookInfo`. With `base_url` in the body only the dry probe runs against that unsaved address, without the token: a stored token is sent only to the saved address of its Connection, through its saved proxy; `checkConnectionDraft` checks an unsaved address with the token typed again. A Bridge Connection is checked in two steps: `info` calls `getInfo` of the Bridge protocol with the token, and a passing `info` is stored on the Connection and returned as `info`; `event_delivery` checks that the bridge offers the Connection's event delivery mode. A Slack Connection is checked in steps: `token` calls `auth.test` with the bot token and finds the bot and the workspace; `scopes` reads the `x-oauth-scopes` of that answer, which must name `chat:write`, `channels:read`, `groups:read`, `im:write`, `users:read` and `users:read.email`; in `socket` mode `app_token` calls `auth.test` with the app-level token and `bots.info` with the bot token, whose app ids must be equal. A passing check stores what it found and returns it as `slack`. Runs on the interactive path: when no limiter token is free within `delivery.interactive_budget`, the answer is `503` with `Retry-After`.
//
// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
//
// Corresponds with POST /connections/{connection_id}/checks (the `CheckConnection` operationId).
CheckConnectionWithResponse(ctx context.Context, connectionId ConnectionId, body CheckConnectionJSONRequestBody, reqEditors ...RequestEditorFn) (*CheckConnectionResponse, error)
// ListDestinationsWithResponse List destinations
//
// All types, with health. Outgoing webhook URL and header templates are shown with Secret references only.
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with GET /destinations (the `ListDestinations` operationId).
ListDestinationsWithResponse(ctx context.Context, params *ListDestinationsParams, reqEditors ...RequestEditorFn) (*ListDestinationsResponse, error)
// CreateDestinationWithBodyWithResponse Create Destination
//
// `type` selects Mattermost, Telegram, outgoing webhook, Bridge or Slack. Saving a Mattermost, Telegram, Bridge or Slack Destination runs the Destination check through the interactive path and refuses one that fails it with `422` `validation-failed` and `destination_check_failed`. Creating an outgoing webhook Destination also generates its Signing secret, returned once in `signing_secret` (`null` for the other types). Routes attach Destinations through `destination_ids`.
//
// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
//
// Corresponds with POST /destinations (the `CreateDestination` operationId).
CreateDestinationWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateDestinationResponse, error)
// CreateDestinationWithResponse Create Destination
//
// `type` selects Mattermost, Telegram, outgoing webhook, Bridge or Slack. Saving a Mattermost, Telegram, Bridge or Slack Destination runs the Destination check through the interactive path and refuses one that fails it with `422` `validation-failed` and `destination_check_failed`. Creating an outgoing webhook Destination also generates its Signing secret, returned once in `signing_secret` (`null` for the other types). Routes attach Destinations through `destination_ids`.
//
// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
//
// Corresponds with POST /destinations (the `CreateDestination` operationId).
CreateDestinationWithResponse(ctx context.Context, body CreateDestinationJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateDestinationResponse, error)
// DeleteDestinationWithResponse Delete Destination
//
// Always allowed: the Destination leaves every Route, and open Root messages get one final edit "No longer updated here" and nothing after; then the Destination's secrets are wiped. An outgoing webhook in events mode has no Root message: its queued events are abandoned and end as Not delivered, no final event is sent, and its secrets are wiped at once (in mode `both`, after the final edits of the template mode). It is a soft delete: the Destination is kept for history and no longer counts as using its Connection. There is no `409`; a stale `If-Match` is `412`.
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with DELETE /destinations/{destination_id} (the `DeleteDestination` operationId).
DeleteDestinationWithResponse(ctx context.Context, destinationId DestinationId, params *DeleteDestinationParams, reqEditors ...RequestEditorFn) (*DeleteDestinationResponse, error)
// GetDestinationWithResponse Read Destination
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with GET /destinations/{destination_id} (the `GetDestination` operationId).
GetDestinationWithResponse(ctx context.Context, destinationId DestinationId, reqEditors ...RequestEditorFn) (*GetDestinationResponse, error)
// UpdateDestinationWithBodyWithResponse Update Destination
//
// Replaces the writable fields. Requires `If-Match`; a stale ETag gets `412`. An omitted optional field keeps its stored value; an explicit `null` clears a nullable one. An omitted Secret field keeps the stored Secret. `null` on a proxy `password` clears it. Saving a Mattermost, Telegram, Bridge or Slack Destination runs the Destination check as `createDestination` does and refuses a failing one with `destination_check_failed`.
//
// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
//
// Corresponds with PUT /destinations/{destination_id} (the `UpdateDestination` operationId).
UpdateDestinationWithBodyWithResponse(ctx context.Context, destinationId DestinationId, params *UpdateDestinationParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateDestinationResponse, error)
// UpdateDestinationWithResponse Update Destination
//
// Replaces the writable fields. Requires `If-Match`; a stale ETag gets `412`. An omitted optional field keeps its stored value; an explicit `null` clears a nullable one. An omitted Secret field keeps the stored Secret. `null` on a proxy `password` clears it. Saving a Mattermost, Telegram, Bridge or Slack Destination runs the Destination check as `createDestination` does and refuses a failing one with `destination_check_failed`.
//
// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
//
// Corresponds with PUT /destinations/{destination_id} (the `UpdateDestination` operationId).
UpdateDestinationWithResponse(ctx context.Context, destinationId DestinationId, params *UpdateDestinationParams, body UpdateDestinationJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateDestinationResponse, error)
// CheckDestinationWithResponse Run the Destination check
//
// Verifies that Muster can still reach and post to the Destination without sending a message: Mattermost token and channel membership; Telegram `getChat` for the channel, its discussion group from `linked_chat_id`, and `getChatMember` for the bot in both; Bridge `checkChannel`; Slack `conversations.info` (item `channel`). A success ends the Broken state. Not available for outgoing webhooks (`422` with `check_not_supported`). Runs on the interactive path: when no limiter token is free within `delivery.interactive_budget`, the answer is `503` with `Retry-After`.
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with POST /destinations/{destination_id}/checks (the `CheckDestination` operationId).
CheckDestinationWithResponse(ctx context.Context, destinationId DestinationId, reqEditors ...RequestEditorFn) (*CheckDestinationResponse, error)
// PreviewDestinationWithBodyWithResponse Preview a message or request
//
// Renders the Root message or the webhook requests for a chosen Alert Group or the example without sending anything. For a Bridge Destination the item `message` is the envelope as Muster would post it, as JSON (format `json`). For a Slack Destination the item `message` is the body of `chat.postMessage` as JSON (format `json`), and its `request` that call with the bot token masked.
//
// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
//
// Corresponds with POST /destinations/{destination_id}/previews (the `PreviewDestination` operationId).
PreviewDestinationWithBodyWithResponse(ctx context.Context, destinationId DestinationId, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PreviewDestinationResponse, error)
// PreviewDestinationWithResponse Preview a message or request
//
// Renders the Root message or the webhook requests for a chosen Alert Group or the example without sending anything. For a Bridge Destination the item `message` is the envelope as Muster would post it, as JSON (format `json`). For a Slack Destination the item `message` is the body of `chat.postMessage` as JSON (format `json`), and its `request` that call with the bot token masked.
//
// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
//
// Corresponds with POST /destinations/{destination_id}/previews (the `PreviewDestination` operationId).
PreviewDestinationWithResponse(ctx context.Context, destinationId DestinationId, body PreviewDestinationJSONRequestBody, reqEditors ...RequestEditorFn) (*PreviewDestinationResponse, error)
// ListDestinationSecretsWithResponse List the Secrets of a webhook Destination
//
// Names with `set` and the time of the last change. Values are never returned. `409` (`not_webhook_destination`) for a Destination that is not an outgoing webhook.
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with GET /destinations/{destination_id}/secrets (the `ListDestinationSecrets` operationId).
ListDestinationSecretsWithResponse(ctx context.Context, destinationId DestinationId, reqEditors ...RequestEditorFn) (*ListDestinationSecretsResponse, error)
// DeleteDestinationSecretWithResponse Delete a Secret of a webhook Destination
//
// `If-Match`, when given, is compared with the ETag of `listDestinationSecrets`.
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with DELETE /destinations/{destination_id}/secrets/{secret_name} (the `DeleteDestinationSecret` operationId).
DeleteDestinationSecretWithResponse(ctx context.Context, destinationId DestinationId, secretName SecretName, params *DeleteDestinationSecretParams, reqEditors ...RequestEditorFn) (*DeleteDestinationSecretResponse, error)
// SetDestinationSecretWithBodyWithResponse Set a Secret of a webhook Destination
//
// Creates or replaces the named Secret, referenced as `{{ .Secrets.<name> }}`. `If-Match`, when given, is compared with the ETag of `listDestinationSecrets`.
//
// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
//
// Corresponds with PUT /destinations/{destination_id}/secrets/{secret_name} (the `SetDestinationSecret` operationId).
SetDestinationSecretWithBodyWithResponse(ctx context.Context, destinationId DestinationId, secretName SecretName, params *SetDestinationSecretParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*SetDestinationSecretResponse, error)
// SetDestinationSecretWithResponse Set a Secret of a webhook Destination
//
// Creates or replaces the named Secret, referenced as `{{ .Secrets.<name> }}`. `If-Match`, when given, is compared with the ETag of `listDestinationSecrets`.
//
// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
//
// Corresponds with PUT /destinations/{destination_id}/secrets/{secret_name} (the `SetDestinationSecret` operationId).
SetDestinationSecretWithResponse(ctx context.Context, destinationId DestinationId, secretName SecretName, params *SetDestinationSecretParams, body SetDestinationSecretJSONRequestBody, reqEditors ...RequestEditorFn) (*SetDestinationSecretResponse, error)
// GetSigningSecretWithResponse Read the Signing secret status
//
// `409` (`not_webhook_destination`) for a Destination that is not an outgoing webhook.
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with GET /destinations/{destination_id}/signing-secret (the `GetSigningSecret` operationId).
GetSigningSecretWithResponse(ctx context.Context, destinationId DestinationId, reqEditors ...RequestEditorFn) (*GetSigningSecretResponse, error)
// GenerateSigningSecretWithResponse Regenerate the Signing secret
//
// The first Signing secret is generated when the Destination is created. This returns a new one, once; requests then carry signatures with both the new and the previous secret until `retirePreviousSigningSecret`.
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with POST /destinations/{destination_id}/signing-secret (the `GenerateSigningSecret` operationId).
GenerateSigningSecretWithResponse(ctx context.Context, destinationId DestinationId, reqEditors ...RequestEditorFn) (*GenerateSigningSecretResponse, error)
// RetirePreviousSigningSecretWithResponse Retire the previous Signing secret
//
// `409` (`not_webhook_destination`) for a Destination that is not an outgoing webhook.
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with DELETE /destinations/{destination_id}/signing-secret/previous (the `RetirePreviousSigningSecret` operationId).
RetirePreviousSigningSecretWithResponse(ctx context.Context, destinationId DestinationId, reqEditors ...RequestEditorFn) (*RetirePreviousSigningSecretResponse, error)
// TestDestinationWithBodyWithResponse Send a test message
//
// One "create" request marked "Test message", built from a recent Alert Group of one of the Destination's Routes or from a built-in example, through the interactive path. An outgoing webhook sends the `test` event in events mode and the "create" request in template mode, both when it uses both. Secrets and the Signing secret are masked in the result. Test messages are never reconciled and change no Alert Group. A successful test of a Broken Destination ends the Broken state. Audited. A step that could not get a limiter token in time ends with `error_class` `limited`. A Bridge Destination posts one test message of the kind `test` with `postMessage`. A Slack Destination posts one test message with `chat.postMessage`, the step `message` alone; a bot cannot press its own button, so the test cannot show that presses reach Muster.
//
// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
//
// Corresponds with POST /destinations/{destination_id}/tests (the `TestDestination` operationId).
TestDestinationWithBodyWithResponse(ctx context.Context, destinationId DestinationId, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*TestDestinationResponse, error)
// TestDestinationWithResponse Send a test message
//
// One "create" request marked "Test message", built from a recent Alert Group of one of the Destination's Routes or from a built-in example, through the interactive path. An outgoing webhook sends the `test` event in events mode and the "create" request in template mode, both when it uses both. Secrets and the Signing secret are masked in the result. Test messages are never reconciled and change no Alert Group. A successful test of a Broken Destination ends the Broken state. Audited. A step that could not get a limiter token in time ends with `error_class` `limited`. A Bridge Destination posts one test message of the kind `test` with `postMessage`. A Slack Destination posts one test message with `chat.postMessage`, the step `message` alone; a bot cannot press its own button, so the test cannot show that presses reach Muster.
//
// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
//
// Corresponds with POST /destinations/{destination_id}/tests (the `TestDestination` operationId).
TestDestinationWithResponse(ctx context.Context, destinationId DestinationId, body TestDestinationJSONRequestBody, reqEditors ...RequestEditorFn) (*TestDestinationResponse, error)
// PreviewGroupKeyWithBodyWithResponse Preview a Group key
//
// Counts the Alert Groups that the Stored Snapshots of the period would have produced with the current and with the proposed Group key.
//
// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
//
// Corresponds with POST /group-key-previews (the `PreviewGroupKey` operationId).
PreviewGroupKeyWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PreviewGroupKeyResponse, error)
// PreviewGroupKeyWithResponse Preview a Group key
//
// Counts the Alert Groups that the Stored Snapshots of the period would have produced with the current and with the proposed Group key.
//
// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
//
// Corresponds with POST /group-key-previews (the `PreviewGroupKey` operationId).
PreviewGroupKeyWithResponse(ctx context.Context, body PreviewGroupKeyJSONRequestBody, reqEditors ...RequestEditorFn) (*PreviewGroupKeyResponse, error)
// HeartbeatGetWithResponse Heartbeat signal (GET)
//
// Any request carrying one of the Integration's tokens counts as a signal; the body is ignored. The first signal moves the Heartbeat from waiting to live. While the Integration's Heartbeat is off, the request is answered `204` and nothing is recorded.
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with GET /heartbeat (the `HeartbeatGet` operationId).
HeartbeatGetWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*HeartbeatGetResponse, error)
// HeartbeatPostWithResponse Heartbeat signal (POST)
//
// Any request carrying one of the Integration's tokens counts as a signal; the body is ignored. The first signal moves the Heartbeat from waiting to live. While the Integration's Heartbeat is off, the request is answered `204` and nothing is recorded.
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with POST /heartbeat (the `HeartbeatPost` operationId).
HeartbeatPostWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*HeartbeatPostResponse, error)
// HeartbeatGetWithPathTokenWithResponse Heartbeat signal (GET, token in the path)
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with GET /heartbeat/{ingest_token} (the `HeartbeatGetWithPathToken` operationId).
HeartbeatGetWithPathTokenWithResponse(ctx context.Context, ingestToken IngestTokenInPath, reqEditors ...RequestEditorFn) (*HeartbeatGetWithPathTokenResponse, error)
// HeartbeatPostWithPathTokenWithResponse Heartbeat signal (POST, token in the path)
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with POST /heartbeat/{ingest_token} (the `HeartbeatPostWithPathToken` operationId).
HeartbeatPostWithPathTokenWithResponse(ctx context.Context, ingestToken IngestTokenInPath, reqEditors ...RequestEditorFn) (*HeartbeatPostWithPathTokenResponse, error)
// IngestSnapshotWithBodyWithResponse Receive an Alertmanager webhook
//
// Checks the token, then the body size, stores the body as a Stored Snapshot exactly as received and answers `202` after the write commits, without waiting for processing. It never answers `400`: a body that is not JSON, or does not look like an Alertmanager payload, is stored and fails later as a processing error (log event, `muster_ingest_failed_snapshots_total`, Stored Snapshot state `failed`), because Alertmanager does not retry a `4xx` and the notification would be lost. Not rate-limited. Counted in `muster_ingest_requests_total` with the outcome `accepted`, `unauthorized` or `too_large`. The only `5xx` is a failed write, which Alertmanager retries. Ingestion is excluded from request validation by the spec: the handler reads the raw body and the generated types are not used for it.
//
// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
//
// Corresponds with POST /ingest (the `IngestSnapshot` operationId).
IngestSnapshotWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*IngestSnapshotResponse, error)
// IngestSnapshotWithPathTokenWithBodyWithResponse Receive an Alertmanager webhook (token in the path)
//
// For senders that cannot set a header. Identical to `ingestSnapshot`. Logs record the route pattern, never the path.
//
// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
//
// Corresponds with POST /ingest/{ingest_token} (the `IngestSnapshotWithPathToken` operationId).
IngestSnapshotWithPathTokenWithBodyWithResponse(ctx context.Context, ingestToken IngestTokenInPath, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*IngestSnapshotWithPathTokenResponse, error)
// ListIntegrationsWithResponse List integrations
//
// Includes the built-in "Muster" Integration, marked `builtin`.
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with GET /integrations (the `ListIntegrations` operationId).
ListIntegrationsWithResponse(ctx context.Context, params *ListIntegrationsParams, reqEditors ...RequestEditorFn) (*ListIntegrationsResponse, error)
// CreateIntegrationWithBodyWithResponse Create Integration
//
// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
//
// Corresponds with POST /integrations (the `CreateIntegration` operationId).
CreateIntegrationWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateIntegrationResponse, error)
// CreateIntegrationWithResponse Create Integration
//
// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
//
// Corresponds with POST /integrations (the `CreateIntegration` operationId).
CreateIntegrationWithResponse(ctx context.Context, body CreateIntegrationJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateIntegrationResponse, error)
// DeleteIntegrationWithResponse Delete Integration
//
// Soft delete: its tokens stop working at once, its open Alerts are resolved with the reason "Integration {name} deleted", its Internal alerts are resolved, and its open Alert Groups are resolved. The built-in Integration cannot be deleted (`409`, `builtin_immutable`).
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with DELETE /integrations/{integration_id} (the `DeleteIntegration` operationId).
DeleteIntegrationWithResponse(ctx context.Context, integrationId IntegrationId, params *DeleteIntegrationParams, reqEditors ...RequestEditorFn) (*DeleteIntegrationResponse, error)
// GetIntegrationWithResponse Read Integration
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with GET /integrations/{integration_id} (the `GetIntegration` operationId).
GetIntegrationWithResponse(ctx context.Context, integrationId IntegrationId, reqEditors ...RequestEditorFn) (*GetIntegrationResponse, error)
// UpdateIntegrationWithBodyWithResponse Update Integration
//
// Replaces the writable fields. Requires `If-Match`; a stale ETag gets `412`. An omitted optional field keeps its stored value; an explicit `null` clears a nullable one.
//
// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
//
// Corresponds with PUT /integrations/{integration_id} (the `UpdateIntegration` operationId).
UpdateIntegrationWithBodyWithResponse(ctx context.Context, integrationId IntegrationId, params *UpdateIntegrationParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateIntegrationResponse, error)
// UpdateIntegrationWithResponse Update Integration
//
// Replaces the writable fields. Requires `If-Match`; a stale ETag gets `412`. An omitted optional field keeps its stored value; an explicit `null` clears a nullable one.
//
// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
//
// Corresponds with PUT /integrations/{integration_id} (the `UpdateIntegration` operationId).
UpdateIntegrationWithResponse(ctx context.Context, integrationId IntegrationId, params *UpdateIntegrationParams, body UpdateIntegrationJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateIntegrationResponse, error)
// ListAlertmanagerRoutesWithResponse List learned Alertmanager routes
//
// Routes taken from the `groupKey` of Snapshots, with the learned repeat interval and the resulting time to resolve by absence.
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with GET /integrations/{integration_id}/alertmanager-routes (the `ListAlertmanagerRoutes` operationId).
ListAlertmanagerRoutesWithResponse(ctx context.Context, integrationId IntegrationId, reqEditors ...RequestEditorFn) (*ListAlertmanagerRoutesResponse, error)
// ListIntegrationAlertsWithResponse List the Alerts view of an Integration
//
// The Alerts Muster currently tracks for the Integration. Resolved Alerts stay for `retention.alert_details`. Label filters follow the scheme of `label` on `listAlertGroups`.
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with GET /integrations/{integration_id}/alerts (the `ListIntegrationAlerts` operationId).
ListIntegrationAlertsWithResponse(ctx context.Context, integrationId IntegrationId, params *ListIntegrationAlertsParams, reqEditors ...RequestEditorFn) (*ListIntegrationAlertsResponse, error)
// ListIntegrationTokensWithResponse List Integration tokens
//
// Values are never returned.
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with GET /integrations/{integration_id}/tokens (the `ListIntegrationTokens` operationId).
ListIntegrationTokensWithResponse(ctx context.Context, integrationId IntegrationId, reqEditors ...RequestEditorFn) (*ListIntegrationTokensResponse, error)
// CreateIntegrationTokenWithBodyWithResponse Create an Integration token
//
// The token allows ingestion and Heartbeat and nothing else. The value and the ready Alertmanager snippet that contains it are returned once; a new snippet means a new token.
//
// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
//
// Corresponds with POST /integrations/{integration_id}/tokens (the `CreateIntegrationToken` operationId).
CreateIntegrationTokenWithBodyWithResponse(ctx context.Context, integrationId IntegrationId, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateIntegrationTokenResponse, error)
// CreateIntegrationTokenWithResponse Create an Integration token
//
// The token allows ingestion and Heartbeat and nothing else. The value and the ready Alertmanager snippet that contains it are returned once; a new snippet means a new token.
//
// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
//
// Corresponds with POST /integrations/{integration_id}/tokens (the `CreateIntegrationToken` operationId).
CreateIntegrationTokenWithResponse(ctx context.Context, integrationId IntegrationId, body CreateIntegrationTokenJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateIntegrationTokenResponse, error)
// RevokeIntegrationTokenWithResponse Revoke an Integration token
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with DELETE /integrations/{integration_id}/tokens/{integration_token_id} (the `RevokeIntegrationToken` operationId).
RevokeIntegrationTokenWithResponse(ctx context.Context, integrationId IntegrationId, integrationTokenId IntegrationTokenId, reqEditors ...RequestEditorFn) (*RevokeIntegrationTokenResponse, error)
// ListLinkRulesWithResponse List linkrules
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with GET /link-rules (the `ListLinkRules` operationId).
ListLinkRulesWithResponse(ctx context.Context, params *ListLinkRulesParams, reqEditors ...RequestEditorFn) (*ListLinkRulesResponse, error)
// CreateLinkRuleWithBodyWithResponse Create LinkRule
//
// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
//
// Corresponds with POST /link-rules (the `CreateLinkRule` operationId).
CreateLinkRuleWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateLinkRuleResponse, error)
// CreateLinkRuleWithResponse Create LinkRule
//
// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
//
// Corresponds with POST /link-rules (the `CreateLinkRule` operationId).
CreateLinkRuleWithResponse(ctx context.Context, body CreateLinkRuleJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateLinkRuleResponse, error)
// DeleteLinkRuleWithResponse Delete LinkRule
//
// The built-in "Explore" rule cannot be deleted (`409`).
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with DELETE /link-rules/{link_rule_id} (the `DeleteLinkRule` operationId).
DeleteLinkRuleWithResponse(ctx context.Context, linkRuleId LinkRuleId, params *DeleteLinkRuleParams, reqEditors ...RequestEditorFn) (*DeleteLinkRuleResponse, error)
// GetLinkRuleWithResponse Read LinkRule
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with GET /link-rules/{link_rule_id} (the `GetLinkRule` operationId).
GetLinkRuleWithResponse(ctx context.Context, linkRuleId LinkRuleId, reqEditors ...RequestEditorFn) (*GetLinkRuleResponse, error)
// UpdateLinkRuleWithBodyWithResponse Update LinkRule
//
// Replaces the writable fields. Requires `If-Match`; a stale ETag gets `412`. An omitted optional field keeps its stored value; an explicit `null` clears a nullable one.
//
// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
//
// Corresponds with PUT /link-rules/{link_rule_id} (the `UpdateLinkRule` operationId).
UpdateLinkRuleWithBodyWithResponse(ctx context.Context, linkRuleId LinkRuleId, params *UpdateLinkRuleParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateLinkRuleResponse, error)
// UpdateLinkRuleWithResponse Update LinkRule
//
// Replaces the writable fields. Requires `If-Match`; a stale ETag gets `412`. An omitted optional field keeps its stored value; an explicit `null` clears a nullable one.
//
// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
//
// Corresponds with PUT /link-rules/{link_rule_id} (the `UpdateLinkRule` operationId).
UpdateLinkRuleWithResponse(ctx context.Context, linkRuleId LinkRuleId, params *UpdateLinkRuleParams, body UpdateLinkRuleJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateLinkRuleResponse, error)
// StreamLiveUpdatesWithResponse Stream change hints
//
// Server-sent events (`text/event-stream`). OpenAPI 3.1 cannot type event streams, so the events are described by `HintEvent`.
//
// Each event has the name `hint`, an `id` line and a JSON `data` line `{type, id}`. A hint carries no data: the client re-reads through the API, so authorization stays in one place. The stream starts with `retry: 3000` (the reconnect delay in milliseconds) and a comment line (`: keepalive`) follows periodically. After a reconnect the client invalidates everything; `Last-Event-ID` is not replayed. When the session expires or is ended, the server closes the stream; the browser's reconnect then gets `401`, which makes `EventSource` stop for good, and the SPA goes to the sign-in page. The stream follows a web session; a token gets `403` (`session_required`).
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with GET /live-updates (the `StreamLiveUpdates` operationId).
StreamLiveUpdatesWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*StreamLiveUpdatesResponse, error)
// ListLookupTablesWithResponse List lookuptables
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with GET /lookup-tables (the `ListLookupTables` operationId).
ListLookupTablesWithResponse(ctx context.Context, params *ListLookupTablesParams, reqEditors ...RequestEditorFn) (*ListLookupTablesResponse, error)
// CreateLookupTableWithBodyWithResponse Create LookupTable
//
// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
//
// Corresponds with POST /lookup-tables (the `CreateLookupTable` operationId).
CreateLookupTableWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateLookupTableResponse, error)
// CreateLookupTableWithResponse Create LookupTable
//
// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
//
// Corresponds with POST /lookup-tables (the `CreateLookupTable` operationId).
CreateLookupTableWithResponse(ctx context.Context, body CreateLookupTableJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateLookupTableResponse, error)
// DeleteLookupTableWithResponse Delete LookupTable
//
// Refused with `409` (`in_use`) while the URL template of a Link rule reads the table by its name, `link_rules` naming the rules.
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with DELETE /lookup-tables/{lookup_table_id} (the `DeleteLookupTable` operationId).
DeleteLookupTableWithResponse(ctx context.Context, lookupTableId LookupTableId, params *DeleteLookupTableParams, reqEditors ...RequestEditorFn) (*DeleteLookupTableResponse, error)
// GetLookupTableWithResponse Read LookupTable
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with GET /lookup-tables/{lookup_table_id} (the `GetLookupTable` operationId).
GetLookupTableWithResponse(ctx context.Context, lookupTableId LookupTableId, reqEditors ...RequestEditorFn) (*GetLookupTableResponse, error)
// UpdateLookupTableWithBodyWithResponse Update LookupTable
//
// Replaces the writable fields. Requires `If-Match`; a stale ETag gets `412`. An omitted optional field keeps its stored value; an explicit `null` clears a nullable one. A new name for a table that the URL template of a Link rule reads by its name is refused with `409` (`in_use`), `link_rules` naming the rules, since they would read nothing.
//
// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
//
// Corresponds with PUT /lookup-tables/{lookup_table_id} (the `UpdateLookupTable` operationId).
UpdateLookupTableWithBodyWithResponse(ctx context.Context, lookupTableId LookupTableId, params *UpdateLookupTableParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateLookupTableResponse, error)
// UpdateLookupTableWithResponse Update LookupTable
//
// Replaces the writable fields. Requires `If-Match`; a stale ETag gets `412`. An omitted optional field keeps its stored value; an explicit `null` clears a nullable one. A new name for a table that the URL template of a Link rule reads by its name is refused with `409` (`in_use`), `link_rules` naming the rules, since they would read nothing.
//
// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
//
// Corresponds with PUT /lookup-tables/{lookup_table_id} (the `UpdateLookupTable` operationId).
UpdateLookupTableWithResponse(ctx context.Context, lookupTableId LookupTableId, params *UpdateLookupTableParams, body UpdateLookupTableJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateLookupTableResponse, error)
// GetMeWithResponse Read own profile
//
// The caller and the effective Permissions, narrowed by the token if one is used. Service account tokens get `403` (`service_account_not_allowed`).
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with GET /me (the `GetMe` operationId).
GetMeWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetMeResponse, error)
// UpdateMeWithBodyWithResponse Update own profile
//
// Changes name, time zone and language. Web session only.
//
// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
//
// Corresponds with PUT /me (the `UpdateMe` operationId).
UpdateMeWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateMeResponse, error)
// UpdateMeWithResponse Update own profile
//
// Changes name, time zone and language. Web session only.
//
// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
//
// Corresponds with PUT /me (the `UpdateMe` operationId).
UpdateMeWithResponse(ctx context.Context, body UpdateMeJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateMeResponse, error)
// ListMyAccountLinksWithResponse List own Account links
//
// Service account tokens get `403` (`service_account_not_allowed`).
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with GET /me/account-links (the `ListMyAccountLinks` operationId).
ListMyAccountLinksWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*ListMyAccountLinksResponse, error)
// StartBridgeLinkWithBodyWithResponse Start linking an account through a Bridge with a token
//
// Returns a token to send to the bot of the Bridge Connection in a direct message: 32 random bytes in base64url, single-use, valid for `account_link.bridge_token_ttl` and bound to the User and the Connection. When the Connection's last `info` has a `link_url_template`, `link_url` is that template with the token in place of `{token}`, kept only when it is an absolute `http` or `https` link; otherwise it is null. The bridge reports the token with an `account_link` event, which completes the link and arrives as an `account-links` hint with the link's `public_id`. Only the signed-in web session can start a link (not a token). No operation starts a link for another User, whatever the caller's Role. A `connection_id` that names no Bridge Connection — missing, deleted or of another type — answers `422` `unknown_id` at `/connection_id`. Calls no bridge.
//
// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
//
// Corresponds with POST /me/account-links/bridge (the `StartBridgeLink` operationId).
StartBridgeLinkWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*StartBridgeLinkResponse, error)
// StartBridgeLinkWithResponse Start linking an account through a Bridge with a token
//
// Returns a token to send to the bot of the Bridge Connection in a direct message: 32 random bytes in base64url, single-use, valid for `account_link.bridge_token_ttl` and bound to the User and the Connection. When the Connection's last `info` has a `link_url_template`, `link_url` is that template with the token in place of `{token}`, kept only when it is an absolute `http` or `https` link; otherwise it is null. The bridge reports the token with an `account_link` event, which completes the link and arrives as an `account-links` hint with the link's `public_id`. Only the signed-in web session can start a link (not a token). No operation starts a link for another User, whatever the caller's Role. A `connection_id` that names no Bridge Connection — missing, deleted or of another type — answers `422` `unknown_id` at `/connection_id`. Calls no bridge.
//
// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
//
// Corresponds with POST /me/account-links/bridge (the `StartBridgeLink` operationId).
StartBridgeLinkWithResponse(ctx context.Context, body StartBridgeLinkJSONRequestBody, reqEditors ...RequestEditorFn) (*StartBridgeLinkResponse, error)
// StartBridgeCodeLinkWithBodyWithResponse Start linking an account through a Bridge with a code
//
// Where the Bridge Connection's `info` declares `direct_messages` with `bot_can_start` and a `user_lookup` other than `none`, the bridge finds the account with the `handle` the caller entered — of the kind `user_lookup` declares — with `findUsers`, and its bot sends a code with `sendDirectMessage`. Code requests are limited per requesting User and per target account (`429` `link_code_requests_exceeded` with `Retry-After`, `account_link.bridge_code_requests`); a request whose direct message failed still counts. Refused with `409` `code_not_offered` when the Connection's `info`, read again first when Muster's copy is older than `bridge.info_max_age`, offers no code or has never been read; with `409` `account_linked_elsewhere` when the account is linked to another User; and with `409` without a code when the bridge refuses a call. Runs on the interactive path: when no limiter token is free within `delivery.interactive_budget`, the answer is `503` with `Retry-After`. No operation starts a link for another User, whatever the caller's Role. A `connection_id` that names no Bridge Connection answers `422` `unknown_id` at `/connection_id`; a handle the bridge does not find answers `422` `handle_not_found` at `/handle`, and an account the bot cannot write to `422` `direct_message_refused` at `/handle`.
//
// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
//
// Corresponds with POST /me/account-links/bridge/codes (the `StartBridgeCodeLink` operationId).
StartBridgeCodeLinkWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*StartBridgeCodeLinkResponse, error)
// StartBridgeCodeLinkWithResponse Start linking an account through a Bridge with a code
//
// Where the Bridge Connection's `info` declares `direct_messages` with `bot_can_start` and a `user_lookup` other than `none`, the bridge finds the account with the `handle` the caller entered — of the kind `user_lookup` declares — with `findUsers`, and its bot sends a code with `sendDirectMessage`. Code requests are limited per requesting User and per target account (`429` `link_code_requests_exceeded` with `Retry-After`, `account_link.bridge_code_requests`); a request whose direct message failed still counts. Refused with `409` `code_not_offered` when the Connection's `info`, read again first when Muster's copy is older than `bridge.info_max_age`, offers no code or has never been read; with `409` `account_linked_elsewhere` when the account is linked to another User; and with `409` without a code when the bridge refuses a call. Runs on the interactive path: when no limiter token is free within `delivery.interactive_budget`, the answer is `503` with `Retry-After`. No operation starts a link for another User, whatever the caller's Role. A `connection_id` that names no Bridge Connection answers `422` `unknown_id` at `/connection_id`; a handle the bridge does not find answers `422` `handle_not_found` at `/handle`, and an account the bot cannot write to `422` `direct_message_refused` at `/handle`.
//
// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
//
// Corresponds with POST /me/account-links/bridge/codes (the `StartBridgeCodeLink` operationId).
StartBridgeCodeLinkWithResponse(ctx context.Context, body StartBridgeCodeLinkJSONRequestBody, reqEditors ...RequestEditorFn) (*StartBridgeCodeLinkResponse, error)
// ConfirmBridgeLinkWithBodyWithResponse Confirm a Bridge link with the code
//
// At most 5 attempts (`account_link.bridge_code`); after that the code is void. A wrong code, and a request that is void, used or expired or whose Connection was deleted, answer `422` `link_code_invalid` at `/code`, never saying which, with `attempts_remaining`: the codes the request still takes, 0 once it takes none; a request of another User, or one that is not a Bridge code request, is `404`. The link stores the account's `external_id`, `display_name` and handle as the bridge reported them. No direct message confirms it, and no bridge is called. No operation starts a link for another User, whatever the caller's Role.
//
// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
//
// Corresponds with POST /me/account-links/bridge/confirmation (the `ConfirmBridgeLink` operationId).
ConfirmBridgeLinkWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ConfirmBridgeLinkResponse, error)
// ConfirmBridgeLinkWithResponse Confirm a Bridge link with the code
//
// At most 5 attempts (`account_link.bridge_code`); after that the code is void. A wrong code, and a request that is void, used or expired or whose Connection was deleted, answer `422` `link_code_invalid` at `/code`, never saying which, with `attempts_remaining`: the codes the request still takes, 0 once it takes none; a request of another User, or one that is not a Bridge code request, is `404`. The link stores the account's `external_id`, `display_name` and handle as the bridge reported them. No direct message confirms it, and no bridge is called. No operation starts a link for another User, whatever the caller's Role.
//
// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
//
// Corresponds with POST /me/account-links/bridge/confirmation (the `ConfirmBridgeLink` operationId).
ConfirmBridgeLinkWithResponse(ctx context.Context, body ConfirmBridgeLinkJSONRequestBody, reqEditors ...RequestEditorFn) (*ConfirmBridgeLinkResponse, error)
// ListLinkableConnectionsWithResponse List the Connections an account can be linked through
//
// The profile's own short list of the Connections that are not deleted, for picking one when linking a messenger account. It needs no Permission, independently of `connections:read`, and shows only the id, the name and the messenger of each Connection, and for a Bridge Connection how an account can be linked through it — `link_methods` and `handle_kind`, from the Connection's last `info`. Service account tokens get `403` (`service_account_not_allowed`).
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with GET /me/account-links/connections (the `ListLinkableConnections` operationId).
ListLinkableConnectionsWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*ListLinkableConnectionsResponse, error)
// StartMattermostLinkWithBodyWithResponse Start linking a Mattermost account
//
// The Connection's bot sends a direct message with a code to the `@username`. Code requests are limited per requesting User and per target account (`429` `link_code_requests_exceeded` with `Retry-After`). Refused with `409` if the account is already linked to another user (`account_linked_elsewhere`), or without a code when Mattermost refuses a call. Runs on the interactive path: when no limiter token is free within `delivery.interactive_budget`, the answer is `503` with `Retry-After`. No operation starts a link for another User, whatever the caller's Role. A `connection_id` that names no Mattermost Connection — missing, deleted or a Telegram one — answers `422` `unknown_id` at `/connection_id`; a username the Mattermost server does not know answers `422` `messenger_user_not_found` at `/username`.
//
// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
//
// Corresponds with POST /me/account-links/mattermost (the `StartMattermostLink` operationId).
StartMattermostLinkWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*StartMattermostLinkResponse, error)
// StartMattermostLinkWithResponse Start linking a Mattermost account
//
// The Connection's bot sends a direct message with a code to the `@username`. Code requests are limited per requesting User and per target account (`429` `link_code_requests_exceeded` with `Retry-After`). Refused with `409` if the account is already linked to another user (`account_linked_elsewhere`), or without a code when Mattermost refuses a call. Runs on the interactive path: when no limiter token is free within `delivery.interactive_budget`, the answer is `503` with `Retry-After`. No operation starts a link for another User, whatever the caller's Role. A `connection_id` that names no Mattermost Connection — missing, deleted or a Telegram one — answers `422` `unknown_id` at `/connection_id`; a username the Mattermost server does not know answers `422` `messenger_user_not_found` at `/username`.
//
// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
//
// Corresponds with POST /me/account-links/mattermost (the `StartMattermostLink` operationId).
StartMattermostLinkWithResponse(ctx context.Context, body StartMattermostLinkJSONRequestBody, reqEditors ...RequestEditorFn) (*StartMattermostLinkResponse, error)
// ConfirmMattermostLinkWithBodyWithResponse Confirm a Mattermost link with the code
//
// At most 5 attempts; after that the code is void. A wrong code, and a request that is void, used or expired, answer `422` `link_code_invalid` at `/code`, never saying which, with `attempts_remaining`: the codes the request still takes, 0 once it takes none; a request of another User is `404`. Runs on the interactive path: when no limiter token is free within `delivery.interactive_budget`, the answer is `503` with `Retry-After`. No operation starts a link for another User, whatever the caller's Role.
//
// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
//
// Corresponds with POST /me/account-links/mattermost/confirmation (the `ConfirmMattermostLink` operationId).
ConfirmMattermostLinkWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ConfirmMattermostLinkResponse, error)
// ConfirmMattermostLinkWithResponse Confirm a Mattermost link with the code
//
// At most 5 attempts; after that the code is void. A wrong code, and a request that is void, used or expired, answer `422` `link_code_invalid` at `/code`, never saying which, with `attempts_remaining`: the codes the request still takes, 0 once it takes none; a request of another User is `404`. Runs on the interactive path: when no limiter token is free within `delivery.interactive_budget`, the answer is `503` with `Retry-After`. No operation starts a link for another User, whatever the caller's Role.
//
// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
//
// Corresponds with POST /me/account-links/mattermost/confirmation (the `ConfirmMattermostLink` operationId).
ConfirmMattermostLinkWithResponse(ctx context.Context, body ConfirmMattermostLinkJSONRequestBody, reqEditors ...RequestEditorFn) (*ConfirmMattermostLinkResponse, error)
// StartSlackLinkWithBodyWithResponse Start linking a Slack account with a code
//
// Looks up the account of the Slack Connection that the caller names in `handle`. An email — an `@` after at least one character with a dot after that `@` — is looked up with `users.lookupByEmail`, which ignores the letter case. Anything else is a name, a leading `@` dropped, compared with each account's `name` and `profile.display_name` regardless of case over the pages of `users.list`; deleted accounts, bots and Slackbot are left out. The bot then sends a code (`account_link.slack_code`) by direct message — `chat.postMessage` to the account's user id — with "You requested a link to Muster. Do not share this code.". Code requests are limited per requesting User and per target account (`429` `link_code_requests_exceeded` with `Retry-After`, `account_link.slack_code_requests`); a request whose direct message failed still counts. Refused with `409` `account_linked_elsewhere` when the account is linked to another User, with `409` `messages_tab_disabled` when Slack refuses the direct message because the Messages tab of the Slack app is off, and with `409` without a code when Slack refuses a call otherwise. Runs on the interactive path: when no limiter token is free within `delivery.interactive_budget`, or Slack answers `429`, the answer is `503` with `Retry-After`. No operation starts a link for another User, whatever the caller's Role. A `connection_id` that names no Slack Connection — missing, deleted or of another type — answers `422` `unknown_id` at `/connection_id`; no account answers `422` `handle_not_found` at `/handle`, several accounts with the name `422` `handle_ambiguous` at `/handle`, and an account the bot cannot write to (`cannot_dm_bot`, `user_not_found`, or `channel_not_found` for the user id) `422` `direct_message_refused` at `/handle`.
//
// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
//
// Corresponds with POST /me/account-links/slack (the `StartSlackLink` operationId).
StartSlackLinkWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*StartSlackLinkResponse, error)
// StartSlackLinkWithResponse Start linking a Slack account with a code
//
// Looks up the account of the Slack Connection that the caller names in `handle`. An email — an `@` after at least one character with a dot after that `@` — is looked up with `users.lookupByEmail`, which ignores the letter case. Anything else is a name, a leading `@` dropped, compared with each account's `name` and `profile.display_name` regardless of case over the pages of `users.list`; deleted accounts, bots and Slackbot are left out. The bot then sends a code (`account_link.slack_code`) by direct message — `chat.postMessage` to the account's user id — with "You requested a link to Muster. Do not share this code.". Code requests are limited per requesting User and per target account (`429` `link_code_requests_exceeded` with `Retry-After`, `account_link.slack_code_requests`); a request whose direct message failed still counts. Refused with `409` `account_linked_elsewhere` when the account is linked to another User, with `409` `messages_tab_disabled` when Slack refuses the direct message because the Messages tab of the Slack app is off, and with `409` without a code when Slack refuses a call otherwise. Runs on the interactive path: when no limiter token is free within `delivery.interactive_budget`, or Slack answers `429`, the answer is `503` with `Retry-After`. No operation starts a link for another User, whatever the caller's Role. A `connection_id` that names no Slack Connection — missing, deleted or of another type — answers `422` `unknown_id` at `/connection_id`; no account answers `422` `handle_not_found` at `/handle`, several accounts with the name `422` `handle_ambiguous` at `/handle`, and an account the bot cannot write to (`cannot_dm_bot`, `user_not_found`, or `channel_not_found` for the user id) `422` `direct_message_refused` at `/handle`.
//
// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
//
// Corresponds with POST /me/account-links/slack (the `StartSlackLink` operationId).
StartSlackLinkWithResponse(ctx context.Context, body StartSlackLinkJSONRequestBody, reqEditors ...RequestEditorFn) (*StartSlackLinkResponse, error)
// ConfirmSlackLinkWithBodyWithResponse Confirm a Slack link with the code
//
// At most 5 attempts (`account_link.slack_code`); after that the code is void. A wrong code, and a request that is void, used or expired or whose Connection was deleted, answer `422` `link_code_invalid` at `/code`, never saying which, with `attempts_remaining`: the codes the request still takes, 0 once it takes none; a request of another User, or one that is not a Slack request, is `404`. The link stores the account's user id as `external_id`, its `name` as `username`, and its `profile.display_name`, else `profile.real_name`, as `display_name`, which Mentions and the footer use; a second link of the User through the same Connection replaces the first. The bot then confirms "Linked to Muster user {name}" by direct message; a confirmation that fails is only logged. Runs on the interactive path: when no limiter token is free within `delivery.interactive_budget`, or Slack answers `429`, the answer is `503` with `Retry-After`. No operation starts a link for another User, whatever the caller's Role.
//
// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
//
// Corresponds with POST /me/account-links/slack/confirmation (the `ConfirmSlackLink` operationId).
ConfirmSlackLinkWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ConfirmSlackLinkResponse, error)
// ConfirmSlackLinkWithResponse Confirm a Slack link with the code
//
// At most 5 attempts (`account_link.slack_code`); after that the code is void. A wrong code, and a request that is void, used or expired or whose Connection was deleted, answer `422` `link_code_invalid` at `/code`, never saying which, with `attempts_remaining`: the codes the request still takes, 0 once it takes none; a request of another User, or one that is not a Slack request, is `404`. The link stores the account's user id as `external_id`, its `name` as `username`, and its `profile.display_name`, else `profile.real_name`, as `display_name`, which Mentions and the footer use; a second link of the User through the same Connection replaces the first. The bot then confirms "Linked to Muster user {name}" by direct message; a confirmation that fails is only logged. Runs on the interactive path: when no limiter token is free within `delivery.interactive_budget`, or Slack answers `429`, the answer is `503` with `Retry-After`. No operation starts a link for another User, whatever the caller's Role.
//
// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
//
// Corresponds with POST /me/account-links/slack/confirmation (the `ConfirmSlackLink` operationId).
ConfirmSlackLinkWithResponse(ctx context.Context, body ConfirmSlackLinkJSONRequestBody, reqEditors ...RequestEditorFn) (*ConfirmSlackLinkResponse, error)
// StartTelegramLinkWithBodyWithResponse Start linking a Telegram account
//
// Returns a deep link `t.me/<bot>?start=<token>`; the token is single-use, valid for `account_link.telegram_token_ttl`. Pressing Start in Telegram completes the link and arrives as an `account-links` hint with the link's `public_id`. Only the signed-in web session can start a link (not a token). No operation starts a link for another User, whatever the caller's Role. A `connection_id` that names no Telegram Connection — missing, deleted or a Mattermost one — answers `422` `unknown_id` at `/connection_id`. When the bot's username is not known from the last Connection check, it is read with `getMe` on the interactive path: when no limiter token is free within `delivery.interactive_budget`, the answer is `503` with `Retry-After`, and when Telegram refuses the call, `409`.
//
// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
//
// Corresponds with POST /me/account-links/telegram (the `StartTelegramLink` operationId).
StartTelegramLinkWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*StartTelegramLinkResponse, error)
// StartTelegramLinkWithResponse Start linking a Telegram account
//
// Returns a deep link `t.me/<bot>?start=<token>`; the token is single-use, valid for `account_link.telegram_token_ttl`. Pressing Start in Telegram completes the link and arrives as an `account-links` hint with the link's `public_id`. Only the signed-in web session can start a link (not a token). No operation starts a link for another User, whatever the caller's Role. A `connection_id` that names no Telegram Connection — missing, deleted or a Mattermost one — answers `422` `unknown_id` at `/connection_id`. When the bot's username is not known from the last Connection check, it is read with `getMe` on the interactive path: when no limiter token is free within `delivery.interactive_budget`, the answer is `503` with `Retry-After`, and when Telegram refuses the call, `409`.
//
// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
//
// Corresponds with POST /me/account-links/telegram (the `StartTelegramLink` operationId).
StartTelegramLinkWithResponse(ctx context.Context, body StartTelegramLinkJSONRequestBody, reqEditors ...RequestEditorFn) (*StartTelegramLinkResponse, error)
// DeleteMyAccountLinkWithResponse Unlink an own messenger account
//
// Unlinks one of the caller's own messenger accounts. Web session only: a token gets `403` (`session_required`).
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with DELETE /me/account-links/{account_link_id} (the `DeleteMyAccountLink` operationId).
DeleteMyAccountLinkWithResponse(ctx context.Context, accountLinkId AccountLinkId, reqEditors ...RequestEditorFn) (*DeleteMyAccountLinkResponse, error)
// StartOidcLinkWithResponse Start linking an OIDC identity
//
// Starts linking the caller's account to an identity at the OIDC provider: returns the authorization URL (PKCE `S256`, `state` and `nonce`) that the SPA opens after warning "After linking you will sign in only through OIDC; your password will be removed." The `state` is bound to this web session, so the callback adds the identity only to the account that started the link. A successful link removes the password: the account then signs in only through OIDC, keeps its TOTP enrolment, and `oidc.sync_role` applies to it. There is no unlinking by the user; an Admin can convert the account back to local (`convertUserToLocal`). Web session only: a token gets `403` (`session_required`). `409` with `oidc_not_enabled` while OIDC is off, or `oidc_already_linked` when the account already signs in through OIDC.
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with POST /me/oidc-identity (the `StartOidcLink` operationId).
StartOidcLinkWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*StartOidcLinkResponse, error)
// CompleteOidcLinkWithResponse Complete linking an OIDC identity
//
// Redirect target of the identity provider for a link started by `startOidcLink`; register `MUSTER_PUBLIC_URL/api/v1/me/oidc-identity/callback` at the identity provider next to the sign-in callback. Every outcome is a `302` to the profile page. On success the identity (issuer and subject) is added to the account of the web session that started the link and the password is removed; an offline token granted by the link flow is kept on the user, as at sign-in; this session continues as an OIDC session, the user's other sessions end, and the Audit log records it; the redirect goes to `/profile`. A failure redirects to `/profile?error=<code>`, with one of `identity_linked_elsewhere` (the identity belongs to another user; the Audit log records the refusal), `no_access` (the identity's groups map to no Role and there is no Role for unmatched users, so the account could not sign in through OIDC; the redirect is `/profile?error=no_access` and the Audit log records the refusal with the groups), `oidc_disabled`, `invalid_request` (bad or missing `state`, `code` or `nonce`, no web session, or a `state` started by another session) and `idp_error`.
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with GET /me/oidc-identity/callback (the `CompleteOidcLink` operationId).
CompleteOidcLinkWithResponse(ctx context.Context, params *CompleteOidcLinkParams, reqEditors ...RequestEditorFn) (*CompleteOidcLinkResponse, error)
// ChangePasswordWithBodyWithResponse Change own password
//
// Ends all other sessions of the user. Local users only (`409` `local_user_only` otherwise). Web session only.
//
// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
//
// Corresponds with PUT /me/password (the `ChangePassword` operationId).
ChangePasswordWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ChangePasswordResponse, error)
// ChangePasswordWithResponse Change own password
//
// Ends all other sessions of the user. Local users only (`409` `local_user_only` otherwise). Web session only.
//
// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
//
// Corresponds with PUT /me/password (the `ChangePassword` operationId).
ChangePasswordWithResponse(ctx context.Context, body ChangePasswordJSONRequestBody, reqEditors ...RequestEditorFn) (*ChangePasswordResponse, error)
// ListPersonalAccessTokensWithResponse List own Personal access tokens
//
// Values are never returned. Each token shows when and from which address it was last used. Service account tokens get `403` (`service_account_not_allowed`).
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with GET /me/personal-access-tokens (the `ListPersonalAccessTokens` operationId).
ListPersonalAccessTokensWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*ListPersonalAccessTokensResponse, error)
// CreatePersonalAccessTokenWithBodyWithResponse Create a Personal access token
//
// Shows the token once. Its Permissions must be a subset of the Permissions the caller holds now (`422` `permission_not_held` on `/permissions/<i>`). Web session only: a token can never mint another token.
//
// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
//
// Corresponds with POST /me/personal-access-tokens (the `CreatePersonalAccessToken` operationId).
CreatePersonalAccessTokenWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreatePersonalAccessTokenResponse, error)
// CreatePersonalAccessTokenWithResponse Create a Personal access token
//
// Shows the token once. Its Permissions must be a subset of the Permissions the caller holds now (`422` `permission_not_held` on `/permissions/<i>`). Web session only: a token can never mint another token.
//
// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
//
// Corresponds with POST /me/personal-access-tokens (the `CreatePersonalAccessToken` operationId).
CreatePersonalAccessTokenWithResponse(ctx context.Context, body CreatePersonalAccessTokenJSONRequestBody, reqEditors ...RequestEditorFn) (*CreatePersonalAccessTokenResponse, error)
// RevokePersonalAccessTokenWithResponse Revoke a Personal access token
//
// Revokes the token at once. Web session only.
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with DELETE /me/personal-access-tokens/{token_id} (the `RevokePersonalAccessToken` operationId).
RevokePersonalAccessTokenWithResponse(ctx context.Context, tokenId TokenId, reqEditors ...RequestEditorFn) (*RevokePersonalAccessTokenResponse, error)
// DeleteMySessionsWithResponse Sign out everywhere
//
// Ends every session of the user, the current one included. Web session only.
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with DELETE /me/sessions (the `DeleteMySessions` operationId).
DeleteMySessionsWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*DeleteMySessionsResponse, error)
// ListMySessionsWithResponse List own sessions
//
// Sessions of the user, the current one marked.
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with GET /me/sessions (the `ListMySessions` operationId).
ListMySessionsWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*ListMySessionsResponse, error)
// GetMyTotpWithResponse Read own TOTP status
//
// Whether TOTP is enrolled, a first code is awaited, and how many recovery codes remain. Service account tokens get `403` (`service_account_not_allowed`).
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with GET /me/totp (the `GetMyTotp` operationId).
GetMyTotpWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetMyTotpResponse, error)
// BeginTotpEnrolmentWithResponse Begin TOTP enrolment
//
// Returns the seed and the `otpauth` URI once. Enrolment completes when `confirmTotpEnrolment` receives a first code. Allowed in the session state `totp_enrolment_required`. `409` (`totp_already_enrolled`) when TOTP is already on. Web session only.
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with POST /me/totp (the `BeginTotpEnrolment` operationId).
BeginTotpEnrolmentWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*BeginTotpEnrolmentResponse, error)
// ConfirmTotpEnrolmentWithBodyWithResponse Confirm TOTP enrolment
//
// Confirms with a first code and issues `auth.totp_recovery_codes` single-use recovery codes, shown once. Allowed in the session state `totp_enrolment_required`. `409` (`totp_enrolment_not_started`) without a begun enrolment, `totp_already_enrolled` if already confirmed. Web session only.
//
// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
//
// Corresponds with POST /me/totp/confirmation (the `ConfirmTotpEnrolment` operationId).
ConfirmTotpEnrolmentWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ConfirmTotpEnrolmentResponse, error)
// ConfirmTotpEnrolmentWithResponse Confirm TOTP enrolment
//
// Confirms with a first code and issues `auth.totp_recovery_codes` single-use recovery codes, shown once. Allowed in the session state `totp_enrolment_required`. `409` (`totp_enrolment_not_started`) without a begun enrolment, `totp_already_enrolled` if already confirmed. Web session only.
//
// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
//
// Corresponds with POST /me/totp/confirmation (the `ConfirmTotpEnrolment` operationId).
ConfirmTotpEnrolmentWithResponse(ctx context.Context, body ConfirmTotpEnrolmentJSONRequestBody, reqEditors ...RequestEditorFn) (*ConfirmTotpEnrolmentResponse, error)
// RegenerateTotpRecoveryCodesWithBodyWithResponse Regenerate recovery codes
//
// Invalidates the previous codes. Requires a current TOTP code. Web session only.
//
// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
//
// Corresponds with POST /me/totp/recovery-codes (the `RegenerateTotpRecoveryCodes` operationId).
RegenerateTotpRecoveryCodesWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*RegenerateTotpRecoveryCodesResponse, error)
// RegenerateTotpRecoveryCodesWithResponse Regenerate recovery codes
//
// Invalidates the previous codes. Requires a current TOTP code. Web session only.
//
// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
//
// Corresponds with POST /me/totp/recovery-codes (the `RegenerateTotpRecoveryCodes` operationId).
RegenerateTotpRecoveryCodesWithResponse(ctx context.Context, body RegenerateTotpRecoveryCodesJSONRequestBody, reqEditors ...RequestEditorFn) (*RegenerateTotpRecoveryCodesResponse, error)
// RemoveTotpWithBodyWithResponse Remove own TOTP
//
// Needs proof that the person is at the keyboard: the current password (local users) or a current TOTP or recovery code. Under a TOTP policy that covers the user, the next sign-in demands enrolment again. A wrong proof is `401` (`invalid_credentials`). Web session only.
//
// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
//
// Corresponds with POST /me/totp/removal (the `RemoveTotp` operationId).
RemoveTotpWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*RemoveTotpResponse, error)
// RemoveTotpWithResponse Remove own TOTP
//
// Needs proof that the person is at the keyboard: the current password (local users) or a current TOTP or recovery code. Under a TOTP policy that covers the user, the next sign-in demands enrolment again. A wrong proof is `401` (`invalid_credentials`). Web session only.
//
// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
//
// Corresponds with POST /me/totp/removal (the `RemoveTotp` operationId).
RemoveTotpWithResponse(ctx context.Context, body RemoveTotpJSONRequestBody, reqEditors ...RequestEditorFn) (*RemoveTotpResponse, error)
// GetOidcSettingsWithResponse Read OIDC settings
//
// The client secret is never returned; `client_secret_status` shows whether it is set and when it changed.
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with GET /oidc-settings (the `GetOidcSettings` operationId).
GetOidcSettingsWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetOidcSettingsResponse, error)
// UpdateOidcSettingsWithBodyWithResponse Update OIDC settings
//
// Replaces the writable fields; omitted optional fields keep their value. Saving with an empty mapping and no Role for unmatched users returns the warning `nobody_can_sign_in` in the result. The Audit log diff shows only that the client secret changed.
//
// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
//
// Corresponds with PUT /oidc-settings (the `UpdateOidcSettings` operationId).
UpdateOidcSettingsWithBodyWithResponse(ctx context.Context, params *UpdateOidcSettingsParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateOidcSettingsResponse, error)
// UpdateOidcSettingsWithResponse Update OIDC settings
//
// Replaces the writable fields; omitted optional fields keep their value. Saving with an empty mapping and no Role for unmatched users returns the warning `nobody_can_sign_in` in the result. The Audit log diff shows only that the client secret changed.
//
// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
//
// Corresponds with PUT /oidc-settings (the `UpdateOidcSettings` operationId).
UpdateOidcSettingsWithResponse(ctx context.Context, params *UpdateOidcSettingsParams, body UpdateOidcSettingsJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateOidcSettingsResponse, error)
// CheckOidcSettingsWithResponse Check the connection to the identity provider
//
// Fetches discovery through the outbound HTTP package, with the saved proxy, and reports whether the groups claim is advertised. While no sign-in has seen the claim in an ID token or userinfo since the groups claim, the issuer, the client ID or the scopes last changed, a claim discovery does not list raises the warning `groups_claim_missing` and a listed one clears it; once a sign-in has seen it, the check changes nothing.
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with POST /oidc-settings/checks (the `CheckOidcSettings` operationId).
CheckOidcSettingsWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*CheckOidcSettingsResponse, error)
// GetOpenApiSpecWithResponse Read this specification
//
// The specification the binary was built from, as checked in at `api/openapi.yaml`.
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with GET /openapi.yaml (the `GetOpenApiSpec` operationId).
GetOpenApiSpecWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetOpenApiSpecResponse, error)
// GetOrganizationWithResponse Read the Organization
//
// Readable by every signed-in identity (the basic read of the Organization needs no Permission). Secrets (the outgoing heartbeat URL, proxy passwords) show only `set` and `updated_at`.
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with GET /organization (the `GetOrganization` operationId).
GetOrganizationWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetOrganizationResponse, error)
// UpdateOrganizationWithBodyWithResponse Update the Organization
//
// Replaces the writable fields. Requires `If-Match`; a stale ETag gets `412`. An omitted optional field keeps its stored value; an explicit `null` clears a nullable one. An omitted Secret field keeps the stored Secret. `null` on `outgoing_heartbeat.url` or a proxy `password` clears it. Every field is validated; an invalid one gets `422` at the full JSON pointer of the field, such as `/severity_styles/1/color` or `/retention/alert_details_days`, with `invalid_format`, `duplicate`, `required`, `too_short`, `too_long`, `out_of_range` or `retention_order`. A retention period or `oidc_token_grace_seconds` beyond its `maximum`, a `workday_start` that is not `HH:MM` on the 24-hour clock and a `week_start` that is not a day of the week are refused with `400` by request validation, `invalid_format` at `/workday_start` or `/week_start`; `out_of_range` and `invalid_format` are the second, defensive check of the same rules. A change is recorded in the Audit log as `organization.updated` with its before/after diff and announced with the `organization` hint; Severity levels and Instance labels apply to later evaluations only.
//
// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
//
// Corresponds with PUT /organization (the `UpdateOrganization` operationId).
UpdateOrganizationWithBodyWithResponse(ctx context.Context, params *UpdateOrganizationParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateOrganizationResponse, error)
// UpdateOrganizationWithResponse Update the Organization
//
// Replaces the writable fields. Requires `If-Match`; a stale ETag gets `412`. An omitted optional field keeps its stored value; an explicit `null` clears a nullable one. An omitted Secret field keeps the stored Secret. `null` on `outgoing_heartbeat.url` or a proxy `password` clears it. Every field is validated; an invalid one gets `422` at the full JSON pointer of the field, such as `/severity_styles/1/color` or `/retention/alert_details_days`, with `invalid_format`, `duplicate`, `required`, `too_short`, `too_long`, `out_of_range` or `retention_order`. A retention period or `oidc_token_grace_seconds` beyond its `maximum`, a `workday_start` that is not `HH:MM` on the 24-hour clock and a `week_start` that is not a day of the week are refused with `400` by request validation, `invalid_format` at `/workday_start` or `/week_start`; `out_of_range` and `invalid_format` are the second, defensive check of the same rules. A change is recorded in the Audit log as `organization.updated` with its before/after diff and announced with the `organization` hint; Severity levels and Instance labels apply to later evaluations only.
//
// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
//
// Corresponds with PUT /organization (the `UpdateOrganization` operationId).
UpdateOrganizationWithResponse(ctx context.Context, params *UpdateOrganizationParams, body UpdateOrganizationJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateOrganizationResponse, error)
// GetKeyringWithResponse Read the Keyring status
//
// Every key id in the environment, which is active, which live replicas hold which, and whether anything still depends on an older key. Activation is the CLI command `muster secrets rotate-key --activate <id> --actor <name>`.
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with GET /organization/keyring (the `GetKeyring` operationId).
GetKeyringWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetKeyringResponse, error)
// GetOutboundPolicyWithResponse Read the outbound address policy
//
// The outbound address policy with the rules that always apply. Needs `organization:read`.
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with GET /organization/outbound-policy (the `GetOutboundPolicy` operationId).
GetOutboundPolicyWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetOutboundPolicyResponse, error)
// UpdateOutboundPolicyWithBodyWithResponse Update the outbound address policy
//
// Replaces the policy and its lists. Requires `If-Match`; a stale ETag gets `412`. Each entry is a network in CIDR form or a bare address, a host name, or a domain written `*.example.org`; an entry that does not parse gets `422` with `invalid_format` and a repeated one `duplicate`, at `/allowed/<i>` or `/denied/<i>`. `always_blocked` is read-only and ignored. The change takes effect at once on every replica, idle pooled connections included, is recorded in the Audit log as `outbound_policy.updated` and is announced with the `organization` hint. Needs `organization:write`.
//
// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
//
// Corresponds with PUT /organization/outbound-policy (the `UpdateOutboundPolicy` operationId).
UpdateOutboundPolicyWithBodyWithResponse(ctx context.Context, params *UpdateOutboundPolicyParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateOutboundPolicyResponse, error)
// UpdateOutboundPolicyWithResponse Update the outbound address policy
//
// Replaces the policy and its lists. Requires `If-Match`; a stale ETag gets `412`. Each entry is a network in CIDR form or a bare address, a host name, or a domain written `*.example.org`; an entry that does not parse gets `422` with `invalid_format` and a repeated one `duplicate`, at `/allowed/<i>` or `/denied/<i>`. `always_blocked` is read-only and ignored. The change takes effect at once on every replica, idle pooled connections included, is recorded in the Audit log as `outbound_policy.updated` and is announced with the `organization` hint. Needs `organization:write`.
//
// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
//
// Corresponds with PUT /organization/outbound-policy (the `UpdateOutboundPolicy` operationId).
UpdateOutboundPolicyWithResponse(ctx context.Context, params *UpdateOutboundPolicyParams, body UpdateOutboundPolicyJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateOutboundPolicyResponse, error)
// ListSeverityValuesWithResponse List severity values seen
//
// Values of the severity label seen in the last `organization.severity_values_window`, with counts, the most frequent first and at most 500 values; unmapped values count as warning.
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with GET /organization/severity-values (the `ListSeverityValues` operationId).
ListSeverityValuesWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*ListSeverityValuesResponse, error)
// CompletePasswordSetupWithBodyWithResponse Set a password from a setup link
//
// Uses the single-use token of a password setup link (the link carries it in the URL fragment, so it reaches neither server logs nor referrers). The user is then asked to enrol TOTP if the policy requires it. An unknown token is `404`; a token past `auth.password_setup_link_ttl` is `410` (`link_expired`); one already used or replaced by a newer link is `410` (`link_used`). Like the sign-in, a request that a browser marks as cross-site is `403` (`csrf_invalid`).
//
// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
//
// Corresponds with POST /password-setups (the `CompletePasswordSetup` operationId).
CompletePasswordSetupWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CompletePasswordSetupResponse, error)
// CompletePasswordSetupWithResponse Set a password from a setup link
//
// Uses the single-use token of a password setup link (the link carries it in the URL fragment, so it reaches neither server logs nor referrers). The user is then asked to enrol TOTP if the policy requires it. An unknown token is `404`; a token past `auth.password_setup_link_ttl` is `410` (`link_expired`); one already used or replaced by a newer link is `410` (`link_used`). Like the sign-in, a request that a browser marks as cross-site is `403` (`csrf_invalid`).
//
// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
//
// Corresponds with POST /password-setups (the `CompletePasswordSetup` operationId).
CompletePasswordSetupWithResponse(ctx context.Context, body CompletePasswordSetupJSONRequestBody, reqEditors ...RequestEditorFn) (*CompletePasswordSetupResponse, error)
// ListRequestLogWithResponse List the Request log of a Connection, a Destination or a check run
//
// The records of exactly one owner, or of one check run, newest first: `connection` lists every record of a Connection, `destination` every record of an outgoing webhook Destination or, for a messenger Destination, the records of its Connection that name it; `run` alone lists the records of that check run whose owner is a Connection or nobody — the checks before saving of new Connections — and beside an owner it narrows that owner's list. Neither an owner nor a run, or both owners, answer `422` with the code `one_of_required`. The caller needs `connections:read` to name a Connection or a run alone and `destinations:read` to name a Destination (`403` otherwise); an unknown or deleted owner is `404`. Only records newer than `request_log.max_age` and among the newest `request_log.max_records` of their owner are listed — a messenger Destination's within its Connection's — so a list never shows more than that bound. Each record is one attempt of a request: its URL as errors show it, its status, latency and path, without headers or bodies, which `getRequestRecord` reads.
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with GET /request-log (the `ListRequestLog` operationId).
ListRequestLogWithResponse(ctx context.Context, params *ListRequestLogParams, reqEditors ...RequestEditorFn) (*ListRequestLogResponse, error)
// GetRequestRecordWithResponse Read a record of the Request log
//
// One record with its headers and bodies, masked. The caller needs the Permission of the record's owner, `connections:read` for a Connection's record — even one listed through a messenger Destination with `destinations:read` — and `destinations:read` for an outgoing webhook's (`403` otherwise). A record past `request_log.max_age` or past the newest `request_log.max_records` of its owner, or whose owner is deleted, is `404`, as it is in no list. Headers, bodies and the error are untrusted text.
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with GET /request-log/{request_record_id} (the `GetRequestRecord` operationId).
GetRequestRecordWithResponse(ctx context.Context, requestRecordId RequestRecordId, reqEditors ...RequestEditorFn) (*GetRequestRecordResponse, error)
// ListRolesWithResponse List Roles with their Permissions
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with GET /roles (the `ListRoles` operationId).
ListRolesWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*ListRolesResponse, error)
// ReorderRoutesWithBodyWithResponse Reorder Routes
//
// Replaces the order of all Routes except the Default route, which cannot be moved. `If-Match` carries the ETag of `listRoutes`; a stale one gets `412`. A list that contains the Default route is `409` (`default-route-immutable`); a set of ids that differs from the current set is `422` (`route_set_mismatch`).
//
// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
//
// Corresponds with PUT /route-order (the `ReorderRoutes` operationId).
ReorderRoutesWithBodyWithResponse(ctx context.Context, params *ReorderRoutesParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ReorderRoutesResponse, error)
// ReorderRoutesWithResponse Reorder Routes
//
// Replaces the order of all Routes except the Default route, which cannot be moved. `If-Match` carries the ETag of `listRoutes`; a stale one gets `412`. A list that contains the Default route is `409` (`default-route-immutable`); a set of ids that differs from the current set is `422` (`route_set_mismatch`).
//
// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
//
// Corresponds with PUT /route-order (the `ReorderRoutes` operationId).
ReorderRoutesWithResponse(ctx context.Context, params *ReorderRoutesParams, body ReorderRoutesJSONRequestBody, reqEditors ...RequestEditorFn) (*ReorderRoutesResponse, error)
// ListRouteProfilesWithResponse List Route profiles
//
// The two starting sets of Route settings, On-call and Informational, read from the built-in defaults. They only pre-fill the create form; they cannot be edited or stored.
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with GET /route-profiles (the `ListRouteProfiles` operationId).
ListRouteProfilesWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*ListRouteProfilesResponse, error)
// ListRouteSuggestionsWithResponse List Route suggestions
//
// A Route for `MusterHeartbeatLost` when an Integration has a Heartbeat and no Route other than the Default route matches it; from the first Destination on, a Route for `alertname=~"Muster.*"`. Dismissals are remembered per user.
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with GET /route-suggestions (the `ListRouteSuggestions` operationId).
ListRouteSuggestionsWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*ListRouteSuggestionsResponse, error)
// AcceptRouteSuggestionWithBodyWithResponse Accept a Route suggestion
//
// Creates the suggested Route at the top of the list; the Route for `internal_alerts` goes directly below the last Route other than the Default route that already takes an Internal alert, such as the Route for `MusterHeartbeatLost`, and at the top when none does. `409` (`suggestion_obsolete`) when it no longer applies: a matching Route exists now, it was accepted already, or no Destination exists for `internal_alerts`; `422` (`required` at `/destination_ids`) when `internal_alerts` is accepted without Destinations.
//
// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
//
// Corresponds with POST /route-suggestions/{suggestion_id}/accept (the `AcceptRouteSuggestion` operationId).
AcceptRouteSuggestionWithBodyWithResponse(ctx context.Context, suggestionId SuggestionId, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*AcceptRouteSuggestionResponse, error)
// AcceptRouteSuggestionWithResponse Accept a Route suggestion
//
// Creates the suggested Route at the top of the list; the Route for `internal_alerts` goes directly below the last Route other than the Default route that already takes an Internal alert, such as the Route for `MusterHeartbeatLost`, and at the top when none does. `409` (`suggestion_obsolete`) when it no longer applies: a matching Route exists now, it was accepted already, or no Destination exists for `internal_alerts`; `422` (`required` at `/destination_ids`) when `internal_alerts` is accepted without Destinations.
//
// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
//
// Corresponds with POST /route-suggestions/{suggestion_id}/accept (the `AcceptRouteSuggestion` operationId).
AcceptRouteSuggestionWithResponse(ctx context.Context, suggestionId SuggestionId, body AcceptRouteSuggestionJSONRequestBody, reqEditors ...RequestEditorFn) (*AcceptRouteSuggestionResponse, error)
// DismissRouteSuggestionWithResponse Dismiss a Route suggestion
//
// Remembered for the calling user only, so Service account tokens get `403` (`service_account_not_allowed`). `409` (`suggestion_obsolete`) when it no longer applies.
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with POST /route-suggestions/{suggestion_id}/dismiss (the `DismissRouteSuggestion` operationId).
DismissRouteSuggestionWithResponse(ctx context.Context, suggestionId SuggestionId, reqEditors ...RequestEditorFn) (*DismissRouteSuggestionResponse, error)
// ListRoutesWithResponse List Routes in evaluation order
//
// The first Route whose Matchers all match takes an Alert. The Default route is always last. The ETag covers the order and is what `reorderRoutes` expects in `If-Match`.
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with GET /routes (the `ListRoutes` operationId).
ListRoutesWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*ListRoutesResponse, error)
// CreateRouteWithBodyWithResponse Create a Route
//
// Inserted before the Default route. Fields omitted from `policy` are not defaulted: fetch a profile with `listRouteProfiles` to pre-fill the form. Templates are parsed and dry-run against recent Stored Snapshots; a template that fails is refused with `422` and the error position.
//
// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
//
// Corresponds with POST /routes (the `CreateRoute` operationId).
CreateRouteWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateRouteResponse, error)
// CreateRouteWithResponse Create a Route
//
// Inserted before the Default route. Fields omitted from `policy` are not defaulted: fetch a profile with `listRouteProfiles` to pre-fill the form. Templates are parsed and dry-run against recent Stored Snapshots; a template that fails is refused with `422` and the error position.
//
// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
//
// Corresponds with POST /routes (the `CreateRoute` operationId).
CreateRouteWithResponse(ctx context.Context, body CreateRouteJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateRouteResponse, error)
// DeleteRouteWithResponse Delete a Route
//
// Refused with `409` `default-route-immutable` for the Default route and with `409` `route-has-open-alert-groups` (carrying `open_alert_group_count`) while open Alert Groups remain; move them first with `moveOpenAlertGroups`.
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with DELETE /routes/{route_id} (the `DeleteRoute` operationId).
DeleteRouteWithResponse(ctx context.Context, routeId RouteId, params *DeleteRouteParams, reqEditors ...RequestEditorFn) (*DeleteRouteResponse, error)
// GetRouteWithResponse Read a Route
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with GET /routes/{route_id} (the `GetRoute` operationId).
GetRouteWithResponse(ctx context.Context, routeId RouteId, reqEditors ...RequestEditorFn) (*GetRouteResponse, error)
// UpdateRouteWithBodyWithResponse Update a Route
//
// Replaces the writable fields. Requires `If-Match`; a stale ETag gets `412`. An omitted optional field keeps its stored value; an explicit `null` clears a nullable one.
//
// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
//
// Corresponds with PUT /routes/{route_id} (the `UpdateRoute` operationId).
UpdateRouteWithBodyWithResponse(ctx context.Context, routeId RouteId, params *UpdateRouteParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateRouteResponse, error)
// UpdateRouteWithResponse Update a Route
//
// Replaces the writable fields. Requires `If-Match`; a stale ETag gets `412`. An omitted optional field keeps its stored value; an explicit `null` clears a nullable one.
//
// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
//
// Corresponds with PUT /routes/{route_id} (the `UpdateRoute` operationId).
UpdateRouteWithResponse(ctx context.Context, routeId RouteId, params *UpdateRouteParams, body UpdateRouteJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateRouteResponse, error)
// MoveOpenAlertGroupsWithResponse Move open Alert Groups to the Default route
//
// Adds a `moved_to_default_route` Timeline entry to each moved Alert Group. Afterwards the Route can be deleted. A moved Alert Group keeps its Group key values but takes no new Alerts and never reopens; it stays open until its Alerts resolve or a person resolves it.
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with POST /routes/{route_id}/move-open-alert-groups (the `MoveOpenAlertGroups` operationId).
MoveOpenAlertGroupsWithResponse(ctx context.Context, routeId RouteId, reqEditors ...RequestEditorFn) (*MoveOpenAlertGroupsResponse, error)
// ListServiceAccountsWithResponse List Service accounts
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with GET /service-accounts (the `ListServiceAccounts` operationId).
ListServiceAccountsWithResponse(ctx context.Context, params *ListServiceAccountsParams, reqEditors ...RequestEditorFn) (*ListServiceAccountsResponse, error)
// CreateServiceAccountWithBodyWithResponse Create a Service account
//
// A token may only assign a Role whose Permissions it holds itself (`422` `permission_not_held` at `/role`).
//
// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
//
// Corresponds with POST /service-accounts (the `CreateServiceAccount` operationId).
CreateServiceAccountWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateServiceAccountResponse, error)
// CreateServiceAccountWithResponse Create a Service account
//
// A token may only assign a Role whose Permissions it holds itself (`422` `permission_not_held` at `/role`).
//
// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
//
// Corresponds with POST /service-accounts (the `CreateServiceAccount` operationId).
CreateServiceAccountWithResponse(ctx context.Context, body CreateServiceAccountJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateServiceAccountResponse, error)
// DeleteServiceAccountWithResponse Delete a Service account
//
// Revokes its tokens.
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with DELETE /service-accounts/{service_account_id} (the `DeleteServiceAccount` operationId).
DeleteServiceAccountWithResponse(ctx context.Context, serviceAccountId ServiceAccountId, params *DeleteServiceAccountParams, reqEditors ...RequestEditorFn) (*DeleteServiceAccountResponse, error)
// GetServiceAccountWithResponse Read a Service account
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with GET /service-accounts/{service_account_id} (the `GetServiceAccount` operationId).
GetServiceAccountWithResponse(ctx context.Context, serviceAccountId ServiceAccountId, reqEditors ...RequestEditorFn) (*GetServiceAccountResponse, error)
// UpdateServiceAccountWithBodyWithResponse Update a Service account
//
// A token may only assign a Role whose Permissions it holds itself (`422` `permission_not_held` at `/role`).
//
// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
//
// Corresponds with PUT /service-accounts/{service_account_id} (the `UpdateServiceAccount` operationId).
UpdateServiceAccountWithBodyWithResponse(ctx context.Context, serviceAccountId ServiceAccountId, params *UpdateServiceAccountParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateServiceAccountResponse, error)
// UpdateServiceAccountWithResponse Update a Service account
//
// A token may only assign a Role whose Permissions it holds itself (`422` `permission_not_held` at `/role`).
//
// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
//
// Corresponds with PUT /service-accounts/{service_account_id} (the `UpdateServiceAccount` operationId).
UpdateServiceAccountWithResponse(ctx context.Context, serviceAccountId ServiceAccountId, params *UpdateServiceAccountParams, body UpdateServiceAccountJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateServiceAccountResponse, error)
// DisableServiceAccountWithResponse Disable a Service account
//
// Its tokens stop working until the account is enabled again.
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with POST /service-accounts/{service_account_id}/disable (the `DisableServiceAccount` operationId).
DisableServiceAccountWithResponse(ctx context.Context, serviceAccountId ServiceAccountId, reqEditors ...RequestEditorFn) (*DisableServiceAccountResponse, error)
// EnableServiceAccountWithResponse Enable a Service account
//
// Makes a disabled Service account usable again; its tokens work again.
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with POST /service-accounts/{service_account_id}/enable (the `EnableServiceAccount` operationId).
EnableServiceAccountWithResponse(ctx context.Context, serviceAccountId ServiceAccountId, reqEditors ...RequestEditorFn) (*EnableServiceAccountResponse, error)
// ListServiceAccountTokensWithResponse List tokens of a Service account
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with GET /service-accounts/{service_account_id}/tokens (the `ListServiceAccountTokens` operationId).
ListServiceAccountTokensWithResponse(ctx context.Context, serviceAccountId ServiceAccountId, reqEditors ...RequestEditorFn) (*ListServiceAccountTokensResponse, error)
// CreateServiceAccountTokenWithBodyWithResponse Create a Service account token
//
// Shows the token once. Web session only: a token can never mint another token.
//
// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
//
// Corresponds with POST /service-accounts/{service_account_id}/tokens (the `CreateServiceAccountToken` operationId).
CreateServiceAccountTokenWithBodyWithResponse(ctx context.Context, serviceAccountId ServiceAccountId, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateServiceAccountTokenResponse, error)
// CreateServiceAccountTokenWithResponse Create a Service account token
//
// Shows the token once. Web session only: a token can never mint another token.
//
// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
//
// Corresponds with POST /service-accounts/{service_account_id}/tokens (the `CreateServiceAccountToken` operationId).
CreateServiceAccountTokenWithResponse(ctx context.Context, serviceAccountId ServiceAccountId, body CreateServiceAccountTokenJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateServiceAccountTokenResponse, error)
// RevokeServiceAccountTokenWithResponse Revoke a Service account token
//
// Revokes the token at once. Web session only: a token can never revoke a token.
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with DELETE /service-accounts/{service_account_id}/tokens/{token_id} (the `RevokeServiceAccountToken` operationId).
RevokeServiceAccountTokenWithResponse(ctx context.Context, serviceAccountId ServiceAccountId, tokenId TokenId, reqEditors ...RequestEditorFn) (*RevokeServiceAccountTokenResponse, error)
// CreateSessionWithBodyWithResponse Sign in with a local account
//
// Creates a session cookie (`HttpOnly; Secure; SameSite=Lax`) and returns the CSRF token. If the user has TOTP and the request carries neither `totp_code` nor `recovery_code`, the session starts in the state `totp_required` and `POST /sessions/current/totp` completes it. Under a TOTP policy that covers a user without TOTP the state is `totp_enrolment_required`. A wrong login, password or code is `401` (`invalid_credentials`) without saying which one was wrong. Failed attempts slow down per account and per source address (`429` with `Retry-After`). A request a browser marks as cross-site (`Sec-Fetch-Site` set to `cross-site`) is refused with `403` (`csrf_invalid`).
//
// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
//
// Corresponds with POST /sessions (the `CreateSession` operationId).
CreateSessionWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateSessionResponse, error)
// CreateSessionWithResponse Sign in with a local account
//
// Creates a session cookie (`HttpOnly; Secure; SameSite=Lax`) and returns the CSRF token. If the user has TOTP and the request carries neither `totp_code` nor `recovery_code`, the session starts in the state `totp_required` and `POST /sessions/current/totp` completes it. Under a TOTP policy that covers a user without TOTP the state is `totp_enrolment_required`. A wrong login, password or code is `401` (`invalid_credentials`) without saying which one was wrong. Failed attempts slow down per account and per source address (`429` with `Retry-After`). A request a browser marks as cross-site (`Sec-Fetch-Site` set to `cross-site`) is refused with `403` (`csrf_invalid`).
//
// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
//
// Corresponds with POST /sessions (the `CreateSession` operationId).
CreateSessionWithResponse(ctx context.Context, body CreateSessionJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateSessionResponse, error)
// DeleteCurrentSessionWithResponse Sign out
//
// Ends the session, in any state.
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with DELETE /sessions/current (the `DeleteCurrentSession` operationId).
DeleteCurrentSessionWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*DeleteCurrentSessionResponse, error)
// GetCurrentSessionWithResponse Read the current session
//
// Returns the session in any state, including the CSRF token the SPA sends on mutating requests.
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with GET /sessions/current (the `GetCurrentSession` operationId).
GetCurrentSessionWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetCurrentSessionResponse, error)
// SubmitSessionTotpWithBodyWithResponse Give the second factor
//
// Completes a session in the state `totp_required` with a current TOTP code or a single-use recovery code; works the same after a local and an OIDC sign-in. A wrong code is `401` (`invalid_credentials`) and slows down like a wrong password; `409` (`totp_not_pending`) when the session is not waiting for a code.
//
// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
//
// Corresponds with POST /sessions/current/totp (the `SubmitSessionTotp` operationId).
SubmitSessionTotpWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*SubmitSessionTotpResponse, error)
// SubmitSessionTotpWithResponse Give the second factor
//
// Completes a session in the state `totp_required` with a current TOTP code or a single-use recovery code; works the same after a local and an OIDC sign-in. A wrong code is `401` (`invalid_credentials`) and slows down like a wrong password; `409` (`totp_not_pending`) when the session is not waiting for a code.
//
// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
//
// Corresponds with POST /sessions/current/totp (the `SubmitSessionTotp` operationId).
SubmitSessionTotpWithResponse(ctx context.Context, body SubmitSessionTotpJSONRequestBody, reqEditors ...RequestEditorFn) (*SubmitSessionTotpResponse, error)
// CompleteOidcSignInWithResponse Complete OIDC sign-in
//
// Redirect target of the identity provider. Every outcome is a `302` to the SPA, so the browser never shows a raw error. On success it sets the session cookie (state `active`, or `totp_required` when the user has TOTP and the identity provider did not assert multi-factor authentication) and redirects to the `return_to` of the start or to `/`. The first sign-in of a new identity creates the user, with the login taken from `preferred_username`, else the email, else `sub`. Accounts are never merged by login or email; an identity reaches an existing account only by linking it from that account's profile (`startOidcLink`). A failure redirects to `/sign-in?error=<code>` with one of `no_access` (the person is in no mapped group; the Audit log records the groups from the claim), `login_taken` (a new identity's login belongs to an existing account; the page says "An account with this login already exists. Sign in with it and link OIDC in your profile.", and the Audit log records the refusal), `account_disabled`, `oidc_disabled`, `invalid_request` (bad or missing `state`, `code` or `nonce`) and `idp_error` (the identity provider or the back channel failed).
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with GET /sessions/oidc/callback (the `CompleteOidcSignIn` operationId).
CompleteOidcSignInWithResponse(ctx context.Context, params *CompleteOidcSignInParams, reqEditors ...RequestEditorFn) (*CompleteOidcSignInResponse, error)
// StartOidcSignInWithResponse Start OIDC sign-in
//
// Redirects the browser to the identity provider with PKCE (`S256`), `state` and `nonce`, all mandatory, requesting `openid` and the configured scopes, and `offline_access` when the IdP's discovery lists it in `scopes_supported` or publishes no `scopes_supported`; when the IdP grants it, the offline token is stored on the user, encrypted, replacing the previous one. Muster exchanges the code itself through the back channel. The redirect URI to register at the identity provider is `MUSTER_PUBLIC_URL/api/v1/sessions/oidc/callback`. `409` (`oidc_not_enabled`) while OIDC is off.
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with GET /sessions/oidc/start (the `StartOidcSignIn` operationId).
StartOidcSignInWithResponse(ctx context.Context, params *StartOidcSignInParams, reqEditors ...RequestEditorFn) (*StartOidcSignInResponse, error)
// GetSignInOptionsWithResponse Read sign-in options
//
// Whether the sign-in page shows the OIDC button next to the local form. Local sign-in is always available; no setting turns it off. Carries no version or other detail about the installation.
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with GET /sign-in-options (the `GetSignInOptions` operationId).
GetSignInOptionsWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetSignInOptionsResponse, error)
// ListSnoozePresetsWithResponse List the ends of the Snooze presets
//
// The end that a Snooze with each Snooze preset would set now, in the order `tomorrow`, `week_start`, computed like the Snooze itself from `organization.workday_start` and `organization.week_start` on the business clock. The time zone is `time_zone` when given, else the profile time zone of the User the caller acts as, else the Organization's; the answer names the one it used. A time zone Muster does not know (or `Local`) is `422` `invalid_format` at `/query/time_zone`. It reads and changes nothing else.
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with GET /snooze-presets (the `ListSnoozePresets` operationId).
ListSnoozePresetsWithResponse(ctx context.Context, params *ListSnoozePresetsParams, reqEditors ...RequestEditorFn) (*ListSnoozePresetsResponse, error)
// ListStoredSnapshotsWithResponse List Stored Snapshots
//
// Kept for `retention.stored_snapshots`. Replay is the CLI command `muster ingest replay`.
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with GET /stored-snapshots (the `ListStoredSnapshots` operationId).
ListStoredSnapshotsWithResponse(ctx context.Context, params *ListStoredSnapshotsParams, reqEditors ...RequestEditorFn) (*ListStoredSnapshotsResponse, error)
// GetStoredSnapshotWithResponse Read a Stored Snapshot as received
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with GET /stored-snapshots/{stored_snapshot_id} (the `GetStoredSnapshot` operationId).
GetStoredSnapshotWithResponse(ctx context.Context, storedSnapshotId StoredSnapshotId, reqEditors ...RequestEditorFn) (*GetStoredSnapshotResponse, error)
// ListSystemNoticesWithResponse List active Organization-wide notices
//
// "Recovering after downtime" for every signed-in user, "no replica is leading" for Admins. Changes arrive as `system-notices` hints.
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with GET /system-notices (the `ListSystemNotices` operationId).
ListSystemNoticesWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*ListSystemNoticesResponse, error)
// GetSystemStatusWithResponse Read the System status
//
// Read-only: replicas and the Leader with their key ids, the recovery state, delivery queues, Broken Destinations, Integrations with Heartbeat lost or truncated Snapshots, template errors, active Storms and the last outgoing heartbeat.
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with GET /system-status (the `GetSystemStatus` operationId).
GetSystemStatusWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetSystemStatusResponse, error)
// PreviewTemplateWithBodyWithResponse Render a template against a sample
//
// Parses and renders a template in the sandbox against a recent Stored Snapshot, an Alert Group or a built-in example. Template errors are returned in `errors` with their position, not as a Problem, so an editor can show them next to the preview.
//
// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
//
// Corresponds with POST /template-previews (the `PreviewTemplate` operationId).
PreviewTemplateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PreviewTemplateResponse, error)
// PreviewTemplateWithResponse Render a template against a sample
//
// Parses and renders a template in the sandbox against a recent Stored Snapshot, an Alert Group or a built-in example. Template errors are returned in `errors` with their position, not as a Problem, so an editor can show them next to the preview.
//
// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
//
// Corresponds with POST /template-previews (the `PreviewTemplate` operationId).
PreviewTemplateWithResponse(ctx context.Context, body PreviewTemplateJSONRequestBody, reqEditors ...RequestEditorFn) (*PreviewTemplateResponse, error)
// ListUserDirectoryWithResponse List users for pickers and filters
//
// Name, login and whether the user is deactivated, for the Owner filter, Mention settings and other pickers. Includes deleted users, because their acknowledgements stay visible. Available to everyone who reads Alert Groups, unlike `listUsers`.
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with GET /user-directory (the `ListUserDirectory` operationId).
ListUserDirectoryWithResponse(ctx context.Context, params *ListUserDirectoryParams, reqEditors ...RequestEditorFn) (*ListUserDirectoryResponse, error)
// ListUsersWithResponse List users
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with GET /users (the `ListUsers` operationId).
ListUsersWithResponse(ctx context.Context, params *ListUsersParams, reqEditors ...RequestEditorFn) (*ListUsersResponse, error)
// CreateUserWithBodyWithResponse Create a local user
//
// Returns a single-use password setup link; Muster sends no email. A token may only assign a Role whose Permissions it holds itself (`422` `permission_not_held` at `/role`).
//
// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
//
// Corresponds with POST /users (the `CreateUser` operationId).
CreateUserWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateUserResponse, error)
// CreateUserWithResponse Create a local user
//
// Returns a single-use password setup link; Muster sends no email. A token may only assign a Role whose Permissions it holds itself (`422` `permission_not_held` at `/role`).
//
// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
//
// Corresponds with POST /users (the `CreateUser` operationId).
CreateUserWithResponse(ctx context.Context, body CreateUserJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateUserResponse, error)
// DeleteUserWithResponse Delete a user
//
// Deactivates and pseudonymizes: the name becomes `deleted-user-<id>`, the email is erased, sessions end, tokens are revoked and Account links are removed. Every acknowledged Alert Group the user owns becomes firing without an Owner, with an `unacknowledged` Timeline entry by the system and the reason `owner_deleted`. Audit log rows are never changed. The last active Admin cannot be deleted (`409` `last_admin`).
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with DELETE /users/{user_id} (the `DeleteUser` operationId).
DeleteUserWithResponse(ctx context.Context, userId UserId, params *DeleteUserParams, reqEditors ...RequestEditorFn) (*DeleteUserResponse, error)
// GetUserWithResponse Read a user
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with GET /users/{user_id} (the `GetUser` operationId).
GetUserWithResponse(ctx context.Context, userId UserId, reqEditors ...RequestEditorFn) (*GetUserResponse, error)
// UpdateUserWithBodyWithResponse Update a user
//
// Changes name, email and Role. A Role change ends the user's sessions. Refused with `409` (`role_locked`) for a Role change of an account that signs in through OIDC while OIDC and `oidc.sync_role` are both on, and with `409` (`last_admin`) when it would give the last active Admin a lower Role. A token may only assign a Role whose Permissions it holds itself (`422` `permission_not_held` at `/role`).
//
// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
//
// Corresponds with PUT /users/{user_id} (the `UpdateUser` operationId).
UpdateUserWithBodyWithResponse(ctx context.Context, userId UserId, params *UpdateUserParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateUserResponse, error)
// UpdateUserWithResponse Update a user
//
// Changes name, email and Role. A Role change ends the user's sessions. Refused with `409` (`role_locked`) for a Role change of an account that signs in through OIDC while OIDC and `oidc.sync_role` are both on, and with `409` (`last_admin`) when it would give the last active Admin a lower Role. A token may only assign a Role whose Permissions it holds itself (`422` `permission_not_held` at `/role`).
//
// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
//
// Corresponds with PUT /users/{user_id} (the `UpdateUser` operationId).
UpdateUserWithResponse(ctx context.Context, userId UserId, params *UpdateUserParams, body UpdateUserJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateUserResponse, error)
// ListUserAccountLinksWithResponse List a user's Account links
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with GET /users/{user_id}/account-links (the `ListUserAccountLinks` operationId).
ListUserAccountLinksWithResponse(ctx context.Context, userId UserId, reqEditors ...RequestEditorFn) (*ListUserAccountLinksResponse, error)
// DeleteUserAccountLinkWithResponse Remove a user's Account link
//
// Admins can remove any link but cannot create one for someone else. An Admin's own link is removed from the web session only; with a token the answer is `403` (`session_required`).
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with DELETE /users/{user_id}/account-links/{account_link_id} (the `DeleteUserAccountLink` operationId).
DeleteUserAccountLinkWithResponse(ctx context.Context, userId UserId, accountLinkId AccountLinkId, reqEditors ...RequestEditorFn) (*DeleteUserAccountLinkResponse, error)
// ConvertUserToLocalWithResponse Convert an OIDC account to local
//
// Removes the OIDC identity of an account that signs in through OIDC — created through OIDC or linked — and ends its sessions; the response carries a password setup link, as at user creation, and the Audit log records the conversion. The account keeps its TOTP enrolment and, once the password is set, signs in only with it. `409` with `oidc_not_linked` when the account does not sign in through OIDC.
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with POST /users/{user_id}/convert-to-local (the `ConvertUserToLocal` operationId).
ConvertUserToLocalWithResponse(ctx context.Context, userId UserId, reqEditors ...RequestEditorFn) (*ConvertUserToLocalResponse, error)
// DisableUserWithResponse Disable a user
//
// Ends the user's sessions; tokens stop working until the user is enabled again. Every acknowledged Alert Group the user owns becomes firing without an Owner, with an `unacknowledged` Timeline entry by the system and the reason `owner_disabled`; enabling the user again gives no acknowledgement back. The last active Admin cannot be disabled (`409` `last_admin`).
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with POST /users/{user_id}/disable (the `DisableUser` operationId).
DisableUserWithResponse(ctx context.Context, userId UserId, reqEditors ...RequestEditorFn) (*DisableUserResponse, error)
// EnableUserWithResponse Enable a user
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with POST /users/{user_id}/enable (the `EnableUser` operationId).
EnableUserWithResponse(ctx context.Context, userId UserId, reqEditors ...RequestEditorFn) (*EnableUserResponse, error)
// CreatePasswordSetupLinkWithResponse Issue a password setup link
//
// Valid for `auth.password_setup_link_ttl`, single use. Only for an account that signs in with a password (`409` `local_user_only` for an OIDC account; convert it with `convertUserToLocal`).
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with POST /users/{user_id}/password-setup-links (the `CreatePasswordSetupLink` operationId).
CreatePasswordSetupLinkWithResponse(ctx context.Context, userId UserId, reqEditors ...RequestEditorFn) (*CreatePasswordSetupLinkResponse, error)
// ResetUserTotpWithResponse Reset a user's TOTP
//
// Audited. The user enrols again at the next sign-in if the policy requires it.
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with POST /users/{user_id}/reset-totp (the `ResetUserTotp` operationId).
ResetUserTotpWithResponse(ctx context.Context, userId UserId, reqEditors ...RequestEditorFn) (*ResetUserTotpResponse, error)
}
ClientWithResponsesInterface is the interface specification for the client with responses above.
type CommandName ¶
type CommandName string
CommandName The Commands a caller may run on an Alert Group now (`allowed_commands`). `still_on_it` appears while a Reminder is pending and the caller is the Owner; `add_note` while the caller holds `alert-groups:note`. A Service account is never offered `acknowledge` or `still_on_it`.
const ( CommandNameAcknowledge CommandName = "acknowledge" CommandNameAddNote CommandName = "add_note" CommandNameResolve CommandName = "resolve" CommandNameSnooze CommandName = "snooze" CommandNameStillOnIt CommandName = "still_on_it" CommandNameUnacknowledge CommandName = "unacknowledge" CommandNameUnresolve CommandName = "unresolve" CommandNameUnsnooze CommandName = "unsnooze" )
Defines values for CommandName.
func (CommandName) Valid ¶
func (e CommandName) Valid() bool
Valid indicates whether the value is a known member of the CommandName enum.
type CommandOutcome ¶
type CommandOutcome string
CommandOutcome `unchanged` for an idempotent repeat, such as Acknowledge by the current Owner.
const ( CommandOutcomeDone CommandOutcome = "done" CommandOutcomeUnchanged CommandOutcome = "unchanged" )
Defines values for CommandOutcome.
func (CommandOutcome) Valid ¶
func (e CommandOutcome) Valid() bool
Valid indicates whether the value is a known member of the CommandOutcome enum.
type CommandResult ¶
type CommandResult struct {
AlertGroup AlertGroup `json:"alert_group"`
// Outcome `unchanged` for an idempotent repeat, such as Acknowledge by the current Owner.
Outcome CommandOutcome `json:"outcome"`
}
CommandResult defines model for CommandResult.
type CompleteOidcLinkParams ¶
type CompleteOidcLinkParams struct {
// Code Authorization code.
Code *string `form:"code,omitempty" json:"code,omitempty"`
// State State issued by `startOidcLink`.
State *string `form:"state,omitempty" json:"state,omitempty"`
// Error Error reported by the identity provider.
Error *string `form:"error,omitempty" json:"error,omitempty"`
}
CompleteOidcLinkParams defines parameters for CompleteOidcLink.
type CompleteOidcLinkResponse ¶
type CompleteOidcLinkResponse struct {
Body []byte
HTTPResponse *http.Response
// ApplicationproblemJSON429 the response for an HTTP 429 `application/problem+json` response
ApplicationproblemJSON429 *TooManyRequests
// Headers302 the parsed response headers for an HTTP 302 response
Headers302 *CompleteOidcLinkResponse302Headers
// Headers429 the parsed response headers for an HTTP 429 response
Headers429 *CompleteOidcLinkResponse429Headers
}
func ParseCompleteOidcLinkResponse ¶
func ParseCompleteOidcLinkResponse(rsp *http.Response) (*CompleteOidcLinkResponse, error)
ParseCompleteOidcLinkResponse parses an HTTP response from a CompleteOidcLinkWithResponse call
func (CompleteOidcLinkResponse) ContentType ¶
func (r CompleteOidcLinkResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (CompleteOidcLinkResponse) GetApplicationproblemJSON429 ¶
func (r CompleteOidcLinkResponse) GetApplicationproblemJSON429() *TooManyRequests
GetApplicationproblemJSON429 returns the response for an HTTP 429 `application/problem+json` response
func (CompleteOidcLinkResponse) GetBody ¶
func (r CompleteOidcLinkResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (CompleteOidcLinkResponse) Status ¶
func (r CompleteOidcLinkResponse) Status() string
Status returns HTTPResponse.Status
func (CompleteOidcLinkResponse) StatusCode ¶
func (r CompleteOidcLinkResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type CompleteOidcLinkResponse302Headers ¶
type CompleteOidcLinkResponse302Headers struct {
Location *string
}
CompleteOidcLinkResponse302Headers the declared response headers of an HTTP 302 response for CompleteOidcLink
type CompleteOidcLinkResponse429Headers ¶
type CompleteOidcLinkResponse429Headers struct {
RetryAfter *int
}
CompleteOidcLinkResponse429Headers the declared response headers of an HTTP 429 response for CompleteOidcLink
type CompleteOidcSignInParams ¶
type CompleteOidcSignInParams struct {
// Code Authorization code.
Code *string `form:"code,omitempty" json:"code,omitempty"`
// State State issued by `startOidcSignIn`.
State *string `form:"state,omitempty" json:"state,omitempty"`
// Error Error reported by the identity provider.
Error *string `form:"error,omitempty" json:"error,omitempty"`
}
CompleteOidcSignInParams defines parameters for CompleteOidcSignIn.
type CompleteOidcSignInResponse ¶
type CompleteOidcSignInResponse struct {
Body []byte
HTTPResponse *http.Response
// ApplicationproblemJSON429 the response for an HTTP 429 `application/problem+json` response
ApplicationproblemJSON429 *TooManyRequests
// Headers302 the parsed response headers for an HTTP 302 response
Headers302 *CompleteOidcSignInResponse302Headers
// Headers429 the parsed response headers for an HTTP 429 response
Headers429 *CompleteOidcSignInResponse429Headers
}
func ParseCompleteOidcSignInResponse ¶
func ParseCompleteOidcSignInResponse(rsp *http.Response) (*CompleteOidcSignInResponse, error)
ParseCompleteOidcSignInResponse parses an HTTP response from a CompleteOidcSignInWithResponse call
func (CompleteOidcSignInResponse) ContentType ¶
func (r CompleteOidcSignInResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (CompleteOidcSignInResponse) GetApplicationproblemJSON429 ¶
func (r CompleteOidcSignInResponse) GetApplicationproblemJSON429() *TooManyRequests
GetApplicationproblemJSON429 returns the response for an HTTP 429 `application/problem+json` response
func (CompleteOidcSignInResponse) GetBody ¶
func (r CompleteOidcSignInResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (CompleteOidcSignInResponse) Status ¶
func (r CompleteOidcSignInResponse) Status() string
Status returns HTTPResponse.Status
func (CompleteOidcSignInResponse) StatusCode ¶
func (r CompleteOidcSignInResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type CompleteOidcSignInResponse302Headers ¶
type CompleteOidcSignInResponse302Headers struct {
Location *string
}
CompleteOidcSignInResponse302Headers the declared response headers of an HTTP 302 response for CompleteOidcSignIn
type CompleteOidcSignInResponse429Headers ¶
type CompleteOidcSignInResponse429Headers struct {
RetryAfter *int
}
CompleteOidcSignInResponse429Headers the declared response headers of an HTTP 429 response for CompleteOidcSignIn
type CompletePasswordSetupJSONRequestBody ¶
type CompletePasswordSetupJSONRequestBody = PasswordSetup
CompletePasswordSetupJSONRequestBody defines body for CompletePasswordSetup for application/json ContentType.
type CompletePasswordSetupResponse ¶
type CompletePasswordSetupResponse struct {
Body []byte
HTTPResponse *http.Response
// ApplicationproblemJSON400 the response for an HTTP 400 `application/problem+json` response
ApplicationproblemJSON400 *BadRequest
// ApplicationproblemJSON403 the response for an HTTP 403 `application/problem+json` response
ApplicationproblemJSON403 *Forbidden
// ApplicationproblemJSON404 the response for an HTTP 404 `application/problem+json` response
ApplicationproblemJSON404 *NotFound
// ApplicationproblemJSON410 the response for an HTTP 410 `application/problem+json` response
ApplicationproblemJSON410 *Gone
// ApplicationproblemJSON422 the response for an HTTP 422 `application/problem+json` response
ApplicationproblemJSON422 *Unprocessable
// ApplicationproblemJSON429 the response for an HTTP 429 `application/problem+json` response
ApplicationproblemJSON429 *TooManyRequests
// Headers429 the parsed response headers for an HTTP 429 response
Headers429 *CompletePasswordSetupResponse429Headers
}
func ParseCompletePasswordSetupResponse ¶
func ParseCompletePasswordSetupResponse(rsp *http.Response) (*CompletePasswordSetupResponse, error)
ParseCompletePasswordSetupResponse parses an HTTP response from a CompletePasswordSetupWithResponse call
func (CompletePasswordSetupResponse) ContentType ¶
func (r CompletePasswordSetupResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (CompletePasswordSetupResponse) GetApplicationproblemJSON400 ¶
func (r CompletePasswordSetupResponse) GetApplicationproblemJSON400() *BadRequest
GetApplicationproblemJSON400 returns the response for an HTTP 400 `application/problem+json` response
func (CompletePasswordSetupResponse) GetApplicationproblemJSON403 ¶
func (r CompletePasswordSetupResponse) GetApplicationproblemJSON403() *Forbidden
GetApplicationproblemJSON403 returns the response for an HTTP 403 `application/problem+json` response
func (CompletePasswordSetupResponse) GetApplicationproblemJSON404 ¶
func (r CompletePasswordSetupResponse) GetApplicationproblemJSON404() *NotFound
GetApplicationproblemJSON404 returns the response for an HTTP 404 `application/problem+json` response
func (CompletePasswordSetupResponse) GetApplicationproblemJSON410 ¶
func (r CompletePasswordSetupResponse) GetApplicationproblemJSON410() *Gone
GetApplicationproblemJSON410 returns the response for an HTTP 410 `application/problem+json` response
func (CompletePasswordSetupResponse) GetApplicationproblemJSON422 ¶
func (r CompletePasswordSetupResponse) GetApplicationproblemJSON422() *Unprocessable
GetApplicationproblemJSON422 returns the response for an HTTP 422 `application/problem+json` response
func (CompletePasswordSetupResponse) GetApplicationproblemJSON429 ¶
func (r CompletePasswordSetupResponse) GetApplicationproblemJSON429() *TooManyRequests
GetApplicationproblemJSON429 returns the response for an HTTP 429 `application/problem+json` response
func (CompletePasswordSetupResponse) GetBody ¶
func (r CompletePasswordSetupResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (CompletePasswordSetupResponse) Status ¶
func (r CompletePasswordSetupResponse) Status() string
Status returns HTTPResponse.Status
func (CompletePasswordSetupResponse) StatusCode ¶
func (r CompletePasswordSetupResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type CompletePasswordSetupResponse429Headers ¶
type CompletePasswordSetupResponse429Headers struct {
RetryAfter *int
}
CompletePasswordSetupResponse429Headers the declared response headers of an HTTP 429 response for CompletePasswordSetup
type ConfirmBridgeLinkJSONRequestBody ¶
type ConfirmBridgeLinkJSONRequestBody = BridgeLinkConfirm
ConfirmBridgeLinkJSONRequestBody defines body for ConfirmBridgeLink for application/json ContentType.
type ConfirmBridgeLinkResponse ¶
type ConfirmBridgeLinkResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON201 the response for an HTTP 201 `application/json` response
JSON201 *AccountLink
// ApplicationproblemJSON400 the response for an HTTP 400 `application/problem+json` response
ApplicationproblemJSON400 *BadRequest
// ApplicationproblemJSON401 the response for an HTTP 401 `application/problem+json` response
ApplicationproblemJSON401 *Unauthorized
// ApplicationproblemJSON403 the response for an HTTP 403 `application/problem+json` response
ApplicationproblemJSON403 *Forbidden
// ApplicationproblemJSON404 the response for an HTTP 404 `application/problem+json` response
ApplicationproblemJSON404 *NotFound
// ApplicationproblemJSON409 the response for an HTTP 409 `application/problem+json` response
ApplicationproblemJSON409 *Conflict
// ApplicationproblemJSON422 the response for an HTTP 422 `application/problem+json` response
ApplicationproblemJSON422 *Unprocessable
// ApplicationproblemJSON429 the response for an HTTP 429 `application/problem+json` response
ApplicationproblemJSON429 *TooManyRequests
// Headers429 the parsed response headers for an HTTP 429 response
Headers429 *ConfirmBridgeLinkResponse429Headers
}
func ParseConfirmBridgeLinkResponse ¶
func ParseConfirmBridgeLinkResponse(rsp *http.Response) (*ConfirmBridgeLinkResponse, error)
ParseConfirmBridgeLinkResponse parses an HTTP response from a ConfirmBridgeLinkWithResponse call
func (ConfirmBridgeLinkResponse) ContentType ¶
func (r ConfirmBridgeLinkResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (ConfirmBridgeLinkResponse) GetApplicationproblemJSON400 ¶
func (r ConfirmBridgeLinkResponse) GetApplicationproblemJSON400() *BadRequest
GetApplicationproblemJSON400 returns the response for an HTTP 400 `application/problem+json` response
func (ConfirmBridgeLinkResponse) GetApplicationproblemJSON401 ¶
func (r ConfirmBridgeLinkResponse) GetApplicationproblemJSON401() *Unauthorized
GetApplicationproblemJSON401 returns the response for an HTTP 401 `application/problem+json` response
func (ConfirmBridgeLinkResponse) GetApplicationproblemJSON403 ¶
func (r ConfirmBridgeLinkResponse) GetApplicationproblemJSON403() *Forbidden
GetApplicationproblemJSON403 returns the response for an HTTP 403 `application/problem+json` response
func (ConfirmBridgeLinkResponse) GetApplicationproblemJSON404 ¶
func (r ConfirmBridgeLinkResponse) GetApplicationproblemJSON404() *NotFound
GetApplicationproblemJSON404 returns the response for an HTTP 404 `application/problem+json` response
func (ConfirmBridgeLinkResponse) GetApplicationproblemJSON409 ¶
func (r ConfirmBridgeLinkResponse) GetApplicationproblemJSON409() *Conflict
GetApplicationproblemJSON409 returns the response for an HTTP 409 `application/problem+json` response
func (ConfirmBridgeLinkResponse) GetApplicationproblemJSON422 ¶
func (r ConfirmBridgeLinkResponse) GetApplicationproblemJSON422() *Unprocessable
GetApplicationproblemJSON422 returns the response for an HTTP 422 `application/problem+json` response
func (ConfirmBridgeLinkResponse) GetApplicationproblemJSON429 ¶
func (r ConfirmBridgeLinkResponse) GetApplicationproblemJSON429() *TooManyRequests
GetApplicationproblemJSON429 returns the response for an HTTP 429 `application/problem+json` response
func (ConfirmBridgeLinkResponse) GetBody ¶
func (r ConfirmBridgeLinkResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (ConfirmBridgeLinkResponse) GetJSON201 ¶
func (r ConfirmBridgeLinkResponse) GetJSON201() *AccountLink
GetJSON201 returns the response for an HTTP 201 `application/json` response
func (ConfirmBridgeLinkResponse) Status ¶
func (r ConfirmBridgeLinkResponse) Status() string
Status returns HTTPResponse.Status
func (ConfirmBridgeLinkResponse) StatusCode ¶
func (r ConfirmBridgeLinkResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type ConfirmBridgeLinkResponse429Headers ¶
type ConfirmBridgeLinkResponse429Headers struct {
RetryAfter *int
}
ConfirmBridgeLinkResponse429Headers the declared response headers of an HTTP 429 response for ConfirmBridgeLink
type ConfirmMattermostLinkJSONRequestBody ¶
type ConfirmMattermostLinkJSONRequestBody = MattermostLinkConfirm
ConfirmMattermostLinkJSONRequestBody defines body for ConfirmMattermostLink for application/json ContentType.
type ConfirmMattermostLinkResponse ¶
type ConfirmMattermostLinkResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON201 the response for an HTTP 201 `application/json` response
JSON201 *AccountLink
// ApplicationproblemJSON400 the response for an HTTP 400 `application/problem+json` response
ApplicationproblemJSON400 *BadRequest
// ApplicationproblemJSON401 the response for an HTTP 401 `application/problem+json` response
ApplicationproblemJSON401 *Unauthorized
// ApplicationproblemJSON403 the response for an HTTP 403 `application/problem+json` response
ApplicationproblemJSON403 *Forbidden
// ApplicationproblemJSON404 the response for an HTTP 404 `application/problem+json` response
ApplicationproblemJSON404 *NotFound
// ApplicationproblemJSON409 the response for an HTTP 409 `application/problem+json` response
ApplicationproblemJSON409 *Conflict
// ApplicationproblemJSON422 the response for an HTTP 422 `application/problem+json` response
ApplicationproblemJSON422 *Unprocessable
// ApplicationproblemJSON429 the response for an HTTP 429 `application/problem+json` response
ApplicationproblemJSON429 *TooManyRequests
// ApplicationproblemJSON503 the response for an HTTP 503 `application/problem+json` response
ApplicationproblemJSON503 *Limited
// Headers429 the parsed response headers for an HTTP 429 response
Headers429 *ConfirmMattermostLinkResponse429Headers
// Headers503 the parsed response headers for an HTTP 503 response
Headers503 *ConfirmMattermostLinkResponse503Headers
}
func ParseConfirmMattermostLinkResponse ¶
func ParseConfirmMattermostLinkResponse(rsp *http.Response) (*ConfirmMattermostLinkResponse, error)
ParseConfirmMattermostLinkResponse parses an HTTP response from a ConfirmMattermostLinkWithResponse call
func (ConfirmMattermostLinkResponse) ContentType ¶
func (r ConfirmMattermostLinkResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (ConfirmMattermostLinkResponse) GetApplicationproblemJSON400 ¶
func (r ConfirmMattermostLinkResponse) GetApplicationproblemJSON400() *BadRequest
GetApplicationproblemJSON400 returns the response for an HTTP 400 `application/problem+json` response
func (ConfirmMattermostLinkResponse) GetApplicationproblemJSON401 ¶
func (r ConfirmMattermostLinkResponse) GetApplicationproblemJSON401() *Unauthorized
GetApplicationproblemJSON401 returns the response for an HTTP 401 `application/problem+json` response
func (ConfirmMattermostLinkResponse) GetApplicationproblemJSON403 ¶
func (r ConfirmMattermostLinkResponse) GetApplicationproblemJSON403() *Forbidden
GetApplicationproblemJSON403 returns the response for an HTTP 403 `application/problem+json` response
func (ConfirmMattermostLinkResponse) GetApplicationproblemJSON404 ¶
func (r ConfirmMattermostLinkResponse) GetApplicationproblemJSON404() *NotFound
GetApplicationproblemJSON404 returns the response for an HTTP 404 `application/problem+json` response
func (ConfirmMattermostLinkResponse) GetApplicationproblemJSON409 ¶
func (r ConfirmMattermostLinkResponse) GetApplicationproblemJSON409() *Conflict
GetApplicationproblemJSON409 returns the response for an HTTP 409 `application/problem+json` response
func (ConfirmMattermostLinkResponse) GetApplicationproblemJSON422 ¶
func (r ConfirmMattermostLinkResponse) GetApplicationproblemJSON422() *Unprocessable
GetApplicationproblemJSON422 returns the response for an HTTP 422 `application/problem+json` response
func (ConfirmMattermostLinkResponse) GetApplicationproblemJSON429 ¶
func (r ConfirmMattermostLinkResponse) GetApplicationproblemJSON429() *TooManyRequests
GetApplicationproblemJSON429 returns the response for an HTTP 429 `application/problem+json` response
func (ConfirmMattermostLinkResponse) GetApplicationproblemJSON503 ¶
func (r ConfirmMattermostLinkResponse) GetApplicationproblemJSON503() *Limited
GetApplicationproblemJSON503 returns the response for an HTTP 503 `application/problem+json` response
func (ConfirmMattermostLinkResponse) GetBody ¶
func (r ConfirmMattermostLinkResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (ConfirmMattermostLinkResponse) GetJSON201 ¶
func (r ConfirmMattermostLinkResponse) GetJSON201() *AccountLink
GetJSON201 returns the response for an HTTP 201 `application/json` response
func (ConfirmMattermostLinkResponse) Status ¶
func (r ConfirmMattermostLinkResponse) Status() string
Status returns HTTPResponse.Status
func (ConfirmMattermostLinkResponse) StatusCode ¶
func (r ConfirmMattermostLinkResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type ConfirmMattermostLinkResponse429Headers ¶
type ConfirmMattermostLinkResponse429Headers struct {
RetryAfter *int
}
ConfirmMattermostLinkResponse429Headers the declared response headers of an HTTP 429 response for ConfirmMattermostLink
type ConfirmMattermostLinkResponse503Headers ¶
type ConfirmMattermostLinkResponse503Headers struct {
RetryAfter *int
}
ConfirmMattermostLinkResponse503Headers the declared response headers of an HTTP 503 response for ConfirmMattermostLink
type ConfirmSlackLinkJSONRequestBody ¶
type ConfirmSlackLinkJSONRequestBody = SlackLinkConfirm
ConfirmSlackLinkJSONRequestBody defines body for ConfirmSlackLink for application/json ContentType.
type ConfirmSlackLinkResponse ¶
type ConfirmSlackLinkResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON201 the response for an HTTP 201 `application/json` response
JSON201 *AccountLink
// ApplicationproblemJSON400 the response for an HTTP 400 `application/problem+json` response
ApplicationproblemJSON400 *BadRequest
// ApplicationproblemJSON401 the response for an HTTP 401 `application/problem+json` response
ApplicationproblemJSON401 *Unauthorized
// ApplicationproblemJSON403 the response for an HTTP 403 `application/problem+json` response
ApplicationproblemJSON403 *Forbidden
// ApplicationproblemJSON404 the response for an HTTP 404 `application/problem+json` response
ApplicationproblemJSON404 *NotFound
// ApplicationproblemJSON409 the response for an HTTP 409 `application/problem+json` response
ApplicationproblemJSON409 *Conflict
// ApplicationproblemJSON422 the response for an HTTP 422 `application/problem+json` response
ApplicationproblemJSON422 *Unprocessable
// ApplicationproblemJSON429 the response for an HTTP 429 `application/problem+json` response
ApplicationproblemJSON429 *TooManyRequests
// ApplicationproblemJSON503 the response for an HTTP 503 `application/problem+json` response
ApplicationproblemJSON503 *Limited
// Headers429 the parsed response headers for an HTTP 429 response
Headers429 *ConfirmSlackLinkResponse429Headers
// Headers503 the parsed response headers for an HTTP 503 response
Headers503 *ConfirmSlackLinkResponse503Headers
}
func ParseConfirmSlackLinkResponse ¶
func ParseConfirmSlackLinkResponse(rsp *http.Response) (*ConfirmSlackLinkResponse, error)
ParseConfirmSlackLinkResponse parses an HTTP response from a ConfirmSlackLinkWithResponse call
func (ConfirmSlackLinkResponse) ContentType ¶
func (r ConfirmSlackLinkResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (ConfirmSlackLinkResponse) GetApplicationproblemJSON400 ¶
func (r ConfirmSlackLinkResponse) GetApplicationproblemJSON400() *BadRequest
GetApplicationproblemJSON400 returns the response for an HTTP 400 `application/problem+json` response
func (ConfirmSlackLinkResponse) GetApplicationproblemJSON401 ¶
func (r ConfirmSlackLinkResponse) GetApplicationproblemJSON401() *Unauthorized
GetApplicationproblemJSON401 returns the response for an HTTP 401 `application/problem+json` response
func (ConfirmSlackLinkResponse) GetApplicationproblemJSON403 ¶
func (r ConfirmSlackLinkResponse) GetApplicationproblemJSON403() *Forbidden
GetApplicationproblemJSON403 returns the response for an HTTP 403 `application/problem+json` response
func (ConfirmSlackLinkResponse) GetApplicationproblemJSON404 ¶
func (r ConfirmSlackLinkResponse) GetApplicationproblemJSON404() *NotFound
GetApplicationproblemJSON404 returns the response for an HTTP 404 `application/problem+json` response
func (ConfirmSlackLinkResponse) GetApplicationproblemJSON409 ¶
func (r ConfirmSlackLinkResponse) GetApplicationproblemJSON409() *Conflict
GetApplicationproblemJSON409 returns the response for an HTTP 409 `application/problem+json` response
func (ConfirmSlackLinkResponse) GetApplicationproblemJSON422 ¶
func (r ConfirmSlackLinkResponse) GetApplicationproblemJSON422() *Unprocessable
GetApplicationproblemJSON422 returns the response for an HTTP 422 `application/problem+json` response
func (ConfirmSlackLinkResponse) GetApplicationproblemJSON429 ¶
func (r ConfirmSlackLinkResponse) GetApplicationproblemJSON429() *TooManyRequests
GetApplicationproblemJSON429 returns the response for an HTTP 429 `application/problem+json` response
func (ConfirmSlackLinkResponse) GetApplicationproblemJSON503 ¶
func (r ConfirmSlackLinkResponse) GetApplicationproblemJSON503() *Limited
GetApplicationproblemJSON503 returns the response for an HTTP 503 `application/problem+json` response
func (ConfirmSlackLinkResponse) GetBody ¶
func (r ConfirmSlackLinkResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (ConfirmSlackLinkResponse) GetJSON201 ¶
func (r ConfirmSlackLinkResponse) GetJSON201() *AccountLink
GetJSON201 returns the response for an HTTP 201 `application/json` response
func (ConfirmSlackLinkResponse) Status ¶
func (r ConfirmSlackLinkResponse) Status() string
Status returns HTTPResponse.Status
func (ConfirmSlackLinkResponse) StatusCode ¶
func (r ConfirmSlackLinkResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type ConfirmSlackLinkResponse429Headers ¶
type ConfirmSlackLinkResponse429Headers struct {
RetryAfter *int
}
ConfirmSlackLinkResponse429Headers the declared response headers of an HTTP 429 response for ConfirmSlackLink
type ConfirmSlackLinkResponse503Headers ¶
type ConfirmSlackLinkResponse503Headers struct {
RetryAfter *int
}
ConfirmSlackLinkResponse503Headers the declared response headers of an HTTP 503 response for ConfirmSlackLink
type ConfirmTotpEnrolmentJSONRequestBody ¶
type ConfirmTotpEnrolmentJSONRequestBody = TotpCode
ConfirmTotpEnrolmentJSONRequestBody defines body for ConfirmTotpEnrolment for application/json ContentType.
type ConfirmTotpEnrolmentResponse ¶
type ConfirmTotpEnrolmentResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *TotpRecoveryCodes
// ApplicationproblemJSON400 the response for an HTTP 400 `application/problem+json` response
ApplicationproblemJSON400 *BadRequest
// ApplicationproblemJSON401 the response for an HTTP 401 `application/problem+json` response
ApplicationproblemJSON401 *Unauthorized
// ApplicationproblemJSON403 the response for an HTTP 403 `application/problem+json` response
ApplicationproblemJSON403 *Forbidden
// ApplicationproblemJSON409 the response for an HTTP 409 `application/problem+json` response
ApplicationproblemJSON409 *Conflict
// ApplicationproblemJSON422 the response for an HTTP 422 `application/problem+json` response
ApplicationproblemJSON422 *Unprocessable
// ApplicationproblemJSON429 the response for an HTTP 429 `application/problem+json` response
ApplicationproblemJSON429 *TooManyRequests
// Headers429 the parsed response headers for an HTTP 429 response
Headers429 *ConfirmTotpEnrolmentResponse429Headers
}
func ParseConfirmTotpEnrolmentResponse ¶
func ParseConfirmTotpEnrolmentResponse(rsp *http.Response) (*ConfirmTotpEnrolmentResponse, error)
ParseConfirmTotpEnrolmentResponse parses an HTTP response from a ConfirmTotpEnrolmentWithResponse call
func (ConfirmTotpEnrolmentResponse) ContentType ¶
func (r ConfirmTotpEnrolmentResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (ConfirmTotpEnrolmentResponse) GetApplicationproblemJSON400 ¶
func (r ConfirmTotpEnrolmentResponse) GetApplicationproblemJSON400() *BadRequest
GetApplicationproblemJSON400 returns the response for an HTTP 400 `application/problem+json` response
func (ConfirmTotpEnrolmentResponse) GetApplicationproblemJSON401 ¶
func (r ConfirmTotpEnrolmentResponse) GetApplicationproblemJSON401() *Unauthorized
GetApplicationproblemJSON401 returns the response for an HTTP 401 `application/problem+json` response
func (ConfirmTotpEnrolmentResponse) GetApplicationproblemJSON403 ¶
func (r ConfirmTotpEnrolmentResponse) GetApplicationproblemJSON403() *Forbidden
GetApplicationproblemJSON403 returns the response for an HTTP 403 `application/problem+json` response
func (ConfirmTotpEnrolmentResponse) GetApplicationproblemJSON409 ¶
func (r ConfirmTotpEnrolmentResponse) GetApplicationproblemJSON409() *Conflict
GetApplicationproblemJSON409 returns the response for an HTTP 409 `application/problem+json` response
func (ConfirmTotpEnrolmentResponse) GetApplicationproblemJSON422 ¶
func (r ConfirmTotpEnrolmentResponse) GetApplicationproblemJSON422() *Unprocessable
GetApplicationproblemJSON422 returns the response for an HTTP 422 `application/problem+json` response
func (ConfirmTotpEnrolmentResponse) GetApplicationproblemJSON429 ¶
func (r ConfirmTotpEnrolmentResponse) GetApplicationproblemJSON429() *TooManyRequests
GetApplicationproblemJSON429 returns the response for an HTTP 429 `application/problem+json` response
func (ConfirmTotpEnrolmentResponse) GetBody ¶
func (r ConfirmTotpEnrolmentResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (ConfirmTotpEnrolmentResponse) GetJSON200 ¶
func (r ConfirmTotpEnrolmentResponse) GetJSON200() *TotpRecoveryCodes
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (ConfirmTotpEnrolmentResponse) Status ¶
func (r ConfirmTotpEnrolmentResponse) Status() string
Status returns HTTPResponse.Status
func (ConfirmTotpEnrolmentResponse) StatusCode ¶
func (r ConfirmTotpEnrolmentResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type ConfirmTotpEnrolmentResponse429Headers ¶
type ConfirmTotpEnrolmentResponse429Headers struct {
RetryAfter *int
}
ConfirmTotpEnrolmentResponse429Headers the declared response headers of an HTTP 429 response for ConfirmTotpEnrolment
type Conflict ¶
type Conflict = Problem
Conflict RFC 9457 problem details, served as `application/problem+json`. `type` is a stable URI under `https://muster-io.github.io/muster/problems/`; clients branch on `type`, `code` and `errors[].code`, never on `title` or `detail`. Validation errors raised by the request-validation middleware and by the strict server are mapped to this schema by one function. Every `code` is listed in `x-problem-codes`.
type Connection ¶
type Connection struct {
// contains filtered or unexported fields
}
Connection A Connection; `type` selects the variant.
func (Connection) AsBridgeConnection ¶
func (t Connection) AsBridgeConnection() (BridgeConnection, error)
AsBridgeConnection returns the union data inside the Connection as a BridgeConnection
func (Connection) AsMattermostConnection ¶
func (t Connection) AsMattermostConnection() (MattermostConnection, error)
AsMattermostConnection returns the union data inside the Connection as a MattermostConnection
func (Connection) AsSlackConnection ¶
func (t Connection) AsSlackConnection() (SlackConnection, error)
AsSlackConnection returns the union data inside the Connection as a SlackConnection
func (Connection) AsTelegramConnection ¶
func (t Connection) AsTelegramConnection() (TelegramConnection, error)
AsTelegramConnection returns the union data inside the Connection as a TelegramConnection
func (Connection) Discriminator ¶
func (t Connection) Discriminator() (string, error)
func (*Connection) FromBridgeConnection ¶
func (t *Connection) FromBridgeConnection(v BridgeConnection) error
FromBridgeConnection overwrites any union data inside the Connection as the provided BridgeConnection
func (*Connection) FromMattermostConnection ¶
func (t *Connection) FromMattermostConnection(v MattermostConnection) error
FromMattermostConnection overwrites any union data inside the Connection as the provided MattermostConnection
func (*Connection) FromSlackConnection ¶
func (t *Connection) FromSlackConnection(v SlackConnection) error
FromSlackConnection overwrites any union data inside the Connection as the provided SlackConnection
func (*Connection) FromTelegramConnection ¶
func (t *Connection) FromTelegramConnection(v TelegramConnection) error
FromTelegramConnection overwrites any union data inside the Connection as the provided TelegramConnection
func (Connection) MarshalJSON ¶
func (t Connection) MarshalJSON() ([]byte, error)
func (*Connection) MergeBridgeConnection ¶
func (t *Connection) MergeBridgeConnection(v BridgeConnection) error
MergeBridgeConnection performs a merge with any union data inside the Connection, using the provided BridgeConnection
func (*Connection) MergeMattermostConnection ¶
func (t *Connection) MergeMattermostConnection(v MattermostConnection) error
MergeMattermostConnection performs a merge with any union data inside the Connection, using the provided MattermostConnection
func (*Connection) MergeSlackConnection ¶
func (t *Connection) MergeSlackConnection(v SlackConnection) error
MergeSlackConnection performs a merge with any union data inside the Connection, using the provided SlackConnection
func (*Connection) MergeTelegramConnection ¶
func (t *Connection) MergeTelegramConnection(v TelegramConnection) error
MergeTelegramConnection performs a merge with any union data inside the Connection, using the provided TelegramConnection
func (*Connection) UnmarshalJSON ¶
func (t *Connection) UnmarshalJSON(b []byte) error
func (Connection) ValueByDiscriminator ¶
func (t Connection) ValueByDiscriminator() (interface{}, error)
type ConnectionChannelList ¶
type ConnectionChannelList struct {
// contains filtered or unexported fields
}
ConnectionChannelList The channels of a Connection's bot, by the Connection's type; only `SlackChannelList` has `truncated`.
func (ConnectionChannelList) AsMattermostChannelList ¶
func (t ConnectionChannelList) AsMattermostChannelList() (MattermostChannelList, error)
AsMattermostChannelList returns the union data inside the ConnectionChannelList as a MattermostChannelList
func (ConnectionChannelList) AsSlackChannelList ¶
func (t ConnectionChannelList) AsSlackChannelList() (SlackChannelList, error)
AsSlackChannelList returns the union data inside the ConnectionChannelList as a SlackChannelList
func (*ConnectionChannelList) FromMattermostChannelList ¶
func (t *ConnectionChannelList) FromMattermostChannelList(v MattermostChannelList) error
FromMattermostChannelList overwrites any union data inside the ConnectionChannelList as the provided MattermostChannelList
func (*ConnectionChannelList) FromSlackChannelList ¶
func (t *ConnectionChannelList) FromSlackChannelList(v SlackChannelList) error
FromSlackChannelList overwrites any union data inside the ConnectionChannelList as the provided SlackChannelList
func (ConnectionChannelList) MarshalJSON ¶
func (t ConnectionChannelList) MarshalJSON() ([]byte, error)
func (*ConnectionChannelList) MergeMattermostChannelList ¶
func (t *ConnectionChannelList) MergeMattermostChannelList(v MattermostChannelList) error
MergeMattermostChannelList performs a merge with any union data inside the ConnectionChannelList, using the provided MattermostChannelList
func (*ConnectionChannelList) MergeSlackChannelList ¶
func (t *ConnectionChannelList) MergeSlackChannelList(v SlackChannelList) error
MergeSlackChannelList performs a merge with any union data inside the ConnectionChannelList, using the provided SlackChannelList
func (*ConnectionChannelList) UnmarshalJSON ¶
func (t *ConnectionChannelList) UnmarshalJSON(b []byte) error
type ConnectionCheckRequest ¶
type ConnectionCheckRequest struct {
// BaseUrl An unsaved Telegram Bot API base URL. When set, only the dry probe runs against it, without the token: a stored token is sent only to the saved address of its Connection. Kept for API clients; `checkConnectionDraft` checks a draft with its token typed again.
BaseUrl nullable.Nullable[string] `json:"base_url,omitempty"`
}
ConnectionCheckRequest defines model for ConnectionCheckRequest.
type ConnectionCheckResult ¶
type ConnectionCheckResult struct {
// BotName The bot's name or username.
BotName nullable.Nullable[string] `json:"bot_name,omitempty"`
// Info Bridge only. The `info` that the step `info` read, with the members of `BridgeInfo` — stored on the Connection by `checkConnection`, never by `checkConnectionDraft` —, null when that step failed or was skipped; omitted for the other types.
Info nullable.Nullable[BridgeInfo] `json:"info,omitempty"`
Ok bool `json:"ok"`
PendingUpdates nullable.Nullable[int] `json:"pending_updates,omitempty"`
// RequestLogRun The check run of the requests this check made (`CR…`); `listRequestLog` with `run` lists them.
RequestLogRun PublicId `json:"request_log_run"`
// Slack Slack only. What the step `token` found — the workspace and the bot — and the app that the step `app_token` found, stored on the Connection by a passing `checkConnection`; null when `token` failed, and for the other types.
Slack nullable.Nullable[SlackCheckInfo] `json:"slack,omitempty"`
Steps []ConnectionCheckStep `json:"steps"`
// Warnings Hints that do not fail the check. `press_answers_in_thread` (Mattermost): the bot's roles do not grant `create_post_ephemeral`, so the bot may not make ephemeral messages and the answers to button presses show in the Thread of the Root message instead of the channel view; granting that permission, for example with the system admin role, shows them in the channel. `another_client_connected` (Slack, `socket` mode): the last `hello` counted another connection of the Slack app than the Leader's; presses are shared between them at random — use one Slack app for each Connection and share it with no other Connection or installation.
Warnings []ConnectionCheckResultWarnings `json:"warnings"`
// WebhookSet Telegram only. A set webhook makes long polling fail with 409.
WebhookSet nullable.Nullable[bool] `json:"webhook_set,omitempty"`
}
ConnectionCheckResult defines model for ConnectionCheckResult.
type ConnectionCheckResultWarnings ¶
type ConnectionCheckResultWarnings string
ConnectionCheckResultWarnings defines model for ConnectionCheckResult.Warnings.
const ( AnotherClientConnected ConnectionCheckResultWarnings = "another_client_connected" PressAnswersInThread ConnectionCheckResultWarnings = "press_answers_in_thread" )
Defines values for ConnectionCheckResultWarnings.
func (ConnectionCheckResultWarnings) Valid ¶
func (e ConnectionCheckResultWarnings) Valid() bool
Valid indicates whether the value is a known member of the ConnectionCheckResultWarnings enum.
type ConnectionCheckStep ¶
type ConnectionCheckStep struct {
// Code What a step of the Connection check found, as a stable code that clients translate, with `message` as its detail in English; null when the step passed with nothing to say or was skipped. A step that failed: `token_invalid` — the messenger refused the bot token (`token`, `get_me`) or the bridge refused the token (`info`); for Slack, `token_invalid` — Slack refused the bot token or the app-level token (`token`, `app_token`), `wrong_token_type` — the bot token is not a bot's: Slack answered `not_allowed_token_type`, or `auth.test` named no `bot_id` (`token`), `missing_scope` — the bot token lacks scopes Muster needs, which `missing_scopes` lists and `message` names (`scopes`), `app_mismatch` — the app-level token belongs to another Slack app than the bot token (`app_token`), and `not_slack` — the address answered the dry probe, but not with Slack's JSON `{"ok":false, "error":"not_authed"}`; for the dry probe (`dry_probe`, without any token: Telegram `GET <base>/bot0:x/getMe`, Mattermost `GET <server>/api/v4/system/ping`, a Bridge `GET <base>/v1/info`, Slack `POST https://slack.com/api/auth.test`), `not_bot_api` — the address answered, but not as a Bot API (not JSON), `not_mattermost` — the address answered, but not as a Mattermost server (not JSON, or `200` JSON whose `status` is not `OK`), `not_bridge` — the address answered, but not with a problem of the Bridge protocol (`application/problem+json`), `wrong_path_prefix` — it answered 404, so the path prefix of the address is wrong, `unexpected_status` — it answered another status than the probe expects (`401` from a Bot API or a bridge, `200` from Mattermost or Slack) in the expected format; for `info`, `protocol_version_unknown` — the bridge speaks a protocol version this Muster does not, which `message` names, and `protocol_mismatch` — the answer does not match the protocol or is larger than 64 KiB, which `message` names; for `event_delivery`, `event_delivery_not_offered` — the bridge does not offer the Connection's event delivery mode; for any step, `dns_failed` — the host name does not resolve, `connect_failed` — no connection, or the answer could not be read, `tls_failed` — the TLS handshake failed, `timeout` — no answer in time, `proxy_refused` — the proxy refused its credentials, `blocked` — the outbound address policy refused the address, and `request_failed` — any other failure, such as an error answer, which `message` names (from a bridge, the problem's masked `detail`). A step that passed: `webhook_set` (`get_webhook_info`) — a webhook is set, and `message` names its host.
Code nullable.Nullable[NullableConnectionCheckCode] `json:"code,omitempty"`
// LatencyMs How long the step's request took; null for a step that made no request: one that was skipped, `event_delivery`, which only reads the info that the step `info` read, and `scopes`, which reads the header of the answer of `token`. The latency of `app_token` is that of its two requests together.
LatencyMs nullable.Nullable[int] `json:"latency_ms,omitempty"`
// Message What answered when the step failed, or what a step that passed found, in English; untrusted text where it comes from the remote side. Secrets, the Signing secret and tokens are masked. Clients translate `code` and show this text as its detail where it says more than the code's text.
Message nullable.Nullable[string] `json:"message,omitempty"`
// MissingScopes Set with the code `missing_scope` (Slack, step `scopes`), omitted otherwise — the scopes the bot token lacks, in the order Muster lists them, which clients name in their own words; `message` names them in English.
MissingScopes *[]string `json:"missing_scopes,omitempty"`
// Name The step: Mattermost `token`, or `dry_probe` and `token` for a draft; Telegram `dry_probe`, `get_me` and `get_webhook_info`; a Bridge `info` and `event_delivery`, or `dry_probe` before them for a draft; Slack `token`, `scopes` and, in `socket` mode, `app_token`, or `dry_probe` before them for a draft that may send no token — `POST https://slack.com/api/auth.test` without `Authorization`, which passes on a `200` JSON answer `ok: false` with the `error` `not_authed`.
Name ConnectionCheckStepName `json:"name"`
Ok bool `json:"ok"`
Skipped *bool `json:"skipped,omitempty"`
// Via How the request travelled.
Via *ConnectionPath `json:"via,omitempty"`
}
ConnectionCheckStep defines model for ConnectionCheckStep.
type ConnectionCheckStepName ¶
type ConnectionCheckStepName string
ConnectionCheckStepName The step: Mattermost `token`, or `dry_probe` and `token` for a draft; Telegram `dry_probe`, `get_me` and `get_webhook_info`; a Bridge `info` and `event_delivery`, or `dry_probe` before them for a draft; Slack `token`, `scopes` and, in `socket` mode, `app_token`, or `dry_probe` before them for a draft that may send no token — `POST https://slack.com/api/auth.test` without `Authorization`, which passes on a `200` JSON answer `ok: false` with the `error` `not_authed`.
const ( ConnectionCheckStepNameAppToken ConnectionCheckStepName = "app_token" ConnectionCheckStepNameDryProbe ConnectionCheckStepName = "dry_probe" ConnectionCheckStepNameEventDelivery ConnectionCheckStepName = "event_delivery" ConnectionCheckStepNameGetMe ConnectionCheckStepName = "get_me" ConnectionCheckStepNameGetWebhookInfo ConnectionCheckStepName = "get_webhook_info" ConnectionCheckStepNameInfo ConnectionCheckStepName = "info" ConnectionCheckStepNameScopes ConnectionCheckStepName = "scopes" ConnectionCheckStepNameToken ConnectionCheckStepName = "token" )
Defines values for ConnectionCheckStepName.
func (ConnectionCheckStepName) Valid ¶
func (e ConnectionCheckStepName) Valid() bool
Valid indicates whether the value is a known member of the ConnectionCheckStepName enum.
type ConnectionDraft ¶
type ConnectionDraft struct {
// contains filtered or unexported fields
}
ConnectionDraft A Connection as its form holds it before it is saved, for `checkConnectionDraft`; `type` selects the variant.
func (ConnectionDraft) AsBridgeConnectionDraft ¶
func (t ConnectionDraft) AsBridgeConnectionDraft() (BridgeConnectionDraft, error)
AsBridgeConnectionDraft returns the union data inside the ConnectionDraft as a BridgeConnectionDraft
func (ConnectionDraft) AsMattermostConnectionDraft ¶
func (t ConnectionDraft) AsMattermostConnectionDraft() (MattermostConnectionDraft, error)
AsMattermostConnectionDraft returns the union data inside the ConnectionDraft as a MattermostConnectionDraft
func (ConnectionDraft) AsSlackConnectionDraft ¶
func (t ConnectionDraft) AsSlackConnectionDraft() (SlackConnectionDraft, error)
AsSlackConnectionDraft returns the union data inside the ConnectionDraft as a SlackConnectionDraft
func (ConnectionDraft) AsTelegramConnectionDraft ¶
func (t ConnectionDraft) AsTelegramConnectionDraft() (TelegramConnectionDraft, error)
AsTelegramConnectionDraft returns the union data inside the ConnectionDraft as a TelegramConnectionDraft
func (ConnectionDraft) Discriminator ¶
func (t ConnectionDraft) Discriminator() (string, error)
func (*ConnectionDraft) FromBridgeConnectionDraft ¶
func (t *ConnectionDraft) FromBridgeConnectionDraft(v BridgeConnectionDraft) error
FromBridgeConnectionDraft overwrites any union data inside the ConnectionDraft as the provided BridgeConnectionDraft
func (*ConnectionDraft) FromMattermostConnectionDraft ¶
func (t *ConnectionDraft) FromMattermostConnectionDraft(v MattermostConnectionDraft) error
FromMattermostConnectionDraft overwrites any union data inside the ConnectionDraft as the provided MattermostConnectionDraft
func (*ConnectionDraft) FromSlackConnectionDraft ¶
func (t *ConnectionDraft) FromSlackConnectionDraft(v SlackConnectionDraft) error
FromSlackConnectionDraft overwrites any union data inside the ConnectionDraft as the provided SlackConnectionDraft
func (*ConnectionDraft) FromTelegramConnectionDraft ¶
func (t *ConnectionDraft) FromTelegramConnectionDraft(v TelegramConnectionDraft) error
FromTelegramConnectionDraft overwrites any union data inside the ConnectionDraft as the provided TelegramConnectionDraft
func (ConnectionDraft) MarshalJSON ¶
func (t ConnectionDraft) MarshalJSON() ([]byte, error)
func (*ConnectionDraft) MergeBridgeConnectionDraft ¶
func (t *ConnectionDraft) MergeBridgeConnectionDraft(v BridgeConnectionDraft) error
MergeBridgeConnectionDraft performs a merge with any union data inside the ConnectionDraft, using the provided BridgeConnectionDraft
func (*ConnectionDraft) MergeMattermostConnectionDraft ¶
func (t *ConnectionDraft) MergeMattermostConnectionDraft(v MattermostConnectionDraft) error
MergeMattermostConnectionDraft performs a merge with any union data inside the ConnectionDraft, using the provided MattermostConnectionDraft
func (*ConnectionDraft) MergeSlackConnectionDraft ¶
func (t *ConnectionDraft) MergeSlackConnectionDraft(v SlackConnectionDraft) error
MergeSlackConnectionDraft performs a merge with any union data inside the ConnectionDraft, using the provided SlackConnectionDraft
func (*ConnectionDraft) MergeTelegramConnectionDraft ¶
func (t *ConnectionDraft) MergeTelegramConnectionDraft(v TelegramConnectionDraft) error
MergeTelegramConnectionDraft performs a merge with any union data inside the ConnectionDraft, using the provided TelegramConnectionDraft
func (*ConnectionDraft) UnmarshalJSON ¶
func (t *ConnectionDraft) UnmarshalJSON(b []byte) error
func (ConnectionDraft) ValueByDiscriminator ¶
func (t ConnectionDraft) ValueByDiscriminator() (interface{}, error)
type ConnectionId ¶
type ConnectionId = PublicId
ConnectionId Opaque public identifier (`public_id`): a type prefix of one or two letters followed by 12 random characters of Crockford base32 (`0`–`9` and `A`–`Z` without `I`, `L`, `O` and `U`; 60 bits), such as `AGK7M3QX9P2RTA` for an Alert Group. Prefixes use the same letters and differ per type: `AG` Alert Group, `AE` Audit log entry, `AK` Account link, `AR` Account link request, `CN` Connection, `CR` check run, `DE` delivery event, `DS` Destination, `KR` Link rule, `NE` Note, `NK` Integration token, `NT` Integration, `PT` Personal access token, `RG` Organization, `RQ` record of the Request log, `RT` Route, `SA` Service account, `SN` session, `SR` User, `SS` Stored Snapshot, `ST` Service account token, `TB` Lookup table, `TE` Timeline entry. Responses always carry the canonical upper-case form. Input is case-insensitive and normalized before lookup — `O` reads as `0`, `I` and `L` as `1` — so the pattern also admits lower case and those letters. People refer to Alert Groups by `#N`, never by `public_id`.
type ConnectionInput ¶
type ConnectionInput struct {
// contains filtered or unexported fields
}
ConnectionInput A Connection as written; `type` selects the variant and cannot change on update.
func (ConnectionInput) AsBridgeConnectionInput ¶
func (t ConnectionInput) AsBridgeConnectionInput() (BridgeConnectionInput, error)
AsBridgeConnectionInput returns the union data inside the ConnectionInput as a BridgeConnectionInput
func (ConnectionInput) AsMattermostConnectionInput ¶
func (t ConnectionInput) AsMattermostConnectionInput() (MattermostConnectionInput, error)
AsMattermostConnectionInput returns the union data inside the ConnectionInput as a MattermostConnectionInput
func (ConnectionInput) AsSlackConnectionInput ¶
func (t ConnectionInput) AsSlackConnectionInput() (SlackConnectionInput, error)
AsSlackConnectionInput returns the union data inside the ConnectionInput as a SlackConnectionInput
func (ConnectionInput) AsTelegramConnectionInput ¶
func (t ConnectionInput) AsTelegramConnectionInput() (TelegramConnectionInput, error)
AsTelegramConnectionInput returns the union data inside the ConnectionInput as a TelegramConnectionInput
func (ConnectionInput) Discriminator ¶
func (t ConnectionInput) Discriminator() (string, error)
func (*ConnectionInput) FromBridgeConnectionInput ¶
func (t *ConnectionInput) FromBridgeConnectionInput(v BridgeConnectionInput) error
FromBridgeConnectionInput overwrites any union data inside the ConnectionInput as the provided BridgeConnectionInput
func (*ConnectionInput) FromMattermostConnectionInput ¶
func (t *ConnectionInput) FromMattermostConnectionInput(v MattermostConnectionInput) error
FromMattermostConnectionInput overwrites any union data inside the ConnectionInput as the provided MattermostConnectionInput
func (*ConnectionInput) FromSlackConnectionInput ¶
func (t *ConnectionInput) FromSlackConnectionInput(v SlackConnectionInput) error
FromSlackConnectionInput overwrites any union data inside the ConnectionInput as the provided SlackConnectionInput
func (*ConnectionInput) FromTelegramConnectionInput ¶
func (t *ConnectionInput) FromTelegramConnectionInput(v TelegramConnectionInput) error
FromTelegramConnectionInput overwrites any union data inside the ConnectionInput as the provided TelegramConnectionInput
func (ConnectionInput) MarshalJSON ¶
func (t ConnectionInput) MarshalJSON() ([]byte, error)
func (*ConnectionInput) MergeBridgeConnectionInput ¶
func (t *ConnectionInput) MergeBridgeConnectionInput(v BridgeConnectionInput) error
MergeBridgeConnectionInput performs a merge with any union data inside the ConnectionInput, using the provided BridgeConnectionInput
func (*ConnectionInput) MergeMattermostConnectionInput ¶
func (t *ConnectionInput) MergeMattermostConnectionInput(v MattermostConnectionInput) error
MergeMattermostConnectionInput performs a merge with any union data inside the ConnectionInput, using the provided MattermostConnectionInput
func (*ConnectionInput) MergeSlackConnectionInput ¶
func (t *ConnectionInput) MergeSlackConnectionInput(v SlackConnectionInput) error
MergeSlackConnectionInput performs a merge with any union data inside the ConnectionInput, using the provided SlackConnectionInput
func (*ConnectionInput) MergeTelegramConnectionInput ¶
func (t *ConnectionInput) MergeTelegramConnectionInput(v TelegramConnectionInput) error
MergeTelegramConnectionInput performs a merge with any union data inside the ConnectionInput, using the provided TelegramConnectionInput
func (*ConnectionInput) UnmarshalJSON ¶
func (t *ConnectionInput) UnmarshalJSON(b []byte) error
func (ConnectionInput) ValueByDiscriminator ¶
func (t ConnectionInput) ValueByDiscriminator() (interface{}, error)
type ConnectionList ¶
type ConnectionList struct {
Items []Connection `json:"items"`
NextCursor nullable.Nullable[string] `json:"next_cursor"`
}
ConnectionList defines model for ConnectionList.
type ConnectionPath ¶
type ConnectionPath string
ConnectionPath How the request travelled.
const ( ConnectionPathDirect ConnectionPath = "direct" ConnectionPathProxy ConnectionPath = "proxy" )
Defines values for ConnectionPath.
func (ConnectionPath) Valid ¶
func (e ConnectionPath) Valid() bool
Valid indicates whether the value is a known member of the ConnectionPath enum.
type ConnectionType ¶
type ConnectionType string
ConnectionType defines model for ConnectionType.
const ( ConnectionTypeBridge ConnectionType = "bridge" ConnectionTypeMattermost ConnectionType = "mattermost" ConnectionTypeSlack ConnectionType = "slack" ConnectionTypeTelegram ConnectionType = "telegram" )
Defines values for ConnectionType.
func (ConnectionType) Valid ¶
func (e ConnectionType) Valid() bool
Valid indicates whether the value is a known member of the ConnectionType enum.
type ConvertUserToLocalResponse ¶
type ConvertUserToLocalResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *UserCreated
// ApplicationproblemJSON401 the response for an HTTP 401 `application/problem+json` response
ApplicationproblemJSON401 *Unauthorized
// ApplicationproblemJSON403 the response for an HTTP 403 `application/problem+json` response
ApplicationproblemJSON403 *Forbidden
// ApplicationproblemJSON404 the response for an HTTP 404 `application/problem+json` response
ApplicationproblemJSON404 *NotFound
// ApplicationproblemJSON409 the response for an HTTP 409 `application/problem+json` response
ApplicationproblemJSON409 *Conflict
// ApplicationproblemJSON429 the response for an HTTP 429 `application/problem+json` response
ApplicationproblemJSON429 *TooManyRequests
// Headers429 the parsed response headers for an HTTP 429 response
Headers429 *ConvertUserToLocalResponse429Headers
}
func ParseConvertUserToLocalResponse ¶
func ParseConvertUserToLocalResponse(rsp *http.Response) (*ConvertUserToLocalResponse, error)
ParseConvertUserToLocalResponse parses an HTTP response from a ConvertUserToLocalWithResponse call
func (ConvertUserToLocalResponse) ContentType ¶
func (r ConvertUserToLocalResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (ConvertUserToLocalResponse) GetApplicationproblemJSON401 ¶
func (r ConvertUserToLocalResponse) GetApplicationproblemJSON401() *Unauthorized
GetApplicationproblemJSON401 returns the response for an HTTP 401 `application/problem+json` response
func (ConvertUserToLocalResponse) GetApplicationproblemJSON403 ¶
func (r ConvertUserToLocalResponse) GetApplicationproblemJSON403() *Forbidden
GetApplicationproblemJSON403 returns the response for an HTTP 403 `application/problem+json` response
func (ConvertUserToLocalResponse) GetApplicationproblemJSON404 ¶
func (r ConvertUserToLocalResponse) GetApplicationproblemJSON404() *NotFound
GetApplicationproblemJSON404 returns the response for an HTTP 404 `application/problem+json` response
func (ConvertUserToLocalResponse) GetApplicationproblemJSON409 ¶
func (r ConvertUserToLocalResponse) GetApplicationproblemJSON409() *Conflict
GetApplicationproblemJSON409 returns the response for an HTTP 409 `application/problem+json` response
func (ConvertUserToLocalResponse) GetApplicationproblemJSON429 ¶
func (r ConvertUserToLocalResponse) GetApplicationproblemJSON429() *TooManyRequests
GetApplicationproblemJSON429 returns the response for an HTTP 429 `application/problem+json` response
func (ConvertUserToLocalResponse) GetBody ¶
func (r ConvertUserToLocalResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (ConvertUserToLocalResponse) GetJSON200 ¶
func (r ConvertUserToLocalResponse) GetJSON200() *UserCreated
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (ConvertUserToLocalResponse) Status ¶
func (r ConvertUserToLocalResponse) Status() string
Status returns HTTPResponse.Status
func (ConvertUserToLocalResponse) StatusCode ¶
func (r ConvertUserToLocalResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type ConvertUserToLocalResponse429Headers ¶
type ConvertUserToLocalResponse429Headers struct {
RetryAfter *int
}
ConvertUserToLocalResponse429Headers the declared response headers of an HTTP 429 response for ConvertUserToLocal
type CreateAlertGroupNoteJSONRequestBody ¶
type CreateAlertGroupNoteJSONRequestBody = NoteInput
CreateAlertGroupNoteJSONRequestBody defines body for CreateAlertGroupNote for application/json ContentType.
type CreateAlertGroupNoteResponse ¶
type CreateAlertGroupNoteResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON201 the response for an HTTP 201 `application/json` response
JSON201 *Note
// ApplicationproblemJSON400 the response for an HTTP 400 `application/problem+json` response
ApplicationproblemJSON400 *BadRequest
// ApplicationproblemJSON401 the response for an HTTP 401 `application/problem+json` response
ApplicationproblemJSON401 *Unauthorized
// ApplicationproblemJSON403 the response for an HTTP 403 `application/problem+json` response
ApplicationproblemJSON403 *Forbidden
// ApplicationproblemJSON404 the response for an HTTP 404 `application/problem+json` response
ApplicationproblemJSON404 *NotFound
// ApplicationproblemJSON422 the response for an HTTP 422 `application/problem+json` response
ApplicationproblemJSON422 *Unprocessable
// ApplicationproblemJSON429 the response for an HTTP 429 `application/problem+json` response
ApplicationproblemJSON429 *TooManyRequests
// Headers429 the parsed response headers for an HTTP 429 response
Headers429 *CreateAlertGroupNoteResponse429Headers
}
func ParseCreateAlertGroupNoteResponse ¶
func ParseCreateAlertGroupNoteResponse(rsp *http.Response) (*CreateAlertGroupNoteResponse, error)
ParseCreateAlertGroupNoteResponse parses an HTTP response from a CreateAlertGroupNoteWithResponse call
func (CreateAlertGroupNoteResponse) ContentType ¶
func (r CreateAlertGroupNoteResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (CreateAlertGroupNoteResponse) GetApplicationproblemJSON400 ¶
func (r CreateAlertGroupNoteResponse) GetApplicationproblemJSON400() *BadRequest
GetApplicationproblemJSON400 returns the response for an HTTP 400 `application/problem+json` response
func (CreateAlertGroupNoteResponse) GetApplicationproblemJSON401 ¶
func (r CreateAlertGroupNoteResponse) GetApplicationproblemJSON401() *Unauthorized
GetApplicationproblemJSON401 returns the response for an HTTP 401 `application/problem+json` response
func (CreateAlertGroupNoteResponse) GetApplicationproblemJSON403 ¶
func (r CreateAlertGroupNoteResponse) GetApplicationproblemJSON403() *Forbidden
GetApplicationproblemJSON403 returns the response for an HTTP 403 `application/problem+json` response
func (CreateAlertGroupNoteResponse) GetApplicationproblemJSON404 ¶
func (r CreateAlertGroupNoteResponse) GetApplicationproblemJSON404() *NotFound
GetApplicationproblemJSON404 returns the response for an HTTP 404 `application/problem+json` response
func (CreateAlertGroupNoteResponse) GetApplicationproblemJSON422 ¶
func (r CreateAlertGroupNoteResponse) GetApplicationproblemJSON422() *Unprocessable
GetApplicationproblemJSON422 returns the response for an HTTP 422 `application/problem+json` response
func (CreateAlertGroupNoteResponse) GetApplicationproblemJSON429 ¶
func (r CreateAlertGroupNoteResponse) GetApplicationproblemJSON429() *TooManyRequests
GetApplicationproblemJSON429 returns the response for an HTTP 429 `application/problem+json` response
func (CreateAlertGroupNoteResponse) GetBody ¶
func (r CreateAlertGroupNoteResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (CreateAlertGroupNoteResponse) GetJSON201 ¶
func (r CreateAlertGroupNoteResponse) GetJSON201() *Note
GetJSON201 returns the response for an HTTP 201 `application/json` response
func (CreateAlertGroupNoteResponse) Status ¶
func (r CreateAlertGroupNoteResponse) Status() string
Status returns HTTPResponse.Status
func (CreateAlertGroupNoteResponse) StatusCode ¶
func (r CreateAlertGroupNoteResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type CreateAlertGroupNoteResponse429Headers ¶
type CreateAlertGroupNoteResponse429Headers struct {
RetryAfter *int
}
CreateAlertGroupNoteResponse429Headers the declared response headers of an HTTP 429 response for CreateAlertGroupNote
type CreateConnectionJSONRequestBody ¶
type CreateConnectionJSONRequestBody = ConnectionInput
CreateConnectionJSONRequestBody defines body for CreateConnection for application/json ContentType.
type CreateConnectionResponse ¶
type CreateConnectionResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON201 the response for an HTTP 201 `application/json` response
JSON201 *Connection
// ApplicationproblemJSON400 the response for an HTTP 400 `application/problem+json` response
ApplicationproblemJSON400 *BadRequest
// ApplicationproblemJSON401 the response for an HTTP 401 `application/problem+json` response
ApplicationproblemJSON401 *Unauthorized
// ApplicationproblemJSON403 the response for an HTTP 403 `application/problem+json` response
ApplicationproblemJSON403 *Forbidden
// ApplicationproblemJSON409 the response for an HTTP 409 `application/problem+json` response
ApplicationproblemJSON409 *Conflict
// ApplicationproblemJSON422 the response for an HTTP 422 `application/problem+json` response
ApplicationproblemJSON422 *Unprocessable
// ApplicationproblemJSON429 the response for an HTTP 429 `application/problem+json` response
ApplicationproblemJSON429 *TooManyRequests
// Headers201 the parsed response headers for an HTTP 201 response
Headers201 *CreateConnectionResponse201Headers
// Headers429 the parsed response headers for an HTTP 429 response
Headers429 *CreateConnectionResponse429Headers
}
func ParseCreateConnectionResponse ¶
func ParseCreateConnectionResponse(rsp *http.Response) (*CreateConnectionResponse, error)
ParseCreateConnectionResponse parses an HTTP response from a CreateConnectionWithResponse call
func (CreateConnectionResponse) ContentType ¶
func (r CreateConnectionResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (CreateConnectionResponse) GetApplicationproblemJSON400 ¶
func (r CreateConnectionResponse) GetApplicationproblemJSON400() *BadRequest
GetApplicationproblemJSON400 returns the response for an HTTP 400 `application/problem+json` response
func (CreateConnectionResponse) GetApplicationproblemJSON401 ¶
func (r CreateConnectionResponse) GetApplicationproblemJSON401() *Unauthorized
GetApplicationproblemJSON401 returns the response for an HTTP 401 `application/problem+json` response
func (CreateConnectionResponse) GetApplicationproblemJSON403 ¶
func (r CreateConnectionResponse) GetApplicationproblemJSON403() *Forbidden
GetApplicationproblemJSON403 returns the response for an HTTP 403 `application/problem+json` response
func (CreateConnectionResponse) GetApplicationproblemJSON409 ¶
func (r CreateConnectionResponse) GetApplicationproblemJSON409() *Conflict
GetApplicationproblemJSON409 returns the response for an HTTP 409 `application/problem+json` response
func (CreateConnectionResponse) GetApplicationproblemJSON422 ¶
func (r CreateConnectionResponse) GetApplicationproblemJSON422() *Unprocessable
GetApplicationproblemJSON422 returns the response for an HTTP 422 `application/problem+json` response
func (CreateConnectionResponse) GetApplicationproblemJSON429 ¶
func (r CreateConnectionResponse) GetApplicationproblemJSON429() *TooManyRequests
GetApplicationproblemJSON429 returns the response for an HTTP 429 `application/problem+json` response
func (CreateConnectionResponse) GetBody ¶
func (r CreateConnectionResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (CreateConnectionResponse) GetJSON201 ¶
func (r CreateConnectionResponse) GetJSON201() *Connection
GetJSON201 returns the response for an HTTP 201 `application/json` response
func (CreateConnectionResponse) Status ¶
func (r CreateConnectionResponse) Status() string
Status returns HTTPResponse.Status
func (CreateConnectionResponse) StatusCode ¶
func (r CreateConnectionResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type CreateConnectionResponse201Headers ¶
CreateConnectionResponse201Headers the declared response headers of an HTTP 201 response for CreateConnection
type CreateConnectionResponse429Headers ¶
type CreateConnectionResponse429Headers struct {
RetryAfter *int
}
CreateConnectionResponse429Headers the declared response headers of an HTTP 429 response for CreateConnection
type CreateDestinationJSONRequestBody ¶
type CreateDestinationJSONRequestBody = DestinationInput
CreateDestinationJSONRequestBody defines body for CreateDestination for application/json ContentType.
type CreateDestinationResponse ¶
type CreateDestinationResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON201 the response for an HTTP 201 `application/json` response
JSON201 *DestinationCreated
// ApplicationproblemJSON400 the response for an HTTP 400 `application/problem+json` response
ApplicationproblemJSON400 *BadRequest
// ApplicationproblemJSON401 the response for an HTTP 401 `application/problem+json` response
ApplicationproblemJSON401 *Unauthorized
// ApplicationproblemJSON403 the response for an HTTP 403 `application/problem+json` response
ApplicationproblemJSON403 *Forbidden
// ApplicationproblemJSON409 the response for an HTTP 409 `application/problem+json` response
ApplicationproblemJSON409 *Conflict
// ApplicationproblemJSON422 the response for an HTTP 422 `application/problem+json` response
ApplicationproblemJSON422 *Unprocessable
// ApplicationproblemJSON429 the response for an HTTP 429 `application/problem+json` response
ApplicationproblemJSON429 *TooManyRequests
// ApplicationproblemJSON503 the response for an HTTP 503 `application/problem+json` response
ApplicationproblemJSON503 *Limited
// Headers201 the parsed response headers for an HTTP 201 response
Headers201 *CreateDestinationResponse201Headers
// Headers429 the parsed response headers for an HTTP 429 response
Headers429 *CreateDestinationResponse429Headers
// Headers503 the parsed response headers for an HTTP 503 response
Headers503 *CreateDestinationResponse503Headers
}
func ParseCreateDestinationResponse ¶
func ParseCreateDestinationResponse(rsp *http.Response) (*CreateDestinationResponse, error)
ParseCreateDestinationResponse parses an HTTP response from a CreateDestinationWithResponse call
func (CreateDestinationResponse) ContentType ¶
func (r CreateDestinationResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (CreateDestinationResponse) GetApplicationproblemJSON400 ¶
func (r CreateDestinationResponse) GetApplicationproblemJSON400() *BadRequest
GetApplicationproblemJSON400 returns the response for an HTTP 400 `application/problem+json` response
func (CreateDestinationResponse) GetApplicationproblemJSON401 ¶
func (r CreateDestinationResponse) GetApplicationproblemJSON401() *Unauthorized
GetApplicationproblemJSON401 returns the response for an HTTP 401 `application/problem+json` response
func (CreateDestinationResponse) GetApplicationproblemJSON403 ¶
func (r CreateDestinationResponse) GetApplicationproblemJSON403() *Forbidden
GetApplicationproblemJSON403 returns the response for an HTTP 403 `application/problem+json` response
func (CreateDestinationResponse) GetApplicationproblemJSON409 ¶
func (r CreateDestinationResponse) GetApplicationproblemJSON409() *Conflict
GetApplicationproblemJSON409 returns the response for an HTTP 409 `application/problem+json` response
func (CreateDestinationResponse) GetApplicationproblemJSON422 ¶
func (r CreateDestinationResponse) GetApplicationproblemJSON422() *Unprocessable
GetApplicationproblemJSON422 returns the response for an HTTP 422 `application/problem+json` response
func (CreateDestinationResponse) GetApplicationproblemJSON429 ¶
func (r CreateDestinationResponse) GetApplicationproblemJSON429() *TooManyRequests
GetApplicationproblemJSON429 returns the response for an HTTP 429 `application/problem+json` response
func (CreateDestinationResponse) GetApplicationproblemJSON503 ¶
func (r CreateDestinationResponse) GetApplicationproblemJSON503() *Limited
GetApplicationproblemJSON503 returns the response for an HTTP 503 `application/problem+json` response
func (CreateDestinationResponse) GetBody ¶
func (r CreateDestinationResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (CreateDestinationResponse) GetJSON201 ¶
func (r CreateDestinationResponse) GetJSON201() *DestinationCreated
GetJSON201 returns the response for an HTTP 201 `application/json` response
func (CreateDestinationResponse) Status ¶
func (r CreateDestinationResponse) Status() string
Status returns HTTPResponse.Status
func (CreateDestinationResponse) StatusCode ¶
func (r CreateDestinationResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type CreateDestinationResponse201Headers ¶
CreateDestinationResponse201Headers the declared response headers of an HTTP 201 response for CreateDestination
type CreateDestinationResponse429Headers ¶
type CreateDestinationResponse429Headers struct {
RetryAfter *int
}
CreateDestinationResponse429Headers the declared response headers of an HTTP 429 response for CreateDestination
type CreateDestinationResponse503Headers ¶
type CreateDestinationResponse503Headers struct {
RetryAfter *int
}
CreateDestinationResponse503Headers the declared response headers of an HTTP 503 response for CreateDestination
type CreateIntegrationJSONRequestBody ¶
type CreateIntegrationJSONRequestBody = IntegrationInput
CreateIntegrationJSONRequestBody defines body for CreateIntegration for application/json ContentType.
type CreateIntegrationResponse ¶
type CreateIntegrationResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON201 the response for an HTTP 201 `application/json` response
JSON201 *Integration
// ApplicationproblemJSON400 the response for an HTTP 400 `application/problem+json` response
ApplicationproblemJSON400 *BadRequest
// ApplicationproblemJSON401 the response for an HTTP 401 `application/problem+json` response
ApplicationproblemJSON401 *Unauthorized
// ApplicationproblemJSON403 the response for an HTTP 403 `application/problem+json` response
ApplicationproblemJSON403 *Forbidden
// ApplicationproblemJSON409 the response for an HTTP 409 `application/problem+json` response
ApplicationproblemJSON409 *Conflict
// ApplicationproblemJSON422 the response for an HTTP 422 `application/problem+json` response
ApplicationproblemJSON422 *Unprocessable
// ApplicationproblemJSON429 the response for an HTTP 429 `application/problem+json` response
ApplicationproblemJSON429 *TooManyRequests
// Headers201 the parsed response headers for an HTTP 201 response
Headers201 *CreateIntegrationResponse201Headers
// Headers429 the parsed response headers for an HTTP 429 response
Headers429 *CreateIntegrationResponse429Headers
}
func ParseCreateIntegrationResponse ¶
func ParseCreateIntegrationResponse(rsp *http.Response) (*CreateIntegrationResponse, error)
ParseCreateIntegrationResponse parses an HTTP response from a CreateIntegrationWithResponse call
func (CreateIntegrationResponse) ContentType ¶
func (r CreateIntegrationResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (CreateIntegrationResponse) GetApplicationproblemJSON400 ¶
func (r CreateIntegrationResponse) GetApplicationproblemJSON400() *BadRequest
GetApplicationproblemJSON400 returns the response for an HTTP 400 `application/problem+json` response
func (CreateIntegrationResponse) GetApplicationproblemJSON401 ¶
func (r CreateIntegrationResponse) GetApplicationproblemJSON401() *Unauthorized
GetApplicationproblemJSON401 returns the response for an HTTP 401 `application/problem+json` response
func (CreateIntegrationResponse) GetApplicationproblemJSON403 ¶
func (r CreateIntegrationResponse) GetApplicationproblemJSON403() *Forbidden
GetApplicationproblemJSON403 returns the response for an HTTP 403 `application/problem+json` response
func (CreateIntegrationResponse) GetApplicationproblemJSON409 ¶
func (r CreateIntegrationResponse) GetApplicationproblemJSON409() *Conflict
GetApplicationproblemJSON409 returns the response for an HTTP 409 `application/problem+json` response
func (CreateIntegrationResponse) GetApplicationproblemJSON422 ¶
func (r CreateIntegrationResponse) GetApplicationproblemJSON422() *Unprocessable
GetApplicationproblemJSON422 returns the response for an HTTP 422 `application/problem+json` response
func (CreateIntegrationResponse) GetApplicationproblemJSON429 ¶
func (r CreateIntegrationResponse) GetApplicationproblemJSON429() *TooManyRequests
GetApplicationproblemJSON429 returns the response for an HTTP 429 `application/problem+json` response
func (CreateIntegrationResponse) GetBody ¶
func (r CreateIntegrationResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (CreateIntegrationResponse) GetJSON201 ¶
func (r CreateIntegrationResponse) GetJSON201() *Integration
GetJSON201 returns the response for an HTTP 201 `application/json` response
func (CreateIntegrationResponse) Status ¶
func (r CreateIntegrationResponse) Status() string
Status returns HTTPResponse.Status
func (CreateIntegrationResponse) StatusCode ¶
func (r CreateIntegrationResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type CreateIntegrationResponse201Headers ¶
CreateIntegrationResponse201Headers the declared response headers of an HTTP 201 response for CreateIntegration
type CreateIntegrationResponse429Headers ¶
type CreateIntegrationResponse429Headers struct {
RetryAfter *int
}
CreateIntegrationResponse429Headers the declared response headers of an HTTP 429 response for CreateIntegration
type CreateIntegrationTokenJSONRequestBody ¶
type CreateIntegrationTokenJSONRequestBody = IntegrationTokenCreate
CreateIntegrationTokenJSONRequestBody defines body for CreateIntegrationToken for application/json ContentType.
type CreateIntegrationTokenResponse ¶
type CreateIntegrationTokenResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON201 the response for an HTTP 201 `application/json` response
JSON201 *IntegrationTokenCreated
// ApplicationproblemJSON400 the response for an HTTP 400 `application/problem+json` response
ApplicationproblemJSON400 *BadRequest
// ApplicationproblemJSON401 the response for an HTTP 401 `application/problem+json` response
ApplicationproblemJSON401 *Unauthorized
// ApplicationproblemJSON403 the response for an HTTP 403 `application/problem+json` response
ApplicationproblemJSON403 *Forbidden
// ApplicationproblemJSON404 the response for an HTTP 404 `application/problem+json` response
ApplicationproblemJSON404 *NotFound
// ApplicationproblemJSON409 the response for an HTTP 409 `application/problem+json` response
ApplicationproblemJSON409 *Conflict
// ApplicationproblemJSON422 the response for an HTTP 422 `application/problem+json` response
ApplicationproblemJSON422 *Unprocessable
// ApplicationproblemJSON429 the response for an HTTP 429 `application/problem+json` response
ApplicationproblemJSON429 *TooManyRequests
// Headers429 the parsed response headers for an HTTP 429 response
Headers429 *CreateIntegrationTokenResponse429Headers
}
func ParseCreateIntegrationTokenResponse ¶
func ParseCreateIntegrationTokenResponse(rsp *http.Response) (*CreateIntegrationTokenResponse, error)
ParseCreateIntegrationTokenResponse parses an HTTP response from a CreateIntegrationTokenWithResponse call
func (CreateIntegrationTokenResponse) ContentType ¶
func (r CreateIntegrationTokenResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (CreateIntegrationTokenResponse) GetApplicationproblemJSON400 ¶
func (r CreateIntegrationTokenResponse) GetApplicationproblemJSON400() *BadRequest
GetApplicationproblemJSON400 returns the response for an HTTP 400 `application/problem+json` response
func (CreateIntegrationTokenResponse) GetApplicationproblemJSON401 ¶
func (r CreateIntegrationTokenResponse) GetApplicationproblemJSON401() *Unauthorized
GetApplicationproblemJSON401 returns the response for an HTTP 401 `application/problem+json` response
func (CreateIntegrationTokenResponse) GetApplicationproblemJSON403 ¶
func (r CreateIntegrationTokenResponse) GetApplicationproblemJSON403() *Forbidden
GetApplicationproblemJSON403 returns the response for an HTTP 403 `application/problem+json` response
func (CreateIntegrationTokenResponse) GetApplicationproblemJSON404 ¶
func (r CreateIntegrationTokenResponse) GetApplicationproblemJSON404() *NotFound
GetApplicationproblemJSON404 returns the response for an HTTP 404 `application/problem+json` response
func (CreateIntegrationTokenResponse) GetApplicationproblemJSON409 ¶
func (r CreateIntegrationTokenResponse) GetApplicationproblemJSON409() *Conflict
GetApplicationproblemJSON409 returns the response for an HTTP 409 `application/problem+json` response
func (CreateIntegrationTokenResponse) GetApplicationproblemJSON422 ¶
func (r CreateIntegrationTokenResponse) GetApplicationproblemJSON422() *Unprocessable
GetApplicationproblemJSON422 returns the response for an HTTP 422 `application/problem+json` response
func (CreateIntegrationTokenResponse) GetApplicationproblemJSON429 ¶
func (r CreateIntegrationTokenResponse) GetApplicationproblemJSON429() *TooManyRequests
GetApplicationproblemJSON429 returns the response for an HTTP 429 `application/problem+json` response
func (CreateIntegrationTokenResponse) GetBody ¶
func (r CreateIntegrationTokenResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (CreateIntegrationTokenResponse) GetJSON201 ¶
func (r CreateIntegrationTokenResponse) GetJSON201() *IntegrationTokenCreated
GetJSON201 returns the response for an HTTP 201 `application/json` response
func (CreateIntegrationTokenResponse) Status ¶
func (r CreateIntegrationTokenResponse) Status() string
Status returns HTTPResponse.Status
func (CreateIntegrationTokenResponse) StatusCode ¶
func (r CreateIntegrationTokenResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type CreateIntegrationTokenResponse429Headers ¶
type CreateIntegrationTokenResponse429Headers struct {
RetryAfter *int
}
CreateIntegrationTokenResponse429Headers the declared response headers of an HTTP 429 response for CreateIntegrationToken
type CreateLinkRuleJSONRequestBody ¶
type CreateLinkRuleJSONRequestBody = LinkRuleBase
CreateLinkRuleJSONRequestBody defines body for CreateLinkRule for application/json ContentType.
type CreateLinkRuleResponse ¶
type CreateLinkRuleResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON201 the response for an HTTP 201 `application/json` response
JSON201 *LinkRule
// ApplicationproblemJSON400 the response for an HTTP 400 `application/problem+json` response
ApplicationproblemJSON400 *BadRequest
// ApplicationproblemJSON401 the response for an HTTP 401 `application/problem+json` response
ApplicationproblemJSON401 *Unauthorized
// ApplicationproblemJSON403 the response for an HTTP 403 `application/problem+json` response
ApplicationproblemJSON403 *Forbidden
// ApplicationproblemJSON409 the response for an HTTP 409 `application/problem+json` response
ApplicationproblemJSON409 *Conflict
// ApplicationproblemJSON422 the response for an HTTP 422 `application/problem+json` response
ApplicationproblemJSON422 *Unprocessable
// ApplicationproblemJSON429 the response for an HTTP 429 `application/problem+json` response
ApplicationproblemJSON429 *TooManyRequests
// Headers201 the parsed response headers for an HTTP 201 response
Headers201 *CreateLinkRuleResponse201Headers
// Headers429 the parsed response headers for an HTTP 429 response
Headers429 *CreateLinkRuleResponse429Headers
}
func ParseCreateLinkRuleResponse ¶
func ParseCreateLinkRuleResponse(rsp *http.Response) (*CreateLinkRuleResponse, error)
ParseCreateLinkRuleResponse parses an HTTP response from a CreateLinkRuleWithResponse call
func (CreateLinkRuleResponse) ContentType ¶
func (r CreateLinkRuleResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (CreateLinkRuleResponse) GetApplicationproblemJSON400 ¶
func (r CreateLinkRuleResponse) GetApplicationproblemJSON400() *BadRequest
GetApplicationproblemJSON400 returns the response for an HTTP 400 `application/problem+json` response
func (CreateLinkRuleResponse) GetApplicationproblemJSON401 ¶
func (r CreateLinkRuleResponse) GetApplicationproblemJSON401() *Unauthorized
GetApplicationproblemJSON401 returns the response for an HTTP 401 `application/problem+json` response
func (CreateLinkRuleResponse) GetApplicationproblemJSON403 ¶
func (r CreateLinkRuleResponse) GetApplicationproblemJSON403() *Forbidden
GetApplicationproblemJSON403 returns the response for an HTTP 403 `application/problem+json` response
func (CreateLinkRuleResponse) GetApplicationproblemJSON409 ¶
func (r CreateLinkRuleResponse) GetApplicationproblemJSON409() *Conflict
GetApplicationproblemJSON409 returns the response for an HTTP 409 `application/problem+json` response
func (CreateLinkRuleResponse) GetApplicationproblemJSON422 ¶
func (r CreateLinkRuleResponse) GetApplicationproblemJSON422() *Unprocessable
GetApplicationproblemJSON422 returns the response for an HTTP 422 `application/problem+json` response
func (CreateLinkRuleResponse) GetApplicationproblemJSON429 ¶
func (r CreateLinkRuleResponse) GetApplicationproblemJSON429() *TooManyRequests
GetApplicationproblemJSON429 returns the response for an HTTP 429 `application/problem+json` response
func (CreateLinkRuleResponse) GetBody ¶
func (r CreateLinkRuleResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (CreateLinkRuleResponse) GetJSON201 ¶
func (r CreateLinkRuleResponse) GetJSON201() *LinkRule
GetJSON201 returns the response for an HTTP 201 `application/json` response
func (CreateLinkRuleResponse) Status ¶
func (r CreateLinkRuleResponse) Status() string
Status returns HTTPResponse.Status
func (CreateLinkRuleResponse) StatusCode ¶
func (r CreateLinkRuleResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type CreateLinkRuleResponse201Headers ¶
CreateLinkRuleResponse201Headers the declared response headers of an HTTP 201 response for CreateLinkRule
type CreateLinkRuleResponse429Headers ¶
type CreateLinkRuleResponse429Headers struct {
RetryAfter *int
}
CreateLinkRuleResponse429Headers the declared response headers of an HTTP 429 response for CreateLinkRule
type CreateLookupTableJSONRequestBody ¶
type CreateLookupTableJSONRequestBody = LookupTableBase
CreateLookupTableJSONRequestBody defines body for CreateLookupTable for application/json ContentType.
type CreateLookupTableResponse ¶
type CreateLookupTableResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON201 the response for an HTTP 201 `application/json` response
JSON201 *LookupTable
// ApplicationproblemJSON400 the response for an HTTP 400 `application/problem+json` response
ApplicationproblemJSON400 *BadRequest
// ApplicationproblemJSON401 the response for an HTTP 401 `application/problem+json` response
ApplicationproblemJSON401 *Unauthorized
// ApplicationproblemJSON403 the response for an HTTP 403 `application/problem+json` response
ApplicationproblemJSON403 *Forbidden
// ApplicationproblemJSON409 the response for an HTTP 409 `application/problem+json` response
ApplicationproblemJSON409 *Conflict
// ApplicationproblemJSON422 the response for an HTTP 422 `application/problem+json` response
ApplicationproblemJSON422 *Unprocessable
// ApplicationproblemJSON429 the response for an HTTP 429 `application/problem+json` response
ApplicationproblemJSON429 *TooManyRequests
// Headers201 the parsed response headers for an HTTP 201 response
Headers201 *CreateLookupTableResponse201Headers
// Headers429 the parsed response headers for an HTTP 429 response
Headers429 *CreateLookupTableResponse429Headers
}
func ParseCreateLookupTableResponse ¶
func ParseCreateLookupTableResponse(rsp *http.Response) (*CreateLookupTableResponse, error)
ParseCreateLookupTableResponse parses an HTTP response from a CreateLookupTableWithResponse call
func (CreateLookupTableResponse) ContentType ¶
func (r CreateLookupTableResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (CreateLookupTableResponse) GetApplicationproblemJSON400 ¶
func (r CreateLookupTableResponse) GetApplicationproblemJSON400() *BadRequest
GetApplicationproblemJSON400 returns the response for an HTTP 400 `application/problem+json` response
func (CreateLookupTableResponse) GetApplicationproblemJSON401 ¶
func (r CreateLookupTableResponse) GetApplicationproblemJSON401() *Unauthorized
GetApplicationproblemJSON401 returns the response for an HTTP 401 `application/problem+json` response
func (CreateLookupTableResponse) GetApplicationproblemJSON403 ¶
func (r CreateLookupTableResponse) GetApplicationproblemJSON403() *Forbidden
GetApplicationproblemJSON403 returns the response for an HTTP 403 `application/problem+json` response
func (CreateLookupTableResponse) GetApplicationproblemJSON409 ¶
func (r CreateLookupTableResponse) GetApplicationproblemJSON409() *Conflict
GetApplicationproblemJSON409 returns the response for an HTTP 409 `application/problem+json` response
func (CreateLookupTableResponse) GetApplicationproblemJSON422 ¶
func (r CreateLookupTableResponse) GetApplicationproblemJSON422() *Unprocessable
GetApplicationproblemJSON422 returns the response for an HTTP 422 `application/problem+json` response
func (CreateLookupTableResponse) GetApplicationproblemJSON429 ¶
func (r CreateLookupTableResponse) GetApplicationproblemJSON429() *TooManyRequests
GetApplicationproblemJSON429 returns the response for an HTTP 429 `application/problem+json` response
func (CreateLookupTableResponse) GetBody ¶
func (r CreateLookupTableResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (CreateLookupTableResponse) GetJSON201 ¶
func (r CreateLookupTableResponse) GetJSON201() *LookupTable
GetJSON201 returns the response for an HTTP 201 `application/json` response
func (CreateLookupTableResponse) Status ¶
func (r CreateLookupTableResponse) Status() string
Status returns HTTPResponse.Status
func (CreateLookupTableResponse) StatusCode ¶
func (r CreateLookupTableResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type CreateLookupTableResponse201Headers ¶
CreateLookupTableResponse201Headers the declared response headers of an HTTP 201 response for CreateLookupTable
type CreateLookupTableResponse429Headers ¶
type CreateLookupTableResponse429Headers struct {
RetryAfter *int
}
CreateLookupTableResponse429Headers the declared response headers of an HTTP 429 response for CreateLookupTable
type CreatePasswordSetupLinkResponse ¶
type CreatePasswordSetupLinkResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON201 the response for an HTTP 201 `application/json` response
JSON201 *PasswordSetupLink
// ApplicationproblemJSON401 the response for an HTTP 401 `application/problem+json` response
ApplicationproblemJSON401 *Unauthorized
// ApplicationproblemJSON403 the response for an HTTP 403 `application/problem+json` response
ApplicationproblemJSON403 *Forbidden
// ApplicationproblemJSON404 the response for an HTTP 404 `application/problem+json` response
ApplicationproblemJSON404 *NotFound
// ApplicationproblemJSON409 the response for an HTTP 409 `application/problem+json` response
ApplicationproblemJSON409 *Conflict
// ApplicationproblemJSON429 the response for an HTTP 429 `application/problem+json` response
ApplicationproblemJSON429 *TooManyRequests
// Headers429 the parsed response headers for an HTTP 429 response
Headers429 *CreatePasswordSetupLinkResponse429Headers
}
func ParseCreatePasswordSetupLinkResponse ¶
func ParseCreatePasswordSetupLinkResponse(rsp *http.Response) (*CreatePasswordSetupLinkResponse, error)
ParseCreatePasswordSetupLinkResponse parses an HTTP response from a CreatePasswordSetupLinkWithResponse call
func (CreatePasswordSetupLinkResponse) ContentType ¶
func (r CreatePasswordSetupLinkResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (CreatePasswordSetupLinkResponse) GetApplicationproblemJSON401 ¶
func (r CreatePasswordSetupLinkResponse) GetApplicationproblemJSON401() *Unauthorized
GetApplicationproblemJSON401 returns the response for an HTTP 401 `application/problem+json` response
func (CreatePasswordSetupLinkResponse) GetApplicationproblemJSON403 ¶
func (r CreatePasswordSetupLinkResponse) GetApplicationproblemJSON403() *Forbidden
GetApplicationproblemJSON403 returns the response for an HTTP 403 `application/problem+json` response
func (CreatePasswordSetupLinkResponse) GetApplicationproblemJSON404 ¶
func (r CreatePasswordSetupLinkResponse) GetApplicationproblemJSON404() *NotFound
GetApplicationproblemJSON404 returns the response for an HTTP 404 `application/problem+json` response
func (CreatePasswordSetupLinkResponse) GetApplicationproblemJSON409 ¶
func (r CreatePasswordSetupLinkResponse) GetApplicationproblemJSON409() *Conflict
GetApplicationproblemJSON409 returns the response for an HTTP 409 `application/problem+json` response
func (CreatePasswordSetupLinkResponse) GetApplicationproblemJSON429 ¶
func (r CreatePasswordSetupLinkResponse) GetApplicationproblemJSON429() *TooManyRequests
GetApplicationproblemJSON429 returns the response for an HTTP 429 `application/problem+json` response
func (CreatePasswordSetupLinkResponse) GetBody ¶
func (r CreatePasswordSetupLinkResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (CreatePasswordSetupLinkResponse) GetJSON201 ¶
func (r CreatePasswordSetupLinkResponse) GetJSON201() *PasswordSetupLink
GetJSON201 returns the response for an HTTP 201 `application/json` response
func (CreatePasswordSetupLinkResponse) Status ¶
func (r CreatePasswordSetupLinkResponse) Status() string
Status returns HTTPResponse.Status
func (CreatePasswordSetupLinkResponse) StatusCode ¶
func (r CreatePasswordSetupLinkResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type CreatePasswordSetupLinkResponse429Headers ¶
type CreatePasswordSetupLinkResponse429Headers struct {
RetryAfter *int
}
CreatePasswordSetupLinkResponse429Headers the declared response headers of an HTTP 429 response for CreatePasswordSetupLink
type CreatePersonalAccessTokenJSONRequestBody ¶
type CreatePersonalAccessTokenJSONRequestBody = PersonalAccessTokenCreate
CreatePersonalAccessTokenJSONRequestBody defines body for CreatePersonalAccessToken for application/json ContentType.
type CreatePersonalAccessTokenResponse ¶
type CreatePersonalAccessTokenResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON201 the response for an HTTP 201 `application/json` response
JSON201 *PersonalAccessTokenCreated
// ApplicationproblemJSON400 the response for an HTTP 400 `application/problem+json` response
ApplicationproblemJSON400 *BadRequest
// ApplicationproblemJSON401 the response for an HTTP 401 `application/problem+json` response
ApplicationproblemJSON401 *Unauthorized
// ApplicationproblemJSON403 the response for an HTTP 403 `application/problem+json` response
ApplicationproblemJSON403 *Forbidden
// ApplicationproblemJSON422 the response for an HTTP 422 `application/problem+json` response
ApplicationproblemJSON422 *Unprocessable
// ApplicationproblemJSON429 the response for an HTTP 429 `application/problem+json` response
ApplicationproblemJSON429 *TooManyRequests
// Headers429 the parsed response headers for an HTTP 429 response
Headers429 *CreatePersonalAccessTokenResponse429Headers
}
func ParseCreatePersonalAccessTokenResponse ¶
func ParseCreatePersonalAccessTokenResponse(rsp *http.Response) (*CreatePersonalAccessTokenResponse, error)
ParseCreatePersonalAccessTokenResponse parses an HTTP response from a CreatePersonalAccessTokenWithResponse call
func (CreatePersonalAccessTokenResponse) ContentType ¶
func (r CreatePersonalAccessTokenResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (CreatePersonalAccessTokenResponse) GetApplicationproblemJSON400 ¶
func (r CreatePersonalAccessTokenResponse) GetApplicationproblemJSON400() *BadRequest
GetApplicationproblemJSON400 returns the response for an HTTP 400 `application/problem+json` response
func (CreatePersonalAccessTokenResponse) GetApplicationproblemJSON401 ¶
func (r CreatePersonalAccessTokenResponse) GetApplicationproblemJSON401() *Unauthorized
GetApplicationproblemJSON401 returns the response for an HTTP 401 `application/problem+json` response
func (CreatePersonalAccessTokenResponse) GetApplicationproblemJSON403 ¶
func (r CreatePersonalAccessTokenResponse) GetApplicationproblemJSON403() *Forbidden
GetApplicationproblemJSON403 returns the response for an HTTP 403 `application/problem+json` response
func (CreatePersonalAccessTokenResponse) GetApplicationproblemJSON422 ¶
func (r CreatePersonalAccessTokenResponse) GetApplicationproblemJSON422() *Unprocessable
GetApplicationproblemJSON422 returns the response for an HTTP 422 `application/problem+json` response
func (CreatePersonalAccessTokenResponse) GetApplicationproblemJSON429 ¶
func (r CreatePersonalAccessTokenResponse) GetApplicationproblemJSON429() *TooManyRequests
GetApplicationproblemJSON429 returns the response for an HTTP 429 `application/problem+json` response
func (CreatePersonalAccessTokenResponse) GetBody ¶
func (r CreatePersonalAccessTokenResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (CreatePersonalAccessTokenResponse) GetJSON201 ¶
func (r CreatePersonalAccessTokenResponse) GetJSON201() *PersonalAccessTokenCreated
GetJSON201 returns the response for an HTTP 201 `application/json` response
func (CreatePersonalAccessTokenResponse) Status ¶
func (r CreatePersonalAccessTokenResponse) Status() string
Status returns HTTPResponse.Status
func (CreatePersonalAccessTokenResponse) StatusCode ¶
func (r CreatePersonalAccessTokenResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type CreatePersonalAccessTokenResponse429Headers ¶
type CreatePersonalAccessTokenResponse429Headers struct {
RetryAfter *int
}
CreatePersonalAccessTokenResponse429Headers the declared response headers of an HTTP 429 response for CreatePersonalAccessToken
type CreateRouteJSONRequestBody ¶
type CreateRouteJSONRequestBody = RouteInput
CreateRouteJSONRequestBody defines body for CreateRoute for application/json ContentType.
type CreateRouteResponse ¶
type CreateRouteResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON201 the response for an HTTP 201 `application/json` response
JSON201 *Route
// ApplicationproblemJSON400 the response for an HTTP 400 `application/problem+json` response
ApplicationproblemJSON400 *BadRequest
// ApplicationproblemJSON401 the response for an HTTP 401 `application/problem+json` response
ApplicationproblemJSON401 *Unauthorized
// ApplicationproblemJSON403 the response for an HTTP 403 `application/problem+json` response
ApplicationproblemJSON403 *Forbidden
// ApplicationproblemJSON409 the response for an HTTP 409 `application/problem+json` response
ApplicationproblemJSON409 *Conflict
// ApplicationproblemJSON422 the response for an HTTP 422 `application/problem+json` response
ApplicationproblemJSON422 *Unprocessable
// ApplicationproblemJSON429 the response for an HTTP 429 `application/problem+json` response
ApplicationproblemJSON429 *TooManyRequests
// Headers201 the parsed response headers for an HTTP 201 response
Headers201 *CreateRouteResponse201Headers
// Headers429 the parsed response headers for an HTTP 429 response
Headers429 *CreateRouteResponse429Headers
}
func ParseCreateRouteResponse ¶
func ParseCreateRouteResponse(rsp *http.Response) (*CreateRouteResponse, error)
ParseCreateRouteResponse parses an HTTP response from a CreateRouteWithResponse call
func (CreateRouteResponse) ContentType ¶
func (r CreateRouteResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (CreateRouteResponse) GetApplicationproblemJSON400 ¶
func (r CreateRouteResponse) GetApplicationproblemJSON400() *BadRequest
GetApplicationproblemJSON400 returns the response for an HTTP 400 `application/problem+json` response
func (CreateRouteResponse) GetApplicationproblemJSON401 ¶
func (r CreateRouteResponse) GetApplicationproblemJSON401() *Unauthorized
GetApplicationproblemJSON401 returns the response for an HTTP 401 `application/problem+json` response
func (CreateRouteResponse) GetApplicationproblemJSON403 ¶
func (r CreateRouteResponse) GetApplicationproblemJSON403() *Forbidden
GetApplicationproblemJSON403 returns the response for an HTTP 403 `application/problem+json` response
func (CreateRouteResponse) GetApplicationproblemJSON409 ¶
func (r CreateRouteResponse) GetApplicationproblemJSON409() *Conflict
GetApplicationproblemJSON409 returns the response for an HTTP 409 `application/problem+json` response
func (CreateRouteResponse) GetApplicationproblemJSON422 ¶
func (r CreateRouteResponse) GetApplicationproblemJSON422() *Unprocessable
GetApplicationproblemJSON422 returns the response for an HTTP 422 `application/problem+json` response
func (CreateRouteResponse) GetApplicationproblemJSON429 ¶
func (r CreateRouteResponse) GetApplicationproblemJSON429() *TooManyRequests
GetApplicationproblemJSON429 returns the response for an HTTP 429 `application/problem+json` response
func (CreateRouteResponse) GetBody ¶
func (r CreateRouteResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (CreateRouteResponse) GetJSON201 ¶
func (r CreateRouteResponse) GetJSON201() *Route
GetJSON201 returns the response for an HTTP 201 `application/json` response
func (CreateRouteResponse) Status ¶
func (r CreateRouteResponse) Status() string
Status returns HTTPResponse.Status
func (CreateRouteResponse) StatusCode ¶
func (r CreateRouteResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type CreateRouteResponse201Headers ¶
CreateRouteResponse201Headers the declared response headers of an HTTP 201 response for CreateRoute
type CreateRouteResponse429Headers ¶
type CreateRouteResponse429Headers struct {
RetryAfter *int
}
CreateRouteResponse429Headers the declared response headers of an HTTP 429 response for CreateRoute
type CreateServiceAccountJSONRequestBody ¶
type CreateServiceAccountJSONRequestBody = ServiceAccountInput
CreateServiceAccountJSONRequestBody defines body for CreateServiceAccount for application/json ContentType.
type CreateServiceAccountResponse ¶
type CreateServiceAccountResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON201 the response for an HTTP 201 `application/json` response
JSON201 *ServiceAccount
// ApplicationproblemJSON400 the response for an HTTP 400 `application/problem+json` response
ApplicationproblemJSON400 *BadRequest
// ApplicationproblemJSON401 the response for an HTTP 401 `application/problem+json` response
ApplicationproblemJSON401 *Unauthorized
// ApplicationproblemJSON403 the response for an HTTP 403 `application/problem+json` response
ApplicationproblemJSON403 *Forbidden
// ApplicationproblemJSON409 the response for an HTTP 409 `application/problem+json` response
ApplicationproblemJSON409 *Conflict
// ApplicationproblemJSON422 the response for an HTTP 422 `application/problem+json` response
ApplicationproblemJSON422 *Unprocessable
// ApplicationproblemJSON429 the response for an HTTP 429 `application/problem+json` response
ApplicationproblemJSON429 *TooManyRequests
// Headers201 the parsed response headers for an HTTP 201 response
Headers201 *CreateServiceAccountResponse201Headers
// Headers429 the parsed response headers for an HTTP 429 response
Headers429 *CreateServiceAccountResponse429Headers
}
func ParseCreateServiceAccountResponse ¶
func ParseCreateServiceAccountResponse(rsp *http.Response) (*CreateServiceAccountResponse, error)
ParseCreateServiceAccountResponse parses an HTTP response from a CreateServiceAccountWithResponse call
func (CreateServiceAccountResponse) ContentType ¶
func (r CreateServiceAccountResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (CreateServiceAccountResponse) GetApplicationproblemJSON400 ¶
func (r CreateServiceAccountResponse) GetApplicationproblemJSON400() *BadRequest
GetApplicationproblemJSON400 returns the response for an HTTP 400 `application/problem+json` response
func (CreateServiceAccountResponse) GetApplicationproblemJSON401 ¶
func (r CreateServiceAccountResponse) GetApplicationproblemJSON401() *Unauthorized
GetApplicationproblemJSON401 returns the response for an HTTP 401 `application/problem+json` response
func (CreateServiceAccountResponse) GetApplicationproblemJSON403 ¶
func (r CreateServiceAccountResponse) GetApplicationproblemJSON403() *Forbidden
GetApplicationproblemJSON403 returns the response for an HTTP 403 `application/problem+json` response
func (CreateServiceAccountResponse) GetApplicationproblemJSON409 ¶
func (r CreateServiceAccountResponse) GetApplicationproblemJSON409() *Conflict
GetApplicationproblemJSON409 returns the response for an HTTP 409 `application/problem+json` response
func (CreateServiceAccountResponse) GetApplicationproblemJSON422 ¶
func (r CreateServiceAccountResponse) GetApplicationproblemJSON422() *Unprocessable
GetApplicationproblemJSON422 returns the response for an HTTP 422 `application/problem+json` response
func (CreateServiceAccountResponse) GetApplicationproblemJSON429 ¶
func (r CreateServiceAccountResponse) GetApplicationproblemJSON429() *TooManyRequests
GetApplicationproblemJSON429 returns the response for an HTTP 429 `application/problem+json` response
func (CreateServiceAccountResponse) GetBody ¶
func (r CreateServiceAccountResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (CreateServiceAccountResponse) GetJSON201 ¶
func (r CreateServiceAccountResponse) GetJSON201() *ServiceAccount
GetJSON201 returns the response for an HTTP 201 `application/json` response
func (CreateServiceAccountResponse) Status ¶
func (r CreateServiceAccountResponse) Status() string
Status returns HTTPResponse.Status
func (CreateServiceAccountResponse) StatusCode ¶
func (r CreateServiceAccountResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type CreateServiceAccountResponse201Headers ¶
CreateServiceAccountResponse201Headers the declared response headers of an HTTP 201 response for CreateServiceAccount
type CreateServiceAccountResponse429Headers ¶
type CreateServiceAccountResponse429Headers struct {
RetryAfter *int
}
CreateServiceAccountResponse429Headers the declared response headers of an HTTP 429 response for CreateServiceAccount
type CreateServiceAccountTokenJSONRequestBody ¶
type CreateServiceAccountTokenJSONRequestBody = ServiceAccountTokenCreate
CreateServiceAccountTokenJSONRequestBody defines body for CreateServiceAccountToken for application/json ContentType.
type CreateServiceAccountTokenResponse ¶
type CreateServiceAccountTokenResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON201 the response for an HTTP 201 `application/json` response
JSON201 *ServiceAccountTokenCreated
// ApplicationproblemJSON400 the response for an HTTP 400 `application/problem+json` response
ApplicationproblemJSON400 *BadRequest
// ApplicationproblemJSON401 the response for an HTTP 401 `application/problem+json` response
ApplicationproblemJSON401 *Unauthorized
// ApplicationproblemJSON403 the response for an HTTP 403 `application/problem+json` response
ApplicationproblemJSON403 *Forbidden
// ApplicationproblemJSON404 the response for an HTTP 404 `application/problem+json` response
ApplicationproblemJSON404 *NotFound
// ApplicationproblemJSON422 the response for an HTTP 422 `application/problem+json` response
ApplicationproblemJSON422 *Unprocessable
// ApplicationproblemJSON429 the response for an HTTP 429 `application/problem+json` response
ApplicationproblemJSON429 *TooManyRequests
// Headers429 the parsed response headers for an HTTP 429 response
Headers429 *CreateServiceAccountTokenResponse429Headers
}
func ParseCreateServiceAccountTokenResponse ¶
func ParseCreateServiceAccountTokenResponse(rsp *http.Response) (*CreateServiceAccountTokenResponse, error)
ParseCreateServiceAccountTokenResponse parses an HTTP response from a CreateServiceAccountTokenWithResponse call
func (CreateServiceAccountTokenResponse) ContentType ¶
func (r CreateServiceAccountTokenResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (CreateServiceAccountTokenResponse) GetApplicationproblemJSON400 ¶
func (r CreateServiceAccountTokenResponse) GetApplicationproblemJSON400() *BadRequest
GetApplicationproblemJSON400 returns the response for an HTTP 400 `application/problem+json` response
func (CreateServiceAccountTokenResponse) GetApplicationproblemJSON401 ¶
func (r CreateServiceAccountTokenResponse) GetApplicationproblemJSON401() *Unauthorized
GetApplicationproblemJSON401 returns the response for an HTTP 401 `application/problem+json` response
func (CreateServiceAccountTokenResponse) GetApplicationproblemJSON403 ¶
func (r CreateServiceAccountTokenResponse) GetApplicationproblemJSON403() *Forbidden
GetApplicationproblemJSON403 returns the response for an HTTP 403 `application/problem+json` response
func (CreateServiceAccountTokenResponse) GetApplicationproblemJSON404 ¶
func (r CreateServiceAccountTokenResponse) GetApplicationproblemJSON404() *NotFound
GetApplicationproblemJSON404 returns the response for an HTTP 404 `application/problem+json` response
func (CreateServiceAccountTokenResponse) GetApplicationproblemJSON422 ¶
func (r CreateServiceAccountTokenResponse) GetApplicationproblemJSON422() *Unprocessable
GetApplicationproblemJSON422 returns the response for an HTTP 422 `application/problem+json` response
func (CreateServiceAccountTokenResponse) GetApplicationproblemJSON429 ¶
func (r CreateServiceAccountTokenResponse) GetApplicationproblemJSON429() *TooManyRequests
GetApplicationproblemJSON429 returns the response for an HTTP 429 `application/problem+json` response
func (CreateServiceAccountTokenResponse) GetBody ¶
func (r CreateServiceAccountTokenResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (CreateServiceAccountTokenResponse) GetJSON201 ¶
func (r CreateServiceAccountTokenResponse) GetJSON201() *ServiceAccountTokenCreated
GetJSON201 returns the response for an HTTP 201 `application/json` response
func (CreateServiceAccountTokenResponse) Status ¶
func (r CreateServiceAccountTokenResponse) Status() string
Status returns HTTPResponse.Status
func (CreateServiceAccountTokenResponse) StatusCode ¶
func (r CreateServiceAccountTokenResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type CreateServiceAccountTokenResponse429Headers ¶
type CreateServiceAccountTokenResponse429Headers struct {
RetryAfter *int
}
CreateServiceAccountTokenResponse429Headers the declared response headers of an HTTP 429 response for CreateServiceAccountToken
type CreateSessionJSONRequestBody ¶
type CreateSessionJSONRequestBody = SessionCreate
CreateSessionJSONRequestBody defines body for CreateSession for application/json ContentType.
type CreateSessionResponse ¶
type CreateSessionResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON201 the response for an HTTP 201 `application/json` response
JSON201 *Session
// ApplicationproblemJSON400 the response for an HTTP 400 `application/problem+json` response
ApplicationproblemJSON400 *BadRequest
// ApplicationproblemJSON401 the response for an HTTP 401 `application/problem+json` response
ApplicationproblemJSON401 *Unauthorized
// ApplicationproblemJSON403 the response for an HTTP 403 `application/problem+json` response
ApplicationproblemJSON403 *Forbidden
// ApplicationproblemJSON429 the response for an HTTP 429 `application/problem+json` response
ApplicationproblemJSON429 *TooManyRequests
// Headers429 the parsed response headers for an HTTP 429 response
Headers429 *CreateSessionResponse429Headers
}
func ParseCreateSessionResponse ¶
func ParseCreateSessionResponse(rsp *http.Response) (*CreateSessionResponse, error)
ParseCreateSessionResponse parses an HTTP response from a CreateSessionWithResponse call
func (CreateSessionResponse) ContentType ¶
func (r CreateSessionResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (CreateSessionResponse) GetApplicationproblemJSON400 ¶
func (r CreateSessionResponse) GetApplicationproblemJSON400() *BadRequest
GetApplicationproblemJSON400 returns the response for an HTTP 400 `application/problem+json` response
func (CreateSessionResponse) GetApplicationproblemJSON401 ¶
func (r CreateSessionResponse) GetApplicationproblemJSON401() *Unauthorized
GetApplicationproblemJSON401 returns the response for an HTTP 401 `application/problem+json` response
func (CreateSessionResponse) GetApplicationproblemJSON403 ¶
func (r CreateSessionResponse) GetApplicationproblemJSON403() *Forbidden
GetApplicationproblemJSON403 returns the response for an HTTP 403 `application/problem+json` response
func (CreateSessionResponse) GetApplicationproblemJSON429 ¶
func (r CreateSessionResponse) GetApplicationproblemJSON429() *TooManyRequests
GetApplicationproblemJSON429 returns the response for an HTTP 429 `application/problem+json` response
func (CreateSessionResponse) GetBody ¶
func (r CreateSessionResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (CreateSessionResponse) GetJSON201 ¶
func (r CreateSessionResponse) GetJSON201() *Session
GetJSON201 returns the response for an HTTP 201 `application/json` response
func (CreateSessionResponse) Status ¶
func (r CreateSessionResponse) Status() string
Status returns HTTPResponse.Status
func (CreateSessionResponse) StatusCode ¶
func (r CreateSessionResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type CreateSessionResponse429Headers ¶
type CreateSessionResponse429Headers struct {
RetryAfter *int
}
CreateSessionResponse429Headers the declared response headers of an HTTP 429 response for CreateSession
type CreateUserJSONRequestBody ¶
type CreateUserJSONRequestBody = UserCreate
CreateUserJSONRequestBody defines body for CreateUser for application/json ContentType.
type CreateUserResponse ¶
type CreateUserResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON201 the response for an HTTP 201 `application/json` response
JSON201 *UserCreated
// ApplicationproblemJSON400 the response for an HTTP 400 `application/problem+json` response
ApplicationproblemJSON400 *BadRequest
// ApplicationproblemJSON401 the response for an HTTP 401 `application/problem+json` response
ApplicationproblemJSON401 *Unauthorized
// ApplicationproblemJSON403 the response for an HTTP 403 `application/problem+json` response
ApplicationproblemJSON403 *Forbidden
// ApplicationproblemJSON409 the response for an HTTP 409 `application/problem+json` response
ApplicationproblemJSON409 *Conflict
// ApplicationproblemJSON422 the response for an HTTP 422 `application/problem+json` response
ApplicationproblemJSON422 *Unprocessable
// ApplicationproblemJSON429 the response for an HTTP 429 `application/problem+json` response
ApplicationproblemJSON429 *TooManyRequests
// Headers201 the parsed response headers for an HTTP 201 response
Headers201 *CreateUserResponse201Headers
// Headers429 the parsed response headers for an HTTP 429 response
Headers429 *CreateUserResponse429Headers
}
func ParseCreateUserResponse ¶
func ParseCreateUserResponse(rsp *http.Response) (*CreateUserResponse, error)
ParseCreateUserResponse parses an HTTP response from a CreateUserWithResponse call
func (CreateUserResponse) ContentType ¶
func (r CreateUserResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (CreateUserResponse) GetApplicationproblemJSON400 ¶
func (r CreateUserResponse) GetApplicationproblemJSON400() *BadRequest
GetApplicationproblemJSON400 returns the response for an HTTP 400 `application/problem+json` response
func (CreateUserResponse) GetApplicationproblemJSON401 ¶
func (r CreateUserResponse) GetApplicationproblemJSON401() *Unauthorized
GetApplicationproblemJSON401 returns the response for an HTTP 401 `application/problem+json` response
func (CreateUserResponse) GetApplicationproblemJSON403 ¶
func (r CreateUserResponse) GetApplicationproblemJSON403() *Forbidden
GetApplicationproblemJSON403 returns the response for an HTTP 403 `application/problem+json` response
func (CreateUserResponse) GetApplicationproblemJSON409 ¶
func (r CreateUserResponse) GetApplicationproblemJSON409() *Conflict
GetApplicationproblemJSON409 returns the response for an HTTP 409 `application/problem+json` response
func (CreateUserResponse) GetApplicationproblemJSON422 ¶
func (r CreateUserResponse) GetApplicationproblemJSON422() *Unprocessable
GetApplicationproblemJSON422 returns the response for an HTTP 422 `application/problem+json` response
func (CreateUserResponse) GetApplicationproblemJSON429 ¶
func (r CreateUserResponse) GetApplicationproblemJSON429() *TooManyRequests
GetApplicationproblemJSON429 returns the response for an HTTP 429 `application/problem+json` response
func (CreateUserResponse) GetBody ¶
func (r CreateUserResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (CreateUserResponse) GetJSON201 ¶
func (r CreateUserResponse) GetJSON201() *UserCreated
GetJSON201 returns the response for an HTTP 201 `application/json` response
func (CreateUserResponse) Status ¶
func (r CreateUserResponse) Status() string
Status returns HTTPResponse.Status
func (CreateUserResponse) StatusCode ¶
func (r CreateUserResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type CreateUserResponse201Headers ¶
CreateUserResponse201Headers the declared response headers of an HTTP 201 response for CreateUser
type CreateUserResponse429Headers ¶
type CreateUserResponse429Headers struct {
RetryAfter *int
}
CreateUserResponse429Headers the declared response headers of an HTTP 429 response for CreateUser
type DeleteConnectionParams ¶
type DeleteConnectionParams struct {
// IfMatch Optional ETag; when present and stale, the request gets `412`.
IfMatch *IfMatchOptional `json:"If-Match,omitempty"`
}
DeleteConnectionParams defines parameters for DeleteConnection.
type DeleteConnectionResponse ¶
type DeleteConnectionResponse struct {
Body []byte
HTTPResponse *http.Response
// ApplicationproblemJSON401 the response for an HTTP 401 `application/problem+json` response
ApplicationproblemJSON401 *Unauthorized
// ApplicationproblemJSON403 the response for an HTTP 403 `application/problem+json` response
ApplicationproblemJSON403 *Forbidden
// ApplicationproblemJSON404 the response for an HTTP 404 `application/problem+json` response
ApplicationproblemJSON404 *NotFound
// ApplicationproblemJSON409 the response for an HTTP 409 `application/problem+json` response
ApplicationproblemJSON409 *Conflict
// ApplicationproblemJSON412 the response for an HTTP 412 `application/problem+json` response
ApplicationproblemJSON412 *PreconditionFailed
// ApplicationproblemJSON429 the response for an HTTP 429 `application/problem+json` response
ApplicationproblemJSON429 *TooManyRequests
// Headers429 the parsed response headers for an HTTP 429 response
Headers429 *DeleteConnectionResponse429Headers
}
func ParseDeleteConnectionResponse ¶
func ParseDeleteConnectionResponse(rsp *http.Response) (*DeleteConnectionResponse, error)
ParseDeleteConnectionResponse parses an HTTP response from a DeleteConnectionWithResponse call
func (DeleteConnectionResponse) ContentType ¶
func (r DeleteConnectionResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (DeleteConnectionResponse) GetApplicationproblemJSON401 ¶
func (r DeleteConnectionResponse) GetApplicationproblemJSON401() *Unauthorized
GetApplicationproblemJSON401 returns the response for an HTTP 401 `application/problem+json` response
func (DeleteConnectionResponse) GetApplicationproblemJSON403 ¶
func (r DeleteConnectionResponse) GetApplicationproblemJSON403() *Forbidden
GetApplicationproblemJSON403 returns the response for an HTTP 403 `application/problem+json` response
func (DeleteConnectionResponse) GetApplicationproblemJSON404 ¶
func (r DeleteConnectionResponse) GetApplicationproblemJSON404() *NotFound
GetApplicationproblemJSON404 returns the response for an HTTP 404 `application/problem+json` response
func (DeleteConnectionResponse) GetApplicationproblemJSON409 ¶
func (r DeleteConnectionResponse) GetApplicationproblemJSON409() *Conflict
GetApplicationproblemJSON409 returns the response for an HTTP 409 `application/problem+json` response
func (DeleteConnectionResponse) GetApplicationproblemJSON412 ¶
func (r DeleteConnectionResponse) GetApplicationproblemJSON412() *PreconditionFailed
GetApplicationproblemJSON412 returns the response for an HTTP 412 `application/problem+json` response
func (DeleteConnectionResponse) GetApplicationproblemJSON429 ¶
func (r DeleteConnectionResponse) GetApplicationproblemJSON429() *TooManyRequests
GetApplicationproblemJSON429 returns the response for an HTTP 429 `application/problem+json` response
func (DeleteConnectionResponse) GetBody ¶
func (r DeleteConnectionResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (DeleteConnectionResponse) Status ¶
func (r DeleteConnectionResponse) Status() string
Status returns HTTPResponse.Status
func (DeleteConnectionResponse) StatusCode ¶
func (r DeleteConnectionResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type DeleteConnectionResponse429Headers ¶
type DeleteConnectionResponse429Headers struct {
RetryAfter *int
}
DeleteConnectionResponse429Headers the declared response headers of an HTTP 429 response for DeleteConnection
type DeleteCurrentSessionResponse ¶
type DeleteCurrentSessionResponse struct {
Body []byte
HTTPResponse *http.Response
// ApplicationproblemJSON401 the response for an HTTP 401 `application/problem+json` response
ApplicationproblemJSON401 *Unauthorized
// ApplicationproblemJSON403 the response for an HTTP 403 `application/problem+json` response
ApplicationproblemJSON403 *Forbidden
// ApplicationproblemJSON429 the response for an HTTP 429 `application/problem+json` response
ApplicationproblemJSON429 *TooManyRequests
// Headers429 the parsed response headers for an HTTP 429 response
Headers429 *DeleteCurrentSessionResponse429Headers
}
func ParseDeleteCurrentSessionResponse ¶
func ParseDeleteCurrentSessionResponse(rsp *http.Response) (*DeleteCurrentSessionResponse, error)
ParseDeleteCurrentSessionResponse parses an HTTP response from a DeleteCurrentSessionWithResponse call
func (DeleteCurrentSessionResponse) ContentType ¶
func (r DeleteCurrentSessionResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (DeleteCurrentSessionResponse) GetApplicationproblemJSON401 ¶
func (r DeleteCurrentSessionResponse) GetApplicationproblemJSON401() *Unauthorized
GetApplicationproblemJSON401 returns the response for an HTTP 401 `application/problem+json` response
func (DeleteCurrentSessionResponse) GetApplicationproblemJSON403 ¶
func (r DeleteCurrentSessionResponse) GetApplicationproblemJSON403() *Forbidden
GetApplicationproblemJSON403 returns the response for an HTTP 403 `application/problem+json` response
func (DeleteCurrentSessionResponse) GetApplicationproblemJSON429 ¶
func (r DeleteCurrentSessionResponse) GetApplicationproblemJSON429() *TooManyRequests
GetApplicationproblemJSON429 returns the response for an HTTP 429 `application/problem+json` response
func (DeleteCurrentSessionResponse) GetBody ¶
func (r DeleteCurrentSessionResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (DeleteCurrentSessionResponse) Status ¶
func (r DeleteCurrentSessionResponse) Status() string
Status returns HTTPResponse.Status
func (DeleteCurrentSessionResponse) StatusCode ¶
func (r DeleteCurrentSessionResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type DeleteCurrentSessionResponse429Headers ¶
type DeleteCurrentSessionResponse429Headers struct {
RetryAfter *int
}
DeleteCurrentSessionResponse429Headers the declared response headers of an HTTP 429 response for DeleteCurrentSession
type DeleteDestinationParams ¶
type DeleteDestinationParams struct {
// IfMatch Optional ETag; when present and stale, the request gets `412`.
IfMatch *IfMatchOptional `json:"If-Match,omitempty"`
}
DeleteDestinationParams defines parameters for DeleteDestination.
type DeleteDestinationResponse ¶
type DeleteDestinationResponse struct {
Body []byte
HTTPResponse *http.Response
// ApplicationproblemJSON401 the response for an HTTP 401 `application/problem+json` response
ApplicationproblemJSON401 *Unauthorized
// ApplicationproblemJSON403 the response for an HTTP 403 `application/problem+json` response
ApplicationproblemJSON403 *Forbidden
// ApplicationproblemJSON404 the response for an HTTP 404 `application/problem+json` response
ApplicationproblemJSON404 *NotFound
// ApplicationproblemJSON412 the response for an HTTP 412 `application/problem+json` response
ApplicationproblemJSON412 *PreconditionFailed
// ApplicationproblemJSON429 the response for an HTTP 429 `application/problem+json` response
ApplicationproblemJSON429 *TooManyRequests
// Headers429 the parsed response headers for an HTTP 429 response
Headers429 *DeleteDestinationResponse429Headers
}
func ParseDeleteDestinationResponse ¶
func ParseDeleteDestinationResponse(rsp *http.Response) (*DeleteDestinationResponse, error)
ParseDeleteDestinationResponse parses an HTTP response from a DeleteDestinationWithResponse call
func (DeleteDestinationResponse) ContentType ¶
func (r DeleteDestinationResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (DeleteDestinationResponse) GetApplicationproblemJSON401 ¶
func (r DeleteDestinationResponse) GetApplicationproblemJSON401() *Unauthorized
GetApplicationproblemJSON401 returns the response for an HTTP 401 `application/problem+json` response
func (DeleteDestinationResponse) GetApplicationproblemJSON403 ¶
func (r DeleteDestinationResponse) GetApplicationproblemJSON403() *Forbidden
GetApplicationproblemJSON403 returns the response for an HTTP 403 `application/problem+json` response
func (DeleteDestinationResponse) GetApplicationproblemJSON404 ¶
func (r DeleteDestinationResponse) GetApplicationproblemJSON404() *NotFound
GetApplicationproblemJSON404 returns the response for an HTTP 404 `application/problem+json` response
func (DeleteDestinationResponse) GetApplicationproblemJSON412 ¶
func (r DeleteDestinationResponse) GetApplicationproblemJSON412() *PreconditionFailed
GetApplicationproblemJSON412 returns the response for an HTTP 412 `application/problem+json` response
func (DeleteDestinationResponse) GetApplicationproblemJSON429 ¶
func (r DeleteDestinationResponse) GetApplicationproblemJSON429() *TooManyRequests
GetApplicationproblemJSON429 returns the response for an HTTP 429 `application/problem+json` response
func (DeleteDestinationResponse) GetBody ¶
func (r DeleteDestinationResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (DeleteDestinationResponse) Status ¶
func (r DeleteDestinationResponse) Status() string
Status returns HTTPResponse.Status
func (DeleteDestinationResponse) StatusCode ¶
func (r DeleteDestinationResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type DeleteDestinationResponse429Headers ¶
type DeleteDestinationResponse429Headers struct {
RetryAfter *int
}
DeleteDestinationResponse429Headers the declared response headers of an HTTP 429 response for DeleteDestination
type DeleteDestinationSecretParams ¶
type DeleteDestinationSecretParams struct {
// IfMatch Optional ETag; when present and stale, the request gets `412`.
IfMatch *IfMatchOptional `json:"If-Match,omitempty"`
}
DeleteDestinationSecretParams defines parameters for DeleteDestinationSecret.
type DeleteDestinationSecretResponse ¶
type DeleteDestinationSecretResponse struct {
Body []byte
HTTPResponse *http.Response
// ApplicationproblemJSON401 the response for an HTTP 401 `application/problem+json` response
ApplicationproblemJSON401 *Unauthorized
// ApplicationproblemJSON403 the response for an HTTP 403 `application/problem+json` response
ApplicationproblemJSON403 *Forbidden
// ApplicationproblemJSON404 the response for an HTTP 404 `application/problem+json` response
ApplicationproblemJSON404 *NotFound
// ApplicationproblemJSON409 the response for an HTTP 409 `application/problem+json` response
ApplicationproblemJSON409 *Conflict
// ApplicationproblemJSON412 the response for an HTTP 412 `application/problem+json` response
ApplicationproblemJSON412 *PreconditionFailed
// ApplicationproblemJSON429 the response for an HTTP 429 `application/problem+json` response
ApplicationproblemJSON429 *TooManyRequests
// Headers429 the parsed response headers for an HTTP 429 response
Headers429 *DeleteDestinationSecretResponse429Headers
}
func ParseDeleteDestinationSecretResponse ¶
func ParseDeleteDestinationSecretResponse(rsp *http.Response) (*DeleteDestinationSecretResponse, error)
ParseDeleteDestinationSecretResponse parses an HTTP response from a DeleteDestinationSecretWithResponse call
func (DeleteDestinationSecretResponse) ContentType ¶
func (r DeleteDestinationSecretResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (DeleteDestinationSecretResponse) GetApplicationproblemJSON401 ¶
func (r DeleteDestinationSecretResponse) GetApplicationproblemJSON401() *Unauthorized
GetApplicationproblemJSON401 returns the response for an HTTP 401 `application/problem+json` response
func (DeleteDestinationSecretResponse) GetApplicationproblemJSON403 ¶
func (r DeleteDestinationSecretResponse) GetApplicationproblemJSON403() *Forbidden
GetApplicationproblemJSON403 returns the response for an HTTP 403 `application/problem+json` response
func (DeleteDestinationSecretResponse) GetApplicationproblemJSON404 ¶
func (r DeleteDestinationSecretResponse) GetApplicationproblemJSON404() *NotFound
GetApplicationproblemJSON404 returns the response for an HTTP 404 `application/problem+json` response
func (DeleteDestinationSecretResponse) GetApplicationproblemJSON409 ¶
func (r DeleteDestinationSecretResponse) GetApplicationproblemJSON409() *Conflict
GetApplicationproblemJSON409 returns the response for an HTTP 409 `application/problem+json` response
func (DeleteDestinationSecretResponse) GetApplicationproblemJSON412 ¶
func (r DeleteDestinationSecretResponse) GetApplicationproblemJSON412() *PreconditionFailed
GetApplicationproblemJSON412 returns the response for an HTTP 412 `application/problem+json` response
func (DeleteDestinationSecretResponse) GetApplicationproblemJSON429 ¶
func (r DeleteDestinationSecretResponse) GetApplicationproblemJSON429() *TooManyRequests
GetApplicationproblemJSON429 returns the response for an HTTP 429 `application/problem+json` response
func (DeleteDestinationSecretResponse) GetBody ¶
func (r DeleteDestinationSecretResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (DeleteDestinationSecretResponse) Status ¶
func (r DeleteDestinationSecretResponse) Status() string
Status returns HTTPResponse.Status
func (DeleteDestinationSecretResponse) StatusCode ¶
func (r DeleteDestinationSecretResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type DeleteDestinationSecretResponse429Headers ¶
type DeleteDestinationSecretResponse429Headers struct {
RetryAfter *int
}
DeleteDestinationSecretResponse429Headers the declared response headers of an HTTP 429 response for DeleteDestinationSecret
type DeleteIntegrationParams ¶
type DeleteIntegrationParams struct {
// IfMatch Optional ETag; when present and stale, the request gets `412`.
IfMatch *IfMatchOptional `json:"If-Match,omitempty"`
}
DeleteIntegrationParams defines parameters for DeleteIntegration.
type DeleteIntegrationResponse ¶
type DeleteIntegrationResponse struct {
Body []byte
HTTPResponse *http.Response
// ApplicationproblemJSON401 the response for an HTTP 401 `application/problem+json` response
ApplicationproblemJSON401 *Unauthorized
// ApplicationproblemJSON403 the response for an HTTP 403 `application/problem+json` response
ApplicationproblemJSON403 *Forbidden
// ApplicationproblemJSON404 the response for an HTTP 404 `application/problem+json` response
ApplicationproblemJSON404 *NotFound
// ApplicationproblemJSON409 the response for an HTTP 409 `application/problem+json` response
ApplicationproblemJSON409 *Conflict
// ApplicationproblemJSON412 the response for an HTTP 412 `application/problem+json` response
ApplicationproblemJSON412 *PreconditionFailed
// ApplicationproblemJSON429 the response for an HTTP 429 `application/problem+json` response
ApplicationproblemJSON429 *TooManyRequests
// Headers429 the parsed response headers for an HTTP 429 response
Headers429 *DeleteIntegrationResponse429Headers
}
func ParseDeleteIntegrationResponse ¶
func ParseDeleteIntegrationResponse(rsp *http.Response) (*DeleteIntegrationResponse, error)
ParseDeleteIntegrationResponse parses an HTTP response from a DeleteIntegrationWithResponse call
func (DeleteIntegrationResponse) ContentType ¶
func (r DeleteIntegrationResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (DeleteIntegrationResponse) GetApplicationproblemJSON401 ¶
func (r DeleteIntegrationResponse) GetApplicationproblemJSON401() *Unauthorized
GetApplicationproblemJSON401 returns the response for an HTTP 401 `application/problem+json` response
func (DeleteIntegrationResponse) GetApplicationproblemJSON403 ¶
func (r DeleteIntegrationResponse) GetApplicationproblemJSON403() *Forbidden
GetApplicationproblemJSON403 returns the response for an HTTP 403 `application/problem+json` response
func (DeleteIntegrationResponse) GetApplicationproblemJSON404 ¶
func (r DeleteIntegrationResponse) GetApplicationproblemJSON404() *NotFound
GetApplicationproblemJSON404 returns the response for an HTTP 404 `application/problem+json` response
func (DeleteIntegrationResponse) GetApplicationproblemJSON409 ¶
func (r DeleteIntegrationResponse) GetApplicationproblemJSON409() *Conflict
GetApplicationproblemJSON409 returns the response for an HTTP 409 `application/problem+json` response
func (DeleteIntegrationResponse) GetApplicationproblemJSON412 ¶
func (r DeleteIntegrationResponse) GetApplicationproblemJSON412() *PreconditionFailed
GetApplicationproblemJSON412 returns the response for an HTTP 412 `application/problem+json` response
func (DeleteIntegrationResponse) GetApplicationproblemJSON429 ¶
func (r DeleteIntegrationResponse) GetApplicationproblemJSON429() *TooManyRequests
GetApplicationproblemJSON429 returns the response for an HTTP 429 `application/problem+json` response
func (DeleteIntegrationResponse) GetBody ¶
func (r DeleteIntegrationResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (DeleteIntegrationResponse) Status ¶
func (r DeleteIntegrationResponse) Status() string
Status returns HTTPResponse.Status
func (DeleteIntegrationResponse) StatusCode ¶
func (r DeleteIntegrationResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type DeleteIntegrationResponse429Headers ¶
type DeleteIntegrationResponse429Headers struct {
RetryAfter *int
}
DeleteIntegrationResponse429Headers the declared response headers of an HTTP 429 response for DeleteIntegration
type DeleteLinkRuleParams ¶
type DeleteLinkRuleParams struct {
// IfMatch Optional ETag; when present and stale, the request gets `412`.
IfMatch *IfMatchOptional `json:"If-Match,omitempty"`
}
DeleteLinkRuleParams defines parameters for DeleteLinkRule.
type DeleteLinkRuleResponse ¶
type DeleteLinkRuleResponse struct {
Body []byte
HTTPResponse *http.Response
// ApplicationproblemJSON401 the response for an HTTP 401 `application/problem+json` response
ApplicationproblemJSON401 *Unauthorized
// ApplicationproblemJSON403 the response for an HTTP 403 `application/problem+json` response
ApplicationproblemJSON403 *Forbidden
// ApplicationproblemJSON404 the response for an HTTP 404 `application/problem+json` response
ApplicationproblemJSON404 *NotFound
// ApplicationproblemJSON409 the response for an HTTP 409 `application/problem+json` response
ApplicationproblemJSON409 *Conflict
// ApplicationproblemJSON412 the response for an HTTP 412 `application/problem+json` response
ApplicationproblemJSON412 *PreconditionFailed
// ApplicationproblemJSON429 the response for an HTTP 429 `application/problem+json` response
ApplicationproblemJSON429 *TooManyRequests
// Headers429 the parsed response headers for an HTTP 429 response
Headers429 *DeleteLinkRuleResponse429Headers
}
func ParseDeleteLinkRuleResponse ¶
func ParseDeleteLinkRuleResponse(rsp *http.Response) (*DeleteLinkRuleResponse, error)
ParseDeleteLinkRuleResponse parses an HTTP response from a DeleteLinkRuleWithResponse call
func (DeleteLinkRuleResponse) ContentType ¶
func (r DeleteLinkRuleResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (DeleteLinkRuleResponse) GetApplicationproblemJSON401 ¶
func (r DeleteLinkRuleResponse) GetApplicationproblemJSON401() *Unauthorized
GetApplicationproblemJSON401 returns the response for an HTTP 401 `application/problem+json` response
func (DeleteLinkRuleResponse) GetApplicationproblemJSON403 ¶
func (r DeleteLinkRuleResponse) GetApplicationproblemJSON403() *Forbidden
GetApplicationproblemJSON403 returns the response for an HTTP 403 `application/problem+json` response
func (DeleteLinkRuleResponse) GetApplicationproblemJSON404 ¶
func (r DeleteLinkRuleResponse) GetApplicationproblemJSON404() *NotFound
GetApplicationproblemJSON404 returns the response for an HTTP 404 `application/problem+json` response
func (DeleteLinkRuleResponse) GetApplicationproblemJSON409 ¶
func (r DeleteLinkRuleResponse) GetApplicationproblemJSON409() *Conflict
GetApplicationproblemJSON409 returns the response for an HTTP 409 `application/problem+json` response
func (DeleteLinkRuleResponse) GetApplicationproblemJSON412 ¶
func (r DeleteLinkRuleResponse) GetApplicationproblemJSON412() *PreconditionFailed
GetApplicationproblemJSON412 returns the response for an HTTP 412 `application/problem+json` response
func (DeleteLinkRuleResponse) GetApplicationproblemJSON429 ¶
func (r DeleteLinkRuleResponse) GetApplicationproblemJSON429() *TooManyRequests
GetApplicationproblemJSON429 returns the response for an HTTP 429 `application/problem+json` response
func (DeleteLinkRuleResponse) GetBody ¶
func (r DeleteLinkRuleResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (DeleteLinkRuleResponse) Status ¶
func (r DeleteLinkRuleResponse) Status() string
Status returns HTTPResponse.Status
func (DeleteLinkRuleResponse) StatusCode ¶
func (r DeleteLinkRuleResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type DeleteLinkRuleResponse429Headers ¶
type DeleteLinkRuleResponse429Headers struct {
RetryAfter *int
}
DeleteLinkRuleResponse429Headers the declared response headers of an HTTP 429 response for DeleteLinkRule
type DeleteLookupTableParams ¶
type DeleteLookupTableParams struct {
// IfMatch Optional ETag; when present and stale, the request gets `412`.
IfMatch *IfMatchOptional `json:"If-Match,omitempty"`
}
DeleteLookupTableParams defines parameters for DeleteLookupTable.
type DeleteLookupTableResponse ¶
type DeleteLookupTableResponse struct {
Body []byte
HTTPResponse *http.Response
// ApplicationproblemJSON401 the response for an HTTP 401 `application/problem+json` response
ApplicationproblemJSON401 *Unauthorized
// ApplicationproblemJSON403 the response for an HTTP 403 `application/problem+json` response
ApplicationproblemJSON403 *Forbidden
// ApplicationproblemJSON404 the response for an HTTP 404 `application/problem+json` response
ApplicationproblemJSON404 *NotFound
// ApplicationproblemJSON409 the response for an HTTP 409 `application/problem+json` response
ApplicationproblemJSON409 *Conflict
// ApplicationproblemJSON412 the response for an HTTP 412 `application/problem+json` response
ApplicationproblemJSON412 *PreconditionFailed
// ApplicationproblemJSON429 the response for an HTTP 429 `application/problem+json` response
ApplicationproblemJSON429 *TooManyRequests
// Headers429 the parsed response headers for an HTTP 429 response
Headers429 *DeleteLookupTableResponse429Headers
}
func ParseDeleteLookupTableResponse ¶
func ParseDeleteLookupTableResponse(rsp *http.Response) (*DeleteLookupTableResponse, error)
ParseDeleteLookupTableResponse parses an HTTP response from a DeleteLookupTableWithResponse call
func (DeleteLookupTableResponse) ContentType ¶
func (r DeleteLookupTableResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (DeleteLookupTableResponse) GetApplicationproblemJSON401 ¶
func (r DeleteLookupTableResponse) GetApplicationproblemJSON401() *Unauthorized
GetApplicationproblemJSON401 returns the response for an HTTP 401 `application/problem+json` response
func (DeleteLookupTableResponse) GetApplicationproblemJSON403 ¶
func (r DeleteLookupTableResponse) GetApplicationproblemJSON403() *Forbidden
GetApplicationproblemJSON403 returns the response for an HTTP 403 `application/problem+json` response
func (DeleteLookupTableResponse) GetApplicationproblemJSON404 ¶
func (r DeleteLookupTableResponse) GetApplicationproblemJSON404() *NotFound
GetApplicationproblemJSON404 returns the response for an HTTP 404 `application/problem+json` response
func (DeleteLookupTableResponse) GetApplicationproblemJSON409 ¶
func (r DeleteLookupTableResponse) GetApplicationproblemJSON409() *Conflict
GetApplicationproblemJSON409 returns the response for an HTTP 409 `application/problem+json` response
func (DeleteLookupTableResponse) GetApplicationproblemJSON412 ¶
func (r DeleteLookupTableResponse) GetApplicationproblemJSON412() *PreconditionFailed
GetApplicationproblemJSON412 returns the response for an HTTP 412 `application/problem+json` response
func (DeleteLookupTableResponse) GetApplicationproblemJSON429 ¶
func (r DeleteLookupTableResponse) GetApplicationproblemJSON429() *TooManyRequests
GetApplicationproblemJSON429 returns the response for an HTTP 429 `application/problem+json` response
func (DeleteLookupTableResponse) GetBody ¶
func (r DeleteLookupTableResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (DeleteLookupTableResponse) Status ¶
func (r DeleteLookupTableResponse) Status() string
Status returns HTTPResponse.Status
func (DeleteLookupTableResponse) StatusCode ¶
func (r DeleteLookupTableResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type DeleteLookupTableResponse429Headers ¶
type DeleteLookupTableResponse429Headers struct {
RetryAfter *int
}
DeleteLookupTableResponse429Headers the declared response headers of an HTTP 429 response for DeleteLookupTable
type DeleteMyAccountLinkResponse ¶
type DeleteMyAccountLinkResponse struct {
Body []byte
HTTPResponse *http.Response
// ApplicationproblemJSON401 the response for an HTTP 401 `application/problem+json` response
ApplicationproblemJSON401 *Unauthorized
// ApplicationproblemJSON403 the response for an HTTP 403 `application/problem+json` response
ApplicationproblemJSON403 *Forbidden
// ApplicationproblemJSON404 the response for an HTTP 404 `application/problem+json` response
ApplicationproblemJSON404 *NotFound
// ApplicationproblemJSON429 the response for an HTTP 429 `application/problem+json` response
ApplicationproblemJSON429 *TooManyRequests
// Headers429 the parsed response headers for an HTTP 429 response
Headers429 *DeleteMyAccountLinkResponse429Headers
}
func ParseDeleteMyAccountLinkResponse ¶
func ParseDeleteMyAccountLinkResponse(rsp *http.Response) (*DeleteMyAccountLinkResponse, error)
ParseDeleteMyAccountLinkResponse parses an HTTP response from a DeleteMyAccountLinkWithResponse call
func (DeleteMyAccountLinkResponse) ContentType ¶
func (r DeleteMyAccountLinkResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (DeleteMyAccountLinkResponse) GetApplicationproblemJSON401 ¶
func (r DeleteMyAccountLinkResponse) GetApplicationproblemJSON401() *Unauthorized
GetApplicationproblemJSON401 returns the response for an HTTP 401 `application/problem+json` response
func (DeleteMyAccountLinkResponse) GetApplicationproblemJSON403 ¶
func (r DeleteMyAccountLinkResponse) GetApplicationproblemJSON403() *Forbidden
GetApplicationproblemJSON403 returns the response for an HTTP 403 `application/problem+json` response
func (DeleteMyAccountLinkResponse) GetApplicationproblemJSON404 ¶
func (r DeleteMyAccountLinkResponse) GetApplicationproblemJSON404() *NotFound
GetApplicationproblemJSON404 returns the response for an HTTP 404 `application/problem+json` response
func (DeleteMyAccountLinkResponse) GetApplicationproblemJSON429 ¶
func (r DeleteMyAccountLinkResponse) GetApplicationproblemJSON429() *TooManyRequests
GetApplicationproblemJSON429 returns the response for an HTTP 429 `application/problem+json` response
func (DeleteMyAccountLinkResponse) GetBody ¶
func (r DeleteMyAccountLinkResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (DeleteMyAccountLinkResponse) Status ¶
func (r DeleteMyAccountLinkResponse) Status() string
Status returns HTTPResponse.Status
func (DeleteMyAccountLinkResponse) StatusCode ¶
func (r DeleteMyAccountLinkResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type DeleteMyAccountLinkResponse429Headers ¶
type DeleteMyAccountLinkResponse429Headers struct {
RetryAfter *int
}
DeleteMyAccountLinkResponse429Headers the declared response headers of an HTTP 429 response for DeleteMyAccountLink
type DeleteMySessionsResponse ¶
type DeleteMySessionsResponse struct {
Body []byte
HTTPResponse *http.Response
// ApplicationproblemJSON401 the response for an HTTP 401 `application/problem+json` response
ApplicationproblemJSON401 *Unauthorized
// ApplicationproblemJSON403 the response for an HTTP 403 `application/problem+json` response
ApplicationproblemJSON403 *Forbidden
// ApplicationproblemJSON429 the response for an HTTP 429 `application/problem+json` response
ApplicationproblemJSON429 *TooManyRequests
// Headers429 the parsed response headers for an HTTP 429 response
Headers429 *DeleteMySessionsResponse429Headers
}
func ParseDeleteMySessionsResponse ¶
func ParseDeleteMySessionsResponse(rsp *http.Response) (*DeleteMySessionsResponse, error)
ParseDeleteMySessionsResponse parses an HTTP response from a DeleteMySessionsWithResponse call
func (DeleteMySessionsResponse) ContentType ¶
func (r DeleteMySessionsResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (DeleteMySessionsResponse) GetApplicationproblemJSON401 ¶
func (r DeleteMySessionsResponse) GetApplicationproblemJSON401() *Unauthorized
GetApplicationproblemJSON401 returns the response for an HTTP 401 `application/problem+json` response
func (DeleteMySessionsResponse) GetApplicationproblemJSON403 ¶
func (r DeleteMySessionsResponse) GetApplicationproblemJSON403() *Forbidden
GetApplicationproblemJSON403 returns the response for an HTTP 403 `application/problem+json` response
func (DeleteMySessionsResponse) GetApplicationproblemJSON429 ¶
func (r DeleteMySessionsResponse) GetApplicationproblemJSON429() *TooManyRequests
GetApplicationproblemJSON429 returns the response for an HTTP 429 `application/problem+json` response
func (DeleteMySessionsResponse) GetBody ¶
func (r DeleteMySessionsResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (DeleteMySessionsResponse) Status ¶
func (r DeleteMySessionsResponse) Status() string
Status returns HTTPResponse.Status
func (DeleteMySessionsResponse) StatusCode ¶
func (r DeleteMySessionsResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type DeleteMySessionsResponse429Headers ¶
type DeleteMySessionsResponse429Headers struct {
RetryAfter *int
}
DeleteMySessionsResponse429Headers the declared response headers of an HTTP 429 response for DeleteMySessions
type DeleteRouteParams ¶
type DeleteRouteParams struct {
// IfMatch Optional ETag; when present and stale, the request gets `412`.
IfMatch *IfMatchOptional `json:"If-Match,omitempty"`
}
DeleteRouteParams defines parameters for DeleteRoute.
type DeleteRouteResponse ¶
type DeleteRouteResponse struct {
Body []byte
HTTPResponse *http.Response
// ApplicationproblemJSON401 the response for an HTTP 401 `application/problem+json` response
ApplicationproblemJSON401 *Unauthorized
// ApplicationproblemJSON403 the response for an HTTP 403 `application/problem+json` response
ApplicationproblemJSON403 *Forbidden
// ApplicationproblemJSON404 the response for an HTTP 404 `application/problem+json` response
ApplicationproblemJSON404 *NotFound
// ApplicationproblemJSON409 the response for an HTTP 409 `application/problem+json` response
ApplicationproblemJSON409 *Conflict
// ApplicationproblemJSON412 the response for an HTTP 412 `application/problem+json` response
ApplicationproblemJSON412 *PreconditionFailed
// ApplicationproblemJSON429 the response for an HTTP 429 `application/problem+json` response
ApplicationproblemJSON429 *TooManyRequests
// Headers429 the parsed response headers for an HTTP 429 response
Headers429 *DeleteRouteResponse429Headers
}
func ParseDeleteRouteResponse ¶
func ParseDeleteRouteResponse(rsp *http.Response) (*DeleteRouteResponse, error)
ParseDeleteRouteResponse parses an HTTP response from a DeleteRouteWithResponse call
func (DeleteRouteResponse) ContentType ¶
func (r DeleteRouteResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (DeleteRouteResponse) GetApplicationproblemJSON401 ¶
func (r DeleteRouteResponse) GetApplicationproblemJSON401() *Unauthorized
GetApplicationproblemJSON401 returns the response for an HTTP 401 `application/problem+json` response
func (DeleteRouteResponse) GetApplicationproblemJSON403 ¶
func (r DeleteRouteResponse) GetApplicationproblemJSON403() *Forbidden
GetApplicationproblemJSON403 returns the response for an HTTP 403 `application/problem+json` response
func (DeleteRouteResponse) GetApplicationproblemJSON404 ¶
func (r DeleteRouteResponse) GetApplicationproblemJSON404() *NotFound
GetApplicationproblemJSON404 returns the response for an HTTP 404 `application/problem+json` response
func (DeleteRouteResponse) GetApplicationproblemJSON409 ¶
func (r DeleteRouteResponse) GetApplicationproblemJSON409() *Conflict
GetApplicationproblemJSON409 returns the response for an HTTP 409 `application/problem+json` response
func (DeleteRouteResponse) GetApplicationproblemJSON412 ¶
func (r DeleteRouteResponse) GetApplicationproblemJSON412() *PreconditionFailed
GetApplicationproblemJSON412 returns the response for an HTTP 412 `application/problem+json` response
func (DeleteRouteResponse) GetApplicationproblemJSON429 ¶
func (r DeleteRouteResponse) GetApplicationproblemJSON429() *TooManyRequests
GetApplicationproblemJSON429 returns the response for an HTTP 429 `application/problem+json` response
func (DeleteRouteResponse) GetBody ¶
func (r DeleteRouteResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (DeleteRouteResponse) Status ¶
func (r DeleteRouteResponse) Status() string
Status returns HTTPResponse.Status
func (DeleteRouteResponse) StatusCode ¶
func (r DeleteRouteResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type DeleteRouteResponse429Headers ¶
type DeleteRouteResponse429Headers struct {
RetryAfter *int
}
DeleteRouteResponse429Headers the declared response headers of an HTTP 429 response for DeleteRoute
type DeleteServiceAccountParams ¶
type DeleteServiceAccountParams struct {
// IfMatch Optional ETag; when present and stale, the request gets `412`.
IfMatch *IfMatchOptional `json:"If-Match,omitempty"`
}
DeleteServiceAccountParams defines parameters for DeleteServiceAccount.
type DeleteServiceAccountResponse ¶
type DeleteServiceAccountResponse struct {
Body []byte
HTTPResponse *http.Response
// ApplicationproblemJSON401 the response for an HTTP 401 `application/problem+json` response
ApplicationproblemJSON401 *Unauthorized
// ApplicationproblemJSON403 the response for an HTTP 403 `application/problem+json` response
ApplicationproblemJSON403 *Forbidden
// ApplicationproblemJSON404 the response for an HTTP 404 `application/problem+json` response
ApplicationproblemJSON404 *NotFound
// ApplicationproblemJSON412 the response for an HTTP 412 `application/problem+json` response
ApplicationproblemJSON412 *PreconditionFailed
// ApplicationproblemJSON429 the response for an HTTP 429 `application/problem+json` response
ApplicationproblemJSON429 *TooManyRequests
// Headers429 the parsed response headers for an HTTP 429 response
Headers429 *DeleteServiceAccountResponse429Headers
}
func ParseDeleteServiceAccountResponse ¶
func ParseDeleteServiceAccountResponse(rsp *http.Response) (*DeleteServiceAccountResponse, error)
ParseDeleteServiceAccountResponse parses an HTTP response from a DeleteServiceAccountWithResponse call
func (DeleteServiceAccountResponse) ContentType ¶
func (r DeleteServiceAccountResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (DeleteServiceAccountResponse) GetApplicationproblemJSON401 ¶
func (r DeleteServiceAccountResponse) GetApplicationproblemJSON401() *Unauthorized
GetApplicationproblemJSON401 returns the response for an HTTP 401 `application/problem+json` response
func (DeleteServiceAccountResponse) GetApplicationproblemJSON403 ¶
func (r DeleteServiceAccountResponse) GetApplicationproblemJSON403() *Forbidden
GetApplicationproblemJSON403 returns the response for an HTTP 403 `application/problem+json` response
func (DeleteServiceAccountResponse) GetApplicationproblemJSON404 ¶
func (r DeleteServiceAccountResponse) GetApplicationproblemJSON404() *NotFound
GetApplicationproblemJSON404 returns the response for an HTTP 404 `application/problem+json` response
func (DeleteServiceAccountResponse) GetApplicationproblemJSON412 ¶
func (r DeleteServiceAccountResponse) GetApplicationproblemJSON412() *PreconditionFailed
GetApplicationproblemJSON412 returns the response for an HTTP 412 `application/problem+json` response
func (DeleteServiceAccountResponse) GetApplicationproblemJSON429 ¶
func (r DeleteServiceAccountResponse) GetApplicationproblemJSON429() *TooManyRequests
GetApplicationproblemJSON429 returns the response for an HTTP 429 `application/problem+json` response
func (DeleteServiceAccountResponse) GetBody ¶
func (r DeleteServiceAccountResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (DeleteServiceAccountResponse) Status ¶
func (r DeleteServiceAccountResponse) Status() string
Status returns HTTPResponse.Status
func (DeleteServiceAccountResponse) StatusCode ¶
func (r DeleteServiceAccountResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type DeleteServiceAccountResponse429Headers ¶
type DeleteServiceAccountResponse429Headers struct {
RetryAfter *int
}
DeleteServiceAccountResponse429Headers the declared response headers of an HTTP 429 response for DeleteServiceAccount
type DeleteUserAccountLinkResponse ¶
type DeleteUserAccountLinkResponse struct {
Body []byte
HTTPResponse *http.Response
// ApplicationproblemJSON401 the response for an HTTP 401 `application/problem+json` response
ApplicationproblemJSON401 *Unauthorized
// ApplicationproblemJSON403 the response for an HTTP 403 `application/problem+json` response
ApplicationproblemJSON403 *Forbidden
// ApplicationproblemJSON404 the response for an HTTP 404 `application/problem+json` response
ApplicationproblemJSON404 *NotFound
// ApplicationproblemJSON429 the response for an HTTP 429 `application/problem+json` response
ApplicationproblemJSON429 *TooManyRequests
// Headers429 the parsed response headers for an HTTP 429 response
Headers429 *DeleteUserAccountLinkResponse429Headers
}
func ParseDeleteUserAccountLinkResponse ¶
func ParseDeleteUserAccountLinkResponse(rsp *http.Response) (*DeleteUserAccountLinkResponse, error)
ParseDeleteUserAccountLinkResponse parses an HTTP response from a DeleteUserAccountLinkWithResponse call
func (DeleteUserAccountLinkResponse) ContentType ¶
func (r DeleteUserAccountLinkResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (DeleteUserAccountLinkResponse) GetApplicationproblemJSON401 ¶
func (r DeleteUserAccountLinkResponse) GetApplicationproblemJSON401() *Unauthorized
GetApplicationproblemJSON401 returns the response for an HTTP 401 `application/problem+json` response
func (DeleteUserAccountLinkResponse) GetApplicationproblemJSON403 ¶
func (r DeleteUserAccountLinkResponse) GetApplicationproblemJSON403() *Forbidden
GetApplicationproblemJSON403 returns the response for an HTTP 403 `application/problem+json` response
func (DeleteUserAccountLinkResponse) GetApplicationproblemJSON404 ¶
func (r DeleteUserAccountLinkResponse) GetApplicationproblemJSON404() *NotFound
GetApplicationproblemJSON404 returns the response for an HTTP 404 `application/problem+json` response
func (DeleteUserAccountLinkResponse) GetApplicationproblemJSON429 ¶
func (r DeleteUserAccountLinkResponse) GetApplicationproblemJSON429() *TooManyRequests
GetApplicationproblemJSON429 returns the response for an HTTP 429 `application/problem+json` response
func (DeleteUserAccountLinkResponse) GetBody ¶
func (r DeleteUserAccountLinkResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (DeleteUserAccountLinkResponse) Status ¶
func (r DeleteUserAccountLinkResponse) Status() string
Status returns HTTPResponse.Status
func (DeleteUserAccountLinkResponse) StatusCode ¶
func (r DeleteUserAccountLinkResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type DeleteUserAccountLinkResponse429Headers ¶
type DeleteUserAccountLinkResponse429Headers struct {
RetryAfter *int
}
DeleteUserAccountLinkResponse429Headers the declared response headers of an HTTP 429 response for DeleteUserAccountLink
type DeleteUserParams ¶
type DeleteUserParams struct {
// IfMatch Optional ETag; when present and stale, the request gets `412`.
IfMatch *IfMatchOptional `json:"If-Match,omitempty"`
}
DeleteUserParams defines parameters for DeleteUser.
type DeleteUserResponse ¶
type DeleteUserResponse struct {
Body []byte
HTTPResponse *http.Response
// ApplicationproblemJSON401 the response for an HTTP 401 `application/problem+json` response
ApplicationproblemJSON401 *Unauthorized
// ApplicationproblemJSON403 the response for an HTTP 403 `application/problem+json` response
ApplicationproblemJSON403 *Forbidden
// ApplicationproblemJSON404 the response for an HTTP 404 `application/problem+json` response
ApplicationproblemJSON404 *NotFound
// ApplicationproblemJSON409 the response for an HTTP 409 `application/problem+json` response
ApplicationproblemJSON409 *Conflict
// ApplicationproblemJSON412 the response for an HTTP 412 `application/problem+json` response
ApplicationproblemJSON412 *PreconditionFailed
// ApplicationproblemJSON429 the response for an HTTP 429 `application/problem+json` response
ApplicationproblemJSON429 *TooManyRequests
// Headers429 the parsed response headers for an HTTP 429 response
Headers429 *DeleteUserResponse429Headers
}
func ParseDeleteUserResponse ¶
func ParseDeleteUserResponse(rsp *http.Response) (*DeleteUserResponse, error)
ParseDeleteUserResponse parses an HTTP response from a DeleteUserWithResponse call
func (DeleteUserResponse) ContentType ¶
func (r DeleteUserResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (DeleteUserResponse) GetApplicationproblemJSON401 ¶
func (r DeleteUserResponse) GetApplicationproblemJSON401() *Unauthorized
GetApplicationproblemJSON401 returns the response for an HTTP 401 `application/problem+json` response
func (DeleteUserResponse) GetApplicationproblemJSON403 ¶
func (r DeleteUserResponse) GetApplicationproblemJSON403() *Forbidden
GetApplicationproblemJSON403 returns the response for an HTTP 403 `application/problem+json` response
func (DeleteUserResponse) GetApplicationproblemJSON404 ¶
func (r DeleteUserResponse) GetApplicationproblemJSON404() *NotFound
GetApplicationproblemJSON404 returns the response for an HTTP 404 `application/problem+json` response
func (DeleteUserResponse) GetApplicationproblemJSON409 ¶
func (r DeleteUserResponse) GetApplicationproblemJSON409() *Conflict
GetApplicationproblemJSON409 returns the response for an HTTP 409 `application/problem+json` response
func (DeleteUserResponse) GetApplicationproblemJSON412 ¶
func (r DeleteUserResponse) GetApplicationproblemJSON412() *PreconditionFailed
GetApplicationproblemJSON412 returns the response for an HTTP 412 `application/problem+json` response
func (DeleteUserResponse) GetApplicationproblemJSON429 ¶
func (r DeleteUserResponse) GetApplicationproblemJSON429() *TooManyRequests
GetApplicationproblemJSON429 returns the response for an HTTP 429 `application/problem+json` response
func (DeleteUserResponse) GetBody ¶
func (r DeleteUserResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (DeleteUserResponse) Status ¶
func (r DeleteUserResponse) Status() string
Status returns HTTPResponse.Status
func (DeleteUserResponse) StatusCode ¶
func (r DeleteUserResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type DeleteUserResponse429Headers ¶
type DeleteUserResponse429Headers struct {
RetryAfter *int
}
DeleteUserResponse429Headers the declared response headers of an HTTP 429 response for DeleteUser
type DeliverAlertGroupEventJSONRequestBody ¶
type DeliverAlertGroupEventJSONRequestBody = OutgoingWebhookEvent
DeliverAlertGroupEventJSONRequestBody defines body for DeliverAlertGroupEvent for application/json ContentType.
type DeliverAlertGroupEventParams ¶
type DeliverAlertGroupEventParams struct {
// WebhookId Id of this event, kept across retries.
WebhookId string `json:"webhook-id"`
// WebhookTimestamp Unix time in seconds when the request was signed.
WebhookTimestamp string `json:"webhook-timestamp"`
// WebhookSignature One or more space-separated `v1,<base64>` signatures.
WebhookSignature string `json:"webhook-signature"`
}
DeliverAlertGroupEventParams defines parameters for DeliverAlertGroupEvent.
type DeliveryErrorClass ¶
type DeliveryErrorClass string
DeliveryErrorClass How a delivery attempt ended. `limited`: no limiter token was free within `delivery.interactive_budget`, so nothing was sent (a test only; the attempt did not reach the remote side).
const ( DeliveryErrorClassBlocked DeliveryErrorClass = "blocked" DeliveryErrorClassFatal DeliveryErrorClass = "fatal" DeliveryErrorClassLimited DeliveryErrorClass = "limited" DeliveryErrorClassNone DeliveryErrorClass = "none" DeliveryErrorClassRetryAfter DeliveryErrorClass = "retry_after" DeliveryErrorClassTemplateError DeliveryErrorClass = "template_error" DeliveryErrorClassTransient DeliveryErrorClass = "transient" DeliveryErrorClassUnknown DeliveryErrorClass = "unknown" )
Defines values for DeliveryErrorClass.
func (DeliveryErrorClass) Valid ¶
func (e DeliveryErrorClass) Valid() bool
Valid indicates whether the value is a known member of the DeliveryErrorClass enum.
type DeliveryEventKind ¶
type DeliveryEventKind string
DeliveryEventKind Delivery events are not lifecycle events and reach neither messengers nor outgoing webhook events.
const ( DeliveryEventKindDeletedInMessenger DeliveryEventKind = "deleted_in_messenger" DeliveryEventKindDeliveredLate DeliveryEventKind = "delivered_late" DeliveryEventKindDestinationBroken DeliveryEventKind = "destination_broken" DeliveryEventKindDestinationRecovered DeliveryEventKind = "destination_recovered" DeliveryEventKindFinalEdit DeliveryEventKind = "final_edit" DeliveryEventKindMarkupRejected DeliveryEventKind = "markup_rejected" DeliveryEventKindNotDelivered DeliveryEventKind = "not_delivered" DeliveryEventKindPossibleDuplicate DeliveryEventKind = "possible_duplicate" DeliveryEventKindPublication DeliveryEventKind = "publication" DeliveryEventKindRepublished DeliveryEventKind = "republished" DeliveryEventKindRepublishedPastEditWindow DeliveryEventKind = "republished_past_edit_window" DeliveryEventKindStormSummary DeliveryEventKind = "storm_summary" DeliveryEventKindThreadNotAttached DeliveryEventKind = "thread_not_attached" )
Defines values for DeliveryEventKind.
func (DeliveryEventKind) Valid ¶
func (e DeliveryEventKind) Valid() bool
Valid indicates whether the value is a known member of the DeliveryEventKind enum.
type DeliveryState ¶
type DeliveryState string
DeliveryState `waiting_for_broken_destination` — derived, never stored: a `pending` delivery whose Destination is Broken; `withheld` — never posted to this Destination: the Alert Group resolved while a Storm summary stood for it or while the Destination was Broken; `retired` — no longer updated there after its final edit, because the Destination left the Route or was deleted.
const ( DeliveryStateDeletedInMessenger DeliveryState = "deleted_in_messenger" DeliveryStateDelivered DeliveryState = "delivered" DeliveryStateNotDelivered DeliveryState = "not_delivered" DeliveryStatePending DeliveryState = "pending" DeliveryStateRetired DeliveryState = "retired" DeliveryStateWaitingForBrokenDestination DeliveryState = "waiting_for_broken_destination" DeliveryStateWithheld DeliveryState = "withheld" )
Defines values for DeliveryState.
func (DeliveryState) Valid ¶
func (e DeliveryState) Valid() bool
Valid indicates whether the value is a known member of the DeliveryState enum.
type Destination ¶
type Destination struct {
// contains filtered or unexported fields
}
Destination A Destination; `type` selects the variant.
func (Destination) AsBridgeDestination ¶
func (t Destination) AsBridgeDestination() (BridgeDestination, error)
AsBridgeDestination returns the union data inside the Destination as a BridgeDestination
func (Destination) AsMattermostDestination ¶
func (t Destination) AsMattermostDestination() (MattermostDestination, error)
AsMattermostDestination returns the union data inside the Destination as a MattermostDestination
func (Destination) AsSlackDestination ¶
func (t Destination) AsSlackDestination() (SlackDestination, error)
AsSlackDestination returns the union data inside the Destination as a SlackDestination
func (Destination) AsTelegramDestination ¶
func (t Destination) AsTelegramDestination() (TelegramDestination, error)
AsTelegramDestination returns the union data inside the Destination as a TelegramDestination
func (Destination) AsWebhookDestination ¶
func (t Destination) AsWebhookDestination() (WebhookDestination, error)
AsWebhookDestination returns the union data inside the Destination as a WebhookDestination
func (Destination) Discriminator ¶
func (t Destination) Discriminator() (string, error)
func (*Destination) FromBridgeDestination ¶
func (t *Destination) FromBridgeDestination(v BridgeDestination) error
FromBridgeDestination overwrites any union data inside the Destination as the provided BridgeDestination
func (*Destination) FromMattermostDestination ¶
func (t *Destination) FromMattermostDestination(v MattermostDestination) error
FromMattermostDestination overwrites any union data inside the Destination as the provided MattermostDestination
func (*Destination) FromSlackDestination ¶
func (t *Destination) FromSlackDestination(v SlackDestination) error
FromSlackDestination overwrites any union data inside the Destination as the provided SlackDestination
func (*Destination) FromTelegramDestination ¶
func (t *Destination) FromTelegramDestination(v TelegramDestination) error
FromTelegramDestination overwrites any union data inside the Destination as the provided TelegramDestination
func (*Destination) FromWebhookDestination ¶
func (t *Destination) FromWebhookDestination(v WebhookDestination) error
FromWebhookDestination overwrites any union data inside the Destination as the provided WebhookDestination
func (Destination) MarshalJSON ¶
func (t Destination) MarshalJSON() ([]byte, error)
func (*Destination) MergeBridgeDestination ¶
func (t *Destination) MergeBridgeDestination(v BridgeDestination) error
MergeBridgeDestination performs a merge with any union data inside the Destination, using the provided BridgeDestination
func (*Destination) MergeMattermostDestination ¶
func (t *Destination) MergeMattermostDestination(v MattermostDestination) error
MergeMattermostDestination performs a merge with any union data inside the Destination, using the provided MattermostDestination
func (*Destination) MergeSlackDestination ¶
func (t *Destination) MergeSlackDestination(v SlackDestination) error
MergeSlackDestination performs a merge with any union data inside the Destination, using the provided SlackDestination
func (*Destination) MergeTelegramDestination ¶
func (t *Destination) MergeTelegramDestination(v TelegramDestination) error
MergeTelegramDestination performs a merge with any union data inside the Destination, using the provided TelegramDestination
func (*Destination) MergeWebhookDestination ¶
func (t *Destination) MergeWebhookDestination(v WebhookDestination) error
MergeWebhookDestination performs a merge with any union data inside the Destination, using the provided WebhookDestination
func (*Destination) UnmarshalJSON ¶
func (t *Destination) UnmarshalJSON(b []byte) error
func (Destination) ValueByDiscriminator ¶
func (t Destination) ValueByDiscriminator() (interface{}, error)
type DestinationCheckItem ¶
type DestinationCheckItem struct {
// Code Why a check of the Destination check failed, as a stable code that clients translate, with `message` as its detail in English; null for a check that passed. `token_invalid` — the messenger refused the bot token (`token`, Telegram `channel_exists`, Bridge `channel`); Mattermost `bot_in_channel`: `bot_not_in_channel`, `channel_in_other_team` — the channel is not in the Destination's team, `channel_archived`; Telegram `channel_exists`: `channel_not_found` — the channel was not found or the bot cannot see it, `not_a_channel` — the chat is not a channel; `discussion_group`: `comments_disabled` — the channel has no linked discussion group, so comments are not enabled, `changed_since_saved` — the channel or its discussion group changed since the Destination was saved, and a save takes the new one; `bot_rights_channel`: `bot_not_channel_admin`, `bot_may_not_post`, `bot_may_not_edit`; `bot_rights_group`: `bot_not_group_admin`, whose `message` names the group; Bridge `channel`: `channel_forbidden` — the bridge answered `forbidden`: the channel does not exist or the bot cannot use it, with the bridge's `detail` as `message`, and `request_failed` for any other error class of the bridge, whose `message` names the class; Slack `channel`: `token_invalid` — Slack refused the bot token, `missing_scope` — the bot token lacks a scope `conversations.info` needs, which `missing_scopes` lists, `channel_not_found` — no such channel, a deleted one, or a private channel the bot is not in, `channel_archived`, `bot_not_in_channel` — `message` says "Invite the bot to the channel: /invite @{bot}", and `request_failed` for any other error of Slack's, which `message` names; any check: `dns_failed`, `connect_failed`, `tls_failed`, `timeout`, `proxy_refused`, `blocked` and `request_failed`, as in `NullableConnectionCheckCode`.
Code nullable.Nullable[NullableDestinationCheckCode] `json:"code,omitempty"`
// Message Why the check failed, in English; untrusted text where it comes from the messenger. Clients translate `code` and show this text as its detail where it says more than the code's text.
Message nullable.Nullable[string] `json:"message,omitempty"`
// MissingScopes Set with the code `missing_scope` (Slack `channel`), omitted otherwise — the scopes Slack named as needed (`needed` of its answer), which clients name in their own words; `message` names them in English.
MissingScopes *[]string `json:"missing_scopes,omitempty"`
// Name One step of the check. Telegram: `channel_exists`; `discussion_group` fails when the channel has no linked discussion group, that is, comments are not enabled for the channel (the message says to enable them); `bot_rights_channel`; `bot_rights_group` fails when the bot is not an admin of the discussion group (the message says to make the bot an admin there). Bridge: `channel`, the bridge's `checkChannel` — whether the bot can post, edit and reply in the channel. Slack: `channel`, `conversations.info` — whether the channel exists, is not archived and has the bot as a member.
Name DestinationCheckItemName `json:"name"`
Ok bool `json:"ok"`
}
DestinationCheckItem defines model for DestinationCheckItem.
type DestinationCheckItemName ¶
type DestinationCheckItemName string
DestinationCheckItemName One step of the check. Telegram: `channel_exists`; `discussion_group` fails when the channel has no linked discussion group, that is, comments are not enabled for the channel (the message says to enable them); `bot_rights_channel`; `bot_rights_group` fails when the bot is not an admin of the discussion group (the message says to make the bot an admin there). Bridge: `channel`, the bridge's `checkChannel` — whether the bot can post, edit and reply in the channel. Slack: `channel`, `conversations.info` — whether the channel exists, is not archived and has the bot as a member.
const ( DestinationCheckItemNameBotInChannel DestinationCheckItemName = "bot_in_channel" DestinationCheckItemNameBotRightsChannel DestinationCheckItemName = "bot_rights_channel" DestinationCheckItemNameBotRightsGroup DestinationCheckItemName = "bot_rights_group" DestinationCheckItemNameChannel DestinationCheckItemName = "channel" DestinationCheckItemNameChannelExists DestinationCheckItemName = "channel_exists" DestinationCheckItemNameDiscussionGroup DestinationCheckItemName = "discussion_group" DestinationCheckItemNameToken DestinationCheckItemName = "token" )
Defines values for DestinationCheckItemName.
func (DestinationCheckItemName) Valid ¶
func (e DestinationCheckItemName) Valid() bool
Valid indicates whether the value is a known member of the DestinationCheckItemName enum.
type DestinationCheckResult ¶
type DestinationCheckResult struct {
Checks []DestinationCheckItem `json:"checks"`
Health DestinationHealth `json:"health"`
Ok bool `json:"ok"`
// RequestLogRun The check run of the requests this check made (`CR…`); `listRequestLog` with `run` and the Destination lists them.
RequestLogRun PublicId `json:"request_log_run"`
}
DestinationCheckResult defines model for DestinationCheckResult.
type DestinationCreated ¶
type DestinationCreated struct {
// Destination A Destination; `type` selects the variant.
Destination Destination `json:"destination"`
// SigningSecret The Signing secret of a new outgoing webhook Destination. Shown once; null for the other types.
SigningSecret nullable.Nullable[string] `json:"signing_secret"`
}
DestinationCreated defines model for DestinationCreated.
type DestinationHealth ¶
type DestinationHealth struct {
// Reason The error, or "unavailable after repeated failures: {last error}". Untrusted where it comes from the remote side. Secrets, the Signing secret and tokens are masked.
Reason nullable.Nullable[string] `json:"reason,omitempty"`
Since nullable.Nullable[time.Time] `json:"since,omitempty"`
State HealthState `json:"state"`
}
DestinationHealth defines model for DestinationHealth.
type DestinationId ¶
type DestinationId = PublicId
DestinationId Opaque public identifier (`public_id`): a type prefix of one or two letters followed by 12 random characters of Crockford base32 (`0`–`9` and `A`–`Z` without `I`, `L`, `O` and `U`; 60 bits), such as `AGK7M3QX9P2RTA` for an Alert Group. Prefixes use the same letters and differ per type: `AG` Alert Group, `AE` Audit log entry, `AK` Account link, `AR` Account link request, `CN` Connection, `CR` check run, `DE` delivery event, `DS` Destination, `KR` Link rule, `NE` Note, `NK` Integration token, `NT` Integration, `PT` Personal access token, `RG` Organization, `RQ` record of the Request log, `RT` Route, `SA` Service account, `SN` session, `SR` User, `SS` Stored Snapshot, `ST` Service account token, `TB` Lookup table, `TE` Timeline entry. Responses always carry the canonical upper-case form. Input is case-insensitive and normalized before lookup — `O` reads as `0`, `I` and `L` as `1` — so the pattern also admits lower case and those letters. People refer to Alert Groups by `#N`, never by `public_id`.
type DestinationInput ¶
type DestinationInput struct {
// contains filtered or unexported fields
}
DestinationInput A Destination as written; `type` selects the variant and cannot change on update. Routes are attached through the Route's `destination_ids`.
func (DestinationInput) AsBridgeDestinationInput ¶
func (t DestinationInput) AsBridgeDestinationInput() (BridgeDestinationInput, error)
AsBridgeDestinationInput returns the union data inside the DestinationInput as a BridgeDestinationInput
func (DestinationInput) AsMattermostDestinationInput ¶
func (t DestinationInput) AsMattermostDestinationInput() (MattermostDestinationInput, error)
AsMattermostDestinationInput returns the union data inside the DestinationInput as a MattermostDestinationInput
func (DestinationInput) AsSlackDestinationInput ¶
func (t DestinationInput) AsSlackDestinationInput() (SlackDestinationInput, error)
AsSlackDestinationInput returns the union data inside the DestinationInput as a SlackDestinationInput
func (DestinationInput) AsTelegramDestinationInput ¶
func (t DestinationInput) AsTelegramDestinationInput() (TelegramDestinationInput, error)
AsTelegramDestinationInput returns the union data inside the DestinationInput as a TelegramDestinationInput
func (DestinationInput) AsWebhookDestinationInput ¶
func (t DestinationInput) AsWebhookDestinationInput() (WebhookDestinationInput, error)
AsWebhookDestinationInput returns the union data inside the DestinationInput as a WebhookDestinationInput
func (DestinationInput) Discriminator ¶
func (t DestinationInput) Discriminator() (string, error)
func (*DestinationInput) FromBridgeDestinationInput ¶
func (t *DestinationInput) FromBridgeDestinationInput(v BridgeDestinationInput) error
FromBridgeDestinationInput overwrites any union data inside the DestinationInput as the provided BridgeDestinationInput
func (*DestinationInput) FromMattermostDestinationInput ¶
func (t *DestinationInput) FromMattermostDestinationInput(v MattermostDestinationInput) error
FromMattermostDestinationInput overwrites any union data inside the DestinationInput as the provided MattermostDestinationInput
func (*DestinationInput) FromSlackDestinationInput ¶
func (t *DestinationInput) FromSlackDestinationInput(v SlackDestinationInput) error
FromSlackDestinationInput overwrites any union data inside the DestinationInput as the provided SlackDestinationInput
func (*DestinationInput) FromTelegramDestinationInput ¶
func (t *DestinationInput) FromTelegramDestinationInput(v TelegramDestinationInput) error
FromTelegramDestinationInput overwrites any union data inside the DestinationInput as the provided TelegramDestinationInput
func (*DestinationInput) FromWebhookDestinationInput ¶
func (t *DestinationInput) FromWebhookDestinationInput(v WebhookDestinationInput) error
FromWebhookDestinationInput overwrites any union data inside the DestinationInput as the provided WebhookDestinationInput
func (DestinationInput) MarshalJSON ¶
func (t DestinationInput) MarshalJSON() ([]byte, error)
func (*DestinationInput) MergeBridgeDestinationInput ¶
func (t *DestinationInput) MergeBridgeDestinationInput(v BridgeDestinationInput) error
MergeBridgeDestinationInput performs a merge with any union data inside the DestinationInput, using the provided BridgeDestinationInput
func (*DestinationInput) MergeMattermostDestinationInput ¶
func (t *DestinationInput) MergeMattermostDestinationInput(v MattermostDestinationInput) error
MergeMattermostDestinationInput performs a merge with any union data inside the DestinationInput, using the provided MattermostDestinationInput
func (*DestinationInput) MergeSlackDestinationInput ¶
func (t *DestinationInput) MergeSlackDestinationInput(v SlackDestinationInput) error
MergeSlackDestinationInput performs a merge with any union data inside the DestinationInput, using the provided SlackDestinationInput
func (*DestinationInput) MergeTelegramDestinationInput ¶
func (t *DestinationInput) MergeTelegramDestinationInput(v TelegramDestinationInput) error
MergeTelegramDestinationInput performs a merge with any union data inside the DestinationInput, using the provided TelegramDestinationInput
func (*DestinationInput) MergeWebhookDestinationInput ¶
func (t *DestinationInput) MergeWebhookDestinationInput(v WebhookDestinationInput) error
MergeWebhookDestinationInput performs a merge with any union data inside the DestinationInput, using the provided WebhookDestinationInput
func (*DestinationInput) UnmarshalJSON ¶
func (t *DestinationInput) UnmarshalJSON(b []byte) error
func (DestinationInput) ValueByDiscriminator ¶
func (t DestinationInput) ValueByDiscriminator() (interface{}, error)
type DestinationList ¶
type DestinationList struct {
Items []Destination `json:"items"`
NextCursor nullable.Nullable[string] `json:"next_cursor"`
}
DestinationList defines model for DestinationList.
type DestinationPreview ¶
type DestinationPreview struct {
Items []DestinationPreviewItem `json:"items"`
}
DestinationPreview defines model for DestinationPreview.
type DestinationPreviewItem ¶
type DestinationPreviewItem struct {
Format nullable.Nullable[DestinationPreviewItemFormat] `json:"format,omitempty"`
Name DestinationPreviewItemName `json:"name"`
// Request A request as it would be or was sent, with Secrets, the Signing secret and tokens masked.
Request *RenderedRequest `json:"request,omitempty"`
// Text The rendered Root message text; for a Bridge, the envelope, and for Slack, the body of `chat.postMessage`, as JSON.
Text nullable.Nullable[string] `json:"text,omitempty"`
}
DestinationPreviewItem defines model for DestinationPreviewItem.
type DestinationPreviewItemFormat ¶
type DestinationPreviewItemFormat string
DestinationPreviewItemFormat defines model for DestinationPreviewItem.Format.
const ( DestinationPreviewItemFormatHtml DestinationPreviewItemFormat = "html" DestinationPreviewItemFormatJson DestinationPreviewItemFormat = "json" DestinationPreviewItemFormatLessThannil DestinationPreviewItemFormat = "<nil>" DestinationPreviewItemFormatMarkdown DestinationPreviewItemFormat = "markdown" DestinationPreviewItemFormatPlain DestinationPreviewItemFormat = "plain" )
Defines values for DestinationPreviewItemFormat.
func (DestinationPreviewItemFormat) Valid ¶
func (e DestinationPreviewItemFormat) Valid() bool
Valid indicates whether the value is a known member of the DestinationPreviewItemFormat enum.
type DestinationPreviewItemName ¶
type DestinationPreviewItemName string
DestinationPreviewItemName defines model for DestinationPreviewItem.Name.
const ( DestinationPreviewItemNameCreate DestinationPreviewItemName = "create" DestinationPreviewItemNameEvent DestinationPreviewItemName = "event" DestinationPreviewItemNameMessage DestinationPreviewItemName = "message" DestinationPreviewItemNameOpenThread DestinationPreviewItemName = "open_thread" DestinationPreviewItemNameReplyInThread DestinationPreviewItemName = "reply_in_thread" DestinationPreviewItemNameUpdate DestinationPreviewItemName = "update" )
Defines values for DestinationPreviewItemName.
func (DestinationPreviewItemName) Valid ¶
func (e DestinationPreviewItemName) Valid() bool
Valid indicates whether the value is a known member of the DestinationPreviewItemName enum.
type DestinationPreviewRequest ¶
type DestinationPreviewRequest struct {
Source TestSource `json:"source"`
}
DestinationPreviewRequest defines model for DestinationPreviewRequest.
type DestinationReadFields ¶
type DestinationReadFields struct {
CreatedAt time.Time `json:"created_at"`
// Etag The same value as the `ETag` header; send it as `If-Match` on the next update. Lets a client update an item of a list without reading it again.
Etag *string `json:"etag,omitempty"`
Health DestinationHealth `json:"health"`
// Id Opaque public identifier (`public_id`): a type prefix of one or two letters followed by 12 random characters of Crockford base32 (`0`–`9` and `A`–`Z` without `I`, `L`, `O` and `U`; 60 bits), such as `AGK7M3QX9P2RTA` for an Alert Group. Prefixes use the same letters and differ per type: `AG` Alert Group, `AE` Audit log entry, `AK` Account link, `AR` Account link request, `CN` Connection, `CR` check run, `DE` delivery event, `DS` Destination, `KR` Link rule, `NE` Note, `NK` Integration token, `NT` Integration, `PT` Personal access token, `RG` Organization, `RQ` record of the Request log, `RT` Route, `SA` Service account, `SN` session, `SR` User, `SS` Stored Snapshot, `ST` Service account token, `TB` Lookup table, `TE` Timeline entry. Responses always carry the canonical upper-case form. Input is case-insensitive and normalized before lookup — `O` reads as `0`, `I` and `L` as `1` — so the pattern also admits lower case and those letters. People refer to Alert Groups by `#N`, never by `public_id`.
Id PublicId `json:"id"`
Routes []EntityRef `json:"routes"`
TemplateError *TemplateErrorState `json:"template_error,omitempty"`
}
DestinationReadFields defines model for DestinationReadFields.
type DestinationRef ¶
type DestinationRef struct {
Health DestinationHealth `json:"health"`
// Id Opaque public identifier (`public_id`): a type prefix of one or two letters followed by 12 random characters of Crockford base32 (`0`–`9` and `A`–`Z` without `I`, `L`, `O` and `U`; 60 bits), such as `AGK7M3QX9P2RTA` for an Alert Group. Prefixes use the same letters and differ per type: `AG` Alert Group, `AE` Audit log entry, `AK` Account link, `AR` Account link request, `CN` Connection, `CR` check run, `DE` delivery event, `DS` Destination, `KR` Link rule, `NE` Note, `NK` Integration token, `NT` Integration, `PT` Personal access token, `RG` Organization, `RQ` record of the Request log, `RT` Route, `SA` Service account, `SN` session, `SR` User, `SS` Stored Snapshot, `ST` Service account token, `TB` Lookup table, `TE` Timeline entry. Responses always carry the canonical upper-case form. Input is case-insensitive and normalized before lookup — `O` reads as `0`, `I` and `L` as `1` — so the pattern also admits lower case and those letters. People refer to Alert Groups by `#N`, never by `public_id`.
Id PublicId `json:"id"`
Name string `json:"name"`
Type DestinationType `json:"type"`
}
DestinationRef defines model for DestinationRef.
type DestinationSecret ¶
type DestinationSecret struct {
Name string `json:"name"`
Set bool `json:"set"`
UpdatedAt nullable.Nullable[time.Time] `json:"updated_at,omitempty"`
}
DestinationSecret A named Secret of an outgoing webhook Destination, referenced as `{{ .Secrets.<name> }}`.
type DestinationSecretInput ¶
type DestinationSecretInput struct {
// Value Write-only Secret.
Value *string `json:"value,omitempty"`
}
DestinationSecretInput defines model for DestinationSecretInput.
type DestinationSecretList ¶
type DestinationSecretList struct {
Items []DestinationSecret `json:"items"`
}
DestinationSecretList defines model for DestinationSecretList.
type DestinationTestRequest ¶
type DestinationTestRequest struct {
Source TestSource `json:"source"`
}
DestinationTestRequest defines model for DestinationTestRequest.
type DestinationTestResult ¶
type DestinationTestResult struct {
// Health Health after the test; a successful test of a Broken Destination makes it healthy.
Health DestinationHealth `json:"health"`
// RequestLogRun The check run of the requests this test made (`CR…`); `listRequestLog` with `run` and the Destination lists them.
RequestLogRun PublicId `json:"request_log_run"`
// Steps The `message` step for a messenger — alone for Telegram, a Bridge and Slack — followed by the `press` step for Mattermost; for an outgoing webhook the `event` step and the `create` step, in this order, as the Destination's mode requires.
Steps []TestStep `json:"steps"`
}
DestinationTestResult defines model for DestinationTestResult.
type DestinationType ¶
type DestinationType string
DestinationType defines model for DestinationType.
const ( DestinationTypeBridge DestinationType = "bridge" DestinationTypeMattermost DestinationType = "mattermost" DestinationTypeSlack DestinationType = "slack" DestinationTypeTelegram DestinationType = "telegram" DestinationTypeWebhook DestinationType = "webhook" )
Defines values for DestinationType.
func (DestinationType) Valid ¶
func (e DestinationType) Valid() bool
Valid indicates whether the value is a known member of the DestinationType enum.
type DestinationWarning ¶
type DestinationWarning struct {
// Field JSON Pointer to the header or URL holding a literal credential; store it as a Secret instead.
Field nullable.Nullable[string] `json:"field,omitempty"`
Kind DestinationWarningKind `json:"kind"`
Since nullable.Nullable[time.Time] `json:"since,omitempty"`
}
DestinationWarning defines model for DestinationWarning.
type DestinationWarningKind ¶
type DestinationWarningKind string
DestinationWarningKind defines model for DestinationWarning.Kind.
const ( LiteralCredential DestinationWarningKind = "literal_credential" PreviousSigningSecretActive DestinationWarningKind = "previous_signing_secret_active" )
Defines values for DestinationWarningKind.
func (DestinationWarningKind) Valid ¶
func (e DestinationWarningKind) Valid() bool
Valid indicates whether the value is a known member of the DestinationWarningKind enum.
type DisableServiceAccountResponse ¶
type DisableServiceAccountResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *ServiceAccount
// ApplicationproblemJSON401 the response for an HTTP 401 `application/problem+json` response
ApplicationproblemJSON401 *Unauthorized
// ApplicationproblemJSON403 the response for an HTTP 403 `application/problem+json` response
ApplicationproblemJSON403 *Forbidden
// ApplicationproblemJSON404 the response for an HTTP 404 `application/problem+json` response
ApplicationproblemJSON404 *NotFound
// ApplicationproblemJSON409 the response for an HTTP 409 `application/problem+json` response
ApplicationproblemJSON409 *Conflict
// ApplicationproblemJSON429 the response for an HTTP 429 `application/problem+json` response
ApplicationproblemJSON429 *TooManyRequests
// Headers429 the parsed response headers for an HTTP 429 response
Headers429 *DisableServiceAccountResponse429Headers
}
func ParseDisableServiceAccountResponse ¶
func ParseDisableServiceAccountResponse(rsp *http.Response) (*DisableServiceAccountResponse, error)
ParseDisableServiceAccountResponse parses an HTTP response from a DisableServiceAccountWithResponse call
func (DisableServiceAccountResponse) ContentType ¶
func (r DisableServiceAccountResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (DisableServiceAccountResponse) GetApplicationproblemJSON401 ¶
func (r DisableServiceAccountResponse) GetApplicationproblemJSON401() *Unauthorized
GetApplicationproblemJSON401 returns the response for an HTTP 401 `application/problem+json` response
func (DisableServiceAccountResponse) GetApplicationproblemJSON403 ¶
func (r DisableServiceAccountResponse) GetApplicationproblemJSON403() *Forbidden
GetApplicationproblemJSON403 returns the response for an HTTP 403 `application/problem+json` response
func (DisableServiceAccountResponse) GetApplicationproblemJSON404 ¶
func (r DisableServiceAccountResponse) GetApplicationproblemJSON404() *NotFound
GetApplicationproblemJSON404 returns the response for an HTTP 404 `application/problem+json` response
func (DisableServiceAccountResponse) GetApplicationproblemJSON409 ¶
func (r DisableServiceAccountResponse) GetApplicationproblemJSON409() *Conflict
GetApplicationproblemJSON409 returns the response for an HTTP 409 `application/problem+json` response
func (DisableServiceAccountResponse) GetApplicationproblemJSON429 ¶
func (r DisableServiceAccountResponse) GetApplicationproblemJSON429() *TooManyRequests
GetApplicationproblemJSON429 returns the response for an HTTP 429 `application/problem+json` response
func (DisableServiceAccountResponse) GetBody ¶
func (r DisableServiceAccountResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (DisableServiceAccountResponse) GetJSON200 ¶
func (r DisableServiceAccountResponse) GetJSON200() *ServiceAccount
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (DisableServiceAccountResponse) Status ¶
func (r DisableServiceAccountResponse) Status() string
Status returns HTTPResponse.Status
func (DisableServiceAccountResponse) StatusCode ¶
func (r DisableServiceAccountResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type DisableServiceAccountResponse429Headers ¶
type DisableServiceAccountResponse429Headers struct {
RetryAfter *int
}
DisableServiceAccountResponse429Headers the declared response headers of an HTTP 429 response for DisableServiceAccount
type DisableUserResponse ¶
type DisableUserResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *User
// ApplicationproblemJSON401 the response for an HTTP 401 `application/problem+json` response
ApplicationproblemJSON401 *Unauthorized
// ApplicationproblemJSON403 the response for an HTTP 403 `application/problem+json` response
ApplicationproblemJSON403 *Forbidden
// ApplicationproblemJSON404 the response for an HTTP 404 `application/problem+json` response
ApplicationproblemJSON404 *NotFound
// ApplicationproblemJSON409 the response for an HTTP 409 `application/problem+json` response
ApplicationproblemJSON409 *Conflict
// ApplicationproblemJSON429 the response for an HTTP 429 `application/problem+json` response
ApplicationproblemJSON429 *TooManyRequests
// Headers429 the parsed response headers for an HTTP 429 response
Headers429 *DisableUserResponse429Headers
}
func ParseDisableUserResponse ¶
func ParseDisableUserResponse(rsp *http.Response) (*DisableUserResponse, error)
ParseDisableUserResponse parses an HTTP response from a DisableUserWithResponse call
func (DisableUserResponse) ContentType ¶
func (r DisableUserResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (DisableUserResponse) GetApplicationproblemJSON401 ¶
func (r DisableUserResponse) GetApplicationproblemJSON401() *Unauthorized
GetApplicationproblemJSON401 returns the response for an HTTP 401 `application/problem+json` response
func (DisableUserResponse) GetApplicationproblemJSON403 ¶
func (r DisableUserResponse) GetApplicationproblemJSON403() *Forbidden
GetApplicationproblemJSON403 returns the response for an HTTP 403 `application/problem+json` response
func (DisableUserResponse) GetApplicationproblemJSON404 ¶
func (r DisableUserResponse) GetApplicationproblemJSON404() *NotFound
GetApplicationproblemJSON404 returns the response for an HTTP 404 `application/problem+json` response
func (DisableUserResponse) GetApplicationproblemJSON409 ¶
func (r DisableUserResponse) GetApplicationproblemJSON409() *Conflict
GetApplicationproblemJSON409 returns the response for an HTTP 409 `application/problem+json` response
func (DisableUserResponse) GetApplicationproblemJSON429 ¶
func (r DisableUserResponse) GetApplicationproblemJSON429() *TooManyRequests
GetApplicationproblemJSON429 returns the response for an HTTP 429 `application/problem+json` response
func (DisableUserResponse) GetBody ¶
func (r DisableUserResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (DisableUserResponse) GetJSON200 ¶
func (r DisableUserResponse) GetJSON200() *User
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (DisableUserResponse) Status ¶
func (r DisableUserResponse) Status() string
Status returns HTTPResponse.Status
func (DisableUserResponse) StatusCode ¶
func (r DisableUserResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type DisableUserResponse429Headers ¶
type DisableUserResponse429Headers struct {
RetryAfter *int
}
DisableUserResponse429Headers the declared response headers of an HTTP 429 response for DisableUser
type DismissRouteSuggestionResponse ¶
type DismissRouteSuggestionResponse struct {
Body []byte
HTTPResponse *http.Response
// ApplicationproblemJSON401 the response for an HTTP 401 `application/problem+json` response
ApplicationproblemJSON401 *Unauthorized
// ApplicationproblemJSON403 the response for an HTTP 403 `application/problem+json` response
ApplicationproblemJSON403 *Forbidden
// ApplicationproblemJSON404 the response for an HTTP 404 `application/problem+json` response
ApplicationproblemJSON404 *NotFound
// ApplicationproblemJSON409 the response for an HTTP 409 `application/problem+json` response
ApplicationproblemJSON409 *Conflict
// ApplicationproblemJSON429 the response for an HTTP 429 `application/problem+json` response
ApplicationproblemJSON429 *TooManyRequests
// Headers429 the parsed response headers for an HTTP 429 response
Headers429 *DismissRouteSuggestionResponse429Headers
}
func ParseDismissRouteSuggestionResponse ¶
func ParseDismissRouteSuggestionResponse(rsp *http.Response) (*DismissRouteSuggestionResponse, error)
ParseDismissRouteSuggestionResponse parses an HTTP response from a DismissRouteSuggestionWithResponse call
func (DismissRouteSuggestionResponse) ContentType ¶
func (r DismissRouteSuggestionResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (DismissRouteSuggestionResponse) GetApplicationproblemJSON401 ¶
func (r DismissRouteSuggestionResponse) GetApplicationproblemJSON401() *Unauthorized
GetApplicationproblemJSON401 returns the response for an HTTP 401 `application/problem+json` response
func (DismissRouteSuggestionResponse) GetApplicationproblemJSON403 ¶
func (r DismissRouteSuggestionResponse) GetApplicationproblemJSON403() *Forbidden
GetApplicationproblemJSON403 returns the response for an HTTP 403 `application/problem+json` response
func (DismissRouteSuggestionResponse) GetApplicationproblemJSON404 ¶
func (r DismissRouteSuggestionResponse) GetApplicationproblemJSON404() *NotFound
GetApplicationproblemJSON404 returns the response for an HTTP 404 `application/problem+json` response
func (DismissRouteSuggestionResponse) GetApplicationproblemJSON409 ¶
func (r DismissRouteSuggestionResponse) GetApplicationproblemJSON409() *Conflict
GetApplicationproblemJSON409 returns the response for an HTTP 409 `application/problem+json` response
func (DismissRouteSuggestionResponse) GetApplicationproblemJSON429 ¶
func (r DismissRouteSuggestionResponse) GetApplicationproblemJSON429() *TooManyRequests
GetApplicationproblemJSON429 returns the response for an HTTP 429 `application/problem+json` response
func (DismissRouteSuggestionResponse) GetBody ¶
func (r DismissRouteSuggestionResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (DismissRouteSuggestionResponse) Status ¶
func (r DismissRouteSuggestionResponse) Status() string
Status returns HTTPResponse.Status
func (DismissRouteSuggestionResponse) StatusCode ¶
func (r DismissRouteSuggestionResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type DismissRouteSuggestionResponse429Headers ¶
type DismissRouteSuggestionResponse429Headers struct {
RetryAfter *int
}
DismissRouteSuggestionResponse429Headers the declared response headers of an HTTP 429 response for DismissRouteSuggestion
type DurationStats ¶
type DurationStats struct {
Count int `json:"count"`
MedianSeconds nullable.Nullable[int] `json:"median_seconds,omitempty"`
P95Seconds nullable.Nullable[int] `json:"p95_seconds,omitempty"`
}
DurationStats defines model for DurationStats.
type EnableServiceAccountResponse ¶
type EnableServiceAccountResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *ServiceAccount
// ApplicationproblemJSON401 the response for an HTTP 401 `application/problem+json` response
ApplicationproblemJSON401 *Unauthorized
// ApplicationproblemJSON403 the response for an HTTP 403 `application/problem+json` response
ApplicationproblemJSON403 *Forbidden
// ApplicationproblemJSON404 the response for an HTTP 404 `application/problem+json` response
ApplicationproblemJSON404 *NotFound
// ApplicationproblemJSON409 the response for an HTTP 409 `application/problem+json` response
ApplicationproblemJSON409 *Conflict
// ApplicationproblemJSON429 the response for an HTTP 429 `application/problem+json` response
ApplicationproblemJSON429 *TooManyRequests
// Headers429 the parsed response headers for an HTTP 429 response
Headers429 *EnableServiceAccountResponse429Headers
}
func ParseEnableServiceAccountResponse ¶
func ParseEnableServiceAccountResponse(rsp *http.Response) (*EnableServiceAccountResponse, error)
ParseEnableServiceAccountResponse parses an HTTP response from a EnableServiceAccountWithResponse call
func (EnableServiceAccountResponse) ContentType ¶
func (r EnableServiceAccountResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (EnableServiceAccountResponse) GetApplicationproblemJSON401 ¶
func (r EnableServiceAccountResponse) GetApplicationproblemJSON401() *Unauthorized
GetApplicationproblemJSON401 returns the response for an HTTP 401 `application/problem+json` response
func (EnableServiceAccountResponse) GetApplicationproblemJSON403 ¶
func (r EnableServiceAccountResponse) GetApplicationproblemJSON403() *Forbidden
GetApplicationproblemJSON403 returns the response for an HTTP 403 `application/problem+json` response
func (EnableServiceAccountResponse) GetApplicationproblemJSON404 ¶
func (r EnableServiceAccountResponse) GetApplicationproblemJSON404() *NotFound
GetApplicationproblemJSON404 returns the response for an HTTP 404 `application/problem+json` response
func (EnableServiceAccountResponse) GetApplicationproblemJSON409 ¶
func (r EnableServiceAccountResponse) GetApplicationproblemJSON409() *Conflict
GetApplicationproblemJSON409 returns the response for an HTTP 409 `application/problem+json` response
func (EnableServiceAccountResponse) GetApplicationproblemJSON429 ¶
func (r EnableServiceAccountResponse) GetApplicationproblemJSON429() *TooManyRequests
GetApplicationproblemJSON429 returns the response for an HTTP 429 `application/problem+json` response
func (EnableServiceAccountResponse) GetBody ¶
func (r EnableServiceAccountResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (EnableServiceAccountResponse) GetJSON200 ¶
func (r EnableServiceAccountResponse) GetJSON200() *ServiceAccount
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (EnableServiceAccountResponse) Status ¶
func (r EnableServiceAccountResponse) Status() string
Status returns HTTPResponse.Status
func (EnableServiceAccountResponse) StatusCode ¶
func (r EnableServiceAccountResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type EnableServiceAccountResponse429Headers ¶
type EnableServiceAccountResponse429Headers struct {
RetryAfter *int
}
EnableServiceAccountResponse429Headers the declared response headers of an HTTP 429 response for EnableServiceAccount
type EnableUserResponse ¶
type EnableUserResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *User
// ApplicationproblemJSON401 the response for an HTTP 401 `application/problem+json` response
ApplicationproblemJSON401 *Unauthorized
// ApplicationproblemJSON403 the response for an HTTP 403 `application/problem+json` response
ApplicationproblemJSON403 *Forbidden
// ApplicationproblemJSON404 the response for an HTTP 404 `application/problem+json` response
ApplicationproblemJSON404 *NotFound
// ApplicationproblemJSON409 the response for an HTTP 409 `application/problem+json` response
ApplicationproblemJSON409 *Conflict
// ApplicationproblemJSON429 the response for an HTTP 429 `application/problem+json` response
ApplicationproblemJSON429 *TooManyRequests
// Headers429 the parsed response headers for an HTTP 429 response
Headers429 *EnableUserResponse429Headers
}
func ParseEnableUserResponse ¶
func ParseEnableUserResponse(rsp *http.Response) (*EnableUserResponse, error)
ParseEnableUserResponse parses an HTTP response from a EnableUserWithResponse call
func (EnableUserResponse) ContentType ¶
func (r EnableUserResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (EnableUserResponse) GetApplicationproblemJSON401 ¶
func (r EnableUserResponse) GetApplicationproblemJSON401() *Unauthorized
GetApplicationproblemJSON401 returns the response for an HTTP 401 `application/problem+json` response
func (EnableUserResponse) GetApplicationproblemJSON403 ¶
func (r EnableUserResponse) GetApplicationproblemJSON403() *Forbidden
GetApplicationproblemJSON403 returns the response for an HTTP 403 `application/problem+json` response
func (EnableUserResponse) GetApplicationproblemJSON404 ¶
func (r EnableUserResponse) GetApplicationproblemJSON404() *NotFound
GetApplicationproblemJSON404 returns the response for an HTTP 404 `application/problem+json` response
func (EnableUserResponse) GetApplicationproblemJSON409 ¶
func (r EnableUserResponse) GetApplicationproblemJSON409() *Conflict
GetApplicationproblemJSON409 returns the response for an HTTP 409 `application/problem+json` response
func (EnableUserResponse) GetApplicationproblemJSON429 ¶
func (r EnableUserResponse) GetApplicationproblemJSON429() *TooManyRequests
GetApplicationproblemJSON429 returns the response for an HTTP 429 `application/problem+json` response
func (EnableUserResponse) GetBody ¶
func (r EnableUserResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (EnableUserResponse) GetJSON200 ¶
func (r EnableUserResponse) GetJSON200() *User
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (EnableUserResponse) Status ¶
func (r EnableUserResponse) Status() string
Status returns HTTPResponse.Status
func (EnableUserResponse) StatusCode ¶
func (r EnableUserResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type EnableUserResponse429Headers ¶
type EnableUserResponse429Headers struct {
RetryAfter *int
}
EnableUserResponse429Headers the declared response headers of an HTTP 429 response for EnableUser
type EntityRef ¶
type EntityRef struct {
// Id Opaque public identifier (`public_id`): a type prefix of one or two letters followed by 12 random characters of Crockford base32 (`0`–`9` and `A`–`Z` without `I`, `L`, `O` and `U`; 60 bits), such as `AGK7M3QX9P2RTA` for an Alert Group. Prefixes use the same letters and differ per type: `AG` Alert Group, `AE` Audit log entry, `AK` Account link, `AR` Account link request, `CN` Connection, `CR` check run, `DE` delivery event, `DS` Destination, `KR` Link rule, `NE` Note, `NK` Integration token, `NT` Integration, `PT` Personal access token, `RG` Organization, `RQ` record of the Request log, `RT` Route, `SA` Service account, `SN` session, `SR` User, `SS` Stored Snapshot, `ST` Service account token, `TB` Lookup table, `TE` Timeline entry. Responses always carry the canonical upper-case form. Input is case-insensitive and normalized before lookup — `O` reads as `0`, `I` and `L` as `1` — so the pattern also admits lower case and those letters. People refer to Alert Groups by `#N`, never by `public_id`.
Id PublicId `json:"id"`
Name string `json:"name"`
}
EntityRef defines model for EntityRef.
type ExtractionRule ¶
type ExtractionRule struct {
// Name Name under which the value is stored per Alert Group and Destination (`.Response.<name>`).
Name string `json:"name"`
// Path JSONPath into the response, for example `$.data.id`.
Path string `json:"path"`
}
ExtractionRule defines model for ExtractionRule.
type Forbidden ¶
type Forbidden = Problem
Forbidden RFC 9457 problem details, served as `application/problem+json`. `type` is a stable URI under `https://muster-io.github.io/muster/problems/`; clients branch on `type`, `code` and `errors[].code`, never on `title` or `detail`. Validation errors raised by the request-validation middleware and by the strict server are mapped to this schema by one function. Every `code` is listed in `x-problem-codes`.
type GenerateSigningSecretResponse ¶
type GenerateSigningSecretResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON201 the response for an HTTP 201 `application/json` response
JSON201 *SigningSecretGenerated
// ApplicationproblemJSON401 the response for an HTTP 401 `application/problem+json` response
ApplicationproblemJSON401 *Unauthorized
// ApplicationproblemJSON403 the response for an HTTP 403 `application/problem+json` response
ApplicationproblemJSON403 *Forbidden
// ApplicationproblemJSON404 the response for an HTTP 404 `application/problem+json` response
ApplicationproblemJSON404 *NotFound
// ApplicationproblemJSON409 the response for an HTTP 409 `application/problem+json` response
ApplicationproblemJSON409 *Conflict
// ApplicationproblemJSON429 the response for an HTTP 429 `application/problem+json` response
ApplicationproblemJSON429 *TooManyRequests
// Headers429 the parsed response headers for an HTTP 429 response
Headers429 *GenerateSigningSecretResponse429Headers
}
func ParseGenerateSigningSecretResponse ¶
func ParseGenerateSigningSecretResponse(rsp *http.Response) (*GenerateSigningSecretResponse, error)
ParseGenerateSigningSecretResponse parses an HTTP response from a GenerateSigningSecretWithResponse call
func (GenerateSigningSecretResponse) ContentType ¶
func (r GenerateSigningSecretResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (GenerateSigningSecretResponse) GetApplicationproblemJSON401 ¶
func (r GenerateSigningSecretResponse) GetApplicationproblemJSON401() *Unauthorized
GetApplicationproblemJSON401 returns the response for an HTTP 401 `application/problem+json` response
func (GenerateSigningSecretResponse) GetApplicationproblemJSON403 ¶
func (r GenerateSigningSecretResponse) GetApplicationproblemJSON403() *Forbidden
GetApplicationproblemJSON403 returns the response for an HTTP 403 `application/problem+json` response
func (GenerateSigningSecretResponse) GetApplicationproblemJSON404 ¶
func (r GenerateSigningSecretResponse) GetApplicationproblemJSON404() *NotFound
GetApplicationproblemJSON404 returns the response for an HTTP 404 `application/problem+json` response
func (GenerateSigningSecretResponse) GetApplicationproblemJSON409 ¶
func (r GenerateSigningSecretResponse) GetApplicationproblemJSON409() *Conflict
GetApplicationproblemJSON409 returns the response for an HTTP 409 `application/problem+json` response
func (GenerateSigningSecretResponse) GetApplicationproblemJSON429 ¶
func (r GenerateSigningSecretResponse) GetApplicationproblemJSON429() *TooManyRequests
GetApplicationproblemJSON429 returns the response for an HTTP 429 `application/problem+json` response
func (GenerateSigningSecretResponse) GetBody ¶
func (r GenerateSigningSecretResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (GenerateSigningSecretResponse) GetJSON201 ¶
func (r GenerateSigningSecretResponse) GetJSON201() *SigningSecretGenerated
GetJSON201 returns the response for an HTTP 201 `application/json` response
func (GenerateSigningSecretResponse) Status ¶
func (r GenerateSigningSecretResponse) Status() string
Status returns HTTPResponse.Status
func (GenerateSigningSecretResponse) StatusCode ¶
func (r GenerateSigningSecretResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GenerateSigningSecretResponse429Headers ¶
type GenerateSigningSecretResponse429Headers struct {
RetryAfter *int
}
GenerateSigningSecretResponse429Headers the declared response headers of an HTTP 429 response for GenerateSigningSecret
type GetAlertGroupCountsParams ¶
type GetAlertGroupCountsParams struct {
// Route Only these Routes (`public_id`).
Route *AgRoute `form:"route,omitempty" json:"route,omitempty"`
// Integration Only Alert Groups with Alerts from these Integrations (`public_id`).
Integration *AgIntegration `form:"integration,omitempty" json:"integration,omitempty"`
// Severity Only these Severity levels.
Severity *AgSeverity `form:"severity,omitempty" json:"severity,omitempty"`
// Urgent Only Urgent (true) or non-Urgent (false) Alert Groups.
Urgent *AgUrgent `form:"urgent,omitempty" json:"urgent,omitempty"`
// ResolvedBy Only Alert Groups resolved by a person or by the system.
ResolvedBy *AgResolvedBy `form:"resolved_by,omitempty" json:"resolved_by,omitempty"`
// ResolveReason With `resolved_by=system`: the reason.
ResolveReason *AgResolveReason `form:"resolve_reason,omitempty" json:"resolve_reason,omitempty"`
// Reopened True: Reopen count above zero.
Reopened *AgReopened `form:"reopened,omitempty" json:"reopened,omitempty"`
// Label Label filter: one Alertmanager-syntax Matcher per repeat of the parameter, combined with AND. Each value is a whole matcher: `label=namespace%3D%22payments%22&label=pod%3D~%22api-.*%22` means `namespace="payments"` and `pod=~"api-.*"`. There is no per-label shorthand. On Alert Groups the Matchers are matched against the common labels — the labels every Alert of the group has with the same value — so the filter also works on summary rows after the Alerts were removed; a label the Alerts do not share counts as absent. On the Alerts view of an Integration they are matched against each Alert's labels.
Label *LabelMatchers `form:"label,omitempty" json:"label,omitempty"`
// Owner A user `public_id`, `me` (the calling User; `422` for a Service account token), or `none` for Alert Groups nobody owns, resolved ones included.
Owner *AgOwner `form:"owner,omitempty" json:"owner,omitempty"`
// SnoozedNoEnd True: only Alert Groups snoozed with no end. False: every Alert Group but those.
SnoozedNoEnd *AgSnoozedNoEnd `form:"snoozed_no_end,omitempty" json:"snoozed_no_end,omitempty"`
// DeliveryProblem Any Destination is Not delivered, waiting for a Broken Destination, deleted in the messenger or has a Thread not attached.
DeliveryProblem *AgDeliveryProblem `form:"delivery_problem,omitempty" json:"delivery_problem,omitempty"`
// Unclaimed Only Unclaimed Alert Groups.
Unclaimed *AgUnclaimed `form:"unclaimed,omitempty" json:"unclaimed,omitempty"`
// From Start of the time range (RFC 3339, UTC).
From *From `form:"from,omitempty" json:"from,omitempty"`
// To End of the time range (RFC 3339, UTC).
To *To `form:"to,omitempty" json:"to,omitempty"`
// Q Search by text in the title or `summary`, case-insensitive and matching parts of words. A `#N` typed here is the same as `number`.
Q *AgQuery `form:"q,omitempty" json:"q,omitempty"`
}
GetAlertGroupCountsParams defines parameters for GetAlertGroupCounts.
type GetAlertGroupCountsResponse ¶
type GetAlertGroupCountsResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *AlertGroupCounts
// ApplicationproblemJSON400 the response for an HTTP 400 `application/problem+json` response
ApplicationproblemJSON400 *BadRequest
// ApplicationproblemJSON401 the response for an HTTP 401 `application/problem+json` response
ApplicationproblemJSON401 *Unauthorized
// ApplicationproblemJSON403 the response for an HTTP 403 `application/problem+json` response
ApplicationproblemJSON403 *Forbidden
// ApplicationproblemJSON422 the response for an HTTP 422 `application/problem+json` response
ApplicationproblemJSON422 *Unprocessable
// ApplicationproblemJSON429 the response for an HTTP 429 `application/problem+json` response
ApplicationproblemJSON429 *TooManyRequests
// Headers429 the parsed response headers for an HTTP 429 response
Headers429 *GetAlertGroupCountsResponse429Headers
}
func ParseGetAlertGroupCountsResponse ¶
func ParseGetAlertGroupCountsResponse(rsp *http.Response) (*GetAlertGroupCountsResponse, error)
ParseGetAlertGroupCountsResponse parses an HTTP response from a GetAlertGroupCountsWithResponse call
func (GetAlertGroupCountsResponse) ContentType ¶
func (r GetAlertGroupCountsResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (GetAlertGroupCountsResponse) GetApplicationproblemJSON400 ¶
func (r GetAlertGroupCountsResponse) GetApplicationproblemJSON400() *BadRequest
GetApplicationproblemJSON400 returns the response for an HTTP 400 `application/problem+json` response
func (GetAlertGroupCountsResponse) GetApplicationproblemJSON401 ¶
func (r GetAlertGroupCountsResponse) GetApplicationproblemJSON401() *Unauthorized
GetApplicationproblemJSON401 returns the response for an HTTP 401 `application/problem+json` response
func (GetAlertGroupCountsResponse) GetApplicationproblemJSON403 ¶
func (r GetAlertGroupCountsResponse) GetApplicationproblemJSON403() *Forbidden
GetApplicationproblemJSON403 returns the response for an HTTP 403 `application/problem+json` response
func (GetAlertGroupCountsResponse) GetApplicationproblemJSON422 ¶
func (r GetAlertGroupCountsResponse) GetApplicationproblemJSON422() *Unprocessable
GetApplicationproblemJSON422 returns the response for an HTTP 422 `application/problem+json` response
func (GetAlertGroupCountsResponse) GetApplicationproblemJSON429 ¶
func (r GetAlertGroupCountsResponse) GetApplicationproblemJSON429() *TooManyRequests
GetApplicationproblemJSON429 returns the response for an HTTP 429 `application/problem+json` response
func (GetAlertGroupCountsResponse) GetBody ¶
func (r GetAlertGroupCountsResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (GetAlertGroupCountsResponse) GetJSON200 ¶
func (r GetAlertGroupCountsResponse) GetJSON200() *AlertGroupCounts
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (GetAlertGroupCountsResponse) Status ¶
func (r GetAlertGroupCountsResponse) Status() string
Status returns HTTPResponse.Status
func (GetAlertGroupCountsResponse) StatusCode ¶
func (r GetAlertGroupCountsResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetAlertGroupCountsResponse429Headers ¶
type GetAlertGroupCountsResponse429Headers struct {
RetryAfter *int
}
GetAlertGroupCountsResponse429Headers the declared response headers of an HTTP 429 response for GetAlertGroupCounts
type GetAlertGroupResponse ¶
type GetAlertGroupResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *AlertGroup
// ApplicationproblemJSON401 the response for an HTTP 401 `application/problem+json` response
ApplicationproblemJSON401 *Unauthorized
// ApplicationproblemJSON403 the response for an HTTP 403 `application/problem+json` response
ApplicationproblemJSON403 *Forbidden
// ApplicationproblemJSON404 the response for an HTTP 404 `application/problem+json` response
ApplicationproblemJSON404 *NotFound
// ApplicationproblemJSON429 the response for an HTTP 429 `application/problem+json` response
ApplicationproblemJSON429 *TooManyRequests
// Headers429 the parsed response headers for an HTTP 429 response
Headers429 *GetAlertGroupResponse429Headers
}
func ParseGetAlertGroupResponse ¶
func ParseGetAlertGroupResponse(rsp *http.Response) (*GetAlertGroupResponse, error)
ParseGetAlertGroupResponse parses an HTTP response from a GetAlertGroupWithResponse call
func (GetAlertGroupResponse) ContentType ¶
func (r GetAlertGroupResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (GetAlertGroupResponse) GetApplicationproblemJSON401 ¶
func (r GetAlertGroupResponse) GetApplicationproblemJSON401() *Unauthorized
GetApplicationproblemJSON401 returns the response for an HTTP 401 `application/problem+json` response
func (GetAlertGroupResponse) GetApplicationproblemJSON403 ¶
func (r GetAlertGroupResponse) GetApplicationproblemJSON403() *Forbidden
GetApplicationproblemJSON403 returns the response for an HTTP 403 `application/problem+json` response
func (GetAlertGroupResponse) GetApplicationproblemJSON404 ¶
func (r GetAlertGroupResponse) GetApplicationproblemJSON404() *NotFound
GetApplicationproblemJSON404 returns the response for an HTTP 404 `application/problem+json` response
func (GetAlertGroupResponse) GetApplicationproblemJSON429 ¶
func (r GetAlertGroupResponse) GetApplicationproblemJSON429() *TooManyRequests
GetApplicationproblemJSON429 returns the response for an HTTP 429 `application/problem+json` response
func (GetAlertGroupResponse) GetBody ¶
func (r GetAlertGroupResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (GetAlertGroupResponse) GetJSON200 ¶
func (r GetAlertGroupResponse) GetJSON200() *AlertGroup
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (GetAlertGroupResponse) Status ¶
func (r GetAlertGroupResponse) Status() string
Status returns HTTPResponse.Status
func (GetAlertGroupResponse) StatusCode ¶
func (r GetAlertGroupResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetAlertGroupResponse429Headers ¶
type GetAlertGroupResponse429Headers struct {
RetryAfter *int
}
GetAlertGroupResponse429Headers the declared response headers of an HTTP 429 response for GetAlertGroup
type GetAlertGroupStatisticsParams ¶
type GetAlertGroupStatisticsParams struct {
// GroupBy What one item stands for.
GroupBy GetAlertGroupStatisticsParamsGroupBy `form:"group_by" json:"group_by"`
// Route Only these Routes (`public_id`); with `group_by=route`.
Route *[]PublicId `form:"route,omitempty" json:"route,omitempty"`
// Integration Only these Integrations (`public_id`); with `group_by=integration`.
Integration *[]PublicId `form:"integration,omitempty" json:"integration,omitempty"`
// From Start of the time range (RFC 3339, UTC).
From *From `form:"from,omitempty" json:"from,omitempty"`
// To End of the time range (RFC 3339, UTC).
To *To `form:"to,omitempty" json:"to,omitempty"`
// TimeZone IANA time zone that splits days; defaults to the Organization's.
TimeZone *string `form:"time_zone,omitempty" json:"time_zone,omitempty"`
}
GetAlertGroupStatisticsParams defines parameters for GetAlertGroupStatistics.
type GetAlertGroupStatisticsParamsGroupBy ¶
type GetAlertGroupStatisticsParamsGroupBy string
GetAlertGroupStatisticsParamsGroupBy defines parameters for GetAlertGroupStatistics.
const ( GetAlertGroupStatisticsParamsGroupByIntegration GetAlertGroupStatisticsParamsGroupBy = "integration" GetAlertGroupStatisticsParamsGroupByRoute GetAlertGroupStatisticsParamsGroupBy = "route" )
Defines values for GetAlertGroupStatisticsParamsGroupBy.
func (GetAlertGroupStatisticsParamsGroupBy) Valid ¶
func (e GetAlertGroupStatisticsParamsGroupBy) Valid() bool
Valid indicates whether the value is a known member of the GetAlertGroupStatisticsParamsGroupBy enum.
type GetAlertGroupStatisticsResponse ¶
type GetAlertGroupStatisticsResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *AlertGroupStatistics
// ApplicationproblemJSON400 the response for an HTTP 400 `application/problem+json` response
ApplicationproblemJSON400 *BadRequest
// ApplicationproblemJSON401 the response for an HTTP 401 `application/problem+json` response
ApplicationproblemJSON401 *Unauthorized
// ApplicationproblemJSON403 the response for an HTTP 403 `application/problem+json` response
ApplicationproblemJSON403 *Forbidden
// ApplicationproblemJSON404 the response for an HTTP 404 `application/problem+json` response
ApplicationproblemJSON404 *NotFound
// ApplicationproblemJSON422 the response for an HTTP 422 `application/problem+json` response
ApplicationproblemJSON422 *Unprocessable
// ApplicationproblemJSON429 the response for an HTTP 429 `application/problem+json` response
ApplicationproblemJSON429 *TooManyRequests
// Headers429 the parsed response headers for an HTTP 429 response
Headers429 *GetAlertGroupStatisticsResponse429Headers
}
func ParseGetAlertGroupStatisticsResponse ¶
func ParseGetAlertGroupStatisticsResponse(rsp *http.Response) (*GetAlertGroupStatisticsResponse, error)
ParseGetAlertGroupStatisticsResponse parses an HTTP response from a GetAlertGroupStatisticsWithResponse call
func (GetAlertGroupStatisticsResponse) ContentType ¶
func (r GetAlertGroupStatisticsResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (GetAlertGroupStatisticsResponse) GetApplicationproblemJSON400 ¶
func (r GetAlertGroupStatisticsResponse) GetApplicationproblemJSON400() *BadRequest
GetApplicationproblemJSON400 returns the response for an HTTP 400 `application/problem+json` response
func (GetAlertGroupStatisticsResponse) GetApplicationproblemJSON401 ¶
func (r GetAlertGroupStatisticsResponse) GetApplicationproblemJSON401() *Unauthorized
GetApplicationproblemJSON401 returns the response for an HTTP 401 `application/problem+json` response
func (GetAlertGroupStatisticsResponse) GetApplicationproblemJSON403 ¶
func (r GetAlertGroupStatisticsResponse) GetApplicationproblemJSON403() *Forbidden
GetApplicationproblemJSON403 returns the response for an HTTP 403 `application/problem+json` response
func (GetAlertGroupStatisticsResponse) GetApplicationproblemJSON404 ¶
func (r GetAlertGroupStatisticsResponse) GetApplicationproblemJSON404() *NotFound
GetApplicationproblemJSON404 returns the response for an HTTP 404 `application/problem+json` response
func (GetAlertGroupStatisticsResponse) GetApplicationproblemJSON422 ¶
func (r GetAlertGroupStatisticsResponse) GetApplicationproblemJSON422() *Unprocessable
GetApplicationproblemJSON422 returns the response for an HTTP 422 `application/problem+json` response
func (GetAlertGroupStatisticsResponse) GetApplicationproblemJSON429 ¶
func (r GetAlertGroupStatisticsResponse) GetApplicationproblemJSON429() *TooManyRequests
GetApplicationproblemJSON429 returns the response for an HTTP 429 `application/problem+json` response
func (GetAlertGroupStatisticsResponse) GetBody ¶
func (r GetAlertGroupStatisticsResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (GetAlertGroupStatisticsResponse) GetJSON200 ¶
func (r GetAlertGroupStatisticsResponse) GetJSON200() *AlertGroupStatistics
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (GetAlertGroupStatisticsResponse) Status ¶
func (r GetAlertGroupStatisticsResponse) Status() string
Status returns HTTPResponse.Status
func (GetAlertGroupStatisticsResponse) StatusCode ¶
func (r GetAlertGroupStatisticsResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetAlertGroupStatisticsResponse429Headers ¶
type GetAlertGroupStatisticsResponse429Headers struct {
RetryAfter *int
}
GetAlertGroupStatisticsResponse429Headers the declared response headers of an HTTP 429 response for GetAlertGroupStatistics
type GetAlertGroupTimelineParams ¶
type GetAlertGroupTimelineParams struct {
// Cursor Opaque cursor from `next_cursor` of the previous page. Offsets are not supported.
Cursor *Cursor `form:"cursor,omitempty" json:"cursor,omitempty"`
// Limit Page size (`api.page_size`).
Limit *Limit `form:"limit,omitempty" json:"limit,omitempty"`
// Kind Only these kinds.
Kind *[]TimelineKind `form:"kind,omitempty" json:"kind,omitempty"`
// Order Newest first by default.
Order *GetAlertGroupTimelineParamsOrder `form:"order,omitempty" json:"order,omitempty"`
}
GetAlertGroupTimelineParams defines parameters for GetAlertGroupTimeline.
type GetAlertGroupTimelineParamsOrder ¶
type GetAlertGroupTimelineParamsOrder string
GetAlertGroupTimelineParamsOrder defines parameters for GetAlertGroupTimeline.
const ( Asc GetAlertGroupTimelineParamsOrder = "asc" Desc GetAlertGroupTimelineParamsOrder = "desc" )
Defines values for GetAlertGroupTimelineParamsOrder.
func (GetAlertGroupTimelineParamsOrder) Valid ¶
func (e GetAlertGroupTimelineParamsOrder) Valid() bool
Valid indicates whether the value is a known member of the GetAlertGroupTimelineParamsOrder enum.
type GetAlertGroupTimelineResponse ¶
type GetAlertGroupTimelineResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *TimelineEntryList
// ApplicationproblemJSON400 the response for an HTTP 400 `application/problem+json` response
ApplicationproblemJSON400 *BadRequest
// ApplicationproblemJSON401 the response for an HTTP 401 `application/problem+json` response
ApplicationproblemJSON401 *Unauthorized
// ApplicationproblemJSON403 the response for an HTTP 403 `application/problem+json` response
ApplicationproblemJSON403 *Forbidden
// ApplicationproblemJSON404 the response for an HTTP 404 `application/problem+json` response
ApplicationproblemJSON404 *NotFound
// ApplicationproblemJSON429 the response for an HTTP 429 `application/problem+json` response
ApplicationproblemJSON429 *TooManyRequests
// Headers429 the parsed response headers for an HTTP 429 response
Headers429 *GetAlertGroupTimelineResponse429Headers
}
func ParseGetAlertGroupTimelineResponse ¶
func ParseGetAlertGroupTimelineResponse(rsp *http.Response) (*GetAlertGroupTimelineResponse, error)
ParseGetAlertGroupTimelineResponse parses an HTTP response from a GetAlertGroupTimelineWithResponse call
func (GetAlertGroupTimelineResponse) ContentType ¶
func (r GetAlertGroupTimelineResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (GetAlertGroupTimelineResponse) GetApplicationproblemJSON400 ¶
func (r GetAlertGroupTimelineResponse) GetApplicationproblemJSON400() *BadRequest
GetApplicationproblemJSON400 returns the response for an HTTP 400 `application/problem+json` response
func (GetAlertGroupTimelineResponse) GetApplicationproblemJSON401 ¶
func (r GetAlertGroupTimelineResponse) GetApplicationproblemJSON401() *Unauthorized
GetApplicationproblemJSON401 returns the response for an HTTP 401 `application/problem+json` response
func (GetAlertGroupTimelineResponse) GetApplicationproblemJSON403 ¶
func (r GetAlertGroupTimelineResponse) GetApplicationproblemJSON403() *Forbidden
GetApplicationproblemJSON403 returns the response for an HTTP 403 `application/problem+json` response
func (GetAlertGroupTimelineResponse) GetApplicationproblemJSON404 ¶
func (r GetAlertGroupTimelineResponse) GetApplicationproblemJSON404() *NotFound
GetApplicationproblemJSON404 returns the response for an HTTP 404 `application/problem+json` response
func (GetAlertGroupTimelineResponse) GetApplicationproblemJSON429 ¶
func (r GetAlertGroupTimelineResponse) GetApplicationproblemJSON429() *TooManyRequests
GetApplicationproblemJSON429 returns the response for an HTTP 429 `application/problem+json` response
func (GetAlertGroupTimelineResponse) GetBody ¶
func (r GetAlertGroupTimelineResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (GetAlertGroupTimelineResponse) GetJSON200 ¶
func (r GetAlertGroupTimelineResponse) GetJSON200() *TimelineEntryList
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (GetAlertGroupTimelineResponse) Status ¶
func (r GetAlertGroupTimelineResponse) Status() string
Status returns HTTPResponse.Status
func (GetAlertGroupTimelineResponse) StatusCode ¶
func (r GetAlertGroupTimelineResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetAlertGroupTimelineResponse429Headers ¶
type GetAlertGroupTimelineResponse429Headers struct {
RetryAfter *int
}
GetAlertGroupTimelineResponse429Headers the declared response headers of an HTTP 429 response for GetAlertGroupTimeline
type GetConnectionResponse ¶
type GetConnectionResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *Connection
// ApplicationproblemJSON401 the response for an HTTP 401 `application/problem+json` response
ApplicationproblemJSON401 *Unauthorized
// ApplicationproblemJSON403 the response for an HTTP 403 `application/problem+json` response
ApplicationproblemJSON403 *Forbidden
// ApplicationproblemJSON404 the response for an HTTP 404 `application/problem+json` response
ApplicationproblemJSON404 *NotFound
// ApplicationproblemJSON429 the response for an HTTP 429 `application/problem+json` response
ApplicationproblemJSON429 *TooManyRequests
// Headers200 the parsed response headers for an HTTP 200 response
Headers200 *GetConnectionResponse200Headers
// Headers429 the parsed response headers for an HTTP 429 response
Headers429 *GetConnectionResponse429Headers
}
func ParseGetConnectionResponse ¶
func ParseGetConnectionResponse(rsp *http.Response) (*GetConnectionResponse, error)
ParseGetConnectionResponse parses an HTTP response from a GetConnectionWithResponse call
func (GetConnectionResponse) ContentType ¶
func (r GetConnectionResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (GetConnectionResponse) GetApplicationproblemJSON401 ¶
func (r GetConnectionResponse) GetApplicationproblemJSON401() *Unauthorized
GetApplicationproblemJSON401 returns the response for an HTTP 401 `application/problem+json` response
func (GetConnectionResponse) GetApplicationproblemJSON403 ¶
func (r GetConnectionResponse) GetApplicationproblemJSON403() *Forbidden
GetApplicationproblemJSON403 returns the response for an HTTP 403 `application/problem+json` response
func (GetConnectionResponse) GetApplicationproblemJSON404 ¶
func (r GetConnectionResponse) GetApplicationproblemJSON404() *NotFound
GetApplicationproblemJSON404 returns the response for an HTTP 404 `application/problem+json` response
func (GetConnectionResponse) GetApplicationproblemJSON429 ¶
func (r GetConnectionResponse) GetApplicationproblemJSON429() *TooManyRequests
GetApplicationproblemJSON429 returns the response for an HTTP 429 `application/problem+json` response
func (GetConnectionResponse) GetBody ¶
func (r GetConnectionResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (GetConnectionResponse) GetJSON200 ¶
func (r GetConnectionResponse) GetJSON200() *Connection
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (GetConnectionResponse) Status ¶
func (r GetConnectionResponse) Status() string
Status returns HTTPResponse.Status
func (GetConnectionResponse) StatusCode ¶
func (r GetConnectionResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetConnectionResponse200Headers ¶
type GetConnectionResponse200Headers struct {
ETag *string
}
GetConnectionResponse200Headers the declared response headers of an HTTP 200 response for GetConnection
type GetConnectionResponse429Headers ¶
type GetConnectionResponse429Headers struct {
RetryAfter *int
}
GetConnectionResponse429Headers the declared response headers of an HTTP 429 response for GetConnection
type GetCurrentSessionResponse ¶
type GetCurrentSessionResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *Session
// ApplicationproblemJSON401 the response for an HTTP 401 `application/problem+json` response
ApplicationproblemJSON401 *Unauthorized
// ApplicationproblemJSON403 the response for an HTTP 403 `application/problem+json` response
ApplicationproblemJSON403 *Forbidden
// ApplicationproblemJSON429 the response for an HTTP 429 `application/problem+json` response
ApplicationproblemJSON429 *TooManyRequests
// Headers429 the parsed response headers for an HTTP 429 response
Headers429 *GetCurrentSessionResponse429Headers
}
func ParseGetCurrentSessionResponse ¶
func ParseGetCurrentSessionResponse(rsp *http.Response) (*GetCurrentSessionResponse, error)
ParseGetCurrentSessionResponse parses an HTTP response from a GetCurrentSessionWithResponse call
func (GetCurrentSessionResponse) ContentType ¶
func (r GetCurrentSessionResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (GetCurrentSessionResponse) GetApplicationproblemJSON401 ¶
func (r GetCurrentSessionResponse) GetApplicationproblemJSON401() *Unauthorized
GetApplicationproblemJSON401 returns the response for an HTTP 401 `application/problem+json` response
func (GetCurrentSessionResponse) GetApplicationproblemJSON403 ¶
func (r GetCurrentSessionResponse) GetApplicationproblemJSON403() *Forbidden
GetApplicationproblemJSON403 returns the response for an HTTP 403 `application/problem+json` response
func (GetCurrentSessionResponse) GetApplicationproblemJSON429 ¶
func (r GetCurrentSessionResponse) GetApplicationproblemJSON429() *TooManyRequests
GetApplicationproblemJSON429 returns the response for an HTTP 429 `application/problem+json` response
func (GetCurrentSessionResponse) GetBody ¶
func (r GetCurrentSessionResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (GetCurrentSessionResponse) GetJSON200 ¶
func (r GetCurrentSessionResponse) GetJSON200() *Session
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (GetCurrentSessionResponse) Status ¶
func (r GetCurrentSessionResponse) Status() string
Status returns HTTPResponse.Status
func (GetCurrentSessionResponse) StatusCode ¶
func (r GetCurrentSessionResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetCurrentSessionResponse429Headers ¶
type GetCurrentSessionResponse429Headers struct {
RetryAfter *int
}
GetCurrentSessionResponse429Headers the declared response headers of an HTTP 429 response for GetCurrentSession
type GetDestinationResponse ¶
type GetDestinationResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *Destination
// ApplicationproblemJSON401 the response for an HTTP 401 `application/problem+json` response
ApplicationproblemJSON401 *Unauthorized
// ApplicationproblemJSON403 the response for an HTTP 403 `application/problem+json` response
ApplicationproblemJSON403 *Forbidden
// ApplicationproblemJSON404 the response for an HTTP 404 `application/problem+json` response
ApplicationproblemJSON404 *NotFound
// ApplicationproblemJSON429 the response for an HTTP 429 `application/problem+json` response
ApplicationproblemJSON429 *TooManyRequests
// Headers200 the parsed response headers for an HTTP 200 response
Headers200 *GetDestinationResponse200Headers
// Headers429 the parsed response headers for an HTTP 429 response
Headers429 *GetDestinationResponse429Headers
}
func ParseGetDestinationResponse ¶
func ParseGetDestinationResponse(rsp *http.Response) (*GetDestinationResponse, error)
ParseGetDestinationResponse parses an HTTP response from a GetDestinationWithResponse call
func (GetDestinationResponse) ContentType ¶
func (r GetDestinationResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (GetDestinationResponse) GetApplicationproblemJSON401 ¶
func (r GetDestinationResponse) GetApplicationproblemJSON401() *Unauthorized
GetApplicationproblemJSON401 returns the response for an HTTP 401 `application/problem+json` response
func (GetDestinationResponse) GetApplicationproblemJSON403 ¶
func (r GetDestinationResponse) GetApplicationproblemJSON403() *Forbidden
GetApplicationproblemJSON403 returns the response for an HTTP 403 `application/problem+json` response
func (GetDestinationResponse) GetApplicationproblemJSON404 ¶
func (r GetDestinationResponse) GetApplicationproblemJSON404() *NotFound
GetApplicationproblemJSON404 returns the response for an HTTP 404 `application/problem+json` response
func (GetDestinationResponse) GetApplicationproblemJSON429 ¶
func (r GetDestinationResponse) GetApplicationproblemJSON429() *TooManyRequests
GetApplicationproblemJSON429 returns the response for an HTTP 429 `application/problem+json` response
func (GetDestinationResponse) GetBody ¶
func (r GetDestinationResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (GetDestinationResponse) GetJSON200 ¶
func (r GetDestinationResponse) GetJSON200() *Destination
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (GetDestinationResponse) Status ¶
func (r GetDestinationResponse) Status() string
Status returns HTTPResponse.Status
func (GetDestinationResponse) StatusCode ¶
func (r GetDestinationResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetDestinationResponse200Headers ¶
type GetDestinationResponse200Headers struct {
ETag *string
}
GetDestinationResponse200Headers the declared response headers of an HTTP 200 response for GetDestination
type GetDestinationResponse429Headers ¶
type GetDestinationResponse429Headers struct {
RetryAfter *int
}
GetDestinationResponse429Headers the declared response headers of an HTTP 429 response for GetDestination
type GetIntegrationResponse ¶
type GetIntegrationResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *Integration
// ApplicationproblemJSON401 the response for an HTTP 401 `application/problem+json` response
ApplicationproblemJSON401 *Unauthorized
// ApplicationproblemJSON403 the response for an HTTP 403 `application/problem+json` response
ApplicationproblemJSON403 *Forbidden
// ApplicationproblemJSON404 the response for an HTTP 404 `application/problem+json` response
ApplicationproblemJSON404 *NotFound
// ApplicationproblemJSON429 the response for an HTTP 429 `application/problem+json` response
ApplicationproblemJSON429 *TooManyRequests
// Headers200 the parsed response headers for an HTTP 200 response
Headers200 *GetIntegrationResponse200Headers
// Headers429 the parsed response headers for an HTTP 429 response
Headers429 *GetIntegrationResponse429Headers
}
func ParseGetIntegrationResponse ¶
func ParseGetIntegrationResponse(rsp *http.Response) (*GetIntegrationResponse, error)
ParseGetIntegrationResponse parses an HTTP response from a GetIntegrationWithResponse call
func (GetIntegrationResponse) ContentType ¶
func (r GetIntegrationResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (GetIntegrationResponse) GetApplicationproblemJSON401 ¶
func (r GetIntegrationResponse) GetApplicationproblemJSON401() *Unauthorized
GetApplicationproblemJSON401 returns the response for an HTTP 401 `application/problem+json` response
func (GetIntegrationResponse) GetApplicationproblemJSON403 ¶
func (r GetIntegrationResponse) GetApplicationproblemJSON403() *Forbidden
GetApplicationproblemJSON403 returns the response for an HTTP 403 `application/problem+json` response
func (GetIntegrationResponse) GetApplicationproblemJSON404 ¶
func (r GetIntegrationResponse) GetApplicationproblemJSON404() *NotFound
GetApplicationproblemJSON404 returns the response for an HTTP 404 `application/problem+json` response
func (GetIntegrationResponse) GetApplicationproblemJSON429 ¶
func (r GetIntegrationResponse) GetApplicationproblemJSON429() *TooManyRequests
GetApplicationproblemJSON429 returns the response for an HTTP 429 `application/problem+json` response
func (GetIntegrationResponse) GetBody ¶
func (r GetIntegrationResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (GetIntegrationResponse) GetJSON200 ¶
func (r GetIntegrationResponse) GetJSON200() *Integration
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (GetIntegrationResponse) Status ¶
func (r GetIntegrationResponse) Status() string
Status returns HTTPResponse.Status
func (GetIntegrationResponse) StatusCode ¶
func (r GetIntegrationResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetIntegrationResponse200Headers ¶
type GetIntegrationResponse200Headers struct {
ETag *string
}
GetIntegrationResponse200Headers the declared response headers of an HTTP 200 response for GetIntegration
type GetIntegrationResponse429Headers ¶
type GetIntegrationResponse429Headers struct {
RetryAfter *int
}
GetIntegrationResponse429Headers the declared response headers of an HTTP 429 response for GetIntegration
type GetKeyringResponse ¶
type GetKeyringResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *Keyring
// ApplicationproblemJSON401 the response for an HTTP 401 `application/problem+json` response
ApplicationproblemJSON401 *Unauthorized
// ApplicationproblemJSON403 the response for an HTTP 403 `application/problem+json` response
ApplicationproblemJSON403 *Forbidden
// ApplicationproblemJSON429 the response for an HTTP 429 `application/problem+json` response
ApplicationproblemJSON429 *TooManyRequests
// Headers429 the parsed response headers for an HTTP 429 response
Headers429 *GetKeyringResponse429Headers
}
func ParseGetKeyringResponse ¶
func ParseGetKeyringResponse(rsp *http.Response) (*GetKeyringResponse, error)
ParseGetKeyringResponse parses an HTTP response from a GetKeyringWithResponse call
func (GetKeyringResponse) ContentType ¶
func (r GetKeyringResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (GetKeyringResponse) GetApplicationproblemJSON401 ¶
func (r GetKeyringResponse) GetApplicationproblemJSON401() *Unauthorized
GetApplicationproblemJSON401 returns the response for an HTTP 401 `application/problem+json` response
func (GetKeyringResponse) GetApplicationproblemJSON403 ¶
func (r GetKeyringResponse) GetApplicationproblemJSON403() *Forbidden
GetApplicationproblemJSON403 returns the response for an HTTP 403 `application/problem+json` response
func (GetKeyringResponse) GetApplicationproblemJSON429 ¶
func (r GetKeyringResponse) GetApplicationproblemJSON429() *TooManyRequests
GetApplicationproblemJSON429 returns the response for an HTTP 429 `application/problem+json` response
func (GetKeyringResponse) GetBody ¶
func (r GetKeyringResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (GetKeyringResponse) GetJSON200 ¶
func (r GetKeyringResponse) GetJSON200() *Keyring
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (GetKeyringResponse) Status ¶
func (r GetKeyringResponse) Status() string
Status returns HTTPResponse.Status
func (GetKeyringResponse) StatusCode ¶
func (r GetKeyringResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetKeyringResponse429Headers ¶
type GetKeyringResponse429Headers struct {
RetryAfter *int
}
GetKeyringResponse429Headers the declared response headers of an HTTP 429 response for GetKeyring
type GetLinkRuleResponse ¶
type GetLinkRuleResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *LinkRule
// ApplicationproblemJSON401 the response for an HTTP 401 `application/problem+json` response
ApplicationproblemJSON401 *Unauthorized
// ApplicationproblemJSON403 the response for an HTTP 403 `application/problem+json` response
ApplicationproblemJSON403 *Forbidden
// ApplicationproblemJSON404 the response for an HTTP 404 `application/problem+json` response
ApplicationproblemJSON404 *NotFound
// ApplicationproblemJSON429 the response for an HTTP 429 `application/problem+json` response
ApplicationproblemJSON429 *TooManyRequests
// Headers200 the parsed response headers for an HTTP 200 response
Headers200 *GetLinkRuleResponse200Headers
// Headers429 the parsed response headers for an HTTP 429 response
Headers429 *GetLinkRuleResponse429Headers
}
func ParseGetLinkRuleResponse ¶
func ParseGetLinkRuleResponse(rsp *http.Response) (*GetLinkRuleResponse, error)
ParseGetLinkRuleResponse parses an HTTP response from a GetLinkRuleWithResponse call
func (GetLinkRuleResponse) ContentType ¶
func (r GetLinkRuleResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (GetLinkRuleResponse) GetApplicationproblemJSON401 ¶
func (r GetLinkRuleResponse) GetApplicationproblemJSON401() *Unauthorized
GetApplicationproblemJSON401 returns the response for an HTTP 401 `application/problem+json` response
func (GetLinkRuleResponse) GetApplicationproblemJSON403 ¶
func (r GetLinkRuleResponse) GetApplicationproblemJSON403() *Forbidden
GetApplicationproblemJSON403 returns the response for an HTTP 403 `application/problem+json` response
func (GetLinkRuleResponse) GetApplicationproblemJSON404 ¶
func (r GetLinkRuleResponse) GetApplicationproblemJSON404() *NotFound
GetApplicationproblemJSON404 returns the response for an HTTP 404 `application/problem+json` response
func (GetLinkRuleResponse) GetApplicationproblemJSON429 ¶
func (r GetLinkRuleResponse) GetApplicationproblemJSON429() *TooManyRequests
GetApplicationproblemJSON429 returns the response for an HTTP 429 `application/problem+json` response
func (GetLinkRuleResponse) GetBody ¶
func (r GetLinkRuleResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (GetLinkRuleResponse) GetJSON200 ¶
func (r GetLinkRuleResponse) GetJSON200() *LinkRule
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (GetLinkRuleResponse) Status ¶
func (r GetLinkRuleResponse) Status() string
Status returns HTTPResponse.Status
func (GetLinkRuleResponse) StatusCode ¶
func (r GetLinkRuleResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetLinkRuleResponse200Headers ¶
type GetLinkRuleResponse200Headers struct {
ETag *string
}
GetLinkRuleResponse200Headers the declared response headers of an HTTP 200 response for GetLinkRule
type GetLinkRuleResponse429Headers ¶
type GetLinkRuleResponse429Headers struct {
RetryAfter *int
}
GetLinkRuleResponse429Headers the declared response headers of an HTTP 429 response for GetLinkRule
type GetLookupTableResponse ¶
type GetLookupTableResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *LookupTable
// ApplicationproblemJSON401 the response for an HTTP 401 `application/problem+json` response
ApplicationproblemJSON401 *Unauthorized
// ApplicationproblemJSON403 the response for an HTTP 403 `application/problem+json` response
ApplicationproblemJSON403 *Forbidden
// ApplicationproblemJSON404 the response for an HTTP 404 `application/problem+json` response
ApplicationproblemJSON404 *NotFound
// ApplicationproblemJSON429 the response for an HTTP 429 `application/problem+json` response
ApplicationproblemJSON429 *TooManyRequests
// Headers200 the parsed response headers for an HTTP 200 response
Headers200 *GetLookupTableResponse200Headers
// Headers429 the parsed response headers for an HTTP 429 response
Headers429 *GetLookupTableResponse429Headers
}
func ParseGetLookupTableResponse ¶
func ParseGetLookupTableResponse(rsp *http.Response) (*GetLookupTableResponse, error)
ParseGetLookupTableResponse parses an HTTP response from a GetLookupTableWithResponse call
func (GetLookupTableResponse) ContentType ¶
func (r GetLookupTableResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (GetLookupTableResponse) GetApplicationproblemJSON401 ¶
func (r GetLookupTableResponse) GetApplicationproblemJSON401() *Unauthorized
GetApplicationproblemJSON401 returns the response for an HTTP 401 `application/problem+json` response
func (GetLookupTableResponse) GetApplicationproblemJSON403 ¶
func (r GetLookupTableResponse) GetApplicationproblemJSON403() *Forbidden
GetApplicationproblemJSON403 returns the response for an HTTP 403 `application/problem+json` response
func (GetLookupTableResponse) GetApplicationproblemJSON404 ¶
func (r GetLookupTableResponse) GetApplicationproblemJSON404() *NotFound
GetApplicationproblemJSON404 returns the response for an HTTP 404 `application/problem+json` response
func (GetLookupTableResponse) GetApplicationproblemJSON429 ¶
func (r GetLookupTableResponse) GetApplicationproblemJSON429() *TooManyRequests
GetApplicationproblemJSON429 returns the response for an HTTP 429 `application/problem+json` response
func (GetLookupTableResponse) GetBody ¶
func (r GetLookupTableResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (GetLookupTableResponse) GetJSON200 ¶
func (r GetLookupTableResponse) GetJSON200() *LookupTable
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (GetLookupTableResponse) Status ¶
func (r GetLookupTableResponse) Status() string
Status returns HTTPResponse.Status
func (GetLookupTableResponse) StatusCode ¶
func (r GetLookupTableResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetLookupTableResponse200Headers ¶
type GetLookupTableResponse200Headers struct {
ETag *string
}
GetLookupTableResponse200Headers the declared response headers of an HTTP 200 response for GetLookupTable
type GetLookupTableResponse429Headers ¶
type GetLookupTableResponse429Headers struct {
RetryAfter *int
}
GetLookupTableResponse429Headers the declared response headers of an HTTP 429 response for GetLookupTable
type GetMeResponse ¶
type GetMeResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *Me
// ApplicationproblemJSON401 the response for an HTTP 401 `application/problem+json` response
ApplicationproblemJSON401 *Unauthorized
// ApplicationproblemJSON403 the response for an HTTP 403 `application/problem+json` response
ApplicationproblemJSON403 *Forbidden
// ApplicationproblemJSON429 the response for an HTTP 429 `application/problem+json` response
ApplicationproblemJSON429 *TooManyRequests
// Headers429 the parsed response headers for an HTTP 429 response
Headers429 *GetMeResponse429Headers
}
func ParseGetMeResponse ¶
func ParseGetMeResponse(rsp *http.Response) (*GetMeResponse, error)
ParseGetMeResponse parses an HTTP response from a GetMeWithResponse call
func (GetMeResponse) ContentType ¶
func (r GetMeResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (GetMeResponse) GetApplicationproblemJSON401 ¶
func (r GetMeResponse) GetApplicationproblemJSON401() *Unauthorized
GetApplicationproblemJSON401 returns the response for an HTTP 401 `application/problem+json` response
func (GetMeResponse) GetApplicationproblemJSON403 ¶
func (r GetMeResponse) GetApplicationproblemJSON403() *Forbidden
GetApplicationproblemJSON403 returns the response for an HTTP 403 `application/problem+json` response
func (GetMeResponse) GetApplicationproblemJSON429 ¶
func (r GetMeResponse) GetApplicationproblemJSON429() *TooManyRequests
GetApplicationproblemJSON429 returns the response for an HTTP 429 `application/problem+json` response
func (GetMeResponse) GetBody ¶
func (r GetMeResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (GetMeResponse) GetJSON200 ¶
func (r GetMeResponse) GetJSON200() *Me
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (GetMeResponse) Status ¶
func (r GetMeResponse) Status() string
Status returns HTTPResponse.Status
func (GetMeResponse) StatusCode ¶
func (r GetMeResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetMeResponse429Headers ¶
type GetMeResponse429Headers struct {
RetryAfter *int
}
GetMeResponse429Headers the declared response headers of an HTTP 429 response for GetMe
type GetMyTotpResponse ¶
type GetMyTotpResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *TotpStatus
// ApplicationproblemJSON401 the response for an HTTP 401 `application/problem+json` response
ApplicationproblemJSON401 *Unauthorized
// ApplicationproblemJSON403 the response for an HTTP 403 `application/problem+json` response
ApplicationproblemJSON403 *Forbidden
// ApplicationproblemJSON429 the response for an HTTP 429 `application/problem+json` response
ApplicationproblemJSON429 *TooManyRequests
// Headers429 the parsed response headers for an HTTP 429 response
Headers429 *GetMyTotpResponse429Headers
}
func ParseGetMyTotpResponse ¶
func ParseGetMyTotpResponse(rsp *http.Response) (*GetMyTotpResponse, error)
ParseGetMyTotpResponse parses an HTTP response from a GetMyTotpWithResponse call
func (GetMyTotpResponse) ContentType ¶
func (r GetMyTotpResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (GetMyTotpResponse) GetApplicationproblemJSON401 ¶
func (r GetMyTotpResponse) GetApplicationproblemJSON401() *Unauthorized
GetApplicationproblemJSON401 returns the response for an HTTP 401 `application/problem+json` response
func (GetMyTotpResponse) GetApplicationproblemJSON403 ¶
func (r GetMyTotpResponse) GetApplicationproblemJSON403() *Forbidden
GetApplicationproblemJSON403 returns the response for an HTTP 403 `application/problem+json` response
func (GetMyTotpResponse) GetApplicationproblemJSON429 ¶
func (r GetMyTotpResponse) GetApplicationproblemJSON429() *TooManyRequests
GetApplicationproblemJSON429 returns the response for an HTTP 429 `application/problem+json` response
func (GetMyTotpResponse) GetBody ¶
func (r GetMyTotpResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (GetMyTotpResponse) GetJSON200 ¶
func (r GetMyTotpResponse) GetJSON200() *TotpStatus
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (GetMyTotpResponse) Status ¶
func (r GetMyTotpResponse) Status() string
Status returns HTTPResponse.Status
func (GetMyTotpResponse) StatusCode ¶
func (r GetMyTotpResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetMyTotpResponse429Headers ¶
type GetMyTotpResponse429Headers struct {
RetryAfter *int
}
GetMyTotpResponse429Headers the declared response headers of an HTTP 429 response for GetMyTotp
type GetOidcSettingsResponse ¶
type GetOidcSettingsResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *OidcSettings
// ApplicationproblemJSON401 the response for an HTTP 401 `application/problem+json` response
ApplicationproblemJSON401 *Unauthorized
// ApplicationproblemJSON403 the response for an HTTP 403 `application/problem+json` response
ApplicationproblemJSON403 *Forbidden
// ApplicationproblemJSON429 the response for an HTTP 429 `application/problem+json` response
ApplicationproblemJSON429 *TooManyRequests
// Headers200 the parsed response headers for an HTTP 200 response
Headers200 *GetOidcSettingsResponse200Headers
// Headers429 the parsed response headers for an HTTP 429 response
Headers429 *GetOidcSettingsResponse429Headers
}
func ParseGetOidcSettingsResponse ¶
func ParseGetOidcSettingsResponse(rsp *http.Response) (*GetOidcSettingsResponse, error)
ParseGetOidcSettingsResponse parses an HTTP response from a GetOidcSettingsWithResponse call
func (GetOidcSettingsResponse) ContentType ¶
func (r GetOidcSettingsResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (GetOidcSettingsResponse) GetApplicationproblemJSON401 ¶
func (r GetOidcSettingsResponse) GetApplicationproblemJSON401() *Unauthorized
GetApplicationproblemJSON401 returns the response for an HTTP 401 `application/problem+json` response
func (GetOidcSettingsResponse) GetApplicationproblemJSON403 ¶
func (r GetOidcSettingsResponse) GetApplicationproblemJSON403() *Forbidden
GetApplicationproblemJSON403 returns the response for an HTTP 403 `application/problem+json` response
func (GetOidcSettingsResponse) GetApplicationproblemJSON429 ¶
func (r GetOidcSettingsResponse) GetApplicationproblemJSON429() *TooManyRequests
GetApplicationproblemJSON429 returns the response for an HTTP 429 `application/problem+json` response
func (GetOidcSettingsResponse) GetBody ¶
func (r GetOidcSettingsResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (GetOidcSettingsResponse) GetJSON200 ¶
func (r GetOidcSettingsResponse) GetJSON200() *OidcSettings
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (GetOidcSettingsResponse) Status ¶
func (r GetOidcSettingsResponse) Status() string
Status returns HTTPResponse.Status
func (GetOidcSettingsResponse) StatusCode ¶
func (r GetOidcSettingsResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetOidcSettingsResponse200Headers ¶
type GetOidcSettingsResponse200Headers struct {
ETag *string
}
GetOidcSettingsResponse200Headers the declared response headers of an HTTP 200 response for GetOidcSettings
type GetOidcSettingsResponse429Headers ¶
type GetOidcSettingsResponse429Headers struct {
RetryAfter *int
}
GetOidcSettingsResponse429Headers the declared response headers of an HTTP 429 response for GetOidcSettings
type GetOpenApiSpecResponse ¶
type GetOpenApiSpecResponse struct {
Body []byte
HTTPResponse *http.Response
// YAML200 the response for an HTTP 200 `application/yaml` response
YAML200 *string
}
func ParseGetOpenApiSpecResponse ¶
func ParseGetOpenApiSpecResponse(rsp *http.Response) (*GetOpenApiSpecResponse, error)
ParseGetOpenApiSpecResponse parses an HTTP response from a GetOpenApiSpecWithResponse call
func (GetOpenApiSpecResponse) ContentType ¶
func (r GetOpenApiSpecResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (GetOpenApiSpecResponse) GetBody ¶
func (r GetOpenApiSpecResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (GetOpenApiSpecResponse) GetYAML200 ¶
func (r GetOpenApiSpecResponse) GetYAML200() *string
GetYAML200 returns the response for an HTTP 200 `application/yaml` response
func (GetOpenApiSpecResponse) Status ¶
func (r GetOpenApiSpecResponse) Status() string
Status returns HTTPResponse.Status
func (GetOpenApiSpecResponse) StatusCode ¶
func (r GetOpenApiSpecResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetOrganizationResponse ¶
type GetOrganizationResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *Organization
// ApplicationproblemJSON401 the response for an HTTP 401 `application/problem+json` response
ApplicationproblemJSON401 *Unauthorized
// ApplicationproblemJSON403 the response for an HTTP 403 `application/problem+json` response
ApplicationproblemJSON403 *Forbidden
// ApplicationproblemJSON429 the response for an HTTP 429 `application/problem+json` response
ApplicationproblemJSON429 *TooManyRequests
// Headers200 the parsed response headers for an HTTP 200 response
Headers200 *GetOrganizationResponse200Headers
// Headers429 the parsed response headers for an HTTP 429 response
Headers429 *GetOrganizationResponse429Headers
}
func ParseGetOrganizationResponse ¶
func ParseGetOrganizationResponse(rsp *http.Response) (*GetOrganizationResponse, error)
ParseGetOrganizationResponse parses an HTTP response from a GetOrganizationWithResponse call
func (GetOrganizationResponse) ContentType ¶
func (r GetOrganizationResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (GetOrganizationResponse) GetApplicationproblemJSON401 ¶
func (r GetOrganizationResponse) GetApplicationproblemJSON401() *Unauthorized
GetApplicationproblemJSON401 returns the response for an HTTP 401 `application/problem+json` response
func (GetOrganizationResponse) GetApplicationproblemJSON403 ¶
func (r GetOrganizationResponse) GetApplicationproblemJSON403() *Forbidden
GetApplicationproblemJSON403 returns the response for an HTTP 403 `application/problem+json` response
func (GetOrganizationResponse) GetApplicationproblemJSON429 ¶
func (r GetOrganizationResponse) GetApplicationproblemJSON429() *TooManyRequests
GetApplicationproblemJSON429 returns the response for an HTTP 429 `application/problem+json` response
func (GetOrganizationResponse) GetBody ¶
func (r GetOrganizationResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (GetOrganizationResponse) GetJSON200 ¶
func (r GetOrganizationResponse) GetJSON200() *Organization
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (GetOrganizationResponse) Status ¶
func (r GetOrganizationResponse) Status() string
Status returns HTTPResponse.Status
func (GetOrganizationResponse) StatusCode ¶
func (r GetOrganizationResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetOrganizationResponse200Headers ¶
type GetOrganizationResponse200Headers struct {
ETag *string
}
GetOrganizationResponse200Headers the declared response headers of an HTTP 200 response for GetOrganization
type GetOrganizationResponse429Headers ¶
type GetOrganizationResponse429Headers struct {
RetryAfter *int
}
GetOrganizationResponse429Headers the declared response headers of an HTTP 429 response for GetOrganization
type GetOutboundPolicyResponse ¶
type GetOutboundPolicyResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *OutboundPolicy
// ApplicationproblemJSON401 the response for an HTTP 401 `application/problem+json` response
ApplicationproblemJSON401 *Unauthorized
// ApplicationproblemJSON403 the response for an HTTP 403 `application/problem+json` response
ApplicationproblemJSON403 *Forbidden
// ApplicationproblemJSON429 the response for an HTTP 429 `application/problem+json` response
ApplicationproblemJSON429 *TooManyRequests
// Headers200 the parsed response headers for an HTTP 200 response
Headers200 *GetOutboundPolicyResponse200Headers
// Headers429 the parsed response headers for an HTTP 429 response
Headers429 *GetOutboundPolicyResponse429Headers
}
func ParseGetOutboundPolicyResponse ¶
func ParseGetOutboundPolicyResponse(rsp *http.Response) (*GetOutboundPolicyResponse, error)
ParseGetOutboundPolicyResponse parses an HTTP response from a GetOutboundPolicyWithResponse call
func (GetOutboundPolicyResponse) ContentType ¶
func (r GetOutboundPolicyResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (GetOutboundPolicyResponse) GetApplicationproblemJSON401 ¶
func (r GetOutboundPolicyResponse) GetApplicationproblemJSON401() *Unauthorized
GetApplicationproblemJSON401 returns the response for an HTTP 401 `application/problem+json` response
func (GetOutboundPolicyResponse) GetApplicationproblemJSON403 ¶
func (r GetOutboundPolicyResponse) GetApplicationproblemJSON403() *Forbidden
GetApplicationproblemJSON403 returns the response for an HTTP 403 `application/problem+json` response
func (GetOutboundPolicyResponse) GetApplicationproblemJSON429 ¶
func (r GetOutboundPolicyResponse) GetApplicationproblemJSON429() *TooManyRequests
GetApplicationproblemJSON429 returns the response for an HTTP 429 `application/problem+json` response
func (GetOutboundPolicyResponse) GetBody ¶
func (r GetOutboundPolicyResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (GetOutboundPolicyResponse) GetJSON200 ¶
func (r GetOutboundPolicyResponse) GetJSON200() *OutboundPolicy
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (GetOutboundPolicyResponse) Status ¶
func (r GetOutboundPolicyResponse) Status() string
Status returns HTTPResponse.Status
func (GetOutboundPolicyResponse) StatusCode ¶
func (r GetOutboundPolicyResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetOutboundPolicyResponse200Headers ¶
type GetOutboundPolicyResponse200Headers struct {
ETag *string
}
GetOutboundPolicyResponse200Headers the declared response headers of an HTTP 200 response for GetOutboundPolicy
type GetOutboundPolicyResponse429Headers ¶
type GetOutboundPolicyResponse429Headers struct {
RetryAfter *int
}
GetOutboundPolicyResponse429Headers the declared response headers of an HTTP 429 response for GetOutboundPolicy
type GetRequestRecordResponse ¶
type GetRequestRecordResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *RequestRecord
// ApplicationproblemJSON401 the response for an HTTP 401 `application/problem+json` response
ApplicationproblemJSON401 *Unauthorized
// ApplicationproblemJSON403 the response for an HTTP 403 `application/problem+json` response
ApplicationproblemJSON403 *Forbidden
// ApplicationproblemJSON404 the response for an HTTP 404 `application/problem+json` response
ApplicationproblemJSON404 *NotFound
// ApplicationproblemJSON429 the response for an HTTP 429 `application/problem+json` response
ApplicationproblemJSON429 *TooManyRequests
// Headers429 the parsed response headers for an HTTP 429 response
Headers429 *GetRequestRecordResponse429Headers
}
func ParseGetRequestRecordResponse ¶
func ParseGetRequestRecordResponse(rsp *http.Response) (*GetRequestRecordResponse, error)
ParseGetRequestRecordResponse parses an HTTP response from a GetRequestRecordWithResponse call
func (GetRequestRecordResponse) ContentType ¶
func (r GetRequestRecordResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (GetRequestRecordResponse) GetApplicationproblemJSON401 ¶
func (r GetRequestRecordResponse) GetApplicationproblemJSON401() *Unauthorized
GetApplicationproblemJSON401 returns the response for an HTTP 401 `application/problem+json` response
func (GetRequestRecordResponse) GetApplicationproblemJSON403 ¶
func (r GetRequestRecordResponse) GetApplicationproblemJSON403() *Forbidden
GetApplicationproblemJSON403 returns the response for an HTTP 403 `application/problem+json` response
func (GetRequestRecordResponse) GetApplicationproblemJSON404 ¶
func (r GetRequestRecordResponse) GetApplicationproblemJSON404() *NotFound
GetApplicationproblemJSON404 returns the response for an HTTP 404 `application/problem+json` response
func (GetRequestRecordResponse) GetApplicationproblemJSON429 ¶
func (r GetRequestRecordResponse) GetApplicationproblemJSON429() *TooManyRequests
GetApplicationproblemJSON429 returns the response for an HTTP 429 `application/problem+json` response
func (GetRequestRecordResponse) GetBody ¶
func (r GetRequestRecordResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (GetRequestRecordResponse) GetJSON200 ¶
func (r GetRequestRecordResponse) GetJSON200() *RequestRecord
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (GetRequestRecordResponse) Status ¶
func (r GetRequestRecordResponse) Status() string
Status returns HTTPResponse.Status
func (GetRequestRecordResponse) StatusCode ¶
func (r GetRequestRecordResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetRequestRecordResponse429Headers ¶
type GetRequestRecordResponse429Headers struct {
RetryAfter *int
}
GetRequestRecordResponse429Headers the declared response headers of an HTTP 429 response for GetRequestRecord
type GetRouteResponse ¶
type GetRouteResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *Route
// ApplicationproblemJSON401 the response for an HTTP 401 `application/problem+json` response
ApplicationproblemJSON401 *Unauthorized
// ApplicationproblemJSON403 the response for an HTTP 403 `application/problem+json` response
ApplicationproblemJSON403 *Forbidden
// ApplicationproblemJSON404 the response for an HTTP 404 `application/problem+json` response
ApplicationproblemJSON404 *NotFound
// ApplicationproblemJSON429 the response for an HTTP 429 `application/problem+json` response
ApplicationproblemJSON429 *TooManyRequests
// Headers200 the parsed response headers for an HTTP 200 response
Headers200 *GetRouteResponse200Headers
// Headers429 the parsed response headers for an HTTP 429 response
Headers429 *GetRouteResponse429Headers
}
func ParseGetRouteResponse ¶
func ParseGetRouteResponse(rsp *http.Response) (*GetRouteResponse, error)
ParseGetRouteResponse parses an HTTP response from a GetRouteWithResponse call
func (GetRouteResponse) ContentType ¶
func (r GetRouteResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (GetRouteResponse) GetApplicationproblemJSON401 ¶
func (r GetRouteResponse) GetApplicationproblemJSON401() *Unauthorized
GetApplicationproblemJSON401 returns the response for an HTTP 401 `application/problem+json` response
func (GetRouteResponse) GetApplicationproblemJSON403 ¶
func (r GetRouteResponse) GetApplicationproblemJSON403() *Forbidden
GetApplicationproblemJSON403 returns the response for an HTTP 403 `application/problem+json` response
func (GetRouteResponse) GetApplicationproblemJSON404 ¶
func (r GetRouteResponse) GetApplicationproblemJSON404() *NotFound
GetApplicationproblemJSON404 returns the response for an HTTP 404 `application/problem+json` response
func (GetRouteResponse) GetApplicationproblemJSON429 ¶
func (r GetRouteResponse) GetApplicationproblemJSON429() *TooManyRequests
GetApplicationproblemJSON429 returns the response for an HTTP 429 `application/problem+json` response
func (GetRouteResponse) GetBody ¶
func (r GetRouteResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (GetRouteResponse) GetJSON200 ¶
func (r GetRouteResponse) GetJSON200() *Route
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (GetRouteResponse) Status ¶
func (r GetRouteResponse) Status() string
Status returns HTTPResponse.Status
func (GetRouteResponse) StatusCode ¶
func (r GetRouteResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetRouteResponse200Headers ¶
type GetRouteResponse200Headers struct {
ETag *string
}
GetRouteResponse200Headers the declared response headers of an HTTP 200 response for GetRoute
type GetRouteResponse429Headers ¶
type GetRouteResponse429Headers struct {
RetryAfter *int
}
GetRouteResponse429Headers the declared response headers of an HTTP 429 response for GetRoute
type GetServiceAccountResponse ¶
type GetServiceAccountResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *ServiceAccount
// ApplicationproblemJSON401 the response for an HTTP 401 `application/problem+json` response
ApplicationproblemJSON401 *Unauthorized
// ApplicationproblemJSON403 the response for an HTTP 403 `application/problem+json` response
ApplicationproblemJSON403 *Forbidden
// ApplicationproblemJSON404 the response for an HTTP 404 `application/problem+json` response
ApplicationproblemJSON404 *NotFound
// ApplicationproblemJSON429 the response for an HTTP 429 `application/problem+json` response
ApplicationproblemJSON429 *TooManyRequests
// Headers200 the parsed response headers for an HTTP 200 response
Headers200 *GetServiceAccountResponse200Headers
// Headers429 the parsed response headers for an HTTP 429 response
Headers429 *GetServiceAccountResponse429Headers
}
func ParseGetServiceAccountResponse ¶
func ParseGetServiceAccountResponse(rsp *http.Response) (*GetServiceAccountResponse, error)
ParseGetServiceAccountResponse parses an HTTP response from a GetServiceAccountWithResponse call
func (GetServiceAccountResponse) ContentType ¶
func (r GetServiceAccountResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (GetServiceAccountResponse) GetApplicationproblemJSON401 ¶
func (r GetServiceAccountResponse) GetApplicationproblemJSON401() *Unauthorized
GetApplicationproblemJSON401 returns the response for an HTTP 401 `application/problem+json` response
func (GetServiceAccountResponse) GetApplicationproblemJSON403 ¶
func (r GetServiceAccountResponse) GetApplicationproblemJSON403() *Forbidden
GetApplicationproblemJSON403 returns the response for an HTTP 403 `application/problem+json` response
func (GetServiceAccountResponse) GetApplicationproblemJSON404 ¶
func (r GetServiceAccountResponse) GetApplicationproblemJSON404() *NotFound
GetApplicationproblemJSON404 returns the response for an HTTP 404 `application/problem+json` response
func (GetServiceAccountResponse) GetApplicationproblemJSON429 ¶
func (r GetServiceAccountResponse) GetApplicationproblemJSON429() *TooManyRequests
GetApplicationproblemJSON429 returns the response for an HTTP 429 `application/problem+json` response
func (GetServiceAccountResponse) GetBody ¶
func (r GetServiceAccountResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (GetServiceAccountResponse) GetJSON200 ¶
func (r GetServiceAccountResponse) GetJSON200() *ServiceAccount
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (GetServiceAccountResponse) Status ¶
func (r GetServiceAccountResponse) Status() string
Status returns HTTPResponse.Status
func (GetServiceAccountResponse) StatusCode ¶
func (r GetServiceAccountResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetServiceAccountResponse200Headers ¶
type GetServiceAccountResponse200Headers struct {
ETag *string
}
GetServiceAccountResponse200Headers the declared response headers of an HTTP 200 response for GetServiceAccount
type GetServiceAccountResponse429Headers ¶
type GetServiceAccountResponse429Headers struct {
RetryAfter *int
}
GetServiceAccountResponse429Headers the declared response headers of an HTTP 429 response for GetServiceAccount
type GetSignInOptionsResponse ¶
type GetSignInOptionsResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *SignInOptions
// ApplicationproblemJSON429 the response for an HTTP 429 `application/problem+json` response
ApplicationproblemJSON429 *TooManyRequests
// Headers429 the parsed response headers for an HTTP 429 response
Headers429 *GetSignInOptionsResponse429Headers
}
func ParseGetSignInOptionsResponse ¶
func ParseGetSignInOptionsResponse(rsp *http.Response) (*GetSignInOptionsResponse, error)
ParseGetSignInOptionsResponse parses an HTTP response from a GetSignInOptionsWithResponse call
func (GetSignInOptionsResponse) ContentType ¶
func (r GetSignInOptionsResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (GetSignInOptionsResponse) GetApplicationproblemJSON429 ¶
func (r GetSignInOptionsResponse) GetApplicationproblemJSON429() *TooManyRequests
GetApplicationproblemJSON429 returns the response for an HTTP 429 `application/problem+json` response
func (GetSignInOptionsResponse) GetBody ¶
func (r GetSignInOptionsResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (GetSignInOptionsResponse) GetJSON200 ¶
func (r GetSignInOptionsResponse) GetJSON200() *SignInOptions
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (GetSignInOptionsResponse) Status ¶
func (r GetSignInOptionsResponse) Status() string
Status returns HTTPResponse.Status
func (GetSignInOptionsResponse) StatusCode ¶
func (r GetSignInOptionsResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetSignInOptionsResponse429Headers ¶
type GetSignInOptionsResponse429Headers struct {
RetryAfter *int
}
GetSignInOptionsResponse429Headers the declared response headers of an HTTP 429 response for GetSignInOptions
type GetSigningSecretResponse ¶
type GetSigningSecretResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *SigningSecretStatus
// ApplicationproblemJSON401 the response for an HTTP 401 `application/problem+json` response
ApplicationproblemJSON401 *Unauthorized
// ApplicationproblemJSON403 the response for an HTTP 403 `application/problem+json` response
ApplicationproblemJSON403 *Forbidden
// ApplicationproblemJSON404 the response for an HTTP 404 `application/problem+json` response
ApplicationproblemJSON404 *NotFound
// ApplicationproblemJSON409 the response for an HTTP 409 `application/problem+json` response
ApplicationproblemJSON409 *Conflict
// ApplicationproblemJSON429 the response for an HTTP 429 `application/problem+json` response
ApplicationproblemJSON429 *TooManyRequests
// Headers429 the parsed response headers for an HTTP 429 response
Headers429 *GetSigningSecretResponse429Headers
}
func ParseGetSigningSecretResponse ¶
func ParseGetSigningSecretResponse(rsp *http.Response) (*GetSigningSecretResponse, error)
ParseGetSigningSecretResponse parses an HTTP response from a GetSigningSecretWithResponse call
func (GetSigningSecretResponse) ContentType ¶
func (r GetSigningSecretResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (GetSigningSecretResponse) GetApplicationproblemJSON401 ¶
func (r GetSigningSecretResponse) GetApplicationproblemJSON401() *Unauthorized
GetApplicationproblemJSON401 returns the response for an HTTP 401 `application/problem+json` response
func (GetSigningSecretResponse) GetApplicationproblemJSON403 ¶
func (r GetSigningSecretResponse) GetApplicationproblemJSON403() *Forbidden
GetApplicationproblemJSON403 returns the response for an HTTP 403 `application/problem+json` response
func (GetSigningSecretResponse) GetApplicationproblemJSON404 ¶
func (r GetSigningSecretResponse) GetApplicationproblemJSON404() *NotFound
GetApplicationproblemJSON404 returns the response for an HTTP 404 `application/problem+json` response
func (GetSigningSecretResponse) GetApplicationproblemJSON409 ¶
func (r GetSigningSecretResponse) GetApplicationproblemJSON409() *Conflict
GetApplicationproblemJSON409 returns the response for an HTTP 409 `application/problem+json` response
func (GetSigningSecretResponse) GetApplicationproblemJSON429 ¶
func (r GetSigningSecretResponse) GetApplicationproblemJSON429() *TooManyRequests
GetApplicationproblemJSON429 returns the response for an HTTP 429 `application/problem+json` response
func (GetSigningSecretResponse) GetBody ¶
func (r GetSigningSecretResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (GetSigningSecretResponse) GetJSON200 ¶
func (r GetSigningSecretResponse) GetJSON200() *SigningSecretStatus
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (GetSigningSecretResponse) Status ¶
func (r GetSigningSecretResponse) Status() string
Status returns HTTPResponse.Status
func (GetSigningSecretResponse) StatusCode ¶
func (r GetSigningSecretResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetSigningSecretResponse429Headers ¶
type GetSigningSecretResponse429Headers struct {
RetryAfter *int
}
GetSigningSecretResponse429Headers the declared response headers of an HTTP 429 response for GetSigningSecret
type GetStoredSnapshotResponse ¶
type GetStoredSnapshotResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *StoredSnapshot
// ApplicationproblemJSON401 the response for an HTTP 401 `application/problem+json` response
ApplicationproblemJSON401 *Unauthorized
// ApplicationproblemJSON403 the response for an HTTP 403 `application/problem+json` response
ApplicationproblemJSON403 *Forbidden
// ApplicationproblemJSON404 the response for an HTTP 404 `application/problem+json` response
ApplicationproblemJSON404 *NotFound
// ApplicationproblemJSON429 the response for an HTTP 429 `application/problem+json` response
ApplicationproblemJSON429 *TooManyRequests
// Headers429 the parsed response headers for an HTTP 429 response
Headers429 *GetStoredSnapshotResponse429Headers
}
func ParseGetStoredSnapshotResponse ¶
func ParseGetStoredSnapshotResponse(rsp *http.Response) (*GetStoredSnapshotResponse, error)
ParseGetStoredSnapshotResponse parses an HTTP response from a GetStoredSnapshotWithResponse call
func (GetStoredSnapshotResponse) ContentType ¶
func (r GetStoredSnapshotResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (GetStoredSnapshotResponse) GetApplicationproblemJSON401 ¶
func (r GetStoredSnapshotResponse) GetApplicationproblemJSON401() *Unauthorized
GetApplicationproblemJSON401 returns the response for an HTTP 401 `application/problem+json` response
func (GetStoredSnapshotResponse) GetApplicationproblemJSON403 ¶
func (r GetStoredSnapshotResponse) GetApplicationproblemJSON403() *Forbidden
GetApplicationproblemJSON403 returns the response for an HTTP 403 `application/problem+json` response
func (GetStoredSnapshotResponse) GetApplicationproblemJSON404 ¶
func (r GetStoredSnapshotResponse) GetApplicationproblemJSON404() *NotFound
GetApplicationproblemJSON404 returns the response for an HTTP 404 `application/problem+json` response
func (GetStoredSnapshotResponse) GetApplicationproblemJSON429 ¶
func (r GetStoredSnapshotResponse) GetApplicationproblemJSON429() *TooManyRequests
GetApplicationproblemJSON429 returns the response for an HTTP 429 `application/problem+json` response
func (GetStoredSnapshotResponse) GetBody ¶
func (r GetStoredSnapshotResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (GetStoredSnapshotResponse) GetJSON200 ¶
func (r GetStoredSnapshotResponse) GetJSON200() *StoredSnapshot
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (GetStoredSnapshotResponse) Status ¶
func (r GetStoredSnapshotResponse) Status() string
Status returns HTTPResponse.Status
func (GetStoredSnapshotResponse) StatusCode ¶
func (r GetStoredSnapshotResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetStoredSnapshotResponse429Headers ¶
type GetStoredSnapshotResponse429Headers struct {
RetryAfter *int
}
GetStoredSnapshotResponse429Headers the declared response headers of an HTTP 429 response for GetStoredSnapshot
type GetSystemStatusResponse ¶
type GetSystemStatusResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *SystemStatus
// ApplicationproblemJSON401 the response for an HTTP 401 `application/problem+json` response
ApplicationproblemJSON401 *Unauthorized
// ApplicationproblemJSON403 the response for an HTTP 403 `application/problem+json` response
ApplicationproblemJSON403 *Forbidden
// ApplicationproblemJSON429 the response for an HTTP 429 `application/problem+json` response
ApplicationproblemJSON429 *TooManyRequests
// Headers429 the parsed response headers for an HTTP 429 response
Headers429 *GetSystemStatusResponse429Headers
}
func ParseGetSystemStatusResponse ¶
func ParseGetSystemStatusResponse(rsp *http.Response) (*GetSystemStatusResponse, error)
ParseGetSystemStatusResponse parses an HTTP response from a GetSystemStatusWithResponse call
func (GetSystemStatusResponse) ContentType ¶
func (r GetSystemStatusResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (GetSystemStatusResponse) GetApplicationproblemJSON401 ¶
func (r GetSystemStatusResponse) GetApplicationproblemJSON401() *Unauthorized
GetApplicationproblemJSON401 returns the response for an HTTP 401 `application/problem+json` response
func (GetSystemStatusResponse) GetApplicationproblemJSON403 ¶
func (r GetSystemStatusResponse) GetApplicationproblemJSON403() *Forbidden
GetApplicationproblemJSON403 returns the response for an HTTP 403 `application/problem+json` response
func (GetSystemStatusResponse) GetApplicationproblemJSON429 ¶
func (r GetSystemStatusResponse) GetApplicationproblemJSON429() *TooManyRequests
GetApplicationproblemJSON429 returns the response for an HTTP 429 `application/problem+json` response
func (GetSystemStatusResponse) GetBody ¶
func (r GetSystemStatusResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (GetSystemStatusResponse) GetJSON200 ¶
func (r GetSystemStatusResponse) GetJSON200() *SystemStatus
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (GetSystemStatusResponse) Status ¶
func (r GetSystemStatusResponse) Status() string
Status returns HTTPResponse.Status
func (GetSystemStatusResponse) StatusCode ¶
func (r GetSystemStatusResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetSystemStatusResponse429Headers ¶
type GetSystemStatusResponse429Headers struct {
RetryAfter *int
}
GetSystemStatusResponse429Headers the declared response headers of an HTTP 429 response for GetSystemStatus
type GetUserResponse ¶
type GetUserResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *User
// ApplicationproblemJSON401 the response for an HTTP 401 `application/problem+json` response
ApplicationproblemJSON401 *Unauthorized
// ApplicationproblemJSON403 the response for an HTTP 403 `application/problem+json` response
ApplicationproblemJSON403 *Forbidden
// ApplicationproblemJSON404 the response for an HTTP 404 `application/problem+json` response
ApplicationproblemJSON404 *NotFound
// ApplicationproblemJSON429 the response for an HTTP 429 `application/problem+json` response
ApplicationproblemJSON429 *TooManyRequests
// Headers200 the parsed response headers for an HTTP 200 response
Headers200 *GetUserResponse200Headers
// Headers429 the parsed response headers for an HTTP 429 response
Headers429 *GetUserResponse429Headers
}
func ParseGetUserResponse ¶
func ParseGetUserResponse(rsp *http.Response) (*GetUserResponse, error)
ParseGetUserResponse parses an HTTP response from a GetUserWithResponse call
func (GetUserResponse) ContentType ¶
func (r GetUserResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (GetUserResponse) GetApplicationproblemJSON401 ¶
func (r GetUserResponse) GetApplicationproblemJSON401() *Unauthorized
GetApplicationproblemJSON401 returns the response for an HTTP 401 `application/problem+json` response
func (GetUserResponse) GetApplicationproblemJSON403 ¶
func (r GetUserResponse) GetApplicationproblemJSON403() *Forbidden
GetApplicationproblemJSON403 returns the response for an HTTP 403 `application/problem+json` response
func (GetUserResponse) GetApplicationproblemJSON404 ¶
func (r GetUserResponse) GetApplicationproblemJSON404() *NotFound
GetApplicationproblemJSON404 returns the response for an HTTP 404 `application/problem+json` response
func (GetUserResponse) GetApplicationproblemJSON429 ¶
func (r GetUserResponse) GetApplicationproblemJSON429() *TooManyRequests
GetApplicationproblemJSON429 returns the response for an HTTP 429 `application/problem+json` response
func (GetUserResponse) GetBody ¶
func (r GetUserResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (GetUserResponse) GetJSON200 ¶
func (r GetUserResponse) GetJSON200() *User
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (GetUserResponse) Status ¶
func (r GetUserResponse) Status() string
Status returns HTTPResponse.Status
func (GetUserResponse) StatusCode ¶
func (r GetUserResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetUserResponse200Headers ¶
type GetUserResponse200Headers struct {
ETag *string
}
GetUserResponse200Headers the declared response headers of an HTTP 200 response for GetUser
type GetUserResponse429Headers ¶
type GetUserResponse429Headers struct {
RetryAfter *int
}
GetUserResponse429Headers the declared response headers of an HTTP 429 response for GetUser
type Gone ¶
type Gone = Problem
Gone RFC 9457 problem details, served as `application/problem+json`. `type` is a stable URI under `https://muster-io.github.io/muster/problems/`; clients branch on `type`, `code` and `errors[].code`, never on `title` or `detail`. Validation errors raised by the request-validation middleware and by the strict server are mapped to this schema by one function. Every `code` is listed in `x-problem-codes`.
type GroupKeyPreview ¶
type GroupKeyPreview struct {
// Current Absent when no saved Route was given.
Current *GroupKeyPreviewSide `json:"current,omitempty"`
PeriodSeconds int `json:"period_seconds"`
Proposed GroupKeyPreviewSide `json:"proposed"`
// Truncated True when `routing.group_key_preview_max_alerts` stopped the reading before the start of the period, so the counts cover only its most recent part.
Truncated bool `json:"truncated"`
}
GroupKeyPreview Covers the Alerts reported firing in the Stored Snapshots of the period that the Route would take at its place in the current evaluation order (Matchers without a saved Route stand for a new Route just before the Default route), each Alert once with its Integration's Static labels, read from the newest Snapshot back and at most `routing.group_key_preview_max_alerts` of them.
type GroupKeyPreviewExample ¶
type GroupKeyPreviewExample struct {
AlertCount int `json:"alert_count"`
// GroupKeyValues Label names and values.
GroupKeyValues Labels `json:"group_key_values"`
}
GroupKeyPreviewExample defines model for GroupKeyPreviewExample.
type GroupKeyPreviewRequest ¶
type GroupKeyPreviewRequest struct {
// Matchers Matchers to preview instead of, or without, a saved Route's own.
Matchers *[]Matcher `json:"matchers,omitempty"`
// PeriodSeconds Defaults to `routing.group_key_preview_period`; at most `retention.stored_snapshots`.
PeriodSeconds *int `json:"period_seconds,omitempty"`
ProposedGroupKey []string `json:"proposed_group_key"`
// RouteId A saved Route; its current Group key is the "current" side.
RouteId nullable.Nullable[NullablePublicId] `json:"route_id,omitempty"`
}
GroupKeyPreviewRequest Preview of a Group key. Give `route_id` for a saved Route, `matchers` for a Route that is not saved yet (the create form), or both to try other Matchers on a saved Route; at least one of the two is required (`422`).
type GroupKeyPreviewSide ¶
type GroupKeyPreviewSide struct {
AlertGroupCount int `json:"alert_group_count"`
// Examples The `routing.group_key_preview_examples` largest Alert Groups.
Examples []GroupKeyPreviewExample `json:"examples"`
}
GroupKeyPreviewSide defines model for GroupKeyPreviewSide.
type HeaderTemplate ¶
type HeaderTemplate struct {
Name string `json:"name"`
// Value Go template; may reference `{{ .Secrets.<name> }}`, never a Secret value.
Value string `json:"value"`
}
HeaderTemplate defines model for HeaderTemplate.
type HealthState ¶
type HealthState string
HealthState defines model for HealthState.
const ( Broken HealthState = "broken" Healthy HealthState = "healthy" )
Defines values for HealthState.
func (HealthState) Valid ¶
func (e HealthState) Valid() bool
Valid indicates whether the value is a known member of the HealthState enum.
type HeartbeatGetResponse ¶
type HeartbeatGetResponse struct {
Body []byte
HTTPResponse *http.Response
// ApplicationproblemJSON401 the response for an HTTP 401 `application/problem+json` response
ApplicationproblemJSON401 *Unauthorized
}
func ParseHeartbeatGetResponse ¶
func ParseHeartbeatGetResponse(rsp *http.Response) (*HeartbeatGetResponse, error)
ParseHeartbeatGetResponse parses an HTTP response from a HeartbeatGetWithResponse call
func (HeartbeatGetResponse) ContentType ¶
func (r HeartbeatGetResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (HeartbeatGetResponse) GetApplicationproblemJSON401 ¶
func (r HeartbeatGetResponse) GetApplicationproblemJSON401() *Unauthorized
GetApplicationproblemJSON401 returns the response for an HTTP 401 `application/problem+json` response
func (HeartbeatGetResponse) GetBody ¶
func (r HeartbeatGetResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (HeartbeatGetResponse) Status ¶
func (r HeartbeatGetResponse) Status() string
Status returns HTTPResponse.Status
func (HeartbeatGetResponse) StatusCode ¶
func (r HeartbeatGetResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type HeartbeatGetWithPathTokenResponse ¶
type HeartbeatGetWithPathTokenResponse struct {
Body []byte
HTTPResponse *http.Response
// ApplicationproblemJSON401 the response for an HTTP 401 `application/problem+json` response
ApplicationproblemJSON401 *Unauthorized
}
func ParseHeartbeatGetWithPathTokenResponse ¶
func ParseHeartbeatGetWithPathTokenResponse(rsp *http.Response) (*HeartbeatGetWithPathTokenResponse, error)
ParseHeartbeatGetWithPathTokenResponse parses an HTTP response from a HeartbeatGetWithPathTokenWithResponse call
func (HeartbeatGetWithPathTokenResponse) ContentType ¶
func (r HeartbeatGetWithPathTokenResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (HeartbeatGetWithPathTokenResponse) GetApplicationproblemJSON401 ¶
func (r HeartbeatGetWithPathTokenResponse) GetApplicationproblemJSON401() *Unauthorized
GetApplicationproblemJSON401 returns the response for an HTTP 401 `application/problem+json` response
func (HeartbeatGetWithPathTokenResponse) GetBody ¶
func (r HeartbeatGetWithPathTokenResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (HeartbeatGetWithPathTokenResponse) Status ¶
func (r HeartbeatGetWithPathTokenResponse) Status() string
Status returns HTTPResponse.Status
func (HeartbeatGetWithPathTokenResponse) StatusCode ¶
func (r HeartbeatGetWithPathTokenResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type HeartbeatInfo ¶
type HeartbeatInfo struct {
Enabled bool `json:"enabled"`
LastSignalAt nullable.Nullable[time.Time] `json:"last_signal_at,omitempty"`
LostSince nullable.Nullable[time.Time] `json:"lost_since,omitempty"`
State HeartbeatState `json:"state"`
TimeoutSeconds int `json:"timeout_seconds"`
// Url Heartbeat URL on the ingest listener, without a token. Send one of the Integration's tokens as `Authorization: Bearer`, or append it as `/<token>`.
Url *string `json:"url,omitempty"`
}
HeartbeatInfo defines model for HeartbeatInfo.
type HeartbeatPostResponse ¶
type HeartbeatPostResponse struct {
Body []byte
HTTPResponse *http.Response
// ApplicationproblemJSON401 the response for an HTTP 401 `application/problem+json` response
ApplicationproblemJSON401 *Unauthorized
}
func ParseHeartbeatPostResponse ¶
func ParseHeartbeatPostResponse(rsp *http.Response) (*HeartbeatPostResponse, error)
ParseHeartbeatPostResponse parses an HTTP response from a HeartbeatPostWithResponse call
func (HeartbeatPostResponse) ContentType ¶
func (r HeartbeatPostResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (HeartbeatPostResponse) GetApplicationproblemJSON401 ¶
func (r HeartbeatPostResponse) GetApplicationproblemJSON401() *Unauthorized
GetApplicationproblemJSON401 returns the response for an HTTP 401 `application/problem+json` response
func (HeartbeatPostResponse) GetBody ¶
func (r HeartbeatPostResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (HeartbeatPostResponse) Status ¶
func (r HeartbeatPostResponse) Status() string
Status returns HTTPResponse.Status
func (HeartbeatPostResponse) StatusCode ¶
func (r HeartbeatPostResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type HeartbeatPostWithPathTokenResponse ¶
type HeartbeatPostWithPathTokenResponse struct {
Body []byte
HTTPResponse *http.Response
// ApplicationproblemJSON401 the response for an HTTP 401 `application/problem+json` response
ApplicationproblemJSON401 *Unauthorized
}
func ParseHeartbeatPostWithPathTokenResponse ¶
func ParseHeartbeatPostWithPathTokenResponse(rsp *http.Response) (*HeartbeatPostWithPathTokenResponse, error)
ParseHeartbeatPostWithPathTokenResponse parses an HTTP response from a HeartbeatPostWithPathTokenWithResponse call
func (HeartbeatPostWithPathTokenResponse) ContentType ¶
func (r HeartbeatPostWithPathTokenResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (HeartbeatPostWithPathTokenResponse) GetApplicationproblemJSON401 ¶
func (r HeartbeatPostWithPathTokenResponse) GetApplicationproblemJSON401() *Unauthorized
GetApplicationproblemJSON401 returns the response for an HTTP 401 `application/problem+json` response
func (HeartbeatPostWithPathTokenResponse) GetBody ¶
func (r HeartbeatPostWithPathTokenResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (HeartbeatPostWithPathTokenResponse) Status ¶
func (r HeartbeatPostWithPathTokenResponse) Status() string
Status returns HTTPResponse.Status
func (HeartbeatPostWithPathTokenResponse) StatusCode ¶
func (r HeartbeatPostWithPathTokenResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type HeartbeatSettingsInput ¶
type HeartbeatSettingsInput struct {
Enabled bool `json:"enabled"`
// TimeoutSeconds Defaults to `integration.heartbeat_timeout`.
TimeoutSeconds *int `json:"timeout_seconds,omitempty"`
}
HeartbeatSettingsInput defines model for HeartbeatSettingsInput.
type HeartbeatState ¶
type HeartbeatState string
HeartbeatState defines model for HeartbeatState.
const ( Live HeartbeatState = "live" Lost HeartbeatState = "lost" NotConfigured HeartbeatState = "not_configured" Waiting HeartbeatState = "waiting" )
Defines values for HeartbeatState.
func (HeartbeatState) Valid ¶
func (e HeartbeatState) Valid() bool
Valid indicates whether the value is a known member of the HeartbeatState enum.
type HintEvent ¶
type HintEvent struct {
// Id A `public_id` in the format of `PublicId`, or null.
Id nullable.Nullable[NullablePublicId] `json:"id"`
Type HintEventType `json:"type"`
}
HintEvent Data of a server-sent event named `hint`, delivered on `GET /live-updates`.
| `type` | `id` | Meaning | |---|---|---| | `alert-group` | the Alert Group `public_id` | It changed (status, Alerts, Timeline, delivery state): refresh its page and any list row. | | `alert-groups` | null | New Alert Groups may match the current list filters or counts: the UI announces "N new". | | `integration`, `route`, `connection`, `destination` | the resource `public_id`, or null for the whole collection | A configuration resource changed. | | `organization` | null | Organization settings changed. | | `system-notices`, `system-status` | null | The Organization-wide notices, or the System status, changed. | | `account-links` | the Account link `public_id`, or null when several changed at once | An Account link of the signed-in user appeared, changed or disappeared. |
type HintEventType ¶
type HintEventType string
HintEventType defines model for HintEvent.Type.
const ( HintEventTypeAccountLinks HintEventType = "account-links" HintEventTypeAlertGroup HintEventType = "alert-group" HintEventTypeAlertGroups HintEventType = "alert-groups" HintEventTypeConnection HintEventType = "connection" HintEventTypeDestination HintEventType = "destination" HintEventTypeIntegration HintEventType = "integration" HintEventTypeOrganization HintEventType = "organization" HintEventTypeRoute HintEventType = "route" HintEventTypeSystemNotices HintEventType = "system-notices" HintEventTypeSystemStatus HintEventType = "system-status" )
Defines values for HintEventType.
func (HintEventType) Valid ¶
func (e HintEventType) Valid() bool
Valid indicates whether the value is a known member of the HintEventType enum.
type HttpHeaders ¶
HttpHeaders HTTP headers by name, each with its values, masked. Untrusted text.
type HttpRequestDoer ¶
Doer performs HTTP requests.
The standard http.Client implements this interface.
type IfMatchOptional ¶
type IfMatchOptional = string
IfMatchOptional defines model for IfMatchOptional.
type IngestSnapshotResponse ¶
type IngestSnapshotResponse struct {
Body []byte
HTTPResponse *http.Response
// ApplicationproblemJSON401 the response for an HTTP 401 `application/problem+json` response
ApplicationproblemJSON401 *Unauthorized
// ApplicationproblemJSON413 the response for an HTTP 413 `application/problem+json` response
ApplicationproblemJSON413 *PayloadTooLarge
// ApplicationproblemJSON500 the response for an HTTP 500 `application/problem+json` response
ApplicationproblemJSON500 *InternalError
}
func ParseIngestSnapshotResponse ¶
func ParseIngestSnapshotResponse(rsp *http.Response) (*IngestSnapshotResponse, error)
ParseIngestSnapshotResponse parses an HTTP response from a IngestSnapshotWithResponse call
func (IngestSnapshotResponse) ContentType ¶
func (r IngestSnapshotResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (IngestSnapshotResponse) GetApplicationproblemJSON401 ¶
func (r IngestSnapshotResponse) GetApplicationproblemJSON401() *Unauthorized
GetApplicationproblemJSON401 returns the response for an HTTP 401 `application/problem+json` response
func (IngestSnapshotResponse) GetApplicationproblemJSON413 ¶
func (r IngestSnapshotResponse) GetApplicationproblemJSON413() *PayloadTooLarge
GetApplicationproblemJSON413 returns the response for an HTTP 413 `application/problem+json` response
func (IngestSnapshotResponse) GetApplicationproblemJSON500 ¶
func (r IngestSnapshotResponse) GetApplicationproblemJSON500() *InternalError
GetApplicationproblemJSON500 returns the response for an HTTP 500 `application/problem+json` response
func (IngestSnapshotResponse) GetBody ¶
func (r IngestSnapshotResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (IngestSnapshotResponse) Status ¶
func (r IngestSnapshotResponse) Status() string
Status returns HTTPResponse.Status
func (IngestSnapshotResponse) StatusCode ¶
func (r IngestSnapshotResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type IngestSnapshotWithPathTokenResponse ¶
type IngestSnapshotWithPathTokenResponse struct {
Body []byte
HTTPResponse *http.Response
// ApplicationproblemJSON401 the response for an HTTP 401 `application/problem+json` response
ApplicationproblemJSON401 *Unauthorized
// ApplicationproblemJSON413 the response for an HTTP 413 `application/problem+json` response
ApplicationproblemJSON413 *PayloadTooLarge
// ApplicationproblemJSON500 the response for an HTTP 500 `application/problem+json` response
ApplicationproblemJSON500 *InternalError
}
func ParseIngestSnapshotWithPathTokenResponse ¶
func ParseIngestSnapshotWithPathTokenResponse(rsp *http.Response) (*IngestSnapshotWithPathTokenResponse, error)
ParseIngestSnapshotWithPathTokenResponse parses an HTTP response from a IngestSnapshotWithPathTokenWithResponse call
func (IngestSnapshotWithPathTokenResponse) ContentType ¶
func (r IngestSnapshotWithPathTokenResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (IngestSnapshotWithPathTokenResponse) GetApplicationproblemJSON401 ¶
func (r IngestSnapshotWithPathTokenResponse) GetApplicationproblemJSON401() *Unauthorized
GetApplicationproblemJSON401 returns the response for an HTTP 401 `application/problem+json` response
func (IngestSnapshotWithPathTokenResponse) GetApplicationproblemJSON413 ¶
func (r IngestSnapshotWithPathTokenResponse) GetApplicationproblemJSON413() *PayloadTooLarge
GetApplicationproblemJSON413 returns the response for an HTTP 413 `application/problem+json` response
func (IngestSnapshotWithPathTokenResponse) GetApplicationproblemJSON500 ¶
func (r IngestSnapshotWithPathTokenResponse) GetApplicationproblemJSON500() *InternalError
GetApplicationproblemJSON500 returns the response for an HTTP 500 `application/problem+json` response
func (IngestSnapshotWithPathTokenResponse) GetBody ¶
func (r IngestSnapshotWithPathTokenResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (IngestSnapshotWithPathTokenResponse) Status ¶
func (r IngestSnapshotWithPathTokenResponse) Status() string
Status returns HTTPResponse.Status
func (IngestSnapshotWithPathTokenResponse) StatusCode ¶
func (r IngestSnapshotWithPathTokenResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type IngestTokenInPath ¶
type IngestTokenInPath = string
IngestTokenInPath defines model for IngestTokenInPath.
type Integration ¶
type Integration struct {
// Builtin True for the "Muster" Integration of Internal alerts; it cannot be edited or deleted and has no tokens.
Builtin bool `json:"builtin"`
// ConnectionMode The Connection mode; in L1 the only mode is `webhook_only` (webhook-only in the glossary).
ConnectionMode IntegrationConnectionMode `json:"connection_mode"`
CreatedAt time.Time `json:"created_at"`
Description *string `json:"description,omitempty"`
DuplicateWindowSeconds int `json:"duplicate_window_seconds"`
// Etag The same value as the `ETag` header; send it as `If-Match` on the next update. Lets a client update an item of a list without reading it again.
Etag *string `json:"etag,omitempty"`
Heartbeat HeartbeatInfo `json:"heartbeat"`
// Id Opaque public identifier (`public_id`): a type prefix of one or two letters followed by 12 random characters of Crockford base32 (`0`–`9` and `A`–`Z` without `I`, `L`, `O` and `U`; 60 bits), such as `AGK7M3QX9P2RTA` for an Alert Group. Prefixes use the same letters and differ per type: `AG` Alert Group, `AE` Audit log entry, `AK` Account link, `AR` Account link request, `CN` Connection, `CR` check run, `DE` delivery event, `DS` Destination, `KR` Link rule, `NE` Note, `NK` Integration token, `NT` Integration, `PT` Personal access token, `RG` Organization, `RQ` record of the Request log, `RT` Route, `SA` Service account, `SN` session, `SR` User, `SS` Stored Snapshot, `ST` Service account token, `TB` Lookup table, `TE` Timeline entry. Responses always carry the canonical upper-case form. Input is case-insensitive and normalized before lookup — `O` reads as `0`, `I` and `L` as `1` — so the pattern also admits lower case and those letters. People refer to Alert Groups by `#N`, never by `public_id`.
Id PublicId `json:"id"`
// IngestUrl Ingestion endpoint on the ingest listener (`MUSTER_INGEST_URL` + `/api/v1/ingest`).
IngestUrl *string `json:"ingest_url,omitempty"`
LastSnapshotAt nullable.Nullable[time.Time] `json:"last_snapshot_at,omitempty"`
// Name Unique in the Organization.
Name string `json:"name"`
// OpenAlertGroupCount Open Alert Groups that deleting the Integration would resolve.
OpenAlertGroupCount int `json:"open_alert_group_count"`
SnapshotCount int `json:"snapshot_count"`
// StaticLabels Label names and values.
StaticLabels Labels `json:"static_labels"`
Warnings []IntegrationWarning `json:"warnings"`
}
Integration defines model for Integration.
type IntegrationAlert ¶
type IntegrationAlert struct {
// AlertGroup The Alert Group the Alert lives in.
AlertGroup *AlertGroupRef `json:"alert_group,omitempty"`
AlertmanagerGroups []string `json:"alertmanager_groups"`
// Annotations Label names and values.
Annotations *Labels `json:"annotations,omitempty"`
Fingerprint string `json:"fingerprint"`
// Labels Label names and values.
Labels Labels `json:"labels"`
LastSeenAt time.Time `json:"last_seen_at"`
// ResolveReason Why an Alert resolved; null while it fires.
ResolveReason nullable.Nullable[NullableResolveReason] `json:"resolve_reason,omitempty"`
// ResolveReasonText Full reason text, for example "Integration prod-eu deleted".
ResolveReasonText nullable.Nullable[string] `json:"resolve_reason_text,omitempty"`
ResolvedAt nullable.Nullable[time.Time] `json:"resolved_at,omitempty"`
// Route The Route that took the Alert; absent before routing.
Route *EntityRef `json:"route,omitempty"`
SeverityLevel *SeverityLevel `json:"severity_level,omitempty"`
// SeverityRaw Severity value as received when it has no mapping.
SeverityRaw nullable.Nullable[string] `json:"severity_raw,omitempty"`
StartsAt time.Time `json:"starts_at"`
State AlertState `json:"state"`
// StaticLabelWarnings Static labels the Alert already carried; its own value won.
StaticLabelWarnings *[]string `json:"static_label_warnings,omitempty"`
}
IntegrationAlert An Alert as Muster tracks it for one Integration.
type IntegrationAlertList ¶
type IntegrationAlertList struct {
Items []IntegrationAlert `json:"items"`
NextCursor nullable.Nullable[string] `json:"next_cursor"`
}
IntegrationAlertList defines model for IntegrationAlertList.
type IntegrationAttention ¶
type IntegrationAttention struct {
Integration EntityRef `json:"integration"`
Issue IntegrationAttentionIssue `json:"issue"`
Since nullable.Nullable[time.Time] `json:"since,omitempty"`
}
IntegrationAttention defines model for IntegrationAttention.
type IntegrationAttentionIssue ¶
type IntegrationAttentionIssue string
IntegrationAttentionIssue defines model for IntegrationAttention.Issue.
const ( IntegrationAttentionIssueHeartbeatLost IntegrationAttentionIssue = "heartbeat_lost" IntegrationAttentionIssueSnapshotTruncated IntegrationAttentionIssue = "snapshot_truncated" )
Defines values for IntegrationAttentionIssue.
func (IntegrationAttentionIssue) Valid ¶
func (e IntegrationAttentionIssue) Valid() bool
Valid indicates whether the value is a known member of the IntegrationAttentionIssue enum.
type IntegrationBase ¶
type IntegrationBase struct {
// ConnectionMode The Connection mode; in L1 the only mode is `webhook_only` (webhook-only in the glossary).
ConnectionMode IntegrationBaseConnectionMode `json:"connection_mode"`
Description *string `json:"description,omitempty"`
DuplicateWindowSeconds int `json:"duplicate_window_seconds"`
// Name Unique in the Organization.
Name string `json:"name"`
// StaticLabels Label names and values.
StaticLabels Labels `json:"static_labels"`
}
IntegrationBase defines model for IntegrationBase.
type IntegrationBaseConnectionMode ¶
type IntegrationBaseConnectionMode string
IntegrationBaseConnectionMode The Connection mode; in L1 the only mode is `webhook_only` (webhook-only in the glossary).
const (
IntegrationBaseConnectionModeWebhookOnly IntegrationBaseConnectionMode = "webhook_only"
)
Defines values for IntegrationBaseConnectionMode.
func (IntegrationBaseConnectionMode) Valid ¶
func (e IntegrationBaseConnectionMode) Valid() bool
Valid indicates whether the value is a known member of the IntegrationBaseConnectionMode enum.
type IntegrationConnectionMode ¶
type IntegrationConnectionMode string
IntegrationConnectionMode The Connection mode; in L1 the only mode is `webhook_only` (webhook-only in the glossary).
const (
IntegrationConnectionModeWebhookOnly IntegrationConnectionMode = "webhook_only"
)
Defines values for IntegrationConnectionMode.
func (IntegrationConnectionMode) Valid ¶
func (e IntegrationConnectionMode) Valid() bool
Valid indicates whether the value is a known member of the IntegrationConnectionMode enum.
type IntegrationId ¶
type IntegrationId = PublicId
IntegrationId Opaque public identifier (`public_id`): a type prefix of one or two letters followed by 12 random characters of Crockford base32 (`0`–`9` and `A`–`Z` without `I`, `L`, `O` and `U`; 60 bits), such as `AGK7M3QX9P2RTA` for an Alert Group. Prefixes use the same letters and differ per type: `AG` Alert Group, `AE` Audit log entry, `AK` Account link, `AR` Account link request, `CN` Connection, `CR` check run, `DE` delivery event, `DS` Destination, `KR` Link rule, `NE` Note, `NK` Integration token, `NT` Integration, `PT` Personal access token, `RG` Organization, `RQ` record of the Request log, `RT` Route, `SA` Service account, `SN` session, `SR` User, `SS` Stored Snapshot, `ST` Service account token, `TB` Lookup table, `TE` Timeline entry. Responses always carry the canonical upper-case form. Input is case-insensitive and normalized before lookup — `O` reads as `0`, `I` and `L` as `1` — so the pattern also admits lower case and those letters. People refer to Alert Groups by `#N`, never by `public_id`.
type IntegrationInput ¶
type IntegrationInput struct {
// ConnectionMode The Connection mode; in L1 the only mode is `webhook_only` (webhook-only in the glossary).
ConnectionMode IntegrationInputConnectionMode `json:"connection_mode"`
Description *string `json:"description,omitempty"`
DuplicateWindowSeconds int `json:"duplicate_window_seconds"`
Heartbeat HeartbeatSettingsInput `json:"heartbeat"`
// Name Unique in the Organization.
Name string `json:"name"`
// StaticLabels Label names and values.
StaticLabels Labels `json:"static_labels"`
}
IntegrationInput defines model for IntegrationInput.
type IntegrationInputConnectionMode ¶
type IntegrationInputConnectionMode string
IntegrationInputConnectionMode The Connection mode; in L1 the only mode is `webhook_only` (webhook-only in the glossary).
const (
IntegrationInputConnectionModeWebhookOnly IntegrationInputConnectionMode = "webhook_only"
)
Defines values for IntegrationInputConnectionMode.
func (IntegrationInputConnectionMode) Valid ¶
func (e IntegrationInputConnectionMode) Valid() bool
Valid indicates whether the value is a known member of the IntegrationInputConnectionMode enum.
type IntegrationList ¶
type IntegrationList struct {
Items []Integration `json:"items"`
NextCursor nullable.Nullable[string] `json:"next_cursor"`
}
IntegrationList defines model for IntegrationList.
type IntegrationToken ¶
type IntegrationToken struct {
CreatedAt time.Time `json:"created_at"`
// Id Opaque public identifier (`public_id`): a type prefix of one or two letters followed by 12 random characters of Crockford base32 (`0`–`9` and `A`–`Z` without `I`, `L`, `O` and `U`; 60 bits), such as `AGK7M3QX9P2RTA` for an Alert Group. Prefixes use the same letters and differ per type: `AG` Alert Group, `AE` Audit log entry, `AK` Account link, `AR` Account link request, `CN` Connection, `CR` check run, `DE` delivery event, `DS` Destination, `KR` Link rule, `NE` Note, `NK` Integration token, `NT` Integration, `PT` Personal access token, `RG` Organization, `RQ` record of the Request log, `RT` Route, `SA` Service account, `SN` session, `SR` User, `SS` Stored Snapshot, `ST` Service account token, `TB` Lookup table, `TE` Timeline entry. Responses always carry the canonical upper-case form. Input is case-insensitive and normalized before lookup — `O` reads as `0`, `I` and `L` as `1` — so the pattern also admits lower case and those letters. People refer to Alert Groups by `#N`, never by `public_id`.
Id PublicId `json:"id"`
LastUsedAt nullable.Nullable[time.Time] `json:"last_used_at,omitempty"`
Name *string `json:"name,omitempty"`
}
IntegrationToken defines model for IntegrationToken.
type IntegrationTokenCreate ¶
type IntegrationTokenCreate struct {
// Name Optional label to tell tokens apart during rotation.
Name *string `json:"name,omitempty"`
}
IntegrationTokenCreate defines model for IntegrationTokenCreate.
type IntegrationTokenCreated ¶
type IntegrationTokenCreated struct {
// AlertmanagerSnippet Alertmanager receiver and route (YAML) with `send_resolved: true`, `max_alerts: 0`, `http_config.authorization` and the token. The route is a child route with `continue: true`, to be placed first, followed by a commented catch-all child route for the default receiver, to be kept last, so that the default receiver keeps getting alerts. Shown once.
AlertmanagerSnippet string `json:"alertmanager_snippet"`
// HeartbeatSnippet Always-firing rule, route and receiver for the Heartbeat; null while the Heartbeat is off. Shown once.
HeartbeatSnippet nullable.Nullable[string] `json:"heartbeat_snippet,omitempty"`
Token IntegrationToken `json:"token"`
// Value The token, starting with `mstr_int_`. Shown once.
Value string `json:"value"`
}
IntegrationTokenCreated defines model for IntegrationTokenCreated.
type IntegrationTokenId ¶
type IntegrationTokenId = PublicId
IntegrationTokenId Opaque public identifier (`public_id`): a type prefix of one or two letters followed by 12 random characters of Crockford base32 (`0`–`9` and `A`–`Z` without `I`, `L`, `O` and `U`; 60 bits), such as `AGK7M3QX9P2RTA` for an Alert Group. Prefixes use the same letters and differ per type: `AG` Alert Group, `AE` Audit log entry, `AK` Account link, `AR` Account link request, `CN` Connection, `CR` check run, `DE` delivery event, `DS` Destination, `KR` Link rule, `NE` Note, `NK` Integration token, `NT` Integration, `PT` Personal access token, `RG` Organization, `RQ` record of the Request log, `RT` Route, `SA` Service account, `SN` session, `SR` User, `SS` Stored Snapshot, `ST` Service account token, `TB` Lookup table, `TE` Timeline entry. Responses always carry the canonical upper-case form. Input is case-insensitive and normalized before lookup — `O` reads as `0`, `I` and `L` as `1` — so the pattern also admits lower case and those letters. People refer to Alert Groups by `#N`, never by `public_id`.
type IntegrationTokenList ¶
type IntegrationTokenList struct {
Items []IntegrationToken `json:"items"`
}
IntegrationTokenList defines model for IntegrationTokenList.
type IntegrationWarning ¶
type IntegrationWarning struct {
Kind IntegrationWarningKind `json:"kind"`
RepeatIntervalSeconds nullable.Nullable[int] `json:"repeat_interval_seconds,omitempty"`
// RoutePath For `long_repeat_interval`; the Alertmanager route.
RoutePath nullable.Nullable[string] `json:"route_path,omitempty"`
// Since For `heartbeat_lost`.
Since nullable.Nullable[time.Time] `json:"since,omitempty"`
// TruncatedGroupCount For `snapshot_truncated`.
TruncatedGroupCount nullable.Nullable[int] `json:"truncated_group_count,omitempty"`
}
IntegrationWarning defines model for IntegrationWarning.
type IntegrationWarningKind ¶
type IntegrationWarningKind string
IntegrationWarningKind defines model for IntegrationWarning.Kind.
const ( IntegrationWarningKindHeartbeatLost IntegrationWarningKind = "heartbeat_lost" IntegrationWarningKindHeartbeatNotConfigured IntegrationWarningKind = "heartbeat_not_configured" IntegrationWarningKindHeartbeatWaiting IntegrationWarningKind = "heartbeat_waiting" IntegrationWarningKindLongRepeatInterval IntegrationWarningKind = "long_repeat_interval" IntegrationWarningKindSnapshotTruncated IntegrationWarningKind = "snapshot_truncated" )
Defines values for IntegrationWarningKind.
func (IntegrationWarningKind) Valid ¶
func (e IntegrationWarningKind) Valid() bool
Valid indicates whether the value is a known member of the IntegrationWarningKind enum.
type InternalError ¶
type InternalError = Problem
InternalError RFC 9457 problem details, served as `application/problem+json`. `type` is a stable URI under `https://muster-io.github.io/muster/problems/`; clients branch on `type`, `code` and `errors[].code`, never on `title` or `detail`. Validation errors raised by the request-validation middleware and by the strict server are mapped to this schema by one function. Every `code` is listed in `x-problem-codes`.
type Keyring ¶
type Keyring struct {
Keys []KeyringKey `json:"keys"`
}
Keyring defines model for Keyring.
type KeyringKey ¶
type KeyringKey struct {
Active bool `json:"active"`
// HeldBy Live replicas that hold the key.
HeldBy []string `json:"held_by"`
// Id Key id derived from the key material.
Id string `json:"id"`
// MissingOn Live replicas that do not hold the key; activation is refused while this is not empty.
MissingOn []string `json:"missing_on"`
// Needed A stored Secret or an open Root message still depends on the key.
Needed bool `json:"needed"`
// Removable The key is no longer used and can be removed from `MUSTER_SECRET_KEYS`. Only a key that was active before can be removable; a key that was never active is `not_active_yet`, to be activated, never removed.
Removable bool `json:"removable"`
// State `active`; else `needed` when a stored Secret or an open Root message still depends on the key; else `removable` when it was active before; else `not_active_yet`: a key that was never active, such as one added for a rotation.
State KeyringKeyState `json:"state"`
}
KeyringKey defines model for KeyringKey.
type KeyringKeyState ¶
type KeyringKeyState string
KeyringKeyState `active`; else `needed` when a stored Secret or an open Root message still depends on the key; else `removable` when it was active before; else `not_active_yet`: a key that was never active, such as one added for a rotation.
const ( KeyringKeyStateActive KeyringKeyState = "active" KeyringKeyStateNeeded KeyringKeyState = "needed" KeyringKeyStateNotActiveYet KeyringKeyState = "not_active_yet" KeyringKeyStateRemovable KeyringKeyState = "removable" )
Defines values for KeyringKeyState.
func (KeyringKeyState) Valid ¶
func (e KeyringKeyState) Valid() bool
Valid indicates whether the value is a known member of the KeyringKeyState enum.
type LifecycleEvent ¶
type LifecycleEvent string
LifecycleEvent Lifecycle event names, exactly as in the lifecycle event tables (every row is one Timeline entry with the row's kind, loudness and Mentions). The Timeline kind of each event is given in `x-event-kinds`.
const ( LifecycleEventAckTimeout LifecycleEvent = "ack_timeout" LifecycleEventAcknowledged LifecycleEvent = "acknowledged" LifecycleEventAlertContinued LifecycleEvent = "alert_continued" LifecycleEventAlertReplaced LifecycleEvent = "alert_replaced" LifecycleEventAlertResolved LifecycleEvent = "alert_resolved" LifecycleEventAlertsAdded LifecycleEvent = "alerts_added" LifecycleEventAnnotationsChanged LifecycleEvent = "annotations_changed" LifecycleEventAutoUnacknowledged LifecycleEvent = "auto_unacknowledged" LifecycleEventCreated LifecycleEvent = "created" LifecycleEventMovedToDefaultRoute LifecycleEvent = "moved_to_default_route" LifecycleEventNoteAdded LifecycleEvent = "note_added" LifecycleEventNoticesMissed LifecycleEvent = "notices_missed" LifecycleEventReminder LifecycleEvent = "reminder" LifecycleEventReminderAnswered LifecycleEvent = "reminder_answered" LifecycleEventReopened LifecycleEvent = "reopened" LifecycleEventResolved LifecycleEvent = "resolved" LifecycleEventSeverityRaised LifecycleEvent = "severity_raised" LifecycleEventSnoozeEnded LifecycleEvent = "snooze_ended" LifecycleEventSnoozed LifecycleEvent = "snoozed" LifecycleEventTakeover LifecycleEvent = "takeover" LifecycleEventUnacknowledged LifecycleEvent = "unacknowledged" LifecycleEventUnclaimed LifecycleEvent = "unclaimed" LifecycleEventUnresolved LifecycleEvent = "unresolved" LifecycleEventUnsnoozed LifecycleEvent = "unsnoozed" LifecycleEventUrgencyRaised LifecycleEvent = "urgency_raised" )
Defines values for LifecycleEvent.
func (LifecycleEvent) Valid ¶
func (e LifecycleEvent) Valid() bool
Valid indicates whether the value is a known member of the LifecycleEvent enum.
type Limited ¶
type Limited = Problem
Limited RFC 9457 problem details, served as `application/problem+json`. `type` is a stable URI under `https://muster-io.github.io/muster/problems/`; clients branch on `type`, `code` and `errors[].code`, never on `title` or `detail`. Validation errors raised by the request-validation middleware and by the strict server are mapped to this schema by one function. Every `code` is listed in `x-problem-codes`.
type LinkHandleKind ¶
type LinkHandleKind string
LinkHandleKind Set on Bridge Connections only; the kind of handle a code needs, the `user_lookup` of the Connection's last `info`, which labels the handle field — Email, Login, Username or User id. Null when no code is offered.
const ( LinkHandleKindEmail LinkHandleKind = "email" LinkHandleKindLessThannil LinkHandleKind = "<nil>" LinkHandleKindLogin LinkHandleKind = "login" LinkHandleKindUserId LinkHandleKind = "user_id" LinkHandleKindUsername LinkHandleKind = "username" )
Defines values for LinkHandleKind.
func (LinkHandleKind) Valid ¶
func (e LinkHandleKind) Valid() bool
Valid indicates whether the value is a known member of the LinkHandleKind enum.
type LinkRule ¶
type LinkRule struct {
// Builtin The built-in "Explore" rule cannot be deleted (`409` `builtin_immutable`).
Builtin bool `json:"builtin"`
CreatedAt time.Time `json:"created_at"`
// Etag The same value as the `ETag` header; send it as `If-Match` on the next update. Lets a client update an item of a list without reading it again.
Etag *string `json:"etag,omitempty"`
// Id Opaque public identifier (`public_id`): a type prefix of one or two letters followed by 12 random characters of Crockford base32 (`0`–`9` and `A`–`Z` without `I`, `L`, `O` and `U`; 60 bits), such as `AGK7M3QX9P2RTA` for an Alert Group. Prefixes use the same letters and differ per type: `AG` Alert Group, `AE` Audit log entry, `AK` Account link, `AR` Account link request, `CN` Connection, `CR` check run, `DE` delivery event, `DS` Destination, `KR` Link rule, `NE` Note, `NK` Integration token, `NT` Integration, `PT` Personal access token, `RG` Organization, `RQ` record of the Request log, `RT` Route, `SA` Service account, `SN` session, `SR` User, `SS` Stored Snapshot, `ST` Service account token, `TB` Lookup table, `TE` Timeline entry. Responses always carry the canonical upper-case form. Input is case-insensitive and normalized before lookup — `O` reads as `0`, `I` and `L` as `1` — so the pattern also admits lower case and those letters. People refer to Alert Groups by `#N`, never by `public_id`.
Id PublicId `json:"id"`
Matchers []Matcher `json:"matchers"`
Name string `json:"name"`
Scope LinkRuleScope `json:"scope"`
// UrlTemplate Go template that may call `lookup table key column`.
UrlTemplate string `json:"url_template"`
}
LinkRule defines model for LinkRule.
type LinkRuleBase ¶
type LinkRuleBase struct {
Matchers []Matcher `json:"matchers"`
Name string `json:"name"`
Scope LinkRuleScope `json:"scope"`
// UrlTemplate Go template that may call `lookup table key column`.
UrlTemplate string `json:"url_template"`
}
LinkRuleBase defines model for LinkRuleBase.
type LinkRuleId ¶
type LinkRuleId = PublicId
LinkRuleId Opaque public identifier (`public_id`): a type prefix of one or two letters followed by 12 random characters of Crockford base32 (`0`–`9` and `A`–`Z` without `I`, `L`, `O` and `U`; 60 bits), such as `AGK7M3QX9P2RTA` for an Alert Group. Prefixes use the same letters and differ per type: `AG` Alert Group, `AE` Audit log entry, `AK` Account link, `AR` Account link request, `CN` Connection, `CR` check run, `DE` delivery event, `DS` Destination, `KR` Link rule, `NE` Note, `NK` Integration token, `NT` Integration, `PT` Personal access token, `RG` Organization, `RQ` record of the Request log, `RT` Route, `SA` Service account, `SN` session, `SR` User, `SS` Stored Snapshot, `ST` Service account token, `TB` Lookup table, `TE` Timeline entry. Responses always carry the canonical upper-case form. Input is case-insensitive and normalized before lookup — `O` reads as `0`, `I` and `L` as `1` — so the pattern also admits lower case and those letters. People refer to Alert Groups by `#N`, never by `public_id`.
type LinkRuleList ¶
type LinkRuleList struct {
Items []LinkRule `json:"items"`
NextCursor nullable.Nullable[string] `json:"next_cursor"`
}
LinkRuleList defines model for LinkRuleList.
type LinkRuleScope ¶
type LinkRuleScope struct {
// Label The label whose every value yields a link, for `label_value`.
Label nullable.Nullable[string] `json:"label,omitempty"`
Type LinkRuleScopeType `json:"type"`
}
LinkRuleScope defines model for LinkRuleScope.
type LinkRuleScopeType ¶
type LinkRuleScopeType string
LinkRuleScopeType defines model for LinkRuleScope.Type.
const ( LinkRuleScopeTypeAlertGroup LinkRuleScopeType = "alert_group" LinkRuleScopeTypeLabelValue LinkRuleScopeType = "label_value" )
Defines values for LinkRuleScopeType.
func (LinkRuleScopeType) Valid ¶
func (e LinkRuleScopeType) Valid() bool
Valid indicates whether the value is a known member of the LinkRuleScopeType enum.
type LinkableConnection ¶
type LinkableConnection struct {
// HandleKind Set on Bridge Connections only; the kind of handle a code needs, the `user_lookup` of the Connection's last `info`, which labels the handle field — Email, Login, Username or User id. Null when no code is offered.
HandleKind nullable.Nullable[LinkHandleKind] `json:"handle_kind,omitempty"`
// Id Opaque public identifier (`public_id`): a type prefix of one or two letters followed by 12 random characters of Crockford base32 (`0`–`9` and `A`–`Z` without `I`, `L`, `O` and `U`; 60 bits), such as `AGK7M3QX9P2RTA` for an Alert Group. Prefixes use the same letters and differ per type: `AG` Alert Group, `AE` Audit log entry, `AK` Account link, `AR` Account link request, `CN` Connection, `CR` check run, `DE` delivery event, `DS` Destination, `KR` Link rule, `NE` Note, `NK` Integration token, `NT` Integration, `PT` Personal access token, `RG` Organization, `RQ` record of the Request log, `RT` Route, `SA` Service account, `SN` session, `SR` User, `SS` Stored Snapshot, `ST` Service account token, `TB` Lookup table, `TE` Timeline entry. Responses always carry the canonical upper-case form. Input is case-insensitive and normalized before lookup — `O` reads as `0`, `I` and `L` as `1` — so the pattern also admits lower case and those letters. People refer to Alert Groups by `#N`, never by `public_id`.
Id PublicId `json:"id"`
// LinkMethods Set on Bridge Connections only, from the Connection's last `info`; `token`, a token sent to the bot, always, and `code`, a code sent by direct message, where `info` declares `direct_messages` with `bot_can_start` and a `user_lookup` other than `none`. Only `token` while Muster has not read `info`.
LinkMethods *[]LinkableConnectionLinkMethods `json:"link_methods,omitempty"`
Messenger Messenger `json:"messenger"`
Name string `json:"name"`
}
LinkableConnection A Connection an account can be linked through, as the profile sees it; no other Connection field is shown. A Bridge Connection also says how an account can be linked through it; a Slack Connection has neither `link_methods` nor `handle_kind`, since its accounts link by a code sent by direct message.
type LinkableConnectionLinkMethods ¶
type LinkableConnectionLinkMethods string
LinkableConnectionLinkMethods defines model for LinkableConnection.LinkMethods.
const ( LinkableConnectionLinkMethodsCode LinkableConnectionLinkMethods = "code" LinkableConnectionLinkMethodsToken LinkableConnectionLinkMethods = "token" )
Defines values for LinkableConnectionLinkMethods.
func (LinkableConnectionLinkMethods) Valid ¶
func (e LinkableConnectionLinkMethods) Valid() bool
Valid indicates whether the value is a known member of the LinkableConnectionLinkMethods enum.
type LinkableConnectionList ¶
type LinkableConnectionList struct {
Items []LinkableConnection `json:"items"`
}
LinkableConnectionList defines model for LinkableConnectionList.
type ListAlertGroupAlertsParams ¶
type ListAlertGroupAlertsParams struct {
// Cursor Opaque cursor from `next_cursor` of the previous page. Offsets are not supported.
Cursor *Cursor `form:"cursor,omitempty" json:"cursor,omitempty"`
// Limit Page size (`api.page_size`).
Limit *Limit `form:"limit,omitempty" json:"limit,omitempty"`
// State Filter by firing or resolved; firing Alerts come first.
State *AlertState `form:"state,omitempty" json:"state,omitempty"`
}
ListAlertGroupAlertsParams defines parameters for ListAlertGroupAlerts.
type ListAlertGroupAlertsResponse ¶
type ListAlertGroupAlertsResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *AlertGroupAlertList
// ApplicationproblemJSON400 the response for an HTTP 400 `application/problem+json` response
ApplicationproblemJSON400 *BadRequest
// ApplicationproblemJSON401 the response for an HTTP 401 `application/problem+json` response
ApplicationproblemJSON401 *Unauthorized
// ApplicationproblemJSON403 the response for an HTTP 403 `application/problem+json` response
ApplicationproblemJSON403 *Forbidden
// ApplicationproblemJSON404 the response for an HTTP 404 `application/problem+json` response
ApplicationproblemJSON404 *NotFound
// ApplicationproblemJSON429 the response for an HTTP 429 `application/problem+json` response
ApplicationproblemJSON429 *TooManyRequests
// Headers429 the parsed response headers for an HTTP 429 response
Headers429 *ListAlertGroupAlertsResponse429Headers
}
func ParseListAlertGroupAlertsResponse ¶
func ParseListAlertGroupAlertsResponse(rsp *http.Response) (*ListAlertGroupAlertsResponse, error)
ParseListAlertGroupAlertsResponse parses an HTTP response from a ListAlertGroupAlertsWithResponse call
func (ListAlertGroupAlertsResponse) ContentType ¶
func (r ListAlertGroupAlertsResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (ListAlertGroupAlertsResponse) GetApplicationproblemJSON400 ¶
func (r ListAlertGroupAlertsResponse) GetApplicationproblemJSON400() *BadRequest
GetApplicationproblemJSON400 returns the response for an HTTP 400 `application/problem+json` response
func (ListAlertGroupAlertsResponse) GetApplicationproblemJSON401 ¶
func (r ListAlertGroupAlertsResponse) GetApplicationproblemJSON401() *Unauthorized
GetApplicationproblemJSON401 returns the response for an HTTP 401 `application/problem+json` response
func (ListAlertGroupAlertsResponse) GetApplicationproblemJSON403 ¶
func (r ListAlertGroupAlertsResponse) GetApplicationproblemJSON403() *Forbidden
GetApplicationproblemJSON403 returns the response for an HTTP 403 `application/problem+json` response
func (ListAlertGroupAlertsResponse) GetApplicationproblemJSON404 ¶
func (r ListAlertGroupAlertsResponse) GetApplicationproblemJSON404() *NotFound
GetApplicationproblemJSON404 returns the response for an HTTP 404 `application/problem+json` response
func (ListAlertGroupAlertsResponse) GetApplicationproblemJSON429 ¶
func (r ListAlertGroupAlertsResponse) GetApplicationproblemJSON429() *TooManyRequests
GetApplicationproblemJSON429 returns the response for an HTTP 429 `application/problem+json` response
func (ListAlertGroupAlertsResponse) GetBody ¶
func (r ListAlertGroupAlertsResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (ListAlertGroupAlertsResponse) GetJSON200 ¶
func (r ListAlertGroupAlertsResponse) GetJSON200() *AlertGroupAlertList
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (ListAlertGroupAlertsResponse) Status ¶
func (r ListAlertGroupAlertsResponse) Status() string
Status returns HTTPResponse.Status
func (ListAlertGroupAlertsResponse) StatusCode ¶
func (r ListAlertGroupAlertsResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type ListAlertGroupAlertsResponse429Headers ¶
type ListAlertGroupAlertsResponse429Headers struct {
RetryAfter *int
}
ListAlertGroupAlertsResponse429Headers the declared response headers of an HTTP 429 response for ListAlertGroupAlerts
type ListAlertGroupDeliveriesResponse ¶
type ListAlertGroupDeliveriesResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *AlertGroupDeliveryList
// ApplicationproblemJSON401 the response for an HTTP 401 `application/problem+json` response
ApplicationproblemJSON401 *Unauthorized
// ApplicationproblemJSON403 the response for an HTTP 403 `application/problem+json` response
ApplicationproblemJSON403 *Forbidden
// ApplicationproblemJSON404 the response for an HTTP 404 `application/problem+json` response
ApplicationproblemJSON404 *NotFound
// ApplicationproblemJSON429 the response for an HTTP 429 `application/problem+json` response
ApplicationproblemJSON429 *TooManyRequests
// Headers429 the parsed response headers for an HTTP 429 response
Headers429 *ListAlertGroupDeliveriesResponse429Headers
}
func ParseListAlertGroupDeliveriesResponse ¶
func ParseListAlertGroupDeliveriesResponse(rsp *http.Response) (*ListAlertGroupDeliveriesResponse, error)
ParseListAlertGroupDeliveriesResponse parses an HTTP response from a ListAlertGroupDeliveriesWithResponse call
func (ListAlertGroupDeliveriesResponse) ContentType ¶
func (r ListAlertGroupDeliveriesResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (ListAlertGroupDeliveriesResponse) GetApplicationproblemJSON401 ¶
func (r ListAlertGroupDeliveriesResponse) GetApplicationproblemJSON401() *Unauthorized
GetApplicationproblemJSON401 returns the response for an HTTP 401 `application/problem+json` response
func (ListAlertGroupDeliveriesResponse) GetApplicationproblemJSON403 ¶
func (r ListAlertGroupDeliveriesResponse) GetApplicationproblemJSON403() *Forbidden
GetApplicationproblemJSON403 returns the response for an HTTP 403 `application/problem+json` response
func (ListAlertGroupDeliveriesResponse) GetApplicationproblemJSON404 ¶
func (r ListAlertGroupDeliveriesResponse) GetApplicationproblemJSON404() *NotFound
GetApplicationproblemJSON404 returns the response for an HTTP 404 `application/problem+json` response
func (ListAlertGroupDeliveriesResponse) GetApplicationproblemJSON429 ¶
func (r ListAlertGroupDeliveriesResponse) GetApplicationproblemJSON429() *TooManyRequests
GetApplicationproblemJSON429 returns the response for an HTTP 429 `application/problem+json` response
func (ListAlertGroupDeliveriesResponse) GetBody ¶
func (r ListAlertGroupDeliveriesResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (ListAlertGroupDeliveriesResponse) GetJSON200 ¶
func (r ListAlertGroupDeliveriesResponse) GetJSON200() *AlertGroupDeliveryList
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (ListAlertGroupDeliveriesResponse) Status ¶
func (r ListAlertGroupDeliveriesResponse) Status() string
Status returns HTTPResponse.Status
func (ListAlertGroupDeliveriesResponse) StatusCode ¶
func (r ListAlertGroupDeliveriesResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type ListAlertGroupDeliveriesResponse429Headers ¶
type ListAlertGroupDeliveriesResponse429Headers struct {
RetryAfter *int
}
ListAlertGroupDeliveriesResponse429Headers the declared response headers of an HTTP 429 response for ListAlertGroupDeliveries
type ListAlertGroupNotesParams ¶
type ListAlertGroupNotesParams struct {
// Cursor Opaque cursor from `next_cursor` of the previous page. Offsets are not supported.
Cursor *Cursor `form:"cursor,omitempty" json:"cursor,omitempty"`
// Limit Page size (`api.page_size`).
Limit *Limit `form:"limit,omitempty" json:"limit,omitempty"`
}
ListAlertGroupNotesParams defines parameters for ListAlertGroupNotes.
type ListAlertGroupNotesResponse ¶
type ListAlertGroupNotesResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *NoteList
// ApplicationproblemJSON400 the response for an HTTP 400 `application/problem+json` response
ApplicationproblemJSON400 *BadRequest
// ApplicationproblemJSON401 the response for an HTTP 401 `application/problem+json` response
ApplicationproblemJSON401 *Unauthorized
// ApplicationproblemJSON403 the response for an HTTP 403 `application/problem+json` response
ApplicationproblemJSON403 *Forbidden
// ApplicationproblemJSON404 the response for an HTTP 404 `application/problem+json` response
ApplicationproblemJSON404 *NotFound
// ApplicationproblemJSON429 the response for an HTTP 429 `application/problem+json` response
ApplicationproblemJSON429 *TooManyRequests
// Headers429 the parsed response headers for an HTTP 429 response
Headers429 *ListAlertGroupNotesResponse429Headers
}
func ParseListAlertGroupNotesResponse ¶
func ParseListAlertGroupNotesResponse(rsp *http.Response) (*ListAlertGroupNotesResponse, error)
ParseListAlertGroupNotesResponse parses an HTTP response from a ListAlertGroupNotesWithResponse call
func (ListAlertGroupNotesResponse) ContentType ¶
func (r ListAlertGroupNotesResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (ListAlertGroupNotesResponse) GetApplicationproblemJSON400 ¶
func (r ListAlertGroupNotesResponse) GetApplicationproblemJSON400() *BadRequest
GetApplicationproblemJSON400 returns the response for an HTTP 400 `application/problem+json` response
func (ListAlertGroupNotesResponse) GetApplicationproblemJSON401 ¶
func (r ListAlertGroupNotesResponse) GetApplicationproblemJSON401() *Unauthorized
GetApplicationproblemJSON401 returns the response for an HTTP 401 `application/problem+json` response
func (ListAlertGroupNotesResponse) GetApplicationproblemJSON403 ¶
func (r ListAlertGroupNotesResponse) GetApplicationproblemJSON403() *Forbidden
GetApplicationproblemJSON403 returns the response for an HTTP 403 `application/problem+json` response
func (ListAlertGroupNotesResponse) GetApplicationproblemJSON404 ¶
func (r ListAlertGroupNotesResponse) GetApplicationproblemJSON404() *NotFound
GetApplicationproblemJSON404 returns the response for an HTTP 404 `application/problem+json` response
func (ListAlertGroupNotesResponse) GetApplicationproblemJSON429 ¶
func (r ListAlertGroupNotesResponse) GetApplicationproblemJSON429() *TooManyRequests
GetApplicationproblemJSON429 returns the response for an HTTP 429 `application/problem+json` response
func (ListAlertGroupNotesResponse) GetBody ¶
func (r ListAlertGroupNotesResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (ListAlertGroupNotesResponse) GetJSON200 ¶
func (r ListAlertGroupNotesResponse) GetJSON200() *NoteList
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (ListAlertGroupNotesResponse) Status ¶
func (r ListAlertGroupNotesResponse) Status() string
Status returns HTTPResponse.Status
func (ListAlertGroupNotesResponse) StatusCode ¶
func (r ListAlertGroupNotesResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type ListAlertGroupNotesResponse429Headers ¶
type ListAlertGroupNotesResponse429Headers struct {
RetryAfter *int
}
ListAlertGroupNotesResponse429Headers the declared response headers of an HTTP 429 response for ListAlertGroupNotes
type ListAlertGroupsParams ¶
type ListAlertGroupsParams struct {
// Cursor Opaque cursor from `next_cursor` of the previous page. Offsets are not supported.
Cursor *Cursor `form:"cursor,omitempty" json:"cursor,omitempty"`
// Limit Page size (`api.page_size`).
Limit *Limit `form:"limit,omitempty" json:"limit,omitempty"`
// Status Only these statuses. Default: firing, acknowledged and snoozed.
Status *AgStatus `form:"status,omitempty" json:"status,omitempty"`
// Route Only these Routes (`public_id`).
Route *AgRoute `form:"route,omitempty" json:"route,omitempty"`
// Integration Only Alert Groups with Alerts from these Integrations (`public_id`).
Integration *AgIntegration `form:"integration,omitempty" json:"integration,omitempty"`
// Severity Only these Severity levels.
Severity *AgSeverity `form:"severity,omitempty" json:"severity,omitempty"`
// Urgent Only Urgent (true) or non-Urgent (false) Alert Groups.
Urgent *AgUrgent `form:"urgent,omitempty" json:"urgent,omitempty"`
// ResolvedBy Only Alert Groups resolved by a person or by the system.
ResolvedBy *AgResolvedBy `form:"resolved_by,omitempty" json:"resolved_by,omitempty"`
// ResolveReason With `resolved_by=system`: the reason.
ResolveReason *AgResolveReason `form:"resolve_reason,omitempty" json:"resolve_reason,omitempty"`
// Reopened True: Reopen count above zero.
Reopened *AgReopened `form:"reopened,omitempty" json:"reopened,omitempty"`
// Label Label filter: one Alertmanager-syntax Matcher per repeat of the parameter, combined with AND. Each value is a whole matcher: `label=namespace%3D%22payments%22&label=pod%3D~%22api-.*%22` means `namespace="payments"` and `pod=~"api-.*"`. There is no per-label shorthand. On Alert Groups the Matchers are matched against the common labels — the labels every Alert of the group has with the same value — so the filter also works on summary rows after the Alerts were removed; a label the Alerts do not share counts as absent. On the Alerts view of an Integration they are matched against each Alert's labels.
Label *LabelMatchers `form:"label,omitempty" json:"label,omitempty"`
// Owner A user `public_id`, `me` (the calling User; `422` for a Service account token), or `none` for Alert Groups nobody owns, resolved ones included.
Owner *AgOwner `form:"owner,omitempty" json:"owner,omitempty"`
// SnoozedNoEnd True: only Alert Groups snoozed with no end. False: every Alert Group but those.
SnoozedNoEnd *AgSnoozedNoEnd `form:"snoozed_no_end,omitempty" json:"snoozed_no_end,omitempty"`
// DeliveryProblem Any Destination is Not delivered, waiting for a Broken Destination, deleted in the messenger or has a Thread not attached.
DeliveryProblem *AgDeliveryProblem `form:"delivery_problem,omitempty" json:"delivery_problem,omitempty"`
// Unclaimed Only Unclaimed Alert Groups.
Unclaimed *AgUnclaimed `form:"unclaimed,omitempty" json:"unclaimed,omitempty"`
// From Start of the time range (RFC 3339, UTC).
From *From `form:"from,omitempty" json:"from,omitempty"`
// To End of the time range (RFC 3339, UTC).
To *To `form:"to,omitempty" json:"to,omitempty"`
// Number The Alert Group with exactly this `#N`. Neither the default time range nor the default status applies: a number is found whatever its age and status (while its summary row is kept); the other filters still apply.
Number *AgNumber `form:"number,omitempty" json:"number,omitempty"`
// Q Search by text in the title or `summary`, case-insensitive and matching parts of words. A `#N` typed here is the same as `number`.
Q *AgQuery `form:"q,omitempty" json:"q,omitempty"`
// Sort Sort field; a leading `-` sorts descending.
Sort *ListAlertGroupsParamsSort `form:"sort,omitempty" json:"sort,omitempty"`
// LabelColumns Label names whose shared value is returned in `label_values` of each Alert Group.
LabelColumns *AgLabelColumns `form:"label_columns,omitempty" json:"label_columns,omitempty"`
}
ListAlertGroupsParams defines parameters for ListAlertGroups.
type ListAlertGroupsParamsSort ¶
type ListAlertGroupsParamsSort string
ListAlertGroupsParamsSort defines parameters for ListAlertGroups.
const ( ListAlertGroupsParamsSortLastChangedAt ListAlertGroupsParamsSort = "last_changed_at" ListAlertGroupsParamsSortMinusLastChangedAt ListAlertGroupsParamsSort = "-last_changed_at" ListAlertGroupsParamsSortMinusStartedAt ListAlertGroupsParamsSort = "-started_at" ListAlertGroupsParamsSortStartedAt ListAlertGroupsParamsSort = "started_at" )
Defines values for ListAlertGroupsParamsSort.
func (ListAlertGroupsParamsSort) Valid ¶
func (e ListAlertGroupsParamsSort) Valid() bool
Valid indicates whether the value is a known member of the ListAlertGroupsParamsSort enum.
type ListAlertGroupsResponse ¶
type ListAlertGroupsResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *AlertGroupList
// ApplicationproblemJSON400 the response for an HTTP 400 `application/problem+json` response
ApplicationproblemJSON400 *BadRequest
// ApplicationproblemJSON401 the response for an HTTP 401 `application/problem+json` response
ApplicationproblemJSON401 *Unauthorized
// ApplicationproblemJSON403 the response for an HTTP 403 `application/problem+json` response
ApplicationproblemJSON403 *Forbidden
// ApplicationproblemJSON422 the response for an HTTP 422 `application/problem+json` response
ApplicationproblemJSON422 *Unprocessable
// ApplicationproblemJSON429 the response for an HTTP 429 `application/problem+json` response
ApplicationproblemJSON429 *TooManyRequests
// Headers429 the parsed response headers for an HTTP 429 response
Headers429 *ListAlertGroupsResponse429Headers
}
func ParseListAlertGroupsResponse ¶
func ParseListAlertGroupsResponse(rsp *http.Response) (*ListAlertGroupsResponse, error)
ParseListAlertGroupsResponse parses an HTTP response from a ListAlertGroupsWithResponse call
func (ListAlertGroupsResponse) ContentType ¶
func (r ListAlertGroupsResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (ListAlertGroupsResponse) GetApplicationproblemJSON400 ¶
func (r ListAlertGroupsResponse) GetApplicationproblemJSON400() *BadRequest
GetApplicationproblemJSON400 returns the response for an HTTP 400 `application/problem+json` response
func (ListAlertGroupsResponse) GetApplicationproblemJSON401 ¶
func (r ListAlertGroupsResponse) GetApplicationproblemJSON401() *Unauthorized
GetApplicationproblemJSON401 returns the response for an HTTP 401 `application/problem+json` response
func (ListAlertGroupsResponse) GetApplicationproblemJSON403 ¶
func (r ListAlertGroupsResponse) GetApplicationproblemJSON403() *Forbidden
GetApplicationproblemJSON403 returns the response for an HTTP 403 `application/problem+json` response
func (ListAlertGroupsResponse) GetApplicationproblemJSON422 ¶
func (r ListAlertGroupsResponse) GetApplicationproblemJSON422() *Unprocessable
GetApplicationproblemJSON422 returns the response for an HTTP 422 `application/problem+json` response
func (ListAlertGroupsResponse) GetApplicationproblemJSON429 ¶
func (r ListAlertGroupsResponse) GetApplicationproblemJSON429() *TooManyRequests
GetApplicationproblemJSON429 returns the response for an HTTP 429 `application/problem+json` response
func (ListAlertGroupsResponse) GetBody ¶
func (r ListAlertGroupsResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (ListAlertGroupsResponse) GetJSON200 ¶
func (r ListAlertGroupsResponse) GetJSON200() *AlertGroupList
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (ListAlertGroupsResponse) Status ¶
func (r ListAlertGroupsResponse) Status() string
Status returns HTTPResponse.Status
func (ListAlertGroupsResponse) StatusCode ¶
func (r ListAlertGroupsResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type ListAlertGroupsResponse429Headers ¶
type ListAlertGroupsResponse429Headers struct {
RetryAfter *int
}
ListAlertGroupsResponse429Headers the declared response headers of an HTTP 429 response for ListAlertGroups
type ListAlertmanagerRoutesResponse ¶
type ListAlertmanagerRoutesResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *AlertmanagerRouteList
// ApplicationproblemJSON401 the response for an HTTP 401 `application/problem+json` response
ApplicationproblemJSON401 *Unauthorized
// ApplicationproblemJSON403 the response for an HTTP 403 `application/problem+json` response
ApplicationproblemJSON403 *Forbidden
// ApplicationproblemJSON404 the response for an HTTP 404 `application/problem+json` response
ApplicationproblemJSON404 *NotFound
// ApplicationproblemJSON429 the response for an HTTP 429 `application/problem+json` response
ApplicationproblemJSON429 *TooManyRequests
// Headers429 the parsed response headers for an HTTP 429 response
Headers429 *ListAlertmanagerRoutesResponse429Headers
}
func ParseListAlertmanagerRoutesResponse ¶
func ParseListAlertmanagerRoutesResponse(rsp *http.Response) (*ListAlertmanagerRoutesResponse, error)
ParseListAlertmanagerRoutesResponse parses an HTTP response from a ListAlertmanagerRoutesWithResponse call
func (ListAlertmanagerRoutesResponse) ContentType ¶
func (r ListAlertmanagerRoutesResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (ListAlertmanagerRoutesResponse) GetApplicationproblemJSON401 ¶
func (r ListAlertmanagerRoutesResponse) GetApplicationproblemJSON401() *Unauthorized
GetApplicationproblemJSON401 returns the response for an HTTP 401 `application/problem+json` response
func (ListAlertmanagerRoutesResponse) GetApplicationproblemJSON403 ¶
func (r ListAlertmanagerRoutesResponse) GetApplicationproblemJSON403() *Forbidden
GetApplicationproblemJSON403 returns the response for an HTTP 403 `application/problem+json` response
func (ListAlertmanagerRoutesResponse) GetApplicationproblemJSON404 ¶
func (r ListAlertmanagerRoutesResponse) GetApplicationproblemJSON404() *NotFound
GetApplicationproblemJSON404 returns the response for an HTTP 404 `application/problem+json` response
func (ListAlertmanagerRoutesResponse) GetApplicationproblemJSON429 ¶
func (r ListAlertmanagerRoutesResponse) GetApplicationproblemJSON429() *TooManyRequests
GetApplicationproblemJSON429 returns the response for an HTTP 429 `application/problem+json` response
func (ListAlertmanagerRoutesResponse) GetBody ¶
func (r ListAlertmanagerRoutesResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (ListAlertmanagerRoutesResponse) GetJSON200 ¶
func (r ListAlertmanagerRoutesResponse) GetJSON200() *AlertmanagerRouteList
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (ListAlertmanagerRoutesResponse) Status ¶
func (r ListAlertmanagerRoutesResponse) Status() string
Status returns HTTPResponse.Status
func (ListAlertmanagerRoutesResponse) StatusCode ¶
func (r ListAlertmanagerRoutesResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type ListAlertmanagerRoutesResponse429Headers ¶
type ListAlertmanagerRoutesResponse429Headers struct {
RetryAfter *int
}
ListAlertmanagerRoutesResponse429Headers the declared response headers of an HTTP 429 response for ListAlertmanagerRoutes
type ListAuditLogParams ¶
type ListAuditLogParams struct {
// Cursor Opaque cursor from `next_cursor` of the previous page. Offsets are not supported.
Cursor *Cursor `form:"cursor,omitempty" json:"cursor,omitempty"`
// Limit Page size (`api.page_size`).
Limit *Limit `form:"limit,omitempty" json:"limit,omitempty"`
// From Start of the time range (RFC 3339, UTC).
From *From `form:"from,omitempty" json:"from,omitempty"`
// To End of the time range (RFC 3339, UTC).
To *To `form:"to,omitempty" json:"to,omitempty"`
// Actor Actor `public_id` (user or Service account).
Actor *string `form:"actor,omitempty" json:"actor,omitempty"`
// Action Action type, for example `integration.update`.
Action *string `form:"action,omitempty" json:"action,omitempty"`
// ResourceType Resource type, for example `integration`.
ResourceType *string `form:"resource_type,omitempty" json:"resource_type,omitempty"`
// ResourceId Resource `public_id`.
ResourceId *string `form:"resource_id,omitempty" json:"resource_id,omitempty"`
}
ListAuditLogParams defines parameters for ListAuditLog.
type ListAuditLogResponse ¶
type ListAuditLogResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *AuditEntryList
// ApplicationproblemJSON400 the response for an HTTP 400 `application/problem+json` response
ApplicationproblemJSON400 *BadRequest
// ApplicationproblemJSON401 the response for an HTTP 401 `application/problem+json` response
ApplicationproblemJSON401 *Unauthorized
// ApplicationproblemJSON403 the response for an HTTP 403 `application/problem+json` response
ApplicationproblemJSON403 *Forbidden
// ApplicationproblemJSON429 the response for an HTTP 429 `application/problem+json` response
ApplicationproblemJSON429 *TooManyRequests
// Headers429 the parsed response headers for an HTTP 429 response
Headers429 *ListAuditLogResponse429Headers
}
func ParseListAuditLogResponse ¶
func ParseListAuditLogResponse(rsp *http.Response) (*ListAuditLogResponse, error)
ParseListAuditLogResponse parses an HTTP response from a ListAuditLogWithResponse call
func (ListAuditLogResponse) ContentType ¶
func (r ListAuditLogResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (ListAuditLogResponse) GetApplicationproblemJSON400 ¶
func (r ListAuditLogResponse) GetApplicationproblemJSON400() *BadRequest
GetApplicationproblemJSON400 returns the response for an HTTP 400 `application/problem+json` response
func (ListAuditLogResponse) GetApplicationproblemJSON401 ¶
func (r ListAuditLogResponse) GetApplicationproblemJSON401() *Unauthorized
GetApplicationproblemJSON401 returns the response for an HTTP 401 `application/problem+json` response
func (ListAuditLogResponse) GetApplicationproblemJSON403 ¶
func (r ListAuditLogResponse) GetApplicationproblemJSON403() *Forbidden
GetApplicationproblemJSON403 returns the response for an HTTP 403 `application/problem+json` response
func (ListAuditLogResponse) GetApplicationproblemJSON429 ¶
func (r ListAuditLogResponse) GetApplicationproblemJSON429() *TooManyRequests
GetApplicationproblemJSON429 returns the response for an HTTP 429 `application/problem+json` response
func (ListAuditLogResponse) GetBody ¶
func (r ListAuditLogResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (ListAuditLogResponse) GetJSON200 ¶
func (r ListAuditLogResponse) GetJSON200() *AuditEntryList
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (ListAuditLogResponse) Status ¶
func (r ListAuditLogResponse) Status() string
Status returns HTTPResponse.Status
func (ListAuditLogResponse) StatusCode ¶
func (r ListAuditLogResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type ListAuditLogResponse429Headers ¶
type ListAuditLogResponse429Headers struct {
RetryAfter *int
}
ListAuditLogResponse429Headers the declared response headers of an HTTP 429 response for ListAuditLog
type ListConnectionChannelsParams ¶
type ListConnectionChannelsParams struct {
// TeamId Only this team (Mattermost); a Slack Connection ignores it.
TeamId *string `form:"team_id,omitempty" json:"team_id,omitempty"`
// Q Only channels whose name, or a Mattermost channel's display name, contains this text, regardless of case.
Q *string `form:"q,omitempty" json:"q,omitempty"`
}
ListConnectionChannelsParams defines parameters for ListConnectionChannels.
type ListConnectionChannelsResponse ¶
type ListConnectionChannelsResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *ConnectionChannelList
// ApplicationproblemJSON400 the response for an HTTP 400 `application/problem+json` response
ApplicationproblemJSON400 *BadRequest
// ApplicationproblemJSON401 the response for an HTTP 401 `application/problem+json` response
ApplicationproblemJSON401 *Unauthorized
// ApplicationproblemJSON403 the response for an HTTP 403 `application/problem+json` response
ApplicationproblemJSON403 *Forbidden
// ApplicationproblemJSON404 the response for an HTTP 404 `application/problem+json` response
ApplicationproblemJSON404 *NotFound
// ApplicationproblemJSON409 the response for an HTTP 409 `application/problem+json` response
ApplicationproblemJSON409 *Conflict
// ApplicationproblemJSON429 the response for an HTTP 429 `application/problem+json` response
ApplicationproblemJSON429 *TooManyRequests
// ApplicationproblemJSON503 the response for an HTTP 503 `application/problem+json` response
ApplicationproblemJSON503 *Limited
// Headers429 the parsed response headers for an HTTP 429 response
Headers429 *ListConnectionChannelsResponse429Headers
// Headers503 the parsed response headers for an HTTP 503 response
Headers503 *ListConnectionChannelsResponse503Headers
}
func ParseListConnectionChannelsResponse ¶
func ParseListConnectionChannelsResponse(rsp *http.Response) (*ListConnectionChannelsResponse, error)
ParseListConnectionChannelsResponse parses an HTTP response from a ListConnectionChannelsWithResponse call
func (ListConnectionChannelsResponse) ContentType ¶
func (r ListConnectionChannelsResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (ListConnectionChannelsResponse) GetApplicationproblemJSON400 ¶
func (r ListConnectionChannelsResponse) GetApplicationproblemJSON400() *BadRequest
GetApplicationproblemJSON400 returns the response for an HTTP 400 `application/problem+json` response
func (ListConnectionChannelsResponse) GetApplicationproblemJSON401 ¶
func (r ListConnectionChannelsResponse) GetApplicationproblemJSON401() *Unauthorized
GetApplicationproblemJSON401 returns the response for an HTTP 401 `application/problem+json` response
func (ListConnectionChannelsResponse) GetApplicationproblemJSON403 ¶
func (r ListConnectionChannelsResponse) GetApplicationproblemJSON403() *Forbidden
GetApplicationproblemJSON403 returns the response for an HTTP 403 `application/problem+json` response
func (ListConnectionChannelsResponse) GetApplicationproblemJSON404 ¶
func (r ListConnectionChannelsResponse) GetApplicationproblemJSON404() *NotFound
GetApplicationproblemJSON404 returns the response for an HTTP 404 `application/problem+json` response
func (ListConnectionChannelsResponse) GetApplicationproblemJSON409 ¶
func (r ListConnectionChannelsResponse) GetApplicationproblemJSON409() *Conflict
GetApplicationproblemJSON409 returns the response for an HTTP 409 `application/problem+json` response
func (ListConnectionChannelsResponse) GetApplicationproblemJSON429 ¶
func (r ListConnectionChannelsResponse) GetApplicationproblemJSON429() *TooManyRequests
GetApplicationproblemJSON429 returns the response for an HTTP 429 `application/problem+json` response
func (ListConnectionChannelsResponse) GetApplicationproblemJSON503 ¶
func (r ListConnectionChannelsResponse) GetApplicationproblemJSON503() *Limited
GetApplicationproblemJSON503 returns the response for an HTTP 503 `application/problem+json` response
func (ListConnectionChannelsResponse) GetBody ¶
func (r ListConnectionChannelsResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (ListConnectionChannelsResponse) GetJSON200 ¶
func (r ListConnectionChannelsResponse) GetJSON200() *ConnectionChannelList
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (ListConnectionChannelsResponse) Status ¶
func (r ListConnectionChannelsResponse) Status() string
Status returns HTTPResponse.Status
func (ListConnectionChannelsResponse) StatusCode ¶
func (r ListConnectionChannelsResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type ListConnectionChannelsResponse429Headers ¶
type ListConnectionChannelsResponse429Headers struct {
RetryAfter *int
}
ListConnectionChannelsResponse429Headers the declared response headers of an HTTP 429 response for ListConnectionChannels
type ListConnectionChannelsResponse503Headers ¶
type ListConnectionChannelsResponse503Headers struct {
RetryAfter *int
}
ListConnectionChannelsResponse503Headers the declared response headers of an HTTP 503 response for ListConnectionChannels
type ListConnectionsParams ¶
type ListConnectionsParams struct {
// Cursor Opaque cursor from `next_cursor` of the previous page. Offsets are not supported.
Cursor *Cursor `form:"cursor,omitempty" json:"cursor,omitempty"`
// Limit Page size (`api.page_size`).
Limit *Limit `form:"limit,omitempty" json:"limit,omitempty"`
// Type Filter by type.
Type *ConnectionType `form:"type,omitempty" json:"type,omitempty"`
}
ListConnectionsParams defines parameters for ListConnections.
type ListConnectionsResponse ¶
type ListConnectionsResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *ConnectionList
// ApplicationproblemJSON400 the response for an HTTP 400 `application/problem+json` response
ApplicationproblemJSON400 *BadRequest
// ApplicationproblemJSON401 the response for an HTTP 401 `application/problem+json` response
ApplicationproblemJSON401 *Unauthorized
// ApplicationproblemJSON403 the response for an HTTP 403 `application/problem+json` response
ApplicationproblemJSON403 *Forbidden
// ApplicationproblemJSON429 the response for an HTTP 429 `application/problem+json` response
ApplicationproblemJSON429 *TooManyRequests
// Headers429 the parsed response headers for an HTTP 429 response
Headers429 *ListConnectionsResponse429Headers
}
func ParseListConnectionsResponse ¶
func ParseListConnectionsResponse(rsp *http.Response) (*ListConnectionsResponse, error)
ParseListConnectionsResponse parses an HTTP response from a ListConnectionsWithResponse call
func (ListConnectionsResponse) ContentType ¶
func (r ListConnectionsResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (ListConnectionsResponse) GetApplicationproblemJSON400 ¶
func (r ListConnectionsResponse) GetApplicationproblemJSON400() *BadRequest
GetApplicationproblemJSON400 returns the response for an HTTP 400 `application/problem+json` response
func (ListConnectionsResponse) GetApplicationproblemJSON401 ¶
func (r ListConnectionsResponse) GetApplicationproblemJSON401() *Unauthorized
GetApplicationproblemJSON401 returns the response for an HTTP 401 `application/problem+json` response
func (ListConnectionsResponse) GetApplicationproblemJSON403 ¶
func (r ListConnectionsResponse) GetApplicationproblemJSON403() *Forbidden
GetApplicationproblemJSON403 returns the response for an HTTP 403 `application/problem+json` response
func (ListConnectionsResponse) GetApplicationproblemJSON429 ¶
func (r ListConnectionsResponse) GetApplicationproblemJSON429() *TooManyRequests
GetApplicationproblemJSON429 returns the response for an HTTP 429 `application/problem+json` response
func (ListConnectionsResponse) GetBody ¶
func (r ListConnectionsResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (ListConnectionsResponse) GetJSON200 ¶
func (r ListConnectionsResponse) GetJSON200() *ConnectionList
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (ListConnectionsResponse) Status ¶
func (r ListConnectionsResponse) Status() string
Status returns HTTPResponse.Status
func (ListConnectionsResponse) StatusCode ¶
func (r ListConnectionsResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type ListConnectionsResponse429Headers ¶
type ListConnectionsResponse429Headers struct {
RetryAfter *int
}
ListConnectionsResponse429Headers the declared response headers of an HTTP 429 response for ListConnections
type ListDestinationSecretsResponse ¶
type ListDestinationSecretsResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *DestinationSecretList
// ApplicationproblemJSON401 the response for an HTTP 401 `application/problem+json` response
ApplicationproblemJSON401 *Unauthorized
// ApplicationproblemJSON403 the response for an HTTP 403 `application/problem+json` response
ApplicationproblemJSON403 *Forbidden
// ApplicationproblemJSON404 the response for an HTTP 404 `application/problem+json` response
ApplicationproblemJSON404 *NotFound
// ApplicationproblemJSON409 the response for an HTTP 409 `application/problem+json` response
ApplicationproblemJSON409 *Conflict
// ApplicationproblemJSON429 the response for an HTTP 429 `application/problem+json` response
ApplicationproblemJSON429 *TooManyRequests
// Headers200 the parsed response headers for an HTTP 200 response
Headers200 *ListDestinationSecretsResponse200Headers
// Headers429 the parsed response headers for an HTTP 429 response
Headers429 *ListDestinationSecretsResponse429Headers
}
func ParseListDestinationSecretsResponse ¶
func ParseListDestinationSecretsResponse(rsp *http.Response) (*ListDestinationSecretsResponse, error)
ParseListDestinationSecretsResponse parses an HTTP response from a ListDestinationSecretsWithResponse call
func (ListDestinationSecretsResponse) ContentType ¶
func (r ListDestinationSecretsResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (ListDestinationSecretsResponse) GetApplicationproblemJSON401 ¶
func (r ListDestinationSecretsResponse) GetApplicationproblemJSON401() *Unauthorized
GetApplicationproblemJSON401 returns the response for an HTTP 401 `application/problem+json` response
func (ListDestinationSecretsResponse) GetApplicationproblemJSON403 ¶
func (r ListDestinationSecretsResponse) GetApplicationproblemJSON403() *Forbidden
GetApplicationproblemJSON403 returns the response for an HTTP 403 `application/problem+json` response
func (ListDestinationSecretsResponse) GetApplicationproblemJSON404 ¶
func (r ListDestinationSecretsResponse) GetApplicationproblemJSON404() *NotFound
GetApplicationproblemJSON404 returns the response for an HTTP 404 `application/problem+json` response
func (ListDestinationSecretsResponse) GetApplicationproblemJSON409 ¶
func (r ListDestinationSecretsResponse) GetApplicationproblemJSON409() *Conflict
GetApplicationproblemJSON409 returns the response for an HTTP 409 `application/problem+json` response
func (ListDestinationSecretsResponse) GetApplicationproblemJSON429 ¶
func (r ListDestinationSecretsResponse) GetApplicationproblemJSON429() *TooManyRequests
GetApplicationproblemJSON429 returns the response for an HTTP 429 `application/problem+json` response
func (ListDestinationSecretsResponse) GetBody ¶
func (r ListDestinationSecretsResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (ListDestinationSecretsResponse) GetJSON200 ¶
func (r ListDestinationSecretsResponse) GetJSON200() *DestinationSecretList
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (ListDestinationSecretsResponse) Status ¶
func (r ListDestinationSecretsResponse) Status() string
Status returns HTTPResponse.Status
func (ListDestinationSecretsResponse) StatusCode ¶
func (r ListDestinationSecretsResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type ListDestinationSecretsResponse200Headers ¶
type ListDestinationSecretsResponse200Headers struct {
ETag *string
}
ListDestinationSecretsResponse200Headers the declared response headers of an HTTP 200 response for ListDestinationSecrets
type ListDestinationSecretsResponse429Headers ¶
type ListDestinationSecretsResponse429Headers struct {
RetryAfter *int
}
ListDestinationSecretsResponse429Headers the declared response headers of an HTTP 429 response for ListDestinationSecrets
type ListDestinationsParams ¶
type ListDestinationsParams struct {
// Cursor Opaque cursor from `next_cursor` of the previous page. Offsets are not supported.
Cursor *Cursor `form:"cursor,omitempty" json:"cursor,omitempty"`
// Limit Page size (`api.page_size`).
Limit *Limit `form:"limit,omitempty" json:"limit,omitempty"`
// Type Filter by type.
Type *DestinationType `form:"type,omitempty" json:"type,omitempty"`
// Health Filter by health.
Health *HealthState `form:"health,omitempty" json:"health,omitempty"`
// Route Only Destinations of this Route (`public_id`).
Route *string `form:"route,omitempty" json:"route,omitempty"`
}
ListDestinationsParams defines parameters for ListDestinations.
type ListDestinationsResponse ¶
type ListDestinationsResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *DestinationList
// ApplicationproblemJSON400 the response for an HTTP 400 `application/problem+json` response
ApplicationproblemJSON400 *BadRequest
// ApplicationproblemJSON401 the response for an HTTP 401 `application/problem+json` response
ApplicationproblemJSON401 *Unauthorized
// ApplicationproblemJSON403 the response for an HTTP 403 `application/problem+json` response
ApplicationproblemJSON403 *Forbidden
// ApplicationproblemJSON429 the response for an HTTP 429 `application/problem+json` response
ApplicationproblemJSON429 *TooManyRequests
// Headers429 the parsed response headers for an HTTP 429 response
Headers429 *ListDestinationsResponse429Headers
}
func ParseListDestinationsResponse ¶
func ParseListDestinationsResponse(rsp *http.Response) (*ListDestinationsResponse, error)
ParseListDestinationsResponse parses an HTTP response from a ListDestinationsWithResponse call
func (ListDestinationsResponse) ContentType ¶
func (r ListDestinationsResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (ListDestinationsResponse) GetApplicationproblemJSON400 ¶
func (r ListDestinationsResponse) GetApplicationproblemJSON400() *BadRequest
GetApplicationproblemJSON400 returns the response for an HTTP 400 `application/problem+json` response
func (ListDestinationsResponse) GetApplicationproblemJSON401 ¶
func (r ListDestinationsResponse) GetApplicationproblemJSON401() *Unauthorized
GetApplicationproblemJSON401 returns the response for an HTTP 401 `application/problem+json` response
func (ListDestinationsResponse) GetApplicationproblemJSON403 ¶
func (r ListDestinationsResponse) GetApplicationproblemJSON403() *Forbidden
GetApplicationproblemJSON403 returns the response for an HTTP 403 `application/problem+json` response
func (ListDestinationsResponse) GetApplicationproblemJSON429 ¶
func (r ListDestinationsResponse) GetApplicationproblemJSON429() *TooManyRequests
GetApplicationproblemJSON429 returns the response for an HTTP 429 `application/problem+json` response
func (ListDestinationsResponse) GetBody ¶
func (r ListDestinationsResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (ListDestinationsResponse) GetJSON200 ¶
func (r ListDestinationsResponse) GetJSON200() *DestinationList
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (ListDestinationsResponse) Status ¶
func (r ListDestinationsResponse) Status() string
Status returns HTTPResponse.Status
func (ListDestinationsResponse) StatusCode ¶
func (r ListDestinationsResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type ListDestinationsResponse429Headers ¶
type ListDestinationsResponse429Headers struct {
RetryAfter *int
}
ListDestinationsResponse429Headers the declared response headers of an HTTP 429 response for ListDestinations
type ListIntegrationAlertsParams ¶
type ListIntegrationAlertsParams struct {
// Cursor Opaque cursor from `next_cursor` of the previous page. Offsets are not supported.
Cursor *Cursor `form:"cursor,omitempty" json:"cursor,omitempty"`
// Limit Page size (`api.page_size`).
Limit *Limit `form:"limit,omitempty" json:"limit,omitempty"`
// State Filter by state.
State *AlertState `form:"state,omitempty" json:"state,omitempty"`
// Label Label filter: one Alertmanager-syntax Matcher per repeat of the parameter, combined with AND. Each value is a whole matcher: `label=namespace%3D%22payments%22&label=pod%3D~%22api-.*%22` means `namespace="payments"` and `pod=~"api-.*"`. There is no per-label shorthand. On Alert Groups the Matchers are matched against the common labels — the labels every Alert of the group has with the same value — so the filter also works on summary rows after the Alerts were removed; a label the Alerts do not share counts as absent. On the Alerts view of an Integration they are matched against each Alert's labels.
Label *LabelMatchers `form:"label,omitempty" json:"label,omitempty"`
// Q Case-insensitive match on label values.
Q *string `form:"q,omitempty" json:"q,omitempty"`
// Sort Sort field; a leading `-` sorts descending.
Sort *ListIntegrationAlertsParamsSort `form:"sort,omitempty" json:"sort,omitempty"`
}
ListIntegrationAlertsParams defines parameters for ListIntegrationAlerts.
type ListIntegrationAlertsParamsSort ¶
type ListIntegrationAlertsParamsSort string
ListIntegrationAlertsParamsSort defines parameters for ListIntegrationAlerts.
const ( LastSeenAt ListIntegrationAlertsParamsSort = "last_seen_at" MinusLastSeenAt ListIntegrationAlertsParamsSort = "-last_seen_at" MinusStartsAt ListIntegrationAlertsParamsSort = "-starts_at" StartsAt ListIntegrationAlertsParamsSort = "starts_at" )
Defines values for ListIntegrationAlertsParamsSort.
func (ListIntegrationAlertsParamsSort) Valid ¶
func (e ListIntegrationAlertsParamsSort) Valid() bool
Valid indicates whether the value is a known member of the ListIntegrationAlertsParamsSort enum.
type ListIntegrationAlertsResponse ¶
type ListIntegrationAlertsResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *IntegrationAlertList
// ApplicationproblemJSON400 the response for an HTTP 400 `application/problem+json` response
ApplicationproblemJSON400 *BadRequest
// ApplicationproblemJSON401 the response for an HTTP 401 `application/problem+json` response
ApplicationproblemJSON401 *Unauthorized
// ApplicationproblemJSON403 the response for an HTTP 403 `application/problem+json` response
ApplicationproblemJSON403 *Forbidden
// ApplicationproblemJSON404 the response for an HTTP 404 `application/problem+json` response
ApplicationproblemJSON404 *NotFound
// ApplicationproblemJSON429 the response for an HTTP 429 `application/problem+json` response
ApplicationproblemJSON429 *TooManyRequests
// Headers429 the parsed response headers for an HTTP 429 response
Headers429 *ListIntegrationAlertsResponse429Headers
}
func ParseListIntegrationAlertsResponse ¶
func ParseListIntegrationAlertsResponse(rsp *http.Response) (*ListIntegrationAlertsResponse, error)
ParseListIntegrationAlertsResponse parses an HTTP response from a ListIntegrationAlertsWithResponse call
func (ListIntegrationAlertsResponse) ContentType ¶
func (r ListIntegrationAlertsResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (ListIntegrationAlertsResponse) GetApplicationproblemJSON400 ¶
func (r ListIntegrationAlertsResponse) GetApplicationproblemJSON400() *BadRequest
GetApplicationproblemJSON400 returns the response for an HTTP 400 `application/problem+json` response
func (ListIntegrationAlertsResponse) GetApplicationproblemJSON401 ¶
func (r ListIntegrationAlertsResponse) GetApplicationproblemJSON401() *Unauthorized
GetApplicationproblemJSON401 returns the response for an HTTP 401 `application/problem+json` response
func (ListIntegrationAlertsResponse) GetApplicationproblemJSON403 ¶
func (r ListIntegrationAlertsResponse) GetApplicationproblemJSON403() *Forbidden
GetApplicationproblemJSON403 returns the response for an HTTP 403 `application/problem+json` response
func (ListIntegrationAlertsResponse) GetApplicationproblemJSON404 ¶
func (r ListIntegrationAlertsResponse) GetApplicationproblemJSON404() *NotFound
GetApplicationproblemJSON404 returns the response for an HTTP 404 `application/problem+json` response
func (ListIntegrationAlertsResponse) GetApplicationproblemJSON429 ¶
func (r ListIntegrationAlertsResponse) GetApplicationproblemJSON429() *TooManyRequests
GetApplicationproblemJSON429 returns the response for an HTTP 429 `application/problem+json` response
func (ListIntegrationAlertsResponse) GetBody ¶
func (r ListIntegrationAlertsResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (ListIntegrationAlertsResponse) GetJSON200 ¶
func (r ListIntegrationAlertsResponse) GetJSON200() *IntegrationAlertList
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (ListIntegrationAlertsResponse) Status ¶
func (r ListIntegrationAlertsResponse) Status() string
Status returns HTTPResponse.Status
func (ListIntegrationAlertsResponse) StatusCode ¶
func (r ListIntegrationAlertsResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type ListIntegrationAlertsResponse429Headers ¶
type ListIntegrationAlertsResponse429Headers struct {
RetryAfter *int
}
ListIntegrationAlertsResponse429Headers the declared response headers of an HTTP 429 response for ListIntegrationAlerts
type ListIntegrationTokensResponse ¶
type ListIntegrationTokensResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *IntegrationTokenList
// ApplicationproblemJSON401 the response for an HTTP 401 `application/problem+json` response
ApplicationproblemJSON401 *Unauthorized
// ApplicationproblemJSON403 the response for an HTTP 403 `application/problem+json` response
ApplicationproblemJSON403 *Forbidden
// ApplicationproblemJSON404 the response for an HTTP 404 `application/problem+json` response
ApplicationproblemJSON404 *NotFound
// ApplicationproblemJSON429 the response for an HTTP 429 `application/problem+json` response
ApplicationproblemJSON429 *TooManyRequests
// Headers429 the parsed response headers for an HTTP 429 response
Headers429 *ListIntegrationTokensResponse429Headers
}
func ParseListIntegrationTokensResponse ¶
func ParseListIntegrationTokensResponse(rsp *http.Response) (*ListIntegrationTokensResponse, error)
ParseListIntegrationTokensResponse parses an HTTP response from a ListIntegrationTokensWithResponse call
func (ListIntegrationTokensResponse) ContentType ¶
func (r ListIntegrationTokensResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (ListIntegrationTokensResponse) GetApplicationproblemJSON401 ¶
func (r ListIntegrationTokensResponse) GetApplicationproblemJSON401() *Unauthorized
GetApplicationproblemJSON401 returns the response for an HTTP 401 `application/problem+json` response
func (ListIntegrationTokensResponse) GetApplicationproblemJSON403 ¶
func (r ListIntegrationTokensResponse) GetApplicationproblemJSON403() *Forbidden
GetApplicationproblemJSON403 returns the response for an HTTP 403 `application/problem+json` response
func (ListIntegrationTokensResponse) GetApplicationproblemJSON404 ¶
func (r ListIntegrationTokensResponse) GetApplicationproblemJSON404() *NotFound
GetApplicationproblemJSON404 returns the response for an HTTP 404 `application/problem+json` response
func (ListIntegrationTokensResponse) GetApplicationproblemJSON429 ¶
func (r ListIntegrationTokensResponse) GetApplicationproblemJSON429() *TooManyRequests
GetApplicationproblemJSON429 returns the response for an HTTP 429 `application/problem+json` response
func (ListIntegrationTokensResponse) GetBody ¶
func (r ListIntegrationTokensResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (ListIntegrationTokensResponse) GetJSON200 ¶
func (r ListIntegrationTokensResponse) GetJSON200() *IntegrationTokenList
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (ListIntegrationTokensResponse) Status ¶
func (r ListIntegrationTokensResponse) Status() string
Status returns HTTPResponse.Status
func (ListIntegrationTokensResponse) StatusCode ¶
func (r ListIntegrationTokensResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type ListIntegrationTokensResponse429Headers ¶
type ListIntegrationTokensResponse429Headers struct {
RetryAfter *int
}
ListIntegrationTokensResponse429Headers the declared response headers of an HTTP 429 response for ListIntegrationTokens
type ListIntegrationsParams ¶
type ListIntegrationsParams struct {
// Cursor Opaque cursor from `next_cursor` of the previous page. Offsets are not supported.
Cursor *Cursor `form:"cursor,omitempty" json:"cursor,omitempty"`
// Limit Page size (`api.page_size`).
Limit *Limit `form:"limit,omitempty" json:"limit,omitempty"`
}
ListIntegrationsParams defines parameters for ListIntegrations.
type ListIntegrationsResponse ¶
type ListIntegrationsResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *IntegrationList
// ApplicationproblemJSON400 the response for an HTTP 400 `application/problem+json` response
ApplicationproblemJSON400 *BadRequest
// ApplicationproblemJSON401 the response for an HTTP 401 `application/problem+json` response
ApplicationproblemJSON401 *Unauthorized
// ApplicationproblemJSON403 the response for an HTTP 403 `application/problem+json` response
ApplicationproblemJSON403 *Forbidden
// ApplicationproblemJSON429 the response for an HTTP 429 `application/problem+json` response
ApplicationproblemJSON429 *TooManyRequests
// Headers429 the parsed response headers for an HTTP 429 response
Headers429 *ListIntegrationsResponse429Headers
}
func ParseListIntegrationsResponse ¶
func ParseListIntegrationsResponse(rsp *http.Response) (*ListIntegrationsResponse, error)
ParseListIntegrationsResponse parses an HTTP response from a ListIntegrationsWithResponse call
func (ListIntegrationsResponse) ContentType ¶
func (r ListIntegrationsResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (ListIntegrationsResponse) GetApplicationproblemJSON400 ¶
func (r ListIntegrationsResponse) GetApplicationproblemJSON400() *BadRequest
GetApplicationproblemJSON400 returns the response for an HTTP 400 `application/problem+json` response
func (ListIntegrationsResponse) GetApplicationproblemJSON401 ¶
func (r ListIntegrationsResponse) GetApplicationproblemJSON401() *Unauthorized
GetApplicationproblemJSON401 returns the response for an HTTP 401 `application/problem+json` response
func (ListIntegrationsResponse) GetApplicationproblemJSON403 ¶
func (r ListIntegrationsResponse) GetApplicationproblemJSON403() *Forbidden
GetApplicationproblemJSON403 returns the response for an HTTP 403 `application/problem+json` response
func (ListIntegrationsResponse) GetApplicationproblemJSON429 ¶
func (r ListIntegrationsResponse) GetApplicationproblemJSON429() *TooManyRequests
GetApplicationproblemJSON429 returns the response for an HTTP 429 `application/problem+json` response
func (ListIntegrationsResponse) GetBody ¶
func (r ListIntegrationsResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (ListIntegrationsResponse) GetJSON200 ¶
func (r ListIntegrationsResponse) GetJSON200() *IntegrationList
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (ListIntegrationsResponse) Status ¶
func (r ListIntegrationsResponse) Status() string
Status returns HTTPResponse.Status
func (ListIntegrationsResponse) StatusCode ¶
func (r ListIntegrationsResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type ListIntegrationsResponse429Headers ¶
type ListIntegrationsResponse429Headers struct {
RetryAfter *int
}
ListIntegrationsResponse429Headers the declared response headers of an HTTP 429 response for ListIntegrations
type ListLinkRulesParams ¶
type ListLinkRulesParams struct {
// Cursor Opaque cursor from `next_cursor` of the previous page. Offsets are not supported.
Cursor *Cursor `form:"cursor,omitempty" json:"cursor,omitempty"`
// Limit Page size (`api.page_size`).
Limit *Limit `form:"limit,omitempty" json:"limit,omitempty"`
}
ListLinkRulesParams defines parameters for ListLinkRules.
type ListLinkRulesResponse ¶
type ListLinkRulesResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *LinkRuleList
// ApplicationproblemJSON400 the response for an HTTP 400 `application/problem+json` response
ApplicationproblemJSON400 *BadRequest
// ApplicationproblemJSON401 the response for an HTTP 401 `application/problem+json` response
ApplicationproblemJSON401 *Unauthorized
// ApplicationproblemJSON403 the response for an HTTP 403 `application/problem+json` response
ApplicationproblemJSON403 *Forbidden
// ApplicationproblemJSON429 the response for an HTTP 429 `application/problem+json` response
ApplicationproblemJSON429 *TooManyRequests
// Headers429 the parsed response headers for an HTTP 429 response
Headers429 *ListLinkRulesResponse429Headers
}
func ParseListLinkRulesResponse ¶
func ParseListLinkRulesResponse(rsp *http.Response) (*ListLinkRulesResponse, error)
ParseListLinkRulesResponse parses an HTTP response from a ListLinkRulesWithResponse call
func (ListLinkRulesResponse) ContentType ¶
func (r ListLinkRulesResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (ListLinkRulesResponse) GetApplicationproblemJSON400 ¶
func (r ListLinkRulesResponse) GetApplicationproblemJSON400() *BadRequest
GetApplicationproblemJSON400 returns the response for an HTTP 400 `application/problem+json` response
func (ListLinkRulesResponse) GetApplicationproblemJSON401 ¶
func (r ListLinkRulesResponse) GetApplicationproblemJSON401() *Unauthorized
GetApplicationproblemJSON401 returns the response for an HTTP 401 `application/problem+json` response
func (ListLinkRulesResponse) GetApplicationproblemJSON403 ¶
func (r ListLinkRulesResponse) GetApplicationproblemJSON403() *Forbidden
GetApplicationproblemJSON403 returns the response for an HTTP 403 `application/problem+json` response
func (ListLinkRulesResponse) GetApplicationproblemJSON429 ¶
func (r ListLinkRulesResponse) GetApplicationproblemJSON429() *TooManyRequests
GetApplicationproblemJSON429 returns the response for an HTTP 429 `application/problem+json` response
func (ListLinkRulesResponse) GetBody ¶
func (r ListLinkRulesResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (ListLinkRulesResponse) GetJSON200 ¶
func (r ListLinkRulesResponse) GetJSON200() *LinkRuleList
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (ListLinkRulesResponse) Status ¶
func (r ListLinkRulesResponse) Status() string
Status returns HTTPResponse.Status
func (ListLinkRulesResponse) StatusCode ¶
func (r ListLinkRulesResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type ListLinkRulesResponse429Headers ¶
type ListLinkRulesResponse429Headers struct {
RetryAfter *int
}
ListLinkRulesResponse429Headers the declared response headers of an HTTP 429 response for ListLinkRules
type ListLinkableConnectionsResponse ¶
type ListLinkableConnectionsResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *LinkableConnectionList
// ApplicationproblemJSON401 the response for an HTTP 401 `application/problem+json` response
ApplicationproblemJSON401 *Unauthorized
// ApplicationproblemJSON403 the response for an HTTP 403 `application/problem+json` response
ApplicationproblemJSON403 *Forbidden
// ApplicationproblemJSON429 the response for an HTTP 429 `application/problem+json` response
ApplicationproblemJSON429 *TooManyRequests
// Headers429 the parsed response headers for an HTTP 429 response
Headers429 *ListLinkableConnectionsResponse429Headers
}
func ParseListLinkableConnectionsResponse ¶
func ParseListLinkableConnectionsResponse(rsp *http.Response) (*ListLinkableConnectionsResponse, error)
ParseListLinkableConnectionsResponse parses an HTTP response from a ListLinkableConnectionsWithResponse call
func (ListLinkableConnectionsResponse) ContentType ¶
func (r ListLinkableConnectionsResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (ListLinkableConnectionsResponse) GetApplicationproblemJSON401 ¶
func (r ListLinkableConnectionsResponse) GetApplicationproblemJSON401() *Unauthorized
GetApplicationproblemJSON401 returns the response for an HTTP 401 `application/problem+json` response
func (ListLinkableConnectionsResponse) GetApplicationproblemJSON403 ¶
func (r ListLinkableConnectionsResponse) GetApplicationproblemJSON403() *Forbidden
GetApplicationproblemJSON403 returns the response for an HTTP 403 `application/problem+json` response
func (ListLinkableConnectionsResponse) GetApplicationproblemJSON429 ¶
func (r ListLinkableConnectionsResponse) GetApplicationproblemJSON429() *TooManyRequests
GetApplicationproblemJSON429 returns the response for an HTTP 429 `application/problem+json` response
func (ListLinkableConnectionsResponse) GetBody ¶
func (r ListLinkableConnectionsResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (ListLinkableConnectionsResponse) GetJSON200 ¶
func (r ListLinkableConnectionsResponse) GetJSON200() *LinkableConnectionList
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (ListLinkableConnectionsResponse) Status ¶
func (r ListLinkableConnectionsResponse) Status() string
Status returns HTTPResponse.Status
func (ListLinkableConnectionsResponse) StatusCode ¶
func (r ListLinkableConnectionsResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type ListLinkableConnectionsResponse429Headers ¶
type ListLinkableConnectionsResponse429Headers struct {
RetryAfter *int
}
ListLinkableConnectionsResponse429Headers the declared response headers of an HTTP 429 response for ListLinkableConnections
type ListLookupTablesParams ¶
type ListLookupTablesParams struct {
// Cursor Opaque cursor from `next_cursor` of the previous page. Offsets are not supported.
Cursor *Cursor `form:"cursor,omitempty" json:"cursor,omitempty"`
// Limit Page size (`api.page_size`).
Limit *Limit `form:"limit,omitempty" json:"limit,omitempty"`
}
ListLookupTablesParams defines parameters for ListLookupTables.
type ListLookupTablesResponse ¶
type ListLookupTablesResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *LookupTableList
// ApplicationproblemJSON400 the response for an HTTP 400 `application/problem+json` response
ApplicationproblemJSON400 *BadRequest
// ApplicationproblemJSON401 the response for an HTTP 401 `application/problem+json` response
ApplicationproblemJSON401 *Unauthorized
// ApplicationproblemJSON403 the response for an HTTP 403 `application/problem+json` response
ApplicationproblemJSON403 *Forbidden
// ApplicationproblemJSON429 the response for an HTTP 429 `application/problem+json` response
ApplicationproblemJSON429 *TooManyRequests
// Headers429 the parsed response headers for an HTTP 429 response
Headers429 *ListLookupTablesResponse429Headers
}
func ParseListLookupTablesResponse ¶
func ParseListLookupTablesResponse(rsp *http.Response) (*ListLookupTablesResponse, error)
ParseListLookupTablesResponse parses an HTTP response from a ListLookupTablesWithResponse call
func (ListLookupTablesResponse) ContentType ¶
func (r ListLookupTablesResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (ListLookupTablesResponse) GetApplicationproblemJSON400 ¶
func (r ListLookupTablesResponse) GetApplicationproblemJSON400() *BadRequest
GetApplicationproblemJSON400 returns the response for an HTTP 400 `application/problem+json` response
func (ListLookupTablesResponse) GetApplicationproblemJSON401 ¶
func (r ListLookupTablesResponse) GetApplicationproblemJSON401() *Unauthorized
GetApplicationproblemJSON401 returns the response for an HTTP 401 `application/problem+json` response
func (ListLookupTablesResponse) GetApplicationproblemJSON403 ¶
func (r ListLookupTablesResponse) GetApplicationproblemJSON403() *Forbidden
GetApplicationproblemJSON403 returns the response for an HTTP 403 `application/problem+json` response
func (ListLookupTablesResponse) GetApplicationproblemJSON429 ¶
func (r ListLookupTablesResponse) GetApplicationproblemJSON429() *TooManyRequests
GetApplicationproblemJSON429 returns the response for an HTTP 429 `application/problem+json` response
func (ListLookupTablesResponse) GetBody ¶
func (r ListLookupTablesResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (ListLookupTablesResponse) GetJSON200 ¶
func (r ListLookupTablesResponse) GetJSON200() *LookupTableList
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (ListLookupTablesResponse) Status ¶
func (r ListLookupTablesResponse) Status() string
Status returns HTTPResponse.Status
func (ListLookupTablesResponse) StatusCode ¶
func (r ListLookupTablesResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type ListLookupTablesResponse429Headers ¶
type ListLookupTablesResponse429Headers struct {
RetryAfter *int
}
ListLookupTablesResponse429Headers the declared response headers of an HTTP 429 response for ListLookupTables
type ListMyAccountLinksResponse ¶
type ListMyAccountLinksResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *AccountLinkList
// ApplicationproblemJSON401 the response for an HTTP 401 `application/problem+json` response
ApplicationproblemJSON401 *Unauthorized
// ApplicationproblemJSON403 the response for an HTTP 403 `application/problem+json` response
ApplicationproblemJSON403 *Forbidden
// ApplicationproblemJSON429 the response for an HTTP 429 `application/problem+json` response
ApplicationproblemJSON429 *TooManyRequests
// Headers429 the parsed response headers for an HTTP 429 response
Headers429 *ListMyAccountLinksResponse429Headers
}
func ParseListMyAccountLinksResponse ¶
func ParseListMyAccountLinksResponse(rsp *http.Response) (*ListMyAccountLinksResponse, error)
ParseListMyAccountLinksResponse parses an HTTP response from a ListMyAccountLinksWithResponse call
func (ListMyAccountLinksResponse) ContentType ¶
func (r ListMyAccountLinksResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (ListMyAccountLinksResponse) GetApplicationproblemJSON401 ¶
func (r ListMyAccountLinksResponse) GetApplicationproblemJSON401() *Unauthorized
GetApplicationproblemJSON401 returns the response for an HTTP 401 `application/problem+json` response
func (ListMyAccountLinksResponse) GetApplicationproblemJSON403 ¶
func (r ListMyAccountLinksResponse) GetApplicationproblemJSON403() *Forbidden
GetApplicationproblemJSON403 returns the response for an HTTP 403 `application/problem+json` response
func (ListMyAccountLinksResponse) GetApplicationproblemJSON429 ¶
func (r ListMyAccountLinksResponse) GetApplicationproblemJSON429() *TooManyRequests
GetApplicationproblemJSON429 returns the response for an HTTP 429 `application/problem+json` response
func (ListMyAccountLinksResponse) GetBody ¶
func (r ListMyAccountLinksResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (ListMyAccountLinksResponse) GetJSON200 ¶
func (r ListMyAccountLinksResponse) GetJSON200() *AccountLinkList
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (ListMyAccountLinksResponse) Status ¶
func (r ListMyAccountLinksResponse) Status() string
Status returns HTTPResponse.Status
func (ListMyAccountLinksResponse) StatusCode ¶
func (r ListMyAccountLinksResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type ListMyAccountLinksResponse429Headers ¶
type ListMyAccountLinksResponse429Headers struct {
RetryAfter *int
}
ListMyAccountLinksResponse429Headers the declared response headers of an HTTP 429 response for ListMyAccountLinks
type ListMySessionsResponse ¶
type ListMySessionsResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *SessionInfoList
// ApplicationproblemJSON401 the response for an HTTP 401 `application/problem+json` response
ApplicationproblemJSON401 *Unauthorized
// ApplicationproblemJSON403 the response for an HTTP 403 `application/problem+json` response
ApplicationproblemJSON403 *Forbidden
// ApplicationproblemJSON429 the response for an HTTP 429 `application/problem+json` response
ApplicationproblemJSON429 *TooManyRequests
// Headers429 the parsed response headers for an HTTP 429 response
Headers429 *ListMySessionsResponse429Headers
}
func ParseListMySessionsResponse ¶
func ParseListMySessionsResponse(rsp *http.Response) (*ListMySessionsResponse, error)
ParseListMySessionsResponse parses an HTTP response from a ListMySessionsWithResponse call
func (ListMySessionsResponse) ContentType ¶
func (r ListMySessionsResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (ListMySessionsResponse) GetApplicationproblemJSON401 ¶
func (r ListMySessionsResponse) GetApplicationproblemJSON401() *Unauthorized
GetApplicationproblemJSON401 returns the response for an HTTP 401 `application/problem+json` response
func (ListMySessionsResponse) GetApplicationproblemJSON403 ¶
func (r ListMySessionsResponse) GetApplicationproblemJSON403() *Forbidden
GetApplicationproblemJSON403 returns the response for an HTTP 403 `application/problem+json` response
func (ListMySessionsResponse) GetApplicationproblemJSON429 ¶
func (r ListMySessionsResponse) GetApplicationproblemJSON429() *TooManyRequests
GetApplicationproblemJSON429 returns the response for an HTTP 429 `application/problem+json` response
func (ListMySessionsResponse) GetBody ¶
func (r ListMySessionsResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (ListMySessionsResponse) GetJSON200 ¶
func (r ListMySessionsResponse) GetJSON200() *SessionInfoList
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (ListMySessionsResponse) Status ¶
func (r ListMySessionsResponse) Status() string
Status returns HTTPResponse.Status
func (ListMySessionsResponse) StatusCode ¶
func (r ListMySessionsResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type ListMySessionsResponse429Headers ¶
type ListMySessionsResponse429Headers struct {
RetryAfter *int
}
ListMySessionsResponse429Headers the declared response headers of an HTTP 429 response for ListMySessions
type ListPersonalAccessTokensResponse ¶
type ListPersonalAccessTokensResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *PersonalAccessTokenList
// ApplicationproblemJSON401 the response for an HTTP 401 `application/problem+json` response
ApplicationproblemJSON401 *Unauthorized
// ApplicationproblemJSON403 the response for an HTTP 403 `application/problem+json` response
ApplicationproblemJSON403 *Forbidden
// ApplicationproblemJSON429 the response for an HTTP 429 `application/problem+json` response
ApplicationproblemJSON429 *TooManyRequests
// Headers429 the parsed response headers for an HTTP 429 response
Headers429 *ListPersonalAccessTokensResponse429Headers
}
func ParseListPersonalAccessTokensResponse ¶
func ParseListPersonalAccessTokensResponse(rsp *http.Response) (*ListPersonalAccessTokensResponse, error)
ParseListPersonalAccessTokensResponse parses an HTTP response from a ListPersonalAccessTokensWithResponse call
func (ListPersonalAccessTokensResponse) ContentType ¶
func (r ListPersonalAccessTokensResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (ListPersonalAccessTokensResponse) GetApplicationproblemJSON401 ¶
func (r ListPersonalAccessTokensResponse) GetApplicationproblemJSON401() *Unauthorized
GetApplicationproblemJSON401 returns the response for an HTTP 401 `application/problem+json` response
func (ListPersonalAccessTokensResponse) GetApplicationproblemJSON403 ¶
func (r ListPersonalAccessTokensResponse) GetApplicationproblemJSON403() *Forbidden
GetApplicationproblemJSON403 returns the response for an HTTP 403 `application/problem+json` response
func (ListPersonalAccessTokensResponse) GetApplicationproblemJSON429 ¶
func (r ListPersonalAccessTokensResponse) GetApplicationproblemJSON429() *TooManyRequests
GetApplicationproblemJSON429 returns the response for an HTTP 429 `application/problem+json` response
func (ListPersonalAccessTokensResponse) GetBody ¶
func (r ListPersonalAccessTokensResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (ListPersonalAccessTokensResponse) GetJSON200 ¶
func (r ListPersonalAccessTokensResponse) GetJSON200() *PersonalAccessTokenList
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (ListPersonalAccessTokensResponse) Status ¶
func (r ListPersonalAccessTokensResponse) Status() string
Status returns HTTPResponse.Status
func (ListPersonalAccessTokensResponse) StatusCode ¶
func (r ListPersonalAccessTokensResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type ListPersonalAccessTokensResponse429Headers ¶
type ListPersonalAccessTokensResponse429Headers struct {
RetryAfter *int
}
ListPersonalAccessTokensResponse429Headers the declared response headers of an HTTP 429 response for ListPersonalAccessTokens
type ListRelatedAlertGroupsParams ¶
type ListRelatedAlertGroupsParams struct {
// Cursor Opaque cursor from `next_cursor` of the previous page. Offsets are not supported.
Cursor *Cursor `form:"cursor,omitempty" json:"cursor,omitempty"`
// Limit Page size (`api.page_size`).
Limit *Limit `form:"limit,omitempty" json:"limit,omitempty"`
}
ListRelatedAlertGroupsParams defines parameters for ListRelatedAlertGroups.
type ListRelatedAlertGroupsResponse ¶
type ListRelatedAlertGroupsResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *RelatedAlertGroupList
// ApplicationproblemJSON400 the response for an HTTP 400 `application/problem+json` response
ApplicationproblemJSON400 *BadRequest
// ApplicationproblemJSON401 the response for an HTTP 401 `application/problem+json` response
ApplicationproblemJSON401 *Unauthorized
// ApplicationproblemJSON403 the response for an HTTP 403 `application/problem+json` response
ApplicationproblemJSON403 *Forbidden
// ApplicationproblemJSON404 the response for an HTTP 404 `application/problem+json` response
ApplicationproblemJSON404 *NotFound
// ApplicationproblemJSON429 the response for an HTTP 429 `application/problem+json` response
ApplicationproblemJSON429 *TooManyRequests
// Headers429 the parsed response headers for an HTTP 429 response
Headers429 *ListRelatedAlertGroupsResponse429Headers
}
func ParseListRelatedAlertGroupsResponse ¶
func ParseListRelatedAlertGroupsResponse(rsp *http.Response) (*ListRelatedAlertGroupsResponse, error)
ParseListRelatedAlertGroupsResponse parses an HTTP response from a ListRelatedAlertGroupsWithResponse call
func (ListRelatedAlertGroupsResponse) ContentType ¶
func (r ListRelatedAlertGroupsResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (ListRelatedAlertGroupsResponse) GetApplicationproblemJSON400 ¶
func (r ListRelatedAlertGroupsResponse) GetApplicationproblemJSON400() *BadRequest
GetApplicationproblemJSON400 returns the response for an HTTP 400 `application/problem+json` response
func (ListRelatedAlertGroupsResponse) GetApplicationproblemJSON401 ¶
func (r ListRelatedAlertGroupsResponse) GetApplicationproblemJSON401() *Unauthorized
GetApplicationproblemJSON401 returns the response for an HTTP 401 `application/problem+json` response
func (ListRelatedAlertGroupsResponse) GetApplicationproblemJSON403 ¶
func (r ListRelatedAlertGroupsResponse) GetApplicationproblemJSON403() *Forbidden
GetApplicationproblemJSON403 returns the response for an HTTP 403 `application/problem+json` response
func (ListRelatedAlertGroupsResponse) GetApplicationproblemJSON404 ¶
func (r ListRelatedAlertGroupsResponse) GetApplicationproblemJSON404() *NotFound
GetApplicationproblemJSON404 returns the response for an HTTP 404 `application/problem+json` response
func (ListRelatedAlertGroupsResponse) GetApplicationproblemJSON429 ¶
func (r ListRelatedAlertGroupsResponse) GetApplicationproblemJSON429() *TooManyRequests
GetApplicationproblemJSON429 returns the response for an HTTP 429 `application/problem+json` response
func (ListRelatedAlertGroupsResponse) GetBody ¶
func (r ListRelatedAlertGroupsResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (ListRelatedAlertGroupsResponse) GetJSON200 ¶
func (r ListRelatedAlertGroupsResponse) GetJSON200() *RelatedAlertGroupList
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (ListRelatedAlertGroupsResponse) Status ¶
func (r ListRelatedAlertGroupsResponse) Status() string
Status returns HTTPResponse.Status
func (ListRelatedAlertGroupsResponse) StatusCode ¶
func (r ListRelatedAlertGroupsResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type ListRelatedAlertGroupsResponse429Headers ¶
type ListRelatedAlertGroupsResponse429Headers struct {
RetryAfter *int
}
ListRelatedAlertGroupsResponse429Headers the declared response headers of an HTTP 429 response for ListRelatedAlertGroups
type ListRequestLogParams ¶
type ListRequestLogParams struct {
// Cursor Opaque cursor from `next_cursor` of the previous page. Offsets are not supported.
Cursor *Cursor `form:"cursor,omitempty" json:"cursor,omitempty"`
// Limit Page size (`api.page_size`).
Limit *Limit `form:"limit,omitempty" json:"limit,omitempty"`
// Connection The Connection whose records are listed, by `public_id`.
Connection *PublicId `form:"connection,omitempty" json:"connection,omitempty"`
// Destination The Destination whose records are listed, by `public_id`.
Destination *PublicId `form:"destination,omitempty" json:"destination,omitempty"`
// Direction Only the requests Muster sent (`outbound`) or received (`inbound`).
Direction *RequestDirection `form:"direction,omitempty" json:"direction,omitempty"`
// StatusClass Only the records whose answer has a status of this class, or, with `none`, those that got no answer or are a Socket Mode envelope, whose confirmation has no status.
StatusClass *ListRequestLogParamsStatusClass `form:"status_class,omitempty" json:"status_class,omitempty"`
// Operation Only the records of this operation, such as `createPost`, `getUpdates`, `pollEvents` or `event`.
Operation *string `form:"operation,omitempty" json:"operation,omitempty"`
// AlertGroup Only the records of the deliveries of this Alert Group, by `public_id`.
AlertGroup *PublicId `form:"alert_group,omitempty" json:"alert_group,omitempty"`
// Run Only the records of this check run (`CR…`), which the results of `checkConnection`, `checkConnectionDraft`, `checkDestination` and `testDestination` name as `request_log_run`. Alone it lists the records of the run whose owner is a Connection or nobody and needs `connections:read`; the records of an outgoing webhook's test or probe are listed beside its `destination`. A run that left no record, or an id that is no check run, lists nothing.
Run *PublicId `form:"run,omitempty" json:"run,omitempty"`
}
ListRequestLogParams defines parameters for ListRequestLog.
type ListRequestLogParamsStatusClass ¶
type ListRequestLogParamsStatusClass string
ListRequestLogParamsStatusClass defines parameters for ListRequestLog.
const ( ListRequestLogParamsStatusClassN2xx ListRequestLogParamsStatusClass = "2xx" ListRequestLogParamsStatusClassN3xx ListRequestLogParamsStatusClass = "3xx" ListRequestLogParamsStatusClassN4xx ListRequestLogParamsStatusClass = "4xx" ListRequestLogParamsStatusClassN5xx ListRequestLogParamsStatusClass = "5xx" ListRequestLogParamsStatusClassNone ListRequestLogParamsStatusClass = "none" )
Defines values for ListRequestLogParamsStatusClass.
func (ListRequestLogParamsStatusClass) Valid ¶
func (e ListRequestLogParamsStatusClass) Valid() bool
Valid indicates whether the value is a known member of the ListRequestLogParamsStatusClass enum.
type ListRequestLogResponse ¶
type ListRequestLogResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *RequestLogList
// ApplicationproblemJSON400 the response for an HTTP 400 `application/problem+json` response
ApplicationproblemJSON400 *BadRequest
// ApplicationproblemJSON401 the response for an HTTP 401 `application/problem+json` response
ApplicationproblemJSON401 *Unauthorized
// ApplicationproblemJSON403 the response for an HTTP 403 `application/problem+json` response
ApplicationproblemJSON403 *Forbidden
// ApplicationproblemJSON404 the response for an HTTP 404 `application/problem+json` response
ApplicationproblemJSON404 *NotFound
// ApplicationproblemJSON422 the response for an HTTP 422 `application/problem+json` response
ApplicationproblemJSON422 *Unprocessable
// ApplicationproblemJSON429 the response for an HTTP 429 `application/problem+json` response
ApplicationproblemJSON429 *TooManyRequests
// Headers429 the parsed response headers for an HTTP 429 response
Headers429 *ListRequestLogResponse429Headers
}
func ParseListRequestLogResponse ¶
func ParseListRequestLogResponse(rsp *http.Response) (*ListRequestLogResponse, error)
ParseListRequestLogResponse parses an HTTP response from a ListRequestLogWithResponse call
func (ListRequestLogResponse) ContentType ¶
func (r ListRequestLogResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (ListRequestLogResponse) GetApplicationproblemJSON400 ¶
func (r ListRequestLogResponse) GetApplicationproblemJSON400() *BadRequest
GetApplicationproblemJSON400 returns the response for an HTTP 400 `application/problem+json` response
func (ListRequestLogResponse) GetApplicationproblemJSON401 ¶
func (r ListRequestLogResponse) GetApplicationproblemJSON401() *Unauthorized
GetApplicationproblemJSON401 returns the response for an HTTP 401 `application/problem+json` response
func (ListRequestLogResponse) GetApplicationproblemJSON403 ¶
func (r ListRequestLogResponse) GetApplicationproblemJSON403() *Forbidden
GetApplicationproblemJSON403 returns the response for an HTTP 403 `application/problem+json` response
func (ListRequestLogResponse) GetApplicationproblemJSON404 ¶
func (r ListRequestLogResponse) GetApplicationproblemJSON404() *NotFound
GetApplicationproblemJSON404 returns the response for an HTTP 404 `application/problem+json` response
func (ListRequestLogResponse) GetApplicationproblemJSON422 ¶
func (r ListRequestLogResponse) GetApplicationproblemJSON422() *Unprocessable
GetApplicationproblemJSON422 returns the response for an HTTP 422 `application/problem+json` response
func (ListRequestLogResponse) GetApplicationproblemJSON429 ¶
func (r ListRequestLogResponse) GetApplicationproblemJSON429() *TooManyRequests
GetApplicationproblemJSON429 returns the response for an HTTP 429 `application/problem+json` response
func (ListRequestLogResponse) GetBody ¶
func (r ListRequestLogResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (ListRequestLogResponse) GetJSON200 ¶
func (r ListRequestLogResponse) GetJSON200() *RequestLogList
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (ListRequestLogResponse) Status ¶
func (r ListRequestLogResponse) Status() string
Status returns HTTPResponse.Status
func (ListRequestLogResponse) StatusCode ¶
func (r ListRequestLogResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type ListRequestLogResponse429Headers ¶
type ListRequestLogResponse429Headers struct {
RetryAfter *int
}
ListRequestLogResponse429Headers the declared response headers of an HTTP 429 response for ListRequestLog
type ListRolesResponse ¶
type ListRolesResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *RoleList
// ApplicationproblemJSON401 the response for an HTTP 401 `application/problem+json` response
ApplicationproblemJSON401 *Unauthorized
// ApplicationproblemJSON403 the response for an HTTP 403 `application/problem+json` response
ApplicationproblemJSON403 *Forbidden
// ApplicationproblemJSON429 the response for an HTTP 429 `application/problem+json` response
ApplicationproblemJSON429 *TooManyRequests
// Headers429 the parsed response headers for an HTTP 429 response
Headers429 *ListRolesResponse429Headers
}
func ParseListRolesResponse ¶
func ParseListRolesResponse(rsp *http.Response) (*ListRolesResponse, error)
ParseListRolesResponse parses an HTTP response from a ListRolesWithResponse call
func (ListRolesResponse) ContentType ¶
func (r ListRolesResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (ListRolesResponse) GetApplicationproblemJSON401 ¶
func (r ListRolesResponse) GetApplicationproblemJSON401() *Unauthorized
GetApplicationproblemJSON401 returns the response for an HTTP 401 `application/problem+json` response
func (ListRolesResponse) GetApplicationproblemJSON403 ¶
func (r ListRolesResponse) GetApplicationproblemJSON403() *Forbidden
GetApplicationproblemJSON403 returns the response for an HTTP 403 `application/problem+json` response
func (ListRolesResponse) GetApplicationproblemJSON429 ¶
func (r ListRolesResponse) GetApplicationproblemJSON429() *TooManyRequests
GetApplicationproblemJSON429 returns the response for an HTTP 429 `application/problem+json` response
func (ListRolesResponse) GetBody ¶
func (r ListRolesResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (ListRolesResponse) GetJSON200 ¶
func (r ListRolesResponse) GetJSON200() *RoleList
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (ListRolesResponse) Status ¶
func (r ListRolesResponse) Status() string
Status returns HTTPResponse.Status
func (ListRolesResponse) StatusCode ¶
func (r ListRolesResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type ListRolesResponse429Headers ¶
type ListRolesResponse429Headers struct {
RetryAfter *int
}
ListRolesResponse429Headers the declared response headers of an HTTP 429 response for ListRoles
type ListRouteProfilesResponse ¶
type ListRouteProfilesResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *RouteProfileList
// ApplicationproblemJSON401 the response for an HTTP 401 `application/problem+json` response
ApplicationproblemJSON401 *Unauthorized
// ApplicationproblemJSON403 the response for an HTTP 403 `application/problem+json` response
ApplicationproblemJSON403 *Forbidden
// ApplicationproblemJSON429 the response for an HTTP 429 `application/problem+json` response
ApplicationproblemJSON429 *TooManyRequests
// Headers429 the parsed response headers for an HTTP 429 response
Headers429 *ListRouteProfilesResponse429Headers
}
func ParseListRouteProfilesResponse ¶
func ParseListRouteProfilesResponse(rsp *http.Response) (*ListRouteProfilesResponse, error)
ParseListRouteProfilesResponse parses an HTTP response from a ListRouteProfilesWithResponse call
func (ListRouteProfilesResponse) ContentType ¶
func (r ListRouteProfilesResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (ListRouteProfilesResponse) GetApplicationproblemJSON401 ¶
func (r ListRouteProfilesResponse) GetApplicationproblemJSON401() *Unauthorized
GetApplicationproblemJSON401 returns the response for an HTTP 401 `application/problem+json` response
func (ListRouteProfilesResponse) GetApplicationproblemJSON403 ¶
func (r ListRouteProfilesResponse) GetApplicationproblemJSON403() *Forbidden
GetApplicationproblemJSON403 returns the response for an HTTP 403 `application/problem+json` response
func (ListRouteProfilesResponse) GetApplicationproblemJSON429 ¶
func (r ListRouteProfilesResponse) GetApplicationproblemJSON429() *TooManyRequests
GetApplicationproblemJSON429 returns the response for an HTTP 429 `application/problem+json` response
func (ListRouteProfilesResponse) GetBody ¶
func (r ListRouteProfilesResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (ListRouteProfilesResponse) GetJSON200 ¶
func (r ListRouteProfilesResponse) GetJSON200() *RouteProfileList
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (ListRouteProfilesResponse) Status ¶
func (r ListRouteProfilesResponse) Status() string
Status returns HTTPResponse.Status
func (ListRouteProfilesResponse) StatusCode ¶
func (r ListRouteProfilesResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type ListRouteProfilesResponse429Headers ¶
type ListRouteProfilesResponse429Headers struct {
RetryAfter *int
}
ListRouteProfilesResponse429Headers the declared response headers of an HTTP 429 response for ListRouteProfiles
type ListRouteSuggestionsResponse ¶
type ListRouteSuggestionsResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *RouteSuggestionList
// ApplicationproblemJSON401 the response for an HTTP 401 `application/problem+json` response
ApplicationproblemJSON401 *Unauthorized
// ApplicationproblemJSON403 the response for an HTTP 403 `application/problem+json` response
ApplicationproblemJSON403 *Forbidden
// ApplicationproblemJSON429 the response for an HTTP 429 `application/problem+json` response
ApplicationproblemJSON429 *TooManyRequests
// Headers429 the parsed response headers for an HTTP 429 response
Headers429 *ListRouteSuggestionsResponse429Headers
}
func ParseListRouteSuggestionsResponse ¶
func ParseListRouteSuggestionsResponse(rsp *http.Response) (*ListRouteSuggestionsResponse, error)
ParseListRouteSuggestionsResponse parses an HTTP response from a ListRouteSuggestionsWithResponse call
func (ListRouteSuggestionsResponse) ContentType ¶
func (r ListRouteSuggestionsResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (ListRouteSuggestionsResponse) GetApplicationproblemJSON401 ¶
func (r ListRouteSuggestionsResponse) GetApplicationproblemJSON401() *Unauthorized
GetApplicationproblemJSON401 returns the response for an HTTP 401 `application/problem+json` response
func (ListRouteSuggestionsResponse) GetApplicationproblemJSON403 ¶
func (r ListRouteSuggestionsResponse) GetApplicationproblemJSON403() *Forbidden
GetApplicationproblemJSON403 returns the response for an HTTP 403 `application/problem+json` response
func (ListRouteSuggestionsResponse) GetApplicationproblemJSON429 ¶
func (r ListRouteSuggestionsResponse) GetApplicationproblemJSON429() *TooManyRequests
GetApplicationproblemJSON429 returns the response for an HTTP 429 `application/problem+json` response
func (ListRouteSuggestionsResponse) GetBody ¶
func (r ListRouteSuggestionsResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (ListRouteSuggestionsResponse) GetJSON200 ¶
func (r ListRouteSuggestionsResponse) GetJSON200() *RouteSuggestionList
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (ListRouteSuggestionsResponse) Status ¶
func (r ListRouteSuggestionsResponse) Status() string
Status returns HTTPResponse.Status
func (ListRouteSuggestionsResponse) StatusCode ¶
func (r ListRouteSuggestionsResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type ListRouteSuggestionsResponse429Headers ¶
type ListRouteSuggestionsResponse429Headers struct {
RetryAfter *int
}
ListRouteSuggestionsResponse429Headers the declared response headers of an HTTP 429 response for ListRouteSuggestions
type ListRoutesResponse ¶
type ListRoutesResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *RouteList
// ApplicationproblemJSON401 the response for an HTTP 401 `application/problem+json` response
ApplicationproblemJSON401 *Unauthorized
// ApplicationproblemJSON403 the response for an HTTP 403 `application/problem+json` response
ApplicationproblemJSON403 *Forbidden
// ApplicationproblemJSON429 the response for an HTTP 429 `application/problem+json` response
ApplicationproblemJSON429 *TooManyRequests
// Headers200 the parsed response headers for an HTTP 200 response
Headers200 *ListRoutesResponse200Headers
// Headers429 the parsed response headers for an HTTP 429 response
Headers429 *ListRoutesResponse429Headers
}
func ParseListRoutesResponse ¶
func ParseListRoutesResponse(rsp *http.Response) (*ListRoutesResponse, error)
ParseListRoutesResponse parses an HTTP response from a ListRoutesWithResponse call
func (ListRoutesResponse) ContentType ¶
func (r ListRoutesResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (ListRoutesResponse) GetApplicationproblemJSON401 ¶
func (r ListRoutesResponse) GetApplicationproblemJSON401() *Unauthorized
GetApplicationproblemJSON401 returns the response for an HTTP 401 `application/problem+json` response
func (ListRoutesResponse) GetApplicationproblemJSON403 ¶
func (r ListRoutesResponse) GetApplicationproblemJSON403() *Forbidden
GetApplicationproblemJSON403 returns the response for an HTTP 403 `application/problem+json` response
func (ListRoutesResponse) GetApplicationproblemJSON429 ¶
func (r ListRoutesResponse) GetApplicationproblemJSON429() *TooManyRequests
GetApplicationproblemJSON429 returns the response for an HTTP 429 `application/problem+json` response
func (ListRoutesResponse) GetBody ¶
func (r ListRoutesResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (ListRoutesResponse) GetJSON200 ¶
func (r ListRoutesResponse) GetJSON200() *RouteList
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (ListRoutesResponse) Status ¶
func (r ListRoutesResponse) Status() string
Status returns HTTPResponse.Status
func (ListRoutesResponse) StatusCode ¶
func (r ListRoutesResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type ListRoutesResponse200Headers ¶
type ListRoutesResponse200Headers struct {
ETag *string
}
ListRoutesResponse200Headers the declared response headers of an HTTP 200 response for ListRoutes
type ListRoutesResponse429Headers ¶
type ListRoutesResponse429Headers struct {
RetryAfter *int
}
ListRoutesResponse429Headers the declared response headers of an HTTP 429 response for ListRoutes
type ListServiceAccountTokensResponse ¶
type ListServiceAccountTokensResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *ServiceAccountTokenList
// ApplicationproblemJSON401 the response for an HTTP 401 `application/problem+json` response
ApplicationproblemJSON401 *Unauthorized
// ApplicationproblemJSON403 the response for an HTTP 403 `application/problem+json` response
ApplicationproblemJSON403 *Forbidden
// ApplicationproblemJSON404 the response for an HTTP 404 `application/problem+json` response
ApplicationproblemJSON404 *NotFound
// ApplicationproblemJSON429 the response for an HTTP 429 `application/problem+json` response
ApplicationproblemJSON429 *TooManyRequests
// Headers429 the parsed response headers for an HTTP 429 response
Headers429 *ListServiceAccountTokensResponse429Headers
}
func ParseListServiceAccountTokensResponse ¶
func ParseListServiceAccountTokensResponse(rsp *http.Response) (*ListServiceAccountTokensResponse, error)
ParseListServiceAccountTokensResponse parses an HTTP response from a ListServiceAccountTokensWithResponse call
func (ListServiceAccountTokensResponse) ContentType ¶
func (r ListServiceAccountTokensResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (ListServiceAccountTokensResponse) GetApplicationproblemJSON401 ¶
func (r ListServiceAccountTokensResponse) GetApplicationproblemJSON401() *Unauthorized
GetApplicationproblemJSON401 returns the response for an HTTP 401 `application/problem+json` response
func (ListServiceAccountTokensResponse) GetApplicationproblemJSON403 ¶
func (r ListServiceAccountTokensResponse) GetApplicationproblemJSON403() *Forbidden
GetApplicationproblemJSON403 returns the response for an HTTP 403 `application/problem+json` response
func (ListServiceAccountTokensResponse) GetApplicationproblemJSON404 ¶
func (r ListServiceAccountTokensResponse) GetApplicationproblemJSON404() *NotFound
GetApplicationproblemJSON404 returns the response for an HTTP 404 `application/problem+json` response
func (ListServiceAccountTokensResponse) GetApplicationproblemJSON429 ¶
func (r ListServiceAccountTokensResponse) GetApplicationproblemJSON429() *TooManyRequests
GetApplicationproblemJSON429 returns the response for an HTTP 429 `application/problem+json` response
func (ListServiceAccountTokensResponse) GetBody ¶
func (r ListServiceAccountTokensResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (ListServiceAccountTokensResponse) GetJSON200 ¶
func (r ListServiceAccountTokensResponse) GetJSON200() *ServiceAccountTokenList
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (ListServiceAccountTokensResponse) Status ¶
func (r ListServiceAccountTokensResponse) Status() string
Status returns HTTPResponse.Status
func (ListServiceAccountTokensResponse) StatusCode ¶
func (r ListServiceAccountTokensResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type ListServiceAccountTokensResponse429Headers ¶
type ListServiceAccountTokensResponse429Headers struct {
RetryAfter *int
}
ListServiceAccountTokensResponse429Headers the declared response headers of an HTTP 429 response for ListServiceAccountTokens
type ListServiceAccountsParams ¶
type ListServiceAccountsParams struct {
// Cursor Opaque cursor from `next_cursor` of the previous page. Offsets are not supported.
Cursor *Cursor `form:"cursor,omitempty" json:"cursor,omitempty"`
// Limit Page size (`api.page_size`).
Limit *Limit `form:"limit,omitempty" json:"limit,omitempty"`
}
ListServiceAccountsParams defines parameters for ListServiceAccounts.
type ListServiceAccountsResponse ¶
type ListServiceAccountsResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *ServiceAccountList
// ApplicationproblemJSON400 the response for an HTTP 400 `application/problem+json` response
ApplicationproblemJSON400 *BadRequest
// ApplicationproblemJSON401 the response for an HTTP 401 `application/problem+json` response
ApplicationproblemJSON401 *Unauthorized
// ApplicationproblemJSON403 the response for an HTTP 403 `application/problem+json` response
ApplicationproblemJSON403 *Forbidden
// ApplicationproblemJSON429 the response for an HTTP 429 `application/problem+json` response
ApplicationproblemJSON429 *TooManyRequests
// Headers429 the parsed response headers for an HTTP 429 response
Headers429 *ListServiceAccountsResponse429Headers
}
func ParseListServiceAccountsResponse ¶
func ParseListServiceAccountsResponse(rsp *http.Response) (*ListServiceAccountsResponse, error)
ParseListServiceAccountsResponse parses an HTTP response from a ListServiceAccountsWithResponse call
func (ListServiceAccountsResponse) ContentType ¶
func (r ListServiceAccountsResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (ListServiceAccountsResponse) GetApplicationproblemJSON400 ¶
func (r ListServiceAccountsResponse) GetApplicationproblemJSON400() *BadRequest
GetApplicationproblemJSON400 returns the response for an HTTP 400 `application/problem+json` response
func (ListServiceAccountsResponse) GetApplicationproblemJSON401 ¶
func (r ListServiceAccountsResponse) GetApplicationproblemJSON401() *Unauthorized
GetApplicationproblemJSON401 returns the response for an HTTP 401 `application/problem+json` response
func (ListServiceAccountsResponse) GetApplicationproblemJSON403 ¶
func (r ListServiceAccountsResponse) GetApplicationproblemJSON403() *Forbidden
GetApplicationproblemJSON403 returns the response for an HTTP 403 `application/problem+json` response
func (ListServiceAccountsResponse) GetApplicationproblemJSON429 ¶
func (r ListServiceAccountsResponse) GetApplicationproblemJSON429() *TooManyRequests
GetApplicationproblemJSON429 returns the response for an HTTP 429 `application/problem+json` response
func (ListServiceAccountsResponse) GetBody ¶
func (r ListServiceAccountsResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (ListServiceAccountsResponse) GetJSON200 ¶
func (r ListServiceAccountsResponse) GetJSON200() *ServiceAccountList
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (ListServiceAccountsResponse) Status ¶
func (r ListServiceAccountsResponse) Status() string
Status returns HTTPResponse.Status
func (ListServiceAccountsResponse) StatusCode ¶
func (r ListServiceAccountsResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type ListServiceAccountsResponse429Headers ¶
type ListServiceAccountsResponse429Headers struct {
RetryAfter *int
}
ListServiceAccountsResponse429Headers the declared response headers of an HTTP 429 response for ListServiceAccounts
type ListSeverityValuesResponse ¶
type ListSeverityValuesResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *SeverityValueList
// ApplicationproblemJSON401 the response for an HTTP 401 `application/problem+json` response
ApplicationproblemJSON401 *Unauthorized
// ApplicationproblemJSON403 the response for an HTTP 403 `application/problem+json` response
ApplicationproblemJSON403 *Forbidden
// ApplicationproblemJSON429 the response for an HTTP 429 `application/problem+json` response
ApplicationproblemJSON429 *TooManyRequests
// Headers429 the parsed response headers for an HTTP 429 response
Headers429 *ListSeverityValuesResponse429Headers
}
func ParseListSeverityValuesResponse ¶
func ParseListSeverityValuesResponse(rsp *http.Response) (*ListSeverityValuesResponse, error)
ParseListSeverityValuesResponse parses an HTTP response from a ListSeverityValuesWithResponse call
func (ListSeverityValuesResponse) ContentType ¶
func (r ListSeverityValuesResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (ListSeverityValuesResponse) GetApplicationproblemJSON401 ¶
func (r ListSeverityValuesResponse) GetApplicationproblemJSON401() *Unauthorized
GetApplicationproblemJSON401 returns the response for an HTTP 401 `application/problem+json` response
func (ListSeverityValuesResponse) GetApplicationproblemJSON403 ¶
func (r ListSeverityValuesResponse) GetApplicationproblemJSON403() *Forbidden
GetApplicationproblemJSON403 returns the response for an HTTP 403 `application/problem+json` response
func (ListSeverityValuesResponse) GetApplicationproblemJSON429 ¶
func (r ListSeverityValuesResponse) GetApplicationproblemJSON429() *TooManyRequests
GetApplicationproblemJSON429 returns the response for an HTTP 429 `application/problem+json` response
func (ListSeverityValuesResponse) GetBody ¶
func (r ListSeverityValuesResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (ListSeverityValuesResponse) GetJSON200 ¶
func (r ListSeverityValuesResponse) GetJSON200() *SeverityValueList
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (ListSeverityValuesResponse) Status ¶
func (r ListSeverityValuesResponse) Status() string
Status returns HTTPResponse.Status
func (ListSeverityValuesResponse) StatusCode ¶
func (r ListSeverityValuesResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type ListSeverityValuesResponse429Headers ¶
type ListSeverityValuesResponse429Headers struct {
RetryAfter *int
}
ListSeverityValuesResponse429Headers the declared response headers of an HTTP 429 response for ListSeverityValues
type ListSnoozePresetsParams ¶
type ListSnoozePresetsParams struct {
// TimeZone IANA time zone of the ends; defaults to the caller's profile time zone, else the Organization's.
TimeZone *string `form:"time_zone,omitempty" json:"time_zone,omitempty"`
}
ListSnoozePresetsParams defines parameters for ListSnoozePresets.
type ListSnoozePresetsResponse ¶
type ListSnoozePresetsResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *SnoozePresetList
// ApplicationproblemJSON401 the response for an HTTP 401 `application/problem+json` response
ApplicationproblemJSON401 *Unauthorized
// ApplicationproblemJSON403 the response for an HTTP 403 `application/problem+json` response
ApplicationproblemJSON403 *Forbidden
// ApplicationproblemJSON422 the response for an HTTP 422 `application/problem+json` response
ApplicationproblemJSON422 *Unprocessable
// ApplicationproblemJSON429 the response for an HTTP 429 `application/problem+json` response
ApplicationproblemJSON429 *TooManyRequests
// Headers429 the parsed response headers for an HTTP 429 response
Headers429 *ListSnoozePresetsResponse429Headers
}
func ParseListSnoozePresetsResponse ¶
func ParseListSnoozePresetsResponse(rsp *http.Response) (*ListSnoozePresetsResponse, error)
ParseListSnoozePresetsResponse parses an HTTP response from a ListSnoozePresetsWithResponse call
func (ListSnoozePresetsResponse) ContentType ¶
func (r ListSnoozePresetsResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (ListSnoozePresetsResponse) GetApplicationproblemJSON401 ¶
func (r ListSnoozePresetsResponse) GetApplicationproblemJSON401() *Unauthorized
GetApplicationproblemJSON401 returns the response for an HTTP 401 `application/problem+json` response
func (ListSnoozePresetsResponse) GetApplicationproblemJSON403 ¶
func (r ListSnoozePresetsResponse) GetApplicationproblemJSON403() *Forbidden
GetApplicationproblemJSON403 returns the response for an HTTP 403 `application/problem+json` response
func (ListSnoozePresetsResponse) GetApplicationproblemJSON422 ¶
func (r ListSnoozePresetsResponse) GetApplicationproblemJSON422() *Unprocessable
GetApplicationproblemJSON422 returns the response for an HTTP 422 `application/problem+json` response
func (ListSnoozePresetsResponse) GetApplicationproblemJSON429 ¶
func (r ListSnoozePresetsResponse) GetApplicationproblemJSON429() *TooManyRequests
GetApplicationproblemJSON429 returns the response for an HTTP 429 `application/problem+json` response
func (ListSnoozePresetsResponse) GetBody ¶
func (r ListSnoozePresetsResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (ListSnoozePresetsResponse) GetJSON200 ¶
func (r ListSnoozePresetsResponse) GetJSON200() *SnoozePresetList
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (ListSnoozePresetsResponse) Status ¶
func (r ListSnoozePresetsResponse) Status() string
Status returns HTTPResponse.Status
func (ListSnoozePresetsResponse) StatusCode ¶
func (r ListSnoozePresetsResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type ListSnoozePresetsResponse429Headers ¶
type ListSnoozePresetsResponse429Headers struct {
RetryAfter *int
}
ListSnoozePresetsResponse429Headers the declared response headers of an HTTP 429 response for ListSnoozePresets
type ListStoredSnapshotsParams ¶
type ListStoredSnapshotsParams struct {
// Cursor Opaque cursor from `next_cursor` of the previous page. Offsets are not supported.
Cursor *Cursor `form:"cursor,omitempty" json:"cursor,omitempty"`
// Limit Page size (`api.page_size`).
Limit *Limit `form:"limit,omitempty" json:"limit,omitempty"`
// Integration Integration `public_id`.
Integration string `form:"integration" json:"integration"`
// From Start of the time range (RFC 3339, UTC).
From *From `form:"from,omitempty" json:"from,omitempty"`
// To End of the time range (RFC 3339, UTC).
To *To `form:"to,omitempty" json:"to,omitempty"`
// State Only Snapshots in these processing states.
State *[]SnapshotState `form:"state,omitempty" json:"state,omitempty"`
}
ListStoredSnapshotsParams defines parameters for ListStoredSnapshots.
type ListStoredSnapshotsResponse ¶
type ListStoredSnapshotsResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *StoredSnapshotList
// ApplicationproblemJSON400 the response for an HTTP 400 `application/problem+json` response
ApplicationproblemJSON400 *BadRequest
// ApplicationproblemJSON401 the response for an HTTP 401 `application/problem+json` response
ApplicationproblemJSON401 *Unauthorized
// ApplicationproblemJSON403 the response for an HTTP 403 `application/problem+json` response
ApplicationproblemJSON403 *Forbidden
// ApplicationproblemJSON429 the response for an HTTP 429 `application/problem+json` response
ApplicationproblemJSON429 *TooManyRequests
// Headers429 the parsed response headers for an HTTP 429 response
Headers429 *ListStoredSnapshotsResponse429Headers
}
func ParseListStoredSnapshotsResponse ¶
func ParseListStoredSnapshotsResponse(rsp *http.Response) (*ListStoredSnapshotsResponse, error)
ParseListStoredSnapshotsResponse parses an HTTP response from a ListStoredSnapshotsWithResponse call
func (ListStoredSnapshotsResponse) ContentType ¶
func (r ListStoredSnapshotsResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (ListStoredSnapshotsResponse) GetApplicationproblemJSON400 ¶
func (r ListStoredSnapshotsResponse) GetApplicationproblemJSON400() *BadRequest
GetApplicationproblemJSON400 returns the response for an HTTP 400 `application/problem+json` response
func (ListStoredSnapshotsResponse) GetApplicationproblemJSON401 ¶
func (r ListStoredSnapshotsResponse) GetApplicationproblemJSON401() *Unauthorized
GetApplicationproblemJSON401 returns the response for an HTTP 401 `application/problem+json` response
func (ListStoredSnapshotsResponse) GetApplicationproblemJSON403 ¶
func (r ListStoredSnapshotsResponse) GetApplicationproblemJSON403() *Forbidden
GetApplicationproblemJSON403 returns the response for an HTTP 403 `application/problem+json` response
func (ListStoredSnapshotsResponse) GetApplicationproblemJSON429 ¶
func (r ListStoredSnapshotsResponse) GetApplicationproblemJSON429() *TooManyRequests
GetApplicationproblemJSON429 returns the response for an HTTP 429 `application/problem+json` response
func (ListStoredSnapshotsResponse) GetBody ¶
func (r ListStoredSnapshotsResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (ListStoredSnapshotsResponse) GetJSON200 ¶
func (r ListStoredSnapshotsResponse) GetJSON200() *StoredSnapshotList
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (ListStoredSnapshotsResponse) Status ¶
func (r ListStoredSnapshotsResponse) Status() string
Status returns HTTPResponse.Status
func (ListStoredSnapshotsResponse) StatusCode ¶
func (r ListStoredSnapshotsResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type ListStoredSnapshotsResponse429Headers ¶
type ListStoredSnapshotsResponse429Headers struct {
RetryAfter *int
}
ListStoredSnapshotsResponse429Headers the declared response headers of an HTTP 429 response for ListStoredSnapshots
type ListSystemNoticesResponse ¶
type ListSystemNoticesResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *SystemNoticeList
// ApplicationproblemJSON401 the response for an HTTP 401 `application/problem+json` response
ApplicationproblemJSON401 *Unauthorized
// ApplicationproblemJSON403 the response for an HTTP 403 `application/problem+json` response
ApplicationproblemJSON403 *Forbidden
// ApplicationproblemJSON429 the response for an HTTP 429 `application/problem+json` response
ApplicationproblemJSON429 *TooManyRequests
// Headers429 the parsed response headers for an HTTP 429 response
Headers429 *ListSystemNoticesResponse429Headers
}
func ParseListSystemNoticesResponse ¶
func ParseListSystemNoticesResponse(rsp *http.Response) (*ListSystemNoticesResponse, error)
ParseListSystemNoticesResponse parses an HTTP response from a ListSystemNoticesWithResponse call
func (ListSystemNoticesResponse) ContentType ¶
func (r ListSystemNoticesResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (ListSystemNoticesResponse) GetApplicationproblemJSON401 ¶
func (r ListSystemNoticesResponse) GetApplicationproblemJSON401() *Unauthorized
GetApplicationproblemJSON401 returns the response for an HTTP 401 `application/problem+json` response
func (ListSystemNoticesResponse) GetApplicationproblemJSON403 ¶
func (r ListSystemNoticesResponse) GetApplicationproblemJSON403() *Forbidden
GetApplicationproblemJSON403 returns the response for an HTTP 403 `application/problem+json` response
func (ListSystemNoticesResponse) GetApplicationproblemJSON429 ¶
func (r ListSystemNoticesResponse) GetApplicationproblemJSON429() *TooManyRequests
GetApplicationproblemJSON429 returns the response for an HTTP 429 `application/problem+json` response
func (ListSystemNoticesResponse) GetBody ¶
func (r ListSystemNoticesResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (ListSystemNoticesResponse) GetJSON200 ¶
func (r ListSystemNoticesResponse) GetJSON200() *SystemNoticeList
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (ListSystemNoticesResponse) Status ¶
func (r ListSystemNoticesResponse) Status() string
Status returns HTTPResponse.Status
func (ListSystemNoticesResponse) StatusCode ¶
func (r ListSystemNoticesResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type ListSystemNoticesResponse429Headers ¶
type ListSystemNoticesResponse429Headers struct {
RetryAfter *int
}
ListSystemNoticesResponse429Headers the declared response headers of an HTTP 429 response for ListSystemNotices
type ListUserAccountLinksResponse ¶
type ListUserAccountLinksResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *AccountLinkList
// ApplicationproblemJSON401 the response for an HTTP 401 `application/problem+json` response
ApplicationproblemJSON401 *Unauthorized
// ApplicationproblemJSON403 the response for an HTTP 403 `application/problem+json` response
ApplicationproblemJSON403 *Forbidden
// ApplicationproblemJSON404 the response for an HTTP 404 `application/problem+json` response
ApplicationproblemJSON404 *NotFound
// ApplicationproblemJSON429 the response for an HTTP 429 `application/problem+json` response
ApplicationproblemJSON429 *TooManyRequests
// Headers429 the parsed response headers for an HTTP 429 response
Headers429 *ListUserAccountLinksResponse429Headers
}
func ParseListUserAccountLinksResponse ¶
func ParseListUserAccountLinksResponse(rsp *http.Response) (*ListUserAccountLinksResponse, error)
ParseListUserAccountLinksResponse parses an HTTP response from a ListUserAccountLinksWithResponse call
func (ListUserAccountLinksResponse) ContentType ¶
func (r ListUserAccountLinksResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (ListUserAccountLinksResponse) GetApplicationproblemJSON401 ¶
func (r ListUserAccountLinksResponse) GetApplicationproblemJSON401() *Unauthorized
GetApplicationproblemJSON401 returns the response for an HTTP 401 `application/problem+json` response
func (ListUserAccountLinksResponse) GetApplicationproblemJSON403 ¶
func (r ListUserAccountLinksResponse) GetApplicationproblemJSON403() *Forbidden
GetApplicationproblemJSON403 returns the response for an HTTP 403 `application/problem+json` response
func (ListUserAccountLinksResponse) GetApplicationproblemJSON404 ¶
func (r ListUserAccountLinksResponse) GetApplicationproblemJSON404() *NotFound
GetApplicationproblemJSON404 returns the response for an HTTP 404 `application/problem+json` response
func (ListUserAccountLinksResponse) GetApplicationproblemJSON429 ¶
func (r ListUserAccountLinksResponse) GetApplicationproblemJSON429() *TooManyRequests
GetApplicationproblemJSON429 returns the response for an HTTP 429 `application/problem+json` response
func (ListUserAccountLinksResponse) GetBody ¶
func (r ListUserAccountLinksResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (ListUserAccountLinksResponse) GetJSON200 ¶
func (r ListUserAccountLinksResponse) GetJSON200() *AccountLinkList
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (ListUserAccountLinksResponse) Status ¶
func (r ListUserAccountLinksResponse) Status() string
Status returns HTTPResponse.Status
func (ListUserAccountLinksResponse) StatusCode ¶
func (r ListUserAccountLinksResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type ListUserAccountLinksResponse429Headers ¶
type ListUserAccountLinksResponse429Headers struct {
RetryAfter *int
}
ListUserAccountLinksResponse429Headers the declared response headers of an HTTP 429 response for ListUserAccountLinks
type ListUserDirectoryParams ¶
type ListUserDirectoryParams struct {
// Cursor Opaque cursor from `next_cursor` of the previous page. Offsets are not supported.
Cursor *Cursor `form:"cursor,omitempty" json:"cursor,omitempty"`
// Limit Page size (`api.page_size`).
Limit *Limit `form:"limit,omitempty" json:"limit,omitempty"`
// Q Case-insensitive match on name and login.
Q *string `form:"q,omitempty" json:"q,omitempty"`
}
ListUserDirectoryParams defines parameters for ListUserDirectory.
type ListUserDirectoryResponse ¶
type ListUserDirectoryResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *UserDirectoryList
// ApplicationproblemJSON400 the response for an HTTP 400 `application/problem+json` response
ApplicationproblemJSON400 *BadRequest
// ApplicationproblemJSON401 the response for an HTTP 401 `application/problem+json` response
ApplicationproblemJSON401 *Unauthorized
// ApplicationproblemJSON403 the response for an HTTP 403 `application/problem+json` response
ApplicationproblemJSON403 *Forbidden
// ApplicationproblemJSON429 the response for an HTTP 429 `application/problem+json` response
ApplicationproblemJSON429 *TooManyRequests
// Headers429 the parsed response headers for an HTTP 429 response
Headers429 *ListUserDirectoryResponse429Headers
}
func ParseListUserDirectoryResponse ¶
func ParseListUserDirectoryResponse(rsp *http.Response) (*ListUserDirectoryResponse, error)
ParseListUserDirectoryResponse parses an HTTP response from a ListUserDirectoryWithResponse call
func (ListUserDirectoryResponse) ContentType ¶
func (r ListUserDirectoryResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (ListUserDirectoryResponse) GetApplicationproblemJSON400 ¶
func (r ListUserDirectoryResponse) GetApplicationproblemJSON400() *BadRequest
GetApplicationproblemJSON400 returns the response for an HTTP 400 `application/problem+json` response
func (ListUserDirectoryResponse) GetApplicationproblemJSON401 ¶
func (r ListUserDirectoryResponse) GetApplicationproblemJSON401() *Unauthorized
GetApplicationproblemJSON401 returns the response for an HTTP 401 `application/problem+json` response
func (ListUserDirectoryResponse) GetApplicationproblemJSON403 ¶
func (r ListUserDirectoryResponse) GetApplicationproblemJSON403() *Forbidden
GetApplicationproblemJSON403 returns the response for an HTTP 403 `application/problem+json` response
func (ListUserDirectoryResponse) GetApplicationproblemJSON429 ¶
func (r ListUserDirectoryResponse) GetApplicationproblemJSON429() *TooManyRequests
GetApplicationproblemJSON429 returns the response for an HTTP 429 `application/problem+json` response
func (ListUserDirectoryResponse) GetBody ¶
func (r ListUserDirectoryResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (ListUserDirectoryResponse) GetJSON200 ¶
func (r ListUserDirectoryResponse) GetJSON200() *UserDirectoryList
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (ListUserDirectoryResponse) Status ¶
func (r ListUserDirectoryResponse) Status() string
Status returns HTTPResponse.Status
func (ListUserDirectoryResponse) StatusCode ¶
func (r ListUserDirectoryResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type ListUserDirectoryResponse429Headers ¶
type ListUserDirectoryResponse429Headers struct {
RetryAfter *int
}
ListUserDirectoryResponse429Headers the declared response headers of an HTTP 429 response for ListUserDirectory
type ListUsersParams ¶
type ListUsersParams struct {
// Cursor Opaque cursor from `next_cursor` of the previous page. Offsets are not supported.
Cursor *Cursor `form:"cursor,omitempty" json:"cursor,omitempty"`
// Limit Page size (`api.page_size`).
Limit *Limit `form:"limit,omitempty" json:"limit,omitempty"`
// Q Case-insensitive match on name, login and email.
Q *string `form:"q,omitempty" json:"q,omitempty"`
// Role Filter by Role.
Role *RoleName `form:"role,omitempty" json:"role,omitempty"`
// Status Filter by status.
Status *UserStatus `form:"status,omitempty" json:"status,omitempty"`
// Source Filter by source.
Source *UserSource `form:"source,omitempty" json:"source,omitempty"`
}
ListUsersParams defines parameters for ListUsers.
type ListUsersResponse ¶
type ListUsersResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *UserList
// ApplicationproblemJSON400 the response for an HTTP 400 `application/problem+json` response
ApplicationproblemJSON400 *BadRequest
// ApplicationproblemJSON401 the response for an HTTP 401 `application/problem+json` response
ApplicationproblemJSON401 *Unauthorized
// ApplicationproblemJSON403 the response for an HTTP 403 `application/problem+json` response
ApplicationproblemJSON403 *Forbidden
// ApplicationproblemJSON429 the response for an HTTP 429 `application/problem+json` response
ApplicationproblemJSON429 *TooManyRequests
// Headers429 the parsed response headers for an HTTP 429 response
Headers429 *ListUsersResponse429Headers
}
func ParseListUsersResponse ¶
func ParseListUsersResponse(rsp *http.Response) (*ListUsersResponse, error)
ParseListUsersResponse parses an HTTP response from a ListUsersWithResponse call
func (ListUsersResponse) ContentType ¶
func (r ListUsersResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (ListUsersResponse) GetApplicationproblemJSON400 ¶
func (r ListUsersResponse) GetApplicationproblemJSON400() *BadRequest
GetApplicationproblemJSON400 returns the response for an HTTP 400 `application/problem+json` response
func (ListUsersResponse) GetApplicationproblemJSON401 ¶
func (r ListUsersResponse) GetApplicationproblemJSON401() *Unauthorized
GetApplicationproblemJSON401 returns the response for an HTTP 401 `application/problem+json` response
func (ListUsersResponse) GetApplicationproblemJSON403 ¶
func (r ListUsersResponse) GetApplicationproblemJSON403() *Forbidden
GetApplicationproblemJSON403 returns the response for an HTTP 403 `application/problem+json` response
func (ListUsersResponse) GetApplicationproblemJSON429 ¶
func (r ListUsersResponse) GetApplicationproblemJSON429() *TooManyRequests
GetApplicationproblemJSON429 returns the response for an HTTP 429 `application/problem+json` response
func (ListUsersResponse) GetBody ¶
func (r ListUsersResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (ListUsersResponse) GetJSON200 ¶
func (r ListUsersResponse) GetJSON200() *UserList
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (ListUsersResponse) Status ¶
func (r ListUsersResponse) Status() string
Status returns HTTPResponse.Status
func (ListUsersResponse) StatusCode ¶
func (r ListUsersResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type ListUsersResponse429Headers ¶
type ListUsersResponse429Headers struct {
RetryAfter *int
}
ListUsersResponse429Headers the declared response headers of an HTTP 429 response for ListUsers
type LookupEntry ¶
type LookupEntry struct {
Key string `json:"key"`
// Values One value per column; every column has a value.
Values map[string]string `json:"values"`
}
LookupEntry defines model for LookupEntry.
type LookupTable ¶
type LookupTable struct {
// Columns Column names, unique within the table.
Columns []string `json:"columns"`
CreatedAt time.Time `json:"created_at"`
Description *string `json:"description,omitempty"`
// Entries Rows. The keys of `values` must be exactly `columns` (`422` otherwise).
Entries []LookupEntry `json:"entries"`
// Etag The same value as the `ETag` header; send it as `If-Match` on the next update. Lets a client update an item of a list without reading it again.
Etag *string `json:"etag,omitempty"`
// Id Opaque public identifier (`public_id`): a type prefix of one or two letters followed by 12 random characters of Crockford base32 (`0`–`9` and `A`–`Z` without `I`, `L`, `O` and `U`; 60 bits), such as `AGK7M3QX9P2RTA` for an Alert Group. Prefixes use the same letters and differ per type: `AG` Alert Group, `AE` Audit log entry, `AK` Account link, `AR` Account link request, `CN` Connection, `CR` check run, `DE` delivery event, `DS` Destination, `KR` Link rule, `NE` Note, `NK` Integration token, `NT` Integration, `PT` Personal access token, `RG` Organization, `RQ` record of the Request log, `RT` Route, `SA` Service account, `SN` session, `SR` User, `SS` Stored Snapshot, `ST` Service account token, `TB` Lookup table, `TE` Timeline entry. Responses always carry the canonical upper-case form. Input is case-insensitive and normalized before lookup — `O` reads as `0`, `I` and `L` as `1` — so the pattern also admits lower case and those letters. People refer to Alert Groups by `#N`, never by `public_id`.
Id PublicId `json:"id"`
// Name Unique in the Organization; Link rule templates call `lookup` with it.
Name string `json:"name"`
}
LookupTable defines model for LookupTable.
type LookupTableBase ¶
type LookupTableBase struct {
// Columns Column names, unique within the table.
Columns []string `json:"columns"`
Description *string `json:"description,omitempty"`
// Entries Rows. The keys of `values` must be exactly `columns` (`422` otherwise).
Entries []LookupEntry `json:"entries"`
// Name Unique in the Organization; Link rule templates call `lookup` with it.
Name string `json:"name"`
}
LookupTableBase A table of keys and columns. A template reads one cell with `lookup "<table>" <key> "<column>"`, for example `lookup "grafana" .Labels.cluster "datasource_uid"`. The built-in "Explore" rule uses a table with the columns `address` and `datasource_uid`, one row per environment or cluster.
type LookupTableId ¶
type LookupTableId = PublicId
LookupTableId Opaque public identifier (`public_id`): a type prefix of one or two letters followed by 12 random characters of Crockford base32 (`0`–`9` and `A`–`Z` without `I`, `L`, `O` and `U`; 60 bits), such as `AGK7M3QX9P2RTA` for an Alert Group. Prefixes use the same letters and differ per type: `AG` Alert Group, `AE` Audit log entry, `AK` Account link, `AR` Account link request, `CN` Connection, `CR` check run, `DE` delivery event, `DS` Destination, `KR` Link rule, `NE` Note, `NK` Integration token, `NT` Integration, `PT` Personal access token, `RG` Organization, `RQ` record of the Request log, `RT` Route, `SA` Service account, `SN` session, `SR` User, `SS` Stored Snapshot, `ST` Service account token, `TB` Lookup table, `TE` Timeline entry. Responses always carry the canonical upper-case form. Input is case-insensitive and normalized before lookup — `O` reads as `0`, `I` and `L` as `1` — so the pattern also admits lower case and those letters. People refer to Alert Groups by `#N`, never by `public_id`.
type LookupTableList ¶
type LookupTableList struct {
Items []LookupTable `json:"items"`
NextCursor nullable.Nullable[string] `json:"next_cursor"`
}
LookupTableList defines model for LookupTableList.
type Matcher ¶
type Matcher struct {
Label string `json:"label"`
Op MatcherOp `json:"op"`
// Value Literal value, or an RE2 expression for `=~` and `!~`.
Value string `json:"value"`
}
Matcher A condition on one label, in Alertmanager syntax. Matchers of a Route are combined with AND.
type MatcherOp ¶
type MatcherOp string
MatcherOp defines model for Matcher.Op.
type MattermostActionAnswer ¶
type MattermostActionAnswer struct {
// EphemeralText Shown by Mattermost to the person who pressed alone, from System, in the Thread of the Root message.
EphemeralText *string `json:"ephemeral_text,omitempty"`
// SkipSlackParsing Always `true` with `ephemeral_text`, so that the text is shown as it is.
SkipSlackParsing *bool `json:"skip_slack_parsing,omitempty"`
}
MattermostActionAnswer Empty, or the text for the person who pressed when its ephemeral post was refused or failed. Never `update`.
type MattermostActionContext ¶
type MattermostActionContext struct {
// Action Opaque action id signed with the button-signature key.
Action string `json:"action"`
// KeyId Id of the key that signed the action id.
KeyId string `json:"key_id"`
}
MattermostActionContext The integration data Muster put on the button. Mattermost does not sign the request, so authenticity rests on the signed action id.
type MattermostActionJSONRequestBody ¶
type MattermostActionJSONRequestBody = MattermostActionRequest
MattermostActionJSONRequestBody defines body for MattermostAction for application/json ContentType.
type MattermostActionRequest ¶
type MattermostActionRequest struct {
ChannelId string `json:"channel_id"`
// Context The integration data Muster put on the button. Mattermost does not sign the request, so authenticity rests on the signed action id.
Context MattermostActionContext `json:"context"`
DataSource *string `json:"data_source,omitempty"`
PostId string `json:"post_id"`
TeamId *string `json:"team_id,omitempty"`
TriggerId *string `json:"trigger_id,omitempty"`
Type *string `json:"type,omitempty"`
UserId string `json:"user_id"`
UserName *string `json:"user_name,omitempty"`
AdditionalProperties map[string]interface{} `json:"-"`
}
MattermostActionRequest Button press sent by the Mattermost server.
func (MattermostActionRequest) Get ¶
func (a MattermostActionRequest) Get(fieldName string) (value interface{}, found bool)
Getter for additional properties for MattermostActionRequest. Returns the specified element and whether it was found
func (MattermostActionRequest) MarshalJSON ¶
func (a MattermostActionRequest) MarshalJSON() ([]byte, error)
Override default JSON handling for MattermostActionRequest to handle AdditionalProperties
func (*MattermostActionRequest) Set ¶
func (a *MattermostActionRequest) Set(fieldName string, value interface{})
Setter for additional properties for MattermostActionRequest
func (*MattermostActionRequest) UnmarshalJSON ¶
func (a *MattermostActionRequest) UnmarshalJSON(b []byte) error
Override default JSON handling for MattermostActionRequest to handle AdditionalProperties
type MattermostActionResponse ¶
type MattermostActionResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *MattermostActionAnswer
}
func ParseMattermostActionResponse ¶
func ParseMattermostActionResponse(rsp *http.Response) (*MattermostActionResponse, error)
ParseMattermostActionResponse parses an HTTP response from a MattermostActionWithResponse call
func (MattermostActionResponse) ContentType ¶
func (r MattermostActionResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (MattermostActionResponse) GetBody ¶
func (r MattermostActionResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (MattermostActionResponse) GetJSON200 ¶
func (r MattermostActionResponse) GetJSON200() *MattermostActionAnswer
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (MattermostActionResponse) Status ¶
func (r MattermostActionResponse) Status() string
Status returns HTTPResponse.Status
func (MattermostActionResponse) StatusCode ¶
func (r MattermostActionResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type MattermostChannel ¶
type MattermostChannel struct {
Archived *bool `json:"archived,omitempty"`
DisplayName string `json:"display_name"`
Id string `json:"id"`
Name string `json:"name"`
TeamId string `json:"team_id"`
TeamName string `json:"team_name"`
Type MattermostChannelType `json:"type"`
}
MattermostChannel defines model for MattermostChannel.
type MattermostChannelList ¶
type MattermostChannelList struct {
Items []MattermostChannel `json:"items"`
}
MattermostChannelList The channels of a Mattermost Connection's bot; it has no other member, so that no Slack list reads as one.
type MattermostChannelType ¶
type MattermostChannelType string
MattermostChannelType defines model for MattermostChannel.Type.
const ( MattermostChannelTypeDirect MattermostChannelType = "direct" MattermostChannelTypeGroup MattermostChannelType = "group" MattermostChannelTypeOpen MattermostChannelType = "open" MattermostChannelTypePrivate MattermostChannelType = "private" )
Defines values for MattermostChannelType.
func (MattermostChannelType) Valid ¶
func (e MattermostChannelType) Valid() bool
Valid indicates whether the value is a known member of the MattermostChannelType enum.
type MattermostConnection ¶
type MattermostConnection struct {
// BotTokenStatus What a read shows instead of a Secret. The value itself is never returned.
BotTokenStatus SecretStatus `json:"bot_token_status"`
// BotUsername The bot's username, as the last successful Connection check found it; null before one and after the server URL or the bot token changed.
BotUsername nullable.Nullable[string] `json:"bot_username,omitempty"`
// CallbackUrl The address that Mattermost calls for button presses of this Connection — `mattermostAction` at `MUSTER_INGEST_URL` (`<MUSTER_INGEST_URL>/api/v1/callbacks/mattermost/<id>`). The Connection page shows it with the hint about `AllowedUntrustedInternalConnections`.
CallbackUrl *string `json:"callback_url,omitempty"`
CreatedAt time.Time `json:"created_at"`
// DestinationCount A Connection used by Destinations cannot be deleted.
DestinationCount int `json:"destination_count"`
// Etag The same value as the `ETag` header; send it as `If-Match` on the next update. Lets a client update an item of a list without reading it again.
Etag *string `json:"etag,omitempty"`
// Id Opaque public identifier (`public_id`): a type prefix of one or two letters followed by 12 random characters of Crockford base32 (`0`–`9` and `A`–`Z` without `I`, `L`, `O` and `U`; 60 bits), such as `AGK7M3QX9P2RTA` for an Alert Group. Prefixes use the same letters and differ per type: `AG` Alert Group, `AE` Audit log entry, `AK` Account link, `AR` Account link request, `CN` Connection, `CR` check run, `DE` delivery event, `DS` Destination, `KR` Link rule, `NE` Note, `NK` Integration token, `NT` Integration, `PT` Personal access token, `RG` Organization, `RQ` record of the Request log, `RT` Route, `SA` Service account, `SN` session, `SR` User, `SS` Stored Snapshot, `ST` Service account token, `TB` Lookup table, `TE` Timeline entry. Responses always carry the canonical upper-case form. Input is case-insensitive and normalized before lookup — `O` reads as `0`, `I` and `L` as `1` — so the pattern also admits lower case and those letters. People refer to Alert Groups by `#N`, never by `public_id`.
Id PublicId `json:"id"`
// Limiter A rate limit of `limit` calls per `per_seconds`.
Limiter Limiter `json:"limiter"`
Name string `json:"name"`
// Proxy Per-client proxy as read. The password is a Secret.
Proxy ProxyConfig `json:"proxy"`
ServerUrl string `json:"server_url"`
Type MattermostConnectionType `json:"type"`
}
MattermostConnection defines model for MattermostConnection.
type MattermostConnectionBase ¶
type MattermostConnectionBase struct {
// Limiter A rate limit of `limit` calls per `per_seconds`.
Limiter Limiter `json:"limiter"`
Name string `json:"name"`
ServerUrl string `json:"server_url"`
Type MattermostConnectionBaseType `json:"type"`
}
MattermostConnectionBase defines model for MattermostConnectionBase.
type MattermostConnectionBaseType ¶
type MattermostConnectionBaseType string
MattermostConnectionBaseType defines model for MattermostConnectionBase.Type.
const (
MattermostConnectionBaseTypeMattermost MattermostConnectionBaseType = "mattermost"
)
Defines values for MattermostConnectionBaseType.
func (MattermostConnectionBaseType) Valid ¶
func (e MattermostConnectionBaseType) Valid() bool
Valid indicates whether the value is a known member of the MattermostConnectionBaseType enum.
type MattermostConnectionDraft ¶
type MattermostConnectionDraft struct {
// BotToken A bot token typed in the form, sent only to `server_url`. Omit it to use the stored token of `connection_id`, which goes only to its saved server URL through its saved proxy.
BotToken *string `json:"bot_token,omitempty"`
// ConnectionId The saved Mattermost Connection that the form edits; omit it for a new one. An omitted `proxy` is its saved proxy, and no proxy without it.
ConnectionId *PublicId `json:"connection_id,omitempty"`
// Proxy Per-client proxy as written. Omitting `password` keeps the stored one; `null` clears it.
Proxy *ProxyConfigInput `json:"proxy,omitempty"`
// ServerUrl The server URL as `MattermostConnectionBase` takes it.
ServerUrl string `json:"server_url"`
Type MattermostConnectionDraftType `json:"type"`
}
MattermostConnectionDraft A Mattermost Connection as its form holds it, for `checkConnectionDraft`.
type MattermostConnectionDraftType ¶
type MattermostConnectionDraftType string
MattermostConnectionDraftType defines model for MattermostConnectionDraft.Type.
const (
MattermostConnectionDraftTypeMattermost MattermostConnectionDraftType = "mattermost"
)
Defines values for MattermostConnectionDraftType.
func (MattermostConnectionDraftType) Valid ¶
func (e MattermostConnectionDraftType) Valid() bool
Valid indicates whether the value is a known member of the MattermostConnectionDraftType enum.
type MattermostConnectionInput ¶
type MattermostConnectionInput struct {
// BotToken Write-only Secret. Omit on update to keep the stored one.
BotToken *string `json:"bot_token,omitempty"`
// Limiter A rate limit of `limit` calls per `per_seconds`.
Limiter Limiter `json:"limiter"`
Name string `json:"name"`
// Proxy Per-client proxy as written. Omitting `password` keeps the stored one; `null` clears it.
Proxy ProxyConfigInput `json:"proxy"`
ServerUrl string `json:"server_url"`
Type MattermostConnectionInputType `json:"type"`
}
MattermostConnectionInput defines model for MattermostConnectionInput.
type MattermostConnectionInputType ¶
type MattermostConnectionInputType string
MattermostConnectionInputType defines model for MattermostConnectionInput.Type.
const (
MattermostConnectionInputTypeMattermost MattermostConnectionInputType = "mattermost"
)
Defines values for MattermostConnectionInputType.
func (MattermostConnectionInputType) Valid ¶
func (e MattermostConnectionInputType) Valid() bool
Valid indicates whether the value is a known member of the MattermostConnectionInputType enum.
type MattermostConnectionType ¶
type MattermostConnectionType string
MattermostConnectionType defines model for MattermostConnection.Type.
const (
MattermostConnectionTypeMattermost MattermostConnectionType = "mattermost"
)
Defines values for MattermostConnectionType.
func (MattermostConnectionType) Valid ¶
func (e MattermostConnectionType) Valid() bool
Valid indicates whether the value is a known member of the MattermostConnectionType enum.
type MattermostDestination ¶
type MattermostDestination struct {
ChannelId string `json:"channel_id"`
ChannelName nullable.Nullable[string] `json:"channel_name,omitempty"`
// ConnectionId Opaque public identifier (`public_id`): a type prefix of one or two letters followed by 12 random characters of Crockford base32 (`0`–`9` and `A`–`Z` without `I`, `L`, `O` and `U`; 60 bits), such as `AGK7M3QX9P2RTA` for an Alert Group. Prefixes use the same letters and differ per type: `AG` Alert Group, `AE` Audit log entry, `AK` Account link, `AR` Account link request, `CN` Connection, `CR` check run, `DE` delivery event, `DS` Destination, `KR` Link rule, `NE` Note, `NK` Integration token, `NT` Integration, `PT` Personal access token, `RG` Organization, `RQ` record of the Request log, `RT` Route, `SA` Service account, `SN` session, `SR` User, `SS` Stored Snapshot, `ST` Service account token, `TB` Lookup table, `TE` Timeline entry. Responses always carry the canonical upper-case form. Input is case-insensitive and normalized before lookup — `O` reads as `0`, `I` and `L` as `1` — so the pattern also admits lower case and those letters. People refer to Alert Groups by `#N`, never by `public_id`.
ConnectionId PublicId `json:"connection_id"`
CreatedAt time.Time `json:"created_at"`
// Etag The same value as the `ETag` header; send it as `If-Match` on the next update. Lets a client update an item of a list without reading it again.
Etag *string `json:"etag,omitempty"`
Health DestinationHealth `json:"health"`
// Id Opaque public identifier (`public_id`): a type prefix of one or two letters followed by 12 random characters of Crockford base32 (`0`–`9` and `A`–`Z` without `I`, `L`, `O` and `U`; 60 bits), such as `AGK7M3QX9P2RTA` for an Alert Group. Prefixes use the same letters and differ per type: `AG` Alert Group, `AE` Audit log entry, `AK` Account link, `AR` Account link request, `CN` Connection, `CR` check run, `DE` delivery event, `DS` Destination, `KR` Link rule, `NE` Note, `NK` Integration token, `NT` Integration, `PT` Personal access token, `RG` Organization, `RQ` record of the Request log, `RT` Route, `SA` Service account, `SN` session, `SR` User, `SS` Stored Snapshot, `ST` Service account token, `TB` Lookup table, `TE` Timeline entry. Responses always carry the canonical upper-case form. Input is case-insensitive and normalized before lookup — `O` reads as `0`, `I` and `L` as `1` — so the pattern also admits lower case and those letters. People refer to Alert Groups by `#N`, never by `public_id`.
Id PublicId `json:"id"`
// Limiter A rate limit of `limit` calls per `per_seconds`.
Limiter Limiter `json:"limiter"`
// Mentions Keyed by the Mention names of Loud events. Reminders and auto-unacknowledge always mention the Owner, Takeovers the previous Owner.
Mentions MentionSettings `json:"mentions"`
Name string `json:"name"`
Routes []EntityRef `json:"routes"`
TeamId string `json:"team_id"`
TeamName nullable.Nullable[string] `json:"team_name,omitempty"`
TemplateError *TemplateErrorState `json:"template_error,omitempty"`
Type MattermostDestinationType `json:"type"`
}
MattermostDestination defines model for MattermostDestination.
type MattermostDestinationInput ¶
type MattermostDestinationInput struct {
ChannelId string `json:"channel_id"`
// ConnectionId Opaque public identifier (`public_id`): a type prefix of one or two letters followed by 12 random characters of Crockford base32 (`0`–`9` and `A`–`Z` without `I`, `L`, `O` and `U`; 60 bits), such as `AGK7M3QX9P2RTA` for an Alert Group. Prefixes use the same letters and differ per type: `AG` Alert Group, `AE` Audit log entry, `AK` Account link, `AR` Account link request, `CN` Connection, `CR` check run, `DE` delivery event, `DS` Destination, `KR` Link rule, `NE` Note, `NK` Integration token, `NT` Integration, `PT` Personal access token, `RG` Organization, `RQ` record of the Request log, `RT` Route, `SA` Service account, `SN` session, `SR` User, `SS` Stored Snapshot, `ST` Service account token, `TB` Lookup table, `TE` Timeline entry. Responses always carry the canonical upper-case form. Input is case-insensitive and normalized before lookup — `O` reads as `0`, `I` and `L` as `1` — so the pattern also admits lower case and those letters. People refer to Alert Groups by `#N`, never by `public_id`.
ConnectionId PublicId `json:"connection_id"`
// Limiter A rate limit of `limit` calls per `per_seconds`.
Limiter Limiter `json:"limiter"`
// Mentions Keyed by the Mention names of Loud events. Reminders and auto-unacknowledge always mention the Owner, Takeovers the previous Owner.
Mentions MentionSettings `json:"mentions"`
Name string `json:"name"`
TeamId string `json:"team_id"`
Type MattermostDestinationInputType `json:"type"`
}
MattermostDestinationInput defines model for MattermostDestinationInput.
type MattermostDestinationInputType ¶
type MattermostDestinationInputType string
MattermostDestinationInputType defines model for MattermostDestinationInput.Type.
const (
MattermostDestinationInputTypeMattermost MattermostDestinationInputType = "mattermost"
)
Defines values for MattermostDestinationInputType.
func (MattermostDestinationInputType) Valid ¶
func (e MattermostDestinationInputType) Valid() bool
Valid indicates whether the value is a known member of the MattermostDestinationInputType enum.
type MattermostDestinationType ¶
type MattermostDestinationType string
MattermostDestinationType defines model for MattermostDestination.Type.
const (
MattermostDestinationTypeMattermost MattermostDestinationType = "mattermost"
)
Defines values for MattermostDestinationType.
func (MattermostDestinationType) Valid ¶
func (e MattermostDestinationType) Valid() bool
Valid indicates whether the value is a known member of the MattermostDestinationType enum.
type MattermostLinkConfirm ¶
type MattermostLinkConfirm struct {
// Code The code the bot sent as a direct message.
Code *string `json:"code,omitempty"`
// RequestId Opaque public identifier (`public_id`): a type prefix of one or two letters followed by 12 random characters of Crockford base32 (`0`–`9` and `A`–`Z` without `I`, `L`, `O` and `U`; 60 bits), such as `AGK7M3QX9P2RTA` for an Alert Group. Prefixes use the same letters and differ per type: `AG` Alert Group, `AE` Audit log entry, `AK` Account link, `AR` Account link request, `CN` Connection, `CR` check run, `DE` delivery event, `DS` Destination, `KR` Link rule, `NE` Note, `NK` Integration token, `NT` Integration, `PT` Personal access token, `RG` Organization, `RQ` record of the Request log, `RT` Route, `SA` Service account, `SN` session, `SR` User, `SS` Stored Snapshot, `ST` Service account token, `TB` Lookup table, `TE` Timeline entry. Responses always carry the canonical upper-case form. Input is case-insensitive and normalized before lookup — `O` reads as `0`, `I` and `L` as `1` — so the pattern also admits lower case and those letters. People refer to Alert Groups by `#N`, never by `public_id`.
RequestId PublicId `json:"request_id"`
}
MattermostLinkConfirm defines model for MattermostLinkConfirm.
type MattermostLinkRequest ¶
type MattermostLinkRequest struct {
// ConnectionId Opaque public identifier (`public_id`): a type prefix of one or two letters followed by 12 random characters of Crockford base32 (`0`–`9` and `A`–`Z` without `I`, `L`, `O` and `U`; 60 bits), such as `AGK7M3QX9P2RTA` for an Alert Group. Prefixes use the same letters and differ per type: `AG` Alert Group, `AE` Audit log entry, `AK` Account link, `AR` Account link request, `CN` Connection, `CR` check run, `DE` delivery event, `DS` Destination, `KR` Link rule, `NE` Note, `NK` Integration token, `NT` Integration, `PT` Personal access token, `RG` Organization, `RQ` record of the Request log, `RT` Route, `SA` Service account, `SN` session, `SR` User, `SS` Stored Snapshot, `ST` Service account token, `TB` Lookup table, `TE` Timeline entry. Responses always carry the canonical upper-case form. Input is case-insensitive and normalized before lookup — `O` reads as `0`, `I` and `L` as `1` — so the pattern also admits lower case and those letters. People refer to Alert Groups by `#N`, never by `public_id`.
ConnectionId PublicId `json:"connection_id"`
// Username The `@username` to link; a leading `@` is optional.
Username string `json:"username"`
}
MattermostLinkRequest defines model for MattermostLinkRequest.
type MattermostLinkStarted ¶
type MattermostLinkStarted struct {
AttemptsRemaining int `json:"attempts_remaining"`
ExpiresAt time.Time `json:"expires_at"`
// RequestId Opaque public identifier (`public_id`): a type prefix of one or two letters followed by 12 random characters of Crockford base32 (`0`–`9` and `A`–`Z` without `I`, `L`, `O` and `U`; 60 bits), such as `AGK7M3QX9P2RTA` for an Alert Group. Prefixes use the same letters and differ per type: `AG` Alert Group, `AE` Audit log entry, `AK` Account link, `AR` Account link request, `CN` Connection, `CR` check run, `DE` delivery event, `DS` Destination, `KR` Link rule, `NE` Note, `NK` Integration token, `NT` Integration, `PT` Personal access token, `RG` Organization, `RQ` record of the Request log, `RT` Route, `SA` Service account, `SN` session, `SR` User, `SS` Stored Snapshot, `ST` Service account token, `TB` Lookup table, `TE` Timeline entry. Responses always carry the canonical upper-case form. Input is case-insensitive and normalized before lookup — `O` reads as `0`, `I` and `L` as `1` — so the pattern also admits lower case and those letters. People refer to Alert Groups by `#N`, never by `public_id`.
RequestId PublicId `json:"request_id"`
}
MattermostLinkStarted defines model for MattermostLinkStarted.
type Me ¶
type Me struct {
// Permissions Effective Permissions of the caller, narrowed by the token if one is used.
Permissions []Permission `json:"permissions"`
User User `json:"user"`
}
Me defines model for Me.
type MeUpdate ¶
type MeUpdate struct {
// Language UI or template language; null follows the default.
Language nullable.Nullable[NullableLanguage] `json:"language,omitempty"`
Name string `json:"name"`
TimeZone nullable.Nullable[string] `json:"time_zone,omitempty"`
}
MeUpdate defines model for MeUpdate.
type MentionName ¶
type MentionName string
MentionName A symbolic Mention that each Destination turns into real Mentions.
const ( MentionNameAckTimeout MentionName = "ack_timeout" MentionNameNewAlertGroup MentionName = "new_alert_group" MentionNameNewAlerts MentionName = "new_alerts" MentionNameOwner MentionName = "owner" MentionNamePreviousOwner MentionName = "previous_owner" MentionNameReopen MentionName = "reopen" MentionNameRiseToUrgent MentionName = "rise_to_urgent" MentionNameSnoozeEnded MentionName = "snooze_ended" )
Defines values for MentionName.
func (MentionName) Valid ¶
func (e MentionName) Valid() bool
Valid indicates whether the value is a known member of the MentionName enum.
type MentionSetting ¶
type MentionSetting struct {
// Everyone `none`, or the chat-wide mention the messenger supports: Mattermost takes `channel`, `all` and `here`, Slack `channel` and `here` but not `all`; Telegram and Bridges have none of them; an outgoing webhook takes each as data.
Everyone MentionSettingEveryone `json:"everyone"`
// Groups Messenger groups: Mattermost group names; Telegram, Bridges and Slack have none.
Groups []string `json:"groups"`
// UserIds Muster users, rendered through their Account links.
UserIds []PublicId `json:"user_ids"`
}
MentionSetting Whom to mention for one kind of Loud event. The default is nobody.
type MentionSettingEveryone ¶
type MentionSettingEveryone string
MentionSettingEveryone `none`, or the chat-wide mention the messenger supports: Mattermost takes `channel`, `all` and `here`, Slack `channel` and `here` but not `all`; Telegram and Bridges have none of them; an outgoing webhook takes each as data.
const ( MentionSettingEveryoneAll MentionSettingEveryone = "all" MentionSettingEveryoneChannel MentionSettingEveryone = "channel" MentionSettingEveryoneHere MentionSettingEveryone = "here" MentionSettingEveryoneNone MentionSettingEveryone = "none" )
Defines values for MentionSettingEveryone.
func (MentionSettingEveryone) Valid ¶
func (e MentionSettingEveryone) Valid() bool
Valid indicates whether the value is a known member of the MentionSettingEveryone enum.
type MentionSettings ¶
type MentionSettings struct {
// AckTimeout Whom to mention for one kind of Loud event. The default is nobody.
AckTimeout MentionSetting `json:"ack_timeout"`
// NewAlertGroup Whom to mention for one kind of Loud event. The default is nobody.
NewAlertGroup MentionSetting `json:"new_alert_group"`
// NewAlerts Whom to mention for one kind of Loud event. The default is nobody.
NewAlerts MentionSetting `json:"new_alerts"`
// Reopen Whom to mention for one kind of Loud event. The default is nobody.
Reopen MentionSetting `json:"reopen"`
// RiseToUrgent Whom to mention for one kind of Loud event. The default is nobody.
RiseToUrgent MentionSetting `json:"rise_to_urgent"`
// SnoozeEnded Whom to mention for one kind of Loud event. The default is nobody.
SnoozeEnded MentionSetting `json:"snooze_ended"`
}
MentionSettings Keyed by the Mention names of Loud events. Reminders and auto-unacknowledge always mention the Owner, Takeovers the previous Owner.
type Messenger ¶
type Messenger string
Messenger defines model for Messenger.
type MoveOpenAlertGroupsResponse ¶
type MoveOpenAlertGroupsResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *MovedAlertGroups
// ApplicationproblemJSON401 the response for an HTTP 401 `application/problem+json` response
ApplicationproblemJSON401 *Unauthorized
// ApplicationproblemJSON403 the response for an HTTP 403 `application/problem+json` response
ApplicationproblemJSON403 *Forbidden
// ApplicationproblemJSON404 the response for an HTTP 404 `application/problem+json` response
ApplicationproblemJSON404 *NotFound
// ApplicationproblemJSON409 the response for an HTTP 409 `application/problem+json` response
ApplicationproblemJSON409 *Conflict
// ApplicationproblemJSON429 the response for an HTTP 429 `application/problem+json` response
ApplicationproblemJSON429 *TooManyRequests
// Headers429 the parsed response headers for an HTTP 429 response
Headers429 *MoveOpenAlertGroupsResponse429Headers
}
func ParseMoveOpenAlertGroupsResponse ¶
func ParseMoveOpenAlertGroupsResponse(rsp *http.Response) (*MoveOpenAlertGroupsResponse, error)
ParseMoveOpenAlertGroupsResponse parses an HTTP response from a MoveOpenAlertGroupsWithResponse call
func (MoveOpenAlertGroupsResponse) ContentType ¶
func (r MoveOpenAlertGroupsResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (MoveOpenAlertGroupsResponse) GetApplicationproblemJSON401 ¶
func (r MoveOpenAlertGroupsResponse) GetApplicationproblemJSON401() *Unauthorized
GetApplicationproblemJSON401 returns the response for an HTTP 401 `application/problem+json` response
func (MoveOpenAlertGroupsResponse) GetApplicationproblemJSON403 ¶
func (r MoveOpenAlertGroupsResponse) GetApplicationproblemJSON403() *Forbidden
GetApplicationproblemJSON403 returns the response for an HTTP 403 `application/problem+json` response
func (MoveOpenAlertGroupsResponse) GetApplicationproblemJSON404 ¶
func (r MoveOpenAlertGroupsResponse) GetApplicationproblemJSON404() *NotFound
GetApplicationproblemJSON404 returns the response for an HTTP 404 `application/problem+json` response
func (MoveOpenAlertGroupsResponse) GetApplicationproblemJSON409 ¶
func (r MoveOpenAlertGroupsResponse) GetApplicationproblemJSON409() *Conflict
GetApplicationproblemJSON409 returns the response for an HTTP 409 `application/problem+json` response
func (MoveOpenAlertGroupsResponse) GetApplicationproblemJSON429 ¶
func (r MoveOpenAlertGroupsResponse) GetApplicationproblemJSON429() *TooManyRequests
GetApplicationproblemJSON429 returns the response for an HTTP 429 `application/problem+json` response
func (MoveOpenAlertGroupsResponse) GetBody ¶
func (r MoveOpenAlertGroupsResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (MoveOpenAlertGroupsResponse) GetJSON200 ¶
func (r MoveOpenAlertGroupsResponse) GetJSON200() *MovedAlertGroups
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (MoveOpenAlertGroupsResponse) Status ¶
func (r MoveOpenAlertGroupsResponse) Status() string
Status returns HTTPResponse.Status
func (MoveOpenAlertGroupsResponse) StatusCode ¶
func (r MoveOpenAlertGroupsResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type MoveOpenAlertGroupsResponse429Headers ¶
type MoveOpenAlertGroupsResponse429Headers struct {
RetryAfter *int
}
MoveOpenAlertGroupsResponse429Headers the declared response headers of an HTTP 429 response for MoveOpenAlertGroups
type MovedAlertGroups ¶
type MovedAlertGroups struct {
// Moved Open Alert Groups moved to the Default route.
Moved int `json:"moved"`
}
MovedAlertGroups defines model for MovedAlertGroups.
type NextNotice ¶
type NextNotice struct {
At time.Time `json:"at"`
Kind NextNoticeKind `json:"kind"`
}
NextNotice defines model for NextNotice.
type NextNoticeKind ¶
type NextNoticeKind string
NextNoticeKind defines model for NextNotice.Kind.
const ( NextNoticeKindAckTimeout NextNoticeKind = "ack_timeout" NextNoticeKindReminder NextNoticeKind = "reminder" )
Defines values for NextNoticeKind.
func (NextNoticeKind) Valid ¶
func (e NextNoticeKind) Valid() bool
Valid indicates whether the value is a known member of the NextNoticeKind enum.
type NotFound ¶
type NotFound = Problem
NotFound RFC 9457 problem details, served as `application/problem+json`. `type` is a stable URI under `https://muster-io.github.io/muster/problems/`; clients branch on `type`, `code` and `errors[].code`, never on `title` or `detail`. Validation errors raised by the request-validation middleware and by the strict server are mapped to this schema by one function. Every `code` is listed in `x-problem-codes`.
type NotImplemented ¶
type NotImplemented = Problem
NotImplemented RFC 9457 problem details, served as `application/problem+json`. `type` is a stable URI under `https://muster-io.github.io/muster/problems/`; clients branch on `type`, `code` and `errors[].code`, never on `title` or `detail`. Validation errors raised by the request-validation middleware and by the strict server are mapped to this schema by one function. Every `code` is listed in `x-problem-codes`.
type Note ¶
type Note struct {
// Author Who resolved an Alert Group or wrote a Note: a User or a Service account. An Owner is always a User (`UserRef`), because a Service account cannot become an Owner.
Author ActorRef `json:"author"`
Body string `json:"body"`
CreatedAt time.Time `json:"created_at"`
// Id Opaque public identifier (`public_id`): a type prefix of one or two letters followed by 12 random characters of Crockford base32 (`0`–`9` and `A`–`Z` without `I`, `L`, `O` and `U`; 60 bits), such as `AGK7M3QX9P2RTA` for an Alert Group. Prefixes use the same letters and differ per type: `AG` Alert Group, `AE` Audit log entry, `AK` Account link, `AR` Account link request, `CN` Connection, `CR` check run, `DE` delivery event, `DS` Destination, `KR` Link rule, `NE` Note, `NK` Integration token, `NT` Integration, `PT` Personal access token, `RG` Organization, `RQ` record of the Request log, `RT` Route, `SA` Service account, `SN` session, `SR` User, `SS` Stored Snapshot, `ST` Service account token, `TB` Lookup table, `TE` Timeline entry. Responses always carry the canonical upper-case form. Input is case-insensitive and normalized before lookup — `O` reads as `0`, `I` and `L` as `1` — so the pattern also admits lower case and those letters. People refer to Alert Groups by `#N`, never by `public_id`.
Id PublicId `json:"id"`
// Transport How a Command or change reached Muster. `bridge` marks presses and Text commands through a Bridge Connection; `slack` marks presses through a Slack Connection; `cli` marks audited CLI commands (`--actor`); `system` marks transitions Muster starts on its own.
Transport Transport `json:"transport"`
}
Note defines model for Note.
type NoteInput ¶
type NoteInput struct {
// Body At most `alert_group.note_max_length` characters.
Body string `json:"body"`
}
NoteInput defines model for NoteInput.
type NoteList ¶
type NoteList struct {
Items []Note `json:"items"`
NextCursor nullable.Nullable[string] `json:"next_cursor"`
}
NoteList defines model for NoteList.
type NullableAlertGroupStatus ¶
type NullableAlertGroupStatus string
NullableAlertGroupStatus defines model for NullableAlertGroupStatus.
const ( NullableAlertGroupStatusAcknowledged NullableAlertGroupStatus = "acknowledged" NullableAlertGroupStatusFiring NullableAlertGroupStatus = "firing" NullableAlertGroupStatusLessThannil NullableAlertGroupStatus = "<nil>" NullableAlertGroupStatusResolved NullableAlertGroupStatus = "resolved" NullableAlertGroupStatusSnoozed NullableAlertGroupStatus = "snoozed" )
Defines values for NullableAlertGroupStatus.
func (NullableAlertGroupStatus) Valid ¶
func (e NullableAlertGroupStatus) Valid() bool
Valid indicates whether the value is a known member of the NullableAlertGroupStatus enum.
type NullableCheckKind ¶
type NullableCheckKind string
NullableCheckKind The check or test a request belongs to, null for any other request.
const ( NullableCheckKindConnectionCheck NullableCheckKind = "connection_check" NullableCheckKindDestinationCheck NullableCheckKind = "destination_check" NullableCheckKindDraftCheck NullableCheckKind = "draft_check" NullableCheckKindLessThannil NullableCheckKind = "<nil>" NullableCheckKindProbe NullableCheckKind = "probe" NullableCheckKindTest NullableCheckKind = "test" )
Defines values for NullableCheckKind.
func (NullableCheckKind) Valid ¶
func (e NullableCheckKind) Valid() bool
Valid indicates whether the value is a known member of the NullableCheckKind enum.
type NullableConnectionCheckCode ¶
type NullableConnectionCheckCode string
NullableConnectionCheckCode What a step of the Connection check found, as a stable code that clients translate, with `message` as its detail in English; null when the step passed with nothing to say or was skipped. A step that failed: `token_invalid` — the messenger refused the bot token (`token`, `get_me`) or the bridge refused the token (`info`); for Slack, `token_invalid` — Slack refused the bot token or the app-level token (`token`, `app_token`), `wrong_token_type` — the bot token is not a bot's: Slack answered `not_allowed_token_type`, or `auth.test` named no `bot_id` (`token`), `missing_scope` — the bot token lacks scopes Muster needs, which `missing_scopes` lists and `message` names (`scopes`), `app_mismatch` — the app-level token belongs to another Slack app than the bot token (`app_token`), and `not_slack` — the address answered the dry probe, but not with Slack's JSON `{"ok":false, "error":"not_authed"}`; for the dry probe (`dry_probe`, without any token: Telegram `GET <base>/bot0:x/getMe`, Mattermost `GET <server>/api/v4/system/ping`, a Bridge `GET <base>/v1/info`, Slack `POST https://slack.com/api/auth.test`), `not_bot_api` — the address answered, but not as a Bot API (not JSON), `not_mattermost` — the address answered, but not as a Mattermost server (not JSON, or `200` JSON whose `status` is not `OK`), `not_bridge` — the address answered, but not with a problem of the Bridge protocol (`application/problem+json`), `wrong_path_prefix` — it answered 404, so the path prefix of the address is wrong, `unexpected_status` — it answered another status than the probe expects (`401` from a Bot API or a bridge, `200` from Mattermost or Slack) in the expected format; for `info`, `protocol_version_unknown` — the bridge speaks a protocol version this Muster does not, which `message` names, and `protocol_mismatch` — the answer does not match the protocol or is larger than 64 KiB, which `message` names; for `event_delivery`, `event_delivery_not_offered` — the bridge does not offer the Connection's event delivery mode; for any step, `dns_failed` — the host name does not resolve, `connect_failed` — no connection, or the answer could not be read, `tls_failed` — the TLS handshake failed, `timeout` — no answer in time, `proxy_refused` — the proxy refused its credentials, `blocked` — the outbound address policy refused the address, and `request_failed` — any other failure, such as an error answer, which `message` names (from a bridge, the problem's masked `detail`). A step that passed: `webhook_set` (`get_webhook_info`) — a webhook is set, and `message` names its host.
const ( NullableConnectionCheckCodeAppMismatch NullableConnectionCheckCode = "app_mismatch" NullableConnectionCheckCodeBlocked NullableConnectionCheckCode = "blocked" NullableConnectionCheckCodeConnectFailed NullableConnectionCheckCode = "connect_failed" NullableConnectionCheckCodeDnsFailed NullableConnectionCheckCode = "dns_failed" NullableConnectionCheckCodeEventDeliveryNotOffered NullableConnectionCheckCode = "event_delivery_not_offered" NullableConnectionCheckCodeLessThannil NullableConnectionCheckCode = "<nil>" NullableConnectionCheckCodeMissingScope NullableConnectionCheckCode = "missing_scope" NullableConnectionCheckCodeNotBotApi NullableConnectionCheckCode = "not_bot_api" NullableConnectionCheckCodeNotBridge NullableConnectionCheckCode = "not_bridge" NullableConnectionCheckCodeNotMattermost NullableConnectionCheckCode = "not_mattermost" NullableConnectionCheckCodeNotSlack NullableConnectionCheckCode = "not_slack" NullableConnectionCheckCodeProtocolMismatch NullableConnectionCheckCode = "protocol_mismatch" NullableConnectionCheckCodeProtocolVersionUnknown NullableConnectionCheckCode = "protocol_version_unknown" NullableConnectionCheckCodeProxyRefused NullableConnectionCheckCode = "proxy_refused" NullableConnectionCheckCodeRequestFailed NullableConnectionCheckCode = "request_failed" NullableConnectionCheckCodeTimeout NullableConnectionCheckCode = "timeout" NullableConnectionCheckCodeTlsFailed NullableConnectionCheckCode = "tls_failed" NullableConnectionCheckCodeTokenInvalid NullableConnectionCheckCode = "token_invalid" NullableConnectionCheckCodeUnexpectedStatus NullableConnectionCheckCode = "unexpected_status" NullableConnectionCheckCodeWebhookSet NullableConnectionCheckCode = "webhook_set" NullableConnectionCheckCodeWrongPathPrefix NullableConnectionCheckCode = "wrong_path_prefix" NullableConnectionCheckCodeWrongTokenType NullableConnectionCheckCode = "wrong_token_type" )
Defines values for NullableConnectionCheckCode.
func (NullableConnectionCheckCode) Valid ¶
func (e NullableConnectionCheckCode) Valid() bool
Valid indicates whether the value is a known member of the NullableConnectionCheckCode enum.
type NullableDestinationCheckCode ¶
type NullableDestinationCheckCode string
NullableDestinationCheckCode Why a check of the Destination check failed, as a stable code that clients translate, with `message` as its detail in English; null for a check that passed. `token_invalid` — the messenger refused the bot token (`token`, Telegram `channel_exists`, Bridge `channel`); Mattermost `bot_in_channel`: `bot_not_in_channel`, `channel_in_other_team` — the channel is not in the Destination's team, `channel_archived`; Telegram `channel_exists`: `channel_not_found` — the channel was not found or the bot cannot see it, `not_a_channel` — the chat is not a channel; `discussion_group`: `comments_disabled` — the channel has no linked discussion group, so comments are not enabled, `changed_since_saved` — the channel or its discussion group changed since the Destination was saved, and a save takes the new one; `bot_rights_channel`: `bot_not_channel_admin`, `bot_may_not_post`, `bot_may_not_edit`; `bot_rights_group`: `bot_not_group_admin`, whose `message` names the group; Bridge `channel`: `channel_forbidden` — the bridge answered `forbidden`: the channel does not exist or the bot cannot use it, with the bridge's `detail` as `message`, and `request_failed` for any other error class of the bridge, whose `message` names the class; Slack `channel`: `token_invalid` — Slack refused the bot token, `missing_scope` — the bot token lacks a scope `conversations.info` needs, which `missing_scopes` lists, `channel_not_found` — no such channel, a deleted one, or a private channel the bot is not in, `channel_archived`, `bot_not_in_channel` — `message` says "Invite the bot to the channel: /invite @{bot}", and `request_failed` for any other error of Slack's, which `message` names; any check: `dns_failed`, `connect_failed`, `tls_failed`, `timeout`, `proxy_refused`, `blocked` and `request_failed`, as in `NullableConnectionCheckCode`.
const ( NullableDestinationCheckCodeBlocked NullableDestinationCheckCode = "blocked" NullableDestinationCheckCodeBotMayNotEdit NullableDestinationCheckCode = "bot_may_not_edit" NullableDestinationCheckCodeBotMayNotPost NullableDestinationCheckCode = "bot_may_not_post" NullableDestinationCheckCodeBotNotChannelAdmin NullableDestinationCheckCode = "bot_not_channel_admin" NullableDestinationCheckCodeBotNotGroupAdmin NullableDestinationCheckCode = "bot_not_group_admin" NullableDestinationCheckCodeBotNotInChannel NullableDestinationCheckCode = "bot_not_in_channel" NullableDestinationCheckCodeChangedSinceSaved NullableDestinationCheckCode = "changed_since_saved" NullableDestinationCheckCodeChannelArchived NullableDestinationCheckCode = "channel_archived" NullableDestinationCheckCodeChannelForbidden NullableDestinationCheckCode = "channel_forbidden" NullableDestinationCheckCodeChannelInOtherTeam NullableDestinationCheckCode = "channel_in_other_team" NullableDestinationCheckCodeChannelNotFound NullableDestinationCheckCode = "channel_not_found" NullableDestinationCheckCodeCommentsDisabled NullableDestinationCheckCode = "comments_disabled" NullableDestinationCheckCodeConnectFailed NullableDestinationCheckCode = "connect_failed" NullableDestinationCheckCodeDnsFailed NullableDestinationCheckCode = "dns_failed" NullableDestinationCheckCodeLessThannil NullableDestinationCheckCode = "<nil>" NullableDestinationCheckCodeMissingScope NullableDestinationCheckCode = "missing_scope" NullableDestinationCheckCodeNotAChannel NullableDestinationCheckCode = "not_a_channel" NullableDestinationCheckCodeProxyRefused NullableDestinationCheckCode = "proxy_refused" NullableDestinationCheckCodeRequestFailed NullableDestinationCheckCode = "request_failed" NullableDestinationCheckCodeTimeout NullableDestinationCheckCode = "timeout" NullableDestinationCheckCodeTlsFailed NullableDestinationCheckCode = "tls_failed" NullableDestinationCheckCodeTokenInvalid NullableDestinationCheckCode = "token_invalid" )
Defines values for NullableDestinationCheckCode.
func (NullableDestinationCheckCode) Valid ¶
func (e NullableDestinationCheckCode) Valid() bool
Valid indicates whether the value is a known member of the NullableDestinationCheckCode enum.
type NullableHttpHeaders ¶
NullableHttpHeaders HTTP headers by name, each with its values, masked, or null. Untrusted text.
type NullableLanguage ¶
type NullableLanguage string
NullableLanguage UI or template language; null follows the default.
const ( NullableLanguageEn NullableLanguage = "en" NullableLanguageLessThannil NullableLanguage = "<nil>" NullableLanguageRu NullableLanguage = "ru" )
Defines values for NullableLanguage.
func (NullableLanguage) Valid ¶
func (e NullableLanguage) Valid() bool
Valid indicates whether the value is a known member of the NullableLanguage enum.
type NullableOutgoingHeartbeatErrorClass ¶
type NullableOutgoingHeartbeatErrorClass string
NullableOutgoingHeartbeatErrorClass Why the last outgoing heartbeat failed; null when it succeeded or was not sent. The URL answered `last_status` and the answer was classified `transient` (a server error, the next interval is the retry), `retry_after` (the URL asked to wait), `fatal` (a client error, such as a wrong URL), `redirect` (Muster follows no redirects) or `unknown`; or there was no answer: `blocked` (the outbound address policy refused the address), `dns`, `connect`, `tls`, `timeout`, `proxy_auth` (the proxy refused its credentials); or Muster could not prepare the request (`internal`, such as a URL it cannot decrypt).
const ( NullableOutgoingHeartbeatErrorClassBlocked NullableOutgoingHeartbeatErrorClass = "blocked" NullableOutgoingHeartbeatErrorClassConnect NullableOutgoingHeartbeatErrorClass = "connect" NullableOutgoingHeartbeatErrorClassDns NullableOutgoingHeartbeatErrorClass = "dns" NullableOutgoingHeartbeatErrorClassFatal NullableOutgoingHeartbeatErrorClass = "fatal" NullableOutgoingHeartbeatErrorClassInternal NullableOutgoingHeartbeatErrorClass = "internal" NullableOutgoingHeartbeatErrorClassLessThannil NullableOutgoingHeartbeatErrorClass = "<nil>" NullableOutgoingHeartbeatErrorClassProxyAuth NullableOutgoingHeartbeatErrorClass = "proxy_auth" NullableOutgoingHeartbeatErrorClassRedirect NullableOutgoingHeartbeatErrorClass = "redirect" NullableOutgoingHeartbeatErrorClassRetryAfter NullableOutgoingHeartbeatErrorClass = "retry_after" NullableOutgoingHeartbeatErrorClassTimeout NullableOutgoingHeartbeatErrorClass = "timeout" NullableOutgoingHeartbeatErrorClassTls NullableOutgoingHeartbeatErrorClass = "tls" NullableOutgoingHeartbeatErrorClassTransient NullableOutgoingHeartbeatErrorClass = "transient" NullableOutgoingHeartbeatErrorClassUnknown NullableOutgoingHeartbeatErrorClass = "unknown" )
Defines values for NullableOutgoingHeartbeatErrorClass.
func (NullableOutgoingHeartbeatErrorClass) Valid ¶
func (e NullableOutgoingHeartbeatErrorClass) Valid() bool
Valid indicates whether the value is a known member of the NullableOutgoingHeartbeatErrorClass enum.
type NullablePublicId ¶
type NullablePublicId = string
NullablePublicId A `public_id` in the format of `PublicId`, or null.
type NullableRequestErrorClass ¶
type NullableRequestErrorClass string
NullableRequestErrorClass How the attempt failed, as the outbound package classified it: the answer asked to wait (`retry_after`), was a server error, or the attempt got no answer, such as a refused connection or a timeout (`transient`); the answer was a client error (`fatal`), an answer it could not judge, such as one larger than its limit (`unknown`), or a redirect, which Muster never follows (`redirect`); or the outbound address policy refused the address (`blocked`). Null for an attempt that succeeded.
const ( NullableRequestErrorClassBlocked NullableRequestErrorClass = "blocked" NullableRequestErrorClassFatal NullableRequestErrorClass = "fatal" NullableRequestErrorClassLessThannil NullableRequestErrorClass = "<nil>" NullableRequestErrorClassRedirect NullableRequestErrorClass = "redirect" NullableRequestErrorClassRetryAfter NullableRequestErrorClass = "retry_after" NullableRequestErrorClassTransient NullableRequestErrorClass = "transient" NullableRequestErrorClassUnknown NullableRequestErrorClass = "unknown" )
Defines values for NullableRequestErrorClass.
func (NullableRequestErrorClass) Valid ¶
func (e NullableRequestErrorClass) Valid() bool
Valid indicates whether the value is a known member of the NullableRequestErrorClass enum.
type NullableRequestErrorCode ¶
type NullableRequestErrorCode string
NullableRequestErrorCode What failed when the attempt got no answer, as the checks name it (`NullableConnectionCheckCode`) — `dns_failed`, `connect_failed`, `tls_failed`, `timeout`, `proxy_refused`, `blocked` or `request_failed`. Null for an attempt that got an answer.
const ( NullableRequestErrorCodeBlocked NullableRequestErrorCode = "blocked" NullableRequestErrorCodeConnectFailed NullableRequestErrorCode = "connect_failed" NullableRequestErrorCodeDnsFailed NullableRequestErrorCode = "dns_failed" NullableRequestErrorCodeLessThannil NullableRequestErrorCode = "<nil>" NullableRequestErrorCodeProxyRefused NullableRequestErrorCode = "proxy_refused" NullableRequestErrorCodeRequestFailed NullableRequestErrorCode = "request_failed" NullableRequestErrorCodeTimeout NullableRequestErrorCode = "timeout" NullableRequestErrorCodeTlsFailed NullableRequestErrorCode = "tls_failed" )
Defines values for NullableRequestErrorCode.
func (NullableRequestErrorCode) Valid ¶
func (e NullableRequestErrorCode) Valid() bool
Valid indicates whether the value is a known member of the NullableRequestErrorCode enum.
type NullableResolveReason ¶
type NullableResolveReason string
NullableResolveReason Why an Alert resolved; null while it fires.
const ( NullableResolveReasonGone NullableResolveReason = "gone" NullableResolveReasonIntegrationDeleted NullableResolveReason = "integration_deleted" NullableResolveReasonLessThannil NullableResolveReason = "<nil>" NullableResolveReasonResolved NullableResolveReason = "resolved" NullableResolveReasonStale NullableResolveReason = "stale" )
Defines values for NullableResolveReason.
func (NullableResolveReason) Valid ¶
func (e NullableResolveReason) Valid() bool
Valid indicates whether the value is a known member of the NullableResolveReason enum.
type NullableStatusChangeReason ¶
type NullableStatusChangeReason string
NullableStatusChangeReason The stable code of the reason of an automatic status change: why the Alert that resolved the Alert Group resolved (`resolved`, `gone`, `stale`, `integration_deleted`), why the Owner was released (`owner_disabled`, `owner_deleted`), or `reminders_unanswered` when nobody answered the last two Reminders and the Alert Group was unacknowledged automatically. Null when the entry has no reason or its reason has no code.
const ( NullableStatusChangeReasonGone NullableStatusChangeReason = "gone" NullableStatusChangeReasonIntegrationDeleted NullableStatusChangeReason = "integration_deleted" NullableStatusChangeReasonLessThannil NullableStatusChangeReason = "<nil>" NullableStatusChangeReasonOwnerDeleted NullableStatusChangeReason = "owner_deleted" NullableStatusChangeReasonOwnerDisabled NullableStatusChangeReason = "owner_disabled" NullableStatusChangeReasonRemindersUnanswered NullableStatusChangeReason = "reminders_unanswered" NullableStatusChangeReasonResolved NullableStatusChangeReason = "resolved" NullableStatusChangeReasonStale NullableStatusChangeReason = "stale" )
Defines values for NullableStatusChangeReason.
func (NullableStatusChangeReason) Valid ¶
func (e NullableStatusChangeReason) Valid() bool
Valid indicates whether the value is a known member of the NullableStatusChangeReason enum.
type NullableTestStepErrorCode ¶
type NullableTestStepErrorCode string
NullableTestStepErrorCode What failed in a step where `error_class` does not tell it, for the `press` step of a Mattermost Destination: `press_not_reached` — the bot pressed the button, but the press did not reach Muster's callback; `error` names the host of `MUSTER_INGEST_URL` to add to `ServiceSettings.AllowedUntrustedInternalConnections` on the Mattermost server; `bot_unknown` — no Connection check has learned the bot yet, so it did not press; run the Connection check, then test again. Null otherwise.
const ( NullableTestStepErrorCodeBotUnknown NullableTestStepErrorCode = "bot_unknown" NullableTestStepErrorCodeLessThannil NullableTestStepErrorCode = "<nil>" NullableTestStepErrorCodePressNotReached NullableTestStepErrorCode = "press_not_reached" )
Defines values for NullableTestStepErrorCode.
func (NullableTestStepErrorCode) Valid ¶
func (e NullableTestStepErrorCode) Valid() bool
Valid indicates whether the value is a known member of the NullableTestStepErrorCode enum.
type OidcCheckResult ¶
type OidcCheckResult struct {
AuthorizationEndpoint nullable.Nullable[string] `json:"authorization_endpoint,omitempty"`
// Error What failed; names the blocking rule when the outbound address policy refused the target. Secrets and tokens are masked.
Error nullable.Nullable[string] `json:"error,omitempty"`
Issuer nullable.Nullable[string] `json:"issuer,omitempty"`
JwksUri nullable.Nullable[string] `json:"jwks_uri,omitempty"`
LatencyMs *int `json:"latency_ms,omitempty"`
// OfflineAccessOffered Present when discovery was read. True when discovery lists `offline_access` in `scopes_supported` or publishes no `scopes_supported`; Muster then requests it, and users who are granted an offline token are re-checked in the background. False when the list lacks it (as GitLab's does) — Muster does not add it, and unless the provider grants an offline token OIDC sessions end `auth.oidc_fallback_session_lifetime` after sign-in, there is no background re-check, and Personal access tokens follow `auth.oidc_token_grace`. `offline_access` is also requested, whatever this value, when the Admin adds it to the configured scopes; `requested_scopes` then lists it. Neither value is a warning.
OfflineAccessOffered *bool `json:"offline_access_offered,omitempty"`
Ok bool `json:"ok"`
// RequestedScopes Present when discovery was read. The scopes a sign-in and a link request from this identity provider, in order — `openid`, `offline_access` when `offline_access_offered`, then the configured scopes.
RequestedScopes *[]string `json:"requested_scopes,omitempty"`
TokenEndpoint nullable.Nullable[string] `json:"token_endpoint,omitempty"`
// Via How the request travelled.
Via ConnectionPath `json:"via"`
Warnings *[]OidcWarning `json:"warnings,omitempty"`
}
OidcCheckResult defines model for OidcCheckResult.
type OidcGroupMapping ¶
OidcGroupMapping defines model for OidcGroupMapping.
type OidcLinkStart ¶
type OidcLinkStart struct {
// AuthorizationUrl The identity provider's authorization endpoint with the link request; open it in the browser.
AuthorizationUrl string `json:"authorization_url"`
// ExpiresAt The link must be completed before this time.
ExpiresAt time.Time `json:"expires_at"`
}
OidcLinkStart defines model for OidcLinkStart.
type OidcSettings ¶
type OidcSettings struct {
ClientId string `json:"client_id"`
// ClientSecretExpiresOn Optional expiry date of the client secret; the OIDC settings warn within `oidc.secret_expiry_lead`.
ClientSecretExpiresOn nullable.Nullable[openapi_types.Date] `json:"client_secret_expires_on,omitempty"`
// ClientSecretStatus What a read shows instead of a Secret. The value itself is never returned.
ClientSecretStatus SecretStatus `json:"client_secret_status"`
// DisplayName Provider name for the button "Sign in with {display_name}". Defaults to the host of the issuer URL; a read leaves it out while the default applies, and an empty value returns to the default.
DisplayName *string `json:"display_name,omitempty"`
Enabled bool `json:"enabled"`
// Etag The same value as the `ETag` header; send it as `If-Match` on the next update. Lets a client update an item of a list without reading it again.
Etag *string `json:"etag,omitempty"`
GroupMappings []OidcGroupMapping `json:"group_mappings"`
GroupsClaim string `json:"groups_claim"`
IssuerUrl string `json:"issuer_url"`
// Proxy Per-client proxy as read. The password is a Secret.
Proxy ProxyConfig `json:"proxy"`
// Scopes Scopes requested at sign-in and linking. Muster always adds `openid`, and `offline_access` when the IdP's discovery lists it in `scopes_supported` or publishes no `scopes_supported`; when Muster requests it, allow `offline_access` for the Muster client at the IdP. Without an offline token users are not re-checked in the background, OIDC sessions end after `auth.oidc_fallback_session_lifetime`, and Personal access tokens follow `auth.oidc_token_grace`. The connection check shows the scopes a sign-in requests.
Scopes *[]string `json:"scopes,omitempty"`
SkipTotpWithIdpMfa bool `json:"skip_totp_with_idp_mfa"`
// SyncRole On: the identity provider decides the Role at every sign-in. Off: the mapping applies only when the user is created.
SyncRole bool `json:"sync_role"`
// UnmatchedRole Role for users without a matching group; `none` refuses the sign-in.
UnmatchedRole OidcUnmatchedRole `json:"unmatched_role"`
UpdatedAt nullable.Nullable[time.Time] `json:"updated_at,omitempty"`
Warnings []OidcWarning `json:"warnings"`
}
OidcSettings defines model for OidcSettings.
type OidcSettingsBase ¶
type OidcSettingsBase struct {
ClientId string `json:"client_id"`
// ClientSecretExpiresOn Optional expiry date of the client secret; the OIDC settings warn within `oidc.secret_expiry_lead`.
ClientSecretExpiresOn nullable.Nullable[openapi_types.Date] `json:"client_secret_expires_on,omitempty"`
// DisplayName Provider name for the button "Sign in with {display_name}". Defaults to the host of the issuer URL; a read leaves it out while the default applies, and an empty value returns to the default.
DisplayName *string `json:"display_name,omitempty"`
Enabled bool `json:"enabled"`
GroupMappings []OidcGroupMapping `json:"group_mappings"`
GroupsClaim string `json:"groups_claim"`
IssuerUrl string `json:"issuer_url"`
// Scopes Scopes requested at sign-in and linking. Muster always adds `openid`, and `offline_access` when the IdP's discovery lists it in `scopes_supported` or publishes no `scopes_supported`; when Muster requests it, allow `offline_access` for the Muster client at the IdP. Without an offline token users are not re-checked in the background, OIDC sessions end after `auth.oidc_fallback_session_lifetime`, and Personal access tokens follow `auth.oidc_token_grace`. The connection check shows the scopes a sign-in requests.
Scopes *[]string `json:"scopes,omitempty"`
SkipTotpWithIdpMfa bool `json:"skip_totp_with_idp_mfa"`
// SyncRole On: the identity provider decides the Role at every sign-in. Off: the mapping applies only when the user is created.
SyncRole bool `json:"sync_role"`
// UnmatchedRole Role for users without a matching group; `none` refuses the sign-in.
UnmatchedRole OidcUnmatchedRole `json:"unmatched_role"`
}
OidcSettingsBase defines model for OidcSettingsBase.
type OidcSettingsInput ¶
type OidcSettingsInput struct {
ClientId string `json:"client_id"`
// ClientSecret Write-only Secret. Omit to keep the stored one.
ClientSecret *string `json:"client_secret,omitempty"`
// ClientSecretExpiresOn Optional expiry date of the client secret; the OIDC settings warn within `oidc.secret_expiry_lead`.
ClientSecretExpiresOn nullable.Nullable[openapi_types.Date] `json:"client_secret_expires_on,omitempty"`
// DisplayName Provider name for the button "Sign in with {display_name}". Defaults to the host of the issuer URL; a read leaves it out while the default applies, and an empty value returns to the default.
DisplayName *string `json:"display_name,omitempty"`
Enabled bool `json:"enabled"`
GroupMappings []OidcGroupMapping `json:"group_mappings"`
GroupsClaim string `json:"groups_claim"`
IssuerUrl string `json:"issuer_url"`
// Proxy Per-client proxy as written. Omitting `password` keeps the stored one; `null` clears it.
Proxy ProxyConfigInput `json:"proxy"`
// Scopes Scopes requested at sign-in and linking. Muster always adds `openid`, and `offline_access` when the IdP's discovery lists it in `scopes_supported` or publishes no `scopes_supported`; when Muster requests it, allow `offline_access` for the Muster client at the IdP. Without an offline token users are not re-checked in the background, OIDC sessions end after `auth.oidc_fallback_session_lifetime`, and Personal access tokens follow `auth.oidc_token_grace`. The connection check shows the scopes a sign-in requests.
Scopes *[]string `json:"scopes,omitempty"`
SkipTotpWithIdpMfa bool `json:"skip_totp_with_idp_mfa"`
// SyncRole On: the identity provider decides the Role at every sign-in. Off: the mapping applies only when the user is created.
SyncRole bool `json:"sync_role"`
// UnmatchedRole Role for users without a matching group; `none` refuses the sign-in.
UnmatchedRole OidcUnmatchedRole `json:"unmatched_role"`
}
OidcSettingsInput defines model for OidcSettingsInput.
type OidcUnmatchedRole ¶
type OidcUnmatchedRole string
OidcUnmatchedRole Role for users without a matching group; `none` refuses the sign-in.
const ( OidcUnmatchedRoleNone OidcUnmatchedRole = "none" OidcUnmatchedRoleResponder OidcUnmatchedRole = "responder" OidcUnmatchedRoleViewer OidcUnmatchedRole = "viewer" )
Defines values for OidcUnmatchedRole.
func (OidcUnmatchedRole) Valid ¶
func (e OidcUnmatchedRole) Valid() bool
Valid indicates whether the value is a known member of the OidcUnmatchedRole enum.
type OidcWarning ¶
type OidcWarning struct {
ExpiresOn nullable.Nullable[openapi_types.Date] `json:"expires_on,omitempty"`
// Kind `nobody_can_sign_in`: the mapping is empty and unmatched users get no Role. `groups_claim_missing`: no sign-in has carried the groups claim yet, so group mappings have not matched anyone yet: no sign-in has seen it in an ID token or userinfo since the groups claim, the issuer, the client ID or the scopes last changed, and the latest check found discovery not advertising it. `secret_expiring`: see `expires_on`. `last_admin_kept`: Role sync left `user` as Admin because they are the last active Admin, although the identity provider maps them to `role`.
Kind OidcWarningKind `json:"kind"`
// Role For `last_admin_kept`, the Role the identity provider maps the user to.
Role *RoleName `json:"role,omitempty"`
// User For `last_admin_kept`, the Admin whose Role sync was not applied.
User *UserRef `json:"user,omitempty"`
}
OidcWarning defines model for OidcWarning.
type OidcWarningKind ¶
type OidcWarningKind string
OidcWarningKind `nobody_can_sign_in`: the mapping is empty and unmatched users get no Role. `groups_claim_missing`: no sign-in has carried the groups claim yet, so group mappings have not matched anyone yet: no sign-in has seen it in an ID token or userinfo since the groups claim, the issuer, the client ID or the scopes last changed, and the latest check found discovery not advertising it. `secret_expiring`: see `expires_on`. `last_admin_kept`: Role sync left `user` as Admin because they are the last active Admin, although the identity provider maps them to `role`.
const ( GroupsClaimMissing OidcWarningKind = "groups_claim_missing" LastAdminKept OidcWarningKind = "last_admin_kept" NobodyCanSignIn OidcWarningKind = "nobody_can_sign_in" SecretExpiring OidcWarningKind = "secret_expiring" )
Defines values for OidcWarningKind.
func (OidcWarningKind) Valid ¶
func (e OidcWarningKind) Valid() bool
Valid indicates whether the value is a known member of the OidcWarningKind enum.
type Organization ¶
type Organization struct {
CriticalIsUrgent bool `json:"critical_is_urgent"`
// Etag The same value as the `ETag` header; send it as `If-Match` on the next update. Lets a client update an item of a list without reading it again.
Etag *string `json:"etag,omitempty"`
// Id Opaque public identifier (`public_id`): a type prefix of one or two letters followed by 12 random characters of Crockford base32 (`0`–`9` and `A`–`Z` without `I`, `L`, `O` and `U`; 60 bits), such as `AGK7M3QX9P2RTA` for an Alert Group. Prefixes use the same letters and differ per type: `AG` Alert Group, `AE` Audit log entry, `AK` Account link, `AR` Account link request, `CN` Connection, `CR` check run, `DE` delivery event, `DS` Destination, `KR` Link rule, `NE` Note, `NK` Integration token, `NT` Integration, `PT` Personal access token, `RG` Organization, `RQ` record of the Request log, `RT` Route, `SA` Service account, `SN` session, `SR` User, `SS` Stored Snapshot, `ST` Service account token, `TB` Lookup table, `TE` Timeline entry. Responses always carry the canonical upper-case form. Input is case-insensitive and normalized before lookup — `O` reads as `0`, `I` and `L` as `1` — so the pattern also admits lower case and those letters. People refer to Alert Groups by `#N`, never by `public_id`.
Id PublicId `json:"id"`
InstanceLabels []string `json:"instance_labels"`
Name string `json:"name"`
// OidcTokenGraceSeconds `auth.oidc_token_grace` (default 7 days), only for accounts that sign in through OIDC and for which the IdP granted no offline token: their Personal access tokens work while the owner's last OIDC sign-in is no older than this, and otherwise get `401` with `oidc_recheck_required` until the owner signs in through OIDC again. Accounts with an offline token are re-checked in the background instead and have no such limit. Service account tokens are not affected. Edited on Organization → Security.
OidcTokenGraceSeconds int `json:"oidc_token_grace_seconds"`
OutgoingHeartbeat struct {
// Proxy Per-client proxy as read. The password is a Secret.
Proxy ProxyConfig `json:"proxy"`
// UrlStatus What a read shows instead of a Secret. The value itself is never returned.
UrlStatus SecretStatus `json:"url_status"`
} `json:"outgoing_heartbeat"`
// Retention Retention periods in days, from 1 to 36500 (100 years). `alert_group_summaries_days` must be at least `alert_details_days`: details are always removed before the summary rows they belong to, and an update that breaks this gets `422` with `retention_order`. Details are the Alerts inside Alert Groups, Timeline entries and delivery events; Notes are not details: they are kept with the summary rows and deleted with them.
Retention RetentionSettings `json:"retention"`
// SeverityLabel Label that carries severity.
SeverityLabel string `json:"severity_label"`
// SeverityMapping Values of the severity label mapped to Severity levels. Unmapped values count as warning.
SeverityMapping []SeverityMappingEntry `json:"severity_mapping"`
SeverityStyles []SeverityLevelStyle `json:"severity_styles"`
// TimeZone IANA time zone used for times in messages.
TimeZone string `json:"time_zone"`
// TotpRequired Who must enrol TOTP. `local_users` covers every account that has a password; an account that signs in through OIDC — created through OIDC or linked — is not one. A user has one TOTP enrolment, asked at every sign-in and kept when the account changes its sign-in method; on an OIDC sign-in `oidc.skip_totp_with_idp_mfa` may skip it.
TotpRequired TotpPolicy `json:"totp_required"`
// WeekStart A day of the week. As the Organization's `week_start` it is `organization.week_start` (default `monday`), the first day of the week, on which the Snooze preset `week_start` ends at the start of the working day; omit it on an update to keep it.
WeekStart Weekday `json:"week_start"`
// WorkdayStart The start of the working day, `organization.workday_start` (default `09:00`), a time of day `HH:MM` on the 24-hour clock, at which the Snooze presets end in their time zone. Omit it on an update to keep it. A change applies to Snoozes set afterwards and never moves one already set.
WorkdayStart string `json:"workday_start"`
}
Organization defines model for Organization.
type OrganizationBase ¶
type OrganizationBase struct {
CriticalIsUrgent bool `json:"critical_is_urgent"`
InstanceLabels []string `json:"instance_labels"`
Name string `json:"name"`
// OidcTokenGraceSeconds `auth.oidc_token_grace` (default 7 days), only for accounts that sign in through OIDC and for which the IdP granted no offline token: their Personal access tokens work while the owner's last OIDC sign-in is no older than this, and otherwise get `401` with `oidc_recheck_required` until the owner signs in through OIDC again. Accounts with an offline token are re-checked in the background instead and have no such limit. Service account tokens are not affected. Edited on Organization → Security.
OidcTokenGraceSeconds int `json:"oidc_token_grace_seconds"`
// Retention Retention periods in days, from 1 to 36500 (100 years). `alert_group_summaries_days` must be at least `alert_details_days`: details are always removed before the summary rows they belong to, and an update that breaks this gets `422` with `retention_order`. Details are the Alerts inside Alert Groups, Timeline entries and delivery events; Notes are not details: they are kept with the summary rows and deleted with them.
Retention RetentionSettings `json:"retention"`
// SeverityLabel Label that carries severity.
SeverityLabel string `json:"severity_label"`
// SeverityMapping Values of the severity label mapped to Severity levels. Unmapped values count as warning.
SeverityMapping []SeverityMappingEntry `json:"severity_mapping"`
SeverityStyles []SeverityLevelStyle `json:"severity_styles"`
// TimeZone IANA time zone used for times in messages.
TimeZone string `json:"time_zone"`
// TotpRequired Who must enrol TOTP. `local_users` covers every account that has a password; an account that signs in through OIDC — created through OIDC or linked — is not one. A user has one TOTP enrolment, asked at every sign-in and kept when the account changes its sign-in method; on an OIDC sign-in `oidc.skip_totp_with_idp_mfa` may skip it.
TotpRequired TotpPolicy `json:"totp_required"`
// WeekStart A day of the week. As the Organization's `week_start` it is `organization.week_start` (default `monday`), the first day of the week, on which the Snooze preset `week_start` ends at the start of the working day; omit it on an update to keep it.
WeekStart *Weekday `json:"week_start,omitempty"`
// WorkdayStart The start of the working day, `organization.workday_start` (default `09:00`), a time of day `HH:MM` on the 24-hour clock, at which the Snooze presets end in their time zone. Omit it on an update to keep it. A change applies to Snoozes set afterwards and never moves one already set.
WorkdayStart *string `json:"workday_start,omitempty"`
}
OrganizationBase defines model for OrganizationBase.
type OrganizationInput ¶
type OrganizationInput struct {
CriticalIsUrgent bool `json:"critical_is_urgent"`
InstanceLabels []string `json:"instance_labels"`
Name string `json:"name"`
// OidcTokenGraceSeconds `auth.oidc_token_grace` (default 7 days), only for accounts that sign in through OIDC and for which the IdP granted no offline token: their Personal access tokens work while the owner's last OIDC sign-in is no older than this, and otherwise get `401` with `oidc_recheck_required` until the owner signs in through OIDC again. Accounts with an offline token are re-checked in the background instead and have no such limit. Service account tokens are not affected. Edited on Organization → Security.
OidcTokenGraceSeconds int `json:"oidc_token_grace_seconds"`
OutgoingHeartbeat struct {
// Proxy Per-client proxy as written. Omitting `password` keeps the stored one; `null` clears it.
Proxy ProxyConfigInput `json:"proxy"`
// Url Write-only Secret; such URLs carry tokens. Omit to keep the stored one; `null` clears it.
Url nullable.Nullable[string] `json:"url,omitempty"`
} `json:"outgoing_heartbeat"`
// Retention Retention periods in days, from 1 to 36500 (100 years). `alert_group_summaries_days` must be at least `alert_details_days`: details are always removed before the summary rows they belong to, and an update that breaks this gets `422` with `retention_order`. Details are the Alerts inside Alert Groups, Timeline entries and delivery events; Notes are not details: they are kept with the summary rows and deleted with them.
Retention RetentionSettings `json:"retention"`
// SeverityLabel Label that carries severity.
SeverityLabel string `json:"severity_label"`
// SeverityMapping Values of the severity label mapped to Severity levels. Unmapped values count as warning.
SeverityMapping []SeverityMappingEntry `json:"severity_mapping"`
SeverityStyles []SeverityLevelStyle `json:"severity_styles"`
// TimeZone IANA time zone used for times in messages.
TimeZone string `json:"time_zone"`
// TotpRequired Who must enrol TOTP. `local_users` covers every account that has a password; an account that signs in through OIDC — created through OIDC or linked — is not one. A user has one TOTP enrolment, asked at every sign-in and kept when the account changes its sign-in method; on an OIDC sign-in `oidc.skip_totp_with_idp_mfa` may skip it.
TotpRequired TotpPolicy `json:"totp_required"`
// WeekStart A day of the week. As the Organization's `week_start` it is `organization.week_start` (default `monday`), the first day of the week, on which the Snooze preset `week_start` ends at the start of the working day; omit it on an update to keep it.
WeekStart *Weekday `json:"week_start,omitempty"`
// WorkdayStart The start of the working day, `organization.workday_start` (default `09:00`), a time of day `HH:MM` on the 24-hour clock, at which the Snooze presets end in their time zone. Omit it on an update to keep it. A change applies to Snoozes set afterwards and never moves one already set.
WorkdayStart *string `json:"workday_start,omitempty"`
}
OrganizationInput defines model for OrganizationInput.
type OutboundPolicy ¶
type OutboundPolicy struct {
// Allowed Allowed networks (CIDR), host names and domains.
Allowed []string `json:"allowed"`
// AlwaysBlocked Rules that always apply (link-local, cloud metadata, unspecified and multicast addresses); no allowed entry opens them.
AlwaysBlocked *[]string `json:"always_blocked,omitempty"`
// Denied Denied networks, host names and domains. A denied entry always wins.
Denied []string `json:"denied"`
// Etag The same value as the `ETag` header; send it as `If-Match` on the next update. Lets a client update an item of a list without reading it again.
Etag *string `json:"etag,omitempty"`
Policy OutboundPolicyPolicy `json:"policy"`
}
OutboundPolicy defines model for OutboundPolicy.
type OutboundPolicyPolicy ¶
type OutboundPolicyPolicy string
OutboundPolicyPolicy defines model for OutboundPolicy.Policy.
const ( Standard OutboundPolicyPolicy = "standard" Strict OutboundPolicyPolicy = "strict" )
Defines values for OutboundPolicyPolicy.
func (OutboundPolicyPolicy) Valid ¶
func (e OutboundPolicyPolicy) Valid() bool
Valid indicates whether the value is a known member of the OutboundPolicyPolicy enum.
type OutgoingHeartbeatResult ¶
type OutgoingHeartbeatResult struct {
// Configured False when no URL is set; the page suggests setting one.
Configured bool `json:"configured"`
LastAttemptAt nullable.Nullable[time.Time] `json:"last_attempt_at,omitempty"`
// LastError What failed, in English and without the URL; clients translate `last_error_class` and show this text as its detail.
LastError nullable.Nullable[string] `json:"last_error,omitempty"`
// LastErrorClass Why the last outgoing heartbeat failed; null when it succeeded or was not sent. The URL answered `last_status` and the answer was classified `transient` (a server error, the next interval is the retry), `retry_after` (the URL asked to wait), `fatal` (a client error, such as a wrong URL), `redirect` (Muster follows no redirects) or `unknown`; or there was no answer: `blocked` (the outbound address policy refused the address), `dns`, `connect`, `tls`, `timeout`, `proxy_auth` (the proxy refused its credentials); or Muster could not prepare the request (`internal`, such as a URL it cannot decrypt).
LastErrorClass nullable.Nullable[NullableOutgoingHeartbeatErrorClass] `json:"last_error_class,omitempty"`
LastOk nullable.Nullable[bool] `json:"last_ok,omitempty"`
// LastStatus The status code the URL answered the last failed heartbeat with; null without an answer.
LastStatus nullable.Nullable[int] `json:"last_status,omitempty"`
}
OutgoingHeartbeatResult defines model for OutgoingHeartbeatResult.
type OutgoingWebhookEvent ¶
type OutgoingWebhookEvent struct {
Actor WebhookActor `json:"actor"`
// AlertGroup The current state of the Alert Group when the event was recorded.
AlertGroup WebhookAlertGroup `json:"alert_group"`
// Alerts One element per Alert, by fingerprint.
Alerts []WebhookAlert `json:"alerts"`
// Event One of the lifecycle event names (see `LifecycleEvent`) or `test`, which only a Destination test sends. New names are added within `version` 1; receivers ignore names they do not know.
Event WebhookEventName `json:"event"`
Mentions []WebhookMentionTarget `json:"mentions"`
// Notify True exactly when the event is Loud.
Notify bool `json:"notify"`
OccurredAt time.Time `json:"occurred_at"`
// Sequence The lifecycle event number of the Alert Group, kept across retries. It grows with every lifecycle event of the Alert Group but may have gaps, and for a Destination added to the Route later it does not start at 1; receivers rely only on "greater means newer". 0 on the `test` event.
Sequence int `json:"sequence"`
// Test True only on the `test` event, which carries an example or recent Alert Group and belongs to no Alert Group's order.
Test *bool `json:"test,omitempty"`
Version OutgoingWebhookEventVersion `json:"version"`
}
OutgoingWebhookEvent Body of an events-mode request. The id of the event travels in the `webhook-id` header and is kept across retries. Events of one Alert Group are sent in order, at least once and never collapsed; a greater `sequence` means a newer event of the same Alert Group, and nothing more. New event names and new fields are added within `version` 1; removing a field or changing its meaning needs a new `version`. Receivers must ignore unknown `event` values and unknown fields.
type OutgoingWebhookEventVersion ¶
type OutgoingWebhookEventVersion int
OutgoingWebhookEventVersion defines model for OutgoingWebhookEvent.Version.
const (
OutgoingWebhookEventVersionN1 OutgoingWebhookEventVersion = 1
)
Defines values for OutgoingWebhookEventVersion.
func (OutgoingWebhookEventVersion) Valid ¶
func (e OutgoingWebhookEventVersion) Valid() bool
Valid indicates whether the value is a known member of the OutgoingWebhookEventVersion enum.
type PasswordChange ¶
type PasswordChange struct {
CurrentPassword *string `json:"current_password,omitempty"`
// NewPassword At least `auth.password_min_length` characters; a shorter one gets `422` with `too_short`.
NewPassword *string `json:"new_password,omitempty"`
}
PasswordChange defines model for PasswordChange.
type PasswordSetup ¶
type PasswordSetup struct {
// Password At least `auth.password_min_length` characters; a shorter one gets `422` with `too_short`.
Password *string `json:"password,omitempty"`
// Token The token from the setup link.
Token *string `json:"token,omitempty"`
}
PasswordSetup defines model for PasswordSetup.
type PasswordSetupLink ¶
PasswordSetupLink Single-use link the Admin hands over; Muster sends no email. The token is in the URL fragment (`<public url>/password-setup#token=<token>`), so it is not sent to any server until the page posts it.
type PayloadTooLarge ¶
type PayloadTooLarge = Problem
PayloadTooLarge RFC 9457 problem details, served as `application/problem+json`. `type` is a stable URI under `https://muster-io.github.io/muster/problems/`; clients branch on `type`, `code` and `errors[].code`, never on `title` or `detail`. Validation errors raised by the request-validation middleware and by the strict server are mapped to this schema by one function. Every `code` is listed in `x-problem-codes`.
type Permission ¶
type Permission string
Permission One thing a Role allows, named `<resource>:<verb>`. Every operation lists the Permission it needs in `x-permission`. A Personal access token can only narrow its owner's Permissions; a Service account has its Role's Permissions.
| Permission | Admin | Responder | Viewer | |---|---|---|---| | `alert-groups:read`, `alerts:read` | yes | yes | yes | | `integrations:read`, `routes:read`, `connections:read`, `destinations:read`, `link-rules:read`, `lookup-tables:read` (Secrets masked) | yes | yes | yes | | `alert-groups:acknowledge` (also "Still on it"), `alert-groups:resolve`, `alert-groups:snooze`, `alert-groups:note` | yes | yes | no | | `integrations:write`, `routes:write`, `connections:write`, `destinations:write`, `destinations:test`, `link-rules:write`, `lookup-tables:write`, `templates:preview` | yes | no | no | | `stored-snapshots:read` | yes | no | no | | `users:read`, `users:write`, `oidc:read`, `oidc:write`, `service-accounts:read`, `service-accounts:write`, `organization:read`, `organization:write` | yes | no | no | | `audit-log:read`, `system-status:read` | yes | no | no |
`organization:read` covers the settings pages only Admins see (outbound address policy, Keyring status, severity values seen). The basic read of the `organization` resource needs no Permission.
The special values `authenticated` (any signed-in identity: own profile, TOTP, Account links, Personal access tokens, the basic `organization` read, system notices, live updates), `integration-token` (ingestion and Heartbeat only) and `none` (public, or authenticated by the request itself, such as a signed messenger callback) appear only in `x-permission`.
const ( AlertGroupsAcknowledge Permission = "alert-groups:acknowledge" AlertGroupsNote Permission = "alert-groups:note" AlertGroupsRead Permission = "alert-groups:read" AlertGroupsResolve Permission = "alert-groups:resolve" AlertGroupsSnooze Permission = "alert-groups:snooze" AlertsRead Permission = "alerts:read" AuditLogRead Permission = "audit-log:read" ConnectionsRead Permission = "connections:read" ConnectionsWrite Permission = "connections:write" DestinationsRead Permission = "destinations:read" DestinationsTest Permission = "destinations:test" DestinationsWrite Permission = "destinations:write" IntegrationsRead Permission = "integrations:read" IntegrationsWrite Permission = "integrations:write" LinkRulesRead Permission = "link-rules:read" LinkRulesWrite Permission = "link-rules:write" LookupTablesRead Permission = "lookup-tables:read" LookupTablesWrite Permission = "lookup-tables:write" OidcRead Permission = "oidc:read" OidcWrite Permission = "oidc:write" OrganizationRead Permission = "organization:read" OrganizationWrite Permission = "organization:write" RoutesRead Permission = "routes:read" RoutesWrite Permission = "routes:write" ServiceAccountsRead Permission = "service-accounts:read" ServiceAccountsWrite Permission = "service-accounts:write" StoredSnapshotsRead Permission = "stored-snapshots:read" SystemStatusRead Permission = "system-status:read" TemplatesPreview Permission = "templates:preview" UsersRead Permission = "users:read" UsersWrite Permission = "users:write" )
Defines values for Permission.
func (Permission) Valid ¶
func (e Permission) Valid() bool
Valid indicates whether the value is a known member of the Permission enum.
type PersonalAccessToken ¶
type PersonalAccessToken struct {
CreatedAt time.Time `json:"created_at"`
// ExpiresAt Null means the token never expires; the UI warns.
ExpiresAt nullable.Nullable[time.Time] `json:"expires_at,omitempty"`
// Id Opaque public identifier (`public_id`): a type prefix of one or two letters followed by 12 random characters of Crockford base32 (`0`–`9` and `A`–`Z` without `I`, `L`, `O` and `U`; 60 bits), such as `AGK7M3QX9P2RTA` for an Alert Group. Prefixes use the same letters and differ per type: `AG` Alert Group, `AE` Audit log entry, `AK` Account link, `AR` Account link request, `CN` Connection, `CR` check run, `DE` delivery event, `DS` Destination, `KR` Link rule, `NE` Note, `NK` Integration token, `NT` Integration, `PT` Personal access token, `RG` Organization, `RQ` record of the Request log, `RT` Route, `SA` Service account, `SN` session, `SR` User, `SS` Stored Snapshot, `ST` Service account token, `TB` Lookup table, `TE` Timeline entry. Responses always carry the canonical upper-case form. Input is case-insensitive and normalized before lookup — `O` reads as `0`, `I` and `L` as `1` — so the pattern also admits lower case and those letters. People refer to Alert Groups by `#N`, never by `public_id`.
Id PublicId `json:"id"`
LastUsedAddress nullable.Nullable[string] `json:"last_used_address,omitempty"`
LastUsedAt nullable.Nullable[time.Time] `json:"last_used_at,omitempty"`
Name string `json:"name"`
Permissions []Permission `json:"permissions"`
}
PersonalAccessToken defines model for PersonalAccessToken.
type PersonalAccessTokenCreate ¶
type PersonalAccessTokenCreate struct {
ExpiresAt nullable.Nullable[time.Time] `json:"expires_at,omitempty"`
Name string `json:"name"`
// Permissions Must be a subset of the Permissions the caller holds.
Permissions []Permission `json:"permissions"`
}
PersonalAccessTokenCreate defines model for PersonalAccessTokenCreate.
type PersonalAccessTokenCreated ¶
type PersonalAccessTokenCreated struct {
Token PersonalAccessToken `json:"token"`
// Value The token, starting with `mstr_pat_`. Shown once.
Value string `json:"value"`
}
PersonalAccessTokenCreated defines model for PersonalAccessTokenCreated.
type PersonalAccessTokenList ¶
type PersonalAccessTokenList struct {
Items []PersonalAccessToken `json:"items"`
}
PersonalAccessTokenList defines model for PersonalAccessTokenList.
type PreconditionFailed ¶
type PreconditionFailed = Problem
PreconditionFailed RFC 9457 problem details, served as `application/problem+json`. `type` is a stable URI under `https://muster-io.github.io/muster/problems/`; clients branch on `type`, `code` and `errors[].code`, never on `title` or `detail`. Validation errors raised by the request-validation middleware and by the strict server are mapped to this schema by one function. Every `code` is listed in `x-problem-codes`.
type PreconditionRequired ¶
type PreconditionRequired = Problem
PreconditionRequired RFC 9457 problem details, served as `application/problem+json`. `type` is a stable URI under `https://muster-io.github.io/muster/problems/`; clients branch on `type`, `code` and `errors[].code`, never on `title` or `detail`. Validation errors raised by the request-validation middleware and by the strict server are mapped to this schema by one function. Every `code` is listed in `x-problem-codes`.
type PreviewDestinationJSONRequestBody ¶
type PreviewDestinationJSONRequestBody = DestinationPreviewRequest
PreviewDestinationJSONRequestBody defines body for PreviewDestination for application/json ContentType.
type PreviewDestinationResponse ¶
type PreviewDestinationResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *DestinationPreview
// ApplicationproblemJSON400 the response for an HTTP 400 `application/problem+json` response
ApplicationproblemJSON400 *BadRequest
// ApplicationproblemJSON401 the response for an HTTP 401 `application/problem+json` response
ApplicationproblemJSON401 *Unauthorized
// ApplicationproblemJSON403 the response for an HTTP 403 `application/problem+json` response
ApplicationproblemJSON403 *Forbidden
// ApplicationproblemJSON404 the response for an HTTP 404 `application/problem+json` response
ApplicationproblemJSON404 *NotFound
// ApplicationproblemJSON422 the response for an HTTP 422 `application/problem+json` response
ApplicationproblemJSON422 *Unprocessable
// ApplicationproblemJSON429 the response for an HTTP 429 `application/problem+json` response
ApplicationproblemJSON429 *TooManyRequests
// ApplicationproblemJSON501 the response for an HTTP 501 `application/problem+json` response
ApplicationproblemJSON501 *NotImplemented
// Headers429 the parsed response headers for an HTTP 429 response
Headers429 *PreviewDestinationResponse429Headers
}
func ParsePreviewDestinationResponse ¶
func ParsePreviewDestinationResponse(rsp *http.Response) (*PreviewDestinationResponse, error)
ParsePreviewDestinationResponse parses an HTTP response from a PreviewDestinationWithResponse call
func (PreviewDestinationResponse) ContentType ¶
func (r PreviewDestinationResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (PreviewDestinationResponse) GetApplicationproblemJSON400 ¶
func (r PreviewDestinationResponse) GetApplicationproblemJSON400() *BadRequest
GetApplicationproblemJSON400 returns the response for an HTTP 400 `application/problem+json` response
func (PreviewDestinationResponse) GetApplicationproblemJSON401 ¶
func (r PreviewDestinationResponse) GetApplicationproblemJSON401() *Unauthorized
GetApplicationproblemJSON401 returns the response for an HTTP 401 `application/problem+json` response
func (PreviewDestinationResponse) GetApplicationproblemJSON403 ¶
func (r PreviewDestinationResponse) GetApplicationproblemJSON403() *Forbidden
GetApplicationproblemJSON403 returns the response for an HTTP 403 `application/problem+json` response
func (PreviewDestinationResponse) GetApplicationproblemJSON404 ¶
func (r PreviewDestinationResponse) GetApplicationproblemJSON404() *NotFound
GetApplicationproblemJSON404 returns the response for an HTTP 404 `application/problem+json` response
func (PreviewDestinationResponse) GetApplicationproblemJSON422 ¶
func (r PreviewDestinationResponse) GetApplicationproblemJSON422() *Unprocessable
GetApplicationproblemJSON422 returns the response for an HTTP 422 `application/problem+json` response
func (PreviewDestinationResponse) GetApplicationproblemJSON429 ¶
func (r PreviewDestinationResponse) GetApplicationproblemJSON429() *TooManyRequests
GetApplicationproblemJSON429 returns the response for an HTTP 429 `application/problem+json` response
func (PreviewDestinationResponse) GetApplicationproblemJSON501 ¶
func (r PreviewDestinationResponse) GetApplicationproblemJSON501() *NotImplemented
GetApplicationproblemJSON501 returns the response for an HTTP 501 `application/problem+json` response
func (PreviewDestinationResponse) GetBody ¶
func (r PreviewDestinationResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (PreviewDestinationResponse) GetJSON200 ¶
func (r PreviewDestinationResponse) GetJSON200() *DestinationPreview
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (PreviewDestinationResponse) Status ¶
func (r PreviewDestinationResponse) Status() string
Status returns HTTPResponse.Status
func (PreviewDestinationResponse) StatusCode ¶
func (r PreviewDestinationResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type PreviewDestinationResponse429Headers ¶
type PreviewDestinationResponse429Headers struct {
RetryAfter *int
}
PreviewDestinationResponse429Headers the declared response headers of an HTTP 429 response for PreviewDestination
type PreviewGroupKeyJSONRequestBody ¶
type PreviewGroupKeyJSONRequestBody = GroupKeyPreviewRequest
PreviewGroupKeyJSONRequestBody defines body for PreviewGroupKey for application/json ContentType.
type PreviewGroupKeyResponse ¶
type PreviewGroupKeyResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *GroupKeyPreview
// ApplicationproblemJSON400 the response for an HTTP 400 `application/problem+json` response
ApplicationproblemJSON400 *BadRequest
// ApplicationproblemJSON401 the response for an HTTP 401 `application/problem+json` response
ApplicationproblemJSON401 *Unauthorized
// ApplicationproblemJSON403 the response for an HTTP 403 `application/problem+json` response
ApplicationproblemJSON403 *Forbidden
// ApplicationproblemJSON404 the response for an HTTP 404 `application/problem+json` response
ApplicationproblemJSON404 *NotFound
// ApplicationproblemJSON422 the response for an HTTP 422 `application/problem+json` response
ApplicationproblemJSON422 *Unprocessable
// ApplicationproblemJSON429 the response for an HTTP 429 `application/problem+json` response
ApplicationproblemJSON429 *TooManyRequests
// Headers429 the parsed response headers for an HTTP 429 response
Headers429 *PreviewGroupKeyResponse429Headers
}
func ParsePreviewGroupKeyResponse ¶
func ParsePreviewGroupKeyResponse(rsp *http.Response) (*PreviewGroupKeyResponse, error)
ParsePreviewGroupKeyResponse parses an HTTP response from a PreviewGroupKeyWithResponse call
func (PreviewGroupKeyResponse) ContentType ¶
func (r PreviewGroupKeyResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (PreviewGroupKeyResponse) GetApplicationproblemJSON400 ¶
func (r PreviewGroupKeyResponse) GetApplicationproblemJSON400() *BadRequest
GetApplicationproblemJSON400 returns the response for an HTTP 400 `application/problem+json` response
func (PreviewGroupKeyResponse) GetApplicationproblemJSON401 ¶
func (r PreviewGroupKeyResponse) GetApplicationproblemJSON401() *Unauthorized
GetApplicationproblemJSON401 returns the response for an HTTP 401 `application/problem+json` response
func (PreviewGroupKeyResponse) GetApplicationproblemJSON403 ¶
func (r PreviewGroupKeyResponse) GetApplicationproblemJSON403() *Forbidden
GetApplicationproblemJSON403 returns the response for an HTTP 403 `application/problem+json` response
func (PreviewGroupKeyResponse) GetApplicationproblemJSON404 ¶
func (r PreviewGroupKeyResponse) GetApplicationproblemJSON404() *NotFound
GetApplicationproblemJSON404 returns the response for an HTTP 404 `application/problem+json` response
func (PreviewGroupKeyResponse) GetApplicationproblemJSON422 ¶
func (r PreviewGroupKeyResponse) GetApplicationproblemJSON422() *Unprocessable
GetApplicationproblemJSON422 returns the response for an HTTP 422 `application/problem+json` response
func (PreviewGroupKeyResponse) GetApplicationproblemJSON429 ¶
func (r PreviewGroupKeyResponse) GetApplicationproblemJSON429() *TooManyRequests
GetApplicationproblemJSON429 returns the response for an HTTP 429 `application/problem+json` response
func (PreviewGroupKeyResponse) GetBody ¶
func (r PreviewGroupKeyResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (PreviewGroupKeyResponse) GetJSON200 ¶
func (r PreviewGroupKeyResponse) GetJSON200() *GroupKeyPreview
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (PreviewGroupKeyResponse) Status ¶
func (r PreviewGroupKeyResponse) Status() string
Status returns HTTPResponse.Status
func (PreviewGroupKeyResponse) StatusCode ¶
func (r PreviewGroupKeyResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type PreviewGroupKeyResponse429Headers ¶
type PreviewGroupKeyResponse429Headers struct {
RetryAfter *int
}
PreviewGroupKeyResponse429Headers the declared response headers of an HTTP 429 response for PreviewGroupKey
type PreviewTemplateJSONRequestBody ¶
type PreviewTemplateJSONRequestBody = TemplatePreviewRequest
PreviewTemplateJSONRequestBody defines body for PreviewTemplate for application/json ContentType.
type PreviewTemplateResponse ¶
type PreviewTemplateResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *TemplatePreviewResult
// ApplicationproblemJSON400 the response for an HTTP 400 `application/problem+json` response
ApplicationproblemJSON400 *BadRequest
// ApplicationproblemJSON401 the response for an HTTP 401 `application/problem+json` response
ApplicationproblemJSON401 *Unauthorized
// ApplicationproblemJSON403 the response for an HTTP 403 `application/problem+json` response
ApplicationproblemJSON403 *Forbidden
// ApplicationproblemJSON404 the response for an HTTP 404 `application/problem+json` response
ApplicationproblemJSON404 *NotFound
// ApplicationproblemJSON429 the response for an HTTP 429 `application/problem+json` response
ApplicationproblemJSON429 *TooManyRequests
// Headers429 the parsed response headers for an HTTP 429 response
Headers429 *PreviewTemplateResponse429Headers
}
func ParsePreviewTemplateResponse ¶
func ParsePreviewTemplateResponse(rsp *http.Response) (*PreviewTemplateResponse, error)
ParsePreviewTemplateResponse parses an HTTP response from a PreviewTemplateWithResponse call
func (PreviewTemplateResponse) ContentType ¶
func (r PreviewTemplateResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (PreviewTemplateResponse) GetApplicationproblemJSON400 ¶
func (r PreviewTemplateResponse) GetApplicationproblemJSON400() *BadRequest
GetApplicationproblemJSON400 returns the response for an HTTP 400 `application/problem+json` response
func (PreviewTemplateResponse) GetApplicationproblemJSON401 ¶
func (r PreviewTemplateResponse) GetApplicationproblemJSON401() *Unauthorized
GetApplicationproblemJSON401 returns the response for an HTTP 401 `application/problem+json` response
func (PreviewTemplateResponse) GetApplicationproblemJSON403 ¶
func (r PreviewTemplateResponse) GetApplicationproblemJSON403() *Forbidden
GetApplicationproblemJSON403 returns the response for an HTTP 403 `application/problem+json` response
func (PreviewTemplateResponse) GetApplicationproblemJSON404 ¶
func (r PreviewTemplateResponse) GetApplicationproblemJSON404() *NotFound
GetApplicationproblemJSON404 returns the response for an HTTP 404 `application/problem+json` response
func (PreviewTemplateResponse) GetApplicationproblemJSON429 ¶
func (r PreviewTemplateResponse) GetApplicationproblemJSON429() *TooManyRequests
GetApplicationproblemJSON429 returns the response for an HTTP 429 `application/problem+json` response
func (PreviewTemplateResponse) GetBody ¶
func (r PreviewTemplateResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (PreviewTemplateResponse) GetJSON200 ¶
func (r PreviewTemplateResponse) GetJSON200() *TemplatePreviewResult
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (PreviewTemplateResponse) Status ¶
func (r PreviewTemplateResponse) Status() string
Status returns HTTPResponse.Status
func (PreviewTemplateResponse) StatusCode ¶
func (r PreviewTemplateResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type PreviewTemplateResponse429Headers ¶
type PreviewTemplateResponse429Headers struct {
RetryAfter *int
}
PreviewTemplateResponse429Headers the declared response headers of an HTTP 429 response for PreviewTemplate
type Problem ¶
type Problem struct {
// AttemptsRemaining Set on the `link_code_invalid` refusal of `confirmMattermostLink`, `confirmBridgeLink` and `confirmSlackLink`; the attempts left for the code of the link request, 0 once it can no longer be used (void, used or expired, or after the last wrong code).
AttemptsRemaining *int `json:"attempts_remaining,omitempty"`
// Code Stable machine code that refines `type`, listed per type in `x-problem-codes`. Clients branch on `type`, `code` and `errors[].code`, never on `title` or `detail`.
Code *string `json:"code,omitempty"`
// Detail Human explanation of this occurrence; may change between releases.
Detail *string `json:"detail,omitempty"`
// Errors Field-level errors. Present for `validation-failed`.
Errors *[]ProblemError `json:"errors,omitempty"`
// Instance Request path that produced the problem.
Instance *string `json:"instance,omitempty"`
// LinkRules Set on the `in_use` refusal of a Lookup table (`updateLookupTable`, `deleteLookupTable`); the Link rules whose URL templates read the table by its name, in the order they were created.
LinkRules *[]EntityRef `json:"link_rules,omitempty"`
// OpenAlertGroupCount Set on `route-has-open-alert-groups`; the number of open Alert Groups that block the deletion.
OpenAlertGroupCount *int `json:"open_alert_group_count,omitempty"`
// RelatedAlertGroup Set on refusals that name another Alert Group, such as an Unresolve refused because a newer open Alert Group exists.
RelatedAlertGroup *AlertGroupRef `json:"related_alert_group,omitempty"`
// RetryAfterSeconds Set on `rate-limited`; equals the `Retry-After` header.
RetryAfterSeconds *int `json:"retry_after_seconds,omitempty"`
// Status HTTP status code.
Status int `json:"status"`
// Title Short human summary; may change between releases.
Title string `json:"title"`
// Type Stable problem type URI.
Type string `json:"type"`
}
Problem RFC 9457 problem details, served as `application/problem+json`. `type` is a stable URI under `https://muster-io.github.io/muster/problems/`; clients branch on `type`, `code` and `errors[].code`, never on `title` or `detail`. Validation errors raised by the request-validation middleware and by the strict server are mapped to this schema by one function. Every `code` is listed in `x-problem-codes`.
type ProblemError ¶
type ProblemError struct {
// CheckCode Set on `destination_check_failed`; the code of the failing check, as in `DestinationCheckItem`, which clients translate, with `detail` as its English text.
CheckCode nullable.Nullable[NullableDestinationCheckCode] `json:"check_code,omitempty"`
// Code Stable code such as `required`, `invalid_format`, `unknown_id`, `too_long`, `too_short`, `out_of_range`, `invalid_regex`, `template_syntax`, `unknown_function`, `duplicate`, `unsupported`.
Code string `json:"code"`
// Column Column of a template error.
Column *int `json:"column,omitempty"`
// Detail Human explanation; may change between releases.
Detail *string `json:"detail,omitempty"`
// Line Line of a template error.
Line *int `json:"line,omitempty"`
// MissingScopes Set on `destination_check_failed` with the `check_code` `missing_scope` (Slack), omitted otherwise — the scopes Slack named as needed, as in `DestinationCheckItem`, which clients name in their own words; `detail` names them in English.
MissingScopes *[]string `json:"missing_scopes,omitempty"`
// Pointer RFC 6901 JSON Pointer to the offending field in the request body, or “ for the whole body. Query and path parameters use `/query/<name>` and `/path/<name>`.
Pointer string `json:"pointer"`
}
ProblemError defines model for ProblemError.
type ProxyConfig ¶
type ProxyConfig struct {
// Address `host:port`.
Address *string `json:"address,omitempty"`
Enabled bool `json:"enabled"`
// PasswordStatus What a read shows instead of a Secret. The value itself is never returned.
PasswordStatus *SecretStatus `json:"password_status,omitempty"`
Type *ProxyType `json:"type,omitempty"`
Username nullable.Nullable[string] `json:"username,omitempty"`
}
ProxyConfig Per-client proxy as read. The password is a Secret.
type ProxyConfigInput ¶
type ProxyConfigInput struct {
// Address `host:port`; the proxy's own address is checked by the outbound address policy.
Address *string `json:"address,omitempty"`
Enabled bool `json:"enabled"`
// Password Write-only Secret. Omit to keep the stored one; `null` clears it.
Password nullable.Nullable[string] `json:"password,omitempty"`
Type *ProxyType `json:"type,omitempty"`
Username nullable.Nullable[string] `json:"username,omitempty"`
}
ProxyConfigInput Per-client proxy as written. Omitting `password` keeps the stored one; `null` clears it.
type ProxyType ¶
type ProxyType string
ProxyType defines model for ProxyType.
type PublicId ¶
type PublicId = string
PublicId Opaque public identifier (`public_id`): a type prefix of one or two letters followed by 12 random characters of Crockford base32 (`0`–`9` and `A`–`Z` without `I`, `L`, `O` and `U`; 60 bits), such as `AGK7M3QX9P2RTA` for an Alert Group. Prefixes use the same letters and differ per type: `AG` Alert Group, `AE` Audit log entry, `AK` Account link, `AR` Account link request, `CN` Connection, `CR` check run, `DE` delivery event, `DS` Destination, `KR` Link rule, `NE` Note, `NK` Integration token, `NT` Integration, `PT` Personal access token, `RG` Organization, `RQ` record of the Request log, `RT` Route, `SA` Service account, `SN` session, `SR` User, `SS` Stored Snapshot, `ST` Service account token, `TB` Lookup table, `TE` Timeline entry. Responses always carry the canonical upper-case form. Input is case-insensitive and normalized before lookup — `O` reads as `0`, `I` and `L` as `1` — so the pattern also admits lower case and those letters. People refer to Alert Groups by `#N`, never by `public_id`.
type QueueDepth ¶
QueueDepth defines model for QueueDepth.
type RegenerateTotpRecoveryCodesJSONRequestBody ¶
type RegenerateTotpRecoveryCodesJSONRequestBody = TotpCode
RegenerateTotpRecoveryCodesJSONRequestBody defines body for RegenerateTotpRecoveryCodes for application/json ContentType.
type RegenerateTotpRecoveryCodesResponse ¶
type RegenerateTotpRecoveryCodesResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *TotpRecoveryCodes
// ApplicationproblemJSON400 the response for an HTTP 400 `application/problem+json` response
ApplicationproblemJSON400 *BadRequest
// ApplicationproblemJSON401 the response for an HTTP 401 `application/problem+json` response
ApplicationproblemJSON401 *Unauthorized
// ApplicationproblemJSON403 the response for an HTTP 403 `application/problem+json` response
ApplicationproblemJSON403 *Forbidden
// ApplicationproblemJSON409 the response for an HTTP 409 `application/problem+json` response
ApplicationproblemJSON409 *Conflict
// ApplicationproblemJSON422 the response for an HTTP 422 `application/problem+json` response
ApplicationproblemJSON422 *Unprocessable
// ApplicationproblemJSON429 the response for an HTTP 429 `application/problem+json` response
ApplicationproblemJSON429 *TooManyRequests
// Headers429 the parsed response headers for an HTTP 429 response
Headers429 *RegenerateTotpRecoveryCodesResponse429Headers
}
func ParseRegenerateTotpRecoveryCodesResponse ¶
func ParseRegenerateTotpRecoveryCodesResponse(rsp *http.Response) (*RegenerateTotpRecoveryCodesResponse, error)
ParseRegenerateTotpRecoveryCodesResponse parses an HTTP response from a RegenerateTotpRecoveryCodesWithResponse call
func (RegenerateTotpRecoveryCodesResponse) ContentType ¶
func (r RegenerateTotpRecoveryCodesResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (RegenerateTotpRecoveryCodesResponse) GetApplicationproblemJSON400 ¶
func (r RegenerateTotpRecoveryCodesResponse) GetApplicationproblemJSON400() *BadRequest
GetApplicationproblemJSON400 returns the response for an HTTP 400 `application/problem+json` response
func (RegenerateTotpRecoveryCodesResponse) GetApplicationproblemJSON401 ¶
func (r RegenerateTotpRecoveryCodesResponse) GetApplicationproblemJSON401() *Unauthorized
GetApplicationproblemJSON401 returns the response for an HTTP 401 `application/problem+json` response
func (RegenerateTotpRecoveryCodesResponse) GetApplicationproblemJSON403 ¶
func (r RegenerateTotpRecoveryCodesResponse) GetApplicationproblemJSON403() *Forbidden
GetApplicationproblemJSON403 returns the response for an HTTP 403 `application/problem+json` response
func (RegenerateTotpRecoveryCodesResponse) GetApplicationproblemJSON409 ¶
func (r RegenerateTotpRecoveryCodesResponse) GetApplicationproblemJSON409() *Conflict
GetApplicationproblemJSON409 returns the response for an HTTP 409 `application/problem+json` response
func (RegenerateTotpRecoveryCodesResponse) GetApplicationproblemJSON422 ¶
func (r RegenerateTotpRecoveryCodesResponse) GetApplicationproblemJSON422() *Unprocessable
GetApplicationproblemJSON422 returns the response for an HTTP 422 `application/problem+json` response
func (RegenerateTotpRecoveryCodesResponse) GetApplicationproblemJSON429 ¶
func (r RegenerateTotpRecoveryCodesResponse) GetApplicationproblemJSON429() *TooManyRequests
GetApplicationproblemJSON429 returns the response for an HTTP 429 `application/problem+json` response
func (RegenerateTotpRecoveryCodesResponse) GetBody ¶
func (r RegenerateTotpRecoveryCodesResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (RegenerateTotpRecoveryCodesResponse) GetJSON200 ¶
func (r RegenerateTotpRecoveryCodesResponse) GetJSON200() *TotpRecoveryCodes
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (RegenerateTotpRecoveryCodesResponse) Status ¶
func (r RegenerateTotpRecoveryCodesResponse) Status() string
Status returns HTTPResponse.Status
func (RegenerateTotpRecoveryCodesResponse) StatusCode ¶
func (r RegenerateTotpRecoveryCodesResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type RegenerateTotpRecoveryCodesResponse429Headers ¶
type RegenerateTotpRecoveryCodesResponse429Headers struct {
RetryAfter *int
}
RegenerateTotpRecoveryCodesResponse429Headers the declared response headers of an HTTP 429 response for RegenerateTotpRecoveryCodes
type RelatedAlertGroup ¶
type RelatedAlertGroup struct {
DurationSeconds nullable.Nullable[int] `json:"duration_seconds,omitempty"`
// Id Opaque public identifier (`public_id`): a type prefix of one or two letters followed by 12 random characters of Crockford base32 (`0`–`9` and `A`–`Z` without `I`, `L`, `O` and `U`; 60 bits), such as `AGK7M3QX9P2RTA` for an Alert Group. Prefixes use the same letters and differ per type: `AG` Alert Group, `AE` Audit log entry, `AK` Account link, `AR` Account link request, `CN` Connection, `CR` check run, `DE` delivery event, `DS` Destination, `KR` Link rule, `NE` Note, `NK` Integration token, `NT` Integration, `PT` Personal access token, `RG` Organization, `RQ` record of the Request log, `RT` Route, `SA` Service account, `SN` session, `SR` User, `SS` Stored Snapshot, `ST` Service account token, `TB` Lookup table, `TE` Timeline entry. Responses always carry the canonical upper-case form. Input is case-insensitive and normalized before lookup — `O` reads as `0`, `I` and `L` as `1` — so the pattern also admits lower case and those letters. People refer to Alert Groups by `#N`, never by `public_id`.
Id PublicId `json:"id"`
Number int `json:"number"`
Resolution *ResolvedBy `json:"resolution,omitempty"`
StartedAt time.Time `json:"started_at"`
Status AlertGroupStatus `json:"status"`
}
RelatedAlertGroup defines model for RelatedAlertGroup.
type RelatedAlertGroupList ¶
type RelatedAlertGroupList struct {
Items []RelatedAlertGroup `json:"items"`
NextCursor nullable.Nullable[string] `json:"next_cursor"`
}
RelatedAlertGroupList defines model for RelatedAlertGroupList.
type RemindersPolicy ¶
type RemindersPolicy struct {
// CapSeconds Intervals double up to this cap.
CapSeconds int `json:"cap_seconds"`
Enabled bool `json:"enabled"`
FirstIntervalSeconds int `json:"first_interval_seconds"`
}
RemindersPolicy defines model for RemindersPolicy.
type RemoveTotpJSONRequestBody ¶
type RemoveTotpJSONRequestBody = TotpRemoval
RemoveTotpJSONRequestBody defines body for RemoveTotp for application/json ContentType.
type RemoveTotpResponse ¶
type RemoveTotpResponse struct {
Body []byte
HTTPResponse *http.Response
// ApplicationproblemJSON400 the response for an HTTP 400 `application/problem+json` response
ApplicationproblemJSON400 *BadRequest
// ApplicationproblemJSON401 the response for an HTTP 401 `application/problem+json` response
ApplicationproblemJSON401 *Unauthorized
// ApplicationproblemJSON403 the response for an HTTP 403 `application/problem+json` response
ApplicationproblemJSON403 *Forbidden
// ApplicationproblemJSON404 the response for an HTTP 404 `application/problem+json` response
ApplicationproblemJSON404 *NotFound
// ApplicationproblemJSON429 the response for an HTTP 429 `application/problem+json` response
ApplicationproblemJSON429 *TooManyRequests
// Headers429 the parsed response headers for an HTTP 429 response
Headers429 *RemoveTotpResponse429Headers
}
func ParseRemoveTotpResponse ¶
func ParseRemoveTotpResponse(rsp *http.Response) (*RemoveTotpResponse, error)
ParseRemoveTotpResponse parses an HTTP response from a RemoveTotpWithResponse call
func (RemoveTotpResponse) ContentType ¶
func (r RemoveTotpResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (RemoveTotpResponse) GetApplicationproblemJSON400 ¶
func (r RemoveTotpResponse) GetApplicationproblemJSON400() *BadRequest
GetApplicationproblemJSON400 returns the response for an HTTP 400 `application/problem+json` response
func (RemoveTotpResponse) GetApplicationproblemJSON401 ¶
func (r RemoveTotpResponse) GetApplicationproblemJSON401() *Unauthorized
GetApplicationproblemJSON401 returns the response for an HTTP 401 `application/problem+json` response
func (RemoveTotpResponse) GetApplicationproblemJSON403 ¶
func (r RemoveTotpResponse) GetApplicationproblemJSON403() *Forbidden
GetApplicationproblemJSON403 returns the response for an HTTP 403 `application/problem+json` response
func (RemoveTotpResponse) GetApplicationproblemJSON404 ¶
func (r RemoveTotpResponse) GetApplicationproblemJSON404() *NotFound
GetApplicationproblemJSON404 returns the response for an HTTP 404 `application/problem+json` response
func (RemoveTotpResponse) GetApplicationproblemJSON429 ¶
func (r RemoveTotpResponse) GetApplicationproblemJSON429() *TooManyRequests
GetApplicationproblemJSON429 returns the response for an HTTP 429 `application/problem+json` response
func (RemoveTotpResponse) GetBody ¶
func (r RemoveTotpResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (RemoveTotpResponse) Status ¶
func (r RemoveTotpResponse) Status() string
Status returns HTTPResponse.Status
func (RemoveTotpResponse) StatusCode ¶
func (r RemoveTotpResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type RemoveTotpResponse429Headers ¶
type RemoveTotpResponse429Headers struct {
RetryAfter *int
}
RemoveTotpResponse429Headers the declared response headers of an HTTP 429 response for RemoveTotp
type RenderedRequest ¶
type RenderedRequest struct {
Body nullable.Nullable[string] `json:"body,omitempty"`
Headers []HeaderTemplate `json:"headers"`
Method string `json:"method"`
Url string `json:"url"`
}
RenderedRequest A request as it would be or was sent, with Secrets, the Signing secret and tokens masked.
type ReorderRoutesJSONRequestBody ¶
type ReorderRoutesJSONRequestBody = RouteOrder
ReorderRoutesJSONRequestBody defines body for ReorderRoutes for application/json ContentType.
type ReorderRoutesParams ¶
type ReorderRoutesParams struct {
// IfMatch ETag of the representation being replaced, as returned by the last read. A mismatch gets `412`; a missing header gets `428`.
IfMatch IfMatch `json:"If-Match"`
}
ReorderRoutesParams defines parameters for ReorderRoutes.
type ReorderRoutesResponse ¶
type ReorderRoutesResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *RouteList
// ApplicationproblemJSON400 the response for an HTTP 400 `application/problem+json` response
ApplicationproblemJSON400 *BadRequest
// ApplicationproblemJSON401 the response for an HTTP 401 `application/problem+json` response
ApplicationproblemJSON401 *Unauthorized
// ApplicationproblemJSON403 the response for an HTTP 403 `application/problem+json` response
ApplicationproblemJSON403 *Forbidden
// ApplicationproblemJSON409 the response for an HTTP 409 `application/problem+json` response
ApplicationproblemJSON409 *Conflict
// ApplicationproblemJSON412 the response for an HTTP 412 `application/problem+json` response
ApplicationproblemJSON412 *PreconditionFailed
// ApplicationproblemJSON422 the response for an HTTP 422 `application/problem+json` response
ApplicationproblemJSON422 *Unprocessable
// ApplicationproblemJSON428 the response for an HTTP 428 `application/problem+json` response
ApplicationproblemJSON428 *PreconditionRequired
// ApplicationproblemJSON429 the response for an HTTP 429 `application/problem+json` response
ApplicationproblemJSON429 *TooManyRequests
// Headers200 the parsed response headers for an HTTP 200 response
Headers200 *ReorderRoutesResponse200Headers
// Headers429 the parsed response headers for an HTTP 429 response
Headers429 *ReorderRoutesResponse429Headers
}
func ParseReorderRoutesResponse ¶
func ParseReorderRoutesResponse(rsp *http.Response) (*ReorderRoutesResponse, error)
ParseReorderRoutesResponse parses an HTTP response from a ReorderRoutesWithResponse call
func (ReorderRoutesResponse) ContentType ¶
func (r ReorderRoutesResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (ReorderRoutesResponse) GetApplicationproblemJSON400 ¶
func (r ReorderRoutesResponse) GetApplicationproblemJSON400() *BadRequest
GetApplicationproblemJSON400 returns the response for an HTTP 400 `application/problem+json` response
func (ReorderRoutesResponse) GetApplicationproblemJSON401 ¶
func (r ReorderRoutesResponse) GetApplicationproblemJSON401() *Unauthorized
GetApplicationproblemJSON401 returns the response for an HTTP 401 `application/problem+json` response
func (ReorderRoutesResponse) GetApplicationproblemJSON403 ¶
func (r ReorderRoutesResponse) GetApplicationproblemJSON403() *Forbidden
GetApplicationproblemJSON403 returns the response for an HTTP 403 `application/problem+json` response
func (ReorderRoutesResponse) GetApplicationproblemJSON409 ¶
func (r ReorderRoutesResponse) GetApplicationproblemJSON409() *Conflict
GetApplicationproblemJSON409 returns the response for an HTTP 409 `application/problem+json` response
func (ReorderRoutesResponse) GetApplicationproblemJSON412 ¶
func (r ReorderRoutesResponse) GetApplicationproblemJSON412() *PreconditionFailed
GetApplicationproblemJSON412 returns the response for an HTTP 412 `application/problem+json` response
func (ReorderRoutesResponse) GetApplicationproblemJSON422 ¶
func (r ReorderRoutesResponse) GetApplicationproblemJSON422() *Unprocessable
GetApplicationproblemJSON422 returns the response for an HTTP 422 `application/problem+json` response
func (ReorderRoutesResponse) GetApplicationproblemJSON428 ¶
func (r ReorderRoutesResponse) GetApplicationproblemJSON428() *PreconditionRequired
GetApplicationproblemJSON428 returns the response for an HTTP 428 `application/problem+json` response
func (ReorderRoutesResponse) GetApplicationproblemJSON429 ¶
func (r ReorderRoutesResponse) GetApplicationproblemJSON429() *TooManyRequests
GetApplicationproblemJSON429 returns the response for an HTTP 429 `application/problem+json` response
func (ReorderRoutesResponse) GetBody ¶
func (r ReorderRoutesResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (ReorderRoutesResponse) GetJSON200 ¶
func (r ReorderRoutesResponse) GetJSON200() *RouteList
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (ReorderRoutesResponse) Status ¶
func (r ReorderRoutesResponse) Status() string
Status returns HTTPResponse.Status
func (ReorderRoutesResponse) StatusCode ¶
func (r ReorderRoutesResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type ReorderRoutesResponse200Headers ¶
type ReorderRoutesResponse200Headers struct {
ETag *string
}
ReorderRoutesResponse200Headers the declared response headers of an HTTP 200 response for ReorderRoutes
type ReorderRoutesResponse429Headers ¶
type ReorderRoutesResponse429Headers struct {
RetryAfter *int
}
ReorderRoutesResponse429Headers the declared response headers of an HTTP 429 response for ReorderRoutes
type ReplicaStatus ¶
type ReplicaStatus struct {
Id string `json:"id"`
KeyIds []string `json:"key_ids"`
Leader bool `json:"leader"`
RefreshedAt time.Time `json:"refreshed_at"`
}
ReplicaStatus defines model for ReplicaStatus.
type RequestDirection ¶
type RequestDirection string
RequestDirection Whether Muster sent the request (`outbound`) or received it (`inbound`).
const ( Inbound RequestDirection = "inbound" Outbound RequestDirection = "outbound" )
Defines values for RequestDirection.
func (RequestDirection) Valid ¶
func (e RequestDirection) Valid() bool
Valid indicates whether the value is a known member of the RequestDirection enum.
type RequestEditorFn ¶
RequestEditorFn is the function signature for the RequestEditor callback function
type RequestLogList ¶
type RequestLogList struct {
Items []RequestRecordSummary `json:"items"`
NextCursor nullable.Nullable[string] `json:"next_cursor"`
}
RequestLogList defines model for RequestLogList.
type RequestRecord ¶
type RequestRecord struct {
// AlertGroup The Alert Group whose delivery the request made, null for none.
AlertGroup nullable.Nullable[AlertGroupRef] `json:"alert_group"`
// At When the attempt was made, on the business clock.
At time.Time `json:"at"`
// Attempt Which attempt of the request this was, from 1.
Attempt int `json:"attempt"`
// Check The check or test a request belongs to, null for any other request.
Check nullable.Nullable[NullableCheckKind] `json:"check"`
// CheckRun A `public_id` in the format of `PublicId`, or null.
CheckRun nullable.Nullable[NullablePublicId] `json:"check_run"`
// ConnectionId A `public_id` in the format of `PublicId`, or null.
ConnectionId nullable.Nullable[NullablePublicId] `json:"connection_id"`
// Destination The Destination the request concerns, null for none.
Destination nullable.Nullable[DestinationRef] `json:"destination"`
// Direction Whether Muster sent the request (`outbound`) or received it (`inbound`).
Direction RequestDirection `json:"direction"`
// Error Why the attempt failed, masked; null for one that succeeded. Untrusted where it comes from the remote side.
Error nullable.Nullable[string] `json:"error"`
// ErrorClass How the attempt failed, as the outbound package classified it: the answer asked to wait (`retry_after`), was a server error, or the attempt got no answer, such as a refused connection or a timeout (`transient`); the answer was a client error (`fatal`), an answer it could not judge, such as one larger than its limit (`unknown`), or a redirect, which Muster never follows (`redirect`); or the outbound address policy refused the address (`blocked`). Null for an attempt that succeeded.
ErrorClass nullable.Nullable[NullableRequestErrorClass] `json:"error_class"`
// ErrorCode What failed when the attempt got no answer, as the checks name it (`NullableConnectionCheckCode`) — `dns_failed`, `connect_failed`, `tls_failed`, `timeout`, `proxy_refused`, `blocked` or `request_failed`. Null for an attempt that got an answer.
ErrorCode nullable.Nullable[NullableRequestErrorCode] `json:"error_code"`
// Id Opaque public identifier (`public_id`): a type prefix of one or two letters followed by 12 random characters of Crockford base32 (`0`–`9` and `A`–`Z` without `I`, `L`, `O` and `U`; 60 bits), such as `AGK7M3QX9P2RTA` for an Alert Group. Prefixes use the same letters and differ per type: `AG` Alert Group, `AE` Audit log entry, `AK` Account link, `AR` Account link request, `CN` Connection, `CR` check run, `DE` delivery event, `DS` Destination, `KR` Link rule, `NE` Note, `NK` Integration token, `NT` Integration, `PT` Personal access token, `RG` Organization, `RQ` record of the Request log, `RT` Route, `SA` Service account, `SN` session, `SR` User, `SS` Stored Snapshot, `ST` Service account token, `TB` Lookup table, `TE` Timeline entry. Responses always carry the canonical upper-case form. Input is case-insensitive and normalized before lookup — `O` reads as `0`, `I` and `L` as `1` — so the pattern also admits lower case and those letters. People refer to Alert Groups by `#N`, never by `public_id`.
Id PublicId `json:"id"`
LatencyMs int `json:"latency_ms"`
// Method The HTTP method, `WEBSOCKET` for an envelope received over a Slack Socket Mode connection.
Method string `json:"method"`
// Operation The operation as its protocol names it — the Bot API method for Telegram, the Web API method for Slack (`auth.test`, `chat.postMessage`), the `operationId` of the Bridge protocol, the operation of Mattermost's REST API in lower camel case — or for an outgoing webhook `event`, or the request of the template mode (`create`, `update`, `open_thread`, `reply_in_thread`).
Operation string `json:"operation"`
// RequestBody The body as sent, masked, cut to `request_log.body_max` bytes at a character boundary, bytes that are not UTF-8 replaced; untrusted text.
RequestBody string `json:"request_body"`
// RequestBodyBytes The length in bytes of the request body after Secrets are masked and before signed action ids and tokens are masked, bytes that are not UTF-8 replaced and the body cut.
RequestBodyBytes int `json:"request_body_bytes"`
// RequestBodyTruncated The request body is cut to `request_log.body_max` bytes.
RequestBodyTruncated bool `json:"request_body_truncated"`
// RequestHeaders HTTP headers by name, each with its values, masked. Untrusted text.
RequestHeaders HttpHeaders `json:"request_headers"`
// ResponseBody The answer's body, masked and cut as the request body — for a Socket Mode envelope Muster's confirmation; null without an answer; untrusted text.
ResponseBody nullable.Nullable[string] `json:"response_body"`
// ResponseBodyBytes The length in bytes of the answer's body after Secrets are masked and before signed action ids and tokens are masked, bytes that are not UTF-8 replaced and the body cut; for an answer larger than the client reads, of the bytes read. 0 without an answer.
ResponseBodyBytes int `json:"response_body_bytes"`
// ResponseBodyTruncated The answer's body is cut to `request_log.body_max` bytes.
ResponseBodyTruncated bool `json:"response_body_truncated"`
// ResponseHeaders The answer's headers, masked; null without an answer and for a Socket Mode envelope, whose confirmation has none.
ResponseHeaders nullable.Nullable[NullableHttpHeaders] `json:"response_headers"`
// Status The status of the answer, null when the attempt got no answer, and for a Socket Mode envelope, whose confirmation has no status.
Status nullable.Nullable[int] `json:"status"`
// Url The URL as errors show it, masked; untrusted text. Without user information, with the path prefix of the base URL as `[redacted]`.
Url string `json:"url"`
// Via How the request travelled.
Via ConnectionPath `json:"via"`
}
RequestRecord One attempt of a request with its headers and bodies, masked. Headers, bodies and the error are untrusted text.
type RequestRecordId ¶
type RequestRecordId = PublicId
RequestRecordId Opaque public identifier (`public_id`): a type prefix of one or two letters followed by 12 random characters of Crockford base32 (`0`–`9` and `A`–`Z` without `I`, `L`, `O` and `U`; 60 bits), such as `AGK7M3QX9P2RTA` for an Alert Group. Prefixes use the same letters and differ per type: `AG` Alert Group, `AE` Audit log entry, `AK` Account link, `AR` Account link request, `CN` Connection, `CR` check run, `DE` delivery event, `DS` Destination, `KR` Link rule, `NE` Note, `NK` Integration token, `NT` Integration, `PT` Personal access token, `RG` Organization, `RQ` record of the Request log, `RT` Route, `SA` Service account, `SN` session, `SR` User, `SS` Stored Snapshot, `ST` Service account token, `TB` Lookup table, `TE` Timeline entry. Responses always carry the canonical upper-case form. Input is case-insensitive and normalized before lookup — `O` reads as `0`, `I` and `L` as `1` — so the pattern also admits lower case and those letters. People refer to Alert Groups by `#N`, never by `public_id`.
type RequestRecordSummary ¶
type RequestRecordSummary struct {
// AlertGroup The Alert Group whose delivery the request made, null for none.
AlertGroup nullable.Nullable[AlertGroupRef] `json:"alert_group"`
// At When the attempt was made, on the business clock.
At time.Time `json:"at"`
// Attempt Which attempt of the request this was, from 1.
Attempt int `json:"attempt"`
// Check The check or test a request belongs to, null for any other request.
Check nullable.Nullable[NullableCheckKind] `json:"check"`
// CheckRun A `public_id` in the format of `PublicId`, or null.
CheckRun nullable.Nullable[NullablePublicId] `json:"check_run"`
// ConnectionId A `public_id` in the format of `PublicId`, or null.
ConnectionId nullable.Nullable[NullablePublicId] `json:"connection_id"`
// Destination The Destination the request concerns, null for none.
Destination nullable.Nullable[DestinationRef] `json:"destination"`
// Direction Whether Muster sent the request (`outbound`) or received it (`inbound`).
Direction RequestDirection `json:"direction"`
// ErrorClass How the attempt failed, as the outbound package classified it: the answer asked to wait (`retry_after`), was a server error, or the attempt got no answer, such as a refused connection or a timeout (`transient`); the answer was a client error (`fatal`), an answer it could not judge, such as one larger than its limit (`unknown`), or a redirect, which Muster never follows (`redirect`); or the outbound address policy refused the address (`blocked`). Null for an attempt that succeeded.
ErrorClass nullable.Nullable[NullableRequestErrorClass] `json:"error_class"`
// ErrorCode What failed when the attempt got no answer, as the checks name it (`NullableConnectionCheckCode`) — `dns_failed`, `connect_failed`, `tls_failed`, `timeout`, `proxy_refused`, `blocked` or `request_failed`. Null for an attempt that got an answer.
ErrorCode nullable.Nullable[NullableRequestErrorCode] `json:"error_code"`
// Id Opaque public identifier (`public_id`): a type prefix of one or two letters followed by 12 random characters of Crockford base32 (`0`–`9` and `A`–`Z` without `I`, `L`, `O` and `U`; 60 bits), such as `AGK7M3QX9P2RTA` for an Alert Group. Prefixes use the same letters and differ per type: `AG` Alert Group, `AE` Audit log entry, `AK` Account link, `AR` Account link request, `CN` Connection, `CR` check run, `DE` delivery event, `DS` Destination, `KR` Link rule, `NE` Note, `NK` Integration token, `NT` Integration, `PT` Personal access token, `RG` Organization, `RQ` record of the Request log, `RT` Route, `SA` Service account, `SN` session, `SR` User, `SS` Stored Snapshot, `ST` Service account token, `TB` Lookup table, `TE` Timeline entry. Responses always carry the canonical upper-case form. Input is case-insensitive and normalized before lookup — `O` reads as `0`, `I` and `L` as `1` — so the pattern also admits lower case and those letters. People refer to Alert Groups by `#N`, never by `public_id`.
Id PublicId `json:"id"`
LatencyMs int `json:"latency_ms"`
// Method The HTTP method, `WEBSOCKET` for an envelope received over a Slack Socket Mode connection.
Method string `json:"method"`
// Operation The operation as its protocol names it — the Bot API method for Telegram, the Web API method for Slack (`auth.test`, `chat.postMessage`), the `operationId` of the Bridge protocol, the operation of Mattermost's REST API in lower camel case — or for an outgoing webhook `event`, or the request of the template mode (`create`, `update`, `open_thread`, `reply_in_thread`).
Operation string `json:"operation"`
// RequestBodyTruncated The request body is cut to `request_log.body_max` bytes.
RequestBodyTruncated bool `json:"request_body_truncated"`
// ResponseBodyTruncated The answer's body is cut to `request_log.body_max` bytes.
ResponseBodyTruncated bool `json:"response_body_truncated"`
// Status The status of the answer, null when the attempt got no answer, and for a Socket Mode envelope, whose confirmation has no status.
Status nullable.Nullable[int] `json:"status"`
// Url The URL as errors show it, masked; untrusted text. Without user information, with the path prefix of the base URL as `[redacted]`.
Url string `json:"url"`
// Via How the request travelled.
Via ConnectionPath `json:"via"`
}
RequestRecordSummary One attempt of a request as a list shows it.
type RequestTemplate ¶
type RequestTemplate struct {
// Body Go template.
Body nullable.Nullable[string] `json:"body,omitempty"`
Extract *[]ExtractionRule `json:"extract,omitempty"`
Headers []HeaderTemplate `json:"headers"`
Method RequestTemplateMethod `json:"method"`
// Url Go template.
Url string `json:"url"`
}
RequestTemplate defines model for RequestTemplate.
type RequestTemplateMethod ¶
type RequestTemplateMethod string
RequestTemplateMethod defines model for RequestTemplate.Method.
const ( DELETE RequestTemplateMethod = "DELETE" GET RequestTemplateMethod = "GET" PATCH RequestTemplateMethod = "PATCH" POST RequestTemplateMethod = "POST" PUT RequestTemplateMethod = "PUT" )
Defines values for RequestTemplateMethod.
func (RequestTemplateMethod) Valid ¶
func (e RequestTemplateMethod) Valid() bool
Valid indicates whether the value is a known member of the RequestTemplateMethod enum.
type ResetUserTotpResponse ¶
type ResetUserTotpResponse struct {
Body []byte
HTTPResponse *http.Response
// ApplicationproblemJSON401 the response for an HTTP 401 `application/problem+json` response
ApplicationproblemJSON401 *Unauthorized
// ApplicationproblemJSON403 the response for an HTTP 403 `application/problem+json` response
ApplicationproblemJSON403 *Forbidden
// ApplicationproblemJSON404 the response for an HTTP 404 `application/problem+json` response
ApplicationproblemJSON404 *NotFound
// ApplicationproblemJSON429 the response for an HTTP 429 `application/problem+json` response
ApplicationproblemJSON429 *TooManyRequests
// Headers429 the parsed response headers for an HTTP 429 response
Headers429 *ResetUserTotpResponse429Headers
}
func ParseResetUserTotpResponse ¶
func ParseResetUserTotpResponse(rsp *http.Response) (*ResetUserTotpResponse, error)
ParseResetUserTotpResponse parses an HTTP response from a ResetUserTotpWithResponse call
func (ResetUserTotpResponse) ContentType ¶
func (r ResetUserTotpResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (ResetUserTotpResponse) GetApplicationproblemJSON401 ¶
func (r ResetUserTotpResponse) GetApplicationproblemJSON401() *Unauthorized
GetApplicationproblemJSON401 returns the response for an HTTP 401 `application/problem+json` response
func (ResetUserTotpResponse) GetApplicationproblemJSON403 ¶
func (r ResetUserTotpResponse) GetApplicationproblemJSON403() *Forbidden
GetApplicationproblemJSON403 returns the response for an HTTP 403 `application/problem+json` response
func (ResetUserTotpResponse) GetApplicationproblemJSON404 ¶
func (r ResetUserTotpResponse) GetApplicationproblemJSON404() *NotFound
GetApplicationproblemJSON404 returns the response for an HTTP 404 `application/problem+json` response
func (ResetUserTotpResponse) GetApplicationproblemJSON429 ¶
func (r ResetUserTotpResponse) GetApplicationproblemJSON429() *TooManyRequests
GetApplicationproblemJSON429 returns the response for an HTTP 429 `application/problem+json` response
func (ResetUserTotpResponse) GetBody ¶
func (r ResetUserTotpResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (ResetUserTotpResponse) Status ¶
func (r ResetUserTotpResponse) Status() string
Status returns HTTPResponse.Status
func (ResetUserTotpResponse) StatusCode ¶
func (r ResetUserTotpResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type ResetUserTotpResponse429Headers ¶
type ResetUserTotpResponse429Headers struct {
RetryAfter *int
}
ResetUserTotpResponse429Headers the declared response headers of an HTTP 429 response for ResetUserTotp
type ResolveAlertGroupJSONRequestBody ¶
type ResolveAlertGroupJSONRequestBody = ResolveRequest
ResolveAlertGroupJSONRequestBody defines body for ResolveAlertGroup for application/json ContentType.
type ResolveAlertGroupResponse ¶
type ResolveAlertGroupResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *CommandResult
// ApplicationproblemJSON400 the response for an HTTP 400 `application/problem+json` response
ApplicationproblemJSON400 *BadRequest
// ApplicationproblemJSON401 the response for an HTTP 401 `application/problem+json` response
ApplicationproblemJSON401 *Unauthorized
// ApplicationproblemJSON403 the response for an HTTP 403 `application/problem+json` response
ApplicationproblemJSON403 *Forbidden
// ApplicationproblemJSON404 the response for an HTTP 404 `application/problem+json` response
ApplicationproblemJSON404 *NotFound
// ApplicationproblemJSON409 the response for an HTTP 409 `application/problem+json` response
ApplicationproblemJSON409 *Conflict
// ApplicationproblemJSON422 the response for an HTTP 422 `application/problem+json` response
ApplicationproblemJSON422 *Unprocessable
// ApplicationproblemJSON429 the response for an HTTP 429 `application/problem+json` response
ApplicationproblemJSON429 *TooManyRequests
// Headers429 the parsed response headers for an HTTP 429 response
Headers429 *ResolveAlertGroupResponse429Headers
}
func ParseResolveAlertGroupResponse ¶
func ParseResolveAlertGroupResponse(rsp *http.Response) (*ResolveAlertGroupResponse, error)
ParseResolveAlertGroupResponse parses an HTTP response from a ResolveAlertGroupWithResponse call
func (ResolveAlertGroupResponse) ContentType ¶
func (r ResolveAlertGroupResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (ResolveAlertGroupResponse) GetApplicationproblemJSON400 ¶
func (r ResolveAlertGroupResponse) GetApplicationproblemJSON400() *BadRequest
GetApplicationproblemJSON400 returns the response for an HTTP 400 `application/problem+json` response
func (ResolveAlertGroupResponse) GetApplicationproblemJSON401 ¶
func (r ResolveAlertGroupResponse) GetApplicationproblemJSON401() *Unauthorized
GetApplicationproblemJSON401 returns the response for an HTTP 401 `application/problem+json` response
func (ResolveAlertGroupResponse) GetApplicationproblemJSON403 ¶
func (r ResolveAlertGroupResponse) GetApplicationproblemJSON403() *Forbidden
GetApplicationproblemJSON403 returns the response for an HTTP 403 `application/problem+json` response
func (ResolveAlertGroupResponse) GetApplicationproblemJSON404 ¶
func (r ResolveAlertGroupResponse) GetApplicationproblemJSON404() *NotFound
GetApplicationproblemJSON404 returns the response for an HTTP 404 `application/problem+json` response
func (ResolveAlertGroupResponse) GetApplicationproblemJSON409 ¶
func (r ResolveAlertGroupResponse) GetApplicationproblemJSON409() *Conflict
GetApplicationproblemJSON409 returns the response for an HTTP 409 `application/problem+json` response
func (ResolveAlertGroupResponse) GetApplicationproblemJSON422 ¶
func (r ResolveAlertGroupResponse) GetApplicationproblemJSON422() *Unprocessable
GetApplicationproblemJSON422 returns the response for an HTTP 422 `application/problem+json` response
func (ResolveAlertGroupResponse) GetApplicationproblemJSON429 ¶
func (r ResolveAlertGroupResponse) GetApplicationproblemJSON429() *TooManyRequests
GetApplicationproblemJSON429 returns the response for an HTTP 429 `application/problem+json` response
func (ResolveAlertGroupResponse) GetBody ¶
func (r ResolveAlertGroupResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (ResolveAlertGroupResponse) GetJSON200 ¶
func (r ResolveAlertGroupResponse) GetJSON200() *CommandResult
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (ResolveAlertGroupResponse) Status ¶
func (r ResolveAlertGroupResponse) Status() string
Status returns HTTPResponse.Status
func (ResolveAlertGroupResponse) StatusCode ¶
func (r ResolveAlertGroupResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type ResolveAlertGroupResponse429Headers ¶
type ResolveAlertGroupResponse429Headers struct {
RetryAfter *int
}
ResolveAlertGroupResponse429Headers the declared response headers of an HTTP 429 response for ResolveAlertGroup
type ResolveReason ¶
type ResolveReason string
ResolveReason Why an Alert resolved.
const ( ResolveReasonGone ResolveReason = "gone" ResolveReasonIntegrationDeleted ResolveReason = "integration_deleted" ResolveReasonResolved ResolveReason = "resolved" ResolveReasonStale ResolveReason = "stale" )
Defines values for ResolveReason.
func (ResolveReason) Valid ¶
func (e ResolveReason) Valid() bool
Valid indicates whether the value is a known member of the ResolveReason enum.
type ResolveRequest ¶
type ResolveRequest struct {
// Note Optional Note recorded in the same request.
Note *string `json:"note,omitempty"`
}
ResolveRequest defines model for ResolveRequest.
type ResolvedBy ¶
type ResolvedBy struct {
// Actor Set when `by` is `user`: the User or Service account that resolved it.
Actor *ActorRef `json:"actor,omitempty"`
// By Who resolved an Alert Group: a person or the system.
By ResolverKind `json:"by"`
// Reason Reason text when the system resolved it.
Reason nullable.Nullable[string] `json:"reason,omitempty"`
// ReasonCode Why an Alert resolved; null while it fires.
ReasonCode nullable.Nullable[NullableResolveReason] `json:"reason_code,omitempty"`
}
ResolvedBy defines model for ResolvedBy.
type ResolverKind ¶
type ResolverKind string
ResolverKind Who resolved an Alert Group: a person or the system.
const ( ResolverKindSystem ResolverKind = "system" ResolverKindUser ResolverKind = "user" )
Defines values for ResolverKind.
func (ResolverKind) Valid ¶
func (e ResolverKind) Valid() bool
Valid indicates whether the value is a known member of the ResolverKind enum.
type RetentionSettings ¶
type RetentionSettings struct {
// AlertDetailsDays Alerts inside Alert Groups, Timeline entries and delivery events (`retention.alert_details`). Never Notes.
AlertDetailsDays int `json:"alert_details_days"`
// AlertGroupSummariesDays Alert Group summary rows with their Notes (`retention.alert_group_summaries`); at least `alert_details_days`.
AlertGroupSummariesDays int `json:"alert_group_summaries_days"`
AuditLogDays int `json:"audit_log_days"`
StoredSnapshotsDays int `json:"stored_snapshots_days"`
}
RetentionSettings Retention periods in days, from 1 to 36500 (100 years). `alert_group_summaries_days` must be at least `alert_details_days`: details are always removed before the summary rows they belong to, and an update that breaks this gets `422` with `retention_order`. Details are the Alerts inside Alert Groups, Timeline entries and delivery events; Notes are not details: they are kept with the summary rows and deleted with them.
type RetirePreviousSigningSecretResponse ¶
type RetirePreviousSigningSecretResponse struct {
Body []byte
HTTPResponse *http.Response
// ApplicationproblemJSON401 the response for an HTTP 401 `application/problem+json` response
ApplicationproblemJSON401 *Unauthorized
// ApplicationproblemJSON403 the response for an HTTP 403 `application/problem+json` response
ApplicationproblemJSON403 *Forbidden
// ApplicationproblemJSON404 the response for an HTTP 404 `application/problem+json` response
ApplicationproblemJSON404 *NotFound
// ApplicationproblemJSON409 the response for an HTTP 409 `application/problem+json` response
ApplicationproblemJSON409 *Conflict
// ApplicationproblemJSON429 the response for an HTTP 429 `application/problem+json` response
ApplicationproblemJSON429 *TooManyRequests
// Headers429 the parsed response headers for an HTTP 429 response
Headers429 *RetirePreviousSigningSecretResponse429Headers
}
func ParseRetirePreviousSigningSecretResponse ¶
func ParseRetirePreviousSigningSecretResponse(rsp *http.Response) (*RetirePreviousSigningSecretResponse, error)
ParseRetirePreviousSigningSecretResponse parses an HTTP response from a RetirePreviousSigningSecretWithResponse call
func (RetirePreviousSigningSecretResponse) ContentType ¶
func (r RetirePreviousSigningSecretResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (RetirePreviousSigningSecretResponse) GetApplicationproblemJSON401 ¶
func (r RetirePreviousSigningSecretResponse) GetApplicationproblemJSON401() *Unauthorized
GetApplicationproblemJSON401 returns the response for an HTTP 401 `application/problem+json` response
func (RetirePreviousSigningSecretResponse) GetApplicationproblemJSON403 ¶
func (r RetirePreviousSigningSecretResponse) GetApplicationproblemJSON403() *Forbidden
GetApplicationproblemJSON403 returns the response for an HTTP 403 `application/problem+json` response
func (RetirePreviousSigningSecretResponse) GetApplicationproblemJSON404 ¶
func (r RetirePreviousSigningSecretResponse) GetApplicationproblemJSON404() *NotFound
GetApplicationproblemJSON404 returns the response for an HTTP 404 `application/problem+json` response
func (RetirePreviousSigningSecretResponse) GetApplicationproblemJSON409 ¶
func (r RetirePreviousSigningSecretResponse) GetApplicationproblemJSON409() *Conflict
GetApplicationproblemJSON409 returns the response for an HTTP 409 `application/problem+json` response
func (RetirePreviousSigningSecretResponse) GetApplicationproblemJSON429 ¶
func (r RetirePreviousSigningSecretResponse) GetApplicationproblemJSON429() *TooManyRequests
GetApplicationproblemJSON429 returns the response for an HTTP 429 `application/problem+json` response
func (RetirePreviousSigningSecretResponse) GetBody ¶
func (r RetirePreviousSigningSecretResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (RetirePreviousSigningSecretResponse) Status ¶
func (r RetirePreviousSigningSecretResponse) Status() string
Status returns HTTPResponse.Status
func (RetirePreviousSigningSecretResponse) StatusCode ¶
func (r RetirePreviousSigningSecretResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type RetirePreviousSigningSecretResponse429Headers ¶
type RetirePreviousSigningSecretResponse429Headers struct {
RetryAfter *int
}
RetirePreviousSigningSecretResponse429Headers the declared response headers of an HTTP 429 response for RetirePreviousSigningSecret
type RevokeIntegrationTokenResponse ¶
type RevokeIntegrationTokenResponse struct {
Body []byte
HTTPResponse *http.Response
// ApplicationproblemJSON401 the response for an HTTP 401 `application/problem+json` response
ApplicationproblemJSON401 *Unauthorized
// ApplicationproblemJSON403 the response for an HTTP 403 `application/problem+json` response
ApplicationproblemJSON403 *Forbidden
// ApplicationproblemJSON404 the response for an HTTP 404 `application/problem+json` response
ApplicationproblemJSON404 *NotFound
// ApplicationproblemJSON429 the response for an HTTP 429 `application/problem+json` response
ApplicationproblemJSON429 *TooManyRequests
// Headers429 the parsed response headers for an HTTP 429 response
Headers429 *RevokeIntegrationTokenResponse429Headers
}
func ParseRevokeIntegrationTokenResponse ¶
func ParseRevokeIntegrationTokenResponse(rsp *http.Response) (*RevokeIntegrationTokenResponse, error)
ParseRevokeIntegrationTokenResponse parses an HTTP response from a RevokeIntegrationTokenWithResponse call
func (RevokeIntegrationTokenResponse) ContentType ¶
func (r RevokeIntegrationTokenResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (RevokeIntegrationTokenResponse) GetApplicationproblemJSON401 ¶
func (r RevokeIntegrationTokenResponse) GetApplicationproblemJSON401() *Unauthorized
GetApplicationproblemJSON401 returns the response for an HTTP 401 `application/problem+json` response
func (RevokeIntegrationTokenResponse) GetApplicationproblemJSON403 ¶
func (r RevokeIntegrationTokenResponse) GetApplicationproblemJSON403() *Forbidden
GetApplicationproblemJSON403 returns the response for an HTTP 403 `application/problem+json` response
func (RevokeIntegrationTokenResponse) GetApplicationproblemJSON404 ¶
func (r RevokeIntegrationTokenResponse) GetApplicationproblemJSON404() *NotFound
GetApplicationproblemJSON404 returns the response for an HTTP 404 `application/problem+json` response
func (RevokeIntegrationTokenResponse) GetApplicationproblemJSON429 ¶
func (r RevokeIntegrationTokenResponse) GetApplicationproblemJSON429() *TooManyRequests
GetApplicationproblemJSON429 returns the response for an HTTP 429 `application/problem+json` response
func (RevokeIntegrationTokenResponse) GetBody ¶
func (r RevokeIntegrationTokenResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (RevokeIntegrationTokenResponse) Status ¶
func (r RevokeIntegrationTokenResponse) Status() string
Status returns HTTPResponse.Status
func (RevokeIntegrationTokenResponse) StatusCode ¶
func (r RevokeIntegrationTokenResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type RevokeIntegrationTokenResponse429Headers ¶
type RevokeIntegrationTokenResponse429Headers struct {
RetryAfter *int
}
RevokeIntegrationTokenResponse429Headers the declared response headers of an HTTP 429 response for RevokeIntegrationToken
type RevokePersonalAccessTokenResponse ¶
type RevokePersonalAccessTokenResponse struct {
Body []byte
HTTPResponse *http.Response
// ApplicationproblemJSON401 the response for an HTTP 401 `application/problem+json` response
ApplicationproblemJSON401 *Unauthorized
// ApplicationproblemJSON403 the response for an HTTP 403 `application/problem+json` response
ApplicationproblemJSON403 *Forbidden
// ApplicationproblemJSON404 the response for an HTTP 404 `application/problem+json` response
ApplicationproblemJSON404 *NotFound
// ApplicationproblemJSON429 the response for an HTTP 429 `application/problem+json` response
ApplicationproblemJSON429 *TooManyRequests
// Headers429 the parsed response headers for an HTTP 429 response
Headers429 *RevokePersonalAccessTokenResponse429Headers
}
func ParseRevokePersonalAccessTokenResponse ¶
func ParseRevokePersonalAccessTokenResponse(rsp *http.Response) (*RevokePersonalAccessTokenResponse, error)
ParseRevokePersonalAccessTokenResponse parses an HTTP response from a RevokePersonalAccessTokenWithResponse call
func (RevokePersonalAccessTokenResponse) ContentType ¶
func (r RevokePersonalAccessTokenResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (RevokePersonalAccessTokenResponse) GetApplicationproblemJSON401 ¶
func (r RevokePersonalAccessTokenResponse) GetApplicationproblemJSON401() *Unauthorized
GetApplicationproblemJSON401 returns the response for an HTTP 401 `application/problem+json` response
func (RevokePersonalAccessTokenResponse) GetApplicationproblemJSON403 ¶
func (r RevokePersonalAccessTokenResponse) GetApplicationproblemJSON403() *Forbidden
GetApplicationproblemJSON403 returns the response for an HTTP 403 `application/problem+json` response
func (RevokePersonalAccessTokenResponse) GetApplicationproblemJSON404 ¶
func (r RevokePersonalAccessTokenResponse) GetApplicationproblemJSON404() *NotFound
GetApplicationproblemJSON404 returns the response for an HTTP 404 `application/problem+json` response
func (RevokePersonalAccessTokenResponse) GetApplicationproblemJSON429 ¶
func (r RevokePersonalAccessTokenResponse) GetApplicationproblemJSON429() *TooManyRequests
GetApplicationproblemJSON429 returns the response for an HTTP 429 `application/problem+json` response
func (RevokePersonalAccessTokenResponse) GetBody ¶
func (r RevokePersonalAccessTokenResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (RevokePersonalAccessTokenResponse) Status ¶
func (r RevokePersonalAccessTokenResponse) Status() string
Status returns HTTPResponse.Status
func (RevokePersonalAccessTokenResponse) StatusCode ¶
func (r RevokePersonalAccessTokenResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type RevokePersonalAccessTokenResponse429Headers ¶
type RevokePersonalAccessTokenResponse429Headers struct {
RetryAfter *int
}
RevokePersonalAccessTokenResponse429Headers the declared response headers of an HTTP 429 response for RevokePersonalAccessToken
type RevokeServiceAccountTokenResponse ¶
type RevokeServiceAccountTokenResponse struct {
Body []byte
HTTPResponse *http.Response
// ApplicationproblemJSON401 the response for an HTTP 401 `application/problem+json` response
ApplicationproblemJSON401 *Unauthorized
// ApplicationproblemJSON403 the response for an HTTP 403 `application/problem+json` response
ApplicationproblemJSON403 *Forbidden
// ApplicationproblemJSON404 the response for an HTTP 404 `application/problem+json` response
ApplicationproblemJSON404 *NotFound
// ApplicationproblemJSON429 the response for an HTTP 429 `application/problem+json` response
ApplicationproblemJSON429 *TooManyRequests
// Headers429 the parsed response headers for an HTTP 429 response
Headers429 *RevokeServiceAccountTokenResponse429Headers
}
func ParseRevokeServiceAccountTokenResponse ¶
func ParseRevokeServiceAccountTokenResponse(rsp *http.Response) (*RevokeServiceAccountTokenResponse, error)
ParseRevokeServiceAccountTokenResponse parses an HTTP response from a RevokeServiceAccountTokenWithResponse call
func (RevokeServiceAccountTokenResponse) ContentType ¶
func (r RevokeServiceAccountTokenResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (RevokeServiceAccountTokenResponse) GetApplicationproblemJSON401 ¶
func (r RevokeServiceAccountTokenResponse) GetApplicationproblemJSON401() *Unauthorized
GetApplicationproblemJSON401 returns the response for an HTTP 401 `application/problem+json` response
func (RevokeServiceAccountTokenResponse) GetApplicationproblemJSON403 ¶
func (r RevokeServiceAccountTokenResponse) GetApplicationproblemJSON403() *Forbidden
GetApplicationproblemJSON403 returns the response for an HTTP 403 `application/problem+json` response
func (RevokeServiceAccountTokenResponse) GetApplicationproblemJSON404 ¶
func (r RevokeServiceAccountTokenResponse) GetApplicationproblemJSON404() *NotFound
GetApplicationproblemJSON404 returns the response for an HTTP 404 `application/problem+json` response
func (RevokeServiceAccountTokenResponse) GetApplicationproblemJSON429 ¶
func (r RevokeServiceAccountTokenResponse) GetApplicationproblemJSON429() *TooManyRequests
GetApplicationproblemJSON429 returns the response for an HTTP 429 `application/problem+json` response
func (RevokeServiceAccountTokenResponse) GetBody ¶
func (r RevokeServiceAccountTokenResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (RevokeServiceAccountTokenResponse) Status ¶
func (r RevokeServiceAccountTokenResponse) Status() string
Status returns HTTPResponse.Status
func (RevokeServiceAccountTokenResponse) StatusCode ¶
func (r RevokeServiceAccountTokenResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type RevokeServiceAccountTokenResponse429Headers ¶
type RevokeServiceAccountTokenResponse429Headers struct {
RetryAfter *int
}
RevokeServiceAccountTokenResponse429Headers the declared response headers of an HTTP 429 response for RevokeServiceAccountToken
type Role ¶
type Role struct {
Name RoleName `json:"name"`
Permissions []Permission `json:"permissions"`
}
Role defines model for Role.
type RoleList ¶
type RoleList struct {
Items []Role `json:"items"`
}
RoleList defines model for RoleList.
type RoleName ¶
type RoleName string
RoleName defines model for RoleName.
type Route ¶
type Route struct {
CreatedAt time.Time `json:"created_at"`
Description *string `json:"description,omitempty"`
DestinationIds []PublicId `json:"destination_ids"`
// Destinations The Route's Destinations with their health, for the Broken warning.
Destinations []DestinationRef `json:"destinations"`
// Etag The same value as the `ETag` header; send it as `If-Match` on the next update. Lets a client update an item of a list without reading it again.
Etag *string `json:"etag,omitempty"`
// GroupKey Label names whose values split the Route's Alerts into Alert Groups. A missing label counts as an empty value.
GroupKey []string `json:"group_key"`
// Id Opaque public identifier (`public_id`): a type prefix of one or two letters followed by 12 random characters of Crockford base32 (`0`–`9` and `A`–`Z` without `I`, `L`, `O` and `U`; 60 bits), such as `AGK7M3QX9P2RTA` for an Alert Group. Prefixes use the same letters and differ per type: `AG` Alert Group, `AE` Audit log entry, `AK` Account link, `AR` Account link request, `CN` Connection, `CR` check run, `DE` delivery event, `DS` Destination, `KR` Link rule, `NE` Note, `NK` Integration token, `NT` Integration, `PT` Personal access token, `RG` Organization, `RQ` record of the Request log, `RT` Route, `SA` Service account, `SN` session, `SR` User, `SS` Stored Snapshot, `ST` Service account token, `TB` Lookup table, `TE` Timeline entry. Responses always carry the canonical upper-case form. Input is case-insensitive and normalized before lookup — `O` reads as `0`, `I` and `L` as `1` — so the pattern also admits lower case and those letters. People refer to Alert Groups by `#N`, never by `public_id`.
Id PublicId `json:"id"`
IsDefault bool `json:"is_default"`
// Matchers Combined with AND. The Default route has none.
Matchers []Matcher `json:"matchers"`
// Name Unique in the Organization.
Name string `json:"name"`
OpenAlertGroupCount int `json:"open_alert_group_count"`
Policy RoutePolicy `json:"policy"`
// Position Zero-based position in evaluation order; the Default route is last.
Position int `json:"position"`
// Storm Set while the Route's Storm is active (`storm_active`), for the Storm banner.
Storm *RouteStorm `json:"storm,omitempty"`
StormActive bool `json:"storm_active"`
// TemplateError Set while a template of the Route keeps failing.
TemplateError *TemplateErrorState `json:"template_error,omitempty"`
Urgent bool `json:"urgent"`
}
Route defines model for Route.
type RouteId ¶
type RouteId = PublicId
RouteId Opaque public identifier (`public_id`): a type prefix of one or two letters followed by 12 random characters of Crockford base32 (`0`–`9` and `A`–`Z` without `I`, `L`, `O` and `U`; 60 bits), such as `AGK7M3QX9P2RTA` for an Alert Group. Prefixes use the same letters and differ per type: `AG` Alert Group, `AE` Audit log entry, `AK` Account link, `AR` Account link request, `CN` Connection, `CR` check run, `DE` delivery event, `DS` Destination, `KR` Link rule, `NE` Note, `NK` Integration token, `NT` Integration, `PT` Personal access token, `RG` Organization, `RQ` record of the Request log, `RT` Route, `SA` Service account, `SN` session, `SR` User, `SS` Stored Snapshot, `ST` Service account token, `TB` Lookup table, `TE` Timeline entry. Responses always carry the canonical upper-case form. Input is case-insensitive and normalized before lookup — `O` reads as `0`, `I` and `L` as `1` — so the pattern also admits lower case and those letters. People refer to Alert Groups by `#N`, never by `public_id`.
type RouteInput ¶
type RouteInput struct {
Description *string `json:"description,omitempty"`
DestinationIds []PublicId `json:"destination_ids"`
// GroupKey Label names whose values split the Route's Alerts into Alert Groups. A missing label counts as an empty value.
GroupKey []string `json:"group_key"`
// Matchers Combined with AND. The Default route has none.
Matchers []Matcher `json:"matchers"`
// Name Unique in the Organization.
Name string `json:"name"`
Policy RoutePolicy `json:"policy"`
Urgent bool `json:"urgent"`
}
RouteInput defines model for RouteInput.
type RouteList ¶
type RouteList struct {
Items []Route `json:"items"`
}
RouteList All Routes in evaluation order, the Default route last. The list ETag covers the order.
type RouteOrder ¶
type RouteOrder struct {
// RouteIds Every Route except the Default route, in the new order.
RouteIds []PublicId `json:"route_ids"`
}
RouteOrder defines model for RouteOrder.
type RoutePolicy ¶
type RoutePolicy struct {
AckTimeout AckTimeoutPolicy `json:"ack_timeout"`
AutoUnacknowledge bool `json:"auto_unacknowledge"`
GracePeriodSeconds int `json:"grace_period_seconds"`
Language Language `json:"language"`
Reminders RemindersPolicy `json:"reminders"`
ReopenWindowSeconds int `json:"reopen_window_seconds"`
// SnoozeDurationsSeconds Quick durations offered in messengers and the Snooze dialog.
SnoozeDurationsSeconds []int `json:"snooze_durations_seconds"`
// StormThreshold New Alert Groups per minute above which a Storm starts.
StormThreshold int `json:"storm_threshold"`
// Templates Go templates rendered in the template sandbox. Null uses Muster's default — the default content, which Muster lays out itself, for `root_message` and `line`, and the built-in template for `ack_timeout_notice`; `previewTemplate` returns the source of the built-in template of a kind for an empty `template`, for an editor to start from. In `updateRoute` a key left out keeps the stored template and null resets it to the built-in one; in `createRoute` a key left out is the built-in one. A template that fails its dry run against recent Stored Snapshots is refused with `422` at `/policy/templates/<name>`, with `template_syntax` or `unknown_function`, its `line` and `column`.
Templates RouteTemplates `json:"templates"`
ThreadBatchingWindowSeconds int `json:"thread_batching_window_seconds"`
UrgentRiseRemovesAck bool `json:"urgent_rise_removes_ack"`
}
RoutePolicy defines model for RoutePolicy.
type RouteProfile ¶
type RouteProfile struct {
GroupKey []string `json:"group_key"`
Id RouteProfileId `json:"id"`
Name string `json:"name"`
Policy RoutePolicy `json:"policy"`
Urgent bool `json:"urgent"`
}
RouteProfile A starting set of Route settings. Profiles only pre-fill the create form and are not stored.
type RouteProfileId ¶
type RouteProfileId string
RouteProfileId defines model for RouteProfile.Id.
const ( Informational RouteProfileId = "informational" OnCall RouteProfileId = "on_call" )
Defines values for RouteProfileId.
func (RouteProfileId) Valid ¶
func (e RouteProfileId) Valid() bool
Valid indicates whether the value is a known member of the RouteProfileId enum.
type RouteProfileList ¶
type RouteProfileList struct {
Items []RouteProfile `json:"items"`
}
RouteProfileList defines model for RouteProfileList.
type RouteStorm ¶
type RouteStorm struct {
// AlertGroupCount New Alert Groups of the Route since the Storm started — the count of its Storm summary.
AlertGroupCount int `json:"alert_group_count"`
// Since When the Storm started.
Since time.Time `json:"since"`
}
RouteStorm defines model for RouteStorm.
type RouteSuggestion ¶
type RouteSuggestion struct {
// Id `heartbeat_lost` suggests a Route for `alertname="MusterHeartbeatLost"`; `internal_alerts` suggests a Route for `alertname=~"Muster.*"`.
Id RouteSuggestionId `json:"id"`
// Route The Route that accepting would create at the top of the list, or for `internal_alerts` directly below the last Route other than the Default route that takes an Internal alert.
Route RouteInput `json:"route"`
}
RouteSuggestion defines model for RouteSuggestion.
type RouteSuggestionAcceptance ¶
type RouteSuggestionAcceptance struct {
// DestinationIds Destinations for the created Route; required for `internal_alerts`.
DestinationIds *[]PublicId `json:"destination_ids,omitempty"`
}
RouteSuggestionAcceptance defines model for RouteSuggestionAcceptance.
type RouteSuggestionId ¶
type RouteSuggestionId string
RouteSuggestionId `heartbeat_lost` suggests a Route for `alertname="MusterHeartbeatLost"`; `internal_alerts` suggests a Route for `alertname=~"Muster.*"`.
const ( RouteSuggestionIdHeartbeatLost RouteSuggestionId = "heartbeat_lost" RouteSuggestionIdInternalAlerts RouteSuggestionId = "internal_alerts" )
Defines values for RouteSuggestionId.
func (RouteSuggestionId) Valid ¶
func (e RouteSuggestionId) Valid() bool
Valid indicates whether the value is a known member of the RouteSuggestionId enum.
type RouteSuggestionList ¶
type RouteSuggestionList struct {
Items []RouteSuggestion `json:"items"`
}
RouteSuggestionList defines model for RouteSuggestionList.
type RouteTemplates ¶
type RouteTemplates struct {
AckTimeoutNotice nullable.Nullable[string] `json:"ack_timeout_notice,omitempty"`
Line nullable.Nullable[string] `json:"line,omitempty"`
// RootMessage Renders only the body of the Root message — from the environment and start time to the Alerts; the status colour, heading, links, notices, footer and buttons always come from Muster.
RootMessage nullable.Nullable[string] `json:"root_message,omitempty"`
}
RouteTemplates Go templates rendered in the template sandbox. Null uses Muster's default — the default content, which Muster lays out itself, for `root_message` and `line`, and the built-in template for `ack_timeout_notice`; `previewTemplate` returns the source of the built-in template of a kind for an empty `template`, for an editor to start from. In `updateRoute` a key left out keeps the stored template and null resets it to the built-in one; in `createRoute` a key left out is the built-in one. A template that fails its dry run against recent Stored Snapshots is refused with `422` at `/policy/templates/<name>`, with `template_syntax` or `unknown_function`, its `line` and `column`.
type RunBulkCommandJSONRequestBody ¶
type RunBulkCommandJSONRequestBody = BulkCommandRequest
RunBulkCommandJSONRequestBody defines body for RunBulkCommand for application/json ContentType.
type RunBulkCommandResponse ¶
type RunBulkCommandResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *BulkCommandResult
// ApplicationproblemJSON400 the response for an HTTP 400 `application/problem+json` response
ApplicationproblemJSON400 *BadRequest
// ApplicationproblemJSON401 the response for an HTTP 401 `application/problem+json` response
ApplicationproblemJSON401 *Unauthorized
// ApplicationproblemJSON403 the response for an HTTP 403 `application/problem+json` response
ApplicationproblemJSON403 *Forbidden
// ApplicationproblemJSON422 the response for an HTTP 422 `application/problem+json` response
ApplicationproblemJSON422 *Unprocessable
// ApplicationproblemJSON429 the response for an HTTP 429 `application/problem+json` response
ApplicationproblemJSON429 *TooManyRequests
// Headers429 the parsed response headers for an HTTP 429 response
Headers429 *RunBulkCommandResponse429Headers
}
func ParseRunBulkCommandResponse ¶
func ParseRunBulkCommandResponse(rsp *http.Response) (*RunBulkCommandResponse, error)
ParseRunBulkCommandResponse parses an HTTP response from a RunBulkCommandWithResponse call
func (RunBulkCommandResponse) ContentType ¶
func (r RunBulkCommandResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (RunBulkCommandResponse) GetApplicationproblemJSON400 ¶
func (r RunBulkCommandResponse) GetApplicationproblemJSON400() *BadRequest
GetApplicationproblemJSON400 returns the response for an HTTP 400 `application/problem+json` response
func (RunBulkCommandResponse) GetApplicationproblemJSON401 ¶
func (r RunBulkCommandResponse) GetApplicationproblemJSON401() *Unauthorized
GetApplicationproblemJSON401 returns the response for an HTTP 401 `application/problem+json` response
func (RunBulkCommandResponse) GetApplicationproblemJSON403 ¶
func (r RunBulkCommandResponse) GetApplicationproblemJSON403() *Forbidden
GetApplicationproblemJSON403 returns the response for an HTTP 403 `application/problem+json` response
func (RunBulkCommandResponse) GetApplicationproblemJSON422 ¶
func (r RunBulkCommandResponse) GetApplicationproblemJSON422() *Unprocessable
GetApplicationproblemJSON422 returns the response for an HTTP 422 `application/problem+json` response
func (RunBulkCommandResponse) GetApplicationproblemJSON429 ¶
func (r RunBulkCommandResponse) GetApplicationproblemJSON429() *TooManyRequests
GetApplicationproblemJSON429 returns the response for an HTTP 429 `application/problem+json` response
func (RunBulkCommandResponse) GetBody ¶
func (r RunBulkCommandResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (RunBulkCommandResponse) GetJSON200 ¶
func (r RunBulkCommandResponse) GetJSON200() *BulkCommandResult
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (RunBulkCommandResponse) Status ¶
func (r RunBulkCommandResponse) Status() string
Status returns HTTPResponse.Status
func (RunBulkCommandResponse) StatusCode ¶
func (r RunBulkCommandResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type RunBulkCommandResponse429Headers ¶
type RunBulkCommandResponse429Headers struct {
RetryAfter *int
}
RunBulkCommandResponse429Headers the declared response headers of an HTTP 429 response for RunBulkCommand
type SecretStatus ¶
type SecretStatus struct {
Set bool `json:"set"`
UpdatedAt nullable.Nullable[time.Time] `json:"updated_at,omitempty"`
}
SecretStatus What a read shows instead of a Secret. The value itself is never returned.
type ServiceAccount ¶
type ServiceAccount struct {
CreatedAt time.Time `json:"created_at"`
// Etag The same value as the `ETag` header; send it as `If-Match` on the next update. Lets a client update an item of a list without reading it again.
Etag *string `json:"etag,omitempty"`
// Id Opaque public identifier (`public_id`): a type prefix of one or two letters followed by 12 random characters of Crockford base32 (`0`–`9` and `A`–`Z` without `I`, `L`, `O` and `U`; 60 bits), such as `AGK7M3QX9P2RTA` for an Alert Group. Prefixes use the same letters and differ per type: `AG` Alert Group, `AE` Audit log entry, `AK` Account link, `AR` Account link request, `CN` Connection, `CR` check run, `DE` delivery event, `DS` Destination, `KR` Link rule, `NE` Note, `NK` Integration token, `NT` Integration, `PT` Personal access token, `RG` Organization, `RQ` record of the Request log, `RT` Route, `SA` Service account, `SN` session, `SR` User, `SS` Stored Snapshot, `ST` Service account token, `TB` Lookup table, `TE` Timeline entry. Responses always carry the canonical upper-case form. Input is case-insensitive and normalized before lookup — `O` reads as `0`, `I` and `L` as `1` — so the pattern also admits lower case and those letters. People refer to Alert Groups by `#N`, never by `public_id`.
Id PublicId `json:"id"`
Name string `json:"name"`
Role RoleName `json:"role"`
Status ServiceAccountStatus `json:"status"`
TokenCount int `json:"token_count"`
}
ServiceAccount A non-person identity with a Role and tokens. It cannot sign in and has no Account links. It can never become the Owner of an Alert Group: Acknowledge and "Still on it" from it are refused with `command-refused` `owner_must_be_user`; it may Resolve, Snooze and add Notes.
type ServiceAccountId ¶
type ServiceAccountId = PublicId
ServiceAccountId Opaque public identifier (`public_id`): a type prefix of one or two letters followed by 12 random characters of Crockford base32 (`0`–`9` and `A`–`Z` without `I`, `L`, `O` and `U`; 60 bits), such as `AGK7M3QX9P2RTA` for an Alert Group. Prefixes use the same letters and differ per type: `AG` Alert Group, `AE` Audit log entry, `AK` Account link, `AR` Account link request, `CN` Connection, `CR` check run, `DE` delivery event, `DS` Destination, `KR` Link rule, `NE` Note, `NK` Integration token, `NT` Integration, `PT` Personal access token, `RG` Organization, `RQ` record of the Request log, `RT` Route, `SA` Service account, `SN` session, `SR` User, `SS` Stored Snapshot, `ST` Service account token, `TB` Lookup table, `TE` Timeline entry. Responses always carry the canonical upper-case form. Input is case-insensitive and normalized before lookup — `O` reads as `0`, `I` and `L` as `1` — so the pattern also admits lower case and those letters. People refer to Alert Groups by `#N`, never by `public_id`.
type ServiceAccountInput ¶
ServiceAccountInput defines model for ServiceAccountInput.
type ServiceAccountList ¶
type ServiceAccountList struct {
Items []ServiceAccount `json:"items"`
NextCursor nullable.Nullable[string] `json:"next_cursor"`
}
ServiceAccountList defines model for ServiceAccountList.
type ServiceAccountStatus ¶
type ServiceAccountStatus string
ServiceAccountStatus defines model for ServiceAccount.Status.
const ( ServiceAccountStatusActive ServiceAccountStatus = "active" ServiceAccountStatusDisabled ServiceAccountStatus = "disabled" )
Defines values for ServiceAccountStatus.
func (ServiceAccountStatus) Valid ¶
func (e ServiceAccountStatus) Valid() bool
Valid indicates whether the value is a known member of the ServiceAccountStatus enum.
type ServiceAccountToken ¶
type ServiceAccountToken struct {
CreatedAt time.Time `json:"created_at"`
// ExpiresAt Null means the token never expires; the UI warns.
ExpiresAt nullable.Nullable[time.Time] `json:"expires_at,omitempty"`
// Id Opaque public identifier (`public_id`): a type prefix of one or two letters followed by 12 random characters of Crockford base32 (`0`–`9` and `A`–`Z` without `I`, `L`, `O` and `U`; 60 bits), such as `AGK7M3QX9P2RTA` for an Alert Group. Prefixes use the same letters and differ per type: `AG` Alert Group, `AE` Audit log entry, `AK` Account link, `AR` Account link request, `CN` Connection, `CR` check run, `DE` delivery event, `DS` Destination, `KR` Link rule, `NE` Note, `NK` Integration token, `NT` Integration, `PT` Personal access token, `RG` Organization, `RQ` record of the Request log, `RT` Route, `SA` Service account, `SN` session, `SR` User, `SS` Stored Snapshot, `ST` Service account token, `TB` Lookup table, `TE` Timeline entry. Responses always carry the canonical upper-case form. Input is case-insensitive and normalized before lookup — `O` reads as `0`, `I` and `L` as `1` — so the pattern also admits lower case and those letters. People refer to Alert Groups by `#N`, never by `public_id`.
Id PublicId `json:"id"`
LastUsedAddress nullable.Nullable[string] `json:"last_used_address,omitempty"`
LastUsedAt nullable.Nullable[time.Time] `json:"last_used_at,omitempty"`
Name string `json:"name"`
}
ServiceAccountToken defines model for ServiceAccountToken.
type ServiceAccountTokenCreate ¶
type ServiceAccountTokenCreate struct {
ExpiresAt nullable.Nullable[time.Time] `json:"expires_at,omitempty"`
Name string `json:"name"`
}
ServiceAccountTokenCreate defines model for ServiceAccountTokenCreate.
type ServiceAccountTokenCreated ¶
type ServiceAccountTokenCreated struct {
Token ServiceAccountToken `json:"token"`
// Value The token, starting with `mstr_sat_`. Shown once.
Value string `json:"value"`
}
ServiceAccountTokenCreated defines model for ServiceAccountTokenCreated.
type ServiceAccountTokenList ¶
type ServiceAccountTokenList struct {
Items []ServiceAccountToken `json:"items"`
}
ServiceAccountTokenList defines model for ServiceAccountTokenList.
type Session ¶
type Session struct {
// CsrfToken Send as `X-CSRF-Token` on every mutating request made with the session cookie.
CsrfToken string `json:"csrf_token"`
// DocsVersion The version segment of the documentation site the web UI links to (C-21.FR-11), derived from the version of the running build by the rule of the `runbook_url` of Internal alerts (C-19.FR-9) — the `major.minor` of a release `X.Y.Z`, or `latest` for any other version (a development build, a snapshot image, a pre-release).
DocsVersion string `json:"docs_version"`
ExpiresAt time.Time `json:"expires_at"`
IdleExpiresAt time.Time `json:"idle_expires_at"`
// Method How the session signed in. OIDC accounts are re-checked at the identity provider per user, in the background, with the offline token the IdP granted at sign-in (`offline_access`); when the IdP refuses the user, all of the user's sessions end and the next request gets `401` with `oidc_session_ended`. An `oidc` session of a user without an offline token ends at most `auth.oidc_fallback_session_lifetime` after sign-in.
Method SessionMethod `json:"method"`
// Permissions Empty while the session is limited (`totp_required`, `totp_enrolment_required`).
Permissions []Permission `json:"permissions"`
// State `totp_required` after the password (or OIDC) step when the user has TOTP and the code was not yet given; `totp_enrolment_required` while the Organization's TOTP policy demands enrolment. In both limited states `permissions` is empty and only `getCurrentSession`, `deleteCurrentSession` and, per state, `submitSessionTotp` (`totp_required`) or `beginTotpEnrolment`, `confirmTotpEnrolment` and `getMyTotp` (`totp_enrolment_required`) work; everything else answers `403` with the code `totp_required` or `totp_enrolment_required`.
State SessionState `json:"state"`
User User `json:"user"`
}
Session defines model for Session.
type SessionCreate ¶
type SessionCreate struct {
// Login Compared case-insensitively.
Login string `json:"login"`
Password *string `json:"password,omitempty"`
// RecoveryCode A single-use recovery code instead of `totp_code`.
RecoveryCode *string `json:"recovery_code,omitempty"`
// TotpCode Current TOTP code, if the user has TOTP and wants to finish in one request.
TotpCode *string `json:"totp_code,omitempty"`
}
SessionCreate defines model for SessionCreate.
type SessionInfo ¶
type SessionInfo struct {
Address nullable.Nullable[string] `json:"address,omitempty"`
CreatedAt time.Time `json:"created_at"`
Current bool `json:"current"`
// Id Opaque public identifier (`public_id`): a type prefix of one or two letters followed by 12 random characters of Crockford base32 (`0`–`9` and `A`–`Z` without `I`, `L`, `O` and `U`; 60 bits), such as `AGK7M3QX9P2RTA` for an Alert Group. Prefixes use the same letters and differ per type: `AG` Alert Group, `AE` Audit log entry, `AK` Account link, `AR` Account link request, `CN` Connection, `CR` check run, `DE` delivery event, `DS` Destination, `KR` Link rule, `NE` Note, `NK` Integration token, `NT` Integration, `PT` Personal access token, `RG` Organization, `RQ` record of the Request log, `RT` Route, `SA` Service account, `SN` session, `SR` User, `SS` Stored Snapshot, `ST` Service account token, `TB` Lookup table, `TE` Timeline entry. Responses always carry the canonical upper-case form. Input is case-insensitive and normalized before lookup — `O` reads as `0`, `I` and `L` as `1` — so the pattern also admits lower case and those letters. People refer to Alert Groups by `#N`, never by `public_id`.
Id PublicId `json:"id"`
LastUsedAt time.Time `json:"last_used_at"`
// Method How the session signed in. OIDC accounts are re-checked at the identity provider per user, in the background, with the offline token the IdP granted at sign-in (`offline_access`); when the IdP refuses the user, all of the user's sessions end and the next request gets `401` with `oidc_session_ended`. An `oidc` session of a user without an offline token ends at most `auth.oidc_fallback_session_lifetime` after sign-in.
Method SessionMethod `json:"method"`
UserAgent nullable.Nullable[string] `json:"user_agent,omitempty"`
}
SessionInfo defines model for SessionInfo.
type SessionInfoList ¶
type SessionInfoList struct {
Items []SessionInfo `json:"items"`
}
SessionInfoList defines model for SessionInfoList.
type SessionMethod ¶
type SessionMethod string
SessionMethod How the session signed in. OIDC accounts are re-checked at the identity provider per user, in the background, with the offline token the IdP granted at sign-in (`offline_access`); when the IdP refuses the user, all of the user's sessions end and the next request gets `401` with `oidc_session_ended`. An `oidc` session of a user without an offline token ends at most `auth.oidc_fallback_session_lifetime` after sign-in.
const ( SessionMethodLocal SessionMethod = "local" SessionMethodOidc SessionMethod = "oidc" )
Defines values for SessionMethod.
func (SessionMethod) Valid ¶
func (e SessionMethod) Valid() bool
Valid indicates whether the value is a known member of the SessionMethod enum.
type SessionState ¶
type SessionState string
SessionState `totp_required` after the password (or OIDC) step when the user has TOTP and the code was not yet given; `totp_enrolment_required` while the Organization's TOTP policy demands enrolment. In both limited states `permissions` is empty and only `getCurrentSession`, `deleteCurrentSession` and, per state, `submitSessionTotp` (`totp_required`) or `beginTotpEnrolment`, `confirmTotpEnrolment` and `getMyTotp` (`totp_enrolment_required`) work; everything else answers `403` with the code `totp_required` or `totp_enrolment_required`.
const ( SessionStateActive SessionState = "active" SessionStateTotpEnrolmentRequired SessionState = "totp_enrolment_required" SessionStateTotpRequired SessionState = "totp_required" )
Defines values for SessionState.
func (SessionState) Valid ¶
func (e SessionState) Valid() bool
Valid indicates whether the value is a known member of the SessionState enum.
type SessionTotp ¶
type SessionTotp struct {
// RecoveryCode A single-use recovery code.
RecoveryCode *string `json:"recovery_code,omitempty"`
// TotpCode Current TOTP code.
TotpCode *string `json:"totp_code,omitempty"`
}
SessionTotp Exactly one of the two fields.
type SetDestinationSecretJSONRequestBody ¶
type SetDestinationSecretJSONRequestBody = DestinationSecretInput
SetDestinationSecretJSONRequestBody defines body for SetDestinationSecret for application/json ContentType.
type SetDestinationSecretParams ¶
type SetDestinationSecretParams struct {
// IfMatch Optional ETag; when present and stale, the request gets `412`.
IfMatch *IfMatchOptional `json:"If-Match,omitempty"`
}
SetDestinationSecretParams defines parameters for SetDestinationSecret.
type SetDestinationSecretResponse ¶
type SetDestinationSecretResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *DestinationSecret
// ApplicationproblemJSON400 the response for an HTTP 400 `application/problem+json` response
ApplicationproblemJSON400 *BadRequest
// ApplicationproblemJSON401 the response for an HTTP 401 `application/problem+json` response
ApplicationproblemJSON401 *Unauthorized
// ApplicationproblemJSON403 the response for an HTTP 403 `application/problem+json` response
ApplicationproblemJSON403 *Forbidden
// ApplicationproblemJSON404 the response for an HTTP 404 `application/problem+json` response
ApplicationproblemJSON404 *NotFound
// ApplicationproblemJSON409 the response for an HTTP 409 `application/problem+json` response
ApplicationproblemJSON409 *Conflict
// ApplicationproblemJSON412 the response for an HTTP 412 `application/problem+json` response
ApplicationproblemJSON412 *PreconditionFailed
// ApplicationproblemJSON422 the response for an HTTP 422 `application/problem+json` response
ApplicationproblemJSON422 *Unprocessable
// ApplicationproblemJSON429 the response for an HTTP 429 `application/problem+json` response
ApplicationproblemJSON429 *TooManyRequests
// Headers200 the parsed response headers for an HTTP 200 response
Headers200 *SetDestinationSecretResponse200Headers
// Headers429 the parsed response headers for an HTTP 429 response
Headers429 *SetDestinationSecretResponse429Headers
}
func ParseSetDestinationSecretResponse ¶
func ParseSetDestinationSecretResponse(rsp *http.Response) (*SetDestinationSecretResponse, error)
ParseSetDestinationSecretResponse parses an HTTP response from a SetDestinationSecretWithResponse call
func (SetDestinationSecretResponse) ContentType ¶
func (r SetDestinationSecretResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (SetDestinationSecretResponse) GetApplicationproblemJSON400 ¶
func (r SetDestinationSecretResponse) GetApplicationproblemJSON400() *BadRequest
GetApplicationproblemJSON400 returns the response for an HTTP 400 `application/problem+json` response
func (SetDestinationSecretResponse) GetApplicationproblemJSON401 ¶
func (r SetDestinationSecretResponse) GetApplicationproblemJSON401() *Unauthorized
GetApplicationproblemJSON401 returns the response for an HTTP 401 `application/problem+json` response
func (SetDestinationSecretResponse) GetApplicationproblemJSON403 ¶
func (r SetDestinationSecretResponse) GetApplicationproblemJSON403() *Forbidden
GetApplicationproblemJSON403 returns the response for an HTTP 403 `application/problem+json` response
func (SetDestinationSecretResponse) GetApplicationproblemJSON404 ¶
func (r SetDestinationSecretResponse) GetApplicationproblemJSON404() *NotFound
GetApplicationproblemJSON404 returns the response for an HTTP 404 `application/problem+json` response
func (SetDestinationSecretResponse) GetApplicationproblemJSON409 ¶
func (r SetDestinationSecretResponse) GetApplicationproblemJSON409() *Conflict
GetApplicationproblemJSON409 returns the response for an HTTP 409 `application/problem+json` response
func (SetDestinationSecretResponse) GetApplicationproblemJSON412 ¶
func (r SetDestinationSecretResponse) GetApplicationproblemJSON412() *PreconditionFailed
GetApplicationproblemJSON412 returns the response for an HTTP 412 `application/problem+json` response
func (SetDestinationSecretResponse) GetApplicationproblemJSON422 ¶
func (r SetDestinationSecretResponse) GetApplicationproblemJSON422() *Unprocessable
GetApplicationproblemJSON422 returns the response for an HTTP 422 `application/problem+json` response
func (SetDestinationSecretResponse) GetApplicationproblemJSON429 ¶
func (r SetDestinationSecretResponse) GetApplicationproblemJSON429() *TooManyRequests
GetApplicationproblemJSON429 returns the response for an HTTP 429 `application/problem+json` response
func (SetDestinationSecretResponse) GetBody ¶
func (r SetDestinationSecretResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (SetDestinationSecretResponse) GetJSON200 ¶
func (r SetDestinationSecretResponse) GetJSON200() *DestinationSecret
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (SetDestinationSecretResponse) Status ¶
func (r SetDestinationSecretResponse) Status() string
Status returns HTTPResponse.Status
func (SetDestinationSecretResponse) StatusCode ¶
func (r SetDestinationSecretResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type SetDestinationSecretResponse200Headers ¶
type SetDestinationSecretResponse200Headers struct {
ETag *string
}
SetDestinationSecretResponse200Headers the declared response headers of an HTTP 200 response for SetDestinationSecret
type SetDestinationSecretResponse429Headers ¶
type SetDestinationSecretResponse429Headers struct {
RetryAfter *int
}
SetDestinationSecretResponse429Headers the declared response headers of an HTTP 429 response for SetDestinationSecret
type SeverityLevel ¶
type SeverityLevel string
SeverityLevel defines model for SeverityLevel.
const ( SeverityLevelCritical SeverityLevel = "critical" SeverityLevelInfo SeverityLevel = "info" SeverityLevelWarning SeverityLevel = "warning" )
Defines values for SeverityLevel.
func (SeverityLevel) Valid ¶
func (e SeverityLevel) Valid() bool
Valid indicates whether the value is a known member of the SeverityLevel enum.
type SeverityLevelStyle ¶
type SeverityLevelStyle struct {
// Color CSS hex colour, for example `#d32f2f`.
Color string `json:"color"`
Emoji string `json:"emoji"`
Level SeverityLevel `json:"level"`
}
SeverityLevelStyle defines model for SeverityLevelStyle.
type SeverityMappingEntry ¶
type SeverityMappingEntry struct {
Level SeverityLevel `json:"level"`
Value string `json:"value"`
}
SeverityMappingEntry defines model for SeverityMappingEntry.
type SeverityValue ¶
type SeverityValue struct {
Count int `json:"count"`
Level SeverityLevel `json:"level"`
// Mapped False when the value has no mapping and counts as warning.
Mapped bool `json:"mapped"`
Value string `json:"value"`
}
SeverityValue defines model for SeverityValue.
type SeverityValueList ¶
type SeverityValueList struct {
Items []SeverityValue `json:"items"`
WindowDays int `json:"window_days"`
}
SeverityValueList defines model for SeverityValueList.
type SignInOptions ¶
type SignInOptions struct {
Oidc struct {
// DisplayName Provider name for the button "Sign in with {display_name}". Present while OIDC is enabled.
DisplayName *string `json:"display_name,omitempty"`
Enabled bool `json:"enabled"`
} `json:"oidc"`
}
SignInOptions What the sign-in page offers besides the local form, which is always shown.
type SigningSecretGenerated ¶
type SigningSecretGenerated struct {
// Secret The new Signing secret. Shown once.
Secret string `json:"secret"`
Status SigningSecretStatus `json:"status"`
}
SigningSecretGenerated defines model for SigningSecretGenerated.
type SigningSecretStatus ¶
type SigningSecretStatus struct {
// PreviousActiveSince Set while the previous Signing secret still signs.
PreviousActiveSince nullable.Nullable[time.Time] `json:"previous_active_since,omitempty"`
Set bool `json:"set"`
UpdatedAt nullable.Nullable[time.Time] `json:"updated_at,omitempty"`
}
SigningSecretStatus defines model for SigningSecretStatus.
type SlackChannel ¶
type SlackChannel struct {
// Id The channel's id, `C…` or `G…`, as a Slack Destination takes it.
Id string `json:"id"`
IsPrivate bool `json:"is_private"`
// Name The channel's name without `#`. Untrusted text from Slack.
Name string `json:"name"`
}
SlackChannel A channel of a Slack Connection's workspace that the bot is a member of.
type SlackChannelList ¶
type SlackChannelList struct {
// Items By name.
Items []SlackChannel `json:"items"`
// Truncated More channels were left after the fifth page of `conversations.list`; a channel that is not listed is still saved by its id.
Truncated bool `json:"truncated"`
}
SlackChannelList defines model for SlackChannelList.
type SlackCheckInfo ¶
type SlackCheckInfo struct {
// AppId The Slack app's id (`A…`); null in `http` mode, which has no step `app_token`, and when that step failed.
AppId nullable.Nullable[string] `json:"app_id"`
// BotUserId The bot's user id (`U…`).
BotUserId string `json:"bot_user_id"`
// TeamId The workspace's id (`T…`).
TeamId string `json:"team_id"`
// TeamName The workspace's name.
TeamName string `json:"team_name"`
}
SlackCheckInfo What a check of a Slack Connection found.
type SlackConnection ¶
type SlackConnection struct {
// AppId The Slack app's id (`A…`), found by the step `app_token` of a check in `socket` mode; null before one and after the bot token changed.
AppId nullable.Nullable[string] `json:"app_id,omitempty"`
// AppTokenStatus What a read shows instead of a Secret. The value itself is never returned.
AppTokenStatus SecretStatus `json:"app_token_status"`
// BotName The bot's name (`user` of `auth.test`), as the last successful Connection check found it; null before one and after the bot token changed.
BotName nullable.Nullable[string] `json:"bot_name,omitempty"`
// BotTokenStatus What a read shows instead of a Secret. The value itself is never returned.
BotTokenStatus SecretStatus `json:"bot_token_status"`
// BotUserId The bot's user id (`U…`); null as `bot_name`.
BotUserId nullable.Nullable[string] `json:"bot_user_id,omitempty"`
// CallbackUrl Where Slack posts the button presses of this Connection in `http` mode, `<MUSTER_INGEST_URL>/api/v1/callbacks/slack/<id>` on the ingest listener; enter it as the Interactivity Request URL of the Slack app. Slack's own address is fixed, so the Connection has no address field.
CallbackUrl *string `json:"callback_url,omitempty"`
CreatedAt time.Time `json:"created_at"`
// DestinationCount A Connection used by Destinations cannot be deleted.
DestinationCount int `json:"destination_count"`
// Etag The same value as the `ETag` header; send it as `If-Match` on the next update. Lets a client update an item of a list without reading it again.
Etag *string `json:"etag,omitempty"`
// EventMode How a Slack Connection receives button presses (`connection.slack.event_mode`, `socket` for a new Connection): `socket` — the Leader holds a Socket Mode connection with the app-level token, so Slack needs no address of Muster; `http` — Slack posts each press to the Connection's `callback_url`, signed with the Slack signing secret.
EventMode SlackEventMode `json:"event_mode"`
// Id Opaque public identifier (`public_id`): a type prefix of one or two letters followed by 12 random characters of Crockford base32 (`0`–`9` and `A`–`Z` without `I`, `L`, `O` and `U`; 60 bits), such as `AGK7M3QX9P2RTA` for an Alert Group. Prefixes use the same letters and differ per type: `AG` Alert Group, `AE` Audit log entry, `AK` Account link, `AR` Account link request, `CN` Connection, `CR` check run, `DE` delivery event, `DS` Destination, `KR` Link rule, `NE` Note, `NK` Integration token, `NT` Integration, `PT` Personal access token, `RG` Organization, `RQ` record of the Request log, `RT` Route, `SA` Service account, `SN` session, `SR` User, `SS` Stored Snapshot, `ST` Service account token, `TB` Lookup table, `TE` Timeline entry. Responses always carry the canonical upper-case form. Input is case-insensitive and normalized before lookup — `O` reads as `0`, `I` and `L` as `1` — so the pattern also admits lower case and those letters. People refer to Alert Groups by `#N`, never by `public_id`.
Id PublicId `json:"id"`
// Limiter A rate limit of `limit` calls per `per_seconds`.
Limiter Limiter `json:"limiter"`
Name string `json:"name"`
// Proxy Per-client proxy as read. The password is a Secret.
Proxy ProxyConfig `json:"proxy"`
// SlackSigningSecretStatus What a read shows instead of a Secret. The value itself is never returned.
SlackSigningSecretStatus SecretStatus `json:"slack_signing_secret_status"`
// Socket Socket Mode only. What the last `hello` of the Leader's Socket Mode connection counted (C-24.FR-2, FR-9); null in `http` mode and before the first `hello` after the Connection was saved.
Socket nullable.Nullable[SlackSocketStatus] `json:"socket,omitempty"`
// TeamId The workspace's id (`T…`); null as `bot_name`.
TeamId nullable.Nullable[string] `json:"team_id,omitempty"`
// TeamName The workspace's name; null as `bot_name`.
TeamName nullable.Nullable[string] `json:"team_name,omitempty"`
Type SlackConnectionType `json:"type"`
}
SlackConnection defines model for SlackConnection.
type SlackConnectionBase ¶
type SlackConnectionBase struct {
// EventMode How a Slack Connection receives button presses (`connection.slack.event_mode`, `socket` for a new Connection): `socket` — the Leader holds a Socket Mode connection with the app-level token, so Slack needs no address of Muster; `http` — Slack posts each press to the Connection's `callback_url`, signed with the Slack signing secret.
EventMode SlackEventMode `json:"event_mode"`
// Limiter A rate limit of `limit` calls per `per_seconds`.
Limiter Limiter `json:"limiter"`
Name string `json:"name"`
Type SlackConnectionBaseType `json:"type"`
}
SlackConnectionBase defines model for SlackConnectionBase.
type SlackConnectionBaseType ¶
type SlackConnectionBaseType string
SlackConnectionBaseType defines model for SlackConnectionBase.Type.
const (
SlackConnectionBaseTypeSlack SlackConnectionBaseType = "slack"
)
Defines values for SlackConnectionBaseType.
func (SlackConnectionBaseType) Valid ¶
func (e SlackConnectionBaseType) Valid() bool
Valid indicates whether the value is a known member of the SlackConnectionBaseType enum.
type SlackConnectionDraft ¶
type SlackConnectionDraft struct {
// AppToken An app-level token (`xapp-…`) typed in the form, for the step `app_token` in `socket` mode, sent to Slack through the draft's proxy. Omit it to use the stored one of `connection_id`, which goes to Slack only through its saved proxy; without either the step is skipped.
AppToken *string `json:"app_token,omitempty"`
// BotToken A bot token (`xoxb-…`) typed in the form, sent to Slack through the draft's proxy. Omit it to use the stored token of `connection_id`, which goes to Slack only through its saved proxy; without either only the dry probe runs.
BotToken *string `json:"bot_token,omitempty"`
// ConnectionId The saved Slack Connection that the form edits; omit it for a new one. An omitted `proxy` is its saved proxy, and no proxy without it.
ConnectionId *PublicId `json:"connection_id,omitempty"`
// EventMode How a Slack Connection receives button presses (`connection.slack.event_mode`, `socket` for a new Connection): `socket` — the Leader holds a Socket Mode connection with the app-level token, so Slack needs no address of Muster; `http` — Slack posts each press to the Connection's `callback_url`, signed with the Slack signing secret.
EventMode SlackEventMode `json:"event_mode"`
// Proxy Per-client proxy as written. Omitting `password` keeps the stored one; `null` clears it.
Proxy *ProxyConfigInput `json:"proxy,omitempty"`
Type SlackConnectionDraftType `json:"type"`
}
SlackConnectionDraft A Slack Connection as its form holds it, for `checkConnectionDraft`; Slack's address is fixed, so only the proxy can differ from the saved Connection, and the Slack signing secret is not checked.
type SlackConnectionDraftType ¶
type SlackConnectionDraftType string
SlackConnectionDraftType defines model for SlackConnectionDraft.Type.
const (
SlackConnectionDraftTypeSlack SlackConnectionDraftType = "slack"
)
Defines values for SlackConnectionDraftType.
func (SlackConnectionDraftType) Valid ¶
func (e SlackConnectionDraftType) Valid() bool
Valid indicates whether the value is a known member of the SlackConnectionDraftType enum.
type SlackConnectionInput ¶
type SlackConnectionInput struct {
// AppToken Write-only Secret, the app-level token (`xapp-…`, with the scope `connections:write`); required in `socket` mode, sent now or stored. Omit on update to keep the stored one; a change to `http` keeps it.
AppToken *string `json:"app_token,omitempty"`
// BotToken Write-only Secret, the bot token (`xoxb-…`). Omit on update to keep the stored one; a new one forgets what the last check learned.
BotToken *string `json:"bot_token,omitempty"`
// EventMode How a Slack Connection receives button presses (`connection.slack.event_mode`, `socket` for a new Connection): `socket` — the Leader holds a Socket Mode connection with the app-level token, so Slack needs no address of Muster; `http` — Slack posts each press to the Connection's `callback_url`, signed with the Slack signing secret.
EventMode SlackEventMode `json:"event_mode"`
// Limiter A rate limit of `limit` calls per `per_seconds`.
Limiter Limiter `json:"limiter"`
Name string `json:"name"`
// Proxy Per-client proxy as written. Omitting `password` keeps the stored one; `null` clears it.
Proxy ProxyConfigInput `json:"proxy"`
// SlackSigningSecret Write-only Secret, the Slack signing secret of the app; required in `http` mode, sent now or stored. Omit on update to keep the stored one; a change to `socket` keeps it. It is never sent anywhere.
SlackSigningSecret *string `json:"slack_signing_secret,omitempty"`
Type SlackConnectionInputType `json:"type"`
}
SlackConnectionInput defines model for SlackConnectionInput.
type SlackConnectionInputType ¶
type SlackConnectionInputType string
SlackConnectionInputType defines model for SlackConnectionInput.Type.
const (
SlackConnectionInputTypeSlack SlackConnectionInputType = "slack"
)
Defines values for SlackConnectionInputType.
func (SlackConnectionInputType) Valid ¶
func (e SlackConnectionInputType) Valid() bool
Valid indicates whether the value is a known member of the SlackConnectionInputType enum.
type SlackConnectionType ¶
type SlackConnectionType string
SlackConnectionType defines model for SlackConnection.Type.
const (
SlackConnectionTypeSlack SlackConnectionType = "slack"
)
Defines values for SlackConnectionType.
func (SlackConnectionType) Valid ¶
func (e SlackConnectionType) Valid() bool
Valid indicates whether the value is a known member of the SlackConnectionType enum.
type SlackDestination ¶
type SlackDestination struct {
// ChannelId The channel's id as Slack shows it in the channel's details — `C…`, or `G…` for a private channel of an older workspace — in upper-case letters and digits, kept as entered without surrounding white space. Any other id, such as a direct chat's `D…`, a user's `U…` or a `#name`, is refused with `invalid_format`.
ChannelId string `json:"channel_id"`
// ChannelName The channel's name without `#`, as `conversations.info` answered it when the Destination was last saved. Untrusted text from Slack.
ChannelName nullable.Nullable[string] `json:"channel_name,omitempty"`
// ConnectionId A Slack Connection.
ConnectionId PublicId `json:"connection_id"`
CreatedAt time.Time `json:"created_at"`
// Etag The same value as the `ETag` header; send it as `If-Match` on the next update. Lets a client update an item of a list without reading it again.
Etag *string `json:"etag,omitempty"`
Health DestinationHealth `json:"health"`
// Id Opaque public identifier (`public_id`): a type prefix of one or two letters followed by 12 random characters of Crockford base32 (`0`–`9` and `A`–`Z` without `I`, `L`, `O` and `U`; 60 bits), such as `AGK7M3QX9P2RTA` for an Alert Group. Prefixes use the same letters and differ per type: `AG` Alert Group, `AE` Audit log entry, `AK` Account link, `AR` Account link request, `CN` Connection, `CR` check run, `DE` delivery event, `DS` Destination, `KR` Link rule, `NE` Note, `NK` Integration token, `NT` Integration, `PT` Personal access token, `RG` Organization, `RQ` record of the Request log, `RT` Route, `SA` Service account, `SN` session, `SR` User, `SS` Stored Snapshot, `ST` Service account token, `TB` Lookup table, `TE` Timeline entry. Responses always carry the canonical upper-case form. Input is case-insensitive and normalized before lookup — `O` reads as `0`, `I` and `L` as `1` — so the pattern also admits lower case and those letters. People refer to Alert Groups by `#N`, never by `public_id`.
Id PublicId `json:"id"`
// Limiter `destination.slack.limiter`: the form proposes 30 requests per minute, sends and edits together.
Limiter Limiter `json:"limiter"`
// Mentions Nobody, `channel`, `here` and chosen users; `all` and messenger groups are refused with `unsupported`.
Mentions MentionSettings `json:"mentions"`
Name string `json:"name"`
Routes []EntityRef `json:"routes"`
TemplateError *TemplateErrorState `json:"template_error,omitempty"`
Type SlackDestinationType `json:"type"`
}
SlackDestination defines model for SlackDestination.
type SlackDestinationInput ¶
type SlackDestinationInput struct {
// ChannelId The channel's id as Slack shows it in the channel's details — `C…`, or `G…` for a private channel of an older workspace — in upper-case letters and digits, kept as entered without surrounding white space. Any other id, such as a direct chat's `D…`, a user's `U…` or a `#name`, is refused with `invalid_format`.
ChannelId string `json:"channel_id"`
// ConnectionId A Slack Connection.
ConnectionId PublicId `json:"connection_id"`
// Limiter `destination.slack.limiter`: the form proposes 30 requests per minute, sends and edits together.
Limiter Limiter `json:"limiter"`
// Mentions Nobody, `channel`, `here` and chosen users; `all` and messenger groups are refused with `unsupported`.
Mentions MentionSettings `json:"mentions"`
Name string `json:"name"`
Type SlackDestinationInputType `json:"type"`
}
SlackDestinationInput A Slack Destination (C-24.FR-3) is a public or private channel of its Slack Connection's workspace, named by its id. Saving it runs `conversations.info`, which posts nothing, refuses an unknown or archived channel and one without the bot, and keeps the channel's name.
type SlackDestinationInputType ¶
type SlackDestinationInputType string
SlackDestinationInputType defines model for SlackDestinationInput.Type.
const (
SlackDestinationInputTypeSlack SlackDestinationInputType = "slack"
)
Defines values for SlackDestinationInputType.
func (SlackDestinationInputType) Valid ¶
func (e SlackDestinationInputType) Valid() bool
Valid indicates whether the value is a known member of the SlackDestinationInputType enum.
type SlackDestinationType ¶
type SlackDestinationType string
SlackDestinationType defines model for SlackDestination.Type.
const (
SlackDestinationTypeSlack SlackDestinationType = "slack"
)
Defines values for SlackDestinationType.
func (SlackDestinationType) Valid ¶
func (e SlackDestinationType) Valid() bool
Valid indicates whether the value is a known member of the SlackDestinationType enum.
type SlackEventMode ¶
type SlackEventMode string
SlackEventMode How a Slack Connection receives button presses (`connection.slack.event_mode`, `socket` for a new Connection): `socket` — the Leader holds a Socket Mode connection with the app-level token, so Slack needs no address of Muster; `http` — Slack posts each press to the Connection's `callback_url`, signed with the Slack signing secret.
const ( SlackEventModeHttp SlackEventMode = "http" SlackEventModeSocket SlackEventMode = "socket" )
Defines values for SlackEventMode.
func (SlackEventMode) Valid ¶
func (e SlackEventMode) Valid() bool
Valid indicates whether the value is a known member of the SlackEventMode enum.
type SlackInteractionForm ¶
type SlackInteractionForm struct {
// Payload The interaction as JSON, a `block_actions` payload for a button press or a menu option (F-093), whose action `value` or `selected_option.value` carries the signed action id.
Payload string `json:"payload"`
}
SlackInteractionForm The form Slack posts for an interaction of the app; the signature covers its raw bytes.
type SlackInteractionFormdataRequestBody ¶
type SlackInteractionFormdataRequestBody = SlackInteractionForm
SlackInteractionFormdataRequestBody defines body for SlackInteraction for application/x-www-form-urlencoded ContentType.
type SlackInteractionParams ¶
type SlackInteractionParams struct {
// XSlackSignature `v0=` and the hex HMAC-SHA256 of `v0:<X-Slack-Request-Timestamp>:<raw body>` with the Slack signing secret.
XSlackSignature string `json:"X-Slack-Signature"`
// XSlackRequestTimestamp Unix time of the request, in seconds.
XSlackRequestTimestamp string `json:"X-Slack-Request-Timestamp"`
}
SlackInteractionParams defines parameters for SlackInteraction.
type SlackInteractionResponse ¶
type SlackInteractionResponse struct {
Body []byte
HTTPResponse *http.Response
// ApplicationproblemJSON400 the response for an HTTP 400 `application/problem+json` response
ApplicationproblemJSON400 *BadRequest
// ApplicationproblemJSON401 the response for an HTTP 401 `application/problem+json` response
ApplicationproblemJSON401 *Unauthorized
// ApplicationproblemJSON500 the response for an HTTP 500 `application/problem+json` response
ApplicationproblemJSON500 *InternalError
}
func ParseSlackInteractionResponse ¶
func ParseSlackInteractionResponse(rsp *http.Response) (*SlackInteractionResponse, error)
ParseSlackInteractionResponse parses an HTTP response from a SlackInteractionWithResponse call
func (SlackInteractionResponse) ContentType ¶
func (r SlackInteractionResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (SlackInteractionResponse) GetApplicationproblemJSON400 ¶
func (r SlackInteractionResponse) GetApplicationproblemJSON400() *BadRequest
GetApplicationproblemJSON400 returns the response for an HTTP 400 `application/problem+json` response
func (SlackInteractionResponse) GetApplicationproblemJSON401 ¶
func (r SlackInteractionResponse) GetApplicationproblemJSON401() *Unauthorized
GetApplicationproblemJSON401 returns the response for an HTTP 401 `application/problem+json` response
func (SlackInteractionResponse) GetApplicationproblemJSON500 ¶
func (r SlackInteractionResponse) GetApplicationproblemJSON500() *InternalError
GetApplicationproblemJSON500 returns the response for an HTTP 500 `application/problem+json` response
func (SlackInteractionResponse) GetBody ¶
func (r SlackInteractionResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (SlackInteractionResponse) Status ¶
func (r SlackInteractionResponse) Status() string
Status returns HTTPResponse.Status
func (SlackInteractionResponse) StatusCode ¶
func (r SlackInteractionResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type SlackLinkConfirm ¶
type SlackLinkConfirm struct {
// Code The code the bot sent as a direct message.
Code *string `json:"code,omitempty"`
// RequestId Opaque public identifier (`public_id`): a type prefix of one or two letters followed by 12 random characters of Crockford base32 (`0`–`9` and `A`–`Z` without `I`, `L`, `O` and `U`; 60 bits), such as `AGK7M3QX9P2RTA` for an Alert Group. Prefixes use the same letters and differ per type: `AG` Alert Group, `AE` Audit log entry, `AK` Account link, `AR` Account link request, `CN` Connection, `CR` check run, `DE` delivery event, `DS` Destination, `KR` Link rule, `NE` Note, `NK` Integration token, `NT` Integration, `PT` Personal access token, `RG` Organization, `RQ` record of the Request log, `RT` Route, `SA` Service account, `SN` session, `SR` User, `SS` Stored Snapshot, `ST` Service account token, `TB` Lookup table, `TE` Timeline entry. Responses always carry the canonical upper-case form. Input is case-insensitive and normalized before lookup — `O` reads as `0`, `I` and `L` as `1` — so the pattern also admits lower case and those letters. People refer to Alert Groups by `#N`, never by `public_id`.
RequestId PublicId `json:"request_id"`
}
SlackLinkConfirm defines model for SlackLinkConfirm.
type SlackLinkRequest ¶
type SlackLinkRequest struct {
// ConnectionId Opaque public identifier (`public_id`): a type prefix of one or two letters followed by 12 random characters of Crockford base32 (`0`–`9` and `A`–`Z` without `I`, `L`, `O` and `U`; 60 bits), such as `AGK7M3QX9P2RTA` for an Alert Group. Prefixes use the same letters and differ per type: `AG` Alert Group, `AE` Audit log entry, `AK` Account link, `AR` Account link request, `CN` Connection, `CR` check run, `DE` delivery event, `DS` Destination, `KR` Link rule, `NE` Note, `NK` Integration token, `NT` Integration, `PT` Personal access token, `RG` Organization, `RQ` record of the Request log, `RT` Route, `SA` Service account, `SN` session, `SR` User, `SS` Stored Snapshot, `ST` Service account token, `TB` Lookup table, `TE` Timeline entry. Responses always carry the canonical upper-case form. Input is case-insensitive and normalized before lookup — `O` reads as `0`, `I` and `L` as `1` — so the pattern also admits lower case and those letters. People refer to Alert Groups by `#N`, never by `public_id`.
ConnectionId PublicId `json:"connection_id"`
// Handle The Slack email or name of the account to link; a leading `@` of a name is optional.
Handle string `json:"handle"`
}
SlackLinkRequest defines model for SlackLinkRequest.
type SlackLinkStarted ¶
type SlackLinkStarted struct {
AttemptsRemaining int `json:"attempts_remaining"`
ExpiresAt time.Time `json:"expires_at"`
// RequestId Opaque public identifier (`public_id`): a type prefix of one or two letters followed by 12 random characters of Crockford base32 (`0`–`9` and `A`–`Z` without `I`, `L`, `O` and `U`; 60 bits), such as `AGK7M3QX9P2RTA` for an Alert Group. Prefixes use the same letters and differ per type: `AG` Alert Group, `AE` Audit log entry, `AK` Account link, `AR` Account link request, `CN` Connection, `CR` check run, `DE` delivery event, `DS` Destination, `KR` Link rule, `NE` Note, `NK` Integration token, `NT` Integration, `PT` Personal access token, `RG` Organization, `RQ` record of the Request log, `RT` Route, `SA` Service account, `SN` session, `SR` User, `SS` Stored Snapshot, `ST` Service account token, `TB` Lookup table, `TE` Timeline entry. Responses always carry the canonical upper-case form. Input is case-insensitive and normalized before lookup — `O` reads as `0`, `I` and `L` as `1` — so the pattern also admits lower case and those letters. People refer to Alert Groups by `#N`, never by `public_id`.
RequestId PublicId `json:"request_id"`
}
SlackLinkStarted defines model for SlackLinkStarted.
type SlackSocketStatus ¶
type SlackSocketStatus struct {
// HelloAt When the Leader's Socket Mode connection last received `hello`, on the business clock.
HelloAt time.Time `json:"hello_at"`
// OtherConnections The connections of the Slack app that `hello` counted beyond those the Leader holds; more than 0 means another program, usually another Connection or installation using the same Slack app, takes some of the presses.
OtherConnections int `json:"other_connections"`
}
SlackSocketStatus What a `hello` of the Leader's Socket Mode connection of a Slack Connection counted.
type SnapshotState ¶
type SnapshotState string
SnapshotState `pending` until a worker has processed it, `processed`, or `failed` when the body could not be processed. A failed Snapshot is never retried by itself; `muster ingest replay` reprocesses it after a fix.
const ( SnapshotStateFailed SnapshotState = "failed" SnapshotStatePending SnapshotState = "pending" SnapshotStateProcessed SnapshotState = "processed" )
Defines values for SnapshotState.
func (SnapshotState) Valid ¶
func (e SnapshotState) Valid() bool
Valid indicates whether the value is a known member of the SnapshotState enum.
type SnoozeAlertGroupJSONRequestBody ¶
type SnoozeAlertGroupJSONRequestBody = SnoozeRequest
SnoozeAlertGroupJSONRequestBody defines body for SnoozeAlertGroup for application/json ContentType.
type SnoozeAlertGroupResponse ¶
type SnoozeAlertGroupResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *CommandResult
// ApplicationproblemJSON400 the response for an HTTP 400 `application/problem+json` response
ApplicationproblemJSON400 *BadRequest
// ApplicationproblemJSON401 the response for an HTTP 401 `application/problem+json` response
ApplicationproblemJSON401 *Unauthorized
// ApplicationproblemJSON403 the response for an HTTP 403 `application/problem+json` response
ApplicationproblemJSON403 *Forbidden
// ApplicationproblemJSON404 the response for an HTTP 404 `application/problem+json` response
ApplicationproblemJSON404 *NotFound
// ApplicationproblemJSON409 the response for an HTTP 409 `application/problem+json` response
ApplicationproblemJSON409 *Conflict
// ApplicationproblemJSON422 the response for an HTTP 422 `application/problem+json` response
ApplicationproblemJSON422 *Unprocessable
// ApplicationproblemJSON429 the response for an HTTP 429 `application/problem+json` response
ApplicationproblemJSON429 *TooManyRequests
// Headers429 the parsed response headers for an HTTP 429 response
Headers429 *SnoozeAlertGroupResponse429Headers
}
func ParseSnoozeAlertGroupResponse ¶
func ParseSnoozeAlertGroupResponse(rsp *http.Response) (*SnoozeAlertGroupResponse, error)
ParseSnoozeAlertGroupResponse parses an HTTP response from a SnoozeAlertGroupWithResponse call
func (SnoozeAlertGroupResponse) ContentType ¶
func (r SnoozeAlertGroupResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (SnoozeAlertGroupResponse) GetApplicationproblemJSON400 ¶
func (r SnoozeAlertGroupResponse) GetApplicationproblemJSON400() *BadRequest
GetApplicationproblemJSON400 returns the response for an HTTP 400 `application/problem+json` response
func (SnoozeAlertGroupResponse) GetApplicationproblemJSON401 ¶
func (r SnoozeAlertGroupResponse) GetApplicationproblemJSON401() *Unauthorized
GetApplicationproblemJSON401 returns the response for an HTTP 401 `application/problem+json` response
func (SnoozeAlertGroupResponse) GetApplicationproblemJSON403 ¶
func (r SnoozeAlertGroupResponse) GetApplicationproblemJSON403() *Forbidden
GetApplicationproblemJSON403 returns the response for an HTTP 403 `application/problem+json` response
func (SnoozeAlertGroupResponse) GetApplicationproblemJSON404 ¶
func (r SnoozeAlertGroupResponse) GetApplicationproblemJSON404() *NotFound
GetApplicationproblemJSON404 returns the response for an HTTP 404 `application/problem+json` response
func (SnoozeAlertGroupResponse) GetApplicationproblemJSON409 ¶
func (r SnoozeAlertGroupResponse) GetApplicationproblemJSON409() *Conflict
GetApplicationproblemJSON409 returns the response for an HTTP 409 `application/problem+json` response
func (SnoozeAlertGroupResponse) GetApplicationproblemJSON422 ¶
func (r SnoozeAlertGroupResponse) GetApplicationproblemJSON422() *Unprocessable
GetApplicationproblemJSON422 returns the response for an HTTP 422 `application/problem+json` response
func (SnoozeAlertGroupResponse) GetApplicationproblemJSON429 ¶
func (r SnoozeAlertGroupResponse) GetApplicationproblemJSON429() *TooManyRequests
GetApplicationproblemJSON429 returns the response for an HTTP 429 `application/problem+json` response
func (SnoozeAlertGroupResponse) GetBody ¶
func (r SnoozeAlertGroupResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (SnoozeAlertGroupResponse) GetJSON200 ¶
func (r SnoozeAlertGroupResponse) GetJSON200() *CommandResult
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (SnoozeAlertGroupResponse) Status ¶
func (r SnoozeAlertGroupResponse) Status() string
Status returns HTTPResponse.Status
func (SnoozeAlertGroupResponse) StatusCode ¶
func (r SnoozeAlertGroupResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type SnoozeAlertGroupResponse429Headers ¶
type SnoozeAlertGroupResponse429Headers struct {
RetryAfter *int
}
SnoozeAlertGroupResponse429Headers the declared response headers of an HTTP 429 response for SnoozeAlertGroup
type SnoozePreset ¶
type SnoozePreset string
SnoozePreset A Snooze preset. `tomorrow` ends at the first start of the working day (`organization.workday_start`) after now, `week_start` at the first start of the working day on the first day of the week (`organization.week_start`) after now. After now is strict, so at the start itself the next one counts, and before the start of the working day `tomorrow` ends the same morning.
const ( Tomorrow SnoozePreset = "tomorrow" WeekStart SnoozePreset = "week_start" )
Defines values for SnoozePreset.
func (SnoozePreset) Valid ¶
func (e SnoozePreset) Valid() bool
Valid indicates whether the value is a known member of the SnoozePreset enum.
type SnoozePresetEnd ¶
type SnoozePresetEnd struct {
// Preset A Snooze preset. `tomorrow` ends at the first start of the working day (`organization.workday_start`) after now, `week_start` at the first start of the working day on the first day of the week (`organization.week_start`) after now. After now is strict, so at the start itself the next one counts, and before the start of the working day `tomorrow` ends the same morning.
Preset SnoozePreset `json:"preset"`
// Until The end a Snooze with this preset would set now.
Until time.Time `json:"until"`
}
SnoozePresetEnd defines model for SnoozePresetEnd.
type SnoozePresetList ¶
type SnoozePresetList struct {
// Items One item per Snooze preset, in the order `tomorrow`, `week_start`.
Items []SnoozePresetEnd `json:"items"`
// TimeZone The IANA time zone of the ends — the request's, else the caller's profile time zone, else the Organization's.
TimeZone string `json:"time_zone"`
// WeekStart A day of the week. As the Organization's `week_start` it is `organization.week_start` (default `monday`), the first day of the week, on which the Snooze preset `week_start` ends at the start of the working day; omit it on an update to keep it.
WeekStart Weekday `json:"week_start"`
// WorkdayStart The start of the working day, `organization.workday_start`.
WorkdayStart string `json:"workday_start"`
}
SnoozePresetList defines model for SnoozePresetList.
type SnoozeRequest ¶
type SnoozeRequest struct {
// NoEnd Snooze until someone unsnoozes it.
NoEnd *SnoozeRequestNoEnd `json:"no_end,omitempty"`
// Preset A Snooze preset. `tomorrow` ends at the first start of the working day (`organization.workday_start`) after now, `week_start` at the first start of the working day on the first day of the week (`organization.week_start`) after now. After now is strict, so at the start itself the next one counts, and before the start of the working day `tomorrow` ends the same morning.
Preset *SnoozePreset `json:"preset,omitempty"`
// TimeZone IANA time zone in which the end of `preset` is computed; only with `preset`.
TimeZone *string `json:"time_zone,omitempty"`
// Until A future time.
Until *time.Time `json:"until,omitempty"`
}
SnoozeRequest Exactly one of `until`, `no_end` and `preset`; none or more than one is `422` `one_of_required`, and a past `until` is `422` `out_of_range` at `/until`. A Snooze with no end is chosen explicitly, never by leaving a field out; the UI shows a warning before sending `no_end`. `time_zone` goes only with `preset`, so a `time_zone` without `preset` is `422` `unsupported` at `/time_zone`, and a time zone Muster does not know (or `Local`) is `422` `invalid_format` at `/time_zone`. Without `time_zone` the end of a preset is computed in the profile time zone of the User the caller acts as, else in the Organization's. In `runBulkCommand` the pointers start with `/snooze`.
type SnoozeRequestNoEnd ¶
type SnoozeRequestNoEnd bool
SnoozeRequestNoEnd Snooze until someone unsnoozes it.
const (
True SnoozeRequestNoEnd = true
)
Defines values for SnoozeRequestNoEnd.
func (SnoozeRequestNoEnd) Valid ¶
func (e SnoozeRequestNoEnd) Valid() bool
Valid indicates whether the value is a known member of the SnoozeRequestNoEnd enum.
type StartBridgeCodeLinkJSONRequestBody ¶
type StartBridgeCodeLinkJSONRequestBody = BridgeCodeLinkRequest
StartBridgeCodeLinkJSONRequestBody defines body for StartBridgeCodeLink for application/json ContentType.
type StartBridgeCodeLinkResponse ¶
type StartBridgeCodeLinkResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON202 the response for an HTTP 202 `application/json` response
JSON202 *BridgeCodeLinkStarted
// ApplicationproblemJSON400 the response for an HTTP 400 `application/problem+json` response
ApplicationproblemJSON400 *BadRequest
// ApplicationproblemJSON401 the response for an HTTP 401 `application/problem+json` response
ApplicationproblemJSON401 *Unauthorized
// ApplicationproblemJSON403 the response for an HTTP 403 `application/problem+json` response
ApplicationproblemJSON403 *Forbidden
// ApplicationproblemJSON409 the response for an HTTP 409 `application/problem+json` response
ApplicationproblemJSON409 *Conflict
// ApplicationproblemJSON422 the response for an HTTP 422 `application/problem+json` response
ApplicationproblemJSON422 *Unprocessable
// ApplicationproblemJSON429 the response for an HTTP 429 `application/problem+json` response
ApplicationproblemJSON429 *TooManyRequests
// ApplicationproblemJSON503 the response for an HTTP 503 `application/problem+json` response
ApplicationproblemJSON503 *Limited
// Headers429 the parsed response headers for an HTTP 429 response
Headers429 *StartBridgeCodeLinkResponse429Headers
// Headers503 the parsed response headers for an HTTP 503 response
Headers503 *StartBridgeCodeLinkResponse503Headers
}
func ParseStartBridgeCodeLinkResponse ¶
func ParseStartBridgeCodeLinkResponse(rsp *http.Response) (*StartBridgeCodeLinkResponse, error)
ParseStartBridgeCodeLinkResponse parses an HTTP response from a StartBridgeCodeLinkWithResponse call
func (StartBridgeCodeLinkResponse) ContentType ¶
func (r StartBridgeCodeLinkResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (StartBridgeCodeLinkResponse) GetApplicationproblemJSON400 ¶
func (r StartBridgeCodeLinkResponse) GetApplicationproblemJSON400() *BadRequest
GetApplicationproblemJSON400 returns the response for an HTTP 400 `application/problem+json` response
func (StartBridgeCodeLinkResponse) GetApplicationproblemJSON401 ¶
func (r StartBridgeCodeLinkResponse) GetApplicationproblemJSON401() *Unauthorized
GetApplicationproblemJSON401 returns the response for an HTTP 401 `application/problem+json` response
func (StartBridgeCodeLinkResponse) GetApplicationproblemJSON403 ¶
func (r StartBridgeCodeLinkResponse) GetApplicationproblemJSON403() *Forbidden
GetApplicationproblemJSON403 returns the response for an HTTP 403 `application/problem+json` response
func (StartBridgeCodeLinkResponse) GetApplicationproblemJSON409 ¶
func (r StartBridgeCodeLinkResponse) GetApplicationproblemJSON409() *Conflict
GetApplicationproblemJSON409 returns the response for an HTTP 409 `application/problem+json` response
func (StartBridgeCodeLinkResponse) GetApplicationproblemJSON422 ¶
func (r StartBridgeCodeLinkResponse) GetApplicationproblemJSON422() *Unprocessable
GetApplicationproblemJSON422 returns the response for an HTTP 422 `application/problem+json` response
func (StartBridgeCodeLinkResponse) GetApplicationproblemJSON429 ¶
func (r StartBridgeCodeLinkResponse) GetApplicationproblemJSON429() *TooManyRequests
GetApplicationproblemJSON429 returns the response for an HTTP 429 `application/problem+json` response
func (StartBridgeCodeLinkResponse) GetApplicationproblemJSON503 ¶
func (r StartBridgeCodeLinkResponse) GetApplicationproblemJSON503() *Limited
GetApplicationproblemJSON503 returns the response for an HTTP 503 `application/problem+json` response
func (StartBridgeCodeLinkResponse) GetBody ¶
func (r StartBridgeCodeLinkResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (StartBridgeCodeLinkResponse) GetJSON202 ¶
func (r StartBridgeCodeLinkResponse) GetJSON202() *BridgeCodeLinkStarted
GetJSON202 returns the response for an HTTP 202 `application/json` response
func (StartBridgeCodeLinkResponse) Status ¶
func (r StartBridgeCodeLinkResponse) Status() string
Status returns HTTPResponse.Status
func (StartBridgeCodeLinkResponse) StatusCode ¶
func (r StartBridgeCodeLinkResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type StartBridgeCodeLinkResponse429Headers ¶
type StartBridgeCodeLinkResponse429Headers struct {
RetryAfter *int
}
StartBridgeCodeLinkResponse429Headers the declared response headers of an HTTP 429 response for StartBridgeCodeLink
type StartBridgeCodeLinkResponse503Headers ¶
type StartBridgeCodeLinkResponse503Headers struct {
RetryAfter *int
}
StartBridgeCodeLinkResponse503Headers the declared response headers of an HTTP 503 response for StartBridgeCodeLink
type StartBridgeLinkJSONRequestBody ¶
type StartBridgeLinkJSONRequestBody = BridgeLinkRequest
StartBridgeLinkJSONRequestBody defines body for StartBridgeLink for application/json ContentType.
type StartBridgeLinkResponse ¶
type StartBridgeLinkResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON201 the response for an HTTP 201 `application/json` response
JSON201 *BridgeLinkStart
// ApplicationproblemJSON400 the response for an HTTP 400 `application/problem+json` response
ApplicationproblemJSON400 *BadRequest
// ApplicationproblemJSON401 the response for an HTTP 401 `application/problem+json` response
ApplicationproblemJSON401 *Unauthorized
// ApplicationproblemJSON403 the response for an HTTP 403 `application/problem+json` response
ApplicationproblemJSON403 *Forbidden
// ApplicationproblemJSON422 the response for an HTTP 422 `application/problem+json` response
ApplicationproblemJSON422 *Unprocessable
// ApplicationproblemJSON429 the response for an HTTP 429 `application/problem+json` response
ApplicationproblemJSON429 *TooManyRequests
// Headers429 the parsed response headers for an HTTP 429 response
Headers429 *StartBridgeLinkResponse429Headers
}
func ParseStartBridgeLinkResponse ¶
func ParseStartBridgeLinkResponse(rsp *http.Response) (*StartBridgeLinkResponse, error)
ParseStartBridgeLinkResponse parses an HTTP response from a StartBridgeLinkWithResponse call
func (StartBridgeLinkResponse) ContentType ¶
func (r StartBridgeLinkResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (StartBridgeLinkResponse) GetApplicationproblemJSON400 ¶
func (r StartBridgeLinkResponse) GetApplicationproblemJSON400() *BadRequest
GetApplicationproblemJSON400 returns the response for an HTTP 400 `application/problem+json` response
func (StartBridgeLinkResponse) GetApplicationproblemJSON401 ¶
func (r StartBridgeLinkResponse) GetApplicationproblemJSON401() *Unauthorized
GetApplicationproblemJSON401 returns the response for an HTTP 401 `application/problem+json` response
func (StartBridgeLinkResponse) GetApplicationproblemJSON403 ¶
func (r StartBridgeLinkResponse) GetApplicationproblemJSON403() *Forbidden
GetApplicationproblemJSON403 returns the response for an HTTP 403 `application/problem+json` response
func (StartBridgeLinkResponse) GetApplicationproblemJSON422 ¶
func (r StartBridgeLinkResponse) GetApplicationproblemJSON422() *Unprocessable
GetApplicationproblemJSON422 returns the response for an HTTP 422 `application/problem+json` response
func (StartBridgeLinkResponse) GetApplicationproblemJSON429 ¶
func (r StartBridgeLinkResponse) GetApplicationproblemJSON429() *TooManyRequests
GetApplicationproblemJSON429 returns the response for an HTTP 429 `application/problem+json` response
func (StartBridgeLinkResponse) GetBody ¶
func (r StartBridgeLinkResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (StartBridgeLinkResponse) GetJSON201 ¶
func (r StartBridgeLinkResponse) GetJSON201() *BridgeLinkStart
GetJSON201 returns the response for an HTTP 201 `application/json` response
func (StartBridgeLinkResponse) Status ¶
func (r StartBridgeLinkResponse) Status() string
Status returns HTTPResponse.Status
func (StartBridgeLinkResponse) StatusCode ¶
func (r StartBridgeLinkResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type StartBridgeLinkResponse429Headers ¶
type StartBridgeLinkResponse429Headers struct {
RetryAfter *int
}
StartBridgeLinkResponse429Headers the declared response headers of an HTTP 429 response for StartBridgeLink
type StartMattermostLinkJSONRequestBody ¶
type StartMattermostLinkJSONRequestBody = MattermostLinkRequest
StartMattermostLinkJSONRequestBody defines body for StartMattermostLink for application/json ContentType.
type StartMattermostLinkResponse ¶
type StartMattermostLinkResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON202 the response for an HTTP 202 `application/json` response
JSON202 *MattermostLinkStarted
// ApplicationproblemJSON400 the response for an HTTP 400 `application/problem+json` response
ApplicationproblemJSON400 *BadRequest
// ApplicationproblemJSON401 the response for an HTTP 401 `application/problem+json` response
ApplicationproblemJSON401 *Unauthorized
// ApplicationproblemJSON403 the response for an HTTP 403 `application/problem+json` response
ApplicationproblemJSON403 *Forbidden
// ApplicationproblemJSON404 the response for an HTTP 404 `application/problem+json` response
ApplicationproblemJSON404 *NotFound
// ApplicationproblemJSON409 the response for an HTTP 409 `application/problem+json` response
ApplicationproblemJSON409 *Conflict
// ApplicationproblemJSON422 the response for an HTTP 422 `application/problem+json` response
ApplicationproblemJSON422 *Unprocessable
// ApplicationproblemJSON429 the response for an HTTP 429 `application/problem+json` response
ApplicationproblemJSON429 *TooManyRequests
// ApplicationproblemJSON503 the response for an HTTP 503 `application/problem+json` response
ApplicationproblemJSON503 *Limited
// Headers429 the parsed response headers for an HTTP 429 response
Headers429 *StartMattermostLinkResponse429Headers
// Headers503 the parsed response headers for an HTTP 503 response
Headers503 *StartMattermostLinkResponse503Headers
}
func ParseStartMattermostLinkResponse ¶
func ParseStartMattermostLinkResponse(rsp *http.Response) (*StartMattermostLinkResponse, error)
ParseStartMattermostLinkResponse parses an HTTP response from a StartMattermostLinkWithResponse call
func (StartMattermostLinkResponse) ContentType ¶
func (r StartMattermostLinkResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (StartMattermostLinkResponse) GetApplicationproblemJSON400 ¶
func (r StartMattermostLinkResponse) GetApplicationproblemJSON400() *BadRequest
GetApplicationproblemJSON400 returns the response for an HTTP 400 `application/problem+json` response
func (StartMattermostLinkResponse) GetApplicationproblemJSON401 ¶
func (r StartMattermostLinkResponse) GetApplicationproblemJSON401() *Unauthorized
GetApplicationproblemJSON401 returns the response for an HTTP 401 `application/problem+json` response
func (StartMattermostLinkResponse) GetApplicationproblemJSON403 ¶
func (r StartMattermostLinkResponse) GetApplicationproblemJSON403() *Forbidden
GetApplicationproblemJSON403 returns the response for an HTTP 403 `application/problem+json` response
func (StartMattermostLinkResponse) GetApplicationproblemJSON404 ¶
func (r StartMattermostLinkResponse) GetApplicationproblemJSON404() *NotFound
GetApplicationproblemJSON404 returns the response for an HTTP 404 `application/problem+json` response
func (StartMattermostLinkResponse) GetApplicationproblemJSON409 ¶
func (r StartMattermostLinkResponse) GetApplicationproblemJSON409() *Conflict
GetApplicationproblemJSON409 returns the response for an HTTP 409 `application/problem+json` response
func (StartMattermostLinkResponse) GetApplicationproblemJSON422 ¶
func (r StartMattermostLinkResponse) GetApplicationproblemJSON422() *Unprocessable
GetApplicationproblemJSON422 returns the response for an HTTP 422 `application/problem+json` response
func (StartMattermostLinkResponse) GetApplicationproblemJSON429 ¶
func (r StartMattermostLinkResponse) GetApplicationproblemJSON429() *TooManyRequests
GetApplicationproblemJSON429 returns the response for an HTTP 429 `application/problem+json` response
func (StartMattermostLinkResponse) GetApplicationproblemJSON503 ¶
func (r StartMattermostLinkResponse) GetApplicationproblemJSON503() *Limited
GetApplicationproblemJSON503 returns the response for an HTTP 503 `application/problem+json` response
func (StartMattermostLinkResponse) GetBody ¶
func (r StartMattermostLinkResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (StartMattermostLinkResponse) GetJSON202 ¶
func (r StartMattermostLinkResponse) GetJSON202() *MattermostLinkStarted
GetJSON202 returns the response for an HTTP 202 `application/json` response
func (StartMattermostLinkResponse) Status ¶
func (r StartMattermostLinkResponse) Status() string
Status returns HTTPResponse.Status
func (StartMattermostLinkResponse) StatusCode ¶
func (r StartMattermostLinkResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type StartMattermostLinkResponse429Headers ¶
type StartMattermostLinkResponse429Headers struct {
RetryAfter *int
}
StartMattermostLinkResponse429Headers the declared response headers of an HTTP 429 response for StartMattermostLink
type StartMattermostLinkResponse503Headers ¶
type StartMattermostLinkResponse503Headers struct {
RetryAfter *int
}
StartMattermostLinkResponse503Headers the declared response headers of an HTTP 503 response for StartMattermostLink
type StartOidcLinkResponse ¶
type StartOidcLinkResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON201 the response for an HTTP 201 `application/json` response
JSON201 *OidcLinkStart
// ApplicationproblemJSON401 the response for an HTTP 401 `application/problem+json` response
ApplicationproblemJSON401 *Unauthorized
// ApplicationproblemJSON403 the response for an HTTP 403 `application/problem+json` response
ApplicationproblemJSON403 *Forbidden
// ApplicationproblemJSON409 the response for an HTTP 409 `application/problem+json` response
ApplicationproblemJSON409 *Conflict
// ApplicationproblemJSON429 the response for an HTTP 429 `application/problem+json` response
ApplicationproblemJSON429 *TooManyRequests
// Headers429 the parsed response headers for an HTTP 429 response
Headers429 *StartOidcLinkResponse429Headers
}
func ParseStartOidcLinkResponse ¶
func ParseStartOidcLinkResponse(rsp *http.Response) (*StartOidcLinkResponse, error)
ParseStartOidcLinkResponse parses an HTTP response from a StartOidcLinkWithResponse call
func (StartOidcLinkResponse) ContentType ¶
func (r StartOidcLinkResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (StartOidcLinkResponse) GetApplicationproblemJSON401 ¶
func (r StartOidcLinkResponse) GetApplicationproblemJSON401() *Unauthorized
GetApplicationproblemJSON401 returns the response for an HTTP 401 `application/problem+json` response
func (StartOidcLinkResponse) GetApplicationproblemJSON403 ¶
func (r StartOidcLinkResponse) GetApplicationproblemJSON403() *Forbidden
GetApplicationproblemJSON403 returns the response for an HTTP 403 `application/problem+json` response
func (StartOidcLinkResponse) GetApplicationproblemJSON409 ¶
func (r StartOidcLinkResponse) GetApplicationproblemJSON409() *Conflict
GetApplicationproblemJSON409 returns the response for an HTTP 409 `application/problem+json` response
func (StartOidcLinkResponse) GetApplicationproblemJSON429 ¶
func (r StartOidcLinkResponse) GetApplicationproblemJSON429() *TooManyRequests
GetApplicationproblemJSON429 returns the response for an HTTP 429 `application/problem+json` response
func (StartOidcLinkResponse) GetBody ¶
func (r StartOidcLinkResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (StartOidcLinkResponse) GetJSON201 ¶
func (r StartOidcLinkResponse) GetJSON201() *OidcLinkStart
GetJSON201 returns the response for an HTTP 201 `application/json` response
func (StartOidcLinkResponse) Status ¶
func (r StartOidcLinkResponse) Status() string
Status returns HTTPResponse.Status
func (StartOidcLinkResponse) StatusCode ¶
func (r StartOidcLinkResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type StartOidcLinkResponse429Headers ¶
type StartOidcLinkResponse429Headers struct {
RetryAfter *int
}
StartOidcLinkResponse429Headers the declared response headers of an HTTP 429 response for StartOidcLink
type StartOidcSignInParams ¶
type StartOidcSignInParams struct {
// ReturnTo Path to open after sign-in: a relative path that starts with a single `/` (never `//`, `/\` or a scheme), at most 2000 characters. Anything else is ignored, not refused, so the flow is no open redirect.
ReturnTo *string `form:"return_to,omitempty" json:"return_to,omitempty"`
}
StartOidcSignInParams defines parameters for StartOidcSignIn.
type StartOidcSignInResponse ¶
type StartOidcSignInResponse struct {
Body []byte
HTTPResponse *http.Response
// ApplicationproblemJSON409 the response for an HTTP 409 `application/problem+json` response
ApplicationproblemJSON409 *Conflict
// ApplicationproblemJSON429 the response for an HTTP 429 `application/problem+json` response
ApplicationproblemJSON429 *TooManyRequests
// Headers302 the parsed response headers for an HTTP 302 response
Headers302 *StartOidcSignInResponse302Headers
// Headers429 the parsed response headers for an HTTP 429 response
Headers429 *StartOidcSignInResponse429Headers
}
func ParseStartOidcSignInResponse ¶
func ParseStartOidcSignInResponse(rsp *http.Response) (*StartOidcSignInResponse, error)
ParseStartOidcSignInResponse parses an HTTP response from a StartOidcSignInWithResponse call
func (StartOidcSignInResponse) ContentType ¶
func (r StartOidcSignInResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (StartOidcSignInResponse) GetApplicationproblemJSON409 ¶
func (r StartOidcSignInResponse) GetApplicationproblemJSON409() *Conflict
GetApplicationproblemJSON409 returns the response for an HTTP 409 `application/problem+json` response
func (StartOidcSignInResponse) GetApplicationproblemJSON429 ¶
func (r StartOidcSignInResponse) GetApplicationproblemJSON429() *TooManyRequests
GetApplicationproblemJSON429 returns the response for an HTTP 429 `application/problem+json` response
func (StartOidcSignInResponse) GetBody ¶
func (r StartOidcSignInResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (StartOidcSignInResponse) Status ¶
func (r StartOidcSignInResponse) Status() string
Status returns HTTPResponse.Status
func (StartOidcSignInResponse) StatusCode ¶
func (r StartOidcSignInResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type StartOidcSignInResponse302Headers ¶
type StartOidcSignInResponse302Headers struct {
Location *string
}
StartOidcSignInResponse302Headers the declared response headers of an HTTP 302 response for StartOidcSignIn
type StartOidcSignInResponse429Headers ¶
type StartOidcSignInResponse429Headers struct {
RetryAfter *int
}
StartOidcSignInResponse429Headers the declared response headers of an HTTP 429 response for StartOidcSignIn
type StartSlackLinkJSONRequestBody ¶
type StartSlackLinkJSONRequestBody = SlackLinkRequest
StartSlackLinkJSONRequestBody defines body for StartSlackLink for application/json ContentType.
type StartSlackLinkResponse ¶
type StartSlackLinkResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON202 the response for an HTTP 202 `application/json` response
JSON202 *SlackLinkStarted
// ApplicationproblemJSON400 the response for an HTTP 400 `application/problem+json` response
ApplicationproblemJSON400 *BadRequest
// ApplicationproblemJSON401 the response for an HTTP 401 `application/problem+json` response
ApplicationproblemJSON401 *Unauthorized
// ApplicationproblemJSON403 the response for an HTTP 403 `application/problem+json` response
ApplicationproblemJSON403 *Forbidden
// ApplicationproblemJSON409 the response for an HTTP 409 `application/problem+json` response
ApplicationproblemJSON409 *Conflict
// ApplicationproblemJSON422 the response for an HTTP 422 `application/problem+json` response
ApplicationproblemJSON422 *Unprocessable
// ApplicationproblemJSON429 the response for an HTTP 429 `application/problem+json` response
ApplicationproblemJSON429 *TooManyRequests
// ApplicationproblemJSON503 the response for an HTTP 503 `application/problem+json` response
ApplicationproblemJSON503 *Limited
// Headers429 the parsed response headers for an HTTP 429 response
Headers429 *StartSlackLinkResponse429Headers
// Headers503 the parsed response headers for an HTTP 503 response
Headers503 *StartSlackLinkResponse503Headers
}
func ParseStartSlackLinkResponse ¶
func ParseStartSlackLinkResponse(rsp *http.Response) (*StartSlackLinkResponse, error)
ParseStartSlackLinkResponse parses an HTTP response from a StartSlackLinkWithResponse call
func (StartSlackLinkResponse) ContentType ¶
func (r StartSlackLinkResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (StartSlackLinkResponse) GetApplicationproblemJSON400 ¶
func (r StartSlackLinkResponse) GetApplicationproblemJSON400() *BadRequest
GetApplicationproblemJSON400 returns the response for an HTTP 400 `application/problem+json` response
func (StartSlackLinkResponse) GetApplicationproblemJSON401 ¶
func (r StartSlackLinkResponse) GetApplicationproblemJSON401() *Unauthorized
GetApplicationproblemJSON401 returns the response for an HTTP 401 `application/problem+json` response
func (StartSlackLinkResponse) GetApplicationproblemJSON403 ¶
func (r StartSlackLinkResponse) GetApplicationproblemJSON403() *Forbidden
GetApplicationproblemJSON403 returns the response for an HTTP 403 `application/problem+json` response
func (StartSlackLinkResponse) GetApplicationproblemJSON409 ¶
func (r StartSlackLinkResponse) GetApplicationproblemJSON409() *Conflict
GetApplicationproblemJSON409 returns the response for an HTTP 409 `application/problem+json` response
func (StartSlackLinkResponse) GetApplicationproblemJSON422 ¶
func (r StartSlackLinkResponse) GetApplicationproblemJSON422() *Unprocessable
GetApplicationproblemJSON422 returns the response for an HTTP 422 `application/problem+json` response
func (StartSlackLinkResponse) GetApplicationproblemJSON429 ¶
func (r StartSlackLinkResponse) GetApplicationproblemJSON429() *TooManyRequests
GetApplicationproblemJSON429 returns the response for an HTTP 429 `application/problem+json` response
func (StartSlackLinkResponse) GetApplicationproblemJSON503 ¶
func (r StartSlackLinkResponse) GetApplicationproblemJSON503() *Limited
GetApplicationproblemJSON503 returns the response for an HTTP 503 `application/problem+json` response
func (StartSlackLinkResponse) GetBody ¶
func (r StartSlackLinkResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (StartSlackLinkResponse) GetJSON202 ¶
func (r StartSlackLinkResponse) GetJSON202() *SlackLinkStarted
GetJSON202 returns the response for an HTTP 202 `application/json` response
func (StartSlackLinkResponse) Status ¶
func (r StartSlackLinkResponse) Status() string
Status returns HTTPResponse.Status
func (StartSlackLinkResponse) StatusCode ¶
func (r StartSlackLinkResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type StartSlackLinkResponse429Headers ¶
type StartSlackLinkResponse429Headers struct {
RetryAfter *int
}
StartSlackLinkResponse429Headers the declared response headers of an HTTP 429 response for StartSlackLink
type StartSlackLinkResponse503Headers ¶
type StartSlackLinkResponse503Headers struct {
RetryAfter *int
}
StartSlackLinkResponse503Headers the declared response headers of an HTTP 503 response for StartSlackLink
type StartTelegramLinkJSONRequestBody ¶
type StartTelegramLinkJSONRequestBody = TelegramLinkRequest
StartTelegramLinkJSONRequestBody defines body for StartTelegramLink for application/json ContentType.
type StartTelegramLinkResponse ¶
type StartTelegramLinkResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON201 the response for an HTTP 201 `application/json` response
JSON201 *TelegramLinkStart
// ApplicationproblemJSON400 the response for an HTTP 400 `application/problem+json` response
ApplicationproblemJSON400 *BadRequest
// ApplicationproblemJSON401 the response for an HTTP 401 `application/problem+json` response
ApplicationproblemJSON401 *Unauthorized
// ApplicationproblemJSON403 the response for an HTTP 403 `application/problem+json` response
ApplicationproblemJSON403 *Forbidden
// ApplicationproblemJSON409 the response for an HTTP 409 `application/problem+json` response
ApplicationproblemJSON409 *Conflict
// ApplicationproblemJSON422 the response for an HTTP 422 `application/problem+json` response
ApplicationproblemJSON422 *Unprocessable
// ApplicationproblemJSON429 the response for an HTTP 429 `application/problem+json` response
ApplicationproblemJSON429 *TooManyRequests
// ApplicationproblemJSON503 the response for an HTTP 503 `application/problem+json` response
ApplicationproblemJSON503 *Limited
// Headers429 the parsed response headers for an HTTP 429 response
Headers429 *StartTelegramLinkResponse429Headers
// Headers503 the parsed response headers for an HTTP 503 response
Headers503 *StartTelegramLinkResponse503Headers
}
func ParseStartTelegramLinkResponse ¶
func ParseStartTelegramLinkResponse(rsp *http.Response) (*StartTelegramLinkResponse, error)
ParseStartTelegramLinkResponse parses an HTTP response from a StartTelegramLinkWithResponse call
func (StartTelegramLinkResponse) ContentType ¶
func (r StartTelegramLinkResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (StartTelegramLinkResponse) GetApplicationproblemJSON400 ¶
func (r StartTelegramLinkResponse) GetApplicationproblemJSON400() *BadRequest
GetApplicationproblemJSON400 returns the response for an HTTP 400 `application/problem+json` response
func (StartTelegramLinkResponse) GetApplicationproblemJSON401 ¶
func (r StartTelegramLinkResponse) GetApplicationproblemJSON401() *Unauthorized
GetApplicationproblemJSON401 returns the response for an HTTP 401 `application/problem+json` response
func (StartTelegramLinkResponse) GetApplicationproblemJSON403 ¶
func (r StartTelegramLinkResponse) GetApplicationproblemJSON403() *Forbidden
GetApplicationproblemJSON403 returns the response for an HTTP 403 `application/problem+json` response
func (StartTelegramLinkResponse) GetApplicationproblemJSON409 ¶
func (r StartTelegramLinkResponse) GetApplicationproblemJSON409() *Conflict
GetApplicationproblemJSON409 returns the response for an HTTP 409 `application/problem+json` response
func (StartTelegramLinkResponse) GetApplicationproblemJSON422 ¶
func (r StartTelegramLinkResponse) GetApplicationproblemJSON422() *Unprocessable
GetApplicationproblemJSON422 returns the response for an HTTP 422 `application/problem+json` response
func (StartTelegramLinkResponse) GetApplicationproblemJSON429 ¶
func (r StartTelegramLinkResponse) GetApplicationproblemJSON429() *TooManyRequests
GetApplicationproblemJSON429 returns the response for an HTTP 429 `application/problem+json` response
func (StartTelegramLinkResponse) GetApplicationproblemJSON503 ¶
func (r StartTelegramLinkResponse) GetApplicationproblemJSON503() *Limited
GetApplicationproblemJSON503 returns the response for an HTTP 503 `application/problem+json` response
func (StartTelegramLinkResponse) GetBody ¶
func (r StartTelegramLinkResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (StartTelegramLinkResponse) GetJSON201 ¶
func (r StartTelegramLinkResponse) GetJSON201() *TelegramLinkStart
GetJSON201 returns the response for an HTTP 201 `application/json` response
func (StartTelegramLinkResponse) Status ¶
func (r StartTelegramLinkResponse) Status() string
Status returns HTTPResponse.Status
func (StartTelegramLinkResponse) StatusCode ¶
func (r StartTelegramLinkResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type StartTelegramLinkResponse429Headers ¶
type StartTelegramLinkResponse429Headers struct {
RetryAfter *int
}
StartTelegramLinkResponse429Headers the declared response headers of an HTTP 429 response for StartTelegramLink
type StartTelegramLinkResponse503Headers ¶
type StartTelegramLinkResponse503Headers struct {
RetryAfter *int
}
StartTelegramLinkResponse503Headers the declared response headers of an HTTP 503 response for StartTelegramLink
type StatisticsDay ¶
type StatisticsDay struct {
AlertGroupCount int `json:"alert_group_count"`
Date openapi_types.Date `json:"date"`
// TimeToAcknowledge From the start of each Alert Group to its first acknowledgement; see `AlertGroupStatisticsItem`.
TimeToAcknowledge DurationStats `json:"time_to_acknowledge"`
TimeToResolve DurationStats `json:"time_to_resolve"`
}
StatisticsDay defines model for StatisticsDay.
type StoredSnapshot ¶
type StoredSnapshot struct {
AlertCount nullable.Nullable[int] `json:"alert_count,omitempty"`
// Body The body exactly as received. Alertmanager sends a JSON payload (see `AlertmanagerWebhook`), but any body up to the limit is stored.
Body string `json:"body"`
// BodyEncoding `base64` when the stored bytes are not valid UTF-8.
BodyEncoding StoredSnapshotBodyEncoding `json:"body_encoding"`
// ContentType The `Content-Type` of the request, if any.
ContentType nullable.Nullable[string] `json:"content_type"`
// GroupKey The `groupKey` of the payload; null when it could not be read.
GroupKey nullable.Nullable[string] `json:"group_key,omitempty"`
// Id Opaque public identifier (`public_id`): a type prefix of one or two letters followed by 12 random characters of Crockford base32 (`0`–`9` and `A`–`Z` without `I`, `L`, `O` and `U`; 60 bits), such as `AGK7M3QX9P2RTA` for an Alert Group. Prefixes use the same letters and differ per type: `AG` Alert Group, `AE` Audit log entry, `AK` Account link, `AR` Account link request, `CN` Connection, `CR` check run, `DE` delivery event, `DS` Destination, `KR` Link rule, `NE` Note, `NK` Integration token, `NT` Integration, `PT` Personal access token, `RG` Organization, `RQ` record of the Request log, `RT` Route, `SA` Service account, `SN` session, `SR` User, `SS` Stored Snapshot, `ST` Service account token, `TB` Lookup table, `TE` Timeline entry. Responses always carry the canonical upper-case form. Input is case-insensitive and normalized before lookup — `O` reads as `0`, `I` and `L` as `1` — so the pattern also admits lower case and those letters. People refer to Alert Groups by `#N`, never by `public_id`.
Id PublicId `json:"id"`
Integration EntityRef `json:"integration"`
ProcessedAt nullable.Nullable[time.Time] `json:"processed_at,omitempty"`
// ProcessingError Why processing failed, for `failed`: for example the body is not valid JSON or does not look like an Alertmanager payload. The body itself stays as received.
ProcessingError nullable.Nullable[string] `json:"processing_error,omitempty"`
ReceivedAt time.Time `json:"received_at"`
SizeBytes int `json:"size_bytes"`
// State `pending` until a worker has processed it, `processed`, or `failed` when the body could not be processed. A failed Snapshot is never retried by itself; `muster ingest replay` reprocesses it after a fix.
State SnapshotState `json:"state"`
TruncatedAlerts nullable.Nullable[int] `json:"truncated_alerts,omitempty"`
}
StoredSnapshot defines model for StoredSnapshot.
type StoredSnapshotBodyEncoding ¶
type StoredSnapshotBodyEncoding string
StoredSnapshotBodyEncoding `base64` when the stored bytes are not valid UTF-8.
const ( Base64 StoredSnapshotBodyEncoding = "base64" Utf8 StoredSnapshotBodyEncoding = "utf8" )
Defines values for StoredSnapshotBodyEncoding.
func (StoredSnapshotBodyEncoding) Valid ¶
func (e StoredSnapshotBodyEncoding) Valid() bool
Valid indicates whether the value is a known member of the StoredSnapshotBodyEncoding enum.
type StoredSnapshotId ¶
type StoredSnapshotId = PublicId
StoredSnapshotId Opaque public identifier (`public_id`): a type prefix of one or two letters followed by 12 random characters of Crockford base32 (`0`–`9` and `A`–`Z` without `I`, `L`, `O` and `U`; 60 bits), such as `AGK7M3QX9P2RTA` for an Alert Group. Prefixes use the same letters and differ per type: `AG` Alert Group, `AE` Audit log entry, `AK` Account link, `AR` Account link request, `CN` Connection, `CR` check run, `DE` delivery event, `DS` Destination, `KR` Link rule, `NE` Note, `NK` Integration token, `NT` Integration, `PT` Personal access token, `RG` Organization, `RQ` record of the Request log, `RT` Route, `SA` Service account, `SN` session, `SR` User, `SS` Stored Snapshot, `ST` Service account token, `TB` Lookup table, `TE` Timeline entry. Responses always carry the canonical upper-case form. Input is case-insensitive and normalized before lookup — `O` reads as `0`, `I` and `L` as `1` — so the pattern also admits lower case and those letters. People refer to Alert Groups by `#N`, never by `public_id`.
type StoredSnapshotList ¶
type StoredSnapshotList struct {
Items []StoredSnapshotSummary `json:"items"`
NextCursor nullable.Nullable[string] `json:"next_cursor"`
}
StoredSnapshotList defines model for StoredSnapshotList.
type StoredSnapshotSummary ¶
type StoredSnapshotSummary struct {
AlertCount nullable.Nullable[int] `json:"alert_count,omitempty"`
// GroupKey The `groupKey` of the payload; null when it could not be read.
GroupKey nullable.Nullable[string] `json:"group_key,omitempty"`
// Id Opaque public identifier (`public_id`): a type prefix of one or two letters followed by 12 random characters of Crockford base32 (`0`–`9` and `A`–`Z` without `I`, `L`, `O` and `U`; 60 bits), such as `AGK7M3QX9P2RTA` for an Alert Group. Prefixes use the same letters and differ per type: `AG` Alert Group, `AE` Audit log entry, `AK` Account link, `AR` Account link request, `CN` Connection, `CR` check run, `DE` delivery event, `DS` Destination, `KR` Link rule, `NE` Note, `NK` Integration token, `NT` Integration, `PT` Personal access token, `RG` Organization, `RQ` record of the Request log, `RT` Route, `SA` Service account, `SN` session, `SR` User, `SS` Stored Snapshot, `ST` Service account token, `TB` Lookup table, `TE` Timeline entry. Responses always carry the canonical upper-case form. Input is case-insensitive and normalized before lookup — `O` reads as `0`, `I` and `L` as `1` — so the pattern also admits lower case and those letters. People refer to Alert Groups by `#N`, never by `public_id`.
Id PublicId `json:"id"`
Integration EntityRef `json:"integration"`
ProcessedAt nullable.Nullable[time.Time] `json:"processed_at,omitempty"`
// ProcessingError Why processing failed, for `failed`: for example the body is not valid JSON or does not look like an Alertmanager payload. The body itself stays as received.
ProcessingError nullable.Nullable[string] `json:"processing_error,omitempty"`
ReceivedAt time.Time `json:"received_at"`
SizeBytes int `json:"size_bytes"`
// State `pending` until a worker has processed it, `processed`, or `failed` when the body could not be processed. A failed Snapshot is never retried by itself; `muster ingest replay` reprocesses it after a fix.
State SnapshotState `json:"state"`
TruncatedAlerts nullable.Nullable[int] `json:"truncated_alerts,omitempty"`
}
StoredSnapshotSummary defines model for StoredSnapshotSummary.
type StreamLiveUpdatesResponse ¶
type StreamLiveUpdatesResponse struct {
Body []byte
HTTPResponse *http.Response
// ApplicationproblemJSON401 the response for an HTTP 401 `application/problem+json` response
ApplicationproblemJSON401 *Unauthorized
// ApplicationproblemJSON403 the response for an HTTP 403 `application/problem+json` response
ApplicationproblemJSON403 *Forbidden
// ApplicationproblemJSON429 the response for an HTTP 429 `application/problem+json` response
ApplicationproblemJSON429 *TooManyRequests
// Headers200 the parsed response headers for an HTTP 200 response
Headers200 *StreamLiveUpdatesResponse200Headers
// Headers429 the parsed response headers for an HTTP 429 response
Headers429 *StreamLiveUpdatesResponse429Headers
}
func ParseStreamLiveUpdatesResponse ¶
func ParseStreamLiveUpdatesResponse(rsp *http.Response) (*StreamLiveUpdatesResponse, error)
ParseStreamLiveUpdatesResponse parses an HTTP response from a StreamLiveUpdatesWithResponse call
func (StreamLiveUpdatesResponse) ContentType ¶
func (r StreamLiveUpdatesResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (StreamLiveUpdatesResponse) GetApplicationproblemJSON401 ¶
func (r StreamLiveUpdatesResponse) GetApplicationproblemJSON401() *Unauthorized
GetApplicationproblemJSON401 returns the response for an HTTP 401 `application/problem+json` response
func (StreamLiveUpdatesResponse) GetApplicationproblemJSON403 ¶
func (r StreamLiveUpdatesResponse) GetApplicationproblemJSON403() *Forbidden
GetApplicationproblemJSON403 returns the response for an HTTP 403 `application/problem+json` response
func (StreamLiveUpdatesResponse) GetApplicationproblemJSON429 ¶
func (r StreamLiveUpdatesResponse) GetApplicationproblemJSON429() *TooManyRequests
GetApplicationproblemJSON429 returns the response for an HTTP 429 `application/problem+json` response
func (StreamLiveUpdatesResponse) GetBody ¶
func (r StreamLiveUpdatesResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (StreamLiveUpdatesResponse) Status ¶
func (r StreamLiveUpdatesResponse) Status() string
Status returns HTTPResponse.Status
func (StreamLiveUpdatesResponse) StatusCode ¶
func (r StreamLiveUpdatesResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type StreamLiveUpdatesResponse200Headers ¶
type StreamLiveUpdatesResponse200Headers struct {
CacheControl *string
}
StreamLiveUpdatesResponse200Headers the declared response headers of an HTTP 200 response for StreamLiveUpdates
type StreamLiveUpdatesResponse429Headers ¶
type StreamLiveUpdatesResponse429Headers struct {
RetryAfter *int
}
StreamLiveUpdatesResponse429Headers the declared response headers of an HTTP 429 response for StreamLiveUpdates
type SubmitSessionTotpJSONRequestBody ¶
type SubmitSessionTotpJSONRequestBody = SessionTotp
SubmitSessionTotpJSONRequestBody defines body for SubmitSessionTotp for application/json ContentType.
type SubmitSessionTotpResponse ¶
type SubmitSessionTotpResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *Session
// ApplicationproblemJSON400 the response for an HTTP 400 `application/problem+json` response
ApplicationproblemJSON400 *BadRequest
// ApplicationproblemJSON401 the response for an HTTP 401 `application/problem+json` response
ApplicationproblemJSON401 *Unauthorized
// ApplicationproblemJSON403 the response for an HTTP 403 `application/problem+json` response
ApplicationproblemJSON403 *Forbidden
// ApplicationproblemJSON409 the response for an HTTP 409 `application/problem+json` response
ApplicationproblemJSON409 *Conflict
// ApplicationproblemJSON422 the response for an HTTP 422 `application/problem+json` response
ApplicationproblemJSON422 *Unprocessable
// ApplicationproblemJSON429 the response for an HTTP 429 `application/problem+json` response
ApplicationproblemJSON429 *TooManyRequests
// Headers429 the parsed response headers for an HTTP 429 response
Headers429 *SubmitSessionTotpResponse429Headers
}
func ParseSubmitSessionTotpResponse ¶
func ParseSubmitSessionTotpResponse(rsp *http.Response) (*SubmitSessionTotpResponse, error)
ParseSubmitSessionTotpResponse parses an HTTP response from a SubmitSessionTotpWithResponse call
func (SubmitSessionTotpResponse) ContentType ¶
func (r SubmitSessionTotpResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (SubmitSessionTotpResponse) GetApplicationproblemJSON400 ¶
func (r SubmitSessionTotpResponse) GetApplicationproblemJSON400() *BadRequest
GetApplicationproblemJSON400 returns the response for an HTTP 400 `application/problem+json` response
func (SubmitSessionTotpResponse) GetApplicationproblemJSON401 ¶
func (r SubmitSessionTotpResponse) GetApplicationproblemJSON401() *Unauthorized
GetApplicationproblemJSON401 returns the response for an HTTP 401 `application/problem+json` response
func (SubmitSessionTotpResponse) GetApplicationproblemJSON403 ¶
func (r SubmitSessionTotpResponse) GetApplicationproblemJSON403() *Forbidden
GetApplicationproblemJSON403 returns the response for an HTTP 403 `application/problem+json` response
func (SubmitSessionTotpResponse) GetApplicationproblemJSON409 ¶
func (r SubmitSessionTotpResponse) GetApplicationproblemJSON409() *Conflict
GetApplicationproblemJSON409 returns the response for an HTTP 409 `application/problem+json` response
func (SubmitSessionTotpResponse) GetApplicationproblemJSON422 ¶
func (r SubmitSessionTotpResponse) GetApplicationproblemJSON422() *Unprocessable
GetApplicationproblemJSON422 returns the response for an HTTP 422 `application/problem+json` response
func (SubmitSessionTotpResponse) GetApplicationproblemJSON429 ¶
func (r SubmitSessionTotpResponse) GetApplicationproblemJSON429() *TooManyRequests
GetApplicationproblemJSON429 returns the response for an HTTP 429 `application/problem+json` response
func (SubmitSessionTotpResponse) GetBody ¶
func (r SubmitSessionTotpResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (SubmitSessionTotpResponse) GetJSON200 ¶
func (r SubmitSessionTotpResponse) GetJSON200() *Session
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (SubmitSessionTotpResponse) Status ¶
func (r SubmitSessionTotpResponse) Status() string
Status returns HTTPResponse.Status
func (SubmitSessionTotpResponse) StatusCode ¶
func (r SubmitSessionTotpResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type SubmitSessionTotpResponse429Headers ¶
type SubmitSessionTotpResponse429Headers struct {
RetryAfter *int
}
SubmitSessionTotpResponse429Headers the declared response headers of an HTTP 429 response for SubmitSessionTotp
type SuggestionId ¶
type SuggestionId = RouteSuggestionId
SuggestionId `heartbeat_lost` suggests a Route for `alertname="MusterHeartbeatLost"`; `internal_alerts` suggests a Route for `alertname=~"Muster.*"`.
type SystemNotice ¶
type SystemNotice struct {
Audience SystemNoticeAudience `json:"audience"`
Kind SystemNoticeKind `json:"kind"`
Since nullable.Nullable[time.Time] `json:"since,omitempty"`
// Until End of the recovery window ("Data may be incomplete until HH:MM").
Until nullable.Nullable[time.Time] `json:"until,omitempty"`
}
SystemNotice defines model for SystemNotice.
type SystemNoticeAudience ¶
type SystemNoticeAudience string
SystemNoticeAudience defines model for SystemNotice.Audience.
const ( SystemNoticeAudienceAdmins SystemNoticeAudience = "admins" SystemNoticeAudienceAll SystemNoticeAudience = "all" )
Defines values for SystemNoticeAudience.
func (SystemNoticeAudience) Valid ¶
func (e SystemNoticeAudience) Valid() bool
Valid indicates whether the value is a known member of the SystemNoticeAudience enum.
type SystemNoticeKind ¶
type SystemNoticeKind string
SystemNoticeKind defines model for SystemNotice.Kind.
const ( NoReplicaLeading SystemNoticeKind = "no_replica_leading" RecoveringAfterDowntime SystemNoticeKind = "recovering_after_downtime" )
Defines values for SystemNoticeKind.
func (SystemNoticeKind) Valid ¶
func (e SystemNoticeKind) Valid() bool
Valid indicates whether the value is a known member of the SystemNoticeKind enum.
type SystemNoticeList ¶
type SystemNoticeList struct {
// Items Active Organization-wide notices the caller may see.
Items []SystemNotice `json:"items"`
}
SystemNoticeList defines model for SystemNoticeList.
type SystemStatus ¶
type SystemStatus struct {
ActiveStorms []ActiveStorm `json:"active_storms"`
BrokenDestinations []BrokenDestination `json:"broken_destinations"`
Commit *string `json:"commit,omitempty"`
DeliveryQueues []QueueDepth `json:"delivery_queues"`
IntegrationsAttention []IntegrationAttention `json:"integrations_attention"`
OutgoingHeartbeat OutgoingHeartbeatResult `json:"outgoing_heartbeat"`
Recovery struct {
Active bool `json:"active"`
PeriodFrom nullable.Nullable[time.Time] `json:"period_from,omitempty"`
PeriodTo nullable.Nullable[time.Time] `json:"period_to,omitempty"`
Until nullable.Nullable[time.Time] `json:"until,omitempty"`
} `json:"recovery"`
// Replicas Every live replica with the key ids it holds; the Leader is flagged.
Replicas []ReplicaStatus `json:"replicas"`
TemplateErrors []TemplateErrorEntry `json:"template_errors"`
Version string `json:"version"`
}
SystemStatus Read-only status for Admins.
type TelegramConnection ¶
type TelegramConnection struct {
// BotApiBaseUrl Absolute http(s) URL without query, fragment or user information; a path prefix is allowed. Requests go to `<base>/bot<token>/<method>`. A self-hosted Bot API server keeps the bot on that server only: never call api.telegram.org with this token from anywhere else.
BotApiBaseUrl string `json:"bot_api_base_url"`
// BotTokenStatus What a read shows instead of a Secret. The value itself is never returned.
BotTokenStatus SecretStatus `json:"bot_token_status"`
BotUsername nullable.Nullable[string] `json:"bot_username,omitempty"`
CreatedAt time.Time `json:"created_at"`
DestinationCount int `json:"destination_count"`
// Etag The same value as the `ETag` header; send it as `If-Match` on the next update. Lets a client update an item of a list without reading it again.
Etag *string `json:"etag,omitempty"`
// Id Opaque public identifier (`public_id`): a type prefix of one or two letters followed by 12 random characters of Crockford base32 (`0`–`9` and `A`–`Z` without `I`, `L`, `O` and `U`; 60 bits), such as `AGK7M3QX9P2RTA` for an Alert Group. Prefixes use the same letters and differ per type: `AG` Alert Group, `AE` Audit log entry, `AK` Account link, `AR` Account link request, `CN` Connection, `CR` check run, `DE` delivery event, `DS` Destination, `KR` Link rule, `NE` Note, `NK` Integration token, `NT` Integration, `PT` Personal access token, `RG` Organization, `RQ` record of the Request log, `RT` Route, `SA` Service account, `SN` session, `SR` User, `SS` Stored Snapshot, `ST` Service account token, `TB` Lookup table, `TE` Timeline entry. Responses always carry the canonical upper-case form. Input is case-insensitive and normalized before lookup — `O` reads as `0`, `I` and `L` as `1` — so the pattern also admits lower case and those letters. People refer to Alert Groups by `#N`, never by `public_id`.
Id PublicId `json:"id"`
// Limiter A rate limit of `limit` calls per `per_seconds`.
Limiter Limiter `json:"limiter"`
Name string `json:"name"`
// Proxy Per-client proxy as read. The password is a Secret.
Proxy ProxyConfig `json:"proxy"`
Type TelegramConnectionType `json:"type"`
UpdateMode TelegramUpdateMode `json:"update_mode"`
Warnings []TelegramConnectionWarnings `json:"warnings"`
}
TelegramConnection defines model for TelegramConnection.
type TelegramConnectionBase ¶
type TelegramConnectionBase struct {
// BotApiBaseUrl Absolute http(s) URL without query, fragment or user information; a path prefix is allowed. Requests go to `<base>/bot<token>/<method>`. A self-hosted Bot API server keeps the bot on that server only: never call api.telegram.org with this token from anywhere else.
BotApiBaseUrl string `json:"bot_api_base_url"`
// Limiter A rate limit of `limit` calls per `per_seconds`.
Limiter Limiter `json:"limiter"`
Name string `json:"name"`
Type TelegramConnectionBaseType `json:"type"`
UpdateMode TelegramUpdateMode `json:"update_mode"`
}
TelegramConnectionBase defines model for TelegramConnectionBase.
type TelegramConnectionBaseType ¶
type TelegramConnectionBaseType string
TelegramConnectionBaseType defines model for TelegramConnectionBase.Type.
const (
TelegramConnectionBaseTypeTelegram TelegramConnectionBaseType = "telegram"
)
Defines values for TelegramConnectionBaseType.
func (TelegramConnectionBaseType) Valid ¶
func (e TelegramConnectionBaseType) Valid() bool
Valid indicates whether the value is a known member of the TelegramConnectionBaseType enum.
type TelegramConnectionDraft ¶
type TelegramConnectionDraft struct {
// BotApiBaseUrl The Bot API base URL as `TelegramConnectionBase` takes it.
BotApiBaseUrl string `json:"bot_api_base_url"`
// BotToken A bot token typed in the form, sent only to `bot_api_base_url`. Omit it to use the stored token of `connection_id`, which goes only to its saved base URL through its saved proxy.
BotToken *string `json:"bot_token,omitempty"`
// ConnectionId The saved Telegram Connection that the form edits; omit it for a new one. An omitted `proxy` is its saved proxy, and no proxy without it.
ConnectionId *PublicId `json:"connection_id,omitempty"`
// Proxy Per-client proxy as written. Omitting `password` keeps the stored one; `null` clears it.
Proxy *ProxyConfigInput `json:"proxy,omitempty"`
Type TelegramConnectionDraftType `json:"type"`
UpdateMode TelegramUpdateMode `json:"update_mode"`
}
TelegramConnectionDraft A Telegram Connection as its form holds it, for `checkConnectionDraft`.
type TelegramConnectionDraftType ¶
type TelegramConnectionDraftType string
TelegramConnectionDraftType defines model for TelegramConnectionDraft.Type.
const (
TelegramConnectionDraftTypeTelegram TelegramConnectionDraftType = "telegram"
)
Defines values for TelegramConnectionDraftType.
func (TelegramConnectionDraftType) Valid ¶
func (e TelegramConnectionDraftType) Valid() bool
Valid indicates whether the value is a known member of the TelegramConnectionDraftType enum.
type TelegramConnectionInput ¶
type TelegramConnectionInput struct {
// BotApiBaseUrl Absolute http(s) URL without query, fragment or user information; a path prefix is allowed. Requests go to `<base>/bot<token>/<method>`. A self-hosted Bot API server keeps the bot on that server only: never call api.telegram.org with this token from anywhere else.
BotApiBaseUrl string `json:"bot_api_base_url"`
// BotToken Write-only Secret. Omit on update to keep the stored one.
BotToken *string `json:"bot_token,omitempty"`
// Limiter A rate limit of `limit` calls per `per_seconds`.
Limiter Limiter `json:"limiter"`
Name string `json:"name"`
// Proxy Per-client proxy as written. Omitting `password` keeps the stored one; `null` clears it.
Proxy ProxyConfigInput `json:"proxy"`
Type TelegramConnectionInputType `json:"type"`
UpdateMode TelegramUpdateMode `json:"update_mode"`
}
TelegramConnectionInput defines model for TelegramConnectionInput.
type TelegramConnectionInputType ¶
type TelegramConnectionInputType string
TelegramConnectionInputType defines model for TelegramConnectionInput.Type.
const (
TelegramConnectionInputTypeTelegram TelegramConnectionInputType = "telegram"
)
Defines values for TelegramConnectionInputType.
func (TelegramConnectionInputType) Valid ¶
func (e TelegramConnectionInputType) Valid() bool
Valid indicates whether the value is a known member of the TelegramConnectionInputType enum.
type TelegramConnectionType ¶
type TelegramConnectionType string
TelegramConnectionType defines model for TelegramConnection.Type.
const (
TelegramConnectionTypeTelegram TelegramConnectionType = "telegram"
)
Defines values for TelegramConnectionType.
func (TelegramConnectionType) Valid ¶
func (e TelegramConnectionType) Valid() bool
Valid indicates whether the value is a known member of the TelegramConnectionType enum.
type TelegramConnectionWarnings ¶
type TelegramConnectionWarnings string
TelegramConnectionWarnings defines model for TelegramConnection.Warnings.
const (
BaseUrlUsesHttp TelegramConnectionWarnings = "base_url_uses_http"
)
Defines values for TelegramConnectionWarnings.
func (TelegramConnectionWarnings) Valid ¶
func (e TelegramConnectionWarnings) Valid() bool
Valid indicates whether the value is a known member of the TelegramConnectionWarnings enum.
type TelegramDestination ¶
type TelegramDestination struct {
// ChannelChatId The channel's numeric chat id, found by the Destination check (`getChat` on the channel). Null until a check has found it. Two Destinations with one `channel_chat_id` deliver to one chat.
ChannelChatId nullable.Nullable[string] `json:"channel_chat_id,omitempty"`
// ChannelId Telegram chat id or `@username` of the channel. Comments must be enabled on the channel.
ChannelId string `json:"channel_id"`
ChannelTitle nullable.Nullable[string] `json:"channel_title,omitempty"`
// ConnectionId Opaque public identifier (`public_id`): a type prefix of one or two letters followed by 12 random characters of Crockford base32 (`0`–`9` and `A`–`Z` without `I`, `L`, `O` and `U`; 60 bits), such as `AGK7M3QX9P2RTA` for an Alert Group. Prefixes use the same letters and differ per type: `AG` Alert Group, `AE` Audit log entry, `AK` Account link, `AR` Account link request, `CN` Connection, `CR` check run, `DE` delivery event, `DS` Destination, `KR` Link rule, `NE` Note, `NK` Integration token, `NT` Integration, `PT` Personal access token, `RG` Organization, `RQ` record of the Request log, `RT` Route, `SA` Service account, `SN` session, `SR` User, `SS` Stored Snapshot, `ST` Service account token, `TB` Lookup table, `TE` Timeline entry. Responses always carry the canonical upper-case form. Input is case-insensitive and normalized before lookup — `O` reads as `0`, `I` and `L` as `1` — so the pattern also admits lower case and those letters. People refer to Alert Groups by `#N`, never by `public_id`.
ConnectionId PublicId `json:"connection_id"`
CreatedAt time.Time `json:"created_at"`
// DiscussionGroupId The channel's linked discussion group, where comments live, found by the Destination check through `getChat` on the channel (`linked_chat_id`). Not an input. Null until a check has found it.
DiscussionGroupId nullable.Nullable[string] `json:"discussion_group_id,omitempty"`
DiscussionGroupTitle nullable.Nullable[string] `json:"discussion_group_title,omitempty"`
// Etag The same value as the `ETag` header; send it as `If-Match` on the next update. Lets a client update an item of a list without reading it again.
Etag *string `json:"etag,omitempty"`
Health DestinationHealth `json:"health"`
// Id Opaque public identifier (`public_id`): a type prefix of one or two letters followed by 12 random characters of Crockford base32 (`0`–`9` and `A`–`Z` without `I`, `L`, `O` and `U`; 60 bits), such as `AGK7M3QX9P2RTA` for an Alert Group. Prefixes use the same letters and differ per type: `AG` Alert Group, `AE` Audit log entry, `AK` Account link, `AR` Account link request, `CN` Connection, `CR` check run, `DE` delivery event, `DS` Destination, `KR` Link rule, `NE` Note, `NK` Integration token, `NT` Integration, `PT` Personal access token, `RG` Organization, `RQ` record of the Request log, `RT` Route, `SA` Service account, `SN` session, `SR` User, `SS` Stored Snapshot, `ST` Service account token, `TB` Lookup table, `TE` Timeline entry. Responses always carry the canonical upper-case form. Input is case-insensitive and normalized before lookup — `O` reads as `0`, `I` and `L` as `1` — so the pattern also admits lower case and those letters. People refer to Alert Groups by `#N`, never by `public_id`.
Id PublicId `json:"id"`
// Limiter A rate limit of `limit` calls per `per_seconds`.
Limiter Limiter `json:"limiter"`
// Mentions Keyed by the Mention names of Loud events. Reminders and auto-unacknowledge always mention the Owner, Takeovers the previous Owner.
Mentions MentionSettings `json:"mentions"`
Name string `json:"name"`
Routes []EntityRef `json:"routes"`
TemplateError *TemplateErrorState `json:"template_error,omitempty"`
Type TelegramDestinationType `json:"type"`
}
TelegramDestination defines model for TelegramDestination.
type TelegramDestinationInput ¶
type TelegramDestinationInput struct {
// ChannelId Telegram chat id or `@username` of the channel. Comments must be enabled on the channel.
ChannelId string `json:"channel_id"`
// ConnectionId Opaque public identifier (`public_id`): a type prefix of one or two letters followed by 12 random characters of Crockford base32 (`0`–`9` and `A`–`Z` without `I`, `L`, `O` and `U`; 60 bits), such as `AGK7M3QX9P2RTA` for an Alert Group. Prefixes use the same letters and differ per type: `AG` Alert Group, `AE` Audit log entry, `AK` Account link, `AR` Account link request, `CN` Connection, `CR` check run, `DE` delivery event, `DS` Destination, `KR` Link rule, `NE` Note, `NK` Integration token, `NT` Integration, `PT` Personal access token, `RG` Organization, `RQ` record of the Request log, `RT` Route, `SA` Service account, `SN` session, `SR` User, `SS` Stored Snapshot, `ST` Service account token, `TB` Lookup table, `TE` Timeline entry. Responses always carry the canonical upper-case form. Input is case-insensitive and normalized before lookup — `O` reads as `0`, `I` and `L` as `1` — so the pattern also admits lower case and those letters. People refer to Alert Groups by `#N`, never by `public_id`.
ConnectionId PublicId `json:"connection_id"`
// Limiter A rate limit of `limit` calls per `per_seconds`.
Limiter Limiter `json:"limiter"`
// Mentions Keyed by the Mention names of Loud events. Reminders and auto-unacknowledge always mention the Owner, Takeovers the previous Owner.
Mentions MentionSettings `json:"mentions"`
Name string `json:"name"`
Type TelegramDestinationInputType `json:"type"`
}
TelegramDestinationInput A Telegram Destination is configured by its channel only; Muster finds the channel's discussion group itself (see `TelegramDestination.discussion_group_id`).
type TelegramDestinationInputType ¶
type TelegramDestinationInputType string
TelegramDestinationInputType defines model for TelegramDestinationInput.Type.
const (
TelegramDestinationInputTypeTelegram TelegramDestinationInputType = "telegram"
)
Defines values for TelegramDestinationInputType.
func (TelegramDestinationInputType) Valid ¶
func (e TelegramDestinationInputType) Valid() bool
Valid indicates whether the value is a known member of the TelegramDestinationInputType enum.
type TelegramDestinationType ¶
type TelegramDestinationType string
TelegramDestinationType defines model for TelegramDestination.Type.
const (
TelegramDestinationTypeTelegram TelegramDestinationType = "telegram"
)
Defines values for TelegramDestinationType.
func (TelegramDestinationType) Valid ¶
func (e TelegramDestinationType) Valid() bool
Valid indicates whether the value is a known member of the TelegramDestinationType enum.
type TelegramLinkRequest ¶
type TelegramLinkRequest struct {
// ConnectionId Opaque public identifier (`public_id`): a type prefix of one or two letters followed by 12 random characters of Crockford base32 (`0`–`9` and `A`–`Z` without `I`, `L`, `O` and `U`; 60 bits), such as `AGK7M3QX9P2RTA` for an Alert Group. Prefixes use the same letters and differ per type: `AG` Alert Group, `AE` Audit log entry, `AK` Account link, `AR` Account link request, `CN` Connection, `CR` check run, `DE` delivery event, `DS` Destination, `KR` Link rule, `NE` Note, `NK` Integration token, `NT` Integration, `PT` Personal access token, `RG` Organization, `RQ` record of the Request log, `RT` Route, `SA` Service account, `SN` session, `SR` User, `SS` Stored Snapshot, `ST` Service account token, `TB` Lookup table, `TE` Timeline entry. Responses always carry the canonical upper-case form. Input is case-insensitive and normalized before lookup — `O` reads as `0`, `I` and `L` as `1` — so the pattern also admits lower case and those letters. People refer to Alert Groups by `#N`, never by `public_id`.
ConnectionId PublicId `json:"connection_id"`
}
TelegramLinkRequest defines model for TelegramLinkRequest.
type TelegramLinkStart ¶
type TelegramLinkStart struct {
// DeepLink `t.me/<bot>?start=<token>`. The token is single-use and bound to the User and the Connection.
DeepLink string `json:"deep_link"`
ExpiresAt time.Time `json:"expires_at"`
}
TelegramLinkStart defines model for TelegramLinkStart.
type TelegramUpdate ¶
type TelegramUpdate struct {
UpdateId int64 `json:"update_id"`
AdditionalProperties map[string]interface{} `json:"-"`
}
TelegramUpdate A Bot API Update. Muster requests only the update types it needs and ignores unknown fields.
func (TelegramUpdate) Get ¶
func (a TelegramUpdate) Get(fieldName string) (value interface{}, found bool)
Getter for additional properties for TelegramUpdate. Returns the specified element and whether it was found
func (TelegramUpdate) MarshalJSON ¶
func (a TelegramUpdate) MarshalJSON() ([]byte, error)
Override default JSON handling for TelegramUpdate to handle AdditionalProperties
func (*TelegramUpdate) Set ¶
func (a *TelegramUpdate) Set(fieldName string, value interface{})
Setter for additional properties for TelegramUpdate
func (*TelegramUpdate) UnmarshalJSON ¶
func (a *TelegramUpdate) UnmarshalJSON(b []byte) error
Override default JSON handling for TelegramUpdate to handle AdditionalProperties
type TelegramUpdateMode ¶
type TelegramUpdateMode string
TelegramUpdateMode defines model for TelegramUpdateMode.
const ( TelegramUpdateModeLongPolling TelegramUpdateMode = "long_polling" TelegramUpdateModeWebhook TelegramUpdateMode = "webhook" )
Defines values for TelegramUpdateMode.
func (TelegramUpdateMode) Valid ¶
func (e TelegramUpdateMode) Valid() bool
Valid indicates whether the value is a known member of the TelegramUpdateMode enum.
type TelegramWebhookJSONRequestBody ¶
type TelegramWebhookJSONRequestBody = TelegramUpdate
TelegramWebhookJSONRequestBody defines body for TelegramWebhook for application/json ContentType.
type TelegramWebhookResponse ¶
type TelegramWebhookResponse struct {
Body []byte
HTTPResponse *http.Response
// ApplicationproblemJSON400 the response for an HTTP 400 `application/problem+json` response
ApplicationproblemJSON400 *BadRequest
// ApplicationproblemJSON401 the response for an HTTP 401 `application/problem+json` response
ApplicationproblemJSON401 *Unauthorized
}
func ParseTelegramWebhookResponse ¶
func ParseTelegramWebhookResponse(rsp *http.Response) (*TelegramWebhookResponse, error)
ParseTelegramWebhookResponse parses an HTTP response from a TelegramWebhookWithResponse call
func (TelegramWebhookResponse) ContentType ¶
func (r TelegramWebhookResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (TelegramWebhookResponse) GetApplicationproblemJSON400 ¶
func (r TelegramWebhookResponse) GetApplicationproblemJSON400() *BadRequest
GetApplicationproblemJSON400 returns the response for an HTTP 400 `application/problem+json` response
func (TelegramWebhookResponse) GetApplicationproblemJSON401 ¶
func (r TelegramWebhookResponse) GetApplicationproblemJSON401() *Unauthorized
GetApplicationproblemJSON401 returns the response for an HTTP 401 `application/problem+json` response
func (TelegramWebhookResponse) GetBody ¶
func (r TelegramWebhookResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (TelegramWebhookResponse) Status ¶
func (r TelegramWebhookResponse) Status() string
Status returns HTTPResponse.Status
func (TelegramWebhookResponse) StatusCode ¶
func (r TelegramWebhookResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type TemplateErrorEntry ¶
type TemplateErrorEntry struct {
Error string `json:"error"`
Since time.Time `json:"since"`
Subject EntityRef `json:"subject"`
SubjectKind TemplateErrorEntrySubjectKind `json:"subject_kind"`
Template TemplateKind `json:"template"`
}
TemplateErrorEntry defines model for TemplateErrorEntry.
type TemplateErrorEntrySubjectKind ¶
type TemplateErrorEntrySubjectKind string
TemplateErrorEntrySubjectKind defines model for TemplateErrorEntry.SubjectKind.
const ( TemplateErrorEntrySubjectKindDestination TemplateErrorEntrySubjectKind = "destination" TemplateErrorEntrySubjectKindRoute TemplateErrorEntrySubjectKind = "route" )
Defines values for TemplateErrorEntrySubjectKind.
func (TemplateErrorEntrySubjectKind) Valid ¶
func (e TemplateErrorEntrySubjectKind) Valid() bool
Valid indicates whether the value is a known member of the TemplateErrorEntrySubjectKind enum.
type TemplateErrorState ¶
type TemplateErrorState struct {
Error string `json:"error"`
// Fallback `fallback_template` for messenger templates, `not_sent` for outgoing webhook requests.
Fallback TemplateErrorStateFallback `json:"fallback"`
Since time.Time `json:"since"`
}
TemplateErrorState defines model for TemplateErrorState.
type TemplateErrorStateFallback ¶
type TemplateErrorStateFallback string
TemplateErrorStateFallback `fallback_template` for messenger templates, `not_sent` for outgoing webhook requests.
const ( FallbackTemplate TemplateErrorStateFallback = "fallback_template" NotSent TemplateErrorStateFallback = "not_sent" )
Defines values for TemplateErrorStateFallback.
func (TemplateErrorStateFallback) Valid ¶
func (e TemplateErrorStateFallback) Valid() bool
Valid indicates whether the value is a known member of the TemplateErrorStateFallback enum.
type TemplateKind ¶
type TemplateKind string
TemplateKind defines model for TemplateKind.
const ( TemplateKindAckTimeoutNotice TemplateKind = "ack_timeout_notice" TemplateKindLine TemplateKind = "line" TemplateKindLinkRule TemplateKind = "link_rule" TemplateKindRootMessage TemplateKind = "root_message" TemplateKindWebhookRequest TemplateKind = "webhook_request" )
Defines values for TemplateKind.
func (TemplateKind) Valid ¶
func (e TemplateKind) Valid() bool
Valid indicates whether the value is a known member of the TemplateKind enum.
type TemplatePreviewRequest ¶
type TemplatePreviewRequest struct {
// AlertGroupId A `public_id` in the format of `PublicId`, or null.
AlertGroupId nullable.Nullable[NullablePublicId] `json:"alert_group_id,omitempty"`
// Format The markup the output is laid out in and alert data are escaped for — `markdown` as in Mattermost (the default), `html` as in Telegram, `commonmark` as in a bridge's envelope body, `mrkdwn` as in Slack. Ignored for `link_rule` and `webhook_request`, which have no markup.
Format nullable.Nullable[TemplatePreviewRequestFormat] `json:"format,omitempty"`
Kind TemplateKind `json:"kind"`
// Language UI or template language; null follows the default.
Language nullable.Nullable[NullableLanguage] `json:"language,omitempty"`
// LengthLimit Messenger length limit to apply, for example 4096.
LengthLimit nullable.Nullable[int] `json:"length_limit,omitempty"`
// RouteId A `public_id` in the format of `PublicId`, or null.
RouteId nullable.Nullable[NullablePublicId] `json:"route_id,omitempty"`
// StoredSnapshotId A recent Stored Snapshot as the sample. Without a sample the most recent ones the Route took are used (`template.dry_run_sample`), or a built-in example.
StoredSnapshotId nullable.Nullable[string] `json:"stored_snapshot_id,omitempty"`
// Template The template to render; empty renders what a Route without a template of the kind shows, and the result returns the source of the built-in template.
Template string `json:"template"`
}
TemplatePreviewRequest defines model for TemplatePreviewRequest.
type TemplatePreviewRequestFormat ¶
type TemplatePreviewRequestFormat string
TemplatePreviewRequestFormat The markup the output is laid out in and alert data are escaped for — `markdown` as in Mattermost (the default), `html` as in Telegram, `commonmark` as in a bridge's envelope body, `mrkdwn` as in Slack. Ignored for `link_rule` and `webhook_request`, which have no markup.
const ( TemplatePreviewRequestFormatCommonmark TemplatePreviewRequestFormat = "commonmark" TemplatePreviewRequestFormatHtml TemplatePreviewRequestFormat = "html" TemplatePreviewRequestFormatLessThannil TemplatePreviewRequestFormat = "<nil>" TemplatePreviewRequestFormatMarkdown TemplatePreviewRequestFormat = "markdown" TemplatePreviewRequestFormatMrkdwn TemplatePreviewRequestFormat = "mrkdwn" )
Defines values for TemplatePreviewRequestFormat.
func (TemplatePreviewRequestFormat) Valid ¶
func (e TemplatePreviewRequestFormat) Valid() bool
Valid indicates whether the value is a known member of the TemplatePreviewRequestFormat enum.
type TemplatePreviewResult ¶
type TemplatePreviewResult struct {
Errors []ProblemError `json:"errors"`
// Format The markup of `output`; null for kinds without markup.
Format nullable.Nullable[TemplatePreviewResultFormat] `json:"format,omitempty"`
// Output Rendered text; null when the template failed.
Output nullable.Nullable[string] `json:"output,omitempty"`
Sample nullable.Nullable[TemplatePreviewResultSample] `json:"sample,omitempty"`
// Source The source of the rendered template — the request's `template`, or for an empty one the built-in template of the kind in the preview's language, for an editor to start from; null for `link_rule` and `webhook_request`, which have no built-in template.
Source nullable.Nullable[string] `json:"source,omitempty"`
// Truncated The output was shortened to the length limit.
Truncated *bool `json:"truncated,omitempty"`
Valid bool `json:"valid"`
}
TemplatePreviewResult defines model for TemplatePreviewResult.
type TemplatePreviewResultFormat ¶
type TemplatePreviewResultFormat string
TemplatePreviewResultFormat The markup of `output`; null for kinds without markup.
const ( TemplatePreviewResultFormatCommonmark TemplatePreviewResultFormat = "commonmark" TemplatePreviewResultFormatHtml TemplatePreviewResultFormat = "html" TemplatePreviewResultFormatLessThannil TemplatePreviewResultFormat = "<nil>" TemplatePreviewResultFormatMarkdown TemplatePreviewResultFormat = "markdown" TemplatePreviewResultFormatMrkdwn TemplatePreviewResultFormat = "mrkdwn" )
Defines values for TemplatePreviewResultFormat.
func (TemplatePreviewResultFormat) Valid ¶
func (e TemplatePreviewResultFormat) Valid() bool
Valid indicates whether the value is a known member of the TemplatePreviewResultFormat enum.
type TemplatePreviewResultSample ¶
type TemplatePreviewResultSample string
TemplatePreviewResultSample defines model for TemplatePreviewResult.Sample.
const ( TemplatePreviewResultSampleAlertGroup TemplatePreviewResultSample = "alert_group" TemplatePreviewResultSampleExample TemplatePreviewResultSample = "example" TemplatePreviewResultSampleLessThannil TemplatePreviewResultSample = "<nil>" TemplatePreviewResultSampleStoredSnapshot TemplatePreviewResultSample = "stored_snapshot" )
Defines values for TemplatePreviewResultSample.
func (TemplatePreviewResultSample) Valid ¶
func (e TemplatePreviewResultSample) Valid() bool
Valid indicates whether the value is a known member of the TemplatePreviewResultSample enum.
type TestDestinationJSONRequestBody ¶
type TestDestinationJSONRequestBody = DestinationTestRequest
TestDestinationJSONRequestBody defines body for TestDestination for application/json ContentType.
type TestDestinationResponse ¶
type TestDestinationResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *DestinationTestResult
// ApplicationproblemJSON400 the response for an HTTP 400 `application/problem+json` response
ApplicationproblemJSON400 *BadRequest
// ApplicationproblemJSON401 the response for an HTTP 401 `application/problem+json` response
ApplicationproblemJSON401 *Unauthorized
// ApplicationproblemJSON403 the response for an HTTP 403 `application/problem+json` response
ApplicationproblemJSON403 *Forbidden
// ApplicationproblemJSON404 the response for an HTTP 404 `application/problem+json` response
ApplicationproblemJSON404 *NotFound
// ApplicationproblemJSON422 the response for an HTTP 422 `application/problem+json` response
ApplicationproblemJSON422 *Unprocessable
// ApplicationproblemJSON429 the response for an HTTP 429 `application/problem+json` response
ApplicationproblemJSON429 *TooManyRequests
// ApplicationproblemJSON501 the response for an HTTP 501 `application/problem+json` response
ApplicationproblemJSON501 *NotImplemented
// Headers429 the parsed response headers for an HTTP 429 response
Headers429 *TestDestinationResponse429Headers
}
func ParseTestDestinationResponse ¶
func ParseTestDestinationResponse(rsp *http.Response) (*TestDestinationResponse, error)
ParseTestDestinationResponse parses an HTTP response from a TestDestinationWithResponse call
func (TestDestinationResponse) ContentType ¶
func (r TestDestinationResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (TestDestinationResponse) GetApplicationproblemJSON400 ¶
func (r TestDestinationResponse) GetApplicationproblemJSON400() *BadRequest
GetApplicationproblemJSON400 returns the response for an HTTP 400 `application/problem+json` response
func (TestDestinationResponse) GetApplicationproblemJSON401 ¶
func (r TestDestinationResponse) GetApplicationproblemJSON401() *Unauthorized
GetApplicationproblemJSON401 returns the response for an HTTP 401 `application/problem+json` response
func (TestDestinationResponse) GetApplicationproblemJSON403 ¶
func (r TestDestinationResponse) GetApplicationproblemJSON403() *Forbidden
GetApplicationproblemJSON403 returns the response for an HTTP 403 `application/problem+json` response
func (TestDestinationResponse) GetApplicationproblemJSON404 ¶
func (r TestDestinationResponse) GetApplicationproblemJSON404() *NotFound
GetApplicationproblemJSON404 returns the response for an HTTP 404 `application/problem+json` response
func (TestDestinationResponse) GetApplicationproblemJSON422 ¶
func (r TestDestinationResponse) GetApplicationproblemJSON422() *Unprocessable
GetApplicationproblemJSON422 returns the response for an HTTP 422 `application/problem+json` response
func (TestDestinationResponse) GetApplicationproblemJSON429 ¶
func (r TestDestinationResponse) GetApplicationproblemJSON429() *TooManyRequests
GetApplicationproblemJSON429 returns the response for an HTTP 429 `application/problem+json` response
func (TestDestinationResponse) GetApplicationproblemJSON501 ¶
func (r TestDestinationResponse) GetApplicationproblemJSON501() *NotImplemented
GetApplicationproblemJSON501 returns the response for an HTTP 501 `application/problem+json` response
func (TestDestinationResponse) GetBody ¶
func (r TestDestinationResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (TestDestinationResponse) GetJSON200 ¶
func (r TestDestinationResponse) GetJSON200() *DestinationTestResult
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (TestDestinationResponse) Status ¶
func (r TestDestinationResponse) Status() string
Status returns HTTPResponse.Status
func (TestDestinationResponse) StatusCode ¶
func (r TestDestinationResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type TestDestinationResponse429Headers ¶
type TestDestinationResponse429Headers struct {
RetryAfter *int
}
TestDestinationResponse429Headers the declared response headers of an HTTP 429 response for TestDestination
type TestSource ¶
type TestSource struct {
// AlertGroupId A recent Alert Group of one of the Destination's Routes; required for `alert_group`.
AlertGroupId nullable.Nullable[string] `json:"alert_group_id,omitempty"`
Kind TestSourceKind `json:"kind"`
}
TestSource defines model for TestSource.
type TestSourceKind ¶
type TestSourceKind string
TestSourceKind defines model for TestSource.Kind.
const ( TestSourceKindAlertGroup TestSourceKind = "alert_group" TestSourceKindExample TestSourceKind = "example" )
Defines values for TestSourceKind.
func (TestSourceKind) Valid ¶
func (e TestSourceKind) Valid() bool
Valid indicates whether the value is a known member of the TestSourceKind enum.
type TestStep ¶
type TestStep struct {
DurationMs int `json:"duration_ms"`
// Error What failed, in English. Secrets, the Signing secret and tokens are masked. Clients show it as the detail of `error_code`, or of `error_class` without one.
Error nullable.Nullable[string] `json:"error,omitempty"`
// ErrorClass How a delivery attempt ended. `limited`: no limiter token was free within `delivery.interactive_budget`, so nothing was sent (a test only; the attempt did not reach the remote side).
ErrorClass DeliveryErrorClass `json:"error_class"`
// ErrorCode What failed in a step where `error_class` does not tell it, for the `press` step of a Mattermost Destination: `press_not_reached` — the bot pressed the button, but the press did not reach Muster's callback; `error` names the host of `MUSTER_INGEST_URL` to add to `ServiceSettings.AllowedUntrustedInternalConnections` on the Mattermost server; `bot_unknown` — no Connection check has learned the bot yet, so it did not press; run the Connection check, then test again. Null otherwise.
ErrorCode nullable.Nullable[NullableTestStepErrorCode] `json:"error_code,omitempty"`
Extracted *map[string]string `json:"extracted,omitempty"`
// Name `message` — the test message to a messenger; `press` — for a Mattermost Destination, the bot's own press of the test message's first button (`POST /api/v4/posts/{post_id}/actions/{action_id}`): `error_class` `none` when the press reached Muster's callback; otherwise `error` says to add the host of `MUSTER_INGEST_URL` to `ServiceSettings.AllowedUntrustedInternalConnections` on the Mattermost server, and `limited` means no limiter token was free for it; `event` and `create` — the requests of an outgoing webhook. A Slack Destination's `message` is sent with `chat.postMessage`.
Name TestStepName `json:"name"`
// Request A request as it would be or was sent, with Secrets, the Signing secret and tokens masked.
Request *RenderedRequest `json:"request,omitempty"`
// ResponseBody Truncated. Untrusted text; render as plain text. Secrets, the Signing secret and tokens are masked.
ResponseBody nullable.Nullable[string] `json:"response_body,omitempty"`
ResponseStatus nullable.Nullable[int] `json:"response_status,omitempty"`
}
TestStep defines model for TestStep.
type TestStepName ¶
type TestStepName string
TestStepName `message` — the test message to a messenger; `press` — for a Mattermost Destination, the bot's own press of the test message's first button (`POST /api/v4/posts/{post_id}/actions/{action_id}`): `error_class` `none` when the press reached Muster's callback; otherwise `error` says to add the host of `MUSTER_INGEST_URL` to `ServiceSettings.AllowedUntrustedInternalConnections` on the Mattermost server, and `limited` means no limiter token was free for it; `event` and `create` — the requests of an outgoing webhook. A Slack Destination's `message` is sent with `chat.postMessage`.
const ( TestStepNameCreate TestStepName = "create" TestStepNameEvent TestStepName = "event" TestStepNameMessage TestStepName = "message" TestStepNamePress TestStepName = "press" )
Defines values for TestStepName.
func (TestStepName) Valid ¶
func (e TestStepName) Valid() bool
Valid indicates whether the value is a known member of the TestStepName enum.
type TimelineActor ¶
type TimelineActor struct {
// Id A `public_id` in the format of `PublicId`, or null.
Id nullable.Nullable[NullablePublicId] `json:"id,omitempty"`
Kind ActorKind `json:"kind"`
Name nullable.Nullable[string] `json:"name,omitempty"`
// Reason Reason of an automatic transition, for example `owner_disabled` or `owner_deleted` when disabling or deleting a user released their acknowledgement.
Reason nullable.Nullable[string] `json:"reason,omitempty"`
TokenName nullable.Nullable[string] `json:"token_name,omitempty"`
// Transport How a Command or change reached Muster. `bridge` marks presses and Text commands through a Bridge Connection; `slack` marks presses through a Slack Connection; `cli` marks audited CLI commands (`--actor`); `system` marks transitions Muster starts on its own.
Transport *Transport `json:"transport,omitempty"`
}
TimelineActor Who caused the entry. `system` entries carry the reason in `reason`.
type TimelineAlertsEntry ¶
type TimelineAlertsEntry struct {
// Actor Who caused the entry. `system` entries carry the reason in `reason`.
Actor TimelineActor `json:"actor"`
At time.Time `json:"at"`
// Event Lifecycle event names, exactly as in the lifecycle event tables (every row is one Timeline entry with the row's kind, loudness and Mentions).
// The Timeline kind of each event is given in `x-event-kinds`.
Event LifecycleEvent `json:"event"`
Fingerprints *[]string `json:"fingerprints,omitempty"`
// Id `TE` for lifecycle and system entries, `NE` for a Note (the same id as its `note`), `DE` for a delivery event.
Id PublicId `json:"id"`
Kind TimelineAlertsEntryKind `json:"kind"`
// LabelConflicts Static labels the added Alerts already carried.
LabelConflicts *[]string `json:"label_conflicts,omitempty"`
Loudness Loudness `json:"loudness"`
Mentions []MentionName `json:"mentions"`
Reason nullable.Nullable[string] `json:"reason,omitempty"`
// ReplacedLabel The Instance label that differs, for `alert_replaced`.
ReplacedLabel nullable.Nullable[string] `json:"replaced_label,omitempty"`
}
TimelineAlertsEntry defines model for TimelineAlertsEntry.
type TimelineAlertsEntryKind ¶
type TimelineAlertsEntryKind string
TimelineAlertsEntryKind defines model for TimelineAlertsEntry.Kind.
const (
TimelineAlertsEntryKindAlerts TimelineAlertsEntryKind = "alerts"
)
Defines values for TimelineAlertsEntryKind.
func (TimelineAlertsEntryKind) Valid ¶
func (e TimelineAlertsEntryKind) Valid() bool
Valid indicates whether the value is a known member of the TimelineAlertsEntryKind enum.
type TimelineDeliveryEntry ¶
type TimelineDeliveryEntry struct {
// Actor Who caused the entry. `system` entries carry the reason in `reason`.
Actor TimelineActor `json:"actor"`
At time.Time `json:"at"`
// DeliveryEvent Delivery events are not lifecycle events and reach neither messengers nor outgoing webhook events.
DeliveryEvent DeliveryEventKind `json:"delivery_event"`
Destination EntityRef `json:"destination"`
// Error Provider error text. Secrets, the Signing secret and tokens are masked. Untrusted: render as plain text.
Error nullable.Nullable[string] `json:"error,omitempty"`
// Id `TE` for lifecycle and system entries, `NE` for a Note (the same id as its `note`), `DE` for a delivery event.
Id PublicId `json:"id"`
Kind TimelineDeliveryEntryKind `json:"kind"`
Loudness Loudness `json:"loudness"`
// Mentions Mentions the delivery event carried (see the Loud and Quiet table of delivery events).
Mentions []MentionName `json:"mentions"`
}
TimelineDeliveryEntry defines model for TimelineDeliveryEntry.
type TimelineDeliveryEntryKind ¶
type TimelineDeliveryEntryKind string
TimelineDeliveryEntryKind defines model for TimelineDeliveryEntry.Kind.
const (
TimelineDeliveryEntryKindDelivery TimelineDeliveryEntryKind = "delivery"
)
Defines values for TimelineDeliveryEntryKind.
func (TimelineDeliveryEntryKind) Valid ¶
func (e TimelineDeliveryEntryKind) Valid() bool
Valid indicates whether the value is a known member of the TimelineDeliveryEntryKind enum.
type TimelineEntry ¶
type TimelineEntry struct {
// contains filtered or unexported fields
}
TimelineEntry One Timeline entry; `kind` selects the variant.
func (TimelineEntry) AsTimelineAlertsEntry ¶
func (t TimelineEntry) AsTimelineAlertsEntry() (TimelineAlertsEntry, error)
AsTimelineAlertsEntry returns the union data inside the TimelineEntry as a TimelineAlertsEntry
func (TimelineEntry) AsTimelineDeliveryEntry ¶
func (t TimelineEntry) AsTimelineDeliveryEntry() (TimelineDeliveryEntry, error)
AsTimelineDeliveryEntry returns the union data inside the TimelineEntry as a TimelineDeliveryEntry
func (TimelineEntry) AsTimelineNoteEntry ¶
func (t TimelineEntry) AsTimelineNoteEntry() (TimelineNoteEntry, error)
AsTimelineNoteEntry returns the union data inside the TimelineEntry as a TimelineNoteEntry
func (TimelineEntry) AsTimelineStatusEntry ¶
func (t TimelineEntry) AsTimelineStatusEntry() (TimelineStatusEntry, error)
AsTimelineStatusEntry returns the union data inside the TimelineEntry as a TimelineStatusEntry
func (TimelineEntry) AsTimelineSystemEntry ¶
func (t TimelineEntry) AsTimelineSystemEntry() (TimelineSystemEntry, error)
AsTimelineSystemEntry returns the union data inside the TimelineEntry as a TimelineSystemEntry
func (TimelineEntry) AsTimelineTimersEntry ¶
func (t TimelineEntry) AsTimelineTimersEntry() (TimelineTimersEntry, error)
AsTimelineTimersEntry returns the union data inside the TimelineEntry as a TimelineTimersEntry
func (TimelineEntry) Discriminator ¶
func (t TimelineEntry) Discriminator() (string, error)
func (*TimelineEntry) FromTimelineAlertsEntry ¶
func (t *TimelineEntry) FromTimelineAlertsEntry(v TimelineAlertsEntry) error
FromTimelineAlertsEntry overwrites any union data inside the TimelineEntry as the provided TimelineAlertsEntry
func (*TimelineEntry) FromTimelineDeliveryEntry ¶
func (t *TimelineEntry) FromTimelineDeliveryEntry(v TimelineDeliveryEntry) error
FromTimelineDeliveryEntry overwrites any union data inside the TimelineEntry as the provided TimelineDeliveryEntry
func (*TimelineEntry) FromTimelineNoteEntry ¶
func (t *TimelineEntry) FromTimelineNoteEntry(v TimelineNoteEntry) error
FromTimelineNoteEntry overwrites any union data inside the TimelineEntry as the provided TimelineNoteEntry
func (*TimelineEntry) FromTimelineStatusEntry ¶
func (t *TimelineEntry) FromTimelineStatusEntry(v TimelineStatusEntry) error
FromTimelineStatusEntry overwrites any union data inside the TimelineEntry as the provided TimelineStatusEntry
func (*TimelineEntry) FromTimelineSystemEntry ¶
func (t *TimelineEntry) FromTimelineSystemEntry(v TimelineSystemEntry) error
FromTimelineSystemEntry overwrites any union data inside the TimelineEntry as the provided TimelineSystemEntry
func (*TimelineEntry) FromTimelineTimersEntry ¶
func (t *TimelineEntry) FromTimelineTimersEntry(v TimelineTimersEntry) error
FromTimelineTimersEntry overwrites any union data inside the TimelineEntry as the provided TimelineTimersEntry
func (TimelineEntry) MarshalJSON ¶
func (t TimelineEntry) MarshalJSON() ([]byte, error)
func (*TimelineEntry) MergeTimelineAlertsEntry ¶
func (t *TimelineEntry) MergeTimelineAlertsEntry(v TimelineAlertsEntry) error
MergeTimelineAlertsEntry performs a merge with any union data inside the TimelineEntry, using the provided TimelineAlertsEntry
func (*TimelineEntry) MergeTimelineDeliveryEntry ¶
func (t *TimelineEntry) MergeTimelineDeliveryEntry(v TimelineDeliveryEntry) error
MergeTimelineDeliveryEntry performs a merge with any union data inside the TimelineEntry, using the provided TimelineDeliveryEntry
func (*TimelineEntry) MergeTimelineNoteEntry ¶
func (t *TimelineEntry) MergeTimelineNoteEntry(v TimelineNoteEntry) error
MergeTimelineNoteEntry performs a merge with any union data inside the TimelineEntry, using the provided TimelineNoteEntry
func (*TimelineEntry) MergeTimelineStatusEntry ¶
func (t *TimelineEntry) MergeTimelineStatusEntry(v TimelineStatusEntry) error
MergeTimelineStatusEntry performs a merge with any union data inside the TimelineEntry, using the provided TimelineStatusEntry
func (*TimelineEntry) MergeTimelineSystemEntry ¶
func (t *TimelineEntry) MergeTimelineSystemEntry(v TimelineSystemEntry) error
MergeTimelineSystemEntry performs a merge with any union data inside the TimelineEntry, using the provided TimelineSystemEntry
func (*TimelineEntry) MergeTimelineTimersEntry ¶
func (t *TimelineEntry) MergeTimelineTimersEntry(v TimelineTimersEntry) error
MergeTimelineTimersEntry performs a merge with any union data inside the TimelineEntry, using the provided TimelineTimersEntry
func (*TimelineEntry) UnmarshalJSON ¶
func (t *TimelineEntry) UnmarshalJSON(b []byte) error
func (TimelineEntry) ValueByDiscriminator ¶
func (t TimelineEntry) ValueByDiscriminator() (interface{}, error)
type TimelineEntryBase ¶
type TimelineEntryBase struct {
// Actor Who caused the entry. `system` entries carry the reason in `reason`.
Actor TimelineActor `json:"actor"`
At time.Time `json:"at"`
// Id `TE` for lifecycle and system entries, `NE` for a Note (the same id as its `note`), `DE` for a delivery event.
Id PublicId `json:"id"`
Kind TimelineKind `json:"kind"`
}
TimelineEntryBase defines model for TimelineEntryBase.
type TimelineEntryList ¶
type TimelineEntryList struct {
Items []TimelineEntry `json:"items"`
NextCursor nullable.Nullable[string] `json:"next_cursor"`
}
TimelineEntryList defines model for TimelineEntryList.
type TimelineKind ¶
type TimelineKind string
TimelineKind defines model for TimelineKind.
const ( TimelineKindAlerts TimelineKind = "alerts" TimelineKindDelivery TimelineKind = "delivery" TimelineKindNotes TimelineKind = "notes" TimelineKindStatus TimelineKind = "status" TimelineKindSystem TimelineKind = "system" TimelineKindTimers TimelineKind = "timers" )
Defines values for TimelineKind.
func (TimelineKind) Valid ¶
func (e TimelineKind) Valid() bool
Valid indicates whether the value is a known member of the TimelineKind enum.
type TimelineLifecycleFields ¶
type TimelineLifecycleFields struct {
// Event Lifecycle event names, exactly as in the lifecycle event tables (every row is one Timeline entry with the row's kind, loudness and Mentions).
// The Timeline kind of each event is given in `x-event-kinds`.
Event LifecycleEvent `json:"event"`
Loudness Loudness `json:"loudness"`
Mentions []MentionName `json:"mentions"`
}
TimelineLifecycleFields defines model for TimelineLifecycleFields.
type TimelineNoteEntry ¶
type TimelineNoteEntry struct {
// Actor Who caused the entry. `system` entries carry the reason in `reason`.
Actor TimelineActor `json:"actor"`
At time.Time `json:"at"`
// Event Lifecycle event names, exactly as in the lifecycle event tables (every row is one Timeline entry with the row's kind, loudness and Mentions).
// The Timeline kind of each event is given in `x-event-kinds`.
Event LifecycleEvent `json:"event"`
// Id `TE` for lifecycle and system entries, `NE` for a Note (the same id as its `note`), `DE` for a delivery event.
Id PublicId `json:"id"`
Kind TimelineNoteEntryKind `json:"kind"`
Loudness Loudness `json:"loudness"`
Mentions []MentionName `json:"mentions"`
Note Note `json:"note"`
}
TimelineNoteEntry defines model for TimelineNoteEntry.
type TimelineNoteEntryKind ¶
type TimelineNoteEntryKind string
TimelineNoteEntryKind defines model for TimelineNoteEntry.Kind.
const (
TimelineNoteEntryKindNotes TimelineNoteEntryKind = "notes"
)
Defines values for TimelineNoteEntryKind.
func (TimelineNoteEntryKind) Valid ¶
func (e TimelineNoteEntryKind) Valid() bool
Valid indicates whether the value is a known member of the TimelineNoteEntryKind enum.
type TimelineStatusEntry ¶
type TimelineStatusEntry struct {
// Actor Who caused the entry. `system` entries carry the reason in `reason`.
Actor TimelineActor `json:"actor"`
At time.Time `json:"at"`
// Event Lifecycle event names, exactly as in the lifecycle event tables (every row is one Timeline entry with the row's kind, loudness and Mentions).
// The Timeline kind of each event is given in `x-event-kinds`.
Event LifecycleEvent `json:"event"`
// Fingerprints The Alerts that started the Alert Group (`created`), reopened it (`reopened`) or whose resolution resolved it (`resolved`): Alerts of one Snapshot are one entry.
Fingerprints *[]string `json:"fingerprints,omitempty"`
FromStatus nullable.Nullable[NullableAlertGroupStatus] `json:"from_status,omitempty"`
// Id `TE` for lifecycle and system entries, `NE` for a Note (the same id as its `note`), `DE` for a delivery event.
Id PublicId `json:"id"`
Kind TimelineStatusEntryKind `json:"kind"`
// LabelConflicts Static labels the Alerts of `created` or `reopened` already carried.
LabelConflicts *[]string `json:"label_conflicts,omitempty"`
Loudness Loudness `json:"loudness"`
Mentions []MentionName `json:"mentions"`
// Owner The Owner after the entry, if any.
Owner *UserRef `json:"owner,omitempty"`
// PreviousOwner The Owner who lost the Alert Group (Takeover, urgency rise, auto-unacknowledge, an Owner disabled or deleted).
PreviousOwner *UserRef `json:"previous_owner,omitempty"`
// Reason Reason of an automatic status change, as text; clients translate `reason_code` and show this text only when there is no code.
Reason nullable.Nullable[string] `json:"reason,omitempty"`
// ReasonCode The stable code of the reason of an automatic status change: why the Alert that resolved the Alert Group resolved (`resolved`, `gone`, `stale`, `integration_deleted`), why the Owner was released (`owner_disabled`, `owner_deleted`), or `reminders_unanswered` when nobody answered the last two Reminders and the Alert Group was unacknowledged automatically. Null when the entry has no reason or its reason has no code.
ReasonCode nullable.Nullable[NullableStatusChangeReason] `json:"reason_code,omitempty"`
SnoozeUntil nullable.Nullable[time.Time] `json:"snooze_until,omitempty"`
ToStatus *AlertGroupStatus `json:"to_status,omitempty"`
}
TimelineStatusEntry defines model for TimelineStatusEntry.
type TimelineStatusEntryKind ¶
type TimelineStatusEntryKind string
TimelineStatusEntryKind defines model for TimelineStatusEntry.Kind.
const (
TimelineStatusEntryKindStatus TimelineStatusEntryKind = "status"
)
Defines values for TimelineStatusEntryKind.
func (TimelineStatusEntryKind) Valid ¶
func (e TimelineStatusEntryKind) Valid() bool
Valid indicates whether the value is a known member of the TimelineStatusEntryKind enum.
type TimelineSystemEntry ¶
type TimelineSystemEntry struct {
// Actor Who caused the entry. `system` entries carry the reason in `reason`.
Actor TimelineActor `json:"actor"`
At time.Time `json:"at"`
Detail nullable.Nullable[string] `json:"detail,omitempty"`
// Event Set for lifecycle events of kind `system`.
Event *LifecycleEvent `json:"event,omitempty"`
// Id `TE` for lifecycle and system entries, `NE` for a Note (the same id as its `note`), `DE` for a delivery event.
Id PublicId `json:"id"`
Kind TimelineSystemEntryKind `json:"kind"`
Loudness *Loudness `json:"loudness,omitempty"`
Mentions *[]MentionName `json:"mentions,omitempty"`
PeriodFrom nullable.Nullable[time.Time] `json:"period_from,omitempty"`
PeriodTo nullable.Nullable[time.Time] `json:"period_to,omitempty"`
SystemEvent TimelineSystemEntrySystemEvent `json:"system_event"`
}
TimelineSystemEntry defines model for TimelineSystemEntry.
type TimelineSystemEntryKind ¶
type TimelineSystemEntryKind string
TimelineSystemEntryKind defines model for TimelineSystemEntry.Kind.
const (
TimelineSystemEntryKindSystem TimelineSystemEntryKind = "system"
)
Defines values for TimelineSystemEntryKind.
func (TimelineSystemEntryKind) Valid ¶
func (e TimelineSystemEntryKind) Valid() bool
Valid indicates whether the value is a known member of the TimelineSystemEntryKind enum.
type TimelineSystemEntrySystemEvent ¶
type TimelineSystemEntrySystemEvent string
TimelineSystemEntrySystemEvent defines model for TimelineSystemEntry.SystemEvent.
const ( TimelineSystemEntrySystemEventFallbackTemplateUsed TimelineSystemEntrySystemEvent = "fallback_template_used" TimelineSystemEntrySystemEventMovedToDefaultRoute TimelineSystemEntrySystemEvent = "moved_to_default_route" TimelineSystemEntrySystemEventTemplateValueMissing TimelineSystemEntrySystemEvent = "template_value_missing" )
Defines values for TimelineSystemEntrySystemEvent.
func (TimelineSystemEntrySystemEvent) Valid ¶
func (e TimelineSystemEntrySystemEvent) Valid() bool
Valid indicates whether the value is a known member of the TimelineSystemEntrySystemEvent enum.
type TimelineTimersEntry ¶
type TimelineTimersEntry struct {
// Actor Who caused the entry. `system` entries carry the reason in `reason`.
Actor TimelineActor `json:"actor"`
At time.Time `json:"at"`
// Event Lifecycle event names, exactly as in the lifecycle event tables (every row is one Timeline entry with the row's kind, loudness and Mentions).
// The Timeline kind of each event is given in `x-event-kinds`.
Event LifecycleEvent `json:"event"`
// Id `TE` for lifecycle and system entries, `NE` for a Note (the same id as its `note`), `DE` for a delivery event.
Id PublicId `json:"id"`
Kind TimelineTimersEntryKind `json:"kind"`
Loudness Loudness `json:"loudness"`
Mentions []MentionName `json:"mentions"`
// MissedCount For `notices_missed`.
MissedCount nullable.Nullable[int] `json:"missed_count,omitempty"`
NoticeNumber nullable.Nullable[int] `json:"notice_number,omitempty"`
}
TimelineTimersEntry defines model for TimelineTimersEntry.
type TimelineTimersEntryKind ¶
type TimelineTimersEntryKind string
TimelineTimersEntryKind defines model for TimelineTimersEntry.Kind.
const (
TimelineTimersEntryKindTimers TimelineTimersEntryKind = "timers"
)
Defines values for TimelineTimersEntryKind.
func (TimelineTimersEntryKind) Valid ¶
func (e TimelineTimersEntryKind) Valid() bool
Valid indicates whether the value is a known member of the TimelineTimersEntryKind enum.
type TokenId ¶
type TokenId = PublicId
TokenId Opaque public identifier (`public_id`): a type prefix of one or two letters followed by 12 random characters of Crockford base32 (`0`–`9` and `A`–`Z` without `I`, `L`, `O` and `U`; 60 bits), such as `AGK7M3QX9P2RTA` for an Alert Group. Prefixes use the same letters and differ per type: `AG` Alert Group, `AE` Audit log entry, `AK` Account link, `AR` Account link request, `CN` Connection, `CR` check run, `DE` delivery event, `DS` Destination, `KR` Link rule, `NE` Note, `NK` Integration token, `NT` Integration, `PT` Personal access token, `RG` Organization, `RQ` record of the Request log, `RT` Route, `SA` Service account, `SN` session, `SR` User, `SS` Stored Snapshot, `ST` Service account token, `TB` Lookup table, `TE` Timeline entry. Responses always carry the canonical upper-case form. Input is case-insensitive and normalized before lookup — `O` reads as `0`, `I` and `L` as `1` — so the pattern also admits lower case and those letters. People refer to Alert Groups by `#N`, never by `public_id`.
type TooManyRequests ¶
type TooManyRequests = Problem
TooManyRequests RFC 9457 problem details, served as `application/problem+json`. `type` is a stable URI under `https://muster-io.github.io/muster/problems/`; clients branch on `type`, `code` and `errors[].code`, never on `title` or `detail`. Validation errors raised by the request-validation middleware and by the strict server are mapped to this schema by one function. Every `code` is listed in `x-problem-codes`.
type TotpCode ¶
type TotpCode struct {
// Code Current TOTP code.
Code string `json:"code"`
}
TotpCode defines model for TotpCode.
type TotpEnrolment ¶
type TotpEnrolment struct {
OtpauthUri string `json:"otpauth_uri"`
// Secret Base32 seed for manual entry.
Secret string `json:"secret"`
}
TotpEnrolment Shown once, while enrolling. The UI renders `otpauth_uri` as a QR code.
type TotpPolicy ¶
type TotpPolicy string
TotpPolicy Who must enrol TOTP. `local_users` covers every account that has a password; an account that signs in through OIDC — created through OIDC or linked — is not one. A user has one TOTP enrolment, asked at every sign-in and kept when the account changes its sign-in method; on an OIDC sign-in `oidc.skip_totp_with_idp_mfa` may skip it.
const ( TotpPolicyEveryone TotpPolicy = "everyone" TotpPolicyLocalUsers TotpPolicy = "local_users" TotpPolicyNobody TotpPolicy = "nobody" )
Defines values for TotpPolicy.
func (TotpPolicy) Valid ¶
func (e TotpPolicy) Valid() bool
Valid indicates whether the value is a known member of the TotpPolicy enum.
type TotpRecoveryCodes ¶
type TotpRecoveryCodes struct {
Codes []string `json:"codes"`
}
TotpRecoveryCodes Single-use recovery codes, shown once.
type TotpRemoval ¶
type TotpRemoval struct {
// Password The current password; local users only.
Password *string `json:"password,omitempty"`
// RecoveryCode A single-use recovery code.
RecoveryCode *string `json:"recovery_code,omitempty"`
// TotpCode Current TOTP code.
TotpCode *string `json:"totp_code,omitempty"`
}
TotpRemoval One proof is enough.
type TotpStatus ¶
type TotpStatus struct {
Enrolled bool `json:"enrolled"`
EnrolledAt nullable.Nullable[time.Time] `json:"enrolled_at,omitempty"`
EnrolmentPending bool `json:"enrolment_pending"`
RecoveryCodesRemaining int `json:"recovery_codes_remaining"`
}
TotpStatus defines model for TotpStatus.
type Transport ¶
type Transport string
Transport How a Command or change reached Muster. `bridge` marks presses and Text commands through a Bridge Connection; `slack` marks presses through a Slack Connection; `cli` marks audited CLI commands (`--actor`); `system` marks transitions Muster starts on its own.
const ( TransportApi Transport = "api" TransportBridge Transport = "bridge" TransportCli Transport = "cli" TransportMattermost Transport = "mattermost" TransportSlack Transport = "slack" TransportSystem Transport = "system" TransportTelegram Transport = "telegram" TransportUi Transport = "ui" )
Defines values for Transport.
type UnacknowledgeAlertGroupResponse ¶
type UnacknowledgeAlertGroupResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *CommandResult
// ApplicationproblemJSON401 the response for an HTTP 401 `application/problem+json` response
ApplicationproblemJSON401 *Unauthorized
// ApplicationproblemJSON403 the response for an HTTP 403 `application/problem+json` response
ApplicationproblemJSON403 *Forbidden
// ApplicationproblemJSON404 the response for an HTTP 404 `application/problem+json` response
ApplicationproblemJSON404 *NotFound
// ApplicationproblemJSON409 the response for an HTTP 409 `application/problem+json` response
ApplicationproblemJSON409 *Conflict
// ApplicationproblemJSON429 the response for an HTTP 429 `application/problem+json` response
ApplicationproblemJSON429 *TooManyRequests
// Headers429 the parsed response headers for an HTTP 429 response
Headers429 *UnacknowledgeAlertGroupResponse429Headers
}
func ParseUnacknowledgeAlertGroupResponse ¶
func ParseUnacknowledgeAlertGroupResponse(rsp *http.Response) (*UnacknowledgeAlertGroupResponse, error)
ParseUnacknowledgeAlertGroupResponse parses an HTTP response from a UnacknowledgeAlertGroupWithResponse call
func (UnacknowledgeAlertGroupResponse) ContentType ¶
func (r UnacknowledgeAlertGroupResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (UnacknowledgeAlertGroupResponse) GetApplicationproblemJSON401 ¶
func (r UnacknowledgeAlertGroupResponse) GetApplicationproblemJSON401() *Unauthorized
GetApplicationproblemJSON401 returns the response for an HTTP 401 `application/problem+json` response
func (UnacknowledgeAlertGroupResponse) GetApplicationproblemJSON403 ¶
func (r UnacknowledgeAlertGroupResponse) GetApplicationproblemJSON403() *Forbidden
GetApplicationproblemJSON403 returns the response for an HTTP 403 `application/problem+json` response
func (UnacknowledgeAlertGroupResponse) GetApplicationproblemJSON404 ¶
func (r UnacknowledgeAlertGroupResponse) GetApplicationproblemJSON404() *NotFound
GetApplicationproblemJSON404 returns the response for an HTTP 404 `application/problem+json` response
func (UnacknowledgeAlertGroupResponse) GetApplicationproblemJSON409 ¶
func (r UnacknowledgeAlertGroupResponse) GetApplicationproblemJSON409() *Conflict
GetApplicationproblemJSON409 returns the response for an HTTP 409 `application/problem+json` response
func (UnacknowledgeAlertGroupResponse) GetApplicationproblemJSON429 ¶
func (r UnacknowledgeAlertGroupResponse) GetApplicationproblemJSON429() *TooManyRequests
GetApplicationproblemJSON429 returns the response for an HTTP 429 `application/problem+json` response
func (UnacknowledgeAlertGroupResponse) GetBody ¶
func (r UnacknowledgeAlertGroupResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (UnacknowledgeAlertGroupResponse) GetJSON200 ¶
func (r UnacknowledgeAlertGroupResponse) GetJSON200() *CommandResult
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (UnacknowledgeAlertGroupResponse) Status ¶
func (r UnacknowledgeAlertGroupResponse) Status() string
Status returns HTTPResponse.Status
func (UnacknowledgeAlertGroupResponse) StatusCode ¶
func (r UnacknowledgeAlertGroupResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type UnacknowledgeAlertGroupResponse429Headers ¶
type UnacknowledgeAlertGroupResponse429Headers struct {
RetryAfter *int
}
UnacknowledgeAlertGroupResponse429Headers the declared response headers of an HTTP 429 response for UnacknowledgeAlertGroup
type Unauthorized ¶
type Unauthorized = Problem
Unauthorized RFC 9457 problem details, served as `application/problem+json`. `type` is a stable URI under `https://muster-io.github.io/muster/problems/`; clients branch on `type`, `code` and `errors[].code`, never on `title` or `detail`. Validation errors raised by the request-validation middleware and by the strict server are mapped to this schema by one function. Every `code` is listed in `x-problem-codes`.
type Unprocessable ¶
type Unprocessable = Problem
Unprocessable RFC 9457 problem details, served as `application/problem+json`. `type` is a stable URI under `https://muster-io.github.io/muster/problems/`; clients branch on `type`, `code` and `errors[].code`, never on `title` or `detail`. Validation errors raised by the request-validation middleware and by the strict server are mapped to this schema by one function. Every `code` is listed in `x-problem-codes`.
type UnresolveAlertGroupResponse ¶
type UnresolveAlertGroupResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *CommandResult
// ApplicationproblemJSON401 the response for an HTTP 401 `application/problem+json` response
ApplicationproblemJSON401 *Unauthorized
// ApplicationproblemJSON403 the response for an HTTP 403 `application/problem+json` response
ApplicationproblemJSON403 *Forbidden
// ApplicationproblemJSON404 the response for an HTTP 404 `application/problem+json` response
ApplicationproblemJSON404 *NotFound
// ApplicationproblemJSON409 the response for an HTTP 409 `application/problem+json` response
ApplicationproblemJSON409 *Conflict
// ApplicationproblemJSON429 the response for an HTTP 429 `application/problem+json` response
ApplicationproblemJSON429 *TooManyRequests
// Headers429 the parsed response headers for an HTTP 429 response
Headers429 *UnresolveAlertGroupResponse429Headers
}
func ParseUnresolveAlertGroupResponse ¶
func ParseUnresolveAlertGroupResponse(rsp *http.Response) (*UnresolveAlertGroupResponse, error)
ParseUnresolveAlertGroupResponse parses an HTTP response from a UnresolveAlertGroupWithResponse call
func (UnresolveAlertGroupResponse) ContentType ¶
func (r UnresolveAlertGroupResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (UnresolveAlertGroupResponse) GetApplicationproblemJSON401 ¶
func (r UnresolveAlertGroupResponse) GetApplicationproblemJSON401() *Unauthorized
GetApplicationproblemJSON401 returns the response for an HTTP 401 `application/problem+json` response
func (UnresolveAlertGroupResponse) GetApplicationproblemJSON403 ¶
func (r UnresolveAlertGroupResponse) GetApplicationproblemJSON403() *Forbidden
GetApplicationproblemJSON403 returns the response for an HTTP 403 `application/problem+json` response
func (UnresolveAlertGroupResponse) GetApplicationproblemJSON404 ¶
func (r UnresolveAlertGroupResponse) GetApplicationproblemJSON404() *NotFound
GetApplicationproblemJSON404 returns the response for an HTTP 404 `application/problem+json` response
func (UnresolveAlertGroupResponse) GetApplicationproblemJSON409 ¶
func (r UnresolveAlertGroupResponse) GetApplicationproblemJSON409() *Conflict
GetApplicationproblemJSON409 returns the response for an HTTP 409 `application/problem+json` response
func (UnresolveAlertGroupResponse) GetApplicationproblemJSON429 ¶
func (r UnresolveAlertGroupResponse) GetApplicationproblemJSON429() *TooManyRequests
GetApplicationproblemJSON429 returns the response for an HTTP 429 `application/problem+json` response
func (UnresolveAlertGroupResponse) GetBody ¶
func (r UnresolveAlertGroupResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (UnresolveAlertGroupResponse) GetJSON200 ¶
func (r UnresolveAlertGroupResponse) GetJSON200() *CommandResult
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (UnresolveAlertGroupResponse) Status ¶
func (r UnresolveAlertGroupResponse) Status() string
Status returns HTTPResponse.Status
func (UnresolveAlertGroupResponse) StatusCode ¶
func (r UnresolveAlertGroupResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type UnresolveAlertGroupResponse429Headers ¶
type UnresolveAlertGroupResponse429Headers struct {
RetryAfter *int
}
UnresolveAlertGroupResponse429Headers the declared response headers of an HTTP 429 response for UnresolveAlertGroup
type UnsnoozeAlertGroupResponse ¶
type UnsnoozeAlertGroupResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *CommandResult
// ApplicationproblemJSON401 the response for an HTTP 401 `application/problem+json` response
ApplicationproblemJSON401 *Unauthorized
// ApplicationproblemJSON403 the response for an HTTP 403 `application/problem+json` response
ApplicationproblemJSON403 *Forbidden
// ApplicationproblemJSON404 the response for an HTTP 404 `application/problem+json` response
ApplicationproblemJSON404 *NotFound
// ApplicationproblemJSON409 the response for an HTTP 409 `application/problem+json` response
ApplicationproblemJSON409 *Conflict
// ApplicationproblemJSON429 the response for an HTTP 429 `application/problem+json` response
ApplicationproblemJSON429 *TooManyRequests
// Headers429 the parsed response headers for an HTTP 429 response
Headers429 *UnsnoozeAlertGroupResponse429Headers
}
func ParseUnsnoozeAlertGroupResponse ¶
func ParseUnsnoozeAlertGroupResponse(rsp *http.Response) (*UnsnoozeAlertGroupResponse, error)
ParseUnsnoozeAlertGroupResponse parses an HTTP response from a UnsnoozeAlertGroupWithResponse call
func (UnsnoozeAlertGroupResponse) ContentType ¶
func (r UnsnoozeAlertGroupResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (UnsnoozeAlertGroupResponse) GetApplicationproblemJSON401 ¶
func (r UnsnoozeAlertGroupResponse) GetApplicationproblemJSON401() *Unauthorized
GetApplicationproblemJSON401 returns the response for an HTTP 401 `application/problem+json` response
func (UnsnoozeAlertGroupResponse) GetApplicationproblemJSON403 ¶
func (r UnsnoozeAlertGroupResponse) GetApplicationproblemJSON403() *Forbidden
GetApplicationproblemJSON403 returns the response for an HTTP 403 `application/problem+json` response
func (UnsnoozeAlertGroupResponse) GetApplicationproblemJSON404 ¶
func (r UnsnoozeAlertGroupResponse) GetApplicationproblemJSON404() *NotFound
GetApplicationproblemJSON404 returns the response for an HTTP 404 `application/problem+json` response
func (UnsnoozeAlertGroupResponse) GetApplicationproblemJSON409 ¶
func (r UnsnoozeAlertGroupResponse) GetApplicationproblemJSON409() *Conflict
GetApplicationproblemJSON409 returns the response for an HTTP 409 `application/problem+json` response
func (UnsnoozeAlertGroupResponse) GetApplicationproblemJSON429 ¶
func (r UnsnoozeAlertGroupResponse) GetApplicationproblemJSON429() *TooManyRequests
GetApplicationproblemJSON429 returns the response for an HTTP 429 `application/problem+json` response
func (UnsnoozeAlertGroupResponse) GetBody ¶
func (r UnsnoozeAlertGroupResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (UnsnoozeAlertGroupResponse) GetJSON200 ¶
func (r UnsnoozeAlertGroupResponse) GetJSON200() *CommandResult
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (UnsnoozeAlertGroupResponse) Status ¶
func (r UnsnoozeAlertGroupResponse) Status() string
Status returns HTTPResponse.Status
func (UnsnoozeAlertGroupResponse) StatusCode ¶
func (r UnsnoozeAlertGroupResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type UnsnoozeAlertGroupResponse429Headers ¶
type UnsnoozeAlertGroupResponse429Headers struct {
RetryAfter *int
}
UnsnoozeAlertGroupResponse429Headers the declared response headers of an HTTP 429 response for UnsnoozeAlertGroup
type UpdateConnectionJSONRequestBody ¶
type UpdateConnectionJSONRequestBody = ConnectionInput
UpdateConnectionJSONRequestBody defines body for UpdateConnection for application/json ContentType.
type UpdateConnectionParams ¶
type UpdateConnectionParams struct {
// IfMatch ETag of the representation being replaced, as returned by the last read. A mismatch gets `412`; a missing header gets `428`.
IfMatch IfMatch `json:"If-Match"`
}
UpdateConnectionParams defines parameters for UpdateConnection.
type UpdateConnectionResponse ¶
type UpdateConnectionResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *Connection
// ApplicationproblemJSON400 the response for an HTTP 400 `application/problem+json` response
ApplicationproblemJSON400 *BadRequest
// ApplicationproblemJSON401 the response for an HTTP 401 `application/problem+json` response
ApplicationproblemJSON401 *Unauthorized
// ApplicationproblemJSON403 the response for an HTTP 403 `application/problem+json` response
ApplicationproblemJSON403 *Forbidden
// ApplicationproblemJSON404 the response for an HTTP 404 `application/problem+json` response
ApplicationproblemJSON404 *NotFound
// ApplicationproblemJSON409 the response for an HTTP 409 `application/problem+json` response
ApplicationproblemJSON409 *Conflict
// ApplicationproblemJSON412 the response for an HTTP 412 `application/problem+json` response
ApplicationproblemJSON412 *PreconditionFailed
// ApplicationproblemJSON422 the response for an HTTP 422 `application/problem+json` response
ApplicationproblemJSON422 *Unprocessable
// ApplicationproblemJSON428 the response for an HTTP 428 `application/problem+json` response
ApplicationproblemJSON428 *PreconditionRequired
// ApplicationproblemJSON429 the response for an HTTP 429 `application/problem+json` response
ApplicationproblemJSON429 *TooManyRequests
// Headers200 the parsed response headers for an HTTP 200 response
Headers200 *UpdateConnectionResponse200Headers
// Headers429 the parsed response headers for an HTTP 429 response
Headers429 *UpdateConnectionResponse429Headers
}
func ParseUpdateConnectionResponse ¶
func ParseUpdateConnectionResponse(rsp *http.Response) (*UpdateConnectionResponse, error)
ParseUpdateConnectionResponse parses an HTTP response from a UpdateConnectionWithResponse call
func (UpdateConnectionResponse) ContentType ¶
func (r UpdateConnectionResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (UpdateConnectionResponse) GetApplicationproblemJSON400 ¶
func (r UpdateConnectionResponse) GetApplicationproblemJSON400() *BadRequest
GetApplicationproblemJSON400 returns the response for an HTTP 400 `application/problem+json` response
func (UpdateConnectionResponse) GetApplicationproblemJSON401 ¶
func (r UpdateConnectionResponse) GetApplicationproblemJSON401() *Unauthorized
GetApplicationproblemJSON401 returns the response for an HTTP 401 `application/problem+json` response
func (UpdateConnectionResponse) GetApplicationproblemJSON403 ¶
func (r UpdateConnectionResponse) GetApplicationproblemJSON403() *Forbidden
GetApplicationproblemJSON403 returns the response for an HTTP 403 `application/problem+json` response
func (UpdateConnectionResponse) GetApplicationproblemJSON404 ¶
func (r UpdateConnectionResponse) GetApplicationproblemJSON404() *NotFound
GetApplicationproblemJSON404 returns the response for an HTTP 404 `application/problem+json` response
func (UpdateConnectionResponse) GetApplicationproblemJSON409 ¶
func (r UpdateConnectionResponse) GetApplicationproblemJSON409() *Conflict
GetApplicationproblemJSON409 returns the response for an HTTP 409 `application/problem+json` response
func (UpdateConnectionResponse) GetApplicationproblemJSON412 ¶
func (r UpdateConnectionResponse) GetApplicationproblemJSON412() *PreconditionFailed
GetApplicationproblemJSON412 returns the response for an HTTP 412 `application/problem+json` response
func (UpdateConnectionResponse) GetApplicationproblemJSON422 ¶
func (r UpdateConnectionResponse) GetApplicationproblemJSON422() *Unprocessable
GetApplicationproblemJSON422 returns the response for an HTTP 422 `application/problem+json` response
func (UpdateConnectionResponse) GetApplicationproblemJSON428 ¶
func (r UpdateConnectionResponse) GetApplicationproblemJSON428() *PreconditionRequired
GetApplicationproblemJSON428 returns the response for an HTTP 428 `application/problem+json` response
func (UpdateConnectionResponse) GetApplicationproblemJSON429 ¶
func (r UpdateConnectionResponse) GetApplicationproblemJSON429() *TooManyRequests
GetApplicationproblemJSON429 returns the response for an HTTP 429 `application/problem+json` response
func (UpdateConnectionResponse) GetBody ¶
func (r UpdateConnectionResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (UpdateConnectionResponse) GetJSON200 ¶
func (r UpdateConnectionResponse) GetJSON200() *Connection
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (UpdateConnectionResponse) Status ¶
func (r UpdateConnectionResponse) Status() string
Status returns HTTPResponse.Status
func (UpdateConnectionResponse) StatusCode ¶
func (r UpdateConnectionResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type UpdateConnectionResponse200Headers ¶
type UpdateConnectionResponse200Headers struct {
ETag *string
}
UpdateConnectionResponse200Headers the declared response headers of an HTTP 200 response for UpdateConnection
type UpdateConnectionResponse429Headers ¶
type UpdateConnectionResponse429Headers struct {
RetryAfter *int
}
UpdateConnectionResponse429Headers the declared response headers of an HTTP 429 response for UpdateConnection
type UpdateDestinationJSONRequestBody ¶
type UpdateDestinationJSONRequestBody = DestinationInput
UpdateDestinationJSONRequestBody defines body for UpdateDestination for application/json ContentType.
type UpdateDestinationParams ¶
type UpdateDestinationParams struct {
// IfMatch ETag of the representation being replaced, as returned by the last read. A mismatch gets `412`; a missing header gets `428`.
IfMatch IfMatch `json:"If-Match"`
}
UpdateDestinationParams defines parameters for UpdateDestination.
type UpdateDestinationResponse ¶
type UpdateDestinationResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *Destination
// ApplicationproblemJSON400 the response for an HTTP 400 `application/problem+json` response
ApplicationproblemJSON400 *BadRequest
// ApplicationproblemJSON401 the response for an HTTP 401 `application/problem+json` response
ApplicationproblemJSON401 *Unauthorized
// ApplicationproblemJSON403 the response for an HTTP 403 `application/problem+json` response
ApplicationproblemJSON403 *Forbidden
// ApplicationproblemJSON404 the response for an HTTP 404 `application/problem+json` response
ApplicationproblemJSON404 *NotFound
// ApplicationproblemJSON409 the response for an HTTP 409 `application/problem+json` response
ApplicationproblemJSON409 *Conflict
// ApplicationproblemJSON412 the response for an HTTP 412 `application/problem+json` response
ApplicationproblemJSON412 *PreconditionFailed
// ApplicationproblemJSON422 the response for an HTTP 422 `application/problem+json` response
ApplicationproblemJSON422 *Unprocessable
// ApplicationproblemJSON428 the response for an HTTP 428 `application/problem+json` response
ApplicationproblemJSON428 *PreconditionRequired
// ApplicationproblemJSON429 the response for an HTTP 429 `application/problem+json` response
ApplicationproblemJSON429 *TooManyRequests
// ApplicationproblemJSON503 the response for an HTTP 503 `application/problem+json` response
ApplicationproblemJSON503 *Limited
// Headers200 the parsed response headers for an HTTP 200 response
Headers200 *UpdateDestinationResponse200Headers
// Headers429 the parsed response headers for an HTTP 429 response
Headers429 *UpdateDestinationResponse429Headers
// Headers503 the parsed response headers for an HTTP 503 response
Headers503 *UpdateDestinationResponse503Headers
}
func ParseUpdateDestinationResponse ¶
func ParseUpdateDestinationResponse(rsp *http.Response) (*UpdateDestinationResponse, error)
ParseUpdateDestinationResponse parses an HTTP response from a UpdateDestinationWithResponse call
func (UpdateDestinationResponse) ContentType ¶
func (r UpdateDestinationResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (UpdateDestinationResponse) GetApplicationproblemJSON400 ¶
func (r UpdateDestinationResponse) GetApplicationproblemJSON400() *BadRequest
GetApplicationproblemJSON400 returns the response for an HTTP 400 `application/problem+json` response
func (UpdateDestinationResponse) GetApplicationproblemJSON401 ¶
func (r UpdateDestinationResponse) GetApplicationproblemJSON401() *Unauthorized
GetApplicationproblemJSON401 returns the response for an HTTP 401 `application/problem+json` response
func (UpdateDestinationResponse) GetApplicationproblemJSON403 ¶
func (r UpdateDestinationResponse) GetApplicationproblemJSON403() *Forbidden
GetApplicationproblemJSON403 returns the response for an HTTP 403 `application/problem+json` response
func (UpdateDestinationResponse) GetApplicationproblemJSON404 ¶
func (r UpdateDestinationResponse) GetApplicationproblemJSON404() *NotFound
GetApplicationproblemJSON404 returns the response for an HTTP 404 `application/problem+json` response
func (UpdateDestinationResponse) GetApplicationproblemJSON409 ¶
func (r UpdateDestinationResponse) GetApplicationproblemJSON409() *Conflict
GetApplicationproblemJSON409 returns the response for an HTTP 409 `application/problem+json` response
func (UpdateDestinationResponse) GetApplicationproblemJSON412 ¶
func (r UpdateDestinationResponse) GetApplicationproblemJSON412() *PreconditionFailed
GetApplicationproblemJSON412 returns the response for an HTTP 412 `application/problem+json` response
func (UpdateDestinationResponse) GetApplicationproblemJSON422 ¶
func (r UpdateDestinationResponse) GetApplicationproblemJSON422() *Unprocessable
GetApplicationproblemJSON422 returns the response for an HTTP 422 `application/problem+json` response
func (UpdateDestinationResponse) GetApplicationproblemJSON428 ¶
func (r UpdateDestinationResponse) GetApplicationproblemJSON428() *PreconditionRequired
GetApplicationproblemJSON428 returns the response for an HTTP 428 `application/problem+json` response
func (UpdateDestinationResponse) GetApplicationproblemJSON429 ¶
func (r UpdateDestinationResponse) GetApplicationproblemJSON429() *TooManyRequests
GetApplicationproblemJSON429 returns the response for an HTTP 429 `application/problem+json` response
func (UpdateDestinationResponse) GetApplicationproblemJSON503 ¶
func (r UpdateDestinationResponse) GetApplicationproblemJSON503() *Limited
GetApplicationproblemJSON503 returns the response for an HTTP 503 `application/problem+json` response
func (UpdateDestinationResponse) GetBody ¶
func (r UpdateDestinationResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (UpdateDestinationResponse) GetJSON200 ¶
func (r UpdateDestinationResponse) GetJSON200() *Destination
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (UpdateDestinationResponse) Status ¶
func (r UpdateDestinationResponse) Status() string
Status returns HTTPResponse.Status
func (UpdateDestinationResponse) StatusCode ¶
func (r UpdateDestinationResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type UpdateDestinationResponse200Headers ¶
type UpdateDestinationResponse200Headers struct {
ETag *string
}
UpdateDestinationResponse200Headers the declared response headers of an HTTP 200 response for UpdateDestination
type UpdateDestinationResponse429Headers ¶
type UpdateDestinationResponse429Headers struct {
RetryAfter *int
}
UpdateDestinationResponse429Headers the declared response headers of an HTTP 429 response for UpdateDestination
type UpdateDestinationResponse503Headers ¶
type UpdateDestinationResponse503Headers struct {
RetryAfter *int
}
UpdateDestinationResponse503Headers the declared response headers of an HTTP 503 response for UpdateDestination
type UpdateIntegrationJSONRequestBody ¶
type UpdateIntegrationJSONRequestBody = IntegrationInput
UpdateIntegrationJSONRequestBody defines body for UpdateIntegration for application/json ContentType.
type UpdateIntegrationParams ¶
type UpdateIntegrationParams struct {
// IfMatch ETag of the representation being replaced, as returned by the last read. A mismatch gets `412`; a missing header gets `428`.
IfMatch IfMatch `json:"If-Match"`
}
UpdateIntegrationParams defines parameters for UpdateIntegration.
type UpdateIntegrationResponse ¶
type UpdateIntegrationResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *Integration
// ApplicationproblemJSON400 the response for an HTTP 400 `application/problem+json` response
ApplicationproblemJSON400 *BadRequest
// ApplicationproblemJSON401 the response for an HTTP 401 `application/problem+json` response
ApplicationproblemJSON401 *Unauthorized
// ApplicationproblemJSON403 the response for an HTTP 403 `application/problem+json` response
ApplicationproblemJSON403 *Forbidden
// ApplicationproblemJSON404 the response for an HTTP 404 `application/problem+json` response
ApplicationproblemJSON404 *NotFound
// ApplicationproblemJSON409 the response for an HTTP 409 `application/problem+json` response
ApplicationproblemJSON409 *Conflict
// ApplicationproblemJSON412 the response for an HTTP 412 `application/problem+json` response
ApplicationproblemJSON412 *PreconditionFailed
// ApplicationproblemJSON422 the response for an HTTP 422 `application/problem+json` response
ApplicationproblemJSON422 *Unprocessable
// ApplicationproblemJSON428 the response for an HTTP 428 `application/problem+json` response
ApplicationproblemJSON428 *PreconditionRequired
// ApplicationproblemJSON429 the response for an HTTP 429 `application/problem+json` response
ApplicationproblemJSON429 *TooManyRequests
// Headers200 the parsed response headers for an HTTP 200 response
Headers200 *UpdateIntegrationResponse200Headers
// Headers429 the parsed response headers for an HTTP 429 response
Headers429 *UpdateIntegrationResponse429Headers
}
func ParseUpdateIntegrationResponse ¶
func ParseUpdateIntegrationResponse(rsp *http.Response) (*UpdateIntegrationResponse, error)
ParseUpdateIntegrationResponse parses an HTTP response from a UpdateIntegrationWithResponse call
func (UpdateIntegrationResponse) ContentType ¶
func (r UpdateIntegrationResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (UpdateIntegrationResponse) GetApplicationproblemJSON400 ¶
func (r UpdateIntegrationResponse) GetApplicationproblemJSON400() *BadRequest
GetApplicationproblemJSON400 returns the response for an HTTP 400 `application/problem+json` response
func (UpdateIntegrationResponse) GetApplicationproblemJSON401 ¶
func (r UpdateIntegrationResponse) GetApplicationproblemJSON401() *Unauthorized
GetApplicationproblemJSON401 returns the response for an HTTP 401 `application/problem+json` response
func (UpdateIntegrationResponse) GetApplicationproblemJSON403 ¶
func (r UpdateIntegrationResponse) GetApplicationproblemJSON403() *Forbidden
GetApplicationproblemJSON403 returns the response for an HTTP 403 `application/problem+json` response
func (UpdateIntegrationResponse) GetApplicationproblemJSON404 ¶
func (r UpdateIntegrationResponse) GetApplicationproblemJSON404() *NotFound
GetApplicationproblemJSON404 returns the response for an HTTP 404 `application/problem+json` response
func (UpdateIntegrationResponse) GetApplicationproblemJSON409 ¶
func (r UpdateIntegrationResponse) GetApplicationproblemJSON409() *Conflict
GetApplicationproblemJSON409 returns the response for an HTTP 409 `application/problem+json` response
func (UpdateIntegrationResponse) GetApplicationproblemJSON412 ¶
func (r UpdateIntegrationResponse) GetApplicationproblemJSON412() *PreconditionFailed
GetApplicationproblemJSON412 returns the response for an HTTP 412 `application/problem+json` response
func (UpdateIntegrationResponse) GetApplicationproblemJSON422 ¶
func (r UpdateIntegrationResponse) GetApplicationproblemJSON422() *Unprocessable
GetApplicationproblemJSON422 returns the response for an HTTP 422 `application/problem+json` response
func (UpdateIntegrationResponse) GetApplicationproblemJSON428 ¶
func (r UpdateIntegrationResponse) GetApplicationproblemJSON428() *PreconditionRequired
GetApplicationproblemJSON428 returns the response for an HTTP 428 `application/problem+json` response
func (UpdateIntegrationResponse) GetApplicationproblemJSON429 ¶
func (r UpdateIntegrationResponse) GetApplicationproblemJSON429() *TooManyRequests
GetApplicationproblemJSON429 returns the response for an HTTP 429 `application/problem+json` response
func (UpdateIntegrationResponse) GetBody ¶
func (r UpdateIntegrationResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (UpdateIntegrationResponse) GetJSON200 ¶
func (r UpdateIntegrationResponse) GetJSON200() *Integration
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (UpdateIntegrationResponse) Status ¶
func (r UpdateIntegrationResponse) Status() string
Status returns HTTPResponse.Status
func (UpdateIntegrationResponse) StatusCode ¶
func (r UpdateIntegrationResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type UpdateIntegrationResponse200Headers ¶
type UpdateIntegrationResponse200Headers struct {
ETag *string
}
UpdateIntegrationResponse200Headers the declared response headers of an HTTP 200 response for UpdateIntegration
type UpdateIntegrationResponse429Headers ¶
type UpdateIntegrationResponse429Headers struct {
RetryAfter *int
}
UpdateIntegrationResponse429Headers the declared response headers of an HTTP 429 response for UpdateIntegration
type UpdateLinkRuleJSONRequestBody ¶
type UpdateLinkRuleJSONRequestBody = LinkRuleBase
UpdateLinkRuleJSONRequestBody defines body for UpdateLinkRule for application/json ContentType.
type UpdateLinkRuleParams ¶
type UpdateLinkRuleParams struct {
// IfMatch ETag of the representation being replaced, as returned by the last read. A mismatch gets `412`; a missing header gets `428`.
IfMatch IfMatch `json:"If-Match"`
}
UpdateLinkRuleParams defines parameters for UpdateLinkRule.
type UpdateLinkRuleResponse ¶
type UpdateLinkRuleResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *LinkRule
// ApplicationproblemJSON400 the response for an HTTP 400 `application/problem+json` response
ApplicationproblemJSON400 *BadRequest
// ApplicationproblemJSON401 the response for an HTTP 401 `application/problem+json` response
ApplicationproblemJSON401 *Unauthorized
// ApplicationproblemJSON403 the response for an HTTP 403 `application/problem+json` response
ApplicationproblemJSON403 *Forbidden
// ApplicationproblemJSON404 the response for an HTTP 404 `application/problem+json` response
ApplicationproblemJSON404 *NotFound
// ApplicationproblemJSON409 the response for an HTTP 409 `application/problem+json` response
ApplicationproblemJSON409 *Conflict
// ApplicationproblemJSON412 the response for an HTTP 412 `application/problem+json` response
ApplicationproblemJSON412 *PreconditionFailed
// ApplicationproblemJSON422 the response for an HTTP 422 `application/problem+json` response
ApplicationproblemJSON422 *Unprocessable
// ApplicationproblemJSON428 the response for an HTTP 428 `application/problem+json` response
ApplicationproblemJSON428 *PreconditionRequired
// ApplicationproblemJSON429 the response for an HTTP 429 `application/problem+json` response
ApplicationproblemJSON429 *TooManyRequests
// Headers200 the parsed response headers for an HTTP 200 response
Headers200 *UpdateLinkRuleResponse200Headers
// Headers429 the parsed response headers for an HTTP 429 response
Headers429 *UpdateLinkRuleResponse429Headers
}
func ParseUpdateLinkRuleResponse ¶
func ParseUpdateLinkRuleResponse(rsp *http.Response) (*UpdateLinkRuleResponse, error)
ParseUpdateLinkRuleResponse parses an HTTP response from a UpdateLinkRuleWithResponse call
func (UpdateLinkRuleResponse) ContentType ¶
func (r UpdateLinkRuleResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (UpdateLinkRuleResponse) GetApplicationproblemJSON400 ¶
func (r UpdateLinkRuleResponse) GetApplicationproblemJSON400() *BadRequest
GetApplicationproblemJSON400 returns the response for an HTTP 400 `application/problem+json` response
func (UpdateLinkRuleResponse) GetApplicationproblemJSON401 ¶
func (r UpdateLinkRuleResponse) GetApplicationproblemJSON401() *Unauthorized
GetApplicationproblemJSON401 returns the response for an HTTP 401 `application/problem+json` response
func (UpdateLinkRuleResponse) GetApplicationproblemJSON403 ¶
func (r UpdateLinkRuleResponse) GetApplicationproblemJSON403() *Forbidden
GetApplicationproblemJSON403 returns the response for an HTTP 403 `application/problem+json` response
func (UpdateLinkRuleResponse) GetApplicationproblemJSON404 ¶
func (r UpdateLinkRuleResponse) GetApplicationproblemJSON404() *NotFound
GetApplicationproblemJSON404 returns the response for an HTTP 404 `application/problem+json` response
func (UpdateLinkRuleResponse) GetApplicationproblemJSON409 ¶
func (r UpdateLinkRuleResponse) GetApplicationproblemJSON409() *Conflict
GetApplicationproblemJSON409 returns the response for an HTTP 409 `application/problem+json` response
func (UpdateLinkRuleResponse) GetApplicationproblemJSON412 ¶
func (r UpdateLinkRuleResponse) GetApplicationproblemJSON412() *PreconditionFailed
GetApplicationproblemJSON412 returns the response for an HTTP 412 `application/problem+json` response
func (UpdateLinkRuleResponse) GetApplicationproblemJSON422 ¶
func (r UpdateLinkRuleResponse) GetApplicationproblemJSON422() *Unprocessable
GetApplicationproblemJSON422 returns the response for an HTTP 422 `application/problem+json` response
func (UpdateLinkRuleResponse) GetApplicationproblemJSON428 ¶
func (r UpdateLinkRuleResponse) GetApplicationproblemJSON428() *PreconditionRequired
GetApplicationproblemJSON428 returns the response for an HTTP 428 `application/problem+json` response
func (UpdateLinkRuleResponse) GetApplicationproblemJSON429 ¶
func (r UpdateLinkRuleResponse) GetApplicationproblemJSON429() *TooManyRequests
GetApplicationproblemJSON429 returns the response for an HTTP 429 `application/problem+json` response
func (UpdateLinkRuleResponse) GetBody ¶
func (r UpdateLinkRuleResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (UpdateLinkRuleResponse) GetJSON200 ¶
func (r UpdateLinkRuleResponse) GetJSON200() *LinkRule
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (UpdateLinkRuleResponse) Status ¶
func (r UpdateLinkRuleResponse) Status() string
Status returns HTTPResponse.Status
func (UpdateLinkRuleResponse) StatusCode ¶
func (r UpdateLinkRuleResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type UpdateLinkRuleResponse200Headers ¶
type UpdateLinkRuleResponse200Headers struct {
ETag *string
}
UpdateLinkRuleResponse200Headers the declared response headers of an HTTP 200 response for UpdateLinkRule
type UpdateLinkRuleResponse429Headers ¶
type UpdateLinkRuleResponse429Headers struct {
RetryAfter *int
}
UpdateLinkRuleResponse429Headers the declared response headers of an HTTP 429 response for UpdateLinkRule
type UpdateLookupTableJSONRequestBody ¶
type UpdateLookupTableJSONRequestBody = LookupTableBase
UpdateLookupTableJSONRequestBody defines body for UpdateLookupTable for application/json ContentType.
type UpdateLookupTableParams ¶
type UpdateLookupTableParams struct {
// IfMatch ETag of the representation being replaced, as returned by the last read. A mismatch gets `412`; a missing header gets `428`.
IfMatch IfMatch `json:"If-Match"`
}
UpdateLookupTableParams defines parameters for UpdateLookupTable.
type UpdateLookupTableResponse ¶
type UpdateLookupTableResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *LookupTable
// ApplicationproblemJSON400 the response for an HTTP 400 `application/problem+json` response
ApplicationproblemJSON400 *BadRequest
// ApplicationproblemJSON401 the response for an HTTP 401 `application/problem+json` response
ApplicationproblemJSON401 *Unauthorized
// ApplicationproblemJSON403 the response for an HTTP 403 `application/problem+json` response
ApplicationproblemJSON403 *Forbidden
// ApplicationproblemJSON404 the response for an HTTP 404 `application/problem+json` response
ApplicationproblemJSON404 *NotFound
// ApplicationproblemJSON409 the response for an HTTP 409 `application/problem+json` response
ApplicationproblemJSON409 *Conflict
// ApplicationproblemJSON412 the response for an HTTP 412 `application/problem+json` response
ApplicationproblemJSON412 *PreconditionFailed
// ApplicationproblemJSON422 the response for an HTTP 422 `application/problem+json` response
ApplicationproblemJSON422 *Unprocessable
// ApplicationproblemJSON428 the response for an HTTP 428 `application/problem+json` response
ApplicationproblemJSON428 *PreconditionRequired
// ApplicationproblemJSON429 the response for an HTTP 429 `application/problem+json` response
ApplicationproblemJSON429 *TooManyRequests
// Headers200 the parsed response headers for an HTTP 200 response
Headers200 *UpdateLookupTableResponse200Headers
// Headers429 the parsed response headers for an HTTP 429 response
Headers429 *UpdateLookupTableResponse429Headers
}
func ParseUpdateLookupTableResponse ¶
func ParseUpdateLookupTableResponse(rsp *http.Response) (*UpdateLookupTableResponse, error)
ParseUpdateLookupTableResponse parses an HTTP response from a UpdateLookupTableWithResponse call
func (UpdateLookupTableResponse) ContentType ¶
func (r UpdateLookupTableResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (UpdateLookupTableResponse) GetApplicationproblemJSON400 ¶
func (r UpdateLookupTableResponse) GetApplicationproblemJSON400() *BadRequest
GetApplicationproblemJSON400 returns the response for an HTTP 400 `application/problem+json` response
func (UpdateLookupTableResponse) GetApplicationproblemJSON401 ¶
func (r UpdateLookupTableResponse) GetApplicationproblemJSON401() *Unauthorized
GetApplicationproblemJSON401 returns the response for an HTTP 401 `application/problem+json` response
func (UpdateLookupTableResponse) GetApplicationproblemJSON403 ¶
func (r UpdateLookupTableResponse) GetApplicationproblemJSON403() *Forbidden
GetApplicationproblemJSON403 returns the response for an HTTP 403 `application/problem+json` response
func (UpdateLookupTableResponse) GetApplicationproblemJSON404 ¶
func (r UpdateLookupTableResponse) GetApplicationproblemJSON404() *NotFound
GetApplicationproblemJSON404 returns the response for an HTTP 404 `application/problem+json` response
func (UpdateLookupTableResponse) GetApplicationproblemJSON409 ¶
func (r UpdateLookupTableResponse) GetApplicationproblemJSON409() *Conflict
GetApplicationproblemJSON409 returns the response for an HTTP 409 `application/problem+json` response
func (UpdateLookupTableResponse) GetApplicationproblemJSON412 ¶
func (r UpdateLookupTableResponse) GetApplicationproblemJSON412() *PreconditionFailed
GetApplicationproblemJSON412 returns the response for an HTTP 412 `application/problem+json` response
func (UpdateLookupTableResponse) GetApplicationproblemJSON422 ¶
func (r UpdateLookupTableResponse) GetApplicationproblemJSON422() *Unprocessable
GetApplicationproblemJSON422 returns the response for an HTTP 422 `application/problem+json` response
func (UpdateLookupTableResponse) GetApplicationproblemJSON428 ¶
func (r UpdateLookupTableResponse) GetApplicationproblemJSON428() *PreconditionRequired
GetApplicationproblemJSON428 returns the response for an HTTP 428 `application/problem+json` response
func (UpdateLookupTableResponse) GetApplicationproblemJSON429 ¶
func (r UpdateLookupTableResponse) GetApplicationproblemJSON429() *TooManyRequests
GetApplicationproblemJSON429 returns the response for an HTTP 429 `application/problem+json` response
func (UpdateLookupTableResponse) GetBody ¶
func (r UpdateLookupTableResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (UpdateLookupTableResponse) GetJSON200 ¶
func (r UpdateLookupTableResponse) GetJSON200() *LookupTable
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (UpdateLookupTableResponse) Status ¶
func (r UpdateLookupTableResponse) Status() string
Status returns HTTPResponse.Status
func (UpdateLookupTableResponse) StatusCode ¶
func (r UpdateLookupTableResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type UpdateLookupTableResponse200Headers ¶
type UpdateLookupTableResponse200Headers struct {
ETag *string
}
UpdateLookupTableResponse200Headers the declared response headers of an HTTP 200 response for UpdateLookupTable
type UpdateLookupTableResponse429Headers ¶
type UpdateLookupTableResponse429Headers struct {
RetryAfter *int
}
UpdateLookupTableResponse429Headers the declared response headers of an HTTP 429 response for UpdateLookupTable
type UpdateMeJSONRequestBody ¶
type UpdateMeJSONRequestBody = MeUpdate
UpdateMeJSONRequestBody defines body for UpdateMe for application/json ContentType.
type UpdateMeResponse ¶
type UpdateMeResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *Me
// ApplicationproblemJSON400 the response for an HTTP 400 `application/problem+json` response
ApplicationproblemJSON400 *BadRequest
// ApplicationproblemJSON401 the response for an HTTP 401 `application/problem+json` response
ApplicationproblemJSON401 *Unauthorized
// ApplicationproblemJSON403 the response for an HTTP 403 `application/problem+json` response
ApplicationproblemJSON403 *Forbidden
// ApplicationproblemJSON422 the response for an HTTP 422 `application/problem+json` response
ApplicationproblemJSON422 *Unprocessable
// ApplicationproblemJSON429 the response for an HTTP 429 `application/problem+json` response
ApplicationproblemJSON429 *TooManyRequests
// Headers429 the parsed response headers for an HTTP 429 response
Headers429 *UpdateMeResponse429Headers
}
func ParseUpdateMeResponse ¶
func ParseUpdateMeResponse(rsp *http.Response) (*UpdateMeResponse, error)
ParseUpdateMeResponse parses an HTTP response from a UpdateMeWithResponse call
func (UpdateMeResponse) ContentType ¶
func (r UpdateMeResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (UpdateMeResponse) GetApplicationproblemJSON400 ¶
func (r UpdateMeResponse) GetApplicationproblemJSON400() *BadRequest
GetApplicationproblemJSON400 returns the response for an HTTP 400 `application/problem+json` response
func (UpdateMeResponse) GetApplicationproblemJSON401 ¶
func (r UpdateMeResponse) GetApplicationproblemJSON401() *Unauthorized
GetApplicationproblemJSON401 returns the response for an HTTP 401 `application/problem+json` response
func (UpdateMeResponse) GetApplicationproblemJSON403 ¶
func (r UpdateMeResponse) GetApplicationproblemJSON403() *Forbidden
GetApplicationproblemJSON403 returns the response for an HTTP 403 `application/problem+json` response
func (UpdateMeResponse) GetApplicationproblemJSON422 ¶
func (r UpdateMeResponse) GetApplicationproblemJSON422() *Unprocessable
GetApplicationproblemJSON422 returns the response for an HTTP 422 `application/problem+json` response
func (UpdateMeResponse) GetApplicationproblemJSON429 ¶
func (r UpdateMeResponse) GetApplicationproblemJSON429() *TooManyRequests
GetApplicationproblemJSON429 returns the response for an HTTP 429 `application/problem+json` response
func (UpdateMeResponse) GetBody ¶
func (r UpdateMeResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (UpdateMeResponse) GetJSON200 ¶
func (r UpdateMeResponse) GetJSON200() *Me
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (UpdateMeResponse) Status ¶
func (r UpdateMeResponse) Status() string
Status returns HTTPResponse.Status
func (UpdateMeResponse) StatusCode ¶
func (r UpdateMeResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type UpdateMeResponse429Headers ¶
type UpdateMeResponse429Headers struct {
RetryAfter *int
}
UpdateMeResponse429Headers the declared response headers of an HTTP 429 response for UpdateMe
type UpdateOidcSettingsJSONRequestBody ¶
type UpdateOidcSettingsJSONRequestBody = OidcSettingsInput
UpdateOidcSettingsJSONRequestBody defines body for UpdateOidcSettings for application/json ContentType.
type UpdateOidcSettingsParams ¶
type UpdateOidcSettingsParams struct {
// IfMatch ETag of the representation being replaced, as returned by the last read. A mismatch gets `412`; a missing header gets `428`.
IfMatch IfMatch `json:"If-Match"`
}
UpdateOidcSettingsParams defines parameters for UpdateOidcSettings.
type UpdateOidcSettingsResponse ¶
type UpdateOidcSettingsResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *OidcSettings
// ApplicationproblemJSON400 the response for an HTTP 400 `application/problem+json` response
ApplicationproblemJSON400 *BadRequest
// ApplicationproblemJSON401 the response for an HTTP 401 `application/problem+json` response
ApplicationproblemJSON401 *Unauthorized
// ApplicationproblemJSON403 the response for an HTTP 403 `application/problem+json` response
ApplicationproblemJSON403 *Forbidden
// ApplicationproblemJSON412 the response for an HTTP 412 `application/problem+json` response
ApplicationproblemJSON412 *PreconditionFailed
// ApplicationproblemJSON422 the response for an HTTP 422 `application/problem+json` response
ApplicationproblemJSON422 *Unprocessable
// ApplicationproblemJSON428 the response for an HTTP 428 `application/problem+json` response
ApplicationproblemJSON428 *PreconditionRequired
// ApplicationproblemJSON429 the response for an HTTP 429 `application/problem+json` response
ApplicationproblemJSON429 *TooManyRequests
// Headers200 the parsed response headers for an HTTP 200 response
Headers200 *UpdateOidcSettingsResponse200Headers
// Headers429 the parsed response headers for an HTTP 429 response
Headers429 *UpdateOidcSettingsResponse429Headers
}
func ParseUpdateOidcSettingsResponse ¶
func ParseUpdateOidcSettingsResponse(rsp *http.Response) (*UpdateOidcSettingsResponse, error)
ParseUpdateOidcSettingsResponse parses an HTTP response from a UpdateOidcSettingsWithResponse call
func (UpdateOidcSettingsResponse) ContentType ¶
func (r UpdateOidcSettingsResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (UpdateOidcSettingsResponse) GetApplicationproblemJSON400 ¶
func (r UpdateOidcSettingsResponse) GetApplicationproblemJSON400() *BadRequest
GetApplicationproblemJSON400 returns the response for an HTTP 400 `application/problem+json` response
func (UpdateOidcSettingsResponse) GetApplicationproblemJSON401 ¶
func (r UpdateOidcSettingsResponse) GetApplicationproblemJSON401() *Unauthorized
GetApplicationproblemJSON401 returns the response for an HTTP 401 `application/problem+json` response
func (UpdateOidcSettingsResponse) GetApplicationproblemJSON403 ¶
func (r UpdateOidcSettingsResponse) GetApplicationproblemJSON403() *Forbidden
GetApplicationproblemJSON403 returns the response for an HTTP 403 `application/problem+json` response
func (UpdateOidcSettingsResponse) GetApplicationproblemJSON412 ¶
func (r UpdateOidcSettingsResponse) GetApplicationproblemJSON412() *PreconditionFailed
GetApplicationproblemJSON412 returns the response for an HTTP 412 `application/problem+json` response
func (UpdateOidcSettingsResponse) GetApplicationproblemJSON422 ¶
func (r UpdateOidcSettingsResponse) GetApplicationproblemJSON422() *Unprocessable
GetApplicationproblemJSON422 returns the response for an HTTP 422 `application/problem+json` response
func (UpdateOidcSettingsResponse) GetApplicationproblemJSON428 ¶
func (r UpdateOidcSettingsResponse) GetApplicationproblemJSON428() *PreconditionRequired
GetApplicationproblemJSON428 returns the response for an HTTP 428 `application/problem+json` response
func (UpdateOidcSettingsResponse) GetApplicationproblemJSON429 ¶
func (r UpdateOidcSettingsResponse) GetApplicationproblemJSON429() *TooManyRequests
GetApplicationproblemJSON429 returns the response for an HTTP 429 `application/problem+json` response
func (UpdateOidcSettingsResponse) GetBody ¶
func (r UpdateOidcSettingsResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (UpdateOidcSettingsResponse) GetJSON200 ¶
func (r UpdateOidcSettingsResponse) GetJSON200() *OidcSettings
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (UpdateOidcSettingsResponse) Status ¶
func (r UpdateOidcSettingsResponse) Status() string
Status returns HTTPResponse.Status
func (UpdateOidcSettingsResponse) StatusCode ¶
func (r UpdateOidcSettingsResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type UpdateOidcSettingsResponse200Headers ¶
type UpdateOidcSettingsResponse200Headers struct {
ETag *string
}
UpdateOidcSettingsResponse200Headers the declared response headers of an HTTP 200 response for UpdateOidcSettings
type UpdateOidcSettingsResponse429Headers ¶
type UpdateOidcSettingsResponse429Headers struct {
RetryAfter *int
}
UpdateOidcSettingsResponse429Headers the declared response headers of an HTTP 429 response for UpdateOidcSettings
type UpdateOrganizationJSONRequestBody ¶
type UpdateOrganizationJSONRequestBody = OrganizationInput
UpdateOrganizationJSONRequestBody defines body for UpdateOrganization for application/json ContentType.
type UpdateOrganizationParams ¶
type UpdateOrganizationParams struct {
// IfMatch ETag of the representation being replaced, as returned by the last read. A mismatch gets `412`; a missing header gets `428`.
IfMatch IfMatch `json:"If-Match"`
}
UpdateOrganizationParams defines parameters for UpdateOrganization.
type UpdateOrganizationResponse ¶
type UpdateOrganizationResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *Organization
// ApplicationproblemJSON400 the response for an HTTP 400 `application/problem+json` response
ApplicationproblemJSON400 *BadRequest
// ApplicationproblemJSON401 the response for an HTTP 401 `application/problem+json` response
ApplicationproblemJSON401 *Unauthorized
// ApplicationproblemJSON403 the response for an HTTP 403 `application/problem+json` response
ApplicationproblemJSON403 *Forbidden
// ApplicationproblemJSON412 the response for an HTTP 412 `application/problem+json` response
ApplicationproblemJSON412 *PreconditionFailed
// ApplicationproblemJSON422 the response for an HTTP 422 `application/problem+json` response
ApplicationproblemJSON422 *Unprocessable
// ApplicationproblemJSON428 the response for an HTTP 428 `application/problem+json` response
ApplicationproblemJSON428 *PreconditionRequired
// ApplicationproblemJSON429 the response for an HTTP 429 `application/problem+json` response
ApplicationproblemJSON429 *TooManyRequests
// Headers200 the parsed response headers for an HTTP 200 response
Headers200 *UpdateOrganizationResponse200Headers
// Headers429 the parsed response headers for an HTTP 429 response
Headers429 *UpdateOrganizationResponse429Headers
}
func ParseUpdateOrganizationResponse ¶
func ParseUpdateOrganizationResponse(rsp *http.Response) (*UpdateOrganizationResponse, error)
ParseUpdateOrganizationResponse parses an HTTP response from a UpdateOrganizationWithResponse call
func (UpdateOrganizationResponse) ContentType ¶
func (r UpdateOrganizationResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (UpdateOrganizationResponse) GetApplicationproblemJSON400 ¶
func (r UpdateOrganizationResponse) GetApplicationproblemJSON400() *BadRequest
GetApplicationproblemJSON400 returns the response for an HTTP 400 `application/problem+json` response
func (UpdateOrganizationResponse) GetApplicationproblemJSON401 ¶
func (r UpdateOrganizationResponse) GetApplicationproblemJSON401() *Unauthorized
GetApplicationproblemJSON401 returns the response for an HTTP 401 `application/problem+json` response
func (UpdateOrganizationResponse) GetApplicationproblemJSON403 ¶
func (r UpdateOrganizationResponse) GetApplicationproblemJSON403() *Forbidden
GetApplicationproblemJSON403 returns the response for an HTTP 403 `application/problem+json` response
func (UpdateOrganizationResponse) GetApplicationproblemJSON412 ¶
func (r UpdateOrganizationResponse) GetApplicationproblemJSON412() *PreconditionFailed
GetApplicationproblemJSON412 returns the response for an HTTP 412 `application/problem+json` response
func (UpdateOrganizationResponse) GetApplicationproblemJSON422 ¶
func (r UpdateOrganizationResponse) GetApplicationproblemJSON422() *Unprocessable
GetApplicationproblemJSON422 returns the response for an HTTP 422 `application/problem+json` response
func (UpdateOrganizationResponse) GetApplicationproblemJSON428 ¶
func (r UpdateOrganizationResponse) GetApplicationproblemJSON428() *PreconditionRequired
GetApplicationproblemJSON428 returns the response for an HTTP 428 `application/problem+json` response
func (UpdateOrganizationResponse) GetApplicationproblemJSON429 ¶
func (r UpdateOrganizationResponse) GetApplicationproblemJSON429() *TooManyRequests
GetApplicationproblemJSON429 returns the response for an HTTP 429 `application/problem+json` response
func (UpdateOrganizationResponse) GetBody ¶
func (r UpdateOrganizationResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (UpdateOrganizationResponse) GetJSON200 ¶
func (r UpdateOrganizationResponse) GetJSON200() *Organization
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (UpdateOrganizationResponse) Status ¶
func (r UpdateOrganizationResponse) Status() string
Status returns HTTPResponse.Status
func (UpdateOrganizationResponse) StatusCode ¶
func (r UpdateOrganizationResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type UpdateOrganizationResponse200Headers ¶
type UpdateOrganizationResponse200Headers struct {
ETag *string
}
UpdateOrganizationResponse200Headers the declared response headers of an HTTP 200 response for UpdateOrganization
type UpdateOrganizationResponse429Headers ¶
type UpdateOrganizationResponse429Headers struct {
RetryAfter *int
}
UpdateOrganizationResponse429Headers the declared response headers of an HTTP 429 response for UpdateOrganization
type UpdateOutboundPolicyJSONRequestBody ¶
type UpdateOutboundPolicyJSONRequestBody = OutboundPolicy
UpdateOutboundPolicyJSONRequestBody defines body for UpdateOutboundPolicy for application/json ContentType.
type UpdateOutboundPolicyParams ¶
type UpdateOutboundPolicyParams struct {
// IfMatch ETag of the representation being replaced, as returned by the last read. A mismatch gets `412`; a missing header gets `428`.
IfMatch IfMatch `json:"If-Match"`
}
UpdateOutboundPolicyParams defines parameters for UpdateOutboundPolicy.
type UpdateOutboundPolicyResponse ¶
type UpdateOutboundPolicyResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *OutboundPolicy
// ApplicationproblemJSON400 the response for an HTTP 400 `application/problem+json` response
ApplicationproblemJSON400 *BadRequest
// ApplicationproblemJSON401 the response for an HTTP 401 `application/problem+json` response
ApplicationproblemJSON401 *Unauthorized
// ApplicationproblemJSON403 the response for an HTTP 403 `application/problem+json` response
ApplicationproblemJSON403 *Forbidden
// ApplicationproblemJSON412 the response for an HTTP 412 `application/problem+json` response
ApplicationproblemJSON412 *PreconditionFailed
// ApplicationproblemJSON422 the response for an HTTP 422 `application/problem+json` response
ApplicationproblemJSON422 *Unprocessable
// ApplicationproblemJSON428 the response for an HTTP 428 `application/problem+json` response
ApplicationproblemJSON428 *PreconditionRequired
// ApplicationproblemJSON429 the response for an HTTP 429 `application/problem+json` response
ApplicationproblemJSON429 *TooManyRequests
// Headers200 the parsed response headers for an HTTP 200 response
Headers200 *UpdateOutboundPolicyResponse200Headers
// Headers429 the parsed response headers for an HTTP 429 response
Headers429 *UpdateOutboundPolicyResponse429Headers
}
func ParseUpdateOutboundPolicyResponse ¶
func ParseUpdateOutboundPolicyResponse(rsp *http.Response) (*UpdateOutboundPolicyResponse, error)
ParseUpdateOutboundPolicyResponse parses an HTTP response from a UpdateOutboundPolicyWithResponse call
func (UpdateOutboundPolicyResponse) ContentType ¶
func (r UpdateOutboundPolicyResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (UpdateOutboundPolicyResponse) GetApplicationproblemJSON400 ¶
func (r UpdateOutboundPolicyResponse) GetApplicationproblemJSON400() *BadRequest
GetApplicationproblemJSON400 returns the response for an HTTP 400 `application/problem+json` response
func (UpdateOutboundPolicyResponse) GetApplicationproblemJSON401 ¶
func (r UpdateOutboundPolicyResponse) GetApplicationproblemJSON401() *Unauthorized
GetApplicationproblemJSON401 returns the response for an HTTP 401 `application/problem+json` response
func (UpdateOutboundPolicyResponse) GetApplicationproblemJSON403 ¶
func (r UpdateOutboundPolicyResponse) GetApplicationproblemJSON403() *Forbidden
GetApplicationproblemJSON403 returns the response for an HTTP 403 `application/problem+json` response
func (UpdateOutboundPolicyResponse) GetApplicationproblemJSON412 ¶
func (r UpdateOutboundPolicyResponse) GetApplicationproblemJSON412() *PreconditionFailed
GetApplicationproblemJSON412 returns the response for an HTTP 412 `application/problem+json` response
func (UpdateOutboundPolicyResponse) GetApplicationproblemJSON422 ¶
func (r UpdateOutboundPolicyResponse) GetApplicationproblemJSON422() *Unprocessable
GetApplicationproblemJSON422 returns the response for an HTTP 422 `application/problem+json` response
func (UpdateOutboundPolicyResponse) GetApplicationproblemJSON428 ¶
func (r UpdateOutboundPolicyResponse) GetApplicationproblemJSON428() *PreconditionRequired
GetApplicationproblemJSON428 returns the response for an HTTP 428 `application/problem+json` response
func (UpdateOutboundPolicyResponse) GetApplicationproblemJSON429 ¶
func (r UpdateOutboundPolicyResponse) GetApplicationproblemJSON429() *TooManyRequests
GetApplicationproblemJSON429 returns the response for an HTTP 429 `application/problem+json` response
func (UpdateOutboundPolicyResponse) GetBody ¶
func (r UpdateOutboundPolicyResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (UpdateOutboundPolicyResponse) GetJSON200 ¶
func (r UpdateOutboundPolicyResponse) GetJSON200() *OutboundPolicy
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (UpdateOutboundPolicyResponse) Status ¶
func (r UpdateOutboundPolicyResponse) Status() string
Status returns HTTPResponse.Status
func (UpdateOutboundPolicyResponse) StatusCode ¶
func (r UpdateOutboundPolicyResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type UpdateOutboundPolicyResponse200Headers ¶
type UpdateOutboundPolicyResponse200Headers struct {
ETag *string
}
UpdateOutboundPolicyResponse200Headers the declared response headers of an HTTP 200 response for UpdateOutboundPolicy
type UpdateOutboundPolicyResponse429Headers ¶
type UpdateOutboundPolicyResponse429Headers struct {
RetryAfter *int
}
UpdateOutboundPolicyResponse429Headers the declared response headers of an HTTP 429 response for UpdateOutboundPolicy
type UpdateRouteJSONRequestBody ¶
type UpdateRouteJSONRequestBody = RouteInput
UpdateRouteJSONRequestBody defines body for UpdateRoute for application/json ContentType.
type UpdateRouteParams ¶
type UpdateRouteParams struct {
// IfMatch ETag of the representation being replaced, as returned by the last read. A mismatch gets `412`; a missing header gets `428`.
IfMatch IfMatch `json:"If-Match"`
}
UpdateRouteParams defines parameters for UpdateRoute.
type UpdateRouteResponse ¶
type UpdateRouteResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *Route
// ApplicationproblemJSON400 the response for an HTTP 400 `application/problem+json` response
ApplicationproblemJSON400 *BadRequest
// ApplicationproblemJSON401 the response for an HTTP 401 `application/problem+json` response
ApplicationproblemJSON401 *Unauthorized
// ApplicationproblemJSON403 the response for an HTTP 403 `application/problem+json` response
ApplicationproblemJSON403 *Forbidden
// ApplicationproblemJSON404 the response for an HTTP 404 `application/problem+json` response
ApplicationproblemJSON404 *NotFound
// ApplicationproblemJSON409 the response for an HTTP 409 `application/problem+json` response
ApplicationproblemJSON409 *Conflict
// ApplicationproblemJSON412 the response for an HTTP 412 `application/problem+json` response
ApplicationproblemJSON412 *PreconditionFailed
// ApplicationproblemJSON422 the response for an HTTP 422 `application/problem+json` response
ApplicationproblemJSON422 *Unprocessable
// ApplicationproblemJSON428 the response for an HTTP 428 `application/problem+json` response
ApplicationproblemJSON428 *PreconditionRequired
// ApplicationproblemJSON429 the response for an HTTP 429 `application/problem+json` response
ApplicationproblemJSON429 *TooManyRequests
// Headers200 the parsed response headers for an HTTP 200 response
Headers200 *UpdateRouteResponse200Headers
// Headers429 the parsed response headers for an HTTP 429 response
Headers429 *UpdateRouteResponse429Headers
}
func ParseUpdateRouteResponse ¶
func ParseUpdateRouteResponse(rsp *http.Response) (*UpdateRouteResponse, error)
ParseUpdateRouteResponse parses an HTTP response from a UpdateRouteWithResponse call
func (UpdateRouteResponse) ContentType ¶
func (r UpdateRouteResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (UpdateRouteResponse) GetApplicationproblemJSON400 ¶
func (r UpdateRouteResponse) GetApplicationproblemJSON400() *BadRequest
GetApplicationproblemJSON400 returns the response for an HTTP 400 `application/problem+json` response
func (UpdateRouteResponse) GetApplicationproblemJSON401 ¶
func (r UpdateRouteResponse) GetApplicationproblemJSON401() *Unauthorized
GetApplicationproblemJSON401 returns the response for an HTTP 401 `application/problem+json` response
func (UpdateRouteResponse) GetApplicationproblemJSON403 ¶
func (r UpdateRouteResponse) GetApplicationproblemJSON403() *Forbidden
GetApplicationproblemJSON403 returns the response for an HTTP 403 `application/problem+json` response
func (UpdateRouteResponse) GetApplicationproblemJSON404 ¶
func (r UpdateRouteResponse) GetApplicationproblemJSON404() *NotFound
GetApplicationproblemJSON404 returns the response for an HTTP 404 `application/problem+json` response
func (UpdateRouteResponse) GetApplicationproblemJSON409 ¶
func (r UpdateRouteResponse) GetApplicationproblemJSON409() *Conflict
GetApplicationproblemJSON409 returns the response for an HTTP 409 `application/problem+json` response
func (UpdateRouteResponse) GetApplicationproblemJSON412 ¶
func (r UpdateRouteResponse) GetApplicationproblemJSON412() *PreconditionFailed
GetApplicationproblemJSON412 returns the response for an HTTP 412 `application/problem+json` response
func (UpdateRouteResponse) GetApplicationproblemJSON422 ¶
func (r UpdateRouteResponse) GetApplicationproblemJSON422() *Unprocessable
GetApplicationproblemJSON422 returns the response for an HTTP 422 `application/problem+json` response
func (UpdateRouteResponse) GetApplicationproblemJSON428 ¶
func (r UpdateRouteResponse) GetApplicationproblemJSON428() *PreconditionRequired
GetApplicationproblemJSON428 returns the response for an HTTP 428 `application/problem+json` response
func (UpdateRouteResponse) GetApplicationproblemJSON429 ¶
func (r UpdateRouteResponse) GetApplicationproblemJSON429() *TooManyRequests
GetApplicationproblemJSON429 returns the response for an HTTP 429 `application/problem+json` response
func (UpdateRouteResponse) GetBody ¶
func (r UpdateRouteResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (UpdateRouteResponse) GetJSON200 ¶
func (r UpdateRouteResponse) GetJSON200() *Route
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (UpdateRouteResponse) Status ¶
func (r UpdateRouteResponse) Status() string
Status returns HTTPResponse.Status
func (UpdateRouteResponse) StatusCode ¶
func (r UpdateRouteResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type UpdateRouteResponse200Headers ¶
type UpdateRouteResponse200Headers struct {
ETag *string
}
UpdateRouteResponse200Headers the declared response headers of an HTTP 200 response for UpdateRoute
type UpdateRouteResponse429Headers ¶
type UpdateRouteResponse429Headers struct {
RetryAfter *int
}
UpdateRouteResponse429Headers the declared response headers of an HTTP 429 response for UpdateRoute
type UpdateServiceAccountJSONRequestBody ¶
type UpdateServiceAccountJSONRequestBody = ServiceAccountInput
UpdateServiceAccountJSONRequestBody defines body for UpdateServiceAccount for application/json ContentType.
type UpdateServiceAccountParams ¶
type UpdateServiceAccountParams struct {
// IfMatch ETag of the representation being replaced, as returned by the last read. A mismatch gets `412`; a missing header gets `428`.
IfMatch IfMatch `json:"If-Match"`
}
UpdateServiceAccountParams defines parameters for UpdateServiceAccount.
type UpdateServiceAccountResponse ¶
type UpdateServiceAccountResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *ServiceAccount
// ApplicationproblemJSON400 the response for an HTTP 400 `application/problem+json` response
ApplicationproblemJSON400 *BadRequest
// ApplicationproblemJSON401 the response for an HTTP 401 `application/problem+json` response
ApplicationproblemJSON401 *Unauthorized
// ApplicationproblemJSON403 the response for an HTTP 403 `application/problem+json` response
ApplicationproblemJSON403 *Forbidden
// ApplicationproblemJSON404 the response for an HTTP 404 `application/problem+json` response
ApplicationproblemJSON404 *NotFound
// ApplicationproblemJSON409 the response for an HTTP 409 `application/problem+json` response
ApplicationproblemJSON409 *Conflict
// ApplicationproblemJSON412 the response for an HTTP 412 `application/problem+json` response
ApplicationproblemJSON412 *PreconditionFailed
// ApplicationproblemJSON422 the response for an HTTP 422 `application/problem+json` response
ApplicationproblemJSON422 *Unprocessable
// ApplicationproblemJSON428 the response for an HTTP 428 `application/problem+json` response
ApplicationproblemJSON428 *PreconditionRequired
// ApplicationproblemJSON429 the response for an HTTP 429 `application/problem+json` response
ApplicationproblemJSON429 *TooManyRequests
// Headers200 the parsed response headers for an HTTP 200 response
Headers200 *UpdateServiceAccountResponse200Headers
// Headers429 the parsed response headers for an HTTP 429 response
Headers429 *UpdateServiceAccountResponse429Headers
}
func ParseUpdateServiceAccountResponse ¶
func ParseUpdateServiceAccountResponse(rsp *http.Response) (*UpdateServiceAccountResponse, error)
ParseUpdateServiceAccountResponse parses an HTTP response from a UpdateServiceAccountWithResponse call
func (UpdateServiceAccountResponse) ContentType ¶
func (r UpdateServiceAccountResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (UpdateServiceAccountResponse) GetApplicationproblemJSON400 ¶
func (r UpdateServiceAccountResponse) GetApplicationproblemJSON400() *BadRequest
GetApplicationproblemJSON400 returns the response for an HTTP 400 `application/problem+json` response
func (UpdateServiceAccountResponse) GetApplicationproblemJSON401 ¶
func (r UpdateServiceAccountResponse) GetApplicationproblemJSON401() *Unauthorized
GetApplicationproblemJSON401 returns the response for an HTTP 401 `application/problem+json` response
func (UpdateServiceAccountResponse) GetApplicationproblemJSON403 ¶
func (r UpdateServiceAccountResponse) GetApplicationproblemJSON403() *Forbidden
GetApplicationproblemJSON403 returns the response for an HTTP 403 `application/problem+json` response
func (UpdateServiceAccountResponse) GetApplicationproblemJSON404 ¶
func (r UpdateServiceAccountResponse) GetApplicationproblemJSON404() *NotFound
GetApplicationproblemJSON404 returns the response for an HTTP 404 `application/problem+json` response
func (UpdateServiceAccountResponse) GetApplicationproblemJSON409 ¶
func (r UpdateServiceAccountResponse) GetApplicationproblemJSON409() *Conflict
GetApplicationproblemJSON409 returns the response for an HTTP 409 `application/problem+json` response
func (UpdateServiceAccountResponse) GetApplicationproblemJSON412 ¶
func (r UpdateServiceAccountResponse) GetApplicationproblemJSON412() *PreconditionFailed
GetApplicationproblemJSON412 returns the response for an HTTP 412 `application/problem+json` response
func (UpdateServiceAccountResponse) GetApplicationproblemJSON422 ¶
func (r UpdateServiceAccountResponse) GetApplicationproblemJSON422() *Unprocessable
GetApplicationproblemJSON422 returns the response for an HTTP 422 `application/problem+json` response
func (UpdateServiceAccountResponse) GetApplicationproblemJSON428 ¶
func (r UpdateServiceAccountResponse) GetApplicationproblemJSON428() *PreconditionRequired
GetApplicationproblemJSON428 returns the response for an HTTP 428 `application/problem+json` response
func (UpdateServiceAccountResponse) GetApplicationproblemJSON429 ¶
func (r UpdateServiceAccountResponse) GetApplicationproblemJSON429() *TooManyRequests
GetApplicationproblemJSON429 returns the response for an HTTP 429 `application/problem+json` response
func (UpdateServiceAccountResponse) GetBody ¶
func (r UpdateServiceAccountResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (UpdateServiceAccountResponse) GetJSON200 ¶
func (r UpdateServiceAccountResponse) GetJSON200() *ServiceAccount
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (UpdateServiceAccountResponse) Status ¶
func (r UpdateServiceAccountResponse) Status() string
Status returns HTTPResponse.Status
func (UpdateServiceAccountResponse) StatusCode ¶
func (r UpdateServiceAccountResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type UpdateServiceAccountResponse200Headers ¶
type UpdateServiceAccountResponse200Headers struct {
ETag *string
}
UpdateServiceAccountResponse200Headers the declared response headers of an HTTP 200 response for UpdateServiceAccount
type UpdateServiceAccountResponse429Headers ¶
type UpdateServiceAccountResponse429Headers struct {
RetryAfter *int
}
UpdateServiceAccountResponse429Headers the declared response headers of an HTTP 429 response for UpdateServiceAccount
type UpdateUserJSONRequestBody ¶
type UpdateUserJSONRequestBody = UserUpdate
UpdateUserJSONRequestBody defines body for UpdateUser for application/json ContentType.
type UpdateUserParams ¶
type UpdateUserParams struct {
// IfMatch ETag of the representation being replaced, as returned by the last read. A mismatch gets `412`; a missing header gets `428`.
IfMatch IfMatch `json:"If-Match"`
}
UpdateUserParams defines parameters for UpdateUser.
type UpdateUserResponse ¶
type UpdateUserResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *User
// ApplicationproblemJSON400 the response for an HTTP 400 `application/problem+json` response
ApplicationproblemJSON400 *BadRequest
// ApplicationproblemJSON401 the response for an HTTP 401 `application/problem+json` response
ApplicationproblemJSON401 *Unauthorized
// ApplicationproblemJSON403 the response for an HTTP 403 `application/problem+json` response
ApplicationproblemJSON403 *Forbidden
// ApplicationproblemJSON404 the response for an HTTP 404 `application/problem+json` response
ApplicationproblemJSON404 *NotFound
// ApplicationproblemJSON409 the response for an HTTP 409 `application/problem+json` response
ApplicationproblemJSON409 *Conflict
// ApplicationproblemJSON412 the response for an HTTP 412 `application/problem+json` response
ApplicationproblemJSON412 *PreconditionFailed
// ApplicationproblemJSON422 the response for an HTTP 422 `application/problem+json` response
ApplicationproblemJSON422 *Unprocessable
// ApplicationproblemJSON428 the response for an HTTP 428 `application/problem+json` response
ApplicationproblemJSON428 *PreconditionRequired
// ApplicationproblemJSON429 the response for an HTTP 429 `application/problem+json` response
ApplicationproblemJSON429 *TooManyRequests
// Headers200 the parsed response headers for an HTTP 200 response
Headers200 *UpdateUserResponse200Headers
// Headers429 the parsed response headers for an HTTP 429 response
Headers429 *UpdateUserResponse429Headers
}
func ParseUpdateUserResponse ¶
func ParseUpdateUserResponse(rsp *http.Response) (*UpdateUserResponse, error)
ParseUpdateUserResponse parses an HTTP response from a UpdateUserWithResponse call
func (UpdateUserResponse) ContentType ¶
func (r UpdateUserResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (UpdateUserResponse) GetApplicationproblemJSON400 ¶
func (r UpdateUserResponse) GetApplicationproblemJSON400() *BadRequest
GetApplicationproblemJSON400 returns the response for an HTTP 400 `application/problem+json` response
func (UpdateUserResponse) GetApplicationproblemJSON401 ¶
func (r UpdateUserResponse) GetApplicationproblemJSON401() *Unauthorized
GetApplicationproblemJSON401 returns the response for an HTTP 401 `application/problem+json` response
func (UpdateUserResponse) GetApplicationproblemJSON403 ¶
func (r UpdateUserResponse) GetApplicationproblemJSON403() *Forbidden
GetApplicationproblemJSON403 returns the response for an HTTP 403 `application/problem+json` response
func (UpdateUserResponse) GetApplicationproblemJSON404 ¶
func (r UpdateUserResponse) GetApplicationproblemJSON404() *NotFound
GetApplicationproblemJSON404 returns the response for an HTTP 404 `application/problem+json` response
func (UpdateUserResponse) GetApplicationproblemJSON409 ¶
func (r UpdateUserResponse) GetApplicationproblemJSON409() *Conflict
GetApplicationproblemJSON409 returns the response for an HTTP 409 `application/problem+json` response
func (UpdateUserResponse) GetApplicationproblemJSON412 ¶
func (r UpdateUserResponse) GetApplicationproblemJSON412() *PreconditionFailed
GetApplicationproblemJSON412 returns the response for an HTTP 412 `application/problem+json` response
func (UpdateUserResponse) GetApplicationproblemJSON422 ¶
func (r UpdateUserResponse) GetApplicationproblemJSON422() *Unprocessable
GetApplicationproblemJSON422 returns the response for an HTTP 422 `application/problem+json` response
func (UpdateUserResponse) GetApplicationproblemJSON428 ¶
func (r UpdateUserResponse) GetApplicationproblemJSON428() *PreconditionRequired
GetApplicationproblemJSON428 returns the response for an HTTP 428 `application/problem+json` response
func (UpdateUserResponse) GetApplicationproblemJSON429 ¶
func (r UpdateUserResponse) GetApplicationproblemJSON429() *TooManyRequests
GetApplicationproblemJSON429 returns the response for an HTTP 429 `application/problem+json` response
func (UpdateUserResponse) GetBody ¶
func (r UpdateUserResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (UpdateUserResponse) GetJSON200 ¶
func (r UpdateUserResponse) GetJSON200() *User
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (UpdateUserResponse) Status ¶
func (r UpdateUserResponse) Status() string
Status returns HTTPResponse.Status
func (UpdateUserResponse) StatusCode ¶
func (r UpdateUserResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type UpdateUserResponse200Headers ¶
type UpdateUserResponse200Headers struct {
ETag *string
}
UpdateUserResponse200Headers the declared response headers of an HTTP 200 response for UpdateUser
type UpdateUserResponse429Headers ¶
type UpdateUserResponse429Headers struct {
RetryAfter *int
}
UpdateUserResponse429Headers the declared response headers of an HTTP 429 response for UpdateUser
type User ¶
type User struct {
CreatedAt time.Time `json:"created_at"`
Email nullable.Nullable[string] `json:"email,omitempty"`
// Etag The same value as the `ETag` header; send it as `If-Match` on the next update. Lets a client update an item of a list without reading it again.
Etag *string `json:"etag,omitempty"`
// Id Opaque public identifier (`public_id`): a type prefix of one or two letters followed by 12 random characters of Crockford base32 (`0`–`9` and `A`–`Z` without `I`, `L`, `O` and `U`; 60 bits), such as `AGK7M3QX9P2RTA` for an Alert Group. Prefixes use the same letters and differ per type: `AG` Alert Group, `AE` Audit log entry, `AK` Account link, `AR` Account link request, `CN` Connection, `CR` check run, `DE` delivery event, `DS` Destination, `KR` Link rule, `NE` Note, `NK` Integration token, `NT` Integration, `PT` Personal access token, `RG` Organization, `RQ` record of the Request log, `RT` Route, `SA` Service account, `SN` session, `SR` User, `SS` Stored Snapshot, `ST` Service account token, `TB` Lookup table, `TE` Timeline entry. Responses always carry the canonical upper-case form. Input is case-insensitive and normalized before lookup — `O` reads as `0`, `I` and `L` as `1` — so the pattern also admits lower case and those letters. People refer to Alert Groups by `#N`, never by `public_id`.
Id PublicId `json:"id"`
// Language UI language; null follows the browser.
Language nullable.Nullable[NullableLanguage] `json:"language,omitempty"`
LastSignInAt nullable.Nullable[time.Time] `json:"last_sign_in_at,omitempty"`
// Login As entered. Logins are case-insensitive; uniqueness and sign-in compare them lowercased.
Login string `json:"login"`
// Name Display name. `deleted-user-<id>` after deletion.
Name string `json:"name"`
// OidcOfflineAccess True while Muster holds an offline token from the identity provider for this OIDC account, so it is re-checked in the background and its Personal access tokens have no inactivity limit. The token itself is never returned.
OidcOfflineAccess *bool `json:"oidc_offline_access,omitempty"`
Role RoleName `json:"role"`
// RoleLocked True for an account that signs in through OIDC while OIDC and `oidc.sync_role` are both on, so the identity provider decides the Role.
RoleLocked *bool `json:"role_locked,omitempty"`
// SignInMethod How the user signs in now, one way only. `local` with a password (which may still wait for its setup link); `oidc` only through the identity provider, which is then the only source of truth for the account — created through OIDC, or a local account that linked an identity and lost its password.
SignInMethod *UserSignInMethod `json:"sign_in_method,omitempty"`
// Source How the account was created; `sign_in_method` says how it signs in now (linking OIDC or a conversion by an Admin changes it).
Source UserSource `json:"source"`
Status UserStatus `json:"status"`
// TimeZone IANA time zone; null follows the browser.
TimeZone nullable.Nullable[string] `json:"time_zone,omitempty"`
TotpEnabled bool `json:"totp_enabled"`
}
User defines model for User.
type UserCreate ¶
type UserCreate struct {
Email nullable.Nullable[string] `json:"email,omitempty"`
// Login Stored as entered and unique case-insensitively in the Organization (`409` `name_taken` when another user has the same login in any case).
Login string `json:"login"`
Name string `json:"name"`
Role RoleName `json:"role"`
}
UserCreate defines model for UserCreate.
type UserCreated ¶
type UserCreated struct {
// PasswordSetupLink Single-use link the Admin hands over; Muster sends no email. The token is in the URL fragment (`<public url>/password-setup#token=<token>`), so it is not sent to any server until the page posts it.
PasswordSetupLink PasswordSetupLink `json:"password_setup_link"`
User User `json:"user"`
}
UserCreated defines model for UserCreated.
type UserDirectoryList ¶
type UserDirectoryList struct {
Items []UserRef `json:"items"`
NextCursor nullable.Nullable[string] `json:"next_cursor"`
}
UserDirectoryList defines model for UserDirectoryList.
type UserId ¶
type UserId = PublicId
UserId Opaque public identifier (`public_id`): a type prefix of one or two letters followed by 12 random characters of Crockford base32 (`0`–`9` and `A`–`Z` without `I`, `L`, `O` and `U`; 60 bits), such as `AGK7M3QX9P2RTA` for an Alert Group. Prefixes use the same letters and differ per type: `AG` Alert Group, `AE` Audit log entry, `AK` Account link, `AR` Account link request, `CN` Connection, `CR` check run, `DE` delivery event, `DS` Destination, `KR` Link rule, `NE` Note, `NK` Integration token, `NT` Integration, `PT` Personal access token, `RG` Organization, `RQ` record of the Request log, `RT` Route, `SA` Service account, `SN` session, `SR` User, `SS` Stored Snapshot, `ST` Service account token, `TB` Lookup table, `TE` Timeline entry. Responses always carry the canonical upper-case form. Input is case-insensitive and normalized before lookup — `O` reads as `0`, `I` and `L` as `1` — so the pattern also admits lower case and those letters. People refer to Alert Groups by `#N`, never by `public_id`.
type UserList ¶
type UserList struct {
Items []User `json:"items"`
NextCursor nullable.Nullable[string] `json:"next_cursor"`
}
UserList defines model for UserList.
type UserRef ¶
type UserRef struct {
// Deactivated The user was deleted; the UI shows "(deactivated)".
Deactivated bool `json:"deactivated"`
// Id Opaque public identifier (`public_id`): a type prefix of one or two letters followed by 12 random characters of Crockford base32 (`0`–`9` and `A`–`Z` without `I`, `L`, `O` and `U`; 60 bits), such as `AGK7M3QX9P2RTA` for an Alert Group. Prefixes use the same letters and differ per type: `AG` Alert Group, `AE` Audit log entry, `AK` Account link, `AR` Account link request, `CN` Connection, `CR` check run, `DE` delivery event, `DS` Destination, `KR` Link rule, `NE` Note, `NK` Integration token, `NT` Integration, `PT` Personal access token, `RG` Organization, `RQ` record of the Request log, `RT` Route, `SA` Service account, `SN` session, `SR` User, `SS` Stored Snapshot, `ST` Service account token, `TB` Lookup table, `TE` Timeline entry. Responses always carry the canonical upper-case form. Input is case-insensitive and normalized before lookup — `O` reads as `0`, `I` and `L` as `1` — so the pattern also admits lower case and those letters. People refer to Alert Groups by `#N`, never by `public_id`.
Id PublicId `json:"id"`
Login *string `json:"login,omitempty"`
Name string `json:"name"`
}
UserRef A User. Used wherever the person must be a User: the Owner and the previous Owner.
type UserSignInMethod ¶
type UserSignInMethod string
UserSignInMethod How the user signs in now, one way only. `local` with a password (which may still wait for its setup link); `oidc` only through the identity provider, which is then the only source of truth for the account — created through OIDC, or a local account that linked an identity and lost its password.
const ( UserSignInMethodLocal UserSignInMethod = "local" UserSignInMethodOidc UserSignInMethod = "oidc" )
Defines values for UserSignInMethod.
func (UserSignInMethod) Valid ¶
func (e UserSignInMethod) Valid() bool
Valid indicates whether the value is a known member of the UserSignInMethod enum.
type UserSource ¶
type UserSource string
UserSource How the account was created; `sign_in_method` says how it signs in now (linking OIDC or a conversion by an Admin changes it).
const ( UserSourceBootstrap UserSource = "bootstrap" UserSourceLocal UserSource = "local" UserSourceOidc UserSource = "oidc" )
Defines values for UserSource.
func (UserSource) Valid ¶
func (e UserSource) Valid() bool
Valid indicates whether the value is a known member of the UserSource enum.
type UserStatus ¶
type UserStatus string
UserStatus defines model for UserStatus.
const ( UserStatusActive UserStatus = "active" UserStatusDeleted UserStatus = "deleted" UserStatusDisabled UserStatus = "disabled" )
Defines values for UserStatus.
func (UserStatus) Valid ¶
func (e UserStatus) Valid() bool
Valid indicates whether the value is a known member of the UserStatus enum.
type UserUpdate ¶
type UserUpdate struct {
Email nullable.Nullable[string] `json:"email,omitempty"`
Name string `json:"name"`
Role RoleName `json:"role"`
}
UserUpdate defines model for UserUpdate.
type WebhookActor ¶
type WebhookActor struct {
// Id A `public_id` in the format of `PublicId`, or null.
Id nullable.Nullable[NullablePublicId] `json:"id,omitempty"`
Kind ActorKind `json:"kind"`
Login nullable.Nullable[string] `json:"login,omitempty"`
Name nullable.Nullable[string] `json:"name,omitempty"`
// Reason Reason of a `system` transition, for example `timer`, or `owner_disabled` and `owner_deleted` when disabling or deleting a user released their acknowledgement.
Reason nullable.Nullable[string] `json:"reason,omitempty"`
TokenName nullable.Nullable[string] `json:"token_name,omitempty"`
// Transport How a Command or change reached Muster. `bridge` marks presses and Text commands through a Bridge Connection; `slack` marks presses through a Slack Connection; `cli` marks audited CLI commands (`--actor`); `system` marks transitions Muster starts on its own.
Transport *Transport `json:"transport,omitempty"`
}
WebhookActor defines model for WebhookActor.
type WebhookAlert ¶
type WebhookAlert struct {
// Annotations Label names and values.
Annotations *Labels `json:"annotations,omitempty"`
Fingerprint string `json:"fingerprint"`
GeneratorUrl nullable.Nullable[string] `json:"generator_url,omitempty"`
// Labels Label names and values.
Labels Labels `json:"labels"`
// ResolveReason Why an Alert resolved; null while it fires.
ResolveReason nullable.Nullable[NullableResolveReason] `json:"resolve_reason,omitempty"`
ResolvedAt nullable.Nullable[time.Time] `json:"resolved_at,omitempty"`
StartsAt time.Time `json:"starts_at"`
Status AlertState `json:"status"`
}
WebhookAlert defines model for WebhookAlert.
type WebhookAlertGroup ¶
type WebhookAlertGroup struct {
// Id Opaque public identifier (`public_id`): a type prefix of one or two letters followed by 12 random characters of Crockford base32 (`0`–`9` and `A`–`Z` without `I`, `L`, `O` and `U`; 60 bits), such as `AGK7M3QX9P2RTA` for an Alert Group. Prefixes use the same letters and differ per type: `AG` Alert Group, `AE` Audit log entry, `AK` Account link, `AR` Account link request, `CN` Connection, `CR` check run, `DE` delivery event, `DS` Destination, `KR` Link rule, `NE` Note, `NK` Integration token, `NT` Integration, `PT` Personal access token, `RG` Organization, `RQ` record of the Request log, `RT` Route, `SA` Service account, `SN` session, `SR` User, `SS` Stored Snapshot, `ST` Service account token, `TB` Lookup table, `TE` Timeline entry. Responses always carry the canonical upper-case form. Input is case-insensitive and normalized before lookup — `O` reads as `0`, `I` and `L` as `1` — so the pattern also admits lower case and those letters. People refer to Alert Groups by `#N`, never by `public_id`.
Id PublicId `json:"id"`
Number int `json:"number"`
// Owner Present while acknowledged.
Owner *WebhookUser `json:"owner,omitempty"`
ReopenCount *int `json:"reopen_count,omitempty"`
ResolvedAt nullable.Nullable[time.Time] `json:"resolved_at,omitempty"`
Route EntityRef `json:"route"`
SeverityLevel SeverityLevel `json:"severity_level"`
SnoozeUntil nullable.Nullable[time.Time] `json:"snooze_until,omitempty"`
StartedAt time.Time `json:"started_at"`
Status AlertGroupStatus `json:"status"`
Summary nullable.Nullable[string] `json:"summary,omitempty"`
Title string `json:"title"`
Urgent bool `json:"urgent"`
// Url Link to the Alert Group page at `MUSTER_PUBLIC_URL`.
Url string `json:"url"`
}
WebhookAlertGroup The current state of the Alert Group when the event was recorded.
type WebhookDestination ¶
type WebhookDestination struct {
CreatedAt time.Time `json:"created_at"`
// Etag The same value as the `ETag` header; send it as `If-Match` on the next update. Lets a client update an item of a list without reading it again.
Etag *string `json:"etag,omitempty"`
// Events Required when `mode` is `events` or `both`.
Events *WebhookEventsConfig `json:"events,omitempty"`
Health DestinationHealth `json:"health"`
// Id Opaque public identifier (`public_id`): a type prefix of one or two letters followed by 12 random characters of Crockford base32 (`0`–`9` and `A`–`Z` without `I`, `L`, `O` and `U`; 60 bits), such as `AGK7M3QX9P2RTA` for an Alert Group. Prefixes use the same letters and differ per type: `AG` Alert Group, `AE` Audit log entry, `AK` Account link, `AR` Account link request, `CN` Connection, `CR` check run, `DE` delivery event, `DS` Destination, `KR` Link rule, `NE` Note, `NK` Integration token, `NT` Integration, `PT` Personal access token, `RG` Organization, `RQ` record of the Request log, `RT` Route, `SA` Service account, `SN` session, `SR` User, `SS` Stored Snapshot, `ST` Service account token, `TB` Lookup table, `TE` Timeline entry. Responses always carry the canonical upper-case form. Input is case-insensitive and normalized before lookup — `O` reads as `0`, `I` and `L` as `1` — so the pattern also admits lower case and those letters. People refer to Alert Groups by `#N`, never by `public_id`.
Id PublicId `json:"id"`
// Limiter A rate limit of `limit` calls per `per_seconds`.
Limiter Limiter `json:"limiter"`
// Mentions Keyed by the Mention names of Loud events. Reminders and auto-unacknowledge always mention the Owner, Takeovers the previous Owner.
Mentions MentionSettings `json:"mentions"`
Mode WebhookDestinationMode `json:"mode"`
Name string `json:"name"`
// Proxy Per-client proxy as read. The password is a Secret.
Proxy ProxyConfig `json:"proxy"`
Routes []EntityRef `json:"routes"`
SigningSecretStatus SigningSecretStatus `json:"signing_secret_status"`
// Template Required when `mode` is `template` or `both`.
Template *WebhookTemplateConfig `json:"template,omitempty"`
TemplateError *TemplateErrorState `json:"template_error,omitempty"`
Type WebhookDestinationType `json:"type"`
Warnings []DestinationWarning `json:"warnings"`
}
WebhookDestination defines model for WebhookDestination.
type WebhookDestinationBase ¶
type WebhookDestinationBase struct {
// Events Required when `mode` is `events` or `both`.
Events *WebhookEventsConfig `json:"events,omitempty"`
// Limiter A rate limit of `limit` calls per `per_seconds`.
Limiter Limiter `json:"limiter"`
// Mentions Keyed by the Mention names of Loud events. Reminders and auto-unacknowledge always mention the Owner, Takeovers the previous Owner.
Mentions MentionSettings `json:"mentions"`
Mode WebhookDestinationBaseMode `json:"mode"`
Name string `json:"name"`
// Template Required when `mode` is `template` or `both`.
Template *WebhookTemplateConfig `json:"template,omitempty"`
Type WebhookDestinationBaseType `json:"type"`
}
WebhookDestinationBase defines model for WebhookDestinationBase.
type WebhookDestinationBaseMode ¶
type WebhookDestinationBaseMode string
WebhookDestinationBaseMode defines model for WebhookDestinationBase.Mode.
const ( WebhookDestinationBaseModeBoth WebhookDestinationBaseMode = "both" WebhookDestinationBaseModeEvents WebhookDestinationBaseMode = "events" WebhookDestinationBaseModeTemplate WebhookDestinationBaseMode = "template" )
Defines values for WebhookDestinationBaseMode.
func (WebhookDestinationBaseMode) Valid ¶
func (e WebhookDestinationBaseMode) Valid() bool
Valid indicates whether the value is a known member of the WebhookDestinationBaseMode enum.
type WebhookDestinationBaseType ¶
type WebhookDestinationBaseType string
WebhookDestinationBaseType defines model for WebhookDestinationBase.Type.
const (
WebhookDestinationBaseTypeWebhook WebhookDestinationBaseType = "webhook"
)
Defines values for WebhookDestinationBaseType.
func (WebhookDestinationBaseType) Valid ¶
func (e WebhookDestinationBaseType) Valid() bool
Valid indicates whether the value is a known member of the WebhookDestinationBaseType enum.
type WebhookDestinationInput ¶
type WebhookDestinationInput struct {
// Events Required when `mode` is `events` or `both`.
Events *WebhookEventsConfig `json:"events,omitempty"`
// Limiter A rate limit of `limit` calls per `per_seconds`.
Limiter Limiter `json:"limiter"`
// Mentions Keyed by the Mention names of Loud events. Reminders and auto-unacknowledge always mention the Owner, Takeovers the previous Owner.
Mentions MentionSettings `json:"mentions"`
Mode WebhookDestinationInputMode `json:"mode"`
Name string `json:"name"`
// Proxy Per-client proxy as written. Omitting `password` keeps the stored one; `null` clears it.
Proxy ProxyConfigInput `json:"proxy"`
// Template Required when `mode` is `template` or `both`.
Template *WebhookTemplateConfig `json:"template,omitempty"`
Type WebhookDestinationInputType `json:"type"`
}
WebhookDestinationInput defines model for WebhookDestinationInput.
type WebhookDestinationInputMode ¶
type WebhookDestinationInputMode string
WebhookDestinationInputMode defines model for WebhookDestinationInput.Mode.
const ( WebhookDestinationInputModeBoth WebhookDestinationInputMode = "both" WebhookDestinationInputModeEvents WebhookDestinationInputMode = "events" WebhookDestinationInputModeTemplate WebhookDestinationInputMode = "template" )
Defines values for WebhookDestinationInputMode.
func (WebhookDestinationInputMode) Valid ¶
func (e WebhookDestinationInputMode) Valid() bool
Valid indicates whether the value is a known member of the WebhookDestinationInputMode enum.
type WebhookDestinationInputType ¶
type WebhookDestinationInputType string
WebhookDestinationInputType defines model for WebhookDestinationInput.Type.
const (
WebhookDestinationInputTypeWebhook WebhookDestinationInputType = "webhook"
)
Defines values for WebhookDestinationInputType.
func (WebhookDestinationInputType) Valid ¶
func (e WebhookDestinationInputType) Valid() bool
Valid indicates whether the value is a known member of the WebhookDestinationInputType enum.
type WebhookDestinationMode ¶
type WebhookDestinationMode string
WebhookDestinationMode defines model for WebhookDestination.Mode.
const ( WebhookDestinationModeBoth WebhookDestinationMode = "both" WebhookDestinationModeEvents WebhookDestinationMode = "events" WebhookDestinationModeTemplate WebhookDestinationMode = "template" )
Defines values for WebhookDestinationMode.
func (WebhookDestinationMode) Valid ¶
func (e WebhookDestinationMode) Valid() bool
Valid indicates whether the value is a known member of the WebhookDestinationMode enum.
type WebhookDestinationType ¶
type WebhookDestinationType string
WebhookDestinationType defines model for WebhookDestination.Type.
const (
WebhookDestinationTypeWebhook WebhookDestinationType = "webhook"
)
Defines values for WebhookDestinationType.
func (WebhookDestinationType) Valid ¶
func (e WebhookDestinationType) Valid() bool
Valid indicates whether the value is a known member of the WebhookDestinationType enum.
type WebhookEventName ¶
type WebhookEventName string
WebhookEventName One of the lifecycle event names (see `LifecycleEvent`) or `test`, which only a Destination test sends. New names are added within `version` 1; receivers ignore names they do not know.
const ( WebhookEventNameAckTimeout WebhookEventName = "ack_timeout" WebhookEventNameAcknowledged WebhookEventName = "acknowledged" WebhookEventNameAlertContinued WebhookEventName = "alert_continued" WebhookEventNameAlertReplaced WebhookEventName = "alert_replaced" WebhookEventNameAlertResolved WebhookEventName = "alert_resolved" WebhookEventNameAlertsAdded WebhookEventName = "alerts_added" WebhookEventNameAnnotationsChanged WebhookEventName = "annotations_changed" WebhookEventNameAutoUnacknowledged WebhookEventName = "auto_unacknowledged" WebhookEventNameCreated WebhookEventName = "created" WebhookEventNameMovedToDefaultRoute WebhookEventName = "moved_to_default_route" WebhookEventNameNoteAdded WebhookEventName = "note_added" WebhookEventNameNoticesMissed WebhookEventName = "notices_missed" WebhookEventNameReminder WebhookEventName = "reminder" WebhookEventNameReminderAnswered WebhookEventName = "reminder_answered" WebhookEventNameReopened WebhookEventName = "reopened" WebhookEventNameResolved WebhookEventName = "resolved" WebhookEventNameSeverityRaised WebhookEventName = "severity_raised" WebhookEventNameSnoozeEnded WebhookEventName = "snooze_ended" WebhookEventNameSnoozed WebhookEventName = "snoozed" WebhookEventNameTakeover WebhookEventName = "takeover" WebhookEventNameTest WebhookEventName = "test" WebhookEventNameUnacknowledged WebhookEventName = "unacknowledged" WebhookEventNameUnclaimed WebhookEventName = "unclaimed" WebhookEventNameUnresolved WebhookEventName = "unresolved" WebhookEventNameUnsnoozed WebhookEventName = "unsnoozed" WebhookEventNameUrgencyRaised WebhookEventName = "urgency_raised" )
Defines values for WebhookEventName.
func (WebhookEventName) Valid ¶
func (e WebhookEventName) Valid() bool
Valid indicates whether the value is a known member of the WebhookEventName enum.
type WebhookEventsConfig ¶
type WebhookEventsConfig struct {
Headers []HeaderTemplate `json:"headers"`
// Url Go template that may use Secrets.
Url string `json:"url"`
}
WebhookEventsConfig defines model for WebhookEventsConfig.
type WebhookInitiator ¶
type WebhookInitiator struct {
// Doer for performing requests, typically a *http.Client with any
// customized settings, such as certificate chains.
Client HttpRequestDoer
// A list of callbacks for modifying requests which are generated before sending over
// the network.
RequestEditors []RequestEditorFn
}
WebhookInitiator sends OpenAPI 3.1 webhook requests to target URLs. Modeled on the generated Client, but with no stored Server -- the full target URL is provided per-call by the caller (typically discovered from a subscription registration).
func NewWebhookInitiator ¶
func NewWebhookInitiator(opts ...WebhookInitiatorOption) (*WebhookInitiator, error)
NewWebhookInitiator creates a new WebhookInitiator with reasonable defaults.
func (*WebhookInitiator) DeliverAlertGroupEvent ¶
func (p *WebhookInitiator) DeliverAlertGroupEvent(ctx context.Context, targetURL string, params *DeliverAlertGroupEventParams, body DeliverAlertGroupEventJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*WebhookInitiator) DeliverAlertGroupEventWithBody ¶
func (p *WebhookInitiator) DeliverAlertGroupEventWithBody(ctx context.Context, targetURL string, params *DeliverAlertGroupEventParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
type WebhookInitiatorInterface ¶
type WebhookInitiatorInterface interface {
// DeliverAlertGroupEventWithBody fires the alertGroupEvent webhook with any body
DeliverAlertGroupEventWithBody(ctx context.Context, targetURL string, params *DeliverAlertGroupEventParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
DeliverAlertGroupEvent(ctx context.Context, targetURL string, params *DeliverAlertGroupEventParams, body DeliverAlertGroupEventJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
}
WebhookInitiatorInterface is the interface specification for the webhook initiator.
type WebhookInitiatorOption ¶
type WebhookInitiatorOption func(*WebhookInitiator) error
WebhookInitiatorOption allows setting custom parameters during construction.
func WithWebhookHTTPClient ¶
func WithWebhookHTTPClient(doer HttpRequestDoer) WebhookInitiatorOption
WithWebhookHTTPClient allows overriding the default Doer, which is automatically created using http.Client. This is useful for tests.
func WithWebhookRequestEditorFn ¶
func WithWebhookRequestEditorFn(fn RequestEditorFn) WebhookInitiatorOption
WithWebhookRequestEditorFn allows setting up a callback function, which will be called right before sending the webhook request. This can be used to mutate the request, e.g. to add signature headers.
type WebhookMentionTarget ¶
type WebhookMentionTarget struct {
// Id A `public_id` in the format of `PublicId`, or null.
Id nullable.Nullable[NullablePublicId] `json:"id,omitempty"`
Login nullable.Nullable[string] `json:"login,omitempty"`
Name nullable.Nullable[string] `json:"name,omitempty"`
Type WebhookMentionTargetType `json:"type"`
}
WebhookMentionTarget A resolved Mention as data. `everyone` has no other fields, `group` has `name`, `user` has `id`, `name` and `login`.
type WebhookMentionTargetType ¶
type WebhookMentionTargetType string
WebhookMentionTargetType defines model for WebhookMentionTarget.Type.
const ( WebhookMentionTargetTypeEveryone WebhookMentionTargetType = "everyone" WebhookMentionTargetTypeGroup WebhookMentionTargetType = "group" WebhookMentionTargetTypeUser WebhookMentionTargetType = "user" )
Defines values for WebhookMentionTargetType.
func (WebhookMentionTargetType) Valid ¶
func (e WebhookMentionTargetType) Valid() bool
Valid indicates whether the value is a known member of the WebhookMentionTargetType enum.
type WebhookTemplateConfig ¶
type WebhookTemplateConfig struct {
Create RequestTemplate `json:"create"`
// OpenThread Runs once before the first Thread reply.
OpenThread *RequestTemplate `json:"open_thread,omitempty"`
// ReplyInThread Carries the events whose messenger form is a Thread reply.
ReplyInThread *RequestTemplate `json:"reply_in_thread,omitempty"`
Update RequestTemplate `json:"update"`
}
WebhookTemplateConfig defines model for WebhookTemplateConfig.
type WebhookUser ¶
type WebhookUser struct {
// Id Opaque public identifier (`public_id`): a type prefix of one or two letters followed by 12 random characters of Crockford base32 (`0`–`9` and `A`–`Z` without `I`, `L`, `O` and `U`; 60 bits), such as `AGK7M3QX9P2RTA` for an Alert Group. Prefixes use the same letters and differ per type: `AG` Alert Group, `AE` Audit log entry, `AK` Account link, `AR` Account link request, `CN` Connection, `CR` check run, `DE` delivery event, `DS` Destination, `KR` Link rule, `NE` Note, `NK` Integration token, `NT` Integration, `PT` Personal access token, `RG` Organization, `RQ` record of the Request log, `RT` Route, `SA` Service account, `SN` session, `SR` User, `SS` Stored Snapshot, `ST` Service account token, `TB` Lookup table, `TE` Timeline entry. Responses always carry the canonical upper-case form. Input is case-insensitive and normalized before lookup — `O` reads as `0`, `I` and `L` as `1` — so the pattern also admits lower case and those letters. People refer to Alert Groups by `#N`, never by `public_id`.
Id PublicId `json:"id"`
Login string `json:"login"`
Name string `json:"name"`
}
WebhookUser defines model for WebhookUser.
type Weekday ¶
type Weekday string
Weekday A day of the week. As the Organization's `week_start` it is `organization.week_start` (default `monday`), the first day of the week, on which the Snooze preset `week_start` ends at the start of the working day; omit it on an update to keep it.