{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/broad-institute/json-schema/broad-institute-create-rawls-v2-billing-project-full-request-schema.json",
  "title": "CreateRawlsV2BillingProjectFullRequest",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/broad-institute-billingv2-api-openapi.yml#/components/schemas/CreateRawlsV2BillingProjectFullRequest",
  "required": [
    "projectName"
  ],
  "type": "object",
  "properties": {
    "projectName": {
      "type": "string",
      "description": "the name of the project to create"
    },
    "billingAccount": {
      "type": "string",
      "description": "the id of the Google billing account to use, must start with 'billingAccounts/'"
    },
    "servicePerimeter": {
      "type": "string",
      "description": "The fully qualified name of the GCP service perimeter to put this project into in the form accessPolicies/[POLICY NUMBER]/servicePerimeters/[NAME]. Caller must have the add_project action for this service perimeter in Sam."
    },
    "managedAppCoordinates": {
      "$ref": "#/$defs/AzureManagedAppCoordinates"
    },
    "members": {
      "description": "The list of members to add to the billing project",
      "type": "array",
      "items": {
        "$ref": "#/$defs/ProjectAccessUpdate"
      }
    },
    "inviteUsersNotFound": {
      "description": "If true, invite the users to Terra if they are not registered in the system. They will be given access to the project when they register.",
      "type": "boolean"
    },
    "protectedData": {
      "type": "boolean",
      "description": "Optional, false if not specified. Applicable only for azure billing projects. When set, a billing project with suitable infrastructure for protected data workspaces will be created."
    },
    "costSavings": {
      "type": "boolean",
      "description": "Optional, false if not specified. Applicable only for azure billing projects. When set, this enables Vertical Pod Autoscaling and Spot Nodes in Azure Kubernetes."
    }
  },
  "$defs": {
    "AzureManagedAppCoordinates": {
      "required": [
        "tenantId",
        "subscriptionId",
        "managedResourceGroupId"
      ],
      "type": "object",
      "properties": {
        "tenantId": {
          "type": "string",
          "format": "uuid",
          "description": "UUID of the Azure tenant for this managed application deployment"
        },
        "subscriptionId": {
          "type": "string",
          "format": "uuid",
          "description": "UUID of the Azure subscription for this managed application deployment."
        },
        "managedResourceGroupId": {
          "type": "string",
          "description": "ID of the Azure managed resource group for this managed application deployment."
        }
      }
    },
    "ProjectAccessUpdate": {
      "required": [
        "email",
        "role"
      ],
      "type": "object",
      "properties": {
        "email": {
          "description": "the email of the member to modify access for",
          "type": "string"
        },
        "role": {
          "description": "the role to modify for the specified member",
          "$ref": "#/$defs/ProjectRole"
        }
      }
    },
    "ProjectRole": {
      "description": "the role on the billing project",
      "type": "string",
      "enum": [
        "owner",
        "user"
      ]
    }
  }
}