@@ -34,7 +34,7 @@ def test_method_create(self, client: Cloudflare) -> None:
3434 body = [
3535 {
3636 "name" : "MY_API_KEY" ,
37- "scopes" : ["workers" , "ai_gateway" ],
37+ "scopes" : ["workers" , "ai_gateway" , "dex" , "access" ],
3838 "value" : "api-token-secret-123" ,
3939 }
4040 ],
@@ -49,7 +49,7 @@ def test_raw_response_create(self, client: Cloudflare) -> None:
4949 body = [
5050 {
5151 "name" : "MY_API_KEY" ,
52- "scopes" : ["workers" , "ai_gateway" ],
52+ "scopes" : ["workers" , "ai_gateway" , "dex" , "access" ],
5353 "value" : "api-token-secret-123" ,
5454 }
5555 ],
@@ -68,7 +68,7 @@ def test_streaming_response_create(self, client: Cloudflare) -> None:
6868 body = [
6969 {
7070 "name" : "MY_API_KEY" ,
71- "scopes" : ["workers" , "ai_gateway" ],
71+ "scopes" : ["workers" , "ai_gateway" , "dex" , "access" ],
7272 "value" : "api-token-secret-123" ,
7373 }
7474 ],
@@ -90,7 +90,7 @@ def test_path_params_create(self, client: Cloudflare) -> None:
9090 body = [
9191 {
9292 "name" : "MY_API_KEY" ,
93- "scopes" : ["workers" , "ai_gateway" ],
93+ "scopes" : ["workers" , "ai_gateway" , "dex" , "access" ],
9494 "value" : "api-token-secret-123" ,
9595 }
9696 ],
@@ -103,7 +103,7 @@ def test_path_params_create(self, client: Cloudflare) -> None:
103103 body = [
104104 {
105105 "name" : "MY_API_KEY" ,
106- "scopes" : ["workers" , "ai_gateway" ],
106+ "scopes" : ["workers" , "ai_gateway" , "dex" , "access" ],
107107 "value" : "api-token-secret-123" ,
108108 }
109109 ],
@@ -128,7 +128,7 @@ def test_method_list_with_all_params(self, client: Cloudflare) -> None:
128128 order = "name" ,
129129 page = 2 ,
130130 per_page = 20 ,
131- scopes = [["workers" , "ai_gateway" ]],
131+ scopes = [["workers" , "ai_gateway" , "dex" , "access" ]],
132132 search = "search" ,
133133 )
134134 assert_matches_type (SyncV4PagePaginationArray [SecretListResponse ], secret , path = ["response" ])
@@ -292,7 +292,7 @@ def test_method_duplicate(self, client: Cloudflare) -> None:
292292 account_id = "985e105f4ecef8ad9ca31a8372d0c353" ,
293293 store_id = "023e105f4ecef8ad9ca31a8372d0c353" ,
294294 name = "MY_API_KEY" ,
295- scopes = ["workers" , "ai_gateway" ],
295+ scopes = ["workers" , "ai_gateway" , "dex" , "access" ],
296296 )
297297 assert_matches_type (Optional [SecretDuplicateResponse ], secret , path = ["response" ])
298298
@@ -304,7 +304,7 @@ def test_method_duplicate_with_all_params(self, client: Cloudflare) -> None:
304304 account_id = "985e105f4ecef8ad9ca31a8372d0c353" ,
305305 store_id = "023e105f4ecef8ad9ca31a8372d0c353" ,
306306 name = "MY_API_KEY" ,
307- scopes = ["workers" , "ai_gateway" ],
307+ scopes = ["workers" , "ai_gateway" , "dex" , "access" ],
308308 comment = "info about my secret" ,
309309 )
310310 assert_matches_type (Optional [SecretDuplicateResponse ], secret , path = ["response" ])
@@ -317,7 +317,7 @@ def test_raw_response_duplicate(self, client: Cloudflare) -> None:
317317 account_id = "985e105f4ecef8ad9ca31a8372d0c353" ,
318318 store_id = "023e105f4ecef8ad9ca31a8372d0c353" ,
319319 name = "MY_API_KEY" ,
320- scopes = ["workers" , "ai_gateway" ],
320+ scopes = ["workers" , "ai_gateway" , "dex" , "access" ],
321321 )
322322
323323 assert response .is_closed is True
@@ -333,7 +333,7 @@ def test_streaming_response_duplicate(self, client: Cloudflare) -> None:
333333 account_id = "985e105f4ecef8ad9ca31a8372d0c353" ,
334334 store_id = "023e105f4ecef8ad9ca31a8372d0c353" ,
335335 name = "MY_API_KEY" ,
336- scopes = ["workers" , "ai_gateway" ],
336+ scopes = ["workers" , "ai_gateway" , "dex" , "access" ],
337337 ) as response :
338338 assert not response .is_closed
339339 assert response .http_request .headers .get ("X-Stainless-Lang" ) == "python"
@@ -352,7 +352,7 @@ def test_path_params_duplicate(self, client: Cloudflare) -> None:
352352 account_id = "" ,
353353 store_id = "023e105f4ecef8ad9ca31a8372d0c353" ,
354354 name = "MY_API_KEY" ,
355- scopes = ["workers" , "ai_gateway" ],
355+ scopes = ["workers" , "ai_gateway" , "dex" , "access" ],
356356 )
357357
358358 with pytest .raises (ValueError , match = r"Expected a non-empty value for `store_id` but received ''" ):
@@ -361,7 +361,7 @@ def test_path_params_duplicate(self, client: Cloudflare) -> None:
361361 account_id = "985e105f4ecef8ad9ca31a8372d0c353" ,
362362 store_id = "" ,
363363 name = "MY_API_KEY" ,
364- scopes = ["workers" , "ai_gateway" ],
364+ scopes = ["workers" , "ai_gateway" , "dex" , "access" ],
365365 )
366366
367367 with pytest .raises (ValueError , match = r"Expected a non-empty value for `secret_id` but received ''" ):
@@ -370,7 +370,7 @@ def test_path_params_duplicate(self, client: Cloudflare) -> None:
370370 account_id = "985e105f4ecef8ad9ca31a8372d0c353" ,
371371 store_id = "023e105f4ecef8ad9ca31a8372d0c353" ,
372372 name = "MY_API_KEY" ,
373- scopes = ["workers" , "ai_gateway" ],
373+ scopes = ["workers" , "ai_gateway" , "dex" , "access" ],
374374 )
375375
376376 @pytest .mark .skip (reason = "TODO: investigate prism error for 422 Unprocessable Entity" )
@@ -391,7 +391,7 @@ def test_method_edit_with_all_params(self, client: Cloudflare) -> None:
391391 account_id = "985e105f4ecef8ad9ca31a8372d0c353" ,
392392 store_id = "023e105f4ecef8ad9ca31a8372d0c353" ,
393393 comment = "info about my secret" ,
394- scopes = ["workers" , "ai_gateway" ],
394+ scopes = ["workers" , "ai_gateway" , "dex" , "access" ],
395395 )
396396 assert_matches_type (Optional [SecretEditResponse ], secret , path = ["response" ])
397397
@@ -523,7 +523,7 @@ async def test_method_create(self, async_client: AsyncCloudflare) -> None:
523523 body = [
524524 {
525525 "name" : "MY_API_KEY" ,
526- "scopes" : ["workers" , "ai_gateway" ],
526+ "scopes" : ["workers" , "ai_gateway" , "dex" , "access" ],
527527 "value" : "api-token-secret-123" ,
528528 }
529529 ],
@@ -538,7 +538,7 @@ async def test_raw_response_create(self, async_client: AsyncCloudflare) -> None:
538538 body = [
539539 {
540540 "name" : "MY_API_KEY" ,
541- "scopes" : ["workers" , "ai_gateway" ],
541+ "scopes" : ["workers" , "ai_gateway" , "dex" , "access" ],
542542 "value" : "api-token-secret-123" ,
543543 }
544544 ],
@@ -557,7 +557,7 @@ async def test_streaming_response_create(self, async_client: AsyncCloudflare) ->
557557 body = [
558558 {
559559 "name" : "MY_API_KEY" ,
560- "scopes" : ["workers" , "ai_gateway" ],
560+ "scopes" : ["workers" , "ai_gateway" , "dex" , "access" ],
561561 "value" : "api-token-secret-123" ,
562562 }
563563 ],
@@ -579,7 +579,7 @@ async def test_path_params_create(self, async_client: AsyncCloudflare) -> None:
579579 body = [
580580 {
581581 "name" : "MY_API_KEY" ,
582- "scopes" : ["workers" , "ai_gateway" ],
582+ "scopes" : ["workers" , "ai_gateway" , "dex" , "access" ],
583583 "value" : "api-token-secret-123" ,
584584 }
585585 ],
@@ -592,7 +592,7 @@ async def test_path_params_create(self, async_client: AsyncCloudflare) -> None:
592592 body = [
593593 {
594594 "name" : "MY_API_KEY" ,
595- "scopes" : ["workers" , "ai_gateway" ],
595+ "scopes" : ["workers" , "ai_gateway" , "dex" , "access" ],
596596 "value" : "api-token-secret-123" ,
597597 }
598598 ],
@@ -617,7 +617,7 @@ async def test_method_list_with_all_params(self, async_client: AsyncCloudflare)
617617 order = "name" ,
618618 page = 2 ,
619619 per_page = 20 ,
620- scopes = [["workers" , "ai_gateway" ]],
620+ scopes = [["workers" , "ai_gateway" , "dex" , "access" ]],
621621 search = "search" ,
622622 )
623623 assert_matches_type (AsyncV4PagePaginationArray [SecretListResponse ], secret , path = ["response" ])
@@ -781,7 +781,7 @@ async def test_method_duplicate(self, async_client: AsyncCloudflare) -> None:
781781 account_id = "985e105f4ecef8ad9ca31a8372d0c353" ,
782782 store_id = "023e105f4ecef8ad9ca31a8372d0c353" ,
783783 name = "MY_API_KEY" ,
784- scopes = ["workers" , "ai_gateway" ],
784+ scopes = ["workers" , "ai_gateway" , "dex" , "access" ],
785785 )
786786 assert_matches_type (Optional [SecretDuplicateResponse ], secret , path = ["response" ])
787787
@@ -793,7 +793,7 @@ async def test_method_duplicate_with_all_params(self, async_client: AsyncCloudfl
793793 account_id = "985e105f4ecef8ad9ca31a8372d0c353" ,
794794 store_id = "023e105f4ecef8ad9ca31a8372d0c353" ,
795795 name = "MY_API_KEY" ,
796- scopes = ["workers" , "ai_gateway" ],
796+ scopes = ["workers" , "ai_gateway" , "dex" , "access" ],
797797 comment = "info about my secret" ,
798798 )
799799 assert_matches_type (Optional [SecretDuplicateResponse ], secret , path = ["response" ])
@@ -806,7 +806,7 @@ async def test_raw_response_duplicate(self, async_client: AsyncCloudflare) -> No
806806 account_id = "985e105f4ecef8ad9ca31a8372d0c353" ,
807807 store_id = "023e105f4ecef8ad9ca31a8372d0c353" ,
808808 name = "MY_API_KEY" ,
809- scopes = ["workers" , "ai_gateway" ],
809+ scopes = ["workers" , "ai_gateway" , "dex" , "access" ],
810810 )
811811
812812 assert response .is_closed is True
@@ -822,7 +822,7 @@ async def test_streaming_response_duplicate(self, async_client: AsyncCloudflare)
822822 account_id = "985e105f4ecef8ad9ca31a8372d0c353" ,
823823 store_id = "023e105f4ecef8ad9ca31a8372d0c353" ,
824824 name = "MY_API_KEY" ,
825- scopes = ["workers" , "ai_gateway" ],
825+ scopes = ["workers" , "ai_gateway" , "dex" , "access" ],
826826 ) as response :
827827 assert not response .is_closed
828828 assert response .http_request .headers .get ("X-Stainless-Lang" ) == "python"
@@ -841,7 +841,7 @@ async def test_path_params_duplicate(self, async_client: AsyncCloudflare) -> Non
841841 account_id = "" ,
842842 store_id = "023e105f4ecef8ad9ca31a8372d0c353" ,
843843 name = "MY_API_KEY" ,
844- scopes = ["workers" , "ai_gateway" ],
844+ scopes = ["workers" , "ai_gateway" , "dex" , "access" ],
845845 )
846846
847847 with pytest .raises (ValueError , match = r"Expected a non-empty value for `store_id` but received ''" ):
@@ -850,7 +850,7 @@ async def test_path_params_duplicate(self, async_client: AsyncCloudflare) -> Non
850850 account_id = "985e105f4ecef8ad9ca31a8372d0c353" ,
851851 store_id = "" ,
852852 name = "MY_API_KEY" ,
853- scopes = ["workers" , "ai_gateway" ],
853+ scopes = ["workers" , "ai_gateway" , "dex" , "access" ],
854854 )
855855
856856 with pytest .raises (ValueError , match = r"Expected a non-empty value for `secret_id` but received ''" ):
@@ -859,7 +859,7 @@ async def test_path_params_duplicate(self, async_client: AsyncCloudflare) -> Non
859859 account_id = "985e105f4ecef8ad9ca31a8372d0c353" ,
860860 store_id = "023e105f4ecef8ad9ca31a8372d0c353" ,
861861 name = "MY_API_KEY" ,
862- scopes = ["workers" , "ai_gateway" ],
862+ scopes = ["workers" , "ai_gateway" , "dex" , "access" ],
863863 )
864864
865865 @pytest .mark .skip (reason = "TODO: investigate prism error for 422 Unprocessable Entity" )
@@ -880,7 +880,7 @@ async def test_method_edit_with_all_params(self, async_client: AsyncCloudflare)
880880 account_id = "985e105f4ecef8ad9ca31a8372d0c353" ,
881881 store_id = "023e105f4ecef8ad9ca31a8372d0c353" ,
882882 comment = "info about my secret" ,
883- scopes = ["workers" , "ai_gateway" ],
883+ scopes = ["workers" , "ai_gateway" , "dex" , "access" ],
884884 )
885885 assert_matches_type (Optional [SecretEditResponse ], secret , path = ["response" ])
886886
0 commit comments