Skip to content

Commit

Permalink
code smells
Browse files Browse the repository at this point in the history
  • Loading branch information
qdraw committed Oct 2, 2024
1 parent 4aacb89 commit 89a26b1
Showing 1 changed file with 14 additions and 20 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,21 +3,21 @@
"contentVersion": "1.0.0.0",
"parameters": {
"logicAppName": {
"type": "String",
"type": "string",
"metadata": {
"description": "Name of the logic app."
}
},
"logicAppLocation": {
"defaultValue": "[resourceGroup().location]",
"type": "String",
"type": "string",
"metadata": {
"description": "Location of the logic app."
}
},
"dropbox_Connection_Name": {
"dropboxConnectionName": {
"defaultValue": "dropbox",
"type": "String",
"type": "string",
"metadata": {
"description": "Name of the connection."
}
Expand All @@ -26,21 +26,22 @@
"resources": [
{
"type": "Microsoft.Logic/workflows",
"name": "[parameters('logicAppName')]",
"apiVersion": "2016-06-01",
"name": "[parameters('logicAppName')]",
"location": "[parameters('logicAppLocation')]",
"dependsOn": [
"[resourceId('Microsoft.Web/connections', parameters('dropboxConnectionName'))]"
],
"properties": {
"state": "Disabled",
"definition": {
"$schema": "https://schema.management.azure.com/providers/Microsoft.Logic/schemas/2016-06-01/workflowdefinition.json#",
"contentVersion": "1.0.0.0",
"parameters": {
"$connections": {
"defaultValue": {},
"type": "Object"
},
"$authentication": {
"defaultValue": {},
"type": "SecureObject"
}
},
Expand Down Expand Up @@ -78,7 +79,6 @@
"Condition_2": {
"actions": {
"HTTP": {
"runAfter": {},
"type": "Http",
"inputs": {
"method": "POST",
Expand All @@ -90,15 +90,14 @@
"body": "@triggerBody()",
"authentication": {
"type": "Basic",
"username": "[email protected]",
"username": "[email protected]",
"password": ""
}
}
},
"Condition": {
"actions": {
"Copy_file": {
"runAfter": {},
"metadata": {
"flowSystemMetadata": {
"swaggerOperationId": "CopyFile"
Expand Down Expand Up @@ -155,21 +154,19 @@
"type": "If"
}
},
"runAfter": {},
"expression": "@contains(triggerOutputs()['headers']['Content-Type'], 'jpeg')",
"type": "If"
}
},
"outputs": {},
"description": "test"
},
"parameters": {
"$connections": {
"value": {
"dropbox": {
"id": "[concat('/subscriptions/', subscription().subscriptionId, '/providers/Microsoft.Web/locations/', parameters('logicAppLocation'), '/managedApis/', 'dropbox')]",
"connectionId": "[resourceId('Microsoft.Web/connections', parameters('dropbox_Connection_Name'))]",
"connectionName": "[parameters('dropbox_Connection_Name')]"
"connectionId": "[resourceId('Microsoft.Web/connections', parameters('dropboxConnectionName'))]",
"connectionName": "[parameters('dropboxConnectionName')]"
}
}
}
Expand All @@ -184,21 +181,18 @@
}
}
}
},
"dependsOn": [
"[resourceId('Microsoft.Web/connections', parameters('dropbox_Connection_Name'))]"
]
}
},
{
"type": "Microsoft.Web/connections",
"name": "[parameters('dropbox_Connection_Name')]",
"apiVersion": "2016-06-01",
"name": "[parameters('dropboxConnectionName')]",
"location": "[parameters('logicAppLocation')]",
"properties": {
"api": {
"id": "[concat('/subscriptions/', subscription().subscriptionId, '/providers/Microsoft.Web/locations/', parameters('logicAppLocation'), '/managedApis/', 'dropbox')]"
},
"displayName": "[parameters('dropbox_Connection_Name')]"
"displayName": "[parameters('dropboxConnectionName')]"
}
}
]
Expand Down

0 comments on commit 89a26b1

Please sign in to comment.