-
Notifications
You must be signed in to change notification settings - Fork 54
/
model_timeseries_widget_definition.go
617 lines (546 loc) · 20.1 KB
/
model_timeseries_widget_definition.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
// Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License.
// This product includes software developed at Datadog (https://www.datadoghq.com/).
// Copyright 2019-Present Datadog, Inc.
package datadogV1
import (
"fmt"
"github.com/DataDog/datadog-api-client-go/v2/api/datadog"
)
// TimeseriesWidgetDefinition The timeseries visualization allows you to display the evolution of one or more metrics, log events, or Indexed Spans over time.
type TimeseriesWidgetDefinition struct {
// List of custom links.
CustomLinks []WidgetCustomLink `json:"custom_links,omitempty"`
// List of widget events.
Events []WidgetEvent `json:"events,omitempty"`
// Columns displayed in the legend.
LegendColumns []TimeseriesWidgetLegendColumn `json:"legend_columns,omitempty"`
// Layout of the legend.
LegendLayout *TimeseriesWidgetLegendLayout `json:"legend_layout,omitempty"`
// Available legend sizes for a widget. Should be one of "0", "2", "4", "8", "16", or "auto".
LegendSize *string `json:"legend_size,omitempty"`
// List of markers.
Markers []WidgetMarker `json:"markers,omitempty"`
// List of timeseries widget requests.
Requests []TimeseriesWidgetRequest `json:"requests"`
// Axis controls for the widget.
RightYaxis *WidgetAxis `json:"right_yaxis,omitempty"`
// (screenboard only) Show the legend for this widget.
ShowLegend *bool `json:"show_legend,omitempty"`
// Time setting for the widget.
Time *WidgetTime `json:"time,omitempty"`
// Title of your widget.
Title *string `json:"title,omitempty"`
// How to align the text on the widget.
TitleAlign *WidgetTextAlign `json:"title_align,omitempty"`
// Size of the title.
TitleSize *string `json:"title_size,omitempty"`
// Type of the timeseries widget.
Type TimeseriesWidgetDefinitionType `json:"type"`
// Axis controls for the widget.
Yaxis *WidgetAxis `json:"yaxis,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
// NewTimeseriesWidgetDefinition instantiates a new TimeseriesWidgetDefinition 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 NewTimeseriesWidgetDefinition(requests []TimeseriesWidgetRequest, typeVar TimeseriesWidgetDefinitionType) *TimeseriesWidgetDefinition {
this := TimeseriesWidgetDefinition{}
this.Requests = requests
this.Type = typeVar
return &this
}
// NewTimeseriesWidgetDefinitionWithDefaults instantiates a new TimeseriesWidgetDefinition 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 NewTimeseriesWidgetDefinitionWithDefaults() *TimeseriesWidgetDefinition {
this := TimeseriesWidgetDefinition{}
var typeVar TimeseriesWidgetDefinitionType = TIMESERIESWIDGETDEFINITIONTYPE_TIMESERIES
this.Type = typeVar
return &this
}
// GetCustomLinks returns the CustomLinks field value if set, zero value otherwise.
func (o *TimeseriesWidgetDefinition) GetCustomLinks() []WidgetCustomLink {
if o == nil || o.CustomLinks == nil {
var ret []WidgetCustomLink
return ret
}
return o.CustomLinks
}
// GetCustomLinksOk returns a tuple with the CustomLinks field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *TimeseriesWidgetDefinition) GetCustomLinksOk() (*[]WidgetCustomLink, bool) {
if o == nil || o.CustomLinks == nil {
return nil, false
}
return &o.CustomLinks, true
}
// HasCustomLinks returns a boolean if a field has been set.
func (o *TimeseriesWidgetDefinition) HasCustomLinks() bool {
return o != nil && o.CustomLinks != nil
}
// SetCustomLinks gets a reference to the given []WidgetCustomLink and assigns it to the CustomLinks field.
func (o *TimeseriesWidgetDefinition) SetCustomLinks(v []WidgetCustomLink) {
o.CustomLinks = v
}
// GetEvents returns the Events field value if set, zero value otherwise.
func (o *TimeseriesWidgetDefinition) GetEvents() []WidgetEvent {
if o == nil || o.Events == nil {
var ret []WidgetEvent
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 *TimeseriesWidgetDefinition) GetEventsOk() (*[]WidgetEvent, bool) {
if o == nil || o.Events == nil {
return nil, false
}
return &o.Events, true
}
// HasEvents returns a boolean if a field has been set.
func (o *TimeseriesWidgetDefinition) HasEvents() bool {
return o != nil && o.Events != nil
}
// SetEvents gets a reference to the given []WidgetEvent and assigns it to the Events field.
func (o *TimeseriesWidgetDefinition) SetEvents(v []WidgetEvent) {
o.Events = v
}
// GetLegendColumns returns the LegendColumns field value if set, zero value otherwise.
func (o *TimeseriesWidgetDefinition) GetLegendColumns() []TimeseriesWidgetLegendColumn {
if o == nil || o.LegendColumns == nil {
var ret []TimeseriesWidgetLegendColumn
return ret
}
return o.LegendColumns
}
// GetLegendColumnsOk returns a tuple with the LegendColumns field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *TimeseriesWidgetDefinition) GetLegendColumnsOk() (*[]TimeseriesWidgetLegendColumn, bool) {
if o == nil || o.LegendColumns == nil {
return nil, false
}
return &o.LegendColumns, true
}
// HasLegendColumns returns a boolean if a field has been set.
func (o *TimeseriesWidgetDefinition) HasLegendColumns() bool {
return o != nil && o.LegendColumns != nil
}
// SetLegendColumns gets a reference to the given []TimeseriesWidgetLegendColumn and assigns it to the LegendColumns field.
func (o *TimeseriesWidgetDefinition) SetLegendColumns(v []TimeseriesWidgetLegendColumn) {
o.LegendColumns = v
}
// GetLegendLayout returns the LegendLayout field value if set, zero value otherwise.
func (o *TimeseriesWidgetDefinition) GetLegendLayout() TimeseriesWidgetLegendLayout {
if o == nil || o.LegendLayout == nil {
var ret TimeseriesWidgetLegendLayout
return ret
}
return *o.LegendLayout
}
// GetLegendLayoutOk returns a tuple with the LegendLayout field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *TimeseriesWidgetDefinition) GetLegendLayoutOk() (*TimeseriesWidgetLegendLayout, bool) {
if o == nil || o.LegendLayout == nil {
return nil, false
}
return o.LegendLayout, true
}
// HasLegendLayout returns a boolean if a field has been set.
func (o *TimeseriesWidgetDefinition) HasLegendLayout() bool {
return o != nil && o.LegendLayout != nil
}
// SetLegendLayout gets a reference to the given TimeseriesWidgetLegendLayout and assigns it to the LegendLayout field.
func (o *TimeseriesWidgetDefinition) SetLegendLayout(v TimeseriesWidgetLegendLayout) {
o.LegendLayout = &v
}
// GetLegendSize returns the LegendSize field value if set, zero value otherwise.
func (o *TimeseriesWidgetDefinition) GetLegendSize() string {
if o == nil || o.LegendSize == nil {
var ret string
return ret
}
return *o.LegendSize
}
// GetLegendSizeOk returns a tuple with the LegendSize field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *TimeseriesWidgetDefinition) GetLegendSizeOk() (*string, bool) {
if o == nil || o.LegendSize == nil {
return nil, false
}
return o.LegendSize, true
}
// HasLegendSize returns a boolean if a field has been set.
func (o *TimeseriesWidgetDefinition) HasLegendSize() bool {
return o != nil && o.LegendSize != nil
}
// SetLegendSize gets a reference to the given string and assigns it to the LegendSize field.
func (o *TimeseriesWidgetDefinition) SetLegendSize(v string) {
o.LegendSize = &v
}
// GetMarkers returns the Markers field value if set, zero value otherwise.
func (o *TimeseriesWidgetDefinition) GetMarkers() []WidgetMarker {
if o == nil || o.Markers == nil {
var ret []WidgetMarker
return ret
}
return o.Markers
}
// GetMarkersOk returns a tuple with the Markers field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *TimeseriesWidgetDefinition) GetMarkersOk() (*[]WidgetMarker, bool) {
if o == nil || o.Markers == nil {
return nil, false
}
return &o.Markers, true
}
// HasMarkers returns a boolean if a field has been set.
func (o *TimeseriesWidgetDefinition) HasMarkers() bool {
return o != nil && o.Markers != nil
}
// SetMarkers gets a reference to the given []WidgetMarker and assigns it to the Markers field.
func (o *TimeseriesWidgetDefinition) SetMarkers(v []WidgetMarker) {
o.Markers = v
}
// GetRequests returns the Requests field value.
func (o *TimeseriesWidgetDefinition) GetRequests() []TimeseriesWidgetRequest {
if o == nil {
var ret []TimeseriesWidgetRequest
return ret
}
return o.Requests
}
// GetRequestsOk returns a tuple with the Requests field value
// and a boolean to check if the value has been set.
func (o *TimeseriesWidgetDefinition) GetRequestsOk() (*[]TimeseriesWidgetRequest, bool) {
if o == nil {
return nil, false
}
return &o.Requests, true
}
// SetRequests sets field value.
func (o *TimeseriesWidgetDefinition) SetRequests(v []TimeseriesWidgetRequest) {
o.Requests = v
}
// GetRightYaxis returns the RightYaxis field value if set, zero value otherwise.
func (o *TimeseriesWidgetDefinition) GetRightYaxis() WidgetAxis {
if o == nil || o.RightYaxis == nil {
var ret WidgetAxis
return ret
}
return *o.RightYaxis
}
// GetRightYaxisOk returns a tuple with the RightYaxis field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *TimeseriesWidgetDefinition) GetRightYaxisOk() (*WidgetAxis, bool) {
if o == nil || o.RightYaxis == nil {
return nil, false
}
return o.RightYaxis, true
}
// HasRightYaxis returns a boolean if a field has been set.
func (o *TimeseriesWidgetDefinition) HasRightYaxis() bool {
return o != nil && o.RightYaxis != nil
}
// SetRightYaxis gets a reference to the given WidgetAxis and assigns it to the RightYaxis field.
func (o *TimeseriesWidgetDefinition) SetRightYaxis(v WidgetAxis) {
o.RightYaxis = &v
}
// GetShowLegend returns the ShowLegend field value if set, zero value otherwise.
func (o *TimeseriesWidgetDefinition) GetShowLegend() bool {
if o == nil || o.ShowLegend == nil {
var ret bool
return ret
}
return *o.ShowLegend
}
// GetShowLegendOk returns a tuple with the ShowLegend field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *TimeseriesWidgetDefinition) GetShowLegendOk() (*bool, bool) {
if o == nil || o.ShowLegend == nil {
return nil, false
}
return o.ShowLegend, true
}
// HasShowLegend returns a boolean if a field has been set.
func (o *TimeseriesWidgetDefinition) HasShowLegend() bool {
return o != nil && o.ShowLegend != nil
}
// SetShowLegend gets a reference to the given bool and assigns it to the ShowLegend field.
func (o *TimeseriesWidgetDefinition) SetShowLegend(v bool) {
o.ShowLegend = &v
}
// GetTime returns the Time field value if set, zero value otherwise.
func (o *TimeseriesWidgetDefinition) GetTime() WidgetTime {
if o == nil || o.Time == nil {
var ret WidgetTime
return ret
}
return *o.Time
}
// GetTimeOk returns a tuple with the Time field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *TimeseriesWidgetDefinition) GetTimeOk() (*WidgetTime, bool) {
if o == nil || o.Time == nil {
return nil, false
}
return o.Time, true
}
// HasTime returns a boolean if a field has been set.
func (o *TimeseriesWidgetDefinition) HasTime() bool {
return o != nil && o.Time != nil
}
// SetTime gets a reference to the given WidgetTime and assigns it to the Time field.
func (o *TimeseriesWidgetDefinition) SetTime(v WidgetTime) {
o.Time = &v
}
// GetTitle returns the Title field value if set, zero value otherwise.
func (o *TimeseriesWidgetDefinition) GetTitle() string {
if o == nil || o.Title == nil {
var ret string
return ret
}
return *o.Title
}
// GetTitleOk returns a tuple with the Title field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *TimeseriesWidgetDefinition) GetTitleOk() (*string, bool) {
if o == nil || o.Title == nil {
return nil, false
}
return o.Title, true
}
// HasTitle returns a boolean if a field has been set.
func (o *TimeseriesWidgetDefinition) HasTitle() bool {
return o != nil && o.Title != nil
}
// SetTitle gets a reference to the given string and assigns it to the Title field.
func (o *TimeseriesWidgetDefinition) SetTitle(v string) {
o.Title = &v
}
// GetTitleAlign returns the TitleAlign field value if set, zero value otherwise.
func (o *TimeseriesWidgetDefinition) GetTitleAlign() WidgetTextAlign {
if o == nil || o.TitleAlign == nil {
var ret WidgetTextAlign
return ret
}
return *o.TitleAlign
}
// GetTitleAlignOk returns a tuple with the TitleAlign field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *TimeseriesWidgetDefinition) GetTitleAlignOk() (*WidgetTextAlign, bool) {
if o == nil || o.TitleAlign == nil {
return nil, false
}
return o.TitleAlign, true
}
// HasTitleAlign returns a boolean if a field has been set.
func (o *TimeseriesWidgetDefinition) HasTitleAlign() bool {
return o != nil && o.TitleAlign != nil
}
// SetTitleAlign gets a reference to the given WidgetTextAlign and assigns it to the TitleAlign field.
func (o *TimeseriesWidgetDefinition) SetTitleAlign(v WidgetTextAlign) {
o.TitleAlign = &v
}
// GetTitleSize returns the TitleSize field value if set, zero value otherwise.
func (o *TimeseriesWidgetDefinition) GetTitleSize() string {
if o == nil || o.TitleSize == nil {
var ret string
return ret
}
return *o.TitleSize
}
// GetTitleSizeOk returns a tuple with the TitleSize field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *TimeseriesWidgetDefinition) GetTitleSizeOk() (*string, bool) {
if o == nil || o.TitleSize == nil {
return nil, false
}
return o.TitleSize, true
}
// HasTitleSize returns a boolean if a field has been set.
func (o *TimeseriesWidgetDefinition) HasTitleSize() bool {
return o != nil && o.TitleSize != nil
}
// SetTitleSize gets a reference to the given string and assigns it to the TitleSize field.
func (o *TimeseriesWidgetDefinition) SetTitleSize(v string) {
o.TitleSize = &v
}
// GetType returns the Type field value.
func (o *TimeseriesWidgetDefinition) GetType() TimeseriesWidgetDefinitionType {
if o == nil {
var ret TimeseriesWidgetDefinitionType
return ret
}
return o.Type
}
// GetTypeOk returns a tuple with the Type field value
// and a boolean to check if the value has been set.
func (o *TimeseriesWidgetDefinition) GetTypeOk() (*TimeseriesWidgetDefinitionType, bool) {
if o == nil {
return nil, false
}
return &o.Type, true
}
// SetType sets field value.
func (o *TimeseriesWidgetDefinition) SetType(v TimeseriesWidgetDefinitionType) {
o.Type = v
}
// GetYaxis returns the Yaxis field value if set, zero value otherwise.
func (o *TimeseriesWidgetDefinition) GetYaxis() WidgetAxis {
if o == nil || o.Yaxis == nil {
var ret WidgetAxis
return ret
}
return *o.Yaxis
}
// GetYaxisOk returns a tuple with the Yaxis field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *TimeseriesWidgetDefinition) GetYaxisOk() (*WidgetAxis, bool) {
if o == nil || o.Yaxis == nil {
return nil, false
}
return o.Yaxis, true
}
// HasYaxis returns a boolean if a field has been set.
func (o *TimeseriesWidgetDefinition) HasYaxis() bool {
return o != nil && o.Yaxis != nil
}
// SetYaxis gets a reference to the given WidgetAxis and assigns it to the Yaxis field.
func (o *TimeseriesWidgetDefinition) SetYaxis(v WidgetAxis) {
o.Yaxis = &v
}
// MarshalJSON serializes the struct using spec logic.
func (o TimeseriesWidgetDefinition) MarshalJSON() ([]byte, error) {
toSerialize := map[string]interface{}{}
if o.UnparsedObject != nil {
return datadog.Marshal(o.UnparsedObject)
}
if o.CustomLinks != nil {
toSerialize["custom_links"] = o.CustomLinks
}
if o.Events != nil {
toSerialize["events"] = o.Events
}
if o.LegendColumns != nil {
toSerialize["legend_columns"] = o.LegendColumns
}
if o.LegendLayout != nil {
toSerialize["legend_layout"] = o.LegendLayout
}
if o.LegendSize != nil {
toSerialize["legend_size"] = o.LegendSize
}
if o.Markers != nil {
toSerialize["markers"] = o.Markers
}
toSerialize["requests"] = o.Requests
if o.RightYaxis != nil {
toSerialize["right_yaxis"] = o.RightYaxis
}
if o.ShowLegend != nil {
toSerialize["show_legend"] = o.ShowLegend
}
if o.Time != nil {
toSerialize["time"] = o.Time
}
if o.Title != nil {
toSerialize["title"] = o.Title
}
if o.TitleAlign != nil {
toSerialize["title_align"] = o.TitleAlign
}
if o.TitleSize != nil {
toSerialize["title_size"] = o.TitleSize
}
toSerialize["type"] = o.Type
if o.Yaxis != nil {
toSerialize["yaxis"] = o.Yaxis
}
for key, value := range o.AdditionalProperties {
toSerialize[key] = value
}
return datadog.Marshal(toSerialize)
}
// UnmarshalJSON deserializes the given payload.
func (o *TimeseriesWidgetDefinition) UnmarshalJSON(bytes []byte) (err error) {
all := struct {
CustomLinks []WidgetCustomLink `json:"custom_links,omitempty"`
Events []WidgetEvent `json:"events,omitempty"`
LegendColumns []TimeseriesWidgetLegendColumn `json:"legend_columns,omitempty"`
LegendLayout *TimeseriesWidgetLegendLayout `json:"legend_layout,omitempty"`
LegendSize *string `json:"legend_size,omitempty"`
Markers []WidgetMarker `json:"markers,omitempty"`
Requests *[]TimeseriesWidgetRequest `json:"requests"`
RightYaxis *WidgetAxis `json:"right_yaxis,omitempty"`
ShowLegend *bool `json:"show_legend,omitempty"`
Time *WidgetTime `json:"time,omitempty"`
Title *string `json:"title,omitempty"`
TitleAlign *WidgetTextAlign `json:"title_align,omitempty"`
TitleSize *string `json:"title_size,omitempty"`
Type *TimeseriesWidgetDefinitionType `json:"type"`
Yaxis *WidgetAxis `json:"yaxis,omitempty"`
}{}
if err = datadog.Unmarshal(bytes, &all); err != nil {
return datadog.Unmarshal(bytes, &o.UnparsedObject)
}
if all.Requests == nil {
return fmt.Errorf("required field requests missing")
}
if all.Type == nil {
return fmt.Errorf("required field type missing")
}
additionalProperties := make(map[string]interface{})
if err = datadog.Unmarshal(bytes, &additionalProperties); err == nil {
datadog.DeleteKeys(additionalProperties, &[]string{"custom_links", "events", "legend_columns", "legend_layout", "legend_size", "markers", "requests", "right_yaxis", "show_legend", "time", "title", "title_align", "title_size", "type", "yaxis"})
} else {
return err
}
hasInvalidField := false
o.CustomLinks = all.CustomLinks
o.Events = all.Events
o.LegendColumns = all.LegendColumns
if all.LegendLayout != nil && !all.LegendLayout.IsValid() {
hasInvalidField = true
} else {
o.LegendLayout = all.LegendLayout
}
o.LegendSize = all.LegendSize
o.Markers = all.Markers
o.Requests = *all.Requests
if all.RightYaxis != nil && all.RightYaxis.UnparsedObject != nil && o.UnparsedObject == nil {
hasInvalidField = true
}
o.RightYaxis = all.RightYaxis
o.ShowLegend = all.ShowLegend
if all.Time != nil && all.Time.UnparsedObject != nil && o.UnparsedObject == nil {
hasInvalidField = true
}
o.Time = all.Time
o.Title = all.Title
if all.TitleAlign != nil && !all.TitleAlign.IsValid() {
hasInvalidField = true
} else {
o.TitleAlign = all.TitleAlign
}
o.TitleSize = all.TitleSize
if !all.Type.IsValid() {
hasInvalidField = true
} else {
o.Type = *all.Type
}
if all.Yaxis != nil && all.Yaxis.UnparsedObject != nil && o.UnparsedObject == nil {
hasInvalidField = true
}
o.Yaxis = all.Yaxis
if len(additionalProperties) > 0 {
o.AdditionalProperties = additionalProperties
}
if hasInvalidField {
return datadog.Unmarshal(bytes, &o.UnparsedObject)
}
return nil
}