Skip to content

Commit 14df505

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

22 files changed

+68
-35
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-07 14:32:05.490650",
8-
"spec_repo_commit": "ef7c2778"
7+
"regenerated": "2024-10-07 20:44:54.911447",
8+
"spec_repo_commit": "5b4f9ebe"
99
},
1010
"v2": {
1111
"apigentools_version": "1.6.6",
12-
"regenerated": "2024-10-07 14:32:05.504415",
13-
"spec_repo_commit": "ef7c2778"
12+
"regenerated": "2024-10-07 20:44:54.925632",
13+
"spec_repo_commit": "5b4f9ebe"
1414
}
1515
}
1616
}

.generator/schemas/v1/openapi.yaml

Lines changed: 6 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

.generator/schemas/v2/openapi.yaml

Lines changed: 6 additions & 0 deletions
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

examples/v1/gcp-integration/CreateGCPIntegration.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
],
1919
is_cspm_enabled=True,
2020
is_security_command_center_enabled=True,
21+
is_resource_change_collection_enabled=True,
2122
private_key="private_key",
2223
private_key_id="123456789abcdefghi123456789abcdefghijklm",
2324
project_id="datadog-apitest",

examples/v1/gcp-integration/UpdateGCPIntegration.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
host_filters="key:value,filter:example",
1616
is_cspm_enabled=True,
1717
is_security_command_center_enabled=True,
18+
is_resource_change_collection_enabled=True,
1819
private_key="private_key",
1920
private_key_id="123456789abcdefghi123456789abcdefghijklm",
2021
project_id="datadog-apitest",

examples/v1/gcp-integration/UpdateGCPIntegration_3544259255.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
],
1919
is_cspm_enabled=True,
2020
is_security_command_center_enabled=True,
21+
is_resource_change_collection_enabled=True,
2122
private_key="private_key",
2223
private_key_id="123456789abcdefghi123456789abcdefghijklm",
2324
project_id="datadog-apitest",

examples/v2/gcp-integration/CreateGCPSTSAccount_2597004741.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
data=GCPSTSServiceAccountData(
1414
attributes=GCPSTSServiceAccountAttributes(
1515
is_security_command_center_enabled=True,
16+
is_resource_change_collection_enabled=True,
1617
client_email="[email protected]",
1718
host_filters=[],
1819
),

src/datadog_api_client/v1/model/gcp_account.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ def openapi_types(_):
2727
"errors": ([str],),
2828
"host_filters": (str,),
2929
"is_cspm_enabled": (bool,),
30+
"is_resource_change_collection_enabled": (bool,),
3031
"is_security_command_center_enabled": (bool,),
3132
"private_key": (str,),
3233
"private_key_id": (str,),
@@ -47,6 +48,7 @@ def openapi_types(_):
4748
"errors": "errors",
4849
"host_filters": "host_filters",
4950
"is_cspm_enabled": "is_cspm_enabled",
51+
"is_resource_change_collection_enabled": "is_resource_change_collection_enabled",
5052
"is_security_command_center_enabled": "is_security_command_center_enabled",
5153
"private_key": "private_key",
5254
"private_key_id": "private_key_id",
@@ -68,6 +70,7 @@ def __init__(
6870
errors: Union[List[str], UnsetType] = unset,
6971
host_filters: Union[str, UnsetType] = unset,
7072
is_cspm_enabled: Union[bool, UnsetType] = unset,
73+
is_resource_change_collection_enabled: Union[bool, UnsetType] = unset,
7174
is_security_command_center_enabled: Union[bool, UnsetType] = unset,
7275
private_key: Union[str, UnsetType] = unset,
7376
private_key_id: Union[str, UnsetType] = unset,
@@ -113,6 +116,9 @@ def __init__(
113116
:param is_cspm_enabled: 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.
114117
:type is_cspm_enabled: bool, optional
115118
119+
:param is_resource_change_collection_enabled: When enabled, Datadog scans for all resource change data in your Google Cloud environment.
120+
:type is_resource_change_collection_enabled: bool, optional
121+
116122
:param is_security_command_center_enabled: When enabled, Datadog will attempt to collect Security Command Center Findings. Note: This requires additional permissions on the service account.
117123
:type is_security_command_center_enabled: bool, optional
118124
@@ -154,6 +160,8 @@ def __init__(
154160
kwargs["host_filters"] = host_filters
155161
if is_cspm_enabled is not unset:
156162
kwargs["is_cspm_enabled"] = is_cspm_enabled
163+
if is_resource_change_collection_enabled is not unset:
164+
kwargs["is_resource_change_collection_enabled"] = is_resource_change_collection_enabled
157165
if is_security_command_center_enabled is not unset:
158166
kwargs["is_security_command_center_enabled"] = is_security_command_center_enabled
159167
if private_key is not unset:

src/datadog_api_client/v2/model/gcpsts_service_account_attributes.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ def openapi_types(_):
2323
"cloud_run_revision_filters": ([str],),
2424
"host_filters": ([str],),
2525
"is_cspm_enabled": (bool,),
26+
"is_resource_change_collection_enabled": (bool,),
2627
"is_security_command_center_enabled": (bool,),
2728
"resource_collection_enabled": (bool,),
2829
}
@@ -34,6 +35,7 @@ def openapi_types(_):
3435
"cloud_run_revision_filters": "cloud_run_revision_filters",
3536
"host_filters": "host_filters",
3637
"is_cspm_enabled": "is_cspm_enabled",
38+
"is_resource_change_collection_enabled": "is_resource_change_collection_enabled",
3739
"is_security_command_center_enabled": "is_security_command_center_enabled",
3840
"resource_collection_enabled": "resource_collection_enabled",
3941
}
@@ -46,6 +48,7 @@ def __init__(
4648
cloud_run_revision_filters: Union[List[str], UnsetType] = unset,
4749
host_filters: Union[List[str], UnsetType] = unset,
4850
is_cspm_enabled: Union[bool, UnsetType] = unset,
51+
is_resource_change_collection_enabled: Union[bool, UnsetType] = unset,
4952
is_security_command_center_enabled: Union[bool, UnsetType] = unset,
5053
resource_collection_enabled: Union[bool, UnsetType] = unset,
5154
**kwargs,
@@ -72,6 +75,9 @@ def __init__(
7275
:param is_cspm_enabled: 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.
7376
:type is_cspm_enabled: bool, optional
7477
78+
:param is_resource_change_collection_enabled: When enabled, Datadog scans for all resource change data in your Google Cloud environment.
79+
:type is_resource_change_collection_enabled: bool, optional
80+
7581
:param is_security_command_center_enabled: When enabled, Datadog will attempt to collect Security Command Center Findings. Note: This requires additional permissions on the service account.
7682
:type is_security_command_center_enabled: bool, optional
7783
@@ -90,6 +96,8 @@ def __init__(
9096
kwargs["host_filters"] = host_filters
9197
if is_cspm_enabled is not unset:
9298
kwargs["is_cspm_enabled"] = is_cspm_enabled
99+
if is_resource_change_collection_enabled is not unset:
100+
kwargs["is_resource_change_collection_enabled"] = is_resource_change_collection_enabled
93101
if is_security_command_center_enabled is not unset:
94102
kwargs["is_security_command_center_enabled"] = is_security_command_center_enabled
95103
if resource_collection_enabled is not unset:
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
2024-01-31T21:16:03.254Z
1+
2024-10-07T20:24:57.651Z

0 commit comments

Comments
 (0)