@@ -762,6 +762,7 @@ def test_create_job(request_type, transport: str = "grpc"):
762
762
output_uri = "output_uri_value" ,
763
763
state = resources .Job .ProcessingState .PENDING ,
764
764
ttl_after_completion_days = 2670 ,
765
+ mode = resources .Job .ProcessingMode .PROCESSING_MODE_INTERACTIVE ,
765
766
template_id = "template_id_value" ,
766
767
)
767
768
response = client .create_job (request )
@@ -778,6 +779,7 @@ def test_create_job(request_type, transport: str = "grpc"):
778
779
assert response .output_uri == "output_uri_value"
779
780
assert response .state == resources .Job .ProcessingState .PENDING
780
781
assert response .ttl_after_completion_days == 2670
782
+ assert response .mode == resources .Job .ProcessingMode .PROCESSING_MODE_INTERACTIVE
781
783
782
784
783
785
def test_create_job_empty_call ():
@@ -819,6 +821,7 @@ async def test_create_job_async(
819
821
output_uri = "output_uri_value" ,
820
822
state = resources .Job .ProcessingState .PENDING ,
821
823
ttl_after_completion_days = 2670 ,
824
+ mode = resources .Job .ProcessingMode .PROCESSING_MODE_INTERACTIVE ,
822
825
)
823
826
)
824
827
response = await client .create_job (request )
@@ -835,6 +838,7 @@ async def test_create_job_async(
835
838
assert response .output_uri == "output_uri_value"
836
839
assert response .state == resources .Job .ProcessingState .PENDING
837
840
assert response .ttl_after_completion_days == 2670
841
+ assert response .mode == resources .Job .ProcessingMode .PROCESSING_MODE_INTERACTIVE
838
842
839
843
840
844
@pytest .mark .asyncio
@@ -1441,6 +1445,7 @@ def test_get_job(request_type, transport: str = "grpc"):
1441
1445
output_uri = "output_uri_value" ,
1442
1446
state = resources .Job .ProcessingState .PENDING ,
1443
1447
ttl_after_completion_days = 2670 ,
1448
+ mode = resources .Job .ProcessingMode .PROCESSING_MODE_INTERACTIVE ,
1444
1449
template_id = "template_id_value" ,
1445
1450
)
1446
1451
response = client .get_job (request )
@@ -1457,6 +1462,7 @@ def test_get_job(request_type, transport: str = "grpc"):
1457
1462
assert response .output_uri == "output_uri_value"
1458
1463
assert response .state == resources .Job .ProcessingState .PENDING
1459
1464
assert response .ttl_after_completion_days == 2670
1465
+ assert response .mode == resources .Job .ProcessingMode .PROCESSING_MODE_INTERACTIVE
1460
1466
1461
1467
1462
1468
def test_get_job_empty_call ():
@@ -1498,6 +1504,7 @@ async def test_get_job_async(
1498
1504
output_uri = "output_uri_value" ,
1499
1505
state = resources .Job .ProcessingState .PENDING ,
1500
1506
ttl_after_completion_days = 2670 ,
1507
+ mode = resources .Job .ProcessingMode .PROCESSING_MODE_INTERACTIVE ,
1501
1508
)
1502
1509
)
1503
1510
response = await client .get_job (request )
@@ -1514,6 +1521,7 @@ async def test_get_job_async(
1514
1521
assert response .output_uri == "output_uri_value"
1515
1522
assert response .state == resources .Job .ProcessingState .PENDING
1516
1523
assert response .ttl_after_completion_days == 2670
1524
+ assert response .mode == resources .Job .ProcessingMode .PROCESSING_MODE_INTERACTIVE
1517
1525
1518
1526
1519
1527
@pytest .mark .asyncio
@@ -3302,6 +3310,7 @@ def test_create_job_rest(request_type):
3302
3310
}
3303
3311
],
3304
3312
},
3313
+ "mode" : 1 ,
3305
3314
}
3306
3315
request = request_type (** request_init )
3307
3316
@@ -3314,6 +3323,7 @@ def test_create_job_rest(request_type):
3314
3323
output_uri = "output_uri_value" ,
3315
3324
state = resources .Job .ProcessingState .PENDING ,
3316
3325
ttl_after_completion_days = 2670 ,
3326
+ mode = resources .Job .ProcessingMode .PROCESSING_MODE_INTERACTIVE ,
3317
3327
template_id = "template_id_value" ,
3318
3328
)
3319
3329
@@ -3334,6 +3344,7 @@ def test_create_job_rest(request_type):
3334
3344
assert response .output_uri == "output_uri_value"
3335
3345
assert response .state == resources .Job .ProcessingState .PENDING
3336
3346
assert response .ttl_after_completion_days == 2670
3347
+ assert response .mode == resources .Job .ProcessingMode .PROCESSING_MODE_INTERACTIVE
3337
3348
3338
3349
3339
3350
def test_create_job_rest_required_fields (request_type = services .CreateJobRequest ):
@@ -3721,6 +3732,7 @@ def test_create_job_rest_bad_request(
3721
3732
}
3722
3733
],
3723
3734
},
3735
+ "mode" : 1 ,
3724
3736
}
3725
3737
request = request_type (** request_init )
3726
3738
@@ -4164,6 +4176,7 @@ def test_get_job_rest(request_type):
4164
4176
output_uri = "output_uri_value" ,
4165
4177
state = resources .Job .ProcessingState .PENDING ,
4166
4178
ttl_after_completion_days = 2670 ,
4179
+ mode = resources .Job .ProcessingMode .PROCESSING_MODE_INTERACTIVE ,
4167
4180
template_id = "template_id_value" ,
4168
4181
)
4169
4182
@@ -4184,6 +4197,7 @@ def test_get_job_rest(request_type):
4184
4197
assert response .output_uri == "output_uri_value"
4185
4198
assert response .state == resources .Job .ProcessingState .PENDING
4186
4199
assert response .ttl_after_completion_days == 2670
4200
+ assert response .mode == resources .Job .ProcessingMode .PROCESSING_MODE_INTERACTIVE
4187
4201
4188
4202
4189
4203
def test_get_job_rest_required_fields (request_type = services .GetJobRequest ):
0 commit comments