Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -686,7 +686,8 @@
},
"ignoreErrors": {
"description": "Boolean describing if the component errors are ignores",
"type": "boolean"
"type": "boolean",
"default": false
},
"initTimeout": {
"description": "Initialization timeout",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -485,7 +485,8 @@
"x-ms-enum": {
"name": "ActiveRevisionsMode",
"modelAsString": true
}
},
"default": "Single"
},
"ingress": {
"$ref": "#/definitions/Ingress",
Expand Down Expand Up @@ -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",
Expand All @@ -652,7 +654,8 @@
"x-ms-enum": {
"name": "appProtocol",
"modelAsString": true
}
},
"default": "http"
},
"appPort": {
"format": "int32",
Expand Down Expand Up @@ -725,7 +728,8 @@
"x-ms-enum": {
"name": "IngressTransportMethod",
"modelAsString": true
}
},
"default": "auto"
},
"traffic": {
"description": "Traffic weights for app's revisions",
Expand All @@ -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.",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -432,6 +432,7 @@
"Single"
],
"type": "string",
"default": "Single",
"x-ms-enum": {
"name": "ActiveRevisionsMode",
"modelAsString": true
Expand Down Expand Up @@ -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",
Expand All @@ -574,6 +576,7 @@
"grpc"
],
"type": "string",
"default": "http",
"x-ms-enum": {
"name": "appProtocol",
"modelAsString": true
Expand Down Expand Up @@ -616,7 +619,8 @@
"x-ms-enum": {
"name": "IngressTransportMethod",
"modelAsString": true
}
},
"default": "auto"
},
"traffic": {
"description": "Traffic weights for app's revisions",
Expand All @@ -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"
}
}
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -331,6 +331,7 @@
},
"ignoreErrors": {
"description": "Boolean describing if the component errors are ignores",
"default": false,
"type": "boolean"
},
"initTimeout": {
Expand Down
23 changes: 23 additions & 0 deletions specification/app/resource-manager/readme.python.md
Original file line number Diff line number Diff line change
Expand Up @@ -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'
```