Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

24 changes: 13 additions & 11 deletions oxide.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"url": "https://oxide.computer",
"email": "api@oxide.computer"
},
"version": "2026041900.0.0"
"version": "2026043000.0.0"
},
"paths": {
"/device/auth": {
Expand Down Expand Up @@ -5039,13 +5039,14 @@
}
],
"responses": {
"default": {
"description": "",
"content": {
"*/*": {
"schema": {}
}
}
"101": {
"description": "Negotiating protocol upgrade from HTTP/1.1 to WebSocket"
},
"4XX": {
"$ref": "#/components/responses/Error"
},
"5XX": {
"$ref": "#/components/responses/Error"
}
},
"x-dropshot-websocket": {}
Expand Down Expand Up @@ -25748,7 +25749,7 @@
]
},
"Probe": {
"description": "Identity-related metadata that's included in nearly all public API objects",
"description": "A networking probe",
"type": "object",
"properties": {
"description": {
Expand Down Expand Up @@ -26752,7 +26753,7 @@
]
},
"SamlIdentityProvider": {
"description": "Identity-related metadata that's included in nearly all public API objects",
"description": "A SAML identity provider",
"type": "object",
"properties": {
"acs_url": {
Expand Down Expand Up @@ -29759,7 +29760,8 @@
"volts",
"amps",
"watts",
"degrees_celsius"
"degrees_celsius",
"joules"
]
},
{
Expand Down
20 changes: 20 additions & 0 deletions sdk-httpmock/src/generated_httpmock.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7554,6 +7554,26 @@ pub mod operations {
pub fn switching_protocols(self) -> Self {
Self(self.0.status(101u16))
}

pub fn client_error(self, status: u16, value: &types::Error) -> Self {
assert_eq!(status / 100u16, 4u16);
Self(
self.0
.status(status)
.header("content-type", "application/json")
.json_body_obj(value),
)
}

pub fn server_error(self, status: u16, value: &types::Error) -> Self {
assert_eq!(status / 100u16, 5u16);
Self(
self.0
.status(status)
.header("content-type", "application/json")
.json_body_obj(value),
)
}
}

pub struct InstanceSshPublicKeyListWhen(::httpmock::When);
Expand Down
31 changes: 19 additions & 12 deletions sdk/src/generated_sdk.rs
Original file line number Diff line number Diff line change
Expand Up @@ -22685,15 +22685,13 @@ pub mod types {
}
}

/// Identity-related metadata that's included in nearly all public API
/// objects
/// A networking probe
///
/// <details><summary>JSON schema</summary>
///
/// ```json
/// {
/// "description": "Identity-related metadata that's included in nearly all
/// public API objects",
/// "description": "A networking probe",
/// "type": "object",
/// "required": [
/// "description",
Expand Down Expand Up @@ -24927,15 +24925,13 @@ pub mod types {
}
}

/// Identity-related metadata that's included in nearly all public API
/// objects
/// A SAML identity provider
///
/// <details><summary>JSON schema</summary>
///
/// ```json
/// {
/// "description": "Identity-related metadata that's included in nearly all
/// public API objects",
/// "description": "A SAML identity provider",
/// "type": "object",
/// "required": [
/// "acs_url",
Expand Down Expand Up @@ -32478,7 +32474,8 @@ pub mod types {
/// "volts",
/// "amps",
/// "watts",
/// "degrees_celsius"
/// "degrees_celsius",
/// "joules"
/// ]
/// },
/// {
Expand Down Expand Up @@ -32530,6 +32527,8 @@ pub mod types {
Watts,
#[serde(rename = "degrees_celsius")]
DegreesCelsius,
#[serde(rename = "joules")]
Joules,
/// No meaningful units, e.g. a dimensionless quanity.
#[serde(rename = "none")]
None,
Expand All @@ -32549,6 +32548,7 @@ pub mod types {
Self::Amps => f.write_str("amps"),
Self::Watts => f.write_str("watts"),
Self::DegreesCelsius => f.write_str("degrees_celsius"),
Self::Joules => f.write_str("joules"),
Self::None => f.write_str("none"),
Self::Rpm => f.write_str("rpm"),
}
Expand All @@ -32567,6 +32567,7 @@ pub mod types {
"amps" => Ok(Self::Amps),
"watts" => Ok(Self::Watts),
"degrees_celsius" => Ok(Self::DegreesCelsius),
"joules" => Ok(Self::Joules),
"none" => Ok(Self::None),
"rpm" => Ok(Self::Rpm),
_ => Err("invalid value".into()),
Expand Down Expand Up @@ -65809,7 +65810,7 @@ pub mod types {
///
/// API for interacting with the Oxide control plane
///
/// Version: 2026041900.0.0
/// Version: 2026043000.0.0
pub struct Client {
pub(crate) baseurl: String,
pub(crate) client: reqwest::Client,
Expand Down Expand Up @@ -65850,7 +65851,7 @@ impl Client {

impl ClientInfo<()> for Client {
fn api_version() -> &'static str {
"2026041900.0.0"
"2026043000.0.0"
}

fn baseurl(&self) -> &str {
Expand Down Expand Up @@ -83991,7 +83992,7 @@ pub mod builder {

/// Sends a `GET` request to
/// `/v1/instances/{instance}/serial-console/stream`
pub async fn send(self) -> Result<ResponseValue<reqwest::Upgraded>, Error<()>> {
pub async fn send(self) -> Result<ResponseValue<reqwest::Upgraded>, Error<types::Error>> {
let Self {
client,
instance,
Expand Down Expand Up @@ -84041,6 +84042,12 @@ pub mod builder {
let response = result?;
match response.status().as_u16() {
101u16 => ResponseValue::upgrade(response).await,
400u16..=499u16 => Err(Error::ErrorResponse(
ResponseValue::from_response(response).await?,
)),
500u16..=599u16 => Err(Error::ErrorResponse(
ResponseValue::from_response(response).await?,
)),
_ => Err(Error::UnexpectedResponse(response)),
}
}
Expand Down
Loading