From 0b3d274090cf9bac97995cb4803d30451f9175e7 Mon Sep 17 00:00:00 2001 From: ninpan-ms <71061174+ninpan-ms@users.noreply.github.com> Date: Mon, 20 Dec 2021 12:54:41 +0800 Subject: [PATCH] fix wrong type (#40) * fix wrong type * fix --- src/spring-cloud/azext_spring_cloud/_tanzu_component.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/spring-cloud/azext_spring_cloud/_tanzu_component.py b/src/spring-cloud/azext_spring_cloud/_tanzu_component.py index 89ee952fe0a..7a35607dd5c 100644 --- a/src/spring-cloud/azext_spring_cloud/_tanzu_component.py +++ b/src/spring-cloud/azext_spring_cloud/_tanzu_component.py @@ -47,8 +47,8 @@ def create_api_portal(cmd, client, resource_group, service, enable_api_portal): child_name_1=DEFAULT_NAME ) - api_portal_resource = models.GatewayResource( - properties = models.GatewayProperties( + api_portal_resource = models.ApiPortalResource( + properties = models.ApiPortalProperties( gateway_ids=[gateway_id] ) )