/// <summary> /// Initializes a new instance of the CredentialStoreResourceDto class. /// </summary> /// <param name="type">This enum describes the type of resources that /// can be stored in the Credential Store. When /// a new resource type is added, the default needs to be initialized /// in 3 places: /// 1. Existing tenants: At migration time. /// 2. Default tenant: At seed time in DefaultTenantCreator.cs. /// 3. New tenants: In TenantService.cs. Possible values include: /// 'AssetCredential', 'RobotCredential', 'BucketCredential', /// 'Secrets'</param> public CredentialStoreResourceDto(string name, CredentialStoreResourceDtoType type, long? id = default(long?)) { Name = name; Type = type; Id = id; CustomInit(); }
internal static string ToSerializedValue(this CredentialStoreResourceDtoType value) { switch (value) { case CredentialStoreResourceDtoType.AssetCredential: return("AssetCredential"); case CredentialStoreResourceDtoType.RobotCredential: return("RobotCredential"); } return(null); }