mirror of
https://github.com/hanzo-go/sdk.git
synced 2026-11-20 20:13:42 +00:00
687 lines
22 KiB
Go
687 lines
22 KiB
Go
/*
|
|
Hanzo Cloud API
|
|
|
|
The Hanzo Cloud API as a customer calls it: every operation under /v1/ except the operator's admin product, relay routes, legacy spellings and capabilities still reached by flag. Tagged by product: the first path segment after /v1/.
|
|
|
|
API version: v1
|
|
*/
|
|
|
|
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
|
|
|
|
package hanzoai
|
|
|
|
import (
|
|
"encoding/json"
|
|
)
|
|
|
|
// checks if the LabelRiskLabelCoverage type satisfies the MappedNullable interface at compile time
|
|
var _ MappedNullable = &LabelRiskLabelCoverage{}
|
|
|
|
// LabelRiskLabelCoverage struct for LabelRiskLabelCoverage
|
|
type LabelRiskLabelCoverage struct {
|
|
// Contested is how many matured events have two visible assertions that disagree. It is the number that says whether the precedence rule is load-bearing or decorative, and it is the one to watch after wiring a new source.
|
|
Contested *int64 `json:"contested,omitempty"`
|
|
// Events is how many DISTINCT judged events those assertions name, keyed on (kind, subject, at). It counts only events something was ASSERTED about: what share of the whole event stream carries a label is a question about the feature plane's denominator and is not answerable here. Matured + Unmatured is Events.
|
|
Events *int64 `json:"events,omitempty"`
|
|
// Explore is the share of judged events whose winning assertion came from the below-the-line sample. A blocked transaction never produces a chargeback, so a training set with no exploration in it is a description of the incumbent block list rather than of the world — and a champion measured on it is measured on whether it agrees with the incumbent.
|
|
Explore *float64 `json:"explore,omitempty"`
|
|
// Facts is how many assertions the window holds; Events is how many distinct judged events they cover. The two differ by exactly the corroboration and the conflict in the plane.
|
|
Facts *int64 `json:"facts,omitempty"`
|
|
// From is the INCLUSIVE start of the EVENT window these counts were folded over, RFC 3339, echoed with the defaults filled in — the caller's, or 90 days before To. An assertion is in the window when its event time satisfies at >= From.
|
|
From *string `json:"from,omitempty"`
|
|
// Horizon is the maturity horizon these counts were measured under, IN DAYS — the caller's, or 120. It decides Matured (an event is matured when its `at` plus this many days is not after now), it sets each event's own as-of and so which assertions were visible to it, and when the caller bounds nothing it also places the default window's end.
|
|
Horizon *int64 `json:"horizon,omitempty"`
|
|
// Judged is how many MATURED events resolve, at their own as-of, to something other than unjudged.
|
|
Judged *int64 `json:"judged,omitempty"`
|
|
// Matured is how many of those events have aged past the horizon and may therefore be admitted to a supervised set at all. It counts every matured event, judged or not — it is the DENOMINATOR an operator divides Judged by, and a denominator that excluded the unjudged would read 1.0 on a plane with one label in it.
|
|
Matured *int64 `json:"matured,omitempty"`
|
|
// Pending is how many of this tenant's assertions the DERIVED columnar copy is not known to hold yet. Every count above is folded from the record, so they are right regardless — but a materialiser that joins in the warehouse while this is non-zero is joining against an incomplete answer key, and a missing fraud label is indistinguishable from an honest customer. It is reported at the training gate because that is where somebody is deciding whether the ground truth is good enough to fit on. Counted under a cap, so it saturates rather than costing a full scan on every read.
|
|
Pending *int64 `json:"pending,omitempty"`
|
|
// Productive is how many matured events resolve, at their own as-of, to a WINNING assertion of `productive` — the event led somewhere: escalated, reported, charged back. It is the positive class a supervised fit would train on, and a near-zero count is the number that says the fit is not worth running.
|
|
Productive *int64 `json:"productive,omitempty"`
|
|
// Sources breaks the judged events down by the source that WON, so a plane that looks labelled because one noisy source dominates is visible as such.
|
|
Sources []LabelRiskSourceCoverage `json:"sources,omitempty"`
|
|
// To is the EXCLUSIVE end of that window (at < To). Unstated it is one horizon before now, never now: a window running to now under a maturity horizon can hold no matured event at all, so every count below would read zero however much ground truth the tenant held.
|
|
To *string `json:"to,omitempty"`
|
|
// Unlabelled is how many MATURED events had no assertion knowable by their own as-of — including every assertion that arrived after that instant. It is the field that says WHY judged is low: a tenant whose ground truth was filed long after the events it judges reads matured=n, judged=0, unlabelled=n, which is diagnosable, rather than a bare zero, which is not.
|
|
Unlabelled *int64 `json:"unlabelled,omitempty"`
|
|
// Unmatured is how many events in the window have NOT aged past the horizon. They are not unlabelled — they are not yet askable, and a supervised set must exclude them rather than treat them as negatives. Matured + Unmatured is Events.
|
|
Unmatured *int64 `json:"unmatured,omitempty"`
|
|
// Unproductive is every OTHER judged event: the winner claimed `unproductive`, judged not suspicious. Productive + Unproductive is Judged exactly, because a winner of the explicit unjudged is counted in neither — it is a matured event somebody looked at and could not conclude about, and rolling it into the negatives would hand a model a claim nobody made.
|
|
Unproductive *int64 `json:"unproductive,omitempty"`
|
|
AdditionalProperties map[string]interface{}
|
|
}
|
|
|
|
type _LabelRiskLabelCoverage LabelRiskLabelCoverage
|
|
|
|
// NewLabelRiskLabelCoverage instantiates a new LabelRiskLabelCoverage object
|
|
// This constructor will assign default values to properties that have it defined,
|
|
// and makes sure properties required by API are set, but the set of arguments
|
|
// will change when the set of required properties is changed
|
|
func NewLabelRiskLabelCoverage() *LabelRiskLabelCoverage {
|
|
this := LabelRiskLabelCoverage{}
|
|
return &this
|
|
}
|
|
|
|
// NewLabelRiskLabelCoverageWithDefaults instantiates a new LabelRiskLabelCoverage object
|
|
// This constructor will only assign default values to properties that have it defined,
|
|
// but it doesn't guarantee that properties required by API are set
|
|
func NewLabelRiskLabelCoverageWithDefaults() *LabelRiskLabelCoverage {
|
|
this := LabelRiskLabelCoverage{}
|
|
return &this
|
|
}
|
|
|
|
// GetContested returns the Contested field value if set, zero value otherwise.
|
|
func (o *LabelRiskLabelCoverage) GetContested() int64 {
|
|
if o == nil || IsNil(o.Contested) {
|
|
var ret int64
|
|
return ret
|
|
}
|
|
return *o.Contested
|
|
}
|
|
|
|
// GetContestedOk returns a tuple with the Contested field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *LabelRiskLabelCoverage) GetContestedOk() (*int64, bool) {
|
|
if o == nil || IsNil(o.Contested) {
|
|
return nil, false
|
|
}
|
|
return o.Contested, true
|
|
}
|
|
|
|
// HasContested returns a boolean if a field has been set.
|
|
func (o *LabelRiskLabelCoverage) HasContested() bool {
|
|
if o != nil && !IsNil(o.Contested) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetContested gets a reference to the given int64 and assigns it to the Contested field.
|
|
func (o *LabelRiskLabelCoverage) SetContested(v int64) {
|
|
o.Contested = &v
|
|
}
|
|
|
|
// GetEvents returns the Events field value if set, zero value otherwise.
|
|
func (o *LabelRiskLabelCoverage) GetEvents() int64 {
|
|
if o == nil || IsNil(o.Events) {
|
|
var ret int64
|
|
return ret
|
|
}
|
|
return *o.Events
|
|
}
|
|
|
|
// GetEventsOk returns a tuple with the Events field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *LabelRiskLabelCoverage) GetEventsOk() (*int64, bool) {
|
|
if o == nil || IsNil(o.Events) {
|
|
return nil, false
|
|
}
|
|
return o.Events, true
|
|
}
|
|
|
|
// HasEvents returns a boolean if a field has been set.
|
|
func (o *LabelRiskLabelCoverage) HasEvents() bool {
|
|
if o != nil && !IsNil(o.Events) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetEvents gets a reference to the given int64 and assigns it to the Events field.
|
|
func (o *LabelRiskLabelCoverage) SetEvents(v int64) {
|
|
o.Events = &v
|
|
}
|
|
|
|
// GetExplore returns the Explore field value if set, zero value otherwise.
|
|
func (o *LabelRiskLabelCoverage) GetExplore() float64 {
|
|
if o == nil || IsNil(o.Explore) {
|
|
var ret float64
|
|
return ret
|
|
}
|
|
return *o.Explore
|
|
}
|
|
|
|
// GetExploreOk returns a tuple with the Explore field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *LabelRiskLabelCoverage) GetExploreOk() (*float64, bool) {
|
|
if o == nil || IsNil(o.Explore) {
|
|
return nil, false
|
|
}
|
|
return o.Explore, true
|
|
}
|
|
|
|
// HasExplore returns a boolean if a field has been set.
|
|
func (o *LabelRiskLabelCoverage) HasExplore() bool {
|
|
if o != nil && !IsNil(o.Explore) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetExplore gets a reference to the given float64 and assigns it to the Explore field.
|
|
func (o *LabelRiskLabelCoverage) SetExplore(v float64) {
|
|
o.Explore = &v
|
|
}
|
|
|
|
// GetFacts returns the Facts field value if set, zero value otherwise.
|
|
func (o *LabelRiskLabelCoverage) GetFacts() int64 {
|
|
if o == nil || IsNil(o.Facts) {
|
|
var ret int64
|
|
return ret
|
|
}
|
|
return *o.Facts
|
|
}
|
|
|
|
// GetFactsOk returns a tuple with the Facts field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *LabelRiskLabelCoverage) GetFactsOk() (*int64, bool) {
|
|
if o == nil || IsNil(o.Facts) {
|
|
return nil, false
|
|
}
|
|
return o.Facts, true
|
|
}
|
|
|
|
// HasFacts returns a boolean if a field has been set.
|
|
func (o *LabelRiskLabelCoverage) HasFacts() bool {
|
|
if o != nil && !IsNil(o.Facts) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetFacts gets a reference to the given int64 and assigns it to the Facts field.
|
|
func (o *LabelRiskLabelCoverage) SetFacts(v int64) {
|
|
o.Facts = &v
|
|
}
|
|
|
|
// GetFrom returns the From field value if set, zero value otherwise.
|
|
func (o *LabelRiskLabelCoverage) GetFrom() string {
|
|
if o == nil || IsNil(o.From) {
|
|
var ret string
|
|
return ret
|
|
}
|
|
return *o.From
|
|
}
|
|
|
|
// GetFromOk returns a tuple with the From field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *LabelRiskLabelCoverage) GetFromOk() (*string, bool) {
|
|
if o == nil || IsNil(o.From) {
|
|
return nil, false
|
|
}
|
|
return o.From, true
|
|
}
|
|
|
|
// HasFrom returns a boolean if a field has been set.
|
|
func (o *LabelRiskLabelCoverage) HasFrom() bool {
|
|
if o != nil && !IsNil(o.From) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetFrom gets a reference to the given string and assigns it to the From field.
|
|
func (o *LabelRiskLabelCoverage) SetFrom(v string) {
|
|
o.From = &v
|
|
}
|
|
|
|
// GetHorizon returns the Horizon field value if set, zero value otherwise.
|
|
func (o *LabelRiskLabelCoverage) GetHorizon() int64 {
|
|
if o == nil || IsNil(o.Horizon) {
|
|
var ret int64
|
|
return ret
|
|
}
|
|
return *o.Horizon
|
|
}
|
|
|
|
// GetHorizonOk returns a tuple with the Horizon field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *LabelRiskLabelCoverage) GetHorizonOk() (*int64, bool) {
|
|
if o == nil || IsNil(o.Horizon) {
|
|
return nil, false
|
|
}
|
|
return o.Horizon, true
|
|
}
|
|
|
|
// HasHorizon returns a boolean if a field has been set.
|
|
func (o *LabelRiskLabelCoverage) HasHorizon() bool {
|
|
if o != nil && !IsNil(o.Horizon) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetHorizon gets a reference to the given int64 and assigns it to the Horizon field.
|
|
func (o *LabelRiskLabelCoverage) SetHorizon(v int64) {
|
|
o.Horizon = &v
|
|
}
|
|
|
|
// GetJudged returns the Judged field value if set, zero value otherwise.
|
|
func (o *LabelRiskLabelCoverage) GetJudged() int64 {
|
|
if o == nil || IsNil(o.Judged) {
|
|
var ret int64
|
|
return ret
|
|
}
|
|
return *o.Judged
|
|
}
|
|
|
|
// GetJudgedOk returns a tuple with the Judged field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *LabelRiskLabelCoverage) GetJudgedOk() (*int64, bool) {
|
|
if o == nil || IsNil(o.Judged) {
|
|
return nil, false
|
|
}
|
|
return o.Judged, true
|
|
}
|
|
|
|
// HasJudged returns a boolean if a field has been set.
|
|
func (o *LabelRiskLabelCoverage) HasJudged() bool {
|
|
if o != nil && !IsNil(o.Judged) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetJudged gets a reference to the given int64 and assigns it to the Judged field.
|
|
func (o *LabelRiskLabelCoverage) SetJudged(v int64) {
|
|
o.Judged = &v
|
|
}
|
|
|
|
// GetMatured returns the Matured field value if set, zero value otherwise.
|
|
func (o *LabelRiskLabelCoverage) GetMatured() int64 {
|
|
if o == nil || IsNil(o.Matured) {
|
|
var ret int64
|
|
return ret
|
|
}
|
|
return *o.Matured
|
|
}
|
|
|
|
// GetMaturedOk returns a tuple with the Matured field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *LabelRiskLabelCoverage) GetMaturedOk() (*int64, bool) {
|
|
if o == nil || IsNil(o.Matured) {
|
|
return nil, false
|
|
}
|
|
return o.Matured, true
|
|
}
|
|
|
|
// HasMatured returns a boolean if a field has been set.
|
|
func (o *LabelRiskLabelCoverage) HasMatured() bool {
|
|
if o != nil && !IsNil(o.Matured) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetMatured gets a reference to the given int64 and assigns it to the Matured field.
|
|
func (o *LabelRiskLabelCoverage) SetMatured(v int64) {
|
|
o.Matured = &v
|
|
}
|
|
|
|
// GetPending returns the Pending field value if set, zero value otherwise.
|
|
func (o *LabelRiskLabelCoverage) GetPending() int64 {
|
|
if o == nil || IsNil(o.Pending) {
|
|
var ret int64
|
|
return ret
|
|
}
|
|
return *o.Pending
|
|
}
|
|
|
|
// GetPendingOk returns a tuple with the Pending field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *LabelRiskLabelCoverage) GetPendingOk() (*int64, bool) {
|
|
if o == nil || IsNil(o.Pending) {
|
|
return nil, false
|
|
}
|
|
return o.Pending, true
|
|
}
|
|
|
|
// HasPending returns a boolean if a field has been set.
|
|
func (o *LabelRiskLabelCoverage) HasPending() bool {
|
|
if o != nil && !IsNil(o.Pending) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetPending gets a reference to the given int64 and assigns it to the Pending field.
|
|
func (o *LabelRiskLabelCoverage) SetPending(v int64) {
|
|
o.Pending = &v
|
|
}
|
|
|
|
// GetProductive returns the Productive field value if set, zero value otherwise.
|
|
func (o *LabelRiskLabelCoverage) GetProductive() int64 {
|
|
if o == nil || IsNil(o.Productive) {
|
|
var ret int64
|
|
return ret
|
|
}
|
|
return *o.Productive
|
|
}
|
|
|
|
// GetProductiveOk returns a tuple with the Productive field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *LabelRiskLabelCoverage) GetProductiveOk() (*int64, bool) {
|
|
if o == nil || IsNil(o.Productive) {
|
|
return nil, false
|
|
}
|
|
return o.Productive, true
|
|
}
|
|
|
|
// HasProductive returns a boolean if a field has been set.
|
|
func (o *LabelRiskLabelCoverage) HasProductive() bool {
|
|
if o != nil && !IsNil(o.Productive) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetProductive gets a reference to the given int64 and assigns it to the Productive field.
|
|
func (o *LabelRiskLabelCoverage) SetProductive(v int64) {
|
|
o.Productive = &v
|
|
}
|
|
|
|
// GetSources returns the Sources field value if set, zero value otherwise.
|
|
func (o *LabelRiskLabelCoverage) GetSources() []LabelRiskSourceCoverage {
|
|
if o == nil || IsNil(o.Sources) {
|
|
var ret []LabelRiskSourceCoverage
|
|
return ret
|
|
}
|
|
return o.Sources
|
|
}
|
|
|
|
// GetSourcesOk returns a tuple with the Sources field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *LabelRiskLabelCoverage) GetSourcesOk() ([]LabelRiskSourceCoverage, bool) {
|
|
if o == nil || IsNil(o.Sources) {
|
|
return nil, false
|
|
}
|
|
return o.Sources, true
|
|
}
|
|
|
|
// HasSources returns a boolean if a field has been set.
|
|
func (o *LabelRiskLabelCoverage) HasSources() bool {
|
|
if o != nil && !IsNil(o.Sources) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetSources gets a reference to the given []LabelRiskSourceCoverage and assigns it to the Sources field.
|
|
func (o *LabelRiskLabelCoverage) SetSources(v []LabelRiskSourceCoverage) {
|
|
o.Sources = v
|
|
}
|
|
|
|
// GetTo returns the To field value if set, zero value otherwise.
|
|
func (o *LabelRiskLabelCoverage) GetTo() string {
|
|
if o == nil || IsNil(o.To) {
|
|
var ret string
|
|
return ret
|
|
}
|
|
return *o.To
|
|
}
|
|
|
|
// GetToOk returns a tuple with the To field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *LabelRiskLabelCoverage) GetToOk() (*string, bool) {
|
|
if o == nil || IsNil(o.To) {
|
|
return nil, false
|
|
}
|
|
return o.To, true
|
|
}
|
|
|
|
// HasTo returns a boolean if a field has been set.
|
|
func (o *LabelRiskLabelCoverage) HasTo() bool {
|
|
if o != nil && !IsNil(o.To) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetTo gets a reference to the given string and assigns it to the To field.
|
|
func (o *LabelRiskLabelCoverage) SetTo(v string) {
|
|
o.To = &v
|
|
}
|
|
|
|
// GetUnlabelled returns the Unlabelled field value if set, zero value otherwise.
|
|
func (o *LabelRiskLabelCoverage) GetUnlabelled() int64 {
|
|
if o == nil || IsNil(o.Unlabelled) {
|
|
var ret int64
|
|
return ret
|
|
}
|
|
return *o.Unlabelled
|
|
}
|
|
|
|
// GetUnlabelledOk returns a tuple with the Unlabelled field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *LabelRiskLabelCoverage) GetUnlabelledOk() (*int64, bool) {
|
|
if o == nil || IsNil(o.Unlabelled) {
|
|
return nil, false
|
|
}
|
|
return o.Unlabelled, true
|
|
}
|
|
|
|
// HasUnlabelled returns a boolean if a field has been set.
|
|
func (o *LabelRiskLabelCoverage) HasUnlabelled() bool {
|
|
if o != nil && !IsNil(o.Unlabelled) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetUnlabelled gets a reference to the given int64 and assigns it to the Unlabelled field.
|
|
func (o *LabelRiskLabelCoverage) SetUnlabelled(v int64) {
|
|
o.Unlabelled = &v
|
|
}
|
|
|
|
// GetUnmatured returns the Unmatured field value if set, zero value otherwise.
|
|
func (o *LabelRiskLabelCoverage) GetUnmatured() int64 {
|
|
if o == nil || IsNil(o.Unmatured) {
|
|
var ret int64
|
|
return ret
|
|
}
|
|
return *o.Unmatured
|
|
}
|
|
|
|
// GetUnmaturedOk returns a tuple with the Unmatured field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *LabelRiskLabelCoverage) GetUnmaturedOk() (*int64, bool) {
|
|
if o == nil || IsNil(o.Unmatured) {
|
|
return nil, false
|
|
}
|
|
return o.Unmatured, true
|
|
}
|
|
|
|
// HasUnmatured returns a boolean if a field has been set.
|
|
func (o *LabelRiskLabelCoverage) HasUnmatured() bool {
|
|
if o != nil && !IsNil(o.Unmatured) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetUnmatured gets a reference to the given int64 and assigns it to the Unmatured field.
|
|
func (o *LabelRiskLabelCoverage) SetUnmatured(v int64) {
|
|
o.Unmatured = &v
|
|
}
|
|
|
|
// GetUnproductive returns the Unproductive field value if set, zero value otherwise.
|
|
func (o *LabelRiskLabelCoverage) GetUnproductive() int64 {
|
|
if o == nil || IsNil(o.Unproductive) {
|
|
var ret int64
|
|
return ret
|
|
}
|
|
return *o.Unproductive
|
|
}
|
|
|
|
// GetUnproductiveOk returns a tuple with the Unproductive field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *LabelRiskLabelCoverage) GetUnproductiveOk() (*int64, bool) {
|
|
if o == nil || IsNil(o.Unproductive) {
|
|
return nil, false
|
|
}
|
|
return o.Unproductive, true
|
|
}
|
|
|
|
// HasUnproductive returns a boolean if a field has been set.
|
|
func (o *LabelRiskLabelCoverage) HasUnproductive() bool {
|
|
if o != nil && !IsNil(o.Unproductive) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetUnproductive gets a reference to the given int64 and assigns it to the Unproductive field.
|
|
func (o *LabelRiskLabelCoverage) SetUnproductive(v int64) {
|
|
o.Unproductive = &v
|
|
}
|
|
|
|
func (o LabelRiskLabelCoverage) MarshalJSON() ([]byte, error) {
|
|
toSerialize, err := o.ToMap()
|
|
if err != nil {
|
|
return []byte{}, err
|
|
}
|
|
return json.Marshal(toSerialize)
|
|
}
|
|
|
|
func (o LabelRiskLabelCoverage) ToMap() (map[string]interface{}, error) {
|
|
toSerialize := map[string]interface{}{}
|
|
if !IsNil(o.Contested) {
|
|
toSerialize["contested"] = o.Contested
|
|
}
|
|
if !IsNil(o.Events) {
|
|
toSerialize["events"] = o.Events
|
|
}
|
|
if !IsNil(o.Explore) {
|
|
toSerialize["explore"] = o.Explore
|
|
}
|
|
if !IsNil(o.Facts) {
|
|
toSerialize["facts"] = o.Facts
|
|
}
|
|
if !IsNil(o.From) {
|
|
toSerialize["from"] = o.From
|
|
}
|
|
if !IsNil(o.Horizon) {
|
|
toSerialize["horizon"] = o.Horizon
|
|
}
|
|
if !IsNil(o.Judged) {
|
|
toSerialize["judged"] = o.Judged
|
|
}
|
|
if !IsNil(o.Matured) {
|
|
toSerialize["matured"] = o.Matured
|
|
}
|
|
if !IsNil(o.Pending) {
|
|
toSerialize["pending"] = o.Pending
|
|
}
|
|
if !IsNil(o.Productive) {
|
|
toSerialize["productive"] = o.Productive
|
|
}
|
|
if !IsNil(o.Sources) {
|
|
toSerialize["sources"] = o.Sources
|
|
}
|
|
if !IsNil(o.To) {
|
|
toSerialize["to"] = o.To
|
|
}
|
|
if !IsNil(o.Unlabelled) {
|
|
toSerialize["unlabelled"] = o.Unlabelled
|
|
}
|
|
if !IsNil(o.Unmatured) {
|
|
toSerialize["unmatured"] = o.Unmatured
|
|
}
|
|
if !IsNil(o.Unproductive) {
|
|
toSerialize["unproductive"] = o.Unproductive
|
|
}
|
|
|
|
for key, value := range o.AdditionalProperties {
|
|
toSerialize[key] = value
|
|
}
|
|
|
|
return toSerialize, nil
|
|
}
|
|
|
|
func (o *LabelRiskLabelCoverage) UnmarshalJSON(data []byte) (err error) {
|
|
varLabelRiskLabelCoverage := _LabelRiskLabelCoverage{}
|
|
|
|
err = json.Unmarshal(data, &varLabelRiskLabelCoverage)
|
|
|
|
if err != nil {
|
|
return err
|
|
}
|
|
|
|
*o = LabelRiskLabelCoverage(varLabelRiskLabelCoverage)
|
|
|
|
additionalProperties := make(map[string]interface{})
|
|
|
|
if err = json.Unmarshal(data, &additionalProperties); err == nil {
|
|
delete(additionalProperties, "contested")
|
|
delete(additionalProperties, "events")
|
|
delete(additionalProperties, "explore")
|
|
delete(additionalProperties, "facts")
|
|
delete(additionalProperties, "from")
|
|
delete(additionalProperties, "horizon")
|
|
delete(additionalProperties, "judged")
|
|
delete(additionalProperties, "matured")
|
|
delete(additionalProperties, "pending")
|
|
delete(additionalProperties, "productive")
|
|
delete(additionalProperties, "sources")
|
|
delete(additionalProperties, "to")
|
|
delete(additionalProperties, "unlabelled")
|
|
delete(additionalProperties, "unmatured")
|
|
delete(additionalProperties, "unproductive")
|
|
o.AdditionalProperties = additionalProperties
|
|
}
|
|
|
|
return err
|
|
}
|
|
|
|
type NullableLabelRiskLabelCoverage struct {
|
|
value *LabelRiskLabelCoverage
|
|
isSet bool
|
|
}
|
|
|
|
func (v NullableLabelRiskLabelCoverage) Get() *LabelRiskLabelCoverage {
|
|
return v.value
|
|
}
|
|
|
|
func (v *NullableLabelRiskLabelCoverage) Set(val *LabelRiskLabelCoverage) {
|
|
v.value = val
|
|
v.isSet = true
|
|
}
|
|
|
|
func (v NullableLabelRiskLabelCoverage) IsSet() bool {
|
|
return v.isSet
|
|
}
|
|
|
|
func (v *NullableLabelRiskLabelCoverage) Unset() {
|
|
v.value = nil
|
|
v.isSet = false
|
|
}
|
|
|
|
func NewNullableLabelRiskLabelCoverage(val *LabelRiskLabelCoverage) *NullableLabelRiskLabelCoverage {
|
|
return &NullableLabelRiskLabelCoverage{value: val, isSet: true}
|
|
}
|
|
|
|
func (v NullableLabelRiskLabelCoverage) MarshalJSON() ([]byte, error) {
|
|
return json.Marshal(v.value)
|
|
}
|
|
|
|
func (v *NullableLabelRiskLabelCoverage) UnmarshalJSON(src []byte) error {
|
|
v.isSet = true
|
|
return json.Unmarshal(src, &v.value)
|
|
}
|