@@ -33,6 +33,8 @@ type GCPAccount struct {
3333 HostFilters * string `json:"host_filters,omitempty"`
3434 // 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.
3535 IsCspmEnabled * bool `json:"is_cspm_enabled,omitempty"`
36+ // When enabled, Datadog scans for all resource change data in your Google Cloud environment.
37+ IsResourceChangeCollectionEnabled * bool `json:"is_resource_change_collection_enabled,omitempty"`
3638 // When enabled, Datadog will attempt to collect Security Command Center Findings. Note: This requires additional permissions on the service account.
3739 IsSecurityCommandCenterEnabled * bool `json:"is_security_command_center_enabled,omitempty"`
3840 // Your private key name found in your JSON service account key.
@@ -58,6 +60,8 @@ type GCPAccount struct {
5860// will change when the set of required properties is changed.
5961func NewGCPAccount () * GCPAccount {
6062 this := GCPAccount {}
63+ var isResourceChangeCollectionEnabled bool = false
64+ this .IsResourceChangeCollectionEnabled = & isResourceChangeCollectionEnabled
6165 var isSecurityCommandCenterEnabled bool = false
6266 this .IsSecurityCommandCenterEnabled = & isSecurityCommandCenterEnabled
6367 return & this
@@ -68,6 +72,8 @@ func NewGCPAccount() *GCPAccount {
6872// but it doesn't guarantee that properties required by API are set.
6973func NewGCPAccountWithDefaults () * GCPAccount {
7074 this := GCPAccount {}
75+ var isResourceChangeCollectionEnabled bool = false
76+ this .IsResourceChangeCollectionEnabled = & isResourceChangeCollectionEnabled
7177 var isSecurityCommandCenterEnabled bool = false
7278 this .IsSecurityCommandCenterEnabled = & isSecurityCommandCenterEnabled
7379 return & this
@@ -353,6 +359,34 @@ func (o *GCPAccount) SetIsCspmEnabled(v bool) {
353359 o .IsCspmEnabled = & v
354360}
355361
362+ // GetIsResourceChangeCollectionEnabled returns the IsResourceChangeCollectionEnabled field value if set, zero value otherwise.
363+ func (o * GCPAccount ) GetIsResourceChangeCollectionEnabled () bool {
364+ if o == nil || o .IsResourceChangeCollectionEnabled == nil {
365+ var ret bool
366+ return ret
367+ }
368+ return * o .IsResourceChangeCollectionEnabled
369+ }
370+
371+ // GetIsResourceChangeCollectionEnabledOk returns a tuple with the IsResourceChangeCollectionEnabled field value if set, nil otherwise
372+ // and a boolean to check if the value has been set.
373+ func (o * GCPAccount ) GetIsResourceChangeCollectionEnabledOk () (* bool , bool ) {
374+ if o == nil || o .IsResourceChangeCollectionEnabled == nil {
375+ return nil , false
376+ }
377+ return o .IsResourceChangeCollectionEnabled , true
378+ }
379+
380+ // HasIsResourceChangeCollectionEnabled returns a boolean if a field has been set.
381+ func (o * GCPAccount ) HasIsResourceChangeCollectionEnabled () bool {
382+ return o != nil && o .IsResourceChangeCollectionEnabled != nil
383+ }
384+
385+ // SetIsResourceChangeCollectionEnabled gets a reference to the given bool and assigns it to the IsResourceChangeCollectionEnabled field.
386+ func (o * GCPAccount ) SetIsResourceChangeCollectionEnabled (v bool ) {
387+ o .IsResourceChangeCollectionEnabled = & v
388+ }
389+
356390// GetIsSecurityCommandCenterEnabled returns the IsSecurityCommandCenterEnabled field value if set, zero value otherwise.
357391func (o * GCPAccount ) GetIsSecurityCommandCenterEnabled () bool {
358392 if o == nil || o .IsSecurityCommandCenterEnabled == nil {
@@ -585,6 +619,9 @@ func (o GCPAccount) MarshalJSON() ([]byte, error) {
585619 if o .IsCspmEnabled != nil {
586620 toSerialize ["is_cspm_enabled" ] = o .IsCspmEnabled
587621 }
622+ if o .IsResourceChangeCollectionEnabled != nil {
623+ toSerialize ["is_resource_change_collection_enabled" ] = o .IsResourceChangeCollectionEnabled
624+ }
588625 if o .IsSecurityCommandCenterEnabled != nil {
589626 toSerialize ["is_security_command_center_enabled" ] = o .IsSecurityCommandCenterEnabled
590627 }
@@ -616,30 +653,31 @@ func (o GCPAccount) MarshalJSON() ([]byte, error) {
616653// UnmarshalJSON deserializes the given payload.
617654func (o * GCPAccount ) UnmarshalJSON (bytes []byte ) (err error ) {
618655 all := struct {
619- AuthProviderX509CertUrl * string `json:"auth_provider_x509_cert_url,omitempty"`
620- AuthUri * string `json:"auth_uri,omitempty"`
621- Automute * bool `json:"automute,omitempty"`
622- ClientEmail * string `json:"client_email,omitempty"`
623- ClientId * string `json:"client_id,omitempty"`
624- ClientX509CertUrl * string `json:"client_x509_cert_url,omitempty"`
625- CloudRunRevisionFilters []string `json:"cloud_run_revision_filters,omitempty"`
626- Errors []string `json:"errors,omitempty"`
627- HostFilters * string `json:"host_filters,omitempty"`
628- IsCspmEnabled * bool `json:"is_cspm_enabled,omitempty"`
629- IsSecurityCommandCenterEnabled * bool `json:"is_security_command_center_enabled,omitempty"`
630- PrivateKey * string `json:"private_key,omitempty"`
631- PrivateKeyId * string `json:"private_key_id,omitempty"`
632- ProjectId * string `json:"project_id,omitempty"`
633- ResourceCollectionEnabled * bool `json:"resource_collection_enabled,omitempty"`
634- TokenUri * string `json:"token_uri,omitempty"`
635- Type * string `json:"type,omitempty"`
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"`
636674 }{}
637675 if err = datadog .Unmarshal (bytes , & all ); err != nil {
638676 return datadog .Unmarshal (bytes , & o .UnparsedObject )
639677 }
640678 additionalProperties := make (map [string ]interface {})
641679 if err = datadog .Unmarshal (bytes , & additionalProperties ); err == nil {
642- 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_security_command_center_enabled" , "private_key" , "private_key_id" , "project_id" , "resource_collection_enabled" , "token_uri" , "type" })
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" })
643681 } else {
644682 return err
645683 }
@@ -653,6 +691,7 @@ func (o *GCPAccount) UnmarshalJSON(bytes []byte) (err error) {
653691 o .Errors = all .Errors
654692 o .HostFilters = all .HostFilters
655693 o .IsCspmEnabled = all .IsCspmEnabled
694+ o .IsResourceChangeCollectionEnabled = all .IsResourceChangeCollectionEnabled
656695 o .IsSecurityCommandCenterEnabled = all .IsSecurityCommandCenterEnabled
657696 o .PrivateKey = all .PrivateKey
658697 o .PrivateKeyId = all .PrivateKeyId
0 commit comments