Skip to content

Commit 6ee222f

Browse files
Regenerate client from spec repo
1 parent 001239b commit 6ee222f

15 files changed

Lines changed: 33 additions & 35 deletions

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ zip = { version = "8", default-features = false, features = ["deflate"], optiona
135135

136136
# Datadog API client — pinned to 0.33.0 tag
137137
# Use default-features = false; feature sets are activated per-target via features above
138-
datadog-api-client = { git = "https://github.com/DataDog/datadog-api-client-rust", rev = "192bab111da84a83968b12528e4bc6bab7ac94a9", optional = true, default-features = false }
138+
datadog-api-client = { git = "https://github.com/DataDog/datadog-api-client-rust", rev = "58e24c13500c7a360029f26deafe88a147984ee4", optional = true, default-features = false }
139139

140140
# HTTP middleware (version-matched to DD client; compiles on all targets)
141141
reqwest-middleware = "0.5"

src/auth/callback.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
// Code generated by openapi-transformer. DO NOT EDIT.
2+
13
#[cfg(not(target_arch = "wasm32"))]
24
use anyhow::bail;
35
use anyhow::Result;

src/auth/dcr.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
// Code generated by openapi-transformer. DO NOT EDIT.
2+
13
#[cfg(not(target_arch = "wasm32"))]
24
use anyhow::{bail, Context, Result};
35
#[cfg(not(target_arch = "wasm32"))]

src/auth/mod.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
// Code generated by openapi-transformer. DO NOT EDIT.
2+
13
pub mod callback;
24
pub mod dcr;
35
pub mod pkce;

src/auth/pkce.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
// Code generated by openapi-transformer. DO NOT EDIT.
2+
13
#[cfg(not(target_arch = "wasm32"))]
24
use anyhow::Result;
35
#[cfg(not(target_arch = "wasm32"))]

src/auth/storage.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
// Code generated by openapi-transformer. DO NOT EDIT.
2+
13
use anyhow::{Context, Result};
24
use std::path::PathBuf;
35

src/auth/types.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
// Code generated by openapi-transformer. DO NOT EDIT.
2+
13
use chrono::Utc;
24
use serde::{Deserialize, Serialize};
35

src/client.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
// Code generated by openapi-transformer. DO NOT EDIT.
2+
13
use reqwest_middleware::{ClientBuilder, ClientWithMiddleware};
24

35
#[cfg(not(target_arch = "wasm32"))]

src/config.rs

Lines changed: 2 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
// Code generated by openapi-transformer. DO NOT EDIT.
2+
13
use anyhow::{bail, Result};
24
#[cfg(not(feature = "browser"))]
35
use serde::Deserialize;
@@ -371,17 +373,6 @@ impl Config {
371373
Ok(())
372374
}
373375

374-
/// Validate that DD_API_KEY is configured for API-key-only endpoints.
375-
pub fn validate_api_key_only(&self) -> Result<()> {
376-
if self.api_key.is_none() {
377-
bail!(
378-
"this command requires DD_API_KEY — \
379-
OAuth2 bearer tokens are not supported here"
380-
);
381-
}
382-
Ok(())
383-
}
384-
385376
pub fn has_api_keys(&self) -> bool {
386377
self.api_key.is_some() && self.app_key.is_some()
387378
}
@@ -990,24 +981,6 @@ mod tests {
990981
assert!(cfg.validate_api_and_app_keys().is_err());
991982
}
992983

993-
#[test]
994-
fn test_validate_api_key_only_accepts_api_key_without_app_key() {
995-
let cfg = make_cfg(Some("key"), None, None);
996-
assert!(cfg.validate_api_key_only().is_ok());
997-
}
998-
999-
#[test]
1000-
fn test_validate_api_key_only_rejects_bearer_only() {
1001-
let cfg = make_cfg(None, None, Some("token"));
1002-
assert!(cfg.validate_api_key_only().is_err());
1003-
}
1004-
1005-
#[test]
1006-
fn test_validate_api_key_only_rejects_missing_api_key() {
1007-
let cfg = make_cfg(None, Some("app"), None);
1008-
assert!(cfg.validate_api_key_only().is_err());
1009-
}
1010-
1011984
#[test]
1012985
fn test_validate_auth_api_keys() {
1013986
let cfg = make_cfg(Some("key"), Some("app"), None);

src/filter.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
// Code generated by openapi-transformer. DO NOT EDIT.
2+
13
//! jq filter support via the [`jaq`](https://github.com/01mf02/jaq) engine.
24
//!
35
//! [`apply_jq`] is the sole public entry point; the jaq API is encapsulated

0 commit comments

Comments
 (0)