@@ -647,11 +647,11 @@ def _create(
647
647
)
648
648
649
649
request_url_dict : Optional [dict [str , str ]]
650
- if not self ._api_client .vertexai :
650
+ if not self .api_client .vertexai :
651
651
raise ValueError ('This method is only supported in the Vertex AI client.' )
652
652
else :
653
653
request_dict = _CreateBatchJobParameters_to_vertex (
654
- self ._api_client , parameter_model
654
+ self .api_client , parameter_model
655
655
)
656
656
request_url_dict = request_dict .get ('_url' )
657
657
if request_url_dict :
@@ -674,19 +674,19 @@ def _create(
674
674
request_dict = _common .convert_to_dict (request_dict )
675
675
request_dict = _common .encode_unserializable_types (request_dict )
676
676
677
- response_dict = self ._api_client .request (
677
+ response_dict = self .api_client .request (
678
678
'post' , path , request_dict , http_options
679
679
)
680
680
681
- if self ._api_client .vertexai :
682
- response_dict = _BatchJob_from_vertex (self ._api_client , response_dict )
681
+ if self .api_client .vertexai :
682
+ response_dict = _BatchJob_from_vertex (self .api_client , response_dict )
683
683
else :
684
- response_dict = _BatchJob_from_mldev (self ._api_client , response_dict )
684
+ response_dict = _BatchJob_from_mldev (self .api_client , response_dict )
685
685
686
686
return_value = types .BatchJob ._from_response (
687
687
response = response_dict , kwargs = parameter_model .model_dump ()
688
688
)
689
- self ._api_client ._verify_response (return_value )
689
+ self .api_client ._verify_response (return_value )
690
690
return return_value
691
691
692
692
def get (
@@ -716,11 +716,11 @@ def get(
716
716
)
717
717
718
718
request_url_dict : Optional [dict [str , str ]]
719
- if not self ._api_client .vertexai :
719
+ if not self .api_client .vertexai :
720
720
raise ValueError ('This method is only supported in the Vertex AI client.' )
721
721
else :
722
722
request_dict = _GetBatchJobParameters_to_vertex (
723
- self ._api_client , parameter_model
723
+ self .api_client , parameter_model
724
724
)
725
725
request_url_dict = request_dict .get ('_url' )
726
726
if request_url_dict :
@@ -743,19 +743,19 @@ def get(
743
743
request_dict = _common .convert_to_dict (request_dict )
744
744
request_dict = _common .encode_unserializable_types (request_dict )
745
745
746
- response_dict = self ._api_client .request (
746
+ response_dict = self .api_client .request (
747
747
'get' , path , request_dict , http_options
748
748
)
749
749
750
- if self ._api_client .vertexai :
751
- response_dict = _BatchJob_from_vertex (self ._api_client , response_dict )
750
+ if self .api_client .vertexai :
751
+ response_dict = _BatchJob_from_vertex (self .api_client , response_dict )
752
752
else :
753
- response_dict = _BatchJob_from_mldev (self ._api_client , response_dict )
753
+ response_dict = _BatchJob_from_mldev (self .api_client , response_dict )
754
754
755
755
return_value = types .BatchJob ._from_response (
756
756
response = response_dict , kwargs = parameter_model .model_dump ()
757
757
)
758
- self ._api_client ._verify_response (return_value )
758
+ self .api_client ._verify_response (return_value )
759
759
return return_value
760
760
761
761
def cancel (
@@ -786,11 +786,11 @@ def cancel(
786
786
)
787
787
788
788
request_url_dict : Optional [dict [str , str ]]
789
- if not self ._api_client .vertexai :
789
+ if not self .api_client .vertexai :
790
790
raise ValueError ('This method is only supported in the Vertex AI client.' )
791
791
else :
792
792
request_dict = _CancelBatchJobParameters_to_vertex (
793
- self ._api_client , parameter_model
793
+ self .api_client , parameter_model
794
794
)
795
795
request_url_dict = request_dict .get ('_url' )
796
796
if request_url_dict :
@@ -813,7 +813,7 @@ def cancel(
813
813
request_dict = _common .convert_to_dict (request_dict )
814
814
request_dict = _common .encode_unserializable_types (request_dict )
815
815
816
- response_dict = self ._api_client .request (
816
+ response_dict = self .api_client .request (
817
817
'post' , path , request_dict , http_options
818
818
)
819
819
@@ -825,11 +825,11 @@ def _list(
825
825
)
826
826
827
827
request_url_dict : Optional [dict [str , str ]]
828
- if not self ._api_client .vertexai :
828
+ if not self .api_client .vertexai :
829
829
raise ValueError ('This method is only supported in the Vertex AI client.' )
830
830
else :
831
831
request_dict = _ListBatchJobsParameters_to_vertex (
832
- self ._api_client , parameter_model
832
+ self .api_client , parameter_model
833
833
)
834
834
request_url_dict = request_dict .get ('_url' )
835
835
if request_url_dict :
@@ -852,23 +852,23 @@ def _list(
852
852
request_dict = _common .convert_to_dict (request_dict )
853
853
request_dict = _common .encode_unserializable_types (request_dict )
854
854
855
- response_dict = self ._api_client .request (
855
+ response_dict = self .api_client .request (
856
856
'get' , path , request_dict , http_options
857
857
)
858
858
859
- if self ._api_client .vertexai :
859
+ if self .api_client .vertexai :
860
860
response_dict = _ListBatchJobsResponse_from_vertex (
861
- self ._api_client , response_dict
861
+ self .api_client , response_dict
862
862
)
863
863
else :
864
864
response_dict = _ListBatchJobsResponse_from_mldev (
865
- self ._api_client , response_dict
865
+ self .api_client , response_dict
866
866
)
867
867
868
868
return_value = types .ListBatchJobsResponse ._from_response (
869
869
response = response_dict , kwargs = parameter_model .model_dump ()
870
870
)
871
- self ._api_client ._verify_response (return_value )
871
+ self .api_client ._verify_response (return_value )
872
872
return return_value
873
873
874
874
def delete (
@@ -900,11 +900,11 @@ def delete(
900
900
)
901
901
902
902
request_url_dict : Optional [dict [str , str ]]
903
- if not self ._api_client .vertexai :
903
+ if not self .api_client .vertexai :
904
904
raise ValueError ('This method is only supported in the Vertex AI client.' )
905
905
else :
906
906
request_dict = _DeleteBatchJobParameters_to_vertex (
907
- self ._api_client , parameter_model
907
+ self .api_client , parameter_model
908
908
)
909
909
request_url_dict = request_dict .get ('_url' )
910
910
if request_url_dict :
@@ -927,23 +927,23 @@ def delete(
927
927
request_dict = _common .convert_to_dict (request_dict )
928
928
request_dict = _common .encode_unserializable_types (request_dict )
929
929
930
- response_dict = self ._api_client .request (
930
+ response_dict = self .api_client .request (
931
931
'delete' , path , request_dict , http_options
932
932
)
933
933
934
- if self ._api_client .vertexai :
934
+ if self .api_client .vertexai :
935
935
response_dict = _DeleteResourceJob_from_vertex (
936
- self ._api_client , response_dict
936
+ self .api_client , response_dict
937
937
)
938
938
else :
939
939
response_dict = _DeleteResourceJob_from_mldev (
940
- self ._api_client , response_dict
940
+ self .api_client , response_dict
941
941
)
942
942
943
943
return_value = types .DeleteResourceJob ._from_response (
944
944
response = response_dict , kwargs = parameter_model .model_dump ()
945
945
)
946
- self ._api_client ._verify_response (return_value )
946
+ self .api_client ._verify_response (return_value )
947
947
return return_value
948
948
949
949
def create (
@@ -1024,11 +1024,11 @@ async def _create(
1024
1024
)
1025
1025
1026
1026
request_url_dict : Optional [dict [str , str ]]
1027
- if not self ._api_client .vertexai :
1027
+ if not self .api_client .vertexai :
1028
1028
raise ValueError ('This method is only supported in the Vertex AI client.' )
1029
1029
else :
1030
1030
request_dict = _CreateBatchJobParameters_to_vertex (
1031
- self ._api_client , parameter_model
1031
+ self .api_client , parameter_model
1032
1032
)
1033
1033
request_url_dict = request_dict .get ('_url' )
1034
1034
if request_url_dict :
@@ -1051,19 +1051,19 @@ async def _create(
1051
1051
request_dict = _common .convert_to_dict (request_dict )
1052
1052
request_dict = _common .encode_unserializable_types (request_dict )
1053
1053
1054
- response_dict = await self ._api_client .async_request (
1054
+ response_dict = await self .api_client .async_request (
1055
1055
'post' , path , request_dict , http_options
1056
1056
)
1057
1057
1058
- if self ._api_client .vertexai :
1059
- response_dict = _BatchJob_from_vertex (self ._api_client , response_dict )
1058
+ if self .api_client .vertexai :
1059
+ response_dict = _BatchJob_from_vertex (self .api_client , response_dict )
1060
1060
else :
1061
- response_dict = _BatchJob_from_mldev (self ._api_client , response_dict )
1061
+ response_dict = _BatchJob_from_mldev (self .api_client , response_dict )
1062
1062
1063
1063
return_value = types .BatchJob ._from_response (
1064
1064
response = response_dict , kwargs = parameter_model .model_dump ()
1065
1065
)
1066
- self ._api_client ._verify_response (return_value )
1066
+ self .api_client ._verify_response (return_value )
1067
1067
return return_value
1068
1068
1069
1069
async def get (
@@ -1093,11 +1093,11 @@ async def get(
1093
1093
)
1094
1094
1095
1095
request_url_dict : Optional [dict [str , str ]]
1096
- if not self ._api_client .vertexai :
1096
+ if not self .api_client .vertexai :
1097
1097
raise ValueError ('This method is only supported in the Vertex AI client.' )
1098
1098
else :
1099
1099
request_dict = _GetBatchJobParameters_to_vertex (
1100
- self ._api_client , parameter_model
1100
+ self .api_client , parameter_model
1101
1101
)
1102
1102
request_url_dict = request_dict .get ('_url' )
1103
1103
if request_url_dict :
@@ -1120,19 +1120,19 @@ async def get(
1120
1120
request_dict = _common .convert_to_dict (request_dict )
1121
1121
request_dict = _common .encode_unserializable_types (request_dict )
1122
1122
1123
- response_dict = await self ._api_client .async_request (
1123
+ response_dict = await self .api_client .async_request (
1124
1124
'get' , path , request_dict , http_options
1125
1125
)
1126
1126
1127
- if self ._api_client .vertexai :
1128
- response_dict = _BatchJob_from_vertex (self ._api_client , response_dict )
1127
+ if self .api_client .vertexai :
1128
+ response_dict = _BatchJob_from_vertex (self .api_client , response_dict )
1129
1129
else :
1130
- response_dict = _BatchJob_from_mldev (self ._api_client , response_dict )
1130
+ response_dict = _BatchJob_from_mldev (self .api_client , response_dict )
1131
1131
1132
1132
return_value = types .BatchJob ._from_response (
1133
1133
response = response_dict , kwargs = parameter_model .model_dump ()
1134
1134
)
1135
- self ._api_client ._verify_response (return_value )
1135
+ self .api_client ._verify_response (return_value )
1136
1136
return return_value
1137
1137
1138
1138
async def cancel (
@@ -1163,11 +1163,11 @@ async def cancel(
1163
1163
)
1164
1164
1165
1165
request_url_dict : Optional [dict [str , str ]]
1166
- if not self ._api_client .vertexai :
1166
+ if not self .api_client .vertexai :
1167
1167
raise ValueError ('This method is only supported in the Vertex AI client.' )
1168
1168
else :
1169
1169
request_dict = _CancelBatchJobParameters_to_vertex (
1170
- self ._api_client , parameter_model
1170
+ self .api_client , parameter_model
1171
1171
)
1172
1172
request_url_dict = request_dict .get ('_url' )
1173
1173
if request_url_dict :
@@ -1190,7 +1190,7 @@ async def cancel(
1190
1190
request_dict = _common .convert_to_dict (request_dict )
1191
1191
request_dict = _common .encode_unserializable_types (request_dict )
1192
1192
1193
- response_dict = await self ._api_client .async_request (
1193
+ response_dict = await self .api_client .async_request (
1194
1194
'post' , path , request_dict , http_options
1195
1195
)
1196
1196
@@ -1202,11 +1202,11 @@ async def _list(
1202
1202
)
1203
1203
1204
1204
request_url_dict : Optional [dict [str , str ]]
1205
- if not self ._api_client .vertexai :
1205
+ if not self .api_client .vertexai :
1206
1206
raise ValueError ('This method is only supported in the Vertex AI client.' )
1207
1207
else :
1208
1208
request_dict = _ListBatchJobsParameters_to_vertex (
1209
- self ._api_client , parameter_model
1209
+ self .api_client , parameter_model
1210
1210
)
1211
1211
request_url_dict = request_dict .get ('_url' )
1212
1212
if request_url_dict :
@@ -1229,23 +1229,23 @@ async def _list(
1229
1229
request_dict = _common .convert_to_dict (request_dict )
1230
1230
request_dict = _common .encode_unserializable_types (request_dict )
1231
1231
1232
- response_dict = await self ._api_client .async_request (
1232
+ response_dict = await self .api_client .async_request (
1233
1233
'get' , path , request_dict , http_options
1234
1234
)
1235
1235
1236
- if self ._api_client .vertexai :
1236
+ if self .api_client .vertexai :
1237
1237
response_dict = _ListBatchJobsResponse_from_vertex (
1238
- self ._api_client , response_dict
1238
+ self .api_client , response_dict
1239
1239
)
1240
1240
else :
1241
1241
response_dict = _ListBatchJobsResponse_from_mldev (
1242
- self ._api_client , response_dict
1242
+ self .api_client , response_dict
1243
1243
)
1244
1244
1245
1245
return_value = types .ListBatchJobsResponse ._from_response (
1246
1246
response = response_dict , kwargs = parameter_model .model_dump ()
1247
1247
)
1248
- self ._api_client ._verify_response (return_value )
1248
+ self .api_client ._verify_response (return_value )
1249
1249
return return_value
1250
1250
1251
1251
async def delete (
@@ -1277,11 +1277,11 @@ async def delete(
1277
1277
)
1278
1278
1279
1279
request_url_dict : Optional [dict [str , str ]]
1280
- if not self ._api_client .vertexai :
1280
+ if not self .api_client .vertexai :
1281
1281
raise ValueError ('This method is only supported in the Vertex AI client.' )
1282
1282
else :
1283
1283
request_dict = _DeleteBatchJobParameters_to_vertex (
1284
- self ._api_client , parameter_model
1284
+ self .api_client , parameter_model
1285
1285
)
1286
1286
request_url_dict = request_dict .get ('_url' )
1287
1287
if request_url_dict :
@@ -1304,23 +1304,23 @@ async def delete(
1304
1304
request_dict = _common .convert_to_dict (request_dict )
1305
1305
request_dict = _common .encode_unserializable_types (request_dict )
1306
1306
1307
- response_dict = await self ._api_client .async_request (
1307
+ response_dict = await self .api_client .async_request (
1308
1308
'delete' , path , request_dict , http_options
1309
1309
)
1310
1310
1311
- if self ._api_client .vertexai :
1311
+ if self .api_client .vertexai :
1312
1312
response_dict = _DeleteResourceJob_from_vertex (
1313
- self ._api_client , response_dict
1313
+ self .api_client , response_dict
1314
1314
)
1315
1315
else :
1316
1316
response_dict = _DeleteResourceJob_from_mldev (
1317
- self ._api_client , response_dict
1317
+ self .api_client , response_dict
1318
1318
)
1319
1319
1320
1320
return_value = types .DeleteResourceJob ._from_response (
1321
1321
response = response_dict , kwargs = parameter_model .model_dump ()
1322
1322
)
1323
- self ._api_client ._verify_response (return_value )
1323
+ self .api_client ._verify_response (return_value )
1324
1324
return return_value
1325
1325
1326
1326
async def create (
0 commit comments