models

package
v0.0.0-...-b8f2a1b Latest Latest
Warning

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

Go to latest
Published: Oct 6, 2026 License: Apache-2.0 Imports: 6 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

View Source
const (

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

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

Variables

This section is empty.

Functions

This section is empty.

Types

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 {

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

	// Is enforcement enabled
	EnforcementEnabled bool `json:"enforcement_enabled,omitempty" yaml:"enforcement_enabled,omitempty"`

	// Is enterprise IDPs capability enabled
	HasEnterpriseIdpsCapability bool `json:"has_enterprise_idps_capability,omitempty" yaml:"has_enterprise_idps_capability,omitempty"`

	// Is risk engine capability enabled
	HasRiskEngineCapability bool `json:"has_risk_engine_capability,omitempty" yaml:"has_risk_engine_capability,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"`

	// license type
	// 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 validates this license based on 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 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 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