Skip to content

Commit a810c3c

Browse files
authored
Add null value for job tier (#34333)
1 parent 30b8975 commit a810c3c

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

sdk/ml/azure-ai-ml/azure/ai/ml/constants/_job/job.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,15 +119,17 @@ class EntityNames:
119119
Basic = "basic"
120120
Standard = "standard"
121121
Premium = "premium"
122-
Null = "Null"
122+
Null = "null"
123123

124124
class RestNames:
125+
Null = "Null"
125126
Spot = "Spot"
126127
Basic = "Basic"
127128
Standard = "Standard"
128129
Premium = "Premium"
129130

130131
ENTITY_TO_REST = {
132+
EntityNames.Null: RestNames.Null,
131133
EntityNames.Spot: RestNames.Spot,
132134
EntityNames.Basic: RestNames.Basic,
133135
EntityNames.Standard: RestNames.Standard,

sdk/ml/azure-ai-ml/azure/ai/ml/entities/_job/queue_settings.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ class QueueSettings(RestTranslatableMixin, DictMixin):
2222
"""Queue settings for a pipeline job.
2323
2424
:ivar job_tier: Enum to determine the job tier. Possible values include: "Spot", "Basic",
25-
"Standard", "Premium".
25+
"Standard", "Premium", "Null".
2626
:vartype job_tier: str or ~azure.mgmt.machinelearningservices.models.JobTier
2727
:ivar priority: Controls the priority of the job on a compute.
2828
:vartype priority: str

0 commit comments

Comments
 (0)