diff --git a/oxide.json b/oxide.json index 4a24eb7f..c50291cf 100644 --- a/oxide.json +++ b/oxide.json @@ -12420,6 +12420,11 @@ "type": "string", "format": "ip" }, + "ip_pool_id": { + "description": "The ID of the IP pool this resource belongs to.", + "type": "string", + "format": "uuid" + }, "kind": { "type": "string", "enum": [ @@ -12454,6 +12459,7 @@ "description", "id", "ip", + "ip_pool_id", "kind", "name", "project_id", @@ -12896,6 +12902,11 @@ "type": "string", "format": "ip" }, + "ip_pool_id": { + "description": "The ID of the IP pool this resource belongs to.", + "type": "string", + "format": "uuid" + }, "name": { "description": "unique, mutable, user-controlled identifier for each resource", "allOf": [ @@ -12924,6 +12935,7 @@ "description", "id", "ip", + "ip_pool_id", "name", "project_id", "time_created", diff --git a/sdk/src/generated_sdk.rs b/sdk/src/generated_sdk.rs index f753b5c0..d5db662d 100644 --- a/sdk/src/generated_sdk.rs +++ b/sdk/src/generated_sdk.rs @@ -6786,6 +6786,7 @@ pub mod types { /// "description", /// "id", /// "ip", + /// "ip_pool_id", /// "kind", /// "name", /// "project_id", @@ -6818,6 +6819,12 @@ pub mod types { /// "type": "string", /// "format": "ip" /// }, + /// "ip_pool_id": { + /// "description": "The ID of the IP pool this resource belongs + /// to.", + /// "type": "string", + /// "format": "uuid" + /// }, /// "kind": { /// "type": "string", /// "enum": [ @@ -6875,6 +6882,8 @@ pub mod types { instance_id: Option, /// The IP address held by this resource. ip: std::net::IpAddr, + /// The ID of the IP pool this resource belongs to. + ip_pool_id: uuid::Uuid, /// unique, mutable, user-controlled identifier for each resource name: Name, /// The project this resource exists within. @@ -7886,6 +7895,7 @@ pub mod types { /// "description", /// "id", /// "ip", + /// "ip_pool_id", /// "name", /// "project_id", /// "time_created", @@ -7916,6 +7926,11 @@ pub mod types { /// "type": "string", /// "format": "ip" /// }, + /// "ip_pool_id": { + /// "description": "The ID of the IP pool this resource belongs to.", + /// "type": "string", + /// "format": "uuid" + /// }, /// "name": { /// "description": "unique, mutable, user-controlled identifier for /// each resource", @@ -7956,6 +7971,8 @@ pub mod types { pub instance_id: Option, /// The IP address held by this resource. pub ip: std::net::IpAddr, + /// The ID of the IP pool this resource belongs to. + pub ip_pool_id: uuid::Uuid, /// unique, mutable, user-controlled identifier for each resource pub name: Name, /// The project this resource exists within. @@ -28387,6 +28404,7 @@ pub mod types { id: Result, instance_id: Result, String>, ip: Result, + ip_pool_id: Result, name: Result, project_id: Result, time_created: Result, String>, @@ -28400,6 +28418,7 @@ pub mod types { id: Err("no value supplied for id".to_string()), instance_id: Ok(Default::default()), ip: Err("no value supplied for ip".to_string()), + ip_pool_id: Err("no value supplied for ip_pool_id".to_string()), name: Err("no value supplied for name".to_string()), project_id: Err("no value supplied for project_id".to_string()), time_created: Err("no value supplied for time_created".to_string()), @@ -28449,6 +28468,16 @@ pub mod types { .map_err(|e| format!("error converting supplied value for ip: {}", e)); self } + pub fn ip_pool_id(mut self, value: T) -> Self + where + T: std::convert::TryInto, + T::Error: std::fmt::Display, + { + self.ip_pool_id = value + .try_into() + .map_err(|e| format!("error converting supplied value for ip_pool_id: {}", e)); + self + } pub fn name(mut self, value: T) -> Self where T: std::convert::TryInto, @@ -28499,6 +28528,7 @@ pub mod types { id: value.id?, instance_id: value.instance_id?, ip: value.ip?, + ip_pool_id: value.ip_pool_id?, name: value.name?, project_id: value.project_id?, time_created: value.time_created?, @@ -28514,6 +28544,7 @@ pub mod types { id: Ok(value.id), instance_id: Ok(value.instance_id), ip: Ok(value.ip), + ip_pool_id: Ok(value.ip_pool_id), name: Ok(value.name), project_id: Ok(value.project_id), time_created: Ok(value.time_created),