@@ -10,6 +10,10 @@ import (
1010
1111// CustomCostListResponseMeta Meta for the response from the List Custom Costs endpoints.
1212type CustomCostListResponseMeta struct {
13+ // Number of Custom Costs files per status.
14+ CountByStatus map [string ]int64 `json:"count_by_status,omitempty"`
15+ // List of available providers.
16+ Providers []string `json:"providers,omitempty"`
1317 // Number of Custom Costs files returned by the List Custom Costs endpoint
1418 TotalFilteredCount * int64 `json:"total_filtered_count,omitempty"`
1519 // Version of Custom Costs file
@@ -36,6 +40,62 @@ func NewCustomCostListResponseMetaWithDefaults() *CustomCostListResponseMeta {
3640 return & this
3741}
3842
43+ // GetCountByStatus returns the CountByStatus field value if set, zero value otherwise.
44+ func (o * CustomCostListResponseMeta ) GetCountByStatus () map [string ]int64 {
45+ if o == nil || o .CountByStatus == nil {
46+ var ret map [string ]int64
47+ return ret
48+ }
49+ return o .CountByStatus
50+ }
51+
52+ // GetCountByStatusOk returns a tuple with the CountByStatus field value if set, nil otherwise
53+ // and a boolean to check if the value has been set.
54+ func (o * CustomCostListResponseMeta ) GetCountByStatusOk () (* map [string ]int64 , bool ) {
55+ if o == nil || o .CountByStatus == nil {
56+ return nil , false
57+ }
58+ return & o .CountByStatus , true
59+ }
60+
61+ // HasCountByStatus returns a boolean if a field has been set.
62+ func (o * CustomCostListResponseMeta ) HasCountByStatus () bool {
63+ return o != nil && o .CountByStatus != nil
64+ }
65+
66+ // SetCountByStatus gets a reference to the given map[string]int64 and assigns it to the CountByStatus field.
67+ func (o * CustomCostListResponseMeta ) SetCountByStatus (v map [string ]int64 ) {
68+ o .CountByStatus = v
69+ }
70+
71+ // GetProviders returns the Providers field value if set, zero value otherwise.
72+ func (o * CustomCostListResponseMeta ) GetProviders () []string {
73+ if o == nil || o .Providers == nil {
74+ var ret []string
75+ return ret
76+ }
77+ return o .Providers
78+ }
79+
80+ // GetProvidersOk returns a tuple with the Providers field value if set, nil otherwise
81+ // and a boolean to check if the value has been set.
82+ func (o * CustomCostListResponseMeta ) GetProvidersOk () (* []string , bool ) {
83+ if o == nil || o .Providers == nil {
84+ return nil , false
85+ }
86+ return & o .Providers , true
87+ }
88+
89+ // HasProviders returns a boolean if a field has been set.
90+ func (o * CustomCostListResponseMeta ) HasProviders () bool {
91+ return o != nil && o .Providers != nil
92+ }
93+
94+ // SetProviders gets a reference to the given []string and assigns it to the Providers field.
95+ func (o * CustomCostListResponseMeta ) SetProviders (v []string ) {
96+ o .Providers = v
97+ }
98+
3999// GetTotalFilteredCount returns the TotalFilteredCount field value if set, zero value otherwise.
40100func (o * CustomCostListResponseMeta ) GetTotalFilteredCount () int64 {
41101 if o == nil || o .TotalFilteredCount == nil {
@@ -98,6 +158,12 @@ func (o CustomCostListResponseMeta) MarshalJSON() ([]byte, error) {
98158 if o .UnparsedObject != nil {
99159 return datadog .Marshal (o .UnparsedObject )
100160 }
161+ if o .CountByStatus != nil {
162+ toSerialize ["count_by_status" ] = o .CountByStatus
163+ }
164+ if o .Providers != nil {
165+ toSerialize ["providers" ] = o .Providers
166+ }
101167 if o .TotalFilteredCount != nil {
102168 toSerialize ["total_filtered_count" ] = o .TotalFilteredCount
103169 }
@@ -114,18 +180,22 @@ func (o CustomCostListResponseMeta) MarshalJSON() ([]byte, error) {
114180// UnmarshalJSON deserializes the given payload.
115181func (o * CustomCostListResponseMeta ) UnmarshalJSON (bytes []byte ) (err error ) {
116182 all := struct {
117- TotalFilteredCount * int64 `json:"total_filtered_count,omitempty"`
118- Version * string `json:"version,omitempty"`
183+ CountByStatus map [string ]int64 `json:"count_by_status,omitempty"`
184+ Providers []string `json:"providers,omitempty"`
185+ TotalFilteredCount * int64 `json:"total_filtered_count,omitempty"`
186+ Version * string `json:"version,omitempty"`
119187 }{}
120188 if err = datadog .Unmarshal (bytes , & all ); err != nil {
121189 return datadog .Unmarshal (bytes , & o .UnparsedObject )
122190 }
123191 additionalProperties := make (map [string ]interface {})
124192 if err = datadog .Unmarshal (bytes , & additionalProperties ); err == nil {
125- datadog .DeleteKeys (additionalProperties , & []string {"total_filtered_count" , "version" })
193+ datadog .DeleteKeys (additionalProperties , & []string {"count_by_status" , "providers" , " total_filtered_count" , "version" })
126194 } else {
127195 return err
128196 }
197+ o .CountByStatus = all .CountByStatus
198+ o .Providers = all .Providers
129199 o .TotalFilteredCount = all .TotalFilteredCount
130200 o .Version = all .Version
131201
0 commit comments