diff --git a/cli/docs/cli.json b/cli/docs/cli.json index ef37acc3..dae24fd3 100644 --- a/cli/docs/cli.json +++ b/cli/docs/cli.json @@ -2339,7 +2339,8 @@ "long": "description" }, { - "long": "gateway" + "long": "gateway", + "help": "Name or ID of the internet gateway" }, { "long": "ip-pool" diff --git a/cli/src/generated_cli.rs b/cli/src/generated_cli.rs index 6a37e0f5..4ae3d87e 100644 --- a/cli/src/generated_cli.rs +++ b/cli/src/generated_cli.rs @@ -2155,7 +2155,8 @@ impl Cli { clap::Arg::new("gateway") .long("gateway") .value_parser(clap::value_parser!(types::NameOrId)) - .required_unless_present("json-body"), + .required(true) + .help("Name or ID of the internet gateway"), ) .arg( clap::Arg::new("ip-pool") @@ -8788,7 +8789,7 @@ impl Cli { } if let Some(value) = matches.get_one::("gateway") { - request = request.body_map(|body| body.gateway(value.clone())) + request = request.gateway(value.clone()); } if let Some(value) = matches.get_one::("ip-pool") { diff --git a/oxide.json b/oxide.json index 0707ba82..00023683 100644 --- a/oxide.json +++ b/oxide.json @@ -16595,9 +16595,6 @@ "description": { "type": "string" }, - "gateway": { - "$ref": "#/components/schemas/NameOrId" - }, "ip_pool": { "$ref": "#/components/schemas/NameOrId" }, @@ -16607,7 +16604,6 @@ }, "required": [ "description", - "gateway", "ip_pool", "name" ] diff --git a/sdk/src/generated_sdk.rs b/sdk/src/generated_sdk.rs index f9ae2fd7..d616e499 100644 --- a/sdk/src/generated_sdk.rs +++ b/sdk/src/generated_sdk.rs @@ -13215,7 +13215,6 @@ pub mod types { /// "type": "object", /// "required": [ /// "description", - /// "gateway", /// "ip_pool", /// "name" /// ], @@ -13223,9 +13222,6 @@ pub mod types { /// "description": { /// "type": "string" /// }, - /// "gateway": { - /// "$ref": "#/components/schemas/NameOrId" - /// }, /// "ip_pool": { /// "$ref": "#/components/schemas/NameOrId" /// }, @@ -13241,7 +13237,6 @@ pub mod types { )] pub struct InternetGatewayIpPoolCreate { pub description: String, - pub gateway: NameOrId, pub ip_pool: NameOrId, pub name: Name, } @@ -37151,7 +37146,6 @@ pub mod types { #[derive(Clone, Debug)] pub struct InternetGatewayIpPoolCreate { description: Result, - gateway: Result, ip_pool: Result, name: Result, } @@ -37160,7 +37154,6 @@ pub mod types { fn default() -> Self { Self { description: Err("no value supplied for description".to_string()), - gateway: Err("no value supplied for gateway".to_string()), ip_pool: Err("no value supplied for ip_pool".to_string()), name: Err("no value supplied for name".to_string()), } @@ -37178,16 +37171,6 @@ pub mod types { .map_err(|e| format!("error converting supplied value for description: {}", e)); self } - pub fn gateway(mut self, value: T) -> Self - where - T: std::convert::TryInto, - T::Error: std::fmt::Display, - { - self.gateway = value - .try_into() - .map_err(|e| format!("error converting supplied value for gateway: {}", e)); - self - } pub fn ip_pool(mut self, value: T) -> Self where T: std::convert::TryInto, @@ -37217,7 +37200,6 @@ pub mod types { ) -> Result { Ok(Self { description: value.description?, - gateway: value.gateway?, ip_pool: value.ip_pool?, name: value.name?, }) @@ -37228,7 +37210,6 @@ pub mod types { fn from(value: super::InternetGatewayIpPoolCreate) -> Self { Self { description: Ok(value.description), - gateway: Ok(value.gateway), ip_pool: Ok(value.ip_pool), name: Ok(value.name), }