Skip to content

Commit 4d40d50

Browse files
Bump dependencies, progenitor to f0b9dbc3, oxide.json to omicron:254a0c51 (#1405)
1 parent af43ef0 commit 4d40d50

3 files changed

Lines changed: 44 additions & 31 deletions

File tree

Cargo.lock

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

oxide.json

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
"url": "https://oxide.computer",
88
"email": "api@oxide.computer"
99
},
10-
"version": "2026032400.0.0"
10+
"version": "2026032500.0.0"
1111
},
1212
"paths": {
1313
"/device/auth": {
@@ -28346,23 +28346,23 @@
2834628346
}
2834728347
},
2834828348
"SubnetPoolUtilization": {
28349-
"description": "Utilization information for a subnet pool",
28349+
"description": "Utilization of addresses in a subnet pool.\n\nNote that both the count of remaining addresses and the total capacity are integers, reported as floating point numbers. This accommodates allocations larger than a 64-bit integer, which is common with IPv6 address spaces. With very large subnet pools (> 2**53 addresses), integer precision will be lost, in exchange for representing the entire range. In such a case the pool still has many available addresses.",
2835028350
"type": "object",
2835128351
"properties": {
28352-
"allocated": {
28353-
"description": "Number of addresses allocated from this pool",
28352+
"capacity": {
28353+
"description": "The total number of addresses in the pool.",
2835428354
"type": "number",
2835528355
"format": "double"
2835628356
},
28357-
"capacity": {
28358-
"description": "Total capacity of this pool in addresses",
28357+
"remaining": {
28358+
"description": "The number of remaining addresses in the pool.",
2835928359
"type": "number",
2836028360
"format": "double"
2836128361
}
2836228362
},
2836328363
"required": [
28364-
"allocated",
28365-
"capacity"
28364+
"capacity",
28365+
"remaining"
2836628366
]
2836728367
},
2836828368
"SupportBundleCreate": {

sdk/src/generated_sdk.rs

Lines changed: 34 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -28577,26 +28577,39 @@ pub mod types {
2857728577
}
2857828578
}
2857928579

28580-
/// Utilization information for a subnet pool
28580+
/// Utilization of addresses in a subnet pool.
28581+
///
28582+
/// Note that both the count of remaining addresses and the total capacity
28583+
/// are integers, reported as floating point numbers. This accommodates
28584+
/// allocations larger than a 64-bit integer, which is common with IPv6
28585+
/// address spaces. With very large subnet pools (> 2**53 addresses),
28586+
/// integer precision will be lost, in exchange for representing the entire
28587+
/// range. In such a case the pool still has many available addresses.
2858128588
///
2858228589
/// <details><summary>JSON schema</summary>
2858328590
///
2858428591
/// ```json
2858528592
/// {
28586-
/// "description": "Utilization information for a subnet pool",
28593+
/// "description": "Utilization of addresses in a subnet pool.\n\nNote that
28594+
/// both the count of remaining addresses and the total capacity are
28595+
/// integers, reported as floating point numbers. This accommodates
28596+
/// allocations larger than a 64-bit integer, which is common with IPv6
28597+
/// address spaces. With very large subnet pools (> 2**53 addresses),
28598+
/// integer precision will be lost, in exchange for representing the entire
28599+
/// range. In such a case the pool still has many available addresses.",
2858728600
/// "type": "object",
2858828601
/// "required": [
28589-
/// "allocated",
28590-
/// "capacity"
28602+
/// "capacity",
28603+
/// "remaining"
2859128604
/// ],
2859228605
/// "properties": {
28593-
/// "allocated": {
28594-
/// "description": "Number of addresses allocated from this pool",
28606+
/// "capacity": {
28607+
/// "description": "The total number of addresses in the pool.",
2859528608
/// "type": "number",
2859628609
/// "format": "double"
2859728610
/// },
28598-
/// "capacity": {
28599-
/// "description": "Total capacity of this pool in addresses",
28611+
/// "remaining": {
28612+
/// "description": "The number of remaining addresses in the pool.",
2860028613
/// "type": "number",
2860128614
/// "format": "double"
2860228615
/// }
@@ -28608,8 +28621,8 @@ pub mod types {
2860828621
:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug, schemars :: JsonSchema,
2860928622
)]
2861028623
pub struct SubnetPoolUtilization {
28611-
pub allocated: f64,
2861228624
pub capacity: f64,
28625+
pub remaining: f64,
2861328626
}
2861428627

2861528628
impl SubnetPoolUtilization {
@@ -59191,38 +59204,38 @@ pub mod types {
5919159204

5919259205
#[derive(Clone, Debug)]
5919359206
pub struct SubnetPoolUtilization {
59194-
allocated: ::std::result::Result<f64, ::std::string::String>,
5919559207
capacity: ::std::result::Result<f64, ::std::string::String>,
59208+
remaining: ::std::result::Result<f64, ::std::string::String>,
5919659209
}
5919759210

5919859211
impl ::std::default::Default for SubnetPoolUtilization {
5919959212
fn default() -> Self {
5920059213
Self {
59201-
allocated: Err("no value supplied for allocated".to_string()),
5920259214
capacity: Err("no value supplied for capacity".to_string()),
59215+
remaining: Err("no value supplied for remaining".to_string()),
5920359216
}
5920459217
}
5920559218
}
5920659219

5920759220
impl SubnetPoolUtilization {
59208-
pub fn allocated<T>(mut self, value: T) -> Self
59221+
pub fn capacity<T>(mut self, value: T) -> Self
5920959222
where
5921059223
T: ::std::convert::TryInto<f64>,
5921159224
T::Error: ::std::fmt::Display,
5921259225
{
59213-
self.allocated = value
59226+
self.capacity = value
5921459227
.try_into()
59215-
.map_err(|e| format!("error converting supplied value for allocated: {e}"));
59228+
.map_err(|e| format!("error converting supplied value for capacity: {e}"));
5921659229
self
5921759230
}
59218-
pub fn capacity<T>(mut self, value: T) -> Self
59231+
pub fn remaining<T>(mut self, value: T) -> Self
5921959232
where
5922059233
T: ::std::convert::TryInto<f64>,
5922159234
T::Error: ::std::fmt::Display,
5922259235
{
59223-
self.capacity = value
59236+
self.remaining = value
5922459237
.try_into()
59225-
.map_err(|e| format!("error converting supplied value for capacity: {e}"));
59238+
.map_err(|e| format!("error converting supplied value for remaining: {e}"));
5922659239
self
5922759240
}
5922859241
}
@@ -59233,17 +59246,17 @@ pub mod types {
5923359246
value: SubnetPoolUtilization,
5923459247
) -> ::std::result::Result<Self, super::error::ConversionError> {
5923559248
Ok(Self {
59236-
allocated: value.allocated?,
5923759249
capacity: value.capacity?,
59250+
remaining: value.remaining?,
5923859251
})
5923959252
}
5924059253
}
5924159254

5924259255
impl ::std::convert::From<super::SubnetPoolUtilization> for SubnetPoolUtilization {
5924359256
fn from(value: super::SubnetPoolUtilization) -> Self {
5924459257
Self {
59245-
allocated: Ok(value.allocated),
5924659258
capacity: Ok(value.capacity),
59259+
remaining: Ok(value.remaining),
5924759260
}
5924859261
}
5924959262
}
@@ -65690,7 +65703,7 @@ pub mod types {
6569065703
///
6569165704
/// API for interacting with the Oxide control plane
6569265705
///
65693-
/// Version: 2026032400.0.0
65706+
/// Version: 2026032500.0.0
6569465707
pub struct Client {
6569565708
pub(crate) baseurl: String,
6569665709
pub(crate) client: reqwest::Client,
@@ -65731,7 +65744,7 @@ impl Client {
6573165744

6573265745
impl ClientInfo<()> for Client {
6573365746
fn api_version() -> &'static str {
65734-
"2026032400.0.0"
65747+
"2026032500.0.0"
6573565748
}
6573665749

6573765750
fn baseurl(&self) -> &str {

0 commit comments

Comments
 (0)