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 where location is explicitly stated as “global” or where location
263+ * information cannot be deduced from GCP labels is 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,36 @@ 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 location, such as region, multi-region, or zone. By
432+ * default, Datadog collects from all locations.
433+ *
434+ * @return regionFilterConfigs
435+ */
436+ @ jakarta .annotation .Nullable
437+ @ JsonProperty (JSON_PROPERTY_REGION_FILTER_CONFIGS )
438+ @ JsonInclude (value = JsonInclude .Include .USE_DEFAULTS )
439+ public List <String > getRegionFilterConfigs () {
440+ return regionFilterConfigs ;
441+ }
442+
443+ public void setRegionFilterConfigs (List <String > regionFilterConfigs ) {
444+ this .regionFilterConfigs = regionFilterConfigs ;
445+ }
446+
386447 public GCPSTSServiceAccountAttributes resourceCollectionEnabled (
387448 Boolean resourceCollectionEnabled ) {
388449 this .resourceCollectionEnabled = resourceCollectionEnabled ;
@@ -469,6 +530,8 @@ public boolean equals(Object o) {
469530 this .cloudRunRevisionFilters , gcpstsServiceAccountAttributes .cloudRunRevisionFilters )
470531 && Objects .equals (this .hostFilters , gcpstsServiceAccountAttributes .hostFilters )
471532 && Objects .equals (this .isCspmEnabled , gcpstsServiceAccountAttributes .isCspmEnabled )
533+ && Objects .equals (
534+ this .isGlobalLocationEnabled , gcpstsServiceAccountAttributes .isGlobalLocationEnabled )
472535 && Objects .equals (
473536 this .isPerProjectQuotaEnabled , gcpstsServiceAccountAttributes .isPerProjectQuotaEnabled )
474537 && Objects .equals (
@@ -481,6 +544,8 @@ public boolean equals(Object o) {
481544 this .metricNamespaceConfigs , gcpstsServiceAccountAttributes .metricNamespaceConfigs )
482545 && Objects .equals (
483546 this .monitoredResourceConfigs , gcpstsServiceAccountAttributes .monitoredResourceConfigs )
547+ && Objects .equals (
548+ this .regionFilterConfigs , gcpstsServiceAccountAttributes .regionFilterConfigs )
484549 && Objects .equals (
485550 this .resourceCollectionEnabled ,
486551 gcpstsServiceAccountAttributes .resourceCollectionEnabled )
@@ -497,11 +562,13 @@ public int hashCode() {
497562 cloudRunRevisionFilters ,
498563 hostFilters ,
499564 isCspmEnabled ,
565+ isGlobalLocationEnabled ,
500566 isPerProjectQuotaEnabled ,
501567 isResourceChangeCollectionEnabled ,
502568 isSecurityCommandCenterEnabled ,
503569 metricNamespaceConfigs ,
504570 monitoredResourceConfigs ,
571+ regionFilterConfigs ,
505572 resourceCollectionEnabled ,
506573 additionalProperties );
507574 }
@@ -518,6 +585,9 @@ public String toString() {
518585 .append ("\n " );
519586 sb .append (" hostFilters: " ).append (toIndentedString (hostFilters )).append ("\n " );
520587 sb .append (" isCspmEnabled: " ).append (toIndentedString (isCspmEnabled )).append ("\n " );
588+ sb .append (" isGlobalLocationEnabled: " )
589+ .append (toIndentedString (isGlobalLocationEnabled ))
590+ .append ("\n " );
521591 sb .append (" isPerProjectQuotaEnabled: " )
522592 .append (toIndentedString (isPerProjectQuotaEnabled ))
523593 .append ("\n " );
@@ -533,6 +603,9 @@ public String toString() {
533603 sb .append (" monitoredResourceConfigs: " )
534604 .append (toIndentedString (monitoredResourceConfigs ))
535605 .append ("\n " );
606+ sb .append (" regionFilterConfigs: " )
607+ .append (toIndentedString (regionFilterConfigs ))
608+ .append ("\n " );
536609 sb .append (" resourceCollectionEnabled: " )
537610 .append (toIndentedString (resourceCollectionEnabled ))
538611 .append ("\n " );
0 commit comments