@@ -152,6 +152,15 @@ service ModelService {
152
152
option (google.api.method_signature ) = "parent,model_evaluation" ;
153
153
}
154
154
155
+ // Imports a list of externally generated ModelEvaluationSlice.
156
+ rpc BatchImportModelEvaluationSlices (BatchImportModelEvaluationSlicesRequest ) returns (BatchImportModelEvaluationSlicesResponse ) {
157
+ option (google.api.http ) = {
158
+ post : "/v1/{parent=projects/*/locations/*/models/*/evaluations/*}/slices:batchImport"
159
+ body : "*"
160
+ };
161
+ option (google.api.method_signature ) = "parent,model_evaluation_slices" ;
162
+ }
163
+
155
164
// Gets a ModelEvaluation.
156
165
rpc GetModelEvaluation (GetModelEvaluationRequest ) returns (ModelEvaluation ) {
157
166
option (google.api.http ) = {
@@ -523,6 +532,28 @@ message ImportModelEvaluationRequest {
523
532
ModelEvaluation model_evaluation = 2 [(google.api.field_behavior ) = REQUIRED ];
524
533
}
525
534
535
+ // Request message for [ModelService.BatchImportModelEvaluationSlices][google.cloud.aiplatform.v1.ModelService.BatchImportModelEvaluationSlices]
536
+ message BatchImportModelEvaluationSlicesRequest {
537
+ // Required. The name of the parent ModelEvaluation resource.
538
+ // Format:
539
+ // `projects/{project}/locations/{location}/models/{model}/evaluations/{evaluation}`
540
+ string parent = 1 [
541
+ (google.api.field_behavior ) = REQUIRED ,
542
+ (google.api.resource_reference ) = {
543
+ type : "aiplatform.googleapis.com/ModelEvaluation"
544
+ }
545
+ ];
546
+
547
+ // Required. Model evaluation slice resource to be imported.
548
+ repeated ModelEvaluationSlice model_evaluation_slices = 2 [(google.api.field_behavior ) = REQUIRED ];
549
+ }
550
+
551
+ // Response message for [ModelService.BatchImportModelEvaluationSlices][google.cloud.aiplatform.v1.ModelService.BatchImportModelEvaluationSlices]
552
+ message BatchImportModelEvaluationSlicesResponse {
553
+ // Output only. List of imported [ModelEvaluationSlice.name][google.cloud.aiplatform.v1.ModelEvaluationSlice.name].
554
+ repeated string imported_model_evaluation_slices = 1 [(google.api.field_behavior ) = OUTPUT_ONLY ];
555
+ }
556
+
526
557
// Request message for [ModelService.GetModelEvaluation][google.cloud.aiplatform.v1.ModelService.GetModelEvaluation].
527
558
message GetModelEvaluationRequest {
528
559
// Required. The name of the ModelEvaluation resource.
0 commit comments