Skip to content

Commit 28a8787

Browse files
author
ci.datadog-api-spec
committed
Regenerate client from commit dfe70f9 of spec repo
1 parent a70ca48 commit 28a8787

2 files changed

Lines changed: 32 additions & 0 deletions

File tree

.generator/schemas/v2/openapi.yaml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -137240,6 +137240,12 @@ paths:
137240137240
name: tags
137241137241
schema:
137242137242
type: string
137243+
- description: Free-form search query using AND/OR/NOT operators, wildcards, and parentheses. When provided, takes precedence over the `tags` parameter.
137244+
example: "(client_team:networks OR client_team:platform) AND server_service:hucklebuck"
137245+
in: query
137246+
name: query
137247+
schema:
137248+
type: string
137243137249
- description: The number of connections to be returned. The maximum value is 7500. The default is 100.
137244137250
in: query
137245137251
name: limit
@@ -137301,6 +137307,12 @@ paths:
137301137307
name: tags
137302137308
schema:
137303137309
type: string
137310+
- description: Free-form search query using AND/OR/NOT operators, wildcards, and parentheses. When provided, takes precedence over the `tags` parameter.
137311+
example: "(client_team:networks OR client_team:platform) AND server_service:hucklebuck"
137312+
in: query
137313+
name: query
137314+
schema:
137315+
type: string
137304137316
- description: The number of aggregated DNS entries to be returned. The maximum value is 7500. The default is 100.
137305137317
in: query
137306137318
name: limit

api/datadogV2/api_cloud_network_monitoring.go

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ type GetAggregatedConnectionsOptionalParameters struct {
2121
To *int64
2222
GroupBy *string
2323
Tags *string
24+
Query *string
2425
Limit *int32
2526
}
2627

@@ -54,6 +55,12 @@ func (r *GetAggregatedConnectionsOptionalParameters) WithTags(tags string) *GetA
5455
return r
5556
}
5657

58+
// WithQuery sets the corresponding parameter name and returns the struct.
59+
func (r *GetAggregatedConnectionsOptionalParameters) WithQuery(query string) *GetAggregatedConnectionsOptionalParameters {
60+
r.Query = &query
61+
return r
62+
}
63+
5764
// WithLimit sets the corresponding parameter name and returns the struct.
5865
func (r *GetAggregatedConnectionsOptionalParameters) WithLimit(limit int32) *GetAggregatedConnectionsOptionalParameters {
5966
r.Limit = &limit
@@ -99,6 +106,9 @@ func (a *CloudNetworkMonitoringApi) GetAggregatedConnections(ctx _context.Contex
99106
if optionalParams.Tags != nil {
100107
localVarQueryParams.Add("tags", datadog.ParameterToString(*optionalParams.Tags, ""))
101108
}
109+
if optionalParams.Query != nil {
110+
localVarQueryParams.Add("query", datadog.ParameterToString(*optionalParams.Query, ""))
111+
}
102112
if optionalParams.Limit != nil {
103113
localVarQueryParams.Add("limit", datadog.ParameterToString(*optionalParams.Limit, ""))
104114
}
@@ -166,6 +176,7 @@ type GetAggregatedDnsOptionalParameters struct {
166176
To *int64
167177
GroupBy *string
168178
Tags *string
179+
Query *string
169180
Limit *int32
170181
}
171182

@@ -199,6 +210,12 @@ func (r *GetAggregatedDnsOptionalParameters) WithTags(tags string) *GetAggregate
199210
return r
200211
}
201212

213+
// WithQuery sets the corresponding parameter name and returns the struct.
214+
func (r *GetAggregatedDnsOptionalParameters) WithQuery(query string) *GetAggregatedDnsOptionalParameters {
215+
r.Query = &query
216+
return r
217+
}
218+
202219
// WithLimit sets the corresponding parameter name and returns the struct.
203220
func (r *GetAggregatedDnsOptionalParameters) WithLimit(limit int32) *GetAggregatedDnsOptionalParameters {
204221
r.Limit = &limit
@@ -244,6 +261,9 @@ func (a *CloudNetworkMonitoringApi) GetAggregatedDns(ctx _context.Context, o ...
244261
if optionalParams.Tags != nil {
245262
localVarQueryParams.Add("tags", datadog.ParameterToString(*optionalParams.Tags, ""))
246263
}
264+
if optionalParams.Query != nil {
265+
localVarQueryParams.Add("query", datadog.ParameterToString(*optionalParams.Query, ""))
266+
}
247267
if optionalParams.Limit != nil {
248268
localVarQueryParams.Add("limit", datadog.ParameterToString(*optionalParams.Limit, ""))
249269
}

0 commit comments

Comments
 (0)