Close httplib2 connections.
enableModel(parent, name, body=None, x__xgafv=None)
Enables model for the project if prerequisites are met (e.g. completed questionnaire and consents, or an active Private Offer).
close()
Close httplib2 connections.
enableModel(parent, name, body=None, x__xgafv=None)
Enables model for the project if prerequisites are met (e.g. completed questionnaire and consents, or an active Private Offer).
Args:
parent: string, Required. The project requesting access for named model. Format: `projects/{project}` (required)
name: string, Required. The name of the PublisherModel resource. Format: `publishers/{publisher}/models/{publisher_model}` (required)
body: object, The request body.
The object takes the form of:
{ # Request message for ModelGardenService.EnableModel.
"service": "A String", # Optional. The ID links the Marketplace listing to the underlying Vertex AI model endpoint. Format: `services/{service_id}` Format: `services/{service_id}`
}
x__xgafv: string, V1 error format.
Allowed values
1 - v1 error format
2 - v2 error format
Returns:
An object of the form:
{ # Response message for ModelGardenService.EnableModel.
"enablementState": "A String", # Output only. The result of the model enablement.
"publisherEndpoint": "A String", # Output only. The publisher endpoint that the project is enabled for. Format: `projects/{project}/locations/{location}/publishers/{publisher}/models/{publisher_model}`
}