@@ -41,7 +41,7 @@ type ServiceDefinitionV2Dot2 struct {
4141 // Importance of the service.
4242 Tier * string `json:"tier,omitempty"`
4343 // The type of service.
44- Type * ServiceDefinitionV2Dot2Type `json:"type,omitempty"`
44+ Type * string `json:"type,omitempty"`
4545 // UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
4646 UnparsedObject map [string ]interface {} `json:"-"`
4747 AdditionalProperties map [string ]interface {} `json:"-"`
@@ -451,17 +451,17 @@ func (o *ServiceDefinitionV2Dot2) SetTier(v string) {
451451}
452452
453453// GetType returns the Type field value if set, zero value otherwise.
454- func (o * ServiceDefinitionV2Dot2 ) GetType () ServiceDefinitionV2Dot2Type {
454+ func (o * ServiceDefinitionV2Dot2 ) GetType () string {
455455 if o == nil || o .Type == nil {
456- var ret ServiceDefinitionV2Dot2Type
456+ var ret string
457457 return ret
458458 }
459459 return * o .Type
460460}
461461
462462// GetTypeOk returns a tuple with the Type field value if set, nil otherwise
463463// and a boolean to check if the value has been set.
464- func (o * ServiceDefinitionV2Dot2 ) GetTypeOk () (* ServiceDefinitionV2Dot2Type , bool ) {
464+ func (o * ServiceDefinitionV2Dot2 ) GetTypeOk () (* string , bool ) {
465465 if o == nil || o .Type == nil {
466466 return nil , false
467467 }
@@ -473,8 +473,8 @@ func (o *ServiceDefinitionV2Dot2) HasType() bool {
473473 return o != nil && o .Type != nil
474474}
475475
476- // SetType gets a reference to the given ServiceDefinitionV2Dot2Type and assigns it to the Type field.
477- func (o * ServiceDefinitionV2Dot2 ) SetType (v ServiceDefinitionV2Dot2Type ) {
476+ // SetType gets a reference to the given string and assigns it to the Type field.
477+ func (o * ServiceDefinitionV2Dot2 ) SetType (v string ) {
478478 o .Type = & v
479479}
480480
@@ -549,7 +549,7 @@ func (o *ServiceDefinitionV2Dot2) UnmarshalJSON(bytes []byte) (err error) {
549549 Tags []string `json:"tags,omitempty"`
550550 Team * string `json:"team,omitempty"`
551551 Tier * string `json:"tier,omitempty"`
552- Type * ServiceDefinitionV2Dot2Type `json:"type,omitempty"`
552+ Type * string `json:"type,omitempty"`
553553 }{}
554554 if err = datadog .Unmarshal (bytes , & all ); err != nil {
555555 return datadog .Unmarshal (bytes , & o .UnparsedObject )
@@ -589,11 +589,7 @@ func (o *ServiceDefinitionV2Dot2) UnmarshalJSON(bytes []byte) (err error) {
589589 o .Tags = all .Tags
590590 o .Team = all .Team
591591 o .Tier = all .Tier
592- if all .Type != nil && ! all .Type .IsValid () {
593- hasInvalidField = true
594- } else {
595- o .Type = all .Type
596- }
592+ o .Type = all .Type
597593
598594 if len (additionalProperties ) > 0 {
599595 o .AdditionalProperties = additionalProperties
0 commit comments