/// <inheritdoc /> public override Task DeleteHmacKeyAsync(string projectId, string accessId, DeleteHmacKeyOptions options = null, CancellationToken cancellationToken = default) => CreateDeleteHmacKeyRequest(projectId, accessId, options).ExecuteAsync(cancellationToken);
/// <inheritdoc /> public override void DeleteHmacKey(string projectId, string accessId, DeleteHmacKeyOptions options = null) => CreateDeleteHmacKeyRequest(projectId, accessId, options).Execute();
/// <summary> /// Asynchronously deletes an HMAC key, which must already have been deactivated. /// </summary> /// <param name="projectId">The ID of the project containing the HMAC key to delete. </param> /// <param name="accessId">The ID of the HMAC key to delete. Must not be null.</param> /// <param name="options">Additional options for the operation. May be null, in which case appropriate defaults will be used.</param> /// <param name="cancellationToken">The token to monitor for cancellation requests.</param> /// <returns>A task representing the asynchronous operation.</returns> public virtual Task DeleteHmacKeyAsync(string projectId, string accessId, DeleteHmacKeyOptions options = null, CancellationToken cancellationToken = default) => throw new NotImplementedException();
private HmacKeysResource.DeleteRequest CreateDeleteHmacKeyRequest(string projectId, string accessId, DeleteHmacKeyOptions options) { GaxPreconditions.CheckNotNull(projectId, nameof(projectId)); GaxPreconditions.CheckNotNull(accessId, nameof(accessId)); var request = Service.Projects.HmacKeys.Delete(projectId, accessId); request.ModifyRequest += _versionHeaderAction; options?.ModifyRequest(request); return(request); }
/// <summary> /// Synchronously deletes an HMAC key, which must already have been deactivated. /// </summary> /// <param name="projectId">The ID of the project containing the HMAC key to delete. </param> /// <param name="accessId">The ID of the HMAC key to delete. Must not be null.</param> /// <param name="options">Additional options for the operation. May be null, in which case appropriate defaults will be used.</param> public virtual void DeleteHmacKey(string projectId, string accessId, DeleteHmacKeyOptions options = null) => throw new NotImplementedException();