@@ -108,6 +108,7 @@ def create(
108108 proxies : Union [bool , Iterable [session_create_params .ProxiesUnionMember1 ]] | NotGiven = NOT_GIVEN ,
109109 region : Literal ["us-west-2" , "us-east-1" , "eu-central-1" , "ap-southeast-1" ] | NotGiven = NOT_GIVEN ,
110110 api_timeout : int | NotGiven = NOT_GIVEN ,
111+ user_metadata : object | NotGiven = NOT_GIVEN ,
111112 # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
112113 # The extra values given here take precedence over values defined on the client or passed to this method.
113114 extra_headers : Headers | None = None ,
@@ -137,6 +138,8 @@ def create(
137138 api_timeout: Duration in seconds after which the session will automatically end. Defaults to
138139 the Project's `defaultTimeout`.
139140
141+ user_metadata: Arbitrary user metadata to attach to the session.
142+
140143 extra_headers: Send extra headers
141144
142145 extra_query: Add additional query parameters to the request
@@ -156,6 +159,7 @@ def create(
156159 "proxies" : proxies ,
157160 "region" : region ,
158161 "api_timeout" : api_timeout ,
162+ "user_metadata" : user_metadata ,
159163 },
160164 session_create_params .SessionCreateParams ,
161165 ),
@@ -362,6 +366,7 @@ async def create(
362366 proxies : Union [bool , Iterable [session_create_params .ProxiesUnionMember1 ]] | NotGiven = NOT_GIVEN ,
363367 region : Literal ["us-west-2" , "us-east-1" , "eu-central-1" , "ap-southeast-1" ] | NotGiven = NOT_GIVEN ,
364368 api_timeout : int | NotGiven = NOT_GIVEN ,
369+ user_metadata : object | NotGiven = NOT_GIVEN ,
365370 # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
366371 # The extra values given here take precedence over values defined on the client or passed to this method.
367372 extra_headers : Headers | None = None ,
@@ -391,6 +396,8 @@ async def create(
391396 api_timeout: Duration in seconds after which the session will automatically end. Defaults to
392397 the Project's `defaultTimeout`.
393398
399+ user_metadata: Arbitrary user metadata to attach to the session.
400+
394401 extra_headers: Send extra headers
395402
396403 extra_query: Add additional query parameters to the request
@@ -410,6 +417,7 @@ async def create(
410417 "proxies" : proxies ,
411418 "region" : region ,
412419 "api_timeout" : api_timeout ,
420+ "user_metadata" : user_metadata ,
413421 },
414422 session_create_params .SessionCreateParams ,
415423 ),
0 commit comments