Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions .generator/schemas/v2/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -137240,6 +137240,12 @@ paths:
name: tags
schema:
type: string
- description: Free-form search query using AND/OR/NOT operators, wildcards, and parentheses. When provided, takes precedence over the `tags` parameter.
example: "(client_team:networks OR client_team:platform) AND server_service:hucklebuck"
in: query
name: query
schema:
type: string
- description: The number of connections to be returned. The maximum value is 7500. The default is 100.
in: query
name: limit
Expand Down Expand Up @@ -137301,6 +137307,12 @@ paths:
name: tags
schema:
type: string
- description: Free-form search query using AND/OR/NOT operators, wildcards, and parentheses. When provided, takes precedence over the `tags` parameter.
example: "(client_team:networks OR client_team:platform) AND server_service:hucklebuck"
in: query
name: query
schema:
type: string
- description: The number of aggregated DNS entries to be returned. The maximum value is 7500. The default is 100.
in: query
name: limit
Expand Down
20 changes: 20 additions & 0 deletions api/datadogV2/api_cloud_network_monitoring.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ type GetAggregatedConnectionsOptionalParameters struct {
To *int64
GroupBy *string
Tags *string
Query *string
Limit *int32
}

Expand Down Expand Up @@ -54,6 +55,12 @@ func (r *GetAggregatedConnectionsOptionalParameters) WithTags(tags string) *GetA
return r
}

// WithQuery sets the corresponding parameter name and returns the struct.
func (r *GetAggregatedConnectionsOptionalParameters) WithQuery(query string) *GetAggregatedConnectionsOptionalParameters {
r.Query = &query
return r
}

// WithLimit sets the corresponding parameter name and returns the struct.
func (r *GetAggregatedConnectionsOptionalParameters) WithLimit(limit int32) *GetAggregatedConnectionsOptionalParameters {
r.Limit = &limit
Expand Down Expand Up @@ -99,6 +106,9 @@ func (a *CloudNetworkMonitoringApi) GetAggregatedConnections(ctx _context.Contex
if optionalParams.Tags != nil {
localVarQueryParams.Add("tags", datadog.ParameterToString(*optionalParams.Tags, ""))
}
if optionalParams.Query != nil {
localVarQueryParams.Add("query", datadog.ParameterToString(*optionalParams.Query, ""))
}
if optionalParams.Limit != nil {
localVarQueryParams.Add("limit", datadog.ParameterToString(*optionalParams.Limit, ""))
}
Expand Down Expand Up @@ -166,6 +176,7 @@ type GetAggregatedDnsOptionalParameters struct {
To *int64
GroupBy *string
Tags *string
Query *string
Limit *int32
}

Expand Down Expand Up @@ -199,6 +210,12 @@ func (r *GetAggregatedDnsOptionalParameters) WithTags(tags string) *GetAggregate
return r
}

// WithQuery sets the corresponding parameter name and returns the struct.
func (r *GetAggregatedDnsOptionalParameters) WithQuery(query string) *GetAggregatedDnsOptionalParameters {
r.Query = &query
return r
}

// WithLimit sets the corresponding parameter name and returns the struct.
func (r *GetAggregatedDnsOptionalParameters) WithLimit(limit int32) *GetAggregatedDnsOptionalParameters {
r.Limit = &limit
Expand Down Expand Up @@ -244,6 +261,9 @@ func (a *CloudNetworkMonitoringApi) GetAggregatedDns(ctx _context.Context, o ...
if optionalParams.Tags != nil {
localVarQueryParams.Add("tags", datadog.ParameterToString(*optionalParams.Tags, ""))
}
if optionalParams.Query != nil {
localVarQueryParams.Add("query", datadog.ParameterToString(*optionalParams.Query, ""))
}
if optionalParams.Limit != nil {
localVarQueryParams.Add("limit", datadog.ParameterToString(*optionalParams.Limit, ""))
}
Expand Down
Loading