diff --git a/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/CommonDefinitions.json b/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/CommonDefinitions.json index ce5e1829c609..f897f792b9bf 100644 --- a/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/CommonDefinitions.json +++ b/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/CommonDefinitions.json @@ -686,7 +686,8 @@ }, "ignoreErrors": { "description": "Boolean describing if the component errors are ignores", - "type": "boolean" + "type": "boolean", + "default": false }, "initTimeout": { "description": "Initialization timeout", diff --git a/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/ContainerApps.json b/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/ContainerApps.json index c7b4539eba25..e3bf29daecc5 100644 --- a/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/ContainerApps.json +++ b/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/ContainerApps.json @@ -485,7 +485,8 @@ "x-ms-enum": { "name": "ActiveRevisionsMode", "modelAsString": true - } + }, + "default": "Single" }, "ingress": { "$ref": "#/definitions/Ingress", @@ -636,7 +637,8 @@ "properties": { "enabled": { "description": "Boolean indicating if the Dapr side car is enabled", - "type": "boolean" + "type": "boolean", + "default": false }, "appId": { "description": "Dapr application identifier", @@ -652,7 +654,8 @@ "x-ms-enum": { "name": "appProtocol", "modelAsString": true - } + }, + "default": "http" }, "appPort": { "format": "int32", @@ -725,7 +728,8 @@ "x-ms-enum": { "name": "IngressTransportMethod", "modelAsString": true - } + }, + "default": "auto" }, "traffic": { "description": "Traffic weights for app's revisions", @@ -749,7 +753,8 @@ }, "allowInsecure": { "description": "Bool indicating if HTTP connections to is allowed. If set to false HTTP connections are automatically redirected to HTTPS connections", - "type": "boolean" + "type": "boolean", + "default": "false" }, "ipSecurityRestrictions": { "description": "Rules to restrict incoming IP address.", diff --git a/specification/app/resource-manager/Microsoft.App/stable/2022-03-01/ContainerApps.json b/specification/app/resource-manager/Microsoft.App/stable/2022-03-01/ContainerApps.json index e8cff699eecb..c25fa2548852 100644 --- a/specification/app/resource-manager/Microsoft.App/stable/2022-03-01/ContainerApps.json +++ b/specification/app/resource-manager/Microsoft.App/stable/2022-03-01/ContainerApps.json @@ -432,6 +432,7 @@ "Single" ], "type": "string", + "default": "Single", "x-ms-enum": { "name": "ActiveRevisionsMode", "modelAsString": true @@ -561,7 +562,8 @@ "properties": { "enabled": { "description": "Boolean indicating if the Dapr side car is enabled", - "type": "boolean" + "type": "boolean", + "default": false }, "appId": { "description": "Dapr application identifier", @@ -574,6 +576,7 @@ "grpc" ], "type": "string", + "default": "http", "x-ms-enum": { "name": "appProtocol", "modelAsString": true @@ -616,7 +619,8 @@ "x-ms-enum": { "name": "IngressTransportMethod", "modelAsString": true - } + }, + "default": "auto" }, "traffic": { "description": "Traffic weights for app's revisions", @@ -640,7 +644,8 @@ }, "allowInsecure": { "description": "Bool indicating if HTTP connections to is allowed. If set to false HTTP connections are automatically redirected to HTTPS connections", - "type": "boolean" + "type": "boolean", + "default": "false" } } }, diff --git a/specification/app/resource-manager/Microsoft.App/stable/2022-03-01/DaprComponents.json b/specification/app/resource-manager/Microsoft.App/stable/2022-03-01/DaprComponents.json index be08f3636ea0..923f1e3a6a31 100644 --- a/specification/app/resource-manager/Microsoft.App/stable/2022-03-01/DaprComponents.json +++ b/specification/app/resource-manager/Microsoft.App/stable/2022-03-01/DaprComponents.json @@ -331,6 +331,7 @@ }, "ignoreErrors": { "description": "Boolean describing if the component errors are ignores", + "default": false, "type": "boolean" }, "initTimeout": { diff --git a/specification/app/resource-manager/readme.python.md b/specification/app/resource-manager/readme.python.md index 5b0cd54ef5a0..0e3cee2b0602 100644 --- a/specification/app/resource-manager/readme.python.md +++ b/specification/app/resource-manager/readme.python.md @@ -16,3 +16,26 @@ clear-output-folder: true no-namespace-folders: true output-folder: $(python-sdks-folder)/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers ``` + +``` yaml $(python) +directive: + - from: CommonDefinitions.json + where: $.definitions.DaprComponent.properties.ignoreErrors + transform: $['default'] = 'False' + + - from: ContainerApps.json + where: $.definitions.Dapr.properties.enabled + transform: $['default'] = 'False' + + - from: ContainerApps.json + where: $.definitions.Ingress.properties.external + transform: $['default'] = 'False' + + - from: ContainerApps.json + where: $.definitions.TrafficWeight.properties.latestRevision + transform: $['default'] = 'False' + + - from: ContainerApps.json + where: $.definitions.Ingress.properties.allowInsecure + transform: $['default'] = 'False' +``` \ No newline at end of file