示例#1
0
        internal async IAsyncEnumerable <string> ListSecretVersionsAsync(string secretId)
        {
            var request = new ListSecretVersionsRequest
            {
                ParentAsSecretName = SecretName.FromProjectSecret(m_projectId, secretId),
            };
            var response = m_client.ListSecretVersionsAsync(request);

            await foreach (var item in response)
            {
                yield return(item.SecretVersionName.SecretVersionId);
            }
        }