2929 AzureAccount .JSON_PROPERTY_CUSTOM_METRICS_ENABLED ,
3030 AzureAccount .JSON_PROPERTY_ERRORS ,
3131 AzureAccount .JSON_PROPERTY_HOST_FILTERS ,
32- AzureAccount .JSON_PROPERTY_METRICS_CONFIG ,
32+ AzureAccount .JSON_PROPERTY_METRICS_ENABLED ,
33+ AzureAccount .JSON_PROPERTY_METRICS_ENABLED_DEFAULT ,
3334 AzureAccount .JSON_PROPERTY_NEW_CLIENT_ID ,
3435 AzureAccount .JSON_PROPERTY_NEW_TENANT_NAME ,
3536 AzureAccount .JSON_PROPERTY_RESOURCE_COLLECTION_ENABLED ,
36- AzureAccount .JSON_PROPERTY_TENANT_NAME
37+ AzureAccount .JSON_PROPERTY_RESOURCE_PROVIDER_CONFIGS ,
38+ AzureAccount .JSON_PROPERTY_TENANT_NAME ,
39+ AzureAccount .JSON_PROPERTY_USAGE_METRICS_ENABLED
3740})
3841@ jakarta .annotation .Generated (
3942 value = "https://github.com/DataDog/datadog-api-client-java/blob/master/.generator" )
@@ -66,8 +69,11 @@ public class AzureAccount {
6669 public static final String JSON_PROPERTY_HOST_FILTERS = "host_filters" ;
6770 private String hostFilters ;
6871
69- public static final String JSON_PROPERTY_METRICS_CONFIG = "metrics_config" ;
70- private AzureAccountMetricsConfig metricsConfig ;
72+ public static final String JSON_PROPERTY_METRICS_ENABLED = "metrics_enabled" ;
73+ private Boolean metricsEnabled ;
74+
75+ public static final String JSON_PROPERTY_METRICS_ENABLED_DEFAULT = "metrics_enabled_default" ;
76+ private Boolean metricsEnabledDefault ;
7177
7278 public static final String JSON_PROPERTY_NEW_CLIENT_ID = "new_client_id" ;
7379 private String newClientId ;
@@ -79,9 +85,15 @@ public class AzureAccount {
7985 "resource_collection_enabled" ;
8086 private Boolean resourceCollectionEnabled ;
8187
88+ public static final String JSON_PROPERTY_RESOURCE_PROVIDER_CONFIGS = "resource_provider_configs" ;
89+ private List <ResourceProviderConfig > resourceProviderConfigs = null ;
90+
8291 public static final String JSON_PROPERTY_TENANT_NAME = "tenant_name" ;
8392 private String tenantName ;
8493
94+ public static final String JSON_PROPERTY_USAGE_METRICS_ENABLED = "usage_metrics_enabled" ;
95+ private Boolean usageMetricsEnabled ;
96+
8597 public AzureAccount appServicePlanFilters (String appServicePlanFilters ) {
8698 this .appServicePlanFilters = appServicePlanFilters ;
8799 return this ;
@@ -284,30 +296,47 @@ public void setHostFilters(String hostFilters) {
284296 this .hostFilters = hostFilters ;
285297 }
286298
287- public AzureAccount metricsConfig (AzureAccountMetricsConfig metricsConfig ) {
288- this .metricsConfig = metricsConfig ;
289- this .unparsed |= metricsConfig .unparsed ;
299+ public AzureAccount metricsEnabled (Boolean metricsEnabled ) {
300+ this .metricsEnabled = metricsEnabled ;
301+ return this ;
302+ }
303+
304+ /**
305+ * Enable Azure metrics for your organization.
306+ *
307+ * @return metricsEnabled
308+ */
309+ @ jakarta .annotation .Nullable
310+ @ JsonProperty (JSON_PROPERTY_METRICS_ENABLED )
311+ @ JsonInclude (value = JsonInclude .Include .USE_DEFAULTS )
312+ public Boolean getMetricsEnabled () {
313+ return metricsEnabled ;
314+ }
315+
316+ public void setMetricsEnabled (Boolean metricsEnabled ) {
317+ this .metricsEnabled = metricsEnabled ;
318+ }
319+
320+ public AzureAccount metricsEnabledDefault (Boolean metricsEnabledDefault ) {
321+ this .metricsEnabledDefault = metricsEnabledDefault ;
290322 return this ;
291323 }
292324
293325 /**
294- * Dictionary containing the key <code>excluded_resource_providers</code> which has to be a list
295- * of Microsoft Azure Resource Provider names. This feature is currently being beta tested. In
296- * order to enable all resource providers for metric collection, pass: <code>
297- * metrics_config: {"excluded_resource_providers": []}</code> (i.e., an empty list for <code>
298- * excluded_resource_providers</code>).
326+ * Enable Azure metrics for your organization for resource providers where no resource provider
327+ * config is specified.
299328 *
300- * @return metricsConfig
329+ * @return metricsEnabledDefault
301330 */
302331 @ jakarta .annotation .Nullable
303- @ JsonProperty (JSON_PROPERTY_METRICS_CONFIG )
332+ @ JsonProperty (JSON_PROPERTY_METRICS_ENABLED_DEFAULT )
304333 @ JsonInclude (value = JsonInclude .Include .USE_DEFAULTS )
305- public AzureAccountMetricsConfig getMetricsConfig () {
306- return metricsConfig ;
334+ public Boolean getMetricsEnabledDefault () {
335+ return metricsEnabledDefault ;
307336 }
308337
309- public void setMetricsConfig ( AzureAccountMetricsConfig metricsConfig ) {
310- this .metricsConfig = metricsConfig ;
338+ public void setMetricsEnabledDefault ( Boolean metricsEnabledDefault ) {
339+ this .metricsEnabledDefault = metricsEnabledDefault ;
311340 }
312341
313342 public AzureAccount newClientId (String newClientId ) {
@@ -374,6 +403,41 @@ public void setResourceCollectionEnabled(Boolean resourceCollectionEnabled) {
374403 this .resourceCollectionEnabled = resourceCollectionEnabled ;
375404 }
376405
406+ public AzureAccount resourceProviderConfigs (
407+ List <ResourceProviderConfig > resourceProviderConfigs ) {
408+ this .resourceProviderConfigs = resourceProviderConfigs ;
409+ for (ResourceProviderConfig item : resourceProviderConfigs ) {
410+ this .unparsed |= item .unparsed ;
411+ }
412+ return this ;
413+ }
414+
415+ public AzureAccount addResourceProviderConfigsItem (
416+ ResourceProviderConfig resourceProviderConfigsItem ) {
417+ if (this .resourceProviderConfigs == null ) {
418+ this .resourceProviderConfigs = new ArrayList <>();
419+ }
420+ this .resourceProviderConfigs .add (resourceProviderConfigsItem );
421+ this .unparsed |= resourceProviderConfigsItem .unparsed ;
422+ return this ;
423+ }
424+
425+ /**
426+ * Configuration settings applied to resources from the specified Azure resource providers.
427+ *
428+ * @return resourceProviderConfigs
429+ */
430+ @ jakarta .annotation .Nullable
431+ @ JsonProperty (JSON_PROPERTY_RESOURCE_PROVIDER_CONFIGS )
432+ @ JsonInclude (value = JsonInclude .Include .USE_DEFAULTS )
433+ public List <ResourceProviderConfig > getResourceProviderConfigs () {
434+ return resourceProviderConfigs ;
435+ }
436+
437+ public void setResourceProviderConfigs (List <ResourceProviderConfig > resourceProviderConfigs ) {
438+ this .resourceProviderConfigs = resourceProviderConfigs ;
439+ }
440+
377441 public AzureAccount tenantName (String tenantName ) {
378442 this .tenantName = tenantName ;
379443 return this ;
@@ -395,6 +459,27 @@ public void setTenantName(String tenantName) {
395459 this .tenantName = tenantName ;
396460 }
397461
462+ public AzureAccount usageMetricsEnabled (Boolean usageMetricsEnabled ) {
463+ this .usageMetricsEnabled = usageMetricsEnabled ;
464+ return this ;
465+ }
466+
467+ /**
468+ * Enable azure.usage metrics for your organization.
469+ *
470+ * @return usageMetricsEnabled
471+ */
472+ @ jakarta .annotation .Nullable
473+ @ JsonProperty (JSON_PROPERTY_USAGE_METRICS_ENABLED )
474+ @ JsonInclude (value = JsonInclude .Include .USE_DEFAULTS )
475+ public Boolean getUsageMetricsEnabled () {
476+ return usageMetricsEnabled ;
477+ }
478+
479+ public void setUsageMetricsEnabled (Boolean usageMetricsEnabled ) {
480+ this .usageMetricsEnabled = usageMetricsEnabled ;
481+ }
482+
398483 /**
399484 * A container for additional, undeclared properties. This is a holder for any undeclared
400485 * properties as specified with the 'additionalProperties' keyword in the OAS document.
@@ -460,11 +545,14 @@ public boolean equals(Object o) {
460545 && Objects .equals (this .customMetricsEnabled , azureAccount .customMetricsEnabled )
461546 && Objects .equals (this .errors , azureAccount .errors )
462547 && Objects .equals (this .hostFilters , azureAccount .hostFilters )
463- && Objects .equals (this .metricsConfig , azureAccount .metricsConfig )
548+ && Objects .equals (this .metricsEnabled , azureAccount .metricsEnabled )
549+ && Objects .equals (this .metricsEnabledDefault , azureAccount .metricsEnabledDefault )
464550 && Objects .equals (this .newClientId , azureAccount .newClientId )
465551 && Objects .equals (this .newTenantName , azureAccount .newTenantName )
466552 && Objects .equals (this .resourceCollectionEnabled , azureAccount .resourceCollectionEnabled )
553+ && Objects .equals (this .resourceProviderConfigs , azureAccount .resourceProviderConfigs )
467554 && Objects .equals (this .tenantName , azureAccount .tenantName )
555+ && Objects .equals (this .usageMetricsEnabled , azureAccount .usageMetricsEnabled )
468556 && Objects .equals (this .additionalProperties , azureAccount .additionalProperties );
469557 }
470558
@@ -480,11 +568,14 @@ public int hashCode() {
480568 customMetricsEnabled ,
481569 errors ,
482570 hostFilters ,
483- metricsConfig ,
571+ metricsEnabled ,
572+ metricsEnabledDefault ,
484573 newClientId ,
485574 newTenantName ,
486575 resourceCollectionEnabled ,
576+ resourceProviderConfigs ,
487577 tenantName ,
578+ usageMetricsEnabled ,
488579 additionalProperties );
489580 }
490581
@@ -507,13 +598,22 @@ public String toString() {
507598 .append ("\n " );
508599 sb .append (" errors: " ).append (toIndentedString (errors )).append ("\n " );
509600 sb .append (" hostFilters: " ).append (toIndentedString (hostFilters )).append ("\n " );
510- sb .append (" metricsConfig: " ).append (toIndentedString (metricsConfig )).append ("\n " );
601+ sb .append (" metricsEnabled: " ).append (toIndentedString (metricsEnabled )).append ("\n " );
602+ sb .append (" metricsEnabledDefault: " )
603+ .append (toIndentedString (metricsEnabledDefault ))
604+ .append ("\n " );
511605 sb .append (" newClientId: " ).append (toIndentedString (newClientId )).append ("\n " );
512606 sb .append (" newTenantName: " ).append (toIndentedString (newTenantName )).append ("\n " );
513607 sb .append (" resourceCollectionEnabled: " )
514608 .append (toIndentedString (resourceCollectionEnabled ))
515609 .append ("\n " );
610+ sb .append (" resourceProviderConfigs: " )
611+ .append (toIndentedString (resourceProviderConfigs ))
612+ .append ("\n " );
516613 sb .append (" tenantName: " ).append (toIndentedString (tenantName )).append ("\n " );
614+ sb .append (" usageMetricsEnabled: " )
615+ .append (toIndentedString (usageMetricsEnabled ))
616+ .append ("\n " );
517617 sb .append (" additionalProperties: " )
518618 .append (toIndentedString (additionalProperties ))
519619 .append ("\n " );
0 commit comments