SecretList Event
Fires once for each secret when listing secrets.
Syntax
public event OnSecretListHandler OnSecretList; public delegate void OnSecretListHandler(object sender, GooglesecretsSecretListEventArgs e); public class GooglesecretsSecretListEventArgs : EventArgs { public string Name { get; } public string VersionId { get; } public string State { get; } public string CreationDate { get; } public string DestructionDate { get; } }
Public Event OnSecretList As OnSecretListHandler Public Delegate Sub OnSecretListHandler(sender As Object, e As GooglesecretsSecretListEventArgs) Public Class GooglesecretsSecretListEventArgs Inherits EventArgs Public ReadOnly Property Name As String Public ReadOnly Property VersionId As String Public ReadOnly Property State As String Public ReadOnly Property CreationDate As String Public ReadOnly Property DestructionDate As String End Class
Remarks
This event fires once for each secret or secret version returned when GetSecretInfo, ListSecrets, GetVersionInfo, or ListVersions is called. Note that for secrets, only the Name and CreationDate parameters will be populated.
Name reflects the name of the secret.
VersionId reflects the Id of the secret version.
State reflects the state of the secret version.
CreationDate reflects the creation date of the secret or secret version, formatted as an RFC 3339 UTC timestamp.
DestructionDate reflects the destruction date of the secret version, formatted as an RFC 3339 UTC timestamp, or empty if the secret version has not been destroyed.