Exemplo n.º 1
0
 /// <inheritdoc />
 public override Task DeleteHmacKeyAsync(string projectId, string accessId, DeleteHmacKeyOptions options = null, CancellationToken cancellationToken = default) =>
 CreateDeleteHmacKeyRequest(projectId, accessId, options).ExecuteAsync(cancellationToken);
Exemplo n.º 2
0
 /// <inheritdoc />
 public override void DeleteHmacKey(string projectId, string accessId, DeleteHmacKeyOptions options = null) =>
 CreateDeleteHmacKeyRequest(projectId, accessId, options).Execute();
Exemplo n.º 3
0
 /// <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();
Exemplo n.º 4
0
        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);
        }
Exemplo n.º 5
0
 /// <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();