2626 GCPSTSServiceAccountAttributes .JSON_PROPERTY_CLOUD_RUN_REVISION_FILTERS ,
2727 GCPSTSServiceAccountAttributes .JSON_PROPERTY_HOST_FILTERS ,
2828 GCPSTSServiceAccountAttributes .JSON_PROPERTY_IS_CSPM_ENABLED ,
29+ GCPSTSServiceAccountAttributes .JSON_PROPERTY_IS_GLOBAL_LOCATION_ENABLED ,
2930 GCPSTSServiceAccountAttributes .JSON_PROPERTY_IS_PER_PROJECT_QUOTA_ENABLED ,
3031 GCPSTSServiceAccountAttributes .JSON_PROPERTY_IS_RESOURCE_CHANGE_COLLECTION_ENABLED ,
3132 GCPSTSServiceAccountAttributes .JSON_PROPERTY_IS_SECURITY_COMMAND_CENTER_ENABLED ,
3233 GCPSTSServiceAccountAttributes .JSON_PROPERTY_METRIC_NAMESPACE_CONFIGS ,
3334 GCPSTSServiceAccountAttributes .JSON_PROPERTY_MONITORED_RESOURCE_CONFIGS ,
35+ GCPSTSServiceAccountAttributes .JSON_PROPERTY_REGION_FILTER_CONFIGS ,
3436 GCPSTSServiceAccountAttributes .JSON_PROPERTY_RESOURCE_COLLECTION_ENABLED
3537})
3638@ jakarta .annotation .Generated (
@@ -56,6 +58,10 @@ public class GCPSTSServiceAccountAttributes {
5658 public static final String JSON_PROPERTY_IS_CSPM_ENABLED = "is_cspm_enabled" ;
5759 private Boolean isCspmEnabled ;
5860
61+ public static final String JSON_PROPERTY_IS_GLOBAL_LOCATION_ENABLED =
62+ "is_global_location_enabled" ;
63+ private Boolean isGlobalLocationEnabled = true ;
64+
5965 public static final String JSON_PROPERTY_IS_PER_PROJECT_QUOTA_ENABLED =
6066 "is_per_project_quota_enabled" ;
6167 private Boolean isPerProjectQuotaEnabled = false ;
@@ -75,6 +81,9 @@ public class GCPSTSServiceAccountAttributes {
7581 "monitored_resource_configs" ;
7682 private List <GCPMonitoredResourceConfig > monitoredResourceConfigs = null ;
7783
84+ public static final String JSON_PROPERTY_REGION_FILTER_CONFIGS = "region_filter_configs" ;
85+ private List <String > regionFilterConfigs = null ;
86+
7887 public static final String JSON_PROPERTY_RESOURCE_COLLECTION_ENABLED =
7988 "resource_collection_enabled" ;
8089 private Boolean resourceCollectionEnabled ;
@@ -244,6 +253,28 @@ public void setIsCspmEnabled(Boolean isCspmEnabled) {
244253 this .isCspmEnabled = isCspmEnabled ;
245254 }
246255
256+ public GCPSTSServiceAccountAttributes isGlobalLocationEnabled (Boolean isGlobalLocationEnabled ) {
257+ this .isGlobalLocationEnabled = isGlobalLocationEnabled ;
258+ return this ;
259+ }
260+
261+ /**
262+ * When enabled, metrics, events, and resources where location is explicitly stated as “global” or
263+ * where location information could not be deduced from GCP labels will be collected.
264+ *
265+ * @return isGlobalLocationEnabled
266+ */
267+ @ jakarta .annotation .Nullable
268+ @ JsonProperty (JSON_PROPERTY_IS_GLOBAL_LOCATION_ENABLED )
269+ @ JsonInclude (value = JsonInclude .Include .USE_DEFAULTS )
270+ public Boolean getIsGlobalLocationEnabled () {
271+ return isGlobalLocationEnabled ;
272+ }
273+
274+ public void setIsGlobalLocationEnabled (Boolean isGlobalLocationEnabled ) {
275+ this .isGlobalLocationEnabled = isGlobalLocationEnabled ;
276+ }
277+
247278 public GCPSTSServiceAccountAttributes isPerProjectQuotaEnabled (Boolean isPerProjectQuotaEnabled ) {
248279 this .isPerProjectQuotaEnabled = isPerProjectQuotaEnabled ;
249280 return this ;
@@ -383,6 +414,35 @@ public void setMonitoredResourceConfigs(
383414 this .monitoredResourceConfigs = monitoredResourceConfigs ;
384415 }
385416
417+ public GCPSTSServiceAccountAttributes regionFilterConfigs (List <String > regionFilterConfigs ) {
418+ this .regionFilterConfigs = regionFilterConfigs ;
419+ return this ;
420+ }
421+
422+ public GCPSTSServiceAccountAttributes addRegionFilterConfigsItem (String regionFilterConfigsItem ) {
423+ if (this .regionFilterConfigs == null ) {
424+ this .regionFilterConfigs = new ArrayList <>();
425+ }
426+ this .regionFilterConfigs .add (regionFilterConfigsItem );
427+ return this ;
428+ }
429+
430+ /**
431+ * Filters to limit metric collection by GCP region. By default Datadog collects from all regions.
432+ *
433+ * @return regionFilterConfigs
434+ */
435+ @ jakarta .annotation .Nullable
436+ @ JsonProperty (JSON_PROPERTY_REGION_FILTER_CONFIGS )
437+ @ JsonInclude (value = JsonInclude .Include .USE_DEFAULTS )
438+ public List <String > getRegionFilterConfigs () {
439+ return regionFilterConfigs ;
440+ }
441+
442+ public void setRegionFilterConfigs (List <String > regionFilterConfigs ) {
443+ this .regionFilterConfigs = regionFilterConfigs ;
444+ }
445+
386446 public GCPSTSServiceAccountAttributes resourceCollectionEnabled (
387447 Boolean resourceCollectionEnabled ) {
388448 this .resourceCollectionEnabled = resourceCollectionEnabled ;
@@ -469,6 +529,8 @@ public boolean equals(Object o) {
469529 this .cloudRunRevisionFilters , gcpstsServiceAccountAttributes .cloudRunRevisionFilters )
470530 && Objects .equals (this .hostFilters , gcpstsServiceAccountAttributes .hostFilters )
471531 && Objects .equals (this .isCspmEnabled , gcpstsServiceAccountAttributes .isCspmEnabled )
532+ && Objects .equals (
533+ this .isGlobalLocationEnabled , gcpstsServiceAccountAttributes .isGlobalLocationEnabled )
472534 && Objects .equals (
473535 this .isPerProjectQuotaEnabled , gcpstsServiceAccountAttributes .isPerProjectQuotaEnabled )
474536 && Objects .equals (
@@ -481,6 +543,8 @@ public boolean equals(Object o) {
481543 this .metricNamespaceConfigs , gcpstsServiceAccountAttributes .metricNamespaceConfigs )
482544 && Objects .equals (
483545 this .monitoredResourceConfigs , gcpstsServiceAccountAttributes .monitoredResourceConfigs )
546+ && Objects .equals (
547+ this .regionFilterConfigs , gcpstsServiceAccountAttributes .regionFilterConfigs )
484548 && Objects .equals (
485549 this .resourceCollectionEnabled ,
486550 gcpstsServiceAccountAttributes .resourceCollectionEnabled )
@@ -497,11 +561,13 @@ public int hashCode() {
497561 cloudRunRevisionFilters ,
498562 hostFilters ,
499563 isCspmEnabled ,
564+ isGlobalLocationEnabled ,
500565 isPerProjectQuotaEnabled ,
501566 isResourceChangeCollectionEnabled ,
502567 isSecurityCommandCenterEnabled ,
503568 metricNamespaceConfigs ,
504569 monitoredResourceConfigs ,
570+ regionFilterConfigs ,
505571 resourceCollectionEnabled ,
506572 additionalProperties );
507573 }
@@ -518,6 +584,9 @@ public String toString() {
518584 .append ("\n " );
519585 sb .append (" hostFilters: " ).append (toIndentedString (hostFilters )).append ("\n " );
520586 sb .append (" isCspmEnabled: " ).append (toIndentedString (isCspmEnabled )).append ("\n " );
587+ sb .append (" isGlobalLocationEnabled: " )
588+ .append (toIndentedString (isGlobalLocationEnabled ))
589+ .append ("\n " );
521590 sb .append (" isPerProjectQuotaEnabled: " )
522591 .append (toIndentedString (isPerProjectQuotaEnabled ))
523592 .append ("\n " );
@@ -533,6 +602,9 @@ public String toString() {
533602 sb .append (" monitoredResourceConfigs: " )
534603 .append (toIndentedString (monitoredResourceConfigs ))
535604 .append ("\n " );
605+ sb .append (" regionFilterConfigs: " )
606+ .append (toIndentedString (regionFilterConfigs ))
607+ .append ("\n " );
536608 sb .append (" resourceCollectionEnabled: " )
537609 .append (toIndentedString (resourceCollectionEnabled ))
538610 .append ("\n " );
0 commit comments