2222from .vendored_sdks .appplatform .v2020_11_01_preview import models as models_20201101preview
2323from .vendored_sdks .appplatform .v2021_06_01_preview import models as models_20210601preview
2424from .vendored_sdks .appplatform .v2021_09_01_preview import models as models_20210901preview
25+ from .vendored_sdks .appplatform .v2022_01_01_preview import models as models_20220101preview
2526from .vendored_sdks .appplatform .v2020_07_01 .models import _app_platform_management_client_enums as AppPlatformEnums
2627from .vendored_sdks .appplatform .v2020_11_01_preview import (
2728 AppPlatformManagementClient as AppPlatformManagementClient_20201101preview
4849import json
4950import base64
5051from collections import defaultdict
52+ from ._build_service import _update_default_build_agent_pool
5153
5254logger = get_logger (__name__ )
5355DEFAULT_DEPLOYMENT_NAME = "default"
6062DELETE_PRODUCTION_DEPLOYMENT_WARNING = "You are going to delete production deployment, the app will be inaccessible after this operation."
6163LOG_RUNNING_PROMPT = "This command usually takes minutes to run. Add '--verbose' parameter if needed."
6264
65+ DEFAULT_BUILD_SERVICE_NAME = "default"
6366
6467def spring_cloud_create (cmd , client , resource_group , name , location = None ,
6568 vnet = None , service_runtime_subnet = None , app_subnet = None , reserved_cidr_range = None ,
6669 service_runtime_network_resource_group = None , app_network_resource_group = None ,
6770 app_insights_key = None , app_insights = None , sampling_rate = None ,
6871 disable_app_insights = None , enable_java_agent = None ,
69- sku = None , tags = None , no_wait = False ):
72+ sku = None , tags = None , build_pool_size = None , no_wait = False ):
7073 """
7174 If app_insights_key, app_insights and disable_app_insights are all None,
7275 will still create an application insights and enable application insights.
@@ -101,6 +104,9 @@ def spring_cloud_create(cmd, client, resource_group, name, location=None,
101104 _update_application_insights_asc_create (cmd , resource_group , name , location ,
102105 app_insights_key , app_insights , sampling_rate ,
103106 disable_app_insights , no_wait )
107+ _update_default_build_agent_pool (
108+ cmd , client , resource_group , name , build_pool_size )
109+
104110 return poller
105111
106112
@@ -127,7 +133,7 @@ def _update_application_insights_asc_create(cmd, resource_group, name, location,
127133
128134
129135def spring_cloud_update (cmd , client , resource_group , name , app_insights_key = None , app_insights = None ,
130- disable_app_insights = None , sku = None , tags = None , no_wait = False ):
136+ disable_app_insights = None , sku = None , tags = None , build_pool_size = None , no_wait = False ):
131137 """
132138 TODO (jiec) app_insights_key, app_insights and disable_app_insights are marked as deprecated.
133139 Will be decommissioned in future releases.
@@ -149,6 +155,9 @@ def spring_cloud_update(cmd, client, resource_group, name, app_insights_key=None
149155 _update_application_insights_asc_update (cmd , resource_group , name , location ,
150156 app_insights_key , app_insights , disable_app_insights , no_wait )
151157
158+ _update_default_build_agent_pool (
159+ cmd , client , resource_group , name , build_pool_size )
160+
152161 # update service tags
153162 if tags is not None :
154163 updated_resource .tags = tags
0 commit comments