Documentation
¶
Index ¶
- Constants
- type Capabilities
- type CapabilityData
- type Dump
- type Error
- type License
- type LicenseTypeWithDefaultCapabilities
- func (m *LicenseTypeWithDefaultCapabilities) ContextValidate(ctx context.Context, formats strfmt.Registry) error
- func (m *LicenseTypeWithDefaultCapabilities) MarshalBinary() ([]byte, error)
- func (m *LicenseTypeWithDefaultCapabilities) UnmarshalBinary(b []byte) error
- func (m *LicenseTypeWithDefaultCapabilities) Validate(formats strfmt.Registry) error
- type Licenses
- type MetricUsage
- type Rfc6902PatchOperation
- type Rfc6902PatchOperations
- type TenantLicense
- type Usage
Constants ¶
const ( // LicenseTypeTrial captures enum value "trial" LicenseTypeTrial string = "trial" // LicenseTypeEnterprise captures enum value "enterprise" LicenseTypeEnterprise string = "enterprise" )
const ( // LicenseTypeWithDefaultCapabilitiesIDTrial captures enum value "trial" LicenseTypeWithDefaultCapabilitiesIDTrial string = "trial" // LicenseTypeWithDefaultCapabilitiesIDEnterprise captures enum value "enterprise" LicenseTypeWithDefaultCapabilitiesIDEnterprise string = "enterprise" )
const ( // LicensesDefaultLicenseTypeTrial captures enum value "trial" LicensesDefaultLicenseTypeTrial string = "trial" // LicensesDefaultLicenseTypeEnterprise captures enum value "enterprise" LicensesDefaultLicenseTypeEnterprise string = "enterprise" )
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" )
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 ¶
ContextValidate validate this capabilities based on the context it is used
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 ¶
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
type Dump ¶
type Dump struct {
// licenses
Licenses []*TenantLicense `json:"licenses" yaml:"licenses"`
}
Dump dump
swagger:model Dump
func (*Dump) ContextValidate ¶
ContextValidate validate this dump based on the context it is used
func (*Dump) MarshalBinary ¶
MarshalBinary interface implementation
func (*Dump) UnmarshalBinary ¶
UnmarshalBinary interface implementation
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 ¶
ContextValidate validates this error based on context it is used
func (*Error) MarshalBinary ¶
MarshalBinary interface implementation
func (*Error) UnmarshalBinary ¶
UnmarshalBinary interface implementation
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 ¶
ContextValidate validate this license based on the context it is used
func (*License) MarshalBinary ¶
MarshalBinary interface implementation
func (*License) UnmarshalBinary ¶
UnmarshalBinary interface implementation
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
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 ¶
ContextValidate validate this licenses based on the context it is used
func (*Licenses) MarshalBinary ¶
MarshalBinary interface implementation
func (*Licenses) UnmarshalBinary ¶
UnmarshalBinary interface implementation
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 ¶
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
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 ¶
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
type Rfc6902PatchOperations ¶
type Rfc6902PatchOperations []*Rfc6902PatchOperation
Rfc6902PatchOperations rfc6902 patch operations
swagger:model Rfc6902PatchOperations
func (Rfc6902PatchOperations) ContextValidate ¶
ContextValidate validate this rfc6902 patch operations based on the context it is used
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 ¶
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
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 ¶
ContextValidate validate this usage based on the context it is used
func (*Usage) MarshalBinary ¶
MarshalBinary interface implementation
func (*Usage) UnmarshalBinary ¶
UnmarshalBinary interface implementation