## Resource: PublisherModel

A Model Garden Publisher Model.
Fields `name` `string` Output only. Identifier. The resource name of the PublisherModel.
`versionId` `string` Output only. Immutable. The version id of the PublisherModel. A new version is committed when a new model version is uploaded under an existing model id. It is an auto-incrementing decimal number in string representation.
`openSourceCategory` ``enum (`https://docs.cloud.google.com/gemini-enterprise-agent-platform/reference/rest/v1/publishers.models#OpenSourceCategory`)`` Required. Indicates the open source category of the publisher model.
`supportedActions` ``object (`https://docs.cloud.google.com/gemini-enterprise-agent-platform/reference/rest/v1/publishers.models#CallToAction`)`` Optional. Supported call-to-action options.
`frameworks[]` `string` Optional. Additional information about the model's Frameworks.
`launchStage` ``enum (`https://docs.cloud.google.com/gemini-enterprise-agent-platform/reference/rest/v1/publishers.models#LaunchStage`)`` Optional. Indicates the launch stage of the model.
`versionState` ``enum (`https://docs.cloud.google.com/gemini-enterprise-agent-platform/reference/rest/v1/publishers.models#VersionState`)`` Optional. Indicates the state of the model version.
`publisherModelTemplate` `string` Optional. Output only. Immutable. Used to indicate this model has a publisher model and provide the template of the publisher model resource name.
`predictSchemata` ``object (`https://docs.cloud.google.com/gemini-enterprise-agent-platform/reference/rest/v1/PredictSchemata`)`` Optional. The schemata that describes formats of the PublisherModel's predictions and explanations as given and returned via `https://docs.cloud.google.com/gemini-enterprise-agent-platform/reference/rest/v1/projects.locations.endpoints/predict#google.cloud.aiplatform.v1.PredictionService.Predict`.

| JSON representation |
|---|
| ``` { "name": string, "versionId": string, "openSourceCategory": enum (`https://docs.cloud.google.com/gemini-enterprise-agent-platform/reference/rest/v1/publishers.models#OpenSourceCategory`), "supportedActions": { object (`https://docs.cloud.google.com/gemini-enterprise-agent-platform/reference/rest/v1/publishers.models#CallToAction`) }, "frameworks": [ string ], "launchStage": enum (`https://docs.cloud.google.com/gemini-enterprise-agent-platform/reference/rest/v1/publishers.models#LaunchStage`), "versionState": enum (`https://docs.cloud.google.com/gemini-enterprise-agent-platform/reference/rest/v1/publishers.models#VersionState`), "publisherModelTemplate": string, "predictSchemata": { object (`https://docs.cloud.google.com/gemini-enterprise-agent-platform/reference/rest/v1/PredictSchemata`) } } ``` |

## OpenSourceCategory

An enum representing the open source category of a PublisherModel.

| Enums ||
|---|---|
| `OPEN_SOURCE_CATEGORY_UNSPECIFIED` | The open source category is unspecified, which should not be used. |
| `PROPRIETARY` | Used to indicate the PublisherModel is not open sourced. |
| `GOOGLE_OWNED_OSS_WITH_GOOGLE_CHECKPOINT` | Used to indicate the PublisherModel is a Google-owned open source model w/ Google checkpoint. |
| `THIRD_PARTY_OWNED_OSS_WITH_GOOGLE_CHECKPOINT` | Used to indicate the PublisherModel is a 3p-owned open source model w/ Google checkpoint. |
| `GOOGLE_OWNED_OSS` | Used to indicate the PublisherModel is a Google-owned pure open source model. |
| `THIRD_PARTY_OWNED_OSS` | Used to indicate the PublisherModel is a 3p-owned pure open source model. |

## CallToAction

Actions could take on this Publisher Model.
Fields `viewRestApi` ``object (`https://docs.cloud.google.com/gemini-enterprise-agent-platform/reference/rest/v1/publishers.models#ViewRestApi`)`` Optional. To view Rest API docs.
`openNotebook` ``object (`https://docs.cloud.google.com/gemini-enterprise-agent-platform/reference/rest/v1/publishers.models#RegionalResourceReferences`)`` Optional. Open notebook of the PublisherModel.
`createApplication` ``object (`https://docs.cloud.google.com/gemini-enterprise-agent-platform/reference/rest/v1/publishers.models#RegionalResourceReferences`)`` Optional. Create application using the PublisherModel.
`openFineTuningPipeline` ``object (`https://docs.cloud.google.com/gemini-enterprise-agent-platform/reference/rest/v1/publishers.models#RegionalResourceReferences`)`` Optional. Open fine-tuning pipeline of the PublisherModel.
`openPromptTuningPipeline` ``object (`https://docs.cloud.google.com/gemini-enterprise-agent-platform/reference/rest/v1/publishers.models#RegionalResourceReferences`)`` Optional. Open prompt-tuning pipeline of the PublisherModel.
`openGenie` ``object (`https://docs.cloud.google.com/gemini-enterprise-agent-platform/reference/rest/v1/publishers.models#RegionalResourceReferences`)`` Optional. Open Genie / Playground.
`deploy` ``object (`https://docs.cloud.google.com/gemini-enterprise-agent-platform/reference/rest/v1/publishers.models#Deploy`)`` Optional. Deploy the PublisherModel to Vertex Endpoint.
`deployGke` ``object (`https://docs.cloud.google.com/gemini-enterprise-agent-platform/reference/rest/v1/publishers.models#DeployGke`)`` Optional. Deploy PublisherModel to Google Kubernetes Engine.
`openGenerationAiStudio` ``object (`https://docs.cloud.google.com/gemini-enterprise-agent-platform/reference/rest/v1/publishers.models#RegionalResourceReferences`)`` Optional. Open in Generation AI Studio.
`requestAccess` ``object (`https://docs.cloud.google.com/gemini-enterprise-agent-platform/reference/rest/v1/publishers.models#RegionalResourceReferences`)`` Optional. Request for access.
`openEvaluationPipeline` ``object (`https://docs.cloud.google.com/gemini-enterprise-agent-platform/reference/rest/v1/publishers.models#RegionalResourceReferences`)`` Optional. Open evaluation pipeline of the PublisherModel.
`openNotebooks` ``object (`https://docs.cloud.google.com/gemini-enterprise-agent-platform/reference/rest/v1/publishers.models#OpenNotebooks`)`` Optional. Open notebooks of the PublisherModel.
`openFineTuningPipelines` ``object (`https://docs.cloud.google.com/gemini-enterprise-agent-platform/reference/rest/v1/publishers.models#OpenFineTuningPipelines`)`` Optional. Open fine-tuning pipelines of the PublisherModel.

| JSON representation |
|---|
| ``` { "viewRestApi": { object (`https://docs.cloud.google.com/gemini-enterprise-agent-platform/reference/rest/v1/publishers.models#ViewRestApi`) }, "openNotebook": { object (`https://docs.cloud.google.com/gemini-enterprise-agent-platform/reference/rest/v1/publishers.models#RegionalResourceReferences`) }, "createApplication": { object (`https://docs.cloud.google.com/gemini-enterprise-agent-platform/reference/rest/v1/publishers.models#RegionalResourceReferences`) }, "openFineTuningPipeline": { object (`https://docs.cloud.google.com/gemini-enterprise-agent-platform/reference/rest/v1/publishers.models#RegionalResourceReferences`) }, "openPromptTuningPipeline": { object (`https://docs.cloud.google.com/gemini-enterprise-agent-platform/reference/rest/v1/publishers.models#RegionalResourceReferences`) }, "openGenie": { object (`https://docs.cloud.google.com/gemini-enterprise-agent-platform/reference/rest/v1/publishers.models#RegionalResourceReferences`) }, "deploy": { object (`https://docs.cloud.google.com/gemini-enterprise-agent-platform/reference/rest/v1/publishers.models#Deploy`) }, "deployGke": { object (`https://docs.cloud.google.com/gemini-enterprise-agent-platform/reference/rest/v1/publishers.models#DeployGke`) }, "openGenerationAiStudio": { object (`https://docs.cloud.google.com/gemini-enterprise-agent-platform/reference/rest/v1/publishers.models#RegionalResourceReferences`) }, "requestAccess": { object (`https://docs.cloud.google.com/gemini-enterprise-agent-platform/reference/rest/v1/publishers.models#RegionalResourceReferences`) }, "openEvaluationPipeline": { object (`https://docs.cloud.google.com/gemini-enterprise-agent-platform/reference/rest/v1/publishers.models#RegionalResourceReferences`) }, "openNotebooks": { object (`https://docs.cloud.google.com/gemini-enterprise-agent-platform/reference/rest/v1/publishers.models#OpenNotebooks`) }, "openFineTuningPipelines": { object (`https://docs.cloud.google.com/gemini-enterprise-agent-platform/reference/rest/v1/publishers.models#OpenFineTuningPipelines`) } } ``` |

## ViewRestApi

Rest API docs.
Fields `documentations[]` ``object (`https://docs.cloud.google.com/gemini-enterprise-agent-platform/reference/rest/v1/publishers.models#Documentation`)`` Required.
`title` `string` Required. The title of the view rest API.

| JSON representation |
|---|
| ``` { "documentations": [ { object (`https://docs.cloud.google.com/gemini-enterprise-agent-platform/reference/rest/v1/publishers.models#Documentation`) } ], "title": string } ``` |

## Documentation

A named piece of documentation.
Fields `title` `string` Required. E.g., OVERVIEW, USE CASES, DOCUMENTATION, SDK \& SAMPLES, JAVA, NODE.JS, etc..
`content` `string` Required. Content of this piece of document (in Markdown format).

| JSON representation |
|---|
| ``` { "title": string, "content": string } ``` |

## RegionalResourceReferences

The regional resource name or the URI. Key is region, e.g., us-central1, europe-west2, global, etc..
Fields `references` ``map (key: string, value: object (`https://docs.cloud.google.com/gemini-enterprise-agent-platform/reference/rest/v1/publishers.models#ResourceReference`))`` Required.
`title` `string` Required.
`resourceTitle` `string` Optional. title of the resource.
`resourceUseCase` `string` Optional. Use case (CUJ) of the resource.
`resourceDescription` `string` Optional. description of the resource.

| JSON representation |
|---|
| ``` { "references": { string: { object (`https://docs.cloud.google.com/gemini-enterprise-agent-platform/reference/rest/v1/publishers.models#ResourceReference`) }, ... }, "title": string, "resourceTitle": string, "resourceUseCase": string, "resourceDescription": string } ``` |

## ResourceReference

Reference to a resource.
Fields `reference` `Union type` The following is a list of mutually exclusive fields. At most one of the fields will be set in a response: `uri` `string` The URI of the resource.
`resourceName` `string` The resource name of the Google Cloud resource.
`useCase
(deprecated)` `string`

> [!WARNING]
> This item is deprecated!

Use case (CUJ) of the resource.
`description
(deprecated)` `string`

> [!WARNING]
> This item is deprecated!

description of the resource.
End of mutually exclusive fields.

| JSON representation |
|---|
| ``` { // reference "uri": string, "resourceName": string, "useCase": string, "description": string // Union type } ``` |

## OpenNotebooks

Open notebooks.
Fields `notebooks[]` ``object (`https://docs.cloud.google.com/gemini-enterprise-agent-platform/reference/rest/v1/publishers.models#RegionalResourceReferences`)`` Required. Regional resource references to notebooks.

| JSON representation |
|---|
| ``` { "notebooks": [ { object (`https://docs.cloud.google.com/gemini-enterprise-agent-platform/reference/rest/v1/publishers.models#RegionalResourceReferences`) } ] } ``` |

## OpenFineTuningPipelines

Open fine tuning pipelines.
Fields `fineTuningPipelines[]` ``object (`https://docs.cloud.google.com/gemini-enterprise-agent-platform/reference/rest/v1/publishers.models#RegionalResourceReferences`)`` Required. Regional resource references to fine tuning pipelines.

| JSON representation |
|---|
| ``` { "fineTuningPipelines": [ { object (`https://docs.cloud.google.com/gemini-enterprise-agent-platform/reference/rest/v1/publishers.models#RegionalResourceReferences`) } ] } ``` |

## Deploy

Model metadata that is needed for UploadModel or DeployModel/CreateEndpoint requests.
Fields `modelDisplayName` `string` Optional. Default model display name.
`largeModelReference` ``object (`https://docs.cloud.google.com/gemini-enterprise-agent-platform/reference/rest/v1/publishers.models#LargeModelReference`)`` Optional. Large model reference. When this is set, modelArtifactSpec is not needed.
`containerSpec` ``object (`https://docs.cloud.google.com/gemini-enterprise-agent-platform/reference/rest/v1/ModelContainerSpec`)`` Optional. The specification of the container that is to be used when deploying this Model in Agent Platform. Not present for Large Models.
`artifactUri` `string` Optional. The path to the directory containing the Model artifact and any of its supporting files.
`title` `string` Required. The title of the regional resource reference.
`publicArtifactUri` `string` Optional. The signed URI for ephemeral Cloud Storage access to model artifact.
`prediction_resources` `Union type` The prediction (for example, the machine) resources that the DeployedModel uses. The following is a list of mutually exclusive fields. At most one of the fields will be set in a response: `dedicatedResources` ``object (`https://docs.cloud.google.com/gemini-enterprise-agent-platform/reference/rest/v1/DedicatedResources`)`` A description of resources that are dedicated to the DeployedModel, and that need a higher degree of manual configuration.
`automaticResources` ``object (`https://docs.cloud.google.com/gemini-enterprise-agent-platform/reference/rest/v1/AutomaticResources`)`` A description of resources that to large degree are decided by Agent Platform, and require only a modest additional configuration.
`sharedResources` `string` The resource name of the shared DeploymentResourcePool to deploy on. Format: `projects/{project}/locations/{location}/deploymentResourcePools/{deploymentResourcePool}`
End of mutually exclusive fields. `deployTaskName` `string` Optional. The name of the deploy task (e.g., "text to image generation").
`deployMetadata` ``object (`https://docs.cloud.google.com/gemini-enterprise-agent-platform/reference/rest/v1/publishers.models#DeployMetadata`)`` Optional. metadata information about this deployment config.

| JSON representation |
|---|
| ``` { "modelDisplayName": string, "largeModelReference": { object (`https://docs.cloud.google.com/gemini-enterprise-agent-platform/reference/rest/v1/publishers.models#LargeModelReference`) }, "containerSpec": { object (`https://docs.cloud.google.com/gemini-enterprise-agent-platform/reference/rest/v1/ModelContainerSpec`) }, "artifactUri": string, "title": string, "publicArtifactUri": string, // prediction_resources "dedicatedResources": { object (`https://docs.cloud.google.com/gemini-enterprise-agent-platform/reference/rest/v1/DedicatedResources`) }, "automaticResources": { object (`https://docs.cloud.google.com/gemini-enterprise-agent-platform/reference/rest/v1/AutomaticResources`) }, "sharedResources": string // Union type "deployTaskName": string, "deployMetadata": { object (`https://docs.cloud.google.com/gemini-enterprise-agent-platform/reference/rest/v1/publishers.models#DeployMetadata`) } } ``` |

## LargeModelReference

Contains information about the Large Model.
Fields `name` `string` Required. The unique name of the large Foundation or pre-built model. Like "chat-bison", "text-bison". Or model name with version id, like "chat-bison@001", "text-bison@005", etc.

| JSON representation |
|---|
| ``` { "name": string } ``` |

## DeployMetadata

metadata information about the deployment for managing deployment config.
Fields `labels` `map (key: string, value: string)` Optional. Labels for the deployment config. For managing deployment config like verifying, source of deployment config, etc.
`sampleRequest` `string` Optional. Sample request for deployed endpoint.

| JSON representation |
|---|
| ``` { "labels": { string: string, ... }, "sampleRequest": string } ``` |

## DeployGke

Configurations for PublisherModel GKE deployment
Fields `gkeYamlConfigs[]` `string` Optional. GKE deployment configuration in yaml format.

| JSON representation |
|---|
| ``` { "gkeYamlConfigs": [ string ] } ``` |

## LaunchStage

An enum representing the launch stage of a PublisherModel.

| Enums ||
|---|---|
| `LAUNCH_STAGE_UNSPECIFIED` | The model launch stage is unspecified. |
| `EXPERIMENTAL` | Used to indicate the PublisherModel is at Experimental launch stage, available to a small set of customers. |
| `PRIVATE_PREVIEW` | Used to indicate the PublisherModel is at Private Preview launch stage, only available to a small set of customers, although a larger set of customers than an Experimental launch. Previews are the first launch stage used to get feedback from customers. |
| `PUBLIC_PREVIEW` | Used to indicate the PublisherModel is at Public Preview launch stage, available to all customers, although not supported for production workloads. |
| `GA` | Used to indicate the PublisherModel is at GA launch stage, available to all customers and ready for production workload. |

## VersionState

An enum representing the state of the PublicModelVersion.

| Enums ||
|---|---|
| `VERSION_STATE_UNSPECIFIED` | The version state is unspecified. |
| `VERSION_STATE_STABLE` | Used to indicate the version is stable. |
| `VERSION_STATE_UNSTABLE` | Used to indicate the version is unstable. |

| ## Methods ||
|---|---|
| ### `https://docs.cloud.google.com/gemini-enterprise-agent-platform/reference/rest/v1/publishers.models/get` | Gets a Model Garden publisher model. |