For the complete documentation index, see llms.txt. This page is also available as Markdown.

Policy

Policies allow administrators to impose restrictions and set default values for researcher workloads. Restrictions and default values can be placed on CPUs, GPUs, and other resources or entities. For more information, see Policies.

List policies

get

Retrieve a list of all the applied policies.

Authorizations
AuthorizationstringRequired

Bearer authentication

Query parameters
workloadTypestring · enum · min: 1Optional

Policy for a specific workload type.

Possible values:
scopestring · enumOptional

filter by this scope.

Possible values:
departmentIdstringOptional

Filter using the department id.

Example: 1
projectIdstringOptional

project id to filter by

Example: 1
clusterIdstring · uuidOptional

Filter using the Universally Unique Identifier (UUID) of the cluster.

Example: d73a738f-fab3-430a-8fa3-5241493d7128
includeFallbackPoliciesbooleanOptional

whether to include fallback policies in the list. Default to false.

Responses
200

Request completed successfully.

application/json
get/api/v2/policy
GET /api/v2/policy HTTP/1.1
Host: app.run.ai
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
  "policies": [
    {
      "type": "workspace",
      "meta": {
        "id": "123e4567-e89b-12d3-a456-426614174000",
        "tenantId": 1001,
        "clusterId": "71f69d83-ba66-4822-adf5-55ce55efd210",
        "createdBy": "text",
        "createdAt": "2026-01-01T00:00:00.000Z",
        "updatedBy": "text",
        "updatedAt": "2026-01-01T00:00:00.000Z",
        "scope": "system",
        "projectId": 1,
        "departmentId": 2,
        "name": "my-policy"
      },
      "status": {
        "clusters": [
          {
            "clusterId": "71f69d83-ba66-4822-adf5-55ce55efd210",
            "status": "Not ready",
            "errorMessage": "text"
          }
        ],
        "validation": {
          "errorMessage": "text"
        }
      }
    }
  ]
}

Get a training policy.

get

Retrieve the details of a training policy for a given organizational unit.

Authorizations
AuthorizationstringRequired

Bearer authentication

Query parameters
scopestring · enumRequired

The scope that the policy relates to.

Possible values:
departmentIdstringOptional

Filter using the department id.

Example: 1
projectIdstringOptional

project id to filter by

Example: 1
clusterIdstring · uuidOptional

Filter using the Universally Unique Identifier (UUID) of the cluster.

Example: d73a738f-fab3-430a-8fa3-5241493d7128
Responses
200

Request completed successfully.

application/json
effectiveUpdatedAtstring · date-time · min: 1Optional

The time at which an event occurred. e.g. the time an effective policy has been updated

get/api/v2/policy/trainings
GET /api/v2/policy/trainings?scope=tenant HTTP/1.1
Host: app.run.ai
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
  "meta": {
    "id": "123e4567-e89b-12d3-a456-426614174000",
    "tenantId": 1001,
    "clusterId": "71f69d83-ba66-4822-adf5-55ce55efd210",
    "createdBy": "text",
    "createdAt": "2026-01-01T00:00:00.000Z",
    "updatedBy": "text",
    "updatedAt": "2026-01-01T00:00:00.000Z",
    "scope": "system",
    "projectId": 1,
    "departmentId": 2,
    "name": "my-policy"
  },
  "policy": {
    "defaults": {
      "annotations": {
        "instances": [
          {
            "name": "billing",
            "value": "my-billing-unit",
            "exclude": false
          }
        ]
      },
      "args": "-x my-script.py",
      "autoDeletionTimeAfterCompletionSeconds": 15,
      "backoffLimit": 3,
      "category": "text",
      "command": "python",
      "completions": 1,
      "compute": {
        "cpuCoreLimit": 2,
        "cpuCoreRequest": 0.5,
        "cpuMemoryLimit": "30M",
        "cpuMemoryRequest": "20M",
        "extendedResources": {
          "attributes": {
            "resource": "hardware-vendor.example/foo",
            "quantity": 2,
            "exclude": false
          },
          "instances": [
            {
              "resource": "hardware-vendor.example/foo",
              "quantity": 2,
              "exclude": false
            }
          ]
        },
        "gpuDevicesRequest": 1,
        "gpuMemoryLimit": "10M",
        "gpuMemoryRequest": "10M",
        "gpuPortionLimit": 0.5,
        "gpuPortionRequest": 0.5,
        "gpuRequestType": "portion",
        "largeShmRequest": false
      },
      "createHomeDir": true,
      "environmentVariables": {
        "instances": [
          {
            "name": "HOME",
            "value": "/home/my-folder",
            "secret": {
              "name": "postgress_secret",
              "key": "POSTGRES_PASSWORD"
            },
            "configMap": {
              "name": "my-config-map",
              "key": "MY_POSTGRES_SCHEMA"
            },
            "podFieldRef": {
              "path": "metadata.name"
            },
            "userCredential": {
              "name": "my_postgres_user_and_password",
              "key": "POSTGRES_PASSWORD"
            },
            "exclude": false,
            "description": "Home directory of the user."
          }
        ]
      },
      "exposedUrls": {
        "attributes": {
          "container": 8080,
          "url": "https://my-url.com",
          "authorizationType": "authenticatedUsers",
          "authorizedUsers": [
            "user-a",
            "user-b"
          ],
          "authorizedGroups": [
            "group-a",
            "group-b"
          ],
          "toolType": "jupyter",
          "toolName": "my-pytorch",
          "name": "url-instance-a",
          "exclude": false
        },
        "instances": [
          {
            "container": 8080,
            "url": "https://my-url.com",
            "authorizationType": "authenticatedUsers",
            "authorizedUsers": [
              "user-a",
              "user-b"
            ],
            "authorizedGroups": [
              "group-a",
              "group-b"
            ],
            "toolType": "jupyter",
            "toolName": "my-pytorch",
            "name": "url-instance-a",
            "exclude": false
          }
        ]
      },
      "image": "python:3.8",
      "imagePullPolicy": "Always",
      "imagePullSecrets": {
        "instances": [
          {
            "name": "text",
            "userCredential": true,
            "exclude": false
          }
        ]
      },
      "labels": {
        "instances": [
          {
            "name": "stage",
            "value": "initial-research",
            "exclude": false
          }
        ]
      },
      "nodeAffinityRequired": {
        "nodeSelectorTerms": [
          {
            "matchExpressions": [
              {
                "key": "text",
                "operator": "In",
                "values": [
                  "text"
                ]
              }
            ]
          }
        ]
      },
      "nodePools": [
        "my-node-pool-a",
        "my-node-pool-b"
      ],
      "nodeType": "my-node-type",
      "parallelism": 1,
      "podAffinity": {
        "type": "Required",
        "key": "text"
      },
      "ports": {
        "attributes": {
          "container": 8080,
          "serviceType": "LoadBalancer",
          "external": 30080,
          "toolType": "pytorch",
          "toolName": "my-pytorch",
          "name": "port-instance-a",
          "exclude": false
        },
        "instances": [
          {
            "container": 8080,
            "serviceType": "LoadBalancer",
            "external": 30080,
            "toolType": "pytorch",
            "toolName": "my-pytorch",
            "name": "port-instance-a",
            "exclude": false
          }
        ]
      },
      "preemptibility": "preemptible",
      "priorityClass": "text",
      "probes": {
        "readiness": {
          "initialDelaySeconds": 1,
          "periodSeconds": 1,
          "timeoutSeconds": 1,
          "successThreshold": 1,
          "failureThreshold": 1,
          "handler": {
            "httpGet": {
              "path": "/",
              "port": 1,
              "host": "example.com",
              "scheme": "HTTP"
            }
          }
        }
      },
      "relatedUrls": {
        "attributes": {
          "url": "https://my-url.com",
          "type": "wandb",
          "name": "url-instance-a",
          "exclude": false
        },
        "instances": [
          {
            "url": "https://my-url.com",
            "type": "wandb",
            "name": "url-instance-a",
            "exclude": false
          }
        ]
      },
      "restartPolicy": "Always",
      "security": {
        "allowPrivilegeEscalation": false,
        "capabilities": [
          "CHOWN",
          "KILL"
        ],
        "hostIpc": false,
        "hostNetwork": false,
        "readOnlyRootFilesystem": false,
        "runAsGid": 30,
        "runAsNonRoot": true,
        "runAsUid": 500,
        "seccompProfileType": "RuntimeDefault",
        "supplementalGroups": "2,3,5,8",
        "uidGidSource": "fromTheImage"
      },
      "stdin": true,
      "storage": {
        "configMapVolume": {
          "attributes": {
            "name": "storage-instance-a",
            "configMap": "text",
            "mountPath": "text",
            "subPath": "text",
            "defaultMode": "0644",
            "exclude": false
          },
          "instances": [
            {
              "name": "storage-instance-a",
              "configMap": "text",
              "mountPath": "text",
              "subPath": "text",
              "defaultMode": "0644",
              "exclude": false
            }
          ]
        },
        "dataVolume": {
          "attributes": {
            "id": "123e4567-e89b-12d3-a456-426614174000",
            "mountPath": "/mnt/data",
            "exclude": false
          },
          "instances": [
            {
              "id": "123e4567-e89b-12d3-a456-426614174000",
              "mountPath": "/mnt/data",
              "exclude": false
            }
          ]
        },
        "emptyDirVolume": {
          "attributes": {
            "name": "storage-instance-a",
            "path": "/mnt/emptydir",
            "medium": "text",
            "sizeLimit": "1G",
            "exclude": false
          },
          "instances": [
            {
              "name": "storage-instance-a",
              "path": "/mnt/emptydir",
              "medium": "text",
              "sizeLimit": "1G",
              "exclude": false
            }
          ]
        },
        "git": {
          "attributes": {
            "name": "storage-instance-a",
            "repository": "https://github.com/my-git/my-repo",
            "branch": "main",
            "revision": "text",
            "path": "/container/my-repository",
            "passwordSecret": "my-password-secret",
            "secretKeyOfUser": "User",
            "secretKeyOfPassword": "Password",
            "exclude": false,
            "secretRef": {
              "name": "my-password-secret",
              "authenticationMethod": "password",
              "secretKeyOfUser": "User",
              "secretKeyOfPassword": "Password"
            }
          },
          "instances": [
            {
              "name": "storage-instance-a",
              "repository": "https://github.com/my-git/my-repo",
              "branch": "main",
              "revision": "text",
              "path": "/container/my-repository",
              "passwordSecret": "my-password-secret",
              "secretKeyOfUser": "User",
              "secretKeyOfPassword": "Password",
              "exclude": false,
              "secretRef": {
                "name": "my-password-secret",
                "authenticationMethod": "password",
                "secretKeyOfUser": "User",
                "secretKeyOfPassword": "Password"
              }
            }
          ]
        },
        "hostPath": {
          "attributes": {
            "name": "storage-instance-a",
            "path": "/container/directory",
            "readOnly": true,
            "mountPath": "/local/directory",
            "mountPropagation": "None",
            "exclude": false
          },
          "instances": [
            {
              "name": "storage-instance-a",
              "path": "/container/directory",
              "readOnly": true,
              "mountPath": "/local/directory",
              "mountPropagation": "None",
              "exclude": false
            }
          ]
        },
        "nfs": {
          "attributes": {
            "name": "storage-instance-a",
            "path": "/container/nfs",
            "readOnly": true,
            "server": "my.nfs.com",
            "mountPath": "/local/nfs",
            "exclude": false
          },
          "instances": [
            {
              "name": "storage-instance-a",
              "path": "/container/nfs",
              "readOnly": true,
              "server": "my.nfs.com",
              "mountPath": "/local/nfs",
              "exclude": false
            }
          ]
        },
        "pvc": {
          "attributes": {
            "name": "storage-instance-a",
            "path": "/container/my-claim",
            "existingPvc": false,
            "claimName": "my-claim",
            "readOnly": false,
            "ephemeral": false,
            "claimInfo": {
              "size": "1G",
              "storageClass": "my-storage-class",
              "accessModes": {
                "readWriteOnce": true,
                "readOnlyMany": false,
                "readWriteMany": false
              },
              "volumeMode": "Filesystem",
              "addedAttrValues": [
                {
                  "key": "dnsname",
                  "value": "my.dns.com"
                }
              ]
            },
            "dataSharing": false,
            "exclude": false
          },
          "instances": [
            {
              "name": "storage-instance-a",
              "path": "/container/my-claim",
              "existingPvc": false,
              "claimName": "my-claim",
              "readOnly": false,
              "ephemeral": false,
              "claimInfo": {
                "size": "1G",
                "storageClass": "my-storage-class",
                "accessModes": {
                  "readWriteOnce": true,
                  "readOnlyMany": false,
                  "readWriteMany": false
                },
                "volumeMode": "Filesystem",
                "addedAttrValues": [
                  {
                    "key": "dnsname",
                    "value": "my.dns.com"
                  }
                ]
              },
              "dataSharing": false,
              "exclude": false
            }
          ]
        },
        "s3": {
          "attributes": {
            "name": "storage-instance-a",
            "bucket": "my-bucket",
            "path": "/container/my-bucket",
            "url": "https://s3.amazonaws.com",
            "accessKeySecret": "my-access-key-secret",
            "secretKeyOfAccessKeyId": "AccessKeyId",
            "secretKeyOfSecretKey": "SecretKey",
            "exclude": false
          },
          "instances": [
            {
              "name": "storage-instance-a",
              "bucket": "my-bucket",
              "path": "/container/my-bucket",
              "url": "https://s3.amazonaws.com",
              "accessKeySecret": "my-access-key-secret",
              "secretKeyOfAccessKeyId": "AccessKeyId",
              "secretKeyOfSecretKey": "SecretKey",
              "exclude": false
            }
          ]
        },
        "secretVolume": {
          "attributes": {
            "name": "storage-instance-a",
            "mountPath": "text",
            "defaultMode": "0644",
            "secret": "text",
            "exclude": false
          },
          "instances": [
            {
              "name": "storage-instance-a",
              "mountPath": "text",
              "defaultMode": "0644",
              "secret": "text",
              "exclude": false
            }
          ]
        }
      },
      "terminateAfterPreemption": false,
      "terminationGracePeriodSeconds": 20,
      "tolerations": {
        "attributes": {
          "name": "text",
          "operator": "Equal",
          "key": "text",
          "value": "text",
          "effect": "NoSchedule",
          "seconds": 1,
          "exclude": false
        },
        "instances": [
          {
            "name": "text",
            "operator": "Equal",
            "key": "text",
            "value": "text",
            "effect": "NoSchedule",
            "seconds": 1,
            "exclude": false
          }
        ]
      },
      "tty": true,
      "workingDir": "/home/myfolder"
    },
    "rules": {
      "annotations": {
        "instances": {
          "sourceOfRule": {
            "scope": "project",
            "projectId": 3
          },
          "canAdd": true,
          "locked": [
            "HOME",
            "USER"
          ]
        }
      },
      "args": {
        "required": true,
        "canEdit": false,
        "blocked": false,
        "options": []
      },
      "autoDeletionTimeAfterCompletionSeconds": {
        "sourceOfRule": {
          "scope": "project",
          "projectId": 3
        },
        "required": true,
        "canEdit": true,
        "min": 1,
        "max": 1,
        "step": 1,
        "defaultFrom": {
          "field": "text",
          "factor": 1
        }
      },
      "backoffLimit": {
        "sourceOfRule": {
          "scope": "project",
          "projectId": 3
        },
        "required": true,
        "canEdit": true,
        "min": 1,
        "max": 1,
        "step": 1,
        "defaultFrom": {
          "field": "text",
          "factor": 1
        }
      },
      "category": {
        "required": true,
        "canEdit": false,
        "blocked": false,
        "options": []
      },
      "command": {
        "required": true,
        "canEdit": false,
        "blocked": false,
        "options": []
      },
      "completions": {
        "sourceOfRule": {
          "scope": "project",
          "projectId": 3
        },
        "required": true,
        "canEdit": true,
        "min": 1,
        "max": 1,
        "step": 1,
        "defaultFrom": {
          "field": "text",
          "factor": 1
        }
      },
      "compute": {
        "cpuCoreLimit": {
          "sourceOfRule": {
            "scope": "project",
            "projectId": 3
          },
          "required": true,
          "canEdit": true,
          "min": 1,
          "max": 1,
          "step": 1,
          "defaultFrom": {
            "field": "text",
            "factor": 1
          }
        },
        "cpuCoreRequest": {
          "sourceOfRule": {
            "scope": "project",
            "projectId": 3
          },
          "required": true,
          "canEdit": true,
          "min": 1,
          "max": 1,
          "step": 1,
          "defaultFrom": {
            "field": "text",
            "factor": 1
          }
        },
        "cpuMemoryLimit": {
          "sourceOfRule": {
            "scope": "project",
            "projectId": 3
          },
          "required": true,
          "canEdit": true,
          "min": "text",
          "max": "text",
          "defaultFrom": {
            "field": "text",
            "factor": 1
          }
        },
        "cpuMemoryRequest": {
          "sourceOfRule": {
            "scope": "project",
            "projectId": 3
          },
          "required": true,
          "canEdit": true,
          "min": "text",
          "max": "text",
          "defaultFrom": {
            "field": "text",
            "factor": 1
          }
        },
        "extendedResources": {
          "attributes": {
            "quantity": {
              "required": true,
              "canEdit": false,
              "blocked": false,
              "options": []
            }
          },
          "instances": {
            "sourceOfRule": {
              "scope": "project",
              "projectId": 3
            },
            "canAdd": true,
            "locked": [
              "HOME",
              "USER"
            ]
          }
        },
        "gpuDevicesRequest": {
          "sourceOfRule": {
            "scope": "project",
            "projectId": 3
          },
          "required": true,
          "canEdit": true,
          "min": 1,
          "max": 1,
          "step": 1,
          "defaultFrom": {
            "field": "text",
            "factor": 1
          }
        },
        "gpuMemoryLimit": {
          "sourceOfRule": {
            "scope": "project",
            "projectId": 3
          },
          "required": true,
          "canEdit": true,
          "min": "text",
          "max": "text",
          "defaultFrom": {
            "field": "text",
            "factor": 1
          }
        },
        "gpuMemoryRequest": {
          "sourceOfRule": {
            "scope": "project",
            "projectId": 3
          },
          "required": true,
          "canEdit": true,
          "min": "text",
          "max": "text",
          "defaultFrom": {
            "field": "text",
            "factor": 1
          }
        },
        "gpuPortionLimit": {
          "sourceOfRule": {
            "scope": "project",
            "projectId": 3
          },
          "required": true,
          "canEdit": true,
          "min": 1,
          "max": 1,
          "step": 1,
          "defaultFrom": {
            "field": "text",
            "factor": 1
          }
        },
        "gpuPortionRequest": {
          "sourceOfRule": {
            "scope": "project",
            "projectId": 3
          },
          "required": true,
          "canEdit": true,
          "min": 1,
          "max": 1,
          "step": 1,
          "defaultFrom": {
            "field": "text",
            "factor": 1
          }
        },
        "gpuRequestType": {
          "required": true,
          "canEdit": false,
          "blocked": false,
          "options": []
        },
        "largeShmRequest": {
          "sourceOfRule": {
            "scope": "project",
            "projectId": 3
          },
          "required": true,
          "canEdit": true
        }
      },
      "createHomeDir": {
        "sourceOfRule": {
          "scope": "project",
          "projectId": 3
        },
        "required": true,
        "canEdit": true
      },
      "environmentVariables": {
        "instances": {
          "sourceOfRule": {
            "scope": "project",
            "projectId": 3
          },
          "canAdd": true,
          "locked": [
            "HOME",
            "USER"
          ]
        }
      },
      "exposedUrls": {
        "attributes": {
          "container": {
            "sourceOfRule": {
              "scope": "project",
              "projectId": 3
            },
            "required": true,
            "canEdit": true,
            "min": 1,
            "max": 1,
            "step": 1,
            "defaultFrom": {
              "field": "text",
              "factor": 1
            }
          },
          "customUrl": {
            "sourceOfRule": {
              "scope": "project",
              "projectId": 3
            },
            "required": true,
            "canEdit": true
          },
          "url": {
            "required": true,
            "canEdit": false,
            "blocked": false,
            "options": []
          },
          "authorizedUsers": {
            "sourceOfRule": {
              "scope": "project",
              "projectId": 3
            },
            "required": true,
            "options": [],
            "canEdit": true
          },
          "authorizedGroups": {
            "sourceOfRule": {
              "scope": "project",
              "projectId": 3
            },
            "required": true,
            "options": [],
            "canEdit": true
          },
          "toolType": {
            "required": true,
            "canEdit": false,
            "blocked": false,
            "options": []
          },
          "toolName": {
            "required": true,
            "canEdit": false,
            "blocked": false,
            "options": []
          }
        },
        "instances": {
          "sourceOfRule": {
            "scope": "project",
            "projectId": 3
          },
          "canAdd": true,
          "locked": [
            "HOME",
            "USER"
          ]
        }
      },
      "image": {
        "required": true,
        "canEdit": false,
        "blocked": false,
        "options": []
      },
      "imagePullPolicy": {
        "required": true,
        "canEdit": false,
        "blocked": false,
        "options": []
      },
      "imagePullSecrets": {
        "attributes": {
          "name": {
            "required": true,
            "canEdit": false,
            "blocked": false,
            "options": []
          },
          "userCredentials": {
            "sourceOfRule": {
              "scope": "project",
              "projectId": 3
            },
            "required": true,
            "canEdit": true
          }
        },
        "instances": {
          "sourceOfRule": {
            "scope": "project",
            "projectId": 3
          },
          "canAdd": true,
          "locked": [
            "HOME",
            "USER"
          ]
        }
      },
      "labels": {
        "instances": {
          "sourceOfRule": {
            "scope": "project",
            "projectId": 3
          },
          "canAdd": true,
          "locked": [
            "HOME",
            "USER"
          ]
        }
      },
      "nodeAffinityRequired": {
        "sourceOfRule": {
          "scope": "project",
          "projectId": 3
        },
        "required": true,
        "canEdit": true
      },
      "nodePools": {
        "sourceOfRule": {
          "scope": "project",
          "projectId": 3
        },
        "required": true,
        "options": [],
        "canEdit": true
      },
      "nodeType": {
        "required": true,
        "canEdit": false,
        "blocked": false,
        "options": []
      },
      "parallelism": {
        "sourceOfRule": {
          "scope": "project",
          "projectId": 3
        },
        "required": true,
        "canEdit": true,
        "min": 1,
        "max": 1,
        "step": 1,
        "defaultFrom": {
          "field": "text",
          "factor": 1
        }
      },
      "podAffinity": {
        "type": {
          "required": true,
          "canEdit": false,
          "blocked": false,
          "options": []
        },
        "key": {
          "required": true,
          "canEdit": false,
          "blocked": false,
          "options": []
        }
      },
      "ports": {
        "attributes": {
          "container": {
            "sourceOfRule": {
              "scope": "project",
              "projectId": 3
            },
            "required": true,
            "canEdit": true,
            "min": 1,
            "max": 1,
            "step": 1,
            "defaultFrom": {
              "field": "text",
              "factor": 1
            }
          },
          "serviceType": {
            "required": true,
            "canEdit": false,
            "blocked": false,
            "options": []
          },
          "customExternalPort": {
            "sourceOfRule": {
              "scope": "project",
              "projectId": 3
            },
            "required": true,
            "canEdit": true
          },
          "external": {
            "sourceOfRule": {
              "scope": "project",
              "projectId": 3
            },
            "required": true,
            "canEdit": true,
            "min": 1,
            "max": 1,
            "step": 1,
            "defaultFrom": {
              "field": "text",
              "factor": 1
            }
          },
          "toolType": {
            "required": true,
            "canEdit": false,
            "blocked": false,
            "options": []
          },
          "toolName": {
            "required": true,
            "canEdit": false,
            "blocked": false,
            "options": []
          }
        },
        "instances": {
          "sourceOfRule": {
            "scope": "project",
            "projectId": 3
          },
          "canAdd": true,
          "locked": [
            "HOME",
            "USER"
          ]
        }
      },
      "preemptibility": {
        "required": true,
        "canEdit": false,
        "blocked": false,
        "options": []
      },
      "priorityClass": {
        "required": true,
        "canEdit": false,
        "blocked": false,
        "options": []
      },
      "probes": {
        "readiness": {
          "initialDelaySeconds": {
            "sourceOfRule": {
              "scope": "project",
              "projectId": 3
            },
            "required": true,
            "canEdit": true,
            "min": 1,
            "max": 1,
            "step": 1,
            "defaultFrom": {
              "field": "text",
              "factor": 1
            }
          },
          "periodSeconds": {
            "sourceOfRule": {
              "scope": "project",
              "projectId": 3
            },
            "required": true,
            "canEdit": true,
            "min": 1,
            "max": 1,
            "step": 1,
            "defaultFrom": {
              "field": "text",
              "factor": 1
            }
          },
          "timeoutSeconds": {
            "sourceOfRule": {
              "scope": "project",
              "projectId": 3
            },
            "required": true,
            "canEdit": true,
            "min": 1,
            "max": 1,
            "step": 1,
            "defaultFrom": {
              "field": "text",
              "factor": 1
            }
          },
          "successThreshold": {
            "sourceOfRule": {
              "scope": "project",
              "projectId": 3
            },
            "required": true,
            "canEdit": true,
            "min": 1,
            "max": 1,
            "step": 1,
            "defaultFrom": {
              "field": "text",
              "factor": 1
            }
          },
          "failureThreshold": {
            "sourceOfRule": {
              "scope": "project",
              "projectId": 3
            },
            "required": true,
            "canEdit": true,
            "min": 1,
            "max": 1,
            "step": 1,
            "defaultFrom": {
              "field": "text",
              "factor": 1
            }
          },
          "handler": {
            "httpGet": {
              "path": {
                "required": true,
                "canEdit": false,
                "blocked": false,
                "options": []
              },
              "port": {
                "sourceOfRule": {
                  "scope": "project",
                  "projectId": 3
                },
                "required": true,
                "canEdit": true,
                "min": 1,
                "max": 1,
                "step": 1,
                "defaultFrom": {
                  "field": "text",
                  "factor": 1
                }
              },
              "host": {
                "required": true,
                "canEdit": false,
                "blocked": false,
                "options": []
              },
              "scheme": {
                "required": true,
                "canEdit": false,
                "blocked": false,
                "options": []
              }
            }
          }
        }
      },
      "relatedUrls": {
        "attributes": {
          "url": {
            "required": true,
            "canEdit": false,
            "blocked": false,
            "options": []
          },
          "type": {
            "required": true,
            "canEdit": false,
            "blocked": false,
            "options": []
          },
          "name": {
            "required": true,
            "canEdit": false,
            "blocked": false,
            "options": []
          }
        },
        "instances": {
          "sourceOfRule": {
            "scope": "project",
            "projectId": 3
          },
          "canAdd": true,
          "locked": [
            "HOME",
            "USER"
          ]
        }
      },
      "restartPolicy": {
        "required": true,
        "canEdit": false,
        "blocked": false,
        "options": []
      },
      "security": {
        "allowPrivilegeEscalation": {
          "sourceOfRule": {
            "scope": "project",
            "projectId": 3
          },
          "required": true,
          "canEdit": true
        },
        "capabilities": {
          "sourceOfRule": {
            "scope": "project",
            "projectId": 3
          },
          "required": true,
          "options": [],
          "canEdit": true
        },
        "hostIpc": {
          "sourceOfRule": {
            "scope": "project",
            "projectId": 3
          },
          "required": true,
          "canEdit": true
        },
        "hostNetwork": {
          "sourceOfRule": {
            "scope": "project",
            "projectId": 3
          },
          "required": true,
          "canEdit": true
        },
        "readOnlyRootFilesystem": {
          "sourceOfRule": {
            "scope": "project",
            "projectId": 3
          },
          "required": true,
          "canEdit": true
        },
        "runAsGid": {
          "sourceOfRule": {
            "scope": "project",
            "projectId": 3
          },
          "canEdit": true,
          "min": 1,
          "max": 1,
          "step": 1,
          "defaultFrom": {
            "field": "text",
            "factor": 1
          }
        },
        "runAsNonRoot": {
          "sourceOfRule": {
            "scope": "project",
            "projectId": 3
          },
          "required": true,
          "canEdit": true
        },
        "runAsUid": {
          "sourceOfRule": {
            "scope": "project",
            "projectId": 3
          },
          "canEdit": true,
          "min": 1,
          "max": 1,
          "step": 1,
          "defaultFrom": {
            "field": "text",
            "factor": 1
          }
        },
        "seccompProfileType": {
          "required": true,
          "canEdit": false,
          "blocked": false,
          "options": []
        },
        "supplementalGroups": {
          "required": true,
          "canEdit": false,
          "blocked": false,
          "options": []
        },
        "uidGidSource": {
          "required": true,
          "canEdit": false,
          "blocked": false,
          "options": []
        }
      },
      "stdin": {
        "sourceOfRule": {
          "scope": "project",
          "projectId": 3
        },
        "required": true,
        "canEdit": true
      },
      "storage": {
        "configMapVolume": {
          "attributes": {
            "configMap": {
              "required": true,
              "canEdit": false,
              "blocked": false,
              "options": []
            },
            "mountPath": {
              "required": true,
              "canEdit": false,
              "blocked": false,
              "options": []
            },
            "subPath": {
              "required": true,
              "canEdit": false,
              "blocked": false,
              "options": []
            },
            "defaultMode": {
              "required": true,
              "canEdit": false,
              "blocked": false,
              "options": []
            }
          },
          "instances": {
            "sourceOfRule": {
              "scope": "project",
              "projectId": 3
            },
            "canAdd": true,
            "locked": [
              "HOME",
              "USER"
            ]
          }
        },
        "dataVolume": {
          "attributes": {
            "id": {
              "required": true,
              "canEdit": false,
              "blocked": false,
              "options": []
            },
            "mountPath": {
              "required": true,
              "canEdit": false,
              "blocked": false,
              "options": []
            }
          },
          "instances": {
            "sourceOfRule": {
              "scope": "project",
              "projectId": 3
            },
            "canAdd": true,
            "locked": [
              "HOME",
              "USER"
            ]
          }
        },
        "emptyDirVolume": {
          "attributes": {
            "path": {
              "required": true,
              "canEdit": false,
              "blocked": false,
              "options": []
            },
            "medium": {
              "required": true,
              "canEdit": false,
              "blocked": false,
              "options": []
            },
            "sizeLimit": {
              "required": true,
              "canEdit": false,
              "blocked": false,
              "options": []
            }
          },
          "instances": {
            "sourceOfRule": {
              "scope": "project",
              "projectId": 3
            },
            "canAdd": true,
            "locked": [
              "HOME",
              "USER"
            ]
          }
        },
        "git": {
          "attributes": {
            "repository": {
              "required": true,
              "canEdit": false,
              "blocked": false,
              "options": []
            },
            "branch": {
              "required": true,
              "canEdit": false,
              "blocked": false,
              "options": []
            },
            "revision": {
              "required": true,
              "canEdit": false,
              "blocked": false,
              "options": []
            },
            "path": {
              "required": true,
              "canEdit": false,
              "blocked": false,
              "options": []
            }
          },
          "instances": {
            "sourceOfRule": {
              "scope": "project",
              "projectId": 3
            },
            "canAdd": true,
            "locked": [
              "HOME",
              "USER"
            ]
          }
        },
        "hostPath": {
          "attributes": {
            "path": {
              "required": true,
              "canEdit": false,
              "blocked": false,
              "options": []
            },
            "readOnly": {
              "sourceOfRule": {
                "scope": "project",
                "projectId": 3
              },
              "required": true,
              "canEdit": true
            },
            "mountPath": {
              "required": true,
              "canEdit": false,
              "blocked": false,
              "options": []
            },
            "mountPropagation": {
              "required": true,
              "canEdit": false,
              "blocked": false,
              "options": []
            }
          },
          "instances": {
            "sourceOfRule": {
              "scope": "project",
              "projectId": 3
            },
            "canAdd": true,
            "locked": [
              "HOME",
              "USER"
            ]
          }
        },
        "nfs": {
          "attributes": {
            "path": {
              "required": true,
              "canEdit": false,
              "blocked": false,
              "options": []
            },
            "readOnly": {
              "sourceOfRule": {
                "scope": "project",
                "projectId": 3
              },
              "required": true,
              "canEdit": true
            },
            "server": {
              "required": true,
              "canEdit": false,
              "blocked": false,
              "options": []
            },
            "mountPath": {
              "required": true,
              "canEdit": false,
              "blocked": false,
              "options": []
            }
          },
          "instances": {
            "sourceOfRule": {
              "scope": "project",
              "projectId": 3
            },
            "canAdd": true,
            "locked": [
              "HOME",
              "USER"
            ]
          }
        },
        "pvc": {
          "attributes": {
            "claimName": {
              "required": true,
              "canEdit": false,
              "blocked": false,
              "options": []
            },
            "path": {
              "required": true,
              "canEdit": false,
              "blocked": false,
              "options": []
            },
            "readOnly": {
              "sourceOfRule": {
                "scope": "project",
                "projectId": 3
              },
              "required": true,
              "canEdit": true
            },
            "claimInfo": {
              "size": {
                "required": true,
                "canEdit": false,
                "blocked": false,
                "options": []
              },
              "storageClass": {
                "required": true,
                "canEdit": false,
                "blocked": false,
                "options": []
              },
              "accessModes": {
                "readWriteOnce": {
                  "sourceOfRule": {
                    "scope": "project",
                    "projectId": 3
                  },
                  "required": true,
                  "canEdit": true
                },
                "readOnlyMany": {
                  "sourceOfRule": {
                    "scope": "project",
                    "projectId": 3
                  },
                  "required": true,
                  "canEdit": true
                },
                "readWriteMany": {
                  "sourceOfRule": {
                    "scope": "project",
                    "projectId": 3
                  },
                  "required": true,
                  "canEdit": true
                }
              }
            }
          },
          "instances": {
            "sourceOfRule": {
              "scope": "project",
              "projectId": 3
            },
            "canAdd": true,
            "locked": [
              "HOME",
              "USER"
            ]
          }
        },
        "s3": {
          "attributes": {
            "bucket": {
              "required": true,
              "canEdit": false,
              "blocked": false,
              "options": []
            },
            "path": {
              "required": true,
              "canEdit": false,
              "blocked": false,
              "options": []
            },
            "url": {
              "required": true,
              "canEdit": false,
              "blocked": false,
              "options": []
            }
          },
          "instances": {
            "sourceOfRule": {
              "scope": "project",
              "projectId": 3
            },
            "canAdd": true,
            "locked": [
              "HOME",
              "USER"
            ]
          }
        },
        "secretVolume": {
          "attributes": {
            "secret": {
              "required": true,
              "canEdit": false,
              "blocked": false,
              "options": []
            },
            "mountPath": {
              "required": true,
              "canEdit": false,
              "blocked": false,
              "options": []
            },
            "defaultMode": {
              "required": true,
              "canEdit": false,
              "blocked": false,
              "options": []
            }
          },
          "instances": {
            "sourceOfRule": {
              "scope": "project",
              "projectId": 3
            },
            "canAdd": true,
            "locked": [
              "HOME",
              "USER"
            ]
          }
        }
      },
      "terminateAfterPreemption": {
        "sourceOfRule": {
          "scope": "project",
          "projectId": 3
        },
        "required": true,
        "canEdit": true
      },
      "terminationGracePeriodSeconds": {
        "sourceOfRule": {
          "scope": "project",
          "projectId": 3
        },
        "required": true,
        "canEdit": true,
        "min": 1,
        "max": 1,
        "step": 1,
        "defaultFrom": {
          "field": "text",
          "factor": 1
        }
      },
      "tolerations": {
        "attributes": {
          "operator": {
            "required": true,
            "canEdit": false,
            "blocked": false,
            "options": []
          },
          "key": {
            "required": true,
            "canEdit": false,
            "blocked": false,
            "options": []
          },
          "value": {
            "required": true,
            "canEdit": false,
            "blocked": false,
            "options": []
          },
          "effect": {
            "required": true,
            "canEdit": false,
            "blocked": false,
            "options": []
          },
          "seconds": {
            "sourceOfRule": {
              "scope": "project",
              "projectId": 3
            },
            "required": true,
            "canEdit": true,
            "min": 1,
            "max": 1,
            "step": 1,
            "defaultFrom": {
              "field": "text",
              "factor": 1
            }
          },
          "exclude": {
            "sourceOfRule": {
              "scope": "project",
              "projectId": 3
            },
            "required": true,
            "canEdit": true
          }
        },
        "instances": {
          "sourceOfRule": {
            "scope": "project",
            "projectId": 3
          },
          "canAdd": true,
          "locked": [
            "HOME",
            "USER"
          ]
        }
      },
      "tty": {
        "sourceOfRule": {
          "scope": "project",
          "projectId": 3
        },
        "required": true,
        "canEdit": true
      },
      "workingDir": {
        "required": true,
        "canEdit": false,
        "blocked": false,
        "options": []
      }
    },
    "imposedAssets": [
      "123e4567-e89b-12d3-a456-426614174000"
    ],
    "status": {
      "validation": {
        "errorMessage": "text"
      }
    }
  },
  "effective": {
    "defaults": {
      "annotations": {
        "instances": [
          {
            "name": "billing",
            "value": "my-billing-unit",
            "exclude": false
          }
        ]
      },
      "args": "-x my-script.py",
      "autoDeletionTimeAfterCompletionSeconds": 15,
      "backoffLimit": 3,
      "category": "text",
      "command": "python",
      "completions": 1,
      "compute": {
        "cpuCoreLimit": 2,
        "cpuCoreRequest": 0.5,
        "cpuMemoryLimit": "30M",
        "cpuMemoryRequest": "20M",
        "extendedResources": {
          "attributes": {
            "resource": "hardware-vendor.example/foo",
            "quantity": 2,
            "exclude": false
          },
          "instances": [
            {
              "resource": "hardware-vendor.example/foo",
              "quantity": 2,
              "exclude": false
            }
          ]
        },
        "gpuDevicesRequest": 1,
        "gpuMemoryLimit": "10M",
        "gpuMemoryRequest": "10M",
        "gpuPortionLimit": 0.5,
        "gpuPortionRequest": 0.5,
        "gpuRequestType": "portion",
        "largeShmRequest": false
      },
      "createHomeDir": true,
      "environmentVariables": {
        "instances": [
          {
            "name": "HOME",
            "value": "/home/my-folder",
            "secret": {
              "name": "postgress_secret",
              "key": "POSTGRES_PASSWORD"
            },
            "configMap": {
              "name": "my-config-map",
              "key": "MY_POSTGRES_SCHEMA"
            },
            "podFieldRef": {
              "path": "metadata.name"
            },
            "userCredential": {
              "name": "my_postgres_user_and_password",
              "key": "POSTGRES_PASSWORD"
            },
            "exclude": false,
            "description": "Home directory of the user."
          }
        ]
      },
      "exposedUrls": {
        "attributes": {
          "container": 8080,
          "url": "https://my-url.com",
          "authorizationType": "authenticatedUsers",
          "authorizedUsers": [
            "user-a",
            "user-b"
          ],
          "authorizedGroups": [
            "group-a",
            "group-b"
          ],
          "toolType": "jupyter",
          "toolName": "my-pytorch",
          "name": "url-instance-a",
          "exclude": false
        },
        "instances": [
          {
            "container": 8080,
            "url": "https://my-url.com",
            "authorizationType": "authenticatedUsers",
            "authorizedUsers": [
              "user-a",
              "user-b"
            ],
            "authorizedGroups": [
              "group-a",
              "group-b"
            ],
            "toolType": "jupyter",
            "toolName": "my-pytorch",
            "name": "url-instance-a",
            "exclude": false
          }
        ]
      },
      "image": "python:3.8",
      "imagePullPolicy": "Always",
      "imagePullSecrets": {
        "instances": [
          {
            "name": "text",
            "userCredential": true,
            "exclude": false
          }
        ]
      },
      "labels": {
        "instances": [
          {
            "name": "stage",
            "value": "initial-research",
            "exclude": false
          }
        ]
      },
      "nodeAffinityRequired": {
        "nodeSelectorTerms": [
          {
            "matchExpressions": [
              {
                "key": "text",
                "operator": "In",
                "values": [
                  "text"
                ]
              }
            ]
          }
        ]
      },
      "nodePools": [
        "my-node-pool-a",
        "my-node-pool-b"
      ],
      "nodeType": "my-node-type",
      "parallelism": 1,
      "podAffinity": {
        "type": "Required",
        "key": "text"
      },
      "ports": {
        "attributes": {
          "container": 8080,
          "serviceType": "LoadBalancer",
          "external": 30080,
          "toolType": "pytorch",
          "toolName": "my-pytorch",
          "name": "port-instance-a",
          "exclude": false
        },
        "instances": [
          {
            "container": 8080,
            "serviceType": "LoadBalancer",
            "external": 30080,
            "toolType": "pytorch",
            "toolName": "my-pytorch",
            "name": "port-instance-a",
            "exclude": false
          }
        ]
      },
      "preemptibility": "preemptible",
      "priorityClass": "text",
      "probes": {
        "readiness": {
          "initialDelaySeconds": 1,
          "periodSeconds": 1,
          "timeoutSeconds": 1,
          "successThreshold": 1,
          "failureThreshold": 1,
          "handler": {
            "httpGet": {
              "path": "/",
              "port": 1,
              "host": "example.com",
              "scheme": "HTTP"
            }
          }
        }
      },
      "relatedUrls": {
        "attributes": {
          "url": "https://my-url.com",
          "type": "wandb",
          "name": "url-instance-a",
          "exclude": false
        },
        "instances": [
          {
            "url": "https://my-url.com",
            "type": "wandb",
            "name": "url-instance-a",
            "exclude": false
          }
        ]
      },
      "restartPolicy": "Always",
      "security": {
        "allowPrivilegeEscalation": false,
        "capabilities": [
          "CHOWN",
          "KILL"
        ],
        "hostIpc": false,
        "hostNetwork": false,
        "readOnlyRootFilesystem": false,
        "runAsGid": 30,
        "runAsNonRoot": true,
        "runAsUid": 500,
        "seccompProfileType": "RuntimeDefault",
        "supplementalGroups": "2,3,5,8",
        "uidGidSource": "fromTheImage"
      },
      "stdin": true,
      "storage": {
        "configMapVolume": {
          "attributes": {
            "name": "storage-instance-a",
            "configMap": "text",
            "mountPath": "text",
            "subPath": "text",
            "defaultMode": "0644",
            "exclude": false
          },
          "instances": [
            {
              "name": "storage-instance-a",
              "configMap": "text",
              "mountPath": "text",
              "subPath": "text",
              "defaultMode": "0644",
              "exclude": false
            }
          ]
        },
        "dataVolume": {
          "attributes": {
            "id": "123e4567-e89b-12d3-a456-426614174000",
            "mountPath": "/mnt/data",
            "exclude": false
          },
          "instances": [
            {
              "id": "123e4567-e89b-12d3-a456-426614174000",
              "mountPath": "/mnt/data",
              "exclude": false
            }
          ]
        },
        "emptyDirVolume": {
          "attributes": {
            "name": "storage-instance-a",
            "path": "/mnt/emptydir",
            "medium": "text",
            "sizeLimit": "1G",
            "exclude": false
          },
          "instances": [
            {
              "name": "storage-instance-a",
              "path": "/mnt/emptydir",
              "medium": "text",
              "sizeLimit": "1G",
              "exclude": false
            }
          ]
        },
        "git": {
          "attributes": {
            "name": "storage-instance-a",
            "repository": "https://github.com/my-git/my-repo",
            "branch": "main",
            "revision": "text",
            "path": "/container/my-repository",
            "passwordSecret": "my-password-secret",
            "secretKeyOfUser": "User",
            "secretKeyOfPassword": "Password",
            "exclude": false,
            "secretRef": {
              "name": "my-password-secret",
              "authenticationMethod": "password",
              "secretKeyOfUser": "User",
              "secretKeyOfPassword": "Password"
            }
          },
          "instances": [
            {
              "name": "storage-instance-a",
              "repository": "https://github.com/my-git/my-repo",
              "branch": "main",
              "revision": "text",
              "path": "/container/my-repository",
              "passwordSecret": "my-password-secret",
              "secretKeyOfUser": "User",
              "secretKeyOfPassword": "Password",
              "exclude": false,
              "secretRef": {
                "name": "my-password-secret",
                "authenticationMethod": "password",
                "secretKeyOfUser": "User",
                "secretKeyOfPassword": "Password"
              }
            }
          ]
        },
        "hostPath": {
          "attributes": {
            "name": "storage-instance-a",
            "path": "/container/directory",
            "readOnly": true,
            "mountPath": "/local/directory",
            "mountPropagation": "None",
            "exclude": false
          },
          "instances": [
            {
              "name": "storage-instance-a",
              "path": "/container/directory",
              "readOnly": true,
              "mountPath": "/local/directory",
              "mountPropagation": "None",
              "exclude": false
            }
          ]
        },
        "nfs": {
          "attributes": {
            "name": "storage-instance-a",
            "path": "/container/nfs",
            "readOnly": true,
            "server": "my.nfs.com",
            "mountPath": "/local/nfs",
            "exclude": false
          },
          "instances": [
            {
              "name": "storage-instance-a",
              "path": "/container/nfs",
              "readOnly": true,
              "server": "my.nfs.com",
              "mountPath": "/local/nfs",
              "exclude": false
            }
          ]
        },
        "pvc": {
          "attributes": {
            "name": "storage-instance-a",
            "path": "/container/my-claim",
            "existingPvc": false,
            "claimName": "my-claim",
            "readOnly": false,
            "ephemeral": false,
            "claimInfo": {
              "size": "1G",
              "storageClass": "my-storage-class",
              "accessModes": {
                "readWriteOnce": true,
                "readOnlyMany": false,
                "readWriteMany": false
              },
              "volumeMode": "Filesystem",
              "addedAttrValues": [
                {
                  "key": "dnsname",
                  "value": "my.dns.com"
                }
              ]
            },
            "dataSharing": false,
            "exclude": false
          },
          "instances": [
            {
              "name": "storage-instance-a",
              "path": "/container/my-claim",
              "existingPvc": false,
              "claimName": "my-claim",
              "readOnly": false,
              "ephemeral": false,
              "claimInfo": {
                "size": "1G",
                "storageClass": "my-storage-class",
                "accessModes": {
                  "readWriteOnce": true,
                  "readOnlyMany": false,
                  "readWriteMany": false
                },
                "volumeMode": "Filesystem",
                "addedAttrValues": [
                  {
                    "key": "dnsname",
                    "value": "my.dns.com"
                  }
                ]
              },
              "dataSharing": false,
              "exclude": false
            }
          ]
        },
        "s3": {
          "attributes": {
            "name": "storage-instance-a",
            "bucket": "my-bucket",
            "path": "/container/my-bucket",
            "url": "https://s3.amazonaws.com",
            "accessKeySecret": "my-access-key-secret",
            "secretKeyOfAccessKeyId": "AccessKeyId",
            "secretKeyOfSecretKey": "SecretKey",
            "exclude": false
          },
          "instances": [
            {
              "name": "storage-instance-a",
              "bucket": "my-bucket",
              "path": "/container/my-bucket",
              "url": "https://s3.amazonaws.com",
              "accessKeySecret": "my-access-key-secret",
              "secretKeyOfAccessKeyId": "AccessKeyId",
              "secretKeyOfSecretKey": "SecretKey",
              "exclude": false
            }
          ]
        },
        "secretVolume": {
          "attributes": {
            "name": "storage-instance-a",
            "mountPath": "text",
            "defaultMode": "0644",
            "secret": "text",
            "exclude": false
          },
          "instances": [
            {
              "name": "storage-instance-a",
              "mountPath": "text",
              "defaultMode": "0644",
              "secret": "text",
              "exclude": false
            }
          ]
        }
      },
      "terminateAfterPreemption": false,
      "terminationGracePeriodSeconds": 20,
      "tolerations": {
        "attributes": {
          "name": "text",
          "operator": "Equal",
          "key": "text",
          "value": "text",
          "effect": "NoSchedule",
          "seconds": 1,
          "exclude": false
        },
        "instances": [
          {
            "name": "text",
            "operator": "Equal",
            "key": "text",
            "value": "text",
            "effect": "NoSchedule",
            "seconds": 1,
            "exclude": false
          }
        ]
      },
      "tty": true,
      "workingDir": "/home/myfolder"
    },
    "rules": {
      "annotations": {
        "instances": {
          "sourceOfRule": {
            "scope": "project",
            "projectId": 3
          },
          "canAdd": true,
          "locked": [
            "HOME",
            "USER"
          ]
        }
      },
      "args": {
        "required": true,
        "canEdit": false,
        "blocked": false,
        "options": []
      },
      "autoDeletionTimeAfterCompletionSeconds": {
        "sourceOfRule": {
          "scope": "project",
          "projectId": 3
        },
        "required": true,
        "canEdit": true,
        "min": 1,
        "max": 1,
        "step": 1,
        "defaultFrom": {
          "field": "text",
          "factor": 1
        }
      },
      "backoffLimit": {
        "sourceOfRule": {
          "scope": "project",
          "projectId": 3
        },
        "required": true,
        "canEdit": true,
        "min": 1,
        "max": 1,
        "step": 1,
        "defaultFrom": {
          "field": "text",
          "factor": 1
        }
      },
      "category": {
        "required": true,
        "canEdit": false,
        "blocked": false,
        "options": []
      },
      "command": {
        "required": true,
        "canEdit": false,
        "blocked": false,
        "options": []
      },
      "completions": {
        "sourceOfRule": {
          "scope": "project",
          "projectId": 3
        },
        "required": true,
        "canEdit": true,
        "min": 1,
        "max": 1,
        "step": 1,
        "defaultFrom": {
          "field": "text",
          "factor": 1
        }
      },
      "compute": {
        "cpuCoreLimit": {
          "sourceOfRule": {
            "scope": "project",
            "projectId": 3
          },
          "required": true,
          "canEdit": true,
          "min": 1,
          "max": 1,
          "step": 1,
          "defaultFrom": {
            "field": "text",
            "factor": 1
          }
        },
        "cpuCoreRequest": {
          "sourceOfRule": {
            "scope": "project",
            "projectId": 3
          },
          "required": true,
          "canEdit": true,
          "min": 1,
          "max": 1,
          "step": 1,
          "defaultFrom": {
            "field": "text",
            "factor": 1
          }
        },
        "cpuMemoryLimit": {
          "sourceOfRule": {
            "scope": "project",
            "projectId": 3
          },
          "required": true,
          "canEdit": true,
          "min": "text",
          "max": "text",
          "defaultFrom": {
            "field": "text",
            "factor": 1
          }
        },
        "cpuMemoryRequest": {
          "sourceOfRule": {
            "scope": "project",
            "projectId": 3
          },
          "required": true,
          "canEdit": true,
          "min": "text",
          "max": "text",
          "defaultFrom": {
            "field": "text",
            "factor": 1
          }
        },
        "extendedResources": {
          "attributes": {
            "quantity": {
              "required": true,
              "canEdit": false,
              "blocked": false,
              "options": []
            }
          },
          "instances": {
            "sourceOfRule": {
              "scope": "project",
              "projectId": 3
            },
            "canAdd": true,
            "locked": [
              "HOME",
              "USER"
            ]
          }
        },
        "gpuDevicesRequest": {
          "sourceOfRule": {
            "scope": "project",
            "projectId": 3
          },
          "required": true,
          "canEdit": true,
          "min": 1,
          "max": 1,
          "step": 1,
          "defaultFrom": {
            "field": "text",
            "factor": 1
          }
        },
        "gpuMemoryLimit": {
          "sourceOfRule": {
            "scope": "project",
            "projectId": 3
          },
          "required": true,
          "canEdit": true,
          "min": "text",
          "max": "text",
          "defaultFrom": {
            "field": "text",
            "factor": 1
          }
        },
        "gpuMemoryRequest": {
          "sourceOfRule": {
            "scope": "project",
            "projectId": 3
          },
          "required": true,
          "canEdit": true,
          "min": "text",
          "max": "text",
          "defaultFrom": {
            "field": "text",
            "factor": 1
          }
        },
        "gpuPortionLimit": {
          "sourceOfRule": {
            "scope": "project",
            "projectId": 3
          },
          "required": true,
          "canEdit": true,
          "min": 1,
          "max": 1,
          "step": 1,
          "defaultFrom": {
            "field": "text",
            "factor": 1
          }
        },
        "gpuPortionRequest": {
          "sourceOfRule": {
            "scope": "project",
            "projectId": 3
          },
          "required": true,
          "canEdit": true,
          "min": 1,
          "max": 1,
          "step": 1,
          "defaultFrom": {
            "field": "text",
            "factor": 1
          }
        },
        "gpuRequestType": {
          "required": true,
          "canEdit": false,
          "blocked": false,
          "options": []
        },
        "largeShmRequest": {
          "sourceOfRule": {
            "scope": "project",
            "projectId": 3
          },
          "required": true,
          "canEdit": true
        }
      },
      "createHomeDir": {
        "sourceOfRule": {
          "scope": "project",
          "projectId": 3
        },
        "required": true,
        "canEdit": true
      },
      "environmentVariables": {
        "instances": {
          "sourceOfRule": {
            "scope": "project",
            "projectId": 3
          },
          "canAdd": true,
          "locked": [
            "HOME",
            "USER"
          ]
        }
      },
      "exposedUrls": {
        "attributes": {
          "container": {
            "sourceOfRule": {
              "scope": "project",
              "projectId": 3
            },
            "required": true,
            "canEdit": true,
            "min": 1,
            "max": 1,
            "step": 1,
            "defaultFrom": {
              "field": "text",
              "factor": 1
            }
          },
          "customUrl": {
            "sourceOfRule": {
              "scope": "project",
              "projectId": 3
            },
            "required": true,
            "canEdit": true
          },
          "url": {
            "required": true,
            "canEdit": false,
            "blocked": false,
            "options": []
          },
          "authorizedUsers": {
            "sourceOfRule": {
              "scope": "project",
              "projectId": 3
            },
            "required": true,
            "options": [],
            "canEdit": true
          },
          "authorizedGroups": {
            "sourceOfRule": {
              "scope": "project",
              "projectId": 3
            },
            "required": true,
            "options": [],
            "canEdit": true
          },
          "toolType": {
            "required": true,
            "canEdit": false,
            "blocked": false,
            "options": []
          },
          "toolName": {
            "required": true,
            "canEdit": false,
            "blocked": false,
            "options": []
          }
        },
        "instances": {
          "sourceOfRule": {
            "scope": "project",
            "projectId": 3
          },
          "canAdd": true,
          "locked": [
            "HOME",
            "USER"
          ]
        }
      },
      "image": {
        "required": true,
        "canEdit": false,
        "blocked": false,
        "options": []
      },
      "imagePullPolicy": {
        "required": true,
        "canEdit": false,
        "blocked": false,
        "options": []
      },
      "imagePullSecrets": {
        "attributes": {
          "name": {
            "required": true,
            "canEdit": false,
            "blocked": false,
            "options": []
          },
          "userCredentials": {
            "sourceOfRule": {
              "scope": "project",
              "projectId": 3
            },
            "required": true,
            "canEdit": true
          }
        },
        "instances": {
          "sourceOfRule": {
            "scope": "project",
            "projectId": 3
          },
          "canAdd": true,
          "locked": [
            "HOME",
            "USER"
          ]
        }
      },
      "labels": {
        "instances": {
          "sourceOfRule": {
            "scope": "project",
            "projectId": 3
          },
          "canAdd": true,
          "locked": [
            "HOME",
            "USER"
          ]
        }
      },
      "nodeAffinityRequired": {
        "sourceOfRule": {
          "scope": "project",
          "projectId": 3
        },
        "required": true,
        "canEdit": true
      },
      "nodePools": {
        "sourceOfRule": {
          "scope": "project",
          "projectId": 3
        },
        "required": true,
        "options": [],
        "canEdit": true
      },
      "nodeType": {
        "required": true,
        "canEdit": false,
        "blocked": false,
        "options": []
      },
      "parallelism": {
        "sourceOfRule": {
          "scope": "project",
          "projectId": 3
        },
        "required": true,
        "canEdit": true,
        "min": 1,
        "max": 1,
        "step": 1,
        "defaultFrom": {
          "field": "text",
          "factor": 1
        }
      },
      "podAffinity": {
        "type": {
          "required": true,
          "canEdit": false,
          "blocked": false,
          "options": []
        },
        "key": {
          "required": true,
          "canEdit": false,
          "blocked": false,
          "options": []
        }
      },
      "ports": {
        "attributes": {
          "container": {
            "sourceOfRule": {
              "scope": "project",
              "projectId": 3
            },
            "required": true,
            "canEdit": true,
            "min": 1,
            "max": 1,
            "step": 1,
            "defaultFrom": {
              "field": "text",
              "factor": 1
            }
          },
          "serviceType": {
            "required": true,
            "canEdit": false,
            "blocked": false,
            "options": []
          },
          "customExternalPort": {
            "sourceOfRule": {
              "scope": "project",
              "projectId": 3
            },
            "required": true,
            "canEdit": true
          },
          "external": {
            "sourceOfRule": {
              "scope": "project",
              "projectId": 3
            },
            "required": true,
            "canEdit": true,
            "min": 1,
            "max": 1,
            "step": 1,
            "defaultFrom": {
              "field": "text",
              "factor": 1
            }
          },
          "toolType": {
            "required": true,
            "canEdit": false,
            "blocked": false,
            "options": []
          },
          "toolName": {
            "required": true,
            "canEdit": false,
            "blocked": false,
            "options": []
          }
        },
        "instances": {
          "sourceOfRule": {
            "scope": "project",
            "projectId": 3
          },
          "canAdd": true,
          "locked": [
            "HOME",
            "USER"
          ]
        }
      },
      "preemptibility": {
        "required": true,
        "canEdit": false,
        "blocked": false,
        "options": []
      },
      "priorityClass": {
        "required": true,
        "canEdit": false,
        "blocked": false,
        "options": []
      },
      "probes": {
        "readiness": {
          "initialDelaySeconds": {
            "sourceOfRule": {
              "scope": "project",
              "projectId": 3
            },
            "required": true,
            "canEdit": true,
            "min": 1,
            "max": 1,
            "step": 1,
            "defaultFrom": {
              "field": "text",
              "factor": 1
            }
          },
          "periodSeconds": {
            "sourceOfRule": {
              "scope": "project",
              "projectId": 3
            },
            "required": true,
            "canEdit": true,
            "min": 1,
            "max": 1,
            "step": 1,
            "defaultFrom": {
              "field": "text",
              "factor": 1
            }
          },
          "timeoutSeconds": {
            "sourceOfRule": {
              "scope": "project",
              "projectId": 3
            },
            "required": true,
            "canEdit": true,
            "min": 1,
            "max": 1,
            "step": 1,
            "defaultFrom": {
              "field": "text",
              "factor": 1
            }
          },
          "successThreshold": {
            "sourceOfRule": {
              "scope": "project",
              "projectId": 3
            },
            "required": true,
            "canEdit": true,
            "min": 1,
            "max": 1,
            "step": 1,
            "defaultFrom": {
              "field": "text",
              "factor": 1
            }
          },
          "failureThreshold": {
            "sourceOfRule": {
              "scope": "project",
              "projectId": 3
            },
            "required": true,
            "canEdit": true,
            "min": 1,
            "max": 1,
            "step": 1,
            "defaultFrom": {
              "field": "text",
              "factor": 1
            }
          },
          "handler": {
            "httpGet": {
              "path": {
                "required": true,
                "canEdit": false,
                "blocked": false,
                "options": []
              },
              "port": {
                "sourceOfRule": {
                  "scope": "project",
                  "projectId": 3
                },
                "required": true,
                "canEdit": true,
                "min": 1,
                "max": 1,
                "step": 1,
                "defaultFrom": {
                  "field": "text",
                  "factor": 1
                }
              },
              "host": {
                "required": true,
                "canEdit": false,
                "blocked": false,
                "options": []
              },
              "scheme": {
                "required": true,
                "canEdit": false,
                "blocked": false,
                "options": []
              }
            }
          }
        }
      },
      "relatedUrls": {
        "attributes": {
          "url": {
            "required": true,
            "canEdit": false,
            "blocked": false,
            "options": []
          },
          "type": {
            "required": true,
            "canEdit": false,
            "blocked": false,
            "options": []
          },
          "name": {
            "required": true,
            "canEdit": false,
            "blocked": false,
            "options": []
          }
        },
        "instances": {
          "sourceOfRule": {
            "scope": "project",
            "projectId": 3
          },
          "canAdd": true,
          "locked": [
            "HOME",
            "USER"
          ]
        }
      },
      "restartPolicy": {
        "required": true,
        "canEdit": false,
        "blocked": false,
        "options": []
      },
      "security": {
        "allowPrivilegeEscalation": {
          "sourceOfRule": {
            "scope": "project",
            "projectId": 3
          },
          "required": true,
          "canEdit": true
        },
        "capabilities": {
          "sourceOfRule": {
            "scope": "project",
            "projectId": 3
          },
          "required": true,
          "options": [],
          "canEdit": true
        },
        "hostIpc": {
          "sourceOfRule": {
            "scope": "project",
            "projectId": 3
          },
          "required": true,
          "canEdit": true
        },
        "hostNetwork": {
          "sourceOfRule": {
            "scope": "project",
            "projectId": 3
          },
          "required": true,
          "canEdit": true
        },
        "readOnlyRootFilesystem": {
          "sourceOfRule": {
            "scope": "project",
            "projectId": 3
          },
          "required": true,
          "canEdit": true
        },
        "runAsGid": {
          "sourceOfRule": {
            "scope": "project",
            "projectId": 3
          },
          "canEdit": true,
          "min": 1,
          "max": 1,
          "step": 1,
          "defaultFrom": {
            "field": "text",
            "factor": 1
          }
        },
        "runAsNonRoot": {
          "sourceOfRule": {
            "scope": "project",
            "projectId": 3
          },
          "required": true,
          "canEdit": true
        },
        "runAsUid": {
          "sourceOfRule": {
            "scope": "project",
            "projectId": 3
          },
          "canEdit": true,
          "min": 1,
          "max": 1,
          "step": 1,
          "defaultFrom": {
            "field": "text",
            "factor": 1
          }
        },
        "seccompProfileType": {
          "required": true,
          "canEdit": false,
          "blocked": false,
          "options": []
        },
        "supplementalGroups": {
          "required": true,
          "canEdit": false,
          "blocked": false,
          "options": []
        },
        "uidGidSource": {
          "required": true,
          "canEdit": false,
          "blocked": false,
          "options": []
        }
      },
      "stdin": {
        "sourceOfRule": {
          "scope": "project",
          "projectId": 3
        },
        "required": true,
        "canEdit": true
      },
      "storage": {
        "configMapVolume": {
          "attributes": {
            "configMap": {
              "required": true,
              "canEdit": false,
              "blocked": false,
              "options": []
            },
            "mountPath": {
              "required": true,
              "canEdit": false,
              "blocked": false,
              "options": []
            },
            "subPath": {
              "required": true,
              "canEdit": false,
              "blocked": false,
              "options": []
            },
            "defaultMode": {
              "required": true,
              "canEdit": false,
              "blocked": false,
              "options": []
            }
          },
          "instances": {
            "sourceOfRule": {
              "scope": "project",
              "projectId": 3
            },
            "canAdd": true,
            "locked": [
              "HOME",
              "USER"
            ]
          }
        },
        "dataVolume": {
          "attributes": {
            "id": {
              "required": true,
              "canEdit": false,
              "blocked": false,
              "options": []
            },
            "mountPath": {
              "required": true,
              "canEdit": false,
              "blocked": false,
              "options": []
            }
          },
          "instances": {
            "sourceOfRule": {
              "scope": "project",
              "projectId": 3
            },
            "canAdd": true,
            "locked": [
              "HOME",
              "USER"
            ]
          }
        },
        "emptyDirVolume": {
          "attributes": {
            "path": {
              "required": true,
              "canEdit": false,
              "blocked": false,
              "options": []
            },
            "medium": {
              "required": true,
              "canEdit": false,
              "blocked": false,
              "options": []
            },
            "sizeLimit": {
              "required": true,
              "canEdit": false,
              "blocked": false,
              "options": []
            }
          },
          "instances": {
            "sourceOfRule": {
              "scope": "project",
              "projectId": 3
            },
            "canAdd": true,
            "locked": [
              "HOME",
              "USER"
            ]
          }
        },
        "git": {
          "attributes": {
            "repository": {
              "required": true,
              "canEdit": false,
              "blocked": false,
              "options": []
            },
            "branch": {
              "required": true,
              "canEdit": false,
              "blocked": false,
              "options": []
            },
            "revision": {
              "required": true,
              "canEdit": false,
              "blocked": false,
              "options": []
            },
            "path": {
              "required": true,
              "canEdit": false,
              "blocked": false,
              "options": []
            }
          },
          "instances": {
            "sourceOfRule": {
              "scope": "project",
              "projectId": 3
            },
            "canAdd": true,
            "locked": [
              "HOME",
              "USER"
            ]
          }
        },
        "hostPath": {
          "attributes": {
            "path": {
              "required": true,
              "canEdit": false,
              "blocked": false,
              "options": []
            },
            "readOnly": {
              "sourceOfRule": {
                "scope": "project",
                "projectId": 3
              },
              "required": true,
              "canEdit": true
            },
            "mountPath": {
              "required": true,
              "canEdit": false,
              "blocked": false,
              "options": []
            },
            "mountPropagation": {
              "required": true,
              "canEdit": false,
              "blocked": false,
              "options": []
            }
          },
          "instances": {
            "sourceOfRule": {
              "scope": "project",
              "projectId": 3
            },
            "canAdd": true,
            "locked": [
              "HOME",
              "USER"
            ]
          }
        },
        "nfs": {
          "attributes": {
            "path": {
              "required": true,
              "canEdit": false,
              "blocked": false,
              "options": []
            },
            "readOnly": {
              "sourceOfRule": {
                "scope": "project",
                "projectId": 3
              },
              "required": true,
              "canEdit": true
            },
            "server": {
              "required": true,
              "canEdit": false,
              "blocked": false,
              "options": []
            },
            "mountPath": {
              "required": true,
              "canEdit": false,
              "blocked": false,
              "options": []
            }
          },
          "instances": {
            "sourceOfRule": {
              "scope": "project",
              "projectId": 3
            },
            "canAdd": true,
            "locked": [
              "HOME",
              "USER"
            ]
          }
        },
        "pvc": {
          "attributes": {
            "claimName": {
              "required": true,
              "canEdit": false,
              "blocked": false,
              "options": []
            },
            "path": {
              "required": true,
              "canEdit": false,
              "blocked": false,
              "options": []
            },
            "readOnly": {
              "sourceOfRule": {
                "scope": "project",
                "projectId": 3
              },
              "required": true,
              "canEdit": true
            },
            "claimInfo": {
              "size": {
                "required": true,
                "canEdit": false,
                "blocked": false,
                "options": []
              },
              "storageClass": {
                "required": true,
                "canEdit": false,
                "blocked": false,
                "options": []
              },
              "accessModes": {
                "readWriteOnce": {
                  "sourceOfRule": {
                    "scope": "project",
                    "projectId": 3
                  },
                  "required": true,
                  "canEdit": true
                },
                "readOnlyMany": {
                  "sourceOfRule": {
                    "scope": "project",
                    "projectId": 3
                  },
                  "required": true,
                  "canEdit": true
                },
                "readWriteMany": {
                  "sourceOfRule": {
                    "scope": "project",
                    "projectId": 3
                  },
                  "required": true,
                  "canEdit": true
                }
              }
            }
          },
          "instances": {
            "sourceOfRule": {
              "scope": "project",
              "projectId": 3
            },
            "canAdd": true,
            "locked": [
              "HOME",
              "USER"
            ]
          }
        },
        "s3": {
          "attributes": {
            "bucket": {
              "required": true,
              "canEdit": false,
              "blocked": false,
              "options": []
            },
            "path": {
              "required": true,
              "canEdit": false,
              "blocked": false,
              "options": []
            },
            "url": {
              "required": true,
              "canEdit": false,
              "blocked": false,
              "options": []
            }
          },
          "instances": {
            "sourceOfRule": {
              "scope": "project",
              "projectId": 3
            },
            "canAdd": true,
            "locked": [
              "HOME",
              "USER"
            ]
          }
        },
        "secretVolume": {
          "attributes": {
            "secret": {
              "required": true,
              "canEdit": false,
              "blocked": false,
              "options": []
            },
            "mountPath": {
              "required": true,
              "canEdit": false,
              "blocked": false,
              "options": []
            },
            "defaultMode": {
              "required": true,
              "canEdit": false,
              "blocked": false,
              "options": []
            }
          },
          "instances": {
            "sourceOfRule": {
              "scope": "project",
              "projectId": 3
            },
            "canAdd": true,
            "locked": [
              "HOME",
              "USER"
            ]
          }
        }
      },
      "terminateAfterPreemption": {
        "sourceOfRule": {
          "scope": "project",
          "projectId": 3
        },
        "required": true,
        "canEdit": true
      },
      "terminationGracePeriodSeconds": {
        "sourceOfRule": {
          "scope": "project",
          "projectId": 3
        },
        "required": true,
        "canEdit": true,
        "min": 1,
        "max": 1,
        "step": 1,
        "defaultFrom": {
          "field": "text",
          "factor": 1
        }
      },
      "tolerations": {
        "attributes": {
          "operator": {
            "required": true,
            "canEdit": false,
            "blocked": false,
            "options": []
          },
          "key": {
            "required": true,
            "canEdit": false,
            "blocked": false,
            "options": []
          },
          "value": {
            "required": true,
            "canEdit": false,
            "blocked": false,
            "options": []
          },
          "effect": {
            "required": true,
            "canEdit": false,
            "blocked": false,
            "options": []
          },
          "seconds": {
            "sourceOfRule": {
              "scope": "project",
              "projectId": 3
            },
            "required": true,
            "canEdit": true,
            "min": 1,
            "max": 1,
            "step": 1,
            "defaultFrom": {
              "field": "text",
              "factor": 1
            }
          },
          "exclude": {
            "sourceOfRule": {
              "scope": "project",
              "projectId": 3
            },
            "required": true,
            "canEdit": true
          }
        },
        "instances": {
          "sourceOfRule": {
            "scope": "project",
            "projectId": 3
          },
          "canAdd": true,
          "locked": [
            "HOME",
            "USER"
          ]
        }
      },
      "tty": {
        "sourceOfRule": {
          "scope": "project",
          "projectId": 3
        },
        "required": true,
        "canEdit": true
      },
      "workingDir": {
        "required": true,
        "canEdit": false,
        "blocked": false,
        "options": []
      }
    },
    "imposedAssets": [
      "123e4567-e89b-12d3-a456-426614174000"
    ],
    "status": {
      "validation": {
        "errorMessage": "text"
      }
    }
  },
  "effectiveUpdatedAt": "2026-01-01T00:00:00.000Z"
}

Overwrite a training policy.

put

Use to apply a training policy for a given organizational unit.

Authorizations
AuthorizationstringRequired

Bearer authentication

Query parameters
validateOnlybooleanOptional

Validate the given policy payload without applying it

approveClusterDeletionbooleanOptional

Required when modifying or deleting a policy if the tenant includes one or more clusters running version 2.20 or earlier. In such cases, the platform must delete the policy from the affected clusters. This flag indicates that the administrator approves this deletion.

Body
Responses
200

Policy applied.

application/json
effectiveUpdatedAtstring · date-time · min: 1Optional

The time at which an event occurred. e.g. the time an effective policy has been updated

put/api/v2/policy/trainings
PUT /api/v2/policy/trainings HTTP/1.1
Host: app.run.ai
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 21629

{
  "meta": {
    "scope": "system",
    "projectId": 1,
    "departmentId": 2,
    "clusterId": "71f69d83-ba66-4822-adf5-55ce55efd210",
    "name": "my-policy"
  },
  "policy": {
    "defaults": {
      "annotations": {
        "instances": [
          {
            "name": "billing",
            "value": "my-billing-unit",
            "exclude": false
          }
        ]
      },
      "args": "-x my-script.py",
      "autoDeletionTimeAfterCompletionSeconds": 15,
      "backoffLimit": 3,
      "category": "text",
      "command": "python",
      "completions": 1,
      "compute": {
        "cpuCoreLimit": 2,
        "cpuCoreRequest": 0.5,
        "cpuMemoryLimit": "30M",
        "cpuMemoryRequest": "20M",
        "extendedResources": {
          "attributes": {
            "resource": "hardware-vendor.example/foo",
            "quantity": 2,
            "exclude": false
          },
          "instances": [
            {
              "resource": "hardware-vendor.example/foo",
              "quantity": 2,
              "exclude": false
            }
          ]
        },
        "gpuDevicesRequest": 1,
        "gpuMemoryLimit": "10M",
        "gpuMemoryRequest": "10M",
        "gpuPortionLimit": 0.5,
        "gpuPortionRequest": 0.5,
        "gpuRequestType": "portion",
        "largeShmRequest": false
      },
      "createHomeDir": true,
      "environmentVariables": {
        "instances": [
          {
            "name": "HOME",
            "value": "/home/my-folder",
            "secret": {
              "name": "postgress_secret",
              "key": "POSTGRES_PASSWORD"
            },
            "configMap": {
              "name": "my-config-map",
              "key": "MY_POSTGRES_SCHEMA"
            },
            "podFieldRef": {
              "path": "metadata.name"
            },
            "userCredential": {
              "name": "my_postgres_user_and_password",
              "key": "POSTGRES_PASSWORD"
            },
            "exclude": false,
            "description": "Home directory of the user."
          }
        ]
      },
      "exposedUrls": {
        "attributes": {
          "container": 8080,
          "url": "https://my-url.com",
          "authorizationType": "authenticatedUsers",
          "authorizedUsers": [
            "user-a",
            "user-b"
          ],
          "authorizedGroups": [
            "group-a",
            "group-b"
          ],
          "toolType": "jupyter",
          "toolName": "my-pytorch",
          "name": "url-instance-a",
          "exclude": false
        },
        "instances": [
          {
            "container": 8080,
            "url": "https://my-url.com",
            "authorizationType": "authenticatedUsers",
            "authorizedUsers": [
              "user-a",
              "user-b"
            ],
            "authorizedGroups": [
              "group-a",
              "group-b"
            ],
            "toolType": "jupyter",
            "toolName": "my-pytorch",
            "name": "url-instance-a",
            "exclude": false
          }
        ]
      },
      "image": "python:3.8",
      "imagePullPolicy": "Always",
      "imagePullSecrets": {
        "instances": [
          {
            "name": "text",
            "userCredential": true,
            "exclude": false
          }
        ]
      },
      "labels": {
        "instances": [
          {
            "name": "stage",
            "value": "initial-research",
            "exclude": false
          }
        ]
      },
      "nodeAffinityRequired": {
        "nodeSelectorTerms": [
          {
            "matchExpressions": [
              {
                "key": "text",
                "operator": "In",
                "values": [
                  "text"
                ]
              }
            ]
          }
        ]
      },
      "nodePools": [
        "my-node-pool-a",
        "my-node-pool-b"
      ],
      "nodeType": "my-node-type",
      "parallelism": 1,
      "podAffinity": {
        "type": "Required",
        "key": "text"
      },
      "ports": {
        "attributes": {
          "container": 8080,
          "serviceType": "LoadBalancer",
          "external": 30080,
          "toolType": "pytorch",
          "toolName": "my-pytorch",
          "name": "port-instance-a",
          "exclude": false
        },
        "instances": [
          {
            "container": 8080,
            "serviceType": "LoadBalancer",
            "external": 30080,
            "toolType": "pytorch",
            "toolName": "my-pytorch",
            "name": "port-instance-a",
            "exclude": false
          }
        ]
      },
      "preemptibility": "preemptible",
      "priorityClass": "text",
      "probes": {
        "readiness": {
          "initialDelaySeconds": 1,
          "periodSeconds": 1,
          "timeoutSeconds": 1,
          "successThreshold": 1,
          "failureThreshold": 1,
          "handler": {
            "httpGet": {
              "path": "/",
              "port": 1,
              "host": "example.com",
              "scheme": "HTTP"
            }
          }
        }
      },
      "relatedUrls": {
        "attributes": {
          "url": "https://my-url.com",
          "type": "wandb",
          "name": "url-instance-a",
          "exclude": false
        },
        "instances": [
          {
            "url": "https://my-url.com",
            "type": "wandb",
            "name": "url-instance-a",
            "exclude": false
          }
        ]
      },
      "restartPolicy": "Always",
      "security": {
        "allowPrivilegeEscalation": false,
        "capabilities": [
          "CHOWN",
          "KILL"
        ],
        "hostIpc": false,
        "hostNetwork": false,
        "readOnlyRootFilesystem": false,
        "runAsGid": 30,
        "runAsNonRoot": true,
        "runAsUid": 500,
        "seccompProfileType": "RuntimeDefault",
        "supplementalGroups": "2,3,5,8",
        "uidGidSource": "fromTheImage"
      },
      "stdin": true,
      "storage": {
        "configMapVolume": {
          "attributes": {
            "name": "storage-instance-a",
            "configMap": "text",
            "mountPath": "text",
            "subPath": "text",
            "defaultMode": "0644",
            "exclude": false
          },
          "instances": [
            {
              "name": "storage-instance-a",
              "configMap": "text",
              "mountPath": "text",
              "subPath": "text",
              "defaultMode": "0644",
              "exclude": false
            }
          ]
        },
        "dataVolume": {
          "attributes": {
            "id": "123e4567-e89b-12d3-a456-426614174000",
            "mountPath": "/mnt/data",
            "exclude": false
          },
          "instances": [
            {
              "id": "123e4567-e89b-12d3-a456-426614174000",
              "mountPath": "/mnt/data",
              "exclude": false
            }
          ]
        },
        "emptyDirVolume": {
          "attributes": {
            "name": "storage-instance-a",
            "path": "/mnt/emptydir",
            "medium": "text",
            "sizeLimit": "1G",
            "exclude": false
          },
          "instances": [
            {
              "name": "storage-instance-a",
              "path": "/mnt/emptydir",
              "medium": "text",
              "sizeLimit": "1G",
              "exclude": false
            }
          ]
        },
        "git": {
          "attributes": {
            "name": "storage-instance-a",
            "repository": "https://github.com/my-git/my-repo",
            "branch": "main",
            "revision": "text",
            "path": "/container/my-repository",
            "passwordSecret": "my-password-secret",
            "secretKeyOfUser": "User",
            "secretKeyOfPassword": "Password",
            "exclude": false,
            "secretRef": {
              "name": "my-password-secret",
              "authenticationMethod": "password",
              "secretKeyOfUser": "User",
              "secretKeyOfPassword": "Password"
            }
          },
          "instances": [
            {
              "name": "storage-instance-a",
              "repository": "https://github.com/my-git/my-repo",
              "branch": "main",
              "revision": "text",
              "path": "/container/my-repository",
              "passwordSecret": "my-password-secret",
              "secretKeyOfUser": "User",
              "secretKeyOfPassword": "Password",
              "exclude": false,
              "secretRef": {
                "name": "my-password-secret",
                "authenticationMethod": "password",
                "secretKeyOfUser": "User",
                "secretKeyOfPassword": "Password"
              }
            }
          ]
        },
        "hostPath": {
          "attributes": {
            "name": "storage-instance-a",
            "path": "/container/directory",
            "readOnly": true,
            "mountPath": "/local/directory",
            "mountPropagation": "None",
            "exclude": false
          },
          "instances": [
            {
              "name": "storage-instance-a",
              "path": "/container/directory",
              "readOnly": true,
              "mountPath": "/local/directory",
              "mountPropagation": "None",
              "exclude": false
            }
          ]
        },
        "nfs": {
          "attributes": {
            "name": "storage-instance-a",
            "path": "/container/nfs",
            "readOnly": true,
            "server": "my.nfs.com",
            "mountPath": "/local/nfs",
            "exclude": false
          },
          "instances": [
            {
              "name": "storage-instance-a",
              "path": "/container/nfs",
              "readOnly": true,
              "server": "my.nfs.com",
              "mountPath": "/local/nfs",
              "exclude": false
            }
          ]
        },
        "pvc": {
          "attributes": {
            "name": "storage-instance-a",
            "path": "/container/my-claim",
            "existingPvc": false,
            "claimName": "my-claim",
            "readOnly": false,
            "ephemeral": false,
            "claimInfo": {
              "size": "1G",
              "storageClass": "my-storage-class",
              "accessModes": {
                "readWriteOnce": true,
                "readOnlyMany": false,
                "readWriteMany": false
              },
              "volumeMode": "Filesystem",
              "addedAttrValues": [
                {
                  "key": "dnsname",
                  "value": "my.dns.com"
                }
              ]
            },
            "dataSharing": false,
            "exclude": false
          },
          "instances": [
            {
              "name": "storage-instance-a",
              "path": "/container/my-claim",
              "existingPvc": false,
              "claimName": "my-claim",
              "readOnly": false,
              "ephemeral": false,
              "claimInfo": {
                "size": "1G",
                "storageClass": "my-storage-class",
                "accessModes": {
                  "readWriteOnce": true,
                  "readOnlyMany": false,
                  "readWriteMany": false
                },
                "volumeMode": "Filesystem",
                "addedAttrValues": [
                  {
                    "key": "dnsname",
                    "value": "my.dns.com"
                  }
                ]
              },
              "dataSharing": false,
              "exclude": false
            }
          ]
        },
        "s3": {
          "attributes": {
            "name": "storage-instance-a",
            "bucket": "my-bucket",
            "path": "/container/my-bucket",
            "url": "https://s3.amazonaws.com",
            "accessKeySecret": "my-access-key-secret",
            "secretKeyOfAccessKeyId": "AccessKeyId",
            "secretKeyOfSecretKey": "SecretKey",
            "exclude": false
          },
          "instances": [
            {
              "name": "storage-instance-a",
              "bucket": "my-bucket",
              "path": "/container/my-bucket",
              "url": "https://s3.amazonaws.com",
              "accessKeySecret": "my-access-key-secret",
              "secretKeyOfAccessKeyId": "AccessKeyId",
              "secretKeyOfSecretKey": "SecretKey",
              "exclude": false
            }
          ]
        },
        "secretVolume": {
          "attributes": {
            "name": "storage-instance-a",
            "mountPath": "text",
            "defaultMode": "0644",
            "secret": "text",
            "exclude": false
          },
          "instances": [
            {
              "name": "storage-instance-a",
              "mountPath": "text",
              "defaultMode": "0644",
              "secret": "text",
              "exclude": false
            }
          ]
        }
      },
      "terminateAfterPreemption": false,
      "terminationGracePeriodSeconds": 20,
      "tolerations": {
        "attributes": {
          "name": "text",
          "operator": "Equal",
          "key": "text",
          "value": "text",
          "effect": "NoSchedule",
          "seconds": 1,
          "exclude": false
        },
        "instances": [
          {
            "name": "text",
            "operator": "Equal",
            "key": "text",
            "value": "text",
            "effect": "NoSchedule",
            "seconds": 1,
            "exclude": false
          }
        ]
      },
      "tty": true,
      "workingDir": "/home/myfolder"
    },
    "rules": {
      "annotations": {
        "instances": {
          "sourceOfRule": {
            "scope": "project",
            "projectId": 3
          },
          "canAdd": true,
          "locked": [
            "HOME",
            "USER"
          ]
        }
      },
      "args": {
        "required": true,
        "canEdit": false,
        "blocked": false,
        "options": []
      },
      "autoDeletionTimeAfterCompletionSeconds": {
        "sourceOfRule": {
          "scope": "project",
          "projectId": 3
        },
        "required": true,
        "canEdit": true,
        "min": 1,
        "max": 1,
        "step": 1,
        "defaultFrom": {
          "field": "text",
          "factor": 1
        }
      },
      "backoffLimit": {
        "sourceOfRule": {
          "scope": "project",
          "projectId": 3
        },
        "required": true,
        "canEdit": true,
        "min": 1,
        "max": 1,
        "step": 1,
        "defaultFrom": {
          "field": "text",
          "factor": 1
        }
      },
      "category": {
        "required": true,
        "canEdit": false,
        "blocked": false,
        "options": []
      },
      "command": {
        "required": true,
        "canEdit": false,
        "blocked": false,
        "options": []
      },
      "completions": {
        "sourceOfRule": {
          "scope": "project",
          "projectId": 3
        },
        "required": true,
        "canEdit": true,
        "min": 1,
        "max": 1,
        "step": 1,
        "defaultFrom": {
          "field": "text",
          "factor": 1
        }
      },
      "compute": {
        "cpuCoreLimit": {
          "sourceOfRule": {
            "scope": "project",
            "projectId": 3
          },
          "required": true,
          "canEdit": true,
          "min": 1,
          "max": 1,
          "step": 1,
          "defaultFrom": {
            "field": "text",
            "factor": 1
          }
        },
        "cpuCoreRequest": {
          "sourceOfRule": {
            "scope": "project",
            "projectId": 3
          },
          "required": true,
          "canEdit": true,
          "min": 1,
          "max": 1,
          "step": 1,
          "defaultFrom": {
            "field": "text",
            "factor": 1
          }
        },
        "cpuMemoryLimit": {
          "sourceOfRule": {
            "scope": "project",
            "projectId": 3
          },
          "required": true,
          "canEdit": true,
          "min": "text",
          "max": "text",
          "defaultFrom": {
            "field": "text",
            "factor": 1
          }
        },
        "cpuMemoryRequest": {
          "sourceOfRule": {
            "scope": "project",
            "projectId": 3
          },
          "required": true,
          "canEdit": true,
          "min": "text",
          "max": "text",
          "defaultFrom": {
            "field": "text",
            "factor": 1
          }
        },
        "extendedResources": {
          "attributes": {
            "quantity": {
              "required": true,
              "canEdit": false,
              "blocked": false,
              "options": []
            }
          },
          "instances": {
            "sourceOfRule": {
              "scope": "project",
              "projectId": 3
            },
            "canAdd": true,
            "locked": [
              "HOME",
              "USER"
            ]
          }
        },
        "gpuDevicesRequest": {
          "sourceOfRule": {
            "scope": "project",
            "projectId": 3
          },
          "required": true,
          "canEdit": true,
          "min": 1,
          "max": 1,
          "step": 1,
          "defaultFrom": {
            "field": "text",
            "factor": 1
          }
        },
        "gpuMemoryLimit": {
          "sourceOfRule": {
            "scope": "project",
            "projectId": 3
          },
          "required": true,
          "canEdit": true,
          "min": "text",
          "max": "text",
          "defaultFrom": {
            "field": "text",
            "factor": 1
          }
        },
        "gpuMemoryRequest": {
          "sourceOfRule": {
            "scope": "project",
            "projectId": 3
          },
          "required": true,
          "canEdit": true,
          "min": "text",
          "max": "text",
          "defaultFrom": {
            "field": "text",
            "factor": 1
          }
        },
        "gpuPortionLimit": {
          "sourceOfRule": {
            "scope": "project",
            "projectId": 3
          },
          "required": true,
          "canEdit": true,
          "min": 1,
          "max": 1,
          "step": 1,
          "defaultFrom": {
            "field": "text",
            "factor": 1
          }
        },
        "gpuPortionRequest": {
          "sourceOfRule": {
            "scope": "project",
            "projectId": 3
          },
          "required": true,
          "canEdit": true,
          "min": 1,
          "max": 1,
          "step": 1,
          "defaultFrom": {
            "field": "text",
            "factor": 1
          }
        },
        "gpuRequestType": {
          "required": true,
          "canEdit": false,
          "blocked": false,
          "options": []
        },
        "largeShmRequest": {
          "sourceOfRule": {
            "scope": "project",
            "projectId": 3
          },
          "required": true,
          "canEdit": true
        }
      },
      "createHomeDir": {
        "sourceOfRule": {
          "scope": "project",
          "projectId": 3
        },
        "required": true,
        "canEdit": true
      },
      "environmentVariables": {
        "instances": {
          "sourceOfRule": {
            "scope": "project",
            "projectId": 3
          },
          "canAdd": true,
          "locked": [
            "HOME",
            "USER"
          ]
        }
      },
      "exposedUrls": {
        "attributes": {
          "container": {
            "sourceOfRule": {
              "scope": "project",
              "projectId": 3
            },
            "required": true,
            "canEdit": true,
            "min": 1,
            "max": 1,
            "step": 1,
            "defaultFrom": {
              "field": "text",
              "factor": 1
            }
          },
          "customUrl": {
            "sourceOfRule": {
              "scope": "project",
              "projectId": 3
            },
            "required": true,
            "canEdit": true
          },
          "url": {
            "required": true,
            "canEdit": false,
            "blocked": false,
            "options": []
          },
          "authorizedUsers": {
            "sourceOfRule": {
              "scope": "project",
              "projectId": 3
            },
            "required": true,
            "options": [],
            "canEdit": true
          },
          "authorizedGroups": {
            "sourceOfRule": {
              "scope": "project",
              "projectId": 3
            },
            "required": true,
            "options": [],
            "canEdit": true
          },
          "toolType": {
            "required": true,
            "canEdit": false,
            "blocked": false,
            "options": []
          },
          "toolName": {
            "required": true,
            "canEdit": false,
            "blocked": false,
            "options": []
          }
        },
        "instances": {
          "sourceOfRule": {
            "scope": "project",
            "projectId": 3
          },
          "canAdd": true,
          "locked": [
            "HOME",
            "USER"
          ]
        }
      },
      "image": {
        "required": true,
        "canEdit": false,
        "blocked": false,
        "options": []
      },
      "imagePullPolicy": {
        "required": true,
        "canEdit": false,
        "blocked": false,
        "options": []
      },
      "imagePullSecrets": {
        "attributes": {
          "name": {
            "required": true,
            "canEdit": false,
            "blocked": false,
            "options": []
          },
          "userCredentials": {
            "sourceOfRule": {
              "scope": "project",
              "projectId": 3
            },
            "required": true,
            "canEdit": true
          }
        },
        "instances": {
          "sourceOfRule": {
            "scope": "project",
            "projectId": 3
          },
          "canAdd": true,
          "locked": [
            "HOME",
            "USER"
          ]
        }
      },
      "labels": {
        "instances": {
          "sourceOfRule": {
            "scope": "project",
            "projectId": 3
          },
          "canAdd": true,
          "locked": [
            "HOME",
            "USER"
          ]
        }
      },
      "nodeAffinityRequired": {
        "sourceOfRule": {
          "scope": "project",
          "projectId": 3
        },
        "required": true,
        "canEdit": true
      },
      "nodePools": {
        "sourceOfRule": {
          "scope": "project",
          "projectId": 3
        },
        "required": true,
        "options": [],
        "canEdit": true
      },
      "nodeType": {
        "required": true,
        "canEdit": false,
        "blocked": false,
        "options": []
      },
      "parallelism": {
        "sourceOfRule": {
          "scope": "project",
          "projectId": 3
        },
        "required": true,
        "canEdit": true,
        "min": 1,
        "max": 1,
        "step": 1,
        "defaultFrom": {
          "field": "text",
          "factor": 1
        }
      },
      "podAffinity": {
        "type": {
          "required": true,
          "canEdit": false,
          "blocked": false,
          "options": []
        },
        "key": {
          "required": true,
          "canEdit": false,
          "blocked": false,
          "options": []
        }
      },
      "ports": {
        "attributes": {
          "container": {
            "sourceOfRule": {
              "scope": "project",
              "projectId": 3
            },
            "required": true,
            "canEdit": true,
            "min": 1,
            "max": 1,
            "step": 1,
            "defaultFrom": {
              "field": "text",
              "factor": 1
            }
          },
          "serviceType": {
            "required": true,
            "canEdit": false,
            "blocked": false,
            "options": []
          },
          "customExternalPort": {
            "sourceOfRule": {
              "scope": "project",
              "projectId": 3
            },
            "required": true,
            "canEdit": true
          },
          "external": {
            "sourceOfRule": {
              "scope": "project",
              "projectId": 3
            },
            "required": true,
            "canEdit": true,
            "min": 1,
            "max": 1,
            "step": 1,
            "defaultFrom": {
              "field": "text",
              "factor": 1
            }
          },
          "toolType": {
            "required": true,
            "canEdit": false,
            "blocked": false,
            "options": []
          },
          "toolName": {
            "required": true,
            "canEdit": false,
            "blocked": false,
            "options": []
          }
        },
        "instances": {
          "sourceOfRule": {
            "scope": "project",
            "projectId": 3
          },
          "canAdd": true,
          "locked": [
            "HOME",
            "USER"
          ]
        }
      },
      "preemptibility": {
        "required": true,
        "canEdit": false,
        "blocked": false,
        "options": []
      },
      "priorityClass": {
        "required": true,
        "canEdit": false,
        "blocked": false,
        "options": []
      },
      "probes": {
        "readiness": {
          "initialDelaySeconds": {
            "sourceOfRule": {
              "scope": "project",
              "projectId": 3
            },
            "required": true,
            "canEdit": true,
            "min": 1,
            "max": 1,
            "step": 1,
            "defaultFrom": {
              "field": "text",
              "factor": 1
            }
          },
          "periodSeconds": {
            "sourceOfRule": {
              "scope": "project",
              "projectId": 3
            },
            "required": true,
            "canEdit": true,
            "min": 1,
            "max": 1,
            "step": 1,
            "defaultFrom": {
              "field": "text",
              "factor": 1
            }
          },
          "timeoutSeconds": {
            "sourceOfRule": {
              "scope": "project",
              "projectId": 3
            },
            "required": true,
            "canEdit": true,
            "min": 1,
            "max": 1,
            "step": 1,
            "defaultFrom": {
              "field": "text",
              "factor": 1
            }
          },
          "successThreshold": {
            "sourceOfRule": {
              "scope": "project",
              "projectId": 3
            },
            "required": true,
            "canEdit": true,
            "min": 1,
            "max": 1,
            "step": 1,
            "defaultFrom": {
              "field": "text",
              "factor": 1
            }
          },
          "failureThreshold": {
            "sourceOfRule": {
              "scope": "project",
              "projectId": 3
            },
            "required": true,
            "canEdit": true,
            "min": 1,
            "max": 1,
            "step": 1,
            "defaultFrom": {
              "field": "text",
              "factor": 1
            }
          },
          "handler": {
            "httpGet": {
              "path": {
                "required": true,
                "canEdit": false,
                "blocked": false,
                "options": []
              },
              "port": {
                "sourceOfRule": {
                  "scope": "project",
                  "projectId": 3
                },
                "required": true,
                "canEdit": true,
                "min": 1,
                "max": 1,
                "step": 1,
                "defaultFrom": {
                  "field": "text",
                  "factor": 1
                }
              },
              "host": {
                "required": true,
                "canEdit": false,
                "blocked": false,
                "options": []
              },
              "scheme": {
                "required": true,
                "canEdit": false,
                "blocked": false,
                "options": []
              }
            }
          }
        }
      },
      "relatedUrls": {
        "attributes": {
          "url": {
            "required": true,
            "canEdit": false,
            "blocked": false,
            "options": []
          },
          "type": {
            "required": true,
            "canEdit": false,
            "blocked": false,
            "options": []
          },
          "name": {
            "required": true,
            "canEdit": false,
            "blocked": false,
            "options": []
          }
        },
        "instances": {
          "sourceOfRule": {
            "scope": "project",
            "projectId": 3
          },
          "canAdd": true,
          "locked": [
            "HOME",
            "USER"
          ]
        }
      },
      "restartPolicy": {
        "required": true,
        "canEdit": false,
        "blocked": false,
        "options": []
      },
      "security": {
        "allowPrivilegeEscalation": {
          "sourceOfRule": {
            "scope": "project",
            "projectId": 3
          },
          "required": true,
          "canEdit": true
        },
        "capabilities": {
          "sourceOfRule": {
            "scope": "project",
            "projectId": 3
          },
          "required": true,
          "options": [],
          "canEdit": true
        },
        "hostIpc": {
          "sourceOfRule": {
            "scope": "project",
            "projectId": 3
          },
          "required": true,
          "canEdit": true
        },
        "hostNetwork": {
          "sourceOfRule": {
            "scope": "project",
            "projectId": 3
          },
          "required": true,
          "canEdit": true
        },
        "readOnlyRootFilesystem": {
          "sourceOfRule": {
            "scope": "project",
            "projectId": 3
          },
          "required": true,
          "canEdit": true
        },
        "runAsGid": {
          "sourceOfRule": {
            "scope": "project",
            "projectId": 3
          },
          "canEdit": true,
          "min": 1,
          "max": 1,
          "step": 1,
          "defaultFrom": {
            "field": "text",
            "factor": 1
          }
        },
        "runAsNonRoot": {
          "sourceOfRule": {
            "scope": "project",
            "projectId": 3
          },
          "required": true,
          "canEdit": true
        },
        "runAsUid": {
          "sourceOfRule": {
            "scope": "project",
            "projectId": 3
          },
          "canEdit": true,
          "min": 1,
          "max": 1,
          "step": 1,
          "defaultFrom": {
            "field": "text",
            "factor": 1
          }
        },
        "seccompProfileType": {
          "required": true,
          "canEdit": false,
          "blocked": false,
          "options": []
        },
        "supplementalGroups": {
          "required": true,
          "canEdit": false,
          "blocked": false,
          "options": []
        },
        "uidGidSource": {
          "required": true,
          "canEdit": false,
          "blocked": false,
          "options": []
        }
      },
      "stdin": {
        "sourceOfRule": {
          "scope": "project",
          "projectId": 3
        },
        "required": true,
        "canEdit": true
      },
      "storage": {
        "configMapVolume": {
          "attributes": {
            "configMap": {
              "required": true,
              "canEdit": false,
              "blocked": false,
              "options": []
            },
            "mountPath": {
              "required": true,
              "canEdit": false,
              "blocked": false,
              "options": []
            },
            "subPath": {
              "required": true,
              "canEdit": false,
              "blocked": false,
              "options": []
            },
            "defaultMode": {
              "required": true,
              "canEdit": false,
              "blocked": false,
              "options": []
            }
          },
          "instances": {
            "sourceOfRule": {
              "scope": "project",
              "projectId": 3
            },
            "canAdd": true,
            "locked": [
              "HOME",
              "USER"
            ]
          }
        },
        "dataVolume": {
          "attributes": {
            "id": {
              "required": true,
              "canEdit": false,
              "blocked": false,
              "options": []
            },
            "mountPath": {
              "required": true,
              "canEdit": false,
              "blocked": false,
              "options": []
            }
          },
          "instances": {
            "sourceOfRule": {
              "scope": "project",
              "projectId": 3
            },
            "canAdd": true,
            "locked": [
              "HOME",
              "USER"
            ]
          }
        },
        "emptyDirVolume": {
          "attributes": {
            "path": {
              "required": true,
              "canEdit": false,
              "blocked": false,
              "options": []
            },
            "medium": {
              "required": true,
              "canEdit": false,
              "blocked": false,
              "options": []
            },
            "sizeLimit": {
              "required": true,
              "canEdit": false,
              "blocked": false,
              "options": []
            }
          },
          "instances": {
            "sourceOfRule": {
              "scope": "project",
              "projectId": 3
            },
            "canAdd": true,
            "locked": [
              "HOME",
              "USER"
            ]
          }
        },
        "git": {
          "attributes": {
            "repository": {
              "required": true,
              "canEdit": false,
              "blocked": false,
              "options": []
            },
            "branch": {
              "required": true,
              "canEdit": false,
              "blocked": false,
              "options": []
            },
            "revision": {
              "required": true,
              "canEdit": false,
              "blocked": false,
              "options": []
            },
            "path": {
              "required": true,
              "canEdit": false,
              "blocked": false,
              "options": []
            }
          },
          "instances": {
            "sourceOfRule": {
              "scope": "project",
              "projectId": 3
            },
            "canAdd": true,
            "locked": [
              "HOME",
              "USER"
            ]
          }
        },
        "hostPath": {
          "attributes": {
            "path": {
              "required": true,
              "canEdit": false,
              "blocked": false,
              "options": []
            },
            "readOnly": {
              "sourceOfRule": {
                "scope": "project",
                "projectId": 3
              },
              "required": true,
              "canEdit": true
            },
            "mountPath": {
              "required": true,
              "canEdit": false,
              "blocked": false,
              "options": []
            },
            "mountPropagation": {
              "required": true,
              "canEdit": false,
              "blocked": false,
              "options": []
            }
          },
          "instances": {
            "sourceOfRule": {
              "scope": "project",
              "projectId": 3
            },
            "canAdd": true,
            "locked": [
              "HOME",
              "USER"
            ]
          }
        },
        "nfs": {
          "attributes": {
            "path": {
              "required": true,
              "canEdit": false,
              "blocked": false,
              "options": []
            },
            "readOnly": {
              "sourceOfRule": {
                "scope": "project",
                "projectId": 3
              },
              "required": true,
              "canEdit": true
            },
            "server": {
              "required": true,
              "canEdit": false,
              "blocked": false,
              "options": []
            },
            "mountPath": {
              "required": true,
              "canEdit": false,
              "blocked": false,
              "options": []
            }
          },
          "instances": {
            "sourceOfRule": {
              "scope": "project",
              "projectId": 3
            },
            "canAdd": true,
            "locked": [
              "HOME",
              "USER"
            ]
          }
        },
        "pvc": {
          "attributes": {
            "claimName": {
              "required": true,
              "canEdit": false,
              "blocked": false,
              "options": []
            },
            "path": {
              "required": true,
              "canEdit": false,
              "blocked": false,
              "options": []
            },
            "readOnly": {
              "sourceOfRule": {
                "scope": "project",
                "projectId": 3
              },
              "required": true,
              "canEdit": true
            },
            "claimInfo": {
              "size": {
                "required": true,
                "canEdit": false,
                "blocked": false,
                "options": []
              },
              "storageClass": {
                "required": true,
                "canEdit": false,
                "blocked": false,
                "options": []
              },
              "accessModes": {
                "readWriteOnce": {
                  "sourceOfRule": {
                    "scope": "project",
                    "projectId": 3
                  },
                  "required": true,
                  "canEdit": true
                },
                "readOnlyMany": {
                  "sourceOfRule": {
                    "scope": "project",
                    "projectId": 3
                  },
                  "required": true,
                  "canEdit": true
                },
                "readWriteMany": {
                  "sourceOfRule": {
                    "scope": "project",
                    "projectId": 3
                  },
                  "required": true,
                  "canEdit": true
                }
              }
            }
          },
          "instances": {
            "sourceOfRule": {
              "scope": "project",
              "projectId": 3
            },
            "canAdd": true,
            "locked": [
              "HOME",
              "USER"
            ]
          }
        },
        "s3": {
          "attributes": {
            "bucket": {
              "required": true,
              "canEdit": false,
              "blocked": false,
              "options": []
            },
            "path": {
              "required": true,
              "canEdit": false,
              "blocked": false,
              "options": []
            },
            "url": {
              "required": true,
              "canEdit": false,
              "blocked": false,
              "options": []
            }
          },
          "instances": {
            "sourceOfRule": {
              "scope": "project",
              "projectId": 3
            },
            "canAdd": true,
            "locked": [
              "HOME",
              "USER"
            ]
          }
        },
        "secretVolume": {
          "attributes": {
            "secret": {
              "required": true,
              "canEdit": false,
              "blocked": false,
              "options": []
            },
            "mountPath": {
              "required": true,
              "canEdit": false,
              "blocked": false,
              "options": []
            },
            "defaultMode": {
              "required": true,
              "canEdit": false,
              "blocked": false,
              "options": []
            }
          },
          "instances": {
            "sourceOfRule": {
              "scope": "project",
              "projectId": 3
            },
            "canAdd": true,
            "locked": [
              "HOME",
              "USER"
            ]
          }
        }
      },
      "terminateAfterPreemption": {
        "sourceOfRule": {
          "scope": "project",
          "projectId": 3
        },
        "required": true,
        "canEdit": true
      },
      "terminationGracePeriodSeconds": {
        "sourceOfRule": {
          "scope": "project",
          "projectId": 3
        },
        "required": true,
        "canEdit": true,
        "min": 1,
        "max": 1,
        "step": 1,
        "defaultFrom": {
          "field": "text",
          "factor": 1
        }
      },
      "tolerations": {
        "attributes": {
          "operator": {
            "required": true,
            "canEdit": false,
            "blocked": false,
            "options": []
          },
          "key": {
            "required": true,
            "canEdit": false,
            "blocked": false,
            "options": []
          },
          "value": {
            "required": true,
            "canEdit": false,
            "blocked": false,
            "options": []
          },
          "effect": {
            "required": true,
            "canEdit": false,
            "blocked": false,
            "options": []
          },
          "seconds": {
            "sourceOfRule": {
              "scope": "project",
              "projectId": 3
            },
            "required": true,
            "canEdit": true,
            "min": 1,
            "max": 1,
            "step": 1,
            "defaultFrom": {
              "field": "text",
              "factor": 1
            }
          },
          "exclude": {
            "sourceOfRule": {
              "scope": "project",
              "projectId": 3
            },
            "required": true,
            "canEdit": true
          }
        },
        "instances": {
          "sourceOfRule": {
            "scope": "project",
            "projectId": 3
          },
          "canAdd": true,
          "locked": [
            "HOME",
            "USER"
          ]
        }
      },
      "tty": {
        "sourceOfRule": {
          "scope": "project",
          "projectId": 3
        },
        "required": true,
        "canEdit": true
      },
      "workingDir": {
        "required": true,
        "canEdit": false,
        "blocked": false,
        "options": []
      }
    },
    "imposedAssets": [
      "123e4567-e89b-12d3-a456-426614174000"
    ],
    "status": {
      "validation": {
        "errorMessage": "text"
      }
    }
  }
}
{
  "meta": {
    "id": "123e4567-e89b-12d3-a456-426614174000",
    "tenantId": 1001,
    "clusterId": "71f69d83-ba66-4822-adf5-55ce55efd210",
    "createdBy": "text",
    "createdAt": "2026-01-01T00:00:00.000Z",
    "updatedBy": "text",
    "updatedAt": "2026-01-01T00:00:00.000Z",
    "scope": "system",
    "projectId": 1,
    "departmentId": 2,
    "name": "my-policy"
  },
  "policy": {
    "defaults": {
      "annotations": {
        "instances": [
          {
            "name": "billing",
            "value": "my-billing-unit",
            "exclude": false
          }
        ]
      },
      "args": "-x my-script.py",
      "autoDeletionTimeAfterCompletionSeconds": 15,
      "backoffLimit": 3,
      "category": "text",
      "command": "python",
      "completions": 1,
      "compute": {
        "cpuCoreLimit": 2,
        "cpuCoreRequest": 0.5,
        "cpuMemoryLimit": "30M",
        "cpuMemoryRequest": "20M",
        "extendedResources": {
          "attributes": {
            "resource": "hardware-vendor.example/foo",
            "quantity": 2,
            "exclude": false
          },
          "instances": [
            {
              "resource": "hardware-vendor.example/foo",
              "quantity": 2,
              "exclude": false
            }
          ]
        },
        "gpuDevicesRequest": 1,
        "gpuMemoryLimit": "10M",
        "gpuMemoryRequest": "10M",
        "gpuPortionLimit": 0.5,
        "gpuPortionRequest": 0.5,
        "gpuRequestType": "portion",
        "largeShmRequest": false
      },
      "createHomeDir": true,
      "environmentVariables": {
        "instances": [
          {
            "name": "HOME",
            "value": "/home/my-folder",
            "secret": {
              "name": "postgress_secret",
              "key": "POSTGRES_PASSWORD"
            },
            "configMap": {
              "name": "my-config-map",
              "key": "MY_POSTGRES_SCHEMA"
            },
            "podFieldRef": {
              "path": "metadata.name"
            },
            "userCredential": {
              "name": "my_postgres_user_and_password",
              "key": "POSTGRES_PASSWORD"
            },
            "exclude": false,
            "description": "Home directory of the user."
          }
        ]
      },
      "exposedUrls": {
        "attributes": {
          "container": 8080,
          "url": "https://my-url.com",
          "authorizationType": "authenticatedUsers",
          "authorizedUsers": [
            "user-a",
            "user-b"
          ],
          "authorizedGroups": [
            "group-a",
            "group-b"
          ],
          "toolType": "jupyter",
          "toolName": "my-pytorch",
          "name": "url-instance-a",
          "exclude": false
        },
        "instances": [
          {
            "container": 8080,
            "url": "https://my-url.com",
            "authorizationType": "authenticatedUsers",
            "authorizedUsers": [
              "user-a",
              "user-b"
            ],
            "authorizedGroups": [
              "group-a",
              "group-b"
            ],
            "toolType": "jupyter",
            "toolName": "my-pytorch",
            "name": "url-instance-a",
            "exclude": false
          }
        ]
      },
      "image": "python:3.8",
      "imagePullPolicy": "Always",
      "imagePullSecrets": {
        "instances": [
          {
            "name": "text",
            "userCredential": true,
            "exclude": false
          }
        ]
      },
      "labels": {
        "instances": [
          {
            "name": "stage",
            "value": "initial-research",
            "exclude": false
          }
        ]
      },
      "nodeAffinityRequired": {
        "nodeSelectorTerms": [
          {
            "matchExpressions": [
              {
                "key": "text",
                "operator": "In",
                "values": [
                  "text"
                ]
              }
            ]
          }
        ]
      },
      "nodePools": [
        "my-node-pool-a",
        "my-node-pool-b"
      ],
      "nodeType": "my-node-type",
      "parallelism": 1,
      "podAffinity": {
        "type": "Required",
        "key": "text"
      },
      "ports": {
        "attributes": {
          "container": 8080,
          "serviceType": "LoadBalancer",
          "external": 30080,
          "toolType": "pytorch",
          "toolName": "my-pytorch",
          "name": "port-instance-a",
          "exclude": false
        },
        "instances": [
          {
            "container": 8080,
            "serviceType": "LoadBalancer",
            "external": 30080,
            "toolType": "pytorch",
            "toolName": "my-pytorch",
            "name": "port-instance-a",
            "exclude": false
          }
        ]
      },
      "preemptibility": "preemptible",
      "priorityClass": "text",
      "probes": {
        "readiness": {
          "initialDelaySeconds": 1,
          "periodSeconds": 1,
          "timeoutSeconds": 1,
          "successThreshold": 1,
          "failureThreshold": 1,
          "handler": {
            "httpGet": {
              "path": "/",
              "port": 1,
              "host": "example.com",
              "scheme": "HTTP"
            }
          }
        }
      },
      "relatedUrls": {
        "attributes": {
          "url": "https://my-url.com",
          "type": "wandb",
          "name": "url-instance-a",
          "exclude": false
        },
        "instances": [
          {
            "url": "https://my-url.com",
            "type": "wandb",
            "name": "url-instance-a",
            "exclude": false
          }
        ]
      },
      "restartPolicy": "Always",
      "security": {
        "allowPrivilegeEscalation": false,
        "capabilities": [
          "CHOWN",
          "KILL"
        ],
        "hostIpc": false,
        "hostNetwork": false,
        "readOnlyRootFilesystem": false,
        "runAsGid": 30,
        "runAsNonRoot": true,
        "runAsUid": 500,
        "seccompProfileType": "RuntimeDefault",
        "supplementalGroups": "2,3,5,8",
        "uidGidSource": "fromTheImage"
      },
      "stdin": true,
      "storage": {
        "configMapVolume": {
          "attributes": {
            "name": "storage-instance-a",
            "configMap": "text",
            "mountPath": "text",
            "subPath": "text",
            "defaultMode": "0644",
            "exclude": false
          },
          "instances": [
            {
              "name": "storage-instance-a",
              "configMap": "text",
              "mountPath": "text",
              "subPath": "text",
              "defaultMode": "0644",
              "exclude": false
            }
          ]
        },
        "dataVolume": {
          "attributes": {
            "id": "123e4567-e89b-12d3-a456-426614174000",
            "mountPath": "/mnt/data",
            "exclude": false
          },
          "instances": [
            {
              "id": "123e4567-e89b-12d3-a456-426614174000",
              "mountPath": "/mnt/data",
              "exclude": false
            }
          ]
        },
        "emptyDirVolume": {
          "attributes": {
            "name": "storage-instance-a",
            "path": "/mnt/emptydir",
            "medium": "text",
            "sizeLimit": "1G",
            "exclude": false
          },
          "instances": [
            {
              "name": "storage-instance-a",
              "path": "/mnt/emptydir",
              "medium": "text",
              "sizeLimit": "1G",
              "exclude": false
            }
          ]
        },
        "git": {
          "attributes": {
            "name": "storage-instance-a",
            "repository": "https://github.com/my-git/my-repo",
            "branch": "main",
            "revision": "text",
            "path": "/container/my-repository",
            "passwordSecret": "my-password-secret",
            "secretKeyOfUser": "User",
            "secretKeyOfPassword": "Password",
            "exclude": false,
            "secretRef": {
              "name": "my-password-secret",
              "authenticationMethod": "password",
              "secretKeyOfUser": "User",
              "secretKeyOfPassword": "Password"
            }
          },
          "instances": [
            {
              "name": "storage-instance-a",
              "repository": "https://github.com/my-git/my-repo",
              "branch": "main",
              "revision": "text",
              "path": "/container/my-repository",
              "passwordSecret": "my-password-secret",
              "secretKeyOfUser": "User",
              "secretKeyOfPassword": "Password",
              "exclude": false,
              "secretRef": {
                "name": "my-password-secret",
                "authenticationMethod": "password",
                "secretKeyOfUser": "User",
                "secretKeyOfPassword": "Password"
              }
            }
          ]
        },
        "hostPath": {
          "attributes": {
            "name": "storage-instance-a",
            "path": "/container/directory",
            "readOnly": true,
            "mountPath": "/local/directory",
            "mountPropagation": "None",
            "exclude": false
          },
          "instances": [
            {
              "name": "storage-instance-a",
              "path": "/container/directory",
              "readOnly": true,
              "mountPath": "/local/directory",
              "mountPropagation": "None",
              "exclude": false
            }
          ]
        },
        "nfs": {
          "attributes": {
            "name": "storage-instance-a",
            "path": "/container/nfs",
            "readOnly": true,
            "server": "my.nfs.com",
            "mountPath": "/local/nfs",
            "exclude": false
          },
          "instances": [
            {
              "name": "storage-instance-a",
              "path": "/container/nfs",
              "readOnly": true,
              "server": "my.nfs.com",
              "mountPath": "/local/nfs",
              "exclude": false
            }
          ]
        },
        "pvc": {
          "attributes": {
            "name": "storage-instance-a",
            "path": "/container/my-claim",
            "existingPvc": false,
            "claimName": "my-claim",
            "readOnly": false,
            "ephemeral": false,
            "claimInfo": {
              "size": "1G",
              "storageClass": "my-storage-class",
              "accessModes": {
                "readWriteOnce": true,
                "readOnlyMany": false,
                "readWriteMany": false
              },
              "volumeMode": "Filesystem",
              "addedAttrValues": [
                {
                  "key": "dnsname",
                  "value": "my.dns.com"
                }
              ]
            },
            "dataSharing": false,
            "exclude": false
          },
          "instances": [
            {
              "name": "storage-instance-a",
              "path": "/container/my-claim",
              "existingPvc": false,
              "claimName": "my-claim",
              "readOnly": false,
              "ephemeral": false,
              "claimInfo": {
                "size": "1G",
                "storageClass": "my-storage-class",
                "accessModes": {
                  "readWriteOnce": true,
                  "readOnlyMany": false,
                  "readWriteMany": false
                },
                "volumeMode": "Filesystem",
                "addedAttrValues": [
                  {
                    "key": "dnsname",
                    "value": "my.dns.com"
                  }
                ]
              },
              "dataSharing": false,
              "exclude": false
            }
          ]
        },
        "s3": {
          "attributes": {
            "name": "storage-instance-a",
            "bucket": "my-bucket",
            "path": "/container/my-bucket",
            "url": "https://s3.amazonaws.com",
            "accessKeySecret": "my-access-key-secret",
            "secretKeyOfAccessKeyId": "AccessKeyId",
            "secretKeyOfSecretKey": "SecretKey",
            "exclude": false
          },
          "instances": [
            {
              "name": "storage-instance-a",
              "bucket": "my-bucket",
              "path": "/container/my-bucket",
              "url": "https://s3.amazonaws.com",
              "accessKeySecret": "my-access-key-secret",
              "secretKeyOfAccessKeyId": "AccessKeyId",
              "secretKeyOfSecretKey": "SecretKey",
              "exclude": false
            }
          ]
        },
        "secretVolume": {
          "attributes": {
            "name": "storage-instance-a",
            "mountPath": "text",
            "defaultMode": "0644",
            "secret": "text",
            "exclude": false
          },
          "instances": [
            {
              "name": "storage-instance-a",
              "mountPath": "text",
              "defaultMode": "0644",
              "secret": "text",
              "exclude": false
            }
          ]
        }
      },
      "terminateAfterPreemption": false,
      "terminationGracePeriodSeconds": 20,
      "tolerations": {
        "attributes": {
          "name": "text",
          "operator": "Equal",
          "key": "text",
          "value": "text",
          "effect": "NoSchedule",
          "seconds": 1,
          "exclude": false
        },
        "instances": [
          {
            "name": "text",
            "operator": "Equal",
            "key": "text",
            "value": "text",
            "effect": "NoSchedule",
            "seconds": 1,
            "exclude": false
          }
        ]
      },
      "tty": true,
      "workingDir": "/home/myfolder"
    },
    "rules": {
      "annotations": {
        "instances": {
          "sourceOfRule": {
            "scope": "project",
            "projectId": 3
          },
          "canAdd": true,
          "locked": [
            "HOME",
            "USER"
          ]
        }
      },
      "args": {
        "required": true,
        "canEdit": false,
        "blocked": false,
        "options": []
      },
      "autoDeletionTimeAfterCompletionSeconds": {
        "sourceOfRule": {
          "scope": "project",
          "projectId": 3
        },
        "required": true,
        "canEdit": true,
        "min": 1,
        "max": 1,
        "step": 1,
        "defaultFrom": {
          "field": "text",
          "factor": 1
        }
      },
      "backoffLimit": {
        "sourceOfRule": {
          "scope": "project",
          "projectId": 3
        },
        "required": true,
        "canEdit": true,
        "min": 1,
        "max": 1,
        "step": 1,
        "defaultFrom": {
          "field": "text",
          "factor": 1
        }
      },
      "category": {
        "required": true,
        "canEdit": false,
        "blocked": false,
        "options": []
      },
      "command": {
        "required": true,
        "canEdit": false,
        "blocked": false,
        "options": []
      },
      "completions": {
        "sourceOfRule": {
          "scope": "project",
          "projectId": 3
        },
        "required": true,
        "canEdit": true,
        "min": 1,
        "max": 1,
        "step": 1,
        "defaultFrom": {
          "field": "text",
          "factor": 1
        }
      },
      "compute": {
        "cpuCoreLimit": {
          "sourceOfRule": {
            "scope": "project",
            "projectId": 3
          },
          "required": true,
          "canEdit": true,
          "min": 1,
          "max": 1,
          "step": 1,
          "defaultFrom": {
            "field": "text",
            "factor": 1
          }
        },
        "cpuCoreRequest": {
          "sourceOfRule": {
            "scope": "project",
            "projectId": 3
          },
          "required": true,
          "canEdit": true,
          "min": 1,
          "max": 1,
          "step": 1,
          "defaultFrom": {
            "field": "text",
            "factor": 1
          }
        },
        "cpuMemoryLimit": {
          "sourceOfRule": {
            "scope": "project",
            "projectId": 3
          },
          "required": true,
          "canEdit": true,
          "min": "text",
          "max": "text",
          "defaultFrom": {
            "field": "text",
            "factor": 1
          }
        },
        "cpuMemoryRequest": {
          "sourceOfRule": {
            "scope": "project",
            "projectId": 3
          },
          "required": true,
          "canEdit": true,
          "min": "text",
          "max": "text",
          "defaultFrom": {
            "field": "text",
            "factor": 1
          }
        },
        "extendedResources": {
          "attributes": {
            "quantity": {
              "required": true,
              "canEdit": false,
              "blocked": false,
              "options": []
            }
          },
          "instances": {
            "sourceOfRule": {
              "scope": "project",
              "projectId": 3
            },
            "canAdd": true,
            "locked": [
              "HOME",
              "USER"
            ]
          }
        },
        "gpuDevicesRequest": {
          "sourceOfRule": {
            "scope": "project",
            "projectId": 3
          },
          "required": true,
          "canEdit": true,
          "min": 1,
          "max": 1,
          "step": 1,
          "defaultFrom": {
            "field": "text",
            "factor": 1
          }
        },
        "gpuMemoryLimit": {
          "sourceOfRule": {
            "scope": "project",
            "projectId": 3
          },
          "required": true,
          "canEdit": true,
          "min": "text",
          "max": "text",
          "defaultFrom": {
            "field": "text",
            "factor": 1
          }
        },
        "gpuMemoryRequest": {
          "sourceOfRule": {
            "scope": "project",
            "projectId": 3
          },
          "required": true,
          "canEdit": true,
          "min": "text",
          "max": "text",
          "defaultFrom": {
            "field": "text",
            "factor": 1
          }
        },
        "gpuPortionLimit": {
          "sourceOfRule": {
            "scope": "project",
            "projectId": 3
          },
          "required": true,
          "canEdit": true,
          "min": 1,
          "max": 1,
          "step": 1,
          "defaultFrom": {
            "field": "text",
            "factor": 1
          }
        },
        "gpuPortionRequest": {
          "sourceOfRule": {
            "scope": "project",
            "projectId": 3
          },
          "required": true,
          "canEdit": true,
          "min": 1,
          "max": 1,
          "step": 1,
          "defaultFrom": {
            "field": "text",
            "factor": 1
          }
        },
        "gpuRequestType": {
          "required": true,
          "canEdit": false,
          "blocked": false,
          "options": []
        },
        "largeShmRequest": {
          "sourceOfRule": {
            "scope": "project",
            "projectId": 3
          },
          "required": true,
          "canEdit": true
        }
      },
      "createHomeDir": {
        "sourceOfRule": {
          "scope": "project",
          "projectId": 3
        },
        "required": true,
        "canEdit": true
      },
      "environmentVariables": {
        "instances": {
          "sourceOfRule": {
            "scope": "project",
            "projectId": 3
          },
          "canAdd": true,
          "locked": [
            "HOME",
            "USER"
          ]
        }
      },
      "exposedUrls": {
        "attributes": {
          "container": {
            "sourceOfRule": {
              "scope": "project",
              "projectId": 3
            },
            "required": true,
            "canEdit": true,
            "min": 1,
            "max": 1,
            "step": 1,
            "defaultFrom": {
              "field": "text",
              "factor": 1
            }
          },
          "customUrl": {
            "sourceOfRule": {
              "scope": "project",
              "projectId": 3
            },
            "required": true,
            "canEdit": true
          },
          "url": {
            "required": true,
            "canEdit": false,
            "blocked": false,
            "options": []
          },
          "authorizedUsers": {
            "sourceOfRule": {
              "scope": "project",
              "projectId": 3
            },
            "required": true,
            "options": [],
            "canEdit": true
          },
          "authorizedGroups": {
            "sourceOfRule": {
              "scope": "project",
              "projectId": 3
            },
            "required": true,
            "options": [],
            "canEdit": true
          },
          "toolType": {
            "required": true,
            "canEdit": false,
            "blocked": false,
            "options": []
          },
          "toolName": {
            "required": true,
            "canEdit": false,
            "blocked": false,
            "options": []
          }
        },
        "instances": {
          "sourceOfRule": {
            "scope": "project",
            "projectId": 3
          },
          "canAdd": true,
          "locked": [
            "HOME",
            "USER"
          ]
        }
      },
      "image": {
        "required": true,
        "canEdit": false,
        "blocked": false,
        "options": []
      },
      "imagePullPolicy": {
        "required": true,
        "canEdit": false,
        "blocked": false,
        "options": []
      },
      "imagePullSecrets": {
        "attributes": {
          "name": {
            "required": true,
            "canEdit": false,
            "blocked": false,
            "options": []
          },
          "userCredentials": {
            "sourceOfRule": {
              "scope": "project",
              "projectId": 3
            },
            "required": true,
            "canEdit": true
          }
        },
        "instances": {
          "sourceOfRule": {
            "scope": "project",
            "projectId": 3
          },
          "canAdd": true,
          "locked": [
            "HOME",
            "USER"
          ]
        }
      },
      "labels": {
        "instances": {
          "sourceOfRule": {
            "scope": "project",
            "projectId": 3
          },
          "canAdd": true,
          "locked": [
            "HOME",
            "USER"
          ]
        }
      },
      "nodeAffinityRequired": {
        "sourceOfRule": {
          "scope": "project",
          "projectId": 3
        },
        "required": true,
        "canEdit": true
      },
      "nodePools": {
        "sourceOfRule": {
          "scope": "project",
          "projectId": 3
        },
        "required": true,
        "options": [],
        "canEdit": true
      },
      "nodeType": {
        "required": true,
        "canEdit": false,
        "blocked": false,
        "options": []
      },
      "parallelism": {
        "sourceOfRule": {
          "scope": "project",
          "projectId": 3
        },
        "required": true,
        "canEdit": true,
        "min": 1,
        "max": 1,
        "step": 1,
        "defaultFrom": {
          "field": "text",
          "factor": 1
        }
      },
      "podAffinity": {
        "type": {
          "required": true,
          "canEdit": false,
          "blocked": false,
          "options": []
        },
        "key": {
          "required": true,
          "canEdit": false,
          "blocked": false,
          "options": []
        }
      },
      "ports": {
        "attributes": {
          "container": {
            "sourceOfRule": {
              "scope": "project",
              "projectId": 3
            },
            "required": true,
            "canEdit": true,
            "min": 1,
            "max": 1,
            "step": 1,
            "defaultFrom": {
              "field": "text",
              "factor": 1
            }
          },
          "serviceType": {
            "required": true,
            "canEdit": false,
            "blocked": false,
            "options": []
          },
          "customExternalPort": {
            "sourceOfRule": {
              "scope": "project",
              "projectId": 3
            },
            "required": true,
            "canEdit": true
          },
          "external": {
            "sourceOfRule": {
              "scope": "project",
              "projectId": 3
            },
            "required": true,
            "canEdit": true,
            "min": 1,
            "max": 1,
            "step": 1,
            "defaultFrom": {
              "field": "text",
              "factor": 1
            }
          },
          "toolType": {
            "required": true,
            "canEdit": false,
            "blocked": false,
            "options": []
          },
          "toolName": {
            "required": true,
            "canEdit": false,
            "blocked": false,
            "options": []
          }
        },
        "instances": {
          "sourceOfRule": {
            "scope": "project",
            "projectId": 3
          },
          "canAdd": true,
          "locked": [
            "HOME",
            "USER"
          ]
        }
      },
      "preemptibility": {
        "required": true,
        "canEdit": false,
        "blocked": false,
        "options": []
      },
      "priorityClass": {
        "required": true,
        "canEdit": false,
        "blocked": false,
        "options": []
      },
      "probes": {
        "readiness": {
          "initialDelaySeconds": {
            "sourceOfRule": {
              "scope": "project",
              "projectId": 3
            },
            "required": true,
            "canEdit": true,
            "min": 1,
            "max": 1,
            "step": 1,
            "defaultFrom": {
              "field": "text",
              "factor": 1
            }
          },
          "periodSeconds": {
            "sourceOfRule": {
              "scope": "project",
              "projectId": 3
            },
            "required": true,
            "canEdit": true,
            "min": 1,
            "max": 1,
            "step": 1,
            "defaultFrom": {
              "field": "text",
              "factor": 1
            }
          },
          "timeoutSeconds": {
            "sourceOfRule": {
              "scope": "project",
              "projectId": 3
            },
            "required": true,
            "canEdit": true,
            "min": 1,
            "max": 1,
            "step": 1,
            "defaultFrom": {
              "field": "text",
              "factor": 1
            }
          },
          "successThreshold": {
            "sourceOfRule": {
              "scope": "project",
              "projectId": 3
            },
            "required": true,
            "canEdit": true,
            "min": 1,
            "max": 1,
            "step": 1,
            "defaultFrom": {
              "field": "text",
              "factor": 1
            }
          },
          "failureThreshold": {
            "sourceOfRule": {
              "scope": "project",
              "projectId": 3
            },
            "required": true,
            "canEdit": true,
            "min": 1,
            "max": 1,
            "step": 1,
            "defaultFrom": {
              "field": "text",
              "factor": 1
            }
          },
          "handler": {
            "httpGet": {
              "path": {
                "required": true,
                "canEdit": false,
                "blocked": false,
                "options": []
              },
              "port": {
                "sourceOfRule": {
                  "scope": "project",
                  "projectId": 3
                },
                "required": true,
                "canEdit": true,
                "min": 1,
                "max": 1,
                "step": 1,
                "defaultFrom": {
                  "field": "text",
                  "factor": 1
                }
              },
              "host": {
                "required": true,
                "canEdit": false,
                "blocked": false,
                "options": []
              },
              "scheme": {
                "required": true,
                "canEdit": false,
                "blocked": false,
                "options": []
              }
            }
          }
        }
      },
      "relatedUrls": {
        "attributes": {
          "url": {
            "required": true,
            "canEdit": false,
            "blocked": false,
            "options": []
          },
          "type": {
            "required": true,
            "canEdit": false,
            "blocked": false,
            "options": []
          },
          "name": {
            "required": true,
            "canEdit": false,
            "blocked": false,
            "options": []
          }
        },
        "instances": {
          "sourceOfRule": {
            "scope": "project",
            "projectId": 3
          },
          "canAdd": true,
          "locked": [
            "HOME",
            "USER"
          ]
        }
      },
      "restartPolicy": {
        "required": true,
        "canEdit": false,
        "blocked": false,
        "options": []
      },
      "security": {
        "allowPrivilegeEscalation": {
          "sourceOfRule": {
            "scope": "project",
            "projectId": 3
          },
          "required": true,
          "canEdit": true
        },
        "capabilities": {
          "sourceOfRule": {
            "scope": "project",
            "projectId": 3
          },
          "required": true,
          "options": [],
          "canEdit": true
        },
        "hostIpc": {
          "sourceOfRule": {
            "scope": "project",
            "projectId": 3
          },
          "required": true,
          "canEdit": true
        },
        "hostNetwork": {
          "sourceOfRule": {
            "scope": "project",
            "projectId": 3
          },
          "required": true,
          "canEdit": true
        },
        "readOnlyRootFilesystem": {
          "sourceOfRule": {
            "scope": "project",
            "projectId": 3
          },
          "required": true,
          "canEdit": true
        },
        "runAsGid": {
          "sourceOfRule": {
            "scope": "project",
            "projectId": 3
          },
          "canEdit": true,
          "min": 1,
          "max": 1,
          "step": 1,
          "defaultFrom": {
            "field": "text",
            "factor": 1
          }
        },
        "runAsNonRoot": {
          "sourceOfRule": {
            "scope": "project",
            "projectId": 3
          },
          "required": true,
          "canEdit": true
        },
        "runAsUid": {
          "sourceOfRule": {
            "scope": "project",
            "projectId": 3
          },
          "canEdit": true,
          "min": 1,
          "max": 1,
          "step": 1,
          "defaultFrom": {
            "field": "text",
            "factor": 1
          }
        },
        "seccompProfileType": {
          "required": true,
          "canEdit": false,
          "blocked": false,
          "options": []
        },
        "supplementalGroups": {
          "required": true,
          "canEdit": false,
          "blocked": false,
          "options": []
        },
        "uidGidSource": {
          "required": true,
          "canEdit": false,
          "blocked": false,
          "options": []
        }
      },
      "stdin": {
        "sourceOfRule": {
          "scope": "project",
          "projectId": 3
        },
        "required": true,
        "canEdit": true
      },
      "storage": {
        "configMapVolume": {
          "attributes": {
            "configMap": {
              "required": true,
              "canEdit": false,
              "blocked": false,
              "options": []
            },
            "mountPath": {
              "required": true,
              "canEdit": false,
              "blocked": false,
              "options": []
            },
            "subPath": {
              "required": true,
              "canEdit": false,
              "blocked": false,
              "options": []
            },
            "defaultMode": {
              "required": true,
              "canEdit": false,
              "blocked": false,
              "options": []
            }
          },
          "instances": {
            "sourceOfRule": {
              "scope": "project",
              "projectId": 3
            },
            "canAdd": true,
            "locked": [
              "HOME",
              "USER"
            ]
          }
        },
        "dataVolume": {
          "attributes": {
            "id": {
              "required": true,
              "canEdit": false,
              "blocked": false,
              "options": []
            },
            "mountPath": {
              "required": true,
              "canEdit": false,
              "blocked": false,
              "options": []
            }
          },
          "instances": {
            "sourceOfRule": {
              "scope": "project",
              "projectId": 3
            },
            "canAdd": true,
            "locked": [
              "HOME",
              "USER"
            ]
          }
        },
        "emptyDirVolume": {
          "attributes": {
            "path": {
              "required": true,
              "canEdit": false,
              "blocked": false,
              "options": []
            },
            "medium": {
              "required": true,
              "canEdit": false,
              "blocked": false,
              "options": []
            },
            "sizeLimit": {
              "required": true,
              "canEdit": false,
              "blocked": false,
              "options": []
            }
          },
          "instances": {
            "sourceOfRule": {
              "scope": "project",
              "projectId": 3
            },
            "canAdd": true,
            "locked": [
              "HOME",
              "USER"
            ]
          }
        },
        "git": {
          "attributes": {
            "repository": {
              "required": true,
              "canEdit": false,
              "blocked": false,
              "options": []
            },
            "branch": {
              "required": true,
              "canEdit": false,
              "blocked": false,
              "options": []
            },
            "revision": {
              "required": true,
              "canEdit": false,
              "blocked": false,
              "options": []
            },
            "path": {
              "required": true,
              "canEdit": false,
              "blocked": false,
              "options": []
            }
          },
          "instances": {
            "sourceOfRule": {
              "scope": "project",
              "projectId": 3
            },
            "canAdd": true,
            "locked": [
              "HOME",
              "USER"
            ]
          }
        },
        "hostPath": {
          "attributes": {
            "path": {
              "required": true,
              "canEdit": false,
              "blocked": false,
              "options": []
            },
            "readOnly": {
              "sourceOfRule": {
                "scope": "project",
                "projectId": 3
              },
              "required": true,
              "canEdit": true
            },
            "mountPath": {
              "required": true,
              "canEdit": false,
              "blocked": false,
              "options": []
            },
            "mountPropagation": {
              "required": true,
              "canEdit": false,
              "blocked": false,
              "options": []
            }
          },
          "instances": {
            "sourceOfRule": {
              "scope": "project",
              "projectId": 3
            },
            "canAdd": true,
            "locked": [
              "HOME",
              "USER"
            ]
          }
        },
        "nfs": {
          "attributes": {
            "path": {
              "required": true,
              "canEdit": false,
              "blocked": false,
              "options": []
            },
            "readOnly": {
              "sourceOfRule": {
                "scope": "project",
                "projectId": 3
              },
              "required": true,
              "canEdit": true
            },
            "server": {
              "required": true,
              "canEdit": false,
              "blocked": false,
              "options": []
            },
            "mountPath": {
              "required": true,
              "canEdit": false,
              "blocked": false,
              "options": []
            }
          },
          "instances": {
            "sourceOfRule": {
              "scope": "project",
              "projectId": 3
            },
            "canAdd": true,
            "locked": [
              "HOME",
              "USER"
            ]
          }
        },
        "pvc": {
          "attributes": {
            "claimName": {
              "required": true,
              "canEdit": false,
              "blocked": false,
              "options": []
            },
            "path": {
              "required": true,
              "canEdit": false,
              "blocked": false,
              "options": []
            },
            "readOnly": {
              "sourceOfRule": {
                "scope": "project",
                "projectId": 3
              },
              "required": true,
              "canEdit": true
            },
            "claimInfo": {
              "size": {
                "required": true,
                "canEdit": false,
                "blocked": false,
                "options": []
              },
              "storageClass": {
                "required": true,
                "canEdit": false,
                "blocked": false,
                "options": []
              },
              "accessModes": {
                "readWriteOnce": {
                  "sourceOfRule": {
                    "scope": "project",
                    "projectId": 3
                  },
                  "required": true,
                  "canEdit": true
                },
                "readOnlyMany": {
                  "sourceOfRule": {
                    "scope": "project",
                    "projectId": 3
                  },
                  "required": true,
                  "canEdit": true
                },
                "readWriteMany": {
                  "sourceOfRule": {
                    "scope": "project",
                    "projectId": 3
                  },
                  "required": true,
                  "canEdit": true
                }
              }
            }
          },
          "instances": {
            "sourceOfRule": {
              "scope": "project",
              "projectId": 3
            },
            "canAdd": true,
            "locked": [
              "HOME",
              "USER"
            ]
          }
        },
        "s3": {
          "attributes": {
            "bucket": {
              "required": true,
              "canEdit": false,
              "blocked": false,
              "options": []
            },
            "path": {
              "required": true,
              "canEdit": false,
              "blocked": false,
              "options": []
            },
            "url": {
              "required": true,
              "canEdit": false,
              "blocked": false,
              "options": []
            }
          },
          "instances": {
            "sourceOfRule": {
              "scope": "project",
              "projectId": 3
            },
            "canAdd": true,
            "locked": [
              "HOME",
              "USER"
            ]
          }
        },
        "secretVolume": {
          "attributes": {
            "secret": {
              "required": true,
              "canEdit": false,
              "blocked": false,
              "options": []
            },
            "mountPath": {
              "required": true,
              "canEdit": false,
              "blocked": false,
              "options": []
            },
            "defaultMode": {
              "required": true,
              "canEdit": false,
              "blocked": false,
              "options": []
            }
          },
          "instances": {
            "sourceOfRule": {
              "scope": "project",
              "projectId": 3
            },
            "canAdd": true,
            "locked": [
              "HOME",
              "USER"
            ]
          }
        }
      },
      "terminateAfterPreemption": {
        "sourceOfRule": {
          "scope": "project",
          "projectId": 3
        },
        "required": true,
        "canEdit": true
      },
      "terminationGracePeriodSeconds": {
        "sourceOfRule": {
          "scope": "project",
          "projectId": 3
        },
        "required": true,
        "canEdit": true,
        "min": 1,
        "max": 1,
        "step": 1,
        "defaultFrom": {
          "field": "text",
          "factor": 1
        }
      },
      "tolerations": {
        "attributes": {
          "operator": {
            "required": true,
            "canEdit": false,
            "blocked": false,
            "options": []
          },
          "key": {
            "required": true,
            "canEdit": false,
            "blocked": false,
            "options": []
          },
          "value": {
            "required": true,
            "canEdit": false,
            "blocked": false,
            "options": []
          },
          "effect": {
            "required": true,
            "canEdit": false,
            "blocked": false,
            "options": []
          },
          "seconds": {
            "sourceOfRule": {
              "scope": "project",
              "projectId": 3
            },
            "required": true,
            "canEdit": true,
            "min": 1,
            "max": 1,
            "step": 1,
            "defaultFrom": {
              "field": "text",
              "factor": 1
            }
          },
          "exclude": {
            "sourceOfRule": {
              "scope": "project",
              "projectId": 3
            },
            "required": true,
            "canEdit": true
          }
        },
        "instances": {
          "sourceOfRule": {
            "scope": "project",
            "projectId": 3
          },
          "canAdd": true,
          "locked": [
            "HOME",
            "USER"
          ]
        }
      },
      "tty": {
        "sourceOfRule": {
          "scope": "project",
          "projectId": 3
        },
        "required": true,
        "canEdit": true
      },
      "workingDir": {
        "required": true,
        "canEdit": false,
        "blocked": false,
        "options": []
      }
    },
    "imposedAssets": [
      "123e4567-e89b-12d3-a456-426614174000"
    ],
    "status": {
      "validation": {
        "errorMessage": "text"
      }
    }
  },
  "effective": {
    "defaults": {
      "annotations": {
        "instances": [
          {
            "name": "billing",
            "value": "my-billing-unit",
            "exclude": false
          }
        ]
      },
      "args": "-x my-script.py",
      "autoDeletionTimeAfterCompletionSeconds": 15,
      "backoffLimit": 3,
      "category": "text",
      "command": "python",
      "completions": 1,
      "compute": {
        "cpuCoreLimit": 2,
        "cpuCoreRequest": 0.5,
        "cpuMemoryLimit": "30M",
        "cpuMemoryRequest": "20M",
        "extendedResources": {
          "attributes": {
            "resource": "hardware-vendor.example/foo",
            "quantity": 2,
            "exclude": false
          },
          "instances": [
            {
              "resource": "hardware-vendor.example/foo",
              "quantity": 2,
              "exclude": false
            }
          ]
        },
        "gpuDevicesRequest": 1,
        "gpuMemoryLimit": "10M",
        "gpuMemoryRequest": "10M",
        "gpuPortionLimit": 0.5,
        "gpuPortionRequest": 0.5,
        "gpuRequestType": "portion",
        "largeShmRequest": false
      },
      "createHomeDir": true,
      "environmentVariables": {
        "instances": [
          {
            "name": "HOME",
            "value": "/home/my-folder",
            "secret": {
              "name": "postgress_secret",
              "key": "POSTGRES_PASSWORD"
            },
            "configMap": {
              "name": "my-config-map",
              "key": "MY_POSTGRES_SCHEMA"
            },
            "podFieldRef": {
              "path": "metadata.name"
            },
            "userCredential": {
              "name": "my_postgres_user_and_password",
              "key": "POSTGRES_PASSWORD"
            },
            "exclude": false,
            "description": "Home directory of the user."
          }
        ]
      },
      "exposedUrls": {
        "attributes": {
          "container": 8080,
          "url": "https://my-url.com",
          "authorizationType": "authenticatedUsers",
          "authorizedUsers": [
            "user-a",
            "user-b"
          ],
          "authorizedGroups": [
            "group-a",
            "group-b"
          ],
          "toolType": "jupyter",
          "toolName": "my-pytorch",
          "name": "url-instance-a",
          "exclude": false
        },
        "instances": [
          {
            "container": 8080,
            "url": "https://my-url.com",
            "authorizationType": "authenticatedUsers",
            "authorizedUsers": [
              "user-a",
              "user-b"
            ],
            "authorizedGroups": [
              "group-a",
              "group-b"
            ],
            "toolType": "jupyter",
            "toolName": "my-pytorch",
            "name": "url-instance-a",
            "exclude": false
          }
        ]
      },
      "image": "python:3.8",
      "imagePullPolicy": "Always",
      "imagePullSecrets": {
        "instances": [
          {
            "name": "text",
            "userCredential": true,
            "exclude": false
          }
        ]
      },
      "labels": {
        "instances": [
          {
            "name": "stage",
            "value": "initial-research",
            "exclude": false
          }
        ]
      },
      "nodeAffinityRequired": {
        "nodeSelectorTerms": [
          {
            "matchExpressions": [
              {
                "key": "text",
                "operator": "In",
                "values": [
                  "text"
                ]
              }
            ]
          }
        ]
      },
      "nodePools": [
        "my-node-pool-a",
        "my-node-pool-b"
      ],
      "nodeType": "my-node-type",
      "parallelism": 1,
      "podAffinity": {
        "type": "Required",
        "key": "text"
      },
      "ports": {
        "attributes": {
          "container": 8080,
          "serviceType": "LoadBalancer",
          "external": 30080,
          "toolType": "pytorch",
          "toolName": "my-pytorch",
          "name": "port-instance-a",
          "exclude": false
        },
        "instances": [
          {
            "container": 8080,
            "serviceType": "LoadBalancer",
            "external": 30080,
            "toolType": "pytorch",
            "toolName": "my-pytorch",
            "name": "port-instance-a",
            "exclude": false
          }
        ]
      },
      "preemptibility": "preemptible",
      "priorityClass": "text",
      "probes": {
        "readiness": {
          "initialDelaySeconds": 1,
          "periodSeconds": 1,
          "timeoutSeconds": 1,
          "successThreshold": 1,
          "failureThreshold": 1,
          "handler": {
            "httpGet": {
              "path": "/",
              "port": 1,
              "host": "example.com",
              "scheme": "HTTP"
            }
          }
        }
      },
      "relatedUrls": {
        "attributes": {
          "url": "https://my-url.com",
          "type": "wandb",
          "name": "url-instance-a",
          "exclude": false
        },
        "instances": [
          {
            "url": "https://my-url.com",
            "type": "wandb",
            "name": "url-instance-a",
            "exclude": false
          }
        ]
      },
      "restartPolicy": "Always",
      "security": {
        "allowPrivilegeEscalation": false,
        "capabilities": [
          "CHOWN",
          "KILL"
        ],
        "hostIpc": false,
        "hostNetwork": false,
        "readOnlyRootFilesystem": false,
        "runAsGid": 30,
        "runAsNonRoot": true,
        "runAsUid": 500,
        "seccompProfileType": "RuntimeDefault",
        "supplementalGroups": "2,3,5,8",
        "uidGidSource": "fromTheImage"
      },
      "stdin": true,
      "storage": {
        "configMapVolume": {
          "attributes": {
            "name": "storage-instance-a",
            "configMap": "text",
            "mountPath": "text",
            "subPath": "text",
            "defaultMode": "0644",
            "exclude": false
          },
          "instances": [
            {
              "name": "storage-instance-a",
              "configMap": "text",
              "mountPath": "text",
              "subPath": "text",
              "defaultMode": "0644",
              "exclude": false
            }
          ]
        },
        "dataVolume": {
          "attributes": {
            "id": "123e4567-e89b-12d3-a456-426614174000",
            "mountPath": "/mnt/data",
            "exclude": false
          },
          "instances": [
            {
              "id": "123e4567-e89b-12d3-a456-426614174000",
              "mountPath": "/mnt/data",
              "exclude": false
            }
          ]
        },
        "emptyDirVolume": {
          "attributes": {
            "name": "storage-instance-a",
            "path": "/mnt/emptydir",
            "medium": "text",
            "sizeLimit": "1G",
            "exclude": false
          },
          "instances": [
            {
              "name": "storage-instance-a",
              "path": "/mnt/emptydir",
              "medium": "text",
              "sizeLimit": "1G",
              "exclude": false
            }
          ]
        },
        "git": {
          "attributes": {
            "name": "storage-instance-a",
            "repository": "https://github.com/my-git/my-repo",
            "branch": "main",
            "revision": "text",
            "path": "/container/my-repository",
            "passwordSecret": "my-password-secret",
            "secretKeyOfUser": "User",
            "secretKeyOfPassword": "Password",
            "exclude": false,
            "secretRef": {
              "name": "my-password-secret",
              "authenticationMethod": "password",
              "secretKeyOfUser": "User",
              "secretKeyOfPassword": "Password"
            }
          },
          "instances": [
            {
              "name": "storage-instance-a",
              "repository": "https://github.com/my-git/my-repo",
              "branch": "main",
              "revision": "text",
              "path": "/container/my-repository",
              "passwordSecret": "my-password-secret",
              "secretKeyOfUser": "User",
              "secretKeyOfPassword": "Password",
              "exclude": false,
              "secretRef": {
                "name": "my-password-secret",
                "authenticationMethod": "password",
                "secretKeyOfUser": "User",
                "secretKeyOfPassword": "Password"
              }
            }
          ]
        },
        "hostPath": {
          "attributes": {
            "name": "storage-instance-a",
            "path": "/container/directory",
            "readOnly": true,
            "mountPath": "/local/directory",
            "mountPropagation": "None",
            "exclude": false
          },
          "instances": [
            {
              "name": "storage-instance-a",
              "path": "/container/directory",
              "readOnly": true,
              "mountPath": "/local/directory",
              "mountPropagation": "None",
              "exclude": false
            }
          ]
        },
        "nfs": {
          "attributes": {
            "name": "storage-instance-a",
            "path": "/container/nfs",
            "readOnly": true,
            "server": "my.nfs.com",
            "mountPath": "/local/nfs",
            "exclude": false
          },
          "instances": [
            {
              "name": "storage-instance-a",
              "path": "/container/nfs",
              "readOnly": true,
              "server": "my.nfs.com",
              "mountPath": "/local/nfs",
              "exclude": false
            }
          ]
        },
        "pvc": {
          "attributes": {
            "name": "storage-instance-a",
            "path": "/container/my-claim",
            "existingPvc": false,
            "claimName": "my-claim",
            "readOnly": false,
            "ephemeral": false,
            "claimInfo": {
              "size": "1G",
              "storageClass": "my-storage-class",
              "accessModes": {
                "readWriteOnce": true,
                "readOnlyMany": false,
                "readWriteMany": false
              },
              "volumeMode": "Filesystem",
              "addedAttrValues": [
                {
                  "key": "dnsname",
                  "value": "my.dns.com"
                }
              ]
            },
            "dataSharing": false,
            "exclude": false
          },
          "instances": [
            {
              "name": "storage-instance-a",
              "path": "/container/my-claim",
              "existingPvc": false,
              "claimName": "my-claim",
              "readOnly": false,
              "ephemeral": false,
              "claimInfo": {
                "size": "1G",
                "storageClass": "my-storage-class",
                "accessModes": {
                  "readWriteOnce": true,
                  "readOnlyMany": false,
                  "readWriteMany": false
                },
                "volumeMode": "Filesystem",
                "addedAttrValues": [
                  {
                    "key": "dnsname",
                    "value": "my.dns.com"
                  }
                ]
              },
              "dataSharing": false,
              "exclude": false
            }
          ]
        },
        "s3": {
          "attributes": {
            "name": "storage-instance-a",
            "bucket": "my-bucket",
            "path": "/container/my-bucket",
            "url": "https://s3.amazonaws.com",
            "accessKeySecret": "my-access-key-secret",
            "secretKeyOfAccessKeyId": "AccessKeyId",
            "secretKeyOfSecretKey": "SecretKey",
            "exclude": false
          },
          "instances": [
            {
              "name": "storage-instance-a",
              "bucket": "my-bucket",
              "path": "/container/my-bucket",
              "url": "https://s3.amazonaws.com",
              "accessKeySecret": "my-access-key-secret",
              "secretKeyOfAccessKeyId": "AccessKeyId",
              "secretKeyOfSecretKey": "SecretKey",
              "exclude": false
            }
          ]
        },
        "secretVolume": {
          "attributes": {
            "name": "storage-instance-a",
            "mountPath": "text",
            "defaultMode": "0644",
            "secret": "text",
            "exclude": false
          },
          "instances": [
            {
              "name": "storage-instance-a",
              "mountPath": "text",
              "defaultMode": "0644",
              "secret": "text",
              "exclude": false
            }
          ]
        }
      },
      "terminateAfterPreemption": false,
      "terminationGracePeriodSeconds": 20,
      "tolerations": {
        "attributes": {
          "name": "text",
          "operator": "Equal",
          "key": "text",
          "value": "text",
          "effect": "NoSchedule",
          "seconds": 1,
          "exclude": false
        },
        "instances": [
          {
            "name": "text",
            "operator": "Equal",
            "key": "text",
            "value": "text",
            "effect": "NoSchedule",
            "seconds": 1,
            "exclude": false
          }
        ]
      },
      "tty": true,
      "workingDir": "/home/myfolder"
    },
    "rules": {
      "annotations": {
        "instances": {
          "sourceOfRule": {
            "scope": "project",
            "projectId": 3
          },
          "canAdd": true,
          "locked": [
            "HOME",
            "USER"
          ]
        }
      },
      "args": {
        "required": true,
        "canEdit": false,
        "blocked": false,
        "options": []
      },
      "autoDeletionTimeAfterCompletionSeconds": {
        "sourceOfRule": {
          "scope": "project",
          "projectId": 3
        },
        "required": true,
        "canEdit": true,
        "min": 1,
        "max": 1,
        "step": 1,
        "defaultFrom": {
          "field": "text",
          "factor": 1
        }
      },
      "backoffLimit": {
        "sourceOfRule": {
          "scope": "project",
          "projectId": 3
        },
        "required": true,
        "canEdit": true,
        "min": 1,
        "max": 1,
        "step": 1,
        "defaultFrom": {
          "field": "text",
          "factor": 1
        }
      },
      "category": {
        "required": true,
        "canEdit": false,
        "blocked": false,
        "options": []
      },
      "command": {
        "required": true,
        "canEdit": false,
        "blocked": false,
        "options": []
      },
      "completions": {
        "sourceOfRule": {
          "scope": "project",
          "projectId": 3
        },
        "required": true,
        "canEdit": true,
        "min": 1,
        "max": 1,
        "step": 1,
        "defaultFrom": {
          "field": "text",
          "factor": 1
        }
      },
      "compute": {
        "cpuCoreLimit": {
          "sourceOfRule": {
            "scope": "project",
            "projectId": 3
          },
          "required": true,
          "canEdit": true,
          "min": 1,
          "max": 1,
          "step": 1,
          "defaultFrom": {
            "field": "text",
            "factor": 1
          }
        },
        "cpuCoreRequest": {
          "sourceOfRule": {
            "scope": "project",
            "projectId": 3
          },
          "required": true,
          "canEdit": true,
          "min": 1,
          "max": 1,
          "step": 1,
          "defaultFrom": {
            "field": "text",
            "factor": 1
          }
        },
        "cpuMemoryLimit": {
          "sourceOfRule": {
            "scope": "project",
            "projectId": 3
          },
          "required": true,
          "canEdit": true,
          "min": "text",
          "max": "text",
          "defaultFrom": {
            "field": "text",
            "factor": 1
          }
        },
        "cpuMemoryRequest": {
          "sourceOfRule": {
            "scope": "project",
            "projectId": 3
          },
          "required": true,
          "canEdit": true,
          "min": "text",
          "max": "text",
          "defaultFrom": {
            "field": "text",
            "factor": 1
          }
        },
        "extendedResources": {
          "attributes": {
            "quantity": {
              "required": true,
              "canEdit": false,
              "blocked": false,
              "options": []
            }
          },
          "instances": {
            "sourceOfRule": {
              "scope": "project",
              "projectId": 3
            },
            "canAdd": true,
            "locked": [
              "HOME",
              "USER"
            ]
          }
        },
        "gpuDevicesRequest": {
          "sourceOfRule": {
            "scope": "project",
            "projectId": 3
          },
          "required": true,
          "canEdit": true,
          "min": 1,
          "max": 1,
          "step": 1,
          "defaultFrom": {
            "field": "text",
            "factor": 1
          }
        },
        "gpuMemoryLimit": {
          "sourceOfRule": {
            "scope": "project",
            "projectId": 3
          },
          "required": true,
          "canEdit": true,
          "min": "text",
          "max": "text",
          "defaultFrom": {
            "field": "text",
            "factor": 1
          }
        },
        "gpuMemoryRequest": {
          "sourceOfRule": {
            "scope": "project",
            "projectId": 3
          },
          "required": true,
          "canEdit": true,
          "min": "text",
          "max": "text",
          "defaultFrom": {
            "field": "text",
            "factor": 1
          }
        },
        "gpuPortionLimit": {
          "sourceOfRule": {
            "scope": "project",
            "projectId": 3
          },
          "required": true,
          "canEdit": true,
          "min": 1,
          "max": 1,
          "step": 1,
          "defaultFrom": {
            "field": "text",
            "factor": 1
          }
        },
        "gpuPortionRequest": {
          "sourceOfRule": {
            "scope": "project",
            "projectId": 3
          },
          "required": true,
          "canEdit": true,
          "min": 1,
          "max": 1,
          "step": 1,
          "defaultFrom": {
            "field": "text",
            "factor": 1
          }
        },
        "gpuRequestType": {
          "required": true,
          "canEdit": false,
          "blocked": false,
          "options": []
        },
        "largeShmRequest": {
          "sourceOfRule": {
            "scope": "project",
            "projectId": 3
          },
          "required": true,
          "canEdit": true
        }
      },
      "createHomeDir": {
        "sourceOfRule": {
          "scope": "project",
          "projectId": 3
        },
        "required": true,
        "canEdit": true
      },
      "environmentVariables": {
        "instances": {
          "sourceOfRule": {
            "scope": "project",
            "projectId": 3
          },
          "canAdd": true,
          "locked": [
            "HOME",
            "USER"
          ]
        }
      },
      "exposedUrls": {
        "attributes": {
          "container": {
            "sourceOfRule": {
              "scope": "project",
              "projectId": 3
            },
            "required": true,
            "canEdit": true,
            "min": 1,
            "max": 1,
            "step": 1,
            "defaultFrom": {
              "field": "text",
              "factor": 1
            }
          },
          "customUrl": {
            "sourceOfRule": {
              "scope": "project",
              "projectId": 3
            },
            "required": true,
            "canEdit": true
          },
          "url": {
            "required": true,
            "canEdit": false,
            "blocked": false,
            "options": []
          },
          "authorizedUsers": {
            "sourceOfRule": {
              "scope": "project",
              "projectId": 3
            },
            "required": true,
            "options": [],
            "canEdit": true
          },
          "authorizedGroups": {
            "sourceOfRule": {
              "scope": "project",
              "projectId": 3
            },
            "required": true,
            "options": [],
            "canEdit": true
          },
          "toolType": {
            "required": true,
            "canEdit": false,
            "blocked": false,
            "options": []
          },
          "toolName": {
            "required": true,
            "canEdit": false,
            "blocked": false,
            "options": []
          }
        },
        "instances": {
          "sourceOfRule": {
            "scope": "project",
            "projectId": 3
          },
          "canAdd": true,
          "locked": [
            "HOME",
            "USER"
          ]
        }
      },
      "image": {
        "required": true,
        "canEdit": false,
        "blocked": false,
        "options": []
      },
      "imagePullPolicy": {
        "required": true,
        "canEdit": false,
        "blocked": false,
        "options": []
      },
      "imagePullSecrets": {
        "attributes": {
          "name": {
            "required": true,
            "canEdit": false,
            "blocked": false,
            "options": []
          },
          "userCredentials": {
            "sourceOfRule": {
              "scope": "project",
              "projectId": 3
            },
            "required": true,
            "canEdit": true
          }
        },
        "instances": {
          "sourceOfRule": {
            "scope": "project",
            "projectId": 3
          },
          "canAdd": true,
          "locked": [
            "HOME",
            "USER"
          ]
        }
      },
      "labels": {
        "instances": {
          "sourceOfRule": {
            "scope": "project",
            "projectId": 3
          },
          "canAdd": true,
          "locked": [
            "HOME",
            "USER"
          ]
        }
      },
      "nodeAffinityRequired": {
        "sourceOfRule": {
          "scope": "project",
          "projectId": 3
        },
        "required": true,
        "canEdit": true
      },
      "nodePools": {
        "sourceOfRule": {
          "scope": "project",
          "projectId": 3
        },
        "required": true,
        "options": [],
        "canEdit": true
      },
      "nodeType": {
        "required": true,
        "canEdit": false,
        "blocked": false,
        "options": []
      },
      "parallelism": {
        "sourceOfRule": {
          "scope": "project",
          "projectId": 3
        },
        "required": true,
        "canEdit": true,
        "min": 1,
        "max": 1,
        "step": 1,
        "defaultFrom": {
          "field": "text",
          "factor": 1
        }
      },
      "podAffinity": {
        "type": {
          "required": true,
          "canEdit": false,
          "blocked": false,
          "options": []
        },
        "key": {
          "required": true,
          "canEdit": false,
          "blocked": false,
          "options": []
        }
      },
      "ports": {
        "attributes": {
          "container": {
            "sourceOfRule": {
              "scope": "project",
              "projectId": 3
            },
            "required": true,
            "canEdit": true,
            "min": 1,
            "max": 1,
            "step": 1,
            "defaultFrom": {
              "field": "text",
              "factor": 1
            }
          },
          "serviceType": {
            "required": true,
            "canEdit": false,
            "blocked": false,
            "options": []
          },
          "customExternalPort": {
            "sourceOfRule": {
              "scope": "project",
              "projectId": 3
            },
            "required": true,
            "canEdit": true
          },
          "external": {
            "sourceOfRule": {
              "scope": "project",
              "projectId": 3
            },
            "required": true,
            "canEdit": true,
            "min": 1,
            "max": 1,
            "step": 1,
            "defaultFrom": {
              "field": "text",
              "factor": 1
            }
          },
          "toolType": {
            "required": true,
            "canEdit": false,
            "blocked": false,
            "options": []
          },
          "toolName": {
            "required": true,
            "canEdit": false,
            "blocked": false,
            "options": []
          }
        },
        "instances": {
          "sourceOfRule": {
            "scope": "project",
            "projectId": 3
          },
          "canAdd": true,
          "locked": [
            "HOME",
            "USER"
          ]
        }
      },
      "preemptibility": {
        "required": true,
        "canEdit": false,
        "blocked": false,
        "options": []
      },
      "priorityClass": {
        "required": true,
        "canEdit": false,
        "blocked": false,
        "options": []
      },
      "probes": {
        "readiness": {
          "initialDelaySeconds": {
            "sourceOfRule": {
              "scope": "project",
              "projectId": 3
            },
            "required": true,
            "canEdit": true,
            "min": 1,
            "max": 1,
            "step": 1,
            "defaultFrom": {
              "field": "text",
              "factor": 1
            }
          },
          "periodSeconds": {
            "sourceOfRule": {
              "scope": "project",
              "projectId": 3
            },
            "required": true,
            "canEdit": true,
            "min": 1,
            "max": 1,
            "step": 1,
            "defaultFrom": {
              "field": "text",
              "factor": 1
            }
          },
          "timeoutSeconds": {
            "sourceOfRule": {
              "scope": "project",
              "projectId": 3
            },
            "required": true,
            "canEdit": true,
            "min": 1,
            "max": 1,
            "step": 1,
            "defaultFrom": {
              "field": "text",
              "factor": 1
            }
          },
          "successThreshold": {
            "sourceOfRule": {
              "scope": "project",
              "projectId": 3
            },
            "required": true,
            "canEdit": true,
            "min": 1,
            "max": 1,
            "step": 1,
            "defaultFrom": {
              "field": "text",
              "factor": 1
            }
          },
          "failureThreshold": {
            "sourceOfRule": {
              "scope": "project",
              "projectId": 3
            },
            "required": true,
            "canEdit": true,
            "min": 1,
            "max": 1,
            "step": 1,
            "defaultFrom": {
              "field": "text",
              "factor": 1
            }
          },
          "handler": {
            "httpGet": {
              "path": {
                "required": true,
                "canEdit": false,
                "blocked": false,
                "options": []
              },
              "port": {
                "sourceOfRule": {
                  "scope": "project",
                  "projectId": 3
                },
                "required": true,
                "canEdit": true,
                "min": 1,
                "max": 1,
                "step": 1,
                "defaultFrom": {
                  "field": "text",
                  "factor": 1
                }
              },
              "host": {
                "required": true,
                "canEdit": false,
                "blocked": false,
                "options": []
              },
              "scheme": {
                "required": true,
                "canEdit": false,
                "blocked": false,
                "options": []
              }
            }
          }
        }
      },
      "relatedUrls": {
        "attributes": {
          "url": {
            "required": true,
            "canEdit": false,
            "blocked": false,
            "options": []
          },
          "type": {
            "required": true,
            "canEdit": false,
            "blocked": false,
            "options": []
          },
          "name": {
            "required": true,
            "canEdit": false,
            "blocked": false,
            "options": []
          }
        },
        "instances": {
          "sourceOfRule": {
            "scope": "project",
            "projectId": 3
          },
          "canAdd": true,
          "locked": [
            "HOME",
            "USER"
          ]
        }
      },
      "restartPolicy": {
        "required": true,
        "canEdit": false,
        "blocked": false,
        "options": []
      },
      "security": {
        "allowPrivilegeEscalation": {
          "sourceOfRule": {
            "scope": "project",
            "projectId": 3
          },
          "required": true,
          "canEdit": true
        },
        "capabilities": {
          "sourceOfRule": {
            "scope": "project",
            "projectId": 3
          },
          "required": true,
          "options": [],
          "canEdit": true
        },
        "hostIpc": {
          "sourceOfRule": {
            "scope": "project",
            "projectId": 3
          },
          "required": true,
          "canEdit": true
        },
        "hostNetwork": {
          "sourceOfRule": {
            "scope": "project",
            "projectId": 3
          },
          "required": true,
          "canEdit": true
        },
        "readOnlyRootFilesystem": {
          "sourceOfRule": {
            "scope": "project",
            "projectId": 3
          },
          "required": true,
          "canEdit": true
        },
        "runAsGid": {
          "sourceOfRule": {
            "scope": "project",
            "projectId": 3
          },
          "canEdit": true,
          "min": 1,
          "max": 1,
          "step": 1,
          "defaultFrom": {
            "field": "text",
            "factor": 1
          }
        },
        "runAsNonRoot": {
          "sourceOfRule": {
            "scope": "project",
            "projectId": 3
          },
          "required": true,
          "canEdit": true
        },
        "runAsUid": {
          "sourceOfRule": {
            "scope": "project",
            "projectId": 3
          },
          "canEdit": true,
          "min": 1,
          "max": 1,
          "step": 1,
          "defaultFrom": {
            "field": "text",
            "factor": 1
          }
        },
        "seccompProfileType": {
          "required": true,
          "canEdit": false,
          "blocked": false,
          "options": []
        },
        "supplementalGroups": {
          "required": true,
          "canEdit": false,
          "blocked": false,
          "options": []
        },
        "uidGidSource": {
          "required": true,
          "canEdit": false,
          "blocked": false,
          "options": []
        }
      },
      "stdin": {
        "sourceOfRule": {
          "scope": "project",
          "projectId": 3
        },
        "required": true,
        "canEdit": true
      },
      "storage": {
        "configMapVolume": {
          "attributes": {
            "configMap": {
              "required": true,
              "canEdit": false,
              "blocked": false,
              "options": []
            },
            "mountPath": {
              "required": true,
              "canEdit": false,
              "blocked": false,
              "options": []
            },
            "subPath": {
              "required": true,
              "canEdit": false,
              "blocked": false,
              "options": []
            },
            "defaultMode": {
              "required": true,
              "canEdit": false,
              "blocked": false,
              "options": []
            }
          },
          "instances": {
            "sourceOfRule": {
              "scope": "project",
              "projectId": 3
            },
            "canAdd": true,
            "locked": [
              "HOME",
              "USER"
            ]
          }
        },
        "dataVolume": {
          "attributes": {
            "id": {
              "required": true,
              "canEdit": false,
              "blocked": false,
              "options": []
            },
            "mountPath": {
              "required": true,
              "canEdit": false,
              "blocked": false,
              "options": []
            }
          },
          "instances": {
            "sourceOfRule": {
              "scope": "project",
              "projectId": 3
            },
            "canAdd": true,
            "locked": [
              "HOME",
              "USER"
            ]
          }
        },
        "emptyDirVolume": {
          "attributes": {
            "path": {
              "required": true,
              "canEdit": false,
              "blocked": false,
              "options": []
            },
            "medium": {
              "required": true,
              "canEdit": false,
              "blocked": false,
              "options": []
            },
            "sizeLimit": {
              "required": true,
              "canEdit": false,
              "blocked": false,
              "options": []
            }
          },
          "instances": {
            "sourceOfRule": {
              "scope": "project",
              "projectId": 3
            },
            "canAdd": true,
            "locked": [
              "HOME",
              "USER"
            ]
          }
        },
        "git": {
          "attributes": {
            "repository": {
              "required": true,
              "canEdit": false,
              "blocked": false,
              "options": []
            },
            "branch": {
              "required": true,
              "canEdit": false,
              "blocked": false,
              "options": []
            },
            "revision": {
              "required": true,
              "canEdit": false,
              "blocked": false,
              "options": []
            },
            "path": {
              "required": true,
              "canEdit": false,
              "blocked": false,
              "options": []
            }
          },
          "instances": {
            "sourceOfRule": {
              "scope": "project",
              "projectId": 3
            },
            "canAdd": true,
            "locked": [
              "HOME",
              "USER"
            ]
          }
        },
        "hostPath": {
          "attributes": {
            "path": {
              "required": true,
              "canEdit": false,
              "blocked": false,
              "options": []
            },
            "readOnly": {
              "sourceOfRule": {
                "scope": "project",
                "projectId": 3
              },
              "required": true,
              "canEdit": true
            },
            "mountPath": {
              "required": true,
              "canEdit": false,
              "blocked": false,
              "options": []
            },
            "mountPropagation": {
              "required": true,
              "canEdit": false,
              "blocked": false,
              "options": []
            }
          },
          "instances": {
            "sourceOfRule": {
              "scope": "project",
              "projectId": 3
            },
            "canAdd": true,
            "locked": [
              "HOME",
              "USER"
            ]
          }
        },
        "nfs": {
          "attributes": {
            "path": {
              "required": true,
              "canEdit": false,
              "blocked": false,
              "options": []
            },
            "readOnly": {
              "sourceOfRule": {
                "scope": "project",
                "projectId": 3
              },
              "required": true,
              "canEdit": true
            },
            "server": {
              "required": true,
              "canEdit": false,
              "blocked": false,
              "options": []
            },
            "mountPath": {
              "required": true,
              "canEdit": false,
              "blocked": false,
              "options": []
            }
          },
          "instances": {
            "sourceOfRule": {
              "scope": "project",
              "projectId": 3
            },
            "canAdd": true,
            "locked": [
              "HOME",
              "USER"
            ]
          }
        },
        "pvc": {
          "attributes": {
            "claimName": {
              "required": true,
              "canEdit": false,
              "blocked": false,
              "options": []
            },
            "path": {
              "required": true,
              "canEdit": false,
              "blocked": false,
              "options": []
            },
            "readOnly": {
              "sourceOfRule": {
                "scope": "project",
                "projectId": 3
              },
              "required": true,
              "canEdit": true
            },
            "claimInfo": {
              "size": {
                "required": true,
                "canEdit": false,
                "blocked": false,
                "options": []
              },
              "storageClass": {
                "required": true,
                "canEdit": false,
                "blocked": false,
                "options": []
              },
              "accessModes": {
                "readWriteOnce": {
                  "sourceOfRule": {
                    "scope": "project",
                    "projectId": 3
                  },
                  "required": true,
                  "canEdit": true
                },
                "readOnlyMany": {
                  "sourceOfRule": {
                    "scope": "project",
                    "projectId": 3
                  },
                  "required": true,
                  "canEdit": true
                },
                "readWriteMany": {
                  "sourceOfRule": {
                    "scope": "project",
                    "projectId": 3
                  },
                  "required": true,
                  "canEdit": true
                }
              }
            }
          },
          "instances": {
            "sourceOfRule": {
              "scope": "project",
              "projectId": 3
            },
            "canAdd": true,
            "locked": [
              "HOME",
              "USER"
            ]
          }
        },
        "s3": {
          "attributes": {
            "bucket": {
              "required": true,
              "canEdit": false,
              "blocked": false,
              "options": []
            },
            "path": {
              "required": true,
              "canEdit": false,
              "blocked": false,
              "options": []
            },
            "url": {
              "required": true,
              "canEdit": false,
              "blocked": false,
              "options": []
            }
          },
          "instances": {
            "sourceOfRule": {
              "scope": "project",
              "projectId": 3
            },
            "canAdd": true,
            "locked": [
              "HOME",
              "USER"
            ]
          }
        },
        "secretVolume": {
          "attributes": {
            "secret": {
              "required": true,
              "canEdit": false,
              "blocked": false,
              "options": []
            },
            "mountPath": {
              "required": true,
              "canEdit": false,
              "blocked": false,
              "options": []
            },
            "defaultMode": {
              "required": true,
              "canEdit": false,
              "blocked": false,
              "options": []
            }
          },
          "instances": {
            "sourceOfRule": {
              "scope": "project",
              "projectId": 3
            },
            "canAdd": true,
            "locked": [
              "HOME",
              "USER"
            ]
          }
        }
      },
      "terminateAfterPreemption": {
        "sourceOfRule": {
          "scope": "project",
          "projectId": 3
        },
        "required": true,
        "canEdit": true
      },
      "terminationGracePeriodSeconds": {
        "sourceOfRule": {
          "scope": "project",
          "projectId": 3
        },
        "required": true,
        "canEdit": true,
        "min": 1,
        "max": 1,
        "step": 1,
        "defaultFrom": {
          "field": "text",
          "factor": 1
        }
      },
      "tolerations": {
        "attributes": {
          "operator": {
            "required": true,
            "canEdit": false,
            "blocked": false,
            "options": []
          },
          "key": {
            "required": true,
            "canEdit": false,
            "blocked": false,
            "options": []
          },
          "value": {
            "required": true,
            "canEdit": false,
            "blocked": false,
            "options": []
          },
          "effect": {
            "required": true,
            "canEdit": false,
            "blocked": false,
            "options": []
          },
          "seconds": {
            "sourceOfRule": {
              "scope": "project",
              "projectId": 3
            },
            "required": true,
            "canEdit": true,
            "min": 1,
            "max": 1,
            "step": 1,
            "defaultFrom": {
              "field": "text",
              "factor": 1
            }
          },
          "exclude": {
            "sourceOfRule": {
              "scope": "project",
              "projectId": 3
            },
            "required": true,
            "canEdit": true
          }
        },
        "instances": {
          "sourceOfRule": {
            "scope": "project",
            "projectId": 3
          },
          "canAdd": true,
          "locked": [
            "HOME",
            "USER"
          ]
        }
      },
      "tty": {
        "sourceOfRule": {
          "scope": "project",
          "projectId": 3
        },
        "required": true,
        "canEdit": true
      },
      "workingDir": {
        "required": true,
        "canEdit": false,
        "blocked": false,
        "options": []
      }
    },
    "imposedAssets": [
      "123e4567-e89b-12d3-a456-426614174000"
    ],
    "status": {
      "validation": {
        "errorMessage": "text"
      }
    }
  },
  "effectiveUpdatedAt": "2026-01-01T00:00:00.000Z"
}

Delete a training policy.

delete

Use to delete a training policy for a given organizational unit.

Authorizations
AuthorizationstringRequired

Bearer authentication

Query parameters
scopestring · enumRequired

The scope that the policy relates to.

Possible values:
departmentIdstringOptional

Filter using the department id.

Example: 1
projectIdstringOptional

project id to filter by

Example: 1
clusterIdstring · uuidOptional

Filter using the Universally Unique Identifier (UUID) of the cluster.

Example: d73a738f-fab3-430a-8fa3-5241493d7128
approveClusterDeletionbooleanOptional

Required when modifying or deleting a policy if the tenant includes one or more clusters running version 2.20 or earlier. In such cases, the platform must delete the policy from the affected clusters. This flag indicates that the administrator approves this deletion.

Responses
204

The policy was deleted successfully.

No content

delete/api/v2/policy/trainings
DELETE /api/v2/policy/trainings?scope=tenant HTTP/1.1
Host: app.run.ai
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*

No content

Update a training policy.

patch

Use to apply changes to a training policy for a given organizational unit.

Authorizations
AuthorizationstringRequired

Bearer authentication

Query parameters
validateOnlybooleanOptional

Validate the given policy payload without applying it

approveClusterDeletionbooleanOptional

Required when modifying or deleting a policy if the tenant includes one or more clusters running version 2.20 or earlier. In such cases, the platform must delete the policy from the affected clusters. This flag indicates that the administrator approves this deletion.

Body
resetstring[]Optional

set of fields in jsonpath format that is requested to clear their policy (default and rules)

Example: ["master.security.runAsGpu","worker.compute.gpu"]
Responses
200

Policy applied.

application/json
effectiveUpdatedAtstring · date-time · min: 1Optional

The time at which an event occurred. e.g. the time an effective policy has been updated

patch/api/v2/policy/trainings
PATCH /api/v2/policy/trainings HTTP/1.1
Host: app.run.ai
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 21687

{
  "meta": {
    "scope": "system",
    "projectId": 1,
    "departmentId": 2,
    "clusterId": "71f69d83-ba66-4822-adf5-55ce55efd210",
    "name": "my-policy"
  },
  "policy": {
    "defaults": {
      "annotations": {
        "instances": [
          {
            "name": "billing",
            "value": "my-billing-unit",
            "exclude": false
          }
        ]
      },
      "args": "-x my-script.py",
      "autoDeletionTimeAfterCompletionSeconds": 15,
      "backoffLimit": 3,
      "category": "text",
      "command": "python",
      "completions": 1,
      "compute": {
        "cpuCoreLimit": 2,
        "cpuCoreRequest": 0.5,
        "cpuMemoryLimit": "30M",
        "cpuMemoryRequest": "20M",
        "extendedResources": {
          "attributes": {
            "resource": "hardware-vendor.example/foo",
            "quantity": 2,
            "exclude": false
          },
          "instances": [
            {
              "resource": "hardware-vendor.example/foo",
              "quantity": 2,
              "exclude": false
            }
          ]
        },
        "gpuDevicesRequest": 1,
        "gpuMemoryLimit": "10M",
        "gpuMemoryRequest": "10M",
        "gpuPortionLimit": 0.5,
        "gpuPortionRequest": 0.5,
        "gpuRequestType": "portion",
        "largeShmRequest": false
      },
      "createHomeDir": true,
      "environmentVariables": {
        "instances": [
          {
            "name": "HOME",
            "value": "/home/my-folder",
            "secret": {
              "name": "postgress_secret",
              "key": "POSTGRES_PASSWORD"
            },
            "configMap": {
              "name": "my-config-map",
              "key": "MY_POSTGRES_SCHEMA"
            },
            "podFieldRef": {
              "path": "metadata.name"
            },
            "userCredential": {
              "name": "my_postgres_user_and_password",
              "key": "POSTGRES_PASSWORD"
            },
            "exclude": false,
            "description": "Home directory of the user."
          }
        ]
      },
      "exposedUrls": {
        "attributes": {
          "container": 8080,
          "url": "https://my-url.com",
          "authorizationType": "authenticatedUsers",
          "authorizedUsers": [
            "user-a",
            "user-b"
          ],
          "authorizedGroups": [
            "group-a",
            "group-b"
          ],
          "toolType": "jupyter",
          "toolName": "my-pytorch",
          "name": "url-instance-a",
          "exclude": false
        },
        "instances": [
          {
            "container": 8080,
            "url": "https://my-url.com",
            "authorizationType": "authenticatedUsers",
            "authorizedUsers": [
              "user-a",
              "user-b"
            ],
            "authorizedGroups": [
              "group-a",
              "group-b"
            ],
            "toolType": "jupyter",
            "toolName": "my-pytorch",
            "name": "url-instance-a",
            "exclude": false
          }
        ]
      },
      "image": "python:3.8",
      "imagePullPolicy": "Always",
      "imagePullSecrets": {
        "instances": [
          {
            "name": "text",
            "userCredential": true,
            "exclude": false
          }
        ]
      },
      "labels": {
        "instances": [
          {
            "name": "stage",
            "value": "initial-research",
            "exclude": false
          }
        ]
      },
      "nodeAffinityRequired": {
        "nodeSelectorTerms": [
          {
            "matchExpressions": [
              {
                "key": "text",
                "operator": "In",
                "values": [
                  "text"
                ]
              }
            ]
          }
        ]
      },
      "nodePools": [
        "my-node-pool-a",
        "my-node-pool-b"
      ],
      "nodeType": "my-node-type",
      "parallelism": 1,
      "podAffinity": {
        "type": "Required",
        "key": "text"
      },
      "ports": {
        "attributes": {
          "container": 8080,
          "serviceType": "LoadBalancer",
          "external": 30080,
          "toolType": "pytorch",
          "toolName": "my-pytorch",
          "name": "port-instance-a",
          "exclude": false
        },
        "instances": [
          {
            "container": 8080,
            "serviceType": "LoadBalancer",
            "external": 30080,
            "toolType": "pytorch",
            "toolName": "my-pytorch",
            "name": "port-instance-a",
            "exclude": false
          }
        ]
      },
      "preemptibility": "preemptible",
      "priorityClass": "text",
      "probes": {
        "readiness": {
          "initialDelaySeconds": 1,
          "periodSeconds": 1,
          "timeoutSeconds": 1,
          "successThreshold": 1,
          "failureThreshold": 1,
          "handler": {
            "httpGet": {
              "path": "/",
              "port": 1,
              "host": "example.com",
              "scheme": "HTTP"
            }
          }
        }
      },
      "relatedUrls": {
        "attributes": {
          "url": "https://my-url.com",
          "type": "wandb",
          "name": "url-instance-a",
          "exclude": false
        },
        "instances": [
          {
            "url": "https://my-url.com",
            "type": "wandb",
            "name": "url-instance-a",
            "exclude": false
          }
        ]
      },
      "restartPolicy": "Always",
      "security": {
        "allowPrivilegeEscalation": false,
        "capabilities": [
          "CHOWN",
          "KILL"
        ],
        "hostIpc": false,
        "hostNetwork": false,
        "readOnlyRootFilesystem": false,
        "runAsGid": 30,
        "runAsNonRoot": true,
        "runAsUid": 500,
        "seccompProfileType": "RuntimeDefault",
        "supplementalGroups": "2,3,5,8",
        "uidGidSource": "fromTheImage"
      },
      "stdin": true,
      "storage": {
        "configMapVolume": {
          "attributes": {
            "name": "storage-instance-a",
            "configMap": "text",
            "mountPath": "text",
            "subPath": "text",
            "defaultMode": "0644",
            "exclude": false
          },
          "instances": [
            {
              "name": "storage-instance-a",
              "configMap": "text",
              "mountPath": "text",
              "subPath": "text",
              "defaultMode": "0644",
              "exclude": false
            }
          ]
        },
        "dataVolume": {
          "attributes": {
            "id": "123e4567-e89b-12d3-a456-426614174000",
            "mountPath": "/mnt/data",
            "exclude": false
          },
          "instances": [
            {
              "id": "123e4567-e89b-12d3-a456-426614174000",
              "mountPath": "/mnt/data",
              "exclude": false
            }
          ]
        },
        "emptyDirVolume": {
          "attributes": {
            "name": "storage-instance-a",
            "path": "/mnt/emptydir",
            "medium": "text",
            "sizeLimit": "1G",
            "exclude": false
          },
          "instances": [
            {
              "name": "storage-instance-a",
              "path": "/mnt/emptydir",
              "medium": "text",
              "sizeLimit": "1G",
              "exclude": false
            }
          ]
        },
        "git": {
          "attributes": {
            "name": "storage-instance-a",
            "repository": "https://github.com/my-git/my-repo",
            "branch": "main",
            "revision": "text",
            "path": "/container/my-repository",
            "passwordSecret": "my-password-secret",
            "secretKeyOfUser": "User",
            "secretKeyOfPassword": "Password",
            "exclude": false,
            "secretRef": {
              "name": "my-password-secret",
              "authenticationMethod": "password",
              "secretKeyOfUser": "User",
              "secretKeyOfPassword": "Password"
            }
          },
          "instances": [
            {
              "name": "storage-instance-a",
              "repository": "https://github.com/my-git/my-repo",
              "branch": "main",
              "revision": "text",
              "path": "/container/my-repository",
              "passwordSecret": "my-password-secret",
              "secretKeyOfUser": "User",
              "secretKeyOfPassword": "Password",
              "exclude": false,
              "secretRef": {
                "name": "my-password-secret",
                "authenticationMethod": "password",
                "secretKeyOfUser": "User",
                "secretKeyOfPassword": "Password"
              }
            }
          ]
        },
        "hostPath": {
          "attributes": {
            "name": "storage-instance-a",
            "path": "/container/directory",
            "readOnly": true,
            "mountPath": "/local/directory",
            "mountPropagation": "None",
            "exclude": false
          },
          "instances": [
            {
              "name": "storage-instance-a",
              "path": "/container/directory",
              "readOnly": true,
              "mountPath": "/local/directory",
              "mountPropagation": "None",
              "exclude": false
            }
          ]
        },
        "nfs": {
          "attributes": {
            "name": "storage-instance-a",
            "path": "/container/nfs",
            "readOnly": true,
            "server": "my.nfs.com",
            "mountPath": "/local/nfs",
            "exclude": false
          },
          "instances": [
            {
              "name": "storage-instance-a",
              "path": "/container/nfs",
              "readOnly": true,
              "server": "my.nfs.com",
              "mountPath": "/local/nfs",
              "exclude": false
            }
          ]
        },
        "pvc": {
          "attributes": {
            "name": "storage-instance-a",
            "path": "/container/my-claim",
            "existingPvc": false,
            "claimName": "my-claim",
            "readOnly": false,
            "ephemeral": false,
            "claimInfo": {
              "size": "1G",
              "storageClass": "my-storage-class",
              "accessModes": {
                "readWriteOnce": true,
                "readOnlyMany": false,
                "readWriteMany": false
              },
              "volumeMode": "Filesystem",
              "addedAttrValues": [
                {
                  "key": "dnsname",
                  "value": "my.dns.com"
                }
              ]
            },
            "dataSharing": false,
            "exclude": false
          },
          "instances": [
            {
              "name": "storage-instance-a",
              "path": "/container/my-claim",
              "existingPvc": false,
              "claimName": "my-claim",
              "readOnly": false,
              "ephemeral": false,
              "claimInfo": {
                "size": "1G",
                "storageClass": "my-storage-class",
                "accessModes": {
                  "readWriteOnce": true,
                  "readOnlyMany": false,
                  "readWriteMany": false
                },
                "volumeMode": "Filesystem",
                "addedAttrValues": [
                  {
                    "key": "dnsname",
                    "value": "my.dns.com"
                  }
                ]
              },
              "dataSharing": false,
              "exclude": false
            }
          ]
        },
        "s3": {
          "attributes": {
            "name": "storage-instance-a",
            "bucket": "my-bucket",
            "path": "/container/my-bucket",
            "url": "https://s3.amazonaws.com",
            "accessKeySecret": "my-access-key-secret",
            "secretKeyOfAccessKeyId": "AccessKeyId",
            "secretKeyOfSecretKey": "SecretKey",
            "exclude": false
          },
          "instances": [
            {
              "name": "storage-instance-a",
              "bucket": "my-bucket",
              "path": "/container/my-bucket",
              "url": "https://s3.amazonaws.com",
              "accessKeySecret": "my-access-key-secret",
              "secretKeyOfAccessKeyId": "AccessKeyId",
              "secretKeyOfSecretKey": "SecretKey",
              "exclude": false
            }
          ]
        },
        "secretVolume": {
          "attributes": {
            "name": "storage-instance-a",
            "mountPath": "text",
            "defaultMode": "0644",
            "secret": "text",
            "exclude": false
          },
          "instances": [
            {
              "name": "storage-instance-a",
              "mountPath": "text",
              "defaultMode": "0644",
              "secret": "text",
              "exclude": false
            }
          ]
        }
      },
      "terminateAfterPreemption": false,
      "terminationGracePeriodSeconds": 20,
      "tolerations": {
        "attributes": {
          "name": "text",
          "operator": "Equal",
          "key": "text",
          "value": "text",
          "effect": "NoSchedule",
          "seconds": 1,
          "exclude": false
        },
        "instances": [
          {
            "name": "text",
            "operator": "Equal",
            "key": "text",
            "value": "text",
            "effect": "NoSchedule",
            "seconds": 1,
            "exclude": false
          }
        ]
      },
      "tty": true,
      "workingDir": "/home/myfolder"
    },
    "rules": {
      "annotations": {
        "instances": {
          "sourceOfRule": {
            "scope": "project",
            "projectId": 3
          },
          "canAdd": true,
          "locked": [
            "HOME",
            "USER"
          ]
        }
      },
      "args": {
        "required": true,
        "canEdit": false,
        "blocked": false,
        "options": []
      },
      "autoDeletionTimeAfterCompletionSeconds": {
        "sourceOfRule": {
          "scope": "project",
          "projectId": 3
        },
        "required": true,
        "canEdit": true,
        "min": 1,
        "max": 1,
        "step": 1,
        "defaultFrom": {
          "field": "text",
          "factor": 1
        }
      },
      "backoffLimit": {
        "sourceOfRule": {
          "scope": "project",
          "projectId": 3
        },
        "required": true,
        "canEdit": true,
        "min": 1,
        "max": 1,
        "step": 1,
        "defaultFrom": {
          "field": "text",
          "factor": 1
        }
      },
      "category": {
        "required": true,
        "canEdit": false,
        "blocked": false,
        "options": []
      },
      "command": {
        "required": true,
        "canEdit": false,
        "blocked": false,
        "options": []
      },
      "completions": {
        "sourceOfRule": {
          "scope": "project",
          "projectId": 3
        },
        "required": true,
        "canEdit": true,
        "min": 1,
        "max": 1,
        "step": 1,
        "defaultFrom": {
          "field": "text",
          "factor": 1
        }
      },
      "compute": {
        "cpuCoreLimit": {
          "sourceOfRule": {
            "scope": "project",
            "projectId": 3
          },
          "required": true,
          "canEdit": true,
          "min": 1,
          "max": 1,
          "step": 1,
          "defaultFrom": {
            "field": "text",
            "factor": 1
          }
        },
        "cpuCoreRequest": {
          "sourceOfRule": {
            "scope": "project",
            "projectId": 3
          },
          "required": true,
          "canEdit": true,
          "min": 1,
          "max": 1,
          "step": 1,
          "defaultFrom": {
            "field": "text",
            "factor": 1
          }
        },
        "cpuMemoryLimit": {
          "sourceOfRule": {
            "scope": "project",
            "projectId": 3
          },
          "required": true,
          "canEdit": true,
          "min": "text",
          "max": "text",
          "defaultFrom": {
            "field": "text",
            "factor": 1
          }
        },
        "cpuMemoryRequest": {
          "sourceOfRule": {
            "scope": "project",
            "projectId": 3
          },
          "required": true,
          "canEdit": true,
          "min": "text",
          "max": "text",
          "defaultFrom": {
            "field": "text",
            "factor": 1
          }
        },
        "extendedResources": {
          "attributes": {
            "quantity": {
              "required": true,
              "canEdit": false,
              "blocked": false,
              "options": []
            }
          },
          "instances": {
            "sourceOfRule": {
              "scope": "project",
              "projectId": 3
            },
            "canAdd": true,
            "locked": [
              "HOME",
              "USER"
            ]
          }
        },
        "gpuDevicesRequest": {
          "sourceOfRule": {
            "scope": "project",
            "projectId": 3
          },
          "required": true,
          "canEdit": true,
          "min": 1,
          "max": 1,
          "step": 1,
          "defaultFrom": {
            "field": "text",
            "factor": 1
          }
        },
        "gpuMemoryLimit": {
          "sourceOfRule": {
            "scope": "project",
            "projectId": 3
          },
          "required": true,
          "canEdit": true,
          "min": "text",
          "max": "text",
          "defaultFrom": {
            "field": "text",
            "factor": 1
          }
        },
        "gpuMemoryRequest": {
          "sourceOfRule": {
            "scope": "project",
            "projectId": 3
          },
          "required": true,
          "canEdit": true,
          "min": "text",
          "max": "text",
          "defaultFrom": {
            "field": "text",
            "factor": 1
          }
        },
        "gpuPortionLimit": {
          "sourceOfRule": {
            "scope": "project",
            "projectId": 3
          },
          "required": true,
          "canEdit": true,
          "min": 1,
          "max": 1,
          "step": 1,
          "defaultFrom": {
            "field": "text",
            "factor": 1
          }
        },
        "gpuPortionRequest": {
          "sourceOfRule": {
            "scope": "project",
            "projectId": 3
          },
          "required": true,
          "canEdit": true,
          "min": 1,
          "max": 1,
          "step": 1,
          "defaultFrom": {
            "field": "text",
            "factor": 1
          }
        },
        "gpuRequestType": {
          "required": true,
          "canEdit": false,
          "blocked": false,
          "options": []
        },
        "largeShmRequest": {
          "sourceOfRule": {
            "scope": "project",
            "projectId": 3
          },
          "required": true,
          "canEdit": true
        }
      },
      "createHomeDir": {
        "sourceOfRule": {
          "scope": "project",
          "projectId": 3
        },
        "required": true,
        "canEdit": true
      },
      "environmentVariables": {
        "instances": {
          "sourceOfRule": {
            "scope": "project",
            "projectId": 3
          },
          "canAdd": true,
          "locked": [
            "HOME",
            "USER"
          ]
        }
      },
      "exposedUrls": {
        "attributes": {
          "container": {
            "sourceOfRule": {
              "scope": "project",
              "projectId": 3
            },
            "required": true,
            "canEdit": true,
            "min": 1,
            "max": 1,
            "step": 1,
            "defaultFrom": {
              "field": "text",
              "factor": 1
            }
          },
          "customUrl": {
            "sourceOfRule": {
              "scope": "project",
              "projectId": 3
            },
            "required": true,
            "canEdit": true
          },
          "url": {
            "required": true,
            "canEdit": false,
            "blocked": false,
            "options": []
          },
          "authorizedUsers": {
            "sourceOfRule": {
              "scope": "project",
              "projectId": 3
            },
            "required": true,
            "options": [],
            "canEdit": true
          },
          "authorizedGroups": {
            "sourceOfRule": {
              "scope": "project",
              "projectId": 3
            },
            "required": true,
            "options": [],
            "canEdit": true
          },
          "toolType": {
            "required": true,
            "canEdit": false,
            "blocked": false,
            "options": []
          },
          "toolName": {
            "required": true,
            "canEdit": false,
            "blocked": false,
            "options": []
          }
        },
        "instances": {
          "sourceOfRule": {
            "scope": "project",
            "projectId": 3
          },
          "canAdd": true,
          "locked": [
            "HOME",
            "USER"
          ]
        }
      },
      "image": {
        "required": true,
        "canEdit": false,
        "blocked": false,
        "options": []
      },
      "imagePullPolicy": {
        "required": true,
        "canEdit": false,
        "blocked": false,
        "options": []
      },
      "imagePullSecrets": {
        "attributes": {
          "name": {
            "required": true,
            "canEdit": false,
            "blocked": false,
            "options": []
          },
          "userCredentials": {
            "sourceOfRule": {
              "scope": "project",
              "projectId": 3
            },
            "required": true,
            "canEdit": true
          }
        },
        "instances": {
          "sourceOfRule": {
            "scope": "project",
            "projectId": 3
          },
          "canAdd": true,
          "locked": [
            "HOME",
            "USER"
          ]
        }
      },
      "labels": {
        "instances": {
          "sourceOfRule": {
            "scope": "project",
            "projectId": 3
          },
          "canAdd": true,
          "locked": [
            "HOME",
            "USER"
          ]
        }
      },
      "nodeAffinityRequired": {
        "sourceOfRule": {
          "scope": "project",
          "projectId": 3
        },
        "required": true,
        "canEdit": true
      },
      "nodePools": {
        "sourceOfRule": {
          "scope": "project",
          "projectId": 3
        },
        "required": true,
        "options": [],
        "canEdit": true
      },
      "nodeType": {
        "required": true,
        "canEdit": false,
        "blocked": false,
        "options": []
      },
      "parallelism": {
        "sourceOfRule": {
          "scope": "project",
          "projectId": 3
        },
        "required": true,
        "canEdit": true,
        "min": 1,
        "max": 1,
        "step": 1,
        "defaultFrom": {
          "field": "text",
          "factor": 1
        }
      },
      "podAffinity": {
        "type": {
          "required": true,
          "canEdit": false,
          "blocked": false,
          "options": []
        },
        "key": {
          "required": true,
          "canEdit": false,
          "blocked": false,
          "options": []
        }
      },
      "ports": {
        "attributes": {
          "container": {
            "sourceOfRule": {
              "scope": "project",
              "projectId": 3
            },
            "required": true,
            "canEdit": true,
            "min": 1,
            "max": 1,
            "step": 1,
            "defaultFrom": {
              "field": "text",
              "factor": 1
            }
          },
          "serviceType": {
            "required": true,
            "canEdit": false,
            "blocked": false,
            "options": []
          },
          "customExternalPort": {
            "sourceOfRule": {
              "scope": "project",
              "projectId": 3
            },
            "required": true,
            "canEdit": true
          },
          "external": {
            "sourceOfRule": {
              "scope": "project",
              "projectId": 3
            },
            "required": true,
            "canEdit": true,
            "min": 1,
            "max": 1,
            "step": 1,
            "defaultFrom": {
              "field": "text",
              "factor": 1
            }
          },
          "toolType": {
            "required": true,
            "canEdit": false,
            "blocked": false,
            "options": []
          },
          "toolName": {
            "required": true,
            "canEdit": false,
            "blocked": false,
            "options": []
          }
        },
        "instances": {
          "sourceOfRule": {
            "scope": "project",
            "projectId": 3
          },
          "canAdd": true,
          "locked": [
            "HOME",
            "USER"
          ]
        }
      },
      "preemptibility": {
        "required": true,
        "canEdit": false,
        "blocked": false,
        "options": []
      },
      "priorityClass": {
        "required": true,
        "canEdit": false,
        "blocked": false,
        "options": []
      },
      "probes": {
        "readiness": {
          "initialDelaySeconds": {
            "sourceOfRule": {
              "scope": "project",
              "projectId": 3
            },
            "required": true,
            "canEdit": true,
            "min": 1,
            "max": 1,
            "step": 1,
            "defaultFrom": {
              "field": "text",
              "factor": 1
            }
          },
          "periodSeconds": {
            "sourceOfRule": {
              "scope": "project",
              "projectId": 3
            },
            "required": true,
            "canEdit": true,
            "min": 1,
            "max": 1,
            "step": 1,
            "defaultFrom": {
              "field": "text",
              "factor": 1
            }
          },
          "timeoutSeconds": {
            "sourceOfRule": {
              "scope": "project",
              "projectId": 3
            },
            "required": true,
            "canEdit": true,
            "min": 1,
            "max": 1,
            "step": 1,
            "defaultFrom": {
              "field": "text",
              "factor": 1
            }
          },
          "successThreshold": {
            "sourceOfRule": {
              "scope": "project",
              "projectId": 3
            },
            "required": true,
            "canEdit": true,
            "min": 1,
            "max": 1,
            "step": 1,
            "defaultFrom": {
              "field": "text",
              "factor": 1
            }
          },
          "failureThreshold": {
            "sourceOfRule": {
              "scope": "project",
              "projectId": 3
            },
            "required": true,
            "canEdit": true,
            "min": 1,
            "max": 1,
            "step": 1,
            "defaultFrom": {
              "field": "text",
              "factor": 1
            }
          },
          "handler": {
            "httpGet": {
              "path": {
                "required": true,
                "canEdit": false,
                "blocked": false,
                "options": []
              },
              "port": {
                "sourceOfRule": {
                  "scope": "project",
                  "projectId": 3
                },
                "required": true,
                "canEdit": true,
                "min": 1,
                "max": 1,
                "step": 1,
                "defaultFrom": {
                  "field": "text",
                  "factor": 1
                }
              },
              "host": {
                "required": true,
                "canEdit": false,
                "blocked": false,
                "options": []
              },
              "scheme": {
                "required": true,
                "canEdit": false,
                "blocked": false,
                "options": []
              }
            }
          }
        }
      },
      "relatedUrls": {
        "attributes": {
          "url": {
            "required": true,
            "canEdit": false,
            "blocked": false,
            "options": []
          },
          "type": {
            "required": true,
            "canEdit": false,
            "blocked": false,
            "options": []
          },
          "name": {
            "required": true,
            "canEdit": false,
            "blocked": false,
            "options": []
          }
        },
        "instances": {
          "sourceOfRule": {
            "scope": "project",
            "projectId": 3
          },
          "canAdd": true,
          "locked": [
            "HOME",
            "USER"
          ]
        }
      },
      "restartPolicy": {
        "required": true,
        "canEdit": false,
        "blocked": false,
        "options": []
      },
      "security": {
        "allowPrivilegeEscalation": {
          "sourceOfRule": {
            "scope": "project",
            "projectId": 3
          },
          "required": true,
          "canEdit": true
        },
        "capabilities": {
          "sourceOfRule": {
            "scope": "project",
            "projectId": 3
          },
          "required": true,
          "options": [],
          "canEdit": true
        },
        "hostIpc": {
          "sourceOfRule": {
            "scope": "project",
            "projectId": 3
          },
          "required": true,
          "canEdit": true
        },
        "hostNetwork": {
          "sourceOfRule": {
            "scope": "project",
            "projectId": 3
          },
          "required": true,
          "canEdit": true
        },
        "readOnlyRootFilesystem": {
          "sourceOfRule": {
            "scope": "project",
            "projectId": 3
          },
          "required": true,
          "canEdit": true
        },
        "runAsGid": {
          "sourceOfRule": {
            "scope": "project",
            "projectId": 3
          },
          "canEdit": true,
          "min": 1,
          "max": 1,
          "step": 1,
          "defaultFrom": {
            "field": "text",
            "factor": 1
          }
        },
        "runAsNonRoot": {
          "sourceOfRule": {
            "scope": "project",
            "projectId": 3
          },
          "required": true,
          "canEdit": true
        },
        "runAsUid": {
          "sourceOfRule": {
            "scope": "project",
            "projectId": 3
          },
          "canEdit": true,
          "min": 1,
          "max": 1,
          "step": 1,
          "defaultFrom": {
            "field": "text",
            "factor": 1
          }
        },
        "seccompProfileType": {
          "required": true,
          "canEdit": false,
          "blocked": false,
          "options": []
        },
        "supplementalGroups": {
          "required": true,
          "canEdit": false,
          "blocked": false,
          "options": []
        },
        "uidGidSource": {
          "required": true,
          "canEdit": false,
          "blocked": false,
          "options": []
        }
      },
      "stdin": {
        "sourceOfRule": {
          "scope": "project",
          "projectId": 3
        },
        "required": true,
        "canEdit": true
      },
      "storage": {
        "configMapVolume": {
          "attributes": {
            "configMap": {
              "required": true,
              "canEdit": false,
              "blocked": false,
              "options": []
            },
            "mountPath": {
              "required": true,
              "canEdit": false,
              "blocked": false,
              "options": []
            },
            "subPath": {
              "required": true,
              "canEdit": false,
              "blocked": false,
              "options": []
            },
            "defaultMode": {
              "required": true,
              "canEdit": false,
              "blocked": false,
              "options": []
            }
          },
          "instances": {
            "sourceOfRule": {
              "scope": "project",
              "projectId": 3
            },
            "canAdd": true,
            "locked": [
              "HOME",
              "USER"
            ]
          }
        },
        "dataVolume": {
          "attributes": {
            "id": {
              "required": true,
              "canEdit": false,
              "blocked": false,
              "options": []
            },
            "mountPath": {
              "required": true,
              "canEdit": false,
              "blocked": false,
              "options": []
            }
          },
          "instances": {
            "sourceOfRule": {
              "scope": "project",
              "projectId": 3
            },
            "canAdd": true,
            "locked": [
              "HOME",
              "USER"
            ]
          }
        },
        "emptyDirVolume": {
          "attributes": {
            "path": {
              "required": true,
              "canEdit": false,
              "blocked": false,
              "options": []
            },
            "medium": {
              "required": true,
              "canEdit": false,
              "blocked": false,
              "options": []
            },
            "sizeLimit": {
              "required": true,
              "canEdit": false,
              "blocked": false,
              "options": []
            }
          },
          "instances": {
            "sourceOfRule": {
              "scope": "project",
              "projectId": 3
            },
            "canAdd": true,
            "locked": [
              "HOME",
              "USER"
            ]
          }
        },
        "git": {
          "attributes": {
            "repository": {
              "required": true,
              "canEdit": false,
              "blocked": false,
              "options": []
            },
            "branch": {
              "required": true,
              "canEdit": false,
              "blocked": false,
              "options": []
            },
            "revision": {
              "required": true,
              "canEdit": false,
              "blocked": false,
              "options": []
            },
            "path": {
              "required": true,
              "canEdit": false,
              "blocked": false,
              "options": []
            }
          },
          "instances": {
            "sourceOfRule": {
              "scope": "project",
              "projectId": 3
            },
            "canAdd": true,
            "locked": [
              "HOME",
              "USER"
            ]
          }
        },
        "hostPath": {
          "attributes": {
            "path": {
              "required": true,
              "canEdit": false,
              "blocked": false,
              "options": []
            },
            "readOnly": {
              "sourceOfRule": {
                "scope": "project",
                "projectId": 3
              },
              "required": true,
              "canEdit": true
            },
            "mountPath": {
              "required": true,
              "canEdit": false,
              "blocked": false,
              "options": []
            },
            "mountPropagation": {
              "required": true,
              "canEdit": false,
              "blocked": false,
              "options": []
            }
          },
          "instances": {
            "sourceOfRule": {
              "scope": "project",
              "projectId": 3
            },
            "canAdd": true,
            "locked": [
              "HOME",
              "USER"
            ]
          }
        },
        "nfs": {
          "attributes": {
            "path": {
              "required": true,
              "canEdit": false,
              "blocked": false,
              "options": []
            },
            "readOnly": {
              "sourceOfRule": {
                "scope": "project",
                "projectId": 3
              },
              "required": true,
              "canEdit": true
            },
            "server": {
              "required": true,
              "canEdit": false,
              "blocked": false,
              "options": []
            },
            "mountPath": {
              "required": true,
              "canEdit": false,
              "blocked": false,
              "options": []
            }
          },
          "instances": {
            "sourceOfRule": {
              "scope": "project",
              "projectId": 3
            },
            "canAdd": true,
            "locked": [
              "HOME",
              "USER"
            ]
          }
        },
        "pvc": {
          "attributes": {
            "claimName": {
              "required": true,
              "canEdit": false,
              "blocked": false,
              "options": []
            },
            "path": {
              "required": true,
              "canEdit": false,
              "blocked": false,
              "options": []
            },
            "readOnly": {
              "sourceOfRule": {
                "scope": "project",
                "projectId": 3
              },
              "required": true,
              "canEdit": true
            },
            "claimInfo": {
              "size": {
                "required": true,
                "canEdit": false,
                "blocked": false,
                "options": []
              },
              "storageClass": {
                "required": true,
                "canEdit": false,
                "blocked": false,
                "options": []
              },
              "accessModes": {
                "readWriteOnce": {
                  "sourceOfRule": {
                    "scope": "project",
                    "projectId": 3
                  },
                  "required": true,
                  "canEdit": true
                },
                "readOnlyMany": {
                  "sourceOfRule": {
                    "scope": "project",
                    "projectId": 3
                  },
                  "required": true,
                  "canEdit": true
                },
                "readWriteMany": {
                  "sourceOfRule": {
                    "scope": "project",
                    "projectId": 3
                  },
                  "required": true,
                  "canEdit": true
                }
              }
            }
          },
          "instances": {
            "sourceOfRule": {
              "scope": "project",
              "projectId": 3
            },
            "canAdd": true,
            "locked": [
              "HOME",
              "USER"
            ]
          }
        },
        "s3": {
          "attributes": {
            "bucket": {
              "required": true,
              "canEdit": false,
              "blocked": false,
              "options": []
            },
            "path": {
              "required": true,
              "canEdit": false,
              "blocked": false,
              "options": []
            },
            "url": {
              "required": true,
              "canEdit": false,
              "blocked": false,
              "options": []
            }
          },
          "instances": {
            "sourceOfRule": {
              "scope": "project",
              "projectId": 3
            },
            "canAdd": true,
            "locked": [
              "HOME",
              "USER"
            ]
          }
        },
        "secretVolume": {
          "attributes": {
            "secret": {
              "required": true,
              "canEdit": false,
              "blocked": false,
              "options": []
            },
            "mountPath": {
              "required": true,
              "canEdit": false,
              "blocked": false,
              "options": []
            },
            "defaultMode": {
              "required": true,
              "canEdit": false,
              "blocked": false,
              "options": []
            }
          },
          "instances": {
            "sourceOfRule": {
              "scope": "project",
              "projectId": 3
            },
            "canAdd": true,
            "locked": [
              "HOME",
              "USER"
            ]
          }
        }
      },
      "terminateAfterPreemption": {
        "sourceOfRule": {
          "scope": "project",
          "projectId": 3
        },
        "required": true,
        "canEdit": true
      },
      "terminationGracePeriodSeconds": {
        "sourceOfRule": {
          "scope": "project",
          "projectId": 3
        },
        "required": true,
        "canEdit": true,
        "min": 1,
        "max": 1,
        "step": 1,
        "defaultFrom": {
          "field": "text",
          "factor": 1
        }
      },
      "tolerations": {
        "attributes": {
          "operator": {
            "required": true,
            "canEdit": false,
            "blocked": false,
            "options": []
          },
          "key": {
            "required": true,
            "canEdit": false,
            "blocked": false,
            "options": []
          },
          "value": {
            "required": true,
            "canEdit": false,
            "blocked": false,
            "options": []
          },
          "effect": {
            "required": true,
            "canEdit": false,
            "blocked": false,
            "options": []
          },
          "seconds": {
            "sourceOfRule": {
              "scope": "project",
              "projectId": 3
            },
            "required": true,
            "canEdit": true,
            "min": 1,
            "max": 1,
            "step": 1,
            "defaultFrom": {
              "field": "text",
              "factor": 1
            }
          },
          "exclude": {
            "sourceOfRule": {
              "scope": "project",
              "projectId": 3
            },
            "required": true,
            "canEdit": true
          }
        },
        "instances": {
          "sourceOfRule": {
            "scope": "project",
            "projectId": 3
          },
          "canAdd": true,
          "locked": [
            "HOME",
            "USER"
          ]
        }
      },
      "tty": {
        "sourceOfRule": {
          "scope": "project",
          "projectId": 3
        },
        "required": true,
        "canEdit": true
      },
      "workingDir": {
        "required": true,
        "canEdit": false,
        "blocked": false,
        "options": []
      }
    },
    "imposedAssets": [
      "123e4567-e89b-12d3-a456-426614174000"
    ],
    "status": {
      "validation": {
        "errorMessage": "text"
      }
    }
  },
  "reset": [
    "master.security.runAsGpu",
    "worker.compute.gpu"
  ]
}
{
  "meta": {
    "id": "123e4567-e89b-12d3-a456-426614174000",
    "tenantId": 1001,
    "clusterId": "71f69d83-ba66-4822-adf5-55ce55efd210",
    "createdBy": "text",
    "createdAt": "2026-01-01T00:00:00.000Z",
    "updatedBy": "text",
    "updatedAt": "2026-01-01T00:00:00.000Z",
    "scope": "system",
    "projectId": 1,
    "departmentId": 2,
    "name": "my-policy"
  },
  "policy": {
    "defaults": {
      "annotations": {
        "instances": [
          {
            "name": "billing",
            "value": "my-billing-unit",
            "exclude": false
          }
        ]
      },
      "args": "-x my-script.py",
      "autoDeletionTimeAfterCompletionSeconds": 15,
      "backoffLimit": 3,
      "category": "text",
      "command": "python",
      "completions": 1,
      "compute": {
        "cpuCoreLimit": 2,
        "cpuCoreRequest": 0.5,
        "cpuMemoryLimit": "30M",
        "cpuMemoryRequest": "20M",
        "extendedResources": {
          "attributes": {
            "resource": "hardware-vendor.example/foo",
            "quantity": 2,
            "exclude": false
          },
          "instances": [
            {
              "resource": "hardware-vendor.example/foo",
              "quantity": 2,
              "exclude": false
            }
          ]
        },
        "gpuDevicesRequest": 1,
        "gpuMemoryLimit": "10M",
        "gpuMemoryRequest": "10M",
        "gpuPortionLimit": 0.5,
        "gpuPortionRequest": 0.5,
        "gpuRequestType": "portion",
        "largeShmRequest": false
      },
      "createHomeDir": true,
      "environmentVariables": {
        "instances": [
          {
            "name": "HOME",
            "value": "/home/my-folder",
            "secret": {
              "name": "postgress_secret",
              "key": "POSTGRES_PASSWORD"
            },
            "configMap": {
              "name": "my-config-map",
              "key": "MY_POSTGRES_SCHEMA"
            },
            "podFieldRef": {
              "path": "metadata.name"
            },
            "userCredential": {
              "name": "my_postgres_user_and_password",
              "key": "POSTGRES_PASSWORD"
            },
            "exclude": false,
            "description": "Home directory of the user."
          }
        ]
      },
      "exposedUrls": {
        "attributes": {
          "container": 8080,
          "url": "https://my-url.com",
          "authorizationType": "authenticatedUsers",
          "authorizedUsers": [
            "user-a",
            "user-b"
          ],
          "authorizedGroups": [
            "group-a",
            "group-b"
          ],
          "toolType": "jupyter",
          "toolName": "my-pytorch",
          "name": "url-instance-a",
          "exclude": false
        },
        "instances": [
          {
            "container": 8080,
            "url": "https://my-url.com",
            "authorizationType": "authenticatedUsers",
            "authorizedUsers": [
              "user-a",
              "user-b"
            ],
            "authorizedGroups": [
              "group-a",
              "group-b"
            ],
            "toolType": "jupyter",
            "toolName": "my-pytorch",
            "name": "url-instance-a",
            "exclude": false
          }
        ]
      },
      "image": "python:3.8",
      "imagePullPolicy": "Always",
      "imagePullSecrets": {
        "instances": [
          {
            "name": "text",
            "userCredential": true,
            "exclude": false
          }
        ]
      },
      "labels": {
        "instances": [
          {
            "name": "stage",
            "value": "initial-research",
            "exclude": false
          }
        ]
      },
      "nodeAffinityRequired": {
        "nodeSelectorTerms": [
          {
            "matchExpressions": [
              {
                "key": "text",
                "operator": "In",
                "values": [
                  "text"
                ]
              }
            ]
          }
        ]
      },
      "nodePools": [
        "my-node-pool-a",
        "my-node-pool-b"
      ],
      "nodeType": "my-node-type",
      "parallelism": 1,
      "podAffinity": {
        "type": "Required",
        "key": "text"
      },
      "ports": {
        "attributes": {
          "container": 8080,
          "serviceType": "LoadBalancer",
          "external": 30080,
          "toolType": "pytorch",
          "toolName": "my-pytorch",
          "name": "port-instance-a",
          "exclude": false
        },
        "instances": [
          {
            "container": 8080,
            "serviceType": "LoadBalancer",
            "external": 30080,
            "toolType": "pytorch",
            "toolName": "my-pytorch",
            "name": "port-instance-a",
            "exclude": false
          }
        ]
      },
      "preemptibility": "preemptible",
      "priorityClass": "text",
      "probes": {
        "readiness": {
          "initialDelaySeconds": 1,
          "periodSeconds": 1,
          "timeoutSeconds": 1,
          "successThreshold": 1,
          "failureThreshold": 1,
          "handler": {
            "httpGet": {
              "path": "/",
              "port": 1,
              "host": "example.com",
              "scheme": "HTTP"
            }
          }
        }
      },
      "relatedUrls": {
        "attributes": {
          "url": "https://my-url.com",
          "type": "wandb",
          "name": "url-instance-a",
          "exclude": false
        },
        "instances": [
          {
            "url": "https://my-url.com",
            "type": "wandb",
            "name": "url-instance-a",
            "exclude": false
          }
        ]
      },
      "restartPolicy": "Always",
      "security": {
        "allowPrivilegeEscalation": false,
        "capabilities": [
          "CHOWN",
          "KILL"
        ],
        "hostIpc": false,
        "hostNetwork": false,
        "readOnlyRootFilesystem": false,
        "runAsGid": 30,
        "runAsNonRoot": true,
        "runAsUid": 500,
        "seccompProfileType": "RuntimeDefault",
        "supplementalGroups": "2,3,5,8",
        "uidGidSource": "fromTheImage"
      },
      "stdin": true,
      "storage": {
        "configMapVolume": {
          "attributes": {
            "name": "storage-instance-a",
            "configMap": "text",
            "mountPath": "text",
            "subPath": "text",
            "defaultMode": "0644",
            "exclude": false
          },
          "instances": [
            {
              "name": "storage-instance-a",
              "configMap": "text",
              "mountPath": "text",
              "subPath": "text",
              "defaultMode": "0644",
              "exclude": false
            }
          ]
        },
        "dataVolume": {
          "attributes": {
            "id": "123e4567-e89b-12d3-a456-426614174000",
            "mountPath": "/mnt/data",
            "exclude": false
          },
          "instances": [
            {
              "id": "123e4567-e89b-12d3-a456-426614174000",
              "mountPath": "/mnt/data",
              "exclude": false
            }
          ]
        },
        "emptyDirVolume": {
          "attributes": {
            "name": "storage-instance-a",
            "path": "/mnt/emptydir",
            "medium": "text",
            "sizeLimit": "1G",
            "exclude": false
          },
          "instances": [
            {
              "name": "storage-instance-a",
              "path": "/mnt/emptydir",
              "medium": "text",
              "sizeLimit": "1G",
              "exclude": false
            }
          ]
        },
        "git": {
          "attributes": {
            "name": "storage-instance-a",
            "repository": "https://github.com/my-git/my-repo",
            "branch": "main",
            "revision": "text",
            "path": "/container/my-repository",
            "passwordSecret": "my-password-secret",
            "secretKeyOfUser": "User",
            "secretKeyOfPassword": "Password",
            "exclude": false,
            "secretRef": {
              "name": "my-password-secret",
              "authenticationMethod": "password",
              "secretKeyOfUser": "User",
              "secretKeyOfPassword": "Password"
            }
          },
          "instances": [
            {
              "name": "storage-instance-a",
              "repository": "https://github.com/my-git/my-repo",
              "branch": "main",
              "revision": "text",
              "path": "/container/my-repository",
              "passwordSecret": "my-password-secret",
              "secretKeyOfUser": "User",
              "secretKeyOfPassword": "Password",
              "exclude": false,
              "secretRef": {
                "name": "my-password-secret",
                "authenticationMethod": "password",
                "secretKeyOfUser": "User",
                "secretKeyOfPassword": "Password"
              }
            }
          ]
        },
        "hostPath": {
          "attributes": {
            "name": "storage-instance-a",
            "path": "/container/directory",
            "readOnly": true,
            "mountPath": "/local/directory",
            "mountPropagation": "None",
            "exclude": false
          },
          "instances": [
            {
              "name": "storage-instance-a",
              "path": "/container/directory",
              "readOnly": true,
              "mountPath": "/local/directory",
              "mountPropagation": "None",
              "exclude": false
            }
          ]
        },
        "nfs": {
          "attributes": {
            "name": "storage-instance-a",
            "path": "/container/nfs",
            "readOnly": true,
            "server": "my.nfs.com",
            "mountPath": "/local/nfs",
            "exclude": false
          },
          "instances": [
            {
              "name": "storage-instance-a",
              "path": "/container/nfs",
              "readOnly": true,
              "server": "my.nfs.com",
              "mountPath": "/local/nfs",
              "exclude": false
            }
          ]
        },
        "pvc": {
          "attributes": {
            "name": "storage-instance-a",
            "path": "/container/my-claim",
            "existingPvc": false,
            "claimName": "my-claim",
            "readOnly": false,
            "ephemeral": false,
            "claimInfo": {
              "size": "1G",
              "storageClass": "my-storage-class",
              "accessModes": {
                "readWriteOnce": true,
                "readOnlyMany": false,
                "readWriteMany": false
              },
              "volumeMode": "Filesystem",
              "addedAttrValues": [
                {
                  "key": "dnsname",
                  "value": "my.dns.com"
                }
              ]
            },
            "dataSharing": false,
            "exclude": false
          },
          "instances": [
            {
              "name": "storage-instance-a",
              "path": "/container/my-claim",
              "existingPvc": false,
              "claimName": "my-claim",
              "readOnly": false,
              "ephemeral": false,
              "claimInfo": {
                "size": "1G",
                "storageClass": "my-storage-class",
                "accessModes": {
                  "readWriteOnce": true,
                  "readOnlyMany": false,
                  "readWriteMany": false
                },
                "volumeMode": "Filesystem",
                "addedAttrValues": [
                  {
                    "key": "dnsname",
                    "value": "my.dns.com"
                  }
                ]
              },
              "dataSharing": false,
              "exclude": false
            }
          ]
        },
        "s3": {
          "attributes": {
            "name": "storage-instance-a",
            "bucket": "my-bucket",
            "path": "/container/my-bucket",
            "url": "https://s3.amazonaws.com",
            "accessKeySecret": "my-access-key-secret",
            "secretKeyOfAccessKeyId": "AccessKeyId",
            "secretKeyOfSecretKey": "SecretKey",
            "exclude": false
          },
          "instances": [
            {
              "name": "storage-instance-a",
              "bucket": "my-bucket",
              "path": "/container/my-bucket",
              "url": "https://s3.amazonaws.com",
              "accessKeySecret": "my-access-key-secret",
              "secretKeyOfAccessKeyId": "AccessKeyId",
              "secretKeyOfSecretKey": "SecretKey",
              "exclude": false
            }
          ]
        },
        "secretVolume": {
          "attributes": {
            "name": "storage-instance-a",
            "mountPath": "text",
            "defaultMode": "0644",
            "secret": "text",
            "exclude": false
          },
          "instances": [
            {
              "name": "storage-instance-a",
              "mountPath": "text",
              "defaultMode": "0644",
              "secret": "text",
              "exclude": false
            }
          ]
        }
      },
      "terminateAfterPreemption": false,
      "terminationGracePeriodSeconds": 20,
      "tolerations": {
        "attributes": {
          "name": "text",
          "operator": "Equal",
          "key": "text",
          "value": "text",
          "effect": "NoSchedule",
          "seconds": 1,
          "exclude": false
        },
        "instances": [
          {
            "name": "text",
            "operator": "Equal",
            "key": "text",
            "value": "text",
            "effect": "NoSchedule",
            "seconds": 1,
            "exclude": false
          }
        ]
      },
      "tty": true,
      "workingDir": "/home/myfolder"
    },
    "rules": {
      "annotations": {
        "instances": {
          "sourceOfRule": {
            "scope": "project",
            "projectId": 3
          },
          "canAdd": true,
          "locked": [
            "HOME",
            "USER"
          ]
        }
      },
      "args": {
        "required": true,
        "canEdit": false,
        "blocked": false,
        "options": []
      },
      "autoDeletionTimeAfterCompletionSeconds": {
        "sourceOfRule": {
          "scope": "project",
          "projectId": 3
        },
        "required": true,
        "canEdit": true,
        "min": 1,
        "max": 1,
        "step": 1,
        "defaultFrom": {
          "field": "text",
          "factor": 1
        }
      },
      "backoffLimit": {
        "sourceOfRule": {
          "scope": "project",
          "projectId": 3
        },
        "required": true,
        "canEdit": true,
        "min": 1,
        "max": 1,
        "step": 1,
        "defaultFrom": {
          "field": "text",
          "factor": 1
        }
      },
      "category": {
        "required": true,
        "canEdit": false,
        "blocked": false,
        "options": []
      },
      "command": {
        "required": true,
        "canEdit": false,
        "blocked": false,
        "options": []
      },
      "completions": {
        "sourceOfRule": {
          "scope": "project",
          "projectId": 3
        },
        "required": true,
        "canEdit": true,
        "min": 1,
        "max": 1,
        "step": 1,
        "defaultFrom": {
          "field": "text",
          "factor": 1
        }
      },
      "compute": {
        "cpuCoreLimit": {
          "sourceOfRule": {
            "scope": "project",
            "projectId": 3
          },
          "required": true,
          "canEdit": true,
          "min": 1,
          "max": 1,
          "step": 1,
          "defaultFrom": {
            "field": "text",
            "factor": 1
          }
        },
        "cpuCoreRequest": {
          "sourceOfRule": {
            "scope": "project",
            "projectId": 3
          },
          "required": true,
          "canEdit": true,
          "min": 1,
          "max": 1,
          "step": 1,
          "defaultFrom": {
            "field": "text",
            "factor": 1
          }
        },
        "cpuMemoryLimit": {
          "sourceOfRule": {
            "scope": "project",
            "projectId": 3
          },
          "required": true,
          "canEdit": true,
          "min": "text",
          "max": "text",
          "defaultFrom": {
            "field": "text",
            "factor": 1
          }
        },
        "cpuMemoryRequest": {
          "sourceOfRule": {
            "scope": "project",
            "projectId": 3
          },
          "required": true,
          "canEdit": true,
          "min": "text",
          "max": "text",
          "defaultFrom": {
            "field": "text",
            "factor": 1
          }
        },
        "extendedResources": {
          "attributes": {
            "quantity": {
              "required": true,
              "canEdit": false,
              "blocked": false,
              "options": []
            }
          },
          "instances": {
            "sourceOfRule": {
              "scope": "project",
              "projectId": 3
            },
            "canAdd": true,
            "locked": [
              "HOME",
              "USER"
            ]
          }
        },
        "gpuDevicesRequest": {
          "sourceOfRule": {
            "scope": "project",
            "projectId": 3
          },
          "required": true,
          "canEdit": true,
          "min": 1,
          "max": 1,
          "step": 1,
          "defaultFrom": {
            "field": "text",
            "factor": 1
          }
        },
        "gpuMemoryLimit": {
          "sourceOfRule": {
            "scope": "project",
            "projectId": 3
          },
          "required": true,
          "canEdit": true,
          "min": "text",
          "max": "text",
          "defaultFrom": {
            "field": "text",
            "factor": 1
          }
        },
        "gpuMemoryRequest": {
          "sourceOfRule": {
            "scope": "project",
            "projectId": 3
          },
          "required": true,
          "canEdit": true,
          "min": "text",
          "max": "text",
          "defaultFrom": {
            "field": "text",
            "factor": 1
          }
        },
        "gpuPortionLimit": {
          "sourceOfRule": {
            "scope": "project",
            "projectId": 3
          },
          "required": true,
          "canEdit": true,
          "min": 1,
          "max": 1,
          "step": 1,
          "defaultFrom": {
            "field": "text",
            "factor": 1
          }
        },
        "gpuPortionRequest": {
          "sourceOfRule": {
            "scope": "project",
            "projectId": 3
          },
          "required": true,
          "canEdit": true,
          "min": 1,
          "max": 1,
          "step": 1,
          "defaultFrom": {
            "field": "text",
            "factor": 1
          }
        },
        "gpuRequestType": {
          "required": true,
          "canEdit": false,
          "blocked": false,
          "options": []
        },
        "largeShmRequest": {
          "sourceOfRule": {
            "scope": "project",
            "projectId": 3
          },
          "required": true,
          "canEdit": true
        }
      },
      "createHomeDir": {
        "sourceOfRule": {
          "scope": "project",
          "projectId": 3
        },
        "required": true,
        "canEdit": true
      },
      "environmentVariables": {
        "instances": {
          "sourceOfRule": {
            "scope": "project",
            "projectId": 3
          },
          "canAdd": true,
          "locked": [
            "HOME",
            "USER"
          ]
        }
      },
      "exposedUrls": {
        "attributes": {
          "container": {
            "sourceOfRule": {
              "scope": "project",
              "projectId": 3
            },
            "required": true,
            "canEdit": true,
            "min": 1,
            "max": 1,
            "step": 1,
            "defaultFrom": {
              "field": "text",
              "factor": 1
            }
          },
          "customUrl": {
            "sourceOfRule": {
              "scope": "project",
              "projectId": 3
            },
            "required": true,
            "canEdit": true
          },
          "url": {
            "required": true,
            "canEdit": false,
            "blocked": false,
            "options": []
          },
          "authorizedUsers": {
            "sourceOfRule": {
              "scope": "project",
              "projectId": 3
            },
            "required": true,
            "options": [],
            "canEdit": true
          },
          "authorizedGroups": {
            "sourceOfRule": {
              "scope": "project",
              "projectId": 3
            },
            "required": true,
            "options": [],
            "canEdit": true
          },
          "toolType": {
            "required": true,
            "canEdit": false,
            "blocked": false,
            "options": []
          },
          "toolName": {
            "required": true,
            "canEdit": false,
            "blocked": false,
            "options": []
          }
        },
        "instances": {
          "sourceOfRule": {
            "scope": "project",
            "projectId": 3
          },
          "canAdd": true,
          "locked": [
            "HOME",
            "USER"
          ]
        }
      },
      "image": {
        "required": true,
        "canEdit": false,
        "blocked": false,
        "options": []
      },
      "imagePullPolicy": {
        "required": true,
        "canEdit": false,
        "blocked": false,
        "options": []
      },
      "imagePullSecrets": {
        "attributes": {
          "name": {
            "required": true,
            "canEdit": false,
            "blocked": false,
            "options": []
          },
          "userCredentials": {
            "sourceOfRule": {
              "scope": "project",
              "projectId": 3
            },
            "required": true,
            "canEdit": true
          }
        },
        "instances": {
          "sourceOfRule": {
            "scope": "project",
            "projectId": 3
          },
          "canAdd": true,
          "locked": [
            "HOME",
            "USER"
          ]
        }
      },
      "labels": {
        "instances": {
          "sourceOfRule": {
            "scope": "project",
            "projectId": 3
          },
          "canAdd": true,
          "locked": [
            "HOME",
            "USER"
          ]
        }
      },
      "nodeAffinityRequired": {
        "sourceOfRule": {
          "scope": "project",
          "projectId": 3
        },
        "required": true,
        "canEdit": true
      },
      "nodePools": {
        "sourceOfRule": {
          "scope": "project",
          "projectId": 3
        },
        "required": true,
        "options": [],
        "canEdit": true
      },
      "nodeType": {
        "required": true,
        "canEdit": false,
        "blocked": false,
        "options": []
      },
      "parallelism": {
        "sourceOfRule": {
          "scope": "project",
          "projectId": 3
        },
        "required": true,
        "canEdit": true,
        "min": 1,
        "max": 1,
        "step": 1,
        "defaultFrom": {
          "field": "text",
          "factor": 1
        }
      },
      "podAffinity": {
        "type": {
          "required": true,
          "canEdit": false,
          "blocked": false,
          "options": []
        },
        "key": {
          "required": true,
          "canEdit": false,
          "blocked": false,
          "options": []
        }
      },
      "ports": {
        "attributes": {
          "container": {
            "sourceOfRule": {
              "scope": "project",
              "projectId": 3
            },
            "required": true,
            "canEdit": true,
            "min": 1,
            "max": 1,
            "step": 1,
            "defaultFrom": {
              "field": "text",
              "factor": 1
            }
          },
          "serviceType": {
            "required": true,
            "canEdit": false,
            "blocked": false,
            "options": []
          },
          "customExternalPort": {
            "sourceOfRule": {
              "scope": "project",
              "projectId": 3
            },
            "required": true,
            "canEdit": true
          },
          "external": {
            "sourceOfRule": {
              "scope": "project",
              "projectId": 3
            },
            "required": true,
            "canEdit": true,
            "min": 1,
            "max": 1,
            "step": 1,
            "defaultFrom": {
              "field": "text",
              "factor": 1
            }
          },
          "toolType": {
            "required": true,
            "canEdit": false,
            "blocked": false,
            "options": []
          },
          "toolName": {
            "required": true,
            "canEdit": false,
            "blocked": false,
            "options": []
          }
        },
        "instances": {
          "sourceOfRule": {
            "scope": "project",
            "projectId": 3
          },
          "canAdd": true,
          "locked": [
            "HOME",
            "USER"
          ]
        }
      },
      "preemptibility": {
        "required": true,
        "canEdit": false,
        "blocked": false,
        "options": []
      },
      "priorityClass": {
        "required": true,
        "canEdit": false,
        "blocked": false,
        "options": []
      },
      "probes": {
        "readiness": {
          "initialDelaySeconds": {
            "sourceOfRule": {
              "scope": "project",
              "projectId": 3
            },
            "required": true,
            "canEdit": true,
            "min": 1,
            "max": 1,
            "step": 1,
            "defaultFrom": {
              "field": "text",
              "factor": 1
            }
          },
          "periodSeconds": {
            "sourceOfRule": {
              "scope": "project",
              "projectId": 3
            },
            "required": true,
            "canEdit": true,
            "min": 1,
            "max": 1,
            "step": 1,
            "defaultFrom": {
              "field": "text",
              "factor": 1
            }
          },
          "timeoutSeconds": {
            "sourceOfRule": {
              "scope": "project",
              "projectId": 3
            },
            "required": true,
            "canEdit": true,
            "min": 1,
            "max": 1,
            "step": 1,
            "defaultFrom": {
              "field": "text",
              "factor": 1
            }
          },
          "successThreshold": {
            "sourceOfRule": {
              "scope": "project",
              "projectId": 3
            },
            "required": true,
            "canEdit": true,
            "min": 1,
            "max": 1,
            "step": 1,
            "defaultFrom": {
              "field": "text",
              "factor": 1
            }
          },
          "failureThreshold": {
            "sourceOfRule": {
              "scope": "project",
              "projectId": 3
            },
            "required": true,
            "canEdit": true,
            "min": 1,
            "max": 1,
            "step": 1,
            "defaultFrom": {
              "field": "text",
              "factor": 1
            }
          },
          "handler": {
            "httpGet": {
              "path": {
                "required": true,
                "canEdit": false,
                "blocked": false,
                "options": []
              },
              "port": {
                "sourceOfRule": {
                  "scope": "project",
                  "projectId": 3
                },
                "required": true,
                "canEdit": true,
                "min": 1,
                "max": 1,
                "step": 1,
                "defaultFrom": {
                  "field": "text",
                  "factor": 1
                }
              },
              "host": {
                "required": true,
                "canEdit": false,
                "blocked": false,
                "options": []
              },
              "scheme": {
                "required": true,
                "canEdit": false,
                "blocked": false,
                "options": []
              }
            }
          }
        }
      },
      "relatedUrls": {
        "attributes": {
          "url": {
            "required": true,
            "canEdit": false,
            "blocked": false,
            "options": []
          },
          "type": {
            "required": true,
            "canEdit": false,
            "blocked": false,
            "options": []
          },
          "name": {
            "required": true,
            "canEdit": false,
            "blocked": false,
            "options": []
          }
        },
        "instances": {
          "sourceOfRule": {
            "scope": "project",
            "projectId": 3
          },
          "canAdd": true,
          "locked": [
            "HOME",
            "USER"
          ]
        }
      },
      "restartPolicy": {
        "required": true,
        "canEdit": false,
        "blocked": false,
        "options": []
      },
      "security": {
        "allowPrivilegeEscalation": {
          "sourceOfRule": {
            "scope": "project",
            "projectId": 3
          },
          "required": true,
          "canEdit": true
        },
        "capabilities": {
          "sourceOfRule": {
            "scope": "project",
            "projectId": 3
          },
          "required": true,
          "options": [],
          "canEdit": true
        },
        "hostIpc": {
          "sourceOfRule": {
            "scope": "project",
            "projectId": 3
          },
          "required": true,
          "canEdit": true
        },
        "hostNetwork": {
          "sourceOfRule": {
            "scope": "project",
            "projectId": 3
          },
          "required": true,
          "canEdit": true
        },
        "readOnlyRootFilesystem": {
          "sourceOfRule": {
            "scope": "project",
            "projectId": 3
          },
          "required": true,
          "canEdit": true
        },
        "runAsGid": {
          "sourceOfRule": {
            "scope": "project",
            "projectId": 3
          },
          "canEdit": true,
          "min": 1,
          "max": 1,
          "step": 1,
          "defaultFrom": {
            "field": "text",
            "factor": 1
          }
        },
        "runAsNonRoot": {
          "sourceOfRule": {
            "scope": "project",
            "projectId": 3
          },
          "required": true,
          "canEdit": true
        },
        "runAsUid": {
          "sourceOfRule": {
            "scope": "project",
            "projectId": 3
          },
          "canEdit": true,
          "min": 1,
          "max": 1,
          "step": 1,
          "defaultFrom": {
            "field": "text",
            "factor": 1
          }
        },
        "seccompProfileType": {
          "required": true,
          "canEdit": false,
          "blocked": false,
          "options": []
        },
        "supplementalGroups": {
          "required": true,
          "canEdit": false,
          "blocked": false,
          "options": []
        },
        "uidGidSource": {
          "required": true,
          "canEdit": false,
          "blocked": false,
          "options": []
        }
      },
      "stdin": {
        "sourceOfRule": {
          "scope": "project",
          "projectId": 3
        },
        "required": true,
        "canEdit": true
      },
      "storage": {
        "configMapVolume": {
          "attributes": {
            "configMap": {
              "required": true,
              "canEdit": false,
              "blocked": false,
              "options": []
            },
            "mountPath": {
              "required": true,
              "canEdit": false,
              "blocked": false,
              "options": []
            },
            "subPath": {
              "required": true,
              "canEdit": false,
              "blocked": false,
              "options": []
            },
            "defaultMode": {
              "required": true,
              "canEdit": false,
              "blocked": false,
              "options": []
            }
          },
          "instances": {
            "sourceOfRule": {
              "scope": "project",
              "projectId": 3
            },
            "canAdd": true,
            "locked": [
              "HOME",
              "USER"
            ]
          }
        },
        "dataVolume": {
          "attributes": {
            "id": {
              "required": true,
              "canEdit": false,
              "blocked": false,
              "options": []
            },
            "mountPath": {
              "required": true,
              "canEdit": false,
              "blocked": false,
              "options": []
            }
          },
          "instances": {
            "sourceOfRule": {
              "scope": "project",
              "projectId": 3
            },
            "canAdd": true,
            "locked": [
              "HOME",
              "USER"
            ]
          }
        },
        "emptyDirVolume": {
          "attributes": {
            "path": {
              "required": true,
              "canEdit": false,
              "blocked": false,
              "options": []
            },
            "medium": {
              "required": true,
              "canEdit": false,
              "blocked": false,
              "options": []
            },
            "sizeLimit": {
              "required": true,
              "canEdit": false,
              "blocked": false,
              "options": []
            }
          },
          "instances": {
            "sourceOfRule": {
              "scope": "project",
              "projectId": 3
            },
            "canAdd": true,
            "locked": [
              "HOME",
              "USER"
            ]
          }
        },
        "git": {
          "attributes": {
            "repository": {
              "required": true,
              "canEdit": false,
              "blocked": false,
              "options": []
            },
            "branch": {
              "required": true,
              "canEdit": false,
              "blocked": false,
              "options": []
            },
            "revision": {
              "required": true,
              "canEdit": false,
              "blocked": false,
              "options": []
            },
            "path": {
              "required": true,
              "canEdit": false,
              "blocked": false,
              "options": []
            }
          },
          "instances": {
            "sourceOfRule": {
              "scope": "project",
              "projectId": 3
            },
            "canAdd": true,
            "locked": [
              "HOME",
              "USER"
            ]
          }
        },
        "hostPath": {
          "attributes": {
            "path": {
              "required": true,
              "canEdit": false,
              "blocked": false,
              "options": []
            },
            "readOnly": {
              "sourceOfRule": {
                "scope": "project",
                "projectId": 3
              },
              "required": true,
              "canEdit": true
            },
            "mountPath": {
              "required": true,
              "canEdit": false,
              "blocked": false,
              "options": []
            },
            "mountPropagation": {
              "required": true,
              "canEdit": false,
              "blocked": false,
              "options": []
            }
          },
          "instances": {
            "sourceOfRule": {
              "scope": "project",
              "projectId": 3
            },
            "canAdd": true,
            "locked": [
              "HOME",
              "USER"
            ]
          }
        },
        "nfs": {
          "attributes": {
            "path": {
              "required": true,
              "canEdit": false,
              "blocked": false,
              "options": []
            },
            "readOnly": {
              "sourceOfRule": {
                "scope": "project",
                "projectId": 3
              },
              "required": true,
              "canEdit": true
            },
            "server": {
              "required": true,
              "canEdit": false,
              "blocked": false,
              "options": []
            },
            "mountPath": {
              "required": true,
              "canEdit": false,
              "blocked": false,
              "options": []
            }
          },
          "instances": {
            "sourceOfRule": {
              "scope": "project",
              "projectId": 3
            },
            "canAdd": true,
            "locked": [
              "HOME",
              "USER"
            ]
          }
        },
        "pvc": {
          "attributes": {
            "claimName": {
              "required": true,
              "canEdit": false,
              "blocked": false,
              "options": []
            },
            "path": {
              "required": true,
              "canEdit": false,
              "blocked": false,
              "options": []
            },
            "readOnly": {
              "sourceOfRule": {
                "scope": "project",
                "projectId": 3
              },
              "required": true,
              "canEdit": true
            },
            "claimInfo": {
              "size": {
                "required": true,
                "canEdit": false,
                "blocked": false,
                "options": []
              },
              "storageClass": {
                "required": true,
                "canEdit": false,
                "blocked": false,
                "options": []
              },
              "accessModes": {
                "readWriteOnce": {
                  "sourceOfRule": {
                    "scope": "project",
                    "projectId": 3
                  },
                  "required": true,
                  "canEdit": true
                },
                "readOnlyMany": {
                  "sourceOfRule": {
                    "scope": "project",
                    "projectId": 3
                  },
                  "required": true,
                  "canEdit": true
                },
                "readWriteMany": {
                  "sourceOfRule": {
                    "scope": "project",
                    "projectId": 3
                  },
                  "required": true,
                  "canEdit": true
                }
              }
            }
          },
          "instances": {
            "sourceOfRule": {
              "scope": "project",
              "projectId": 3
            },
            "canAdd": true,
            "locked": [
              "HOME",
              "USER"
            ]
          }
        },
        "s3": {
          "attributes": {
            "bucket": {
              "required": true,
              "canEdit": false,
              "blocked": false,
              "options": []
            },
            "path": {
              "required": true,
              "canEdit": false,
              "blocked": false,
              "options": []
            },
            "url": {
              "required": true,
              "canEdit": false,
              "blocked": false,
              "options": []
            }
          },
          "instances": {
            "sourceOfRule": {
              "scope": "project",
              "projectId": 3
            },
            "canAdd": true,
            "locked": [
              "HOME",
              "USER"
            ]
          }
        },
        "secretVolume": {
          "attributes": {
            "secret": {
              "required": true,
              "canEdit": false,
              "blocked": false,
              "options": []
            },
            "mountPath": {
              "required": true,
              "canEdit": false,
              "blocked": false,
              "options": []
            },
            "defaultMode": {
              "required": true,
              "canEdit": false,
              "blocked": false,
              "options": []
            }
          },
          "instances": {
            "sourceOfRule": {
              "scope": "project",
              "projectId": 3
            },
            "canAdd": true,
            "locked": [
              "HOME",
              "USER"
            ]
          }
        }
      },
      "terminateAfterPreemption": {
        "sourceOfRule": {
          "scope": "project",
          "projectId": 3
        },
        "required": true,
        "canEdit": true
      },
      "terminationGracePeriodSeconds": {
        "sourceOfRule": {
          "scope": "project",
          "projectId": 3
        },
        "required": true,
        "canEdit": true,
        "min": 1,
        "max": 1,
        "step": 1,
        "defaultFrom": {
          "field": "text",
          "factor": 1
        }
      },
      "tolerations": {
        "attributes": {
          "operator": {
            "required": true,
            "canEdit": false,
            "blocked": false,
            "options": []
          },
          "key": {
            "required": true,
            "canEdit": false,
            "blocked": false,
            "options": []
          },
          "value": {
            "required": true,
            "canEdit": false,
            "blocked": false,
            "options": []
          },
          "effect": {
            "required": true,
            "canEdit": false,
            "blocked": false,
            "options": []
          },
          "seconds": {
            "sourceOfRule": {
              "scope": "project",
              "projectId": 3
            },
            "required": true,
            "canEdit": true,
            "min": 1,
            "max": 1,
            "step": 1,
            "defaultFrom": {
              "field": "text",
              "factor": 1
            }
          },
          "exclude": {
            "sourceOfRule": {
              "scope": "project",
              "projectId": 3
            },
            "required": true,
            "canEdit": true
          }
        },
        "instances": {
          "sourceOfRule": {
            "scope": "project",
            "projectId": 3
          },
          "canAdd": true,
          "locked": [
            "HOME",
            "USER"
          ]
        }
      },
      "tty": {
        "sourceOfRule": {
          "scope": "project",
          "projectId": 3
        },
        "required": true,
        "canEdit": true
      },
      "workingDir": {
        "required": true,
        "canEdit": false,
        "blocked": false,
        "options": []
      }
    },
    "imposedAssets": [
      "123e4567-e89b-12d3-a456-426614174000"
    ],
    "status": {
      "validation": {
        "errorMessage": "text"
      }
    }
  },
  "effective": {
    "defaults": {
      "annotations": {
        "instances": [
          {
            "name": "billing",
            "value": "my-billing-unit",
            "exclude": false
          }
        ]
      },
      "args": "-x my-script.py",
      "autoDeletionTimeAfterCompletionSeconds": 15,
      "backoffLimit": 3,
      "category": "text",
      "command": "python",
      "completions": 1,
      "compute": {
        "cpuCoreLimit": 2,
        "cpuCoreRequest": 0.5,
        "cpuMemoryLimit": "30M",
        "cpuMemoryRequest": "20M",
        "extendedResources": {
          "attributes": {
            "resource": "hardware-vendor.example/foo",
            "quantity": 2,
            "exclude": false
          },
          "instances": [
            {
              "resource": "hardware-vendor.example/foo",
              "quantity": 2,
              "exclude": false
            }
          ]
        },
        "gpuDevicesRequest": 1,
        "gpuMemoryLimit": "10M",
        "gpuMemoryRequest": "10M",
        "gpuPortionLimit": 0.5,
        "gpuPortionRequest": 0.5,
        "gpuRequestType": "portion",
        "largeShmRequest": false
      },
      "createHomeDir": true,
      "environmentVariables": {
        "instances": [
          {
            "name": "HOME",
            "value": "/home/my-folder",
            "secret": {
              "name": "postgress_secret",
              "key": "POSTGRES_PASSWORD"
            },
            "configMap": {
              "name": "my-config-map",
              "key": "MY_POSTGRES_SCHEMA"
            },
            "podFieldRef": {
              "path": "metadata.name"
            },
            "userCredential": {
              "name": "my_postgres_user_and_password",
              "key": "POSTGRES_PASSWORD"
            },
            "exclude": false,
            "description": "Home directory of the user."
          }
        ]
      },
      "exposedUrls": {
        "attributes": {
          "container": 8080,
          "url": "https://my-url.com",
          "authorizationType": "authenticatedUsers",
          "authorizedUsers": [
            "user-a",
            "user-b"
          ],
          "authorizedGroups": [
            "group-a",
            "group-b"
          ],
          "toolType": "jupyter",
          "toolName": "my-pytorch",
          "name": "url-instance-a",
          "exclude": false
        },
        "instances": [
          {
            "container": 8080,
            "url": "https://my-url.com",
            "authorizationType": "authenticatedUsers",
            "authorizedUsers": [
              "user-a",
              "user-b"
            ],
            "authorizedGroups": [
              "group-a",
              "group-b"
            ],
            "toolType": "jupyter",
            "toolName": "my-pytorch",
            "name": "url-instance-a",
            "exclude": false
          }
        ]
      },
      "image": "python:3.8",
      "imagePullPolicy": "Always",
      "imagePullSecrets": {
        "instances": [
          {
            "name": "text",
            "userCredential": true,
            "exclude": false
          }
        ]
      },
      "labels": {
        "instances": [
          {
            "name": "stage",
            "value": "initial-research",
            "exclude": false
          }
        ]
      },
      "nodeAffinityRequired": {
        "nodeSelectorTerms": [
          {
            "matchExpressions": [
              {
                "key": "text",
                "operator": "In",
                "values": [
                  "text"
                ]
              }
            ]
          }
        ]
      },
      "nodePools": [
        "my-node-pool-a",
        "my-node-pool-b"
      ],
      "nodeType": "my-node-type",
      "parallelism": 1,
      "podAffinity": {
        "type": "Required",
        "key": "text"
      },
      "ports": {
        "attributes": {
          "container": 8080,
          "serviceType": "LoadBalancer",
          "external": 30080,
          "toolType": "pytorch",
          "toolName": "my-pytorch",
          "name": "port-instance-a",
          "exclude": false
        },
        "instances": [
          {
            "container": 8080,
            "serviceType": "LoadBalancer",
            "external": 30080,
            "toolType": "pytorch",
            "toolName": "my-pytorch",
            "name": "port-instance-a",
            "exclude": false
          }
        ]
      },
      "preemptibility": "preemptible",
      "priorityClass": "text",
      "probes": {
        "readiness": {
          "initialDelaySeconds": 1,
          "periodSeconds": 1,
          "timeoutSeconds": 1,
          "successThreshold": 1,
          "failureThreshold": 1,
          "handler": {
            "httpGet": {
              "path": "/",
              "port": 1,
              "host": "example.com",
              "scheme": "HTTP"
            }
          }
        }
      },
      "relatedUrls": {
        "attributes": {
          "url": "https://my-url.com",
          "type": "wandb",
          "name": "url-instance-a",
          "exclude": false
        },
        "instances": [
          {
            "url": "https://my-url.com",
            "type": "wandb",
            "name": "url-instance-a",
            "exclude": false
          }
        ]
      },
      "restartPolicy": "Always",
      "security": {
        "allowPrivilegeEscalation": false,
        "capabilities": [
          "CHOWN",
          "KILL"
        ],
        "hostIpc": false,
        "hostNetwork": false,
        "readOnlyRootFilesystem": false,
        "runAsGid": 30,
        "runAsNonRoot": true,
        "runAsUid": 500,
        "seccompProfileType": "RuntimeDefault",
        "supplementalGroups": "2,3,5,8",
        "uidGidSource": "fromTheImage"
      },
      "stdin": true,
      "storage": {
        "configMapVolume": {
          "attributes": {
            "name": "storage-instance-a",
            "configMap": "text",
            "mountPath": "text",
            "subPath": "text",
            "defaultMode": "0644",
            "exclude": false
          },
          "instances": [
            {
              "name": "storage-instance-a",
              "configMap": "text",
              "mountPath": "text",
              "subPath": "text",
              "defaultMode": "0644",
              "exclude": false
            }
          ]
        },
        "dataVolume": {
          "attributes": {
            "id": "123e4567-e89b-12d3-a456-426614174000",
            "mountPath": "/mnt/data",
            "exclude": false
          },
          "instances": [
            {
              "id": "123e4567-e89b-12d3-a456-426614174000",
              "mountPath": "/mnt/data",
              "exclude": false
            }
          ]
        },
        "emptyDirVolume": {
          "attributes": {
            "name": "storage-instance-a",
            "path": "/mnt/emptydir",
            "medium": "text",
            "sizeLimit": "1G",
            "exclude": false
          },
          "instances": [
            {
              "name": "storage-instance-a",
              "path": "/mnt/emptydir",
              "medium": "text",
              "sizeLimit": "1G",
              "exclude": false
            }
          ]
        },
        "git": {
          "attributes": {
            "name": "storage-instance-a",
            "repository": "https://github.com/my-git/my-repo",
            "branch": "main",
            "revision": "text",
            "path": "/container/my-repository",
            "passwordSecret": "my-password-secret",
            "secretKeyOfUser": "User",
            "secretKeyOfPassword": "Password",
            "exclude": false,
            "secretRef": {
              "name": "my-password-secret",
              "authenticationMethod": "password",
              "secretKeyOfUser": "User",
              "secretKeyOfPassword": "Password"
            }
          },
          "instances": [
            {
              "name": "storage-instance-a",
              "repository": "https://github.com/my-git/my-repo",
              "branch": "main",
              "revision": "text",
              "path": "/container/my-repository",
              "passwordSecret": "my-password-secret",
              "secretKeyOfUser": "User",
              "secretKeyOfPassword": "Password",
              "exclude": false,
              "secretRef": {
                "name": "my-password-secret",
                "authenticationMethod": "password",
                "secretKeyOfUser": "User",
                "secretKeyOfPassword": "Password"
              }
            }
          ]
        },
        "hostPath": {
          "attributes": {
            "name": "storage-instance-a",
            "path": "/container/directory",
            "readOnly": true,
            "mountPath": "/local/directory",
            "mountPropagation": "None",
            "exclude": false
          },
          "instances": [
            {
              "name": "storage-instance-a",
              "path": "/container/directory",
              "readOnly": true,
              "mountPath": "/local/directory",
              "mountPropagation": "None",
              "exclude": false
            }
          ]
        },
        "nfs": {
          "attributes": {
            "name": "storage-instance-a",
            "path": "/container/nfs",
            "readOnly": true,
            "server": "my.nfs.com",
            "mountPath": "/local/nfs",
            "exclude": false
          },
          "instances": [
            {
              "name": "storage-instance-a",
              "path": "/container/nfs",
              "readOnly": true,
              "server": "my.nfs.com",
              "mountPath": "/local/nfs",
              "exclude": false
            }
          ]
        },
        "pvc": {
          "attributes": {
            "name": "storage-instance-a",
            "path": "/container/my-claim",
            "existingPvc": false,
            "claimName": "my-claim",
            "readOnly": false,
            "ephemeral": false,
            "claimInfo": {
              "size": "1G",
              "storageClass": "my-storage-class",
              "accessModes": {
                "readWriteOnce": true,
                "readOnlyMany": false,
                "readWriteMany": false
              },
              "volumeMode": "Filesystem",
              "addedAttrValues": [
                {
                  "key": "dnsname",
                  "value": "my.dns.com"
                }
              ]
            },
            "dataSharing": false,
            "exclude": false
          },
          "instances": [
            {
              "name": "storage-instance-a",
              "path": "/container/my-claim",
              "existingPvc": false,
              "claimName": "my-claim",
              "readOnly": false,
              "ephemeral": false,
              "claimInfo": {
                "size": "1G",
                "storageClass": "my-storage-class",
                "accessModes": {
                  "readWriteOnce": true,
                  "readOnlyMany": false,
                  "readWriteMany": false
                },
                "volumeMode": "Filesystem",
                "addedAttrValues": [
                  {
                    "key": "dnsname",
                    "value": "my.dns.com"
                  }
                ]
              },
              "dataSharing": false,
              "exclude": false
            }
          ]
        },
        "s3": {
          "attributes": {
            "name": "storage-instance-a",
            "bucket": "my-bucket",
            "path": "/container/my-bucket",
            "url": "https://s3.amazonaws.com",
            "accessKeySecret": "my-access-key-secret",
            "secretKeyOfAccessKeyId": "AccessKeyId",
            "secretKeyOfSecretKey": "SecretKey",
            "exclude": false
          },
          "instances": [
            {
              "name": "storage-instance-a",
              "bucket": "my-bucket",
              "path": "/container/my-bucket",
              "url": "https://s3.amazonaws.com",
              "accessKeySecret": "my-access-key-secret",
              "secretKeyOfAccessKeyId": "AccessKeyId",
              "secretKeyOfSecretKey": "SecretKey",
              "exclude": false
            }
          ]
        },
        "secretVolume": {
          "attributes": {
            "name": "storage-instance-a",
            "mountPath": "text",
            "defaultMode": "0644",
            "secret": "text",
            "exclude": false
          },
          "instances": [
            {
              "name": "storage-instance-a",
              "mountPath": "text",
              "defaultMode": "0644",
              "secret": "text",
              "exclude": false
            }
          ]
        }
      },
      "terminateAfterPreemption": false,
      "terminationGracePeriodSeconds": 20,
      "tolerations": {
        "attributes": {
          "name": "text",
          "operator": "Equal",
          "key": "text",
          "value": "text",
          "effect": "NoSchedule",
          "seconds": 1,
          "exclude": false
        },
        "instances": [
          {
            "name": "text",
            "operator": "Equal",
            "key": "text",
            "value": "text",
            "effect": "NoSchedule",
            "seconds": 1,
            "exclude": false
          }
        ]
      },
      "tty": true,
      "workingDir": "/home/myfolder"
    },
    "rules": {
      "annotations": {
        "instances": {
          "sourceOfRule": {
            "scope": "project",
            "projectId": 3
          },
          "canAdd": true,
          "locked": [
            "HOME",
            "USER"
          ]
        }
      },
      "args": {
        "required": true,
        "canEdit": false,
        "blocked": false,
        "options": []
      },
      "autoDeletionTimeAfterCompletionSeconds": {
        "sourceOfRule": {
          "scope": "project",
          "projectId": 3
        },
        "required": true,
        "canEdit": true,
        "min": 1,
        "max": 1,
        "step": 1,
        "defaultFrom": {
          "field": "text",
          "factor": 1
        }
      },
      "backoffLimit": {
        "sourceOfRule": {
          "scope": "project",
          "projectId": 3
        },
        "required": true,
        "canEdit": true,
        "min": 1,
        "max": 1,
        "step": 1,
        "defaultFrom": {
          "field": "text",
          "factor": 1
        }
      },
      "category": {
        "required": true,
        "canEdit": false,
        "blocked": false,
        "options": []
      },
      "command": {
        "required": true,
        "canEdit": false,
        "blocked": false,
        "options": []
      },
      "completions": {
        "sourceOfRule": {
          "scope": "project",
          "projectId": 3
        },
        "required": true,
        "canEdit": true,
        "min": 1,
        "max": 1,
        "step": 1,
        "defaultFrom": {
          "field": "text",
          "factor": 1
        }
      },
      "compute": {
        "cpuCoreLimit": {
          "sourceOfRule": {
            "scope": "project",
            "projectId": 3
          },
          "required": true,
          "canEdit": true,
          "min": 1,
          "max": 1,
          "step": 1,
          "defaultFrom": {
            "field": "text",
            "factor": 1
          }
        },
        "cpuCoreRequest": {
          "sourceOfRule": {
            "scope": "project",
            "projectId": 3
          },
          "required": true,
          "canEdit": true,
          "min": 1,
          "max": 1,
          "step": 1,
          "defaultFrom": {
            "field": "text",
            "factor": 1
          }
        },
        "cpuMemoryLimit": {
          "sourceOfRule": {
            "scope": "project",
            "projectId": 3
          },
          "required": true,
          "canEdit": true,
          "min": "text",
          "max": "text",
          "defaultFrom": {
            "field": "text",
            "factor": 1
          }
        },
        "cpuMemoryRequest": {
          "sourceOfRule": {
            "scope": "project",
            "projectId": 3
          },
          "required": true,
          "canEdit": true,
          "min": "text",
          "max": "text",
          "defaultFrom": {
            "field": "text",
            "factor": 1
          }
        },
        "extendedResources": {
          "attributes": {
            "quantity": {
              "required": true,
              "canEdit": false,
              "blocked": false,
              "options": []
            }
          },
          "instances": {
            "sourceOfRule": {
              "scope": "project",
              "projectId": 3
            },
            "canAdd": true,
            "locked": [
              "HOME",
              "USER"
            ]
          }
        },
        "gpuDevicesRequest": {
          "sourceOfRule": {
            "scope": "project",
            "projectId": 3
          },
          "required": true,
          "canEdit": true,
          "min": 1,
          "max": 1,
          "step": 1,
          "defaultFrom": {
            "field": "text",
            "factor": 1
          }
        },
        "gpuMemoryLimit": {
          "sourceOfRule": {
            "scope": "project",
            "projectId": 3
          },
          "required": true,
          "canEdit": true,
          "min": "text",
          "max": "text",
          "defaultFrom": {
            "field": "text",
            "factor": 1
          }
        },
        "gpuMemoryRequest": {
          "sourceOfRule": {
            "scope": "project",
            "projectId": 3
          },
          "required": true,
          "canEdit": true,
          "min": "text",
          "max": "text",
          "defaultFrom": {
            "field": "text",
            "factor": 1
          }
        },
        "gpuPortionLimit": {
          "sourceOfRule": {
            "scope": "project",
            "projectId": 3
          },
          "required": true,
          "canEdit": true,
          "min": 1,
          "max": 1,
          "step": 1,
          "defaultFrom": {
            "field": "text",
            "factor": 1
          }
        },
        "gpuPortionRequest": {
          "sourceOfRule": {
            "scope": "project",
            "projectId": 3
          },
          "required": true,
          "canEdit": true,
          "min": 1,
          "max": 1,
          "step": 1,
          "defaultFrom": {
            "field": "text",
            "factor": 1
          }
        },
        "gpuRequestType": {
          "required": true,
          "canEdit": false,
          "blocked": false,
          "options": []
        },
        "largeShmRequest": {
          "sourceOfRule": {
            "scope": "project",
            "projectId": 3
          },
          "required": true,
          "canEdit": true
        }
      },
      "createHomeDir": {
        "sourceOfRule": {
          "scope": "project",
          "projectId": 3
        },
        "required": true,
        "canEdit": true
      },
      "environmentVariables": {
        "instances": {
          "sourceOfRule": {
            "scope": "project",
            "projectId": 3
          },
          "canAdd": true,
          "locked": [
            "HOME",
            "USER"
          ]
        }
      },
      "exposedUrls": {
        "attributes": {
          "container": {
            "sourceOfRule": {
              "scope": "project",
              "projectId": 3
            },
            "required": true,
            "canEdit": true,
            "min": 1,
            "max": 1,
            "step": 1,
            "defaultFrom": {
              "field": "text",
              "factor": 1
            }
          },
          "customUrl": {
            "sourceOfRule": {
              "scope": "project",
              "projectId": 3
            },
            "required": true,
            "canEdit": true
          },
          "url": {
            "required": true,
            "canEdit": false,
            "blocked": false,
            "options": []
          },
          "authorizedUsers": {
            "sourceOfRule": {
              "scope": "project",
              "projectId": 3
            },
            "required": true,
            "options": [],
            "canEdit": true
          },
          "authorizedGroups": {
            "sourceOfRule": {
              "scope": "project",
              "projectId": 3
            },
            "required": true,
            "options": [],
            "canEdit": true
          },
          "toolType": {
            "required": true,
            "canEdit": false,
            "blocked": false,
            "options": []
          },
          "toolName": {
            "required": true,
            "canEdit": false,
            "blocked": false,
            "options": []
          }
        },
        "instances": {
          "sourceOfRule": {
            "scope": "project",
            "projectId": 3
          },
          "canAdd": true,
          "locked": [
            "HOME",
            "USER"
          ]
        }
      },
      "image": {
        "required": true,
        "canEdit": false,
        "blocked": false,
        "options": []
      },
      "imagePullPolicy": {
        "required": true,
        "canEdit": false,
        "blocked": false,
        "options": []
      },
      "imagePullSecrets": {
        "attributes": {
          "name": {
            "required": true,
            "canEdit": false,
            "blocked": false,
            "options": []
          },
          "userCredentials": {
            "sourceOfRule": {
              "scope": "project",
              "projectId": 3
            },
            "required": true,
            "canEdit": true
          }
        },
        "instances": {
          "sourceOfRule": {
            "scope": "project",
            "projectId": 3
          },
          "canAdd": true,
          "locked": [
            "HOME",
            "USER"
          ]
        }
      },
      "labels": {
        "instances": {
          "sourceOfRule": {
            "scope": "project",
            "projectId": 3
          },
          "canAdd": true,
          "locked": [
            "HOME",
            "USER"
          ]
        }
      },
      "nodeAffinityRequired": {
        "sourceOfRule": {
          "scope": "project",
          "projectId": 3
        },
        "required": true,
        "canEdit": true
      },
      "nodePools": {
        "sourceOfRule": {
          "scope": "project",
          "projectId": 3
        },
        "required": true,
        "options": [],
        "canEdit": true
      },
      "nodeType": {
        "required": true,
        "canEdit": false,
        "blocked": false,
        "options": []
      },
      "parallelism": {
        "sourceOfRule": {
          "scope": "project",
          "projectId": 3
        },
        "required": true,
        "canEdit": true,
        "min": 1,
        "max": 1,
        "step": 1,
        "defaultFrom": {
          "field": "text",
          "factor": 1
        }
      },
      "podAffinity": {
        "type": {
          "required": true,
          "canEdit": false,
          "blocked": false,
          "options": []
        },
        "key": {
          "required": true,
          "canEdit": false,
          "blocked": false,
          "options": []
        }
      },
      "ports": {
        "attributes": {
          "container": {
            "sourceOfRule": {
              "scope": "project",
              "projectId": 3
            },
            "required": true,
            "canEdit": true,
            "min": 1,
            "max": 1,
            "step": 1,
            "defaultFrom": {
              "field": "text",
              "factor": 1
            }
          },
          "serviceType": {
            "required": true,
            "canEdit": false,
            "blocked": false,
            "options": []
          },
          "customExternalPort": {
            "sourceOfRule": {
              "scope": "project",
              "projectId": 3
            },
            "required": true,
            "canEdit": true
          },
          "external": {
            "sourceOfRule": {
              "scope": "project",
              "projectId": 3
            },
            "required": true,
            "canEdit": true,
            "min": 1,
            "max": 1,
            "step": 1,
            "defaultFrom": {
              "field": "text",
              "factor": 1
            }
          },
          "toolType": {
            "required": true,
            "canEdit": false,
            "blocked": false,
            "options": []
          },
          "toolName": {
            "required": true,
            "canEdit": false,
            "blocked": false,
            "options": []
          }
        },
        "instances": {
          "sourceOfRule": {
            "scope": "project",
            "projectId": 3
          },
          "canAdd": true,
          "locked": [
            "HOME",
            "USER"
          ]
        }
      },
      "preemptibility": {
        "required": true,
        "canEdit": false,
        "blocked": false,
        "options": []
      },
      "priorityClass": {
        "required": true,
        "canEdit": false,
        "blocked": false,
        "options": []
      },
      "probes": {
        "readiness": {
          "initialDelaySeconds": {
            "sourceOfRule": {
              "scope": "project",
              "projectId": 3
            },
            "required": true,
            "canEdit": true,
            "min": 1,
            "max": 1,
            "step": 1,
            "defaultFrom": {
              "field": "text",
              "factor": 1
            }
          },
          "periodSeconds": {
            "sourceOfRule": {
              "scope": "project",
              "projectId": 3
            },
            "required": true,
            "canEdit": true,
            "min": 1,
            "max": 1,
            "step": 1,
            "defaultFrom": {
              "field": "text",
              "factor": 1
            }
          },
          "timeoutSeconds": {
            "sourceOfRule": {
              "scope": "project",
              "projectId": 3
            },
            "required": true,
            "canEdit": true,
            "min": 1,
            "max": 1,
            "step": 1,
            "defaultFrom": {
              "field": "text",
              "factor": 1
            }
          },
          "successThreshold": {
            "sourceOfRule": {
              "scope": "project",
              "projectId": 3
            },
            "required": true,
            "canEdit": true,
            "min": 1,
            "max": 1,
            "step": 1,
            "defaultFrom": {
              "field": "text",
              "factor": 1
            }
          },
          "failureThreshold": {
            "sourceOfRule": {
              "scope": "project",
              "projectId": 3
            },
            "required": true,
            "canEdit": true,
            "min": 1,
            "max": 1,
            "step": 1,
            "defaultFrom": {
              "field": "text",
              "factor": 1
            }
          },
          "handler": {
            "httpGet": {
              "path": {
                "required": true,
                "canEdit": false,
                "blocked": false,
                "options": []
              },
              "port": {
                "sourceOfRule": {
                  "scope": "project",
                  "projectId": 3
                },
                "required": true,
                "canEdit": true,
                "min": 1,
                "max": 1,
                "step": 1,
                "defaultFrom": {
                  "field": "text",
                  "factor": 1
                }
              },
              "host": {
                "required": true,
                "canEdit": false,
                "blocked": false,
                "options": []
              },
              "scheme": {
                "required": true,
                "canEdit": false,
                "blocked": false,
                "options": []
              }
            }
          }
        }
      },
      "relatedUrls": {
        "attributes": {
          "url": {
            "required": true,
            "canEdit": false,
            "blocked": false,
            "options": []
          },
          "type": {
            "required": true,
            "canEdit": false,
            "blocked": false,
            "options": []
          },
          "name": {
            "required": true,
            "canEdit": false,
            "blocked": false,
            "options": []
          }
        },
        "instances": {
          "sourceOfRule": {
            "scope": "project",
            "projectId": 3
          },
          "canAdd": true,
          "locked": [
            "HOME",
            "USER"
          ]
        }
      },
      "restartPolicy": {
        "required": true,
        "canEdit": false,
        "blocked": false,
        "options": []
      },
      "security": {
        "allowPrivilegeEscalation": {
          "sourceOfRule": {
            "scope": "project",
            "projectId": 3
          },
          "required": true,
          "canEdit": true
        },
        "capabilities": {
          "sourceOfRule": {
            "scope": "project",
            "projectId": 3
          },
          "required": true,
          "options": [],
          "canEdit": true
        },
        "hostIpc": {
          "sourceOfRule": {
            "scope": "project",
            "projectId": 3
          },
          "required": true,
          "canEdit": true
        },
        "hostNetwork": {
          "sourceOfRule": {
            "scope": "project",
            "projectId": 3
          },
          "required": true,
          "canEdit": true
        },
        "readOnlyRootFilesystem": {
          "sourceOfRule": {
            "scope": "project",
            "projectId": 3
          },
          "required": true,
          "canEdit": true
        },
        "runAsGid": {
          "sourceOfRule": {
            "scope": "project",
            "projectId": 3
          },
          "canEdit": true,
          "min": 1,
          "max": 1,
          "step": 1,
          "defaultFrom": {
            "field": "text",
            "factor": 1
          }
        },
        "runAsNonRoot": {
          "sourceOfRule": {
            "scope": "project",
            "projectId": 3
          },
          "required": true,
          "canEdit": true
        },
        "runAsUid": {
          "sourceOfRule": {
            "scope": "project",
            "projectId": 3
          },
          "canEdit": true,
          "min": 1,
          "max": 1,
          "step": 1,
          "defaultFrom": {
            "field": "text",
            "factor": 1
          }
        },
        "seccompProfileType": {
          "required": true,
          "canEdit": false,
          "blocked": false,
          "options": []
        },
        "supplementalGroups": {
          "required": true,
          "canEdit": false,
          "blocked": false,
          "options": []
        },
        "uidGidSource": {
          "required": true,
          "canEdit": false,
          "blocked": false,
          "options": []
        }
      },
      "stdin": {
        "sourceOfRule": {
          "scope": "project",
          "projectId": 3
        },
        "required": true,
        "canEdit": true
      },
      "storage": {
        "configMapVolume": {
          "attributes": {
            "configMap": {
              "required": true,
              "canEdit": false,
              "blocked": false,
              "options": []
            },
            "mountPath": {
              "required": true,
              "canEdit": false,
              "blocked": false,
              "options": []
            },
            "subPath": {
              "required": true,
              "canEdit": false,
              "blocked": false,
              "options": []
            },
            "defaultMode": {
              "required": true,
              "canEdit": false,
              "blocked": false,
              "options": []
            }
          },
          "instances": {
            "sourceOfRule": {
              "scope": "project",
              "projectId": 3
            },
            "canAdd": true,
            "locked": [
              "HOME",
              "USER"
            ]
          }
        },
        "dataVolume": {
          "attributes": {
            "id": {
              "required": true,
              "canEdit": false,
              "blocked": false,
              "options": []
            },
            "mountPath": {
              "required": true,
              "canEdit": false,
              "blocked": false,
              "options": []
            }
          },
          "instances": {
            "sourceOfRule": {
              "scope": "project",
              "projectId": 3
            },
            "canAdd": true,
            "locked": [
              "HOME",
              "USER"
            ]
          }
        },
        "emptyDirVolume": {
          "attributes": {
            "path": {
              "required": true,
              "canEdit": false,
              "blocked": false,
              "options": []
            },
            "medium": {
              "required": true,
              "canEdit": false,
              "blocked": false,
              "options": []
            },
            "sizeLimit": {
              "required": true,
              "canEdit": false,
              "blocked": false,
              "options": []
            }
          },
          "instances": {
            "sourceOfRule": {
              "scope": "project",
              "projectId": 3
            },
            "canAdd": true,
            "locked": [
              "HOME",
              "USER"
            ]
          }
        },
        "git": {
          "attributes": {
            "repository": {
              "required": true,
              "canEdit": false,
              "blocked": false,
              "options": []
            },
            "branch": {
              "required": true,
              "canEdit": false,
              "blocked": false,
              "options": []
            },
            "revision": {
              "required": true,
              "canEdit": false,
              "blocked": false,
              "options": []
            },
            "path": {
              "required": true,
              "canEdit": false,
              "blocked": false,
              "options": []
            }
          },
          "instances": {
            "sourceOfRule": {
              "scope": "project",
              "projectId": 3
            },
            "canAdd": true,
            "locked": [
              "HOME",
              "USER"
            ]
          }
        },
        "hostPath": {
          "attributes": {
            "path": {
              "required": true,
              "canEdit": false,
              "blocked": false,
              "options": []
            },
            "readOnly": {
              "sourceOfRule": {
                "scope": "project",
                "projectId": 3
              },
              "required": true,
              "canEdit": true
            },
            "mountPath": {
              "required": true,
              "canEdit": false,
              "blocked": false,
              "options": []
            },
            "mountPropagation": {
              "required": true,
              "canEdit": false,
              "blocked": false,
              "options": []
            }
          },
          "instances": {
            "sourceOfRule": {
              "scope": "project",
              "projectId": 3
            },
            "canAdd": true,
            "locked": [
              "HOME",
              "USER"
            ]
          }
        },
        "nfs": {
          "attributes": {
            "path": {
              "required": true,
              "canEdit": false,
              "blocked": false,
              "options": []
            },
            "readOnly": {
              "sourceOfRule": {
                "scope": "project",
                "projectId": 3
              },
              "required": true,
              "canEdit": true
            },
            "server": {
              "required": true,
              "canEdit": false,
              "blocked": false,
              "options": []
            },
            "mountPath": {
              "required": true,
              "canEdit": false,
              "blocked": false,
              "options": []
            }
          },
          "instances": {
            "sourceOfRule": {
              "scope": "project",
              "projectId": 3
            },
            "canAdd": true,
            "locked": [
              "HOME",
              "USER"
            ]
          }
        },
        "pvc": {
          "attributes": {
            "claimName": {
              "required": true,
              "canEdit": false,
              "blocked": false,
              "options": []
            },
            "path": {
              "required": true,
              "canEdit": false,
              "blocked": false,
              "options": []
            },
            "readOnly": {
              "sourceOfRule": {
                "scope": "project",
                "projectId": 3
              },
              "required": true,
              "canEdit": true
            },
            "claimInfo": {
              "size": {
                "required": true,
                "canEdit": false,
                "blocked": false,
                "options": []
              },
              "storageClass": {
                "required": true,
                "canEdit": false,
                "blocked": false,
                "options": []
              },
              "accessModes": {
                "readWriteOnce": {
                  "sourceOfRule": {
                    "scope": "project",
                    "projectId": 3
                  },
                  "required": true,
                  "canEdit": true
                },
                "readOnlyMany": {
                  "sourceOfRule": {
                    "scope": "project",
                    "projectId": 3
                  },
                  "required": true,
                  "canEdit": true
                },
                "readWriteMany": {
                  "sourceOfRule": {
                    "scope": "project",
                    "projectId": 3
                  },
                  "required": true,
                  "canEdit": true
                }
              }
            }
          },
          "instances": {
            "sourceOfRule": {
              "scope": "project",
              "projectId": 3
            },
            "canAdd": true,
            "locked": [
              "HOME",
              "USER"
            ]
          }
        },
        "s3": {
          "attributes": {
            "bucket": {
              "required": true,
              "canEdit": false,
              "blocked": false,
              "options": []
            },
            "path": {
              "required": true,
              "canEdit": false,
              "blocked": false,
              "options": []
            },
            "url": {
              "required": true,
              "canEdit": false,
              "blocked": false,
              "options": []
            }
          },
          "instances": {
            "sourceOfRule": {
              "scope": "project",
              "projectId": 3
            },
            "canAdd": true,
            "locked": [
              "HOME",
              "USER"
            ]
          }
        },
        "secretVolume": {
          "attributes": {
            "secret": {
              "required": true,
              "canEdit": false,
              "blocked": false,
              "options": []
            },
            "mountPath": {
              "required": true,
              "canEdit": false,
              "blocked": false,
              "options": []
            },
            "defaultMode": {
              "required": true,
              "canEdit": false,
              "blocked": false,
              "options": []
            }
          },
          "instances": {
            "sourceOfRule": {
              "scope": "project",
              "projectId": 3
            },
            "canAdd": true,
            "locked": [
              "HOME",
              "USER"
            ]
          }
        }
      },
      "terminateAfterPreemption": {
        "sourceOfRule": {
          "scope": "project",
          "projectId": 3
        },
        "required": true,
        "canEdit": true
      },
      "terminationGracePeriodSeconds": {
        "sourceOfRule": {
          "scope": "project",
          "projectId": 3
        },
        "required": true,
        "canEdit": true,
        "min": 1,
        "max": 1,
        "step": 1,
        "defaultFrom": {
          "field": "text",
          "factor": 1
        }
      },
      "tolerations": {
        "attributes": {
          "operator": {
            "required": true,
            "canEdit": false,
            "blocked": false,
            "options": []
          },
          "key": {
            "required": true,
            "canEdit": false,
            "blocked": false,
            "options": []
          },
          "value": {
            "required": true,
            "canEdit": false,
            "blocked": false,
            "options": []
          },
          "effect": {
            "required": true,
            "canEdit": false,
            "blocked": false,
            "options": []
          },
          "seconds": {
            "sourceOfRule": {
              "scope": "project",
              "projectId": 3
            },
            "required": true,
            "canEdit": true,
            "min": 1,
            "max": 1,
            "step": 1,
            "defaultFrom": {
              "field": "text",
              "factor": 1
            }
          },
          "exclude": {
            "sourceOfRule": {
              "scope": "project",
              "projectId": 3
            },
            "required": true,
            "canEdit": true
          }
        },
        "instances": {
          "sourceOfRule": {
            "scope": "project",
            "projectId": 3
          },
          "canAdd": true,
          "locked": [
            "HOME",
            "USER"
          ]
        }
      },
      "tty": {
        "sourceOfRule": {
          "scope": "project",
          "projectId": 3
        },
        "required": true,
        "canEdit": true
      },
      "workingDir": {
        "required": true,
        "canEdit": false,
        "blocked": false,
        "options": []
      }
    },
    "imposedAssets": [
      "123e4567-e89b-12d3-a456-426614174000"
    ],
    "status": {
      "validation": {
        "errorMessage": "text"
      }
    }
  },
  "effectiveUpdatedAt": "2026-01-01T00:00:00.000Z"
}

Get a workspace policy.

get

Retrieve the details of a workspace policy for a given organizational unit.

Authorizations
AuthorizationstringRequired

Bearer authentication

Query parameters
scopestring · enumRequired

The scope that the policy relates to.

Possible values:
departmentIdstringOptional

Filter using the department id.

Example: 1
projectIdstringOptional

project id to filter by

Example: 1
clusterIdstring · uuidOptional

Filter using the Universally Unique Identifier (UUID) of the cluster.

Example: d73a738f-fab3-430a-8fa3-5241493d7128
Responses
200

Request completed successfully.

application/json
effectiveUpdatedAtstring · date-time · min: 1Optional

The time at which an event occurred. e.g. the time an effective policy has been updated

get/api/v2/policy/workspaces
GET /api/v2/policy/workspaces?scope=tenant HTTP/1.1
Host: app.run.ai
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
  "meta": {
    "id": "123e4567-e89b-12d3-a456-426614174000",
    "tenantId": 1001,
    "clusterId": "71f69d83-ba66-4822-adf5-55ce55efd210",
    "createdBy": "text",
    "createdAt": "2026-01-01T00:00:00.000Z",
    "updatedBy": "text",
    "updatedAt": "2026-01-01T00:00:00.000Z",
    "scope": "system",
    "projectId": 1,
    "departmentId": 2,
    "name": "my-policy"
  },
  "policy": {
    "defaults": {
      "annotations": {
        "instances": [
          {
            "name": "billing",
            "value": "my-billing-unit",
            "exclude": false
          }
        ]
      },
      "args": "-x my-script.py",
      "autoDeletionTimeAfterCompletionSeconds": 15,
      "backoffLimit": 3,
      "category": "text",
      "command": "python",
      "compute": {
        "cpuCoreLimit": 2,
        "cpuCoreRequest": 0.5,
        "cpuMemoryLimit": "30M",
        "cpuMemoryRequest": "20M",
        "extendedResources": {
          "attributes": {
            "resource": "hardware-vendor.example/foo",
            "quantity": 2,
            "exclude": false
          },
          "instances": [
            {
              "resource": "hardware-vendor.example/foo",
              "quantity": 2,
              "exclude": false
            }
          ]
        },
        "gpuDevicesRequest": 1,
        "gpuMemoryLimit": "10M",
        "gpuMemoryRequest": "10M",
        "gpuPortionLimit": 0.5,
        "gpuPortionRequest": 0.5,
        "gpuRequestType": "portion",
        "largeShmRequest": false
      },
      "createHomeDir": true,
      "environmentVariables": {
        "instances": [
          {
            "name": "HOME",
            "value": "/home/my-folder",
            "secret": {
              "name": "postgress_secret",
              "key": "POSTGRES_PASSWORD"
            },
            "configMap": {
              "name": "my-config-map",
              "key": "MY_POSTGRES_SCHEMA"
            },
            "podFieldRef": {
              "path": "metadata.name"
            },
            "userCredential": {
              "name": "my_postgres_user_and_password",
              "key": "POSTGRES_PASSWORD"
            },
            "exclude": false,
            "description": "Home directory of the user."
          }
        ]
      },
      "exposedUrls": {
        "attributes": {
          "container": 8080,
          "url": "https://my-url.com",
          "authorizationType": "authenticatedUsers",
          "authorizedUsers": [
            "user-a",
            "user-b"
          ],
          "authorizedGroups": [
            "group-a",
            "group-b"
          ],
          "toolType": "jupyter",
          "toolName": "my-pytorch",
          "name": "url-instance-a",
          "exclude": false
        },
        "instances": [
          {
            "container": 8080,
            "url": "https://my-url.com",
            "authorizationType": "authenticatedUsers",
            "authorizedUsers": [
              "user-a",
              "user-b"
            ],
            "authorizedGroups": [
              "group-a",
              "group-b"
            ],
            "toolType": "jupyter",
            "toolName": "my-pytorch",
            "name": "url-instance-a",
            "exclude": false
          }
        ]
      },
      "image": "python:3.8",
      "imagePullPolicy": "Always",
      "imagePullSecrets": {
        "instances": [
          {
            "name": "text",
            "userCredential": true,
            "exclude": false
          }
        ]
      },
      "labels": {
        "instances": [
          {
            "name": "stage",
            "value": "initial-research",
            "exclude": false
          }
        ]
      },
      "nodeAffinityRequired": {
        "nodeSelectorTerms": [
          {
            "matchExpressions": [
              {
                "key": "text",
                "operator": "In",
                "values": [
                  "text"
                ]
              }
            ]
          }
        ]
      },
      "nodePools": [
        "my-node-pool-a",
        "my-node-pool-b"
      ],
      "nodeType": "my-node-type",
      "podAffinity": {
        "type": "Required",
        "key": "text"
      },
      "ports": {
        "attributes": {
          "container": 8080,
          "serviceType": "LoadBalancer",
          "external": 30080,
          "toolType": "pytorch",
          "toolName": "my-pytorch",
          "name": "port-instance-a",
          "exclude": false
        },
        "instances": [
          {
            "container": 8080,
            "serviceType": "LoadBalancer",
            "external": 30080,
            "toolType": "pytorch",
            "toolName": "my-pytorch",
            "name": "port-instance-a",
            "exclude": false
          }
        ]
      },
      "preemptibility": "preemptible",
      "priorityClass": "text",
      "probes": {
        "readiness": {
          "initialDelaySeconds": 1,
          "periodSeconds": 1,
          "timeoutSeconds": 1,
          "successThreshold": 1,
          "failureThreshold": 1,
          "handler": {
            "httpGet": {
              "path": "/",
              "port": 1,
              "host": "example.com",
              "scheme": "HTTP"
            }
          }
        }
      },
      "relatedUrls": {
        "attributes": {
          "url": "https://my-url.com",
          "type": "wandb",
          "name": "url-instance-a",
          "exclude": false
        },
        "instances": [
          {
            "url": "https://my-url.com",
            "type": "wandb",
            "name": "url-instance-a",
            "exclude": false
          }
        ]
      },
      "restartPolicy": "Always",
      "security": {
        "allowPrivilegeEscalation": false,
        "capabilities": [
          "CHOWN",
          "KILL"
        ],
        "hostIpc": false,
        "hostNetwork": false,
        "readOnlyRootFilesystem": false,
        "runAsGid": 30,
        "runAsNonRoot": true,
        "runAsUid": 500,
        "seccompProfileType": "RuntimeDefault",
        "supplementalGroups": "2,3,5,8",
        "uidGidSource": "fromTheImage"
      },
      "stdin": true,
      "storage": {
        "configMapVolume": {
          "attributes": {
            "name": "storage-instance-a",
            "configMap": "text",
            "mountPath": "text",
            "subPath": "text",
            "defaultMode": "0644",
            "exclude": false
          },
          "instances": [
            {
              "name": "storage-instance-a",
              "configMap": "text",
              "mountPath": "text",
              "subPath": "text",
              "defaultMode": "0644",
              "exclude": false
            }
          ]
        },
        "dataVolume": {
          "attributes": {
            "id": "123e4567-e89b-12d3-a456-426614174000",
            "mountPath": "/mnt/data",
            "exclude": false
          },
          "instances": [
            {
              "id": "123e4567-e89b-12d3-a456-426614174000",
              "mountPath": "/mnt/data",
              "exclude": false
            }
          ]
        },
        "emptyDirVolume": {
          "attributes": {
            "name": "storage-instance-a",
            "path": "/mnt/emptydir",
            "medium": "text",
            "sizeLimit": "1G",
            "exclude": false
          },
          "instances": [
            {
              "name": "storage-instance-a",
              "path": "/mnt/emptydir",
              "medium": "text",
              "sizeLimit": "1G",
              "exclude": false
            }
          ]
        },
        "git": {
          "attributes": {
            "name": "storage-instance-a",
            "repository": "https://github.com/my-git/my-repo",
            "branch": "main",
            "revision": "text",
            "path": "/container/my-repository",
            "passwordSecret": "my-password-secret",
            "secretKeyOfUser": "User",
            "secretKeyOfPassword": "Password",
            "exclude": false,
            "secretRef": {
              "name": "my-password-secret",
              "authenticationMethod": "password",
              "secretKeyOfUser": "User",
              "secretKeyOfPassword": "Password"
            }
          },
          "instances": [
            {
              "name": "storage-instance-a",
              "repository": "https://github.com/my-git/my-repo",
              "branch": "main",
              "revision": "text",
              "path": "/container/my-repository",
              "passwordSecret": "my-password-secret",
              "secretKeyOfUser": "User",
              "secretKeyOfPassword": "Password",
              "exclude": false,
              "secretRef": {
                "name": "my-password-secret",
                "authenticationMethod": "password",
                "secretKeyOfUser": "User",
                "secretKeyOfPassword": "Password"
              }
            }
          ]
        },
        "hostPath": {
          "attributes": {
            "name": "storage-instance-a",
            "path": "/container/directory",
            "readOnly": true,
            "mountPath": "/local/directory",
            "mountPropagation": "None",
            "exclude": false
          },
          "instances": [
            {
              "name": "storage-instance-a",
              "path": "/container/directory",
              "readOnly": true,
              "mountPath": "/local/directory",
              "mountPropagation": "None",
              "exclude": false
            }
          ]
        },
        "nfs": {
          "attributes": {
            "name": "storage-instance-a",
            "path": "/container/nfs",
            "readOnly": true,
            "server": "my.nfs.com",
            "mountPath": "/local/nfs",
            "exclude": false
          },
          "instances": [
            {
              "name": "storage-instance-a",
              "path": "/container/nfs",
              "readOnly": true,
              "server": "my.nfs.com",
              "mountPath": "/local/nfs",
              "exclude": false
            }
          ]
        },
        "pvc": {
          "attributes": {
            "name": "storage-instance-a",
            "path": "/container/my-claim",
            "existingPvc": false,
            "claimName": "my-claim",
            "readOnly": false,
            "ephemeral": false,
            "claimInfo": {
              "size": "1G",
              "storageClass": "my-storage-class",
              "accessModes": {
                "readWriteOnce": true,
                "readOnlyMany": false,
                "readWriteMany": false
              },
              "volumeMode": "Filesystem",
              "addedAttrValues": [
                {
                  "key": "dnsname",
                  "value": "my.dns.com"
                }
              ]
            },
            "dataSharing": false,
            "exclude": false
          },
          "instances": [
            {
              "name": "storage-instance-a",
              "path": "/container/my-claim",
              "existingPvc": false,
              "claimName": "my-claim",
              "readOnly": false,
              "ephemeral": false,
              "claimInfo": {
                "size": "1G",
                "storageClass": "my-storage-class",
                "accessModes": {
                  "readWriteOnce": true,
                  "readOnlyMany": false,
                  "readWriteMany": false
                },
                "volumeMode": "Filesystem",
                "addedAttrValues": [
                  {
                    "key": "dnsname",
                    "value": "my.dns.com"
                  }
                ]
              },
              "dataSharing": false,
              "exclude": false
            }
          ]
        },
        "s3": {
          "attributes": {
            "name": "storage-instance-a",
            "bucket": "my-bucket",
            "path": "/container/my-bucket",
            "url": "https://s3.amazonaws.com",
            "accessKeySecret": "my-access-key-secret",
            "secretKeyOfAccessKeyId": "AccessKeyId",
            "secretKeyOfSecretKey": "SecretKey",
            "exclude": false
          },
          "instances": [
            {
              "name": "storage-instance-a",
              "bucket": "my-bucket",
              "path": "/container/my-bucket",
              "url": "https://s3.amazonaws.com",
              "accessKeySecret": "my-access-key-secret",
              "secretKeyOfAccessKeyId": "AccessKeyId",
              "secretKeyOfSecretKey": "SecretKey",
              "exclude": false
            }
          ]
        },
        "secretVolume": {
          "attributes": {
            "name": "storage-instance-a",
            "mountPath": "text",
            "defaultMode": "0644",
            "secret": "text",
            "exclude": false
          },
          "instances": [
            {
              "name": "storage-instance-a",
              "mountPath": "text",
              "defaultMode": "0644",
              "secret": "text",
              "exclude": false
            }
          ]
        }
      },
      "terminateAfterPreemption": false,
      "terminationGracePeriodSeconds": 20,
      "tolerations": {
        "attributes": {
          "name": "text",
          "operator": "Equal",
          "key": "text",
          "value": "text",
          "effect": "NoSchedule",
          "seconds": 1,
          "exclude": false
        },
        "instances": [
          {
            "name": "text",
            "operator": "Equal",
            "key": "text",
            "value": "text",
            "effect": "NoSchedule",
            "seconds": 1,
            "exclude": false
          }
        ]
      },
      "tty": true,
      "workingDir": "/home/myfolder"
    },
    "rules": {
      "annotations": {
        "instances": {
          "sourceOfRule": {
            "scope": "project",
            "projectId": 3
          },
          "canAdd": true,
          "locked": [
            "HOME",
            "USER"
          ]
        }
      },
      "args": {
        "required": true,
        "canEdit": false,
        "blocked": false,
        "options": []
      },
      "autoDeletionTimeAfterCompletionSeconds": {
        "sourceOfRule": {
          "scope": "project",
          "projectId": 3
        },
        "required": true,
        "canEdit": true,
        "min": 1,
        "max": 1,
        "step": 1,
        "defaultFrom": {
          "field": "text",
          "factor": 1
        }
      },
      "backoffLimit": {
        "sourceOfRule": {
          "scope": "project",
          "projectId": 3
        },
        "required": true,
        "canEdit": true,
        "min": 1,
        "max": 1,
        "step": 1,
        "defaultFrom": {
          "field": "text",
          "factor": 1
        }
      },
      "category": {
        "required": true,
        "canEdit": false,
        "blocked": false,
        "options": []
      },
      "command": {
        "required": true,
        "canEdit": false,
        "blocked": false,
        "options": []
      },
      "compute": {
        "cpuCoreLimit": {
          "sourceOfRule": {
            "scope": "project",
            "projectId": 3
          },
          "required": true,
          "canEdit": true,
          "min": 1,
          "max": 1,
          "step": 1,
          "defaultFrom": {
            "field": "text",
            "factor": 1
          }
        },
        "cpuCoreRequest": {
          "sourceOfRule": {
            "scope": "project",
            "projectId": 3
          },
          "required": true,
          "canEdit": true,
          "min": 1,
          "max": 1,
          "step": 1,
          "defaultFrom": {
            "field": "text",
            "factor": 1
          }
        },
        "cpuMemoryLimit": {
          "sourceOfRule": {
            "scope": "project",
            "projectId": 3
          },
          "required": true,
          "canEdit": true,
          "min": "text",
          "max": "text",
          "defaultFrom": {
            "field": "text",
            "factor": 1
          }
        },
        "cpuMemoryRequest": {
          "sourceOfRule": {
            "scope": "project",
            "projectId": 3
          },
          "required": true,
          "canEdit": true,
          "min": "text",
          "max": "text",
          "defaultFrom": {
            "field": "text",
            "factor": 1
          }
        },
        "extendedResources": {
          "attributes": {
            "quantity": {
              "required": true,
              "canEdit": false,
              "blocked": false,
              "options": []
            }
          },
          "instances": {
            "sourceOfRule": {
              "scope": "project",
              "projectId": 3
            },
            "canAdd": true,
            "locked": [
              "HOME",
              "USER"
            ]
          }
        },
        "gpuDevicesRequest": {
          "sourceOfRule": {
            "scope": "project",
            "projectId": 3
          },
          "required": true,
          "canEdit": true,
          "min": 1,
          "max": 1,
          "step": 1,
          "defaultFrom": {
            "field": "text",
            "factor": 1
          }
        },
        "gpuMemoryLimit": {
          "sourceOfRule": {
            "scope": "project",
            "projectId": 3
          },
          "required": true,
          "canEdit": true,
          "min": "text",
          "max": "text",
          "defaultFrom": {
            "field": "text",
            "factor": 1
          }
        },
        "gpuMemoryRequest": {
          "sourceOfRule": {
            "scope": "project",
            "projectId": 3
          },
          "required": true,
          "canEdit": true,
          "min": "text",
          "max": "text",
          "defaultFrom": {
            "field": "text",
            "factor": 1
          }
        },
        "gpuPortionLimit": {
          "sourceOfRule": {
            "scope": "project",
            "projectId": 3
          },
          "required": true,
          "canEdit": true,
          "min": 1,
          "max": 1,
          "step": 1,
          "defaultFrom": {
            "field": "text",
            "factor": 1
          }
        },
        "gpuPortionRequest": {
          "sourceOfRule": {
            "scope": "project",
            "projectId": 3
          },
          "required": true,
          "canEdit": true,
          "min": 1,
          "max": 1,
          "step": 1,
          "defaultFrom": {
            "field": "text",
            "factor": 1
          }
        },
        "gpuRequestType": {
          "required": true,
          "canEdit": false,
          "blocked": false,
          "options": []
        },
        "largeShmRequest": {
          "sourceOfRule": {
            "scope": "project",
            "projectId": 3
          },
          "required": true,
          "canEdit": true
        }
      },
      "createHomeDir": {
        "sourceOfRule": {
          "scope": "project",
          "projectId": 3
        },
        "required": true,
        "canEdit": true
      },
      "environmentVariables": {
        "instances": {
          "sourceOfRule": {
            "scope": "project",
            "projectId": 3
          },
          "canAdd": true,
          "locked": [
            "HOME",
            "USER"
          ]
        }
      },
      "exposedUrls": {
        "attributes": {
          "container": {
            "sourceOfRule": {
              "scope": "project",
              "projectId": 3
            },
            "required": true,
            "canEdit": true,
            "min": 1,
            "max": 1,
            "step": 1,
            "defaultFrom": {
              "field": "text",
              "factor": 1
            }
          },
          "customUrl": {
            "sourceOfRule": {
              "scope": "project",
              "projectId": 3
            },
            "required": true,
            "canEdit": true
          },
          "url": {
            "required": true,
            "canEdit": false,
            "blocked": false,
            "options": []
          },
          "authorizedUsers": {
            "sourceOfRule": {
              "scope": "project",
              "projectId": 3
            },
            "required": true,
            "options": [],
            "canEdit": true
          },
          "authorizedGroups": {
            "sourceOfRule": {
              "scope": "project",
              "projectId": 3
            },
            "required": true,
            "options": [],
            "canEdit": true
          },
          "toolType": {
            "required": true,
            "canEdit": false,
            "blocked": false,
            "options": []
          },
          "toolName": {
            "required": true,
            "canEdit": false,
            "blocked": false,
            "options": []
          }
        },
        "instances": {
          "sourceOfRule": {
            "scope": "project",
            "projectId": 3
          },
          "canAdd": true,
          "locked": [
            "HOME",
            "USER"
          ]
        }
      },
      "image": {
        "required": true,
        "canEdit": false,
        "blocked": false,
        "options": []
      },
      "imagePullPolicy": {
        "required": true,
        "canEdit": false,
        "blocked": false,
        "options": []
      },
      "imagePullSecrets": {
        "attributes": {
          "name": {
            "required": true,
            "canEdit": false,
            "blocked": false,
            "options": []
          },
          "userCredentials": {
            "sourceOfRule": {
              "scope": "project",
              "projectId": 3
            },
            "required": true,
            "canEdit": true
          }
        },
        "instances": {
          "sourceOfRule": {
            "scope": "project",
            "projectId": 3
          },
          "canAdd": true,
          "locked": [
            "HOME",
            "USER"
          ]
        }
      },
      "labels": {
        "instances": {
          "sourceOfRule": {
            "scope": "project",
            "projectId": 3
          },
          "canAdd": true,
          "locked": [
            "HOME",
            "USER"
          ]
        }
      },
      "nodeAffinityRequired": {
        "sourceOfRule": {
          "scope": "project",
          "projectId": 3
        },
        "required": true,
        "canEdit": true
      },
      "nodePools": {
        "sourceOfRule": {
          "scope": "project",
          "projectId": 3
        },
        "required": true,
        "options": [],
        "canEdit": true
      },
      "nodeType": {
        "required": true,
        "canEdit": false,
        "blocked": false,
        "options": []
      },
      "podAffinity": {
        "type": {
          "required": true,
          "canEdit": false,
          "blocked": false,
          "options": []
        },
        "key": {
          "required": true,
          "canEdit": false,
          "blocked": false,
          "options": []
        }
      },
      "ports": {
        "attributes": {
          "container": {
            "sourceOfRule": {
              "scope": "project",
              "projectId": 3
            },
            "required": true,
            "canEdit": true,
            "min": 1,
            "max": 1,
            "step": 1,
            "defaultFrom": {
              "field": "text",
              "factor": 1
            }
          },
          "serviceType": {
            "required": true,
            "canEdit": false,
            "blocked": false,
            "options": []
          },
          "customExternalPort": {
            "sourceOfRule": {
              "scope": "project",
              "projectId": 3
            },
            "required": true,
            "canEdit": true
          },
          "external": {
            "sourceOfRule": {
              "scope": "project",
              "projectId": 3
            },
            "required": true,
            "canEdit": true,
            "min": 1,
            "max": 1,
            "step": 1,
            "defaultFrom": {
              "field": "text",
              "factor": 1
            }
          },
          "toolType": {
            "required": true,
            "canEdit": false,
            "blocked": false,
            "options": []
          },
          "toolName": {
            "required": true,
            "canEdit": false,
            "blocked": false,
            "options": []
          }
        },
        "instances": {
          "sourceOfRule": {
            "scope": "project",
            "projectId": 3
          },
          "canAdd": true,
          "locked": [
            "HOME",
            "USER"
          ]
        }
      },
      "preemptibility": {
        "required": true,
        "canEdit": false,
        "blocked": false,
        "options": []
      },
      "priorityClass": {
        "required": true,
        "canEdit": false,
        "blocked": false,
        "options": []
      },
      "probes": {
        "readiness": {
          "initialDelaySeconds": {
            "sourceOfRule": {
              "scope": "project",
              "projectId": 3
            },
            "required": true,
            "canEdit": true,
            "min": 1,
            "max": 1,
            "step": 1,
            "defaultFrom": {
              "field": "text",
              "factor": 1
            }
          },
          "periodSeconds": {
            "sourceOfRule": {
              "scope": "project",
              "projectId": 3
            },
            "required": true,
            "canEdit": true,
            "min": 1,
            "max": 1,
            "step": 1,
            "defaultFrom": {
              "field": "text",
              "factor": 1
            }
          },
          "timeoutSeconds": {
            "sourceOfRule": {
              "scope": "project",
              "projectId": 3
            },
            "required": true,
            "canEdit": true,
            "min": 1,
            "max": 1,
            "step": 1,
            "defaultFrom": {
              "field": "text",
              "factor": 1
            }
          },
          "successThreshold": {
            "sourceOfRule": {
              "scope": "project",
              "projectId": 3
            },
            "required": true,
            "canEdit": true,
            "min": 1,
            "max": 1,
            "step": 1,
            "defaultFrom": {
              "field": "text",
              "factor": 1
            }
          },
          "failureThreshold": {
            "sourceOfRule": {
              "scope": "project",
              "projectId": 3
            },
            "required": true,
            "canEdit": true,
            "min": 1,
            "max": 1,
            "step": 1,
            "defaultFrom": {
              "field": "text",
              "factor": 1
            }
          },
          "handler": {
            "httpGet": {
              "path": {
                "required": true,
                "canEdit": false,
                "blocked": false,
                "options": []
              },
              "port": {
                "sourceOfRule": {
                  "scope": "project",
                  "projectId": 3
                },
                "required": true,
                "canEdit": true,
                "min": 1,
                "max": 1,
                "step": 1,
                "defaultFrom": {
                  "field": "text",
                  "factor": 1
                }
              },
              "host": {
                "required": true,
                "canEdit": false,
                "blocked": false,
                "options": []
              },
              "scheme": {
                "required": true,
                "canEdit": false,
                "blocked": false,
                "options": []
              }
            }
          }
        }
      },
      "relatedUrls": {
        "attributes": {
          "url": {
            "required": true,
            "canEdit": false,
            "blocked": false,
            "options": []
          },
          "type": {
            "required": true,
            "canEdit": false,
            "blocked": false,
            "options": []
          },
          "name": {
            "required": true,
            "canEdit": false,
            "blocked": false,
            "options": []
          }
        },
        "instances": {
          "sourceOfRule": {
            "scope": "project",
            "projectId": 3
          },
          "canAdd": true,
          "locked": [
            "HOME",
            "USER"
          ]
        }
      },
      "restartPolicy": {
        "required": true,
        "canEdit": false,
        "blocked": false,
        "options": []
      },
      "security": {
        "allowPrivilegeEscalation": {
          "sourceOfRule": {
            "scope": "project",
            "projectId": 3
          },
          "required": true,
          "canEdit": true
        },
        "capabilities": {
          "sourceOfRule": {
            "scope": "project",
            "projectId": 3
          },
          "required": true,
          "options": [],
          "canEdit": true
        },
        "hostIpc": {
          "sourceOfRule": {
            "scope": "project",
            "projectId": 3
          },
          "required": true,
          "canEdit": true
        },
        "hostNetwork": {
          "sourceOfRule": {
            "scope": "project",
            "projectId": 3
          },
          "required": true,
          "canEdit": true
        },
        "readOnlyRootFilesystem": {
          "sourceOfRule": {
            "scope": "project",
            "projectId": 3
          },
          "required": true,
          "canEdit": true
        },
        "runAsGid": {
          "sourceOfRule": {
            "scope": "project",
            "projectId": 3
          },
          "canEdit": true,
          "min": 1,
          "max": 1,
          "step": 1,
          "defaultFrom": {
            "field": "text",
            "factor": 1
          }
        },
        "runAsNonRoot": {
          "sourceOfRule": {
            "scope": "project",
            "projectId": 3
          },
          "required": true,
          "canEdit": true
        },
        "runAsUid": {
          "sourceOfRule": {
            "scope": "project",
            "projectId": 3
          },
          "canEdit": true,
          "min": 1,
          "max": 1,
          "step": 1,
          "defaultFrom": {
            "field": "text",
            "factor": 1
          }
        },
        "seccompProfileType": {
          "required": true,
          "canEdit": false,
          "blocked": false,
          "options": []
        },
        "supplementalGroups": {
          "required": true,
          "canEdit": false,
          "blocked": false,
          "options": []
        },
        "uidGidSource": {
          "required": true,
          "canEdit": false,
          "blocked": false,
          "options": []
        }
      },
      "stdin": {
        "sourceOfRule": {
          "scope": "project",
          "projectId": 3
        },
        "required": true,
        "canEdit": true
      },
      "storage": {
        "configMapVolume": {
          "attributes": {
            "configMap": {
              "required": true,
              "canEdit": false,
              "blocked": false,
              "options": []
            },
            "mountPath": {
              "required": true,
              "canEdit": false,
              "blocked": false,
              "options": []
            },
            "subPath": {
              "required": true,
              "canEdit": false,
              "blocked": false,
              "options": []
            },
            "defaultMode": {
              "required": true,
              "canEdit": false,
              "blocked": false,
              "options": []
            }
          },
          "instances": {
            "sourceOfRule": {
              "scope": "project",
              "projectId": 3
            },
            "canAdd": true,
            "locked": [
              "HOME",
              "USER"
            ]
          }
        },
        "dataVolume": {
          "attributes": {
            "id": {
              "required": true,
              "canEdit": false,
              "blocked": false,
              "options": []
            },
            "mountPath": {
              "required": true,
              "canEdit": false,
              "blocked": false,
              "options": []
            }
          },
          "instances": {
            "sourceOfRule": {
              "scope": "project",
              "projectId": 3
            },
            "canAdd": true,
            "locked": [
              "HOME",
              "USER"
            ]
          }
        },
        "emptyDirVolume": {
          "attributes": {
            "path": {
              "required": true,
              "canEdit": false,
              "blocked": false,
              "options": []
            },
            "medium": {
              "required": true,
              "canEdit": false,
              "blocked": false,
              "options": []
            },
            "sizeLimit": {
              "required": true,
              "canEdit": false,
              "blocked": false,
              "options": []
            }
          },
          "instances": {
            "sourceOfRule": {
              "scope": "project",
              "projectId": 3
            },
            "canAdd": true,
            "locked": [
              "HOME",
              "USER"
            ]
          }
        },
        "git": {
          "attributes": {
            "repository": {
              "required": true,
              "canEdit": false,
              "blocked": false,
              "options": []
            },
            "branch": {
              "required": true,
              "canEdit": false,
              "blocked": false,
              "options": []
            },
            "revision": {
              "required": true,
              "canEdit": false,
              "blocked": false,
              "options": []
            },
            "path": {
              "required": true,
              "canEdit": false,
              "blocked": false,
              "options": []
            }
          },
          "instances": {
            "sourceOfRule": {
              "scope": "project",
              "projectId": 3
            },
            "canAdd": true,
            "locked": [
              "HOME",
              "USER"
            ]
          }
        },
        "hostPath": {
          "attributes": {
            "path": {
              "required": true,
              "canEdit": false,
              "blocked": false,
              "options": []
            },
            "readOnly": {
              "sourceOfRule": {
                "scope": "project",
                "projectId": 3
              },
              "required": true,
              "canEdit": true
            },
            "mountPath": {
              "required": true,
              "canEdit": false,
              "blocked": false,
              "options": []
            },
            "mountPropagation": {
              "required": true,
              "canEdit": false,
              "blocked": false,
              "options": []
            }
          },
          "instances": {
            "sourceOfRule": {
              "scope": "project",
              "projectId": 3
            },
            "canAdd": true,
            "locked": [
              "HOME",
              "USER"
            ]
          }
        },
        "nfs": {
          "attributes": {
            "path": {
              "required": true,
              "canEdit": false,
              "blocked": false,
              "options": []
            },
            "readOnly": {
              "sourceOfRule": {
                "scope": "project",
                "projectId": 3
              },
              "required": true,
              "canEdit": true
            },
            "server": {
              "required": true,
              "canEdit": false,
              "blocked": false,
              "options": []
            },
            "mountPath": {
              "required": true,
              "canEdit": false,
              "blocked": false,
              "options": []
            }
          },
          "instances": {
            "sourceOfRule": {
              "scope": "project",
              "projectId": 3
            },
            "canAdd": true,
            "locked": [
              "HOME",
              "USER"
            ]
          }
        },
        "pvc": {
          "attributes": {
            "claimName": {
              "required": true,
              "canEdit": false,
              "blocked": false,
              "options": []
            },
            "path": {
              "required": true,
              "canEdit": false,
              "blocked": false,
              "options": []
            },
            "readOnly": {
              "sourceOfRule": {
                "scope": "project",
                "projectId": 3
              },
              "required": true,
              "canEdit": true
            },
            "claimInfo": {
              "size": {
                "required": true,
                "canEdit": false,
                "blocked": false,
                "options": []
              },
              "storageClass": {
                "required": true,
                "canEdit": false,
                "blocked": false,
                "options": []
              },
              "accessModes": {
                "readWriteOnce": {
                  "sourceOfRule": {
                    "scope": "project",
                    "projectId": 3
                  },
                  "required": true,
                  "canEdit": true
                },
                "readOnlyMany": {
                  "sourceOfRule": {
                    "scope": "project",
                    "projectId": 3
                  },
                  "required": true,
                  "canEdit": true
                },
                "readWriteMany": {
                  "sourceOfRule": {
                    "scope": "project",
                    "projectId": 3
                  },
                  "required": true,
                  "canEdit": true
                }
              }
            }
          },
          "instances": {
            "sourceOfRule": {
              "scope": "project",
              "projectId": 3
            },
            "canAdd": true,
            "locked": [
              "HOME",
              "USER"
            ]
          }
        },
        "s3": {
          "attributes": {
            "bucket": {
              "required": true,
              "canEdit": false,
              "blocked": false,
              "options": []
            },
            "path": {
              "required": true,
              "canEdit": false,
              "blocked": false,
              "options": []
            },
            "url": {
              "required": true,
              "canEdit": false,
              "blocked": false,
              "options": []
            }
          },
          "instances": {
            "sourceOfRule": {
              "scope": "project",
              "projectId": 3
            },
            "canAdd": true,
            "locked": [
              "HOME",
              "USER"
            ]
          }
        },
        "secretVolume": {
          "attributes": {
            "secret": {
              "required": true,
              "canEdit": false,
              "blocked": false,
              "options": []
            },
            "mountPath": {
              "required": true,
              "canEdit": false,
              "blocked": false,
              "options": []
            },
            "defaultMode": {
              "required": true,
              "canEdit": false,
              "blocked": false,
              "options": []
            }
          },
          "instances": {
            "sourceOfRule": {
              "scope": "project",
              "projectId": 3
            },
            "canAdd": true,
            "locked": [
              "HOME",
              "USER"
            ]
          }
        }
      },
      "terminateAfterPreemption": {
        "sourceOfRule": {
          "scope": "project",
          "projectId": 3
        },
        "required": true,
        "canEdit": true
      },
      "terminationGracePeriodSeconds": {
        "sourceOfRule": {
          "scope": "project",
          "projectId": 3
        },
        "required": true,
        "canEdit": true,
        "min": 1,
        "max": 1,
        "step": 1,
        "defaultFrom": {
          "field": "text",
          "factor": 1
        }
      },
      "tolerations": {
        "attributes": {
          "operator": {
            "required": true,
            "canEdit": false,
            "blocked": false,
            "options": []
          },
          "key": {
            "required": true,
            "canEdit": false,
            "blocked": false,
            "options": []
          },
          "value": {
            "required": true,
            "canEdit": false,
            "blocked": false,
            "options": []
          },
          "effect": {
            "required": true,
            "canEdit": false,
            "blocked": false,
            "options": []
          },
          "seconds": {
            "sourceOfRule": {
              "scope": "project",
              "projectId": 3
            },
            "required": true,
            "canEdit": true,
            "min": 1,
            "max": 1,
            "step": 1,
            "defaultFrom": {
              "field": "text",
              "factor": 1
            }
          },
          "exclude": {
            "sourceOfRule": {
              "scope": "project",
              "projectId": 3
            },
            "required": true,
            "canEdit": true
          }
        },
        "instances": {
          "sourceOfRule": {
            "scope": "project",
            "projectId": 3
          },
          "canAdd": true,
          "locked": [
            "HOME",
            "USER"
          ]
        }
      },
      "tty": {
        "sourceOfRule": {
          "scope": "project",
          "projectId": 3
        },
        "required": true,
        "canEdit": true
      },
      "workingDir": {
        "required": true,
        "canEdit": false,
        "blocked": false,
        "options": []
      }
    },
    "imposedAssets": [
      "123e4567-e89b-12d3-a456-426614174000"
    ],
    "status": {
      "validation": {
        "errorMessage": "text"
      }
    }
  },
  "effective": {
    "defaults": {
      "annotations": {
        "instances": [
          {
            "name": "billing",
            "value": "my-billing-unit",
            "exclude": false
          }
        ]
      },
      "args": "-x my-script.py",
      "autoDeletionTimeAfterCompletionSeconds": 15,
      "backoffLimit": 3,
      "category": "text",
      "command": "python",
      "compute": {
        "cpuCoreLimit": 2,
        "cpuCoreRequest": 0.5,
        "cpuMemoryLimit": "30M",
        "cpuMemoryRequest": "20M",
        "extendedResources": {
          "attributes": {
            "resource": "hardware-vendor.example/foo",
            "quantity": 2,
            "exclude": false
          },
          "instances": [
            {
              "resource": "hardware-vendor.example/foo",
              "quantity": 2,
              "exclude": false
            }
          ]
        },
        "gpuDevicesRequest": 1,
        "gpuMemoryLimit": "10M",
        "gpuMemoryRequest": "10M",
        "gpuPortionLimit": 0.5,
        "gpuPortionRequest": 0.5,
        "gpuRequestType": "portion",
        "largeShmRequest": false
      },
      "createHomeDir": true,
      "environmentVariables": {
        "instances": [
          {
            "name": "HOME",
            "value": "/home/my-folder",
            "secret": {
              "name": "postgress_secret",
              "key": "POSTGRES_PASSWORD"
            },
            "configMap": {
              "name": "my-config-map",
              "key": "MY_POSTGRES_SCHEMA"
            },
            "podFieldRef": {
              "path": "metadata.name"
            },
            "userCredential": {
              "name": "my_postgres_user_and_password",
              "key": "POSTGRES_PASSWORD"
            },
            "exclude": false,
            "description": "Home directory of the user."
          }
        ]
      },
      "exposedUrls": {
        "attributes": {
          "container": 8080,
          "url": "https://my-url.com",
          "authorizationType": "authenticatedUsers",
          "authorizedUsers": [
            "user-a",
            "user-b"
          ],
          "authorizedGroups": [
            "group-a",
            "group-b"
          ],
          "toolType": "jupyter",
          "toolName": "my-pytorch",
          "name": "url-instance-a",
          "exclude": false
        },
        "instances": [
          {
            "container": 8080,
            "url": "https://my-url.com",
            "authorizationType": "authenticatedUsers",
            "authorizedUsers": [
              "user-a",
              "user-b"
            ],
            "authorizedGroups": [
              "group-a",
              "group-b"
            ],
            "toolType": "jupyter",
            "toolName": "my-pytorch",
            "name": "url-instance-a",
            "exclude": false
          }
        ]
      },
      "image": "python:3.8",
      "imagePullPolicy": "Always",
      "imagePullSecrets": {
        "instances": [
          {
            "name": "text",
            "userCredential": true,
            "exclude": false
          }
        ]
      },
      "labels": {
        "instances": [
          {
            "name": "stage",
            "value": "initial-research",
            "exclude": false
          }
        ]
      },
      "nodeAffinityRequired": {
        "nodeSelectorTerms": [
          {
            "matchExpressions": [
              {
                "key": "text",
                "operator": "In",
                "values": [
                  "text"
                ]
              }
            ]
          }
        ]
      },
      "nodePools": [
        "my-node-pool-a",
        "my-node-pool-b"
      ],
      "nodeType": "my-node-type",
      "podAffinity": {
        "type": "Required",
        "key": "text"
      },
      "ports": {
        "attributes": {
          "container": 8080,
          "serviceType": "LoadBalancer",
          "external": 30080,
          "toolType": "pytorch",
          "toolName": "my-pytorch",
          "name": "port-instance-a",
          "exclude": false
        },
        "instances": [
          {
            "container": 8080,
            "serviceType": "LoadBalancer",
            "external": 30080,
            "toolType": "pytorch",
            "toolName": "my-pytorch",
            "name": "port-instance-a",
            "exclude": false
          }
        ]
      },
      "preemptibility": "preemptible",
      "priorityClass": "text",
      "probes": {
        "readiness": {
          "initialDelaySeconds": 1,
          "periodSeconds": 1,
          "timeoutSeconds": 1,
          "successThreshold": 1,
          "failureThreshold": 1,
          "handler": {
            "httpGet": {
              "path": "/",
              "port": 1,
              "host": "example.com",
              "scheme": "HTTP"
            }
          }
        }
      },
      "relatedUrls": {
        "attributes": {
          "url": "https://my-url.com",
          "type": "wandb",
          "name": "url-instance-a",
          "exclude": false
        },
        "instances": [
          {
            "url": "https://my-url.com",
            "type": "wandb",
            "name": "url-instance-a",
            "exclude": false
          }
        ]
      },
      "restartPolicy": "Always",
      "security": {
        "allowPrivilegeEscalation": false,
        "capabilities": [
          "CHOWN",
          "KILL"
        ],
        "hostIpc": false,
        "hostNetwork": false,
        "readOnlyRootFilesystem": false,
        "runAsGid": 30,
        "runAsNonRoot": true,
        "runAsUid": 500,
        "seccompProfileType": "RuntimeDefault",
        "supplementalGroups": "2,3,5,8",
        "uidGidSource": "fromTheImage"
      },
      "stdin": true,
      "storage": {
        "configMapVolume": {
          "attributes": {
            "name": "storage-instance-a",
            "configMap": "text",
            "mountPath": "text",
            "subPath": "text",
            "defaultMode": "0644",
            "exclude": false
          },
          "instances": [
            {
              "name": "storage-instance-a",
              "configMap": "text",
              "mountPath": "text",
              "subPath": "text",
              "defaultMode": "0644",
              "exclude": false
            }
          ]
        },
        "dataVolume": {
          "attributes": {
            "id": "123e4567-e89b-12d3-a456-426614174000",
            "mountPath": "/mnt/data",
            "exclude": false
          },
          "instances": [
            {
              "id": "123e4567-e89b-12d3-a456-426614174000",
              "mountPath": "/mnt/data",
              "exclude": false
            }
          ]
        },
        "emptyDirVolume": {
          "attributes": {
            "name": "storage-instance-a",
            "path": "/mnt/emptydir",
            "medium": "text",
            "sizeLimit": "1G",
            "exclude": false
          },
          "instances": [
            {
              "name": "storage-instance-a",
              "path": "/mnt/emptydir",
              "medium": "text",
              "sizeLimit": "1G",
              "exclude": false
            }
          ]
        },
        "git": {
          "attributes": {
            "name": "storage-instance-a",
            "repository": "https://github.com/my-git/my-repo",
            "branch": "main",
            "revision": "text",
            "path": "/container/my-repository",
            "passwordSecret": "my-password-secret",
            "secretKeyOfUser": "User",
            "secretKeyOfPassword": "Password",
            "exclude": false,
            "secretRef": {
              "name": "my-password-secret",
              "authenticationMethod": "password",
              "secretKeyOfUser": "User",
              "secretKeyOfPassword": "Password"
            }
          },
          "instances": [
            {
              "name": "storage-instance-a",
              "repository": "https://github.com/my-git/my-repo",
              "branch": "main",
              "revision": "text",
              "path": "/container/my-repository",
              "passwordSecret": "my-password-secret",
              "secretKeyOfUser": "User",
              "secretKeyOfPassword": "Password",
              "exclude": false,
              "secretRef": {
                "name": "my-password-secret",
                "authenticationMethod": "password",
                "secretKeyOfUser": "User",
                "secretKeyOfPassword": "Password"
              }
            }
          ]
        },
        "hostPath": {
          "attributes": {
            "name": "storage-instance-a",
            "path": "/container/directory",
            "readOnly": true,
            "mountPath": "/local/directory",
            "mountPropagation": "None",
            "exclude": false
          },
          "instances": [
            {
              "name": "storage-instance-a",
              "path": "/container/directory",
              "readOnly": true,
              "mountPath": "/local/directory",
              "mountPropagation": "None",
              "exclude": false
            }
          ]
        },
        "nfs": {
          "attributes": {
            "name": "storage-instance-a",
            "path": "/container/nfs",
            "readOnly": true,
            "server": "my.nfs.com",
            "mountPath": "/local/nfs",
            "exclude": false
          },
          "instances": [
            {
              "name": "storage-instance-a",
              "path": "/container/nfs",
              "readOnly": true,
              "server": "my.nfs.com",
              "mountPath": "/local/nfs",
              "exclude": false
            }
          ]
        },
        "pvc": {
          "attributes": {
            "name": "storage-instance-a",
            "path": "/container/my-claim",
            "existingPvc": false,
            "claimName": "my-claim",
            "readOnly": false,
            "ephemeral": false,
            "claimInfo": {
              "size": "1G",
              "storageClass": "my-storage-class",
              "accessModes": {
                "readWriteOnce": true,
                "readOnlyMany": false,
                "readWriteMany": false
              },
              "volumeMode": "Filesystem",
              "addedAttrValues": [
                {
                  "key": "dnsname",
                  "value": "my.dns.com"
                }
              ]
            },
            "dataSharing": false,
            "exclude": false
          },
          "instances": [
            {
              "name": "storage-instance-a",
              "path": "/container/my-claim",
              "existingPvc": false,
              "claimName": "my-claim",
              "readOnly": false,
              "ephemeral": false,
              "claimInfo": {
                "size": "1G",
                "storageClass": "my-storage-class",
                "accessModes": {
                  "readWriteOnce": true,
                  "readOnlyMany": false,
                  "readWriteMany": false
                },
                "volumeMode": "Filesystem",
                "addedAttrValues": [
                  {
                    "key": "dnsname",
                    "value": "my.dns.com"
                  }
                ]
              },
              "dataSharing": false,
              "exclude": false
            }
          ]
        },
        "s3": {
          "attributes": {
            "name": "storage-instance-a",
            "bucket": "my-bucket",
            "path": "/container/my-bucket",
            "url": "https://s3.amazonaws.com",
            "accessKeySecret": "my-access-key-secret",
            "secretKeyOfAccessKeyId": "AccessKeyId",
            "secretKeyOfSecretKey": "SecretKey",
            "exclude": false
          },
          "instances": [
            {
              "name": "storage-instance-a",
              "bucket": "my-bucket",
              "path": "/container/my-bucket",
              "url": "https://s3.amazonaws.com",
              "accessKeySecret": "my-access-key-secret",
              "secretKeyOfAccessKeyId": "AccessKeyId",
              "secretKeyOfSecretKey": "SecretKey",
              "exclude": false
            }
          ]
        },
        "secretVolume": {
          "attributes": {
            "name": "storage-instance-a",
            "mountPath": "text",
            "defaultMode": "0644",
            "secret": "text",
            "exclude": false
          },
          "instances": [
            {
              "name": "storage-instance-a",
              "mountPath": "text",
              "defaultMode": "0644",
              "secret": "text",
              "exclude": false
            }
          ]
        }
      },
      "terminateAfterPreemption": false,
      "terminationGracePeriodSeconds": 20,
      "tolerations": {
        "attributes": {
          "name": "text",
          "operator": "Equal",
          "key": "text",
          "value": "text",
          "effect": "NoSchedule",
          "seconds": 1,
          "exclude": false
        },
        "instances": [
          {
            "name": "text",
            "operator": "Equal",
            "key": "text",
            "value": "text",
            "effect": "NoSchedule",
            "seconds": 1,
            "exclude": false
          }
        ]
      },
      "tty": true,
      "workingDir": "/home/myfolder"
    },
    "rules": {
      "annotations": {
        "instances": {
          "sourceOfRule": {
            "scope": "project",
            "projectId": 3
          },
          "canAdd": true,
          "locked": [
            "HOME",
            "USER"
          ]
        }
      },
      "args": {
        "required": true,
        "canEdit": false,
        "blocked": false,
        "options": []
      },
      "autoDeletionTimeAfterCompletionSeconds": {
        "sourceOfRule": {
          "scope": "project",
          "projectId": 3
        },
        "required": true,
        "canEdit": true,
        "min": 1,
        "max": 1,
        "step": 1,
        "defaultFrom": {
          "field": "text",
          "factor": 1
        }
      },
      "backoffLimit": {
        "sourceOfRule": {
          "scope": "project",
          "projectId": 3
        },
        "required": true,
        "canEdit": true,
        "min": 1,
        "max": 1,
        "step": 1,
        "defaultFrom": {
          "field": "text",
          "factor": 1
        }
      },
      "category": {
        "required": true,
        "canEdit": false,
        "blocked": false,
        "options": []
      },
      "command": {
        "required": true,
        "canEdit": false,
        "blocked": false,
        "options": []
      },
      "compute": {
        "cpuCoreLimit": {
          "sourceOfRule": {
            "scope": "project",
            "projectId": 3
          },
          "required": true,
          "canEdit": true,
          "min": 1,
          "max": 1,
          "step": 1,
          "defaultFrom": {
            "field": "text",
            "factor": 1
          }
        },
        "cpuCoreRequest": {
          "sourceOfRule": {
            "scope": "project",
            "projectId": 3
          },
          "required": true,
          "canEdit": true,
          "min": 1,
          "max": 1,
          "step": 1,
          "defaultFrom": {
            "field": "text",
            "factor": 1
          }
        },
        "cpuMemoryLimit": {
          "sourceOfRule": {
            "scope": "project",
            "projectId": 3
          },
          "required": true,
          "canEdit": true,
          "min": "text",
          "max": "text",
          "defaultFrom": {
            "field": "text",
            "factor": 1
          }
        },
        "cpuMemoryRequest": {
          "sourceOfRule": {
            "scope": "project",
            "projectId": 3
          },
          "required": true,
          "canEdit": true,
          "min": "text",
          "max": "text",
          "defaultFrom": {
            "field": "text",
            "factor": 1
          }
        },
        "extendedResources": {
          "attributes": {
            "quantity": {
              "required": true,
              "canEdit": false,
              "blocked": false,
              "options": []
            }
          },
          "instances": {
            "sourceOfRule": {
              "scope": "project",
              "projectId": 3
            },
            "canAdd": true,
            "locked": [
              "HOME",
              "USER"
            ]
          }
        },
        "gpuDevicesRequest": {
          "sourceOfRule": {
            "scope": "project",
            "projectId": 3
          },
          "required": true,
          "canEdit": true,
          "min": 1,
          "max": 1,
          "step": 1,
          "defaultFrom": {
            "field": "text",
            "factor": 1
          }
        },
        "gpuMemoryLimit": {
          "sourceOfRule": {
            "scope": "project",
            "projectId": 3
          },
          "required": true,
          "canEdit": true,
          "min": "text",
          "max": "text",
          "defaultFrom": {
            "field": "text",
            "factor": 1
          }
        },
        "gpuMemoryRequest": {
          "sourceOfRule": {
            "scope": "project",
            "projectId": 3
          },
          "required": true,
          "canEdit": true,
          "min": "text",
          "max": "text",
          "defaultFrom": {
            "field": "text",
            "factor": 1
          }
        },
        "gpuPortionLimit": {
          "sourceOfRule": {
            "scope": "project",
            "projectId": 3
          },
          "required": true,
          "canEdit": true,
          "min": 1,
          "max": 1,
          "step": 1,
          "defaultFrom": {
            "field": "text",
            "factor": 1
          }
        },
        "gpuPortionRequest": {
          "sourceOfRule": {
            "scope": "project",
            "projectId": 3
          },
          "required": true,
          "canEdit": true,
          "min": 1,
          "max": 1,
          "step": 1,
          "defaultFrom": {
            "field": "text",
            "factor": 1
          }
        },
        "gpuRequestType": {
          "required": true,
          "canEdit": false,
          "blocked": false,
          "options": []
        },
        "largeShmRequest": {
          "sourceOfRule": {
            "scope": "project",
            "projectId": 3
          },
          "required": true,
          "canEdit": true
        }
      },
      "createHomeDir": {
        "sourceOfRule": {
          "scope": "project",
          "projectId": 3
        },
        "required": true,
        "canEdit": true
      },
      "environmentVariables": {
        "instances": {
          "sourceOfRule": {
            "scope": "project",
            "projectId": 3
          },
          "canAdd": true,
          "locked": [
            "HOME",
            "USER"
          ]
        }
      },
      "exposedUrls": {
        "attributes": {
          "container": {
            "sourceOfRule": {
              "scope": "project",
              "projectId": 3
            },
            "required": true,
            "canEdit": true,
            "min": 1,
            "max": 1,
            "step": 1,
            "defaultFrom": {
              "field": "text",
              "factor": 1
            }
          },
          "customUrl": {
            "sourceOfRule": {
              "scope": "project",
              "projectId": 3
            },
            "required": true,
            "canEdit": true
          },
          "url": {
            "required": true,
            "canEdit": false,
            "blocked": false,
            "options": []
          },
          "authorizedUsers": {
            "sourceOfRule": {
              "scope": "project",
              "projectId": 3
            },
            "required": true,
            "options": [],
            "canEdit": true
          },
          "authorizedGroups": {
            "sourceOfRule": {
              "scope": "project",
              "projectId": 3
            },
            "required": true,
            "options": [],
            "canEdit": true
          },
          "toolType": {
            "required": true,
            "canEdit": false,
            "blocked": false,
            "options": []
          },
          "toolName": {
            "required": true,
            "canEdit": false,
            "blocked": false,
            "options": []
          }
        },
        "instances": {
          "sourceOfRule": {
            "scope": "project",
            "projectId": 3
          },
          "canAdd": true,
          "locked": [
            "HOME",
            "USER"
          ]
        }
      },
      "image": {
        "required": true,
        "canEdit": false,
        "blocked": false,
        "options": []
      },
      "imagePullPolicy": {
        "required": true,
        "canEdit": false,
        "blocked": false,
        "options": []
      },
      "imagePullSecrets": {
        "attributes": {
          "name": {
            "required": true,
            "canEdit": false,
            "blocked": false,
            "options": []
          },
          "userCredentials": {
            "sourceOfRule": {
              "scope": "project",
              "projectId": 3
            },
            "required": true,
            "canEdit": true
          }
        },
        "instances": {
          "sourceOfRule": {
            "scope": "project",
            "projectId": 3
          },
          "canAdd": true,
          "locked": [
            "HOME",
            "USER"
          ]
        }
      },
      "labels": {
        "instances": {
          "sourceOfRule": {
            "scope": "project",
            "projectId": 3
          },
          "canAdd": true,
          "locked": [
            "HOME",
            "USER"
          ]
        }
      },
      "nodeAffinityRequired": {
        "sourceOfRule": {
          "scope": "project",
          "projectId": 3
        },
        "required": true,
        "canEdit": true
      },
      "nodePools": {
        "sourceOfRule": {
          "scope": "project",
          "projectId": 3
        },
        "required": true,
        "options": [],
        "canEdit": true
      },
      "nodeType": {
        "required": true,
        "canEdit": false,
        "blocked": false,
        "options": []
      },
      "podAffinity": {
        "type": {
          "required": true,
          "canEdit": false,
          "blocked": false,
          "options": []
        },
        "key": {
          "required": true,
          "canEdit": false,
          "blocked": false,
          "options": []
        }
      },
      "ports": {
        "attributes": {
          "container": {
            "sourceOfRule": {
              "scope": "project",
              "projectId": 3
            },
            "required": true,
            "canEdit": true,
            "min": 1,
            "max": 1,
            "step": 1,
            "defaultFrom": {
              "field": "text",
              "factor": 1
            }
          },
          "serviceType": {
            "required": true,
            "canEdit": false,
            "blocked": false,
            "options": []
          },
          "customExternalPort": {
            "sourceOfRule": {
              "scope": "project",
              "projectId": 3
            },
            "required": true,
            "canEdit": true
          },
          "external": {
            "sourceOfRule": {
              "scope": "project",
              "projectId": 3
            },
            "required": true,
            "canEdit": true,
            "min": 1,
            "max": 1,
            "step": 1,
            "defaultFrom": {
              "field": "text",
              "factor": 1
            }
          },
          "toolType": {
            "required": true,
            "canEdit": false,
            "blocked": false,
            "options": []
          },
          "toolName": {
            "required": true,
            "canEdit": false,
            "blocked": false,
            "options": []
          }
        },
        "instances": {
          "sourceOfRule": {
            "scope": "project",
            "projectId": 3
          },
          "canAdd": true,
          "locked": [
            "HOME",
            "USER"
          ]
        }
      },
      "preemptibility": {
        "required": true,
        "canEdit": false,
        "blocked": false,
        "options": []
      },
      "priorityClass": {
        "required": true,
        "canEdit": false,
        "blocked": false,
        "options": []
      },
      "probes": {
        "readiness": {
          "initialDelaySeconds": {
            "sourceOfRule": {
              "scope": "project",
              "projectId": 3
            },
            "required": true,
            "canEdit": true,
            "min": 1,
            "max": 1,
            "step": 1,
            "defaultFrom": {
              "field": "text",
              "factor": 1
            }
          },
          "periodSeconds": {
            "sourceOfRule": {
              "scope": "project",
              "projectId": 3
            },
            "required": true,
            "canEdit": true,
            "min": 1,
            "max": 1,
            "step": 1,
            "defaultFrom": {
              "field": "text",
              "factor": 1
            }
          },
          "timeoutSeconds": {
            "sourceOfRule": {
              "scope": "project",
              "projectId": 3
            },
            "required": true,
            "canEdit": true,
            "min": 1,
            "max": 1,
            "step": 1,
            "defaultFrom": {
              "field": "text",
              "factor": 1
            }
          },
          "successThreshold": {
            "sourceOfRule": {
              "scope": "project",
              "projectId": 3
            },
            "required": true,
            "canEdit": true,
            "min": 1,
            "max": 1,
            "step": 1,
            "defaultFrom": {
              "field": "text",
              "factor": 1
            }
          },
          "failureThreshold": {
            "sourceOfRule": {
              "scope": "project",
              "projectId": 3
            },
            "required": true,
            "canEdit": true,
            "min": 1,
            "max": 1,
            "step": 1,
            "defaultFrom": {
              "field": "text",
              "factor": 1
            }
          },
          "handler": {
            "httpGet": {
              "path": {
                "required": true,
                "canEdit": false,
                "blocked": false,
                "options": []
              },
              "port": {
                "sourceOfRule": {
                  "scope": "project",
                  "projectId": 3
                },
                "required": true,
                "canEdit": true,
                "min": 1,
                "max": 1,
                "step": 1,
                "defaultFrom": {
                  "field": "text",
                  "factor": 1
                }
              },
              "host": {
                "required": true,
                "canEdit": false,
                "blocked": false,
                "options": []
              },
              "scheme": {
                "required": true,
                "canEdit": false,
                "blocked": false,
                "options": []
              }
            }
          }
        }
      },
      "relatedUrls": {
        "attributes": {
          "url": {
            "required": true,
            "canEdit": false,
            "blocked": false,
            "options": []
          },
          "type": {
            "required": true,
            "canEdit": false,
            "blocked": false,
            "options": []
          },
          "name": {
            "required": true,
            "canEdit": false,
            "blocked": false,
            "options": []
          }
        },
        "instances": {
          "sourceOfRule": {
            "scope": "project",
            "projectId": 3
          },
          "canAdd": true,
          "locked": [
            "HOME",
            "USER"
          ]
        }
      },
      "restartPolicy": {
        "required": true,
        "canEdit": false,
        "blocked": false,
        "options": []
      },
      "security": {
        "allowPrivilegeEscalation": {
          "sourceOfRule": {
            "scope": "project",
            "projectId": 3
          },
          "required": true,
          "canEdit": true
        },
        "capabilities": {
          "sourceOfRule": {
            "scope": "project",
            "projectId": 3
          },
          "required": true,
          "options": [],
          "canEdit": true
        },
        "hostIpc": {
          "sourceOfRule": {
            "scope": "project",
            "projectId": 3
          },
          "required": true,
          "canEdit": true
        },
        "hostNetwork": {
          "sourceOfRule": {
            "scope": "project",
            "projectId": 3
          },
          "required": true,
          "canEdit": true
        },
        "readOnlyRootFilesystem": {
          "sourceOfRule": {
            "scope": "project",
            "projectId": 3
          },
          "required": true,
          "canEdit": true
        },
        "runAsGid": {
          "sourceOfRule": {
            "scope": "project",
            "projectId": 3
          },
          "canEdit": true,
          "min": 1,
          "max": 1,
          "step": 1,
          "defaultFrom": {
            "field": "text",
            "factor": 1
          }
        },
        "runAsNonRoot": {
          "sourceOfRule": {
            "scope": "project",
            "projectId": 3
          },
          "required": true,
          "canEdit": true
        },
        "runAsUid": {
          "sourceOfRule": {
            "scope": "project",
            "projectId": 3
          },
          "canEdit": true,
          "min": 1,
          "max": 1,
          "step": 1,
          "defaultFrom": {
            "field": "text",
            "factor": 1
          }
        },
        "seccompProfileType": {
          "required": true,
          "canEdit": false,
          "blocked": false,
          "options": []
        },
        "supplementalGroups": {
          "required": true,
          "canEdit": false,
          "blocked": false,
          "options": []
        },
        "uidGidSource": {
          "required": true,
          "canEdit": false,
          "blocked": false,
          "options": []
        }
      },
      "stdin": {
        "sourceOfRule": {
          "scope": "project",
          "projectId": 3
        },
        "required": true,
        "canEdit": true
      },
      "storage": {
        "configMapVolume": {
          "attributes": {
            "configMap": {
              "required": true,
              "canEdit": false,
              "blocked": false,
              "options": []
            },
            "mountPath": {
              "required": true,
              "canEdit": false,
              "blocked": false,
              "options": []
            },
            "subPath": {
              "required": true,
              "canEdit": false,
              "blocked": false,
              "options": []
            },
            "defaultMode": {
              "required": true,
              "canEdit": false,
              "blocked": false,
              "options": []
            }
          },
          "instances": {
            "sourceOfRule": {
              "scope": "project",
              "projectId": 3
            },
            "canAdd": true,
            "locked": [
              "HOME",
              "USER"
            ]
          }
        },
        "dataVolume": {
          "attributes": {
            "id": {
              "required": true,
              "canEdit": false,
              "blocked": false,
              "options": []
            },
            "mountPath": {
              "required": true,
              "canEdit": false,
              "blocked": false,
              "options": []
            }
          },
          "instances": {
            "sourceOfRule": {
              "scope": "project",
              "projectId": 3
            },
            "canAdd": true,
            "locked": [
              "HOME",
              "USER"
            ]
          }
        },
        "emptyDirVolume": {
          "attributes": {
            "path": {
              "required": true,
              "canEdit": false,
              "blocked": false,
              "options": []
            },
            "medium": {
              "required": true,
              "canEdit": false,
              "blocked": false,
              "options": []
            },
            "sizeLimit": {
              "required": true,
              "canEdit": false,
              "blocked": false,
              "options": []
            }
          },
          "instances": {
            "sourceOfRule": {
              "scope": "project",
              "projectId": 3
            },
            "canAdd": true,
            "locked": [
              "HOME",
              "USER"
            ]
          }
        },
        "git": {
          "attributes": {
            "repository": {
              "required": true,
              "canEdit": false,
              "blocked": false,
              "options": []
            },
            "branch": {
              "required": true,
              "canEdit": false,
              "blocked": false,
              "options": []
            },
            "revision": {
              "required": true,
              "canEdit": false,
              "blocked": false,
              "options": []
            },
            "path": {
              "required": true,
              "canEdit": false,
              "blocked": false,
              "options": []
            }
          },
          "instances": {
            "sourceOfRule": {
              "scope": "project",
              "projectId": 3
            },
            "canAdd": true,
            "locked": [
              "HOME",
              "USER"
            ]
          }
        },
        "hostPath": {
          "attributes": {
            "path": {
              "required": true,
              "canEdit": false,
              "blocked": false,
              "options": []
            },
            "readOnly": {
              "sourceOfRule": {
                "scope": "project",
                "projectId": 3
              },
              "required": true,
              "canEdit": true
            },
            "mountPath": {
              "required": true,
              "canEdit": false,
              "blocked": false,
              "options": []
            },
            "mountPropagation": {
              "required": true,
              "canEdit": false,
              "blocked": false,
              "options": []
            }
          },
          "instances": {
            "sourceOfRule": {
              "scope": "project",
              "projectId": 3
            },
            "canAdd": true,
            "locked": [
              "HOME",
              "USER"
            ]
          }
        },
        "nfs": {
          "attributes": {
            "path": {
              "required": true,
              "canEdit": false,
              "blocked": false,
              "options": []
            },
            "readOnly": {
              "sourceOfRule": {
                "scope": "project",
                "projectId": 3
              },
              "required": true,
              "canEdit": true
            },
            "server": {
              "required": true,
              "canEdit": false,
              "blocked": false,
              "options": []
            },
            "mountPath": {
              "required": true,
              "canEdit": false,
              "blocked": false,
              "options": []
            }
          },
          "instances": {
            "sourceOfRule": {
              "scope": "project",
              "projectId": 3
            },
            "canAdd": true,
            "locked": [
              "HOME",
              "USER"
            ]
          }
        },
        "pvc": {
          "attributes": {
            "claimName": {
              "required": true,
              "canEdit": false,
              "blocked": false,
              "options": []
            },
            "path": {
              "required": true,
              "canEdit": false,
              "blocked": false,
              "options": []
            },
            "readOnly": {
              "sourceOfRule": {
                "scope": "project",
                "projectId": 3
              },
              "required": true,
              "canEdit": true
            },
            "claimInfo": {
              "size": {
                "required": true,
                "canEdit": false,
                "blocked": false,
                "options": []
              },
              "storageClass": {
                "required": true,
                "canEdit": false,
                "blocked": false,
                "options": []
              },
              "accessModes": {
                "readWriteOnce": {
                  "sourceOfRule": {
                    "scope": "project",
                    "projectId": 3
                  },
                  "required": true,
                  "canEdit": true
                },
                "readOnlyMany": {
                  "sourceOfRule": {
                    "scope": "project",
                    "projectId": 3
                  },
                  "required": true,
                  "canEdit": true
                },
                "readWriteMany": {
                  "sourceOfRule": {
                    "scope": "project",
                    "projectId": 3
                  },
                  "required": true,
                  "canEdit": true
                }
              }
            }
          },
          "instances": {
            "sourceOfRule": {
              "scope": "project",
              "projectId": 3
            },
            "canAdd": true,
            "locked": [
              "HOME",
              "USER"
            ]
          }
        },
        "s3": {
          "attributes": {
            "bucket": {
              "required": true,
              "canEdit": false,
              "blocked": false,
              "options": []
            },
            "path": {
              "required": true,
              "canEdit": false,
              "blocked": false,
              "options": []
            },
            "url": {
              "required": true,
              "canEdit": false,
              "blocked": false,
              "options": []
            }
          },
          "instances": {
            "sourceOfRule": {
              "scope": "project",
              "projectId": 3
            },
            "canAdd": true,
            "locked": [
              "HOME",
              "USER"
            ]
          }
        },
        "secretVolume": {
          "attributes": {
            "secret": {
              "required": true,
              "canEdit": false,
              "blocked": false,
              "options": []
            },
            "mountPath": {
              "required": true,
              "canEdit": false,
              "blocked": false,
              "options": []
            },
            "defaultMode": {
              "required": true,
              "canEdit": false,
              "blocked": false,
              "options": []
            }
          },
          "instances": {
            "sourceOfRule": {
              "scope": "project",
              "projectId": 3
            },
            "canAdd": true,
            "locked": [
              "HOME",
              "USER"
            ]
          }
        }
      },
      "terminateAfterPreemption": {
        "sourceOfRule": {
          "scope": "project",
          "projectId": 3
        },
        "required": true,
        "canEdit": true
      },
      "terminationGracePeriodSeconds": {
        "sourceOfRule": {
          "scope": "project",
          "projectId": 3
        },
        "required": true,
        "canEdit": true,
        "min": 1,
        "max": 1,
        "step": 1,
        "defaultFrom": {
          "field": "text",
          "factor": 1
        }
      },
      "tolerations": {
        "attributes": {
          "operator": {
            "required": true,
            "canEdit": false,
            "blocked": false,
            "options": []
          },
          "key": {
            "required": true,
            "canEdit": false,
            "blocked": false,
            "options": []
          },
          "value": {
            "required": true,
            "canEdit": false,
            "blocked": false,
            "options": []
          },
          "effect": {
            "required": true,
            "canEdit": false,
            "blocked": false,
            "options": []
          },
          "seconds": {
            "sourceOfRule": {
              "scope": "project",
              "projectId": 3
            },
            "required": true,
            "canEdit": true,
            "min": 1,
            "max": 1,
            "step": 1,
            "defaultFrom": {
              "field": "text",
              "factor": 1
            }
          },
          "exclude": {
            "sourceOfRule": {
              "scope": "project",
              "projectId": 3
            },
            "required": true,
            "canEdit": true
          }
        },
        "instances": {
          "sourceOfRule": {
            "scope": "project",
            "projectId": 3
          },
          "canAdd": true,
          "locked": [
            "HOME",
            "USER"
          ]
        }
      },
      "tty": {
        "sourceOfRule": {
          "scope": "project",
          "projectId": 3
        },
        "required": true,
        "canEdit": true
      },
      "workingDir": {
        "required": true,
        "canEdit": false,
        "blocked": false,
        "options": []
      }
    },
    "imposedAssets": [
      "123e4567-e89b-12d3-a456-426614174000"
    ],
    "status": {
      "validation": {
        "errorMessage": "text"
      }
    }
  },
  "effectiveUpdatedAt": "2026-01-01T00:00:00.000Z"
}

Overwrite a workspace policy.

put

Ue to apply a workspace policy for a given organizational unit.

Authorizations
AuthorizationstringRequired

Bearer authentication

Query parameters
validateOnlybooleanOptional

Validate the given policy payload without applying it

approveClusterDeletionbooleanOptional

Required when modifying or deleting a policy if the tenant includes one or more clusters running version 2.20 or earlier. In such cases, the platform must delete the policy from the affected clusters. This flag indicates that the administrator approves this deletion.

Body
Responses
200

Policy applied.

application/json
effectiveUpdatedAtstring · date-time · min: 1Optional

The time at which an event occurred. e.g. the time an effective policy has been updated

put/api/v2/policy/workspaces
PUT /api/v2/policy/workspaces HTTP/1.1
Host: app.run.ai
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 21271

{
  "meta": {
    "scope": "system",
    "projectId": 1,
    "departmentId": 2,
    "clusterId": "71f69d83-ba66-4822-adf5-55ce55efd210",
    "name": "my-policy"
  },
  "policy": {
    "defaults": {
      "annotations": {
        "instances": [
          {
            "name": "billing",
            "value": "my-billing-unit",
            "exclude": false
          }
        ]
      },
      "args": "-x my-script.py",
      "autoDeletionTimeAfterCompletionSeconds": 15,
      "backoffLimit": 3,
      "category": "text",
      "command": "python",
      "compute": {
        "cpuCoreLimit": 2,
        "cpuCoreRequest": 0.5,
        "cpuMemoryLimit": "30M",
        "cpuMemoryRequest": "20M",
        "extendedResources": {
          "attributes": {
            "resource": "hardware-vendor.example/foo",
            "quantity": 2,
            "exclude": false
          },
          "instances": [
            {
              "resource": "hardware-vendor.example/foo",
              "quantity": 2,
              "exclude": false
            }
          ]
        },
        "gpuDevicesRequest": 1,
        "gpuMemoryLimit": "10M",
        "gpuMemoryRequest": "10M",
        "gpuPortionLimit": 0.5,
        "gpuPortionRequest": 0.5,
        "gpuRequestType": "portion",
        "largeShmRequest": false
      },
      "createHomeDir": true,
      "environmentVariables": {
        "instances": [
          {
            "name": "HOME",
            "value": "/home/my-folder",
            "secret": {
              "name": "postgress_secret",
              "key": "POSTGRES_PASSWORD"
            },
            "configMap": {
              "name": "my-config-map",
              "key": "MY_POSTGRES_SCHEMA"
            },
            "podFieldRef": {
              "path": "metadata.name"
            },
            "userCredential": {
              "name": "my_postgres_user_and_password",
              "key": "POSTGRES_PASSWORD"
            },
            "exclude": false,
            "description": "Home directory of the user."
          }
        ]
      },
      "exposedUrls": {
        "attributes": {
          "container": 8080,
          "url": "https://my-url.com",
          "authorizationType": "authenticatedUsers",
          "authorizedUsers": [
            "user-a",
            "user-b"
          ],
          "authorizedGroups": [
            "group-a",
            "group-b"
          ],
          "toolType": "jupyter",
          "toolName": "my-pytorch",
          "name": "url-instance-a",
          "exclude": false
        },
        "instances": [
          {
            "container": 8080,
            "url": "https://my-url.com",
            "authorizationType": "authenticatedUsers",
            "authorizedUsers": [
              "user-a",
              "user-b"
            ],
            "authorizedGroups": [
              "group-a",
              "group-b"
            ],
            "toolType": "jupyter",
            "toolName": "my-pytorch",
            "name": "url-instance-a",
            "exclude": false
          }
        ]
      },
      "image": "python:3.8",
      "imagePullPolicy": "Always",
      "imagePullSecrets": {
        "instances": [
          {
            "name": "text",
            "userCredential": true,
            "exclude": false
          }
        ]
      },
      "labels": {
        "instances": [
          {
            "name": "stage",
            "value": "initial-research",
            "exclude": false
          }
        ]
      },
      "nodeAffinityRequired": {
        "nodeSelectorTerms": [
          {
            "matchExpressions": [
              {
                "key": "text",
                "operator": "In",
                "values": [
                  "text"
                ]
              }
            ]
          }
        ]
      },
      "nodePools": [
        "my-node-pool-a",
        "my-node-pool-b"
      ],
      "nodeType": "my-node-type",
      "podAffinity": {
        "type": "Required",
        "key": "text"
      },
      "ports": {
        "attributes": {
          "container": 8080,
          "serviceType": "LoadBalancer",
          "external": 30080,
          "toolType": "pytorch",
          "toolName": "my-pytorch",
          "name": "port-instance-a",
          "exclude": false
        },
        "instances": [
          {
            "container": 8080,
            "serviceType": "LoadBalancer",
            "external": 30080,
            "toolType": "pytorch",
            "toolName": "my-pytorch",
            "name": "port-instance-a",
            "exclude": false
          }
        ]
      },
      "preemptibility": "preemptible",
      "priorityClass": "text",
      "probes": {
        "readiness": {
          "initialDelaySeconds": 1,
          "periodSeconds": 1,
          "timeoutSeconds": 1,
          "successThreshold": 1,
          "failureThreshold": 1,
          "handler": {
            "httpGet": {
              "path": "/",
              "port": 1,
              "host": "example.com",
              "scheme": "HTTP"
            }
          }
        }
      },
      "relatedUrls": {
        "attributes": {
          "url": "https://my-url.com",
          "type": "wandb",
          "name": "url-instance-a",
          "exclude": false
        },
        "instances": [
          {
            "url": "https://my-url.com",
            "type": "wandb",
            "name": "url-instance-a",
            "exclude": false
          }
        ]
      },
      "restartPolicy": "Always",
      "security": {
        "allowPrivilegeEscalation": false,
        "capabilities": [
          "CHOWN",
          "KILL"
        ],
        "hostIpc": false,
        "hostNetwork": false,
        "readOnlyRootFilesystem": false,
        "runAsGid": 30,
        "runAsNonRoot": true,
        "runAsUid": 500,
        "seccompProfileType": "RuntimeDefault",
        "supplementalGroups": "2,3,5,8",
        "uidGidSource": "fromTheImage"
      },
      "stdin": true,
      "storage": {
        "configMapVolume": {
          "attributes": {
            "name": "storage-instance-a",
            "configMap": "text",
            "mountPath": "text",
            "subPath": "text",
            "defaultMode": "0644",
            "exclude": false
          },
          "instances": [
            {
              "name": "storage-instance-a",
              "configMap": "text",
              "mountPath": "text",
              "subPath": "text",
              "defaultMode": "0644",
              "exclude": false
            }
          ]
        },
        "dataVolume": {
          "attributes": {
            "id": "123e4567-e89b-12d3-a456-426614174000",
            "mountPath": "/mnt/data",
            "exclude": false
          },
          "instances": [
            {
              "id": "123e4567-e89b-12d3-a456-426614174000",
              "mountPath": "/mnt/data",
              "exclude": false
            }
          ]
        },
        "emptyDirVolume": {
          "attributes": {
            "name": "storage-instance-a",
            "path": "/mnt/emptydir",
            "medium": "text",
            "sizeLimit": "1G",
            "exclude": false
          },
          "instances": [
            {
              "name": "storage-instance-a",
              "path": "/mnt/emptydir",
              "medium": "text",
              "sizeLimit": "1G",
              "exclude": false
            }
          ]
        },
        "git": {
          "attributes": {
            "name": "storage-instance-a",
            "repository": "https://github.com/my-git/my-repo",
            "branch": "main",
            "revision": "text",
            "path": "/container/my-repository",
            "passwordSecret": "my-password-secret",
            "secretKeyOfUser": "User",
            "secretKeyOfPassword": "Password",
            "exclude": false,
            "secretRef": {
              "name": "my-password-secret",
              "authenticationMethod": "password",
              "secretKeyOfUser": "User",
              "secretKeyOfPassword": "Password"
            }
          },
          "instances": [
            {
              "name": "storage-instance-a",
              "repository": "https://github.com/my-git/my-repo",
              "branch": "main",
              "revision": "text",
              "path": "/container/my-repository",
              "passwordSecret": "my-password-secret",
              "secretKeyOfUser": "User",
              "secretKeyOfPassword": "Password",
              "exclude": false,
              "secretRef": {
                "name": "my-password-secret",
                "authenticationMethod": "password",
                "secretKeyOfUser": "User",
                "secretKeyOfPassword": "Password"
              }
            }
          ]
        },
        "hostPath": {
          "attributes": {
            "name": "storage-instance-a",
            "path": "/container/directory",
            "readOnly": true,
            "mountPath": "/local/directory",
            "mountPropagation": "None",
            "exclude": false
          },
          "instances": [
            {
              "name": "storage-instance-a",
              "path": "/container/directory",
              "readOnly": true,
              "mountPath": "/local/directory",
              "mountPropagation": "None",
              "exclude": false
            }
          ]
        },
        "nfs": {
          "attributes": {
            "name": "storage-instance-a",
            "path": "/container/nfs",
            "readOnly": true,
            "server": "my.nfs.com",
            "mountPath": "/local/nfs",
            "exclude": false
          },
          "instances": [
            {
              "name": "storage-instance-a",
              "path": "/container/nfs",
              "readOnly": true,
              "server": "my.nfs.com",
              "mountPath": "/local/nfs",
              "exclude": false
            }
          ]
        },
        "pvc": {
          "attributes": {
            "name": "storage-instance-a",
            "path": "/container/my-claim",
            "existingPvc": false,
            "claimName": "my-claim",
            "readOnly": false,
            "ephemeral": false,
            "claimInfo": {
              "size": "1G",
              "storageClass": "my-storage-class",
              "accessModes": {
                "readWriteOnce": true,
                "readOnlyMany": false,
                "readWriteMany": false
              },
              "volumeMode": "Filesystem",
              "addedAttrValues": [
                {
                  "key": "dnsname",
                  "value": "my.dns.com"
                }
              ]
            },
            "dataSharing": false,
            "exclude": false
          },
          "instances": [
            {
              "name": "storage-instance-a",
              "path": "/container/my-claim",
              "existingPvc": false,
              "claimName": "my-claim",
              "readOnly": false,
              "ephemeral": false,
              "claimInfo": {
                "size": "1G",
                "storageClass": "my-storage-class",
                "accessModes": {
                  "readWriteOnce": true,
                  "readOnlyMany": false,
                  "readWriteMany": false
                },
                "volumeMode": "Filesystem",
                "addedAttrValues": [
                  {
                    "key": "dnsname",
                    "value": "my.dns.com"
                  }
                ]
              },
              "dataSharing": false,
              "exclude": false
            }
          ]
        },
        "s3": {
          "attributes": {
            "name": "storage-instance-a",
            "bucket": "my-bucket",
            "path": "/container/my-bucket",
            "url": "https://s3.amazonaws.com",
            "accessKeySecret": "my-access-key-secret",
            "secretKeyOfAccessKeyId": "AccessKeyId",
            "secretKeyOfSecretKey": "SecretKey",
            "exclude": false
          },
          "instances": [
            {
              "name": "storage-instance-a",
              "bucket": "my-bucket",
              "path": "/container/my-bucket",
              "url": "https://s3.amazonaws.com",
              "accessKeySecret": "my-access-key-secret",
              "secretKeyOfAccessKeyId": "AccessKeyId",
              "secretKeyOfSecretKey": "SecretKey",
              "exclude": false
            }
          ]
        },
        "secretVolume": {
          "attributes": {
            "name": "storage-instance-a",
            "mountPath": "text",
            "defaultMode": "0644",
            "secret": "text",
            "exclude": false
          },
          "instances": [
            {
              "name": "storage-instance-a",
              "mountPath": "text",
              "defaultMode": "0644",
              "secret": "text",
              "exclude": false
            }
          ]
        }
      },
      "terminateAfterPreemption": false,
      "terminationGracePeriodSeconds": 20,
      "tolerations": {
        "attributes": {
          "name": "text",
          "operator": "Equal",
          "key": "text",
          "value": "text",
          "effect": "NoSchedule",
          "seconds": 1,
          "exclude": false
        },
        "instances": [
          {
            "name": "text",
            "operator": "Equal",
            "key": "text",
            "value": "text",
            "effect": "NoSchedule",
            "seconds": 1,
            "exclude": false
          }
        ]
      },
      "tty": true,
      "workingDir": "/home/myfolder"
    },
    "rules": {
      "annotations": {
        "instances": {
          "sourceOfRule": {
            "scope": "project",
            "projectId": 3
          },
          "canAdd": true,
          "locked": [
            "HOME",
            "USER"
          ]
        }
      },
      "args": {
        "required": true,
        "canEdit": false,
        "blocked": false,
        "options": []
      },
      "autoDeletionTimeAfterCompletionSeconds": {
        "sourceOfRule": {
          "scope": "project",
          "projectId": 3
        },
        "required": true,
        "canEdit": true,
        "min": 1,
        "max": 1,
        "step": 1,
        "defaultFrom": {
          "field": "text",
          "factor": 1
        }
      },
      "backoffLimit": {
        "sourceOfRule": {
          "scope": "project",
          "projectId": 3
        },
        "required": true,
        "canEdit": true,
        "min": 1,
        "max": 1,
        "step": 1,
        "defaultFrom": {
          "field": "text",
          "factor": 1
        }
      },
      "category": {
        "required": true,
        "canEdit": false,
        "blocked": false,
        "options": []
      },
      "command": {
        "required": true,
        "canEdit": false,
        "blocked": false,
        "options": []
      },
      "compute": {
        "cpuCoreLimit": {
          "sourceOfRule": {
            "scope": "project",
            "projectId": 3
          },
          "required": true,
          "canEdit": true,
          "min": 1,
          "max": 1,
          "step": 1,
          "defaultFrom": {
            "field": "text",
            "factor": 1
          }
        },
        "cpuCoreRequest": {
          "sourceOfRule": {
            "scope": "project",
            "projectId": 3
          },
          "required": true,
          "canEdit": true,
          "min": 1,
          "max": 1,
          "step": 1,
          "defaultFrom": {
            "field": "text",
            "factor": 1
          }
        },
        "cpuMemoryLimit": {
          "sourceOfRule": {
            "scope": "project",
            "projectId": 3
          },
          "required": true,
          "canEdit": true,
          "min": "text",
          "max": "text",
          "defaultFrom": {
            "field": "text",
            "factor": 1
          }
        },
        "cpuMemoryRequest": {
          "sourceOfRule": {
            "scope": "project",
            "projectId": 3
          },
          "required": true,
          "canEdit": true,
          "min": "text",
          "max": "text",
          "defaultFrom": {
            "field": "text",
            "factor": 1
          }
        },
        "extendedResources": {
          "attributes": {
            "quantity": {
              "required": true,
              "canEdit": false,
              "blocked": false,
              "options": []
            }
          },
          "instances": {
            "sourceOfRule": {
              "scope": "project",
              "projectId": 3
            },
            "canAdd": true,
            "locked": [
              "HOME",
              "USER"
            ]
          }
        },
        "gpuDevicesRequest": {
          "sourceOfRule": {
            "scope": "project",
            "projectId": 3
          },
          "required": true,
          "canEdit": true,
          "min": 1,
          "max": 1,
          "step": 1,
          "defaultFrom": {
            "field": "text",
            "factor": 1
          }
        },
        "gpuMemoryLimit": {
          "sourceOfRule": {
            "scope": "project",
            "projectId": 3
          },
          "required": true,
          "canEdit": true,
          "min": "text",
          "max": "text",
          "defaultFrom": {
            "field": "text",
            "factor": 1
          }
        },
        "gpuMemoryRequest": {
          "sourceOfRule": {
            "scope": "project",
            "projectId": 3
          },
          "required": true,
          "canEdit": true,
          "min": "text",
          "max": "text",
          "defaultFrom": {
            "field": "text",
            "factor": 1
          }
        },
        "gpuPortionLimit": {
          "sourceOfRule": {
            "scope": "project",
            "projectId": 3
          },
          "required": true,
          "canEdit": true,
          "min": 1,
          "max": 1,
          "step": 1,
          "defaultFrom": {
            "field": "text",
            "factor": 1
          }
        },
        "gpuPortionRequest": {
          "sourceOfRule": {
            "scope": "project",
            "projectId": 3
          },
          "required": true,
          "canEdit": true,
          "min": 1,
          "max": 1,
          "step": 1,
          "defaultFrom": {
            "field": "text",
            "factor": 1
          }
        },
        "gpuRequestType": {
          "required": true,
          "canEdit": false,
          "blocked": false,
          "options": []
        },
        "largeShmRequest": {
          "sourceOfRule": {
            "scope": "project",
            "projectId": 3
          },
          "required": true,
          "canEdit": true
        }
      },
      "createHomeDir": {
        "sourceOfRule": {
          "scope": "project",
          "projectId": 3
        },
        "required": true,
        "canEdit": true
      },
      "environmentVariables": {
        "instances": {
          "sourceOfRule": {
            "scope": "project",
            "projectId": 3
          },
          "canAdd": true,
          "locked": [
            "HOME",
            "USER"
          ]
        }
      },
      "exposedUrls": {
        "attributes": {
          "container": {
            "sourceOfRule": {
              "scope": "project",
              "projectId": 3
            },
            "required": true,
            "canEdit": true,
            "min": 1,
            "max": 1,
            "step": 1,
            "defaultFrom": {
              "field": "text",
              "factor": 1
            }
          },
          "customUrl": {
            "sourceOfRule": {
              "scope": "project",
              "projectId": 3
            },
            "required": true,
            "canEdit": true
          },
          "url": {
            "required": true,
            "canEdit": false,
            "blocked": false,
            "options": []
          },
          "authorizedUsers": {
            "sourceOfRule": {
              "scope": "project",
              "projectId": 3
            },
            "required": true,
            "options": [],
            "canEdit": true
          },
          "authorizedGroups": {
            "sourceOfRule": {
              "scope": "project",
              "projectId": 3
            },
            "required": true,
            "options": [],
            "canEdit": true
          },
          "toolType": {
            "required": true,
            "canEdit": false,
            "blocked": false,
            "options": []
          },
          "toolName": {
            "required": true,
            "canEdit": false,
            "blocked": false,
            "options": []
          }
        },
        "instances": {
          "sourceOfRule": {
            "scope": "project",
            "projectId": 3
          },
          "canAdd": true,
          "locked": [
            "HOME",
            "USER"
          ]
        }
      },
      "image": {
        "required": true,
        "canEdit": false,
        "blocked": false,
        "options": []
      },
      "imagePullPolicy": {
        "required": true,
        "canEdit": false,
        "blocked": false,
        "options": []
      },
      "imagePullSecrets": {
        "attributes": {
          "name": {
            "required": true,
            "canEdit": false,
            "blocked": false,
            "options": []
          },
          "userCredentials": {
            "sourceOfRule": {
              "scope": "project",
              "projectId": 3
            },
            "required": true,
            "canEdit": true
          }
        },
        "instances": {
          "sourceOfRule": {
            "scope": "project",
            "projectId": 3
          },
          "canAdd": true,
          "locked": [
            "HOME",
            "USER"
          ]
        }
      },
      "labels": {
        "instances": {
          "sourceOfRule": {
            "scope": "project",
            "projectId": 3
          },
          "canAdd": true,
          "locked": [
            "HOME",
            "USER"
          ]
        }
      },
      "nodeAffinityRequired": {
        "sourceOfRule": {
          "scope": "project",
          "projectId": 3
        },
        "required": true,
        "canEdit": true
      },
      "nodePools": {
        "sourceOfRule": {
          "scope": "project",
          "projectId": 3
        },
        "required": true,
        "options": [],
        "canEdit": true
      },
      "nodeType": {
        "required": true,
        "canEdit": false,
        "blocked": false,
        "options": []
      },
      "podAffinity": {
        "type": {
          "required": true,
          "canEdit": false,
          "blocked": false,
          "options": []
        },
        "key": {
          "required": true,
          "canEdit": false,
          "blocked": false,
          "options": []
        }
      },
      "ports": {
        "attributes": {
          "container": {
            "sourceOfRule": {
              "scope": "project",
              "projectId": 3
            },
            "required": true,
            "canEdit": true,
            "min": 1,
            "max": 1,
            "step": 1,
            "defaultFrom": {
              "field": "text",
              "factor": 1
            }
          },
          "serviceType": {
            "required": true,
            "canEdit": false,
            "blocked": false,
            "options": []
          },
          "customExternalPort": {
            "sourceOfRule": {
              "scope": "project",
              "projectId": 3
            },
            "required": true,
            "canEdit": true
          },
          "external": {
            "sourceOfRule": {
              "scope": "project",
              "projectId": 3
            },
            "required": true,
            "canEdit": true,
            "min": 1,
            "max": 1,
            "step": 1,
            "defaultFrom": {
              "field": "text",
              "factor": 1
            }
          },
          "toolType": {
            "required": true,
            "canEdit": false,
            "blocked": false,
            "options": []
          },
          "toolName": {
            "required": true,
            "canEdit": false,
            "blocked": false,
            "options": []
          }
        },
        "instances": {
          "sourceOfRule": {
            "scope": "project",
            "projectId": 3
          },
          "canAdd": true,
          "locked": [
            "HOME",
            "USER"
          ]
        }
      },
      "preemptibility": {
        "required": true,
        "canEdit": false,
        "blocked": false,
        "options": []
      },
      "priorityClass": {
        "required": true,
        "canEdit": false,
        "blocked": false,
        "options": []
      },
      "probes": {
        "readiness": {
          "initialDelaySeconds": {
            "sourceOfRule": {
              "scope": "project",
              "projectId": 3
            },
            "required": true,
            "canEdit": true,
            "min": 1,
            "max": 1,
            "step": 1,
            "defaultFrom": {
              "field": "text",
              "factor": 1
            }
          },
          "periodSeconds": {
            "sourceOfRule": {
              "scope": "project",
              "projectId": 3
            },
            "required": true,
            "canEdit": true,
            "min": 1,
            "max": 1,
            "step": 1,
            "defaultFrom": {
              "field": "text",
              "factor": 1
            }
          },
          "timeoutSeconds": {
            "sourceOfRule": {
              "scope": "project",
              "projectId": 3
            },
            "required": true,
            "canEdit": true,
            "min": 1,
            "max": 1,
            "step": 1,
            "defaultFrom": {
              "field": "text",
              "factor": 1
            }
          },
          "successThreshold": {
            "sourceOfRule": {
              "scope": "project",
              "projectId": 3
            },
            "required": true,
            "canEdit": true,
            "min": 1,
            "max": 1,
            "step": 1,
            "defaultFrom": {
              "field": "text",
              "factor": 1
            }
          },
          "failureThreshold": {
            "sourceOfRule": {
              "scope": "project",
              "projectId": 3
            },
            "required": true,
            "canEdit": true,
            "min": 1,
            "max": 1,
            "step": 1,
            "defaultFrom": {
              "field": "text",
              "factor": 1
            }
          },
          "handler": {
            "httpGet": {
              "path": {
                "required": true,
                "canEdit": false,
                "blocked": false,
                "options": []
              },
              "port": {
                "sourceOfRule": {
                  "scope": "project",
                  "projectId": 3
                },
                "required": true,
                "canEdit": true,
                "min": 1,
                "max": 1,
                "step": 1,
                "defaultFrom": {
                  "field": "text",
                  "factor": 1
                }
              },
              "host": {
                "required": true,
                "canEdit": false,
                "blocked": false,
                "options": []
              },
              "scheme": {
                "required": true,
                "canEdit": false,
                "blocked": false,
                "options": []
              }
            }
          }
        }
      },
      "relatedUrls": {
        "attributes": {
          "url": {
            "required": true,
            "canEdit": false,
            "blocked": false,
            "options": []
          },
          "type": {
            "required": true,
            "canEdit": false,
            "blocked": false,
            "options": []
          },
          "name": {
            "required": true,
            "canEdit": false,
            "blocked": false,
            "options": []
          }
        },
        "instances": {
          "sourceOfRule": {
            "scope": "project",
            "projectId": 3
          },
          "canAdd": true,
          "locked": [
            "HOME",
            "USER"
          ]
        }
      },
      "restartPolicy": {
        "required": true,
        "canEdit": false,
        "blocked": false,
        "options": []
      },
      "security": {
        "allowPrivilegeEscalation": {
          "sourceOfRule": {
            "scope": "project",
            "projectId": 3
          },
          "required": true,
          "canEdit": true
        },
        "capabilities": {
          "sourceOfRule": {
            "scope": "project",
            "projectId": 3
          },
          "required": true,
          "options": [],
          "canEdit": true
        },
        "hostIpc": {
          "sourceOfRule": {
            "scope": "project",
            "projectId": 3
          },
          "required": true,
          "canEdit": true
        },
        "hostNetwork": {
          "sourceOfRule": {
            "scope": "project",
            "projectId": 3
          },
          "required": true,
          "canEdit": true
        },
        "readOnlyRootFilesystem": {
          "sourceOfRule": {
            "scope": "project",
            "projectId": 3
          },
          "required": true,
          "canEdit": true
        },
        "runAsGid": {
          "sourceOfRule": {
            "scope": "project",
            "projectId": 3
          },
          "canEdit": true,
          "min": 1,
          "max": 1,
          "step": 1,
          "defaultFrom": {
            "field": "text",
            "factor": 1
          }
        },
        "runAsNonRoot": {
          "sourceOfRule": {
            "scope": "project",
            "projectId": 3
          },
          "required": true,
          "canEdit": true
        },
        "runAsUid": {
          "sourceOfRule": {
            "scope": "project",
            "projectId": 3
          },
          "canEdit": true,
          "min": 1,
          "max": 1,
          "step": 1,
          "defaultFrom": {
            "field": "text",
            "factor": 1
          }
        },
        "seccompProfileType": {
          "required": true,
          "canEdit": false,
          "blocked": false,
          "options": []
        },
        "supplementalGroups": {
          "required": true,
          "canEdit": false,
          "blocked": false,
          "options": []
        },
        "uidGidSource": {
          "required": true,
          "canEdit": false,
          "blocked": false,
          "options": []
        }
      },
      "stdin": {
        "sourceOfRule": {
          "scope": "project",
          "projectId": 3
        },
        "required": true,
        "canEdit": true
      },
      "storage": {
        "configMapVolume": {
          "attributes": {
            "configMap": {
              "required": true,
              "canEdit": false,
              "blocked": false,
              "options": []
            },
            "mountPath": {
              "required": true,
              "canEdit": false,
              "blocked": false,
              "options": []
            },
            "subPath": {
              "required": true,
              "canEdit": false,
              "blocked": false,
              "options": []
            },
            "defaultMode": {
              "required": true,
              "canEdit": false,
              "blocked": false,
              "options": []
            }
          },
          "instances": {
            "sourceOfRule": {
              "scope": "project",
              "projectId": 3
            },
            "canAdd": true,
            "locked": [
              "HOME",
              "USER"
            ]
          }
        },
        "dataVolume": {
          "attributes": {
            "id": {
              "required": true,
              "canEdit": false,
              "blocked": false,
              "options": []
            },
            "mountPath": {
              "required": true,
              "canEdit": false,
              "blocked": false,
              "options": []
            }
          },
          "instances": {
            "sourceOfRule": {
              "scope": "project",
              "projectId": 3
            },
            "canAdd": true,
            "locked": [
              "HOME",
              "USER"
            ]
          }
        },
        "emptyDirVolume": {
          "attributes": {
            "path": {
              "required": true,
              "canEdit": false,
              "blocked": false,
              "options": []
            },
            "medium": {
              "required": true,
              "canEdit": false,
              "blocked": false,
              "options": []
            },
            "sizeLimit": {
              "required": true,
              "canEdit": false,
              "blocked": false,
              "options": []
            }
          },
          "instances": {
            "sourceOfRule": {
              "scope": "project",
              "projectId": 3
            },
            "canAdd": true,
            "locked": [
              "HOME",
              "USER"
            ]
          }
        },
        "git": {
          "attributes": {
            "repository": {
              "required": true,
              "canEdit": false,
              "blocked": false,
              "options": []
            },
            "branch": {
              "required": true,
              "canEdit": false,
              "blocked": false,
              "options": []
            },
            "revision": {
              "required": true,
              "canEdit": false,
              "blocked": false,
              "options": []
            },
            "path": {
              "required": true,
              "canEdit": false,
              "blocked": false,
              "options": []
            }
          },
          "instances": {
            "sourceOfRule": {
              "scope": "project",
              "projectId": 3
            },
            "canAdd": true,
            "locked": [
              "HOME",
              "USER"
            ]
          }
        },
        "hostPath": {
          "attributes": {
            "path": {
              "required": true,
              "canEdit": false,
              "blocked": false,
              "options": []
            },
            "readOnly": {
              "sourceOfRule": {
                "scope": "project",
                "projectId": 3
              },
              "required": true,
              "canEdit": true
            },
            "mountPath": {
              "required": true,
              "canEdit": false,
              "blocked": false,
              "options": []
            },
            "mountPropagation": {
              "required": true,
              "canEdit": false,
              "blocked": false,
              "options": []
            }
          },
          "instances": {
            "sourceOfRule": {
              "scope": "project",
              "projectId": 3
            },
            "canAdd": true,
            "locked": [
              "HOME",
              "USER"
            ]
          }
        },
        "nfs": {
          "attributes": {
            "path": {
              "required": true,
              "canEdit": false,
              "blocked": false,
              "options": []
            },
            "readOnly": {
              "sourceOfRule": {
                "scope": "project",
                "projectId": 3
              },
              "required": true,
              "canEdit": true
            },
            "server": {
              "required": true,
              "canEdit": false,
              "blocked": false,
              "options": []
            },
            "mountPath": {
              "required": true,
              "canEdit": false,
              "blocked": false,
              "options": []
            }
          },
          "instances": {
            "sourceOfRule": {
              "scope": "project",
              "projectId": 3
            },
            "canAdd": true,
            "locked": [
              "HOME",
              "USER"
            ]
          }
        },
        "pvc": {
          "attributes": {
            "claimName": {
              "required": true,
              "canEdit": false,
              "blocked": false,
              "options": []
            },
            "path": {
              "required": true,
              "canEdit": false,
              "blocked": false,
              "options": []
            },
            "readOnly": {
              "sourceOfRule": {
                "scope": "project",
                "projectId": 3
              },
              "required": true,
              "canEdit": true
            },
            "claimInfo": {
              "size": {
                "required": true,
                "canEdit": false,
                "blocked": false,
                "options": []
              },
              "storageClass": {
                "required": true,
                "canEdit": false,
                "blocked": false,
                "options": []
              },
              "accessModes": {
                "readWriteOnce": {
                  "sourceOfRule": {
                    "scope": "project",
                    "projectId": 3
                  },
                  "required": true,
                  "canEdit": true
                },
                "readOnlyMany": {
                  "sourceOfRule": {
                    "scope": "project",
                    "projectId": 3
                  },
                  "required": true,
                  "canEdit": true
                },
                "readWriteMany": {
                  "sourceOfRule": {
                    "scope": "project",
                    "projectId": 3
                  },
                  "required": true,
                  "canEdit": true
                }
              }
            }
          },
          "instances": {
            "sourceOfRule": {
              "scope": "project",
              "projectId": 3
            },
            "canAdd": true,
            "locked": [
              "HOME",
              "USER"
            ]
          }
        },
        "s3": {
          "attributes": {
            "bucket": {
              "required": true,
              "canEdit": false,
              "blocked": false,
              "options": []
            },
            "path": {
              "required": true,
              "canEdit": false,
              "blocked": false,
              "options": []
            },
            "url": {
              "required": true,
              "canEdit": false,
              "blocked": false,
              "options": []
            }
          },
          "instances": {
            "sourceOfRule": {
              "scope": "project",
              "projectId": 3
            },
            "canAdd": true,
            "locked": [
              "HOME",
              "USER"
            ]
          }
        },
        "secretVolume": {
          "attributes": {
            "secret": {
              "required": true,
              "canEdit": false,
              "blocked": false,
              "options": []
            },
            "mountPath": {
              "required": true,
              "canEdit": false,
              "blocked": false,
              "options": []
            },
            "defaultMode": {
              "required": true,
              "canEdit": false,
              "blocked": false,
              "options": []
            }
          },
          "instances": {
            "sourceOfRule": {
              "scope": "project",
              "projectId": 3
            },
            "canAdd": true,
            "locked": [
              "HOME",
              "USER"
            ]
          }
        }
      },
      "terminateAfterPreemption": {
        "sourceOfRule": {
          "scope": "project",
          "projectId": 3
        },
        "required": true,
        "canEdit": true
      },
      "terminationGracePeriodSeconds": {
        "sourceOfRule": {
          "scope": "project",
          "projectId": 3
        },
        "required": true,
        "canEdit": true,
        "min": 1,
        "max": 1,
        "step": 1,
        "defaultFrom": {
          "field": "text",
          "factor": 1
        }
      },
      "tolerations": {
        "attributes": {
          "operator": {
            "required": true,
            "canEdit": false,
            "blocked": false,
            "options": []
          },
          "key": {
            "required": true,
            "canEdit": false,
            "blocked": false,
            "options": []
          },
          "value": {
            "required": true,
            "canEdit": false,
            "blocked": false,
            "options": []
          },
          "effect": {
            "required": true,
            "canEdit": false,
            "blocked": false,
            "options": []
          },
          "seconds": {
            "sourceOfRule": {
              "scope": "project",
              "projectId": 3
            },
            "required": true,
            "canEdit": true,
            "min": 1,
            "max": 1,
            "step": 1,
            "defaultFrom": {
              "field": "text",
              "factor": 1
            }
          },
          "exclude": {
            "sourceOfRule": {
              "scope": "project",
              "projectId": 3
            },
            "required": true,
            "canEdit": true
          }
        },
        "instances": {
          "sourceOfRule": {
            "scope": "project",
            "projectId": 3
          },
          "canAdd": true,
          "locked": [
            "HOME",
            "USER"
          ]
        }
      },
      "tty": {
        "sourceOfRule": {
          "scope": "project",
          "projectId": 3
        },
        "required": true,
        "canEdit": true
      },
      "workingDir": {
        "required": true,
        "canEdit": false,
        "blocked": false,
        "options": []
      }
    },
    "imposedAssets": [
      "123e4567-e89b-12d3-a456-426614174000"
    ],
    "status": {
      "validation": {
        "errorMessage": "text"
      }
    }
  }
}
{
  "meta": {
    "id": "123e4567-e89b-12d3-a456-426614174000",
    "tenantId": 1001,
    "clusterId": "71f69d83-ba66-4822-adf5-55ce55efd210",
    "createdBy": "text",
    "createdAt": "2026-01-01T00:00:00.000Z",
    "updatedBy": "text",
    "updatedAt": "2026-01-01T00:00:00.000Z",
    "scope": "system",
    "projectId": 1,
    "departmentId": 2,
    "name": "my-policy"
  },
  "policy": {
    "defaults": {
      "annotations": {
        "instances": [
          {
            "name": "billing",
            "value": "my-billing-unit",
            "exclude": false
          }
        ]
      },
      "args": "-x my-script.py",
      "autoDeletionTimeAfterCompletionSeconds": 15,
      "backoffLimit": 3,
      "category": "text",
      "command": "python",
      "compute": {
        "cpuCoreLimit": 2,
        "cpuCoreRequest": 0.5,
        "cpuMemoryLimit": "30M",
        "cpuMemoryRequest": "20M",
        "extendedResources": {
          "attributes": {
            "resource": "hardware-vendor.example/foo",
            "quantity": 2,
            "exclude": false
          },
          "instances": [
            {
              "resource": "hardware-vendor.example/foo",
              "quantity": 2,
              "exclude": false
            }
          ]
        },
        "gpuDevicesRequest": 1,
        "gpuMemoryLimit": "10M",
        "gpuMemoryRequest": "10M",
        "gpuPortionLimit": 0.5,
        "gpuPortionRequest": 0.5,
        "gpuRequestType": "portion",
        "largeShmRequest": false
      },
      "createHomeDir": true,
      "environmentVariables": {
        "instances": [
          {
            "name": "HOME",
            "value": "/home/my-folder",
            "secret": {
              "name": "postgress_secret",
              "key": "POSTGRES_PASSWORD"
            },
            "configMap": {
              "name": "my-config-map",
              "key": "MY_POSTGRES_SCHEMA"
            },
            "podFieldRef": {
              "path": "metadata.name"
            },
            "userCredential": {
              "name": "my_postgres_user_and_password",
              "key": "POSTGRES_PASSWORD"
            },
            "exclude": false,
            "description": "Home directory of the user."
          }
        ]
      },
      "exposedUrls": {
        "attributes": {
          "container": 8080,
          "url": "https://my-url.com",
          "authorizationType": "authenticatedUsers",
          "authorizedUsers": [
            "user-a",
            "user-b"
          ],
          "authorizedGroups": [
            "group-a",
            "group-b"
          ],
          "toolType": "jupyter",
          "toolName": "my-pytorch",
          "name": "url-instance-a",
          "exclude": false
        },
        "instances": [
          {
            "container": 8080,
            "url": "https://my-url.com",
            "authorizationType": "authenticatedUsers",
            "authorizedUsers": [
              "user-a",
              "user-b"
            ],
            "authorizedGroups": [
              "group-a",
              "group-b"
            ],
            "toolType": "jupyter",
            "toolName": "my-pytorch",
            "name": "url-instance-a",
            "exclude": false
          }
        ]
      },
      "image": "python:3.8",
      "imagePullPolicy": "Always",
      "imagePullSecrets": {
        "instances": [
          {
            "name": "text",
            "userCredential": true,
            "exclude": false
          }
        ]
      },
      "labels": {
        "instances": [
          {
            "name": "stage",
            "value": "initial-research",
            "exclude": false
          }
        ]
      },
      "nodeAffinityRequired": {
        "nodeSelectorTerms": [
          {
            "matchExpressions": [
              {
                "key": "text",
                "operator": "In",
                "values": [
                  "text"
                ]
              }
            ]
          }
        ]
      },
      "nodePools": [
        "my-node-pool-a",
        "my-node-pool-b"
      ],
      "nodeType": "my-node-type",
      "podAffinity": {
        "type": "Required",
        "key": "text"
      },
      "ports": {
        "attributes": {
          "container": 8080,
          "serviceType": "LoadBalancer",
          "external": 30080,
          "toolType": "pytorch",
          "toolName": "my-pytorch",
          "name": "port-instance-a",
          "exclude": false
        },
        "instances": [
          {
            "container": 8080,
            "serviceType": "LoadBalancer",
            "external": 30080,
            "toolType": "pytorch",
            "toolName": "my-pytorch",
            "name": "port-instance-a",
            "exclude": false
          }
        ]
      },
      "preemptibility": "preemptible",
      "priorityClass": "text",
      "probes": {
        "readiness": {
          "initialDelaySeconds": 1,
          "periodSeconds": 1,
          "timeoutSeconds": 1,
          "successThreshold": 1,
          "failureThreshold": 1,
          "handler": {
            "httpGet": {
              "path": "/",
              "port": 1,
              "host": "example.com",
              "scheme": "HTTP"
            }
          }
        }
      },
      "relatedUrls": {
        "attributes": {
          "url": "https://my-url.com",
          "type": "wandb",
          "name": "url-instance-a",
          "exclude": false
        },
        "instances": [
          {
            "url": "https://my-url.com",
            "type": "wandb",
            "name": "url-instance-a",
            "exclude": false
          }
        ]
      },
      "restartPolicy": "Always",
      "security": {
        "allowPrivilegeEscalation": false,
        "capabilities": [
          "CHOWN",
          "KILL"
        ],
        "hostIpc": false,
        "hostNetwork": false,
        "readOnlyRootFilesystem": false,
        "runAsGid": 30,
        "runAsNonRoot": true,
        "runAsUid": 500,
        "seccompProfileType": "RuntimeDefault",
        "supplementalGroups": "2,3,5,8",
        "uidGidSource": "fromTheImage"
      },
      "stdin": true,
      "storage": {
        "configMapVolume": {
          "attributes": {
            "name": "storage-instance-a",
            "configMap": "text",
            "mountPath": "text",
            "subPath": "text",
            "defaultMode": "0644",
            "exclude": false
          },
          "instances": [
            {
              "name": "storage-instance-a",
              "configMap": "text",
              "mountPath": "text",
              "subPath": "text",
              "defaultMode": "0644",
              "exclude": false
            }
          ]
        },
        "dataVolume": {
          "attributes": {
            "id": "123e4567-e89b-12d3-a456-426614174000",
            "mountPath": "/mnt/data",
            "exclude": false
          },
          "instances": [
            {
              "id": "123e4567-e89b-12d3-a456-426614174000",
              "mountPath": "/mnt/data",
              "exclude": false
            }
          ]
        },
        "emptyDirVolume": {
          "attributes": {
            "name": "storage-instance-a",
            "path": "/mnt/emptydir",
            "medium": "text",
            "sizeLimit": "1G",
            "exclude": false
          },
          "instances": [
            {
              "name": "storage-instance-a",
              "path": "/mnt/emptydir",
              "medium": "text",
              "sizeLimit": "1G",
              "exclude": false
            }
          ]
        },
        "git": {
          "attributes": {
            "name": "storage-instance-a",
            "repository": "https://github.com/my-git/my-repo",
            "branch": "main",
            "revision": "text",
            "path": "/container/my-repository",
            "passwordSecret": "my-password-secret",
            "secretKeyOfUser": "User",
            "secretKeyOfPassword": "Password",
            "exclude": false,
            "secretRef": {
              "name": "my-password-secret",
              "authenticationMethod": "password",
              "secretKeyOfUser": "User",
              "secretKeyOfPassword": "Password"
            }
          },
          "instances": [
            {
              "name": "storage-instance-a",
              "repository": "https://github.com/my-git/my-repo",
              "branch": "main",
              "revision": "text",
              "path": "/container/my-repository",
              "passwordSecret": "my-password-secret",
              "secretKeyOfUser": "User",
              "secretKeyOfPassword": "Password",
              "exclude": false,
              "secretRef": {
                "name": "my-password-secret",
                "authenticationMethod": "password",
                "secretKeyOfUser": "User",
                "secretKeyOfPassword": "Password"
              }
            }
          ]
        },
        "hostPath": {
          "attributes": {
            "name": "storage-instance-a",
            "path": "/container/directory",
            "readOnly": true,
            "mountPath": "/local/directory",
            "mountPropagation": "None",
            "exclude": false
          },
          "instances": [
            {
              "name": "storage-instance-a",
              "path": "/container/directory",
              "readOnly": true,
              "mountPath": "/local/directory",
              "mountPropagation": "None",
              "exclude": false
            }
          ]
        },
        "nfs": {
          "attributes": {
            "name": "storage-instance-a",
            "path": "/container/nfs",
            "readOnly": true,
            "server": "my.nfs.com",
            "mountPath": "/local/nfs",
            "exclude": false
          },
          "instances": [
            {
              "name": "storage-instance-a",
              "path": "/container/nfs",
              "readOnly": true,
              "server": "my.nfs.com",
              "mountPath": "/local/nfs",
              "exclude": false
            }
          ]
        },
        "pvc": {
          "attributes": {
            "name": "storage-instance-a",
            "path": "/container/my-claim",
            "existingPvc": false,
            "claimName": "my-claim",
            "readOnly": false,
            "ephemeral": false,
            "claimInfo": {
              "size": "1G",
              "storageClass": "my-storage-class",
              "accessModes": {
                "readWriteOnce": true,
                "readOnlyMany": false,
                "readWriteMany": false
              },
              "volumeMode": "Filesystem",
              "addedAttrValues": [
                {
                  "key": "dnsname",
                  "value": "my.dns.com"
                }
              ]
            },
            "dataSharing": false,
            "exclude": false
          },
          "instances": [
            {
              "name": "storage-instance-a",
              "path": "/container/my-claim",
              "existingPvc": false,
              "claimName": "my-claim",
              "readOnly": false,
              "ephemeral": false,
              "claimInfo": {
                "size": "1G",
                "storageClass": "my-storage-class",
                "accessModes": {
                  "readWriteOnce": true,
                  "readOnlyMany": false,
                  "readWriteMany": false
                },
                "volumeMode": "Filesystem",
                "addedAttrValues": [
                  {
                    "key": "dnsname",
                    "value": "my.dns.com"
                  }
                ]
              },
              "dataSharing": false,
              "exclude": false
            }
          ]
        },
        "s3": {
          "attributes": {
            "name": "storage-instance-a",
            "bucket": "my-bucket",
            "path": "/container/my-bucket",
            "url": "https://s3.amazonaws.com",
            "accessKeySecret": "my-access-key-secret",
            "secretKeyOfAccessKeyId": "AccessKeyId",
            "secretKeyOfSecretKey": "SecretKey",
            "exclude": false
          },
          "instances": [
            {
              "name": "storage-instance-a",
              "bucket": "my-bucket",
              "path": "/container/my-bucket",
              "url": "https://s3.amazonaws.com",
              "accessKeySecret": "my-access-key-secret",
              "secretKeyOfAccessKeyId": "AccessKeyId",
              "secretKeyOfSecretKey": "SecretKey",
              "exclude": false
            }
          ]
        },
        "secretVolume": {
          "attributes": {
            "name": "storage-instance-a",
            "mountPath": "text",
            "defaultMode": "0644",
            "secret": "text",
            "exclude": false
          },
          "instances": [
            {
              "name": "storage-instance-a",
              "mountPath": "text",
              "defaultMode": "0644",
              "secret": "text",
              "exclude": false
            }
          ]
        }
      },
      "terminateAfterPreemption": false,
      "terminationGracePeriodSeconds": 20,
      "tolerations": {
        "attributes": {
          "name": "text",
          "operator": "Equal",
          "key": "text",
          "value": "text",
          "effect": "NoSchedule",
          "seconds": 1,
          "exclude": false
        },
        "instances": [
          {
            "name": "text",
            "operator": "Equal",
            "key": "text",
            "value": "text",
            "effect": "NoSchedule",
            "seconds": 1,
            "exclude": false
          }
        ]
      },
      "tty": true,
      "workingDir": "/home/myfolder"
    },
    "rules": {
      "annotations": {
        "instances": {
          "sourceOfRule": {
            "scope": "project",
            "projectId": 3
          },
          "canAdd": true,
          "locked": [
            "HOME",
            "USER"
          ]
        }
      },
      "args": {
        "required": true,
        "canEdit": false,
        "blocked": false,
        "options": []
      },
      "autoDeletionTimeAfterCompletionSeconds": {
        "sourceOfRule": {
          "scope": "project",
          "projectId": 3
        },
        "required": true,
        "canEdit": true,
        "min": 1,
        "max": 1,
        "step": 1,
        "defaultFrom": {
          "field": "text",
          "factor": 1
        }
      },
      "backoffLimit": {
        "sourceOfRule": {
          "scope": "project",
          "projectId": 3
        },
        "required": true,
        "canEdit": true,
        "min": 1,
        "max": 1,
        "step": 1,
        "defaultFrom": {
          "field": "text",
          "factor": 1
        }
      },
      "category": {
        "required": true,
        "canEdit": false,
        "blocked": false,
        "options": []
      },
      "command": {
        "required": true,
        "canEdit": false,
        "blocked": false,
        "options": []
      },
      "compute": {
        "cpuCoreLimit": {
          "sourceOfRule": {
            "scope": "project",
            "projectId": 3
          },
          "required": true,
          "canEdit": true,
          "min": 1,
          "max": 1,
          "step": 1,
          "defaultFrom": {
            "field": "text",
            "factor": 1
          }
        },
        "cpuCoreRequest": {
          "sourceOfRule": {
            "scope": "project",
            "projectId": 3
          },
          "required": true,
          "canEdit": true,
          "min": 1,
          "max": 1,
          "step": 1,
          "defaultFrom": {
            "field": "text",
            "factor": 1
          }
        },
        "cpuMemoryLimit": {
          "sourceOfRule": {
            "scope": "project",
            "projectId": 3
          },
          "required": true,
          "canEdit": true,
          "min": "text",
          "max": "text",
          "defaultFrom": {
            "field": "text",
            "factor": 1
          }
        },
        "cpuMemoryRequest": {
          "sourceOfRule": {
            "scope": "project",
            "projectId": 3
          },
          "required": true,
          "canEdit": true,
          "min": "text",
          "max": "text",
          "defaultFrom": {
            "field": "text",
            "factor": 1
          }
        },
        "extendedResources": {
          "attributes": {
            "quantity": {
              "required": true,
              "canEdit": false,
              "blocked": false,
              "options": []
            }
          },
          "instances": {
            "sourceOfRule": {
              "scope": "project",
              "projectId": 3
            },
            "canAdd": true,
            "locked": [
              "HOME",
              "USER"
            ]
          }
        },
        "gpuDevicesRequest": {
          "sourceOfRule": {
            "scope": "project",
            "projectId": 3
          },
          "required": true,
          "canEdit": true,
          "min": 1,
          "max": 1,
          "step": 1,
          "defaultFrom": {
            "field": "text",
            "factor": 1
          }
        },
        "gpuMemoryLimit": {
          "sourceOfRule": {
            "scope": "project",
            "projectId": 3
          },
          "required": true,
          "canEdit": true,
          "min": "text",
          "max": "text",
          "defaultFrom": {
            "field": "text",
            "factor": 1
          }
        },
        "gpuMemoryRequest": {
          "sourceOfRule": {
            "scope": "project",
            "projectId": 3
          },
          "required": true,
          "canEdit": true,
          "min": "text",
          "max": "text",
          "defaultFrom": {
            "field": "text",
            "factor": 1
          }
        },
        "gpuPortionLimit": {
          "sourceOfRule": {
            "scope": "project",
            "projectId": 3
          },
          "required": true,
          "canEdit": true,
          "min": 1,
          "max": 1,
          "step": 1,
          "defaultFrom": {
            "field": "text",
            "factor": 1
          }
        },
        "gpuPortionRequest": {
          "sourceOfRule": {
            "scope": "project",
            "projectId": 3
          },
          "required": true,
          "canEdit": true,
          "min": 1,
          "max": 1,
          "step": 1,
          "defaultFrom": {
            "field": "text",
            "factor": 1
          }
        },
        "gpuRequestType": {
          "required": true,
          "canEdit": false,
          "blocked": false,
          "options": []
        },
        "largeShmRequest": {
          "sourceOfRule": {
            "scope": "project",
            "projectId": 3
          },
          "required": true,
          "canEdit": true
        }
      },
      "createHomeDir": {
        "sourceOfRule": {
          "scope": "project",
          "projectId": 3
        },
        "required": true,
        "canEdit": true
      },
      "environmentVariables": {
        "instances": {
          "sourceOfRule": {
            "scope": "project",
            "projectId": 3
          },
          "canAdd": true,
          "locked": [
            "HOME",
            "USER"
          ]
        }
      },
      "exposedUrls": {
        "attributes": {
          "container": {
            "sourceOfRule": {
              "scope": "project",
              "projectId": 3
            },
            "required": true,
            "canEdit": true,
            "min": 1,
            "max": 1,
            "step": 1,
            "defaultFrom": {
              "field": "text",
              "factor": 1
            }
          },
          "customUrl": {
            "sourceOfRule": {
              "scope": "project",
              "projectId": 3
            },
            "required": true,
            "canEdit": true
          },
          "url": {
            "required": true,
            "canEdit": false,
            "blocked": false,
            "options": []
          },
          "authorizedUsers": {
            "sourceOfRule": {
              "scope": "project",
              "projectId": 3
            },
            "required": true,
            "options": [],
            "canEdit": true
          },
          "authorizedGroups": {
            "sourceOfRule": {
              "scope": "project",
              "projectId": 3
            },
            "required": true,
            "options": [],
            "canEdit": true
          },
          "toolType": {
            "required": true,
            "canEdit": false,
            "blocked": false,
            "options": []
          },
          "toolName": {
            "required": true,
            "canEdit": false,
            "blocked": false,
            "options": []
          }
        },
        "instances": {
          "sourceOfRule": {
            "scope": "project",
            "projectId": 3
          },
          "canAdd": true,
          "locked": [
            "HOME",
            "USER"
          ]
        }
      },
      "image": {
        "required": true,
        "canEdit": false,
        "blocked": false,
        "options": []
      },
      "imagePullPolicy": {
        "required": true,
        "canEdit": false,
        "blocked": false,
        "options": []
      },
      "imagePullSecrets": {
        "attributes": {
          "name": {
            "required": true,
            "canEdit": false,
            "blocked": false,
            "options": []
          },
          "userCredentials": {
            "sourceOfRule": {
              "scope": "project",
              "projectId": 3
            },
            "required": true,
            "canEdit": true
          }
        },
        "instances": {
          "sourceOfRule": {
            "scope": "project",
            "projectId": 3
          },
          "canAdd": true,
          "locked": [
            "HOME",
            "USER"
          ]
        }
      },
      "labels": {
        "instances": {
          "sourceOfRule": {
            "scope": "project",
            "projectId": 3
          },
          "canAdd": true,
          "locked": [
            "HOME",
            "USER"
          ]
        }
      },
      "nodeAffinityRequired": {
        "sourceOfRule": {
          "scope": "project",
          "projectId": 3
        },
        "required": true,
        "canEdit": true
      },
      "nodePools": {
        "sourceOfRule": {
          "scope": "project",
          "projectId": 3
        },
        "required": true,
        "options": [],
        "canEdit": true
      },
      "nodeType": {
        "required": true,
        "canEdit": false,
        "blocked": false,
        "options": []
      },
      "podAffinity": {
        "type": {
          "required": true,
          "canEdit": false,
          "blocked": false,
          "options": []
        },
        "key": {
          "required": true,
          "canEdit": false,
          "blocked": false,
          "options": []
        }
      },
      "ports": {
        "attributes": {
          "container": {
            "sourceOfRule": {
              "scope": "project",
              "projectId": 3
            },
            "required": true,
            "canEdit": true,
            "min": 1,
            "max": 1,
            "step": 1,
            "defaultFrom": {
              "field": "text",
              "factor": 1
            }
          },
          "serviceType": {
            "required": true,
            "canEdit": false,
            "blocked": false,
            "options": []
          },
          "customExternalPort": {
            "sourceOfRule": {
              "scope": "project",
              "projectId": 3
            },
            "required": true,
            "canEdit": true
          },
          "external": {
            "sourceOfRule": {
              "scope": "project",
              "projectId": 3
            },
            "required": true,
            "canEdit": true,
            "min": 1,
            "max": 1,
            "step": 1,
            "defaultFrom": {
              "field": "text",
              "factor": 1
            }
          },
          "toolType": {
            "required": true,
            "canEdit": false,
            "blocked": false,
            "options": []
          },
          "toolName": {
            "required": true,
            "canEdit": false,
            "blocked": false,
            "options": []
          }
        },
        "instances": {
          "sourceOfRule": {
            "scope": "project",
            "projectId": 3
          },
          "canAdd": true,
          "locked": [
            "HOME",
            "USER"
          ]
        }
      },
      "preemptibility": {
        "required": true,
        "canEdit": false,
        "blocked": false,
        "options": []
      },
      "priorityClass": {
        "required": true,
        "canEdit": false,
        "blocked": false,
        "options": []
      },
      "probes": {
        "readiness": {
          "initialDelaySeconds": {
            "sourceOfRule": {
              "scope": "project",
              "projectId": 3
            },
            "required": true,
            "canEdit": true,
            "min": 1,
            "max": 1,
            "step": 1,
            "defaultFrom": {
              "field": "text",
              "factor": 1
            }
          },
          "periodSeconds": {
            "sourceOfRule": {
              "scope": "project",
              "projectId": 3
            },
            "required": true,
            "canEdit": true,
            "min": 1,
            "max": 1,
            "step": 1,
            "defaultFrom": {
              "field": "text",
              "factor": 1
            }
          },
          "timeoutSeconds": {
            "sourceOfRule": {
              "scope": "project",
              "projectId": 3
            },
            "required": true,
            "canEdit": true,
            "min": 1,
            "max": 1,
            "step": 1,
            "defaultFrom": {
              "field": "text",
              "factor": 1
            }
          },
          "successThreshold": {
            "sourceOfRule": {
              "scope": "project",
              "projectId": 3
            },
            "required": true,
            "canEdit": true,
            "min": 1,
            "max": 1,
            "step": 1,
            "defaultFrom": {
              "field": "text",
              "factor": 1
            }
          },
          "failureThreshold": {
            "sourceOfRule": {
              "scope": "project",
              "projectId": 3
            },
            "required": true,
            "canEdit": true,
            "min": 1,
            "max": 1,
            "step": 1,
            "defaultFrom": {
              "field": "text",
              "factor": 1
            }
          },
          "handler": {
            "httpGet": {
              "path": {
                "required": true,
                "canEdit": false,
                "blocked": false,
                "options": []
              },
              "port": {
                "sourceOfRule": {
                  "scope": "project",
                  "projectId": 3
                },
                "required": true,
                "canEdit": true,
                "min": 1,
                "max": 1,
                "step": 1,
                "defaultFrom": {
                  "field": "text",
                  "factor": 1
                }
              },
              "host": {
                "required": true,
                "canEdit": false,
                "blocked": false,
                "options": []
              },
              "scheme": {
                "required": true,
                "canEdit": false,
                "blocked": false,
                "options": []
              }
            }
          }
        }
      },
      "relatedUrls": {
        "attributes": {
          "url": {
            "required": true,
            "canEdit": false,
            "blocked": false,
            "options": []
          },
          "type": {
            "required": true,
            "canEdit": false,
            "blocked": false,
            "options": []
          },
          "name": {
            "required": true,
            "canEdit": false,
            "blocked": false,
            "options": []
          }
        },
        "instances": {
          "sourceOfRule": {
            "scope": "project",
            "projectId": 3
          },
          "canAdd": true,
          "locked": [
            "HOME",
            "USER"
          ]
        }
      },
      "restartPolicy": {
        "required": true,
        "canEdit": false,
        "blocked": false,
        "options": []
      },
      "security": {
        "allowPrivilegeEscalation": {
          "sourceOfRule": {
            "scope": "project",
            "projectId": 3
          },
          "required": true,
          "canEdit": true
        },
        "capabilities": {
          "sourceOfRule": {
            "scope": "project",
            "projectId": 3
          },
          "required": true,
          "options": [],
          "canEdit": true
        },
        "hostIpc": {
          "sourceOfRule": {
            "scope": "project",
            "projectId": 3
          },
          "required": true,
          "canEdit": true
        },
        "hostNetwork": {
          "sourceOfRule": {
            "scope": "project",
            "projectId": 3
          },
          "required": true,
          "canEdit": true
        },
        "readOnlyRootFilesystem": {
          "sourceOfRule": {
            "scope": "project",
            "projectId": 3
          },
          "required": true,
          "canEdit": true
        },
        "runAsGid": {
          "sourceOfRule": {
            "scope": "project",
            "projectId": 3
          },
          "canEdit": true,
          "min": 1,
          "max": 1,
          "step": 1,
          "defaultFrom": {
            "field": "text",
            "factor": 1
          }
        },
        "runAsNonRoot": {
          "sourceOfRule": {
            "scope": "project",
            "projectId": 3
          },
          "required": true,
          "canEdit": true
        },
        "runAsUid": {
          "sourceOfRule": {
            "scope": "project",
            "projectId": 3
          },
          "canEdit": true,
          "min": 1,
          "max": 1,
          "step": 1,
          "defaultFrom": {
            "field": "text",
            "factor": 1
          }
        },
        "seccompProfileType": {
          "required": true,
          "canEdit": false,
          "blocked": false,
          "options": []
        },
        "supplementalGroups": {
          "required": true,
          "canEdit": false,
          "blocked": false,
          "options": []
        },
        "uidGidSource": {
          "required": true,
          "canEdit": false,
          "blocked": false,
          "options": []
        }
      },
      "stdin": {
        "sourceOfRule": {
          "scope": "project",
          "projectId": 3
        },
        "required": true,
        "canEdit": true
      },
      "storage": {
        "configMapVolume": {
          "attributes": {
            "configMap": {
              "required": true,
              "canEdit": false,
              "blocked": false,
              "options": []
            },
            "mountPath": {
              "required": true,
              "canEdit": false,
              "blocked": false,
              "options": []
            },
            "subPath": {
              "required": true,
              "canEdit": false,
              "blocked": false,
              "options": []
            },
            "defaultMode": {
              "required": true,
              "canEdit": false,
              "blocked": false,
              "options": []
            }
          },
          "instances": {
            "sourceOfRule": {
              "scope": "project",
              "projectId": 3
            },
            "canAdd": true,
            "locked": [
              "HOME",
              "USER"
            ]
          }
        },
        "dataVolume": {
          "attributes": {
            "id": {
              "required": true,
              "canEdit": false,
              "blocked": false,
              "options": []
            },
            "mountPath": {
              "required": true,
              "canEdit": false,
              "blocked": false,
              "options": []
            }
          },
          "instances": {
            "sourceOfRule": {
              "scope": "project",
              "projectId": 3
            },
            "canAdd": true,
            "locked": [
              "HOME",
              "USER"
            ]
          }
        },
        "emptyDirVolume": {
          "attributes": {
            "path": {
              "required": true,
              "canEdit": false,
              "blocked": false,
              "options": []
            },
            "medium": {
              "required": true,
              "canEdit": false,
              "blocked": false,
              "options": []
            },
            "sizeLimit": {
              "required": true,
              "canEdit": false,
              "blocked": false,
              "options": []
            }
          },
          "instances": {
            "sourceOfRule": {
              "scope": "project",
              "projectId": 3
            },
            "canAdd": true,
            "locked": [
              "HOME",
              "USER"
            ]
          }
        },
        "git": {
          "attributes": {
            "repository": {
              "required": true,
              "canEdit": false,
              "blocked": false,
              "options": []
            },
            "branch": {
              "required": true,
              "canEdit": false,
              "blocked": false,
              "options": []
            },
            "revision": {
              "required": true,
              "canEdit": false,
              "blocked": false,
              "options": []
            },
            "path": {
              "required": true,
              "canEdit": false,
              "blocked": false,
              "options": []
            }
          },
          "instances": {
            "sourceOfRule": {
              "scope": "project",
              "projectId": 3
            },
            "canAdd": true,
            "locked": [
              "HOME",
              "USER"
            ]
          }
        },
        "hostPath": {
          "attributes": {
            "path": {
              "required": true,
              "canEdit": false,
              "blocked": false,
              "options": []
            },
            "readOnly": {
              "sourceOfRule": {
                "scope": "project",
                "projectId": 3
              },
              "required": true,
              "canEdit": true
            },
            "mountPath": {
              "required": true,
              "canEdit": false,
              "blocked": false,
              "options": []
            },
            "mountPropagation": {
              "required": true,
              "canEdit": false,
              "blocked": false,
              "options": []
            }
          },
          "instances": {
            "sourceOfRule": {
              "scope": "project",
              "projectId": 3
            },
            "canAdd": true,
            "locked": [
              "HOME",
              "USER"
            ]
          }
        },
        "nfs": {
          "attributes": {
            "path": {
              "required": true,
              "canEdit": false,
              "blocked": false,
              "options": []
            },
            "readOnly": {
              "sourceOfRule": {
                "scope": "project",
                "projectId": 3
              },
              "required": true,
              "canEdit": true
            },
            "server": {
              "required": true,
              "canEdit": false,
              "blocked": false,
              "options": []
            },
            "mountPath": {
              "required": true,
              "canEdit": false,
              "blocked": false,
              "options": []
            }
          },
          "instances": {
            "sourceOfRule": {
              "scope": "project",
              "projectId": 3
            },
            "canAdd": true,
            "locked": [
              "HOME",
              "USER"
            ]
          }
        },
        "pvc": {
          "attributes": {
            "claimName": {
              "required": true,
              "canEdit": false,
              "blocked": false,
              "options": []
            },
            "path": {
              "required": true,
              "canEdit": false,
              "blocked": false,
              "options": []
            },
            "readOnly": {
              "sourceOfRule": {
                "scope": "project",
                "projectId": 3
              },
              "required": true,
              "canEdit": true
            },
            "claimInfo": {
              "size": {
                "required": true,
                "canEdit": false,
                "blocked": false,
                "options": []
              },
              "storageClass": {
                "required": true,
                "canEdit": false,
                "blocked": false,
                "options": []
              },
              "accessModes": {
                "readWriteOnce": {
                  "sourceOfRule": {
                    "scope": "project",
                    "projectId": 3
                  },
                  "required": true,
                  "canEdit": true
                },
                "readOnlyMany": {
                  "sourceOfRule": {
                    "scope": "project",
                    "projectId": 3
                  },
                  "required": true,
                  "canEdit": true
                },
                "readWriteMany": {
                  "sourceOfRule": {
                    "scope": "project",
                    "projectId": 3
                  },
                  "required": true,
                  "canEdit": true
                }
              }
            }
          },
          "instances": {
            "sourceOfRule": {
              "scope": "project",
              "projectId": 3
            },
            "canAdd": true,
            "locked": [
              "HOME",
              "USER"
            ]
          }
        },
        "s3": {
          "attributes": {
            "bucket": {
              "required": true,
              "canEdit": false,
              "blocked": false,
              "options": []
            },
            "path": {
              "required": true,
              "canEdit": false,
              "blocked": false,
              "options": []
            },
            "url": {
              "required": true,
              "canEdit": false,
              "blocked": false,
              "options": []
            }
          },
          "instances": {
            "sourceOfRule": {
              "scope": "project",
              "projectId": 3
            },
            "canAdd": true,
            "locked": [
              "HOME",
              "USER"
            ]
          }
        },
        "secretVolume": {
          "attributes": {
            "secret": {
              "required": true,
              "canEdit": false,
              "blocked": false,
              "options": []
            },
            "mountPath": {
              "required": true,
              "canEdit": false,
              "blocked": false,
              "options": []
            },
            "defaultMode": {
              "required": true,
              "canEdit": false,
              "blocked": false,
              "options": []
            }
          },
          "instances": {
            "sourceOfRule": {
              "scope": "project",
              "projectId": 3
            },
            "canAdd": true,
            "locked": [
              "HOME",
              "USER"
            ]
          }
        }
      },
      "terminateAfterPreemption": {
        "sourceOfRule": {
          "scope": "project",
          "projectId": 3
        },
        "required": true,
        "canEdit": true
      },
      "terminationGracePeriodSeconds": {
        "sourceOfRule": {
          "scope": "project",
          "projectId": 3
        },
        "required": true,
        "canEdit": true,
        "min": 1,
        "max": 1,
        "step": 1,
        "defaultFrom": {
          "field": "text",
          "factor": 1
        }
      },
      "tolerations": {
        "attributes": {
          "operator": {
            "required": true,
            "canEdit": false,
            "blocked": false,
            "options": []
          },
          "key": {
            "required": true,
            "canEdit": false,
            "blocked": false,
            "options": []
          },
          "value": {
            "required": true,
            "canEdit": false,
            "blocked": false,
            "options": []
          },
          "effect": {
            "required": true,
            "canEdit": false,
            "blocked": false,
            "options": []
          },
          "seconds": {
            "sourceOfRule": {
              "scope": "project",
              "projectId": 3
            },
            "required": true,
            "canEdit": true,
            "min": 1,
            "max": 1,
            "step": 1,
            "defaultFrom": {
              "field": "text",
              "factor": 1
            }
          },
          "exclude": {
            "sourceOfRule": {
              "scope": "project",
              "projectId": 3
            },
            "required": true,
            "canEdit": true
          }
        },
        "instances": {
          "sourceOfRule": {
            "scope": "project",
            "projectId": 3
          },
          "canAdd": true,
          "locked": [
            "HOME",
            "USER"
          ]
        }
      },
      "tty": {
        "sourceOfRule": {
          "scope": "project",
          "projectId": 3
        },
        "required": true,
        "canEdit": true
      },
      "workingDir": {
        "required": true,
        "canEdit": false,
        "blocked": false,
        "options": []
      }
    },
    "imposedAssets": [
      "123e4567-e89b-12d3-a456-426614174000"
    ],
    "status": {
      "validation": {
        "errorMessage": "text"
      }
    }
  },
  "effective": {
    "defaults": {
      "annotations": {
        "instances": [
          {
            "name": "billing",
            "value": "my-billing-unit",
            "exclude": false
          }
        ]
      },
      "args": "-x my-script.py",
      "autoDeletionTimeAfterCompletionSeconds": 15,
      "backoffLimit": 3,
      "category": "text",
      "command": "python",
      "compute": {
        "cpuCoreLimit": 2,
        "cpuCoreRequest": 0.5,
        "cpuMemoryLimit": "30M",
        "cpuMemoryRequest": "20M",
        "extendedResources": {
          "attributes": {
            "resource": "hardware-vendor.example/foo",
            "quantity": 2,
            "exclude": false
          },
          "instances": [
            {
              "resource": "hardware-vendor.example/foo",
              "quantity": 2,
              "exclude": false
            }
          ]
        },
        "gpuDevicesRequest": 1,
        "gpuMemoryLimit": "10M",
        "gpuMemoryRequest": "10M",
        "gpuPortionLimit": 0.5,
        "gpuPortionRequest": 0.5,
        "gpuRequestType": "portion",
        "largeShmRequest": false
      },
      "createHomeDir": true,
      "environmentVariables": {
        "instances": [
          {
            "name": "HOME",
            "value": "/home/my-folder",
            "secret": {
              "name": "postgress_secret",
              "key": "POSTGRES_PASSWORD"
            },
            "configMap": {
              "name": "my-config-map",
              "key": "MY_POSTGRES_SCHEMA"
            },
            "podFieldRef": {
              "path": "metadata.name"
            },
            "userCredential": {
              "name": "my_postgres_user_and_password",
              "key": "POSTGRES_PASSWORD"
            },
            "exclude": false,
            "description": "Home directory of the user."
          }
        ]
      },
      "exposedUrls": {
        "attributes": {
          "container": 8080,
          "url": "https://my-url.com",
          "authorizationType": "authenticatedUsers",
          "authorizedUsers": [
            "user-a",
            "user-b"
          ],
          "authorizedGroups": [
            "group-a",
            "group-b"
          ],
          "toolType": "jupyter",
          "toolName": "my-pytorch",
          "name": "url-instance-a",
          "exclude": false
        },
        "instances": [
          {
            "container": 8080,
            "url": "https://my-url.com",
            "authorizationType": "authenticatedUsers",
            "authorizedUsers": [
              "user-a",
              "user-b"
            ],
            "authorizedGroups": [
              "group-a",
              "group-b"
            ],
            "toolType": "jupyter",
            "toolName": "my-pytorch",
            "name": "url-instance-a",
            "exclude": false
          }
        ]
      },
      "image": "python:3.8",
      "imagePullPolicy": "Always",
      "imagePullSecrets": {
        "instances": [
          {
            "name": "text",
            "userCredential": true,
            "exclude": false
          }
        ]
      },
      "labels": {
        "instances": [
          {
            "name": "stage",
            "value": "initial-research",
            "exclude": false
          }
        ]
      },
      "nodeAffinityRequired": {
        "nodeSelectorTerms": [
          {
            "matchExpressions": [
              {
                "key": "text",
                "operator": "In",
                "values": [
                  "text"
                ]
              }
            ]
          }
        ]
      },
      "nodePools": [
        "my-node-pool-a",
        "my-node-pool-b"
      ],
      "nodeType": "my-node-type",
      "podAffinity": {
        "type": "Required",
        "key": "text"
      },
      "ports": {
        "attributes": {
          "container": 8080,
          "serviceType": "LoadBalancer",
          "external": 30080,
          "toolType": "pytorch",
          "toolName": "my-pytorch",
          "name": "port-instance-a",
          "exclude": false
        },
        "instances": [
          {
            "container": 8080,
            "serviceType": "LoadBalancer",
            "external": 30080,
            "toolType": "pytorch",
            "toolName": "my-pytorch",
            "name": "port-instance-a",
            "exclude": false
          }
        ]
      },
      "preemptibility": "preemptible",
      "priorityClass": "text",
      "probes": {
        "readiness": {
          "initialDelaySeconds": 1,
          "periodSeconds": 1,
          "timeoutSeconds": 1,
          "successThreshold": 1,
          "failureThreshold": 1,
          "handler": {
            "httpGet": {
              "path": "/",
              "port": 1,
              "host": "example.com",
              "scheme": "HTTP"
            }
          }
        }
      },
      "relatedUrls": {
        "attributes": {
          "url": "https://my-url.com",
          "type": "wandb",
          "name": "url-instance-a",
          "exclude": false
        },
        "instances": [
          {
            "url": "https://my-url.com",
            "type": "wandb",
            "name": "url-instance-a",
            "exclude": false
          }
        ]
      },
      "restartPolicy": "Always",
      "security": {
        "allowPrivilegeEscalation": false,
        "capabilities": [
          "CHOWN",
          "KILL"
        ],
        "hostIpc": false,
        "hostNetwork": false,
        "readOnlyRootFilesystem": false,
        "runAsGid": 30,
        "runAsNonRoot": true,
        "runAsUid": 500,
        "seccompProfileType": "RuntimeDefault",
        "supplementalGroups": "2,3,5,8",
        "uidGidSource": "fromTheImage"
      },
      "stdin": true,
      "storage": {
        "configMapVolume": {
          "attributes": {
            "name": "storage-instance-a",
            "configMap": "text",
            "mountPath": "text",
            "subPath": "text",
            "defaultMode": "0644",
            "exclude": false
          },
          "instances": [
            {
              "name": "storage-instance-a",
              "configMap": "text",
              "mountPath": "text",
              "subPath": "text",
              "defaultMode": "0644",
              "exclude": false
            }
          ]
        },
        "dataVolume": {
          "attributes": {
            "id": "123e4567-e89b-12d3-a456-426614174000",
            "mountPath": "/mnt/data",
            "exclude": false
          },
          "instances": [
            {
              "id": "123e4567-e89b-12d3-a456-426614174000",
              "mountPath": "/mnt/data",
              "exclude": false
            }
          ]
        },
        "emptyDirVolume": {
          "attributes": {
            "name": "storage-instance-a",
            "path": "/mnt/emptydir",
            "medium": "text",
            "sizeLimit": "1G",
            "exclude": false
          },
          "instances": [
            {
              "name": "storage-instance-a",
              "path": "/mnt/emptydir",
              "medium": "text",
              "sizeLimit": "1G",
              "exclude": false
            }
          ]
        },
        "git": {
          "attributes": {
            "name": "storage-instance-a",
            "repository": "https://github.com/my-git/my-repo",
            "branch": "main",
            "revision": "text",
            "path": "/container/my-repository",
            "passwordSecret": "my-password-secret",
            "secretKeyOfUser": "User",
            "secretKeyOfPassword": "Password",
            "exclude": false,
            "secretRef": {
              "name": "my-password-secret",
              "authenticationMethod": "password",
              "secretKeyOfUser": "User",
              "secretKeyOfPassword": "Password"
            }
          },
          "instances": [
            {
              "name": "storage-instance-a",
              "repository": "https://github.com/my-git/my-repo",
              "branch": "main",
              "revision": "text",
              "path": "/container/my-repository",
              "passwordSecret": "my-password-secret",
              "secretKeyOfUser": "User",
              "secretKeyOfPassword": "Password",
              "exclude": false,
              "secretRef": {
                "name": "my-password-secret",
                "authenticationMethod": "password",
                "secretKeyOfUser": "User",
                "secretKeyOfPassword": "Password"
              }
            }
          ]
        },
        "hostPath": {
          "attributes": {
            "name": "storage-instance-a",
            "path": "/container/directory",
            "readOnly": true,
            "mountPath": "/local/directory",
            "mountPropagation": "None",
            "exclude": false
          },
          "instances": [
            {
              "name": "storage-instance-a",
              "path": "/container/directory",
              "readOnly": true,
              "mountPath": "/local/directory",
              "mountPropagation": "None",
              "exclude": false
            }
          ]
        },
        "nfs": {
          "attributes": {
            "name": "storage-instance-a",
            "path": "/container/nfs",
            "readOnly": true,
            "server": "my.nfs.com",
            "mountPath": "/local/nfs",
            "exclude": false
          },
          "instances": [
            {
              "name": "storage-instance-a",
              "path": "/container/nfs",
              "readOnly": true,
              "server": "my.nfs.com",
              "mountPath": "/local/nfs",
              "exclude": false
            }
          ]
        },
        "pvc": {
          "attributes": {
            "name": "storage-instance-a",
            "path": "/container/my-claim",
            "existingPvc": false,
            "claimName": "my-claim",
            "readOnly": false,
            "ephemeral": false,
            "claimInfo": {
              "size": "1G",
              "storageClass": "my-storage-class",
              "accessModes": {
                "readWriteOnce": true,
                "readOnlyMany": false,
                "readWriteMany": false
              },
              "volumeMode": "Filesystem",
              "addedAttrValues": [
                {
                  "key": "dnsname",
                  "value": "my.dns.com"
                }
              ]
            },
            "dataSharing": false,
            "exclude": false
          },
          "instances": [
            {
              "name": "storage-instance-a",
              "path": "/container/my-claim",
              "existingPvc": false,
              "claimName": "my-claim",
              "readOnly": false,
              "ephemeral": false,
              "claimInfo": {
                "size": "1G",
                "storageClass": "my-storage-class",
                "accessModes": {
                  "readWriteOnce": true,
                  "readOnlyMany": false,
                  "readWriteMany": false
                },
                "volumeMode": "Filesystem",
                "addedAttrValues": [
                  {
                    "key": "dnsname",
                    "value": "my.dns.com"
                  }
                ]
              },
              "dataSharing": false,
              "exclude": false
            }
          ]
        },
        "s3": {
          "attributes": {
            "name": "storage-instance-a",
            "bucket": "my-bucket",
            "path": "/container/my-bucket",
            "url": "https://s3.amazonaws.com",
            "accessKeySecret": "my-access-key-secret",
            "secretKeyOfAccessKeyId": "AccessKeyId",
            "secretKeyOfSecretKey": "SecretKey",
            "exclude": false
          },
          "instances": [
            {
              "name": "storage-instance-a",
              "bucket": "my-bucket",
              "path": "/container/my-bucket",
              "url": "https://s3.amazonaws.com",
              "accessKeySecret": "my-access-key-secret",
              "secretKeyOfAccessKeyId": "AccessKeyId",
              "secretKeyOfSecretKey": "SecretKey",
              "exclude": false
            }
          ]
        },
        "secretVolume": {
          "attributes": {
            "name": "storage-instance-a",
            "mountPath": "text",
            "defaultMode": "0644",
            "secret": "text",
            "exclude": false
          },
          "instances": [
            {
              "name": "storage-instance-a",
              "mountPath": "text",
              "defaultMode": "0644",
              "secret": "text",
              "exclude": false
            }
          ]
        }
      },
      "terminateAfterPreemption": false,
      "terminationGracePeriodSeconds": 20,
      "tolerations": {
        "attributes": {
          "name": "text",
          "operator": "Equal",
          "key": "text",
          "value": "text",
          "effect": "NoSchedule",
          "seconds": 1,
          "exclude": false
        },
        "instances": [
          {
            "name": "text",
            "operator": "Equal",
            "key": "text",
            "value": "text",
            "effect": "NoSchedule",
            "seconds": 1,
            "exclude": false
          }
        ]
      },
      "tty": true,
      "workingDir": "/home/myfolder"
    },
    "rules": {
      "annotations": {
        "instances": {
          "sourceOfRule": {
            "scope": "project",
            "projectId": 3
          },
          "canAdd": true,
          "locked": [
            "HOME",
            "USER"
          ]
        }
      },
      "args": {
        "required": true,
        "canEdit": false,
        "blocked": false,
        "options": []
      },
      "autoDeletionTimeAfterCompletionSeconds": {
        "sourceOfRule": {
          "scope": "project",
          "projectId": 3
        },
        "required": true,
        "canEdit": true,
        "min": 1,
        "max": 1,
        "step": 1,
        "defaultFrom": {
          "field": "text",
          "factor": 1
        }
      },
      "backoffLimit": {
        "sourceOfRule": {
          "scope": "project",
          "projectId": 3
        },
        "required": true,
        "canEdit": true,
        "min": 1,
        "max": 1,
        "step": 1,
        "defaultFrom": {
          "field": "text",
          "factor": 1
        }
      },
      "category": {
        "required": true,
        "canEdit": false,
        "blocked": false,
        "options": []
      },
      "command": {
        "required": true,
        "canEdit": false,
        "blocked": false,
        "options": []
      },
      "compute": {
        "cpuCoreLimit": {
          "sourceOfRule": {
            "scope": "project",
            "projectId": 3
          },
          "required": true,
          "canEdit": true,
          "min": 1,
          "max": 1,
          "step": 1,
          "defaultFrom": {
            "field": "text",
            "factor": 1
          }
        },
        "cpuCoreRequest": {
          "sourceOfRule": {
            "scope": "project",
            "projectId": 3
          },
          "required": true,
          "canEdit": true,
          "min": 1,
          "max": 1,
          "step": 1,
          "defaultFrom": {
            "field": "text",
            "factor": 1
          }
        },
        "cpuMemoryLimit": {
          "sourceOfRule": {
            "scope": "project",
            "projectId": 3
          },
          "required": true,
          "canEdit": true,
          "min": "text",
          "max": "text",
          "defaultFrom": {
            "field": "text",
            "factor": 1
          }
        },
        "cpuMemoryRequest": {
          "sourceOfRule": {
            "scope": "project",
            "projectId": 3
          },
          "required": true,
          "canEdit": true,
          "min": "text",
          "max": "text",
          "defaultFrom": {
            "field": "text",
            "factor": 1
          }
        },
        "extendedResources": {
          "attributes": {
            "quantity": {
              "required": true,
              "canEdit": false,
              "blocked": false,
              "options": []
            }
          },
          "instances": {
            "sourceOfRule": {
              "scope": "project",
              "projectId": 3
            },
            "canAdd": true,
            "locked": [
              "HOME",
              "USER"
            ]
          }
        },
        "gpuDevicesRequest": {
          "sourceOfRule": {
            "scope": "project",
            "projectId": 3
          },
          "required": true,
          "canEdit": true,
          "min": 1,
          "max": 1,
          "step": 1,
          "defaultFrom": {
            "field": "text",
            "factor": 1
          }
        },
        "gpuMemoryLimit": {
          "sourceOfRule": {
            "scope": "project",
            "projectId": 3
          },
          "required": true,
          "canEdit": true,
          "min": "text",
          "max": "text",
          "defaultFrom": {
            "field": "text",
            "factor": 1
          }
        },
        "gpuMemoryRequest": {
          "sourceOfRule": {
            "scope": "project",
            "projectId": 3
          },
          "required": true,
          "canEdit": true,
          "min": "text",
          "max": "text",
          "defaultFrom": {
            "field": "text",
            "factor": 1
          }
        },
        "gpuPortionLimit": {
          "sourceOfRule": {
            "scope": "project",
            "projectId": 3
          },
          "required": true,
          "canEdit": true,
          "min": 1,
          "max": 1,
          "step": 1,
          "defaultFrom": {
            "field": "text",
            "factor": 1
          }
        },
        "gpuPortionRequest": {
          "sourceOfRule": {
            "scope": "project",
            "projectId": 3
          },
          "required": true,
          "canEdit": true,
          "min": 1,
          "max": 1,
          "step": 1,
          "defaultFrom": {
            "field": "text",
            "factor": 1
          }
        },
        "gpuRequestType": {
          "required": true,
          "canEdit": false,
          "blocked": false,
          "options": []
        },
        "largeShmRequest": {
          "sourceOfRule": {
            "scope": "project",
            "projectId": 3
          },
          "required": true,
          "canEdit": true
        }
      },
      "createHomeDir": {
        "sourceOfRule": {
          "scope": "project",
          "projectId": 3
        },
        "required": true,
        "canEdit": true
      },
      "environmentVariables": {
        "instances": {
          "sourceOfRule": {
            "scope": "project",
            "projectId": 3
          },
          "canAdd": true,
          "locked": [
            "HOME",
            "USER"
          ]
        }
      },
      "exposedUrls": {
        "attributes": {
          "container": {
            "sourceOfRule": {
              "scope": "project",
              "projectId": 3
            },
            "required": true,
            "canEdit": true,
            "min": 1,
            "max": 1,
            "step": 1,
            "defaultFrom": {
              "field": "text",
              "factor": 1
            }
          },
          "customUrl": {
            "sourceOfRule": {
              "scope": "project",
              "projectId": 3
            },
            "required": true,
            "canEdit": true
          },
          "url": {
            "required": true,
            "canEdit": false,
            "blocked": false,
            "options": []
          },
          "authorizedUsers": {
            "sourceOfRule": {
              "scope": "project",
              "projectId": 3
            },
            "required": true,
            "options": [],
            "canEdit": true
          },
          "authorizedGroups": {
            "sourceOfRule": {
              "scope": "project",
              "projectId": 3
            },
            "required": true,
            "options": [],
            "canEdit": true
          },
          "toolType": {
            "required": true,
            "canEdit": false,
            "blocked": false,
            "options": []
          },
          "toolName": {
            "required": true,
            "canEdit": false,
            "blocked": false,
            "options": []
          }
        },
        "instances": {
          "sourceOfRule": {
            "scope": "project",
            "projectId": 3
          },
          "canAdd": true,
          "locked": [
            "HOME",
            "USER"
          ]
        }
      },
      "image": {
        "required": true,
        "canEdit": false,
        "blocked": false,
        "options": []
      },
      "imagePullPolicy": {
        "required": true,
        "canEdit": false,
        "blocked": false,
        "options": []
      },
      "imagePullSecrets": {
        "attributes": {
          "name": {
            "required": true,
            "canEdit": false,
            "blocked": false,
            "options": []
          },
          "userCredentials": {
            "sourceOfRule": {
              "scope": "project",
              "projectId": 3
            },
            "required": true,
            "canEdit": true
          }
        },
        "instances": {
          "sourceOfRule": {
            "scope": "project",
            "projectId": 3
          },
          "canAdd": true,
          "locked": [
            "HOME",
            "USER"
          ]
        }
      },
      "labels": {
        "instances": {
          "sourceOfRule": {
            "scope": "project",
            "projectId": 3
          },
          "canAdd": true,
          "locked": [
            "HOME",
            "USER"
          ]
        }
      },
      "nodeAffinityRequired": {
        "sourceOfRule": {
          "scope": "project",
          "projectId": 3
        },
        "required": true,
        "canEdit": true
      },
      "nodePools": {
        "sourceOfRule": {
          "scope": "project",
          "projectId": 3
        },
        "required": true,
        "options": [],
        "canEdit": true
      },
      "nodeType": {
        "required": true,
        "canEdit": false,
        "blocked": false,
        "options": []
      },
      "podAffinity": {
        "type": {
          "required": true,
          "canEdit": false,
          "blocked": false,
          "options": []
        },
        "key": {
          "required": true,
          "canEdit": false,
          "blocked": false,
          "options": []
        }
      },
      "ports": {
        "attributes": {
          "container": {
            "sourceOfRule": {
              "scope": "project",
              "projectId": 3
            },
            "required": true,
            "canEdit": true,
            "min": 1,
            "max": 1,
            "step": 1,
            "defaultFrom": {
              "field": "text",
              "factor": 1
            }
          },
          "serviceType": {
            "required": true,
            "canEdit": false,
            "blocked": false,
            "options": []
          },
          "customExternalPort": {
            "sourceOfRule": {
              "scope": "project",
              "projectId": 3
            },
            "required": true,
            "canEdit": true
          },
          "external": {
            "sourceOfRule": {
              "scope": "project",
              "projectId": 3
            },
            "required": true,
            "canEdit": true,
            "min": 1,
            "max": 1,
            "step": 1,
            "defaultFrom": {
              "field": "text",
              "factor": 1
            }
          },
          "toolType": {
            "required": true,
            "canEdit": false,
            "blocked": false,
            "options": []
          },
          "toolName": {
            "required": true,
            "canEdit": false,
            "blocked": false,
            "options": []
          }
        },
        "instances": {
          "sourceOfRule": {
            "scope": "project",
            "projectId": 3
          },
          "canAdd": true,
          "locked": [
            "HOME",
            "USER"
          ]
        }
      },
      "preemptibility": {
        "required": true,
        "canEdit": false,
        "blocked": false,
        "options": []
      },
      "priorityClass": {
        "required": true,
        "canEdit": false,
        "blocked": false,
        "options": []
      },
      "probes": {
        "readiness": {
          "initialDelaySeconds": {
            "sourceOfRule": {
              "scope": "project",
              "projectId": 3
            },
            "required": true,
            "canEdit": true,
            "min": 1,
            "max": 1,
            "step": 1,
            "defaultFrom": {
              "field": "text",
              "factor": 1
            }
          },
          "periodSeconds": {
            "sourceOfRule": {
              "scope": "project",
              "projectId": 3
            },
            "required": true,
            "canEdit": true,
            "min": 1,
            "max": 1,
            "step": 1,
            "defaultFrom": {
              "field": "text",
              "factor": 1
            }
          },
          "timeoutSeconds": {
            "sourceOfRule": {
              "scope": "project",
              "projectId": 3
            },
            "required": true,
            "canEdit": true,
            "min": 1,
            "max": 1,
            "step": 1,
            "defaultFrom": {
              "field": "text",
              "factor": 1
            }
          },
          "successThreshold": {
            "sourceOfRule": {
              "scope": "project",
              "projectId": 3
            },
            "required": true,
            "canEdit": true,
            "min": 1,
            "max": 1,
            "step": 1,
            "defaultFrom": {
              "field": "text",
              "factor": 1
            }
          },
          "failureThreshold": {
            "sourceOfRule": {
              "scope": "project",
              "projectId": 3
            },
            "required": true,
            "canEdit": true,
            "min": 1,
            "max": 1,
            "step": 1,
            "defaultFrom": {
              "field": "text",
              "factor": 1
            }
          },
          "handler": {
            "httpGet": {
              "path": {
                "required": true,
                "canEdit": false,
                "blocked": false,
                "options": []
              },
              "port": {
                "sourceOfRule": {
                  "scope": "project",
                  "projectId": 3
                },
                "required": true,
                "canEdit": true,
                "min": 1,
                "max": 1,
                "step": 1,
                "defaultFrom": {
                  "field": "text",
                  "factor": 1
                }
              },
              "host": {
                "required": true,
                "canEdit": false,
                "blocked": false,
                "options": []
              },
              "scheme": {
                "required": true,
                "canEdit": false,
                "blocked": false,
                "options": []
              }
            }
          }
        }
      },
      "relatedUrls": {
        "attributes": {
          "url": {
            "required": true,
            "canEdit": false,
            "blocked": false,
            "options": []
          },
          "type": {
            "required": true,
            "canEdit": false,
            "blocked": false,
            "options": []
          },
          "name": {
            "required": true,
            "canEdit": false,
            "blocked": false,
            "options": []
          }
        },
        "instances": {
          "sourceOfRule": {
            "scope": "project",
            "projectId": 3
          },
          "canAdd": true,
          "locked": [
            "HOME",
            "USER"
          ]
        }
      },
      "restartPolicy": {
        "required": true,
        "canEdit": false,
        "blocked": false,
        "options": []
      },
      "security": {
        "allowPrivilegeEscalation": {
          "sourceOfRule": {
            "scope": "project",
            "projectId": 3
          },
          "required": true,
          "canEdit": true
        },
        "capabilities": {
          "sourceOfRule": {
            "scope": "project",
            "projectId": 3
          },
          "required": true,
          "options": [],
          "canEdit": true
        },
        "hostIpc": {
          "sourceOfRule": {
            "scope": "project",
            "projectId": 3
          },
          "required": true,
          "canEdit": true
        },
        "hostNetwork": {
          "sourceOfRule": {
            "scope": "project",
            "projectId": 3
          },
          "required": true,
          "canEdit": true
        },
        "readOnlyRootFilesystem": {
          "sourceOfRule": {
            "scope": "project",
            "projectId": 3
          },
          "required": true,
          "canEdit": true
        },
        "runAsGid": {
          "sourceOfRule": {
            "scope": "project",
            "projectId": 3
          },
          "canEdit": true,
          "min": 1,
          "max": 1,
          "step": 1,
          "defaultFrom": {
            "field": "text",
            "factor": 1
          }
        },
        "runAsNonRoot": {
          "sourceOfRule": {
            "scope": "project",
            "projectId": 3
          },
          "required": true,
          "canEdit": true
        },
        "runAsUid": {
          "sourceOfRule": {
            "scope": "project",
            "projectId": 3
          },
          "canEdit": true,
          "min": 1,
          "max": 1,
          "step": 1,
          "defaultFrom": {
            "field": "text",
            "factor": 1
          }
        },
        "seccompProfileType": {
          "required": true,
          "canEdit": false,
          "blocked": false,
          "options": []
        },
        "supplementalGroups": {
          "required": true,
          "canEdit": false,
          "blocked": false,
          "options": []
        },
        "uidGidSource": {
          "required": true,
          "canEdit": false,
          "blocked": false,
          "options": []
        }
      },
      "stdin": {
        "sourceOfRule": {
          "scope": "project",
          "projectId": 3
        },
        "required": true,
        "canEdit": true
      },
      "storage": {
        "configMapVolume": {
          "attributes": {
            "configMap": {
              "required": true,
              "canEdit": false,
              "blocked": false,
              "options": []
            },
            "mountPath": {
              "required": true,
              "canEdit": false,
              "blocked": false,
              "options": []
            },
            "subPath": {
              "required": true,
              "canEdit": false,
              "blocked": false,
              "options": []
            },
            "defaultMode": {
              "required": true,
              "canEdit": false,
              "blocked": false,
              "options": []
            }
          },
          "instances": {
            "sourceOfRule": {
              "scope": "project",
              "projectId": 3
            },
            "canAdd": true,
            "locked": [
              "HOME",
              "USER"
            ]
          }
        },
        "dataVolume": {
          "attributes": {
            "id": {
              "required": true,
              "canEdit": false,
              "blocked": false,
              "options": []
            },
            "mountPath": {
              "required": true,
              "canEdit": false,
              "blocked": false,
              "options": []
            }
          },
          "instances": {
            "sourceOfRule": {
              "scope": "project",
              "projectId": 3
            },
            "canAdd": true,
            "locked": [
              "HOME",
              "USER"
            ]
          }
        },
        "emptyDirVolume": {
          "attributes": {
            "path": {
              "required": true,
              "canEdit": false,
              "blocked": false,
              "options": []
            },
            "medium": {
              "required": true,
              "canEdit": false,
              "blocked": false,
              "options": []
            },
            "sizeLimit": {
              "required": true,
              "canEdit": false,
              "blocked": false,
              "options": []
            }
          },
          "instances": {
            "sourceOfRule": {
              "scope": "project",
              "projectId": 3
            },
            "canAdd": true,
            "locked": [
              "HOME",
              "USER"
            ]
          }
        },
        "git": {
          "attributes": {
            "repository": {
              "required": true,
              "canEdit": false,
              "blocked": false,
              "options": []
            },
            "branch": {
              "required": true,
              "canEdit": false,
              "blocked": false,
              "options": []
            },
            "revision": {
              "required": true,
              "canEdit": false,
              "blocked": false,
              "options": []
            },
            "path": {
              "required": true,
              "canEdit": false,
              "blocked": false,
              "options": []
            }
          },
          "instances": {
            "sourceOfRule": {
              "scope": "project",
              "projectId": 3
            },
            "canAdd": true,
            "locked": [
              "HOME",
              "USER"
            ]
          }
        },
        "hostPath": {
          "attributes": {
            "path": {
              "required": true,
              "canEdit": false,
              "blocked": false,
              "options": []
            },
            "readOnly": {
              "sourceOfRule": {
                "scope": "project",
                "projectId": 3
              },
              "required": true,
              "canEdit": true
            },
            "mountPath": {
              "required": true,
              "canEdit": false,
              "blocked": false,
              "options": []
            },
            "mountPropagation": {
              "required": true,
              "canEdit": false,
              "blocked": false,
              "options": []
            }
          },
          "instances": {
            "sourceOfRule": {
              "scope": "project",
              "projectId": 3
            },
            "canAdd": true,
            "locked": [
              "HOME",
              "USER"
            ]
          }
        },
        "nfs": {
          "attributes": {
            "path": {
              "required": true,
              "canEdit": false,
              "blocked": false,
              "options": []
            },
            "readOnly": {
              "sourceOfRule": {
                "scope": "project",
                "projectId": 3
              },
              "required": true,
              "canEdit": true
            },
            "server": {
              "required": true,
              "canEdit": false,
              "blocked": false,
              "options": []
            },
            "mountPath": {
              "required": true,
              "canEdit": false,
              "blocked": false,
              "options": []
            }
          },
          "instances": {
            "sourceOfRule": {
              "scope": "project",
              "projectId": 3
            },
            "canAdd": true,
            "locked": [
              "HOME",
              "USER"
            ]
          }
        },
        "pvc": {
          "attributes": {
            "claimName": {
              "required": true,
              "canEdit": false,
              "blocked": false,
              "options": []
            },
            "path": {
              "required": true,
              "canEdit": false,
              "blocked": false,
              "options": []
            },
            "readOnly": {
              "sourceOfRule": {
                "scope": "project",
                "projectId": 3
              },
              "required": true,
              "canEdit": true
            },
            "claimInfo": {
              "size": {
                "required": true,
                "canEdit": false,
                "blocked": false,
                "options": []
              },
              "storageClass": {
                "required": true,
                "canEdit": false,
                "blocked": false,
                "options": []
              },
              "accessModes": {
                "readWriteOnce": {
                  "sourceOfRule": {
                    "scope": "project",
                    "projectId": 3
                  },
                  "required": true,
                  "canEdit": true
                },
                "readOnlyMany": {
                  "sourceOfRule": {
                    "scope": "project",
                    "projectId": 3
                  },
                  "required": true,
                  "canEdit": true
                },
                "readWriteMany": {
                  "sourceOfRule": {
                    "scope": "project",
                    "projectId": 3
                  },
                  "required": true,
                  "canEdit": true
                }
              }
            }
          },
          "instances": {
            "sourceOfRule": {
              "scope": "project",
              "projectId": 3
            },
            "canAdd": true,
            "locked": [
              "HOME",
              "USER"
            ]
          }
        },
        "s3": {
          "attributes": {
            "bucket": {
              "required": true,
              "canEdit": false,
              "blocked": false,
              "options": []
            },
            "path": {
              "required": true,
              "canEdit": false,
              "blocked": false,
              "options": []
            },
            "url": {
              "required": true,
              "canEdit": false,
              "blocked": false,
              "options": []
            }
          },
          "instances": {
            "sourceOfRule": {
              "scope": "project",
              "projectId": 3
            },
            "canAdd": true,
            "locked": [
              "HOME",
              "USER"
            ]
          }
        },
        "secretVolume": {
          "attributes": {
            "secret": {
              "required": true,
              "canEdit": false,
              "blocked": false,
              "options": []
            },
            "mountPath": {
              "required": true,
              "canEdit": false,
              "blocked": false,
              "options": []
            },
            "defaultMode": {
              "required": true,
              "canEdit": false,
              "blocked": false,
              "options": []
            }
          },
          "instances": {
            "sourceOfRule": {
              "scope": "project",
              "projectId": 3
            },
            "canAdd": true,
            "locked": [
              "HOME",
              "USER"
            ]
          }
        }
      },
      "terminateAfterPreemption": {
        "sourceOfRule": {
          "scope": "project",
          "projectId": 3
        },
        "required": true,
        "canEdit": true
      },
      "terminationGracePeriodSeconds": {
        "sourceOfRule": {
          "scope": "project",
          "projectId": 3
        },
        "required": true,
        "canEdit": true,
        "min": 1,
        "max": 1,
        "step": 1,
        "defaultFrom": {
          "field": "text",
          "factor": 1
        }
      },
      "tolerations": {
        "attributes": {
          "operator": {
            "required": true,
            "canEdit": false,
            "blocked": false,
            "options": []
          },
          "key": {
            "required": true,
            "canEdit": false,
            "blocked": false,
            "options": []
          },
          "value": {
            "required": true,
            "canEdit": false,
            "blocked": false,
            "options": []
          },
          "effect": {
            "required": true,
            "canEdit": false,
            "blocked": false,
            "options": []
          },
          "seconds": {
            "sourceOfRule": {
              "scope": "project",
              "projectId": 3
            },
            "required": true,
            "canEdit": true,
            "min": 1,
            "max": 1,
            "step": 1,
            "defaultFrom": {
              "field": "text",
              "factor": 1
            }
          },
          "exclude": {
            "sourceOfRule": {
              "scope": "project",
              "projectId": 3
            },
            "required": true,
            "canEdit": true
          }
        },
        "instances": {
          "sourceOfRule": {
            "scope": "project",
            "projectId": 3
          },
          "canAdd": true,
          "locked": [
            "HOME",
            "USER"
          ]
        }
      },
      "tty": {
        "sourceOfRule": {
          "scope": "project",
          "projectId": 3
        },
        "required": true,
        "canEdit": true
      },
      "workingDir": {
        "required": true,
        "canEdit": false,
        "blocked": false,
        "options": []
      }
    },
    "imposedAssets": [
      "123e4567-e89b-12d3-a456-426614174000"
    ],
    "status": {
      "validation": {
        "errorMessage": "text"
      }
    }
  },
  "effectiveUpdatedAt": "2026-01-01T00:00:00.000Z"
}

Delete a workspace policy.

delete

Use to delete a workspace policy for a given organizational unit.

Authorizations
AuthorizationstringRequired

Bearer authentication

Query parameters
scopestring · enumRequired

The scope that the policy relates to.

Possible values:
departmentIdstringOptional

Filter using the department id.

Example: 1
projectIdstringOptional

project id to filter by

Example: 1
clusterIdstring · uuidOptional

Filter using the Universally Unique Identifier (UUID) of the cluster.

Example: d73a738f-fab3-430a-8fa3-5241493d7128
approveClusterDeletionbooleanOptional

Required when modifying or deleting a policy if the tenant includes one or more clusters running version 2.20 or earlier. In such cases, the platform must delete the policy from the affected clusters. This flag indicates that the administrator approves this deletion.

Responses
204

The policy was deleted successfully.

No content

delete/api/v2/policy/workspaces
DELETE /api/v2/policy/workspaces?scope=tenant HTTP/1.1
Host: app.run.ai
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*

No content

Update a workspace policy.

patch

Use to apply changes to a workspace policy for a given organizational unit.

Authorizations
AuthorizationstringRequired

Bearer authentication

Query parameters
validateOnlybooleanOptional

Validate the given policy payload without applying it

approveClusterDeletionbooleanOptional

Required when modifying or deleting a policy if the tenant includes one or more clusters running version 2.20 or earlier. In such cases, the platform must delete the policy from the affected clusters. This flag indicates that the administrator approves this deletion.

Body
resetstring[]Optional

set of fields in jsonpath format that is requested to clear their policy (default and rules)

Example: ["master.security.runAsGpu","worker.compute.gpu"]
Responses
200

Policy applied.

application/json
effectiveUpdatedAtstring · date-time · min: 1Optional

The time at which an event occurred. e.g. the time an effective policy has been updated

patch/api/v2/policy/workspaces
PATCH /api/v2/policy/workspaces HTTP/1.1
Host: app.run.ai
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 21329

{
  "meta": {
    "scope": "system",
    "projectId": 1,
    "departmentId": 2,
    "clusterId": "71f69d83-ba66-4822-adf5-55ce55efd210",
    "name": "my-policy"
  },
  "policy": {
    "defaults": {
      "annotations": {
        "instances": [
          {
            "name": "billing",
            "value": "my-billing-unit",
            "exclude": false
          }
        ]
      },
      "args": "-x my-script.py",
      "autoDeletionTimeAfterCompletionSeconds": 15,
      "backoffLimit": 3,
      "category": "text",
      "command": "python",
      "compute": {
        "cpuCoreLimit": 2,
        "cpuCoreRequest": 0.5,
        "cpuMemoryLimit": "30M",
        "cpuMemoryRequest": "20M",
        "extendedResources": {
          "attributes": {
            "resource": "hardware-vendor.example/foo",
            "quantity": 2,
            "exclude": false
          },
          "instances": [
            {
              "resource": "hardware-vendor.example/foo",
              "quantity": 2,
              "exclude": false
            }
          ]
        },
        "gpuDevicesRequest": 1,
        "gpuMemoryLimit": "10M",
        "gpuMemoryRequest": "10M",
        "gpuPortionLimit": 0.5,
        "gpuPortionRequest": 0.5,
        "gpuRequestType": "portion",
        "largeShmRequest": false
      },
      "createHomeDir": true,
      "environmentVariables": {
        "instances": [
          {
            "name": "HOME",
            "value": "/home/my-folder",
            "secret": {
              "name": "postgress_secret",
              "key": "POSTGRES_PASSWORD"
            },
            "configMap": {
              "name": "my-config-map",
              "key": "MY_POSTGRES_SCHEMA"
            },
            "podFieldRef": {
              "path": "metadata.name"
            },
            "userCredential": {
              "name": "my_postgres_user_and_password",
              "key": "POSTGRES_PASSWORD"
            },
            "exclude": false,
            "description": "Home directory of the user."
          }
        ]
      },
      "exposedUrls": {
        "attributes": {
          "container": 8080,
          "url": "https://my-url.com",
          "authorizationType": "authenticatedUsers",
          "authorizedUsers": [
            "user-a",
            "user-b"
          ],
          "authorizedGroups": [
            "group-a",
            "group-b"
          ],
          "toolType": "jupyter",
          "toolName": "my-pytorch",
          "name": "url-instance-a",
          "exclude": false
        },
        "instances": [
          {
            "container": 8080,
            "url": "https://my-url.com",
            "authorizationType": "authenticatedUsers",
            "authorizedUsers": [
              "user-a",
              "user-b"
            ],
            "authorizedGroups": [
              "group-a",
              "group-b"
            ],
            "toolType": "jupyter",
            "toolName": "my-pytorch",
            "name": "url-instance-a",
            "exclude": false
          }
        ]
      },
      "image": "python:3.8",
      "imagePullPolicy": "Always",
      "imagePullSecrets": {
        "instances": [
          {
            "name": "text",
            "userCredential": true,
            "exclude": false
          }
        ]
      },
      "labels": {
        "instances": [
          {
            "name": "stage",
            "value": "initial-research",
            "exclude": false
          }
        ]
      },
      "nodeAffinityRequired": {
        "nodeSelectorTerms": [
          {
            "matchExpressions": [
              {
                "key": "text",
                "operator": "In",
                "values": [
                  "text"
                ]
              }
            ]
          }
        ]
      },
      "nodePools": [
        "my-node-pool-a",
        "my-node-pool-b"
      ],
      "nodeType": "my-node-type",
      "podAffinity": {
        "type": "Required",
        "key": "text"
      },
      "ports": {
        "attributes": {
          "container": 8080,
          "serviceType": "LoadBalancer",
          "external": 30080,
          "toolType": "pytorch",
          "toolName": "my-pytorch",
          "name": "port-instance-a",
          "exclude": false
        },
        "instances": [
          {
            "container": 8080,
            "serviceType": "LoadBalancer",
            "external": 30080,
            "toolType": "pytorch",
            "toolName": "my-pytorch",
            "name": "port-instance-a",
            "exclude": false
          }
        ]
      },
      "preemptibility": "preemptible",
      "priorityClass": "text",
      "probes": {
        "readiness": {
          "initialDelaySeconds": 1,
          "periodSeconds": 1,
          "timeoutSeconds": 1,
          "successThreshold": 1,
          "failureThreshold": 1,
          "handler": {
            "httpGet": {
              "path": "/",
              "port": 1,
              "host": "example.com",
              "scheme": "HTTP"
            }
          }
        }
      },
      "relatedUrls": {
        "attributes": {
          "url": "https://my-url.com",
          "type": "wandb",
          "name": "url-instance-a",
          "exclude": false
        },
        "instances": [
          {
            "url": "https://my-url.com",
            "type": "wandb",
            "name": "url-instance-a",
            "exclude": false
          }
        ]
      },
      "restartPolicy": "Always",
      "security": {
        "allowPrivilegeEscalation": false,
        "capabilities": [
          "CHOWN",
          "KILL"
        ],
        "hostIpc": false,
        "hostNetwork": false,
        "readOnlyRootFilesystem": false,
        "runAsGid": 30,
        "runAsNonRoot": true,
        "runAsUid": 500,
        "seccompProfileType": "RuntimeDefault",
        "supplementalGroups": "2,3,5,8",
        "uidGidSource": "fromTheImage"
      },
      "stdin": true,
      "storage": {
        "configMapVolume": {
          "attributes": {
            "name": "storage-instance-a",
            "configMap": "text",
            "mountPath": "text",
            "subPath": "text",
            "defaultMode": "0644",
            "exclude": false
          },
          "instances": [
            {
              "name": "storage-instance-a",
              "configMap": "text",
              "mountPath": "text",
              "subPath": "text",
              "defaultMode": "0644",
              "exclude": false
            }
          ]
        },
        "dataVolume": {
          "attributes": {
            "id": "123e4567-e89b-12d3-a456-426614174000",
            "mountPath": "/mnt/data",
            "exclude": false
          },
          "instances": [
            {
              "id": "123e4567-e89b-12d3-a456-426614174000",
              "mountPath": "/mnt/data",
              "exclude": false
            }
          ]
        },
        "emptyDirVolume": {
          "attributes": {
            "name": "storage-instance-a",
            "path": "/mnt/emptydir",
            "medium": "text",
            "sizeLimit": "1G",
            "exclude": false
          },
          "instances": [
            {
              "name": "storage-instance-a",
              "path": "/mnt/emptydir",
              "medium": "text",
              "sizeLimit": "1G",
              "exclude": false
            }
          ]
        },
        "git": {
          "attributes": {
            "name": "storage-instance-a",
            "repository": "https://github.com/my-git/my-repo",
            "branch": "main",
            "revision": "text",
            "path": "/container/my-repository",
            "passwordSecret": "my-password-secret",
            "secretKeyOfUser": "User",
            "secretKeyOfPassword": "Password",
            "exclude": false,
            "secretRef": {
              "name": "my-password-secret",
              "authenticationMethod": "password",
              "secretKeyOfUser": "User",
              "secretKeyOfPassword": "Password"
            }
          },
          "instances": [
            {
              "name": "storage-instance-a",
              "repository": "https://github.com/my-git/my-repo",
              "branch": "main",
              "revision": "text",
              "path": "/container/my-repository",
              "passwordSecret": "my-password-secret",
              "secretKeyOfUser": "User",
              "secretKeyOfPassword": "Password",
              "exclude": false,
              "secretRef": {
                "name": "my-password-secret",
                "authenticationMethod": "password",
                "secretKeyOfUser": "User",
                "secretKeyOfPassword": "Password"
              }
            }
          ]
        },
        "hostPath": {
          "attributes": {
            "name": "storage-instance-a",
            "path": "/container/directory",
            "readOnly": true,
            "mountPath": "/local/directory",
            "mountPropagation": "None",
            "exclude": false
          },
          "instances": [
            {
              "name": "storage-instance-a",
              "path": "/container/directory",
              "readOnly": true,
              "mountPath": "/local/directory",
              "mountPropagation": "None",
              "exclude": false
            }
          ]
        },
        "nfs": {
          "attributes": {
            "name": "storage-instance-a",
            "path": "/container/nfs",
            "readOnly": true,
            "server": "my.nfs.com",
            "mountPath": "/local/nfs",
            "exclude": false
          },
          "instances": [
            {
              "name": "storage-instance-a",
              "path": "/container/nfs",
              "readOnly": true,
              "server": "my.nfs.com",
              "mountPath": "/local/nfs",
              "exclude": false
            }
          ]
        },
        "pvc": {
          "attributes": {
            "name": "storage-instance-a",
            "path": "/container/my-claim",
            "existingPvc": false,
            "claimName": "my-claim",
            "readOnly": false,
            "ephemeral": false,
            "claimInfo": {
              "size": "1G",
              "storageClass": "my-storage-class",
              "accessModes": {
                "readWriteOnce": true,
                "readOnlyMany": false,
                "readWriteMany": false
              },
              "volumeMode": "Filesystem",
              "addedAttrValues": [
                {
                  "key": "dnsname",
                  "value": "my.dns.com"
                }
              ]
            },
            "dataSharing": false,
            "exclude": false
          },
          "instances": [
            {
              "name": "storage-instance-a",
              "path": "/container/my-claim",
              "existingPvc": false,
              "claimName": "my-claim",
              "readOnly": false,
              "ephemeral": false,
              "claimInfo": {
                "size": "1G",
                "storageClass": "my-storage-class",
                "accessModes": {
                  "readWriteOnce": true,
                  "readOnlyMany": false,
                  "readWriteMany": false
                },
                "volumeMode": "Filesystem",
                "addedAttrValues": [
                  {
                    "key": "dnsname",
                    "value": "my.dns.com"
                  }
                ]
              },
              "dataSharing": false,
              "exclude": false
            }
          ]
        },
        "s3": {
          "attributes": {
            "name": "storage-instance-a",
            "bucket": "my-bucket",
            "path": "/container/my-bucket",
            "url": "https://s3.amazonaws.com",
            "accessKeySecret": "my-access-key-secret",
            "secretKeyOfAccessKeyId": "AccessKeyId",
            "secretKeyOfSecretKey": "SecretKey",
            "exclude": false
          },
          "instances": [
            {
              "name": "storage-instance-a",
              "bucket": "my-bucket",
              "path": "/container/my-bucket",
              "url": "https://s3.amazonaws.com",
              "accessKeySecret": "my-access-key-secret",
              "secretKeyOfAccessKeyId": "AccessKeyId",
              "secretKeyOfSecretKey": "SecretKey",
              "exclude": false
            }
          ]
        },
        "secretVolume": {
          "attributes": {
            "name": "storage-instance-a",
            "mountPath": "text",
            "defaultMode": "0644",
            "secret": "text",
            "exclude": false
          },
          "instances": [
            {
              "name": "storage-instance-a",
              "mountPath": "text",
              "defaultMode": "0644",
              "secret": "text",
              "exclude": false
            }
          ]
        }
      },
      "terminateAfterPreemption": false,
      "terminationGracePeriodSeconds": 20,
      "tolerations": {
        "attributes": {
          "name": "text",
          "operator": "Equal",
          "key": "text",
          "value": "text",
          "effect": "NoSchedule",
          "seconds": 1,
          "exclude": false
        },
        "instances": [
          {
            "name": "text",
            "operator": "Equal",
            "key": "text",
            "value": "text",
            "effect": "NoSchedule",
            "seconds": 1,
            "exclude": false
          }
        ]
      },
      "tty": true,
      "workingDir": "/home/myfolder"
    },
    "rules": {
      "annotations": {
        "instances": {
          "sourceOfRule": {
            "scope": "project",
            "projectId": 3
          },
          "canAdd": true,
          "locked": [
            "HOME",
            "USER"
          ]
        }
      },
      "args": {
        "required": true,
        "canEdit": false,
        "blocked": false,
        "options": []
      },
      "autoDeletionTimeAfterCompletionSeconds": {
        "sourceOfRule": {
          "scope": "project",
          "projectId": 3
        },
        "required": true,
        "canEdit": true,
        "min": 1,
        "max": 1,
        "step": 1,
        "defaultFrom": {
          "field": "text",
          "factor": 1
        }
      },
      "backoffLimit": {
        "sourceOfRule": {
          "scope": "project",
          "projectId": 3
        },
        "required": true,
        "canEdit": true,
        "min": 1,
        "max": 1,
        "step": 1,
        "defaultFrom": {
          "field": "text",
          "factor": 1
        }
      },
      "category": {
        "required": true,
        "canEdit": false,
        "blocked": false,
        "options": []
      },
      "command": {
        "required": true,
        "canEdit": false,
        "blocked": false,
        "options": []
      },
      "compute": {
        "cpuCoreLimit": {
          "sourceOfRule": {
            "scope": "project",
            "projectId": 3
          },
          "required": true,
          "canEdit": true,
          "min": 1,
          "max": 1,
          "step": 1,
          "defaultFrom": {
            "field": "text",
            "factor": 1
          }
        },
        "cpuCoreRequest": {
          "sourceOfRule": {
            "scope": "project",
            "projectId": 3
          },
          "required": true,
          "canEdit": true,
          "min": 1,
          "max": 1,
          "step": 1,
          "defaultFrom": {
            "field": "text",
            "factor": 1
          }
        },
        "cpuMemoryLimit": {
          "sourceOfRule": {
            "scope": "project",
            "projectId": 3
          },
          "required": true,
          "canEdit": true,
          "min": "text",
          "max": "text",
          "defaultFrom": {
            "field": "text",
            "factor": 1
          }
        },
        "cpuMemoryRequest": {
          "sourceOfRule": {
            "scope": "project",
            "projectId": 3
          },
          "required": true,
          "canEdit": true,
          "min": "text",
          "max": "text",
          "defaultFrom": {
            "field": "text",
            "factor": 1
          }
        },
        "extendedResources": {
          "attributes": {
            "quantity": {
              "required": true,
              "canEdit": false,
              "blocked": false,
              "options": []
            }
          },
          "instances": {
            "sourceOfRule": {
              "scope": "project",
              "projectId": 3
            },
            "canAdd": true,
            "locked": [
              "HOME",
              "USER"
            ]
          }
        },
        "gpuDevicesRequest": {
          "sourceOfRule": {
            "scope": "project",
            "projectId": 3
          },
          "required": true,
          "canEdit": true,
          "min": 1,
          "max": 1,
          "step": 1,
          "defaultFrom": {
            "field": "text",
            "factor": 1
          }
        },
        "gpuMemoryLimit": {
          "sourceOfRule": {
            "scope": "project",
            "projectId": 3
          },
          "required": true,
          "canEdit": true,
          "min": "text",
          "max": "text",
          "defaultFrom": {
            "field": "text",
            "factor": 1
          }
        },
        "gpuMemoryRequest": {
          "sourceOfRule": {
            "scope": "project",
            "projectId": 3
          },
          "required": true,
          "canEdit": true,
          "min": "text",
          "max": "text",
          "defaultFrom": {
            "field": "text",
            "factor": 1
          }
        },
        "gpuPortionLimit": {
          "sourceOfRule": {
            "scope": "project",
            "projectId": 3
          },
          "required": true,
          "canEdit": true,
          "min": 1,
          "max": 1,
          "step": 1,
          "defaultFrom": {
            "field": "text",
            "factor": 1
          }
        },
        "gpuPortionRequest": {
          "sourceOfRule": {
            "scope": "project",
            "projectId": 3
          },
          "required": true,
          "canEdit": true,
          "min": 1,
          "max": 1,
          "step": 1,
          "defaultFrom": {
            "field": "text",
            "factor": 1
          }
        },
        "gpuRequestType": {
          "required": true,
          "canEdit": false,
          "blocked": false,
          "options": []
        },
        "largeShmRequest": {
          "sourceOfRule": {
            "scope": "project",
            "projectId": 3
          },
          "required": true,
          "canEdit": true
        }
      },
      "createHomeDir": {
        "sourceOfRule": {
          "scope": "project",
          "projectId": 3
        },
        "required": true,
        "canEdit": true
      },
      "environmentVariables": {
        "instances": {
          "sourceOfRule": {
            "scope": "project",
            "projectId": 3
          },
          "canAdd": true,
          "locked": [
            "HOME",
            "USER"
          ]
        }
      },
      "exposedUrls": {
        "attributes": {
          "container": {
            "sourceOfRule": {
              "scope": "project",
              "projectId": 3
            },
            "required": true,
            "canEdit": true,
            "min": 1,
            "max": 1,
            "step": 1,
            "defaultFrom": {
              "field": "text",
              "factor": 1
            }
          },
          "customUrl": {
            "sourceOfRule": {
              "scope": "project",
              "projectId": 3
            },
            "required": true,
            "canEdit": true
          },
          "url": {
            "required": true,
            "canEdit": false,
            "blocked": false,
            "options": []
          },
          "authorizedUsers": {
            "sourceOfRule": {
              "scope": "project",
              "projectId": 3
            },
            "required": true,
            "options": [],
            "canEdit": true
          },
          "authorizedGroups": {
            "sourceOfRule": {
              "scope": "project",
              "projectId": 3
            },
            "required": true,
            "options": [],
            "canEdit": true
          },
          "toolType": {
            "required": true,
            "canEdit": false,
            "blocked": false,
            "options": []
          },
          "toolName": {
            "required": true,
            "canEdit": false,
            "blocked": false,
            "options": []
          }
        },
        "instances": {
          "sourceOfRule": {
            "scope": "project",
            "projectId": 3
          },
          "canAdd": true,
          "locked": [
            "HOME",
            "USER"
          ]
        }
      },
      "image": {
        "required": true,
        "canEdit": false,
        "blocked": false,
        "options": []
      },
      "imagePullPolicy": {
        "required": true,
        "canEdit": false,
        "blocked": false,
        "options": []
      },
      "imagePullSecrets": {
        "attributes": {
          "name": {
            "required": true,
            "canEdit": false,
            "blocked": false,
            "options": []
          },
          "userCredentials": {
            "sourceOfRule": {
              "scope": "project",
              "projectId": 3
            },
            "required": true,
            "canEdit": true
          }
        },
        "instances": {
          "sourceOfRule": {
            "scope": "project",
            "projectId": 3
          },
          "canAdd": true,
          "locked": [
            "HOME",
            "USER"
          ]
        }
      },
      "labels": {
        "instances": {
          "sourceOfRule": {
            "scope": "project",
            "projectId": 3
          },
          "canAdd": true,
          "locked": [
            "HOME",
            "USER"
          ]
        }
      },
      "nodeAffinityRequired": {
        "sourceOfRule": {
          "scope": "project",
          "projectId": 3
        },
        "required": true,
        "canEdit": true
      },
      "nodePools": {
        "sourceOfRule": {
          "scope": "project",
          "projectId": 3
        },
        "required": true,
        "options": [],
        "canEdit": true
      },
      "nodeType": {
        "required": true,
        "canEdit": false,
        "blocked": false,
        "options": []
      },
      "podAffinity": {
        "type": {
          "required": true,
          "canEdit": false,
          "blocked": false,
          "options": []
        },
        "key": {
          "required": true,
          "canEdit": false,
          "blocked": false,
          "options": []
        }
      },
      "ports": {
        "attributes": {
          "container": {
            "sourceOfRule": {
              "scope": "project",
              "projectId": 3
            },
            "required": true,
            "canEdit": true,
            "min": 1,
            "max": 1,
            "step": 1,
            "defaultFrom": {
              "field": "text",
              "factor": 1
            }
          },
          "serviceType": {
            "required": true,
            "canEdit": false,
            "blocked": false,
            "options": []
          },
          "customExternalPort": {
            "sourceOfRule": {
              "scope": "project",
              "projectId": 3
            },
            "required": true,
            "canEdit": true
          },
          "external": {
            "sourceOfRule": {
              "scope": "project",
              "projectId": 3
            },
            "required": true,
            "canEdit": true,
            "min": 1,
            "max": 1,
            "step": 1,
            "defaultFrom": {
              "field": "text",
              "factor": 1
            }
          },
          "toolType": {
            "required": true,
            "canEdit": false,
            "blocked": false,
            "options": []
          },
          "toolName": {
            "required": true,
            "canEdit": false,
            "blocked": false,
            "options": []
          }
        },
        "instances": {
          "sourceOfRule": {
            "scope": "project",
            "projectId": 3
          },
          "canAdd": true,
          "locked": [
            "HOME",
            "USER"
          ]
        }
      },
      "preemptibility": {
        "required": true,
        "canEdit": false,
        "blocked": false,
        "options": []
      },
      "priorityClass": {
        "required": true,
        "canEdit": false,
        "blocked": false,
        "options": []
      },
      "probes": {
        "readiness": {
          "initialDelaySeconds": {
            "sourceOfRule": {
              "scope": "project",
              "projectId": 3
            },
            "required": true,
            "canEdit": true,
            "min": 1,
            "max": 1,
            "step": 1,
            "defaultFrom": {
              "field": "text",
              "factor": 1
            }
          },
          "periodSeconds": {
            "sourceOfRule": {
              "scope": "project",
              "projectId": 3
            },
            "required": true,
            "canEdit": true,
            "min": 1,
            "max": 1,
            "step": 1,
            "defaultFrom": {
              "field": "text",
              "factor": 1
            }
          },
          "timeoutSeconds": {
            "sourceOfRule": {
              "scope": "project",
              "projectId": 3
            },
            "required": true,
            "canEdit": true,
            "min": 1,
            "max": 1,
            "step": 1,
            "defaultFrom": {
              "field": "text",
              "factor": 1
            }
          },
          "successThreshold": {
            "sourceOfRule": {
              "scope": "project",
              "projectId": 3
            },
            "required": true,
            "canEdit": true,
            "min": 1,
            "max": 1,
            "step": 1,
            "defaultFrom": {
              "field": "text",
              "factor": 1
            }
          },
          "failureThreshold": {
            "sourceOfRule": {
              "scope": "project",
              "projectId": 3
            },
            "required": true,
            "canEdit": true,
            "min": 1,
            "max": 1,
            "step": 1,
            "defaultFrom": {
              "field": "text",
              "factor": 1
            }
          },
          "handler": {
            "httpGet": {
              "path": {
                "required": true,
                "canEdit": false,
                "blocked": false,
                "options": []
              },
              "port": {
                "sourceOfRule": {
                  "scope": "project",
                  "projectId": 3
                },
                "required": true,
                "canEdit": true,
                "min": 1,
                "max": 1,
                "step": 1,
                "defaultFrom": {
                  "field": "text",
                  "factor": 1
                }
              },
              "host": {
                "required": true,
                "canEdit": false,
                "blocked": false,
                "options": []
              },
              "scheme": {
                "required": true,
                "canEdit": false,
                "blocked": false,
                "options": []
              }
            }
          }
        }
      },
      "relatedUrls": {
        "attributes": {
          "url": {
            "required": true,
            "canEdit": false,
            "blocked": false,
            "options": []
          },
          "type": {
            "required": true,
            "canEdit": false,
            "blocked": false,
            "options": []
          },
          "name": {
            "required": true,
            "canEdit": false,
            "blocked": false,
            "options": []
          }
        },
        "instances": {
          "sourceOfRule": {
            "scope": "project",
            "projectId": 3
          },
          "canAdd": true,
          "locked": [
            "HOME",
            "USER"
          ]
        }
      },
      "restartPolicy": {
        "required": true,
        "canEdit": false,
        "blocked": false,
        "options": []
      },
      "security": {
        "allowPrivilegeEscalation": {
          "sourceOfRule": {
            "scope": "project",
            "projectId": 3
          },
          "required": true,
          "canEdit": true
        },
        "capabilities": {
          "sourceOfRule": {
            "scope": "project",
            "projectId": 3
          },
          "required": true,
          "options": [],
          "canEdit": true
        },
        "hostIpc": {
          "sourceOfRule": {
            "scope": "project",
            "projectId": 3
          },
          "required": true,
          "canEdit": true
        },
        "hostNetwork": {
          "sourceOfRule": {
            "scope": "project",
            "projectId": 3
          },
          "required": true,
          "canEdit": true
        },
        "readOnlyRootFilesystem": {
          "sourceOfRule": {
            "scope": "project",
            "projectId": 3
          },
          "required": true,
          "canEdit": true
        },
        "runAsGid": {
          "sourceOfRule": {
            "scope": "project",
            "projectId": 3
          },
          "canEdit": true,
          "min": 1,
          "max": 1,
          "step": 1,
          "defaultFrom": {
            "field": "text",
            "factor": 1
          }
        },
        "runAsNonRoot": {
          "sourceOfRule": {
            "scope": "project",
            "projectId": 3
          },
          "required": true,
          "canEdit": true
        },
        "runAsUid": {
          "sourceOfRule": {
            "scope": "project",
            "projectId": 3
          },
          "canEdit": true,
          "min": 1,
          "max": 1,
          "step": 1,
          "defaultFrom": {
            "field": "text",
            "factor": 1
          }
        },
        "seccompProfileType": {
          "required": true,
          "canEdit": false,
          "blocked": false,
          "options": []
        },
        "supplementalGroups": {
          "required": true,
          "canEdit": false,
          "blocked": false,
          "options": []
        },
        "uidGidSource": {
          "required": true,
          "canEdit": false,
          "blocked": false,
          "options": []
        }
      },
      "stdin": {
        "sourceOfRule": {
          "scope": "project",
          "projectId": 3
        },
        "required": true,
        "canEdit": true
      },
      "storage": {
        "configMapVolume": {
          "attributes": {
            "configMap": {
              "required": true,
              "canEdit": false,
              "blocked": false,
              "options": []
            },
            "mountPath": {
              "required": true,
              "canEdit": false,
              "blocked": false,
              "options": []
            },
            "subPath": {
              "required": true,
              "canEdit": false,
              "blocked": false,
              "options": []
            },
            "defaultMode": {
              "required": true,
              "canEdit": false,
              "blocked": false,
              "options": []
            }
          },
          "instances": {
            "sourceOfRule": {
              "scope": "project",
              "projectId": 3
            },
            "canAdd": true,
            "locked": [
              "HOME",
              "USER"
            ]
          }
        },
        "dataVolume": {
          "attributes": {
            "id": {
              "required": true,
              "canEdit": false,
              "blocked": false,
              "options": []
            },
            "mountPath": {
              "required": true,
              "canEdit": false,
              "blocked": false,
              "options": []
            }
          },
          "instances": {
            "sourceOfRule": {
              "scope": "project",
              "projectId": 3
            },
            "canAdd": true,
            "locked": [
              "HOME",
              "USER"
            ]
          }
        },
        "emptyDirVolume": {
          "attributes": {
            "path": {
              "required": true,
              "canEdit": false,
              "blocked": false,
              "options": []
            },
            "medium": {
              "required": true,
              "canEdit": false,
              "blocked": false,
              "options": []
            },
            "sizeLimit": {
              "required": true,
              "canEdit": false,
              "blocked": false,
              "options": []
            }
          },
          "instances": {
            "sourceOfRule": {
              "scope": "project",
              "projectId": 3
            },
            "canAdd": true,
            "locked": [
              "HOME",
              "USER"
            ]
          }
        },
        "git": {
          "attributes": {
            "repository": {
              "required": true,
              "canEdit": false,
              "blocked": false,
              "options": []
            },
            "branch": {
              "required": true,
              "canEdit": false,
              "blocked": false,
              "options": []
            },
            "revision": {
              "required": true,
              "canEdit": false,
              "blocked": false,
              "options": []
            },
            "path": {
              "required": true,
              "canEdit": false,
              "blocked": false,
              "options": []
            }
          },
          "instances": {
            "sourceOfRule": {
              "scope": "project",
              "projectId": 3
            },
            "canAdd": true,
            "locked": [
              "HOME",
              "USER"
            ]
          }
        },
        "hostPath": {
          "attributes": {
            "path": {
              "required": true,
              "canEdit": false,
              "blocked": false,
              "options": []
            },
            "readOnly": {
              "sourceOfRule": {
                "scope": "project",
                "projectId": 3
              },
              "required": true,
              "canEdit": true
            },
            "mountPath": {
              "required": true,
              "canEdit": false,
              "blocked": false,
              "options": []
            },
            "mountPropagation": {
              "required": true,
              "canEdit": false,
              "blocked": false,
              "options": []
            }
          },
          "instances": {
            "sourceOfRule": {
              "scope": "project",
              "projectId": 3
            },
            "canAdd": true,
            "locked": [
              "HOME",
              "USER"
            ]
          }
        },
        "nfs": {
          "attributes": {
            "path": {
              "required": true,
              "canEdit": false,
              "blocked": false,
              "options": []
            },
            "readOnly": {
              "sourceOfRule": {
                "scope": "project",
                "projectId": 3
              },
              "required": true,
              "canEdit": true
            },
            "server": {
              "required": true,
              "canEdit": false,
              "blocked": false,
              "options": []
            },
            "mountPath": {
              "required": true,
              "canEdit": false,
              "blocked": false,
              "options": []
            }
          },
          "instances": {
            "sourceOfRule": {
              "scope": "project",
              "projectId": 3
            },
            "canAdd": true,
            "locked": [
              "HOME",
              "USER"
            ]
          }
        },
        "pvc": {
          "attributes": {
            "claimName": {
              "required": true,
              "canEdit": false,
              "blocked": false,
              "options": []
            },
            "path": {
              "required": true,
              "canEdit": false,
              "blocked": false,
              "options": []
            },
            "readOnly": {
              "sourceOfRule": {
                "scope": "project",
                "projectId": 3
              },
              "required": true,
              "canEdit": true
            },
            "claimInfo": {
              "size": {
                "required": true,
                "canEdit": false,
                "blocked": false,
                "options": []
              },
              "storageClass": {
                "required": true,
                "canEdit": false,
                "blocked": false,
                "options": []
              },
              "accessModes": {
                "readWriteOnce": {
                  "sourceOfRule": {
                    "scope": "project",
                    "projectId": 3
                  },
                  "required": true,
                  "canEdit": true
                },
                "readOnlyMany": {
                  "sourceOfRule": {
                    "scope": "project",
                    "projectId": 3
                  },
                  "required": true,
                  "canEdit": true
                },
                "readWriteMany": {
                  "sourceOfRule": {
                    "scope": "project",
                    "projectId": 3
                  },
                  "required": true,
                  "canEdit": true
                }
              }
            }
          },
          "instances": {
            "sourceOfRule": {
              "scope": "project",
              "projectId": 3
            },
            "canAdd": true,
            "locked": [
              "HOME",
              "USER"
            ]
          }
        },
        "s3": {
          "attributes": {
            "bucket": {
              "required": true,
              "canEdit": false,
              "blocked": false,
              "options": []
            },
            "path": {
              "required": true,
              "canEdit": false,
              "blocked": false,
              "options": []
            },
            "url": {
              "required": true,
              "canEdit": false,
              "blocked": false,
              "options": []
            }
          },
          "instances": {
            "sourceOfRule": {
              "scope": "project",
              "projectId": 3
            },
            "canAdd": true,
            "locked": [
              "HOME",
              "USER"
            ]
          }
        },
        "secretVolume": {
          "attributes": {
            "secret": {
              "required": true,
              "canEdit": false,
              "blocked": false,
              "options": []
            },
            "mountPath": {
              "required": true,
              "canEdit": false,
              "blocked": false,
              "options": []
            },
            "defaultMode": {
              "required": true,
              "canEdit": false,
              "blocked": false,
              "options": []
            }
          },
          "instances": {
            "sourceOfRule": {
              "scope": "project",
              "projectId": 3
            },
            "canAdd": true,
            "locked": [
              "HOME",
              "USER"
            ]
          }
        }
      },
      "terminateAfterPreemption": {
        "sourceOfRule": {
          "scope": "project",
          "projectId": 3
        },
        "required": true,
        "canEdit": true
      },
      "terminationGracePeriodSeconds": {
        "sourceOfRule": {
          "scope": "project",
          "projectId": 3
        },
        "required": true,
        "canEdit": true,
        "min": 1,
        "max": 1,
        "step": 1,
        "defaultFrom": {
          "field": "text",
          "factor": 1
        }
      },
      "tolerations": {
        "attributes": {
          "operator": {
            "required": true,
            "canEdit": false,
            "blocked": false,
            "options": []
          },
          "key": {
            "required": true,
            "canEdit": false,
            "blocked": false,
            "options": []
          },
          "value": {
            "required": true,
            "canEdit": false,
            "blocked": false,
            "options": []
          },
          "effect": {
            "required": true,
            "canEdit": false,
            "blocked": false,
            "options": []
          },
          "seconds": {
            "sourceOfRule": {
              "scope": "project",
              "projectId": 3
            },
            "required": true,
            "canEdit": true,
            "min": 1,
            "max": 1,
            "step": 1,
            "defaultFrom": {
              "field": "text",
              "factor": 1
            }
          },
          "exclude": {
            "sourceOfRule": {
              "scope": "project",
              "projectId": 3
            },
            "required": true,
            "canEdit": true
          }
        },
        "instances": {
          "sourceOfRule": {
            "scope": "project",
            "projectId": 3
          },
          "canAdd": true,
          "locked": [
            "HOME",
            "USER"
          ]
        }
      },
      "tty": {
        "sourceOfRule": {
          "scope": "project",
          "projectId": 3
        },
        "required": true,
        "canEdit": true
      },
      "workingDir": {
        "required": true,
        "canEdit": false,
        "blocked": false,
        "options": []
      }
    },
    "imposedAssets": [
      "123e4567-e89b-12d3-a456-426614174000"
    ],
    "status": {
      "validation": {
        "errorMessage": "text"
      }
    }
  },
  "reset": [
    "master.security.runAsGpu",
    "worker.compute.gpu"
  ]
}
{
  "meta": {
    "id": "123e4567-e89b-12d3-a456-426614174000",
    "tenantId": 1001,
    "clusterId": "71f69d83-ba66-4822-adf5-55ce55efd210",
    "createdBy": "text",
    "createdAt": "2026-01-01T00:00:00.000Z",
    "updatedBy": "text",
    "updatedAt": "2026-01-01T00:00:00.000Z",
    "scope": "system",
    "projectId": 1,
    "departmentId": 2,
    "name": "my-policy"
  },
  "policy": {
    "defaults": {
      "annotations": {
        "instances": [
          {
            "name": "billing",
            "value": "my-billing-unit",
            "exclude": false
          }
        ]
      },
      "args": "-x my-script.py",
      "autoDeletionTimeAfterCompletionSeconds": 15,
      "backoffLimit": 3,
      "category": "text",
      "command": "python",
      "compute": {
        "cpuCoreLimit": 2,
        "cpuCoreRequest": 0.5,
        "cpuMemoryLimit": "30M",
        "cpuMemoryRequest": "20M",
        "extendedResources": {
          "attributes": {
            "resource": "hardware-vendor.example/foo",
            "quantity": 2,
            "exclude": false
          },
          "instances": [
            {
              "resource": "hardware-vendor.example/foo",
              "quantity": 2,
              "exclude": false
            }
          ]
        },
        "gpuDevicesRequest": 1,
        "gpuMemoryLimit": "10M",
        "gpuMemoryRequest": "10M",
        "gpuPortionLimit": 0.5,
        "gpuPortionRequest": 0.5,
        "gpuRequestType": "portion",
        "largeShmRequest": false
      },
      "createHomeDir": true,
      "environmentVariables": {
        "instances": [
          {
            "name": "HOME",
            "value": "/home/my-folder",
            "secret": {
              "name": "postgress_secret",
              "key": "POSTGRES_PASSWORD"
            },
            "configMap": {
              "name": "my-config-map",
              "key": "MY_POSTGRES_SCHEMA"
            },
            "podFieldRef": {
              "path": "metadata.name"
            },
            "userCredential": {
              "name": "my_postgres_user_and_password",
              "key": "POSTGRES_PASSWORD"
            },
            "exclude": false,
            "description": "Home directory of the user."
          }
        ]
      },
      "exposedUrls": {
        "attributes": {
          "container": 8080,
          "url": "https://my-url.com",
          "authorizationType": "authenticatedUsers",
          "authorizedUsers": [
            "user-a",
            "user-b"
          ],
          "authorizedGroups": [
            "group-a",
            "group-b"
          ],
          "toolType": "jupyter",
          "toolName": "my-pytorch",
          "name": "url-instance-a",
          "exclude": false
        },
        "instances": [
          {
            "container": 8080,
            "url": "https://my-url.com",
            "authorizationType": "authenticatedUsers",
            "authorizedUsers": [
              "user-a",
              "user-b"
            ],
            "authorizedGroups": [
              "group-a",
              "group-b"
            ],
            "toolType": "jupyter",
            "toolName": "my-pytorch",
            "name": "url-instance-a",
            "exclude": false
          }
        ]
      },
      "image": "python:3.8",
      "imagePullPolicy": "Always",
      "imagePullSecrets": {
        "instances": [
          {
            "name": "text",
            "userCredential": true,
            "exclude": false
          }
        ]
      },
      "labels": {
        "instances": [
          {
            "name": "stage",
            "value": "initial-research",
            "exclude": false
          }
        ]
      },
      "nodeAffinityRequired": {
        "nodeSelectorTerms": [
          {
            "matchExpressions": [
              {
                "key": "text",
                "operator": "In",
                "values": [
                  "text"
                ]
              }
            ]
          }
        ]
      },
      "nodePools": [
        "my-node-pool-a",
        "my-node-pool-b"
      ],
      "nodeType": "my-node-type",
      "podAffinity": {
        "type": "Required",
        "key": "text"
      },
      "ports": {
        "attributes": {
          "container": 8080,
          "serviceType": "LoadBalancer",
          "external": 30080,
          "toolType": "pytorch",
          "toolName": "my-pytorch",
          "name": "port-instance-a",
          "exclude": false
        },
        "instances": [
          {
            "container": 8080,
            "serviceType": "LoadBalancer",
            "external": 30080,
            "toolType": "pytorch",
            "toolName": "my-pytorch",
            "name": "port-instance-a",
            "exclude": false
          }
        ]
      },
      "preemptibility": "preemptible",
      "priorityClass": "text",
      "probes": {
        "readiness": {
          "initialDelaySeconds": 1,
          "periodSeconds": 1,
          "timeoutSeconds": 1,
          "successThreshold": 1,
          "failureThreshold": 1,
          "handler": {
            "httpGet": {
              "path": "/",
              "port": 1,
              "host": "example.com",
              "scheme": "HTTP"
            }
          }
        }
      },
      "relatedUrls": {
        "attributes": {
          "url": "https://my-url.com",
          "type": "wandb",
          "name": "url-instance-a",
          "exclude": false
        },
        "instances": [
          {
            "url": "https://my-url.com",
            "type": "wandb",
            "name": "url-instance-a",
            "exclude": false
          }
        ]
      },
      "restartPolicy": "Always",
      "security": {
        "allowPrivilegeEscalation": false,
        "capabilities": [
          "CHOWN",
          "KILL"
        ],
        "hostIpc": false,
        "hostNetwork": false,
        "readOnlyRootFilesystem": false,
        "runAsGid": 30,
        "runAsNonRoot": true,
        "runAsUid": 500,
        "seccompProfileType": "RuntimeDefault",
        "supplementalGroups": "2,3,5,8",
        "uidGidSource": "fromTheImage"
      },
      "stdin": true,
      "storage": {
        "configMapVolume": {
          "attributes": {
            "name": "storage-instance-a",
            "configMap": "text",
            "mountPath": "text",
            "subPath": "text",
            "defaultMode": "0644",
            "exclude": false
          },
          "instances": [
            {
              "name": "storage-instance-a",
              "configMap": "text",
              "mountPath": "text",
              "subPath": "text",
              "defaultMode": "0644",
              "exclude": false
            }
          ]
        },
        "dataVolume": {
          "attributes": {
            "id": "123e4567-e89b-12d3-a456-426614174000",
            "mountPath": "/mnt/data",
            "exclude": false
          },
          "instances": [
            {
              "id": "123e4567-e89b-12d3-a456-426614174000",
              "mountPath": "/mnt/data",
              "exclude": false
            }
          ]
        },
        "emptyDirVolume": {
          "attributes": {
            "name": "storage-instance-a",
            "path": "/mnt/emptydir",
            "medium": "text",
            "sizeLimit": "1G",
            "exclude": false
          },
          "instances": [
            {
              "name": "storage-instance-a",
              "path": "/mnt/emptydir",
              "medium": "text",
              "sizeLimit": "1G",
              "exclude": false
            }
          ]
        },
        "git": {
          "attributes": {
            "name": "storage-instance-a",
            "repository": "https://github.com/my-git/my-repo",
            "branch": "main",
            "revision": "text",
            "path": "/container/my-repository",
            "passwordSecret": "my-password-secret",
            "secretKeyOfUser": "User",
            "secretKeyOfPassword": "Password",
            "exclude": false,
            "secretRef": {
              "name": "my-password-secret",
              "authenticationMethod": "password",
              "secretKeyOfUser": "User",
              "secretKeyOfPassword": "Password"
            }
          },
          "instances": [
            {
              "name": "storage-instance-a",
              "repository": "https://github.com/my-git/my-repo",
              "branch": "main",
              "revision": "text",
              "path": "/container/my-repository",
              "passwordSecret": "my-password-secret",
              "secretKeyOfUser": "User",
              "secretKeyOfPassword": "Password",
              "exclude": false,
              "secretRef": {
                "name": "my-password-secret",
                "authenticationMethod": "password",
                "secretKeyOfUser": "User",
                "secretKeyOfPassword": "Password"
              }
            }
          ]
        },
        "hostPath": {
          "attributes": {
            "name": "storage-instance-a",
            "path": "/container/directory",
            "readOnly": true,
            "mountPath": "/local/directory",
            "mountPropagation": "None",
            "exclude": false
          },
          "instances": [
            {
              "name": "storage-instance-a",
              "path": "/container/directory",
              "readOnly": true,
              "mountPath": "/local/directory",
              "mountPropagation": "None",
              "exclude": false
            }
          ]
        },
        "nfs": {
          "attributes": {
            "name": "storage-instance-a",
            "path": "/container/nfs",
            "readOnly": true,
            "server": "my.nfs.com",
            "mountPath": "/local/nfs",
            "exclude": false
          },
          "instances": [
            {
              "name": "storage-instance-a",
              "path": "/container/nfs",
              "readOnly": true,
              "server": "my.nfs.com",
              "mountPath": "/local/nfs",
              "exclude": false
            }
          ]
        },
        "pvc": {
          "attributes": {
            "name": "storage-instance-a",
            "path": "/container/my-claim",
            "existingPvc": false,
            "claimName": "my-claim",
            "readOnly": false,
            "ephemeral": false,
            "claimInfo": {
              "size": "1G",
              "storageClass": "my-storage-class",
              "accessModes": {
                "readWriteOnce": true,
                "readOnlyMany": false,
                "readWriteMany": false
              },
              "volumeMode": "Filesystem",
              "addedAttrValues": [
                {
                  "key": "dnsname",
                  "value": "my.dns.com"
                }
              ]
            },
            "dataSharing": false,
            "exclude": false
          },
          "instances": [
            {
              "name": "storage-instance-a",
              "path": "/container/my-claim",
              "existingPvc": false,
              "claimName": "my-claim",
              "readOnly": false,
              "ephemeral": false,
              "claimInfo": {
                "size": "1G",
                "storageClass": "my-storage-class",
                "accessModes": {
                  "readWriteOnce": true,
                  "readOnlyMany": false,
                  "readWriteMany": false
                },
                "volumeMode": "Filesystem",
                "addedAttrValues": [
                  {
                    "key": "dnsname",
                    "value": "my.dns.com"
                  }
                ]
              },
              "dataSharing": false,
              "exclude": false
            }
          ]
        },
        "s3": {
          "attributes": {
            "name": "storage-instance-a",
            "bucket": "my-bucket",
            "path": "/container/my-bucket",
            "url": "https://s3.amazonaws.com",
            "accessKeySecret": "my-access-key-secret",
            "secretKeyOfAccessKeyId": "AccessKeyId",
            "secretKeyOfSecretKey": "SecretKey",
            "exclude": false
          },
          "instances": [
            {
              "name": "storage-instance-a",
              "bucket": "my-bucket",
              "path": "/container/my-bucket",
              "url": "https://s3.amazonaws.com",
              "accessKeySecret": "my-access-key-secret",
              "secretKeyOfAccessKeyId": "AccessKeyId",
              "secretKeyOfSecretKey": "SecretKey",
              "exclude": false
            }
          ]
        },
        "secretVolume": {
          "attributes": {
            "name": "storage-instance-a",
            "mountPath": "text",
            "defaultMode": "0644",
            "secret": "text",
            "exclude": false
          },
          "instances": [
            {
              "name": "storage-instance-a",
              "mountPath": "text",
              "defaultMode": "0644",
              "secret": "text",
              "exclude": false
            }
          ]
        }
      },
      "terminateAfterPreemption": false,
      "terminationGracePeriodSeconds": 20,
      "tolerations": {
        "attributes": {
          "name": "text",
          "operator": "Equal",
          "key": "text",
          "value": "text",
          "effect": "NoSchedule",
          "seconds": 1,
          "exclude": false
        },
        "instances": [
          {
            "name": "text",
            "operator": "Equal",
            "key": "text",
            "value": "text",
            "effect": "NoSchedule",
            "seconds": 1,
            "exclude": false
          }
        ]
      },
      "tty": true,
      "workingDir": "/home/myfolder"
    },
    "rules": {
      "annotations": {
        "instances": {
          "sourceOfRule": {
            "scope": "project",
            "projectId": 3
          },
          "canAdd": true,
          "locked": [
            "HOME",
            "USER"
          ]
        }
      },
      "args": {
        "required": true,
        "canEdit": false,
        "blocked": false,
        "options": []
      },
      "autoDeletionTimeAfterCompletionSeconds": {
        "sourceOfRule": {
          "scope": "project",
          "projectId": 3
        },
        "required": true,
        "canEdit": true,
        "min": 1,
        "max": 1,
        "step": 1,
        "defaultFrom": {
          "field": "text",
          "factor": 1
        }
      },
      "backoffLimit": {
        "sourceOfRule": {
          "scope": "project",
          "projectId": 3
        },
        "required": true,
        "canEdit": true,
        "min": 1,
        "max": 1,
        "step": 1,
        "defaultFrom": {
          "field": "text",
          "factor": 1
        }
      },
      "category": {
        "required": true,
        "canEdit": false,
        "blocked": false,
        "options": []
      },
      "command": {
        "required": true,
        "canEdit": false,
        "blocked": false,
        "options": []
      },
      "compute": {
        "cpuCoreLimit": {
          "sourceOfRule": {
            "scope": "project",
            "projectId": 3
          },
          "required": true,
          "canEdit": true,
          "min": 1,
          "max": 1,
          "step": 1,
          "defaultFrom": {
            "field": "text",
            "factor": 1
          }
        },
        "cpuCoreRequest": {
          "sourceOfRule": {
            "scope": "project",
            "projectId": 3
          },
          "required": true,
          "canEdit": true,
          "min": 1,
          "max": 1,
          "step": 1,
          "defaultFrom": {
            "field": "text",
            "factor": 1
          }
        },
        "cpuMemoryLimit": {
          "sourceOfRule": {
            "scope": "project",
            "projectId": 3
          },
          "required": true,
          "canEdit": true,
          "min": "text",
          "max": "text",
          "defaultFrom": {
            "field": "text",
            "factor": 1
          }
        },
        "cpuMemoryRequest": {
          "sourceOfRule": {
            "scope": "project",
            "projectId": 3
          },
          "required": true,
          "canEdit": true,
          "min": "text",
          "max": "text",
          "defaultFrom": {
            "field": "text",
            "factor": 1
          }
        },
        "extendedResources": {
          "attributes": {
            "quantity": {
              "required": true,
              "canEdit": false,
              "blocked": false,
              "options": []
            }
          },
          "instances": {
            "sourceOfRule": {
              "scope": "project",
              "projectId": 3
            },
            "canAdd": true,
            "locked": [
              "HOME",
              "USER"
            ]
          }
        },
        "gpuDevicesRequest": {
          "sourceOfRule": {
            "scope": "project",
            "projectId": 3
          },
          "required": true,
          "canEdit": true,
          "min": 1,
          "max": 1,
          "step": 1,
          "defaultFrom": {
            "field": "text",
            "factor": 1
          }
        },
        "gpuMemoryLimit": {
          "sourceOfRule": {
            "scope": "project",
            "projectId": 3
          },
          "required": true,
          "canEdit": true,
          "min": "text",
          "max": "text",
          "defaultFrom": {
            "field": "text",
            "factor": 1
          }
        },
        "gpuMemoryRequest": {
          "sourceOfRule": {
            "scope": "project",
            "projectId": 3
          },
          "required": true,
          "canEdit": true,
          "min": "text",
          "max": "text",
          "defaultFrom": {
            "field": "text",
            "factor": 1
          }
        },
        "gpuPortionLimit": {
          "sourceOfRule": {
            "scope": "project",
            "projectId": 3
          },
          "required": true,
          "canEdit": true,
          "min": 1,
          "max": 1,
          "step": 1,
          "defaultFrom": {
            "field": "text",
            "factor": 1
          }
        },
        "gpuPortionRequest": {
          "sourceOfRule": {
            "scope": "project",
            "projectId": 3
          },
          "required": true,
          "canEdit": true,
          "min": 1,
          "max": 1,
          "step": 1,
          "defaultFrom": {
            "field": "text",
            "factor": 1
          }
        },
        "gpuRequestType": {
          "required": true,
          "canEdit": false,
          "blocked": false,
          "options": []
        },
        "largeShmRequest": {
          "sourceOfRule": {
            "scope": "project",
            "projectId": 3
          },
          "required": true,
          "canEdit": true
        }
      },
      "createHomeDir": {
        "sourceOfRule": {
          "scope": "project",
          "projectId": 3
        },
        "required": true,
        "canEdit": true
      },
      "environmentVariables": {
        "instances": {
          "sourceOfRule": {
            "scope": "project",
            "projectId": 3
          },
          "canAdd": true,
          "locked": [
            "HOME",
            "USER"
          ]
        }
      },
      "exposedUrls": {
        "attributes": {
          "container": {
            "sourceOfRule": {
              "scope": "project",
              "projectId": 3
            },
            "required": true,
            "canEdit": true,
            "min": 1,
            "max": 1,
            "step": 1,
            "defaultFrom": {
              "field": "text",
              "factor": 1
            }
          },
          "customUrl": {
            "sourceOfRule": {
              "scope": "project",
              "projectId": 3
            },
            "required": true,
            "canEdit": true
          },
          "url": {
            "required": true,
            "canEdit": false,
            "blocked": false,
            "options": []
          },
          "authorizedUsers": {
            "sourceOfRule": {
              "scope": "project",
              "projectId": 3
            },
            "required": true,
            "options": [],
            "canEdit": true
          },
          "authorizedGroups": {
            "sourceOfRule": {
              "scope": "project",
              "projectId": 3
            },
            "required": true,
            "options": [],
            "canEdit": true
          },
          "toolType": {
            "required": true,
            "canEdit": false,
            "blocked": false,
            "options": []
          },
          "toolName": {
            "required": true,
            "canEdit": false,
            "blocked": false,
            "options": []
          }
        },
        "instances": {
          "sourceOfRule": {
            "scope": "project",
            "projectId": 3
          },
          "canAdd": true,
          "locked": [
            "HOME",
            "USER"
          ]
        }
      },
      "image": {
        "required": true,
        "canEdit": false,
        "blocked": false,
        "options": []
      },
      "imagePullPolicy": {
        "required": true,
        "canEdit": false,
        "blocked": false,
        "options": []
      },
      "imagePullSecrets": {
        "attributes": {
          "name": {
            "required": true,
            "canEdit": false,
            "blocked": false,
            "options": []
          },
          "userCredentials": {
            "sourceOfRule": {
              "scope": "project",
              "projectId": 3
            },
            "required": true,
            "canEdit": true
          }
        },
        "instances": {
          "sourceOfRule": {
            "scope": "project",
            "projectId": 3
          },
          "canAdd": true,
          "locked": [
            "HOME",
            "USER"
          ]
        }
      },
      "labels": {
        "instances": {
          "sourceOfRule": {
            "scope": "project",
            "projectId": 3
          },
          "canAdd": true,
          "locked": [
            "HOME",
            "USER"
          ]
        }
      },
      "nodeAffinityRequired": {
        "sourceOfRule": {
          "scope": "project",
          "projectId": 3
        },
        "required": true,
        "canEdit": true
      },
      "nodePools": {
        "sourceOfRule": {
          "scope": "project",
          "projectId": 3
        },
        "required": true,
        "options": [],
        "canEdit": true
      },
      "nodeType": {
        "required": true,
        "canEdit": false,
        "blocked": false,
        "options": []
      },
      "podAffinity": {
        "type": {
          "required": true,
          "canEdit": false,
          "blocked": false,
          "options": []
        },
        "key": {
          "required": true,
          "canEdit": false,
          "blocked": false,
          "options": []
        }
      },
      "ports": {
        "attributes": {
          "container": {
            "sourceOfRule": {
              "scope": "project",
              "projectId": 3
            },
            "required": true,
            "canEdit": true,
            "min": 1,
            "max": 1,
            "step": 1,
            "defaultFrom": {
              "field": "text",
              "factor": 1
            }
          },
          "serviceType": {
            "required": true,
            "canEdit": false,
            "blocked": false,
            "options": []
          },
          "customExternalPort": {
            "sourceOfRule": {
              "scope": "project",
              "projectId": 3
            },
            "required": true,
            "canEdit": true
          },
          "external": {
            "sourceOfRule": {
              "scope": "project",
              "projectId": 3
            },
            "required": true,
            "canEdit": true,
            "min": 1,
            "max": 1,
            "step": 1,
            "defaultFrom": {
              "field": "text",
              "factor": 1
            }
          },
          "toolType": {
            "required": true,
            "canEdit": false,
            "blocked": false,
            "options": []
          },
          "toolName": {
            "required": true,
            "canEdit": false,
            "blocked": false,
            "options": []
          }
        },
        "instances": {
          "sourceOfRule": {
            "scope": "project",
            "projectId": 3
          },
          "canAdd": true,
          "locked": [
            "HOME",
            "USER"
          ]
        }
      },
      "preemptibility": {
        "required": true,
        "canEdit": false,
        "blocked": false,
        "options": []
      },
      "priorityClass": {
        "required": true,
        "canEdit": false,
        "blocked": false,
        "options": []
      },
      "probes": {
        "readiness": {
          "initialDelaySeconds": {
            "sourceOfRule": {
              "scope": "project",
              "projectId": 3
            },
            "required": true,
            "canEdit": true,
            "min": 1,
            "max": 1,
            "step": 1,
            "defaultFrom": {
              "field": "text",
              "factor": 1
            }
          },
          "periodSeconds": {
            "sourceOfRule": {
              "scope": "project",
              "projectId": 3
            },
            "required": true,
            "canEdit": true,
            "min": 1,
            "max": 1,
            "step": 1,
            "defaultFrom": {
              "field": "text",
              "factor": 1
            }
          },
          "timeoutSeconds": {
            "sourceOfRule": {
              "scope": "project",
              "projectId": 3
            },
            "required": true,
            "canEdit": true,
            "min": 1,
            "max": 1,
            "step": 1,
            "defaultFrom": {
              "field": "text",
              "factor": 1
            }
          },
          "successThreshold": {
            "sourceOfRule": {
              "scope": "project",
              "projectId": 3
            },
            "required": true,
            "canEdit": true,
            "min": 1,
            "max": 1,
            "step": 1,
            "defaultFrom": {
              "field": "text",
              "factor": 1
            }
          },
          "failureThreshold": {
            "sourceOfRule": {
              "scope": "project",
              "projectId": 3
            },
            "required": true,
            "canEdit": true,
            "min": 1,
            "max": 1,
            "step": 1,
            "defaultFrom": {
              "field": "text",
              "factor": 1
            }
          },
          "handler": {
            "httpGet": {
              "path": {
                "required": true,
                "canEdit": false,
                "blocked": false,
                "options": []
              },
              "port": {
                "sourceOfRule": {
                  "scope": "project",
                  "projectId": 3
                },
                "required": true,
                "canEdit": true,
                "min": 1,
                "max": 1,
                "step": 1,
                "defaultFrom": {
                  "field": "text",
                  "factor": 1
                }
              },
              "host": {
                "required": true,
                "canEdit": false,
                "blocked": false,
                "options": []
              },
              "scheme": {
                "required": true,
                "canEdit": false,
                "blocked": false,
                "options": []
              }
            }
          }
        }
      },
      "relatedUrls": {
        "attributes": {
          "url": {
            "required": true,
            "canEdit": false,
            "blocked": false,
            "options": []
          },
          "type": {
            "required": true,
            "canEdit": false,
            "blocked": false,
            "options": []
          },
          "name": {
            "required": true,
            "canEdit": false,
            "blocked": false,
            "options": []
          }
        },
        "instances": {
          "sourceOfRule": {
            "scope": "project",
            "projectId": 3
          },
          "canAdd": true,
          "locked": [
            "HOME",
            "USER"
          ]
        }
      },
      "restartPolicy": {
        "required": true,
        "canEdit": false,
        "blocked": false,
        "options": []
      },
      "security": {
        "allowPrivilegeEscalation": {
          "sourceOfRule": {
            "scope": "project",
            "projectId": 3
          },
          "required": true,
          "canEdit": true
        },
        "capabilities": {
          "sourceOfRule": {
            "scope": "project",
            "projectId": 3
          },
          "required": true,
          "options": [],
          "canEdit": true
        },
        "hostIpc": {
          "sourceOfRule": {
            "scope": "project",
            "projectId": 3
          },
          "required": true,
          "canEdit": true
        },
        "hostNetwork": {
          "sourceOfRule": {
            "scope": "project",
            "projectId": 3
          },
          "required": true,
          "canEdit": true
        },
        "readOnlyRootFilesystem": {
          "sourceOfRule": {
            "scope": "project",
            "projectId": 3
          },
          "required": true,
          "canEdit": true
        },
        "runAsGid": {
          "sourceOfRule": {
            "scope": "project",
            "projectId": 3
          },
          "canEdit": true,
          "min": 1,
          "max": 1,
          "step": 1,
          "defaultFrom": {
            "field": "text",
            "factor": 1
          }
        },
        "runAsNonRoot": {
          "sourceOfRule": {
            "scope": "project",
            "projectId": 3
          },
          "required": true,
          "canEdit": true
        },
        "runAsUid": {
          "sourceOfRule": {
            "scope": "project",
            "projectId": 3
          },
          "canEdit": true,
          "min": 1,
          "max": 1,
          "step": 1,
          "defaultFrom": {
            "field": "text",
            "factor": 1
          }
        },
        "seccompProfileType": {
          "required": true,
          "canEdit": false,
          "blocked": false,
          "options": []
        },
        "supplementalGroups": {
          "required": true,
          "canEdit": false,
          "blocked": false,
          "options": []
        },
        "uidGidSource": {
          "required": true,
          "canEdit": false,
          "blocked": false,
          "options": []
        }
      },
      "stdin": {
        "sourceOfRule": {
          "scope": "project",
          "projectId": 3
        },
        "required": true,
        "canEdit": true
      },
      "storage": {
        "configMapVolume": {
          "attributes": {
            "configMap": {
              "required": true,
              "canEdit": false,
              "blocked": false,
              "options": []
            },
            "mountPath": {
              "required": true,
              "canEdit": false,
              "blocked": false,
              "options": []
            },
            "subPath": {
              "required": true,
              "canEdit": false,
              "blocked": false,
              "options": []
            },
            "defaultMode": {
              "required": true,
              "canEdit": false,
              "blocked": false,
              "options": []
            }
          },
          "instances": {
            "sourceOfRule": {
              "scope": "project",
              "projectId": 3
            },
            "canAdd": true,
            "locked": [
              "HOME",
              "USER"
            ]
          }
        },
        "dataVolume": {
          "attributes": {
            "id": {
              "required": true,
              "canEdit": false,
              "blocked": false,
              "options": []
            },
            "mountPath": {
              "required": true,
              "canEdit": false,
              "blocked": false,
              "options": []
            }
          },
          "instances": {
            "sourceOfRule": {
              "scope": "project",
              "projectId": 3
            },
            "canAdd": true,
            "locked": [
              "HOME",
              "USER"
            ]
          }
        },
        "emptyDirVolume": {
          "attributes": {
            "path": {
              "required": true,
              "canEdit": false,
              "blocked": false,
              "options": []
            },
            "medium": {
              "required": true,
              "canEdit": false,
              "blocked": false,
              "options": []
            },
            "sizeLimit": {
              "required": true,
              "canEdit": false,
              "blocked": false,
              "options": []
            }
          },
          "instances": {
            "sourceOfRule": {
              "scope": "project",
              "projectId": 3
            },
            "canAdd": true,
            "locked": [
              "HOME",
              "USER"
            ]
          }
        },
        "git": {
          "attributes": {
            "repository": {
              "required": true,
              "canEdit": false,
              "blocked": false,
              "options": []
            },
            "branch": {
              "required": true,
              "canEdit": false,
              "blocked": false,
              "options": []
            },
            "revision": {
              "required": true,
              "canEdit": false,
              "blocked": false,
              "options": []
            },
            "path": {
              "required": true,
              "canEdit": false,
              "blocked": false,
              "options": []
            }
          },
          "instances": {
            "sourceOfRule": {
              "scope": "project",
              "projectId": 3
            },
            "canAdd": true,
            "locked": [
              "HOME",
              "USER"
            ]
          }
        },
        "hostPath": {
          "attributes": {
            "path": {
              "required": true,
              "canEdit": false,
              "blocked": false,
              "options": []
            },
            "readOnly": {
              "sourceOfRule": {
                "scope": "project",
                "projectId": 3
              },
              "required": true,
              "canEdit": true
            },
            "mountPath": {
              "required": true,
              "canEdit": false,
              "blocked": false,
              "options": []
            },
            "mountPropagation": {
              "required": true,
              "canEdit": false,
              "blocked": false,
              "options": []
            }
          },
          "instances": {
            "sourceOfRule": {
              "scope": "project",
              "projectId": 3
            },
            "canAdd": true,
            "locked": [
              "HOME",
              "USER"
            ]
          }
        },
        "nfs": {
          "attributes": {
            "path": {
              "required": true,
              "canEdit": false,
              "blocked": false,
              "options": []
            },
            "readOnly": {
              "sourceOfRule": {
                "scope": "project",
                "projectId": 3
              },
              "required": true,
              "canEdit": true
            },
            "server": {
              "required": true,
              "canEdit": false,
              "blocked": false,
              "options": []
            },
            "mountPath": {
              "required": true,
              "canEdit": false,
              "blocked": false,
              "options": []
            }
          },
          "instances": {
            "sourceOfRule": {
              "scope": "project",
              "projectId": 3
            },
            "canAdd": true,
            "locked": [
              "HOME",
              "USER"
            ]
          }
        },
        "pvc": {
          "attributes": {
            "claimName": {
              "required": true,
              "canEdit": false,
              "blocked": false,
              "options": []
            },
            "path": {
              "required": true,
              "canEdit": false,
              "blocked": false,
              "options": []
            },
            "readOnly": {
              "sourceOfRule": {
                "scope": "project",
                "projectId": 3
              },
              "required": true,
              "canEdit": true
            },
            "claimInfo": {
              "size": {
                "required": true,
                "canEdit": false,
                "blocked": false,
                "options": []
              },
              "storageClass": {
                "required": true,
                "canEdit": false,
                "blocked": false,
                "options": []
              },
              "accessModes": {
                "readWriteOnce": {
                  "sourceOfRule": {
                    "scope": "project",
                    "projectId": 3
                  },
                  "required": true,
                  "canEdit": true
                },
                "readOnlyMany": {
                  "sourceOfRule": {
                    "scope": "project",
                    "projectId": 3
                  },
                  "required": true,
                  "canEdit": true
                },
                "readWriteMany": {
                  "sourceOfRule": {
                    "scope": "project",
                    "projectId": 3
                  },
                  "required": true,
                  "canEdit": true
                }
              }
            }
          },
          "instances": {
            "sourceOfRule": {
              "scope": "project",
              "projectId": 3
            },
            "canAdd": true,
            "locked": [
              "HOME",
              "USER"
            ]
          }
        },
        "s3": {
          "attributes": {
            "bucket": {
              "required": true,
              "canEdit": false,
              "blocked": false,
              "options": []
            },
            "path": {
              "required": true,
              "canEdit": false,
              "blocked": false,
              "options": []
            },
            "url": {
              "required": true,
              "canEdit": false,
              "blocked": false,
              "options": []
            }
          },
          "instances": {
            "sourceOfRule": {
              "scope": "project",
              "projectId": 3
            },
            "canAdd": true,
            "locked": [
              "HOME",
              "USER"
            ]
          }
        },
        "secretVolume": {
          "attributes": {
            "secret": {
              "required": true,
              "canEdit": false,
              "blocked": false,
              "options": []
            },
            "mountPath": {
              "required": true,
              "canEdit": false,
              "blocked": false,
              "options": []
            },
            "defaultMode": {
              "required": true,
              "canEdit": false,
              "blocked": false,
              "options": []
            }
          },
          "instances": {
            "sourceOfRule": {
              "scope": "project",
              "projectId": 3
            },
            "canAdd": true,
            "locked": [
              "HOME",
              "USER"
            ]
          }
        }
      },
      "terminateAfterPreemption": {
        "sourceOfRule": {
          "scope": "project",
          "projectId": 3
        },
        "required": true,
        "canEdit": true
      },
      "terminationGracePeriodSeconds": {
        "sourceOfRule": {
          "scope": "project",
          "projectId": 3
        },
        "required": true,
        "canEdit": true,
        "min": 1,
        "max": 1,
        "step": 1,
        "defaultFrom": {
          "field": "text",
          "factor": 1
        }
      },
      "tolerations": {
        "attributes": {
          "operator": {
            "required": true,
            "canEdit": false,
            "blocked": false,
            "options": []
          },
          "key": {
            "required": true,
            "canEdit": false,
            "blocked": false,
            "options": []
          },
          "value": {
            "required": true,
            "canEdit": false,
            "blocked": false,
            "options": []
          },
          "effect": {
            "required": true,
            "canEdit": false,
            "blocked": false,
            "options": []
          },
          "seconds": {
            "sourceOfRule": {
              "scope": "project",
              "projectId": 3
            },
            "required": true,
            "canEdit": true,
            "min": 1,
            "max": 1,
            "step": 1,
            "defaultFrom": {
              "field": "text",
              "factor": 1
            }
          },
          "exclude": {
            "sourceOfRule": {
              "scope": "project",
              "projectId": 3
            },
            "required": true,
            "canEdit": true
          }
        },
        "instances": {
          "sourceOfRule": {
            "scope": "project",
            "projectId": 3
          },
          "canAdd": true,
          "locked": [
            "HOME",
            "USER"
          ]
        }
      },
      "tty": {
        "sourceOfRule": {
          "scope": "project",
          "projectId": 3
        },
        "required": true,
        "canEdit": true
      },
      "workingDir": {
        "required": true,
        "canEdit": false,
        "blocked": false,
        "options": []
      }
    },
    "imposedAssets": [
      "123e4567-e89b-12d3-a456-426614174000"
    ],
    "status": {
      "validation": {
        "errorMessage": "text"
      }
    }
  },
  "effective": {
    "defaults": {
      "annotations": {
        "instances": [
          {
            "name": "billing",
            "value": "my-billing-unit",
            "exclude": false
          }
        ]
      },
      "args": "-x my-script.py",
      "autoDeletionTimeAfterCompletionSeconds": 15,
      "backoffLimit": 3,
      "category": "text",
      "command": "python",
      "compute": {
        "cpuCoreLimit": 2,
        "cpuCoreRequest": 0.5,
        "cpuMemoryLimit": "30M",
        "cpuMemoryRequest": "20M",
        "extendedResources": {
          "attributes": {
            "resource": "hardware-vendor.example/foo",
            "quantity": 2,
            "exclude": false
          },
          "instances": [
            {
              "resource": "hardware-vendor.example/foo",
              "quantity": 2,
              "exclude": false
            }
          ]
        },
        "gpuDevicesRequest": 1,
        "gpuMemoryLimit": "10M",
        "gpuMemoryRequest": "10M",
        "gpuPortionLimit": 0.5,
        "gpuPortionRequest": 0.5,
        "gpuRequestType": "portion",
        "largeShmRequest": false
      },
      "createHomeDir": true,
      "environmentVariables": {
        "instances": [
          {
            "name": "HOME",
            "value": "/home/my-folder",
            "secret": {
              "name": "postgress_secret",
              "key": "POSTGRES_PASSWORD"
            },
            "configMap": {
              "name": "my-config-map",
              "key": "MY_POSTGRES_SCHEMA"
            },
            "podFieldRef": {
              "path": "metadata.name"
            },
            "userCredential": {
              "name": "my_postgres_user_and_password",
              "key": "POSTGRES_PASSWORD"
            },
            "exclude": false,
            "description": "Home directory of the user."
          }
        ]
      },
      "exposedUrls": {
        "attributes": {
          "container": 8080,
          "url": "https://my-url.com",
          "authorizationType": "authenticatedUsers",
          "authorizedUsers": [
            "user-a",
            "user-b"
          ],
          "authorizedGroups": [
            "group-a",
            "group-b"
          ],
          "toolType": "jupyter",
          "toolName": "my-pytorch",
          "name": "url-instance-a",
          "exclude": false
        },
        "instances": [
          {
            "container": 8080,
            "url": "https://my-url.com",
            "authorizationType": "authenticatedUsers",
            "authorizedUsers": [
              "user-a",
              "user-b"
            ],
            "authorizedGroups": [
              "group-a",
              "group-b"
            ],
            "toolType": "jupyter",
            "toolName": "my-pytorch",
            "name": "url-instance-a",
            "exclude": false
          }
        ]
      },
      "image": "python:3.8",
      "imagePullPolicy": "Always",
      "imagePullSecrets": {
        "instances": [
          {
            "name": "text",
            "userCredential": true,
            "exclude": false
          }
        ]
      },
      "labels": {
        "instances": [
          {
            "name": "stage",
            "value": "initial-research",
            "exclude": false
          }
        ]
      },
      "nodeAffinityRequired": {
        "nodeSelectorTerms": [
          {
            "matchExpressions": [
              {
                "key": "text",
                "operator": "In",
                "values": [
                  "text"
                ]
              }
            ]
          }
        ]
      },
      "nodePools": [
        "my-node-pool-a",
        "my-node-pool-b"
      ],
      "nodeType": "my-node-type",
      "podAffinity": {
        "type": "Required",
        "key": "text"
      },
      "ports": {
        "attributes": {
          "container": 8080,
          "serviceType": "LoadBalancer",
          "external": 30080,
          "toolType": "pytorch",
          "toolName": "my-pytorch",
          "name": "port-instance-a",
          "exclude": false
        },
        "instances": [
          {
            "container": 8080,
            "serviceType": "LoadBalancer",
            "external": 30080,
            "toolType": "pytorch",
            "toolName": "my-pytorch",
            "name": "port-instance-a",
            "exclude": false
          }
        ]
      },
      "preemptibility": "preemptible",
      "priorityClass": "text",
      "probes": {
        "readiness": {
          "initialDelaySeconds": 1,
          "periodSeconds": 1,
          "timeoutSeconds": 1,
          "successThreshold": 1,
          "failureThreshold": 1,
          "handler": {
            "httpGet": {
              "path": "/",
              "port": 1,
              "host": "example.com",
              "scheme": "HTTP"
            }
          }
        }
      },
      "relatedUrls": {
        "attributes": {
          "url": "https://my-url.com",
          "type": "wandb",
          "name": "url-instance-a",
          "exclude": false
        },
        "instances": [
          {
            "url": "https://my-url.com",
            "type": "wandb",
            "name": "url-instance-a",
            "exclude": false
          }
        ]
      },
      "restartPolicy": "Always",
      "security": {
        "allowPrivilegeEscalation": false,
        "capabilities": [
          "CHOWN",
          "KILL"
        ],
        "hostIpc": false,
        "hostNetwork": false,
        "readOnlyRootFilesystem": false,
        "runAsGid": 30,
        "runAsNonRoot": true,
        "runAsUid": 500,
        "seccompProfileType": "RuntimeDefault",
        "supplementalGroups": "2,3,5,8",
        "uidGidSource": "fromTheImage"
      },
      "stdin": true,
      "storage": {
        "configMapVolume": {
          "attributes": {
            "name": "storage-instance-a",
            "configMap": "text",
            "mountPath": "text",
            "subPath": "text",
            "defaultMode": "0644",
            "exclude": false
          },
          "instances": [
            {
              "name": "storage-instance-a",
              "configMap": "text",
              "mountPath": "text",
              "subPath": "text",
              "defaultMode": "0644",
              "exclude": false
            }
          ]
        },
        "dataVolume": {
          "attributes": {
            "id": "123e4567-e89b-12d3-a456-426614174000",
            "mountPath": "/mnt/data",
            "exclude": false
          },
          "instances": [
            {
              "id": "123e4567-e89b-12d3-a456-426614174000",
              "mountPath": "/mnt/data",
              "exclude": false
            }
          ]
        },
        "emptyDirVolume": {
          "attributes": {
            "name": "storage-instance-a",
            "path": "/mnt/emptydir",
            "medium": "text",
            "sizeLimit": "1G",
            "exclude": false
          },
          "instances": [
            {
              "name": "storage-instance-a",
              "path": "/mnt/emptydir",
              "medium": "text",
              "sizeLimit": "1G",
              "exclude": false
            }
          ]
        },
        "git": {
          "attributes": {
            "name": "storage-instance-a",
            "repository": "https://github.com/my-git/my-repo",
            "branch": "main",
            "revision": "text",
            "path": "/container/my-repository",
            "passwordSecret": "my-password-secret",
            "secretKeyOfUser": "User",
            "secretKeyOfPassword": "Password",
            "exclude": false,
            "secretRef": {
              "name": "my-password-secret",
              "authenticationMethod": "password",
              "secretKeyOfUser": "User",
              "secretKeyOfPassword": "Password"
            }
          },
          "instances": [
            {
              "name": "storage-instance-a",
              "repository": "https://github.com/my-git/my-repo",
              "branch": "main",
              "revision": "text",
              "path": "/container/my-repository",
              "passwordSecret": "my-password-secret",
              "secretKeyOfUser": "User",
              "secretKeyOfPassword": "Password",
              "exclude": false,
              "secretRef": {
                "name": "my-password-secret",
                "authenticationMethod": "password",
                "secretKeyOfUser": "User",
                "secretKeyOfPassword": "Password"
              }
            }
          ]
        },
        "hostPath": {
          "attributes": {
            "name": "storage-instance-a",
            "path": "/container/directory",
            "readOnly": true,
            "mountPath": "/local/directory",
            "mountPropagation": "None",
            "exclude": false
          },
          "instances": [
            {
              "name": "storage-instance-a",
              "path": "/container/directory",
              "readOnly": true,
              "mountPath": "/local/directory",
              "mountPropagation": "None",
              "exclude": false
            }
          ]
        },
        "nfs": {
          "attributes": {
            "name": "storage-instance-a",
            "path": "/container/nfs",
            "readOnly": true,
            "server": "my.nfs.com",
            "mountPath": "/local/nfs",
            "exclude": false
          },
          "instances": [
            {
              "name": "storage-instance-a",
              "path": "/container/nfs",
              "readOnly": true,
              "server": "my.nfs.com",
              "mountPath": "/local/nfs",
              "exclude": false
            }
          ]
        },
        "pvc": {
          "attributes": {
            "name": "storage-instance-a",
            "path": "/container/my-claim",
            "existingPvc": false,
            "claimName": "my-claim",
            "readOnly": false,
            "ephemeral": false,
            "claimInfo": {
              "size": "1G",
              "storageClass": "my-storage-class",
              "accessModes": {
                "readWriteOnce": true,
                "readOnlyMany": false,
                "readWriteMany": false
              },
              "volumeMode": "Filesystem",
              "addedAttrValues": [
                {
                  "key": "dnsname",
                  "value": "my.dns.com"
                }
              ]
            },
            "dataSharing": false,
            "exclude": false
          },
          "instances": [
            {
              "name": "storage-instance-a",
              "path": "/container/my-claim",
              "existingPvc": false,
              "claimName": "my-claim",
              "readOnly": false,
              "ephemeral": false,
              "claimInfo": {
                "size": "1G",
                "storageClass": "my-storage-class",
                "accessModes": {
                  "readWriteOnce": true,
                  "readOnlyMany": false,
                  "readWriteMany": false
                },
                "volumeMode": "Filesystem",
                "addedAttrValues": [
                  {
                    "key": "dnsname",
                    "value": "my.dns.com"
                  }
                ]
              },
              "dataSharing": false,
              "exclude": false
            }
          ]
        },
        "s3": {
          "attributes": {
            "name": "storage-instance-a",
            "bucket": "my-bucket",
            "path": "/container/my-bucket",
            "url": "https://s3.amazonaws.com",
            "accessKeySecret": "my-access-key-secret",
            "secretKeyOfAccessKeyId": "AccessKeyId",
            "secretKeyOfSecretKey": "SecretKey",
            "exclude": false
          },
          "instances": [
            {
              "name": "storage-instance-a",
              "bucket": "my-bucket",
              "path": "/container/my-bucket",
              "url": "https://s3.amazonaws.com",
              "accessKeySecret": "my-access-key-secret",
              "secretKeyOfAccessKeyId": "AccessKeyId",
              "secretKeyOfSecretKey": "SecretKey",
              "exclude": false
            }
          ]
        },
        "secretVolume": {
          "attributes": {
            "name": "storage-instance-a",
            "mountPath": "text",
            "defaultMode": "0644",
            "secret": "text",
            "exclude": false
          },
          "instances": [
            {
              "name": "storage-instance-a",
              "mountPath": "text",
              "defaultMode": "0644",
              "secret": "text",
              "exclude": false
            }
          ]
        }
      },
      "terminateAfterPreemption": false,
      "terminationGracePeriodSeconds": 20,
      "tolerations": {
        "attributes": {
          "name": "text",
          "operator": "Equal",
          "key": "text",
          "value": "text",
          "effect": "NoSchedule",
          "seconds": 1,
          "exclude": false
        },
        "instances": [
          {
            "name": "text",
            "operator": "Equal",
            "key": "text",
            "value": "text",
            "effect": "NoSchedule",
            "seconds": 1,
            "exclude": false
          }
        ]
      },
      "tty": true,
      "workingDir": "/home/myfolder"
    },
    "rules": {
      "annotations": {
        "instances": {
          "sourceOfRule": {
            "scope": "project",
            "projectId": 3
          },
          "canAdd": true,
          "locked": [
            "HOME",
            "USER"
          ]
        }
      },
      "args": {
        "required": true,
        "canEdit": false,
        "blocked": false,
        "options": []
      },
      "autoDeletionTimeAfterCompletionSeconds": {
        "sourceOfRule": {
          "scope": "project",
          "projectId": 3
        },
        "required": true,
        "canEdit": true,
        "min": 1,
        "max": 1,
        "step": 1,
        "defaultFrom": {
          "field": "text",
          "factor": 1
        }
      },
      "backoffLimit": {
        "sourceOfRule": {
          "scope": "project",
          "projectId": 3
        },
        "required": true,
        "canEdit": true,
        "min": 1,
        "max": 1,
        "step": 1,
        "defaultFrom": {
          "field": "text",
          "factor": 1
        }
      },
      "category": {
        "required": true,
        "canEdit": false,
        "blocked": false,
        "options": []
      },
      "command": {
        "required": true,
        "canEdit": false,
        "blocked": false,
        "options": []
      },
      "compute": {
        "cpuCoreLimit": {
          "sourceOfRule": {
            "scope": "project",
            "projectId": 3
          },
          "required": true,
          "canEdit": true,
          "min": 1,
          "max": 1,
          "step": 1,
          "defaultFrom": {
            "field": "text",
            "factor": 1
          }
        },
        "cpuCoreRequest": {
          "sourceOfRule": {
            "scope": "project",
            "projectId": 3
          },
          "required": true,
          "canEdit": true,
          "min": 1,
          "max": 1,
          "step": 1,
          "defaultFrom": {
            "field": "text",
            "factor": 1
          }
        },
        "cpuMemoryLimit": {
          "sourceOfRule": {
            "scope": "project",
            "projectId": 3
          },
          "required": true,
          "canEdit": true,
          "min": "text",
          "max": "text",
          "defaultFrom": {
            "field": "text",
            "factor": 1
          }
        },
        "cpuMemoryRequest": {
          "sourceOfRule": {
            "scope": "project",
            "projectId": 3
          },
          "required": true,
          "canEdit": true,
          "min": "text",
          "max": "text",
          "defaultFrom": {
            "field": "text",
            "factor": 1
          }
        },
        "extendedResources": {
          "attributes": {
            "quantity": {
              "required": true,
              "canEdit": false,
              "blocked": false,
              "options": []
            }
          },
          "instances": {
            "sourceOfRule": {
              "scope": "project",
              "projectId": 3
            },
            "canAdd": true,
            "locked": [
              "HOME",
              "USER"
            ]
          }
        },
        "gpuDevicesRequest": {
          "sourceOfRule": {
            "scope": "project",
            "projectId": 3
          },
          "required": true,
          "canEdit": true,
          "min": 1,
          "max": 1,
          "step": 1,
          "defaultFrom": {
            "field": "text",
            "factor": 1
          }
        },
        "gpuMemoryLimit": {
          "sourceOfRule": {
            "scope": "project",
            "projectId": 3
          },
          "required": true,
          "canEdit": true,
          "min": "text",
          "max": "text",
          "defaultFrom": {
            "field": "text",
            "factor": 1
          }
        },
        "gpuMemoryRequest": {
          "sourceOfRule": {
            "scope": "project",
            "projectId": 3
          },
          "required": true,
          "canEdit": true,
          "min": "text",
          "max": "text",
          "defaultFrom": {
            "field": "text",
            "factor": 1
          }
        },
        "gpuPortionLimit": {
          "sourceOfRule": {
            "scope": "project",
            "projectId": 3
          },
          "required": true,
          "canEdit": true,
          "min": 1,
          "max": 1,
          "step": 1,
          "defaultFrom": {
            "field": "text",
            "factor": 1
          }
        },
        "gpuPortionRequest": {
          "sourceOfRule": {
            "scope": "project",
            "projectId": 3
          },
          "required": true,
          "canEdit": true,
          "min": 1,
          "max": 1,
          "step": 1,
          "defaultFrom": {
            "field": "text",
            "factor": 1
          }
        },
        "gpuRequestType": {
          "required": true,
          "canEdit": false,
          "blocked": false,
          "options": []
        },
        "largeShmRequest": {
          "sourceOfRule": {
            "scope": "project",
            "projectId": 3
          },
          "required": true,
          "canEdit": true
        }
      },
      "createHomeDir": {
        "sourceOfRule": {
          "scope": "project",
          "projectId": 3
        },
        "required": true,
        "canEdit": true
      },
      "environmentVariables": {
        "instances": {
          "sourceOfRule": {
            "scope": "project",
            "projectId": 3
          },
          "canAdd": true,
          "locked": [
            "HOME",
            "USER"
          ]
        }
      },
      "exposedUrls": {
        "attributes": {
          "container": {
            "sourceOfRule": {
              "scope": "project",
              "projectId": 3
            },
            "required": true,
            "canEdit": true,
            "min": 1,
            "max": 1,
            "step": 1,
            "defaultFrom": {
              "field": "text",
              "factor": 1
            }
          },
          "customUrl": {
            "sourceOfRule": {
              "scope": "project",
              "projectId": 3
            },
            "required": true,
            "canEdit": true
          },
          "url": {
            "required": true,
            "canEdit": false,
            "blocked": false,
            "options": []
          },
          "authorizedUsers": {
            "sourceOfRule": {
              "scope": "project",
              "projectId": 3
            },
            "required": true,
            "options": [],
            "canEdit": true
          },
          "authorizedGroups": {
            "sourceOfRule": {
              "scope": "project",
              "projectId": 3
            },
            "required": true,
            "options": [],
            "canEdit": true
          },
          "toolType": {
            "required": true,
            "canEdit": false,
            "blocked": false,
            "options": []
          },
          "toolName": {
            "required": true,
            "canEdit": false,
            "blocked": false,
            "options": []
          }
        },
        "instances": {
          "sourceOfRule": {
            "scope": "project",
            "projectId": 3
          },
          "canAdd": true,
          "locked": [
            "HOME",
            "USER"
          ]
        }
      },
      "image": {
        "required": true,
        "canEdit": false,
        "blocked": false,
        "options": []
      },
      "imagePullPolicy": {
        "required": true,
        "canEdit": false,
        "blocked": false,
        "options": []
      },
      "imagePullSecrets": {
        "attributes": {
          "name": {
            "required": true,
            "canEdit": false,
            "blocked": false,
            "options": []
          },
          "userCredentials": {
            "sourceOfRule": {
              "scope": "project",
              "projectId": 3
            },
            "required": true,
            "canEdit": true
          }
        },
        "instances": {
          "sourceOfRule": {
            "scope": "project",
            "projectId": 3
          },
          "canAdd": true,
          "locked": [
            "HOME",
            "USER"
          ]
        }
      },
      "labels": {
        "instances": {
          "sourceOfRule": {
            "scope": "project",
            "projectId": 3
          },
          "canAdd": true,
          "locked": [
            "HOME",
            "USER"
          ]
        }
      },
      "nodeAffinityRequired": {
        "sourceOfRule": {
          "scope": "project",
          "projectId": 3
        },
        "required": true,
        "canEdit": true
      },
      "nodePools": {
        "sourceOfRule": {
          "scope": "project",
          "projectId": 3
        },
        "required": true,
        "options": [],
        "canEdit": true
      },
      "nodeType": {
        "required": true,
        "canEdit": false,
        "blocked": false,
        "options": []
      },
      "podAffinity": {
        "type": {
          "required": true,
          "canEdit": false,
          "blocked": false,
          "options": []
        },
        "key": {
          "required": true,
          "canEdit": false,
          "blocked": false,
          "options": []
        }
      },
      "ports": {
        "attributes": {
          "container": {
            "sourceOfRule": {
              "scope": "project",
              "projectId": 3
            },
            "required": true,
            "canEdit": true,
            "min": 1,
            "max": 1,
            "step": 1,
            "defaultFrom": {
              "field": "text",
              "factor": 1
            }
          },
          "serviceType": {
            "required": true,
            "canEdit": false,
            "blocked": false,
            "options": []
          },
          "customExternalPort": {
            "sourceOfRule": {
              "scope": "project",
              "projectId": 3
            },
            "required": true,
            "canEdit": true
          },
          "external": {
            "sourceOfRule": {
              "scope": "project",
              "projectId": 3
            },
            "required": true,
            "canEdit": true,
            "min": 1,
            "max": 1,
            "step": 1,
            "defaultFrom": {
              "field": "text",
              "factor": 1
            }
          },
          "toolType": {
            "required": true,
            "canEdit": false,
            "blocked": false,
            "options": []
          },
          "toolName": {
            "required": true,
            "canEdit": false,
            "blocked": false,
            "options": []
          }
        },
        "instances": {
          "sourceOfRule": {
            "scope": "project",
            "projectId": 3
          },
          "canAdd": true,
          "locked": [
            "HOME",
            "USER"
          ]
        }
      },
      "preemptibility": {
        "required": true,
        "canEdit": false,
        "blocked": false,
        "options": []
      },
      "priorityClass": {
        "required": true,
        "canEdit": false,
        "blocked": false,
        "options": []
      },
      "probes": {
        "readiness": {
          "initialDelaySeconds": {
            "sourceOfRule": {
              "scope": "project",
              "projectId": 3
            },
            "required": true,
            "canEdit": true,
            "min": 1,
            "max": 1,
            "step": 1,
            "defaultFrom": {
              "field": "text",
              "factor": 1
            }
          },
          "periodSeconds": {
            "sourceOfRule": {
              "scope": "project",
              "projectId": 3
            },
            "required": true,
            "canEdit": true,
            "min": 1,
            "max": 1,
            "step": 1,
            "defaultFrom": {
              "field": "text",
              "factor": 1
            }
          },
          "timeoutSeconds": {
            "sourceOfRule": {
              "scope": "project",
              "projectId": 3
            },
            "required": true,
            "canEdit": true,
            "min": 1,
            "max": 1,
            "step": 1,
            "defaultFrom": {
              "field": "text",
              "factor": 1
            }
          },
          "successThreshold": {
            "sourceOfRule": {
              "scope": "project",
              "projectId": 3
            },
            "required": true,
            "canEdit": true,
            "min": 1,
            "max": 1,
            "step": 1,
            "defaultFrom": {
              "field": "text",
              "factor": 1
            }
          },
          "failureThreshold": {
            "sourceOfRule": {
              "scope": "project",
              "projectId": 3
            },
            "required": true,
            "canEdit": true,
            "min": 1,
            "max": 1,
            "step": 1,
            "defaultFrom": {
              "field": "text",
              "factor": 1
            }
          },
          "handler": {
            "httpGet": {
              "path": {
                "required": true,
                "canEdit": false,
                "blocked": false,
                "options": []
              },
              "port": {
                "sourceOfRule": {
                  "scope": "project",
                  "projectId": 3
                },
                "required": true,
                "canEdit": true,
                "min": 1,
                "max": 1,
                "step": 1,
                "defaultFrom": {
                  "field": "text",
                  "factor": 1
                }
              },
              "host": {
                "required": true,
                "canEdit": false,
                "blocked": false,
                "options": []
              },
              "scheme": {
                "required": true,
                "canEdit": false,
                "blocked": false,
                "options": []
              }
            }
          }
        }
      },
      "relatedUrls": {
        "attributes": {
          "url": {
            "required": true,
            "canEdit": false,
            "blocked": false,
            "options": []
          },
          "type": {
            "required": true,
            "canEdit": false,
            "blocked": false,
            "options": []
          },
          "name": {
            "required": true,
            "canEdit": false,
            "blocked": false,
            "options": []
          }
        },
        "instances": {
          "sourceOfRule": {
            "scope": "project",
            "projectId": 3
          },
          "canAdd": true,
          "locked": [
            "HOME",
            "USER"
          ]
        }
      },
      "restartPolicy": {
        "required": true,
        "canEdit": false,
        "blocked": false,
        "options": []
      },
      "security": {
        "allowPrivilegeEscalation": {
          "sourceOfRule": {
            "scope": "project",
            "projectId": 3
          },
          "required": true,
          "canEdit": true
        },
        "capabilities": {
          "sourceOfRule": {
            "scope": "project",
            "projectId": 3
          },
          "required": true,
          "options": [],
          "canEdit": true
        },
        "hostIpc": {
          "sourceOfRule": {
            "scope": "project",
            "projectId": 3
          },
          "required": true,
          "canEdit": true
        },
        "hostNetwork": {
          "sourceOfRule": {
            "scope": "project",
            "projectId": 3
          },
          "required": true,
          "canEdit": true
        },
        "readOnlyRootFilesystem": {
          "sourceOfRule": {
            "scope": "project",
            "projectId": 3
          },
          "required": true,
          "canEdit": true
        },
        "runAsGid": {
          "sourceOfRule": {
            "scope": "project",
            "projectId": 3
          },
          "canEdit": true,
          "min": 1,
          "max": 1,
          "step": 1,
          "defaultFrom": {
            "field": "text",
            "factor": 1
          }
        },
        "runAsNonRoot": {
          "sourceOfRule": {
            "scope": "project",
            "projectId": 3
          },
          "required": true,
          "canEdit": true
        },
        "runAsUid": {
          "sourceOfRule": {
            "scope": "project",
            "projectId": 3
          },
          "canEdit": true,
          "min": 1,
          "max": 1,
          "step": 1,
          "defaultFrom": {
            "field": "text",
            "factor": 1
          }
        },
        "seccompProfileType": {
          "required": true,
          "canEdit": false,
          "blocked": false,
          "options": []
        },
        "supplementalGroups": {
          "required": true,
          "canEdit": false,
          "blocked": false,
          "options": []
        },
        "uidGidSource": {
          "required": true,
          "canEdit": false,
          "blocked": false,
          "options": []
        }
      },
      "stdin": {
        "sourceOfRule": {
          "scope": "project",
          "projectId": 3
        },
        "required": true,
        "canEdit": true
      },
      "storage": {
        "configMapVolume": {
          "attributes": {
            "configMap": {
              "required": true,
              "canEdit": false,
              "blocked": false,
              "options": []
            },
            "mountPath": {
              "required": true,
              "canEdit": false,
              "blocked": false,
              "options": []
            },
            "subPath": {
              "required": true,
              "canEdit": false,
              "blocked": false,
              "options": []
            },
            "defaultMode": {
              "required": true,
              "canEdit": false,
              "blocked": false,
              "options": []
            }
          },
          "instances": {
            "sourceOfRule": {
              "scope": "project",
              "projectId": 3
            },
            "canAdd": true,
            "locked": [
              "HOME",
              "USER"
            ]
          }
        },
        "dataVolume": {
          "attributes": {
            "id": {
              "required": true,
              "canEdit": false,
              "blocked": false,
              "options": []
            },
            "mountPath": {
              "required": true,
              "canEdit": false,
              "blocked": false,
              "options": []
            }
          },
          "instances": {
            "sourceOfRule": {
              "scope": "project",
              "projectId": 3
            },
            "canAdd": true,
            "locked": [
              "HOME",
              "USER"
            ]
          }
        },
        "emptyDirVolume": {
          "attributes": {
            "path": {
              "required": true,
              "canEdit": false,
              "blocked": false,
              "options": []
            },
            "medium": {
              "required": true,
              "canEdit": false,
              "blocked": false,
              "options": []
            },
            "sizeLimit": {
              "required": true,
              "canEdit": false,
              "blocked": false,
              "options": []
            }
          },
          "instances": {
            "sourceOfRule": {
              "scope": "project",
              "projectId": 3
            },
            "canAdd": true,
            "locked": [
              "HOME",
              "USER"
            ]
          }
        },
        "git": {
          "attributes": {
            "repository": {
              "required": true,
              "canEdit": false,
              "blocked": false,
              "options": []
            },
            "branch": {
              "required": true,
              "canEdit": false,
              "blocked": false,
              "options": []
            },
            "revision": {
              "required": true,
              "canEdit": false,
              "blocked": false,
              "options": []
            },
            "path": {
              "required": true,
              "canEdit": false,
              "blocked": false,
              "options": []
            }
          },
          "instances": {
            "sourceOfRule": {
              "scope": "project",
              "projectId": 3
            },
            "canAdd": true,
            "locked": [
              "HOME",
              "USER"
            ]
          }
        },
        "hostPath": {
          "attributes": {
            "path": {
              "required": true,
              "canEdit": false,
              "blocked": false,
              "options": []
            },
            "readOnly": {
              "sourceOfRule": {
                "scope": "project",
                "projectId": 3
              },
              "required": true,
              "canEdit": true
            },
            "mountPath": {
              "required": true,
              "canEdit": false,
              "blocked": false,
              "options": []
            },
            "mountPropagation": {
              "required": true,
              "canEdit": false,
              "blocked": false,
              "options": []
            }
          },
          "instances": {
            "sourceOfRule": {
              "scope": "project",
              "projectId": 3
            },
            "canAdd": true,
            "locked": [
              "HOME",
              "USER"
            ]
          }
        },
        "nfs": {
          "attributes": {
            "path": {
              "required": true,
              "canEdit": false,
              "blocked": false,
              "options": []
            },
            "readOnly": {
              "sourceOfRule": {
                "scope": "project",
                "projectId": 3
              },
              "required": true,
              "canEdit": true
            },
            "server": {
              "required": true,
              "canEdit": false,
              "blocked": false,
              "options": []
            },
            "mountPath": {
              "required": true,
              "canEdit": false,
              "blocked": false,
              "options": []
            }
          },
          "instances": {
            "sourceOfRule": {
              "scope": "project",
              "projectId": 3
            },
            "canAdd": true,
            "locked": [
              "HOME",
              "USER"
            ]
          }
        },
        "pvc": {
          "attributes": {
            "claimName": {
              "required": true,
              "canEdit": false,
              "blocked": false,
              "options": []
            },
            "path": {
              "required": true,
              "canEdit": false,
              "blocked": false,
              "options": []
            },
            "readOnly": {
              "sourceOfRule": {
                "scope": "project",
                "projectId": 3
              },
              "required": true,
              "canEdit": true
            },
            "claimInfo": {
              "size": {
                "required": true,
                "canEdit": false,
                "blocked": false,
                "options": []
              },
              "storageClass": {
                "required": true,
                "canEdit": false,
                "blocked": false,
                "options": []
              },
              "accessModes": {
                "readWriteOnce": {
                  "sourceOfRule": {
                    "scope": "project",
                    "projectId": 3
                  },
                  "required": true,
                  "canEdit": true
                },
                "readOnlyMany": {
                  "sourceOfRule": {
                    "scope": "project",
                    "projectId": 3
                  },
                  "required": true,
                  "canEdit": true
                },
                "readWriteMany": {
                  "sourceOfRule": {
                    "scope": "project",
                    "projectId": 3
                  },
                  "required": true,
                  "canEdit": true
                }
              }
            }
          },
          "instances": {
            "sourceOfRule": {
              "scope": "project",
              "projectId": 3
            },
            "canAdd": true,
            "locked": [
              "HOME",
              "USER"
            ]
          }
        },
        "s3": {
          "attributes": {
            "bucket": {
              "required": true,
              "canEdit": false,
              "blocked": false,
              "options": []
            },
            "path": {
              "required": true,
              "canEdit": false,
              "blocked": false,
              "options": []
            },
            "url": {
              "required": true,
              "canEdit": false,
              "blocked": false,
              "options": []
            }
          },
          "instances": {
            "sourceOfRule": {
              "scope": "project",
              "projectId": 3
            },
            "canAdd": true,
            "locked": [
              "HOME",
              "USER"
            ]
          }
        },
        "secretVolume": {
          "attributes": {
            "secret": {
              "required": true,
              "canEdit": false,
              "blocked": false,
              "options": []
            },
            "mountPath": {
              "required": true,
              "canEdit": false,
              "blocked": false,
              "options": []
            },
            "defaultMode": {
              "required": true,
              "canEdit": false,
              "blocked": false,
              "options": []
            }
          },
          "instances": {
            "sourceOfRule": {
              "scope": "project",
              "projectId": 3
            },
            "canAdd": true,
            "locked": [
              "HOME",
              "USER"
            ]
          }
        }
      },
      "terminateAfterPreemption": {
        "sourceOfRule": {
          "scope": "project",
          "projectId": 3
        },
        "required": true,
        "canEdit": true
      },
      "terminationGracePeriodSeconds": {
        "sourceOfRule": {
          "scope": "project",
          "projectId": 3
        },
        "required": true,
        "canEdit": true,
        "min": 1,
        "max": 1,
        "step": 1,
        "defaultFrom": {
          "field": "text",
          "factor": 1
        }
      },
      "tolerations": {
        "attributes": {
          "operator": {
            "required": true,
            "canEdit": false,
            "blocked": false,
            "options": []
          },
          "key": {
            "required": true,
            "canEdit": false,
            "blocked": false,
            "options": []
          },
          "value": {
            "required": true,
            "canEdit": false,
            "blocked": false,
            "options": []
          },
          "effect": {
            "required": true,
            "canEdit": false,
            "blocked": false,
            "options": []
          },
          "seconds": {
            "sourceOfRule": {
              "scope": "project",
              "projectId": 3
            },
            "required": true,
            "canEdit": true,
            "min": 1,
            "max": 1,
            "step": 1,
            "defaultFrom": {
              "field": "text",
              "factor": 1
            }
          },
          "exclude": {
            "sourceOfRule": {
              "scope": "project",
              "projectId": 3
            },
            "required": true,
            "canEdit": true
          }
        },
        "instances": {
          "sourceOfRule": {
            "scope": "project",
            "projectId": 3
          },
          "canAdd": true,
          "locked": [
            "HOME",
            "USER"
          ]
        }
      },
      "tty": {
        "sourceOfRule": {
          "scope": "project",
          "projectId": 3
        },
        "required": true,
        "canEdit": true
      },
      "workingDir": {
        "required": true,
        "canEdit": false,
        "blocked": false,
        "options": []
      }
    },
    "imposedAssets": [
      "123e4567-e89b-12d3-a456-426614174000"
    ],
    "status": {
      "validation": {
        "errorMessage": "text"
      }
    }
  },
  "effectiveUpdatedAt": "2026-01-01T00:00:00.000Z"
}

Get a distributed policy.

get

Retrieve the details of a distributed policy for a given organizational unit.

Authorizations
AuthorizationstringRequired

Bearer authentication

Query parameters
scopestring · enumRequired

The scope that the policy relates to.

Possible values:
departmentIdstringOptional

Filter using the department id.

Example: 1
projectIdstringOptional

project id to filter by

Example: 1
clusterIdstring · uuidOptional

Filter using the Universally Unique Identifier (UUID) of the cluster.

Example: d73a738f-fab3-430a-8fa3-5241493d7128
Responses
200

Request completed successfully.

application/json
effectiveUpdatedAtstring · date-time · min: 1Optional

The time at which an event occurred. e.g. the time an effective policy has been updated

get/api/v2/policy/distributed
GET /api/v2/policy/distributed?scope=tenant HTTP/1.1
Host: app.run.ai
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
  "meta": {
    "id": "123e4567-e89b-12d3-a456-426614174000",
    "tenantId": 1001,
    "clusterId": "71f69d83-ba66-4822-adf5-55ce55efd210",
    "createdBy": "text",
    "createdAt": "2026-01-01T00:00:00.000Z",
    "updatedBy": "text",
    "updatedAt": "2026-01-01T00:00:00.000Z",
    "scope": "system",
    "projectId": 1,
    "departmentId": 2,
    "name": "my-policy"
  },
  "policy": {
    "defaults": {
      "master": {
        "annotations": {
          "instances": [
            {
              "name": "billing",
              "value": "my-billing-unit",
              "exclude": false
            }
          ]
        },
        "args": "-x my-script.py",
        "autoDeletionTimeAfterCompletionSeconds": 15,
        "backoffLimit": 3,
        "category": "text",
        "command": "python",
        "compute": {
          "cpuCoreLimit": 2,
          "cpuCoreRequest": 0.5,
          "cpuMemoryLimit": "30M",
          "cpuMemoryRequest": "20M",
          "extendedResources": {
            "attributes": {
              "resource": "hardware-vendor.example/foo",
              "quantity": 2,
              "exclude": false
            },
            "instances": [
              {
                "resource": "hardware-vendor.example/foo",
                "quantity": 2,
                "exclude": false
              }
            ]
          },
          "gpuDevicesRequest": 1,
          "gpuMemoryLimit": "10M",
          "gpuMemoryRequest": "10M",
          "gpuPortionLimit": 0.5,
          "gpuPortionRequest": 0.5,
          "gpuRequestType": "portion",
          "largeShmRequest": false
        },
        "createHomeDir": true,
        "environmentVariables": {
          "instances": [
            {
              "name": "HOME",
              "value": "/home/my-folder",
              "secret": {
                "name": "postgress_secret",
                "key": "POSTGRES_PASSWORD"
              },
              "configMap": {
                "name": "my-config-map",
                "key": "MY_POSTGRES_SCHEMA"
              },
              "podFieldRef": {
                "path": "metadata.name"
              },
              "userCredential": {
                "name": "my_postgres_user_and_password",
                "key": "POSTGRES_PASSWORD"
              },
              "exclude": false,
              "description": "Home directory of the user."
            }
          ]
        },
        "exposedUrls": {
          "attributes": {
            "container": 8080,
            "url": "https://my-url.com",
            "authorizationType": "authenticatedUsers",
            "authorizedUsers": [
              "user-a",
              "user-b"
            ],
            "authorizedGroups": [
              "group-a",
              "group-b"
            ],
            "toolType": "jupyter",
            "toolName": "my-pytorch",
            "name": "url-instance-a",
            "exclude": false
          },
          "instances": [
            {
              "container": 8080,
              "url": "https://my-url.com",
              "authorizationType": "authenticatedUsers",
              "authorizedUsers": [
                "user-a",
                "user-b"
              ],
              "authorizedGroups": [
                "group-a",
                "group-b"
              ],
              "toolType": "jupyter",
              "toolName": "my-pytorch",
              "name": "url-instance-a",
              "exclude": false
            }
          ]
        },
        "image": "python:3.8",
        "imagePullPolicy": "Always",
        "imagePullSecrets": {
          "instances": [
            {
              "name": "text",
              "userCredential": true,
              "exclude": false
            }
          ]
        },
        "labels": {
          "instances": [
            {
              "name": "stage",
              "value": "initial-research",
              "exclude": false
            }
          ]
        },
        "nodeAffinityRequired": {
          "nodeSelectorTerms": [
            {
              "matchExpressions": [
                {
                  "key": "text",
                  "operator": "In",
                  "values": [
                    "text"
                  ]
                }
              ]
            }
          ]
        },
        "nodePools": [
          "my-node-pool-a",
          "my-node-pool-b"
        ],
        "nodeType": "my-node-type",
        "podAffinity": {
          "type": "Required",
          "key": "text"
        },
        "ports": {
          "attributes": {
            "container": 8080,
            "serviceType": "LoadBalancer",
            "external": 30080,
            "toolType": "pytorch",
            "toolName": "my-pytorch",
            "name": "port-instance-a",
            "exclude": false
          },
          "instances": [
            {
              "container": 8080,
              "serviceType": "LoadBalancer",
              "external": 30080,
              "toolType": "pytorch",
              "toolName": "my-pytorch",
              "name": "port-instance-a",
              "exclude": false
            }
          ]
        },
        "preemptibility": "preemptible",
        "priorityClass": "text",
        "probes": {
          "readiness": {
            "initialDelaySeconds": 1,
            "periodSeconds": 1,
            "timeoutSeconds": 1,
            "successThreshold": 1,
            "failureThreshold": 1,
            "handler": {
              "httpGet": {
                "path": "/",
                "port": 1,
                "host": "example.com",
                "scheme": "HTTP"
              }
            }
          }
        },
        "relatedUrls": {
          "attributes": {
            "url": "https://my-url.com",
            "type": "wandb",
            "name": "url-instance-a",
            "exclude": false
          },
          "instances": [
            {
              "url": "https://my-url.com",
              "type": "wandb",
              "name": "url-instance-a",
              "exclude": false
            }
          ]
        },
        "restartPolicy": "Always",
        "security": {
          "allowPrivilegeEscalation": false,
          "capabilities": [
            "CHOWN",
            "KILL"
          ],
          "hostIpc": false,
          "hostNetwork": false,
          "readOnlyRootFilesystem": false,
          "runAsGid": 30,
          "runAsNonRoot": true,
          "runAsUid": 500,
          "seccompProfileType": "RuntimeDefault",
          "supplementalGroups": "2,3,5,8",
          "uidGidSource": "fromTheImage"
        },
        "stdin": true,
        "storage": {
          "configMapVolume": {
            "attributes": {
              "name": "storage-instance-a",
              "configMap": "text",
              "mountPath": "text",
              "subPath": "text",
              "defaultMode": "0644",
              "exclude": false
            },
            "instances": [
              {
                "name": "storage-instance-a",
                "configMap": "text",
                "mountPath": "text",
                "subPath": "text",
                "defaultMode": "0644",
                "exclude": false
              }
            ]
          },
          "dataVolume": {
            "attributes": {
              "id": "123e4567-e89b-12d3-a456-426614174000",
              "mountPath": "/mnt/data",
              "exclude": false
            },
            "instances": [
              {
                "id": "123e4567-e89b-12d3-a456-426614174000",
                "mountPath": "/mnt/data",
                "exclude": false
              }
            ]
          },
          "emptyDirVolume": {
            "attributes": {
              "name": "storage-instance-a",
              "path": "/mnt/emptydir",
              "medium": "text",
              "sizeLimit": "1G",
              "exclude": false
            },
            "instances": [
              {
                "name": "storage-instance-a",
                "path": "/mnt/emptydir",
                "medium": "text",
                "sizeLimit": "1G",
                "exclude": false
              }
            ]
          },
          "git": {
            "attributes": {
              "name": "storage-instance-a",
              "repository": "https://github.com/my-git/my-repo",
              "branch": "main",
              "revision": "text",
              "path": "/container/my-repository",
              "passwordSecret": "my-password-secret",
              "secretKeyOfUser": "User",
              "secretKeyOfPassword": "Password",
              "exclude": false,
              "secretRef": {
                "name": "my-password-secret",
                "authenticationMethod": "password",
                "secretKeyOfUser": "User",
                "secretKeyOfPassword": "Password"
              }
            },
            "instances": [
              {
                "name": "storage-instance-a",
                "repository": "https://github.com/my-git/my-repo",
                "branch": "main",
                "revision": "text",
                "path": "/container/my-repository",
                "passwordSecret": "my-password-secret",
                "secretKeyOfUser": "User",
                "secretKeyOfPassword": "Password",
                "exclude": false,
                "secretRef": {
                  "name": "my-password-secret",
                  "authenticationMethod": "password",
                  "secretKeyOfUser": "User",
                  "secretKeyOfPassword": "Password"
                }
              }
            ]
          },
          "hostPath": {
            "attributes": {
              "name": "storage-instance-a",
              "path": "/container/directory",
              "readOnly": true,
              "mountPath": "/local/directory",
              "mountPropagation": "None",
              "exclude": false
            },
            "instances": [
              {
                "name": "storage-instance-a",
                "path": "/container/directory",
                "readOnly": true,
                "mountPath": "/local/directory",
                "mountPropagation": "None",
                "exclude": false
              }
            ]
          },
          "nfs": {
            "attributes": {
              "name": "storage-instance-a",
              "path": "/container/nfs",
              "readOnly": true,
              "server": "my.nfs.com",
              "mountPath": "/local/nfs",
              "exclude": false
            },
            "instances": [
              {
                "name": "storage-instance-a",
                "path": "/container/nfs",
                "readOnly": true,
                "server": "my.nfs.com",
                "mountPath": "/local/nfs",
                "exclude": false
              }
            ]
          },
          "pvc": {
            "attributes": {
              "name": "storage-instance-a",
              "path": "/container/my-claim",
              "existingPvc": false,
              "claimName": "my-claim",
              "readOnly": false,
              "ephemeral": false,
              "claimInfo": {
                "size": "1G",
                "storageClass": "my-storage-class",
                "accessModes": {
                  "readWriteOnce": true,
                  "readOnlyMany": false,
                  "readWriteMany": false
                },
                "volumeMode": "Filesystem",
                "addedAttrValues": [
                  {
                    "key": "dnsname",
                    "value": "my.dns.com"
                  }
                ]
              },
              "dataSharing": false,
              "exclude": false
            },
            "instances": [
              {
                "name": "storage-instance-a",
                "path": "/container/my-claim",
                "existingPvc": false,
                "claimName": "my-claim",
                "readOnly": false,
                "ephemeral": false,
                "claimInfo": {
                  "size": "1G",
                  "storageClass": "my-storage-class",
                  "accessModes": {
                    "readWriteOnce": true,
                    "readOnlyMany": false,
                    "readWriteMany": false
                  },
                  "volumeMode": "Filesystem",
                  "addedAttrValues": [
                    {
                      "key": "dnsname",
                      "value": "my.dns.com"
                    }
                  ]
                },
                "dataSharing": false,
                "exclude": false
              }
            ]
          },
          "s3": {
            "attributes": {
              "name": "storage-instance-a",
              "bucket": "my-bucket",
              "path": "/container/my-bucket",
              "url": "https://s3.amazonaws.com",
              "accessKeySecret": "my-access-key-secret",
              "secretKeyOfAccessKeyId": "AccessKeyId",
              "secretKeyOfSecretKey": "SecretKey",
              "exclude": false
            },
            "instances": [
              {
                "name": "storage-instance-a",
                "bucket": "my-bucket",
                "path": "/container/my-bucket",
                "url": "https://s3.amazonaws.com",
                "accessKeySecret": "my-access-key-secret",
                "secretKeyOfAccessKeyId": "AccessKeyId",
                "secretKeyOfSecretKey": "SecretKey",
                "exclude": false
              }
            ]
          },
          "secretVolume": {
            "attributes": {
              "name": "storage-instance-a",
              "mountPath": "text",
              "defaultMode": "0644",
              "secret": "text",
              "exclude": false
            },
            "instances": [
              {
                "name": "storage-instance-a",
                "mountPath": "text",
                "defaultMode": "0644",
                "secret": "text",
                "exclude": false
              }
            ]
          }
        },
        "terminateAfterPreemption": false,
        "terminationGracePeriodSeconds": 20,
        "tolerations": {
          "attributes": {
            "name": "text",
            "operator": "Equal",
            "key": "text",
            "value": "text",
            "effect": "NoSchedule",
            "seconds": 1,
            "exclude": false
          },
          "instances": [
            {
              "name": "text",
              "operator": "Equal",
              "key": "text",
              "value": "text",
              "effect": "NoSchedule",
              "seconds": 1,
              "exclude": false
            }
          ]
        },
        "tty": true,
        "workingDir": "/home/myfolder"
      },
      "worker": {
        "annotations": {
          "instances": [
            {
              "name": "billing",
              "value": "my-billing-unit",
              "exclude": false
            }
          ]
        },
        "args": "-x my-script.py",
        "autoDeletionTimeAfterCompletionSeconds": 15,
        "backoffLimit": 3,
        "category": "text",
        "command": "python",
        "compute": {
          "cpuCoreLimit": 2,
          "cpuCoreRequest": 0.5,
          "cpuMemoryLimit": "30M",
          "cpuMemoryRequest": "20M",
          "extendedResources": {
            "attributes": {
              "resource": "hardware-vendor.example/foo",
              "quantity": 2,
              "exclude": false
            },
            "instances": [
              {
                "resource": "hardware-vendor.example/foo",
                "quantity": 2,
                "exclude": false
              }
            ]
          },
          "gpuDevicesRequest": 1,
          "gpuMemoryLimit": "10M",
          "gpuMemoryRequest": "10M",
          "gpuPortionLimit": 0.5,
          "gpuPortionRequest": 0.5,
          "gpuRequestType": "portion",
          "largeShmRequest": false
        },
        "createHomeDir": true,
        "environmentVariables": {
          "instances": [
            {
              "name": "HOME",
              "value": "/home/my-folder",
              "secret": {
                "name": "postgress_secret",
                "key": "POSTGRES_PASSWORD"
              },
              "configMap": {
                "name": "my-config-map",
                "key": "MY_POSTGRES_SCHEMA"
              },
              "podFieldRef": {
                "path": "metadata.name"
              },
              "userCredential": {
                "name": "my_postgres_user_and_password",
                "key": "POSTGRES_PASSWORD"
              },
              "exclude": false,
              "description": "Home directory of the user."
            }
          ]
        },
        "exposedUrls": {
          "attributes": {
            "container": 8080,
            "url": "https://my-url.com",
            "authorizationType": "authenticatedUsers",
            "authorizedUsers": [
              "user-a",
              "user-b"
            ],
            "authorizedGroups": [
              "group-a",
              "group-b"
            ],
            "toolType": "jupyter",
            "toolName": "my-pytorch",
            "name": "url-instance-a",
            "exclude": false
          },
          "instances": [
            {
              "container": 8080,
              "url": "https://my-url.com",
              "authorizationType": "authenticatedUsers",
              "authorizedUsers": [
                "user-a",
                "user-b"
              ],
              "authorizedGroups": [
                "group-a",
                "group-b"
              ],
              "toolType": "jupyter",
              "toolName": "my-pytorch",
              "name": "url-instance-a",
              "exclude": false
            }
          ]
        },
        "image": "python:3.8",
        "imagePullPolicy": "Always",
        "imagePullSecrets": {
          "instances": [
            {
              "name": "text",
              "userCredential": true,
              "exclude": false
            }
          ]
        },
        "labels": {
          "instances": [
            {
              "name": "stage",
              "value": "initial-research",
              "exclude": false
            }
          ]
        },
        "nodeAffinityRequired": {
          "nodeSelectorTerms": [
            {
              "matchExpressions": [
                {
                  "key": "text",
                  "operator": "In",
                  "values": [
                    "text"
                  ]
                }
              ]
            }
          ]
        },
        "nodePools": [
          "my-node-pool-a",
          "my-node-pool-b"
        ],
        "nodeType": "my-node-type",
        "podAffinity": {
          "type": "Required",
          "key": "text"
        },
        "ports": {
          "attributes": {
            "container": 8080,
            "serviceType": "LoadBalancer",
            "external": 30080,
            "toolType": "pytorch",
            "toolName": "my-pytorch",
            "name": "port-instance-a",
            "exclude": false
          },
          "instances": [
            {
              "container": 8080,
              "serviceType": "LoadBalancer",
              "external": 30080,
              "toolType": "pytorch",
              "toolName": "my-pytorch",
              "name": "port-instance-a",
              "exclude": false
            }
          ]
        },
        "preemptibility": "preemptible",
        "priorityClass": "text",
        "probes": {
          "readiness": {
            "initialDelaySeconds": 1,
            "periodSeconds": 1,
            "timeoutSeconds": 1,
            "successThreshold": 1,
            "failureThreshold": 1,
            "handler": {
              "httpGet": {
                "path": "/",
                "port": 1,
                "host": "example.com",
                "scheme": "HTTP"
              }
            }
          }
        },
        "relatedUrls": {
          "attributes": {
            "url": "https://my-url.com",
            "type": "wandb",
            "name": "url-instance-a",
            "exclude": false
          },
          "instances": [
            {
              "url": "https://my-url.com",
              "type": "wandb",
              "name": "url-instance-a",
              "exclude": false
            }
          ]
        },
        "restartPolicy": "Always",
        "security": {
          "allowPrivilegeEscalation": false,
          "capabilities": [
            "CHOWN",
            "KILL"
          ],
          "hostIpc": false,
          "hostNetwork": false,
          "readOnlyRootFilesystem": false,
          "runAsGid": 30,
          "runAsNonRoot": true,
          "runAsUid": 500,
          "seccompProfileType": "RuntimeDefault",
          "supplementalGroups": "2,3,5,8",
          "uidGidSource": "fromTheImage"
        },
        "stdin": true,
        "storage": {
          "configMapVolume": {
            "attributes": {
              "name": "storage-instance-a",
              "configMap": "text",
              "mountPath": "text",
              "subPath": "text",
              "defaultMode": "0644",
              "exclude": false
            },
            "instances": [
              {
                "name": "storage-instance-a",
                "configMap": "text",
                "mountPath": "text",
                "subPath": "text",
                "defaultMode": "0644",
                "exclude": false
              }
            ]
          },
          "dataVolume": {
            "attributes": {
              "id": "123e4567-e89b-12d3-a456-426614174000",
              "mountPath": "/mnt/data",
              "exclude": false
            },
            "instances": [
              {
                "id": "123e4567-e89b-12d3-a456-426614174000",
                "mountPath": "/mnt/data",
                "exclude": false
              }
            ]
          },
          "emptyDirVolume": {
            "attributes": {
              "name": "storage-instance-a",
              "path": "/mnt/emptydir",
              "medium": "text",
              "sizeLimit": "1G",
              "exclude": false
            },
            "instances": [
              {
                "name": "storage-instance-a",
                "path": "/mnt/emptydir",
                "medium": "text",
                "sizeLimit": "1G",
                "exclude": false
              }
            ]
          },
          "git": {
            "attributes": {
              "name": "storage-instance-a",
              "repository": "https://github.com/my-git/my-repo",
              "branch": "main",
              "revision": "text",
              "path": "/container/my-repository",
              "passwordSecret": "my-password-secret",
              "secretKeyOfUser": "User",
              "secretKeyOfPassword": "Password",
              "exclude": false,
              "secretRef": {
                "name": "my-password-secret",
                "authenticationMethod": "password",
                "secretKeyOfUser": "User",
                "secretKeyOfPassword": "Password"
              }
            },
            "instances": [
              {
                "name": "storage-instance-a",
                "repository": "https://github.com/my-git/my-repo",
                "branch": "main",
                "revision": "text",
                "path": "/container/my-repository",
                "passwordSecret": "my-password-secret",
                "secretKeyOfUser": "User",
                "secretKeyOfPassword": "Password",
                "exclude": false,
                "secretRef": {
                  "name": "my-password-secret",
                  "authenticationMethod": "password",
                  "secretKeyOfUser": "User",
                  "secretKeyOfPassword": "Password"
                }
              }
            ]
          },
          "hostPath": {
            "attributes": {
              "name": "storage-instance-a",
              "path": "/container/directory",
              "readOnly": true,
              "mountPath": "/local/directory",
              "mountPropagation": "None",
              "exclude": false
            },
            "instances": [
              {
                "name": "storage-instance-a",
                "path": "/container/directory",
                "readOnly": true,
                "mountPath": "/local/directory",
                "mountPropagation": "None",
                "exclude": false
              }
            ]
          },
          "nfs": {
            "attributes": {
              "name": "storage-instance-a",
              "path": "/container/nfs",
              "readOnly": true,
              "server": "my.nfs.com",
              "mountPath": "/local/nfs",
              "exclude": false
            },
            "instances": [
              {
                "name": "storage-instance-a",
                "path": "/container/nfs",
                "readOnly": true,
                "server": "my.nfs.com",
                "mountPath": "/local/nfs",
                "exclude": false
              }
            ]
          },
          "pvc": {
            "attributes": {
              "name": "storage-instance-a",
              "path": "/container/my-claim",
              "existingPvc": false,
              "claimName": "my-claim",
              "readOnly": false,
              "ephemeral": false,
              "claimInfo": {
                "size": "1G",
                "storageClass": "my-storage-class",
                "accessModes": {
                  "readWriteOnce": true,
                  "readOnlyMany": false,
                  "readWriteMany": false
                },
                "volumeMode": "Filesystem",
                "addedAttrValues": [
                  {
                    "key": "dnsname",
                    "value": "my.dns.com"
                  }
                ]
              },
              "dataSharing": false,
              "exclude": false
            },
            "instances": [
              {
                "name": "storage-instance-a",
                "path": "/container/my-claim",
                "existingPvc": false,
                "claimName": "my-claim",
                "readOnly": false,
                "ephemeral": false,
                "claimInfo": {
                  "size": "1G",
                  "storageClass": "my-storage-class",
                  "accessModes": {
                    "readWriteOnce": true,
                    "readOnlyMany": false,
                    "readWriteMany": false
                  },
                  "volumeMode": "Filesystem",
                  "addedAttrValues": [
                    {
                      "key": "dnsname",
                      "value": "my.dns.com"
                    }
                  ]
                },
                "dataSharing": false,
                "exclude": false
              }
            ]
          },
          "s3": {
            "attributes": {
              "name": "storage-instance-a",
              "bucket": "my-bucket",
              "path": "/container/my-bucket",
              "url": "https://s3.amazonaws.com",
              "accessKeySecret": "my-access-key-secret",
              "secretKeyOfAccessKeyId": "AccessKeyId",
              "secretKeyOfSecretKey": "SecretKey",
              "exclude": false
            },
            "instances": [
              {
                "name": "storage-instance-a",
                "bucket": "my-bucket",
                "path": "/container/my-bucket",
                "url": "https://s3.amazonaws.com",
                "accessKeySecret": "my-access-key-secret",
                "secretKeyOfAccessKeyId": "AccessKeyId",
                "secretKeyOfSecretKey": "SecretKey",
                "exclude": false
              }
            ]
          },
          "secretVolume": {
            "attributes": {
              "name": "storage-instance-a",
              "mountPath": "text",
              "defaultMode": "0644",
              "secret": "text",
              "exclude": false
            },
            "instances": [
              {
                "name": "storage-instance-a",
                "mountPath": "text",
                "defaultMode": "0644",
                "secret": "text",
                "exclude": false
              }
            ]
          }
        },
        "terminateAfterPreemption": false,
        "terminationGracePeriodSeconds": 20,
        "tolerations": {
          "attributes": {
            "name": "text",
            "operator": "Equal",
            "key": "text",
            "value": "text",
            "effect": "NoSchedule",
            "seconds": 1,
            "exclude": false
          },
          "instances": [
            {
              "name": "text",
              "operator": "Equal",
              "key": "text",
              "value": "text",
              "effect": "NoSchedule",
              "seconds": 1,
              "exclude": false
            }
          ]
        },
        "tty": true,
        "workingDir": "/home/myfolder",
        "cleanPodPolicy": "None",
        "distributedFramework": "MPI",
        "maxReplicas": 1,
        "minReplicas": 1,
        "mpiLauncherCreationPolicy": "AtStartup",
        "numWorkers": 1,
        "slotsPerWorker": 1,
        "sshAuthMountPath": "/root/.ssh"
      }
    },
    "rules": {
      "master": {
        "annotations": {
          "instances": {
            "sourceOfRule": {
              "scope": "project",
              "projectId": 3
            },
            "canAdd": true,
            "locked": [
              "HOME",
              "USER"
            ]
          }
        },
        "args": {
          "required": true,
          "canEdit": false,
          "blocked": false,
          "options": []
        },
        "autoDeletionTimeAfterCompletionSeconds": {
          "sourceOfRule": {
            "scope": "project",
            "projectId": 3
          },
          "required": true,
          "canEdit": true,
          "min": 1,
          "max": 1,
          "step": 1,
          "defaultFrom": {
            "field": "text",
            "factor": 1
          }
        },
        "backoffLimit": {
          "sourceOfRule": {
            "scope": "project",
            "projectId": 3
          },
          "required": true,
          "canEdit": true,
          "min": 1,
          "max": 1,
          "step": 1,
          "defaultFrom": {
            "field": "text",
            "factor": 1
          }
        },
        "category": {
          "required": true,
          "canEdit": false,
          "blocked": false,
          "options": []
        },
        "command": {
          "required": true,
          "canEdit": false,
          "blocked": false,
          "options": []
        },
        "compute": {
          "cpuCoreLimit": {
            "sourceOfRule": {
              "scope": "project",
              "projectId": 3
            },
            "required": true,
            "canEdit": true,
            "min": 1,
            "max": 1,
            "step": 1,
            "defaultFrom": {
              "field": "text",
              "factor": 1
            }
          },
          "cpuCoreRequest": {
            "sourceOfRule": {
              "scope": "project",
              "projectId": 3
            },
            "required": true,
            "canEdit": true,
            "min": 1,
            "max": 1,
            "step": 1,
            "defaultFrom": {
              "field": "text",
              "factor": 1
            }
          },
          "cpuMemoryLimit": {
            "sourceOfRule": {
              "scope": "project",
              "projectId": 3
            },
            "required": true,
            "canEdit": true,
            "min": "text",
            "max": "text",
            "defaultFrom": {
              "field": "text",
              "factor": 1
            }
          },
          "cpuMemoryRequest": {
            "sourceOfRule": {
              "scope": "project",
              "projectId": 3
            },
            "required": true,
            "canEdit": true,
            "min": "text",
            "max": "text",
            "defaultFrom": {
              "field": "text",
              "factor": 1
            }
          },
          "extendedResources": {
            "attributes": {
              "quantity": {
                "required": true,
                "canEdit": false,
                "blocked": false,
                "options": []
              }
            },
            "instances": {
              "sourceOfRule": {
                "scope": "project",
                "projectId": 3
              },
              "canAdd": true,
              "locked": [
                "HOME",
                "USER"
              ]
            }
          },
          "gpuDevicesRequest": {
            "sourceOfRule": {
              "scope": "project",
              "projectId": 3
            },
            "required": true,
            "canEdit": true,
            "min": 1,
            "max": 1,
            "step": 1,
            "defaultFrom": {
              "field": "text",
              "factor": 1
            }
          },
          "gpuMemoryLimit": {
            "sourceOfRule": {
              "scope": "project",
              "projectId": 3
            },
            "required": true,
            "canEdit": true,
            "min": "text",
            "max": "text",
            "defaultFrom": {
              "field": "text",
              "factor": 1
            }
          },
          "gpuMemoryRequest": {
            "sourceOfRule": {
              "scope": "project",
              "projectId": 3
            },
            "required": true,
            "canEdit": true,
            "min": "text",
            "max": "text",
            "defaultFrom": {
              "field": "text",
              "factor": 1
            }
          },
          "gpuPortionLimit": {
            "sourceOfRule": {
              "scope": "project",
              "projectId": 3
            },
            "required": true,
            "canEdit": true,
            "min": 1,
            "max": 1,
            "step": 1,
            "defaultFrom": {
              "field": "text",
              "factor": 1
            }
          },
          "gpuPortionRequest": {
            "sourceOfRule": {
              "scope": "project",
              "projectId": 3
            },
            "required": true,
            "canEdit": true,
            "min": 1,
            "max": 1,
            "step": 1,
            "defaultFrom": {
              "field": "text",
              "factor": 1
            }
          },
          "gpuRequestType": {
            "required": true,
            "canEdit": false,
            "blocked": false,
            "options": []
          },
          "largeShmRequest": {
            "sourceOfRule": {
              "scope": "project",
              "projectId": 3
            },
            "required": true,
            "canEdit": true
          }
        },
        "createHomeDir": {
          "sourceOfRule": {
            "scope": "project",
            "projectId": 3
          },
          "required": true,
          "canEdit": true
        },
        "environmentVariables": {
          "instances": {
            "sourceOfRule": {
              "scope": "project",
              "projectId": 3
            },
            "canAdd": true,
            "locked": [
              "HOME",
              "USER"
            ]
          }
        },
        "exposedUrls": {
          "attributes": {
            "container": {
              "sourceOfRule": {
                "scope": "project",
                "projectId": 3
              },
              "required": true,
              "canEdit": true,
              "min": 1,
              "max": 1,
              "step": 1,
              "defaultFrom": {
                "field": "text",
                "factor": 1
              }
            },
            "customUrl": {
              "sourceOfRule": {
                "scope": "project",
                "projectId": 3
              },
              "required": true,
              "canEdit": true
            },
            "url": {
              "required": true,
              "canEdit": false,
              "blocked": false,
              "options": []
            },
            "authorizedUsers": {
              "sourceOfRule": {
                "scope": "project",
                "projectId": 3
              },
              "required": true,
              "options": [],
              "canEdit": true
            },
            "authorizedGroups": {
              "sourceOfRule": {
                "scope": "project",
                "projectId": 3
              },
              "required": true,
              "options": [],
              "canEdit": true
            },
            "toolType": {
              "required": true,
              "canEdit": false,
              "blocked": false,
              "options": []
            },
            "toolName": {
              "required": true,
              "canEdit": false,
              "blocked": false,
              "options": []
            }
          },
          "instances": {
            "sourceOfRule": {
              "scope": "project",
              "projectId": 3
            },
            "canAdd": true,
            "locked": [
              "HOME",
              "USER"
            ]
          }
        },
        "image": {
          "required": true,
          "canEdit": false,
          "blocked": false,
          "options": []
        },
        "imagePullPolicy": {
          "required": true,
          "canEdit": false,
          "blocked": false,
          "options": []
        },
        "imagePullSecrets": {
          "attributes": {
            "name": {
              "required": true,
              "canEdit": false,
              "blocked": false,
              "options": []
            },
            "userCredentials": {
              "sourceOfRule": {
                "scope": "project",
                "projectId": 3
              },
              "required": true,
              "canEdit": true
            }
          },
          "instances": {
            "sourceOfRule": {
              "scope": "project",
              "projectId": 3
            },
            "canAdd": true,
            "locked": [
              "HOME",
              "USER"
            ]
          }
        },
        "labels": {
          "instances": {
            "sourceOfRule": {
              "scope": "project",
              "projectId": 3
            },
            "canAdd": true,
            "locked": [
              "HOME",
              "USER"
            ]
          }
        },
        "nodeAffinityRequired": {
          "sourceOfRule": {
            "scope": "project",
            "projectId": 3
          },
          "required": true,
          "canEdit": true
        },
        "nodePools": {
          "sourceOfRule": {
            "scope": "project",
            "projectId": 3
          },
          "required": true,
          "options": [],
          "canEdit": true
        },
        "nodeType": {
          "required": true,
          "canEdit": false,
          "blocked": false,
          "options": []
        },
        "podAffinity": {
          "type": {
            "required": true,
            "canEdit": false,
            "blocked": false,
            "options": []
          },
          "key": {
            "required": true,
            "canEdit": false,
            "blocked": false,
            "options": []
          }
        },
        "ports": {
          "attributes": {
            "container": {
              "sourceOfRule": {
                "scope": "project",
                "projectId": 3
              },
              "required": true,
              "canEdit": true,
              "min": 1,
              "max": 1,
              "step": 1,
              "defaultFrom": {
                "field": "text",
                "factor": 1
              }
            },
            "serviceType": {
              "required": true,
              "canEdit": false,
              "blocked": false,
              "options": []
            },
            "customExternalPort": {
              "sourceOfRule": {
                "scope": "project",
                "projectId": 3
              },
              "required": true,
              "canEdit": true
            },
            "external": {
              "sourceOfRule": {
                "scope": "project",
                "projectId": 3
              },
              "required": true,
              "canEdit": true,
              "min": 1,
              "max": 1,
              "step": 1,
              "defaultFrom": {
                "field": "text",
                "factor": 1
              }
            },
            "toolType": {
              "required": true,
              "canEdit": false,
              "blocked": false,
              "options": []
            },
            "toolName": {
              "required": true,
              "canEdit": false,
              "blocked": false,
              "options": []
            }
          },
          "instances": {
            "sourceOfRule": {
              "scope": "project",
              "projectId": 3
            },
            "canAdd": true,
            "locked": [
              "HOME",
              "USER"
            ]
          }
        },
        "preemptibility": {
          "required": true,
          "canEdit": false,
          "blocked": false,
          "options": []
        },
        "priorityClass": {
          "required": true,
          "canEdit": false,
          "blocked": false,
          "options": []
        },
        "probes": {
          "readiness": {
            "initialDelaySeconds": {
              "sourceOfRule": {
                "scope": "project",
                "projectId": 3
              },
              "required": true,
              "canEdit": true,
              "min": 1,
              "max": 1,
              "step": 1,
              "defaultFrom": {
                "field": "text",
                "factor": 1
              }
            },
            "periodSeconds": {
              "sourceOfRule": {
                "scope": "project",
                "projectId": 3
              },
              "required": true,
              "canEdit": true,
              "min": 1,
              "max": 1,
              "step": 1,
              "defaultFrom": {
                "field": "text",
                "factor": 1
              }
            },
            "timeoutSeconds": {
              "sourceOfRule": {
                "scope": "project",
                "projectId": 3
              },
              "required": true,
              "canEdit": true,
              "min": 1,
              "max": 1,
              "step": 1,
              "defaultFrom": {
                "field": "text",
                "factor": 1
              }
            },
            "successThreshold": {
              "sourceOfRule": {
                "scope": "project",
                "projectId": 3
              },
              "required": true,
              "canEdit": true,
              "min": 1,
              "max": 1,
              "step": 1,
              "defaultFrom": {
                "field": "text",
                "factor": 1
              }
            },
            "failureThreshold": {
              "sourceOfRule": {
                "scope": "project",
                "projectId": 3
              },
              "required": true,
              "canEdit": true,
              "min": 1,
              "max": 1,
              "step": 1,
              "defaultFrom": {
                "field": "text",
                "factor": 1
              }
            },
            "handler": {
              "httpGet": {
                "path": {
                  "required": true,
                  "canEdit": false,
                  "blocked": false,
                  "options": []
                },
                "port": {
                  "sourceOfRule": {
                    "scope": "project",
                    "projectId": 3
                  },
                  "required": true,
                  "canEdit": true,
                  "min": 1,
                  "max": 1,
                  "step": 1,
                  "defaultFrom": {
                    "field": "text",
                    "factor": 1
                  }
                },
                "host": {
                  "required": true,
                  "canEdit": false,
                  "blocked": false,
                  "options": []
                },
                "scheme": {
                  "required": true,
                  "canEdit": false,
                  "blocked": false,
                  "options": []
                }
              }
            }
          }
        },
        "relatedUrls": {
          "attributes": {
            "url": {
              "required": true,
              "canEdit": false,
              "blocked": false,
              "options": []
            },
            "type": {
              "required": true,
              "canEdit": false,
              "blocked": false,
              "options": []
            },
            "name": {
              "required": true,
              "canEdit": false,
              "blocked": false,
              "options": []
            }
          },
          "instances": {
            "sourceOfRule": {
              "scope": "project",
              "projectId": 3
            },
            "canAdd": true,
            "locked": [
              "HOME",
              "USER"
            ]
          }
        },
        "restartPolicy": {
          "required": true,
          "canEdit": false,
          "blocked": false,
          "options": []
        },
        "security": {
          "allowPrivilegeEscalation": {
            "sourceOfRule": {
              "scope": "project",
              "projectId": 3
            },
            "required": true,
            "canEdit": true
          },
          "capabilities": {
            "sourceOfRule": {
              "scope": "project",
              "projectId": 3
            },
            "required": true,
            "options": [],
            "canEdit": true
          },
          "hostIpc": {
            "sourceOfRule": {
              "scope": "project",
              "projectId": 3
            },
            "required": true,
            "canEdit": true
          },
          "hostNetwork": {
            "sourceOfRule": {
              "scope": "project",
              "projectId": 3
            },
            "required": true,
            "canEdit": true
          },
          "readOnlyRootFilesystem": {
            "sourceOfRule": {
              "scope": "project",
              "projectId": 3
            },
            "required": true,
            "canEdit": true
          },
          "runAsGid": {
            "sourceOfRule": {
              "scope": "project",
              "projectId": 3
            },
            "canEdit": true,
            "min": 1,
            "max": 1,
            "step": 1,
            "defaultFrom": {
              "field": "text",
              "factor": 1
            }
          },
          "runAsNonRoot": {
            "sourceOfRule": {
              "scope": "project",
              "projectId": 3
            },
            "required": true,
            "canEdit": true
          },
          "runAsUid": {
            "sourceOfRule": {
              "scope": "project",
              "projectId": 3
            },
            "canEdit": true,
            "min": 1,
            "max": 1,
            "step": 1,
            "defaultFrom": {
              "field": "text",
              "factor": 1
            }
          },
          "seccompProfileType": {
            "required": true,
            "canEdit": false,
            "blocked": false,
            "options": []
          },
          "supplementalGroups": {
            "required": true,
            "canEdit": false,
            "blocked": false,
            "options": []
          },
          "uidGidSource": {
            "required": true,
            "canEdit": false,
            "blocked": false,
            "options": []
          }
        },
        "stdin": {
          "sourceOfRule": {
            "scope": "project",
            "projectId": 3
          },
          "required": true,
          "canEdit": true
        },
        "storage": {
          "configMapVolume": {
            "attributes": {
              "configMap": {
                "required": true,
                "canEdit": false,
                "blocked": false,
                "options": []
              },
              "mountPath": {
                "required": true,
                "canEdit": false,
                "blocked": false,
                "options": []
              },
              "subPath": {
                "required": true,
                "canEdit": false,
                "blocked": false,
                "options": []
              },
              "defaultMode": {
                "required": true,
                "canEdit": false,
                "blocked": false,
                "options": []
              }
            },
            "instances": {
              "sourceOfRule": {
                "scope": "project",
                "projectId": 3
              },
              "canAdd": true,
              "locked": [
                "HOME",
                "USER"
              ]
            }
          },
          "dataVolume": {
            "attributes": {
              "id": {
                "required": true,
                "canEdit": false,
                "blocked": false,
                "options": []
              },
              "mountPath": {
                "required": true,
                "canEdit": false,
                "blocked": false,
                "options": []
              }
            },
            "instances": {
              "sourceOfRule": {
                "scope": "project",
                "projectId": 3
              },
              "canAdd": true,
              "locked": [
                "HOME",
                "USER"
              ]
            }
          },
          "emptyDirVolume": {
            "attributes": {
              "path": {
                "required": true,
                "canEdit": false,
                "blocked": false,
                "options": []
              },
              "medium": {
                "required": true,
                "canEdit": false,
                "blocked": false,
                "options": []
              },
              "sizeLimit": {
                "required": true,
                "canEdit": false,
                "blocked": false,
                "options": []
              }
            },
            "instances": {
              "sourceOfRule": {
                "scope": "project",
                "projectId": 3
              },
              "canAdd": true,
              "locked": [
                "HOME",
                "USER"
              ]
            }
          },
          "git": {
            "attributes": {
              "repository": {
                "required": true,
                "canEdit": false,
                "blocked": false,
                "options": []
              },
              "branch": {
                "required": true,
                "canEdit": false,
                "blocked": false,
                "options": []
              },
              "revision": {
                "required": true,
                "canEdit": false,
                "blocked": false,
                "options": []
              },
              "path": {
                "required": true,
                "canEdit": false,
                "blocked": false,
                "options": []
              }
            },
            "instances": {
              "sourceOfRule": {
                "scope": "project",
                "projectId": 3
              },
              "canAdd": true,
              "locked": [
                "HOME",
                "USER"
              ]
            }
          },
          "hostPath": {
            "attributes": {
              "path": {
                "required": true,
                "canEdit": false,
                "blocked": false,
                "options": []
              },
              "readOnly": {
                "sourceOfRule": {
                  "scope": "project",
                  "projectId": 3
                },
                "required": true,
                "canEdit": true
              },
              "mountPath": {
                "required": true,
                "canEdit": false,
                "blocked": false,
                "options": []
              },
              "mountPropagation": {
                "required": true,
                "canEdit": false,
                "blocked": false,
                "options": []
              }
            },
            "instances": {
              "sourceOfRule": {
                "scope": "project",
                "projectId": 3
              },
              "canAdd": true,
              "locked": [
                "HOME",
                "USER"
              ]
            }
          },
          "nfs": {
            "attributes": {
              "path": {
                "required": true,
                "canEdit": false,
                "blocked": false,
                "options": []
              },
              "readOnly": {
                "sourceOfRule": {
                  "scope": "project",
                  "projectId": 3
                },
                "required": true,
                "canEdit": true
              },
              "server": {
                "required": true,
                "canEdit": false,
                "blocked": false,
                "options": []
              },
              "mountPath": {
                "required": true,
                "canEdit": false,
                "blocked": false,
                "options": []
              }
            },
            "instances": {
              "sourceOfRule": {
                "scope": "project",
                "projectId": 3
              },
              "canAdd": true,
              "locked": [
                "HOME",
                "USER"
              ]
            }
          },
          "pvc": {
            "attributes": {
              "claimName": {
                "required": true,
                "canEdit": false,
                "blocked": false,
                "options": []
              },
              "path": {
                "required": true,
                "canEdit": false,
                "blocked": false,
                "options": []
              },
              "readOnly": {
                "sourceOfRule": {
                  "scope": "project",
                  "projectId": 3
                },
                "required": true,
                "canEdit": true
              },
              "claimInfo": {
                "size": {
                  "required": true,
                  "canEdit": false,
                  "blocked": false,
                  "options": []
                },
                "storageClass": {
                  "required": true,
                  "canEdit": false,
                  "blocked": false,
                  "options": []
                },
                "accessModes": {
                  "readWriteOnce": {
                    "sourceOfRule": {
                      "scope": "project",
                      "projectId": 3
                    },
                    "required": true,
                    "canEdit": true
                  },
                  "readOnlyMany": {
                    "sourceOfRule": {
                      "scope": "project",
                      "projectId": 3
                    },
                    "required": true,
                    "canEdit": true
                  },
                  "readWriteMany": {
                    "sourceOfRule": {
                      "scope": "project",
                      "projectId": 3
                    },
                    "required": true,
                    "canEdit": true
                  }
                }
              }
            },
            "instances": {
              "sourceOfRule": {
                "scope": "project",
                "projectId": 3
              },
              "canAdd": true,
              "locked": [
                "HOME",
                "USER"
              ]
            }
          },
          "s3": {
            "attributes": {
              "bucket": {
                "required": true,
                "canEdit": false,
                "blocked": false,
                "options": []
              },
              "path": {
                "required": true,
                "canEdit": false,
                "blocked": false,
                "options": []
              },
              "url": {
                "required": true,
                "canEdit": false,
                "blocked": false,
                "options": []
              }
            },
            "instances": {
              "sourceOfRule": {
                "scope": "project",
                "projectId": 3
              },
              "canAdd": true,
              "locked": [
                "HOME",
                "USER"
              ]
            }
          },
          "secretVolume": {
            "attributes": {
              "secret": {
                "required": true,
                "canEdit": false,
                "blocked": false,
                "options": []
              },
              "mountPath": {
                "required": true,
                "canEdit": false,
                "blocked": false,
                "options": []
              },
              "defaultMode": {
                "required": true,
                "canEdit": false,
                "blocked": false,
                "options": []
              }
            },
            "instances": {
              "sourceOfRule": {
                "scope": "project",
                "projectId": 3
              },
              "canAdd": true,
              "locked": [
                "HOME",
                "USER"
              ]
            }
          }
        },
        "terminateAfterPreemption": {
          "sourceOfRule": {
            "scope": "project",
            "projectId": 3
          },
          "required": true,
          "canEdit": true
        },
        "terminationGracePeriodSeconds": {
          "sourceOfRule": {
            "scope": "project",
            "projectId": 3
          },
          "required": true,
          "canEdit": true,
          "min": 1,
          "max": 1,
          "step": 1,
          "defaultFrom": {
            "field": "text",
            "factor": 1
          }
        },
        "tolerations": {
          "attributes": {
            "operator": {
              "required": true,
              "canEdit": false,
              "blocked": false,
              "options": []
            },
            "key": {
              "required": true,
              "canEdit": false,
              "blocked": false,
              "options": []
            },
            "value": {
              "required": true,
              "canEdit": false,
              "blocked": false,
              "options": []
            },
            "effect": {
              "required": true,
              "canEdit": false,
              "blocked": false,
              "options": []
            },
            "seconds": {
              "sourceOfRule": {
                "scope": "project",
                "projectId": 3
              },
              "required": true,
              "canEdit": true,
              "min": 1,
              "max": 1,
              "step": 1,
              "defaultFrom": {
                "field": "text",
                "factor": 1
              }
            },
            "exclude": {
              "sourceOfRule": {
                "scope": "project",
                "projectId": 3
              },
              "required": true,
              "canEdit": true
            }
          },
          "instances": {
            "sourceOfRule": {
              "scope": "project",
              "projectId": 3
            },
            "canAdd": true,
            "locked": [
              "HOME",
              "USER"
            ]
          }
        },
        "tty": {
          "sourceOfRule": {
            "scope": "project",
            "projectId": 3
          },
          "required": true,
          "canEdit": true
        },
        "workingDir": {
          "required": true,
          "canEdit": false,
          "blocked": false,
          "options": []
        }
      },
      "worker": {
        "annotations": {
          "instances": {
            "sourceOfRule": {
              "scope": "project",
              "projectId": 3
            },
            "canAdd": true,
            "locked": [
              "HOME",
              "USER"
            ]
          }
        },
        "args": {
          "required": true,
          "canEdit": false,
          "blocked": false,
          "options": []
        },
        "autoDeletionTimeAfterCompletionSeconds": {
          "sourceOfRule": {
            "scope": "project",
            "projectId": 3
          },
          "required": true,
          "canEdit": true,
          "min": 1,
          "max": 1,
          "step": 1,
          "defaultFrom": {
            "field": "text",
            "factor": 1
          }
        },
        "backoffLimit": {
          "sourceOfRule": {
            "scope": "project",
            "projectId": 3
          },
          "required": true,
          "canEdit": true,
          "min": 1,
          "max": 1,
          "step": 1,
          "defaultFrom": {
            "field": "text",
            "factor": 1
          }
        },
        "category": {
          "required": true,
          "canEdit": false,
          "blocked": false,
          "options": []
        },
        "command": {
          "required": true,
          "canEdit": false,
          "blocked": false,
          "options": []
        },
        "compute": {
          "cpuCoreLimit": {
            "sourceOfRule": {
              "scope": "project",
              "projectId": 3
            },
            "required": true,
            "canEdit": true,
            "min": 1,
            "max": 1,
            "step": 1,
            "defaultFrom": {
              "field": "text",
              "factor": 1
            }
          },
          "cpuCoreRequest": {
            "sourceOfRule": {
              "scope": "project",
              "projectId": 3
            },
            "required": true,
            "canEdit": true,
            "min": 1,
            "max": 1,
            "step": 1,
            "defaultFrom": {
              "field": "text",
              "factor": 1
            }
          },
          "cpuMemoryLimit": {
            "sourceOfRule": {
              "scope": "project",
              "projectId": 3
            },
            "required": true,
            "canEdit": true,
            "min": "text",
            "max": "text",
            "defaultFrom": {
              "field": "text",
              "factor": 1
            }
          },
          "cpuMemoryRequest": {
            "sourceOfRule": {
              "scope": "project",
              "projectId": 3
            },
            "required": true,
            "canEdit": true,
            "min": "text",
            "max": "text",
            "defaultFrom": {
              "field": "text",
              "factor": 1
            }
          },
          "extendedResources": {
            "attributes": {
              "quantity": {
                "required": true,
                "canEdit": false,
                "blocked": false,
                "options": []
              }
            },
            "instances": {
              "sourceOfRule": {
                "scope": "project",
                "projectId": 3
              },
              "canAdd": true,
              "locked": [
                "HOME",
                "USER"
              ]
            }
          },
          "gpuDevicesRequest": {
            "sourceOfRule": {
              "scope": "project",
              "projectId": 3
            },
            "required": true,
            "canEdit": true,
            "min": 1,
            "max": 1,
            "step": 1,
            "defaultFrom": {
              "field": "text",
              "factor": 1
            }
          },
          "gpuMemoryLimit": {
            "sourceOfRule": {
              "scope": "project",
              "projectId": 3
            },
            "required": true,
            "canEdit": true,
            "min": "text",
            "max": "text",
            "defaultFrom": {
              "field": "text",
              "factor": 1
            }
          },
          "gpuMemoryRequest": {
            "sourceOfRule": {
              "scope": "project",
              "projectId": 3
            },
            "required": true,
            "canEdit": true,
            "min": "text",
            "max": "text",
            "defaultFrom": {
              "field": "text",
              "factor": 1
            }
          },
          "gpuPortionLimit": {
            "sourceOfRule": {
              "scope": "project",
              "projectId": 3
            },
            "required": true,
            "canEdit": true,
            "min": 1,
            "max": 1,
            "step": 1,
            "defaultFrom": {
              "field": "text",
              "factor": 1
            }
          },
          "gpuPortionRequest": {
            "sourceOfRule": {
              "scope": "project",
              "projectId": 3
            },
            "required": true,
            "canEdit": true,
            "min": 1,
            "max": 1,
            "step": 1,
            "defaultFrom": {
              "field": "text",
              "factor": 1
            }
          },
          "gpuRequestType": {
            "required": true,
            "canEdit": false,
            "blocked": false,
            "options": []
          },
          "largeShmRequest": {
            "sourceOfRule": {
              "scope": "project",
              "projectId": 3
            },
            "required": true,
            "canEdit": true
          }
        },
        "createHomeDir": {
          "sourceOfRule": {
            "scope": "project",
            "projectId": 3
          },
          "required": true,
          "canEdit": true
        },
        "environmentVariables": {
          "instances": {
            "sourceOfRule": {
              "scope": "project",
              "projectId": 3
            },
            "canAdd": true,
            "locked": [
              "HOME",
              "USER"
            ]
          }
        },
        "exposedUrls": {
          "attributes": {
            "container": {
              "sourceOfRule": {
                "scope": "project",
                "projectId": 3
              },
              "required": true,
              "canEdit": true,
              "min": 1,
              "max": 1,
              "step": 1,
              "defaultFrom": {
                "field": "text",
                "factor": 1
              }
            },
            "customUrl": {
              "sourceOfRule": {
                "scope": "project",
                "projectId": 3
              },
              "required": true,
              "canEdit": true
            },
            "url": {
              "required": true,
              "canEdit": false,
              "blocked": false,
              "options": []
            },
            "authorizedUsers": {
              "sourceOfRule": {
                "scope": "project",
                "projectId": 3
              },
              "required": true,
              "options": [],
              "canEdit": true
            },
            "authorizedGroups": {
              "sourceOfRule": {
                "scope": "project",
                "projectId": 3
              },
              "required": true,
              "options": [],
              "canEdit": true
            },
            "toolType": {
              "required": true,
              "canEdit": false,
              "blocked": false,
              "options": []
            },
            "toolName": {
              "required": true,
              "canEdit": false,
              "blocked": false,
              "options": []
            }
          },
          "instances": {
            "sourceOfRule": {
              "scope": "project",
              "projectId": 3
            },
            "canAdd": true,
            "locked": [
              "HOME",
              "USER"
            ]
          }
        },
        "image": {
          "required": true,
          "canEdit": false,
          "blocked": false,
          "options": []
        },
        "imagePullPolicy": {
          "required": true,
          "canEdit": false,
          "blocked": false,
          "options": []
        },
        "imagePullSecrets": {
          "attributes": {
            "name": {
              "required": true,
              "canEdit": false,
              "blocked": false,
              "options": []
            },
            "userCredentials": {
              "sourceOfRule": {
                "scope": "project",
                "projectId": 3
              },
              "required": true,
              "canEdit": true
            }
          },
          "instances": {
            "sourceOfRule": {
              "scope": "project",
              "projectId": 3
            },
            "canAdd": true,
            "locked": [
              "HOME",
              "USER"
            ]
          }
        },
        "labels": {
          "instances": {
            "sourceOfRule": {
              "scope": "project",
              "projectId": 3
            },
            "canAdd": true,
            "locked": [
              "HOME",
              "USER"
            ]
          }
        },
        "nodeAffinityRequired": {
          "sourceOfRule": {
            "scope": "project",
            "projectId": 3
          },
          "required": true,
          "canEdit": true
        },
        "nodePools": {
          "sourceOfRule": {
            "scope": "project",
            "projectId": 3
          },
          "required": true,
          "options": [],
          "canEdit": true
        },
        "nodeType": {
          "required": true,
          "canEdit": false,
          "blocked": false,
          "options": []
        },
        "podAffinity": {
          "type": {
            "required": true,
            "canEdit": false,
            "blocked": false,
            "options": []
          },
          "key": {
            "required": true,
            "canEdit": false,
            "blocked": false,
            "options": []
          }
        },
        "ports": {
          "attributes": {
            "container": {
              "sourceOfRule": {
                "scope": "project",
                "projectId": 3
              },
              "required": true,
              "canEdit": true,
              "min": 1,
              "max": 1,
              "step": 1,
              "defaultFrom": {
                "field": "text",
                "factor": 1
              }
            },
            "serviceType": {
              "required": true,
              "canEdit": false,
              "blocked": false,
              "options": []
            },
            "customExternalPort": {
              "sourceOfRule": {
                "scope": "project",
                "projectId": 3
              },
              "required": true,
              "canEdit": true
            },
            "external": {
              "sourceOfRule": {
                "scope": "project",
                "projectId": 3
              },
              "required": true,
              "canEdit": true,
              "min": 1,
              "max": 1,
              "step": 1,
              "defaultFrom": {
                "field": "text",
                "factor": 1
              }
            },
            "toolType": {
              "required": true,
              "canEdit": false,
              "blocked": false,
              "options": []
            },
            "toolName": {
              "required": true,
              "canEdit": false,
              "blocked": false,
              "options": []
            }
          },
          "instances": {
            "sourceOfRule": {
              "scope": "project",
              "projectId": 3
            },
            "canAdd": true,
            "locked": [
              "HOME",
              "USER"
            ]
          }
        },
        "preemptibility": {
          "required": true,
          "canEdit": false,
          "blocked": false,
          "options": []
        },
        "priorityClass": {
          "required": true,
          "canEdit": false,
          "blocked": false,
          "options": []
        },
        "probes": {
          "readiness": {
            "initialDelaySeconds": {
              "sourceOfRule": {
                "scope": "project",
                "projectId": 3
              },
              "required": true,
              "canEdit": true,
              "min": 1,
              "max": 1,
              "step": 1,
              "defaultFrom": {
                "field": "text",
                "factor": 1
              }
            },
            "periodSeconds": {
              "sourceOfRule": {
                "scope": "project",
                "projectId": 3
              },
              "required": true,
              "canEdit": true,
              "min": 1,
              "max": 1,
              "step": 1,
              "defaultFrom": {
                "field": "text",
                "factor": 1
              }
            },
            "timeoutSeconds": {
              "sourceOfRule": {
                "scope": "project",
                "projectId": 3
              },
              "required": true,
              "canEdit": true,
              "min": 1,
              "max": 1,
              "step": 1,
              "defaultFrom": {
                "field": "text",
                "factor": 1
              }
            },
            "successThreshold": {
              "sourceOfRule": {
                "scope": "project",
                "projectId": 3
              },
              "required": true,
              "canEdit": true,
              "min": 1,
              "max": 1,
              "step": 1,
              "defaultFrom": {
                "field": "text",
                "factor": 1
              }
            },
            "failureThreshold": {
              "sourceOfRule": {
                "scope": "project",
                "projectId": 3
              },
              "required": true,
              "canEdit": true,
              "min": 1,
              "max": 1,
              "step": 1,
              "defaultFrom": {
                "field": "text",
                "factor": 1
              }
            },
            "handler": {
              "httpGet": {
                "path": {
                  "required": true,
                  "canEdit": false,
                  "blocked": false,
                  "options": []
                },
                "port": {
                  "sourceOfRule": {
                    "scope": "project",
                    "projectId": 3
                  },
                  "required": true,
                  "canEdit": true,
                  "min": 1,
                  "max": 1,
                  "step": 1,
                  "defaultFrom": {
                    "field": "text",
                    "factor": 1
                  }
                },
                "host": {
                  "required": true,
                  "canEdit": false,
                  "blocked": false,
                  "options": []
                },
                "scheme": {
                  "required": true,
                  "canEdit": false,
                  "blocked": false,
                  "options": []
                }
              }
            }
          }
        },
        "relatedUrls": {
          "attributes": {
            "url": {
              "required": true,
              "canEdit": false,
              "blocked": false,
              "options": []
            },
            "type": {
              "required": true,
              "canEdit": false,
              "blocked": false,
              "options": []
            },
            "name": {
              "required": true,
              "canEdit": false,
              "blocked": false,
              "options": []
            }
          },
          "instances": {
            "sourceOfRule": {
              "scope": "project",
              "projectId": 3
            },
            "canAdd": true,
            "locked": [
              "HOME",
              "USER"
            ]
          }
        },
        "restartPolicy": {
          "required": true,
          "canEdit": false,
          "blocked": false,
          "options": []
        },
        "security": {
          "allowPrivilegeEscalation": {
            "sourceOfRule": {
              "scope": "project",
              "projectId": 3
            },
            "required": true,
            "canEdit": true
          },
          "capabilities": {
            "sourceOfRule": {
              "scope": "project",
              "projectId": 3
            },
            "required": true,
            "options": [],
            "canEdit": true
          },
          "hostIpc": {
            "sourceOfRule": {
              "scope": "project",
              "projectId": 3
            },
            "required": true,
            "canEdit": true
          },
          "hostNetwork": {
            "sourceOfRule": {
              "scope": "project",
              "projectId": 3
            },
            "required": true,
            "canEdit": true
          },
          "readOnlyRootFilesystem": {
            "sourceOfRule": {
              "scope": "project",
              "projectId": 3
            },
            "required": true,
            "canEdit": true
          },
          "runAsGid": {
            "sourceOfRule": {
              "scope": "project",
              "projectId": 3
            },
            "canEdit": true,
            "min": 1,
            "max": 1,
            "step": 1,
            "defaultFrom": {
              "field": "text",
              "factor": 1
            }
          },
          "runAsNonRoot": {
            "sourceOfRule": {
              "scope": "project",
              "projectId": 3
            },
            "required": true,
            "canEdit": true
          },
          "runAsUid": {
            "sourceOfRule": {
              "scope": "project",
              "projectId": 3
            },
            "canEdit": true,
            "min": 1,
            "max": 1,
            "step": 1,
            "defaultFrom": {
              "field": "text",
              "factor": 1
            }
          },
          "seccompProfileType": {
            "required": true,
            "canEdit": false,
            "blocked": false,
            "options": []
          },
          "supplementalGroups": {
            "required": true,
            "canEdit": false,
            "blocked": false,
            "options": []
          },
          "uidGidSource": {
            "required": true,
            "canEdit": false,
            "blocked": false,
            "options": []
          }
        },
        "stdin": {
          "sourceOfRule": {
            "scope": "project",
            "projectId": 3
          },
          "required": true,
          "canEdit": true
        },
        "storage": {
          "configMapVolume": {
            "attributes": {
              "configMap": {
                "required": true,
                "canEdit": false,
                "blocked": false,
                "options": []
              },
              "mountPath": {
                "required": true,
                "canEdit": false,
                "blocked": false,
                "options": []
              },
              "subPath": {
                "required": true,
                "canEdit": false,
                "blocked": false,
                "options": []
              },
              "defaultMode": {
                "required": true,
                "canEdit": false,
                "blocked": false,
                "options": []
              }
            },
            "instances": {
              "sourceOfRule": {
                "scope": "project",
                "projectId": 3
              },
              "canAdd": true,
              "locked": [
                "HOME",
                "USER"
              ]
            }
          },
          "dataVolume": {
            "attributes": {
              "id": {
                "required": true,
                "canEdit": false,
                "blocked": false,
                "options": []
              },
              "mountPath": {
                "required": true,
                "canEdit": false,
                "blocked": false,
                "options": []
              }
            },
            "instances": {
              "sourceOfRule": {
                "scope": "project",
                "projectId": 3
              },
              "canAdd": true,
              "locked": [
                "HOME",
                "USER"
              ]
            }
          },
          "emptyDirVolume": {
            "attributes": {
              "path": {
                "required": true,
                "canEdit": false,
                "blocked": false,
                "options": []
              },
              "medium": {
                "required": true,
                "canEdit": false,
                "blocked": false,
                "options": []
              },
              "sizeLimit": {
                "required": true,
                "canEdit": false,
                "blocked": false,
                "options": []
              }
            },
            "instances": {
              "sourceOfRule": {
                "scope": "project",
                "projectId": 3
              },
              "canAdd": true,
              "locked": [
                "HOME",
                "USER"
              ]
            }
          },
          "git": {
            "attributes": {
              "repository": {
                "required": true,
                "canEdit": false,
                "blocked": false,
                "options": []
              },
              "branch": {
                "required": true,
                "canEdit": false,
                "blocked": false,
                "options": []
              },
              "revision": {
                "required": true,
                "canEdit": false,
                "blocked": false,
                "options": []
              },
              "path": {
                "required": true,
                "canEdit": false,
                "blocked": false,
                "options": []
              }
            },
            "instances": {
              "sourceOfRule": {
                "scope": "project",
                "projectId": 3
              },
              "canAdd": true,
              "locked": [
                "HOME",
                "USER"
              ]
            }
          },
          "hostPath": {
            "attributes": {
              "path": {
                "required": true,
                "canEdit": false,
                "blocked": false,
                "options": []
              },
              "readOnly": {
                "sourceOfRule": {
                  "scope": "project",
                  "projectId": 3
                },
                "required": true,
                "canEdit": true
              },
              "mountPath": {
                "required": true,
                "canEdit": false,
                "blocked": false,
                "options": []
              },
              "mountPropagation": {
                "required": true,
                "canEdit": false,
                "blocked": false,
                "options": []
              }
            },
            "instances": {
              "sourceOfRule": {
                "scope": "project",
                "projectId": 3
              },
              "canAdd": true,
              "locked": [
                "HOME",
                "USER"
              ]
            }
          },
          "nfs": {
            "attributes": {
              "path": {
                "required": true,
                "canEdit": false,
                "blocked": false,
                "options": []
              },
              "readOnly": {
                "sourceOfRule": {
                  "scope": "project",
                  "projectId": 3
                },
                "required": true,
                "canEdit": true
              },
              "server": {
                "required": true,
                "canEdit": false,
                "blocked": false,
                "options": []
              },
              "mountPath": {
                "required": true,
                "canEdit": false,
                "blocked": false,
                "options": []
              }
            },
            "instances": {
              "sourceOfRule": {
                "scope": "project",
                "projectId": 3
              },
              "canAdd": true,
              "locked": [
                "HOME",
                "USER"
              ]
            }
          },
          "pvc": {
            "attributes": {
              "claimName": {
                "required": true,
                "canEdit": false,
                "blocked": false,
                "options": []
              },
              "path": {
                "required": true,
                "canEdit": false,
                "blocked": false,
                "options": []
              },
              "readOnly": {
                "sourceOfRule": {
                  "scope": "project",
                  "projectId": 3
                },
                "required": true,
                "canEdit": true
              },
              "claimInfo": {
                "size": {
                  "required": true,
                  "canEdit": false,
                  "blocked": false,
                  "options": []
                },
                "storageClass": {
                  "required": true,
                  "canEdit": false,
                  "blocked": false,
                  "options": []
                },
                "accessModes": {
                  "readWriteOnce": {
                    "sourceOfRule": {
                      "scope": "project",
                      "projectId": 3
                    },
                    "required": true,
                    "canEdit": true
                  },
                  "readOnlyMany": {
                    "sourceOfRule": {
                      "scope": "project",
                      "projectId": 3
                    },
                    "required": true,
                    "canEdit": true
                  },
                  "readWriteMany": {
                    "sourceOfRule": {
                      "scope": "project",
                      "projectId": 3
                    },
                    "required": true,
                    "canEdit": true
                  }
                }
              }
            },
            "instances": {
              "sourceOfRule": {
                "scope": "project",
                "projectId": 3
              },
              "canAdd": true,
              "locked": [
                "HOME",
                "USER"
              ]
            }
          },
          "s3": {
            "attributes": {
              "bucket": {
                "required": true,
                "canEdit": false,
                "blocked": false,
                "options": []
              },
              "path": {
                "required": true,
                "canEdit": false,
                "blocked": false,
                "options": []
              },
              "url": {
                "required": true,
                "canEdit": false,
                "blocked": false,
                "options": []
              }
            },
            "instances": {
              "sourceOfRule": {
                "scope": "project",
                "projectId": 3
              },
              "canAdd": true,
              "locked": [
                "HOME",
                "USER"
              ]
            }
          },
          "secretVolume": {
            "attributes": {
              "secret": {
                "required": true,
                "canEdit": false,
                "blocked": false,
                "options": []
              },
              "mountPath": {
                "required": true,
                "canEdit": false,
                "blocked": false,
                "options": []
              },
              "defaultMode": {
                "required": true,
                "canEdit": false,
                "blocked": false,
                "options": []
              }
            },
            "instances": {
              "sourceOfRule": {
                "scope": "project",
                "projectId": 3
              },
              "canAdd": true,
              "locked": [
                "HOME",
                "USER"
              ]
            }
          }
        },
        "terminateAfterPreemption": {
          "sourceOfRule": {
            "scope": "project",
            "projectId": 3
          },
          "required": true,
          "canEdit": true
        },
        "terminationGracePeriodSeconds": {
          "sourceOfRule": {
            "scope": "project",
            "projectId": 3
          },
          "required": true,
          "canEdit": true,
          "min": 1,
          "max": 1,
          "step": 1,
          "defaultFrom": {
            "field": "text",
            "factor": 1
          }
        },
        "tolerations": {
          "attributes": {
            "operator": {
              "required": true,
              "canEdit": false,
              "blocked": false,
              "options": []
            },
            "key": {
              "required": true,
              "canEdit": false,
              "blocked": false,
              "options": []
            },
            "value": {
              "required": true,
              "canEdit": false,
              "blocked": false,
              "options": []
            },
            "effect": {
              "required": true,
              "canEdit": false,
              "blocked": false,
              "options": []
            },
            "seconds": {
              "sourceOfRule": {
                "scope": "project",
                "projectId": 3
              },
              "required": true,
              "canEdit": true,
              "min": 1,
              "max": 1,
              "step": 1,
              "defaultFrom": {
                "field": "text",
                "factor": 1
              }
            },
            "exclude": {
              "sourceOfRule": {
                "scope": "project",
                "projectId": 3
              },
              "required": true,
              "canEdit": true
            }
          },
          "instances": {
            "sourceOfRule": {
              "scope": "project",
              "projectId": 3
            },
            "canAdd": true,
            "locked": [
              "HOME",
              "USER"
            ]
          }
        },
        "tty": {
          "sourceOfRule": {
            "scope": "project",
            "projectId": 3
          },
          "required": true,
          "canEdit": true
        },
        "workingDir": {
          "required": true,
          "canEdit": false,
          "blocked": false,
          "options": []
        },
        "cleanPodPolicy": {
          "required": true,
          "canEdit": false,
          "blocked": false,
          "options": []
        },
        "distributedFramework": {
          "required": true,
          "canEdit": false,
          "blocked": false,
          "options": []
        },
        "maxReplicas": {
          "sourceOfRule": {
            "scope": "project",
            "projectId": 3
          },
          "required": true,
          "canEdit": true,
          "min": 1,
          "max": 1,
          "step": 1,
          "defaultFrom": {
            "field": "text",
            "factor": 1
          }
        },
        "minReplicas": {
          "sourceOfRule": {
            "scope": "project",
            "projectId": 3
          },
          "required": true,
          "canEdit": true,
          "min": 1,
          "max": 1,
          "step": 1,
          "defaultFrom": {
            "field": "text",
            "factor": 1
          }
        },
        "mpiLauncherCreationPolicy": {
          "required": true,
          "canEdit": false,
          "blocked": false,
          "options": []
        },
        "numWorkers": {
          "sourceOfRule": {
            "scope": "project",
            "projectId": 3
          },
          "required": true,
          "canEdit": true,
          "min": 1,
          "max": 1,
          "step": 1,
          "defaultFrom": {
            "field": "text",
            "factor": 1
          }
        },
        "slotsPerWorker": {
          "sourceOfRule": {
            "scope": "project",
            "projectId": 3
          },
          "required": true,
          "canEdit": true,
          "min": 1,
          "max": 1,
          "step": 1,
          "defaultFrom": {
            "field": "text",
            "factor": 1
          }
        },
        "sshAuthMountPath": {
          "required": true,
          "canEdit": false,
          "blocked": false,
          "options": []
        }
      }
    },
    "imposedAssets": {
      "worker": [
        "123e4567-e89b-12d3-a456-426614174000"
      ],
      "master": [
        "123e4567-e89b-12d3-a456-426614174000"
      ]
    },
    "status": {
      "validation": {
        "errorMessage": "text"
      }
    }
  },
  "effective": {
    "defaults": {
      "master": {
        "annotations": {
          "instances": [
            {
              "name": "billing",
              "value": "my-billing-unit",
              "exclude": false
            }
          ]
        },
        "args": "-x my-script.py",
        "autoDeletionTimeAfterCompletionSeconds": 15,
        "backoffLimit": 3,
        "category": "text",
        "command": "python",
        "compute": {
          "cpuCoreLimit": 2,
          "cpuCoreRequest": 0.5,
          "cpuMemoryLimit": "30M",
          "cpuMemoryRequest": "20M",
          "extendedResources": {
            "attributes": {
              "resource": "hardware-vendor.example/foo",
              "quantity": 2,
              "exclude": false
            },
            "instances": [
              {
                "resource": "hardware-vendor.example/foo",
                "quantity": 2,
                "exclude": false
              }
            ]
          },
          "gpuDevicesRequest": 1,
          "gpuMemoryLimit": "10M",
          "gpuMemoryRequest": "10M",
          "gpuPortionLimit": 0.5,
          "gpuPortionRequest": 0.5,
          "gpuRequestType": "portion",
          "largeShmRequest": false
        },
        "createHomeDir": true,
        "environmentVariables": {
          "instances": [
            {
              "name": "HOME",
              "value": "/home/my-folder",
              "secret": {
                "name": "postgress_secret",
                "key": "POSTGRES_PASSWORD"
              },
              "configMap": {
                "name": "my-config-map",
                "key": "MY_POSTGRES_SCHEMA"
              },
              "podFieldRef": {
                "path": "metadata.name"
              },
              "userCredential": {
                "name": "my_postgres_user_and_password",
                "key": "POSTGRES_PASSWORD"
              },
              "exclude": false,
              "description": "Home directory of the user."
            }
          ]
        },
        "exposedUrls": {
          "attributes": {
            "container": 8080,
            "url": "https://my-url.com",
            "authorizationType": "authenticatedUsers",
            "authorizedUsers": [
              "user-a",
              "user-b"
            ],
            "authorizedGroups": [
              "group-a",
              "group-b"
            ],
            "toolType": "jupyter",
            "toolName": "my-pytorch",
            "name": "url-instance-a",
            "exclude": false
          },
          "instances": [
            {
              "container": 8080,
              "url": "https://my-url.com",
              "authorizationType": "authenticatedUsers",
              "authorizedUsers": [
                "user-a",
                "user-b"
              ],
              "authorizedGroups": [
                "group-a",
                "group-b"
              ],
              "toolType": "jupyter",
              "toolName": "my-pytorch",
              "name": "url-instance-a",
              "exclude": false
            }
          ]
        },
        "image": "python:3.8",
        "imagePullPolicy": "Always",
        "imagePullSecrets": {
          "instances": [
            {
              "name": "text",
              "userCredential": true,
              "exclude": false
            }
          ]
        },
        "labels": {
          "instances": [
            {
              "name": "stage",
              "value": "initial-research",
              "exclude": false
            }
          ]
        },
        "nodeAffinityRequired": {
          "nodeSelectorTerms": [
            {
              "matchExpressions": [
                {
                  "key": "text",
                  "operator": "In",
                  "values": [
                    "text"
                  ]
                }
              ]
            }
          ]
        },
        "nodePools": [
          "my-node-pool-a",
          "my-node-pool-b"
        ],
        "nodeType": "my-node-type",
        "podAffinity": {
          "type": "Required",
          "key": "text"
        },
        "ports": {
          "attributes": {
            "container": 8080,
            "serviceType": "LoadBalancer",
            "external": 30080,
            "toolType": "pytorch",
            "toolName": "my-pytorch",
            "name": "port-instance-a",
            "exclude": false
          },
          "instances": [
            {
              "container": 8080,
              "serviceType": "LoadBalancer",
              "external": 30080,
              "toolType": "pytorch",
              "toolName": "my-pytorch",
              "name": "port-instance-a",
              "exclude": false
            }
          ]
        },
        "preemptibility": "preemptible",
        "priorityClass": "text",
        "probes": {
          "readiness": {
            "initialDelaySeconds": 1,
            "periodSeconds": 1,
            "timeoutSeconds": 1,
            "successThreshold": 1,
            "failureThreshold": 1,
            "handler": {
              "httpGet": {
                "path": "/",
                "port": 1,
                "host": "example.com",
                "scheme": "HTTP"
              }
            }
          }
        },
        "relatedUrls": {
          "attributes": {
            "url": "https://my-url.com",
            "type": "wandb",
            "name": "url-instance-a",
            "exclude": false
          },
          "instances": [
            {
              "url": "https://my-url.com",
              "type": "wandb",
              "name": "url-instance-a",
              "exclude": false
            }
          ]
        },
        "restartPolicy": "Always",
        "security": {
          "allowPrivilegeEscalation": false,
          "capabilities": [
            "CHOWN",
            "KILL"
          ],
          "hostIpc": false,
          "hostNetwork": false,
          "readOnlyRootFilesystem": false,
          "runAsGid": 30,
          "runAsNonRoot": true,
          "runAsUid": 500,
          "seccompProfileType": "RuntimeDefault",
          "supplementalGroups": "2,3,5,8",
          "uidGidSource": "fromTheImage"
        },
        "stdin": true,
        "storage": {
          "configMapVolume": {
            "attributes": {
              "name": "storage-instance-a",
              "configMap": "text",
              "mountPath": "text",
              "subPath": "text",
              "defaultMode": "0644",
              "exclude": false
            },
            "instances": [
              {
                "name": "storage-instance-a",
                "configMap": "text",
                "mountPath": "text",
                "subPath": "text",
                "defaultMode": "0644",
                "exclude": false
              }
            ]
          },
          "dataVolume": {
            "attributes": {
              "id": "123e4567-e89b-12d3-a456-426614174000",
              "mountPath": "/mnt/data",
              "exclude": false
            },
            "instances": [
              {
                "id": "123e4567-e89b-12d3-a456-426614174000",
                "mountPath": "/mnt/data",
                "exclude": false
              }
            ]
          },
          "emptyDirVolume": {
            "attributes": {
              "name": "storage-instance-a",
              "path": "/mnt/emptydir",
              "medium": "text",
              "sizeLimit": "1G",
              "exclude": false
            },
            "instances": [
              {
                "name": "storage-instance-a",
                "path": "/mnt/emptydir",
                "medium": "text",
                "sizeLimit": "1G",
                "exclude": false
              }
            ]
          },
          "git": {
            "attributes": {
              "name": "storage-instance-a",
              "repository": "https://github.com/my-git/my-repo",
              "branch": "main",
              "revision": "text",
              "path": "/container/my-repository",
              "passwordSecret": "my-password-secret",
              "secretKeyOfUser": "User",
              "secretKeyOfPassword": "Password",
              "exclude": false,
              "secretRef": {
                "name": "my-password-secret",
                "authenticationMethod": "password",
                "secretKeyOfUser": "User",
                "secretKeyOfPassword": "Password"
              }
            },
            "instances": [
              {
                "name": "storage-instance-a",
                "repository": "https://github.com/my-git/my-repo",
                "branch": "main",
                "revision": "text",
                "path": "/container/my-repository",
                "passwordSecret": "my-password-secret",
                "secretKeyOfUser": "User",
                "secretKeyOfPassword": "Password",
                "exclude": false,
                "secretRef": {
                  "name": "my-password-secret",
                  "authenticationMethod": "password",
                  "secretKeyOfUser": "User",
                  "secretKeyOfPassword": "Password"
                }
              }
            ]
          },
          "hostPath": {
            "attributes": {
              "name": "storage-instance-a",
              "path": "/container/directory",
              "readOnly": true,
              "mountPath": "/local/directory",
              "mountPropagation": "None",
              "exclude": false
            },
            "instances": [
              {
                "name": "storage-instance-a",
                "path": "/container/directory",
                "readOnly": true,
                "mountPath": "/local/directory",
                "mountPropagation": "None",
                "exclude": false
              }
            ]
          },
          "nfs": {
            "attributes": {
              "name": "storage-instance-a",
              "path": "/container/nfs",
              "readOnly": true,
              "server": "my.nfs.com",
              "mountPath": "/local/nfs",
              "exclude": false
            },
            "instances": [
              {
                "name": "storage-instance-a",
                "path": "/container/nfs",
                "readOnly": true,
                "server": "my.nfs.com",
                "mountPath": "/local/nfs",
                "exclude": false
              }
            ]
          },
          "pvc": {
            "attributes": {
              "name": "storage-instance-a",
              "path": "/container/my-claim",
              "existingPvc": false,
              "claimName": "my-claim",
              "readOnly": false,
              "ephemeral": false,
              "claimInfo": {
                "size": "1G",
                "storageClass": "my-storage-class",
                "accessModes": {
                  "readWriteOnce": true,
                  "readOnlyMany": false,
                  "readWriteMany": false
                },
                "volumeMode": "Filesystem",
                "addedAttrValues": [
                  {
                    "key": "dnsname",
                    "value": "my.dns.com"
                  }
                ]
              },
              "dataSharing": false,
              "exclude": false
            },
            "instances": [
              {
                "name": "storage-instance-a",
                "path": "/container/my-claim",
                "existingPvc": false,
                "claimName": "my-claim",
                "readOnly": false,
                "ephemeral": false,
                "claimInfo": {
                  "size": "1G",
                  "storageClass": "my-storage-class",
                  "accessModes": {
                    "readWriteOnce": true,
                    "readOnlyMany": false,
                    "readWriteMany": false
                  },
                  "volumeMode": "Filesystem",
                  "addedAttrValues": [
                    {
                      "key": "dnsname",
                      "value": "my.dns.com"
                    }
                  ]
                },
                "dataSharing": false,
                "exclude": false
              }
            ]
          },
          "s3": {
            "attributes": {
              "name": "storage-instance-a",
              "bucket": "my-bucket",
              "path": "/container/my-bucket",
              "url": "https://s3.amazonaws.com",
              "accessKeySecret": "my-access-key-secret",
              "secretKeyOfAccessKeyId": "AccessKeyId",
              "secretKeyOfSecretKey": "SecretKey",
              "exclude": false
            },
            "instances": [
              {
                "name": "storage-instance-a",
                "bucket": "my-bucket",
                "path": "/container/my-bucket",
                "url": "https://s3.amazonaws.com",
                "accessKeySecret": "my-access-key-secret",
                "secretKeyOfAccessKeyId": "AccessKeyId",
                "secretKeyOfSecretKey": "SecretKey",
                "exclude": false
              }
            ]
          },
          "secretVolume": {
            "attributes": {
              "name": "storage-instance-a",
              "mountPath": "text",
              "defaultMode": "0644",
              "secret": "text",
              "exclude": false
            },
            "instances": [
              {
                "name": "storage-instance-a",
                "mountPath": "text",
                "defaultMode": "0644",
                "secret": "text",
                "exclude": false
              }
            ]
          }
        },
        "terminateAfterPreemption": false,
        "terminationGracePeriodSeconds": 20,
        "tolerations": {
          "attributes": {
            "name": "text",
            "operator": "Equal",
            "key": "text",
            "value": "text",
            "effect": "NoSchedule",
            "seconds": 1,
            "exclude": false
          },
          "instances": [
            {
              "name": "text",
              "operator": "Equal",
              "key": "text",
              "value": "text",
              "effect": "NoSchedule",
              "seconds": 1,
              "exclude": false
            }
          ]
        },
        "tty": true,
        "workingDir": "/home/myfolder"
      },
      "worker": {
        "annotations": {
          "instances": [
            {
              "name": "billing",
              "value": "my-billing-unit",
              "exclude": false
            }
          ]
        },
        "args": "-x my-script.py",
        "autoDeletionTimeAfterCompletionSeconds": 15,
        "backoffLimit": 3,
        "category": "text",
        "command": "python",
        "compute": {
          "cpuCoreLimit": 2,
          "cpuCoreRequest": 0.5,
          "cpuMemoryLimit": "30M",
          "cpuMemoryRequest": "20M",
          "extendedResources": {
            "attributes": {
              "resource": "hardware-vendor.example/foo",
              "quantity": 2,
              "exclude": false
            },
            "instances": [
              {
                "resource": "hardware-vendor.example/foo",
                "quantity": 2,
                "exclude": false
              }
            ]
          },
          "gpuDevicesRequest": 1,
          "gpuMemoryLimit": "10M",
          "gpuMemoryRequest": "10M",
          "gpuPortionLimit": 0.5,
          "gpuPortionRequest": 0.5,
          "gpuRequestType": "portion",
          "largeShmRequest": false
        },
        "createHomeDir": true,
        "environmentVariables": {
          "instances": [
            {
              "name": "HOME",
              "value": "/home/my-folder",
              "secret": {
                "name": "postgress_secret",
                "key": "POSTGRES_PASSWORD"
              },
              "configMap": {
                "name": "my-config-map",
                "key": "MY_POSTGRES_SCHEMA"
              },
              "podFieldRef": {
                "path": "metadata.name"
              },
              "userCredential": {
                "name": "my_postgres_user_and_password",
                "key": "POSTGRES_PASSWORD"
              },
              "exclude": false,
              "description": "Home directory of the user."
            }
          ]
        },
        "exposedUrls": {
          "attributes": {
            "container": 8080,
            "url": "https://my-url.com",
            "authorizationType": "authenticatedUsers",
            "authorizedUsers": [
              "user-a",
              "user-b"
            ],
            "authorizedGroups": [
              "group-a",
              "group-b"
            ],
            "toolType": "jupyter",
            "toolName": "my-pytorch",
            "name": "url-instance-a",
            "exclude": false
          },
          "instances": [
            {
              "container": 8080,
              "url": "https://my-url.com",
              "authorizationType": "authenticatedUsers",
              "authorizedUsers": [
                "user-a",
                "user-b"
              ],
              "authorizedGroups": [
                "group-a",
                "group-b"
              ],
              "toolType": "jupyter",
              "toolName": "my-pytorch",
              "name": "url-instance-a",
              "exclude": false
            }
          ]
        },
        "image": "python:3.8",
        "imagePullPolicy": "Always",
        "imagePullSecrets": {
          "instances": [
            {
              "name": "text",
              "userCredential": true,
              "exclude": false
            }
          ]
        },
        "labels": {
          "instances": [
            {
              "name": "stage",
              "value": "initial-research",
              "exclude": false
            }
          ]
        },
        "nodeAffinityRequired": {
          "nodeSelectorTerms": [
            {
              "matchExpressions": [
                {
                  "key": "text",
                  "operator": "In",
                  "values": [
                    "text"
                  ]
                }
              ]
            }
          ]
        },
        "nodePools": [
          "my-node-pool-a",
          "my-node-pool-b"
        ],
        "nodeType": "my-node-type",
        "podAffinity": {
          "type": "Required",
          "key": "text"
        },
        "ports": {
          "attributes": {
            "container": 8080,
            "serviceType": "LoadBalancer",
            "external": 30080,
            "toolType": "pytorch",
            "toolName": "my-pytorch",
            "name": "port-instance-a",
            "exclude": false
          },
          "instances": [
            {
              "container": 8080,
              "serviceType": "LoadBalancer",
              "external": 30080,
              "toolType": "pytorch",
              "toolName": "my-pytorch",
              "name": "port-instance-a",
              "exclude": false
            }
          ]
        },
        "preemptibility": "preemptible",
        "priorityClass": "text",
        "probes": {
          "readiness": {
            "initialDelaySeconds": 1,
            "periodSeconds": 1,
            "timeoutSeconds": 1,
            "successThreshold": 1,
            "failureThreshold": 1,
            "handler": {
              "httpGet": {
                "path": "/",
                "port": 1,
                "host": "example.com",
                "scheme": "HTTP"
              }
            }
          }
        },
        "relatedUrls": {
          "attributes": {
            "url": "https://my-url.com",
            "type": "wandb",
            "name": "url-instance-a",
            "exclude": false
          },
          "instances": [
            {
              "url": "https://my-url.com",
              "type": "wandb",
              "name": "url-instance-a",
              "exclude": false
            }
          ]
        },
        "restartPolicy": "Always",
        "security": {
          "allowPrivilegeEscalation": false,
          "capabilities": [
            "CHOWN",
            "KILL"
          ],
          "hostIpc": false,
          "hostNetwork": false,
          "readOnlyRootFilesystem": false,
          "runAsGid": 30,
          "runAsNonRoot": true,
          "runAsUid": 500,
          "seccompProfileType": "RuntimeDefault",
          "supplementalGroups": "2,3,5,8",
          "uidGidSource": "fromTheImage"
        },
        "stdin": true,
        "storage": {
          "configMapVolume": {
            "attributes": {
              "name": "storage-instance-a",
              "configMap": "text",
              "mountPath": "text",
              "subPath": "text",
              "defaultMode": "0644",
              "exclude": false
            },
            "instances": [
              {
                "name": "storage-instance-a",
                "configMap": "text",
                "mountPath": "text",
                "subPath": "text",
                "defaultMode": "0644",
                "exclude": false
              }
            ]
          },
          "dataVolume": {
            "attributes": {
              "id": "123e4567-e89b-12d3-a456-426614174000",
              "mountPath": "/mnt/data",
              "exclude": false
            },
            "instances": [
              {
                "id": "123e4567-e89b-12d3-a456-426614174000",
                "mountPath": "/mnt/data",
                "exclude": false
              }
            ]
          },
          "emptyDirVolume": {
            "attributes": {
              "name": "storage-instance-a",
              "path": "/mnt/emptydir",
              "medium": "text",
              "sizeLimit": "1G",
              "exclude": false
            },
            "instances": [
              {
                "name": "storage-instance-a",
                "path": "/mnt/emptydir",
                "medium": "text",
                "sizeLimit": "1G",
                "exclude": false
              }
            ]
          },
          "git": {
            "attributes": {
              "name": "storage-instance-a",
              "repository": "https://github.com/my-git/my-repo",
              "branch": "main",
              "revision": "text",
              "path": "/container/my-repository",
              "passwordSecret": "my-password-secret",
              "secretKeyOfUser": "User",
              "secretKeyOfPassword": "Password",
              "exclude": false,
              "secretRef": {
                "name": "my-password-secret",
                "authenticationMethod": "password",
                "secretKeyOfUser": "User",
                "secretKeyOfPassword": "Password"
              }
            },
            "instances": [
              {
                "name": "storage-instance-a",
                "repository": "https://github.com/my-git/my-repo",
                "branch": "main",
                "revision": "text",
                "path": "/container/my-repository",
                "passwordSecret": "my-password-secret",
                "secretKeyOfUser": "User",
                "secretKeyOfPassword": "Password",
                "exclude": false,
                "secretRef": {
                  "name": "my-password-secret",
                  "authenticationMethod": "password",
                  "secretKeyOfUser": "User",
                  "secretKeyOfPassword": "Password"
                }
              }
            ]
          },
          "hostPath": {
            "attributes": {
              "name": "storage-instance-a",
              "path": "/container/directory",
              "readOnly": true,
              "mountPath": "/local/directory",
              "mountPropagation": "None",
              "exclude": false
            },
            "instances": [
              {
                "name": "storage-instance-a",
                "path": "/container/directory",
                "readOnly": true,
                "mountPath": "/local/directory",
                "mountPropagation": "None",
                "exclude": false
              }
            ]
          },
          "nfs": {
            "attributes": {
              "name": "storage-instance-a",
              "path": "/container/nfs",
              "readOnly": true,
              "server": "my.nfs.com",
              "mountPath": "/local/nfs",
              "exclude": false
            },
            "instances": [
              {
                "name": "storage-instance-a",
                "path": "/container/nfs",
                "readOnly": true,
                "server": "my.nfs.com",
                "mountPath": "/local/nfs",
                "exclude": false
              }
            ]
          },
          "pvc": {
            "attributes": {
              "name": "storage-instance-a",
              "path": "/container/my-claim",
              "existingPvc": false,
              "claimName": "my-claim",
              "readOnly": false,
              "ephemeral": false,
              "claimInfo": {
                "size": "1G",
                "storageClass": "my-storage-class",
                "accessModes": {
                  "readWriteOnce": true,
                  "readOnlyMany": false,
                  "readWriteMany": false
                },
                "volumeMode": "Filesystem",
                "addedAttrValues": [
                  {
                    "key": "dnsname",
                    "value": "my.dns.com"
                  }
                ]
              },
              "dataSharing": false,
              "exclude": false
            },
            "instances": [
              {
                "name": "storage-instance-a",
                "path": "/container/my-claim",
                "existingPvc": false,
                "claimName": "my-claim",
                "readOnly": false,
                "ephemeral": false,
                "claimInfo": {
                  "size": "1G",
                  "storageClass": "my-storage-class",
                  "accessModes": {
                    "readWriteOnce": true,
                    "readOnlyMany": false,
                    "readWriteMany": false
                  },
                  "volumeMode": "Filesystem",
                  "addedAttrValues": [
                    {
                      "key": "dnsname",
                      "value": "my.dns.com"
                    }
                  ]
                },
                "dataSharing": false,
                "exclude": false
              }
            ]
          },
          "s3": {
            "attributes": {
              "name": "storage-instance-a",
              "bucket": "my-bucket",
              "path": "/container/my-bucket",
              "url": "https://s3.amazonaws.com",
              "accessKeySecret": "my-access-key-secret",
              "secretKeyOfAccessKeyId": "AccessKeyId",
              "secretKeyOfSecretKey": "SecretKey",
              "exclude": false
            },
            "instances": [
              {
                "name": "storage-instance-a",
                "bucket": "my-bucket",
                "path": "/container/my-bucket",
                "url": "https://s3.amazonaws.com",
                "accessKeySecret": "my-access-key-secret",
                "secretKeyOfAccessKeyId": "AccessKeyId",
                "secretKeyOfSecretKey": "SecretKey",
                "exclude": false
              }
            ]
          },
          "secretVolume": {
            "attributes": {
              "name": "storage-instance-a",
              "mountPath": "text",
              "defaultMode": "0644",
              "secret": "text",
              "exclude": false
            },
            "instances": [
              {
                "name": "storage-instance-a",
                "mountPath": "text",
                "defaultMode": "0644",
                "secret": "text",
                "exclude": false
              }
            ]
          }
        },
        "terminateAfterPreemption": false,
        "terminationGracePeriodSeconds": 20,
        "tolerations": {
          "attributes": {
            "name": "text",
            "operator": "Equal",
            "key": "text",
            "value": "text",
            "effect": "NoSchedule",
            "seconds": 1,
            "exclude": false
          },
          "instances": [
            {
              "name": "text",
              "operator": "Equal",
              "key": "text",
              "value": "text",
              "effect": "NoSchedule",
              "seconds": 1,
              "exclude": false
            }
          ]
        },
        "tty": true,
        "workingDir": "/home/myfolder",
        "cleanPodPolicy": "None",
        "distributedFramework": "MPI",
        "maxReplicas": 1,
        "minReplicas": 1,
        "mpiLauncherCreationPolicy": "AtStartup",
        "numWorkers": 1,
        "slotsPerWorker": 1,
        "sshAuthMountPath": "/root/.ssh"
      }
    },
    "rules": {
      "master": {
        "annotations": {
          "instances": {
            "sourceOfRule": {
              "scope": "project",
              "projectId": 3
            },
            "canAdd": true,
            "locked": [
              "HOME",
              "USER"
            ]
          }
        },
        "args": {
          "required": true,
          "canEdit": false,
          "blocked": false,
          "options": []
        },
        "autoDeletionTimeAfterCompletionSeconds": {
          "sourceOfRule": {
            "scope": "project",
            "projectId": 3
          },
          "required": true,
          "canEdit": true,
          "min": 1,
          "max": 1,
          "step": 1,
          "defaultFrom": {
            "field": "text",
            "factor": 1
          }
        },
        "backoffLimit": {
          "sourceOfRule": {
            "scope": "project",
            "projectId": 3
          },
          "required": true,
          "canEdit": true,
          "min": 1,
          "max": 1,
          "step": 1,
          "defaultFrom": {
            "field": "text",
            "factor": 1
          }
        },
        "category": {
          "required": true,
          "canEdit": false,
          "blocked": false,
          "options": []
        },
        "command": {
          "required": true,
          "canEdit": false,
          "blocked": false,
          "options": []
        },
        "compute": {
          "cpuCoreLimit": {
            "sourceOfRule": {
              "scope": "project",
              "projectId": 3
            },
            "required": true,
            "canEdit": true,
            "min": 1,
            "max": 1,
            "step": 1,
            "defaultFrom": {
              "field": "text",
              "factor": 1
            }
          },
          "cpuCoreRequest": {
            "sourceOfRule": {
              "scope": "project",
              "projectId": 3
            },
            "required": true,
            "canEdit": true,
            "min": 1,
            "max": 1,
            "step": 1,
            "defaultFrom": {
              "field": "text",
              "factor": 1
            }
          },
          "cpuMemoryLimit": {
            "sourceOfRule": {
              "scope": "project",
              "projectId": 3
            },
            "required": true,
            "canEdit": true,
            "min": "text",
            "max": "text",
            "defaultFrom": {
              "field": "text",
              "factor": 1
            }
          },
          "cpuMemoryRequest": {
            "sourceOfRule": {
              "scope": "project",
              "projectId": 3
            },
            "required": true,
            "canEdit": true,
            "min": "text",
            "max": "text",
            "defaultFrom": {
              "field": "text",
              "factor": 1
            }
          },
          "extendedResources": {
            "attributes": {
              "quantity": {
                "required": true,
                "canEdit": false,
                "blocked": false,
                "options": []
              }
            },
            "instances": {
              "sourceOfRule": {
                "scope": "project",
                "projectId": 3
              },
              "canAdd": true,
              "locked": [
                "HOME",
                "USER"
              ]
            }
          },
          "gpuDevicesRequest": {
            "sourceOfRule": {
              "scope": "project",
              "projectId": 3
            },
            "required": true,
            "canEdit": true,
            "min": 1,
            "max": 1,
            "step": 1,
            "defaultFrom": {
              "field": "text",
              "factor": 1
            }
          },
          "gpuMemoryLimit": {
            "sourceOfRule": {
              "scope": "project",
              "projectId": 3
            },
            "required": true,
            "canEdit": true,
            "min": "text",
            "max": "text",
            "defaultFrom": {
              "field": "text",
              "factor": 1
            }
          },
          "gpuMemoryRequest": {
            "sourceOfRule": {
              "scope": "project",
              "projectId": 3
            },
            "required": true,
            "canEdit": true,
            "min": "text",
            "max": "text",
            "defaultFrom": {
              "field": "text",
              "factor": 1
            }
          },
          "gpuPortionLimit": {
            "sourceOfRule": {
              "scope": "project",
              "projectId": 3
            },
            "required": true,
            "canEdit": true,
            "min": 1,
            "max": 1,
            "step": 1,
            "defaultFrom": {
              "field": "text",
              "factor": 1
            }
          },
          "gpuPortionRequest": {
            "sourceOfRule": {
              "scope": "project",
              "projectId": 3
            },
            "required": true,
            "canEdit": true,
            "min": 1,
            "max": 1,
            "step": 1,
            "defaultFrom": {
              "field": "text",
              "factor": 1
            }
          },
          "gpuRequestType": {
            "required": true,
            "canEdit": false,
            "blocked": false,
            "options": []
          },
          "largeShmRequest": {
            "sourceOfRule": {
              "scope": "project",
              "projectId": 3
            },
            "required": true,
            "canEdit": true
          }
        },
        "createHomeDir": {
          "sourceOfRule": {
            "scope": "project",
            "projectId": 3
          },
          "required": true,
          "canEdit": true
        },
        "environmentVariables": {
          "instances": {
            "sourceOfRule": {
              "scope": "project",
              "projectId": 3
            },
            "canAdd": true,
            "locked": [
              "HOME",
              "USER"
            ]
          }
        },
        "exposedUrls": {
          "attributes": {
            "container": {
              "sourceOfRule": {
                "scope": "project",
                "projectId": 3
              },
              "required": true,
              "canEdit": true,
              "min": 1,
              "max": 1,
              "step": 1,
              "defaultFrom": {
                "field": "text",
                "factor": 1
              }
            },
            "customUrl": {
              "sourceOfRule": {
                "scope": "project",
                "projectId": 3
              },
              "required": true,
              "canEdit": true
            },
            "url": {
              "required": true,
              "canEdit": false,
              "blocked": false,
              "options": []
            },
            "authorizedUsers": {
              "sourceOfRule": {
                "scope": "project",
                "projectId": 3
              },
              "required": true,
              "options": [],
              "canEdit": true
            },
            "authorizedGroups": {
              "sourceOfRule": {
                "scope": "project",
                "projectId": 3
              },
              "required": true,
              "options": [],
              "canEdit": true
            },
            "toolType": {
              "required": true,
              "canEdit": false,
              "blocked": false,
              "options": []
            },
            "toolName": {
              "required": true,
              "canEdit": false,
              "blocked": false,
              "options": []
            }
          },
          "instances": {
            "sourceOfRule": {
              "scope": "project",
              "projectId": 3
            },
            "canAdd": true,
            "locked": [
              "HOME",
              "USER"
            ]
          }
        },
        "image": {
          "required": true,
          "canEdit": false,
          "blocked": false,
          "options": []
        },
        "imagePullPolicy": {
          "required": true,
          "canEdit": false,
          "blocked": false,
          "options": []
        },
        "imagePullSecrets": {
          "attributes": {
            "name": {
              "required": true,
              "canEdit": false,
              "blocked": false,
              "options": []
            },
            "userCredentials": {
              "sourceOfRule": {
                "scope": "project",
                "projectId": 3
              },
              "required": true,
              "canEdit": true
            }
          },
          "instances": {
            "sourceOfRule": {
              "scope": "project",
              "projectId": 3
            },
            "canAdd": true,
            "locked": [
              "HOME",
              "USER"
            ]
          }
        },
        "labels": {
          "instances": {
            "sourceOfRule": {
              "scope": "project",
              "projectId": 3
            },
            "canAdd": true,
            "locked": [
              "HOME",
              "USER"
            ]
          }
        },
        "nodeAffinityRequired": {
          "sourceOfRule": {
            "scope": "project",
            "projectId": 3
          },
          "required": true,
          "canEdit": true
        },
        "nodePools": {
          "sourceOfRule": {
            "scope": "project",
            "projectId": 3
          },
          "required": true,
          "options": [],
          "canEdit": true
        },
        "nodeType": {
          "required": true,
          "canEdit": false,
          "blocked": false,
          "options": []
        },
        "podAffinity": {
          "type": {
            "required": true,
            "canEdit": false,
            "blocked": false,
            "options": []
          },
          "key": {
            "required": true,
            "canEdit": false,
            "blocked": false,
            "options": []
          }
        },
        "ports": {
          "attributes": {
            "container": {
              "sourceOfRule": {
                "scope": "project",
                "projectId": 3
              },
              "required": true,
              "canEdit": true,
              "min": 1,
              "max": 1,
              "step": 1,
              "defaultFrom": {
                "field": "text",
                "factor": 1
              }
            },
            "serviceType": {
              "required": true,
              "canEdit": false,
              "blocked": false,
              "options": []
            },
            "customExternalPort": {
              "sourceOfRule": {
                "scope": "project",
                "projectId": 3
              },
              "required": true,
              "canEdit": true
            },
            "external": {
              "sourceOfRule": {
                "scope": "project",
                "projectId": 3
              },
              "required": true,
              "canEdit": true,
              "min": 1,
              "max": 1,
              "step": 1,
              "defaultFrom": {
                "field": "text",
                "factor": 1
              }
            },
            "toolType": {
              "required": true,
              "canEdit": false,
              "blocked": false,
              "options": []
            },
            "toolName": {
              "required": true,
              "canEdit": false,
              "blocked": false,
              "options": []
            }
          },
          "instances": {
            "sourceOfRule": {
              "scope": "project",
              "projectId": 3
            },
            "canAdd": true,
            "locked": [
              "HOME",
              "USER"
            ]
          }
        },
        "preemptibility": {
          "required": true,
          "canEdit": false,
          "blocked": false,
          "options": []
        },
        "priorityClass": {
          "required": true,
          "canEdit": false,
          "blocked": false,
          "options": []
        },
        "probes": {
          "readiness": {
            "initialDelaySeconds": {
              "sourceOfRule": {
                "scope": "project",
                "projectId": 3
              },
              "required": true,
              "canEdit": true,
              "min": 1,
              "max": 1,
              "step": 1,
              "defaultFrom": {
                "field": "text",
                "factor": 1
              }
            },
            "periodSeconds": {
              "sourceOfRule": {
                "scope": "project",
                "projectId": 3
              },
              "required": true,
              "canEdit": true,
              "min": 1,
              "max": 1,
              "step": 1,
              "defaultFrom": {
                "field": "text",
                "factor": 1
              }
            },
            "timeoutSeconds": {
              "sourceOfRule": {
                "scope": "project",
                "projectId": 3
              },
              "required": true,
              "canEdit": true,
              "min": 1,
              "max": 1,
              "step": 1,
              "defaultFrom": {
                "field": "text",
                "factor": 1
              }
            },
            "successThreshold": {
              "sourceOfRule": {
                "scope": "project",
                "projectId": 3
              },
              "required": true,
              "canEdit": true,
              "min": 1,
              "max": 1,
              "step": 1,
              "defaultFrom": {
                "field": "text",
                "factor": 1
              }
            },
            "failureThreshold": {
              "sourceOfRule": {
                "scope": "project",
                "projectId": 3
              },
              "required": true,
              "canEdit": true,
              "min": 1,
              "max": 1,
              "step": 1,
              "defaultFrom": {
                "field": "text",
                "factor": 1
              }
            },
            "handler": {
              "httpGet": {
                "path": {
                  "required": true,
                  "canEdit": false,
                  "blocked": false,
                  "options": []
                },
                "port": {
                  "sourceOfRule": {
                    "scope": "project",
                    "projectId": 3
                  },
                  "required": true,
                  "canEdit": true,
                  "min": 1,
                  "max": 1,
                  "step": 1,
                  "defaultFrom": {
                    "field": "text",
                    "factor": 1
                  }
                },
                "host": {
                  "required": true,
                  "canEdit": false,
                  "blocked": false,
                  "options": []
                },
                "scheme": {
                  "required": true,
                  "canEdit": false,
                  "blocked": false,
                  "options": []
                }
              }
            }
          }
        },
        "relatedUrls": {
          "attributes": {
            "url": {
              "required": true,
              "canEdit": false,
              "blocked": false,
              "options": []
            },
            "type": {
              "required": true,
              "canEdit": false,
              "blocked": false,
              "options": []
            },
            "name": {
              "required": true,
              "canEdit": false,
              "blocked": false,
              "options": []
            }
          },
          "instances": {
            "sourceOfRule": {
              "scope": "project",
              "projectId": 3
            },
            "canAdd": true,
            "locked": [
              "HOME",
              "USER"
            ]
          }
        },
        "restartPolicy": {
          "required": true,
          "canEdit": false,
          "blocked": false,
          "options": []
        },
        "security": {
          "allowPrivilegeEscalation": {
            "sourceOfRule": {
              "scope": "project",
              "projectId": 3
            },
            "required": true,
            "canEdit": true
          },
          "capabilities": {
            "sourceOfRule": {
              "scope": "project",
              "projectId": 3
            },
            "required": true,
            "options": [],
            "canEdit": true
          },
          "hostIpc": {
            "sourceOfRule": {
              "scope": "project",
              "projectId": 3
            },
            "required": true,
            "canEdit": true
          },
          "hostNetwork": {
            "sourceOfRule": {
              "scope": "project",
              "projectId": 3
            },
            "required": true,
            "canEdit": true
          },
          "readOnlyRootFilesystem": {
            "sourceOfRule": {
              "scope": "project",
              "projectId": 3
            },
            "required": true,
            "canEdit": true
          },
          "runAsGid": {
            "sourceOfRule": {
              "scope": "project",
              "projectId": 3
            },
            "canEdit": true,
            "min": 1,
            "max": 1,
            "step": 1,
            "defaultFrom": {
              "field": "text",
              "factor": 1
            }
          },
          "runAsNonRoot": {
            "sourceOfRule": {
              "scope": "project",
              "projectId": 3
            },
            "required": true,
            "canEdit": true
          },
          "runAsUid": {
            "sourceOfRule": {
              "scope": "project",
              "projectId": 3
            },
            "canEdit": true,
            "min": 1,
            "max": 1,
            "step": 1,
            "defaultFrom": {
              "field": "text",
              "factor": 1
            }
          },
          "seccompProfileType": {
            "required": true,
            "canEdit": false,
            "blocked": false,
            "options": []
          },
          "supplementalGroups": {
            "required": true,
            "canEdit": false,
            "blocked": false,
            "options": []
          },
          "uidGidSource": {
            "required": true,
            "canEdit": false,
            "blocked": false,
            "options": []
          }
        },
        "stdin": {
          "sourceOfRule": {
            "scope": "project",
            "projectId": 3
          },
          "required": true,
          "canEdit": true
        },
        "storage": {
          "configMapVolume": {
            "attributes": {
              "configMap": {
                "required": true,
                "canEdit": false,
                "blocked": false,
                "options": []
              },
              "mountPath": {
                "required": true,
                "canEdit": false,
                "blocked": false,
                "options": []
              },
              "subPath": {
                "required": true,
                "canEdit": false,
                "blocked": false,
                "options": []
              },
              "defaultMode": {
                "required": true,
                "canEdit": false,
                "blocked": false,
                "options": []
              }
            },
            "instances": {
              "sourceOfRule": {
                "scope": "project",
                "projectId": 3
              },
              "canAdd": true,
              "locked": [
                "HOME",
                "USER"
              ]
            }
          },
          "dataVolume": {
            "attributes": {
              "id": {
                "required": true,
                "canEdit": false,
                "blocked": false,
                "options": []
              },
              "mountPath": {
                "required": true,
                "canEdit": false,
                "blocked": false,
                "options": []
              }
            },
            "instances": {
              "sourceOfRule": {
                "scope": "project",
                "projectId": 3
              },
              "canAdd": true,
              "locked": [
                "HOME",
                "USER"
              ]
            }
          },
          "emptyDirVolume": {
            "attributes": {
              "path": {
                "required": true,
                "canEdit": false,
                "blocked": false,
                "options": []
              },
              "medium": {
                "required": true,
                "canEdit": false,
                "blocked": false,
                "options": []
              },
              "sizeLimit": {
                "required": true,
                "canEdit": false,
                "blocked": false,
                "options": []
              }
            },
            "instances": {
              "sourceOfRule": {
                "scope": "project",
                "projectId": 3
              },
              "canAdd": true,
              "locked": [
                "HOME",
                "USER"
              ]
            }
          },
          "git": {
            "attributes": {
              "repository": {
                "required": true,
                "canEdit": false,
                "blocked": false,
                "options": []
              },
              "branch": {
                "required": true,
                "canEdit": false,
                "blocked": false,
                "options": []
              },
              "revision": {
                "required": true,
                "canEdit": false,
                "blocked": false,
                "options": []
              },
              "path": {
                "required": true,
                "canEdit": false,
                "blocked": false,
                "options": []
              }
            },
            "instances": {
              "sourceOfRule": {
                "scope": "project",
                "projectId": 3
              },
              "canAdd": true,
              "locked": [
                "HOME",
                "USER"
              ]
            }
          },
          "hostPath": {
            "attributes": {
              "path": {
                "required": true,
                "canEdit": false,
                "blocked": false,
                "options": []
              },
              "readOnly": {
                "sourceOfRule": {
                  "scope": "project",
                  "projectId": 3
                },
                "required": true,
                "canEdit": true
              },
              "mountPath": {
                "required": true,
                "canEdit": false,
                "blocked": false,
                "options": []
              },
              "mountPropagation": {
                "required": true,
                "canEdit": false,
                "blocked": false,
                "options": []
              }
            },
            "instances": {
              "sourceOfRule": {
                "scope": "project",
                "projectId": 3
              },
              "canAdd": true,
              "locked": [
                "HOME",
                "USER"
              ]
            }
          },
          "nfs": {
            "attributes": {
              "path": {
                "required": true,
                "canEdit": false,
                "blocked": false,
                "options": []
              },
              "readOnly": {
                "sourceOfRule": {
                  "scope": "project",
                  "projectId": 3
                },
                "required": true,
                "canEdit": true
              },
              "server": {
                "required": true,
                "canEdit": false,
                "blocked": false,
                "options": []
              },
              "mountPath": {
                "required": true,
                "canEdit": false,
                "blocked": false,
                "options": []
              }
            },
            "instances": {
              "sourceOfRule": {
                "scope": "project",
                "projectId": 3
              },
              "canAdd": true,
              "locked": [
                "HOME",
                "USER"
              ]
            }
          },
          "pvc": {
            "attributes": {
              "claimName": {
                "required": true,
                "canEdit": false,
                "blocked": false,
                "options": []
              },
              "path": {
                "required": true,
                "canEdit": false,
                "blocked": false,
                "options": []
              },
              "readOnly": {
                "sourceOfRule": {
                  "scope": "project",
                  "projectId": 3
                },
                "required": true,
                "canEdit": true
              },
              "claimInfo": {
                "size": {
                  "required": true,
                  "canEdit": false,
                  "blocked": false,
                  "options": []
                },
                "storageClass": {
                  "required": true,
                  "canEdit": false,
                  "blocked": false,
                  "options": []
                },
                "accessModes": {
                  "readWriteOnce": {
                    "sourceOfRule": {
                      "scope": "project",
                      "projectId": 3
                    },
                    "required": true,
                    "canEdit": true
                  },
                  "readOnlyMany": {
                    "sourceOfRule": {
                      "scope": "project",
                      "projectId": 3
                    },
                    "required": true,
                    "canEdit": true
                  },
                  "readWriteMany": {
                    "sourceOfRule": {
                      "scope": "project",
                      "projectId": 3
                    },
                    "required": true,
                    "canEdit": true
                  }
                }
              }
            },
            "instances": {
              "sourceOfRule": {
                "scope": "project",
                "projectId": 3
              },
              "canAdd": true,
              "locked": [
                "HOME",
                "USER"
              ]
            }
          },
          "s3": {
            "attributes": {
              "bucket": {
                "required": true,
                "canEdit": false,
                "blocked": false,
                "options": []
              },
              "path": {
                "required": true,
                "canEdit": false,
                "blocked": false,
                "options": []
              },
              "url": {
                "required": true,
                "canEdit": false,
                "blocked": false,
                "options": []
              }
            },
            "instances": {
              "sourceOfRule": {
                "scope": "project",
                "projectId": 3
              },
              "canAdd": true,
              "locked": [
                "HOME",
                "USER"
              ]
            }
          },
          "secretVolume": {
            "attributes": {
              "secret": {
                "required": true,
                "canEdit": false,
                "blocked": false,
                "options": []
              },
              "mountPath": {
                "required": true,
                "canEdit": false,
                "blocked": false,
                "options": []
              },
              "defaultMode": {
                "required": true,
                "canEdit": false,
                "blocked": false,
                "options": []
              }
            },
            "instances": {
              "sourceOfRule": {
                "scope": "project",
                "projectId": 3
              },
              "canAdd": true,
              "locked": [
                "HOME",
                "USER"
              ]
            }
          }
        },
        "terminateAfterPreemption": {
          "sourceOfRule": {
            "scope": "project",
            "projectId": 3
          },
          "required": true,
          "canEdit": true
        },
        "terminationGracePeriodSeconds": {
          "sourceOfRule": {
            "scope": "project",
            "projectId": 3
          },
          "required": true,
          "canEdit": true,
          "min": 1,
          "max": 1,
          "step": 1,
          "defaultFrom": {
            "field": "text",
            "factor": 1
          }
        },
        "tolerations": {
          "attributes": {
            "operator": {
              "required": true,
              "canEdit": false,
              "blocked": false,
              "options": []
            },
            "key": {
              "required": true,
              "canEdit": false,
              "blocked": false,
              "options": []
            },
            "value": {
              "required": true,
              "canEdit": false,
              "blocked": false,
              "options": []
            },
            "effect": {
              "required": true,
              "canEdit": false,
              "blocked": false,
              "options": []
            },
            "seconds": {
              "sourceOfRule": {
                "scope": "project",
                "projectId": 3
              },
              "required": true,
              "canEdit": true,
              "min": 1,
              "max": 1,
              "step": 1,
              "defaultFrom": {
                "field": "text",
                "factor": 1
              }
            },
            "exclude": {
              "sourceOfRule": {
                "scope": "project",
                "projectId": 3
              },
              "required": true,
              "canEdit": true
            }
          },
          "instances": {
            "sourceOfRule": {
              "scope": "project",
              "projectId": 3
            },
            "canAdd": true,
            "locked": [
              "HOME",
              "USER"
            ]
          }
        },
        "tty": {
          "sourceOfRule": {
            "scope": "project",
            "projectId": 3
          },
          "required": true,
          "canEdit": true
        },
        "workingDir": {
          "required": true,
          "canEdit": false,
          "blocked": false,
          "options": []
        }
      },
      "worker": {
        "annotations": {
          "instances": {
            "sourceOfRule": {
              "scope": "project",
              "projectId": 3
            },
            "canAdd": true,
            "locked": [
              "HOME",
              "USER"
            ]
          }
        },
        "args": {
          "required": true,
          "canEdit": false,
          "blocked": false,
          "options": []
        },
        "autoDeletionTimeAfterCompletionSeconds": {
          "sourceOfRule": {
            "scope": "project",
            "projectId": 3
          },
          "required": true,
          "canEdit": true,
          "min": 1,
          "max": 1,
          "step": 1,
          "defaultFrom": {
            "field": "text",
            "factor": 1
          }
        },
        "backoffLimit": {
          "sourceOfRule": {
            "scope": "project",
            "projectId": 3
          },
          "required": true,
          "canEdit": true,
          "min": 1,
          "max": 1,
          "step": 1,
          "defaultFrom": {
            "field": "text",
            "factor": 1
          }
        },
        "category": {
          "required": true,
          "canEdit": false,
          "blocked": false,
          "options": []
        },
        "command": {
          "required": true,
          "canEdit": false,
          "blocked": false,
          "options": []
        },
        "compute": {
          "cpuCoreLimit": {
            "sourceOfRule": {
              "scope": "project",
              "projectId": 3
            },
            "required": true,
            "canEdit": true,
            "min": 1,
            "max": 1,
            "step": 1,
            "defaultFrom": {
              "field": "text",
              "factor": 1
            }
          },
          "cpuCoreRequest": {
            "sourceOfRule": {
              "scope": "project",
              "projectId": 3
            },
            "required": true,
            "canEdit": true,
            "min": 1,
            "max": 1,
            "step": 1,
            "defaultFrom": {
              "field": "text",
              "factor": 1
            }
          },
          "cpuMemoryLimit": {
            "sourceOfRule": {
              "scope": "project",
              "projectId": 3
            },
            "required": true,
            "canEdit": true,
            "min": "text",
            "max": "text",
            "defaultFrom": {
              "field": "text",
              "factor": 1
            }
          },
          "cpuMemoryRequest": {
            "sourceOfRule": {
              "scope": "project",
              "projectId": 3
            },
            "required": true,
            "canEdit": true,
            "min": "text",
            "max": "text",
            "defaultFrom": {
              "field": "text",
              "factor": 1
            }
          },
          "extendedResources": {
            "attributes": {
              "quantity": {
                "required": true,
                "canEdit": false,
                "blocked": false,
                "options": []
              }
            },
            "instances": {
              "sourceOfRule": {
                "scope": "project",
                "projectId": 3
              },
              "canAdd": true,
              "locked": [
                "HOME",
                "USER"
              ]
            }
          },
          "gpuDevicesRequest": {
            "sourceOfRule": {
              "scope": "project",
              "projectId": 3
            },
            "required": true,
            "canEdit": true,
            "min": 1,
            "max": 1,
            "step": 1,
            "defaultFrom": {
              "field": "text",
              "factor": 1
            }
          },
          "gpuMemoryLimit": {
            "sourceOfRule": {
              "scope": "project",
              "projectId": 3
            },
            "required": true,
            "canEdit": true,
            "min": "text",
            "max": "text",
            "defaultFrom": {
              "field": "text",
              "factor": 1
            }
          },
          "gpuMemoryRequest": {
            "sourceOfRule": {
              "scope": "project",
              "projectId": 3
            },
            "required": true,
            "canEdit": true,
            "min": "text",
            "max": "text",
            "defaultFrom": {
              "field": "text",
              "factor": 1
            }
          },
          "gpuPortionLimit": {
            "sourceOfRule": {
              "scope": "project",
              "projectId": 3
            },
            "required": true,
            "canEdit": true,
            "min": 1,
            "max": 1,
            "step": 1,
            "defaultFrom": {
              "field": "text",
              "factor": 1
            }
          },
          "gpuPortionRequest": {
            "sourceOfRule": {
              "scope": "project",
              "projectId": 3
            },
            "required": true,
            "canEdit": true,
            "min": 1,
            "max": 1,
            "step": 1,
            "defaultFrom": {
              "field": "text",
              "factor": 1
            }
          },
          "gpuRequestType": {
            "required": true,
            "canEdit": false,
            "blocked": false,
            "options": []
          },
          "largeShmRequest": {
            "sourceOfRule": {
              "scope": "project",
              "projectId": 3
            },
            "required": true,
            "canEdit": true
          }
        },
        "createHomeDir": {
          "sourceOfRule": {
            "scope": "project",
            "projectId": 3
          },
          "required": true,
          "canEdit": true
        },
        "environmentVariables": {
          "instances": {
            "sourceOfRule": {
              "scope": "project",
              "projectId": 3
            },
            "canAdd": true,
            "locked": [
              "HOME",
              "USER"
            ]
          }
        },
        "exposedUrls": {
          "attributes": {
            "container": {
              "sourceOfRule": {
                "scope": "project",
                "projectId": 3
              },
              "required": true,
              "canEdit": true,
              "min": 1,
              "max": 1,
              "step": 1,
              "defaultFrom": {
                "field": "text",
                "factor": 1
              }
            },
            "customUrl": {
              "sourceOfRule": {
                "scope": "project",
                "projectId": 3
              },
              "required": true,
              "canEdit": true
            },
            "url": {
              "required": true,
              "canEdit": false,
              "blocked": false,
              "options": []
            },
            "authorizedUsers": {
              "sourceOfRule": {
                "scope": "project",
                "projectId": 3
              },
              "required": true,
              "options": [],
              "canEdit": true
            },
            "authorizedGroups": {
              "sourceOfRule": {
                "scope": "project",
                "projectId": 3
              },
              "required": true,
              "options": [],
              "canEdit": true
            },
            "toolType": {
              "required": true,
              "canEdit": false,
              "blocked": false,
              "options": []
            },
            "toolName": {
              "required": true,
              "canEdit": false,
              "blocked": false,
              "options": []
            }
          },
          "instances": {
            "sourceOfRule": {
              "scope": "project",
              "projectId": 3
            },
            "canAdd": true,
            "locked": [
              "HOME",
              "USER"
            ]
          }
        },
        "image": {
          "required": true,
          "canEdit": false,
          "blocked": false,
          "options": []
        },
        "imagePullPolicy": {
          "required": true,
          "canEdit": false,
          "blocked": false,
          "options": []
        },
        "imagePullSecrets": {
          "attributes": {
            "name": {
              "required": true,
              "canEdit": false,
              "blocked": false,
              "options": []
            },
            "userCredentials": {
              "sourceOfRule": {
                "scope": "project",
                "projectId": 3
              },
              "required": true,
              "canEdit": true
            }
          },
          "instances": {
            "sourceOfRule": {
              "scope": "project",
              "projectId": 3
            },
            "canAdd": true,
            "locked": [
              "HOME",
              "USER"
            ]
          }
        },
        "labels": {
          "instances": {
            "sourceOfRule": {
              "scope": "project",
              "projectId": 3
            },
            "canAdd": true,
            "locked": [
              "HOME",
              "USER"
            ]
          }
        },
        "nodeAffinityRequired": {
          "sourceOfRule": {
            "scope": "project",
            "projectId": 3
          },
          "required": true,
          "canEdit": true
        },
        "nodePools": {
          "sourceOfRule": {
            "scope": "project",
            "projectId": 3
          },
          "required": true,
          "options": [],
          "canEdit": true
        },
        "nodeType": {
          "required": true,
          "canEdit": false,
          "blocked": false,
          "options": []
        },
        "podAffinity": {
          "type": {
            "required": true,
            "canEdit": false,
            "blocked": false,
            "options": []
          },
          "key": {
            "required": true,
            "canEdit": false,
            "blocked": false,
            "options": []
          }
        },
        "ports": {
          "attributes": {
            "container": {
              "sourceOfRule": {
                "scope": "project",
                "projectId": 3
              },
              "required": true,
              "canEdit": true,
              "min": 1,
              "max": 1,
              "step": 1,
              "defaultFrom": {
                "field": "text",
                "factor": 1
              }
            },
            "serviceType": {
              "required": true,
              "canEdit": false,
              "blocked": false,
              "options": []
            },
            "customExternalPort": {
              "sourceOfRule": {
                "scope": "project",
                "projectId": 3
              },
              "required": true,
              "canEdit": true
            },
            "external": {
              "sourceOfRule": {
                "scope": "project",
                "projectId": 3
              },
              "required": true,
              "canEdit": true,
              "min": 1,
              "max": 1,
              "step": 1,
              "defaultFrom": {
                "field": "text",
                "factor": 1
              }
            },
            "toolType": {
              "required": true,
              "canEdit": false,
              "blocked": false,
              "options": []
            },
            "toolName": {
              "required": true,
              "canEdit": false,
              "blocked": false,
              "options": []
            }
          },
          "instances": {
            "sourceOfRule": {
              "scope": "project",
              "projectId": 3
            },
            "canAdd": true,
            "locked": [
              "HOME",
              "USER"
            ]
          }
        },
        "preemptibility": {
          "required": true,
          "canEdit": false,
          "blocked": false,
          "options": []
        },
        "priorityClass": {
          "required": true,
          "canEdit": false,
          "blocked": false,
          "options": []
        },
        "probes": {
          "readiness": {
            "initialDelaySeconds": {
              "sourceOfRule": {
                "scope": "project",
                "projectId": 3
              },
              "required": true,
              "canEdit": true,
              "min": 1,
              "max": 1,
              "step": 1,
              "defaultFrom": {
                "field": "text",
                "factor": 1
              }
            },
            "periodSeconds": {
              "sourceOfRule": {
                "scope": "project",
                "projectId": 3
              },
              "required": true,
              "canEdit": true,
              "min": 1,
              "max": 1,
              "step": 1,
              "defaultFrom": {
                "field": "text",
                "factor": 1
              }
            },
            "timeoutSeconds": {
              "sourceOfRule": {
                "scope": "project",
                "projectId": 3
              },
              "required": true,
              "canEdit": true,
              "min": 1,
              "max": 1,
              "step": 1,
              "defaultFrom": {
                "field": "text",
                "factor": 1
              }
            },
            "successThreshold": {
              "sourceOfRule": {
                "scope": "project",
                "projectId": 3
              },
              "required": true,
              "canEdit": true,
              "min": 1,
              "max": 1,
              "step": 1,
              "defaultFrom": {
                "field": "text",
                "factor": 1
              }
            },
            "failureThreshold": {
              "sourceOfRule": {
                "scope": "project",
                "projectId": 3
              },
              "required": true,
              "canEdit": true,
              "min": 1,
              "max": 1,
              "step": 1,
              "defaultFrom": {
                "field": "text",
                "factor": 1
              }
            },
            "handler": {
              "httpGet": {
                "path": {
                  "required": true,
                  "canEdit": false,
                  "blocked": false,
                  "options": []
                },
                "port": {
                  "sourceOfRule": {
                    "scope": "project",
                    "projectId": 3
                  },
                  "required": true,
                  "canEdit": true,
                  "min": 1,
                  "max": 1,
                  "step": 1,
                  "defaultFrom": {
                    "field": "text",
                    "factor": 1
                  }
                },
                "host": {
                  "required": true,
                  "canEdit": false,
                  "blocked": false,
                  "options": []
                },
                "scheme": {
                  "required": true,
                  "canEdit": false,
                  "blocked": false,
                  "options": []
                }
              }
            }
          }
        },
        "relatedUrls": {
          "attributes": {
            "url": {
              "required": true,
              "canEdit": false,
              "blocked": false,
              "options": []
            },
            "type": {
              "required": true,
              "canEdit": false,
              "blocked": false,
              "options": []
            },
            "name": {
              "required": true,
              "canEdit": false,
              "blocked": false,
              "options": []
            }
          },
          "instances": {
            "sourceOfRule": {
              "scope": "project",
              "projectId": 3
            },
            "canAdd": true,
            "locked": [
              "HOME",
              "USER"
            ]
          }
        },
        "restartPolicy": {
          "required": true,
          "canEdit": false,
          "blocked": false,
          "options": []
        },
        "security": {
          "allowPrivilegeEscalation": {
            "sourceOfRule": {
              "scope": "project",
              "projectId": 3
            },
            "required": true,
            "canEdit": true
          },
          "capabilities": {
            "sourceOfRule": {
              "scope": "project",
              "projectId": 3
            },
            "required": true,
            "options": [],
            "canEdit": true
          },
          "hostIpc": {
            "sourceOfRule": {
              "scope": "project",
              "projectId": 3
            },
            "required": true,
            "canEdit": true
          },
          "hostNetwork": {
            "sourceOfRule": {
              "scope": "project",
              "projectId": 3
            },
            "required": true,
            "canEdit": true
          },
          "readOnlyRootFilesystem": {
            "sourceOfRule": {
              "scope": "project",
              "projectId": 3
            },
            "required": true,
            "canEdit": true
          },
          "runAsGid": {
            "sourceOfRule": {
              "scope": "project",
              "projectId": 3
            },
            "canEdit": true,
            "min": 1,
            "max": 1,
            "step": 1,
            "defaultFrom": {
              "field": "text",
              "factor": 1
            }
          },
          "runAsNonRoot": {
            "sourceOfRule": {
              "scope": "project",
              "projectId": 3
            },
            "required": true,
            "canEdit": true
          },
          "runAsUid": {
            "sourceOfRule": {
              "scope": "project",
              "projectId": 3
            },
            "canEdit": true,
            "min": 1,
            "max": 1,
            "step": 1,
            "defaultFrom": {
              "field": "text",
              "factor": 1
            }
          },
          "seccompProfileType": {
            "required": true,
            "canEdit": false,
            "blocked": false,
            "options": []
          },
          "supplementalGroups": {
            "required": true,
            "canEdit": false,
            "blocked": false,
            "options": []
          },
          "uidGidSource": {
            "required": true,
            "canEdit": false,
            "blocked": false,
            "options": []
          }
        },
        "stdin": {
          "sourceOfRule": {
            "scope": "project",
            "projectId": 3
          },
          "required": true,
          "canEdit": true
        },
        "storage": {
          "configMapVolume": {
            "attributes": {
              "configMap": {
                "required": true,
                "canEdit": false,
                "blocked": false,
                "options": []
              },
              "mountPath": {
                "required": true,
                "canEdit": false,
                "blocked": false,
                "options": []
              },
              "subPath": {
                "required": true,
                "canEdit": false,
                "blocked": false,
                "options": []
              },
              "defaultMode": {
                "required": true,
                "canEdit": false,
                "blocked": false,
                "options": []
              }
            },
            "instances": {
              "sourceOfRule": {
                "scope": "project",
                "projectId": 3
              },
              "canAdd": true,
              "locked": [
                "HOME",
                "USER"
              ]
            }
          },
          "dataVolume": {
            "attributes": {
              "id": {
                "required": true,
                "canEdit": false,
                "blocked": false,
                "options": []
              },
              "mountPath": {
                "required": true,
                "canEdit": false,
                "blocked": false,
                "options": []
              }
            },
            "instances": {
              "sourceOfRule": {
                "scope": "project",
                "projectId": 3
              },
              "canAdd": true,
              "locked": [
                "HOME",
                "USER"
              ]
            }
          },
          "emptyDirVolume": {
            "attributes": {
              "path": {
                "required": true,
                "canEdit": false,
                "blocked": false,
                "options": []
              },
              "medium": {
                "required": true,
                "canEdit": false,
                "blocked": false,
                "options": []
              },
              "sizeLimit": {
                "required": true,
                "canEdit": false,
                "blocked": false,
                "options": []
              }
            },
            "instances": {
              "sourceOfRule": {
                "scope": "project",
                "projectId": 3
              },
              "canAdd": true,
              "locked": [
                "HOME",
                "USER"
              ]
            }
          },
          "git": {
            "attributes": {
              "repository": {
                "required": true,
                "canEdit": false,
                "blocked": false,
                "options": []
              },
              "branch": {
                "required": true,
                "canEdit": false,
                "blocked": false,
                "options": []
              },
              "revision": {
                "required": true,
                "canEdit": false,
                "blocked": false,
                "options": []
              },
              "path": {
                "required": true,
                "canEdit": false,
                "blocked": false,
                "options": []
              }
            },
            "instances": {
              "sourceOfRule": {
                "scope": "project",
                "projectId": 3
              },
              "canAdd": true,
              "locked": [
                "HOME",
                "USER"
              ]
            }
          },
          "hostPath": {
            "attributes": {
              "path": {
                "required": true,
                "canEdit": false,
                "blocked": false,
                "options": []
              },
              "readOnly": {
                "sourceOfRule": {
                  "scope": "project",
                  "projectId": 3
                },
                "required": true,
                "canEdit": true
              },
              "mountPath": {
                "required": true,
                "canEdit": false,
                "blocked": false,
                "options": []
              },
              "mountPropagation": {
                "required": true,
                "canEdit": false,
                "blocked": false,
                "options": []
              }
            },
            "instances": {
              "sourceOfRule": {
                "scope": "project",
                "projectId": 3
              },
              "canAdd": true,
              "locked": [
                "HOME",
                "USER"
              ]
            }
          },
          "nfs": {
            "attributes": {
              "path": {
                "required": true,
                "canEdit": false,
                "blocked": false,
                "options": []
              },
              "readOnly": {
                "sourceOfRule": {
                  "scope": "project",
                  "projectId": 3
                },
                "required": true,
                "canEdit": true
              },
              "server": {
                "required": true,
                "canEdit": false,
                "blocked": false,
                "options": []
              },
              "mountPath": {
                "required": true,
                "canEdit": false,
                "blocked": false,
                "options": []
              }
            },
            "instances": {
              "sourceOfRule": {
                "scope": "project",
                "projectId": 3
              },
              "canAdd": true,
              "locked": [
                "HOME",
                "USER"
              ]
            }
          },
          "pvc": {
            "attributes": {
              "claimName": {
                "required": true,
                "canEdit": false,
                "blocked": false,
                "options": []
              },
              "path": {
                "required": true,
                "canEdit": false,
                "blocked": false,
                "options": []
              },
              "readOnly": {
                "sourceOfRule": {
                  "scope": "project",
                  "projectId": 3
                },
                "required": true,
                "canEdit": true
              },
              "claimInfo": {
                "size": {
                  "required": true,
                  "canEdit": false,
                  "blocked": false,
                  "options": []
                },
                "storageClass": {
                  "required": true,
                  "canEdit": false,
                  "blocked": false,
                  "options": []
                },
                "accessModes": {
                  "readWriteOnce": {
                    "sourceOfRule": {
                      "scope": "project",
                      "projectId": 3
                    },
                    "required": true,
                    "canEdit": true
                  },
                  "readOnlyMany": {
                    "sourceOfRule": {
                      "scope": "project",
                      "projectId": 3
                    },
                    "required": true,
                    "canEdit": true
                  },
                  "readWriteMany": {
                    "sourceOfRule": {
                      "scope": "project",
                      "projectId": 3
                    },
                    "required": true,
                    "canEdit": true
                  }
                }
              }
            },
            "instances": {
              "sourceOfRule": {
                "scope": "project",
                "projectId": 3
              },
              "canAdd": true,
              "locked": [
                "HOME",
                "USER"
              ]
            }
          },
          "s3": {
            "attributes": {
              "bucket": {
                "required": true,
                "canEdit": false,
                "blocked": false,
                "options": []
              },
              "path": {
                "required": true,
                "canEdit": false,
                "blocked": false,
                "options": []
              },
              "url": {
                "required": true,
                "canEdit": false,
                "blocked": false,
                "options": []
              }
            },
            "instances": {
              "sourceOfRule": {
                "scope": "project",
                "projectId": 3
              },
              "canAdd": true,
              "locked": [
                "HOME",
                "USER"
              ]
            }
          },
          "secretVolume": {
            "attributes": {
              "secret": {
                "required": true,
                "canEdit": false,
                "blocked": false,
                "options": []
              },
              "mountPath": {
                "required": true,
                "canEdit": false,
                "blocked": false,
                "options": []
              },
              "defaultMode": {
                "required": true,
                "canEdit": false,
                "blocked": false,
                "options": []
              }
            },
            "instances": {
              "sourceOfRule": {
                "scope": "project",
                "projectId": 3
              },
              "canAdd": true,
              "locked": [
                "HOME",
                "USER"
              ]
            }
          }
        },
        "terminateAfterPreemption": {
          "sourceOfRule": {
            "scope": "project",
            "projectId": 3
          },
          "required": true,
          "canEdit": true
        },
        "terminationGracePeriodSeconds": {
          "sourceOfRule": {
            "scope": "project",
            "projectId": 3
          },
          "required": true,
          "canEdit": true,
          "min": 1,
          "max": 1,
          "step": 1,
          "defaultFrom": {
            "field": "text",
            "factor": 1
          }
        },
        "tolerations": {
          "attributes": {
            "operator": {
              "required": true,
              "canEdit": false,
              "blocked": false,
              "options": []
            },
            "key": {
              "required": true,
              "canEdit": false,
              "blocked": false,
              "options": []
            },
            "value": {
              "required": true,
              "canEdit": false,
              "blocked": false,
              "options": []
            },
            "effect": {
              "required": true,
              "canEdit": false,
              "blocked": false,
              "options": []
            },
            "seconds": {
              "sourceOfRule": {
                "scope": "project",
                "projectId": 3
              },
              "required": true,
              "canEdit": true,
              "min": 1,
              "max": 1,
              "step": 1,
              "defaultFrom": {
                "field": "text",
                "factor": 1
              }
            },
            "exclude": {
              "sourceOfRule": {
                "scope": "project",
                "projectId": 3
              },
              "required": true,
              "canEdit": true
            }
          },
          "instances": {
            "sourceOfRule": {
              "scope": "project",
              "projectId": 3
            },
            "canAdd": true,
            "locked": [
              "HOME",
              "USER"
            ]
          }
        },
        "tty": {
          "sourceOfRule": {
            "scope": "project",
            "projectId": 3
          },
          "required": true,
          "canEdit": true
        },
        "workingDir": {
          "required": true,
          "canEdit": false,
          "blocked": false,
          "options": []
        },
        "cleanPodPolicy": {
          "required": true,
          "canEdit": false,
          "blocked": false,
          "options": []
        },
        "distributedFramework": {
          "required": true,
          "canEdit": false,
          "blocked": false,
          "options": []
        },
        "maxReplicas": {
          "sourceOfRule": {
            "scope": "project",
            "projectId": 3
          },
          "required": true,
          "canEdit": true,
          "min": 1,
          "max": 1,
          "step": 1,
          "defaultFrom": {
            "field": "text",
            "factor": 1
          }
        },
        "minReplicas": {
          "sourceOfRule": {
            "scope": "project",
            "projectId": 3
          },
          "required": true,
          "canEdit": true,
          "min": 1,
          "max": 1,
          "step": 1,
          "defaultFrom": {
            "field": "text",
            "factor": 1
          }
        },
        "mpiLauncherCreationPolicy": {
          "required": true,
          "canEdit": false,
          "blocked": false,
          "options": []
        },
        "numWorkers": {
          "sourceOfRule": {
            "scope": "project",
            "projectId": 3
          },
          "required": true,
          "canEdit": true,
          "min": 1,
          "max": 1,
          "step": 1,
          "defaultFrom": {
            "field": "text",
            "factor": 1
          }
        },
        "slotsPerWorker": {
          "sourceOfRule": {
            "scope": "project",
            "projectId": 3
          },
          "required": true,
          "canEdit": true,
          "min": 1,
          "max": 1,
          "step": 1,
          "defaultFrom": {
            "field": "text",
            "factor": 1
          }
        },
        "sshAuthMountPath": {
          "required": true,
          "canEdit": false,
          "blocked": false,
          "options": []
        }
      }
    },
    "imposedAssets": {
      "worker": [
        "123e4567-e89b-12d3-a456-426614174000"
      ],
      "master": [
        "123e4567-e89b-12d3-a456-426614174000"
      ]
    },
    "status": {
      "validation": {
        "errorMessage": "text"
      }
    }
  },
  "effectiveUpdatedAt": "2026-01-01T00:00:00.000Z"
}

Overwrite a distributed policy.

put

Use to apply a distributed policy for a given organizational unit.

Authorizations
AuthorizationstringRequired

Bearer authentication

Query parameters
validateOnlybooleanOptional

Validate the given policy payload without applying it

approveClusterDeletionbooleanOptional

Required when modifying or deleting a policy if the tenant includes one or more clusters running version 2.20 or earlier. In such cases, the platform must delete the policy from the affected clusters. This flag indicates that the administrator approves this deletion.

Body
Responses
200

Policy applied.

application/json
effectiveUpdatedAtstring · date-time · min: 1Optional

The time at which an event occurred. e.g. the time an effective policy has been updated

put/api/v2/policy/distributed
PUT /api/v2/policy/distributed HTTP/1.1
Host: app.run.ai
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 43564

{
  "meta": {
    "scope": "system",
    "projectId": 1,
    "departmentId": 2,
    "clusterId": "71f69d83-ba66-4822-adf5-55ce55efd210",
    "name": "my-policy"
  },
  "policy": {
    "defaults": {
      "master": {
        "annotations": {
          "instances": [
            {
              "name": "billing",
              "value": "my-billing-unit",
              "exclude": false
            }
          ]
        },
        "args": "-x my-script.py",
        "autoDeletionTimeAfterCompletionSeconds": 15,
        "backoffLimit": 3,
        "category": "text",
        "command": "python",
        "compute": {
          "cpuCoreLimit": 2,
          "cpuCoreRequest": 0.5,
          "cpuMemoryLimit": "30M",
          "cpuMemoryRequest": "20M",
          "extendedResources": {
            "attributes": {
              "resource": "hardware-vendor.example/foo",
              "quantity": 2,
              "exclude": false
            },
            "instances": [
              {
                "resource": "hardware-vendor.example/foo",
                "quantity": 2,
                "exclude": false
              }
            ]
          },
          "gpuDevicesRequest": 1,
          "gpuMemoryLimit": "10M",
          "gpuMemoryRequest": "10M",
          "gpuPortionLimit": 0.5,
          "gpuPortionRequest": 0.5,
          "gpuRequestType": "portion",
          "largeShmRequest": false
        },
        "createHomeDir": true,
        "environmentVariables": {
          "instances": [
            {
              "name": "HOME",
              "value": "/home/my-folder",
              "secret": {
                "name": "postgress_secret",
                "key": "POSTGRES_PASSWORD"
              },
              "configMap": {
                "name": "my-config-map",
                "key": "MY_POSTGRES_SCHEMA"
              },
              "podFieldRef": {
                "path": "metadata.name"
              },
              "userCredential": {
                "name": "my_postgres_user_and_password",
                "key": "POSTGRES_PASSWORD"
              },
              "exclude": false,
              "description": "Home directory of the user."
            }
          ]
        },
        "exposedUrls": {
          "attributes": {
            "container": 8080,
            "url": "https://my-url.com",
            "authorizationType": "authenticatedUsers",
            "authorizedUsers": [
              "user-a",
              "user-b"
            ],
            "authorizedGroups": [
              "group-a",
              "group-b"
            ],
            "toolType": "jupyter",
            "toolName": "my-pytorch",
            "name": "url-instance-a",
            "exclude": false
          },
          "instances": [
            {
              "container": 8080,
              "url": "https://my-url.com",
              "authorizationType": "authenticatedUsers",
              "authorizedUsers": [
                "user-a",
                "user-b"
              ],
              "authorizedGroups": [
                "group-a",
                "group-b"
              ],
              "toolType": "jupyter",
              "toolName": "my-pytorch",
              "name": "url-instance-a",
              "exclude": false
            }
          ]
        },
        "image": "python:3.8",
        "imagePullPolicy": "Always",
        "imagePullSecrets": {
          "instances": [
            {
              "name": "text",
              "userCredential": true,
              "exclude": false
            }
          ]
        },
        "labels": {
          "instances": [
            {
              "name": "stage",
              "value": "initial-research",
              "exclude": false
            }
          ]
        },
        "nodeAffinityRequired": {
          "nodeSelectorTerms": [
            {
              "matchExpressions": [
                {
                  "key": "text",
                  "operator": "In",
                  "values": [
                    "text"
                  ]
                }
              ]
            }
          ]
        },
        "nodePools": [
          "my-node-pool-a",
          "my-node-pool-b"
        ],
        "nodeType": "my-node-type",
        "podAffinity": {
          "type": "Required",
          "key": "text"
        },
        "ports": {
          "attributes": {
            "container": 8080,
            "serviceType": "LoadBalancer",
            "external": 30080,
            "toolType": "pytorch",
            "toolName": "my-pytorch",
            "name": "port-instance-a",
            "exclude": false
          },
          "instances": [
            {
              "container": 8080,
              "serviceType": "LoadBalancer",
              "external": 30080,
              "toolType": "pytorch",
              "toolName": "my-pytorch",
              "name": "port-instance-a",
              "exclude": false
            }
          ]
        },
        "preemptibility": "preemptible",
        "priorityClass": "text",
        "probes": {
          "readiness": {
            "initialDelaySeconds": 1,
            "periodSeconds": 1,
            "timeoutSeconds": 1,
            "successThreshold": 1,
            "failureThreshold": 1,
            "handler": {
              "httpGet": {
                "path": "/",
                "port": 1,
                "host": "example.com",
                "scheme": "HTTP"
              }
            }
          }
        },
        "relatedUrls": {
          "attributes": {
            "url": "https://my-url.com",
            "type": "wandb",
            "name": "url-instance-a",
            "exclude": false
          },
          "instances": [
            {
              "url": "https://my-url.com",
              "type": "wandb",
              "name": "url-instance-a",
              "exclude": false
            }
          ]
        },
        "restartPolicy": "Always",
        "security": {
          "allowPrivilegeEscalation": false,
          "capabilities": [
            "CHOWN",
            "KILL"
          ],
          "hostIpc": false,
          "hostNetwork": false,
          "readOnlyRootFilesystem": false,
          "runAsGid": 30,
          "runAsNonRoot": true,
          "runAsUid": 500,
          "seccompProfileType": "RuntimeDefault",
          "supplementalGroups": "2,3,5,8",
          "uidGidSource": "fromTheImage"
        },
        "stdin": true,
        "storage": {
          "configMapVolume": {
            "attributes": {
              "name": "storage-instance-a",
              "configMap": "text",
              "mountPath": "text",
              "subPath": "text",
              "defaultMode": "0644",
              "exclude": false
            },
            "instances": [
              {
                "name": "storage-instance-a",
                "configMap": "text",
                "mountPath": "text",
                "subPath": "text",
                "defaultMode": "0644",
                "exclude": false
              }
            ]
          },
          "dataVolume": {
            "attributes": {
              "id": "123e4567-e89b-12d3-a456-426614174000",
              "mountPath": "/mnt/data",
              "exclude": false
            },
            "instances": [
              {
                "id": "123e4567-e89b-12d3-a456-426614174000",
                "mountPath": "/mnt/data",
                "exclude": false
              }
            ]
          },
          "emptyDirVolume": {
            "attributes": {
              "name": "storage-instance-a",
              "path": "/mnt/emptydir",
              "medium": "text",
              "sizeLimit": "1G",
              "exclude": false
            },
            "instances": [
              {
                "name": "storage-instance-a",
                "path": "/mnt/emptydir",
                "medium": "text",
                "sizeLimit": "1G",
                "exclude": false
              }
            ]
          },
          "git": {
            "attributes": {
              "name": "storage-instance-a",
              "repository": "https://github.com/my-git/my-repo",
              "branch": "main",
              "revision": "text",
              "path": "/container/my-repository",
              "passwordSecret": "my-password-secret",
              "secretKeyOfUser": "User",
              "secretKeyOfPassword": "Password",
              "exclude": false,
              "secretRef": {
                "name": "my-password-secret",
                "authenticationMethod": "password",
                "secretKeyOfUser": "User",
                "secretKeyOfPassword": "Password"
              }
            },
            "instances": [
              {
                "name": "storage-instance-a",
                "repository": "https://github.com/my-git/my-repo",
                "branch": "main",
                "revision": "text",
                "path": "/container/my-repository",
                "passwordSecret": "my-password-secret",
                "secretKeyOfUser": "User",
                "secretKeyOfPassword": "Password",
                "exclude": false,
                "secretRef": {
                  "name": "my-password-secret",
                  "authenticationMethod": "password",
                  "secretKeyOfUser": "User",
                  "secretKeyOfPassword": "Password"
                }
              }
            ]
          },
          "hostPath": {
            "attributes": {
              "name": "storage-instance-a",
              "path": "/container/directory",
              "readOnly": true,
              "mountPath": "/local/directory",
              "mountPropagation": "None",
              "exclude": false
            },
            "instances": [
              {
                "name": "storage-instance-a",
                "path": "/container/directory",
                "readOnly": true,
                "mountPath": "/local/directory",
                "mountPropagation": "None",
                "exclude": false
              }
            ]
          },
          "nfs": {
            "attributes": {
              "name": "storage-instance-a",
              "path": "/container/nfs",
              "readOnly": true,
              "server": "my.nfs.com",
              "mountPath": "/local/nfs",
              "exclude": false
            },
            "instances": [
              {
                "name": "storage-instance-a",
                "path": "/container/nfs",
                "readOnly": true,
                "server": "my.nfs.com",
                "mountPath": "/local/nfs",
                "exclude": false
              }
            ]
          },
          "pvc": {
            "attributes": {
              "name": "storage-instance-a",
              "path": "/container/my-claim",
              "existingPvc": false,
              "claimName": "my-claim",
              "readOnly": false,
              "ephemeral": false,
              "claimInfo": {
                "size": "1G",
                "storageClass": "my-storage-class",
                "accessModes": {
                  "readWriteOnce": true,
                  "readOnlyMany": false,
                  "readWriteMany": false
                },
                "volumeMode": "Filesystem",
                "addedAttrValues": [
                  {
                    "key": "dnsname",
                    "value": "my.dns.com"
                  }
                ]
              },
              "dataSharing": false,
              "exclude": false
            },
            "instances": [
              {
                "name": "storage-instance-a",
                "path": "/container/my-claim",
                "existingPvc": false,
                "claimName": "my-claim",
                "readOnly": false,
                "ephemeral": false,
                "claimInfo": {
                  "size": "1G",
                  "storageClass": "my-storage-class",
                  "accessModes": {
                    "readWriteOnce": true,
                    "readOnlyMany": false,
                    "readWriteMany": false
                  },
                  "volumeMode": "Filesystem",
                  "addedAttrValues": [
                    {
                      "key": "dnsname",
                      "value": "my.dns.com"
                    }
                  ]
                },
                "dataSharing": false,
                "exclude": false
              }
            ]
          },
          "s3": {
            "attributes": {
              "name": "storage-instance-a",
              "bucket": "my-bucket",
              "path": "/container/my-bucket",
              "url": "https://s3.amazonaws.com",
              "accessKeySecret": "my-access-key-secret",
              "secretKeyOfAccessKeyId": "AccessKeyId",
              "secretKeyOfSecretKey": "SecretKey",
              "exclude": false
            },
            "instances": [
              {
                "name": "storage-instance-a",
                "bucket": "my-bucket",
                "path": "/container/my-bucket",
                "url": "https://s3.amazonaws.com",
                "accessKeySecret": "my-access-key-secret",
                "secretKeyOfAccessKeyId": "AccessKeyId",
                "secretKeyOfSecretKey": "SecretKey",
                "exclude": false
              }
            ]
          },
          "secretVolume": {
            "attributes": {
              "name": "storage-instance-a",
              "mountPath": "text",
              "defaultMode": "0644",
              "secret": "text",
              "exclude": false
            },
            "instances": [
              {
                "name": "storage-instance-a",
                "mountPath": "text",
                "defaultMode": "0644",
                "secret": "text",
                "exclude": false
              }
            ]
          }
        },
        "terminateAfterPreemption": false,
        "terminationGracePeriodSeconds": 20,
        "tolerations": {
          "attributes": {
            "name": "text",
            "operator": "Equal",
            "key": "text",
            "value": "text",
            "effect": "NoSchedule",
            "seconds": 1,
            "exclude": false
          },
          "instances": [
            {
              "name": "text",
              "operator": "Equal",
              "key": "text",
              "value": "text",
              "effect": "NoSchedule",
              "seconds": 1,
              "exclude": false
            }
          ]
        },
        "tty": true,
        "workingDir": "/home/myfolder"
      },
      "worker": {
        "annotations": {
          "instances": [
            {
              "name": "billing",
              "value": "my-billing-unit",
              "exclude": false
            }
          ]
        },
        "args": "-x my-script.py",
        "autoDeletionTimeAfterCompletionSeconds": 15,
        "backoffLimit": 3,
        "category": "text",
        "command": "python",
        "compute": {
          "cpuCoreLimit": 2,
          "cpuCoreRequest": 0.5,
          "cpuMemoryLimit": "30M",
          "cpuMemoryRequest": "20M",
          "extendedResources": {
            "attributes": {
              "resource": "hardware-vendor.example/foo",
              "quantity": 2,
              "exclude": false
            },
            "instances": [
              {
                "resource": "hardware-vendor.example/foo",
                "quantity": 2,
                "exclude": false
              }
            ]
          },
          "gpuDevicesRequest": 1,
          "gpuMemoryLimit": "10M",
          "gpuMemoryRequest": "10M",
          "gpuPortionLimit": 0.5,
          "gpuPortionRequest": 0.5,
          "gpuRequestType": "portion",
          "largeShmRequest": false
        },
        "createHomeDir": true,
        "environmentVariables": {
          "instances": [
            {
              "name": "HOME",
              "value": "/home/my-folder",
              "secret": {
                "name": "postgress_secret",
                "key": "POSTGRES_PASSWORD"
              },
              "configMap": {
                "name": "my-config-map",
                "key": "MY_POSTGRES_SCHEMA"
              },
              "podFieldRef": {
                "path": "metadata.name"
              },
              "userCredential": {
                "name": "my_postgres_user_and_password",
                "key": "POSTGRES_PASSWORD"
              },
              "exclude": false,
              "description": "Home directory of the user."
            }
          ]
        },
        "exposedUrls": {
          "attributes": {
            "container": 8080,
            "url": "https://my-url.com",
            "authorizationType": "authenticatedUsers",
            "authorizedUsers": [
              "user-a",
              "user-b"
            ],
            "authorizedGroups": [
              "group-a",
              "group-b"
            ],
            "toolType": "jupyter",
            "toolName": "my-pytorch",
            "name": "url-instance-a",
            "exclude": false
          },
          "instances": [
            {
              "container": 8080,
              "url": "https://my-url.com",
              "authorizationType": "authenticatedUsers",
              "authorizedUsers": [
                "user-a",
                "user-b"
              ],
              "authorizedGroups": [
                "group-a",
                "group-b"
              ],
              "toolType": "jupyter",
              "toolName": "my-pytorch",
              "name": "url-instance-a",
              "exclude": false
            }
          ]
        },
        "image": "python:3.8",
        "imagePullPolicy": "Always",
        "imagePullSecrets": {
          "instances": [
            {
              "name": "text",
              "userCredential": true,
              "exclude": false
            }
          ]
        },
        "labels": {
          "instances": [
            {
              "name": "stage",
              "value": "initial-research",
              "exclude": false
            }
          ]
        },
        "nodeAffinityRequired": {
          "nodeSelectorTerms": [
            {
              "matchExpressions": [
                {
                  "key": "text",
                  "operator": "In",
                  "values": [
                    "text"
                  ]
                }
              ]
            }
          ]
        },
        "nodePools": [
          "my-node-pool-a",
          "my-node-pool-b"
        ],
        "nodeType": "my-node-type",
        "podAffinity": {
          "type": "Required",
          "key": "text"
        },
        "ports": {
          "attributes": {
            "container": 8080,
            "serviceType": "LoadBalancer",
            "external": 30080,
            "toolType": "pytorch",
            "toolName": "my-pytorch",
            "name": "port-instance-a",
            "exclude": false
          },
          "instances": [
            {
              "container": 8080,
              "serviceType": "LoadBalancer",
              "external": 30080,
              "toolType": "pytorch",
              "toolName": "my-pytorch",
              "name": "port-instance-a",
              "exclude": false
            }
          ]
        },
        "preemptibility": "preemptible",
        "priorityClass": "text",
        "probes": {
          "readiness": {
            "initialDelaySeconds": 1,
            "periodSeconds": 1,
            "timeoutSeconds": 1,
            "successThreshold": 1,
            "failureThreshold": 1,
            "handler": {
              "httpGet": {
                "path": "/",
                "port": 1,
                "host": "example.com",
                "scheme": "HTTP"
              }
            }
          }
        },
        "relatedUrls": {
          "attributes": {
            "url": "https://my-url.com",
            "type": "wandb",
            "name": "url-instance-a",
            "exclude": false
          },
          "instances": [
            {
              "url": "https://my-url.com",
              "type": "wandb",
              "name": "url-instance-a",
              "exclude": false
            }
          ]
        },
        "restartPolicy": "Always",
        "security": {
          "allowPrivilegeEscalation": false,
          "capabilities": [
            "CHOWN",
            "KILL"
          ],
          "hostIpc": false,
          "hostNetwork": false,
          "readOnlyRootFilesystem": false,
          "runAsGid": 30,
          "runAsNonRoot": true,
          "runAsUid": 500,
          "seccompProfileType": "RuntimeDefault",
          "supplementalGroups": "2,3,5,8",
          "uidGidSource": "fromTheImage"
        },
        "stdin": true,
        "storage": {
          "configMapVolume": {
            "attributes": {
              "name": "storage-instance-a",
              "configMap": "text",
              "mountPath": "text",
              "subPath": "text",
              "defaultMode": "0644",
              "exclude": false
            },
            "instances": [
              {
                "name": "storage-instance-a",
                "configMap": "text",
                "mountPath": "text",
                "subPath": "text",
                "defaultMode": "0644",
                "exclude": false
              }
            ]
          },
          "dataVolume": {
            "attributes": {
              "id": "123e4567-e89b-12d3-a456-426614174000",
              "mountPath": "/mnt/data",
              "exclude": false
            },
            "instances": [
              {
                "id": "123e4567-e89b-12d3-a456-426614174000",
                "mountPath": "/mnt/data",
                "exclude": false
              }
            ]
          },
          "emptyDirVolume": {
            "attributes": {
              "name": "storage-instance-a",
              "path": "/mnt/emptydir",
              "medium": "text",
              "sizeLimit": "1G",
              "exclude": false
            },
            "instances": [
              {
                "name": "storage-instance-a",
                "path": "/mnt/emptydir",
                "medium": "text",
                "sizeLimit": "1G",
                "exclude": false
              }
            ]
          },
          "git": {
            "attributes": {
              "name": "storage-instance-a",
              "repository": "https://github.com/my-git/my-repo",
              "branch": "main",
              "revision": "text",
              "path": "/container/my-repository",
              "passwordSecret": "my-password-secret",
              "secretKeyOfUser": "User",
              "secretKeyOfPassword": "Password",
              "exclude": false,
              "secretRef": {
                "name": "my-password-secret",
                "authenticationMethod": "password",
                "secretKeyOfUser": "User",
                "secretKeyOfPassword": "Password"
              }
            },
            "instances": [
              {
                "name": "storage-instance-a",
                "repository": "https://github.com/my-git/my-repo",
                "branch": "main",
                "revision": "text",
                "path": "/container/my-repository",
                "passwordSecret": "my-password-secret",
                "secretKeyOfUser": "User",
                "secretKeyOfPassword": "Password",
                "exclude": false,
                "secretRef": {
                  "name": "my-password-secret",
                  "authenticationMethod": "password",
                  "secretKeyOfUser": "User",
                  "secretKeyOfPassword": "Password"
                }
              }
            ]
          },
          "hostPath": {
            "attributes": {
              "name": "storage-instance-a",
              "path": "/container/directory",
              "readOnly": true,
              "mountPath": "/local/directory",
              "mountPropagation": "None",
              "exclude": false
            },
            "instances": [
              {
                "name": "storage-instance-a",
                "path": "/container/directory",
                "readOnly": true,
                "mountPath": "/local/directory",
                "mountPropagation": "None",
                "exclude": false
              }
            ]
          },
          "nfs": {
            "attributes": {
              "name": "storage-instance-a",
              "path": "/container/nfs",
              "readOnly": true,
              "server": "my.nfs.com",
              "mountPath": "/local/nfs",
              "exclude": false
            },
            "instances": [
              {
                "name": "storage-instance-a",
                "path": "/container/nfs",
                "readOnly": true,
                "server": "my.nfs.com",
                "mountPath": "/local/nfs",
                "exclude": false
              }
            ]
          },
          "pvc": {
            "attributes": {
              "name": "storage-instance-a",
              "path": "/container/my-claim",
              "existingPvc": false,
              "claimName": "my-claim",
              "readOnly": false,
              "ephemeral": false,
              "claimInfo": {
                "size": "1G",
                "storageClass": "my-storage-class",
                "accessModes": {
                  "readWriteOnce": true,
                  "readOnlyMany": false,
                  "readWriteMany": false
                },
                "volumeMode": "Filesystem",
                "addedAttrValues": [
                  {
                    "key": "dnsname",
                    "value": "my.dns.com"
                  }
                ]
              },
              "dataSharing": false,
              "exclude": false
            },
            "instances": [
              {
                "name": "storage-instance-a",
                "path": "/container/my-claim",
                "existingPvc": false,
                "claimName": "my-claim",
                "readOnly": false,
                "ephemeral": false,
                "claimInfo": {
                  "size": "1G",
                  "storageClass": "my-storage-class",
                  "accessModes": {
                    "readWriteOnce": true,
                    "readOnlyMany": false,
                    "readWriteMany": false
                  },
                  "volumeMode": "Filesystem",
                  "addedAttrValues": [
                    {
                      "key": "dnsname",
                      "value": "my.dns.com"
                    }
                  ]
                },
                "dataSharing": false,
                "exclude": false
              }
            ]
          },
          "s3": {
            "attributes": {
              "name": "storage-instance-a",
              "bucket": "my-bucket",
              "path": "/container/my-bucket",
              "url": "https://s3.amazonaws.com",
              "accessKeySecret": "my-access-key-secret",
              "secretKeyOfAccessKeyId": "AccessKeyId",
              "secretKeyOfSecretKey": "SecretKey",
              "exclude": false
            },
            "instances": [
              {
                "name": "storage-instance-a",
                "bucket": "my-bucket",
                "path": "/container/my-bucket",
                "url": "https://s3.amazonaws.com",
                "accessKeySecret": "my-access-key-secret",
                "secretKeyOfAccessKeyId": "AccessKeyId",
                "secretKeyOfSecretKey": "SecretKey",
                "exclude": false
              }
            ]
          },
          "secretVolume": {
            "attributes": {
              "name": "storage-instance-a",
              "mountPath": "text",
              "defaultMode": "0644",
              "secret": "text",
              "exclude": false
            },
            "instances": [
              {
                "name": "storage-instance-a",
                "mountPath": "text",
                "defaultMode": "0644",
                "secret": "text",
                "exclude": false
              }
            ]
          }
        },
        "terminateAfterPreemption": false,
        "terminationGracePeriodSeconds": 20,
        "tolerations": {
          "attributes": {
            "name": "text",
            "operator": "Equal",
            "key": "text",
            "value": "text",
            "effect": "NoSchedule",
            "seconds": 1,
            "exclude": false
          },
          "instances": [
            {
              "name": "text",
              "operator": "Equal",
              "key": "text",
              "value": "text",
              "effect": "NoSchedule",
              "seconds": 1,
              "exclude": false
            }
          ]
        },
        "tty": true,
        "workingDir": "/home/myfolder",
        "cleanPodPolicy": "None",
        "distributedFramework": "MPI",
        "maxReplicas": 1,
        "minReplicas": 1,
        "mpiLauncherCreationPolicy": "AtStartup",
        "numWorkers": 1,
        "slotsPerWorker": 1,
        "sshAuthMountPath": "/root/.ssh"
      }
    },
    "rules": {
      "master": {
        "annotations": {
          "instances": {
            "sourceOfRule": {
              "scope": "project",
              "projectId": 3
            },
            "canAdd": true,
            "locked": [
              "HOME",
              "USER"
            ]
          }
        },
        "args": {
          "required": true,
          "canEdit": false,
          "blocked": false,
          "options": []
        },
        "autoDeletionTimeAfterCompletionSeconds": {
          "sourceOfRule": {
            "scope": "project",
            "projectId": 3
          },
          "required": true,
          "canEdit": true,
          "min": 1,
          "max": 1,
          "step": 1,
          "defaultFrom": {
            "field": "text",
            "factor": 1
          }
        },
        "backoffLimit": {
          "sourceOfRule": {
            "scope": "project",
            "projectId": 3
          },
          "required": true,
          "canEdit": true,
          "min": 1,
          "max": 1,
          "step": 1,
          "defaultFrom": {
            "field": "text",
            "factor": 1
          }
        },
        "category": {
          "required": true,
          "canEdit": false,
          "blocked": false,
          "options": []
        },
        "command": {
          "required": true,
          "canEdit": false,
          "blocked": false,
          "options": []
        },
        "compute": {
          "cpuCoreLimit": {
            "sourceOfRule": {
              "scope": "project",
              "projectId": 3
            },
            "required": true,
            "canEdit": true,
            "min": 1,
            "max": 1,
            "step": 1,
            "defaultFrom": {
              "field": "text",
              "factor": 1
            }
          },
          "cpuCoreRequest": {
            "sourceOfRule": {
              "scope": "project",
              "projectId": 3
            },
            "required": true,
            "canEdit": true,
            "min": 1,
            "max": 1,
            "step": 1,
            "defaultFrom": {
              "field": "text",
              "factor": 1
            }
          },
          "cpuMemoryLimit": {
            "sourceOfRule": {
              "scope": "project",
              "projectId": 3
            },
            "required": true,
            "canEdit": true,
            "min": "text",
            "max": "text",
            "defaultFrom": {
              "field": "text",
              "factor": 1
            }
          },
          "cpuMemoryRequest": {
            "sourceOfRule": {
              "scope": "project",
              "projectId": 3
            },
            "required": true,
            "canEdit": true,
            "min": "text",
            "max": "text",
            "defaultFrom": {
              "field": "text",
              "factor": 1
            }
          },
          "extendedResources": {
            "attributes": {
              "quantity": {
                "required": true,
                "canEdit": false,
                "blocked": false,
                "options": []
              }
            },
            "instances": {
              "sourceOfRule": {
                "scope": "project",
                "projectId": 3
              },
              "canAdd": true,
              "locked": [
                "HOME",
                "USER"
              ]
            }
          },
          "gpuDevicesRequest": {
            "sourceOfRule": {
              "scope": "project",
              "projectId": 3
            },
            "required": true,
            "canEdit": true,
            "min": 1,
            "max": 1,
            "step": 1,
            "defaultFrom": {
              "field": "text",
              "factor": 1
            }
          },
          "gpuMemoryLimit": {
            "sourceOfRule": {
              "scope": "project",
              "projectId": 3
            },
            "required": true,
            "canEdit": true,
            "min": "text",
            "max": "text",
            "defaultFrom": {
              "field": "text",
              "factor": 1
            }
          },
          "gpuMemoryRequest": {
            "sourceOfRule": {
              "scope": "project",
              "projectId": 3
            },
            "required": true,
            "canEdit": true,
            "min": "text",
            "max": "text",
            "defaultFrom": {
              "field": "text",
              "factor": 1
            }
          },
          "gpuPortionLimit": {
            "sourceOfRule": {
              "scope": "project",
              "projectId": 3
            },
            "required": true,
            "canEdit": true,
            "min": 1,
            "max": 1,
            "step": 1,
            "defaultFrom": {
              "field": "text",
              "factor": 1
            }
          },
          "gpuPortionRequest": {
            "sourceOfRule": {
              "scope": "project",
              "projectId": 3
            },
            "required": true,
            "canEdit": true,
            "min": 1,
            "max": 1,
            "step": 1,
            "defaultFrom": {
              "field": "text",
              "factor": 1
            }
          },
          "gpuRequestType": {
            "required": true,
            "canEdit": false,
            "blocked": false,
            "options": []
          },
          "largeShmRequest": {
            "sourceOfRule": {
              "scope": "project",
              "projectId": 3
            },
            "required": true,
            "canEdit": true
          }
        },
        "createHomeDir": {
          "sourceOfRule": {
            "scope": "project",
            "projectId": 3
          },
          "required": true,
          "canEdit": true
        },
        "environmentVariables": {
          "instances": {
            "sourceOfRule": {
              "scope": "project",
              "projectId": 3
            },
            "canAdd": true,
            "locked": [
              "HOME",
              "USER"
            ]
          }
        },
        "exposedUrls": {
          "attributes": {
            "container": {
              "sourceOfRule": {
                "scope": "project",
                "projectId": 3
              },
              "required": true,
              "canEdit": true,
              "min": 1,
              "max": 1,
              "step": 1,
              "defaultFrom": {
                "field": "text",
                "factor": 1
              }
            },
            "customUrl": {
              "sourceOfRule": {
                "scope": "project",
                "projectId": 3
              },
              "required": true,
              "canEdit": true
            },
            "url": {
              "required": true,
              "canEdit": false,
              "blocked": false,
              "options": []
            },
            "authorizedUsers": {
              "sourceOfRule": {
                "scope": "project",
                "projectId": 3
              },
              "required": true,
              "options": [],
              "canEdit": true
            },
            "authorizedGroups": {
              "sourceOfRule": {
                "scope": "project",
                "projectId": 3
              },
              "required": true,
              "options": [],
              "canEdit": true
            },
            "toolType": {
              "required": true,
              "canEdit": false,
              "blocked": false,
              "options": []
            },
            "toolName": {
              "required": true,
              "canEdit": false,
              "blocked": false,
              "options": []
            }
          },
          "instances": {
            "sourceOfRule": {
              "scope": "project",
              "projectId": 3
            },
            "canAdd": true,
            "locked": [
              "HOME",
              "USER"
            ]
          }
        },
        "image": {
          "required": true,
          "canEdit": false,
          "blocked": false,
          "options": []
        },
        "imagePullPolicy": {
          "required": true,
          "canEdit": false,
          "blocked": false,
          "options": []
        },
        "imagePullSecrets": {
          "attributes": {
            "name": {
              "required": true,
              "canEdit": false,
              "blocked": false,
              "options": []
            },
            "userCredentials": {
              "sourceOfRule": {
                "scope": "project",
                "projectId": 3
              },
              "required": true,
              "canEdit": true
            }
          },
          "instances": {
            "sourceOfRule": {
              "scope": "project",
              "projectId": 3
            },
            "canAdd": true,
            "locked": [
              "HOME",
              "USER"
            ]
          }
        },
        "labels": {
          "instances": {
            "sourceOfRule": {
              "scope": "project",
              "projectId": 3
            },
            "canAdd": true,
            "locked": [
              "HOME",
              "USER"
            ]
          }
        },
        "nodeAffinityRequired": {
          "sourceOfRule": {
            "scope": "project",
            "projectId": 3
          },
          "required": true,
          "canEdit": true
        },
        "nodePools": {
          "sourceOfRule": {
            "scope": "project",
            "projectId": 3
          },
          "required": true,
          "options": [],
          "canEdit": true
        },
        "nodeType": {
          "required": true,
          "canEdit": false,
          "blocked": false,
          "options": []
        },
        "podAffinity": {
          "type": {
            "required": true,
            "canEdit": false,
            "blocked": false,
            "options": []
          },
          "key": {
            "required": true,
            "canEdit": false,
            "blocked": false,
            "options": []
          }
        },
        "ports": {
          "attributes": {
            "container": {
              "sourceOfRule": {
                "scope": "project",
                "projectId": 3
              },
              "required": true,
              "canEdit": true,
              "min": 1,
              "max": 1,
              "step": 1,
              "defaultFrom": {
                "field": "text",
                "factor": 1
              }
            },
            "serviceType": {
              "required": true,
              "canEdit": false,
              "blocked": false,
              "options": []
            },
            "customExternalPort": {
              "sourceOfRule": {
                "scope": "project",
                "projectId": 3
              },
              "required": true,
              "canEdit": true
            },
            "external": {
              "sourceOfRule": {
                "scope": "project",
                "projectId": 3
              },
              "required": true,
              "canEdit": true,
              "min": 1,
              "max": 1,
              "step": 1,
              "defaultFrom": {
                "field": "text",
                "factor": 1
              }
            },
            "toolType": {
              "required": true,
              "canEdit": false,
              "blocked": false,
              "options": []
            },
            "toolName": {
              "required": true,
              "canEdit": false,
              "blocked": false,
              "options": []
            }
          },
          "instances": {
            "sourceOfRule": {
              "scope": "project",
              "projectId": 3
            },
            "canAdd": true,
            "locked": [
              "HOME",
              "USER"
            ]
          }
        },
        "preemptibility": {
          "required": true,
          "canEdit": false,
          "blocked": false,
          "options": []
        },
        "priorityClass": {
          "required": true,
          "canEdit": false,
          "blocked": false,
          "options": []
        },
        "probes": {
          "readiness": {
            "initialDelaySeconds": {
              "sourceOfRule": {
                "scope": "project",
                "projectId": 3
              },
              "required": true,
              "canEdit": true,
              "min": 1,
              "max": 1,
              "step": 1,
              "defaultFrom": {
                "field": "text",
                "factor": 1
              }
            },
            "periodSeconds": {
              "sourceOfRule": {
                "scope": "project",
                "projectId": 3
              },
              "required": true,
              "canEdit": true,
              "min": 1,
              "max": 1,
              "step": 1,
              "defaultFrom": {
                "field": "text",
                "factor": 1
              }
            },
            "timeoutSeconds": {
              "sourceOfRule": {
                "scope": "project",
                "projectId": 3
              },
              "required": true,
              "canEdit": true,
              "min": 1,
              "max": 1,
              "step": 1,
              "defaultFrom": {
                "field": "text",
                "factor": 1
              }
            },
            "successThreshold": {
              "sourceOfRule": {
                "scope": "project",
                "projectId": 3
              },
              "required": true,
              "canEdit": true,
              "min": 1,
              "max": 1,
              "step": 1,
              "defaultFrom": {
                "field": "text",
                "factor": 1
              }
            },
            "failureThreshold": {
              "sourceOfRule": {
                "scope": "project",
                "projectId": 3
              },
              "required": true,
              "canEdit": true,
              "min": 1,
              "max": 1,
              "step": 1,
              "defaultFrom": {
                "field": "text",
                "factor": 1
              }
            },
            "handler": {
              "httpGet": {
                "path": {
                  "required": true,
                  "canEdit": false,
                  "blocked": false,
                  "options": []
                },
                "port": {
                  "sourceOfRule": {
                    "scope": "project",
                    "projectId": 3
                  },
                  "required": true,
                  "canEdit": true,
                  "min": 1,
                  "max": 1,
                  "step": 1,
                  "defaultFrom": {
                    "field": "text",
                    "factor": 1
                  }
                },
                "host": {
                  "required": true,
                  "canEdit": false,
                  "blocked": false,
                  "options": []
                },
                "scheme": {
                  "required": true,
                  "canEdit": false,
                  "blocked": false,
                  "options": []
                }
              }
            }
          }
        },
        "relatedUrls": {
          "attributes": {
            "url": {
              "required": true,
              "canEdit": false,
              "blocked": false,
              "options": []
            },
            "type": {
              "required": true,
              "canEdit": false,
              "blocked": false,
              "options": []
            },
            "name": {
              "required": true,
              "canEdit": false,
              "blocked": false,
              "options": []
            }
          },
          "instances": {
            "sourceOfRule": {
              "scope": "project",
              "projectId": 3
            },
            "canAdd": true,
            "locked": [
              "HOME",
              "USER"
            ]
          }
        },
        "restartPolicy": {
          "required": true,
          "canEdit": false,
          "blocked": false,
          "options": []
        },
        "security": {
          "allowPrivilegeEscalation": {
            "sourceOfRule": {
              "scope": "project",
              "projectId": 3
            },
            "required": true,
            "canEdit": true
          },
          "capabilities": {
            "sourceOfRule": {
              "scope": "project",
              "projectId": 3
            },
            "required": true,
            "options": [],
            "canEdit": true
          },
          "hostIpc": {
            "sourceOfRule": {
              "scope": "project",
              "projectId": 3
            },
            "required": true,
            "canEdit": true
          },
          "hostNetwork": {
            "sourceOfRule": {
              "scope": "project",
              "projectId": 3
            },
            "required": true,
            "canEdit": true
          },
          "readOnlyRootFilesystem": {
            "sourceOfRule": {
              "scope": "project",
              "projectId": 3
            },
            "required": true,
            "canEdit": true
          },
          "runAsGid": {
            "sourceOfRule": {
              "scope": "project",
              "projectId": 3
            },
            "canEdit": true,
            "min": 1,
            "max": 1,
            "step": 1,
            "defaultFrom": {
              "field": "text",
              "factor": 1
            }
          },
          "runAsNonRoot": {
            "sourceOfRule": {
              "scope": "project",
              "projectId": 3
            },
            "required": true,
            "canEdit": true
          },
          "runAsUid": {
            "sourceOfRule": {
              "scope": "project",
              "projectId": 3
            },
            "canEdit": true,
            "min": 1,
            "max": 1,
            "step": 1,
            "defaultFrom": {
              "field": "text",
              "factor": 1
            }
          },
          "seccompProfileType": {
            "required": true,
            "canEdit": false,
            "blocked": false,
            "options": []
          },
          "supplementalGroups": {
            "required": true,
            "canEdit": false,
            "blocked": false,
            "options": []
          },
          "uidGidSource": {
            "required": true,
            "canEdit": false,
            "blocked": false,
            "options": []
          }
        },
        "stdin": {
          "sourceOfRule": {
            "scope": "project",
            "projectId": 3
          },
          "required": true,
          "canEdit": true
        },
        "storage": {
          "configMapVolume": {
            "attributes": {
              "configMap": {
                "required": true,
                "canEdit": false,
                "blocked": false,
                "options": []
              },
              "mountPath": {
                "required": true,
                "canEdit": false,
                "blocked": false,
                "options": []
              },
              "subPath": {
                "required": true,
                "canEdit": false,
                "blocked": false,
                "options": []
              },
              "defaultMode": {
                "required": true,
                "canEdit": false,
                "blocked": false,
                "options": []
              }
            },
            "instances": {
              "sourceOfRule": {
                "scope": "project",
                "projectId": 3
              },
              "canAdd": true,
              "locked": [
                "HOME",
                "USER"
              ]
            }
          },
          "dataVolume": {
            "attributes": {
              "id": {
                "required": true,
                "canEdit": false,
                "blocked": false,
                "options": []
              },
              "mountPath": {
                "required": true,
                "canEdit": false,
                "blocked": false,
                "options": []
              }
            },
            "instances": {
              "sourceOfRule": {
                "scope": "project",
                "projectId": 3
              },
              "canAdd": true,
              "locked": [
                "HOME",
                "USER"
              ]
            }
          },
          "emptyDirVolume": {
            "attributes": {
              "path": {
                "required": true,
                "canEdit": false,
                "blocked": false,
                "options": []
              },
              "medium": {
                "required": true,
                "canEdit": false,
                "blocked": false,
                "options": []
              },
              "sizeLimit": {
                "required": true,
                "canEdit": false,
                "blocked": false,
                "options": []
              }
            },
            "instances": {
              "sourceOfRule": {
                "scope": "project",
                "projectId": 3
              },
              "canAdd": true,
              "locked": [
                "HOME",
                "USER"
              ]
            }
          },
          "git": {
            "attributes": {
              "repository": {
                "required": true,
                "canEdit": false,
                "blocked": false,
                "options": []
              },
              "branch": {
                "required": true,
                "canEdit": false,
                "blocked": false,
                "options": []
              },
              "revision": {
                "required": true,
                "canEdit": false,
                "blocked": false,
                "options": []
              },
              "path": {
                "required": true,
                "canEdit": false,
                "blocked": false,
                "options": []
              }
            },
            "instances": {
              "sourceOfRule": {
                "scope": "project",
                "projectId": 3
              },
              "canAdd": true,
              "locked": [
                "HOME",
                "USER"
              ]
            }
          },
          "hostPath": {
            "attributes": {
              "path": {
                "required": true,
                "canEdit": false,
                "blocked": false,
                "options": []
              },
              "readOnly": {
                "sourceOfRule": {
                  "scope": "project",
                  "projectId": 3
                },
                "required": true,
                "canEdit": true
              },
              "mountPath": {
                "required": true,
                "canEdit": false,
                "blocked": false,
                "options": []
              },
              "mountPropagation": {
                "required": true,
                "canEdit": false,
                "blocked": false,
                "options": []
              }
            },
            "instances": {
              "sourceOfRule": {
                "scope": "project",
                "projectId": 3
              },
              "canAdd": true,
              "locked": [
                "HOME",
                "USER"
              ]
            }
          },
          "nfs": {
            "attributes": {
              "path": {
                "required": true,
                "canEdit": false,
                "blocked": false,
                "options": []
              },
              "readOnly": {
                "sourceOfRule": {
                  "scope": "project",
                  "projectId": 3
                },
                "required": true,
                "canEdit": true
              },
              "server": {
                "required": true,
                "canEdit": false,
                "blocked": false,
                "options": []
              },
              "mountPath": {
                "required": true,
                "canEdit": false,
                "blocked": false,
                "options": []
              }
            },
            "instances": {
              "sourceOfRule": {
                "scope": "project",
                "projectId": 3
              },
              "canAdd": true,
              "locked": [
                "HOME",
                "USER"
              ]
            }
          },
          "pvc": {
            "attributes": {
              "claimName": {
                "required": true,
                "canEdit": false,
                "blocked": false,
                "options": []
              },
              "path": {
                "required": true,
                "canEdit": false,
                "blocked": false,
                "options": []
              },
              "readOnly": {
                "sourceOfRule": {
                  "scope": "project",
                  "projectId": 3
                },
                "required": true,
                "canEdit": true
              },
              "claimInfo": {
                "size": {
                  "required": true,
                  "canEdit": false,
                  "blocked": false,
                  "options": []
                },
                "storageClass": {
                  "required": true,
                  "canEdit": false,
                  "blocked": false,
                  "options": []
                },
                "accessModes": {
                  "readWriteOnce": {
                    "sourceOfRule": {
                      "scope": "project",
                      "projectId": 3
                    },
                    "required": true,
                    "canEdit": true
                  },
                  "readOnlyMany": {
                    "sourceOfRule": {
                      "scope": "project",
                      "projectId": 3
                    },
                    "required": true,
                    "canEdit": true
                  },
                  "readWriteMany": {
                    "sourceOfRule": {
                      "scope": "project",
                      "projectId": 3
                    },
                    "required": true,
                    "canEdit": true
                  }
                }
              }
            },
            "instances": {
              "sourceOfRule": {
                "scope": "project",
                "projectId": 3
              },
              "canAdd": true,
              "locked": [
                "HOME",
                "USER"
              ]
            }
          },
          "s3": {
            "attributes": {
              "bucket": {
                "required": true,
                "canEdit": false,
                "blocked": false,
                "options": []
              },
              "path": {
                "required": true,
                "canEdit": false,
                "blocked": false,
                "options": []
              },
              "url": {
                "required": true,
                "canEdit": false,
                "blocked": false,
                "options": []
              }
            },
            "instances": {
              "sourceOfRule": {
                "scope": "project",
                "projectId": 3
              },
              "canAdd": true,
              "locked": [
                "HOME",
                "USER"
              ]
            }
          },
          "secretVolume": {
            "attributes": {
              "secret": {
                "required": true,
                "canEdit": false,
                "blocked": false,
                "options": []
              },
              "mountPath": {
                "required": true,
                "canEdit": false,
                "blocked": false,
                "options": []
              },
              "defaultMode": {
                "required": true,
                "canEdit": false,
                "blocked": false,
                "options": []
              }
            },
            "instances": {
              "sourceOfRule": {
                "scope": "project",
                "projectId": 3
              },
              "canAdd": true,
              "locked": [
                "HOME",
                "USER"
              ]
            }
          }
        },
        "terminateAfterPreemption": {
          "sourceOfRule": {
            "scope": "project",
            "projectId": 3
          },
          "required": true,
          "canEdit": true
        },
        "terminationGracePeriodSeconds": {
          "sourceOfRule": {
            "scope": "project",
            "projectId": 3
          },
          "required": true,
          "canEdit": true,
          "min": 1,
          "max": 1,
          "step": 1,
          "defaultFrom": {
            "field": "text",
            "factor": 1
          }
        },
        "tolerations": {
          "attributes": {
            "operator": {
              "required": true,
              "canEdit": false,
              "blocked": false,
              "options": []
            },
            "key": {
              "required": true,
              "canEdit": false,
              "blocked": false,
              "options": []
            },
            "value": {
              "required": true,
              "canEdit": false,
              "blocked": false,
              "options": []
            },
            "effect": {
              "required": true,
              "canEdit": false,
              "blocked": false,
              "options": []
            },
            "seconds": {
              "sourceOfRule": {
                "scope": "project",
                "projectId": 3
              },
              "required": true,
              "canEdit": true,
              "min": 1,
              "max": 1,
              "step": 1,
              "defaultFrom": {
                "field": "text",
                "factor": 1
              }
            },
            "exclude": {
              "sourceOfRule": {
                "scope": "project",
                "projectId": 3
              },
              "required": true,
              "canEdit": true
            }
          },
          "instances": {
            "sourceOfRule": {
              "scope": "project",
              "projectId": 3
            },
            "canAdd": true,
            "locked": [
              "HOME",
              "USER"
            ]
          }
        },
        "tty": {
          "sourceOfRule": {
            "scope": "project",
            "projectId": 3
          },
          "required": true,
          "canEdit": true
        },
        "workingDir": {
          "required": true,
          "canEdit": false,
          "blocked": false,
          "options": []
        }
      },
      "worker": {
        "annotations": {
          "instances": {
            "sourceOfRule": {
              "scope": "project",
              "projectId": 3
            },
            "canAdd": true,
            "locked": [
              "HOME",
              "USER"
            ]
          }
        },
        "args": {
          "required": true,
          "canEdit": false,
          "blocked": false,
          "options": []
        },
        "autoDeletionTimeAfterCompletionSeconds": {
          "sourceOfRule": {
            "scope": "project",
            "projectId": 3
          },
          "required": true,
          "canEdit": true,
          "min": 1,
          "max": 1,
          "step": 1,
          "defaultFrom": {
            "field": "text",
            "factor": 1
          }
        },
        "backoffLimit": {
          "sourceOfRule": {
            "scope": "project",
            "projectId": 3
          },
          "required": true,
          "canEdit": true,
          "min": 1,
          "max": 1,
          "step": 1,
          "defaultFrom": {
            "field": "text",
            "factor": 1
          }
        },
        "category": {
          "required": true,
          "canEdit": false,
          "blocked": false,
          "options": []
        },
        "command": {
          "required": true,
          "canEdit": false,
          "blocked": false,
          "options": []
        },
        "compute": {
          "cpuCoreLimit": {
            "sourceOfRule": {
              "scope": "project",
              "projectId": 3
            },
            "required": true,
            "canEdit": true,
            "min": 1,
            "max": 1,
            "step": 1,
            "defaultFrom": {
              "field": "text",
              "factor": 1
            }
          },
          "cpuCoreRequest": {
            "sourceOfRule": {
              "scope": "project",
              "projectId": 3
            },
            "required": true,
            "canEdit": true,
            "min": 1,
            "max": 1,
            "step": 1,
            "defaultFrom": {
              "field": "text",
              "factor": 1
            }
          },
          "cpuMemoryLimit": {
            "sourceOfRule": {
              "scope": "project",
              "projectId": 3
            },
            "required": true,
            "canEdit": true,
            "min": "text",
            "max": "text",
            "defaultFrom": {
              "field": "text",
              "factor": 1
            }
          },
          "cpuMemoryRequest": {
            "sourceOfRule": {
              "scope": "project",
              "projectId": 3
            },
            "required": true,
            "canEdit": true,
            "min": "text",
            "max": "text",
            "defaultFrom": {
              "field": "text",
              "factor": 1
            }
          },
          "extendedResources": {
            "attributes": {
              "quantity": {
                "required": true,
                "canEdit": false,
                "blocked": false,
                "options": []
              }
            },
            "instances": {
              "sourceOfRule": {
                "scope": "project",
                "projectId": 3
              },
              "canAdd": true,
              "locked": [
                "HOME",
                "USER"
              ]
            }
          },
          "gpuDevicesRequest": {
            "sourceOfRule": {
              "scope": "project",
              "projectId": 3
            },
            "required": true,
            "canEdit": true,
            "min": 1,
            "max": 1,
            "step": 1,
            "defaultFrom": {
              "field": "text",
              "factor": 1
            }
          },
          "gpuMemoryLimit": {
            "sourceOfRule": {
              "scope": "project",
              "projectId": 3
            },
            "required": true,
            "canEdit": true,
            "min": "text",
            "max": "text",
            "defaultFrom": {
              "field": "text",
              "factor": 1
            }
          },
          "gpuMemoryRequest": {
            "sourceOfRule": {
              "scope": "project",
              "projectId": 3
            },
            "required": true,
            "canEdit": true,
            "min": "text",
            "max": "text",
            "defaultFrom": {
              "field": "text",
              "factor": 1
            }
          },
          "gpuPortionLimit": {
            "sourceOfRule": {
              "scope": "project",
              "projectId": 3
            },
            "required": true,
            "canEdit": true,
            "min": 1,
            "max": 1,
            "step": 1,
            "defaultFrom": {
              "field": "text",
              "factor": 1
            }
          },
          "gpuPortionRequest": {
            "sourceOfRule": {
              "scope": "project",
              "projectId": 3
            },
            "required": true,
            "canEdit": true,
            "min": 1,
            "max": 1,
            "step": 1,
            "defaultFrom": {
              "field": "text",
              "factor": 1
            }
          },
          "gpuRequestType": {
            "required": true,
            "canEdit": false,
            "blocked": false,
            "options": []
          },
          "largeShmRequest": {
            "sourceOfRule": {
              "scope": "project",
              "projectId": 3
            },
            "required": true,
            "canEdit": true
          }
        },
        "createHomeDir": {
          "sourceOfRule": {
            "scope": "project",
            "projectId": 3
          },
          "required": true,
          "canEdit": true
        },
        "environmentVariables": {
          "instances": {
            "sourceOfRule": {
              "scope": "project",
              "projectId": 3
            },
            "canAdd": true,
            "locked": [
              "HOME",
              "USER"
            ]
          }
        },
        "exposedUrls": {
          "attributes": {
            "container": {
              "sourceOfRule": {
                "scope": "project",
                "projectId": 3
              },
              "required": true,
              "canEdit": true,
              "min": 1,
              "max": 1,
              "step": 1,
              "defaultFrom": {
                "field": "text",
                "factor": 1
              }
            },
            "customUrl": {
              "sourceOfRule": {
                "scope": "project",
                "projectId": 3
              },
              "required": true,
              "canEdit": true
            },
            "url": {
              "required": true,
              "canEdit": false,
              "blocked": false,
              "options": []
            },
            "authorizedUsers": {
              "sourceOfRule": {
                "scope": "project",
                "projectId": 3
              },
              "required": true,
              "options": [],
              "canEdit": true
            },
            "authorizedGroups": {
              "sourceOfRule": {
                "scope": "project",
                "projectId": 3
              },
              "required": true,
              "options": [],
              "canEdit": true
            },
            "toolType": {
              "required": true,
              "canEdit": false,
              "blocked": false,
              "options": []
            },
            "toolName": {
              "required": true,
              "canEdit": false,
              "blocked": false,
              "options": []
            }
          },
          "instances": {
            "sourceOfRule": {
              "scope": "project",
              "projectId": 3
            },
            "canAdd": true,
            "locked": [
              "HOME",
              "USER"
            ]
          }
        },
        "image": {
          "required": true,
          "canEdit": false,
          "blocked": false,
          "options": []
        },
        "imagePullPolicy": {
          "required": true,
          "canEdit": false,
          "blocked": false,
          "options": []
        },
        "imagePullSecrets": {
          "attributes": {
            "name": {
              "required": true,
              "canEdit": false,
              "blocked": false,
              "options": []
            },
            "userCredentials": {
              "sourceOfRule": {
                "scope": "project",
                "projectId": 3
              },
              "required": true,
              "canEdit": true
            }
          },
          "instances": {
            "sourceOfRule": {
              "scope": "project",
              "projectId": 3
            },
            "canAdd": true,
            "locked": [
              "HOME",
              "USER"
            ]
          }
        },
        "labels": {
          "instances": {
            "sourceOfRule": {
              "scope": "project",
              "projectId": 3
            },
            "canAdd": true,
            "locked": [
              "HOME",
              "USER"
            ]
          }
        },
        "nodeAffinityRequired": {
          "sourceOfRule": {
            "scope": "project",
            "projectId": 3
          },
          "required": true,
          "canEdit": true
        },
        "nodePools": {
          "sourceOfRule": {
            "scope": "project",
            "projectId": 3
          },
          "required": true,
          "options": [],
          "canEdit": true
        },
        "nodeType": {
          "required": true,
          "canEdit": false,
          "blocked": false,
          "options": []
        },
        "podAffinity": {
          "type": {
            "required": true,
            "canEdit": false,
            "blocked": false,
            "options": []
          },
          "key": {
            "required": true,
            "canEdit": false,
            "blocked": false,
            "options": []
          }
        },
        "ports": {
          "attributes": {
            "container": {
              "sourceOfRule": {
                "scope": "project",
                "projectId": 3
              },
              "required": true,
              "canEdit": true,
              "min": 1,
              "max": 1,
              "step": 1,
              "defaultFrom": {
                "field": "text",
                "factor": 1
              }
            },
            "serviceType": {
              "required": true,
              "canEdit": false,
              "blocked": false,
              "options": []
            },
            "customExternalPort": {
              "sourceOfRule": {
                "scope": "project",
                "projectId": 3
              },
              "required": true,
              "canEdit": true
            },
            "external": {
              "sourceOfRule": {
                "scope": "project",
                "projectId": 3
              },
              "required": true,
              "canEdit": true,
              "min": 1,
              "max": 1,
              "step": 1,
              "defaultFrom": {
                "field": "text",
                "factor": 1
              }
            },
            "toolType": {
              "required": true,
              "canEdit": false,
              "blocked": false,
              "options": []
            },
            "toolName": {
              "required": true,
              "canEdit": false,
              "blocked": false,
              "options": []
            }
          },
          "instances": {
            "sourceOfRule": {
              "scope": "project",
              "projectId": 3
            },
            "canAdd": true,
            "locked": [
              "HOME",
              "USER"
            ]
          }
        },
        "preemptibility": {
          "required": true,
          "canEdit": false,
          "blocked": false,
          "options": []
        },
        "priorityClass": {
          "required": true,
          "canEdit": false,
          "blocked": false,
          "options": []
        },
        "probes": {
          "readiness": {
            "initialDelaySeconds": {
              "sourceOfRule": {
                "scope": "project",
                "projectId": 3
              },
              "required": true,
              "canEdit": true,
              "min": 1,
              "max": 1,
              "step": 1,
              "defaultFrom": {
                "field": "text",
                "factor": 1
              }
            },
            "periodSeconds": {
              "sourceOfRule": {
                "scope": "project",
                "projectId": 3
              },
              "required": true,
              "canEdit": true,
              "min": 1,
              "max": 1,
              "step": 1,
              "defaultFrom": {
                "field": "text",
                "factor": 1
              }
            },
            "timeoutSeconds": {
              "sourceOfRule": {
                "scope": "project",
                "projectId": 3
              },
              "required": true,
              "canEdit": true,
              "min": 1,
              "max": 1,
              "step": 1,
              "defaultFrom": {
                "field": "text",
                "factor": 1
              }
            },
            "successThreshold": {
              "sourceOfRule": {
                "scope": "project",
                "projectId": 3
              },
              "required": true,
              "canEdit": true,
              "min": 1,
              "max": 1,
              "step": 1,
              "defaultFrom": {
                "field": "text",
                "factor": 1
              }
            },
            "failureThreshold": {
              "sourceOfRule": {
                "scope": "project",
                "projectId": 3
              },
              "required": true,
              "canEdit": true,
              "min": 1,
              "max": 1,
              "step": 1,
              "defaultFrom": {
                "field": "text",
                "factor": 1
              }
            },
            "handler": {
              "httpGet": {
                "path": {
                  "required": true,
                  "canEdit": false,
                  "blocked": false,
                  "options": []
                },
                "port": {
                  "sourceOfRule": {
                    "scope": "project",
                    "projectId": 3
                  },
                  "required": true,
                  "canEdit": true,
                  "min": 1,
                  "max": 1,
                  "step": 1,
                  "defaultFrom": {
                    "field": "text",
                    "factor": 1
                  }
                },
                "host": {
                  "required": true,
                  "canEdit": false,
                  "blocked": false,
                  "options": []
                },
                "scheme": {
                  "required": true,
                  "canEdit": false,
                  "blocked": false,
                  "options": []
                }
              }
            }
          }
        },
        "relatedUrls": {
          "attributes": {
            "url": {
              "required": true,
              "canEdit": false,
              "blocked": false,
              "options": []
            },
            "type": {
              "required": true,
              "canEdit": false,
              "blocked": false,
              "options": []
            },
            "name": {
              "required": true,
              "canEdit": false,
              "blocked": false,
              "options": []
            }
          },
          "instances": {
            "sourceOfRule": {
              "scope": "project",
              "projectId": 3
            },
            "canAdd": true,
            "locked": [
              "HOME",
              "USER"
            ]
          }
        },
        "restartPolicy": {
          "required": true,
          "canEdit": false,
          "blocked": false,
          "options": []
        },
        "security": {
          "allowPrivilegeEscalation": {
            "sourceOfRule": {
              "scope": "project",
              "projectId": 3
            },
            "required": true,
            "canEdit": true
          },
          "capabilities": {
            "sourceOfRule": {
              "scope": "project",
              "projectId": 3
            },
            "required": true,
            "options": [],
            "canEdit": true
          },
          "hostIpc": {
            "sourceOfRule": {
              "scope": "project",
              "projectId": 3
            },
            "required": true,
            "canEdit": true
          },
          "hostNetwork": {
            "sourceOfRule": {
              "scope": "project",
              "projectId": 3
            },
            "required": true,
            "canEdit": true
          },
          "readOnlyRootFilesystem": {
            "sourceOfRule": {
              "scope": "project",
              "projectId": 3
            },
            "required": true,
            "canEdit": true
          },
          "runAsGid": {
            "sourceOfRule": {
              "scope": "project",
              "projectId": 3
            },
            "canEdit": true,
            "min": 1,
            "max": 1,
            "step": 1,
            "defaultFrom": {
              "field": "text",
              "factor": 1
            }
          },
          "runAsNonRoot": {
            "sourceOfRule": {
              "scope": "project",
              "projectId": 3
            },
            "required": true,
            "canEdit": true
          },
          "runAsUid": {
            "sourceOfRule": {
              "scope": "project",
              "projectId": 3
            },
            "canEdit": true,
            "min": 1,
            "max": 1,
            "step": 1,
            "defaultFrom": {
              "field": "text",
              "factor": 1
            }
          },
          "seccompProfileType": {
            "required": true,
            "canEdit": false,
            "blocked": false,
            "options": []
          },
          "supplementalGroups": {
            "required": true,
            "canEdit": false,
            "blocked": false,
            "options": []
          },
          "uidGidSource": {
            "required": true,
            "canEdit": false,
            "blocked": false,
            "options": []
          }
        },
        "stdin": {
          "sourceOfRule": {
            "scope": "project",
            "projectId": 3
          },
          "required": true,
          "canEdit": true
        },
        "storage": {
          "configMapVolume": {
            "attributes": {
              "configMap": {
                "required": true,
                "canEdit": false,
                "blocked": false,
                "options": []
              },
              "mountPath": {
                "required": true,
                "canEdit": false,
                "blocked": false,
                "options": []
              },
              "subPath": {
                "required": true,
                "canEdit": false,
                "blocked": false,
                "options": []
              },
              "defaultMode": {
                "required": true,
                "canEdit": false,
                "blocked": false,
                "options": []
              }
            },
            "instances": {
              "sourceOfRule": {
                "scope": "project",
                "projectId": 3
              },
              "canAdd": true,
              "locked": [
                "HOME",
                "USER"
              ]
            }
          },
          "dataVolume": {
            "attributes": {
              "id": {
                "required": true,
                "canEdit": false,
                "blocked": false,
                "options": []
              },
              "mountPath": {
                "required": true,
                "canEdit": false,
                "blocked": false,
                "options": []
              }
            },
            "instances": {
              "sourceOfRule": {
                "scope": "project",
                "projectId": 3
              },
              "canAdd": true,
              "locked": [
                "HOME",
                "USER"
              ]
            }
          },
          "emptyDirVolume": {
            "attributes": {
              "path": {
                "required": true,
                "canEdit": false,
                "blocked": false,
                "options": []
              },
              "medium": {
                "required": true,
                "canEdit": false,
                "blocked": false,
                "options": []
              },
              "sizeLimit": {
                "required": true,
                "canEdit": false,
                "blocked": false,
                "options": []
              }
            },
            "instances": {
              "sourceOfRule": {
                "scope": "project",
                "projectId": 3
              },
              "canAdd": true,
              "locked": [
                "HOME",
                "USER"
              ]
            }
          },
          "git": {
            "attributes": {
              "repository": {
                "required": true,
                "canEdit": false,
                "blocked": false,
                "options": []
              },
              "branch": {
                "required": true,
                "canEdit": false,
                "blocked": false,
                "options": []
              },
              "revision": {
                "required": true,
                "canEdit": false,
                "blocked": false,
                "options": []
              },
              "path": {
                "required": true,
                "canEdit": false,
                "blocked": false,
                "options": []
              }
            },
            "instances": {
              "sourceOfRule": {
                "scope": "project",
                "projectId": 3
              },
              "canAdd": true,
              "locked": [
                "HOME",
                "USER"
              ]
            }
          },
          "hostPath": {
            "attributes": {
              "path": {
                "required": true,
                "canEdit": false,
                "blocked": false,
                "options": []
              },
              "readOnly": {
                "sourceOfRule": {
                  "scope": "project",
                  "projectId": 3
                },
                "required": true,
                "canEdit": true
              },
              "mountPath": {
                "required": true,
                "canEdit": false,
                "blocked": false,
                "options": []
              },
              "mountPropagation": {
                "required": true,
                "canEdit": false,
                "blocked": false,
                "options": []
              }
            },
            "instances": {
              "sourceOfRule": {
                "scope": "project",
                "projectId": 3
              },
              "canAdd": true,
              "locked": [
                "HOME",
                "USER"
              ]
            }
          },
          "nfs": {
            "attributes": {
              "path": {
                "required": true,
                "canEdit": false,
                "blocked": false,
                "options": []
              },
              "readOnly": {
                "sourceOfRule": {
                  "scope": "project",
                  "projectId": 3
                },
                "required": true,
                "canEdit": true
              },
              "server": {
                "required": true,
                "canEdit": false,
                "blocked": false,
                "options": []
              },
              "mountPath": {
                "required": true,
                "canEdit": false,
                "blocked": false,
                "options": []
              }
            },
            "instances": {
              "sourceOfRule": {
                "scope": "project",
                "projectId": 3