Skip to content

Commit

Permalink
use generated code for payload url in create webhook
Browse files Browse the repository at this point in the history
  • Loading branch information
HuiquanJiang-ms committed Jul 10, 2024
1 parent 99c72ac commit 26e04ba
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/acat/azext_acat/custom.py
Original file line number Diff line number Diff line change
Expand Up @@ -349,12 +349,11 @@ def _build_arguments_schema(cls, *args, **kwargs):
args_schema = super()._build_arguments_schema(*args, **kwargs)
from azure.cli.core.aaz import AAZListArg, AAZStrArg, AAZStrArgFormat

args_schema.payload_url._required = True
args_schema.content_type._required = False
args_schema.content_type._registered = False
args_schema.events._required = False
args_schema.events._registered = False
args_schema.payload_url._required = False
args_schema.payload_url._registered = False
args_schema.send_all_events._required = False
args_schema.send_all_events._registered = False
args_schema.status._required = False
Expand All @@ -378,7 +377,6 @@ def _build_arguments_schema(cls, *args, **kwargs):
default=[],
)
args_schema.events_with_default.Element = AAZStrArg()
args_schema.payload_url._required = True
args_schema.trigger_mode = AAZStrArg(
options=["--trigger-mode"],
arg_group="Properties",
Expand Down

0 comments on commit 26e04ba

Please sign in to comment.