@@ -515,6 +515,9 @@ class ManagedOnlineDeployment(OnlineDeployment):
515
515
:type code_path: Union[str, PathLike], optional
516
516
:param scoring_script: Scoring script name. Equivalent to code_configuration.code.scoring_script.
517
517
:type scoring_script: Union[str, PathLike], optional
518
+ :param egress_public_network_access: Wether to restrict communication between a deployment
519
+ and the Azure resources used to by the deployment. Allowed values are: "enabled", "disabled"
520
+ :param egress_public_network_access: str
518
521
"""
519
522
520
523
def __init__ (
@@ -538,12 +541,12 @@ def __init__(
538
541
instance_count : int = None ,
539
542
code_path : Union [str , PathLike ] = None , # promoted property from code_configuration.code
540
543
scoring_script : Union [str , PathLike ] = None , # promoted property from code_configuration.scoring_script
544
+ egress_public_network_access = None ,
541
545
** kwargs ,
542
546
):
543
547
544
548
kwargs ["type" ] = EndpointComputeType .MANAGED .value
545
549
self .private_network_connection = kwargs .pop ("private_network_connection" , None )
546
- self .egress_public_network_access = kwargs .pop ("egress_public_network_access" , None )
547
550
self .data_collector = kwargs .pop ("data_collector" , None )
548
551
549
552
super (ManagedOnlineDeployment , self ).__init__ (
@@ -569,6 +572,7 @@ def __init__(
569
572
)
570
573
571
574
self .readiness_probe = readiness_probe
575
+ self .egress_public_network_access = egress_public_network_access
572
576
573
577
def _to_dict (self ) -> Dict :
574
578
return ManagedOnlineDeploymentSchema (context = {BASE_PATH_CONTEXT_KEY : "./" }).dump (self )
@@ -702,4 +706,4 @@ def _validate_scale_settings(self) -> None:
702
706
target = ErrorTarget .ONLINE_DEPLOYMENT ,
703
707
no_personal_data_message = msg ,
704
708
error_category = ErrorCategory .USER_ERROR ,
705
- )
709
+ )
0 commit comments