Skip to content

Commit

Permalink
Adding optional to the script parameter (#14437)
Browse files Browse the repository at this point in the history
Co-authored-by: David Becher <[email protected]>
  • Loading branch information
thinkdavid and David Becher authored May 17, 2021
1 parent 478077c commit 4764179
Show file tree
Hide file tree
Showing 3 changed files with 29 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,19 +20,22 @@
"name": "DomainName",
"description": "Domain name of the Server",
"type": "String",
"visibility": "Visible"
"visibility": "Visible",
"optional": "Required"
},
{
"name": "BaseUserDN",
"description": "Base User DN of the Server",
"type": "String",
"visibility": "Visible"
"visibility": "Visible",
"optional": "Required"
},
{
"name": "Password",
"description": "Password for authenticating to the server",
"type": "SecureString",
"visibility": "Hidden"
"visibility": "Hidden",
"optional": "Required"
}
]
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,13 +21,15 @@
"name": "VM",
"description": "VM to set the storage policy on",
"type": "String",
"visibility": "Visible"
"visibility": "Visible",
"optional": "Required"
},
{
"name": "StoragePolicyName",
"description": "Name of the storage policy to set",
"type": "String",
"visibility": "Visible"
"visibility": "Visible",
"optional": "Required"
}
]
},
Expand All @@ -44,19 +46,22 @@
"name": "DomainName",
"description": "Domain name of the Server",
"type": "String",
"visibility": "Visible"
"visibility": "Visible",
"optional": "Required"
},
{
"name": "BaseUserDN",
"description": "Base User DN of the Server",
"type": "String",
"visibility": "Visible"
"visibility": "Visible",
"optional": "Required"
},
{
"name": "Password",
"description": "Password for authenticating to the server",
"type": "SecureString",
"visibility": "Hidden"
"visibility": "Hidden",
"optional": "Required"
}
]
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6728,6 +6728,19 @@
"name": "VisibilityParameterEnum",
"modelAsString": true
}
},
"optional": {
"description": "Is this parameter required or optional",
"type": "string",
"readOnly": true,
"enum": [
"Optional",
"Required"
],
"x-ms-enum": {
"name": "OptionalParamEnum",
"modelAsString": true
}
}
}
},
Expand Down

0 comments on commit 4764179

Please sign in to comment.