pub struct MicrosoftTeamsIntegrationAPI { /* private fields */ }Expand description
Configure your Datadog Microsoft Teams integration directly through the Datadog API. Note: These endpoints do not support legacy connector handles.
Implementations§
Source§impl MicrosoftTeamsIntegrationAPI
 
impl MicrosoftTeamsIntegrationAPI
pub fn new() -> Self
Sourcepub fn with_config(config: Configuration) -> Self
 
pub fn with_config(config: Configuration) -> Self
Examples found in repository?
More examples
6async fn main() {
7    let configuration = datadog::Configuration::new();
8    let api = MicrosoftTeamsIntegrationAPI::with_config(configuration);
9    let resp = api
10        .delete_tenant_based_handle("handle_id".to_string())
11        .await;
12    if let Ok(value) = resp {
13        println!("{:#?}", value);
14    } else {
15        println!("{:#?}", resp.unwrap_err());
16    }
17}6async fn main() {
7    let configuration = datadog::Configuration::new();
8    let api = MicrosoftTeamsIntegrationAPI::with_config(configuration);
9    let resp = api
10        .get_workflows_webhook_handle("handle_id".to_string())
11        .await;
12    if let Ok(value) = resp {
13        println!("{:#?}", value);
14    } else {
15        println!("{:#?}", resp.unwrap_err());
16    }
17}6async fn main() {
7    let configuration = datadog::Configuration::new();
8    let api = MicrosoftTeamsIntegrationAPI::with_config(configuration);
9    let resp = api
10        .delete_workflows_webhook_handle("handle_id".to_string())
11        .await;
12    if let Ok(value) = resp {
13        println!("{:#?}", value);
14    } else {
15        println!("{:#?}", resp.unwrap_err());
16    }
17}7async fn main() {
8    let configuration = datadog::Configuration::new();
9    let api = MicrosoftTeamsIntegrationAPI::with_config(configuration);
10    let resp = api
11        .list_tenant_based_handles(ListTenantBasedHandlesOptionalParams::default())
12        .await;
13    if let Ok(value) = resp {
14        println!("{:#?}", value);
15    } else {
16        println!("{:#?}", resp.unwrap_err());
17    }
18}7async fn main() {
8    let configuration = datadog::Configuration::new();
9    let api = MicrosoftTeamsIntegrationAPI::with_config(configuration);
10    let resp = api
11        .list_tenant_based_handles(ListTenantBasedHandlesOptionalParams::default())
12        .await;
13    if let Ok(value) = resp {
14        println!("{:#?}", value);
15    } else {
16        println!("{:#?}", resp.unwrap_err());
17    }
18}- examples/v2_microsoft-teams-integration_ListWorkflowsWebhookHandles.rs
 - examples/v2_microsoft-teams-integration_ListWorkflowsWebhookHandles_620762083.rs
 - examples/v2_microsoft-teams-integration_GetChannelByName.rs
 - examples/v2_microsoft-teams-integration_GetTenantBasedHandle_2883785101.rs
 - examples/v2_microsoft-teams-integration_DeleteTenantBasedHandle_377884154.rs
 - examples/v2_microsoft-teams-integration_GetWorkflowsWebhookHandle_3421443805.rs
 - examples/v2_microsoft-teams-integration_DeleteWorkflowsWebhookHandle_107549514.rs
 - examples/v2_microsoft-teams-integration_CreateWorkflowsWebhookHandle.rs
 - examples/v2_microsoft-teams-integration_UpdateWorkflowsWebhookHandle.rs
 - examples/v2_microsoft-teams-integration_CreateWorkflowsWebhookHandle_1716851881.rs
 - examples/v2_microsoft-teams-integration_CreateTenantBasedHandle.rs
 - examples/v2_microsoft-teams-integration_UpdateTenantBasedHandle_419892746.rs
 - examples/v2_microsoft-teams-integration_CreateTenantBasedHandle_1540689753.rs
 - examples/v2_microsoft-teams-integration_UpdateTenantBasedHandle.rs
 - examples/v2_microsoft-teams-integration_UpdateWorkflowsWebhookHandle_163189594.rs
 
pub fn with_client_and_config( config: Configuration, client: ClientWithMiddleware, ) -> Self
Sourcepub async fn create_tenant_based_handle(
    &self,
    body: MicrosoftTeamsCreateTenantBasedHandleRequest,
) -> Result<MicrosoftTeamsTenantBasedHandleResponse, Error<CreateTenantBasedHandleError>>
 
pub async fn create_tenant_based_handle( &self, body: MicrosoftTeamsCreateTenantBasedHandleRequest, ) -> Result<MicrosoftTeamsTenantBasedHandleResponse, Error<CreateTenantBasedHandleError>>
Create a tenant-based handle in the Datadog Microsoft Teams integration.
Examples found in repository?
10async fn main() {
11    let body = MicrosoftTeamsCreateTenantBasedHandleRequest::new(
12        MicrosoftTeamsTenantBasedHandleRequestData::new(
13            MicrosoftTeamsTenantBasedHandleRequestAttributes::new(
14                "fake-channel-id".to_string(),
15                "fake-handle-name".to_string(),
16                "00000000-0000-0000-0000-000000000000".to_string(),
17                "00000000-0000-0000-0000-000000000001".to_string(),
18            ),
19            MicrosoftTeamsTenantBasedHandleType::TENANT_BASED_HANDLE,
20        ),
21    );
22    let configuration = datadog::Configuration::new();
23    let api = MicrosoftTeamsIntegrationAPI::with_config(configuration);
24    let resp = api.create_tenant_based_handle(body).await;
25    if let Ok(value) = resp {
26        println!("{:#?}", value);
27    } else {
28        println!("{:#?}", resp.unwrap_err());
29    }
30}More examples
10async fn main() {
11    let body = MicrosoftTeamsCreateTenantBasedHandleRequest::new(
12        MicrosoftTeamsTenantBasedHandleRequestData::new(
13            MicrosoftTeamsTenantBasedHandleRequestAttributes::new(
14                "19:iD_D2xy_sAa-JV851JJYwIa6mlW9F9Nxm3SLyZq68qY1@thread.tacv2".to_string(),
15                "Example-Microsoft-Teams-Integration".to_string(),
16                "e5f50a58-c929-4fb3-8866-e2cd836de3c2".to_string(),
17                "4d3bac44-0230-4732-9e70-cc00736f0a97".to_string(),
18            ),
19            MicrosoftTeamsTenantBasedHandleType::TENANT_BASED_HANDLE,
20        ),
21    );
22    let configuration = datadog::Configuration::new();
23    let api = MicrosoftTeamsIntegrationAPI::with_config(configuration);
24    let resp = api.create_tenant_based_handle(body).await;
25    if let Ok(value) = resp {
26        println!("{:#?}", value);
27    } else {
28        println!("{:#?}", resp.unwrap_err());
29    }
30}Sourcepub async fn create_tenant_based_handle_with_http_info(
    &self,
    body: MicrosoftTeamsCreateTenantBasedHandleRequest,
) -> Result<ResponseContent<MicrosoftTeamsTenantBasedHandleResponse>, Error<CreateTenantBasedHandleError>>
 
pub async fn create_tenant_based_handle_with_http_info( &self, body: MicrosoftTeamsCreateTenantBasedHandleRequest, ) -> Result<ResponseContent<MicrosoftTeamsTenantBasedHandleResponse>, Error<CreateTenantBasedHandleError>>
Create a tenant-based handle in the Datadog Microsoft Teams integration.
Sourcepub async fn create_workflows_webhook_handle(
    &self,
    body: MicrosoftTeamsCreateWorkflowsWebhookHandleRequest,
) -> Result<MicrosoftTeamsWorkflowsWebhookHandleResponse, Error<CreateWorkflowsWebhookHandleError>>
 
pub async fn create_workflows_webhook_handle( &self, body: MicrosoftTeamsCreateWorkflowsWebhookHandleRequest, ) -> Result<MicrosoftTeamsWorkflowsWebhookHandleResponse, Error<CreateWorkflowsWebhookHandleError>>
Create a Workflows webhook handle in the Datadog Microsoft Teams integration.
Examples found in repository?
10async fn main() {
11    let body = MicrosoftTeamsCreateWorkflowsWebhookHandleRequest::new(
12        MicrosoftTeamsWorkflowsWebhookHandleRequestData::new(
13            MicrosoftTeamsWorkflowsWebhookHandleRequestAttributes::new(
14                "fake-handle-name".to_string(),
15                "https://fake.url.com".to_string(),
16            ),
17            MicrosoftTeamsWorkflowsWebhookHandleType::WORKFLOWS_WEBHOOK_HANDLE,
18        ),
19    );
20    let configuration = datadog::Configuration::new();
21    let api = MicrosoftTeamsIntegrationAPI::with_config(configuration);
22    let resp = api.create_workflows_webhook_handle(body).await;
23    if let Ok(value) = resp {
24        println!("{:#?}", value);
25    } else {
26        println!("{:#?}", resp.unwrap_err());
27    }
28}More examples
10async fn main() {
11    let body = MicrosoftTeamsCreateWorkflowsWebhookHandleRequest::new(
12        MicrosoftTeamsWorkflowsWebhookHandleRequestData::new(
13            MicrosoftTeamsWorkflowsWebhookHandleRequestAttributes::new(
14                "Example-Microsoft-Teams-Integration".to_string(),
15                "https://example.logic.azure.com/workflows/123".to_string(),
16            ),
17            MicrosoftTeamsWorkflowsWebhookHandleType::WORKFLOWS_WEBHOOK_HANDLE,
18        ),
19    );
20    let configuration = datadog::Configuration::new();
21    let api = MicrosoftTeamsIntegrationAPI::with_config(configuration);
22    let resp = api.create_workflows_webhook_handle(body).await;
23    if let Ok(value) = resp {
24        println!("{:#?}", value);
25    } else {
26        println!("{:#?}", resp.unwrap_err());
27    }
28}Sourcepub async fn create_workflows_webhook_handle_with_http_info(
    &self,
    body: MicrosoftTeamsCreateWorkflowsWebhookHandleRequest,
) -> Result<ResponseContent<MicrosoftTeamsWorkflowsWebhookHandleResponse>, Error<CreateWorkflowsWebhookHandleError>>
 
pub async fn create_workflows_webhook_handle_with_http_info( &self, body: MicrosoftTeamsCreateWorkflowsWebhookHandleRequest, ) -> Result<ResponseContent<MicrosoftTeamsWorkflowsWebhookHandleResponse>, Error<CreateWorkflowsWebhookHandleError>>
Create a Workflows webhook handle in the Datadog Microsoft Teams integration.
Sourcepub async fn delete_tenant_based_handle(
    &self,
    handle_id: String,
) -> Result<(), Error<DeleteTenantBasedHandleError>>
 
pub async fn delete_tenant_based_handle( &self, handle_id: String, ) -> Result<(), Error<DeleteTenantBasedHandleError>>
Delete a tenant-based handle from the Datadog Microsoft Teams integration.
Examples found in repository?
6async fn main() {
7    let configuration = datadog::Configuration::new();
8    let api = MicrosoftTeamsIntegrationAPI::with_config(configuration);
9    let resp = api
10        .delete_tenant_based_handle("handle_id".to_string())
11        .await;
12    if let Ok(value) = resp {
13        println!("{:#?}", value);
14    } else {
15        println!("{:#?}", resp.unwrap_err());
16    }
17}More examples
6async fn main() {
7    // there is a valid "tenant_based_handle" in the system
8    let tenant_based_handle_data_id = std::env::var("TENANT_BASED_HANDLE_DATA_ID").unwrap();
9    let configuration = datadog::Configuration::new();
10    let api = MicrosoftTeamsIntegrationAPI::with_config(configuration);
11    let resp = api
12        .delete_tenant_based_handle(tenant_based_handle_data_id.clone())
13        .await;
14    if let Ok(value) = resp {
15        println!("{:#?}", value);
16    } else {
17        println!("{:#?}", resp.unwrap_err());
18    }
19}Sourcepub async fn delete_tenant_based_handle_with_http_info(
    &self,
    handle_id: String,
) -> Result<ResponseContent<()>, Error<DeleteTenantBasedHandleError>>
 
pub async fn delete_tenant_based_handle_with_http_info( &self, handle_id: String, ) -> Result<ResponseContent<()>, Error<DeleteTenantBasedHandleError>>
Delete a tenant-based handle from the Datadog Microsoft Teams integration.
Sourcepub async fn delete_workflows_webhook_handle(
    &self,
    handle_id: String,
) -> Result<(), Error<DeleteWorkflowsWebhookHandleError>>
 
pub async fn delete_workflows_webhook_handle( &self, handle_id: String, ) -> Result<(), Error<DeleteWorkflowsWebhookHandleError>>
Delete a Workflows webhook handle from the Datadog Microsoft Teams integration.
Examples found in repository?
6async fn main() {
7    let configuration = datadog::Configuration::new();
8    let api = MicrosoftTeamsIntegrationAPI::with_config(configuration);
9    let resp = api
10        .delete_workflows_webhook_handle("handle_id".to_string())
11        .await;
12    if let Ok(value) = resp {
13        println!("{:#?}", value);
14    } else {
15        println!("{:#?}", resp.unwrap_err());
16    }
17}More examples
6async fn main() {
7    // there is a valid "workflows_webhook_handle" in the system
8    let workflows_webhook_handle_data_id =
9        std::env::var("WORKFLOWS_WEBHOOK_HANDLE_DATA_ID").unwrap();
10    let configuration = datadog::Configuration::new();
11    let api = MicrosoftTeamsIntegrationAPI::with_config(configuration);
12    let resp = api
13        .delete_workflows_webhook_handle(workflows_webhook_handle_data_id.clone())
14        .await;
15    if let Ok(value) = resp {
16        println!("{:#?}", value);
17    } else {
18        println!("{:#?}", resp.unwrap_err());
19    }
20}Sourcepub async fn delete_workflows_webhook_handle_with_http_info(
    &self,
    handle_id: String,
) -> Result<ResponseContent<()>, Error<DeleteWorkflowsWebhookHandleError>>
 
pub async fn delete_workflows_webhook_handle_with_http_info( &self, handle_id: String, ) -> Result<ResponseContent<()>, Error<DeleteWorkflowsWebhookHandleError>>
Delete a Workflows webhook handle from the Datadog Microsoft Teams integration.
Sourcepub async fn get_channel_by_name(
    &self,
    tenant_name: String,
    team_name: String,
    channel_name: String,
) -> Result<MicrosoftTeamsGetChannelByNameResponse, Error<GetChannelByNameError>>
 
pub async fn get_channel_by_name( &self, tenant_name: String, team_name: String, channel_name: String, ) -> Result<MicrosoftTeamsGetChannelByNameResponse, Error<GetChannelByNameError>>
Get the tenant, team, and channel ID of a channel in the Datadog Microsoft Teams integration.
Examples found in repository?
6async fn main() {
7    let configuration = datadog::Configuration::new();
8    let api = MicrosoftTeamsIntegrationAPI::with_config(configuration);
9    let resp = api
10        .get_channel_by_name(
11            "tenant_name".to_string(),
12            "team_name".to_string(),
13            "channel_name".to_string(),
14        )
15        .await;
16    if let Ok(value) = resp {
17        println!("{:#?}", value);
18    } else {
19        println!("{:#?}", resp.unwrap_err());
20    }
21}Sourcepub async fn get_channel_by_name_with_http_info(
    &self,
    tenant_name: String,
    team_name: String,
    channel_name: String,
) -> Result<ResponseContent<MicrosoftTeamsGetChannelByNameResponse>, Error<GetChannelByNameError>>
 
pub async fn get_channel_by_name_with_http_info( &self, tenant_name: String, team_name: String, channel_name: String, ) -> Result<ResponseContent<MicrosoftTeamsGetChannelByNameResponse>, Error<GetChannelByNameError>>
Get the tenant, team, and channel ID of a channel in the Datadog Microsoft Teams integration.
Sourcepub async fn get_tenant_based_handle(
    &self,
    handle_id: String,
) -> Result<MicrosoftTeamsTenantBasedHandleResponse, Error<GetTenantBasedHandleError>>
 
pub async fn get_tenant_based_handle( &self, handle_id: String, ) -> Result<MicrosoftTeamsTenantBasedHandleResponse, Error<GetTenantBasedHandleError>>
Get the tenant, team, and channel information of a tenant-based handle from the Datadog Microsoft Teams integration.
Examples found in repository?
More examples
6async fn main() {
7    // there is a valid "tenant_based_handle" in the system
8    let tenant_based_handle_data_id = std::env::var("TENANT_BASED_HANDLE_DATA_ID").unwrap();
9    let configuration = datadog::Configuration::new();
10    let api = MicrosoftTeamsIntegrationAPI::with_config(configuration);
11    let resp = api
12        .get_tenant_based_handle(tenant_based_handle_data_id.clone())
13        .await;
14    if let Ok(value) = resp {
15        println!("{:#?}", value);
16    } else {
17        println!("{:#?}", resp.unwrap_err());
18    }
19}Sourcepub async fn get_tenant_based_handle_with_http_info(
    &self,
    handle_id: String,
) -> Result<ResponseContent<MicrosoftTeamsTenantBasedHandleResponse>, Error<GetTenantBasedHandleError>>
 
pub async fn get_tenant_based_handle_with_http_info( &self, handle_id: String, ) -> Result<ResponseContent<MicrosoftTeamsTenantBasedHandleResponse>, Error<GetTenantBasedHandleError>>
Get the tenant, team, and channel information of a tenant-based handle from the Datadog Microsoft Teams integration.
Sourcepub async fn get_workflows_webhook_handle(
    &self,
    handle_id: String,
) -> Result<MicrosoftTeamsWorkflowsWebhookHandleResponse, Error<GetWorkflowsWebhookHandleError>>
 
pub async fn get_workflows_webhook_handle( &self, handle_id: String, ) -> Result<MicrosoftTeamsWorkflowsWebhookHandleResponse, Error<GetWorkflowsWebhookHandleError>>
Get the name of a Workflows webhook handle from the Datadog Microsoft Teams integration.
Examples found in repository?
6async fn main() {
7    let configuration = datadog::Configuration::new();
8    let api = MicrosoftTeamsIntegrationAPI::with_config(configuration);
9    let resp = api
10        .get_workflows_webhook_handle("handle_id".to_string())
11        .await;
12    if let Ok(value) = resp {
13        println!("{:#?}", value);
14    } else {
15        println!("{:#?}", resp.unwrap_err());
16    }
17}More examples
6async fn main() {
7    // there is a valid "workflows_webhook_handle" in the system
8    let workflows_webhook_handle_data_id =
9        std::env::var("WORKFLOWS_WEBHOOK_HANDLE_DATA_ID").unwrap();
10    let configuration = datadog::Configuration::new();
11    let api = MicrosoftTeamsIntegrationAPI::with_config(configuration);
12    let resp = api
13        .get_workflows_webhook_handle(workflows_webhook_handle_data_id.clone())
14        .await;
15    if let Ok(value) = resp {
16        println!("{:#?}", value);
17    } else {
18        println!("{:#?}", resp.unwrap_err());
19    }
20}Sourcepub async fn get_workflows_webhook_handle_with_http_info(
    &self,
    handle_id: String,
) -> Result<ResponseContent<MicrosoftTeamsWorkflowsWebhookHandleResponse>, Error<GetWorkflowsWebhookHandleError>>
 
pub async fn get_workflows_webhook_handle_with_http_info( &self, handle_id: String, ) -> Result<ResponseContent<MicrosoftTeamsWorkflowsWebhookHandleResponse>, Error<GetWorkflowsWebhookHandleError>>
Get the name of a Workflows webhook handle from the Datadog Microsoft Teams integration.
Sourcepub async fn list_tenant_based_handles(
    &self,
    params: ListTenantBasedHandlesOptionalParams,
) -> Result<MicrosoftTeamsTenantBasedHandlesResponse, Error<ListTenantBasedHandlesError>>
 
pub async fn list_tenant_based_handles( &self, params: ListTenantBasedHandlesOptionalParams, ) -> Result<MicrosoftTeamsTenantBasedHandlesResponse, Error<ListTenantBasedHandlesError>>
Get a list of all tenant-based handles from the Datadog Microsoft Teams integration.
Examples found in repository?
7async fn main() {
8    let configuration = datadog::Configuration::new();
9    let api = MicrosoftTeamsIntegrationAPI::with_config(configuration);
10    let resp = api
11        .list_tenant_based_handles(ListTenantBasedHandlesOptionalParams::default())
12        .await;
13    if let Ok(value) = resp {
14        println!("{:#?}", value);
15    } else {
16        println!("{:#?}", resp.unwrap_err());
17    }
18}More examples
7async fn main() {
8    let configuration = datadog::Configuration::new();
9    let api = MicrosoftTeamsIntegrationAPI::with_config(configuration);
10    let resp = api
11        .list_tenant_based_handles(ListTenantBasedHandlesOptionalParams::default())
12        .await;
13    if let Ok(value) = resp {
14        println!("{:#?}", value);
15    } else {
16        println!("{:#?}", resp.unwrap_err());
17    }
18}Sourcepub async fn list_tenant_based_handles_with_http_info(
    &self,
    params: ListTenantBasedHandlesOptionalParams,
) -> Result<ResponseContent<MicrosoftTeamsTenantBasedHandlesResponse>, Error<ListTenantBasedHandlesError>>
 
pub async fn list_tenant_based_handles_with_http_info( &self, params: ListTenantBasedHandlesOptionalParams, ) -> Result<ResponseContent<MicrosoftTeamsTenantBasedHandlesResponse>, Error<ListTenantBasedHandlesError>>
Get a list of all tenant-based handles from the Datadog Microsoft Teams integration.
Sourcepub async fn list_workflows_webhook_handles(
    &self,
    params: ListWorkflowsWebhookHandlesOptionalParams,
) -> Result<MicrosoftTeamsWorkflowsWebhookHandlesResponse, Error<ListWorkflowsWebhookHandlesError>>
 
pub async fn list_workflows_webhook_handles( &self, params: ListWorkflowsWebhookHandlesOptionalParams, ) -> Result<MicrosoftTeamsWorkflowsWebhookHandlesResponse, Error<ListWorkflowsWebhookHandlesError>>
Get a list of all Workflows webhook handles from the Datadog Microsoft Teams integration.
Examples found in repository?
7async fn main() {
8    let configuration = datadog::Configuration::new();
9    let api = MicrosoftTeamsIntegrationAPI::with_config(configuration);
10    let resp = api
11        .list_workflows_webhook_handles(ListWorkflowsWebhookHandlesOptionalParams::default())
12        .await;
13    if let Ok(value) = resp {
14        println!("{:#?}", value);
15    } else {
16        println!("{:#?}", resp.unwrap_err());
17    }
18}More examples
7async fn main() {
8    let configuration = datadog::Configuration::new();
9    let api = MicrosoftTeamsIntegrationAPI::with_config(configuration);
10    let resp = api
11        .list_workflows_webhook_handles(ListWorkflowsWebhookHandlesOptionalParams::default())
12        .await;
13    if let Ok(value) = resp {
14        println!("{:#?}", value);
15    } else {
16        println!("{:#?}", resp.unwrap_err());
17    }
18}Sourcepub async fn list_workflows_webhook_handles_with_http_info(
    &self,
    params: ListWorkflowsWebhookHandlesOptionalParams,
) -> Result<ResponseContent<MicrosoftTeamsWorkflowsWebhookHandlesResponse>, Error<ListWorkflowsWebhookHandlesError>>
 
pub async fn list_workflows_webhook_handles_with_http_info( &self, params: ListWorkflowsWebhookHandlesOptionalParams, ) -> Result<ResponseContent<MicrosoftTeamsWorkflowsWebhookHandlesResponse>, Error<ListWorkflowsWebhookHandlesError>>
Get a list of all Workflows webhook handles from the Datadog Microsoft Teams integration.
Sourcepub async fn update_tenant_based_handle(
    &self,
    handle_id: String,
    body: MicrosoftTeamsUpdateTenantBasedHandleRequest,
) -> Result<MicrosoftTeamsTenantBasedHandleResponse, Error<UpdateTenantBasedHandleError>>
 
pub async fn update_tenant_based_handle( &self, handle_id: String, body: MicrosoftTeamsUpdateTenantBasedHandleRequest, ) -> Result<MicrosoftTeamsTenantBasedHandleResponse, Error<UpdateTenantBasedHandleError>>
Update a tenant-based handle from the Datadog Microsoft Teams integration.
Examples found in repository?
10async fn main() {
11    // there is a valid "tenant_based_handle" in the system
12    let tenant_based_handle_data_id = std::env::var("TENANT_BASED_HANDLE_DATA_ID").unwrap();
13    let body = MicrosoftTeamsUpdateTenantBasedHandleRequest::new(
14        MicrosoftTeamsUpdateTenantBasedHandleRequestData::new(
15            MicrosoftTeamsTenantBasedHandleAttributes::new()
16                .name("fake-handle-name--updated".to_string()),
17            MicrosoftTeamsTenantBasedHandleType::TENANT_BASED_HANDLE,
18        ),
19    );
20    let configuration = datadog::Configuration::new();
21    let api = MicrosoftTeamsIntegrationAPI::with_config(configuration);
22    let resp = api
23        .update_tenant_based_handle(tenant_based_handle_data_id.clone(), body)
24        .await;
25    if let Ok(value) = resp {
26        println!("{:#?}", value);
27    } else {
28        println!("{:#?}", resp.unwrap_err());
29    }
30}More examples
10async fn main() {
11    let body = MicrosoftTeamsUpdateTenantBasedHandleRequest::new(
12        MicrosoftTeamsUpdateTenantBasedHandleRequestData::new(
13            MicrosoftTeamsTenantBasedHandleAttributes::new()
14                .channel_id("fake-channel-id".to_string())
15                .name("fake-handle-name".to_string())
16                .team_id("00000000-0000-0000-0000-000000000000".to_string())
17                .tenant_id("00000000-0000-0000-0000-000000000001".to_string()),
18            MicrosoftTeamsTenantBasedHandleType::TENANT_BASED_HANDLE,
19        ),
20    );
21    let configuration = datadog::Configuration::new();
22    let api = MicrosoftTeamsIntegrationAPI::with_config(configuration);
23    let resp = api
24        .update_tenant_based_handle("handle_id".to_string(), body)
25        .await;
26    if let Ok(value) = resp {
27        println!("{:#?}", value);
28    } else {
29        println!("{:#?}", resp.unwrap_err());
30    }
31}Sourcepub async fn update_tenant_based_handle_with_http_info(
    &self,
    handle_id: String,
    body: MicrosoftTeamsUpdateTenantBasedHandleRequest,
) -> Result<ResponseContent<MicrosoftTeamsTenantBasedHandleResponse>, Error<UpdateTenantBasedHandleError>>
 
pub async fn update_tenant_based_handle_with_http_info( &self, handle_id: String, body: MicrosoftTeamsUpdateTenantBasedHandleRequest, ) -> Result<ResponseContent<MicrosoftTeamsTenantBasedHandleResponse>, Error<UpdateTenantBasedHandleError>>
Update a tenant-based handle from the Datadog Microsoft Teams integration.
Sourcepub async fn update_workflows_webhook_handle(
    &self,
    handle_id: String,
    body: MicrosoftTeamsUpdateWorkflowsWebhookHandleRequest,
) -> Result<MicrosoftTeamsWorkflowsWebhookHandleResponse, Error<UpdateWorkflowsWebhookHandleError>>
 
pub async fn update_workflows_webhook_handle( &self, handle_id: String, body: MicrosoftTeamsUpdateWorkflowsWebhookHandleRequest, ) -> Result<MicrosoftTeamsWorkflowsWebhookHandleResponse, Error<UpdateWorkflowsWebhookHandleError>>
Update a Workflows webhook handle from the Datadog Microsoft Teams integration.
Examples found in repository?
10async fn main() {
11    let body = MicrosoftTeamsUpdateWorkflowsWebhookHandleRequest::new(
12        MicrosoftTeamsUpdateWorkflowsWebhookHandleRequestData::new(
13            MicrosoftTeamsWorkflowsWebhookHandleAttributes::new()
14                .name("fake-handle-name".to_string())
15                .url("https://fake.url.com".to_string()),
16            MicrosoftTeamsWorkflowsWebhookHandleType::WORKFLOWS_WEBHOOK_HANDLE,
17        ),
18    );
19    let configuration = datadog::Configuration::new();
20    let api = MicrosoftTeamsIntegrationAPI::with_config(configuration);
21    let resp = api
22        .update_workflows_webhook_handle("handle_id".to_string(), body)
23        .await;
24    if let Ok(value) = resp {
25        println!("{:#?}", value);
26    } else {
27        println!("{:#?}", resp.unwrap_err());
28    }
29}More examples
10async fn main() {
11    // there is a valid "workflows_webhook_handle" in the system
12    let workflows_webhook_handle_data_id =
13        std::env::var("WORKFLOWS_WEBHOOK_HANDLE_DATA_ID").unwrap();
14    let body = MicrosoftTeamsUpdateWorkflowsWebhookHandleRequest::new(
15        MicrosoftTeamsUpdateWorkflowsWebhookHandleRequestData::new(
16            MicrosoftTeamsWorkflowsWebhookHandleAttributes::new()
17                .name("fake-handle-name--updated".to_string()),
18            MicrosoftTeamsWorkflowsWebhookHandleType::WORKFLOWS_WEBHOOK_HANDLE,
19        ),
20    );
21    let configuration = datadog::Configuration::new();
22    let api = MicrosoftTeamsIntegrationAPI::with_config(configuration);
23    let resp = api
24        .update_workflows_webhook_handle(workflows_webhook_handle_data_id.clone(), body)
25        .await;
26    if let Ok(value) = resp {
27        println!("{:#?}", value);
28    } else {
29        println!("{:#?}", resp.unwrap_err());
30    }
31}Sourcepub async fn update_workflows_webhook_handle_with_http_info(
    &self,
    handle_id: String,
    body: MicrosoftTeamsUpdateWorkflowsWebhookHandleRequest,
) -> Result<ResponseContent<MicrosoftTeamsWorkflowsWebhookHandleResponse>, Error<UpdateWorkflowsWebhookHandleError>>
 
pub async fn update_workflows_webhook_handle_with_http_info( &self, handle_id: String, body: MicrosoftTeamsUpdateWorkflowsWebhookHandleRequest, ) -> Result<ResponseContent<MicrosoftTeamsWorkflowsWebhookHandleResponse>, Error<UpdateWorkflowsWebhookHandleError>>
Update a Workflows webhook handle from the Datadog Microsoft Teams integration.
Trait Implementations§
Source§impl Clone for MicrosoftTeamsIntegrationAPI
 
impl Clone for MicrosoftTeamsIntegrationAPI
Source§fn clone(&self) -> MicrosoftTeamsIntegrationAPI
 
fn clone(&self) -> MicrosoftTeamsIntegrationAPI
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
 
fn clone_from(&mut self, source: &Self)
source. Read more