Skip to content

Commit 3f58ca6

Browse files
lwang2016DeMale
authored andcommitted
Update DeploymentScripts swagger to address swagger correctness issues (Azure#11949)
1 parent 58d665d commit 3f58ca6

File tree

2 files changed

+10
-2
lines changed

2 files changed

+10
-2
lines changed

specification/resources/resource-manager/Microsoft.Resources/preview/2019-10-01-preview/deploymentScripts.json

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -606,7 +606,8 @@
606606
"timeout": {
607607
"type": "string",
608608
"format": "duration",
609-
"description": "Maximum allowed script execution time specified in ISO 8601 format. Default value is PT1H"
609+
"default": "P1D",
610+
"description": "Maximum allowed script execution time specified in ISO 8601 format. Default value is P1D"
610611
}
611612
}
612613
},
@@ -633,6 +634,7 @@
633634
"OnSuccess",
634635
"OnExpiration"
635636
],
637+
"default": "Always",
636638
"x-ms-enum": {
637639
"name": "cleanupOptions",
638640
"modelAsString": true
@@ -771,10 +773,12 @@
771773
"description": "User-assigned managed identity.",
772774
"properties": {
773775
"principalId": {
776+
"readOnly": true,
774777
"type": "string",
775778
"description": "Azure Active Directory principal ID associated with this identity."
776779
},
777780
"clientId": {
781+
"readOnly": true,
778782
"type": "string",
779783
"description": "Client App Id associated with this identity."
780784
}

specification/resources/resource-manager/Microsoft.Resources/stable/2020-10-01/deploymentScripts.json

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -608,7 +608,8 @@
608608
"timeout": {
609609
"type": "string",
610610
"format": "duration",
611-
"description": "Maximum allowed script execution time specified in ISO 8601 format. Default value is PT1H"
611+
"default": "P1D",
612+
"description": "Maximum allowed script execution time specified in ISO 8601 format. Default value is P1D"
612613
}
613614
}
614615
},
@@ -635,6 +636,7 @@
635636
"OnSuccess",
636637
"OnExpiration"
637638
],
639+
"default": "Always",
638640
"x-ms-enum": {
639641
"name": "cleanupOptions",
640642
"modelAsString": true
@@ -769,10 +771,12 @@
769771
"description": "User-assigned managed identity.",
770772
"properties": {
771773
"principalId": {
774+
"readOnly": true,
772775
"type": "string",
773776
"description": "Azure Active Directory principal ID associated with this identity."
774777
},
775778
"clientId": {
779+
"readOnly": true,
776780
"type": "string",
777781
"description": "Client App Id associated with this identity."
778782
}

0 commit comments

Comments
 (0)