本文整理汇总了TypeScript中core/account/AccountService.AccountService.getAccountDetails方法的典型用法代码示例。如果您正苦于以下问题:TypeScript AccountService.getAccountDetails方法的具体用法?TypeScript AccountService.getAccountDetails怎么用?TypeScript AccountService.getAccountDetails使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类core/account/AccountService.AccountService
的用法示例。
在下文中一共展示了AccountService.getAccountDetails方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的TypeScript代码示例。
示例1: restoreSnapshot
public static restoreSnapshot(app: Application, account: string, timestamp: number): IPromise<ITask> {
return AccountService.getAccountDetails(account).then(accountDetail => {
const jobs = this.buildRestoreSnapshotJob(app, accountDetail, timestamp);
return TaskExecutor.executeTask({
job: jobs,
application: app,
description: `Restore Snapshot ${timestamp} of application: ${app.name} for account: ${accountDetail.name}`,
});
});
}
示例2: normalizeSecurityGroup
public normalizeSecurityGroup(securityGroup: ISecurityGroup): IPromise<ISecurityGroup> {
return AccountService.getAccountDetails(securityGroup.account).then((accountDetails: IAccountDetails) => {
return this.providerServiceDelegate
.getDelegate<any>(
securityGroup.provider || securityGroup.type,
'securityGroup.transformer',
accountDetails && accountDetails.skin,
)
.normalizeSecurityGroup(securityGroup);
});
}
示例3:
const accountDetailPromises = accounts.map(account => AccountService.getAccountDetails(account));