@@ -23,20 +23,26 @@ type GCPAccount struct {
2323 // Should be `https://www.googleapis.com/robot/v1/metadata/x509/$CLIENT_EMAIL`
2424 // where `$CLIENT_EMAIL` is the email found in your JSON service account key.
2525 ClientX509CertUrl * string `json:"client_x509_cert_url,omitempty"`
26- // Limit the Cloud Run revisions that are pulled into Datadog by using tags.
26+ // List of filters to limit the Cloud Run revisions that are pulled into Datadog by using tags.
2727 // Only Cloud Run revision resources that apply to specified filters are imported into Datadog.
28+ // **Note:** This field is deprecated. Instead, use `monitored_resource_configs` with `type=cloud_run_revision`
29+ // Deprecated
2830 CloudRunRevisionFilters []string `json:"cloud_run_revision_filters,omitempty"`
2931 // An array of errors.
3032 Errors []string `json:"errors,omitempty"`
31- // Limit the GCE instances that are pulled into Datadog by using tags.
32- // Only hosts that match one of the defined tags are imported into Datadog.
33+ // A comma-separated list of filters to limit the VM instances that are pulled into Datadog by using tags.
34+ // Only VM instance resources that apply to specified filters are imported into Datadog.
35+ // **Note:** This field is deprecated. Instead, use `monitored_resource_configs` with `type=gce_instance`
36+ // Deprecated
3337 HostFilters * string `json:"host_filters,omitempty"`
3438 // 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.
3539 IsCspmEnabled * bool `json:"is_cspm_enabled,omitempty"`
3640 // When enabled, Datadog scans for all resource change data in your Google Cloud environment.
3741 IsResourceChangeCollectionEnabled * bool `json:"is_resource_change_collection_enabled,omitempty"`
3842 // When enabled, Datadog will attempt to collect Security Command Center Findings. Note: This requires additional permissions on the service account.
3943 IsSecurityCommandCenterEnabled * bool `json:"is_security_command_center_enabled,omitempty"`
44+ // Configurations for GCP monitored resources.
45+ MonitoredResourceConfigs []GCPMonitoredResourceConfig `json:"monitored_resource_configs,omitempty"`
4046 // Your private key name found in your JSON service account key.
4147 PrivateKey * string `json:"private_key,omitempty"`
4248 // Your private key ID found in your JSON service account key.
@@ -248,6 +254,7 @@ func (o *GCPAccount) SetClientX509CertUrl(v string) {
248254}
249255
250256// GetCloudRunRevisionFilters returns the CloudRunRevisionFilters field value if set, zero value otherwise.
257+ // Deprecated
251258func (o * GCPAccount ) GetCloudRunRevisionFilters () []string {
252259 if o == nil || o .CloudRunRevisionFilters == nil {
253260 var ret []string
@@ -258,6 +265,7 @@ func (o *GCPAccount) GetCloudRunRevisionFilters() []string {
258265
259266// GetCloudRunRevisionFiltersOk returns a tuple with the CloudRunRevisionFilters field value if set, nil otherwise
260267// and a boolean to check if the value has been set.
268+ // Deprecated
261269func (o * GCPAccount ) GetCloudRunRevisionFiltersOk () (* []string , bool ) {
262270 if o == nil || o .CloudRunRevisionFilters == nil {
263271 return nil , false
@@ -271,6 +279,7 @@ func (o *GCPAccount) HasCloudRunRevisionFilters() bool {
271279}
272280
273281// SetCloudRunRevisionFilters gets a reference to the given []string and assigns it to the CloudRunRevisionFilters field.
282+ // Deprecated
274283func (o * GCPAccount ) SetCloudRunRevisionFilters (v []string ) {
275284 o .CloudRunRevisionFilters = v
276285}
@@ -304,6 +313,7 @@ func (o *GCPAccount) SetErrors(v []string) {
304313}
305314
306315// GetHostFilters returns the HostFilters field value if set, zero value otherwise.
316+ // Deprecated
307317func (o * GCPAccount ) GetHostFilters () string {
308318 if o == nil || o .HostFilters == nil {
309319 var ret string
@@ -314,6 +324,7 @@ func (o *GCPAccount) GetHostFilters() string {
314324
315325// GetHostFiltersOk returns a tuple with the HostFilters field value if set, nil otherwise
316326// and a boolean to check if the value has been set.
327+ // Deprecated
317328func (o * GCPAccount ) GetHostFiltersOk () (* string , bool ) {
318329 if o == nil || o .HostFilters == nil {
319330 return nil , false
@@ -327,6 +338,7 @@ func (o *GCPAccount) HasHostFilters() bool {
327338}
328339
329340// SetHostFilters gets a reference to the given string and assigns it to the HostFilters field.
341+ // Deprecated
330342func (o * GCPAccount ) SetHostFilters (v string ) {
331343 o .HostFilters = & v
332344}
@@ -415,6 +427,34 @@ func (o *GCPAccount) SetIsSecurityCommandCenterEnabled(v bool) {
415427 o .IsSecurityCommandCenterEnabled = & v
416428}
417429
430+ // GetMonitoredResourceConfigs returns the MonitoredResourceConfigs field value if set, zero value otherwise.
431+ func (o * GCPAccount ) GetMonitoredResourceConfigs () []GCPMonitoredResourceConfig {
432+ if o == nil || o .MonitoredResourceConfigs == nil {
433+ var ret []GCPMonitoredResourceConfig
434+ return ret
435+ }
436+ return o .MonitoredResourceConfigs
437+ }
438+
439+ // GetMonitoredResourceConfigsOk returns a tuple with the MonitoredResourceConfigs field value if set, nil otherwise
440+ // and a boolean to check if the value has been set.
441+ func (o * GCPAccount ) GetMonitoredResourceConfigsOk () (* []GCPMonitoredResourceConfig , bool ) {
442+ if o == nil || o .MonitoredResourceConfigs == nil {
443+ return nil , false
444+ }
445+ return & o .MonitoredResourceConfigs , true
446+ }
447+
448+ // HasMonitoredResourceConfigs returns a boolean if a field has been set.
449+ func (o * GCPAccount ) HasMonitoredResourceConfigs () bool {
450+ return o != nil && o .MonitoredResourceConfigs != nil
451+ }
452+
453+ // SetMonitoredResourceConfigs gets a reference to the given []GCPMonitoredResourceConfig and assigns it to the MonitoredResourceConfigs field.
454+ func (o * GCPAccount ) SetMonitoredResourceConfigs (v []GCPMonitoredResourceConfig ) {
455+ o .MonitoredResourceConfigs = v
456+ }
457+
418458// GetPrivateKey returns the PrivateKey field value if set, zero value otherwise.
419459func (o * GCPAccount ) GetPrivateKey () string {
420460 if o == nil || o .PrivateKey == nil {
@@ -625,6 +665,9 @@ func (o GCPAccount) MarshalJSON() ([]byte, error) {
625665 if o .IsSecurityCommandCenterEnabled != nil {
626666 toSerialize ["is_security_command_center_enabled" ] = o .IsSecurityCommandCenterEnabled
627667 }
668+ if o .MonitoredResourceConfigs != nil {
669+ toSerialize ["monitored_resource_configs" ] = o .MonitoredResourceConfigs
670+ }
628671 if o .PrivateKey != nil {
629672 toSerialize ["private_key" ] = o .PrivateKey
630673 }
@@ -653,31 +696,32 @@ func (o GCPAccount) MarshalJSON() ([]byte, error) {
653696// UnmarshalJSON deserializes the given payload.
654697func (o * GCPAccount ) UnmarshalJSON (bytes []byte ) (err error ) {
655698 all := struct {
656- AuthProviderX509CertUrl * string `json:"auth_provider_x509_cert_url,omitempty"`
657- AuthUri * string `json:"auth_uri,omitempty"`
658- Automute * bool `json:"automute,omitempty"`
659- ClientEmail * string `json:"client_email,omitempty"`
660- ClientId * string `json:"client_id,omitempty"`
661- ClientX509CertUrl * string `json:"client_x509_cert_url,omitempty"`
662- CloudRunRevisionFilters []string `json:"cloud_run_revision_filters,omitempty"`
663- Errors []string `json:"errors,omitempty"`
664- HostFilters * string `json:"host_filters,omitempty"`
665- IsCspmEnabled * bool `json:"is_cspm_enabled,omitempty"`
666- IsResourceChangeCollectionEnabled * bool `json:"is_resource_change_collection_enabled,omitempty"`
667- IsSecurityCommandCenterEnabled * bool `json:"is_security_command_center_enabled,omitempty"`
668- PrivateKey * string `json:"private_key,omitempty"`
669- PrivateKeyId * string `json:"private_key_id,omitempty"`
670- ProjectId * string `json:"project_id,omitempty"`
671- ResourceCollectionEnabled * bool `json:"resource_collection_enabled,omitempty"`
672- TokenUri * string `json:"token_uri,omitempty"`
673- Type * string `json:"type,omitempty"`
699+ AuthProviderX509CertUrl * string `json:"auth_provider_x509_cert_url,omitempty"`
700+ AuthUri * string `json:"auth_uri,omitempty"`
701+ Automute * bool `json:"automute,omitempty"`
702+ ClientEmail * string `json:"client_email,omitempty"`
703+ ClientId * string `json:"client_id,omitempty"`
704+ ClientX509CertUrl * string `json:"client_x509_cert_url,omitempty"`
705+ CloudRunRevisionFilters []string `json:"cloud_run_revision_filters,omitempty"`
706+ Errors []string `json:"errors,omitempty"`
707+ HostFilters * string `json:"host_filters,omitempty"`
708+ IsCspmEnabled * bool `json:"is_cspm_enabled,omitempty"`
709+ IsResourceChangeCollectionEnabled * bool `json:"is_resource_change_collection_enabled,omitempty"`
710+ IsSecurityCommandCenterEnabled * bool `json:"is_security_command_center_enabled,omitempty"`
711+ MonitoredResourceConfigs []GCPMonitoredResourceConfig `json:"monitored_resource_configs,omitempty"`
712+ PrivateKey * string `json:"private_key,omitempty"`
713+ PrivateKeyId * string `json:"private_key_id,omitempty"`
714+ ProjectId * string `json:"project_id,omitempty"`
715+ ResourceCollectionEnabled * bool `json:"resource_collection_enabled,omitempty"`
716+ TokenUri * string `json:"token_uri,omitempty"`
717+ Type * string `json:"type,omitempty"`
674718 }{}
675719 if err = datadog .Unmarshal (bytes , & all ); err != nil {
676720 return datadog .Unmarshal (bytes , & o .UnparsedObject )
677721 }
678722 additionalProperties := make (map [string ]interface {})
679723 if err = datadog .Unmarshal (bytes , & additionalProperties ); err == nil {
680- datadog .DeleteKeys (additionalProperties , & []string {"auth_provider_x509_cert_url" , "auth_uri" , "automute" , "client_email" , "client_id" , "client_x509_cert_url" , "cloud_run_revision_filters" , "errors" , "host_filters" , "is_cspm_enabled" , "is_resource_change_collection_enabled" , "is_security_command_center_enabled" , "private_key" , "private_key_id" , "project_id" , "resource_collection_enabled" , "token_uri" , "type" })
724+ datadog .DeleteKeys (additionalProperties , & []string {"auth_provider_x509_cert_url" , "auth_uri" , "automute" , "client_email" , "client_id" , "client_x509_cert_url" , "cloud_run_revision_filters" , "errors" , "host_filters" , "is_cspm_enabled" , "is_resource_change_collection_enabled" , "is_security_command_center_enabled" , "monitored_resource_configs" , " private_key" , "private_key_id" , "project_id" , "resource_collection_enabled" , "token_uri" , "type" })
681725 } else {
682726 return err
683727 }
@@ -693,6 +737,7 @@ func (o *GCPAccount) UnmarshalJSON(bytes []byte) (err error) {
693737 o .IsCspmEnabled = all .IsCspmEnabled
694738 o .IsResourceChangeCollectionEnabled = all .IsResourceChangeCollectionEnabled
695739 o .IsSecurityCommandCenterEnabled = all .IsSecurityCommandCenterEnabled
740+ o .MonitoredResourceConfigs = all .MonitoredResourceConfigs
696741 o .PrivateKey = all .PrivateKey
697742 o .PrivateKeyId = all .PrivateKeyId
698743 o .ProjectId = all .ProjectId
0 commit comments