Skip to content

Commit 1f2739d

Browse files
api-clients-generation-pipeline[bot]ci.datadog-api-spec
andauthored
Regenerate client from commit 06e911d of spec repo (#4149)
Co-authored-by: ci.datadog-api-spec <packages@datadoghq.com>
1 parent 6f54e98 commit 1f2739d

3 files changed

Lines changed: 78 additions & 2 deletions

File tree

.generator/schemas/v2/openapi.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26566,6 +26566,9 @@ components:
2656626566
description:
2656726567
description: Description of the degradation.
2656826568
type: string
26569+
is_backfilled:
26570+
description: Whether the degradation was backfilled.
26571+
type: boolean
2656926572
modified_at:
2657026573
description: Timestamp of when the degradation was last modified.
2657126574
format: date-time
@@ -50298,6 +50301,9 @@ components:
5029850301
in_progress_description:
5029950302
description: The description shown while the maintenance is in progress.
5030050303
type: string
50304+
is_backfilled:
50305+
description: Whether the maintenance was backfilled.
50306+
type: boolean
5030150307
modified_at:
5030250308
description: Timestamp of when the maintenance was last modified.
5030350309
format: date-time

api/datadogV2/model_degradation_data_attributes.go

Lines changed: 36 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,8 @@ type DegradationDataAttributes struct {
1818
CreatedAt *time.Time `json:"created_at,omitempty"`
1919
// Description of the degradation.
2020
Description *string `json:"description,omitempty"`
21+
// Whether the degradation was backfilled.
22+
IsBackfilled *bool `json:"is_backfilled,omitempty"`
2123
// Timestamp of when the degradation was last modified.
2224
ModifiedAt *time.Time `json:"modified_at,omitempty"`
2325
// The source of the degradation.
@@ -134,6 +136,34 @@ func (o *DegradationDataAttributes) SetDescription(v string) {
134136
o.Description = &v
135137
}
136138

139+
// GetIsBackfilled returns the IsBackfilled field value if set, zero value otherwise.
140+
func (o *DegradationDataAttributes) GetIsBackfilled() bool {
141+
if o == nil || o.IsBackfilled == nil {
142+
var ret bool
143+
return ret
144+
}
145+
return *o.IsBackfilled
146+
}
147+
148+
// GetIsBackfilledOk returns a tuple with the IsBackfilled field value if set, nil otherwise
149+
// and a boolean to check if the value has been set.
150+
func (o *DegradationDataAttributes) GetIsBackfilledOk() (*bool, bool) {
151+
if o == nil || o.IsBackfilled == nil {
152+
return nil, false
153+
}
154+
return o.IsBackfilled, true
155+
}
156+
157+
// HasIsBackfilled returns a boolean if a field has been set.
158+
func (o *DegradationDataAttributes) HasIsBackfilled() bool {
159+
return o != nil && o.IsBackfilled != nil
160+
}
161+
162+
// SetIsBackfilled gets a reference to the given bool and assigns it to the IsBackfilled field.
163+
func (o *DegradationDataAttributes) SetIsBackfilled(v bool) {
164+
o.IsBackfilled = &v
165+
}
166+
137167
// GetModifiedAt returns the ModifiedAt field value if set, zero value otherwise.
138168
func (o *DegradationDataAttributes) GetModifiedAt() time.Time {
139169
if o == nil || o.ModifiedAt == nil {
@@ -293,6 +323,9 @@ func (o DegradationDataAttributes) MarshalJSON() ([]byte, error) {
293323
if o.Description != nil {
294324
toSerialize["description"] = o.Description
295325
}
326+
if o.IsBackfilled != nil {
327+
toSerialize["is_backfilled"] = o.IsBackfilled
328+
}
296329
if o.ModifiedAt != nil {
297330
if o.ModifiedAt.Nanosecond() == 0 {
298331
toSerialize["modified_at"] = o.ModifiedAt.Format("2006-01-02T15:04:05Z07:00")
@@ -325,6 +358,7 @@ func (o *DegradationDataAttributes) UnmarshalJSON(bytes []byte) (err error) {
325358
ComponentsAffected []DegradationDataAttributesComponentsAffectedItems `json:"components_affected,omitempty"`
326359
CreatedAt *time.Time `json:"created_at,omitempty"`
327360
Description *string `json:"description,omitempty"`
361+
IsBackfilled *bool `json:"is_backfilled,omitempty"`
328362
ModifiedAt *time.Time `json:"modified_at,omitempty"`
329363
Source *DegradationDataAttributesSource `json:"source,omitempty"`
330364
Status *CreateDegradationRequestDataAttributesStatus `json:"status,omitempty"`
@@ -336,7 +370,7 @@ func (o *DegradationDataAttributes) UnmarshalJSON(bytes []byte) (err error) {
336370
}
337371
additionalProperties := make(map[string]interface{})
338372
if err = datadog.UnmarshalUseNumber(bytes, &additionalProperties); err == nil {
339-
datadog.DeleteKeys(additionalProperties, &[]string{"components_affected", "created_at", "description", "modified_at", "source", "status", "title", "updates"})
373+
datadog.DeleteKeys(additionalProperties, &[]string{"components_affected", "created_at", "description", "is_backfilled", "modified_at", "source", "status", "title", "updates"})
340374
} else {
341375
return err
342376
}
@@ -345,6 +379,7 @@ func (o *DegradationDataAttributes) UnmarshalJSON(bytes []byte) (err error) {
345379
o.ComponentsAffected = all.ComponentsAffected
346380
o.CreatedAt = all.CreatedAt
347381
o.Description = all.Description
382+
o.IsBackfilled = all.IsBackfilled
348383
o.ModifiedAt = all.ModifiedAt
349384
if all.Source != nil && all.Source.UnparsedObject != nil && o.UnparsedObject == nil {
350385
hasInvalidField = true

api/datadogV2/model_maintenance_data_attributes.go

Lines changed: 36 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,8 @@ type MaintenanceDataAttributes struct {
2020
ComponentsAffected []MaintenanceDataAttributesComponentsAffectedItems `json:"components_affected,omitempty"`
2121
// The description shown while the maintenance is in progress.
2222
InProgressDescription *string `json:"in_progress_description,omitempty"`
23+
// Whether the maintenance was backfilled.
24+
IsBackfilled *bool `json:"is_backfilled,omitempty"`
2325
// Timestamp of when the maintenance was last modified.
2426
ModifiedAt *time.Time `json:"modified_at,omitempty"`
2527
// Timestamp of when the maintenance was published.
@@ -168,6 +170,34 @@ func (o *MaintenanceDataAttributes) SetInProgressDescription(v string) {
168170
o.InProgressDescription = &v
169171
}
170172

173+
// GetIsBackfilled returns the IsBackfilled field value if set, zero value otherwise.
174+
func (o *MaintenanceDataAttributes) GetIsBackfilled() bool {
175+
if o == nil || o.IsBackfilled == nil {
176+
var ret bool
177+
return ret
178+
}
179+
return *o.IsBackfilled
180+
}
181+
182+
// GetIsBackfilledOk returns a tuple with the IsBackfilled field value if set, nil otherwise
183+
// and a boolean to check if the value has been set.
184+
func (o *MaintenanceDataAttributes) GetIsBackfilledOk() (*bool, bool) {
185+
if o == nil || o.IsBackfilled == nil {
186+
return nil, false
187+
}
188+
return o.IsBackfilled, true
189+
}
190+
191+
// HasIsBackfilled returns a boolean if a field has been set.
192+
func (o *MaintenanceDataAttributes) HasIsBackfilled() bool {
193+
return o != nil && o.IsBackfilled != nil
194+
}
195+
196+
// SetIsBackfilled gets a reference to the given bool and assigns it to the IsBackfilled field.
197+
func (o *MaintenanceDataAttributes) SetIsBackfilled(v bool) {
198+
o.IsBackfilled = &v
199+
}
200+
171201
// GetModifiedAt returns the ModifiedAt field value if set, zero value otherwise.
172202
func (o *MaintenanceDataAttributes) GetModifiedAt() time.Time {
173203
if o == nil || o.ModifiedAt == nil {
@@ -386,6 +416,9 @@ func (o MaintenanceDataAttributes) MarshalJSON() ([]byte, error) {
386416
if o.InProgressDescription != nil {
387417
toSerialize["in_progress_description"] = o.InProgressDescription
388418
}
419+
if o.IsBackfilled != nil {
420+
toSerialize["is_backfilled"] = o.IsBackfilled
421+
}
389422
if o.ModifiedAt != nil {
390423
if o.ModifiedAt.Nanosecond() == 0 {
391424
toSerialize["modified_at"] = o.ModifiedAt.Format("2006-01-02T15:04:05Z07:00")
@@ -433,6 +466,7 @@ func (o *MaintenanceDataAttributes) UnmarshalJSON(bytes []byte) (err error) {
433466
CompletedDescription *string `json:"completed_description,omitempty"`
434467
ComponentsAffected []MaintenanceDataAttributesComponentsAffectedItems `json:"components_affected,omitempty"`
435468
InProgressDescription *string `json:"in_progress_description,omitempty"`
469+
IsBackfilled *bool `json:"is_backfilled,omitempty"`
436470
ModifiedAt *time.Time `json:"modified_at,omitempty"`
437471
PublishedDate *time.Time `json:"published_date,omitempty"`
438472
ScheduledDescription *string `json:"scheduled_description,omitempty"`
@@ -446,7 +480,7 @@ func (o *MaintenanceDataAttributes) UnmarshalJSON(bytes []byte) (err error) {
446480
}
447481
additionalProperties := make(map[string]interface{})
448482
if err = datadog.UnmarshalUseNumber(bytes, &additionalProperties); err == nil {
449-
datadog.DeleteKeys(additionalProperties, &[]string{"completed_date", "completed_description", "components_affected", "in_progress_description", "modified_at", "published_date", "scheduled_description", "start_date", "status", "title", "updates"})
483+
datadog.DeleteKeys(additionalProperties, &[]string{"completed_date", "completed_description", "components_affected", "in_progress_description", "is_backfilled", "modified_at", "published_date", "scheduled_description", "start_date", "status", "title", "updates"})
450484
} else {
451485
return err
452486
}
@@ -456,6 +490,7 @@ func (o *MaintenanceDataAttributes) UnmarshalJSON(bytes []byte) (err error) {
456490
o.CompletedDescription = all.CompletedDescription
457491
o.ComponentsAffected = all.ComponentsAffected
458492
o.InProgressDescription = all.InProgressDescription
493+
o.IsBackfilled = all.IsBackfilled
459494
o.ModifiedAt = all.ModifiedAt
460495
o.PublishedDate = all.PublishedDate
461496
o.ScheduledDescription = all.ScheduledDescription

0 commit comments

Comments
 (0)