@@ -28,6 +28,8 @@ type GCPSTSServiceAccountAttributes struct {
2828 HostFilters []string `json:"host_filters,omitempty"`
2929 // When enabled, Datadog will activate the Cloud Security Monitoring product for this service account. Note: This requires resource_collection_enabled to be set to true.
3030 IsCspmEnabled * bool `json:"is_cspm_enabled,omitempty"`
31+ // When enabled, Datadog collects metrics where location is explicitly stated as "global" or where location information cannot be deduced from GCP labels.
32+ IsGlobalLocationEnabled * bool `json:"is_global_location_enabled,omitempty"`
3133 // When enabled, Datadog applies the `X-Goog-User-Project` header, attributing Google Cloud billing and quota usage to the project being monitored rather than the default service account project.
3234 IsPerProjectQuotaEnabled * bool `json:"is_per_project_quota_enabled,omitempty"`
3335 // When enabled, Datadog scans for all resource change data in your Google Cloud environment.
@@ -38,6 +40,8 @@ type GCPSTSServiceAccountAttributes struct {
3840 MetricNamespaceConfigs []GCPMetricNamespaceConfig `json:"metric_namespace_configs,omitempty"`
3941 // Configurations for GCP monitored resources.
4042 MonitoredResourceConfigs []GCPMonitoredResourceConfig `json:"monitored_resource_configs,omitempty"`
43+ // Configurations for GCP location filtering, such as region, multi-region, or zone. Only monitored resources that match the specified regions are imported into Datadog. By default, Datadog collects from all locations.
44+ RegionFilterConfigs []string `json:"region_filter_configs,omitempty"`
4145 // When enabled, Datadog scans for all resources in your GCP environment.
4246 ResourceCollectionEnabled * bool `json:"resource_collection_enabled,omitempty"`
4347 // UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
@@ -51,6 +55,8 @@ type GCPSTSServiceAccountAttributes struct {
5155// will change when the set of required properties is changed.
5256func NewGCPSTSServiceAccountAttributes () * GCPSTSServiceAccountAttributes {
5357 this := GCPSTSServiceAccountAttributes {}
58+ var isGlobalLocationEnabled bool = true
59+ this .IsGlobalLocationEnabled = & isGlobalLocationEnabled
5460 var isPerProjectQuotaEnabled bool = false
5561 this .IsPerProjectQuotaEnabled = & isPerProjectQuotaEnabled
5662 var isResourceChangeCollectionEnabled bool = false
@@ -65,6 +71,8 @@ func NewGCPSTSServiceAccountAttributes() *GCPSTSServiceAccountAttributes {
6571// but it doesn't guarantee that properties required by API are set.
6672func NewGCPSTSServiceAccountAttributesWithDefaults () * GCPSTSServiceAccountAttributes {
6773 this := GCPSTSServiceAccountAttributes {}
74+ var isGlobalLocationEnabled bool = true
75+ this .IsGlobalLocationEnabled = & isGlobalLocationEnabled
6876 var isPerProjectQuotaEnabled bool = false
6977 this .IsPerProjectQuotaEnabled = & isPerProjectQuotaEnabled
7078 var isResourceChangeCollectionEnabled bool = false
@@ -248,6 +256,34 @@ func (o *GCPSTSServiceAccountAttributes) SetIsCspmEnabled(v bool) {
248256 o .IsCspmEnabled = & v
249257}
250258
259+ // GetIsGlobalLocationEnabled returns the IsGlobalLocationEnabled field value if set, zero value otherwise.
260+ func (o * GCPSTSServiceAccountAttributes ) GetIsGlobalLocationEnabled () bool {
261+ if o == nil || o .IsGlobalLocationEnabled == nil {
262+ var ret bool
263+ return ret
264+ }
265+ return * o .IsGlobalLocationEnabled
266+ }
267+
268+ // GetIsGlobalLocationEnabledOk returns a tuple with the IsGlobalLocationEnabled field value if set, nil otherwise
269+ // and a boolean to check if the value has been set.
270+ func (o * GCPSTSServiceAccountAttributes ) GetIsGlobalLocationEnabledOk () (* bool , bool ) {
271+ if o == nil || o .IsGlobalLocationEnabled == nil {
272+ return nil , false
273+ }
274+ return o .IsGlobalLocationEnabled , true
275+ }
276+
277+ // HasIsGlobalLocationEnabled returns a boolean if a field has been set.
278+ func (o * GCPSTSServiceAccountAttributes ) HasIsGlobalLocationEnabled () bool {
279+ return o != nil && o .IsGlobalLocationEnabled != nil
280+ }
281+
282+ // SetIsGlobalLocationEnabled gets a reference to the given bool and assigns it to the IsGlobalLocationEnabled field.
283+ func (o * GCPSTSServiceAccountAttributes ) SetIsGlobalLocationEnabled (v bool ) {
284+ o .IsGlobalLocationEnabled = & v
285+ }
286+
251287// GetIsPerProjectQuotaEnabled returns the IsPerProjectQuotaEnabled field value if set, zero value otherwise.
252288func (o * GCPSTSServiceAccountAttributes ) GetIsPerProjectQuotaEnabled () bool {
253289 if o == nil || o .IsPerProjectQuotaEnabled == nil {
@@ -388,6 +424,34 @@ func (o *GCPSTSServiceAccountAttributes) SetMonitoredResourceConfigs(v []GCPMoni
388424 o .MonitoredResourceConfigs = v
389425}
390426
427+ // GetRegionFilterConfigs returns the RegionFilterConfigs field value if set, zero value otherwise.
428+ func (o * GCPSTSServiceAccountAttributes ) GetRegionFilterConfigs () []string {
429+ if o == nil || o .RegionFilterConfigs == nil {
430+ var ret []string
431+ return ret
432+ }
433+ return o .RegionFilterConfigs
434+ }
435+
436+ // GetRegionFilterConfigsOk returns a tuple with the RegionFilterConfigs field value if set, nil otherwise
437+ // and a boolean to check if the value has been set.
438+ func (o * GCPSTSServiceAccountAttributes ) GetRegionFilterConfigsOk () (* []string , bool ) {
439+ if o == nil || o .RegionFilterConfigs == nil {
440+ return nil , false
441+ }
442+ return & o .RegionFilterConfigs , true
443+ }
444+
445+ // HasRegionFilterConfigs returns a boolean if a field has been set.
446+ func (o * GCPSTSServiceAccountAttributes ) HasRegionFilterConfigs () bool {
447+ return o != nil && o .RegionFilterConfigs != nil
448+ }
449+
450+ // SetRegionFilterConfigs gets a reference to the given []string and assigns it to the RegionFilterConfigs field.
451+ func (o * GCPSTSServiceAccountAttributes ) SetRegionFilterConfigs (v []string ) {
452+ o .RegionFilterConfigs = v
453+ }
454+
391455// GetResourceCollectionEnabled returns the ResourceCollectionEnabled field value if set, zero value otherwise.
392456func (o * GCPSTSServiceAccountAttributes ) GetResourceCollectionEnabled () bool {
393457 if o == nil || o .ResourceCollectionEnabled == nil {
@@ -440,6 +504,9 @@ func (o GCPSTSServiceAccountAttributes) MarshalJSON() ([]byte, error) {
440504 if o .IsCspmEnabled != nil {
441505 toSerialize ["is_cspm_enabled" ] = o .IsCspmEnabled
442506 }
507+ if o .IsGlobalLocationEnabled != nil {
508+ toSerialize ["is_global_location_enabled" ] = o .IsGlobalLocationEnabled
509+ }
443510 if o .IsPerProjectQuotaEnabled != nil {
444511 toSerialize ["is_per_project_quota_enabled" ] = o .IsPerProjectQuotaEnabled
445512 }
@@ -455,6 +522,9 @@ func (o GCPSTSServiceAccountAttributes) MarshalJSON() ([]byte, error) {
455522 if o .MonitoredResourceConfigs != nil {
456523 toSerialize ["monitored_resource_configs" ] = o .MonitoredResourceConfigs
457524 }
525+ if o .RegionFilterConfigs != nil {
526+ toSerialize ["region_filter_configs" ] = o .RegionFilterConfigs
527+ }
458528 if o .ResourceCollectionEnabled != nil {
459529 toSerialize ["resource_collection_enabled" ] = o .ResourceCollectionEnabled
460530 }
@@ -474,19 +544,21 @@ func (o *GCPSTSServiceAccountAttributes) UnmarshalJSON(bytes []byte) (err error)
474544 CloudRunRevisionFilters []string `json:"cloud_run_revision_filters,omitempty"`
475545 HostFilters []string `json:"host_filters,omitempty"`
476546 IsCspmEnabled * bool `json:"is_cspm_enabled,omitempty"`
547+ IsGlobalLocationEnabled * bool `json:"is_global_location_enabled,omitempty"`
477548 IsPerProjectQuotaEnabled * bool `json:"is_per_project_quota_enabled,omitempty"`
478549 IsResourceChangeCollectionEnabled * bool `json:"is_resource_change_collection_enabled,omitempty"`
479550 IsSecurityCommandCenterEnabled * bool `json:"is_security_command_center_enabled,omitempty"`
480551 MetricNamespaceConfigs []GCPMetricNamespaceConfig `json:"metric_namespace_configs,omitempty"`
481552 MonitoredResourceConfigs []GCPMonitoredResourceConfig `json:"monitored_resource_configs,omitempty"`
553+ RegionFilterConfigs []string `json:"region_filter_configs,omitempty"`
482554 ResourceCollectionEnabled * bool `json:"resource_collection_enabled,omitempty"`
483555 }{}
484556 if err = datadog .Unmarshal (bytes , & all ); err != nil {
485557 return datadog .Unmarshal (bytes , & o .UnparsedObject )
486558 }
487559 additionalProperties := make (map [string ]interface {})
488560 if err = datadog .Unmarshal (bytes , & additionalProperties ); err == nil {
489- datadog .DeleteKeys (additionalProperties , & []string {"account_tags" , "automute" , "client_email" , "cloud_run_revision_filters" , "host_filters" , "is_cspm_enabled" , "is_per_project_quota_enabled" , "is_resource_change_collection_enabled" , "is_security_command_center_enabled" , "metric_namespace_configs" , "monitored_resource_configs" , "resource_collection_enabled" })
561+ datadog .DeleteKeys (additionalProperties , & []string {"account_tags" , "automute" , "client_email" , "cloud_run_revision_filters" , "host_filters" , "is_cspm_enabled" , "is_global_location_enabled" , " is_per_project_quota_enabled" , "is_resource_change_collection_enabled" , "is_security_command_center_enabled" , "metric_namespace_configs" , "monitored_resource_configs" , "region_filter_configs " , "resource_collection_enabled" })
490562 } else {
491563 return err
492564 }
@@ -496,11 +568,13 @@ func (o *GCPSTSServiceAccountAttributes) UnmarshalJSON(bytes []byte) (err error)
496568 o .CloudRunRevisionFilters = all .CloudRunRevisionFilters
497569 o .HostFilters = all .HostFilters
498570 o .IsCspmEnabled = all .IsCspmEnabled
571+ o .IsGlobalLocationEnabled = all .IsGlobalLocationEnabled
499572 o .IsPerProjectQuotaEnabled = all .IsPerProjectQuotaEnabled
500573 o .IsResourceChangeCollectionEnabled = all .IsResourceChangeCollectionEnabled
501574 o .IsSecurityCommandCenterEnabled = all .IsSecurityCommandCenterEnabled
502575 o .MetricNamespaceConfigs = all .MetricNamespaceConfigs
503576 o .MonitoredResourceConfigs = all .MonitoredResourceConfigs
577+ o .RegionFilterConfigs = all .RegionFilterConfigs
504578 o .ResourceCollectionEnabled = all .ResourceCollectionEnabled
505579
506580 if len (additionalProperties ) > 0 {
0 commit comments