-
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 d3653154 of spec repo
- Loading branch information
ci.datadog-api-spec
committed
Dec 11, 2024
1 parent
eced6dc
commit 51bbcf7
Showing
18 changed files
with
1,489 additions
and
4 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 |
---|---|---|
@@ -0,0 +1,18 @@ | ||
// Get all CSM Agents returns "OK" response | ||
use datadog_api_client::datadog; | ||
use datadog_api_client::datadogV2::api_csm_agents::CSMAgentsAPI; | ||
use datadog_api_client::datadogV2::api_csm_agents::ListAllCSMAgentsOptionalParams; | ||
|
||
#[tokio::main] | ||
async fn main() { | ||
let configuration = datadog::Configuration::new(); | ||
let api = CSMAgentsAPI::with_config(configuration); | ||
let resp = api | ||
.list_all_csm_agents(ListAllCSMAgentsOptionalParams::default()) | ||
.await; | ||
if let Ok(value) = resp { | ||
println!("{:#?}", value); | ||
} else { | ||
println!("{:#?}", resp.unwrap_err()); | ||
} | ||
} |
Oops, something went wrong.