From 20f272d174bfb468a5f5a1da61a4b9b1905b39fa Mon Sep 17 00:00:00 2001 From: Ningting Pan Date: Thu, 16 Dec 2021 23:16:43 +0800 Subject: [PATCH 1/2] fix wrong type --- src/spring-cloud/azext_spring_cloud/_tanzu_component.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/spring-cloud/azext_spring_cloud/_tanzu_component.py b/src/spring-cloud/azext_spring_cloud/_tanzu_component.py index 89ee952fe0a..a69f781c53f 100644 --- a/src/spring-cloud/azext_spring_cloud/_tanzu_component.py +++ b/src/spring-cloud/azext_spring_cloud/_tanzu_component.py @@ -48,7 +48,7 @@ def create_api_portal(cmd, client, resource_group, service, enable_api_portal): ) api_portal_resource = models.GatewayResource( - properties = models.GatewayProperties( + properties = models.ApiPortalProperties( gateway_ids=[gateway_id] ) ) From 44682f62378e4c86baa9bc0d2f7f075e58fddeab Mon Sep 17 00:00:00 2001 From: Ningting Pan Date: Thu, 16 Dec 2021 23:22:47 +0800 Subject: [PATCH 2/2] fix --- src/spring-cloud/azext_spring_cloud/_tanzu_component.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/spring-cloud/azext_spring_cloud/_tanzu_component.py b/src/spring-cloud/azext_spring_cloud/_tanzu_component.py index a69f781c53f..7a35607dd5c 100644 --- a/src/spring-cloud/azext_spring_cloud/_tanzu_component.py +++ b/src/spring-cloud/azext_spring_cloud/_tanzu_component.py @@ -47,7 +47,7 @@ def create_api_portal(cmd, client, resource_group, service, enable_api_portal): child_name_1=DEFAULT_NAME ) - api_portal_resource = models.GatewayResource( + api_portal_resource = models.ApiPortalResource( properties = models.ApiPortalProperties( gateway_ids=[gateway_id] )