-
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 1cfce136 of spec repo
- Loading branch information
ci.datadog-api-spec
committed
Dec 19, 2023
1 parent
289c0a5
commit 52b366c
Showing
15 changed files
with
228 additions
and
31 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 |
---|---|---|
|
@@ -10,7 +10,7 @@ | |
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_id="163662907116366290710", | ||
client_x509_cert_url="https://www.googleapis.com/robot/v1/metadata/x509/$CLIENT_EMAIL", | ||
errors=[ | ||
"*", | ||
|
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_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 |
---|---|---|
|
@@ -10,7 +10,7 @@ | |
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_id="163662907116366290710", | ||
client_x509_cert_url="https://www.googleapis.com/robot/v1/metadata/x509/$CLIENT_EMAIL", | ||
errors=[ | ||
"*", | ||
|
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-19T17:22:57.180Z |
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":"170300657717030065770","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"}' | ||
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":"170300657717030065770","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-19T17:22:58.040Z |
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":"170300657817030065780","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"}' | ||
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":"170300657817030065780","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":"170300657817030065780","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-19T17:22:59.168Z |
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-19T17:22:59.914Z |
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":"170300657917030065790","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"}' | ||
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":"170300657917030065790","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"}' | ||
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":"170300657917030065790","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]", "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": "[email protected]", "client_id": "{{ timestamp("now") }}{{ timestamp("now") }}0", "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"} | ||
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": "[email protected]", "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": "[email protected]", "client_id": "{{ timestamp("now") }}{{ timestamp("now") }}0", "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"} | ||
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -125,6 +125,19 @@ | |
"tag": "Azure Integration", | ||
"operationId": "CreateAzureIntegration" | ||
}, | ||
{ | ||
"parameters": [ | ||
{ | ||
"name": "body", | ||
"origin": "request", | ||
"value": "{\n \"auth_provider_x509_cert_url\": \"https://www.googleapis.com/oauth2/v1/certs\",\n \"auth_uri\": \"https://accounts.google.com/o/oauth2/auth\",\n \"client_email\": \"[email protected]\",\n \"client_id\": \"{{ timestamp(\"now\") }}{{ timestamp(\"now\") }}0\",\n \"client_x509_cert_url\": \"https://www.googleapis.com/robot/v1/metadata/x509/$CLIENT_EMAIL\",\n \"errors\": [\"*\"],\n \"host_filters\": \"key:value,filter:example\",\n \"is_cspm_enabled\": true,\n \"is_security_command_center_enabled\": true,\n \"private_key\": \"private_key\",\n \"private_key_id\": \"123456789abcdefghi123456789abcdefghijklm\",\n \"project_id\": \"datadog-apitest\",\n \"resource_collection_enabled\": true,\n \"token_uri\": \"https://accounts.google.com/o/oauth2/token\",\n \"type\": \"service_account\"\n}" | ||
} | ||
], | ||
"step": "there is a valid \"gcp_account\" in the system", | ||
"key": "gcp_account", | ||
"tag": "GCP Integration", | ||
"operationId": "CreateGCPIntegration" | ||
}, | ||
{ | ||
"parameters": [ | ||
{ | ||
|
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