Skip to content

Commit 42b4a37

Browse files
api-clients-generation-pipeline[bot]ci.datadog-api-spec
andauthored
[gcp-integrations] Remove defaults for cspm and resource_collection fields (#1814)
Co-authored-by: ci.datadog-api-spec <[email protected]> Co-authored-by: api-clients-generation-pipeline[bot] <54105614+api-clients-generation-pipeline[bot]@users.noreply.github.com>
1 parent 5e5011d commit 42b4a37

File tree

4 files changed

+8
-11
lines changed

4 files changed

+8
-11
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-01-03 09:19:55.454928",
8-
"spec_repo_commit": "9fcd8e1e"
7+
"regenerated": "2024-01-03 15:14:15.559193",
8+
"spec_repo_commit": "9c078a68"
99
},
1010
"v2": {
1111
"apigentools_version": "1.6.6",
12-
"regenerated": "2024-01-03 09:19:55.471723",
13-
"spec_repo_commit": "9fcd8e1e"
12+
"regenerated": "2024-01-03 15:14:15.576525",
13+
"spec_repo_commit": "9c078a68"
1414
}
1515
}
1616
}

.generator/schemas/v1/openapi.yaml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3211,7 +3211,6 @@ components:
32113211
example: key:value,filter:example
32123212
type: string
32133213
is_cspm_enabled:
3214-
default: false
32153214
description: 'When enabled, Datadog will activate the Cloud Security Monitoring
32163215
product for this service account. Note: This requires resource_collection_enabled
32173216
to be set to true.'
@@ -3238,7 +3237,6 @@ components:
32383237
example: datadog-apitest
32393238
type: string
32403239
resource_collection_enabled:
3241-
default: false
32423240
description: When enabled, Datadog scans for all resources in your GCP environment.
32433241
example: true
32443242
type: boolean

.generator/schemas/v2/openapi.yaml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6944,7 +6944,6 @@ components:
69446944
example: true
69456945
type: boolean
69466946
resource_collection_enabled:
6947-
default: false
69486947
description: When enabled, Datadog scans for all resources in your GCP environment.
69496948
type: boolean
69506949
type: object

tests/v2/features/gcp_integration.feature

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -34,14 +34,14 @@ Feature: GCP Integration
3434
@generated @skip @team:DataDog/gcp-integrations
3535
Scenario: Create a new entry for your service account returns "Bad Request" response
3636
Given new "CreateGCPSTSAccount" request
37-
And body with value {"data": {"attributes": {"account_tags": [], "client_email": "[email protected]", "host_filters": [], "is_security_command_center_enabled": true, "resource_collection_enabled": false}, "type": "gcp_service_account"}}
37+
And body with value {"data": {"attributes": {"account_tags": [], "client_email": "[email protected]", "host_filters": [], "is_security_command_center_enabled": true}, "type": "gcp_service_account"}}
3838
When the request is sent
3939
Then the response status is 400 Bad Request
4040

4141
@generated @skip @team:DataDog/gcp-integrations
4242
Scenario: Create a new entry for your service account returns "Conflict" response
4343
Given new "CreateGCPSTSAccount" request
44-
And body with value {"data": {"attributes": {"account_tags": [], "client_email": "[email protected]", "host_filters": [], "is_security_command_center_enabled": true, "resource_collection_enabled": false}, "type": "gcp_service_account"}}
44+
And body with value {"data": {"attributes": {"account_tags": [], "client_email": "[email protected]", "host_filters": [], "is_security_command_center_enabled": true}, "type": "gcp_service_account"}}
4545
When the request is sent
4646
Then the response status is 409 Conflict
4747

@@ -140,15 +140,15 @@ Feature: GCP Integration
140140
Scenario: Update STS Service Account returns "Bad Request" response
141141
Given new "UpdateGCPSTSAccount" request
142142
And request contains "account_id" parameter from "REPLACE.ME"
143-
And body with value {"data": {"attributes": {"account_tags": [], "client_email": "[email protected]", "host_filters": [], "is_security_command_center_enabled": true, "resource_collection_enabled": false}, "id": "d291291f-12c2-22g4-j290-123456678897", "type": "gcp_service_account"}}
143+
And body with value {"data": {"attributes": {"account_tags": [], "client_email": "[email protected]", "host_filters": [], "is_security_command_center_enabled": true}, "id": "d291291f-12c2-22g4-j290-123456678897", "type": "gcp_service_account"}}
144144
When the request is sent
145145
Then the response status is 400 Bad Request
146146

147147
@generated @skip @team:DataDog/gcp-integrations
148148
Scenario: Update STS Service Account returns "Not Found" response
149149
Given new "UpdateGCPSTSAccount" request
150150
And request contains "account_id" parameter from "REPLACE.ME"
151-
And body with value {"data": {"attributes": {"account_tags": [], "client_email": "[email protected]", "host_filters": [], "is_security_command_center_enabled": true, "resource_collection_enabled": false}, "id": "d291291f-12c2-22g4-j290-123456678897", "type": "gcp_service_account"}}
151+
And body with value {"data": {"attributes": {"account_tags": [], "client_email": "[email protected]", "host_filters": [], "is_security_command_center_enabled": true}, "id": "d291291f-12c2-22g4-j290-123456678897", "type": "gcp_service_account"}}
152152
When the request is sent
153153
Then the response status is 404 Not Found
154154

0 commit comments

Comments
 (0)