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, Datadog collects metrics where location is explicitly stated as "global" or where
263+ * location information cannot be deduced from GCP labels.
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,37 @@ 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+ * Configurations for GCP location filtering, such as region, multi-region, or zone. Only
432+ * monitored resources that match the specified regions are imported into Datadog. By default,
433+ * Datadog collects from all locations.
434+ *
435+ * @return regionFilterConfigs
436+ */
437+ @ jakarta .annotation .Nullable
438+ @ JsonProperty (JSON_PROPERTY_REGION_FILTER_CONFIGS )
439+ @ JsonInclude (value = JsonInclude .Include .USE_DEFAULTS )
440+ public List <String > getRegionFilterConfigs () {
441+ return regionFilterConfigs ;
442+ }
443+
444+ public void setRegionFilterConfigs (List <String > regionFilterConfigs ) {
445+ this .regionFilterConfigs = regionFilterConfigs ;
446+ }
447+
386448 public GCPSTSServiceAccountAttributes resourceCollectionEnabled (
387449 Boolean resourceCollectionEnabled ) {
388450 this .resourceCollectionEnabled = resourceCollectionEnabled ;
@@ -469,6 +531,8 @@ public boolean equals(Object o) {
469531 this .cloudRunRevisionFilters , gcpstsServiceAccountAttributes .cloudRunRevisionFilters )
470532 && Objects .equals (this .hostFilters , gcpstsServiceAccountAttributes .hostFilters )
471533 && Objects .equals (this .isCspmEnabled , gcpstsServiceAccountAttributes .isCspmEnabled )
534+ && Objects .equals (
535+ this .isGlobalLocationEnabled , gcpstsServiceAccountAttributes .isGlobalLocationEnabled )
472536 && Objects .equals (
473537 this .isPerProjectQuotaEnabled , gcpstsServiceAccountAttributes .isPerProjectQuotaEnabled )
474538 && Objects .equals (
@@ -481,6 +545,8 @@ public boolean equals(Object o) {
481545 this .metricNamespaceConfigs , gcpstsServiceAccountAttributes .metricNamespaceConfigs )
482546 && Objects .equals (
483547 this .monitoredResourceConfigs , gcpstsServiceAccountAttributes .monitoredResourceConfigs )
548+ && Objects .equals (
549+ this .regionFilterConfigs , gcpstsServiceAccountAttributes .regionFilterConfigs )
484550 && Objects .equals (
485551 this .resourceCollectionEnabled ,
486552 gcpstsServiceAccountAttributes .resourceCollectionEnabled )
@@ -497,11 +563,13 @@ public int hashCode() {
497563 cloudRunRevisionFilters ,
498564 hostFilters ,
499565 isCspmEnabled ,
566+ isGlobalLocationEnabled ,
500567 isPerProjectQuotaEnabled ,
501568 isResourceChangeCollectionEnabled ,
502569 isSecurityCommandCenterEnabled ,
503570 metricNamespaceConfigs ,
504571 monitoredResourceConfigs ,
572+ regionFilterConfigs ,
505573 resourceCollectionEnabled ,
506574 additionalProperties );
507575 }
@@ -518,6 +586,9 @@ public String toString() {
518586 .append ("\n " );
519587 sb .append (" hostFilters: " ).append (toIndentedString (hostFilters )).append ("\n " );
520588 sb .append (" isCspmEnabled: " ).append (toIndentedString (isCspmEnabled )).append ("\n " );
589+ sb .append (" isGlobalLocationEnabled: " )
590+ .append (toIndentedString (isGlobalLocationEnabled ))
591+ .append ("\n " );
521592 sb .append (" isPerProjectQuotaEnabled: " )
522593 .append (toIndentedString (isPerProjectQuotaEnabled ))
523594 .append ("\n " );
@@ -533,6 +604,9 @@ public String toString() {
533604 sb .append (" monitoredResourceConfigs: " )
534605 .append (toIndentedString (monitoredResourceConfigs ))
535606 .append ("\n " );
607+ sb .append (" regionFilterConfigs: " )
608+ .append (toIndentedString (regionFilterConfigs ))
609+ .append ("\n " );
536610 sb .append (" resourceCollectionEnabled: " )
537611 .append (toIndentedString (resourceCollectionEnabled ))
538612 .append ("\n " );
0 commit comments