3232 GCPAccount .JSON_PROPERTY_IS_CSPM_ENABLED ,
3333 GCPAccount .JSON_PROPERTY_IS_RESOURCE_CHANGE_COLLECTION_ENABLED ,
3434 GCPAccount .JSON_PROPERTY_IS_SECURITY_COMMAND_CENTER_ENABLED ,
35+ GCPAccount .JSON_PROPERTY_MONITORED_RESOURCE_CONFIGS ,
3536 GCPAccount .JSON_PROPERTY_PRIVATE_KEY ,
3637 GCPAccount .JSON_PROPERTY_PRIVATE_KEY_ID ,
3738 GCPAccount .JSON_PROPERTY_PROJECT_ID ,
@@ -83,6 +84,10 @@ public class GCPAccount {
8384 "is_security_command_center_enabled" ;
8485 private Boolean isSecurityCommandCenterEnabled = false ;
8586
87+ public static final String JSON_PROPERTY_MONITORED_RESOURCE_CONFIGS =
88+ "monitored_resource_configs" ;
89+ private List <GCPMonitoredResourceConfig > monitoredResourceConfigs = null ;
90+
8691 public static final String JSON_PROPERTY_PRIVATE_KEY = "private_key" ;
8792 private String privateKey ;
8893
@@ -243,18 +248,23 @@ public GCPAccount addCloudRunRevisionFiltersItem(String cloudRunRevisionFiltersI
243248 }
244249
245250 /**
246- * Limit the Cloud Run revisions that are pulled into Datadog by using tags. Only Cloud Run
247- * revision resources that apply to specified filters are imported into Datadog.
251+ * List of filters to limit the Cloud Run revisions that are pulled into Datadog by using tags.
252+ * Only Cloud Run revision resources that apply to specified filters are imported into Datadog.
253+ * <strong>Note:</strong> This field is deprecated. Instead, use <code>monitored_resource_configs
254+ * </code> with <code>type=cloud_run_revision</code>
248255 *
249256 * @return cloudRunRevisionFilters
257+ * @deprecated
250258 */
259+ @ Deprecated
251260 @ jakarta .annotation .Nullable
252261 @ JsonProperty (JSON_PROPERTY_CLOUD_RUN_REVISION_FILTERS )
253262 @ JsonInclude (value = JsonInclude .Include .USE_DEFAULTS )
254263 public List <String > getCloudRunRevisionFilters () {
255264 return cloudRunRevisionFilters ;
256265 }
257266
267+ @ Deprecated
258268 public void setCloudRunRevisionFilters (List <String > cloudRunRevisionFilters ) {
259269 this .cloudRunRevisionFilters = cloudRunRevisionFilters ;
260270 }
@@ -294,18 +304,23 @@ public GCPAccount hostFilters(String hostFilters) {
294304 }
295305
296306 /**
297- * Limit the GCE instances that are pulled into Datadog by using tags. Only hosts that match one
298- * of the defined tags are imported into Datadog.
307+ * A comma-separated list of filters to limit the VM instances that are pulled into Datadog by
308+ * using tags. Only VM instance resources that apply to specified filters are imported into
309+ * Datadog. <strong>Note:</strong> This field is deprecated. Instead, use <code>
310+ * monitored_resource_configs</code> with <code>type=gce_instance</code>
299311 *
300312 * @return hostFilters
313+ * @deprecated
301314 */
315+ @ Deprecated
302316 @ jakarta .annotation .Nullable
303317 @ JsonProperty (JSON_PROPERTY_HOST_FILTERS )
304318 @ JsonInclude (value = JsonInclude .Include .USE_DEFAULTS )
305319 public String getHostFilters () {
306320 return hostFilters ;
307321 }
308322
323+ @ Deprecated
309324 public void setHostFilters (String hostFilters ) {
310325 this .hostFilters = hostFilters ;
311326 }
@@ -375,6 +390,42 @@ public void setIsSecurityCommandCenterEnabled(Boolean isSecurityCommandCenterEna
375390 this .isSecurityCommandCenterEnabled = isSecurityCommandCenterEnabled ;
376391 }
377392
393+ public GCPAccount monitoredResourceConfigs (
394+ List <GCPMonitoredResourceConfig > monitoredResourceConfigs ) {
395+ this .monitoredResourceConfigs = monitoredResourceConfigs ;
396+ for (GCPMonitoredResourceConfig item : monitoredResourceConfigs ) {
397+ this .unparsed |= item .unparsed ;
398+ }
399+ return this ;
400+ }
401+
402+ public GCPAccount addMonitoredResourceConfigsItem (
403+ GCPMonitoredResourceConfig monitoredResourceConfigsItem ) {
404+ if (this .monitoredResourceConfigs == null ) {
405+ this .monitoredResourceConfigs = new ArrayList <>();
406+ }
407+ this .monitoredResourceConfigs .add (monitoredResourceConfigsItem );
408+ this .unparsed |= monitoredResourceConfigsItem .unparsed ;
409+ return this ;
410+ }
411+
412+ /**
413+ * Configurations for GCP monitored resources.
414+ *
415+ * @return monitoredResourceConfigs
416+ */
417+ @ jakarta .annotation .Nullable
418+ @ JsonProperty (JSON_PROPERTY_MONITORED_RESOURCE_CONFIGS )
419+ @ JsonInclude (value = JsonInclude .Include .USE_DEFAULTS )
420+ public List <GCPMonitoredResourceConfig > getMonitoredResourceConfigs () {
421+ return monitoredResourceConfigs ;
422+ }
423+
424+ public void setMonitoredResourceConfigs (
425+ List <GCPMonitoredResourceConfig > monitoredResourceConfigs ) {
426+ this .monitoredResourceConfigs = monitoredResourceConfigs ;
427+ }
428+
378429 public GCPAccount privateKey (String privateKey ) {
379430 this .privateKey = privateKey ;
380431 return this ;
@@ -571,6 +622,7 @@ public boolean equals(Object o) {
571622 this .isResourceChangeCollectionEnabled , gcpAccount .isResourceChangeCollectionEnabled )
572623 && Objects .equals (
573624 this .isSecurityCommandCenterEnabled , gcpAccount .isSecurityCommandCenterEnabled )
625+ && Objects .equals (this .monitoredResourceConfigs , gcpAccount .monitoredResourceConfigs )
574626 && Objects .equals (this .privateKey , gcpAccount .privateKey )
575627 && Objects .equals (this .privateKeyId , gcpAccount .privateKeyId )
576628 && Objects .equals (this .projectId , gcpAccount .projectId )
@@ -595,6 +647,7 @@ public int hashCode() {
595647 isCspmEnabled ,
596648 isResourceChangeCollectionEnabled ,
597649 isSecurityCommandCenterEnabled ,
650+ monitoredResourceConfigs ,
598651 privateKey ,
599652 privateKeyId ,
600653 projectId ,
@@ -628,6 +681,9 @@ public String toString() {
628681 sb .append (" isSecurityCommandCenterEnabled: " )
629682 .append (toIndentedString (isSecurityCommandCenterEnabled ))
630683 .append ("\n " );
684+ sb .append (" monitoredResourceConfigs: " )
685+ .append (toIndentedString (monitoredResourceConfigs ))
686+ .append ("\n " );
631687 sb .append (" privateKey: " ).append (toIndentedString (privateKey )).append ("\n " );
632688 sb .append (" privateKeyId: " ).append (toIndentedString (privateKeyId )).append ("\n " );
633689 sb .append (" projectId: " ).append (toIndentedString (projectId )).append ("\n " );
0 commit comments