Skip to content

Commit 22b4225

Browse files
author
ci.datadog-api-spec
committed
Regenerate client from commit 439c572 of spec repo
1 parent d2f38e7 commit 22b4225

12 files changed

Lines changed: 62 additions & 140 deletions

.generator/schemas/v1/openapi.yaml

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -791,6 +791,11 @@ components:
791791
items:
792792
$ref: "#/components/schemas/ResourceProviderConfig"
793793
type: array
794+
secretless_auth_enabled:
795+
description: |-
796+
When enabled, Datadog authenticates with this app registration using federated workload identity credentials instead of a client secret.
797+
example: true
798+
type: boolean
794799
tenant_name:
795800
description: Your Azure Active Directory ID.
796801
example: "testc44-1234-5678-9101-cc00736ftest"
@@ -15786,8 +15791,6 @@ components:
1578615791
$ref: "#/components/schemas/LogQueryDefinition"
1578715792
deprecated: true
1578815793
description: Deprecated - Use `queries` and `formulas` instead.
15789-
sort:
15790-
$ref: "#/components/schemas/WidgetSortBy"
1579115794
style:
1579215795
$ref: "#/components/schemas/WidgetStyle"
1579315796
type: object
@@ -20477,10 +20480,6 @@ components:
2047720480
type: array
2047820481
response_format:
2047920482
$ref: "#/components/schemas/FormulaAndFunctionResponseFormat"
20480-
sort:
20481-
$ref: "#/components/schemas/WidgetSortBy"
20482-
style:
20483-
$ref: "#/components/schemas/WidgetRequestStyle"
2048420483
type: object
2048520484
UsageAnalyzedLogsHour:
2048620485
description: The number of analyzed logs for each hour for a given organization.

api/datadogV1/model_azure_account.go

Lines changed: 36 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,8 @@ type AzureAccount struct {
4444
ResourceCollectionEnabled *bool `json:"resource_collection_enabled,omitempty"`
4545
// Configuration settings applied to resources from the specified Azure resource providers.
4646
ResourceProviderConfigs []ResourceProviderConfig `json:"resource_provider_configs,omitempty"`
47+
// When enabled, Datadog authenticates with this app registration using federated workload identity credentials instead of a client secret.
48+
SecretlessAuthEnabled *bool `json:"secretless_auth_enabled,omitempty"`
4749
// Your Azure Active Directory ID.
4850
TenantName *string `json:"tenant_name,omitempty"`
4951
// Enable azure.usage metrics for your organization.
@@ -490,6 +492,34 @@ func (o *AzureAccount) SetResourceProviderConfigs(v []ResourceProviderConfig) {
490492
o.ResourceProviderConfigs = v
491493
}
492494

495+
// GetSecretlessAuthEnabled returns the SecretlessAuthEnabled field value if set, zero value otherwise.
496+
func (o *AzureAccount) GetSecretlessAuthEnabled() bool {
497+
if o == nil || o.SecretlessAuthEnabled == nil {
498+
var ret bool
499+
return ret
500+
}
501+
return *o.SecretlessAuthEnabled
502+
}
503+
504+
// GetSecretlessAuthEnabledOk returns a tuple with the SecretlessAuthEnabled field value if set, nil otherwise
505+
// and a boolean to check if the value has been set.
506+
func (o *AzureAccount) GetSecretlessAuthEnabledOk() (*bool, bool) {
507+
if o == nil || o.SecretlessAuthEnabled == nil {
508+
return nil, false
509+
}
510+
return o.SecretlessAuthEnabled, true
511+
}
512+
513+
// HasSecretlessAuthEnabled returns a boolean if a field has been set.
514+
func (o *AzureAccount) HasSecretlessAuthEnabled() bool {
515+
return o != nil && o.SecretlessAuthEnabled != nil
516+
}
517+
518+
// SetSecretlessAuthEnabled gets a reference to the given bool and assigns it to the SecretlessAuthEnabled field.
519+
func (o *AzureAccount) SetSecretlessAuthEnabled(v bool) {
520+
o.SecretlessAuthEnabled = &v
521+
}
522+
493523
// GetTenantName returns the TenantName field value if set, zero value otherwise.
494524
func (o *AzureAccount) GetTenantName() string {
495525
if o == nil || o.TenantName == nil {
@@ -597,6 +627,9 @@ func (o AzureAccount) MarshalJSON() ([]byte, error) {
597627
if o.ResourceProviderConfigs != nil {
598628
toSerialize["resource_provider_configs"] = o.ResourceProviderConfigs
599629
}
630+
if o.SecretlessAuthEnabled != nil {
631+
toSerialize["secretless_auth_enabled"] = o.SecretlessAuthEnabled
632+
}
600633
if o.TenantName != nil {
601634
toSerialize["tenant_name"] = o.TenantName
602635
}
@@ -628,6 +661,7 @@ func (o *AzureAccount) UnmarshalJSON(bytes []byte) (err error) {
628661
NewTenantName *string `json:"new_tenant_name,omitempty"`
629662
ResourceCollectionEnabled *bool `json:"resource_collection_enabled,omitempty"`
630663
ResourceProviderConfigs []ResourceProviderConfig `json:"resource_provider_configs,omitempty"`
664+
SecretlessAuthEnabled *bool `json:"secretless_auth_enabled,omitempty"`
631665
TenantName *string `json:"tenant_name,omitempty"`
632666
UsageMetricsEnabled *bool `json:"usage_metrics_enabled,omitempty"`
633667
}{}
@@ -636,7 +670,7 @@ func (o *AzureAccount) UnmarshalJSON(bytes []byte) (err error) {
636670
}
637671
additionalProperties := make(map[string]interface{})
638672
if err = datadog.Unmarshal(bytes, &additionalProperties); err == nil {
639-
datadog.DeleteKeys(additionalProperties, &[]string{"app_service_plan_filters", "automute", "client_id", "client_secret", "container_app_filters", "cspm_enabled", "custom_metrics_enabled", "errors", "host_filters", "metrics_enabled", "metrics_enabled_default", "new_client_id", "new_tenant_name", "resource_collection_enabled", "resource_provider_configs", "tenant_name", "usage_metrics_enabled"})
673+
datadog.DeleteKeys(additionalProperties, &[]string{"app_service_plan_filters", "automute", "client_id", "client_secret", "container_app_filters", "cspm_enabled", "custom_metrics_enabled", "errors", "host_filters", "metrics_enabled", "metrics_enabled_default", "new_client_id", "new_tenant_name", "resource_collection_enabled", "resource_provider_configs", "secretless_auth_enabled", "tenant_name", "usage_metrics_enabled"})
640674
} else {
641675
return err
642676
}
@@ -655,6 +689,7 @@ func (o *AzureAccount) UnmarshalJSON(bytes []byte) (err error) {
655689
o.NewTenantName = all.NewTenantName
656690
o.ResourceCollectionEnabled = all.ResourceCollectionEnabled
657691
o.ResourceProviderConfigs = all.ResourceProviderConfigs
692+
o.SecretlessAuthEnabled = all.SecretlessAuthEnabled
658693
o.TenantName = all.TenantName
659694
o.UsageMetricsEnabled = all.UsageMetricsEnabled
660695

api/datadogV1/model_sunburst_widget_request.go

Lines changed: 1 addition & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,6 @@ type SunburstWidgetRequest struct {
3737
RumQuery *LogQueryDefinition `json:"rum_query,omitempty"`
3838
// The log query.
3939
SecurityQuery *LogQueryDefinition `json:"security_query,omitempty"`
40-
// The controls for sorting the widget.
41-
Sort *WidgetSortBy `json:"sort,omitempty"`
4240
// Widget style definition.
4341
Style *WidgetStyle `json:"style,omitempty"`
4442
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
@@ -430,34 +428,6 @@ func (o *SunburstWidgetRequest) SetSecurityQuery(v LogQueryDefinition) {
430428
o.SecurityQuery = &v
431429
}
432430

433-
// GetSort returns the Sort field value if set, zero value otherwise.
434-
func (o *SunburstWidgetRequest) GetSort() WidgetSortBy {
435-
if o == nil || o.Sort == nil {
436-
var ret WidgetSortBy
437-
return ret
438-
}
439-
return *o.Sort
440-
}
441-
442-
// GetSortOk returns a tuple with the Sort field value if set, nil otherwise
443-
// and a boolean to check if the value has been set.
444-
func (o *SunburstWidgetRequest) GetSortOk() (*WidgetSortBy, bool) {
445-
if o == nil || o.Sort == nil {
446-
return nil, false
447-
}
448-
return o.Sort, true
449-
}
450-
451-
// HasSort returns a boolean if a field has been set.
452-
func (o *SunburstWidgetRequest) HasSort() bool {
453-
return o != nil && o.Sort != nil
454-
}
455-
456-
// SetSort gets a reference to the given WidgetSortBy and assigns it to the Sort field.
457-
func (o *SunburstWidgetRequest) SetSort(v WidgetSortBy) {
458-
o.Sort = &v
459-
}
460-
461431
// GetStyle returns the Style field value if set, zero value otherwise.
462432
func (o *SunburstWidgetRequest) GetStyle() WidgetStyle {
463433
if o == nil || o.Style == nil {
@@ -531,9 +501,6 @@ func (o SunburstWidgetRequest) MarshalJSON() ([]byte, error) {
531501
if o.SecurityQuery != nil {
532502
toSerialize["security_query"] = o.SecurityQuery
533503
}
534-
if o.Sort != nil {
535-
toSerialize["sort"] = o.Sort
536-
}
537504
if o.Style != nil {
538505
toSerialize["style"] = o.Style
539506
}
@@ -560,15 +527,14 @@ func (o *SunburstWidgetRequest) UnmarshalJSON(bytes []byte) (err error) {
560527
ResponseFormat *FormulaAndFunctionResponseFormat `json:"response_format,omitempty"`
561528
RumQuery *LogQueryDefinition `json:"rum_query,omitempty"`
562529
SecurityQuery *LogQueryDefinition `json:"security_query,omitempty"`
563-
Sort *WidgetSortBy `json:"sort,omitempty"`
564530
Style *WidgetStyle `json:"style,omitempty"`
565531
}{}
566532
if err = datadog.Unmarshal(bytes, &all); err != nil {
567533
return datadog.Unmarshal(bytes, &o.UnparsedObject)
568534
}
569535
additionalProperties := make(map[string]interface{})
570536
if err = datadog.Unmarshal(bytes, &additionalProperties); err == nil {
571-
datadog.DeleteKeys(additionalProperties, &[]string{"apm_query", "audit_query", "event_query", "formulas", "log_query", "network_query", "process_query", "profile_metrics_query", "q", "queries", "response_format", "rum_query", "security_query", "sort", "style"})
537+
datadog.DeleteKeys(additionalProperties, &[]string{"apm_query", "audit_query", "event_query", "formulas", "log_query", "network_query", "process_query", "profile_metrics_query", "q", "queries", "response_format", "rum_query", "security_query", "style"})
572538
} else {
573539
return err
574540
}
@@ -618,10 +584,6 @@ func (o *SunburstWidgetRequest) UnmarshalJSON(bytes []byte) (err error) {
618584
hasInvalidField = true
619585
}
620586
o.SecurityQuery = all.SecurityQuery
621-
if all.Sort != nil && all.Sort.UnparsedObject != nil && o.UnparsedObject == nil {
622-
hasInvalidField = true
623-
}
624-
o.Sort = all.Sort
625587
if all.Style != nil && all.Style.UnparsedObject != nil && o.UnparsedObject == nil {
626588
hasInvalidField = true
627589
}

api/datadogV1/model_tree_map_widget_request.go

Lines changed: 1 addition & 77 deletions
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,6 @@ type TreeMapWidgetRequest struct {
1919
Queries []FormulaAndFunctionQueryDefinition `json:"queries,omitempty"`
2020
// Timeseries, scalar, or event list response. Event list response formats are supported by Geomap widgets.
2121
ResponseFormat *FormulaAndFunctionResponseFormat `json:"response_format,omitempty"`
22-
// The controls for sorting the widget.
23-
Sort *WidgetSortBy `json:"sort,omitempty"`
24-
// Define request widget style.
25-
Style *WidgetRequestStyle `json:"style,omitempty"`
2622
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
2723
UnparsedObject map[string]interface{} `json:"-"`
2824
AdditionalProperties map[string]interface{} `json:"-"`
@@ -160,62 +156,6 @@ func (o *TreeMapWidgetRequest) SetResponseFormat(v FormulaAndFunctionResponseFor
160156
o.ResponseFormat = &v
161157
}
162158

163-
// GetSort returns the Sort field value if set, zero value otherwise.
164-
func (o *TreeMapWidgetRequest) GetSort() WidgetSortBy {
165-
if o == nil || o.Sort == nil {
166-
var ret WidgetSortBy
167-
return ret
168-
}
169-
return *o.Sort
170-
}
171-
172-
// GetSortOk returns a tuple with the Sort field value if set, nil otherwise
173-
// and a boolean to check if the value has been set.
174-
func (o *TreeMapWidgetRequest) GetSortOk() (*WidgetSortBy, bool) {
175-
if o == nil || o.Sort == nil {
176-
return nil, false
177-
}
178-
return o.Sort, true
179-
}
180-
181-
// HasSort returns a boolean if a field has been set.
182-
func (o *TreeMapWidgetRequest) HasSort() bool {
183-
return o != nil && o.Sort != nil
184-
}
185-
186-
// SetSort gets a reference to the given WidgetSortBy and assigns it to the Sort field.
187-
func (o *TreeMapWidgetRequest) SetSort(v WidgetSortBy) {
188-
o.Sort = &v
189-
}
190-
191-
// GetStyle returns the Style field value if set, zero value otherwise.
192-
func (o *TreeMapWidgetRequest) GetStyle() WidgetRequestStyle {
193-
if o == nil || o.Style == nil {
194-
var ret WidgetRequestStyle
195-
return ret
196-
}
197-
return *o.Style
198-
}
199-
200-
// GetStyleOk returns a tuple with the Style field value if set, nil otherwise
201-
// and a boolean to check if the value has been set.
202-
func (o *TreeMapWidgetRequest) GetStyleOk() (*WidgetRequestStyle, bool) {
203-
if o == nil || o.Style == nil {
204-
return nil, false
205-
}
206-
return o.Style, true
207-
}
208-
209-
// HasStyle returns a boolean if a field has been set.
210-
func (o *TreeMapWidgetRequest) HasStyle() bool {
211-
return o != nil && o.Style != nil
212-
}
213-
214-
// SetStyle gets a reference to the given WidgetRequestStyle and assigns it to the Style field.
215-
func (o *TreeMapWidgetRequest) SetStyle(v WidgetRequestStyle) {
216-
o.Style = &v
217-
}
218-
219159
// MarshalJSON serializes the struct using spec logic.
220160
func (o TreeMapWidgetRequest) MarshalJSON() ([]byte, error) {
221161
toSerialize := map[string]interface{}{}
@@ -234,12 +174,6 @@ func (o TreeMapWidgetRequest) MarshalJSON() ([]byte, error) {
234174
if o.ResponseFormat != nil {
235175
toSerialize["response_format"] = o.ResponseFormat
236176
}
237-
if o.Sort != nil {
238-
toSerialize["sort"] = o.Sort
239-
}
240-
if o.Style != nil {
241-
toSerialize["style"] = o.Style
242-
}
243177

244178
for key, value := range o.AdditionalProperties {
245179
toSerialize[key] = value
@@ -254,15 +188,13 @@ func (o *TreeMapWidgetRequest) UnmarshalJSON(bytes []byte) (err error) {
254188
Q *string `json:"q,omitempty"`
255189
Queries []FormulaAndFunctionQueryDefinition `json:"queries,omitempty"`
256190
ResponseFormat *FormulaAndFunctionResponseFormat `json:"response_format,omitempty"`
257-
Sort *WidgetSortBy `json:"sort,omitempty"`
258-
Style *WidgetRequestStyle `json:"style,omitempty"`
259191
}{}
260192
if err = datadog.Unmarshal(bytes, &all); err != nil {
261193
return datadog.Unmarshal(bytes, &o.UnparsedObject)
262194
}
263195
additionalProperties := make(map[string]interface{})
264196
if err = datadog.Unmarshal(bytes, &additionalProperties); err == nil {
265-
datadog.DeleteKeys(additionalProperties, &[]string{"formulas", "q", "queries", "response_format", "sort", "style"})
197+
datadog.DeleteKeys(additionalProperties, &[]string{"formulas", "q", "queries", "response_format"})
266198
} else {
267199
return err
268200
}
@@ -276,14 +208,6 @@ func (o *TreeMapWidgetRequest) UnmarshalJSON(bytes []byte) (err error) {
276208
} else {
277209
o.ResponseFormat = all.ResponseFormat
278210
}
279-
if all.Sort != nil && all.Sort.UnparsedObject != nil && o.UnparsedObject == nil {
280-
hasInvalidField = true
281-
}
282-
o.Sort = all.Sort
283-
if all.Style != nil && all.Style.UnparsedObject != nil && o.UnparsedObject == nil {
284-
hasInvalidField = true
285-
}
286-
o.Style = all.Style
287211

288212
if len(additionalProperties) > 0 {
289213
o.AdditionalProperties = additionalProperties

examples/v1/azure-integration/UpdateAzureHostFilters.go

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,9 @@ func main() {
3636
Namespace: datadog.PtrString("Microsoft.Compute"),
3737
},
3838
},
39-
TenantName: datadog.PtrString("testc44-1234-5678-9101-cc00736ftest"),
40-
UsageMetricsEnabled: datadog.PtrBool(true),
39+
SecretlessAuthEnabled: datadog.PtrBool(true),
40+
TenantName: datadog.PtrString("testc44-1234-5678-9101-cc00736ftest"),
41+
UsageMetricsEnabled: datadog.PtrBool(true),
4142
}
4243
ctx := datadog.NewDefaultContext(context.Background())
4344
configuration := datadog.NewConfiguration()

examples/v1/azure-integration/UpdateAzureIntegration.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ func main() {
2828
NewClientId: datadog.PtrString("9b1deb4d-3b7d-4bad-9bdd-2b0d7b3dcb6d"),
2929
NewTenantName: datadog.PtrString("9b1deb4d-3b7d-4bad-9bdd-2b0d7b3dcb6d"),
3030
ResourceCollectionEnabled: datadog.PtrBool(true),
31+
SecretlessAuthEnabled: datadog.PtrBool(true),
3132
TenantName: datadog.PtrString("9b1deb4d-3b7d-4bad-9bdd-2b0d7b3dcb6d"),
3233
}
3334
ctx := datadog.NewDefaultContext(context.Background())
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
2024-12-17T21:43:00.678Z
1+
2026-05-04T13:56:51.846Z

tests/scenarios/cassettes/TestScenarios/v1/Feature_Azure_Integration/Scenario_Delete_an_Azure_integration_returns_OK_response.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
interactions:
22
- request:
33
body: |
4-
{"app_service_plan_filters":"key:value,filter:example","automute":true,"client_id":"17344717-0000-0000-0000-173447178000","client_secret":"TestingRh2nx664kUy5dIApvM54T4AtO","container_app_filters":"key:value,filter:example","cspm_enabled":true,"custom_metrics_enabled":true,"errors":["*"],"host_filters":"key:value,filter:example","metrics_enabled":true,"metrics_enabled_default":true,"new_client_id":"17344717-0000-0000-0000-173447178000","new_tenant_name":"17344717-0000-0000-0000-173447178000","resource_collection_enabled":true,"resource_provider_configs":[{"metrics_enabled":false,"namespace":"Microsoft.Compute"},{"metrics_enabled":false,"namespace":"Microsoft.Web"}],"tenant_name":"17344717-0000-0000-0000-173447178000","usage_metrics_enabled":true}
4+
{"app_service_plan_filters":"key:value,filter:example","automute":true,"client_id":"17779030-0000-0000-0000-177790301100","client_secret":"TestingRh2nx664kUy5dIApvM54T4AtO","container_app_filters":"key:value,filter:example","cspm_enabled":true,"custom_metrics_enabled":true,"errors":["*"],"host_filters":"key:value,filter:example","metrics_enabled":true,"metrics_enabled_default":true,"new_client_id":"17779030-0000-0000-0000-177790301100","new_tenant_name":"17779030-0000-0000-0000-177790301100","resource_collection_enabled":true,"resource_provider_configs":[{"metrics_enabled":false,"namespace":"Microsoft.Compute"},{"metrics_enabled":false,"namespace":"Microsoft.Web"}],"secretless_auth_enabled":false,"tenant_name":"17779030-0000-0000-0000-177790301100","usage_metrics_enabled":true}
55
form: {}
66
headers:
77
Accept:
@@ -23,7 +23,7 @@ interactions:
2323
status: 200 OK
2424
- request:
2525
body: |
26-
{"client_id":"17344717-0000-0000-0000-173447178000","tenant_name":"17344717-0000-0000-0000-173447178000"}
26+
{"client_id":"17779030-0000-0000-0000-177790301100","tenant_name":"17779030-0000-0000-0000-177790301100"}
2727
form: {}
2828
headers:
2929
Accept:
@@ -45,7 +45,7 @@ interactions:
4545
status: 200 OK
4646
- request:
4747
body: |
48-
{"client_id":"17344717-0000-0000-0000-173447178000","tenant_name":"17344717-0000-0000-0000-173447178000"}
48+
{"client_id":"17779030-0000-0000-0000-177790301100","tenant_name":"17779030-0000-0000-0000-177790301100"}
4949
form: {}
5050
headers:
5151
Accept:
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
2024-12-17T21:43:01.129Z
1+
2026-05-04T13:56:52.686Z

0 commit comments

Comments
 (0)