/// <inheritdoc />
 public async override Task DeleteRoutineAsync(RoutineReference routineReference, DeleteRoutineOptions options = null, CancellationToken cancellationToken = default)
 {
     var request = CreateDeleteRoutineRequest(routineReference, options);
     await request.ExecuteAsync(cancellationToken).ConfigureAwait(false);
 }
        private DeleteRequest CreateDeleteRoutineRequest(RoutineReference routineReference, DeleteRoutineOptions options)
        {
            GaxPreconditions.CheckNotNull(routineReference, nameof(routineReference));
            var request = Service.Routines.Delete(routineReference.ProjectId, routineReference.DatasetId, routineReference.RoutineId);

            options?.ModifyRequest(request);
            request.PrettyPrint = PrettyPrint;
            return(request);
        }
 /// <summary>
 /// Asynchronously deletes the specified routine.
 /// </summary>
 /// <param name="routineReference">A fully-qualified identifier for the routine. Must not be null.</param>
 /// <param name="options">The options for the operation. May be null, in which case defaults will be supplied.</param>
 /// <param name="cancellationToken">The token to monitor for cancellation requests.</param>
 /// <returns>A task representing the asynchronous operation.</returns>
 public virtual Task DeleteRoutineAsync(RoutineReference routineReference, DeleteRoutineOptions options = null, CancellationToken cancellationToken = default) =>
 throw new NotImplementedException();
        /// <inheritdoc />
        public override void DeleteRoutine(RoutineReference routineReference, DeleteRoutineOptions options = null)
        {
            var request = CreateDeleteRoutineRequest(routineReference, options);

            request.Execute();
        }
 /// <summary>
 /// Asynchronously deletes the specified routine.
 /// This method just creates a <see cref="RoutineReference"/> and delegates to <see cref="DeleteRoutineAsync(RoutineReference, DeleteRoutineOptions, CancellationToken)"/>.
 /// </summary>
 /// <param name="projectId">The project ID. Must not be null.</param>
 /// <param name="datasetId">The dataset ID. Must not be null.</param>
 /// <param name="routineId">The routine ID. Must not be null.</param>
 /// <param name="options">The options for the operation. May be null, in which case defaults will be supplied.</param>
 /// <param name="cancellationToken">The token to monitor for cancellation requests.</param>
 /// <returns>A task representing the asynchronous operation.</returns>
 public virtual Task DeleteRoutineAsync(string projectId, string datasetId, string routineId, DeleteRoutineOptions options = null, CancellationToken cancellationToken = default) =>
 DeleteRoutineAsync(GetRoutineReference(projectId, datasetId, routineId), options, cancellationToken);
 /// <summary>
 /// Deletes the specified routine.
 /// </summary>
 /// <param name="routineReference">A fully-qualified identifier for the routine. Must not be null.</param>
 /// <param name="options">The options for the operation. May be null, in which case defaults will be supplied.</param>
 public virtual void DeleteRoutine(RoutineReference routineReference, DeleteRoutineOptions options = null) =>
 throw new NotImplementedException();
 /// <summary>
 /// Deletes the specified routine.
 /// This method just creates a <see cref="RoutineReference"/> and delegates to <see cref="DeleteRoutine(RoutineReference, DeleteRoutineOptions)"/>.
 /// </summary>
 /// <param name="projectId">The project ID. Must not be null.</param>
 /// <param name="datasetId">The dataset ID. Must not be null.</param>
 /// <param name="routineId">The routine ID. Must not be null.</param>
 /// <param name="options">The options for the operation. May be null, in which case defaults will be supplied.</param>
 public virtual void DeleteRoutine(string projectId, string datasetId, string routineId, DeleteRoutineOptions options = null) =>
 DeleteRoutine(GetRoutineReference(projectId, datasetId, routineId), options);
Example #8
0
 /// <summary>
 /// Asynchronously deletes this routine.
 /// This method just creates a <see cref="RoutineReference"/> and delegates to <see cref="BigQueryClient.DeleteRoutineAsync(RoutineReference, DeleteRoutineOptions, CancellationToken)"/>.
 /// </summary>
 /// <param name="options">The options for the operation. May be null, in which case defaults will be supplied.</param>
 /// <param name="cancellationToken">The token to monitor for cancellation requests.</param>
 /// <returns>A task representing the asynchronous operation.</returns>
 public Task DeleteAsync(DeleteRoutineOptions options = null, CancellationToken cancellationToken = default) =>
 _client.DeleteRoutineAsync(Reference, options, cancellationToken);
Example #9
0
 /// <summary>
 /// Deletes this routine.
 /// This method just creates a <see cref="RoutineReference"/> and delegates to <see cref="BigQueryClient.DeleteRoutine(RoutineReference, DeleteRoutineOptions)"/>.
 /// </summary>
 /// <param name="options">The options for the operation. May be null, in which case defaults will be supplied.</param>
 public void Delete(DeleteRoutineOptions options = null) => _client.DeleteRoutine(Reference, options);