/// <summary>Snippet for DeleteTagBindingAsync</summary> public async Task DeleteTagBindingRequestObjectAsync() { // Snippet: DeleteTagBindingAsync(DeleteTagBindingRequest, CallSettings) // Additional: DeleteTagBindingAsync(DeleteTagBindingRequest, CancellationToken) // Create client TagBindingsClient tagBindingsClient = await TagBindingsClient.CreateAsync(); // Initialize request argument(s) DeleteTagBindingRequest request = new DeleteTagBindingRequest { TagBindingName = TagBindingName.FromTagBinding("[TAG_BINDING]"), }; // Make the request Operation <Empty, DeleteTagBindingMetadata> response = await tagBindingsClient.DeleteTagBindingAsync(request); // Poll until the returned long-running operation is complete Operation <Empty, DeleteTagBindingMetadata> completedResponse = await response.PollUntilCompletedAsync(); // Retrieve the operation result Empty result = completedResponse.Result; // Or get the name of the operation string operationName = response.Name; // This name can be stored, then the long-running operation retrieved later by name Operation <Empty, DeleteTagBindingMetadata> retrievedResponse = await tagBindingsClient.PollOnceDeleteTagBindingAsync(operationName); // Check if the retrieved long-running operation has completed if (retrievedResponse.IsCompleted) { // If it has completed, then access the result Empty retrievedResult = retrievedResponse.Result; } // End snippet }
/// <summary> /// Deletes a TagBinding. /// </summary> /// <param name="request">The request object containing all of the parameters for the API call.</param> /// <param name="callSettings">If not null, applies overrides to this RPC call.</param> /// <returns>A Task containing the RPC response.</returns> public override async stt::Task <lro::Operation <wkt::Empty, DeleteTagBindingMetadata> > DeleteTagBindingAsync(DeleteTagBindingRequest request, gaxgrpc::CallSettings callSettings = null) { Modify_DeleteTagBindingRequest(ref request, ref callSettings); return(new lro::Operation <wkt::Empty, DeleteTagBindingMetadata>(await _callDeleteTagBinding.Async(request, callSettings).ConfigureAwait(false), DeleteTagBindingOperationsClient)); }
/// <summary> /// Deletes a TagBinding. /// </summary> /// <param name="request">The request object containing all of the parameters for the API call.</param> /// <param name="callSettings">If not null, applies overrides to this RPC call.</param> /// <returns>The RPC response.</returns> public override lro::Operation <wkt::Empty, DeleteTagBindingMetadata> DeleteTagBinding(DeleteTagBindingRequest request, gaxgrpc::CallSettings callSettings = null) { Modify_DeleteTagBindingRequest(ref request, ref callSettings); return(new lro::Operation <wkt::Empty, DeleteTagBindingMetadata>(_callDeleteTagBinding.Sync(request, callSettings), DeleteTagBindingOperationsClient)); }
partial void Modify_DeleteTagBindingRequest(ref DeleteTagBindingRequest request, ref gaxgrpc::CallSettings settings);
/// <summary> /// Deletes a TagBinding. /// </summary> /// <param name="request">The request object containing all of the parameters for the API call.</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 <lro::Operation <wkt::Empty, DeleteTagBindingMetadata> > DeleteTagBindingAsync(DeleteTagBindingRequest request, st::CancellationToken cancellationToken) => DeleteTagBindingAsync(request, gaxgrpc::CallSettings.FromCancellationToken(cancellationToken));
/// <summary> /// Deletes a TagBinding. /// </summary> /// <param name="request">The request object containing all of the parameters for the API call.</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 <lro::Operation <wkt::Empty, DeleteTagBindingMetadata> > DeleteTagBindingAsync(DeleteTagBindingRequest request, gaxgrpc::CallSettings callSettings = null) => throw new sys::NotImplementedException();