@@ -10,10 +10,12 @@ import (
1010 "github.com/DataDog/datadog-api-client-go/v2/api/datadog"
1111)
1212
13- // CaseAttributes Case attributes
13+ // CaseAttributes Case resource attributes
1414type CaseAttributes struct {
1515 // Timestamp of when the case was archived
1616 ArchivedAt datadog.NullableTime `json:"archived_at,omitempty"`
17+ // The definition of `CaseObjectAttributes` object.
18+ Attributes map [string ][]string `json:"attributes,omitempty"`
1719 // Timestamp of when the case was closed
1820 ClosedAt datadog.NullableTime `json:"closed_at,omitempty"`
1921 // Timestamp of when the case was created
@@ -101,6 +103,34 @@ func (o *CaseAttributes) UnsetArchivedAt() {
101103 o .ArchivedAt .Unset ()
102104}
103105
106+ // GetAttributes returns the Attributes field value if set, zero value otherwise.
107+ func (o * CaseAttributes ) GetAttributes () map [string ][]string {
108+ if o == nil || o .Attributes == nil {
109+ var ret map [string ][]string
110+ return ret
111+ }
112+ return o .Attributes
113+ }
114+
115+ // GetAttributesOk returns a tuple with the Attributes field value if set, nil otherwise
116+ // and a boolean to check if the value has been set.
117+ func (o * CaseAttributes ) GetAttributesOk () (* map [string ][]string , bool ) {
118+ if o == nil || o .Attributes == nil {
119+ return nil , false
120+ }
121+ return & o .Attributes , true
122+ }
123+
124+ // HasAttributes returns a boolean if a field has been set.
125+ func (o * CaseAttributes ) HasAttributes () bool {
126+ return o != nil && o .Attributes != nil
127+ }
128+
129+ // SetAttributes gets a reference to the given map[string][]string and assigns it to the Attributes field.
130+ func (o * CaseAttributes ) SetAttributes (v map [string ][]string ) {
131+ o .Attributes = v
132+ }
133+
104134// GetClosedAt returns the ClosedAt field value if set, zero value otherwise (both if not set or set to explicit null).
105135func (o * CaseAttributes ) GetClosedAt () time.Time {
106136 if o == nil || o .ClosedAt .Get () == nil {
@@ -462,6 +492,9 @@ func (o CaseAttributes) MarshalJSON() ([]byte, error) {
462492 if o .ArchivedAt .IsSet () {
463493 toSerialize ["archived_at" ] = o .ArchivedAt .Get ()
464494 }
495+ if o .Attributes != nil {
496+ toSerialize ["attributes" ] = o .Attributes
497+ }
465498 if o .ClosedAt .IsSet () {
466499 toSerialize ["closed_at" ] = o .ClosedAt .Get ()
467500 }
@@ -510,6 +543,7 @@ func (o CaseAttributes) MarshalJSON() ([]byte, error) {
510543func (o * CaseAttributes ) UnmarshalJSON (bytes []byte ) (err error ) {
511544 all := struct {
512545 ArchivedAt datadog.NullableTime `json:"archived_at,omitempty"`
546+ Attributes map [string ][]string `json:"attributes,omitempty"`
513547 ClosedAt datadog.NullableTime `json:"closed_at,omitempty"`
514548 CreatedAt * time.Time `json:"created_at,omitempty"`
515549 Description * string `json:"description,omitempty"`
@@ -527,13 +561,14 @@ func (o *CaseAttributes) UnmarshalJSON(bytes []byte) (err error) {
527561 }
528562 additionalProperties := make (map [string ]interface {})
529563 if err = datadog .Unmarshal (bytes , & additionalProperties ); err == nil {
530- datadog .DeleteKeys (additionalProperties , & []string {"archived_at" , "closed_at" , "created_at" , "description" , "jira_issue" , "key" , "modified_at" , "priority" , "service_now_ticket" , "status" , "title" , "type" })
564+ datadog .DeleteKeys (additionalProperties , & []string {"archived_at" , "attributes" , " closed_at" , "created_at" , "description" , "jira_issue" , "key" , "modified_at" , "priority" , "service_now_ticket" , "status" , "title" , "type" })
531565 } else {
532566 return err
533567 }
534568
535569 hasInvalidField := false
536570 o .ArchivedAt = all .ArchivedAt
571+ o .Attributes = all .Attributes
537572 o .ClosedAt = all .ClosedAt
538573 o .CreatedAt = all .CreatedAt
539574 o .Description = all .Description
0 commit comments