private PropertyValueResource TryFillProjectVariableByConvention(ActionTemplateParameterResource template, TenantResource tenant, EnvironmentResource environment) { if (template.Name == VariableKeys.ProjectTenantVariables.TenantDatabasePassword) { return(new PropertyValueResource(RandomStringGenerator.Generate(16), isSensitive: true)); } return(null); }
private PropertyValueResource TryFillLibraryVariableByConvention(ActionTemplateParameterResource template, TenantResource tenant) { if (template.Name == VariableKeys.StandardTenantDetails.TruckAlias) { return(new PropertyValueResource(tenant.Name.Replace(" ", "-").ToLowerInvariant())); } return(null); }
private PropertyValueResource TryFillLibraryVariableByConvention(ActionTemplateParameterResource template, TenantResource tenant) { if (template.Name == VariableKeys.StandardTenantDetails.TenantAlias) { return(new PropertyValueResource(tenant.Name.Replace(" ", "-").ToLowerInvariant())); } if (template.Name == VariableKeys.StandardTenantDetails.TenantRegion) { return(new PropertyValueResource(Region.All.GetRandom().Alias)); } if (template.Name == VariableKeys.StandardTenantDetails.TenantContactEmail) { return(new PropertyValueResource(tenant.Name.Replace(" ", ".").ToLowerInvariant() + "@test.com")); } return(null); }
private PropertyValueResource TryFillProjectVariableByConvention(ActionTemplateParameterResource template, TenantResource tenant, EnvironmentResource environment) { return(null); }