/// <summary> /// Replace the data for the specified group. /// Fails if the group does not exist. /// </summary> /// <param name="group"> /// Required. The group which replaces the resource on the server. /// </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 <ErrorGroup> UpdateGroupAsync(ErrorGroup group, gaxgrpc::CallSettings callSettings = null) => UpdateGroupAsync(new UpdateGroupRequest { Group = gax::GaxPreconditions.CheckNotNull(group, nameof(group)), }, callSettings);
/// <summary> /// Replace the data for the specified group. /// Fails if the group does not exist. /// </summary> /// <param name="group"> /// Required. The group which replaces the resource on the server. /// </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 <ErrorGroup> UpdateGroupAsync(ErrorGroup group, st::CancellationToken cancellationToken) => UpdateGroupAsync(group, gaxgrpc::CallSettings.FromCancellationToken(cancellationToken));
/// <summary> /// Replace the data for the specified group. /// Fails if the group does not exist. /// </summary> /// <param name="group"> /// [Required] The group which replaces the resource on the server. /// </param> /// <param name="cancellationToken"> /// A <see cref="CancellationToken"/> to use for this RPC. /// </param> /// <returns> /// A Task containing the RPC response. /// </returns> public virtual Task <ErrorGroup> UpdateGroupAsync( ErrorGroup group, CancellationToken cancellationToken) => UpdateGroupAsync( group, CallSettings.FromCancellationToken(cancellationToken));