You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
/// UpdateTeamError is a struct for typed errors of method [`TeamsAPI::update_team`]
270
278
#[derive(Debug,Clone,Serialize,Deserialize)]
271
279
#[serde(untagged)]
@@ -2408,6 +2416,166 @@ impl TeamsAPI {
2408
2416
}
2409
2417
}
2410
2418
2419
+
/// This endpoint attempts to link your existing Datadog teams with GitHub teams by matching their names.
2420
+
/// It evaluates all current Datadog teams and compares them against teams in the GitHub organization
2421
+
/// connected to your Datadog account, based on Datadog Team handle and GitHub Team slug
2422
+
/// (lowercased and kebab-cased).
2423
+
///
2424
+
/// This operation is read-only on the GitHub side, no teams will be modified or created.
2425
+
///
2426
+
/// [A GitHub organization must be connected to your Datadog account](<https://docs.datadoghq.com/integrations/github/>),
2427
+
/// and the GitHub App integrated with Datadog must have the `Members Read` permission. Matching is performed by comparing the Datadog team handle to the GitHub team slug
2428
+
/// using a normalized exact match; case is ignored and spaces are removed. No modifications are made
2429
+
/// to teams in GitHub. This will not create new Teams in Datadog.
2430
+
pubasyncfnsync_teams(
2431
+
&self,
2432
+
body:crate::datadogV2::model::TeamSyncRequest,
2433
+
) -> Result<(), datadog::Error<SyncTeamsError>>{
2434
+
matchself.sync_teams_with_http_info(body).await{
2435
+
Ok(_) => Ok(()),
2436
+
Err(err) => Err(err),
2437
+
}
2438
+
}
2439
+
2440
+
/// This endpoint attempts to link your existing Datadog teams with GitHub teams by matching their names.
2441
+
/// It evaluates all current Datadog teams and compares them against teams in the GitHub organization
2442
+
/// connected to your Datadog account, based on Datadog Team handle and GitHub Team slug
2443
+
/// (lowercased and kebab-cased).
2444
+
///
2445
+
/// This operation is read-only on the GitHub side, no teams will be modified or created.
2446
+
///
2447
+
/// [A GitHub organization must be connected to your Datadog account](<https://docs.datadoghq.com/integrations/github/>),
2448
+
/// and the GitHub App integrated with Datadog must have the `Members Read` permission. Matching is performed by comparing the Datadog team handle to the GitHub team slug
2449
+
/// using a normalized exact match; case is ignored and spaces are removed. No modifications are made
2450
+
/// to teams in GitHub. This will not create new Teams in Datadog.
if !local_status.is_client_error() && !local_status.is_server_error(){
2563
+
Ok(datadog::ResponseContent{
2564
+
status: local_status,
2565
+
content: local_content,
2566
+
entity:None,
2567
+
})
2568
+
}else{
2569
+
let local_entity:Option<SyncTeamsError> = serde_json::from_str(&local_content).ok();
2570
+
let local_error = datadog::ResponseContent{
2571
+
status: local_status,
2572
+
content: local_content,
2573
+
entity: local_entity,
2574
+
};
2575
+
Err(datadog::Error::ResponseError(local_error))
2576
+
}
2577
+
}
2578
+
2411
2579
/// Update a team using the team's `id`.
2412
2580
/// If the `team_links` relationship is present, the associated links are updated to be in the order they appear in the array, and any existing team links not present are removed.
0 commit comments