예제 #1
0
 /// <summary>
 /// Initializes a new instance of the CredentialStoreDto class.
 /// </summary>
 /// <param name="type">Possible values include: 'Database',
 /// 'CyberArk'</param>
 /// <param name="additionalConfiguration">Additional information
 /// specific to the type of the Credential Store.</param>
 public CredentialStoreDto(string name, CredentialStoreDtoType type, string additionalConfiguration = default(string), long?id = default(long?))
 {
     Name = name;
     Type = type;
     AdditionalConfiguration = additionalConfiguration;
     Id = id;
     CustomInit();
 }
예제 #2
0
        internal static string ToSerializedValue(this CredentialStoreDtoType value)
        {
            switch (value)
            {
            case CredentialStoreDtoType.Database:
                return("Database");

            case CredentialStoreDtoType.CyberArk:
                return("CyberArk");
            }
            return(null);
        }