{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/google-cloud-secret-manager/json-schema/google-cloud-secret-manager-parameter-version-schema.json",
  "title": "ParameterVersion",
  "description": "Message describing ParameterVersion resource",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/google-cloud-secret-manager-parametermanager-projects-api-openapi.yml#/components/schemas/ParameterVersion",
  "properties": {
    "disabled": {
      "description": "Optional. Disabled boolean to determine if a ParameterVersion acts as a metadata only resource (payload is never returned if disabled is true). If true any calls will always default to BASIC view even if the user explicitly passes FULL view as part of the request. A render call on a disabled resource fails with an error. Default value is False.",
      "type": "boolean"
    },
    "kmsKeyVersion": {
      "type": "string",
      "readOnly": true,
      "description": "Optional. Output only. The resource name of the KMS key version used to encrypt the ParameterVersion payload. This field is populated only if the Parameter resource has customer managed encryption key (CMEK) configured."
    },
    "createTime": {
      "format": "google-datetime",
      "readOnly": true,
      "description": "Output only. Create time stamp",
      "type": "string"
    },
    "checksumSource": {
      "readOnly": true,
      "type": "string",
      "enum": [
        "CHECKSUM_SOURCE_UNSPECIFIED",
        "SERVER_GENERATED",
        "USER_SPECIFIED"
      ],
      "description": "Optional. Output only. The source of the checksum."
    },
    "name": {
      "type": "string",
      "description": "Identifier. The resource name of the ParameterVersion in the format `projects/*/locations/*/parameters/*/versions/*`."
    },
    "payload": {
      "$ref": "#/$defs/ParameterVersionPayload",
      "description": "Required. Immutable. Payload content of a ParameterVersion resource. This is only returned when the request provides the View value of FULL (default for GET request)."
    },
    "updateTime": {
      "description": "Output only. Update time stamp",
      "format": "google-datetime",
      "readOnly": true,
      "type": "string"
    }
  },
  "type": "object",
  "$defs": {
    "ParameterVersionPayload": {
      "type": "object",
      "properties": {
        "data": {
          "type": "string",
          "format": "byte",
          "description": "Required. bytes data for storing payload."
        },
        "dataCrc32c": {
          "type": "string",
          "format": "int64",
          "description": "Optional. The integrity checksum of the payload. If provided, the server will verify that the checksum matches the payload. If not provided, the server will generate the checksum."
        }
      },
      "description": "Message for storing a ParameterVersion resource's payload data"
    }
  }
}