@@ -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.
494524func (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
0 commit comments