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: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

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"`

	// 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 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