/// <summary> /// Creates a Route resource in the specified project using the data included in the request. /// </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 <Operation, Operation> Insert(InsertRouteRequest request, gaxgrpc::CallSettings callSettings = null) { Modify_InsertRouteRequest(ref request, ref callSettings); Operation response = _callInsert.Sync(request, callSettings); GetGlobalOperationRequest pollRequest = GetGlobalOperationRequest.FromInitialResponse(response); request.PopulatePollRequestFields(pollRequest); return(new lro::Operation <Operation, Operation>(response.ToLroResponse(pollRequest.ToLroOperationName()), InsertOperationsClient)); }
/// <summary> /// Creates a Route resource in the specified project using the data included in the request. /// </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 <Operation, Operation> > InsertAsync(InsertRouteRequest request, gaxgrpc::CallSettings callSettings = null) { Modify_InsertRouteRequest(ref request, ref callSettings); Operation response = await _callInsert.Async(request, callSettings).ConfigureAwait(false); GetGlobalOperationRequest pollRequest = GetGlobalOperationRequest.FromInitialResponse(response); request.PopulatePollRequestFields(pollRequest); return(new lro::Operation <Operation, Operation>(response.ToLroResponse(pollRequest.ToLroOperationName()), InsertOperationsClient)); }