Skip to content

arm-resource-action-no-segment

Full name
@azure-tools/typespec-azure-resource-manager/arm-resource-action-no-segment

The @armResourceAction decorator should not be used together with @segment. If you need to rename the action, use @action(...) instead or omit the segment entirely.

@armResourceAction(MyResource)
@segment("doSomething")
@post
op doAction(...ApiVersionParameter): void;
@armResourceAction(MyResource)
@post
op doAction(...ApiVersionParameter): void;
@armResourceAction(MyResource)
@action("doSomething")
@post
op doAction(...ApiVersionParameter): void;