Struct MicrosoftTeamsIntegrationAPI

Source
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

Source

pub fn new() -> Self

Source

pub fn with_config(config: Configuration) -> Self

Examples found in repository?
examples/v2_microsoft-teams-integration_GetTenantBasedHandle.rs (line 8)
6async fn main() {
7    let configuration = datadog::Configuration::new();
8    let api = MicrosoftTeamsIntegrationAPI::with_config(configuration);
9    let resp = api.get_tenant_based_handle("handle_id".to_string()).await;
10    if let Ok(value) = resp {
11        println!("{:#?}", value);
12    } else {
13        println!("{:#?}", resp.unwrap_err());
14    }
15}
More examples
Hide additional examples
examples/v2_microsoft-teams-integration_DeleteTenantBasedHandle.rs (line 8)
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}
examples/v2_microsoft-teams-integration_GetWorkflowsWebhookHandle.rs (line 8)
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}
examples/v2_microsoft-teams-integration_DeleteWorkflowsWebhookHandle.rs (line 8)
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}
examples/v2_microsoft-teams-integration_ListTenantBasedHandles.rs (line 9)
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_ListTenantBasedHandles_769592979.rs (line 9)
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}
Source

pub fn with_client_and_config( config: Configuration, client: ClientWithMiddleware, ) -> Self

Source

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?
examples/v2_microsoft-teams-integration_CreateTenantBasedHandle.rs (line 24)
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
Hide additional examples
examples/v2_microsoft-teams-integration_CreateTenantBasedHandle_1540689753.rs (line 24)
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}
Source

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.

Source

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?
examples/v2_microsoft-teams-integration_CreateWorkflowsWebhookHandle.rs (line 22)
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
Hide additional examples
examples/v2_microsoft-teams-integration_CreateWorkflowsWebhookHandle_1716851881.rs (line 22)
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}
Source

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.

Source

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?
examples/v2_microsoft-teams-integration_DeleteTenantBasedHandle.rs (line 10)
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
Hide additional examples
examples/v2_microsoft-teams-integration_DeleteTenantBasedHandle_377884154.rs (line 12)
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}
Source

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.

Source

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?
examples/v2_microsoft-teams-integration_DeleteWorkflowsWebhookHandle.rs (line 10)
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
Hide additional examples
examples/v2_microsoft-teams-integration_DeleteWorkflowsWebhookHandle_107549514.rs (line 13)
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}
Source

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.

Source

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?
examples/v2_microsoft-teams-integration_GetChannelByName.rs (lines 10-14)
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}
Source

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.

Source

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?
examples/v2_microsoft-teams-integration_GetTenantBasedHandle.rs (line 9)
6async fn main() {
7    let configuration = datadog::Configuration::new();
8    let api = MicrosoftTeamsIntegrationAPI::with_config(configuration);
9    let resp = api.get_tenant_based_handle("handle_id".to_string()).await;
10    if let Ok(value) = resp {
11        println!("{:#?}", value);
12    } else {
13        println!("{:#?}", resp.unwrap_err());
14    }
15}
More examples
Hide additional examples
examples/v2_microsoft-teams-integration_GetTenantBasedHandle_2883785101.rs (line 12)
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}
Source

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.

Source

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?
examples/v2_microsoft-teams-integration_GetWorkflowsWebhookHandle.rs (line 10)
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
Hide additional examples
examples/v2_microsoft-teams-integration_GetWorkflowsWebhookHandle_3421443805.rs (line 13)
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}
Source

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.

Source

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?
examples/v2_microsoft-teams-integration_ListTenantBasedHandles.rs (line 11)
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
Hide additional examples
examples/v2_microsoft-teams-integration_ListTenantBasedHandles_769592979.rs (line 11)
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}
Source

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.

Source

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?
examples/v2_microsoft-teams-integration_ListWorkflowsWebhookHandles.rs (line 11)
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
Hide additional examples
examples/v2_microsoft-teams-integration_ListWorkflowsWebhookHandles_620762083.rs (line 11)
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}
Source

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.

Source

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?
examples/v2_microsoft-teams-integration_UpdateTenantBasedHandle_419892746.rs (line 23)
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
Hide additional examples
examples/v2_microsoft-teams-integration_UpdateTenantBasedHandle.rs (line 24)
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}
Source

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.

Source

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?
examples/v2_microsoft-teams-integration_UpdateWorkflowsWebhookHandle.rs (line 22)
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
Hide additional examples
examples/v2_microsoft-teams-integration_UpdateWorkflowsWebhookHandle_163189594.rs (line 24)
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}
Source

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

Source§

fn clone(&self) -> MicrosoftTeamsIntegrationAPI

Returns a duplicate of the value. Read more
1.0.0 · Source§

const fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for MicrosoftTeamsIntegrationAPI

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Default for MicrosoftTeamsIntegrationAPI

Source§

fn default() -> Self

Returns the “default value” for a type. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

Source§

fn vzip(self) -> V

Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

impl<T> ErasedDestructor for T
where T: 'static,