Skip to content

Commit

Permalink
Exclude flattened parameters from method signature (#796)
Browse files Browse the repository at this point in the history
  • Loading branch information
joheredi authored Nov 20, 2020
1 parent 456d54d commit e0d84d9
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 30 deletions.
2 changes: 1 addition & 1 deletion src/generators/utils/parameterUtils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ export function getOperationParameterSignatures(
) {
const operationParameters = filterOperationParameters(parameters, operation, {
includeContentType: true
});
}).filter(p => !p.isFlattened);

const operationRequests = operation.requests;
const overloadParameterDeclarations: ParameterWithDescription[][] = [];
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8296,7 +8296,7 @@ export class WebSiteManagementClient extends WebSiteManagementClientContext {
//
// (undocumented)
certificates: Certificates;
checkNameAvailability(request: ResourceNameAvailabilityRequest, name: string, typeParam: CheckNameResourceTypes, options?: WebSiteManagementClientCheckNameAvailabilityOptionalParams): Promise<WebSiteManagementClientCheckNameAvailabilityResponse>;
checkNameAvailability(name: string, typeParam: CheckNameResourceTypes, options?: WebSiteManagementClientCheckNameAvailabilityOptionalParams): Promise<WebSiteManagementClientCheckNameAvailabilityResponse>;
// Warning: (ae-forgotten-export) The symbol "DeletedWebApps" needs to be exported by the entry point index.d.ts
//
// (undocumented)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,6 @@ import {
WebSiteManagementClientGetSourceControlResponse,
WebSiteManagementClientUpdateSourceControlResponse,
WebSiteManagementClientListBillingMetersResponse,
ResourceNameAvailabilityRequest,
CheckNameResourceTypes,
WebSiteManagementClientCheckNameAvailabilityOptionalParams,
WebSiteManagementClientCheckNameAvailabilityResponse,
Expand Down Expand Up @@ -444,19 +443,16 @@ export class WebSiteManagementClient extends WebSiteManagementClientContext {

/**
* Description for Check if a resource name is available.
* @param request Name availability request.
* @param name Resource name to verify.
* @param typeParam Resource type used for verification.
* @param options The options parameters.
*/
checkNameAvailability(
request: ResourceNameAvailabilityRequest,
name: string,
typeParam: CheckNameResourceTypes,
options?: WebSiteManagementClientCheckNameAvailabilityOptionalParams
): Promise<WebSiteManagementClientCheckNameAvailabilityResponse> {
const operationArguments: coreHttp.OperationArguments = {
request,
name,
typeParam,
options: coreHttp.operationOptionsToRequestOptionsBase(options || {})
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -63748,20 +63748,11 @@
{
"kind": "Method",
"canonicalReference": "web-resource-manager!WebSiteManagementClient#checkNameAvailability:member(1)",
"docComment": "/**\n * Description for Check if a resource name is available.\n *\n * @param request - Name availability request.\n *\n * @param name - Resource name to verify.\n *\n * @param typeParam - Resource type used for verification.\n *\n * @param options - The options parameters.\n */\n",
"docComment": "/**\n * Description for Check if a resource name is available.\n *\n * @param name - Resource name to verify.\n *\n * @param typeParam - Resource type used for verification.\n *\n * @param options - The options parameters.\n */\n",
"excerptTokens": [
{
"kind": "Content",
"text": "checkNameAvailability(request: "
},
{
"kind": "Reference",
"text": "ResourceNameAvailabilityRequest",
"canonicalReference": "web-resource-manager!ResourceNameAvailabilityRequest:interface"
},
{
"kind": "Content",
"text": ", name: "
"text": "checkNameAvailability(name: "
},
{
"kind": "Content",
Expand Down Expand Up @@ -63814,39 +63805,32 @@
],
"isStatic": false,
"returnTypeTokenRange": {
"startIndex": 9,
"endIndex": 13
"startIndex": 7,
"endIndex": 11
},
"releaseTag": "Public",
"overloadIndex": 1,
"parameters": [
{
"parameterName": "request",
"parameterName": "name",
"parameterTypeTokenRange": {
"startIndex": 1,
"endIndex": 2
}
},
{
"parameterName": "name",
"parameterName": "typeParam",
"parameterTypeTokenRange": {
"startIndex": 3,
"endIndex": 4
}
},
{
"parameterName": "typeParam",
"parameterName": "options",
"parameterTypeTokenRange": {
"startIndex": 5,
"endIndex": 6
}
},
{
"parameterName": "options",
"parameterTypeTokenRange": {
"startIndex": 7,
"endIndex": 8
}
}
],
"name": "checkNameAvailability"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8296,7 +8296,7 @@ export class WebSiteManagementClient extends WebSiteManagementClientContext {
//
// (undocumented)
certificates: Certificates;
checkNameAvailability(request: ResourceNameAvailabilityRequest, name: string, typeParam: CheckNameResourceTypes, options?: WebSiteManagementClientCheckNameAvailabilityOptionalParams): Promise<WebSiteManagementClientCheckNameAvailabilityResponse>;
checkNameAvailability(name: string, typeParam: CheckNameResourceTypes, options?: WebSiteManagementClientCheckNameAvailabilityOptionalParams): Promise<WebSiteManagementClientCheckNameAvailabilityResponse>;
// Warning: (ae-forgotten-export) The symbol "DeletedWebApps" needs to be exported by the entry point index.d.ts
//
// (undocumented)
Expand Down

0 comments on commit e0d84d9

Please sign in to comment.