File tree 5 files changed +4
-12
lines changed
5 files changed +4
-12
lines changed Original file line number Diff line number Diff line change @@ -2313,7 +2313,7 @@ pub trait NexusExternalApi {
2313
2313
HttpError ,
2314
2314
> ;
2315
2315
2316
- /// Attach IP pool to internet gateway
2316
+ /// Attach IP address to internet gateway
2317
2317
#[ endpoint {
2318
2318
method = POST ,
2319
2319
path = "/v1/internet-gateway-ip-addresses" ,
@@ -2325,7 +2325,7 @@ pub trait NexusExternalApi {
2325
2325
create_params : TypedBody < params:: InternetGatewayIpAddressCreate > ,
2326
2326
) -> Result < HttpResponseCreated < views:: InternetGatewayIpAddress > , HttpError > ;
2327
2327
2328
- /// Detach IP pool from internet gateway
2328
+ /// Detach IP address from internet gateway
2329
2329
#[ endpoint {
2330
2330
method = DELETE ,
2331
2331
path = "/v1/internet-gateway-ip-addresses/{address}" ,
Original file line number Diff line number Diff line change @@ -861,7 +861,6 @@ pub async fn attach_ip_address_to_igw(
861
861
project_name, vpc_name, igw_name,
862
862
) ;
863
863
864
- let gateway: Name = igw_name. parse ( ) . unwrap ( ) ;
865
864
NexusRequest :: objects_post (
866
865
& client,
867
866
url. as_str ( ) ,
@@ -870,7 +869,6 @@ pub async fn attach_ip_address_to_igw(
870
869
name : attachment_name. parse ( ) . unwrap ( ) ,
871
870
description : String :: from ( "attached pool descriptoion" ) ,
872
871
} ,
873
- gateway : NameOrId :: Name ( gateway) ,
874
872
address,
875
873
} ,
876
874
)
Original file line number Diff line number Diff line change @@ -291,7 +291,6 @@ pub static DEMO_INTERNET_GATEWAY_IP_ADDRESS_CREATE: Lazy<
291
291
name : DEMO_INTERNET_GATEWAY_NAME . clone ( ) ,
292
292
description : String :: from ( "" ) ,
293
293
} ,
294
- gateway : NameOrId :: Id ( uuid:: Uuid :: new_v4 ( ) ) ,
295
294
address : IpAddr :: V4 ( Ipv4Addr :: UNSPECIFIED ) ,
296
295
} ) ;
297
296
pub static DEMO_INTERNET_GATEWAY_IP_POOLS_URL : Lazy < String > = Lazy :: new ( || {
Original file line number Diff line number Diff line change @@ -1394,7 +1394,6 @@ pub struct InternetGatewayIpPoolCreate {
1394
1394
pub struct InternetGatewayIpAddressCreate {
1395
1395
#[ serde( flatten) ]
1396
1396
pub identity : IdentityMetadataCreateParams ,
1397
- pub gateway : NameOrId ,
1398
1397
pub address : IpAddr ,
1399
1398
}
1400
1399
Original file line number Diff line number Diff line change 2764
2764
"tags": [
2765
2765
"vpcs"
2766
2766
],
2767
- "summary": "Attach IP pool to internet gateway",
2767
+ "summary": "Attach IP address to internet gateway",
2768
2768
"operationId": "internet_gateway_ip_address_create",
2769
2769
"parameters": [
2770
2770
{
2828
2828
"tags": [
2829
2829
"vpcs"
2830
2830
],
2831
- "summary": "Detach IP pool from internet gateway",
2831
+ "summary": "Detach IP address from internet gateway",
2832
2832
"operationId": "internet_gateway_ip_address_delete",
2833
2833
"parameters": [
2834
2834
{
@@ -16619,17 +16619,13 @@
16619
16619
"description": {
16620
16620
"type": "string"
16621
16621
},
16622
- "gateway": {
16623
- "$ref": "#/components/schemas/NameOrId"
16624
- },
16625
16622
"name": {
16626
16623
"$ref": "#/components/schemas/Name"
16627
16624
}
16628
16625
},
16629
16626
"required": [
16630
16627
"address",
16631
16628
"description",
16632
- "gateway",
16633
16629
"name"
16634
16630
]
16635
16631
},
You can’t perform that action at this time.
0 commit comments