Skip to content

Commit c5927fc

Browse files
api-clients-generation-pipeline[bot]ci.datadog-api-spec
andauthored
Update GCP API Spec to support is_resource_change_collection_enabled (#2727)
Co-authored-by: ci.datadog-api-spec <[email protected]>
1 parent ffd2e91 commit c5927fc

25 files changed

+434
-99
lines changed

.apigentools-info

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,13 @@
44
"spec_versions": {
55
"v1": {
66
"apigentools_version": "1.6.6",
7-
"regenerated": "2024-10-04 15:31:50.458429",
8-
"spec_repo_commit": "f28ad048"
7+
"regenerated": "2024-10-07 20:44:53.487332",
8+
"spec_repo_commit": "5b4f9ebe"
99
},
1010
"v2": {
1111
"apigentools_version": "1.6.6",
12-
"regenerated": "2024-10-04 15:31:50.473143",
13-
"spec_repo_commit": "f28ad048"
12+
"regenerated": "2024-10-07 20:44:53.506185",
13+
"spec_repo_commit": "5b4f9ebe"
1414
}
1515
}
1616
}

.generator/schemas/v1/openapi.yaml

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3314,6 +3314,12 @@ components:
33143314
to be set to true.'
33153315
example: true
33163316
type: boolean
3317+
is_resource_change_collection_enabled:
3318+
default: false
3319+
description: When enabled, Datadog scans for all resource change data in
3320+
your Google Cloud environment.
3321+
example: true
3322+
type: boolean
33173323
is_security_command_center_enabled:
33183324
default: false
33193325
description: 'When enabled, Datadog will attempt to collect Security Command
@@ -19609,6 +19615,16 @@ components:
1960919615
events over all hours in the current date for the given org.
1961019616
format: int64
1961119617
type: integer
19618+
code_analysis_sa_committers_hwm:
19619+
description: Shows the high-water mark of all Static Analysis committers
19620+
over all hours in the current date for the given org.
19621+
format: int64
19622+
type: integer
19623+
code_analysis_sca_committers_hwm:
19624+
description: Shows the high-water mark of all static Software Composition
19625+
Analysis committers over all hours in the current date for the given org.
19626+
format: int64
19627+
type: integer
1961219628
container_avg:
1961319629
description: Shows the average of all distinct containers over all hours
1961419630
in the current date for all organizations.
@@ -20349,6 +20365,16 @@ components:
2034920365
events over all hours in the current date for the given org.
2035020366
format: int64
2035120367
type: integer
20368+
code_analysis_sa_committers_hwm:
20369+
description: Shows the high-water mark of all Static Analysis committers
20370+
over all hours in the current date for the given org.
20371+
format: int64
20372+
type: integer
20373+
code_analysis_sca_committers_hwm:
20374+
description: Shows the high-water mark of all static Software Composition
20375+
Analysis committers over all hours in the current date for the given org.
20376+
format: int64
20377+
type: integer
2035220378
container_avg:
2035320379
description: Shows the average of all distinct containers over all hours
2035420380
in the current date for the given org.
@@ -21100,6 +21126,16 @@ components:
2110021126
events over all hours in the current month for all organizations.
2110121127
format: int64
2110221128
type: integer
21129+
code_analysis_sa_committers_hwm_sum:
21130+
description: Shows the high-water mark of all Static Analysis committers
21131+
over all hours in the current month for all organizations.
21132+
format: int64
21133+
type: integer
21134+
code_analysis_sca_committers_hwm_sum:
21135+
description: Shows the high-water mark of all static Software Composition
21136+
Analysis committers over all hours in the current month for all organizations.
21137+
format: int64
21138+
type: integer
2110321139
container_avg_sum:
2110421140
description: Shows the average of all distinct containers over all hours
2110521141
in the current month for all organizations.

.generator/schemas/v2/openapi.yaml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9566,6 +9566,12 @@ components:
95669566
product for this service account. Note: This requires resource_collection_enabled
95679567
to be set to true.'
95689568
type: boolean
9569+
is_resource_change_collection_enabled:
9570+
default: false
9571+
description: When enabled, Datadog scans for all resource change data in
9572+
your Google Cloud environment.
9573+
example: true
9574+
type: boolean
95699575
is_security_command_center_enabled:
95709576
default: false
95719577
description: 'When enabled, Datadog will attempt to collect Security Command
@@ -40326,7 +40332,7 @@ paths:
4032640332
`observability_pipelines`,
4032740333

4032840334
`online_archive`, `profiling`, `rum`, `rum_browser_sessions`, `rum_mobile_sessions`,
40329-
`sds`, `snmp`,
40335+
`sds`, `snmp`, `software_delivery`,
4033040336

4033140337
`synthetics_api`, `synthetics_browser`, `synthetics_mobile`, `synthetics_parallel_testing`,
4033240338
`timeseries`, `vuln_management`,

api/datadogV1/model_gcp_account.go

Lines changed: 57 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -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.
5961
func 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.
6973
func 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.
357391
func (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.
617654
func (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

Comments
 (0)