From 9af2978561850d3d8f28a8772795acfbfd98e74b Mon Sep 17 00:00:00 2001 From: iscai-msft <43154838+iscai-msft@users.noreply.github.com> Date: Wed, 27 Mar 2024 16:29:42 -0400 Subject: [PATCH] [tcgc] rename lroMethod.initialOperation -> lroMethod.operation (#536) --- .../changes/rename_initial_operation-2024-2-27-14-56-44.md | 7 +++++++ packages/typespec-client-generator-core/src/interfaces.ts | 1 - packages/typespec-client-generator-core/src/package.ts | 2 +- 3 files changed, 8 insertions(+), 2 deletions(-) create mode 100644 .chronus/changes/rename_initial_operation-2024-2-27-14-56-44.md diff --git a/.chronus/changes/rename_initial_operation-2024-2-27-14-56-44.md b/.chronus/changes/rename_initial_operation-2024-2-27-14-56-44.md new file mode 100644 index 0000000000..0946daeeaa --- /dev/null +++ b/.chronus/changes/rename_initial_operation-2024-2-27-14-56-44.md @@ -0,0 +1,7 @@ +--- +changeKind: breaking +packages: + - "@azure-tools/typespec-client-generator-core" +--- + +git status \ No newline at end of file diff --git a/packages/typespec-client-generator-core/src/interfaces.ts b/packages/typespec-client-generator-core/src/interfaces.ts index a3ffa0a207..4b8d3e90a1 100644 --- a/packages/typespec-client-generator-core/src/interfaces.ts +++ b/packages/typespec-client-generator-core/src/interfaces.ts @@ -500,7 +500,6 @@ export interface SdkPagingServiceMethod diff --git a/packages/typespec-client-generator-core/src/package.ts b/packages/typespec-client-generator-core/src/package.ts index eb2130db58..668669ce4f 100644 --- a/packages/typespec-client-generator-core/src/package.ts +++ b/packages/typespec-client-generator-core/src/package.ts @@ -157,7 +157,7 @@ function getSdkLroServiceMethod< ...basicServiceMethod, kind: "lro", __raw_lro_metadata: metadata, - initialOperation: diagnostics.pipe( + operation: diagnostics.pipe( getSdkServiceOperation( context, metadata.operation,