26
26
GCPSTSServiceAccountAttributes .JSON_PROPERTY_CLOUD_RUN_REVISION_FILTERS ,
27
27
GCPSTSServiceAccountAttributes .JSON_PROPERTY_HOST_FILTERS ,
28
28
GCPSTSServiceAccountAttributes .JSON_PROPERTY_IS_CSPM_ENABLED ,
29
+ GCPSTSServiceAccountAttributes .JSON_PROPERTY_IS_PER_PROJECT_QUOTA_ENABLED ,
29
30
GCPSTSServiceAccountAttributes .JSON_PROPERTY_IS_RESOURCE_CHANGE_COLLECTION_ENABLED ,
30
31
GCPSTSServiceAccountAttributes .JSON_PROPERTY_IS_SECURITY_COMMAND_CENTER_ENABLED ,
31
32
GCPSTSServiceAccountAttributes .JSON_PROPERTY_METRIC_NAMESPACE_CONFIGS ,
@@ -54,6 +55,10 @@ public class GCPSTSServiceAccountAttributes {
54
55
public static final String JSON_PROPERTY_IS_CSPM_ENABLED = "is_cspm_enabled" ;
55
56
private Boolean isCspmEnabled ;
56
57
58
+ public static final String JSON_PROPERTY_IS_PER_PROJECT_QUOTA_ENABLED =
59
+ "is_per_project_quota_enabled" ;
60
+ private Boolean isPerProjectQuotaEnabled = false ;
61
+
57
62
public static final String JSON_PROPERTY_IS_RESOURCE_CHANGE_COLLECTION_ENABLED =
58
63
"is_resource_change_collection_enabled" ;
59
64
private Boolean isResourceChangeCollectionEnabled = false ;
@@ -223,6 +228,29 @@ public void setIsCspmEnabled(Boolean isCspmEnabled) {
223
228
this .isCspmEnabled = isCspmEnabled ;
224
229
}
225
230
231
+ public GCPSTSServiceAccountAttributes isPerProjectQuotaEnabled (Boolean isPerProjectQuotaEnabled ) {
232
+ this .isPerProjectQuotaEnabled = isPerProjectQuotaEnabled ;
233
+ return this ;
234
+ }
235
+
236
+ /**
237
+ * When enabled, Datadog applies the <code>X-Goog-User-Project</code> header, attributing Google
238
+ * Cloud billing and quota usage to the project being monitored rather than the default service
239
+ * account project.
240
+ *
241
+ * @return isPerProjectQuotaEnabled
242
+ */
243
+ @ jakarta .annotation .Nullable
244
+ @ JsonProperty (JSON_PROPERTY_IS_PER_PROJECT_QUOTA_ENABLED )
245
+ @ JsonInclude (value = JsonInclude .Include .USE_DEFAULTS )
246
+ public Boolean getIsPerProjectQuotaEnabled () {
247
+ return isPerProjectQuotaEnabled ;
248
+ }
249
+
250
+ public void setIsPerProjectQuotaEnabled (Boolean isPerProjectQuotaEnabled ) {
251
+ this .isPerProjectQuotaEnabled = isPerProjectQuotaEnabled ;
252
+ }
253
+
226
254
public GCPSTSServiceAccountAttributes isResourceChangeCollectionEnabled (
227
255
Boolean isResourceChangeCollectionEnabled ) {
228
256
this .isResourceChangeCollectionEnabled = isResourceChangeCollectionEnabled ;
@@ -389,6 +417,8 @@ public boolean equals(Object o) {
389
417
this .cloudRunRevisionFilters , gcpstsServiceAccountAttributes .cloudRunRevisionFilters )
390
418
&& Objects .equals (this .hostFilters , gcpstsServiceAccountAttributes .hostFilters )
391
419
&& Objects .equals (this .isCspmEnabled , gcpstsServiceAccountAttributes .isCspmEnabled )
420
+ && Objects .equals (
421
+ this .isPerProjectQuotaEnabled , gcpstsServiceAccountAttributes .isPerProjectQuotaEnabled )
392
422
&& Objects .equals (
393
423
this .isResourceChangeCollectionEnabled ,
394
424
gcpstsServiceAccountAttributes .isResourceChangeCollectionEnabled )
@@ -413,6 +443,7 @@ public int hashCode() {
413
443
cloudRunRevisionFilters ,
414
444
hostFilters ,
415
445
isCspmEnabled ,
446
+ isPerProjectQuotaEnabled ,
416
447
isResourceChangeCollectionEnabled ,
417
448
isSecurityCommandCenterEnabled ,
418
449
metricNamespaceConfigs ,
@@ -432,6 +463,9 @@ public String toString() {
432
463
.append ("\n " );
433
464
sb .append (" hostFilters: " ).append (toIndentedString (hostFilters )).append ("\n " );
434
465
sb .append (" isCspmEnabled: " ).append (toIndentedString (isCspmEnabled )).append ("\n " );
466
+ sb .append (" isPerProjectQuotaEnabled: " )
467
+ .append (toIndentedString (isPerProjectQuotaEnabled ))
468
+ .append ("\n " );
435
469
sb .append (" isResourceChangeCollectionEnabled: " )
436
470
.append (toIndentedString (isResourceChangeCollectionEnabled ))
437
471
.append ("\n " );
0 commit comments