/// <summary> /// Deletes a recording. /// /// The caller must have `voice.recordings.delete` permission on the project. /// </summary> /// <param name="name"> /// The resource name of the Recording to be deleted. /// Must be of the form `projects/*/calls/*/recording/*`. /// </param> /// <param name="callSettings">If not null, applies overrides to this RPC call.</param> /// <returns>A Task containing the RPC response.</returns> public virtual stt::Task <Recording> DeleteRecordingAsync(RecordingName name, gaxgrpc::CallSettings callSettings = null) => DeleteRecordingAsync(new DeleteRecordingRequest { RecordingName = gax::GaxPreconditions.CheckNotNull(name, nameof(name)), }, callSettings);
/// <summary> /// Deletes a recording. /// /// The caller must have `voice.recordings.delete` permission on the project. /// </summary> /// <param name="name"> /// The resource name of the Recording to be deleted. /// Must be of the form `projects/*/calls/*/recording/*`. /// </param> /// <param name="cancellationToken">A <see cref="st::CancellationToken"/> to use for this RPC.</param> /// <returns>A Task containing the RPC response.</returns> public virtual stt::Task <Recording> DeleteRecordingAsync(RecordingName name, st::CancellationToken cancellationToken) => DeleteRecordingAsync(name, gaxgrpc::CallSettings.FromCancellationToken(cancellationToken));
/// <summary> /// Retrieves a Recording identified by the supplied resource name. /// /// The caller must have `voice.recordings.get` permission on the project. /// </summary> /// <param name="name"> /// The resource name of the Recording to retrieve. /// Must be of the form `projects/*/calls/*/recordings/*`. /// </param> /// <param name="callSettings">If not null, applies overrides to this RPC call.</param> /// <returns>The RPC response.</returns> public virtual Recording GetRecording(RecordingName name, gaxgrpc::CallSettings callSettings = null) => GetRecording(new GetRecordingRequest { RecordingName = gax::GaxPreconditions.CheckNotNull(name, nameof(name)), }, callSettings);