v1_pagerduty_integration_UpdatePagerDutyIntegrationService/
v1_pagerduty-integration_UpdatePagerDutyIntegrationService.rs

1// Update a single service object returns "OK" response
2use datadog_api_client::datadog;
3use datadog_api_client::datadogV1::api_pager_duty_integration::PagerDutyIntegrationAPI;
4use datadog_api_client::datadogV1::model::PagerDutyServiceKey;
5
6#[tokio::main]
7async fn main() {
8    let body = PagerDutyServiceKey::new("".to_string());
9    let configuration = datadog::Configuration::new();
10    let api = PagerDutyIntegrationAPI::with_config(configuration);
11    let resp = api
12        .update_pager_duty_integration_service("service_name".to_string(), body)
13        .await;
14    if let Ok(value) = resp {
15        println!("{:#?}", value);
16    } else {
17        println!("{:#?}", resp.unwrap_err());
18    }
19}