internal static string ToSerializedValue(this EncryptionConfigType value) { switch (value) { case EncryptionConfigType.UserManaged: return("UserManaged"); case EncryptionConfigType.ServiceManaged: return("ServiceManaged"); } return(null); }
/// <summary> /// Initializes a new instance of the EncryptionConfig class. /// </summary> /// <param name="type">The type of encryption configuration being used. /// Currently the only supported types are 'UserManaged' and /// 'ServiceManaged'. Possible values include: 'UserManaged', /// 'ServiceManaged'</param> /// <param name="keyVaultMetaInfo">The Key Vault information for /// connecting to user managed encryption keys.</param> public EncryptionConfig(EncryptionConfigType type, KeyVaultMetaInfo keyVaultMetaInfo = default(KeyVaultMetaInfo)) { Type = type; KeyVaultMetaInfo = keyVaultMetaInfo; CustomInit(); }