-
Notifications
You must be signed in to change notification settings - Fork 43
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Regenerate client from commit 1e75e401 of spec repo
- Loading branch information
ci.datadog-api-spec
committed
Dec 20, 2023
1 parent
289c0a5
commit 87ff06d
Showing
15 changed files
with
231 additions
and
40 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,12 +9,9 @@ | |
body = GCPAccount( | ||
auth_provider_x509_cert_url="https://www.googleapis.com/oauth2/v1/certs", | ||
auth_uri="https://accounts.google.com/o/oauth2/auth", | ||
client_email="[email protected].com", | ||
client_id="123456712345671234567", | ||
client_email="252bf553ef04b351@example.com", | ||
client_id="163662907116366290710", | ||
client_x509_cert_url="https://www.googleapis.com/robot/v1/metadata/x509/$CLIENT_EMAIL", | ||
errors=[ | ||
"*", | ||
], | ||
host_filters="key:value,filter:example", | ||
is_cspm_enabled=True, | ||
is_security_command_center_enabled=True, | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,23 +7,9 @@ | |
from datadog_api_client.v1.model.gcp_account import GCPAccount | ||
|
||
body = GCPAccount( | ||
auth_provider_x509_cert_url="https://www.googleapis.com/oauth2/v1/certs", | ||
auth_uri="https://accounts.google.com/o/oauth2/auth", | ||
client_email="[email protected]", | ||
client_id="123456712345671234567", | ||
client_x509_cert_url="https://www.googleapis.com/robot/v1/metadata/x509/$CLIENT_EMAIL", | ||
errors=[ | ||
"*", | ||
], | ||
host_filters="key:value,filter:example", | ||
is_cspm_enabled=True, | ||
is_security_command_center_enabled=True, | ||
private_key="private_key", | ||
private_key_id="123456789abcdefghi123456789abcdefghijklm", | ||
client_email="[email protected]", | ||
client_id="163662907116366290710", | ||
project_id="datadog-apitest", | ||
resource_collection_enabled=True, | ||
token_uri="https://accounts.google.com/o/oauth2/token", | ||
type="service_account", | ||
) | ||
|
||
configuration = Configuration() | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,12 +9,9 @@ | |
body = GCPAccount( | ||
auth_provider_x509_cert_url="https://www.googleapis.com/oauth2/v1/certs", | ||
auth_uri="https://accounts.google.com/o/oauth2/auth", | ||
client_email="[email protected].com", | ||
client_id="123456712345671234567", | ||
client_email="252bf553ef04b351@example.com", | ||
client_id="163662907116366290710", | ||
client_x509_cert_url="https://www.googleapis.com/robot/v1/metadata/x509/$CLIENT_EMAIL", | ||
errors=[ | ||
"*", | ||
], | ||
host_filters="key:value,filter:example", | ||
is_cspm_enabled=True, | ||
is_security_command_center_enabled=True, | ||
|
1 change: 1 addition & 0 deletions
1
tests/v1/cassettes/test_scenarios/test_create_a_gcp_integration_returns_ok_response.frozen
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
2023-12-20T13:18:07.717Z |
42 changes: 42 additions & 0 deletions
42
tests/v1/cassettes/test_scenarios/test_create_a_gcp_integration_returns_ok_response.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
interactions: | ||
- request: | ||
body: '{"auth_provider_x509_cert_url":"https://www.googleapis.com/oauth2/v1/certs","auth_uri":"https://accounts.google.com/o/oauth2/auth","client_email":"[email protected]","client_id":"170307828717030782870","client_x509_cert_url":"https://www.googleapis.com/robot/v1/metadata/x509/$CLIENT_EMAIL","host_filters":"key:value,filter:example","is_cspm_enabled":true,"is_security_command_center_enabled":true,"private_key":"private_key","private_key_id":"123456789abcdefghi123456789abcdefghijklm","project_id":"datadog-apitest","resource_collection_enabled":true,"token_uri":"https://accounts.google.com/o/oauth2/token","type":"service_account"}' | ||
headers: | ||
accept: | ||
- application/json | ||
content-type: | ||
- application/json | ||
method: POST | ||
uri: https://api.datadoghq.com/api/v1/integration/gcp | ||
response: | ||
body: | ||
string: '{} | ||
' | ||
headers: | ||
content-type: | ||
- application/json | ||
status: | ||
code: 200 | ||
message: OK | ||
- request: | ||
body: '{"client_email":"[email protected]","client_id":"170307828717030782870","project_id":"datadog-apitest"}' | ||
headers: | ||
accept: | ||
- application/json | ||
content-type: | ||
- application/json | ||
method: DELETE | ||
uri: https://api.datadoghq.com/api/v1/integration/gcp | ||
response: | ||
body: | ||
string: '{} | ||
' | ||
headers: | ||
content-type: | ||
- application/json | ||
status: | ||
code: 200 | ||
message: OK | ||
version: 1 |
1 change: 1 addition & 0 deletions
1
tests/v1/cassettes/test_scenarios/test_delete_a_gcp_integration_returns_ok_response.frozen
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
2023-12-20T13:20:18.421Z |
62 changes: 62 additions & 0 deletions
62
tests/v1/cassettes/test_scenarios/test_delete_a_gcp_integration_returns_ok_response.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,62 @@ | ||
interactions: | ||
- request: | ||
body: '{"auth_provider_x509_cert_url":"https://www.googleapis.com/oauth2/v1/certs","auth_uri":"https://accounts.google.com/o/oauth2/auth","client_email":"[email protected]","client_id":"170307841817030784180","client_x509_cert_url":"https://www.googleapis.com/robot/v1/metadata/x509/$CLIENT_EMAIL","host_filters":"key:value,filter:example","is_cspm_enabled":true,"is_security_command_center_enabled":true,"private_key":"private_key","private_key_id":"123456789abcdefghi123456789abcdefghijklm","project_id":"datadog-apitest","resource_collection_enabled":true,"token_uri":"https://accounts.google.com/o/oauth2/token","type":"service_account"}' | ||
headers: | ||
accept: | ||
- application/json | ||
content-type: | ||
- application/json | ||
method: POST | ||
uri: https://api.datadoghq.com/api/v1/integration/gcp | ||
response: | ||
body: | ||
string: '{} | ||
' | ||
headers: | ||
content-type: | ||
- application/json | ||
status: | ||
code: 200 | ||
message: OK | ||
- request: | ||
body: '{"client_email":"[email protected]","client_id":"170307841817030784180","project_id":"datadog-apitest"}' | ||
headers: | ||
accept: | ||
- application/json | ||
content-type: | ||
- application/json | ||
method: DELETE | ||
uri: https://api.datadoghq.com/api/v1/integration/gcp | ||
response: | ||
body: | ||
string: '{} | ||
' | ||
headers: | ||
content-type: | ||
- application/json | ||
status: | ||
code: 200 | ||
message: OK | ||
- request: | ||
body: '{"client_email":"[email protected]","client_id":"170307841817030784180","project_id":"datadog-apitest"}' | ||
headers: | ||
accept: | ||
- application/json | ||
content-type: | ||
- application/json | ||
method: DELETE | ||
uri: https://api.datadoghq.com/api/v1/integration/gcp | ||
response: | ||
body: | ||
string: '{} | ||
' | ||
headers: | ||
content-type: | ||
- application/json | ||
status: | ||
code: 200 | ||
message: OK | ||
version: 1 |
1 change: 1 addition & 0 deletions
1
tests/v1/cassettes/test_scenarios/test_list_all_gcp_integrations_returns_ok_response.frozen
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
2023-12-20T13:44:06.411Z |
20 changes: 20 additions & 0 deletions
20
tests/v1/cassettes/test_scenarios/test_list_all_gcp_integrations_returns_ok_response.yaml
Large diffs are not rendered by default.
Oops, something went wrong.
1 change: 1 addition & 0 deletions
1
tests/v1/cassettes/test_scenarios/test_update_a_gcp_integration_returns_ok_response.frozen
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
2023-12-20T13:43:40.420Z |
62 changes: 62 additions & 0 deletions
62
tests/v1/cassettes/test_scenarios/test_update_a_gcp_integration_returns_ok_response.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,62 @@ | ||
interactions: | ||
- request: | ||
body: '{"auth_provider_x509_cert_url":"https://www.googleapis.com/oauth2/v1/certs","auth_uri":"https://accounts.google.com/o/oauth2/auth","client_email":"[email protected]","client_id":"170307982017030798200","client_x509_cert_url":"https://www.googleapis.com/robot/v1/metadata/x509/$CLIENT_EMAIL","host_filters":"key:value,filter:example","is_cspm_enabled":true,"is_security_command_center_enabled":true,"private_key":"private_key","private_key_id":"123456789abcdefghi123456789abcdefghijklm","project_id":"datadog-apitest","resource_collection_enabled":true,"token_uri":"https://accounts.google.com/o/oauth2/token","type":"service_account"}' | ||
headers: | ||
accept: | ||
- application/json | ||
content-type: | ||
- application/json | ||
method: POST | ||
uri: https://api.datadoghq.com/api/v1/integration/gcp | ||
response: | ||
body: | ||
string: '{} | ||
' | ||
headers: | ||
content-type: | ||
- application/json | ||
status: | ||
code: 200 | ||
message: OK | ||
- request: | ||
body: '{"auth_provider_x509_cert_url":"https://www.googleapis.com/oauth2/v1/certs","auth_uri":"https://accounts.google.com/o/oauth2/auth","client_email":"[email protected]","client_id":"170307982017030798200","client_x509_cert_url":"https://www.googleapis.com/robot/v1/metadata/x509/$CLIENT_EMAIL","host_filters":"key:value,filter:example","is_cspm_enabled":true,"is_security_command_center_enabled":true,"private_key":"private_key","private_key_id":"123456789abcdefghi123456789abcdefghijklm","project_id":"datadog-apitest","resource_collection_enabled":true,"token_uri":"https://accounts.google.com/o/oauth2/token","type":"service_account"}' | ||
headers: | ||
accept: | ||
- application/json | ||
content-type: | ||
- application/json | ||
method: PUT | ||
uri: https://api.datadoghq.com/api/v1/integration/gcp | ||
response: | ||
body: | ||
string: '{} | ||
' | ||
headers: | ||
content-type: | ||
- application/json | ||
status: | ||
code: 200 | ||
message: OK | ||
- request: | ||
body: '{"client_email":"[email protected]","client_id":"170307982017030798200","project_id":"datadog-apitest"}' | ||
headers: | ||
accept: | ||
- application/json | ||
content-type: | ||
- application/json | ||
method: DELETE | ||
uri: https://api.datadoghq.com/api/v1/integration/gcp | ||
response: | ||
body: | ||
string: '{} | ||
' | ||
headers: | ||
content-type: | ||
- application/json | ||
status: | ||
code: 200 | ||
message: OK | ||
version: 1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -17,10 +17,10 @@ Feature: GCP Integration | |
When the request is sent | ||
Then the response status is 400 Bad Request | ||
|
||
@generated @skip @team:DataDog/gcp-integrations | ||
@team:DataDog/gcp-integrations | ||
Scenario: Create a GCP integration returns "OK" response | ||
Given new "CreateGCPIntegration" request | ||
And body with value {"auth_provider_x509_cert_url": "https://www.googleapis.com/oauth2/v1/certs", "auth_uri": "https://accounts.google.com/o/oauth2/auth", "client_email": "[email protected].com", "client_id": "123456712345671234567", "client_x509_cert_url": "https://www.googleapis.com/robot/v1/metadata/x509/$CLIENT_EMAIL", "errors": ["*"], "host_filters": "key:value,filter:example", "is_cspm_enabled": true, "is_security_command_center_enabled": true, "private_key": "private_key", "private_key_id": "123456789abcdefghi123456789abcdefghijklm", "project_id": "datadog-apitest", "resource_collection_enabled": true, "token_uri": "https://accounts.google.com/o/oauth2/token", "type": "service_account"} | ||
And body with value {"auth_provider_x509_cert_url": "https://www.googleapis.com/oauth2/v1/certs", "auth_uri": "https://accounts.google.com/o/oauth2/auth", "client_email": "{{unique_hash}}@example.com", "client_id": "{{ timestamp("now") }}{{ timestamp("now") }}0", "client_x509_cert_url": "https://www.googleapis.com/robot/v1/metadata/x509/$CLIENT_EMAIL", "host_filters": "key:value,filter:example", "is_cspm_enabled": true, "is_security_command_center_enabled": true, "private_key": "private_key", "private_key_id": "123456789abcdefghi123456789abcdefghijklm", "project_id": "datadog-apitest", "resource_collection_enabled": true, "token_uri": "https://accounts.google.com/o/oauth2/token", "type": "service_account"} | ||
When the request is sent | ||
Then the response status is 200 OK | ||
|
||
|
@@ -31,10 +31,11 @@ Feature: GCP Integration | |
When the request is sent | ||
Then the response status is 400 Bad Request | ||
|
||
@generated @skip @team:DataDog/gcp-integrations | ||
@team:DataDog/gcp-integrations | ||
Scenario: Delete a GCP integration returns "OK" response | ||
Given new "DeleteGCPIntegration" request | ||
And body with value {"auth_provider_x509_cert_url": "https://www.googleapis.com/oauth2/v1/certs", "auth_uri": "https://accounts.google.com/o/oauth2/auth", "client_email": "[email protected]", "client_id": "123456712345671234567", "client_x509_cert_url": "https://www.googleapis.com/robot/v1/metadata/x509/$CLIENT_EMAIL", "errors": ["*"], "host_filters": "key:value,filter:example", "is_cspm_enabled": true, "is_security_command_center_enabled": true, "private_key": "private_key", "private_key_id": "123456789abcdefghi123456789abcdefghijklm", "project_id": "datadog-apitest", "resource_collection_enabled": true, "token_uri": "https://accounts.google.com/o/oauth2/token", "type": "service_account"} | ||
Given there is a valid "gcp_account" in the system | ||
And new "DeleteGCPIntegration" request | ||
And body with value {"client_email": "{{unique_hash}}@example.com", "client_id": "{{ timestamp("now") }}{{ timestamp("now") }}0", "project_id": "datadog-apitest"} | ||
When the request is sent | ||
Then the response status is 200 OK | ||
|
||
|
@@ -44,7 +45,7 @@ Feature: GCP Integration | |
When the request is sent | ||
Then the response status is 400 Bad Request | ||
|
||
@generated @skip @team:DataDog/gcp-integrations | ||
@team:DataDog/gcp-integrations | ||
Scenario: List all GCP integrations returns "OK" response | ||
Given new "ListGCPIntegration" request | ||
When the request is sent | ||
|
@@ -57,9 +58,10 @@ Feature: GCP Integration | |
When the request is sent | ||
Then the response status is 400 Bad Request | ||
|
||
@generated @skip @team:DataDog/gcp-integrations | ||
@team:DataDog/gcp-integrations | ||
Scenario: Update a GCP integration returns "OK" response | ||
Given new "UpdateGCPIntegration" request | ||
And body with value {"auth_provider_x509_cert_url": "https://www.googleapis.com/oauth2/v1/certs", "auth_uri": "https://accounts.google.com/o/oauth2/auth", "client_email": "[email protected]", "client_id": "123456712345671234567", "client_x509_cert_url": "https://www.googleapis.com/robot/v1/metadata/x509/$CLIENT_EMAIL", "errors": ["*"], "host_filters": "key:value,filter:example", "is_cspm_enabled": true, "is_security_command_center_enabled": true, "private_key": "private_key", "private_key_id": "123456789abcdefghi123456789abcdefghijklm", "project_id": "datadog-apitest", "resource_collection_enabled": true, "token_uri": "https://accounts.google.com/o/oauth2/token", "type": "service_account"} | ||
Given there is a valid "gcp_account" in the system | ||
And new "UpdateGCPIntegration" request | ||
And body with value {"auth_provider_x509_cert_url": "https://www.googleapis.com/oauth2/v1/certs", "auth_uri": "https://accounts.google.com/o/oauth2/auth", "client_email": "{{unique_hash}}@example.com", "client_id": "{{ timestamp("now") }}{{ timestamp("now") }}0", "client_x509_cert_url": "https://www.googleapis.com/robot/v1/metadata/x509/$CLIENT_EMAIL", "host_filters": "key:value,filter:example", "is_cspm_enabled": true, "is_security_command_center_enabled": true, "private_key": "private_key", "private_key_id": "123456789abcdefghi123456789abcdefghijklm", "project_id": "datadog-apitest", "resource_collection_enabled": true, "token_uri": "https://accounts.google.com/o/oauth2/token", "type": "service_account"} | ||
When the request is sent | ||
Then the response status is 200 OK |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters