diff --git a/src/generator/clientFactory.ts b/src/generator/clientFactory.ts index 9c861fd2b..228119497 100644 --- a/src/generator/clientFactory.ts +++ b/src/generator/clientFactory.ts @@ -56,8 +56,8 @@ export async function generateClientFactory(session: Session): Promis result += `${formatCommentAsBulletItem('credential - used to authorize requests. Usually a credential from azidentity.')}\n`; result += `${formatCommentAsBulletItem('options - pass nil to accept the default values.')}\n`; - result += `func NewClientFactory(${allClientParams.map(p => {return `${p.language.go!.name} ${formatParameterTypeName(p)}`;}).join(', ')}, credential azcore.TokenCredential, options *arm.ClientOptions) (*ClientFactory, error) {\n`; - result += '\t_, err := arm.NewClient("armcompute.ClientFactory", moduleVersion, credential, options)\n'; + result += `func NewClientFactory(${allClientParams.map(p => {return `${p.language.go!.name} ${formatParameterTypeName(p)}`;}).join(', ')}${allClientParams.length>0 ? ',' : ''} credential azcore.TokenCredential, options *arm.ClientOptions) (*ClientFactory, error) {\n`; + result += '\t_, err := arm.NewClient(moduleName+".ClientFactory", moduleVersion, credential, options)\n'; result += '\tif err != nil {\n'; result += '\t\treturn nil, err\n'; result += '\t}\n'; diff --git a/src/generator/operations.ts b/src/generator/operations.ts index cb07ef7a5..98d476929 100644 --- a/src/generator/operations.ts +++ b/src/generator/operations.ts @@ -141,7 +141,7 @@ export async function generateOperations(session: Session): Promise