Skip to content

Commit f494750

Browse files
author
ci.datadog-api-spec
committed
Regenerate client from commit baf04a80 of spec repo
1 parent 1402e7b commit f494750

16 files changed

+39
-365
lines changed

.apigentools-info

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,13 @@
44
"spec_versions": {
55
"v1": {
66
"apigentools_version": "1.6.6",
7-
"regenerated": "2025-03-11 13:16:55.751372",
8-
"spec_repo_commit": "d7618fa5"
7+
"regenerated": "2025-03-11 16:30:30.102793",
8+
"spec_repo_commit": "baf04a80"
99
},
1010
"v2": {
1111
"apigentools_version": "1.6.6",
12-
"regenerated": "2025-03-11 13:16:55.767268",
13-
"spec_repo_commit": "d7618fa5"
12+
"regenerated": "2025-03-11 16:30:30.118458",
13+
"spec_repo_commit": "baf04a80"
1414
}
1515
}
1616
}

.generator/schemas/v2/openapi.yaml

Lines changed: 13 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -684,7 +684,7 @@ components:
684684
schema:
685685
type: string
686686
RumApplicationIDParameter:
687-
description: Application ID.
687+
description: RUM application ID.
688688
in: path
689689
name: app_id
690690
required: true
@@ -25518,8 +25518,6 @@ components:
2551825518
properties:
2551925519
attributes:
2552025520
$ref: '#/components/schemas/RumRetentionFilterCreateAttributes'
25521-
meta:
25522-
$ref: '#/components/schemas/RumRetentionFilterMeta'
2552325521
type:
2552425522
$ref: '#/components/schemas/RumRetentionFilterType'
2552525523
required:
@@ -25541,8 +25539,6 @@ components:
2554125539
$ref: '#/components/schemas/RumRetentionFilterAttributes'
2554225540
id:
2554325541
$ref: '#/components/schemas/RumRetentionFilterID'
25544-
meta:
25545-
$ref: '#/components/schemas/RumRetentionFilterMeta'
2554625542
type:
2554725543
$ref: '#/components/schemas/RumRetentionFilterType'
2554825544
type: object
@@ -25574,12 +25570,6 @@ components:
2557425570
description: ID of retention filter in UUID.
2557525571
example: 051601eb-54a0-abc0-03f9-cc02efa18892
2557625572
type: string
25577-
RumRetentionFilterMeta:
25578-
description: The object describing metadata of a RUM retention filter.
25579-
properties:
25580-
source:
25581-
$ref: '#/components/schemas/RumRetentionFilterSource'
25582-
type: object
2558325573
RumRetentionFilterQuery:
2558425574
description: The query string for a RUM retention filter.
2558525575
example: '@session.has_replay:true'
@@ -25597,20 +25587,6 @@ components:
2559725587
maximum: 100
2559825588
minimum: 0
2559925589
type: integer
25600-
RumRetentionFilterSource:
25601-
description: The type of RUM events to filter on.
25602-
enum:
25603-
- ui
25604-
- terraform
25605-
- default
25606-
- unknown
25607-
example: terraform
25608-
type: string
25609-
x-enum-varnames:
25610-
- UI
25611-
- TERRAFORM
25612-
- DEFAULT
25613-
- UNKNOWN
2561425590
RumRetentionFilterType:
2561525591
default: retention_filters
2561625592
description: The type of the resource. The value should always be retention_filters.
@@ -25641,8 +25617,6 @@ components:
2564125617
$ref: '#/components/schemas/RumRetentionFilterUpdateAttributes'
2564225618
id:
2564325619
$ref: '#/components/schemas/RumRetentionFilterID'
25644-
meta:
25645-
$ref: '#/components/schemas/RumRetentionFilterMeta'
2564625620
type:
2564725621
$ref: '#/components/schemas/RumRetentionFilterType'
2564825622
required:
@@ -25673,7 +25647,8 @@ components:
2567325647
description: 'The list of RUM retention filter IDs along with their corresponding
2567425648
type to reorder.
2567525649

25676-
All retention filter IDs should be included in the list created for an application.'
25650+
All retention filter IDs should be included in the list created for a RUM
25651+
application.'
2567725652
properties:
2567825653
data:
2567925654
description: A list of RUM retention filter IDs along with type.
@@ -25691,7 +25666,7 @@ components:
2569125666
type: array
2569225667
type: object
2569325668
RumRetentionFiltersResponse:
25694-
description: All RUM retention filters for an application.
25669+
description: All RUM retention filters for a RUM application.
2569525670
properties:
2569625671
data:
2569725672
description: A list of RUM retention filters.
@@ -46244,10 +46219,10 @@ paths:
4624446219
- rum_apps_write
4624546220
/api/v2/rum/applications/{app_id}/relationships/retention_filters:
4624646221
patch:
46247-
description: 'Order RUM retention filters for an application.
46222+
description: 'Order RUM retention filters for a RUM application.
4624846223

46249-
Returns RUM retention filter objects without attributes and meta from the
46250-
request body when the request is successful.'
46224+
Returns RUM retention filter objects without attributes from the request body
46225+
when the request is successful.'
4625146226
operationId: OrderRetentionFilters
4625246227
parameters:
4625346228
- $ref: '#/components/parameters/RumApplicationIDParameter'
@@ -46277,7 +46252,7 @@ paths:
4627746252
x-codegen-request-body-name: body
4627846253
/api/v2/rum/applications/{app_id}/retention_filters:
4627946254
get:
46280-
description: Get the list of RUM retention filters for an application.
46255+
description: Get the list of RUM retention filters for a RUM application.
4628146256
operationId: ListRetentionFilters
4628246257
parameters:
4628346258
- $ref: '#/components/parameters/RumApplicationIDParameter'
@@ -46296,7 +46271,7 @@ paths:
4629646271
tags:
4629746272
- Rum Retention Filters
4629846273
post:
46299-
description: 'Create a RUM retention filter for an application.
46274+
description: 'Create a RUM retention filter for a RUM application.
4630046275

4630146276
Returns RUM retention filter objects from the request body when the request
4630246277
is successful.'
@@ -46329,7 +46304,7 @@ paths:
4632946304
x-codegen-request-body-name: body
4633046305
/api/v2/rum/applications/{app_id}/retention_filters/{rf_id}:
4633146306
delete:
46332-
description: Delete a RUM retention filter for an application.
46307+
description: Delete a RUM retention filter for a RUM application.
4633346308
operationId: DeleteRetentionFilter
4633446309
parameters:
4633546310
- $ref: '#/components/parameters/RumApplicationIDParameter'
@@ -46347,7 +46322,7 @@ paths:
4634746322
tags:
4634846323
- Rum Retention Filters
4634946324
get:
46350-
description: Get a RUM retention filter for an application.
46325+
description: Get a RUM retention filter for a RUM application.
4635146326
operationId: GetRetentionFilter
4635246327
parameters:
4635346328
- $ref: '#/components/parameters/RumApplicationIDParameter'
@@ -46369,7 +46344,7 @@ paths:
4636946344
tags:
4637046345
- Rum Retention Filters
4637146346
patch:
46372-
description: 'Update a RUM retention filter for an application.
46347+
description: 'Update a RUM retention filter for a RUM application.
4637346348

4637446349
Returns RUM retention filter objects from the request body when the request
4637546350
is successful.'
@@ -53819,7 +53794,7 @@ tags:
5381953794
url: https://docs.datadoghq.com/real_user_monitoring/platform/generate_metrics/
5382053795
name: Rum Metrics
5382153796
- description: Manage retention filters through [Manage Applications](https://app.datadoghq.com/rum/list)
53822-
for your organization.
53797+
of RUM for your organization.
5382353798
name: Rum Retention Filters
5382453799
- description: Create and manage your security rules, signals, filters, and more.
5382553800
See the [Datadog Security page](https://docs.datadoghq.com/security/) for more

api/datadogV2/api_rum_retention_filters.go

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ import (
1616
type RumRetentionFiltersApi datadog.Service
1717

1818
// CreateRetentionFilter Create a RUM retention filter.
19-
// Create a RUM retention filter for an application.
19+
// Create a RUM retention filter for a RUM application.
2020
// Returns RUM retention filter objects from the request body when the request is successful.
2121
func (a *RumRetentionFiltersApi) CreateRetentionFilter(ctx _context.Context, appId string, body RumRetentionFilterCreateRequest) (RumRetentionFilterResponse, *_nethttp.Response, error) {
2222
var (
@@ -91,7 +91,7 @@ func (a *RumRetentionFiltersApi) CreateRetentionFilter(ctx _context.Context, app
9191
}
9292

9393
// DeleteRetentionFilter Delete a RUM retention filter.
94-
// Delete a RUM retention filter for an application.
94+
// Delete a RUM retention filter for a RUM application.
9595
func (a *RumRetentionFiltersApi) DeleteRetentionFilter(ctx _context.Context, appId string, rfId string) (*_nethttp.Response, error) {
9696
var (
9797
localVarHTTPMethod = _nethttp.MethodDelete
@@ -153,7 +153,7 @@ func (a *RumRetentionFiltersApi) DeleteRetentionFilter(ctx _context.Context, app
153153
}
154154

155155
// GetRetentionFilter Get a RUM retention filter.
156-
// Get a RUM retention filter for an application.
156+
// Get a RUM retention filter for a RUM application.
157157
func (a *RumRetentionFiltersApi) GetRetentionFilter(ctx _context.Context, appId string, rfId string) (RumRetentionFilterResponse, *_nethttp.Response, error) {
158158
var (
159159
localVarHTTPMethod = _nethttp.MethodGet
@@ -225,7 +225,7 @@ func (a *RumRetentionFiltersApi) GetRetentionFilter(ctx _context.Context, appId
225225
}
226226

227227
// ListRetentionFilters Get all RUM retention filters.
228-
// Get the list of RUM retention filters for an application.
228+
// Get the list of RUM retention filters for a RUM application.
229229
func (a *RumRetentionFiltersApi) ListRetentionFilters(ctx _context.Context, appId string) (RumRetentionFiltersResponse, *_nethttp.Response, error) {
230230
var (
231231
localVarHTTPMethod = _nethttp.MethodGet
@@ -296,8 +296,8 @@ func (a *RumRetentionFiltersApi) ListRetentionFilters(ctx _context.Context, appI
296296
}
297297

298298
// OrderRetentionFilters Order RUM retention filters.
299-
// Order RUM retention filters for an application.
300-
// Returns RUM retention filter objects without attributes and meta from the request body when the request is successful.
299+
// Order RUM retention filters for a RUM application.
300+
// Returns RUM retention filter objects without attributes from the request body when the request is successful.
301301
func (a *RumRetentionFiltersApi) OrderRetentionFilters(ctx _context.Context, appId string, body RumRetentionFiltersOrderRequest) (RumRetentionFiltersOrderResponse, *_nethttp.Response, error) {
302302
var (
303303
localVarHTTPMethod = _nethttp.MethodPatch
@@ -371,7 +371,7 @@ func (a *RumRetentionFiltersApi) OrderRetentionFilters(ctx _context.Context, app
371371
}
372372

373373
// UpdateRetentionFilter Update a RUM retention filter.
374-
// Update a RUM retention filter for an application.
374+
// Update a RUM retention filter for a RUM application.
375375
// Returns RUM retention filter objects from the request body when the request is successful.
376376
func (a *RumRetentionFiltersApi) UpdateRetentionFilter(ctx _context.Context, appId string, rfId string, body RumRetentionFilterUpdateRequest) (RumRetentionFilterResponse, *_nethttp.Response, error) {
377377
var (

api/datadogV2/model_rum_retention_filter_create_data.go

Lines changed: 1 addition & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,6 @@ import (
1414
type RumRetentionFilterCreateData struct {
1515
// The object describing attributes of a RUM retention filter to create.
1616
Attributes RumRetentionFilterCreateAttributes `json:"attributes"`
17-
// The object describing metadata of a RUM retention filter.
18-
Meta *RumRetentionFilterMeta `json:"meta,omitempty"`
1917
// The type of the resource. The value should always be retention_filters.
2018
Type RumRetentionFilterType `json:"type"`
2119
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
@@ -67,34 +65,6 @@ func (o *RumRetentionFilterCreateData) SetAttributes(v RumRetentionFilterCreateA
6765
o.Attributes = v
6866
}
6967

70-
// GetMeta returns the Meta field value if set, zero value otherwise.
71-
func (o *RumRetentionFilterCreateData) GetMeta() RumRetentionFilterMeta {
72-
if o == nil || o.Meta == nil {
73-
var ret RumRetentionFilterMeta
74-
return ret
75-
}
76-
return *o.Meta
77-
}
78-
79-
// GetMetaOk returns a tuple with the Meta field value if set, nil otherwise
80-
// and a boolean to check if the value has been set.
81-
func (o *RumRetentionFilterCreateData) GetMetaOk() (*RumRetentionFilterMeta, bool) {
82-
if o == nil || o.Meta == nil {
83-
return nil, false
84-
}
85-
return o.Meta, true
86-
}
87-
88-
// HasMeta returns a boolean if a field has been set.
89-
func (o *RumRetentionFilterCreateData) HasMeta() bool {
90-
return o != nil && o.Meta != nil
91-
}
92-
93-
// SetMeta gets a reference to the given RumRetentionFilterMeta and assigns it to the Meta field.
94-
func (o *RumRetentionFilterCreateData) SetMeta(v RumRetentionFilterMeta) {
95-
o.Meta = &v
96-
}
97-
9868
// GetType returns the Type field value.
9969
func (o *RumRetentionFilterCreateData) GetType() RumRetentionFilterType {
10070
if o == nil {
@@ -125,9 +95,6 @@ func (o RumRetentionFilterCreateData) MarshalJSON() ([]byte, error) {
12595
return datadog.Marshal(o.UnparsedObject)
12696
}
12797
toSerialize["attributes"] = o.Attributes
128-
if o.Meta != nil {
129-
toSerialize["meta"] = o.Meta
130-
}
13198
toSerialize["type"] = o.Type
13299

133100
for key, value := range o.AdditionalProperties {
@@ -140,7 +107,6 @@ func (o RumRetentionFilterCreateData) MarshalJSON() ([]byte, error) {
140107
func (o *RumRetentionFilterCreateData) UnmarshalJSON(bytes []byte) (err error) {
141108
all := struct {
142109
Attributes *RumRetentionFilterCreateAttributes `json:"attributes"`
143-
Meta *RumRetentionFilterMeta `json:"meta,omitempty"`
144110
Type *RumRetentionFilterType `json:"type"`
145111
}{}
146112
if err = datadog.Unmarshal(bytes, &all); err != nil {
@@ -154,7 +120,7 @@ func (o *RumRetentionFilterCreateData) UnmarshalJSON(bytes []byte) (err error) {
154120
}
155121
additionalProperties := make(map[string]interface{})
156122
if err = datadog.Unmarshal(bytes, &additionalProperties); err == nil {
157-
datadog.DeleteKeys(additionalProperties, &[]string{"attributes", "meta", "type"})
123+
datadog.DeleteKeys(additionalProperties, &[]string{"attributes", "type"})
158124
} else {
159125
return err
160126
}
@@ -164,10 +130,6 @@ func (o *RumRetentionFilterCreateData) UnmarshalJSON(bytes []byte) (err error) {
164130
hasInvalidField = true
165131
}
166132
o.Attributes = *all.Attributes
167-
if all.Meta != nil && all.Meta.UnparsedObject != nil && o.UnparsedObject == nil {
168-
hasInvalidField = true
169-
}
170-
o.Meta = all.Meta
171133
if !all.Type.IsValid() {
172134
hasInvalidField = true
173135
} else {

api/datadogV2/model_rum_retention_filter_data.go

Lines changed: 1 addition & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,6 @@ type RumRetentionFilterData struct {
1414
Attributes *RumRetentionFilterAttributes `json:"attributes,omitempty"`
1515
// ID of retention filter in UUID.
1616
Id *string `json:"id,omitempty"`
17-
// The object describing metadata of a RUM retention filter.
18-
Meta *RumRetentionFilterMeta `json:"meta,omitempty"`
1917
// The type of the resource. The value should always be retention_filters.
2018
Type *RumRetentionFilterType `json:"type,omitempty"`
2119
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
@@ -100,34 +98,6 @@ func (o *RumRetentionFilterData) SetId(v string) {
10098
o.Id = &v
10199
}
102100

103-
// GetMeta returns the Meta field value if set, zero value otherwise.
104-
func (o *RumRetentionFilterData) GetMeta() RumRetentionFilterMeta {
105-
if o == nil || o.Meta == nil {
106-
var ret RumRetentionFilterMeta
107-
return ret
108-
}
109-
return *o.Meta
110-
}
111-
112-
// GetMetaOk returns a tuple with the Meta field value if set, nil otherwise
113-
// and a boolean to check if the value has been set.
114-
func (o *RumRetentionFilterData) GetMetaOk() (*RumRetentionFilterMeta, bool) {
115-
if o == nil || o.Meta == nil {
116-
return nil, false
117-
}
118-
return o.Meta, true
119-
}
120-
121-
// HasMeta returns a boolean if a field has been set.
122-
func (o *RumRetentionFilterData) HasMeta() bool {
123-
return o != nil && o.Meta != nil
124-
}
125-
126-
// SetMeta gets a reference to the given RumRetentionFilterMeta and assigns it to the Meta field.
127-
func (o *RumRetentionFilterData) SetMeta(v RumRetentionFilterMeta) {
128-
o.Meta = &v
129-
}
130-
131101
// GetType returns the Type field value if set, zero value otherwise.
132102
func (o *RumRetentionFilterData) GetType() RumRetentionFilterType {
133103
if o == nil || o.Type == nil {
@@ -168,9 +138,6 @@ func (o RumRetentionFilterData) MarshalJSON() ([]byte, error) {
168138
if o.Id != nil {
169139
toSerialize["id"] = o.Id
170140
}
171-
if o.Meta != nil {
172-
toSerialize["meta"] = o.Meta
173-
}
174141
if o.Type != nil {
175142
toSerialize["type"] = o.Type
176143
}
@@ -186,15 +153,14 @@ func (o *RumRetentionFilterData) UnmarshalJSON(bytes []byte) (err error) {
186153
all := struct {
187154
Attributes *RumRetentionFilterAttributes `json:"attributes,omitempty"`
188155
Id *string `json:"id,omitempty"`
189-
Meta *RumRetentionFilterMeta `json:"meta,omitempty"`
190156
Type *RumRetentionFilterType `json:"type,omitempty"`
191157
}{}
192158
if err = datadog.Unmarshal(bytes, &all); err != nil {
193159
return datadog.Unmarshal(bytes, &o.UnparsedObject)
194160
}
195161
additionalProperties := make(map[string]interface{})
196162
if err = datadog.Unmarshal(bytes, &additionalProperties); err == nil {
197-
datadog.DeleteKeys(additionalProperties, &[]string{"attributes", "id", "meta", "type"})
163+
datadog.DeleteKeys(additionalProperties, &[]string{"attributes", "id", "type"})
198164
} else {
199165
return err
200166
}
@@ -205,10 +171,6 @@ func (o *RumRetentionFilterData) UnmarshalJSON(bytes []byte) (err error) {
205171
}
206172
o.Attributes = all.Attributes
207173
o.Id = all.Id
208-
if all.Meta != nil && all.Meta.UnparsedObject != nil && o.UnparsedObject == nil {
209-
hasInvalidField = true
210-
}
211-
o.Meta = all.Meta
212174
if all.Type != nil && !all.Type.IsValid() {
213175
hasInvalidField = true
214176
} else {

0 commit comments

Comments
 (0)