File tree Expand file tree Collapse file tree 2 files changed +9
-1
lines changed
Expand file tree Collapse file tree 2 files changed +9
-1
lines changed Original file line number Diff line number Diff line change 44using AutoSDK . Naming . Clients ;
55using AutoSDK . Serialization . Form ;
66
7+ #pragma warning disable CA1308
8+
79namespace AutoSDK . Models ;
810
911public record struct EndPoint (
@@ -24,6 +26,7 @@ public record struct EndPoint(
2426 string Summary ,
2527 string Description ,
2628 string BaseUrlSummary ,
29+ string CliAction ,
2730 Settings Settings ,
2831 Settings GlobalSettings ,
2932 bool IsDeprecated ,
@@ -169,6 +172,11 @@ public static EndPoint FromSchema(OperationContext operation)
169172 Summary : operation . Operation . GetXmlDocumentationSummary ( ) ,
170173 Description : operation . Operation . Description ?? string . Empty ,
171174 BaseUrlSummary : string . Empty ,
175+ CliAction :
176+ operation . Operation . Extensions
177+ . FirstOrDefault ( x => x . Key == "x-cli-action" )
178+ . Value ? . ToString ( ) ??
179+ operation . MethodName . FirstWord ( ) . ToLowerInvariant ( ) ,
172180 Settings : operation . Settings ,
173181 GlobalSettings : operation . GlobalSettings ,
174182 IsDeprecated : operation . Operation . Deprecated ,
Original file line number Diff line number Diff line change @@ -54,7 +54,7 @@ partial void AfterRequest(
5454" ) . Inject ( ) }
5555
5656 public { endPoint . NotAsyncMethodName } Command({ clientType } client) : base(
57- name: ""{ endPoint . NotAsyncMethodName . FirstWord ( ) . ToLowerInvariant ( ) } "",
57+ name: ""{ endPoint . CliAction } "",
5858 description: ""{ endPoint . Description } "")
5959 {{
6060 _client = client;
You can’t perform that action at this time.
0 commit comments