Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -444,9 +444,6 @@ partial void ProcessSessionsUpdateResponseContent(
/// Update a Session
/// </summary>
/// <param name="id"></param>
/// <param name="projectId">
/// The Project ID. Can be found in [Settings](https://www.browserbase.com/settings). Optional - if not provided, the project will be inferred from the API key.
/// </param>
/// <param name="status">
/// Set to `REQUEST_RELEASE` to request that the session complete. Use before session's timeout to avoid additional charges.
/// </param>
Expand All @@ -455,14 +452,12 @@ partial void ProcessSessionsUpdateResponseContent(
/// <exception cref="global::System.InvalidOperationException"></exception>
public async global::System.Threading.Tasks.Task<global::Browserbase.Session> SessionsUpdateAsync(
string id,
string? projectId = default,
global::Browserbase.SessionsUpdateRequestStatus status = default,
global::Browserbase.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default)
{
var __request = new global::Browserbase.SessionsUpdateRequest
{
ProjectId = projectId,
Status = status,
};

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,6 @@ public partial interface IBrowserbaseClient
/// Update a Session
/// </summary>
/// <param name="id"></param>
/// <param name="projectId">
/// The Project ID. Can be found in [Settings](https://www.browserbase.com/settings). Optional - if not provided, the project will be inferred from the API key.
/// </param>
/// <param name="status">
/// Set to `REQUEST_RELEASE` to request that the session complete. Use before session's timeout to avoid additional charges.
/// </param>
Expand All @@ -47,7 +44,6 @@ public partial interface IBrowserbaseClient
/// <exception cref="global::System.InvalidOperationException"></exception>
global::System.Threading.Tasks.Task<global::Browserbase.Session> SessionsUpdateAsync(
string id,
string? projectId = default,
global::Browserbase.SessionsUpdateRequestStatus status = default,
global::Browserbase.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,6 @@ namespace Browserbase
/// </summary>
public sealed partial class SessionsUpdateRequest
{
/// <summary>
/// The Project ID. Can be found in [Settings](https://www.browserbase.com/settings). Optional - if not provided, the project will be inferred from the API key.
/// </summary>
[global::System.Text.Json.Serialization.JsonPropertyName("projectId")]
public string? ProjectId { get; set; }

/// <summary>
/// Set to `REQUEST_RELEASE` to request that the session complete. Use before session's timeout to avoid additional charges.
/// </summary>
Expand All @@ -30,20 +24,15 @@ public sealed partial class SessionsUpdateRequest
/// <summary>
/// Initializes a new instance of the <see cref="SessionsUpdateRequest" /> class.
/// </summary>
/// <param name="projectId">
/// The Project ID. Can be found in [Settings](https://www.browserbase.com/settings). Optional - if not provided, the project will be inferred from the API key.
/// </param>
/// <param name="status">
/// Set to `REQUEST_RELEASE` to request that the session complete. Use before session's timeout to avoid additional charges.
/// </param>
#if NET7_0_OR_GREATER
[global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers]
#endif
public SessionsUpdateRequest(
string? projectId,
global::Browserbase.SessionsUpdateRequestStatus status)
{
this.ProjectId = projectId;
this.Status = status;
}

Expand Down
Loading