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

## Resource: CatalogTemplateRevision

Template revisions inside a catalog.

| JSON representation |
|---|
| ``` { "name": string, "description": string, "type": enum (`https://docs.cloud.google.com/application-design-center/docs/reference/rest/Shared.Types/TemplateType`), "createTime": string, "updateTime": string, "templateMetadata": { object (`https://docs.cloud.google.com/application-design-center/docs/reference/rest/Shared.Types/CatalogTemplateRevision#TFBlueprintMetadata`) }, "state": enum (`State`), "applicationTemplateRevision": { object (`SerializedApplicationTemplate`) }, "helmChartMetadata": { object (`https://docs.cloud.google.com/application-design-center/docs/reference/rest/Shared.Types/CatalogTemplateRevision#HelmChartMetadata`) }, "uuid": string, "metadataInput": { object (`https://docs.cloud.google.com/application-design-center/docs/reference/rest/Shared.Types/CatalogTemplateRevision#MetadataInput`) }, "templateCategory": enum (`https://docs.cloud.google.com/application-design-center/docs/reference/rest/Shared.Types/TemplateCategory`), "logicalProducts": [ { object (`https://docs.cloud.google.com/application-design-center/docs/reference/rest/Shared.Types/CatalogTemplateRevision#LogicalProduct`) } ], "annotations": { string: string, ... }, "inferredMetadata": { object (`https://docs.cloud.google.com/application-design-center/docs/reference/rest/Shared.Types/CatalogTemplateRevision#InferredMetadata`) }, "resourceTypes": [ { object (`https://docs.cloud.google.com/application-design-center/docs/reference/rest/Shared.Types/CatalogTemplateRevision#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/Shared.Types/CatalogTemplateRevision#GitSource`) }, "gcsSourceUri": string, "applicationTemplateRevisionSource": string, "developerConnectSourceConfig": { object (`https://docs.cloud.google.com/application-design-center/docs/reference/rest/Shared.Types/CatalogTemplateRevision#DeveloperConnectSourceConfig`) }, "ociRepo": { object (`https://docs.cloud.google.com/application-design-center/docs/reference/rest/Shared.Types/CatalogTemplateRevision#OciRepo`) } // End of list of possible types for union field `artifact_location`. } ``` |

| Fields ||
|---|---|
| `name` | `string` Identifier. The catalog template revision name. `projects/$project/locations/$location/spaces/$space/catalogs/$catalog/templates/$template/revisions/$revision` |
| `description` | `string` Optional. The catalog template revision description. |
| `type` | ``enum (`https://docs.cloud.google.com/application-design-center/docs/reference/rest/Shared.Types/TemplateType`)`` Optional. The Application Design Center application template type. |
| `createTime` | ``string (`https://protobuf.dev/reference/protobuf/google.protobuf#timestamp` format)`` Output only. The catalog template 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"`. |
| `updateTime` | ``string (`https://protobuf.dev/reference/protobuf/google.protobuf#timestamp` format)`` Output only. The catalog template update 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"`. |
| `templateMetadata` | ``object (`https://docs.cloud.google.com/application-design-center/docs/reference/rest/Shared.Types/CatalogTemplateRevision#TFBlueprintMetadata`)`` Output only. Template metadata related to Terraform input and output. |
| `state` | ``enum (`State`)`` Output only. The template state (validating/ready/invalid). |
| `applicationTemplateRevision` | ``object (`SerializedApplicationTemplate`)`` Output only. The application template revision. |
| `helmChartMetadata` | ``object (`https://docs.cloud.google.com/application-design-center/docs/reference/rest/Shared.Types/CatalogTemplateRevision#HelmChartMetadata`)`` Output only. The helm chart metadata. |
| `uuid` | `string` Output only. UUID of the template revision. |
| `metadataInput` | ``object (`https://docs.cloud.google.com/application-design-center/docs/reference/rest/Shared.Types/CatalogTemplateRevision#MetadataInput`)`` Optional. Metadata input. |
| `templateCategory` | ``enum (`https://docs.cloud.google.com/application-design-center/docs/reference/rest/Shared.Types/TemplateCategory`)`` Output only. The category of the template. |
| `logicalProducts[]` | ``object (`https://docs.cloud.google.com/application-design-center/docs/reference/rest/Shared.Types/CatalogTemplateRevision#LogicalProduct`)`` Output only. The Product Main logical product type information. |
| `annotations` | `map (key: string, value: string)` Optional. The annotations of the 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/Shared.Types/CatalogTemplateRevision#InferredMetadata`)`` Output only. Metadata that was automatically inferred from the template content. This field can be updated by the system as it gets new information. |
| `resourceTypes[]` | ``object (`https://docs.cloud.google.com/application-design-center/docs/reference/rest/Shared.Types/CatalogTemplateRevision#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/Shared.Types/CatalogTemplateRevision#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/Shared.Types/CatalogTemplateRevision#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/Shared.Types/CatalogTemplateRevision#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/v1alpha/projects.locations.spaces.catalogs.templates.revisions/create` | Creates a template revision. |
| ### `https://docs.cloud.google.com/application-design-center/docs/reference/rest/v1alpha/projects.locations.spaces.catalogs.templates.revisions/delete` | Deletes a template revision. |
| ### `https://docs.cloud.google.com/application-design-center/docs/reference/rest/v1alpha/projects.locations.spaces.catalogs.templates.revisions/fetchAssessmentReport` | Fetches the assessment report of a catalog template revision if present. |
| ### `https://docs.cloud.google.com/application-design-center/docs/reference/rest/v1alpha/projects.locations.spaces.catalogs.templates.revisions/get` | Gets details about a template revision. |
| ### `https://docs.cloud.google.com/application-design-center/docs/reference/rest/v1alpha/projects.locations.spaces.catalogs.templates.revisions/list` | Lists template revisions. |