@@ -34,8 +34,13 @@ type CaseAttributes struct {
3434 Priority * CasePriority `json:"priority,omitempty"`
3535 // ServiceNow ticket attached to case
3636 ServiceNowTicket NullableServiceNowTicket `json:"service_now_ticket,omitempty"`
37- // Case status
37+ // Deprecated way of representing the case status, which only supports OPEN, IN_PROGRESS, and CLOSED statuses. Use `status_name` instead.
38+ // Deprecated
3839 Status * CaseStatus `json:"status,omitempty"`
40+ // Status group of the case.
41+ StatusGroup * CaseStatusGroup `json:"status_group,omitempty"`
42+ // Status of the case. Must be one of the existing statuses for the case's type.
43+ StatusName * string `json:"status_name,omitempty"`
3944 // Title
4045 Title * string `json:"title,omitempty"`
4146 // Case type
@@ -433,6 +438,7 @@ func (o *CaseAttributes) UnsetServiceNowTicket() {
433438}
434439
435440// GetStatus returns the Status field value if set, zero value otherwise.
441+ // Deprecated
436442func (o * CaseAttributes ) GetStatus () CaseStatus {
437443 if o == nil || o .Status == nil {
438444 var ret CaseStatus
@@ -443,6 +449,7 @@ func (o *CaseAttributes) GetStatus() CaseStatus {
443449
444450// GetStatusOk returns a tuple with the Status field value if set, nil otherwise
445451// and a boolean to check if the value has been set.
452+ // Deprecated
446453func (o * CaseAttributes ) GetStatusOk () (* CaseStatus , bool ) {
447454 if o == nil || o .Status == nil {
448455 return nil , false
@@ -456,10 +463,67 @@ func (o *CaseAttributes) HasStatus() bool {
456463}
457464
458465// SetStatus gets a reference to the given CaseStatus and assigns it to the Status field.
466+ // Deprecated
459467func (o * CaseAttributes ) SetStatus (v CaseStatus ) {
460468 o .Status = & v
461469}
462470
471+ // GetStatusGroup returns the StatusGroup field value if set, zero value otherwise.
472+ func (o * CaseAttributes ) GetStatusGroup () CaseStatusGroup {
473+ if o == nil || o .StatusGroup == nil {
474+ var ret CaseStatusGroup
475+ return ret
476+ }
477+ return * o .StatusGroup
478+ }
479+
480+ // GetStatusGroupOk returns a tuple with the StatusGroup field value if set, nil otherwise
481+ // and a boolean to check if the value has been set.
482+ func (o * CaseAttributes ) GetStatusGroupOk () (* CaseStatusGroup , bool ) {
483+ if o == nil || o .StatusGroup == nil {
484+ return nil , false
485+ }
486+ return o .StatusGroup , true
487+ }
488+
489+ // HasStatusGroup returns a boolean if a field has been set.
490+ func (o * CaseAttributes ) HasStatusGroup () bool {
491+ return o != nil && o .StatusGroup != nil
492+ }
493+
494+ // SetStatusGroup gets a reference to the given CaseStatusGroup and assigns it to the StatusGroup field.
495+ func (o * CaseAttributes ) SetStatusGroup (v CaseStatusGroup ) {
496+ o .StatusGroup = & v
497+ }
498+
499+ // GetStatusName returns the StatusName field value if set, zero value otherwise.
500+ func (o * CaseAttributes ) GetStatusName () string {
501+ if o == nil || o .StatusName == nil {
502+ var ret string
503+ return ret
504+ }
505+ return * o .StatusName
506+ }
507+
508+ // GetStatusNameOk returns a tuple with the StatusName field value if set, nil otherwise
509+ // and a boolean to check if the value has been set.
510+ func (o * CaseAttributes ) GetStatusNameOk () (* string , bool ) {
511+ if o == nil || o .StatusName == nil {
512+ return nil , false
513+ }
514+ return o .StatusName , true
515+ }
516+
517+ // HasStatusName returns a boolean if a field has been set.
518+ func (o * CaseAttributes ) HasStatusName () bool {
519+ return o != nil && o .StatusName != nil
520+ }
521+
522+ // SetStatusName gets a reference to the given string and assigns it to the StatusName field.
523+ func (o * CaseAttributes ) SetStatusName (v string ) {
524+ o .StatusName = & v
525+ }
526+
463527// GetTitle returns the Title field value if set, zero value otherwise.
464528func (o * CaseAttributes ) GetTitle () string {
465529 if o == nil || o .Title == nil {
@@ -593,6 +657,12 @@ func (o CaseAttributes) MarshalJSON() ([]byte, error) {
593657 if o .Status != nil {
594658 toSerialize ["status" ] = o .Status
595659 }
660+ if o .StatusGroup != nil {
661+ toSerialize ["status_group" ] = o .StatusGroup
662+ }
663+ if o .StatusName != nil {
664+ toSerialize ["status_name" ] = o .StatusName
665+ }
596666 if o .Title != nil {
597667 toSerialize ["title" ] = o .Title
598668 }
@@ -624,6 +694,8 @@ func (o *CaseAttributes) UnmarshalJSON(bytes []byte) (err error) {
624694 Priority * CasePriority `json:"priority,omitempty"`
625695 ServiceNowTicket NullableServiceNowTicket `json:"service_now_ticket,omitempty"`
626696 Status * CaseStatus `json:"status,omitempty"`
697+ StatusGroup * CaseStatusGroup `json:"status_group,omitempty"`
698+ StatusName * string `json:"status_name,omitempty"`
627699 Title * string `json:"title,omitempty"`
628700 Type * CaseType `json:"type,omitempty"`
629701 TypeId * string `json:"type_id,omitempty"`
@@ -633,7 +705,7 @@ func (o *CaseAttributes) UnmarshalJSON(bytes []byte) (err error) {
633705 }
634706 additionalProperties := make (map [string ]interface {})
635707 if err = datadog .Unmarshal (bytes , & additionalProperties ); err == nil {
636- datadog .DeleteKeys (additionalProperties , & []string {"archived_at" , "attributes" , "closed_at" , "created_at" , "custom_attributes" , "description" , "jira_issue" , "key" , "modified_at" , "priority" , "service_now_ticket" , "status" , "title" , "type" , "type_id" })
708+ datadog .DeleteKeys (additionalProperties , & []string {"archived_at" , "attributes" , "closed_at" , "created_at" , "custom_attributes" , "description" , "jira_issue" , "key" , "modified_at" , "priority" , "service_now_ticket" , "status" , "status_group" , "status_name" , " title" , "type" , "type_id" })
637709 } else {
638710 return err
639711 }
@@ -659,6 +731,12 @@ func (o *CaseAttributes) UnmarshalJSON(bytes []byte) (err error) {
659731 } else {
660732 o .Status = all .Status
661733 }
734+ if all .StatusGroup != nil && ! all .StatusGroup .IsValid () {
735+ hasInvalidField = true
736+ } else {
737+ o .StatusGroup = all .StatusGroup
738+ }
739+ o .StatusName = all .StatusName
662740 o .Title = all .Title
663741 if all .Type != nil && ! all .Type .IsValid () {
664742 hasInvalidField = true
0 commit comments