本文整理匯總了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;
}
示例2: properties
properties() {
return this.__properties.allConfigurations();
}
示例3: deserialize
static deserialize(data: PluginAttributesJSON) {
return new PluginAttributes(data.auth_config_id, Configurations.fromJSON(data.properties));
}
示例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);
}
示例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);
}
示例6: fromJSON
static fromJSON(data: ArtifactStoreJSON) {
return new ArtifactStore(data.id,
data.plugin_id,
Configurations.fromJSON(data.properties),
new Errors(data.errors));
}