models

package
v0.0.0-...-9ad40bb Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 16, 2025 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (

	// LicenseTypeTrial captures enum value "trial"
	LicenseTypeTrial string = "trial"

	// LicenseTypeEnterprise captures enum value "enterprise"
	LicenseTypeEnterprise string = "enterprise"
)
View Source
const (

	// LicenseTypeWithDefaultCapabilitiesIDTrial captures enum value "trial"
	LicenseTypeWithDefaultCapabilitiesIDTrial string = "trial"

	// LicenseTypeWithDefaultCapabilitiesIDEnterprise captures enum value "enterprise"
	LicenseTypeWithDefaultCapabilitiesIDEnterprise string = "enterprise"
)
View Source
const (

	// LicensesDefaultLicenseTypeTrial captures enum value "trial"
	LicensesDefaultLicenseTypeTrial string = "trial"

	// LicensesDefaultLicenseTypeEnterprise captures enum value "enterprise"
	LicensesDefaultLicenseTypeEnterprise string = "enterprise"
)
View Source
const (

	// Rfc6902PatchOperationOpAdd captures enum value "add"
	Rfc6902PatchOperationOpAdd string = "add"

	// Rfc6902PatchOperationOpRemove captures enum value "remove"
	Rfc6902PatchOperationOpRemove string = "remove"

	// Rfc6902PatchOperationOpReplace captures enum value "replace"
	Rfc6902PatchOperationOpReplace string = "replace"

	// Rfc6902PatchOperationOpMove captures enum value "move"
	Rfc6902PatchOperationOpMove string = "move"

	// Rfc6902PatchOperationOpCopy captures enum value "copy"
	Rfc6902PatchOperationOpCopy string = "copy"

	// Rfc6902PatchOperationOpTest captures enum value "test"
	Rfc6902PatchOperationOpTest string = "test"
)
View Source
const (

	// TenantLicenseTypeTrial captures enum value "trial"
	TenantLicenseTypeTrial string = "trial"

	// TenantLicenseTypeEnterprise captures enum value "enterprise"
	TenantLicenseTypeEnterprise string = "enterprise"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Capabilities

type Capabilities map[string]CapabilityData

Capabilities capabilities

swagger:model Capabilities

func (Capabilities) ContextValidate

func (m Capabilities) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this capabilities based on the context it is used

func (Capabilities) Validate

func (m Capabilities) Validate(formats strfmt.Registry) error

Validate validates this capabilities

type CapabilityData

type CapabilityData struct {

	// enabled
	Enabled bool `json:"enabled,omitempty" yaml:"enabled,omitempty"`

	// monthly limit
	MonthlyLimit int64 `json:"monthly_limit,omitempty" yaml:"monthly_limit,omitempty"`

	// total limit
	TotalLimit int64 `json:"total_limit,omitempty" yaml:"total_limit,omitempty"`
}

CapabilityData capability data

swagger:model CapabilityData

func (*CapabilityData) ContextValidate

func (m *CapabilityData) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this capability data based on context it is used

func (*CapabilityData) MarshalBinary

func (m *CapabilityData) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*CapabilityData) UnmarshalBinary

func (m *CapabilityData) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*CapabilityData) Validate

func (m *CapabilityData) Validate(formats strfmt.Registry) error

Validate validates this capability data

type Dump

type Dump struct {

	// licenses
	Licenses []*TenantLicense `json:"licenses" yaml:"licenses"`
}

Dump dump

swagger:model Dump

func (*Dump) ContextValidate

func (m *Dump) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this dump based on the context it is used

func (*Dump) MarshalBinary

func (m *Dump) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*Dump) UnmarshalBinary

func (m *Dump) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*Dump) Validate

func (m *Dump) Validate(formats strfmt.Registry) error

Validate validates this dump

type Error

type Error struct {

	// details
	Details interface{} `json:"details,omitempty" yaml:"details,omitempty"`

	// error
	Error string `json:"error,omitempty" yaml:"error,omitempty"`

	// error code
	ErrorCode string `json:"error_code,omitempty" yaml:"error_code,omitempty"`

	// status code
	StatusCode int64 `json:"status_code,omitempty" yaml:"status_code,omitempty"`
}

Error HTTP error response

swagger:model Error

func (*Error) ContextValidate

func (m *Error) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this error based on context it is used

func (*Error) MarshalBinary

func (m *Error) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*Error) UnmarshalBinary

func (m *Error) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*Error) Validate

func (m *Error) Validate(formats strfmt.Registry) error

Validate validates this error

type License

type License struct {

	// capabilities
	Capabilities Capabilities `json:"capabilities,omitempty" yaml:"capabilities,omitempty"`

	// License end date
	// Example: 2023-03-01T09:02:27.127932Z
	// Format: date-time
	EndDate strfmt.DateTime `json:"end_date,omitempty" yaml:"end_date,omitempty"`

	// License start date
	// Example: 2023-03-01T09:02:27.127932Z
	// Format: date-time
	StartDate strfmt.DateTime `json:"start_date,omitempty" yaml:"start_date,omitempty"`

	// Type of license
	// Example: trial
	// Enum: ["trial","enterprise"]
	Type string `json:"type,omitempty" yaml:"type,omitempty"`
}

License license

swagger:model License

func (*License) ContextValidate

func (m *License) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this license based on the context it is used

func (*License) MarshalBinary

func (m *License) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*License) UnmarshalBinary

func (m *License) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*License) Validate

func (m *License) Validate(formats strfmt.Registry) error

Validate validates this license

type LicenseTypeWithDefaultCapabilities

type LicenseTypeWithDefaultCapabilities struct {

	// capabilities
	Capabilities Capabilities `json:"capabilities,omitempty" yaml:"capabilities,omitempty"`

	// LicenseType
	// Enum: ["trial","enterprise"]
	ID string `json:"id,omitempty" yaml:"id,omitempty"`
}

LicenseTypeWithDefaultCapabilities license type with default capabilities

swagger:model LicenseTypeWithDefaultCapabilities

func (*LicenseTypeWithDefaultCapabilities) ContextValidate

func (m *LicenseTypeWithDefaultCapabilities) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this license type with default capabilities based on the context it is used

func (*LicenseTypeWithDefaultCapabilities) MarshalBinary

func (m *LicenseTypeWithDefaultCapabilities) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*LicenseTypeWithDefaultCapabilities) UnmarshalBinary

func (m *LicenseTypeWithDefaultCapabilities) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*LicenseTypeWithDefaultCapabilities) Validate

Validate validates this license type with default capabilities

type Licenses

type Licenses struct {

	// DefaultLicenseDuration is the default license duration for new tenants, 0 means unlimited
	// Format: duration
	DefaultLicenseDuration strfmt.Duration `json:"default_license_duration,omitempty" yaml:"default_license_duration,omitempty"`

	// DefaultLicenseType is the default license type for new tenants
	// Enum: ["trial","enterprise"]
	DefaultLicenseType string `json:"default_license_type,omitempty" yaml:"default_license_type,omitempty"`

	// Is licensing mechanism enabled
	Enabled bool `json:"enabled,omitempty" yaml:"enabled,omitempty"`

	// All available licenses with default capabilities
	Licenses []*LicenseTypeWithDefaultCapabilities `json:"licenses" yaml:"licenses"`
}

Licenses licenses

swagger:model Licenses

func (*Licenses) ContextValidate

func (m *Licenses) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this licenses based on the context it is used

func (*Licenses) MarshalBinary

func (m *Licenses) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*Licenses) UnmarshalBinary

func (m *Licenses) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*Licenses) Validate

func (m *Licenses) Validate(formats strfmt.Registry) error

Validate validates this licenses

type MetricUsage

type MetricUsage struct {

	// limit
	Limit int64 `json:"limit,omitempty" yaml:"limit,omitempty"`

	// used
	Used int64 `json:"used,omitempty" yaml:"used,omitempty"`
}

MetricUsage metric usage

swagger:model MetricUsage

func (*MetricUsage) ContextValidate

func (m *MetricUsage) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this metric usage based on context it is used

func (*MetricUsage) MarshalBinary

func (m *MetricUsage) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*MetricUsage) UnmarshalBinary

func (m *MetricUsage) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*MetricUsage) Validate

func (m *MetricUsage) Validate(formats strfmt.Registry) error

Validate validates this metric usage

type Rfc6902PatchOperation

type Rfc6902PatchOperation struct {

	// Each operation must have at least one `op` member, which value indicates
	// the actual operation to be performed against the target (current) configuration.
	// For a detailed description of available operations,
	// see the [Operations #4 section of the RFC6902 specification](https://datatracker.ietf.org/doc/html/rfc6902#section-4).
	// Enum: ["add","remove","replace","move","copy","test"]
	Op string `json:"op,omitempty" yaml:"op,omitempty"`

	// String containing a JSON-Pointer value ([RFC6901](https://datatracker.ietf.org/doc/html/rfc6901))
	// that references a location within the target configuration where the operation is performed.
	//
	// For available paths, reference the exported configuration.
	Path string `json:"path,omitempty" yaml:"path,omitempty"`

	// New object value applied to the patched (target) configuration.
	Value interface{} `json:"value,omitempty" yaml:"value,omitempty"`
}

Rfc6902PatchOperation rfc6902 patch operation

swagger:model Rfc6902PatchOperation

func (*Rfc6902PatchOperation) ContextValidate

func (m *Rfc6902PatchOperation) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this rfc6902 patch operation based on context it is used

func (*Rfc6902PatchOperation) MarshalBinary

func (m *Rfc6902PatchOperation) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*Rfc6902PatchOperation) UnmarshalBinary

func (m *Rfc6902PatchOperation) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*Rfc6902PatchOperation) Validate

func (m *Rfc6902PatchOperation) Validate(formats strfmt.Registry) error

Validate validates this rfc6902 patch operation

type Rfc6902PatchOperations

type Rfc6902PatchOperations []*Rfc6902PatchOperation

Rfc6902PatchOperations rfc6902 patch operations

swagger:model Rfc6902PatchOperations

func (Rfc6902PatchOperations) ContextValidate

func (m Rfc6902PatchOperations) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this rfc6902 patch operations based on the context it is used

func (Rfc6902PatchOperations) Validate

func (m Rfc6902PatchOperations) Validate(formats strfmt.Registry) error

Validate validates this rfc6902 patch operations

type TenantLicense

type TenantLicense struct {

	// capabilities
	Capabilities Capabilities `json:"capabilities,omitempty" yaml:"capabilities,omitempty"`

	// License end date
	// Example: 2023-03-01T09:02:27.127932Z
	// Format: date-time
	EndDate strfmt.DateTime `json:"end_date,omitempty" yaml:"end_date,omitempty"`

	// License start date
	// Example: 2023-03-01T09:02:27.127932Z
	// Format: date-time
	StartDate strfmt.DateTime `json:"start_date,omitempty" yaml:"start_date,omitempty"`

	// tenant id
	TenantID string `json:"tenant_id,omitempty" yaml:"tenant_id,omitempty"`

	// Type of license
	// Example: trial
	// Enum: ["trial","enterprise"]
	Type string `json:"type,omitempty" yaml:"type,omitempty"`
}

TenantLicense tenant license

swagger:model TenantLicense

func (*TenantLicense) ContextValidate

func (m *TenantLicense) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this tenant license based on the context it is used

func (*TenantLicense) MarshalBinary

func (m *TenantLicense) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*TenantLicense) UnmarshalBinary

func (m *TenantLicense) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*TenantLicense) Validate

func (m *TenantLicense) Validate(formats strfmt.Registry) error

Validate validates this tenant license

type Usage

type Usage struct {

	// enterprise idps
	EnterpriseIdps *MetricUsage `json:"enterprise_idps,omitempty" yaml:"enterprise_idps,omitempty"`

	// monthly tokens issued
	MonthlyTokensIssued *MetricUsage `json:"monthly_tokens_issued,omitempty" yaml:"monthly_tokens_issued,omitempty"`
}

Usage usage

swagger:model Usage

func (*Usage) ContextValidate

func (m *Usage) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this usage based on the context it is used

func (*Usage) MarshalBinary

func (m *Usage) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*Usage) UnmarshalBinary

func (m *Usage) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*Usage) Validate

func (m *Usage) Validate(formats strfmt.Registry) error

Validate validates this usage

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL