{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://catalog.lintel.tools/schemas/schemastore/gcp-blueprint-metadata/latest.json",
  "x-lintel": {
    "source": "https://www.schemastore.org/gcp-blueprint-metadata.json",
    "sourceSha256": "1612e3ab6e8029e30fb947bf3eeb3d96ad66444d2de6a84c8759d3e8bccc0c5d",
    "fileMatch": [
      "metadata.yaml",
      "metadata.display.yaml"
    ],
    "parsers": [
      "yaml"
    ]
  },
  "$ref": "#/$defs/BlueprintMetadata",
  "$defs": {
    "BlueprintActuationTool": {
      "properties": {
        "flavor": {
          "type": "string"
        },
        "version": {
          "type": "string"
        }
      },
      "type": "object",
      "additionalProperties": false
    },
    "BlueprintArchitecture": {
      "properties": {
        "diagramUrl": {
          "type": "string"
        },
        "description": {
          "items": {
            "type": "string"
          },
          "type": "array"
        }
      },
      "required": [
        "diagramUrl",
        "description"
      ],
      "type": "object",
      "additionalProperties": false
    },
    "BlueprintAuthor": {
      "properties": {
        "title": {
          "type": "string"
        },
        "description": {
          "type": "string"
        },
        "url": {
          "type": "string"
        }
      },
      "required": [
        "title"
      ],
      "type": "object",
      "additionalProperties": false
    },
    "BlueprintCloudProduct": {
      "properties": {
        "productId": {
          "type": "string"
        },
        "pageUrl": {
          "type": "string"
        },
        "label": {
          "type": "string"
        },
        "isExternal": {
          "type": "boolean"
        }
      },
      "required": [
        "pageUrl"
      ],
      "type": "object",
      "additionalProperties": false
    },
    "BlueprintContent": {
      "properties": {
        "architecture": {
          "$ref": "#/$defs/BlueprintArchitecture"
        },
        "diagrams": {
          "items": {
            "$ref": "#/$defs/BlueprintDiagram"
          },
          "type": "array"
        },
        "documentation": {
          "items": {
            "$ref": "#/$defs/BlueprintListContent"
          },
          "type": "array"
        },
        "subBlueprints": {
          "items": {
            "$ref": "#/$defs/BlueprintMiscContent"
          },
          "type": "array"
        },
        "examples": {
          "items": {
            "$ref": "#/$defs/BlueprintMiscContent"
          },
          "type": "array"
        }
      },
      "type": "object",
      "additionalProperties": false
    },
    "BlueprintCostEstimate": {
      "properties": {
        "description": {
          "type": "string"
        },
        "url": {
          "type": "string"
        }
      },
      "required": [
        "description",
        "url"
      ],
      "type": "object",
      "additionalProperties": false
    },
    "BlueprintDescription": {
      "properties": {
        "tagline": {
          "type": "string"
        },
        "detailed": {
          "type": "string"
        },
        "preDeploy": {
          "type": "string"
        },
        "html": {
          "type": "string"
        },
        "eulaUrls": {
          "items": {
            "type": "string"
          },
          "type": "array"
        },
        "architecture": {
          "items": {
            "type": "string"
          },
          "type": "array"
        }
      },
      "type": "object",
      "additionalProperties": false
    },
    "BlueprintDiagram": {
      "properties": {
        "name": {
          "type": "string"
        },
        "altText": {
          "type": "string"
        },
        "description": {
          "type": "string"
        }
      },
      "required": [
        "name"
      ],
      "type": "object",
      "additionalProperties": false
    },
    "BlueprintInfo": {
      "properties": {
        "title": {
          "type": "string"
        },
        "source": {
          "$ref": "#/$defs/BlueprintRepoDetail"
        },
        "version": {
          "type": "string"
        },
        "actuationTool": {
          "$ref": "#/$defs/BlueprintActuationTool"
        },
        "description": {
          "$ref": "#/$defs/BlueprintDescription"
        },
        "icon": {
          "type": "string"
        },
        "deploymentDuration": {
          "$ref": "#/$defs/BlueprintTimeEstimate"
        },
        "costEstimate": {
          "$ref": "#/$defs/BlueprintCostEstimate"
        },
        "cloudProducts": {
          "items": {
            "$ref": "#/$defs/BlueprintCloudProduct"
          },
          "type": "array"
        },
        "quotaDetails": {
          "items": {
            "$ref": "#/$defs/BlueprintQuotaDetail"
          },
          "type": "array"
        },
        "author": {
          "$ref": "#/$defs/BlueprintAuthor"
        },
        "softwareGroups": {
          "items": {
            "$ref": "#/$defs/BlueprintSoftwareGroup"
          },
          "type": "array"
        },
        "supportInfo": {
          "$ref": "#/$defs/BlueprintSupport"
        },
        "orgPolicyChecks": {
          "items": {
            "$ref": "#/$defs/BlueprintOrgPolicyCheck"
          },
          "type": "array"
        },
        "singleDeployment": {
          "type": "boolean"
        }
      },
      "required": [
        "title"
      ],
      "type": "object",
      "additionalProperties": false
    },
    "BlueprintInterface": {
      "properties": {
        "variables": {
          "items": {
            "$ref": "#/$defs/BlueprintVariable"
          },
          "type": "array"
        },
        "variableGroups": {
          "items": {
            "$ref": "#/$defs/BlueprintVariableGroup"
          },
          "type": "array"
        },
        "outputs": {
          "items": {
            "$ref": "#/$defs/BlueprintOutput"
          },
          "type": "array"
        }
      },
      "type": "object",
      "additionalProperties": false
    },
    "BlueprintListContent": {
      "properties": {
        "title": {
          "type": "string"
        },
        "url": {
          "type": "string"
        }
      },
      "required": [
        "title"
      ],
      "type": "object",
      "additionalProperties": false
    },
    "BlueprintMetadata": {
      "properties": {
        "apiVersion": {
          "type": "string"
        },
        "kind": {
          "type": "string"
        },
        "metadata": {
          "$ref": "#/$defs/ResourceTypeMeta"
        },
        "spec": {
          "$ref": "#/$defs/BlueprintMetadataSpec"
        }
      },
      "required": [
        "spec"
      ],
      "type": "object",
      "additionalProperties": false
    },
    "BlueprintMetadataSpec": {
      "properties": {
        "info": {
          "$ref": "#/$defs/BlueprintInfo"
        },
        "content": {
          "$ref": "#/$defs/BlueprintContent"
        },
        "interfaces": {
          "$ref": "#/$defs/BlueprintInterface"
        },
        "requirements": {
          "$ref": "#/$defs/BlueprintRequirements"
        },
        "ui": {
          "$ref": "#/$defs/BlueprintUI"
        }
      },
      "type": "object",
      "additionalProperties": false
    },
    "BlueprintMiscContent": {
      "properties": {
        "name": {
          "type": "string"
        },
        "location": {
          "type": "string"
        }
      },
      "required": [
        "name"
      ],
      "type": "object",
      "additionalProperties": false
    },
    "BlueprintOrgPolicyCheck": {
      "properties": {
        "policyId": {
          "type": "string"
        },
        "requiredValues": {
          "items": {
            "type": "string"
          },
          "type": "array"
        }
      },
      "required": [
        "policyId"
      ],
      "type": "object",
      "additionalProperties": false
    },
    "BlueprintOutput": {
      "properties": {
        "name": {
          "type": "string"
        },
        "description": {
          "type": "string"
        }
      },
      "required": [
        "name"
      ],
      "type": "object",
      "additionalProperties": false
    },
    "BlueprintQuotaDetail": {
      "properties": {
        "dynamicVariable": {
          "type": "string"
        },
        "resourceType": {
          "oneOf": [
            {
              "type": "string"
            },
            {
              "type": "integer"
            }
          ]
        },
        "quotaType": {
          "type": "object",
          "additionalProperties": {
            "type": "string"
          }
        }
      },
      "required": [
        "resourceType",
        "quotaType"
      ],
      "type": "object",
      "additionalProperties": false
    },
    "BlueprintRepoDetail": {
      "properties": {
        "repo": {
          "type": "string"
        },
        "sourceType": {
          "type": "string"
        },
        "dir": {
          "type": "string"
        }
      },
      "required": [
        "repo",
        "sourceType"
      ],
      "type": "object",
      "additionalProperties": false
    },
    "BlueprintRequirements": {
      "properties": {
        "roles": {
          "items": {
            "$ref": "#/$defs/BlueprintRoles"
          },
          "type": "array"
        },
        "services": {
          "items": {
            "type": "string"
          },
          "type": "array"
        }
      },
      "type": "object",
      "additionalProperties": false
    },
    "BlueprintRoles": {
      "properties": {
        "level": {
          "type": "string"
        },
        "roles": {
          "items": {
            "type": "string"
          },
          "type": "array"
        }
      },
      "required": [
        "level",
        "roles"
      ],
      "type": "object",
      "additionalProperties": false
    },
    "BlueprintSoftware": {
      "properties": {
        "title": {
          "type": "string"
        },
        "version": {
          "type": "string"
        },
        "url": {
          "type": "string"
        },
        "licenseUrl": {
          "type": "string"
        }
      },
      "required": [
        "title"
      ],
      "type": "object",
      "additionalProperties": false
    },
    "BlueprintSoftwareGroup": {
      "properties": {
        "type": {
          "oneOf": [
            {
              "type": "string"
            },
            {
              "type": "integer"
            }
          ]
        },
        "software": {
          "items": {
            "$ref": "#/$defs/BlueprintSoftware"
          },
          "type": "array"
        }
      },
      "type": "object",
      "additionalProperties": false
    },
    "BlueprintSupport": {
      "properties": {
        "description": {
          "type": "string"
        },
        "url": {
          "type": "string"
        },
        "entity": {
          "type": "string"
        },
        "showSupportId": {
          "type": "boolean"
        }
      },
      "required": [
        "description"
      ],
      "type": "object",
      "additionalProperties": false
    },
    "BlueprintTimeEstimate": {
      "properties": {
        "configurationSecs": {
          "type": "integer"
        },
        "deploymentSecs": {
          "type": "integer"
        }
      },
      "type": "object",
      "additionalProperties": false
    },
    "BlueprintUI": {
      "properties": {
        "input": {
          "$ref": "#/$defs/BlueprintUIInput"
        },
        "runtime": {
          "$ref": "#/$defs/BlueprintUIOutput"
        }
      },
      "type": "object",
      "additionalProperties": false
    },
    "BlueprintUIInput": {
      "properties": {
        "variables": {
          "type": "object",
          "additionalProperties": {
            "$ref": "#/$defs/DisplayVariable"
          }
        },
        "sections": {
          "items": {
            "$ref": "#/$defs/DisplaySection"
          },
          "type": "array"
        }
      },
      "type": "object",
      "additionalProperties": false
    },
    "BlueprintUIOutput": {
      "properties": {
        "outputMessage": {
          "type": "string"
        },
        "suggestedActions": {
          "items": {
            "$ref": "#/$defs/UIActionItem"
          },
          "type": "array"
        },
        "outputs": {
          "type": "object",
          "additionalProperties": {
            "$ref": "#/$defs/DisplayOutput"
          }
        }
      },
      "type": "object",
      "additionalProperties": false
    },
    "BlueprintVariable": {
      "properties": {
        "name": {
          "type": "string"
        },
        "description": {
          "type": "string"
        },
        "varType": {
          "type": "string"
        },
        "defaultValue": true,
        "required": {
          "type": "boolean"
        }
      },
      "type": "object",
      "additionalProperties": false
    },
    "BlueprintVariableGroup": {
      "properties": {
        "name": {
          "type": "string"
        },
        "description": {
          "type": "string"
        },
        "variables": {
          "items": {
            "type": "string"
          },
          "type": "array"
        }
      },
      "required": [
        "name"
      ],
      "type": "object",
      "additionalProperties": false
    },
    "DisplayOutput": {
      "properties": {
        "openInNewTab": {
          "type": "boolean"
        },
        "showInNotification": {
          "type": "boolean"
        }
      },
      "type": "object",
      "additionalProperties": false
    },
    "DisplaySection": {
      "properties": {
        "name": {
          "type": "string"
        },
        "title": {
          "type": "string"
        },
        "tooltip": {
          "type": "string"
        },
        "subtext": {
          "type": "string"
        },
        "parent": {
          "type": "string"
        }
      },
      "required": [
        "name"
      ],
      "type": "object",
      "additionalProperties": false
    },
    "DisplayVariable": {
      "properties": {
        "name": {
          "type": "string"
        },
        "title": {
          "type": "string"
        },
        "invisible": {
          "type": "boolean"
        },
        "tooltip": {
          "type": "string"
        },
        "placeholder": {
          "type": "string"
        },
        "regexValidation": {
          "type": "string"
        },
        "minItems": {
          "type": "integer"
        },
        "maxItems": {
          "type": "integer"
        },
        "minLength": {
          "type": "integer"
        },
        "maxLength": {
          "type": "integer"
        },
        "min": {
          "type": "number"
        },
        "max": {
          "type": "number"
        },
        "section": {
          "type": "string"
        },
        "xGoogleProperty": {
          "$ref": "#/$defs/GooglePropertyExtension"
        },
        "validation": {
          "type": "string"
        },
        "subtext": {
          "type": "string"
        },
        "enumValueLabels": {
          "items": {
            "$ref": "#/$defs/ValueLabel"
          },
          "type": "array"
        }
      },
      "required": [
        "name",
        "title"
      ],
      "type": "object",
      "additionalProperties": false
    },
    "GCEDiskSizeExtension": {
      "properties": {
        "diskTypeVariable": {
          "type": "string"
        }
      },
      "required": [
        "diskTypeVariable"
      ],
      "type": "object",
      "additionalProperties": false
    },
    "GCEDiskTypeExtension": {
      "properties": {
        "machineTypeVariable": {
          "type": "string"
        }
      },
      "required": [
        "machineTypeVariable"
      ],
      "type": "object",
      "additionalProperties": false
    },
    "GCEExternalIPExtension": {
      "properties": {
        "networkVariable": {
          "type": "string"
        },
        "type": {
          "oneOf": [
            {
              "type": "string"
            },
            {
              "type": "integer"
            }
          ]
        },
        "notConfigurable": {
          "type": "boolean"
        },
        "allowStaticIPs": {
          "type": "boolean"
        }
      },
      "required": [
        "networkVariable"
      ],
      "type": "object",
      "additionalProperties": false
    },
    "GCEFirewallExtension": {
      "properties": {
        "networkVariable": {
          "type": "string"
        }
      },
      "required": [
        "networkVariable"
      ],
      "type": "object",
      "additionalProperties": false
    },
    "GCEFirewallRangeExtension": {
      "properties": {
        "firewallVariable": {
          "type": "string"
        }
      },
      "required": [
        "firewallVariable"
      ],
      "type": "object",
      "additionalProperties": false
    },
    "GCEGPUCountExtension": {
      "properties": {
        "machineTypeVariable": {
          "type": "string"
        }
      },
      "required": [
        "machineTypeVariable"
      ],
      "type": "object",
      "additionalProperties": false
    },
    "GCEGPUTypeExtension": {
      "properties": {
        "machineType": {
          "type": "string"
        },
        "gpuType": {
          "items": {
            "type": "string"
          },
          "type": "array"
        }
      },
      "required": [
        "machineType"
      ],
      "type": "object",
      "additionalProperties": false
    },
    "GCEGenericResourceExtension": {
      "properties": {
        "resourceVariable": {
          "type": "string"
        }
      },
      "required": [
        "resourceVariable"
      ],
      "type": "object",
      "additionalProperties": false
    },
    "GCEIPForwardingExtension": {
      "properties": {
        "networkVariable": {
          "type": "string"
        },
        "notConfigurable": {
          "type": "boolean"
        }
      },
      "required": [
        "networkVariable"
      ],
      "type": "object",
      "additionalProperties": false
    },
    "GCELocationExtension": {
      "properties": {
        "allowlistedZones": {
          "items": {
            "type": "string"
          },
          "type": "array"
        },
        "allowlistedRegions": {
          "items": {
            "type": "string"
          },
          "type": "array"
        }
      },
      "type": "object",
      "additionalProperties": false
    },
    "GCEMachineTypeExtension": {
      "properties": {
        "minCpu": {
          "type": "integer"
        },
        "minRamGb": {
          "type": "number"
        },
        "disallowCustomMachineTypes": {
          "type": "boolean"
        },
        "diskImageProperty": {
          "type": "string"
        }
      },
      "type": "object",
      "additionalProperties": false
    },
    "GCENetworkExtension": {
      "properties": {
        "allowSharedVpcs": {
          "type": "boolean"
        },
        "machineTypeVariable": {
          "type": "string"
        },
        "labels": {
          "items": {
            "type": "string"
          },
          "type": "array"
        }
      },
      "required": [
        "machineTypeVariable"
      ],
      "type": "object",
      "additionalProperties": false
    },
    "GCESubnetworkExtension": {
      "properties": {
        "networkVariable": {
          "type": "string"
        }
      },
      "required": [
        "networkVariable"
      ],
      "type": "object",
      "additionalProperties": false
    },
    "GooglePropertyExtension": {
      "properties": {
        "type": {
          "oneOf": [
            {
              "type": "string"
            },
            {
              "type": "integer"
            }
          ]
        },
        "zoneProperty": {
          "type": "string"
        },
        "gceMachineType": {
          "$ref": "#/$defs/GCEMachineTypeExtension"
        },
        "gceDiskSize": {
          "$ref": "#/$defs/GCEDiskSizeExtension"
        },
        "gceSubnetwork": {
          "$ref": "#/$defs/GCESubnetworkExtension"
        },
        "gceResource": {
          "$ref": "#/$defs/GCEGenericResourceExtension"
        },
        "gceGpuType": {
          "$ref": "#/$defs/GCEGPUTypeExtension"
        },
        "gceGpuCount": {
          "$ref": "#/$defs/GCEGPUCountExtension"
        },
        "gceNetwork": {
          "$ref": "#/$defs/GCENetworkExtension"
        },
        "gceExternalIp": {
          "$ref": "#/$defs/GCEExternalIPExtension"
        },
        "gceIpForwarding": {
          "$ref": "#/$defs/GCEIPForwardingExtension"
        },
        "gceFirewall": {
          "$ref": "#/$defs/GCEFirewallExtension"
        },
        "gceFirewallRange": {
          "$ref": "#/$defs/GCEFirewallRangeExtension"
        },
        "gceZone": {
          "$ref": "#/$defs/GCELocationExtension"
        },
        "gceRegion": {
          "$ref": "#/$defs/GCELocationExtension"
        },
        "iamServiceAccount": {
          "$ref": "#/$defs/IAMServiceAccountExtension"
        },
        "gceDiskType": {
          "$ref": "#/$defs/GCEDiskTypeExtension"
        }
      },
      "required": [
        "type"
      ],
      "type": "object",
      "additionalProperties": false
    },
    "IAMServiceAccountExtension": {
      "properties": {
        "roles": {
          "items": {
            "type": "string"
          },
          "type": "array"
        }
      },
      "required": [
        "roles"
      ],
      "type": "object",
      "additionalProperties": false
    },
    "ResourceTypeMeta": {
      "properties": {
        "name": {
          "type": "string"
        },
        "labels": {
          "type": "object",
          "additionalProperties": {
            "type": "string"
          }
        },
        "annotations": {
          "type": "object",
          "additionalProperties": {
            "type": "string"
          }
        }
      },
      "type": "object",
      "additionalProperties": false
    },
    "UIActionItem": {
      "properties": {
        "heading": {
          "type": "string"
        },
        "description": {
          "type": "string"
        },
        "snippet": {
          "type": "string"
        },
        "showIf": {
          "type": "string"
        }
      },
      "required": [
        "heading"
      ],
      "type": "object",
      "additionalProperties": false
    },
    "Value": {
      "properties": {
        "Kind": true
      },
      "required": [
        "Kind"
      ],
      "type": "object",
      "additionalProperties": false
    },
    "ValueLabel": {
      "properties": {
        "label": {
          "type": "string"
        },
        "value": {
          "type": "string"
        }
      },
      "type": "object",
      "additionalProperties": false
    }
  }
}
