This commit is contained in:
Caleb Doxsey 2024-09-09 16:03:58 -06:00
parent dad954ae16
commit 5b717c9aa5
15 changed files with 746 additions and 9 deletions

View file

@ -3,6 +3,10 @@
// Code generated by github.com/oapi-codegen/oapi-codegen/v2 version v2.3.0 DO NOT EDIT.
package cluster
import (
"time"
)
const (
BearerAuthScopes = "bearerAuth.Scopes"
)
@ -18,8 +22,11 @@ const (
// BootstrapConfig defines model for BootstrapConfig.
type BootstrapConfig struct {
ClusterId string `json:"clusterId"`
// DatabrokerStorageConnection databroker storage connection string
DatabrokerStorageConnection *string `json:"databrokerStorageConnection,omitempty"`
OrganizationId string `json:"organizationId"`
// SharedSecret shared secret
SharedSecret []byte `json:"sharedSecret"`
@ -92,6 +99,18 @@ type GetBundlesResponse struct {
Bundles []Bundle `json:"bundles"`
}
// ReportUsageRequest defines model for ReportUsageRequest.
type ReportUsageRequest struct {
Users []ReportUsageUser `json:"users"`
}
// ReportUsageUser defines model for ReportUsageUser.
type ReportUsageUser struct {
LastSignedInAt time.Time `json:"lastSignedInAt"`
PseudonymousEmail string `json:"pseudonymousEmail"`
PseudonymousId string `json:"pseudonymousId"`
}
// BundleId defines model for bundleId.
type BundleId = string
@ -100,3 +119,6 @@ type ReportClusterResourceBundleStatusJSONRequestBody = BundleStatus
// ExchangeClusterIdentityTokenJSONRequestBody defines body for ExchangeClusterIdentityToken for application/json ContentType.
type ExchangeClusterIdentityTokenJSONRequestBody = ExchangeTokenRequest
// ReportUsageJSONRequestBody defines body for ReportUsage for application/json ContentType.
type ReportUsageJSONRequestBody = ReportUsageRequest