-
Notifications
You must be signed in to change notification settings - Fork 0
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 04811622 of spec repo
- Loading branch information
ci.datadog-api-spec
committed
Nov 19, 2024
1 parent
018c9f3
commit f65377d
Showing
23 changed files
with
1,226 additions
and
524 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 |
---|---|---|
|
@@ -8,6 +8,7 @@ use datadog_api_client::datadogV2::model::CIAppCreatePipelineEventRequestAttribu | |
use datadog_api_client::datadogV2::model::CIAppCreatePipelineEventRequestData; | ||
use datadog_api_client::datadogV2::model::CIAppCreatePipelineEventRequestDataType; | ||
use datadog_api_client::datadogV2::model::CIAppGitInfo; | ||
use datadog_api_client::datadogV2::model::CIAppPipelineEventFinishedPipeline; | ||
use datadog_api_client::datadogV2::model::CIAppPipelineEventPipeline; | ||
use datadog_api_client::datadogV2::model::CIAppPipelineEventPipelineLevel; | ||
use datadog_api_client::datadogV2::model::CIAppPipelineEventPipelineStatus; | ||
|
@@ -19,26 +20,28 @@ async fn main() { | |
.attributes(CIAppCreatePipelineEventRequestAttributes::new( | ||
CIAppCreatePipelineEventRequestAttributesResource::CIAppPipelineEventPipeline( | ||
Box::new( | ||
CIAppPipelineEventPipeline::new( | ||
DateTime::parse_from_rfc3339("2021-11-11T11:10:41+00:00") | ||
.expect("Failed to parse datetime") | ||
.with_timezone(&Utc), | ||
CIAppPipelineEventPipelineLevel::PIPELINE, | ||
"Deploy to AWS".to_string(), | ||
false, | ||
DateTime::parse_from_rfc3339("2021-11-11T11:09:11+00:00") | ||
.expect("Failed to parse datetime") | ||
.with_timezone(&Utc), | ||
CIAppPipelineEventPipelineStatus::SUCCESS, | ||
"3eacb6f3-ff04-4e10-8a9c-46e6d054024a".to_string(), | ||
"https://my-ci-provider.example/pipelines/my-pipeline/run/1" | ||
.to_string(), | ||
) | ||
.git(Some(CIAppGitInfo::new( | ||
"[email protected]".to_string(), | ||
"https://github.com/DataDog/datadog-agent".to_string(), | ||
"7f263865994b76066c4612fd1965215e7dcb4cd2".to_string(), | ||
))), | ||
CIAppPipelineEventPipeline::CIAppPipelineEventFinishedPipeline(Box::new( | ||
CIAppPipelineEventFinishedPipeline::new( | ||
DateTime::parse_from_rfc3339("2021-11-11T11:10:41+00:00") | ||
.expect("Failed to parse datetime") | ||
.with_timezone(&Utc), | ||
CIAppPipelineEventPipelineLevel::PIPELINE, | ||
"Deploy to AWS".to_string(), | ||
false, | ||
DateTime::parse_from_rfc3339("2021-11-11T11:09:11+00:00") | ||
.expect("Failed to parse datetime") | ||
.with_timezone(&Utc), | ||
CIAppPipelineEventPipelineStatus::SUCCESS, | ||
"3eacb6f3-ff04-4e10-8a9c-46e6d054024a".to_string(), | ||
"https://my-ci-provider.example/pipelines/my-pipeline/run/1" | ||
.to_string(), | ||
) | ||
.git(Some(CIAppGitInfo::new( | ||
"[email protected]".to_string(), | ||
"https://github.com/DataDog/datadog-agent".to_string(), | ||
"7f263865994b76066c4612fd1965215e7dcb4cd2".to_string(), | ||
))), | ||
)), | ||
), | ||
), | ||
)) | ||
|
Oops, something went wrong.