Skip to content

Commit

Permalink
feat: update
Browse files Browse the repository at this point in the history
  • Loading branch information
wenytang-ms committed Aug 2, 2024
1 parent 42e823c commit d538370
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
8 changes: 4 additions & 4 deletions src/azure/ApiCenterDefines/ApiCenterApi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ export type IApiCenterApisBase = {
getNextLink: () => string | undefined;
getChild: (context: ISubscriptionContext, content: string) => Promise<GeneralApiCenterApi[]>;
generateChild: (data: GeneralApiCenterApi) => IApiCenterApiBase;
}
};

export class ApiCenterApisManagement implements IApiCenterApisBase {
constructor(public data: ApiCenter) { }
Expand Down Expand Up @@ -51,7 +51,7 @@ export class ApiCenterApisDataplane implements IApiCenterApisBase {
return this.data.name;
}

Check warning on line 52 in src/azure/ApiCenterDefines/ApiCenterApi.ts

View check run for this annotation

Codecov / codecov/patch

src/azure/ApiCenterDefines/ApiCenterApi.ts#L51-L52

Added lines #L51 - L52 were not covered by tests
getName(): string {
return this.data.name
return this.data.name;
}

Check warning on line 55 in src/azure/ApiCenterDefines/ApiCenterApi.ts

View check run for this annotation

Codecov / codecov/patch

src/azure/ApiCenterDefines/ApiCenterApi.ts#L54-L55

Added lines #L54 - L55 were not covered by tests
_nextLink: string | undefined;
getNextLink(): string | undefined {
Expand All @@ -71,8 +71,8 @@ export class ApiCenterApisDataplane implements IApiCenterApisBase {
export type IApiCenterApiBase = {
_nextLink: string | undefined;
getNextLink: () => string | undefined;
getName: () => string,
getId: () => string,
getName: () => string;
getId: () => string;
getLable: () => string;
generateChild: () => IVersionsBase;
};
Expand Down
2 changes: 1 addition & 1 deletion src/azure/ApiCenterDefines/ApiCenterDefinition.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ export type IDefinitionsBase = {
getNextLink: () => string | undefined;
getChild: (context: ISubscriptionContext, apiName: string, apiServiceName: string) => Promise<GeneralApiCenterApiVersionDefinition[]>;
generateChild: (data: GeneralApiCenterApiVersionDefinition) => IDefinitionBase;
}
};

export class ApiCenterVersionDefinitionsManagement implements IDefinitionsBase {
constructor(public data: ApiCenterApiVersion) { }
Expand Down
2 changes: 1 addition & 1 deletion src/azure/ApiCenterDefines/ApiCenterVersion.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ export type IVersionsBase = {
getNextLink: () => string | undefined;
getChild: (context: ISubscriptionContext, apiName: string) => Promise<GeneralApiCenterApiVersion[]>;
generateChild: (data: GeneralApiCenterApiVersion) => IVersionBase;
}
};

export class ApiCenterVersionsManagement implements IVersionsBase {
constructor(public data: ApiCenterApi) { }
Expand Down

0 comments on commit d538370

Please sign in to comment.