- [Resource: SharedTemplateRevision](https://docs.cloud.google.com/application-design-center/docs/reference/rest/v1/projects.locations.spaces.sharedTemplates.revisions#SharedTemplateRevision)
  - [JSON representation](https://docs.cloud.google.com/application-design-center/docs/reference/rest/v1/projects.locations.spaces.sharedTemplates.revisions#SharedTemplateRevision.SCHEMA_REPRESENTATION)
- [Methods](https://docs.cloud.google.com/application-design-center/docs/reference/rest/v1/projects.locations.spaces.sharedTemplates.revisions#METHODS_SUMMARY)

## Resource: SharedTemplateRevision

A read-only template revision that is shared with a space.

| JSON representation |
|---|
| ``` { "name": string, "description": string, "type": enum (`https://docs.cloud.google.com/application-design-center/docs/reference/rest/v1/TemplateType`), "sharedTemplateMetadata": { object (`https://docs.cloud.google.com/application-design-center/docs/reference/rest/v1/TFBlueprintMetadata`) }, "originTemplateRevision": string, "createTime": string, "applicationTemplateRevision": { object (`https://docs.cloud.google.com/application-design-center/docs/reference/rest/Shared.Types/SerializedApplicationTemplate`) }, "helmChartMetadata": { object (`https://docs.cloud.google.com/application-design-center/docs/reference/rest/v1/HelmChartMetadata`) }, "templateCategory": enum (`https://docs.cloud.google.com/application-design-center/docs/reference/rest/v1/TemplateCategory`), "logicalProducts": [ { object (`https://docs.cloud.google.com/application-design-center/docs/reference/rest/v1/LogicalProduct`) } ], "annotations": { string: string, ... }, "inferredMetadata": { object (`https://docs.cloud.google.com/application-design-center/docs/reference/rest/v1/InferredMetadata`) }, "resourceTypes": [ { object (`https://docs.cloud.google.com/application-design-center/docs/reference/rest/v1/ResourceType`) } ], // Union field `artifact_location` can be only one of the following: "gitSource": { object (`https://docs.cloud.google.com/application-design-center/docs/reference/rest/v1/GitSource`) }, "gcsSourceUri": string, "applicationTemplateRevisionSource": string, "developerConnectSourceConfig": { object (`https://docs.cloud.google.com/application-design-center/docs/reference/rest/v1/DeveloperConnectSourceConfig`) }, "ociRepo": { object (`https://docs.cloud.google.com/application-design-center/docs/reference/rest/v1/OciRepo`) } // End of list of possible types for union field `artifact_location`. } ``` |

| Fields ||
|---|---|
| `name` | `string` Identifier. The shared template revision name. $sharedTemplate is a server-generated UUID. `projects/$project/locations/$location/spaces/$space/sharedTemplates/$sharedTemplate/revisions/$revision` |
| `description` | `string` Optional. The shared template revision description. |
| `type` | ``enum (`https://docs.cloud.google.com/application-design-center/docs/reference/rest/v1/TemplateType`)`` Optional. The Application Design Center assembly template type. |
| `sharedTemplateMetadata` | ``object (`https://docs.cloud.google.com/application-design-center/docs/reference/rest/v1/TFBlueprintMetadata`)`` Output only. The shared template metadata. |
| `originTemplateRevision` | `string` Output only. The shared template revision refers to the following catalog template revision. |
| `createTime` | ``string (`https://protobuf.dev/reference/protobuf/google.protobuf#timestamp` format)`` Output only. The shared template revision creation timestamp. Uses RFC 3339, where generated output will always be Z-normalized and use 0, 3, 6 or 9 fractional digits. Offsets other than "Z" are also accepted. Examples: `"2014-10-02T15:01:23Z"`, `"2014-10-02T15:01:23.045123456Z"` or `"2014-10-02T15:01:23+05:30"`. |
| `applicationTemplateRevision` | ``object (`https://docs.cloud.google.com/application-design-center/docs/reference/rest/Shared.Types/SerializedApplicationTemplate`)`` Output only. The serialized application template revision. |
| `helmChartMetadata` | ``object (`https://docs.cloud.google.com/application-design-center/docs/reference/rest/v1/HelmChartMetadata`)`` Output only. The helm chart metadata. |
| `templateCategory` | ``enum (`https://docs.cloud.google.com/application-design-center/docs/reference/rest/v1/TemplateCategory`)`` Output only. The category of the template. |
| `logicalProducts[]` | ``object (`https://docs.cloud.google.com/application-design-center/docs/reference/rest/v1/LogicalProduct`)`` Output only. The Product Main logical product type information. |
| `annotations` | `map (key: string, value: string)` Optional. The annotations of the shared template revision. Key is the annotation name. Value is the annotation value. An object containing a list of `"key": value` pairs. Example: `{ "name": "wrench", "mass": "1.3kg", "count": "3" }`. |
| `inferredMetadata` | ``object (`https://docs.cloud.google.com/application-design-center/docs/reference/rest/v1/InferredMetadata`)`` Output only. Metadata that was automatically inferred from the template content. |
| `resourceTypes[]` | ``object (`https://docs.cloud.google.com/application-design-center/docs/reference/rest/v1/ResourceType`)`` Output only. The resource types present in the template revision. |
| Union field `artifact_location`. The artifact location of the Terraform in the template. `artifact_location` can be only one of the following: ||
| `gitSource` | ``object (`https://docs.cloud.google.com/application-design-center/docs/reference/rest/v1/GitSource`)`` Optional. The git source. |
| `gcsSourceUri` | `string` Optional. The Cloud Storage URI, which must be in the format gs://\[bucket\] or gs://\[bucket\]/\[object\]. |
| `applicationTemplateRevisionSource` | `string` Optional. The application template revision source. |
| `developerConnectSourceConfig` | ``object (`https://docs.cloud.google.com/application-design-center/docs/reference/rest/v1/DeveloperConnectSourceConfig`)`` Optional. Configuration for fetching content from source code repository such as GitHub or Bitbucket through Developer Connect. |
| `ociRepo` | ``object (`https://docs.cloud.google.com/application-design-center/docs/reference/rest/v1/OciRepo`)`` Optional. The Open Container Initiative (OCI) repo source that contains helm charts. |

| ## Methods ||
|---|---|
| ### `https://docs.cloud.google.com/application-design-center/docs/reference/rest/v1/projects.locations.spaces.sharedTemplates.revisions/fetchAssessmentReport` | Fetches the assessment report of a shared template revision if present. |
| ### `https://docs.cloud.google.com/application-design-center/docs/reference/rest/v1/projects.locations.spaces.sharedTemplates.revisions/get` | Gets details about a shared template revision. |
| ### `https://docs.cloud.google.com/application-design-center/docs/reference/rest/v1/projects.locations.spaces.sharedTemplates.revisions/list` | Lists shared template revisions in a given space. |