Documentation
¶
Overview ¶
Package openmeter provides primitives to interact with the openapi HTTP API.
Code generated by github.com/deepmap/oapi-codegen/v2 version v2.1.0 DO NOT EDIT.
Index ¶
- Constants
- func GetSwagger() (swagger *openapi3.T, err error)
- func NewCreateEntitlementRequest(server string, subjectIdOrKey SubjectIdOrKey, ...) (*http.Request, error)
- func NewCreateEntitlementRequestWithBody(server string, subjectIdOrKey SubjectIdOrKey, contentType string, ...) (*http.Request, error)
- func NewCreateFeatureRequest(server string, body CreateFeatureJSONRequestBody) (*http.Request, error)
- func NewCreateFeatureRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewCreateGrantRequest(server string, subjectIdOrKey SubjectIdOrKey, ...) (*http.Request, error)
- func NewCreateGrantRequestWithBody(server string, subjectIdOrKey SubjectIdOrKey, ...) (*http.Request, error)
- func NewCreateMeterRequest(server string, body CreateMeterJSONRequestBody) (*http.Request, error)
- func NewCreateMeterRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewCreateNotificationChannelRequest(server string, body CreateNotificationChannelJSONRequestBody) (*http.Request, error)
- func NewCreateNotificationChannelRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewCreateNotificationEventRequest(server string, body CreateNotificationEventJSONRequestBody) (*http.Request, error)
- func NewCreateNotificationEventRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewCreateNotificationRuleRequest(server string, body CreateNotificationRuleJSONRequestBody) (*http.Request, error)
- func NewCreateNotificationRuleRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewCreatePortalTokenRequest(server string, body CreatePortalTokenJSONRequestBody) (*http.Request, error)
- func NewCreatePortalTokenRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewDeleteEntitlementRequest(server string, subjectIdOrKey SubjectIdOrKey, entitlementId EntitlementId) (*http.Request, error)
- func NewDeleteFeatureRequest(server string, featureId FeatureId) (*http.Request, error)
- func NewDeleteMeterRequest(server string, meterIdOrSlug MeterIdOrSlug) (*http.Request, error)
- func NewDeleteNotificationChannelRequest(server string, channelId ChannelId) (*http.Request, error)
- func NewDeleteNotificationRuleRequest(server string, ruleId RuleId) (*http.Request, error)
- func NewDeleteSubjectRequest(server string, subjectIdOrKey SubjectIdOrKey) (*http.Request, error)
- func NewGetDebugMetricsRequest(server string) (*http.Request, error)
- func NewGetEntitlementByIdRequest(server string, entitlementId EntitlementId) (*http.Request, error)
- func NewGetEntitlementHistoryRequest(server string, subjectIdOrKey SubjectIdOrKey, entitlementId EntitlementId, ...) (*http.Request, error)
- func NewGetEntitlementRequest(server string, subjectIdOrKey SubjectIdOrKey, entitlementId EntitlementId) (*http.Request, error)
- func NewGetEntitlementValueRequest(server string, subjectIdOrKey SubjectIdOrKey, ...) (*http.Request, error)
- func NewGetFeatureRequest(server string, featureId FeatureId) (*http.Request, error)
- func NewGetMeterRequest(server string, meterIdOrSlug MeterIdOrSlug) (*http.Request, error)
- func NewGetNotificationChannelRequest(server string, channelId ChannelId) (*http.Request, error)
- func NewGetNotificationEventRequest(server string, eventId EventId) (*http.Request, error)
- func NewGetNotificationRuleRequest(server string, ruleId RuleId) (*http.Request, error)
- func NewGetSubjectRequest(server string, subjectIdOrKey SubjectIdOrKey) (*http.Request, error)
- func NewIngestEventsRequestWithApplicationCloudeventsBatchPlusJSONBody(server string, body IngestEventsApplicationCloudeventsBatchPlusJSONRequestBody) (*http.Request, error)
- func NewIngestEventsRequestWithApplicationCloudeventsPlusJSONBody(server string, body IngestEventsApplicationCloudeventsPlusJSONRequestBody) (*http.Request, error)
- func NewIngestEventsRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewInvalidatePortalTokensRequest(server string, body InvalidatePortalTokensJSONRequestBody) (*http.Request, error)
- func NewInvalidatePortalTokensRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewListEntitlementGrantsRequest(server string, subjectIdOrKey SubjectIdOrKey, ...) (*http.Request, error)
- func NewListEntitlementsRequest(server string, params *ListEntitlementsParams) (*http.Request, error)
- func NewListEventsRequest(server string, params *ListEventsParams) (*http.Request, error)
- func NewListFeaturesRequest(server string, params *ListFeaturesParams) (*http.Request, error)
- func NewListGrantsRequest(server string, params *ListGrantsParams) (*http.Request, error)
- func NewListMeterSubjectsRequest(server string, meterIdOrSlug MeterIdOrSlug) (*http.Request, error)
- func NewListMetersRequest(server string) (*http.Request, error)
- func NewListNotificationChannelsRequest(server string, params *ListNotificationChannelsParams) (*http.Request, error)
- func NewListNotificationEventsRequest(server string, params *ListNotificationEventsParams) (*http.Request, error)
- func NewListNotificationRulesRequest(server string, params *ListNotificationRulesParams) (*http.Request, error)
- func NewListPortalTokensRequest(server string, params *ListPortalTokensParams) (*http.Request, error)
- func NewListSubjectEntitlementsRequest(server string, subjectIdOrKey SubjectIdOrKey, ...) (*http.Request, error)
- func NewListSubjectsRequest(server string) (*http.Request, error)
- func NewQueryMeterRequest(server string, meterIdOrSlug MeterIdOrSlug, params *QueryMeterParams) (*http.Request, error)
- func NewQueryPortalMeterRequest(server string, meterSlug string, params *QueryPortalMeterParams) (*http.Request, error)
- func NewReceiveSvixOperationalEventRequest(server string, body ReceiveSvixOperationalEventJSONRequestBody) (*http.Request, error)
- func NewReceiveSvixOperationalEventRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewResetEntitlementUsageRequest(server string, subjectIdOrKey SubjectIdOrKey, entitlementId EntitlementId, ...) (*http.Request, error)
- func NewResetEntitlementUsageRequestWithBody(server string, subjectIdOrKey SubjectIdOrKey, entitlementId EntitlementId, ...) (*http.Request, error)
- func NewUpdateNotificationChannelRequest(server string, channelId ChannelId, ...) (*http.Request, error)
- func NewUpdateNotificationChannelRequestWithBody(server string, channelId ChannelId, contentType string, body io.Reader) (*http.Request, error)
- func NewUpdateNotificationRuleRequest(server string, ruleId RuleId, body UpdateNotificationRuleJSONRequestBody) (*http.Request, error)
- func NewUpdateNotificationRuleRequestWithBody(server string, ruleId RuleId, contentType string, body io.Reader) (*http.Request, error)
- func NewUpsertSubjectRequest(server string, body UpsertSubjectJSONRequestBody) (*http.Request, error)
- func NewUpsertSubjectRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewVoidGrantRequest(server string, grantId GrantId) (*http.Request, error)
- func PathToRawSpec(pathToFile string) map[string]func() ([]byte, error)
- type BadRequestProblemResponse
- type BalanceHistoryWindow
- type ChannelId
- type Client
- func (c *Client) CreateEntitlement(ctx context.Context, subjectIdOrKey SubjectIdOrKey, ...) (*http.Response, error)
- func (c *Client) CreateEntitlementWithBody(ctx context.Context, subjectIdOrKey SubjectIdOrKey, contentType string, ...) (*http.Response, error)
- func (c *Client) CreateFeature(ctx context.Context, body CreateFeatureJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) CreateFeatureWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) CreateGrant(ctx context.Context, subjectIdOrKey SubjectIdOrKey, ...) (*http.Response, error)
- func (c *Client) CreateGrantWithBody(ctx context.Context, subjectIdOrKey SubjectIdOrKey, ...) (*http.Response, error)
- func (c *Client) CreateMeter(ctx context.Context, body CreateMeterJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) CreateMeterWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) CreateNotificationChannel(ctx context.Context, body CreateNotificationChannelJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) CreateNotificationChannelWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) CreateNotificationEvent(ctx context.Context, body CreateNotificationEventJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) CreateNotificationEventWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) CreateNotificationRule(ctx context.Context, body CreateNotificationRuleJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) CreateNotificationRuleWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) CreatePortalToken(ctx context.Context, body CreatePortalTokenJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) CreatePortalTokenWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) DeleteEntitlement(ctx context.Context, subjectIdOrKey SubjectIdOrKey, ...) (*http.Response, error)
- func (c *Client) DeleteFeature(ctx context.Context, featureId FeatureId, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) DeleteMeter(ctx context.Context, meterIdOrSlug MeterIdOrSlug, ...) (*http.Response, error)
- func (c *Client) DeleteNotificationChannel(ctx context.Context, channelId ChannelId, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) DeleteNotificationRule(ctx context.Context, ruleId RuleId, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) DeleteSubject(ctx context.Context, subjectIdOrKey SubjectIdOrKey, ...) (*http.Response, error)
- func (c *Client) GetDebugMetrics(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) GetEntitlement(ctx context.Context, subjectIdOrKey SubjectIdOrKey, ...) (*http.Response, error)
- func (c *Client) GetEntitlementById(ctx context.Context, entitlementId EntitlementId, ...) (*http.Response, error)
- func (c *Client) GetEntitlementHistory(ctx context.Context, subjectIdOrKey SubjectIdOrKey, ...) (*http.Response, error)
- func (c *Client) GetEntitlementValue(ctx context.Context, subjectIdOrKey SubjectIdOrKey, ...) (*http.Response, error)
- func (c *Client) GetFeature(ctx context.Context, featureId FeatureId, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) GetMeter(ctx context.Context, meterIdOrSlug MeterIdOrSlug, ...) (*http.Response, error)
- func (c *Client) GetNotificationChannel(ctx context.Context, channelId ChannelId, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) GetNotificationEvent(ctx context.Context, eventId EventId, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) GetNotificationRule(ctx context.Context, ruleId RuleId, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) GetSubject(ctx context.Context, subjectIdOrKey SubjectIdOrKey, ...) (*http.Response, error)
- func (c *Client) IngestEvent(ctx context.Context, event Event, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) IngestEventBatch(ctx context.Context, events []Event, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) IngestEventsWithApplicationCloudeventsBatchPlusJSONBody(ctx context.Context, ...) (*http.Response, error)
- func (c *Client) IngestEventsWithApplicationCloudeventsPlusJSONBody(ctx context.Context, ...) (*http.Response, error)
- func (c *Client) IngestEventsWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) InvalidatePortalTokens(ctx context.Context, body InvalidatePortalTokensJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) InvalidatePortalTokensWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) ListEntitlementGrants(ctx context.Context, subjectIdOrKey SubjectIdOrKey, ...) (*http.Response, error)
- func (c *Client) ListEntitlements(ctx context.Context, params *ListEntitlementsParams, ...) (*http.Response, error)
- func (c *Client) ListEvents(ctx context.Context, params *ListEventsParams, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) ListFeatures(ctx context.Context, params *ListFeaturesParams, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) ListGrants(ctx context.Context, params *ListGrantsParams, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) ListMeterSubjects(ctx context.Context, meterIdOrSlug MeterIdOrSlug, ...) (*http.Response, error)
- func (c *Client) ListMeters(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) ListNotificationChannels(ctx context.Context, params *ListNotificationChannelsParams, ...) (*http.Response, error)
- func (c *Client) ListNotificationEvents(ctx context.Context, params *ListNotificationEventsParams, ...) (*http.Response, error)
- func (c *Client) ListNotificationRules(ctx context.Context, params *ListNotificationRulesParams, ...) (*http.Response, error)
- func (c *Client) ListPortalTokens(ctx context.Context, params *ListPortalTokensParams, ...) (*http.Response, error)
- func (c *Client) ListSubjectEntitlements(ctx context.Context, subjectIdOrKey SubjectIdOrKey, ...) (*http.Response, error)
- func (c *Client) ListSubjects(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) QueryMeter(ctx context.Context, meterIdOrSlug MeterIdOrSlug, params *QueryMeterParams, ...) (*http.Response, error)
- func (c *Client) QueryPortalMeter(ctx context.Context, meterSlug string, params *QueryPortalMeterParams, ...) (*http.Response, error)
- func (c *Client) ReceiveSvixOperationalEvent(ctx context.Context, body ReceiveSvixOperationalEventJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) ReceiveSvixOperationalEventWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) ResetEntitlementUsage(ctx context.Context, subjectIdOrKey SubjectIdOrKey, ...) (*http.Response, error)
- func (c *Client) ResetEntitlementUsageWithBody(ctx context.Context, subjectIdOrKey SubjectIdOrKey, ...) (*http.Response, error)
- func (c *Client) UpdateNotificationChannel(ctx context.Context, channelId ChannelId, ...) (*http.Response, error)
- func (c *Client) UpdateNotificationChannelWithBody(ctx context.Context, channelId ChannelId, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) UpdateNotificationRule(ctx context.Context, ruleId RuleId, body UpdateNotificationRuleJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) UpdateNotificationRuleWithBody(ctx context.Context, ruleId RuleId, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) UpsertSubject(ctx context.Context, body UpsertSubjectJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) UpsertSubjectWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) VoidGrant(ctx context.Context, grantId GrantId, reqEditors ...RequestEditorFn) (*http.Response, error)
- type ClientInterface
- type ClientOption
- type ClientWithResponses
- func (c *ClientWithResponses) CreateEntitlementWithBodyWithResponse(ctx context.Context, subjectIdOrKey SubjectIdOrKey, contentType string, ...) (*CreateEntitlementResponse, error)
- func (c *ClientWithResponses) CreateEntitlementWithResponse(ctx context.Context, subjectIdOrKey SubjectIdOrKey, ...) (*CreateEntitlementResponse, error)
- func (c *ClientWithResponses) CreateFeatureWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*CreateFeatureResponse, error)
- func (c *ClientWithResponses) CreateFeatureWithResponse(ctx context.Context, body CreateFeatureJSONRequestBody, ...) (*CreateFeatureResponse, error)
- func (c *ClientWithResponses) CreateGrantWithBodyWithResponse(ctx context.Context, subjectIdOrKey SubjectIdOrKey, ...) (*CreateGrantResponse, error)
- func (c *ClientWithResponses) CreateGrantWithResponse(ctx context.Context, subjectIdOrKey SubjectIdOrKey, ...) (*CreateGrantResponse, error)
- func (c *ClientWithResponses) CreateMeterWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*CreateMeterResponse, error)
- func (c *ClientWithResponses) CreateMeterWithResponse(ctx context.Context, body CreateMeterJSONRequestBody, ...) (*CreateMeterResponse, error)
- func (c *ClientWithResponses) CreateNotificationChannelWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*CreateNotificationChannelResponse, error)
- func (c *ClientWithResponses) CreateNotificationChannelWithResponse(ctx context.Context, body CreateNotificationChannelJSONRequestBody, ...) (*CreateNotificationChannelResponse, error)
- func (c *ClientWithResponses) CreateNotificationEventWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*CreateNotificationEventResponse, error)
- func (c *ClientWithResponses) CreateNotificationEventWithResponse(ctx context.Context, body CreateNotificationEventJSONRequestBody, ...) (*CreateNotificationEventResponse, error)
- func (c *ClientWithResponses) CreateNotificationRuleWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*CreateNotificationRuleResponse, error)
- func (c *ClientWithResponses) CreateNotificationRuleWithResponse(ctx context.Context, body CreateNotificationRuleJSONRequestBody, ...) (*CreateNotificationRuleResponse, error)
- func (c *ClientWithResponses) CreatePortalTokenWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*CreatePortalTokenResponse, error)
- func (c *ClientWithResponses) CreatePortalTokenWithResponse(ctx context.Context, body CreatePortalTokenJSONRequestBody, ...) (*CreatePortalTokenResponse, error)
- func (c *ClientWithResponses) DeleteEntitlementWithResponse(ctx context.Context, subjectIdOrKey SubjectIdOrKey, ...) (*DeleteEntitlementResponse, error)
- func (c *ClientWithResponses) DeleteFeatureWithResponse(ctx context.Context, featureId FeatureId, reqEditors ...RequestEditorFn) (*DeleteFeatureResponse, error)
- func (c *ClientWithResponses) DeleteMeterWithResponse(ctx context.Context, meterIdOrSlug MeterIdOrSlug, ...) (*DeleteMeterResponse, error)
- func (c *ClientWithResponses) DeleteNotificationChannelWithResponse(ctx context.Context, channelId ChannelId, reqEditors ...RequestEditorFn) (*DeleteNotificationChannelResponse, error)
- func (c *ClientWithResponses) DeleteNotificationRuleWithResponse(ctx context.Context, ruleId RuleId, reqEditors ...RequestEditorFn) (*DeleteNotificationRuleResponse, error)
- func (c *ClientWithResponses) DeleteSubjectWithResponse(ctx context.Context, subjectIdOrKey SubjectIdOrKey, ...) (*DeleteSubjectResponse, error)
- func (c *ClientWithResponses) GetDebugMetricsWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetDebugMetricsResponse, error)
- func (c *ClientWithResponses) GetEntitlementByIdWithResponse(ctx context.Context, entitlementId EntitlementId, ...) (*GetEntitlementByIdResponse, error)
- func (c *ClientWithResponses) GetEntitlementHistoryWithResponse(ctx context.Context, subjectIdOrKey SubjectIdOrKey, ...) (*GetEntitlementHistoryResponse, error)
- func (c *ClientWithResponses) GetEntitlementValueWithResponse(ctx context.Context, subjectIdOrKey SubjectIdOrKey, ...) (*GetEntitlementValueResponse, error)
- func (c *ClientWithResponses) GetEntitlementWithResponse(ctx context.Context, subjectIdOrKey SubjectIdOrKey, ...) (*GetEntitlementResponse, error)
- func (c *ClientWithResponses) GetFeatureWithResponse(ctx context.Context, featureId FeatureId, reqEditors ...RequestEditorFn) (*GetFeatureResponse, error)
- func (c *ClientWithResponses) GetMeterWithResponse(ctx context.Context, meterIdOrSlug MeterIdOrSlug, ...) (*GetMeterResponse, error)
- func (c *ClientWithResponses) GetNotificationChannelWithResponse(ctx context.Context, channelId ChannelId, reqEditors ...RequestEditorFn) (*GetNotificationChannelResponse, error)
- func (c *ClientWithResponses) GetNotificationEventWithResponse(ctx context.Context, eventId EventId, reqEditors ...RequestEditorFn) (*GetNotificationEventResponse, error)
- func (c *ClientWithResponses) GetNotificationRuleWithResponse(ctx context.Context, ruleId RuleId, reqEditors ...RequestEditorFn) (*GetNotificationRuleResponse, error)
- func (c *ClientWithResponses) GetSubjectWithResponse(ctx context.Context, subjectIdOrKey SubjectIdOrKey, ...) (*GetSubjectResponse, error)
- func (c *ClientWithResponses) IngestEventBatchWithResponse(ctx context.Context, events []Event, reqEditors ...RequestEditorFn) (*IngestEventsResponse, error)
- func (c *ClientWithResponses) IngestEventWithResponse(ctx context.Context, event Event, reqEditors ...RequestEditorFn) (*IngestEventsResponse, error)
- func (c *ClientWithResponses) IngestEventsWithApplicationCloudeventsBatchPlusJSONBodyWithResponse(ctx context.Context, ...) (*IngestEventsResponse, error)
- func (c *ClientWithResponses) IngestEventsWithApplicationCloudeventsPlusJSONBodyWithResponse(ctx context.Context, ...) (*IngestEventsResponse, error)
- func (c *ClientWithResponses) IngestEventsWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*IngestEventsResponse, error)
- func (c *ClientWithResponses) InvalidatePortalTokensWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*InvalidatePortalTokensResponse, error)
- func (c *ClientWithResponses) InvalidatePortalTokensWithResponse(ctx context.Context, body InvalidatePortalTokensJSONRequestBody, ...) (*InvalidatePortalTokensResponse, error)
- func (c *ClientWithResponses) ListEntitlementGrantsWithResponse(ctx context.Context, subjectIdOrKey SubjectIdOrKey, ...) (*ListEntitlementGrantsResponse, error)
- func (c *ClientWithResponses) ListEntitlementsWithResponse(ctx context.Context, params *ListEntitlementsParams, ...) (*ListEntitlementsResponse, error)
- func (c *ClientWithResponses) ListEventsWithResponse(ctx context.Context, params *ListEventsParams, reqEditors ...RequestEditorFn) (*ListEventsResponse, error)
- func (c *ClientWithResponses) ListFeaturesWithResponse(ctx context.Context, params *ListFeaturesParams, reqEditors ...RequestEditorFn) (*ListFeaturesResponse, error)
- func (c *ClientWithResponses) ListGrantsWithResponse(ctx context.Context, params *ListGrantsParams, reqEditors ...RequestEditorFn) (*ListGrantsResponse, error)
- func (c *ClientWithResponses) ListMeterSubjectsWithResponse(ctx context.Context, meterIdOrSlug MeterIdOrSlug, ...) (*ListMeterSubjectsResponse, error)
- func (c *ClientWithResponses) ListMetersWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*ListMetersResponse, error)
- func (c *ClientWithResponses) ListNotificationChannelsWithResponse(ctx context.Context, params *ListNotificationChannelsParams, ...) (*ListNotificationChannelsResponse, error)
- func (c *ClientWithResponses) ListNotificationEventsWithResponse(ctx context.Context, params *ListNotificationEventsParams, ...) (*ListNotificationEventsResponse, error)
- func (c *ClientWithResponses) ListNotificationRulesWithResponse(ctx context.Context, params *ListNotificationRulesParams, ...) (*ListNotificationRulesResponse, error)
- func (c *ClientWithResponses) ListPortalTokensWithResponse(ctx context.Context, params *ListPortalTokensParams, ...) (*ListPortalTokensResponse, error)
- func (c *ClientWithResponses) ListSubjectEntitlementsWithResponse(ctx context.Context, subjectIdOrKey SubjectIdOrKey, ...) (*ListSubjectEntitlementsResponse, error)
- func (c *ClientWithResponses) ListSubjectsWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*ListSubjectsResponse, error)
- func (c *ClientWithResponses) QueryMeterWithResponse(ctx context.Context, meterIdOrSlug MeterIdOrSlug, params *QueryMeterParams, ...) (*QueryMeterResponse, error)
- func (c *ClientWithResponses) QueryPortalMeterWithResponse(ctx context.Context, meterSlug string, params *QueryPortalMeterParams, ...) (*QueryPortalMeterResponse, error)
- func (c *ClientWithResponses) ReceiveSvixOperationalEventWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*ReceiveSvixOperationalEventResponse, error)
- func (c *ClientWithResponses) ReceiveSvixOperationalEventWithResponse(ctx context.Context, body ReceiveSvixOperationalEventJSONRequestBody, ...) (*ReceiveSvixOperationalEventResponse, error)
- func (c *ClientWithResponses) ResetEntitlementUsageWithBodyWithResponse(ctx context.Context, subjectIdOrKey SubjectIdOrKey, ...) (*ResetEntitlementUsageResponse, error)
- func (c *ClientWithResponses) ResetEntitlementUsageWithResponse(ctx context.Context, subjectIdOrKey SubjectIdOrKey, ...) (*ResetEntitlementUsageResponse, error)
- func (c *ClientWithResponses) UpdateNotificationChannelWithBodyWithResponse(ctx context.Context, channelId ChannelId, contentType string, body io.Reader, ...) (*UpdateNotificationChannelResponse, error)
- func (c *ClientWithResponses) UpdateNotificationChannelWithResponse(ctx context.Context, channelId ChannelId, ...) (*UpdateNotificationChannelResponse, error)
- func (c *ClientWithResponses) UpdateNotificationRuleWithBodyWithResponse(ctx context.Context, ruleId RuleId, contentType string, body io.Reader, ...) (*UpdateNotificationRuleResponse, error)
- func (c *ClientWithResponses) UpdateNotificationRuleWithResponse(ctx context.Context, ruleId RuleId, body UpdateNotificationRuleJSONRequestBody, ...) (*UpdateNotificationRuleResponse, error)
- func (c *ClientWithResponses) UpsertSubjectWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*UpsertSubjectResponse, error)
- func (c *ClientWithResponses) UpsertSubjectWithResponse(ctx context.Context, body UpsertSubjectJSONRequestBody, ...) (*UpsertSubjectResponse, error)
- func (c *ClientWithResponses) VoidGrantWithResponse(ctx context.Context, grantId GrantId, reqEditors ...RequestEditorFn) (*VoidGrantResponse, error)
- type ClientWithResponsesInterface
- type ConflictProblem
- type ConflictProblemResponse
- type CreateEntitlementJSONRequestBody
- type CreateEntitlementResponse
- type CreateFeatureJSONRequestBody
- type CreateFeatureResponse
- type CreateGrantJSONRequestBody
- type CreateGrantResponse
- type CreateMeterJSONRequestBody
- type CreateMeterResponse
- type CreateNotificationChannelJSONRequestBody
- type CreateNotificationChannelResponse
- type CreateNotificationEventJSONRequestBody
- type CreateNotificationEventResponse
- type CreateNotificationRuleJSONRequestBody
- type CreateNotificationRuleResponse
- type CreatePortalTokenJSONRequestBody
- type CreatePortalTokenResponse
- type DeleteEntitlementResponse
- type DeleteFeatureResponse
- type DeleteMeterResponse
- type DeleteNotificationChannelResponse
- type DeleteNotificationRuleResponse
- type DeleteSubjectResponse
- type Entitlement
- func (t Entitlement) AsEntitlementBoolean() (EntitlementBoolean, error)
- func (t Entitlement) AsEntitlementMetered() (EntitlementMetered, error)
- func (t Entitlement) AsEntitlementStatic() (EntitlementStatic, error)
- func (t Entitlement) Discriminator() (string, error)
- func (t *Entitlement) FromEntitlementBoolean(v EntitlementBoolean) error
- func (t *Entitlement) FromEntitlementMetered(v EntitlementMetered) error
- func (t *Entitlement) FromEntitlementStatic(v EntitlementStatic) error
- func (t Entitlement) MarshalJSON() ([]byte, error)
- func (t *Entitlement) MergeEntitlementBoolean(v EntitlementBoolean) error
- func (t *Entitlement) MergeEntitlementMetered(v EntitlementMetered) error
- func (t *Entitlement) MergeEntitlementStatic(v EntitlementStatic) error
- func (t *Entitlement) UnmarshalJSON(b []byte) error
- func (t Entitlement) ValueByDiscriminator() (interface{}, error)
- type EntitlementBoolean
- type EntitlementBooleanCreateInputs
- type EntitlementBooleanCreateInputsType
- type EntitlementBooleanType
- type EntitlementCreateInputs
- func (t EntitlementCreateInputs) AsEntitlementBooleanCreateInputs() (EntitlementBooleanCreateInputs, error)
- func (t EntitlementCreateInputs) AsEntitlementMeteredCreateInputs() (EntitlementMeteredCreateInputs, error)
- func (t EntitlementCreateInputs) AsEntitlementStaticCreateInputs() (EntitlementStaticCreateInputs, error)
- func (t EntitlementCreateInputs) Discriminator() (string, error)
- func (t *EntitlementCreateInputs) FromEntitlementBooleanCreateInputs(v EntitlementBooleanCreateInputs) error
- func (t *EntitlementCreateInputs) FromEntitlementMeteredCreateInputs(v EntitlementMeteredCreateInputs) error
- func (t *EntitlementCreateInputs) FromEntitlementStaticCreateInputs(v EntitlementStaticCreateInputs) error
- func (t EntitlementCreateInputs) MarshalJSON() ([]byte, error)
- func (t *EntitlementCreateInputs) MergeEntitlementBooleanCreateInputs(v EntitlementBooleanCreateInputs) error
- func (t *EntitlementCreateInputs) MergeEntitlementMeteredCreateInputs(v EntitlementMeteredCreateInputs) error
- func (t *EntitlementCreateInputs) MergeEntitlementStaticCreateInputs(v EntitlementStaticCreateInputs) error
- func (t *EntitlementCreateInputs) UnmarshalJSON(b []byte) error
- func (t EntitlementCreateInputs) ValueByDiscriminator() (interface{}, error)
- type EntitlementCreateSharedFields
- type EntitlementGrant
- type EntitlementGrantCreateInput
- type EntitlementId
- type EntitlementIdOrFeatureKey
- type EntitlementMetered
- type EntitlementMeteredCalculatedFields
- type EntitlementMeteredCreateInputs
- type EntitlementMeteredCreateInputsType
- type EntitlementMeteredType
- type EntitlementSharedFields
- type EntitlementStatic
- type EntitlementStaticCreateInputs
- type EntitlementStaticCreateInputsType
- type EntitlementStaticType
- type EntitlementValue
- type ErrResponse
- type Event
- type EventId
- type ExpirationPeriod
- type ExpirationPeriodDuration
- type Feature
- type FeatureCreateInputs
- type FeatureId
- type FeatureMeta
- type GetDebugMetricsResponse
- type GetEntitlementByIdResponse
- type GetEntitlementHistoryParams
- type GetEntitlementHistoryParamsWindowSize
- type GetEntitlementHistoryResponse
- type GetEntitlementResponse
- type GetEntitlementValueParams
- type GetEntitlementValueResponse
- type GetFeatureResponse
- type GetMeterResponse
- type GetNotificationChannelResponse
- type GetNotificationEventResponse
- type GetNotificationRuleResponse
- type GetSubjectResponse
- type GrantBurnDownHistorySegment
- type GrantId
- type GrantUsageRecord
- type HttpRequestDoer
- type IdOrSlug
- type IncludeDeleted
- type IngestEventsApplicationCloudeventsBatchPlusJSONBody
- type IngestEventsApplicationCloudeventsBatchPlusJSONRequestBody
- type IngestEventsApplicationCloudeventsPlusJSONRequestBody
- type IngestEventsResponse
- type IngestedEvent
- type InvalidatePortalTokensJSONBody
- type InvalidatePortalTokensJSONRequestBody
- type InvalidatePortalTokensResponse
- type ListEntitlementGrantResponse
- func (t ListEntitlementGrantResponse) AsListEntitlementGrantResponse0() (ListEntitlementGrantResponse0, error)
- func (t ListEntitlementGrantResponse) AsListEntitlementGrantResponse1() (ListEntitlementGrantResponse1, error)
- func (t *ListEntitlementGrantResponse) FromListEntitlementGrantResponse0(v ListEntitlementGrantResponse0) error
- func (t *ListEntitlementGrantResponse) FromListEntitlementGrantResponse1(v ListEntitlementGrantResponse1) error
- func (t ListEntitlementGrantResponse) MarshalJSON() ([]byte, error)
- func (t *ListEntitlementGrantResponse) MergeListEntitlementGrantResponse0(v ListEntitlementGrantResponse0) error
- func (t *ListEntitlementGrantResponse) MergeListEntitlementGrantResponse1(v ListEntitlementGrantResponse1) error
- func (t *ListEntitlementGrantResponse) UnmarshalJSON(b []byte) error
- type ListEntitlementGrantResponse0
- type ListEntitlementGrantResponse1
- type ListEntitlementGrantsParams
- type ListEntitlementGrantsParamsOrderBy
- type ListEntitlementGrantsResponse
- type ListEntitlementResponse
- func (t ListEntitlementResponse) AsListEntitlementResponse0() (ListEntitlementResponse0, error)
- func (t ListEntitlementResponse) AsListEntitlementResponse1() (ListEntitlementResponse1, error)
- func (t *ListEntitlementResponse) FromListEntitlementResponse0(v ListEntitlementResponse0) error
- func (t *ListEntitlementResponse) FromListEntitlementResponse1(v ListEntitlementResponse1) error
- func (t ListEntitlementResponse) MarshalJSON() ([]byte, error)
- func (t *ListEntitlementResponse) MergeListEntitlementResponse0(v ListEntitlementResponse0) error
- func (t *ListEntitlementResponse) MergeListEntitlementResponse1(v ListEntitlementResponse1) error
- func (t *ListEntitlementResponse) UnmarshalJSON(b []byte) error
- type ListEntitlementResponse0
- type ListEntitlementResponse1
- type ListEntitlementsParams
- type ListEntitlementsParamsOrder
- type ListEntitlementsParamsOrderBy
- type ListEntitlementsResponse
- type ListEventsParams
- type ListEventsResponse
- type ListFeatureResponse
- func (t ListFeatureResponse) AsListFeatureResponse0() (ListFeatureResponse0, error)
- func (t ListFeatureResponse) AsListFeatureResponse1() (ListFeatureResponse1, error)
- func (t *ListFeatureResponse) FromListFeatureResponse0(v ListFeatureResponse0) error
- func (t *ListFeatureResponse) FromListFeatureResponse1(v ListFeatureResponse1) error
- func (t ListFeatureResponse) MarshalJSON() ([]byte, error)
- func (t *ListFeatureResponse) MergeListFeatureResponse0(v ListFeatureResponse0) error
- func (t *ListFeatureResponse) MergeListFeatureResponse1(v ListFeatureResponse1) error
- func (t *ListFeatureResponse) UnmarshalJSON(b []byte) error
- type ListFeatureResponse0
- type ListFeatureResponse1
- type ListFeaturesParams
- type ListFeaturesParamsOrder
- type ListFeaturesParamsOrderBy
- type ListFeaturesResponse
- type ListGrantsParams
- type ListGrantsParamsOrder
- type ListGrantsParamsOrderBy
- type ListGrantsResponse
- type ListMeterSubjectsResponse
- type ListMetersResponse
- type ListNotificationChannelsParams
- type ListNotificationChannelsParamsOrder
- type ListNotificationChannelsParamsOrderBy
- type ListNotificationChannelsResponse
- type ListNotificationEventsParams
- type ListNotificationEventsParamsOrder
- type ListNotificationEventsParamsOrderBy
- type ListNotificationEventsResponse
- type ListNotificationRulesParams
- type ListNotificationRulesParamsOrder
- type ListNotificationRulesParamsOrderBy
- type ListNotificationRulesResponse
- type ListPortalTokensParams
- type ListPortalTokensResponse
- type ListSubjectEntitlementsParams
- type ListSubjectEntitlementsResponse
- type ListSubjectsResponse
- type MeasureUsageFrom
- func (t MeasureUsageFrom) AsMeasureUsageFromEnum() (MeasureUsageFromEnum, error)
- func (t MeasureUsageFrom) AsMeasureUsageFromTime() (MeasureUsageFromTime, error)
- func (t *MeasureUsageFrom) FromMeasureUsageFromEnum(v MeasureUsageFromEnum) error
- func (t *MeasureUsageFrom) FromMeasureUsageFromTime(v MeasureUsageFromTime) error
- func (t MeasureUsageFrom) MarshalJSON() ([]byte, error)
- func (t *MeasureUsageFrom) MergeMeasureUsageFromEnum(v MeasureUsageFromEnum) error
- func (t *MeasureUsageFrom) MergeMeasureUsageFromTime(v MeasureUsageFromTime) error
- func (t *MeasureUsageFrom) UnmarshalJSON(b []byte) error
- type MeasureUsageFromEnum
- type MeasureUsageFromTime
- type Meter
- type MeterAggregation
- type MeterIdOrSlug
- type MeterQueryResult
- type MeterQueryRow
- type NotFoundProblemResponse
- type NotImplementedProblemResponse
- type NotificationChannel
- func (t NotificationChannel) AsNotificationChannelWebhook() (NotificationChannelWebhook, error)
- func (t NotificationChannel) Discriminator() (string, error)
- func (t *NotificationChannel) FromNotificationChannelWebhook(v NotificationChannelWebhook) error
- func (t NotificationChannel) MarshalJSON() ([]byte, error)
- func (t *NotificationChannel) MergeNotificationChannelWebhook(v NotificationChannelWebhook) error
- func (t *NotificationChannel) UnmarshalJSON(b []byte) error
- func (t NotificationChannel) ValueByDiscriminator() (interface{}, error)
- type NotificationChannelCommon
- type NotificationChannelCommonCreateRequest
- type NotificationChannelCreateRequest
- func (t NotificationChannelCreateRequest) AsNotificationChannelWebhookCreateRequest() (NotificationChannelWebhookCreateRequest, error)
- func (t NotificationChannelCreateRequest) Discriminator() (string, error)
- func (t *NotificationChannelCreateRequest) FromNotificationChannelWebhookCreateRequest(v NotificationChannelWebhookCreateRequest) error
- func (t NotificationChannelCreateRequest) MarshalJSON() ([]byte, error)
- func (t *NotificationChannelCreateRequest) MergeNotificationChannelWebhookCreateRequest(v NotificationChannelWebhookCreateRequest) error
- func (t *NotificationChannelCreateRequest) UnmarshalJSON(b []byte) error
- func (t NotificationChannelCreateRequest) ValueByDiscriminator() (interface{}, error)
- type NotificationChannelMeta
- type NotificationChannelType
- type NotificationChannelWebhook
- type NotificationChannelWebhookCreateRequest
- type NotificationChannels
- type NotificationChannelsResponse
- type NotificationEvent
- type NotificationEventBalanceThresholdPayload
- type NotificationEventCommonPayload
- type NotificationEventCreateRequest
- type NotificationEventDeliveryStatus
- type NotificationEventDeliveryStatusState
- type NotificationEventPayload
- func (t NotificationEventPayload) AsNotificationEventBalanceThresholdPayload() (NotificationEventBalanceThresholdPayload, error)
- func (t NotificationEventPayload) Discriminator() (string, error)
- func (t *NotificationEventPayload) FromNotificationEventBalanceThresholdPayload(v NotificationEventBalanceThresholdPayload) error
- func (t NotificationEventPayload) MarshalJSON() ([]byte, error)
- func (t *NotificationEventPayload) MergeNotificationEventBalanceThresholdPayload(v NotificationEventBalanceThresholdPayload) error
- func (t *NotificationEventPayload) UnmarshalJSON(b []byte) error
- func (t NotificationEventPayload) ValueByDiscriminator() (interface{}, error)
- type NotificationEventType
- type NotificationEvents
- type NotificationEventsResponse
- type NotificationRule
- func (t NotificationRule) AsNotificationRuleBalanceThreshold() (NotificationRuleBalanceThreshold, error)
- func (t NotificationRule) Discriminator() (string, error)
- func (t *NotificationRule) FromNotificationRuleBalanceThreshold(v NotificationRuleBalanceThreshold) error
- func (t NotificationRule) MarshalJSON() ([]byte, error)
- func (t *NotificationRule) MergeNotificationRuleBalanceThreshold(v NotificationRuleBalanceThreshold) error
- func (t *NotificationRule) UnmarshalJSON(b []byte) error
- func (t NotificationRule) ValueByDiscriminator() (interface{}, error)
- type NotificationRuleBalanceThreshold
- type NotificationRuleBalanceThresholdCreateRequest
- type NotificationRuleBalanceThresholdValue
- type NotificationRuleBalanceThresholdValueType
- type NotificationRuleCommon
- type NotificationRuleCommonCreateRequest
- type NotificationRuleCreateRequest
- func (t NotificationRuleCreateRequest) AsNotificationRuleBalanceThresholdCreateRequest() (NotificationRuleBalanceThresholdCreateRequest, error)
- func (t NotificationRuleCreateRequest) Discriminator() (string, error)
- func (t *NotificationRuleCreateRequest) FromNotificationRuleBalanceThresholdCreateRequest(v NotificationRuleBalanceThresholdCreateRequest) error
- func (t NotificationRuleCreateRequest) MarshalJSON() ([]byte, error)
- func (t *NotificationRuleCreateRequest) MergeNotificationRuleBalanceThresholdCreateRequest(v NotificationRuleBalanceThresholdCreateRequest) error
- func (t *NotificationRuleCreateRequest) UnmarshalJSON(b []byte) error
- func (t NotificationRuleCreateRequest) ValueByDiscriminator() (interface{}, error)
- type NotificationRuleMeta
- type NotificationRules
- type NotificationRulesResponse
- type Order
- type Period
- type PortalToken
- type Problem
- type QueryFilterChannel
- type QueryFilterEntitlementType
- type QueryFilterFeature
- type QueryFilterGroupBy
- type QueryFilterMeterSlug
- type QueryFilterSubject
- type QueryFrom
- type QueryGroupBy
- type QueryIncludeDisabled
- type QueryLimit
- type QueryMeterParams
- type QueryMeterResponse
- type QueryOffset
- type QueryPage
- type QueryPageSize
- type QueryPortalMeterParams
- type QueryPortalMeterResponse
- type QueryTo
- type QueryWindowSize
- type QueryWindowTimeZone
- type ReceiveSvixOperationalEventJSONRequestBody
- type ReceiveSvixOperationalEventResponse
- type RecurringPeriod
- type RecurringPeriodCreateInput
- type RecurringPeriodEnum
- type RequestEditorFn
- type ResetEntitlementUsageJSONBody
- type ResetEntitlementUsageJSONRequestBody
- type ResetEntitlementUsageResponse
- type RuleId
- type SharedMetaFields
- type Subject
- type SubjectIdOrKey
- type SvixOperationalWebhookRequest
- type SvixOperationalWebhookRequestType
- type UnauthorizedProblemResponse
- type UnexpectedProblemResponse
- type UpdateNotificationChannelJSONRequestBody
- type UpdateNotificationChannelResponse
- type UpdateNotificationRuleJSONRequestBody
- type UpdateNotificationRuleResponse
- type UpsertSubjectJSONBody
- type UpsertSubjectJSONRequestBody
- type UpsertSubjectResponse
- type VoidGrantResponse
- type WindowSize
- type WindowedBalanceHistory
Constants ¶
const ( CloudCookieAuthScopes = "CloudCookieAuth.Scopes" CloudPortalTokenAuthScopes = "CloudPortalTokenAuth.Scopes" CloudTokenAuthScopes = "CloudTokenAuth.Scopes" PortalTokenAuthScopes = "PortalTokenAuth.Scopes" )
Variables ¶
This section is empty.
Functions ¶
func GetSwagger ¶
GetSwagger returns the Swagger specification corresponding to the generated code in this file. The external references of Swagger specification are resolved. The logic of resolving external references is tightly connected to "import-mapping" feature. Externally referenced files must be embedded in the corresponding golang packages. Urls can be supported but this task was out of the scope.
func NewCreateEntitlementRequest ¶
func NewCreateEntitlementRequest(server string, subjectIdOrKey SubjectIdOrKey, body CreateEntitlementJSONRequestBody) (*http.Request, error)
NewCreateEntitlementRequest calls the generic CreateEntitlement builder with application/json body
func NewCreateEntitlementRequestWithBody ¶
func NewCreateEntitlementRequestWithBody(server string, subjectIdOrKey SubjectIdOrKey, contentType string, body io.Reader) (*http.Request, error)
NewCreateEntitlementRequestWithBody generates requests for CreateEntitlement with any type of body
func NewCreateFeatureRequest ¶
func NewCreateFeatureRequest(server string, body CreateFeatureJSONRequestBody) (*http.Request, error)
NewCreateFeatureRequest calls the generic CreateFeature builder with application/json body
func NewCreateFeatureRequestWithBody ¶
func NewCreateFeatureRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
NewCreateFeatureRequestWithBody generates requests for CreateFeature with any type of body
func NewCreateGrantRequest ¶
func NewCreateGrantRequest(server string, subjectIdOrKey SubjectIdOrKey, entitlementIdOrFeatureKey EntitlementIdOrFeatureKey, body CreateGrantJSONRequestBody) (*http.Request, error)
NewCreateGrantRequest calls the generic CreateGrant builder with application/json body
func NewCreateGrantRequestWithBody ¶
func NewCreateGrantRequestWithBody(server string, subjectIdOrKey SubjectIdOrKey, entitlementIdOrFeatureKey EntitlementIdOrFeatureKey, contentType string, body io.Reader) (*http.Request, error)
NewCreateGrantRequestWithBody generates requests for CreateGrant with any type of body
func NewCreateMeterRequest ¶
func NewCreateMeterRequest(server string, body CreateMeterJSONRequestBody) (*http.Request, error)
NewCreateMeterRequest calls the generic CreateMeter builder with application/json body
func NewCreateMeterRequestWithBody ¶
func NewCreateMeterRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
NewCreateMeterRequestWithBody generates requests for CreateMeter with any type of body
func NewCreateNotificationChannelRequest ¶
func NewCreateNotificationChannelRequest(server string, body CreateNotificationChannelJSONRequestBody) (*http.Request, error)
NewCreateNotificationChannelRequest calls the generic CreateNotificationChannel builder with application/json body
func NewCreateNotificationChannelRequestWithBody ¶
func NewCreateNotificationChannelRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
NewCreateNotificationChannelRequestWithBody generates requests for CreateNotificationChannel with any type of body
func NewCreateNotificationEventRequest ¶
func NewCreateNotificationEventRequest(server string, body CreateNotificationEventJSONRequestBody) (*http.Request, error)
NewCreateNotificationEventRequest calls the generic CreateNotificationEvent builder with application/json body
func NewCreateNotificationEventRequestWithBody ¶
func NewCreateNotificationEventRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
NewCreateNotificationEventRequestWithBody generates requests for CreateNotificationEvent with any type of body
func NewCreateNotificationRuleRequest ¶
func NewCreateNotificationRuleRequest(server string, body CreateNotificationRuleJSONRequestBody) (*http.Request, error)
NewCreateNotificationRuleRequest calls the generic CreateNotificationRule builder with application/json body
func NewCreateNotificationRuleRequestWithBody ¶
func NewCreateNotificationRuleRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
NewCreateNotificationRuleRequestWithBody generates requests for CreateNotificationRule with any type of body
func NewCreatePortalTokenRequest ¶
func NewCreatePortalTokenRequest(server string, body CreatePortalTokenJSONRequestBody) (*http.Request, error)
NewCreatePortalTokenRequest calls the generic CreatePortalToken builder with application/json body
func NewCreatePortalTokenRequestWithBody ¶
func NewCreatePortalTokenRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
NewCreatePortalTokenRequestWithBody generates requests for CreatePortalToken with any type of body
func NewDeleteEntitlementRequest ¶
func NewDeleteEntitlementRequest(server string, subjectIdOrKey SubjectIdOrKey, entitlementId EntitlementId) (*http.Request, error)
NewDeleteEntitlementRequest generates requests for DeleteEntitlement
func NewDeleteFeatureRequest ¶
NewDeleteFeatureRequest generates requests for DeleteFeature
func NewDeleteMeterRequest ¶
func NewDeleteMeterRequest(server string, meterIdOrSlug MeterIdOrSlug) (*http.Request, error)
NewDeleteMeterRequest generates requests for DeleteMeter
func NewDeleteNotificationChannelRequest ¶
NewDeleteNotificationChannelRequest generates requests for DeleteNotificationChannel
func NewDeleteNotificationRuleRequest ¶
NewDeleteNotificationRuleRequest generates requests for DeleteNotificationRule
func NewDeleteSubjectRequest ¶
func NewDeleteSubjectRequest(server string, subjectIdOrKey SubjectIdOrKey) (*http.Request, error)
NewDeleteSubjectRequest generates requests for DeleteSubject
func NewGetDebugMetricsRequest ¶
NewGetDebugMetricsRequest generates requests for GetDebugMetrics
func NewGetEntitlementByIdRequest ¶
func NewGetEntitlementByIdRequest(server string, entitlementId EntitlementId) (*http.Request, error)
NewGetEntitlementByIdRequest generates requests for GetEntitlementById
func NewGetEntitlementHistoryRequest ¶
func NewGetEntitlementHistoryRequest(server string, subjectIdOrKey SubjectIdOrKey, entitlementId EntitlementId, params *GetEntitlementHistoryParams) (*http.Request, error)
NewGetEntitlementHistoryRequest generates requests for GetEntitlementHistory
func NewGetEntitlementRequest ¶
func NewGetEntitlementRequest(server string, subjectIdOrKey SubjectIdOrKey, entitlementId EntitlementId) (*http.Request, error)
NewGetEntitlementRequest generates requests for GetEntitlement
func NewGetEntitlementValueRequest ¶
func NewGetEntitlementValueRequest(server string, subjectIdOrKey SubjectIdOrKey, entitlementIdOrFeatureKey EntitlementIdOrFeatureKey, params *GetEntitlementValueParams) (*http.Request, error)
NewGetEntitlementValueRequest generates requests for GetEntitlementValue
func NewGetFeatureRequest ¶
NewGetFeatureRequest generates requests for GetFeature
func NewGetMeterRequest ¶
func NewGetMeterRequest(server string, meterIdOrSlug MeterIdOrSlug) (*http.Request, error)
NewGetMeterRequest generates requests for GetMeter
func NewGetNotificationChannelRequest ¶
NewGetNotificationChannelRequest generates requests for GetNotificationChannel
func NewGetNotificationEventRequest ¶
NewGetNotificationEventRequest generates requests for GetNotificationEvent
func NewGetNotificationRuleRequest ¶
NewGetNotificationRuleRequest generates requests for GetNotificationRule
func NewGetSubjectRequest ¶
func NewGetSubjectRequest(server string, subjectIdOrKey SubjectIdOrKey) (*http.Request, error)
NewGetSubjectRequest generates requests for GetSubject
func NewIngestEventsRequestWithApplicationCloudeventsBatchPlusJSONBody ¶
func NewIngestEventsRequestWithApplicationCloudeventsBatchPlusJSONBody(server string, body IngestEventsApplicationCloudeventsBatchPlusJSONRequestBody) (*http.Request, error)
NewIngestEventsRequestWithApplicationCloudeventsBatchPlusJSONBody calls the generic IngestEvents builder with application/cloudevents-batch+json body
func NewIngestEventsRequestWithApplicationCloudeventsPlusJSONBody ¶
func NewIngestEventsRequestWithApplicationCloudeventsPlusJSONBody(server string, body IngestEventsApplicationCloudeventsPlusJSONRequestBody) (*http.Request, error)
NewIngestEventsRequestWithApplicationCloudeventsPlusJSONBody calls the generic IngestEvents builder with application/cloudevents+json body
func NewIngestEventsRequestWithBody ¶
func NewIngestEventsRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
NewIngestEventsRequestWithBody generates requests for IngestEvents with any type of body
func NewInvalidatePortalTokensRequest ¶
func NewInvalidatePortalTokensRequest(server string, body InvalidatePortalTokensJSONRequestBody) (*http.Request, error)
NewInvalidatePortalTokensRequest calls the generic InvalidatePortalTokens builder with application/json body
func NewInvalidatePortalTokensRequestWithBody ¶
func NewInvalidatePortalTokensRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
NewInvalidatePortalTokensRequestWithBody generates requests for InvalidatePortalTokens with any type of body
func NewListEntitlementGrantsRequest ¶
func NewListEntitlementGrantsRequest(server string, subjectIdOrKey SubjectIdOrKey, entitlementIdOrFeatureKey EntitlementIdOrFeatureKey, params *ListEntitlementGrantsParams) (*http.Request, error)
NewListEntitlementGrantsRequest generates requests for ListEntitlementGrants
func NewListEntitlementsRequest ¶
func NewListEntitlementsRequest(server string, params *ListEntitlementsParams) (*http.Request, error)
NewListEntitlementsRequest generates requests for ListEntitlements
func NewListEventsRequest ¶
func NewListEventsRequest(server string, params *ListEventsParams) (*http.Request, error)
NewListEventsRequest generates requests for ListEvents
func NewListFeaturesRequest ¶
func NewListFeaturesRequest(server string, params *ListFeaturesParams) (*http.Request, error)
NewListFeaturesRequest generates requests for ListFeatures
func NewListGrantsRequest ¶
func NewListGrantsRequest(server string, params *ListGrantsParams) (*http.Request, error)
NewListGrantsRequest generates requests for ListGrants
func NewListMeterSubjectsRequest ¶
func NewListMeterSubjectsRequest(server string, meterIdOrSlug MeterIdOrSlug) (*http.Request, error)
NewListMeterSubjectsRequest generates requests for ListMeterSubjects
func NewListMetersRequest ¶
NewListMetersRequest generates requests for ListMeters
func NewListNotificationChannelsRequest ¶
func NewListNotificationChannelsRequest(server string, params *ListNotificationChannelsParams) (*http.Request, error)
NewListNotificationChannelsRequest generates requests for ListNotificationChannels
func NewListNotificationEventsRequest ¶
func NewListNotificationEventsRequest(server string, params *ListNotificationEventsParams) (*http.Request, error)
NewListNotificationEventsRequest generates requests for ListNotificationEvents
func NewListNotificationRulesRequest ¶
func NewListNotificationRulesRequest(server string, params *ListNotificationRulesParams) (*http.Request, error)
NewListNotificationRulesRequest generates requests for ListNotificationRules
func NewListPortalTokensRequest ¶
func NewListPortalTokensRequest(server string, params *ListPortalTokensParams) (*http.Request, error)
NewListPortalTokensRequest generates requests for ListPortalTokens
func NewListSubjectEntitlementsRequest ¶
func NewListSubjectEntitlementsRequest(server string, subjectIdOrKey SubjectIdOrKey, params *ListSubjectEntitlementsParams) (*http.Request, error)
NewListSubjectEntitlementsRequest generates requests for ListSubjectEntitlements
func NewListSubjectsRequest ¶
NewListSubjectsRequest generates requests for ListSubjects
func NewQueryMeterRequest ¶
func NewQueryMeterRequest(server string, meterIdOrSlug MeterIdOrSlug, params *QueryMeterParams) (*http.Request, error)
NewQueryMeterRequest generates requests for QueryMeter
func NewQueryPortalMeterRequest ¶
func NewQueryPortalMeterRequest(server string, meterSlug string, params *QueryPortalMeterParams) (*http.Request, error)
NewQueryPortalMeterRequest generates requests for QueryPortalMeter
func NewReceiveSvixOperationalEventRequest ¶
func NewReceiveSvixOperationalEventRequest(server string, body ReceiveSvixOperationalEventJSONRequestBody) (*http.Request, error)
NewReceiveSvixOperationalEventRequest calls the generic ReceiveSvixOperationalEvent builder with application/json body
func NewReceiveSvixOperationalEventRequestWithBody ¶
func NewReceiveSvixOperationalEventRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
NewReceiveSvixOperationalEventRequestWithBody generates requests for ReceiveSvixOperationalEvent with any type of body
func NewResetEntitlementUsageRequest ¶
func NewResetEntitlementUsageRequest(server string, subjectIdOrKey SubjectIdOrKey, entitlementId EntitlementId, body ResetEntitlementUsageJSONRequestBody) (*http.Request, error)
NewResetEntitlementUsageRequest calls the generic ResetEntitlementUsage builder with application/json body
func NewResetEntitlementUsageRequestWithBody ¶
func NewResetEntitlementUsageRequestWithBody(server string, subjectIdOrKey SubjectIdOrKey, entitlementId EntitlementId, contentType string, body io.Reader) (*http.Request, error)
NewResetEntitlementUsageRequestWithBody generates requests for ResetEntitlementUsage with any type of body
func NewUpdateNotificationChannelRequest ¶
func NewUpdateNotificationChannelRequest(server string, channelId ChannelId, body UpdateNotificationChannelJSONRequestBody) (*http.Request, error)
NewUpdateNotificationChannelRequest calls the generic UpdateNotificationChannel builder with application/json body
func NewUpdateNotificationChannelRequestWithBody ¶
func NewUpdateNotificationChannelRequestWithBody(server string, channelId ChannelId, contentType string, body io.Reader) (*http.Request, error)
NewUpdateNotificationChannelRequestWithBody generates requests for UpdateNotificationChannel with any type of body
func NewUpdateNotificationRuleRequest ¶
func NewUpdateNotificationRuleRequest(server string, ruleId RuleId, body UpdateNotificationRuleJSONRequestBody) (*http.Request, error)
NewUpdateNotificationRuleRequest calls the generic UpdateNotificationRule builder with application/json body
func NewUpdateNotificationRuleRequestWithBody ¶
func NewUpdateNotificationRuleRequestWithBody(server string, ruleId RuleId, contentType string, body io.Reader) (*http.Request, error)
NewUpdateNotificationRuleRequestWithBody generates requests for UpdateNotificationRule with any type of body
func NewUpsertSubjectRequest ¶
func NewUpsertSubjectRequest(server string, body UpsertSubjectJSONRequestBody) (*http.Request, error)
NewUpsertSubjectRequest calls the generic UpsertSubject builder with application/json body
func NewUpsertSubjectRequestWithBody ¶
func NewUpsertSubjectRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
NewUpsertSubjectRequestWithBody generates requests for UpsertSubject with any type of body
func NewVoidGrantRequest ¶
NewVoidGrantRequest generates requests for VoidGrant
Types ¶
type BadRequestProblemResponse ¶
type BadRequestProblemResponse = Problem
BadRequestProblemResponse A Problem Details object (RFC 7807). Additional properties specific to the problem type may be present.
type BalanceHistoryWindow ¶
type BalanceHistoryWindow struct {
// BalanceAtStart The entitlement balance at the start of the period.
BalanceAtStart *float64 `json:"balanceAtStart,omitempty"`
// Period A time period
Period *Period `json:"period,omitempty"`
// Usage The total usage of the feature in the period.
Usage *float64 `json:"usage,omitempty"`
}
BalanceHistoryWindow Windowed usage and balance information.
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 NewAuthClient ¶
func NewAuthClient(server string, apiSecret string, opts ...ClientOption) (*Client, error)
func NewClient ¶
func NewClient(server string, opts ...ClientOption) (*Client, error)
Creates a new Client, with reasonable defaults
func (*Client) CreateEntitlement ¶
func (c *Client) CreateEntitlement(ctx context.Context, subjectIdOrKey SubjectIdOrKey, body CreateEntitlementJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) CreateEntitlementWithBody ¶
func (*Client) CreateFeature ¶
func (c *Client) CreateFeature(ctx context.Context, body CreateFeatureJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) CreateFeatureWithBody ¶
func (*Client) CreateGrant ¶
func (c *Client) CreateGrant(ctx context.Context, subjectIdOrKey SubjectIdOrKey, entitlementIdOrFeatureKey EntitlementIdOrFeatureKey, body CreateGrantJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) CreateGrantWithBody ¶
func (c *Client) CreateGrantWithBody(ctx context.Context, subjectIdOrKey SubjectIdOrKey, entitlementIdOrFeatureKey EntitlementIdOrFeatureKey, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) CreateMeter ¶
func (c *Client) CreateMeter(ctx context.Context, body CreateMeterJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) CreateMeterWithBody ¶
func (*Client) CreateNotificationChannel ¶
func (c *Client) CreateNotificationChannel(ctx context.Context, body CreateNotificationChannelJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) CreateNotificationChannelWithBody ¶
func (*Client) CreateNotificationEvent ¶
func (c *Client) CreateNotificationEvent(ctx context.Context, body CreateNotificationEventJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) CreateNotificationEventWithBody ¶
func (*Client) CreateNotificationRule ¶
func (c *Client) CreateNotificationRule(ctx context.Context, body CreateNotificationRuleJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) CreateNotificationRuleWithBody ¶
func (*Client) CreatePortalToken ¶
func (c *Client) CreatePortalToken(ctx context.Context, body CreatePortalTokenJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) CreatePortalTokenWithBody ¶
func (*Client) DeleteEntitlement ¶
func (c *Client) DeleteEntitlement(ctx context.Context, subjectIdOrKey SubjectIdOrKey, entitlementId EntitlementId, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) DeleteFeature ¶
func (*Client) DeleteMeter ¶
func (c *Client) DeleteMeter(ctx context.Context, meterIdOrSlug MeterIdOrSlug, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) DeleteNotificationChannel ¶
func (*Client) DeleteNotificationRule ¶
func (*Client) DeleteSubject ¶
func (c *Client) DeleteSubject(ctx context.Context, subjectIdOrKey SubjectIdOrKey, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) GetDebugMetrics ¶
func (*Client) GetEntitlement ¶
func (c *Client) GetEntitlement(ctx context.Context, subjectIdOrKey SubjectIdOrKey, entitlementId EntitlementId, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) GetEntitlementById ¶
func (c *Client) GetEntitlementById(ctx context.Context, entitlementId EntitlementId, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) GetEntitlementHistory ¶
func (c *Client) GetEntitlementHistory(ctx context.Context, subjectIdOrKey SubjectIdOrKey, entitlementId EntitlementId, params *GetEntitlementHistoryParams, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) GetEntitlementValue ¶
func (c *Client) GetEntitlementValue(ctx context.Context, subjectIdOrKey SubjectIdOrKey, entitlementIdOrFeatureKey EntitlementIdOrFeatureKey, params *GetEntitlementValueParams, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) GetFeature ¶
func (*Client) GetMeter ¶
func (c *Client) GetMeter(ctx context.Context, meterIdOrSlug MeterIdOrSlug, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) GetNotificationChannel ¶
func (*Client) GetNotificationEvent ¶
func (*Client) GetNotificationRule ¶
func (*Client) GetSubject ¶
func (c *Client) GetSubject(ctx context.Context, subjectIdOrKey SubjectIdOrKey, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) IngestEvent ¶
func (c *Client) IngestEvent(ctx context.Context, event Event, reqEditors ...RequestEditorFn) (*http.Response, error)
IngestEvents is a wrapper around generated client's IngestEventsWithApplicationCloudeventsPlusJSONBody
func (*Client) IngestEventBatch ¶
func (c *Client) IngestEventBatch(ctx context.Context, events []Event, reqEditors ...RequestEditorFn) (*http.Response, error)
IngestEvents is a wrapper around generated client's IngestEventsWithApplicationCloudeventsBatchPlusJSONBody
func (*Client) IngestEventsWithApplicationCloudeventsBatchPlusJSONBody ¶
func (c *Client) IngestEventsWithApplicationCloudeventsBatchPlusJSONBody(ctx context.Context, body IngestEventsApplicationCloudeventsBatchPlusJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) IngestEventsWithApplicationCloudeventsPlusJSONBody ¶
func (c *Client) IngestEventsWithApplicationCloudeventsPlusJSONBody(ctx context.Context, body IngestEventsApplicationCloudeventsPlusJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) IngestEventsWithBody ¶
func (*Client) InvalidatePortalTokens ¶
func (c *Client) InvalidatePortalTokens(ctx context.Context, body InvalidatePortalTokensJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) InvalidatePortalTokensWithBody ¶
func (*Client) ListEntitlementGrants ¶
func (c *Client) ListEntitlementGrants(ctx context.Context, subjectIdOrKey SubjectIdOrKey, entitlementIdOrFeatureKey EntitlementIdOrFeatureKey, params *ListEntitlementGrantsParams, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) ListEntitlements ¶
func (c *Client) ListEntitlements(ctx context.Context, params *ListEntitlementsParams, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) ListEvents ¶
func (c *Client) ListEvents(ctx context.Context, params *ListEventsParams, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) ListFeatures ¶
func (c *Client) ListFeatures(ctx context.Context, params *ListFeaturesParams, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) ListGrants ¶
func (c *Client) ListGrants(ctx context.Context, params *ListGrantsParams, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) ListMeterSubjects ¶
func (c *Client) ListMeterSubjects(ctx context.Context, meterIdOrSlug MeterIdOrSlug, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) ListMeters ¶
func (*Client) ListNotificationChannels ¶
func (c *Client) ListNotificationChannels(ctx context.Context, params *ListNotificationChannelsParams, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) ListNotificationEvents ¶
func (c *Client) ListNotificationEvents(ctx context.Context, params *ListNotificationEventsParams, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) ListNotificationRules ¶
func (c *Client) ListNotificationRules(ctx context.Context, params *ListNotificationRulesParams, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) ListPortalTokens ¶
func (c *Client) ListPortalTokens(ctx context.Context, params *ListPortalTokensParams, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) ListSubjectEntitlements ¶
func (c *Client) ListSubjectEntitlements(ctx context.Context, subjectIdOrKey SubjectIdOrKey, params *ListSubjectEntitlementsParams, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) ListSubjects ¶
func (*Client) QueryMeter ¶
func (c *Client) QueryMeter(ctx context.Context, meterIdOrSlug MeterIdOrSlug, params *QueryMeterParams, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) QueryPortalMeter ¶
func (c *Client) QueryPortalMeter(ctx context.Context, meterSlug string, params *QueryPortalMeterParams, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) ReceiveSvixOperationalEvent ¶
func (c *Client) ReceiveSvixOperationalEvent(ctx context.Context, body ReceiveSvixOperationalEventJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) ReceiveSvixOperationalEventWithBody ¶
func (*Client) ResetEntitlementUsage ¶
func (c *Client) ResetEntitlementUsage(ctx context.Context, subjectIdOrKey SubjectIdOrKey, entitlementId EntitlementId, body ResetEntitlementUsageJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) ResetEntitlementUsageWithBody ¶
func (c *Client) ResetEntitlementUsageWithBody(ctx context.Context, subjectIdOrKey SubjectIdOrKey, entitlementId EntitlementId, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) UpdateNotificationChannel ¶
func (c *Client) UpdateNotificationChannel(ctx context.Context, channelId ChannelId, body UpdateNotificationChannelJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) UpdateNotificationChannelWithBody ¶
func (*Client) UpdateNotificationRule ¶
func (c *Client) UpdateNotificationRule(ctx context.Context, ruleId RuleId, body UpdateNotificationRuleJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) UpdateNotificationRuleWithBody ¶
func (*Client) UpsertSubject ¶
func (c *Client) UpsertSubject(ctx context.Context, body UpsertSubjectJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) UpsertSubjectWithBody ¶
type ClientInterface ¶
type ClientInterface interface {
// GetDebugMetrics request
GetDebugMetrics(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
// ListEntitlements request
ListEntitlements(ctx context.Context, params *ListEntitlementsParams, reqEditors ...RequestEditorFn) (*http.Response, error)
// GetEntitlementById request
GetEntitlementById(ctx context.Context, entitlementId EntitlementId, reqEditors ...RequestEditorFn) (*http.Response, error)
// ListEvents request
ListEvents(ctx context.Context, params *ListEventsParams, reqEditors ...RequestEditorFn) (*http.Response, error)
// IngestEventsWithBody request with any body
IngestEventsWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
IngestEventsWithApplicationCloudeventsPlusJSONBody(ctx context.Context, body IngestEventsApplicationCloudeventsPlusJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
IngestEventsWithApplicationCloudeventsBatchPlusJSONBody(ctx context.Context, body IngestEventsApplicationCloudeventsBatchPlusJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// ListFeatures request
ListFeatures(ctx context.Context, params *ListFeaturesParams, reqEditors ...RequestEditorFn) (*http.Response, error)
// CreateFeatureWithBody request with any body
CreateFeatureWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
CreateFeature(ctx context.Context, body CreateFeatureJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// DeleteFeature request
DeleteFeature(ctx context.Context, featureId FeatureId, reqEditors ...RequestEditorFn) (*http.Response, error)
// GetFeature request
GetFeature(ctx context.Context, featureId FeatureId, reqEditors ...RequestEditorFn) (*http.Response, error)
// ListGrants request
ListGrants(ctx context.Context, params *ListGrantsParams, reqEditors ...RequestEditorFn) (*http.Response, error)
// VoidGrant request
VoidGrant(ctx context.Context, grantId GrantId, reqEditors ...RequestEditorFn) (*http.Response, error)
// ListMeters request
ListMeters(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
// CreateMeterWithBody request with any body
CreateMeterWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
CreateMeter(ctx context.Context, body CreateMeterJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// DeleteMeter request
DeleteMeter(ctx context.Context, meterIdOrSlug MeterIdOrSlug, reqEditors ...RequestEditorFn) (*http.Response, error)
// GetMeter request
GetMeter(ctx context.Context, meterIdOrSlug MeterIdOrSlug, reqEditors ...RequestEditorFn) (*http.Response, error)
// QueryMeter request
QueryMeter(ctx context.Context, meterIdOrSlug MeterIdOrSlug, params *QueryMeterParams, reqEditors ...RequestEditorFn) (*http.Response, error)
// ListMeterSubjects request
ListMeterSubjects(ctx context.Context, meterIdOrSlug MeterIdOrSlug, reqEditors ...RequestEditorFn) (*http.Response, error)
// ListNotificationChannels request
ListNotificationChannels(ctx context.Context, params *ListNotificationChannelsParams, reqEditors ...RequestEditorFn) (*http.Response, error)
// CreateNotificationChannelWithBody request with any body
CreateNotificationChannelWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
CreateNotificationChannel(ctx context.Context, body CreateNotificationChannelJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// DeleteNotificationChannel request
DeleteNotificationChannel(ctx context.Context, channelId ChannelId, reqEditors ...RequestEditorFn) (*http.Response, error)
// GetNotificationChannel request
GetNotificationChannel(ctx context.Context, channelId ChannelId, reqEditors ...RequestEditorFn) (*http.Response, error)
// UpdateNotificationChannelWithBody request with any body
UpdateNotificationChannelWithBody(ctx context.Context, channelId ChannelId, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
UpdateNotificationChannel(ctx context.Context, channelId ChannelId, body UpdateNotificationChannelJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// ListNotificationEvents request
ListNotificationEvents(ctx context.Context, params *ListNotificationEventsParams, reqEditors ...RequestEditorFn) (*http.Response, error)
// CreateNotificationEventWithBody request with any body
CreateNotificationEventWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
CreateNotificationEvent(ctx context.Context, body CreateNotificationEventJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// GetNotificationEvent request
GetNotificationEvent(ctx context.Context, eventId EventId, reqEditors ...RequestEditorFn) (*http.Response, error)
// ListNotificationRules request
ListNotificationRules(ctx context.Context, params *ListNotificationRulesParams, reqEditors ...RequestEditorFn) (*http.Response, error)
// CreateNotificationRuleWithBody request with any body
CreateNotificationRuleWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
CreateNotificationRule(ctx context.Context, body CreateNotificationRuleJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// DeleteNotificationRule request
DeleteNotificationRule(ctx context.Context, ruleId RuleId, reqEditors ...RequestEditorFn) (*http.Response, error)
// GetNotificationRule request
GetNotificationRule(ctx context.Context, ruleId RuleId, reqEditors ...RequestEditorFn) (*http.Response, error)
// UpdateNotificationRuleWithBody request with any body
UpdateNotificationRuleWithBody(ctx context.Context, ruleId RuleId, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
UpdateNotificationRule(ctx context.Context, ruleId RuleId, body UpdateNotificationRuleJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// ReceiveSvixOperationalEventWithBody request with any body
ReceiveSvixOperationalEventWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
ReceiveSvixOperationalEvent(ctx context.Context, body ReceiveSvixOperationalEventJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// QueryPortalMeter request
QueryPortalMeter(ctx context.Context, meterSlug string, params *QueryPortalMeterParams, reqEditors ...RequestEditorFn) (*http.Response, error)
// ListPortalTokens request
ListPortalTokens(ctx context.Context, params *ListPortalTokensParams, reqEditors ...RequestEditorFn) (*http.Response, error)
// CreatePortalTokenWithBody request with any body
CreatePortalTokenWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
CreatePortalToken(ctx context.Context, body CreatePortalTokenJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// InvalidatePortalTokensWithBody request with any body
InvalidatePortalTokensWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
InvalidatePortalTokens(ctx context.Context, body InvalidatePortalTokensJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// ListSubjects request
ListSubjects(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
// UpsertSubjectWithBody request with any body
UpsertSubjectWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
UpsertSubject(ctx context.Context, body UpsertSubjectJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// DeleteSubject request
DeleteSubject(ctx context.Context, subjectIdOrKey SubjectIdOrKey, reqEditors ...RequestEditorFn) (*http.Response, error)
// GetSubject request
GetSubject(ctx context.Context, subjectIdOrKey SubjectIdOrKey, reqEditors ...RequestEditorFn) (*http.Response, error)
// ListSubjectEntitlements request
ListSubjectEntitlements(ctx context.Context, subjectIdOrKey SubjectIdOrKey, params *ListSubjectEntitlementsParams, reqEditors ...RequestEditorFn) (*http.Response, error)
// CreateEntitlementWithBody request with any body
CreateEntitlementWithBody(ctx context.Context, subjectIdOrKey SubjectIdOrKey, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
CreateEntitlement(ctx context.Context, subjectIdOrKey SubjectIdOrKey, body CreateEntitlementJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// ListEntitlementGrants request
ListEntitlementGrants(ctx context.Context, subjectIdOrKey SubjectIdOrKey, entitlementIdOrFeatureKey EntitlementIdOrFeatureKey, params *ListEntitlementGrantsParams, reqEditors ...RequestEditorFn) (*http.Response, error)
// CreateGrantWithBody request with any body
CreateGrantWithBody(ctx context.Context, subjectIdOrKey SubjectIdOrKey, entitlementIdOrFeatureKey EntitlementIdOrFeatureKey, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
CreateGrant(ctx context.Context, subjectIdOrKey SubjectIdOrKey, entitlementIdOrFeatureKey EntitlementIdOrFeatureKey, body CreateGrantJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// GetEntitlementValue request
GetEntitlementValue(ctx context.Context, subjectIdOrKey SubjectIdOrKey, entitlementIdOrFeatureKey EntitlementIdOrFeatureKey, params *GetEntitlementValueParams, reqEditors ...RequestEditorFn) (*http.Response, error)
// DeleteEntitlement request
DeleteEntitlement(ctx context.Context, subjectIdOrKey SubjectIdOrKey, entitlementId EntitlementId, reqEditors ...RequestEditorFn) (*http.Response, error)
// GetEntitlement request
GetEntitlement(ctx context.Context, subjectIdOrKey SubjectIdOrKey, entitlementId EntitlementId, reqEditors ...RequestEditorFn) (*http.Response, error)
// GetEntitlementHistory request
GetEntitlementHistory(ctx context.Context, subjectIdOrKey SubjectIdOrKey, entitlementId EntitlementId, params *GetEntitlementHistoryParams, reqEditors ...RequestEditorFn) (*http.Response, error)
// ResetEntitlementUsageWithBody request with any body
ResetEntitlementUsageWithBody(ctx context.Context, subjectIdOrKey SubjectIdOrKey, entitlementId EntitlementId, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
ResetEntitlementUsage(ctx context.Context, subjectIdOrKey SubjectIdOrKey, entitlementId EntitlementId, body ResetEntitlementUsageJSONRequestBody, 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 NewAuthClientWithResponses ¶
func NewAuthClientWithResponses(server string, apiSecret string, opts ...ClientOption) (*ClientWithResponses, error)
func NewClientWithResponses ¶
func NewClientWithResponses(server string, opts ...ClientOption) (*ClientWithResponses, error)
NewClientWithResponses creates a new ClientWithResponses, which wraps Client with return type handling
func (*ClientWithResponses) CreateEntitlementWithBodyWithResponse ¶
func (c *ClientWithResponses) CreateEntitlementWithBodyWithResponse(ctx context.Context, subjectIdOrKey SubjectIdOrKey, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateEntitlementResponse, error)
CreateEntitlementWithBodyWithResponse request with arbitrary body returning *CreateEntitlementResponse
func (*ClientWithResponses) CreateEntitlementWithResponse ¶
func (c *ClientWithResponses) CreateEntitlementWithResponse(ctx context.Context, subjectIdOrKey SubjectIdOrKey, body CreateEntitlementJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateEntitlementResponse, error)
func (*ClientWithResponses) CreateFeatureWithBodyWithResponse ¶
func (c *ClientWithResponses) CreateFeatureWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateFeatureResponse, error)
CreateFeatureWithBodyWithResponse request with arbitrary body returning *CreateFeatureResponse
func (*ClientWithResponses) CreateFeatureWithResponse ¶
func (c *ClientWithResponses) CreateFeatureWithResponse(ctx context.Context, body CreateFeatureJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateFeatureResponse, error)
func (*ClientWithResponses) CreateGrantWithBodyWithResponse ¶
func (c *ClientWithResponses) CreateGrantWithBodyWithResponse(ctx context.Context, subjectIdOrKey SubjectIdOrKey, entitlementIdOrFeatureKey EntitlementIdOrFeatureKey, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateGrantResponse, error)
CreateGrantWithBodyWithResponse request with arbitrary body returning *CreateGrantResponse
func (*ClientWithResponses) CreateGrantWithResponse ¶
func (c *ClientWithResponses) CreateGrantWithResponse(ctx context.Context, subjectIdOrKey SubjectIdOrKey, entitlementIdOrFeatureKey EntitlementIdOrFeatureKey, body CreateGrantJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateGrantResponse, error)
func (*ClientWithResponses) CreateMeterWithBodyWithResponse ¶
func (c *ClientWithResponses) CreateMeterWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateMeterResponse, error)
CreateMeterWithBodyWithResponse request with arbitrary body returning *CreateMeterResponse
func (*ClientWithResponses) CreateMeterWithResponse ¶
func (c *ClientWithResponses) CreateMeterWithResponse(ctx context.Context, body CreateMeterJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateMeterResponse, error)
func (*ClientWithResponses) CreateNotificationChannelWithBodyWithResponse ¶
func (c *ClientWithResponses) CreateNotificationChannelWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateNotificationChannelResponse, error)
CreateNotificationChannelWithBodyWithResponse request with arbitrary body returning *CreateNotificationChannelResponse
func (*ClientWithResponses) CreateNotificationChannelWithResponse ¶
func (c *ClientWithResponses) CreateNotificationChannelWithResponse(ctx context.Context, body CreateNotificationChannelJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateNotificationChannelResponse, error)
func (*ClientWithResponses) CreateNotificationEventWithBodyWithResponse ¶
func (c *ClientWithResponses) CreateNotificationEventWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateNotificationEventResponse, error)
CreateNotificationEventWithBodyWithResponse request with arbitrary body returning *CreateNotificationEventResponse
func (*ClientWithResponses) CreateNotificationEventWithResponse ¶
func (c *ClientWithResponses) CreateNotificationEventWithResponse(ctx context.Context, body CreateNotificationEventJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateNotificationEventResponse, error)
func (*ClientWithResponses) CreateNotificationRuleWithBodyWithResponse ¶
func (c *ClientWithResponses) CreateNotificationRuleWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateNotificationRuleResponse, error)
CreateNotificationRuleWithBodyWithResponse request with arbitrary body returning *CreateNotificationRuleResponse
func (*ClientWithResponses) CreateNotificationRuleWithResponse ¶
func (c *ClientWithResponses) CreateNotificationRuleWithResponse(ctx context.Context, body CreateNotificationRuleJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateNotificationRuleResponse, error)
func (*ClientWithResponses) CreatePortalTokenWithBodyWithResponse ¶
func (c *ClientWithResponses) CreatePortalTokenWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreatePortalTokenResponse, error)
CreatePortalTokenWithBodyWithResponse request with arbitrary body returning *CreatePortalTokenResponse
func (*ClientWithResponses) CreatePortalTokenWithResponse ¶
func (c *ClientWithResponses) CreatePortalTokenWithResponse(ctx context.Context, body CreatePortalTokenJSONRequestBody, reqEditors ...RequestEditorFn) (*CreatePortalTokenResponse, error)
func (*ClientWithResponses) DeleteEntitlementWithResponse ¶
func (c *ClientWithResponses) DeleteEntitlementWithResponse(ctx context.Context, subjectIdOrKey SubjectIdOrKey, entitlementId EntitlementId, reqEditors ...RequestEditorFn) (*DeleteEntitlementResponse, error)
DeleteEntitlementWithResponse request returning *DeleteEntitlementResponse
func (*ClientWithResponses) DeleteFeatureWithResponse ¶
func (c *ClientWithResponses) DeleteFeatureWithResponse(ctx context.Context, featureId FeatureId, reqEditors ...RequestEditorFn) (*DeleteFeatureResponse, error)
DeleteFeatureWithResponse request returning *DeleteFeatureResponse
func (*ClientWithResponses) DeleteMeterWithResponse ¶
func (c *ClientWithResponses) DeleteMeterWithResponse(ctx context.Context, meterIdOrSlug MeterIdOrSlug, reqEditors ...RequestEditorFn) (*DeleteMeterResponse, error)
DeleteMeterWithResponse request returning *DeleteMeterResponse
func (*ClientWithResponses) DeleteNotificationChannelWithResponse ¶
func (c *ClientWithResponses) DeleteNotificationChannelWithResponse(ctx context.Context, channelId ChannelId, reqEditors ...RequestEditorFn) (*DeleteNotificationChannelResponse, error)
DeleteNotificationChannelWithResponse request returning *DeleteNotificationChannelResponse
func (*ClientWithResponses) DeleteNotificationRuleWithResponse ¶
func (c *ClientWithResponses) DeleteNotificationRuleWithResponse(ctx context.Context, ruleId RuleId, reqEditors ...RequestEditorFn) (*DeleteNotificationRuleResponse, error)
DeleteNotificationRuleWithResponse request returning *DeleteNotificationRuleResponse
func (*ClientWithResponses) DeleteSubjectWithResponse ¶
func (c *ClientWithResponses) DeleteSubjectWithResponse(ctx context.Context, subjectIdOrKey SubjectIdOrKey, reqEditors ...RequestEditorFn) (*DeleteSubjectResponse, error)
DeleteSubjectWithResponse request returning *DeleteSubjectResponse
func (*ClientWithResponses) GetDebugMetricsWithResponse ¶
func (c *ClientWithResponses) GetDebugMetricsWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetDebugMetricsResponse, error)
GetDebugMetricsWithResponse request returning *GetDebugMetricsResponse
func (*ClientWithResponses) GetEntitlementByIdWithResponse ¶
func (c *ClientWithResponses) GetEntitlementByIdWithResponse(ctx context.Context, entitlementId EntitlementId, reqEditors ...RequestEditorFn) (*GetEntitlementByIdResponse, error)
GetEntitlementByIdWithResponse request returning *GetEntitlementByIdResponse
func (*ClientWithResponses) GetEntitlementHistoryWithResponse ¶
func (c *ClientWithResponses) GetEntitlementHistoryWithResponse(ctx context.Context, subjectIdOrKey SubjectIdOrKey, entitlementId EntitlementId, params *GetEntitlementHistoryParams, reqEditors ...RequestEditorFn) (*GetEntitlementHistoryResponse, error)
GetEntitlementHistoryWithResponse request returning *GetEntitlementHistoryResponse
func (*ClientWithResponses) GetEntitlementValueWithResponse ¶
func (c *ClientWithResponses) GetEntitlementValueWithResponse(ctx context.Context, subjectIdOrKey SubjectIdOrKey, entitlementIdOrFeatureKey EntitlementIdOrFeatureKey, params *GetEntitlementValueParams, reqEditors ...RequestEditorFn) (*GetEntitlementValueResponse, error)
GetEntitlementValueWithResponse request returning *GetEntitlementValueResponse
func (*ClientWithResponses) GetEntitlementWithResponse ¶
func (c *ClientWithResponses) GetEntitlementWithResponse(ctx context.Context, subjectIdOrKey SubjectIdOrKey, entitlementId EntitlementId, reqEditors ...RequestEditorFn) (*GetEntitlementResponse, error)
GetEntitlementWithResponse request returning *GetEntitlementResponse
func (*ClientWithResponses) GetFeatureWithResponse ¶
func (c *ClientWithResponses) GetFeatureWithResponse(ctx context.Context, featureId FeatureId, reqEditors ...RequestEditorFn) (*GetFeatureResponse, error)
GetFeatureWithResponse request returning *GetFeatureResponse
func (*ClientWithResponses) GetMeterWithResponse ¶
func (c *ClientWithResponses) GetMeterWithResponse(ctx context.Context, meterIdOrSlug MeterIdOrSlug, reqEditors ...RequestEditorFn) (*GetMeterResponse, error)
GetMeterWithResponse request returning *GetMeterResponse
func (*ClientWithResponses) GetNotificationChannelWithResponse ¶
func (c *ClientWithResponses) GetNotificationChannelWithResponse(ctx context.Context, channelId ChannelId, reqEditors ...RequestEditorFn) (*GetNotificationChannelResponse, error)
GetNotificationChannelWithResponse request returning *GetNotificationChannelResponse
func (*ClientWithResponses) GetNotificationEventWithResponse ¶
func (c *ClientWithResponses) GetNotificationEventWithResponse(ctx context.Context, eventId EventId, reqEditors ...RequestEditorFn) (*GetNotificationEventResponse, error)
GetNotificationEventWithResponse request returning *GetNotificationEventResponse
func (*ClientWithResponses) GetNotificationRuleWithResponse ¶
func (c *ClientWithResponses) GetNotificationRuleWithResponse(ctx context.Context, ruleId RuleId, reqEditors ...RequestEditorFn) (*GetNotificationRuleResponse, error)
GetNotificationRuleWithResponse request returning *GetNotificationRuleResponse
func (*ClientWithResponses) GetSubjectWithResponse ¶
func (c *ClientWithResponses) GetSubjectWithResponse(ctx context.Context, subjectIdOrKey SubjectIdOrKey, reqEditors ...RequestEditorFn) (*GetSubjectResponse, error)
GetSubjectWithResponse request returning *GetSubjectResponse
func (*ClientWithResponses) IngestEventBatchWithResponse ¶
func (c *ClientWithResponses) IngestEventBatchWithResponse(ctx context.Context, events []Event, reqEditors ...RequestEditorFn) (*IngestEventsResponse, error)
IngestEventsWithResponse is a wrapper around generated client's IngestEventsWithApplicationCloudeventsBatchPlusJSONBodyWithResponse
func (*ClientWithResponses) IngestEventWithResponse ¶
func (c *ClientWithResponses) IngestEventWithResponse(ctx context.Context, event Event, reqEditors ...RequestEditorFn) (*IngestEventsResponse, error)
IngestEventsWithResponse is a wrapper around generated client's IngestEventsWithApplicationCloudeventsPlusJSONBodyWithResponse
func (*ClientWithResponses) IngestEventsWithApplicationCloudeventsBatchPlusJSONBodyWithResponse ¶
func (c *ClientWithResponses) IngestEventsWithApplicationCloudeventsBatchPlusJSONBodyWithResponse(ctx context.Context, body IngestEventsApplicationCloudeventsBatchPlusJSONRequestBody, reqEditors ...RequestEditorFn) (*IngestEventsResponse, error)
func (*ClientWithResponses) IngestEventsWithApplicationCloudeventsPlusJSONBodyWithResponse ¶
func (c *ClientWithResponses) IngestEventsWithApplicationCloudeventsPlusJSONBodyWithResponse(ctx context.Context, body IngestEventsApplicationCloudeventsPlusJSONRequestBody, reqEditors ...RequestEditorFn) (*IngestEventsResponse, error)
func (*ClientWithResponses) IngestEventsWithBodyWithResponse ¶
func (c *ClientWithResponses) IngestEventsWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*IngestEventsResponse, error)
IngestEventsWithBodyWithResponse request with arbitrary body returning *IngestEventsResponse
func (*ClientWithResponses) InvalidatePortalTokensWithBodyWithResponse ¶
func (c *ClientWithResponses) InvalidatePortalTokensWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*InvalidatePortalTokensResponse, error)
InvalidatePortalTokensWithBodyWithResponse request with arbitrary body returning *InvalidatePortalTokensResponse
func (*ClientWithResponses) InvalidatePortalTokensWithResponse ¶
func (c *ClientWithResponses) InvalidatePortalTokensWithResponse(ctx context.Context, body InvalidatePortalTokensJSONRequestBody, reqEditors ...RequestEditorFn) (*InvalidatePortalTokensResponse, error)
func (*ClientWithResponses) ListEntitlementGrantsWithResponse ¶
func (c *ClientWithResponses) ListEntitlementGrantsWithResponse(ctx context.Context, subjectIdOrKey SubjectIdOrKey, entitlementIdOrFeatureKey EntitlementIdOrFeatureKey, params *ListEntitlementGrantsParams, reqEditors ...RequestEditorFn) (*ListEntitlementGrantsResponse, error)
ListEntitlementGrantsWithResponse request returning *ListEntitlementGrantsResponse
func (*ClientWithResponses) ListEntitlementsWithResponse ¶
func (c *ClientWithResponses) ListEntitlementsWithResponse(ctx context.Context, params *ListEntitlementsParams, reqEditors ...RequestEditorFn) (*ListEntitlementsResponse, error)
ListEntitlementsWithResponse request returning *ListEntitlementsResponse
func (*ClientWithResponses) ListEventsWithResponse ¶
func (c *ClientWithResponses) ListEventsWithResponse(ctx context.Context, params *ListEventsParams, reqEditors ...RequestEditorFn) (*ListEventsResponse, error)
ListEventsWithResponse request returning *ListEventsResponse
func (*ClientWithResponses) ListFeaturesWithResponse ¶
func (c *ClientWithResponses) ListFeaturesWithResponse(ctx context.Context, params *ListFeaturesParams, reqEditors ...RequestEditorFn) (*ListFeaturesResponse, error)
ListFeaturesWithResponse request returning *ListFeaturesResponse
func (*ClientWithResponses) ListGrantsWithResponse ¶
func (c *ClientWithResponses) ListGrantsWithResponse(ctx context.Context, params *ListGrantsParams, reqEditors ...RequestEditorFn) (*ListGrantsResponse, error)
ListGrantsWithResponse request returning *ListGrantsResponse
func (*ClientWithResponses) ListMeterSubjectsWithResponse ¶
func (c *ClientWithResponses) ListMeterSubjectsWithResponse(ctx context.Context, meterIdOrSlug MeterIdOrSlug, reqEditors ...RequestEditorFn) (*ListMeterSubjectsResponse, error)
ListMeterSubjectsWithResponse request returning *ListMeterSubjectsResponse
func (*ClientWithResponses) ListMetersWithResponse ¶
func (c *ClientWithResponses) ListMetersWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*ListMetersResponse, error)
ListMetersWithResponse request returning *ListMetersResponse
func (*ClientWithResponses) ListNotificationChannelsWithResponse ¶
func (c *ClientWithResponses) ListNotificationChannelsWithResponse(ctx context.Context, params *ListNotificationChannelsParams, reqEditors ...RequestEditorFn) (*ListNotificationChannelsResponse, error)
ListNotificationChannelsWithResponse request returning *ListNotificationChannelsResponse
func (*ClientWithResponses) ListNotificationEventsWithResponse ¶
func (c *ClientWithResponses) ListNotificationEventsWithResponse(ctx context.Context, params *ListNotificationEventsParams, reqEditors ...RequestEditorFn) (*ListNotificationEventsResponse, error)
ListNotificationEventsWithResponse request returning *ListNotificationEventsResponse
func (*ClientWithResponses) ListNotificationRulesWithResponse ¶
func (c *ClientWithResponses) ListNotificationRulesWithResponse(ctx context.Context, params *ListNotificationRulesParams, reqEditors ...RequestEditorFn) (*ListNotificationRulesResponse, error)
ListNotificationRulesWithResponse request returning *ListNotificationRulesResponse
func (*ClientWithResponses) ListPortalTokensWithResponse ¶
func (c *ClientWithResponses) ListPortalTokensWithResponse(ctx context.Context, params *ListPortalTokensParams, reqEditors ...RequestEditorFn) (*ListPortalTokensResponse, error)
ListPortalTokensWithResponse request returning *ListPortalTokensResponse
func (*ClientWithResponses) ListSubjectEntitlementsWithResponse ¶
func (c *ClientWithResponses) ListSubjectEntitlementsWithResponse(ctx context.Context, subjectIdOrKey SubjectIdOrKey, params *ListSubjectEntitlementsParams, reqEditors ...RequestEditorFn) (*ListSubjectEntitlementsResponse, error)
ListSubjectEntitlementsWithResponse request returning *ListSubjectEntitlementsResponse
func (*ClientWithResponses) ListSubjectsWithResponse ¶
func (c *ClientWithResponses) ListSubjectsWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*ListSubjectsResponse, error)
ListSubjectsWithResponse request returning *ListSubjectsResponse
func (*ClientWithResponses) QueryMeterWithResponse ¶
func (c *ClientWithResponses) QueryMeterWithResponse(ctx context.Context, meterIdOrSlug MeterIdOrSlug, params *QueryMeterParams, reqEditors ...RequestEditorFn) (*QueryMeterResponse, error)
QueryMeterWithResponse request returning *QueryMeterResponse
func (*ClientWithResponses) QueryPortalMeterWithResponse ¶
func (c *ClientWithResponses) QueryPortalMeterWithResponse(ctx context.Context, meterSlug string, params *QueryPortalMeterParams, reqEditors ...RequestEditorFn) (*QueryPortalMeterResponse, error)
QueryPortalMeterWithResponse request returning *QueryPortalMeterResponse
func (*ClientWithResponses) ReceiveSvixOperationalEventWithBodyWithResponse ¶
func (c *ClientWithResponses) ReceiveSvixOperationalEventWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ReceiveSvixOperationalEventResponse, error)
ReceiveSvixOperationalEventWithBodyWithResponse request with arbitrary body returning *ReceiveSvixOperationalEventResponse
func (*ClientWithResponses) ReceiveSvixOperationalEventWithResponse ¶
func (c *ClientWithResponses) ReceiveSvixOperationalEventWithResponse(ctx context.Context, body ReceiveSvixOperationalEventJSONRequestBody, reqEditors ...RequestEditorFn) (*ReceiveSvixOperationalEventResponse, error)
func (*ClientWithResponses) ResetEntitlementUsageWithBodyWithResponse ¶
func (c *ClientWithResponses) ResetEntitlementUsageWithBodyWithResponse(ctx context.Context, subjectIdOrKey SubjectIdOrKey, entitlementId EntitlementId, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ResetEntitlementUsageResponse, error)
ResetEntitlementUsageWithBodyWithResponse request with arbitrary body returning *ResetEntitlementUsageResponse
func (*ClientWithResponses) ResetEntitlementUsageWithResponse ¶
func (c *ClientWithResponses) ResetEntitlementUsageWithResponse(ctx context.Context, subjectIdOrKey SubjectIdOrKey, entitlementId EntitlementId, body ResetEntitlementUsageJSONRequestBody, reqEditors ...RequestEditorFn) (*ResetEntitlementUsageResponse, error)
func (*ClientWithResponses) UpdateNotificationChannelWithBodyWithResponse ¶
func (c *ClientWithResponses) UpdateNotificationChannelWithBodyWithResponse(ctx context.Context, channelId ChannelId, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateNotificationChannelResponse, error)
UpdateNotificationChannelWithBodyWithResponse request with arbitrary body returning *UpdateNotificationChannelResponse
func (*ClientWithResponses) UpdateNotificationChannelWithResponse ¶
func (c *ClientWithResponses) UpdateNotificationChannelWithResponse(ctx context.Context, channelId ChannelId, body UpdateNotificationChannelJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateNotificationChannelResponse, error)
func (*ClientWithResponses) UpdateNotificationRuleWithBodyWithResponse ¶
func (c *ClientWithResponses) UpdateNotificationRuleWithBodyWithResponse(ctx context.Context, ruleId RuleId, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateNotificationRuleResponse, error)
UpdateNotificationRuleWithBodyWithResponse request with arbitrary body returning *UpdateNotificationRuleResponse
func (*ClientWithResponses) UpdateNotificationRuleWithResponse ¶
func (c *ClientWithResponses) UpdateNotificationRuleWithResponse(ctx context.Context, ruleId RuleId, body UpdateNotificationRuleJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateNotificationRuleResponse, error)
func (*ClientWithResponses) UpsertSubjectWithBodyWithResponse ¶
func (c *ClientWithResponses) UpsertSubjectWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpsertSubjectResponse, error)
UpsertSubjectWithBodyWithResponse request with arbitrary body returning *UpsertSubjectResponse
func (*ClientWithResponses) UpsertSubjectWithResponse ¶
func (c *ClientWithResponses) UpsertSubjectWithResponse(ctx context.Context, body UpsertSubjectJSONRequestBody, reqEditors ...RequestEditorFn) (*UpsertSubjectResponse, error)
func (*ClientWithResponses) VoidGrantWithResponse ¶
func (c *ClientWithResponses) VoidGrantWithResponse(ctx context.Context, grantId GrantId, reqEditors ...RequestEditorFn) (*VoidGrantResponse, error)
VoidGrantWithResponse request returning *VoidGrantResponse
type ClientWithResponsesInterface ¶
type ClientWithResponsesInterface interface {
// GetDebugMetricsWithResponse request
GetDebugMetricsWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetDebugMetricsResponse, error)
// ListEntitlementsWithResponse request
ListEntitlementsWithResponse(ctx context.Context, params *ListEntitlementsParams, reqEditors ...RequestEditorFn) (*ListEntitlementsResponse, error)
// GetEntitlementByIdWithResponse request
GetEntitlementByIdWithResponse(ctx context.Context, entitlementId EntitlementId, reqEditors ...RequestEditorFn) (*GetEntitlementByIdResponse, error)
// ListEventsWithResponse request
ListEventsWithResponse(ctx context.Context, params *ListEventsParams, reqEditors ...RequestEditorFn) (*ListEventsResponse, error)
// IngestEventsWithBodyWithResponse request with any body
IngestEventsWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*IngestEventsResponse, error)
IngestEventsWithApplicationCloudeventsPlusJSONBodyWithResponse(ctx context.Context, body IngestEventsApplicationCloudeventsPlusJSONRequestBody, reqEditors ...RequestEditorFn) (*IngestEventsResponse, error)
IngestEventsWithApplicationCloudeventsBatchPlusJSONBodyWithResponse(ctx context.Context, body IngestEventsApplicationCloudeventsBatchPlusJSONRequestBody, reqEditors ...RequestEditorFn) (*IngestEventsResponse, error)
// ListFeaturesWithResponse request
ListFeaturesWithResponse(ctx context.Context, params *ListFeaturesParams, reqEditors ...RequestEditorFn) (*ListFeaturesResponse, error)
// CreateFeatureWithBodyWithResponse request with any body
CreateFeatureWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateFeatureResponse, error)
CreateFeatureWithResponse(ctx context.Context, body CreateFeatureJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateFeatureResponse, error)
// DeleteFeatureWithResponse request
DeleteFeatureWithResponse(ctx context.Context, featureId FeatureId, reqEditors ...RequestEditorFn) (*DeleteFeatureResponse, error)
// GetFeatureWithResponse request
GetFeatureWithResponse(ctx context.Context, featureId FeatureId, reqEditors ...RequestEditorFn) (*GetFeatureResponse, error)
// ListGrantsWithResponse request
ListGrantsWithResponse(ctx context.Context, params *ListGrantsParams, reqEditors ...RequestEditorFn) (*ListGrantsResponse, error)
// VoidGrantWithResponse request
VoidGrantWithResponse(ctx context.Context, grantId GrantId, reqEditors ...RequestEditorFn) (*VoidGrantResponse, error)
// ListMetersWithResponse request
ListMetersWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*ListMetersResponse, error)
// CreateMeterWithBodyWithResponse request with any body
CreateMeterWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateMeterResponse, error)
CreateMeterWithResponse(ctx context.Context, body CreateMeterJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateMeterResponse, error)
// DeleteMeterWithResponse request
DeleteMeterWithResponse(ctx context.Context, meterIdOrSlug MeterIdOrSlug, reqEditors ...RequestEditorFn) (*DeleteMeterResponse, error)
// GetMeterWithResponse request
GetMeterWithResponse(ctx context.Context, meterIdOrSlug MeterIdOrSlug, reqEditors ...RequestEditorFn) (*GetMeterResponse, error)
// QueryMeterWithResponse request
QueryMeterWithResponse(ctx context.Context, meterIdOrSlug MeterIdOrSlug, params *QueryMeterParams, reqEditors ...RequestEditorFn) (*QueryMeterResponse, error)
// ListMeterSubjectsWithResponse request
ListMeterSubjectsWithResponse(ctx context.Context, meterIdOrSlug MeterIdOrSlug, reqEditors ...RequestEditorFn) (*ListMeterSubjectsResponse, error)
// ListNotificationChannelsWithResponse request
ListNotificationChannelsWithResponse(ctx context.Context, params *ListNotificationChannelsParams, reqEditors ...RequestEditorFn) (*ListNotificationChannelsResponse, error)
// CreateNotificationChannelWithBodyWithResponse request with any body
CreateNotificationChannelWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateNotificationChannelResponse, error)
CreateNotificationChannelWithResponse(ctx context.Context, body CreateNotificationChannelJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateNotificationChannelResponse, error)
// DeleteNotificationChannelWithResponse request
DeleteNotificationChannelWithResponse(ctx context.Context, channelId ChannelId, reqEditors ...RequestEditorFn) (*DeleteNotificationChannelResponse, error)
// GetNotificationChannelWithResponse request
GetNotificationChannelWithResponse(ctx context.Context, channelId ChannelId, reqEditors ...RequestEditorFn) (*GetNotificationChannelResponse, error)
// UpdateNotificationChannelWithBodyWithResponse request with any body
UpdateNotificationChannelWithBodyWithResponse(ctx context.Context, channelId ChannelId, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateNotificationChannelResponse, error)
UpdateNotificationChannelWithResponse(ctx context.Context, channelId ChannelId, body UpdateNotificationChannelJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateNotificationChannelResponse, error)
// ListNotificationEventsWithResponse request
ListNotificationEventsWithResponse(ctx context.Context, params *ListNotificationEventsParams, reqEditors ...RequestEditorFn) (*ListNotificationEventsResponse, error)
// CreateNotificationEventWithBodyWithResponse request with any body
CreateNotificationEventWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateNotificationEventResponse, error)
CreateNotificationEventWithResponse(ctx context.Context, body CreateNotificationEventJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateNotificationEventResponse, error)
// GetNotificationEventWithResponse request
GetNotificationEventWithResponse(ctx context.Context, eventId EventId, reqEditors ...RequestEditorFn) (*GetNotificationEventResponse, error)
// ListNotificationRulesWithResponse request
ListNotificationRulesWithResponse(ctx context.Context, params *ListNotificationRulesParams, reqEditors ...RequestEditorFn) (*ListNotificationRulesResponse, error)
// CreateNotificationRuleWithBodyWithResponse request with any body
CreateNotificationRuleWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateNotificationRuleResponse, error)
CreateNotificationRuleWithResponse(ctx context.Context, body CreateNotificationRuleJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateNotificationRuleResponse, error)
// DeleteNotificationRuleWithResponse request
DeleteNotificationRuleWithResponse(ctx context.Context, ruleId RuleId, reqEditors ...RequestEditorFn) (*DeleteNotificationRuleResponse, error)
// GetNotificationRuleWithResponse request
GetNotificationRuleWithResponse(ctx context.Context, ruleId RuleId, reqEditors ...RequestEditorFn) (*GetNotificationRuleResponse, error)
// UpdateNotificationRuleWithBodyWithResponse request with any body
UpdateNotificationRuleWithBodyWithResponse(ctx context.Context, ruleId RuleId, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateNotificationRuleResponse, error)
UpdateNotificationRuleWithResponse(ctx context.Context, ruleId RuleId, body UpdateNotificationRuleJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateNotificationRuleResponse, error)
// ReceiveSvixOperationalEventWithBodyWithResponse request with any body
ReceiveSvixOperationalEventWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ReceiveSvixOperationalEventResponse, error)
ReceiveSvixOperationalEventWithResponse(ctx context.Context, body ReceiveSvixOperationalEventJSONRequestBody, reqEditors ...RequestEditorFn) (*ReceiveSvixOperationalEventResponse, error)
// QueryPortalMeterWithResponse request
QueryPortalMeterWithResponse(ctx context.Context, meterSlug string, params *QueryPortalMeterParams, reqEditors ...RequestEditorFn) (*QueryPortalMeterResponse, error)
// ListPortalTokensWithResponse request
ListPortalTokensWithResponse(ctx context.Context, params *ListPortalTokensParams, reqEditors ...RequestEditorFn) (*ListPortalTokensResponse, error)
// CreatePortalTokenWithBodyWithResponse request with any body
CreatePortalTokenWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreatePortalTokenResponse, error)
CreatePortalTokenWithResponse(ctx context.Context, body CreatePortalTokenJSONRequestBody, reqEditors ...RequestEditorFn) (*CreatePortalTokenResponse, error)
// InvalidatePortalTokensWithBodyWithResponse request with any body
InvalidatePortalTokensWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*InvalidatePortalTokensResponse, error)
InvalidatePortalTokensWithResponse(ctx context.Context, body InvalidatePortalTokensJSONRequestBody, reqEditors ...RequestEditorFn) (*InvalidatePortalTokensResponse, error)
// ListSubjectsWithResponse request
ListSubjectsWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*ListSubjectsResponse, error)
// UpsertSubjectWithBodyWithResponse request with any body
UpsertSubjectWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpsertSubjectResponse, error)
UpsertSubjectWithResponse(ctx context.Context, body UpsertSubjectJSONRequestBody, reqEditors ...RequestEditorFn) (*UpsertSubjectResponse, error)
// DeleteSubjectWithResponse request
DeleteSubjectWithResponse(ctx context.Context, subjectIdOrKey SubjectIdOrKey, reqEditors ...RequestEditorFn) (*DeleteSubjectResponse, error)
// GetSubjectWithResponse request
GetSubjectWithResponse(ctx context.Context, subjectIdOrKey SubjectIdOrKey, reqEditors ...RequestEditorFn) (*GetSubjectResponse, error)
// ListSubjectEntitlementsWithResponse request
ListSubjectEntitlementsWithResponse(ctx context.Context, subjectIdOrKey SubjectIdOrKey, params *ListSubjectEntitlementsParams, reqEditors ...RequestEditorFn) (*ListSubjectEntitlementsResponse, error)
// CreateEntitlementWithBodyWithResponse request with any body
CreateEntitlementWithBodyWithResponse(ctx context.Context, subjectIdOrKey SubjectIdOrKey, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateEntitlementResponse, error)
CreateEntitlementWithResponse(ctx context.Context, subjectIdOrKey SubjectIdOrKey, body CreateEntitlementJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateEntitlementResponse, error)
// ListEntitlementGrantsWithResponse request
ListEntitlementGrantsWithResponse(ctx context.Context, subjectIdOrKey SubjectIdOrKey, entitlementIdOrFeatureKey EntitlementIdOrFeatureKey, params *ListEntitlementGrantsParams, reqEditors ...RequestEditorFn) (*ListEntitlementGrantsResponse, error)
// CreateGrantWithBodyWithResponse request with any body
CreateGrantWithBodyWithResponse(ctx context.Context, subjectIdOrKey SubjectIdOrKey, entitlementIdOrFeatureKey EntitlementIdOrFeatureKey, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateGrantResponse, error)
CreateGrantWithResponse(ctx context.Context, subjectIdOrKey SubjectIdOrKey, entitlementIdOrFeatureKey EntitlementIdOrFeatureKey, body CreateGrantJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateGrantResponse, error)
// GetEntitlementValueWithResponse request
GetEntitlementValueWithResponse(ctx context.Context, subjectIdOrKey SubjectIdOrKey, entitlementIdOrFeatureKey EntitlementIdOrFeatureKey, params *GetEntitlementValueParams, reqEditors ...RequestEditorFn) (*GetEntitlementValueResponse, error)
// DeleteEntitlementWithResponse request
DeleteEntitlementWithResponse(ctx context.Context, subjectIdOrKey SubjectIdOrKey, entitlementId EntitlementId, reqEditors ...RequestEditorFn) (*DeleteEntitlementResponse, error)
// GetEntitlementWithResponse request
GetEntitlementWithResponse(ctx context.Context, subjectIdOrKey SubjectIdOrKey, entitlementId EntitlementId, reqEditors ...RequestEditorFn) (*GetEntitlementResponse, error)
// GetEntitlementHistoryWithResponse request
GetEntitlementHistoryWithResponse(ctx context.Context, subjectIdOrKey SubjectIdOrKey, entitlementId EntitlementId, params *GetEntitlementHistoryParams, reqEditors ...RequestEditorFn) (*GetEntitlementHistoryResponse, error)
// ResetEntitlementUsageWithBodyWithResponse request with any body
ResetEntitlementUsageWithBodyWithResponse(ctx context.Context, subjectIdOrKey SubjectIdOrKey, entitlementId EntitlementId, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ResetEntitlementUsageResponse, error)
ResetEntitlementUsageWithResponse(ctx context.Context, subjectIdOrKey SubjectIdOrKey, entitlementId EntitlementId, body ResetEntitlementUsageJSONRequestBody, reqEditors ...RequestEditorFn) (*ResetEntitlementUsageResponse, error)
}
ClientWithResponsesInterface is the interface specification for the client with responses above.
type ConflictProblem ¶
type ConflictProblem struct {
// Detail A human-readable explanation specific to this occurrence of the problem.
Detail string `json:"detail"`
Extensions *struct {
// ConflictingEntityId The id of the conflicting entity.
ConflictingEntityId string `json:"conflictingEntityId"`
} `json:"extensions,omitempty"`
// Instance A URI reference that identifies the specific occurrence of the problem.
Instance *string `json:"instance,omitempty"`
// Status The HTTP status code generated by the origin server for this occurrence of the problem.
Status int32 `json:"status"`
// Title A a short, human-readable summary of the problem type.
Title string `json:"title"`
// Type Type contains a URI that identifies the problem type.
Type string `json:"type"`
AdditionalProperties map[string]interface{} `json:"-"`
}
ConflictProblem Conflict
func (ConflictProblem) Get ¶
func (a ConflictProblem) Get(fieldName string) (value interface{}, found bool)
Getter for additional properties for ConflictProblem. Returns the specified element and whether it was found
func (ConflictProblem) MarshalJSON ¶
func (a ConflictProblem) MarshalJSON() ([]byte, error)
Override default JSON handling for ConflictProblem to handle AdditionalProperties
func (*ConflictProblem) Set ¶
func (a *ConflictProblem) Set(fieldName string, value interface{})
Setter for additional properties for ConflictProblem
func (*ConflictProblem) UnmarshalJSON ¶
func (a *ConflictProblem) UnmarshalJSON(b []byte) error
Override default JSON handling for ConflictProblem to handle AdditionalProperties
type ConflictProblemResponse ¶
type ConflictProblemResponse = ConflictProblem
ConflictProblemResponse Conflict
type CreateEntitlementJSONRequestBody ¶
type CreateEntitlementJSONRequestBody = EntitlementCreateInputs
CreateEntitlementJSONRequestBody defines body for CreateEntitlement for application/json ContentType.
type CreateEntitlementResponse ¶
type CreateEntitlementResponse struct {
Body []byte
HTTPResponse *http.Response
JSON201 *Entitlement
ApplicationproblemJSON400 *BadRequestProblemResponse
ApplicationproblemJSON401 *UnauthorizedProblemResponse
ApplicationproblemJSON409 *ConflictProblemResponse
ApplicationproblemJSON501 *NotImplementedProblemResponse
ApplicationproblemJSONDefault *UnexpectedProblemResponse
}
func ParseCreateEntitlementResponse ¶
func ParseCreateEntitlementResponse(rsp *http.Response) (*CreateEntitlementResponse, error)
ParseCreateEntitlementResponse parses an HTTP response from a CreateEntitlementWithResponse call
func (CreateEntitlementResponse) Status ¶
func (r CreateEntitlementResponse) Status() string
Status returns HTTPResponse.Status
func (CreateEntitlementResponse) StatusCode ¶
func (r CreateEntitlementResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type CreateFeatureJSONRequestBody ¶
type CreateFeatureJSONRequestBody = FeatureCreateInputs
CreateFeatureJSONRequestBody defines body for CreateFeature for application/json ContentType.
type CreateFeatureResponse ¶
type CreateFeatureResponse struct {
Body []byte
HTTPResponse *http.Response
JSON201 *Feature
ApplicationproblemJSON400 *BadRequestProblemResponse
ApplicationproblemJSON401 *UnauthorizedProblemResponse
ApplicationproblemJSON501 *NotImplementedProblemResponse
ApplicationproblemJSONDefault *UnexpectedProblemResponse
}
func ParseCreateFeatureResponse ¶
func ParseCreateFeatureResponse(rsp *http.Response) (*CreateFeatureResponse, error)
ParseCreateFeatureResponse parses an HTTP response from a CreateFeatureWithResponse call
func (CreateFeatureResponse) Status ¶
func (r CreateFeatureResponse) Status() string
Status returns HTTPResponse.Status
func (CreateFeatureResponse) StatusCode ¶
func (r CreateFeatureResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type CreateGrantJSONRequestBody ¶
type CreateGrantJSONRequestBody = EntitlementGrantCreateInput
CreateGrantJSONRequestBody defines body for CreateGrant for application/json ContentType.
type CreateGrantResponse ¶
type CreateGrantResponse struct {
Body []byte
HTTPResponse *http.Response
JSON201 *EntitlementGrant
ApplicationproblemJSON400 *BadRequestProblemResponse
ApplicationproblemJSON401 *UnauthorizedProblemResponse
ApplicationproblemJSON501 *NotImplementedProblemResponse
ApplicationproblemJSONDefault *UnexpectedProblemResponse
}
func ParseCreateGrantResponse ¶
func ParseCreateGrantResponse(rsp *http.Response) (*CreateGrantResponse, error)
ParseCreateGrantResponse parses an HTTP response from a CreateGrantWithResponse call
func (CreateGrantResponse) Status ¶
func (r CreateGrantResponse) Status() string
Status returns HTTPResponse.Status
func (CreateGrantResponse) StatusCode ¶
func (r CreateGrantResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type CreateMeterJSONRequestBody ¶
type CreateMeterJSONRequestBody = Meter
CreateMeterJSONRequestBody defines body for CreateMeter for application/json ContentType.
type CreateMeterResponse ¶
type CreateMeterResponse struct {
Body []byte
HTTPResponse *http.Response
JSON201 *Meter
ApplicationproblemJSON400 *BadRequestProblemResponse
ApplicationproblemJSON401 *UnauthorizedProblemResponse
ApplicationproblemJSON501 *NotImplementedProblemResponse
ApplicationproblemJSONDefault *UnexpectedProblemResponse
}
func ParseCreateMeterResponse ¶
func ParseCreateMeterResponse(rsp *http.Response) (*CreateMeterResponse, error)
ParseCreateMeterResponse parses an HTTP response from a CreateMeterWithResponse call
func (CreateMeterResponse) Status ¶
func (r CreateMeterResponse) Status() string
Status returns HTTPResponse.Status
func (CreateMeterResponse) StatusCode ¶
func (r CreateMeterResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type CreateNotificationChannelJSONRequestBody ¶
type CreateNotificationChannelJSONRequestBody = NotificationChannelCreateRequest
CreateNotificationChannelJSONRequestBody defines body for CreateNotificationChannel for application/json ContentType.
type CreateNotificationChannelResponse ¶
type CreateNotificationChannelResponse struct {
Body []byte
HTTPResponse *http.Response
JSON201 *NotificationChannel
ApplicationproblemJSON400 *BadRequestProblemResponse
ApplicationproblemJSON401 *UnauthorizedProblemResponse
ApplicationproblemJSON409 *ConflictProblemResponse
ApplicationproblemJSONDefault *UnexpectedProblemResponse
}
func ParseCreateNotificationChannelResponse ¶
func ParseCreateNotificationChannelResponse(rsp *http.Response) (*CreateNotificationChannelResponse, error)
ParseCreateNotificationChannelResponse parses an HTTP response from a CreateNotificationChannelWithResponse call
func (CreateNotificationChannelResponse) Status ¶
func (r CreateNotificationChannelResponse) Status() string
Status returns HTTPResponse.Status
func (CreateNotificationChannelResponse) StatusCode ¶
func (r CreateNotificationChannelResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type CreateNotificationEventJSONRequestBody ¶
type CreateNotificationEventJSONRequestBody = NotificationEventCreateRequest
CreateNotificationEventJSONRequestBody defines body for CreateNotificationEvent for application/json ContentType.
type CreateNotificationEventResponse ¶
type CreateNotificationEventResponse struct {
Body []byte
HTTPResponse *http.Response
JSON201 *struct {
// contains filtered or unexported fields
}
ApplicationproblemJSON400 *BadRequestProblemResponse
ApplicationproblemJSON401 *UnauthorizedProblemResponse
ApplicationproblemJSON409 *ConflictProblemResponse
ApplicationproblemJSON501 *NotImplementedProblemResponse
ApplicationproblemJSONDefault *UnexpectedProblemResponse
}
func ParseCreateNotificationEventResponse ¶
func ParseCreateNotificationEventResponse(rsp *http.Response) (*CreateNotificationEventResponse, error)
ParseCreateNotificationEventResponse parses an HTTP response from a CreateNotificationEventWithResponse call
func (CreateNotificationEventResponse) Status ¶
func (r CreateNotificationEventResponse) Status() string
Status returns HTTPResponse.Status
func (CreateNotificationEventResponse) StatusCode ¶
func (r CreateNotificationEventResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type CreateNotificationRuleJSONRequestBody ¶
type CreateNotificationRuleJSONRequestBody = NotificationRuleCreateRequest
CreateNotificationRuleJSONRequestBody defines body for CreateNotificationRule for application/json ContentType.
type CreateNotificationRuleResponse ¶
type CreateNotificationRuleResponse struct {
Body []byte
HTTPResponse *http.Response
JSON201 *NotificationRule
ApplicationproblemJSON400 *BadRequestProblemResponse
ApplicationproblemJSON401 *UnauthorizedProblemResponse
ApplicationproblemJSON409 *ConflictProblemResponse
ApplicationproblemJSONDefault *UnexpectedProblemResponse
}
func ParseCreateNotificationRuleResponse ¶
func ParseCreateNotificationRuleResponse(rsp *http.Response) (*CreateNotificationRuleResponse, error)
ParseCreateNotificationRuleResponse parses an HTTP response from a CreateNotificationRuleWithResponse call
func (CreateNotificationRuleResponse) Status ¶
func (r CreateNotificationRuleResponse) Status() string
Status returns HTTPResponse.Status
func (CreateNotificationRuleResponse) StatusCode ¶
func (r CreateNotificationRuleResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type CreatePortalTokenJSONRequestBody ¶
type CreatePortalTokenJSONRequestBody = PortalToken
CreatePortalTokenJSONRequestBody defines body for CreatePortalToken for application/json ContentType.
type CreatePortalTokenResponse ¶
type CreatePortalTokenResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *PortalToken
ApplicationproblemJSON400 *BadRequestProblemResponse
ApplicationproblemJSON401 *UnauthorizedProblemResponse
ApplicationproblemJSONDefault *UnexpectedProblemResponse
}
func ParseCreatePortalTokenResponse ¶
func ParseCreatePortalTokenResponse(rsp *http.Response) (*CreatePortalTokenResponse, error)
ParseCreatePortalTokenResponse parses an HTTP response from a CreatePortalTokenWithResponse call
func (CreatePortalTokenResponse) Status ¶
func (r CreatePortalTokenResponse) Status() string
Status returns HTTPResponse.Status
func (CreatePortalTokenResponse) StatusCode ¶
func (r CreatePortalTokenResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type DeleteEntitlementResponse ¶
type DeleteEntitlementResponse struct {
Body []byte
HTTPResponse *http.Response
ApplicationproblemJSON401 *UnauthorizedProblemResponse
ApplicationproblemJSON404 *NotFoundProblemResponse
ApplicationproblemJSONDefault *UnexpectedProblemResponse
}
func ParseDeleteEntitlementResponse ¶
func ParseDeleteEntitlementResponse(rsp *http.Response) (*DeleteEntitlementResponse, error)
ParseDeleteEntitlementResponse parses an HTTP response from a DeleteEntitlementWithResponse call
func (DeleteEntitlementResponse) Status ¶
func (r DeleteEntitlementResponse) Status() string
Status returns HTTPResponse.Status
func (DeleteEntitlementResponse) StatusCode ¶
func (r DeleteEntitlementResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type DeleteFeatureResponse ¶
type DeleteFeatureResponse struct {
Body []byte
HTTPResponse *http.Response
ApplicationproblemJSON401 *UnauthorizedProblemResponse
ApplicationproblemJSON404 *NotFoundProblemResponse
ApplicationproblemJSONDefault *UnexpectedProblemResponse
}
func ParseDeleteFeatureResponse ¶
func ParseDeleteFeatureResponse(rsp *http.Response) (*DeleteFeatureResponse, error)
ParseDeleteFeatureResponse parses an HTTP response from a DeleteFeatureWithResponse call
func (DeleteFeatureResponse) Status ¶
func (r DeleteFeatureResponse) Status() string
Status returns HTTPResponse.Status
func (DeleteFeatureResponse) StatusCode ¶
func (r DeleteFeatureResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type DeleteMeterResponse ¶
type DeleteMeterResponse struct {
Body []byte
HTTPResponse *http.Response
ApplicationproblemJSON404 *NotFoundProblemResponse
ApplicationproblemJSON501 *NotImplementedProblemResponse
ApplicationproblemJSONDefault *UnexpectedProblemResponse
}
func ParseDeleteMeterResponse ¶
func ParseDeleteMeterResponse(rsp *http.Response) (*DeleteMeterResponse, error)
ParseDeleteMeterResponse parses an HTTP response from a DeleteMeterWithResponse call
func (DeleteMeterResponse) Status ¶
func (r DeleteMeterResponse) Status() string
Status returns HTTPResponse.Status
func (DeleteMeterResponse) StatusCode ¶
func (r DeleteMeterResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type DeleteNotificationChannelResponse ¶
type DeleteNotificationChannelResponse struct {
Body []byte
HTTPResponse *http.Response
ApplicationproblemJSON401 *UnauthorizedProblemResponse
ApplicationproblemJSON404 *NotFoundProblemResponse
ApplicationproblemJSONDefault *UnexpectedProblemResponse
}
func ParseDeleteNotificationChannelResponse ¶
func ParseDeleteNotificationChannelResponse(rsp *http.Response) (*DeleteNotificationChannelResponse, error)
ParseDeleteNotificationChannelResponse parses an HTTP response from a DeleteNotificationChannelWithResponse call
func (DeleteNotificationChannelResponse) Status ¶
func (r DeleteNotificationChannelResponse) Status() string
Status returns HTTPResponse.Status
func (DeleteNotificationChannelResponse) StatusCode ¶
func (r DeleteNotificationChannelResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type DeleteNotificationRuleResponse ¶
type DeleteNotificationRuleResponse struct {
Body []byte
HTTPResponse *http.Response
ApplicationproblemJSON401 *UnauthorizedProblemResponse
ApplicationproblemJSON404 *NotFoundProblemResponse
ApplicationproblemJSONDefault *UnexpectedProblemResponse
}
func ParseDeleteNotificationRuleResponse ¶
func ParseDeleteNotificationRuleResponse(rsp *http.Response) (*DeleteNotificationRuleResponse, error)
ParseDeleteNotificationRuleResponse parses an HTTP response from a DeleteNotificationRuleWithResponse call
func (DeleteNotificationRuleResponse) Status ¶
func (r DeleteNotificationRuleResponse) Status() string
Status returns HTTPResponse.Status
func (DeleteNotificationRuleResponse) StatusCode ¶
func (r DeleteNotificationRuleResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type DeleteSubjectResponse ¶
type DeleteSubjectResponse struct {
Body []byte
HTTPResponse *http.Response
ApplicationproblemJSON400 *BadRequestProblemResponse
ApplicationproblemJSON401 *UnauthorizedProblemResponse
ApplicationproblemJSON404 *NotFoundProblemResponse
ApplicationproblemJSON501 *NotImplementedProblemResponse
ApplicationproblemJSONDefault *UnexpectedProblemResponse
}
func ParseDeleteSubjectResponse ¶
func ParseDeleteSubjectResponse(rsp *http.Response) (*DeleteSubjectResponse, error)
ParseDeleteSubjectResponse parses an HTTP response from a DeleteSubjectWithResponse call
func (DeleteSubjectResponse) Status ¶
func (r DeleteSubjectResponse) Status() string
Status returns HTTPResponse.Status
func (DeleteSubjectResponse) StatusCode ¶
func (r DeleteSubjectResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type Entitlement ¶
type Entitlement struct {
// contains filtered or unexported fields
}
Entitlement defines model for Entitlement.
func (Entitlement) AsEntitlementBoolean ¶
func (t Entitlement) AsEntitlementBoolean() (EntitlementBoolean, error)
AsEntitlementBoolean returns the union data inside the Entitlement as a EntitlementBoolean
func (Entitlement) AsEntitlementMetered ¶
func (t Entitlement) AsEntitlementMetered() (EntitlementMetered, error)
AsEntitlementMetered returns the union data inside the Entitlement as a EntitlementMetered
func (Entitlement) AsEntitlementStatic ¶
func (t Entitlement) AsEntitlementStatic() (EntitlementStatic, error)
AsEntitlementStatic returns the union data inside the Entitlement as a EntitlementStatic
func (Entitlement) Discriminator ¶
func (t Entitlement) Discriminator() (string, error)
func (*Entitlement) FromEntitlementBoolean ¶
func (t *Entitlement) FromEntitlementBoolean(v EntitlementBoolean) error
FromEntitlementBoolean overwrites any union data inside the Entitlement as the provided EntitlementBoolean
func (*Entitlement) FromEntitlementMetered ¶
func (t *Entitlement) FromEntitlementMetered(v EntitlementMetered) error
FromEntitlementMetered overwrites any union data inside the Entitlement as the provided EntitlementMetered
func (*Entitlement) FromEntitlementStatic ¶
func (t *Entitlement) FromEntitlementStatic(v EntitlementStatic) error
FromEntitlementStatic overwrites any union data inside the Entitlement as the provided EntitlementStatic
func (Entitlement) MarshalJSON ¶
func (t Entitlement) MarshalJSON() ([]byte, error)
func (*Entitlement) MergeEntitlementBoolean ¶
func (t *Entitlement) MergeEntitlementBoolean(v EntitlementBoolean) error
MergeEntitlementBoolean performs a merge with any union data inside the Entitlement, using the provided EntitlementBoolean
func (*Entitlement) MergeEntitlementMetered ¶
func (t *Entitlement) MergeEntitlementMetered(v EntitlementMetered) error
MergeEntitlementMetered performs a merge with any union data inside the Entitlement, using the provided EntitlementMetered
func (*Entitlement) MergeEntitlementStatic ¶
func (t *Entitlement) MergeEntitlementStatic(v EntitlementStatic) error
MergeEntitlementStatic performs a merge with any union data inside the Entitlement, using the provided EntitlementStatic
func (*Entitlement) UnmarshalJSON ¶
func (t *Entitlement) UnmarshalJSON(b []byte) error
func (Entitlement) ValueByDiscriminator ¶
func (t Entitlement) ValueByDiscriminator() (interface{}, error)
type EntitlementBoolean ¶
type EntitlementBoolean struct {
// CreatedAt The date and time the resource was created.
CreatedAt *time.Time `json:"createdAt,omitempty"`
// CurrentUsagePeriod A time period
CurrentUsagePeriod *Period `json:"currentUsagePeriod,omitempty"`
// DeletedAt The date and time the resource was deleted.
DeletedAt *time.Time `json:"deletedAt,omitempty"`
// FeatureId The feature the subject is entitled to use.
// Either featureKey or featureId is required.
FeatureId string `json:"featureId"`
// FeatureKey The feature the subject is entitled to use.
// Either featureKey or featureId is required.
FeatureKey string `json:"featureKey"`
// Id Readonly unique ULID identifier.
Id *string `json:"id,omitempty"`
// Metadata Additional metadata for the feature.
Metadata *map[string]string `json:"metadata,omitempty"`
// SubjectKey The identifier key unique to the subject
SubjectKey string `json:"subjectKey"`
Type EntitlementBooleanType `json:"type"`
// UpdatedAt The date and time the resource was last updated. The initial value is the same as createdAt.
UpdatedAt *time.Time `json:"updatedAt,omitempty"`
// UsagePeriod Recurring period of an entitlement.
UsagePeriod *RecurringPeriod `json:"usagePeriod,omitempty"`
}
EntitlementBoolean defines model for EntitlementBoolean.
type EntitlementBooleanCreateInputs ¶
type EntitlementBooleanCreateInputs struct {
// FeatureId The feature the subject is entitled to use.
// Either featureKey or featureId is required.
FeatureId *string `json:"featureId,omitempty"`
// FeatureKey The feature the subject is entitled to use.
// Either featureKey or featureId is required.
FeatureKey *string `json:"featureKey,omitempty"`
// Metadata Additional metadata for the feature.
Metadata *map[string]string `json:"metadata,omitempty"`
Type EntitlementBooleanCreateInputsType `json:"type"`
// UsagePeriod Recurring period of an entitlement.
UsagePeriod *RecurringPeriodCreateInput `json:"usagePeriod,omitempty"`
}
EntitlementBooleanCreateInputs defines model for EntitlementBooleanCreateInputs.
type EntitlementBooleanCreateInputsType ¶
type EntitlementBooleanCreateInputsType string
EntitlementBooleanCreateInputsType defines model for EntitlementBooleanCreateInputs.Type.
const (
EntitlementBooleanCreateInputsTypeBoolean EntitlementBooleanCreateInputsType = "boolean"
)
Defines values for EntitlementBooleanCreateInputsType.
type EntitlementBooleanType ¶
type EntitlementBooleanType string
EntitlementBooleanType defines model for EntitlementBoolean.Type.
const (
EntitlementBooleanTypeBoolean EntitlementBooleanType = "boolean"
)
Defines values for EntitlementBooleanType.
type EntitlementCreateInputs ¶
type EntitlementCreateInputs struct {
// contains filtered or unexported fields
}
EntitlementCreateInputs defines model for EntitlementCreateInputs.
func (EntitlementCreateInputs) AsEntitlementBooleanCreateInputs ¶
func (t EntitlementCreateInputs) AsEntitlementBooleanCreateInputs() (EntitlementBooleanCreateInputs, error)
AsEntitlementBooleanCreateInputs returns the union data inside the EntitlementCreateInputs as a EntitlementBooleanCreateInputs
func (EntitlementCreateInputs) AsEntitlementMeteredCreateInputs ¶
func (t EntitlementCreateInputs) AsEntitlementMeteredCreateInputs() (EntitlementMeteredCreateInputs, error)
AsEntitlementMeteredCreateInputs returns the union data inside the EntitlementCreateInputs as a EntitlementMeteredCreateInputs
func (EntitlementCreateInputs) AsEntitlementStaticCreateInputs ¶
func (t EntitlementCreateInputs) AsEntitlementStaticCreateInputs() (EntitlementStaticCreateInputs, error)
AsEntitlementStaticCreateInputs returns the union data inside the EntitlementCreateInputs as a EntitlementStaticCreateInputs
func (EntitlementCreateInputs) Discriminator ¶
func (t EntitlementCreateInputs) Discriminator() (string, error)
func (*EntitlementCreateInputs) FromEntitlementBooleanCreateInputs ¶
func (t *EntitlementCreateInputs) FromEntitlementBooleanCreateInputs(v EntitlementBooleanCreateInputs) error
FromEntitlementBooleanCreateInputs overwrites any union data inside the EntitlementCreateInputs as the provided EntitlementBooleanCreateInputs
func (*EntitlementCreateInputs) FromEntitlementMeteredCreateInputs ¶
func (t *EntitlementCreateInputs) FromEntitlementMeteredCreateInputs(v EntitlementMeteredCreateInputs) error
FromEntitlementMeteredCreateInputs overwrites any union data inside the EntitlementCreateInputs as the provided EntitlementMeteredCreateInputs
func (*EntitlementCreateInputs) FromEntitlementStaticCreateInputs ¶
func (t *EntitlementCreateInputs) FromEntitlementStaticCreateInputs(v EntitlementStaticCreateInputs) error
FromEntitlementStaticCreateInputs overwrites any union data inside the EntitlementCreateInputs as the provided EntitlementStaticCreateInputs
func (EntitlementCreateInputs) MarshalJSON ¶
func (t EntitlementCreateInputs) MarshalJSON() ([]byte, error)
func (*EntitlementCreateInputs) MergeEntitlementBooleanCreateInputs ¶
func (t *EntitlementCreateInputs) MergeEntitlementBooleanCreateInputs(v EntitlementBooleanCreateInputs) error
MergeEntitlementBooleanCreateInputs performs a merge with any union data inside the EntitlementCreateInputs, using the provided EntitlementBooleanCreateInputs
func (*EntitlementCreateInputs) MergeEntitlementMeteredCreateInputs ¶
func (t *EntitlementCreateInputs) MergeEntitlementMeteredCreateInputs(v EntitlementMeteredCreateInputs) error
MergeEntitlementMeteredCreateInputs performs a merge with any union data inside the EntitlementCreateInputs, using the provided EntitlementMeteredCreateInputs
func (*EntitlementCreateInputs) MergeEntitlementStaticCreateInputs ¶
func (t *EntitlementCreateInputs) MergeEntitlementStaticCreateInputs(v EntitlementStaticCreateInputs) error
MergeEntitlementStaticCreateInputs performs a merge with any union data inside the EntitlementCreateInputs, using the provided EntitlementStaticCreateInputs
func (*EntitlementCreateInputs) UnmarshalJSON ¶
func (t *EntitlementCreateInputs) UnmarshalJSON(b []byte) error
func (EntitlementCreateInputs) ValueByDiscriminator ¶
func (t EntitlementCreateInputs) ValueByDiscriminator() (interface{}, error)
type EntitlementCreateSharedFields ¶
type EntitlementCreateSharedFields struct {
// Either featureKey or featureId is required.
FeatureId *string `json:"featureId,omitempty"`
// Either featureKey or featureId is required.
FeatureKey *string `json:"featureKey,omitempty"`
Metadata *map[string]string `json:"metadata,omitempty"`
UsagePeriod *RecurringPeriodCreateInput `json:"usagePeriod,omitempty"`
}
EntitlementCreateSharedFields defines model for EntitlementCreateSharedFields.
type EntitlementGrant ¶
type EntitlementGrant struct {
// Amount The amount to grant. Should be a positive number.
Amount float64 `json:"amount"`
// CreatedAt The date and time the resource was created.
CreatedAt *time.Time `json:"createdAt,omitempty"`
// DeletedAt The date and time the resource was deleted.
DeletedAt *time.Time `json:"deletedAt,omitempty"`
// EffectiveAt Effective date for grants and anchor for recurring grants. Provided value will be ceiled to metering windowSize (minute).
EffectiveAt time.Time `json:"effectiveAt"`
// EntitlementId The unique entitlement ULID that the grant is associated with.
EntitlementId *string `json:"entitlementId,omitempty"`
Expiration ExpirationPeriod `json:"expiration"`
// ExpiresAt The expiration date of the grant.
ExpiresAt *time.Time `json:"expiresAt,omitempty"`
// Id Readonly unique ULID identifier.
Id *string `json:"id,omitempty"`
// MaxRolloverAmount Grants are rolled over at reset, after which they can have a different balance compared to what they had before the reset.
//
// Balance after the reset is calculated as:
// Balance_After_Reset = MIN(MaxRolloverAmount, MAX(Balance_Before_Reset, MinRolloverAmount))
MaxRolloverAmount *float64 `json:"maxRolloverAmount,omitempty"`
Metadata *map[string]string `json:"metadata,omitempty"`
// MinRolloverAmount Grants are rolled over at reset, after which they can have a different balance compared to what they had before the reset.
//
// Balance after the reset is calculated as:
// Balance_After_Reset = MIN(MaxRolloverAmount, MAX(Balance_Before_Reset, MinRolloverAmount))
MinRolloverAmount *float64 `json:"minRolloverAmount,omitempty"`
// NextRecurrence The next time the grant will recurr.
NextRecurrence *time.Time `json:"nextRecurrence,omitempty"`
// Priority The priority of the grant. Grants with higher priority are applied first.
// Priority is a positive decimal numbers. With lower numbers indicating higher importance.
// For example, a priority of 1 is more urgent than a priority of 2.
// When there are several grants available for the same subject, the system selects the grant with the highest priority.
// In cases where grants share the same priority level, the grant closest to its expiration will be used first.
// In the case of two grants have identical priorities and expiration dates, the system will use the grant that was created first.
Priority *int `json:"priority,omitempty"`
// Recurrence Recurring period of an entitlement.
Recurrence *RecurringPeriod `json:"recurrence,omitempty"`
// UpdatedAt The date and time the resource was last updated. The initial value is the same as createdAt.
UpdatedAt *time.Time `json:"updatedAt,omitempty"`
// VoidedAt The date and time the grant was voided (cannot be used after that).
VoidedAt *time.Time `json:"voidedAt,omitempty"`
}
EntitlementGrant defines model for EntitlementGrant.
type EntitlementGrantCreateInput ¶
type EntitlementGrantCreateInput struct {
// Amount The amount to grant. Should be a positive number.
Amount float64 `json:"amount"`
// EffectiveAt Effective date for grants and anchor for recurring grants. Provided value will be ceiled to metering windowSize (minute).
EffectiveAt time.Time `json:"effectiveAt"`
Expiration ExpirationPeriod `json:"expiration"`
// MaxRolloverAmount Grants are rolled over at reset, after which they can have a different balance compared to what they had before the reset.
//
// Balance after the reset is calculated as:
// Balance_After_Reset = MIN(MaxRolloverAmount, MAX(Balance_Before_Reset, MinRolloverAmount))
MaxRolloverAmount *float64 `json:"maxRolloverAmount,omitempty"`
Metadata *map[string]string `json:"metadata,omitempty"`
// MinRolloverAmount Grants are rolled over at reset, after which they can have a different balance compared to what they had before the reset.
//
// Balance after the reset is calculated as:
// Balance_After_Reset = MIN(MaxRolloverAmount, MAX(Balance_Before_Reset, MinRolloverAmount))
MinRolloverAmount *float64 `json:"minRolloverAmount,omitempty"`
// Priority The priority of the grant. Grants with higher priority are applied first.
// Priority is a positive decimal numbers. With lower numbers indicating higher importance.
// For example, a priority of 1 is more urgent than a priority of 2.
// When there are several grants available for the same subject, the system selects the grant with the highest priority.
// In cases where grants share the same priority level, the grant closest to its expiration will be used first.
// In the case of two grants have identical priorities and expiration dates, the system will use the grant that was created first.
Priority *int `json:"priority,omitempty"`
// Recurrence Recurring period of an entitlement.
Recurrence *RecurringPeriodCreateInput `json:"recurrence,omitempty"`
}
EntitlementGrantCreateInput Grants are used to increase balance of specific subjects.
type EntitlementIdOrFeatureKey ¶
type EntitlementIdOrFeatureKey = string
EntitlementIdOrFeatureKey defines model for entitlementIdOrFeatureKey.
type EntitlementMetered ¶
type EntitlementMetered struct {
// CreatedAt The date and time the resource was created.
CreatedAt *time.Time `json:"createdAt,omitempty"`
// CurrentUsagePeriod A time period
CurrentUsagePeriod Period `json:"currentUsagePeriod"`
// DeletedAt The date and time the resource was deleted.
DeletedAt *time.Time `json:"deletedAt,omitempty"`
// FeatureId The feature the subject is entitled to use.
// Either featureKey or featureId is required.
FeatureId string `json:"featureId"`
// FeatureKey The feature the subject is entitled to use.
// Either featureKey or featureId is required.
FeatureKey string `json:"featureKey"`
// Id Readonly unique ULID identifier.
Id *string `json:"id,omitempty"`
// IsSoftLimit If softLimit=true the subject can use the feature even if the entitlement is exhausted, hasAccess will always be true.
IsSoftLimit *bool `json:"isSoftLimit,omitempty"`
// IsUnlimited Deprecated, ignored by the backend. Please use isSoftLimit instead; this field will be removed in the future.
IsUnlimited *bool `json:"isUnlimited,omitempty"`
// IssueAfterReset You can grant usage automatically alongside the entitlement, the example scenario would be creating a starting balance. If an amount is specified here, a grant will be created alongside the entitlement with the specified amount.
// That grant will have it's rollover settings configured in a way that after each reset operation, the balance will return the original amount specified here.
//
// Manually creating such a grant would mean having the "amount", "minRolloverAmount", and "maxRolloverAmount" fields all be the same.
IssueAfterReset *float64 `json:"issueAfterReset,omitempty"`
// IssueAfterResetPriority Defines the grant priority for the default grant. If provided, issueAfterReset must have a value.
IssueAfterResetPriority *int `json:"issueAfterResetPriority,omitempty"`
// LastReset The last time a reset happened.
LastReset time.Time `json:"lastReset"`
// MeasureUsageFrom The time from which usage is measured. If not specified on creation, defaults to the entitlement creation time.
MeasureUsageFrom time.Time `json:"measureUsageFrom"`
// Metadata Additional metadata for the feature.
Metadata *map[string]string `json:"metadata,omitempty"`
// PreserveOverageAtReset If true, the overage is preserved at reset. If false, the usage is forgiven.
PreserveOverageAtReset *bool `json:"preserveOverageAtReset,omitempty"`
// SubjectKey The identifier key unique to the subject
SubjectKey string `json:"subjectKey"`
Type EntitlementMeteredType `json:"type"`
// UpdatedAt The date and time the resource was last updated. The initial value is the same as createdAt.
UpdatedAt *time.Time `json:"updatedAt,omitempty"`
// UsagePeriod Recurring period of an entitlement.
UsagePeriod RecurringPeriod `json:"usagePeriod"`
}
EntitlementMetered defines model for EntitlementMetered.
type EntitlementMeteredCalculatedFields ¶
type EntitlementMeteredCalculatedFields struct {
// CurrentUsagePeriod A time period
CurrentUsagePeriod Period `json:"currentUsagePeriod"`
// LastReset The last time a reset happened.
LastReset time.Time `json:"lastReset"`
// MeasureUsageFrom The time from which usage is measured. If not specified on creation, defaults to the entitlement creation time.
MeasureUsageFrom time.Time `json:"measureUsageFrom"`
}
EntitlementMeteredCalculatedFields Calculated fields for a metered entitlement.
type EntitlementMeteredCreateInputs ¶
type EntitlementMeteredCreateInputs struct {
// FeatureId The feature the subject is entitled to use.
// Either featureKey or featureId is required.
FeatureId *string `json:"featureId,omitempty"`
// FeatureKey The feature the subject is entitled to use.
// Either featureKey or featureId is required.
FeatureKey *string `json:"featureKey,omitempty"`
// IsSoftLimit If softLimit=true the subject can use the feature even if the entitlement is exhausted, hasAccess will always be true.
IsSoftLimit *bool `json:"isSoftLimit,omitempty"`
// IsUnlimited Deprecated, ignored by the backend. Please use isSoftLimit instead; this field will be removed in the future.
IsUnlimited *bool `json:"isUnlimited,omitempty"`
// IssueAfterReset You can grant usage automatically alongside the entitlement, the example scenario would be creating a starting balance. If an amount is specified here, a grant will be created alongside the entitlement with the specified amount.
// That grant will have it's rollover settings configured in a way that after each reset operation, the balance will return the original amount specified here.
//
// Manually creating such a grant would mean having the "amount", "minRolloverAmount", and "maxRolloverAmount" fields all be the same.
IssueAfterReset *float64 `json:"issueAfterReset,omitempty"`
// IssueAfterResetPriority Defines the grant priority for the default grant. If provided, issueAfterReset must have a value.
IssueAfterResetPriority *int `json:"issueAfterResetPriority,omitempty"`
// MeasureUsageFrom The time from which usage is measured, defaults to the entitlement creation time.
// The provided value is truncated to the granularity of the underlying meter.
MeasureUsageFrom *MeasureUsageFrom `json:"measureUsageFrom,omitempty"`
// Metadata Additional metadata for the feature.
Metadata *map[string]string `json:"metadata,omitempty"`
// PreserveOverageAtReset If true, the overage is preserved at reset. If false, the usage is forgiven.
PreserveOverageAtReset *bool `json:"preserveOverageAtReset,omitempty"`
Type EntitlementMeteredCreateInputsType `json:"type"`
// UsagePeriod Recurring period of an entitlement.
UsagePeriod RecurringPeriodCreateInput `json:"usagePeriod"`
}
EntitlementMeteredCreateInputs defines model for EntitlementMeteredCreateInputs.
type EntitlementMeteredCreateInputsType ¶
type EntitlementMeteredCreateInputsType string
EntitlementMeteredCreateInputsType defines model for EntitlementMeteredCreateInputs.Type.
const (
EntitlementMeteredCreateInputsTypeMetered EntitlementMeteredCreateInputsType = "metered"
)
Defines values for EntitlementMeteredCreateInputsType.
type EntitlementMeteredType ¶
type EntitlementMeteredType string
EntitlementMeteredType defines model for EntitlementMetered.Type.
const (
EntitlementMeteredTypeMetered EntitlementMeteredType = "metered"
)
Defines values for EntitlementMeteredType.
type EntitlementSharedFields ¶
type EntitlementSharedFields struct {
CreatedAt *time.Time `json:"createdAt,omitempty"`
CurrentUsagePeriod *Period `json:"currentUsagePeriod,omitempty"`
DeletedAt *time.Time `json:"deletedAt,omitempty"`
// Either featureKey or featureId is required.
FeatureId string `json:"featureId"`
// Either featureKey or featureId is required.
FeatureKey string `json:"featureKey"`
Id *string `json:"id,omitempty"`
Metadata *map[string]string `json:"metadata,omitempty"`
SubjectKey string `json:"subjectKey"`
UpdatedAt *time.Time `json:"updatedAt,omitempty"`
UsagePeriod *RecurringPeriod `json:"usagePeriod,omitempty"`
}
EntitlementSharedFields defines model for EntitlementSharedFields.
type EntitlementStatic ¶
type EntitlementStatic struct {
// Config The JSON parsable config of the entitlement. This value is also returned when checking entitlement access and it is useful for configuring fine-grained access settings to the feature, implemented in your own system. Has to be an object.
Config string `json:"config"`
// CreatedAt The date and time the resource was created.
CreatedAt *time.Time `json:"createdAt,omitempty"`
// CurrentUsagePeriod A time period
CurrentUsagePeriod *Period `json:"currentUsagePeriod,omitempty"`
// DeletedAt The date and time the resource was deleted.
DeletedAt *time.Time `json:"deletedAt,omitempty"`
// FeatureId The feature the subject is entitled to use.
// Either featureKey or featureId is required.
FeatureId string `json:"featureId"`
// FeatureKey The feature the subject is entitled to use.
// Either featureKey or featureId is required.
FeatureKey string `json:"featureKey"`
// Id Readonly unique ULID identifier.
Id *string `json:"id,omitempty"`
// Metadata Additional metadata for the feature.
Metadata *map[string]string `json:"metadata,omitempty"`
// SubjectKey The identifier key unique to the subject
SubjectKey string `json:"subjectKey"`
Type EntitlementStaticType `json:"type"`
// UpdatedAt The date and time the resource was last updated. The initial value is the same as createdAt.
UpdatedAt *time.Time `json:"updatedAt,omitempty"`
// UsagePeriod Recurring period of an entitlement.
UsagePeriod *RecurringPeriod `json:"usagePeriod,omitempty"`
}
EntitlementStatic defines model for EntitlementStatic.
type EntitlementStaticCreateInputs ¶
type EntitlementStaticCreateInputs struct {
// Config The JSON parsable config of the entitlement. This value is also returned when checking entitlement access and it is useful for configuring fine-grained access settings to the feature, implemented in your own system. Has to be an object.
Config string `json:"config"`
// FeatureId The feature the subject is entitled to use.
// Either featureKey or featureId is required.
FeatureId *string `json:"featureId,omitempty"`
// FeatureKey The feature the subject is entitled to use.
// Either featureKey or featureId is required.
FeatureKey *string `json:"featureKey,omitempty"`
// Metadata Additional metadata for the feature.
Metadata *map[string]string `json:"metadata,omitempty"`
Type EntitlementStaticCreateInputsType `json:"type"`
// UsagePeriod Recurring period of an entitlement.
UsagePeriod *RecurringPeriodCreateInput `json:"usagePeriod,omitempty"`
}
EntitlementStaticCreateInputs defines model for EntitlementStaticCreateInputs.
type EntitlementStaticCreateInputsType ¶
type EntitlementStaticCreateInputsType string
EntitlementStaticCreateInputsType defines model for EntitlementStaticCreateInputs.Type.
const (
EntitlementStaticCreateInputsTypeStatic EntitlementStaticCreateInputsType = "static"
)
Defines values for EntitlementStaticCreateInputsType.
type EntitlementStaticType ¶
type EntitlementStaticType string
EntitlementStaticType defines model for EntitlementStatic.Type.
const (
EntitlementStaticTypeStatic EntitlementStaticType = "static"
)
Defines values for EntitlementStaticType.
type EntitlementValue ¶
type EntitlementValue struct {
// Balance Only available for metered entitlements. Metered entitlements are built around a balance calculation where feature usage is deducted from the issued grants. Balance represents the remaining balance of the entitlement, it's value never turns negative.
Balance *float64 `json:"balance,omitempty"`
// Config Only available for static entitlements. The JSON parsable config of the entitlement.
Config *string `json:"config,omitempty"`
// HasAccess Whether the subject has access to the feature. Shared accross all entitlement types.
HasAccess *bool `json:"hasAccess,omitempty"`
// Overage Only available for metered entitlements. Overage represents the usage that wasn't covered by grants, e.g. if the subject had a total feature usage of 100 in the period but they were only granted 80, there would be 20 overage.
Overage *float64 `json:"overage,omitempty"`
// Usage Only available for metered entitlements. Returns the total feature usage in the current period.
Usage *float64 `json:"usage,omitempty"`
}
EntitlementValue defines model for EntitlementValue.
type ErrResponse ¶
type ErrResponse struct {
Err error `json:"-"` // low-level runtime error
StatusCode int `json:"statusCode"` // http response status code
StatusText string `json:"status"` // user-level status message
AppCode int64 `json:"code,omitempty"` // application-specific error code
Message string `json:"message,omitempty"` // application-level error message, for debugging
}
ErrResponse renderer type for handling all sorts of errors. In the best case scenario, the excellent github.com/pkg/errors package helps reveal information on the error, setting it on Err, and in the Render() method, using it to set the application-specific error code in AppCode.
type ExpirationPeriod ¶
type ExpirationPeriod struct {
// Count The expiration period count like 12 months.
Count int `json:"count"`
// Duration The expiration period duration like month.
Duration ExpirationPeriodDuration `json:"duration"`
}
ExpirationPeriod Expiration period of a grant.
type ExpirationPeriodDuration ¶
type ExpirationPeriodDuration string
ExpirationPeriodDuration The expiration period duration like month.
const ( ExpirationPeriodDurationDAY ExpirationPeriodDuration = "DAY" ExpirationPeriodDurationHOUR ExpirationPeriodDuration = "HOUR" ExpirationPeriodDurationMONTH ExpirationPeriodDuration = "MONTH" ExpirationPeriodDurationWEEK ExpirationPeriodDuration = "WEEK" ExpirationPeriodDurationYEAR ExpirationPeriodDuration = "YEAR" )
Defines values for ExpirationPeriodDuration.
type Feature ¶
type Feature struct {
// ArchivedAt If the feature is archived, no new entitlements can be created for it.
ArchivedAt *time.Time `json:"archivedAt,omitempty"`
// CreatedAt The date and time the resource was created.
CreatedAt *time.Time `json:"createdAt,omitempty"`
// DeletedAt The date and time the resource was deleted.
DeletedAt *time.Time `json:"deletedAt,omitempty"`
// Id Readonly unique ULID identifier.
Id *string `json:"id,omitempty"`
// Key The key is an immutable unique identifier of the feature used throughout the API, for example when interacting with a subject's entitlements. The key has to be unique across all active features, but archived features can share the same key. The key should consist of lowercase alphanumeric characters and dashes.
Key string `json:"key"`
// Metadata Additional metadata for the feature, useful for syncing with external systems and annotating custom fields.
Metadata *map[string]string `json:"metadata,omitempty"`
// MeterGroupByFilters Optional meter group by filters. Useful if the meter scope is broader than what feature tracks. Example scenario would be a meter tracking all token use with groupBy fields for the model, then the feature could filter for model=gpt-4.
MeterGroupByFilters *map[string]string `json:"meterGroupByFilters,omitempty"`
// MeterSlug The meter that the feature is associated with and and based on which usage is calculated.
// The meter selected must have SUM or COUNT aggregation.
MeterSlug *string `json:"meterSlug,omitempty"`
// Name The name of the feature.
Name string `json:"name"`
// UpdatedAt The date and time the resource was last updated. The initial value is the same as createdAt.
UpdatedAt *time.Time `json:"updatedAt,omitempty"`
}
Feature defines model for Feature.
type FeatureCreateInputs ¶
type FeatureCreateInputs struct {
// Key The key is an immutable unique identifier of the feature used throughout the API, for example when interacting with a subject's entitlements. The key has to be unique across all active features, but archived features can share the same key. The key should consist of lowercase alphanumeric characters and dashes.
Key string `json:"key"`
// Metadata Additional metadata for the feature, useful for syncing with external systems and annotating custom fields.
Metadata *map[string]string `json:"metadata,omitempty"`
// MeterGroupByFilters Optional meter group by filters. Useful if the meter scope is broader than what feature tracks. Example scenario would be a meter tracking all token use with groupBy fields for the model, then the feature could filter for model=gpt-4.
MeterGroupByFilters *map[string]string `json:"meterGroupByFilters,omitempty"`
// MeterSlug The meter that the feature is associated with and and based on which usage is calculated.
// The meter selected must have SUM or COUNT aggregation.
MeterSlug *string `json:"meterSlug,omitempty"`
// Name The name of the feature.
Name string `json:"name"`
}
FeatureCreateInputs A feature is a feature or service offered to a customer. For example: CPU-Hours, Tokens, API Calls, etc.
type FeatureMeta ¶
type FeatureMeta struct {
// Id A unique identifier for the notification rule.
Id string `json:"id"`
// Key The key is an immutable unique identifier of the feature used throughout the API,
// for example when interacting with a subject's entitlements.
Key string `json:"key"`
}
FeatureMeta Limited representation of a feature resource which includes only its unique identifiers (id, key).
type GetDebugMetricsResponse ¶
type GetDebugMetricsResponse struct {
Body []byte
HTTPResponse *http.Response
ApplicationproblemJSON401 *UnauthorizedProblemResponse
ApplicationproblemJSONDefault *UnexpectedProblemResponse
}
func ParseGetDebugMetricsResponse ¶
func ParseGetDebugMetricsResponse(rsp *http.Response) (*GetDebugMetricsResponse, error)
ParseGetDebugMetricsResponse parses an HTTP response from a GetDebugMetricsWithResponse call
func (GetDebugMetricsResponse) Status ¶
func (r GetDebugMetricsResponse) Status() string
Status returns HTTPResponse.Status
func (GetDebugMetricsResponse) StatusCode ¶
func (r GetDebugMetricsResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetEntitlementByIdResponse ¶
type GetEntitlementByIdResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *struct {
// LastReset The last time usage was reset.
LastReset *time.Time `json:"lastReset,omitempty"`
// contains filtered or unexported fields
}
ApplicationproblemJSON401 *UnauthorizedProblemResponse
ApplicationproblemJSON404 *NotFoundProblemResponse
ApplicationproblemJSONDefault *UnexpectedProblemResponse
}
func ParseGetEntitlementByIdResponse ¶
func ParseGetEntitlementByIdResponse(rsp *http.Response) (*GetEntitlementByIdResponse, error)
ParseGetEntitlementByIdResponse parses an HTTP response from a GetEntitlementByIdWithResponse call
func (GetEntitlementByIdResponse) Status ¶
func (r GetEntitlementByIdResponse) Status() string
Status returns HTTPResponse.Status
func (GetEntitlementByIdResponse) StatusCode ¶
func (r GetEntitlementByIdResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetEntitlementHistoryParams ¶
type GetEntitlementHistoryParams struct {
// From Start of time range to query entitlement: date-time in RFC 3339 format. Defaults to
// the last reset.
// Gets truncated to the granularity of the underlying meter.
From *time.Time `form:"from,omitempty" json:"from,omitempty"`
// To End of time range to query entitlement: date-time in RFC 3339 format. Defaults to now.
// If not now then gets truncated to the granularity of the underlying meter.
To *time.Time `form:"to,omitempty" json:"to,omitempty"`
// WindowSize Size of the time window to group the history by. Cannot be shorter than meter granularity.
WindowSize GetEntitlementHistoryParamsWindowSize `form:"windowSize" json:"windowSize"`
// WindowTimeZone The value is the name of the time zone as defined in the IANA Time Zone Database (http://www.iana.org/time-zones).
// If not specified, the UTC timezone will be used.
WindowTimeZone *QueryWindowTimeZone `form:"windowTimeZone,omitempty" json:"windowTimeZone,omitempty"`
}
GetEntitlementHistoryParams defines parameters for GetEntitlementHistory.
type GetEntitlementHistoryParamsWindowSize ¶
type GetEntitlementHistoryParamsWindowSize string
GetEntitlementHistoryParamsWindowSize defines parameters for GetEntitlementHistory.
const ( DAY GetEntitlementHistoryParamsWindowSize = "DAY" HOUR GetEntitlementHistoryParamsWindowSize = "HOUR" MINUTE GetEntitlementHistoryParamsWindowSize = "MINUTE" )
Defines values for GetEntitlementHistoryParamsWindowSize.
type GetEntitlementHistoryResponse ¶
type GetEntitlementHistoryResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *WindowedBalanceHistory
ApplicationproblemJSON400 *BadRequestProblemResponse
ApplicationproblemJSON401 *UnauthorizedProblemResponse
ApplicationproblemJSON404 *NotFoundProblemResponse
ApplicationproblemJSONDefault *UnexpectedProblemResponse
}
func ParseGetEntitlementHistoryResponse ¶
func ParseGetEntitlementHistoryResponse(rsp *http.Response) (*GetEntitlementHistoryResponse, error)
ParseGetEntitlementHistoryResponse parses an HTTP response from a GetEntitlementHistoryWithResponse call
func (GetEntitlementHistoryResponse) Status ¶
func (r GetEntitlementHistoryResponse) Status() string
Status returns HTTPResponse.Status
func (GetEntitlementHistoryResponse) StatusCode ¶
func (r GetEntitlementHistoryResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetEntitlementResponse ¶
type GetEntitlementResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *struct {
// LastReset The last time usage was reset.
LastReset *time.Time `json:"lastReset,omitempty"`
// contains filtered or unexported fields
}
ApplicationproblemJSON401 *UnauthorizedProblemResponse
ApplicationproblemJSON404 *NotFoundProblemResponse
ApplicationproblemJSONDefault *UnexpectedProblemResponse
}
func ParseGetEntitlementResponse ¶
func ParseGetEntitlementResponse(rsp *http.Response) (*GetEntitlementResponse, error)
ParseGetEntitlementResponse parses an HTTP response from a GetEntitlementWithResponse call
func (GetEntitlementResponse) Status ¶
func (r GetEntitlementResponse) Status() string
Status returns HTTPResponse.Status
func (GetEntitlementResponse) StatusCode ¶
func (r GetEntitlementResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetEntitlementValueParams ¶
type GetEntitlementValueParams struct {
// Time Point of time to check value: date-time in RFC 3339 format. Defaults to now.
Time *time.Time `form:"time,omitempty" json:"time,omitempty"`
}
GetEntitlementValueParams defines parameters for GetEntitlementValue.
type GetEntitlementValueResponse ¶
type GetEntitlementValueResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *EntitlementValue
ApplicationproblemJSON400 *BadRequestProblemResponse
ApplicationproblemJSON401 *UnauthorizedProblemResponse
ApplicationproblemJSON404 *NotFoundProblemResponse
ApplicationproblemJSONDefault *UnexpectedProblemResponse
}
func ParseGetEntitlementValueResponse ¶
func ParseGetEntitlementValueResponse(rsp *http.Response) (*GetEntitlementValueResponse, error)
ParseGetEntitlementValueResponse parses an HTTP response from a GetEntitlementValueWithResponse call
func (GetEntitlementValueResponse) Status ¶
func (r GetEntitlementValueResponse) Status() string
Status returns HTTPResponse.Status
func (GetEntitlementValueResponse) StatusCode ¶
func (r GetEntitlementValueResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetFeatureResponse ¶
type GetFeatureResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *Feature
ApplicationproblemJSON401 *UnauthorizedProblemResponse
ApplicationproblemJSON404 *NotFoundProblemResponse
ApplicationproblemJSONDefault *UnexpectedProblemResponse
}
func ParseGetFeatureResponse ¶
func ParseGetFeatureResponse(rsp *http.Response) (*GetFeatureResponse, error)
ParseGetFeatureResponse parses an HTTP response from a GetFeatureWithResponse call
func (GetFeatureResponse) Status ¶
func (r GetFeatureResponse) Status() string
Status returns HTTPResponse.Status
func (GetFeatureResponse) StatusCode ¶
func (r GetFeatureResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetMeterResponse ¶
type GetMeterResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *Meter
ApplicationproblemJSON404 *NotFoundProblemResponse
ApplicationproblemJSONDefault *UnexpectedProblemResponse
}
func ParseGetMeterResponse ¶
func ParseGetMeterResponse(rsp *http.Response) (*GetMeterResponse, error)
ParseGetMeterResponse parses an HTTP response from a GetMeterWithResponse call
func (GetMeterResponse) Status ¶
func (r GetMeterResponse) Status() string
Status returns HTTPResponse.Status
func (GetMeterResponse) StatusCode ¶
func (r GetMeterResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetNotificationChannelResponse ¶
type GetNotificationChannelResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *NotificationChannel
ApplicationproblemJSON401 *UnauthorizedProblemResponse
ApplicationproblemJSON404 *NotFoundProblemResponse
ApplicationproblemJSONDefault *UnexpectedProblemResponse
}
func ParseGetNotificationChannelResponse ¶
func ParseGetNotificationChannelResponse(rsp *http.Response) (*GetNotificationChannelResponse, error)
ParseGetNotificationChannelResponse parses an HTTP response from a GetNotificationChannelWithResponse call
func (GetNotificationChannelResponse) Status ¶
func (r GetNotificationChannelResponse) Status() string
Status returns HTTPResponse.Status
func (GetNotificationChannelResponse) StatusCode ¶
func (r GetNotificationChannelResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetNotificationEventResponse ¶
type GetNotificationEventResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *struct {
// contains filtered or unexported fields
}
ApplicationproblemJSON401 *UnauthorizedProblemResponse
ApplicationproblemJSON404 *NotFoundProblemResponse
ApplicationproblemJSONDefault *UnexpectedProblemResponse
}
func ParseGetNotificationEventResponse ¶
func ParseGetNotificationEventResponse(rsp *http.Response) (*GetNotificationEventResponse, error)
ParseGetNotificationEventResponse parses an HTTP response from a GetNotificationEventWithResponse call
func (GetNotificationEventResponse) Status ¶
func (r GetNotificationEventResponse) Status() string
Status returns HTTPResponse.Status
func (GetNotificationEventResponse) StatusCode ¶
func (r GetNotificationEventResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetNotificationRuleResponse ¶
type GetNotificationRuleResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *NotificationRule
ApplicationproblemJSON401 *UnauthorizedProblemResponse
ApplicationproblemJSON404 *NotFoundProblemResponse
ApplicationproblemJSONDefault *UnexpectedProblemResponse
}
func ParseGetNotificationRuleResponse ¶
func ParseGetNotificationRuleResponse(rsp *http.Response) (*GetNotificationRuleResponse, error)
ParseGetNotificationRuleResponse parses an HTTP response from a GetNotificationRuleWithResponse call
func (GetNotificationRuleResponse) Status ¶
func (r GetNotificationRuleResponse) Status() string
Status returns HTTPResponse.Status
func (GetNotificationRuleResponse) StatusCode ¶
func (r GetNotificationRuleResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetSubjectResponse ¶
type GetSubjectResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *Subject
ApplicationproblemJSON401 *UnauthorizedProblemResponse
ApplicationproblemJSON404 *NotFoundProblemResponse
ApplicationproblemJSONDefault *UnexpectedProblemResponse
}
func ParseGetSubjectResponse ¶
func ParseGetSubjectResponse(rsp *http.Response) (*GetSubjectResponse, error)
ParseGetSubjectResponse parses an HTTP response from a GetSubjectWithResponse call
func (GetSubjectResponse) Status ¶
func (r GetSubjectResponse) Status() string
Status returns HTTPResponse.Status
func (GetSubjectResponse) StatusCode ¶
func (r GetSubjectResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GrantBurnDownHistorySegment ¶
type GrantBurnDownHistorySegment struct {
// BalanceAtEnd The entitlement balance at the end of the period.
BalanceAtEnd *float64 `json:"balanceAtEnd,omitempty"`
// BalanceAtStart The entitlement balance at the start of the period.
BalanceAtStart *float64 `json:"balanceAtStart,omitempty"`
// GrantBalancesAtEnd The balance breakdown of each active grant at the start of the period: GrantID: Balance
GrantBalancesAtEnd *map[string]float64 `json:"grantBalancesAtEnd,omitempty"`
// GrantBalancesAtStart The balance breakdown of each active grant at the start of the period: GrantID: Balance
GrantBalancesAtStart *map[string]float64 `json:"grantBalancesAtStart,omitempty"`
// GrantUsages Which grants were actually burnt down in the period and by what amount.
GrantUsages *[]GrantUsageRecord `json:"grantUsages,omitempty"`
// Overage Overuse that wasn't covered by grants.
Overage *float64 `json:"overage,omitempty"`
// Period A time period
Period *Period `json:"period,omitempty"`
// Usage The usage of the grant in the period.
Usage *float64 `json:"usage,omitempty"`
}
GrantBurnDownHistorySegment A segment of the grant burn down history.
A given segment represents the usage of a grant between events that changed either the grant burn down priority order or the usag period.
type GrantUsageRecord ¶
type GrantUsageRecord struct {
// GrantId The id of the grant.
GrantId *string `json:"grantId,omitempty"`
// Usage The usage of the grant.
Usage *float64 `json:"usage,omitempty"`
}
GrantUsageRecord defines model for GrantUsageRecord.
type HttpRequestDoer ¶
Doer performs HTTP requests.
The standard http.Client implements this interface.
type IngestEventsApplicationCloudeventsBatchPlusJSONBody ¶
type IngestEventsApplicationCloudeventsBatchPlusJSONBody = []Event
IngestEventsApplicationCloudeventsBatchPlusJSONBody defines parameters for IngestEvents.
type IngestEventsApplicationCloudeventsBatchPlusJSONRequestBody ¶
type IngestEventsApplicationCloudeventsBatchPlusJSONRequestBody = IngestEventsApplicationCloudeventsBatchPlusJSONBody
IngestEventsApplicationCloudeventsBatchPlusJSONRequestBody defines body for IngestEvents for application/cloudevents-batch+json ContentType.
type IngestEventsApplicationCloudeventsPlusJSONRequestBody ¶
type IngestEventsApplicationCloudeventsPlusJSONRequestBody = Event
IngestEventsApplicationCloudeventsPlusJSONRequestBody defines body for IngestEvents for application/cloudevents+json ContentType.
type IngestEventsResponse ¶
type IngestEventsResponse struct {
Body []byte
HTTPResponse *http.Response
ApplicationproblemJSON400 *BadRequestProblemResponse
ApplicationproblemJSON401 *UnauthorizedProblemResponse
ApplicationproblemJSONDefault *UnexpectedProblemResponse
}
func ParseIngestEventsResponse ¶
func ParseIngestEventsResponse(rsp *http.Response) (*IngestEventsResponse, error)
ParseIngestEventsResponse parses an HTTP response from a IngestEventsWithResponse call
func (IngestEventsResponse) Status ¶
func (r IngestEventsResponse) Status() string
Status returns HTTPResponse.Status
func (IngestEventsResponse) StatusCode ¶
func (r IngestEventsResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type IngestedEvent ¶
type IngestedEvent struct {
// Event CloudEvents Specification JSON Schema
Event Event `json:"event"`
ValidationError *string `json:"validationError,omitempty"`
}
IngestedEvent An ingested event with optional validation error.
type InvalidatePortalTokensJSONBody ¶
type InvalidatePortalTokensJSONBody struct {
// Id Invalidate a portal token by ID.
Id *string `json:"id,omitempty"`
// Subject Invalidate all portal tokens for a subject.
Subject *string `json:"subject,omitempty"`
}
InvalidatePortalTokensJSONBody defines parameters for InvalidatePortalTokens.
type InvalidatePortalTokensJSONRequestBody ¶
type InvalidatePortalTokensJSONRequestBody InvalidatePortalTokensJSONBody
InvalidatePortalTokensJSONRequestBody defines body for InvalidatePortalTokens for application/json ContentType.
type InvalidatePortalTokensResponse ¶
type InvalidatePortalTokensResponse struct {
Body []byte
HTTPResponse *http.Response
ApplicationproblemJSON400 *BadRequestProblemResponse
ApplicationproblemJSON401 *UnauthorizedProblemResponse
ApplicationproblemJSON501 *NotImplementedProblemResponse
ApplicationproblemJSONDefault *UnexpectedProblemResponse
}
func ParseInvalidatePortalTokensResponse ¶
func ParseInvalidatePortalTokensResponse(rsp *http.Response) (*InvalidatePortalTokensResponse, error)
ParseInvalidatePortalTokensResponse parses an HTTP response from a InvalidatePortalTokensWithResponse call
func (InvalidatePortalTokensResponse) Status ¶
func (r InvalidatePortalTokensResponse) Status() string
Status returns HTTPResponse.Status
func (InvalidatePortalTokensResponse) StatusCode ¶
func (r InvalidatePortalTokensResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type ListEntitlementGrantResponse ¶
type ListEntitlementGrantResponse struct {
// contains filtered or unexported fields
}
ListEntitlementGrantResponse defines model for ListEntitlementGrantResponse.
func (ListEntitlementGrantResponse) AsListEntitlementGrantResponse0 ¶
func (t ListEntitlementGrantResponse) AsListEntitlementGrantResponse0() (ListEntitlementGrantResponse0, error)
AsListEntitlementGrantResponse0 returns the union data inside the ListEntitlementGrantResponse as a ListEntitlementGrantResponse0
func (ListEntitlementGrantResponse) AsListEntitlementGrantResponse1 ¶
func (t ListEntitlementGrantResponse) AsListEntitlementGrantResponse1() (ListEntitlementGrantResponse1, error)
AsListEntitlementGrantResponse1 returns the union data inside the ListEntitlementGrantResponse as a ListEntitlementGrantResponse1
func (*ListEntitlementGrantResponse) FromListEntitlementGrantResponse0 ¶
func (t *ListEntitlementGrantResponse) FromListEntitlementGrantResponse0(v ListEntitlementGrantResponse0) error
FromListEntitlementGrantResponse0 overwrites any union data inside the ListEntitlementGrantResponse as the provided ListEntitlementGrantResponse0
func (*ListEntitlementGrantResponse) FromListEntitlementGrantResponse1 ¶
func (t *ListEntitlementGrantResponse) FromListEntitlementGrantResponse1(v ListEntitlementGrantResponse1) error
FromListEntitlementGrantResponse1 overwrites any union data inside the ListEntitlementGrantResponse as the provided ListEntitlementGrantResponse1
func (ListEntitlementGrantResponse) MarshalJSON ¶
func (t ListEntitlementGrantResponse) MarshalJSON() ([]byte, error)
func (*ListEntitlementGrantResponse) MergeListEntitlementGrantResponse0 ¶
func (t *ListEntitlementGrantResponse) MergeListEntitlementGrantResponse0(v ListEntitlementGrantResponse0) error
MergeListEntitlementGrantResponse0 performs a merge with any union data inside the ListEntitlementGrantResponse, using the provided ListEntitlementGrantResponse0
func (*ListEntitlementGrantResponse) MergeListEntitlementGrantResponse1 ¶
func (t *ListEntitlementGrantResponse) MergeListEntitlementGrantResponse1(v ListEntitlementGrantResponse1) error
MergeListEntitlementGrantResponse1 performs a merge with any union data inside the ListEntitlementGrantResponse, using the provided ListEntitlementGrantResponse1
func (*ListEntitlementGrantResponse) UnmarshalJSON ¶
func (t *ListEntitlementGrantResponse) UnmarshalJSON(b []byte) error
type ListEntitlementGrantResponse0 ¶
type ListEntitlementGrantResponse0 = []EntitlementGrant
ListEntitlementGrantResponse0 defines model for .
type ListEntitlementGrantResponse1 ¶
type ListEntitlementGrantResponse1 struct {
// Items List of grants.
Items []EntitlementGrant `json:"items"`
// Page Current page number.
Page int `json:"page"`
// PageSize Number of grants per page.
PageSize int `json:"pageSize"`
// TotalCount Total number of grants.
TotalCount int `json:"totalCount"`
}
ListEntitlementGrantResponse1 defines model for .
type ListEntitlementGrantsParams ¶
type ListEntitlementGrantsParams struct {
// IncludeDeleted Include deleted entries.
IncludeDeleted *IncludeDeleted `form:"includeDeleted,omitempty" json:"includeDeleted,omitempty"`
// OrderBy Order by field
OrderBy *ListEntitlementGrantsParamsOrderBy `form:"orderBy,omitempty" json:"orderBy,omitempty"`
}
ListEntitlementGrantsParams defines parameters for ListEntitlementGrants.
type ListEntitlementGrantsParamsOrderBy ¶
type ListEntitlementGrantsParamsOrderBy string
ListEntitlementGrantsParamsOrderBy defines parameters for ListEntitlementGrants.
const ( CreatedAt ListEntitlementGrantsParamsOrderBy = "createdAt" Id ListEntitlementGrantsParamsOrderBy = "id" UpdatedAt ListEntitlementGrantsParamsOrderBy = "updatedAt" )
Defines values for ListEntitlementGrantsParamsOrderBy.
type ListEntitlementGrantsResponse ¶
type ListEntitlementGrantsResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *[]EntitlementGrant
ApplicationproblemJSON401 *UnauthorizedProblemResponse
ApplicationproblemJSONDefault *UnexpectedProblemResponse
}
func ParseListEntitlementGrantsResponse ¶
func ParseListEntitlementGrantsResponse(rsp *http.Response) (*ListEntitlementGrantsResponse, error)
ParseListEntitlementGrantsResponse parses an HTTP response from a ListEntitlementGrantsWithResponse call
func (ListEntitlementGrantsResponse) Status ¶
func (r ListEntitlementGrantsResponse) Status() string
Status returns HTTPResponse.Status
func (ListEntitlementGrantsResponse) StatusCode ¶
func (r ListEntitlementGrantsResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type ListEntitlementResponse ¶
type ListEntitlementResponse struct {
// contains filtered or unexported fields
}
ListEntitlementResponse defines model for ListEntitlementResponse.
func (ListEntitlementResponse) AsListEntitlementResponse0 ¶
func (t ListEntitlementResponse) AsListEntitlementResponse0() (ListEntitlementResponse0, error)
AsListEntitlementResponse0 returns the union data inside the ListEntitlementResponse as a ListEntitlementResponse0
func (ListEntitlementResponse) AsListEntitlementResponse1 ¶
func (t ListEntitlementResponse) AsListEntitlementResponse1() (ListEntitlementResponse1, error)
AsListEntitlementResponse1 returns the union data inside the ListEntitlementResponse as a ListEntitlementResponse1
func (*ListEntitlementResponse) FromListEntitlementResponse0 ¶
func (t *ListEntitlementResponse) FromListEntitlementResponse0(v ListEntitlementResponse0) error
FromListEntitlementResponse0 overwrites any union data inside the ListEntitlementResponse as the provided ListEntitlementResponse0
func (*ListEntitlementResponse) FromListEntitlementResponse1 ¶
func (t *ListEntitlementResponse) FromListEntitlementResponse1(v ListEntitlementResponse1) error
FromListEntitlementResponse1 overwrites any union data inside the ListEntitlementResponse as the provided ListEntitlementResponse1
func (ListEntitlementResponse) MarshalJSON ¶
func (t ListEntitlementResponse) MarshalJSON() ([]byte, error)
func (*ListEntitlementResponse) MergeListEntitlementResponse0 ¶
func (t *ListEntitlementResponse) MergeListEntitlementResponse0(v ListEntitlementResponse0) error
MergeListEntitlementResponse0 performs a merge with any union data inside the ListEntitlementResponse, using the provided ListEntitlementResponse0
func (*ListEntitlementResponse) MergeListEntitlementResponse1 ¶
func (t *ListEntitlementResponse) MergeListEntitlementResponse1(v ListEntitlementResponse1) error
MergeListEntitlementResponse1 performs a merge with any union data inside the ListEntitlementResponse, using the provided ListEntitlementResponse1
func (*ListEntitlementResponse) UnmarshalJSON ¶
func (t *ListEntitlementResponse) UnmarshalJSON(b []byte) error
type ListEntitlementResponse0 ¶
type ListEntitlementResponse0 = []Entitlement
ListEntitlementResponse0 defines model for .
type ListEntitlementResponse1 ¶
type ListEntitlementResponse1 struct {
// Items List of entitlements.
Items []Entitlement `json:"items"`
// Page Current page number.
Page int `json:"page"`
// PageSize Number of entitlements per page.
PageSize int `json:"pageSize"`
// TotalCount Total number of entitlements.
TotalCount int `json:"totalCount"`
}
ListEntitlementResponse1 defines model for .
type ListEntitlementsParams ¶
type ListEntitlementsParams struct {
// Page Page number to return
Page *QueryPage `form:"page,omitempty" json:"page,omitempty"`
// PageSize Number of entries to return per page
PageSize *QueryPageSize `form:"pageSize,omitempty" json:"pageSize,omitempty"`
// Limit Number of entries to return
Limit *QueryLimit `form:"limit,omitempty" json:"limit,omitempty"`
// Offset Number of entries to skip
Offset *QueryOffset `form:"offset,omitempty" json:"offset,omitempty"`
// Subject Filtering by multiple subjects.
//
// Usage: `?subject=customer-1&subject=customer-2`
Subject *QueryFilterSubject `form:"subject,omitempty" json:"subject,omitempty"`
// Feature Filtering by multiple features.
//
// Usage: `?feature=feature-1&feature=feature-2`
Feature *QueryFilterFeature `form:"feature,omitempty" json:"feature,omitempty"`
// EntitlementType Filtering by multiple entitlement types.
//
// Usage: `?entitlementType=metered&entitlementType=static`
EntitlementType *QueryFilterEntitlementType `form:"entitlementType,omitempty" json:"entitlementType,omitempty"`
// Order Order by field.
//
// Usage: `?order=ASC`
Order *ListEntitlementsParamsOrder `form:"order,omitempty" json:"order,omitempty"`
// OrderBy Order by field
OrderBy *ListEntitlementsParamsOrderBy `form:"orderBy,omitempty" json:"orderBy,omitempty"`
}
ListEntitlementsParams defines parameters for ListEntitlements.
type ListEntitlementsParamsOrder ¶
type ListEntitlementsParamsOrder string
ListEntitlementsParamsOrder defines parameters for ListEntitlements.
const ( ListEntitlementsParamsOrderSortOrderASC ListEntitlementsParamsOrder = "ASC" ListEntitlementsParamsOrderSortOrderDESC ListEntitlementsParamsOrder = "DESC" )
Defines values for ListEntitlementsParamsOrder.
type ListEntitlementsParamsOrderBy ¶
type ListEntitlementsParamsOrderBy string
ListEntitlementsParamsOrderBy defines parameters for ListEntitlements.
const ( ListEntitlementsParamsOrderByCreatedAt ListEntitlementsParamsOrderBy = "createdAt" ListEntitlementsParamsOrderByUpdatedAt ListEntitlementsParamsOrderBy = "updatedAt" )
Defines values for ListEntitlementsParamsOrderBy.
type ListEntitlementsResponse ¶
type ListEntitlementsResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *ListEntitlementResponse
ApplicationproblemJSON400 *BadRequestProblemResponse
ApplicationproblemJSON401 *UnauthorizedProblemResponse
ApplicationproblemJSONDefault *UnexpectedProblemResponse
}
func ParseListEntitlementsResponse ¶
func ParseListEntitlementsResponse(rsp *http.Response) (*ListEntitlementsResponse, error)
ParseListEntitlementsResponse parses an HTTP response from a ListEntitlementsWithResponse call
func (ListEntitlementsResponse) Status ¶
func (r ListEntitlementsResponse) Status() string
Status returns HTTPResponse.Status
func (ListEntitlementsResponse) StatusCode ¶
func (r ListEntitlementsResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type ListEventsParams ¶
type ListEventsParams struct {
// From Start date-time in RFC 3339 format.
// Inclusive.
From *QueryFrom `form:"from,omitempty" json:"from,omitempty"`
// To End date-time in RFC 3339 format.
// Inclusive.
To *QueryTo `form:"to,omitempty" json:"to,omitempty"`
// Limit Number of events to return
Limit *int `form:"limit,omitempty" json:"limit,omitempty"`
}
ListEventsParams defines parameters for ListEvents.
type ListEventsResponse ¶
type ListEventsResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *[]IngestedEvent
ApplicationproblemJSON400 *BadRequestProblemResponse
ApplicationproblemJSON401 *UnauthorizedProblemResponse
ApplicationproblemJSONDefault *UnexpectedProblemResponse
}
func ParseListEventsResponse ¶
func ParseListEventsResponse(rsp *http.Response) (*ListEventsResponse, error)
ParseListEventsResponse parses an HTTP response from a ListEventsWithResponse call
func (ListEventsResponse) Status ¶
func (r ListEventsResponse) Status() string
Status returns HTTPResponse.Status
func (ListEventsResponse) StatusCode ¶
func (r ListEventsResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type ListFeatureResponse ¶
type ListFeatureResponse struct {
// contains filtered or unexported fields
}
ListFeatureResponse defines model for ListFeatureResponse.
func (ListFeatureResponse) AsListFeatureResponse0 ¶
func (t ListFeatureResponse) AsListFeatureResponse0() (ListFeatureResponse0, error)
AsListFeatureResponse0 returns the union data inside the ListFeatureResponse as a ListFeatureResponse0
func (ListFeatureResponse) AsListFeatureResponse1 ¶
func (t ListFeatureResponse) AsListFeatureResponse1() (ListFeatureResponse1, error)
AsListFeatureResponse1 returns the union data inside the ListFeatureResponse as a ListFeatureResponse1
func (*ListFeatureResponse) FromListFeatureResponse0 ¶
func (t *ListFeatureResponse) FromListFeatureResponse0(v ListFeatureResponse0) error
FromListFeatureResponse0 overwrites any union data inside the ListFeatureResponse as the provided ListFeatureResponse0
func (*ListFeatureResponse) FromListFeatureResponse1 ¶
func (t *ListFeatureResponse) FromListFeatureResponse1(v ListFeatureResponse1) error
FromListFeatureResponse1 overwrites any union data inside the ListFeatureResponse as the provided ListFeatureResponse1
func (ListFeatureResponse) MarshalJSON ¶
func (t ListFeatureResponse) MarshalJSON() ([]byte, error)
func (*ListFeatureResponse) MergeListFeatureResponse0 ¶
func (t *ListFeatureResponse) MergeListFeatureResponse0(v ListFeatureResponse0) error
MergeListFeatureResponse0 performs a merge with any union data inside the ListFeatureResponse, using the provided ListFeatureResponse0
func (*ListFeatureResponse) MergeListFeatureResponse1 ¶
func (t *ListFeatureResponse) MergeListFeatureResponse1(v ListFeatureResponse1) error
MergeListFeatureResponse1 performs a merge with any union data inside the ListFeatureResponse, using the provided ListFeatureResponse1
func (*ListFeatureResponse) UnmarshalJSON ¶
func (t *ListFeatureResponse) UnmarshalJSON(b []byte) error
type ListFeatureResponse0 ¶
type ListFeatureResponse0 = []Feature
ListFeatureResponse0 defines model for .
type ListFeatureResponse1 ¶
type ListFeatureResponse1 struct {
// Items List of features.
Items []Feature `json:"items"`
// Page Current page number.
Page int `json:"page"`
// PageSize Number of features per page.
PageSize int `json:"pageSize"`
// TotalCount Total number of features.
TotalCount int `json:"totalCount"`
}
ListFeatureResponse1 defines model for .
type ListFeaturesParams ¶
type ListFeaturesParams struct {
// Page Page number to return
Page *QueryPage `form:"page,omitempty" json:"page,omitempty"`
// PageSize Number of entries to return per page
PageSize *QueryPageSize `form:"pageSize,omitempty" json:"pageSize,omitempty"`
// Limit Number of entries to return
Limit *QueryLimit `form:"limit,omitempty" json:"limit,omitempty"`
// Offset Number of entries to skip
Offset *QueryOffset `form:"offset,omitempty" json:"offset,omitempty"`
// MeterSlug Filtering by multiple meterSlug.
//
// Usage: `?meterSlug=meter-1&meterSlug=meter-2`
MeterSlug *QueryFilterMeterSlug `form:"meterSlug,omitempty" json:"meterSlug,omitempty"`
// Order Order by field.
//
// Usage: `?order=ASC`
Order *ListFeaturesParamsOrder `form:"order,omitempty" json:"order,omitempty"`
// OrderBy Order by field
OrderBy *ListFeaturesParamsOrderBy `form:"orderBy,omitempty" json:"orderBy,omitempty"`
// IncludeArchived Include archived features.
IncludeArchived *bool `form:"includeArchived,omitempty" json:"includeArchived,omitempty"`
}
ListFeaturesParams defines parameters for ListFeatures.
type ListFeaturesParamsOrder ¶
type ListFeaturesParamsOrder string
ListFeaturesParamsOrder defines parameters for ListFeatures.
const ( ListFeaturesParamsOrderSortOrderASC ListFeaturesParamsOrder = "ASC" ListFeaturesParamsOrderSortOrderDESC ListFeaturesParamsOrder = "DESC" )
Defines values for ListFeaturesParamsOrder.
type ListFeaturesParamsOrderBy ¶
type ListFeaturesParamsOrderBy string
ListFeaturesParamsOrderBy defines parameters for ListFeatures.
const ( ListFeaturesParamsOrderByCreatedAt ListFeaturesParamsOrderBy = "createdAt" ListFeaturesParamsOrderById ListFeaturesParamsOrderBy = "id" ListFeaturesParamsOrderByUpdatedAt ListFeaturesParamsOrderBy = "updatedAt" )
Defines values for ListFeaturesParamsOrderBy.
type ListFeaturesResponse ¶
type ListFeaturesResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *ListFeatureResponse
ApplicationproblemJSON400 *BadRequestProblemResponse
ApplicationproblemJSON401 *UnauthorizedProblemResponse
ApplicationproblemJSONDefault *UnexpectedProblemResponse
}
func ParseListFeaturesResponse ¶
func ParseListFeaturesResponse(rsp *http.Response) (*ListFeaturesResponse, error)
ParseListFeaturesResponse parses an HTTP response from a ListFeaturesWithResponse call
func (ListFeaturesResponse) Status ¶
func (r ListFeaturesResponse) Status() string
Status returns HTTPResponse.Status
func (ListFeaturesResponse) StatusCode ¶
func (r ListFeaturesResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type ListGrantsParams ¶
type ListGrantsParams struct {
// Page Page number to return
Page *QueryPage `form:"page,omitempty" json:"page,omitempty"`
// PageSize Number of entries to return per page
PageSize *QueryPageSize `form:"pageSize,omitempty" json:"pageSize,omitempty"`
// Limit Number of entries to return
Limit *QueryLimit `form:"limit,omitempty" json:"limit,omitempty"`
// Offset Number of entries to skip
Offset *QueryOffset `form:"offset,omitempty" json:"offset,omitempty"`
// Subject Filtering by multiple subjects.
//
// Usage: `?subject=customer-1&subject=customer-2`
Subject *QueryFilterSubject `form:"subject,omitempty" json:"subject,omitempty"`
// Feature Filtering by multiple features.
//
// Usage: `?feature=feature-1&feature=feature-2`
Feature *QueryFilterFeature `form:"feature,omitempty" json:"feature,omitempty"`
// Order Order by field.
//
// Usage: `?order=ASC`
Order *ListGrantsParamsOrder `form:"order,omitempty" json:"order,omitempty"`
// OrderBy Order by field
OrderBy *ListGrantsParamsOrderBy `form:"orderBy,omitempty" json:"orderBy,omitempty"`
// IncludeDeleted Include deleted entries.
IncludeDeleted *IncludeDeleted `form:"includeDeleted,omitempty" json:"includeDeleted,omitempty"`
}
ListGrantsParams defines parameters for ListGrants.
type ListGrantsParamsOrder ¶
type ListGrantsParamsOrder string
ListGrantsParamsOrder defines parameters for ListGrants.
const ( ListGrantsParamsOrderSortOrderASC ListGrantsParamsOrder = "ASC" ListGrantsParamsOrderSortOrderDESC ListGrantsParamsOrder = "DESC" )
Defines values for ListGrantsParamsOrder.
type ListGrantsParamsOrderBy ¶
type ListGrantsParamsOrderBy string
ListGrantsParamsOrderBy defines parameters for ListGrants.
const ( ListGrantsParamsOrderByCreatedAt ListGrantsParamsOrderBy = "createdAt" ListGrantsParamsOrderById ListGrantsParamsOrderBy = "id" ListGrantsParamsOrderByUpdatedAt ListGrantsParamsOrderBy = "updatedAt" )
Defines values for ListGrantsParamsOrderBy.
type ListGrantsResponse ¶
type ListGrantsResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *ListEntitlementGrantResponse
ApplicationproblemJSON401 *UnauthorizedProblemResponse
ApplicationproblemJSONDefault *UnexpectedProblemResponse
}
func ParseListGrantsResponse ¶
func ParseListGrantsResponse(rsp *http.Response) (*ListGrantsResponse, error)
ParseListGrantsResponse parses an HTTP response from a ListGrantsWithResponse call
func (ListGrantsResponse) Status ¶
func (r ListGrantsResponse) Status() string
Status returns HTTPResponse.Status
func (ListGrantsResponse) StatusCode ¶
func (r ListGrantsResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type ListMeterSubjectsResponse ¶
type ListMeterSubjectsResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *[]string
ApplicationproblemJSON400 *BadRequestProblemResponse
ApplicationproblemJSONDefault *UnexpectedProblemResponse
}
func ParseListMeterSubjectsResponse ¶
func ParseListMeterSubjectsResponse(rsp *http.Response) (*ListMeterSubjectsResponse, error)
ParseListMeterSubjectsResponse parses an HTTP response from a ListMeterSubjectsWithResponse call
func (ListMeterSubjectsResponse) Status ¶
func (r ListMeterSubjectsResponse) Status() string
Status returns HTTPResponse.Status
func (ListMeterSubjectsResponse) StatusCode ¶
func (r ListMeterSubjectsResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type ListMetersResponse ¶
type ListMetersResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *[]Meter
ApplicationproblemJSON401 *UnauthorizedProblemResponse
ApplicationproblemJSONDefault *UnexpectedProblemResponse
}
func ParseListMetersResponse ¶
func ParseListMetersResponse(rsp *http.Response) (*ListMetersResponse, error)
ParseListMetersResponse parses an HTTP response from a ListMetersWithResponse call
func (ListMetersResponse) Status ¶
func (r ListMetersResponse) Status() string
Status returns HTTPResponse.Status
func (ListMetersResponse) StatusCode ¶
func (r ListMetersResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type ListNotificationChannelsParams ¶
type ListNotificationChannelsParams struct {
// Page Page number to return
Page *QueryPage `form:"page,omitempty" json:"page,omitempty"`
// PageSize Number of entries to return per page
PageSize *QueryPageSize `form:"pageSize,omitempty" json:"pageSize,omitempty"`
// OrderBy Order by field
OrderBy *ListNotificationChannelsParamsOrderBy `form:"orderBy,omitempty" json:"orderBy,omitempty"`
// Order Order by field.
//
// Usage: `?order=ASC`
Order *ListNotificationChannelsParamsOrder `form:"order,omitempty" json:"order,omitempty"`
// IncludeDisabled Include disabled entries.
IncludeDisabled *QueryIncludeDisabled `form:"includeDisabled,omitempty" json:"includeDisabled,omitempty"`
// IncludeDeleted Include deleted entries.
IncludeDeleted *IncludeDeleted `form:"includeDeleted,omitempty" json:"includeDeleted,omitempty"`
}
ListNotificationChannelsParams defines parameters for ListNotificationChannels.
type ListNotificationChannelsParamsOrder ¶
type ListNotificationChannelsParamsOrder string
ListNotificationChannelsParamsOrder defines parameters for ListNotificationChannels.
const ( ListNotificationChannelsParamsOrderSortOrderASC ListNotificationChannelsParamsOrder = "ASC" ListNotificationChannelsParamsOrderSortOrderDESC ListNotificationChannelsParamsOrder = "DESC" )
Defines values for ListNotificationChannelsParamsOrder.
type ListNotificationChannelsParamsOrderBy ¶
type ListNotificationChannelsParamsOrderBy string
ListNotificationChannelsParamsOrderBy defines parameters for ListNotificationChannels.
const ( ListNotificationChannelsParamsOrderByCreatedAt ListNotificationChannelsParamsOrderBy = "createdAt" ListNotificationChannelsParamsOrderById ListNotificationChannelsParamsOrderBy = "id" ListNotificationChannelsParamsOrderByType ListNotificationChannelsParamsOrderBy = "type" ListNotificationChannelsParamsOrderByUpdatedAt ListNotificationChannelsParamsOrderBy = "updatedAt" )
Defines values for ListNotificationChannelsParamsOrderBy.
type ListNotificationChannelsResponse ¶
type ListNotificationChannelsResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *NotificationChannelsResponse
ApplicationproblemJSON400 *BadRequestProblemResponse
ApplicationproblemJSON401 *UnauthorizedProblemResponse
ApplicationproblemJSONDefault *UnexpectedProblemResponse
}
func ParseListNotificationChannelsResponse ¶
func ParseListNotificationChannelsResponse(rsp *http.Response) (*ListNotificationChannelsResponse, error)
ParseListNotificationChannelsResponse parses an HTTP response from a ListNotificationChannelsWithResponse call
func (ListNotificationChannelsResponse) Status ¶
func (r ListNotificationChannelsResponse) Status() string
Status returns HTTPResponse.Status
func (ListNotificationChannelsResponse) StatusCode ¶
func (r ListNotificationChannelsResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type ListNotificationEventsParams ¶
type ListNotificationEventsParams struct {
// Page Page number to return
Page *QueryPage `form:"page,omitempty" json:"page,omitempty"`
// PageSize Number of entries to return per page
PageSize *QueryPageSize `form:"pageSize,omitempty" json:"pageSize,omitempty"`
// OrderBy Order by field
OrderBy *ListNotificationEventsParamsOrderBy `form:"orderBy,omitempty" json:"orderBy,omitempty"`
// Order Order by field.
//
// Usage: `?order=ASC`
Order *ListNotificationEventsParamsOrder `form:"order,omitempty" json:"order,omitempty"`
// From Start date-time in RFC 3339 format.
// Inclusive.
From *QueryFrom `form:"from,omitempty" json:"from,omitempty"`
// To End date-time in RFC 3339 format.
// Inclusive.
To *QueryTo `form:"to,omitempty" json:"to,omitempty"`
// Feature Filtering by multiple features.
//
// Usage: `?feature=feature-1&feature=feature-2`
Feature *QueryFilterFeature `form:"feature,omitempty" json:"feature,omitempty"`
// Subject Filtering by multiple subjects.
//
// Usage: `?subject=customer-1&subject=customer-2`
Subject *QueryFilterSubject `form:"subject,omitempty" json:"subject,omitempty"`
}
ListNotificationEventsParams defines parameters for ListNotificationEvents.
type ListNotificationEventsParamsOrder ¶
type ListNotificationEventsParamsOrder string
ListNotificationEventsParamsOrder defines parameters for ListNotificationEvents.
const ( ListNotificationEventsParamsOrderSortOrderASC ListNotificationEventsParamsOrder = "ASC" ListNotificationEventsParamsOrderSortOrderDESC ListNotificationEventsParamsOrder = "DESC" )
Defines values for ListNotificationEventsParamsOrder.
type ListNotificationEventsParamsOrderBy ¶
type ListNotificationEventsParamsOrderBy string
ListNotificationEventsParamsOrderBy defines parameters for ListNotificationEvents.
const ( ListNotificationEventsParamsOrderByCreatedAt ListNotificationEventsParamsOrderBy = "createdAt" ListNotificationEventsParamsOrderById ListNotificationEventsParamsOrderBy = "id" )
Defines values for ListNotificationEventsParamsOrderBy.
type ListNotificationEventsResponse ¶
type ListNotificationEventsResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *NotificationEventsResponse
ApplicationproblemJSON400 *BadRequestProblemResponse
ApplicationproblemJSON401 *UnauthorizedProblemResponse
ApplicationproblemJSONDefault *UnexpectedProblemResponse
}
func ParseListNotificationEventsResponse ¶
func ParseListNotificationEventsResponse(rsp *http.Response) (*ListNotificationEventsResponse, error)
ParseListNotificationEventsResponse parses an HTTP response from a ListNotificationEventsWithResponse call
func (ListNotificationEventsResponse) Status ¶
func (r ListNotificationEventsResponse) Status() string
Status returns HTTPResponse.Status
func (ListNotificationEventsResponse) StatusCode ¶
func (r ListNotificationEventsResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type ListNotificationRulesParams ¶
type ListNotificationRulesParams struct {
// Page Page number to return
Page *QueryPage `form:"page,omitempty" json:"page,omitempty"`
// PageSize Number of entries to return per page
PageSize *QueryPageSize `form:"pageSize,omitempty" json:"pageSize,omitempty"`
// OrderBy Order by field
OrderBy *ListNotificationRulesParamsOrderBy `form:"orderBy,omitempty" json:"orderBy,omitempty"`
// Order Order by field.
//
// Usage: `?order=ASC`
Order *ListNotificationRulesParamsOrder `form:"order,omitempty" json:"order,omitempty"`
// IncludeDisabled Include disabled entries.
IncludeDisabled *QueryIncludeDisabled `form:"includeDisabled,omitempty" json:"includeDisabled,omitempty"`
// IncludeDeleted Include deleted entries.
IncludeDeleted *IncludeDeleted `form:"includeDeleted,omitempty" json:"includeDeleted,omitempty"`
// Feature Filtering by multiple features.
//
// Usage: `?feature=feature-1&feature=feature-2`
Feature *QueryFilterFeature `form:"feature,omitempty" json:"feature,omitempty"`
// Channel Filtering by multiple notification channels.
//
// Usage: `?channel=channel-1&channel=channel-2`
Channel *QueryFilterChannel `form:"channel,omitempty" json:"channel,omitempty"`
}
ListNotificationRulesParams defines parameters for ListNotificationRules.
type ListNotificationRulesParamsOrder ¶
type ListNotificationRulesParamsOrder string
ListNotificationRulesParamsOrder defines parameters for ListNotificationRules.
const ( SortOrderASC ListNotificationRulesParamsOrder = "ASC" SortOrderDESC ListNotificationRulesParamsOrder = "DESC" )
Defines values for ListNotificationRulesParamsOrder.
type ListNotificationRulesParamsOrderBy ¶
type ListNotificationRulesParamsOrderBy string
ListNotificationRulesParamsOrderBy defines parameters for ListNotificationRules.
const ( ListNotificationRulesParamsOrderByCreatedAt ListNotificationRulesParamsOrderBy = "createdAt" ListNotificationRulesParamsOrderById ListNotificationRulesParamsOrderBy = "id" ListNotificationRulesParamsOrderByType ListNotificationRulesParamsOrderBy = "type" ListNotificationRulesParamsOrderByUpdatedAt ListNotificationRulesParamsOrderBy = "updatedAt" )
Defines values for ListNotificationRulesParamsOrderBy.
type ListNotificationRulesResponse ¶
type ListNotificationRulesResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *NotificationRulesResponse
ApplicationproblemJSON400 *BadRequestProblemResponse
ApplicationproblemJSON401 *UnauthorizedProblemResponse
ApplicationproblemJSONDefault *UnexpectedProblemResponse
}
func ParseListNotificationRulesResponse ¶
func ParseListNotificationRulesResponse(rsp *http.Response) (*ListNotificationRulesResponse, error)
ParseListNotificationRulesResponse parses an HTTP response from a ListNotificationRulesWithResponse call
func (ListNotificationRulesResponse) Status ¶
func (r ListNotificationRulesResponse) Status() string
Status returns HTTPResponse.Status
func (ListNotificationRulesResponse) StatusCode ¶
func (r ListNotificationRulesResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type ListPortalTokensParams ¶
type ListPortalTokensParams struct {
// Limit Number of portal tokens to return. Default is 25.
Limit *int `form:"limit,omitempty" json:"limit,omitempty"`
}
ListPortalTokensParams defines parameters for ListPortalTokens.
type ListPortalTokensResponse ¶
type ListPortalTokensResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *[]PortalToken
ApplicationproblemJSON400 *BadRequestProblemResponse
ApplicationproblemJSON401 *UnauthorizedProblemResponse
ApplicationproblemJSON501 *NotImplementedProblemResponse
ApplicationproblemJSONDefault *UnexpectedProblemResponse
}
func ParseListPortalTokensResponse ¶
func ParseListPortalTokensResponse(rsp *http.Response) (*ListPortalTokensResponse, error)
ParseListPortalTokensResponse parses an HTTP response from a ListPortalTokensWithResponse call
func (ListPortalTokensResponse) Status ¶
func (r ListPortalTokensResponse) Status() string
Status returns HTTPResponse.Status
func (ListPortalTokensResponse) StatusCode ¶
func (r ListPortalTokensResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type ListSubjectEntitlementsParams ¶
type ListSubjectEntitlementsParams struct {
// IncludeDeleted Include deleted entries.
IncludeDeleted *IncludeDeleted `form:"includeDeleted,omitempty" json:"includeDeleted,omitempty"`
}
ListSubjectEntitlementsParams defines parameters for ListSubjectEntitlements.
type ListSubjectEntitlementsResponse ¶
type ListSubjectEntitlementsResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *[]Entitlement
ApplicationproblemJSON401 *UnauthorizedProblemResponse
ApplicationproblemJSONDefault *UnexpectedProblemResponse
}
func ParseListSubjectEntitlementsResponse ¶
func ParseListSubjectEntitlementsResponse(rsp *http.Response) (*ListSubjectEntitlementsResponse, error)
ParseListSubjectEntitlementsResponse parses an HTTP response from a ListSubjectEntitlementsWithResponse call
func (ListSubjectEntitlementsResponse) Status ¶
func (r ListSubjectEntitlementsResponse) Status() string
Status returns HTTPResponse.Status
func (ListSubjectEntitlementsResponse) StatusCode ¶
func (r ListSubjectEntitlementsResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type ListSubjectsResponse ¶
type ListSubjectsResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *[]Subject
ApplicationproblemJSON401 *UnauthorizedProblemResponse
ApplicationproblemJSONDefault *UnexpectedProblemResponse
}
func ParseListSubjectsResponse ¶
func ParseListSubjectsResponse(rsp *http.Response) (*ListSubjectsResponse, error)
ParseListSubjectsResponse parses an HTTP response from a ListSubjectsWithResponse call
func (ListSubjectsResponse) Status ¶
func (r ListSubjectsResponse) Status() string
Status returns HTTPResponse.Status
func (ListSubjectsResponse) StatusCode ¶
func (r ListSubjectsResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type MeasureUsageFrom ¶
type MeasureUsageFrom struct {
// contains filtered or unexported fields
}
MeasureUsageFrom The time from which usage is measured, defaults to the entitlement creation time. The provided value is truncated to the granularity of the underlying meter.
func (MeasureUsageFrom) AsMeasureUsageFromEnum ¶
func (t MeasureUsageFrom) AsMeasureUsageFromEnum() (MeasureUsageFromEnum, error)
AsMeasureUsageFromEnum returns the union data inside the MeasureUsageFrom as a MeasureUsageFromEnum
func (MeasureUsageFrom) AsMeasureUsageFromTime ¶
func (t MeasureUsageFrom) AsMeasureUsageFromTime() (MeasureUsageFromTime, error)
AsMeasureUsageFromTime returns the union data inside the MeasureUsageFrom as a MeasureUsageFromTime
func (*MeasureUsageFrom) FromMeasureUsageFromEnum ¶
func (t *MeasureUsageFrom) FromMeasureUsageFromEnum(v MeasureUsageFromEnum) error
FromMeasureUsageFromEnum overwrites any union data inside the MeasureUsageFrom as the provided MeasureUsageFromEnum
func (*MeasureUsageFrom) FromMeasureUsageFromTime ¶
func (t *MeasureUsageFrom) FromMeasureUsageFromTime(v MeasureUsageFromTime) error
FromMeasureUsageFromTime overwrites any union data inside the MeasureUsageFrom as the provided MeasureUsageFromTime
func (MeasureUsageFrom) MarshalJSON ¶
func (t MeasureUsageFrom) MarshalJSON() ([]byte, error)
func (*MeasureUsageFrom) MergeMeasureUsageFromEnum ¶
func (t *MeasureUsageFrom) MergeMeasureUsageFromEnum(v MeasureUsageFromEnum) error
MergeMeasureUsageFromEnum performs a merge with any union data inside the MeasureUsageFrom, using the provided MeasureUsageFromEnum
func (*MeasureUsageFrom) MergeMeasureUsageFromTime ¶
func (t *MeasureUsageFrom) MergeMeasureUsageFromTime(v MeasureUsageFromTime) error
MergeMeasureUsageFromTime performs a merge with any union data inside the MeasureUsageFrom, using the provided MeasureUsageFromTime
func (*MeasureUsageFrom) UnmarshalJSON ¶
func (t *MeasureUsageFrom) UnmarshalJSON(b []byte) error
type MeasureUsageFromEnum ¶
type MeasureUsageFromEnum string
MeasureUsageFromEnum defines model for MeasureUsageFromEnum.
const ( CURRENTPERIODSTART MeasureUsageFromEnum = "CURRENT_PERIOD_START" NOW MeasureUsageFromEnum = "NOW" )
Defines values for MeasureUsageFromEnum.
type MeasureUsageFromTime ¶
MeasureUsageFromTime defines model for MeasureUsageFromTime.
type MeterAggregation ¶
type MeterAggregation = models.MeterAggregation
MeterAggregation The aggregation type to use for the meter.
type MeterQueryResult ¶
type MeterQueryResult struct {
Data []MeterQueryRow `json:"data"`
From *time.Time `json:"from,omitempty"`
To *time.Time `json:"to,omitempty"`
// WindowSize Aggregation window size.
WindowSize *WindowSize `json:"windowSize,omitempty"`
}
MeterQueryResult The result of a meter query.
type MeterQueryRow ¶
type MeterQueryRow = models.MeterQueryRow
MeterQueryRow A row in the result of a meter query.
type NotFoundProblemResponse ¶
type NotFoundProblemResponse = Problem
NotFoundProblemResponse A Problem Details object (RFC 7807). Additional properties specific to the problem type may be present.
type NotImplementedProblemResponse ¶
type NotImplementedProblemResponse = Problem
NotImplementedProblemResponse A Problem Details object (RFC 7807). Additional properties specific to the problem type may be present.
type NotificationChannel ¶
type NotificationChannel struct {
// contains filtered or unexported fields
}
NotificationChannel defines model for NotificationChannel.
func (NotificationChannel) AsNotificationChannelWebhook ¶
func (t NotificationChannel) AsNotificationChannelWebhook() (NotificationChannelWebhook, error)
AsNotificationChannelWebhook returns the union data inside the NotificationChannel as a NotificationChannelWebhook
func (NotificationChannel) Discriminator ¶
func (t NotificationChannel) Discriminator() (string, error)
func (*NotificationChannel) FromNotificationChannelWebhook ¶
func (t *NotificationChannel) FromNotificationChannelWebhook(v NotificationChannelWebhook) error
FromNotificationChannelWebhook overwrites any union data inside the NotificationChannel as the provided NotificationChannelWebhook
func (NotificationChannel) MarshalJSON ¶
func (t NotificationChannel) MarshalJSON() ([]byte, error)
func (*NotificationChannel) MergeNotificationChannelWebhook ¶
func (t *NotificationChannel) MergeNotificationChannelWebhook(v NotificationChannelWebhook) error
MergeNotificationChannelWebhook performs a merge with any union data inside the NotificationChannel, using the provided NotificationChannelWebhook
func (*NotificationChannel) UnmarshalJSON ¶
func (t *NotificationChannel) UnmarshalJSON(b []byte) error
func (NotificationChannel) ValueByDiscriminator ¶
func (t NotificationChannel) ValueByDiscriminator() (interface{}, error)
type NotificationChannelCommon ¶
type NotificationChannelCommon struct {
// CreatedAt Timestamp when the channel was created.
CreatedAt time.Time `json:"createdAt"`
// DeletedAt Timestamp when the channel was deleted.
DeletedAt *time.Time `json:"deletedAt,omitempty"`
// Disabled Whether the channel is disabled or not.
Disabled bool `json:"disabled"`
// Id A unique identifier for the notification channel.
Id string `json:"id"`
// Name User friendly name of the channel.
Name string `json:"name"`
// Type The type of the notification channel.
Type NotificationChannelType `json:"type"`
// UpdatedAt Timestamp when the channel was modified.
UpdatedAt time.Time `json:"updatedAt"`
}
NotificationChannelCommon defines model for NotificationChannelCommon.
type NotificationChannelCommonCreateRequest ¶
type NotificationChannelCommonCreateRequest struct {
// Disabled Whether the channel is disabled or not.
Disabled *bool `json:"disabled,omitempty"`
// Name User friendly name of the channel.
Name string `json:"name"`
// Type The type of the notification channel.
Type NotificationChannelType `json:"type"`
}
NotificationChannelCommonCreateRequest Common fields for create notification channel request.
type NotificationChannelCreateRequest ¶
type NotificationChannelCreateRequest struct {
// contains filtered or unexported fields
}
NotificationChannelCreateRequest defines model for NotificationChannelCreateRequest.
func (NotificationChannelCreateRequest) AsNotificationChannelWebhookCreateRequest ¶
func (t NotificationChannelCreateRequest) AsNotificationChannelWebhookCreateRequest() (NotificationChannelWebhookCreateRequest, error)
AsNotificationChannelWebhookCreateRequest returns the union data inside the NotificationChannelCreateRequest as a NotificationChannelWebhookCreateRequest
func (NotificationChannelCreateRequest) Discriminator ¶
func (t NotificationChannelCreateRequest) Discriminator() (string, error)
func (*NotificationChannelCreateRequest) FromNotificationChannelWebhookCreateRequest ¶
func (t *NotificationChannelCreateRequest) FromNotificationChannelWebhookCreateRequest(v NotificationChannelWebhookCreateRequest) error
FromNotificationChannelWebhookCreateRequest overwrites any union data inside the NotificationChannelCreateRequest as the provided NotificationChannelWebhookCreateRequest
func (NotificationChannelCreateRequest) MarshalJSON ¶
func (t NotificationChannelCreateRequest) MarshalJSON() ([]byte, error)
func (*NotificationChannelCreateRequest) MergeNotificationChannelWebhookCreateRequest ¶
func (t *NotificationChannelCreateRequest) MergeNotificationChannelWebhookCreateRequest(v NotificationChannelWebhookCreateRequest) error
MergeNotificationChannelWebhookCreateRequest performs a merge with any union data inside the NotificationChannelCreateRequest, using the provided NotificationChannelWebhookCreateRequest
func (*NotificationChannelCreateRequest) UnmarshalJSON ¶
func (t *NotificationChannelCreateRequest) UnmarshalJSON(b []byte) error
func (NotificationChannelCreateRequest) ValueByDiscriminator ¶
func (t NotificationChannelCreateRequest) ValueByDiscriminator() (interface{}, error)
type NotificationChannelMeta ¶
type NotificationChannelMeta struct {
// Id A unique identifier for the notification channel.
Id string `json:"id"`
// Type The type of the notification channel.
Type NotificationChannelType `json:"type"`
}
NotificationChannelMeta Limited representation of notification channel which includes only the channel identifier and its type.
type NotificationChannelType ¶
type NotificationChannelType string
NotificationChannelType The type of the notification channel.
const (
WEBHOOK NotificationChannelType = "WEBHOOK"
)
Defines values for NotificationChannelType.
type NotificationChannelWebhook ¶
type NotificationChannelWebhook struct {
// CreatedAt Timestamp when the channel was created.
CreatedAt time.Time `json:"createdAt"`
// CustomHeaders Custom HTTP headers sent as part of the webhook request.
CustomHeaders *map[string]interface{} `json:"customHeaders"`
// DeletedAt Timestamp when the channel was deleted.
DeletedAt *time.Time `json:"deletedAt,omitempty"`
// Disabled Whether the channel is disabled or not.
Disabled bool `json:"disabled"`
// Id A unique identifier for the notification channel.
Id string `json:"id"`
// Name User friendly name of the channel.
Name string `json:"name"`
// SigningSecret Signing secret used for webhook request validation on the receiving end.
//
// Format: `base64` encoded random bytes optionally prefixed with `whsec_`. Recommended size: 24
SigningSecret string `json:"signingSecret"`
// Type The type of the notification channel.
Type NotificationChannelType `json:"type"`
// UpdatedAt Timestamp when the channel was modified.
UpdatedAt time.Time `json:"updatedAt"`
// Url Webhook URL where the notification is sent.
Url string `json:"url"`
}
NotificationChannelWebhook defines model for NotificationChannelWebhook.
type NotificationChannelWebhookCreateRequest ¶
type NotificationChannelWebhookCreateRequest struct {
// CustomHeaders Custom HTTP headers sent as part of the webhook request.
CustomHeaders *map[string]interface{} `json:"customHeaders"`
// Disabled Whether the channel is disabled or not.
Disabled *bool `json:"disabled,omitempty"`
// Name User friendly name of the channel.
Name string `json:"name"`
// SigningSecret Signing secret used for webhook request validation on the receiving end. Automatically generated if not provided.
//
// Format: `base64` encoded random bytes optionally prefixed with `whsec_`. Recommended size: 24
SigningSecret *string `json:"signingSecret"`
// Type The type of the notification channel.
Type NotificationChannelType `json:"type"`
// Url Webhook URL where the notification is sent.
Url string `json:"url"`
}
NotificationChannelWebhookCreateRequest defines model for NotificationChannelWebhookCreateRequest.
type NotificationChannels ¶
type NotificationChannels = []NotificationChannel
NotificationChannels List of channels.
type NotificationChannelsResponse ¶
type NotificationChannelsResponse struct {
// Items List of channels.
Items NotificationChannels `json:"items"`
// Page Current page number.
Page int `json:"page"`
// PageSize Number of channels per page.
PageSize int `json:"pageSize"`
// TotalCount Total number of channels.
TotalCount int `json:"totalCount"`
}
NotificationChannelsResponse defines model for NotificationChannelsResponse.
type NotificationEvent ¶
type NotificationEvent struct {
// CreatedAt Timestamp when the notification event was created.
CreatedAt time.Time `json:"createdAt"`
// DeliveryStatus The delivery status of the notification event.
DeliveryStatus []NotificationEventDeliveryStatus `json:"deliveryStatus"`
// Id A unique identifier for the notification event.
Id string `json:"id"`
// Payload The actual payload sent to channel as part of the notification event.
Payload NotificationEventPayload `json:"payload"`
Rule NotificationRule `json:"rule"`
// Type The type of the notification event.
Type NotificationEventType `json:"type"`
}
NotificationEvent Notification event generated by the system based on the criteria defined in the corresponding a notification rule.
The `payload` field contains the actual message sent to the notification channel.
type NotificationEventBalanceThresholdPayload ¶
type NotificationEventBalanceThresholdPayload struct {
Data struct {
// Entitlement Metered entitlements are useful for many different use cases, from setting up usage based access to implementing complex credit systems. Access is determined based on feature usage using a balance calculation (the "usage allowance" provided by the issued grants is "burnt down" by the usage).
Entitlement EntitlementMetered `json:"entitlement"`
// Feature A feature is a feature or service offered to a customer.
// For example: CPU-Hours, Tokens, API Calls, etc.
Feature Feature `json:"feature"`
// Subject A subject is a unique identifier for a user or entity.
Subject Subject `json:"subject"`
// Threshold Threshold value with multiple supported types.
Threshold NotificationRuleBalanceThresholdValue `json:"threshold"`
Value EntitlementValue `json:"value"`
} `json:"data"`
// Id A unique identifier for the notification event the payload belongs to.
Id string `json:"id"`
// Timestamp Timestamp when the notification event was created.
Timestamp time.Time `json:"timestamp"`
// Type The type of the notification event.
Type NotificationEventType `json:"type"`
}
NotificationEventBalanceThresholdPayload defines model for NotificationEventBalanceThresholdPayload.
type NotificationEventCommonPayload ¶
type NotificationEventCommonPayload struct {
// Id A unique identifier for the notification event the payload belongs to.
Id string `json:"id"`
// Timestamp Timestamp when the notification event was created.
Timestamp time.Time `json:"timestamp"`
// Type The type of the notification event.
Type NotificationEventType `json:"type"`
}
NotificationEventCommonPayload Common fields for notification event payload.
type NotificationEventCreateRequest ¶
type NotificationEventCreateRequest struct {
// Payload The actual payload sent to channel as part of the notification event.
Payload NotificationEventPayload `json:"payload"`
RuleId string `json:"ruleId"`
// Type The type of the notification event.
Type NotificationEventType `json:"type"`
}
NotificationEventCreateRequest Request for creating new notification event with specific type and payload.
type NotificationEventDeliveryStatus ¶
type NotificationEventDeliveryStatus struct {
// Channel Limited representation of notification channel which includes only the channel identifier and its type.
Channel NotificationChannelMeta `json:"channel"`
Reason *string `json:"reason,omitempty"`
State NotificationEventDeliveryStatusState `json:"state"`
UpdatedAt time.Time `json:"updatedAt"`
}
NotificationEventDeliveryStatus defines model for NotificationEventDeliveryStatus.
type NotificationEventDeliveryStatusState ¶
type NotificationEventDeliveryStatusState string
NotificationEventDeliveryStatusState defines model for NotificationEventDeliveryStatus.State.
const ( FAILED NotificationEventDeliveryStatusState = "FAILED" PENDING NotificationEventDeliveryStatusState = "PENDING" SENDING NotificationEventDeliveryStatusState = "SENDING" SUCCESS NotificationEventDeliveryStatusState = "SUCCESS" )
Defines values for NotificationEventDeliveryStatusState.
type NotificationEventPayload ¶
type NotificationEventPayload struct {
// contains filtered or unexported fields
}
NotificationEventPayload The actual payload sent to channel as part of the notification event.
func (NotificationEventPayload) AsNotificationEventBalanceThresholdPayload ¶
func (t NotificationEventPayload) AsNotificationEventBalanceThresholdPayload() (NotificationEventBalanceThresholdPayload, error)
AsNotificationEventBalanceThresholdPayload returns the union data inside the NotificationEventPayload as a NotificationEventBalanceThresholdPayload
func (NotificationEventPayload) Discriminator ¶
func (t NotificationEventPayload) Discriminator() (string, error)
func (*NotificationEventPayload) FromNotificationEventBalanceThresholdPayload ¶
func (t *NotificationEventPayload) FromNotificationEventBalanceThresholdPayload(v NotificationEventBalanceThresholdPayload) error
FromNotificationEventBalanceThresholdPayload overwrites any union data inside the NotificationEventPayload as the provided NotificationEventBalanceThresholdPayload
func (NotificationEventPayload) MarshalJSON ¶
func (t NotificationEventPayload) MarshalJSON() ([]byte, error)
func (*NotificationEventPayload) MergeNotificationEventBalanceThresholdPayload ¶
func (t *NotificationEventPayload) MergeNotificationEventBalanceThresholdPayload(v NotificationEventBalanceThresholdPayload) error
MergeNotificationEventBalanceThresholdPayload performs a merge with any union data inside the NotificationEventPayload, using the provided NotificationEventBalanceThresholdPayload
func (*NotificationEventPayload) UnmarshalJSON ¶
func (t *NotificationEventPayload) UnmarshalJSON(b []byte) error
func (NotificationEventPayload) ValueByDiscriminator ¶
func (t NotificationEventPayload) ValueByDiscriminator() (interface{}, error)
type NotificationEventType ¶
type NotificationEventType string
NotificationEventType The type of the notification event.
const (
EntitlementsBalanceThreshold NotificationEventType = "entitlements.balance.threshold"
)
Defines values for NotificationEventType.
type NotificationEvents ¶
type NotificationEvents = []NotificationEvent
NotificationEvents List of notification events.
type NotificationEventsResponse ¶
type NotificationEventsResponse struct {
// Items List of notification events.
Items NotificationEvents `json:"items"`
// Page Current page number.
Page int `json:"page"`
// PageSize Number of rules per page.
PageSize int `json:"pageSize"`
// TotalCount Total number of rules.
TotalCount int `json:"totalCount"`
}
NotificationEventsResponse defines model for NotificationEventsResponse.
type NotificationRule ¶
type NotificationRule struct {
// contains filtered or unexported fields
}
NotificationRule defines model for NotificationRule.
func (NotificationRule) AsNotificationRuleBalanceThreshold ¶
func (t NotificationRule) AsNotificationRuleBalanceThreshold() (NotificationRuleBalanceThreshold, error)
AsNotificationRuleBalanceThreshold returns the union data inside the NotificationRule as a NotificationRuleBalanceThreshold
func (NotificationRule) Discriminator ¶
func (t NotificationRule) Discriminator() (string, error)
func (*NotificationRule) FromNotificationRuleBalanceThreshold ¶
func (t *NotificationRule) FromNotificationRuleBalanceThreshold(v NotificationRuleBalanceThreshold) error
FromNotificationRuleBalanceThreshold overwrites any union data inside the NotificationRule as the provided NotificationRuleBalanceThreshold
func (NotificationRule) MarshalJSON ¶
func (t NotificationRule) MarshalJSON() ([]byte, error)
func (*NotificationRule) MergeNotificationRuleBalanceThreshold ¶
func (t *NotificationRule) MergeNotificationRuleBalanceThreshold(v NotificationRuleBalanceThreshold) error
MergeNotificationRuleBalanceThreshold performs a merge with any union data inside the NotificationRule, using the provided NotificationRuleBalanceThreshold
func (*NotificationRule) UnmarshalJSON ¶
func (t *NotificationRule) UnmarshalJSON(b []byte) error
func (NotificationRule) ValueByDiscriminator ¶
func (t NotificationRule) ValueByDiscriminator() (interface{}, error)
type NotificationRuleBalanceThreshold ¶
type NotificationRuleBalanceThreshold struct {
// Channels List of notification channels the rule applies to.
Channels []NotificationChannelMeta `json:"channels"`
// CreatedAt Timestamp when the rule was created.
CreatedAt time.Time `json:"createdAt"`
// DeletedAt Timestamp when the channel was deleted.
DeletedAt *time.Time `json:"deletedAt,omitempty"`
// Disabled Whether the rule is disabled or not.
Disabled bool `json:"disabled"`
// Features Optional field containing list of features the rule applies to.
Features *[]FeatureMeta `json:"features"`
// Id A unique identifier for the notification rule.
Id string `json:"id"`
// Name The user friendly name of the notification rule.
Name string `json:"name"`
// Thresholds List of thresholds the rule suppose to be triggered.
Thresholds []NotificationRuleBalanceThresholdValue `json:"thresholds"`
// Type The type of the notification event.
Type NotificationEventType `json:"type"`
// UpdatedAt Timestamp when the rule was modified.
UpdatedAt time.Time `json:"updatedAt"`
}
NotificationRuleBalanceThreshold defines model for NotificationRuleBalanceThreshold.
type NotificationRuleBalanceThresholdCreateRequest ¶
type NotificationRuleBalanceThresholdCreateRequest struct {
// Channels List of notification channel identifiers or names the rule applies to.
Channels []string `json:"channels"`
// Disabled Whether the rule is disabled or not.
Disabled *bool `json:"disabled,omitempty"`
// Features Optional field for defining the scope of notification by feature. It may contain features by id or key.
Features *[]string `json:"features"`
// Name The user friendly name of the notification rule.
Name string `json:"name"`
// Thresholds List of thresholds the rule suppose to be triggered.
Thresholds []NotificationRuleBalanceThresholdValue `json:"thresholds"`
// Type The type of the notification event.
Type NotificationEventType `json:"type"`
}
NotificationRuleBalanceThresholdCreateRequest defines model for NotificationRuleBalanceThresholdCreateRequest.
type NotificationRuleBalanceThresholdValue ¶
type NotificationRuleBalanceThresholdValue struct {
Type NotificationRuleBalanceThresholdValueType `json:"type"`
Value float64 `json:"value"`
}
NotificationRuleBalanceThresholdValue Threshold value with multiple supported types.
type NotificationRuleBalanceThresholdValueType ¶
type NotificationRuleBalanceThresholdValueType string
NotificationRuleBalanceThresholdValueType defines model for NotificationRuleBalanceThresholdValue.Type.
const ( NUMBER NotificationRuleBalanceThresholdValueType = "NUMBER" PERCENT NotificationRuleBalanceThresholdValueType = "PERCENT" )
Defines values for NotificationRuleBalanceThresholdValueType.
type NotificationRuleCommon ¶
type NotificationRuleCommon struct {
// Channels List of notification channels the rule applies to.
Channels []NotificationChannelMeta `json:"channels"`
// CreatedAt Timestamp when the rule was created.
CreatedAt time.Time `json:"createdAt"`
// DeletedAt Timestamp when the channel was deleted.
DeletedAt *time.Time `json:"deletedAt,omitempty"`
// Disabled Whether the rule is disabled or not.
Disabled bool `json:"disabled"`
// Id A unique identifier for the notification rule.
Id string `json:"id"`
// Name The user friendly name of the notification rule.
Name string `json:"name"`
// Type The type of the notification event.
Type NotificationEventType `json:"type"`
// UpdatedAt Timestamp when the rule was modified.
UpdatedAt time.Time `json:"updatedAt"`
}
NotificationRuleCommon defines model for NotificationRuleCommon.
type NotificationRuleCommonCreateRequest ¶
type NotificationRuleCommonCreateRequest struct {
// Channels List of notification channel identifiers or names the rule applies to.
Channels []string `json:"channels"`
// Disabled Whether the rule is disabled or not.
Disabled *bool `json:"disabled,omitempty"`
// Name The user friendly name of the notification rule.
Name string `json:"name"`
// Type The type of the notification event.
Type NotificationEventType `json:"type"`
}
NotificationRuleCommonCreateRequest Defines the common fields for create notification rule request.
type NotificationRuleCreateRequest ¶
type NotificationRuleCreateRequest struct {
// contains filtered or unexported fields
}
NotificationRuleCreateRequest defines model for NotificationRuleCreateRequest.
func (NotificationRuleCreateRequest) AsNotificationRuleBalanceThresholdCreateRequest ¶
func (t NotificationRuleCreateRequest) AsNotificationRuleBalanceThresholdCreateRequest() (NotificationRuleBalanceThresholdCreateRequest, error)
AsNotificationRuleBalanceThresholdCreateRequest returns the union data inside the NotificationRuleCreateRequest as a NotificationRuleBalanceThresholdCreateRequest
func (NotificationRuleCreateRequest) Discriminator ¶
func (t NotificationRuleCreateRequest) Discriminator() (string, error)
func (*NotificationRuleCreateRequest) FromNotificationRuleBalanceThresholdCreateRequest ¶
func (t *NotificationRuleCreateRequest) FromNotificationRuleBalanceThresholdCreateRequest(v NotificationRuleBalanceThresholdCreateRequest) error
FromNotificationRuleBalanceThresholdCreateRequest overwrites any union data inside the NotificationRuleCreateRequest as the provided NotificationRuleBalanceThresholdCreateRequest
func (NotificationRuleCreateRequest) MarshalJSON ¶
func (t NotificationRuleCreateRequest) MarshalJSON() ([]byte, error)
func (*NotificationRuleCreateRequest) MergeNotificationRuleBalanceThresholdCreateRequest ¶
func (t *NotificationRuleCreateRequest) MergeNotificationRuleBalanceThresholdCreateRequest(v NotificationRuleBalanceThresholdCreateRequest) error
MergeNotificationRuleBalanceThresholdCreateRequest performs a merge with any union data inside the NotificationRuleCreateRequest, using the provided NotificationRuleBalanceThresholdCreateRequest
func (*NotificationRuleCreateRequest) UnmarshalJSON ¶
func (t *NotificationRuleCreateRequest) UnmarshalJSON(b []byte) error
func (NotificationRuleCreateRequest) ValueByDiscriminator ¶
func (t NotificationRuleCreateRequest) ValueByDiscriminator() (interface{}, error)
type NotificationRuleMeta ¶
type NotificationRuleMeta struct {
// Id A unique identifier for the notification rule.
Id string `json:"id"`
// Type The type of the notification event.
Type NotificationEventType `json:"type"`
}
NotificationRuleMeta Defines the common fields of a notification rule.
type NotificationRules ¶
type NotificationRules = []NotificationRule
NotificationRules List of rules.
type NotificationRulesResponse ¶
type NotificationRulesResponse struct {
// Items List of rules.
Items NotificationRules `json:"items"`
// Page Current page number.
Page int `json:"page"`
// PageSize Number of rules per page.
PageSize int `json:"pageSize"`
// TotalCount Total number of rules.
TotalCount int `json:"totalCount"`
}
NotificationRulesResponse defines model for NotificationRulesResponse.
type Period ¶
type Period struct {
// From Period start time where the amount was applied. If applicable.
From time.Time `json:"from"`
// To Period end time where the amount was applied. If applicable.
To time.Time `json:"to"`
}
Period A time period
type PortalToken ¶
type PortalToken struct {
// AllowedMeterSlugs Optional, if defined only the specified meters will be allowed
AllowedMeterSlugs *[]string `json:"allowedMeterSlugs,omitempty"`
CreatedAt *time.Time `json:"createdAt,omitempty"`
Expired *bool `json:"expired,omitempty"`
ExpiresAt *time.Time `json:"expiresAt,omitempty"`
Id *string `json:"id,omitempty"`
Subject string `json:"subject"`
// Token The token is only returned at creation.
Token *string `json:"token,omitempty"`
}
PortalToken A consumer portal token.
type Problem ¶
type Problem = models.StatusProblem
Problem A Problem Details object (RFC 7807). Additional properties specific to the problem type may be present.
type QueryFilterChannel ¶
type QueryFilterChannel = []string
QueryFilterChannel defines model for queryFilterChannel.
type QueryFilterEntitlementType ¶
type QueryFilterEntitlementType = []string
QueryFilterEntitlementType defines model for queryFilterEntitlementType.
type QueryFilterFeature ¶
type QueryFilterFeature = []string
QueryFilterFeature defines model for queryFilterFeature.
type QueryFilterGroupBy ¶
QueryFilterGroupBy Simple filter for group bys with exact match.
Usage: `?filterGroupBy[type]=input&filterGroupBy[model]=gpt-4`
type QueryFilterMeterSlug ¶
type QueryFilterMeterSlug = []string
QueryFilterMeterSlug defines model for queryFilterMeterSlug.
type QueryFilterSubject ¶
type QueryFilterSubject = []string
QueryFilterSubject defines model for queryFilterSubject.
type QueryIncludeDisabled ¶
type QueryIncludeDisabled = bool
QueryIncludeDisabled defines model for queryIncludeDisabled.
type QueryMeterParams ¶
type QueryMeterParams struct {
// From Start date-time in RFC 3339 format.
// Inclusive.
From *QueryFrom `form:"from,omitempty" json:"from,omitempty"`
// To End date-time in RFC 3339 format.
// Inclusive.
To *QueryTo `form:"to,omitempty" json:"to,omitempty"`
// WindowSize If not specified, a single usage aggregate will be returned for the entirety of the specified period for each subject and group.
WindowSize *QueryWindowSize `form:"windowSize,omitempty" json:"windowSize,omitempty"`
// WindowTimeZone The value is the name of the time zone as defined in the IANA Time Zone Database (http://www.iana.org/time-zones).
// If not specified, the UTC timezone will be used.
WindowTimeZone *QueryWindowTimeZone `form:"windowTimeZone,omitempty" json:"windowTimeZone,omitempty"`
// Subject Filtering by multiple subjects.
//
// Usage: `?subject=customer-1&subject=customer-2`
Subject *QueryFilterSubject `form:"subject,omitempty" json:"subject,omitempty"`
FilterGroupBy *QueryFilterGroupBy `json:"filterGroupBy,omitempty"`
// GroupBy If not specified a single aggregate will be returned for each subject and time window.
// `subject` is a reserved group by value.
GroupBy *QueryGroupBy `form:"groupBy,omitempty" json:"groupBy,omitempty"`
}
QueryMeterParams defines parameters for QueryMeter.
type QueryMeterResponse ¶
type QueryMeterResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *MeterQueryResult
ApplicationproblemJSON400 *BadRequestProblemResponse
ApplicationproblemJSON401 *UnauthorizedProblemResponse
ApplicationproblemJSONDefault *UnexpectedProblemResponse
}
func ParseQueryMeterResponse ¶
func ParseQueryMeterResponse(rsp *http.Response) (*QueryMeterResponse, error)
ParseQueryMeterResponse parses an HTTP response from a QueryMeterWithResponse call
func (QueryMeterResponse) Status ¶
func (r QueryMeterResponse) Status() string
Status returns HTTPResponse.Status
func (QueryMeterResponse) StatusCode ¶
func (r QueryMeterResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type QueryPortalMeterParams ¶
type QueryPortalMeterParams struct {
// From Start date-time in RFC 3339 format.
// Inclusive.
From *QueryFrom `form:"from,omitempty" json:"from,omitempty"`
// To End date-time in RFC 3339 format.
// Inclusive.
To *QueryTo `form:"to,omitempty" json:"to,omitempty"`
// WindowSize If not specified, a single usage aggregate will be returned for the entirety of the specified period for each subject and group.
WindowSize *QueryWindowSize `form:"windowSize,omitempty" json:"windowSize,omitempty"`
// WindowTimeZone The value is the name of the time zone as defined in the IANA Time Zone Database (http://www.iana.org/time-zones).
// If not specified, the UTC timezone will be used.
WindowTimeZone *QueryWindowTimeZone `form:"windowTimeZone,omitempty" json:"windowTimeZone,omitempty"`
FilterGroupBy *QueryFilterGroupBy `json:"filterGroupBy,omitempty"`
// GroupBy If not specified a single aggregate will be returned for each subject and time window.
// `subject` is a reserved group by value.
GroupBy *QueryGroupBy `form:"groupBy,omitempty" json:"groupBy,omitempty"`
}
QueryPortalMeterParams defines parameters for QueryPortalMeter.
type QueryPortalMeterResponse ¶
type QueryPortalMeterResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *MeterQueryResult
ApplicationproblemJSON400 *BadRequestProblemResponse
ApplicationproblemJSON401 *UnauthorizedProblemResponse
ApplicationproblemJSONDefault *UnexpectedProblemResponse
}
func ParseQueryPortalMeterResponse ¶
func ParseQueryPortalMeterResponse(rsp *http.Response) (*QueryPortalMeterResponse, error)
ParseQueryPortalMeterResponse parses an HTTP response from a QueryPortalMeterWithResponse call
func (QueryPortalMeterResponse) Status ¶
func (r QueryPortalMeterResponse) Status() string
Status returns HTTPResponse.Status
func (QueryPortalMeterResponse) StatusCode ¶
func (r QueryPortalMeterResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type QueryWindowTimeZone ¶
type QueryWindowTimeZone = string
QueryWindowTimeZone defines model for queryWindowTimeZone.
type ReceiveSvixOperationalEventJSONRequestBody ¶
type ReceiveSvixOperationalEventJSONRequestBody = SvixOperationalWebhookRequest
ReceiveSvixOperationalEventJSONRequestBody defines body for ReceiveSvixOperationalEvent for application/json ContentType.
type ReceiveSvixOperationalEventResponse ¶
type ReceiveSvixOperationalEventResponse struct {
Body []byte
HTTPResponse *http.Response
ApplicationproblemJSON400 *BadRequestProblemResponse
ApplicationproblemJSON401 *UnauthorizedProblemResponse
ApplicationproblemJSON501 *NotImplementedProblemResponse
ApplicationproblemJSONDefault *UnexpectedProblemResponse
}
func ParseReceiveSvixOperationalEventResponse ¶
func ParseReceiveSvixOperationalEventResponse(rsp *http.Response) (*ReceiveSvixOperationalEventResponse, error)
ParseReceiveSvixOperationalEventResponse parses an HTTP response from a ReceiveSvixOperationalEventWithResponse call
func (ReceiveSvixOperationalEventResponse) Status ¶
func (r ReceiveSvixOperationalEventResponse) Status() string
Status returns HTTPResponse.Status
func (ReceiveSvixOperationalEventResponse) StatusCode ¶
func (r ReceiveSvixOperationalEventResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type RecurringPeriod ¶
type RecurringPeriod struct {
// Anchor An arbitrary anchor to base the recurring period on.
Anchor time.Time `json:"anchor"`
// Interval List of pre-defined periods that can be used for recurring & scheduling.
//
// DAY: Every day
// WEEK: Every week
// MONTH: Every month
// YEAR: Every year
Interval RecurringPeriodEnum `json:"interval"`
}
RecurringPeriod Recurring period of an entitlement.
type RecurringPeriodCreateInput ¶
type RecurringPeriodCreateInput struct {
// Anchor An arbitrary anchor to base the recurring period on.
// If not provided then defaults to now truncated to the hour.
Anchor *time.Time `json:"anchor,omitempty"`
// Interval List of pre-defined periods that can be used for recurring & scheduling.
//
// DAY: Every day
// WEEK: Every week
// MONTH: Every month
// YEAR: Every year
Interval RecurringPeriodEnum `json:"interval"`
}
RecurringPeriodCreateInput Recurring period of an entitlement.
type RecurringPeriodEnum ¶
type RecurringPeriodEnum string
RecurringPeriodEnum List of pre-defined periods that can be used for recurring & scheduling.
DAY: Every day WEEK: Every week MONTH: Every month YEAR: Every year
const ( RecurringPeriodEnumDAY RecurringPeriodEnum = "DAY" RecurringPeriodEnumMONTH RecurringPeriodEnum = "MONTH" RecurringPeriodEnumWEEK RecurringPeriodEnum = "WEEK" RecurringPeriodEnumYEAR RecurringPeriodEnum = "YEAR" )
Defines values for RecurringPeriodEnum.
type RequestEditorFn ¶
RequestEditorFn is the function signature for the RequestEditor callback function
type ResetEntitlementUsageJSONBody ¶
type ResetEntitlementUsageJSONBody struct {
// EffectiveAt The time at which the reset takes effect, defaults to now. The reset cannot be in the future. The provided value is truncated to the minute due to how historical meter data is stored.
EffectiveAt *time.Time `json:"effectiveAt,omitempty"`
// PreserveOverage Determines whether the overage is preserved or forgiven, overriding the entitlement's default behavior.
// - If true, the overage is preserved.
// - If false, the overage is forgiven.
PreserveOverage *bool `json:"preserveOverage,omitempty"`
// RetainAnchor Determines whether the usage period anchor is retained or reset to the effectiveAt time.
// - If true, the usage period anchor is retained.
// - If false, the usage period anchor is reset to the effectiveAt time.
RetainAnchor *bool `json:"retainAnchor,omitempty"`
}
ResetEntitlementUsageJSONBody defines parameters for ResetEntitlementUsage.
type ResetEntitlementUsageJSONRequestBody ¶
type ResetEntitlementUsageJSONRequestBody ResetEntitlementUsageJSONBody
ResetEntitlementUsageJSONRequestBody defines body for ResetEntitlementUsage for application/json ContentType.
type ResetEntitlementUsageResponse ¶
type ResetEntitlementUsageResponse struct {
Body []byte
HTTPResponse *http.Response
ApplicationproblemJSON400 *BadRequestProblemResponse
ApplicationproblemJSON401 *UnauthorizedProblemResponse
ApplicationproblemJSON404 *NotFoundProblemResponse
ApplicationproblemJSONDefault *UnexpectedProblemResponse
}
func ParseResetEntitlementUsageResponse ¶
func ParseResetEntitlementUsageResponse(rsp *http.Response) (*ResetEntitlementUsageResponse, error)
ParseResetEntitlementUsageResponse parses an HTTP response from a ResetEntitlementUsageWithResponse call
func (ResetEntitlementUsageResponse) Status ¶
func (r ResetEntitlementUsageResponse) Status() string
Status returns HTTPResponse.Status
func (ResetEntitlementUsageResponse) StatusCode ¶
func (r ResetEntitlementUsageResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type SharedMetaFields ¶
type SharedMetaFields struct {
CreatedAt *time.Time `json:"createdAt,omitempty"`
DeletedAt *time.Time `json:"deletedAt,omitempty"`
Id *string `json:"id,omitempty"`
UpdatedAt *time.Time `json:"updatedAt,omitempty"`
}
SharedMetaFields Metadata fields for all resources. These fields are automatically populated by the system for managed entities. Their use and meaning is uniform across all resources.
type Subject ¶
type Subject struct {
CurrentPeriodEnd *time.Time `json:"currentPeriodEnd"`
CurrentPeriodStart *time.Time `json:"currentPeriodStart"`
DisplayName *string `json:"displayName"`
Id *string `json:"id,omitempty"`
Key string `json:"key"`
Metadata *map[string]interface{} `json:"metadata"`
StripeCustomerId *string `json:"stripeCustomerId"`
}
Subject A subject is a unique identifier for a user or entity.
type SvixOperationalWebhookRequest ¶
type SvixOperationalWebhookRequest struct {
Data map[string]interface{} `json:"data"`
Type SvixOperationalWebhookRequestType `json:"type"`
}
SvixOperationalWebhookRequest defines model for SvixOperationalWebhookRequest.
type SvixOperationalWebhookRequestType ¶
type SvixOperationalWebhookRequestType string
SvixOperationalWebhookRequestType defines model for SvixOperationalWebhookRequest.Type.
const ( EndpointCreated SvixOperationalWebhookRequestType = "endpoint.created" EndpointDeleted SvixOperationalWebhookRequestType = "endpoint.deleted" EndpointDisabled SvixOperationalWebhookRequestType = "endpoint.disabled" EndpointUpdated SvixOperationalWebhookRequestType = "endpoint.updated" MessageAttemptExhausted SvixOperationalWebhookRequestType = "message.attempt.exhausted" MessageAttemptFailing SvixOperationalWebhookRequestType = "message.attempt.failing" MessageAttemptRecovered SvixOperationalWebhookRequestType = "message.attempt.recovered" )
Defines values for SvixOperationalWebhookRequestType.
type UnauthorizedProblemResponse ¶
type UnauthorizedProblemResponse = Problem
UnauthorizedProblemResponse A Problem Details object (RFC 7807). Additional properties specific to the problem type may be present.
type UnexpectedProblemResponse ¶
type UnexpectedProblemResponse = Problem
UnexpectedProblemResponse A Problem Details object (RFC 7807). Additional properties specific to the problem type may be present.
type UpdateNotificationChannelJSONRequestBody ¶
type UpdateNotificationChannelJSONRequestBody = NotificationChannelCreateRequest
UpdateNotificationChannelJSONRequestBody defines body for UpdateNotificationChannel for application/json ContentType.
type UpdateNotificationChannelResponse ¶
type UpdateNotificationChannelResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *NotificationChannel
ApplicationproblemJSON401 *UnauthorizedProblemResponse
ApplicationproblemJSON404 *NotFoundProblemResponse
ApplicationproblemJSONDefault *UnexpectedProblemResponse
}
func ParseUpdateNotificationChannelResponse ¶
func ParseUpdateNotificationChannelResponse(rsp *http.Response) (*UpdateNotificationChannelResponse, error)
ParseUpdateNotificationChannelResponse parses an HTTP response from a UpdateNotificationChannelWithResponse call
func (UpdateNotificationChannelResponse) Status ¶
func (r UpdateNotificationChannelResponse) Status() string
Status returns HTTPResponse.Status
func (UpdateNotificationChannelResponse) StatusCode ¶
func (r UpdateNotificationChannelResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type UpdateNotificationRuleJSONRequestBody ¶
type UpdateNotificationRuleJSONRequestBody = NotificationRuleCreateRequest
UpdateNotificationRuleJSONRequestBody defines body for UpdateNotificationRule for application/json ContentType.
type UpdateNotificationRuleResponse ¶
type UpdateNotificationRuleResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *NotificationRule
ApplicationproblemJSON401 *UnauthorizedProblemResponse
ApplicationproblemJSON404 *NotFoundProblemResponse
ApplicationproblemJSONDefault *UnexpectedProblemResponse
}
func ParseUpdateNotificationRuleResponse ¶
func ParseUpdateNotificationRuleResponse(rsp *http.Response) (*UpdateNotificationRuleResponse, error)
ParseUpdateNotificationRuleResponse parses an HTTP response from a UpdateNotificationRuleWithResponse call
func (UpdateNotificationRuleResponse) Status ¶
func (r UpdateNotificationRuleResponse) Status() string
Status returns HTTPResponse.Status
func (UpdateNotificationRuleResponse) StatusCode ¶
func (r UpdateNotificationRuleResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type UpsertSubjectJSONBody ¶
type UpsertSubjectJSONBody = []Subject
UpsertSubjectJSONBody defines parameters for UpsertSubject.
type UpsertSubjectJSONRequestBody ¶
type UpsertSubjectJSONRequestBody = UpsertSubjectJSONBody
UpsertSubjectJSONRequestBody defines body for UpsertSubject for application/json ContentType.
type UpsertSubjectResponse ¶
type UpsertSubjectResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *[]Subject
ApplicationproblemJSON400 *BadRequestProblemResponse
ApplicationproblemJSON401 *UnauthorizedProblemResponse
ApplicationproblemJSON501 *NotImplementedProblemResponse
ApplicationproblemJSONDefault *UnexpectedProblemResponse
}
func ParseUpsertSubjectResponse ¶
func ParseUpsertSubjectResponse(rsp *http.Response) (*UpsertSubjectResponse, error)
ParseUpsertSubjectResponse parses an HTTP response from a UpsertSubjectWithResponse call
func (UpsertSubjectResponse) Status ¶
func (r UpsertSubjectResponse) Status() string
Status returns HTTPResponse.Status
func (UpsertSubjectResponse) StatusCode ¶
func (r UpsertSubjectResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type VoidGrantResponse ¶
type VoidGrantResponse struct {
Body []byte
HTTPResponse *http.Response
ApplicationproblemJSON400 *BadRequestProblemResponse
ApplicationproblemJSON401 *UnauthorizedProblemResponse
ApplicationproblemJSON404 *NotFoundProblemResponse
ApplicationproblemJSON409 *ConflictProblemResponse
ApplicationproblemJSONDefault *UnexpectedProblemResponse
}
func ParseVoidGrantResponse ¶
func ParseVoidGrantResponse(rsp *http.Response) (*VoidGrantResponse, error)
ParseVoidGrantResponse parses an HTTP response from a VoidGrantWithResponse call
func (VoidGrantResponse) Status ¶
func (r VoidGrantResponse) Status() string
Status returns HTTPResponse.Status
func (VoidGrantResponse) StatusCode ¶
func (r VoidGrantResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type WindowedBalanceHistory ¶
type WindowedBalanceHistory struct {
// BurndownHistory Grant burndown history.
BurndownHistory *[]GrantBurnDownHistorySegment `json:"burndownHistory,omitempty"`
// WindowedHistory The windowed balance history.
// - It only returns rows for windows where there was usage.
// - The windows are inclusive at their start and exclusive at their end.
// - The last window may be smaller than the window size and is inclusive at both ends.
WindowedHistory *[]BalanceHistoryWindow `json:"windowedHistory,omitempty"`
}
WindowedBalanceHistory The windowed balance history.