File tree Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change 5
5
from dataclasses import dataclass , field
6
6
from typing import Union
7
7
8
- from oci .data_science .models import ModelDeployment , ModelDeploymentSummary
8
+ from oci .data_science .models import (
9
+ ModelDeployment ,
10
+ ModelDeploymentSummary ,
11
+ )
9
12
10
13
from ads .aqua .common .enums import Tags
11
14
from ads .aqua .constants import UNKNOWN , UNKNOWN_DICT
@@ -48,6 +51,7 @@ class AquaDeployment(DataClassSerializable):
48
51
lifecycle_details : str = None
49
52
shape_info : field (default_factory = ShapeInfo ) = None
50
53
tags : dict = None
54
+ environment_variables : dict = None
51
55
52
56
@classmethod
53
57
def from_oci_model_deployment (
@@ -75,6 +79,7 @@ def from_oci_model_deployment(
75
79
instance_configuration .model_deployment_instance_shape_config_details
76
80
)
77
81
instance_count = oci_model_deployment .model_deployment_configuration_details .model_configuration_details .scaling_policy .instance_count
82
+ environment_variables = oci_model_deployment .model_deployment_configuration_details .environment_configuration_details .environment_variables
78
83
shape_info = ShapeInfo (
79
84
instance_shape = instance_configuration .instance_shape_name ,
80
85
instance_count = instance_count ,
@@ -114,6 +119,7 @@ def from_oci_model_deployment(
114
119
region = region ,
115
120
),
116
121
tags = freeform_tags ,
122
+ environment_variables = environment_variables ,
117
123
)
118
124
119
125
You can’t perform that action at this time.
0 commit comments