{
  "$schema": "http://json-schema.org/draft-07/schema#",
  "title": "CreateWorkspaceRequest",
  "properties": {
    "backend": {
      "description": "Workspace backend type.",
      "type": "string",
      "nullable": true,
      "enum": [
        "snowflake",
        "bigquery",
        "abs"
      ]
    },
    "backendSize": {
      "description": "Requested backend size (Snowflake only).",
      "type": "string",
      "nullable": true
    },
    "readOnlyStorageAccess": {
      "description": "Enable read-only storage access.",
      "type": "boolean",
      "nullable": true
    },
    "networkPolicy": {
      "description": "Network policy for the workspace.",
      "type": "string",
      "nullable": true,
      "enum": [
        "system",
        "user",
        "not-defined"
      ]
    },
    "loginType": {
      "description": "Preferred login type. Use \"none\" to create a workspace without credentials for QueryService. Create direct connection credentials later using the workspace credentials endpoint.",
      "type": "string",
      "nullable": true,
      "enum": [
        null,
        "default",
        "snowflake-legacy-service",
        "snowflake-person-sso",
        "snowflake-person-keypair",
        "snowflake-service-keypair",
        "none"
      ]
    },
    "publicKey": {
      "description": "RSA public key for key pair login.",
      "type": "string",
      "nullable": true
    },
    "useCase": {
      "description": "Workspace use case.",
      "type": "string",
      "nullable": true,
      "enum": [
        "normal",
        "reader"
      ]
    },
    "configurationVersion": {
      "description": "Pin workspace to a specific configuration version.",
      "type": "integer",
      "nullable": true
    }
  },
  "type": "object"
}