@@ -1144,7 +1144,14 @@ def test_method_upsert_overload_3(self, client: Kernel) -> None:
11441144 item = client .vaults .items .upsert (
11451145 key = "x" ,
11461146 id_or_name = "id_or_name" ,
1147- spec = {"fields" : {"foo" : {"type" : "text" }}},
1147+ spec = {
1148+ "fields" : [
1149+ {
1150+ "name" : "name" ,
1151+ "type" : "text" ,
1152+ }
1153+ ]
1154+ },
11481155 type = "credential" ,
11491156 )
11501157 assert_matches_type (VaultItem , item , path = ["response" ])
@@ -1156,14 +1163,15 @@ def test_method_upsert_with_all_params_overload_3(self, client: Kernel) -> None:
11561163 key = "x" ,
11571164 id_or_name = "id_or_name" ,
11581165 spec = {
1159- "fields" : {
1160- "foo" : {
1166+ "fields" : [
1167+ {
1168+ "name" : "name" ,
11611169 "type" : "text" ,
11621170 "required" : True ,
11631171 "sensitive" : True ,
11641172 "value" : "x" ,
11651173 }
1166- } ,
1174+ ] ,
11671175 "description" : "description" ,
11681176 },
11691177 type = "credential" ,
@@ -1176,7 +1184,14 @@ def test_raw_response_upsert_overload_3(self, client: Kernel) -> None:
11761184 response = client .vaults .items .with_raw_response .upsert (
11771185 key = "x" ,
11781186 id_or_name = "id_or_name" ,
1179- spec = {"fields" : {"foo" : {"type" : "text" }}},
1187+ spec = {
1188+ "fields" : [
1189+ {
1190+ "name" : "name" ,
1191+ "type" : "text" ,
1192+ }
1193+ ]
1194+ },
11801195 type = "credential" ,
11811196 )
11821197
@@ -1191,7 +1206,14 @@ def test_streaming_response_upsert_overload_3(self, client: Kernel) -> None:
11911206 with client .vaults .items .with_streaming_response .upsert (
11921207 key = "x" ,
11931208 id_or_name = "id_or_name" ,
1194- spec = {"fields" : {"foo" : {"type" : "text" }}},
1209+ spec = {
1210+ "fields" : [
1211+ {
1212+ "name" : "name" ,
1213+ "type" : "text" ,
1214+ }
1215+ ]
1216+ },
11951217 type = "credential" ,
11961218 ) as response :
11971219 assert not response .is_closed
@@ -1209,15 +1231,29 @@ def test_path_params_upsert_overload_3(self, client: Kernel) -> None:
12091231 client .vaults .items .with_raw_response .upsert (
12101232 key = "x" ,
12111233 id_or_name = "" ,
1212- spec = {"fields" : {"foo" : {"type" : "text" }}},
1234+ spec = {
1235+ "fields" : [
1236+ {
1237+ "name" : "name" ,
1238+ "type" : "text" ,
1239+ }
1240+ ]
1241+ },
12131242 type = "credential" ,
12141243 )
12151244
12161245 with pytest .raises (ValueError , match = r"Expected a non-empty value for `key` but received ''" ):
12171246 client .vaults .items .with_raw_response .upsert (
12181247 key = "" ,
12191248 id_or_name = "id_or_name" ,
1220- spec = {"fields" : {"foo" : {"type" : "text" }}},
1249+ spec = {
1250+ "fields" : [
1251+ {
1252+ "name" : "name" ,
1253+ "type" : "text" ,
1254+ }
1255+ ]
1256+ },
12211257 type = "credential" ,
12221258 )
12231259
@@ -2349,7 +2385,14 @@ async def test_method_upsert_overload_3(self, async_client: AsyncKernel) -> None
23492385 item = await async_client .vaults .items .upsert (
23502386 key = "x" ,
23512387 id_or_name = "id_or_name" ,
2352- spec = {"fields" : {"foo" : {"type" : "text" }}},
2388+ spec = {
2389+ "fields" : [
2390+ {
2391+ "name" : "name" ,
2392+ "type" : "text" ,
2393+ }
2394+ ]
2395+ },
23532396 type = "credential" ,
23542397 )
23552398 assert_matches_type (VaultItem , item , path = ["response" ])
@@ -2361,14 +2404,15 @@ async def test_method_upsert_with_all_params_overload_3(self, async_client: Asyn
23612404 key = "x" ,
23622405 id_or_name = "id_or_name" ,
23632406 spec = {
2364- "fields" : {
2365- "foo" : {
2407+ "fields" : [
2408+ {
2409+ "name" : "name" ,
23662410 "type" : "text" ,
23672411 "required" : True ,
23682412 "sensitive" : True ,
23692413 "value" : "x" ,
23702414 }
2371- } ,
2415+ ] ,
23722416 "description" : "description" ,
23732417 },
23742418 type = "credential" ,
@@ -2381,7 +2425,14 @@ async def test_raw_response_upsert_overload_3(self, async_client: AsyncKernel) -
23812425 response = await async_client .vaults .items .with_raw_response .upsert (
23822426 key = "x" ,
23832427 id_or_name = "id_or_name" ,
2384- spec = {"fields" : {"foo" : {"type" : "text" }}},
2428+ spec = {
2429+ "fields" : [
2430+ {
2431+ "name" : "name" ,
2432+ "type" : "text" ,
2433+ }
2434+ ]
2435+ },
23852436 type = "credential" ,
23862437 )
23872438
@@ -2396,7 +2447,14 @@ async def test_streaming_response_upsert_overload_3(self, async_client: AsyncKer
23962447 async with async_client .vaults .items .with_streaming_response .upsert (
23972448 key = "x" ,
23982449 id_or_name = "id_or_name" ,
2399- spec = {"fields" : {"foo" : {"type" : "text" }}},
2450+ spec = {
2451+ "fields" : [
2452+ {
2453+ "name" : "name" ,
2454+ "type" : "text" ,
2455+ }
2456+ ]
2457+ },
24002458 type = "credential" ,
24012459 ) as response :
24022460 assert not response .is_closed
@@ -2414,14 +2472,28 @@ async def test_path_params_upsert_overload_3(self, async_client: AsyncKernel) ->
24142472 await async_client .vaults .items .with_raw_response .upsert (
24152473 key = "x" ,
24162474 id_or_name = "" ,
2417- spec = {"fields" : {"foo" : {"type" : "text" }}},
2475+ spec = {
2476+ "fields" : [
2477+ {
2478+ "name" : "name" ,
2479+ "type" : "text" ,
2480+ }
2481+ ]
2482+ },
24182483 type = "credential" ,
24192484 )
24202485
24212486 with pytest .raises (ValueError , match = r"Expected a non-empty value for `key` but received ''" ):
24222487 await async_client .vaults .items .with_raw_response .upsert (
24232488 key = "" ,
24242489 id_or_name = "id_or_name" ,
2425- spec = {"fields" : {"foo" : {"type" : "text" }}},
2490+ spec = {
2491+ "fields" : [
2492+ {
2493+ "name" : "name" ,
2494+ "type" : "text" ,
2495+ }
2496+ ]
2497+ },
24262498 type = "credential" ,
24272499 )
0 commit comments