Skip to content

Commit c222e3b

Browse files
Google APIscopybara-github
authored andcommitted
feat: add Model Garden EULA(End User License Agreement) related APIs
PiperOrigin-RevId: 747957176
1 parent 164cb36 commit c222e3b

1 file changed

Lines changed: 82 additions & 0 deletions

File tree

google/cloud/aiplatform/v1beta1/model_garden_service.proto

Lines changed: 82 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,27 @@ service ModelGardenService {
9696
metadata_type: "ExportPublisherModelOperationMetadata"
9797
};
9898
}
99+
100+
// Checks the EULA acceptance status of a publisher model.
101+
rpc CheckPublisherModelEulaAcceptance(
102+
CheckPublisherModelEulaAcceptanceRequest)
103+
returns (PublisherModelEulaAcceptance) {
104+
option (google.api.http) = {
105+
post: "/v1beta1/{parent=projects/*}/modelGardenEula:check"
106+
body: "*"
107+
};
108+
option (google.api.method_signature) = "parent,publisher_model";
109+
}
110+
111+
// Accepts the EULA acceptance status of a publisher model.
112+
rpc AcceptPublisherModelEula(AcceptPublisherModelEulaRequest)
113+
returns (PublisherModelEulaAcceptance) {
114+
option (google.api.http) = {
115+
post: "/v1beta1/{parent=projects/*}/modelGardenEula:accept"
116+
body: "*"
117+
};
118+
option (google.api.method_signature) = "parent,publisher_model";
119+
}
99120
}
100121

101122
// View enumeration of PublisherModel.
@@ -505,3 +526,64 @@ message ExportPublisherModelRequest {
505526
}
506527
];
507528
}
529+
530+
// Request message for
531+
// [ModelGardenService.CheckPublisherModelEula][].
532+
message CheckPublisherModelEulaAcceptanceRequest {
533+
// Required. The project requesting access for named model. The format is
534+
// `projects/{project}`.
535+
string parent = 1 [
536+
(google.api.field_behavior) = REQUIRED,
537+
(google.api.resource_reference) = {
538+
type: "cloudresourcemanager.googleapis.com/Project"
539+
}
540+
];
541+
542+
// Required. The name of the PublisherModel resource.
543+
// Format:
544+
// `publishers/{publisher}/models/{publisher_model}`, or
545+
// `publishers/hf-{hugging-face-author}/models/{hugging-face-model-name}`
546+
string publisher_model = 2 [
547+
(google.api.field_behavior) = REQUIRED,
548+
(google.api.resource_reference) = {
549+
type: "aiplatform.googleapis.com/PublisherModel"
550+
}
551+
];
552+
}
553+
554+
// Request message for
555+
// [ModelGardenService.AcceptPublisherModelEula][google.cloud.aiplatform.v1beta1.ModelGardenService.AcceptPublisherModelEula].
556+
message AcceptPublisherModelEulaRequest {
557+
// Required. The project requesting access for named model. The format is
558+
// `projects/{project}`.
559+
string parent = 1 [
560+
(google.api.field_behavior) = REQUIRED,
561+
(google.api.resource_reference) = {
562+
type: "cloudresourcemanager.googleapis.com/Project"
563+
}
564+
];
565+
566+
// Required. The name of the PublisherModel resource.
567+
// Format:
568+
// `publishers/{publisher}/models/{publisher_model}`, or
569+
// `publishers/hf-{hugging-face-author}/models/{hugging-face-model-name}`
570+
string publisher_model = 2 [
571+
(google.api.field_behavior) = REQUIRED,
572+
(google.api.resource_reference) = {
573+
type: "aiplatform.googleapis.com/PublisherModel"
574+
}
575+
];
576+
}
577+
578+
// Response message for
579+
// [ModelGardenService.UpdatePublisherModelEula][].
580+
message PublisherModelEulaAcceptance {
581+
// The project number requesting access for named model.
582+
int64 project_number = 1;
583+
584+
// The publisher model resource name.
585+
string publisher_model = 2;
586+
587+
// The EULA content acceptance status.
588+
bool publisher_model_eula_acked = 3;
589+
}

0 commit comments

Comments
 (0)