Skip to content

Commit 058827c

Browse files
Bump dependencies, progenitor to cd7a80ee, oxide.json to omicron:610011e3 (#1078)
1 parent f563e95 commit 058827c

5 files changed

Lines changed: 1496 additions & 23 deletions

File tree

Cargo.lock

Lines changed: 10 additions & 10 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

cli/src/generated_cli.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6897,7 +6897,7 @@ impl<T: CliConfig> Cli<T> {
68976897
::clap::Arg::new("router")
68986898
.long("router")
68996899
.value_parser(::clap::value_parser!(types::NameOrId))
6900-
.required(true)
6900+
.required(false)
69016901
.help("Name or ID of the router"),
69026902
)
69036903
.arg(

oxide.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11005,7 +11005,6 @@
1100511005
"in": "query",
1100611006
"name": "router",
1100711007
"description": "Name or ID of the router",
11008-
"required": true,
1100911008
"schema": {
1101011009
"$ref": "#/components/schemas/NameOrId"
1101111010
}

sdk-httpmock/src/generated_httpmock.rs

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17973,8 +17973,20 @@ pub mod operations {
1797317973
}
1797417974
}
1797517975

17976-
pub fn router(self, value: &types::NameOrId) -> Self {
17977-
Self(self.0.query_param("router", value.to_string()))
17976+
pub fn router<'a, T>(self, value: T) -> Self
17977+
where
17978+
T: Into<Option<&'a types::NameOrId>>,
17979+
{
17980+
if let Some(value) = value.into() {
17981+
Self(self.0.query_param("router", value.to_string()))
17982+
} else {
17983+
Self(self.0.matches(|req| {
17984+
req.query_params
17985+
.as_ref()
17986+
.and_then(|qs| qs.iter().find(|(key, _)| key == "router"))
17987+
.is_none()
17988+
}))
17989+
}
1797817990
}
1797917991

1798017992
pub fn vpc<'a, T>(self, value: T) -> Self

0 commit comments

Comments
 (0)