当前位置: 首页>>代码示例>>TypeScript>>正文


TypeScript configuration.Configurations类代码示例

本文整理汇总了TypeScript中models/shared/configuration.Configurations的典型用法代码示例。如果您正苦于以下问题:TypeScript Configurations类的具体用法?TypeScript Configurations怎么用?TypeScript Configurations使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。


在下文中一共展示了Configurations类的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的TypeScript代码示例。

示例1: fromJSON

  static fromJSON(profileJson: ClusterProfileJSON): ClusterProfile {
    const profile = new ClusterProfile(profileJson.id,
                                       profileJson.plugin_id,
                                       Configurations.fromJSON(profileJson.properties));

    profile.errors(new Errors(profileJson.errors));
    return profile;
  }
开发者ID:GaneshSPatil,项目名称:gocd,代码行数:8,代码来源:types.ts

示例2: properties

 properties() {
   return this.__properties.allConfigurations();
 }
开发者ID:Skarlso,项目名称:gocd,代码行数:3,代码来源:roles_new.ts

示例3: deserialize

 static deserialize(data: PluginAttributesJSON) {
   return new PluginAttributes(data.auth_config_id, Configurations.fromJSON(data.properties));
 }
开发者ID:Skarlso,项目名称:gocd,代码行数:3,代码来源:roles_new.ts

示例4: fromJSON

 static fromJSON(data: SecretConfigJSON) {
   const configurations = Configurations.fromJSON(data.properties);
   const rules          = Rules.fromJSON(data.rules);
   return new SecretConfig(data.id, data.description, data.plugin_id, configurations, rules);
 }
开发者ID:,项目名称:,代码行数:5,代码来源:

示例5: fromJSON

 static fromJSON(data: AuthConfigJSON) {
   const configurations = Configurations.fromJSON(data.properties);
   const errors         = new Errors(data.errors);
   return new AuthConfig(data.id, data.plugin_id, configurations, errors);
 }
开发者ID:Skarlso,项目名称:gocd,代码行数:5,代码来源:auth_configs_new.ts

示例6: fromJSON

 static fromJSON(data: ArtifactStoreJSON) {
   return new ArtifactStore(data.id,
                            data.plugin_id,
                            Configurations.fromJSON(data.properties),
                            new Errors(data.errors));
 }
开发者ID:GaneshSPatil,项目名称:gocd,代码行数:6,代码来源:artifact_stores.ts


注:本文中的models/shared/configuration.Configurations类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。