-
Notifications
You must be signed in to change notification settings - Fork 20
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 28008cdb of spec repo
- Loading branch information
ci.datadog-api-spec
committed
Jan 31, 2024
1 parent
2c9610c
commit b257b80
Showing
19 changed files
with
352 additions
and
19 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
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 |
---|---|---|
|
@@ -7016,6 +7016,18 @@ components: | |
description: Your service account email address. | ||
example: [email protected] | ||
type: string | ||
cloud_run_revision_filters: | ||
description: 'List of filters to limit the Cloud Run revisions that are | ||
pulled into Datadog by using tags. | ||
|
||
Only Cloud Run revision resources that apply to specified filters are | ||
imported into Datadog.' | ||
example: | ||
- $KEY:$VALUE | ||
items: | ||
description: Cloud Run Filters | ||
type: string | ||
type: array | ||
host_filters: | ||
description: Your Host Filters. | ||
items: | ||
|
2 changes: 1 addition & 1 deletion
2
cassettes/features/v1/gcp_integration/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 |
---|---|---|
@@ -1 +1 @@ | ||
2023-12-20T13:18:07.717Z | ||
2024-01-31T21:16:03.254Z |
8 changes: 4 additions & 4 deletions
8
cassettes/features/v1/gcp_integration/Create-a-GCP-integration-returns-OK-response.yml
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
1 change: 1 addition & 0 deletions
1
...ntegration/Update-a-GCP-integration-cloud-run-revision-filters-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 @@ | ||
2024-01-31T21:16:03.829Z |
74 changes: 74 additions & 0 deletions
74
...p_integration/Update-a-GCP-integration-cloud-run-revision-filters-returns-OK-response.yml
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
1 change: 1 addition & 0 deletions
1
...r-your-service-account-with-cloud-run-revision-filters-enabled-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 @@ | ||
2024-01-31T21:16:04.924Z |
44 changes: 44 additions & 0 deletions
44
...-for-your-service-account-with-cloud-run-revision-filters-enabled-returns-OK-response.yml
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
1 change: 1 addition & 0 deletions
1
...ion/Update-STS-Service-Account-returns-OK-response-with-cloud-run-revision-filters.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 @@ | ||
2024-01-31T21:16:05.705Z |
68 changes: 68 additions & 0 deletions
68
...ration/Update-STS-Service-Account-returns-OK-response-with-cloud-run-revision-filters.yml
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
25 changes: 25 additions & 0 deletions
25
examples/v1/gcp-integration/UpdateGCPIntegration_3544259255.rb
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,25 @@ | ||
# Update a GCP integration cloud run revision filters returns "OK" response | ||
|
||
require "datadog_api_client" | ||
api_instance = DatadogAPIClient::V1::GCPIntegrationAPI.new | ||
|
||
body = DatadogAPIClient::V1::GCPAccount.new({ | ||
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: "163662907116366290710", | ||
client_x509_cert_url: "https://www.googleapis.com/robot/v1/metadata/x509/$CLIENT_EMAIL", | ||
host_filters: "key:value,filter:example", | ||
cloud_run_revision_filters: [ | ||
"merp:derp", | ||
], | ||
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", | ||
}) | ||
p api_instance.update_gcp_integration(body) |
18 changes: 18 additions & 0 deletions
18
examples/v2/gcp-integration/CreateGCPSTSAccount_194782945.rb
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,18 @@ | ||
# Create a new entry for your service account with cloud run revision filters enabled returns "OK" response | ||
|
||
require "datadog_api_client" | ||
api_instance = DatadogAPIClient::V2::GCPIntegrationAPI.new | ||
|
||
body = DatadogAPIClient::V2::GCPSTSServiceAccountCreateRequest.new({ | ||
data: DatadogAPIClient::V2::GCPSTSServiceAccountData.new({ | ||
attributes: DatadogAPIClient::V2::GCPSTSServiceAccountAttributes.new({ | ||
cloud_run_revision_filters: [ | ||
"meh:bleh", | ||
], | ||
client_email: "[email protected]", | ||
host_filters: [], | ||
}), | ||
type: DatadogAPIClient::V2::GCPServiceAccountType::GCP_SERVICE_ACCOUNT, | ||
}), | ||
}) | ||
p api_instance.create_gcpsts_account(body) |
21 changes: 21 additions & 0 deletions
21
examples/v2/gcp-integration/UpdateGCPSTSAccount_2241994060.rb
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,21 @@ | ||
# Update STS Service Account returns "OK" response with cloud run revision filters | ||
|
||
require "datadog_api_client" | ||
api_instance = DatadogAPIClient::V2::GCPIntegrationAPI.new | ||
|
||
# there is a valid "gcp_sts_account" in the system | ||
GCP_STS_ACCOUNT_DATA_ID = ENV["GCP_STS_ACCOUNT_DATA_ID"] | ||
|
||
body = DatadogAPIClient::V2::GCPSTSServiceAccountUpdateRequest.new({ | ||
data: DatadogAPIClient::V2::GCPSTSServiceAccountUpdateRequestData.new({ | ||
attributes: DatadogAPIClient::V2::GCPSTSServiceAccountAttributes.new({ | ||
client_email: "[email protected]", | ||
cloud_run_revision_filters: [ | ||
"merp:derp", | ||
], | ||
}), | ||
id: GCP_STS_ACCOUNT_DATA_ID, | ||
type: DatadogAPIClient::V2::GCPServiceAccountType::GCP_SERVICE_ACCOUNT, | ||
}), | ||
}) | ||
p api_instance.update_gcpsts_account(GCP_STS_ACCOUNT_DATA_ID, body) |
Oops, something went wrong.